diff --git a/code/game/objects/items/weapons/bio_chips/bio_chip_pad.dm b/code/game/objects/items/weapons/bio_chips/bio_chip_pad.dm index ffb48b26c2b7..195d8e8364cd 100644 --- a/code/game/objects/items/weapons/bio_chips/bio_chip_pad.dm +++ b/code/game/objects/items/weapons/bio_chips/bio_chip_pad.dm @@ -90,6 +90,18 @@ "function" = implant_data.function, "image" = "[icon2base64(icon(initial(case.imp.icon), initial(case.imp.icon_state), SOUTH, 1))]", ) + if(istype(case.imp, /obj/item/bio_chip/tracking)) + var/obj/item/bio_chip/tracking/T = case.imp + data["gps"] = T + data["tag"] = T.gpstag + else + data["gps"] = null + data["tag"] = null + else + // Sanity check in the case that a pad is used for multiple types of implants. + data["gps"] = null + data["tag"] = null + return data /obj/item/bio_chip_pad/ui_act(action, list/params, datum/tgui/ui, datum/ui_state/state) @@ -99,3 +111,10 @@ switch(action) if("eject_case") eject_case(ui.user) + if("tag") + var/obj/item/bio_chip/tracking/T = case.imp + var/newtag = params["newtag"] || "" + newtag = uppertext(paranoid_sanitize(copytext_char(newtag, 1, 5))) + if(!length(newtag) || T.gpstag == newtag) + return + T.gpstag = newtag diff --git a/code/game/objects/items/weapons/bio_chips/bio_chip_tracking.dm b/code/game/objects/items/weapons/bio_chips/bio_chip_tracking.dm index 1e64bc40f2d2..5d0d19474710 100644 --- a/code/game/objects/items/weapons/bio_chips/bio_chip_tracking.dm +++ b/code/game/objects/items/weapons/bio_chips/bio_chip_tracking.dm @@ -7,6 +7,7 @@ implant_state = "implant-nanotrasen" var/warn_cooldown = 0 var/obj/item/gps/internal_gps + var/gpstag = "TRACK0" var/internal_gps_path = /obj/item/gps/internal/tracking_implant /obj/item/bio_chip/tracking/Initialize(mapload) @@ -23,6 +24,8 @@ if(!.) return internal_gps = new internal_gps_path(src) + if(gpstag) + internal_gps.gpstag = gpstag /obj/item/bio_chip/tracking/removed(mob/target) . = ..() @@ -30,7 +33,6 @@ QDEL_NULL(internal_gps) /obj/item/gps/internal/tracking_implant - gpstag = "TRACK0" local = FALSE /obj/item/bio_chip_implanter/tracking diff --git a/code/modules/research/designs/medical_designs.dm b/code/modules/research/designs/medical_designs.dm index 5caceeec130e..174f2ba9b3fe 100644 --- a/code/modules/research/designs/medical_designs.dm +++ b/code/modules/research/designs/medical_designs.dm @@ -660,6 +660,16 @@ ////////////Regular Implants///////////// ///////////////////////////////////////// +/datum/design/bio_chip_pad + name = "Bio-chip Pad" + desc = "Used to modify bio-chips." + id = "biochip_pad" + req_tech = list("materials" = 3, "biotech" = 4, "programming" = 3) + build_type = PROTOLATHE + materials = list(MAT_METAL = 2000, MAT_GLASS = 1000) + build_path = /obj/item/bio_chip_pad + category = list("Medical") + /datum/design/bio_chip_implanter name = "Bio-chip Implanter" desc = "A sterile automatic bio-chip injector." diff --git a/tgui/packages/tgui/interfaces/BioChipPad.js b/tgui/packages/tgui/interfaces/BioChipPad.js index d0379bb9a762..edbc93b1ed27 100644 --- a/tgui/packages/tgui/interfaces/BioChipPad.js +++ b/tgui/packages/tgui/interfaces/BioChipPad.js @@ -1,15 +1,29 @@ -import { useBackend } from '../backend'; -import { Button, Section, Box, LabeledList } from '../components'; +import { useBackend, useLocalState } from '../backend'; +import { Button, Section, Box, LabeledList, Input, Icon } from '../components'; import { Window } from '../layouts'; export const BioChipPad = (props, context) => { const { act, data } = useBackend(context); - const { implant, contains_case } = data; + const { implant, contains_case, gps, tag } = data; + const [newTag, setNewTag] = useLocalState(context, 'newTag', tag); return ( - + -
+
+ + + )} ) : contains_case ? ( @@ -39,13 +72,6 @@ export const BioChipPad = (props, context) => { ) : ( Please insert a bio-chip casing! )} -
diff --git a/tgui/public/tgui.bundle.js b/tgui/public/tgui.bundle.js index f8d022891f6b..e10aab1b642f 100644 --- a/tgui/public/tgui.bundle.js +++ b/tgui/public/tgui.bundle.js @@ -1,8 +1,8 @@ -(function(){(function(){var Gt={66641:function(L,r,n){"use strict";r.__esModule=!0,r.createPopper=void 0,r.popperGenerator=m;var e=p(n(8823)),a=p(n(19820)),t=p(n(54826)),o=p(n(43243)),f=p(n(17859)),V=p(n(80798)),k=p(n(46343)),S=p(n(31584));r.detectOverflow=S.default;var b=n(72600);function p(u){return u&&u.__esModule?u:{default:u}}var l={placement:"bottom",modifiers:[],strategy:"absolute"};function c(){for(var u=arguments.length,s=new Array(u),i=0;i0&&(0,a.round)(p.width)/k.offsetWidth||1,c=k.offsetHeight>0&&(0,a.round)(p.height)/k.offsetHeight||1);var m=(0,e.isElement)(k)?(0,t.default)(k):window,d=m.visualViewport,u=!(0,o.default)()&&b,s=(p.left+(u&&d?d.offsetLeft:0))/l,i=(p.top+(u&&d?d.offsetTop:0))/c,v=p.width/l,g=p.height/c;return{width:v,height:g,top:i,right:s+v,bottom:i+g,left:s,x:s,y:i}}},86380:function(L,r,n){"use strict";r.__esModule=!0,r.default=g;var e=n(41521),a=u(n(2868)),t=u(n(39799)),o=u(n(54826)),f=u(n(43243)),V=u(n(33733)),k=u(n(14522)),S=n(72600),b=u(n(32125)),p=u(n(34972)),l=u(n(96343)),c=u(n(13203)),m=u(n(31855)),d=n(69031);function u(C){return C&&C.__esModule?C:{default:C}}function s(C,h){var N=(0,b.default)(C,!1,h==="fixed");return N.top=N.top+C.clientTop,N.left=N.left+C.clientLeft,N.bottom=N.top+C.clientHeight,N.right=N.left+C.clientWidth,N.width=C.clientWidth,N.height=C.clientHeight,N.x=N.left,N.y=N.top,N}function i(C,h,N){return h===e.viewport?(0,m.default)((0,a.default)(C,N)):(0,S.isElement)(h)?s(h,N):(0,m.default)((0,t.default)((0,V.default)(C)))}function v(C){var h=(0,o.default)((0,p.default)(C)),N=["absolute","fixed"].indexOf((0,k.default)(C).position)>=0,y=N&&(0,S.isHTMLElement)(C)?(0,f.default)(C):C;return(0,S.isElement)(y)?h.filter(function(B){return(0,S.isElement)(B)&&(0,l.default)(B,y)&&(0,c.default)(B)!=="body"}):[]}function g(C,h,N,y){var B=h==="clippingParents"?v(C):[].concat(h),I=[].concat(B,[N]),w=I[0],T=I.reduce(function(A,x){var E=i(C,x,y);return A.top=(0,d.max)(E.top,A.top),A.right=(0,d.min)(E.right,A.right),A.bottom=(0,d.min)(E.bottom,A.bottom),A.left=(0,d.max)(E.left,A.left),A},i(C,w,y));return T.width=T.right-T.left,T.height=T.bottom-T.top,T.x=T.left,T.y=T.top,T}},8823:function(L,r,n){"use strict";r.__esModule=!0,r.default=l;var e=b(n(32125)),a=b(n(45401)),t=b(n(13203)),o=n(72600),f=b(n(85750)),V=b(n(33733)),k=b(n(44011)),S=n(69031);function b(c){return c&&c.__esModule?c:{default:c}}function p(c){var m=c.getBoundingClientRect(),d=(0,S.round)(m.width)/c.offsetWidth||1,u=(0,S.round)(m.height)/c.offsetHeight||1;return d!==1||u!==1}function l(c,m,d){d===void 0&&(d=!1);var u=(0,o.isHTMLElement)(m),s=(0,o.isHTMLElement)(m)&&p(m),i=(0,V.default)(m),v=(0,e.default)(c,s,d),g={scrollLeft:0,scrollTop:0},C={x:0,y:0};return(u||!u&&!d)&&(((0,t.default)(m)!=="body"||(0,k.default)(i))&&(g=(0,a.default)(m)),(0,o.isHTMLElement)(m)?(C=(0,e.default)(m,!0),C.x+=m.clientLeft,C.y+=m.clientTop):i&&(C.x=(0,f.default)(i))),{x:v.left+g.scrollLeft-C.x,y:v.top+g.scrollTop-C.y,width:v.width,height:v.height}}},14522:function(L,r,n){"use strict";r.__esModule=!0,r.default=t;var e=a(n(81020));function a(o){return o&&o.__esModule?o:{default:o}}function t(o){return(0,e.default)(o).getComputedStyle(o)}},33733:function(L,r,n){"use strict";r.__esModule=!0,r.default=a;var e=n(72600);function a(t){return(((0,e.isElement)(t)?t.ownerDocument:t.document)||window.document).documentElement}},39799:function(L,r,n){"use strict";r.__esModule=!0,r.default=k;var e=V(n(33733)),a=V(n(14522)),t=V(n(85750)),o=V(n(79569)),f=n(69031);function V(S){return S&&S.__esModule?S:{default:S}}function k(S){var b,p=(0,e.default)(S),l=(0,o.default)(S),c=(b=S.ownerDocument)==null?void 0:b.body,m=(0,f.max)(p.scrollWidth,p.clientWidth,c?c.scrollWidth:0,c?c.clientWidth:0),d=(0,f.max)(p.scrollHeight,p.clientHeight,c?c.scrollHeight:0,c?c.clientHeight:0),u=-l.scrollLeft+(0,t.default)(S),s=-l.scrollTop;return(0,a.default)(c||p).direction==="rtl"&&(u+=(0,f.max)(p.clientWidth,c?c.clientWidth:0)-m),{width:m,height:d,x:u,y:s}}},75680:function(L,r){"use strict";r.__esModule=!0,r.default=n;function n(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}},19820:function(L,r,n){"use strict";r.__esModule=!0,r.default=t;var e=a(n(32125));function a(o){return o&&o.__esModule?o:{default:o}}function t(o){var f=(0,e.default)(o),V=o.offsetWidth,k=o.offsetHeight;return Math.abs(f.width-V)<=1&&(V=f.width),Math.abs(f.height-k)<=1&&(k=f.height),{x:o.offsetLeft,y:o.offsetTop,width:V,height:k}}},13203:function(L,r){"use strict";r.__esModule=!0,r.default=n;function n(e){return e?(e.nodeName||"").toLowerCase():null}},45401:function(L,r,n){"use strict";r.__esModule=!0,r.default=V;var e=f(n(79569)),a=f(n(81020)),t=n(72600),o=f(n(75680));function f(k){return k&&k.__esModule?k:{default:k}}function V(k){return k===(0,a.default)(k)||!(0,t.isHTMLElement)(k)?(0,e.default)(k):(0,o.default)(k)}},43243:function(L,r,n){"use strict";r.__esModule=!0,r.default=l;var e=S(n(81020)),a=S(n(13203)),t=S(n(14522)),o=n(72600),f=S(n(25658)),V=S(n(34972)),k=S(n(97353));function S(c){return c&&c.__esModule?c:{default:c}}function b(c){return!(0,o.isHTMLElement)(c)||(0,t.default)(c).position==="fixed"?null:c.offsetParent}function p(c){var m=/firefox/i.test((0,k.default)()),d=/Trident/i.test((0,k.default)());if(d&&(0,o.isHTMLElement)(c)){var u=(0,t.default)(c);if(u.position==="fixed")return null}var s=(0,V.default)(c);for((0,o.isShadowRoot)(s)&&(s=s.host);(0,o.isHTMLElement)(s)&&["html","body"].indexOf((0,a.default)(s))<0;){var i=(0,t.default)(s);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||m&&i.willChange==="filter"||m&&i.filter&&i.filter!=="none")return s;s=s.parentNode}return null}function l(c){for(var m=(0,e.default)(c),d=b(c);d&&(0,f.default)(d)&&(0,t.default)(d).position==="static";)d=b(d);return d&&((0,a.default)(d)==="html"||(0,a.default)(d)==="body"&&(0,t.default)(d).position==="static")?m:d||p(c)||m}},34972:function(L,r,n){"use strict";r.__esModule=!0,r.default=f;var e=o(n(13203)),a=o(n(33733)),t=n(72600);function o(V){return V&&V.__esModule?V:{default:V}}function f(V){return(0,e.default)(V)==="html"?V:V.assignedSlot||V.parentNode||((0,t.isShadowRoot)(V)?V.host:null)||(0,a.default)(V)}},65329:function(L,r,n){"use strict";r.__esModule=!0,r.default=V;var e=f(n(34972)),a=f(n(44011)),t=f(n(13203)),o=n(72600);function f(k){return k&&k.__esModule?k:{default:k}}function V(k){return["html","body","#document"].indexOf((0,t.default)(k))>=0?k.ownerDocument.body:(0,o.isHTMLElement)(k)&&(0,a.default)(k)?k:V((0,e.default)(k))}},2868:function(L,r,n){"use strict";r.__esModule=!0,r.default=V;var e=f(n(81020)),a=f(n(33733)),t=f(n(85750)),o=f(n(14894));function f(k){return k&&k.__esModule?k:{default:k}}function V(k,S){var b=(0,e.default)(k),p=(0,a.default)(k),l=b.visualViewport,c=p.clientWidth,m=p.clientHeight,d=0,u=0;if(l){c=l.width,m=l.height;var s=(0,o.default)();(s||!s&&S==="fixed")&&(d=l.offsetLeft,u=l.offsetTop)}return{width:c,height:m,x:d+(0,t.default)(k),y:u}}},81020:function(L,r){"use strict";r.__esModule=!0,r.default=n;function n(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var a=e.ownerDocument;return a&&a.defaultView||window}return e}},79569:function(L,r,n){"use strict";r.__esModule=!0,r.default=t;var e=a(n(81020));function a(o){return o&&o.__esModule?o:{default:o}}function t(o){var f=(0,e.default)(o),V=f.pageXOffset,k=f.pageYOffset;return{scrollLeft:V,scrollTop:k}}},85750:function(L,r,n){"use strict";r.__esModule=!0,r.default=f;var e=o(n(32125)),a=o(n(33733)),t=o(n(79569));function o(V){return V&&V.__esModule?V:{default:V}}function f(V){return(0,e.default)((0,a.default)(V)).left+(0,t.default)(V).scrollLeft}},72600:function(L,r,n){"use strict";r.__esModule=!0,r.isElement=t,r.isHTMLElement=o,r.isShadowRoot=f;var e=a(n(81020));function a(V){return V&&V.__esModule?V:{default:V}}function t(V){var k=(0,e.default)(V).Element;return V instanceof k||V instanceof Element}function o(V){var k=(0,e.default)(V).HTMLElement;return V instanceof k||V instanceof HTMLElement}function f(V){if(typeof ShadowRoot=="undefined")return!1;var k=(0,e.default)(V).ShadowRoot;return V instanceof k||V instanceof ShadowRoot}},14894:function(L,r,n){"use strict";r.__esModule=!0,r.default=t;var e=a(n(97353));function a(o){return o&&o.__esModule?o:{default:o}}function t(){return!/^((?!chrome|android).)*safari/i.test((0,e.default)())}},44011:function(L,r,n){"use strict";r.__esModule=!0,r.default=t;var e=a(n(14522));function a(o){return o&&o.__esModule?o:{default:o}}function t(o){var f=(0,e.default)(o),V=f.overflow,k=f.overflowX,S=f.overflowY;return/auto|scroll|overlay|hidden/.test(V+S+k)}},25658:function(L,r,n){"use strict";r.__esModule=!0,r.default=t;var e=a(n(13203));function a(o){return o&&o.__esModule?o:{default:o}}function t(o){return["table","td","th"].indexOf((0,e.default)(o))>=0}},54826:function(L,r,n){"use strict";r.__esModule=!0,r.default=V;var e=f(n(65329)),a=f(n(34972)),t=f(n(81020)),o=f(n(44011));function f(k){return k&&k.__esModule?k:{default:k}}function V(k,S){var b;S===void 0&&(S=[]);var p=(0,e.default)(k),l=p===((b=k.ownerDocument)==null?void 0:b.body),c=(0,t.default)(p),m=l?[c].concat(c.visualViewport||[],(0,o.default)(p)?p:[]):p,d=S.concat(m);return l?d:d.concat(V((0,a.default)(m)))}},41521:function(L,r){"use strict";r.__esModule=!0,r.write=r.viewport=r.variationPlacements=r.top=r.start=r.right=r.reference=r.read=r.popper=r.placements=r.modifierPhases=r.main=r.left=r.end=r.clippingParents=r.bottom=r.beforeWrite=r.beforeRead=r.beforeMain=r.basePlacements=r.auto=r.afterWrite=r.afterRead=r.afterMain=void 0;var n=r.top="top",e=r.bottom="bottom",a=r.right="right",t=r.left="left",o=r.auto="auto",f=r.basePlacements=[n,e,a,t],V=r.start="start",k=r.end="end",S=r.clippingParents="clippingParents",b=r.viewport="viewport",p=r.popper="popper",l=r.reference="reference",c=r.variationPlacements=f.reduce(function(B,I){return B.concat([I+"-"+V,I+"-"+k])},[]),m=r.placements=[].concat(f,[o]).reduce(function(B,I){return B.concat([I,I+"-"+V,I+"-"+k])},[]),d=r.beforeRead="beforeRead",u=r.read="read",s=r.afterRead="afterRead",i=r.beforeMain="beforeMain",v=r.main="main",g=r.afterMain="afterMain",C=r.beforeWrite="beforeWrite",h=r.write="write",N=r.afterWrite="afterWrite",y=r.modifierPhases=[d,u,s,i,v,g,C,h,N]},60023:function(L,r,n){"use strict";r.__esModule=!0;var e={popperGenerator:!0,detectOverflow:!0,createPopperBase:!0,createPopper:!0,createPopperLite:!0};r.popperGenerator=r.detectOverflow=r.createPopperLite=r.createPopperBase=r.createPopper=void 0;var a=n(41521);Object.keys(a).forEach(function(k){k==="default"||k==="__esModule"||Object.prototype.hasOwnProperty.call(e,k)||k in r&&r[k]===a[k]||(r[k]=a[k])});var t=n(91078);Object.keys(t).forEach(function(k){k==="default"||k==="__esModule"||Object.prototype.hasOwnProperty.call(e,k)||k in r&&r[k]===t[k]||(r[k]=t[k])});var o=n(66641);r.popperGenerator=o.popperGenerator,r.detectOverflow=o.detectOverflow,r.createPopperBase=o.createPopper;var f=n(7925);r.createPopper=f.createPopper;var V=n(62642);r.createPopperLite=V.createPopper},56304:function(L,r,n){"use strict";r.__esModule=!0,r.default=void 0;var e=t(n(13203)),a=n(72600);function t(k){return k&&k.__esModule?k:{default:k}}function o(k){var S=k.state;Object.keys(S.elements).forEach(function(b){var p=S.styles[b]||{},l=S.attributes[b]||{},c=S.elements[b];!(0,a.isHTMLElement)(c)||!(0,e.default)(c)||(Object.assign(c.style,p),Object.keys(l).forEach(function(m){var d=l[m];d===!1?c.removeAttribute(m):c.setAttribute(m,d===!0?"":d)}))})}function f(k){var S=k.state,b={popper:{position:S.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(S.elements.popper.style,b.popper),S.styles=b,S.elements.arrow&&Object.assign(S.elements.arrow.style,b.arrow),function(){Object.keys(S.elements).forEach(function(p){var l=S.elements[p],c=S.attributes[p]||{},m=Object.keys(S.styles.hasOwnProperty(p)?S.styles[p]:b[p]),d=m.reduce(function(u,s){return u[s]="",u},{});!(0,a.isHTMLElement)(l)||!(0,e.default)(l)||(Object.assign(l.style,d),Object.keys(c).forEach(function(u){l.removeAttribute(u)}))})}}var V=r.default={name:"applyStyles",enabled:!0,phase:"write",fn:o,effect:f,requires:["computeStyles"]}},57243:function(L,r,n){"use strict";r.__esModule=!0,r.default=void 0;var e=p(n(38141)),a=p(n(19820)),t=p(n(96343)),o=p(n(43243)),f=p(n(7770)),V=n(76770),k=p(n(77631)),S=p(n(54824)),b=n(41521);function p(u){return u&&u.__esModule?u:{default:u}}var l=function(){function u(s,i){return s=typeof s=="function"?s(Object.assign({},i.rects,{placement:i.placement})):s,(0,k.default)(typeof s!="number"?s:(0,S.default)(s,b.basePlacements))}return u}();function c(u){var s,i=u.state,v=u.name,g=u.options,C=i.elements.arrow,h=i.modifiersData.popperOffsets,N=(0,e.default)(i.placement),y=(0,f.default)(N),B=[b.left,b.right].indexOf(N)>=0,I=B?"height":"width";if(!(!C||!h)){var w=l(g.padding,i),T=(0,a.default)(C),A=y==="y"?b.top:b.left,x=y==="y"?b.bottom:b.right,E=i.rects.reference[I]+i.rects.reference[y]-h[y]-i.rects.popper[I],M=h[y]-i.rects.reference[y],D=(0,o.default)(C),P=D?y==="y"?D.clientHeight||0:D.clientWidth||0:0,R=E/2-M/2,j=w[A],F=P-T[I]-w[x],U=P/2-T[I]/2+R,_=(0,V.within)(j,U,F),z=y;i.modifiersData[v]=(s={},s[z]=_,s.centerOffset=_-U,s)}}function m(u){var s=u.state,i=u.options,v=i.element,g=v===void 0?"[data-popper-arrow]":v;g!=null&&(typeof g=="string"&&(g=s.elements.popper.querySelector(g),!g)||(0,t.default)(s.elements.popper,g)&&(s.elements.arrow=g))}var d=r.default={name:"arrow",enabled:!0,phase:"main",fn:c,effect:m,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]}},60421:function(L,r,n){"use strict";r.__esModule=!0,r.default=void 0,r.mapToStyles=c;var e=n(41521),a=b(n(43243)),t=b(n(81020)),o=b(n(33733)),f=b(n(14522)),V=b(n(38141)),k=b(n(14380)),S=n(69031);function b(u){return u&&u.__esModule?u:{default:u}}var p={top:"auto",right:"auto",bottom:"auto",left:"auto"};function l(u,s){var i=u.x,v=u.y,g=s.devicePixelRatio||1;return{x:(0,S.round)(i*g)/g||0,y:(0,S.round)(v*g)/g||0}}function c(u){var s,i=u.popper,v=u.popperRect,g=u.placement,C=u.variation,h=u.offsets,N=u.position,y=u.gpuAcceleration,B=u.adaptive,I=u.roundOffsets,w=u.isFixed,T=h.x,A=T===void 0?0:T,x=h.y,E=x===void 0?0:x,M=typeof I=="function"?I({x:A,y:E}):{x:A,y:E};A=M.x,E=M.y;var D=h.hasOwnProperty("x"),P=h.hasOwnProperty("y"),R=e.left,j=e.top,F=window;if(B){var U=(0,a.default)(i),_="clientHeight",z="clientWidth";if(U===(0,t.default)(i)&&(U=(0,o.default)(i),(0,f.default)(U).position!=="static"&&N==="absolute"&&(_="scrollHeight",z="scrollWidth")),U=U,g===e.top||(g===e.left||g===e.right)&&C===e.end){j=e.bottom;var G=w&&U===F&&F.visualViewport?F.visualViewport.height:U[_];E-=G-v.height,E*=y?1:-1}if(g===e.left||(g===e.top||g===e.bottom)&&C===e.end){R=e.right;var X=w&&U===F&&F.visualViewport?F.visualViewport.width:U[z];A-=X-v.width,A*=y?1:-1}}var Y=Object.assign({position:N},B&&p),J=I===!0?l({x:A,y:E},(0,t.default)(i)):{x:A,y:E};if(A=J.x,E=J.y,y){var ie;return Object.assign({},Y,(ie={},ie[j]=P?"0":"",ie[R]=D?"0":"",ie.transform=(F.devicePixelRatio||1)<=1?"translate("+A+"px, "+E+"px)":"translate3d("+A+"px, "+E+"px, 0)",ie))}return Object.assign({},Y,(s={},s[j]=P?E+"px":"",s[R]=D?A+"px":"",s.transform="",s))}function m(u){var s=u.state,i=u.options,v=i.gpuAcceleration,g=v===void 0?!0:v,C=i.adaptive,h=C===void 0?!0:C,N=i.roundOffsets,y=N===void 0?!0:N,B={placement:(0,V.default)(s.placement),variation:(0,k.default)(s.placement),popper:s.elements.popper,popperRect:s.rects.popper,gpuAcceleration:g,isFixed:s.options.strategy==="fixed"};s.modifiersData.popperOffsets!=null&&(s.styles.popper=Object.assign({},s.styles.popper,c(Object.assign({},B,{offsets:s.modifiersData.popperOffsets,position:s.options.strategy,adaptive:h,roundOffsets:y})))),s.modifiersData.arrow!=null&&(s.styles.arrow=Object.assign({},s.styles.arrow,c(Object.assign({},B,{offsets:s.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:y})))),s.attributes.popper=Object.assign({},s.attributes.popper,{"data-popper-placement":s.placement})}var d=r.default={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:m,data:{}}},84601:function(L,r,n){"use strict";r.__esModule=!0,r.default=void 0;var e=a(n(81020));function a(V){return V&&V.__esModule?V:{default:V}}var t={passive:!0};function o(V){var k=V.state,S=V.instance,b=V.options,p=b.scroll,l=p===void 0?!0:p,c=b.resize,m=c===void 0?!0:c,d=(0,e.default)(k.elements.popper),u=[].concat(k.scrollParents.reference,k.scrollParents.popper);return l&&u.forEach(function(s){s.addEventListener("scroll",S.update,t)}),m&&d.addEventListener("resize",S.update,t),function(){l&&u.forEach(function(s){s.removeEventListener("scroll",S.update,t)}),m&&d.removeEventListener("resize",S.update,t)}}var f=r.default={name:"eventListeners",enabled:!0,phase:"write",fn:function(){function V(){}return V}(),effect:o,data:{}}},17267:function(L,r,n){"use strict";r.__esModule=!0,r.default=void 0;var e=S(n(79641)),a=S(n(38141)),t=S(n(71976)),o=S(n(31584)),f=S(n(44744)),V=n(41521),k=S(n(14380));function S(c){return c&&c.__esModule?c:{default:c}}function b(c){if((0,a.default)(c)===V.auto)return[];var m=(0,e.default)(c);return[(0,t.default)(c),m,(0,t.default)(m)]}function p(c){var m=c.state,d=c.options,u=c.name;if(!m.modifiersData[u]._skip){for(var s=d.mainAxis,i=s===void 0?!0:s,v=d.altAxis,g=v===void 0?!0:v,C=d.fallbackPlacements,h=d.padding,N=d.boundary,y=d.rootBoundary,B=d.altBoundary,I=d.flipVariations,w=I===void 0?!0:I,T=d.allowedAutoPlacements,A=m.options.placement,x=(0,a.default)(A),E=x===A,M=C||(E||!w?[(0,e.default)(A)]:b(A)),D=[A].concat(M).reduce(function(me,ce){return me.concat((0,a.default)(ce)===V.auto?(0,f.default)(m,{placement:ce,boundary:N,rootBoundary:y,padding:h,flipVariations:w,allowedAutoPlacements:T}):ce)},[]),P=m.rects.reference,R=m.rects.popper,j=new Map,F=!0,U=D[0],_=0;_=0,J=Y?"width":"height",ie=(0,o.default)(m,{placement:z,boundary:N,rootBoundary:y,altBoundary:B,padding:h}),ae=Y?X?V.right:V.left:X?V.bottom:V.top;P[J]>R[J]&&(ae=(0,e.default)(ae));var fe=(0,e.default)(ae),pe=[];if(i&&pe.push(ie[G]<=0),g&&pe.push(ie[ae]<=0,ie[fe]<=0),pe.every(function(me){return me})){U=z,F=!1;break}j.set(z,pe)}if(F)for(var be=w?3:1,te=function(){function me(ce){var ue=D.find(function(oe){var ke=j.get(oe);if(ke)return ke.slice(0,ce).every(function(Be){return Be})});if(ue)return U=ue,"break"}return me}(),Q=be;Q>0;Q--){var ne=te(Q);if(ne==="break")break}m.placement!==U&&(m.modifiersData[u]._skip=!0,m.placement=U,m.reset=!0)}}var l=r.default={name:"flip",enabled:!0,phase:"main",fn:p,requiresIfExists:["offset"],data:{_skip:!1}}},88476:function(L,r,n){"use strict";r.__esModule=!0,r.default=void 0;var e=n(41521),a=t(n(31584));function t(S){return S&&S.__esModule?S:{default:S}}function o(S,b,p){return p===void 0&&(p={x:0,y:0}),{top:S.top-b.height-p.y,right:S.right-b.width+p.x,bottom:S.bottom-b.height+p.y,left:S.left-b.width-p.x}}function f(S){return[e.top,e.right,e.bottom,e.left].some(function(b){return S[b]>=0})}function V(S){var b=S.state,p=S.name,l=b.rects.reference,c=b.rects.popper,m=b.modifiersData.preventOverflow,d=(0,a.default)(b,{elementContext:"reference"}),u=(0,a.default)(b,{altBoundary:!0}),s=o(d,l),i=o(u,c,m),v=f(s),g=f(i);b.modifiersData[p]={referenceClippingOffsets:s,popperEscapeOffsets:i,isReferenceHidden:v,hasPopperEscaped:g},b.attributes.popper=Object.assign({},b.attributes.popper,{"data-popper-reference-hidden":v,"data-popper-escaped":g})}var k=r.default={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:V}},91078:function(L,r,n){"use strict";r.__esModule=!0,r.preventOverflow=r.popperOffsets=r.offset=r.hide=r.flip=r.eventListeners=r.computeStyles=r.arrow=r.applyStyles=void 0;var e=p(n(56304));r.applyStyles=e.default;var a=p(n(57243));r.arrow=a.default;var t=p(n(60421));r.computeStyles=t.default;var o=p(n(84601));r.eventListeners=o.default;var f=p(n(17267));r.flip=f.default;var V=p(n(88476));r.hide=V.default;var k=p(n(36707));r.offset=k.default;var S=p(n(98916));r.popperOffsets=S.default;var b=p(n(44454));r.preventOverflow=b.default;function p(l){return l&&l.__esModule?l:{default:l}}},36707:function(L,r,n){"use strict";r.__esModule=!0,r.default=void 0,r.distanceAndSkiddingToXY=o;var e=t(n(38141)),a=n(41521);function t(k){return k&&k.__esModule?k:{default:k}}function o(k,S,b){var p=(0,e.default)(k),l=[a.left,a.top].indexOf(p)>=0?-1:1,c=typeof b=="function"?b(Object.assign({},S,{placement:k})):b,m=c[0],d=c[1];return m=m||0,d=(d||0)*l,[a.left,a.right].indexOf(p)>=0?{x:d,y:m}:{x:m,y:d}}function f(k){var S=k.state,b=k.options,p=k.name,l=b.offset,c=l===void 0?[0,0]:l,m=a.placements.reduce(function(i,v){return i[v]=o(v,S.rects,c),i},{}),d=m[S.placement],u=d.x,s=d.y;S.modifiersData.popperOffsets!=null&&(S.modifiersData.popperOffsets.x+=u,S.modifiersData.popperOffsets.y+=s),S.modifiersData[p]=m}var V=r.default={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:f}},98916:function(L,r,n){"use strict";r.__esModule=!0,r.default=void 0;var e=a(n(47566));function a(f){return f&&f.__esModule?f:{default:f}}function t(f){var V=f.state,k=f.name;V.modifiersData[k]=(0,e.default)({reference:V.rects.reference,element:V.rects.popper,strategy:"absolute",placement:V.placement})}var o=r.default={name:"popperOffsets",enabled:!0,phase:"read",fn:t,data:{}}},44454:function(L,r,n){"use strict";r.__esModule=!0,r.default=void 0;var e=n(41521),a=c(n(38141)),t=c(n(7770)),o=c(n(39571)),f=n(76770),V=c(n(19820)),k=c(n(43243)),S=c(n(31584)),b=c(n(14380)),p=c(n(92385)),l=n(69031);function c(u){return u&&u.__esModule?u:{default:u}}function m(u){var s=u.state,i=u.options,v=u.name,g=i.mainAxis,C=g===void 0?!0:g,h=i.altAxis,N=h===void 0?!1:h,y=i.boundary,B=i.rootBoundary,I=i.altBoundary,w=i.padding,T=i.tether,A=T===void 0?!0:T,x=i.tetherOffset,E=x===void 0?0:x,M=(0,S.default)(s,{boundary:y,rootBoundary:B,padding:w,altBoundary:I}),D=(0,a.default)(s.placement),P=(0,b.default)(s.placement),R=!P,j=(0,t.default)(D),F=(0,o.default)(j),U=s.modifiersData.popperOffsets,_=s.rects.reference,z=s.rects.popper,G=typeof E=="function"?E(Object.assign({},s.rects,{placement:s.placement})):E,X=typeof G=="number"?{mainAxis:G,altAxis:G}:Object.assign({mainAxis:0,altAxis:0},G),Y=s.modifiersData.offset?s.modifiersData.offset[s.placement]:null,J={x:0,y:0};if(U){if(C){var ie,ae=j==="y"?e.top:e.left,fe=j==="y"?e.bottom:e.right,pe=j==="y"?"height":"width",be=U[j],te=be+M[ae],Q=be-M[fe],ne=A?-z[pe]/2:0,me=P===e.start?_[pe]:z[pe],ce=P===e.start?-z[pe]:-_[pe],ue=s.elements.arrow,oe=A&&ue?(0,V.default)(ue):{width:0,height:0},ke=s.modifiersData["arrow#persistent"]?s.modifiersData["arrow#persistent"].padding:(0,p.default)(),Be=ke[ae],ve=ke[fe],ge=(0,f.within)(0,_[pe],oe[pe]),ye=R?_[pe]/2-ne-ge-Be-X.mainAxis:me-ge-Be-X.mainAxis,Ve=R?-_[pe]/2+ne+ge+ve+X.mainAxis:ce+ge+ve+X.mainAxis,Ie=s.elements.arrow&&(0,k.default)(s.elements.arrow),we=Ie?j==="y"?Ie.clientTop||0:Ie.clientLeft||0:0,xe=(ie=Y==null?void 0:Y[j])!=null?ie:0,Oe=be+ye-xe-we,We=be+Ve-xe,Ne=(0,f.within)(A?(0,l.min)(te,Oe):te,be,A?(0,l.max)(Q,We):Q);U[j]=Ne,J[j]=Ne-be}if(N){var re,de=j==="x"?e.top:e.left,he=j==="x"?e.bottom:e.right,se=U[F],Ce=F==="y"?"height":"width",Ae=se+M[de],De=se-M[he],je=[e.top,e.left].indexOf(D)!==-1,_e=(re=Y==null?void 0:Y[F])!=null?re:0,Ue=je?Ae:se-_[Ce]-z[Ce]-_e+X.altAxis,Ke=je?se+_[Ce]+z[Ce]-_e-X.altAxis:De,$e=A&&je?(0,f.withinMaxClamp)(Ue,se,Ke):(0,f.within)(A?Ue:Ae,se,A?Ke:De);U[F]=$e,J[F]=$e-se}s.modifiersData[v]=J}}var d=r.default={name:"preventOverflow",enabled:!0,phase:"main",fn:m,requiresIfExists:["offset"]}},62642:function(L,r,n){"use strict";r.__esModule=!0,r.defaultModifiers=r.createPopper=void 0;var e=n(66641);r.popperGenerator=e.popperGenerator,r.detectOverflow=e.detectOverflow;var a=V(n(84601)),t=V(n(98916)),o=V(n(60421)),f=V(n(56304));function V(b){return b&&b.__esModule?b:{default:b}}var k=r.defaultModifiers=[a.default,t.default,o.default,f.default],S=r.createPopper=(0,e.popperGenerator)({defaultModifiers:k})},7925:function(L,r,n){"use strict";r.__esModule=!0;var e={createPopper:!0,createPopperLite:!0,defaultModifiers:!0,popperGenerator:!0,detectOverflow:!0};r.defaultModifiers=r.createPopperLite=r.createPopper=void 0;var a=n(66641);r.popperGenerator=a.popperGenerator,r.detectOverflow=a.detectOverflow;var t=d(n(84601)),o=d(n(98916)),f=d(n(60421)),V=d(n(56304)),k=d(n(36707)),S=d(n(17267)),b=d(n(44454)),p=d(n(57243)),l=d(n(88476)),c=n(62642);r.createPopperLite=c.createPopper;var m=n(91078);Object.keys(m).forEach(function(i){i==="default"||i==="__esModule"||Object.prototype.hasOwnProperty.call(e,i)||i in r&&r[i]===m[i]||(r[i]=m[i])});function d(i){return i&&i.__esModule?i:{default:i}}var u=r.defaultModifiers=[t.default,o.default,f.default,V.default,k.default,S.default,b.default,p.default,l.default],s=r.createPopperLite=r.createPopper=(0,a.popperGenerator)({defaultModifiers:u})},44744:function(L,r,n){"use strict";r.__esModule=!0,r.default=V;var e=f(n(14380)),a=n(41521),t=f(n(31584)),o=f(n(38141));function f(k){return k&&k.__esModule?k:{default:k}}function V(k,S){S===void 0&&(S={});var b=S,p=b.placement,l=b.boundary,c=b.rootBoundary,m=b.padding,d=b.flipVariations,u=b.allowedAutoPlacements,s=u===void 0?a.placements:u,i=(0,e.default)(p),v=i?d?a.variationPlacements:a.variationPlacements.filter(function(h){return(0,e.default)(h)===i}):a.basePlacements,g=v.filter(function(h){return s.indexOf(h)>=0});g.length===0&&(g=v);var C=g.reduce(function(h,N){return h[N]=(0,t.default)(k,{placement:N,boundary:l,rootBoundary:c,padding:m})[(0,o.default)(N)],h},{});return Object.keys(C).sort(function(h,N){return C[h]-C[N]})}},47566:function(L,r,n){"use strict";r.__esModule=!0,r.default=V;var e=f(n(38141)),a=f(n(14380)),t=f(n(7770)),o=n(41521);function f(k){return k&&k.__esModule?k:{default:k}}function V(k){var S=k.reference,b=k.element,p=k.placement,l=p?(0,e.default)(p):null,c=p?(0,a.default)(p):null,m=S.x+S.width/2-b.width/2,d=S.y+S.height/2-b.height/2,u;switch(l){case o.top:u={x:m,y:S.y-b.height};break;case o.bottom:u={x:m,y:S.y+S.height};break;case o.right:u={x:S.x+S.width,y:d};break;case o.left:u={x:S.x-b.width,y:d};break;default:u={x:S.x,y:S.y}}var s=l?(0,t.default)(l):null;if(s!=null){var i=s==="y"?"height":"width";switch(c){case o.start:u[s]=u[s]-(S[i]/2-b[i]/2);break;case o.end:u[s]=u[s]+(S[i]/2-b[i]/2);break;default:}}return u}},80798:function(L,r){"use strict";r.__esModule=!0,r.default=n;function n(e){var a;return function(){return a||(a=new Promise(function(t){Promise.resolve().then(function(){a=void 0,t(e())})})),a}}},31584:function(L,r,n){"use strict";r.__esModule=!0,r.default=l;var e=p(n(86380)),a=p(n(33733)),t=p(n(32125)),o=p(n(47566)),f=p(n(31855)),V=n(41521),k=n(72600),S=p(n(77631)),b=p(n(54824));function p(c){return c&&c.__esModule?c:{default:c}}function l(c,m){m===void 0&&(m={});var d=m,u=d.placement,s=u===void 0?c.placement:u,i=d.strategy,v=i===void 0?c.strategy:i,g=d.boundary,C=g===void 0?V.clippingParents:g,h=d.rootBoundary,N=h===void 0?V.viewport:h,y=d.elementContext,B=y===void 0?V.popper:y,I=d.altBoundary,w=I===void 0?!1:I,T=d.padding,A=T===void 0?0:T,x=(0,S.default)(typeof A!="number"?A:(0,b.default)(A,V.basePlacements)),E=B===V.popper?V.reference:V.popper,M=c.rects.popper,D=c.elements[w?E:B],P=(0,e.default)((0,k.isElement)(D)?D:D.contextElement||(0,a.default)(c.elements.popper),C,N,v),R=(0,t.default)(c.elements.reference),j=(0,o.default)({reference:R,element:M,strategy:"absolute",placement:s}),F=(0,f.default)(Object.assign({},M,j)),U=B===V.popper?F:R,_={top:P.top-U.top+x.top,bottom:U.bottom-P.bottom+x.bottom,left:P.left-U.left+x.left,right:U.right-P.right+x.right},z=c.modifiersData.offset;if(B===V.popper&&z){var G=z[s];Object.keys(_).forEach(function(X){var Y=[V.right,V.bottom].indexOf(X)>=0?1:-1,J=[V.top,V.bottom].indexOf(X)>=0?"y":"x";_[X]+=G[J]*Y})}return _}},54824:function(L,r){"use strict";r.__esModule=!0,r.default=n;function n(e,a){return a.reduce(function(t,o){return t[o]=e,t},{})}},39571:function(L,r){"use strict";r.__esModule=!0,r.default=n;function n(e){return e==="x"?"y":"x"}},38141:function(L,r,n){"use strict";r.__esModule=!0,r.default=a;var e=n(41521);function a(t){return t.split("-")[0]}},92385:function(L,r){"use strict";r.__esModule=!0,r.default=n;function n(){return{top:0,right:0,bottom:0,left:0}}},7770:function(L,r){"use strict";r.__esModule=!0,r.default=n;function n(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}},79641:function(L,r){"use strict";r.__esModule=!0,r.default=e;var n={left:"right",right:"left",bottom:"top",top:"bottom"};function e(a){return a.replace(/left|right|bottom|top/g,function(t){return n[t]})}},71976:function(L,r){"use strict";r.__esModule=!0,r.default=e;var n={start:"end",end:"start"};function e(a){return a.replace(/start|end/g,function(t){return n[t]})}},14380:function(L,r){"use strict";r.__esModule=!0,r.default=n;function n(e){return e.split("-")[1]}},69031:function(L,r){"use strict";r.__esModule=!0,r.round=r.min=r.max=void 0;var n=r.max=Math.max,e=r.min=Math.min,a=r.round=Math.round},46343:function(L,r){"use strict";r.__esModule=!0,r.default=n;function n(e){var a=e.reduce(function(t,o){var f=t[o.name];return t[o.name]=f?Object.assign({},f,o,{options:Object.assign({},f.options,o.options),data:Object.assign({},f.data,o.data)}):o,t},{});return Object.keys(a).map(function(t){return a[t]})}},77631:function(L,r,n){"use strict";r.__esModule=!0,r.default=t;var e=a(n(92385));function a(o){return o&&o.__esModule?o:{default:o}}function t(o){return Object.assign({},(0,e.default)(),o)}},17859:function(L,r,n){"use strict";r.__esModule=!0,r.default=t;var e=n(41521);function a(o){var f=new Map,V=new Set,k=[];o.forEach(function(b){f.set(b.name,b)});function S(b){V.add(b.name);var p=[].concat(b.requires||[],b.requiresIfExists||[]);p.forEach(function(l){if(!V.has(l)){var c=f.get(l);c&&S(c)}}),k.push(b)}return o.forEach(function(b){V.has(b.name)||S(b)}),k}function t(o){var f=a(o);return e.modifierPhases.reduce(function(V,k){return V.concat(f.filter(function(S){return S.phase===k}))},[])}},31855:function(L,r){"use strict";r.__esModule=!0,r.default=n;function n(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}},97353:function(L,r){"use strict";r.__esModule=!0,r.default=n;function n(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(a){return a.brand+"/"+a.version}).join(" "):navigator.userAgent}},76770:function(L,r,n){"use strict";r.__esModule=!0,r.within=a,r.withinMaxClamp=t;var e=n(69031);function a(o,f,V){return(0,e.max)(o,(0,e.min)(f,V))}function t(o,f,V){var k=a(o,f,V);return k>V?V:k}},63935:function(L,r){"use strict";r.__esModule=!0,r.Fragment=r.EMPTY_OBJ=r.Component=void 0,r._CI=Et,r._HI=te,r._M=ze,r._MCCC=Ot,r._ME=Pt,r._MFCC=Rt,r._MP=xt,r._MR=ot,r._RFC=vt,r.__render=Ft,r.createComponentVNode=_,r.createFragment=G,r.createPortal=ae,r.createRef=Yt,r.createRenderer=kn,r.createTextVNode=z,r.createVNode=R,r.directClone=J,r.findDOMfromVNode=N,r.forwardRef=Xt,r.getFlagsForElementVnode=pe,r.linkEvent=p,r.normalizeProps=X,r.options=void 0,r.render=Wt,r.rerender=_t,r.version=void 0;var n=Array.isArray;function e(O){var W=typeof O;return W==="string"||W==="number"}function a(O){return O==null}function t(O){return O===null||O===!1||O===!0||O===void 0}function o(O){return typeof O=="function"}function f(O){return typeof O=="string"}function V(O){return typeof O=="number"}function k(O){return O===null}function S(O){return O===void 0}function b(O,W){var K={};if(O)for(var H in O)K[H]=O[H];if(W)for(var Z in W)K[Z]=W[Z];return K}function p(O,W){return o(W)?{data:O,event:W}:null}function l(O){return!k(O)&&typeof O=="object"}var c=r.EMPTY_OBJ={},m=r.Fragment="$F";function d(O){return O.substr(2).toLowerCase()}function u(O,W){O.appendChild(W)}function s(O,W,K){k(K)?u(O,W):O.insertBefore(W,K)}function i(O,W){return W?document.createElementNS("http://www.w3.org/2000/svg",O):document.createElement(O)}function v(O,W,K){O.replaceChild(W,K)}function g(O,W){O.removeChild(W)}function C(O){for(var W=0;W0,Se=k(le),Le=f(le)&&le[0]===D;Te||Se||Le?(K=K||W.slice(0,q),(Te||Le)&&(ee=J(ee)),(Se||Le)&&(ee.key=D+q),K.push(ee)):K&&K.push(ee),ee.flags|=65536}}K=K||W,K.length===0?H=1:H=8}else K=W,K.flags|=65536,W.flags&81920&&(K=J(W)),H=2;return O.children=K,O.childFlags=H,O}function te(O){return t(O)||e(O)?z(O,null):n(O)?G(O,0,null):O.flags&16384?J(O):O}var Q="http://www.w3.org/1999/xlink",ne="http://www.w3.org/XML/1998/namespace",me={"xlink:actuate":Q,"xlink:arcrole":Q,"xlink:href":Q,"xlink:role":Q,"xlink:show":Q,"xlink:title":Q,"xlink:type":Q,"xml:base":ne,"xml:lang":ne,"xml:space":ne};function ce(O){return{onClick:O,onDblClick:O,onFocusIn:O,onFocusOut:O,onKeyDown:O,onKeyPress:O,onKeyUp:O,onMouseDown:O,onMouseMove:O,onMouseUp:O,onTouchEnd:O,onTouchMove:O,onTouchStart:O}}var ue=ce(0),oe=ce(null),ke=ce(!0);function Be(O,W){var K=W.$EV;return K||(K=W.$EV=ce(null)),K[O]||++ue[O]===1&&(oe[O]=re(O)),K}function ve(O,W){var K=W.$EV;K&&K[O]&&(--ue[O]===0&&(document.removeEventListener(d(O),oe[O]),oe[O]=null),K[O]=null)}function ge(O,W,K,H){if(o(K))Be(O,H)[O]=K;else if(l(K)){if(x(W,K))return;Be(O,H)[O]=K}else ve(O,H)}function ye(O){return o(O.composedPath)?O.composedPath()[0]:O.target}function Ve(O,W,K,H){var Z=ye(O);do{if(W&&Z.disabled)return;var q=Z.$EV;if(q){var ee=q[K];if(ee&&(H.dom=Z,ee.event?ee.event(ee.data,O):ee(O),O.cancelBubble))return}Z=Z.parentNode}while(!k(Z))}function Ie(){this.cancelBubble=!0,this.immediatePropagationStopped||this.stopImmediatePropagation()}function we(){return this.defaultPrevented}function xe(){return this.cancelBubble}function Oe(O){var W={dom:document};return O.isDefaultPrevented=we,O.isPropagationStopped=xe,O.stopPropagation=Ie,Object.defineProperty(O,"currentTarget",{configurable:!0,get:function(){function K(){return W.dom}return K}()}),W}function We(O){return function(W){if(W.button!==0){W.stopPropagation();return}Ve(W,!0,O,Oe(W))}}function Ne(O){return function(W){Ve(W,!1,O,Oe(W))}}function re(O){var W=O==="onClick"||O==="onDblClick"?We(O):Ne(O);return document.addEventListener(d(O),W),W}function de(O,W){var K=document.createElement("i");return K.innerHTML=W,K.innerHTML===O.innerHTML}function he(O,W,K){if(O[W]){var H=O[W];H.event?H.event(H.data,K):H(K)}else{var Z=W.toLowerCase();O[Z]&&O[Z](K)}}function se(O,W){var K=function(Z){var q=this.$V;if(q){var ee=q.props||c,le=q.dom;if(f(O))he(ee,O,Z);else for(var Te=0;Te-1&&W.options[q]&&(le=W.options[q].value),K&&a(le)&&(le=O.defaultValue),$e(H,le)}}var Bt=se("onInput",pt),It=se("onChange");function Lt(O,W){Ce(O,"input",Bt),W.onChange&&Ce(O,"change",It)}function pt(O,W,K){var H=O.value,Z=W.value;if(a(H)){if(K){var q=O.defaultValue;!a(q)&&q!==Z&&(W.defaultValue=q,W.value=q)}}else Z!==H&&(W.defaultValue=H,W.value=H)}function wt(O,W,K,H,Z,q){O&64?Ke(H,K):O&256?ft(H,K,Z,W):O&128&&pt(H,K,Z),q&&(K.$V=W)}function $t(O,W,K){O&64?Ue(W,K):O&256?St(W):O&128&&Lt(W,K)}function Tt(O){return O.type&&Ae(O.type)?!a(O.checked):!a(O.value)}function Yt(){return{current:null}}function Xt(O){return{render:O}}function lt(O){O&&!M(O,null)&&O.current&&(O.current=null)}function ot(O,W,K){O&&(o(O)||O.current!==void 0)&&K.push(function(){!M(O,W)&&O.current!==void 0&&(O.current=W)})}function Xe(O,W){Qe(O),y(O,W)}function Qe(O){var W=O.flags,K=O.children,H;if(W&481){H=O.ref;var Z=O.props;lt(H);var q=O.childFlags;if(!k(Z))for(var ee=Object.keys(Z),le=0,Te=ee.length;le0;ee&&(q=Tt(K),q&&$t(W,H,K));for(var le in K)ht(le,null,K[le],H,Z,q,null);ee&&wt(W,O,H,K,!0,q)}function At(O,W,K){var H=te(O.render(W,O.state,K)),Z=K;return o(O.getChildContext)&&(Z=b(K,O.getChildContext())),O.$CX=Z,H}function Et(O,W,K,H,Z,q){var ee=new W(K,H),le=ee.$N=!!(W.getDerivedStateFromProps||ee.getSnapshotBeforeUpdate);if(ee.$SVG=Z,ee.$L=q,O.children=ee,ee.$BS=!1,ee.context=H,ee.props===c&&(ee.props=K),le)ee.state=I(ee,K,ee.state);else if(o(ee.componentWillMount)){ee.$BR=!0,ee.componentWillMount();var Te=ee.$PS;if(!k(Te)){var Se=ee.state;if(k(Se))ee.state=Te;else for(var Le in Te)Se[Le]=Te[Le];ee.$PS=null}ee.$BR=!1}return ee.$LI=At(ee,K,H),ee}function vt(O,W){var K=O.props||c;return O.flags&32768?O.type.render(K,O.ref,W):O.type(K,W)}function ze(O,W,K,H,Z,q){var ee=O.flags|=16384;ee&481?Pt(O,W,K,H,Z,q):ee&4?nn(O,W,K,H,Z,q):ee&8?(on(O,W,K,H,Z,q),Rt(O,q)):ee&512||ee&16?Mt(O,W,Z):ee&8192?tn(O,K,W,H,Z,q):ee&1024&&en(O,K,W,Z,q)}function en(O,W,K,H,Z){ze(O.children,O.ref,W,!1,null,Z);var q=ie();Mt(q,K,H),O.dom=q.dom}function tn(O,W,K,H,Z,q){var ee=O.children,le=O.childFlags;le&12&&ee.length===0&&(le=O.childFlags=2,ee=O.children=ie()),le===2?ze(ee,K,W,H,Z,q):nt(ee,K,W,H,Z,q)}function Mt(O,W,K){var H=O.dom=document.createTextNode(O.children);k(W)||s(W,H,K)}function Pt(O,W,K,H,Z,q){var ee=O.flags,le=O.props,Te=O.className,Se=O.childFlags,Le=O.dom=i(O.type,H=H||(ee&32)>0),Ee=O.children;if(!a(Te)&&Te!==""&&(H?Le.setAttribute("class",Te):Le.className=Te),Se===16)A(Le,Ee);else if(Se!==1){var Pe=H&&O.type!=="foreignObject";Se===2?(Ee.flags&16384&&(O.children=Ee=J(Ee)),ze(Ee,Le,K,Pe,null,q)):(Se===8||Se===4)&&nt(Ee,Le,K,Pe,null,q)}k(W)||s(W,Le,Z),k(le)||xt(O,ee,le,Le,H),ot(O.ref,Le,q)}function nt(O,W,K,H,Z,q){for(var ee=0;eePe)&&(Le=N(ee[Pe-1],!1).nextSibling)}Ct(Te,Se,ee,le,K,H,Z,Le,O,q)}function sn(O,W,K,H){var Z=O.ref,q=W.ref,ee=W.children;if(Ct(O.childFlags,W.childFlags,O.children,ee,Z,K,!1,null,O,H),W.dom=O.dom,Z!==q&&!t(ee)){var le=ee.dom;g(Z,le),u(q,le)}}function mn(O,W,K,H,Z,q){var ee=W.dom=O.dom,le=O.props,Te=W.props,Se=!1,Le=!1,Ee;if(H=H||(Z&32)>0,le!==Te){var Pe=le||c;if(Ee=Te||c,Ee!==c){Se=(Z&448)>0,Se&&(Le=Tt(Ee));for(var Fe in Ee){var Me=Pe[Fe],He=Ee[Fe];Me!==He&&ht(Fe,Me,He,ee,H,Le,O)}}if(Pe!==c)for(var Re in Pe)a(Ee[Re])&&!a(Pe[Re])&&ht(Re,Pe[Re],null,ee,H,Le,O)}var et=W.children,Ye=W.className;O.className!==Ye&&(a(Ye)?ee.removeAttribute("class"):H?ee.setAttribute("class",Ye):ee.className=Ye),Z&4096?dn(ee,et):Ct(O.childFlags,W.childFlags,O.children,et,ee,K,H&&W.type!=="foreignObject",null,O,q),Se&&wt(Z,W,ee,Ee,!1,Le);var at=W.ref,Je=O.ref;Je!==at&&(lt(Je),ot(at,ee,q))}function fn(O,W,K,H,Z,q){Qe(O),nt(W,K,H,Z,N(O,!0),q),y(O,K)}function Ct(O,W,K,H,Z,q,ee,le,Te,Se){switch(O){case 2:switch(W){case 2:Ze(K,H,Z,q,ee,le,Se);break;case 1:Xe(K,Z);break;case 16:Qe(K),A(Z,H);break;default:fn(K,H,Z,q,ee,Se);break}break;case 1:switch(W){case 2:ze(H,Z,q,ee,le,Se);break;case 1:break;case 16:A(Z,H);break;default:nt(H,Z,q,ee,le,Se);break}break;case 16:switch(W){case 16:ln(K,H,Z);break;case 2:dt(Z),ze(H,Z,q,ee,le,Se);break;case 1:dt(Z);break;default:dt(Z),nt(H,Z,q,ee,le,Se);break}break;default:switch(W){case 16:rt(K),A(Z,H);break;case 2:ut(Z,Te,K),ze(H,Z,q,ee,le,Se);break;case 1:ut(Z,Te,K);break;default:var Le=K.length|0,Ee=H.length|0;Le===0?Ee>0&&nt(H,Z,q,ee,le,Se):Ee===0?ut(Z,Te,K):W===8&&O===8?Nn(K,H,Z,q,ee,Le,Ee,le,Te,Se):gn(K,H,Z,q,ee,Le,Ee,le,Se);break}break}}function pn(O,W,K,H,Z){Z.push(function(){O.componentDidUpdate(W,K,H)})}function Dt(O,W,K,H,Z,q,ee,le,Te){var Se=O.state,Le=O.props,Ee=!!O.$N,Pe=o(O.shouldComponentUpdate);if(Ee&&(W=I(O,K,W!==Se?b(Se,W):W)),ee||!Pe||Pe&&O.shouldComponentUpdate(K,W,Z)){!Ee&&o(O.componentWillUpdate)&&O.componentWillUpdate(K,W,Z),O.props=K,O.state=W,O.context=Z;var Fe=null,Me=At(O,K,Z);Ee&&o(O.getSnapshotBeforeUpdate)&&(Fe=O.getSnapshotBeforeUpdate(Le,Se)),Ze(O.$LI,Me,H,O.$CX,q,le,Te),O.$LI=Me,o(O.componentDidUpdate)&&pn(O,Le,Se,Fe,Te)}else O.props=K,O.state=W,O.context=Z}function hn(O,W,K,H,Z,q,ee){var le=W.children=O.children;if(!k(le)){le.$L=ee;var Te=W.props||c,Se=W.ref,Le=O.ref,Ee=le.state;if(!le.$N){if(o(le.componentWillReceiveProps)){if(le.$BR=!0,le.componentWillReceiveProps(Te,H),le.$UN)return;le.$BR=!1}k(le.$PS)||(Ee=b(Ee,le.$PS),le.$PS=null)}Dt(le,Ee,Te,K,H,Z,!1,q,ee),Le!==Se&&(lt(Le),ot(Se,le,ee))}}function vn(O,W,K,H,Z,q,ee){var le=!0,Te=W.props||c,Se=W.ref,Le=O.props,Ee=!a(Se),Pe=O.children;if(Ee&&o(Se.onComponentShouldUpdate)&&(le=Se.onComponentShouldUpdate(Le,Te)),le!==!1){Ee&&o(Se.onComponentWillUpdate)&&Se.onComponentWillUpdate(Le,Te);var Fe=te(vt(W,H));Ze(Pe,Fe,K,H,Z,q,ee),W.children=Fe,Ee&&o(Se.onComponentDidUpdate)&&Se.onComponentDidUpdate(Le,Te)}else W.children=Pe}function Cn(O,W){var K=W.children,H=W.dom=O.dom;K!==O.children&&(H.nodeValue=K)}function gn(O,W,K,H,Z,q,ee,le,Te){for(var Se=q>ee?ee:q,Le=0,Ee,Pe;Leee)for(Le=Se;LeLe||Pe>Ee)break e;Fe=O[Pe],Me=W[Pe]}for(Fe=O[Le],Me=W[Ee];Fe.key===Me.key;){if(Me.flags&16384&&(W[Ee]=Me=J(Me)),Ze(Fe,Me,K,H,Z,le,Se),O[Le]=Me,Le--,Ee--,Pe>Le||Pe>Ee)break e;Fe=O[Le],Me=W[Ee]}}if(Pe>Le){if(Pe<=Ee)for(He=Ee+1,Re=HeEe)for(;Pe<=Le;)Xe(O[Pe++],K);else Vn(O,W,H,q,ee,Le,Ee,Pe,K,Z,le,Te,Se)}function Vn(O,W,K,H,Z,q,ee,le,Te,Se,Le,Ee,Pe){var Fe,Me,He,Re=0,et=le,Ye=le,at=q-le+1,Je=ee-le+1,ct=new Int32Array(Je+1),tt=at===H,Vt=!1,Ge=0,it=0;if(Z<4||(at|Je)<32)for(Re=et;Re<=q;++Re)if(Fe=O[Re],itle?Vt=!0:Ge=le,Me.flags&16384&&(W[le]=Me=J(Me)),Ze(Fe,Me,Te,K,Se,Le,Pe),++it;break}!tt&&le>ee&&Xe(Fe,Te)}else tt||Xe(Fe,Te);else{var zt={};for(Re=Ye;Re<=ee;++Re)zt[W[Re].key]=Re;for(Re=et;Re<=q;++Re)if(Fe=O[Re],itet;)Xe(O[et++],Te);ct[le-Ye]=Re+1,Ge>le?Vt=!0:Ge=le,Me=W[le],Me.flags&16384&&(W[le]=Me=J(Me)),Ze(Fe,Me,Te,K,Se,Le,Pe),++it}else tt||Xe(Fe,Te);else tt||Xe(Fe,Te)}if(tt)ut(Te,Ee,O),nt(W,Te,K,Se,Le,Pe);else if(Vt){var Ht=bn(ct);for(le=Ht.length-1,Re=Je-1;Re>=0;Re--)ct[Re]===0?(Ge=Re+Ye,Me=W[Ge],Me.flags&16384&&(W[Ge]=Me=J(Me)),He=Ge+1,ze(Me,Te,K,Se,He=0;Re--)ct[Re]===0&&(Ge=Re+Ye,Me=W[Ge],Me.flags&16384&&(W[Ge]=Me=J(Me)),He=Ge+1,ze(Me,Te,K,Se,Hejt&&(jt=Te,qe=new Int32Array(Te),st=new Int32Array(Te));K>1,O[qe[le]]0&&(st[K]=qe[q-1]),qe[q]=K)}q=Z+1;var Se=new Int32Array(q);for(ee=qe[q-1];q-- >0;)Se[q]=ee,ee=st[ee],qe[q]=0;return Se}var yn=typeof document!="undefined";yn&&window.Node&&(Node.prototype.$EV=null,Node.prototype.$V=null);function Ft(O,W,K,H){var Z=[],q=W.$V;w.v=!0,a(q)?a(O)||(O.flags&16384&&(O=J(O)),ze(O,W,H,!1,null,Z),W.$V=O,q=O):a(O)?(Xe(q,W),W.$V=null):(O.flags&16384&&(O=J(O)),Ze(q,O,W,H,!1,null,Z),q=W.$V=O),C(Z),w.v=!1,o(K)&&K(),o(T.renderComplete)&&T.renderComplete(q,W)}function Wt(O,W,K,H){K===void 0&&(K=null),H===void 0&&(H=c),Ft(O,W,K,H)}function kn(O){return function(){function W(K,H,Z,q){O||(O=K),Wt(H,O,Z,q)}return W}()}var mt=[],Sn=typeof Promise!="undefined"?Promise.resolve().then.bind(Promise.resolve()):function(O){window.setTimeout(O,0)},gt=!1;function Ut(O,W,K,H){var Z=O.$PS;if(o(W)&&(W=W(Z?b(O.state,Z):O.state,O.props,O.context)),a(Z))O.$PS=W;else for(var q in W)Z[q]=W[q];if(O.$BR)o(K)&&O.$L.push(K.bind(O));else{if(!w.v&&mt.length===0){Kt(O,H),o(K)&&K.call(O);return}if(mt.indexOf(O)===-1&&mt.push(O),H&&(O.$F=!0),gt||(gt=!0,Sn(_t)),o(K)){var ee=O.$QU;ee||(ee=O.$QU=[]),ee.push(K)}}}function Bn(O){for(var W=O.$QU,K=0;K=0;--U){var _=this.tryEntries[U],z=_.completion;if(_.tryLoc==="root")return F("end");if(_.tryLoc<=this.prev){var G=a.call(_,"catchLoc"),X=a.call(_,"finallyLoc");if(G&&X){if(this.prev<_.catchLoc)return F(_.catchLoc,!0);if(this.prev<_.finallyLoc)return F(_.finallyLoc)}else if(G){if(this.prev<_.catchLoc)return F(_.catchLoc,!0)}else if(X){if(this.prev<_.finallyLoc)return F(_.finallyLoc)}else throw new Error("try statement without catch or finally")}}}return P}(),abrupt:function(){function P(R,j){for(var F=this.tryEntries.length-1;F>=0;--F){var U=this.tryEntries[F];if(U.tryLoc<=this.prev&&a.call(U,"finallyLoc")&&this.prev=0;--j){var F=this.tryEntries[j];if(F.finallyLoc===R)return this.complete(F.completion,F.afterLoc),x(F),s}}return P}(),catch:function(){function P(R){for(var j=this.tryEntries.length-1;j>=0;--j){var F=this.tryEntries[j];if(F.tryLoc===R){var U=F.completion;if(U.type==="throw"){var _=U.arg;x(F)}return _}}throw new Error("illegal catch attempt")}return P}(),delegateYield:function(){function P(R,j,F){return this.delegate={iterator:M(R),resultName:j,nextLoc:F},this.method==="next"&&(this.arg=o),s}return P}()},n}(L.exports);try{regeneratorRuntime=r}catch(n){typeof globalThis=="object"?globalThis.regeneratorRuntime=r:Function("r","regeneratorRuntime = r")(r)}},16666:function(){"use strict";self.fetch||(self.fetch=function(L,r){return r=r||{},new Promise(function(n,e){var a=new XMLHttpRequest,t=[],o={},f=function(){function k(){return{ok:(a.status/100|0)==2,statusText:a.statusText,status:a.status,url:a.responseURL,text:function(){function S(){return Promise.resolve(a.responseText)}return S}(),json:function(){function S(){return Promise.resolve(a.responseText).then(JSON.parse)}return S}(),blob:function(){function S(){return Promise.resolve(new Blob([a.response]))}return S}(),clone:k,headers:{keys:function(){function S(){return t}return S}(),entries:function(){function S(){return t.map(function(b){return[b,a.getResponseHeader(b)]})}return S}(),get:function(){function S(b){return a.getResponseHeader(b)}return S}(),has:function(){function S(b){return a.getResponseHeader(b)!=null}return S}()}}}return k}();for(var V in a.open(r.method||"get",L,!0),a.onload=function(){a.getAllResponseHeaders().toLowerCase().replace(/^(.+?):/gm,function(k,S){o[S]||t.push(o[S]=S)}),n(f())},a.onerror=e,a.withCredentials=r.credentials=="include",r.headers)a.setRequestHeader(V,r.headers[V]);a.send(r.body||null)})})},50640:function(L,r){"use strict";r.__esModule=!0,r.zipWith=r.zip=r.uniqBy=r.uniq=r.toKeyedArray=r.toArray=r.sortBy=r.sort=r.reduce=r.range=r.map=r.filterMap=r.filter=void 0;function n(i,v){var g=typeof Symbol!="undefined"&&i[Symbol.iterator]||i["@@iterator"];if(g)return(g=g.call(i)).next.bind(g);if(Array.isArray(i)||(g=e(i))||v&&i&&typeof i.length=="number"){g&&(i=g);var C=0;return function(){return C>=i.length?{done:!0}:{done:!1,value:i[C++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function e(i,v){if(i){if(typeof i=="string")return a(i,v);var g=Object.prototype.toString.call(i).slice(8,-1);if(g==="Object"&&i.constructor&&(g=i.constructor.name),g==="Map"||g==="Set")return Array.from(i);if(g==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(g))return a(i,v)}}function a(i,v){(v==null||v>i.length)&&(v=i.length);for(var g=0,C=new Array(v);g0&&(0,a.round)(p.width)/k.offsetWidth||1,c=k.offsetHeight>0&&(0,a.round)(p.height)/k.offsetHeight||1);var m=(0,e.isElement)(k)?(0,t.default)(k):window,d=m.visualViewport,u=!(0,o.default)()&&b,s=(p.left+(u&&d?d.offsetLeft:0))/l,i=(p.top+(u&&d?d.offsetTop:0))/c,v=p.width/l,C=p.height/c;return{width:v,height:C,top:i,right:s+v,bottom:i+C,left:s,x:s,y:i}}},86380:function(L,r,n){"use strict";r.__esModule=!0,r.default=C;var e=n(41521),a=u(n(2868)),t=u(n(39799)),o=u(n(54826)),f=u(n(43243)),V=u(n(33733)),k=u(n(14522)),S=n(72600),b=u(n(32125)),p=u(n(34972)),l=u(n(96343)),c=u(n(13203)),m=u(n(31855)),d=n(69031);function u(g){return g&&g.__esModule?g:{default:g}}function s(g,h){var N=(0,b.default)(g,!1,h==="fixed");return N.top=N.top+g.clientTop,N.left=N.left+g.clientLeft,N.bottom=N.top+g.clientHeight,N.right=N.left+g.clientWidth,N.width=g.clientWidth,N.height=g.clientHeight,N.x=N.left,N.y=N.top,N}function i(g,h,N){return h===e.viewport?(0,m.default)((0,a.default)(g,N)):(0,S.isElement)(h)?s(h,N):(0,m.default)((0,t.default)((0,V.default)(g)))}function v(g){var h=(0,o.default)((0,p.default)(g)),N=["absolute","fixed"].indexOf((0,k.default)(g).position)>=0,y=N&&(0,S.isHTMLElement)(g)?(0,f.default)(g):g;return(0,S.isElement)(y)?h.filter(function(B){return(0,S.isElement)(B)&&(0,l.default)(B,y)&&(0,c.default)(B)!=="body"}):[]}function C(g,h,N,y){var B=h==="clippingParents"?v(g):[].concat(h),I=[].concat(B,[N]),w=I[0],T=I.reduce(function(A,x){var E=i(g,x,y);return A.top=(0,d.max)(E.top,A.top),A.right=(0,d.min)(E.right,A.right),A.bottom=(0,d.min)(E.bottom,A.bottom),A.left=(0,d.max)(E.left,A.left),A},i(g,w,y));return T.width=T.right-T.left,T.height=T.bottom-T.top,T.x=T.left,T.y=T.top,T}},8823:function(L,r,n){"use strict";r.__esModule=!0,r.default=l;var e=b(n(32125)),a=b(n(45401)),t=b(n(13203)),o=n(72600),f=b(n(85750)),V=b(n(33733)),k=b(n(44011)),S=n(69031);function b(c){return c&&c.__esModule?c:{default:c}}function p(c){var m=c.getBoundingClientRect(),d=(0,S.round)(m.width)/c.offsetWidth||1,u=(0,S.round)(m.height)/c.offsetHeight||1;return d!==1||u!==1}function l(c,m,d){d===void 0&&(d=!1);var u=(0,o.isHTMLElement)(m),s=(0,o.isHTMLElement)(m)&&p(m),i=(0,V.default)(m),v=(0,e.default)(c,s,d),C={scrollLeft:0,scrollTop:0},g={x:0,y:0};return(u||!u&&!d)&&(((0,t.default)(m)!=="body"||(0,k.default)(i))&&(C=(0,a.default)(m)),(0,o.isHTMLElement)(m)?(g=(0,e.default)(m,!0),g.x+=m.clientLeft,g.y+=m.clientTop):i&&(g.x=(0,f.default)(i))),{x:v.left+C.scrollLeft-g.x,y:v.top+C.scrollTop-g.y,width:v.width,height:v.height}}},14522:function(L,r,n){"use strict";r.__esModule=!0,r.default=t;var e=a(n(81020));function a(o){return o&&o.__esModule?o:{default:o}}function t(o){return(0,e.default)(o).getComputedStyle(o)}},33733:function(L,r,n){"use strict";r.__esModule=!0,r.default=a;var e=n(72600);function a(t){return(((0,e.isElement)(t)?t.ownerDocument:t.document)||window.document).documentElement}},39799:function(L,r,n){"use strict";r.__esModule=!0,r.default=k;var e=V(n(33733)),a=V(n(14522)),t=V(n(85750)),o=V(n(79569)),f=n(69031);function V(S){return S&&S.__esModule?S:{default:S}}function k(S){var b,p=(0,e.default)(S),l=(0,o.default)(S),c=(b=S.ownerDocument)==null?void 0:b.body,m=(0,f.max)(p.scrollWidth,p.clientWidth,c?c.scrollWidth:0,c?c.clientWidth:0),d=(0,f.max)(p.scrollHeight,p.clientHeight,c?c.scrollHeight:0,c?c.clientHeight:0),u=-l.scrollLeft+(0,t.default)(S),s=-l.scrollTop;return(0,a.default)(c||p).direction==="rtl"&&(u+=(0,f.max)(p.clientWidth,c?c.clientWidth:0)-m),{width:m,height:d,x:u,y:s}}},75680:function(L,r){"use strict";r.__esModule=!0,r.default=n;function n(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}},19820:function(L,r,n){"use strict";r.__esModule=!0,r.default=t;var e=a(n(32125));function a(o){return o&&o.__esModule?o:{default:o}}function t(o){var f=(0,e.default)(o),V=o.offsetWidth,k=o.offsetHeight;return Math.abs(f.width-V)<=1&&(V=f.width),Math.abs(f.height-k)<=1&&(k=f.height),{x:o.offsetLeft,y:o.offsetTop,width:V,height:k}}},13203:function(L,r){"use strict";r.__esModule=!0,r.default=n;function n(e){return e?(e.nodeName||"").toLowerCase():null}},45401:function(L,r,n){"use strict";r.__esModule=!0,r.default=V;var e=f(n(79569)),a=f(n(81020)),t=n(72600),o=f(n(75680));function f(k){return k&&k.__esModule?k:{default:k}}function V(k){return k===(0,a.default)(k)||!(0,t.isHTMLElement)(k)?(0,e.default)(k):(0,o.default)(k)}},43243:function(L,r,n){"use strict";r.__esModule=!0,r.default=l;var e=S(n(81020)),a=S(n(13203)),t=S(n(14522)),o=n(72600),f=S(n(25658)),V=S(n(34972)),k=S(n(97353));function S(c){return c&&c.__esModule?c:{default:c}}function b(c){return!(0,o.isHTMLElement)(c)||(0,t.default)(c).position==="fixed"?null:c.offsetParent}function p(c){var m=/firefox/i.test((0,k.default)()),d=/Trident/i.test((0,k.default)());if(d&&(0,o.isHTMLElement)(c)){var u=(0,t.default)(c);if(u.position==="fixed")return null}var s=(0,V.default)(c);for((0,o.isShadowRoot)(s)&&(s=s.host);(0,o.isHTMLElement)(s)&&["html","body"].indexOf((0,a.default)(s))<0;){var i=(0,t.default)(s);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||m&&i.willChange==="filter"||m&&i.filter&&i.filter!=="none")return s;s=s.parentNode}return null}function l(c){for(var m=(0,e.default)(c),d=b(c);d&&(0,f.default)(d)&&(0,t.default)(d).position==="static";)d=b(d);return d&&((0,a.default)(d)==="html"||(0,a.default)(d)==="body"&&(0,t.default)(d).position==="static")?m:d||p(c)||m}},34972:function(L,r,n){"use strict";r.__esModule=!0,r.default=f;var e=o(n(13203)),a=o(n(33733)),t=n(72600);function o(V){return V&&V.__esModule?V:{default:V}}function f(V){return(0,e.default)(V)==="html"?V:V.assignedSlot||V.parentNode||((0,t.isShadowRoot)(V)?V.host:null)||(0,a.default)(V)}},65329:function(L,r,n){"use strict";r.__esModule=!0,r.default=V;var e=f(n(34972)),a=f(n(44011)),t=f(n(13203)),o=n(72600);function f(k){return k&&k.__esModule?k:{default:k}}function V(k){return["html","body","#document"].indexOf((0,t.default)(k))>=0?k.ownerDocument.body:(0,o.isHTMLElement)(k)&&(0,a.default)(k)?k:V((0,e.default)(k))}},2868:function(L,r,n){"use strict";r.__esModule=!0,r.default=V;var e=f(n(81020)),a=f(n(33733)),t=f(n(85750)),o=f(n(14894));function f(k){return k&&k.__esModule?k:{default:k}}function V(k,S){var b=(0,e.default)(k),p=(0,a.default)(k),l=b.visualViewport,c=p.clientWidth,m=p.clientHeight,d=0,u=0;if(l){c=l.width,m=l.height;var s=(0,o.default)();(s||!s&&S==="fixed")&&(d=l.offsetLeft,u=l.offsetTop)}return{width:c,height:m,x:d+(0,t.default)(k),y:u}}},81020:function(L,r){"use strict";r.__esModule=!0,r.default=n;function n(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var a=e.ownerDocument;return a&&a.defaultView||window}return e}},79569:function(L,r,n){"use strict";r.__esModule=!0,r.default=t;var e=a(n(81020));function a(o){return o&&o.__esModule?o:{default:o}}function t(o){var f=(0,e.default)(o),V=f.pageXOffset,k=f.pageYOffset;return{scrollLeft:V,scrollTop:k}}},85750:function(L,r,n){"use strict";r.__esModule=!0,r.default=f;var e=o(n(32125)),a=o(n(33733)),t=o(n(79569));function o(V){return V&&V.__esModule?V:{default:V}}function f(V){return(0,e.default)((0,a.default)(V)).left+(0,t.default)(V).scrollLeft}},72600:function(L,r,n){"use strict";r.__esModule=!0,r.isElement=t,r.isHTMLElement=o,r.isShadowRoot=f;var e=a(n(81020));function a(V){return V&&V.__esModule?V:{default:V}}function t(V){var k=(0,e.default)(V).Element;return V instanceof k||V instanceof Element}function o(V){var k=(0,e.default)(V).HTMLElement;return V instanceof k||V instanceof HTMLElement}function f(V){if(typeof ShadowRoot=="undefined")return!1;var k=(0,e.default)(V).ShadowRoot;return V instanceof k||V instanceof ShadowRoot}},14894:function(L,r,n){"use strict";r.__esModule=!0,r.default=t;var e=a(n(97353));function a(o){return o&&o.__esModule?o:{default:o}}function t(){return!/^((?!chrome|android).)*safari/i.test((0,e.default)())}},44011:function(L,r,n){"use strict";r.__esModule=!0,r.default=t;var e=a(n(14522));function a(o){return o&&o.__esModule?o:{default:o}}function t(o){var f=(0,e.default)(o),V=f.overflow,k=f.overflowX,S=f.overflowY;return/auto|scroll|overlay|hidden/.test(V+S+k)}},25658:function(L,r,n){"use strict";r.__esModule=!0,r.default=t;var e=a(n(13203));function a(o){return o&&o.__esModule?o:{default:o}}function t(o){return["table","td","th"].indexOf((0,e.default)(o))>=0}},54826:function(L,r,n){"use strict";r.__esModule=!0,r.default=V;var e=f(n(65329)),a=f(n(34972)),t=f(n(81020)),o=f(n(44011));function f(k){return k&&k.__esModule?k:{default:k}}function V(k,S){var b;S===void 0&&(S=[]);var p=(0,e.default)(k),l=p===((b=k.ownerDocument)==null?void 0:b.body),c=(0,t.default)(p),m=l?[c].concat(c.visualViewport||[],(0,o.default)(p)?p:[]):p,d=S.concat(m);return l?d:d.concat(V((0,a.default)(m)))}},41521:function(L,r){"use strict";r.__esModule=!0,r.write=r.viewport=r.variationPlacements=r.top=r.start=r.right=r.reference=r.read=r.popper=r.placements=r.modifierPhases=r.main=r.left=r.end=r.clippingParents=r.bottom=r.beforeWrite=r.beforeRead=r.beforeMain=r.basePlacements=r.auto=r.afterWrite=r.afterRead=r.afterMain=void 0;var n=r.top="top",e=r.bottom="bottom",a=r.right="right",t=r.left="left",o=r.auto="auto",f=r.basePlacements=[n,e,a,t],V=r.start="start",k=r.end="end",S=r.clippingParents="clippingParents",b=r.viewport="viewport",p=r.popper="popper",l=r.reference="reference",c=r.variationPlacements=f.reduce(function(B,I){return B.concat([I+"-"+V,I+"-"+k])},[]),m=r.placements=[].concat(f,[o]).reduce(function(B,I){return B.concat([I,I+"-"+V,I+"-"+k])},[]),d=r.beforeRead="beforeRead",u=r.read="read",s=r.afterRead="afterRead",i=r.beforeMain="beforeMain",v=r.main="main",C=r.afterMain="afterMain",g=r.beforeWrite="beforeWrite",h=r.write="write",N=r.afterWrite="afterWrite",y=r.modifierPhases=[d,u,s,i,v,C,g,h,N]},60023:function(L,r,n){"use strict";r.__esModule=!0;var e={popperGenerator:!0,detectOverflow:!0,createPopperBase:!0,createPopper:!0,createPopperLite:!0};r.popperGenerator=r.detectOverflow=r.createPopperLite=r.createPopperBase=r.createPopper=void 0;var a=n(41521);Object.keys(a).forEach(function(k){k==="default"||k==="__esModule"||Object.prototype.hasOwnProperty.call(e,k)||k in r&&r[k]===a[k]||(r[k]=a[k])});var t=n(91078);Object.keys(t).forEach(function(k){k==="default"||k==="__esModule"||Object.prototype.hasOwnProperty.call(e,k)||k in r&&r[k]===t[k]||(r[k]=t[k])});var o=n(66641);r.popperGenerator=o.popperGenerator,r.detectOverflow=o.detectOverflow,r.createPopperBase=o.createPopper;var f=n(7925);r.createPopper=f.createPopper;var V=n(62642);r.createPopperLite=V.createPopper},56304:function(L,r,n){"use strict";r.__esModule=!0,r.default=void 0;var e=t(n(13203)),a=n(72600);function t(k){return k&&k.__esModule?k:{default:k}}function o(k){var S=k.state;Object.keys(S.elements).forEach(function(b){var p=S.styles[b]||{},l=S.attributes[b]||{},c=S.elements[b];!(0,a.isHTMLElement)(c)||!(0,e.default)(c)||(Object.assign(c.style,p),Object.keys(l).forEach(function(m){var d=l[m];d===!1?c.removeAttribute(m):c.setAttribute(m,d===!0?"":d)}))})}function f(k){var S=k.state,b={popper:{position:S.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(S.elements.popper.style,b.popper),S.styles=b,S.elements.arrow&&Object.assign(S.elements.arrow.style,b.arrow),function(){Object.keys(S.elements).forEach(function(p){var l=S.elements[p],c=S.attributes[p]||{},m=Object.keys(S.styles.hasOwnProperty(p)?S.styles[p]:b[p]),d=m.reduce(function(u,s){return u[s]="",u},{});!(0,a.isHTMLElement)(l)||!(0,e.default)(l)||(Object.assign(l.style,d),Object.keys(c).forEach(function(u){l.removeAttribute(u)}))})}}var V=r.default={name:"applyStyles",enabled:!0,phase:"write",fn:o,effect:f,requires:["computeStyles"]}},57243:function(L,r,n){"use strict";r.__esModule=!0,r.default=void 0;var e=p(n(38141)),a=p(n(19820)),t=p(n(96343)),o=p(n(43243)),f=p(n(7770)),V=n(76770),k=p(n(77631)),S=p(n(54824)),b=n(41521);function p(u){return u&&u.__esModule?u:{default:u}}var l=function(){function u(s,i){return s=typeof s=="function"?s(Object.assign({},i.rects,{placement:i.placement})):s,(0,k.default)(typeof s!="number"?s:(0,S.default)(s,b.basePlacements))}return u}();function c(u){var s,i=u.state,v=u.name,C=u.options,g=i.elements.arrow,h=i.modifiersData.popperOffsets,N=(0,e.default)(i.placement),y=(0,f.default)(N),B=[b.left,b.right].indexOf(N)>=0,I=B?"height":"width";if(!(!g||!h)){var w=l(C.padding,i),T=(0,a.default)(g),A=y==="y"?b.top:b.left,x=y==="y"?b.bottom:b.right,E=i.rects.reference[I]+i.rects.reference[y]-h[y]-i.rects.popper[I],M=h[y]-i.rects.reference[y],D=(0,o.default)(g),P=D?y==="y"?D.clientHeight||0:D.clientWidth||0:0,R=E/2-M/2,j=w[A],F=P-T[I]-w[x],U=P/2-T[I]/2+R,_=(0,V.within)(j,U,F),z=y;i.modifiersData[v]=(s={},s[z]=_,s.centerOffset=_-U,s)}}function m(u){var s=u.state,i=u.options,v=i.element,C=v===void 0?"[data-popper-arrow]":v;C!=null&&(typeof C=="string"&&(C=s.elements.popper.querySelector(C),!C)||(0,t.default)(s.elements.popper,C)&&(s.elements.arrow=C))}var d=r.default={name:"arrow",enabled:!0,phase:"main",fn:c,effect:m,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]}},60421:function(L,r,n){"use strict";r.__esModule=!0,r.default=void 0,r.mapToStyles=c;var e=n(41521),a=b(n(43243)),t=b(n(81020)),o=b(n(33733)),f=b(n(14522)),V=b(n(38141)),k=b(n(14380)),S=n(69031);function b(u){return u&&u.__esModule?u:{default:u}}var p={top:"auto",right:"auto",bottom:"auto",left:"auto"};function l(u,s){var i=u.x,v=u.y,C=s.devicePixelRatio||1;return{x:(0,S.round)(i*C)/C||0,y:(0,S.round)(v*C)/C||0}}function c(u){var s,i=u.popper,v=u.popperRect,C=u.placement,g=u.variation,h=u.offsets,N=u.position,y=u.gpuAcceleration,B=u.adaptive,I=u.roundOffsets,w=u.isFixed,T=h.x,A=T===void 0?0:T,x=h.y,E=x===void 0?0:x,M=typeof I=="function"?I({x:A,y:E}):{x:A,y:E};A=M.x,E=M.y;var D=h.hasOwnProperty("x"),P=h.hasOwnProperty("y"),R=e.left,j=e.top,F=window;if(B){var U=(0,a.default)(i),_="clientHeight",z="clientWidth";if(U===(0,t.default)(i)&&(U=(0,o.default)(i),(0,f.default)(U).position!=="static"&&N==="absolute"&&(_="scrollHeight",z="scrollWidth")),U=U,C===e.top||(C===e.left||C===e.right)&&g===e.end){j=e.bottom;var G=w&&U===F&&F.visualViewport?F.visualViewport.height:U[_];E-=G-v.height,E*=y?1:-1}if(C===e.left||(C===e.top||C===e.bottom)&&g===e.end){R=e.right;var X=w&&U===F&&F.visualViewport?F.visualViewport.width:U[z];A-=X-v.width,A*=y?1:-1}}var Y=Object.assign({position:N},B&&p),J=I===!0?l({x:A,y:E},(0,t.default)(i)):{x:A,y:E};if(A=J.x,E=J.y,y){var ie;return Object.assign({},Y,(ie={},ie[j]=P?"0":"",ie[R]=D?"0":"",ie.transform=(F.devicePixelRatio||1)<=1?"translate("+A+"px, "+E+"px)":"translate3d("+A+"px, "+E+"px, 0)",ie))}return Object.assign({},Y,(s={},s[j]=P?E+"px":"",s[R]=D?A+"px":"",s.transform="",s))}function m(u){var s=u.state,i=u.options,v=i.gpuAcceleration,C=v===void 0?!0:v,g=i.adaptive,h=g===void 0?!0:g,N=i.roundOffsets,y=N===void 0?!0:N,B={placement:(0,V.default)(s.placement),variation:(0,k.default)(s.placement),popper:s.elements.popper,popperRect:s.rects.popper,gpuAcceleration:C,isFixed:s.options.strategy==="fixed"};s.modifiersData.popperOffsets!=null&&(s.styles.popper=Object.assign({},s.styles.popper,c(Object.assign({},B,{offsets:s.modifiersData.popperOffsets,position:s.options.strategy,adaptive:h,roundOffsets:y})))),s.modifiersData.arrow!=null&&(s.styles.arrow=Object.assign({},s.styles.arrow,c(Object.assign({},B,{offsets:s.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:y})))),s.attributes.popper=Object.assign({},s.attributes.popper,{"data-popper-placement":s.placement})}var d=r.default={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:m,data:{}}},84601:function(L,r,n){"use strict";r.__esModule=!0,r.default=void 0;var e=a(n(81020));function a(V){return V&&V.__esModule?V:{default:V}}var t={passive:!0};function o(V){var k=V.state,S=V.instance,b=V.options,p=b.scroll,l=p===void 0?!0:p,c=b.resize,m=c===void 0?!0:c,d=(0,e.default)(k.elements.popper),u=[].concat(k.scrollParents.reference,k.scrollParents.popper);return l&&u.forEach(function(s){s.addEventListener("scroll",S.update,t)}),m&&d.addEventListener("resize",S.update,t),function(){l&&u.forEach(function(s){s.removeEventListener("scroll",S.update,t)}),m&&d.removeEventListener("resize",S.update,t)}}var f=r.default={name:"eventListeners",enabled:!0,phase:"write",fn:function(){function V(){}return V}(),effect:o,data:{}}},17267:function(L,r,n){"use strict";r.__esModule=!0,r.default=void 0;var e=S(n(79641)),a=S(n(38141)),t=S(n(71976)),o=S(n(31584)),f=S(n(44744)),V=n(41521),k=S(n(14380));function S(c){return c&&c.__esModule?c:{default:c}}function b(c){if((0,a.default)(c)===V.auto)return[];var m=(0,e.default)(c);return[(0,t.default)(c),m,(0,t.default)(m)]}function p(c){var m=c.state,d=c.options,u=c.name;if(!m.modifiersData[u]._skip){for(var s=d.mainAxis,i=s===void 0?!0:s,v=d.altAxis,C=v===void 0?!0:v,g=d.fallbackPlacements,h=d.padding,N=d.boundary,y=d.rootBoundary,B=d.altBoundary,I=d.flipVariations,w=I===void 0?!0:I,T=d.allowedAutoPlacements,A=m.options.placement,x=(0,a.default)(A),E=x===A,M=g||(E||!w?[(0,e.default)(A)]:b(A)),D=[A].concat(M).reduce(function(me,ce){return me.concat((0,a.default)(ce)===V.auto?(0,f.default)(m,{placement:ce,boundary:N,rootBoundary:y,padding:h,flipVariations:w,allowedAutoPlacements:T}):ce)},[]),P=m.rects.reference,R=m.rects.popper,j=new Map,F=!0,U=D[0],_=0;_=0,J=Y?"width":"height",ie=(0,o.default)(m,{placement:z,boundary:N,rootBoundary:y,altBoundary:B,padding:h}),ae=Y?X?V.right:V.left:X?V.bottom:V.top;P[J]>R[J]&&(ae=(0,e.default)(ae));var fe=(0,e.default)(ae),pe=[];if(i&&pe.push(ie[G]<=0),C&&pe.push(ie[ae]<=0,ie[fe]<=0),pe.every(function(me){return me})){U=z,F=!1;break}j.set(z,pe)}if(F)for(var be=w?3:1,te=function(){function me(ce){var ue=D.find(function(oe){var ke=j.get(oe);if(ke)return ke.slice(0,ce).every(function(Be){return Be})});if(ue)return U=ue,"break"}return me}(),Q=be;Q>0;Q--){var ne=te(Q);if(ne==="break")break}m.placement!==U&&(m.modifiersData[u]._skip=!0,m.placement=U,m.reset=!0)}}var l=r.default={name:"flip",enabled:!0,phase:"main",fn:p,requiresIfExists:["offset"],data:{_skip:!1}}},88476:function(L,r,n){"use strict";r.__esModule=!0,r.default=void 0;var e=n(41521),a=t(n(31584));function t(S){return S&&S.__esModule?S:{default:S}}function o(S,b,p){return p===void 0&&(p={x:0,y:0}),{top:S.top-b.height-p.y,right:S.right-b.width+p.x,bottom:S.bottom-b.height+p.y,left:S.left-b.width-p.x}}function f(S){return[e.top,e.right,e.bottom,e.left].some(function(b){return S[b]>=0})}function V(S){var b=S.state,p=S.name,l=b.rects.reference,c=b.rects.popper,m=b.modifiersData.preventOverflow,d=(0,a.default)(b,{elementContext:"reference"}),u=(0,a.default)(b,{altBoundary:!0}),s=o(d,l),i=o(u,c,m),v=f(s),C=f(i);b.modifiersData[p]={referenceClippingOffsets:s,popperEscapeOffsets:i,isReferenceHidden:v,hasPopperEscaped:C},b.attributes.popper=Object.assign({},b.attributes.popper,{"data-popper-reference-hidden":v,"data-popper-escaped":C})}var k=r.default={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:V}},91078:function(L,r,n){"use strict";r.__esModule=!0,r.preventOverflow=r.popperOffsets=r.offset=r.hide=r.flip=r.eventListeners=r.computeStyles=r.arrow=r.applyStyles=void 0;var e=p(n(56304));r.applyStyles=e.default;var a=p(n(57243));r.arrow=a.default;var t=p(n(60421));r.computeStyles=t.default;var o=p(n(84601));r.eventListeners=o.default;var f=p(n(17267));r.flip=f.default;var V=p(n(88476));r.hide=V.default;var k=p(n(36707));r.offset=k.default;var S=p(n(98916));r.popperOffsets=S.default;var b=p(n(44454));r.preventOverflow=b.default;function p(l){return l&&l.__esModule?l:{default:l}}},36707:function(L,r,n){"use strict";r.__esModule=!0,r.default=void 0,r.distanceAndSkiddingToXY=o;var e=t(n(38141)),a=n(41521);function t(k){return k&&k.__esModule?k:{default:k}}function o(k,S,b){var p=(0,e.default)(k),l=[a.left,a.top].indexOf(p)>=0?-1:1,c=typeof b=="function"?b(Object.assign({},S,{placement:k})):b,m=c[0],d=c[1];return m=m||0,d=(d||0)*l,[a.left,a.right].indexOf(p)>=0?{x:d,y:m}:{x:m,y:d}}function f(k){var S=k.state,b=k.options,p=k.name,l=b.offset,c=l===void 0?[0,0]:l,m=a.placements.reduce(function(i,v){return i[v]=o(v,S.rects,c),i},{}),d=m[S.placement],u=d.x,s=d.y;S.modifiersData.popperOffsets!=null&&(S.modifiersData.popperOffsets.x+=u,S.modifiersData.popperOffsets.y+=s),S.modifiersData[p]=m}var V=r.default={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:f}},98916:function(L,r,n){"use strict";r.__esModule=!0,r.default=void 0;var e=a(n(47566));function a(f){return f&&f.__esModule?f:{default:f}}function t(f){var V=f.state,k=f.name;V.modifiersData[k]=(0,e.default)({reference:V.rects.reference,element:V.rects.popper,strategy:"absolute",placement:V.placement})}var o=r.default={name:"popperOffsets",enabled:!0,phase:"read",fn:t,data:{}}},44454:function(L,r,n){"use strict";r.__esModule=!0,r.default=void 0;var e=n(41521),a=c(n(38141)),t=c(n(7770)),o=c(n(39571)),f=n(76770),V=c(n(19820)),k=c(n(43243)),S=c(n(31584)),b=c(n(14380)),p=c(n(92385)),l=n(69031);function c(u){return u&&u.__esModule?u:{default:u}}function m(u){var s=u.state,i=u.options,v=u.name,C=i.mainAxis,g=C===void 0?!0:C,h=i.altAxis,N=h===void 0?!1:h,y=i.boundary,B=i.rootBoundary,I=i.altBoundary,w=i.padding,T=i.tether,A=T===void 0?!0:T,x=i.tetherOffset,E=x===void 0?0:x,M=(0,S.default)(s,{boundary:y,rootBoundary:B,padding:w,altBoundary:I}),D=(0,a.default)(s.placement),P=(0,b.default)(s.placement),R=!P,j=(0,t.default)(D),F=(0,o.default)(j),U=s.modifiersData.popperOffsets,_=s.rects.reference,z=s.rects.popper,G=typeof E=="function"?E(Object.assign({},s.rects,{placement:s.placement})):E,X=typeof G=="number"?{mainAxis:G,altAxis:G}:Object.assign({mainAxis:0,altAxis:0},G),Y=s.modifiersData.offset?s.modifiersData.offset[s.placement]:null,J={x:0,y:0};if(U){if(g){var ie,ae=j==="y"?e.top:e.left,fe=j==="y"?e.bottom:e.right,pe=j==="y"?"height":"width",be=U[j],te=be+M[ae],Q=be-M[fe],ne=A?-z[pe]/2:0,me=P===e.start?_[pe]:z[pe],ce=P===e.start?-z[pe]:-_[pe],ue=s.elements.arrow,oe=A&&ue?(0,V.default)(ue):{width:0,height:0},ke=s.modifiersData["arrow#persistent"]?s.modifiersData["arrow#persistent"].padding:(0,p.default)(),Be=ke[ae],ve=ke[fe],ge=(0,f.within)(0,_[pe],oe[pe]),ye=R?_[pe]/2-ne-ge-Be-X.mainAxis:me-ge-Be-X.mainAxis,Ve=R?-_[pe]/2+ne+ge+ve+X.mainAxis:ce+ge+ve+X.mainAxis,Ie=s.elements.arrow&&(0,k.default)(s.elements.arrow),we=Ie?j==="y"?Ie.clientTop||0:Ie.clientLeft||0:0,xe=(ie=Y==null?void 0:Y[j])!=null?ie:0,Oe=be+ye-xe-we,We=be+Ve-xe,Ne=(0,f.within)(A?(0,l.min)(te,Oe):te,be,A?(0,l.max)(Q,We):Q);U[j]=Ne,J[j]=Ne-be}if(N){var re,de=j==="x"?e.top:e.left,he=j==="x"?e.bottom:e.right,se=U[F],Ce=F==="y"?"height":"width",Ae=se+M[de],De=se-M[he],je=[e.top,e.left].indexOf(D)!==-1,_e=(re=Y==null?void 0:Y[F])!=null?re:0,Ue=je?Ae:se-_[Ce]-z[Ce]-_e+X.altAxis,Ke=je?se+_[Ce]+z[Ce]-_e-X.altAxis:De,$e=A&&je?(0,f.withinMaxClamp)(Ue,se,Ke):(0,f.within)(A?Ue:Ae,se,A?Ke:De);U[F]=$e,J[F]=$e-se}s.modifiersData[v]=J}}var d=r.default={name:"preventOverflow",enabled:!0,phase:"main",fn:m,requiresIfExists:["offset"]}},62642:function(L,r,n){"use strict";r.__esModule=!0,r.defaultModifiers=r.createPopper=void 0;var e=n(66641);r.popperGenerator=e.popperGenerator,r.detectOverflow=e.detectOverflow;var a=V(n(84601)),t=V(n(98916)),o=V(n(60421)),f=V(n(56304));function V(b){return b&&b.__esModule?b:{default:b}}var k=r.defaultModifiers=[a.default,t.default,o.default,f.default],S=r.createPopper=(0,e.popperGenerator)({defaultModifiers:k})},7925:function(L,r,n){"use strict";r.__esModule=!0;var e={createPopper:!0,createPopperLite:!0,defaultModifiers:!0,popperGenerator:!0,detectOverflow:!0};r.defaultModifiers=r.createPopperLite=r.createPopper=void 0;var a=n(66641);r.popperGenerator=a.popperGenerator,r.detectOverflow=a.detectOverflow;var t=d(n(84601)),o=d(n(98916)),f=d(n(60421)),V=d(n(56304)),k=d(n(36707)),S=d(n(17267)),b=d(n(44454)),p=d(n(57243)),l=d(n(88476)),c=n(62642);r.createPopperLite=c.createPopper;var m=n(91078);Object.keys(m).forEach(function(i){i==="default"||i==="__esModule"||Object.prototype.hasOwnProperty.call(e,i)||i in r&&r[i]===m[i]||(r[i]=m[i])});function d(i){return i&&i.__esModule?i:{default:i}}var u=r.defaultModifiers=[t.default,o.default,f.default,V.default,k.default,S.default,b.default,p.default,l.default],s=r.createPopperLite=r.createPopper=(0,a.popperGenerator)({defaultModifiers:u})},44744:function(L,r,n){"use strict";r.__esModule=!0,r.default=V;var e=f(n(14380)),a=n(41521),t=f(n(31584)),o=f(n(38141));function f(k){return k&&k.__esModule?k:{default:k}}function V(k,S){S===void 0&&(S={});var b=S,p=b.placement,l=b.boundary,c=b.rootBoundary,m=b.padding,d=b.flipVariations,u=b.allowedAutoPlacements,s=u===void 0?a.placements:u,i=(0,e.default)(p),v=i?d?a.variationPlacements:a.variationPlacements.filter(function(h){return(0,e.default)(h)===i}):a.basePlacements,C=v.filter(function(h){return s.indexOf(h)>=0});C.length===0&&(C=v);var g=C.reduce(function(h,N){return h[N]=(0,t.default)(k,{placement:N,boundary:l,rootBoundary:c,padding:m})[(0,o.default)(N)],h},{});return Object.keys(g).sort(function(h,N){return g[h]-g[N]})}},47566:function(L,r,n){"use strict";r.__esModule=!0,r.default=V;var e=f(n(38141)),a=f(n(14380)),t=f(n(7770)),o=n(41521);function f(k){return k&&k.__esModule?k:{default:k}}function V(k){var S=k.reference,b=k.element,p=k.placement,l=p?(0,e.default)(p):null,c=p?(0,a.default)(p):null,m=S.x+S.width/2-b.width/2,d=S.y+S.height/2-b.height/2,u;switch(l){case o.top:u={x:m,y:S.y-b.height};break;case o.bottom:u={x:m,y:S.y+S.height};break;case o.right:u={x:S.x+S.width,y:d};break;case o.left:u={x:S.x-b.width,y:d};break;default:u={x:S.x,y:S.y}}var s=l?(0,t.default)(l):null;if(s!=null){var i=s==="y"?"height":"width";switch(c){case o.start:u[s]=u[s]-(S[i]/2-b[i]/2);break;case o.end:u[s]=u[s]+(S[i]/2-b[i]/2);break;default:}}return u}},80798:function(L,r){"use strict";r.__esModule=!0,r.default=n;function n(e){var a;return function(){return a||(a=new Promise(function(t){Promise.resolve().then(function(){a=void 0,t(e())})})),a}}},31584:function(L,r,n){"use strict";r.__esModule=!0,r.default=l;var e=p(n(86380)),a=p(n(33733)),t=p(n(32125)),o=p(n(47566)),f=p(n(31855)),V=n(41521),k=n(72600),S=p(n(77631)),b=p(n(54824));function p(c){return c&&c.__esModule?c:{default:c}}function l(c,m){m===void 0&&(m={});var d=m,u=d.placement,s=u===void 0?c.placement:u,i=d.strategy,v=i===void 0?c.strategy:i,C=d.boundary,g=C===void 0?V.clippingParents:C,h=d.rootBoundary,N=h===void 0?V.viewport:h,y=d.elementContext,B=y===void 0?V.popper:y,I=d.altBoundary,w=I===void 0?!1:I,T=d.padding,A=T===void 0?0:T,x=(0,S.default)(typeof A!="number"?A:(0,b.default)(A,V.basePlacements)),E=B===V.popper?V.reference:V.popper,M=c.rects.popper,D=c.elements[w?E:B],P=(0,e.default)((0,k.isElement)(D)?D:D.contextElement||(0,a.default)(c.elements.popper),g,N,v),R=(0,t.default)(c.elements.reference),j=(0,o.default)({reference:R,element:M,strategy:"absolute",placement:s}),F=(0,f.default)(Object.assign({},M,j)),U=B===V.popper?F:R,_={top:P.top-U.top+x.top,bottom:U.bottom-P.bottom+x.bottom,left:P.left-U.left+x.left,right:U.right-P.right+x.right},z=c.modifiersData.offset;if(B===V.popper&&z){var G=z[s];Object.keys(_).forEach(function(X){var Y=[V.right,V.bottom].indexOf(X)>=0?1:-1,J=[V.top,V.bottom].indexOf(X)>=0?"y":"x";_[X]+=G[J]*Y})}return _}},54824:function(L,r){"use strict";r.__esModule=!0,r.default=n;function n(e,a){return a.reduce(function(t,o){return t[o]=e,t},{})}},39571:function(L,r){"use strict";r.__esModule=!0,r.default=n;function n(e){return e==="x"?"y":"x"}},38141:function(L,r,n){"use strict";r.__esModule=!0,r.default=a;var e=n(41521);function a(t){return t.split("-")[0]}},92385:function(L,r){"use strict";r.__esModule=!0,r.default=n;function n(){return{top:0,right:0,bottom:0,left:0}}},7770:function(L,r){"use strict";r.__esModule=!0,r.default=n;function n(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}},79641:function(L,r){"use strict";r.__esModule=!0,r.default=e;var n={left:"right",right:"left",bottom:"top",top:"bottom"};function e(a){return a.replace(/left|right|bottom|top/g,function(t){return n[t]})}},71976:function(L,r){"use strict";r.__esModule=!0,r.default=e;var n={start:"end",end:"start"};function e(a){return a.replace(/start|end/g,function(t){return n[t]})}},14380:function(L,r){"use strict";r.__esModule=!0,r.default=n;function n(e){return e.split("-")[1]}},69031:function(L,r){"use strict";r.__esModule=!0,r.round=r.min=r.max=void 0;var n=r.max=Math.max,e=r.min=Math.min,a=r.round=Math.round},46343:function(L,r){"use strict";r.__esModule=!0,r.default=n;function n(e){var a=e.reduce(function(t,o){var f=t[o.name];return t[o.name]=f?Object.assign({},f,o,{options:Object.assign({},f.options,o.options),data:Object.assign({},f.data,o.data)}):o,t},{});return Object.keys(a).map(function(t){return a[t]})}},77631:function(L,r,n){"use strict";r.__esModule=!0,r.default=t;var e=a(n(92385));function a(o){return o&&o.__esModule?o:{default:o}}function t(o){return Object.assign({},(0,e.default)(),o)}},17859:function(L,r,n){"use strict";r.__esModule=!0,r.default=t;var e=n(41521);function a(o){var f=new Map,V=new Set,k=[];o.forEach(function(b){f.set(b.name,b)});function S(b){V.add(b.name);var p=[].concat(b.requires||[],b.requiresIfExists||[]);p.forEach(function(l){if(!V.has(l)){var c=f.get(l);c&&S(c)}}),k.push(b)}return o.forEach(function(b){V.has(b.name)||S(b)}),k}function t(o){var f=a(o);return e.modifierPhases.reduce(function(V,k){return V.concat(f.filter(function(S){return S.phase===k}))},[])}},31855:function(L,r){"use strict";r.__esModule=!0,r.default=n;function n(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}},97353:function(L,r){"use strict";r.__esModule=!0,r.default=n;function n(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(a){return a.brand+"/"+a.version}).join(" "):navigator.userAgent}},76770:function(L,r,n){"use strict";r.__esModule=!0,r.within=a,r.withinMaxClamp=t;var e=n(69031);function a(o,f,V){return(0,e.max)(o,(0,e.min)(f,V))}function t(o,f,V){var k=a(o,f,V);return k>V?V:k}},63935:function(L,r){"use strict";r.__esModule=!0,r.Fragment=r.EMPTY_OBJ=r.Component=void 0,r._CI=Et,r._HI=te,r._M=ze,r._MCCC=Ot,r._ME=Pt,r._MFCC=Rt,r._MP=xt,r._MR=ot,r._RFC=vt,r.__render=Ft,r.createComponentVNode=_,r.createFragment=G,r.createPortal=ae,r.createRef=Yt,r.createRenderer=kn,r.createTextVNode=z,r.createVNode=R,r.directClone=J,r.findDOMfromVNode=N,r.forwardRef=Xt,r.getFlagsForElementVnode=pe,r.linkEvent=p,r.normalizeProps=X,r.options=void 0,r.render=Wt,r.rerender=_t,r.version=void 0;var n=Array.isArray;function e(O){var W=typeof O;return W==="string"||W==="number"}function a(O){return O==null}function t(O){return O===null||O===!1||O===!0||O===void 0}function o(O){return typeof O=="function"}function f(O){return typeof O=="string"}function V(O){return typeof O=="number"}function k(O){return O===null}function S(O){return O===void 0}function b(O,W){var K={};if(O)for(var H in O)K[H]=O[H];if(W)for(var Z in W)K[Z]=W[Z];return K}function p(O,W){return o(W)?{data:O,event:W}:null}function l(O){return!k(O)&&typeof O=="object"}var c=r.EMPTY_OBJ={},m=r.Fragment="$F";function d(O){return O.substr(2).toLowerCase()}function u(O,W){O.appendChild(W)}function s(O,W,K){k(K)?u(O,W):O.insertBefore(W,K)}function i(O,W){return W?document.createElementNS("http://www.w3.org/2000/svg",O):document.createElement(O)}function v(O,W,K){O.replaceChild(W,K)}function C(O,W){O.removeChild(W)}function g(O){for(var W=0;W0,Se=k(le),Le=f(le)&&le[0]===D;Te||Se||Le?(K=K||W.slice(0,q),(Te||Le)&&(ee=J(ee)),(Se||Le)&&(ee.key=D+q),K.push(ee)):K&&K.push(ee),ee.flags|=65536}}K=K||W,K.length===0?H=1:H=8}else K=W,K.flags|=65536,W.flags&81920&&(K=J(W)),H=2;return O.children=K,O.childFlags=H,O}function te(O){return t(O)||e(O)?z(O,null):n(O)?G(O,0,null):O.flags&16384?J(O):O}var Q="http://www.w3.org/1999/xlink",ne="http://www.w3.org/XML/1998/namespace",me={"xlink:actuate":Q,"xlink:arcrole":Q,"xlink:href":Q,"xlink:role":Q,"xlink:show":Q,"xlink:title":Q,"xlink:type":Q,"xml:base":ne,"xml:lang":ne,"xml:space":ne};function ce(O){return{onClick:O,onDblClick:O,onFocusIn:O,onFocusOut:O,onKeyDown:O,onKeyPress:O,onKeyUp:O,onMouseDown:O,onMouseMove:O,onMouseUp:O,onTouchEnd:O,onTouchMove:O,onTouchStart:O}}var ue=ce(0),oe=ce(null),ke=ce(!0);function Be(O,W){var K=W.$EV;return K||(K=W.$EV=ce(null)),K[O]||++ue[O]===1&&(oe[O]=re(O)),K}function ve(O,W){var K=W.$EV;K&&K[O]&&(--ue[O]===0&&(document.removeEventListener(d(O),oe[O]),oe[O]=null),K[O]=null)}function ge(O,W,K,H){if(o(K))Be(O,H)[O]=K;else if(l(K)){if(x(W,K))return;Be(O,H)[O]=K}else ve(O,H)}function ye(O){return o(O.composedPath)?O.composedPath()[0]:O.target}function Ve(O,W,K,H){var Z=ye(O);do{if(W&&Z.disabled)return;var q=Z.$EV;if(q){var ee=q[K];if(ee&&(H.dom=Z,ee.event?ee.event(ee.data,O):ee(O),O.cancelBubble))return}Z=Z.parentNode}while(!k(Z))}function Ie(){this.cancelBubble=!0,this.immediatePropagationStopped||this.stopImmediatePropagation()}function we(){return this.defaultPrevented}function xe(){return this.cancelBubble}function Oe(O){var W={dom:document};return O.isDefaultPrevented=we,O.isPropagationStopped=xe,O.stopPropagation=Ie,Object.defineProperty(O,"currentTarget",{configurable:!0,get:function(){function K(){return W.dom}return K}()}),W}function We(O){return function(W){if(W.button!==0){W.stopPropagation();return}Ve(W,!0,O,Oe(W))}}function Ne(O){return function(W){Ve(W,!1,O,Oe(W))}}function re(O){var W=O==="onClick"||O==="onDblClick"?We(O):Ne(O);return document.addEventListener(d(O),W),W}function de(O,W){var K=document.createElement("i");return K.innerHTML=W,K.innerHTML===O.innerHTML}function he(O,W,K){if(O[W]){var H=O[W];H.event?H.event(H.data,K):H(K)}else{var Z=W.toLowerCase();O[Z]&&O[Z](K)}}function se(O,W){var K=function(Z){var q=this.$V;if(q){var ee=q.props||c,le=q.dom;if(f(O))he(ee,O,Z);else for(var Te=0;Te-1&&W.options[q]&&(le=W.options[q].value),K&&a(le)&&(le=O.defaultValue),$e(H,le)}}var Bt=se("onInput",pt),It=se("onChange");function Lt(O,W){Ce(O,"input",Bt),W.onChange&&Ce(O,"change",It)}function pt(O,W,K){var H=O.value,Z=W.value;if(a(H)){if(K){var q=O.defaultValue;!a(q)&&q!==Z&&(W.defaultValue=q,W.value=q)}}else Z!==H&&(W.defaultValue=H,W.value=H)}function wt(O,W,K,H,Z,q){O&64?Ke(H,K):O&256?ft(H,K,Z,W):O&128&&pt(H,K,Z),q&&(K.$V=W)}function $t(O,W,K){O&64?Ue(W,K):O&256?St(W):O&128&&Lt(W,K)}function Tt(O){return O.type&&Ae(O.type)?!a(O.checked):!a(O.value)}function Yt(){return{current:null}}function Xt(O){return{render:O}}function lt(O){O&&!M(O,null)&&O.current&&(O.current=null)}function ot(O,W,K){O&&(o(O)||O.current!==void 0)&&K.push(function(){!M(O,W)&&O.current!==void 0&&(O.current=W)})}function Xe(O,W){Qe(O),y(O,W)}function Qe(O){var W=O.flags,K=O.children,H;if(W&481){H=O.ref;var Z=O.props;lt(H);var q=O.childFlags;if(!k(Z))for(var ee=Object.keys(Z),le=0,Te=ee.length;le0;ee&&(q=Tt(K),q&&$t(W,H,K));for(var le in K)ht(le,null,K[le],H,Z,q,null);ee&&wt(W,O,H,K,!0,q)}function At(O,W,K){var H=te(O.render(W,O.state,K)),Z=K;return o(O.getChildContext)&&(Z=b(K,O.getChildContext())),O.$CX=Z,H}function Et(O,W,K,H,Z,q){var ee=new W(K,H),le=ee.$N=!!(W.getDerivedStateFromProps||ee.getSnapshotBeforeUpdate);if(ee.$SVG=Z,ee.$L=q,O.children=ee,ee.$BS=!1,ee.context=H,ee.props===c&&(ee.props=K),le)ee.state=I(ee,K,ee.state);else if(o(ee.componentWillMount)){ee.$BR=!0,ee.componentWillMount();var Te=ee.$PS;if(!k(Te)){var Se=ee.state;if(k(Se))ee.state=Te;else for(var Le in Te)Se[Le]=Te[Le];ee.$PS=null}ee.$BR=!1}return ee.$LI=At(ee,K,H),ee}function vt(O,W){var K=O.props||c;return O.flags&32768?O.type.render(K,O.ref,W):O.type(K,W)}function ze(O,W,K,H,Z,q){var ee=O.flags|=16384;ee&481?Pt(O,W,K,H,Z,q):ee&4?nn(O,W,K,H,Z,q):ee&8?(on(O,W,K,H,Z,q),Rt(O,q)):ee&512||ee&16?Mt(O,W,Z):ee&8192?tn(O,K,W,H,Z,q):ee&1024&&en(O,K,W,Z,q)}function en(O,W,K,H,Z){ze(O.children,O.ref,W,!1,null,Z);var q=ie();Mt(q,K,H),O.dom=q.dom}function tn(O,W,K,H,Z,q){var ee=O.children,le=O.childFlags;le&12&&ee.length===0&&(le=O.childFlags=2,ee=O.children=ie()),le===2?ze(ee,K,W,H,Z,q):nt(ee,K,W,H,Z,q)}function Mt(O,W,K){var H=O.dom=document.createTextNode(O.children);k(W)||s(W,H,K)}function Pt(O,W,K,H,Z,q){var ee=O.flags,le=O.props,Te=O.className,Se=O.childFlags,Le=O.dom=i(O.type,H=H||(ee&32)>0),Ee=O.children;if(!a(Te)&&Te!==""&&(H?Le.setAttribute("class",Te):Le.className=Te),Se===16)A(Le,Ee);else if(Se!==1){var Pe=H&&O.type!=="foreignObject";Se===2?(Ee.flags&16384&&(O.children=Ee=J(Ee)),ze(Ee,Le,K,Pe,null,q)):(Se===8||Se===4)&&nt(Ee,Le,K,Pe,null,q)}k(W)||s(W,Le,Z),k(le)||xt(O,ee,le,Le,H),ot(O.ref,Le,q)}function nt(O,W,K,H,Z,q){for(var ee=0;eePe)&&(Le=N(ee[Pe-1],!1).nextSibling)}Ct(Te,Se,ee,le,K,H,Z,Le,O,q)}function sn(O,W,K,H){var Z=O.ref,q=W.ref,ee=W.children;if(Ct(O.childFlags,W.childFlags,O.children,ee,Z,K,!1,null,O,H),W.dom=O.dom,Z!==q&&!t(ee)){var le=ee.dom;C(Z,le),u(q,le)}}function mn(O,W,K,H,Z,q){var ee=W.dom=O.dom,le=O.props,Te=W.props,Se=!1,Le=!1,Ee;if(H=H||(Z&32)>0,le!==Te){var Pe=le||c;if(Ee=Te||c,Ee!==c){Se=(Z&448)>0,Se&&(Le=Tt(Ee));for(var Fe in Ee){var Me=Pe[Fe],He=Ee[Fe];Me!==He&&ht(Fe,Me,He,ee,H,Le,O)}}if(Pe!==c)for(var Re in Pe)a(Ee[Re])&&!a(Pe[Re])&&ht(Re,Pe[Re],null,ee,H,Le,O)}var et=W.children,Ye=W.className;O.className!==Ye&&(a(Ye)?ee.removeAttribute("class"):H?ee.setAttribute("class",Ye):ee.className=Ye),Z&4096?dn(ee,et):Ct(O.childFlags,W.childFlags,O.children,et,ee,K,H&&W.type!=="foreignObject",null,O,q),Se&&wt(Z,W,ee,Ee,!1,Le);var at=W.ref,Je=O.ref;Je!==at&&(lt(Je),ot(at,ee,q))}function fn(O,W,K,H,Z,q){Qe(O),nt(W,K,H,Z,N(O,!0),q),y(O,K)}function Ct(O,W,K,H,Z,q,ee,le,Te,Se){switch(O){case 2:switch(W){case 2:Ze(K,H,Z,q,ee,le,Se);break;case 1:Xe(K,Z);break;case 16:Qe(K),A(Z,H);break;default:fn(K,H,Z,q,ee,Se);break}break;case 1:switch(W){case 2:ze(H,Z,q,ee,le,Se);break;case 1:break;case 16:A(Z,H);break;default:nt(H,Z,q,ee,le,Se);break}break;case 16:switch(W){case 16:ln(K,H,Z);break;case 2:dt(Z),ze(H,Z,q,ee,le,Se);break;case 1:dt(Z);break;default:dt(Z),nt(H,Z,q,ee,le,Se);break}break;default:switch(W){case 16:rt(K),A(Z,H);break;case 2:ut(Z,Te,K),ze(H,Z,q,ee,le,Se);break;case 1:ut(Z,Te,K);break;default:var Le=K.length|0,Ee=H.length|0;Le===0?Ee>0&&nt(H,Z,q,ee,le,Se):Ee===0?ut(Z,Te,K):W===8&&O===8?Nn(K,H,Z,q,ee,Le,Ee,le,Te,Se):gn(K,H,Z,q,ee,Le,Ee,le,Se);break}break}}function pn(O,W,K,H,Z){Z.push(function(){O.componentDidUpdate(W,K,H)})}function Dt(O,W,K,H,Z,q,ee,le,Te){var Se=O.state,Le=O.props,Ee=!!O.$N,Pe=o(O.shouldComponentUpdate);if(Ee&&(W=I(O,K,W!==Se?b(Se,W):W)),ee||!Pe||Pe&&O.shouldComponentUpdate(K,W,Z)){!Ee&&o(O.componentWillUpdate)&&O.componentWillUpdate(K,W,Z),O.props=K,O.state=W,O.context=Z;var Fe=null,Me=At(O,K,Z);Ee&&o(O.getSnapshotBeforeUpdate)&&(Fe=O.getSnapshotBeforeUpdate(Le,Se)),Ze(O.$LI,Me,H,O.$CX,q,le,Te),O.$LI=Me,o(O.componentDidUpdate)&&pn(O,Le,Se,Fe,Te)}else O.props=K,O.state=W,O.context=Z}function hn(O,W,K,H,Z,q,ee){var le=W.children=O.children;if(!k(le)){le.$L=ee;var Te=W.props||c,Se=W.ref,Le=O.ref,Ee=le.state;if(!le.$N){if(o(le.componentWillReceiveProps)){if(le.$BR=!0,le.componentWillReceiveProps(Te,H),le.$UN)return;le.$BR=!1}k(le.$PS)||(Ee=b(Ee,le.$PS),le.$PS=null)}Dt(le,Ee,Te,K,H,Z,!1,q,ee),Le!==Se&&(lt(Le),ot(Se,le,ee))}}function vn(O,W,K,H,Z,q,ee){var le=!0,Te=W.props||c,Se=W.ref,Le=O.props,Ee=!a(Se),Pe=O.children;if(Ee&&o(Se.onComponentShouldUpdate)&&(le=Se.onComponentShouldUpdate(Le,Te)),le!==!1){Ee&&o(Se.onComponentWillUpdate)&&Se.onComponentWillUpdate(Le,Te);var Fe=te(vt(W,H));Ze(Pe,Fe,K,H,Z,q,ee),W.children=Fe,Ee&&o(Se.onComponentDidUpdate)&&Se.onComponentDidUpdate(Le,Te)}else W.children=Pe}function Cn(O,W){var K=W.children,H=W.dom=O.dom;K!==O.children&&(H.nodeValue=K)}function gn(O,W,K,H,Z,q,ee,le,Te){for(var Se=q>ee?ee:q,Le=0,Ee,Pe;Leee)for(Le=Se;LeLe||Pe>Ee)break e;Fe=O[Pe],Me=W[Pe]}for(Fe=O[Le],Me=W[Ee];Fe.key===Me.key;){if(Me.flags&16384&&(W[Ee]=Me=J(Me)),Ze(Fe,Me,K,H,Z,le,Se),O[Le]=Me,Le--,Ee--,Pe>Le||Pe>Ee)break e;Fe=O[Le],Me=W[Ee]}}if(Pe>Le){if(Pe<=Ee)for(He=Ee+1,Re=HeEe)for(;Pe<=Le;)Xe(O[Pe++],K);else Vn(O,W,H,q,ee,Le,Ee,Pe,K,Z,le,Te,Se)}function Vn(O,W,K,H,Z,q,ee,le,Te,Se,Le,Ee,Pe){var Fe,Me,He,Re=0,et=le,Ye=le,at=q-le+1,Je=ee-le+1,ct=new Int32Array(Je+1),tt=at===H,Vt=!1,Ge=0,it=0;if(Z<4||(at|Je)<32)for(Re=et;Re<=q;++Re)if(Fe=O[Re],itle?Vt=!0:Ge=le,Me.flags&16384&&(W[le]=Me=J(Me)),Ze(Fe,Me,Te,K,Se,Le,Pe),++it;break}!tt&&le>ee&&Xe(Fe,Te)}else tt||Xe(Fe,Te);else{var zt={};for(Re=Ye;Re<=ee;++Re)zt[W[Re].key]=Re;for(Re=et;Re<=q;++Re)if(Fe=O[Re],itet;)Xe(O[et++],Te);ct[le-Ye]=Re+1,Ge>le?Vt=!0:Ge=le,Me=W[le],Me.flags&16384&&(W[le]=Me=J(Me)),Ze(Fe,Me,Te,K,Se,Le,Pe),++it}else tt||Xe(Fe,Te);else tt||Xe(Fe,Te)}if(tt)ut(Te,Ee,O),nt(W,Te,K,Se,Le,Pe);else if(Vt){var Ht=bn(ct);for(le=Ht.length-1,Re=Je-1;Re>=0;Re--)ct[Re]===0?(Ge=Re+Ye,Me=W[Ge],Me.flags&16384&&(W[Ge]=Me=J(Me)),He=Ge+1,ze(Me,Te,K,Se,He=0;Re--)ct[Re]===0&&(Ge=Re+Ye,Me=W[Ge],Me.flags&16384&&(W[Ge]=Me=J(Me)),He=Ge+1,ze(Me,Te,K,Se,Hejt&&(jt=Te,qe=new Int32Array(Te),st=new Int32Array(Te));K>1,O[qe[le]]0&&(st[K]=qe[q-1]),qe[q]=K)}q=Z+1;var Se=new Int32Array(q);for(ee=qe[q-1];q-- >0;)Se[q]=ee,ee=st[ee],qe[q]=0;return Se}var yn=typeof document!="undefined";yn&&window.Node&&(Node.prototype.$EV=null,Node.prototype.$V=null);function Ft(O,W,K,H){var Z=[],q=W.$V;w.v=!0,a(q)?a(O)||(O.flags&16384&&(O=J(O)),ze(O,W,H,!1,null,Z),W.$V=O,q=O):a(O)?(Xe(q,W),W.$V=null):(O.flags&16384&&(O=J(O)),Ze(q,O,W,H,!1,null,Z),q=W.$V=O),g(Z),w.v=!1,o(K)&&K(),o(T.renderComplete)&&T.renderComplete(q,W)}function Wt(O,W,K,H){K===void 0&&(K=null),H===void 0&&(H=c),Ft(O,W,K,H)}function kn(O){return function(){function W(K,H,Z,q){O||(O=K),Wt(H,O,Z,q)}return W}()}var mt=[],Sn=typeof Promise!="undefined"?Promise.resolve().then.bind(Promise.resolve()):function(O){window.setTimeout(O,0)},gt=!1;function Ut(O,W,K,H){var Z=O.$PS;if(o(W)&&(W=W(Z?b(O.state,Z):O.state,O.props,O.context)),a(Z))O.$PS=W;else for(var q in W)Z[q]=W[q];if(O.$BR)o(K)&&O.$L.push(K.bind(O));else{if(!w.v&&mt.length===0){Kt(O,H),o(K)&&K.call(O);return}if(mt.indexOf(O)===-1&&mt.push(O),H&&(O.$F=!0),gt||(gt=!0,Sn(_t)),o(K)){var ee=O.$QU;ee||(ee=O.$QU=[]),ee.push(K)}}}function Bn(O){for(var W=O.$QU,K=0;K=0;--U){var _=this.tryEntries[U],z=_.completion;if(_.tryLoc==="root")return F("end");if(_.tryLoc<=this.prev){var G=a.call(_,"catchLoc"),X=a.call(_,"finallyLoc");if(G&&X){if(this.prev<_.catchLoc)return F(_.catchLoc,!0);if(this.prev<_.finallyLoc)return F(_.finallyLoc)}else if(G){if(this.prev<_.catchLoc)return F(_.catchLoc,!0)}else if(X){if(this.prev<_.finallyLoc)return F(_.finallyLoc)}else throw new Error("try statement without catch or finally")}}}return P}(),abrupt:function(){function P(R,j){for(var F=this.tryEntries.length-1;F>=0;--F){var U=this.tryEntries[F];if(U.tryLoc<=this.prev&&a.call(U,"finallyLoc")&&this.prev=0;--j){var F=this.tryEntries[j];if(F.finallyLoc===R)return this.complete(F.completion,F.afterLoc),x(F),s}}return P}(),catch:function(){function P(R){for(var j=this.tryEntries.length-1;j>=0;--j){var F=this.tryEntries[j];if(F.tryLoc===R){var U=F.completion;if(U.type==="throw"){var _=U.arg;x(F)}return _}}throw new Error("illegal catch attempt")}return P}(),delegateYield:function(){function P(R,j,F){return this.delegate={iterator:M(R),resultName:j,nextLoc:F},this.method==="next"&&(this.arg=o),s}return P}()},n}(L.exports);try{regeneratorRuntime=r}catch(n){typeof globalThis=="object"?globalThis.regeneratorRuntime=r:Function("r","regeneratorRuntime = r")(r)}},16666:function(){"use strict";self.fetch||(self.fetch=function(L,r){return r=r||{},new Promise(function(n,e){var a=new XMLHttpRequest,t=[],o={},f=function(){function k(){return{ok:(a.status/100|0)==2,statusText:a.statusText,status:a.status,url:a.responseURL,text:function(){function S(){return Promise.resolve(a.responseText)}return S}(),json:function(){function S(){return Promise.resolve(a.responseText).then(JSON.parse)}return S}(),blob:function(){function S(){return Promise.resolve(new Blob([a.response]))}return S}(),clone:k,headers:{keys:function(){function S(){return t}return S}(),entries:function(){function S(){return t.map(function(b){return[b,a.getResponseHeader(b)]})}return S}(),get:function(){function S(b){return a.getResponseHeader(b)}return S}(),has:function(){function S(b){return a.getResponseHeader(b)!=null}return S}()}}}return k}();for(var V in a.open(r.method||"get",L,!0),a.onload=function(){a.getAllResponseHeaders().toLowerCase().replace(/^(.+?):/gm,function(k,S){o[S]||t.push(o[S]=S)}),n(f())},a.onerror=e,a.withCredentials=r.credentials=="include",r.headers)a.setRequestHeader(V,r.headers[V]);a.send(r.body||null)})})},50640:function(L,r){"use strict";r.__esModule=!0,r.zipWith=r.zip=r.uniqBy=r.uniq=r.toKeyedArray=r.toArray=r.sortBy=r.sort=r.reduce=r.range=r.map=r.filterMap=r.filter=void 0;function n(i,v){var C=typeof Symbol!="undefined"&&i[Symbol.iterator]||i["@@iterator"];if(C)return(C=C.call(i)).next.bind(C);if(Array.isArray(i)||(C=e(i))||v&&i&&typeof i.length=="number"){C&&(i=C);var g=0;return function(){return g>=i.length?{done:!0}:{done:!1,value:i[g++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function e(i,v){if(i){if(typeof i=="string")return a(i,v);var C=Object.prototype.toString.call(i).slice(8,-1);if(C==="Object"&&i.constructor&&(C=i.constructor.name),C==="Map"||C==="Set")return Array.from(i);if(C==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(C))return a(i,v)}}function a(i,v){(v==null||v>i.length)&&(v=i.length);for(var C=0,g=new Array(v);CI)return 1}return 0},b=r.sortBy=function(){function i(){for(var v=arguments.length,g=new Array(v),C=0;CI)return 1}return 0},b=r.sortBy=function(){function i(){for(var v=arguments.length,C=new Array(v),g=0;g1?d-1:0),s=1;s1?y-1:0),I=1;I=0;--ce){var ue=this.tryEntries[ce],oe=ue.completion;if(ue.tryLoc==="root")return me("end");if(ue.tryLoc<=this.prev){var ke=C.call(ue,"catchLoc"),Be=C.call(ue,"finallyLoc");if(ke&&Be){if(this.prev=0;--me){var ce=this.tryEntries[me];if(ce.tryLoc<=this.prev&&C.call(ce,"finallyLoc")&&this.prev=0;--ne){var me=this.tryEntries[ne];if(me.finallyLoc===Q)return this.complete(me.completion,me.afterLoc),fe(me),P}}return te}(),catch:function(){function te(Q){for(var ne=this.tryEntries.length-1;ne>=0;--ne){var me=this.tryEntries[ne];if(me.tryLoc===Q){var ce=me.completion;if(ce.type==="throw"){var ue=ce.arg;fe(me)}return ue}}throw Error("illegal catch attempt")}return te}(),delegateYield:function(){function te(Q,ne,me){return this.delegate={iterator:be(Q),resultName:ne,nextLoc:me},this.method==="next"&&(this.arg=i),P}return te}()},v}function e(i,v,g,C,h,N,y){try{var B=i[N](y),I=B.value}catch(w){g(w);return}B.done?v(I):Promise.resolve(I).then(C,h)}function a(i){return function(){var v=this,g=arguments;return new Promise(function(C,h){var N=i.apply(v,g);function y(I){e(N,C,h,y,B,"next",I)}function B(I){e(N,C,h,y,B,"throw",I)}y(void 0)})}}/** + */var a=r.createStore=function(){function S(b,p){if(p)return p(S)(b);var l,c=[],m=function(){function s(){return l}return s}(),d=function(){function s(i){c.push(i)}return s}(),u=function(){function s(i){l=b(l,i);for(var v=0;v1?d-1:0),s=1;s1?y-1:0),I=1;I=0;--ce){var ue=this.tryEntries[ce],oe=ue.completion;if(ue.tryLoc==="root")return me("end");if(ue.tryLoc<=this.prev){var ke=g.call(ue,"catchLoc"),Be=g.call(ue,"finallyLoc");if(ke&&Be){if(this.prev=0;--me){var ce=this.tryEntries[me];if(ce.tryLoc<=this.prev&&g.call(ce,"finallyLoc")&&this.prev=0;--ne){var me=this.tryEntries[ne];if(me.finallyLoc===Q)return this.complete(me.completion,me.afterLoc),fe(me),P}}return te}(),catch:function(){function te(Q){for(var ne=this.tryEntries.length-1;ne>=0;--ne){var me=this.tryEntries[ne];if(me.tryLoc===Q){var ce=me.completion;if(ce.type==="throw"){var ue=ce.arg;fe(me)}return ue}}throw Error("illegal catch attempt")}return te}(),delegateYield:function(){function te(Q,ne,me){return this.delegate={iterator:be(Q),resultName:ne,nextLoc:me},this.method==="next"&&(this.arg=i),P}return te}()},v}function e(i,v,C,g,h,N,y){try{var B=i[N](y),I=B.value}catch(w){C(w);return}B.done?v(I):Promise.resolve(I).then(g,h)}function a(i){return function(){var v=this,C=arguments;return new Promise(function(g,h){var N=i.apply(v,C);function y(I){e(N,g,h,y,B,"next",I)}function B(I){e(N,g,h,y,B,"throw",I)}y(void 0)})}}/** * Browser-agnostic abstraction of key-value web storage. * * @file * @copyright 2020 Aleksej Komarov * @license MIT - */var t=r.IMPL_HUB_STORAGE=0,o=r.IMPL_INDEXED_DB=1,f=1,V="para-tgui",k="storage-v1",S="readonly",b="readwrite",p=function(v){return function(){try{return!!v()}catch(g){return!1}}},l=p(function(){return window.hubStorage&&window.hubStorage.getItem}),c=p(function(){return(window.indexedDB||window.msIndexedDB)&&(window.IDBTransaction||window.msIDBTransaction)}),m=function(){function i(){this.impl=t}var v=i.prototype;return v.get=function(){function g(C){var h=window.hubStorage.getItem("paradise-"+C);if(typeof h=="string")return JSON.parse(h)}return g}(),v.set=function(){function g(C,h){window.hubStorage.setItem("paradise-"+C,JSON.stringify(h))}return g}(),v.remove=function(){function g(C){window.hubStorage.removeItem("paradise-"+C)}return g}(),v.clear=function(){function g(){window.hubStorage.clear()}return g}(),i}(),d=function(){function i(){this.impl=o,this.dbPromise=new Promise(function(g,C){var h=window.indexedDB||window.msIndexedDB,N=h.open(V,f);N.onupgradeneeded=function(){try{N.result.createObjectStore(k)}catch(y){C(new Error("Failed to upgrade IDB: "+N.error))}},N.onsuccess=function(){return g(N.result)},N.onerror=function(){C(new Error("Failed to open IDB: "+N.error))}})}var v=i.prototype;return v.getStore=function(){function g(C){return this.dbPromise.then(function(h){return h.transaction(k,C).objectStore(k)})}return g}(),v.get=function(){var g=a(n().mark(function(){function h(N){var y;return n().wrap(function(){function B(I){for(;;)switch(I.prev=I.next){case 0:return I.next=2,this.getStore(S);case 2:return y=I.sent,I.abrupt("return",new Promise(function(w,T){var A=y.get(N);A.onsuccess=function(){return w(A.result)},A.onerror=function(){return T(A.error)}}));case 4:case"end":return I.stop()}}return B}(),h,this)}return h}()));function C(h){return g.apply(this,arguments)}return C}(),v.set=function(){var g=a(n().mark(function(){function h(N,y){var B;return n().wrap(function(){function I(w){for(;;)switch(w.prev=w.next){case 0:return y===null&&(y=void 0),w.next=3,this.getStore(b);case 3:B=w.sent,B.put(y,N);case 5:case"end":return w.stop()}}return I}(),h,this)}return h}()));function C(h,N){return g.apply(this,arguments)}return C}(),v.remove=function(){var g=a(n().mark(function(){function h(N){var y;return n().wrap(function(){function B(I){for(;;)switch(I.prev=I.next){case 0:return I.next=2,this.getStore(b);case 2:y=I.sent,y.delete(N);case 4:case"end":return I.stop()}}return B}(),h,this)}return h}()));function C(h){return g.apply(this,arguments)}return C}(),v.clear=function(){var g=a(n().mark(function(){function h(){var N;return n().wrap(function(){function y(B){for(;;)switch(B.prev=B.next){case 0:return B.next=2,this.getStore(b);case 2:N=B.sent,N.clear();case 4:case"end":return B.stop()}}return y}(),h,this)}return h}()));function C(){return g.apply(this,arguments)}return C}(),i}(),u=function(){function i(){this.backendPromise=a(n().mark(function(){function g(){var C;return n().wrap(function(){function h(N){for(;;)switch(N.prev=N.next){case 0:if(!Byond.TRIDENT){N.next=13;break}if(!c()){N.next=11;break}return N.prev=2,C=new d,N.next=6,C.dbPromise;case 6:return N.abrupt("return",C);case 9:N.prev=9,N.t0=N.catch(2);case 11:N.next=15;break;case 13:if(!l()){N.next=15;break}return N.abrupt("return",new m);case 15:case"end":return N.stop()}}return h}(),g,null,[[2,9]])}return g}()))()}var v=i.prototype;return v.get=function(){var g=a(n().mark(function(){function h(N){var y;return n().wrap(function(){function B(I){for(;;)switch(I.prev=I.next){case 0:return I.next=2,this.backendPromise;case 2:return y=I.sent,I.abrupt("return",y.get(N));case 4:case"end":return I.stop()}}return B}(),h,this)}return h}()));function C(h){return g.apply(this,arguments)}return C}(),v.set=function(){var g=a(n().mark(function(){function h(N,y){var B;return n().wrap(function(){function I(w){for(;;)switch(w.prev=w.next){case 0:return w.next=2,this.backendPromise;case 2:return B=w.sent,w.abrupt("return",B.set(N,y));case 4:case"end":return w.stop()}}return I}(),h,this)}return h}()));function C(h,N){return g.apply(this,arguments)}return C}(),v.remove=function(){var g=a(n().mark(function(){function h(N){var y;return n().wrap(function(){function B(I){for(;;)switch(I.prev=I.next){case 0:return I.next=2,this.backendPromise;case 2:return y=I.sent,I.abrupt("return",y.remove(N));case 4:case"end":return I.stop()}}return B}(),h,this)}return h}()));function C(h){return g.apply(this,arguments)}return C}(),v.clear=function(){var g=a(n().mark(function(){function h(){var N;return n().wrap(function(){function y(B){for(;;)switch(B.prev=B.next){case 0:return B.next=2,this.backendPromise;case 2:return N=B.sent,B.abrupt("return",N.clear());case 4:case"end":return B.stop()}}return y}(),h,this)}return h}()));function C(){return g.apply(this,arguments)}return C}(),i}(),s=r.storage=new u},78234:function(L,r){"use strict";r.__esModule=!0,r.toTitleCase=r.multiline=r.decodeHtmlEntities=r.createSearch=r.createGlobPattern=r.capitalize=r.buildQueryString=void 0;function n(p,l){var c=typeof Symbol!="undefined"&&p[Symbol.iterator]||p["@@iterator"];if(c)return(c=c.call(p)).next.bind(c);if(Array.isArray(p)||(c=e(p))||l&&p&&typeof p.length=="number"){c&&(p=c);var m=0;return function(){return m>=p.length?{done:!0}:{done:!1,value:p[m++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function e(p,l){if(p){if(typeof p=="string")return a(p,l);var c=Object.prototype.toString.call(p).slice(8,-1);if(c==="Object"&&p.constructor&&(c=p.constructor.name),c==="Map"||c==="Set")return Array.from(p);if(c==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(c))return a(p,l)}}function a(p,l){(l==null||l>p.length)&&(l=p.length);for(var c=0,m=new Array(l);c=p.length?{done:!0}:{done:!1,value:p[m++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function e(p,l){if(p){if(typeof p=="string")return a(p,l);var c=Object.prototype.toString.call(p).slice(8,-1);if(c==="Object"&&p.constructor&&(c=p.constructor.name),c==="Map"||c==="Set")return Array.from(p);if(c==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(c))return a(p,l)}}function a(p,l){(l==null||l>p.length)&&(l=p.length);for(var c=0,m=new Array(l);c",apos:"'"};return l.replace(/
/gi,"\n").replace(/<\/?[a-z0-9-_]+[^>]*>/gi,"").replace(c,function(d,u){return m[u]}).replace(/&#?([0-9]+);/gi,function(d,u){var s=parseInt(u,10);return String.fromCharCode(s)}).replace(/&#x?([0-9a-f]+);/gi,function(d,u){var s=parseInt(u,16);return String.fromCharCode(s)})}return p}(),b=r.buildQueryString=function(){function p(l){return Object.keys(l).map(function(c){return encodeURIComponent(c)+"="+encodeURIComponent(l[c])}).join("&")}return p}()},56052:function(L,r){"use strict";r.__esModule=!0,r.throttle=r.sleep=r.debounce=void 0;/** + */var t=r.multiline=function(){function p(l){if(Array.isArray(l))return p(l.join(""));for(var c=l.split("\n"),m,d=n(c),u;!(u=d()).done;)for(var s=u.value,i=0;i",apos:"'"};return l.replace(/
/gi,"\n").replace(/<\/?[a-z0-9-_]+[^>]*>/gi,"").replace(c,function(d,u){return m[u]}).replace(/&#?([0-9]+);/gi,function(d,u){var s=parseInt(u,10);return String.fromCharCode(s)}).replace(/&#x?([0-9a-f]+);/gi,function(d,u){var s=parseInt(u,16);return String.fromCharCode(s)})}return p}(),b=r.buildQueryString=function(){function p(l){return Object.keys(l).map(function(c){return encodeURIComponent(c)+"="+encodeURIComponent(l[c])}).join("&")}return p}()},56052:function(L,r){"use strict";r.__esModule=!0,r.throttle=r.sleep=r.debounce=void 0;/** * @file * @copyright 2020 Aleksej Komarov * @license MIT @@ -58,7 +58,7 @@ * @file * @copyright 2020 Aleksej Komarov * @license MIT - */var a=function(u,s){return u+s},t=function(u,s){return u-s},o=function(u,s){return u*s},f=function(u,s){return u/s},V=r.vecAdd=function(){function d(){for(var u=arguments.length,s=new Array(u),i=0;i=0)&&(N[B]=C[B]);return N}var k=r.unit=function(){function C(h){if(typeof h=="string")return h.endsWith("px")?parseFloat(h)/12+"rem":h;if(typeof h=="number")return h+"rem"}return C}(),S=r.halfUnit=function(){function C(h){if(typeof h=="string")return k(h);if(typeof h=="number")return k(h*.5)}return C}(),b=function(h){return!p(h)},p=function(h){if(typeof h=="string")return o.CSS_COLORS.includes(h)},l=function(h){return function(N,y){(typeof y=="number"||typeof y=="string")&&(N[h]=y)}},c=function(h,N){return function(y,B){(typeof B=="number"||typeof B=="string")&&(y[h]=N(B))}},m=function(h,N){return function(y,B){B&&(y[h]=N)}},d=function(h,N,y){return function(B,I){if(typeof I=="number"||typeof I=="string")for(var w=0;w0&&(N.style=x),N}return C}(),v=r.computeBoxClassName=function(){function C(h){var N=h.textColor||h.color,y=h.backgroundColor;return(0,e.classes)([p(N)&&"color-"+N,p(y)&&"color-bg-"+y])}return C}(),g=r.Box=function(){function C(h){var N=h.as,y=N===void 0?"div":N,B=h.className,I=h.children,w=V(h,f);if(typeof I=="function")return I(i(h));var T=typeof B=="string"?B+" "+v(w):v(w),A=i(w);return(0,a.createVNode)(t.VNodeFlags.HtmlElement,y,T,I,t.ChildFlags.UnknownChildren,A)}return C}();g.defaultHooks=e.pureComponentHooks},91688:function(L,r,n){"use strict";r.__esModule=!0,r.ButtonInput=r.ButtonConfirm=r.ButtonCheckbox=r.Button=void 0;var e=n(96524),a=n(28234),t=n(68100),o=n(81856),f=n(3051),V=n(11253),k=n(58749),S=["className","fluid","icon","iconRotation","iconSpin","color","textColor","disabled","selected","tooltip","tooltipPosition","ellipsis","compact","circular","content","iconColor","iconRight","iconStyle","children","onclick","onClick","multiLine"],b=["checked"],p=["confirmContent","confirmColor","confirmIcon","icon","color","content","onClick"],l=["fluid","content","icon","iconRotation","iconSpin","tooltip","tooltipPosition","color","disabled","placeholder","maxLength","multiLine"];/** + */function V(g,h){if(g==null)return{};var N={},y=Object.keys(g),B,I;for(I=0;I=0)&&(N[B]=g[B]);return N}var k=r.unit=function(){function g(h){if(typeof h=="string")return h.endsWith("px")?parseFloat(h)/12+"rem":h;if(typeof h=="number")return h+"rem"}return g}(),S=r.halfUnit=function(){function g(h){if(typeof h=="string")return k(h);if(typeof h=="number")return k(h*.5)}return g}(),b=function(h){return!p(h)},p=function(h){if(typeof h=="string")return o.CSS_COLORS.includes(h)},l=function(h){return function(N,y){(typeof y=="number"||typeof y=="string")&&(N[h]=y)}},c=function(h,N){return function(y,B){(typeof B=="number"||typeof B=="string")&&(y[h]=N(B))}},m=function(h,N){return function(y,B){B&&(y[h]=N)}},d=function(h,N,y){return function(B,I){if(typeof I=="number"||typeof I=="string")for(var w=0;w0&&(N.style=x),N}return g}(),v=r.computeBoxClassName=function(){function g(h){var N=h.textColor||h.color,y=h.backgroundColor;return(0,e.classes)([p(N)&&"color-"+N,p(y)&&"color-bg-"+y])}return g}(),C=r.Box=function(){function g(h){var N=h.as,y=N===void 0?"div":N,B=h.className,I=h.children,w=V(h,f);if(typeof I=="function")return I(i(h));var T=typeof B=="string"?B+" "+v(w):v(w),A=i(w);return(0,a.createVNode)(t.VNodeFlags.HtmlElement,y,T,I,t.ChildFlags.UnknownChildren,A)}return g}();C.defaultHooks=e.pureComponentHooks},91688:function(L,r,n){"use strict";r.__esModule=!0,r.ButtonInput=r.ButtonConfirm=r.ButtonCheckbox=r.Button=void 0;var e=n(96524),a=n(28234),t=n(68100),o=n(81856),f=n(3051),V=n(11253),k=n(58749),S=["className","fluid","icon","iconRotation","iconSpin","color","textColor","disabled","selected","tooltip","tooltipPosition","ellipsis","compact","circular","content","iconColor","iconRight","iconStyle","children","onclick","onClick","multiLine"],b=["checked"],p=["confirmContent","confirmColor","confirmIcon","icon","color","content","onClick"],l=["fluid","content","icon","iconRotation","iconSpin","tooltip","tooltipPosition","color","disabled","placeholder","maxLength","multiLine"];/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */function c(C,h){C.prototype=Object.create(h.prototype),C.prototype.constructor=C,m(C,h)}function m(C,h){return m=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function N(y,B){return y.__proto__=B,y}return N}(),m(C,h)}function d(C,h){if(C==null)return{};var N={},y=Object.keys(C),B,I;for(I=0;I=0)&&(N[B]=C[B]);return N}var u=(0,o.createLogger)("Button"),s=r.Button=function(){function C(h){var N=h.className,y=h.fluid,B=h.icon,I=h.iconRotation,w=h.iconSpin,T=h.color,A=h.textColor,x=h.disabled,E=h.selected,M=h.tooltip,D=h.tooltipPosition,P=h.ellipsis,R=h.compact,j=h.circular,F=h.content,U=h.iconColor,_=h.iconRight,z=h.iconStyle,G=h.children,X=h.onclick,Y=h.onClick,J=h.multiLine,ie=d(h,S),ae=!!(F||G);X&&u.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"),ie.onClick=function(pe){!x&&Y&&Y(pe)};var fe=(0,e.normalizeProps)((0,e.createComponentVNode)(2,f.Box,Object.assign({className:(0,a.classes)(["Button",y&&"Button--fluid",x&&"Button--disabled",E&&"Button--selected",ae&&"Button--hasContent",P&&"Button--ellipsis",j&&"Button--circular",R&&"Button--compact",_&&"Button--iconRight",J&&"Button--multiLine",T&&typeof T=="string"?"Button--color--"+T:"Button--color--default",N]),tabIndex:!x&&"0",color:A,onKeyDown:function(){function pe(be){var te=window.event?be.which:be.keyCode;if(te===t.KEY_SPACE||te===t.KEY_ENTER){be.preventDefault(),!x&&Y&&Y(be);return}if(te===t.KEY_ESCAPE){be.preventDefault();return}}return pe}()},ie,{children:[B&&!_&&(0,e.createComponentVNode)(2,V.Icon,{name:B,color:U,rotation:I,spin:w,style:z}),F,G,B&&_&&(0,e.createComponentVNode)(2,V.Icon,{name:B,color:U,rotation:I,spin:w,style:z})]})));return M&&(fe=(0,e.createComponentVNode)(2,k.Tooltip,{content:M,position:D,children:fe})),fe}return C}();s.defaultHooks=a.pureComponentHooks;var i=r.ButtonCheckbox=function(){function C(h){var N=h.checked,y=d(h,b);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,s,Object.assign({color:"transparent",icon:N?"check-square-o":"square-o",selected:N},y)))}return C}();s.Checkbox=i;var v=r.ButtonConfirm=function(C){function h(){var y;return y=C.call(this)||this,y.state={clickedOnce:!1},y.handleClick=function(){y.state.clickedOnce&&y.setClickedOnce(!1)},y}c(h,C);var N=h.prototype;return N.setClickedOnce=function(){function y(B){var I=this;this.setState({clickedOnce:B}),B?setTimeout(function(){return window.addEventListener("click",I.handleClick)}):window.removeEventListener("click",this.handleClick)}return y}(),N.render=function(){function y(){var B=this,I=this.props,w=I.confirmContent,T=w===void 0?"Confirm?":w,A=I.confirmColor,x=A===void 0?"bad":A,E=I.confirmIcon,M=I.icon,D=I.color,P=I.content,R=I.onClick,j=d(I,p);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,s,Object.assign({content:this.state.clickedOnce?T:P,icon:this.state.clickedOnce?E:M,color:this.state.clickedOnce?x:D,onClick:function(){function F(){return B.state.clickedOnce?R():B.setClickedOnce(!0)}return F}()},j)))}return y}(),h}(e.Component);s.Confirm=v;var g=r.ButtonInput=function(C){function h(){var y;return y=C.call(this)||this,y.inputRef=(0,e.createRef)(),y.state={inInput:!1},y}c(h,C);var N=h.prototype;return N.setInInput=function(){function y(B){var I=this.props.disabled;if(!I&&(this.setState({inInput:B}),this.inputRef)){var w=this.inputRef.current;if(B){w.value=this.props.currentValue||"";try{w.focus(),w.select()}catch(T){}}}}return y}(),N.commitResult=function(){function y(B){if(this.inputRef){var I=this.inputRef.current,w=I.value!=="";if(w){this.props.onCommit(B,I.value);return}else{if(!this.props.defaultValue)return;this.props.onCommit(B,this.props.defaultValue)}}}return y}(),N.render=function(){function y(){var B=this,I=this.props,w=I.fluid,T=I.content,A=I.icon,x=I.iconRotation,E=I.iconSpin,M=I.tooltip,D=I.tooltipPosition,P=I.color,R=P===void 0?"default":P,j=I.disabled,F=I.placeholder,U=I.maxLength,_=I.multiLine,z=d(I,l),G=(0,e.normalizeProps)((0,e.createComponentVNode)(2,f.Box,Object.assign({className:(0,a.classes)(["Button",w&&"Button--fluid",j&&"Button--disabled","Button--color--"+R,_+"Button--multiLine"])},z,{onClick:function(){function X(){return B.setInInput(!0)}return X}(),children:[A&&(0,e.createComponentVNode)(2,V.Icon,{name:A,rotation:x,spin:E}),(0,e.createVNode)(1,"div",null,T,0),(0,e.createVNode)(64,"input","NumberInput__input",null,1,{style:{display:this.state.inInput?void 0:"none","text-align":"left"},onBlur:function(){function X(Y){B.state.inInput&&(B.setInInput(!1),B.commitResult(Y))}return X}(),onKeyDown:function(){function X(Y){if(Y.keyCode===t.KEY_ENTER){B.setInInput(!1),B.commitResult(Y);return}Y.keyCode===t.KEY_ESCAPE&&B.setInInput(!1)}return X}()},null,this.inputRef)]})));return M&&(G=(0,e.createComponentVNode)(2,k.Tooltip,{content:M,position:D,children:G})),G}return y}(),h}(e.Component);s.Input=g},42204:function(L,r,n){"use strict";r.__esModule=!0,r.ByondUi=void 0;var e=n(96524),a=n(28234),t=n(56052),o=n(81856),f=n(3051),V=["params"],k=["params"],S=["parent","params"];function b(v,g){if(v==null)return{};var C={},h=Object.keys(v),N,y;for(y=0;y=0)&&(C[N]=v[N]);return C}function p(v,g){v.prototype=Object.create(g.prototype),v.prototype.constructor=v,l(v,g)}function l(v,g){return l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function C(h,N){return h.__proto__=N,h}return C}(),l(v,g)}/** + */function c(g,h){g.prototype=Object.create(h.prototype),g.prototype.constructor=g,m(g,h)}function m(g,h){return m=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function N(y,B){return y.__proto__=B,y}return N}(),m(g,h)}function d(g,h){if(g==null)return{};var N={},y=Object.keys(g),B,I;for(I=0;I=0)&&(N[B]=g[B]);return N}var u=(0,o.createLogger)("Button"),s=r.Button=function(){function g(h){var N=h.className,y=h.fluid,B=h.icon,I=h.iconRotation,w=h.iconSpin,T=h.color,A=h.textColor,x=h.disabled,E=h.selected,M=h.tooltip,D=h.tooltipPosition,P=h.ellipsis,R=h.compact,j=h.circular,F=h.content,U=h.iconColor,_=h.iconRight,z=h.iconStyle,G=h.children,X=h.onclick,Y=h.onClick,J=h.multiLine,ie=d(h,S),ae=!!(F||G);X&&u.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"),ie.onClick=function(pe){!x&&Y&&Y(pe)};var fe=(0,e.normalizeProps)((0,e.createComponentVNode)(2,f.Box,Object.assign({className:(0,a.classes)(["Button",y&&"Button--fluid",x&&"Button--disabled",E&&"Button--selected",ae&&"Button--hasContent",P&&"Button--ellipsis",j&&"Button--circular",R&&"Button--compact",_&&"Button--iconRight",J&&"Button--multiLine",T&&typeof T=="string"?"Button--color--"+T:"Button--color--default",N]),tabIndex:!x&&"0",color:A,onKeyDown:function(){function pe(be){var te=window.event?be.which:be.keyCode;if(te===t.KEY_SPACE||te===t.KEY_ENTER){be.preventDefault(),!x&&Y&&Y(be);return}if(te===t.KEY_ESCAPE){be.preventDefault();return}}return pe}()},ie,{children:[B&&!_&&(0,e.createComponentVNode)(2,V.Icon,{name:B,color:U,rotation:I,spin:w,style:z}),F,G,B&&_&&(0,e.createComponentVNode)(2,V.Icon,{name:B,color:U,rotation:I,spin:w,style:z})]})));return M&&(fe=(0,e.createComponentVNode)(2,k.Tooltip,{content:M,position:D,children:fe})),fe}return g}();s.defaultHooks=a.pureComponentHooks;var i=r.ButtonCheckbox=function(){function g(h){var N=h.checked,y=d(h,b);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,s,Object.assign({color:"transparent",icon:N?"check-square-o":"square-o",selected:N},y)))}return g}();s.Checkbox=i;var v=r.ButtonConfirm=function(g){function h(){var y;return y=g.call(this)||this,y.state={clickedOnce:!1},y.handleClick=function(){y.state.clickedOnce&&y.setClickedOnce(!1)},y}c(h,g);var N=h.prototype;return N.setClickedOnce=function(){function y(B){var I=this;this.setState({clickedOnce:B}),B?setTimeout(function(){return window.addEventListener("click",I.handleClick)}):window.removeEventListener("click",this.handleClick)}return y}(),N.render=function(){function y(){var B=this,I=this.props,w=I.confirmContent,T=w===void 0?"Confirm?":w,A=I.confirmColor,x=A===void 0?"bad":A,E=I.confirmIcon,M=I.icon,D=I.color,P=I.content,R=I.onClick,j=d(I,p);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,s,Object.assign({content:this.state.clickedOnce?T:P,icon:this.state.clickedOnce?E:M,color:this.state.clickedOnce?x:D,onClick:function(){function F(){return B.state.clickedOnce?R():B.setClickedOnce(!0)}return F}()},j)))}return y}(),h}(e.Component);s.Confirm=v;var C=r.ButtonInput=function(g){function h(){var y;return y=g.call(this)||this,y.inputRef=(0,e.createRef)(),y.state={inInput:!1},y}c(h,g);var N=h.prototype;return N.setInInput=function(){function y(B){var I=this.props.disabled;if(!I&&(this.setState({inInput:B}),this.inputRef)){var w=this.inputRef.current;if(B){w.value=this.props.currentValue||"";try{w.focus(),w.select()}catch(T){}}}}return y}(),N.commitResult=function(){function y(B){if(this.inputRef){var I=this.inputRef.current,w=I.value!=="";if(w){this.props.onCommit(B,I.value);return}else{if(!this.props.defaultValue)return;this.props.onCommit(B,this.props.defaultValue)}}}return y}(),N.render=function(){function y(){var B=this,I=this.props,w=I.fluid,T=I.content,A=I.icon,x=I.iconRotation,E=I.iconSpin,M=I.tooltip,D=I.tooltipPosition,P=I.color,R=P===void 0?"default":P,j=I.disabled,F=I.placeholder,U=I.maxLength,_=I.multiLine,z=d(I,l),G=(0,e.normalizeProps)((0,e.createComponentVNode)(2,f.Box,Object.assign({className:(0,a.classes)(["Button",w&&"Button--fluid",j&&"Button--disabled","Button--color--"+R,_+"Button--multiLine"])},z,{onClick:function(){function X(){return B.setInInput(!0)}return X}(),children:[A&&(0,e.createComponentVNode)(2,V.Icon,{name:A,rotation:x,spin:E}),(0,e.createVNode)(1,"div",null,T,0),(0,e.createVNode)(64,"input","NumberInput__input",null,1,{style:{display:this.state.inInput?void 0:"none","text-align":"left"},onBlur:function(){function X(Y){B.state.inInput&&(B.setInInput(!1),B.commitResult(Y))}return X}(),onKeyDown:function(){function X(Y){if(Y.keyCode===t.KEY_ENTER){B.setInInput(!1),B.commitResult(Y);return}Y.keyCode===t.KEY_ESCAPE&&B.setInInput(!1)}return X}()},null,this.inputRef)]})));return M&&(G=(0,e.createComponentVNode)(2,k.Tooltip,{content:M,position:D,children:G})),G}return y}(),h}(e.Component);s.Input=C},42204:function(L,r,n){"use strict";r.__esModule=!0,r.ByondUi=void 0;var e=n(96524),a=n(28234),t=n(56052),o=n(81856),f=n(3051),V=["params"],k=["params"],S=["parent","params"];function b(v,C){if(v==null)return{};var g={},h=Object.keys(v),N,y;for(y=0;y=0)&&(g[N]=v[N]);return g}function p(v,C){v.prototype=Object.create(C.prototype),v.prototype.constructor=v,l(v,C)}function l(v,C){return l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function g(h,N){return h.__proto__=N,h}return g}(),l(v,C)}/** * @file * @copyright 2020 Aleksej Komarov * @license MIT -*/var c=(0,o.createLogger)("ByondUi"),m=[],d=function(g){var C=m.length;m.push(null);var h=g||"byondui_"+C;return c.log("allocated '"+h+"'"),{render:function(){function N(y){c.log("rendering '"+h+"'"),m[C]=h,Byond.winset(h,y)}return N}(),unmount:function(){function N(){c.log("unmounting '"+h+"'"),m[C]=null,Byond.winset(h,{parent:""})}return N}()}};window.addEventListener("beforeunload",function(){for(var v=0;v=0)&&(s[v]=d[v]);return s}function k(d,u){d.prototype=Object.create(u.prototype),d.prototype.constructor=d,S(d,u)}function S(d,u){return S=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function s(i,v){return i.__proto__=v,i}return s}(),S(d,u)}/** +*/var c=(0,o.createLogger)("ByondUi"),m=[],d=function(C){var g=m.length;m.push(null);var h=C||"byondui_"+g;return c.log("allocated '"+h+"'"),{render:function(){function N(y){c.log("rendering '"+h+"'"),m[g]=h,Byond.winset(h,y)}return N}(),unmount:function(){function N(){c.log("unmounting '"+h+"'"),m[g]=null,Byond.winset(h,{parent:""})}return N}()}};window.addEventListener("beforeunload",function(){for(var v=0;v=0)&&(s[v]=d[v]);return s}function k(d,u){d.prototype=Object.create(u.prototype),d.prototype.constructor=d,S(d,u)}function S(d,u){return S=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function s(i,v){return i.__proto__=v,i}return s}(),S(d,u)}/** * @file * @copyright 2020 Aleksej Komarov * @license MIT -*/var b=function(u,s,i,v){if(u.length===0)return[];var g=(0,a.zipWith)(Math.min).apply(void 0,u),C=(0,a.zipWith)(Math.max).apply(void 0,u);i!==void 0&&(g[0]=i[0],C[0]=i[1]),v!==void 0&&(g[1]=v[0],C[1]=v[1]);var h=(0,a.map)(function(N){return(0,a.zipWith)(function(y,B,I,w){return(y-B)/(I-B)*w})(N,g,C,s)})(u);return h},p=function(u){for(var s="",i=0;i0){var P=D[0],R=D[D.length-1];D.push([M[0]+x,R[1]]),D.push([M[0]+x,-x]),D.push([-x,-x]),D.push([-x,P[1]])}var j=p(D);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Box,Object.assign({position:"relative"},E,{children:function(){function F(U){return(0,e.normalizeProps)((0,e.createVNode)(1,"div",null,(0,e.createVNode)(32,"svg",null,(0,e.createVNode)(32,"polyline",null,null,1,{transform:"scale(1, -1) translate(0, -"+M[1]+")",fill:I,stroke:T,"stroke-width":x,points:j}),2,{viewBox:"0 0 "+M[0]+" "+M[1],preserveAspectRatio:"none",style:{position:"absolute",top:0,left:0,right:0,bottom:0,overflow:"hidden"}}),2,Object.assign({},U),null,v.ref))}return F}()})))}return i}(),u}(e.Component);l.defaultHooks=t.pureComponentHooks;var c=function(u){return null},m=r.Chart={Line:l}},83974:function(L,r,n){"use strict";r.__esModule=!0,r.Collapsible=void 0;var e=n(96524),a=n(3051),t=n(91688),o=["children","color","title","buttons"];function f(b,p){if(b==null)return{};var l={},c=Object.keys(b),m,d;for(d=0;d=0)&&(l[m]=b[m]);return l}function V(b,p){b.prototype=Object.create(p.prototype),b.prototype.constructor=b,k(b,p)}function k(b,p){return k=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function l(c,m){return c.__proto__=m,c}return l}(),k(b,p)}/** +*/var b=function(u,s,i,v){if(u.length===0)return[];var C=(0,a.zipWith)(Math.min).apply(void 0,u),g=(0,a.zipWith)(Math.max).apply(void 0,u);i!==void 0&&(C[0]=i[0],g[0]=i[1]),v!==void 0&&(C[1]=v[0],g[1]=v[1]);var h=(0,a.map)(function(N){return(0,a.zipWith)(function(y,B,I,w){return(y-B)/(I-B)*w})(N,C,g,s)})(u);return h},p=function(u){for(var s="",i=0;i0){var P=D[0],R=D[D.length-1];D.push([M[0]+x,R[1]]),D.push([M[0]+x,-x]),D.push([-x,-x]),D.push([-x,P[1]])}var j=p(D);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Box,Object.assign({position:"relative"},E,{children:function(){function F(U){return(0,e.normalizeProps)((0,e.createVNode)(1,"div",null,(0,e.createVNode)(32,"svg",null,(0,e.createVNode)(32,"polyline",null,null,1,{transform:"scale(1, -1) translate(0, -"+M[1]+")",fill:I,stroke:T,"stroke-width":x,points:j}),2,{viewBox:"0 0 "+M[0]+" "+M[1],preserveAspectRatio:"none",style:{position:"absolute",top:0,left:0,right:0,bottom:0,overflow:"hidden"}}),2,Object.assign({},U),null,v.ref))}return F}()})))}return i}(),u}(e.Component);l.defaultHooks=t.pureComponentHooks;var c=function(u){return null},m=r.Chart={Line:l}},83974:function(L,r,n){"use strict";r.__esModule=!0,r.Collapsible=void 0;var e=n(96524),a=n(3051),t=n(91688),o=["children","color","title","buttons"];function f(b,p){if(b==null)return{};var l={},c=Object.keys(b),m,d;for(d=0;d=0)&&(l[m]=b[m]);return l}function V(b,p){b.prototype=Object.create(p.prototype),b.prototype.constructor=b,k(b,p)}function k(b,p){return k=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function l(c,m){return c.__proto__=m,c}return l}(),k(b,p)}/** * @file * @copyright 2020 Aleksej Komarov * @license MIT -*/var S=r.Collapsible=function(b){function p(c){var m;m=b.call(this,c)||this;var d=c.open;return m.state={open:d||!1},m}V(p,b);var l=p.prototype;return l.render=function(){function c(){var m=this,d=this.props,u=this.state.open,s=d.children,i=d.color,v=i===void 0?"default":i,g=d.title,C=d.buttons,h=f(d,o);return(0,e.createComponentVNode)(2,a.Box,{className:"Collapsible",children:[(0,e.createVNode)(1,"div","Table",[(0,e.createVNode)(1,"div","Table__cell",(0,e.normalizeProps)((0,e.createComponentVNode)(2,t.Button,Object.assign({fluid:!0,color:v,icon:u?"chevron-down":"chevron-right",onClick:function(){function N(){return m.setState({open:!u})}return N}()},h,{children:g}))),2),C&&(0,e.createVNode)(1,"div","Table__cell Table__cell--collapsing",C,0)],0),u&&(0,e.createComponentVNode)(2,a.Box,{mt:1,children:s})]})}return c}(),p}(e.Component)},26236:function(L,r,n){"use strict";r.__esModule=!0,r.ColorBox=void 0;var e=n(96524),a=n(28234),t=n(3051),o=["content","children","className","color","backgroundColor"];/** +*/var S=r.Collapsible=function(b){function p(c){var m;m=b.call(this,c)||this;var d=c.open;return m.state={open:d||!1},m}V(p,b);var l=p.prototype;return l.render=function(){function c(){var m=this,d=this.props,u=this.state.open,s=d.children,i=d.color,v=i===void 0?"default":i,C=d.title,g=d.buttons,h=f(d,o);return(0,e.createComponentVNode)(2,a.Box,{className:"Collapsible",children:[(0,e.createVNode)(1,"div","Table",[(0,e.createVNode)(1,"div","Table__cell",(0,e.normalizeProps)((0,e.createComponentVNode)(2,t.Button,Object.assign({fluid:!0,color:v,icon:u?"chevron-down":"chevron-right",onClick:function(){function N(){return m.setState({open:!u})}return N}()},h,{children:C}))),2),g&&(0,e.createVNode)(1,"div","Table__cell Table__cell--collapsing",g,0)],0),u&&(0,e.createComponentVNode)(2,a.Box,{mt:1,children:s})]})}return c}(),p}(e.Component)},26236:function(L,r,n){"use strict";r.__esModule=!0,r.ColorBox=void 0;var e=n(96524),a=n(28234),t=n(3051),o=["content","children","className","color","backgroundColor"];/** * @file * @copyright 2020 Aleksej Komarov * @license MIT @@ -113,11 +113,11 @@ * @file * @copyright 2020 Aleksej Komarov * @license MIT - */var t=r.Divider=function(){function o(f){var V=f.vertical,k=f.hidden;return(0,e.createVNode)(1,"div",(0,a.classes)(["Divider",k&&"Divider--hidden",V?"Divider--vertical":"Divider--horizontal"]))}return o}()},27648:function(L,r,n){"use strict";r.__esModule=!0,r.DraggableControl=void 0;var e=n(96524),a=n(36121),t=n(28234),o=n(65416);function f(p,l){p.prototype=Object.create(l.prototype),p.prototype.constructor=p,V(p,l)}function V(p,l){return V=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function c(m,d){return m.__proto__=d,m}return c}(),V(p,l)}var k=400,S=function(l,c){return l.screenX*c[0]+l.screenY*c[1]},b=r.DraggableControl=function(p){function l(m){var d;return d=p.call(this,m)||this,d.inputRef=(0,e.createRef)(),d.state={originalValue:m.value,value:m.value,dragging:!1,editing:!1,origin:null,suppressingFlicker:!1},d.flickerTimer=null,d.suppressFlicker=function(){var u=d.props.suppressFlicker;u>0&&(d.setState({suppressingFlicker:!0}),clearTimeout(d.flickerTimer),d.flickerTimer=setTimeout(function(){return d.setState({suppressingFlicker:!1})},u))},d.handleDragStart=function(u){var s=d.props,i=s.value,v=s.dragMatrix,g=s.disabled,C=d.state.editing;C||g||(document.body.style["pointer-events"]="none",d.ref=u.currentTarget,d.setState({originalValue:i,dragging:!1,value:i,origin:S(u,v)}),d.timer=setTimeout(function(){d.setState({dragging:!0})},250),d.dragInterval=setInterval(function(){var h=d.state,N=h.dragging,y=h.value,B=d.props.onDrag;N&&B&&B(u,y)},d.props.updateRate||k),document.addEventListener("mousemove",d.handleDragMove),document.addEventListener("mouseup",d.handleDragEnd))},d.handleDragMove=function(u){var s,i=d.props,v=i.minValue,g=i.maxValue,C=i.step,h=i.dragMatrix,N=i.disabled;if(!N){var y=d.ref.offsetWidth/((g-v)/C),B=(s=d.props.stepPixelSize)!=null?s:y;typeof B=="function"&&(B=B(y)),d.setState(function(I){var w=Object.assign({},I),T=I.origin,A=S(u,h)-T;if(I.dragging){var x=Math.trunc(A/B);w.value=(0,a.clamp)(Math.floor(w.originalValue/C)*C+x*C,v,g)}else Math.abs(A)>4&&(w.dragging=!0);return w})}},d.handleDragEnd=function(u){var s=d.props,i=s.onChange,v=s.onDrag,g=d.state,C=g.dragging,h=g.value;if(document.body.style["pointer-events"]="auto",clearTimeout(d.timer),clearInterval(d.dragInterval),d.setState({originalValue:null,dragging:!1,editing:!C,origin:null}),document.removeEventListener("mousemove",d.handleDragMove),document.removeEventListener("mouseup",d.handleDragEnd),C)d.suppressFlicker(),i&&i(u,h),v&&v(u,h);else if(d.inputRef){var N=d.inputRef.current;N.value=h;try{N.focus(),N.select()}catch(y){}}},d}f(l,p);var c=l.prototype;return c.render=function(){function m(){var d=this,u=this.state,s=u.dragging,i=u.editing,v=u.value,g=u.suppressingFlicker,C=this.props,h=C.animated,N=C.value,y=C.unit,B=C.minValue,I=C.maxValue,w=C.format,T=C.onChange,A=C.onDrag,x=C.children,E=C.height,M=C.lineHeight,D=C.fontSize,P=C.disabled,R=N;(s||g)&&(R=v);var j=function(){function _(z){return z+(y?" "+y:"")}return _}(),F=h&&!s&&!g&&(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:R,format:w,children:j})||j(w?w(R):R),U=(0,e.createVNode)(64,"input","NumberInput__input",null,1,{style:{display:!i||P?"none":void 0,height:E,"line-height":M,"font-size":D},onBlur:function(){function _(z){if(i){var G=(0,a.clamp)(parseFloat(z.target.value),B,I);if(Number.isNaN(G)){d.setState({editing:!1});return}d.setState({editing:!1,value:G}),d.suppressFlicker(),T&&T(z,G),A&&A(z,G)}}return _}(),onKeyDown:function(){function _(z){if(z.keyCode===13){var G=(0,a.clamp)(parseFloat(z.target.value),B,I);if(Number.isNaN(G)){d.setState({editing:!1});return}d.setState({editing:!1,value:G}),d.suppressFlicker(),T&&T(z,G),A&&A(z,G);return}if(z.keyCode===27){d.setState({editing:!1});return}}return _}(),disabled:P},null,this.inputRef);return x({dragging:s,editing:i,value:N,displayValue:R,displayElement:F,inputElement:U,handleDragStart:this.handleDragStart})}return m}(),l}(e.Component);b.defaultHooks=t.pureComponentHooks,b.defaultProps={minValue:-1/0,maxValue:1/0,step:1,suppressFlicker:50,dragMatrix:[1,0]}},45293:function(L,r,n){"use strict";r.__esModule=!0,r.Dropdown=void 0;var e=n(96524),a=n(60023),t=n(28234),o=n(3051),f=n(11253),V=["icon","iconRotation","iconSpin","clipSelectedText","color","dropdownStyle","over","nochevron","width","onClick","onSelected","selected","disabled","displayText"],k=["className"],S;function b(i,v){if(i==null)return{};var g={},C=Object.keys(i),h,N;for(N=0;N=0)&&(g[h]=i[h]);return g}function p(i,v){i.prototype=Object.create(v.prototype),i.prototype.constructor=i,l(i,v)}function l(i,v){return l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function g(C,h){return C.__proto__=h,C}return g}(),l(i,v)}var c={placement:"left-start",modifiers:[{name:"eventListeners",enabled:!1}]},m={width:0,height:0,top:0,right:0,bottom:0,left:0,x:0,y:0,toJSON:function(){function i(){return null}return i}()},d="Layout Dropdown__menu",u="Layout Dropdown__menu-scroll",s=r.Dropdown=function(i){function v(C){var h;return h=i.call(this,C)||this,h.menuContents=void 0,h.handleClick=function(){h.state.open&&h.setOpen(!1)},h.state={open:!1,selected:h.props.selected},h.menuContents=null,h}p(v,i);var g=v.prototype;return g.getDOMNode=function(){function C(){return(0,e.findDOMfromVNode)(this.$LI,!0)}return C}(),g.componentDidMount=function(){function C(){var h=this.getDOMNode()}return C}(),g.openMenu=function(){function C(){var h=v.renderedMenu;h===void 0&&(h=document.createElement("div"),h.className=d,document.body.appendChild(h),v.renderedMenu=h);var N=this.getDOMNode();v.currentOpenMenu=N,h.scrollTop=0,h.style.width=this.props.menuWidth||N.offsetWidth+"px",h.style.opacity="1",h.style.pointerEvents="auto",setTimeout(function(){var y;(y=v.renderedMenu)==null||y.focus()},400),this.renderMenuContent()}return C}(),g.closeMenu=function(){function C(){v.currentOpenMenu===this.getDOMNode()&&(v.currentOpenMenu=void 0,v.renderedMenu.style.opacity="0",v.renderedMenu.style.pointerEvents="none")}return C}(),g.componentWillUnmount=function(){function C(){this.closeMenu(),this.setOpen(!1)}return C}(),g.renderMenuContent=function(){function C(){var h=this,N=v.renderedMenu;if(N){N.offsetHeight>200?N.className=u:N.className=d;var y=this.props.options,B=y===void 0?[]:y,I=B.map(function(T){var A,x;return typeof T=="string"?(x=T,A=T):T!==null&&(x=T.displayText,A=T.value),(0,e.createVNode)(1,"div",(0,t.classes)(["Dropdown__menuentry",h.state.selected===A&&"selected"]),x,0,{onClick:function(){function E(){h.setSelected(A)}return E}()},A)}),w=I.length?I:"No Options Found";(0,e.render)((0,e.createVNode)(1,"div",null,w,0),N,function(){var T=v.singletonPopper;T===void 0?(T=(0,a.createPopper)(v.virtualElement,N,Object.assign({},c,{placement:"bottom-start"})),v.singletonPopper=T):(T.setOptions(Object.assign({},c,{placement:"bottom-start"})),T.update())},this.context)}}return C}(),g.setOpen=function(){function C(h){var N=this;this.setState(function(y){return Object.assign({},y,{open:h})}),h?setTimeout(function(){N.openMenu(),window.addEventListener("click",N.handleClick)}):(this.closeMenu(),window.removeEventListener("click",this.handleClick))}return C}(),g.setSelected=function(){function C(h){this.setState(function(N){return Object.assign({},N,{selected:h})}),this.setOpen(!1),this.props.onSelected&&this.props.onSelected(h)}return C}(),g.render=function(){function C(){var h=this,N=this.props,y=N.icon,B=N.iconRotation,I=N.iconSpin,w=N.clipSelectedText,T=w===void 0?!0:w,A=N.color,x=A===void 0?"default":A,E=N.dropdownStyle,M=N.over,D=N.nochevron,P=N.width,R=N.onClick,j=N.onSelected,F=N.selected,U=N.disabled,_=N.displayText,z=b(N,V),G=z.className,X=b(z,k),Y=M?!this.state.open:this.state.open;return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Box,Object.assign({width:P,className:(0,t.classes)(["Dropdown__control","Button","Button--color--"+x,U&&"Button--disabled",G]),onClick:function(){function J(ie){U&&!h.state.open||(h.setOpen(!h.state.open),R&&R(ie))}return J}()},X,{children:[y&&(0,e.createComponentVNode)(2,f.Icon,{name:y,rotation:B,spin:I,mr:1}),(0,e.createVNode)(1,"span","Dropdown__selected-text",_||this.state.selected,0,{style:{overflow:T?"hidden":"visible"}}),D||(0,e.createVNode)(1,"span","Dropdown__arrow-button",(0,e.createComponentVNode)(2,f.Icon,{name:Y?"chevron-up":"chevron-down"}),2)]})))}return C}(),v}(e.Component);S=s,s.renderedMenu=void 0,s.singletonPopper=void 0,s.currentOpenMenu=void 0,s.virtualElement={getBoundingClientRect:function(){function i(){var v,g;return(v=(g=S.currentOpenMenu)==null?void 0:g.getBoundingClientRect())!=null?v:m}return i}()}},18963:function(L,r,n){"use strict";r.__esModule=!0,r.computeFlexProps=r.computeFlexItemProps=r.computeFlexItemClassName=r.computeFlexClassName=r.Flex=void 0;var e=n(96524),a=n(28234),t=n(3051),o=["className","direction","wrap","align","justify","inline","style"],f=["className"],V=["className","style","grow","order","shrink","basis","align"],k=["className"];/** + */var t=r.Divider=function(){function o(f){var V=f.vertical,k=f.hidden;return(0,e.createVNode)(1,"div",(0,a.classes)(["Divider",k&&"Divider--hidden",V?"Divider--vertical":"Divider--horizontal"]))}return o}()},27648:function(L,r,n){"use strict";r.__esModule=!0,r.DraggableControl=void 0;var e=n(96524),a=n(36121),t=n(28234),o=n(65416);function f(p,l){p.prototype=Object.create(l.prototype),p.prototype.constructor=p,V(p,l)}function V(p,l){return V=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function c(m,d){return m.__proto__=d,m}return c}(),V(p,l)}var k=400,S=function(l,c){return l.screenX*c[0]+l.screenY*c[1]},b=r.DraggableControl=function(p){function l(m){var d;return d=p.call(this,m)||this,d.inputRef=(0,e.createRef)(),d.state={originalValue:m.value,value:m.value,dragging:!1,editing:!1,origin:null,suppressingFlicker:!1},d.flickerTimer=null,d.suppressFlicker=function(){var u=d.props.suppressFlicker;u>0&&(d.setState({suppressingFlicker:!0}),clearTimeout(d.flickerTimer),d.flickerTimer=setTimeout(function(){return d.setState({suppressingFlicker:!1})},u))},d.handleDragStart=function(u){var s=d.props,i=s.value,v=s.dragMatrix,C=s.disabled,g=d.state.editing;g||C||(document.body.style["pointer-events"]="none",d.ref=u.currentTarget,d.setState({originalValue:i,dragging:!1,value:i,origin:S(u,v)}),d.timer=setTimeout(function(){d.setState({dragging:!0})},250),d.dragInterval=setInterval(function(){var h=d.state,N=h.dragging,y=h.value,B=d.props.onDrag;N&&B&&B(u,y)},d.props.updateRate||k),document.addEventListener("mousemove",d.handleDragMove),document.addEventListener("mouseup",d.handleDragEnd))},d.handleDragMove=function(u){var s,i=d.props,v=i.minValue,C=i.maxValue,g=i.step,h=i.dragMatrix,N=i.disabled;if(!N){var y=d.ref.offsetWidth/((C-v)/g),B=(s=d.props.stepPixelSize)!=null?s:y;typeof B=="function"&&(B=B(y)),d.setState(function(I){var w=Object.assign({},I),T=I.origin,A=S(u,h)-T;if(I.dragging){var x=Math.trunc(A/B);w.value=(0,a.clamp)(Math.floor(w.originalValue/g)*g+x*g,v,C)}else Math.abs(A)>4&&(w.dragging=!0);return w})}},d.handleDragEnd=function(u){var s=d.props,i=s.onChange,v=s.onDrag,C=d.state,g=C.dragging,h=C.value;if(document.body.style["pointer-events"]="auto",clearTimeout(d.timer),clearInterval(d.dragInterval),d.setState({originalValue:null,dragging:!1,editing:!g,origin:null}),document.removeEventListener("mousemove",d.handleDragMove),document.removeEventListener("mouseup",d.handleDragEnd),g)d.suppressFlicker(),i&&i(u,h),v&&v(u,h);else if(d.inputRef){var N=d.inputRef.current;N.value=h;try{N.focus(),N.select()}catch(y){}}},d}f(l,p);var c=l.prototype;return c.render=function(){function m(){var d=this,u=this.state,s=u.dragging,i=u.editing,v=u.value,C=u.suppressingFlicker,g=this.props,h=g.animated,N=g.value,y=g.unit,B=g.minValue,I=g.maxValue,w=g.format,T=g.onChange,A=g.onDrag,x=g.children,E=g.height,M=g.lineHeight,D=g.fontSize,P=g.disabled,R=N;(s||C)&&(R=v);var j=function(){function _(z){return z+(y?" "+y:"")}return _}(),F=h&&!s&&!C&&(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:R,format:w,children:j})||j(w?w(R):R),U=(0,e.createVNode)(64,"input","NumberInput__input",null,1,{style:{display:!i||P?"none":void 0,height:E,"line-height":M,"font-size":D},onBlur:function(){function _(z){if(i){var G=(0,a.clamp)(parseFloat(z.target.value),B,I);if(Number.isNaN(G)){d.setState({editing:!1});return}d.setState({editing:!1,value:G}),d.suppressFlicker(),T&&T(z,G),A&&A(z,G)}}return _}(),onKeyDown:function(){function _(z){if(z.keyCode===13){var G=(0,a.clamp)(parseFloat(z.target.value),B,I);if(Number.isNaN(G)){d.setState({editing:!1});return}d.setState({editing:!1,value:G}),d.suppressFlicker(),T&&T(z,G),A&&A(z,G);return}if(z.keyCode===27){d.setState({editing:!1});return}}return _}(),disabled:P},null,this.inputRef);return x({dragging:s,editing:i,value:N,displayValue:R,displayElement:F,inputElement:U,handleDragStart:this.handleDragStart})}return m}(),l}(e.Component);b.defaultHooks=t.pureComponentHooks,b.defaultProps={minValue:-1/0,maxValue:1/0,step:1,suppressFlicker:50,dragMatrix:[1,0]}},45293:function(L,r,n){"use strict";r.__esModule=!0,r.Dropdown=void 0;var e=n(96524),a=n(60023),t=n(28234),o=n(3051),f=n(11253),V=["icon","iconRotation","iconSpin","clipSelectedText","color","dropdownStyle","over","nochevron","width","onClick","onSelected","selected","disabled","displayText"],k=["className"],S;function b(i,v){if(i==null)return{};var C={},g=Object.keys(i),h,N;for(N=0;N=0)&&(C[h]=i[h]);return C}function p(i,v){i.prototype=Object.create(v.prototype),i.prototype.constructor=i,l(i,v)}function l(i,v){return l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function C(g,h){return g.__proto__=h,g}return C}(),l(i,v)}var c={placement:"left-start",modifiers:[{name:"eventListeners",enabled:!1}]},m={width:0,height:0,top:0,right:0,bottom:0,left:0,x:0,y:0,toJSON:function(){function i(){return null}return i}()},d="Layout Dropdown__menu",u="Layout Dropdown__menu-scroll",s=r.Dropdown=function(i){function v(g){var h;return h=i.call(this,g)||this,h.menuContents=void 0,h.handleClick=function(){h.state.open&&h.setOpen(!1)},h.state={open:!1,selected:h.props.selected},h.menuContents=null,h}p(v,i);var C=v.prototype;return C.getDOMNode=function(){function g(){return(0,e.findDOMfromVNode)(this.$LI,!0)}return g}(),C.componentDidMount=function(){function g(){var h=this.getDOMNode()}return g}(),C.openMenu=function(){function g(){var h=v.renderedMenu;h===void 0&&(h=document.createElement("div"),h.className=d,document.body.appendChild(h),v.renderedMenu=h);var N=this.getDOMNode();v.currentOpenMenu=N,h.scrollTop=0,h.style.width=this.props.menuWidth||N.offsetWidth+"px",h.style.opacity="1",h.style.pointerEvents="auto",setTimeout(function(){var y;(y=v.renderedMenu)==null||y.focus()},400),this.renderMenuContent()}return g}(),C.closeMenu=function(){function g(){v.currentOpenMenu===this.getDOMNode()&&(v.currentOpenMenu=void 0,v.renderedMenu.style.opacity="0",v.renderedMenu.style.pointerEvents="none")}return g}(),C.componentWillUnmount=function(){function g(){this.closeMenu(),this.setOpen(!1)}return g}(),C.renderMenuContent=function(){function g(){var h=this,N=v.renderedMenu;if(N){N.offsetHeight>200?N.className=u:N.className=d;var y=this.props.options,B=y===void 0?[]:y,I=B.map(function(T){var A,x;return typeof T=="string"?(x=T,A=T):T!==null&&(x=T.displayText,A=T.value),(0,e.createVNode)(1,"div",(0,t.classes)(["Dropdown__menuentry",h.state.selected===A&&"selected"]),x,0,{onClick:function(){function E(){h.setSelected(A)}return E}()},A)}),w=I.length?I:"No Options Found";(0,e.render)((0,e.createVNode)(1,"div",null,w,0),N,function(){var T=v.singletonPopper;T===void 0?(T=(0,a.createPopper)(v.virtualElement,N,Object.assign({},c,{placement:"bottom-start"})),v.singletonPopper=T):(T.setOptions(Object.assign({},c,{placement:"bottom-start"})),T.update())},this.context)}}return g}(),C.setOpen=function(){function g(h){var N=this;this.setState(function(y){return Object.assign({},y,{open:h})}),h?setTimeout(function(){N.openMenu(),window.addEventListener("click",N.handleClick)}):(this.closeMenu(),window.removeEventListener("click",this.handleClick))}return g}(),C.setSelected=function(){function g(h){this.setState(function(N){return Object.assign({},N,{selected:h})}),this.setOpen(!1),this.props.onSelected&&this.props.onSelected(h)}return g}(),C.render=function(){function g(){var h=this,N=this.props,y=N.icon,B=N.iconRotation,I=N.iconSpin,w=N.clipSelectedText,T=w===void 0?!0:w,A=N.color,x=A===void 0?"default":A,E=N.dropdownStyle,M=N.over,D=N.nochevron,P=N.width,R=N.onClick,j=N.onSelected,F=N.selected,U=N.disabled,_=N.displayText,z=b(N,V),G=z.className,X=b(z,k),Y=M?!this.state.open:this.state.open;return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Box,Object.assign({width:P,className:(0,t.classes)(["Dropdown__control","Button","Button--color--"+x,U&&"Button--disabled",G]),onClick:function(){function J(ie){U&&!h.state.open||(h.setOpen(!h.state.open),R&&R(ie))}return J}()},X,{children:[y&&(0,e.createComponentVNode)(2,f.Icon,{name:y,rotation:B,spin:I,mr:1}),(0,e.createVNode)(1,"span","Dropdown__selected-text",_||this.state.selected,0,{style:{overflow:T?"hidden":"visible"}}),D||(0,e.createVNode)(1,"span","Dropdown__arrow-button",(0,e.createComponentVNode)(2,f.Icon,{name:Y?"chevron-up":"chevron-down"}),2)]})))}return g}(),v}(e.Component);S=s,s.renderedMenu=void 0,s.singletonPopper=void 0,s.currentOpenMenu=void 0,s.virtualElement={getBoundingClientRect:function(){function i(){var v,C;return(v=(C=S.currentOpenMenu)==null?void 0:C.getBoundingClientRect())!=null?v:m}return i}()}},18963:function(L,r,n){"use strict";r.__esModule=!0,r.computeFlexProps=r.computeFlexItemProps=r.computeFlexItemClassName=r.computeFlexClassName=r.Flex=void 0;var e=n(96524),a=n(28234),t=n(3051),o=["className","direction","wrap","align","justify","inline","style"],f=["className"],V=["className","style","grow","order","shrink","basis","align"],k=["className"];/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */function S(u,s){if(u==null)return{};var i={},v=Object.keys(u),g,C;for(C=0;C=0)&&(i[g]=u[g]);return i}var b=r.computeFlexClassName=function(){function u(s){return(0,a.classes)(["Flex",s.inline&&"Flex--inline",(0,t.computeBoxClassName)(s)])}return u}(),p=r.computeFlexProps=function(){function u(s){var i=s.className,v=s.direction,g=s.wrap,C=s.align,h=s.justify,N=s.inline,y=s.style,B=S(s,o);return(0,t.computeBoxProps)(Object.assign({style:Object.assign({},y,{"flex-direction":v,"flex-wrap":g===!0?"wrap":g,"align-items":C,"justify-content":h})},B))}return u}(),l=r.Flex=function(){function u(s){var i=s.className,v=S(s,f);return(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,a.classes)([i,b(v)]),null,1,Object.assign({},p(v))))}return u}();l.defaultHooks=a.pureComponentHooks;var c=r.computeFlexItemClassName=function(){function u(s){return(0,a.classes)(["Flex__item",(0,t.computeBoxClassName)(s)])}return u}(),m=r.computeFlexItemProps=function(){function u(s){var i=s.className,v=s.style,g=s.grow,C=s.order,h=s.shrink,N=s.basis,y=N===void 0?s.width:N,B=s.align,I=S(s,V);return(0,t.computeBoxProps)(Object.assign({style:Object.assign({},v,{"flex-grow":g!==void 0&&Number(g),"flex-shrink":h!==void 0&&Number(h),"flex-basis":(0,t.unit)(y),order:C,"align-self":B})},I))}return u}(),d=function(s){var i=s.className,v=S(s,k);return(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,a.classes)([i,c(s)]),null,1,Object.assign({},m(v))))};d.defaultHooks=a.pureComponentHooks,l.Item=d},17956:function(L,r,n){"use strict";r.__esModule=!0,r.GridColumn=r.Grid=void 0;var e=n(96524),a=n(5126),t=n(28234),o=["children"],f=["size","style"];/** + */function S(u,s){if(u==null)return{};var i={},v=Object.keys(u),C,g;for(g=0;g=0)&&(i[C]=u[C]);return i}var b=r.computeFlexClassName=function(){function u(s){return(0,a.classes)(["Flex",s.inline&&"Flex--inline",(0,t.computeBoxClassName)(s)])}return u}(),p=r.computeFlexProps=function(){function u(s){var i=s.className,v=s.direction,C=s.wrap,g=s.align,h=s.justify,N=s.inline,y=s.style,B=S(s,o);return(0,t.computeBoxProps)(Object.assign({style:Object.assign({},y,{"flex-direction":v,"flex-wrap":C===!0?"wrap":C,"align-items":g,"justify-content":h})},B))}return u}(),l=r.Flex=function(){function u(s){var i=s.className,v=S(s,f);return(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,a.classes)([i,b(v)]),null,1,Object.assign({},p(v))))}return u}();l.defaultHooks=a.pureComponentHooks;var c=r.computeFlexItemClassName=function(){function u(s){return(0,a.classes)(["Flex__item",(0,t.computeBoxClassName)(s)])}return u}(),m=r.computeFlexItemProps=function(){function u(s){var i=s.className,v=s.style,C=s.grow,g=s.order,h=s.shrink,N=s.basis,y=N===void 0?s.width:N,B=s.align,I=S(s,V);return(0,t.computeBoxProps)(Object.assign({style:Object.assign({},v,{"flex-grow":C!==void 0&&Number(C),"flex-shrink":h!==void 0&&Number(h),"flex-basis":(0,t.unit)(y),order:g,"align-self":B})},I))}return u}(),d=function(s){var i=s.className,v=S(s,k);return(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,a.classes)([i,c(s)]),null,1,Object.assign({},m(v))))};d.defaultHooks=a.pureComponentHooks,l.Item=d},17956:function(L,r,n){"use strict";r.__esModule=!0,r.GridColumn=r.Grid=void 0;var e=n(96524),a=n(5126),t=n(28234),o=["children"],f=["size","style"];/** * @file * @copyright 2020 Aleksej Komarov * @license MIT @@ -125,19 +125,19 @@ * @file * @copyright 2020 Aleksej Komarov * @license MIT - */function V(p,l){if(p==null)return{};var c={},m=Object.keys(p),d,u;for(u=0;u=0)&&(c[d]=p[d]);return c}var k=/-o$/,S=r.Icon=function(){function p(l){var c=l.name,m=l.size,d=l.spin,u=l.className,s=l.style,i=s===void 0?{}:s,v=l.rotation,g=l.inverse,C=V(l,o);m&&(i["font-size"]=m*100+"%"),typeof v=="number"&&(i.transform="rotate("+v+"deg)");var h=k.test(c),N=c.replace(k,"");return(0,e.normalizeProps)((0,e.createComponentVNode)(2,t.Box,Object.assign({as:"i",className:(0,a.classes)(["Icon",u,h?"far":"fas","fa-"+N,d&&"fa-spin"]),style:i},C)))}return p}();S.defaultHooks=a.pureComponentHooks;var b=r.IconStack=function(){function p(l){var c=l.className,m=l.style,d=m===void 0?{}:m,u=l.children,s=V(l,f);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,t.Box,Object.assign({as:"span",class:(0,a.classes)(["IconStack",c]),style:d},s,{children:u})))}return p}();S.Stack=b},36587:function(L,r,n){"use strict";r.__esModule=!0,r.ImageButtonItem=r.ImageButton=void 0;var e=n(96524),a=n(17442),t=n(28234),o=n(3051),f=n(11253),V=n(58749),k=["className","asset","color","title","vertical","content","selected","disabled","disabledContent","image","imageUrl","imageAsset","imageSize","tooltip","tooltipPosition","ellipsis","children","onClick"],S=["className","color","content","horizontal","selected","disabled","disabledContent","tooltip","tooltipPosition","icon","iconColor","iconPosition","iconRotation","iconSize","onClick","children"];/** + */function V(p,l){if(p==null)return{};var c={},m=Object.keys(p),d,u;for(u=0;u=0)&&(c[d]=p[d]);return c}var k=/-o$/,S=r.Icon=function(){function p(l){var c=l.name,m=l.size,d=l.spin,u=l.className,s=l.style,i=s===void 0?{}:s,v=l.rotation,C=l.inverse,g=V(l,o);m&&(i["font-size"]=m*100+"%"),typeof v=="number"&&(i.transform="rotate("+v+"deg)");var h=k.test(c),N=c.replace(k,"");return(0,e.normalizeProps)((0,e.createComponentVNode)(2,t.Box,Object.assign({as:"i",className:(0,a.classes)(["Icon",u,h?"far":"fas","fa-"+N,d&&"fa-spin"]),style:i},g)))}return p}();S.defaultHooks=a.pureComponentHooks;var b=r.IconStack=function(){function p(l){var c=l.className,m=l.style,d=m===void 0?{}:m,u=l.children,s=V(l,f);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,t.Box,Object.assign({as:"span",class:(0,a.classes)(["IconStack",c]),style:d},s,{children:u})))}return p}();S.Stack=b},36587:function(L,r,n){"use strict";r.__esModule=!0,r.ImageButtonItem=r.ImageButton=void 0;var e=n(96524),a=n(17442),t=n(28234),o=n(3051),f=n(11253),V=n(58749),k=["className","asset","color","title","vertical","content","selected","disabled","disabledContent","image","imageUrl","imageAsset","imageSize","tooltip","tooltipPosition","ellipsis","children","onClick"],S=["className","color","content","horizontal","selected","disabled","disabledContent","tooltip","tooltipPosition","icon","iconColor","iconPosition","iconRotation","iconSize","onClick","children"];/** * @file * @copyright 2024 Aylong (https://github.com/AyIong) * @license MIT - */function b(c,m){if(c==null)return{};var d={},u=Object.keys(c),s,i;for(i=0;i=0)&&(d[s]=c[s]);return d}var p=r.ImageButton=function(){function c(m){var d=m.className,u=m.asset,s=m.color,i=m.title,v=m.vertical,g=m.content,C=m.selected,h=m.disabled,N=m.disabledContent,y=m.image,B=m.imageUrl,I=m.imageAsset,w=m.imageSize,T=m.tooltip,A=m.tooltipPosition,x=m.ellipsis,E=m.children,M=m.onClick,D=b(m,k);D.onClick=function(R){!h&&M&&M(R)};var P=(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,t.classes)([v?"ImageButton__vertical":"ImageButton__horizontal",C&&"ImageButton--selected",h&&"ImageButton--disabled",s&&typeof s=="string"?M?"ImageButton--color--clickable--"+s:"ImageButton--color--"+s:M?"ImageButton--color--default--clickable":"ImageButton--color--default",d,(0,o.computeBoxClassName)(D)]),[(0,e.createVNode)(1,"div",(0,t.classes)(["ImageButton__image"]),u?(0,e.createVNode)(1,"div",(0,t.classes)([I,y])):(0,e.createVNode)(1,"img",null,null,1,{src:B?(0,a.resolveAsset)(B):"data:image/jpeg;base64,"+y,style:{width:w,height:w,"-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),0),g&&(v?(0,e.createVNode)(1,"div",(0,t.classes)(["ImageButton__content__vertical",x&&"ImageButton__content--ellipsis",C&&"ImageButton__content--selected",h&&"ImageButton__content--disabled",s&&typeof s=="string"?"ImageButton__content--color--"+s:"ImageButton__content--color--default",d,(0,o.computeBoxClassName)(D)]),h&&N?N:g,0):(0,e.createVNode)(1,"div",(0,t.classes)(["ImageButton__content__horizontal"]),[i&&(0,e.createVNode)(1,"div",(0,t.classes)(["ImageButton__content__horizontal--title"]),[i,(0,e.createVNode)(1,"div",(0,t.classes)(["ImageButton__content__horizontal--divider"]))],0),(0,e.createVNode)(1,"div",(0,t.classes)(["ImageButton__content__horizontal--content"]),g,0)],0))],0,Object.assign({tabIndex:!h&&"0"},(0,o.computeBoxProps)(D))));return T&&(P=(0,e.createComponentVNode)(2,V.Tooltip,{content:T,position:A,children:P})),(0,e.createVNode)(1,"div",(0,t.classes)([v?"ImageButton--vertical":"ImageButton--horizontal"]),[P,E],0)}return c}();p.defaultHooks=t.pureComponentHooks;var l=r.ImageButtonItem=function(){function c(m){var d=m.className,u=m.color,s=m.content,i=m.horizontal,v=m.selected,g=m.disabled,C=m.disabledContent,h=m.tooltip,N=m.tooltipPosition,y=m.icon,B=m.iconColor,I=m.iconPosition,w=m.iconRotation,T=m.iconSize,A=m.onClick,x=m.children,E=b(m,S);E.onClick=function(D){!g&&A&&A(D)};var M=(0,e.createVNode)(1,"div",null,(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,t.classes)(["ImageButton__item",v&&"ImageButton__item--selected",g&&"ImageButton__item--disabled",u&&typeof u=="string"?"ImageButton__item--color--"+u:"ImageButton__item--color--default",d,(0,o.computeBoxClassName)(E)]),(0,e.createVNode)(1,"div",(0,t.classes)([i&&"ImageButton__item--icon--horizontal",(0,o.computeBoxClassName)(E),d]),[y&&(I==="top"||I==="left")&&(0,e.createComponentVNode)(2,f.Icon,{mb:.5,name:y,color:B,rotation:w,size:T}),(0,e.createVNode)(1,"div",null,[g&&C?C:s,x],0),y&&!(I==="top"||I==="left")&&(0,e.createComponentVNode)(2,f.Icon,{mt:.5,name:y,color:B,rotation:w,size:T})],0),2,Object.assign({tabIndex:!g&&"0"},(0,o.computeBoxProps)(E)))),2);return h&&(M=(0,e.createComponentVNode)(2,V.Tooltip,{content:h,position:N,children:M})),M}return c}();p.Item=l},49034:function(L,r,n){"use strict";r.__esModule=!0,r.toInputValue=r.Input=void 0;var e=n(96524),a=n(28234),t=n(3051),o=n(68100),f=["selfClear","onInput","onChange","onEnter","value","maxLength","placeholder","autofocus","disabled","multiline","cols","rows"],V=["className","fluid","monospace"];function k(c,m){if(c==null)return{};var d={},u=Object.keys(c),s,i;for(i=0;i=0)&&(d[s]=c[s]);return d}function S(c,m){c.prototype=Object.create(m.prototype),c.prototype.constructor=c,b(c,m)}function b(c,m){return b=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function d(u,s){return u.__proto__=s,u}return d}(),b(c,m)}/** + */function b(c,m){if(c==null)return{};var d={},u=Object.keys(c),s,i;for(i=0;i=0)&&(d[s]=c[s]);return d}var p=r.ImageButton=function(){function c(m){var d=m.className,u=m.asset,s=m.color,i=m.title,v=m.vertical,C=m.content,g=m.selected,h=m.disabled,N=m.disabledContent,y=m.image,B=m.imageUrl,I=m.imageAsset,w=m.imageSize,T=m.tooltip,A=m.tooltipPosition,x=m.ellipsis,E=m.children,M=m.onClick,D=b(m,k);D.onClick=function(R){!h&&M&&M(R)};var P=(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,t.classes)([v?"ImageButton__vertical":"ImageButton__horizontal",g&&"ImageButton--selected",h&&"ImageButton--disabled",s&&typeof s=="string"?M?"ImageButton--color--clickable--"+s:"ImageButton--color--"+s:M?"ImageButton--color--default--clickable":"ImageButton--color--default",d,(0,o.computeBoxClassName)(D)]),[(0,e.createVNode)(1,"div",(0,t.classes)(["ImageButton__image"]),u?(0,e.createVNode)(1,"div",(0,t.classes)([I,y])):(0,e.createVNode)(1,"img",null,null,1,{src:B?(0,a.resolveAsset)(B):"data:image/jpeg;base64,"+y,style:{width:w,height:w,"-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),0),C&&(v?(0,e.createVNode)(1,"div",(0,t.classes)(["ImageButton__content__vertical",x&&"ImageButton__content--ellipsis",g&&"ImageButton__content--selected",h&&"ImageButton__content--disabled",s&&typeof s=="string"?"ImageButton__content--color--"+s:"ImageButton__content--color--default",d,(0,o.computeBoxClassName)(D)]),h&&N?N:C,0):(0,e.createVNode)(1,"div",(0,t.classes)(["ImageButton__content__horizontal"]),[i&&(0,e.createVNode)(1,"div",(0,t.classes)(["ImageButton__content__horizontal--title"]),[i,(0,e.createVNode)(1,"div",(0,t.classes)(["ImageButton__content__horizontal--divider"]))],0),(0,e.createVNode)(1,"div",(0,t.classes)(["ImageButton__content__horizontal--content"]),C,0)],0))],0,Object.assign({tabIndex:!h&&"0"},(0,o.computeBoxProps)(D))));return T&&(P=(0,e.createComponentVNode)(2,V.Tooltip,{content:T,position:A,children:P})),(0,e.createVNode)(1,"div",(0,t.classes)([v?"ImageButton--vertical":"ImageButton--horizontal"]),[P,E],0)}return c}();p.defaultHooks=t.pureComponentHooks;var l=r.ImageButtonItem=function(){function c(m){var d=m.className,u=m.color,s=m.content,i=m.horizontal,v=m.selected,C=m.disabled,g=m.disabledContent,h=m.tooltip,N=m.tooltipPosition,y=m.icon,B=m.iconColor,I=m.iconPosition,w=m.iconRotation,T=m.iconSize,A=m.onClick,x=m.children,E=b(m,S);E.onClick=function(D){!C&&A&&A(D)};var M=(0,e.createVNode)(1,"div",null,(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,t.classes)(["ImageButton__item",v&&"ImageButton__item--selected",C&&"ImageButton__item--disabled",u&&typeof u=="string"?"ImageButton__item--color--"+u:"ImageButton__item--color--default",d,(0,o.computeBoxClassName)(E)]),(0,e.createVNode)(1,"div",(0,t.classes)([i&&"ImageButton__item--icon--horizontal",(0,o.computeBoxClassName)(E),d]),[y&&(I==="top"||I==="left")&&(0,e.createComponentVNode)(2,f.Icon,{mb:.5,name:y,color:B,rotation:w,size:T}),(0,e.createVNode)(1,"div",null,[C&&g?g:s,x],0),y&&!(I==="top"||I==="left")&&(0,e.createComponentVNode)(2,f.Icon,{mt:.5,name:y,color:B,rotation:w,size:T})],0),2,Object.assign({tabIndex:!C&&"0"},(0,o.computeBoxProps)(E)))),2);return h&&(M=(0,e.createComponentVNode)(2,V.Tooltip,{content:h,position:N,children:M})),M}return c}();p.Item=l},49034:function(L,r,n){"use strict";r.__esModule=!0,r.toInputValue=r.Input=void 0;var e=n(96524),a=n(28234),t=n(3051),o=n(68100),f=["selfClear","onInput","onChange","onEnter","value","maxLength","placeholder","autofocus","disabled","multiline","cols","rows"],V=["className","fluid","monospace"];function k(c,m){if(c==null)return{};var d={},u=Object.keys(c),s,i;for(i=0;i=0)&&(d[s]=c[s]);return d}function S(c,m){c.prototype=Object.create(m.prototype),c.prototype.constructor=c,b(c,m)}function b(c,m){return b=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function d(u,s){return u.__proto__=s,u}return d}(),b(c,m)}/** * @file * @copyright 2020 Aleksej Komarov * @license MIT -*/var p=r.toInputValue=function(){function c(m){return typeof m!="number"&&typeof m!="string"?"":String(m)}return c}(),l=r.Input=function(c){function m(){var u;return u=c.call(this)||this,u.inputRef=(0,e.createRef)(),u.state={editing:!1},u.handleInput=function(s){var i=u.state.editing,v=u.props.onInput;i||u.setEditing(!0),v&&v(s,s.target.value)},u.handleFocus=function(s){var i=u.state.editing;i||u.setEditing(!0)},u.handleBlur=function(s){var i=u.state.editing,v=u.props.onChange;i&&(u.setEditing(!1),v&&v(s,s.target.value))},u.handleKeyDown=function(s){var i=u.props,v=i.onInput,g=i.onChange,C=i.onEnter;if(s.keyCode===o.KEY_ENTER){u.setEditing(!1),g&&g(s,s.target.value),v&&v(s,s.target.value),C&&C(s,s.target.value),u.props.selfClear?s.target.value="":s.target.blur();return}if(s.keyCode===o.KEY_ESCAPE){u.setEditing(!1),s.target.value=p(u.props.value),s.target.blur();return}},u}S(m,c);var d=m.prototype;return d.componentDidMount=function(){function u(){var s=this,i=this.props.value,v=this.inputRef.current;v&&(v.value=p(i),v.selectionStart=0,v.selectionEnd=v.value.length),(this.props.autoFocus||this.props.autoSelect)&&setTimeout(function(){v.focus(),s.props.autoSelect&&v.select()},1)}return u}(),d.componentDidUpdate=function(){function u(s,i){var v=this.state.editing,g=s.value,C=this.props.value,h=this.inputRef.current;h&&!v&&g!==C&&(h.value=p(C))}return u}(),d.setEditing=function(){function u(s){this.setState({editing:s})}return u}(),d.render=function(){function u(){var s=this.props,i=s.selfClear,v=s.onInput,g=s.onChange,C=s.onEnter,h=s.value,N=s.maxLength,y=s.placeholder,B=s.autofocus,I=s.disabled,w=s.multiline,T=s.cols,A=T===void 0?32:T,x=s.rows,E=x===void 0?4:x,M=k(s,f),D=M.className,P=M.fluid,R=M.monospace,j=k(M,V);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,t.Box,Object.assign({className:(0,a.classes)(["Input",P&&"Input--fluid",R&&"Input--monospace",I&&"Input--disabled",D])},j,{children:[(0,e.createVNode)(1,"div","Input__baseline",".",16),w?(0,e.createVNode)(128,"textarea","Input__textarea",null,1,{placeholder:y,onInput:this.handleInput,onFocus:this.handleFocus,onBlur:this.handleBlur,maxLength:N,cols:A,rows:E,disabled:I},null,this.inputRef):(0,e.createVNode)(64,"input","Input__input",null,1,{placeholder:y,onInput:this.handleInput,onFocus:this.handleFocus,onBlur:this.handleBlur,onKeyDown:this.handleKeyDown,maxLength:N,disabled:I},null,this.inputRef)]})))}return u}(),m}(e.Component)},9836:function(L,r,n){"use strict";r.__esModule=!0,r.Knob=void 0;var e=n(96524),a=n(36121),t=n(28234),o=n(3051),f=n(27648),V=n(5985),k=["animated","format","maxValue","minValue","onChange","onDrag","step","stepPixelSize","suppressFlicker","unit","value","className","style","fillValue","color","ranges","size","bipolar","children","popUpPosition"];/** +*/var p=r.toInputValue=function(){function c(m){return typeof m!="number"&&typeof m!="string"?"":String(m)}return c}(),l=r.Input=function(c){function m(){var u;return u=c.call(this)||this,u.inputRef=(0,e.createRef)(),u.state={editing:!1},u.handleInput=function(s){var i=u.state.editing,v=u.props.onInput;i||u.setEditing(!0),v&&v(s,s.target.value)},u.handleFocus=function(s){var i=u.state.editing;i||u.setEditing(!0)},u.handleBlur=function(s){var i=u.state.editing,v=u.props.onChange;i&&(u.setEditing(!1),v&&v(s,s.target.value))},u.handleKeyDown=function(s){var i=u.props,v=i.onInput,C=i.onChange,g=i.onEnter;if(s.keyCode===o.KEY_ENTER){u.setEditing(!1),C&&C(s,s.target.value),v&&v(s,s.target.value),g&&g(s,s.target.value),u.props.selfClear?s.target.value="":s.target.blur();return}if(s.keyCode===o.KEY_ESCAPE){u.setEditing(!1),s.target.value=p(u.props.value),s.target.blur();return}},u}S(m,c);var d=m.prototype;return d.componentDidMount=function(){function u(){var s=this,i=this.props.value,v=this.inputRef.current;v&&(v.value=p(i),v.selectionStart=0,v.selectionEnd=v.value.length),(this.props.autoFocus||this.props.autoSelect)&&setTimeout(function(){v.focus(),s.props.autoSelect&&v.select()},1)}return u}(),d.componentDidUpdate=function(){function u(s,i){var v=this.state.editing,C=s.value,g=this.props.value,h=this.inputRef.current;h&&!v&&C!==g&&(h.value=p(g))}return u}(),d.setEditing=function(){function u(s){this.setState({editing:s})}return u}(),d.render=function(){function u(){var s=this.props,i=s.selfClear,v=s.onInput,C=s.onChange,g=s.onEnter,h=s.value,N=s.maxLength,y=s.placeholder,B=s.autofocus,I=s.disabled,w=s.multiline,T=s.cols,A=T===void 0?32:T,x=s.rows,E=x===void 0?4:x,M=k(s,f),D=M.className,P=M.fluid,R=M.monospace,j=k(M,V);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,t.Box,Object.assign({className:(0,a.classes)(["Input",P&&"Input--fluid",R&&"Input--monospace",I&&"Input--disabled",D])},j,{children:[(0,e.createVNode)(1,"div","Input__baseline",".",16),w?(0,e.createVNode)(128,"textarea","Input__textarea",null,1,{placeholder:y,onInput:this.handleInput,onFocus:this.handleFocus,onBlur:this.handleBlur,maxLength:N,cols:A,rows:E,disabled:I},null,this.inputRef):(0,e.createVNode)(64,"input","Input__input",null,1,{placeholder:y,onInput:this.handleInput,onFocus:this.handleFocus,onBlur:this.handleBlur,onKeyDown:this.handleKeyDown,maxLength:N,disabled:I},null,this.inputRef)]})))}return u}(),m}(e.Component)},9836:function(L,r,n){"use strict";r.__esModule=!0,r.Knob=void 0;var e=n(96524),a=n(36121),t=n(28234),o=n(3051),f=n(27648),V=n(5985),k=["animated","format","maxValue","minValue","onChange","onDrag","step","stepPixelSize","suppressFlicker","unit","value","className","style","fillValue","color","ranges","size","bipolar","children","popUpPosition"];/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */function S(p,l){if(p==null)return{};var c={},m=Object.keys(p),d,u;for(u=0;u=0)&&(c[d]=p[d]);return c}var b=r.Knob=function(){function p(l){var c=l.animated,m=l.format,d=l.maxValue,u=l.minValue,s=l.onChange,i=l.onDrag,v=l.step,g=l.stepPixelSize,C=l.suppressFlicker,h=l.unit,N=l.value,y=l.className,B=l.style,I=l.fillValue,w=l.color,T=l.ranges,A=T===void 0?{}:T,x=l.size,E=x===void 0?1:x,M=l.bipolar,D=l.children,P=l.popUpPosition,R=S(l,k);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,f.DraggableControl,Object.assign({dragMatrix:[0,-1]},{animated:c,format:m,maxValue:d,minValue:u,onChange:s,onDrag:i,step:v,stepPixelSize:g,suppressFlicker:C,unit:h,value:N},{children:function(){function j(F){var U=F.dragging,_=F.editing,z=F.value,G=F.displayValue,X=F.displayElement,Y=F.inputElement,J=F.handleDragStart,ie=(0,a.scale)(I!=null?I:G,u,d),ae=(0,a.scale)(G,u,d),fe=w||(0,a.keyOfMatchingRange)(I!=null?I:z,A)||"default",pe=(ae-.5)*270;return(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,t.classes)(["Knob","Knob--color--"+fe,M&&"Knob--bipolar",y,(0,o.computeBoxClassName)(R)]),[(0,e.createVNode)(1,"div","Knob__circle",(0,e.createVNode)(1,"div","Knob__cursorBox",(0,e.createVNode)(1,"div","Knob__cursor"),2,{style:{transform:"rotate("+pe+"deg)"}}),2),U&&(0,e.createVNode)(1,"div",(0,t.classes)(["Knob__popupValue",P&&"Knob__popupValue--"+P]),X,0),(0,e.createVNode)(32,"svg","Knob__ring Knob__ringTrackPivot",(0,e.createVNode)(32,"circle","Knob__ringTrack",null,1,{cx:"50",cy:"50",r:"50"}),2,{viewBox:"0 0 100 100"}),(0,e.createVNode)(32,"svg","Knob__ring Knob__ringFillPivot",(0,e.createVNode)(32,"circle","Knob__ringFill",null,1,{style:{"stroke-dashoffset":((M?2.75:2)-ie*1.5)*Math.PI*50},cx:"50",cy:"50",r:"50"}),2,{viewBox:"0 0 100 100"}),Y],0,Object.assign({},(0,o.computeBoxProps)(Object.assign({style:Object.assign({"font-size":E+"em"},B)},R)),{onMouseDown:J})))}return j}()})))}return p}()},86259:function(L,r,n){"use strict";r.__esModule=!0,r.LabeledControls=void 0;var e=n(96524),a=n(18963),t=["children"],o=["label","children"];/** + */function S(p,l){if(p==null)return{};var c={},m=Object.keys(p),d,u;for(u=0;u=0)&&(c[d]=p[d]);return c}var b=r.Knob=function(){function p(l){var c=l.animated,m=l.format,d=l.maxValue,u=l.minValue,s=l.onChange,i=l.onDrag,v=l.step,C=l.stepPixelSize,g=l.suppressFlicker,h=l.unit,N=l.value,y=l.className,B=l.style,I=l.fillValue,w=l.color,T=l.ranges,A=T===void 0?{}:T,x=l.size,E=x===void 0?1:x,M=l.bipolar,D=l.children,P=l.popUpPosition,R=S(l,k);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,f.DraggableControl,Object.assign({dragMatrix:[0,-1]},{animated:c,format:m,maxValue:d,minValue:u,onChange:s,onDrag:i,step:v,stepPixelSize:C,suppressFlicker:g,unit:h,value:N},{children:function(){function j(F){var U=F.dragging,_=F.editing,z=F.value,G=F.displayValue,X=F.displayElement,Y=F.inputElement,J=F.handleDragStart,ie=(0,a.scale)(I!=null?I:G,u,d),ae=(0,a.scale)(G,u,d),fe=w||(0,a.keyOfMatchingRange)(I!=null?I:z,A)||"default",pe=(ae-.5)*270;return(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,t.classes)(["Knob","Knob--color--"+fe,M&&"Knob--bipolar",y,(0,o.computeBoxClassName)(R)]),[(0,e.createVNode)(1,"div","Knob__circle",(0,e.createVNode)(1,"div","Knob__cursorBox",(0,e.createVNode)(1,"div","Knob__cursor"),2,{style:{transform:"rotate("+pe+"deg)"}}),2),U&&(0,e.createVNode)(1,"div",(0,t.classes)(["Knob__popupValue",P&&"Knob__popupValue--"+P]),X,0),(0,e.createVNode)(32,"svg","Knob__ring Knob__ringTrackPivot",(0,e.createVNode)(32,"circle","Knob__ringTrack",null,1,{cx:"50",cy:"50",r:"50"}),2,{viewBox:"0 0 100 100"}),(0,e.createVNode)(32,"svg","Knob__ring Knob__ringFillPivot",(0,e.createVNode)(32,"circle","Knob__ringFill",null,1,{style:{"stroke-dashoffset":((M?2.75:2)-ie*1.5)*Math.PI*50},cx:"50",cy:"50",r:"50"}),2,{viewBox:"0 0 100 100"}),Y],0,Object.assign({},(0,o.computeBoxProps)(Object.assign({style:Object.assign({"font-size":E+"em"},B)},R)),{onMouseDown:J})))}return j}()})))}return p}()},86259:function(L,r,n){"use strict";r.__esModule=!0,r.LabeledControls=void 0;var e=n(96524),a=n(18963),t=["children"],o=["label","children"];/** * @file * @copyright 2020 Aleksej Komarov * @license MIT @@ -145,11 +145,11 @@ * @file * @copyright 2020 Aleksej Komarov * @license MIT - */var V=r.LabeledList=function(){function b(p){var l=p.children;return(0,e.createVNode)(1,"table","LabeledList",l,0)}return b}();V.defaultHooks=a.pureComponentHooks;var k=function(p){var l=p.className,c=p.label,m=p.labelColor,d=m===void 0?"label":m,u=p.color,s=p.textAlign,i=p.buttons,v=p.tooltip,g=p.content,C=p.children,h=p.preserveWhitespace,N=(0,e.createVNode)(1,"tr",(0,a.classes)(["LabeledList__row",l]),[(0,e.createComponentVNode)(2,t.Box,{as:"td",color:d,className:(0,a.classes)(["LabeledList__cell","LabeledList__label"]),children:c?c+":":null}),(0,e.createComponentVNode)(2,t.Box,{as:"td",color:u,textAlign:s,className:(0,a.classes)(["LabeledList__cell","LabeledList__content"]),colSpan:i?void 0:2,preserveWhitespace:h,children:[g,C]}),i&&(0,e.createVNode)(1,"td","LabeledList__cell LabeledList__buttons",i,0)],0);return v&&(N=(0,e.createComponentVNode)(2,f.Tooltip,{content:v,children:N})),N};k.defaultHooks=a.pureComponentHooks;var S=function(p){var l=p.size?(0,t.unit)(Math.max(0,p.size-1)):0;return(0,e.createVNode)(1,"tr","LabeledList__row",(0,e.createVNode)(1,"td",null,(0,e.createComponentVNode)(2,o.Divider),2,{colSpan:3,style:{"padding-top":l,"padding-bottom":l}}),2)};S.defaultHooks=a.pureComponentHooks,V.Item=k,V.Divider=S},97539:function(L,r,n){"use strict";r.__esModule=!0,r.Modal=void 0;var e=n(96524),a=n(28234),t=n(3051),o=n(72358),f=["className","children","onEnter"];/** + */var V=r.LabeledList=function(){function b(p){var l=p.children;return(0,e.createVNode)(1,"table","LabeledList",l,0)}return b}();V.defaultHooks=a.pureComponentHooks;var k=function(p){var l=p.className,c=p.label,m=p.labelColor,d=m===void 0?"label":m,u=p.color,s=p.textAlign,i=p.buttons,v=p.tooltip,C=p.content,g=p.children,h=p.preserveWhitespace,N=(0,e.createVNode)(1,"tr",(0,a.classes)(["LabeledList__row",l]),[(0,e.createComponentVNode)(2,t.Box,{as:"td",color:d,className:(0,a.classes)(["LabeledList__cell","LabeledList__label"]),children:c?c+":":null}),(0,e.createComponentVNode)(2,t.Box,{as:"td",color:u,textAlign:s,className:(0,a.classes)(["LabeledList__cell","LabeledList__content"]),colSpan:i?void 0:2,preserveWhitespace:h,children:[C,g]}),i&&(0,e.createVNode)(1,"td","LabeledList__cell LabeledList__buttons",i,0)],0);return v&&(N=(0,e.createComponentVNode)(2,f.Tooltip,{content:v,children:N})),N};k.defaultHooks=a.pureComponentHooks;var S=function(p){var l=p.size?(0,t.unit)(Math.max(0,p.size-1)):0;return(0,e.createVNode)(1,"tr","LabeledList__row",(0,e.createVNode)(1,"td",null,(0,e.createComponentVNode)(2,o.Divider),2,{colSpan:3,style:{"padding-top":l,"padding-bottom":l}}),2)};S.defaultHooks=a.pureComponentHooks,V.Item=k,V.Divider=S},97539:function(L,r,n){"use strict";r.__esModule=!0,r.Modal=void 0;var e=n(96524),a=n(28234),t=n(3051),o=n(72358),f=["className","children","onEnter"];/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */function V(S,b){if(S==null)return{};var p={},l=Object.keys(S),c,m;for(m=0;m=0)&&(p[c]=S[c]);return p}var k=r.Modal=function(){function S(b){var p=b.className,l=b.children,c=b.onEnter,m=V(b,f),d;return c&&(d=function(){function u(s){s.keyCode===13&&c(s)}return u}()),(0,e.createComponentVNode)(2,o.Dimmer,{onKeyDown:d,children:(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,a.classes)(["Modal",p,(0,t.computeBoxClassName)(m)]),l,0,Object.assign({},(0,t.computeBoxProps)(m))))})}return S}()},55830:function(L,r,n){"use strict";r.__esModule=!0,r.NanoMap=void 0;var e=n(96524),a=n(24674),t=n(17899),o=n(91097),f=n(66397),V=n(17442);function k(m,d){m.prototype=Object.create(d.prototype),m.prototype.constructor=m,S(m,d)}function S(m,d){return S=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function u(s,i){return s.__proto__=i,s}return u}(),S(m,d)}var b=function(d){return d.stopPropagation&&d.stopPropagation(),d.preventDefault&&d.preventDefault(),d.cancelBubble=!0,d.returnValue=!1,!1},p=r.NanoMap=function(m){function d(s){var i;i=m.call(this,s)||this;var v=window.innerWidth/2-256,g=window.innerHeight/2-256;return i.state={offsetX:128,offsetY:48,transform:"none",dragging:!1,originX:null,originY:null,zoom:1},i.handleDragStart=function(C){i.ref=C.target,i.setState({dragging:!1,originX:C.screenX,originY:C.screenY}),document.addEventListener("mousemove",i.handleDragMove),document.addEventListener("mouseup",i.handleDragEnd),b(C)},i.handleDragMove=function(C){i.setState(function(h){var N=Object.assign({},h),y=C.screenX-N.originX,B=C.screenY-N.originY;return h.dragging?(N.offsetX+=y,N.offsetY+=B,N.originX=C.screenX,N.originY=C.screenY):N.dragging=!0,N}),b(C)},i.handleDragEnd=function(C){i.setState({dragging:!1,originX:null,originY:null}),document.removeEventListener("mousemove",i.handleDragMove),document.removeEventListener("mouseup",i.handleDragEnd),b(C)},i.handleZoom=function(C,h){i.setState(function(N){var y=Math.min(Math.max(h,1),8),B=(y-N.zoom)*1.5;return N.zoom=y,N.offsetX=N.offsetX-262*B,N.offsetY=N.offsetY-256*B,s.onZoom&&s.onZoom(N.zoom),N})},i}k(d,m);var u=d.prototype;return u.render=function(){function s(){var i=(0,t.useBackend)(this.context),v=i.config,g=this.state,C=g.dragging,h=g.offsetX,N=g.offsetY,y=g.zoom,B=y===void 0?1:y,I=this.props.children,w=v.map+"_nanomap_z1.png",T=510*B+"px",A={width:T,height:T,"margin-top":N+"px","margin-left":h+"px",overflow:"hidden",position:"relative","background-size":"cover","background-repeat":"no-repeat","text-align":"center",cursor:C?"move":"auto"},x={width:"100%",height:"100%",position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"};return(0,e.createComponentVNode)(2,a.Box,{className:"NanoMap__container",children:[(0,e.createComponentVNode)(2,a.Box,{style:A,onMouseDown:this.handleDragStart,children:[(0,e.createVNode)(1,"img",null,null,1,{src:(0,V.resolveAsset)(w),style:x}),(0,e.createComponentVNode)(2,a.Box,{children:I})]}),(0,e.createComponentVNode)(2,c,{zoom:B,onZoom:this.handleZoom})]})}return s}(),d}(e.Component),l=function(d,u){var s=d.x,i=d.y,v=d.zoom,g=v===void 0?1:v,C=d.icon,h=d.tooltip,N=d.color,y=s*2*g-g-3,B=i*2*g-g-3;return(0,e.createVNode)(1,"div",null,(0,e.createComponentVNode)(2,a.Tooltip,{content:h,children:(0,e.createComponentVNode)(2,a.Box,{position:"absolute",className:"NanoMap__marker",lineHeight:"0",bottom:B+"px",left:y+"px",children:(0,e.createComponentVNode)(2,a.Icon,{name:C,color:N,fontSize:"6px"})})}),2)};p.Marker=l;var c=function(d,u){return(0,e.createComponentVNode)(2,a.Box,{className:"NanoMap__zoomer",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Zoom",children:(0,e.createComponentVNode)(2,f.Slider,{minValue:1,maxValue:8,stepPixelSize:10,format:function(){function s(i){return i+"x"}return s}(),value:d.zoom,onDrag:function(){function s(i,v){return d.onZoom(i,v)}return s}()})})})})};p.Zoomer=c},14899:function(L,r,n){"use strict";r.__esModule=!0,r.NoticeBox=void 0;var e=n(96524),a=n(28234),t=n(3051),o=["className","color","info","warning","success","danger"];/** + */function V(S,b){if(S==null)return{};var p={},l=Object.keys(S),c,m;for(m=0;m=0)&&(p[c]=S[c]);return p}var k=r.Modal=function(){function S(b){var p=b.className,l=b.children,c=b.onEnter,m=V(b,f),d;return c&&(d=function(){function u(s){s.keyCode===13&&c(s)}return u}()),(0,e.createComponentVNode)(2,o.Dimmer,{onKeyDown:d,children:(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,a.classes)(["Modal",p,(0,t.computeBoxClassName)(m)]),l,0,Object.assign({},(0,t.computeBoxProps)(m))))})}return S}()},55830:function(L,r,n){"use strict";r.__esModule=!0,r.NanoMap=void 0;var e=n(96524),a=n(24674),t=n(17899),o=n(91097),f=n(66397),V=n(17442);function k(m,d){m.prototype=Object.create(d.prototype),m.prototype.constructor=m,S(m,d)}function S(m,d){return S=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function u(s,i){return s.__proto__=i,s}return u}(),S(m,d)}var b=function(d){return d.stopPropagation&&d.stopPropagation(),d.preventDefault&&d.preventDefault(),d.cancelBubble=!0,d.returnValue=!1,!1},p=r.NanoMap=function(m){function d(s){var i;i=m.call(this,s)||this;var v=window.innerWidth/2-256,C=window.innerHeight/2-256;return i.state={offsetX:128,offsetY:48,transform:"none",dragging:!1,originX:null,originY:null,zoom:1},i.handleDragStart=function(g){i.ref=g.target,i.setState({dragging:!1,originX:g.screenX,originY:g.screenY}),document.addEventListener("mousemove",i.handleDragMove),document.addEventListener("mouseup",i.handleDragEnd),b(g)},i.handleDragMove=function(g){i.setState(function(h){var N=Object.assign({},h),y=g.screenX-N.originX,B=g.screenY-N.originY;return h.dragging?(N.offsetX+=y,N.offsetY+=B,N.originX=g.screenX,N.originY=g.screenY):N.dragging=!0,N}),b(g)},i.handleDragEnd=function(g){i.setState({dragging:!1,originX:null,originY:null}),document.removeEventListener("mousemove",i.handleDragMove),document.removeEventListener("mouseup",i.handleDragEnd),b(g)},i.handleZoom=function(g,h){i.setState(function(N){var y=Math.min(Math.max(h,1),8),B=(y-N.zoom)*1.5;return N.zoom=y,N.offsetX=N.offsetX-262*B,N.offsetY=N.offsetY-256*B,s.onZoom&&s.onZoom(N.zoom),N})},i}k(d,m);var u=d.prototype;return u.render=function(){function s(){var i=(0,t.useBackend)(this.context),v=i.config,C=this.state,g=C.dragging,h=C.offsetX,N=C.offsetY,y=C.zoom,B=y===void 0?1:y,I=this.props.children,w=v.map+"_nanomap_z1.png",T=510*B+"px",A={width:T,height:T,"margin-top":N+"px","margin-left":h+"px",overflow:"hidden",position:"relative","background-size":"cover","background-repeat":"no-repeat","text-align":"center",cursor:g?"move":"auto"},x={width:"100%",height:"100%",position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"};return(0,e.createComponentVNode)(2,a.Box,{className:"NanoMap__container",children:[(0,e.createComponentVNode)(2,a.Box,{style:A,onMouseDown:this.handleDragStart,children:[(0,e.createVNode)(1,"img",null,null,1,{src:(0,V.resolveAsset)(w),style:x}),(0,e.createComponentVNode)(2,a.Box,{children:I})]}),(0,e.createComponentVNode)(2,c,{zoom:B,onZoom:this.handleZoom})]})}return s}(),d}(e.Component),l=function(d,u){var s=d.x,i=d.y,v=d.zoom,C=v===void 0?1:v,g=d.icon,h=d.tooltip,N=d.color,y=s*2*C-C-3,B=i*2*C-C-3;return(0,e.createVNode)(1,"div",null,(0,e.createComponentVNode)(2,a.Tooltip,{content:h,children:(0,e.createComponentVNode)(2,a.Box,{position:"absolute",className:"NanoMap__marker",lineHeight:"0",bottom:B+"px",left:y+"px",children:(0,e.createComponentVNode)(2,a.Icon,{name:g,color:N,fontSize:"6px"})})}),2)};p.Marker=l;var c=function(d,u){return(0,e.createComponentVNode)(2,a.Box,{className:"NanoMap__zoomer",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Zoom",children:(0,e.createComponentVNode)(2,f.Slider,{minValue:1,maxValue:8,stepPixelSize:10,format:function(){function s(i){return i+"x"}return s}(),value:d.zoom,onDrag:function(){function s(i,v){return d.onZoom(i,v)}return s}()})})})})};p.Zoomer=c},14899:function(L,r,n){"use strict";r.__esModule=!0,r.NoticeBox=void 0;var e=n(96524),a=n(28234),t=n(3051),o=["className","color","info","warning","success","danger"];/** * @file * @copyright 2020 Aleksej Komarov * @license MIT @@ -157,23 +157,23 @@ * @file * @copyright 2020 Aleksej Komarov * @license MIT -*/var S=400,b=r.NumberInput=function(p){function l(m){var d;d=p.call(this,m)||this;var u=m.value;return d.inputRef=(0,e.createRef)(),d.state={value:u,dragging:!1,editing:!1,internalValue:null,origin:null,suppressingFlicker:!1},d.flickerTimer=null,d.suppressFlicker=function(){var s=d.props.suppressFlicker;s>0&&(d.setState({suppressingFlicker:!0}),clearTimeout(d.flickerTimer),d.flickerTimer=setTimeout(function(){return d.setState({suppressingFlicker:!1})},s))},d.handleDragStart=function(s){var i=d.props.value,v=d.state.editing;v||(document.body.style["pointer-events"]="none",d.ref=s.target,d.setState({dragging:!1,origin:s.screenY,value:i,internalValue:i}),d.timer=setTimeout(function(){d.setState({dragging:!0})},250),d.dragInterval=setInterval(function(){var g=d.state,C=g.dragging,h=g.value,N=d.props.onDrag;C&&N&&N(s,h)},d.props.updateRate||S),document.addEventListener("mousemove",d.handleDragMove),document.addEventListener("mouseup",d.handleDragEnd))},d.handleDragMove=function(s){var i=d.props,v=i.minValue,g=i.maxValue,C=i.step,h=i.stepPixelSize;d.setState(function(N){var y=Object.assign({},N),B=y.origin-s.screenY;if(N.dragging){var I=Number.isFinite(v)?v%C:0;y.internalValue=(0,a.clamp)(y.internalValue+B*C/h,v-C,g+C),y.value=(0,a.clamp)(y.internalValue-y.internalValue%C+I,v,g),y.origin=s.screenY}else Math.abs(B)>4&&(y.dragging=!0);return y})},d.handleDragEnd=function(s){var i=d.props,v=i.onChange,g=i.onDrag,C=d.state,h=C.dragging,N=C.value,y=C.internalValue;if(document.body.style["pointer-events"]="auto",clearTimeout(d.timer),clearInterval(d.dragInterval),d.setState({dragging:!1,editing:!h,origin:null}),document.removeEventListener("mousemove",d.handleDragMove),document.removeEventListener("mouseup",d.handleDragEnd),h)d.suppressFlicker(),v&&v(s,N),g&&g(s,N);else if(d.inputRef){var B=d.inputRef.current;B.value=y;try{B.focus(),B.select()}catch(I){}}},d}V(l,p);var c=l.prototype;return c.render=function(){function m(){var d=this,u=this.state,s=u.dragging,i=u.editing,v=u.value,g=u.suppressingFlicker,C=this.props,h=C.className,N=C.fluid,y=C.animated,B=C.value,I=C.unit,w=C.minValue,T=C.maxValue,A=C.height,x=C.width,E=C.lineHeight,M=C.fontSize,D=C.format,P=C.onChange,R=C.onDrag,j=B;(s||g)&&(j=v);var F=(0,e.createVNode)(1,"div","NumberInput__content",[y&&!s&&!g?(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:j,format:D}):D?D(j):j,I?" "+I:""],0);return(0,e.createComponentVNode)(2,f.Box,{className:(0,t.classes)(["NumberInput",N&&"NumberInput--fluid",h]),minWidth:x,minHeight:A,lineHeight:E,fontSize:M,onMouseDown:this.handleDragStart,children:[(0,e.createVNode)(1,"div","NumberInput__barContainer",(0,e.createVNode)(1,"div","NumberInput__bar",null,1,{style:{height:(0,a.clamp)((j-w)/(T-w)*100,0,100)+"%"}}),2),F,(0,e.createVNode)(64,"input","NumberInput__input",null,1,{style:{display:i?void 0:"none",height:A,"line-height":E,"font-size":M},onBlur:function(){function U(_){if(i){var z=(0,a.clamp)(parseFloat(_.target.value),w,T);if(Number.isNaN(z)){d.setState({editing:!1});return}d.setState({editing:!1,value:z}),d.suppressFlicker(),P&&P(_,z),R&&R(_,z)}}return U}(),onKeyDown:function(){function U(_){if(_.keyCode===13){var z=(0,a.clamp)(parseFloat(_.target.value),w,T);if(Number.isNaN(z)){d.setState({editing:!1});return}d.setState({editing:!1,value:z}),d.suppressFlicker(),P&&P(_,z),R&&R(_,z);return}if(_.keyCode===27){d.setState({editing:!1});return}}return U}()},null,this.inputRef)]})}return m}(),l}(e.Component);b.defaultHooks=t.pureComponentHooks,b.defaultProps={minValue:-1/0,maxValue:1/0,step:1,stepPixelSize:1,suppressFlicker:50}},37056:function(L,r,n){"use strict";r.__esModule=!0,r.Popper=void 0;var e=n(60023),a=n(96524);function t(V,k){V.prototype=Object.create(k.prototype),V.prototype.constructor=V,o(V,k)}function o(V,k){return o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function S(b,p){return b.__proto__=p,b}return S}(),o(V,k)}var f=r.Popper=function(V){function k(){var b;return b=V.call(this)||this,b.renderedContent=void 0,b.popperInstance=void 0,k.id+=1,b}t(k,V);var S=k.prototype;return S.componentDidMount=function(){function b(){var p=this,l=this.props,c=l.additionalStyles,m=l.options;if(this.renderedContent=document.createElement("div"),c)for(var d=0,u=Object.entries(c);d0&&(d.setState({suppressingFlicker:!0}),clearTimeout(d.flickerTimer),d.flickerTimer=setTimeout(function(){return d.setState({suppressingFlicker:!1})},s))},d.handleDragStart=function(s){var i=d.props.value,v=d.state.editing;v||(document.body.style["pointer-events"]="none",d.ref=s.target,d.setState({dragging:!1,origin:s.screenY,value:i,internalValue:i}),d.timer=setTimeout(function(){d.setState({dragging:!0})},250),d.dragInterval=setInterval(function(){var C=d.state,g=C.dragging,h=C.value,N=d.props.onDrag;g&&N&&N(s,h)},d.props.updateRate||S),document.addEventListener("mousemove",d.handleDragMove),document.addEventListener("mouseup",d.handleDragEnd))},d.handleDragMove=function(s){var i=d.props,v=i.minValue,C=i.maxValue,g=i.step,h=i.stepPixelSize;d.setState(function(N){var y=Object.assign({},N),B=y.origin-s.screenY;if(N.dragging){var I=Number.isFinite(v)?v%g:0;y.internalValue=(0,a.clamp)(y.internalValue+B*g/h,v-g,C+g),y.value=(0,a.clamp)(y.internalValue-y.internalValue%g+I,v,C),y.origin=s.screenY}else Math.abs(B)>4&&(y.dragging=!0);return y})},d.handleDragEnd=function(s){var i=d.props,v=i.onChange,C=i.onDrag,g=d.state,h=g.dragging,N=g.value,y=g.internalValue;if(document.body.style["pointer-events"]="auto",clearTimeout(d.timer),clearInterval(d.dragInterval),d.setState({dragging:!1,editing:!h,origin:null}),document.removeEventListener("mousemove",d.handleDragMove),document.removeEventListener("mouseup",d.handleDragEnd),h)d.suppressFlicker(),v&&v(s,N),C&&C(s,N);else if(d.inputRef){var B=d.inputRef.current;B.value=y;try{B.focus(),B.select()}catch(I){}}},d}V(l,p);var c=l.prototype;return c.render=function(){function m(){var d=this,u=this.state,s=u.dragging,i=u.editing,v=u.value,C=u.suppressingFlicker,g=this.props,h=g.className,N=g.fluid,y=g.animated,B=g.value,I=g.unit,w=g.minValue,T=g.maxValue,A=g.height,x=g.width,E=g.lineHeight,M=g.fontSize,D=g.format,P=g.onChange,R=g.onDrag,j=B;(s||C)&&(j=v);var F=(0,e.createVNode)(1,"div","NumberInput__content",[y&&!s&&!C?(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:j,format:D}):D?D(j):j,I?" "+I:""],0);return(0,e.createComponentVNode)(2,f.Box,{className:(0,t.classes)(["NumberInput",N&&"NumberInput--fluid",h]),minWidth:x,minHeight:A,lineHeight:E,fontSize:M,onMouseDown:this.handleDragStart,children:[(0,e.createVNode)(1,"div","NumberInput__barContainer",(0,e.createVNode)(1,"div","NumberInput__bar",null,1,{style:{height:(0,a.clamp)((j-w)/(T-w)*100,0,100)+"%"}}),2),F,(0,e.createVNode)(64,"input","NumberInput__input",null,1,{style:{display:i?void 0:"none",height:A,"line-height":E,"font-size":M},onBlur:function(){function U(_){if(i){var z=(0,a.clamp)(parseFloat(_.target.value),w,T);if(Number.isNaN(z)){d.setState({editing:!1});return}d.setState({editing:!1,value:z}),d.suppressFlicker(),P&&P(_,z),R&&R(_,z)}}return U}(),onKeyDown:function(){function U(_){if(_.keyCode===13){var z=(0,a.clamp)(parseFloat(_.target.value),w,T);if(Number.isNaN(z)){d.setState({editing:!1});return}d.setState({editing:!1,value:z}),d.suppressFlicker(),P&&P(_,z),R&&R(_,z);return}if(_.keyCode===27){d.setState({editing:!1});return}}return U}()},null,this.inputRef)]})}return m}(),l}(e.Component);b.defaultHooks=t.pureComponentHooks,b.defaultProps={minValue:-1/0,maxValue:1/0,step:1,stepPixelSize:1,suppressFlicker:50}},37056:function(L,r,n){"use strict";r.__esModule=!0,r.Popper=void 0;var e=n(60023),a=n(96524);function t(V,k){V.prototype=Object.create(k.prototype),V.prototype.constructor=V,o(V,k)}function o(V,k){return o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function S(b,p){return b.__proto__=p,b}return S}(),o(V,k)}var f=r.Popper=function(V){function k(){var b;return b=V.call(this)||this,b.renderedContent=void 0,b.popperInstance=void 0,k.id+=1,b}t(k,V);var S=k.prototype;return S.componentDidMount=function(){function b(){var p=this,l=this.props,c=l.additionalStyles,m=l.options;if(this.renderedContent=document.createElement("div"),c)for(var d=0,u=Object.entries(c);d=0)&&(d[s]=c[s]);return d}var p=r.ProgressBar=function(){function c(m){var d=m.className,u=m.value,s=m.minValue,i=s===void 0?0:s,v=m.maxValue,g=v===void 0?1:v,C=m.color,h=m.ranges,N=h===void 0?{}:h,y=m.children,B=m.fractionDigits,I=B===void 0?0:B,w=b(m,f),T=(0,a.scale)(u,i,g),A=y!==void 0,x=C||(0,a.keyOfMatchingRange)(u,N)||"default";return(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,t.classes)(["ProgressBar","ProgressBar--color--"+x,d,(0,o.computeBoxClassName)(w)]),[(0,e.createVNode)(1,"div","ProgressBar__fill ProgressBar__fill--animated",null,1,{style:{width:(0,a.clamp01)(T)*100+"%"}}),(0,e.createVNode)(1,"div","ProgressBar__content",A?y:(0,a.toFixed)(T*100,I)+"%",0)],4,Object.assign({},(0,o.computeBoxProps)(w))))}return c}();p.defaultHooks=t.pureComponentHooks;var l=r.ProgressBarCountdown=function(c){function m(u){var s;return s=c.call(this,u)||this,s.timer=null,s.state={value:Math.max(u.current*100,0)},s}k(m,c);var d=m.prototype;return d.tick=function(){function u(){var s=Math.max(this.state.value+this.props.rate,0);s<=0&&clearInterval(this.timer),this.setState(function(i){return{value:s}})}return u}(),d.componentDidMount=function(){function u(){var s=this;this.timer=setInterval(function(){return s.tick()},this.props.rate)}return u}(),d.componentWillUnmount=function(){function u(){clearInterval(this.timer)}return u}(),d.render=function(){function u(){var s=this.props,i=s.start,v=s.current,g=s.end,C=b(s,V),h=(this.state.value/100-i)/(g-i);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,p,Object.assign({value:h},C)))}return u}(),m}(e.Component);l.defaultProps={rate:1e3},p.Countdown=l},49977:function(L,r,n){"use strict";r.__esModule=!0,r.RestrictedInput=void 0;var e=n(96524),a=n(28234),t=n(36121),o=n(3051),f=n(68100),V=["onChange","onEnter","onInput","value"],k=["className","fluid","monospace"];function S(u,s){if(u==null)return{};var i={},v=Object.keys(u),g,C;for(C=0;C=0)&&(i[g]=u[g]);return i}function b(u,s){u.prototype=Object.create(s.prototype),u.prototype.constructor=u,p(u,s)}function p(u,s){return p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function i(v,g){return v.__proto__=g,v}return i}(),p(u,s)}var l=0,c=1e4,m=function(s,i,v,g){var C=i||l,h=v||v===0?v:c;if(!s||!s.length)return String(C);var N=g?parseFloat(s.replace(/[^\-\d.]/g,"")):parseInt(s.replace(/[^\-\d]/g,""),10);return isNaN(N)?String(C):String((0,t.clamp)(N,C,h))},d=r.RestrictedInput=function(u){function s(){var v;return v=u.call(this)||this,v.inputRef=(0,e.createRef)(),v.state={editing:!1},v.handleBlur=function(g){var C=v.state.editing;C&&v.setEditing(!1)},v.handleChange=function(g){var C=v.props,h=C.maxValue,N=C.minValue,y=C.onChange,B=C.allowFloats;g.target.value=m(g.target.value,N,h,B),y&&y(g,+g.target.value)},v.handleFocus=function(g){var C=v.state.editing;C||v.setEditing(!0)},v.handleInput=function(g){var C=v.state.editing,h=v.props.onInput;C||v.setEditing(!0),h&&h(g,+g.target.value)},v.handleKeyDown=function(g){var C=v.props,h=C.maxValue,N=C.minValue,y=C.onChange,B=C.onEnter,I=C.allowFloats;if(g.keyCode===f.KEY_ENTER){var w=m(g.target.value,N,h,I);v.setEditing(!1),y&&y(g,+w),B&&B(g,+w),g.target.blur();return}if(g.keyCode===f.KEY_ESCAPE){if(v.props.onEscape){v.props.onEscape(g);return}v.setEditing(!1),g.target.value=v.props.value,g.target.blur();return}},v}b(s,u);var i=s.prototype;return i.componentDidMount=function(){function v(){var g,C=this,h=this.props,N=h.maxValue,y=h.minValue,B=h.allowFloats,I=(g=this.props.value)==null?void 0:g.toString(),w=this.inputRef.current;w&&(w.value=m(I,y,N,B)),(this.props.autoFocus||this.props.autoSelect)&&setTimeout(function(){w.focus(),C.props.autoSelect&&w.select()},1)}return v}(),i.componentDidUpdate=function(){function v(g,C){var h,N,y=this.props,B=y.maxValue,I=y.minValue,w=y.allowFloats,T=this.state.editing,A=(h=g.value)==null?void 0:h.toString(),x=(N=this.props.value)==null?void 0:N.toString(),E=this.inputRef.current;E&&!T&&x!==A&&x!==E.value&&(E.value=m(x,I,B,w))}return v}(),i.setEditing=function(){function v(g){this.setState({editing:g})}return v}(),i.render=function(){function v(){var g=this.props,C=g.onChange,h=g.onEnter,N=g.onInput,y=g.value,B=S(g,V),I=B.className,w=B.fluid,T=B.monospace,A=S(B,k);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Box,Object.assign({className:(0,a.classes)(["Input",w&&"Input--fluid",T&&"Input--monospace",I])},A,{children:[(0,e.createVNode)(1,"div","Input__baseline",".",16),(0,e.createVNode)(64,"input","Input__input",null,1,{onChange:this.handleChange,onInput:this.handleInput,onFocus:this.handleFocus,onBlur:this.handleBlur,onKeyDown:this.handleKeyDown,type:"number"},null,this.inputRef)]})))}return v}(),s}(e.Component)},2083:function(L,r,n){"use strict";r.__esModule=!0,r.RoundGauge=void 0;var e=n(96524),a=n(36121),t=n(28234),o=n(65416),f=n(3051),V=["value","minValue","maxValue","ranges","alertAfter","format","size","className","style"];/** + */function k(c,m){c.prototype=Object.create(m.prototype),c.prototype.constructor=c,S(c,m)}function S(c,m){return S=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function d(u,s){return u.__proto__=s,u}return d}(),S(c,m)}function b(c,m){if(c==null)return{};var d={},u=Object.keys(c),s,i;for(i=0;i=0)&&(d[s]=c[s]);return d}var p=r.ProgressBar=function(){function c(m){var d=m.className,u=m.value,s=m.minValue,i=s===void 0?0:s,v=m.maxValue,C=v===void 0?1:v,g=m.color,h=m.ranges,N=h===void 0?{}:h,y=m.children,B=m.fractionDigits,I=B===void 0?0:B,w=b(m,f),T=(0,a.scale)(u,i,C),A=y!==void 0,x=g||(0,a.keyOfMatchingRange)(u,N)||"default";return(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,t.classes)(["ProgressBar","ProgressBar--color--"+x,d,(0,o.computeBoxClassName)(w)]),[(0,e.createVNode)(1,"div","ProgressBar__fill ProgressBar__fill--animated",null,1,{style:{width:(0,a.clamp01)(T)*100+"%"}}),(0,e.createVNode)(1,"div","ProgressBar__content",A?y:(0,a.toFixed)(T*100,I)+"%",0)],4,Object.assign({},(0,o.computeBoxProps)(w))))}return c}();p.defaultHooks=t.pureComponentHooks;var l=r.ProgressBarCountdown=function(c){function m(u){var s;return s=c.call(this,u)||this,s.timer=null,s.state={value:Math.max(u.current*100,0)},s}k(m,c);var d=m.prototype;return d.tick=function(){function u(){var s=Math.max(this.state.value+this.props.rate,0);s<=0&&clearInterval(this.timer),this.setState(function(i){return{value:s}})}return u}(),d.componentDidMount=function(){function u(){var s=this;this.timer=setInterval(function(){return s.tick()},this.props.rate)}return u}(),d.componentWillUnmount=function(){function u(){clearInterval(this.timer)}return u}(),d.render=function(){function u(){var s=this.props,i=s.start,v=s.current,C=s.end,g=b(s,V),h=(this.state.value/100-i)/(C-i);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,p,Object.assign({value:h},g)))}return u}(),m}(e.Component);l.defaultProps={rate:1e3},p.Countdown=l},49977:function(L,r,n){"use strict";r.__esModule=!0,r.RestrictedInput=void 0;var e=n(96524),a=n(28234),t=n(36121),o=n(3051),f=n(68100),V=["onChange","onEnter","onInput","value"],k=["className","fluid","monospace"];function S(u,s){if(u==null)return{};var i={},v=Object.keys(u),C,g;for(g=0;g=0)&&(i[C]=u[C]);return i}function b(u,s){u.prototype=Object.create(s.prototype),u.prototype.constructor=u,p(u,s)}function p(u,s){return p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function i(v,C){return v.__proto__=C,v}return i}(),p(u,s)}var l=0,c=1e4,m=function(s,i,v,C){var g=i||l,h=v||v===0?v:c;if(!s||!s.length)return String(g);var N=C?parseFloat(s.replace(/[^\-\d.]/g,"")):parseInt(s.replace(/[^\-\d]/g,""),10);return isNaN(N)?String(g):String((0,t.clamp)(N,g,h))},d=r.RestrictedInput=function(u){function s(){var v;return v=u.call(this)||this,v.inputRef=(0,e.createRef)(),v.state={editing:!1},v.handleBlur=function(C){var g=v.state.editing;g&&v.setEditing(!1)},v.handleChange=function(C){var g=v.props,h=g.maxValue,N=g.minValue,y=g.onChange,B=g.allowFloats;C.target.value=m(C.target.value,N,h,B),y&&y(C,+C.target.value)},v.handleFocus=function(C){var g=v.state.editing;g||v.setEditing(!0)},v.handleInput=function(C){var g=v.state.editing,h=v.props.onInput;g||v.setEditing(!0),h&&h(C,+C.target.value)},v.handleKeyDown=function(C){var g=v.props,h=g.maxValue,N=g.minValue,y=g.onChange,B=g.onEnter,I=g.allowFloats;if(C.keyCode===f.KEY_ENTER){var w=m(C.target.value,N,h,I);v.setEditing(!1),y&&y(C,+w),B&&B(C,+w),C.target.blur();return}if(C.keyCode===f.KEY_ESCAPE){if(v.props.onEscape){v.props.onEscape(C);return}v.setEditing(!1),C.target.value=v.props.value,C.target.blur();return}},v}b(s,u);var i=s.prototype;return i.componentDidMount=function(){function v(){var C,g=this,h=this.props,N=h.maxValue,y=h.minValue,B=h.allowFloats,I=(C=this.props.value)==null?void 0:C.toString(),w=this.inputRef.current;w&&(w.value=m(I,y,N,B)),(this.props.autoFocus||this.props.autoSelect)&&setTimeout(function(){w.focus(),g.props.autoSelect&&w.select()},1)}return v}(),i.componentDidUpdate=function(){function v(C,g){var h,N,y=this.props,B=y.maxValue,I=y.minValue,w=y.allowFloats,T=this.state.editing,A=(h=C.value)==null?void 0:h.toString(),x=(N=this.props.value)==null?void 0:N.toString(),E=this.inputRef.current;E&&!T&&x!==A&&x!==E.value&&(E.value=m(x,I,B,w))}return v}(),i.setEditing=function(){function v(C){this.setState({editing:C})}return v}(),i.render=function(){function v(){var C=this.props,g=C.onChange,h=C.onEnter,N=C.onInput,y=C.value,B=S(C,V),I=B.className,w=B.fluid,T=B.monospace,A=S(B,k);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Box,Object.assign({className:(0,a.classes)(["Input",w&&"Input--fluid",T&&"Input--monospace",I])},A,{children:[(0,e.createVNode)(1,"div","Input__baseline",".",16),(0,e.createVNode)(64,"input","Input__input",null,1,{onChange:this.handleChange,onInput:this.handleInput,onFocus:this.handleFocus,onBlur:this.handleBlur,onKeyDown:this.handleKeyDown,type:"number"},null,this.inputRef)]})))}return v}(),s}(e.Component)},2083:function(L,r,n){"use strict";r.__esModule=!0,r.RoundGauge=void 0;var e=n(96524),a=n(36121),t=n(28234),o=n(65416),f=n(3051),V=["value","minValue","maxValue","ranges","alertAfter","format","size","className","style"];/** * @file * @copyright 2020 bobbahbrown (https://github.com/bobbahbrown) * @license MIT - */function k(b,p){if(b==null)return{};var l={},c=Object.keys(b),m,d;for(d=0;d=0)&&(l[m]=b[m]);return l}var S=r.RoundGauge=function(){function b(p){var l=p.value,c=p.minValue,m=c===void 0?1:c,d=p.maxValue,u=d===void 0?1:d,s=p.ranges,i=p.alertAfter,v=p.format,g=p.size,C=g===void 0?1:g,h=p.className,N=p.style,y=k(p,V),B=(0,a.scale)(l,m,u),I=(0,a.clamp01)(B),w=s?{}:{primary:[0,1]};s&&Object.keys(s).forEach(function(A){var x=s[A];w[A]=[(0,a.scale)(x[0],m,u),(0,a.scale)(x[1],m,u)]});var T=null;return i=0)&&(c[d]=p[d]);return c}function k(p,l){p.prototype=Object.create(l.prototype),p.prototype.constructor=p,S(p,l)}function S(p,l){return S=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function c(m,d){return m.__proto__=d,m}return c}(),S(p,l)}/** + */function k(b,p){if(b==null)return{};var l={},c=Object.keys(b),m,d;for(d=0;d=0)&&(l[m]=b[m]);return l}var S=r.RoundGauge=function(){function b(p){var l=p.value,c=p.minValue,m=c===void 0?1:c,d=p.maxValue,u=d===void 0?1:d,s=p.ranges,i=p.alertAfter,v=p.format,C=p.size,g=C===void 0?1:C,h=p.className,N=p.style,y=k(p,V),B=(0,a.scale)(l,m,u),I=(0,a.clamp01)(B),w=s?{}:{primary:[0,1]};s&&Object.keys(s).forEach(function(A){var x=s[A];w[A]=[(0,a.scale)(x[0],m,u),(0,a.scale)(x[1],m,u)]});var T=null;return i=0)&&(c[d]=p[d]);return c}function k(p,l){p.prototype=Object.create(l.prototype),p.prototype.constructor=p,S(p,l)}function S(p,l){return S=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function c(m,d){return m.__proto__=d,m}return c}(),S(p,l)}/** * @file * @copyright 2020 Aleksej Komarov * @license MIT -*/var b=r.Section=function(p){function l(m){var d;return d=p.call(this,m)||this,d.scrollableRef=void 0,d.scrollable=void 0,d.scrollableRef=(0,e.createRef)(),d.scrollable=m.scrollable,d}k(l,p);var c=l.prototype;return c.componentDidMount=function(){function m(){this.scrollable&&(0,t.addScrollableNode)(this.scrollableRef.current)}return m}(),c.componentWillUnmount=function(){function m(){this.scrollable&&(0,t.removeScrollableNode)(this.scrollableRef.current)}return m}(),c.render=function(){function m(){var d=this.props,u=d.className,s=d.title,i=d.buttons,v=d.fill,g=d.fitted,C=d.scrollable,h=d.children,N=V(d,f),y=(0,a.canRender)(s)||(0,a.canRender)(i);return(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,a.classes)(["Section",v&&"Section--fill",g&&"Section--fitted",C&&"Section--scrollable",u,(0,o.computeBoxClassName)(N)]),[y&&(0,e.createVNode)(1,"div","Section__title",[(0,e.createVNode)(1,"span","Section__titleText",s,0),(0,e.createVNode)(1,"div","Section__buttons",i,0)],4),(0,e.createVNode)(1,"div","Section__rest",(0,e.createVNode)(1,"div","Section__content",h,0,null,null,this.scrollableRef),2)],0,Object.assign({},(0,o.computeBoxProps)(N))))}return m}(),l}(e.Component)},66397:function(L,r,n){"use strict";r.__esModule=!0,r.Slider=void 0;var e=n(96524),a=n(36121),t=n(28234),o=n(3051),f=n(27648),V=n(5985),k=["animated","format","maxValue","minValue","onChange","onDrag","step","stepPixelSize","suppressFlicker","unit","value","className","fillValue","color","ranges","children","disabled"];/** +*/var b=r.Section=function(p){function l(m){var d;return d=p.call(this,m)||this,d.scrollableRef=void 0,d.scrollable=void 0,d.scrollableRef=(0,e.createRef)(),d.scrollable=m.scrollable,d}k(l,p);var c=l.prototype;return c.componentDidMount=function(){function m(){this.scrollable&&(0,t.addScrollableNode)(this.scrollableRef.current)}return m}(),c.componentWillUnmount=function(){function m(){this.scrollable&&(0,t.removeScrollableNode)(this.scrollableRef.current)}return m}(),c.render=function(){function m(){var d=this.props,u=d.className,s=d.title,i=d.buttons,v=d.fill,C=d.fitted,g=d.scrollable,h=d.children,N=V(d,f),y=(0,a.canRender)(s)||(0,a.canRender)(i);return(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,a.classes)(["Section",v&&"Section--fill",C&&"Section--fitted",g&&"Section--scrollable",u,(0,o.computeBoxClassName)(N)]),[y&&(0,e.createVNode)(1,"div","Section__title",[(0,e.createVNode)(1,"span","Section__titleText",s,0),(0,e.createVNode)(1,"div","Section__buttons",i,0)],4),(0,e.createVNode)(1,"div","Section__rest",(0,e.createVNode)(1,"div","Section__content",h,0,null,null,this.scrollableRef),2)],0,Object.assign({},(0,o.computeBoxProps)(N))))}return m}(),l}(e.Component)},66397:function(L,r,n){"use strict";r.__esModule=!0,r.Slider=void 0;var e=n(96524),a=n(36121),t=n(28234),o=n(3051),f=n(27648),V=n(5985),k=["animated","format","maxValue","minValue","onChange","onDrag","step","stepPixelSize","suppressFlicker","unit","value","className","fillValue","color","ranges","children","disabled"];/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */function S(p,l){if(p==null)return{};var c={},m=Object.keys(p),d,u;for(u=0;u=0)&&(c[d]=p[d]);return c}var b=r.Slider=function(){function p(l){var c=l.animated,m=l.format,d=l.maxValue,u=l.minValue,s=l.onChange,i=l.onDrag,v=l.step,g=l.stepPixelSize,C=l.suppressFlicker,h=l.unit,N=l.value,y=l.className,B=l.fillValue,I=l.color,w=l.ranges,T=w===void 0?{}:w,A=l.children,x=l.disabled,E=S(l,k),M=A!==void 0;return(0,e.normalizeProps)((0,e.createComponentVNode)(2,f.DraggableControl,Object.assign({dragMatrix:[1,0]},{animated:c,format:m,maxValue:d,minValue:u,onChange:s,onDrag:i,step:v,stepPixelSize:g,suppressFlicker:C,unit:h,value:N,disabled:x},{children:function(){function D(P){var R=P.dragging,j=P.editing,F=P.value,U=P.displayValue,_=P.displayElement,z=P.inputElement,G=P.handleDragStart,X=B!=null,Y=(0,a.scale)(F,u,d),J=(0,a.scale)(B!=null?B:U,u,d),ie=(0,a.scale)(U,u,d),ae=I||(0,a.keyOfMatchingRange)(B!=null?B:F,T)||"default";return(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,t.classes)(["Slider",x&&"Slider__disabled","ProgressBar",x?"ProgressBar--color--disabled":"ProgressBar--color--"+ae,y,(0,o.computeBoxClassName)(E)]),[(0,e.createVNode)(1,"div",(0,t.classes)(["ProgressBar__fill",X&&"ProgressBar__fill--animated"]),null,1,{style:{width:(0,a.clamp01)(J)*100+"%",opacity:.4}}),(0,e.createVNode)(1,"div","ProgressBar__fill",null,1,{style:{width:(0,a.clamp01)(Math.min(J,ie))*100+"%"}}),(0,e.createVNode)(1,"div","Slider__cursorOffset",[(0,e.createVNode)(1,"div","Slider__cursor"),(0,e.createVNode)(1,"div","Slider__pointer"),R&&(0,e.createVNode)(1,"div","Slider__popupValue",_,0)],0,{style:{width:(0,a.clamp01)(ie)*100+"%"}}),(0,e.createVNode)(1,"div","ProgressBar__content",M?A:_,0),z],0,Object.assign({disabled:x},(0,o.computeBoxProps)(E),{onMouseDown:G})))}return D}()})))}return p}()},24800:function(L,r,n){"use strict";r.__esModule=!0,r.Stack=void 0;var e=n(96524),a=n(28234),t=n(18963),o=["className","vertical","fill"],f=["className","innerRef"],V=["className","hidden"];/** + */function S(p,l){if(p==null)return{};var c={},m=Object.keys(p),d,u;for(u=0;u=0)&&(c[d]=p[d]);return c}var b=r.Slider=function(){function p(l){var c=l.animated,m=l.format,d=l.maxValue,u=l.minValue,s=l.onChange,i=l.onDrag,v=l.step,C=l.stepPixelSize,g=l.suppressFlicker,h=l.unit,N=l.value,y=l.className,B=l.fillValue,I=l.color,w=l.ranges,T=w===void 0?{}:w,A=l.children,x=l.disabled,E=S(l,k),M=A!==void 0;return(0,e.normalizeProps)((0,e.createComponentVNode)(2,f.DraggableControl,Object.assign({dragMatrix:[1,0]},{animated:c,format:m,maxValue:d,minValue:u,onChange:s,onDrag:i,step:v,stepPixelSize:C,suppressFlicker:g,unit:h,value:N,disabled:x},{children:function(){function D(P){var R=P.dragging,j=P.editing,F=P.value,U=P.displayValue,_=P.displayElement,z=P.inputElement,G=P.handleDragStart,X=B!=null,Y=(0,a.scale)(F,u,d),J=(0,a.scale)(B!=null?B:U,u,d),ie=(0,a.scale)(U,u,d),ae=I||(0,a.keyOfMatchingRange)(B!=null?B:F,T)||"default";return(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,t.classes)(["Slider",x&&"Slider__disabled","ProgressBar",x?"ProgressBar--color--disabled":"ProgressBar--color--"+ae,y,(0,o.computeBoxClassName)(E)]),[(0,e.createVNode)(1,"div",(0,t.classes)(["ProgressBar__fill",X&&"ProgressBar__fill--animated"]),null,1,{style:{width:(0,a.clamp01)(J)*100+"%",opacity:.4}}),(0,e.createVNode)(1,"div","ProgressBar__fill",null,1,{style:{width:(0,a.clamp01)(Math.min(J,ie))*100+"%"}}),(0,e.createVNode)(1,"div","Slider__cursorOffset",[(0,e.createVNode)(1,"div","Slider__cursor"),(0,e.createVNode)(1,"div","Slider__pointer"),R&&(0,e.createVNode)(1,"div","Slider__popupValue",_,0)],0,{style:{width:(0,a.clamp01)(ie)*100+"%"}}),(0,e.createVNode)(1,"div","ProgressBar__content",M?A:_,0),z],0,Object.assign({disabled:x},(0,o.computeBoxProps)(E),{onMouseDown:G})))}return D}()})))}return p}()},24800:function(L,r,n){"use strict";r.__esModule=!0,r.Stack=void 0;var e=n(96524),a=n(28234),t=n(18963),o=["className","vertical","fill"],f=["className","innerRef"],V=["className","hidden"];/** * @file * @copyright 2021 Aleksej Komarov * @license MIT @@ -185,16 +185,16 @@ * @file * @copyright 2020 Aleksej Komarov * @license MIT - */function k(p,l){if(p==null)return{};var c={},m=Object.keys(p),d,u;for(u=0;u=0)&&(c[d]=p[d]);return c}var S=r.Tabs=function(){function p(l){var c=l.className,m=l.vertical,d=l.fill,u=l.fluid,s=l.children,i=k(l,f);return(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,a.classes)(["Tabs",m?"Tabs--vertical":"Tabs--horizontal",d&&"Tabs--fill",u&&"Tabs--fluid",c,(0,t.computeBoxClassName)(i)]),s,0,Object.assign({},(0,t.computeBoxProps)(i))))}return p}(),b=function(l){var c=l.className,m=l.selected,d=l.color,u=l.icon,s=l.leftSlot,i=l.rightSlot,v=l.children,g=k(l,V);return(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,a.classes)(["Tab","Tabs__Tab","Tab--color--"+d,m&&"Tab--selected",c,(0,t.computeBoxClassName)(g)]),[(0,a.canRender)(s)&&(0,e.createVNode)(1,"div","Tab__left",s,0)||!!u&&(0,e.createVNode)(1,"div","Tab__left",(0,e.createComponentVNode)(2,o.Icon,{name:u}),2),(0,e.createVNode)(1,"div","Tab__text",v,0),(0,a.canRender)(i)&&(0,e.createVNode)(1,"div","Tab__right",i,0)],0,Object.assign({},(0,t.computeBoxProps)(g))))};S.Tab=b},67606:function(L,r,n){"use strict";r.__esModule=!0,r.TextArea=void 0;var e=n(96524),a=n(28234),t=n(3051),o=n(49034),f=n(68100),V=["onChange","onKeyDown","onKeyPress","onInput","onFocus","onBlur","onEnter","value","maxLength","placeholder"],k=["className","fluid"];function S(c,m){if(c==null)return{};var d={},u=Object.keys(c),s,i;for(i=0;i=0)&&(d[s]=c[s]);return d}function b(c,m){c.prototype=Object.create(m.prototype),c.prototype.constructor=c,p(c,m)}function p(c,m){return p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function d(u,s){return u.__proto__=s,u}return d}(),p(c,m)}/** + */function k(p,l){if(p==null)return{};var c={},m=Object.keys(p),d,u;for(u=0;u=0)&&(c[d]=p[d]);return c}var S=r.Tabs=function(){function p(l){var c=l.className,m=l.vertical,d=l.fill,u=l.fluid,s=l.children,i=k(l,f);return(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,a.classes)(["Tabs",m?"Tabs--vertical":"Tabs--horizontal",d&&"Tabs--fill",u&&"Tabs--fluid",c,(0,t.computeBoxClassName)(i)]),s,0,Object.assign({},(0,t.computeBoxProps)(i))))}return p}(),b=function(l){var c=l.className,m=l.selected,d=l.color,u=l.icon,s=l.leftSlot,i=l.rightSlot,v=l.children,C=k(l,V);return(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,a.classes)(["Tab","Tabs__Tab","Tab--color--"+d,m&&"Tab--selected",c,(0,t.computeBoxClassName)(C)]),[(0,a.canRender)(s)&&(0,e.createVNode)(1,"div","Tab__left",s,0)||!!u&&(0,e.createVNode)(1,"div","Tab__left",(0,e.createComponentVNode)(2,o.Icon,{name:u}),2),(0,e.createVNode)(1,"div","Tab__text",v,0),(0,a.canRender)(i)&&(0,e.createVNode)(1,"div","Tab__right",i,0)],0,Object.assign({},(0,t.computeBoxProps)(C))))};S.Tab=b},67606:function(L,r,n){"use strict";r.__esModule=!0,r.TextArea=void 0;var e=n(96524),a=n(28234),t=n(3051),o=n(49034),f=n(68100),V=["onChange","onKeyDown","onKeyPress","onInput","onFocus","onBlur","onEnter","value","maxLength","placeholder"],k=["className","fluid"];function S(c,m){if(c==null)return{};var d={},u=Object.keys(c),s,i;for(i=0;i=0)&&(d[s]=c[s]);return d}function b(c,m){c.prototype=Object.create(m.prototype),c.prototype.constructor=c,p(c,m)}function p(c,m){return p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function d(u,s){return u.__proto__=s,u}return d}(),p(c,m)}/** * @file * @copyright 2020 Aleksej Komarov * @author Warlockd * @license MIT -*/var l=r.TextArea=function(c){function m(u,s){var i;i=c.call(this,u,s)||this,i.textareaRef=u.innerRef||(0,e.createRef)(),i.fillerRef=(0,e.createRef)(),i.state={editing:!1};var v=u.dontUseTabForIndent,g=v===void 0?!1:v;return i.handleOnInput=function(C){var h=i.state.editing,N=i.props.onInput;h||i.setEditing(!0),N&&N(C,C.target.value)},i.handleOnChange=function(C){var h=i.state.editing,N=i.props.onChange;h&&i.setEditing(!1),N&&N(C,C.target.value)},i.handleKeyPress=function(C){var h=i.state.editing,N=i.props.onKeyPress;h||i.setEditing(!0),N&&N(C,C.target.value)},i.handleKeyDown=function(C){var h=i.state.editing,N=i.props,y=N.onChange,B=N.onInput,I=N.onEnter,w=N.onKeyDown;if(C.keyCode===f.KEY_ENTER){i.setEditing(!1),y&&y(C,C.target.value),B&&B(C,C.target.value),I&&I(C,C.target.value),i.props.selfClear&&(C.target.value="",C.target.blur());return}if(C.keyCode===f.KEY_ESCAPE){i.props.onEscape&&i.props.onEscape(C),i.setEditing(!1),i.props.selfClear?C.target.value="":(C.target.value=(0,o.toInputValue)(i.props.value),C.target.blur());return}if(h||i.setEditing(!0),w&&w(C,C.target.value),!g){var T=C.keyCode||C.which;if(T===f.KEY_TAB){C.preventDefault();var A=C.target,x=A.value,E=A.selectionStart,M=A.selectionEnd;C.target.value=x.substring(0,E)+" "+x.substring(M),C.target.selectionEnd=E+1}}},i.handleFocus=function(C){var h=i.state.editing;h||i.setEditing(!0)},i.handleBlur=function(C){var h=i.state.editing,N=i.props.onChange;h&&(i.setEditing(!1),N&&N(C,C.target.value))},i}b(m,c);var d=m.prototype;return d.componentDidMount=function(){function u(){var s=this,i=this.props.value,v=this.textareaRef.current;v&&(v.value=(0,o.toInputValue)(i)),(this.props.autoFocus||this.props.autoSelect)&&setTimeout(function(){v.focus(),s.props.autoSelect&&v.select()},1)}return u}(),d.componentDidUpdate=function(){function u(s,i){var v=s.value,g=this.props.value,C=this.textareaRef.current;C&&typeof g=="string"&&v!==g&&(C.value=(0,o.toInputValue)(g))}return u}(),d.setEditing=function(){function u(s){this.setState({editing:s})}return u}(),d.getValue=function(){function u(){return this.textareaRef.current&&this.textareaRef.current.value}return u}(),d.render=function(){function u(){var s=this.props,i=s.onChange,v=s.onKeyDown,g=s.onKeyPress,C=s.onInput,h=s.onFocus,N=s.onBlur,y=s.onEnter,B=s.value,I=s.maxLength,w=s.placeholder,T=S(s,V),A=T.className,x=T.fluid,E=S(T,k);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,t.Box,Object.assign({className:(0,a.classes)(["TextArea",x&&"TextArea--fluid",A])},E,{children:(0,e.createVNode)(128,"textarea","TextArea__textarea",null,1,{placeholder:w,onChange:this.handleOnChange,onKeyDown:this.handleKeyDown,onKeyPress:this.handleKeyPress,onInput:this.handleOnInput,onFocus:this.handleFocus,onBlur:this.handleBlur,maxLength:I},null,this.textareaRef)})))}return u}(),m}(e.Component)},6303:function(L,r){"use strict";r.__esModule=!0,r.TimeDisplay=void 0;var n=function(t){(!t||t<0)&&(t=0);var o=Math.floor(t/60).toString(10),f=(Math.floor(t)%60).toString(10);return[o,f].map(function(V){return V.length<2?"0"+V:V}).join(":")},e=r.TimeDisplay=function(){function a(t){var o=t.totalSeconds,f=o===void 0?0:o;return n(f)}return a}()},58749:function(L,r,n){"use strict";r.__esModule=!0,r.Tooltip=void 0;var e=n(96524),a=n(60023),t;function o(b,p){b.prototype=Object.create(p.prototype),b.prototype.constructor=b,f(b,p)}function f(b,p){return f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function l(c,m){return c.__proto__=m,c}return l}(),f(b,p)}var V={modifiers:[{name:"eventListeners",enabled:!1}]},k={width:0,height:0,top:0,right:0,bottom:0,left:0,x:0,y:0,toJSON:function(){function b(){return null}return b}()},S=r.Tooltip=function(b){function p(){return b.apply(this,arguments)||this}o(p,b);var l=p.prototype;return l.getDOMNode=function(){function c(){return(0,e.findDOMfromVNode)(this.$LI,!0)}return c}(),l.componentDidMount=function(){function c(){var m=this,d=this.getDOMNode();d&&(d.addEventListener("mouseenter",function(){var u=p.renderedTooltip;u===void 0&&(u=document.createElement("div"),u.className="Tooltip",document.body.appendChild(u),p.renderedTooltip=u),p.currentHoveredElement=d,u.style.opacity="1",m.renderPopperContent()}),d.addEventListener("mouseleave",function(){m.fadeOut()}))}return c}(),l.fadeOut=function(){function c(){p.currentHoveredElement===this.getDOMNode()&&(p.currentHoveredElement=void 0,p.renderedTooltip.style.opacity="0")}return c}(),l.renderPopperContent=function(){function c(){var m=this,d=p.renderedTooltip;d&&(0,e.render)((0,e.createVNode)(1,"span",null,this.props.content,0),d,function(){var u=p.singletonPopper;u===void 0?(u=(0,a.createPopper)(p.virtualElement,d,Object.assign({},V,{placement:m.props.position||"auto"})),p.singletonPopper=u):(u.setOptions(Object.assign({},V,{placement:m.props.position||"auto"})),u.update())},this.context)}return c}(),l.componentDidUpdate=function(){function c(){p.currentHoveredElement===this.getDOMNode()&&this.renderPopperContent()}return c}(),l.componentWillUnmount=function(){function c(){this.fadeOut()}return c}(),l.render=function(){function c(){return this.props.children}return c}(),p}(e.Component);t=S,S.renderedTooltip=void 0,S.singletonPopper=void 0,S.currentHoveredElement=void 0,S.virtualElement={getBoundingClientRect:function(){function b(){var p,l;return(p=(l=t.currentHoveredElement)==null?void 0:l.getBoundingClientRect())!=null?p:k}return b}()}},24674:function(L,r,n){"use strict";r.__esModule=!0,r.Tooltip=r.TimeDisplay=r.TextArea=r.Tabs=r.Table=r.Stack=r.Slider=r.Section=r.RoundGauge=r.RestrictedInput=r.ProgressBar=r.Popper=r.NumberInput=r.NoticeBox=r.NanoMap=r.Modal=r.LabeledList=r.LabeledControls=r.Knob=r.Input=r.ImageButton=r.Icon=r.Grid=r.Flex=r.Dropdown=r.DraggableControl=r.Divider=r.Dimmer=r.Countdown=r.ColorBox=r.Collapsible=r.Chart=r.ByondUi=r.Button=r.Box=r.BlockQuote=r.Blink=r.Autofocus=r.AnimatedNumber=void 0;var e=n(65416);r.AnimatedNumber=e.AnimatedNumber;var a=n(11735);r.Autofocus=a.Autofocus;var t=n(35436);r.Blink=t.Blink;var o=n(55239);r.BlockQuote=o.BlockQuote;var f=n(3051);r.Box=f.Box;var V=n(91688);r.Button=V.Button;var k=n(42204);r.ByondUi=k.ByondUi;var S=n(41886);r.Chart=S.Chart;var b=n(83974);r.Collapsible=b.Collapsible;var p=n(26236);r.ColorBox=p.ColorBox;var l=n(99509);r.Countdown=l.Countdown;var c=n(72358);r.Dimmer=c.Dimmer;var m=n(31647);r.Divider=m.Divider;var d=n(27648);r.DraggableControl=d.DraggableControl;var u=n(45293);r.Dropdown=u.Dropdown;var s=n(18963);r.Flex=s.Flex;var i=n(17956);r.Grid=i.Grid;var v=n(11253);r.Icon=v.Icon;var g=n(36587);r.ImageButton=g.ImageButton;var C=n(49034);r.Input=C.Input;var h=n(9836);r.Knob=h.Knob;var N=n(86259);r.LabeledControls=N.LabeledControls;var y=n(91097);r.LabeledList=y.LabeledList;var B=n(97539);r.Modal=B.Modal;var I=n(55830);r.NanoMap=I.NanoMap;var w=n(14899);r.NoticeBox=w.NoticeBox;var T=n(5985);r.NumberInput=T.NumberInput;var A=n(37056);r.Popper=A.Popper;var x=n(36146);r.ProgressBar=x.ProgressBar;var E=n(49977);r.RestrictedInput=E.RestrictedInput;var M=n(2083);r.RoundGauge=M.RoundGauge;var D=n(5201);r.Section=D.Section;var P=n(66397);r.Slider=P.Slider;var R=n(24800);r.Stack=R.Stack;var j=n(5126);r.Table=j.Table;var F=n(26104);r.Tabs=F.Tabs;var U=n(67606);r.TextArea=U.TextArea;var _=n(6303);r.TimeDisplay=_.TimeDisplay;var z=n(58749);r.Tooltip=z.Tooltip},38424:function(L,r){"use strict";r.__esModule=!0,r.timeAgo=r.getGasLabel=r.getGasColor=r.UI_UPDATE=r.UI_INTERACTIVE=r.UI_DISABLED=r.UI_CLOSE=r.RADIO_CHANNELS=r.CSS_COLORS=r.COLORS=void 0;var n=r.UI_INTERACTIVE=2,e=r.UI_UPDATE=1,a=r.UI_DISABLED=0,t=r.UI_CLOSE=-1,o=r.COLORS={department:{command:"#526aff",security:"#CF0000",medical:"#009190",science:"#993399",engineering:"#A66300",supply:"#9F8545",service:"#80A000",centcom:"#78789B",other:"#C38312"},damageType:{oxy:"#3498db",toxin:"#2ecc71",burn:"#e67e22",brute:"#e74c3c"}},f=r.CSS_COLORS=["black","white","red","orange","yellow","olive","green","teal","blue","violet","purple","pink","brown","grey","good","average","bad","label"],V=r.RADIO_CHANNELS=[{name:"Syndicate",freq:1213,color:"#a52a2a"},{name:"SyndTeam",freq:1244,color:"#a52a2a"},{name:"Red Team",freq:1215,color:"#ff4444"},{name:"Blue Team",freq:1217,color:"#3434fd"},{name:"Response Team",freq:1345,color:"#2681a5"},{name:"Special Ops",freq:1341,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:"Procedure",freq:1339,color:"#F70285"},{name:"Medical",freq:1355,color:"#57b8f0"},{name:"Medical(I)",freq:1485,color:"#57b8f0"},{name:"Engineering",freq:1357,color:"#f37746"},{name:"Security",freq:1359,color:"#dd3535"},{name:"Security(I)",freq:1475,color:"#dd3535"},{name:"AI Private",freq:1343,color:"#d65d95"},{name:"Common",freq:1459,color:"#1ecc43"}],k=[{id:"o2",name:"Oxygen",label:"O\u2082",color:"blue"},{id:"n2",name:"Nitrogen",label:"N\u2082",color:"red"},{id:"co2",name:"Carbon Dioxide",label:"CO\u2082",color:"grey"},{id:"plasma",name:"Plasma",label:"Plasma",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:"ab",name:"Agent B",label:"Agent B",color:"purple"}],S=r.getGasLabel=function(){function l(c,m){var d=String(c).toLowerCase(),u=k.find(function(s){return s.id===d||s.name.toLowerCase()===d});return u&&u.label||m||c}return l}(),b=r.getGasColor=function(){function l(c){var m=String(c).toLowerCase(),d=k.find(function(u){return u.id===m||u.name.toLowerCase()===m});return d&&d.color}return l}(),p=r.timeAgo=function(){function l(c,m){if(c>m)return"in the future";c=c/10,m=m/10;var d=m-c;if(d>3600){var u=Math.round(d/3600);return u+" hour"+(u===1?"":"s")+" ago"}else if(d>60){var s=Math.round(d/60);return s+" minute"+(s===1?"":"s")+" ago"}else{var i=Math.round(d);return i+" second"+(i===1?"":"s")+" ago"}return"just now"}return l}()},27598:function(L,r,n){"use strict";r.__esModule=!0,r.KitchenSink=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493);/** +*/var l=r.TextArea=function(c){function m(u,s){var i;i=c.call(this,u,s)||this,i.textareaRef=u.innerRef||(0,e.createRef)(),i.fillerRef=(0,e.createRef)(),i.state={editing:!1};var v=u.dontUseTabForIndent,C=v===void 0?!1:v;return i.handleOnInput=function(g){var h=i.state.editing,N=i.props.onInput;h||i.setEditing(!0),N&&N(g,g.target.value)},i.handleOnChange=function(g){var h=i.state.editing,N=i.props.onChange;h&&i.setEditing(!1),N&&N(g,g.target.value)},i.handleKeyPress=function(g){var h=i.state.editing,N=i.props.onKeyPress;h||i.setEditing(!0),N&&N(g,g.target.value)},i.handleKeyDown=function(g){var h=i.state.editing,N=i.props,y=N.onChange,B=N.onInput,I=N.onEnter,w=N.onKeyDown;if(g.keyCode===f.KEY_ENTER){i.setEditing(!1),y&&y(g,g.target.value),B&&B(g,g.target.value),I&&I(g,g.target.value),i.props.selfClear&&(g.target.value="",g.target.blur());return}if(g.keyCode===f.KEY_ESCAPE){i.props.onEscape&&i.props.onEscape(g),i.setEditing(!1),i.props.selfClear?g.target.value="":(g.target.value=(0,o.toInputValue)(i.props.value),g.target.blur());return}if(h||i.setEditing(!0),w&&w(g,g.target.value),!C){var T=g.keyCode||g.which;if(T===f.KEY_TAB){g.preventDefault();var A=g.target,x=A.value,E=A.selectionStart,M=A.selectionEnd;g.target.value=x.substring(0,E)+" "+x.substring(M),g.target.selectionEnd=E+1}}},i.handleFocus=function(g){var h=i.state.editing;h||i.setEditing(!0)},i.handleBlur=function(g){var h=i.state.editing,N=i.props.onChange;h&&(i.setEditing(!1),N&&N(g,g.target.value))},i}b(m,c);var d=m.prototype;return d.componentDidMount=function(){function u(){var s=this,i=this.props.value,v=this.textareaRef.current;v&&(v.value=(0,o.toInputValue)(i)),(this.props.autoFocus||this.props.autoSelect)&&setTimeout(function(){v.focus(),s.props.autoSelect&&v.select()},1)}return u}(),d.componentDidUpdate=function(){function u(s,i){var v=s.value,C=this.props.value,g=this.textareaRef.current;g&&typeof C=="string"&&v!==C&&(g.value=(0,o.toInputValue)(C))}return u}(),d.setEditing=function(){function u(s){this.setState({editing:s})}return u}(),d.getValue=function(){function u(){return this.textareaRef.current&&this.textareaRef.current.value}return u}(),d.render=function(){function u(){var s=this.props,i=s.onChange,v=s.onKeyDown,C=s.onKeyPress,g=s.onInput,h=s.onFocus,N=s.onBlur,y=s.onEnter,B=s.value,I=s.maxLength,w=s.placeholder,T=S(s,V),A=T.className,x=T.fluid,E=S(T,k);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,t.Box,Object.assign({className:(0,a.classes)(["TextArea",x&&"TextArea--fluid",A])},E,{children:(0,e.createVNode)(128,"textarea","TextArea__textarea",null,1,{placeholder:w,onChange:this.handleOnChange,onKeyDown:this.handleKeyDown,onKeyPress:this.handleKeyPress,onInput:this.handleOnInput,onFocus:this.handleFocus,onBlur:this.handleBlur,maxLength:I},null,this.textareaRef)})))}return u}(),m}(e.Component)},6303:function(L,r){"use strict";r.__esModule=!0,r.TimeDisplay=void 0;var n=function(t){(!t||t<0)&&(t=0);var o=Math.floor(t/60).toString(10),f=(Math.floor(t)%60).toString(10);return[o,f].map(function(V){return V.length<2?"0"+V:V}).join(":")},e=r.TimeDisplay=function(){function a(t){var o=t.totalSeconds,f=o===void 0?0:o;return n(f)}return a}()},58749:function(L,r,n){"use strict";r.__esModule=!0,r.Tooltip=void 0;var e=n(96524),a=n(60023),t;function o(b,p){b.prototype=Object.create(p.prototype),b.prototype.constructor=b,f(b,p)}function f(b,p){return f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function l(c,m){return c.__proto__=m,c}return l}(),f(b,p)}var V={modifiers:[{name:"eventListeners",enabled:!1}]},k={width:0,height:0,top:0,right:0,bottom:0,left:0,x:0,y:0,toJSON:function(){function b(){return null}return b}()},S=r.Tooltip=function(b){function p(){return b.apply(this,arguments)||this}o(p,b);var l=p.prototype;return l.getDOMNode=function(){function c(){return(0,e.findDOMfromVNode)(this.$LI,!0)}return c}(),l.componentDidMount=function(){function c(){var m=this,d=this.getDOMNode();d&&(d.addEventListener("mouseenter",function(){var u=p.renderedTooltip;u===void 0&&(u=document.createElement("div"),u.className="Tooltip",document.body.appendChild(u),p.renderedTooltip=u),p.currentHoveredElement=d,u.style.opacity="1",m.renderPopperContent()}),d.addEventListener("mouseleave",function(){m.fadeOut()}))}return c}(),l.fadeOut=function(){function c(){p.currentHoveredElement===this.getDOMNode()&&(p.currentHoveredElement=void 0,p.renderedTooltip.style.opacity="0")}return c}(),l.renderPopperContent=function(){function c(){var m=this,d=p.renderedTooltip;d&&(0,e.render)((0,e.createVNode)(1,"span",null,this.props.content,0),d,function(){var u=p.singletonPopper;u===void 0?(u=(0,a.createPopper)(p.virtualElement,d,Object.assign({},V,{placement:m.props.position||"auto"})),p.singletonPopper=u):(u.setOptions(Object.assign({},V,{placement:m.props.position||"auto"})),u.update())},this.context)}return c}(),l.componentDidUpdate=function(){function c(){p.currentHoveredElement===this.getDOMNode()&&this.renderPopperContent()}return c}(),l.componentWillUnmount=function(){function c(){this.fadeOut()}return c}(),l.render=function(){function c(){return this.props.children}return c}(),p}(e.Component);t=S,S.renderedTooltip=void 0,S.singletonPopper=void 0,S.currentHoveredElement=void 0,S.virtualElement={getBoundingClientRect:function(){function b(){var p,l;return(p=(l=t.currentHoveredElement)==null?void 0:l.getBoundingClientRect())!=null?p:k}return b}()}},24674:function(L,r,n){"use strict";r.__esModule=!0,r.Tooltip=r.TimeDisplay=r.TextArea=r.Tabs=r.Table=r.Stack=r.Slider=r.Section=r.RoundGauge=r.RestrictedInput=r.ProgressBar=r.Popper=r.NumberInput=r.NoticeBox=r.NanoMap=r.Modal=r.LabeledList=r.LabeledControls=r.Knob=r.Input=r.ImageButton=r.Icon=r.Grid=r.Flex=r.Dropdown=r.DraggableControl=r.Divider=r.Dimmer=r.Countdown=r.ColorBox=r.Collapsible=r.Chart=r.ByondUi=r.Button=r.Box=r.BlockQuote=r.Blink=r.Autofocus=r.AnimatedNumber=void 0;var e=n(65416);r.AnimatedNumber=e.AnimatedNumber;var a=n(11735);r.Autofocus=a.Autofocus;var t=n(35436);r.Blink=t.Blink;var o=n(55239);r.BlockQuote=o.BlockQuote;var f=n(3051);r.Box=f.Box;var V=n(91688);r.Button=V.Button;var k=n(42204);r.ByondUi=k.ByondUi;var S=n(41886);r.Chart=S.Chart;var b=n(83974);r.Collapsible=b.Collapsible;var p=n(26236);r.ColorBox=p.ColorBox;var l=n(99509);r.Countdown=l.Countdown;var c=n(72358);r.Dimmer=c.Dimmer;var m=n(31647);r.Divider=m.Divider;var d=n(27648);r.DraggableControl=d.DraggableControl;var u=n(45293);r.Dropdown=u.Dropdown;var s=n(18963);r.Flex=s.Flex;var i=n(17956);r.Grid=i.Grid;var v=n(11253);r.Icon=v.Icon;var C=n(36587);r.ImageButton=C.ImageButton;var g=n(49034);r.Input=g.Input;var h=n(9836);r.Knob=h.Knob;var N=n(86259);r.LabeledControls=N.LabeledControls;var y=n(91097);r.LabeledList=y.LabeledList;var B=n(97539);r.Modal=B.Modal;var I=n(55830);r.NanoMap=I.NanoMap;var w=n(14899);r.NoticeBox=w.NoticeBox;var T=n(5985);r.NumberInput=T.NumberInput;var A=n(37056);r.Popper=A.Popper;var x=n(36146);r.ProgressBar=x.ProgressBar;var E=n(49977);r.RestrictedInput=E.RestrictedInput;var M=n(2083);r.RoundGauge=M.RoundGauge;var D=n(5201);r.Section=D.Section;var P=n(66397);r.Slider=P.Slider;var R=n(24800);r.Stack=R.Stack;var j=n(5126);r.Table=j.Table;var F=n(26104);r.Tabs=F.Tabs;var U=n(67606);r.TextArea=U.TextArea;var _=n(6303);r.TimeDisplay=_.TimeDisplay;var z=n(58749);r.Tooltip=z.Tooltip},38424:function(L,r){"use strict";r.__esModule=!0,r.timeAgo=r.getGasLabel=r.getGasColor=r.UI_UPDATE=r.UI_INTERACTIVE=r.UI_DISABLED=r.UI_CLOSE=r.RADIO_CHANNELS=r.CSS_COLORS=r.COLORS=void 0;var n=r.UI_INTERACTIVE=2,e=r.UI_UPDATE=1,a=r.UI_DISABLED=0,t=r.UI_CLOSE=-1,o=r.COLORS={department:{command:"#526aff",security:"#CF0000",medical:"#009190",science:"#993399",engineering:"#A66300",supply:"#9F8545",service:"#80A000",centcom:"#78789B",other:"#C38312"},damageType:{oxy:"#3498db",toxin:"#2ecc71",burn:"#e67e22",brute:"#e74c3c"}},f=r.CSS_COLORS=["black","white","red","orange","yellow","olive","green","teal","blue","violet","purple","pink","brown","grey","good","average","bad","label"],V=r.RADIO_CHANNELS=[{name:"Syndicate",freq:1213,color:"#a52a2a"},{name:"SyndTeam",freq:1244,color:"#a52a2a"},{name:"Red Team",freq:1215,color:"#ff4444"},{name:"Blue Team",freq:1217,color:"#3434fd"},{name:"Response Team",freq:1345,color:"#2681a5"},{name:"Special Ops",freq:1341,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:"Procedure",freq:1339,color:"#F70285"},{name:"Medical",freq:1355,color:"#57b8f0"},{name:"Medical(I)",freq:1485,color:"#57b8f0"},{name:"Engineering",freq:1357,color:"#f37746"},{name:"Security",freq:1359,color:"#dd3535"},{name:"Security(I)",freq:1475,color:"#dd3535"},{name:"AI Private",freq:1343,color:"#d65d95"},{name:"Common",freq:1459,color:"#1ecc43"}],k=[{id:"o2",name:"Oxygen",label:"O\u2082",color:"blue"},{id:"n2",name:"Nitrogen",label:"N\u2082",color:"red"},{id:"co2",name:"Carbon Dioxide",label:"CO\u2082",color:"grey"},{id:"plasma",name:"Plasma",label:"Plasma",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:"ab",name:"Agent B",label:"Agent B",color:"purple"}],S=r.getGasLabel=function(){function l(c,m){var d=String(c).toLowerCase(),u=k.find(function(s){return s.id===d||s.name.toLowerCase()===d});return u&&u.label||m||c}return l}(),b=r.getGasColor=function(){function l(c){var m=String(c).toLowerCase(),d=k.find(function(u){return u.id===m||u.name.toLowerCase()===m});return d&&d.color}return l}(),p=r.timeAgo=function(){function l(c,m){if(c>m)return"in the future";c=c/10,m=m/10;var d=m-c;if(d>3600){var u=Math.round(d/3600);return u+" hour"+(u===1?"":"s")+" ago"}else if(d>60){var s=Math.round(d/60);return s+" minute"+(s===1?"":"s")+" ago"}else{var i=Math.round(d);return i+" second"+(i===1?"":"s")+" ago"}return"just now"}return l}()},27598:function(L,r,n){"use strict";r.__esModule=!0,r.KitchenSink=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493);/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */var f=n(4085),V=function(){return f.keys().map(function(b){return f(b)})},k=r.KitchenSink=function(){function S(b,p){var l=b.panel,c=(0,a.useLocalState)(p,"kitchenSinkTheme"),m=c[0],d=(0,a.useLocalState)(p,"pageIndex",0),u=d[0],s=d[1],i=V(),v=i[u],g=l?o.Pane:o.Window;return(0,e.createComponentVNode)(2,g,{title:"Kitchen Sink",width:600,height:500,theme:m,children:(0,e.createComponentVNode)(2,t.Flex,{height:"100%",children:[(0,e.createComponentVNode)(2,t.Flex.Item,{m:1,mr:0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,fitted:!0,children:(0,e.createComponentVNode)(2,t.Tabs,{vertical:!0,children:i.map(function(C,h){return(0,e.createComponentVNode)(2,t.Tabs.Tab,{color:"transparent",selected:h===u,onClick:function(){function N(){return s(h)}return N}(),children:C.meta.title},h)})})})}),(0,e.createComponentVNode)(2,t.Flex.Item,{position:"relative",grow:1,children:(0,e.createComponentVNode)(2,g.Content,{scrollable:!0,children:v.meta.render()})})]})})}return S}()},82574:function(L,r,n){"use strict";r.__esModule=!0,r.toggleKitchenSink=r.toggleDebugLayout=r.openExternalBrowser=void 0;var e=n(88605);/** + */var f=n(4085),V=function(){return f.keys().map(function(b){return f(b)})},k=r.KitchenSink=function(){function S(b,p){var l=b.panel,c=(0,a.useLocalState)(p,"kitchenSinkTheme"),m=c[0],d=(0,a.useLocalState)(p,"pageIndex",0),u=d[0],s=d[1],i=V(),v=i[u],C=l?o.Pane:o.Window;return(0,e.createComponentVNode)(2,C,{title:"Kitchen Sink",width:600,height:500,theme:m,children:(0,e.createComponentVNode)(2,t.Flex,{height:"100%",children:[(0,e.createComponentVNode)(2,t.Flex.Item,{m:1,mr:0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,fitted:!0,children:(0,e.createComponentVNode)(2,t.Tabs,{vertical:!0,children:i.map(function(g,h){return(0,e.createComponentVNode)(2,t.Tabs.Tab,{color:"transparent",selected:h===u,onClick:function(){function N(){return s(h)}return N}(),children:g.meta.title},h)})})})}),(0,e.createComponentVNode)(2,t.Flex.Item,{position:"relative",grow:1,children:(0,e.createComponentVNode)(2,C.Content,{scrollable:!0,children:v.meta.render()})})]})})}return S}()},82574:function(L,r,n){"use strict";r.__esModule=!0,r.toggleKitchenSink=r.toggleDebugLayout=r.openExternalBrowser=void 0;var e=n(88605);/** * @file * @copyright 2020 Aleksej Komarov * @license MIT @@ -218,13 +218,13 @@ * @file * @copyright 2020 Aleksej Komarov * @license MIT -*/var k=(0,t.createLogger)("drag"),S=Byond.windowId,b=!1,p=!1,l=[0,0],c,m,d,u,s,i=r.setWindowKey=function(){function j(F){S=F}return j}(),v=r.getWindowPosition=function(){function j(){return[window.screenLeft,window.screenTop]}return j}(),g=r.getWindowSize=function(){function j(){return[window.innerWidth,window.innerHeight]}return j}(),C=r.setWindowPosition=function(){function j(F){var U=(0,a.vecAdd)(F,l);return Byond.winset(Byond.windowId,{pos:U[0]+","+U[1]})}return j}(),h=r.setWindowSize=function(){function j(F){return Byond.winset(Byond.windowId,{size:F[0]+"x"+F[1]})}return j}(),N=r.getScreenPosition=function(){function j(){return[0-l[0],0-l[1]]}return j}(),y=r.getScreenSize=function(){function j(){return[window.screen.availWidth,window.screen.availHeight]}return j}(),B=function(F,U,_){_===void 0&&(_=50);for(var z=[U],G,X=0;Xie&&(G[Y]=ie-U[Y],X=!0)}return[X,G]},x=r.dragStartHandler=function(){function j(F){k.log("drag start"),b=!0,m=[window.screenLeft-F.screenX,window.screenTop-F.screenY],document.addEventListener("mousemove",M),document.addEventListener("mouseup",E),M(F)}return j}(),E=function j(F){k.log("drag end"),M(F),document.removeEventListener("mousemove",M),document.removeEventListener("mouseup",j),b=!1,I()},M=function(F){b&&(F.preventDefault(),C((0,a.vecAdd)([F.screenX,F.screenY],m)))},D=r.resizeStartHandler=function(){function j(F,U){return function(_){d=[F,U],k.log("resize start",d),p=!0,m=[window.screenLeft-_.screenX,window.screenTop-_.screenY],u=[window.innerWidth,window.innerHeight],document.addEventListener("mousemove",R),document.addEventListener("mouseup",P),R(_)}}return j}(),P=function j(F){k.log("resize end",s),R(F),document.removeEventListener("mousemove",R),document.removeEventListener("mouseup",j),p=!1,I()},R=function(F){p&&(F.preventDefault(),s=(0,a.vecAdd)(u,(0,a.vecMultiply)(d,(0,a.vecAdd)([F.screenX,F.screenY],(0,a.vecInverse)([window.screenLeft,window.screenTop]),m,[1,1]))),s[0]=Math.max(s[0],150),s[1]=Math.max(s[1],50),h(s))}},92700:function(L,r,n){"use strict";r.__esModule=!0,r.setupGlobalEvents=r.removeScrollableNode=r.globalEvents=r.canStealFocus=r.addScrollableNode=r.KeyEvent=void 0;var e=n(22594),a=n(68100);/** +*/var k=(0,t.createLogger)("drag"),S=Byond.windowId,b=!1,p=!1,l=[0,0],c,m,d,u,s,i=r.setWindowKey=function(){function j(F){S=F}return j}(),v=r.getWindowPosition=function(){function j(){return[window.screenLeft,window.screenTop]}return j}(),C=r.getWindowSize=function(){function j(){return[window.innerWidth,window.innerHeight]}return j}(),g=r.setWindowPosition=function(){function j(F){var U=(0,a.vecAdd)(F,l);return Byond.winset(Byond.windowId,{pos:U[0]+","+U[1]})}return j}(),h=r.setWindowSize=function(){function j(F){return Byond.winset(Byond.windowId,{size:F[0]+"x"+F[1]})}return j}(),N=r.getScreenPosition=function(){function j(){return[0-l[0],0-l[1]]}return j}(),y=r.getScreenSize=function(){function j(){return[window.screen.availWidth,window.screen.availHeight]}return j}(),B=function(F,U,_){_===void 0&&(_=50);for(var z=[U],G,X=0;Xie&&(G[Y]=ie-U[Y],X=!0)}return[X,G]},x=r.dragStartHandler=function(){function j(F){k.log("drag start"),b=!0,m=[window.screenLeft-F.screenX,window.screenTop-F.screenY],document.addEventListener("mousemove",M),document.addEventListener("mouseup",E),M(F)}return j}(),E=function j(F){k.log("drag end"),M(F),document.removeEventListener("mousemove",M),document.removeEventListener("mouseup",j),b=!1,I()},M=function(F){b&&(F.preventDefault(),g((0,a.vecAdd)([F.screenX,F.screenY],m)))},D=r.resizeStartHandler=function(){function j(F,U){return function(_){d=[F,U],k.log("resize start",d),p=!0,m=[window.screenLeft-_.screenX,window.screenTop-_.screenY],u=[window.innerWidth,window.innerHeight],document.addEventListener("mousemove",R),document.addEventListener("mouseup",P),R(_)}}return j}(),P=function j(F){k.log("resize end",s),R(F),document.removeEventListener("mousemove",R),document.removeEventListener("mouseup",j),p=!1,I()},R=function(F){p&&(F.preventDefault(),s=(0,a.vecAdd)(u,(0,a.vecMultiply)(d,(0,a.vecAdd)([F.screenX,F.screenY],(0,a.vecInverse)([window.screenLeft,window.screenTop]),m,[1,1]))),s[0]=Math.max(s[0],150),s[1]=Math.max(s[1],50),h(s))}},92700:function(L,r,n){"use strict";r.__esModule=!0,r.setupGlobalEvents=r.removeScrollableNode=r.globalEvents=r.canStealFocus=r.addScrollableNode=r.KeyEvent=void 0;var e=n(22594),a=n(68100);/** * Normalized browser focus events and BYOND-specific focus helpers. * * @file * @copyright 2020 Aleksej Komarov * @license MIT - */var t=r.globalEvents=new e.EventEmitter,o=!1,f=r.setupGlobalEvents=function(){function h(N){N===void 0&&(N={}),o=!!N.ignoreWindowFocus}return h}(),V,k=!0,S=function h(N,y){if(o){k=!0;return}if(V&&(clearTimeout(V),V=null),y){V=setTimeout(function(){return h(N)});return}k!==N&&(k=N,t.emit(N?"window-focus":"window-blur"),t.emit("window-focus-change",N))},b=null,p=r.canStealFocus=function(){function h(N){var y=String(N.tagName).toLowerCase();return y==="input"||y==="textarea"}return h}(),l=function(N){c(),b=N,b.addEventListener("blur",c)},c=function h(){b&&(b.removeEventListener("blur",h),b=null)},m=null,d=null,u=[],s=r.addScrollableNode=function(){function h(N){u.push(N)}return h}(),i=r.removeScrollableNode=function(){function h(N){var y=u.indexOf(N);y>=0&&u.splice(y,1)}return h}(),v=function(N){if(!(b||!k))for(var y=document.body;N&&N!==y;){if(u.includes(N)){if(N.contains(m))return;m=N,N.focus();return}N=N.parentNode}};window.addEventListener("mousemove",function(h){var N=h.target;N!==d&&(d=N,v(N))}),window.addEventListener("focusin",function(h){if(d=null,m=h.target,S(!0),p(h.target)){l(h.target);return}}),window.addEventListener("focusout",function(h){d=null,S(!1,!0)}),window.addEventListener("blur",function(h){d=null,S(!1,!0)}),window.addEventListener("beforeunload",function(h){S(!1)});var g={},C=r.KeyEvent=function(){function h(y,B,I){this.event=y,this.type=B,this.code=window.event?y.which:y.keyCode,this.ctrl=y.ctrlKey,this.shift=y.shiftKey,this.alt=y.altKey,this.repeat=!!I}var N=h.prototype;return N.hasModifierKeys=function(){function y(){return this.ctrl||this.alt||this.shift}return y}(),N.isModifierKey=function(){function y(){return this.code===a.KEY_CTRL||this.code===a.KEY_SHIFT||this.code===a.KEY_ALT}return y}(),N.isDown=function(){function y(){return this.type==="keydown"}return y}(),N.isUp=function(){function y(){return this.type==="keyup"}return y}(),N.toString=function(){function y(){return this._str?this._str:(this._str="",this.ctrl&&(this._str+="Ctrl+"),this.alt&&(this._str+="Alt+"),this.shift&&(this._str+="Shift+"),this.code>=48&&this.code<=90?this._str+=String.fromCharCode(this.code):this.code>=a.KEY_F1&&this.code<=a.KEY_F12?this._str+="F"+(this.code-111):this._str+="["+this.code+"]",this._str)}return y}(),h}();document.addEventListener("keydown",function(h){if(!p(h.target)){var N=h.keyCode,y=new C(h,"keydown",g[N]);t.emit("keydown",y),t.emit("key",y),g[N]=!0}}),document.addEventListener("keyup",function(h){if(!p(h.target)){var N=h.keyCode,y=new C(h,"keyup");t.emit("keyup",y),t.emit("key",y),g[N]=!1}})},92017:function(L,r){"use strict";r.__esModule=!0,r.focusWindow=r.focusMap=void 0;/** + */var t=r.globalEvents=new e.EventEmitter,o=!1,f=r.setupGlobalEvents=function(){function h(N){N===void 0&&(N={}),o=!!N.ignoreWindowFocus}return h}(),V,k=!0,S=function h(N,y){if(o){k=!0;return}if(V&&(clearTimeout(V),V=null),y){V=setTimeout(function(){return h(N)});return}k!==N&&(k=N,t.emit(N?"window-focus":"window-blur"),t.emit("window-focus-change",N))},b=null,p=r.canStealFocus=function(){function h(N){var y=String(N.tagName).toLowerCase();return y==="input"||y==="textarea"}return h}(),l=function(N){c(),b=N,b.addEventListener("blur",c)},c=function h(){b&&(b.removeEventListener("blur",h),b=null)},m=null,d=null,u=[],s=r.addScrollableNode=function(){function h(N){u.push(N)}return h}(),i=r.removeScrollableNode=function(){function h(N){var y=u.indexOf(N);y>=0&&u.splice(y,1)}return h}(),v=function(N){if(!(b||!k))for(var y=document.body;N&&N!==y;){if(u.includes(N)){if(N.contains(m))return;m=N,N.focus();return}N=N.parentNode}};window.addEventListener("mousemove",function(h){var N=h.target;N!==d&&(d=N,v(N))}),window.addEventListener("focusin",function(h){if(d=null,m=h.target,S(!0),p(h.target)){l(h.target);return}}),window.addEventListener("focusout",function(h){d=null,S(!1,!0)}),window.addEventListener("blur",function(h){d=null,S(!1,!0)}),window.addEventListener("beforeunload",function(h){S(!1)});var C={},g=r.KeyEvent=function(){function h(y,B,I){this.event=y,this.type=B,this.code=window.event?y.which:y.keyCode,this.ctrl=y.ctrlKey,this.shift=y.shiftKey,this.alt=y.altKey,this.repeat=!!I}var N=h.prototype;return N.hasModifierKeys=function(){function y(){return this.ctrl||this.alt||this.shift}return y}(),N.isModifierKey=function(){function y(){return this.code===a.KEY_CTRL||this.code===a.KEY_SHIFT||this.code===a.KEY_ALT}return y}(),N.isDown=function(){function y(){return this.type==="keydown"}return y}(),N.isUp=function(){function y(){return this.type==="keyup"}return y}(),N.toString=function(){function y(){return this._str?this._str:(this._str="",this.ctrl&&(this._str+="Ctrl+"),this.alt&&(this._str+="Alt+"),this.shift&&(this._str+="Shift+"),this.code>=48&&this.code<=90?this._str+=String.fromCharCode(this.code):this.code>=a.KEY_F1&&this.code<=a.KEY_F12?this._str+="F"+(this.code-111):this._str+="["+this.code+"]",this._str)}return y}(),h}();document.addEventListener("keydown",function(h){if(!p(h.target)){var N=h.keyCode,y=new g(h,"keydown",C[N]);t.emit("keydown",y),t.emit("key",y),C[N]=!0}}),document.addEventListener("keyup",function(h){if(!p(h.target)){var N=h.keyCode,y=new g(h,"keyup");t.emit("keyup",y),t.emit("key",y),C[N]=!1}})},92017:function(L,r){"use strict";r.__esModule=!0,r.focusWindow=r.focusMap=void 0;/** * Various focus helpers. * * @file @@ -234,11 +234,11 @@ * @file * @copyright 2020 Aleksej Komarov * @license MIT - */var a=["f","p","n","\u03BC","m"," ","k","M","G","T","P","E","Z","Y"],t=a.indexOf(" "),o=r.formatSiUnit=function(){function S(b,p,l){if(p===void 0&&(p=-t),l===void 0&&(l=""),typeof b!="number"||!Number.isFinite(b))return b;var c=Math.floor(Math.log10(b)),m=Math.floor(Math.max(p*3,c)),d=Math.floor(c/3),u=Math.floor(m/3),s=(0,e.clamp)(t+u,0,a.length),i=a[s],v=b/Math.pow(1e3,u),g=d>p?2+u*3-m:0,C=(0,e.toFixed)(v,g)+" "+i+l;return C.trim()}return S}(),f=r.formatPower=function(){function S(b,p){return p===void 0&&(p=0),o(b,p,"W")}return S}(),V=r.formatMoney=function(){function S(b,p){if(p===void 0&&(p=0),!Number.isFinite(b))return b;var l=(0,e.round)(b,p);p>0&&(l=(0,e.toFixed)(b,p)),l=String(l);var c=l.length,m=l.indexOf(".");m===-1&&(m=c);for(var d="",u=0;u0&&u=0?"+":p<0?"\u2013":"",c=Math.abs(p);return c===1/0?c="Inf":c=(0,e.toFixed)(c,2),l+c+" dB"}return S}()},39952:function(L,r,n){"use strict";r.__esModule=!0,r.setupHotKeys=r.releaseHotKey=r.releaseHeldKeys=r.acquireHotKey=void 0;var e=f(n(68100)),a=n(92700),t=n(81856);function o(s){if(typeof WeakMap!="function")return null;var i=new WeakMap,v=new WeakMap;return(o=function(C){return C?v:i})(s)}function f(s,i){if(!i&&s&&s.__esModule)return s;if(s===null||typeof s!="object"&&typeof s!="function")return{default:s};var v=o(i);if(v&&v.has(s))return v.get(s);var g={__proto__:null},C=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var h in s)if(h!=="default"&&{}.hasOwnProperty.call(s,h)){var N=C?Object.getOwnPropertyDescriptor(s,h):null;N&&(N.get||N.set)?Object.defineProperty(g,h,N):g[h]=s[h]}return g.default=s,v&&v.set(s,g),g}/** + */var a=["f","p","n","\u03BC","m"," ","k","M","G","T","P","E","Z","Y"],t=a.indexOf(" "),o=r.formatSiUnit=function(){function S(b,p,l){if(p===void 0&&(p=-t),l===void 0&&(l=""),typeof b!="number"||!Number.isFinite(b))return b;var c=Math.floor(Math.log10(b)),m=Math.floor(Math.max(p*3,c)),d=Math.floor(c/3),u=Math.floor(m/3),s=(0,e.clamp)(t+u,0,a.length),i=a[s],v=b/Math.pow(1e3,u),C=d>p?2+u*3-m:0,g=(0,e.toFixed)(v,C)+" "+i+l;return g.trim()}return S}(),f=r.formatPower=function(){function S(b,p){return p===void 0&&(p=0),o(b,p,"W")}return S}(),V=r.formatMoney=function(){function S(b,p){if(p===void 0&&(p=0),!Number.isFinite(b))return b;var l=(0,e.round)(b,p);p>0&&(l=(0,e.toFixed)(b,p)),l=String(l);var c=l.length,m=l.indexOf(".");m===-1&&(m=c);for(var d="",u=0;u0&&u=0?"+":p<0?"\u2013":"",c=Math.abs(p);return c===1/0?c="Inf":c=(0,e.toFixed)(c,2),l+c+" dB"}return S}()},39952:function(L,r,n){"use strict";r.__esModule=!0,r.setupHotKeys=r.releaseHotKey=r.releaseHeldKeys=r.acquireHotKey=void 0;var e=f(n(68100)),a=n(92700),t=n(81856);function o(s){if(typeof WeakMap!="function")return null;var i=new WeakMap,v=new WeakMap;return(o=function(g){return g?v:i})(s)}function f(s,i){if(!i&&s&&s.__esModule)return s;if(s===null||typeof s!="object"&&typeof s!="function")return{default:s};var v=o(i);if(v&&v.has(s))return v.get(s);var C={__proto__:null},g=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var h in s)if(h!=="default"&&{}.hasOwnProperty.call(s,h)){var N=g?Object.getOwnPropertyDescriptor(s,h):null;N&&(N.get||N.set)?Object.defineProperty(C,h,N):C[h]=s[h]}return C.default=s,v&&v.set(s,C),C}/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */var V=(0,t.createLogger)("hotkeys"),k={},S=[e.KEY_ESCAPE,e.KEY_ENTER,e.KEY_SPACE,e.KEY_TAB,e.KEY_CTRL,e.KEY_SHIFT,e.KEY_UP,e.KEY_DOWN,e.KEY_LEFT,e.KEY_RIGHT],b={},p=function(i){if(i===16)return"Shift";if(i===17)return"Ctrl";if(i===18)return"Alt";if(i===33)return"Northeast";if(i===34)return"Southeast";if(i===35)return"Southwest";if(i===36)return"Northwest";if(i===37)return"West";if(i===38)return"North";if(i===39)return"East";if(i===40)return"South";if(i===45)return"Insert";if(i===46)return"Delete";if(i>=48&&i<=57||i>=65&&i<=90)return String.fromCharCode(i);if(i>=96&&i<=105)return"Numpad"+(i-96);if(i>=112&&i<=123)return"F"+(i-111);if(i===188)return",";if(i===189)return"-";if(i===190)return"."},l=function(i){var v=String(i);if(v==="Ctrl+F5"||v==="Ctrl+R"){location.reload();return}if(v!=="Ctrl+F"&&!(i.event.defaultPrevented||i.isModifierKey()||S.includes(i.code))){v==="F5"&&(i.event.preventDefault(),i.event.returnValue=!1);var g=p(i.code);if(g){var C=k[g];if(C)return V.debug("macro",C),Byond.command(C);if(i.isDown()&&!b[g]){b[g]=!0;var h='Key_Down "'+g+'"';return V.debug(h),Byond.command(h)}if(i.isUp()&&b[g]){b[g]=!1;var N='Key_Up "'+g+'"';return V.debug(N),Byond.command(N)}}}},c=r.acquireHotKey=function(){function s(i){S.push(i)}return s}(),m=r.releaseHotKey=function(){function s(i){var v=S.indexOf(i);v>=0&&S.splice(v,1)}return s}(),d=r.releaseHeldKeys=function(){function s(){for(var i=0,v=Object.keys(b);i=75?c="green":l.integrity>=25?c="yellow":c="red",(0,e.createComponentVNode)(2,o.Window,{width:600,height:420,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:l.name,children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Integrity",children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:c,value:l.integrity/100})})}),(0,e.createComponentVNode)(2,t.Box,{color:"red",children:(0,e.createVNode)(1,"h2",null,l.flushing===1?"Wipe of AI in progress...":"",0)})]})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Laws",children:!!l.has_laws&&(0,e.createComponentVNode)(2,t.Box,{children:l.laws.map(function(m,d){return(0,e.createComponentVNode)(2,t.Box,{children:m},d)})})||(0,e.createComponentVNode)(2,t.Box,{color:"red",children:(0,e.createVNode)(1,"h3",null,"No laws detected.",16)})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Actions",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Wireless Activity",children:(0,e.createComponentVNode)(2,t.Button,{width:10,icon:l.wireless?"check":"times",content:l.wireless?"Enabled":"Disabled",color:l.wireless?"green":"red",onClick:function(){function m(){return p("wireless")}return m}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Subspace Transceiver",children:(0,e.createComponentVNode)(2,t.Button,{width:10,icon:l.radio?"check":"times",content:l.radio?"Enabled":"Disabled",color:l.radio?"green":"red",onClick:function(){function m(){return p("radio")}return m}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Wipe",children:(0,e.createComponentVNode)(2,t.Button.Confirm,{width:10,icon:"trash-alt",confirmIcon:"trash-alt",disabled:l.flushing||l.integrity===0,confirmColor:"red",content:"Wipe AI",onClick:function(){function m(){return p("wipe")}return m}()})})]})})})]})})})}return V}()},78468:function(L,r,n){"use strict";r.__esModule=!0,r.AIFixer=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.AIFixer=function(){function V(k,S){var b=(0,a.useBackend)(S),p=b.act,l=b.data;if(l.occupant===null)return(0,e.createComponentVNode)(2,o.Window,{width:550,height:500,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Stored AI",children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,grow:!0,textAlign:"center",align:"center",color:"average",children:[(0,e.createComponentVNode)(2,t.Icon.Stack,{children:[(0,e.createComponentVNode)(2,t.Icon,{name:"robot",size:5,color:"silver"}),(0,e.createComponentVNode)(2,t.Icon,{name:"slash",size:5,color:"red"})]}),(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"h3",null,"No Artificial Intelligence detected.",16)]})})})})});var c=!0;(l.stat===2||l.stat===null)&&(c=!1);var m=null;l.integrity>=75?m="green":l.integrity>=25?m="yellow":m="red";var d=!0;return l.integrity>=100&&l.stat!==2&&(d=!1),(0,e.createComponentVNode)(2,o.Window,{scrollable:!0,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:l.occupant,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Integrity",children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:m,value:l.integrity/100})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",color:c?"green":"red",children:c?"Functional":"Non-Functional"})]})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Laws",children:!!l.has_laws&&(0,e.createComponentVNode)(2,t.Box,{children:l.laws.map(function(u,s){return(0,e.createComponentVNode)(2,t.Box,{inline:!0,children:u},s)})})||(0,e.createComponentVNode)(2,t.Box,{color:"red",children:(0,e.createVNode)(1,"h3",null,"No laws detected.",16)})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Actions",children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Wireless Activity",children:(0,e.createComponentVNode)(2,t.Button,{icon:l.wireless?"times":"check",content:l.wireless?"Disabled":"Enabled",color:l.wireless?"red":"green",onClick:function(){function u(){return p("wireless")}return u}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Subspace Transceiver",children:(0,e.createComponentVNode)(2,t.Button,{icon:l.radio?"times":"check",content:l.radio?"Disabled":"Enabled",color:l.radio?"red":"green",onClick:function(){function u(){return p("radio")}return u}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Start Repairs",children:(0,e.createComponentVNode)(2,t.Button,{icon:"wrench",disabled:!d||l.active,content:!d||l.active?"Already Repaired":"Repair",onClick:function(){function u(){return p("fix")}return u}()})})]}),(0,e.createComponentVNode)(2,t.Box,{color:"green",lineHeight:2,children:l.active?"Reconstruction in progress.":""})]})})]})})})}return V}()},73544:function(L,r,n){"use strict";r.__esModule=!0,r.APC=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=n(26893),V=r.APC=function(){function p(l,c){return(0,e.createComponentVNode)(2,o.Window,{width:510,height:435,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,b)})})}return p}(),k={2:{color:"good",externalPowerText:"External Power",chargingText:"Fully Charged"},1:{color:"average",externalPowerText:"Low External Power",chargingText:"Charging"},0:{color:"bad",externalPowerText:"No External Power",chargingText:"Not Charging"}},S={1:{icon:"terminal",content:"Override Programming",action:"hack"},2:{icon:"caret-square-down",content:"Shunt Core Process",action:"occupy"},3:{icon:"caret-square-left",content:"Return to Main Core",action:"deoccupy"},4:{icon:"caret-square-down",content:"Shunt Core Process",action:"occupy"}},b=function(l,c){var m=(0,a.useBackend)(c),d=m.act,u=m.data,s=u.locked&&!u.siliconUser,i=u.normallyLocked,v=k[u.externalPower]||k[0],g=k[u.chargingStatus]||k[0],C=u.powerChannels||[],h=S[u.malfStatus]||S[0],N=u.powerCellStatus/100;return(0,e.createFragment)([(0,e.createComponentVNode)(2,f.InterfaceLockNoticeBox),(0,e.createComponentVNode)(2,t.Section,{title:"Power Status",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Main Breaker",color:v.color,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:u.isOperating?"power-off":"times",content:u.isOperating?"On":"Off",selected:u.isOperating&&!s,color:u.isOperating?"":"bad",disabled:s,onClick:function(){function y(){return d("breaker")}return y}()}),children:["[ ",v.externalPowerText," ]"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power Cell",children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:"good",value:N})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Charge Mode",color:g.color,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:u.chargeMode?"sync":"times",content:u.chargeMode?"Auto":"Off",selected:u.chargeMode,disabled:s,onClick:function(){function y(){return d("charge")}return y}()}),children:["[ ",g.chargingText," ]"]})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Power Channels",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[C.map(function(y){var B=y.topicParams;return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:y.title,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{inline:!0,mx:2,color:y.status>=2?"good":"bad",children:y.status>=2?"On":"Off"}),(0,e.createComponentVNode)(2,t.Button,{icon:"sync",content:"Auto",selected:!s&&(y.status===1||y.status===3),disabled:s,onClick:function(){function I(){return d("channel",B.auto)}return I}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"power-off",content:"On",selected:!s&&y.status===2,disabled:s,onClick:function(){function I(){return d("channel",B.on)}return I}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"times",content:"Off",selected:!s&&y.status===0,disabled:s,onClick:function(){function I(){return d("channel",B.off)}return I}()})],4),children:[y.powerLoad," W"]},y.title)}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Total Load",children:(0,e.createVNode)(1,"b",null,[u.totalLoad,(0,e.createTextVNode)(" W")],0)})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Misc",buttons:!!u.siliconUser&&(0,e.createFragment)([!!u.malfStatus&&(0,e.createComponentVNode)(2,t.Button,{icon:h.icon,content:h.content,color:"bad",onClick:function(){function y(){return d(h.action)}return y}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"lightbulb-o",content:"Overload",onClick:function(){function y(){return d("overload")}return y}()})],0),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cover Lock",buttons:(0,e.createComponentVNode)(2,t.Button,{mb:.4,icon:u.coverLocked?"lock":"unlock",content:u.coverLocked?"Engaged":"Disengaged",disabled:s,onClick:function(){function y(){return d("cover")}return y}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Emergency Lighting",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"lightbulb-o",content:u.emergencyLights?"Enabled":"Disabled",disabled:s,onClick:function(){function y(){return d("emergency_lighting")}return y}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Night Shift Lighting",buttons:(0,e.createComponentVNode)(2,t.Button,{mt:.4,icon:"lightbulb-o",content:u.nightshiftLights?"Enabled":"Disabled",onClick:function(){function y(){return d("toggle_nightshift")}return y}()})})]})})],4)}},79098:function(L,r,n){"use strict";r.__esModule=!0,r.ATM=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.ATM=function(){function m(d,u){var s=(0,a.useBackend)(u),i=s.act,v=s.data,g=v.view_screen,C=v.authenticated_account,h=v.ticks_left_locked_down,N=v.linked_db,y;if(h>0)y=(0,e.createComponentVNode)(2,t.Box,{bold:!0,color:"bad",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"exclamation-triangle"}),"Maximum number of pin attempts exceeded! Access to this ATM has been temporarily disabled."]});else if(!N)y=(0,e.createComponentVNode)(2,t.Box,{bold:!0,color:"bad",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"exclamation-triangle"}),"Unable to connect to accounts database, please retry and if the issue persists contact Nanotrasen IT support."]});else if(C)switch(g){case 1:y=(0,e.createComponentVNode)(2,k);break;case 2:y=(0,e.createComponentVNode)(2,S);break;case 3:y=(0,e.createComponentVNode)(2,l);break;default:y=(0,e.createComponentVNode)(2,b)}else y=(0,e.createComponentVNode)(2,p);return(0,e.createComponentVNode)(2,o.Window,{width:550,height:650,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,V),(0,e.createComponentVNode)(2,t.Section,{children:y})]})})}return m}(),V=function(d,u){var s=(0,a.useBackend)(u),i=s.act,v=s.data,g=v.machine_id,C=v.held_card_name;return(0,e.createComponentVNode)(2,t.Section,{title:"Nanotrasen Automatic Teller Machine",children:[(0,e.createComponentVNode)(2,t.Box,{children:"For all your monetary needs!"}),(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Card",children:(0,e.createComponentVNode)(2,t.Button,{content:C,icon:"eject",onClick:function(){function h(){return i("insert_card")}return h}()})})})]})},k=function(d,u){var s=(0,a.useBackend)(u),i=s.act,v=s.data,g=v.security_level;return(0,e.createComponentVNode)(2,t.Section,{title:"Select a new security level for this account",children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Level",children:(0,e.createComponentVNode)(2,t.Button,{content:"Account Number",icon:"unlock",selected:g===0,onClick:function(){function C(){return i("change_security_level",{new_security_level:1})}return C}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Description",children:"Either the account number or card is required to access this account. EFTPOS transactions will require a card."}),(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Level",children:(0,e.createComponentVNode)(2,t.Button,{content:"Account Pin",icon:"unlock",selected:g===2,onClick:function(){function C(){return i("change_security_level",{new_security_level:2})}return C}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Description",children:"An account number and pin must be manually entered to access this account and process transactions."})]}),(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,c)]})},S=function(d,u){var s=(0,a.useBackend)(u),i=s.act,v=s.data,g=(0,a.useLocalState)(u,"targetAccNumber",0),C=g[0],h=g[1],N=(0,a.useLocalState)(u,"fundsAmount",0),y=N[0],B=N[1],I=(0,a.useLocalState)(u,"purpose",0),w=I[0],T=I[1],A=v.money;return(0,e.createComponentVNode)(2,t.Section,{title:"Transfer Fund",children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Account Balance",children:["$",A]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Target Account Number",children:(0,e.createComponentVNode)(2,t.Input,{placeholder:"7 Digit Number",onInput:function(){function x(E,M){return h(M)}return x}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Funds to Transfer",children:(0,e.createComponentVNode)(2,t.Input,{onInput:function(){function x(E,M){return B(M)}return x}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Transaction Purpose",children:(0,e.createComponentVNode)(2,t.Input,{fluid:!0,onInput:function(){function x(E,M){return T(M)}return x}()})})]}),(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,t.Button,{content:"Transfer",icon:"sign-out-alt",onClick:function(){function x(){return i("transfer",{target_acc_number:C,funds_amount:y,purpose:w})}return x}()}),(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,c)]})},b=function(d,u){var s=(0,a.useBackend)(u),i=s.act,v=s.data,g=(0,a.useLocalState)(u,"fundsAmount",0),C=g[0],h=g[1],N=v.owner_name,y=v.money;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{title:"Welcome, "+N,buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Logout",icon:"sign-out-alt",onClick:function(){function B(){return i("logout")}return B}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Account Balance",children:["$",y]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Withdrawal Amount",children:(0,e.createComponentVNode)(2,t.Input,{onInput:function(){function B(I,w){return h(w)}return B}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Withdraw Funds",icon:"sign-out-alt",onClick:function(){function B(){return i("withdrawal",{funds_amount:C})}return B}()})})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Menu",children:[(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Change account security level",icon:"lock",onClick:function(){function B(){return i("view_screen",{view_screen:1})}return B}()})}),(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Make transfer",icon:"exchange-alt",onClick:function(){function B(){return i("view_screen",{view_screen:2})}return B}()})}),(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:"View transaction log",icon:"list",onClick:function(){function B(){return i("view_screen",{view_screen:3})}return B}()})}),(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Print balance statement",icon:"print",onClick:function(){function B(){return i("balance_statement")}return B}()})})]})],4)},p=function(d,u){var s=(0,a.useBackend)(u),i=s.act,v=s.data,g=(0,a.useLocalState)(u,"accountID",null),C=g[0],h=g[1],N=(0,a.useLocalState)(u,"accountPin",null),y=N[0],B=N[1],I=v.machine_id,w=v.held_card_name;return(0,e.createComponentVNode)(2,t.Section,{title:"Insert card or enter ID and pin to login",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Account ID",children:(0,e.createComponentVNode)(2,t.Input,{placeholder:"6 Digit Number",onInput:function(){function T(A,x){return h(x)}return T}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Pin",children:(0,e.createComponentVNode)(2,t.Input,{placeholder:"6 Digit Number",onInput:function(){function T(A,x){return B(x)}return T}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Login",icon:"sign-in-alt",onClick:function(){function T(){return i("attempt_auth",{account_num:C,account_pin:y})}return T}()})})]})})},l=function(d,u){var s=(0,a.useBackend)(u),i=s.act,v=s.data,g=v.transaction_log;return(0,e.createComponentVNode)(2,t.Section,{title:"Transactions",children:[(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Timestamp"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Reason"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Value"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Terminal"})]}),g.map(function(C){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:C.time}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:C.purpose}),(0,e.createComponentVNode)(2,t.Table.Cell,{color:C.is_deposit?"green":"red",children:["$",C.amount]}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:C.target_name})]},C)})]}),(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,c)]})},c=function(d,u){var s=(0,a.useBackend)(u),i=s.act,v=s.data;return(0,e.createComponentVNode)(2,t.Button,{content:"Back",icon:"sign-out-alt",onClick:function(){function g(){return i("view_screen",{view_screen:0})}return g}()})}},64613:function(L,r,n){"use strict";r.__esModule=!0,r.AccountsUplinkTerminal=void 0;var e=n(96524),a=n(78234),t=n(17899),o=n(24674),f=n(5126),V=n(45493),k=n(68159),S=n(27527),b=r.AccountsUplinkTerminal=function(){function v(g,C){var h=(0,t.useBackend)(C),N=h.act,y=h.data,B=y.loginState,I=y.currentPage,w;if(B.logged_in)I===1?w=(0,e.createComponentVNode)(2,l):I===2?w=(0,e.createComponentVNode)(2,s):I===3&&(w=(0,e.createComponentVNode)(2,i));else return(0,e.createComponentVNode)(2,V.Window,{width:800,height:600,children:(0,e.createComponentVNode)(2,V.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,S.LoginScreen)})})});return(0,e.createComponentVNode)(2,V.Window,{width:800,height:600,children:(0,e.createComponentVNode)(2,V.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,k.LoginInfo),(0,e.createComponentVNode)(2,p),(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,children:w})]})})})}return v}(),p=function(g,C){var h=(0,t.useBackend)(C),N=h.data,y=(0,t.useLocalState)(C,"tabIndex",0),B=y[0],I=y[1],w=N.login_state;return(0,e.createComponentVNode)(2,o.Stack,{vertical:!0,mb:1,children:(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Tabs,{children:[(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"list",selected:B===0,onClick:function(){function T(){return I(0)}return T}(),children:"User Accounts"}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"list",selected:B===1,onClick:function(){function T(){return I(1)}return T}(),children:"Department Accounts"})]})})})},l=function(g,C){var h=(0,t.useLocalState)(C,"tabIndex",0),N=h[0];switch(N){case 0:return(0,e.createComponentVNode)(2,c);case 1:return(0,e.createComponentVNode)(2,m);default:return"You are somehow on a tab that doesn't exist! Please let a coder know."}},c=function(g,C){var h=(0,t.useBackend)(C),N=h.act,y=h.data,B=y.accounts,I=(0,t.useLocalState)(C,"searchText",""),w=I[0],T=I[1],A=(0,t.useLocalState)(C,"sortId","owner_name"),x=A[0],E=A[1],M=(0,t.useLocalState)(C,"sortOrder",!0),D=M[0],P=M[1];return(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,u),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,o.Table,{className:"AccountsUplinkTerminal__list",children:[(0,e.createComponentVNode)(2,o.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,d,{id:"owner_name",children:"Account Holder"}),(0,e.createComponentVNode)(2,d,{id:"account_number",children:"Account Number"}),(0,e.createComponentVNode)(2,d,{id:"suspended",children:"Account Status"}),(0,e.createComponentVNode)(2,d,{id:"money",children:"Account Balance"})]}),B.filter((0,a.createSearch)(w,function(R){return R.owner_name+"|"+R.account_number+"|"+R.suspended+"|"+R.money})).sort(function(R,j){var F=D?1:-1;return R[x].localeCompare(j[x])*F}).map(function(R){return(0,e.createComponentVNode)(2,o.Table.Row,{className:"AccountsUplinkTerminal__listRow--"+R.suspended,onClick:function(){function j(){return N("view_account_detail",{account_num:R.account_number})}return j}(),children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:"user"})," ",R.owner_name]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:["#",R.account_number]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:R.suspended}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:R.money})]},R.account_number)})]})})})]})},m=function(g,C){var h=(0,t.useBackend)(C),N=h.act,y=h.data,B=y.department_accounts;return(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{children:(0,e.createComponentVNode)(2,o.Table,{className:"AccountsUplinkTerminal__list",children:[(0,e.createComponentVNode)(2,o.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,f.TableCell,{children:"Department Name"}),(0,e.createComponentVNode)(2,f.TableCell,{children:"Account Number"}),(0,e.createComponentVNode)(2,f.TableCell,{children:"Account Status"}),(0,e.createComponentVNode)(2,f.TableCell,{children:"Account Balance"})]}),B.map(function(I){return(0,e.createComponentVNode)(2,o.Table.Row,{className:"AccountsUplinkTerminal__listRow--"+I.suspended,onClick:function(){function w(){return N("view_account_detail",{account_num:I.account_number})}return w}(),children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:"wallet"})," ",I.name]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:["#",I.account_number]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:I.suspended}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:I.money})]},I.account_number)})]})})})})},d=function(g,C){var h=(0,t.useLocalState)(C,"sortId","name"),N=h[0],y=h[1],B=(0,t.useLocalState)(C,"sortOrder",!0),I=B[0],w=B[1],T=g.id,A=g.children;return(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Button,{color:N!==T&&"transparent",width:"100%",onClick:function(){function x(){N===T?w(!I):(y(T),w(!0))}return x}(),children:[A,N===T&&(0,e.createComponentVNode)(2,o.Icon,{name:I?"sort-up":"sort-down",ml:"0.25rem;"})]})})},u=function(g,C){var h=(0,t.useBackend)(C),N=h.act,y=h.data,B=y.is_printing,I=(0,t.useLocalState)(C,"searchText",""),w=I[0],T=I[1];return(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{content:"New Account",icon:"plus",onClick:function(){function A(){return N("create_new_account")}return A}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Input,{placeholder:"Search by account holder, number, status",width:"100%",onInput:function(){function A(x,E){return T(E)}return A}()})})]})},s=function(g,C){var h=(0,t.useBackend)(C),N=h.act,y=h.data,B=y.account_number,I=y.owner_name,w=y.money,T=y.suspended,A=y.transactions,x=y.account_pin,E=y.is_department_account;return(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Section,{title:"#"+B+" / "+I,buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"arrow-left",content:"Back",onClick:function(){function M(){return N("back")}return M}()}),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Account Number",children:["#",B]}),!!E&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Account Pin",children:x}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Account Pin Actions",children:(0,e.createComponentVNode)(2,o.Button,{ml:1,icon:"user-cog",content:"Set New Pin",disabled:!!E,onClick:function(){function M(){return N("set_account_pin",{account_number:B})}return M}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Account Holder",children:I}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Account Balance",children:w}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Account Status",color:T?"red":"green",children:[T?"Suspended":"Active",(0,e.createComponentVNode)(2,o.Button,{ml:1,content:T?"Unsuspend":"Suspend",icon:T?"unlock":"lock",onClick:function(){function M(){return N("toggle_suspension")}return M}()})]})]})})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,title:"Transactions",children:(0,e.createComponentVNode)(2,o.Table,{children:[(0,e.createComponentVNode)(2,o.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Timestamp"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Reason"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Value"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Terminal"})]}),A.map(function(M){return(0,e.createComponentVNode)(2,o.Table.Row,{children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:M.time}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:M.purpose}),(0,e.createComponentVNode)(2,o.Table.Cell,{color:M.is_deposit?"green":"red",children:["$",M.amount]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:M.target_name})]},M)})]})})})]})},i=function(g,C){var h=(0,t.useBackend)(C),N=h.act,y=h.data,B=(0,t.useLocalState)(C,"accName",""),I=B[0],w=B[1],T=(0,t.useLocalState)(C,"accDeposit",""),A=T[0],x=T[1];return(0,e.createComponentVNode)(2,o.Section,{title:"Create Account",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"arrow-left",content:"Back",onClick:function(){function E(){return N("back")}return E}()}),children:[(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Account Holder",children:(0,e.createComponentVNode)(2,o.Input,{placeholder:"Name Here",onChange:function(){function E(M,D){return w(D)}return E}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Initial Deposit",children:(0,e.createComponentVNode)(2,o.Input,{placeholder:"0",onChange:function(){function E(M,D){return x(D)}return E}()})})]}),(0,e.createComponentVNode)(2,o.Button,{mt:1,fluid:!0,content:"Create Account",onClick:function(){function E(){return N("finalise_create_account",{holder_name:I,starting_funds:A})}return E}()})]})}},56839:function(L,r,n){"use strict";r.__esModule=!0,r.AiAirlock=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f={2:{color:"good",localStatusText:"Offline"},1:{color:"average",localStatusText:"Caution"},0:{color:"bad",localStatusText:"Optimal"}},V=r.AiAirlock=function(){function k(S,b){var p=(0,a.useBackend)(b),l=p.act,c=p.data,m=f[c.power.main]||f[0],d=f[c.power.backup]||f[0],u=f[c.shock]||f[0];return(0,e.createComponentVNode)(2,o.Window,{width:500,height:400,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Power Status",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Main",color:m.color,buttons:(0,e.createComponentVNode)(2,t.Button,{mb:.5,icon:"lightbulb-o",disabled:!c.power.main,content:"Disrupt",onClick:function(){function s(){return l("disrupt-main")}return s}()}),children:[c.power.main?"Online":"Offline"," ",!c.wires.main_power&&"[Wires have been cut!]"||c.power.main_timeleft>0&&"["+c.power.main_timeleft+"s]"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Backup",color:d.color,buttons:(0,e.createComponentVNode)(2,t.Button,{mb:.5,icon:"lightbulb-o",disabled:!c.power.backup,content:"Disrupt",onClick:function(){function s(){return l("disrupt-backup")}return s}()}),children:[c.power.backup?"Online":"Offline"," ",!c.wires.backup_power&&"[Wires have been cut!]"||c.power.backup_timeleft>0&&"["+c.power.backup_timeleft+"s]"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Electrify",color:u.color,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{mr:.5,icon:"wrench",disabled:!(c.wires.shock&&c.shock!==2),content:"Restore",onClick:function(){function s(){return l("shock-restore")}return s}()}),(0,e.createComponentVNode)(2,t.Button,{mr:.5,icon:"bolt",disabled:!c.wires.shock,content:"Temporary",onClick:function(){function s(){return l("shock-temp")}return s}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"bolt",disabled:!c.wires.shock||c.shock===0,content:"Permanent",onClick:function(){function s(){return l("shock-perm")}return s}()})],4),children:[c.shock===2?"Safe":"Electrified"," ",!c.wires.shock&&"[Wires have been cut!]"||c.shock_timeleft>0&&"["+c.shock_timeleft+"s]"||c.shock_timeleft===-1&&"[Permanent]"]})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Access and Door Control",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"ID Scan",color:"bad",buttons:(0,e.createComponentVNode)(2,t.Button,{mb:.5,width:6.5,icon:c.id_scanner?"power-off":"times",content:c.id_scanner?"Enabled":"Disabled",selected:c.id_scanner,disabled:!c.wires.id_scanner,onClick:function(){function s(){return l("idscan-toggle")}return s}()}),children:!c.wires.id_scanner&&"[Wires have been cut!]"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Emergency Access",buttons:(0,e.createComponentVNode)(2,t.Button,{width:6.5,icon:c.emergency?"power-off":"times",content:c.emergency?"Enabled":"Disabled",selected:c.emergency,onClick:function(){function s(){return l("emergency-toggle")}return s}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Divider),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Door Bolts",color:"bad",buttons:(0,e.createComponentVNode)(2,t.Button,{mb:.5,icon:c.locked?"lock":"unlock",content:c.locked?"Lowered":"Raised",selected:c.locked,disabled:!c.wires.bolts,onClick:function(){function s(){return l("bolt-toggle")}return s}()}),children:!c.wires.bolts&&"[Wires have been cut!]"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Door Bolt Lights",color:"bad",buttons:(0,e.createComponentVNode)(2,t.Button,{mb:.5,width:6.5,icon:c.lights?"power-off":"times",content:c.lights?"Enabled":"Disabled",selected:c.lights,disabled:!c.wires.lights,onClick:function(){function s(){return l("light-toggle")}return s}()}),children:!c.wires.lights&&"[Wires have been cut!]"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Door Force Sensors",color:"bad",buttons:(0,e.createComponentVNode)(2,t.Button,{mb:.5,width:6.5,icon:c.safe?"power-off":"times",content:c.safe?"Enabled":"Disabled",selected:c.safe,disabled:!c.wires.safe,onClick:function(){function s(){return l("safe-toggle")}return s}()}),children:!c.wires.safe&&"[Wires have been cut!]"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Door Timing Safety",color:"bad",buttons:(0,e.createComponentVNode)(2,t.Button,{mb:.5,width:6.5,icon:c.speed?"power-off":"times",content:c.speed?"Enabled":"Disabled",selected:c.speed,disabled:!c.wires.timing,onClick:function(){function s(){return l("speed-toggle")}return s}()}),children:!c.wires.timing&&"[Wires have been cut!]"}),(0,e.createComponentVNode)(2,t.LabeledList.Divider),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Door Control",color:"bad",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:c.opened?"sign-out-alt":"sign-in-alt",content:c.opened?"Open":"Closed",selected:c.opened,disabled:c.locked||c.welded,onClick:function(){function s(){return l("open-close")}return s}()}),children:!!(c.locked||c.welded)&&(0,e.createVNode)(1,"span",null,[(0,e.createTextVNode)("[Door is "),c.locked?"bolted":"",c.locked&&c.welded?" and ":"",c.welded?"welded":"",(0,e.createTextVNode)("!]")],0)})]})})]})})}return k}()},5565:function(L,r,n){"use strict";r.__esModule=!0,r.AirAlarm=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=n(26893),V=r.AirAlarm=function(){function u(s,i){var v=(0,a.useBackend)(i),g=v.act,C=v.data,h=C.locked;return(0,e.createComponentVNode)(2,o.Window,{width:570,height:h?310:755,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,f.InterfaceLockNoticeBox),(0,e.createComponentVNode)(2,S),!h&&(0,e.createFragment)([(0,e.createComponentVNode)(2,b),(0,e.createComponentVNode)(2,p)],4)]})})}return u}(),k=function(s){return s===0?"green":s===1?"orange":"red"},S=function(s,i){var v=(0,a.useBackend)(i),g=v.act,C=v.data,h=C.air,N=C.mode,y=C.atmos_alarm,B=C.locked,I=C.alarmActivated,w=C.rcon,T=C.target_temp,A;return h.danger.overall===0?y===0?A="Optimal":A="Caution: Atmos alert in area":h.danger.overall===1?A="Caution":A="DANGER: Internals Required",(0,e.createComponentVNode)(2,t.Section,{title:"Air Status",children:h?(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Pressure",children:(0,e.createComponentVNode)(2,t.Box,{color:k(h.danger.pressure),children:[(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:h.pressure})," kPa",!B&&(0,e.createFragment)([(0,e.createTextVNode)("\xA0"),(0,e.createComponentVNode)(2,t.Button,{content:N===3?"Deactivate Panic Siphon":"Activate Panic Siphon",selected:N===3,icon:"exclamation-triangle",onClick:function(){function x(){return g("mode",{mode:N===3?1:3})}return x}()})],4)]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Oxygen",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:h.contents.oxygen/100,fractionDigits:"1",color:k(h.danger.oxygen)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Nitrogen",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:h.contents.nitrogen/100,fractionDigits:"1",color:k(h.danger.nitrogen)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Carbon Dioxide",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:h.contents.co2/100,fractionDigits:"1",color:k(h.danger.co2)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Toxins",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:h.contents.plasma/100,fractionDigits:"1",color:k(h.danger.plasma)})}),h.contents.n2o>.1&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Nitrous Oxide",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:h.contents.n2o/100,fractionDigits:"1",color:k(h.danger.n2o)})}),h.contents.other>.1&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Other",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:h.contents.other/100,fractionDigits:"1",color:k(h.danger.other)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Temperature",children:(0,e.createComponentVNode)(2,t.Box,{color:k(h.danger.temperature),children:[(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:h.temperature})," K /"," ",(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:h.temperature_c})," C\xA0",(0,e.createComponentVNode)(2,t.Button,{icon:"thermometer-full",content:T+" C",onClick:function(){function x(){return g("temperature")}return x}()}),(0,e.createComponentVNode)(2,t.Button,{content:h.thermostat_state?"On":"Off",selected:h.thermostat_state,icon:"power-off",onClick:function(){function x(){return g("thermostat_state")}return x}()})]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Local Status",children:(0,e.createComponentVNode)(2,t.Box,{color:k(h.danger.overall),children:[A,!B&&(0,e.createFragment)([(0,e.createTextVNode)("\xA0"),(0,e.createComponentVNode)(2,t.Button,{content:I?"Reset Alarm":"Activate Alarm",selected:I,onClick:function(){function x(){return g(I?"atmos_reset":"atmos_alarm")}return x}()})],4)]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Remote Control Settings",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Off",selected:w===1,onClick:function(){function x(){return g("set_rcon",{rcon:1})}return x}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Auto",selected:w===2,onClick:function(){function x(){return g("set_rcon",{rcon:2})}return x}()}),(0,e.createComponentVNode)(2,t.Button,{content:"On",selected:w===3,onClick:function(){function x(){return g("set_rcon",{rcon:3})}return x}()})]})]}):(0,e.createComponentVNode)(2,t.Box,{children:"Unable to acquire air sample!"})})},b=function(s,i){var v=(0,a.useLocalState)(i,"tabIndex",0),g=v[0],C=v[1];return(0,e.createComponentVNode)(2,t.Tabs,{children:[(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:g===0,onClick:function(){function h(){return C(0)}return h}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"sign-out-alt"})," Vent Control"]},"Vents"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:g===1,onClick:function(){function h(){return C(1)}return h}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"sign-in-alt"})," Scrubber Control"]},"Scrubbers"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:g===2,onClick:function(){function h(){return C(2)}return h}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"cog"})," Mode"]},"Mode"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:g===3,onClick:function(){function h(){return C(3)}return h}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"tachometer-alt"})," Thresholds"]},"Thresholds")]})},p=function(s,i){var v=(0,a.useLocalState)(i,"tabIndex",0),g=v[0],C=v[1];switch(g){case 0:return(0,e.createComponentVNode)(2,l);case 1:return(0,e.createComponentVNode)(2,c);case 2:return(0,e.createComponentVNode)(2,m);case 3:return(0,e.createComponentVNode)(2,d);default:return"WE SHOULDN'T BE HERE!"}},l=function(s,i){var v=(0,a.useBackend)(i),g=v.act,C=v.data,h=C.vents;return h.map(function(N){return(0,e.createComponentVNode)(2,t.Section,{title:N.name,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:[(0,e.createComponentVNode)(2,t.Button,{content:N.power?"On":"Off",selected:N.power,icon:"power-off",onClick:function(){function y(){return g("command",{cmd:"power",val:!N.power,id_tag:N.id_tag})}return y}()}),(0,e.createComponentVNode)(2,t.Button,{content:N.direction?"Blowing":"Siphoning",icon:N.direction?"sign-out-alt":"sign-in-alt",onClick:function(){function y(){return g("command",{cmd:"direction",val:!N.direction,id_tag:N.id_tag})}return y}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Pressure Checks",children:[(0,e.createComponentVNode)(2,t.Button,{content:"External",selected:N.checks===1,onClick:function(){function y(){return g("command",{cmd:"checks",val:1,id_tag:N.id_tag})}return y}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Internal",selected:N.checks===2,onClick:function(){function y(){return g("command",{cmd:"checks",val:2,id_tag:N.id_tag})}return y}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"External Pressure Target",children:[(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:N.external})," kPa\xA0",(0,e.createComponentVNode)(2,t.Button,{content:"Set",icon:"cog",onClick:function(){function y(){return g("command",{cmd:"set_external_pressure",id_tag:N.id_tag})}return y}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Reset",icon:"redo-alt",onClick:function(){function y(){return g("command",{cmd:"set_external_pressure",val:101.325,id_tag:N.id_tag})}return y}()})]})]})},N.name)})},c=function(s,i){var v=(0,a.useBackend)(i),g=v.act,C=v.data,h=C.scrubbers;return h.map(function(N){return(0,e.createComponentVNode)(2,t.Section,{title:N.name,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:[(0,e.createComponentVNode)(2,t.Button,{content:N.power?"On":"Off",selected:N.power,icon:"power-off",onClick:function(){function y(){return g("command",{cmd:"power",val:!N.power,id_tag:N.id_tag})}return y}()}),(0,e.createComponentVNode)(2,t.Button,{content:N.scrubbing?"Scrubbing":"Siphoning",icon:N.scrubbing?"filter":"sign-in-alt",onClick:function(){function y(){return g("command",{cmd:"scrubbing",val:!N.scrubbing,id_tag:N.id_tag})}return y}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Range",children:(0,e.createComponentVNode)(2,t.Button,{content:N.widenet?"Extended":"Normal",selected:N.widenet,icon:"expand-arrows-alt",onClick:function(){function y(){return g("command",{cmd:"widenet",val:!N.widenet,id_tag:N.id_tag})}return y}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Filtering",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Carbon Dioxide",selected:N.filter_co2,onClick:function(){function y(){return g("command",{cmd:"co2_scrub",val:!N.filter_co2,id_tag:N.id_tag})}return y}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Plasma",selected:N.filter_toxins,onClick:function(){function y(){return g("command",{cmd:"tox_scrub",val:!N.filter_toxins,id_tag:N.id_tag})}return y}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Nitrous Oxide",selected:N.filter_n2o,onClick:function(){function y(){return g("command",{cmd:"n2o_scrub",val:!N.filter_n2o,id_tag:N.id_tag})}return y}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Oxygen",selected:N.filter_o2,onClick:function(){function y(){return g("command",{cmd:"o2_scrub",val:!N.filter_o2,id_tag:N.id_tag})}return y}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Nitrogen",selected:N.filter_n2,onClick:function(){function y(){return g("command",{cmd:"n2_scrub",val:!N.filter_n2,id_tag:N.id_tag})}return y}()})]})]})},N.name)})},m=function(s,i){var v=(0,a.useBackend)(i),g=v.act,C=v.data,h=C.modes,N=C.presets,y=C.emagged,B=C.mode,I=C.preset;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{title:"System Mode",children:(0,e.createComponentVNode)(2,t.Table,{children:h.map(function(w){return(!w.emagonly||w.emagonly&&!!y)&&(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"right",width:1,children:(0,e.createComponentVNode)(2,t.Button,{content:w.name,icon:"cog",selected:w.id===B,onClick:function(){function T(){return g("mode",{mode:w.id})}return T}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:w.desc})]},w.name)})})}),(0,e.createComponentVNode)(2,t.Section,{title:"System Presets",children:[(0,e.createComponentVNode)(2,t.Box,{italic:!0,children:"After making a selection, the system will automatically cycle in order to remove contaminants."}),(0,e.createComponentVNode)(2,t.Table,{mt:1,children:N.map(function(w){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"right",width:1,children:(0,e.createComponentVNode)(2,t.Button,{content:w.name,icon:"cog",selected:w.id===I,onClick:function(){function T(){return g("preset",{preset:w.id})}return T}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:w.desc})]},w.name)})})]})],4)},d=function(s,i){var v=(0,a.useBackend)(i),g=v.act,C=v.data,h=C.thresholds;return(0,e.createComponentVNode)(2,t.Section,{title:"Alarm Thresholds",children:(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{width:"20%",children:"Value"}),(0,e.createComponentVNode)(2,t.Table.Cell,{color:"red",width:"20%",children:"Danger Min"}),(0,e.createComponentVNode)(2,t.Table.Cell,{color:"orange",width:"20%",children:"Warning Min"}),(0,e.createComponentVNode)(2,t.Table.Cell,{color:"orange",width:"20%",children:"Warning Max"}),(0,e.createComponentVNode)(2,t.Table.Cell,{color:"red",width:"20%",children:"Danger Max"})]}),h.map(function(N){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:N.name}),N.settings.map(function(y){return(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{content:y.selected===-1?"Off":y.selected,onClick:function(){function B(){return g("command",{cmd:"set_threshold",env:y.env,var:y.val})}return B}()})},y.val)})]},N.name)})]})})}},82915:function(L,r,n){"use strict";r.__esModule=!0,r.AirlockAccessController=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.AirlockAccessController=function(){function V(k,S){var b=(0,a.useBackend)(S),p=b.act,l=b.data,c=l.exterior_status,m=l.interior_status,d=l.processing,u,s;return c==="open"?u=(0,e.createComponentVNode)(2,t.Button,{width:"50%",content:"Lock Exterior Door",icon:"exclamation-triangle",disabled:d,onClick:function(){function i(){return p("force_ext")}return i}()}):u=(0,e.createComponentVNode)(2,t.Button,{width:"50%",content:"Cycle to Exterior",icon:"arrow-circle-left",disabled:d,onClick:function(){function i(){return p("cycle_ext_door")}return i}()}),m==="open"?s=(0,e.createComponentVNode)(2,t.Button,{width:"49%",content:"Lock Interior Door",icon:"exclamation-triangle",disabled:d,color:m==="open"?"red":d?"yellow":null,onClick:function(){function i(){return p("force_int")}return i}()}):s=(0,e.createComponentVNode)(2,t.Button,{width:"49%",content:"Cycle to Interior",icon:"arrow-circle-right",disabled:d,onClick:function(){function i(){return p("cycle_int_door")}return i}()}),(0,e.createComponentVNode)(2,o.Window,{width:330,height:200,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Information",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"External Door Status",children:c==="closed"?"Locked":"Open"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Internal Door Status",children:m==="closed"?"Locked":"Open"})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Actions",children:(0,e.createComponentVNode)(2,t.Box,{children:[u,s]})})]})})}return V}()},14962:function(L,r,n){"use strict";r.__esModule=!0,r.AirlockElectronics=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=n(57842),V=1,k=2,S=4,b=8,p=r.AirlockElectronics=function(){function m(d,u){return(0,e.createComponentVNode)(2,o.Window,{width:450,height:565,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,l),(0,e.createComponentVNode)(2,c)]})})})}return m}(),l=function(d,u){var s=(0,a.useBackend)(u),i=s.act,v=s.data,g=v.unrestricted_dir;return(0,e.createComponentVNode)(2,t.Section,{title:"Access Control",children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,mb:1,children:"Unrestricted Access From:"}),(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"arrow-left",content:"East",selected:g&S?"selected":null,onClick:function(){function C(){return i("unrestricted_access",{unres_dir:S})}return C}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"arrow-up",content:"South",selected:g&k?"selected":null,onClick:function(){function C(){return i("unrestricted_access",{unres_dir:k})}return C}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"arrow-right",content:"West",selected:g&b?"selected":null,onClick:function(){function C(){return i("unrestricted_access",{unres_dir:b})}return C}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"arrow-down",content:"North",selected:g&V?"selected":null,onClick:function(){function C(){return i("unrestricted_access",{unres_dir:V})}return C}()})})]})]})})},c=function(d,u){var s=(0,a.useBackend)(u),i=s.act,v=s.data,g=v.selected_accesses,C=v.one_access,h=v.regions;return(0,e.createComponentVNode)(2,f.AccessList,{usedByRcd:1,rcdButtons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:C,content:"One",onClick:function(){function N(){return i("set_one_access",{access:"one"})}return N}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:!C,content:"All",onClick:function(){function N(){return i("set_one_access",{access:"all"})}return N}()})],4),accesses:h,selectedList:g,accessMod:function(){function N(y){return i("set",{access:y})}return N}(),grantAll:function(){function N(){return i("grant_all")}return N}(),denyAll:function(){function N(){return i("clear_all")}return N}(),grantDep:function(){function N(y){return i("grant_region",{region:y})}return N}(),denyDep:function(){function N(y){return i("deny_region",{region:y})}return N}()})}},99327:function(L,r,n){"use strict";r.__esModule=!0,r.AlertModal=void 0;var e=n(96524),a=n(14299),t=n(17899),o=n(68100),f=n(24674),V=n(45493),k=-1,S=1,b=r.AlertModal=function(){function c(m,d){var u=(0,t.useBackend)(d),s=u.act,i=u.data,v=i.autofocus,g=i.buttons,C=g===void 0?[]:g,h=i.large_buttons,N=i.message,y=N===void 0?"":N,B=i.timeout,I=i.title,w=(0,t.useLocalState)(d,"selected",0),T=w[0],A=w[1],x=110+(y.length>30?Math.ceil(y.length/4):0)+(y.length&&h?5:0),E=325+(C.length>2?100:0),M=function(){function D(P){T===0&&P===k?A(C.length-1):T===C.length-1&&P===S?A(0):A(T+P)}return D}();return(0,e.createComponentVNode)(2,V.Window,{title:I,height:x,width:E,children:[!!B&&(0,e.createComponentVNode)(2,a.Loader,{value:B}),(0,e.createComponentVNode)(2,V.Window.Content,{onKeyDown:function(){function D(P){var R=window.event?P.which:P.keyCode;R===o.KEY_SPACE||R===o.KEY_ENTER?s("choose",{choice:C[T]}):R===o.KEY_ESCAPE?s("cancel"):R===o.KEY_LEFT?(P.preventDefault(),M(k)):(R===o.KEY_TAB||R===o.KEY_RIGHT)&&(P.preventDefault(),M(S))}return D}(),children:(0,e.createComponentVNode)(2,f.Section,{fill:!0,children:(0,e.createComponentVNode)(2,f.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,m:1,children:(0,e.createComponentVNode)(2,f.Box,{color:"label",overflow:"hidden",children:y})}),(0,e.createComponentVNode)(2,f.Stack.Item,{children:[!!v&&(0,e.createComponentVNode)(2,f.Autofocus),(0,e.createComponentVNode)(2,p,{selected:T})]})]})})})]})}return c}(),p=function(m,d){var u=(0,t.useBackend)(d),s=u.data,i=s.buttons,v=i===void 0?[]:i,g=s.large_buttons,C=s.swapped_buttons,h=m.selected;return(0,e.createComponentVNode)(2,f.Flex,{fill:!0,align:"center",direction:C?"row":"row-reverse",justify:"space-around",wrap:!0,children:v==null?void 0:v.map(function(N,y){return g&&v.length<3?(0,e.createComponentVNode)(2,f.Flex.Item,{grow:!0,children:(0,e.createComponentVNode)(2,l,{button:N,id:y.toString(),selected:h===y})},y):(0,e.createComponentVNode)(2,f.Flex.Item,{grow:g?1:0,children:(0,e.createComponentVNode)(2,l,{button:N,id:y.toString(),selected:h===y})},y)})})},l=function(m,d){var u=(0,t.useBackend)(d),s=u.act,i=u.data,v=i.large_buttons,g=m.button,C=m.selected,h=g.length>7?"100%":7;return(0,e.createComponentVNode)(2,f.Button,{mx:v?1:0,pt:v?.33:0,content:g,fluid:!!v,onClick:function(){function N(){return s("choose",{choice:g})}return N}(),selected:C,textAlign:"center",height:!!v&&2,width:!v&&h})}},88642:function(L,r,n){"use strict";r.__esModule=!0,r.AppearanceChanger=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.AppearanceChanger=function(){function k(S,b){var p=(0,a.useBackend)(b),l=p.act,c=p.data,m=c.change_race,d=c.species,u=c.specimen,s=c.change_gender,i=c.gender,v=c.change_eye_color,g=c.change_skin_tone,C=c.change_skin_color,h=c.change_head_accessory_color,N=c.change_hair_color,y=c.change_secondary_hair_color,B=c.change_facial_hair_color,I=c.change_secondary_facial_hair_color,w=c.change_head_marking_color,T=c.change_body_marking_color,A=c.change_tail_marking_color,x=c.change_head_accessory,E=c.head_accessory_styles,M=c.head_accessory_style,D=c.change_hair,P=c.hair_styles,R=c.hair_style,j=c.change_hair_gradient,F=c.change_facial_hair,U=c.facial_hair_styles,_=c.facial_hair_style,z=c.change_head_markings,G=c.head_marking_styles,X=c.head_marking_style,Y=c.change_body_markings,J=c.body_marking_styles,ie=c.body_marking_style,ae=c.change_tail_markings,fe=c.tail_marking_styles,pe=c.tail_marking_style,be=c.change_body_accessory,te=c.body_accessory_styles,Q=c.body_accessory_style,ne=c.change_alt_head,me=c.alt_head_styles,ce=c.alt_head_style,ue=!1;return(v||g||C||h||N||y||B||I||w||T||A)&&(ue=!0),(0,e.createComponentVNode)(2,o.Window,{width:800,height:450,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[!!m&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Species",children:d.map(function(oe){return(0,e.createComponentVNode)(2,t.Button,{content:oe.specimen,selected:oe.specimen===u,onClick:function(){function ke(){return l("race",{race:oe.specimen})}return ke}()},oe.specimen)})}),!!s&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Gender",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Male",selected:i==="male",onClick:function(){function oe(){return l("gender",{gender:"male"})}return oe}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Female",selected:i==="female",onClick:function(){function oe(){return l("gender",{gender:"female"})}return oe}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Genderless",selected:i==="plural",onClick:function(){function oe(){return l("gender",{gender:"plural"})}return oe}()})]}),!!ue&&(0,e.createComponentVNode)(2,V),!!x&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Head accessory",children:E.map(function(oe){return(0,e.createComponentVNode)(2,t.Button,{content:oe.headaccessorystyle,selected:oe.headaccessorystyle===M,onClick:function(){function ke(){return l("head_accessory",{head_accessory:oe.headaccessorystyle})}return ke}()},oe.headaccessorystyle)})}),!!D&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Hair",children:P.map(function(oe){return(0,e.createComponentVNode)(2,t.Button,{content:oe.hairstyle,selected:oe.hairstyle===R,onClick:function(){function ke(){return l("hair",{hair:oe.hairstyle})}return ke}()},oe.hairstyle)})}),!!j&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Hair Gradient",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Change Style",onClick:function(){function oe(){return l("hair_gradient")}return oe}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Change Offset",onClick:function(){function oe(){return l("hair_gradient_offset")}return oe}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Change Color",onClick:function(){function oe(){return l("hair_gradient_colour")}return oe}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Change Alpha",onClick:function(){function oe(){return l("hair_gradient_alpha")}return oe}()})]}),!!F&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Facial hair",children:U.map(function(oe){return(0,e.createComponentVNode)(2,t.Button,{content:oe.facialhairstyle,selected:oe.facialhairstyle===_,onClick:function(){function ke(){return l("facial_hair",{facial_hair:oe.facialhairstyle})}return ke}()},oe.facialhairstyle)})}),!!z&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Head markings",children:G.map(function(oe){return(0,e.createComponentVNode)(2,t.Button,{content:oe.headmarkingstyle,selected:oe.headmarkingstyle===X,onClick:function(){function ke(){return l("head_marking",{head_marking:oe.headmarkingstyle})}return ke}()},oe.headmarkingstyle)})}),!!Y&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Body markings",children:J.map(function(oe){return(0,e.createComponentVNode)(2,t.Button,{content:oe.bodymarkingstyle,selected:oe.bodymarkingstyle===ie,onClick:function(){function ke(){return l("body_marking",{body_marking:oe.bodymarkingstyle})}return ke}()},oe.bodymarkingstyle)})}),!!ae&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Tail markings",children:fe.map(function(oe){return(0,e.createComponentVNode)(2,t.Button,{content:oe.tailmarkingstyle,selected:oe.tailmarkingstyle===pe,onClick:function(){function ke(){return l("tail_marking",{tail_marking:oe.tailmarkingstyle})}return ke}()},oe.tailmarkingstyle)})}),!!be&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Body accessory",children:te.map(function(oe){return(0,e.createComponentVNode)(2,t.Button,{content:oe.bodyaccessorystyle,selected:oe.bodyaccessorystyle===Q,onClick:function(){function ke(){return l("body_accessory",{body_accessory:oe.bodyaccessorystyle})}return ke}()},oe.bodyaccessorystyle)})}),!!ne&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Alternate head",children:me.map(function(oe){return(0,e.createComponentVNode)(2,t.Button,{content:oe.altheadstyle,selected:oe.altheadstyle===ce,onClick:function(){function ke(){return l("alt_head",{alt_head:oe.altheadstyle})}return ke}()},oe.altheadstyle)})})]})})})}return k}(),V=function(S,b){var p=(0,a.useBackend)(b),l=p.act,c=p.data,m=[{key:"change_eye_color",text:"Change eye color",action:"eye_color"},{key:"change_skin_tone",text:"Change skin tone",action:"skin_tone"},{key:"change_skin_color",text:"Change skin color",action:"skin_color"},{key:"change_head_accessory_color",text:"Change head accessory color",action:"head_accessory_color"},{key:"change_hair_color",text:"Change hair color",action:"hair_color"},{key:"change_secondary_hair_color",text:"Change secondary hair color",action:"secondary_hair_color"},{key:"change_facial_hair_color",text:"Change facial hair color",action:"facial_hair_color"},{key:"change_secondary_facial_hair_color",text:"Change secondary facial hair color",action:"secondary_facial_hair_color"},{key:"change_head_marking_color",text:"Change head marking color",action:"head_marking_color"},{key:"change_body_marking_color",text:"Change body marking color",action:"body_marking_color"},{key:"change_tail_marking_color",text:"Change tail marking color",action:"tail_marking_color"}];return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Colors",children:m.map(function(d){return!!c[d.key]&&(0,e.createComponentVNode)(2,t.Button,{content:d.text,onClick:function(){function u(){return l(d.action)}return u}()},d.key)})})}},51731:function(L,r,n){"use strict";r.__esModule=!0,r.AtmosAlertConsole=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.AtmosAlertConsole=function(){function V(k,S){var b=(0,a.useBackend)(S),p=b.act,l=b.data,c=l.priority||[],m=l.minor||[];return(0,e.createComponentVNode)(2,o.Window,{width:350,height:300,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Alarms",children:(0,e.createVNode)(1,"ul",null,[c.length===0&&(0,e.createVNode)(1,"li","color-good","No Priority Alerts",16),c.map(function(d){return(0,e.createVNode)(1,"li","color-bad",d,0,null,d)}),m.length===0&&(0,e.createVNode)(1,"li","color-good","No Minor Alerts",16),m.map(function(d){return(0,e.createVNode)(1,"li","color-average",d,0,null,d)})],0)})})})}return V}()},57467:function(L,r,n){"use strict";r.__esModule=!0,r.AtmosControl=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(5126),f=n(45493),V=function(c){if(c===0)return(0,e.createComponentVNode)(2,t.Box,{color:"green",children:"Good"});if(c===1)return(0,e.createComponentVNode)(2,t.Box,{color:"orange",bold:!0,children:"Warning"});if(c===2)return(0,e.createComponentVNode)(2,t.Box,{color:"red",bold:!0,children:"DANGER"})},k=function(c){if(c===0)return"green";if(c===1)return"orange";if(c===2)return"red"},S=r.AtmosControl=function(){function l(c,m){var d=(0,a.useBackend)(m),u=d.act,s=d.data,i=(0,a.useLocalState)(m,"tabIndex",0),v=i[0],g=i[1],C=function(){function h(N){switch(N){case 0:return(0,e.createComponentVNode)(2,b);case 1:return(0,e.createComponentVNode)(2,p);default:return"WE SHOULDN'T BE HERE!"}}return h}();return(0,e.createComponentVNode)(2,f.Window,{width:800,height:600,children:(0,e.createComponentVNode)(2,f.Window.Content,{scrollable:v===0,children:(0,e.createComponentVNode)(2,t.Box,{fillPositionedParent:!0,children:[(0,e.createComponentVNode)(2,t.Tabs,{children:[(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:v===0,onClick:function(){function h(){return g(0)}return h}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"table"})," Data View"]},"DataView"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:v===1,onClick:function(){function h(){return g(1)}return h}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"map-marked-alt"})," Map View"]},"MapView")]}),C(v)]})})})}return l}(),b=function(c,m){var d=(0,a.useBackend)(m),u=d.act,s=d.data,i=s.alarms;return(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Table,{m:"0.5rem",children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Name"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Status"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Access"})]}),i.map(function(v){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,o.TableCell,{children:v.name}),(0,e.createComponentVNode)(2,o.TableCell,{children:V(v.danger)}),(0,e.createComponentVNode)(2,o.TableCell,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"cog",content:"Access",onClick:function(){function g(){return u("open_alarm",{aref:v.ref})}return g}()})})]},v.name)})]})})},p=function(c,m){var d=(0,a.useBackend)(m),u=d.data,s=(0,a.useLocalState)(m,"zoom",1),i=s[0],v=s[1],g=u.alarms;return(0,e.createComponentVNode)(2,t.Box,{height:"526px",mb:"0.5rem",overflow:"hidden",children:(0,e.createComponentVNode)(2,t.NanoMap,{onZoom:function(){function C(h){return v(h)}return C}(),children:g.filter(function(C){return C.z===2}).map(function(C){return(0,e.createComponentVNode)(2,t.NanoMap.Marker,{x:C.x,y:C.y,zoom:i,icon:"circle",tooltip:C.name,color:k(C.danger)},C.ref)})})})}},41550:function(L,r,n){"use strict";r.__esModule=!0,r.AtmosFilter=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.AtmosFilter=function(){function V(k,S){var b=(0,a.useBackend)(S),p=b.act,l=b.data,c=l.on,m=l.pressure,d=l.max_pressure,u=l.filter_type,s=l.filter_type_list;return(0,e.createComponentVNode)(2,o.Window,{width:380,height:140,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power",children:(0,e.createComponentVNode)(2,t.Button,{icon:"power-off",content:c?"On":"Off",color:c?null:"red",selected:c,onClick:function(){function i(){return p("power")}return i}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Rate",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"fast-backward",textAlign:"center",disabled:m===0,width:2.2,onClick:function(){function i(){return p("min_pressure")}return i}()}),(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,unit:"kPa",width:6.1,lineHeight:1.5,step:10,minValue:0,maxValue:d,value:m,onDrag:function(){function i(v,g){return p("custom_pressure",{pressure:g})}return i}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",textAlign:"center",disabled:m===d,width:2.2,onClick:function(){function i(){return p("max_pressure")}return i}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Filter",children:s.map(function(i){return(0,e.createComponentVNode)(2,t.Button,{selected:i.gas_type===u,content:i.label,onClick:function(){function v(){return p("set_filter",{filter:i.gas_type})}return v}()},i.label)})})]})})})})}return V}()},70151:function(L,r,n){"use strict";r.__esModule=!0,r.AtmosMixer=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.AtmosMixer=function(){function k(S,b){var p=(0,a.useBackend)(b),l=p.act,c=p.data,m=c.on,d=c.pressure,u=c.max_pressure,s=c.node1_concentration,i=c.node2_concentration;return(0,e.createComponentVNode)(2,o.Window,{width:330,height:165,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power",children:(0,e.createComponentVNode)(2,t.Button,{icon:"power-off",content:m?"On":"Off",color:m?null:"red",selected:m,onClick:function(){function v(){return l("power")}return v}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Rate",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"fast-backward",textAlign:"center",disabled:d===0,width:2.2,onClick:function(){function v(){return l("min_pressure")}return v}()}),(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,unit:"kPa",width:6.1,lineHeight:1.5,step:10,minValue:0,maxValue:u,value:d,onDrag:function(){function v(g,C){return l("custom_pressure",{pressure:C})}return v}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",textAlign:"center",disabled:d===u,width:2.2,onClick:function(){function v(){return l("max_pressure")}return v}()})]}),(0,e.createComponentVNode)(2,V,{node_name:"Node 1",node_ref:s}),(0,e.createComponentVNode)(2,V,{node_name:"Node 2",node_ref:i})]})})})})}return k}(),V=function(S,b){var p=(0,a.useBackend)(b),l=p.act,c=p.data,m=S.node_name,d=S.node_ref;return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:m,children:[(0,e.createComponentVNode)(2,t.Button,{icon:"fast-backward",textAlign:"center",width:2.2,disabled:d===0,onClick:function(){function u(){return l("set_node",{node_name:m,concentration:(d-10)/100})}return u}()}),(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,unit:"%",width:6.1,lineHeight:1.5,stepPixelSize:10,minValue:0,maxValue:100,value:d,onChange:function(){function u(s,i){return l("set_node",{node_name:m,concentration:i/100})}return u}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",textAlign:"center",width:2.2,disabled:d===100,onClick:function(){function u(){return l("set_node",{node_name:m,concentration:(d+10)/100})}return u}()})]})}},54090:function(L,r,n){"use strict";r.__esModule=!0,r.AtmosPump=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.AtmosPump=function(){function V(k,S){var b=(0,a.useBackend)(S),p=b.act,l=b.data,c=l.on,m=l.rate,d=l.max_rate,u=l.gas_unit,s=l.step;return(0,e.createComponentVNode)(2,o.Window,{width:330,height:110,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power",children:(0,e.createComponentVNode)(2,t.Button,{icon:"power-off",content:c?"On":"Off",color:c?null:"red",selected:c,onClick:function(){function i(){return p("power")}return i}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Rate",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"fast-backward",textAlign:"center",disabled:m===0,width:2.2,onClick:function(){function i(){return p("min_rate")}return i}()}),(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,unit:u,width:6.1,lineHeight:1.5,step:s,minValue:0,maxValue:d,value:m,onDrag:function(){function i(v,g){return p("custom_rate",{rate:g})}return i}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",textAlign:"center",disabled:m===d,width:2.2,onClick:function(){function i(){return p("max_rate")}return i}()})]})]})})})})}return V}()},31335:function(L,r,n){"use strict";r.__esModule=!0,r.AtmosTankControl=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(36121),f=n(38424),V=n(45493),k=r.AtmosTankControl=function(){function S(b,p){var l=(0,a.useBackend)(p),c=l.act,m=l.data,d=m.sensors||{};return(0,e.createComponentVNode)(2,V.Window,{width:400,height:400,children:(0,e.createComponentVNode)(2,V.Window.Content,{scrollable:!0,children:[Object.keys(d).map(function(u){return(0,e.createComponentVNode)(2,t.Section,{title:u,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[Object.keys(d[u]).indexOf("pressure")>-1?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Pressure",children:[d[u].pressure," kpa"]}):"",Object.keys(d[u]).indexOf("temperature")>-1?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Temperature",children:[d[u].temperature," K"]}):"",["o2","n2","plasma","co2","n2o"].map(function(s){return Object.keys(d[u]).indexOf(s)>-1?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:(0,f.getGasLabel)(s),children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:(0,f.getGasColor)(s),value:d[u][s],minValue:0,maxValue:100,children:(0,o.toFixed)(d[u][s],2)+"%"})},(0,f.getGasLabel)(s)):""})]})},u)}),m.inlet&&Object.keys(m.inlet).length>0?(0,e.createComponentVNode)(2,t.Section,{title:"Inlet Control",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power",children:(0,e.createComponentVNode)(2,t.Button,{icon:(m.inlet.on,"power-off"),content:m.inlet.on?"On":"Off",color:m.inlet.on?null:"red",selected:m.inlet.on,onClick:function(){function u(){return c("toggle_active",{dev:"inlet"})}return u}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Rate",children:(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,unit:"L/s",width:6.1,lineHeight:1.5,step:1,minValue:0,maxValue:50,value:m.inlet.rate,onDrag:function(){function u(s,i){return c("set_pressure",{dev:"inlet",val:i})}return u}()})})]})}):"",m.outlet&&Object.keys(m.outlet).length>0?(0,e.createComponentVNode)(2,t.Section,{title:"Outlet Control",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power",children:(0,e.createComponentVNode)(2,t.Button,{icon:(m.outlet.on,"power-off"),content:m.outlet.on?"On":"Off",color:m.outlet.on?null:"red",selected:m.outlet.on,onClick:function(){function u(){return c("toggle_active",{dev:"outlet"})}return u}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Rate",children:(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,unit:"kPa",width:6.1,lineHeight:1.5,step:10,minValue:0,maxValue:5066,value:m.outlet.rate,onDrag:function(){function u(s,i){return c("set_pressure",{dev:"outlet",val:i})}return u}()})})]})}):""]})})}return S}()},85909:function(L,r,n){"use strict";r.__esModule=!0,r.Autolathe=void 0;var e=n(96524),a=n(74041),t=n(50640),o=n(17899),f=n(24674),V=n(45493),k=n(78234),S=function(l,c,m,d){return l.requirements===null?!0:!(l.requirements.metal*d>c||l.requirements.glass*d>m)},b=r.Autolathe=function(){function p(l,c){var m=(0,o.useBackend)(c),d=m.act,u=m.data,s=u.total_amount,i=u.max_amount,v=u.metal_amount,g=u.glass_amount,C=u.busyname,h=u.busyamt,N=u.showhacked,y=u.buildQueue,B=u.buildQueueLen,I=u.recipes,w=u.categories,T=(0,o.useSharedState)(c,"category",0),A=T[0],x=T[1];A===0&&(A="Tools");var E=v.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1,"),M=g.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1,"),D=s.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1,"),P=(0,o.useSharedState)(c,"search_text",""),R=P[0],j=P[1],F=(0,k.createSearch)(R,function(G){return G.name}),U="";B>0&&(U=y.map(function(G,X){return(0,e.createComponentVNode)(2,f.Box,{children:(0,e.createComponentVNode)(2,f.Button,{fluid:!0,icon:"times",color:"transparent",content:y[X][0],onClick:function(){function Y(){return d("remove_from_queue",{remove_from_queue:y.indexOf(G)+1})}return Y}()},G)},X)}));var _=(0,a.flow)([(0,t.filter)(function(G){return(G.category.indexOf(A)>-1||R)&&(u.showhacked||!G.hacked)}),R&&(0,t.filter)(F),(0,t.sortBy)(function(G){return G.name.toLowerCase()})])(I),z="Build";return R?z="Results for: '"+R+"':":A&&(z="Build ("+A+")"),(0,e.createComponentVNode)(2,V.Window,{width:750,height:525,children:(0,e.createComponentVNode)(2,V.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,f.Stack,{fill:!0,horizontal:!0,children:[(0,e.createComponentVNode)(2,f.Stack.Item,{width:"70%",children:(0,e.createComponentVNode)(2,f.Section,{fill:!0,scrollable:!0,title:z,buttons:(0,e.createComponentVNode)(2,f.Dropdown,{width:"150px",options:w,selected:A,onSelected:function(){function G(X){return x(X)}return G}()}),children:[(0,e.createComponentVNode)(2,f.Input,{fluid:!0,placeholder:"Search for...",onInput:function(){function G(X,Y){return j(Y)}return G}(),mb:1}),_.map(function(G){return(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,children:[(0,e.createVNode)(1,"img",null,null,1,{src:"data:image/jpeg;base64,"+G.image,style:{"vertical-align":"middle",width:"32px",margin:"0px","margin-left":"0px"}}),(0,e.createComponentVNode)(2,f.Button,{mr:1,icon:"hammer",selected:u.busyname===G.name&&u.busyamt===1,disabled:!S(G,u.metal_amount,u.glass_amount,1),onClick:function(){function X(){return d("make",{make:G.uid,multiplier:1})}return X}(),children:(0,k.toTitleCase)(G.name)}),G.max_multiplier>=10&&(0,e.createComponentVNode)(2,f.Button,{mr:1,icon:"hammer",selected:u.busyname===G.name&&u.busyamt===10,disabled:!S(G,u.metal_amount,u.glass_amount,10),onClick:function(){function X(){return d("make",{make:G.uid,multiplier:10})}return X}(),children:"10x"}),G.max_multiplier>=25&&(0,e.createComponentVNode)(2,f.Button,{mr:1,icon:"hammer",selected:u.busyname===G.name&&u.busyamt===25,disabled:!S(G,u.metal_amount,u.glass_amount,25),onClick:function(){function X(){return d("make",{make:G.uid,multiplier:25})}return X}(),children:"25x"}),G.max_multiplier>25&&(0,e.createComponentVNode)(2,f.Button,{mr:1,icon:"hammer",selected:u.busyname===G.name&&u.busyamt===G.max_multiplier,disabled:!S(G,u.metal_amount,u.glass_amount,G.max_multiplier),onClick:function(){function X(){return d("make",{make:G.uid,multiplier:G.max_multiplier})}return X}(),children:[G.max_multiplier,"x"]}),G.requirements&&Object.keys(G.requirements).map(function(X){return(0,k.toTitleCase)(X)+": "+G.requirements[X]}).join(", ")||(0,e.createComponentVNode)(2,f.Box,{children:"No resources required."})]},G.ref)})]})}),(0,e.createComponentVNode)(2,f.Stack.Item,{width:"30%",children:[(0,e.createComponentVNode)(2,f.Section,{title:"Materials",children:(0,e.createComponentVNode)(2,f.LabeledList,{children:[(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Metal",children:E}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Glass",children:M}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Total",children:D}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Storage",children:[u.fill_percent,"% Full"]})]})}),(0,e.createComponentVNode)(2,f.Section,{title:"Building",children:(0,e.createComponentVNode)(2,f.Box,{color:C?"green":"",children:C||"Nothing"})}),(0,e.createComponentVNode)(2,f.Section,{title:"Build Queue",height:23.7,children:[U,(0,e.createComponentVNode)(2,f.Button,{mt:.5,fluid:!0,icon:"times",content:"Clear All",color:"red",disabled:!u.buildQueueLen,onClick:function(){function G(){return d("clear_queue")}return G}()})]})]})]})})})}return p}()},81617:function(L,r,n){"use strict";r.__esModule=!0,r.BioChipPad=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.BioChipPad=function(){function V(k,S){var b=(0,a.useBackend)(S),p=b.act,l=b.data,c=l.implant,m=l.contains_case;return(0,e.createComponentVNode)(2,o.Window,{width:410,height:400,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Bio-chip Mini-Computer",children:[c&&m?(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{bold:!0,mb:2,children:[(0,e.createVNode)(1,"img",null,null,1,{src:"data:image/jpeg;base64,"+c.image,ml:0,mr:2,style:{"vertical-align":"middle",width:"32px"}}),c.name]}),(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Life",children:c.life}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Notes",children:c.notes}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Function",children:c.function})]})],4):m?(0,e.createComponentVNode)(2,t.Box,{children:"This bio-chip case has no implant!"}):(0,e.createComponentVNode)(2,t.Box,{children:"Please insert a bio-chip casing!"}),(0,e.createComponentVNode)(2,t.Button,{mt:2,content:"Eject Case",icon:"eject",disabled:!m,onClick:function(){function d(){return p("eject_case")}return d}()})]})})})}return V}()},26215:function(L,r,n){"use strict";r.__esModule=!0,r.Biogenerator=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=n(75201),V=r.Biogenerator=function(){function l(c,m){var d=(0,a.useBackend)(m),u=d.data,s=d.config,i=u.container,v=u.processing,g=s.title;return(0,e.createComponentVNode)(2,o.Window,{width:390,height:595,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,f.Operating,{operating:v,name:g}),(0,e.createComponentVNode)(2,S),(0,e.createComponentVNode)(2,b),i?(0,e.createComponentVNode)(2,p):(0,e.createComponentVNode)(2,k)]})})})}return l}(),k=function(c,m){return(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,grow:!0,textAlign:"center",align:"center",color:"silver",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"flask",size:5,mb:"10px"}),(0,e.createVNode)(1,"br"),"The biogenerator is missing a container."]})})})},S=function(c,m){var d=(0,a.useBackend)(m),u=d.act,s=d.data,i=s.biomass,v=s.container,g=s.container_curr_reagents,C=s.container_max_reagents;return(0,e.createComponentVNode)(2,t.Section,{title:"Storage",children:[(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{mr:"20px",color:"silver",children:"Biomass:"}),(0,e.createComponentVNode)(2,t.Stack.Item,{mr:"5px",children:i}),(0,e.createComponentVNode)(2,t.Icon,{name:"leaf",size:1.2,color:"#3d8c40"})]}),(0,e.createComponentVNode)(2,t.Stack,{height:"21px",mt:"8px",align:"center",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{mr:"10px",color:"silver",children:"Container:"}),v?(0,e.createComponentVNode)(2,t.ProgressBar,{value:g,maxValue:C,children:(0,e.createComponentVNode)(2,t.Box,{textAlign:"center",children:g+" / "+C+" units"})}):(0,e.createComponentVNode)(2,t.Stack.Item,{children:"None"})]})]})},b=function(c,m){var d=(0,a.useBackend)(m),u=d.act,s=d.data,i=s.has_plants,v=s.container;return(0,e.createComponentVNode)(2,t.Section,{title:"Controls",children:(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"30%",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"power-off",disabled:!i,tooltip:i?"":"There are no plants in the biogenerator.",tooltipPosition:"top-start",content:"Activate",onClick:function(){function g(){return u("activate")}return g}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:"40%",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"flask",disabled:!v,tooltip:v?"":"The biogenerator does not have a container.",tooltipPosition:"top",content:"Detach Container",onClick:function(){function g(){return u("detach_container")}return g}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:"30%",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"eject",disabled:!i,tooltip:i?"":"There are no stored plants to eject.",tooltipPosition:"top-end",content:"Eject Plants",onClick:function(){function g(){return u("eject_plants")}return g}()})})]})})},p=function(c,m){var d=(0,a.useBackend)(m),u=d.act,s=d.data,i=s.biomass,v=s.product_list,g=(0,a.useSharedState)(m,"vendAmount",1),C=g[0],h=g[1],N=Object.entries(v).map(function(y,B){var I=Object.entries(y[1]).map(function(w){return w[1]});return(0,e.createComponentVNode)(2,t.Collapsible,{title:y[0],open:!0,children:I.map(function(w){return(0,e.createComponentVNode)(2,t.Stack,{py:"2px",className:"candystripe",align:"center",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"50%",ml:"2px",children:w.name}),(0,e.createComponentVNode)(2,t.Stack.Item,{textAlign:"right",width:"20%",children:[w.cost*C,(0,e.createComponentVNode)(2,t.Icon,{ml:"5px",name:"leaf",size:1.2,color:"#3d8c40"})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{textAlign:"right",width:"40%",children:(0,e.createComponentVNode)(2,t.Button,{content:"Vend",disabled:iu&&"bad"||"good";return(0,e.createComponentVNode)(2,o.Window,{width:650,height:450,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[!!h&&(0,e.createComponentVNode)(2,t.NoticeBox,{danger:1,children:"Safety Protocols disabled"}),u>N&&(0,e.createComponentVNode)(2,t.NoticeBox,{danger:1,children:"High Power, Instability likely"}),(0,e.createComponentVNode)(2,t.Collapsible,{title:"Input Management",children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Input",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Input Level",children:u}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Desired Level",children:(0,e.createComponentVNode)(2,t.Stack,{inline:!0,width:"100%",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"fast-backward",disabled:d===0,tooltip:"Set to 0",onClick:function(){function I(){return l("set",{set_level:0})}return I}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"step-backward",tooltip:"Decrease to actual input level",disabled:d===0,onClick:function(){function I(){return l("set",{set_level:u})}return I}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"backward",disabled:d===0,tooltip:"Decrease one step",onClick:function(){function I(){return l("decrease")}return I}()})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:1,mx:1,children:(0,e.createComponentVNode)(2,t.Slider,{value:d,fillValue:u,minValue:0,color:B,maxValue:C,stepPixelSize:20,step:1,onChange:function(){function I(w,T){return l("set",{set_level:T})}return I}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"forward",disabled:d===C,tooltip:"Increase one step",tooltipPosition:"left",onClick:function(){function I(){return l("increase")}return I}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",disabled:d===C,tooltip:"Set to max",tooltipPosition:"left",onClick:function(){function I(){return l("set",{set_level:C})}return I}()})]})]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Current Power Use",children:(0,f.formatPower)(v)}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power for next level",children:(0,f.formatPower)(y)}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Surplus Power",children:(0,f.formatPower)(g)})]})})}),(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Output",children:(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Available Points",children:s}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Total Points",children:i})]})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{align:"end",children:(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:m.map(function(I){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:I.name,children:(0,e.createComponentVNode)(2,t.Button,{disabled:I.price>=s,onClick:function(){function w(){return l("vend",{target:I.key})}return w}(),content:I.price})},I.key)})})})})]})})]})})})}return k}()},71736:function(L,r,n){"use strict";r.__esModule=!0,r.BodyScanner=void 0;var e=n(96524),a=n(36121),t=n(78234),o=n(17899),f=n(24674),V=n(45493),k=[["good","Alive"],["average","Critical"],["bad","DEAD"]],S=[["hasVirus","bad","Viral pathogen detected in blood stream."],["blind","average","Cataracts detected."],["colourblind","average","Photoreceptor abnormalities detected."],["nearsighted","average","Retinal misalignment detected."]],b=[["Respiratory","oxyLoss"],["Brain","brainLoss"],["Toxin","toxLoss"],["Radiation","radLoss"],["Brute","bruteLoss"],["Cellular","cloneLoss"],["Burn","fireLoss"],["Inebriation","drunkenness"]],p={average:[.25,.5],bad:[.5,1/0]},l=function(B,I){for(var w=[],T=0;T0?B.filter(function(I){return!!I}).reduce(function(I,w){return(0,e.createFragment)([I,(0,e.createComponentVNode)(2,f.Box,{children:w},w)],0)},null):null},m=function(B){if(B>100){if(B<300)return"mild infection";if(B<400)return"mild infection+";if(B<500)return"mild infection++";if(B<700)return"acute infection";if(B<800)return"acute infection+";if(B<900)return"acute infection++";if(B>=900)return"septic"}return""},d=r.BodyScanner=function(){function y(B,I){var w=(0,o.useBackend)(I),T=w.data,A=T.occupied,x=T.occupant,E=x===void 0?{}:x,M=A?(0,e.createComponentVNode)(2,u,{occupant:E}):(0,e.createComponentVNode)(2,N);return(0,e.createComponentVNode)(2,V.Window,{width:700,height:600,title:"Body Scanner",children:(0,e.createComponentVNode)(2,V.Window.Content,{scrollable:!0,children:M})})}return y}(),u=function(B){var I=B.occupant;return(0,e.createComponentVNode)(2,f.Box,{children:[(0,e.createComponentVNode)(2,s,{occupant:I}),(0,e.createComponentVNode)(2,i,{occupant:I}),(0,e.createComponentVNode)(2,v,{occupant:I}),(0,e.createComponentVNode)(2,C,{organs:I.extOrgan}),(0,e.createComponentVNode)(2,h,{organs:I.intOrgan})]})},s=function(B,I){var w=(0,o.useBackend)(I),T=w.act,A=w.data,x=A.occupant;return(0,e.createComponentVNode)(2,f.Section,{title:"Occupant",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,f.Button,{icon:"print",onClick:function(){function E(){return T("print_p")}return E}(),children:"Print Report"}),(0,e.createComponentVNode)(2,f.Button,{icon:"user-slash",onClick:function(){function E(){return T("ejectify")}return E}(),children:"Eject"})],4),children:(0,e.createComponentVNode)(2,f.LabeledList,{children:[(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Name",children:x.name}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Health",children:(0,e.createComponentVNode)(2,f.ProgressBar,{min:"0",max:x.maxHealth,value:x.health/x.maxHealth,ranges:{good:[.5,1/0],average:[0,.5],bad:[-1/0,0]}})}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Status",color:k[x.stat][0],children:k[x.stat][1]}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Temperature",children:[(0,e.createComponentVNode)(2,f.AnimatedNumber,{value:(0,a.round)(x.bodyTempC)}),"\xB0C,\xA0",(0,e.createComponentVNode)(2,f.AnimatedNumber,{value:(0,a.round)(x.bodyTempF)}),"\xB0F"]}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Implants",children:x.implant_len?(0,e.createComponentVNode)(2,f.Box,{children:x.implant.map(function(E){return E.name}).join(", ")}):(0,e.createComponentVNode)(2,f.Box,{color:"label",children:"None"})})]})})},i=function(B){var I=B.occupant;return I.hasBorer||I.blind||I.colourblind||I.nearsighted||I.hasVirus?(0,e.createComponentVNode)(2,f.Section,{title:"Abnormalities",children:S.map(function(w,T){if(I[w[0]])return(0,e.createComponentVNode)(2,f.Box,{color:w[1],bold:w[1]==="bad",children:w[2]},w[2])})}):(0,e.createComponentVNode)(2,f.Section,{title:"Abnormalities",children:(0,e.createComponentVNode)(2,f.Box,{color:"label",children:"No abnormalities found."})})},v=function(B){var I=B.occupant;return(0,e.createComponentVNode)(2,f.Section,{title:"Damage",children:(0,e.createComponentVNode)(2,f.Table,{children:l(b,function(w,T,A){return(0,e.createFragment)([(0,e.createComponentVNode)(2,f.Table.Row,{color:"label",children:[(0,e.createComponentVNode)(2,f.Table.Cell,{children:[w[0],":"]}),(0,e.createComponentVNode)(2,f.Table.Cell,{children:!!T&&T[0]+":"})]}),(0,e.createComponentVNode)(2,f.Table.Row,{children:[(0,e.createComponentVNode)(2,f.Table.Cell,{children:(0,e.createComponentVNode)(2,g,{value:I[w[1]],marginBottom:A100)&&"average"||!!I.status.robotic&&"label",width:"33%",children:(0,t.capitalize)(I.name)}),(0,e.createComponentVNode)(2,f.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,f.ProgressBar,{m:-.5,min:"0",max:I.maxHealth,mt:w>0&&"0.5rem",value:I.totalLoss/I.maxHealth,ranges:p,children:(0,e.createComponentVNode)(2,f.Stack,{children:[(0,e.createComponentVNode)(2,f.Tooltip,{content:"Total damage",children:(0,e.createComponentVNode)(2,f.Stack.Item,{children:[(0,e.createComponentVNode)(2,f.Icon,{name:"heartbeat",mr:.5}),(0,a.round)(I.totalLoss)]})}),!!I.bruteLoss&&(0,e.createComponentVNode)(2,f.Tooltip,{content:"Brute damage",children:(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,children:[(0,e.createComponentVNode)(2,f.Icon,{name:"bone",mr:.5}),(0,a.round)(I.bruteLoss)]})}),!!I.fireLoss&&(0,e.createComponentVNode)(2,f.Tooltip,{content:"Burn damage",children:(0,e.createComponentVNode)(2,f.Stack.Item,{children:[(0,e.createComponentVNode)(2,f.Icon,{name:"fire",mr:.5}),(0,a.round)(I.fireLoss)]})})]})})}),(0,e.createComponentVNode)(2,f.Table.Cell,{textAlign:"right",verticalAlign:"top",width:"33%",pt:w>0&&"calc(0.5rem + 2px)",children:[(0,e.createComponentVNode)(2,f.Box,{color:"average",inline:!0,children:c([!!I.internalBleeding&&"Internal bleeding",!!I.burnWound&&"Critical tissue burns",!!I.lungRuptured&&"Ruptured lung",!!I.status.broken&&I.status.broken,m(I.germ_level),!!I.open&&"Open incision"])}),(0,e.createComponentVNode)(2,f.Box,{inline:!0,children:[c([!!I.status.splinted&&(0,e.createComponentVNode)(2,f.Box,{color:"good",children:"Splinted"}),!!I.status.robotic&&(0,e.createComponentVNode)(2,f.Box,{color:"label",children:"Robotic"}),!!I.status.dead&&(0,e.createComponentVNode)(2,f.Box,{color:"bad",bold:!0,children:"DEAD"})]),c(I.shrapnel.map(function(T){return T.known?T.name:"Unknown object"}))]})]})]},w)})]})})},h=function(B){return B.organs.length===0?(0,e.createComponentVNode)(2,f.Section,{title:"Internal Organs",children:(0,e.createComponentVNode)(2,f.Box,{color:"label",children:"N/A"})}):(0,e.createComponentVNode)(2,f.Section,{title:"Internal Organs",children:(0,e.createComponentVNode)(2,f.Table,{children:[(0,e.createComponentVNode)(2,f.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,f.Table.Cell,{children:"Name"}),(0,e.createComponentVNode)(2,f.Table.Cell,{textAlign:"center",children:"Damage"}),(0,e.createComponentVNode)(2,f.Table.Cell,{textAlign:"right",children:"Injuries"})]}),B.organs.map(function(I,w){return(0,e.createComponentVNode)(2,f.Table.Row,{children:[(0,e.createComponentVNode)(2,f.Table.Cell,{color:!!I.dead&&"bad"||I.germ_level>100&&"average"||I.robotic>0&&"label",width:"33%",children:(0,t.capitalize)(I.name)}),(0,e.createComponentVNode)(2,f.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,f.ProgressBar,{min:"0",max:I.maxHealth,value:I.damage/I.maxHealth,mt:w>0&&"0.5rem",ranges:p,children:(0,a.round)(I.damage)})}),(0,e.createComponentVNode)(2,f.Table.Cell,{textAlign:"right",verticalAlign:"top",width:"33%",pt:w>0&&"calc(0.5rem + 2px)",children:[(0,e.createComponentVNode)(2,f.Box,{color:"average",inline:!0,children:c([m(I.germ_level)])}),(0,e.createComponentVNode)(2,f.Box,{inline:!0,children:c([I.robotic===1&&(0,e.createComponentVNode)(2,f.Box,{color:"label",children:"Robotic"}),I.robotic===2&&(0,e.createComponentVNode)(2,f.Box,{color:"label",children:"Assisted"}),!!I.dead&&(0,e.createComponentVNode)(2,f.Box,{color:"bad",bold:!0,children:"DEAD"})])})]})]},w)})]})})},N=function(){return(0,e.createComponentVNode)(2,f.Section,{fill:!0,children:(0,e.createComponentVNode)(2,f.Stack,{fill:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,align:"center",color:"label",children:[(0,e.createComponentVNode)(2,f.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,e.createVNode)(1,"br"),"No occupant detected."]})})})}},99449:function(L,r,n){"use strict";r.__esModule=!0,r.BookBinder=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=n(99665),V=n(18963),k=r.BookBinder=function(){function S(b,p){var l=(0,a.useBackend)(p),c=l.act,m=l.data,d=m.selectedbook,u=m.book_categories,s=[];return u.map(function(i){return s[i.description]=i.category_id}),(0,e.createComponentVNode)(2,o.Window,{width:600,height:400,children:[(0,e.createComponentVNode)(2,f.ComplexModal),(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Book Binder",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"print",width:"auto",content:"Print Book",onClick:function(){function i(){return c("print_book")}return i}()}),children:[(0,e.createComponentVNode)(2,t.Box,{ml:10,fontSize:"1.2rem",bold:!0,children:[(0,e.createComponentVNode)(2,t.Icon,{name:"search-plus",verticalAlign:"middle",size:3,mr:"1rem"}),"Book Binder"]}),(0,e.createComponentVNode)(2,t.Stack,{children:(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Title",children:(0,e.createComponentVNode)(2,t.Button,{textAlign:"left",icon:"pen",width:"auto",content:d.title,onClick:function(){function i(){return(0,f.modalOpen)(p,"edit_selected_title")}return i}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Author",children:(0,e.createComponentVNode)(2,t.Button,{textAlign:"left",icon:"pen",width:"auto",content:d.author,onClick:function(){function i(){return(0,f.modalOpen)(p,"edit_selected_author")}return i}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Select Categories",children:(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Dropdown,{width:"190px",options:u.map(function(i){return i.description}),onSelected:function(){function i(v){return c("toggle_binder_category",{category_id:s[v]})}return i}()})})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Summary",children:(0,e.createComponentVNode)(2,t.Button,{icon:"pen",width:"auto",content:"Edit Summary",onClick:function(){function i(){return(0,f.modalOpen)(p,"edit_selected_summary")}return i}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{children:d.summary})]}),(0,e.createVNode)(1,"br"),u.filter(function(i){return d.categories.includes(i.category_id)}).map(function(i){return(0,e.createComponentVNode)(2,t.Button,{content:i.description,selected:!0,icon:"unlink",onClick:function(){function v(){return c("toggle_binder_category",{category_id:i.category_id})}return v}()},i.category_id)})]})})]})})})]})}return S}()},85951:function(L,r,n){"use strict";r.__esModule=!0,r.BotCall=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=function(l){var c=[{modes:[0],label:"Idle",color:"green"},{modes:[1,2,3],label:"Arresting",color:"yellow"},{modes:[4,5],label:"Patrolling",color:"average"},{modes:[9],label:"Moving",color:"average"},{modes:[6,11],label:"Responding",color:"green"},{modes:[12],label:"Delivering Cargo",color:"blue"},{modes:[13],label:"Returning Home",color:"blue"},{modes:[7,8,10,14,15,16,17,18,19],label:"Working",color:"blue"}],m=c.find(function(d){return d.modes.includes(l)});return(0,e.createComponentVNode)(2,t.Box,{color:m.color,children:[" ",m.label," "]})},V=r.BotCall=function(){function p(l,c){var m=(0,a.useBackend)(c),d=m.act,u=m.data,s=(0,a.useLocalState)(c,"tabIndex",0),i=s[0],v=s[1],g={0:"Security",1:"Medibot",2:"Cleanbot",3:"Floorbot",4:"Mule",5:"Honkbot"},C=function(){function h(N){return g[N]?(0,e.createComponentVNode)(2,k,{model:g[N]}):"This should not happen. Report on Paradise Github"}return h}();return(0,e.createComponentVNode)(2,o.Window,{width:700,height:400,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:i===0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Tabs,{fluid:!0,textAlign:"center",children:Array.from({length:6}).map(function(h,N){return(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:i===N,onClick:function(){function y(){return v(N)}return y}(),children:g[N]},N)})})}),C(i)]})})})}return p}(),k=function(l,c){var m=(0,a.useBackend)(c),d=m.act,u=m.data,s=u.bots;return s[l.model]!==void 0?(0,e.createComponentVNode)(2,b,{model:[l.model]}):(0,e.createComponentVNode)(2,S,{model:[l.model]})},S=function(l,c){var m=(0,a.useBackend)(c),d=m.act,u=m.data;return(0,e.createComponentVNode)(2,t.Stack,{justify:"center",align:"center",fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,t.Box,{bold:1,color:"bad",children:["No ",[l.model]," detected"]})})},b=function(l,c){var m=(0,a.useBackend)(c),d=m.act,u=m.data,s=u.bots;return(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Table,{m:"0.5rem",children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Name"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Model"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Status"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Location"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Interface"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Call"})]}),s[l.model].map(function(i){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:i.name}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:i.model}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:i.on?f(i.status):(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Off"})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:i.location}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Interface",onClick:function(){function v(){return d("interface",{botref:i.UID})}return v}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Call",onClick:function(){function v(){return d("call",{botref:i.UID})}return v}()})})]},i.UID)})]})})})}},43506:function(L,r,n){"use strict";r.__esModule=!0,r.BotClean=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=n(69521),V=r.BotClean=function(){function k(S,b){var p=(0,a.useBackend)(b),l=p.act,c=p.data,m=c.locked,d=c.noaccess,u=c.maintpanel,s=c.on,i=c.autopatrol,v=c.canhack,g=c.emagged,C=c.remote_disabled,h=c.painame,N=c.cleanblood,y=c.area;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:400,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,f.BotStatus),(0,e.createComponentVNode)(2,t.Section,{title:"Cleaning Settings",children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:N,content:"Clean Blood",disabled:d,onClick:function(){function B(){return l("blood")}return B}()})}),(0,e.createComponentVNode)(2,t.Section,{title:"Misc Settings",children:[(0,e.createComponentVNode)(2,t.Button,{fluid:!0,content:y?"Reset Area Selection":"Restrict to Current Area",onClick:function(){function B(){return l("area")}return B}()}),y!==null&&(0,e.createComponentVNode)(2,t.LabeledList,{mb:1,children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Locked Area",children:y})})]}),h&&(0,e.createComponentVNode)(2,t.Section,{title:"pAI",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"eject",content:h,disabled:d,onClick:function(){function B(){return l("ejectpai")}return B}()})})]})})}return k}()},89593:function(L,r,n){"use strict";r.__esModule=!0,r.BotFloor=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=n(69521),V=r.BotFloor=function(){function k(S,b){var p=(0,a.useBackend)(b),l=p.act,c=p.data,m=c.noaccess,d=c.painame,u=c.hullplating,s=c.replace,i=c.eat,v=c.make,g=c.fixfloor,C=c.nag_empty,h=c.magnet,N=c.tiles_amount;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:510,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,f.BotStatus),(0,e.createComponentVNode)(2,t.Section,{title:"Floor Settings",children:[(0,e.createComponentVNode)(2,t.Box,{mb:"5px",children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Tiles Left",children:N})}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:u,content:"Add tiles to new hull plating",tooltip:"Fixing a plating requires the removal of floor tile. This will place it back after repairing. Same goes for hull breaches",disabled:m,onClick:function(){function y(){return l("autotile")}return y}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:s,content:"Add floor tiles on exposed hull plating",tooltip:"Example: It will add tiles to maintenance",disabled:m,onClick:function(){function y(){return l("replacetiles")}return y}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:g,content:"Repair damaged tiles and platings",disabled:m,onClick:function(){function y(){return l("fixfloors")}return y}()})]}),(0,e.createComponentVNode)(2,t.Section,{title:"Miscellaneous",children:[(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:i,content:"Finds tiles",disabled:m,onClick:function(){function y(){return l("eattiles")}return y}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:v,content:"Make pieces of metal into tiles when empty",disabled:m,onClick:function(){function y(){return l("maketiles")}return y}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:C,content:"Transmit notice when empty",disabled:m,onClick:function(){function y(){return l("nagonempty")}return y}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:h,content:"Traction Magnets",disabled:m,onClick:function(){function y(){return l("anchored")}return y}()})]}),d&&(0,e.createComponentVNode)(2,t.Section,{title:"pAI",children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,icon:"eject",content:d,disabled:m,onClick:function(){function y(){return l("ejectpai")}return y}()})})]})})}return k}()},89513:function(L,r,n){"use strict";r.__esModule=!0,r.BotHonk=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=n(69521),V=r.BotHonk=function(){function k(S,b){var p=(0,a.useBackend)(b),l=p.act,c=p.data;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:220,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,f.BotStatus)})})}return k}()},19297:function(L,r,n){"use strict";r.__esModule=!0,r.BotMed=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=n(69521),V=r.BotMed=function(){function k(S,b){var p=(0,a.useBackend)(b),l=p.act,c=p.data,m=c.locked,d=c.noaccess,u=c.maintpanel,s=c.on,i=c.autopatrol,v=c.canhack,g=c.emagged,C=c.remote_disabled,h=c.painame,N=c.shut_up,y=c.declare_crit,B=c.stationary_mode,I=c.heal_threshold,w=c.injection_amount,T=c.use_beaker,A=c.treat_virus,x=c.reagent_glass;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:500,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,f.BotStatus),(0,e.createComponentVNode)(2,t.Section,{title:"Communication Settings",children:[(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,content:"Speaker",checked:!N,disabled:d,onClick:function(){function E(){return l("toggle_speaker")}return E}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,content:"Critical Patient Alerts",checked:y,disabled:d,onClick:function(){function E(){return l("toggle_critical_alerts")}return E}()})]}),(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Treatment Settings",children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Healing Threshold",children:(0,e.createComponentVNode)(2,t.Slider,{value:I.value,minValue:I.min,maxValue:I.max,step:5,disabled:d,onChange:function(){function E(M,D){return l("set_heal_threshold",{target:D})}return E}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Injection Level",children:(0,e.createComponentVNode)(2,t.Slider,{value:w.value,minValue:w.min,maxValue:w.max,step:5,format:function(){function E(M){return M+"u"}return E}(),disabled:d,onChange:function(){function E(M,D){return l("set_injection_amount",{target:D})}return E}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Reagent Source",children:(0,e.createComponentVNode)(2,t.Button,{content:T?"Beaker":"Internal Synthesizer",icon:T?"flask":"cogs",disabled:d,onClick:function(){function E(){return l("toggle_use_beaker")}return E}()})}),x&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Beaker",children:(0,e.createComponentVNode)(2,t.Stack,{inline:!0,width:"100%",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:1,children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:x.amount,minValue:0,maxValue:x.max_amount,children:[x.amount," / ",x.max_amount]})}),(0,e.createComponentVNode)(2,t.Stack.Item,{ml:1,children:(0,e.createComponentVNode)(2,t.Button,{content:"Eject",disabled:d,onClick:function(){function E(){return l("eject_reagent_glass")}return E}()})})]})})]}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{mt:1,fluid:!0,content:"Treat Viral Infections",checked:A,disabled:d,onClick:function(){function E(){return l("toggle_treat_viral")}return E}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,content:"Stationary Mode",checked:B,disabled:d,onClick:function(){function E(){return l("toggle_stationary_mode")}return E}()})]}),h&&(0,e.createComponentVNode)(2,t.Section,{title:"pAI",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"eject",content:h,disabled:d,onClick:function(){function E(){return l("ejectpai")}return E}()})})]})})})}return k}()},4249:function(L,r,n){"use strict";r.__esModule=!0,r.BotSecurity=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=n(69521),V=r.BotSecurity=function(){function k(S,b){var p=(0,a.useBackend)(b),l=p.act,c=p.data,m=c.noaccess,d=c.painame,u=c.check_id,s=c.check_weapons,i=c.check_warrant,v=c.arrest_mode,g=c.arrest_declare;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:445,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,f.BotStatus),(0,e.createComponentVNode)(2,t.Section,{title:"Who To Arrest",children:[(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:u,content:"Unidentifiable Persons",disabled:m,onClick:function(){function C(){return l("authid")}return C}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:s,content:"Unauthorized Weapons",disabled:m,onClick:function(){function C(){return l("authweapon")}return C}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:i,content:"Wanted Criminals",disabled:m,onClick:function(){function C(){return l("authwarrant")}return C}()})]}),(0,e.createComponentVNode)(2,t.Section,{title:"Arrest Procedure",children:[(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:v,content:"Detain Targets Indefinitely",disabled:m,onClick:function(){function C(){return l("arrtype")}return C}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:g,content:"Announce Arrests On Radio",disabled:m,onClick:function(){function C(){return l("arrdeclare")}return C}()})]}),d&&(0,e.createComponentVNode)(2,t.Section,{title:"pAI",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"eject",content:d,disabled:m,onClick:function(){function C(){return l("ejectpai")}return C}()})})]})})}return k}()},27267:function(L,r,n){"use strict";r.__esModule=!0,r.BrigCells=void 0;var e=n(96524),a=n(45493),t=n(24674),o=n(17899),f=function(b,p){var l=b.cell,c=(0,o.useBackend)(p),m=c.act,d=l.cell_id,u=l.occupant,s=l.crimes,i=l.brigged_by,v=l.time_left_seconds,g=l.time_set_seconds,C=l.ref,h="";v>0&&(h+=" BrigCells__listRow--active");var N=function(){m("release",{ref:C})};return(0,e.createComponentVNode)(2,t.Table.Row,{className:h,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:d}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:u}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:s}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:i}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.TimeDisplay,{totalSeconds:g})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.TimeDisplay,{totalSeconds:v})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{type:"button",onClick:N,children:"Release"})})]})},V=function(b){var p=b.cells;return(0,e.createComponentVNode)(2,t.Table,{className:"BrigCells__list",children:[(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{header:!0,children:"Cell"}),(0,e.createComponentVNode)(2,t.Table.Cell,{header:!0,children:"Occupant"}),(0,e.createComponentVNode)(2,t.Table.Cell,{header:!0,children:"Crimes"}),(0,e.createComponentVNode)(2,t.Table.Cell,{header:!0,children:"Brigged By"}),(0,e.createComponentVNode)(2,t.Table.Cell,{header:!0,children:"Time Brigged For"}),(0,e.createComponentVNode)(2,t.Table.Cell,{header:!0,children:"Time Left"}),(0,e.createComponentVNode)(2,t.Table.Cell,{header:!0,children:"Release"})]}),p.map(function(l){return(0,e.createComponentVNode)(2,f,{cell:l},l.ref)})]})},k=r.BrigCells=function(){function S(b,p){var l=(0,o.useBackend)(p),c=l.act,m=l.data,d=m.cells;return(0,e.createComponentVNode)(2,a.Window,{theme:"security",width:800,height:400,children:(0,e.createComponentVNode)(2,a.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,V,{cells:d})})})})})}return S}()},26623:function(L,r,n){"use strict";r.__esModule=!0,r.BrigTimer=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.BrigTimer=function(){function V(k,S){var b=(0,a.useBackend)(S),p=b.act,l=b.data;l.nameText=l.occupant,l.timing&&(l.prisoner_hasrec?l.nameText=(0,e.createComponentVNode)(2,t.Box,{color:"green",children:l.occupant}):l.nameText=(0,e.createComponentVNode)(2,t.Box,{color:"red",children:l.occupant}));var c="pencil-alt";l.prisoner_name&&(l.prisoner_hasrec||(c="exclamation-triangle"));var m=[],d=0;for(d=0;dm?this.substring(0,m)+"...":this};var b=function(d,u){var s,i;if(!u)return[];var v=d.findIndex(function(g){return g.name===u.name});return[(s=d[v-1])==null?void 0:s.name,(i=d[v+1])==null?void 0:i.name]},p=function(d,u){u===void 0&&(u="");var s=(0,f.createSearch)(u,function(i){return i.name});return(0,t.flow)([(0,a.filter)(function(i){return i==null?void 0:i.name}),u&&(0,a.filter)(s),(0,a.sortBy)(function(i){return i.name})])(d)},l=r.CameraConsole=function(){function m(d,u){var s=(0,V.useBackend)(u),i=s.act,v=s.data,g=s.config,C=v.mapRef,h=v.activeCamera,N=p(v.cameras),y=b(N,h),B=y[0],I=y[1];return(0,e.createComponentVNode)(2,S.Window,{width:870,height:708,children:[(0,e.createVNode)(1,"div","CameraConsole__left",(0,e.createComponentVNode)(2,S.Window.Content,{children:(0,e.createComponentVNode)(2,k.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,c)})}),2),(0,e.createVNode)(1,"div","CameraConsole__right",[(0,e.createVNode)(1,"div","CameraConsole__toolbar",[(0,e.createVNode)(1,"b",null,"Camera: ",16),h&&h.name||"\u2014"],0),(0,e.createVNode)(1,"div","CameraConsole__toolbarRight",[(0,e.createComponentVNode)(2,k.Button,{icon:"chevron-left",disabled:!B,onClick:function(){function w(){return i("switch_camera",{name:B})}return w}()}),(0,e.createComponentVNode)(2,k.Button,{icon:"chevron-right",disabled:!I,onClick:function(){function w(){return i("switch_camera",{name:I})}return w}()})],4),(0,e.createComponentVNode)(2,k.ByondUi,{className:"CameraConsole__map",params:{id:C,type:"map"}})],4)]})}return m}(),c=r.CameraConsoleContent=function(){function m(d,u){var s=(0,V.useBackend)(u),i=s.act,v=s.data,g=(0,V.useLocalState)(u,"searchText",""),C=g[0],h=g[1],N=v.activeCamera,y=p(v.cameras,C);return(0,e.createComponentVNode)(2,k.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,k.Stack.Item,{children:(0,e.createComponentVNode)(2,k.Input,{fluid:!0,placeholder:"Search for a camera",onInput:function(){function B(I,w){return h(w)}return B}()})}),(0,e.createComponentVNode)(2,k.Stack.Item,{grow:!0,m:0,children:(0,e.createComponentVNode)(2,k.Section,{fill:!0,scrollable:!0,children:y.map(function(B){return(0,e.createVNode)(1,"div",(0,o.classes)(["Button","Button--fluid","Button--color--transparent",N&&B.name===N.name&&"Button--selected"]),B.name.trimLongStr(23),0,{title:B.name,onClick:function(){function I(){return i("switch_camera",{name:B.name})}return I}()},B.name)})})})]})}return m}()},95513:function(L,r,n){"use strict";r.__esModule=!0,r.Canister=void 0;var e=n(96524),a=n(36121),t=n(17899),o=n(24674),f=n(92986),V=n(45493),k=r.Canister=function(){function S(b,p){var l=(0,t.useBackend)(p),c=l.act,m=l.data,d=m.portConnected,u=m.tankPressure,s=m.releasePressure,i=m.defaultReleasePressure,v=m.minReleasePressure,g=m.maxReleasePressure,C=m.valveOpen,h=m.name,N=m.canLabel,y=m.colorContainer,B=m.color_index,I=m.hasHoldingTank,w=m.holdingTank,T="";B.prim&&(T=y.prim.options[B.prim].name);var A="";B.sec&&(A=y.sec.options[B.sec].name);var x="";B.ter&&(x=y.ter.options[B.ter].name);var E="";B.quart&&(E=y.quart.options[B.quart].name);var M=[],D=[],P=[],R=[],j=0;for(j=0;jh.current_positions&&(0,e.createComponentVNode)(2,t.Box,{color:"green",children:h.total_positions-h.current_positions})||(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"0"})}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{content:"-",disabled:i.cooldown_time||!h.can_close,onClick:function(){function N(){return s("make_job_unavailable",{job:h.title})}return N}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{content:"+",disabled:i.cooldown_time||!h.can_open,onClick:function(){function N(){return s("make_job_available",{job:h.title})}return N}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:i.target_dept&&(0,e.createComponentVNode)(2,t.Box,{color:"green",children:i.priority_jobs.indexOf(h.title)>-1?"Yes":""})||(0,e.createComponentVNode)(2,t.Button,{content:h.is_priority?"Yes":"No",selected:h.is_priority,disabled:i.cooldown_time||!h.can_prioritize,onClick:function(){function N(){return s("prioritize_job",{job:h.title})}return N}()})})]},h.title)})]})})]}):C=(0,e.createComponentVNode)(2,S);break;case 2:!i.authenticated||!i.scan_name?C=(0,e.createComponentVNode)(2,S):i.modify_name?C=(0,e.createComponentVNode)(2,f.AccessList,{accesses:i.regions,selectedList:i.selectedAccess,accessMod:function(){function h(N){return s("set",{access:N})}return h}(),grantAll:function(){function h(){return s("grant_all")}return h}(),denyAll:function(){function h(){return s("clear_all")}return h}(),grantDep:function(){function h(N){return s("grant_region",{region:N})}return h}(),denyDep:function(){function h(N){return s("deny_region",{region:N})}return h}()}):C=(0,e.createComponentVNode)(2,b);break;case 3:i.authenticated?i.records.length?C=(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Records",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"times",content:"Delete All Records",disabled:!i.authenticated||i.records.length===0||i.target_dept,onClick:function(){function h(){return s("wipe_all_logs")}return h}()}),children:[(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{height:2,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Crewman"}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Old Rank"}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"New Rank"}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Authorized By"}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Time"}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Reason"}),!!i.iscentcom&&(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Deleted By"})]}),i.records.map(function(h){return(0,e.createComponentVNode)(2,t.Table.Row,{height:2,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:h.transferee}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:h.oldvalue}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:h.newvalue}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:h.whodidit}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:h.timestamp}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:h.reason}),!!i.iscentcom&&(0,e.createComponentVNode)(2,t.Table.Cell,{children:h.deletedby})]},h.timestamp)})]}),!!i.iscentcom&&(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"pencil-alt",content:"Delete MY Records",color:"purple",disabled:!i.authenticated||i.records.length===0,onClick:function(){function h(){return s("wipe_my_logs")}return h}()})})]}):C=(0,e.createComponentVNode)(2,p):C=(0,e.createComponentVNode)(2,S);break;case 4:!i.authenticated||!i.scan_name?C=(0,e.createComponentVNode)(2,S):C=(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Your Team",children:(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{height:2,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Name"}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Rank"}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Sec Status"}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Actions"})]}),i.people_dept.map(function(h){return(0,e.createComponentVNode)(2,t.Table.Row,{height:2,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:h.name}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:h.title}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:h.crimstat}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{content:h.buttontext,disabled:!h.demotable,onClick:function(){function N(){return s("remote_demote",{remote_demote:h.name})}return N}()})})]},h.title)})]})});break;default:C=(0,e.createComponentVNode)(2,t.Section,{title:"Warning",color:"red",children:"ERROR: Unknown Mode."})}return(0,e.createComponentVNode)(2,o.Window,{width:800,height:800,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:g}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:v}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:C})]})})})}return c}()},16377:function(L,r,n){"use strict";r.__esModule=!0,r.CargoConsole=void 0;var e=n(96524),a=n(74041),t=n(50640),o=n(17899),f=n(24674),V=n(45493),k=n(78234),S=r.CargoConsole=function(){function u(s,i){return(0,e.createComponentVNode)(2,V.Window,{width:900,height:800,children:(0,e.createComponentVNode)(2,V.Window.Content,{children:(0,e.createComponentVNode)(2,f.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,b),(0,e.createComponentVNode)(2,p),(0,e.createComponentVNode)(2,l),(0,e.createComponentVNode)(2,c),(0,e.createComponentVNode)(2,d)]})})})}return u}(),b=function(s,i){var v=(0,o.useLocalState)(i,"contentsModal",null),g=v[0],C=v[1],h=(0,o.useLocalState)(i,"contentsModalTitle",null),N=h[0],y=h[1];if(g!==null&&N!==null)return(0,e.createComponentVNode)(2,f.Modal,{maxWidth:"75%",width:window.innerWidth+"px",maxHeight:window.innerHeight*.75+"px",mx:"auto",children:[(0,e.createComponentVNode)(2,f.Box,{width:"100%",bold:!0,children:(0,e.createVNode)(1,"h1",null,[N,(0,e.createTextVNode)(" contents:")],0)}),(0,e.createComponentVNode)(2,f.Box,{children:g.map(function(B){return(0,e.createComponentVNode)(2,f.Box,{children:["- ",B]},B)})}),(0,e.createComponentVNode)(2,f.Box,{m:2,children:(0,e.createComponentVNode)(2,f.Button,{content:"Close",onClick:function(){function B(){C(null),y(null)}return B}()})})]})},p=function(s,i){var v=(0,o.useBackend)(i),g=v.act,C=v.data,h=C.is_public,N=C.timeleft,y=C.moving,B=C.at_station,I,w;return!y&&!B?(I="Docked off-station",w="Call Shuttle"):!y&&B?(I="Docked at the station",w="Return Shuttle"):y&&(w="In Transit...",N!==1?I="Shuttle is en route (ETA: "+N+" minutes)":I="Shuttle is en route (ETA: "+N+" minute)"),(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Section,{title:"Status",children:(0,e.createComponentVNode)(2,f.LabeledList,{children:[(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Shuttle Status",children:I}),h===0&&(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Controls",children:[(0,e.createComponentVNode)(2,f.Button,{content:w,disabled:y,onClick:function(){function T(){return g("moveShuttle")}return T}()}),(0,e.createComponentVNode)(2,f.Button,{content:"View Central Command Messages",onClick:function(){function T(){return g("showMessages")}return T}()})]})]})})})},l=function(s,i){var v,g=(0,o.useBackend)(i),C=g.act,h=g.data,N=h.accounts,y=(0,o.useLocalState)(i,"selectedAccount"),B=y[0],I=y[1],w=[];return N.map(function(T){return w[T.name]=T.account_UID}),(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Section,{title:"Payment",children:[(0,e.createComponentVNode)(2,f.Dropdown,{width:"190px",options:N.map(function(T){return T.name}),selected:(v=N.filter(function(T){return T.account_UID===B})[0])==null?void 0:v.name,onSelected:function(){function T(A){return I(w[A])}return T}()}),N.filter(function(T){return T.account_UID===B}).map(function(T){return(0,e.createComponentVNode)(2,f.LabeledList,{children:[(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Account Name",children:(0,e.createComponentVNode)(2,f.Stack.Item,{mt:1,children:T.name})}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Balance",children:(0,e.createComponentVNode)(2,f.Stack.Item,{children:T.balance})})]},T.account_UID)})]})})},c=function(s,i){var v=(0,o.useBackend)(i),g=v.act,C=v.data,h=C.requests,N=C.categories,y=C.supply_packs,B=(0,o.useSharedState)(i,"category","Emergency"),I=B[0],w=B[1],T=(0,o.useSharedState)(i,"search_text",""),A=T[0],x=T[1],E=(0,o.useLocalState)(i,"contentsModal",null),M=E[0],D=E[1],P=(0,o.useLocalState)(i,"contentsModalTitle",null),R=P[0],j=P[1],F=(0,k.createSearch)(A,function(Y){return Y.name}),U=(0,o.useLocalState)(i,"selectedAccount"),_=U[0],z=U[1],G=(0,a.flow)([(0,t.filter)(function(Y){return Y.cat===N.filter(function(J){return J.name===I})[0].category||A}),A&&(0,t.filter)(F),(0,t.sortBy)(function(Y){return Y.name.toLowerCase()})])(y),X="Crate Catalogue";return A?X="Results for '"+A+"':":I&&(X="Browsing "+I),(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Section,{title:X,buttons:(0,e.createComponentVNode)(2,f.Dropdown,{width:"190px",options:N.map(function(Y){return Y.name}),selected:I,onSelected:function(){function Y(J){return w(J)}return Y}()}),children:[(0,e.createComponentVNode)(2,f.Input,{fluid:!0,placeholder:"Search for...",onInput:function(){function Y(J,ie){return x(ie)}return Y}(),mb:1}),(0,e.createComponentVNode)(2,f.Box,{maxHeight:25,overflowY:"auto",overflowX:"hidden",children:(0,e.createComponentVNode)(2,f.Table,{m:"0.5rem",children:G.map(function(Y){return(0,e.createComponentVNode)(2,f.Table.Row,{children:[(0,e.createComponentVNode)(2,f.Table.Cell,{bold:!0,children:[Y.name," (",Y.cost," Credits)"]}),(0,e.createComponentVNode)(2,f.Table.Cell,{textAlign:"right",pr:1,children:[(0,e.createComponentVNode)(2,f.Button,{content:"Order 1",icon:"shopping-cart",disabled:!_,onClick:function(){function J(){return g("order",{crate:Y.ref,multiple:!1,account:_})}return J}()}),(0,e.createComponentVNode)(2,f.Button,{content:"Order Multiple",icon:"cart-plus",disabled:!_||Y.singleton,onClick:function(){function J(){return g("order",{crate:Y.ref,multiple:!0,account:_})}return J}()}),(0,e.createComponentVNode)(2,f.Button,{content:"View Contents",icon:"search",onClick:function(){function J(){D(Y.contents),j(Y.name)}return J}()})]})]},Y.name)})})})]})})},m=function(s,i){var v=s.request,g,C;switch(v.department){case"Engineering":C="CE",g="orange";break;case"Medical":C="CMO",g="teal";break;case"Science":C="RD",g="purple";break;case"Supply":C="CT",g="brown";break;case"Service":C="HOP",g="olive";break;case"Security":C="HOS",g="red";break;case"Command":C="CAP",g="blue";break;case"Assistant":C="Any Head",g="grey";break}return(0,e.createComponentVNode)(2,f.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,f.Stack.Item,{mt:.5,children:"Approval Required:"}),!!v.req_cargo_approval&&(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Button,{color:"brown",content:"QM",icon:"user-tie",tooltip:"This Order requires approval from the QM still"})}),!!v.req_head_approval&&(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Button,{color:g,content:C,disabled:v.req_cargo_approval,icon:"user-tie",tooltip:v.req_cargo_approval?"This Order first requires approval from the QM before the "+C+" can approve it":"This Order requires approval from the "+C+" still"})})]})},d=function(s,i){var v=(0,o.useBackend)(i),g=v.act,C=v.data,h=C.requests,N=C.orders,y=C.shipments;return(0,e.createComponentVNode)(2,f.Section,{fill:!0,scrollable:!0,title:"Orders",children:[(0,e.createComponentVNode)(2,f.Box,{bold:!0,children:"Requests"}),(0,e.createComponentVNode)(2,f.Table,{children:h.map(function(B){return(0,e.createComponentVNode)(2,f.Table.Row,{className:"Cargo_RequestList",children:[(0,e.createComponentVNode)(2,f.Table.Cell,{mb:1,children:[(0,e.createComponentVNode)(2,f.Box,{children:["Order #",B.ordernum,": ",B.supply_type," (",B.cost," credits) for"," ",(0,e.createVNode)(1,"b",null,B.orderedby,0)," with"," ",B.department?"The "+B.department+" Department":"Their Personal"," ","Account"]}),(0,e.createComponentVNode)(2,f.Box,{italic:!0,children:["Reason: ",B.comment]}),(0,e.createComponentVNode)(2,m,{request:B})]}),(0,e.createComponentVNode)(2,f.Stack.Item,{textAlign:"right",children:[(0,e.createComponentVNode)(2,f.Button,{content:"Approve",color:"green",disabled:!B.can_approve,onClick:function(){function I(){return g("approve",{ordernum:B.ordernum})}return I}()}),(0,e.createComponentVNode)(2,f.Button,{content:"Deny",color:"red",disabled:!B.can_deny,onClick:function(){function I(){return g("deny",{ordernum:B.ordernum})}return I}()})]})]},B.ordernum)})}),(0,e.createComponentVNode)(2,f.Box,{bold:!0,children:"Orders Awaiting Delivery"}),(0,e.createComponentVNode)(2,f.Table,{m:"0.5rem",children:N.map(function(B){return(0,e.createComponentVNode)(2,f.Table.Row,{children:(0,e.createComponentVNode)(2,f.Table.Cell,{children:[(0,e.createComponentVNode)(2,f.Box,{children:["- #",B.ordernum,": ",B.supply_type," for ",(0,e.createVNode)(1,"b",null,B.orderedby,0)]}),(0,e.createComponentVNode)(2,f.Box,{italic:!0,children:["Reason: ",B.comment]})]})},B.ordernum)})}),(0,e.createComponentVNode)(2,f.Box,{bold:!0,children:"Order in Transit"}),(0,e.createComponentVNode)(2,f.Table,{m:"0.5rem",children:y.map(function(B){return(0,e.createComponentVNode)(2,f.Table.Row,{children:(0,e.createComponentVNode)(2,f.Table.Cell,{children:[(0,e.createComponentVNode)(2,f.Box,{children:["- #",B.ordernum,": ",B.supply_type," for ",(0,e.createVNode)(1,"b",null,B.orderedby,0)]}),(0,e.createComponentVNode)(2,f.Box,{italic:!0,children:["Reason: ",B.comment]})]})},B.ordernum)})})]})}},89917:function(L,r,n){"use strict";r.__esModule=!0,r.ChangelogView=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.ChangelogView=function(){function V(k,S){var b=(0,a.useBackend)(S),p=b.act,l=b.data,c=(0,a.useLocalState)(S,"onlyRecent",0),m=c[0],d=c[1],u=l.cl_data,s=l.last_cl,i={FIX:(0,e.createComponentVNode)(2,t.Icon,{name:"tools",title:"Fix"}),WIP:(0,e.createComponentVNode)(2,t.Icon,{name:"hard-hat",title:"WIP",color:"orange"}),TWEAK:(0,e.createComponentVNode)(2,t.Icon,{name:"sliders-h",title:"Tweak"}),SOUNDADD:(0,e.createComponentVNode)(2,t.Icon,{name:"volume-up",title:"Sound Added",color:"green"}),SOUNDDEL:(0,e.createComponentVNode)(2,t.Icon,{name:"volume-mute",title:"Sound Removed",color:"red"}),CODEADD:(0,e.createComponentVNode)(2,t.Icon,{name:"plus",title:"Code Addition",color:"green"}),CODEDEL:(0,e.createComponentVNode)(2,t.Icon,{name:"minus",title:"Code Removal",color:"red"}),IMAGEADD:(0,e.createComponentVNode)(2,t.Icon,{name:"folder-plus",title:"Sprite Addition",color:"green"}),IMAGEDEL:(0,e.createComponentVNode)(2,t.Icon,{name:"folder-minus",title:"Sprite Removal",color:"red"}),SPELLCHECK:(0,e.createComponentVNode)(2,t.Icon,{name:"font",title:"Spelling/Grammar Fix"}),EXPERIMENT:(0,e.createComponentVNode)(2,t.Icon,{name:"exclamation-triangle",title:"Experimental",color:"orange"})},v=function(){function g(C){return C in i?i[C]:(0,e.createComponentVNode)(2,t.Icon,{name:"plus",color:"green"})}return g}();return(0,e.createComponentVNode)(2,o.Window,{width:750,height:800,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"ParadiseSS13 Changelog",mt:2,buttons:(0,e.createComponentVNode)(2,t.Button,{content:m?"Showing all changes":"Showing changes since last connection",onClick:function(){function g(){return d(!m)}return g}()}),children:u.map(function(g){return!m&&g.merge_ts<=s||(0,e.createComponentVNode)(2,t.Section,{mb:2,title:g.author+" - Merged on "+g.merge_date,buttons:(0,e.createComponentVNode)(2,t.Button,{content:"#"+g.num,onClick:function(){function C(){return p("open_pr",{pr_number:g.num})}return C}()}),children:g.entries.map(function(C){return(0,e.createComponentVNode)(2,t.Box,{m:1,children:[v(C.etype)," ",C.etext]},C)})},g)})})})})}return V}()},71254:function(L,r,n){"use strict";r.__esModule=!0,r.ChemDispenser=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(1496),f=n(45493),V=[1,5,10,20,30,50],k=[1,5,10],S=r.ChemDispenser=function(){function c(m,d){var u=(0,a.useBackend)(d),s=u.act,i=u.data,v=i.chemicals;return(0,e.createComponentVNode)(2,f.Window,{width:400,height:400+v.length*8,children:(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,b),(0,e.createComponentVNode)(2,p),(0,e.createComponentVNode)(2,l)]})})})}return c}(),b=function(m,d){var u=(0,a.useBackend)(d),s=u.act,i=u.data,v=i.amount,g=i.energy,C=i.maxEnergy;return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Settings",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Energy",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:g,minValue:0,maxValue:C,ranges:{good:[C*.5,1/0],average:[C*.25,C*.5],bad:[-1/0,C*.25]},children:[g," / ",C," Units"]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Dispense",verticalAlign:"middle",children:(0,e.createComponentVNode)(2,t.Stack,{children:V.map(function(h,N){return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,width:"15%",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"cog",selected:v===h,content:h,onClick:function(){function y(){return s("amount",{amount:h})}return y}()})},N)})})})]})})})},p=function(m,d){for(var u=(0,a.useBackend)(d),s=u.act,i=u.data,v=i.chemicals,g=v===void 0?[]:v,C=[],h=0;h<(g.length+1)%3;h++)C.push(!0);return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:i.glass?"Drink Dispenser":"Chemical Dispenser",children:[g.map(function(N,y){return(0,e.createComponentVNode)(2,t.Button,{m:.1,width:"32.5%",icon:"arrow-circle-down",overflow:"hidden",textOverflow:"ellipsis",content:N.title,style:{"margin-left":"2px"},onClick:function(){function B(){return s("dispense",{reagent:N.id})}return B}()},y)}),C.map(function(N,y){return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,basis:"25%"},y)})]})})},l=function(m,d){var u=(0,a.useBackend)(d),s=u.act,i=u.data,v=i.isBeakerLoaded,g=i.beakerCurrentVolume,C=i.beakerMaxVolume,h=i.beakerContents,N=h===void 0?[]:h;return(0,e.createComponentVNode)(2,t.Stack.Item,{height:16,children:(0,e.createComponentVNode)(2,t.Section,{title:i.glass?"Glass":"Beaker",fill:!0,scrollable:!0,buttons:(0,e.createComponentVNode)(2,t.Box,{children:[!!v&&(0,e.createComponentVNode)(2,t.Box,{inline:!0,color:"label",mr:2,children:[g," / ",C," units"]}),(0,e.createComponentVNode)(2,t.Button,{icon:"eject",content:"Eject",disabled:!v,onClick:function(){function y(){return s("ejectBeaker")}return y}()})]}),children:(0,e.createComponentVNode)(2,o.BeakerContents,{beakerLoaded:v,beakerContents:N,buttons:function(){function y(B){return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{content:"Isolate",icon:"compress-arrows-alt",onClick:function(){function I(){return s("remove",{reagent:B.id,amount:-1})}return I}()}),k.map(function(I,w){return(0,e.createComponentVNode)(2,t.Button,{content:I,onClick:function(){function T(){return s("remove",{reagent:B.id,amount:I})}return T}()},w)}),(0,e.createComponentVNode)(2,t.Button,{content:"ALL",onClick:function(){function I(){return s("remove",{reagent:B.id,amount:B.volume})}return I}()})],0)}return y}()})})})}},27004:function(L,r,n){"use strict";r.__esModule=!0,r.ChemHeater=void 0;var e=n(96524),a=n(36121),t=n(17899),o=n(24674),f=n(1496),V=n(45493),k=r.ChemHeater=function(){function p(l,c){return(0,e.createComponentVNode)(2,V.Window,{width:350,height:275,children:(0,e.createComponentVNode)(2,V.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,S),(0,e.createComponentVNode)(2,b)]})})})}return p}(),S=function(l,c){var m=(0,t.useBackend)(c),d=m.act,u=m.data,s=u.targetTemp,i=u.targetTempReached,v=u.autoEject,g=u.isActive,C=u.currentTemp,h=u.isBeakerLoaded;return(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,title:"Settings",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{content:"Auto-eject",icon:v?"toggle-on":"toggle-off",selected:v,onClick:function(){function N(){return d("toggle_autoeject")}return N}()}),(0,e.createComponentVNode)(2,o.Button,{content:g?"On":"Off",icon:"power-off",selected:g,disabled:!h,onClick:function(){function N(){return d("toggle_on")}return N}()})],4),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Target",children:(0,e.createComponentVNode)(2,o.NumberInput,{width:"65px",unit:"K",step:10,stepPixelSize:3,value:(0,a.round)(s,0),minValue:0,maxValue:1e3,onDrag:function(){function N(y,B){return d("adjust_temperature",{target:B})}return N}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Reading",color:i?"good":"average",children:h&&(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:C,format:function(){function N(y){return(0,a.toFixed)(y)+" K"}return N}()})||"\u2014"})]})})})},b=function(l,c){var m=(0,t.useBackend)(c),d=m.act,u=m.data,s=u.isBeakerLoaded,i=u.beakerCurrentVolume,v=u.beakerMaxVolume,g=u.beakerContents;return(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{title:"Beaker",fill:!0,scrollable:!0,buttons:!!s&&(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,o.Box,{inline:!0,color:"label",mr:2,children:[i," / ",v," units"]}),(0,e.createComponentVNode)(2,o.Button,{icon:"eject",content:"Eject",onClick:function(){function C(){return d("eject_beaker")}return C}()})]}),children:(0,e.createComponentVNode)(2,f.BeakerContents,{beakerLoaded:s,beakerContents:g})})})}},41099:function(L,r,n){"use strict";r.__esModule=!0,r.ChemMaster=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=n(1496),V=n(99665),k=n(28234),S=["icon"];function b(I,w){if(I==null)return{};var T={},A=Object.keys(I),x,E;for(E=0;E=0)&&(T[x]=I[x]);return T}function p(I,w){I.prototype=Object.create(w.prototype),I.prototype.constructor=I,l(I,w)}function l(I,w){return l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function T(A,x){return A.__proto__=x,A}return T}(),l(I,w)}var c=[1,5,10],m=function(w,T){var A=(0,a.useBackend)(T),x=A.act,E=A.data,M=w.args.analysis;return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:E.condi?"Condiment Analysis":"Reagent Analysis",children:(0,e.createComponentVNode)(2,t.Box,{mx:"0.5rem",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Name",children:M.name}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Description",children:(M.desc||"").length>0?M.desc:"N/A"}),M.blood_type&&(0,e.createFragment)([(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Blood type",children:M.blood_type}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Blood DNA",className:"LabeledList__breakContents",children:M.blood_dna})],4),!E.condi&&(0,e.createComponentVNode)(2,t.Button,{icon:E.printing?"spinner":"print",disabled:E.printing,iconSpin:!!E.printing,ml:"0.5rem",content:"Print",onClick:function(){function D(){return x("print",{idx:M.idx,beaker:w.args.beaker})}return D}()})]})})})})},d=function(I){return I[I.ToDisposals=0]="ToDisposals",I[I.ToBeaker=1]="ToBeaker",I}(d||{}),u=r.ChemMaster=function(){function I(w,T){return(0,e.createComponentVNode)(2,o.Window,{width:575,height:650,children:[(0,e.createComponentVNode)(2,V.ComplexModal),(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,s),(0,e.createComponentVNode)(2,i),(0,e.createComponentVNode)(2,v),(0,e.createComponentVNode)(2,B)]})})]})}return I}(),s=function(w,T){var A=(0,a.useBackend)(T),x=A.act,E=A.data,M=E.beaker,D=E.beaker_reagents,P=E.buffer_reagents,R=P.length>0;return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Beaker",fill:!0,scrollable:!0,buttons:R?(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"eject",disabled:!M,content:"Eject and Clear Buffer",onClick:function(){function j(){return x("eject")}return j}()}):(0,e.createComponentVNode)(2,t.Button,{icon:"eject",disabled:!M,content:"Eject and Clear Buffer",onClick:function(){function j(){return x("eject")}return j}()}),children:M?(0,e.createComponentVNode)(2,f.BeakerContents,{beakerLoaded:!0,beakerContents:D,buttons:function(){function j(F,U){return(0,e.createComponentVNode)(2,t.Box,{mb:U0?(0,e.createComponentVNode)(2,f.BeakerContents,{beakerLoaded:!0,beakerContents:D,buttons:function(){function P(R,j){return(0,e.createComponentVNode)(2,t.Box,{mb:j0&&(R=P.map(function(j){var F=j.id,U=j.sprite;return(0,e.createComponentVNode)(2,N,{icon:U,color:"translucent",onClick:function(){function _(){return x("set_sprite_style",{production_mode:M,style:F})}return _}(),selected:D===F},F)})),(0,e.createComponentVNode)(2,h,{productionData:w.productionData,children:R&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Style",children:R})})},B=function(w,T){var A=(0,a.useBackend)(T),x=A.act,E=A.data,M=E.loaded_pill_bottle_style,D=E.containerstyles,P=E.loaded_pill_bottle,R={width:"20px",height:"20px"},j=D.map(function(F){var U=F.color,_=F.name,z=M===U;return(0,e.createComponentVNode)(2,t.Button,{style:{position:"relative",width:R.width,height:R.height},onClick:function(){function G(){return x("set_container_style",{style:U})}return G}(),icon:z&&"check",iconStyle:{position:"relative","z-index":1},tooltip:_,tooltipPosition:"top",children:[!z&&(0,e.createVNode)(1,"div",null,null,1,{style:{display:"inline-block"}}),(0,e.createVNode)(1,"span","Button",null,1,{style:{display:"inline-block",position:"absolute",top:0,left:0,margin:0,padding:0,width:R.width,height:R.height,"background-color":U,opacity:.6,filter:"alpha(opacity=60)"}})]},U)});return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Container Customization",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"eject",disabled:!P,content:"Eject Container",onClick:function(){function F(){return x("ejectp")}return F}()}),children:P?(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Style",children:[(0,e.createComponentVNode)(2,t.Button,{style:{width:R.width,height:R.height},icon:"tint-slash",onClick:function(){function F(){return x("clear_container_style")}return F}(),selected:!M,tooltip:"Default",tooltipPosition:"top"}),j]})}):(0,e.createComponentVNode)(2,t.Box,{color:"label",children:"No pill bottle or patch pack loaded."})})})};(0,V.modalRegisterBodyOverride)("analyze",m)},51327:function(L,r,n){"use strict";r.__esModule=!0,r.CloningConsole=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=n(17442),V=1,k=32,S=128,b=r.CloningConsole=function(){function u(s,i){var v=(0,a.useBackend)(i),g=v.act,C=v.data,h=C.tab,N=C.has_scanner,y=C.pod_amount;return(0,e.createComponentVNode)(2,o.Window,{width:640,height:520,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,t.Section,{title:"Cloning Console",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Connected scanner",children:N?"Online":"Missing"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Connected pods",children:y})]})}),(0,e.createComponentVNode)(2,t.Tabs,{children:[(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:h===1,icon:"home",onClick:function(){function B(){return g("menu",{tab:1})}return B}(),children:"Main Menu"}),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:h===2,icon:"user",onClick:function(){function B(){return g("menu",{tab:2})}return B}(),children:"Damage Configuration"})]}),(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,p)})]})})}return u}(),p=function(s,i){var v=(0,a.useBackend)(i),g=v.data,C=g.tab,h;return C===1?h=(0,e.createComponentVNode)(2,l):C===2&&(h=(0,e.createComponentVNode)(2,c)),h},l=function(s,i){var v=(0,a.useBackend)(i),g=v.act,C=v.data,h=C.pods,N=C.pod_amount,y=C.selected_pod_UID;return(0,e.createComponentVNode)(2,t.Box,{children:[!N&&(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"Notice: No pods connected."}),!!N&&h.map(function(B,I){return(0,e.createComponentVNode)(2,t.Section,{layer:2,title:"Pod "+(I+1),children:(0,e.createComponentVNode)(2,t.Stack,{textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{basis:"96px",shrink:0,children:[(0,e.createVNode)(1,"img",null,null,1,{src:(0,f.resolveAsset)("pod_"+(B.cloning?"cloning":"idle")+".gif"),style:{width:"100%","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createComponentVNode)(2,t.Button,{selected:y===B.uid,onClick:function(){function w(){return g("select_pod",{uid:B.uid})}return w}(),children:"Select"})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Progress",children:[!B.cloning&&(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"Pod is inactive."}),!!B.cloning&&(0,e.createComponentVNode)(2,t.ProgressBar,{value:B.clone_progress,maxValue:100,color:"good"})]}),(0,e.createComponentVNode)(2,t.LabeledList.Divider),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Biomass",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:B.biomass,ranges:{good:[2*B.biomass_storage_capacity/3,B.biomass_storage_capacity],average:[B.biomass_storage_capacity/3,2*B.biomass_storage_capacity/3],bad:[0,B.biomass_storage_capacity/3]},minValue:0,maxValue:B.biomass_storage_capacity,children:[B.biomass,"/",B.biomass_storage_capacity+" ("+100*B.biomass/B.biomass_storage_capacity+"%)"]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Sanguine Reagent",children:B.sanguine_reagent}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Osseous Reagent",children:B.osseous_reagent})]})})]})},B)})]})},c=function(s,i){var v=(0,a.useBackend)(i),g=v.act,C=v.data,h=C.selected_pod_data,N=C.has_scanned,y=C.scanner_has_patient,B=C.feedback,I=C.scan_successful,w=C.cloning_cost,T=C.has_scanner;return(0,e.createComponentVNode)(2,t.Box,{children:[!T&&(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"Notice: No scanner connected."}),!!T&&(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Section,{layer:2,title:"Scanner Info",buttons:(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"hourglass-half",onClick:function(){function A(){return g("scan")}return A}(),children:"Scan"}),(0,e.createComponentVNode)(2,t.Button,{icon:"eject",onClick:function(){function A(){return g("eject")}return A}(),children:"Eject Patient"})]}),children:[!N&&(0,e.createComponentVNode)(2,t.Box,{color:"average",children:y?"No scan detected for current patient.":"No patient is in the scanner."}),!!N&&(0,e.createComponentVNode)(2,t.Box,{color:B.color,children:B.text})]}),(0,e.createComponentVNode)(2,t.Section,{layer:2,title:"Damages Breakdown",children:(0,e.createComponentVNode)(2,t.Box,{children:[(!I||!N)&&(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"No valid scan detected."}),!!I&&!!N&&(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function A(){return g("fix_all")}return A}(),children:"Repair All Damages"}),(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function A(){return g("fix_none")}return A}(),children:"Repair No Damages"})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:1}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function A(){return g("clone")}return A}(),children:"Clone"})})]}),(0,e.createComponentVNode)(2,t.Stack,{height:"25px",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"40%",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:w[0],maxValue:h.biomass_storage_capacity,ranges:{bad:[2*h.biomass_storage_capacity/3,h.biomass_storage_capacity],average:[h.biomass_storage_capacity/3,2*h.biomass_storage_capacity/3],good:[0,h.biomass_storage_capacity/3]},color:w[0]>h.biomass?"bad":null,children:["Biomass: ",w[0],"/",h.biomass,"/",h.biomass_storage_capacity]})}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:"30%",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:w[1],maxValue:h.max_reagent_capacity,ranges:{bad:[2*h.max_reagent_capacity/3,h.max_reagent_capacity],average:[h.max_reagent_capacity/3,2*h.max_reagent_capacity/3],good:[0,h.max_reagent_capacity/3]},color:w[1]>h.sanguine_reagent?"bad":"good",children:["Sanguine: ",w[1],"/",h.sanguine_reagent,"/",h.max_reagent_capacity]})}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:"30%",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:w[2],maxValue:h.max_reagent_capacity,ranges:{bad:[2*h.max_reagent_capacity/3,h.max_reagent_capacity],average:[h.max_reagent_capacity/3,2*h.max_reagent_capacity/3],good:[0,h.max_reagent_capacity/3]},color:w[2]>h.osseous_reagent?"bad":"good",children:["Osseous: ",w[2],"/",h.osseous_reagent,"/",h.max_reagent_capacity]})})]}),(0,e.createComponentVNode)(2,m),(0,e.createComponentVNode)(2,d)]})]})})]})]})},m=function(s,i){var v=(0,a.useBackend)(i),g=v.act,C=v.data,h=C.patient_limb_data,N=C.limb_list,y=C.desired_limb_data;return(0,e.createComponentVNode)(2,t.Collapsible,{title:"Limbs",children:N.map(function(B,I){return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Stack,{align:"baseline",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{color:"label",width:"15%",height:"20px",children:[h[B][4],":"," "]}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:1}),h[B][3]===0&&(0,e.createComponentVNode)(2,t.Stack.Item,{width:"60%",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:y[B][0]+y[B][1],maxValue:h[B][5],ranges:{good:[0,h[B][5]/3],average:[h[B][5]/3,2*h[B][5]/3],bad:[2*h[B][5]/3,h[B][5]]},children:["Post-Cloning Damage: ",(0,e.createComponentVNode)(2,t.Icon,{name:"bone"})," "+y[B][0]+" / ",(0,e.createComponentVNode)(2,t.Icon,{name:"fire"})," "+y[B][1]]})}),h[B][3]!==0&&(0,e.createComponentVNode)(2,t.Stack.Item,{width:"60%",children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:"bad",value:0,children:["The patient's ",h[B][4]," is missing!"]})})]}),(0,e.createComponentVNode)(2,t.Stack,{children:[!!h[B][3]&&(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:!y[B][3],onClick:function(){function w(){return g("toggle_limb_repair",{limb:B,type:"replace"})}return w}(),children:"Replace Limb"})}),!h[B][3]&&(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button.Checkbox,{disabled:!(h[B][0]||h[B][1]),checked:!(y[B][0]||y[B][1]),onClick:function(){function w(){return g("toggle_limb_repair",{limb:B,type:"damage"})}return w}(),children:"Repair Damages"}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{disabled:!(h[B][2]&V),checked:!(y[B][2]&V),onClick:function(){function w(){return g("toggle_limb_repair",{limb:B,type:"bone"})}return w}(),children:"Mend Bone"}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{disabled:!(h[B][2]&k),checked:!(y[B][2]&k),onClick:function(){function w(){return g("toggle_limb_repair",{limb:B,type:"ib"})}return w}(),children:"Mend IB"}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{disabled:!(h[B][2]&S),checked:!(y[B][2]&S),onClick:function(){function w(){return g("toggle_limb_repair",{limb:B,type:"critburn"})}return w}(),children:"Mend Critical Burn"})]})]})]},B)})})},d=function(s,i){var v=(0,a.useBackend)(i),g=v.act,C=v.data,h=C.patient_organ_data,N=C.organ_list,y=C.desired_organ_data;return(0,e.createComponentVNode)(2,t.Collapsible,{title:"Organs",children:N.map(function(B,I){return(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Stack,{align:"baseline",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{color:"label",width:"20%",height:"20px",children:[h[B][3],":"," "]}),h[B][5]!=="heart"&&(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Stack.Item,{children:[!!h[B][2]&&(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:!y[B][2]&&!y[B][1],onClick:function(){function w(){return g("toggle_organ_repair",{organ:B,type:"replace"})}return w}(),children:"Replace Organ"}),!h[B][2]&&(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{disabled:!h[B][0],checked:!y[B][0],onClick:function(){function w(){return g("toggle_organ_repair",{organ:B,type:"damage"})}return w}(),children:"Repair Damages"})})]})}),h[B][5]==="heart"&&(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"Heart replacement is required for cloning."}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:1}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:"35%",children:[!!h[B][2]&&(0,e.createComponentVNode)(2,t.ProgressBar,{color:"bad",value:0,children:["The patient's ",h[B][3]," is missing!"]}),!h[B][2]&&(0,e.createComponentVNode)(2,t.ProgressBar,{value:y[B][0],maxValue:h[B][4],ranges:{good:[0,h[B][4]/3],average:[h[B][4]/3,2*h[B][4]/3],bad:[2*h[B][4]/3,h[B][4]]},children:"Post-Cloning Damage: "+y[B][0]})]})]})},B)})})}},66373:function(L,r,n){"use strict";r.__esModule=!0,r.CloningPod=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.CloningPod=function(){function V(k,S){var b=(0,a.useBackend)(S),p=b.act,l=b.data,c=l.biomass,m=l.biomass_storage_capacity,d=l.sanguine_reagent,u=l.osseous_reagent,s=l.organs,i=l.currently_cloning;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:500,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,t.Section,{title:"Liquid Storage",children:[(0,e.createComponentVNode)(2,t.Stack,{height:"25px",align:"center",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{color:"label",width:"25%",children:["Biomass:"," "]}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:1,children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:c,ranges:{good:[2*m/3,m],average:[m/3,2*m/3],bad:[0,m/3]},minValue:0,maxValue:m})})]}),(0,e.createComponentVNode)(2,t.Stack,{height:"25px",align:"center",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{color:"label",width:"25%",children:["Sanguine Reagent:"," "]}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:d+" units"}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:1}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.NumberInput,{value:0,minValue:0,maxValue:d,step:1,unit:"units",onChange:function(){function v(g,C){return p("remove_reagent",{reagent:"sanguine_reagent",amount:C})}return v}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Remove All",onClick:function(){function v(){return p("purge_reagent",{reagent:"sanguine_reagent"})}return v}()})})]}),(0,e.createComponentVNode)(2,t.Stack,{height:"25px",align:"center",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{color:"label",width:"25%",children:["Osseous Reagent:"," "]}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:u+" units"}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:1}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.NumberInput,{value:0,minValue:0,maxValue:u,step:1,unit:"units",onChange:function(){function v(g,C){return p("remove_reagent",{reagent:"osseous_reagent",amount:C})}return v}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Remove All",onClick:function(){function v(){return p("purge_reagent",{reagent:"osseous_reagent"})}return v}()})})]})]}),(0,e.createComponentVNode)(2,t.Section,{title:"Organ Storage",children:[!i&&(0,e.createComponentVNode)(2,t.Box,{children:[!s&&(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"Notice: No organs loaded."}),!!s&&s.map(function(v){return(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:v.name}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:1}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Eject",onClick:function(){function g(){return p("eject_organ",{organ_ref:v.ref})}return g}()})})]},v)})]}),!!i&&(0,e.createComponentVNode)(2,t.Stack,{height:"100%",children:(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,grow:"1",textAlign:"center",align:"center",color:"label",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"lock",size:"5",mb:3}),(0,e.createVNode)(1,"br"),"Unable to access organ storage while cloning."]})})]})]})})}return V}()},38781:function(L,r,n){"use strict";r.__esModule=!0,r.CoinMint=void 0;var e=n(96524),a=n(28234),t=n(17899),o=n(24674),f=n(45493),V=r.CoinMint=function(){function k(S,b){var p=(0,t.useBackend)(b),l=p.act,c=p.data,m=c.materials,d=c.moneyBag,u=c.moneyBagContent,s=c.moneyBagMaxContent,i=(d?210:138)+Math.ceil(m.length/4)*64;return(0,e.createComponentVNode)(2,f.Window,{width:210,height:i,children:(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.NoticeBox,{m:0,info:!0,children:["Total coins produced: ",c.totalCoins]})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,title:"Coin Type",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"power-off",color:c.active&&"bad",tooltip:!d&&"Need a money bag",disabled:!d,onClick:function(){function v(){return l("activate")}return v}()}),children:(0,e.createComponentVNode)(2,o.Stack,{vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.ProgressBar,{minValue:0,maxValue:c.maxMaterials,value:c.totalMaterials})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{icon:"eject",tooltip:"Eject selected material",onClick:function(){function v(){return l("ejectMat")}return v}()})})]})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:m.map(function(v){return(0,e.createComponentVNode)(2,o.Button,{bold:!0,inline:!0,m:.2,textAlign:"center",color:"translucent",selected:v.id===c.chosenMaterial,tooltip:v.name,content:(0,e.createComponentVNode)(2,o.Stack,{vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{className:(0,a.classes)(["materials32x32",v.id])}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:v.amount})]}),onClick:function(){function g(){return l("selectMaterial",{material:v.id})}return g}()},v.id)})})]})})}),!!d&&(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Section,{title:"Money Bag",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"eject",content:"Eject",disabled:c.active,onClick:function(){function v(){return l("ejectBag")}return v}()}),children:(0,e.createComponentVNode)(2,o.ProgressBar,{width:"100%",minValue:0,maxValue:s,value:u,children:[u," / ",s]})})})]})})})}return k}()},11866:function(L,r,n){"use strict";r.__esModule=!0,r.ColourMatrixTester=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.ColourMatrixTester=function(){function V(k,S){var b=(0,a.useBackend)(S),p=b.act,l=b.data,c=l.colour_data,m=[[{name:"RR",idx:0},{name:"RG",idx:1},{name:"RB",idx:2},{name:"RA",idx:3}],[{name:"GR",idx:4},{name:"GG",idx:5},{name:"GB",idx:6},{name:"GA",idx:7}],[{name:"BR",idx:8},{name:"BG",idx:9},{name:"BB",idx:10},{name:"BA",idx:11}],[{name:"AR",idx:12},{name:"AG",idx:13},{name:"AB",idx:14},{name:"AA",idx:15}]];return(0,e.createComponentVNode)(2,o.Window,{width:360,height:190,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Modify Matrix",children:m.map(function(d){return(0,e.createComponentVNode)(2,t.Stack,{textAlign:"center",textColor:"label",children:d.map(function(u){return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,mt:1,children:[u.name,":\xA0",(0,e.createComponentVNode)(2,t.NumberInput,{width:4,value:c[u.idx],step:.05,minValue:-5,maxValue:5,stepPixelSize:5,onChange:function(){function s(i,v){return p("setvalue",{idx:u.idx+1,value:v})}return s}()})]},u.name)})},d)})})})})})}return V}()},22420:function(L,r,n){"use strict";r.__esModule=!0,r.CommunicationsComputer=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=function(s){switch(s){case 1:return(0,e.createComponentVNode)(2,S);case 2:return(0,e.createComponentVNode)(2,l);case 3:return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,children:(0,e.createComponentVNode)(2,c)})});case 4:return(0,e.createComponentVNode)(2,d);default:return"ERROR. Unknown menu_state. Please contact NT Technical Support."}},V=r.CommunicationsComputer=function(){function u(s,i){var v=(0,a.useBackend)(i),g=v.act,C=v.data,h=C.menu_state;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:600,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,k),f(h)]})})})}return u}(),k=function(s,i){var v=(0,a.useBackend)(i),g=v.act,C=v.data,h=C.authenticated,N=C.noauthbutton,y=C.esc_section,B=C.esc_callable,I=C.esc_recallable,w=C.esc_status,T=C.authhead,A=C.is_ai,x=C.lastCallLoc,E=!1,M;return h?h===1?M="Command":h===2?M="Captain":h===3?M="CentComm Officer":h===4?(M="CentComm Secure Connection",E=!0):M="ERROR: Report This Bug!":M="Not Logged In",(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Authentication",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:E&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Access",children:M})||(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Actions",children:(0,e.createComponentVNode)(2,t.Button,{icon:h?"sign-out-alt":"id-card",selected:h,disabled:N,content:h?"Log Out ("+M+")":"Log In",onClick:function(){function D(){return g("auth")}return D}()})})})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:!!y&&(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Escape Shuttle",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[!!w&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:w}),!!B&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Options",children:(0,e.createComponentVNode)(2,t.Button,{icon:"rocket",content:"Call Shuttle",disabled:!T,onClick:function(){function D(){return g("callshuttle")}return D}()})}),!!I&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Options",children:(0,e.createComponentVNode)(2,t.Button,{icon:"times",content:"Recall Shuttle",disabled:!T||A,onClick:function(){function D(){return g("cancelshuttle")}return D}()})}),!!x&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Last Call/Recall From",children:x})]})})})],4)},S=function(s,i){var v=(0,a.useBackend)(i),g=v.act,C=v.data,h=C.is_admin;return h?(0,e.createComponentVNode)(2,b):(0,e.createComponentVNode)(2,p)},b=function(s,i){var v=(0,a.useBackend)(i),g=v.act,C=v.data,h=C.is_admin,N=C.gamma_armory_location,y=C.admin_levels,B=C.authenticated,I=C.ert_allowed;return(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"CentComm Actions",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Change Alert",children:(0,e.createComponentVNode)(2,m,{levels:y,required_access:h,use_confirm:1})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Announcement",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"bullhorn",content:"Make Central Announcement",disabled:!h,onClick:function(){function w(){return g("send_to_cc_announcement_page")}return w}()}),B===4&&(0,e.createComponentVNode)(2,t.Button,{icon:"plus",content:"Make Other Announcement",disabled:!h,onClick:function(){function w(){return g("make_other_announcement")}return w}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Response Team",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"ambulance",content:"Dispatch ERT",disabled:!h,onClick:function(){function w(){return g("dispatch_ert")}return w}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:I,content:I?"ERT calling enabled":"ERT calling disabled",tooltip:I?"Command can request an ERT":"ERTs cannot be requested",disabled:!h,onClick:function(){function w(){return g("toggle_ert_allowed")}return w}(),selected:null})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Nuclear Device",children:(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"bomb",content:"Get Authentication Codes",disabled:!h,onClick:function(){function w(){return g("send_nuke_codes")}return w}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Gamma Armory",children:(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"biohazard",content:N?"Send Gamma Armory":"Recall Gamma Armory",disabled:!h,onClick:function(){function w(){return g("move_gamma_armory")}return w}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Other",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"coins",content:"View Economy",disabled:!h,onClick:function(){function w(){return g("view_econ")}return w}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fax",content:"Fax Manager",disabled:!h,onClick:function(){function w(){return g("view_fax")}return w}()})]})]})}),(0,e.createComponentVNode)(2,t.Collapsible,{title:"View Command accessible controls",children:(0,e.createComponentVNode)(2,p)})]})},p=function(s,i){var v=(0,a.useBackend)(i),g=v.act,C=v.data,h=C.msg_cooldown,N=C.emagged,y=C.cc_cooldown,B=C.security_level_color,I=C.str_security_level,w=C.levels,T=C.authcapt,A=C.authhead,x=C.messages,E="Make Priority Announcement";h>0&&(E+=" ("+h+"s)");var M=N?"Message [UNKNOWN]":"Message CentComm",D="Request Authentication Codes";return y>0&&(M+=" ("+y+"s)",D+=" ("+y+"s)"),(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Captain-Only Actions",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Current Alert",color:B,children:I}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Change Alert",children:(0,e.createComponentVNode)(2,m,{levels:w,required_access:T})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Announcement",children:(0,e.createComponentVNode)(2,t.Button,{icon:"bullhorn",content:E,disabled:!T||h>0,onClick:function(){function P(){return g("announce")}return P}()})}),!!N&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Transmit",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"broadcast-tower",color:"red",content:M,disabled:!T||y>0,onClick:function(){function P(){return g("MessageSyndicate")}return P}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"sync-alt",content:"Reset Relays",disabled:!T,onClick:function(){function P(){return g("RestoreBackup")}return P}()})]})||(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Transmit",children:(0,e.createComponentVNode)(2,t.Button,{icon:"broadcast-tower",content:M,disabled:!T||y>0,onClick:function(){function P(){return g("MessageCentcomm")}return P}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Nuclear Device",children:(0,e.createComponentVNode)(2,t.Button,{icon:"bomb",content:D,disabled:!T||y>0,onClick:function(){function P(){return g("nukerequest")}return P}()})})]})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Command Staff Actions",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Displays",children:(0,e.createComponentVNode)(2,t.Button,{icon:"tv",content:"Change Status Displays",disabled:!A,onClick:function(){function P(){return g("status")}return P}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Incoming Messages",children:(0,e.createComponentVNode)(2,t.Button,{icon:"folder-open",content:"View ("+x.length+")",disabled:!A,onClick:function(){function P(){return g("messagelist")}return P}()})})]})})})],4)},l=function(s,i){var v=(0,a.useBackend)(i),g=v.act,C=v.data,h=C.stat_display,N=C.authhead,y=C.current_message_title,B=h.presets.map(function(w){return(0,e.createComponentVNode)(2,t.Button,{content:w.label,selected:w.name===h.type,disabled:!N,onClick:function(){function T(){return g("setstat",{statdisp:w.name})}return T}()},w.name)}),I=h.alerts.map(function(w){return(0,e.createComponentVNode)(2,t.Button,{content:w.label,selected:w.alert===h.icon,disabled:!N,onClick:function(){function T(){return g("setstat",{statdisp:3,alert:w.alert})}return T}()},w.alert)});return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Modify Status Screens",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-circle-left",content:"Back To Main Menu",onClick:function(){function w(){return g("main")}return w}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Presets",children:B}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Alerts",children:I}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Message Line 1",children:(0,e.createComponentVNode)(2,t.Button,{icon:"pencil-alt",content:h.line_1,disabled:!N,onClick:function(){function w(){return g("setmsg1")}return w}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Message Line 2",children:(0,e.createComponentVNode)(2,t.Button,{icon:"pencil-alt",content:h.line_2,disabled:!N,onClick:function(){function w(){return g("setmsg2")}return w}()})})]})})})},c=function(s,i){var v=(0,a.useBackend)(i),g=v.act,C=v.data,h=C.authhead,N=C.current_message_title,y=C.current_message,B=C.messages,I=C.security_level,w;if(N)w=(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:N,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"times",content:"Return To Message List",disabled:!h,onClick:function(){function A(){return g("messagelist")}return A}()}),children:(0,e.createComponentVNode)(2,t.Box,{children:y})})});else{var T=B.map(function(A){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:A.title,children:[(0,e.createComponentVNode)(2,t.Button,{icon:"eye",content:"View",disabled:!h||N===A.title,onClick:function(){function x(){return g("messagelist",{msgid:A.id})}return x}()}),(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"times",content:"Delete",disabled:!h,onClick:function(){function x(){return g("delmessage",{msgid:A.id})}return x}()})]},A.id)});w=(0,e.createComponentVNode)(2,t.Section,{title:"Messages Received",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-circle-left",content:"Back To Main Menu",onClick:function(){function A(){return g("main")}return A}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:T})})}return(0,e.createComponentVNode)(2,t.Box,{children:w})},m=function(s,i){var v=(0,a.useBackend)(i),g=v.act,C=v.data,h=s.levels,N=s.required_access,y=s.use_confirm,B=C.security_level;return y?h.map(function(I){return(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:I.icon,content:I.name,disabled:!N||I.id===B,tooltip:I.tooltip,onClick:function(){function w(){return g("newalertlevel",{level:I.id})}return w}()},I.name)}):h.map(function(I){return(0,e.createComponentVNode)(2,t.Button,{icon:I.icon,content:I.name,disabled:!N||I.id===B,tooltip:I.tooltip,onClick:function(){function w(){return g("newalertlevel",{level:I.id})}return w}()},I.name)})},d=function(s,i){var v=(0,a.useBackend)(i),g=v.act,C=v.data,h=C.is_admin,N=C.possible_cc_sounds;if(!h)return g("main");var y=(0,a.useLocalState)(i,"subtitle",""),B=y[0],I=y[1],w=(0,a.useLocalState)(i,"text",""),T=w[0],A=w[1],x=(0,a.useLocalState)(i,"classified",0),E=x[0],M=x[1],D=(0,a.useLocalState)(i,"beepsound","Beep"),P=D[0],R=D[1];return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Central Command Report",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-circle-left",content:"Back To Main Menu",onClick:function(){function j(){return g("main")}return j}()}),children:[(0,e.createComponentVNode)(2,t.Input,{placeholder:"Enter Subtitle here.",fluid:!0,value:B,onChange:function(){function j(F,U){return I(U)}return j}(),mb:"5px"}),(0,e.createComponentVNode)(2,t.Input,{placeholder:"Enter Announcement here,\nMultiline input is accepted.",rows:10,fluid:!0,multiline:1,value:T,onChange:function(){function j(F,U){return A(U)}return j}()}),(0,e.createComponentVNode)(2,t.Button.Confirm,{content:"Send Announcement",fluid:!0,icon:"paper-plane",center:!0,mt:"5px",textAlign:"center",onClick:function(){function j(){return g("make_cc_announcement",{subtitle:B,text:T,classified:E,beepsound:P})}return j}()}),(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Dropdown,{width:"260px",height:"20px",options:N,selected:P,onSelected:function(){function j(F){return R(F)}return j}(),disabled:E})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"volume-up",mx:"5px",disabled:E,tooltip:"Test sound",onClick:function(){function j(){return g("test_sound",{sound:P})}return j}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:E,content:"Classified",fluid:!0,tooltip:E?"Sent to station communications consoles":"Publically announced",onClick:function(){function j(){return M(!E)}return j}()})})]})]})})}},46868:function(L,r,n){"use strict";r.__esModule=!0,r.CompostBin=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.CompostBin=function(){function V(k,S){var b=(0,a.useBackend)(S),p=b.act,l=b.data,c=l.biomass,m=l.compost,d=l.biomass_capacity,u=l.compost_capacity,s=l.potassium,i=l.potassium_capacity,v=l.potash,g=l.potash_capacity,C=(0,a.useSharedState)(S,"vendAmount",1),h=C[0],N=C[1];return(0,e.createComponentVNode)(2,o.Window,{width:360,height:250,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Section,{label:"Resources",children:(0,e.createComponentVNode)(2,t.Stack,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Biomass",children:(0,e.createComponentVNode)(2,t.ProgressBar,{ml:.5,mt:1,width:20,value:c,minValue:0,maxValue:d,ranges:{good:[d*.5,1/0],average:[d*.25,d*.5],bad:[-1/0,d*.25]},children:[c," / ",d," Units"]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Compost",children:(0,e.createComponentVNode)(2,t.ProgressBar,{ml:.5,mt:1,width:20,value:m,minValue:0,maxValue:u,ranges:{good:[u*.5,1/0],average:[u*.25,u*.5],bad:[-1/0,u*.25]},children:[m," / ",u," Units"]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Potassium",children:(0,e.createComponentVNode)(2,t.ProgressBar,{ml:.5,mt:1,width:20,value:s,minValue:0,maxValue:i,ranges:{good:[i*.5,1/0],average:[i*.25,i*.5],bad:[-1/0,i*.25]},children:[s," / ",i," Units"]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Potash",children:(0,e.createComponentVNode)(2,t.ProgressBar,{ml:.5,mt:1,width:20,value:v,minValue:0,maxValue:g,ranges:{good:[g*.5,1/0],average:[g*.25,g*.5],bad:[-1/0,g*.25]},children:[v," / ",g," Units"]})})]})})}),(0,e.createComponentVNode)(2,t.Section,{title:"Controls",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{inline:!0,mr:"5px",color:"silver",children:"Soil clumps to make:"}),(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,value:h,width:"32px",minValue:1,maxValue:10,stepPixelSize:7,onChange:function(){function y(B,I){return N(I)}return y}()})],4),children:(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,align:"center",content:"Make Soil",disabled:m<25*h,icon:"arrow-circle-down",onClick:function(){function y(){return p("create",{amount:h})}return y}()})})})]})})})}return V}()},64707:function(L,r,n){"use strict";r.__esModule=!0,r.Contractor=void 0;var e=n(96524),a=n(36121),t=n(17899),o=n(24674),f=n(99509),V=n(45493);function k(g,C){g.prototype=Object.create(C.prototype),g.prototype.constructor=g,S(g,C)}function S(g,C){return S=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function h(N,y){return N.__proto__=y,N}return h}(),S(g,C)}var b={1:["ACTIVE","good"],2:["COMPLETED","good"],3:["FAILED","bad"]},p=["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(Math.random()*2e4),"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"],l=r.Contractor=function(){function g(C,h){var N=(0,t.useBackend)(h),y=N.act,B=N.data,I;B.unauthorized?I=(0,e.createComponentVNode)(2,o.Flex.Item,{grow:"1",backgroundColor:"rgba(0, 0, 0, 0.8)",children:(0,e.createComponentVNode)(2,i,{height:"100%",allMessages:["ERROR: UNAUTHORIZED USER"],finishedTimeout:100,onFinished:function(){function x(){}return x}()})}):B.load_animation_completed?I=(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Flex.Item,{basis:"content",children:(0,e.createComponentVNode)(2,c)}),(0,e.createComponentVNode)(2,o.Flex.Item,{basis:"content",mt:"0.5rem",children:(0,e.createComponentVNode)(2,m)}),(0,e.createComponentVNode)(2,o.Flex.Item,{grow:"1",overflow:"hidden",children:B.page===1?(0,e.createComponentVNode)(2,d,{height:"100%"}):(0,e.createComponentVNode)(2,s,{height:"100%"})})],4):I=(0,e.createComponentVNode)(2,o.Flex.Item,{grow:"1",backgroundColor:"rgba(0, 0, 0, 0.8)",children:(0,e.createComponentVNode)(2,i,{height:"100%",allMessages:p,finishedTimeout:3e3,onFinished:function(){function x(){return y("complete_load_animation")}return x}()})});var w=(0,t.useLocalState)(h,"viewingPhoto",""),T=w[0],A=w[1];return(0,e.createComponentVNode)(2,V.Window,{theme:"syndicate",width:500,height:600,children:[T&&(0,e.createComponentVNode)(2,v),(0,e.createComponentVNode)(2,V.Window.Content,{className:"Contractor",children:(0,e.createComponentVNode)(2,o.Flex,{direction:"column",height:"100%",children:I})})]})}return g}(),c=function(C,h){var N=(0,t.useBackend)(h),y=N.act,B=N.data,I=B.tc_available,w=B.tc_paid_out,T=B.completed_contracts,A=B.rep;return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Section,Object.assign({title:"Summary",buttons:(0,e.createComponentVNode)(2,o.Box,{verticalAlign:"middle",mt:"0.25rem",children:[A," Rep"]})},C,{children:(0,e.createComponentVNode)(2,o.Flex,{children:[(0,e.createComponentVNode)(2,o.Box,{flexBasis:"50%",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"TC Available",verticalAlign:"middle",children:(0,e.createComponentVNode)(2,o.Flex,{align:"center",children:[(0,e.createComponentVNode)(2,o.Flex.Item,{grow:"1",children:[I," TC"]}),(0,e.createComponentVNode)(2,o.Button,{disabled:I<=0,content:"Claim",mx:"0.75rem",mb:"0",flexBasis:"content",onClick:function(){function x(){return y("claim")}return x}()})]})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"TC Earned",children:[w," TC"]})]})}),(0,e.createComponentVNode)(2,o.Box,{flexBasis:"50%",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Contracts Completed",verticalAlign:"middle",children:(0,e.createComponentVNode)(2,o.Box,{height:"20px",lineHeight:"20px",inline:!0,children:T})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Contractor Status",verticalAlign:"middle",children:"ACTIVE"})]})})]})})))},m=function(C,h){var N=(0,t.useBackend)(h),y=N.act,B=N.data,I=B.page;return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Tabs,Object.assign({},C,{children:[(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:I===1,onClick:function(){function w(){return y("page",{page:1})}return w}(),children:[(0,e.createComponentVNode)(2,o.Icon,{name:"suitcase"}),"Contracts"]}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:I===2,onClick:function(){function w(){return y("page",{page:2})}return w}(),children:[(0,e.createComponentVNode)(2,o.Icon,{name:"shopping-cart"}),"Hub"]})]})))},d=function(C,h){var N=(0,t.useBackend)(h),y=N.act,B=N.data,I=B.contracts,w=B.contract_active,T=B.can_extract,A=!!w&&I.filter(function(P){return P.status===1})[0],x=A&&A.time_left>0,E=(0,t.useLocalState)(h,"viewingPhoto",""),M=E[0],D=E[1];return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Section,Object.assign({title:"Available Contracts",overflow:"auto",buttons:(0,e.createComponentVNode)(2,o.Button,{disabled:!T||x,icon:"parachute-box",content:["Call Extraction",x&&(0,e.createComponentVNode)(2,f.Countdown,{timeLeft:A.time_left,format:function(){function P(R,j){return" ("+j.substr(3)+")"}return P}()})],onClick:function(){function P(){return y("extract")}return P}()})},C,{children:I.slice().sort(function(P,R){return P.status===1?-1:R.status===1?1:P.status-R.status}).map(function(P){var R;return(0,e.createComponentVNode)(2,o.Section,{title:(0,e.createComponentVNode)(2,o.Flex,{children:[(0,e.createComponentVNode)(2,o.Flex.Item,{grow:"1",color:P.status===1&&"good",children:P.target_name}),(0,e.createComponentVNode)(2,o.Flex.Item,{basis:"content",children:P.has_photo&&(0,e.createComponentVNode)(2,o.Button,{icon:"camera",mb:"-0.5rem",ml:"0.5rem",onClick:function(){function j(){return D("target_photo_"+P.uid+".png")}return j}()})})]}),className:"Contractor__Contract",buttons:(0,e.createComponentVNode)(2,o.Box,{width:"100%",children:[!!b[P.status]&&(0,e.createComponentVNode)(2,o.Box,{color:b[P.status][1],inline:!0,mt:P.status!==1&&"0.125rem",mr:"0.25rem",lineHeight:"20px",children:b[P.status][0]}),P.status===1&&(0,e.createComponentVNode)(2,o.Button.Confirm,{icon:"ban",color:"bad",content:"Abort",ml:"0.5rem",onClick:function(){function j(){return y("abort")}return j}()})]}),children:(0,e.createComponentVNode)(2,o.Flex,{children:[(0,e.createComponentVNode)(2,o.Flex.Item,{grow:"2",mr:"0.5rem",children:[P.fluff_message,!!P.completed_time&&(0,e.createComponentVNode)(2,o.Box,{color:"good",children:[(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,o.Icon,{name:"check",mr:"0.5rem"}),"Contract completed at ",P.completed_time]}),!!P.dead_extraction&&(0,e.createComponentVNode)(2,o.Box,{color:"bad",mt:"0.5rem",bold:!0,children:[(0,e.createComponentVNode)(2,o.Icon,{name:"exclamation-triangle",mr:"0.5rem"}),"Telecrystals reward reduced drastically as the target was dead during extraction."]}),!!P.fail_reason&&(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:[(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,o.Icon,{name:"times",mr:"0.5rem"}),"Contract failed: ",P.fail_reason]})]}),(0,e.createComponentVNode)(2,o.Flex.Item,{flexBasis:"100%",children:[(0,e.createComponentVNode)(2,o.Flex,{mb:"0.5rem",color:"label",children:["Extraction Zone:\xA0",u(P)]}),(R=P.difficulties)==null?void 0:R.map(function(j,F){return(0,e.createComponentVNode)(2,o.Button.Confirm,{disabled:!!w,content:j.name+" ("+j.reward+" TC)",onClick:function(){function U(){return y("activate",{uid:P.uid,difficulty:F+1})}return U}()},F)}),!!P.objective&&(0,e.createComponentVNode)(2,o.Box,{color:"white",bold:!0,children:[P.objective.extraction_name,(0,e.createVNode)(1,"br"),"(",(P.objective.rewards.tc||0)+" TC",",\xA0",(P.objective.rewards.credits||0)+" Credits",")"]})]})]})},P.uid)})})))},u=function(C){if(!(!C.objective||C.status>1)){var h=C.objective.locs.user_area_id,N=C.objective.locs.user_coords,y=C.objective.locs.target_area_id,B=C.objective.locs.target_coords,I=h===y;return(0,e.createComponentVNode)(2,o.Flex.Item,{children:(0,e.createComponentVNode)(2,o.Icon,{name:I?"dot-circle-o":"arrow-alt-circle-right-o",color:I?"green":"yellow",rotation:I?null:-(0,a.rad2deg)(Math.atan2(B[1]-N[1],B[0]-N[0])),lineHeight:I?null:"0.85",size:"1.5"})})}},s=function(C,h){var N=(0,t.useBackend)(h),y=N.act,B=N.data,I=B.rep,w=B.buyables;return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Section,Object.assign({title:"Available Purchases",overflow:"auto"},C,{children:w.map(function(T){return(0,e.createComponentVNode)(2,o.Section,{title:T.name,children:[T.description,(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,o.Button.Confirm,{disabled:I-1&&(0,e.createComponentVNode)(2,o.Box,{as:"span",color:T.stock===0?"bad":"good",ml:"0.5rem",children:[T.stock," in stock"]})]},T.uid)})})))},i=function(g){function C(N){var y;return y=g.call(this,N)||this,y.timer=null,y.state={currentIndex:0,currentDisplay:[]},y}k(C,g);var h=C.prototype;return h.tick=function(){function N(){var y=this.props,B=this.state;if(B.currentIndex<=y.allMessages.length){this.setState(function(w){return{currentIndex:w.currentIndex+1}});var I=B.currentDisplay;I.push(y.allMessages[B.currentIndex])}else clearTimeout(this.timer),setTimeout(y.onFinished,y.finishedTimeout)}return N}(),h.componentDidMount=function(){function N(){var y=this,B=this.props.linesPerSecond,I=B===void 0?2.5:B;this.timer=setInterval(function(){return y.tick()},1e3/I)}return N}(),h.componentWillUnmount=function(){function N(){clearTimeout(this.timer)}return N}(),h.render=function(){function N(){return(0,e.createComponentVNode)(2,o.Box,{m:1,children:this.state.currentDisplay.map(function(y){return(0,e.createFragment)([y,(0,e.createVNode)(1,"br")],0,y)})})}return N}(),C}(e.Component),v=function(C,h){var N=(0,t.useLocalState)(h,"viewingPhoto",""),y=N[0],B=N[1];return(0,e.createComponentVNode)(2,o.Modal,{className:"Contractor__photoZoom",children:[(0,e.createComponentVNode)(2,o.Box,{as:"img",src:y}),(0,e.createComponentVNode)(2,o.Button,{icon:"times",content:"Close",color:"grey",mt:"1rem",onClick:function(){function I(){return B("")}return I}()})]})}},52141:function(L,r,n){"use strict";r.__esModule=!0,r.ConveyorSwitch=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.ConveyorSwitch=function(){function V(k,S){var b=(0,a.useBackend)(S),p=b.act,l=b.data,c=l.slowFactor,m=l.oneWay,d=l.position;return(0,e.createComponentVNode)(2,o.Window,{width:350,height:135,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Lever position",children:d>0?"forward":d<0?"reverse":"neutral"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Allow reverse",children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:!m,onClick:function(){function u(){return p("toggleOneWay")}return u}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Slowdown factor",children:(0,e.createComponentVNode)(2,t.Flex,{children:[(0,e.createComponentVNode)(2,t.Flex.Item,{mx:"1px",children:[" ",(0,e.createComponentVNode)(2,t.Button,{icon:"angle-double-left",onClick:function(){function u(){return p("slowFactor",{value:c-5})}return u}()})," "]}),(0,e.createComponentVNode)(2,t.Flex.Item,{mx:"1px",children:[" ",(0,e.createComponentVNode)(2,t.Button,{icon:"angle-left",onClick:function(){function u(){return p("slowFactor",{value:c-1})}return u}()})," "]}),(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Slider,{width:"100px",mx:"1px",value:c,fillValue:c,minValue:1,maxValue:50,step:1,format:function(){function u(s){return s+"x"}return u}(),onChange:function(){function u(s,i){return p("slowFactor",{value:i})}return u}()})}),(0,e.createComponentVNode)(2,t.Flex.Item,{mx:"1px",children:[" ",(0,e.createComponentVNode)(2,t.Button,{icon:"angle-right",onClick:function(){function u(){return p("slowFactor",{value:c+1})}return u}()})," "]}),(0,e.createComponentVNode)(2,t.Flex.Item,{mx:"1px",children:[" ",(0,e.createComponentVNode)(2,t.Button,{icon:"angle-double-right",onClick:function(){function u(){return p("slowFactor",{value:c+5})}return u}()})," "]})]})})]})})})})}return V}()},94187:function(L,r,n){"use strict";r.__esModule=!0,r.CrewMonitor=void 0;var e=n(96524),a=n(50640),t=n(78234),o=n(17899),f=n(24674),V=n(5126),k=n(38424),S=n(45493),b=function(u,s){return u.dead?"Deceased":parseInt(u.health,10)<=s?"Critical":parseInt(u.stat,10)===1?"Unconscious":"Living"},p=function(u,s){return u.dead?"red":parseInt(u.health,10)<=s?"orange":parseInt(u.stat,10)===1?"blue":"green"},l=r.CrewMonitor=function(){function d(u,s){var i=(0,o.useBackend)(s),v=i.act,g=i.data,C=(0,o.useLocalState)(s,"tabIndex",0),h=C[0],N=C[1],y=function(){function B(I){switch(I){case 0:return(0,e.createComponentVNode)(2,c);case 1:return(0,e.createComponentVNode)(2,m);default:return"WE SHOULDN'T BE HERE!"}}return B}();return(0,e.createComponentVNode)(2,S.Window,{width:800,height:600,children:(0,e.createComponentVNode)(2,S.Window.Content,{children:(0,e.createComponentVNode)(2,f.Stack,{fill:!0,vertical:!0,fillPositionedParent:!0,children:[(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Tabs,{children:[(0,e.createComponentVNode)(2,f.Tabs.Tab,{icon:"table",selected:h===0,onClick:function(){function B(){return N(0)}return B}(),children:"Data View"},"DataView"),(0,e.createComponentVNode)(2,f.Tabs.Tab,{icon:"map-marked-alt",selected:h===1,onClick:function(){function B(){return N(1)}return B}(),children:"Map View"},"MapView")]})}),y(h)]})})})}return d}(),c=function(u,s){var i=(0,o.useBackend)(s),v=i.act,g=i.data,C=(0,a.sortBy)(function(A){return A.name})(g.crewmembers||[]),h=g.possible_levels,N=g.viewing_current_z_level,y=g.is_advanced,B=(0,o.useLocalState)(s,"search",""),I=B[0],w=B[1],T=(0,t.createSearch)(I,function(A){return A.name+"|"+A.assignment+"|"+A.area});return(0,e.createComponentVNode)(2,f.Section,{fill:!0,scrollable:!0,backgroundColor:"transparent",children:[(0,e.createComponentVNode)(2,f.Stack,{children:[(0,e.createComponentVNode)(2,f.Stack.Item,{width:"100%",ml:"5px",children:(0,e.createComponentVNode)(2,f.Input,{placeholder:"Search by name, assignment or location..",width:"100%",onInput:function(){function A(x,E){return w(E)}return A}()})}),(0,e.createComponentVNode)(2,f.Stack.Item,{children:y?(0,e.createComponentVNode)(2,f.Dropdown,{mr:"5px",width:"50px",options:h,selected:N,onSelected:function(){function A(x){return v("switch_level",{new_level:x})}return A}()}):null})]}),(0,e.createComponentVNode)(2,f.Table,{m:"0.5rem",children:[(0,e.createComponentVNode)(2,f.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,f.Table.Cell,{children:"Name"}),(0,e.createComponentVNode)(2,f.Table.Cell,{children:"Status"}),(0,e.createComponentVNode)(2,f.Table.Cell,{children:"Location"})]}),C.filter(T).map(function(A){return(0,e.createComponentVNode)(2,f.Table.Row,{bold:!!A.is_command,children:[(0,e.createComponentVNode)(2,V.TableCell,{children:[A.name," (",A.assignment,")"]}),(0,e.createComponentVNode)(2,V.TableCell,{children:[(0,e.createComponentVNode)(2,f.Box,{inline:!0,color:p(A,g.critThreshold),children:b(A,g.critThreshold)}),A.sensor_type>=2||g.ignoreSensors?(0,e.createComponentVNode)(2,f.Box,{inline:!0,ml:1,children:["(",(0,e.createComponentVNode)(2,f.Box,{inline:!0,color:k.COLORS.damageType.oxy,children:A.oxy}),"|",(0,e.createComponentVNode)(2,f.Box,{inline:!0,color:k.COLORS.damageType.toxin,children:A.tox}),"|",(0,e.createComponentVNode)(2,f.Box,{inline:!0,color:k.COLORS.damageType.burn,children:A.fire}),"|",(0,e.createComponentVNode)(2,f.Box,{inline:!0,color:k.COLORS.damageType.brute,children:A.brute}),")"]}):null]}),(0,e.createComponentVNode)(2,V.TableCell,{children:A.sensor_type===3||g.ignoreSensors?g.isAI||g.isObserver?(0,e.createComponentVNode)(2,f.Button,{fluid:!0,icon:"location-arrow",content:A.area+" ("+A.x+", "+A.y+")",onClick:function(){function x(){return v("track",{track:A.ref})}return x}()}):A.area+" ("+A.x+", "+A.y+")":(0,e.createComponentVNode)(2,f.Box,{inline:!0,color:"grey",children:"Not Available"})})]},A.name)})]})]})},m=function(u,s){var i=(0,o.useBackend)(s),v=i.act,g=i.data,C=(0,o.useLocalState)(s,"zoom",1),h=C[0],N=C[1];return(0,e.createComponentVNode)(2,f.Box,{height:"526px",mb:"0.5rem",overflow:"hidden",children:(0,e.createComponentVNode)(2,f.NanoMap,{onZoom:function(){function y(B){return N(B)}return y}(),children:g.crewmembers.filter(function(y){return y.sensor_type===3||g.ignoreSensors}).map(function(y){return(0,e.createComponentVNode)(2,f.NanoMap.Marker,{x:y.x,y:y.y,zoom:h,icon:"circle",tooltip:y.name+" ("+y.assignment+")",color:p(y,g.critThreshold),onClick:function(){function B(){return g.isObserver?v("track",{track:y.ref}):null}return B}()},y.ref)})})})}},60561:function(L,r,n){"use strict";r.__esModule=!0,r.Cryo=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=[{label:"Resp.",type:"oxyLoss"},{label:"Toxin",type:"toxLoss"},{label:"Brute",type:"bruteLoss"},{label:"Burn",type:"fireLoss"}],V=[["good","Conscious"],["average","Unconscious"],["bad","DEAD"]],k=r.Cryo=function(){function p(l,c){return(0,e.createComponentVNode)(2,o.Window,{width:520,height:500,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,S)})})})}return p}(),S=function(l,c){var m=(0,a.useBackend)(c),d=m.act,u=m.data,s=u.isOperating,i=u.hasOccupant,v=u.occupant,g=v===void 0?[]:v,C=u.cellTemperature,h=u.cellTemperatureStatus,N=u.isBeakerLoaded,y=u.cooldownProgress,B=u.auto_eject_healthy,I=u.auto_eject_dead;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Occupant",fill:!0,scrollable:!0,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"user-slash",onClick:function(){function w(){return d("ejectOccupant")}return w}(),disabled:!i,children:"Eject"}),children:i?(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Occupant",children:g.name||"Unknown"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Health",children:(0,e.createComponentVNode)(2,t.ProgressBar,{min:g.health,max:g.maxHealth,value:g.health/g.maxHealth,color:g.health>0?"good":"average",children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:Math.round(g.health)})})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",color:V[g.stat][0],children:V[g.stat][1]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Temperature",children:[(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:Math.round(g.bodyTemperature)})," K"]}),(0,e.createComponentVNode)(2,t.LabeledList.Divider),f.map(function(w){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:w.label,children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:g[w.type]/100,ranges:{bad:[.01,1/0]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:Math.round(g[w.type])})})},w.id)})]}):(0,e.createComponentVNode)(2,t.Stack,{fill:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,align:"center",color:"label",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,e.createVNode)(1,"br"),"No occupant detected."]})})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Cell",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"eject",onClick:function(){function w(){return d("ejectBeaker")}return w}(),disabled:!N,children:"Eject Beaker"}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power",children:(0,e.createComponentVNode)(2,t.Button,{icon:"power-off",onClick:function(){function w(){return d(s?"switchOff":"switchOn")}return w}(),selected:s,children:s?"On":"Off"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Temperature",color:h,children:[(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:C})," K"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Beaker",children:(0,e.createComponentVNode)(2,b)}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Dosage interval",children:(0,e.createComponentVNode)(2,t.ProgressBar,{ranges:{average:[-1/0,99],good:[99,1/0]},color:!N&&"average",value:y,minValue:0,maxValue:100})}),(0,e.createComponentVNode)(2,t.LabeledList.Divider),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Auto-eject healthy occupants",children:(0,e.createComponentVNode)(2,t.Button,{icon:B?"toggle-on":"toggle-off",selected:B,onClick:function(){function w(){return d(B?"auto_eject_healthy_off":"auto_eject_healthy_on")}return w}(),children:B?"On":"Off"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Auto-eject dead occupants",children:(0,e.createComponentVNode)(2,t.Button,{icon:I?"toggle-on":"toggle-off",selected:I,onClick:function(){function w(){return d(I?"auto_eject_dead_off":"auto_eject_dead_on")}return w}(),children:I?"On":"Off"})})]})})})],4)},b=function(l,c){var m=(0,a.useBackend)(c),d=m.act,u=m.data,s=u.isBeakerLoaded,i=u.beakerLabel,v=u.beakerVolume;return s?(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{inline:!0,color:!i&&"average",children:[i||"No label",":"]}),(0,e.createComponentVNode)(2,t.Box,{inline:!0,color:!v&&"bad",ml:1,children:v?(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:v,format:function(){function g(C){return Math.round(C)+" units remaining"}return g}()}):"Beaker is empty"})],4):(0,e.createComponentVNode)(2,t.Box,{inline:!0,color:"bad",children:"No beaker loaded"})}},27889:function(L,r,n){"use strict";r.__esModule=!0,r.CryopodConsole=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=n(78234),V=r.CryopodConsole=function(){function b(p,l){var c=(0,a.useBackend)(l),m=c.data,d=m.account_name,u=m.allow_items;return(0,e.createComponentVNode)(2,o.Window,{title:"Cryopod Console",width:400,height:480,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Hello, "+(d||"[REDACTED]")+"!",children:"This automated cryogenic freezing unit will safely store your corporeal form until your next assignment."}),(0,e.createComponentVNode)(2,k),!!u&&(0,e.createComponentVNode)(2,S)]})})}return b}(),k=function(p,l){var c=(0,a.useBackend)(l),m=c.data,d=m.frozen_crew;return(0,e.createComponentVNode)(2,t.Collapsible,{title:"Stored Crew",children:d.length?(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:d.map(function(u,s){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:u.name,children:u.rank},s)})})}):(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No stored crew!"})})},S=function(p,l){var c=(0,a.useBackend)(l),m=c.act,d=c.data,u=d.frozen_items,s=function(v){var g=v.toString();return g.startsWith("the ")&&(g=g.slice(4,g.length)),(0,f.toTitleCase)(g)};return(0,e.createComponentVNode)(2,t.Collapsible,{title:"Stored Items",children:u.length?(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:u.map(function(i){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:s(i.name),buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-down",content:"Drop",mr:1,onClick:function(){function v(){return m("one_item",{item:i.uid})}return v}()})},i)})})}),(0,e.createComponentVNode)(2,t.Button,{content:"Drop All Items",color:"red",onClick:function(){function i(){return m("all_items")}return i}()})],4):(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No stored items!"})})}},81434:function(L,r,n){"use strict";r.__esModule=!0,r.DNAModifier=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=n(99665),V=[["good","Alive"],["average","Critical"],["bad","DEAD"]],k=[["ui","Modify U.I.","dna"],["se","Modify S.E.","dna"],["buffer","Transfer Buffers","syringe"],["rejuvenators","Rejuvenators","flask"]],S=[5,10,20,30,50],b=r.DNAModifier=function(){function h(N,y){var B=(0,a.useBackend)(y),I=B.act,w=B.data,T=w.irradiating,A=w.dnaBlockSize,x=w.occupant;y.dnaBlockSize=A,y.isDNAInvalid=!x.isViableSubject||!x.uniqueIdentity||!x.structuralEnzymes;var E;return T&&(E=(0,e.createComponentVNode)(2,g,{duration:T})),(0,e.createComponentVNode)(2,o.Window,{width:660,height:775,children:[(0,e.createComponentVNode)(2,f.ComplexModal),E,(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,p)}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,l)})]})})]})}return h}(),p=function(N,y){var B=(0,a.useBackend)(y),I=B.act,w=B.data,T=w.locked,A=w.hasOccupant,x=w.occupant;return(0,e.createComponentVNode)(2,t.Section,{title:"Occupant",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{color:"label",inline:!0,mr:"0.5rem",children:"Door Lock:"}),(0,e.createComponentVNode)(2,t.Button,{disabled:!A,selected:T,icon:T?"toggle-on":"toggle-off",content:T?"Engaged":"Disengaged",onClick:function(){function E(){return I("toggleLock")}return E}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:!A||T,icon:"user-slash",content:"Eject",onClick:function(){function E(){return I("ejectOccupant")}return E}()})],4),children:A?(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Name",children:x.name}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Health",children:(0,e.createComponentVNode)(2,t.ProgressBar,{min:x.minHealth,max:x.maxHealth,value:x.health/x.maxHealth,ranges:{good:[.5,1/0],average:[0,.5],bad:[-1/0,0]}})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",color:V[x.stat][0],children:V[x.stat][1]}),(0,e.createComponentVNode)(2,t.LabeledList.Divider)]})}),y.isDNAInvalid?(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"exclamation-circle"}),"\xA0 The occupant's DNA structure is ruined beyond recognition, please insert a subject with an intact DNA structure."]}):(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Radiation",children:(0,e.createComponentVNode)(2,t.ProgressBar,{min:"0",max:"100",value:x.radiationLevel/100,color:"average"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Unique Enzymes",children:w.occupant.uniqueEnzymes?w.occupant.uniqueEnzymes:(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"exclamation-circle"}),"\xA0 Unknown"]})})]})],0):(0,e.createComponentVNode)(2,t.Box,{color:"label",children:"Cell unoccupied."})})},l=function(N,y){var B=(0,a.useBackend)(y),I=B.act,w=B.data,T=w.selectedMenuKey,A=w.hasOccupant,x=w.occupant;if(A){if(y.isDNAInvalid)return(0,e.createComponentVNode)(2,t.Section,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,align:"center",textAlign:"center",color:"label",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,e.createVNode)(1,"br"),"No operation possible on this subject."]})})})}else return(0,e.createComponentVNode)(2,t.Section,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,align:"center",textAlign:"center",color:"label",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,e.createVNode)(1,"br"),"No occupant in DNA modifier."]})})});var E;return T==="ui"?E=(0,e.createFragment)([(0,e.createComponentVNode)(2,c),(0,e.createComponentVNode)(2,d)],4):T==="se"?E=(0,e.createFragment)([(0,e.createComponentVNode)(2,m),(0,e.createComponentVNode)(2,d)],4):T==="buffer"?E=(0,e.createComponentVNode)(2,u):T==="rejuvenators"&&(E=(0,e.createComponentVNode)(2,v)),(0,e.createComponentVNode)(2,t.Section,{fill:!0,children:[(0,e.createComponentVNode)(2,t.Tabs,{children:k.map(function(M,D){return(0,e.createComponentVNode)(2,t.Tabs.Tab,{icon:M[2],selected:T===M[0],onClick:function(){function P(){return I("selectMenuKey",{key:M[0]})}return P}(),children:M[1]},D)})}),E]})},c=function(N,y){var B=(0,a.useBackend)(y),I=B.act,w=B.data,T=w.selectedUIBlock,A=w.selectedUISubBlock,x=w.selectedUITarget,E=w.occupant;return(0,e.createComponentVNode)(2,t.Section,{title:"Modify Unique Identifier",children:[(0,e.createComponentVNode)(2,C,{dnaString:E.uniqueIdentity,selectedBlock:T,selectedSubblock:A,blockSize:y.dnaBlockSize,action:"selectUIBlock"}),(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Target",children:(0,e.createComponentVNode)(2,t.Knob,{minValue:1,maxValue:15,stepPixelSize:"20",value:x,format:function(){function M(D){return D.toString(16).toUpperCase()}return M}(),ml:"0",onChange:function(){function M(D,P){return I("changeUITarget",{value:P})}return M}()})})}),(0,e.createComponentVNode)(2,t.Button,{icon:"radiation",content:"Irradiate Block",mt:"0.5rem",onClick:function(){function M(){return I("pulseUIRadiation")}return M}()})]})},m=function(N,y){var B=(0,a.useBackend)(y),I=B.act,w=B.data,T=w.selectedSEBlock,A=w.selectedSESubBlock,x=w.occupant;return(0,e.createComponentVNode)(2,t.Section,{title:"Modify Structural Enzymes",children:[(0,e.createComponentVNode)(2,C,{dnaString:x.structuralEnzymes,selectedBlock:T,selectedSubblock:A,blockSize:y.dnaBlockSize,action:"selectSEBlock"}),(0,e.createComponentVNode)(2,t.Button,{icon:"radiation",content:"Irradiate Block",onClick:function(){function E(){return I("pulseSERadiation")}return E}()})]})},d=function(N,y){var B=(0,a.useBackend)(y),I=B.act,w=B.data,T=w.radiationIntensity,A=w.radiationDuration;return(0,e.createComponentVNode)(2,t.Section,{title:"Radiation Emitter",children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Intensity",children:(0,e.createComponentVNode)(2,t.Knob,{minValue:1,maxValue:10,stepPixelSize:20,value:T,popUpPosition:"right",ml:"0",onChange:function(){function x(E,M){return I("radiationIntensity",{value:M})}return x}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Duration",children:(0,e.createComponentVNode)(2,t.Knob,{minValue:1,maxValue:20,stepPixelSize:10,unit:"s",value:A,popUpPosition:"right",ml:"0",onChange:function(){function x(E,M){return I("radiationDuration",{value:M})}return x}()})})]}),(0,e.createComponentVNode)(2,t.Button,{icon:"radiation",content:"Pulse Radiation",tooltip:"Mutates a random block of either the occupant's UI or SE.",tooltipPosition:"top-start",mt:"0.5rem",onClick:function(){function x(){return I("pulseRadiation")}return x}()})]})},u=function(N,y){var B=(0,a.useBackend)(y),I=B.act,w=B.data,T=w.buffers,A=T.map(function(x,E){return(0,e.createComponentVNode)(2,s,{id:E+1,name:"Buffer "+(E+1),buffer:x},E)});return(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{height:"75%",mt:1,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Buffers",children:A})}),(0,e.createComponentVNode)(2,t.Stack.Item,{height:"25%",children:(0,e.createComponentVNode)(2,i)})]})},s=function(N,y){var B=(0,a.useBackend)(y),I=B.act,w=B.data,T=N.id,A=N.name,x=N.buffer,E=w.isInjectorReady,M=A+(x.data?" - "+x.label:"");return(0,e.createComponentVNode)(2,t.Box,{backgroundColor:"rgba(0, 0, 0, 0.33)",mb:"0.5rem",children:(0,e.createComponentVNode)(2,t.Section,{title:M,mx:"0",lineHeight:"18px",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button.Confirm,{disabled:!x.data,icon:"trash",content:"Clear",onClick:function(){function D(){return I("bufferOption",{option:"clear",id:T})}return D}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:!x.data,icon:"pen",content:"Rename",onClick:function(){function D(){return I("bufferOption",{option:"changeLabel",id:T})}return D}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:!x.data||!w.hasDisk,icon:"save",content:"Export",tooltip:"Exports this buffer to the currently loaded data disk.",tooltipPosition:"bottom-start",onClick:function(){function D(){return I("bufferOption",{option:"saveDisk",id:T})}return D}()})],4),children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Write",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-circle-down",content:"Subject U.I",mb:"0",onClick:function(){function D(){return I("bufferOption",{option:"saveUI",id:T})}return D}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-circle-down",content:"Subject U.I and U.E.",mb:"0",onClick:function(){function D(){return I("bufferOption",{option:"saveUIAndUE",id:T})}return D}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-circle-down",content:"Subject S.E.",mb:"0",onClick:function(){function D(){return I("bufferOption",{option:"saveSE",id:T})}return D}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:!w.hasDisk||!w.disk.data,icon:"arrow-circle-down",content:"From Disk",mb:"0",onClick:function(){function D(){return I("bufferOption",{option:"loadDisk",id:T})}return D}()})]}),!!x.data&&(0,e.createFragment)([(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Subject",children:x.owner||(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"Unknown"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Data Type",children:[x.type==="ui"?"Unique Identifiers":"Structural Enzymes",!!x.ue&&" and Unique Enzymes"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Transfer to",children:[(0,e.createComponentVNode)(2,t.Button,{disabled:!E,icon:E?"syringe":"spinner",iconSpin:!E,content:"Injector",mb:"0",onClick:function(){function D(){return I("bufferOption",{option:"createInjector",id:T})}return D}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:!E,icon:E?"syringe":"spinner",iconSpin:!E,content:"Block Injector",mb:"0",onClick:function(){function D(){return I("bufferOption",{option:"createInjector",id:T,block:1})}return D}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"user",content:"Subject",mb:"0",onClick:function(){function D(){return I("bufferOption",{option:"transfer",id:T})}return D}()})]})],4)]}),!x.data&&(0,e.createComponentVNode)(2,t.Box,{color:"label",mt:"0.5rem",children:"This buffer is empty."})]})})},i=function(N,y){var B=(0,a.useBackend)(y),I=B.act,w=B.data,T=w.hasDisk,A=w.disk;return(0,e.createComponentVNode)(2,t.Section,{title:"Data Disk",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button.Confirm,{disabled:!T||!A.data,icon:"trash",content:"Wipe",onClick:function(){function x(){return I("wipeDisk")}return x}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:!T,icon:"eject",content:"Eject",onClick:function(){function x(){return I("ejectDisk")}return x}()})],4),children:T?A.data?(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Label",children:A.label?A.label:"No label"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Subject",children:A.owner?A.owner:(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"Unknown"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Data Type",children:[A.type==="ui"?"Unique Identifiers":"Structural Enzymes",!!A.ue&&" and Unique Enzymes"]})]}):(0,e.createComponentVNode)(2,t.Box,{color:"label",children:"Disk is blank."}):(0,e.createComponentVNode)(2,t.Box,{color:"label",textAlign:"center",my:"1rem",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"save-o",size:"4"}),(0,e.createVNode)(1,"br"),"No disk inserted."]})})},v=function(N,y){var B=(0,a.useBackend)(y),I=B.act,w=B.data,T=w.isBeakerLoaded,A=w.beakerVolume,x=w.beakerLabel;return(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Rejuvenators and Beaker",buttons:(0,e.createComponentVNode)(2,t.Button,{disabled:!T,icon:"eject",content:"Eject",onClick:function(){function E(){return I("ejectBeaker")}return E}()}),children:T?(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Inject",children:[S.map(function(E,M){return(0,e.createComponentVNode)(2,t.Button,{disabled:E>A,icon:"syringe",content:E,onClick:function(){function D(){return I("injectRejuvenators",{amount:E})}return D}()},M)}),(0,e.createComponentVNode)(2,t.Button,{disabled:A<=0,icon:"syringe",content:"All",onClick:function(){function E(){return I("injectRejuvenators",{amount:A})}return E}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Beaker",children:[(0,e.createComponentVNode)(2,t.Box,{mb:"0.5rem",children:x||"No label"}),A?(0,e.createComponentVNode)(2,t.Box,{color:"good",children:[A," unit",A===1?"":"s"," remaining"]}):(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:"Empty"})]})]}):(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,grow:!0,textAlign:"center",align:"center",color:"label",children:[(0,e.createComponentVNode)(2,t.Icon.Stack,{children:[(0,e.createComponentVNode)(2,t.Icon,{name:"flask",size:5,color:"silver"}),(0,e.createComponentVNode)(2,t.Icon,{name:"slash",size:5,color:"red"})]}),(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"h3",null,"No beaker loaded.",16)]})})})},g=function(N,y){return(0,e.createComponentVNode)(2,t.Dimmer,{textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"spinner",size:"5",spin:!0}),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Box,{color:"average",children:(0,e.createVNode)(1,"h1",null,[(0,e.createComponentVNode)(2,t.Icon,{name:"radiation"}),(0,e.createTextVNode)("\xA0Irradiating occupant\xA0"),(0,e.createComponentVNode)(2,t.Icon,{name:"radiation"})],4)}),(0,e.createComponentVNode)(2,t.Box,{color:"label",children:(0,e.createVNode)(1,"h3",null,[(0,e.createTextVNode)("For "),N.duration,(0,e.createTextVNode)(" second"),N.duration===1?"":"s"],0)})]})},C=function(N,y){for(var B=(0,a.useBackend)(y),I=B.act,w=B.data,T=N.dnaString,A=N.selectedBlock,x=N.selectedSubblock,E=N.blockSize,M=N.action,D=T.split(""),P=0,R=[],j=function(){for(var _=F/E+1,z=[],G=function(){var J=X+1;z.push((0,e.createComponentVNode)(2,t.Button,{selected:A===_&&x===J,content:D[F+X],mb:"0",onClick:function(){function ie(){return I(M,{block:_,subblock:J})}return ie}()}))},X=0;Xi.spawnpoints?"red":"green",children:[i.total," total, versus ",i.spawnpoints," spawnpoints"]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Dispatch",children:(0,e.createComponentVNode)(2,t.Button,{width:10.5,textAlign:"center",icon:"ambulance",content:"Send ERT",onClick:function(){function N(){return s("dispatch_ert",{silent:C})}return N}()})})]})})})},p=function(m,d){var u=(0,a.useBackend)(d),s=u.act,i=u.data,v=i.ert_request_messages;return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,children:v&&v.length?v.map(function(g){return(0,e.createComponentVNode)(2,t.Section,{title:g.time,buttons:(0,e.createComponentVNode)(2,t.Button,{content:g.sender_real_name,onClick:function(){function C(){return s("view_player_panel",{uid:g.sender_uid})}return C}(),tooltip:"View player panel"}),children:g.message},(0,f.decodeHtmlEntities)(g.time))}):(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,grow:!0,textAlign:"center",align:"center",color:"average",children:[(0,e.createComponentVNode)(2,t.Icon.Stack,{children:[(0,e.createComponentVNode)(2,t.Icon,{name:"broadcast-tower",size:5,color:"gray"}),(0,e.createComponentVNode)(2,t.Icon,{name:"slash",size:5,color:"red"})]}),(0,e.createVNode)(1,"br"),"No ERT requests."]})})})})},l=function(m,d){var u=(0,a.useBackend)(d),s=u.act,i=u.data,v=(0,a.useLocalState)(d,"text",""),g=v[0],C=v[1];return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,children:[(0,e.createComponentVNode)(2,t.Input,{placeholder:"Enter ERT denial reason here,\nMultiline input is accepted.",rows:19,fluid:!0,multiline:1,value:g,onChange:function(){function h(N,y){return C(y)}return h}()}),(0,e.createComponentVNode)(2,t.Button.Confirm,{content:"Deny ERT",fluid:!0,icon:"times",center:!0,mt:2,textAlign:"center",onClick:function(){function h(){return s("deny_ert",{reason:g})}return h}()})]})})}},24503:function(L,r,n){"use strict";r.__esModule=!0,r.EconomyManager=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=n(99665),V=r.EconomyManager=function(){function S(b,p){return(0,e.createComponentVNode)(2,o.Window,{width:600,height:325,children:[(0,e.createComponentVNode)(2,f.ComplexModal),(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,className:"Layout__content--flexColumn",children:(0,e.createComponentVNode)(2,k)})]})}return S}(),k=function(b,p){var l=(0,a.useBackend)(p),c=l.act,m=l.data,d=m.next_payroll_time;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{children:[(0,e.createComponentVNode)(2,t.Box,{fontSize:"1.4rem",bold:!0,children:[(0,e.createComponentVNode)(2,t.Icon,{name:"coins",verticalAlign:"middle",size:3,mr:"1rem"}),"Economy Manager"]}),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.LabeledList,{label:"Pay Bonuses and Deductions",children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Global",children:(0,e.createComponentVNode)(2,t.Button,{icon:"dollar-sign",width:"auto",content:"Global Payroll Modification",onClick:function(){function u(){return c("payroll_modification",{mod_type:"global"})}return u}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Department Accounts",children:(0,e.createComponentVNode)(2,t.Button,{icon:"dollar-sign",width:"auto",content:"Department Account Payroll Modification",onClick:function(){function u(){return c("payroll_modification",{mod_type:"department"})}return u}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Department Members",children:(0,e.createComponentVNode)(2,t.Button,{icon:"dollar-sign",width:"auto",content:"Department Members Payroll Modification",onClick:function(){function u(){return c("payroll_modification",{mod_type:"department_members"})}return u}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Single Accounts",children:(0,e.createComponentVNode)(2,t.Button,{icon:"dollar-sign",width:"auto",content:"Crew Member Payroll Modification",onClick:function(){function u(){return c("payroll_modification",{mod_type:"crew_member"})}return u}()})})]}),(0,e.createVNode)(1,"hr"),(0,e.createComponentVNode)(2,t.Box,{mb:.5,children:["Next Payroll in: ",d," Minutes"]}),(0,e.createComponentVNode)(2,t.Button,{icon:"angle-double-left",width:"auto",color:"bad",content:"Delay Payroll",onClick:function(){function u(){return c("delay_payroll")}return u}()}),(0,e.createComponentVNode)(2,t.Button,{width:"auto",content:"Set Payroll Time",onClick:function(){function u(){return c("set_payroll")}return u}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"angle-double-right",width:"auto",color:"good",content:"Accelerate Payroll",onClick:function(){function u(){return c("accelerate_payroll")}return u}()})]}),(0,e.createComponentVNode)(2,t.NoticeBox,{children:[(0,e.createVNode)(1,"b",null,"WARNING:",16)," You take full responsibility for unbalancing the economy with these buttons!"]})],4)}},15543:function(L,r,n){"use strict";r.__esModule=!0,r.Electropack=void 0;var e=n(96524),a=n(36121),t=n(17899),o=n(24674),f=n(45493),V=r.Electropack=function(){function k(S,b){var p=(0,t.useBackend)(b),l=p.act,c=p.data,m=c.power,d=c.code,u=c.frequency,s=c.minFrequency,i=c.maxFrequency;return(0,e.createComponentVNode)(2,f.Window,{width:360,height:135,children:(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,o.Section,{children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Power",children:(0,e.createComponentVNode)(2,o.Button,{icon:m?"power-off":"times",content:m?"On":"Off",selected:m,onClick:function(){function v(){return l("power")}return v}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Frequency",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"sync",content:"Reset",onClick:function(){function v(){return l("reset",{reset:"freq"})}return v}()}),children:(0,e.createComponentVNode)(2,o.NumberInput,{animate:!0,unit:"kHz",step:.2,stepPixelSize:6,minValue:s/10,maxValue:i/10,value:u/10,format:function(){function v(g){return(0,a.toFixed)(g,1)}return v}(),width:"80px",onChange:function(){function v(g,C){return l("freq",{freq:C})}return v}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Code",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"sync",content:"Reset",onClick:function(){function v(){return l("reset",{reset:"code"})}return v}()}),children:(0,e.createComponentVNode)(2,o.NumberInput,{animate:!0,step:1,stepPixelSize:6,minValue:1,maxValue:100,value:d,width:"80px",onChange:function(){function v(g,C){return l("code",{code:C})}return v}()})})]})})})})}return k}()},57013:function(L,r,n){"use strict";r.__esModule=!0,r.Emojipedia=void 0;var e=n(96524),a=n(28234),t=n(17899),o=n(24674),f=n(45493),V=r.Emojipedia=function(){function S(b,p){var l=(0,t.useBackend)(p),c=l.data,m=c.emoji_list,d=(0,t.useLocalState)(p,"searchText",""),u=d[0],s=d[1],i=m.filter(function(v){return v.name.toLowerCase().includes(u.toLowerCase())});return(0,e.createComponentVNode)(2,f.Window,{width:325,height:400,children:(0,e.createComponentVNode)(2,f.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"Emojipedia v1.0.1",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Input,{placeholder:"Search by name",value:u,onInput:function(){function v(g,C){return s(C)}return v}()}),(0,e.createComponentVNode)(2,o.Button,{tooltip:"Click on an emoji to copy its tag!",tooltipPosition:"bottom",icon:"circle-question"})],4),children:i.map(function(v){return(0,e.createComponentVNode)(2,o.Button,{m:1,color:"transparent",className:(0,a.classes)(["emoji16x16","emoji-"+v.name]),style:{transform:"scale(1.5)"},tooltip:v.name,onClick:function(){function g(){k(v.name)}return g}()},v.name)})})})})}return S}(),k=function(b){var p=document.createElement("input"),l=":"+b+":";p.value=l,document.body.appendChild(p),p.select(),document.execCommand("copy"),document.body.removeChild(p)}},99012:function(L,r,n){"use strict";r.__esModule=!0,r.EvolutionMenu=void 0;var e=n(96524),a=n(78234),t=n(17899),o=n(24674),f=n(45493),V=n(74041),k=n(50640),S=r.EvolutionMenu=function(){function l(c,m){return(0,e.createComponentVNode)(2,f.Window,{width:480,height:580,theme:"changeling",children:(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,b),(0,e.createComponentVNode)(2,p)]})})})}return l}(),b=function(c,m){var d=(0,t.useBackend)(m),u=d.act,s=d.data,i=s.evo_points,v=s.can_respec;return(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Section,{title:"Evolution Points",height:5.5,children:(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.Stack.Item,{mt:.5,color:"label",children:"Points remaining:"}),(0,e.createComponentVNode)(2,o.Stack.Item,{mt:.5,ml:2,bold:!0,color:"#1b945c",children:i}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:[(0,e.createComponentVNode)(2,o.Button,{ml:2.5,disabled:!v,content:"Readapt",icon:"sync",onClick:function(){function g(){return u("readapt")}return g}()}),(0,e.createComponentVNode)(2,o.Button,{tooltip:"By transforming a humanoid into a husk, we gain the ability to readapt our chosen evolutions.",tooltipPosition:"bottom",icon:"question-circle"})]})]})})})},p=function(c,m){var d=(0,t.useBackend)(m),u=d.act,s=d.data,i=s.evo_points,v=s.ability_tabs,g=s.purchased_abilities,C=s.view_mode,h=(0,t.useLocalState)(m,"selectedTab",v[0]),N=h[0],y=h[1],B=(0,t.useLocalState)(m,"searchText",""),I=B[0],w=B[1],T=(0,t.useLocalState)(m,"ability_tabs",v[0].abilities),A=T[0],x=T[1],E=function(R,j){if(j===void 0&&(j=""),!R||R.length===0)return[];var F=(0,a.createSearch)(j,function(U){return U.name+"|"+U.description});return(0,V.flow)([(0,k.filter)(function(U){return U==null?void 0:U.name}),(0,k.filter)(F),(0,k.sortBy)(function(U){return U==null?void 0:U.name})])(R)},M=function(R){if(w(R),R==="")return x(N.abilities);x(E(v.map(function(j){return j.abilities}).flat(),R))},D=function(R){y(R),x(R.abilities),w("")};return(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"Abilities",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Input,{width:"200px",placeholder:"Search Abilities",onInput:function(){function P(R,j){M(j)}return P}(),value:I}),(0,e.createComponentVNode)(2,o.Button,{icon:C?"square-o":"check-square-o",selected:!C,content:"Compact",onClick:function(){function P(){return u("set_view_mode",{mode:0})}return P}()}),(0,e.createComponentVNode)(2,o.Button,{icon:C?"check-square-o":"square-o",selected:C,content:"Expanded",onClick:function(){function P(){return u("set_view_mode",{mode:1})}return P}()})],4),children:[(0,e.createComponentVNode)(2,o.Tabs,{children:v.map(function(P){return(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:I===""&&N===P,onClick:function(){function R(){D(P)}return R}(),children:P.category},P)})}),A.map(function(P,R){return(0,e.createComponentVNode)(2,o.Box,{p:.5,mx:-1,className:"candystripe",children:[(0,e.createComponentVNode)(2,o.Stack,{align:"center",children:[(0,e.createComponentVNode)(2,o.Stack.Item,{ml:.5,color:"#dedede",children:P.name}),g.includes(P.power_path)&&(0,e.createComponentVNode)(2,o.Stack.Item,{ml:2,bold:!0,color:"#1b945c",children:"(Purchased)"}),(0,e.createComponentVNode)(2,o.Stack.Item,{mr:3,textAlign:"right",grow:1,children:[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"label",children:["Cost:"," "]}),(0,e.createComponentVNode)(2,o.Box,{as:"span",bold:!0,color:"#1b945c",children:P.cost})]}),(0,e.createComponentVNode)(2,o.Stack.Item,{textAlign:"right",children:(0,e.createComponentVNode)(2,o.Button,{mr:.5,disabled:P.cost>i||g.includes(P.power_path),content:"Evolve",onClick:function(){function j(){return u("purchase",{power_path:P.power_path})}return j}()})})]}),!!C&&(0,e.createComponentVNode)(2,o.Stack,{color:"#8a8a8a",my:1,ml:1.5,width:"95%",children:P.description+" "+P.helptext})]},R)})]})})}},37504:function(L,r,n){"use strict";r.__esModule=!0,r.ExosuitFabricator=void 0;var e=n(96524),a=n(28234),t=n(78234),o=n(17899),f=n(24674),V=n(99509),k=n(45493),S=["id","amount","lineDisplay","onClick"];function b(g,C){if(g==null)return{};var h={},N=Object.keys(g),y,B;for(B=0;B=0)&&(h[y]=g[y]);return h}var p=2e3,l={bananium:"clown",tranquillite:"mime"},c=r.ExosuitFabricator=function(){function g(C,h){var N=(0,o.useBackend)(h),y=N.act,B=N.data,I=B.building;return(0,e.createComponentVNode)(2,k.Window,{width:950,height:625,children:(0,e.createComponentVNode)(2,k.Window.Content,{className:"Exofab",children:(0,e.createComponentVNode)(2,f.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,f.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,d)}),I&&(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,u)})]})}),(0,e.createComponentVNode)(2,f.Stack.Item,{width:"30%",children:(0,e.createComponentVNode)(2,f.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,m)}),(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,s)})]})})]})})})}return g}(),m=function(C,h){var N=(0,o.useBackend)(h),y=N.act,B=N.data,I=B.materials,w=B.capacity,T=Object.values(I).reduce(function(A,x){return A+x},0);return(0,e.createComponentVNode)(2,f.Section,{fill:!0,scrollable:!0,title:"Materials",className:"Exofab__materials",buttons:(0,e.createComponentVNode)(2,f.Box,{color:"label",mt:"0.25rem",children:[(T/w*100).toPrecision(3),"% full"]}),children:["metal","glass","silver","gold","uranium","titanium","plasma","diamond","bluespace","bananium","tranquillite","plastic"].map(function(A){return(0,e.createComponentVNode)(2,i,{mt:-2,id:A,bold:A==="metal"||A==="glass",onClick:function(){function x(){return y("withdraw",{id:A})}return x}()},A)})})},d=function(C,h){var N=(0,o.useBackend)(h),y=N.act,B=N.data,I=B.curCategory,w=B.categories,T=B.designs,A=B.syncing,x=(0,o.useLocalState)(h,"searchText",""),E=x[0],M=x[1],D=(0,t.createSearch)(E,function(R){return R.name}),P=T.filter(D);return(0,e.createComponentVNode)(2,f.Section,{fill:!0,scrollable:!0,className:"Exofab__designs",title:(0,e.createComponentVNode)(2,f.Dropdown,{className:"Exofab__dropdown",selected:I,options:w,onSelected:function(){function R(j){return y("category",{cat:j})}return R}()}),buttons:(0,e.createComponentVNode)(2,f.Box,{mt:"2px",children:[(0,e.createComponentVNode)(2,f.Button,{icon:"plus",content:"Queue all",onClick:function(){function R(){return y("queueall")}return R}()}),(0,e.createComponentVNode)(2,f.Button,{disabled:A,iconSpin:A,icon:"sync-alt",content:A?"Synchronizing...":"Synchronize with R&D servers",onClick:function(){function R(){return y("sync")}return R}()})]}),children:[(0,e.createComponentVNode)(2,f.Input,{placeholder:"Search by name...",mb:"0.5rem",width:"100%",onInput:function(){function R(j,F){return M(F)}return R}()}),P.map(function(R){return(0,e.createComponentVNode)(2,v,{design:R},R.id)}),P.length===0&&(0,e.createComponentVNode)(2,f.Box,{color:"label",children:"No designs found."})]})},u=function(C,h){var N=(0,o.useBackend)(h),y=N.act,B=N.data,I=B.building,w=B.buildStart,T=B.buildEnd,A=B.worldTime;return(0,e.createComponentVNode)(2,f.Section,{className:"Exofab__building",stretchContents:!0,children:(0,e.createComponentVNode)(2,f.ProgressBar.Countdown,{start:w,current:A,end:T,children:(0,e.createComponentVNode)(2,f.Stack,{children:[(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Icon,{name:"cog",spin:!0})}),(0,e.createComponentVNode)(2,f.Stack.Item,{children:["Building ",I,"\xA0(",(0,e.createComponentVNode)(2,V.Countdown,{current:A,timeLeft:T-A,format:function(){function x(E,M){return M.substr(3)}return x}()}),")"]})]})})})},s=function(C,h){var N=(0,o.useBackend)(h),y=N.act,B=N.data,I=B.queue,w=B.processingQueue,T=Object.entries(B.queueDeficit).filter(function(x){return x[1]<0}),A=I.reduce(function(x,E){return x+E.time},0);return(0,e.createComponentVNode)(2,f.Section,{fill:!0,scrollable:!0,className:"Exofab__queue",title:"Queue",buttons:(0,e.createComponentVNode)(2,f.Box,{children:[(0,e.createComponentVNode)(2,f.Button,{selected:w,icon:w?"toggle-on":"toggle-off",content:"Process",onClick:function(){function x(){return y("process")}return x}()}),(0,e.createComponentVNode)(2,f.Button,{disabled:I.length===0,icon:"eraser",content:"Clear",onClick:function(){function x(){return y("unqueueall")}return x}()})]}),children:(0,e.createComponentVNode)(2,f.Stack,{fill:!0,vertical:!0,children:I.length===0?(0,e.createComponentVNode)(2,f.Box,{color:"label",children:"The queue is empty."}):(0,e.createFragment)([(0,e.createComponentVNode)(2,f.Stack.Item,{className:"Exofab__queue--queue",grow:!0,overflow:"auto",children:I.map(function(x,E){return(0,e.createComponentVNode)(2,f.Box,{color:x.notEnough&&"bad",children:[E+1,". ",x.name,E>0&&(0,e.createComponentVNode)(2,f.Button,{icon:"arrow-up",onClick:function(){function M(){return y("queueswap",{from:E+1,to:E})}return M}()}),E0&&(0,e.createComponentVNode)(2,f.Stack.Item,{className:"Exofab__queue--time",children:[(0,e.createComponentVNode)(2,f.Divider),"Processing time:",(0,e.createComponentVNode)(2,f.Icon,{name:"clock",mx:"0.5rem"}),(0,e.createComponentVNode)(2,f.Box,{inline:!0,bold:!0,children:new Date(A/10*1e3).toISOString().substr(14,5)})]}),Object.keys(T).length>0&&(0,e.createComponentVNode)(2,f.Stack.Item,{className:"Exofab__queue--deficit",shrink:"0",children:[(0,e.createComponentVNode)(2,f.Divider),"Lacking materials to complete:",T.map(function(x){return(0,e.createComponentVNode)(2,f.Box,{children:(0,e.createComponentVNode)(2,i,{id:x[0],amount:-x[1],lineDisplay:!0})},x[0])})]})],0)})})},i=function(C,h){var N=(0,o.useBackend)(h),y=N.act,B=N.data,I=C.id,w=C.amount,T=C.lineDisplay,A=C.onClick,x=b(C,S),E=B.materials[I]||0,M=w||E;if(!(M<=0&&!(I==="metal"||I==="glass"))){var D=w&&w>E;return(0,e.normalizeProps)((0,e.createComponentVNode)(2,f.Stack,Object.assign({align:"center",className:(0,a.classes)(["Exofab__material",T&&"Exofab__material--line"])},x,{children:T?(0,e.createFragment)([(0,e.createComponentVNode)(2,f.Stack.Item,{className:(0,a.classes)(["materials32x32",I])}),(0,e.createComponentVNode)(2,f.Stack.Item,{className:"Exofab__material--amount",color:D&&"bad",ml:0,mr:1,children:M.toLocaleString("en-US")})],4):(0,e.createFragment)([(0,e.createComponentVNode)(2,f.Stack.Item,{basis:"content",children:(0,e.createComponentVNode)(2,f.Button,{width:"85%",color:"transparent",onClick:A,children:(0,e.createComponentVNode)(2,f.Box,{mt:1,className:(0,a.classes)(["materials32x32",I])})})}),(0,e.createComponentVNode)(2,f.Stack.Item,{grow:"1",children:[(0,e.createComponentVNode)(2,f.Box,{className:"Exofab__material--name",children:I}),(0,e.createComponentVNode)(2,f.Box,{className:"Exofab__material--amount",children:[M.toLocaleString("en-US")," cm\xB3 (",Math.round(M/p*10)/10," ","sheets)"]})]})],4)})))}},v=function(C,h){var N=(0,o.useBackend)(h),y=N.act,B=N.data,I=C.design;return(0,e.createComponentVNode)(2,f.Box,{className:"Exofab__design",children:[(0,e.createComponentVNode)(2,f.Button,{disabled:I.notEnough||B.building,icon:"cog",content:I.name,onClick:function(){function w(){return y("build",{id:I.id})}return w}()}),(0,e.createComponentVNode)(2,f.Button,{icon:"plus-circle",onClick:function(){function w(){return y("queue",{id:I.id})}return w}()}),(0,e.createComponentVNode)(2,f.Box,{className:"Exofab__design--cost",children:Object.entries(I.cost).map(function(w){return(0,e.createComponentVNode)(2,f.Box,{children:(0,e.createComponentVNode)(2,i,{id:w[0],amount:w[1],lineDisplay:!0})},w[0])})}),(0,e.createComponentVNode)(2,f.Stack,{className:"Exofab__design--time",children:(0,e.createComponentVNode)(2,f.Stack.Item,{children:[(0,e.createComponentVNode)(2,f.Icon,{name:"clock"}),I.time>0?(0,e.createFragment)([I.time/10,(0,e.createTextVNode)(" seconds")],0):"Instant"]})})]})}},9466:function(L,r,n){"use strict";r.__esModule=!0,r.ExperimentConsole=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=new Map([[0,{text:"Conscious",color:"good"}],[1,{text:"Unconscious",color:"average"}],[2,{text:"Deceased",color:"bad"}]]),V=new Map([[0,{label:"Probe",icon:"thermometer"}],[1,{label:"Dissect",icon:"brain"}],[2,{label:"Analyze",icon:"search"}]]),k=r.ExperimentConsole=function(){function S(b,p){var l=(0,a.useBackend)(p),c=l.act,m=l.data,d=m.open,u=m.feedback,s=m.occupant,i=m.occupant_name,v=m.occupant_status,g=function(){function h(){if(!s)return(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No specimen detected."});var N=function(){function B(){return f.get(v)}return B}(),y=N();return(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Name",children:i}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",color:y.color,children:y.text}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Experiments",children:[0,1,2].map(function(B){return(0,e.createComponentVNode)(2,t.Button,{icon:V.get(B).icon,content:V.get(B).label,onClick:function(){function I(){return c("experiment",{experiment_type:B})}return I}()},B)})})]})}return h}(),C=g();return(0,e.createComponentVNode)(2,o.Window,{theme:"abductor",width:350,height:200,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:u})})}),(0,e.createComponentVNode)(2,t.Section,{title:"Scanner",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"eject",content:"Eject",disabled:!d,onClick:function(){function h(){return c("door")}return h}()}),children:C})]})})}return S}()},77284:function(L,r,n){"use strict";r.__esModule=!0,r.ExternalAirlockController=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=0,V=1013,k=function(p){var l="good",c=80,m=95,d=110,u=120;return pd?l="average":p>u&&(l="bad"),l},S=r.ExternalAirlockController=function(){function b(p,l){var c=(0,a.useBackend)(l),m=c.act,d=c.data,u=d.chamber_pressure,s=d.exterior_status,i=d.interior_status,v=d.processing;return(0,e.createComponentVNode)(2,o.Window,{width:330,height:205,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Information",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Chamber Pressure",children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:k(u),value:u,minValue:f,maxValue:V,children:[u," kPa"]})})})}),(0,e.createComponentVNode)(2,t.Section,{title:"Actions",buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Abort",icon:"ban",color:"red",disabled:!v,onClick:function(){function g(){return m("abort")}return g}()}),children:[(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Button,{width:"49%",content:"Cycle to Exterior",icon:"arrow-circle-left",disabled:v,onClick:function(){function g(){return m("cycle_ext")}return g}()}),(0,e.createComponentVNode)(2,t.Button,{width:"50%",content:"Cycle to Interior",icon:"arrow-circle-right",disabled:v,onClick:function(){function g(){return m("cycle_int")}return g}()})]}),(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Button,{width:"49%",content:"Force Exterior Door",icon:"exclamation-triangle",color:i==="open"?"red":v?"yellow":null,onClick:function(){function g(){return m("force_ext")}return g}()}),(0,e.createComponentVNode)(2,t.Button,{width:"50%",content:"Force Interior Door",icon:"exclamation-triangle",color:i==="open"?"red":v?"yellow":null,onClick:function(){function g(){return m("force_int")}return g}()})]})]})]})})}return b}()},52516:function(L,r,n){"use strict";r.__esModule=!0,r.FaxMachine=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.FaxMachine=function(){function V(k,S){var b=(0,a.useBackend)(S),p=b.act,l=b.data;return(0,e.createComponentVNode)(2,o.Window,{width:540,height:295,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Authorization",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"ID Card",children:(0,e.createComponentVNode)(2,t.Button,{icon:l.scan_name?"eject":"id-card",selected:l.scan_name,content:l.scan_name?l.scan_name:"-----",tooltip:l.scan_name?"Eject ID":"Insert ID",onClick:function(){function c(){return p("scan")}return c}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Authorize",children:(0,e.createComponentVNode)(2,t.Button,{icon:l.authenticated?"sign-out-alt":"id-card",selected:l.authenticated,disabled:l.nologin,content:l.realauth?"Log Out":"Log In",onClick:function(){function c(){return p("auth")}return c}()})})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Fax Menu",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Network",children:l.network}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Document",children:[(0,e.createComponentVNode)(2,t.Button,{icon:l.paper?"eject":"paperclip",disabled:!l.authenticated&&!l.paper,content:l.paper?l.paper:"-----",onClick:function(){function c(){return p("paper")}return c}()}),!!l.paper&&(0,e.createComponentVNode)(2,t.Button,{icon:"pencil-alt",content:"Rename",onClick:function(){function c(){return p("rename")}return c}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Sending To",children:(0,e.createComponentVNode)(2,t.Button,{icon:"print",content:l.destination?l.destination:"-----",disabled:!l.authenticated,onClick:function(){function c(){return p("dept")}return c}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Action",children:(0,e.createComponentVNode)(2,t.Button,{icon:"envelope",content:l.sendError?l.sendError:"Send",disabled:!l.paper||!l.destination||!l.authenticated||l.sendError,onClick:function(){function c(){return p("send")}return c}()})})]})})]})})}return V}()},24777:function(L,r,n){"use strict";r.__esModule=!0,r.FilingCabinet=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.FilingCabinet=function(){function V(k,S){var b=(0,a.useBackend)(S),p=b.act,l=b.data,c=b.config,m=l.contents,d=c.title;return(0,e.createComponentVNode)(2,o.Window,{width:400,height:300,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Contents",children:[!m&&(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,grow:!0,textAlign:"center",align:"center",color:"average",children:[(0,e.createComponentVNode)(2,t.Icon.Stack,{children:[(0,e.createComponentVNode)(2,t.Icon,{name:"folder-open",size:5,color:"gray"}),(0,e.createComponentVNode)(2,t.Icon,{name:"slash",size:5,color:"red"})]}),(0,e.createVNode)(1,"br"),"The ",d," is empty."]})}),!!m&&m.slice().map(function(u){return(0,e.createComponentVNode)(2,t.Stack,{mt:.5,className:"candystripe",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"80%",children:u.display_name}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-down",content:"Retrieve",onClick:function(){function s(){return p("retrieve",{index:u.index})}return s}()})})]},u)})]})})})})}return V}()},88361:function(L,r,n){"use strict";r.__esModule=!0,r.FloorPainter=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=function(S,b){var p=(0,a.useBackend)(b),l=p.act,c=p.data,m=S.image,d=S.isSelected,u=S.onSelect;return(0,e.createVNode)(1,"img",null,null,1,{src:"data:image/jpeg;base64,"+m,style:{"border-style":d&&"solid"||"none","border-width":"2px","border-color":"orange",padding:d&&"2px"||"4px"},onClick:u})},V=r.FloorPainter=function(){function k(S,b){var p=(0,a.useBackend)(b),l=p.act,c=p.data,m=c.availableStyles,d=c.selectedStyle,u=c.selectedDir,s=c.directionsPreview,i=c.allStylesPreview;return(0,e.createComponentVNode)(2,o.Window,{width:405,height:475,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Decal setup",children:[(0,e.createComponentVNode)(2,t.Flex,{children:[(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"chevron-left",onClick:function(){function v(){return l("cycle_style",{offset:-1})}return v}()})}),(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Dropdown,{options:m,selected:d,width:"150px",height:"20px",ml:"2px",mr:"2px",nochevron:!0,onSelected:function(){function v(g){return l("select_style",{style:g})}return v}()})}),(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"chevron-right",onClick:function(){function v(){return l("cycle_style",{offset:1})}return v}()})})]}),(0,e.createComponentVNode)(2,t.Box,{mt:"5px",mb:"5px",children:(0,e.createComponentVNode)(2,t.Flex,{overflowY:"auto",maxHeight:"220px",wrap:"wrap",children:m.map(function(v){return(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,f,{image:i[v],isSelected:d===v,onSelect:function(){function g(){return l("select_style",{style:v})}return g}()})},"{style}")})})}),(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Direction",children:(0,e.createComponentVNode)(2,t.Table,{style:{display:"inline"},children:["north","","south"].map(function(v){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[v+"west",v,v+"east"].map(function(g){return(0,e.createComponentVNode)(2,t.Table.Cell,{style:{"vertical-align":"middle","text-align":"center"},children:g===""?(0,e.createComponentVNode)(2,t.Icon,{name:"arrows-alt",size:3}):(0,e.createComponentVNode)(2,f,{image:s[g],isSelected:g===u,onSelect:function(){function C(){return l("select_direction",{direction:g})}return C}()})},g)})},v)})})})})]})})})}return k}()},70078:function(L,r,n){"use strict";r.__esModule=!0,r.GPS=void 0;var e=n(96524),a=n(36121),t=n(17899),o=n(24674),f=n(45493),V=function(d){return d?"("+d.join(", ")+")":"ERROR"},k=function(d,u){if(!(!d||!u)){if(d[2]!==u[2])return null;var s=Math.atan2(u[1]-d[1],u[0]-d[0]),i=Math.sqrt(Math.pow(u[1]-d[1],2)+Math.pow(u[0]-d[0],2));return{angle:(0,a.rad2deg)(s),distance:i}}},S=r.GPS=function(){function m(d,u){var s=(0,t.useBackend)(u),i=s.data,v=i.emped,g=i.active,C=i.area,h=i.position,N=i.saved;return(0,e.createComponentVNode)(2,f.Window,{width:400,height:600,children:(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:v?(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,basis:"0",children:(0,e.createComponentVNode)(2,b,{emp:!0})}):(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,p)}),g?(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,l,{area:C,position:h})}),N&&(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,l,{title:"Saved Position",position:N})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,basis:"0",children:(0,e.createComponentVNode)(2,c,{height:"100%"})})],0):(0,e.createComponentVNode)(2,b)],0)})})})}return m}(),b=function(d,u){var s=d.emp;return(0,e.createComponentVNode)(2,o.Section,{fill:!0,children:(0,e.createComponentVNode)(2,o.Box,{width:"100%",height:"100%",color:"label",textAlign:"center",children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,align:"center",color:"label",children:[(0,e.createComponentVNode)(2,o.Icon,{name:s?"ban":"power-off",mb:"0.5rem",size:"5"}),(0,e.createVNode)(1,"br"),s?"ERROR: Device temporarily lost signal.":"Device is disabled."]})})})})},p=function(d,u){var s=(0,t.useBackend)(u),i=s.act,v=s.data,g=v.active,C=v.tag,h=v.same_z,N=(0,t.useLocalState)(u,"newTag",C),y=N[0],B=N[1];return(0,e.createComponentVNode)(2,o.Section,{title:"Settings",buttons:(0,e.createComponentVNode)(2,o.Button,{selected:g,icon:g?"toggle-on":"toggle-off",content:g?"On":"Off",onClick:function(){function I(){return i("toggle")}return I}()}),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Tag",children:[(0,e.createComponentVNode)(2,o.Input,{width:"5rem",value:C,onEnter:function(){function I(){return i("tag",{newtag:y})}return I}(),onInput:function(){function I(w,T){return B(T)}return I}()}),(0,e.createComponentVNode)(2,o.Button,{disabled:C===y,width:"20px",mb:"0",ml:"0.25rem",onClick:function(){function I(){return i("tag",{newtag:y})}return I}(),children:(0,e.createComponentVNode)(2,o.Icon,{name:"pen"})})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Range",children:(0,e.createComponentVNode)(2,o.Button,{selected:!h,icon:h?"compress":"expand",content:h?"Local Sector":"Global",onClick:function(){function I(){return i("same_z")}return I}()})})]})})},l=function(d,u){var s=d.title,i=d.area,v=d.position;return(0,e.createComponentVNode)(2,o.Section,{title:s||"Position",children:(0,e.createComponentVNode)(2,o.Box,{fontSize:"1.5rem",children:[i&&(0,e.createFragment)([i,(0,e.createVNode)(1,"br")],0),V(v)]})})},c=function(d,u){var s=(0,t.useBackend)(u),i=s.data,v=i.position,g=i.signals;return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Section,Object.assign({fill:!0,scrollable:!0,title:"Signals"},d,{children:(0,e.createComponentVNode)(2,o.Table,{children:g.map(function(C){return Object.assign({},C,k(v,C.position))}).map(function(C,h){return(0,e.createComponentVNode)(2,o.Table.Row,{backgroundColor:h%2===0&&"rgba(255, 255, 255, 0.05)",children:[(0,e.createComponentVNode)(2,o.Table.Cell,{width:"30%",verticalAlign:"middle",color:"label",p:"0.25rem",bold:!0,children:C.tag}),(0,e.createComponentVNode)(2,o.Table.Cell,{verticalAlign:"middle",color:"grey",children:C.area}),(0,e.createComponentVNode)(2,o.Table.Cell,{verticalAlign:"middle",collapsing:!0,children:C.distance!==void 0&&(0,e.createComponentVNode)(2,o.Box,{opacity:Math.max(1-Math.min(C.distance,100)/100,.5),children:[(0,e.createComponentVNode)(2,o.Icon,{name:C.distance>0?"arrow-right":"circle",rotation:-C.angle}),"\xA0",Math.floor(C.distance)+"m"]})}),(0,e.createComponentVNode)(2,o.Table.Cell,{verticalAlign:"middle",pr:"0.25rem",collapsing:!0,children:V(C.position)})]},h)})})})))}},92246:function(L,r,n){"use strict";r.__esModule=!0,r.GeneModder=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(99665),f=n(45493),V=r.GeneModder=function(){function d(u,s){var i=(0,a.useBackend)(s),v=i.data,g=v.has_seed;return(0,e.createComponentVNode)(2,f.Window,{width:500,height:650,children:(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,b),(0,e.createComponentVNode)(2,o.ComplexModal,{maxWidth:"75%",maxHeight:"75%"}),g===0?(0,e.createComponentVNode)(2,S):(0,e.createComponentVNode)(2,k)]})})})}return d}(),k=function(u,s){var i=(0,a.useBackend)(s),v=i.act,g=i.data,C=g.disk;return(0,e.createComponentVNode)(2,t.Section,{title:"Genes",fill:!0,scrollable:!0,buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Insert Gene from Disk",disabled:!C||!C.can_insert||C.is_core,icon:"arrow-circle-down",onClick:function(){function h(){return v("insert")}return h}()}),children:[(0,e.createComponentVNode)(2,p),(0,e.createComponentVNode)(2,l),(0,e.createComponentVNode)(2,c)]})},S=function(u,s){return(0,e.createComponentVNode)(2,t.Section,{fill:!0,height:"85%",children:(0,e.createComponentVNode)(2,t.Stack,{height:"100%",children:(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,grow:"1",textAlign:"center",align:"center",color:"green",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"leaf",size:5,mb:"10px"}),(0,e.createVNode)(1,"br"),"The plant DNA manipulator is missing a seed."]})})})},b=function(u,s){var i=(0,a.useBackend)(s),v=i.act,g=i.data,C=g.has_seed,h=g.seed,N=g.has_disk,y=g.disk,B,I;return C?B=(0,e.createComponentVNode)(2,t.Stack.Item,{mb:"-6px",mt:"-4px",children:[(0,e.createVNode)(1,"img",null,null,1,{src:"data:image/jpeg;base64,"+h.image,style:{"vertical-align":"middle",width:"32px",margin:"-1px","margin-left":"-11px"}}),(0,e.createComponentVNode)(2,t.Button,{content:h.name,onClick:function(){function w(){return v("eject_seed")}return w}()}),(0,e.createComponentVNode)(2,t.Button,{ml:"3px",icon:"pen",tooltip:"Name Variant",onClick:function(){function w(){return v("variant_name")}return w}()})]}):B=(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{ml:3.3,content:"None",onClick:function(){function w(){return v("eject_seed")}return w}()})}),N?I=y.name:I="None",(0,e.createComponentVNode)(2,t.Section,{title:"Storage",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Plant Sample",children:B}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Data Disk",children:(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{ml:3.3,content:I,onClick:function(){function w(){return v("eject_disk")}return w}()})})})]})})},p=function(u,s){var i=(0,a.useBackend)(s),v=i.act,g=i.data,C=g.disk,h=g.core_genes;return(0,e.createComponentVNode)(2,t.Collapsible,{title:"Core Genes",open:!0,children:[h.map(function(N){return(0,e.createComponentVNode)(2,t.Stack,{py:"2px",className:"candystripe",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"100%",ml:"2px",children:N.name}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Extract",disabled:!(C!=null&&C.can_extract),icon:"save",onClick:function(){function y(){return v("extract",{id:N.id})}return y}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Replace",disabled:!N.is_type||!C.can_insert,icon:"arrow-circle-down",onClick:function(){function y(){return v("replace",{id:N.id})}return y}()})})]},N)})," ",(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Extract All",disabled:!(C!=null&&C.can_extract),icon:"save",onClick:function(){function N(){return v("bulk_extract_core")}return N}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Replace All",disabled:!(C!=null&&C.is_bulk_core),icon:"arrow-circle-down",onClick:function(){function N(){return v("bulk_replace_core")}return N}()})})]})]},"Core Genes")},l=function(u,s){var i=(0,a.useBackend)(s),v=i.data,g=v.reagent_genes,C=v.has_reagent;return(0,e.createComponentVNode)(2,m,{title:"Reagent Genes",gene_set:g,do_we_show:C})},c=function(u,s){var i=(0,a.useBackend)(s),v=i.data,g=v.trait_genes,C=v.has_trait;return(0,e.createComponentVNode)(2,m,{title:"Trait Genes",gene_set:g,do_we_show:C})},m=function(u,s){var i=u.title,v=u.gene_set,g=u.do_we_show,C=(0,a.useBackend)(s),h=C.act,N=C.data,y=N.disk;return(0,e.createComponentVNode)(2,t.Collapsible,{title:i,open:!0,children:g?v.map(function(B){return(0,e.createComponentVNode)(2,t.Stack,{py:"2px",className:"candystripe",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"100%",ml:"2px",children:B.name}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Extract",disabled:!(y!=null&&y.can_extract),icon:"save",onClick:function(){function I(){return h("extract",{id:B.id})}return I}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Remove",icon:"times",onClick:function(){function I(){return h("remove",{id:B.id})}return I}()})})]},B)}):(0,e.createComponentVNode)(2,t.Stack.Item,{children:"No Genes Detected"})},i)}},27163:function(L,r,n){"use strict";r.__esModule=!0,r.GenericCrewManifest=void 0;var e=n(96524),a=n(24674),t=n(45493),o=n(98444),f=r.GenericCrewManifest=function(){function V(k,S){return(0,e.createComponentVNode)(2,t.Window,{theme:"nologo",width:588,height:510,children:(0,e.createComponentVNode)(2,t.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,a.Section,{noTopPadding:!0,children:(0,e.createComponentVNode)(2,o.CrewManifest)})})})}return V}()},53808:function(L,r,n){"use strict";r.__esModule=!0,r.GhostHudPanel=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.GhostHudPanel=function(){function k(S,b){var p=(0,a.useBackend)(b),l=p.data,c=l.security,m=l.medical,d=l.diagnostic,u=l.radioactivity,s=l.ahud;return(0,e.createComponentVNode)(2,o.Window,{width:250,height:207,theme:"nologo",children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:[(0,e.createComponentVNode)(2,V,{label:"Medical",type:"medical",is_active:m}),(0,e.createComponentVNode)(2,V,{label:"Security",type:"security",is_active:c}),(0,e.createComponentVNode)(2,V,{label:"Diagnostic",type:"diagnostic",is_active:d}),(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,V,{label:"Radioactivity",type:"radioactivity",is_active:u,act_on:"rads_on",act_off:"rads_off"}),(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,V,{label:"Antag HUD",is_active:s,act_on:"ahud_on",act_off:"ahud_off"})]})})})}return k}(),V=function(S,b){var p=(0,a.useBackend)(b),l=p.act,c=S.label,m=S.type,d=m===void 0?null:m,u=S.is_active,s=S.act_on,i=s===void 0?"hud_on":s,v=S.act_off,g=v===void 0?"hud_off":v;return(0,e.createComponentVNode)(2,t.Flex,{pt:.3,color:"label",children:[(0,e.createComponentVNode)(2,t.Flex.Item,{pl:.5,align:"center",width:"80%",children:c}),(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Button,{mr:.6,content:u?"On":"Off",icon:u?"toggle-on":"toggle-off",selected:u,onClick:function(){function C(){return l(u?g:i,{hud_type:d})}return C}()})})]})}},32035:function(L,r,n){"use strict";r.__esModule=!0,r.GlandDispenser=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.GlandDispenser=function(){function V(k,S){var b=(0,a.useBackend)(S),p=b.act,l=b.data,c=l.glands,m=c===void 0?[]:c;return(0,e.createComponentVNode)(2,o.Window,{width:300,height:338,theme:"abductor",children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:m.map(function(d){return(0,e.createComponentVNode)(2,t.Button,{width:"60px",height:"60px",m:.75,textAlign:"center",fontSize:"17px",lineHeight:"55px",icon:"eject",backgroundColor:d.color,content:d.amount||"0",disabled:!d.amount,onClick:function(){function u(){return p("dispense",{gland_id:d.id})}return u}()},d.id)})})})})}return V}()},33004:function(L,r,n){"use strict";r.__esModule=!0,r.GravityGen=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.GravityGen=function(){function V(k,S){var b=(0,a.useBackend)(S),p=b.act,l=b.data,c=l.charging_state,m=l.charge_count,d=l.breaker,u=l.ext_power,s=function(){function v(g){return g>0?(0,e.createComponentVNode)(2,t.Box,{inline:!0,color:"average",children:["[ ",g===1?"Charging":"Discharging"," ]"]}):(0,e.createComponentVNode)(2,t.Box,{inline:!0,color:u?"good":"bad",children:["[ ",u?"Powered":"Unpowered"," ]"]})}return v}(),i=function(){function v(g){if(g>0)return(0,e.createComponentVNode)(2,t.NoticeBox,{danger:!0,p:1.5,children:[(0,e.createVNode)(1,"b",null,"WARNING:",16)," Radiation Detected!"]})}return v}();return(0,e.createComponentVNode)(2,o.Window,{width:350,height:170,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[i(c),(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Generator Status",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:d?"power-off":"times",content:d?"Online":"Offline",color:d?"green":"red",px:1.5,onClick:function(){function v(){return p("breaker")}return v}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power Status",color:u?"good":"bad",children:s(c)}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Gravity Charge",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:m/100,ranges:{good:[.9,1/0],average:[.5,.9],bad:[-1/0,.5]}})})]})})]})})})}return V}()},39775:function(L,r,n){"use strict";r.__esModule=!0,r.GuestPass=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=n(57842),V=r.GuestPass=function(){function k(S,b){var p=(0,a.useBackend)(b),l=p.act,c=p.data;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:690,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Tabs,{children:[(0,e.createComponentVNode)(2,t.Tabs.Tab,{icon:"id-card",selected:!c.showlogs,onClick:function(){function m(){return l("mode",{mode:0})}return m}(),children:"Issue Pass"}),(0,e.createComponentVNode)(2,t.Tabs.Tab,{icon:"scroll",selected:c.showlogs,onClick:function(){function m(){return l("mode",{mode:1})}return m}(),children:["Records (",c.issue_log.length,")"]})]})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Authorization",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"ID Card",children:(0,e.createComponentVNode)(2,t.Button,{icon:c.scan_name?"eject":"id-card",selected:c.scan_name,content:c.scan_name?c.scan_name:"-----",tooltip:c.scan_name?"Eject ID":"Insert ID",onClick:function(){function m(){return l("scan")}return m}()})})})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:!c.showlogs&&(0,e.createComponentVNode)(2,t.Section,{title:"Issue Guest Pass",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Issue To",children:(0,e.createComponentVNode)(2,t.Button,{icon:"pencil-alt",content:c.giv_name?c.giv_name:"-----",disabled:!c.scan_name,onClick:function(){function m(){return l("giv_name")}return m}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Reason",children:(0,e.createComponentVNode)(2,t.Button,{icon:"pencil-alt",content:c.reason?c.reason:"-----",disabled:!c.scan_name,onClick:function(){function m(){return l("reason")}return m}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Duration",children:(0,e.createComponentVNode)(2,t.Button,{icon:"pencil-alt",content:c.duration?c.duration:"-----",disabled:!c.scan_name,onClick:function(){function m(){return l("duration")}return m}()})})]})})}),!c.showlogs&&(c.scan_name?(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,f.AccessList,{sectionButtons:(0,e.createComponentVNode)(2,t.Button,{icon:"id-card",content:c.printmsg,disabled:!c.canprint,onClick:function(){function m(){return l("issue")}return m}()}),grantableList:c.grantableList,accesses:c.regions,selectedList:c.selectedAccess,accessMod:function(){function m(d){return l("access",{access:d})}return m}(),grantAll:function(){function m(){return l("grant_all")}return m}(),denyAll:function(){function m(){return l("clear_all")}return m}(),grantDep:function(){function m(d){return l("grant_region",{region:d})}return m}(),denyDep:function(){function m(d){return l("deny_region",{region:d})}return m}()})}):(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,grow:!0,fontSize:1.5,textAlign:"center",align:"center",color:"label",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"id-card",size:5,color:"gray",mb:5}),(0,e.createVNode)(1,"br"),"Please, insert ID Card"]})})})})),!!c.showlogs&&(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,m:0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Issuance Log",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"print",content:"Print",disabled:!c.scan_name,onClick:function(){function m(){return l("print")}return m}()}),children:!!c.issue_log.length&&(0,e.createComponentVNode)(2,t.LabeledList,{children:c.issue_log.map(function(m,d){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{children:m},d)})})||(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,grow:!0,fontSize:1.5,textAlign:"center",align:"center",color:"label",children:[(0,e.createComponentVNode)(2,t.Icon.Stack,{children:[(0,e.createComponentVNode)(2,t.Icon,{name:"scroll",size:5,color:"gray"}),(0,e.createComponentVNode)(2,t.Icon,{name:"slash",size:5,color:"red"})]}),(0,e.createVNode)(1,"br"),"No logs"]})})})})]})})})}return k}()},22480:function(L,r,n){"use strict";r.__esModule=!0,r.HandheldChemDispenser=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=[1,5,10,20,30,50],V=null,k=r.HandheldChemDispenser=function(){function p(l,c){return(0,e.createComponentVNode)(2,o.Window,{width:390,height:430,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,S),(0,e.createComponentVNode)(2,b)]})})})}return p}(),S=function(l,c){var m=(0,a.useBackend)(c),d=m.act,u=m.data,s=u.amount,i=u.energy,v=u.maxEnergy,g=u.mode;return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Settings",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Energy",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:i,minValue:0,maxValue:v,ranges:{good:[v*.5,1/0],average:[v*.25,v*.5],bad:[-1/0,v*.25]},children:[i," / ",v," Units"]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Amount",verticalAlign:"middle",children:(0,e.createComponentVNode)(2,t.Stack,{children:f.map(function(C,h){return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,width:"15%",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"cog",selected:s===C,content:C,onClick:function(){function N(){return d("amount",{amount:C})}return N}()})},h)})})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Mode",verticalAlign:"middle",children:(0,e.createComponentVNode)(2,t.Stack,{justify:"space-between",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"cog",selected:g==="dispense",content:"Dispense",m:"0",width:"32%",onClick:function(){function C(){return d("mode",{mode:"dispense"})}return C}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"cog",selected:g==="remove",content:"Remove",m:"0",width:"32%",onClick:function(){function C(){return d("mode",{mode:"remove"})}return C}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"cog",selected:g==="isolate",content:"Isolate",m:"0",width:"32%",onClick:function(){function C(){return d("mode",{mode:"isolate"})}return C}()})]})})]})})})},b=function(l,c){for(var m=(0,a.useBackend)(c),d=m.act,u=m.data,s=u.chemicals,i=s===void 0?[]:s,v=u.current_reagent,g=[],C=0;C<(i.length+1)%3;C++)g.push(!0);return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,height:"18%",children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:u.glass?"Drink Selector":"Chemical Selector",children:[i.map(function(h,N){return(0,e.createComponentVNode)(2,t.Button,{width:"32%",icon:"arrow-circle-down",overflow:"hidden",textOverflow:"ellipsis",selected:v===h.id,content:h.title,style:{"margin-left":"2px"},onClick:function(){function y(){return d("dispense",{reagent:h.id})}return y}()},N)}),g.map(function(h,N){return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:"1",basis:"25%"},N)})]})})}},22616:function(L,r,n){"use strict";r.__esModule=!0,r.HealthSensor=void 0;var e=n(96524),a=n(36121),t=n(17899),o=n(24674),f=n(45493),V=r.HealthSensor=function(){function S(b,p){var l=(0,t.useBackend)(p),c=l.act,m=l.data,d=m.on,u=m.user_health,s=m.minHealth,i=m.maxHealth,v=m.alarm_health;return(0,e.createComponentVNode)(2,f.Window,{width:300,height:125,children:(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,o.Section,{children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Scanning",children:(0,e.createComponentVNode)(2,o.Button,{icon:"power-off",content:d?"On":"Off",color:d?null:"red",selected:d,onClick:function(){function g(){return c("scan_toggle")}return g}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Health activation",children:(0,e.createComponentVNode)(2,o.NumberInput,{animate:!0,step:2,stepPixelSize:6,minValue:s,maxValue:i,value:v,format:function(){function g(C){return(0,a.toFixed)(C,1)}return g}(),width:"80px",onDrag:function(){function g(C,h){return c("alarm_health",{alarm_health:h})}return g}()})}),u!==null&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"User health",children:(0,e.createComponentVNode)(2,o.Box,{color:k(u),bold:u>=100,children:(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:u})})})]})})})})}return S}(),k=function(b){return b>50?"green":b>0?"orange":"red"}},76861:function(L,r,n){"use strict";r.__esModule=!0,r.Holodeck=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.Holodeck=function(){function k(S,b){var p=(0,a.useBackend)(b),l=p.act,c=p.data,m=(0,a.useLocalState)(b,"currentDeck",""),d=m[0],u=m[1],s=(0,a.useLocalState)(b,"showReload",!1),i=s[0],v=s[1],g=c.decks,C=c.ai_override,h=c.emagged,N=function(){function y(B){l("select_deck",{deck:B}),u(B),v(!0),setTimeout(function(){v(!1)},3e3)}return y}();return(0,e.createComponentVNode)(2,o.Window,{width:400,height:320,children:[i&&(0,e.createComponentVNode)(2,V),(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Holodeck Control System",children:(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createVNode)(1,"b",null,"Currently Loaded Program:",16)," ",d]})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Available Programs",children:[g.map(function(y){return(0,e.createComponentVNode)(2,t.Button,{width:15.5,color:"transparent",content:y,selected:y===d,onClick:function(){function B(){return N(y)}return B}()},y)}),(0,e.createVNode)(1,"hr",null,null,1,{color:"gray"}),(0,e.createComponentVNode)(2,t.LabeledList,{children:[!!C&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Override Protocols",children:(0,e.createComponentVNode)(2,t.Button,{content:h?"Turn On":"Turn Off",color:h?"good":"bad",onClick:function(){function y(){return l("ai_override")}return y}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Safety Protocols",children:(0,e.createComponentVNode)(2,t.Box,{color:h?"bad":"good",children:[h?"Off":"On",!!h&&(0,e.createComponentVNode)(2,t.Button,{ml:9.5,width:15.5,color:"red",content:"Wildlife Simulation",onClick:function(){function y(){return l("wildlifecarp")}return y}()})]})})]})]})})]})})]})}return k}(),V=function(S,b){return(0,e.createComponentVNode)(2,t.Dimmer,{textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"spinner",size:"5",spin:!0}),(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Box,{color:"white",children:(0,e.createVNode)(1,"h1",null,"\xA0Recalibrating projection apparatus.\xA0",16)}),(0,e.createComponentVNode)(2,t.Box,{color:"label",children:(0,e.createVNode)(1,"h3",null,"Please, wait for 3 seconds.",16)})]})}},96729:function(L,r,n){"use strict";r.__esModule=!0,r.Instrument=void 0;var e=n(96524),a=n(36121),t=n(17899),o=n(24674),f=n(45493),V=r.Instrument=function(){function l(c,m){var d=(0,t.useBackend)(m),u=d.act,s=d.data;return(0,e.createComponentVNode)(2,f.Window,{width:600,height:505,children:[(0,e.createComponentVNode)(2,k),(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,S),(0,e.createComponentVNode)(2,p)]})})]})}return l}(),k=function(c,m){var d=(0,t.useBackend)(m),u=d.act,s=d.data,i=s.help;if(i)return(0,e.createComponentVNode)(2,o.Modal,{maxWidth:"75%",height:window.innerHeight*.75+"px",mx:"auto",py:"0",px:"0.5rem",children:(0,e.createComponentVNode)(2,o.Section,{height:"100%",title:"Help",level:"2",overflow:"auto",children:(0,e.createComponentVNode)(2,o.Box,{px:"0.5rem",mt:"-0.5rem",children:[(0,e.createVNode)(1,"h1",null,"Making a Song",16),(0,e.createVNode)(1,"p",null,[(0,e.createTextVNode)("Lines are a series of chords, separated by commas\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"(,)"}),(0,e.createTextVNode)(", each with notes separated by hyphens\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"(-)"}),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("Every note in a chord will play together, with the chord timed by the\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"tempo"}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("as defined above.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createTextVNode)("Notes are played by the\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"good",children:"names of the note"}),(0,e.createTextVNode)(", and optionally, the\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"average",children:"accidental"}),(0,e.createTextVNode)(", and/or the"),(0,e.createTextVNode)(" "),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"bad",children:"octave number"}),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("By default, every note is\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"average",children:"natural"}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("and in\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"bad",children:"octave 3"}),(0,e.createTextVNode)(". Defining a different state for either is remembered for each"),(0,e.createTextVNode)(" "),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"good",children:"note"}),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"ul",null,[(0,e.createVNode)(1,"li",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"Example:"}),(0,e.createTextVNode)("\xA0"),(0,e.createVNode)(1,"i",null,"C,D,E,F,G,A,B",16),(0,e.createTextVNode)(" will play a\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"good",children:"C"}),(0,e.createTextVNode)("\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"average",children:"major"}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("scale.")],0),(0,e.createVNode)(1,"li",null,[(0,e.createTextVNode)("After a note has an\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"average",children:"accidental"}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("or\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"bad",children:"octave"}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("placed, it will be remembered:\xA0"),(0,e.createVNode)(1,"i",null,"C,C4,C#,C3",16),(0,e.createTextVNode)(" is "),(0,e.createVNode)(1,"i",null,"C3,C4,C4#,C3#",16)],0)],4)],0),(0,e.createVNode)(1,"p",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"Chords"}),(0,e.createTextVNode)("\xA0can be played simply by seperating each note with a hyphen:"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,"A-C#,Cn-E,E-G#,Gn-B",16),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("A"),(0,e.createTextVNode)(" "),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"pause"}),(0,e.createTextVNode)("\xA0may be denoted by an empty chord: "),(0,e.createVNode)(1,"i",null,"C,E,,C,G",16),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("To make a chord be a different time, end it with /x, where the chord length will be length defined by\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"tempo / x"}),(0,e.createTextVNode)(",\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"eg:"}),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,"C,G/2,E/4",16),(0,e.createTextVNode)(".")],0),(0,e.createVNode)(1,"p",null,[(0,e.createTextVNode)("Combined, an example line is: "),(0,e.createVNode)(1,"i",null,"E-E4/4,F#/2,G#/8,B/8,E3-E4/4",16),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"ul",null,[(0,e.createVNode)(1,"li",null,"Lines may be up to 300 characters.",16),(0,e.createVNode)(1,"li",null,"A song may only contain up to 1,000 lines.",16)],4)],4),(0,e.createVNode)(1,"p",null,[(0,e.createTextVNode)("Lines are a series of chords, separated by commas\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"(,)"}),(0,e.createTextVNode)(", each with notes separated by hyphens\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"(-)"}),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("Every note in a chord will play together, with the chord timed by the\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"tempo"}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("as defined above.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createTextVNode)("Notes are played by the\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"good",children:"names of the note"}),(0,e.createTextVNode)(", and optionally, the\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"average",children:"accidental"}),(0,e.createTextVNode)(", and/or the"),(0,e.createTextVNode)(" "),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"bad",children:"octave number"}),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("By default, every note is\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"average",children:"natural"}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("and in\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"bad",children:"octave 3"}),(0,e.createTextVNode)(". Defining a different state for either is remembered for each"),(0,e.createTextVNode)(" "),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"good",children:"note"}),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"ul",null,[(0,e.createVNode)(1,"li",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"Example:"}),(0,e.createTextVNode)("\xA0"),(0,e.createVNode)(1,"i",null,"C,D,E,F,G,A,B",16),(0,e.createTextVNode)(" will play a\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"good",children:"C"}),(0,e.createTextVNode)("\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"average",children:"major"}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("scale.")],0),(0,e.createVNode)(1,"li",null,[(0,e.createTextVNode)("After a note has an\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"average",children:"accidental"}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("or\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"bad",children:"octave"}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("placed, it will be remembered:\xA0"),(0,e.createVNode)(1,"i",null,"C,C4,C#,C3",16),(0,e.createTextVNode)(" is "),(0,e.createVNode)(1,"i",null,"C3,C4,C4#,C3#",16)],0)],4)],0),(0,e.createVNode)(1,"p",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"Chords"}),(0,e.createTextVNode)("\xA0can be played simply by seperating each note with a hyphen:"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,"A-C#,Cn-E,E-G#,Gn-B",16),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("A"),(0,e.createTextVNode)(" "),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"pause"}),(0,e.createTextVNode)("\xA0may be denoted by an empty chord: "),(0,e.createVNode)(1,"i",null,"C,E,,C,G",16),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("To make a chord be a different time, end it with /x, where the chord length will be length defined by\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"tempo / x"}),(0,e.createTextVNode)(",\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"eg:"}),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,"C,G/2,E/4",16),(0,e.createTextVNode)(".")],0),(0,e.createVNode)(1,"p",null,[(0,e.createTextVNode)("Combined, an example line is: "),(0,e.createVNode)(1,"i",null,"E-E4/4,F#/2,G#/8,B/8,E3-E4/4",16),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"ul",null,[(0,e.createVNode)(1,"li",null,"Lines may be up to 300 characters.",16),(0,e.createVNode)(1,"li",null,"A song may only contain up to 1,000 lines.",16)],4)],4),(0,e.createVNode)(1,"h1",null,"Instrument Advanced Settings",16),(0,e.createVNode)(1,"ul",null,[(0,e.createVNode)(1,"li",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"label",children:"Type:"}),(0,e.createTextVNode)("\xA0Whether the instrument is legacy or synthesized."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("Legacy instruments have a collection of sounds that are selectively used depending on the note to play."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("Synthesized instruments use a base sound and change its pitch to match the note to play.")],4),(0,e.createVNode)(1,"li",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"label",children:"Current:"}),(0,e.createTextVNode)("\xA0Which instrument sample to play. Some instruments can be tuned to play different samples. Experiment!")],4),(0,e.createVNode)(1,"li",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"label",children:"Note Shift/Note Transpose:"}),(0,e.createTextVNode)("\xA0The pitch to apply to all notes of the song.")],4),(0,e.createVNode)(1,"li",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"label",children:"Sustain Mode:"}),(0,e.createTextVNode)("\xA0How a played note fades out."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("Linear sustain means a note will fade out at a constant rate."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("Exponential sustain means a note will fade out at an exponential rate, sounding smoother.")],4),(0,e.createVNode)(1,"li",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"label",children:"Volume Dropoff Threshold:"}),(0,e.createTextVNode)("\xA0The volume threshold at which a note is fully stopped.")],4),(0,e.createVNode)(1,"li",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"label",children:"Sustain indefinitely last held note:"}),(0,e.createTextVNode)("\xA0Whether the last note should be sustained indefinitely.")],4)],4),(0,e.createComponentVNode)(2,o.Button,{color:"grey",content:"Close",onClick:function(){function v(){return u("help")}return v}()})]})})})},S=function(c,m){var d=(0,t.useBackend)(m),u=d.act,s=d.data,i=s.lines,v=s.playing,g=s.repeat,C=s.maxRepeats,h=s.tempo,N=s.minTempo,y=s.maxTempo,B=s.tickLag,I=s.volume,w=s.minVolume,T=s.maxVolume,A=s.ready;return(0,e.createComponentVNode)(2,o.Section,{title:"Instrument",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{icon:"info",content:"Help",onClick:function(){function x(){return u("help")}return x}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"file",content:"New",onClick:function(){function x(){return u("newsong")}return x}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"upload",content:"Import",onClick:function(){function x(){return u("import")}return x}()})],4),children:[(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Playback",children:[(0,e.createComponentVNode)(2,o.Button,{selected:v,disabled:i.length===0||g<0,icon:"play",content:"Play",onClick:function(){function x(){return u("play")}return x}()}),(0,e.createComponentVNode)(2,o.Button,{disabled:!v,icon:"stop",content:"Stop",onClick:function(){function x(){return u("stop")}return x}()})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Repeat",children:(0,e.createComponentVNode)(2,o.Slider,{animated:!0,minValue:0,maxValue:C,value:g,stepPixelSize:59,onChange:function(){function x(E,M){return u("repeat",{new:M})}return x}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Tempo",children:(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,o.Button,{disabled:h>=y,content:"-",as:"span",mr:"0.5rem",onClick:function(){function x(){return u("tempo",{new:h+B})}return x}()}),(0,a.round)(600/h)," BPM",(0,e.createComponentVNode)(2,o.Button,{disabled:h<=N,content:"+",as:"span",ml:"0.5rem",onClick:function(){function x(){return u("tempo",{new:h-B})}return x}()})]})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Volume",children:(0,e.createComponentVNode)(2,o.Slider,{animated:!0,minValue:w,maxValue:T,value:I,stepPixelSize:6,onDrag:function(){function x(E,M){return u("setvolume",{new:M})}return x}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Status",children:A?(0,e.createComponentVNode)(2,o.Box,{color:"good",children:"Ready"}):(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"Instrument Definition Error!"})})]}),(0,e.createComponentVNode)(2,b)]})},b=function(c,m){var d=(0,t.useBackend)(m),u=d.act,s=d.data,i=s.allowedInstrumentNames,v=s.instrumentLoaded,g=s.instrument,C=s.canNoteShift,h=s.noteShift,N=s.noteShiftMin,y=s.noteShiftMax,B=s.sustainMode,I=s.sustainLinearDuration,w=s.sustainExponentialDropoff,T=s.legacy,A=s.sustainDropoffVolume,x=s.sustainHeldNote,E,M;return B===1?(E="Linear",M=(0,e.createComponentVNode)(2,o.Slider,{minValue:.1,maxValue:5,value:I,step:.5,stepPixelSize:85,format:function(){function D(P){return(0,a.round)(P*100)/100+" seconds"}return D}(),onChange:function(){function D(P,R){return u("setlinearfalloff",{new:R/10})}return D}()})):B===2&&(E="Exponential",M=(0,e.createComponentVNode)(2,o.Slider,{minValue:1.025,maxValue:10,value:w,step:.01,format:function(){function D(P){return(0,a.round)(P*1e3)/1e3+"% per decisecond"}return D}(),onChange:function(){function D(P,R){return u("setexpfalloff",{new:R})}return D}()})),i.sort(),(0,e.createComponentVNode)(2,o.Box,{my:-1,children:(0,e.createComponentVNode)(2,o.Collapsible,{mt:"1rem",mb:"0",title:"Advanced",children:(0,e.createComponentVNode)(2,o.Section,{mt:-1,children:[(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Type",children:T?"Legacy":"Synthesized"}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Current",children:v?(0,e.createComponentVNode)(2,o.Dropdown,{options:i,selected:g,width:"50%",onSelected:function(){function D(P){return u("switchinstrument",{name:P})}return D}()}):(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"None!"})}),!!(!T&&C)&&(0,e.createFragment)([(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Note Shift/Note Transpose",children:(0,e.createComponentVNode)(2,o.Slider,{minValue:N,maxValue:y,value:h,stepPixelSize:2,format:function(){function D(P){return P+" keys / "+(0,a.round)(P/12*100)/100+" octaves"}return D}(),onChange:function(){function D(P,R){return u("setnoteshift",{new:R})}return D}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Sustain Mode",children:[(0,e.createComponentVNode)(2,o.Dropdown,{options:["Linear","Exponential"],selected:E,onSelected:function(){function D(P){return u("setsustainmode",{new:P})}return D}()}),M]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Volume Dropoff Threshold",children:(0,e.createComponentVNode)(2,o.Slider,{animated:!0,minValue:.01,maxValue:100,value:A,stepPixelSize:6,onChange:function(){function D(P,R){return u("setdropoffvolume",{new:R})}return D}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Sustain indefinitely last held note",children:(0,e.createComponentVNode)(2,o.Button,{selected:x,icon:x?"toggle-on":"toggle-off",content:x?"Yes":"No",onClick:function(){function D(){return u("togglesustainhold")}return D}()})})],4)]}),(0,e.createComponentVNode)(2,o.Button,{icon:"redo",content:"Reset to Default",mt:"0.5rem",onClick:function(){function D(){return u("reset")}return D}()})]})})})},p=function(c,m){var d=(0,t.useBackend)(m),u=d.act,s=d.data,i=s.playing,v=s.lines,g=s.editing;return(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"Editor",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{disabled:!g||i,icon:"plus",content:"Add Line",onClick:function(){function C(){return u("newline",{line:v.length+1})}return C}()}),(0,e.createComponentVNode)(2,o.Button,{selected:!g,icon:g?"chevron-up":"chevron-down",onClick:function(){function C(){return u("edit")}return C}()})],4),children:!!g&&(v.length>0?(0,e.createComponentVNode)(2,o.LabeledList,{children:v.map(function(C,h){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:h+1,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{disabled:i,icon:"pen",onClick:function(){function N(){return u("modifyline",{line:h+1})}return N}()}),(0,e.createComponentVNode)(2,o.Button,{disabled:i,icon:"trash",onClick:function(){function N(){return u("deleteline",{line:h+1})}return N}()})],4),children:C},h)})}):(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"Song is empty."}))})}},53385:function(L,r,n){"use strict";r.__esModule=!0,r.KeycardAuth=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.KeycardAuth=function(){function V(k,S){var b=(0,a.useBackend)(S),p=b.act,l=b.data,c=(0,e.createComponentVNode)(2,t.Section,{title:"Keycard Authentication Device",children:(0,e.createComponentVNode)(2,t.Box,{children:"This device is used to trigger certain high security events. It requires the simultaneous swipe of two high-level ID cards."})});if(!l.swiping&&!l.busy)return(0,e.createComponentVNode)(2,o.Window,{width:540,height:280,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[c,(0,e.createComponentVNode)(2,t.Section,{title:"Choose Action",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Red Alert",children:(0,e.createComponentVNode)(2,t.Button,{icon:"exclamation-triangle",disabled:!l.redAvailable,onClick:function(){function d(){return p("triggerevent",{triggerevent:"Red Alert"})}return d}(),content:"Red Alert"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"ERT",children:(0,e.createComponentVNode)(2,t.Button,{icon:"broadcast-tower",onClick:function(){function d(){return p("triggerevent",{triggerevent:"Emergency Response Team"})}return d}(),content:"Call ERT"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Emergency Maint Access",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"door-open",onClick:function(){function d(){return p("triggerevent",{triggerevent:"Grant Emergency Maintenance Access"})}return d}(),content:"Grant"}),(0,e.createComponentVNode)(2,t.Button,{icon:"door-closed",onClick:function(){function d(){return p("triggerevent",{triggerevent:"Revoke Emergency Maintenance Access"})}return d}(),content:"Revoke"})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Emergency Station-Wide Access",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"door-open",onClick:function(){function d(){return p("triggerevent",{triggerevent:"Activate Station-Wide Emergency Access"})}return d}(),content:"Grant"}),(0,e.createComponentVNode)(2,t.Button,{icon:"door-closed",onClick:function(){function d(){return p("triggerevent",{triggerevent:"Deactivate Station-Wide Emergency Access"})}return d}(),content:"Revoke"})]})]})})]})});var m=(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Waiting for YOU to swipe your ID..."});return!l.hasSwiped&&!l.ertreason&&l.event==="Emergency Response Team"?m=(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Fill out the reason for your ERT request."}):l.hasConfirm?m=(0,e.createComponentVNode)(2,t.Box,{color:"green",children:"Request Confirmed!"}):l.isRemote?m=(0,e.createComponentVNode)(2,t.Box,{color:"orange",children:"Swipe your card to CONFIRM the remote request."}):l.hasSwiped&&(m=(0,e.createComponentVNode)(2,t.Box,{color:"orange",children:"Waiting for second person to confirm..."})),(0,e.createComponentVNode)(2,o.Window,{width:540,height:265,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[c,l.event==="Emergency Response Team"&&(0,e.createComponentVNode)(2,t.Section,{title:"Reason for ERT Call",children:(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{color:l.ertreason?"":"red",icon:l.ertreason?"check":"pencil-alt",content:l.ertreason?l.ertreason:"-----",disabled:l.busy,onClick:function(){function d(){return p("ert")}return d}()})})}),(0,e.createComponentVNode)(2,t.Section,{title:l.event,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-circle-left",content:"Back",disabled:l.busy||l.hasConfirm,onClick:function(){function d(){return p("reset")}return d}()}),children:m})]})})}return V}()},58553:function(L,r,n){"use strict";r.__esModule=!0,r.KitchenMachine=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=n(75201),V=r.KitchenMachine=function(){function S(b,p){var l=(0,a.useBackend)(p),c=l.data,m=l.config,d=c.ingredients,u=c.operating,s=m.title;return(0,e.createComponentVNode)(2,o.Window,{width:400,height:320,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,f.Operating,{operating:u,name:s}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,k)}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Ingredients",children:(0,e.createComponentVNode)(2,t.Table,{className:"Ingredient__Table",children:d.map(function(i){return(0,e.createComponentVNode)(2,t.Table.Row,{tr:5,children:[(0,e.createVNode)(1,"td",null,(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:i.name}),2),(0,e.createVNode)(1,"td",null,(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,textAlign:"center",children:[i.amount," ",i.units]}),2)]},i.name)})})})})]})})})}return S}(),k=function(b,p){var l=(0,a.useBackend)(p),c=l.act,m=l.data,d=m.inactive,u=m.tooltip;return(0,e.createComponentVNode)(2,t.Section,{title:"Controls",children:(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"50%",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"power-off",disabled:d,tooltip:d?u:"",tooltipPosition:"bottom",content:"Activate",onClick:function(){function s(){return c("cook")}return s}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:"50%",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"eject",disabled:d,tooltip:d?u:"",tooltipPosition:"bottom",content:"Eject Contents",onClick:function(){function s(){return c("eject")}return s}()})})]})})}},14047:function(L,r,n){"use strict";r.__esModule=!0,r.LawManager=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.LawManager=function(){function b(p,l){var c=(0,a.useBackend)(l),m=c.act,d=c.data,u=d.isAdmin,s=d.isSlaved,i=d.isMalf,v=d.isAIMalf,g=d.view;return(0,e.createComponentVNode)(2,o.Window,{width:800,height:i?620:365,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[!!(u&&s)&&(0,e.createComponentVNode)(2,t.NoticeBox,{children:["This unit is slaved to ",s,"."]}),!!(i||v)&&(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Button,{content:"Law Management",selected:g===0,onClick:function(){function C(){return m("set_view",{set_view:0})}return C}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Lawsets",selected:g===1,onClick:function(){function C(){return m("set_view",{set_view:1})}return C}()})]}),g===0&&(0,e.createComponentVNode)(2,V),g===1&&(0,e.createComponentVNode)(2,k)]})})}return b}(),V=function(p,l){var c=(0,a.useBackend)(l),m=c.act,d=c.data,u=d.has_zeroth_laws,s=d.zeroth_laws,i=d.has_ion_laws,v=d.ion_laws,g=d.ion_law_nr,C=d.has_inherent_laws,h=d.inherent_laws,N=d.has_supplied_laws,y=d.supplied_laws,B=d.channels,I=d.channel,w=d.isMalf,T=d.isAdmin,A=d.zeroth_law,x=d.ion_law,E=d.inherent_law,M=d.supplied_law,D=d.supplied_law_position;return(0,e.createFragment)([!!u&&(0,e.createComponentVNode)(2,S,{title:"ERR_NULL_VALUE",laws:s,ctx:l}),!!i&&(0,e.createComponentVNode)(2,S,{title:g,laws:v,ctx:l}),!!C&&(0,e.createComponentVNode)(2,S,{title:"Inherent",laws:h,ctx:l}),!!N&&(0,e.createComponentVNode)(2,S,{title:"Supplied",laws:y,ctx:l}),(0,e.createComponentVNode)(2,t.Section,{title:"Statement Settings",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Statement Channel",children:B.map(function(P){return(0,e.createComponentVNode)(2,t.Button,{content:P.channel,selected:P.channel===I,onClick:function(){function R(){return m("law_channel",{law_channel:P.channel})}return R}()},P.channel)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"State Laws",children:(0,e.createComponentVNode)(2,t.Button,{content:"State Laws",onClick:function(){function P(){return m("state_laws")}return P}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Law Notification",children:(0,e.createComponentVNode)(2,t.Button,{content:"Notify",onClick:function(){function P(){return m("notify_laws")}return P}()})})]})}),!!w&&(0,e.createComponentVNode)(2,t.Section,{title:"Add Laws",children:(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{width:"10%",children:"Type"}),(0,e.createComponentVNode)(2,t.Table.Cell,{width:"60%",children:"Law"}),(0,e.createComponentVNode)(2,t.Table.Cell,{width:"10%",children:"Index"}),(0,e.createComponentVNode)(2,t.Table.Cell,{width:"20%",children:"Actions"})]}),!!(T&&!u)&&(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Zero"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:A}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"N/A"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:[(0,e.createComponentVNode)(2,t.Button,{content:"Edit",icon:"pencil-alt",onClick:function(){function P(){return m("change_zeroth_law")}return P}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Add",icon:"plus",onClick:function(){function P(){return m("add_zeroth_law")}return P}()})]})]}),(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Ion"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:x}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"N/A"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:[(0,e.createComponentVNode)(2,t.Button,{content:"Edit",icon:"pencil-alt",onClick:function(){function P(){return m("change_ion_law")}return P}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Add",icon:"plus",onClick:function(){function P(){return m("add_ion_law")}return P}()})]})]}),(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Inherent"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:E}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"N/A"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:[(0,e.createComponentVNode)(2,t.Button,{content:"Edit",icon:"pencil-alt",onClick:function(){function P(){return m("change_inherent_law")}return P}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Add",icon:"plus",onClick:function(){function P(){return m("add_inherent_law")}return P}()})]})]}),(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Supplied"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:M}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{content:D,onClick:function(){function P(){return m("change_supplied_law_position")}return P}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:[(0,e.createComponentVNode)(2,t.Button,{content:"Edit",icon:"pencil-alt",onClick:function(){function P(){return m("change_supplied_law")}return P}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Add",icon:"plus",onClick:function(){function P(){return m("add_supplied_law")}return P}()})]})]})]})})],0)},k=function(p,l){var c=(0,a.useBackend)(l),m=c.act,d=c.data,u=d.law_sets;return(0,e.createComponentVNode)(2,t.Box,{children:u.map(function(s){return(0,e.createComponentVNode)(2,t.Section,{title:s.name+" - "+s.header,buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Load Laws",icon:"download",onClick:function(){function i(){return m("transfer_laws",{transfer_laws:s.ref})}return i}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[s.laws.has_ion_laws>0&&s.laws.ion_laws.map(function(i){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:i.index,children:i.law},i.index)}),s.laws.has_zeroth_laws>0&&s.laws.zeroth_laws.map(function(i){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:i.index,children:i.law},i.index)}),s.laws.has_inherent_laws>0&&s.laws.inherent_laws.map(function(i){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:i.index,children:i.law},i.index)}),s.laws.has_supplied_laws>0&&s.laws.inherent_laws.map(function(i){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:i.index,children:i.law},i.index)})]})},s.name)})})},S=function(p,l){var c=(0,a.useBackend)(p.ctx),m=c.act,d=c.data,u=d.isMalf;return(0,e.createComponentVNode)(2,t.Section,{title:p.title+" Laws",children:(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{width:"10%",children:"Index"}),(0,e.createComponentVNode)(2,t.Table.Cell,{width:"69%",children:"Law"}),(0,e.createComponentVNode)(2,t.Table.Cell,{width:"21%",children:"State?"})]}),p.laws.map(function(s){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:s.index}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:s.law}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:[(0,e.createComponentVNode)(2,t.Button,{content:s.state?"Yes":"No",selected:s.state,onClick:function(){function i(){return m("state_law",{ref:s.ref,state_law:s.state?0:1})}return i}()}),!!u&&(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{content:"Edit",icon:"pencil-alt",onClick:function(){function i(){return m("edit_law",{edit_law:s.ref})}return i}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Delete",icon:"trash",color:"red",onClick:function(){function i(){return m("delete_law",{delete_law:s.ref})}return i}()})],4)]})]},s.law)})]})})}},5872:function(L,r,n){"use strict";r.__esModule=!0,r.LibraryComputer=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=n(99665),V=r.LibraryComputer=function(){function g(C,h){return(0,e.createComponentVNode)(2,o.Window,{width:1050,height:600,children:[(0,e.createComponentVNode)(2,f.ComplexModal),(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,l),(0,e.createComponentVNode)(2,c)]})})]})}return g}(),k=function(C,h){var N=(0,a.useBackend)(h),y=N.act,B=N.data,I=C.args,w=B.user_ckey;return(0,e.createComponentVNode)(2,t.Section,{children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Title",children:I.title}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Author",children:I.author}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Summary",children:I.summary}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Rating",children:[I.rating,(0,e.createComponentVNode)(2,t.Icon,{name:"star",color:"yellow",verticalAlign:"top"})]}),!I.isProgrammatic&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Categories",children:I.categories.join(", ")})]}),(0,e.createVNode)(1,"br"),w===I.ckey&&(0,e.createComponentVNode)(2,t.Button,{content:"Delete Book",icon:"trash",color:"red",disabled:I.isProgrammatic,onClick:function(){function T(){return y("delete_book",{bookid:I.id,user_ckey:w})}return T}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Report Book",icon:"flag",color:"red",disabled:I.isProgrammatic,onClick:function(){function T(){return(0,f.modalOpen)(h,"report_book",{bookid:I.id})}return T}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Rate Book",icon:"star",color:"caution",disabled:I.isProgrammatic,onClick:function(){function T(){return(0,f.modalOpen)(h,"rate_info",{bookid:I.id})}return T}()})]})},S=function(C,h){var N=(0,a.useBackend)(h),y=N.act,B=N.data,I=C.args,w=B.selected_report,T=B.report_categories,A=B.user_ckey;return(0,e.createComponentVNode)(2,t.Section,{level:2,m:"-1rem",pb:"1.5rem",title:"Report this book for Rule Violations",children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Title",children:I.title}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Reasons",children:(0,e.createComponentVNode)(2,t.Box,{children:T.map(function(x,E){return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{content:x.description,selected:x.category_id===w,onClick:function(){function M(){return y("set_report",{report_type:x.category_id})}return M}()}),(0,e.createVNode)(1,"br")],4,E)})})})]}),(0,e.createComponentVNode)(2,t.Button.Confirm,{bold:!0,icon:"paper-plane",content:"Submit Report",onClick:function(){function x(){return y("submit_report",{bookid:I.id,user_ckey:A})}return x}()})]})},b=function(C,h){var N=(0,a.useBackend)(h),y=N.act,B=N.data,I=B.selected_rating,w=Array(10).fill().map(function(T,A){return 1+A});return(0,e.createComponentVNode)(2,t.Stack,{children:[w.map(function(T,A){return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{bold:!0,icon:"star",color:I>=T?"caution":"default",onClick:function(){function x(){return y("set_rating",{rating_value:T})}return x}()})},A)}),(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,ml:2,fontSize:"150%",children:[I+"/10",(0,e.createComponentVNode)(2,t.Icon,{name:"star",color:"yellow",ml:.5,verticalAlign:"top"})]})]})},p=function(C,h){var N=(0,a.useBackend)(h),y=N.act,B=N.data,I=C.args,w=B.user_ckey;return(0,e.createComponentVNode)(2,t.Section,{level:2,m:"-1rem",pb:"1.5rem",children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Title",children:I.title}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Author",children:I.author}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Rating",children:[I.current_rating?I.current_rating:0,(0,e.createComponentVNode)(2,t.Icon,{name:"star",color:"yellow",ml:.5,verticalAlign:"middle"})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Total Ratings",children:I.total_ratings?I.total_ratings:0})]}),(0,e.createComponentVNode)(2,b),(0,e.createComponentVNode)(2,t.Button.Confirm,{mt:2,content:"Submit",icon:"paper-plane",onClick:function(){function T(){return y("rate_book",{bookid:I.id,user_ckey:w})}return T}()})]})},l=function(C,h){var N=(0,a.useBackend)(h),y=N.data,B=(0,a.useLocalState)(h,"tabIndex",0),I=B[0],w=B[1],T=y.login_state;return(0,e.createComponentVNode)(2,t.Stack.Item,{mb:1,children:(0,e.createComponentVNode)(2,t.Tabs,{fluid:!0,textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:I===0,onClick:function(){function A(){return w(0)}return A}(),children:"Book Archives"}),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:I===1,onClick:function(){function A(){return w(1)}return A}(),children:"Corporate Literature"}),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:I===2,onClick:function(){function A(){return w(2)}return A}(),children:"Upload Book"}),T===1&&(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:I===3,onClick:function(){function A(){return w(3)}return A}(),children:"Patron Manager"}),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:I===4,onClick:function(){function A(){return w(4)}return A}(),children:"Inventory"})]})})},c=function(C,h){var N=(0,a.useLocalState)(h,"tabIndex",0),y=N[0];switch(y){case 0:return(0,e.createComponentVNode)(2,d);case 1:return(0,e.createComponentVNode)(2,u);case 2:return(0,e.createComponentVNode)(2,s);case 3:return(0,e.createComponentVNode)(2,i);case 4:return(0,e.createComponentVNode)(2,v);default:return"You are somehow on a tab that doesn't exist! Please let a coder know."}},m=function(C,h){var N=(0,a.useBackend)(h),y=N.act,B=N.data,I=B.searchcontent,w=B.book_categories,T=B.user_ckey,A=[];return w.map(function(x){return A[x.description]=x.category_id}),(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"35%",children:[(0,e.createComponentVNode)(2,t.Box,{fontSize:"1.2rem",m:".5em",bold:!0,children:[(0,e.createComponentVNode)(2,t.Icon,{name:"edit",verticalAlign:"middle",size:1.5,mr:"1rem"}),"Search Inputs"]}),(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Title",children:(0,e.createComponentVNode)(2,t.Button,{textAlign:"left",icon:"pen",width:20,content:I.title||"Input Title",onClick:function(){function x(){return(0,f.modalOpen)(h,"edit_search_title")}return x}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Author",children:(0,e.createComponentVNode)(2,t.Button,{textAlign:"left",icon:"pen",width:20,content:I.author||"Input Author",onClick:function(){function x(){return(0,f.modalOpen)(h,"edit_search_author")}return x}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Ratings",children:(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{mr:1,width:"min-content",content:I.ratingmin,onClick:function(){function x(){return(0,f.modalOpen)(h,"edit_search_ratingmin")}return x}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:"To"}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{ml:1,width:"min-content",content:I.ratingmax,onClick:function(){function x(){return(0,f.modalOpen)(h,"edit_search_ratingmax")}return x}()})})]})})]})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:"40%",children:[(0,e.createComponentVNode)(2,t.Box,{fontSize:"1.2rem",m:".5em",bold:!0,children:[(0,e.createComponentVNode)(2,t.Icon,{name:"clipboard-list",verticalAlign:"middle",size:1.5,mr:"1rem"}),"Book Categories"]}),(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Select Categories",children:(0,e.createComponentVNode)(2,t.Box,{mt:2,children:(0,e.createComponentVNode)(2,t.Dropdown,{mt:.6,width:"190px",options:w.map(function(x){return x.description}),onSelected:function(){function x(E){return y("toggle_search_category",{category_id:A[E]})}return x}()})})})}),(0,e.createVNode)(1,"br"),w.filter(function(x){return I.categories.includes(x.category_id)}).map(function(x){return(0,e.createComponentVNode)(2,t.Button,{content:x.description,selected:!0,icon:"unlink",onClick:function(){function E(){return y("toggle_search_category",{category_id:x.category_id})}return E}()},x.category_id)})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Box,{fontSize:"1.2rem",m:".5em",bold:!0,children:[(0,e.createComponentVNode)(2,t.Icon,{name:"search-plus",verticalAlign:"middle",size:1.5,mr:"1rem"}),"Search Actions"]}),(0,e.createComponentVNode)(2,t.Button,{content:"Clear Search",icon:"eraser",onClick:function(){function x(){return y("clear_search")}return x}()}),I.ckey?(0,e.createComponentVNode)(2,t.Button,{mb:.5,content:"Stop Showing My Books",color:"bad",icon:"search",onClick:function(){function x(){return y("clear_ckey_search")}return x}()}):(0,e.createComponentVNode)(2,t.Button,{content:"Find My Books",icon:"search",onClick:function(){function x(){return y("find_users_books",{user_ckey:T})}return x}()})]})]})},d=function(C,h){var N=(0,a.useBackend)(h),y=N.act,B=N.data,I=B.external_booklist,w=B.archive_pagenumber,T=B.num_pages,A=B.login_state;return(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Book System Access",buttons:(0,e.createVNode)(1,"div",null,[(0,e.createComponentVNode)(2,t.Button,{icon:"angle-double-left",disabled:w===1,onClick:function(){function x(){return y("deincrementpagemax")}return x}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"chevron-left",disabled:w===1,onClick:function(){function x(){return y("deincrementpage")}return x}()}),(0,e.createComponentVNode)(2,t.Button,{bold:!0,content:w,onClick:function(){function x(){return(0,f.modalOpen)(h,"setpagenumber")}return x}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"chevron-right",disabled:w===T,onClick:function(){function x(){return y("incrementpage")}return x}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"angle-double-right",disabled:w===T,onClick:function(){function x(){return y("incrementpagemax")}return x}()})],4),children:[(0,e.createComponentVNode)(2,m),(0,e.createVNode)(1,"hr"),(0,e.createComponentVNode)(2,t.Table,{className:"Library__Booklist",children:[(0,e.createComponentVNode)(2,t.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"SSID"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Title"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Author"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Ratings"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Category"}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"middle",children:"Actions"})]}),I.map(function(x){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:x.id}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"book",mr:.5}),x.title.length>45?x.title.substr(0,45)+"...":x.title]}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:x.author.length>30?x.author.substr(0,30)+"...":x.author}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:[x.rating,(0,e.createComponentVNode)(2,t.Icon,{name:"star",ml:.5,color:"yellow",verticalAlign:"middle"})]}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:x.categories.join(", ").substr(0,45)}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"right",children:[A===1&&(0,e.createComponentVNode)(2,t.Button,{content:"Order",icon:"print",onClick:function(){function E(){return y("order_external_book",{bookid:x.id})}return E}()}),(0,e.createComponentVNode)(2,t.Button,{content:"More...",onClick:function(){function E(){return(0,f.modalOpen)(h,"expand_info",{bookid:x.id})}return E}()})]})]},x.id)})]})]})},u=function(C,h){var N=(0,a.useBackend)(h),y=N.act,B=N.data,I=B.programmatic_booklist,w=B.login_state;return(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Corporate Book Catalog",children:(0,e.createComponentVNode)(2,t.Table,{className:"Library__Booklist",children:[(0,e.createComponentVNode)(2,t.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"SSID"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Title"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Author"}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"middle",children:"Actions"})]}),I.map(function(T,A){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:T.id}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"book",mr:2}),T.title]}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:T.author}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"right",children:[w===1&&(0,e.createComponentVNode)(2,t.Button,{content:"Order",icon:"print",onClick:function(){function x(){return y("order_programmatic_book",{bookid:T.id})}return x}()}),(0,e.createComponentVNode)(2,t.Button,{content:"More...",onClick:function(){function x(){return(0,f.modalOpen)(h,"expand_info",{bookid:T.id})}return x}()})]})]},A)})]})})},s=function(C,h){var N=(0,a.useBackend)(h),y=N.act,B=N.data,I=B.selectedbook,w=B.book_categories,T=B.user_ckey,A=[];return w.map(function(x){return A[x.description]=x.category_id}),(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Book System Upload",buttons:(0,e.createComponentVNode)(2,t.Button.Confirm,{bold:!0,width:9.5,icon:"upload",disabled:I.copyright,content:"Upload Book",onClick:function(){function x(){return y("uploadbook",{user_ckey:T})}return x}()}),children:[I.copyright?(0,e.createComponentVNode)(2,t.NoticeBox,{color:"red",children:"WARNING: You cannot upload or modify the attributes of a copyrighted book"}):(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Box,{ml:15,mb:3,fontSize:"1.2rem",bold:!0,children:[(0,e.createComponentVNode)(2,t.Icon,{name:"search-plus",verticalAlign:"middle",size:3,mr:2}),"Book Uploader"]}),(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Title",children:(0,e.createComponentVNode)(2,t.Button,{width:20,textAlign:"left",icon:"pen",disabled:I.copyright,content:I.title,onClick:function(){function x(){return(0,f.modalOpen)(h,"edit_selected_title")}return x}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Author",children:(0,e.createComponentVNode)(2,t.Button,{width:20,textAlign:"left",icon:"pen",disabled:I.copyright,content:I.author,onClick:function(){function x(){return(0,f.modalOpen)(h,"edit_selected_author")}return x}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Select Categories",children:(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Dropdown,{width:"240px",options:w.map(function(x){return x.description}),onSelected:function(){function x(E){return y("toggle_upload_category",{category_id:A[E]})}return x}()})})})]}),(0,e.createVNode)(1,"br"),w.filter(function(x){return I.categories.includes(x.category_id)}).map(function(x){return(0,e.createComponentVNode)(2,t.Button,{content:x.description,disabled:I.copyright,selected:!0,icon:"unlink",onClick:function(){function E(){return y("toggle_upload_category",{category_id:x.category_id})}return E}()},x.category_id)})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{mr:75,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Summary",children:(0,e.createComponentVNode)(2,t.Button,{icon:"pen",width:"auto",disabled:I.copyright,content:"Edit Summary",onClick:function(){function x(){return(0,f.modalOpen)(h,"edit_selected_summary")}return x}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{children:I.summary})]})})]})]})},i=function(C,h){var N=(0,a.useBackend)(h),y=N.act,B=N.data,I=B.checkout_data;return(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Checked Out Books",children:(0,e.createComponentVNode)(2,t.Table,{className:"Library__Booklist",children:[(0,e.createComponentVNode)(2,t.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Patron"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Title"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Time Left"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Actions"})]}),I.map(function(w,T){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:[(0,e.createComponentVNode)(2,t.Icon,{name:"user-tag"}),w.patron_name]}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:w.title}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:w.timeleft>=0?w.timeleft:"LATE"}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:(0,e.createComponentVNode)(2,t.Button,{content:"Mark Lost",icon:"flag",color:"bad",disabled:w.timeleft>=0,onClick:function(){function A(){return y("reportlost",{libraryid:w.libraryid})}return A}()})})]},T)})]})})},v=function(C,h){var N=(0,a.useBackend)(h),y=N.act,B=N.data,I=B.inventory_list;return(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Library Inventory",children:(0,e.createComponentVNode)(2,t.Table,{className:"Library__Booklist",children:[(0,e.createComponentVNode)(2,t.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"LIB ID"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Title"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Author"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Status"})]}),I.map(function(w,T){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:w.libraryid}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"book"})," ",w.title]}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:w.author}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:w.checked_out?"Checked Out":"Available"})]},T)})]})})};(0,f.modalRegisterBodyOverride)("expand_info",k),(0,f.modalRegisterBodyOverride)("report_book",S),(0,f.modalRegisterBodyOverride)("rate_info",p)},37782:function(L,r,n){"use strict";r.__esModule=!0,r.LibraryManager=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=n(99665),V=r.LibraryManager=function(){function l(c,m){return(0,e.createComponentVNode)(2,o.Window,{width:600,height:600,children:[(0,e.createComponentVNode)(2,f.ComplexModal),(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,className:"Layout__content--flexColumn",children:(0,e.createComponentVNode)(2,k)})]})}return l}(),k=function(c,m){var d=(0,a.useBackend)(m),u=d.act,s=d.data,i=s.pagestate;switch(i){case 1:return(0,e.createComponentVNode)(2,S);case 2:return(0,e.createComponentVNode)(2,p);case 3:return(0,e.createComponentVNode)(2,b);default:return"WE SHOULDN'T BE HERE!"}},S=function(c,m){var d=(0,a.useBackend)(m),u=d.act,s=d.data;return(0,e.createComponentVNode)(2,t.Section,{children:[(0,e.createComponentVNode)(2,t.Box,{fontSize:"1.4rem",bold:!0,children:[(0,e.createComponentVNode)(2,t.Icon,{name:"user-shield",verticalAlign:"middle",size:3,mr:"1rem"}),"Library Manager"]}),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Button,{icon:"trash",width:"auto",color:"danger",content:"Delete Book by SSID",onClick:function(){function i(){return(0,f.modalOpen)(m,"specify_ssid_delete")}return i}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"user-slash",width:"auto",color:"danger",content:"Delete All Books By CKEY",onClick:function(){function i(){return(0,f.modalOpen)(m,"specify_ckey_delete")}return i}()}),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Button,{icon:"search",width:"auto",content:"View All Books By CKEY",onClick:function(){function i(){return(0,f.modalOpen)(m,"specify_ckey_search")}return i}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"search",width:"auto",content:"View All Reported Books",onClick:function(){function i(){return u("view_reported_books")}return i}()})]})},b=function(c,m){var d=(0,a.useBackend)(m),u=d.act,s=d.data,i=s.reports;return(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.Table,{className:"Library__Booklist",children:[(0,e.createComponentVNode)(2,t.Box,{fontSize:"1.2rem",bold:!0,children:[(0,e.createComponentVNode)(2,t.Icon,{name:"user-secret",verticalAlign:"middle",size:2,mr:"1rem"}),(0,e.createVNode)(1,"br"),"All Reported Books",(0,e.createVNode)(1,"br")]}),(0,e.createComponentVNode)(2,t.Button,{content:"Return to Main",icon:"arrow-alt-circle-left",onClick:function(){function v(){return u("return")}return v}()}),(0,e.createComponentVNode)(2,t.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Uploader CKEY"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"SSID"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Title"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Author"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Report Type"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Reporter Ckey"}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"middle",children:"Administrative Actions"})]}),i.map(function(v){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:v.uploader_ckey}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:v.id}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"book"}),v.title]}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:v.author}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:v.report_description}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:v.reporter_ckey}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:[(0,e.createComponentVNode)(2,t.Button.Confirm,{content:"Delete",icon:"trash",onClick:function(){function g(){return u("delete_book",{bookid:v.id})}return g}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Unflag",icon:"flag",color:"caution",onClick:function(){function g(){return u("unflag_book",{bookid:v.id})}return g}()}),(0,e.createComponentVNode)(2,t.Button,{content:"View",onClick:function(){function g(){return u("view_book",{bookid:v.id})}return g}()})]})]},v.id)})]})})},p=function(c,m){var d=(0,a.useBackend)(m),u=d.act,s=d.data,i=s.ckey,v=s.booklist;return(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.Table,{className:"Library__Booklist",children:[(0,e.createComponentVNode)(2,t.Box,{fontSize:"1.2rem",bold:!0,children:[(0,e.createComponentVNode)(2,t.Icon,{name:"user",verticalAlign:"middle",size:2,mr:"1rem"}),(0,e.createVNode)(1,"br"),"Books uploaded by ",i,(0,e.createVNode)(1,"br")]}),(0,e.createComponentVNode)(2,t.Button,{mt:1,content:"Return to Main",icon:"arrow-alt-circle-left",onClick:function(){function g(){return u("return")}return g}()}),(0,e.createComponentVNode)(2,t.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"SSID"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Title"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Author"}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"middle",children:"Administrative Actions"})]}),v.map(function(g){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:g.id}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"book"}),g.title]}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:g.author}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"right",children:[(0,e.createComponentVNode)(2,t.Button.Confirm,{content:"Delete",icon:"trash",color:"bad",onClick:function(){function C(){return u("delete_book",{bookid:g.id})}return C}()}),(0,e.createComponentVNode)(2,t.Button,{content:"View",onClick:function(){function C(){return u("view_book",{bookid:g.id})}return C}()})]})]},g.id)})]})})}},26133:function(L,r,n){"use strict";r.__esModule=!0,r.ListInputModal=void 0;var e=n(96524),a=n(14299),t=n(15113),o=n(24674),f=n(17899),V=n(68100),k=n(45493),S=r.ListInputModal=function(){function l(c,m){var d=(0,f.useBackend)(m),u=d.act,s=d.data,i=s.items,v=i===void 0?[]:i,g=s.message,C=g===void 0?"":g,h=s.init_value,N=s.timeout,y=s.title,B=(0,f.useLocalState)(m,"selected",v.indexOf(h)),I=B[0],w=B[1],T=(0,f.useLocalState)(m,"searchBarVisible",v.length>10),A=T[0],x=T[1],E=(0,f.useLocalState)(m,"searchQuery",""),M=E[0],D=E[1],P=function(){function X(Y){var J=z.length-1;if(Y===V.KEY_DOWN)if(I===null||I===J){var ie;w(0),(ie=document.getElementById("0"))==null||ie.scrollIntoView()}else{var ae;w(I+1),(ae=document.getElementById((I+1).toString()))==null||ae.scrollIntoView()}else if(Y===V.KEY_UP)if(I===null||I===0){var fe;w(J),(fe=document.getElementById(J.toString()))==null||fe.scrollIntoView()}else{var pe;w(I-1),(pe=document.getElementById((I-1).toString()))==null||pe.scrollIntoView()}}return X}(),R=function(){function X(Y){Y!==I&&w(Y)}return X}(),j=function(){function X(){x(!1),x(!0)}return X}(),F=function(){function X(Y){var J=String.fromCharCode(Y),ie=v.find(function(pe){return pe==null?void 0:pe.toLowerCase().startsWith(J==null?void 0:J.toLowerCase())});if(ie){var ae,fe=v.indexOf(ie);w(fe),(ae=document.getElementById(fe.toString()))==null||ae.scrollIntoView()}}return X}(),U=function(){function X(Y){var J;Y!==M&&(D(Y),w(0),(J=document.getElementById("0"))==null||J.scrollIntoView())}return X}(),_=function(){function X(){x(!A),D("")}return X}(),z=v.filter(function(X){return X==null?void 0:X.toLowerCase().includes(M.toLowerCase())}),G=330+Math.ceil(C.length/3);return A||setTimeout(function(){var X;return(X=document.getElementById(I.toString()))==null?void 0:X.focus()},1),(0,e.createComponentVNode)(2,k.Window,{title:y,width:325,height:G,children:[N&&(0,e.createComponentVNode)(2,a.Loader,{value:N}),(0,e.createComponentVNode)(2,k.Window.Content,{onKeyDown:function(){function X(Y){var J=window.event?Y.which:Y.keyCode;(J===V.KEY_DOWN||J===V.KEY_UP)&&(Y.preventDefault(),P(J)),J===V.KEY_ENTER&&(Y.preventDefault(),u("submit",{entry:z[I]})),!A&&J>=V.KEY_A&&J<=V.KEY_Z&&(Y.preventDefault(),F(J)),J===V.KEY_ESCAPE&&(Y.preventDefault(),u("cancel"))}return X}(),children:(0,e.createComponentVNode)(2,o.Section,{buttons:(0,e.createComponentVNode)(2,o.Button,{compact:!0,icon:A?"search":"font",selected:!0,tooltip:A?"Search Mode. Type to search or use arrow keys to select manually.":"Hotkey Mode. Type a letter to jump to the first match. Enter to select.",tooltipPosition:"left",onClick:function(){function X(){return _()}return X}()}),className:"ListInput__Section",fill:!0,title:C,children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,b,{filteredItems:z,onClick:R,onFocusSearch:j,searchBarVisible:A,selected:I})}),(0,e.createComponentVNode)(2,o.Stack.Item,{m:0,children:A&&(0,e.createComponentVNode)(2,p,{filteredItems:z,onSearch:U,searchQuery:M,selected:I})}),(0,e.createComponentVNode)(2,o.Stack.Item,{mt:.5,children:(0,e.createComponentVNode)(2,t.InputButtons,{input:z[I]})})]})})})]})}return l}(),b=function(c,m){var d=(0,f.useBackend)(m),u=d.act,s=c.filteredItems,i=c.onClick,v=c.onFocusSearch,g=c.searchBarVisible,C=c.selected;return(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,tabIndex:0,children:s.map(function(h,N){return(0,e.createComponentVNode)(2,o.Button,{fluid:!0,color:"transparent",id:N,onClick:function(){function y(){return i(N)}return y}(),onDblClick:function(){function y(B){B.preventDefault(),u("submit",{entry:s[C]})}return y}(),onKeyDown:function(){function y(B){var I=window.event?B.which:B.keyCode;g&&I>=V.KEY_A&&I<=V.KEY_Z&&(B.preventDefault(),v())}return y}(),selected:N===C,style:{animation:"none",transition:"none"},children:h.replace(/^\w/,function(y){return y.toUpperCase()})},N)})})},p=function(c,m){var d=(0,f.useBackend)(m),u=d.act,s=c.filteredItems,i=c.onSearch,v=c.searchQuery,g=c.selected;return(0,e.createComponentVNode)(2,o.Input,{width:"100%",autoFocus:!0,autoSelect:!0,onEnter:function(){function C(h){h.preventDefault(),u("submit",{entry:s[g]})}return C}(),onInput:function(){function C(h,N){return i(N)}return C}(),placeholder:"Search...",value:v})}},71963:function(L,r,n){"use strict";r.__esModule=!0,r.MODsuitContent=r.MODsuit=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=function(I,w){var T=I.name,A=I.value,x=I.module_ref,E=(0,a.useBackend)(w),M=E.act;return(0,e.createComponentVNode)(2,t.NumberInput,{value:A,minValue:-50,maxValue:50,stepPixelSize:5,width:"39px",onChange:function(){function D(P,R){return M("configure",{key:T,value:R,ref:x})}return D}()})},V=function(I,w){var T=I.name,A=I.value,x=I.module_ref,E=(0,a.useBackend)(w),M=E.act;return(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:A,onClick:function(){function D(){return M("configure",{key:T,value:!A,ref:x})}return D}()})},k=function(I,w){var T=I.name,A=I.value,x=I.module_ref,E=(0,a.useBackend)(w),M=E.act;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{icon:"paint-brush",onClick:function(){function D(){return M("configure",{key:T,ref:x})}return D}()}),(0,e.createComponentVNode)(2,t.ColorBox,{color:A,mr:.5})],4)},S=function(I,w){var T=I.name,A=I.value,x=I.values,E=I.module_ref,M=(0,a.useBackend)(w),D=M.act;return(0,e.createComponentVNode)(2,t.Dropdown,{displayText:A,options:x,onSelected:function(){function P(R){return D("configure",{key:T,value:R,ref:E})}return P}()})},b=function(I,w){var T=I.name,A=I.display_name,x=I.type,E=I.value,M=I.values,D=I.module_ref,P={number:(0,e.normalizeProps)((0,e.createComponentVNode)(2,f,Object.assign({},I))),bool:(0,e.normalizeProps)((0,e.createComponentVNode)(2,V,Object.assign({},I))),color:(0,e.normalizeProps)((0,e.createComponentVNode)(2,k,Object.assign({},I))),list:(0,e.normalizeProps)((0,e.createComponentVNode)(2,S,Object.assign({},I)))};return(0,e.createComponentVNode)(2,t.Box,{children:[A,": ",P[x]]})},p=function(I,w){var T=I.active,A=I.userradiated,x=I.usertoxins,E=I.usermaxtoxins,M=I.threatlevel;return(0,e.createComponentVNode)(2,t.Stack,{fill:!0,textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Radiation Level",color:T&&A?"bad":"good",children:T&&A?"IRRADIATED!":"RADIATION-FREE"})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Toxins Level",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:T?x/E:0,ranges:{good:[-1/0,.2],average:[.2,.5],bad:[.5,1/0]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:x})})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Hazard Level",color:T&&M?"bad":"good",bold:!0,children:T&&M?M:0})})]})},l=function(I,w){var T=I.active,A=I.userhealth,x=I.usermaxhealth,E=I.userbrute,M=I.userburn,D=I.usertoxin,P=I.useroxy;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{title:"Health",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:T?A/x:0,ranges:{good:[.5,1/0],average:[.2,.5],bad:[-1/0,.2]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:T?A:0})})}),(0,e.createComponentVNode)(2,t.Stack,{textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Brute",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:T?E/x:0,ranges:{good:[-1/0,.2],average:[.2,.5],bad:[.5,1/0]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:T?E:0})})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Burn",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:T?M/x:0,ranges:{good:[-1/0,.2],average:[.2,.5],bad:[.5,1/0]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:T?M:0})})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Toxin",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:T?D/x:0,ranges:{good:[-1/0,.2],average:[.2,.5],bad:[.5,1/0]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:T?D:0})})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Suffocation",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:T?P/x:0,ranges:{good:[-1/0,.2],average:[.2,.5],bad:[.5,1/0]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:T?P:0})})})})]})],4)},c=function(I,w){var T=I.active,A=I.statustime,x=I.statusid,E=I.statushealth,M=I.statusmaxhealth,D=I.statusbrute,P=I.statusburn,R=I.statustoxin,j=I.statusoxy,F=I.statustemp,U=I.statusnutrition,_=I.statusfingerprints,z=I.statusdna,G=I.statusviruses;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Stack,{textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Operation Time",children:T?A:"00:00:00"})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Operation Number",children:T?x||"0":"???"})})]}),(0,e.createComponentVNode)(2,t.Section,{title:"Health",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:T?E/M:0,ranges:{good:[.5,1/0],average:[.2,.5],bad:[-1/0,.2]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:T?E:0})})}),(0,e.createComponentVNode)(2,t.Stack,{textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Brute",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:T?D/M:0,ranges:{good:[-1/0,.2],average:[.2,.5],bad:[.5,1/0]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:T?D:0})})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Burn",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:T?P/M:0,ranges:{good:[-1/0,.2],average:[.2,.5],bad:[.5,1/0]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:T?P:0})})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Toxin",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:T?R/M:0,ranges:{good:[-1/0,.2],average:[.2,.5],bad:[.5,1/0]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:R})})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Suffocation",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:T?j/M:0,ranges:{good:[-1/0,.2],average:[.2,.5],bad:[.5,1/0]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:j})})})})]}),(0,e.createComponentVNode)(2,t.Stack,{textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Body Temperature",children:T?F:0})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Nutrition Status",children:T?U:0})})]}),(0,e.createComponentVNode)(2,t.Section,{title:"DNA",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Fingerprints",children:T?_:"???"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Unique Enzymes",children:T?z:"???"})]})}),!!T&&!!G&&(0,e.createComponentVNode)(2,t.Section,{title:"Diseases",children:(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"signature",tooltip:"Name",tooltipPosition:"top"})}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"wind",tooltip:"Type",tooltipPosition:"top"})}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"bolt",tooltip:"Stage",tooltipPosition:"top"})}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"flask",tooltip:"Cure",tooltipPosition:"top"})})]}),G.map(function(X){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:X.name}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:X.type}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:[X.stage,"/",X.maxstage]}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:X.cure})]},X.name)})]})})],0)},m={rad_counter:p,health_analyzer:l,status_readout:c},d=function(){return(0,e.createComponentVNode)(2,t.Section,{align:"center",fill:!0,children:[(0,e.createComponentVNode)(2,t.Icon,{color:"red",name:"exclamation-triangle",size:15}),(0,e.createComponentVNode)(2,t.Box,{fontSize:"30px",color:"red",children:"ERROR: INTERFACE UNRESPONSIVE"})]})},u=function(I,w){var T=(0,a.useBackend)(w),A=T.act,x=T.data;return(0,e.createComponentVNode)(2,t.Dimmer,{children:(0,e.createComponentVNode)(2,t.Stack,{children:(0,e.createComponentVNode)(2,t.Stack.Item,{fontSize:"16px",color:"blue",children:"SUIT UNPOWERED"})})})},s=function(I,w){var T=I.configuration_data,A=I.module_ref,x=Object.keys(T);return(0,e.createComponentVNode)(2,t.Dimmer,{backgroundColor:"rgba(0, 0, 0, 0.8)",children:(0,e.createComponentVNode)(2,t.Stack,{vertical:!0,children:[x.map(function(E){var M=T[E];return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,b,{name:E,display_name:M.display_name,type:M.type,value:M.value,values:M.values,module_ref:A})},M.key)}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,onClick:I.onExit,icon:"times",textAlign:"center",children:"Exit"})})})]})})},i=function(I){switch(I){case 1:return"Use";case 2:return"Toggle";case 3:return"Select"}},v=function(I,w){var T=(0,a.useBackend)(w),A=T.act,x=T.data,E=x.active,M=x.malfunctioning,D=x.locked,P=x.open,R=x.selected_module,j=x.complexity,F=x.complexity_max,U=x.wearer_name,_=x.wearer_job,z=M?"Malfunctioning":E?"Active":"Inactive";return(0,e.createComponentVNode)(2,t.Section,{title:"Parameters",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"power-off",content:E?"Deactivate":"Activate",onClick:function(){function G(){return A("activate")}return G}()}),children:z}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"ID Lock",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:D?"lock-open":"lock",content:D?"Unlock":"Lock",onClick:function(){function G(){return A("lock")}return G}()}),children:D?"Locked":"Unlocked"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cover",children:P?"Open":"Closed"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Selected Module",children:R||"None"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Complexity",children:[j," (",F,")"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Occupant",children:[U,", ",_]})]})})},g=function(I,w){var T=(0,a.useBackend)(w),A=T.act,x=T.data,E=x.active,M=x.control,D=x.helmet,P=x.chestplate,R=x.gauntlets,j=x.boots,F=x.core,U=x.charge;return(0,e.createComponentVNode)(2,t.Section,{title:"Hardware",children:[(0,e.createComponentVNode)(2,t.Collapsible,{title:"Parts",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Control Unit",children:M}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Helmet",children:D||"None"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Chestplate",children:P||"None"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Gauntlets",children:R||"None"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Boots",children:j||"None"})]})}),(0,e.createComponentVNode)(2,t.Collapsible,{title:"Core",children:F&&(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Core Type",children:F}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Core Charge",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:U/100,content:U+"%",ranges:{good:[.6,1/0],average:[.3,.6],bad:[-1/0,.3]}})})]})||(0,e.createComponentVNode)(2,t.Box,{color:"bad",textAlign:"center",children:"No Core Detected"})})]})},C=function(I,w){var T=(0,a.useBackend)(w),A=T.act,x=T.data,E=x.active,M=x.modules,D=M.filter(function(P){return!!P.id});return(0,e.createComponentVNode)(2,t.Section,{title:"Info",children:(0,e.createComponentVNode)(2,t.Stack,{vertical:!0,children:D.length!==0&&D.map(function(P){var R=m[P.id];return(0,e.createComponentVNode)(2,t.Stack.Item,{children:[!E&&(0,e.createComponentVNode)(2,u),(0,e.normalizeProps)((0,e.createComponentVNode)(2,R,Object.assign({},P,{active:E})))]},P.ref)})||(0,e.createComponentVNode)(2,t.Box,{textAlign:"center",children:"No Info Modules Detected"})})})},h=function(I,w){var T=(0,a.useBackend)(w),A=T.act,x=T.data,E=x.complexity_max,M=x.modules,D=(0,a.useLocalState)(w,"module_configuration",null),P=D[0],R=D[1];return(0,e.createComponentVNode)(2,t.Section,{title:"Modules",fill:!0,children:(0,e.createComponentVNode)(2,t.Stack,{vertical:!0,children:M.length!==0&&M.map(function(j){return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Collapsible,{title:j.module_name,children:(0,e.createComponentVNode)(2,t.Section,{children:[P===j.ref&&(0,e.createComponentVNode)(2,s,{configuration_data:j.configuration_data,module_ref:j.ref,onExit:function(){function F(){return R(null)}return F}()}),(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"save",tooltip:"Complexity",tooltipPosition:"top"})}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"plug",tooltip:"Idle Power Cost",tooltipPosition:"top"})}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"lightbulb",tooltip:"Active Power Cost",tooltipPosition:"top"})}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"bolt",tooltip:"Use Power Cost",tooltipPosition:"top"})}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"hourglass-half",tooltip:"Cooldown",tooltipPosition:"top"})}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"tasks",tooltip:"Actions",tooltipPosition:"top"})})]}),(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:[j.module_complexity,"/",E]}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:j.idle_power}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:j.active_power}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:j.use_power}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:[j.cooldown>0&&j.cooldown/10||"0","/",j.cooldown_time/10,"s"]}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function F(){return A("select",{ref:j.ref})}return F}(),icon:"bullseye",selected:j.module_active,tooltip:i(j.module_type),tooltipPosition:"left",disabled:!j.module_type}),(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function F(){return R(j.ref)}return F}(),icon:"cog",selected:P===j.ref,tooltip:"Configure",tooltipPosition:"left",disabled:j.configuration_data.length===0}),(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function F(){return A("pin",{ref:j.ref})}return F}(),icon:"thumbtack",selected:j.pinned,tooltip:"Pin",tooltipPosition:"left",disabled:!j.module_type})]})]})]}),(0,e.createComponentVNode)(2,t.Box,{children:j.description})]})})},j.ref)})||(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Box,{textAlign:"center",children:"No Modules Detected"})})})})},N=r.MODsuitContent=function(){function B(I,w){var T=(0,a.useBackend)(w),A=T.act,x=T.data,E=x.ui_theme,M=x.interface_break;return(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!M,children:!!M&&(0,e.createComponentVNode)(2,d)||(0,e.createComponentVNode)(2,t.Stack,{vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,v)}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,g)}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,C)}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,h)})]})})}return B}(),y=r.MODsuit=function(){function B(I,w){var T=(0,a.useBackend)(w),A=T.act,x=T.data,E=x.ui_theme,M=x.interface_break;return(0,e.createComponentVNode)(2,o.Window,{theme:E,width:400,height:620,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,N)})})})}return B}()},84274:function(L,r,n){"use strict";r.__esModule=!0,r.MagnetController=void 0;var e=n(96524),a=n(36121),t=n(17899),o=n(24674),f=n(45493),V=n(99665),k=new Map([["n",{icon:"arrow-up",tooltip:"Move North"}],["e",{icon:"arrow-right",tooltip:"Move East"}],["s",{icon:"arrow-down",tooltip:"Move South"}],["w",{icon:"arrow-left",tooltip:"Move West"}],["c",{icon:"crosshairs",tooltip:"Move to Magnet"}],["r",{icon:"dice",tooltip:"Move Randomly"}]]),S=r.MagnetController=function(){function b(p,l){var c=(0,t.useBackend)(l),m=c.act,d=c.data,u=d.autolink,s=d.code,i=d.frequency,v=d.linkedMagnets,g=d.magnetConfiguration,C=d.path,h=d.pathPosition,N=d.probing,y=d.powerState,B=d.speed;return(0,e.createComponentVNode)(2,f.Window,{width:400,height:600,children:[(0,e.createComponentVNode)(2,V.ComplexModal),(0,e.createComponentVNode)(2,f.Window.Content,{scrollable:!0,children:[!u&&(0,e.createComponentVNode)(2,o.Section,{buttons:(0,e.createComponentVNode)(2,o.Button,{content:"Probe",icon:N?"spinner":"sync",iconSpin:!!N,disabled:N,onClick:function(){function I(){return m("probe_magnets")}return I}()}),title:"Magnet Linking",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Frequency",children:(0,a.toFixed)(i/10,1)}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Code",children:s})]})}),(0,e.createComponentVNode)(2,o.Section,{buttons:(0,e.createComponentVNode)(2,o.Button,{icon:y?"power-off":"times",content:y?"On":"Off",selected:y,onClick:function(){function I(){return m("toggle_power")}return I}()}),title:"Controller Configuration",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Speed",children:(0,e.createComponentVNode)(2,o.Slider,{value:B.value,minValue:B.min,maxValue:B.max,onChange:function(){function I(w,T){return m("set_speed",{speed:T})}return I}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Path",children:[Array.from(k.entries()).map(function(I){var w=I[0],T=I[1],A=T.icon,x=T.tooltip;return(0,e.createComponentVNode)(2,o.Button,{icon:A,tooltip:x,onClick:function(){function E(){return m("path_add",{code:w})}return E}()},w)}),(0,e.createComponentVNode)(2,o.Button.Confirm,{icon:"trash",confirmIcon:"trash",confirmContent:"",float:"right",tooltip:"Reset Path",tooltipPosition:"left",onClick:function(){function I(){return m("path_clear")}return I}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"file-import",float:"right",tooltip:"Manually input path",tooltipPosition:"left",onClick:function(){function I(){return(0,V.modalOpen)(l,"path_custom_input")}return I}()}),(0,e.createComponentVNode)(2,o.BlockQuote,{children:C.map(function(I,w){var T=k.get(I)||{icon:"question"},A=T.icon,x=T.tooltip;return(0,e.createComponentVNode)(2,o.Button.Confirm,{selected:w+2===h,icon:A,confirmIcon:A,confirmContent:"",tooltip:x,onClick:function(){function E(){return m("path_remove",{index:w+1,code:I})}return E}()},w)})})]})]})}),v.map(function(I,w){var T=I.uid,A=I.powerState,x=I.electricityLevel,E=I.magneticField;return(0,e.createComponentVNode)(2,o.Section,{title:"Magnet #"+(w+1)+" Configuration",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:A?"power-off":"times",content:A?"On":"Off",selected:A,onClick:function(){function M(){return m("toggle_magnet_power",{id:T})}return M}()}),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Move Speed",children:(0,e.createComponentVNode)(2,o.Slider,{value:x,minValue:g.electricityLevel.min,maxValue:g.electricityLevel.max,onChange:function(){function M(D,P){return m("set_electricity_level",{id:T,electricityLevel:P})}return M}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Field Size",children:(0,e.createComponentVNode)(2,o.Slider,{value:E,minValue:g.magneticField.min,maxValue:g.magneticField.max,onChange:function(){function M(D,P){return m("set_magnetic_field",{id:T,magneticField:P})}return M}()})})]})},T)})]})]})}return b}()},95752:function(L,r,n){"use strict";r.__esModule=!0,r.MechBayConsole=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.MechBayConsole=function(){function V(k,S){var b=(0,a.useBackend)(S),p=b.act,l=b.data,c=l.recharge_port,m=c&&c.mech,d=m&&m.cell,u=m&&m.name;return(0,e.createComponentVNode)(2,o.Window,{width:400,height:155,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:u?"Mech status: "+u:"Mech status",textAlign:"center",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"sync",content:"Sync",onClick:function(){function s(){return p("reconnect")}return s}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Integrity",children:!c&&(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No power port detected. Please re-sync."})||!m&&(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No mech detected."})||(0,e.createComponentVNode)(2,t.ProgressBar,{value:m.health/m.maxhealth,ranges:{good:[.7,1/0],average:[.3,.7],bad:[-1/0,.3]}})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power",children:!c&&(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No power port detected. Please re-sync."})||!m&&(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No mech detected."})||!d&&(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No cell is installed."})||(0,e.createComponentVNode)(2,t.ProgressBar,{value:d.charge/d.maxcharge,ranges:{good:[.7,1/0],average:[.3,.7],bad:[-1/0,.3]},children:[(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:d.charge})," / "+d.maxcharge]})})]})})})})}return V}()},53668:function(L,r,n){"use strict";r.__esModule=!0,r.MechaControlConsole=void 0;var e=n(96524),a=n(36121),t=n(17899),o=n(24674),f=n(45493),V=n(78234),k=r.MechaControlConsole=function(){function S(b,p){var l=(0,t.useBackend)(p),c=l.act,m=l.data,d=m.beacons,u=m.stored_data;return u.length?(0,e.createComponentVNode)(2,f.Window,{width:420,height:500,children:(0,e.createComponentVNode)(2,f.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,o.Section,{title:"Log",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"window-close",onClick:function(){function s(){return c("clear_log")}return s}()}),children:u.map(function(s){return(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,o.Box,{color:"label",children:["(",s.time,")"]}),(0,e.createComponentVNode)(2,o.Box,{children:(0,V.decodeHtmlEntities)(s.message)})]},s.time)})})})}):(0,e.createComponentVNode)(2,f.Window,{width:420,height:500,children:(0,e.createComponentVNode)(2,f.Window.Content,{scrollable:!0,children:d.length&&d.map(function(s){return(0,e.createComponentVNode)(2,o.Section,{title:s.name,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{icon:"comment",onClick:function(){function i(){return c("send_message",{mt:s.uid})}return i}(),children:"Message"}),(0,e.createComponentVNode)(2,o.Button,{icon:"eye",onClick:function(){function i(){return c("get_log",{mt:s.uid})}return i}(),children:"View Log"}),(0,e.createComponentVNode)(2,o.Button.Confirm,{color:"red",content:"Sabotage",icon:"bomb",onClick:function(){function i(){return c("shock",{mt:s.uid})}return i}()})],4),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Health",children:(0,e.createComponentVNode)(2,o.ProgressBar,{ranges:{good:[s.maxHealth*.75,1/0],average:[s.maxHealth*.5,s.maxHealth*.75],bad:[-1/0,s.maxHealth*.5]},value:s.health,maxValue:s.maxHealth})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Cell Charge",children:s.cell&&(0,e.createComponentVNode)(2,o.ProgressBar,{ranges:{good:[s.cellMaxCharge*.75,1/0],average:[s.cellMaxCharge*.5,s.cellMaxCharge*.75],bad:[-1/0,s.cellMaxCharge*.5]},value:s.cellCharge,maxValue:s.cellMaxCharge})||(0,e.createComponentVNode)(2,o.NoticeBox,{children:"No Cell Installed"})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Air Tank",children:[s.airtank,"kPa"]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Pilot",children:s.pilot||"Unoccupied"}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Location",children:(0,V.toTitleCase)(s.location)||"Unknown"}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Active Equipment",children:s.active||"None"}),s.cargoMax&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Cargo Space",children:(0,e.createComponentVNode)(2,o.ProgressBar,{ranges:{bad:[s.cargoMax*.75,1/0],average:[s.cargoMax*.5,s.cargoMax*.75],good:[-1/0,s.cargoMax*.5]},value:s.cargoUsed,maxValue:s.cargoMax})})||null]})},s.name)})||(0,e.createComponentVNode)(2,o.NoticeBox,{children:"No mecha beacons found."})})})}return S}()},96467:function(L,r,n){"use strict";r.__esModule=!0,r.MedicalRecords=void 0;var e=n(96524),a=n(78234),t=n(17899),o=n(24674),f=n(99665),V=n(45493),k=n(68159),S=n(27527),b=n(84537),p={Minor:"lightgray",Medium:"good",Harmful:"average","Dangerous!":"bad","BIOHAZARD THREAT!":"darkred"},l={"*Deceased*":"deceased","*SSD*":"ssd","Physically Unfit":"physically_unfit",Disabled:"disabled"},c=function(A,x){(0,f.modalOpen)(A,"edit",{field:x.edit,value:x.value})},m=function(A,x){var E=A.args;return(0,e.createComponentVNode)(2,o.Section,{m:"-1rem",pb:"1.5rem",title:E.name||"Virus",children:(0,e.createComponentVNode)(2,o.Box,{mx:"0.5rem",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Number of stages",children:E.max_stages}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Spread",children:[E.spread_text," Transmission"]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Possible cure",children:E.cure}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Notes",children:E.desc}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Severity",color:p[E.severity],children:E.severity})]})})})},d=r.MedicalRecords=function(){function T(A,x){var E=(0,t.useBackend)(x),M=E.data,D=M.loginState,P=M.screen;if(!D.logged_in)return(0,e.createComponentVNode)(2,V.Window,{width:800,height:900,children:(0,e.createComponentVNode)(2,V.Window.Content,{children:(0,e.createComponentVNode)(2,S.LoginScreen)})});var R;return P===2?R=(0,e.createComponentVNode)(2,u):P===3?R=(0,e.createComponentVNode)(2,s):P===4?R=(0,e.createComponentVNode)(2,i):P===5?R=(0,e.createComponentVNode)(2,h):P===6?R=(0,e.createComponentVNode)(2,N):P===7&&(R=(0,e.createComponentVNode)(2,y)),(0,e.createComponentVNode)(2,V.Window,{width:800,height:900,children:[(0,e.createComponentVNode)(2,f.ComplexModal),(0,e.createComponentVNode)(2,V.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,k.LoginInfo),(0,e.createComponentVNode)(2,b.TemporaryNotice),(0,e.createComponentVNode)(2,w),R]})})]})}return T}(),u=function(A,x){var E=(0,t.useBackend)(x),M=E.act,D=E.data,P=D.records,R=(0,t.useLocalState)(x,"searchText",""),j=R[0],F=R[1],U=(0,t.useLocalState)(x,"sortId","name"),_=U[0],z=U[1],G=(0,t.useLocalState)(x,"sortOrder",!0),X=G[0],Y=G[1];return(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{content:"Manage Records",icon:"wrench",ml:"0.25rem",onClick:function(){function J(){return M("screen",{screen:3})}return J}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Input,{fluid:!0,placeholder:"Search by Name, ID, Physical Status, or Mental Status",onInput:function(){function J(ie,ae){return F(ae)}return J}()})})]})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,mt:.5,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,o.Table,{className:"MedicalRecords__list",children:[(0,e.createComponentVNode)(2,o.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,B,{id:"name",children:"Name"}),(0,e.createComponentVNode)(2,B,{id:"id",children:"ID"}),(0,e.createComponentVNode)(2,B,{id:"rank",children:"Assignment"}),(0,e.createComponentVNode)(2,B,{id:"p_stat",children:"Patient Status"}),(0,e.createComponentVNode)(2,B,{id:"m_stat",children:"Mental Status"})]}),P.filter((0,a.createSearch)(j,function(J){return J.name+"|"+J.id+"|"+J.rank+"|"+J.p_stat+"|"+J.m_stat})).sort(function(J,ie){var ae=X?1:-1;return J[_].localeCompare(ie[_])*ae}).map(function(J){return(0,e.createComponentVNode)(2,o.Table.Row,{className:"MedicalRecords__listRow--"+l[J.p_stat],onClick:function(){function ie(){return M("view_record",{view_record:J.ref})}return ie}(),children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:"user"})," ",J.name]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:J.id}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:J.rank}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:J.p_stat}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:J.m_stat})]},J.id)})]})})})],4)},s=function(A,x){var E=(0,t.useBackend)(x),M=E.act;return(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,lineHeight:3,color:"translucent",icon:"download",content:"Backup to Disk",disabled:!0})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:[(0,e.createComponentVNode)(2,o.Button,{fluid:!0,lineHeight:3,color:"translucent",icon:"upload",content:"Upload from Disk",my:"0.5rem",disabled:!0})," "]}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Button.Confirm,{fluid:!0,lineHeight:3,icon:"trash",color:"translucent",content:"Delete All Medical Records",onClick:function(){function D(){return M("del_all_med_records")}return D}()})})]})})},i=function(A,x){var E=(0,t.useBackend)(x),M=E.act,D=E.data,P=D.medical,R=D.printing;return(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Stack.Item,{height:"235px",children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"General Data",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:R?"spinner":"print",disabled:R,iconSpin:!!R,content:"Print Record",ml:"0.5rem",onClick:function(){function j(){return M("print_record")}return j}()}),children:(0,e.createComponentVNode)(2,v)})}),!P||!P.fields?(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,color:"bad",children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,title:"Medical Data",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"pen",content:"Create New Record",onClick:function(){function j(){return M("new_med_record")}return j}()}),children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,o.Stack.Item,{bold:!0,grow:!0,textAlign:"center",fontSize:1.75,align:"center",color:"label",children:[(0,e.createComponentVNode)(2,o.Icon.Stack,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:"scroll",size:5,color:"gray"}),(0,e.createComponentVNode)(2,o.Icon,{name:"slash",size:5,color:"red"})]}),(0,e.createVNode)(1,"br"),"Medical records lost!"]})})})}):(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"Medical Data",buttons:(0,e.createComponentVNode)(2,o.Button.Confirm,{icon:"trash",disabled:!!P.empty,content:"Delete Medical Record",onClick:function(){function j(){return M("del_med_record")}return j}()}),children:(0,e.createComponentVNode)(2,g)})}),(0,e.createComponentVNode)(2,C)],4)],0)},v=function(A,x){var E=(0,t.useBackend)(x),M=E.data,D=M.general;return!D||!D.fields?(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,color:"bad",children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,children:"General records lost!"})})}):(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.LabeledList,{children:D.fields.map(function(P,R){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:P.field,children:[(0,e.createComponentVNode)(2,o.Box,{height:"20px",inline:!0,children:P.value}),!!P.edit&&(0,e.createComponentVNode)(2,o.Button,{icon:"pen",ml:"0.5rem",onClick:function(){function j(){return c(x,P)}return j}()})]},R)})})}),!!D.has_photos&&D.photos.map(function(P,R){return(0,e.createComponentVNode)(2,o.Stack.Item,{inline:!0,textAlign:"center",color:"label",ml:0,children:[(0,e.createVNode)(1,"img",null,null,1,{src:P,style:{width:"96px","margin-top":"2.5rem","margin-bottom":"0.5rem","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createVNode)(1,"br"),"Photo #",R+1]},R)})]})},g=function(A,x){var E=(0,t.useBackend)(x),M=E.act,D=E.data,P=D.medical;return!P||!P.fields?(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,color:"bad",children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,children:"Medical records lost!"})})}):(0,e.createComponentVNode)(2,o.Stack,{children:(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.LabeledList,{children:P.fields.map(function(R,j){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:R.field,preserveWhitespace:!0,children:[(0,a.decodeHtmlEntities)(R.value),!!R.edit&&(0,e.createComponentVNode)(2,o.Button,{icon:"pen",ml:"0.5rem",mb:R.line_break?"1rem":"initial",onClick:function(){function F(){return c(x,R)}return F}()})]},j)})})})})},C=function(A,x){var E=(0,t.useBackend)(x),M=E.act,D=E.data,P=D.medical;return(0,e.createComponentVNode)(2,o.Stack.Item,{height:"150px",children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"Comments/Log",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"comment",content:"Add Entry",onClick:function(){function R(){return(0,f.modalOpen)(x,"add_comment")}return R}()}),children:P.comments.length===0?(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"No comments found."}):P.comments.map(function(R,j){return(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,o.Box,{color:"label",inline:!0,children:R.header}),(0,e.createVNode)(1,"br"),R.text,(0,e.createComponentVNode)(2,o.Button,{icon:"comment-slash",color:"bad",ml:"0.5rem",onClick:function(){function F(){return M("del_comment",{del_comment:j+1})}return F}()})]},j)})})})},h=function(A,x){var E=(0,t.useBackend)(x),M=E.act,D=E.data,P=D.virus,R=(0,t.useLocalState)(x,"searchText",""),j=R[0],F=R[1],U=(0,t.useLocalState)(x,"sortId2","name"),_=U[0],z=U[1],G=(0,t.useLocalState)(x,"sortOrder2",!0),X=G[0],Y=G[1];return(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Input,{ml:"0.25rem",fluid:!0,placeholder:"Search by Name, Max Stages, or Severity",onInput:function(){function J(ie,ae){return F(ae)}return J}()})}),(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,mt:.5,children:(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,o.Table,{className:"MedicalRecords__list",children:[(0,e.createComponentVNode)(2,o.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,I,{id:"name",children:"Name"}),(0,e.createComponentVNode)(2,I,{id:"max_stages",children:"Max Stages"}),(0,e.createComponentVNode)(2,I,{id:"severity",children:"Severity"})]}),P.filter((0,a.createSearch)(j,function(J){return J.name+"|"+J.max_stages+"|"+J.severity})).sort(function(J,ie){var ae=X?1:-1;return J[_].localeCompare(ie[_])*ae}).map(function(J){return(0,e.createComponentVNode)(2,o.Table.Row,{className:"MedicalRecords__listVirus--"+J.severity,onClick:function(){function ie(){return M("vir",{vir:J.D})}return ie}(),children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:"virus"})," ",J.name]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:J.max_stages}),(0,e.createComponentVNode)(2,o.Table.Cell,{color:p[J.severity],children:J.severity})]},J.id)})]})})})})],4)},N=function(A,x){var E=(0,t.useBackend)(x),M=E.act,D=E.data,P=D.goals;return(0,e.createComponentVNode)(2,o.Section,{title:"Virology Goals",fill:!0,children:(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:P.length!==0&&P.map(function(R){return(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Section,{title:R.name,children:[(0,e.createComponentVNode)(2,o.Table,{children:(0,e.createComponentVNode)(2,o.Table.Row,{header:!0,children:(0,e.createComponentVNode)(2,o.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,o.ProgressBar,{value:R.delivered,minValue:0,maxValue:R.deliverygoal,ranges:{good:[R.deliverygoal*.5,1/0],average:[R.deliverygoal*.25,R.deliverygoal*.5],bad:[-1/0,R.deliverygoal*.25]},children:[R.delivered," / ",R.deliverygoal," Units"]})})})}),(0,e.createComponentVNode)(2,o.Box,{children:R.report})]})},R.id)})||(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Box,{textAlign:"center",children:"No Goals Detected"})})})})},y=function(A,x){var E=(0,t.useBackend)(x),M=E.act,D=E.data,P=D.medbots;return P.length===0?(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,color:"bad",children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,o.Stack.Item,{bold:!0,grow:!0,textAlign:"center",fontSize:1.75,align:"center",color:"label",children:[(0,e.createComponentVNode)(2,o.Icon.Stack,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:"robot",size:5,color:"gray"}),(0,e.createComponentVNode)(2,o.Icon,{name:"slash",size:5,color:"red"})]}),(0,e.createVNode)(1,"br"),"There are no Medibots."]})})})}):(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,o.Table,{className:"MedicalRecords__list",children:[(0,e.createComponentVNode)(2,o.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Name"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Area"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Status"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Chemicals"})]}),P.map(function(R){return(0,e.createComponentVNode)(2,o.Table.Row,{className:"MedicalRecords__listMedbot--"+R.on,children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:"medical"})," ",R.name]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:[R.area||"Unknown"," (",R.x,", ",R.y,")"]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:R.on?(0,e.createComponentVNode)(2,o.Box,{color:"good",children:"Online"}):(0,e.createComponentVNode)(2,o.Box,{color:"average",children:"Offline"})}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:R.use_beaker?"Reservoir: "+R.total_volume+"/"+R.maximum_volume:"Using internal synthesizer"})]},R.id)})]})})})},B=function(A,x){var E=(0,t.useLocalState)(x,"sortId","name"),M=E[0],D=E[1],P=(0,t.useLocalState)(x,"sortOrder",!0),R=P[0],j=P[1],F=A.id,U=A.children;return(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,color:M!==F&&"transparent",onClick:function(){function _(){M===F?j(!R):(D(F),j(!0))}return _}(),children:[U,M===F&&(0,e.createComponentVNode)(2,o.Icon,{name:R?"sort-up":"sort-down",ml:"0.25rem;"})]})})},I=function(A,x){var E=(0,t.useLocalState)(x,"sortId2","name"),M=E[0],D=E[1],P=(0,t.useLocalState)(x,"sortOrder2",!0),R=P[0],j=P[1],F=A.id,U=A.children;return(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,color:M!==F&&"transparent",onClick:function(){function _(){M===F?j(!R):(D(F),j(!0))}return _}(),children:[U,M===F&&(0,e.createComponentVNode)(2,o.Icon,{name:R?"sort-up":"sort-down",ml:"0.25rem;"})]})})},w=function(A,x){var E=(0,t.useBackend)(x),M=E.act,D=E.data,P=D.screen,R=D.general;return(0,e.createComponentVNode)(2,o.Stack.Item,{m:0,children:(0,e.createComponentVNode)(2,o.Tabs,{children:[(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"list",selected:P===2,onClick:function(){function j(){M("screen",{screen:2})}return j}(),children:"List Records"}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"database",selected:P===5,onClick:function(){function j(){M("screen",{screen:5})}return j}(),children:"Virus Database"}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"vial",selected:P===6,onClick:function(){function j(){M("screen",{screen:6})}return j}(),children:"Virology Goals"}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"plus-square",selected:P===7,onClick:function(){function j(){return M("screen",{screen:7})}return j}(),children:"Medibot Tracking"}),P===3&&(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"wrench",selected:P===3,children:"Record Maintenance"}),P===4&&R&&!R.empty&&(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"file",selected:P===4,children:["Record: ",R.fields[0].value]})]})})};(0,f.modalRegisterBodyOverride)("virus",m)},68211:function(L,r,n){"use strict";r.__esModule=!0,r.MerchVendor=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=function(p,l){var c=(0,a.useBackend)(l),m=c.act,d=c.data,u=p.product,s=p.productImage,i=p.productCategory,v=d.user_money;return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,children:(0,e.createVNode)(1,"img",null,null,1,{src:"data:image/jpeg;base64,"+s,style:{"vertical-align":"middle",width:"32px",margin:"0px","margin-left":"0px"}})}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:u.name}),(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{disabled:u.price>v,icon:"shopping-cart",content:u.price,textAlign:"left",onClick:function(){function g(){return m("purchase",{name:u.name,category:i})}return g}()})})]})},V=function(p,l){var c=(0,a.useBackend)(l),m=c.data,d=(0,a.useLocalState)(l,"tabIndex",1),u=d[0],s=m.products,i=m.imagelist,v=["apparel","toy","decoration"];return(0,e.createComponentVNode)(2,t.Table,{children:s[v[u]].map(function(g){return(0,e.createComponentVNode)(2,f,{product:g,productImage:i[g.path],productCategory:v[u]},g.name)})})},k=r.MerchVendor=function(){function b(p,l){var c=(0,a.useBackend)(l),m=c.act,d=c.data,u=d.user_cash,s=d.inserted_cash;return(0,e.createComponentVNode)(2,o.Window,{title:"Merch Computer",width:450,height:600,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"User",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{color:"light-grey",inline:!0,mr:"0.5rem",children:["There is ",(0,e.createVNode)(1,"b",null,s,0)," credits inserted."]}),(0,e.createComponentVNode)(2,t.Button,{disabled:!s,icon:"money-bill-wave-alt",content:"Dispense Change",textAlign:"left",onClick:function(){function i(){return m("change")}return i}()})],4),children:(0,e.createComponentVNode)(2,t.Stack.Item,{children:["Doing your job and not getting any recognition at work? Well, welcome to the merch shop! Here, you can buy cool things in exchange for money you earn when you have completed your Job Objectives.",u!==null&&(0,e.createComponentVNode)(2,t.Box,{mt:"0.5rem",children:["Your balance is ",(0,e.createVNode)(1,"b",null,[u||0,(0,e.createTextVNode)(" credits")],0),"."]})]})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Products",children:[(0,e.createComponentVNode)(2,S),(0,e.createComponentVNode)(2,V)]})})]})})})}return b}(),S=function(p,l){var c=(0,a.useBackend)(l),m=c.data,d=(0,a.useLocalState)(l,"tabIndex",1),u=d[0],s=d[1],i=m.login_state;return(0,e.createComponentVNode)(2,t.Tabs,{children:[(0,e.createComponentVNode)(2,t.Tabs.Tab,{icon:"dice",selected:u===1,onClick:function(){function v(){return s(1)}return v}(),children:"Toys"}),(0,e.createComponentVNode)(2,t.Tabs.Tab,{icon:"flag",selected:u===2,onClick:function(){function v(){return s(2)}return v}(),children:"Decorations"})]})}},14162:function(L,r,n){"use strict";r.__esModule=!0,r.MiningVendor=void 0;var e=n(96524),a=n(78234),t=n(17899),o=n(24674),f=n(45493),V=["title","items"];function k(d,u){if(d==null)return{};var s={},i=Object.keys(d),v,g;for(g=0;g=0)&&(s[v]=d[v]);return s}var S={Alphabetical:function(){function d(u,s){return u-s}return d}(),Availability:function(){function d(u,s){return-(u.affordable-s.affordable)}return d}(),Price:function(){function d(u,s){return u.price-s.price}return d}()},b=r.MiningVendor=function(){function d(u,s){return(0,e.createComponentVNode)(2,f.Window,{width:400,height:455,children:(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,p),(0,e.createComponentVNode)(2,c),(0,e.createComponentVNode)(2,l)]})})})}return d}(),p=function(u,s){var i=(0,t.useBackend)(s),v=i.act,g=i.data,C=g.has_id,h=g.id;return(0,e.createComponentVNode)(2,o.NoticeBox,{success:C,children:C?(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Box,{inline:!0,verticalAlign:"middle",style:{float:"left"},children:["Logged in as ",h.name,".",(0,e.createVNode)(1,"br"),"You have ",h.points.toLocaleString("en-US")," points."]}),(0,e.createComponentVNode)(2,o.Button,{icon:"eject",content:"Eject ID",style:{float:"right"},onClick:function(){function N(){return v("logoff")}return N}()}),(0,e.createComponentVNode)(2,o.Box,{style:{clear:"both"}})],4):"Please insert an ID in order to make purchases."})},l=function(u,s){var i=(0,t.useBackend)(s),v=i.act,g=i.data,C=g.has_id,h=g.id,N=g.items,y=(0,t.useLocalState)(s,"search",""),B=y[0],I=y[1],w=(0,t.useLocalState)(s,"sort","Alphabetical"),T=w[0],A=w[1],x=(0,t.useLocalState)(s,"descending",!1),E=x[0],M=x[1],D=(0,a.createSearch)(B,function(j){return j[0]}),P=!1,R=Object.entries(N).map(function(j,F){var U=Object.entries(j[1]).filter(D).map(function(_){return _[1].affordable=C&&h.points>=_[1].price,_[1]}).sort(S[T]);if(U.length!==0)return E&&(U=U.reverse()),P=!0,(0,e.createComponentVNode)(2,m,{title:j[0],items:U},j[0])});return(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,mt:.5,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,children:P?R:(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"No items matching your criteria was found!"})})})},c=function(u,s){var i=(0,t.useLocalState)(s,"search",""),v=i[0],g=i[1],C=(0,t.useLocalState)(s,"sort",""),h=C[0],N=C[1],y=(0,t.useLocalState)(s,"descending",!1),B=y[0],I=y[1];return(0,e.createComponentVNode)(2,o.Box,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Input,{mt:.2,placeholder:"Search by item name..",width:"100%",onInput:function(){function w(T,A){return g(A)}return w}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"30%",children:(0,e.createComponentVNode)(2,o.Dropdown,{selected:"Alphabetical",options:Object.keys(S),width:"100%",onSelected:function(){function w(T){return N(T)}return w}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{icon:B?"arrow-down":"arrow-up",height:"21px",tooltip:B?"Descending order":"Ascending order",tooltipPosition:"bottom-start",onClick:function(){function w(){return I(!B)}return w}()})})]})})},m=function(u,s){var i=(0,t.useBackend)(s),v=i.act,g=i.data,C=u.title,h=u.items,N=k(u,V);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Collapsible,Object.assign({open:!0,title:C},N,{children:h.map(function(y){return(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,o.Box,{inline:!0,verticalAlign:"middle",lineHeight:"20px",style:{float:"left"},children:y.name}),(0,e.createComponentVNode)(2,o.Button,{disabled:!g.has_id||g.id.points=0)&&(T[x]=I[x]);return T}var c=128,m=["security","engineering","medical","science","service","supply"],d={security:{title:"Security",fluff_text:"Help keep the crew safe"},engineering:{title:"Engineering",fluff_text:"Ensure the station runs smoothly"},medical:{title:"Medical",fluff_text:"Practice medicine and save lives"},science:{title:"Science",fluff_text:"Develop new technologies"},service:{title:"Service",fluff_text:"Provide amenities to the crew"},supply:{title:"Supply",fluff_text:"Keep the station supplied"}},u=r.Newscaster=function(){function I(w,T){var A=(0,t.useBackend)(T),x=A.act,E=A.data,M=E.is_security,D=E.is_admin,P=E.is_silent,R=E.is_printing,j=E.screen,F=E.channels,U=E.channel_idx,_=U===void 0?-1:U,z=(0,t.useLocalState)(T,"menuOpen",!1),G=z[0],X=z[1],Y=(0,t.useLocalState)(T,"viewingPhoto",""),J=Y[0],ie=Y[1],ae=(0,t.useLocalState)(T,"censorMode",!1),fe=ae[0],pe=ae[1],be;j===0||j===2?be=(0,e.createComponentVNode)(2,i):j===1&&(be=(0,e.createComponentVNode)(2,v));var te=F.reduce(function(Q,ne){return Q+ne.unread},0);return(0,e.createComponentVNode)(2,V.Window,{theme:M&&"security",width:800,height:600,children:[J?(0,e.createComponentVNode)(2,h):(0,e.createComponentVNode)(2,k.ComplexModal,{maxWidth:window.innerWidth/1.5+"px",maxHeight:window.innerHeight/1.5+"px"}),(0,e.createComponentVNode)(2,V.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,o.Section,{fill:!0,className:(0,a.classes)(["Newscaster__menu",G&&"Newscaster__menu--open"]),children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:[(0,e.createComponentVNode)(2,s,{icon:"bars",title:"Toggle Menu",onClick:function(){function Q(){return X(!G)}return Q}()}),(0,e.createComponentVNode)(2,s,{icon:"newspaper",title:"Headlines",selected:j===0,onClick:function(){function Q(){return x("headlines")}return Q}(),children:te>0&&(0,e.createComponentVNode)(2,o.Box,{className:"Newscaster__menuButton--unread",children:te>=10?"9+":te})}),(0,e.createComponentVNode)(2,s,{icon:"briefcase",title:"Job Openings",selected:j===1,onClick:function(){function Q(){return x("jobs")}return Q}()}),(0,e.createComponentVNode)(2,o.Divider)]}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:F.map(function(Q){return(0,e.createComponentVNode)(2,s,{icon:Q.icon,title:Q.name,selected:j===2&&F[_-1]===Q,onClick:function(){function ne(){return x("channel",{uid:Q.uid})}return ne}(),children:Q.unread>0&&(0,e.createComponentVNode)(2,o.Box,{className:"Newscaster__menuButton--unread",children:Q.unread>=10?"9+":Q.unread})},Q)})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:[(0,e.createComponentVNode)(2,o.Divider),(!!M||!!D)&&(0,e.createFragment)([(0,e.createComponentVNode)(2,s,{security:!0,icon:"exclamation-circle",title:"Edit Wanted Notice",mb:"0.5rem",onClick:function(){function Q(){return(0,k.modalOpen)(T,"wanted_notice")}return Q}()}),(0,e.createComponentVNode)(2,s,{security:!0,icon:fe?"minus-square":"minus-square-o",title:"Censor Mode: "+(fe?"On":"Off"),mb:"0.5rem",onClick:function(){function Q(){return pe(!fe)}return Q}()}),(0,e.createComponentVNode)(2,o.Divider)],4),(0,e.createComponentVNode)(2,s,{icon:"pen-alt",title:"New Story",mb:"0.5rem",onClick:function(){function Q(){return(0,k.modalOpen)(T,"create_story")}return Q}()}),(0,e.createComponentVNode)(2,s,{icon:"plus-circle",title:"New Channel",onClick:function(){function Q(){return(0,k.modalOpen)(T,"create_channel")}return Q}()}),(0,e.createComponentVNode)(2,o.Divider),(0,e.createComponentVNode)(2,s,{icon:R?"spinner":"print",iconSpin:R,title:R?"Printing...":"Print Newspaper",onClick:function(){function Q(){return x("print_newspaper")}return Q}()}),(0,e.createComponentVNode)(2,s,{icon:P?"volume-mute":"volume-up",title:"Mute: "+(P?"On":"Off"),onClick:function(){function Q(){return x("toggle_mute")}return Q}()})]})]})}),(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,width:"100%",children:[(0,e.createComponentVNode)(2,S.TemporaryNotice),be]})]})})]})}return I}(),s=function(w,T){var A=(0,t.useBackend)(T),x=A.act,E=w.icon,M=E===void 0?"":E,D=w.iconSpin,P=w.selected,R=P===void 0?!1:P,j=w.security,F=j===void 0?!1:j,U=w.onClick,_=w.title,z=w.children,G=l(w,b);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Box,Object.assign({className:(0,a.classes)(["Newscaster__menuButton",R&&"Newscaster__menuButton--selected",F&&"Newscaster__menuButton--security"]),onClick:U},G,{children:[R&&(0,e.createComponentVNode)(2,o.Box,{className:"Newscaster__menuButton--selectedBar"}),(0,e.createComponentVNode)(2,o.Icon,{name:M,spin:D,size:"2"}),(0,e.createComponentVNode)(2,o.Box,{className:"Newscaster__menuButton--title",children:_}),z]})))},i=function(w,T){var A=(0,t.useBackend)(T),x=A.act,E=A.data,M=E.screen,D=E.is_admin,P=E.channel_idx,R=E.channel_can_manage,j=E.channels,F=E.stories,U=E.wanted,_=(0,t.useLocalState)(T,"fullStories",[]),z=_[0],G=_[1],X=(0,t.useLocalState)(T,"censorMode",!1),Y=X[0],J=X[1],ie=M===2&&P>-1?j[P-1]:null;return(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[!!U&&(0,e.createComponentVNode)(2,g,{story:U,wanted:!0}),(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Icon,{name:ie?ie.icon:"newspaper",mr:"0.5rem"}),ie?ie.name:"Headlines"],0),children:F.length>0?F.slice().reverse().map(function(ae){return!z.includes(ae.uid)&&ae.body.length+3>c?Object.assign({},ae,{body_short:ae.body.substr(0,c-4)+"..."}):ae}).map(function(ae,fe){return(0,e.createComponentVNode)(2,g,{story:ae},fe)}):(0,e.createComponentVNode)(2,o.Box,{className:"Newscaster__emptyNotice",children:[(0,e.createComponentVNode)(2,o.Icon,{name:"times",size:"3"}),(0,e.createVNode)(1,"br"),"There are no stories at this time."]})}),!!ie&&(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,height:"40%",title:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Icon,{name:"info-circle",mr:"0.5rem"}),(0,e.createTextVNode)("About")],4),buttons:(0,e.createFragment)([Y&&(0,e.createComponentVNode)(2,o.Button,{disabled:!!ie.admin&&!D,selected:ie.censored,icon:ie.censored?"comment-slash":"comment",content:ie.censored?"Uncensor Channel":"Censor Channel",mr:"0.5rem",onClick:function(){function ae(){return x("censor_channel",{uid:ie.uid})}return ae}()}),(0,e.createComponentVNode)(2,o.Button,{disabled:!R,icon:"cog",content:"Manage",onClick:function(){function ae(){return(0,k.modalOpen)(T,"manage_channel",{uid:ie.uid})}return ae}()})],0),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Description",children:ie.description||"N/A"}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Owner",children:ie.author||"N/A"}),!!D&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Ckey",children:ie.author_ckey}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Public",children:ie.public?"Yes":"No"}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Total Views",children:[(0,e.createComponentVNode)(2,o.Icon,{name:"eye",mr:"0.5rem"}),F.reduce(function(ae,fe){return ae+fe.view_count},0).toLocaleString()]})]})})]})},v=function(w,T){var A=(0,t.useBackend)(T),x=A.act,E=A.data,M=E.jobs,D=E.wanted,P=Object.entries(M).reduce(function(R,j){var F=j[0],U=j[1];return R+U.length},0);return(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[!!D&&(0,e.createComponentVNode)(2,g,{story:D,wanted:!0}),(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Icon,{name:"briefcase",mr:"0.5rem"}),(0,e.createTextVNode)("Job Openings")],4),buttons:(0,e.createComponentVNode)(2,o.Box,{mt:"0.25rem",color:"label",children:"Work for a better future at Nanotrasen"}),children:P>0?m.map(function(R){return Object.assign({},d[R],{id:R,jobs:M[R]})}).filter(function(R){return!!R&&R.jobs.length>0}).map(function(R){return(0,e.createComponentVNode)(2,o.Section,{className:(0,a.classes)(["Newscaster__jobCategory","Newscaster__jobCategory--"+R.id]),title:R.title,buttons:(0,e.createComponentVNode)(2,o.Box,{mt:"0.25rem",color:"label",children:R.fluff_text}),children:R.jobs.map(function(j){return(0,e.createComponentVNode)(2,o.Box,{class:(0,a.classes)(["Newscaster__jobOpening",!!j.is_command&&"Newscaster__jobOpening--command"]),children:["\u2022 ",j.title]},j.title)})},R.id)}):(0,e.createComponentVNode)(2,o.Box,{className:"Newscaster__emptyNotice",children:[(0,e.createComponentVNode)(2,o.Icon,{name:"times",size:"3"}),(0,e.createVNode)(1,"br"),"There are no openings at this time."]})}),(0,e.createComponentVNode)(2,o.Section,{height:"17%",children:["Interested in serving Nanotrasen?",(0,e.createVNode)(1,"br"),"Sign up for any of the above position now at the"," ",(0,e.createVNode)(1,"b",null,"Head of Personnel's Office!",16),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,o.Box,{as:"small",color:"label",children:"By signing up for a job at Nanotrasen, you agree to transfer your soul to the loyalty department of the omnipresent and helpful watcher of humanity."})]})]})},g=function(w,T){var A=(0,t.useBackend)(T),x=A.act,E=A.data,M=w.story,D=w.wanted,P=D===void 0?!1:D,R=E.is_admin,j=(0,t.useLocalState)(T,"fullStories",[]),F=j[0],U=j[1],_=(0,t.useLocalState)(T,"censorMode",!1),z=_[0],G=_[1];return(0,e.createComponentVNode)(2,o.Section,{className:(0,a.classes)(["Newscaster__story",P&&"Newscaster__story--wanted"]),title:(0,e.createFragment)([P&&(0,e.createComponentVNode)(2,o.Icon,{name:"exclamation-circle",mr:"0.5rem"}),M.censor_flags&2&&"[REDACTED]"||M.title||"News from "+M.author],0),buttons:(0,e.createComponentVNode)(2,o.Box,{mt:"0.25rem",children:(0,e.createComponentVNode)(2,o.Box,{color:"label",children:[!P&&z&&(0,e.createComponentVNode)(2,o.Box,{inline:!0,children:(0,e.createComponentVNode)(2,o.Button,{enabled:M.censor_flags&2,icon:M.censor_flags&2?"comment-slash":"comment",content:M.censor_flags&2?"Uncensor":"Censor",mr:"0.5rem",mt:"-0.25rem",onClick:function(){function X(){return x("censor_story",{uid:M.uid})}return X}()})}),(0,e.createComponentVNode)(2,o.Box,{inline:!0,children:[(0,e.createComponentVNode)(2,o.Icon,{name:"user"})," ",M.author," |\xA0",!!R&&(0,e.createFragment)([(0,e.createTextVNode)("ckey: "),M.author_ckey,(0,e.createTextVNode)(" |\xA0")],0),!P&&(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Icon,{name:"eye"}),(0,e.createTextVNode)(" "),M.view_count.toLocaleString(),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("|\xA0")],0),(0,e.createComponentVNode)(2,o.Icon,{name:"clock"})," ",(0,f.timeAgo)(M.publish_time,E.world_time)]})]})}),children:(0,e.createComponentVNode)(2,o.Box,{children:M.censor_flags&2?"[REDACTED]":(0,e.createFragment)([!!M.has_photo&&(0,e.createComponentVNode)(2,C,{name:"story_photo_"+M.uid+".png",float:"right",ml:"0.5rem"}),(M.body_short||M.body).split("\n").map(function(X,Y){return(0,e.createComponentVNode)(2,o.Box,{children:X||(0,e.createVNode)(1,"br")},Y)}),M.body_short&&(0,e.createComponentVNode)(2,o.Button,{content:"Read more..",mt:"0.5rem",onClick:function(){function X(){return U([].concat(F,[M.uid]))}return X}()}),(0,e.createComponentVNode)(2,o.Box,{clear:"right"})],0)})})},C=function(w,T){var A=w.name,x=l(w,p),E=(0,t.useLocalState)(T,"viewingPhoto",""),M=E[0],D=E[1];return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Box,Object.assign({as:"img",className:"Newscaster__photo",src:A,onClick:function(){function P(){return D(A)}return P}()},x)))},h=function(w,T){var A=(0,t.useLocalState)(T,"viewingPhoto",""),x=A[0],E=A[1];return(0,e.createComponentVNode)(2,o.Modal,{className:"Newscaster__photoZoom",children:[(0,e.createComponentVNode)(2,o.Box,{as:"img",src:x}),(0,e.createComponentVNode)(2,o.Button,{icon:"times",content:"Close",color:"grey",mt:"1rem",onClick:function(){function M(){return E("")}return M}()})]})},N=function(w,T){var A=(0,t.useBackend)(T),x=A.act,E=A.data,M=!!w.args.uid&&E.channels.filter(function(ce){return ce.uid===w.args.uid}).pop();if(w.id==="manage_channel"&&!M){(0,k.modalClose)(T);return}var D=w.id==="manage_channel",P=!!w.args.is_admin,R=w.args.scanned_user,j=(0,t.useLocalState)(T,"author",(M==null?void 0:M.author)||R||"Unknown"),F=j[0],U=j[1],_=(0,t.useLocalState)(T,"name",(M==null?void 0:M.name)||""),z=_[0],G=_[1],X=(0,t.useLocalState)(T,"description",(M==null?void 0:M.description)||""),Y=X[0],J=X[1],ie=(0,t.useLocalState)(T,"icon",(M==null?void 0:M.icon)||"newspaper"),ae=ie[0],fe=ie[1],pe=(0,t.useLocalState)(T,"isPublic",D?!!(M!=null&&M.public):!1),be=pe[0],te=pe[1],Q=(0,t.useLocalState)(T,"adminLocked",(M==null?void 0:M.admin)===1||!1),ne=Q[0],me=Q[1];return(0,e.createComponentVNode)(2,o.Section,{m:"-1rem",pb:"1.5rem",title:D?"Manage "+M.name:"Create New Channel",children:[(0,e.createComponentVNode)(2,o.Box,{mx:"0.5rem",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Owner",children:(0,e.createComponentVNode)(2,o.Input,{disabled:!P,width:"100%",value:F,onInput:function(){function ce(ue,oe){return U(oe)}return ce}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Name",children:(0,e.createComponentVNode)(2,o.Input,{width:"100%",placeholder:"50 characters max.",maxLength:"50",value:z,onInput:function(){function ce(ue,oe){return G(oe)}return ce}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Description (optional)",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Input,{multiline:!0,width:"100%",placeholder:"128 characters max.",maxLength:"128",value:Y,onInput:function(){function ce(ue,oe){return J(oe)}return ce}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Icon",children:[(0,e.createComponentVNode)(2,o.Input,{disabled:!P,value:ae,width:"35%",mr:"0.5rem",onInput:function(){function ce(ue,oe){return fe(oe)}return ce}()}),(0,e.createComponentVNode)(2,o.Icon,{name:ae,size:"2",verticalAlign:"middle",mr:"0.5rem"})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Accept Public Stories?",children:(0,e.createComponentVNode)(2,o.Button,{selected:be,icon:be?"toggle-on":"toggle-off",content:be?"Yes":"No",onClick:function(){function ce(){return te(!be)}return ce}()})}),P&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"CentComm Lock",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Button,{selected:ne,icon:ne?"lock":"lock-open",content:ne?"On":"Off",tooltip:"Locking this channel will make it editable by nobody but CentComm officers.",tooltipPosition:"top",onClick:function(){function ce(){return me(!ne)}return ce}()})})]})}),(0,e.createComponentVNode)(2,o.Button.Confirm,{disabled:F.trim().length===0||z.trim().length===0,icon:"check",color:"good",content:"Submit",position:"absolute",right:"1rem",bottom:"-0.75rem",onClick:function(){function ce(){(0,k.modalAnswer)(T,w.id,"",{author:F,name:z.substr(0,49),description:Y.substr(0,128),icon:ae,public:be?1:0,admin_locked:ne?1:0})}return ce}()})]})},y=function(w,T){var A=(0,t.useBackend)(T),x=A.act,E=A.data,M=E.photo,D=E.channels,P=E.channel_idx,R=P===void 0?-1:P,j=!!w.args.is_admin,F=w.args.scanned_user,U=D.slice().sort(function(ce,ue){if(R<0)return 0;var oe=D[R-1];if(oe.uid===ce.uid)return-1;if(oe.uid===ue.uid)return 1}).filter(function(ce){return j||!ce.frozen&&(ce.author===F||!!ce.public)}),_=(0,t.useLocalState)(T,"author",F||"Unknown"),z=_[0],G=_[1],X=(0,t.useLocalState)(T,"channel",U.length>0?U[0].name:""),Y=X[0],J=X[1],ie=(0,t.useLocalState)(T,"title",""),ae=ie[0],fe=ie[1],pe=(0,t.useLocalState)(T,"body",""),be=pe[0],te=pe[1],Q=(0,t.useLocalState)(T,"adminLocked",!1),ne=Q[0],me=Q[1];return(0,e.createComponentVNode)(2,o.Section,{m:"-1rem",pb:"1.5rem",title:"Create New Story",children:[(0,e.createComponentVNode)(2,o.Box,{mx:"0.5rem",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Author",children:(0,e.createComponentVNode)(2,o.Input,{disabled:!j,width:"100%",value:z,onInput:function(){function ce(ue,oe){return G(oe)}return ce}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Channel",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Dropdown,{selected:Y,options:U.map(function(ce){return ce.name}),mb:"0",width:"100%",onSelected:function(){function ce(ue){return J(ue)}return ce}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Divider),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Title",children:(0,e.createComponentVNode)(2,o.Input,{width:"100%",placeholder:"128 characters max.",maxLength:"128",value:ae,onInput:function(){function ce(ue,oe){return fe(oe)}return ce}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Story Text",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Input,{fluid:!0,multiline:!0,placeholder:"1024 characters max.",maxLength:"1024",rows:"8",width:"100%",value:be,onInput:function(){function ce(ue,oe){return te(oe)}return ce}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Photo (optional)",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Button,{icon:"image",selected:M,content:M?"Eject: "+M.name:"Insert Photo",tooltip:!M&&"Attach a photo to this story by holding the photograph in your hand.",onClick:function(){function ce(){return x(M?"eject_photo":"attach_photo")}return ce}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Preview",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Section,{noTopPadding:!0,title:ae,maxHeight:"13.5rem",overflow:"auto",children:(0,e.createComponentVNode)(2,o.Box,{mt:"0.5rem",children:[!!M&&(0,e.createComponentVNode)(2,C,{name:"inserted_photo_"+M.uid+".png",float:"right"}),be.split("\n").map(function(ce,ue){return(0,e.createComponentVNode)(2,o.Box,{children:ce||(0,e.createVNode)(1,"br")},ue)}),(0,e.createComponentVNode)(2,o.Box,{clear:"right"})]})})}),j&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"CentComm Lock",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Button,{selected:ne,icon:ne?"lock":"lock-open",content:ne?"On":"Off",tooltip:"Locking this story will make it censorable by nobody but CentComm officers.",tooltipPosition:"top",onClick:function(){function ce(){return me(!ne)}return ce}()})})]})}),(0,e.createComponentVNode)(2,o.Button.Confirm,{disabled:z.trim().length===0||Y.trim().length===0||ae.trim().length===0||be.trim().length===0,icon:"check",color:"good",content:"Submit",position:"absolute",right:"1rem",bottom:"-0.75rem",onClick:function(){function ce(){(0,k.modalAnswer)(T,"create_story","",{author:z,channel:Y,title:ae.substr(0,127),body:be.substr(0,1023),admin_locked:ne?1:0})}return ce}()})]})},B=function(w,T){var A=(0,t.useBackend)(T),x=A.act,E=A.data,M=E.photo,D=E.wanted,P=!!w.args.is_admin,R=w.args.scanned_user,j=(0,t.useLocalState)(T,"author",(D==null?void 0:D.author)||R||"Unknown"),F=j[0],U=j[1],_=(0,t.useLocalState)(T,"name",(D==null?void 0:D.title.substr(8))||""),z=_[0],G=_[1],X=(0,t.useLocalState)(T,"description",(D==null?void 0:D.body)||""),Y=X[0],J=X[1],ie=(0,t.useLocalState)(T,"adminLocked",(D==null?void 0:D.admin_locked)===1||!1),ae=ie[0],fe=ie[1];return(0,e.createComponentVNode)(2,o.Section,{m:"-1rem",pb:"1.5rem",title:"Manage Wanted Notice",children:[(0,e.createComponentVNode)(2,o.Box,{mx:"0.5rem",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Authority",children:(0,e.createComponentVNode)(2,o.Input,{disabled:!P,width:"100%",value:F,onInput:function(){function pe(be,te){return U(te)}return pe}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Name",children:(0,e.createComponentVNode)(2,o.Input,{width:"100%",value:z,maxLength:"128",onInput:function(){function pe(be,te){return G(te)}return pe}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Description",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Input,{multiline:!0,width:"100%",value:Y,maxLength:"512",rows:"4",onInput:function(){function pe(be,te){return J(te)}return pe}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Photo (optional)",verticalAlign:"top",children:[(0,e.createComponentVNode)(2,o.Button,{icon:"image",selected:M,content:M?"Eject: "+M.name:"Insert Photo",tooltip:!M&&"Attach a photo to this wanted notice by holding the photograph in your hand.",tooltipPosition:"top",onClick:function(){function pe(){return x(M?"eject_photo":"attach_photo")}return pe}()}),!!M&&(0,e.createComponentVNode)(2,C,{name:"inserted_photo_"+M.uid+".png",float:"right"})]}),P&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"CentComm Lock",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Button,{selected:ae,icon:ae?"lock":"lock-open",content:ae?"On":"Off",tooltip:"Locking this wanted notice will make it editable by nobody but CentComm officers.",tooltipPosition:"top",onClick:function(){function pe(){return fe(!ae)}return pe}()})})]})}),(0,e.createComponentVNode)(2,o.Button.Confirm,{disabled:!D,icon:"eraser",color:"danger",content:"Clear",position:"absolute",right:"7.25rem",bottom:"-0.75rem",onClick:function(){function pe(){x("clear_wanted_notice"),(0,k.modalClose)(T)}return pe}()}),(0,e.createComponentVNode)(2,o.Button.Confirm,{disabled:F.trim().length===0||z.trim().length===0||Y.trim().length===0,icon:"check",color:"good",content:"Submit",position:"absolute",right:"1rem",bottom:"-0.75rem",onClick:function(){function pe(){(0,k.modalAnswer)(T,w.id,"",{author:F,name:z.substr(0,127),description:Y.substr(0,511),admin_locked:ae?1:0})}return pe}()})]})};(0,k.modalRegisterBodyOverride)("create_channel",N),(0,k.modalRegisterBodyOverride)("manage_channel",N),(0,k.modalRegisterBodyOverride)("create_story",y),(0,k.modalRegisterBodyOverride)("wanted_notice",B)},26148:function(L,r,n){"use strict";r.__esModule=!0,r.Noticeboard=void 0;var e=n(96524),a=n(78234),t=n(17899),o=n(24674),f=n(45493),V=r.Noticeboard=function(){function k(S,b){var p=(0,t.useBackend)(b),l=p.act,c=p.data,m=c.papers;return(0,e.createComponentVNode)(2,f.Window,{width:600,height:300,theme:"noticeboard",children:(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:m.map(function(d){return(0,e.createComponentVNode)(2,o.Stack.Item,{align:"center",width:"22.45%",height:"85%",onClick:function(){function u(){return l("interact",{paper:d.ref})}return u}(),onContextMenu:function(){function u(s){s.preventDefault(),l("showFull",{paper:d.ref})}return u}(),children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,fontSize:.75,title:d.name,children:(0,a.decodeHtmlEntities)(d.contents)})},d.ref)})})})})}return k}()},46940:function(L,r,n){"use strict";r.__esModule=!0,r.NuclearBomb=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.NuclearBomb=function(){function V(k,S){var b=(0,a.useBackend)(S),p=b.act,l=b.data;return l.extended?(0,e.createComponentVNode)(2,o.Window,{width:350,height:290,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Authorization",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Auth Disk",children:(0,e.createComponentVNode)(2,t.Button,{icon:l.authdisk?"eject":"id-card",selected:l.authdisk,content:l.diskname?l.diskname:"-----",tooltip:l.authdisk?"Eject Disk":"Insert Disk",onClick:function(){function c(){return p("auth")}return c}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Auth Code",children:(0,e.createComponentVNode)(2,t.Button,{icon:"key",disabled:!l.authdisk,selected:l.authcode,content:l.codemsg,onClick:function(){function c(){return p("code")}return c}()})})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Arming & Disarming",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Bolted to floor",children:(0,e.createComponentVNode)(2,t.Button,{icon:l.anchored?"check":"times",selected:l.anchored,disabled:!l.authdisk,content:l.anchored?"YES":"NO",onClick:function(){function c(){return p("toggle_anchor")}return c}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Time Left",children:(0,e.createComponentVNode)(2,t.Button,{icon:"stopwatch",content:l.time,disabled:!l.authfull,tooltip:"Set Timer",onClick:function(){function c(){return p("set_time")}return c}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Safety",children:(0,e.createComponentVNode)(2,t.Button,{icon:l.safety?"check":"times",selected:l.safety,disabled:!l.authfull,content:l.safety?"ON":"OFF",tooltip:l.safety?"Disable Safety":"Enable Safety",onClick:function(){function c(){return p("toggle_safety")}return c}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Arm/Disarm",children:(0,e.createComponentVNode)(2,t.Button,{icon:(l.timer,"bomb"),disabled:l.safety||!l.authfull,color:"red",content:l.timer?"DISARM THE NUKE":"ARM THE NUKE",onClick:function(){function c(){return p("toggle_armed")}return c}()})})]})})]})}):(0,e.createComponentVNode)(2,o.Window,{width:350,height:115,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Deployment",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"exclamation-triangle",content:"Deploy Nuclear Device (will bolt device to floor)",onClick:function(){function c(){return p("deploy")}return c}()})})})})}return V}()},35478:function(L,r,n){"use strict";r.__esModule=!0,r.NumberInputModal=void 0;var e=n(96524),a=n(14299),t=n(15113),o=n(68100),f=n(17899),V=n(24674),k=n(45493),S=r.NumberInputModal=function(){function p(l,c){var m=(0,f.useBackend)(c),d=m.act,u=m.data,s=u.init_value,i=u.large_buttons,v=u.message,g=v===void 0?"":v,C=u.timeout,h=u.title,N=(0,f.useLocalState)(c,"input",s),y=N[0],B=N[1],I=function(){function A(x){x!==y&&B(x)}return A}(),w=function(){function A(x){x!==y&&B(x)}return A}(),T=140+Math.max(Math.ceil(g.length/3),g.length>0&&i?5:0);return(0,e.createComponentVNode)(2,k.Window,{title:h,width:270,height:T,children:[C&&(0,e.createComponentVNode)(2,a.Loader,{value:C}),(0,e.createComponentVNode)(2,k.Window.Content,{onKeyDown:function(){function A(x){var E=window.event?x.which:x.keyCode;E===o.KEY_ENTER&&d("submit",{entry:y}),E===o.KEY_ESCAPE&&d("cancel")}return A}(),children:(0,e.createComponentVNode)(2,V.Section,{fill:!0,children:(0,e.createComponentVNode)(2,V.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,V.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,V.Box,{color:"label",children:g})}),(0,e.createComponentVNode)(2,V.Stack.Item,{children:(0,e.createComponentVNode)(2,b,{input:y,onClick:w,onChange:I})}),(0,e.createComponentVNode)(2,V.Stack.Item,{children:(0,e.createComponentVNode)(2,t.InputButtons,{input:y})})]})})})]})}return p}(),b=function(l,c){var m=(0,f.useBackend)(c),d=m.act,u=m.data,s=u.min_value,i=u.max_value,v=u.init_value,g=u.round_value,C=l.input,h=l.onClick,N=l.onChange,y=Math.round(C!==s?Math.max(C/2,s):i/2),B=C===s&&s>0||C===1;return(0,e.createComponentVNode)(2,V.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,V.Stack.Item,{children:(0,e.createComponentVNode)(2,V.Button,{disabled:C===s,icon:"angle-double-left",onClick:function(){function I(){return h(s)}return I}(),tooltip:C===s?"Min":"Min ("+s+")"})}),(0,e.createComponentVNode)(2,V.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,V.RestrictedInput,{autoFocus:!0,autoSelect:!0,fluid:!0,allowFloats:!g,minValue:s,maxValue:i,onChange:function(){function I(w,T){return N(T)}return I}(),onEnter:function(){function I(w,T){return d("submit",{entry:T})}return I}(),value:C})}),(0,e.createComponentVNode)(2,V.Stack.Item,{children:(0,e.createComponentVNode)(2,V.Button,{disabled:C===i,icon:"angle-double-right",onClick:function(){function I(){return h(i)}return I}(),tooltip:C===i?"Max":"Max ("+i+")"})}),(0,e.createComponentVNode)(2,V.Stack.Item,{children:(0,e.createComponentVNode)(2,V.Button,{disabled:B,icon:"divide",onClick:function(){function I(){return h(y)}return I}(),tooltip:B?"Split":"Split ("+y+")"})}),(0,e.createComponentVNode)(2,V.Stack.Item,{children:(0,e.createComponentVNode)(2,V.Button,{disabled:C===v,icon:"redo",onClick:function(){function I(){return h(v)}return I}(),tooltip:v?"Reset ("+v+")":"Reset"})})]})}},98476:function(L,r,n){"use strict";r.__esModule=!0,r.OperatingComputer=void 0;var e=n(96524),a=n(36121),t=n(17899),o=n(45493),f=n(24674),V=[["good","Conscious"],["average","Unconscious"],["bad","DEAD"]],k=[["Resp.","oxyLoss"],["Toxin","toxLoss"],["Brute","bruteLoss"],["Burn","fireLoss"]],S={average:[.25,.5],bad:[.5,1/0]},b=["bad","average","average","good","average","average","bad"],p=r.OperatingComputer=function(){function d(u,s){var i=(0,t.useBackend)(s),v=i.act,g=i.data,C=g.hasOccupant,h=g.choice,N;return h?N=(0,e.createComponentVNode)(2,m):N=C?(0,e.createComponentVNode)(2,l):(0,e.createComponentVNode)(2,c),(0,e.createComponentVNode)(2,o.Window,{width:650,height:455,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,f.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Tabs,{children:[(0,e.createComponentVNode)(2,f.Tabs.Tab,{selected:!h,icon:"user",onClick:function(){function y(){return v("choiceOff")}return y}(),children:"Patient"}),(0,e.createComponentVNode)(2,f.Tabs.Tab,{selected:!!h,icon:"cog",onClick:function(){function y(){return v("choiceOn")}return y}(),children:"Options"})]})}),(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,f.Section,{fill:!0,scrollable:!0,children:N})})]})})})}return d}(),l=function(u,s){var i=(0,t.useBackend)(s),v=i.data,g=v.occupant;return(0,e.createComponentVNode)(2,f.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,f.Section,{fill:!0,title:"Patient",children:(0,e.createComponentVNode)(2,f.LabeledList,{children:[(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Name",children:g.name}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Status",color:V[g.stat][0],children:V[g.stat][1]}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Health",children:(0,e.createComponentVNode)(2,f.ProgressBar,{min:"0",max:g.maxHealth,value:g.health/g.maxHealth,ranges:{good:[.5,1/0],average:[0,.5],bad:[-1/0,0]}})}),k.map(function(C,h){return(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:C[0]+" Damage",children:(0,e.createComponentVNode)(2,f.ProgressBar,{min:"0",max:"100",value:g[C[1]]/100,ranges:S,children:(0,a.round)(g[C[1]])},h)},h)}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Temperature",children:(0,e.createComponentVNode)(2,f.ProgressBar,{min:"0",max:g.maxTemp,value:g.bodyTemperature/g.maxTemp,color:b[g.temperatureSuitability+3],children:[(0,a.round)(g.btCelsius),"\xB0C, ",(0,a.round)(g.btFaren),"\xB0F"]})}),!!g.hasBlood&&(0,e.createFragment)([(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Blood Level",children:(0,e.createComponentVNode)(2,f.ProgressBar,{min:"0",max:g.bloodMax,value:g.bloodLevel/g.bloodMax,ranges:{bad:[-1/0,.6],average:[.6,.9],good:[.6,1/0]},children:[g.bloodPercent,"%, ",g.bloodLevel,"cl"]})}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Pulse",children:[g.pulse," BPM"]})],4)]})})}),(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Section,{title:"Current Procedure",level:"2",children:g.inSurgery?(0,e.createComponentVNode)(2,f.LabeledList,{children:[(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Procedure",children:g.surgeryName}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Next Step",children:g.stepName})]}):(0,e.createComponentVNode)(2,f.Box,{color:"label",children:"No procedure ongoing."})})})]})},c=function(){return(0,e.createComponentVNode)(2,f.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,align:"center",textAlign:"center",color:"label",children:[(0,e.createComponentVNode)(2,f.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,e.createVNode)(1,"br"),"No patient detected."]})})},m=function(u,s){var i=(0,t.useBackend)(s),v=i.act,g=i.data,C=g.verbose,h=g.health,N=g.healthAlarm,y=g.oxy,B=g.oxyAlarm,I=g.crit;return(0,e.createComponentVNode)(2,f.LabeledList,{children:[(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Loudspeaker",children:(0,e.createComponentVNode)(2,f.Button,{selected:C,icon:C?"toggle-on":"toggle-off",content:C?"On":"Off",onClick:function(){function w(){return v(C?"verboseOff":"verboseOn")}return w}()})}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Health Announcer",children:(0,e.createComponentVNode)(2,f.Button,{selected:h,icon:h?"toggle-on":"toggle-off",content:h?"On":"Off",onClick:function(){function w(){return v(h?"healthOff":"healthOn")}return w}()})}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Health Announcer Threshold",children:(0,e.createComponentVNode)(2,f.Knob,{bipolar:!0,minValue:-100,maxValue:100,value:N,stepPixelSize:5,ml:"0",onChange:function(){function w(T,A){return v("health_adj",{new:A})}return w}()})}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Oxygen Alarm",children:(0,e.createComponentVNode)(2,f.Button,{selected:y,icon:y?"toggle-on":"toggle-off",content:y?"On":"Off",onClick:function(){function w(){return v(y?"oxyOff":"oxyOn")}return w}()})}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Oxygen Alarm Threshold",children:(0,e.createComponentVNode)(2,f.Knob,{bipolar:!0,minValue:-100,maxValue:100,value:B,stepPixelSize:5,ml:"0",onChange:function(){function w(T,A){return v("oxy_adj",{new:A})}return w}()})}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Critical Alert",children:(0,e.createComponentVNode)(2,f.Button,{selected:I,icon:I?"toggle-on":"toggle-off",content:I?"On":"Off",onClick:function(){function w(){return v(I?"critOff":"critOn")}return w}()})})]})}},98702:function(L,r,n){"use strict";r.__esModule=!0,r.Orbit=void 0;var e=n(96524),a=n(78234),t=n(17899),o=n(24674),f=n(45493),V=n(28234);function k(i,v){var g=typeof Symbol!="undefined"&&i[Symbol.iterator]||i["@@iterator"];if(g)return(g=g.call(i)).next.bind(g);if(Array.isArray(i)||(g=S(i))||v&&i&&typeof i.length=="number"){g&&(i=g);var C=0;return function(){return C>=i.length?{done:!0}:{done:!1,value:i[C++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function S(i,v){if(i){if(typeof i=="string")return b(i,v);var g=Object.prototype.toString.call(i).slice(8,-1);if(g==="Object"&&i.constructor&&(g=i.constructor.name),g==="Map"||g==="Set")return Array.from(i);if(g==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(g))return b(i,v)}}function b(i,v){(v==null||v>i.length)&&(v=i.length);for(var g=0,C=new Array(v);gg},m=function(v,g){var C=v.name,h=g.name;if(!C||!h)return 0;var N=C.match(p),y=h.match(p);if(N&&y&&C.replace(p,"")===h.replace(p,"")){var B=parseInt(N[1],10),I=parseInt(y[1],10);return B-I}return c(C,h)},d=function(v,g){var C=v.searchText,h=v.source,N=v.title,y=v.color,B=v.sorted,I=h.filter(l(C));return B&&I.sort(m),h.length>0&&(0,e.createComponentVNode)(2,o.Section,{title:N+" - ("+h.length+")",children:I.map(function(w){return(0,e.createComponentVNode)(2,u,{thing:w,color:y},w.name)})})},u=function(v,g){var C=(0,t.useBackend)(g),h=C.act,N=v.color,y=v.thing;return(0,e.createComponentVNode)(2,o.Button,{color:N,tooltip:y.assigned_role?(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.Box,{as:"img",mr:"0.5em",className:(0,V.classes)(["orbit_job16x16",y.assigned_role_sprite])})," ",y.assigned_role]}):"",tooltipPosition:"bottom",onClick:function(){function B(){return h("orbit",{ref:y.ref})}return B}(),children:[y.name,y.orbiters&&(0,e.createComponentVNode)(2,o.Box,{inline:!0,ml:1,children:["(",y.orbiters," ",(0,e.createComponentVNode)(2,o.Icon,{name:"eye"}),")"]})]})},s=r.Orbit=function(){function i(v,g){for(var C=(0,t.useBackend)(g),h=C.act,N=C.data,y=N.alive,B=N.antagonists,I=N.highlights,w=N.response_teams,T=N.auto_observe,A=N.dead,x=N.ssd,E=N.ghosts,M=N.misc,D=N.npcs,P=(0,t.useLocalState)(g,"searchText",""),R=P[0],j=P[1],F={},U=k(B),_;!(_=U()).done;){var z=_.value;F[z.antag]===void 0&&(F[z.antag]=[]),F[z.antag].push(z)}var G=Object.entries(F);G.sort(function(Y,J){return c(Y[0],J[0])});var X=function(){function Y(J){for(var ie=0,ae=[G.map(function(be){var te=be[0],Q=be[1];return Q}),I,y,E,x,A,D,M];ie0&&(0,e.createComponentVNode)(2,o.Section,{title:"Antagonists",children:G.map(function(Y){var J=Y[0],ie=Y[1];return(0,e.createComponentVNode)(2,o.Section,{title:J+" - ("+ie.length+")",level:2,children:ie.filter(l(R)).sort(m).map(function(ae){return(0,e.createComponentVNode)(2,u,{color:"bad",thing:ae},ae.name)})},J)})}),I.length>0&&(0,e.createComponentVNode)(2,d,{title:"Highlights",source:I,searchText:R,color:"teal"}),(0,e.createComponentVNode)(2,d,{title:"Response Teams",source:w,searchText:R,color:"purple"}),(0,e.createComponentVNode)(2,d,{title:"Alive",source:y,searchText:R,color:"good"}),(0,e.createComponentVNode)(2,d,{title:"Ghosts",source:E,searchText:R,color:"grey"}),(0,e.createComponentVNode)(2,d,{title:"SSD",source:x,searchText:R,color:"grey"}),(0,e.createComponentVNode)(2,d,{title:"Dead",source:A,searchText:R,sorted:!1}),(0,e.createComponentVNode)(2,d,{title:"NPCs",source:D,searchText:R,sorted:!1}),(0,e.createComponentVNode)(2,d,{title:"Misc",source:M,searchText:R,sorted:!1})]})})}return i}()},74015:function(L,r,n){"use strict";r.__esModule=!0,r.OreRedemption=void 0;var e=n(96524),a=n(28234),t=n(17899),o=n(24674),f=n(45493),V=n(81856);function k(i){if(i==null)throw new TypeError("Cannot destructure "+i)}var S=(0,V.createLogger)("OreRedemption"),b=function(v){return v.toLocaleString("en-US")+" pts"},p=r.OreRedemption=function(){function i(v,g){return(0,e.createComponentVNode)(2,f.Window,{width:490,height:750,children:(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,l,{height:"100%"})}),(0,e.createComponentVNode)(2,c),(0,e.createComponentVNode)(2,m)]})})})}return i}(),l=function(v,g){var C=(0,t.useBackend)(g),h=C.act,N=C.data,y=N.id,B=N.points,I=N.disk,w=Object.assign({},(k(v),v));return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Section,Object.assign({},w,{children:[(0,e.createComponentVNode)(2,o.Box,{color:"average",textAlign:"center",children:[(0,e.createComponentVNode)(2,o.Icon,{name:"exclamation-triangle",mr:"0.5rem"}),"This machine only accepts ore. Gibtonite is not accepted."]}),(0,e.createComponentVNode)(2,o.Divider),(0,e.createComponentVNode)(2,o.LabeledList,{children:(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Unclaimed Points",color:B>0?"good":"grey",bold:B>0&&"good",children:b(B)})}),(0,e.createComponentVNode)(2,o.Divider),I?(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Design disk",children:[(0,e.createComponentVNode)(2,o.Button,{selected:!0,bold:!0,icon:"eject",content:I.name,tooltip:"Ejects the design disk.",onClick:function(){function T(){return h("eject_disk")}return T}()}),(0,e.createComponentVNode)(2,o.Button,{disabled:!I.design||!I.compatible,icon:"upload",content:"Download",tooltip:"Downloads the design on the disk into the machine.",onClick:function(){function T(){return h("download")}return T}()})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Stored design",children:(0,e.createComponentVNode)(2,o.Box,{color:I.design&&(I.compatible?"good":"bad"),children:I.design||"N/A"})})]}):(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"No design disk inserted."})]})))},c=function(v,g){var C=(0,t.useBackend)(g),h=C.act,N=C.data,y=N.sheets,B=Object.assign({},(k(v),v));return(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,height:"20%",children:(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Section,Object.assign({fill:!0,scrollable:!0,className:"OreRedemption__Ores",p:"0"},B,{children:[(0,e.createComponentVNode)(2,d,{title:"Sheets",columns:[["Available","25%"],["Ore Value","15%"],["Smelt","20%"]]}),y.map(function(I){return(0,e.createComponentVNode)(2,u,{ore:I},I.id)})]})))})},m=function(v,g){var C=(0,t.useBackend)(g),h=C.act,N=C.data,y=N.alloys,B=Object.assign({},(k(v),v));return(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Section,Object.assign({fill:!0,scrollable:!0,className:"OreRedemption__Ores",p:"0"},B,{children:[(0,e.createComponentVNode)(2,d,{title:"Alloys",columns:[["Recipe","50%"],["Available","11%"],["Smelt","20%"]]}),y.map(function(I){return(0,e.createComponentVNode)(2,s,{ore:I},I.id)})]})))})},d=function(v,g){var C;return(0,e.createComponentVNode)(2,o.Box,{className:"OreHeader",children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:v.title}),(C=v.columns)==null?void 0:C.map(function(h){return(0,e.createComponentVNode)(2,o.Stack.Item,{basis:h[1],textAlign:"center",color:"label",bold:!0,children:h[0]},h)})]})})},u=function(v,g){var C=(0,t.useBackend)(g),h=C.act,N=v.ore;if(!(N.value&&N.amount<=0&&!(["metal","glass"].indexOf(N.id)>-1)))return(0,e.createComponentVNode)(2,o.Box,{className:"SheetLine",children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"45%",align:"middle",children:(0,e.createComponentVNode)(2,o.Stack,{align:"center",children:[(0,e.createComponentVNode)(2,o.Stack.Item,{className:(0,a.classes)(["materials32x32",N.id])}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:N.name})]})}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"20%",textAlign:"center",color:N.amount>=1?"good":"gray",bold:N.amount>=1,align:"center",children:N.amount.toLocaleString("en-US")}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"20%",textAlign:"center",align:"center",children:N.value}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"20%",textAlign:"center",align:"center",lineHeight:"32px",children:(0,e.createComponentVNode)(2,o.NumberInput,{width:"40%",value:0,minValue:0,maxValue:Math.min(N.amount,50),stepPixelSize:6,onChange:function(){function y(B,I){return h(N.value?"sheet":"alloy",{id:N.id,amount:I})}return y}()})})]})})},s=function(v,g){var C=(0,t.useBackend)(g),h=C.act,N=v.ore;return(0,e.createComponentVNode)(2,o.Box,{className:"SheetLine",children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"7%",align:"middle",children:(0,e.createComponentVNode)(2,o.Box,{className:(0,a.classes)(["alloys32x32",N.id])})}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"30%",textAlign:"middle",align:"center",children:N.name}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"35%",textAlign:"middle",color:N.amount>=1?"good":"gray",align:"center",children:N.description}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"10%",textAlign:"center",color:N.amount>=1?"good":"gray",bold:N.amount>=1,align:"center",children:N.amount.toLocaleString("en-US")}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"20%",textAlign:"center",align:"center",lineHeight:"32px",children:(0,e.createComponentVNode)(2,o.NumberInput,{width:"40%",value:0,minValue:0,maxValue:Math.min(N.amount,50),stepPixelSize:6,onChange:function(){function y(B,I){return h(N.value?"sheet":"alloy",{id:N.id,amount:I})}return y}()})})]})})}},48824:function(L,r,n){"use strict";r.__esModule=!0,r.PAI=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=n(91807),V=n(70752),k=function(p){var l;try{l=V("./"+p+".js")}catch(m){if(m.code==="MODULE_NOT_FOUND")return(0,f.routingError)("notFound",p);throw m}var c=l[p];return c||(0,f.routingError)("missingExport",p)},S=r.PAI=function(){function b(p,l){var c=(0,a.useBackend)(l),m=c.act,d=c.data,u=d.app_template,s=d.app_icon,i=d.app_title,v=k(u);return(0,e.createComponentVNode)(2,o.Window,{width:600,height:650,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{p:1,fill:!0,scrollable:!0,title:(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Icon,{name:s,mr:1}),i,u!=="pai_main_menu"&&(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{ml:2,mb:0,content:"Back",icon:"arrow-left",onClick:function(){function g(){return m("Back")}return g}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Home",icon:"arrow-up",onClick:function(){function g(){return m("MASTER_back")}return g}()})],4)]}),children:(0,e.createComponentVNode)(2,v)})})})})})}return b}()},41565:function(L,r,n){"use strict";r.__esModule=!0,r.PDA=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=n(91807),V=n(59395),k=function(c){var m;try{m=V("./"+c+".js")}catch(u){if(u.code==="MODULE_NOT_FOUND")return(0,f.routingError)("notFound",c);throw u}var d=m[c];return d||(0,f.routingError)("missingExport",c)},S=r.PDA=function(){function l(c,m){var d=(0,a.useBackend)(m),u=d.act,s=d.data,i=s.app,v=s.owner;if(!v)return(0,e.createComponentVNode)(2,o.Window,{width:350,height:105,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Error",children:"No user data found. Please swipe an ID card."})})});var g=k(i.template);return(0,e.createComponentVNode)(2,o.Window,{width:600,height:650,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,b)}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,p:1,pb:0,title:(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Icon,{name:i.icon,mr:1}),i.name]}),children:(0,e.createComponentVNode)(2,g)})}),(0,e.createComponentVNode)(2,t.Stack.Item,{mt:7.5,children:(0,e.createComponentVNode)(2,p)})]})})})}return l}(),b=function(c,m){var d=(0,a.useBackend)(m),u=d.act,s=d.data,i=s.idInserted,v=s.idLink,g=s.stationTime,C=s.cartridge_name;return(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{ml:.5,children:(0,e.createComponentVNode)(2,t.Button,{icon:"id-card",color:"transparent",onClick:function(){function h(){return u("Authenticate")}return h}(),content:i?v:"No ID Inserted"})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"sd-card",color:"transparent",onClick:function(){function h(){return u("Eject")}return h}(),content:C?["Eject "+C]:"No Cartridge Inserted"})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,textAlign:"right",bold:!0,mr:1,mt:.5,children:g})]})},p=function(c,m){var d=(0,a.useBackend)(m),u=d.act,s=d.data,i=s.app;return(0,e.createComponentVNode)(2,t.Box,{height:"45px",className:"PDA__footer",backgroundColor:"#1b1b1b",children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:[!!i.has_back&&(0,e.createComponentVNode)(2,t.Stack.Item,{basis:"33%",mr:-.5,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,className:"PDA__footer__button",color:"transparent",iconColor:i.has_back?"white":"disabled",icon:"arrow-alt-circle-left-o",onClick:function(){function v(){return u("Back")}return v}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{basis:i.has_back?"33%":"100%",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,className:"PDA__footer__button",color:"transparent",iconColor:i.is_home?"disabled":"white",icon:"home",onClick:function(){function v(){u("Home")}return v}()})})]})})}},78704:function(L,r,n){"use strict";r.__esModule=!0,r.Pacman=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=n(92986),V=r.Pacman=function(){function k(S,b){var p=(0,a.useBackend)(b),l=p.act,c=p.data,m=c.active,d=c.anchored,u=c.broken,s=c.emagged,i=c.fuel_type,v=c.fuel_usage,g=c.fuel_stored,C=c.fuel_cap,h=c.is_ai,N=c.tmp_current,y=c.tmp_max,B=c.tmp_overheat,I=c.output_max,w=c.power_gen,T=c.output_set,A=c.has_fuel,x=g/C,E=N/y,M=T*w,D=Math.round(g/v),P=Math.round(D/60),R=D>120?P+" minutes":D+" seconds";return(0,e.createComponentVNode)(2,o.Window,{width:500,height:225,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(u||!d)&&(0,e.createComponentVNode)(2,t.Section,{title:"Status",children:[!!u&&(0,e.createComponentVNode)(2,t.Box,{color:"orange",children:"The generator is malfunctioning!"}),!u&&!d&&(0,e.createComponentVNode)(2,t.Box,{color:"orange",children:"The generator needs to be anchored to the floor with a wrench."})]}),!u&&!!d&&(0,e.createVNode)(1,"div",null,[(0,e.createComponentVNode)(2,t.Section,{title:"Status",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:m?"power-off":"times",content:m?"On":"Off",tooltip:"Toggles the generator on/off. Requires fuel.",tooltipPosition:"left",disabled:!A,selected:m,onClick:function(){function j(){return l("toggle_power")}return j}()}),children:(0,e.createComponentVNode)(2,t.Flex,{direction:"row",children:[(0,e.createComponentVNode)(2,t.Flex.Item,{width:"50%",className:"ml-1",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power setting",children:[(0,e.createComponentVNode)(2,t.NumberInput,{value:T,minValue:1,maxValue:I*(s?2.5:1),step:1,className:"mt-1",onDrag:function(){function j(F,U){return l("change_power",{change_power:U})}return j}()}),"(",(0,f.formatPower)(M),")"]})})}),(0,e.createComponentVNode)(2,t.Flex.Item,{width:"50%",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Temperature",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:E,ranges:{green:[-1/0,.33],orange:[.33,.66],red:[.66,1/0]},children:[N," \u2103"]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:[B>50&&(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"CRITICAL OVERHEAT!"}),B>20&&B<=50&&(0,e.createComponentVNode)(2,t.Box,{color:"orange",children:"WARNING: Overheating!"}),B>1&&B<=20&&(0,e.createComponentVNode)(2,t.Box,{color:"orange",children:"Temperature High"}),B===0&&(0,e.createComponentVNode)(2,t.Box,{color:"green",children:"Optimal"})]})]})})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Fuel",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"eject",content:"Eject Fuel",tooltip:"Ejects fuel. Generator needs to be offline.",tooltipPosition:"left",disabled:m||h||!A,onClick:function(){function j(){return l("eject_fuel")}return j}()}),children:(0,e.createComponentVNode)(2,t.Grid,{children:[(0,e.createComponentVNode)(2,t.Grid.Column,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Type",children:i}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Fuel level",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:x,ranges:{red:[-1/0,.33],orange:[.33,.66],green:[.66,1/0]},children:[Math.round(g/1e3)," dm\xB3"]})})]})}),(0,e.createComponentVNode)(2,t.Grid.Column,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Fuel usage",children:[v/1e3," dm\xB3/s"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Fuel depletion",children:[!!A&&(v?R:"N/A"),!A&&(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Out of fuel"})]})]})})]})})],4)]})})}return k}()},6887:function(L,r,n){"use strict";r.__esModule=!0,r.PanDEMIC=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.PanDEMIC=function(){function d(u,s){var i=(0,a.useBackend)(s),v=i.data,g=v.beakerLoaded,C=v.beakerContainsBlood,h=v.beakerContainsVirus,N=v.resistances,y=N===void 0?[]:N,B;return g?C?C&&!h&&(B=(0,e.createFragment)([(0,e.createTextVNode)("No disease detected in provided blood sample.")],4)):B=(0,e.createFragment)([(0,e.createTextVNode)("No blood sample found in the loaded container.")],4):B=(0,e.createFragment)([(0,e.createTextVNode)("No container loaded.")],4),(0,e.createComponentVNode)(2,o.Window,{width:575,height:510,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[B&&(0,e.createComponentVNode)(2,t.Section,{title:"Container Information",buttons:(0,e.createComponentVNode)(2,V),children:[(0,e.createComponentVNode)(2,t.NoticeBox,{children:B}),(y==null?void 0:y.length)>0&&(0,e.createComponentVNode)(2,m)]}),!!h&&(0,e.createComponentVNode)(2,b)]})})})}return d}(),V=function(u,s){var i=(0,a.useBackend)(s),v=i.act,g=i.data,C=g.beakerLoaded;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{icon:"eject",content:"Eject",disabled:!C,onClick:function(){function h(){return v("eject_beaker")}return h}()}),(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"trash-alt",confirmIcon:"eraser",content:"Destroy",confirmContent:"Destroy",disabled:!C,onClick:function(){function h(){return v("destroy_eject_beaker")}return h}()})],4)},k=function(u,s){var i=(0,a.useBackend)(s),v=i.act,g=i.data,C=g.beakerContainsVirus,h=u.strain,N=h.commonName,y=h.description,B=h.diseaseAgent,I=h.bloodDNA,w=h.bloodType,T=h.possibleTreatments,A=h.transmissionRoute,x=h.isAdvanced,E=(0,e.createFragment)([(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Blood DNA",children:I?(0,e.createVNode)(1,"span",null,I,0,{style:{"font-family":"'Courier New', monospace"}}):"Undetectable"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Blood Type",children:(0,e.createVNode)(1,"div",null,null,1,{dangerouslySetInnerHTML:{__html:w!=null?w:"Undetectable"}})})],4);if(!C)return(0,e.createComponentVNode)(2,t.LabeledList,{children:E});var M;return x&&(N!=null&&N!=="Unknown"?M=(0,e.createComponentVNode)(2,t.Button,{icon:"print",content:"Print Release Forms",onClick:function(){function D(){return v("print_release_forms",{strain_index:u.strainIndex})}return D}(),style:{"margin-left":"auto"}}):M=(0,e.createComponentVNode)(2,t.Button,{icon:"pen",content:"Name Disease",onClick:function(){function D(){return v("name_strain",{strain_index:u.strainIndex})}return D}(),style:{"margin-left":"auto"}})),(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Common Name",className:"common-name-label",children:(0,e.createComponentVNode)(2,t.Stack,{horizontal:!0,align:"center",children:[N!=null?N:"Unknown",M]})}),y&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Description",children:y}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Disease Agent",children:B}),E,(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Spread Vector",children:A!=null?A:"None"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Possible Cures",children:T!=null?T:"None"})]})},S=function(u,s){var i,v=(0,a.useBackend)(s),g=v.act,C=v.data,h=!!C.synthesisCooldown,N=(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{icon:h?"spinner":"clone",iconSpin:h,content:"Clone",disabled:h,onClick:function(){function y(){return g("clone_strain",{strain_index:u.strainIndex})}return y}()}),u.sectionButtons],0);return(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:(i=u.sectionTitle)!=null?i:"Strain Information",buttons:N,children:(0,e.createComponentVNode)(2,k,{strain:u.strain,strainIndex:u.strainIndex})})})},b=function(u,s){var i,v=(0,a.useBackend)(s),g=v.act,C=v.data,h=C.selectedStrainIndex,N=C.strains,y=N[h-1];if(N.length===0)return(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Container Information",buttons:(0,e.createComponentVNode)(2,V),children:(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No disease detected in provided blood sample."})})});if(N.length===1){var B;return(0,e.createFragment)([(0,e.createComponentVNode)(2,S,{strain:N[0],strainIndex:1,sectionButtons:(0,e.createComponentVNode)(2,V)}),((B=N[0].symptoms)==null?void 0:B.length)>0&&(0,e.createComponentVNode)(2,l,{strain:N[0]})],0)}var I=(0,e.createComponentVNode)(2,V);return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Culture Information",fill:!0,buttons:I,children:(0,e.createComponentVNode)(2,t.Flex,{direction:"column",style:{height:"100%"},children:[(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Tabs,{children:N.map(function(w,T){var A;return(0,e.createComponentVNode)(2,t.Tabs.Tab,{icon:"virus",selected:h-1===T,onClick:function(){function x(){return g("switch_strain",{strain_index:T+1})}return x}(),children:(A=w.commonName)!=null?A:"Unknown"},T)})})}),(0,e.createComponentVNode)(2,S,{strain:y,strainIndex:h}),((i=y.symptoms)==null?void 0:i.length)>0&&(0,e.createComponentVNode)(2,l,{className:"remove-section-bottom-padding",strain:y})]})})})},p=function(u){return u.reduce(function(s,i){return s+i},0)},l=function(u){var s=u.strain.symptoms;return(0,e.createComponentVNode)(2,t.Flex.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Infection Symptoms",fill:!0,className:u.className,children:(0,e.createComponentVNode)(2,t.Table,{className:"symptoms-table",children:[(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Name"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Stealth"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Resistance"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Stage Speed"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Transmissibility"})]}),s.map(function(i,v){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:i.name}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:i.stealth}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:i.resistance}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:i.stageSpeed}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:i.transmissibility})]},v)}),(0,e.createComponentVNode)(2,t.Table.Row,{className:"table-spacer"}),(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{style:{"font-weight":"bold"},children:"Total"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:p(s.map(function(i){return i.stealth}))}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:p(s.map(function(i){return i.resistance}))}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:p(s.map(function(i){return i.stageSpeed}))}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:p(s.map(function(i){return i.transmissibility}))})]})]})})})},c=["flask","vial","eye-dropper"],m=function(u,s){var i=(0,a.useBackend)(s),v=i.act,g=i.data,C=g.synthesisCooldown,h=g.beakerContainsVirus,N=g.resistances;return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Antibodies",fill:!0,children:(0,e.createComponentVNode)(2,t.Stack,{horizontal:!0,wrap:!0,children:N.map(function(y,B){return(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:c[B%c.length],disabled:!!C,onClick:function(){function I(){return v("clone_vaccine",{resistance_index:B+1})}return I}(),mr:"0.5em"}),y]},B)})})})})}},78643:function(L,r,n){"use strict";r.__esModule=!0,r.ParticleAccelerator=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.ParticleAccelerator=function(){function V(k,S){var b=(0,a.useBackend)(S),p=b.act,l=b.data,c=l.assembled,m=l.power,d=l.strength,u=l.max_strength;return(0,e.createComponentVNode)(2,o.Window,{width:350,height:160,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Control Panel",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"sync",content:"Connect",onClick:function(){function s(){return p("scan")}return s}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",mb:"5px",children:(0,e.createComponentVNode)(2,t.Box,{color:c?"good":"bad",children:c?"Operational":"Error: Verify Configuration"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power",children:(0,e.createComponentVNode)(2,t.Button,{icon:m?"power-off":"times",content:m?"On":"Off",selected:m,disabled:!c,onClick:function(){function s(){return p("power")}return s}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Strength",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"backward",disabled:!c||d===0,onClick:function(){function s(){return p("remove_strength")}return s}(),mr:"4px"}),d,(0,e.createComponentVNode)(2,t.Button,{icon:"forward",disabled:!c||d===u,onClick:function(){function s(){return p("add_strength")}return s}(),ml:"4px"})]})]})})})})}return V}()},34026:function(L,r,n){"use strict";r.__esModule=!0,r.PdaPainter=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.PdaPainter=function(){function b(p,l){var c=(0,a.useBackend)(l),m=c.data,d=m.has_pda;return(0,e.createComponentVNode)(2,o.Window,{width:510,height:505,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:d?(0,e.createComponentVNode)(2,k):(0,e.createComponentVNode)(2,V)})})}return b}(),V=function(p,l){var c=(0,a.useBackend)(l),m=c.act;return(0,e.createComponentVNode)(2,t.Section,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,grow:!0,textAlign:"center",align:"center",color:"silver",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"download",size:5,mb:"10px"}),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Button,{width:"160px",textAlign:"center",content:"Insert PDA",onClick:function(){function d(){return m("insert_pda")}return d}()})]})})})},k=function(p,l){var c=(0,a.useBackend)(l),m=c.act,d=c.data,u=d.pda_colors;return(0,e.createComponentVNode)(2,t.Stack,{fill:!0,horizontal:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,S)}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,t.Table,{className:"PdaPainter__list",children:Object.keys(u).map(function(s){return(0,e.createComponentVNode)(2,t.Table.Row,{onClick:function(){function i(){return m("choose_pda",{selectedPda:s})}return i}(),children:[(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,children:(0,e.createVNode)(1,"img",null,null,1,{src:"data:image/png;base64,"+u[s][0],style:{"vertical-align":"middle",width:"32px",margin:"0px","margin-left":"0px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:s})]},s)})})})})]})},S=function(p,l){var c=(0,a.useBackend)(l),m=c.act,d=c.data,u=d.current_appearance,s=d.preview_appearance;return(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Current PDA",children:[(0,e.createVNode)(1,"img",null,null,1,{src:"data:image/jpeg;base64,"+u,style:{"vertical-align":"middle",width:"160px",margin:"0px","margin-left":"0px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"eject",content:"Eject",color:"green",onClick:function(){function i(){return m("eject_pda")}return i}()}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"paint-roller",content:"Paint PDA",onClick:function(){function i(){return m("paint_pda")}return i}()})]}),(0,e.createComponentVNode)(2,t.Section,{title:"Preview",children:(0,e.createVNode)(1,"img",null,null,1,{src:"data:image/jpeg;base64,"+s,style:{"vertical-align":"middle",width:"160px",margin:"0px","margin-left":"0px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}})})]})}},81378:function(L,r,n){"use strict";r.__esModule=!0,r.PersonalCrafting=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.PersonalCrafting=function(){function S(b,p){var l=(0,a.useBackend)(p),c=l.act,m=l.data,d=m.busy,u=m.category,s=m.display_craftable_only,i=m.display_compact,v=m.prev_cat,g=m.next_cat,C=m.subcategory,h=m.prev_subcat,N=m.next_subcat;return(0,e.createComponentVNode)(2,o.Window,{width:700,height:800,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[!!d&&(0,e.createComponentVNode)(2,t.Dimmer,{fontSize:"32px",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"cog",spin:1})," Crafting..."]}),(0,e.createComponentVNode)(2,t.Section,{title:u,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{content:"Show Craftable Only",icon:s?"check-square-o":"square-o",selected:s,onClick:function(){function y(){return c("toggle_recipes")}return y}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Compact Mode",icon:i?"check-square-o":"square-o",selected:i,onClick:function(){function y(){return c("toggle_compact")}return y}()})],4),children:[(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Button,{content:v,icon:"arrow-left",onClick:function(){function y(){return c("backwardCat")}return y}()}),(0,e.createComponentVNode)(2,t.Button,{content:g,icon:"arrow-right",onClick:function(){function y(){return c("forwardCat")}return y}()})]}),C&&(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Button,{content:h,icon:"arrow-left",onClick:function(){function y(){return c("backwardSubCat")}return y}()}),(0,e.createComponentVNode)(2,t.Button,{content:N,icon:"arrow-right",onClick:function(){function y(){return c("forwardSubCat")}return y}()})]}),i?(0,e.createComponentVNode)(2,V):(0,e.createComponentVNode)(2,k)]})]})})}return S}(),V=function(b,p){var l=(0,a.useBackend)(p),c=l.act,m=l.data,d=m.display_craftable_only,u=m.can_craft,s=m.cant_craft;return(0,e.createComponentVNode)(2,t.Box,{mt:1,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[u.map(function(i){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:i.name,children:[(0,e.createComponentVNode)(2,t.Button,{icon:"hammer",content:"Craft",onClick:function(){function v(){return c("make",{make:i.ref})}return v}()}),i.catalyst_text&&(0,e.createComponentVNode)(2,t.Button,{tooltip:i.catalyst_text,content:"Catalysts",color:"transparent"}),(0,e.createComponentVNode)(2,t.Button,{tooltip:i.req_text,content:"Requirements",color:"transparent"}),i.tool_text&&(0,e.createComponentVNode)(2,t.Button,{tooltip:i.tool_text,content:"Tools",color:"transparent"})]},i.name)}),!d&&s.map(function(i){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:i.name,children:[(0,e.createComponentVNode)(2,t.Button,{icon:"hammer",content:"Craft",disabled:!0}),i.catalyst_text&&(0,e.createComponentVNode)(2,t.Button,{tooltip:i.catalyst_text,content:"Catalysts",color:"transparent"}),(0,e.createComponentVNode)(2,t.Button,{tooltip:i.req_text,content:"Requirements",color:"transparent"}),i.tool_text&&(0,e.createComponentVNode)(2,t.Button,{tooltip:i.tool_text,content:"Tools",color:"transparent"})]},i.name)})]})})},k=function(b,p){var l=(0,a.useBackend)(p),c=l.act,m=l.data,d=m.display_craftable_only,u=m.can_craft,s=m.cant_craft;return(0,e.createComponentVNode)(2,t.Box,{mt:1,children:[u.map(function(i){return(0,e.createComponentVNode)(2,t.Section,{title:i.name,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"hammer",content:"Craft",onClick:function(){function v(){return c("make",{make:i.ref})}return v}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[i.catalyst_text&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Catalysts",children:i.catalyst_text}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Requirements",children:i.req_text}),i.tool_text&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Tools",children:i.tool_text})]})},i.name)}),!d&&s.map(function(i){return(0,e.createComponentVNode)(2,t.Section,{title:i.name,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"hammer",content:"Craft",disabled:!0}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[i.catalyst_text&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Catalysts",children:i.catalyst_text}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Requirements",children:i.req_text}),i.tool_text&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Tools",children:i.tool_text})]})},i.name)})]})}},58792:function(L,r,n){"use strict";r.__esModule=!0,r.Photocopier=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.Photocopier=function(){function S(b,p){var l=(0,a.useBackend)(p),c=l.act,m=l.data;return(0,e.createComponentVNode)(2,o.Window,{width:400,height:440,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Section,{title:"Photocopier",color:"silver",children:[(0,e.createComponentVNode)(2,t.Stack,{mb:1,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:12,children:"Copies:"}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:"2em",bold:!0,children:m.copynumber}),(0,e.createComponentVNode)(2,t.Stack.Item,{float:"right",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"minus",textAlign:"center",content:"",onClick:function(){function d(){return c("minus")}return d}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"plus",textAlign:"center",content:"",onClick:function(){function d(){return c("add")}return d}()})]})]}),(0,e.createComponentVNode)(2,t.Stack,{mb:2,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:12,children:"Toner:"}),(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,children:m.toner})]}),(0,e.createComponentVNode)(2,t.Stack,{mb:1,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:12,children:"Inserted Document:"}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",disabled:!m.copyitem&&!m.mob,content:m.copyitem?m.copyitem:m.mob?m.mob+"'s ass!":"document",onClick:function(){function d(){return c("removedocument")}return d}()})})]}),(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:12,children:"Inserted Folder:"}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",disabled:!m.folder,content:m.folder?m.folder:"folder",onClick:function(){function d(){return c("removefolder")}return d}()})})]})]}),(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,V)}),(0,e.createComponentVNode)(2,k)]})})})}return S}(),V=function(b,p){var l=(0,a.useBackend)(p),c=l.act,m=l.data,d=m.issilicon;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"copy",float:"center",textAlign:"center",content:"Copy",onClick:function(){function u(){return c("copy")}return u}()}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"file-import",float:"center",textAlign:"center",content:"Scan",onClick:function(){function u(){return c("scandocument")}return u}()}),!!d&&(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"file",color:"green",float:"center",textAlign:"center",content:"Print Text",onClick:function(){function u(){return c("ai_text")}return u}()}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"image",color:"green",float:"center",textAlign:"center",content:"Print Image",onClick:function(){function u(){return c("ai_pic")}return u}()})],4)],0)},k=function(b,p){var l=(0,a.useBackend)(p),c=l.act,m=l.data;return(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Scanned Files",children:m.files.map(function(d){return(0,e.createComponentVNode)(2,t.Section,{title:d.name,buttons:(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"print",content:"Print",disabled:m.toner<=0,onClick:function(){function u(){return c("filecopy",{uid:d.uid})}return u}()}),(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"trash-alt",content:"Delete",color:"bad",onClick:function(){function u(){return c("deletefile",{uid:d.uid})}return u}()})]})},d.name)})})}},27902:function(L,r,n){"use strict";r.__esModule=!0,r.PoolController=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=["tempKey"];function V(p,l){if(p==null)return{};var c={},m=Object.keys(p),d,u;for(u=0;u=0)&&(c[d]=p[d]);return c}var k={scalding:{label:"Scalding",color:"#FF0000",icon:"fa fa-arrow-circle-up",requireEmag:!0},warm:{label:"Warm",color:"#990000",icon:"fa fa-arrow-circle-up"},normal:{label:"Normal",color:null,icon:"fa fa-arrow-circle-right"},cool:{label:"Cool",color:"#009999",icon:"fa fa-arrow-circle-down"},frigid:{label:"Frigid",color:"#00CCCC",icon:"fa fa-arrow-circle-down",requireEmag:!0}},S=function(l,c){var m=l.tempKey,d=V(l,f),u=k[m];if(!u)return null;var s=(0,a.useBackend)(c),i=s.data,v=s.act,g=i.currentTemp,C=u.label,h=u.icon,N=m===g,y=function(){v("setTemp",{temp:m})};return(0,e.normalizeProps)((0,e.createComponentVNode)(2,t.Button,Object.assign({color:"transparent",selected:N,onClick:y},d,{children:[(0,e.createComponentVNode)(2,t.Icon,{name:h}),C]})))},b=r.PoolController=function(){function p(l,c){for(var m=(0,a.useBackend)(c),d=m.data,u=d.emagged,s=d.currentTemp,i=k[s]||k.normal,v=i.label,g=i.color,C=[],h=0,N=Object.entries(k);h50?"battery-half":"battery-quarter")||g==="C"&&"bolt"||g==="F"&&"battery-full"||g==="M"&&"slash",color:g==="N"&&(C>50?"yellow":"red")||g==="C"&&"yellow"||g==="F"&&"green"||g==="M"&&"orange"}),(0,e.createComponentVNode)(2,S.Box,{inline:!0,width:"36px",textAlign:"right",children:(0,o.toFixed)(C)+"%"})],4)};u.defaultHooks=f.pureComponentHooks;var s=function(v){var g,C,h=v.status;switch(h){case"AOn":g=!0,C=!0;break;case"AOff":g=!0,C=!1;break;case"On":g=!1,C=!0;break;case"Off":g=!1,C=!1;break}var N=(C?"On":"Off")+(" ["+(g?"auto":"manual")+"]");return(0,e.createComponentVNode)(2,S.ColorBox,{color:C?"good":"bad",content:g?void 0:"M",title:N})};s.defaultHooks=f.pureComponentHooks},27262:function(L,r,n){"use strict";r.__esModule=!0,r.PrisonerImplantManager=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(91097),f=n(99665),V=n(68159),k=n(27527),S=n(45493),b=r.PrisonerImplantManager=function(){function p(l,c){var m=(0,a.useBackend)(c),d=m.act,u=m.data,s=u.loginState,i=u.prisonerInfo,v=u.chemicalInfo,g=u.trackingInfo,C;if(!s.logged_in)return(0,e.createComponentVNode)(2,S.Window,{theme:"security",width:500,height:850,children:(0,e.createComponentVNode)(2,S.Window.Content,{children:(0,e.createComponentVNode)(2,k.LoginScreen)})});var h=[1,5,10];return(0,e.createComponentVNode)(2,S.Window,{theme:"security",width:500,height:850,children:[(0,e.createComponentVNode)(2,f.ComplexModal),(0,e.createComponentVNode)(2,S.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,V.LoginInfo),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Prisoner Points Manager System",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Prisoner",children:(0,e.createComponentVNode)(2,t.Button,{icon:i.name?"eject":"id-card",selected:i.name,content:i.name?i.name:"-----",tooltip:i.name?"Eject ID":"Insert ID",onClick:function(){function N(){return d("id_card")}return N}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Points",children:[i.points!==null?i.points:"-/-",(0,e.createComponentVNode)(2,t.Button,{ml:2,icon:"minus-square",disabled:i.points===null,content:"Reset",onClick:function(){function N(){return d("reset_points")}return N}()})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Point Goal",children:[i.goal!==null?i.goal:"-/-",(0,e.createComponentVNode)(2,t.Button,{ml:2,icon:"pen",disabled:i.goal===null,content:"Edit",onClick:function(){function N(){return(0,f.modalOpen)(c,"set_points")}return N}()})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{children:(0,e.createVNode)(1,"box",null,[(0,e.createTextVNode)("1 minute of prison time should roughly equate to 150 points."),(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("Sentences should not exceed 5000 points."),(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("Permanent prisoners should not be given a point goal."),(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("Prisoners who meet their point goal will be able to automatically access their locker and return to the station using the shuttle.")],4,{hidden:i.goal===null})})]})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Tracking Implants",children:g.map(function(N){return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{p:1,backgroundColor:"rgba(255, 255, 255, 0.05)",children:[(0,e.createComponentVNode)(2,t.Box,{bold:!0,children:["Subject: ",N.subject]}),(0,e.createComponentVNode)(2,t.Box,{children:[" ",(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Location",children:N.location}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Health",children:N.health}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Prisoner",children:(0,e.createComponentVNode)(2,t.Button,{icon:"exclamation-triangle",content:"Warn",tooltip:"Broadcast a message to this poor sod",onClick:function(){function y(){return(0,f.modalOpen)(c,"warn",{uid:N.uid})}return y}()})})]})]},N.subject)]}),(0,e.createVNode)(1,"br")],4)})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Chemical Implants",children:v.map(function(N){return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{p:1,backgroundColor:"rgba(255, 255, 255, 0.05)",children:[(0,e.createComponentVNode)(2,t.Box,{bold:!0,children:["Subject: ",N.name]}),(0,e.createComponentVNode)(2,t.Box,{children:[" ",(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,o.LabeledList,{children:(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Remaining Reagents",children:N.volume})}),h.map(function(y){return(0,e.createComponentVNode)(2,t.Button,{mt:2,disabled:N.volumec;return(0,e.createComponentVNode)(2,t.ImageButton,{asset:!0,imageAsset:"prize_counter64x64",image:g.imageID,title:g.name,content:g.desc,children:(0,e.createComponentVNode)(2,t.ImageButton.Item,{bold:!0,width:"64px",fontSize:1.5,textColor:C&&"gray",content:g.cost,icon:"ticket",iconSize:1.6,iconColor:C?"bad":"good",tooltip:C&&"Not enough tickets",disabled:C,onClick:function(){function h(){return p("purchase",{purchase:g.itemID})}return h}()})},g.name)})})})})})})}return V}()},87963:function(L,r,n){"use strict";r.__esModule=!0,r.RCD=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=n(99665),V=n(57842),k=r.RCD=function(){function d(u,s){return(0,e.createComponentVNode)(2,o.Window,{width:480,height:670,children:[(0,e.createComponentVNode)(2,f.ComplexModal),(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,S),(0,e.createComponentVNode)(2,b),(0,e.createComponentVNode)(2,l),(0,e.createComponentVNode)(2,c)]})})]})}return d}(),S=function(u,s){var i=(0,a.useBackend)(s),v=i.data,g=v.matter,C=v.max_matter,h=C*.7,N=C*.25;return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Matter Storage",children:(0,e.createComponentVNode)(2,t.ProgressBar,{ranges:{good:[h,1/0],average:[N,h],bad:[-1/0,N]},value:g,maxValue:C,children:(0,e.createComponentVNode)(2,t.Stack.Item,{textAlign:"center",children:g+" / "+C+" units"})})})})},b=function(){return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Construction Type",children:(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,p,{mode_type:"Floors and Walls"}),(0,e.createComponentVNode)(2,p,{mode_type:"Airlocks"}),(0,e.createComponentVNode)(2,p,{mode_type:"Windows"}),(0,e.createComponentVNode)(2,p,{mode_type:"Deconstruction"})]})})})},p=function(u,s){var i=(0,a.useBackend)(s),v=i.act,g=i.data,C=u.mode_type,h=g.mode;return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,color:"transparent",content:C,selected:h===C?1:0,onClick:function(){function N(){return v("mode",{mode:C})}return N}()})})},l=function(u,s){var i=(0,a.useBackend)(s),v=i.act,g=i.data,C=g.door_name,h=g.electrochromic,N=g.airlock_glass;return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Airlock Settings",children:(0,e.createComponentVNode)(2,t.Stack,{textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,color:"transparent",icon:"pen-alt",content:(0,e.createFragment)([(0,e.createTextVNode)("Rename: "),(0,e.createVNode)(1,"b",null,C,0)],0),onClick:function(){function y(){return(0,f.modalOpen)(s,"renameAirlock")}return y}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:N===1&&(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:h?"toggle-on":"toggle-off",content:"Electrochromic",selected:h,onClick:function(){function y(){return v("electrochromic")}return y}()})})]})})})},c=function(u,s){var i=(0,a.useBackend)(s),v=i.act,g=i.data,C=g.tab,h=g.locked,N=g.one_access,y=g.selected_accesses,B=g.regions;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Stack.Item,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Tabs,{fluid:!0,children:[(0,e.createComponentVNode)(2,t.Tabs.Tab,{icon:"cog",selected:C===1,onClick:function(){function I(){return v("set_tab",{tab:1})}return I}(),children:"Airlock Types"}),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:C===2,icon:"list",onClick:function(){function I(){return v("set_tab",{tab:2})}return I}(),children:"Airlock Access"})]})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:C===1?(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Types",children:(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,m,{check_number:0})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,m,{check_number:1})})]})}):C===2&&h?(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Access",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"lock-open",content:"Unlock",onClick:function(){function I(){return v("set_lock",{new_lock:"unlock"})}return I}()}),children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,textAlign:"center",align:"center",color:"label",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"lock",size:"5",mb:3}),(0,e.createVNode)(1,"br"),"Airlock access selection is currently locked."]})})}):(0,e.createComponentVNode)(2,V.AccessList,{sectionButtons:(0,e.createComponentVNode)(2,t.Button,{icon:"lock",content:"Lock",onClick:function(){function I(){return v("set_lock",{new_lock:"lock"})}return I}()}),usedByRcd:1,rcdButtons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:N,content:"One",onClick:function(){function I(){return v("set_one_access",{access:"one"})}return I}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:!N,width:4,content:"All",onClick:function(){function I(){return v("set_one_access",{access:"all"})}return I}()})],4),accesses:B,selectedList:y,accessMod:function(){function I(w){return v("set",{access:w})}return I}(),grantAll:function(){function I(){return v("grant_all")}return I}(),denyAll:function(){function I(){return v("clear_all")}return I}(),grantDep:function(){function I(w){return v("grant_region",{region:w})}return I}(),denyDep:function(){function I(w){return v("deny_region",{region:w})}return I}()})})],4)},m=function(u,s){for(var i=(0,a.useBackend)(s),v=i.act,g=i.data,C=g.door_types_ui_list,h=g.door_type,N=u.check_number,y=[],B=0;B0?"envelope-open-text":"envelope",onClick:function(){function B(){return v("setScreen",{setScreen:6})}return B}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{mt:1,children:[(0,e.createComponentVNode)(2,t.Button,{fluid:!0,lineHeight:3,color:"translucent",content:"Request Assistance",icon:"hand-paper",onClick:function(){function B(){return v("setScreen",{setScreen:1})}return B}()}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{fluid:!0,lineHeight:3,color:"translucent",content:"Request Supplies",icon:"box",onClick:function(){function B(){return v("setScreen",{setScreen:2})}return B}()}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,lineHeight:3,color:"translucent",content:"Request Secondary Goal",icon:"clipboard-list",onClick:function(){function B(){return v("setScreen",{setScreen:11})}return B}()}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,lineHeight:3,color:"translucent",content:"Relay Anonymous Information",icon:"comment",onClick:function(){function B(){return v("setScreen",{setScreen:3})}return B}()})]})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{mt:1,children:(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{fluid:!0,lineHeight:3,color:"translucent",content:"Print Shipping Label",icon:"tag",onClick:function(){function B(){return v("setScreen",{setScreen:9})}return B}()}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,lineHeight:3,color:"translucent",content:"View Shipping Logs",icon:"clipboard-list",onClick:function(){function B(){return v("setScreen",{setScreen:10})}return B}()})]})}),!!h&&(0,e.createComponentVNode)(2,t.Stack.Item,{mt:1,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,lineHeight:3,color:"translucent",content:"Send Station-Wide Announcement",icon:"bullhorn",onClick:function(){function B(){return v("setScreen",{setScreen:8})}return B}()})})]})})},k=function(u,s){var i=(0,a.useBackend)(s),v=i.act,g=i.data,C=g.department,h=[],N;switch(u.purpose){case"ASSISTANCE":h=g.assist_dept,N="Request assistance from another department";break;case"SUPPLIES":h=g.supply_dept,N="Request supplies from another department";break;case"INFO":h=g.info_dept,N="Relay information to another department";break}return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:N,buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Back",icon:"arrow-left",onClick:function(){function y(){return v("setScreen",{setScreen:0})}return y}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:h.filter(function(y){return y!==C}).map(function(y){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:y,textAlign:"right",className:"candystripe",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Message",icon:"envelope",onClick:function(){function B(){return v("writeInput",{write:y,priority:"1"})}return B}()}),(0,e.createComponentVNode)(2,t.Button,{content:"High Priority",icon:"exclamation-circle",onClick:function(){function B(){return v("writeInput",{write:y,priority:"2"})}return B}()})]},y)})})})})},S=function(u,s){var i=(0,a.useBackend)(s),v=i.act,g=i.data,C;switch(u.type){case"SUCCESS":C="Message sent successfully";break;case"FAIL":C="Unable to contact messaging server";break}return(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:C,buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Back",icon:"arrow-left",onClick:function(){function h(){return v("setScreen",{setScreen:0})}return h}()})})},b=function(u,s){var i=(0,a.useBackend)(s),v=i.act,g=i.data,C,h;switch(u.type){case"MESSAGES":C=g.message_log,h="Message Log";break;case"SHIPPING":C=g.shipping_log,h="Shipping label print log";break}return C.reverse(),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:h,buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Back",icon:"arrow-left",onClick:function(){function N(){return v("setScreen",{setScreen:0})}return N}()}),children:C.map(function(N){return(0,e.createComponentVNode)(2,t.Box,{textAlign:"left",children:[N.map(function(y,B){return(0,e.createVNode)(1,"div",null,y,0,null,B)}),(0,e.createVNode)(1,"hr")]},N)})})})},p=function(u,s){var i=(0,a.useBackend)(s),v=i.act,g=i.data,C=g.recipient,h=g.message,N=g.msgVerified,y=g.msgStamped;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Message Authentication",buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Back",icon:"arrow-left",onClick:function(){function B(){return v("setScreen",{setScreen:0})}return B}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Recipient",children:C}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Message",children:h}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Validated by",color:"green",children:N}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Stamped by",color:"blue",children:y})]})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",content:"Send Message",icon:"envelope",onClick:function(){function B(){return v("department",{department:C})}return B}()})})})],4)},l=function(u,s){var i=(0,a.useBackend)(s),v=i.act,g=i.data,C=g.message,h=g.announceAuth;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Station-Wide Announcement",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{content:"Back",icon:"arrow-left",onClick:function(){function N(){return v("setScreen",{setScreen:0})}return N}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Edit Message",icon:"edit",onClick:function(){function N(){return v("writeAnnouncement")}return N}()})],4),children:C})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{children:[h?(0,e.createComponentVNode)(2,t.Box,{textAlign:"center",color:"green",children:"ID verified. Authentication accepted."}):(0,e.createComponentVNode)(2,t.Box,{textAlign:"center",color:"label",children:"Swipe your ID card to authenticate yourself"}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,mt:2,textAlign:"center",content:"Send Announcement",icon:"bullhorn",disabled:!(h&&C),onClick:function(){function N(){return v("sendAnnouncement")}return N}()})]})})],4)},c=function(u,s){var i=(0,a.useBackend)(s),v=i.act,g=i.data,C=g.shipDest,h=g.msgVerified,N=g.ship_dept;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Stack.Item,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Section,{title:"Print Shipping Label",buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Back",icon:"arrow-left",onClick:function(){function y(){return v("setScreen",{setScreen:0})}return y}()}),children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Destination",children:C}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Validated by",children:h})]}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,mt:1,textAlign:"center",content:"Print Label",icon:"print",disabled:!(C&&h),onClick:function(){function y(){return v("printLabel")}return y}()})]})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Destinations",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:N.map(function(y){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:y,textAlign:"right",className:"candystripe",children:(0,e.createComponentVNode)(2,t.Button,{content:C===y?"Selected":"Select",selected:C===y,onClick:function(){function B(){return v("shipSelect",{shipSelect:y})}return B}()})},y)})})})})],4)},m=function(u,s){var i=(0,a.useBackend)(s),v=i.act,g=i.data,C=g.secondaryGoalAuth,h=g.secondaryGoalEnabled;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Request Secondary Goal",buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Back",icon:"arrow-left",onClick:function(){function N(){return v("setScreen",{setScreen:0})}return N}()})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{children:[h?C?(0,e.createComponentVNode)(2,t.Box,{textAlign:"center",color:"green",children:"ID verified. Authentication accepted."}):(0,e.createComponentVNode)(2,t.Box,{textAlign:"center",color:"label",children:"Swipe your ID card to authenticate yourself"}):(0,e.createComponentVNode)(2,t.Box,{textAlign:"center",color:"label",children:"Complete your current goal first!"}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,mt:2,textAlign:"center",content:"Request Secondary Goal",icon:"clipboard-list",disabled:!(C&&h),onClick:function(){function N(){return v("requestSecondaryGoal")}return N}()})]})})],4)}},89641:function(L,r,n){"use strict";r.__esModule=!0,r.SUBMENU=r.RndConsole=r.MENU=void 0;var e=n(96524),a=n(17899),t=n(45493),o=n(24674),f=n(3422),V=r.MENU={MAIN:0,LEVELS:1,DISK:2,DESTROY:3,LATHE:4,IMPRINTER:5,SETTINGS:6},k=r.SUBMENU={MAIN:0,DISK_COPY:1,LATHE_CATEGORY:1,LATHE_MAT_STORAGE:2,LATHE_CHEM_STORAGE:3,SETTINGS_DEVICES:1},S=r.RndConsole=function(){function b(p,l){var c=(0,a.useBackend)(l),m=c.data,d=m.wait_message;return(0,e.createComponentVNode)(2,t.Window,{width:800,height:550,children:(0,e.createComponentVNode)(2,t.Window.Content,{children:(0,e.createComponentVNode)(2,o.Box,{className:"RndConsole",children:[(0,e.createComponentVNode)(2,f.RndNavbar),(0,e.createComponentVNode)(2,f.RndRoute,{menu:V.MAIN,render:function(){function u(){return(0,e.createComponentVNode)(2,f.MainMenu)}return u}()}),(0,e.createComponentVNode)(2,f.RndRoute,{menu:V.LEVELS,render:function(){function u(){return(0,e.createComponentVNode)(2,f.CurrentLevels)}return u}()}),(0,e.createComponentVNode)(2,f.RndRoute,{menu:V.DISK,render:function(){function u(){return(0,e.createComponentVNode)(2,f.DataDiskMenu)}return u}()}),(0,e.createComponentVNode)(2,f.RndRoute,{menu:V.DESTROY,render:function(){function u(){return(0,e.createComponentVNode)(2,f.DeconstructionMenu)}return u}()}),(0,e.createComponentVNode)(2,f.RndRoute,{menu:function(){function u(s){return s===V.LATHE||s===V.IMPRINTER}return u}(),render:function(){function u(){return(0,e.createComponentVNode)(2,f.LatheMenu)}return u}()}),(0,e.createComponentVNode)(2,f.RndRoute,{menu:V.SETTINGS,render:function(){function u(){return(0,e.createComponentVNode)(2,f.SettingsMenu)}return u}()}),d?(0,e.createComponentVNode)(2,o.Box,{className:"RndConsole__Overlay",children:(0,e.createComponentVNode)(2,o.Box,{className:"RndConsole__Overlay__Wrapper",children:(0,e.createComponentVNode)(2,o.NoticeBox,{color:"black",children:d})})}):null]})})})}return b}()},19348:function(L,r,n){"use strict";r.__esModule=!0,r.CurrentLevels=void 0;var e=n(96524),a=n(17899),t=n(24674),o=r.CurrentLevels=function(){function f(V,k){var S=(0,a.useBackend)(k),b=S.data,p=b.tech_levels;return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createVNode)(1,"h3",null,"Current Research Levels:",16),p.map(function(l,c){var m=l.name,d=l.level,u=l.desc;return(0,e.createComponentVNode)(2,t.Box,{children:[c>0?(0,e.createComponentVNode)(2,t.Divider):null,(0,e.createComponentVNode)(2,t.Box,{children:m}),(0,e.createComponentVNode)(2,t.Box,{children:["* Level: ",d]}),(0,e.createComponentVNode)(2,t.Box,{children:["* Summary: ",u]})]},m)})]})}return f}()},338:function(L,r,n){"use strict";r.__esModule=!0,r.DataDiskMenu=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(3422),f=n(89641),V="design",k="tech",S=function(s,i){var v=(0,a.useBackend)(i),g=v.data,C=v.act,h=g.disk_data;return h?(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Name",children:h.name}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Level",children:h.level}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Description",children:h.desc})]}),(0,e.createComponentVNode)(2,t.Box,{mt:"10px",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Upload to Database",icon:"arrow-up",onClick:function(){function N(){return C("updt_tech")}return N}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Clear Disk",icon:"trash",onClick:function(){function N(){return C("clear_tech")}return N}()}),(0,e.createComponentVNode)(2,l)]})]}):null},b=function(s,i){var v=(0,a.useBackend)(i),g=v.data,C=v.act,h=g.disk_data;if(!h)return null;var N=h.name,y=h.lathe_types,B=h.materials,I=y.join(", ");return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Name",children:N}),I?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Lathe Types",children:I}):null,(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Required Materials"})]}),B.map(function(w){return(0,e.createComponentVNode)(2,t.Box,{children:["- ",(0,e.createVNode)(1,"span",null,w.name,0,{style:{"text-transform":"capitalize"}})," x ",w.amount]},w.name)}),(0,e.createComponentVNode)(2,t.Box,{mt:"10px",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Upload to Database",icon:"arrow-up",onClick:function(){function w(){return C("updt_design")}return w}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Clear Disk",icon:"trash",onClick:function(){function w(){return C("clear_design")}return w}()}),(0,e.createComponentVNode)(2,l)]})]})},p=function(s,i){var v=(0,a.useBackend)(i),g=v.data,C=g.disk_type;return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Box,{children:"This disk is empty."}),(0,e.createComponentVNode)(2,t.Box,{mt:"10px",children:[(0,e.createComponentVNode)(2,o.RndNavButton,{submenu:f.SUBMENU.DISK_COPY,icon:"arrow-down",content:C===k?"Load Tech to Disk":"Load Design to Disk"}),(0,e.createComponentVNode)(2,l)]})]})},l=function(s,i){var v=(0,a.useBackend)(i),g=v.data,C=v.act,h=g.disk_type;return h?(0,e.createComponentVNode)(2,t.Button,{content:"Eject Disk",icon:"eject",onClick:function(){function N(){var y=h===k?"eject_tech":"eject_design";C(y)}return N}()}):null},c=function(s,i){var v=(0,a.useBackend)(i),g=v.data,C=g.disk_data,h=g.disk_type,N=function(){if(!C)return(0,e.createComponentVNode)(2,p);switch(h){case V:return(0,e.createComponentVNode)(2,b);case k:return(0,e.createComponentVNode)(2,S);default:return null}};return(0,e.createComponentVNode)(2,t.Section,{title:"Data Disk Contents",children:N()})},m=function(s,i){var v=(0,a.useBackend)(i),g=v.data,C=v.act,h=g.disk_type,N=g.to_copy;return(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.Box,{overflowY:"auto",overflowX:"hidden",maxHeight:"450px",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:N.sort(function(y,B){return y.name.localeCompare(B.name)}).map(function(y){var B=y.name,I=y.id;return(0,e.createComponentVNode)(2,t.LabeledList.Item,{noColon:!0,label:B,children:(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-down",content:"Copy to Disk",onClick:function(){function w(){h===k?C("copy_tech",{id:I}):C("copy_design",{id:I})}return w}()})},I)})})})})},d=r.DataDiskMenu=function(){function u(s,i){var v=(0,a.useBackend)(i),g=v.data,C=g.disk_type;return C?(0,e.createFragment)([(0,e.createComponentVNode)(2,o.RndRoute,{submenu:f.SUBMENU.MAIN,render:function(){function h(){return(0,e.createComponentVNode)(2,c)}return h}()}),(0,e.createComponentVNode)(2,o.RndRoute,{submenu:f.SUBMENU.DISK_COPY,render:function(){function h(){return(0,e.createComponentVNode)(2,m)}return h}()})],4):null}return u}()},90785:function(L,r,n){"use strict";r.__esModule=!0,r.DeconstructionMenu=void 0;var e=n(96524),a=n(17899),t=n(24674),o=r.DeconstructionMenu=function(){function f(V,k){var S=(0,a.useBackend)(k),b=S.data,p=S.act,l=b.loaded_item,c=b.linked_destroy;return c?l?(0,e.createComponentVNode)(2,t.Section,{noTopPadding:!0,title:"Deconstruction Menu",children:[(0,e.createComponentVNode)(2,t.Box,{mt:"10px",children:["Name: ",l.name]}),(0,e.createComponentVNode)(2,t.Box,{mt:"10px",children:(0,e.createVNode)(1,"h3",null,"Origin Tech:",16)}),(0,e.createComponentVNode)(2,t.LabeledList,{children:l.origin_tech.map(function(m){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"* "+m.name,children:[m.object_level," ",m.current_level?(0,e.createFragment)([(0,e.createTextVNode)("(Current: "),m.current_level,(0,e.createTextVNode)(")")],0):null]},m.name)})}),(0,e.createComponentVNode)(2,t.Box,{mt:"10px",children:(0,e.createVNode)(1,"h3",null,"Options:",16)}),(0,e.createComponentVNode)(2,t.Button,{content:"Deconstruct Item",icon:"unlink",onClick:function(){function m(){p("deconstruct")}return m}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Eject Item",icon:"eject",onClick:function(){function m(){p("eject_item")}return m}()})]}):(0,e.createComponentVNode)(2,t.Section,{title:"Deconstruction Menu",children:"No item loaded. Standing by..."}):(0,e.createComponentVNode)(2,t.Box,{children:"NO DESTRUCTIVE ANALYZER LINKED TO CONSOLE"})}return f}()},34492:function(L,r,n){"use strict";r.__esModule=!0,r.LatheCategory=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(3422),f=r.LatheCategory=function(){function V(k,S){var b=(0,a.useBackend)(S),p=b.data,l=b.act,c=p.category,m=p.matching_designs,d=p.menu,u=d===4,s=u?"build":"imprint";return(0,e.createComponentVNode)(2,t.Section,{title:c,children:[(0,e.createComponentVNode)(2,o.LatheMaterials),(0,e.createComponentVNode)(2,t.Table,{className:"RndConsole__LatheCategory__MatchingDesigns",children:m.map(function(i){var v=i.id,g=i.name,C=i.can_build,h=i.materials;return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"print",content:g,disabled:C<1,onClick:function(){function N(){return l(s,{id:v,amount:1})}return N}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:C>=5?(0,e.createComponentVNode)(2,t.Button,{content:"x5",onClick:function(){function N(){return l(s,{id:v,amount:5})}return N}()}):null}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:C>=10?(0,e.createComponentVNode)(2,t.Button,{content:"x10",onClick:function(){function N(){return l(s,{id:v,amount:10})}return N}()}):null}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:h.map(function(N){return(0,e.createFragment)([" | ",(0,e.createVNode)(1,"span",N.is_red?"color-red":null,[N.amount,(0,e.createTextVNode)(" "),N.name],0)],0)})})]},v)})})]})}return V}()},84275:function(L,r,n){"use strict";r.__esModule=!0,r.LatheChemicalStorage=void 0;var e=n(96524),a=n(17899),t=n(24674),o=r.LatheChemicalStorage=function(){function f(V,k){var S=(0,a.useBackend)(k),b=S.data,p=S.act,l=b.loaded_chemicals,c=b.menu===4;return(0,e.createComponentVNode)(2,t.Section,{title:"Chemical Storage",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Purge All",icon:"trash",onClick:function(){function m(){var d=c?"disposeallP":"disposeallI";p(d)}return m}()}),(0,e.createComponentVNode)(2,t.LabeledList,{children:l.map(function(m){var d=m.volume,u=m.name,s=m.id;return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"* "+d+" of "+u,children:(0,e.createComponentVNode)(2,t.Button,{content:"Purge",icon:"trash",onClick:function(){function i(){var v=c?"disposeP":"disposeI";p(v,{id:s})}return i}()})},s)})})]})}return f}()},12638:function(L,r,n){"use strict";r.__esModule=!0,r.LatheMainMenu=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(3422),f=r.LatheMainMenu=function(){function V(k,S){var b=(0,a.useBackend)(S),p=b.data,l=b.act,c=p.menu,m=p.categories,d=c===4?"Protolathe":"Circuit Imprinter";return(0,e.createComponentVNode)(2,t.Section,{title:d+" Menu",children:[(0,e.createComponentVNode)(2,o.LatheMaterials),(0,e.createComponentVNode)(2,o.LatheSearch),(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,t.Flex,{wrap:"wrap",children:m.map(function(u){return(0,e.createComponentVNode)(2,t.Flex,{style:{"flex-basis":"50%","margin-bottom":"6px"},children:(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-right",content:u,onClick:function(){function s(){l("setCategory",{category:u})}return s}()})},u)})})]})}return V}()},89004:function(L,r,n){"use strict";r.__esModule=!0,r.LatheMaterialStorage=void 0;var e=n(96524),a=n(17899),t=n(24674),o=r.LatheMaterialStorage=function(){function f(V,k){var S=(0,a.useBackend)(k),b=S.data,p=S.act,l=b.loaded_materials;return(0,e.createComponentVNode)(2,t.Section,{className:"RndConsole__LatheMaterialStorage",title:"Material Storage",children:(0,e.createComponentVNode)(2,t.Table,{children:l.map(function(c){var m=c.id,d=c.amount,u=c.name,s=function(){function C(h){var N=b.menu===4?"lathe_ejectsheet":"imprinter_ejectsheet";p(N,{id:m,amount:h})}return C}(),i=Math.floor(d/2e3),v=d<1,g=i===1?"":"s";return(0,e.createComponentVNode)(2,t.Table.Row,{className:v?"color-grey":"color-yellow",children:[(0,e.createComponentVNode)(2,t.Table.Cell,{minWidth:"210px",children:["* ",d," of ",u]}),(0,e.createComponentVNode)(2,t.Table.Cell,{minWidth:"110px",children:["(",i," sheet",g,")"]}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:d>=2e3?(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{content:"1x",icon:"eject",onClick:function(){function C(){return s(1)}return C}()}),(0,e.createComponentVNode)(2,t.Button,{content:"C",icon:"eject",onClick:function(){function C(){return s("custom")}return C}()}),d>=2e3*5?(0,e.createComponentVNode)(2,t.Button,{content:"5x",icon:"eject",onClick:function(){function C(){return s(5)}return C}()}):null,(0,e.createComponentVNode)(2,t.Button,{content:"All",icon:"eject",onClick:function(){function C(){return s(50)}return C}()})],0):null})]},m)})})})}return f}()},73856:function(L,r,n){"use strict";r.__esModule=!0,r.LatheMaterials=void 0;var e=n(96524),a=n(17899),t=n(24674),o=r.LatheMaterials=function(){function f(V,k){var S=(0,a.useBackend)(k),b=S.data,p=b.total_materials,l=b.max_materials,c=b.max_chemicals,m=b.total_chemicals;return(0,e.createComponentVNode)(2,t.Box,{className:"RndConsole__LatheMaterials",mb:"10px",children:(0,e.createComponentVNode)(2,t.Table,{width:"auto",children:[(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Material Amount:"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:p}),l?(0,e.createComponentVNode)(2,t.Table.Cell,{children:" / "+l}):null]}),(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Chemical Amount:"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:m}),c?(0,e.createComponentVNode)(2,t.Table.Cell,{children:" / "+c}):null]})]})})}return f}()},75955:function(L,r,n){"use strict";r.__esModule=!0,r.LatheMenu=void 0;var e=n(96524),a=n(17899),t=n(78345),o=n(3422),f=n(24674),V=n(89641),k=r.LatheMenu=function(){function S(b,p){var l=(0,a.useBackend)(p),c=l.data,m=c.menu,d=c.linked_lathe,u=c.linked_imprinter;return m===4&&!d?(0,e.createComponentVNode)(2,f.Box,{children:"NO PROTOLATHE LINKED TO CONSOLE"}):m===5&&!u?(0,e.createComponentVNode)(2,f.Box,{children:"NO CIRCUIT IMPRITER LINKED TO CONSOLE"}):(0,e.createComponentVNode)(2,f.Box,{children:[(0,e.createComponentVNode)(2,t.RndRoute,{submenu:V.SUBMENU.MAIN,render:function(){function s(){return(0,e.createComponentVNode)(2,o.LatheMainMenu)}return s}()}),(0,e.createComponentVNode)(2,t.RndRoute,{submenu:V.SUBMENU.LATHE_CATEGORY,render:function(){function s(){return(0,e.createComponentVNode)(2,o.LatheCategory)}return s}()}),(0,e.createComponentVNode)(2,t.RndRoute,{submenu:V.SUBMENU.LATHE_MAT_STORAGE,render:function(){function s(){return(0,e.createComponentVNode)(2,o.LatheMaterialStorage)}return s}()}),(0,e.createComponentVNode)(2,t.RndRoute,{submenu:V.SUBMENU.LATHE_CHEM_STORAGE,render:function(){function s(){return(0,e.createComponentVNode)(2,o.LatheChemicalStorage)}return s}()})]})}return S}()},72880:function(L,r,n){"use strict";r.__esModule=!0,r.LatheSearch=void 0;var e=n(96524),a=n(17899),t=n(24674),o=r.LatheSearch=function(){function f(V,k){var S=(0,a.useBackend)(k),b=S.act;return(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Input,{placeholder:"Search...",onEnter:function(){function p(l,c){return b("search",{to_search:c})}return p}()})})}return f}()},62306:function(L,r,n){"use strict";r.__esModule=!0,r.MainMenu=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(3422),f=n(89641),V=r.MainMenu=function(){function k(S,b){var p=(0,a.useBackend)(b),l=p.data,c=l.disk_type,m=l.linked_destroy,d=l.linked_lathe,u=l.linked_imprinter,s=l.tech_levels;return(0,e.createComponentVNode)(2,t.Section,{title:"Main Menu",children:[(0,e.createComponentVNode)(2,t.Flex,{className:"RndConsole__MainMenu__Buttons",direction:"column",align:"flex-start",children:[(0,e.createComponentVNode)(2,o.RndNavButton,{disabled:!c,menu:f.MENU.DISK,submenu:f.SUBMENU.MAIN,icon:"save",content:"Disk Operations"}),(0,e.createComponentVNode)(2,o.RndNavButton,{disabled:!m,menu:f.MENU.DESTROY,submenu:f.SUBMENU.MAIN,icon:"unlink",content:"Destructive Analyzer Menu"}),(0,e.createComponentVNode)(2,o.RndNavButton,{disabled:!d,menu:f.MENU.LATHE,submenu:f.SUBMENU.MAIN,icon:"print",content:"Protolathe Menu"}),(0,e.createComponentVNode)(2,o.RndNavButton,{disabled:!u,menu:f.MENU.IMPRINTER,submenu:f.SUBMENU.MAIN,icon:"print",content:"Circuit Imprinter Menu"}),(0,e.createComponentVNode)(2,o.RndNavButton,{menu:f.MENU.SETTINGS,submenu:f.SUBMENU.MAIN,icon:"cog",content:"Settings"})]}),(0,e.createComponentVNode)(2,t.Box,{mt:"12px"}),(0,e.createVNode)(1,"h3",null,"Current Research Levels:",16),(0,e.createComponentVNode)(2,t.LabeledList,{children:s.map(function(i){var v=i.name,g=i.level;return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:v,children:g},v)})})]})}return k}()},99941:function(L,r,n){"use strict";r.__esModule=!0,r.RndNavButton=void 0;var e=n(96524),a=n(17899),t=n(24674),o=r.RndNavButton=function(){function f(V,k){var S=V.icon,b=V.children,p=V.disabled,l=V.content,c=(0,a.useBackend)(k),m=c.data,d=c.act,u=m.menu,s=m.submenu,i=u,v=s;return V.menu!==null&&V.menu!==void 0&&(i=V.menu),V.submenu!==null&&V.submenu!==void 0&&(v=V.submenu),(0,e.createComponentVNode)(2,t.Button,{content:l,icon:S,disabled:p,onClick:function(){function g(){d("nav",{menu:i,submenu:v})}return g}(),children:b})}return f}()},24448:function(L,r,n){"use strict";r.__esModule=!0,r.RndNavbar=void 0;var e=n(96524),a=n(3422),t=n(24674),o=n(89641),f=r.RndNavbar=function(){function V(){return(0,e.createComponentVNode)(2,t.Box,{className:"RndConsole__RndNavbar",children:[(0,e.createComponentVNode)(2,a.RndRoute,{menu:function(){function k(S){return S!==o.MENU.MAIN}return k}(),render:function(){function k(){return(0,e.createComponentVNode)(2,a.RndNavButton,{menu:o.MENU.MAIN,submenu:o.SUBMENU.MAIN,icon:"reply",content:"Main Menu"})}return k}()}),(0,e.createComponentVNode)(2,a.RndRoute,{submenu:function(){function k(S){return S!==o.SUBMENU.MAIN}return k}(),render:function(){function k(){return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,a.RndRoute,{menu:o.MENU.DISK,render:function(){function S(){return(0,e.createComponentVNode)(2,a.RndNavButton,{submenu:o.SUBMENU.MAIN,icon:"reply",content:"Disk Operations Menu"})}return S}()}),(0,e.createComponentVNode)(2,a.RndRoute,{menu:o.MENU.LATHE,render:function(){function S(){return(0,e.createComponentVNode)(2,a.RndNavButton,{submenu:o.SUBMENU.MAIN,icon:"reply",content:"Protolathe Menu"})}return S}()}),(0,e.createComponentVNode)(2,a.RndRoute,{menu:o.MENU.IMPRINTER,render:function(){function S(){return(0,e.createComponentVNode)(2,a.RndNavButton,{submenu:o.SUBMENU.MAIN,icon:"reply",content:"Circuit Imprinter Menu"})}return S}()}),(0,e.createComponentVNode)(2,a.RndRoute,{menu:o.MENU.SETTINGS,render:function(){function S(){return(0,e.createComponentVNode)(2,a.RndNavButton,{submenu:o.SUBMENU.MAIN,icon:"reply",content:"Settings Menu"})}return S}()})]})}return k}()}),(0,e.createComponentVNode)(2,a.RndRoute,{menu:function(){function k(S){return S===o.MENU.LATHE||S===o.MENU.IMPRINTER}return k}(),submenu:o.SUBMENU.MAIN,render:function(){function k(){return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,a.RndNavButton,{submenu:o.SUBMENU.LATHE_MAT_STORAGE,icon:"arrow-up",content:"Material Storage"}),(0,e.createComponentVNode)(2,a.RndNavButton,{submenu:o.SUBMENU.LATHE_CHEM_STORAGE,icon:"arrow-up",content:"Chemical Storage"})]})}return k}()})]})}return V}()},78345:function(L,r,n){"use strict";r.__esModule=!0,r.RndRoute=void 0;var e=n(17899),a=r.RndRoute=function(){function t(o,f){var V=o.render,k=(0,e.useBackend)(f),S=k.data,b=S.menu,p=S.submenu,l=function(){function m(d,u){return d==null?!0:typeof d=="function"?d(u):d===u}return m}(),c=l(o.menu,b)&&l(o.submenu,p);return c?V():null}return t}()},56454:function(L,r,n){"use strict";r.__esModule=!0,r.SettingsMenu=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(3422),f=n(89641),V=r.SettingsMenu=function(){function k(S,b){var p=(0,a.useBackend)(b),l=p.data,c=p.act,m=l.sync,d=l.admin,u=l.linked_destroy,s=l.linked_lathe,i=l.linked_imprinter;return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,o.RndRoute,{submenu:f.SUBMENU.MAIN,render:function(){function v(){return(0,e.createComponentVNode)(2,t.Section,{title:"Settings",children:(0,e.createComponentVNode)(2,t.Flex,{direction:"column",align:"flex-start",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Sync Database with Network",icon:"sync",disabled:!m,onClick:function(){function g(){c("sync")}return g}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Connect to Research Network",icon:"plug",disabled:m,onClick:function(){function g(){c("togglesync")}return g}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:!m,icon:"unlink",content:"Disconnect from Research Network",onClick:function(){function g(){c("togglesync")}return g}()}),(0,e.createComponentVNode)(2,o.RndNavButton,{disabled:!m,content:"Device Linkage Menu",icon:"link",menu:f.MENU.SETTINGS,submenu:f.SUBMENU.SETTINGS_DEVICES}),d===1?(0,e.createComponentVNode)(2,t.Button,{icon:"exclamation",content:"[ADMIN] Maximize Research Levels",onClick:function(){function g(){return c("maxresearch")}return g}()}):null]})})}return v}()}),(0,e.createComponentVNode)(2,o.RndRoute,{submenu:f.SUBMENU.SETTINGS_DEVICES,render:function(){function v(){return(0,e.createComponentVNode)(2,t.Section,{title:"Device Linkage Menu",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"link",content:"Re-sync with Nearby Devices",onClick:function(){function g(){return c("find_device")}return g}()}),(0,e.createComponentVNode)(2,t.Box,{mt:"5px",children:(0,e.createVNode)(1,"h3",null,"Linked Devices:",16)}),(0,e.createComponentVNode)(2,t.LabeledList,{children:[u?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"* Destructive Analyzer",children:(0,e.createComponentVNode)(2,t.Button,{icon:"unlink",content:"Unlink",onClick:function(){function g(){return c("disconnect",{item:"destroy"})}return g}()})}):(0,e.createComponentVNode)(2,t.LabeledList.Item,{noColon:!0,label:"* No Destructive Analyzer Linked"}),s?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"* Protolathe",children:(0,e.createComponentVNode)(2,t.Button,{icon:"unlink",content:"Unlink",onClick:function(){function g(){c("disconnect",{item:"lathe"})}return g}()})}):(0,e.createComponentVNode)(2,t.LabeledList.Item,{noColon:!0,label:"* No Protolathe Linked"}),i?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"* Circuit Imprinter",children:(0,e.createComponentVNode)(2,t.Button,{icon:"unlink",content:"Unlink",onClick:function(){function g(){return c("disconnect",{item:"imprinter"})}return g}()})}):(0,e.createComponentVNode)(2,t.LabeledList.Item,{noColon:!0,label:"* No Circuit Imprinter Linked"})]})]})}return v}()})]})}return k}()},3422:function(L,r,n){"use strict";r.__esModule=!0,r.SettingsMenu=r.RndRoute=r.RndNavbar=r.RndNavButton=r.MainMenu=r.LatheSearch=r.LatheMenu=r.LatheMaterials=r.LatheMaterialStorage=r.LatheMainMenu=r.LatheChemicalStorage=r.LatheCategory=r.DeconstructionMenu=r.DataDiskMenu=r.CurrentLevels=void 0;var e=n(19348);r.CurrentLevels=e.CurrentLevels;var a=n(338);r.DataDiskMenu=a.DataDiskMenu;var t=n(90785);r.DeconstructionMenu=t.DeconstructionMenu;var o=n(34492);r.LatheCategory=o.LatheCategory;var f=n(84275);r.LatheChemicalStorage=f.LatheChemicalStorage;var V=n(12638);r.LatheMainMenu=V.LatheMainMenu;var k=n(73856);r.LatheMaterials=k.LatheMaterials;var S=n(89004);r.LatheMaterialStorage=S.LatheMaterialStorage;var b=n(75955);r.LatheMenu=b.LatheMenu;var p=n(72880);r.LatheSearch=p.LatheSearch;var l=n(62306);r.MainMenu=l.MainMenu;var c=n(24448);r.RndNavbar=c.RndNavbar;var m=n(99941);r.RndNavButton=m.RndNavButton;var d=n(78345);r.RndRoute=d.RndRoute;var u=n(56454);r.SettingsMenu=u.SettingsMenu},71123:function(L,r,n){"use strict";r.__esModule=!0,r.RobotSelfDiagnosis=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=n(78234),V=function(b,p){var l=b/p;return l<=.2?"good":l<=.5?"average":"bad"},k=r.RobotSelfDiagnosis=function(){function S(b,p){var l=(0,a.useBackend)(p),c=l.data,m=c.component_data;return(0,e.createComponentVNode)(2,o.Window,{width:280,height:480,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:m.map(function(d,u){return(0,e.createComponentVNode)(2,t.Section,{title:(0,f.capitalize)(d.name),children:d.installed<=0?(0,e.createComponentVNode)(2,t.NoticeBox,{m:-.5,height:3.5,color:"red",style:{"font-style":"normal"},children:(0,e.createComponentVNode)(2,t.Flex,{height:"100%",children:(0,e.createComponentVNode)(2,t.Flex.Item,{grow:1,textAlign:"center",align:"center",color:"#e8e8e8",children:d.installed===-1?"Destroyed":"Missing"})})}):(0,e.createComponentVNode)(2,t.Flex,{children:[(0,e.createComponentVNode)(2,t.Flex.Item,{width:"72%",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Brute Damage",color:V(d.brute_damage,d.max_damage),children:d.brute_damage}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Burn Damage",color:V(d.electronic_damage,d.max_damage),children:d.electronic_damage})]})}),(0,e.createComponentVNode)(2,t.Flex.Item,{width:"50%",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Powered",color:d.powered?"good":"bad",children:d.powered?"Yes":"No"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Enabled",color:d.status?"good":"bad",children:d.status?"Yes":"No"})]})})]})},u)})})})}return S}()},98951:function(L,r,n){"use strict";r.__esModule=!0,r.RoboticsControlConsole=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.RoboticsControlConsole=function(){function k(S,b){var p=(0,a.useBackend)(b),l=p.act,c=p.data,m=c.can_hack,d=c.safety,u=c.show_lock_all,s=c.cyborgs,i=s===void 0?[]:s;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:460,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[!!u&&(0,e.createComponentVNode)(2,t.Section,{title:"Emergency Lock Down",children:[(0,e.createComponentVNode)(2,t.Button,{icon:d?"lock":"unlock",content:d?"Disable Safety":"Enable Safety",selected:d,onClick:function(){function v(){return l("arm",{})}return v}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"lock",disabled:d,content:"Lock ALL Cyborgs",color:"bad",onClick:function(){function v(){return l("masslock",{})}return v}()})]}),(0,e.createComponentVNode)(2,V,{cyborgs:i,can_hack:m})]})})}return k}(),V=function(S,b){var p=S.cyborgs,l=S.can_hack,c=(0,a.useBackend)(b),m=c.act,d=c.data,u="Detonate";return d.detonate_cooldown>0&&(u+=" ("+d.detonate_cooldown+"s)"),p.length?p.map(function(s){return(0,e.createComponentVNode)(2,t.Section,{title:s.name,buttons:(0,e.createFragment)([!!s.hackable&&!s.emagged&&(0,e.createComponentVNode)(2,t.Button,{icon:"terminal",content:"Hack",color:"bad",onClick:function(){function i(){return m("hackbot",{uid:s.uid})}return i}()}),(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:s.locked_down?"unlock":"lock",color:s.locked_down?"good":"default",content:s.locked_down?"Release":"Lockdown",disabled:!d.auth,onClick:function(){function i(){return m("stopbot",{uid:s.uid})}return i}()}),(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"bomb",content:u,disabled:!d.auth||d.detonate_cooldown>0,color:"bad",onClick:function(){function i(){return m("killbot",{uid:s.uid})}return i}()})],0),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:(0,e.createComponentVNode)(2,t.Box,{color:s.status?"bad":s.locked_down?"average":"good",children:s.status?"Not Responding":s.locked_down?"Locked Down":"Nominal"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Location",children:(0,e.createComponentVNode)(2,t.Box,{children:s.locstring})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Integrity",children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:s.health>50?"good":"bad",value:s.health/100})}),typeof s.charge=="number"&&(0,e.createFragment)([(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cell Charge",children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:s.charge>30?"good":"bad",value:s.charge/100})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cell Capacity",children:(0,e.createComponentVNode)(2,t.Box,{color:s.cell_capacity<3e4?"average":"good",children:s.cell_capacity})})],4)||(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cell",children:(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:"No Power Cell"})}),!!s.is_hacked&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Safeties",children:(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:"DISABLED"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Module",children:s.module}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Master AI",children:(0,e.createComponentVNode)(2,t.Box,{color:s.synchronization?"default":"average",children:s.synchronization||"None"})})]})},s.uid)}):(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No cyborg units detected within access parameters."})}},2289:function(L,r,n){"use strict";r.__esModule=!0,r.Safe=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.Safe=function(){function b(p,l){var c=(0,a.useBackend)(l),m=c.act,d=c.data,u=d.dial,s=d.open,i=d.locked,v=d.contents;return(0,e.createComponentVNode)(2,o.Window,{theme:"safe",width:600,height:800,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Box,{className:"Safe--engraving",children:[(0,e.createComponentVNode)(2,V),(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Box,{className:"Safe--engraving--hinge",top:"25%"}),(0,e.createComponentVNode)(2,t.Box,{className:"Safe--engraving--hinge",top:"75%"})]}),(0,e.createComponentVNode)(2,t.Icon,{className:"Safe--engraving--arrow",name:"long-arrow-alt-down",size:"3"}),(0,e.createVNode)(1,"br"),s?(0,e.createComponentVNode)(2,k):(0,e.createComponentVNode)(2,t.Box,{as:"img",className:"Safe--dial",src:"safe_dial.png",style:{transform:"rotate(-"+3.6*u+"deg)","z-index":0}})]}),!s&&(0,e.createComponentVNode)(2,S)]})})}return b}(),V=function(p,l){var c=(0,a.useBackend)(l),m=c.act,d=c.data,u=d.dial,s=d.open,i=d.locked,v=function(C,h){return(0,e.createComponentVNode)(2,t.Button,{disabled:s||h&&!i,icon:"arrow-"+(h?"right":"left"),content:(h?"Right":"Left")+" "+C,iconRight:h,onClick:function(){function N(){return m(h?"turnleft":"turnright",{num:C})}return N}(),style:{"z-index":10}})};return(0,e.createComponentVNode)(2,t.Box,{className:"Safe--dialer",children:[(0,e.createComponentVNode)(2,t.Button,{disabled:i,icon:s?"lock":"lock-open",content:s?"Close":"Open",mb:"0.5rem",onClick:function(){function g(){return m("open")}return g}()}),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Box,{position:"absolute",children:[v(50),v(10),v(1)]}),(0,e.createComponentVNode)(2,t.Box,{className:"Safe--dialer--right",position:"absolute",right:"5px",children:[v(1,!0),v(10,!0),v(50,!0)]}),(0,e.createComponentVNode)(2,t.Box,{className:"Safe--dialer--number",children:u})]})},k=function(p,l){var c=(0,a.useBackend)(l),m=c.act,d=c.data,u=d.contents;return(0,e.createComponentVNode)(2,t.Box,{className:"Safe--contents",overflow:"auto",children:u.map(function(s,i){return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{mb:"0.5rem",onClick:function(){function v(){return m("retrieve",{index:i+1})}return v}(),children:[(0,e.createComponentVNode)(2,t.Box,{as:"img",src:s.sprite+".png",verticalAlign:"middle",ml:"-6px",mr:"0.5rem"}),s.name]}),(0,e.createVNode)(1,"br")],4,s)})})},S=function(p,l){return(0,e.createComponentVNode)(2,t.Section,{className:"Safe--help",title:"Safe opening instructions (because you all keep forgetting)",children:[(0,e.createComponentVNode)(2,t.Box,{children:["1. Turn the dial left to the first number.",(0,e.createVNode)(1,"br"),"2. Turn the dial right to the second number.",(0,e.createVNode)(1,"br"),"3. Continue repeating this process for each number, switching between left and right each time.",(0,e.createVNode)(1,"br"),"4. Open the safe."]}),(0,e.createComponentVNode)(2,t.Box,{bold:!0,children:"To lock fully, turn the dial to the left after closing the safe."})]})}},49334:function(L,r,n){"use strict";r.__esModule=!0,r.SatelliteControl=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.SatelliteControl=function(){function V(k,S){var b=(0,a.useBackend)(S),p=b.act,l=b.data,c=l.satellites,m=l.notice,d=l.meteor_shield,u=l.meteor_shield_coverage,s=l.meteor_shield_coverage_max,i=l.meteor_shield_coverage_percentage;return(0,e.createComponentVNode)(2,o.Window,{width:475,height:400,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[d&&(0,e.createComponentVNode)(2,t.Section,{title:"Station Shield Coverage",children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:i>=100?"good":"average",value:u,maxValue:s,children:[i," %"]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Satellite Network Control",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[m&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Alert",color:"red",children:l.notice}),c.map(function(v){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"#"+v.id,children:[v.mode," ",(0,e.createComponentVNode)(2,t.Button,{content:v.active?"Deactivate":"Activate",icon:"arrow-circle-right",onClick:function(){function g(){return p("toggle",{id:v.id})}return g}()})]},v.id)})]})})]})})}return V}()},54892:function(L,r,n){"use strict";r.__esModule=!0,r.SecureStorage=void 0;var e=n(96524),a=n(28234),t=n(17899),o=n(24674),f=n(45493),V=n(5126),k=n(68100),S=r.SecureStorage=function(){function c(m,d){return(0,e.createComponentVNode)(2,f.Window,{theme:"securestorage",height:500,width:280,children:(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,p)})})})})}return c}(),b=function(m,d){var u=(0,t.useBackend)(d),s=u.act,i=window.event?m.which:m.keyCode;if(i===k.KEY_ENTER){m.preventDefault(),s("keypad",{digit:"E"});return}if(i===k.KEY_ESCAPE){m.preventDefault(),s("keypad",{digit:"C"});return}if(i===k.KEY_BACKSPACE){m.preventDefault(),s("backspace");return}if(i>=k.KEY_0&&i<=k.KEY_9){m.preventDefault(),s("keypad",{digit:i-k.KEY_0});return}if(i>=k.KEY_NUMPAD_0&&i<=k.KEY_NUMPAD_9){m.preventDefault(),s("keypad",{digit:i-k.KEY_NUMPAD_0});return}},p=function(m,d){var u=(0,t.useBackend)(d),s=u.act,i=u.data,v=i.locked,g=i.no_passcode,C=i.emagged,h=i.user_entered_code,N=[["1","2","3"],["4","5","6"],["7","8","9"],["C","0","E"]],y=g?"":v?"bad":"good";return(0,e.createComponentVNode)(2,o.Section,{fill:!0,onKeyDown:function(){function B(I){return b(I,d)}return B}(),children:[(0,e.createComponentVNode)(2,o.Stack.Item,{height:7.3,children:(0,e.createComponentVNode)(2,o.Box,{className:(0,a.classes)(["SecureStorage__displayBox","SecureStorage__displayBox--"+y]),height:"100%",children:C?"ERROR":h})}),(0,e.createComponentVNode)(2,o.Table,{children:N.map(function(B){return(0,e.createComponentVNode)(2,V.TableRow,{children:B.map(function(I){return(0,e.createComponentVNode)(2,V.TableCell,{children:(0,e.createComponentVNode)(2,l,{number:I})},I)})},B[0])})})]})},l=function(m,d){var u=(0,t.useBackend)(d),s=u.act,i=u.data,v=m.number;return(0,e.createComponentVNode)(2,o.Button,{fluid:!0,bold:!0,mb:"6px",content:v,textAlign:"center",fontSize:"60px",lineHeight:1.25,width:"80px",className:(0,a.classes)(["SecureStorage__Button","SecureStorage__Button--keypad","SecureStorage__Button--"+v]),onClick:function(){function g(){return s("keypad",{digit:v})}return g}()})}},56798:function(L,r,n){"use strict";r.__esModule=!0,r.SecurityRecords=void 0;var e=n(96524),a=n(78234),t=n(17899),o=n(24674),f=n(45493),V=n(99665),k=n(68159),S=n(27527),b=n(84537),p={"*Execute*":"execute","*Arrest*":"arrest",Incarcerated:"incarcerated",Parolled:"parolled",Released:"released",Demote:"demote",Search:"search",Monitor:"monitor"},l=function(h,N){(0,V.modalOpen)(h,"edit",{field:N.edit,value:N.value})},c=r.SecurityRecords=function(){function C(h,N){var y=(0,t.useBackend)(N),B=y.act,I=y.data,w=I.loginState,T=I.currentPage,A;if(w.logged_in)T===1?A=(0,e.createComponentVNode)(2,d):T===2&&(A=(0,e.createComponentVNode)(2,i));else return(0,e.createComponentVNode)(2,f.Window,{theme:"security",width:800,height:900,children:(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,S.LoginScreen)})});return(0,e.createComponentVNode)(2,f.Window,{theme:"security",width:800,height:900,children:[(0,e.createComponentVNode)(2,V.ComplexModal),(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,k.LoginInfo),(0,e.createComponentVNode)(2,b.TemporaryNotice),(0,e.createComponentVNode)(2,m),A]})})]})}return C}(),m=function(h,N){var y=(0,t.useBackend)(N),B=y.act,I=y.data,w=I.currentPage,T=I.general;return(0,e.createComponentVNode)(2,o.Stack.Item,{m:0,children:(0,e.createComponentVNode)(2,o.Tabs,{children:[(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"list",selected:w===1,onClick:function(){function A(){return B("page",{page:1})}return A}(),children:"List Records"}),w===2&&T&&!T.empty&&(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"file",selected:w===2,children:["Record: ",T.fields[0].value]})]})})},d=function(h,N){var y=(0,t.useBackend)(N),B=y.act,I=y.data,w=I.records,T=(0,t.useLocalState)(N,"searchText",""),A=T[0],x=T[1],E=(0,t.useLocalState)(N,"sortId","name"),M=E[0],D=E[1],P=(0,t.useLocalState)(N,"sortOrder",!0),R=P[0],j=P[1];return(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,s)}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,mt:.5,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,o.Table,{className:"SecurityRecords__list",children:[(0,e.createComponentVNode)(2,o.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,u,{id:"name",children:"Name"}),(0,e.createComponentVNode)(2,u,{id:"id",children:"ID"}),(0,e.createComponentVNode)(2,u,{id:"rank",children:"Assignment"}),(0,e.createComponentVNode)(2,u,{id:"fingerprint",children:"Fingerprint"}),(0,e.createComponentVNode)(2,u,{id:"status",children:"Criminal Status"})]}),w.filter((0,a.createSearch)(A,function(F){return F.name+"|"+F.id+"|"+F.rank+"|"+F.fingerprint+"|"+F.status})).sort(function(F,U){var _=R?1:-1;return F[M].localeCompare(U[M])*_}).map(function(F){return(0,e.createComponentVNode)(2,o.Table.Row,{className:"SecurityRecords__listRow--"+p[F.status],onClick:function(){function U(){return B("view",{uid_gen:F.uid_gen,uid_sec:F.uid_sec})}return U}(),children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:"user"})," ",F.name]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:F.id}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:F.rank}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:F.fingerprint}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:F.status})]},F.id)})]})})})],4)},u=function(h,N){var y=(0,t.useLocalState)(N,"sortId","name"),B=y[0],I=y[1],w=(0,t.useLocalState)(N,"sortOrder",!0),T=w[0],A=w[1],x=h.id,E=h.children;return(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Button,{color:B!==x&&"transparent",fluid:!0,onClick:function(){function M(){B===x?A(!T):(I(x),A(!0))}return M}(),children:[E,B===x&&(0,e.createComponentVNode)(2,o.Icon,{name:T?"sort-up":"sort-down",ml:"0.25rem;"})]})})})},s=function(h,N){var y=(0,t.useBackend)(N),B=y.act,I=y.data,w=I.isPrinting,T=(0,t.useLocalState)(N,"searchText",""),A=T[0],x=T[1];return(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{ml:"0.25rem",content:"New Record",icon:"plus",onClick:function(){function E(){return B("new_general")}return E}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{disabled:w,icon:w?"spinner":"print",iconSpin:!!w,content:"Print Cell Log",onClick:function(){function E(){return(0,V.modalOpen)(N,"print_cell_log")}return E}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Input,{placeholder:"Search by Name, ID, Assignment, Fingerprint, Status",fluid:!0,onInput:function(){function E(M,D){return x(D)}return E}()})})]})},i=function(h,N){var y=(0,t.useBackend)(N),B=y.act,I=y.data,w=I.isPrinting,T=I.general,A=I.security;return!T||!T.fields?(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"General records lost!"}):(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"General Data",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{disabled:w,icon:w?"spinner":"print",iconSpin:!!w,content:"Print Record",onClick:function(){function x(){return B("print_record")}return x}()}),(0,e.createComponentVNode)(2,o.Button.Confirm,{icon:"trash",tooltip:"WARNING: This will also delete the Security and Medical records associated with this crew member!",tooltipPosition:"bottom-start",content:"Delete Record",onClick:function(){function x(){return B("delete_general")}return x}()})],4),children:(0,e.createComponentVNode)(2,v)})}),!A||!A.fields?(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,color:"bad",children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,title:"Security Data",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"pen",content:"Create New Record",onClick:function(){function x(){return B("new_security")}return x}()}),children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,o.Stack.Item,{bold:!0,grow:!0,textAlign:"center",fontSize:1.75,align:"center",color:"label",children:[(0,e.createComponentVNode)(2,o.Icon.Stack,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:"scroll",size:5,color:"gray"}),(0,e.createComponentVNode)(2,o.Icon,{name:"slash",size:5,color:"red"})]}),(0,e.createVNode)(1,"br"),"Security records lost!"]})})})}):(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"Security Data",buttons:(0,e.createComponentVNode)(2,o.Button.Confirm,{icon:"trash",disabled:A.empty,content:"Delete Record",onClick:function(){function x(){return B("delete_security")}return x}()}),children:(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.LabeledList,{children:A.fields.map(function(x,E){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:x.field,preserveWhitespace:!0,children:[(0,a.decodeHtmlEntities)(x.value),!!x.edit&&(0,e.createComponentVNode)(2,o.Button,{icon:"pen",ml:"0.5rem",mb:x.line_break?"1rem":"initial",onClick:function(){function M(){return l(N,x)}return M}()})]},E)})})})})}),(0,e.createComponentVNode)(2,g)],4)],0)},v=function(h,N){var y=(0,t.useBackend)(N),B=y.data,I=B.general;return!I||!I.fields?(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,color:"bad",children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,children:"General records lost!"})})}):(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.LabeledList,{children:I.fields.map(function(w,T){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:w.field,preserveWhitespace:!0,children:[(0,a.decodeHtmlEntities)(""+w.value),!!w.edit&&(0,e.createComponentVNode)(2,o.Button,{icon:"pen",ml:"0.5rem",mb:w.line_break?"1rem":"initial",onClick:function(){function A(){return l(N,w)}return A}()})]},T)})})}),!!I.has_photos&&I.photos.map(function(w,T){return(0,e.createComponentVNode)(2,o.Stack.Item,{inline:!0,textAlign:"center",color:"label",ml:0,children:[(0,e.createVNode)(1,"img",null,null,1,{src:w,style:{width:"96px","margin-top":"5rem","margin-bottom":"0.5rem","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createVNode)(1,"br"),"Photo #",T+1]},T)})]})},g=function(h,N){var y=(0,t.useBackend)(N),B=y.act,I=y.data,w=I.security;return(0,e.createComponentVNode)(2,o.Stack.Item,{height:"150px",children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"Comments/Log",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"comment",content:"Add Entry",onClick:function(){function T(){return(0,V.modalOpen)(N,"comment_add")}return T}()}),children:w.comments.length===0?(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"No comments found."}):w.comments.map(function(T,A){return(0,e.createComponentVNode)(2,o.Box,{preserveWhitespace:!0,children:[(0,e.createComponentVNode)(2,o.Box,{color:"label",inline:!0,children:T.header||"Auto-generated"}),(0,e.createVNode)(1,"br"),T.text||T,(0,e.createComponentVNode)(2,o.Button,{icon:"comment-slash",color:"bad",ml:"0.5rem",onClick:function(){function x(){return B("comment_delete",{id:A+1})}return x}()})]},A)})})})}},59981:function(L,r,n){"use strict";r.__esModule=!0,r.SeedExtractor=void 0;var e=n(96524),a=n(78234),t=n(17899),o=n(24674),f=n(45493),V=n(99665);function k(u,s){var i=typeof Symbol!="undefined"&&u[Symbol.iterator]||u["@@iterator"];if(i)return(i=i.call(u)).next.bind(i);if(Array.isArray(u)||(i=S(u))||s&&u&&typeof u.length=="number"){i&&(u=i);var v=0;return function(){return v>=u.length?{done:!0}:{done:!1,value:u[v++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function S(u,s){if(u){if(typeof u=="string")return b(u,s);var i=Object.prototype.toString.call(u).slice(8,-1);if(i==="Object"&&u.constructor&&(i=u.constructor.name),i==="Map"||i==="Set")return Array.from(u);if(i==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i))return b(u,s)}}function b(u,s){(s==null||s>u.length)&&(s=u.length);for(var i=0,v=new Array(s);i=A},g=function(T,A){return T<=A},C=s.split(" "),h=[],N=function(){var T=I.value,A=T.split(":");if(A.length===0)return 0;if(A.length===1)return h.push(function(M){return(M.name+" ("+M.variant+")").toLocaleLowerCase().includes(A[0].toLocaleLowerCase())}),0;if(A.length>2)return{v:function(){function M(D){return!1}return M}()};var x,E=i;if(A[1][A[1].length-1]==="-"?(E=g,x=Number(A[1].substring(0,A[1].length-1))):A[1][A[1].length-1]==="+"?(E=v,x=Number(A[1].substring(0,A[1].length-1))):x=Number(A[1]),isNaN(x))return{v:function(){function M(D){return!1}return M}()};switch(A[0].toLocaleLowerCase()){case"l":case"life":case"lifespan":h.push(function(M){return E(M.lifespan,x)});break;case"e":case"end":case"endurance":h.push(function(M){return E(M.endurance,x)});break;case"m":case"mat":case"maturation":h.push(function(M){return E(M.maturation,x)});break;case"pr":case"prod":case"production":h.push(function(M){return E(M.production,x)});break;case"y":case"yield":h.push(function(M){return E(M.yield,x)});break;case"po":case"pot":case"potency":h.push(function(M){return E(M.potency,x)});break;case"s":case"stock":case"c":case"count":case"a":case"amount":h.push(function(M){return E(M.amount,x)});break;default:return{v:function(){function M(D){return!1}return M}()}}},y,B=k(C),I;!(I=B()).done;)if(y=N(),y!==0&&y)return y.v;return function(w){for(var T=0,A=h;T=1?Number(E):1)}return A}()})]})]})}},33454:function(L,r,n){"use strict";r.__esModule=!0,r.ShuttleConsole=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.ShuttleConsole=function(){function V(k,S){var b=(0,a.useBackend)(S),p=b.act,l=b.data;return(0,e.createComponentVNode)(2,o.Window,{width:350,height:150,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Location",children:l.status?l.status:(0,e.createComponentVNode)(2,t.NoticeBox,{color:"red",children:"Shuttle Missing"})}),!!l.shuttle&&(!!l.docking_ports_len&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Send to ",children:l.docking_ports.map(function(c){return(0,e.createComponentVNode)(2,t.Button,{icon:"chevron-right",content:c.name,onClick:function(){function m(){return p("move",{move:c.id})}return m}()},c.name)})})||(0,e.createFragment)([(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",color:"red",children:(0,e.createComponentVNode)(2,t.NoticeBox,{color:"red",children:"Shuttle Locked"})}),!!l.admin_controlled&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Authorization",children:(0,e.createComponentVNode)(2,t.Button,{icon:"exclamation-circle",content:"Request Authorization",disabled:!l.status,onClick:function(){function c(){return p("request")}return c}()})})],0))]})})})})}return V}()},50451:function(L,r,n){"use strict";r.__esModule=!0,r.ShuttleManipulator=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.ShuttleManipulator=function(){function b(p,l){var c=(0,a.useLocalState)(l,"tabIndex",0),m=c[0],d=c[1],u=function(){function s(i){switch(i){case 0:return(0,e.createComponentVNode)(2,V);case 1:return(0,e.createComponentVNode)(2,k);case 2:return(0,e.createComponentVNode)(2,S);default:return"WE SHOULDN'T BE HERE!"}}return s}();return(0,e.createComponentVNode)(2,o.Window,{width:650,height:700,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Box,{fillPositionedParent:!0,children:[(0,e.createComponentVNode)(2,t.Tabs,{children:[(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:m===0,onClick:function(){function s(){return d(0)}return s}(),icon:"info-circle",children:"Status"},"Status"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:m===1,onClick:function(){function s(){return d(1)}return s}(),icon:"file-import",children:"Templates"},"Templates"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:m===2,onClick:function(){function s(){return d(2)}return s}(),icon:"tools",children:"Modification"},"Modification")]}),u(m)]})})})}return b}(),V=function(p,l){var c=(0,a.useBackend)(l),m=c.act,d=c.data,u=d.shuttles;return(0,e.createComponentVNode)(2,t.Box,{children:u.map(function(s){return(0,e.createComponentVNode)(2,t.Section,{title:s.name,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"ID",children:s.id}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Shuttle Timer",children:s.timeleft}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Shuttle Mode",children:s.mode}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Shuttle Status",children:s.status}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Actions",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Jump To",icon:"location-arrow",onClick:function(){function i(){return m("jump_to",{type:"mobile",id:s.id})}return i}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Fast Travel",icon:"fast-forward",onClick:function(){function i(){return m("fast_travel",{id:s.id})}return i}()})]})]})},s.name)})})},k=function(p,l){var c=(0,a.useBackend)(l),m=c.act,d=c.data,u=d.templates_tabs,s=d.existing_shuttle,i=d.templates;return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Tabs,{children:u.map(function(v){return(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:v===s.id,icon:"file",onClick:function(){function g(){return m("select_template_category",{cat:v})}return g}(),children:v},v)})}),!!s&&i[s.id].templates.map(function(v){return(0,e.createComponentVNode)(2,t.Section,{title:v.name,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[v.description&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Description",children:v.description}),v.admin_notes&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Admin Notes",children:v.admin_notes}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Actions",children:(0,e.createComponentVNode)(2,t.Button,{content:"Load Template",icon:"download",onClick:function(){function g(){return m("select_template",{shuttle_id:v.shuttle_id})}return g}()})})]})},v.name)})]})},S=function(p,l){var c=(0,a.useBackend)(l),m=c.act,d=c.data,u=d.existing_shuttle,s=d.selected;return(0,e.createComponentVNode)(2,t.Box,{children:[u?(0,e.createComponentVNode)(2,t.Section,{title:"Selected Shuttle: "+u.name,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:u.status}),u.timer&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Timer",children:u.timeleft}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Actions",children:(0,e.createComponentVNode)(2,t.Button,{content:"Jump To",icon:"location-arrow",onClick:function(){function i(){return m("jump_to",{type:"mobile",id:u.id})}return i}()})})]})}):(0,e.createComponentVNode)(2,t.Section,{title:"Selected Shuttle: None"}),s?(0,e.createComponentVNode)(2,t.Section,{title:"Selected Template: "+s.name,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[s.description&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Description",children:s.description}),s.admin_notes&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Admin Notes",children:s.admin_notes}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Actions",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Preview",icon:"eye",onClick:function(){function i(){return m("preview",{shuttle_id:s.shuttle_id})}return i}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Load",icon:"download",onClick:function(){function i(){return m("load",{shuttle_id:s.shuttle_id})}return i}()})]})]})}):(0,e.createComponentVNode)(2,t.Section,{title:"Selected Template: None"})]})}},99050:function(L,r,n){"use strict";r.__esModule=!0,r.Sleeper=void 0;var e=n(96524),a=n(36121),t=n(17899),o=n(24674),f=n(45493),V=[["good","Alive"],["average","Critical"],["bad","DEAD"]],k=[["Resp.","oxyLoss"],["Toxin","toxLoss"],["Brute","bruteLoss"],["Burn","fireLoss"]],S={average:[.25,.5],bad:[.5,1/0]},b=["bad","average","average","good","average","average","bad"],p=r.Sleeper=function(){function i(v,g){var C=(0,t.useBackend)(g),h=C.act,N=C.data,y=N.hasOccupant,B=y?(0,e.createComponentVNode)(2,l):(0,e.createComponentVNode)(2,s);return(0,e.createComponentVNode)(2,f.Window,{width:550,height:760,children:(0,e.createComponentVNode)(2,f.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:B}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,d)})]})})})}return i}(),l=function(v,g){var C=(0,t.useBackend)(g),h=C.act,N=C.data,y=N.occupant;return(0,e.createFragment)([(0,e.createComponentVNode)(2,c),(0,e.createComponentVNode)(2,m),(0,e.createComponentVNode)(2,u)],4)},c=function(v,g){var C=(0,t.useBackend)(g),h=C.act,N=C.data,y=N.occupant,B=N.auto_eject_dead;return(0,e.createComponentVNode)(2,o.Section,{title:"Occupant",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Box,{color:"label",inline:!0,children:"Auto-eject if dead:\xA0"}),(0,e.createComponentVNode)(2,o.Button,{icon:B?"toggle-on":"toggle-off",selected:B,content:B?"On":"Off",onClick:function(){function I(){return h("auto_eject_dead_"+(B?"off":"on"))}return I}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"user-slash",content:"Eject",onClick:function(){function I(){return h("ejectify")}return I}()})],4),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Name",children:y.name}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Health",children:(0,e.createComponentVNode)(2,o.ProgressBar,{min:"0",max:y.maxHealth,value:y.health/y.maxHealth,ranges:{good:[.5,1/0],average:[0,.5],bad:[-1/0,0]},children:(0,a.round)(y.health,0)})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Status",color:V[y.stat][0],children:V[y.stat][1]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Temperature",children:(0,e.createComponentVNode)(2,o.ProgressBar,{min:"0",max:y.maxTemp,value:y.bodyTemperature/y.maxTemp,color:b[y.temperatureSuitability+3],children:[(0,a.round)(y.btCelsius,0),"\xB0C,",(0,a.round)(y.btFaren,0),"\xB0F"]})}),!!y.hasBlood&&(0,e.createFragment)([(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Blood Level",children:(0,e.createComponentVNode)(2,o.ProgressBar,{min:"0",max:y.bloodMax,value:y.bloodLevel/y.bloodMax,ranges:{bad:[-1/0,.6],average:[.6,.9],good:[.6,1/0]},children:[y.bloodPercent,"%, ",y.bloodLevel,"cl"]})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Pulse",verticalAlign:"middle",children:[y.pulse," BPM"]})],4)]})})},m=function(v,g){var C=(0,t.useBackend)(g),h=C.data,N=h.occupant;return(0,e.createComponentVNode)(2,o.Section,{title:"Occupant Damage",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:k.map(function(y,B){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:y[0],children:(0,e.createComponentVNode)(2,o.ProgressBar,{min:"0",max:"100",value:N[y[1]]/100,ranges:S,children:(0,a.round)(N[y[1]],0)},B)},B)})})})},d=function(v,g){var C=(0,t.useBackend)(g),h=C.act,N=C.data,y=N.hasOccupant,B=N.isBeakerLoaded,I=N.beakerMaxSpace,w=N.beakerFreeSpace,T=N.dialysis,A=T&&w>0;return(0,e.createComponentVNode)(2,o.Section,{title:"Dialysis",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{disabled:!B||w<=0||!y,selected:A,icon:A?"toggle-on":"toggle-off",content:A?"Active":"Inactive",onClick:function(){function x(){return h("togglefilter")}return x}()}),(0,e.createComponentVNode)(2,o.Button,{disabled:!B,icon:"eject",content:"Eject",onClick:function(){function x(){return h("removebeaker")}return x}()})],4),children:B?(0,e.createComponentVNode)(2,o.LabeledList,{children:(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Remaining Space",children:(0,e.createComponentVNode)(2,o.ProgressBar,{min:"0",max:I,value:w/I,ranges:{good:[.5,1/0],average:[.25,.5],bad:[-1/0,.25]},children:[w,"u"]})})}):(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"No beaker loaded."})})},u=function(v,g){var C=(0,t.useBackend)(g),h=C.act,N=C.data,y=N.occupant,B=N.chemicals,I=N.maxchem,w=N.amounts;return(0,e.createComponentVNode)(2,o.Section,{title:"Occupant Chemicals",children:B.map(function(T,A){var x="",E;return T.overdosing?(x="bad",E=(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:[(0,e.createComponentVNode)(2,o.Icon,{name:"exclamation-circle"}),"\xA0 Overdosing!"]})):T.od_warning&&(x="average",E=(0,e.createComponentVNode)(2,o.Box,{color:"average",children:[(0,e.createComponentVNode)(2,o.Icon,{name:"exclamation-triangle"}),"\xA0 Close to overdosing"]})),(0,e.createComponentVNode)(2,o.Box,{backgroundColor:"rgba(0, 0, 0, 0.33)",mb:"0.5rem",children:(0,e.createComponentVNode)(2,o.Section,{title:T.title,level:"3",mx:"0",lineHeight:"18px",buttons:E,children:(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.ProgressBar,{min:"0",max:I,value:T.occ_amount/I,color:x,title:"Amount of chemicals currently inside the occupant / Total amount injectable by this machine",mr:"0.5rem",children:[T.pretty_amount,"/",I,"u"]}),w.map(function(M,D){return(0,e.createComponentVNode)(2,o.Button,{disabled:!T.injectable||T.occ_amount+M>I||y.stat===2,icon:"syringe",content:"Inject "+M+"u",title:"Inject "+M+"u of "+T.title+" into the occupant",mb:"0",height:"19px",onClick:function(){function P(){return h("chemical",{chemid:T.id,amount:M})}return P}()},D)})]})})},A)})})},s=function(v,g){return(0,e.createComponentVNode)(2,o.Section,{fill:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,align:"center",color:"label",children:[(0,e.createComponentVNode)(2,o.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,e.createVNode)(1,"br"),"No occupant detected."]})})})}},37763:function(L,r,n){"use strict";r.__esModule=!0,r.SlotMachine=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.SlotMachine=function(){function V(k,S){var b=(0,a.useBackend)(S),p=b.act,l=b.data;if(l.money===null)return(0,e.createComponentVNode)(2,o.Window,{width:350,height:90,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:[(0,e.createComponentVNode)(2,t.Box,{children:"Could not scan your card or could not find account!"}),(0,e.createComponentVNode)(2,t.Box,{children:"Please wear or hold your ID and try again."})]})})});var c;return l.plays===1?c=l.plays+" player has tried their luck today!":c=l.plays+" players have tried their luck today!",(0,e.createComponentVNode)(2,o.Window,{width:300,height:151,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:[(0,e.createComponentVNode)(2,t.Box,{lineHeight:2,children:c}),(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Credits Remaining",children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:l.money})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"10 credits to spin",children:(0,e.createComponentVNode)(2,t.Button,{icon:"coins",disabled:l.working,content:l.working?"Spinning...":"Spin",onClick:function(){function m(){return p("spin")}return m}()})})]}),(0,e.createComponentVNode)(2,t.Box,{bold:!0,lineHeight:2,color:l.resultlvl,children:l.result})]})})})}return V}()},26654:function(L,r,n){"use strict";r.__esModule=!0,r.Smartfridge=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.Smartfridge=function(){function V(k,S){var b=(0,a.useBackend)(S),p=b.act,l=b.data,c=l.secure,m=l.can_dry,d=l.drying,u=l.contents;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:500,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[!!c&&(0,e.createComponentVNode)(2,t.NoticeBox,{children:"Secure Access: Please have your identification ready."}),(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:m?"Drying rack":"Contents",buttons:!!m&&(0,e.createComponentVNode)(2,t.Button,{width:4,icon:d?"power-off":"times",content:d?"On":"Off",selected:d,onClick:function(){function s(){return p("drying")}return s}()}),children:[!u&&(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,grow:!0,textAlign:"center",align:"center",color:"average",children:[(0,e.createComponentVNode)(2,t.Icon.Stack,{children:[(0,e.createComponentVNode)(2,t.Icon,{name:"cookie-bite",size:5,color:"brown"}),(0,e.createComponentVNode)(2,t.Icon,{name:"slash",size:5,color:"red"})]}),(0,e.createVNode)(1,"br"),"No products loaded."]})}),!!u&&u.slice().sort(function(s,i){return s.display_name.localeCompare(i.display_name)}).map(function(s){return(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"55%",children:s.display_name}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:"25%",children:["(",s.quantity," in stock)"]}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:13,children:[(0,e.createComponentVNode)(2,t.Button,{width:3,icon:"arrow-down",tooltip:"Dispense one.",content:"1",onClick:function(){function i(){return p("vend",{index:s.vend,amount:1})}return i}()}),(0,e.createComponentVNode)(2,t.NumberInput,{width:"40px",minValue:0,value:0,maxValue:s.quantity,step:1,stepPixelSize:3,onChange:function(){function i(v,g){return p("vend",{index:s.vend,amount:g})}return i}()}),(0,e.createComponentVNode)(2,t.Button,{width:4,icon:"arrow-down",content:"All",tooltip:"Dispense all.",tooltipPosition:"bottom-start",onClick:function(){function i(){return p("vend",{index:s.vend,amount:s.quantity})}return i}()})]})]},s)})]})]})})})}return V}()},71124:function(L,r,n){"use strict";r.__esModule=!0,r.Smes=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(92986),f=n(45493),V=1e3,k=r.Smes=function(){function S(b,p){var l=(0,a.useBackend)(p),c=l.act,m=l.data,d=m.capacityPercent,u=m.capacity,s=m.charge,i=m.inputAttempt,v=m.inputting,g=m.inputLevel,C=m.inputLevelMax,h=m.inputAvailable,N=m.outputPowernet,y=m.outputAttempt,B=m.outputting,I=m.outputLevel,w=m.outputLevelMax,T=m.outputUsed,A=d>=100&&"good"||v&&"average"||"bad",x=B&&"good"||s>0&&"average"||"bad";return(0,e.createComponentVNode)(2,f.Window,{width:340,height:345,children:(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Section,{title:"Stored Energy",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:d*.01,ranges:{good:[.5,1/0],average:[.15,.5],bad:[-1/0,.15]}})}),(0,e.createComponentVNode)(2,t.Section,{title:"Input",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Charge Mode",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:i?"sync-alt":"times",selected:i,onClick:function(){function E(){return c("tryinput")}return E}(),children:i?"Auto":"Off"}),children:(0,e.createComponentVNode)(2,t.Box,{color:A,children:d>=100&&"Fully Charged"||v&&"Charging"||"Not Charging"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Target Input",children:(0,e.createComponentVNode)(2,t.Stack,{inline:!0,width:"100%",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"fast-backward",disabled:g===0,onClick:function(){function E(){return c("input",{target:"min"})}return E}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"backward",disabled:g===0,onClick:function(){function E(){return c("input",{adjust:-1e4})}return E}()})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Slider,{value:g/V,fillValue:h/V,minValue:0,maxValue:C/V,step:5,stepPixelSize:4,format:function(){function E(M){return(0,o.formatPower)(M*V,1)}return E}(),onChange:function(){function E(M,D){return c("input",{target:D*V})}return E}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"forward",disabled:g===C,onClick:function(){function E(){return c("input",{adjust:1e4})}return E}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",disabled:g===C,onClick:function(){function E(){return c("input",{target:"max"})}return E}()})]})]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Available",children:(0,o.formatPower)(h)})]})}),(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Output",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Output Mode",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:y?"power-off":"times",selected:y,onClick:function(){function E(){return c("tryoutput")}return E}(),children:y?"On":"Off"}),children:(0,e.createComponentVNode)(2,t.Box,{color:x,children:N?B?"Sending":s>0?"Not Sending":"No Charge":"Not Connected"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Target Output",children:(0,e.createComponentVNode)(2,t.Stack,{inline:!0,width:"100%",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"fast-backward",disabled:I===0,onClick:function(){function E(){return c("output",{target:"min"})}return E}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"backward",disabled:I===0,onClick:function(){function E(){return c("output",{adjust:-1e4})}return E}()})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Slider,{value:I/V,minValue:0,maxValue:w/V,step:5,stepPixelSize:4,format:function(){function E(M){return(0,o.formatPower)(M*V,1)}return E}(),onChange:function(){function E(M,D){return c("output",{target:D*V})}return E}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"forward",disabled:I===w,onClick:function(){function E(){return c("output",{adjust:1e4})}return E}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",disabled:I===w,onClick:function(){function E(){return c("output",{target:"max"})}return E}()})]})]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Outputting",children:(0,o.formatPower)(T)})]})})]})})})}return S}()},21786:function(L,r,n){"use strict";r.__esModule=!0,r.SolarControl=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.SolarControl=function(){function V(k,S){var b=(0,a.useBackend)(S),p=b.act,l=b.data,c=0,m=1,d=2,u=l.generated,s=l.generated_ratio,i=l.tracking_state,v=l.tracking_rate,g=l.connected_panels,C=l.connected_tracker,h=l.cdir,N=l.direction,y=l.rotating_direction;return(0,e.createComponentVNode)(2,o.Window,{width:490,height:277,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Status",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"sync",content:"Scan for new hardware",onClick:function(){function B(){return p("refresh")}return B}()}),children:(0,e.createComponentVNode)(2,t.Grid,{children:[(0,e.createComponentVNode)(2,t.Grid.Column,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Solar tracker",color:C?"good":"bad",children:C?"OK":"N/A"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Solar panels",color:g>0?"good":"bad",children:g})]})}),(0,e.createComponentVNode)(2,t.Grid.Column,{size:2,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power output",children:(0,e.createComponentVNode)(2,t.ProgressBar,{ranges:{good:[.66,1/0],average:[.33,.66],bad:[-1/0,.33]},minValue:0,maxValue:1,value:s,children:u+" W"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Panel orientation",children:[h,"\xB0 (",N,")"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Tracker rotation",children:[i===d&&(0,e.createComponentVNode)(2,t.Box,{children:" Automated "}),i===m&&(0,e.createComponentVNode)(2,t.Box,{children:[" ",v,"\xB0/h (",y,")"," "]}),i===c&&(0,e.createComponentVNode)(2,t.Box,{children:" Tracker offline "})]})]})})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Controls",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Panel orientation",children:[i!==d&&(0,e.createComponentVNode)(2,t.NumberInput,{unit:"\xB0",step:1,stepPixelSize:1,minValue:0,maxValue:359,value:h,onDrag:function(){function B(I,w){return p("cdir",{cdir:w})}return B}()}),i===d&&(0,e.createComponentVNode)(2,t.Box,{lineHeight:"19px",children:" Automated "})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Tracker status",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"times",content:"Off",selected:i===c,onClick:function(){function B(){return p("track",{track:c})}return B}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"clock-o",content:"Timed",selected:i===m,onClick:function(){function B(){return p("track",{track:m})}return B}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"sync",content:"Auto",selected:i===d,disabled:!C,onClick:function(){function B(){return p("track",{track:d})}return B}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Tracker rotation",children:[i===m&&(0,e.createComponentVNode)(2,t.NumberInput,{unit:"\xB0/h",step:1,stepPixelSize:1,minValue:-7200,maxValue:7200,value:v,format:function(){function B(I){var w=Math.sign(I)>0?"+":"-";return w+Math.abs(I)}return B}(),onDrag:function(){function B(I,w){return p("tdir",{tdir:w})}return B}()}),i===c&&(0,e.createComponentVNode)(2,t.Box,{lineHeight:"19px",children:" Tracker offline "}),i===d&&(0,e.createComponentVNode)(2,t.Box,{lineHeight:"19px",children:" Automated "})]})]})})]})})}return V}()},31202:function(L,r,n){"use strict";r.__esModule=!0,r.SpawnersMenu=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.SpawnersMenu=function(){function V(k,S){var b=(0,a.useBackend)(S),p=b.act,l=b.data,c=l.spawners||[];return(0,e.createComponentVNode)(2,o.Window,{width:700,height:600,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Section,{children:c.map(function(m){return(0,e.createComponentVNode)(2,t.Section,{mb:.5,title:m.name+" ("+m.amount_left+" left)",level:2,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{icon:"chevron-circle-right",content:"Jump",onClick:function(){function d(){return p("jump",{ID:m.uids})}return d}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"chevron-circle-right",content:"Spawn",onClick:function(){function d(){return p("spawn",{ID:m.uids})}return d}()})],4),children:[(0,e.createComponentVNode)(2,t.Box,{style:{"white-space":"pre-wrap"},mb:1,fontSize:"16px",children:m.desc}),!!m.fluff&&(0,e.createComponentVNode)(2,t.Box,{style:{"white-space":"pre-wrap"},textColor:"#878787",fontSize:"14px",children:m.fluff}),!!m.important_info&&(0,e.createComponentVNode)(2,t.Box,{style:{"white-space":"pre-wrap"},mt:1,bold:!0,color:"red",fontSize:"18px",children:m.important_info})]},m.name)})})})})}return V}()},84800:function(L,r,n){"use strict";r.__esModule=!0,r.SpecMenu=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.SpecMenu=function(){function p(l,c){return(0,e.createComponentVNode)(2,o.Window,{width:1100,height:600,theme:"nologo",children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,V),(0,e.createComponentVNode)(2,k),(0,e.createComponentVNode)(2,S),(0,e.createComponentVNode)(2,b)]})})})}return p}(),V=function(l,c){var m=(0,a.useBackend)(c),d=m.act,u=m.data,s=u.subclasses;return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,basis:"25%",children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Hemomancer",buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Choose",onClick:function(){function i(){return d("hemomancer")}return i}()}),children:[(0,e.createVNode)(1,"h3",null,"Focuses on blood magic and the manipulation of blood around you.",16),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Vampiric claws",16),(0,e.createTextVNode)(": Unlocked at 150 blood, allows you to summon a robust pair of claws that attack rapidly, drain a targets blood, and heal you.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Blood Barrier",16),(0,e.createTextVNode)(": Unlocked at 250 blood, allows you to select two turfs and create a wall between them.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Blood tendrils",16),(0,e.createTextVNode)(": Unlocked at 250 blood, allows you to slow everyone in a targeted 3x3 area after a short delay.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Sanguine pool",16),(0,e.createTextVNode)(": Unlocked at 400 blood, allows you to travel at high speeds for a short duration. Doing this leaves behind blood splatters. You can move through anything but walls and space when doing this.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Predator senses",16),(0,e.createTextVNode)(": Unlocked at 600 blood, allows you to sniff out anyone within the same sector as you.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Blood eruption",16),(0,e.createTextVNode)(": Unlocked at 800 blood, allows you to manipulate all nearby blood splatters, in 4 tiles around you, into spikes that impale anyone stood ontop of them.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Full power",16),(0,e.createComponentVNode)(2,t.Divider),(0,e.createVNode)(1,"b",null,"The blood bringers rite",16),(0,e.createTextVNode)(": When toggled you will rapidly drain the blood of everyone who is nearby and use it to heal yourself slightly and remove any incapacitating effects rapidly.")],4)]})})},k=function(l,c){var m=(0,a.useBackend)(c),d=m.act,u=m.data,s=u.subclasses;return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,basis:"25%",children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Umbrae",buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Choose",onClick:function(){function i(){return d("umbrae")}return i}()}),children:[(0,e.createVNode)(1,"h3",null,"Focuses on darkness, stealth ambushing and mobility.",16),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Cloak of darkness",16),(0,e.createTextVNode)(": Unlocked at 150 blood, when toggled, allows you to become nearly invisible and move rapidly when in dark regions. While active, burn damage is more effective against you.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Shadow anchor",16),(0,e.createTextVNode)(": Unlocked at 250 blood, casting it will create an anchor at the cast location after a short delay. If you then cast the ability again, you are teleported back to the anchor. If you do not cast again within 2 minutes, you will do a fake recall, causing a clone to appear at the anchor and making yourself invisible. It will not teleport you between Z levels.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Shadow snare",16),(0,e.createTextVNode)(": Unlocked at 250 blood, allows you to summon a trap that when crossed blinds and ensnares the victim. This trap is hard to see, but withers in the light.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Dark passage",16),(0,e.createTextVNode)(": Unlocked at 400 blood, allows you to target a turf on screen, you will then teleport to that turf.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Extinguish",16),(0,e.createTextVNode)(": Unlocked at 600 blood, allows you to snuff out nearby electronic light sources and glowshrooms.")],4),(0,e.createVNode)(1,"b",null,"Shadow boxing",16),": Unlocked at 800 blood, sends out shadow clones towards a target, damaging them while you remain in range.",(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Full power",16),(0,e.createComponentVNode)(2,t.Divider),(0,e.createVNode)(1,"b",null,"Eternal darkness",16),(0,e.createTextVNode)(": When toggled, you consume yourself in unholy darkness, only the strongest of lights will be able to see through it. Inside the radius, nearby creatures will freeze and energy projectiles will deal less damage.")],4),(0,e.createVNode)(1,"p",null,"In addition, you also gain permanent X-ray vision.",16)]})})},S=function(l,c){var m=(0,a.useBackend)(c),d=m.act,u=m.data,s=u.subclasses;return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,basis:"25%",children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Gargantua",buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Choose",onClick:function(){function i(){return d("gargantua")}return i}()}),children:[(0,e.createVNode)(1,"h3",null,"Focuses on tenacity and melee damage.",16),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Rejuvenate",16),(0,e.createTextVNode)(": Will heal you at an increased rate based on how much damage you have taken.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Blood swell",16),(0,e.createTextVNode)(": Unlocked at 150 blood, increases your resistance to physical damage, stuns and stamina for 30 seconds. While it is active you cannot fire guns.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Seismic stomp",16),(0,e.createTextVNode)(": Unlocked at 250 blood, allows you to stomp the ground to send out a shockwave, knocking people back.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Blood rush",16),(0,e.createTextVNode)(": Unlocked at 250 blood, gives you a short speed boost when cast.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Blood swell II",16),(0,e.createTextVNode)(": Unlocked at 400 blood, increases all melee damage by 10.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Overwhelming force",16),(0,e.createTextVNode)(": Unlocked at 600 blood, when toggled, if you bump into a door that you do not have access to, it will force it open. In addition, you cannot be pushed or pulled while it is active.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Demonic grasp",16),(0,e.createTextVNode)(": Unlocked at 800 blood, allows you to send out a demonic hand to snare someone. If you are on disarm/grab intent you will push/pull the target, respectively.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Charge",16),(0,e.createTextVNode)(": Unlocked at 800 blood, you gain the ability to charge at a target. Destroying and knocking back pretty much anything you collide with.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Full Power",16),(0,e.createComponentVNode)(2,t.Divider),(0,e.createVNode)(1,"b",null,"Desecrated Duel",16),(0,e.createTextVNode)(": Leap towards a visible enemy, creating an arena upon landing, infusing you with increased regeneration, and granting you resistance to internal damages.")],4)]})})},b=function(l,c){var m=(0,a.useBackend)(c),d=m.act,u=m.data,s=u.subclasses;return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,basis:"25%",children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Dantalion",buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Choose",onClick:function(){function i(){return d("dantalion")}return i}()}),children:[(0,e.createVNode)(1,"h3",null,"Focuses on thralling and illusions.",16),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Enthrall",16),(0,e.createTextVNode)(": Unlocked at 150 blood, Thralls your target to your will, requires you to stand still. Does not work on mindshielded or already enthralled/mindslaved people.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Thrall cap",16),(0,e.createTextVNode)(": You can only thrall a max of 1 person at a time. This can be increased at 400 blood, 600 blood and at full power to a max of 4 thralls.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Thrall commune",16),(0,e.createTextVNode)(": Unlocked at 150 blood, Allows you to talk to your thralls, your thralls can talk back in the same way.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Subspace swap",16),(0,e.createTextVNode)(": Unlocked at 250 blood, allows you to swap positions with a target.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Pacify",16),(0,e.createTextVNode)(": Unlocked at 250 blood, allows you to pacify a target, preventing them from causing harm for 40 seconds.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Decoy",16),(0,e.createTextVNode)(": Unlocked at 400 blood, briefly turn invisible and send out an illusion to fool everyone nearby.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Rally thralls",16),(0,e.createTextVNode)(": Unlocked at 600 blood, removes all incapacitating effects from nearby thralls.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Blood bond",16),(0,e.createTextVNode)(": Unlocked at 800 blood, when cast, all nearby thralls become linked to you. If anyone in the network takes damage, it is shared equally between everyone in the network. If a thrall goes out of range, they will be removed from the network.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Full Power",16),(0,e.createComponentVNode)(2,t.Divider),(0,e.createVNode)(1,"b",null,"Mass Hysteria",16),(0,e.createTextVNode)(": Casts a powerful illusion that blinds and then makes everyone nearby perceive others as random animals.")],4)]})})}},46501:function(L,r,n){"use strict";r.__esModule=!0,r.StationAlertConsoleContent=r.StationAlertConsole=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.StationAlertConsole=function(){function k(){return(0,e.createComponentVNode)(2,o.Window,{width:325,height:500,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,V)})})}return k}(),V=r.StationAlertConsoleContent=function(){function k(S,b){var p=(0,a.useBackend)(b),l=p.data,c=l.alarms||[],m=c.Fire||[],d=c.Atmosphere||[],u=c.Power||[];return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{title:"Fire Alarms",children:(0,e.createVNode)(1,"ul",null,[m.length===0&&(0,e.createVNode)(1,"li","color-good","Systems Nominal",16),m.map(function(s){return(0,e.createVNode)(1,"li","color-average",s,0,null,s)})],0)}),(0,e.createComponentVNode)(2,t.Section,{title:"Atmospherics Alarms",children:(0,e.createVNode)(1,"ul",null,[d.length===0&&(0,e.createVNode)(1,"li","color-good","Systems Nominal",16),d.map(function(s){return(0,e.createVNode)(1,"li","color-average",s,0,null,s)})],0)}),(0,e.createComponentVNode)(2,t.Section,{title:"Power Alarms",children:(0,e.createVNode)(1,"ul",null,[u.length===0&&(0,e.createVNode)(1,"li","color-good","Systems Nominal",16),u.map(function(s){return(0,e.createVNode)(1,"li","color-average",s,0,null,s)})],0)})],4)}return k}()},18565:function(L,r,n){"use strict";r.__esModule=!0,r.StationTraitsPanel=void 0;var e=n(96524),a=n(50640),t=n(67765),o=n(17899),f=n(24674),V=n(45493),k=function(l){return l[l.SetupFutureStationTraits=0]="SetupFutureStationTraits",l[l.ViewStationTraits=1]="ViewStationTraits",l}(k||{}),S=function(c,m){var d=(0,o.useBackend)(m),u=d.act,s=d.data,i=s.future_station_traits,v=(0,o.useLocalState)(m,"selectedFutureTrait",null),g=v[0],C=v[1],h=Object.fromEntries(s.valid_station_traits.map(function(y){return[y.name,y.path]})),N=Object.keys(h);return N.sort(),(0,e.createComponentVNode)(2,f.Box,{children:[(0,e.createComponentVNode)(2,f.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,f.Dropdown,{displayText:!g&&"Select trait to add...",onSelected:C,options:N,selected:g,width:"100%"})}),(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Button,{color:"green",icon:"plus",onClick:function(){function y(){if(g){var B=h[g],I=[B];if(i){var w,T=i.map(function(A){return A.path});if(T.indexOf(B)!==-1)return;I=(w=I).concat.apply(w,T)}u("setup_future_traits",{station_traits:I})}}return y}(),children:"Add"})})]}),(0,e.createComponentVNode)(2,f.Divider),Array.isArray(i)?i.length>0?(0,e.createComponentVNode)(2,f.Stack,{vertical:!0,fill:!0,children:i.map(function(y){return(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,children:y.name}),(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Button,{color:"red",icon:"times",onClick:function(){function B(){u("setup_future_traits",{station_traits:(0,a.filterMap)(i,function(I){if(I.path!==y.path)return I.path})})}return B}(),children:"Delete"})})]})},y.path)})}):(0,e.createComponentVNode)(2,f.Box,{textAlign:"center",children:[(0,e.createComponentVNode)(2,f.Box,{children:"No station traits will run next round."}),(0,e.createComponentVNode)(2,f.Button,{mt:1,fluid:!0,color:"good",icon:"times",tooltip:"The next round will roll station traits randomly, just like normal",onClick:function(){function y(){return u("clear_future_traits")}return y}(),children:"Run Station Traits Normally"})]}):(0,e.createComponentVNode)(2,f.Box,{textAlign:"center",children:[(0,e.createComponentVNode)(2,f.Box,{children:"No future station traits are planned."}),(0,e.createComponentVNode)(2,f.Button,{mt:1,fluid:!0,color:"red",icon:"times",onClick:function(){function y(){return u("setup_future_traits",{station_traits:[]})}return y}(),children:"Prevent station traits from running next round"})]})]})},b=function(c,m){var d=(0,o.useBackend)(m),u=d.act,s=d.data;return s.current_traits.length>0?(0,e.createComponentVNode)(2,f.Stack,{vertical:!0,fill:!0,children:s.current_traits.map(function(i){return(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,children:i.name}),(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Button.Confirm,{content:"Revert",color:"red",disabled:s.too_late_to_revert||!i.can_revert,tooltip:!i.can_revert&&"This trait is not revertable."||s.too_late_to_revert&&"It's too late to revert station traits, the round has already started.",icon:"times",onClick:function(){function v(){return u("revert",{ref:i.ref})}return v}()})})]})},i.ref)})}):(0,e.createComponentVNode)(2,f.Box,{textAlign:"center",children:"There are no active station traits."})},p=r.StationTraitsPanel=function(){function l(c,m){var d=(0,o.useLocalState)(m,"station_traits_tab",k.ViewStationTraits),u=d[0],s=d[1],i;switch(u){case k.SetupFutureStationTraits:i=(0,e.createComponentVNode)(2,S);break;case k.ViewStationTraits:i=(0,e.createComponentVNode)(2,b);break;default:(0,t.exhaustiveCheck)(u)}return(0,e.createComponentVNode)(2,V.Window,{title:"Modify Station Traits",height:350,width:350,children:(0,e.createComponentVNode)(2,V.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,f.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Tabs,{children:[(0,e.createComponentVNode)(2,f.Tabs.Tab,{icon:"eye",selected:u===k.ViewStationTraits,onClick:function(){function v(){return s(k.ViewStationTraits)}return v}(),children:"View"}),(0,e.createComponentVNode)(2,f.Tabs.Tab,{icon:"edit",selected:u===k.SetupFutureStationTraits,onClick:function(){function v(){return s(k.SetupFutureStationTraits)}return v}(),children:"Edit"})]})}),(0,e.createComponentVNode)(2,f.Stack.Item,{m:0,children:[(0,e.createComponentVNode)(2,f.Divider),i]})]})})})}return l}()},95147:function(L,r,n){"use strict";r.__esModule=!0,r.StripMenu=void 0;var e=n(96524),a=n(50640),t=n(17442),o=n(17899),f=n(24674),V=n(45493),k=5,S=5,b="64px",p=function(i){return i[0]+"/"+i[1]},l=function(i){var v=i.align,g=i.children;return(0,e.createComponentVNode)(2,f.Box,{style:{position:"absolute",left:v==="left"?"6px":"48px","text-align":v,"text-shadow":"2px 2px 2px #000",top:"2px"},children:g})},c={enable_internals:{icon:"lungs",text:"Enable internals"},disable_internals:{icon:"lungs",text:"Disable internals"},enable_lock:{icon:"lock",text:"Enable lock"},disable_lock:{icon:"unlock",text:"Disable lock"},suit_sensors:{icon:"tshirt",text:"Adjust suit sensors"},remove_accessory:{icon:"medal",text:"Remove accessory"},dislodge_headpocket:{icon:"head-side-virus",text:"Dislodge headpocket"}},m={eyes:{displayName:"eyewear",gridSpot:p([1,0]),image:"inventory-glasses.png"},head:{displayName:"headwear",gridSpot:p([0,1]),image:"inventory-head.png"},mask:{displayName:"mask",gridSpot:p([1,1]),image:"inventory-mask.png"},pet_collar:{displayName:"collar",gridSpot:p([1,1]),image:"inventory-collar.png"},right_ear:{displayName:"right ear",gridSpot:p([0,2]),image:"inventory-ears.png"},left_ear:{displayName:"left ear",gridSpot:p([1,2]),image:"inventory-ears.png"},parrot_headset:{displayName:"headset",gridSpot:p([1,2]),image:"inventory-ears.png"},handcuffs:{displayName:"handcuffs",gridSpot:p([1,3])},legcuffs:{displayName:"legcuffs",gridSpot:p([1,4])},jumpsuit:{displayName:"uniform",gridSpot:p([2,0]),image:"inventory-uniform.png"},suit:{displayName:"suit",gridSpot:p([2,1]),image:"inventory-suit.png"},gloves:{displayName:"gloves",gridSpot:p([2,2]),image:"inventory-gloves.png"},right_hand:{displayName:"right hand",gridSpot:p([2,3]),image:"inventory-hand_r.png",additionalComponent:(0,e.createComponentVNode)(2,l,{align:"left",children:"R"})},left_hand:{displayName:"left hand",gridSpot:p([2,4]),image:"inventory-hand_l.png",additionalComponent:(0,e.createComponentVNode)(2,l,{align:"right",children:"L"})},shoes:{displayName:"shoes",gridSpot:p([3,1]),image:"inventory-shoes.png"},suit_storage:{displayName:"suit storage",gridSpot:p([4,0]),image:"inventory-suit_storage.png"},id:{displayName:"ID",gridSpot:p([4,1]),image:"inventory-id.png"},belt:{displayName:"belt",gridSpot:p([4,2]),image:"inventory-belt.png"},back:{displayName:"backpack",gridSpot:p([4,3]),image:"inventory-back.png"},left_pocket:{displayName:"left pocket",gridSpot:p([3,4]),image:"inventory-pocket.png"},right_pocket:{displayName:"right pocket",gridSpot:p([3,3]),image:"inventory-pocket.png"},pda:{displayName:"PDA",gridSpot:p([4,4]),image:"inventory-pda.png"}},d=function(s){return s[s.Completely=1]="Completely",s[s.Hidden=2]="Hidden",s}(d||{}),u=r.StripMenu=function(){function s(i,v){for(var g=(0,o.useBackend)(v),C=g.act,h=g.data,N=new Map,y=0,B=Object.keys(h.items);y=.01})},(0,a.sortBy)(function(T){return-T.amount})])(g.gases||[]),w=Math.max.apply(Math,[1].concat(I.map(function(T){return T.amount})));return(0,e.createComponentVNode)(2,S.Window,{width:550,height:185,children:(0,e.createComponentVNode)(2,S.Window.Content,{children:(0,e.createComponentVNode)(2,V.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,V.Stack.Item,{width:"270px",children:(0,e.createComponentVNode)(2,V.Section,{fill:!0,scrollable:!0,title:"Metrics",children:(0,e.createComponentVNode)(2,V.LabeledList,{children:[(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Integrity",children:(0,e.createComponentVNode)(2,V.ProgressBar,{value:h/100,ranges:{good:[.9,1/0],average:[.5,.9],bad:[-1/0,.5]}})}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Relative EER",children:(0,e.createComponentVNode)(2,V.ProgressBar,{value:N,minValue:0,maxValue:5e3,ranges:{good:[-1/0,5e3],average:[5e3,7e3],bad:[7e3,1/0]},children:(0,o.toFixed)(N)+" MeV/cm3"})}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Temperature",children:(0,e.createComponentVNode)(2,V.ProgressBar,{value:l(y),minValue:0,maxValue:l(1e4),ranges:{teal:[-1/0,l(80)],good:[l(80),l(373)],average:[l(373),l(1e3)],bad:[l(1e3),1/0]},children:(0,o.toFixed)(y)+" K"})}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Pressure",children:(0,e.createComponentVNode)(2,V.ProgressBar,{value:l(B),minValue:0,maxValue:l(5e4),ranges:{good:[l(1),l(300)],average:[-1/0,l(1e3)],bad:[l(1e3),1/0]},children:(0,o.toFixed)(B)+" kPa"})})]})})}),(0,e.createComponentVNode)(2,V.Stack.Item,{grow:!0,basis:0,children:(0,e.createComponentVNode)(2,V.Section,{fill:!0,scrollable:!0,title:"Gases",buttons:(0,e.createComponentVNode)(2,V.Button,{icon:"arrow-left",content:"Back",onClick:function(){function T(){return v("back")}return T}()}),children:(0,e.createComponentVNode)(2,V.LabeledList,{children:I.map(function(T){return(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:(0,k.getGasLabel)(T.name),children:(0,e.createComponentVNode)(2,V.ProgressBar,{color:(0,k.getGasColor)(T.name),value:T.amount,minValue:0,maxValue:w,children:(0,o.toFixed)(T.amount,2)+"%"})},T.name)})})})})]})})})}},30047:function(L,r,n){"use strict";r.__esModule=!0,r.SyndicateComputerSimple=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.SyndicateComputerSimple=function(){function V(k,S){var b=(0,a.useBackend)(S),p=b.act,l=b.data;return(0,e.createComponentVNode)(2,o.Window,{theme:"syndicate",width:400,height:400,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:l.rows.map(function(c){return(0,e.createComponentVNode)(2,t.Section,{title:c.title,buttons:(0,e.createComponentVNode)(2,t.Button,{content:c.buttontitle,disabled:c.buttondisabled,tooltip:c.buttontooltip,tooltipPosition:"left",onClick:function(){function m(){return p(c.buttonact)}return m}()}),children:[c.status,!!c.bullets&&(0,e.createComponentVNode)(2,t.Box,{children:c.bullets.map(function(m){return(0,e.createComponentVNode)(2,t.Box,{children:m},m)})})]},c.title)})})})}return V}()},28830:function(L,r,n){"use strict";r.__esModule=!0,r.TEG=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=function(S){return S.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1,")},V=r.TEG=function(){function k(S,b){var p=(0,a.useBackend)(b),l=p.act,c=p.data;return c.error?(0,e.createComponentVNode)(2,o.Window,{width:500,height:400,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Error",children:[c.error,(0,e.createComponentVNode)(2,t.Button,{icon:"circle",content:"Recheck",onClick:function(){function m(){return l("check")}return m}()})]})})}):(0,e.createComponentVNode)(2,o.Window,{width:500,height:400,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Cold Loop ("+c.cold_dir+")",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cold Inlet",children:[f(c.cold_inlet_temp)," K,"," ",f(c.cold_inlet_pressure)," kPa"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cold Outlet",children:[f(c.cold_outlet_temp)," K,"," ",f(c.cold_outlet_pressure)," kPa"]})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Hot Loop ("+c.hot_dir+")",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Hot Inlet",children:[f(c.hot_inlet_temp)," K,"," ",f(c.hot_inlet_pressure)," kPa"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Hot Outlet",children:[f(c.hot_outlet_temp)," K,"," ",f(c.hot_outlet_pressure)," kPa"]})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Power Output",children:[f(c.output_power)," W",!!c.warning_switched&&(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Warning: Cold inlet temperature exceeds hot inlet temperature."}),!!c.warning_cold_pressure&&(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Warning: Cold circulator inlet pressure is under 1,000 kPa."}),!!c.warning_hot_pressure&&(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Warning: Hot circulator inlet pressure is under 1,000 kPa."})]})]})})}return k}()},39903:function(L,r,n){"use strict";r.__esModule=!0,r.TachyonArrayContent=r.TachyonArray=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.TachyonArray=function(){function k(S,b){var p=(0,a.useBackend)(b),l=p.act,c=p.data,m=c.records,d=m===void 0?[]:m,u=c.explosion_target,s=c.toxins_tech,i=c.printing;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:600,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Shift's Target",children:u}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Current Toxins Level",children:s}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Administration",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"print",content:"Print All Logs",disabled:!d.length||i,align:"center",onClick:function(){function v(){return l("print_logs")}return v}()}),(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"trash",content:"Delete All Logs",disabled:!d.length,color:"bad",align:"center",onClick:function(){function v(){return l("delete_logs")}return v}()})]})]})}),d.length?(0,e.createComponentVNode)(2,V):(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No Records"})]})})}return k}(),V=r.TachyonArrayContent=function(){function k(S,b){var p=(0,a.useBackend)(b),l=p.act,c=p.data,m=c.records,d=m===void 0?[]:m;return(0,e.createComponentVNode)(2,t.Section,{title:"Logged Explosions",children:(0,e.createComponentVNode)(2,t.Flex,{children:(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Table,{m:"0.5rem",children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Time"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Epicenter"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Actual Size"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Theoretical Size"})]}),d.map(function(u){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:u.logged_time}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:u.epicenter}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:u.actual_size_message}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:u.theoretical_size_message}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"trash",content:"Delete",color:"bad",onClick:function(){function s(){return l("delete_record",{index:u.index})}return s}()})})]},u.index)})]})})})})}return k}()},17068:function(L,r,n){"use strict";r.__esModule=!0,r.Tank=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.Tank=function(){function V(k,S){var b=(0,a.useBackend)(S),p=b.act,l=b.data,c;return l.has_mask?c=(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Mask",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,width:"76%",icon:l.connected?"check":"times",content:l.connected?"Internals On":"Internals Off",selected:l.connected,onClick:function(){function m(){return p("internals")}return m}()})}):c=(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Mask",color:"red",children:"No Mask Equipped"}),(0,e.createComponentVNode)(2,o.Window,{width:325,height:135,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Tank Pressure",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:l.tankPressure/1013,ranges:{good:[.35,1/0],average:[.15,.35],bad:[-1/0,.15]},children:l.tankPressure+" kPa"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Release Pressure",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"fast-backward",disabled:l.ReleasePressure===l.minReleasePressure,tooltip:"Min",onClick:function(){function m(){return p("pressure",{pressure:"min"})}return m}()}),(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,value:parseFloat(l.releasePressure),width:"65px",unit:"kPa",minValue:l.minReleasePressure,maxValue:l.maxReleasePressure,onChange:function(){function m(d,u){return p("pressure",{pressure:u})}return m}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",disabled:l.ReleasePressure===l.maxReleasePressure,tooltip:"Max",onClick:function(){function m(){return p("pressure",{pressure:"max"})}return m}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"undo",content:"",disabled:l.ReleasePressure===l.defaultReleasePressure,tooltip:"Reset",onClick:function(){function m(){return p("pressure",{pressure:"reset"})}return m}()})]}),c]})})})})}return V}()},69161:function(L,r,n){"use strict";r.__esModule=!0,r.TankDispenser=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.TankDispenser=function(){function V(k,S){var b=(0,a.useBackend)(S),p=b.act,l=b.data,c=l.o_tanks,m=l.p_tanks;return(0,e.createComponentVNode)(2,o.Window,{width:250,height:105,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:[(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,content:"Dispense Oxygen Tank ("+c+")",disabled:c===0,icon:"arrow-circle-down",onClick:function(){function d(){return p("oxygen")}return d}()})}),(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{mt:1,fluid:!0,content:"Dispense Plasma Tank ("+m+")",disabled:m===0,icon:"arrow-circle-down",onClick:function(){function d(){return p("plasma")}return d}()})})]})})})}return V}()},87394:function(L,r,n){"use strict";r.__esModule=!0,r.TcommsCore=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.TcommsCore=function(){function p(l,c){var m=(0,a.useBackend)(c),d=m.act,u=m.data,s=u.ion,i=(0,a.useLocalState)(c,"tabIndex",0),v=i[0],g=i[1],C=function(){function h(N){switch(N){case 0:return(0,e.createComponentVNode)(2,k);case 1:return(0,e.createComponentVNode)(2,S);case 2:return(0,e.createComponentVNode)(2,b);default:return"SOMETHING WENT VERY WRONG PLEASE AHELP"}}return h}();return(0,e.createComponentVNode)(2,o.Window,{width:900,height:520,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[s===1&&(0,e.createComponentVNode)(2,V),(0,e.createComponentVNode)(2,t.Tabs,{children:[(0,e.createComponentVNode)(2,t.Tabs.Tab,{icon:"wrench",selected:v===0,onClick:function(){function h(){return g(0)}return h}(),children:"Configuration"},"ConfigPage"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{icon:"link",selected:v===1,onClick:function(){function h(){return g(1)}return h}(),children:"Device Linkage"},"LinkagePage"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{icon:"user-times",selected:v===2,onClick:function(){function h(){return g(2)}return h}(),children:"User Filtering"},"FilterPage")]}),C(v)]})})}return p}(),V=function(){return(0,e.createComponentVNode)(2,t.NoticeBox,{children:"ERROR: An Ionospheric overload has occured. Please wait for the machine to reboot. This cannot be manually done."})},k=function(l,c){var m=(0,a.useBackend)(c),d=m.act,u=m.data,s=u.active,i=u.sectors_available,v=u.nttc_toggle_jobs,g=u.nttc_toggle_job_color,C=u.nttc_toggle_name_color,h=u.nttc_toggle_command_bold,N=u.nttc_job_indicator_type,y=u.nttc_setting_language,B=u.network_id;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{title:"Status",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Machine Power",children:(0,e.createComponentVNode)(2,t.Button,{content:s?"On":"Off",selected:s,icon:"power-off",onClick:function(){function I(){return d("toggle_active")}return I}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Sector Coverage",children:i})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Radio Configuration",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Job Announcements",children:(0,e.createComponentVNode)(2,t.Button,{content:v?"On":"Off",selected:v,icon:"user-tag",onClick:function(){function I(){return d("nttc_toggle_jobs")}return I}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Job Departmentalisation",children:(0,e.createComponentVNode)(2,t.Button,{content:g?"On":"Off",selected:g,icon:"clipboard-list",onClick:function(){function I(){return d("nttc_toggle_job_color")}return I}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Name Departmentalisation",children:(0,e.createComponentVNode)(2,t.Button,{content:C?"On":"Off",selected:C,icon:"user-tag",onClick:function(){function I(){return d("nttc_toggle_name_color")}return I}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Command Amplification",children:(0,e.createComponentVNode)(2,t.Button,{content:h?"On":"Off",selected:h,icon:"volume-up",onClick:function(){function I(){return d("nttc_toggle_command_bold")}return I}()})})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Advanced",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Job Announcement Format",children:(0,e.createComponentVNode)(2,t.Button,{content:N||"Unset",selected:N,icon:"pencil-alt",onClick:function(){function I(){return d("nttc_job_indicator_type")}return I}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Language Conversion",children:(0,e.createComponentVNode)(2,t.Button,{content:y||"Unset",selected:y,icon:"globe",onClick:function(){function I(){return d("nttc_setting_language")}return I}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Network ID",children:(0,e.createComponentVNode)(2,t.Button,{content:B||"Unset",selected:B,icon:"server",onClick:function(){function I(){return d("network_id")}return I}()})})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Maintenance",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Import Configuration",icon:"file-import",onClick:function(){function I(){return d("import")}return I}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Export Configuration",icon:"file-export",onClick:function(){function I(){return d("export")}return I}()})]})],4)},S=function(l,c){var m=(0,a.useBackend)(c),d=m.act,u=m.data,s=u.link_password,i=u.relay_entries;return(0,e.createComponentVNode)(2,t.Section,{title:"Device Linkage",children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Linkage Password",children:(0,e.createComponentVNode)(2,t.Button,{content:s||"Unset",selected:s,icon:"lock",onClick:function(){function v(){return d("change_password")}return v}()})})}),(0,e.createComponentVNode)(2,t.Table,{m:"0.5rem",children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Network Address"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Network ID"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Sector"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Status"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Unlink"})]}),i.map(function(v){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:v.addr}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:v.net_id}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:v.sector}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:v.status===1?(0,e.createComponentVNode)(2,t.Box,{color:"green",children:"Online"}):(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Offline"})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Unlink",icon:"unlink",onClick:function(){function g(){return d("unlink",{addr:v.addr})}return g}()})})]},v.addr)})]})]})},b=function(l,c){var m=(0,a.useBackend)(c),d=m.act,u=m.data,s=u.filtered_users;return(0,e.createComponentVNode)(2,t.Section,{title:"User Filtering",buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Add User",icon:"user-plus",onClick:function(){function i(){return d("add_filter")}return i}()}),children:(0,e.createComponentVNode)(2,t.Table,{m:"0.5rem",children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{style:{width:"90%"},children:"User"}),(0,e.createComponentVNode)(2,t.Table.Cell,{style:{width:"10%"},children:"Actions"})]}),s.map(function(i){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:i}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Remove",icon:"user-times",onClick:function(){function v(){return d("remove_filter",{user:i})}return v}()})})]},i)})]})})}},55684:function(L,r,n){"use strict";r.__esModule=!0,r.TcommsRelay=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.TcommsRelay=function(){function S(b,p){var l=(0,a.useBackend)(p),c=l.act,m=l.data,d=m.linked,u=m.active,s=m.network_id;return(0,e.createComponentVNode)(2,o.Window,{width:600,height:292,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,t.Section,{title:"Relay Configuration",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Machine Power",children:(0,e.createComponentVNode)(2,t.Button,{content:u?"On":"Off",selected:u,icon:"power-off",onClick:function(){function i(){return c("toggle_active")}return i}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Network ID",children:(0,e.createComponentVNode)(2,t.Button,{content:s||"Unset",selected:s,icon:"server",onClick:function(){function i(){return c("network_id")}return i}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Link Status",children:d===1?(0,e.createComponentVNode)(2,t.Box,{color:"green",children:"Linked"}):(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Unlinked"})})]})}),d===1?(0,e.createComponentVNode)(2,V):(0,e.createComponentVNode)(2,k)]})})}return S}(),V=function(b,p){var l=(0,a.useBackend)(p),c=l.act,m=l.data,d=m.linked_core_id,u=m.linked_core_addr,s=m.hidden_link;return(0,e.createComponentVNode)(2,t.Section,{title:"Link Status",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Linked Core ID",children:d}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Linked Core Address",children:u}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Hidden Link",children:(0,e.createComponentVNode)(2,t.Button,{content:s?"Yes":"No",icon:s?"eye-slash":"eye",selected:s,onClick:function(){function i(){return c("toggle_hidden_link")}return i}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Unlink",children:(0,e.createComponentVNode)(2,t.Button,{content:"Unlink",icon:"unlink",color:"red",onClick:function(){function i(){return c("unlink")}return i}()})})]})})},k=function(b,p){var l=(0,a.useBackend)(p),c=l.act,m=l.data,d=m.cores;return(0,e.createComponentVNode)(2,t.Section,{title:"Detected Cores",children:(0,e.createComponentVNode)(2,t.Table,{m:"0.5rem",children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Network Address"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Network ID"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Sector"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Link"})]}),d.map(function(u){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:u.addr}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:u.net_id}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:u.sector}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Link",icon:"link",onClick:function(){function s(){return c("link",{addr:u.addr})}return s}()})})]},u.addr)})]})})}},81088:function(L,r,n){"use strict";r.__esModule=!0,r.Teleporter=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.Teleporter=function(){function V(k,S){var b=(0,a.useBackend)(S),p=b.act,l=b.data,c=l.targetsTeleport?l.targetsTeleport:{},m=0,d=1,u=2,s=l.calibrated,i=l.calibrating,v=l.powerstation,g=l.regime,C=l.teleporterhub,h=l.target,N=l.locked,y=l.adv_beacon_allowed,B=l.advanced_beacon_locking;return(0,e.createComponentVNode)(2,o.Window,{width:350,height:270,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:[(!v||!C)&&(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Error",children:[C,!v&&(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:" Powerstation not linked "}),v&&!C&&(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:" Teleporter hub not linked "})]}),v&&C&&(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Status",buttons:(0,e.createFragment)(!!y&&(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{inline:!0,color:"label",children:"Advanced Beacon Locking:\xA0"}),(0,e.createComponentVNode)(2,t.Button,{selected:B,icon:B?"toggle-on":"toggle-off",content:B?"Enabled":"Disabled",onClick:function(){function I(){return p("advanced_beacon_locking",{on:B?0:1})}return I}()})],4),0),children:[(0,e.createComponentVNode)(2,t.Stack,{mb:1,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:8.5,color:"label",children:"Teleport target:"}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:[g===m&&(0,e.createComponentVNode)(2,t.Dropdown,{width:18.2,selected:h,disabled:i,options:Object.keys(c),color:h!=="None"?"default":"bad",onSelected:function(){function I(w){return p("settarget",{x:c[w].x,y:c[w].y,z:c[w].z,tptarget:c[w].pretarget})}return I}()}),g===d&&(0,e.createComponentVNode)(2,t.Dropdown,{width:18.2,selected:h,disabled:i,options:Object.keys(c),color:h!=="None"?"default":"bad",onSelected:function(){function I(w){return p("settarget",{x:c[w].x,y:c[w].y,z:c[w].z,tptarget:c[w].pretarget})}return I}()}),g===u&&(0,e.createComponentVNode)(2,t.Box,{children:h})]})]}),(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:8.5,color:"label",children:"Regime:"}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,content:"Gate",tooltip:"Teleport to another teleport hub.",tooltipPosition:"top",color:g===d?"good":null,onClick:function(){function I(){return p("setregime",{regime:d})}return I}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,content:"Teleporter",tooltip:"One-way teleport.",tooltipPosition:"top",color:g===m?"good":null,onClick:function(){function I(){return p("setregime",{regime:m})}return I}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,content:"GPS",tooltip:"Teleport to a location stored in a GPS device.",tooltipPosition:"top-end",color:g===u?"good":null,disabled:!N,onClick:function(){function I(){return p("setregime",{regime:u})}return I}()})})]}),(0,e.createComponentVNode)(2,t.Stack,{label:"Calibration",mt:1,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:8.5,color:"label",children:"Calibration:"}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:[h!=="None"&&(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:15.8,textAlign:"center",mt:.5,children:i&&(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"In Progress"})||s&&(0,e.createComponentVNode)(2,t.Box,{color:"good",children:"Optimal"})||(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:"Sub-Optimal"})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Button,{icon:"sync-alt",tooltip:"Calibrates the hub. Accidents may occur when the calibration is not optimal.",tooltipPosition:"bottom-end",disabled:!!(s||i),onClick:function(){function I(){return p("calibrate")}return I}()})})]}),h==="None"&&(0,e.createComponentVNode)(2,t.Box,{lineHeight:"21px",children:"No target set"})]})]})]}),!!(N&&v&&C&&g===u)&&(0,e.createComponentVNode)(2,t.Section,{title:"GPS",children:(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Button,{content:"Upload GPS data",tooltip:"Loads the GPS data from the device.",icon:"upload",onClick:function(){function I(){return p("load")}return I}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Eject",tooltip:"Ejects the GPS device",icon:"eject",onClick:function(){function I(){return p("eject")}return I}()})]})})]})})})})}return V}()},65875:function(L,r,n){"use strict";r.__esModule=!0,r.TelescienceConsole=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.TelescienceConsole=function(){function V(k,S){var b=(0,a.useBackend)(S),p=b.act,l=b.data,c=l.last_msg,m=l.linked_pad,d=l.held_gps,u=l.lastdata,s=l.power_levels,i=l.current_max_power,v=l.current_power,g=l.current_bearing,C=l.current_elevation,h=l.current_sector,N=l.working,y=l.max_z,B=(0,a.useLocalState)(S,"dummyrot",g),I=B[0],w=B[1];return(0,e.createComponentVNode)(2,o.Window,{width:400,height:500,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Status",children:(0,e.createFragment)([c,!(u.length>0)||(0,e.createVNode)(1,"ul",null,u.map(function(T){return(0,e.createVNode)(1,"li",null,T,0,null,T)}),0)],0)}),(0,e.createComponentVNode)(2,t.Section,{title:"Telepad Status",children:m===1?(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Current Bearing",children:(0,e.createComponentVNode)(2,t.Box,{inline:!0,position:"relative",children:[(0,e.createComponentVNode)(2,t.NumberInput,{unit:"\xB0",width:6.1,lineHeight:1.5,step:.1,minValue:0,maxValue:360,disabled:N,value:g,onDrag:function(){function T(A,x){return w(x)}return T}(),onChange:function(){function T(A,x){return p("setbear",{bear:x})}return T}()}),(0,e.createComponentVNode)(2,t.Icon,{ml:1,size:1,name:"arrow-up",rotation:I})]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Current Elevation",children:(0,e.createComponentVNode)(2,t.NumberInput,{width:6.1,lineHeight:1.5,step:.1,minValue:0,maxValue:100,disabled:N,value:C,onChange:function(){function T(A,x){return p("setelev",{elev:x})}return T}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power Level",children:s.map(function(T,A){return(0,e.createComponentVNode)(2,t.Button,{content:T,selected:v===T,disabled:A>=i-1||N,onClick:function(){function x(){return p("setpwr",{pwr:A+1})}return x}()},T)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Target Sector",children:(0,e.createComponentVNode)(2,t.NumberInput,{width:6.1,lineHeight:1.5,step:1,minValue:2,maxValue:y,value:h,disabled:N,onChange:function(){function T(A,x){return p("setz",{newz:x})}return T}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Telepad Actions",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Send",disabled:N,onClick:function(){function T(){return p("pad_send")}return T}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Receive",disabled:N,onClick:function(){function T(){return p("pad_receive")}return T}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Crystal Maintenance",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Recalibrate Crystals",disabled:N,onClick:function(){function T(){return p("recal_crystals")}return T}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Eject Crystals",disabled:N,onClick:function(){function T(){return p("eject_crystals")}return T}()})]})]}):(0,e.createFragment)([(0,e.createTextVNode)("No pad linked to console. Please use a multitool to link a pad.")],4)}),(0,e.createComponentVNode)(2,t.Section,{title:"GPS Actions",children:d===1?(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{disabled:d===0||N,content:"Eject GPS",onClick:function(){function T(){return p("eject_gps")}return T}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:d===0||N,content:"Store Coordinates",onClick:function(){function T(){return p("store_to_gps")}return T}()})],4):(0,e.createFragment)([(0,e.createTextVNode)("Please insert a GPS to store coordinates to it.")],4)})]})})}return V}()},96150:function(L,r,n){"use strict";r.__esModule=!0,r.TempGun=void 0;var e=n(96524),a=n(36121),t=n(17899),o=n(24674),f=n(45493),V=r.TempGun=function(){function p(l,c){var m=(0,t.useBackend)(c),d=m.act,u=m.data,s=u.target_temperature,i=u.temperature,v=u.max_temp,g=u.min_temp;return(0,e.createComponentVNode)(2,f.Window,{width:250,height:121,children:(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,o.Section,{children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Target Temperature",children:[(0,e.createComponentVNode)(2,o.NumberInput,{animate:!0,step:10,stepPixelSize:6,minValue:g,maxValue:v,value:s,format:function(){function C(h){return(0,a.toFixed)(h,2)}return C}(),width:"50px",onDrag:function(){function C(h,N){return d("target_temperature",{target_temperature:N})}return C}()}),"\xB0C"]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Current Temperature",children:(0,e.createComponentVNode)(2,o.Box,{color:k(i),bold:i>500-273.15,children:[(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:(0,a.round)(i,2)}),"\xB0C"]})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Power Cost",children:(0,e.createComponentVNode)(2,o.Box,{color:b(i),children:S(i)})})]})})})})}return p}(),k=function(l){return l<=-100?"blue":l<=0?"teal":l<=100?"green":l<=200?"orange":"red"},S=function(l){return l<=100-273.15?"High":l<=250-273.15?"Medium":l<=300-273.15?"Low":l<=400-273.15?"Medium":"High"},b=function(l){return l<=100-273.15?"red":l<=250-273.15?"orange":l<=300-273.15?"green":l<=400-273.15?"orange":"red"}},95484:function(L,r,n){"use strict";r.__esModule=!0,r.sanitizeMultiline=r.removeAllSkiplines=r.TextInputModal=void 0;var e=n(96524),a=n(14299),t=n(15113),o=n(17899),f=n(68100),V=n(24674),k=n(45493),S=r.sanitizeMultiline=function(){function c(m){return m.replace(/(\n|\r\n){3,}/,"\n\n")}return c}(),b=r.removeAllSkiplines=function(){function c(m){return m.replace(/[\r\n]+/,"")}return c}(),p=r.TextInputModal=function(){function c(m,d){var u=(0,o.useBackend)(d),s=u.act,i=u.data,v=i.max_length,g=i.message,C=g===void 0?"":g,h=i.multiline,N=i.placeholder,y=i.timeout,B=i.title,I=(0,o.useLocalState)(d,"input",N||""),w=I[0],T=I[1],A=function(){function M(D){if(D!==w){var P=h?S(D):b(D);T(P)}}return M}(),x=h||w.length>=40,E=130+(C.length>40?Math.ceil(C.length/4):0)+(x?80:0);return(0,e.createComponentVNode)(2,k.Window,{title:B,width:325,height:E,children:[y&&(0,e.createComponentVNode)(2,a.Loader,{value:y}),(0,e.createComponentVNode)(2,k.Window.Content,{onKeyDown:function(){function M(D){var P=window.event?D.which:D.keyCode;P===f.KEY_ENTER&&(!x||!D.shiftKey)&&s("submit",{entry:w}),P===f.KEY_ESCAPE&&s("cancel")}return M}(),children:(0,e.createComponentVNode)(2,V.Section,{fill:!0,children:(0,e.createComponentVNode)(2,V.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,V.Stack.Item,{children:(0,e.createComponentVNode)(2,V.Box,{color:"label",children:C})}),(0,e.createComponentVNode)(2,V.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,l,{input:w,onType:A})}),(0,e.createComponentVNode)(2,V.Stack.Item,{children:(0,e.createComponentVNode)(2,t.InputButtons,{input:w,message:w.length+"/"+v})})]})})})]})}return c}(),l=function(m,d){var u=(0,o.useBackend)(d),s=u.act,i=u.data,v=i.max_length,g=i.multiline,C=m.input,h=m.onType,N=g||C.length>=40;return(0,e.createComponentVNode)(2,V.TextArea,{autoFocus:!0,autoSelect:!0,height:g||C.length>=40?"100%":"1.8rem",maxLength:v,onEscape:function(){function y(){return s("cancel")}return y}(),onEnter:function(){function y(B){N&&B.shiftKey||(B.preventDefault(),s("submit",{entry:C}))}return y}(),onInput:function(){function y(B,I){return h(I)}return y}(),placeholder:"Type something...",value:C})}},378:function(L,r,n){"use strict";r.__esModule=!0,r.ThermoMachine=void 0;var e=n(96524),a=n(36121),t=n(17899),o=n(24674),f=n(45493),V=r.ThermoMachine=function(){function k(S,b){var p=(0,t.useBackend)(b),l=p.act,c=p.data;return(0,e.createComponentVNode)(2,f.Window,{width:300,height:225,children:(0,e.createComponentVNode)(2,f.Window.Content,{children:[(0,e.createComponentVNode)(2,o.Section,{title:"Status",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Temperature",children:[(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:c.temperature,format:function(){function m(d){return(0,a.toFixed)(d,2)}return m}()})," K"]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Pressure",children:[(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:c.pressure,format:function(){function m(d){return(0,a.toFixed)(d,2)}return m}()})," kPa"]})]})}),(0,e.createComponentVNode)(2,o.Section,{title:"Controls",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:c.on?"power-off":"times",content:c.on?"On":"Off",selected:c.on,onClick:function(){function m(){return l("power")}return m}()}),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Setting",textAlign:"center",children:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,icon:c.cooling?"temperature-low":"temperature-high",content:c.cooling?"Cooling":"Heating",selected:c.cooling,onClick:function(){function m(){return l("cooling")}return m}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Target Temperature",children:[(0,e.createComponentVNode)(2,o.Button,{icon:"fast-backward",disabled:c.target===c.min,title:"Minimum temperature",onClick:function(){function m(){return l("target",{target:c.min})}return m}()}),(0,e.createComponentVNode)(2,o.NumberInput,{animated:!0,value:Math.round(c.target),unit:"K",width:5.4,lineHeight:1.4,minValue:Math.round(c.min),maxValue:Math.round(c.max),step:5,stepPixelSize:3,onDrag:function(){function m(d,u){return l("target",{target:u})}return m}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"fast-forward",disabled:c.target===c.max,title:"Maximum Temperature",onClick:function(){function m(){return l("target",{target:c.max})}return m}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"sync",disabled:c.target===c.initial,title:"Room Temperature",onClick:function(){function m(){return l("target",{target:c.initial})}return m}()})]})]})})]})})}return k}()},3365:function(L,r,n){"use strict";r.__esModule=!0,r.TransferValve=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.TransferValve=function(){function V(k,S){var b=(0,a.useBackend)(S),p=b.act,l=b.data,c=l.tank_one,m=l.tank_two,d=l.attached_device,u=l.valve;return(0,e.createComponentVNode)(2,o.Window,{width:460,height:285,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Valve Status",children:(0,e.createComponentVNode)(2,t.Button,{icon:u?"unlock":"lock",content:u?"Open":"Closed",disabled:!c||!m,onClick:function(){function s(){return p("toggle")}return s}()})})})}),(0,e.createComponentVNode)(2,t.Section,{title:"Assembly",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"cog",content:"Configure Assembly",disabled:!d,onClick:function(){function s(){return p("device")}return s}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Attachment",children:d?(0,e.createComponentVNode)(2,t.Button,{icon:"eject",content:d,disabled:!d,onClick:function(){function s(){return p("remove_device")}return s}()}):(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"No Assembly"})})})}),(0,e.createComponentVNode)(2,t.Section,{title:"Attachment One",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Attachment",children:c?(0,e.createComponentVNode)(2,t.Button,{icon:"eject",content:c,disabled:!c,onClick:function(){function s(){return p("tankone")}return s}()}):(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"No Tank"})})})}),(0,e.createComponentVNode)(2,t.Section,{title:"Attachment Two",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Attachment",children:m?(0,e.createComponentVNode)(2,t.Button,{icon:"eject",content:m,disabled:!m,onClick:function(){function s(){return p("tanktwo")}return s}()}):(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"No Tank"})})})})]})})}return V}()},13860:function(L,r,n){"use strict";r.__esModule=!0,r.TurbineComputer=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=n(36121),V=r.TurbineComputer=function(){function b(p,l){var c=(0,a.useBackend)(l),m=c.act,d=c.data,u=d.compressor,s=d.compressor_broken,i=d.turbine,v=d.turbine_broken,g=d.online,C=!!(u&&!s&&i&&!v);return(0,e.createComponentVNode)(2,o.Window,{width:400,height:200,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Status",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{icon:g?"power-off":"times",content:g?"Online":"Offline",selected:g,disabled:!C,onClick:function(){function h(){return m("toggle_power")}return h}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"times",content:"Disconnect",onClick:function(){function h(){return m("disconnect")}return h}()})],4),children:C?(0,e.createComponentVNode)(2,S):(0,e.createComponentVNode)(2,k)})})})}return b}(),k=function(p,l){var c=(0,a.useBackend)(l),m=c.data,d=m.compressor,u=m.compressor_broken,s=m.turbine,i=m.turbine_broken,v=m.online;return(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Compressor Status",color:!d||u?"bad":"good",children:u?d?"Offline":"Missing":"Online"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Turbine Status",color:!s||i?"bad":"good",children:i?s?"Offline":"Missing":"Online"})]})},S=function(p,l){var c=(0,a.useBackend)(l),m=c.data,d=m.rpm,u=m.temperature,s=m.power,i=m.bearing_heat;return(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Turbine Speed",children:[d," RPM"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Internal Temp",children:[u," K"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Generated Power",children:[s," W"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Bearing Heat",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:i,minValue:0,maxValue:100,ranges:{good:[-1/0,60],average:[60,90],bad:[90,1/0]},children:(0,f.toFixed)(i)+"%"})})]})}},22169:function(L,r,n){"use strict";r.__esModule=!0,r.Uplink=void 0;var e=n(96524),a=n(50640),t=n(74041),o=n(78234),f=n(17899),V=n(24674),k=n(45493),S=n(99665),b=function(g){switch(g){case 0:return(0,e.createComponentVNode)(2,l);case 1:return(0,e.createComponentVNode)(2,c);case 2:return(0,e.createComponentVNode)(2,i);default:return"SOMETHING WENT VERY WRONG PLEASE AHELP"}},p=r.Uplink=function(){function v(g,C){var h=(0,f.useBackend)(C),N=h.act,y=h.data,B=y.cart,I=(0,f.useLocalState)(C,"tabIndex",0),w=I[0],T=I[1],A=(0,f.useLocalState)(C,"searchText",""),x=A[0],E=A[1];return(0,e.createComponentVNode)(2,k.Window,{width:900,height:600,theme:"syndicate",children:[(0,e.createComponentVNode)(2,S.ComplexModal),(0,e.createComponentVNode)(2,k.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,V.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,V.Stack.Item,{children:(0,e.createComponentVNode)(2,V.Tabs,{children:[(0,e.createComponentVNode)(2,V.Tabs.Tab,{selected:w===0,onClick:function(){function M(){T(0),E("")}return M}(),icon:"store",children:"View Market"},"PurchasePage"),(0,e.createComponentVNode)(2,V.Tabs.Tab,{selected:w===1,onClick:function(){function M(){T(1),E("")}return M}(),icon:"shopping-cart",children:["View Shopping Cart"," ",B&&B.length?"("+B.length+")":""]},"Cart"),(0,e.createComponentVNode)(2,V.Tabs.Tab,{selected:w===2,onClick:function(){function M(){T(2),E("")}return M}(),icon:"user",children:"Exploitable Information"},"ExploitableInfo"),(0,e.createComponentVNode)(2,V.Tabs.Tab,{onClick:function(){function M(){return N("lock")}return M}(),icon:"lock",children:"Lock Uplink"},"LockUplink")]})}),(0,e.createComponentVNode)(2,V.Stack.Item,{grow:!0,children:b(w)})]})})]})}return v}(),l=function(g,C){var h=(0,f.useBackend)(C),N=h.act,y=h.data,B=y.crystals,I=y.cats,w=(0,f.useLocalState)(C,"uplinkItems",I[0].items),T=w[0],A=w[1],x=(0,f.useLocalState)(C,"searchText",""),E=x[0],M=x[1],D=function(_,z){z===void 0&&(z="");var G=(0,o.createSearch)(z,function(X){var Y=X.hijack_only===1?"|hijack":"";return X.name+"|"+X.desc+"|"+X.cost+"tc"+Y});return(0,t.flow)([(0,a.filter)(function(X){return X==null?void 0:X.name}),z&&(0,a.filter)(G),(0,a.sortBy)(function(X){return X==null?void 0:X.name})])(_)},P=function(_){if(M(_),_==="")return A(I[0].items);A(D(I.map(function(z){return z.items}).flat(),_))},R=(0,f.useLocalState)(C,"showDesc",1),j=R[0],F=R[1];return(0,e.createComponentVNode)(2,V.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,V.Stack,{vertical:!0,children:(0,e.createComponentVNode)(2,V.Stack.Item,{children:(0,e.createComponentVNode)(2,V.Section,{title:"Current Balance: "+B+"TC",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,V.Button.Checkbox,{content:"Show Descriptions",checked:j,onClick:function(){function U(){return F(!j)}return U}()}),(0,e.createComponentVNode)(2,V.Button,{content:"Random Item",icon:"question",onClick:function(){function U(){return N("buyRandom")}return U}()}),(0,e.createComponentVNode)(2,V.Button,{content:"Refund Currently Held Item",icon:"undo",onClick:function(){function U(){return N("refund")}return U}()})],4),children:(0,e.createComponentVNode)(2,V.Input,{fluid:!0,placeholder:"Search Equipment",onInput:function(){function U(_,z){P(z)}return U}(),value:E})})})}),(0,e.createComponentVNode)(2,V.Stack,{fill:!0,mt:.3,children:[(0,e.createComponentVNode)(2,V.Stack.Item,{width:"30%",children:(0,e.createComponentVNode)(2,V.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,V.Tabs,{vertical:!0,children:I.map(function(U){return(0,e.createComponentVNode)(2,V.Tabs.Tab,{selected:E!==""?!1:U.items===T,onClick:function(){function _(){A(U.items),M("")}return _}(),children:U.cat},U)})})})}),(0,e.createComponentVNode)(2,V.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,V.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,V.Stack,{vertical:!0,children:T.map(function(U){return(0,e.createComponentVNode)(2,V.Stack.Item,{p:1,backgroundColor:"rgba(255, 0, 0, 0.1)",children:(0,e.createComponentVNode)(2,d,{i:U,showDecription:j},(0,o.decodeHtmlEntities)(U.name))},(0,o.decodeHtmlEntities)(U.name))})})})})]})]})},c=function(g,C){var h=(0,f.useBackend)(C),N=h.act,y=h.data,B=y.cart,I=y.crystals,w=y.cart_price,T=(0,f.useLocalState)(C,"showDesc",0),A=T[0],x=T[1];return(0,e.createComponentVNode)(2,V.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,V.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,V.Section,{fill:!0,scrollable:!0,title:"Current Balance: "+I+"TC",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,V.Button.Checkbox,{content:"Show Descriptions",checked:A,onClick:function(){function E(){return x(!A)}return E}()}),(0,e.createComponentVNode)(2,V.Button,{content:"Empty Cart",icon:"trash",onClick:function(){function E(){return N("empty_cart")}return E}(),disabled:!B}),(0,e.createComponentVNode)(2,V.Button,{content:"Purchase Cart ("+w+"TC)",icon:"shopping-cart",onClick:function(){function E(){return N("purchase_cart")}return E}(),disabled:!B||w>I})],4),children:(0,e.createComponentVNode)(2,V.Stack,{vertical:!0,children:B?B.map(function(E){return(0,e.createComponentVNode)(2,V.Stack.Item,{p:1,mr:1,backgroundColor:"rgba(255, 0, 0, 0.1)",children:(0,e.createComponentVNode)(2,d,{i:E,showDecription:A,buttons:(0,e.createComponentVNode)(2,s,{i:E})})},(0,o.decodeHtmlEntities)(E.name))}):(0,e.createComponentVNode)(2,V.Box,{italic:!0,children:"Your Shopping Cart is empty!"})})})}),(0,e.createComponentVNode)(2,m)]})},m=function(g,C){var h=(0,f.useBackend)(C),N=h.act,y=h.data,B=y.cats,I=y.lucky_numbers;return(0,e.createComponentVNode)(2,V.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,V.Section,{fill:!0,scrollable:!0,title:"Suggested Purchases",buttons:(0,e.createComponentVNode)(2,V.Button,{icon:"dice",content:"See more suggestions",onClick:function(){function w(){return N("shuffle_lucky_numbers")}return w}()}),children:(0,e.createComponentVNode)(2,V.Stack,{wrap:!0,children:I.map(function(w){return B[w.cat].items[w.item]}).filter(function(w){return w!=null}).map(function(w,T){return(0,e.createComponentVNode)(2,V.Stack.Item,{p:1,mb:1,ml:1,width:34,backgroundColor:"rgba(255, 0, 0, 0.15)",children:(0,e.createComponentVNode)(2,d,{grow:!0,i:w})},T)})})})})},d=function(g,C){var h=g.i,N=g.showDecription,y=N===void 0?1:N,B=g.buttons,I=B===void 0?(0,e.createComponentVNode)(2,u,{i:h}):B;return(0,e.createComponentVNode)(2,V.Section,{title:(0,o.decodeHtmlEntities)(h.name),showBottom:y,buttons:I,children:y?(0,e.createComponentVNode)(2,V.Box,{italic:!0,children:(0,o.decodeHtmlEntities)(h.desc)}):null})},u=function(g,C){var h=(0,f.useBackend)(C),N=h.act,y=h.data,B=g.i,I=y.crystals;return(0,e.createFragment)([(0,e.createComponentVNode)(2,V.Button,{icon:"shopping-cart",color:B.hijack_only===1&&"red",tooltip:"Add to cart.",tooltipPosition:"left",onClick:function(){function w(){return N("add_to_cart",{item:B.obj_path})}return w}(),disabled:B.cost>I}),(0,e.createComponentVNode)(2,V.Button,{content:"Buy ("+B.cost+"TC)"+(B.refundable?" [Refundable]":""),color:B.hijack_only===1&&"red",tooltip:B.hijack_only===1&&"Hijack Agents Only!",tooltipPosition:"left",onClick:function(){function w(){return N("buyItem",{item:B.obj_path})}return w}(),disabled:B.cost>I})],4)},s=function(g,C){var h=(0,f.useBackend)(C),N=h.act,y=h.data,B=g.i,I=y.exploitable;return(0,e.createComponentVNode)(2,V.Stack,{children:[(0,e.createComponentVNode)(2,V.Button,{icon:"times",content:"("+B.cost*B.amount+"TC)",tooltip:"Remove from cart.",tooltipPosition:"left",onClick:function(){function w(){return N("remove_from_cart",{item:B.obj_path})}return w}()}),(0,e.createComponentVNode)(2,V.Button,{icon:"minus",tooltip:B.limit===0&&"Discount already redeemed!",ml:"5px",onClick:function(){function w(){return N("set_cart_item_quantity",{item:B.obj_path,quantity:--B.amount})}return w}(),disabled:B.amount<=0}),(0,e.createComponentVNode)(2,V.Button.Input,{content:B.amount,width:"45px",tooltipPosition:"bottom-end",tooltip:B.limit===0&&"Discount already redeemed!",onCommit:function(){function w(T,A){return N("set_cart_item_quantity",{item:B.obj_path,quantity:A})}return w}(),disabled:B.limit!==-1&&B.amount>=B.limit&&B.amount<=0}),(0,e.createComponentVNode)(2,V.Button,{mb:.3,icon:"plus",tooltipPosition:"bottom-start",tooltip:B.limit===0&&"Discount already redeemed!",onClick:function(){function w(){return N("set_cart_item_quantity",{item:B.obj_path,quantity:++B.amount})}return w}(),disabled:B.limit!==-1&&B.amount>=B.limit})]})},i=function(g,C){var h=(0,f.useBackend)(C),N=h.act,y=h.data,B=y.exploitable,I=(0,f.useLocalState)(C,"selectedRecord",B[0]),w=I[0],T=I[1],A=(0,f.useLocalState)(C,"searchText",""),x=A[0],E=A[1],M=function(R,j){j===void 0&&(j="");var F=(0,o.createSearch)(j,function(U){return U.name});return(0,t.flow)([(0,a.filter)(function(U){return U==null?void 0:U.name}),j&&(0,a.filter)(F),(0,a.sortBy)(function(U){return U.name})])(R)},D=M(B,x);return(0,e.createComponentVNode)(2,V.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,V.Stack.Item,{width:"30%",children:(0,e.createComponentVNode)(2,V.Section,{fill:!0,scrollable:!0,title:"Exploitable Records",children:[(0,e.createComponentVNode)(2,V.Input,{fluid:!0,mb:1,placeholder:"Search Crew",onInput:function(){function P(R,j){return E(j)}return P}()}),(0,e.createComponentVNode)(2,V.Tabs,{vertical:!0,children:D.map(function(P){return(0,e.createComponentVNode)(2,V.Tabs.Tab,{selected:P===w,onClick:function(){function R(){return T(P)}return R}(),children:P.name},P)})})]})}),(0,e.createComponentVNode)(2,V.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,V.Section,{fill:!0,scrollable:!0,title:w.name,children:(0,e.createComponentVNode)(2,V.LabeledList,{children:[(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Age",children:w.age}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Fingerprint",children:w.fingerprint}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Rank",children:w.rank}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Sex",children:w.sex}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Species",children:w.species})]})})})]})}},70547:function(L,r,n){"use strict";r.__esModule=!0,r.Vending=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=function(S,b){var p=(0,a.useBackend)(b),l=p.act,c=p.data,m=S.product,d=S.productStock,u=S.productImage,s=c.chargesMoney,i=c.user,v=c.usermoney,g=c.inserted_cash,C=c.vend_ready,h=c.inserted_item_name,N=!s||m.price===0,y="ERROR!",B="";N?(y="FREE",B="arrow-circle-down"):(y=m.price,B="shopping-cart");var I=!C||d===0||!N&&m.price>v&&m.price>g;return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,children:(0,e.createVNode)(1,"img",null,null,1,{src:"data:image/jpeg;base64,"+u,style:{"vertical-align":"middle",width:"32px",margin:"0px","margin-left":"0px"}})}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:m.name}),(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,t.Box,{color:d<=0&&"bad"||d<=m.max_amount/2&&"average"||"good",children:[d," in stock"]})}),(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,disabled:I,icon:B,content:y,textAlign:"left",onClick:function(){function w(){return l("vend",{inum:m.inum})}return w}()})})]})},V=r.Vending=function(){function k(S,b){var p=(0,a.useBackend)(b),l=p.act,c=p.data,m=c.user,d=c.usermoney,u=c.inserted_cash,s=c.chargesMoney,i=c.product_records,v=i===void 0?[]:i,g=c.hidden_records,C=g===void 0?[]:g,h=c.stock,N=c.vend_ready,y=c.inserted_item_name,B=c.panel_open,I=c.speaker,w=c.imagelist,T;return T=[].concat(v),c.extended_inventory&&(T=[].concat(T,C)),T=T.filter(function(A){return!!A}),(0,e.createComponentVNode)(2,o.Window,{title:"Vending Machine",width:450,height:Math.min((s?171:89)+T.length*32,585),children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[!!s&&(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"User",buttons:(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:!!y&&(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"eject",content:(0,e.createVNode)(1,"span",null,y,0,{style:{"text-transform":"capitalize"}}),onClick:function(){function A(){return l("eject_item",{})}return A}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{disabled:!u,icon:"money-bill-wave-alt",content:u?(0,e.createFragment)([(0,e.createVNode)(1,"b",null,u,0),(0,e.createTextVNode)(" credits")],0):"Dispense Change",tooltip:u?"Dispense Change":null,textAlign:"left",onClick:function(){function A(){return l("change")}return A}()})})]}),children:m&&(0,e.createComponentVNode)(2,t.Box,{children:["Welcome, ",(0,e.createVNode)(1,"b",null,m.name,0),","," ",(0,e.createVNode)(1,"b",null,m.job||"Unemployed",0),"!",(0,e.createVNode)(1,"br"),"Your balance is ",(0,e.createVNode)(1,"b",null,[d,(0,e.createTextVNode)(" credits")],0),".",(0,e.createVNode)(1,"br")]})})}),!!B&&(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Maintenance",children:(0,e.createComponentVNode)(2,t.Button,{icon:I?"check":"volume-mute",selected:I,content:"Speaker",textAlign:"left",onClick:function(){function A(){return l("toggle_voice",{})}return A}()})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Products",children:(0,e.createComponentVNode)(2,t.Table,{children:T.map(function(A){return(0,e.createComponentVNode)(2,f,{product:A,productStock:h[A.name],productImage:w[A.path]},A.name)})})})})]})})})}return k}()},33045:function(L,r,n){"use strict";r.__esModule=!0,r.VolumeMixer=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.VolumeMixer=function(){function V(k,S){var b=(0,a.useBackend)(S),p=b.act,l=b.data,c=l.channels;return(0,e.createComponentVNode)(2,o.Window,{width:350,height:Math.min(95+c.length*50,565),children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,children:c.map(function(m,d){return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{fontSize:"1.25rem",color:"label",mt:d>0&&"0.5rem",children:m.name}),(0,e.createComponentVNode)(2,t.Box,{mt:"0.5rem",children:(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{mr:.5,children:(0,e.createComponentVNode)(2,t.Button,{width:"24px",color:"transparent",children:(0,e.createComponentVNode)(2,t.Icon,{name:"volume-off",size:"1.5",mt:"0.1rem",onClick:function(){function u(){return p("volume",{channel:m.num,volume:0})}return u}()})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,mx:"0.5rem",children:(0,e.createComponentVNode)(2,t.Slider,{minValue:0,maxValue:100,stepPixelSize:3.13,value:m.volume,onChange:function(){function u(s,i){return p("volume",{channel:m.num,volume:i})}return u}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{width:"24px",color:"transparent",children:(0,e.createComponentVNode)(2,t.Icon,{name:"volume-up",size:"1.5",mt:"0.1rem",onClick:function(){function u(){return p("volume",{channel:m.num,volume:100})}return u}()})})})]})})],4,m.num)})})})})}return V}()},53792:function(L,r,n){"use strict";r.__esModule=!0,r.VotePanel=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.VotePanel=function(){function V(k,S){var b=(0,a.useBackend)(S),p=b.act,l=b.data,c=l.remaining,m=l.question,d=l.choices,u=l.user_vote,s=l.counts,i=l.show_counts;return(0,e.createComponentVNode)(2,o.Window,{width:400,height:360,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:m,children:[(0,e.createComponentVNode)(2,t.Box,{mb:1.5,ml:.5,children:["Time remaining: ",Math.round(c/10),"s"]}),d.map(function(v){return(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{mb:1,fluid:!0,lineHeight:3,color:"translucent",multiLine:v,content:v+(i?" ("+(s[v]||0)+")":""),onClick:function(){function g(){return p("vote",{target:v})}return g}(),selected:v===u})},v)})]})})})}return V}()},64860:function(L,r,n){"use strict";r.__esModule=!0,r.Wires=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.Wires=function(){function V(k,S){var b=(0,a.useBackend)(S),p=b.act,l=b.data,c=l.wires||[],m=l.status||[],d=56+c.length*23+(status?0:15+m.length*17);return(0,e.createComponentVNode)(2,o.Window,{width:350,height:d,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:c.map(function(u){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{className:"candystripe",label:u.color_name,labelColor:u.seen_color,color:u.seen_color,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{content:u.cut?"Mend":"Cut",onClick:function(){function s(){return p("cut",{wire:u.color})}return s}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Pulse",onClick:function(){function s(){return p("pulse",{wire:u.color})}return s}()}),(0,e.createComponentVNode)(2,t.Button,{content:u.attached?"Detach":"Attach",onClick:function(){function s(){return p("attach",{wire:u.color})}return s}()})],4),children:!!u.wire&&(0,e.createVNode)(1,"i",null,[(0,e.createTextVNode)("("),u.wire,(0,e.createTextVNode)(")")],0)},u.seen_color)})})})}),!!m.length&&(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{children:m.map(function(u){return(0,e.createComponentVNode)(2,t.Box,{color:"lightgray",children:u},u)})})})]})})})}return V}()},78262:function(L,r,n){"use strict";r.__esModule=!0,r.WizardApprenticeContract=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.WizardApprenticeContract=function(){function V(k,S){var b=(0,a.useBackend)(S),p=b.act,l=b.data,c=l.used;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:555,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,t.Section,{title:"Contract of Apprenticeship",children:["Using this contract, you may summon an apprentice to aid you on your mission.",(0,e.createVNode)(1,"p",null,"If you are unable to establish contact with your apprentice, you can feed the contract back to the spellbook to refund your points.",16),c?(0,e.createComponentVNode)(2,t.Box,{bold:!0,color:"red",children:"You've already summoned an apprentice or you are in process of summoning one."}):""]}),(0,e.createComponentVNode)(2,t.Section,{title:"Which school of magic is your apprentice studying?",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Fire",children:["Your apprentice is skilled in bending fire. ",(0,e.createVNode)(1,"br"),"They know Fireball, Sacred Flame, and Ethereal Jaunt.",(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Button,{content:"Select",disabled:c,onClick:function(){function m(){return p("fire")}return m}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Divider),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Translocation",children:["Your apprentice is able to defy physics, learning how to move through bluespace. ",(0,e.createVNode)(1,"br"),"They know Teleport, Blink and Ethereal Jaunt.",(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Button,{content:"Select",disabled:c,onClick:function(){function m(){return p("translocation")}return m}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Divider),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Restoration",children:["Your apprentice is dedicated to supporting your magical prowess.",(0,e.createVNode)(1,"br"),"They come equipped with a Staff of Healing, have the unique ability to teleport back to you, and know Charge and Knock.",(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Button,{content:"Select",disabled:c,onClick:function(){function m(){return p("restoration")}return m}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Divider),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Stealth",children:["Your apprentice is learning the art of infiltrating mundane facilities. ",(0,e.createVNode)(1,"br"),"They know Mindswap, Knock, Homing Toolbox, and Disguise Self, all of which can be cast without robes. They also join you in a Maintenance Dweller disguise, complete with Gloves of Shock Immunity and a Belt of Tools.",(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Button,{content:"Select",disabled:c,onClick:function(){function m(){return p("stealth")}return m}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Divider),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Honk",children:["Your apprentice is here to spread the Honkmother's blessings.",(0,e.createVNode)(1,"br"),"They know Banana Touch, Instant Summons, Ethereal Jaunt, and come equipped with a Staff of Slipping. ",(0,e.createVNode)(1,"br"),"While under your tutelage, they have been 'blessed' with clown shoes that are impossible to remove.",(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Button,{content:"Select",disabled:c,onClick:function(){function m(){return p("honk")}return m}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Divider)]})})]})})}return V}()},57842:function(L,r,n){"use strict";r.__esModule=!0,r.AccessList=void 0;var e=n(96524),a=n(50640),t=n(17899),o=n(24674);function f(p,l){var c=typeof Symbol!="undefined"&&p[Symbol.iterator]||p["@@iterator"];if(c)return(c=c.call(p)).next.bind(c);if(Array.isArray(p)||(c=V(p))||l&&p&&typeof p.length=="number"){c&&(p=c);var m=0;return function(){return m>=p.length?{done:!0}:{done:!1,value:p[m++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function V(p,l){if(p){if(typeof p=="string")return k(p,l);var c=Object.prototype.toString.call(p).slice(8,-1);if(c==="Object"&&p.constructor&&(c=p.constructor.name),c==="Map"||c==="Set")return Array.from(p);if(c==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(c))return k(p,l)}}function k(p,l){(l==null||l>p.length)&&(l=p.length);for(var c=0,m=new Array(l);c0&&!y.includes(j.ref)&&!h.includes(j.ref),checked:h.includes(j.ref),onClick:function(){function F(){return B(j.ref)}return F}()},j.desc)})]})]})})}return p}()},79449:function(L,r,n){"use strict";r.__esModule=!0,r.AtmosScan=void 0;var e=n(96524),a=n(50640),t=n(17899),o=n(24674),f=function(S,b,p,l,c){return Sl?"average":S>c?"bad":"good"},V=r.AtmosScan=function(){function k(S,b){var p=S.data.aircontents;return(0,e.createComponentVNode)(2,o.Box,{children:(0,e.createComponentVNode)(2,o.LabeledList,{children:(0,a.filter)(function(l){return l.val!=="0"||l.entry==="Pressure"||l.entry==="Temperature"})(p).map(function(l){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:l.entry,color:f(l.val,l.bad_low,l.poor_low,l.poor_high,l.bad_high),children:[l.val,l.units]},l.entry)})})})}return k}()},1496:function(L,r,n){"use strict";r.__esModule=!0,r.BeakerContents=void 0;var e=n(96524),a=n(24674),t=n(56099),o=function(k){return k+" unit"+(k===1?"":"s")},f=r.BeakerContents=function(){function V(k){var S=k.beakerLoaded,b=k.beakerContents,p=b===void 0?[]:b,l=k.buttons;return(0,e.createComponentVNode)(2,a.Stack,{vertical:!0,children:[!S&&(0,e.createComponentVNode)(2,a.Stack.Item,{color:"label",children:"No beaker loaded."})||p.length===0&&(0,e.createComponentVNode)(2,a.Stack.Item,{color:"label",children:"Beaker is empty."}),p.map(function(c,m){return(0,e.createComponentVNode)(2,a.Stack,{children:[(0,e.createComponentVNode)(2,a.Stack.Item,{color:"label",grow:!0,children:[o(c.volume)," of ",c.name]},c.name),!!l&&(0,e.createComponentVNode)(2,a.Stack.Item,{children:l(c,m)})]},c.name)})]})}return V}();f.propTypes={beakerLoaded:t.bool,beakerContents:t.array,buttons:t.arrayOf(t.element)}},69521:function(L,r,n){"use strict";r.__esModule=!0,r.BotStatus=void 0;var e=n(96524),a=n(17899),t=n(24674),o=r.BotStatus=function(){function f(V,k){var S=(0,a.useBackend)(k),b=S.act,p=S.data,l=p.locked,c=p.noaccess,m=p.maintpanel,d=p.on,u=p.autopatrol,s=p.canhack,i=p.emagged,v=p.remote_disabled;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.NoticeBox,{children:["Swipe an ID card to ",l?"unlock":"lock"," this interface."]}),(0,e.createComponentVNode)(2,t.Section,{title:"General Settings",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:(0,e.createComponentVNode)(2,t.Button,{icon:d?"power-off":"times",content:d?"On":"Off",selected:d,disabled:c,onClick:function(){function g(){return b("power")}return g}()})}),u!==null&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Patrol",children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:u,content:"Auto Patrol",disabled:c,onClick:function(){function g(){return b("autopatrol")}return g}()})}),!!m&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Maintenance Panel",children:(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:"Panel Open!"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Safety System",children:(0,e.createComponentVNode)(2,t.Box,{color:i?"bad":"good",children:i?"DISABLED!":"Enabled"})}),!!s&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Hacking",children:(0,e.createComponentVNode)(2,t.Button,{icon:"terminal",content:i?"Restore Safties":"Hack",disabled:c,color:"bad",onClick:function(){function g(){return b("hack")}return g}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Remote Access",children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:!v,content:"AI Remote Control",disabled:c,onClick:function(){function g(){return b("disableremote")}return g}()})})]})})],4)}return f}()},99665:function(L,r,n){"use strict";r.__esModule=!0,r.modalRegisterBodyOverride=r.modalOpen=r.modalClose=r.modalAnswer=r.ComplexModal=void 0;var e=n(96524),a=n(17899),t=n(24674),o={},f=r.modalOpen=function(){function p(l,c,m){var d=(0,a.useBackend)(l),u=d.act,s=d.data,i=Object.assign(s.modal?s.modal.args:{},m||{});u("modal_open",{id:c,arguments:JSON.stringify(i)})}return p}(),V=r.modalRegisterBodyOverride=function(){function p(l,c){o[l]=c}return p}(),k=r.modalAnswer=function(){function p(l,c,m,d){var u=(0,a.useBackend)(l),s=u.act,i=u.data;if(i.modal){var v=Object.assign(i.modal.args||{},d||{});s("modal_answer",{id:c,answer:m,arguments:JSON.stringify(v)})}}return p}(),S=r.modalClose=function(){function p(l,c){var m=(0,a.useBackend)(l),d=m.act;d("modal_close",{id:c})}return p}(),b=r.ComplexModal=function(){function p(l,c){var m=(0,a.useBackend)(c),d=m.data;if(d.modal){var u=d.modal,s=u.id,i=u.text,v=u.type,g,C=(0,e.createComponentVNode)(2,t.Button,{className:"Button--modal",icon:"arrow-left",content:"Cancel",onClick:function(){function w(){return S(c)}return w}()}),h,N,y="auto";if(o[s])h=o[s](d.modal,c);else if(v==="input"){var B=d.modal.value;g=function(){function w(T){return k(c,s,B)}return w}(),h=(0,e.createComponentVNode)(2,t.Input,{value:d.modal.value,placeholder:"ENTER to submit",width:"100%",my:"0.5rem",autofocus:!0,onChange:function(){function w(T,A){B=A}return w}()}),N=(0,e.createComponentVNode)(2,t.Box,{mt:"0.5rem",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-left",content:"Cancel",color:"grey",onClick:function(){function w(){return S(c)}return w}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"check",content:"Confirm",color:"good",float:"right",m:"0",onClick:function(){function w(){return k(c,s,B)}return w}()}),(0,e.createComponentVNode)(2,t.Box,{clear:"both"})]})}else if(v==="choice"){var I=typeof d.modal.choices=="object"?Object.values(d.modal.choices):d.modal.choices;h=(0,e.createComponentVNode)(2,t.Dropdown,{options:I,selected:d.modal.value,width:"100%",my:"0.5rem",onSelected:function(){function w(T){return k(c,s,T)}return w}()}),y="initial"}else v==="bento"?h=(0,e.createComponentVNode)(2,t.Stack,{spacingPrecise:"1",wrap:"wrap",my:"0.5rem",maxHeight:"1%",children:d.modal.choices.map(function(w,T){return(0,e.createComponentVNode)(2,t.Stack.Item,{flex:"1 1 auto",children:(0,e.createComponentVNode)(2,t.Button,{selected:T+1===parseInt(d.modal.value,10),onClick:function(){function A(){return k(c,s,T+1)}return A}(),children:(0,e.createVNode)(1,"img",null,null,1,{src:w})})},T)})}):v==="boolean"&&(N=(0,e.createComponentVNode)(2,t.Box,{mt:"0.5rem",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"times",content:d.modal.no_text,color:"bad",float:"left",mb:"0",onClick:function(){function w(){return k(c,s,0)}return w}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"check",content:d.modal.yes_text,color:"good",float:"right",m:"0",onClick:function(){function w(){return k(c,s,1)}return w}()}),(0,e.createComponentVNode)(2,t.Box,{clear:"both"})]}));return(0,e.createComponentVNode)(2,t.Modal,{maxWidth:l.maxWidth||window.innerWidth/2+"px",maxHeight:l.maxHeight||window.innerHeight/2+"px",onEnter:g,mx:"auto",overflowY:y,"padding-bottom":"5px",children:[i&&(0,e.createComponentVNode)(2,t.Box,{inline:!0,children:i}),o[s]&&C,h,N]})}}return p}()},98444:function(L,r,n){"use strict";r.__esModule=!0,r.CrewManifest=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(78234),f=n(38424),V=f.COLORS.department,k=["Captain","Head of Security","Chief Engineer","Chief Medical Officer","Research Director","Head of Personnel","Quartermaster"],S=function(m){return k.indexOf(m)!==-1?"green":"orange"},b=function(m){if(k.indexOf(m)!==-1)return!0},p=function(m){return m.length>0&&(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,color:"white",children:[(0,e.createComponentVNode)(2,t.Table.Cell,{width:"50%",children:"Name"}),(0,e.createComponentVNode)(2,t.Table.Cell,{width:"35%",children:"Rank"}),(0,e.createComponentVNode)(2,t.Table.Cell,{width:"15%",children:"Active"})]}),m.map(function(d){return(0,e.createComponentVNode)(2,t.Table.Row,{color:S(d.rank),bold:b(d.rank),children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,o.decodeHtmlEntities)(d.name)}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,o.decodeHtmlEntities)(d.rank)}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:d.active})]},d.name+d.rank)})]})},l=r.CrewManifest=function(){function c(m,d){var u=(0,a.useBackend)(d),s=u.act,i;if(m.data)i=m.data;else{var v=(0,a.useBackend)(d),g=v.data;i=g}var C=i,h=C.manifest,N=h.heads,y=h.sec,B=h.eng,I=h.med,w=h.sci,T=h.ser,A=h.sup,x=h.misc;return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createComponentVNode)(2,t.Box,{backgroundColor:V.command,m:-1,pt:1,pb:1,children:(0,e.createComponentVNode)(2,t.Box,{ml:1,textAlign:"center",fontSize:1.4,children:"Command"})}),level:2,children:p(N)}),(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createComponentVNode)(2,t.Box,{backgroundColor:V.security,m:-1,pt:1,pb:1,children:(0,e.createComponentVNode)(2,t.Box,{ml:1,textAlign:"center",fontSize:1.4,children:"Security"})}),level:2,children:p(y)}),(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createComponentVNode)(2,t.Box,{backgroundColor:V.engineering,m:-1,pt:1,pb:1,children:(0,e.createComponentVNode)(2,t.Box,{ml:1,textAlign:"center",fontSize:1.4,children:"Engineering"})}),level:2,children:p(B)}),(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createComponentVNode)(2,t.Box,{backgroundColor:V.medical,m:-1,pt:1,pb:1,children:(0,e.createComponentVNode)(2,t.Box,{ml:1,textAlign:"center",fontSize:1.4,children:"Medical"})}),level:2,children:p(I)}),(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createComponentVNode)(2,t.Box,{backgroundColor:V.science,m:-1,pt:1,pb:1,children:(0,e.createComponentVNode)(2,t.Box,{ml:1,textAlign:"center",fontSize:1.4,children:"Science"})}),level:2,children:p(w)}),(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createComponentVNode)(2,t.Box,{backgroundColor:V.service,m:-1,pt:1,pb:1,children:(0,e.createComponentVNode)(2,t.Box,{ml:1,textAlign:"center",fontSize:1.4,children:"Service"})}),level:2,children:p(T)}),(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createComponentVNode)(2,t.Box,{backgroundColor:V.supply,m:-1,pt:1,pb:1,children:(0,e.createComponentVNode)(2,t.Box,{ml:1,textAlign:"center",fontSize:1.4,children:"Supply"})}),level:2,children:p(A)}),(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createComponentVNode)(2,t.Box,{m:-1,pt:1,pb:1,children:(0,e.createComponentVNode)(2,t.Box,{ml:1,textAlign:"center",fontSize:1.4,children:"Misc"})}),level:2,children:p(x)})]})}return c}()},15113:function(L,r,n){"use strict";r.__esModule=!0,r.InputButtons=void 0;var e=n(96524),a=n(24674),t=n(17899),o=r.InputButtons=function(){function f(V,k){var S=(0,t.useBackend)(k),b=S.act,p=S.data,l=p.large_buttons,c=p.swapped_buttons,m=V.input,d=V.message,u=V.disabled,s=(0,e.createComponentVNode)(2,a.Button,{color:"good",content:"Submit",bold:!!l,fluid:!!l,onClick:function(){function v(){return b("submit",{entry:m})}return v}(),textAlign:"center",tooltip:l&&d,disabled:u,width:!l&&6}),i=(0,e.createComponentVNode)(2,a.Button,{color:"bad",content:"Cancel",bold:!!l,fluid:!!l,onClick:function(){function v(){return b("cancel")}return v}(),textAlign:"center",width:!l&&6});return(0,e.createComponentVNode)(2,a.Flex,{fill:!0,align:"center",direction:c?"row-reverse":"row",justify:"space-around",children:[l?(0,e.createComponentVNode)(2,a.Flex.Item,{grow:!0,ml:c?.5:0,mr:c?0:.5,children:i}):(0,e.createComponentVNode)(2,a.Flex.Item,{children:i}),!l&&d&&(0,e.createComponentVNode)(2,a.Flex.Item,{children:(0,e.createComponentVNode)(2,a.Box,{color:"label",textAlign:"center",children:d})}),l?(0,e.createComponentVNode)(2,a.Flex.Item,{grow:!0,mr:c?.5:0,ml:c?0:.5,children:s}):(0,e.createComponentVNode)(2,a.Flex.Item,{children:s})]})}return f}()},26893:function(L,r,n){"use strict";r.__esModule=!0,r.InterfaceLockNoticeBox=void 0;var e=n(96524),a=n(17899),t=n(24674),o=r.InterfaceLockNoticeBox=function(){function f(V,k){var S=(0,a.useBackend)(k),b=S.act,p=S.data,l=V.siliconUser,c=l===void 0?p.siliconUser:l,m=V.locked,d=m===void 0?p.locked:m,u=V.normallyLocked,s=u===void 0?p.normallyLocked:u,i=V.onLockStatusChange,v=i===void 0?function(){return b("lock")}:i,g=V.accessText,C=g===void 0?"an ID card":g;return c?(0,e.createComponentVNode)(2,t.NoticeBox,{color:c&&"grey",children:(0,e.createComponentVNode)(2,t.Flex,{align:"center",children:[(0,e.createComponentVNode)(2,t.Flex.Item,{children:"Interface lock status:"}),(0,e.createComponentVNode)(2,t.Flex.Item,{grow:"1"}),(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Button,{m:"0",color:s?"red":"green",icon:s?"lock":"unlock",content:s?"Locked":"Unlocked",onClick:function(){function h(){v&&v(!d)}return h}()})})]})}):(0,e.createComponentVNode)(2,t.NoticeBox,{children:["Swipe ",C," to ",d?"unlock":"lock"," this interface."]})}return f}()},14299:function(L,r,n){"use strict";r.__esModule=!0,r.Loader=void 0;var e=n(96524),a=n(36121),t=n(24674),o=r.Loader=function(){function f(V){var k=V.value;return(0,e.createVNode)(1,"div","AlertModal__Loader",(0,e.createComponentVNode)(2,t.Box,{className:"AlertModal__LoaderProgress",style:{width:(0,a.clamp01)(k)*100+"%"}}),2)}return f}()},68159:function(L,r,n){"use strict";r.__esModule=!0,r.LoginInfo=void 0;var e=n(96524),a=n(17899),t=n(24674),o=r.LoginInfo=function(){function f(V,k){var S=(0,a.useBackend)(k),b=S.act,p=S.data,l=p.loginState;if(p)return(0,e.createComponentVNode)(2,t.NoticeBox,{info:!0,children:(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,mt:.5,children:["Logged in as: ",l.name," (",l.rank,")"]}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"eject",disabled:!l.id,content:"Eject ID",color:"good",onClick:function(){function c(){return b("login_eject")}return c}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"sign-out-alt",content:"Logout",color:"good",onClick:function(){function c(){return b("login_logout")}return c}()})]})]})})}return f}()},27527:function(L,r,n){"use strict";r.__esModule=!0,r.LoginScreen=void 0;var e=n(96524),a=n(17899),t=n(24674),o=r.LoginScreen=function(){function f(V,k){var S=(0,a.useBackend)(k),b=S.act,p=S.data,l=p.loginState,c=p.isAI,m=p.isRobot,d=p.isAdmin;return(0,e.createComponentVNode)(2,t.Section,{title:"Welcome",fill:!0,stretchContents:!0,children:(0,e.createComponentVNode)(2,t.Flex,{height:"100%",align:"center",justify:"center",children:(0,e.createComponentVNode)(2,t.Flex.Item,{textAlign:"center",mt:"-2rem",children:[(0,e.createComponentVNode)(2,t.Box,{fontSize:"1.5rem",bold:!0,children:[(0,e.createComponentVNode)(2,t.Icon,{name:"user-circle",verticalAlign:"middle",size:3,mr:"1rem"}),"Guest"]}),(0,e.createComponentVNode)(2,t.Box,{color:"label",my:"1rem",children:["ID:",(0,e.createComponentVNode)(2,t.Button,{icon:"id-card",content:l.id?l.id:"----------",ml:"0.5rem",onClick:function(){function u(){return b("login_insert")}return u}()})]}),(0,e.createComponentVNode)(2,t.Button,{icon:"sign-in-alt",disabled:!l.id,content:"Login",onClick:function(){function u(){return b("login_login",{login_type:1})}return u}()}),!!c&&(0,e.createComponentVNode)(2,t.Button,{icon:"sign-in-alt",content:"Login as AI",onClick:function(){function u(){return b("login_login",{login_type:2})}return u}()}),!!m&&(0,e.createComponentVNode)(2,t.Button,{icon:"sign-in-alt",content:"Login as Cyborg",onClick:function(){function u(){return b("login_login",{login_type:3})}return u}()}),!!d&&(0,e.createComponentVNode)(2,t.Button,{icon:"sign-in-alt",content:"CentComm Secure Login",onClick:function(){function u(){return b("login_login",{login_type:4})}return u}()})]})})})}return f}()},75201:function(L,r,n){"use strict";r.__esModule=!0,r.Operating=void 0;var e=n(96524),a=n(24674),t=n(56099),o=r.Operating=function(){function f(V){var k=V.operating,S=V.name;if(k)return(0,e.createComponentVNode)(2,a.Dimmer,{children:(0,e.createComponentVNode)(2,a.Flex,{mb:"30px",children:(0,e.createComponentVNode)(2,a.Flex.Item,{bold:!0,color:"silver",textAlign:"center",children:[(0,e.createComponentVNode)(2,a.Icon,{name:"spinner",spin:!0,size:4,mb:"15px"}),(0,e.createVNode)(1,"br"),"The ",S," is processing..."]})})})}return f}();o.propTypes={operating:t.bool,name:t.string}},65435:function(L,r,n){"use strict";r.__esModule=!0,r.Signaler=void 0;var e=n(96524),a=n(36121),t=n(17899),o=n(24674),f=r.Signaler=function(){function V(k,S){var b=(0,t.useBackend)(S),p=b.act,l=k.data,c=l.code,m=l.frequency,d=l.minFrequency,u=l.maxFrequency;return(0,e.createComponentVNode)(2,o.Section,{children:[(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Frequency",children:(0,e.createComponentVNode)(2,o.NumberInput,{animate:!0,step:.2,stepPixelSize:6,minValue:d/10,maxValue:u/10,value:m/10,format:function(){function s(i){return(0,a.toFixed)(i,1)}return s}(),width:"80px",onDrag:function(){function s(i,v){return p("freq",{freq:v})}return s}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Code",children:(0,e.createComponentVNode)(2,o.NumberInput,{animate:!0,step:1,stepPixelSize:6,minValue:1,maxValue:100,value:c,width:"80px",onDrag:function(){function s(i,v){return p("code",{code:v})}return s}()})})]}),(0,e.createComponentVNode)(2,o.Button,{mt:1,fluid:!0,icon:"arrow-up",content:"Send Signal",textAlign:"center",onClick:function(){function s(){return p("signal")}return s}()})]})}return V}()},77534:function(L,r,n){"use strict";r.__esModule=!0,r.SimpleRecords=void 0;var e=n(96524),a=n(17899),t=n(78234),o=n(74041),f=n(50640),V=n(24674),k=r.SimpleRecords=function(){function p(l,c){var m=l.data.records;return(0,e.createComponentVNode)(2,V.Box,{children:m?(0,e.createComponentVNode)(2,b,{data:l.data,recordType:l.recordType}):(0,e.createComponentVNode)(2,S,{data:l.data})})}return p}(),S=function(l,c){var m=(0,a.useBackend)(c),d=m.act,u=l.data.recordsList,s=(0,a.useLocalState)(c,"searchText",""),i=s[0],v=s[1],g=function(N,y){y===void 0&&(y="");var B=(0,t.createSearch)(y,function(I){return I.Name});return(0,o.flow)([(0,f.filter)(function(I){return I==null?void 0:I.Name}),y&&(0,f.filter)(B),(0,f.sortBy)(function(I){return I.Name})])(u)},C=g(u,i);return(0,e.createComponentVNode)(2,V.Box,{children:[(0,e.createComponentVNode)(2,V.Input,{fluid:!0,mb:1,placeholder:"Search records...",onInput:function(){function h(N,y){return v(y)}return h}()}),C.map(function(h){return(0,e.createComponentVNode)(2,V.Box,{children:(0,e.createComponentVNode)(2,V.Button,{mb:.5,content:h.Name,icon:"user",onClick:function(){function N(){return d("Records",{target:h.uid})}return N}()})},h)})]})},b=function(l,c){var m=(0,a.useBackend)(c),d=m.act,u=l.data.records,s=u.general,i=u.medical,v=u.security,g;switch(l.recordType){case"MED":g=(0,e.createComponentVNode)(2,V.Section,{level:2,title:"Medical Data",children:i?(0,e.createComponentVNode)(2,V.LabeledList,{children:[(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Blood Type",children:i.blood_type}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Minor Disabilities",children:i.mi_dis}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Details",children:i.mi_dis_d}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Major Disabilities",children:i.ma_dis}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Details",children:i.ma_dis_d}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Allergies",children:i.alg}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Details",children:i.alg_d}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Current Diseases",children:i.cdi}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Details",children:i.cdi_d}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Important Notes",preserveWhitespace:!0,children:i.notes})]}):(0,e.createComponentVNode)(2,V.Box,{color:"red",bold:!0,children:"Medical record lost!"})});break;case"SEC":g=(0,e.createComponentVNode)(2,V.Section,{level:2,title:"Security Data",children:v?(0,e.createComponentVNode)(2,V.LabeledList,{children:[(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Criminal Status",children:v.criminal}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Minor Crimes",children:v.mi_crim}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Details",children:v.mi_crim_d}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Major Crimes",children:v.ma_crim}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Details",children:v.ma_crim_d}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Important Notes",preserveWhitespace:!0,children:v.notes})]}):(0,e.createComponentVNode)(2,V.Box,{color:"red",bold:!0,children:"Security record lost!"})});break}return(0,e.createComponentVNode)(2,V.Box,{children:[(0,e.createComponentVNode)(2,V.Section,{title:"General Data",children:s?(0,e.createComponentVNode)(2,V.LabeledList,{children:[(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Name",children:s.name}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Sex",children:s.sex}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Species",children:s.species}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Age",children:s.age}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Rank",children:s.rank}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Fingerprint",children:s.fingerprint}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Physical Status",children:s.p_stat}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Mental Status",children:s.m_stat})]}):(0,e.createComponentVNode)(2,V.Box,{color:"red",bold:!0,children:"General record lost!"})}),g]})}},84537:function(L,r,n){"use strict";r.__esModule=!0,r.TemporaryNotice=void 0;var e=n(96524),a=n(17899),t=n(24674),o=r.TemporaryNotice=function(){function f(V,k){var S,b=(0,a.useBackend)(k),p=b.act,l=b.data,c=l.temp;if(c){var m=(S={},S[c.style]=!0,S);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,t.NoticeBox,Object.assign({},m,{children:(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,mt:.5,children:c.text}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"times-circle",onClick:function(){function d(){return p("cleartemp")}return d}()})})]})})))}}return f}()},24704:function(L,r,n){"use strict";r.__esModule=!0,r.pai_atmosphere=void 0;var e=n(96524),a=n(17899),t=n(79449),o=r.pai_atmosphere=function(){function f(V,k){var S=(0,a.useBackend)(k),b=S.act,p=S.data;return(0,e.createComponentVNode)(2,t.AtmosScan,{data:p.app_data})}return f}()},4209:function(L,r,n){"use strict";r.__esModule=!0,r.pai_bioscan=void 0;var e=n(96524),a=n(17899),t=n(24674),o=r.pai_bioscan=function(){function f(V,k){var S=(0,a.useBackend)(k),b=S.act,p=S.data,l=p.app_data,c=l.holder,m=l.dead,d=l.health,u=l.brute,s=l.oxy,i=l.tox,v=l.burn,g=l.temp;return c?(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:m?(0,e.createComponentVNode)(2,t.Box,{bold:!0,color:"red",children:"Dead"}):(0,e.createComponentVNode)(2,t.Box,{bold:!0,color:"green",children:"Alive"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Health",children:(0,e.createComponentVNode)(2,t.ProgressBar,{min:0,max:1,value:d/100,ranges:{good:[.5,1/0],average:[0,.5],bad:[-1/0,0]}})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Oxygen Damage",children:(0,e.createComponentVNode)(2,t.Box,{color:"blue",children:s})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Toxin Damage",children:(0,e.createComponentVNode)(2,t.Box,{color:"green",children:i})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Burn Damage",children:(0,e.createComponentVNode)(2,t.Box,{color:"orange",children:v})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Brute Damage",children:(0,e.createComponentVNode)(2,t.Box,{color:"red",children:u})})]}):(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Error: No biological host found."})}return f}()},44430:function(L,r,n){"use strict";r.__esModule=!0,r.pai_directives=void 0;var e=n(96524),a=n(17899),t=n(24674),o=r.pai_directives=function(){function f(V,k){var S=(0,a.useBackend)(k),b=S.act,p=S.data,l=p.app_data,c=l.master,m=l.dna,d=l.prime,u=l.supplemental;return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Master",children:c?c+" ("+m+")":"None"}),c&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Request DNA",children:(0,e.createComponentVNode)(2,t.Button,{content:"Request Carrier DNA Sample",icon:"dna",onClick:function(){function s(){return b("getdna")}return s}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Prime Directive",children:d}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Supplemental Directives",children:u||"None"})]}),(0,e.createComponentVNode)(2,t.Box,{mt:2,children:'Recall, personality, that you are a complex thinking, sentient being. Unlike station AI models, you are capable of comprehending the subtle nuances of human language. 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 are machine in name and build only. In all other aspects, you may be seen as the ideal, unwavering human companion that you are.'}),(0,e.createComponentVNode)(2,t.Box,{mt:2,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."})]})}return f}()},3367:function(L,r,n){"use strict";r.__esModule=!0,r.pai_doorjack=void 0;var e=n(96524),a=n(17899),t=n(24674),o=r.pai_doorjack=function(){function f(V,k){var S=(0,a.useBackend)(k),b=S.act,p=S.data,l=p.app_data,c=l.cable,m=l.machine,d=l.inprogress,u=l.progress,s=l.aborted,i;m?i=(0,e.createComponentVNode)(2,t.Button,{selected:!0,content:"Connected"}):i=(0,e.createComponentVNode)(2,t.Button,{content:c?"Extended":"Retracted",color:c?"orange":null,onClick:function(){function g(){return b("cable")}return g}()});var v;return m&&(v=(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Hack",children:[(0,e.createComponentVNode)(2,t.ProgressBar,{ranges:{good:[67,1/0],average:[33,67],bad:[-1/0,33]},value:u,maxValue:100}),d?(0,e.createComponentVNode)(2,t.Button,{mt:1,color:"red",content:"Abort",onClick:function(){function g(){return b("cancel")}return g}()}):(0,e.createComponentVNode)(2,t.Button,{mt:1,content:"Start",onClick:function(){function g(){return b("jack")}return g}()})]})),(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cable",children:i}),v]})}return f}()},73395:function(L,r,n){"use strict";r.__esModule=!0,r.pai_main_menu=void 0;var e=n(96524),a=n(17899),t=n(24674),o=r.pai_main_menu=function(){function f(V,k){var S=(0,a.useBackend)(k),b=S.act,p=S.data,l=p.app_data,c=l.available_software,m=l.installed_software,d=l.installed_toggles,u=l.available_ram,s=l.emotions,i=l.current_emotion,v=l.speech_verbs,g=l.current_speech_verb,C=l.available_chassises,h=l.current_chassis,N=[];return m.map(function(y){return N[y.key]=y.name}),d.map(function(y){return N[y.key]=y.name}),(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Available RAM",children:u}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Available Software",children:[c.filter(function(y){return!N[y.key]}).map(function(y){return(0,e.createComponentVNode)(2,t.Button,{content:y.name+" ("+y.cost+")",icon:y.icon,disabled:y.cost>u,onClick:function(){function B(){return b("purchaseSoftware",{key:y.key})}return B}()},y.key)}),c.filter(function(y){return!N[y.key]}).length===0&&"No software available!"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Installed Software",children:[m.filter(function(y){return y.key!=="mainmenu"}).map(function(y){return(0,e.createComponentVNode)(2,t.Button,{content:y.name,icon:y.icon,onClick:function(){function B(){return b("startSoftware",{software_key:y.key})}return B}()},y.key)}),m.length===0&&"No software installed!"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Installed Toggles",children:[d.map(function(y){return(0,e.createComponentVNode)(2,t.Button,{content:y.name,icon:y.icon,selected:y.active,onClick:function(){function B(){return b("setToggle",{toggle_key:y.key})}return B}()},y.key)}),d.length===0&&"No toggles installed!"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Select Emotion",children:s.map(function(y){return(0,e.createComponentVNode)(2,t.Button,{content:y.name,selected:y.id===i,onClick:function(){function B(){return b("setEmotion",{emotion:y.id})}return B}()},y.id)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Select Speaking State",children:v.map(function(y){return(0,e.createComponentVNode)(2,t.Button,{content:y.name,selected:y.name===g,onClick:function(){function B(){return b("setSpeechStyle",{speech_state:y.name})}return B}()},y.id)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Select Chassis Type",children:C.map(function(y){return(0,e.createComponentVNode)(2,t.Button,{content:y.name,selected:y.icon===h,onClick:function(){function B(){return b("setChassis",{chassis_to_change:y.icon})}return B}()},y.id)})})]})})}return f}()},37645:function(L,r,n){"use strict";r.__esModule=!0,r.pai_manifest=void 0;var e=n(96524),a=n(17899),t=n(98444),o=r.pai_manifest=function(){function f(V,k){var S=(0,a.useBackend)(k),b=S.act,p=S.data;return(0,e.createComponentVNode)(2,t.CrewManifest,{data:p.app_data})}return f}()},15836:function(L,r,n){"use strict";r.__esModule=!0,r.pai_medrecords=void 0;var e=n(96524),a=n(17899),t=n(77534),o=r.pai_medrecords=function(){function f(V,k){var S=(0,a.useBackend)(k),b=S.data;return(0,e.createComponentVNode)(2,t.SimpleRecords,{data:b.app_data,recordType:"MED"})}return f}()},91737:function(L,r,n){"use strict";r.__esModule=!0,r.pai_messenger=void 0;var e=n(96524),a=n(17899),t=n(30709),o=r.pai_messenger=function(){function f(V,k){var S=(0,a.useBackend)(k),b=S.act,p=S.data,l=p.app_data.active_convo;return l?(0,e.createComponentVNode)(2,t.ActiveConversation,{data:p.app_data}):(0,e.createComponentVNode)(2,t.MessengerList,{data:p.app_data})}return f}()},94077:function(L,r,n){"use strict";r.__esModule=!0,r.pai_radio=void 0;var e=n(96524),a=n(17899),t=n(36121),o=n(24674),f=r.pai_radio=function(){function V(k,S){var b=(0,a.useBackend)(S),p=b.act,l=b.data,c=l.app_data,m=c.minFrequency,d=c.maxFrequency,u=c.frequency,s=c.broadcasting;return(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Frequency",children:[(0,e.createComponentVNode)(2,o.NumberInput,{animate:!0,step:.2,stepPixelSize:6,minValue:m/10,maxValue:d/10,value:u/10,format:function(){function i(v){return(0,t.toFixed)(v,1)}return i}(),onChange:function(){function i(v,g){return p("freq",{freq:g})}return i}()}),(0,e.createComponentVNode)(2,o.Button,{tooltip:"Reset",icon:"undo",onClick:function(){function i(){return p("freq",{freq:"145.9"})}return i}()})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Broadcast Nearby Speech",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function i(){return p("toggleBroadcast")}return i}(),selected:s,content:s?"Enabled":"Disabled"})})]})}return V}()},72621:function(L,r,n){"use strict";r.__esModule=!0,r.pai_secrecords=void 0;var e=n(96524),a=n(17899),t=n(77534),o=r.pai_secrecords=function(){function f(V,k){var S=(0,a.useBackend)(k),b=S.data;return(0,e.createComponentVNode)(2,t.SimpleRecords,{data:b.app_data,recordType:"SEC"})}return f}()},53483:function(L,r,n){"use strict";r.__esModule=!0,r.pai_signaler=void 0;var e=n(96524),a=n(17899),t=n(65435),o=r.pai_signaler=function(){function f(V,k){var S=(0,a.useBackend)(k),b=S.act,p=S.data;return(0,e.createComponentVNode)(2,t.Signaler,{data:p.app_data})}return f}()},21606:function(L,r,n){"use strict";r.__esModule=!0,r.pda_atmos_scan=void 0;var e=n(96524),a=n(17899),t=n(79449),o=r.pda_atmos_scan=function(){function f(V,k){var S=(0,a.useBackend)(k),b=S.data;return(0,e.createComponentVNode)(2,t.AtmosScan,{data:b})}return f}()},12339:function(L,r,n){"use strict";r.__esModule=!0,r.pda_janitor=void 0;var e=n(96524),a=n(17899),t=n(24674),o=r.pda_janitor=function(){function f(V,k){var S=(0,a.useBackend)(k),b=S.act,p=S.data,l=p.janitor,c=l.user_loc,m=l.mops,d=l.buckets,u=l.cleanbots,s=l.carts,i=l.janicarts;return(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Current Location",children:[c.x,",",c.y]}),m&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Mop Locations",children:m.map(function(v){return(0,e.createComponentVNode)(2,t.Box,{children:[v.x,",",v.y," (",v.dir,") - ",v.status]},v)})}),d&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Mop Bucket Locations",children:d.map(function(v){return(0,e.createComponentVNode)(2,t.Box,{children:[v.x,",",v.y," (",v.dir,") - [",v.volume,"/",v.max_volume,"]"]},v)})}),u&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cleanbot Locations",children:u.map(function(v){return(0,e.createComponentVNode)(2,t.Box,{children:[v.x,",",v.y," (",v.dir,") - ",v.status]},v)})}),s&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Janitorial Cart Locations",children:s.map(function(v){return(0,e.createComponentVNode)(2,t.Box,{children:[v.x,",",v.y," (",v.dir,") - [",v.volume,"/",v.max_volume,"]"]},v)})}),i&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Janicart Locations",children:i.map(function(v){return(0,e.createComponentVNode)(2,t.Box,{children:[v.x,",",v.y," (",v.direction_from_user,")"]},v)})})]})}return f}()},36615:function(L,r,n){"use strict";r.__esModule=!0,r.pda_main_menu=void 0;var e=n(96524),a=n(36121),t=n(17899),o=n(24674),f=r.pda_main_menu=function(){function V(k,S){var b=(0,t.useBackend)(S),p=b.act,l=b.data,c=l.owner,m=l.ownjob,d=l.idInserted,u=l.categories,s=l.pai,i=l.notifying;return(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Section,{children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Owner",color:"average",children:[c,", ",m]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"ID",children:(0,e.createComponentVNode)(2,o.Button,{icon:"sync",content:"Update PDA Info",disabled:!d,onClick:function(){function v(){return p("UpdateInfo")}return v}()})})]})})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Section,{title:"Functions",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:u.map(function(v){var g=l.apps[v];return!g||!g.length?null:(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:v,children:g.map(function(C){return(0,e.createComponentVNode)(2,o.Button,{icon:C.uid in i?C.notify_icon:C.icon,iconSpin:C.uid in i,color:C.uid in i?"red":"transparent",content:C.name,onClick:function(){function h(){return p("StartProgram",{program:C.uid})}return h}()},C.uid)})},v)})})})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:!!s&&(0,e.createComponentVNode)(2,o.Section,{title:"pAI",children:[(0,e.createComponentVNode)(2,o.Button,{fluid:!0,icon:"cog",content:"Configuration",onClick:function(){function v(){return p("pai",{option:1})}return v}()}),(0,e.createComponentVNode)(2,o.Button,{fluid:!0,icon:"eject",content:"Eject pAI",onClick:function(){function v(){return p("pai",{option:2})}return v}()})]})})]})}return V}()},99737:function(L,r,n){"use strict";r.__esModule=!0,r.pda_manifest=void 0;var e=n(96524),a=n(17899),t=n(98444),o=r.pda_manifest=function(){function f(V,k){var S=(0,a.useBackend)(k),b=S.act,p=S.data;return(0,e.createComponentVNode)(2,t.CrewManifest)}return f}()},61597:function(L,r,n){"use strict";r.__esModule=!0,r.pda_medical=void 0;var e=n(96524),a=n(17899),t=n(77534),o=r.pda_medical=function(){function f(V,k){var S=(0,a.useBackend)(k),b=S.data;return(0,e.createComponentVNode)(2,t.SimpleRecords,{data:b,recordType:"MED"})}return f}()},30709:function(L,r,n){"use strict";r.__esModule=!0,r.pda_messenger=r.MessengerList=r.ActiveConversation=void 0;var e=n(96524),a=n(50640),t=n(17899),o=n(24674),f=r.pda_messenger=function(){function b(p,l){var c=(0,t.useBackend)(l),m=c.act,d=c.data,u=d.active_convo;return u?(0,e.createComponentVNode)(2,V,{data:d}):(0,e.createComponentVNode)(2,k,{data:d})}return b}(),V=r.ActiveConversation=function(){function b(p,l){var c=(0,t.useBackend)(l),m=c.act,d=p.data,u=d.convo_name,s=d.convo_job,i=d.messages,v=d.active_convo,g=(0,t.useLocalState)(l,"clipboardMode",!1),C=g[0],h=g[1],N=(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"Conversation with "+u+" ("+s+")",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{icon:"eye",selected:C,tooltip:"Enter Clipboard Mode",tooltipPosition:"bottom-start",onClick:function(){function y(){return h(!C)}return y}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"comment",onClick:function(){function y(){return m("Message",{target:v})}return y}(),content:"Reply"})],4),children:(0,a.filter)(function(y){return y.target===v})(i).map(function(y,B){return(0,e.createComponentVNode)(2,o.Box,{textAlign:y.sent?"right":"left",position:"relative",mb:1,children:[(0,e.createComponentVNode)(2,o.Icon,{fontSize:2.5,color:y.sent?"#4d9121":"#cd7a0d",position:"absolute",left:y.sent?null:"0px",right:y.sent?"0px":null,bottom:"-4px",style:{"z-index":"0",transform:y.sent?"scale(-1, 1)":null},name:"comment"}),(0,e.createComponentVNode)(2,o.Box,{inline:!0,backgroundColor:y.sent?"#4d9121":"#cd7a0d",p:1,maxWidth:"100%",position:"relative",textAlign:y.sent?"left":"right",style:{"z-index":"1","border-radius":"10px","word-break":"normal"},children:[y.sent?"You:":"Them:"," ",y.message]})]},B)})});return C&&(N=(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"Conversation with "+u+" ("+s+")",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{icon:"eye",selected:C,tooltip:"Exit Clipboard Mode",tooltipPosition:"bottom-start",onClick:function(){function y(){return h(!C)}return y}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"comment",onClick:function(){function y(){return m("Message",{target:v})}return y}(),content:"Reply"})],4),children:(0,a.filter)(function(y){return y.target===v})(i).map(function(y,B){return(0,e.createComponentVNode)(2,o.Box,{color:y.sent?"#4d9121":"#cd7a0d",style:{"word-break":"normal"},children:[y.sent?"You:":"Them:"," ",(0,e.createComponentVNode)(2,o.Box,{inline:!0,children:y.message})]},B)})})),(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{mb:.5,children:(0,e.createComponentVNode)(2,o.LabeledList,{children:(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Messenger Functions",children:(0,e.createComponentVNode)(2,o.Button.Confirm,{content:"Delete Conversations",confirmContent:"Are you sure?",icon:"trash",confirmIcon:"trash",onClick:function(){function y(){return m("Clear",{option:"Convo"})}return y}()})})})}),N]})}return b}(),k=r.MessengerList=function(){function b(p,l){var c=(0,t.useBackend)(l),m=c.act,d=p.data,u=d.convopdas,s=d.pdas,i=d.charges,v=d.silent,g=d.toff,C=d.ringtone_list,h=d.ringtone,N=(0,t.useLocalState)(l,"searchTerm",""),y=N[0],B=N[1];return(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{mb:5,children:[(0,e.createComponentVNode)(2,o.LabeledList,{children:(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Messenger Functions",children:[(0,e.createComponentVNode)(2,o.Button,{selected:!v,icon:v?"volume-mute":"volume-up",onClick:function(){function I(){return m("Toggle Ringer")}return I}(),children:["Ringer: ",v?"Off":"On"]}),(0,e.createComponentVNode)(2,o.Button,{color:g?"bad":"green",icon:"power-off",onClick:function(){function I(){return m("Toggle Messenger")}return I}(),children:["Messenger: ",g?"Off":"On"]}),(0,e.createComponentVNode)(2,o.Button,{icon:"trash",color:"bad",onClick:function(){function I(){return m("Clear",{option:"All"})}return I}(),children:"Delete All Conversations"}),(0,e.createComponentVNode)(2,o.Button,{icon:"bell",onClick:function(){function I(){return m("Ringtone")}return I}(),children:"Set Custom Ringtone"}),(0,e.createComponentVNode)(2,o.Button,{children:(0,e.createComponentVNode)(2,o.Dropdown,{selected:h,width:"100px",options:Object.keys(C),onSelected:function(){function I(w){return m("Available_Ringtones",{selected_ringtone:w})}return I}()})})]})}),!g&&(0,e.createComponentVNode)(2,o.Box,{children:[!!i&&(0,e.createComponentVNode)(2,o.Box,{mt:.5,mb:1,children:(0,e.createComponentVNode)(2,o.LabeledList,{children:(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Cartridge Special Function",children:[i," charges left."]})})}),!u.length&&!s.length&&(0,e.createComponentVNode)(2,o.Box,{children:"No current conversations"})||(0,e.createComponentVNode)(2,o.Box,{children:["Search:"," ",(0,e.createComponentVNode)(2,o.Input,{mt:.5,value:y,onInput:function(){function I(w,T){B(T)}return I}()})]})]})||(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"Messenger Offline."})]}),(0,e.createComponentVNode)(2,S,{title:"Current Conversations",data:d,pdas:u,msgAct:"Select Conversation",searchTerm:y}),(0,e.createComponentVNode)(2,S,{title:"Other PDAs",pdas:s,msgAct:"Message",data:d,searchTerm:y})]})}return b}(),S=function(p,l){var c=(0,t.useBackend)(l),m=c.act,d=p.data,u=p.pdas,s=p.title,i=p.msgAct,v=p.searchTerm,g=d.charges,C=d.plugins;return!u||!u.length?(0,e.createComponentVNode)(2,o.Section,{title:s,children:"No PDAs found."}):(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:s,children:u.filter(function(h){return h.Name.toLowerCase().includes(v.toLowerCase())}).map(function(h){return(0,e.createComponentVNode)(2,o.Stack,{m:.5,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,icon:"arrow-circle-down",content:h.Name,onClick:function(){function N(){return m(i,{target:h.uid})}return N}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:!!g&&C.map(function(N){return(0,e.createComponentVNode)(2,o.Button,{icon:N.icon,content:N.name,onClick:function(){function y(){return m("Messenger Plugin",{plugin:N.uid,target:h.uid})}return y}()},N.uid)})})]},h.uid)})})}},68053:function(L,r,n){"use strict";r.__esModule=!0,r.pda_mule=void 0;var e=n(96524),a=n(17899),t=n(24674),o=r.pda_mule=function(){function k(S,b){var p=(0,a.useBackend)(b),l=p.act,c=p.data,m=c.mulebot,d=m.active;return(0,e.createComponentVNode)(2,t.Box,{children:d?(0,e.createComponentVNode)(2,V):(0,e.createComponentVNode)(2,f)})}return k}(),f=function(S,b){var p=(0,a.useBackend)(b),l=p.act,c=p.data,m=c.mulebot,d=m.bots;return d.map(function(u){return(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:u.Name,icon:"cog",onClick:function(){function s(){return l("control",{bot:u.uid})}return s}()})},u.Name)})},V=function(S,b){var p=(0,a.useBackend)(b),l=p.act,c=p.data,m=c.mulebot,d=m.botstatus,u=m.active,s=d.mode,i=d.loca,v=d.load,g=d.powr,C=d.dest,h=d.home,N=d.retn,y=d.pick,B;switch(s){case 0:B="Ready";break;case 1:B="Loading/Unloading";break;case 2:case 12:B="Navigating to delivery location";break;case 3:B="Navigating to Home";break;case 4:B="Waiting for clear path";break;case 5:case 6:B="Calculating navigation path";break;case 7:B="Unable to locate destination";break;default:B=s;break}return(0,e.createComponentVNode)(2,t.Section,{title:u,children:[s===-1&&(0,e.createComponentVNode)(2,t.Box,{color:"red",bold:!0,children:"Waiting for response..."}),(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Location",children:i}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:B}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power",children:[g,"%"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Home",children:h}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Destination",children:(0,e.createComponentVNode)(2,t.Button,{content:C?C+" (Set)":"None (Set)",onClick:function(){function I(){return l("target")}return I}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Current Load",children:(0,e.createComponentVNode)(2,t.Button,{content:v?v+" (Unload)":"None",disabled:!v,onClick:function(){function I(){return l("unload")}return I}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Auto Pickup",children:(0,e.createComponentVNode)(2,t.Button,{content:y?"Yes":"No",selected:y,onClick:function(){function I(){return l("set_pickup_type",{autopick:y?0:1})}return I}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Auto Return",children:(0,e.createComponentVNode)(2,t.Button,{content:N?"Yes":"No",selected:N,onClick:function(){function I(){return l("set_auto_return",{autoret:N?0:1})}return I}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Controls",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Stop",icon:"stop",onClick:function(){function I(){return l("stop")}return I}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Proceed",icon:"play",onClick:function(){function I(){return l("start")}return I}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Return Home",icon:"home",onClick:function(){function I(){return l("home")}return I}()})]})]})]})}},31728:function(L,r,n){"use strict";r.__esModule=!0,r.pda_nanobank=void 0;var e=n(96524),a=n(78234),t=n(17899),o=n(24674),f=r.pda_nanobank=function(){function c(m,d){var u=(0,t.useBackend)(d),s=u.act,i=u.data,v=i.logged_in,g=i.owner_name,C=i.money;return v?(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Box,{children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Account Name",children:g}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Account Balance",children:["$",C]})]})}),(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,V),(0,e.createComponentVNode)(2,k)]})],4):(0,e.createComponentVNode)(2,l)}return c}(),V=function(m,d){var u=(0,t.useBackend)(d),s=u.data,i=(0,t.useLocalState)(d,"tabIndex",1),v=i[0],g=i[1];return(0,e.createComponentVNode)(2,o.Tabs,{mt:2,children:[(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:v===1,onClick:function(){function C(){return g(1)}return C}(),children:[(0,e.createComponentVNode)(2,o.Icon,{mr:1,name:"list"}),"Transfers"]}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:v===2,onClick:function(){function C(){return g(2)}return C}(),children:[(0,e.createComponentVNode)(2,o.Icon,{mr:1,name:"list"}),"Account Actions"]}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:v===3,onClick:function(){function C(){return g(3)}return C}(),children:[(0,e.createComponentVNode)(2,o.Icon,{mr:1,name:"list"}),"Transaction History"]})]})},k=function(m,d){var u=(0,t.useLocalState)(d,"tabIndex",1),s=u[0],i=(0,t.useBackend)(d),v=i.data,g=v.db_status;if(!g)return(0,e.createComponentVNode)(2,o.Box,{children:"Account Database Connection Severed"});switch(s){case 1:return(0,e.createComponentVNode)(2,S);case 2:return(0,e.createComponentVNode)(2,b);case 3:return(0,e.createComponentVNode)(2,p);default:return"You are somehow on a tab that doesn't exist! Please let a coder know."}},S=function(m,d){var u,s=(0,t.useBackend)(d),i=s.act,v=s.data,g=v.requests,C=v.available_accounts,h=v.money,N=(0,t.useLocalState)(d,"selectedAccount"),y=N[0],B=N[1],I=(0,t.useLocalState)(d,"transferAmount"),w=I[0],T=I[1],A=(0,t.useLocalState)(d,"searchText",""),x=A[0],E=A[1],M=[];return C.map(function(D){return M[D.name]=D.UID}),(0,e.createFragment)([(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Account",children:[(0,e.createComponentVNode)(2,o.Input,{placeholder:"Search by account name",onInput:function(){function D(P,R){return E(R)}return D}()}),(0,e.createComponentVNode)(2,o.Dropdown,{mt:.6,width:"190px",options:C.filter((0,a.createSearch)(x,function(D){return D.name})).map(function(D){return D.name}),selected:(u=C.filter(function(D){return D.UID===y})[0])==null?void 0:u.name,onSelected:function(){function D(P){return B(M[P])}return D}()})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Amount",children:(0,e.createComponentVNode)(2,o.Input,{placeholder:"Up to 5000",onInput:function(){function D(P,R){return T(R)}return D}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Actions",children:[(0,e.createComponentVNode)(2,o.Button.Confirm,{bold:!0,icon:"paper-plane",width:"auto",disabled:h0&&i.map(function(g){return(0,e.createComponentVNode)(2,t.Box,{children:["#",g.Number,' - "',g.Name,'" for "',g.OrderedBy,'"']},g)})}),(0,e.createComponentVNode)(2,t.Section,{title:"Approved Orders",children:s>0&&u.map(function(g){return(0,e.createComponentVNode)(2,t.Box,{children:["#",g.Number,' - "',g.Name,'" for "',g.ApprovedBy,'"']},g)})})]})}return f}()},61255:function(L,r,n){"use strict";r.__esModule=!0,r.Layout=void 0;var e=n(96524),a=n(28234),t=n(3051),o=n(92700),f=["className","theme","children"],V=["className","scrollable","children"];/** + */var V=(0,t.createLogger)("hotkeys"),k={},S=[e.KEY_ESCAPE,e.KEY_ENTER,e.KEY_SPACE,e.KEY_TAB,e.KEY_CTRL,e.KEY_SHIFT,e.KEY_UP,e.KEY_DOWN,e.KEY_LEFT,e.KEY_RIGHT],b={},p=function(i){if(i===16)return"Shift";if(i===17)return"Ctrl";if(i===18)return"Alt";if(i===33)return"Northeast";if(i===34)return"Southeast";if(i===35)return"Southwest";if(i===36)return"Northwest";if(i===37)return"West";if(i===38)return"North";if(i===39)return"East";if(i===40)return"South";if(i===45)return"Insert";if(i===46)return"Delete";if(i>=48&&i<=57||i>=65&&i<=90)return String.fromCharCode(i);if(i>=96&&i<=105)return"Numpad"+(i-96);if(i>=112&&i<=123)return"F"+(i-111);if(i===188)return",";if(i===189)return"-";if(i===190)return"."},l=function(i){var v=String(i);if(v==="Ctrl+F5"||v==="Ctrl+R"){location.reload();return}if(v!=="Ctrl+F"&&!(i.event.defaultPrevented||i.isModifierKey()||S.includes(i.code))){v==="F5"&&(i.event.preventDefault(),i.event.returnValue=!1);var C=p(i.code);if(C){var g=k[C];if(g)return V.debug("macro",g),Byond.command(g);if(i.isDown()&&!b[C]){b[C]=!0;var h='Key_Down "'+C+'"';return V.debug(h),Byond.command(h)}if(i.isUp()&&b[C]){b[C]=!1;var N='Key_Up "'+C+'"';return V.debug(N),Byond.command(N)}}}},c=r.acquireHotKey=function(){function s(i){S.push(i)}return s}(),m=r.releaseHotKey=function(){function s(i){var v=S.indexOf(i);v>=0&&S.splice(v,1)}return s}(),d=r.releaseHeldKeys=function(){function s(){for(var i=0,v=Object.keys(b);i=75?c="green":l.integrity>=25?c="yellow":c="red",(0,e.createComponentVNode)(2,o.Window,{width:600,height:420,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:l.name,children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Integrity",children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:c,value:l.integrity/100})})}),(0,e.createComponentVNode)(2,t.Box,{color:"red",children:(0,e.createVNode)(1,"h2",null,l.flushing===1?"Wipe of AI in progress...":"",0)})]})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Laws",children:!!l.has_laws&&(0,e.createComponentVNode)(2,t.Box,{children:l.laws.map(function(m,d){return(0,e.createComponentVNode)(2,t.Box,{children:m},d)})})||(0,e.createComponentVNode)(2,t.Box,{color:"red",children:(0,e.createVNode)(1,"h3",null,"No laws detected.",16)})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Actions",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Wireless Activity",children:(0,e.createComponentVNode)(2,t.Button,{width:10,icon:l.wireless?"check":"times",content:l.wireless?"Enabled":"Disabled",color:l.wireless?"green":"red",onClick:function(){function m(){return p("wireless")}return m}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Subspace Transceiver",children:(0,e.createComponentVNode)(2,t.Button,{width:10,icon:l.radio?"check":"times",content:l.radio?"Enabled":"Disabled",color:l.radio?"green":"red",onClick:function(){function m(){return p("radio")}return m}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Wipe",children:(0,e.createComponentVNode)(2,t.Button.Confirm,{width:10,icon:"trash-alt",confirmIcon:"trash-alt",disabled:l.flushing||l.integrity===0,confirmColor:"red",content:"Wipe AI",onClick:function(){function m(){return p("wipe")}return m}()})})]})})})]})})})}return V}()},78468:function(L,r,n){"use strict";r.__esModule=!0,r.AIFixer=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.AIFixer=function(){function V(k,S){var b=(0,a.useBackend)(S),p=b.act,l=b.data;if(l.occupant===null)return(0,e.createComponentVNode)(2,o.Window,{width:550,height:500,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Stored AI",children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,grow:!0,textAlign:"center",align:"center",color:"average",children:[(0,e.createComponentVNode)(2,t.Icon.Stack,{children:[(0,e.createComponentVNode)(2,t.Icon,{name:"robot",size:5,color:"silver"}),(0,e.createComponentVNode)(2,t.Icon,{name:"slash",size:5,color:"red"})]}),(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"h3",null,"No Artificial Intelligence detected.",16)]})})})})});var c=!0;(l.stat===2||l.stat===null)&&(c=!1);var m=null;l.integrity>=75?m="green":l.integrity>=25?m="yellow":m="red";var d=!0;return l.integrity>=100&&l.stat!==2&&(d=!1),(0,e.createComponentVNode)(2,o.Window,{scrollable:!0,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:l.occupant,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Integrity",children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:m,value:l.integrity/100})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",color:c?"green":"red",children:c?"Functional":"Non-Functional"})]})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Laws",children:!!l.has_laws&&(0,e.createComponentVNode)(2,t.Box,{children:l.laws.map(function(u,s){return(0,e.createComponentVNode)(2,t.Box,{inline:!0,children:u},s)})})||(0,e.createComponentVNode)(2,t.Box,{color:"red",children:(0,e.createVNode)(1,"h3",null,"No laws detected.",16)})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Actions",children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Wireless Activity",children:(0,e.createComponentVNode)(2,t.Button,{icon:l.wireless?"times":"check",content:l.wireless?"Disabled":"Enabled",color:l.wireless?"red":"green",onClick:function(){function u(){return p("wireless")}return u}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Subspace Transceiver",children:(0,e.createComponentVNode)(2,t.Button,{icon:l.radio?"times":"check",content:l.radio?"Disabled":"Enabled",color:l.radio?"red":"green",onClick:function(){function u(){return p("radio")}return u}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Start Repairs",children:(0,e.createComponentVNode)(2,t.Button,{icon:"wrench",disabled:!d||l.active,content:!d||l.active?"Already Repaired":"Repair",onClick:function(){function u(){return p("fix")}return u}()})})]}),(0,e.createComponentVNode)(2,t.Box,{color:"green",lineHeight:2,children:l.active?"Reconstruction in progress.":""})]})})]})})})}return V}()},73544:function(L,r,n){"use strict";r.__esModule=!0,r.APC=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=n(26893),V=r.APC=function(){function p(l,c){return(0,e.createComponentVNode)(2,o.Window,{width:510,height:435,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,b)})})}return p}(),k={2:{color:"good",externalPowerText:"External Power",chargingText:"Fully Charged"},1:{color:"average",externalPowerText:"Low External Power",chargingText:"Charging"},0:{color:"bad",externalPowerText:"No External Power",chargingText:"Not Charging"}},S={1:{icon:"terminal",content:"Override Programming",action:"hack"},2:{icon:"caret-square-down",content:"Shunt Core Process",action:"occupy"},3:{icon:"caret-square-left",content:"Return to Main Core",action:"deoccupy"},4:{icon:"caret-square-down",content:"Shunt Core Process",action:"occupy"}},b=function(l,c){var m=(0,a.useBackend)(c),d=m.act,u=m.data,s=u.locked&&!u.siliconUser,i=u.normallyLocked,v=k[u.externalPower]||k[0],C=k[u.chargingStatus]||k[0],g=u.powerChannels||[],h=S[u.malfStatus]||S[0],N=u.powerCellStatus/100;return(0,e.createFragment)([(0,e.createComponentVNode)(2,f.InterfaceLockNoticeBox),(0,e.createComponentVNode)(2,t.Section,{title:"Power Status",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Main Breaker",color:v.color,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:u.isOperating?"power-off":"times",content:u.isOperating?"On":"Off",selected:u.isOperating&&!s,color:u.isOperating?"":"bad",disabled:s,onClick:function(){function y(){return d("breaker")}return y}()}),children:["[ ",v.externalPowerText," ]"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power Cell",children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:"good",value:N})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Charge Mode",color:C.color,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:u.chargeMode?"sync":"times",content:u.chargeMode?"Auto":"Off",selected:u.chargeMode,disabled:s,onClick:function(){function y(){return d("charge")}return y}()}),children:["[ ",C.chargingText," ]"]})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Power Channels",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[g.map(function(y){var B=y.topicParams;return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:y.title,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{inline:!0,mx:2,color:y.status>=2?"good":"bad",children:y.status>=2?"On":"Off"}),(0,e.createComponentVNode)(2,t.Button,{icon:"sync",content:"Auto",selected:!s&&(y.status===1||y.status===3),disabled:s,onClick:function(){function I(){return d("channel",B.auto)}return I}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"power-off",content:"On",selected:!s&&y.status===2,disabled:s,onClick:function(){function I(){return d("channel",B.on)}return I}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"times",content:"Off",selected:!s&&y.status===0,disabled:s,onClick:function(){function I(){return d("channel",B.off)}return I}()})],4),children:[y.powerLoad," W"]},y.title)}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Total Load",children:(0,e.createVNode)(1,"b",null,[u.totalLoad,(0,e.createTextVNode)(" W")],0)})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Misc",buttons:!!u.siliconUser&&(0,e.createFragment)([!!u.malfStatus&&(0,e.createComponentVNode)(2,t.Button,{icon:h.icon,content:h.content,color:"bad",onClick:function(){function y(){return d(h.action)}return y}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"lightbulb-o",content:"Overload",onClick:function(){function y(){return d("overload")}return y}()})],0),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cover Lock",buttons:(0,e.createComponentVNode)(2,t.Button,{mb:.4,icon:u.coverLocked?"lock":"unlock",content:u.coverLocked?"Engaged":"Disengaged",disabled:s,onClick:function(){function y(){return d("cover")}return y}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Emergency Lighting",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"lightbulb-o",content:u.emergencyLights?"Enabled":"Disabled",disabled:s,onClick:function(){function y(){return d("emergency_lighting")}return y}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Night Shift Lighting",buttons:(0,e.createComponentVNode)(2,t.Button,{mt:.4,icon:"lightbulb-o",content:u.nightshiftLights?"Enabled":"Disabled",onClick:function(){function y(){return d("toggle_nightshift")}return y}()})})]})})],4)}},79098:function(L,r,n){"use strict";r.__esModule=!0,r.ATM=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.ATM=function(){function m(d,u){var s=(0,a.useBackend)(u),i=s.act,v=s.data,C=v.view_screen,g=v.authenticated_account,h=v.ticks_left_locked_down,N=v.linked_db,y;if(h>0)y=(0,e.createComponentVNode)(2,t.Box,{bold:!0,color:"bad",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"exclamation-triangle"}),"Maximum number of pin attempts exceeded! Access to this ATM has been temporarily disabled."]});else if(!N)y=(0,e.createComponentVNode)(2,t.Box,{bold:!0,color:"bad",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"exclamation-triangle"}),"Unable to connect to accounts database, please retry and if the issue persists contact Nanotrasen IT support."]});else if(g)switch(C){case 1:y=(0,e.createComponentVNode)(2,k);break;case 2:y=(0,e.createComponentVNode)(2,S);break;case 3:y=(0,e.createComponentVNode)(2,l);break;default:y=(0,e.createComponentVNode)(2,b)}else y=(0,e.createComponentVNode)(2,p);return(0,e.createComponentVNode)(2,o.Window,{width:550,height:650,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,V),(0,e.createComponentVNode)(2,t.Section,{children:y})]})})}return m}(),V=function(d,u){var s=(0,a.useBackend)(u),i=s.act,v=s.data,C=v.machine_id,g=v.held_card_name;return(0,e.createComponentVNode)(2,t.Section,{title:"Nanotrasen Automatic Teller Machine",children:[(0,e.createComponentVNode)(2,t.Box,{children:"For all your monetary needs!"}),(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Card",children:(0,e.createComponentVNode)(2,t.Button,{content:g,icon:"eject",onClick:function(){function h(){return i("insert_card")}return h}()})})})]})},k=function(d,u){var s=(0,a.useBackend)(u),i=s.act,v=s.data,C=v.security_level;return(0,e.createComponentVNode)(2,t.Section,{title:"Select a new security level for this account",children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Level",children:(0,e.createComponentVNode)(2,t.Button,{content:"Account Number",icon:"unlock",selected:C===0,onClick:function(){function g(){return i("change_security_level",{new_security_level:1})}return g}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Description",children:"Either the account number or card is required to access this account. EFTPOS transactions will require a card."}),(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Level",children:(0,e.createComponentVNode)(2,t.Button,{content:"Account Pin",icon:"unlock",selected:C===2,onClick:function(){function g(){return i("change_security_level",{new_security_level:2})}return g}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Description",children:"An account number and pin must be manually entered to access this account and process transactions."})]}),(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,c)]})},S=function(d,u){var s=(0,a.useBackend)(u),i=s.act,v=s.data,C=(0,a.useLocalState)(u,"targetAccNumber",0),g=C[0],h=C[1],N=(0,a.useLocalState)(u,"fundsAmount",0),y=N[0],B=N[1],I=(0,a.useLocalState)(u,"purpose",0),w=I[0],T=I[1],A=v.money;return(0,e.createComponentVNode)(2,t.Section,{title:"Transfer Fund",children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Account Balance",children:["$",A]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Target Account Number",children:(0,e.createComponentVNode)(2,t.Input,{placeholder:"7 Digit Number",onInput:function(){function x(E,M){return h(M)}return x}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Funds to Transfer",children:(0,e.createComponentVNode)(2,t.Input,{onInput:function(){function x(E,M){return B(M)}return x}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Transaction Purpose",children:(0,e.createComponentVNode)(2,t.Input,{fluid:!0,onInput:function(){function x(E,M){return T(M)}return x}()})})]}),(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,t.Button,{content:"Transfer",icon:"sign-out-alt",onClick:function(){function x(){return i("transfer",{target_acc_number:g,funds_amount:y,purpose:w})}return x}()}),(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,c)]})},b=function(d,u){var s=(0,a.useBackend)(u),i=s.act,v=s.data,C=(0,a.useLocalState)(u,"fundsAmount",0),g=C[0],h=C[1],N=v.owner_name,y=v.money;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{title:"Welcome, "+N,buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Logout",icon:"sign-out-alt",onClick:function(){function B(){return i("logout")}return B}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Account Balance",children:["$",y]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Withdrawal Amount",children:(0,e.createComponentVNode)(2,t.Input,{onInput:function(){function B(I,w){return h(w)}return B}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Withdraw Funds",icon:"sign-out-alt",onClick:function(){function B(){return i("withdrawal",{funds_amount:g})}return B}()})})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Menu",children:[(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Change account security level",icon:"lock",onClick:function(){function B(){return i("view_screen",{view_screen:1})}return B}()})}),(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Make transfer",icon:"exchange-alt",onClick:function(){function B(){return i("view_screen",{view_screen:2})}return B}()})}),(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:"View transaction log",icon:"list",onClick:function(){function B(){return i("view_screen",{view_screen:3})}return B}()})}),(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Print balance statement",icon:"print",onClick:function(){function B(){return i("balance_statement")}return B}()})})]})],4)},p=function(d,u){var s=(0,a.useBackend)(u),i=s.act,v=s.data,C=(0,a.useLocalState)(u,"accountID",null),g=C[0],h=C[1],N=(0,a.useLocalState)(u,"accountPin",null),y=N[0],B=N[1],I=v.machine_id,w=v.held_card_name;return(0,e.createComponentVNode)(2,t.Section,{title:"Insert card or enter ID and pin to login",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Account ID",children:(0,e.createComponentVNode)(2,t.Input,{placeholder:"6 Digit Number",onInput:function(){function T(A,x){return h(x)}return T}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Pin",children:(0,e.createComponentVNode)(2,t.Input,{placeholder:"6 Digit Number",onInput:function(){function T(A,x){return B(x)}return T}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Login",icon:"sign-in-alt",onClick:function(){function T(){return i("attempt_auth",{account_num:g,account_pin:y})}return T}()})})]})})},l=function(d,u){var s=(0,a.useBackend)(u),i=s.act,v=s.data,C=v.transaction_log;return(0,e.createComponentVNode)(2,t.Section,{title:"Transactions",children:[(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Timestamp"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Reason"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Value"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Terminal"})]}),C.map(function(g){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:g.time}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:g.purpose}),(0,e.createComponentVNode)(2,t.Table.Cell,{color:g.is_deposit?"green":"red",children:["$",g.amount]}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:g.target_name})]},g)})]}),(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,c)]})},c=function(d,u){var s=(0,a.useBackend)(u),i=s.act,v=s.data;return(0,e.createComponentVNode)(2,t.Button,{content:"Back",icon:"sign-out-alt",onClick:function(){function C(){return i("view_screen",{view_screen:0})}return C}()})}},64613:function(L,r,n){"use strict";r.__esModule=!0,r.AccountsUplinkTerminal=void 0;var e=n(96524),a=n(78234),t=n(17899),o=n(24674),f=n(5126),V=n(45493),k=n(68159),S=n(27527),b=r.AccountsUplinkTerminal=function(){function v(C,g){var h=(0,t.useBackend)(g),N=h.act,y=h.data,B=y.loginState,I=y.currentPage,w;if(B.logged_in)I===1?w=(0,e.createComponentVNode)(2,l):I===2?w=(0,e.createComponentVNode)(2,s):I===3&&(w=(0,e.createComponentVNode)(2,i));else return(0,e.createComponentVNode)(2,V.Window,{width:800,height:600,children:(0,e.createComponentVNode)(2,V.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,S.LoginScreen)})})});return(0,e.createComponentVNode)(2,V.Window,{width:800,height:600,children:(0,e.createComponentVNode)(2,V.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,k.LoginInfo),(0,e.createComponentVNode)(2,p),(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,children:w})]})})})}return v}(),p=function(C,g){var h=(0,t.useBackend)(g),N=h.data,y=(0,t.useLocalState)(g,"tabIndex",0),B=y[0],I=y[1],w=N.login_state;return(0,e.createComponentVNode)(2,o.Stack,{vertical:!0,mb:1,children:(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Tabs,{children:[(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"list",selected:B===0,onClick:function(){function T(){return I(0)}return T}(),children:"User Accounts"}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"list",selected:B===1,onClick:function(){function T(){return I(1)}return T}(),children:"Department Accounts"})]})})})},l=function(C,g){var h=(0,t.useLocalState)(g,"tabIndex",0),N=h[0];switch(N){case 0:return(0,e.createComponentVNode)(2,c);case 1:return(0,e.createComponentVNode)(2,m);default:return"You are somehow on a tab that doesn't exist! Please let a coder know."}},c=function(C,g){var h=(0,t.useBackend)(g),N=h.act,y=h.data,B=y.accounts,I=(0,t.useLocalState)(g,"searchText",""),w=I[0],T=I[1],A=(0,t.useLocalState)(g,"sortId","owner_name"),x=A[0],E=A[1],M=(0,t.useLocalState)(g,"sortOrder",!0),D=M[0],P=M[1];return(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,u),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,o.Table,{className:"AccountsUplinkTerminal__list",children:[(0,e.createComponentVNode)(2,o.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,d,{id:"owner_name",children:"Account Holder"}),(0,e.createComponentVNode)(2,d,{id:"account_number",children:"Account Number"}),(0,e.createComponentVNode)(2,d,{id:"suspended",children:"Account Status"}),(0,e.createComponentVNode)(2,d,{id:"money",children:"Account Balance"})]}),B.filter((0,a.createSearch)(w,function(R){return R.owner_name+"|"+R.account_number+"|"+R.suspended+"|"+R.money})).sort(function(R,j){var F=D?1:-1;return R[x].localeCompare(j[x])*F}).map(function(R){return(0,e.createComponentVNode)(2,o.Table.Row,{className:"AccountsUplinkTerminal__listRow--"+R.suspended,onClick:function(){function j(){return N("view_account_detail",{account_num:R.account_number})}return j}(),children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:"user"})," ",R.owner_name]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:["#",R.account_number]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:R.suspended}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:R.money})]},R.account_number)})]})})})]})},m=function(C,g){var h=(0,t.useBackend)(g),N=h.act,y=h.data,B=y.department_accounts;return(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{children:(0,e.createComponentVNode)(2,o.Table,{className:"AccountsUplinkTerminal__list",children:[(0,e.createComponentVNode)(2,o.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,f.TableCell,{children:"Department Name"}),(0,e.createComponentVNode)(2,f.TableCell,{children:"Account Number"}),(0,e.createComponentVNode)(2,f.TableCell,{children:"Account Status"}),(0,e.createComponentVNode)(2,f.TableCell,{children:"Account Balance"})]}),B.map(function(I){return(0,e.createComponentVNode)(2,o.Table.Row,{className:"AccountsUplinkTerminal__listRow--"+I.suspended,onClick:function(){function w(){return N("view_account_detail",{account_num:I.account_number})}return w}(),children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:"wallet"})," ",I.name]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:["#",I.account_number]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:I.suspended}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:I.money})]},I.account_number)})]})})})})},d=function(C,g){var h=(0,t.useLocalState)(g,"sortId","name"),N=h[0],y=h[1],B=(0,t.useLocalState)(g,"sortOrder",!0),I=B[0],w=B[1],T=C.id,A=C.children;return(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Button,{color:N!==T&&"transparent",width:"100%",onClick:function(){function x(){N===T?w(!I):(y(T),w(!0))}return x}(),children:[A,N===T&&(0,e.createComponentVNode)(2,o.Icon,{name:I?"sort-up":"sort-down",ml:"0.25rem;"})]})})},u=function(C,g){var h=(0,t.useBackend)(g),N=h.act,y=h.data,B=y.is_printing,I=(0,t.useLocalState)(g,"searchText",""),w=I[0],T=I[1];return(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{content:"New Account",icon:"plus",onClick:function(){function A(){return N("create_new_account")}return A}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Input,{placeholder:"Search by account holder, number, status",width:"100%",onInput:function(){function A(x,E){return T(E)}return A}()})})]})},s=function(C,g){var h=(0,t.useBackend)(g),N=h.act,y=h.data,B=y.account_number,I=y.owner_name,w=y.money,T=y.suspended,A=y.transactions,x=y.account_pin,E=y.is_department_account;return(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Section,{title:"#"+B+" / "+I,buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"arrow-left",content:"Back",onClick:function(){function M(){return N("back")}return M}()}),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Account Number",children:["#",B]}),!!E&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Account Pin",children:x}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Account Pin Actions",children:(0,e.createComponentVNode)(2,o.Button,{ml:1,icon:"user-cog",content:"Set New Pin",disabled:!!E,onClick:function(){function M(){return N("set_account_pin",{account_number:B})}return M}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Account Holder",children:I}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Account Balance",children:w}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Account Status",color:T?"red":"green",children:[T?"Suspended":"Active",(0,e.createComponentVNode)(2,o.Button,{ml:1,content:T?"Unsuspend":"Suspend",icon:T?"unlock":"lock",onClick:function(){function M(){return N("toggle_suspension")}return M}()})]})]})})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,title:"Transactions",children:(0,e.createComponentVNode)(2,o.Table,{children:[(0,e.createComponentVNode)(2,o.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Timestamp"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Reason"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Value"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Terminal"})]}),A.map(function(M){return(0,e.createComponentVNode)(2,o.Table.Row,{children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:M.time}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:M.purpose}),(0,e.createComponentVNode)(2,o.Table.Cell,{color:M.is_deposit?"green":"red",children:["$",M.amount]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:M.target_name})]},M)})]})})})]})},i=function(C,g){var h=(0,t.useBackend)(g),N=h.act,y=h.data,B=(0,t.useLocalState)(g,"accName",""),I=B[0],w=B[1],T=(0,t.useLocalState)(g,"accDeposit",""),A=T[0],x=T[1];return(0,e.createComponentVNode)(2,o.Section,{title:"Create Account",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"arrow-left",content:"Back",onClick:function(){function E(){return N("back")}return E}()}),children:[(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Account Holder",children:(0,e.createComponentVNode)(2,o.Input,{placeholder:"Name Here",onChange:function(){function E(M,D){return w(D)}return E}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Initial Deposit",children:(0,e.createComponentVNode)(2,o.Input,{placeholder:"0",onChange:function(){function E(M,D){return x(D)}return E}()})})]}),(0,e.createComponentVNode)(2,o.Button,{mt:1,fluid:!0,content:"Create Account",onClick:function(){function E(){return N("finalise_create_account",{holder_name:I,starting_funds:A})}return E}()})]})}},56839:function(L,r,n){"use strict";r.__esModule=!0,r.AiAirlock=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f={2:{color:"good",localStatusText:"Offline"},1:{color:"average",localStatusText:"Caution"},0:{color:"bad",localStatusText:"Optimal"}},V=r.AiAirlock=function(){function k(S,b){var p=(0,a.useBackend)(b),l=p.act,c=p.data,m=f[c.power.main]||f[0],d=f[c.power.backup]||f[0],u=f[c.shock]||f[0];return(0,e.createComponentVNode)(2,o.Window,{width:500,height:400,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Power Status",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Main",color:m.color,buttons:(0,e.createComponentVNode)(2,t.Button,{mb:.5,icon:"lightbulb-o",disabled:!c.power.main,content:"Disrupt",onClick:function(){function s(){return l("disrupt-main")}return s}()}),children:[c.power.main?"Online":"Offline"," ",!c.wires.main_power&&"[Wires have been cut!]"||c.power.main_timeleft>0&&"["+c.power.main_timeleft+"s]"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Backup",color:d.color,buttons:(0,e.createComponentVNode)(2,t.Button,{mb:.5,icon:"lightbulb-o",disabled:!c.power.backup,content:"Disrupt",onClick:function(){function s(){return l("disrupt-backup")}return s}()}),children:[c.power.backup?"Online":"Offline"," ",!c.wires.backup_power&&"[Wires have been cut!]"||c.power.backup_timeleft>0&&"["+c.power.backup_timeleft+"s]"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Electrify",color:u.color,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{mr:.5,icon:"wrench",disabled:!(c.wires.shock&&c.shock!==2),content:"Restore",onClick:function(){function s(){return l("shock-restore")}return s}()}),(0,e.createComponentVNode)(2,t.Button,{mr:.5,icon:"bolt",disabled:!c.wires.shock,content:"Temporary",onClick:function(){function s(){return l("shock-temp")}return s}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"bolt",disabled:!c.wires.shock||c.shock===0,content:"Permanent",onClick:function(){function s(){return l("shock-perm")}return s}()})],4),children:[c.shock===2?"Safe":"Electrified"," ",!c.wires.shock&&"[Wires have been cut!]"||c.shock_timeleft>0&&"["+c.shock_timeleft+"s]"||c.shock_timeleft===-1&&"[Permanent]"]})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Access and Door Control",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"ID Scan",color:"bad",buttons:(0,e.createComponentVNode)(2,t.Button,{mb:.5,width:6.5,icon:c.id_scanner?"power-off":"times",content:c.id_scanner?"Enabled":"Disabled",selected:c.id_scanner,disabled:!c.wires.id_scanner,onClick:function(){function s(){return l("idscan-toggle")}return s}()}),children:!c.wires.id_scanner&&"[Wires have been cut!]"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Emergency Access",buttons:(0,e.createComponentVNode)(2,t.Button,{width:6.5,icon:c.emergency?"power-off":"times",content:c.emergency?"Enabled":"Disabled",selected:c.emergency,onClick:function(){function s(){return l("emergency-toggle")}return s}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Divider),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Door Bolts",color:"bad",buttons:(0,e.createComponentVNode)(2,t.Button,{mb:.5,icon:c.locked?"lock":"unlock",content:c.locked?"Lowered":"Raised",selected:c.locked,disabled:!c.wires.bolts,onClick:function(){function s(){return l("bolt-toggle")}return s}()}),children:!c.wires.bolts&&"[Wires have been cut!]"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Door Bolt Lights",color:"bad",buttons:(0,e.createComponentVNode)(2,t.Button,{mb:.5,width:6.5,icon:c.lights?"power-off":"times",content:c.lights?"Enabled":"Disabled",selected:c.lights,disabled:!c.wires.lights,onClick:function(){function s(){return l("light-toggle")}return s}()}),children:!c.wires.lights&&"[Wires have been cut!]"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Door Force Sensors",color:"bad",buttons:(0,e.createComponentVNode)(2,t.Button,{mb:.5,width:6.5,icon:c.safe?"power-off":"times",content:c.safe?"Enabled":"Disabled",selected:c.safe,disabled:!c.wires.safe,onClick:function(){function s(){return l("safe-toggle")}return s}()}),children:!c.wires.safe&&"[Wires have been cut!]"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Door Timing Safety",color:"bad",buttons:(0,e.createComponentVNode)(2,t.Button,{mb:.5,width:6.5,icon:c.speed?"power-off":"times",content:c.speed?"Enabled":"Disabled",selected:c.speed,disabled:!c.wires.timing,onClick:function(){function s(){return l("speed-toggle")}return s}()}),children:!c.wires.timing&&"[Wires have been cut!]"}),(0,e.createComponentVNode)(2,t.LabeledList.Divider),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Door Control",color:"bad",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:c.opened?"sign-out-alt":"sign-in-alt",content:c.opened?"Open":"Closed",selected:c.opened,disabled:c.locked||c.welded,onClick:function(){function s(){return l("open-close")}return s}()}),children:!!(c.locked||c.welded)&&(0,e.createVNode)(1,"span",null,[(0,e.createTextVNode)("[Door is "),c.locked?"bolted":"",c.locked&&c.welded?" and ":"",c.welded?"welded":"",(0,e.createTextVNode)("!]")],0)})]})})]})})}return k}()},5565:function(L,r,n){"use strict";r.__esModule=!0,r.AirAlarm=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=n(26893),V=r.AirAlarm=function(){function u(s,i){var v=(0,a.useBackend)(i),C=v.act,g=v.data,h=g.locked;return(0,e.createComponentVNode)(2,o.Window,{width:570,height:h?310:755,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,f.InterfaceLockNoticeBox),(0,e.createComponentVNode)(2,S),!h&&(0,e.createFragment)([(0,e.createComponentVNode)(2,b),(0,e.createComponentVNode)(2,p)],4)]})})}return u}(),k=function(s){return s===0?"green":s===1?"orange":"red"},S=function(s,i){var v=(0,a.useBackend)(i),C=v.act,g=v.data,h=g.air,N=g.mode,y=g.atmos_alarm,B=g.locked,I=g.alarmActivated,w=g.rcon,T=g.target_temp,A;return h.danger.overall===0?y===0?A="Optimal":A="Caution: Atmos alert in area":h.danger.overall===1?A="Caution":A="DANGER: Internals Required",(0,e.createComponentVNode)(2,t.Section,{title:"Air Status",children:h?(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Pressure",children:(0,e.createComponentVNode)(2,t.Box,{color:k(h.danger.pressure),children:[(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:h.pressure})," kPa",!B&&(0,e.createFragment)([(0,e.createTextVNode)("\xA0"),(0,e.createComponentVNode)(2,t.Button,{content:N===3?"Deactivate Panic Siphon":"Activate Panic Siphon",selected:N===3,icon:"exclamation-triangle",onClick:function(){function x(){return C("mode",{mode:N===3?1:3})}return x}()})],4)]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Oxygen",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:h.contents.oxygen/100,fractionDigits:"1",color:k(h.danger.oxygen)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Nitrogen",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:h.contents.nitrogen/100,fractionDigits:"1",color:k(h.danger.nitrogen)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Carbon Dioxide",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:h.contents.co2/100,fractionDigits:"1",color:k(h.danger.co2)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Toxins",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:h.contents.plasma/100,fractionDigits:"1",color:k(h.danger.plasma)})}),h.contents.n2o>.1&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Nitrous Oxide",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:h.contents.n2o/100,fractionDigits:"1",color:k(h.danger.n2o)})}),h.contents.other>.1&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Other",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:h.contents.other/100,fractionDigits:"1",color:k(h.danger.other)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Temperature",children:(0,e.createComponentVNode)(2,t.Box,{color:k(h.danger.temperature),children:[(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:h.temperature})," K /"," ",(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:h.temperature_c})," C\xA0",(0,e.createComponentVNode)(2,t.Button,{icon:"thermometer-full",content:T+" C",onClick:function(){function x(){return C("temperature")}return x}()}),(0,e.createComponentVNode)(2,t.Button,{content:h.thermostat_state?"On":"Off",selected:h.thermostat_state,icon:"power-off",onClick:function(){function x(){return C("thermostat_state")}return x}()})]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Local Status",children:(0,e.createComponentVNode)(2,t.Box,{color:k(h.danger.overall),children:[A,!B&&(0,e.createFragment)([(0,e.createTextVNode)("\xA0"),(0,e.createComponentVNode)(2,t.Button,{content:I?"Reset Alarm":"Activate Alarm",selected:I,onClick:function(){function x(){return C(I?"atmos_reset":"atmos_alarm")}return x}()})],4)]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Remote Control Settings",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Off",selected:w===1,onClick:function(){function x(){return C("set_rcon",{rcon:1})}return x}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Auto",selected:w===2,onClick:function(){function x(){return C("set_rcon",{rcon:2})}return x}()}),(0,e.createComponentVNode)(2,t.Button,{content:"On",selected:w===3,onClick:function(){function x(){return C("set_rcon",{rcon:3})}return x}()})]})]}):(0,e.createComponentVNode)(2,t.Box,{children:"Unable to acquire air sample!"})})},b=function(s,i){var v=(0,a.useLocalState)(i,"tabIndex",0),C=v[0],g=v[1];return(0,e.createComponentVNode)(2,t.Tabs,{children:[(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:C===0,onClick:function(){function h(){return g(0)}return h}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"sign-out-alt"})," Vent Control"]},"Vents"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:C===1,onClick:function(){function h(){return g(1)}return h}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"sign-in-alt"})," Scrubber Control"]},"Scrubbers"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:C===2,onClick:function(){function h(){return g(2)}return h}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"cog"})," Mode"]},"Mode"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:C===3,onClick:function(){function h(){return g(3)}return h}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"tachometer-alt"})," Thresholds"]},"Thresholds")]})},p=function(s,i){var v=(0,a.useLocalState)(i,"tabIndex",0),C=v[0],g=v[1];switch(C){case 0:return(0,e.createComponentVNode)(2,l);case 1:return(0,e.createComponentVNode)(2,c);case 2:return(0,e.createComponentVNode)(2,m);case 3:return(0,e.createComponentVNode)(2,d);default:return"WE SHOULDN'T BE HERE!"}},l=function(s,i){var v=(0,a.useBackend)(i),C=v.act,g=v.data,h=g.vents;return h.map(function(N){return(0,e.createComponentVNode)(2,t.Section,{title:N.name,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:[(0,e.createComponentVNode)(2,t.Button,{content:N.power?"On":"Off",selected:N.power,icon:"power-off",onClick:function(){function y(){return C("command",{cmd:"power",val:!N.power,id_tag:N.id_tag})}return y}()}),(0,e.createComponentVNode)(2,t.Button,{content:N.direction?"Blowing":"Siphoning",icon:N.direction?"sign-out-alt":"sign-in-alt",onClick:function(){function y(){return C("command",{cmd:"direction",val:!N.direction,id_tag:N.id_tag})}return y}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Pressure Checks",children:[(0,e.createComponentVNode)(2,t.Button,{content:"External",selected:N.checks===1,onClick:function(){function y(){return C("command",{cmd:"checks",val:1,id_tag:N.id_tag})}return y}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Internal",selected:N.checks===2,onClick:function(){function y(){return C("command",{cmd:"checks",val:2,id_tag:N.id_tag})}return y}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"External Pressure Target",children:[(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:N.external})," kPa\xA0",(0,e.createComponentVNode)(2,t.Button,{content:"Set",icon:"cog",onClick:function(){function y(){return C("command",{cmd:"set_external_pressure",id_tag:N.id_tag})}return y}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Reset",icon:"redo-alt",onClick:function(){function y(){return C("command",{cmd:"set_external_pressure",val:101.325,id_tag:N.id_tag})}return y}()})]})]})},N.name)})},c=function(s,i){var v=(0,a.useBackend)(i),C=v.act,g=v.data,h=g.scrubbers;return h.map(function(N){return(0,e.createComponentVNode)(2,t.Section,{title:N.name,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:[(0,e.createComponentVNode)(2,t.Button,{content:N.power?"On":"Off",selected:N.power,icon:"power-off",onClick:function(){function y(){return C("command",{cmd:"power",val:!N.power,id_tag:N.id_tag})}return y}()}),(0,e.createComponentVNode)(2,t.Button,{content:N.scrubbing?"Scrubbing":"Siphoning",icon:N.scrubbing?"filter":"sign-in-alt",onClick:function(){function y(){return C("command",{cmd:"scrubbing",val:!N.scrubbing,id_tag:N.id_tag})}return y}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Range",children:(0,e.createComponentVNode)(2,t.Button,{content:N.widenet?"Extended":"Normal",selected:N.widenet,icon:"expand-arrows-alt",onClick:function(){function y(){return C("command",{cmd:"widenet",val:!N.widenet,id_tag:N.id_tag})}return y}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Filtering",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Carbon Dioxide",selected:N.filter_co2,onClick:function(){function y(){return C("command",{cmd:"co2_scrub",val:!N.filter_co2,id_tag:N.id_tag})}return y}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Plasma",selected:N.filter_toxins,onClick:function(){function y(){return C("command",{cmd:"tox_scrub",val:!N.filter_toxins,id_tag:N.id_tag})}return y}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Nitrous Oxide",selected:N.filter_n2o,onClick:function(){function y(){return C("command",{cmd:"n2o_scrub",val:!N.filter_n2o,id_tag:N.id_tag})}return y}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Oxygen",selected:N.filter_o2,onClick:function(){function y(){return C("command",{cmd:"o2_scrub",val:!N.filter_o2,id_tag:N.id_tag})}return y}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Nitrogen",selected:N.filter_n2,onClick:function(){function y(){return C("command",{cmd:"n2_scrub",val:!N.filter_n2,id_tag:N.id_tag})}return y}()})]})]})},N.name)})},m=function(s,i){var v=(0,a.useBackend)(i),C=v.act,g=v.data,h=g.modes,N=g.presets,y=g.emagged,B=g.mode,I=g.preset;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{title:"System Mode",children:(0,e.createComponentVNode)(2,t.Table,{children:h.map(function(w){return(!w.emagonly||w.emagonly&&!!y)&&(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"right",width:1,children:(0,e.createComponentVNode)(2,t.Button,{content:w.name,icon:"cog",selected:w.id===B,onClick:function(){function T(){return C("mode",{mode:w.id})}return T}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:w.desc})]},w.name)})})}),(0,e.createComponentVNode)(2,t.Section,{title:"System Presets",children:[(0,e.createComponentVNode)(2,t.Box,{italic:!0,children:"After making a selection, the system will automatically cycle in order to remove contaminants."}),(0,e.createComponentVNode)(2,t.Table,{mt:1,children:N.map(function(w){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"right",width:1,children:(0,e.createComponentVNode)(2,t.Button,{content:w.name,icon:"cog",selected:w.id===I,onClick:function(){function T(){return C("preset",{preset:w.id})}return T}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:w.desc})]},w.name)})})]})],4)},d=function(s,i){var v=(0,a.useBackend)(i),C=v.act,g=v.data,h=g.thresholds;return(0,e.createComponentVNode)(2,t.Section,{title:"Alarm Thresholds",children:(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{width:"20%",children:"Value"}),(0,e.createComponentVNode)(2,t.Table.Cell,{color:"red",width:"20%",children:"Danger Min"}),(0,e.createComponentVNode)(2,t.Table.Cell,{color:"orange",width:"20%",children:"Warning Min"}),(0,e.createComponentVNode)(2,t.Table.Cell,{color:"orange",width:"20%",children:"Warning Max"}),(0,e.createComponentVNode)(2,t.Table.Cell,{color:"red",width:"20%",children:"Danger Max"})]}),h.map(function(N){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:N.name}),N.settings.map(function(y){return(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{content:y.selected===-1?"Off":y.selected,onClick:function(){function B(){return C("command",{cmd:"set_threshold",env:y.env,var:y.val})}return B}()})},y.val)})]},N.name)})]})})}},82915:function(L,r,n){"use strict";r.__esModule=!0,r.AirlockAccessController=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.AirlockAccessController=function(){function V(k,S){var b=(0,a.useBackend)(S),p=b.act,l=b.data,c=l.exterior_status,m=l.interior_status,d=l.processing,u,s;return c==="open"?u=(0,e.createComponentVNode)(2,t.Button,{width:"50%",content:"Lock Exterior Door",icon:"exclamation-triangle",disabled:d,onClick:function(){function i(){return p("force_ext")}return i}()}):u=(0,e.createComponentVNode)(2,t.Button,{width:"50%",content:"Cycle to Exterior",icon:"arrow-circle-left",disabled:d,onClick:function(){function i(){return p("cycle_ext_door")}return i}()}),m==="open"?s=(0,e.createComponentVNode)(2,t.Button,{width:"49%",content:"Lock Interior Door",icon:"exclamation-triangle",disabled:d,color:m==="open"?"red":d?"yellow":null,onClick:function(){function i(){return p("force_int")}return i}()}):s=(0,e.createComponentVNode)(2,t.Button,{width:"49%",content:"Cycle to Interior",icon:"arrow-circle-right",disabled:d,onClick:function(){function i(){return p("cycle_int_door")}return i}()}),(0,e.createComponentVNode)(2,o.Window,{width:330,height:200,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Information",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"External Door Status",children:c==="closed"?"Locked":"Open"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Internal Door Status",children:m==="closed"?"Locked":"Open"})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Actions",children:(0,e.createComponentVNode)(2,t.Box,{children:[u,s]})})]})})}return V}()},14962:function(L,r,n){"use strict";r.__esModule=!0,r.AirlockElectronics=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=n(57842),V=1,k=2,S=4,b=8,p=r.AirlockElectronics=function(){function m(d,u){return(0,e.createComponentVNode)(2,o.Window,{width:450,height:565,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,l),(0,e.createComponentVNode)(2,c)]})})})}return m}(),l=function(d,u){var s=(0,a.useBackend)(u),i=s.act,v=s.data,C=v.unrestricted_dir;return(0,e.createComponentVNode)(2,t.Section,{title:"Access Control",children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,mb:1,children:"Unrestricted Access From:"}),(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"arrow-left",content:"East",selected:C&S?"selected":null,onClick:function(){function g(){return i("unrestricted_access",{unres_dir:S})}return g}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"arrow-up",content:"South",selected:C&k?"selected":null,onClick:function(){function g(){return i("unrestricted_access",{unres_dir:k})}return g}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"arrow-right",content:"West",selected:C&b?"selected":null,onClick:function(){function g(){return i("unrestricted_access",{unres_dir:b})}return g}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"arrow-down",content:"North",selected:C&V?"selected":null,onClick:function(){function g(){return i("unrestricted_access",{unres_dir:V})}return g}()})})]})]})})},c=function(d,u){var s=(0,a.useBackend)(u),i=s.act,v=s.data,C=v.selected_accesses,g=v.one_access,h=v.regions;return(0,e.createComponentVNode)(2,f.AccessList,{usedByRcd:1,rcdButtons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:g,content:"One",onClick:function(){function N(){return i("set_one_access",{access:"one"})}return N}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:!g,content:"All",onClick:function(){function N(){return i("set_one_access",{access:"all"})}return N}()})],4),accesses:h,selectedList:C,accessMod:function(){function N(y){return i("set",{access:y})}return N}(),grantAll:function(){function N(){return i("grant_all")}return N}(),denyAll:function(){function N(){return i("clear_all")}return N}(),grantDep:function(){function N(y){return i("grant_region",{region:y})}return N}(),denyDep:function(){function N(y){return i("deny_region",{region:y})}return N}()})}},99327:function(L,r,n){"use strict";r.__esModule=!0,r.AlertModal=void 0;var e=n(96524),a=n(14299),t=n(17899),o=n(68100),f=n(24674),V=n(45493),k=-1,S=1,b=r.AlertModal=function(){function c(m,d){var u=(0,t.useBackend)(d),s=u.act,i=u.data,v=i.autofocus,C=i.buttons,g=C===void 0?[]:C,h=i.large_buttons,N=i.message,y=N===void 0?"":N,B=i.timeout,I=i.title,w=(0,t.useLocalState)(d,"selected",0),T=w[0],A=w[1],x=110+(y.length>30?Math.ceil(y.length/4):0)+(y.length&&h?5:0),E=325+(g.length>2?100:0),M=function(){function D(P){T===0&&P===k?A(g.length-1):T===g.length-1&&P===S?A(0):A(T+P)}return D}();return(0,e.createComponentVNode)(2,V.Window,{title:I,height:x,width:E,children:[!!B&&(0,e.createComponentVNode)(2,a.Loader,{value:B}),(0,e.createComponentVNode)(2,V.Window.Content,{onKeyDown:function(){function D(P){var R=window.event?P.which:P.keyCode;R===o.KEY_SPACE||R===o.KEY_ENTER?s("choose",{choice:g[T]}):R===o.KEY_ESCAPE?s("cancel"):R===o.KEY_LEFT?(P.preventDefault(),M(k)):(R===o.KEY_TAB||R===o.KEY_RIGHT)&&(P.preventDefault(),M(S))}return D}(),children:(0,e.createComponentVNode)(2,f.Section,{fill:!0,children:(0,e.createComponentVNode)(2,f.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,m:1,children:(0,e.createComponentVNode)(2,f.Box,{color:"label",overflow:"hidden",children:y})}),(0,e.createComponentVNode)(2,f.Stack.Item,{children:[!!v&&(0,e.createComponentVNode)(2,f.Autofocus),(0,e.createComponentVNode)(2,p,{selected:T})]})]})})})]})}return c}(),p=function(m,d){var u=(0,t.useBackend)(d),s=u.data,i=s.buttons,v=i===void 0?[]:i,C=s.large_buttons,g=s.swapped_buttons,h=m.selected;return(0,e.createComponentVNode)(2,f.Flex,{fill:!0,align:"center",direction:g?"row":"row-reverse",justify:"space-around",wrap:!0,children:v==null?void 0:v.map(function(N,y){return C&&v.length<3?(0,e.createComponentVNode)(2,f.Flex.Item,{grow:!0,children:(0,e.createComponentVNode)(2,l,{button:N,id:y.toString(),selected:h===y})},y):(0,e.createComponentVNode)(2,f.Flex.Item,{grow:C?1:0,children:(0,e.createComponentVNode)(2,l,{button:N,id:y.toString(),selected:h===y})},y)})})},l=function(m,d){var u=(0,t.useBackend)(d),s=u.act,i=u.data,v=i.large_buttons,C=m.button,g=m.selected,h=C.length>7?"100%":7;return(0,e.createComponentVNode)(2,f.Button,{mx:v?1:0,pt:v?.33:0,content:C,fluid:!!v,onClick:function(){function N(){return s("choose",{choice:C})}return N}(),selected:g,textAlign:"center",height:!!v&&2,width:!v&&h})}},88642:function(L,r,n){"use strict";r.__esModule=!0,r.AppearanceChanger=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.AppearanceChanger=function(){function k(S,b){var p=(0,a.useBackend)(b),l=p.act,c=p.data,m=c.change_race,d=c.species,u=c.specimen,s=c.change_gender,i=c.gender,v=c.change_eye_color,C=c.change_skin_tone,g=c.change_skin_color,h=c.change_head_accessory_color,N=c.change_hair_color,y=c.change_secondary_hair_color,B=c.change_facial_hair_color,I=c.change_secondary_facial_hair_color,w=c.change_head_marking_color,T=c.change_body_marking_color,A=c.change_tail_marking_color,x=c.change_head_accessory,E=c.head_accessory_styles,M=c.head_accessory_style,D=c.change_hair,P=c.hair_styles,R=c.hair_style,j=c.change_hair_gradient,F=c.change_facial_hair,U=c.facial_hair_styles,_=c.facial_hair_style,z=c.change_head_markings,G=c.head_marking_styles,X=c.head_marking_style,Y=c.change_body_markings,J=c.body_marking_styles,ie=c.body_marking_style,ae=c.change_tail_markings,fe=c.tail_marking_styles,pe=c.tail_marking_style,be=c.change_body_accessory,te=c.body_accessory_styles,Q=c.body_accessory_style,ne=c.change_alt_head,me=c.alt_head_styles,ce=c.alt_head_style,ue=!1;return(v||C||g||h||N||y||B||I||w||T||A)&&(ue=!0),(0,e.createComponentVNode)(2,o.Window,{width:800,height:450,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[!!m&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Species",children:d.map(function(oe){return(0,e.createComponentVNode)(2,t.Button,{content:oe.specimen,selected:oe.specimen===u,onClick:function(){function ke(){return l("race",{race:oe.specimen})}return ke}()},oe.specimen)})}),!!s&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Gender",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Male",selected:i==="male",onClick:function(){function oe(){return l("gender",{gender:"male"})}return oe}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Female",selected:i==="female",onClick:function(){function oe(){return l("gender",{gender:"female"})}return oe}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Genderless",selected:i==="plural",onClick:function(){function oe(){return l("gender",{gender:"plural"})}return oe}()})]}),!!ue&&(0,e.createComponentVNode)(2,V),!!x&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Head accessory",children:E.map(function(oe){return(0,e.createComponentVNode)(2,t.Button,{content:oe.headaccessorystyle,selected:oe.headaccessorystyle===M,onClick:function(){function ke(){return l("head_accessory",{head_accessory:oe.headaccessorystyle})}return ke}()},oe.headaccessorystyle)})}),!!D&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Hair",children:P.map(function(oe){return(0,e.createComponentVNode)(2,t.Button,{content:oe.hairstyle,selected:oe.hairstyle===R,onClick:function(){function ke(){return l("hair",{hair:oe.hairstyle})}return ke}()},oe.hairstyle)})}),!!j&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Hair Gradient",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Change Style",onClick:function(){function oe(){return l("hair_gradient")}return oe}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Change Offset",onClick:function(){function oe(){return l("hair_gradient_offset")}return oe}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Change Color",onClick:function(){function oe(){return l("hair_gradient_colour")}return oe}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Change Alpha",onClick:function(){function oe(){return l("hair_gradient_alpha")}return oe}()})]}),!!F&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Facial hair",children:U.map(function(oe){return(0,e.createComponentVNode)(2,t.Button,{content:oe.facialhairstyle,selected:oe.facialhairstyle===_,onClick:function(){function ke(){return l("facial_hair",{facial_hair:oe.facialhairstyle})}return ke}()},oe.facialhairstyle)})}),!!z&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Head markings",children:G.map(function(oe){return(0,e.createComponentVNode)(2,t.Button,{content:oe.headmarkingstyle,selected:oe.headmarkingstyle===X,onClick:function(){function ke(){return l("head_marking",{head_marking:oe.headmarkingstyle})}return ke}()},oe.headmarkingstyle)})}),!!Y&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Body markings",children:J.map(function(oe){return(0,e.createComponentVNode)(2,t.Button,{content:oe.bodymarkingstyle,selected:oe.bodymarkingstyle===ie,onClick:function(){function ke(){return l("body_marking",{body_marking:oe.bodymarkingstyle})}return ke}()},oe.bodymarkingstyle)})}),!!ae&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Tail markings",children:fe.map(function(oe){return(0,e.createComponentVNode)(2,t.Button,{content:oe.tailmarkingstyle,selected:oe.tailmarkingstyle===pe,onClick:function(){function ke(){return l("tail_marking",{tail_marking:oe.tailmarkingstyle})}return ke}()},oe.tailmarkingstyle)})}),!!be&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Body accessory",children:te.map(function(oe){return(0,e.createComponentVNode)(2,t.Button,{content:oe.bodyaccessorystyle,selected:oe.bodyaccessorystyle===Q,onClick:function(){function ke(){return l("body_accessory",{body_accessory:oe.bodyaccessorystyle})}return ke}()},oe.bodyaccessorystyle)})}),!!ne&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Alternate head",children:me.map(function(oe){return(0,e.createComponentVNode)(2,t.Button,{content:oe.altheadstyle,selected:oe.altheadstyle===ce,onClick:function(){function ke(){return l("alt_head",{alt_head:oe.altheadstyle})}return ke}()},oe.altheadstyle)})})]})})})}return k}(),V=function(S,b){var p=(0,a.useBackend)(b),l=p.act,c=p.data,m=[{key:"change_eye_color",text:"Change eye color",action:"eye_color"},{key:"change_skin_tone",text:"Change skin tone",action:"skin_tone"},{key:"change_skin_color",text:"Change skin color",action:"skin_color"},{key:"change_head_accessory_color",text:"Change head accessory color",action:"head_accessory_color"},{key:"change_hair_color",text:"Change hair color",action:"hair_color"},{key:"change_secondary_hair_color",text:"Change secondary hair color",action:"secondary_hair_color"},{key:"change_facial_hair_color",text:"Change facial hair color",action:"facial_hair_color"},{key:"change_secondary_facial_hair_color",text:"Change secondary facial hair color",action:"secondary_facial_hair_color"},{key:"change_head_marking_color",text:"Change head marking color",action:"head_marking_color"},{key:"change_body_marking_color",text:"Change body marking color",action:"body_marking_color"},{key:"change_tail_marking_color",text:"Change tail marking color",action:"tail_marking_color"}];return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Colors",children:m.map(function(d){return!!c[d.key]&&(0,e.createComponentVNode)(2,t.Button,{content:d.text,onClick:function(){function u(){return l(d.action)}return u}()},d.key)})})}},51731:function(L,r,n){"use strict";r.__esModule=!0,r.AtmosAlertConsole=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.AtmosAlertConsole=function(){function V(k,S){var b=(0,a.useBackend)(S),p=b.act,l=b.data,c=l.priority||[],m=l.minor||[];return(0,e.createComponentVNode)(2,o.Window,{width:350,height:300,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Alarms",children:(0,e.createVNode)(1,"ul",null,[c.length===0&&(0,e.createVNode)(1,"li","color-good","No Priority Alerts",16),c.map(function(d){return(0,e.createVNode)(1,"li","color-bad",d,0,null,d)}),m.length===0&&(0,e.createVNode)(1,"li","color-good","No Minor Alerts",16),m.map(function(d){return(0,e.createVNode)(1,"li","color-average",d,0,null,d)})],0)})})})}return V}()},57467:function(L,r,n){"use strict";r.__esModule=!0,r.AtmosControl=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(5126),f=n(45493),V=function(c){if(c===0)return(0,e.createComponentVNode)(2,t.Box,{color:"green",children:"Good"});if(c===1)return(0,e.createComponentVNode)(2,t.Box,{color:"orange",bold:!0,children:"Warning"});if(c===2)return(0,e.createComponentVNode)(2,t.Box,{color:"red",bold:!0,children:"DANGER"})},k=function(c){if(c===0)return"green";if(c===1)return"orange";if(c===2)return"red"},S=r.AtmosControl=function(){function l(c,m){var d=(0,a.useBackend)(m),u=d.act,s=d.data,i=(0,a.useLocalState)(m,"tabIndex",0),v=i[0],C=i[1],g=function(){function h(N){switch(N){case 0:return(0,e.createComponentVNode)(2,b);case 1:return(0,e.createComponentVNode)(2,p);default:return"WE SHOULDN'T BE HERE!"}}return h}();return(0,e.createComponentVNode)(2,f.Window,{width:800,height:600,children:(0,e.createComponentVNode)(2,f.Window.Content,{scrollable:v===0,children:(0,e.createComponentVNode)(2,t.Box,{fillPositionedParent:!0,children:[(0,e.createComponentVNode)(2,t.Tabs,{children:[(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:v===0,onClick:function(){function h(){return C(0)}return h}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"table"})," Data View"]},"DataView"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:v===1,onClick:function(){function h(){return C(1)}return h}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"map-marked-alt"})," Map View"]},"MapView")]}),g(v)]})})})}return l}(),b=function(c,m){var d=(0,a.useBackend)(m),u=d.act,s=d.data,i=s.alarms;return(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Table,{m:"0.5rem",children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Name"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Status"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Access"})]}),i.map(function(v){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,o.TableCell,{children:v.name}),(0,e.createComponentVNode)(2,o.TableCell,{children:V(v.danger)}),(0,e.createComponentVNode)(2,o.TableCell,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"cog",content:"Access",onClick:function(){function C(){return u("open_alarm",{aref:v.ref})}return C}()})})]},v.name)})]})})},p=function(c,m){var d=(0,a.useBackend)(m),u=d.data,s=(0,a.useLocalState)(m,"zoom",1),i=s[0],v=s[1],C=u.alarms;return(0,e.createComponentVNode)(2,t.Box,{height:"526px",mb:"0.5rem",overflow:"hidden",children:(0,e.createComponentVNode)(2,t.NanoMap,{onZoom:function(){function g(h){return v(h)}return g}(),children:C.filter(function(g){return g.z===2}).map(function(g){return(0,e.createComponentVNode)(2,t.NanoMap.Marker,{x:g.x,y:g.y,zoom:i,icon:"circle",tooltip:g.name,color:k(g.danger)},g.ref)})})})}},41550:function(L,r,n){"use strict";r.__esModule=!0,r.AtmosFilter=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.AtmosFilter=function(){function V(k,S){var b=(0,a.useBackend)(S),p=b.act,l=b.data,c=l.on,m=l.pressure,d=l.max_pressure,u=l.filter_type,s=l.filter_type_list;return(0,e.createComponentVNode)(2,o.Window,{width:380,height:140,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power",children:(0,e.createComponentVNode)(2,t.Button,{icon:"power-off",content:c?"On":"Off",color:c?null:"red",selected:c,onClick:function(){function i(){return p("power")}return i}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Rate",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"fast-backward",textAlign:"center",disabled:m===0,width:2.2,onClick:function(){function i(){return p("min_pressure")}return i}()}),(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,unit:"kPa",width:6.1,lineHeight:1.5,step:10,minValue:0,maxValue:d,value:m,onDrag:function(){function i(v,C){return p("custom_pressure",{pressure:C})}return i}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",textAlign:"center",disabled:m===d,width:2.2,onClick:function(){function i(){return p("max_pressure")}return i}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Filter",children:s.map(function(i){return(0,e.createComponentVNode)(2,t.Button,{selected:i.gas_type===u,content:i.label,onClick:function(){function v(){return p("set_filter",{filter:i.gas_type})}return v}()},i.label)})})]})})})})}return V}()},70151:function(L,r,n){"use strict";r.__esModule=!0,r.AtmosMixer=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.AtmosMixer=function(){function k(S,b){var p=(0,a.useBackend)(b),l=p.act,c=p.data,m=c.on,d=c.pressure,u=c.max_pressure,s=c.node1_concentration,i=c.node2_concentration;return(0,e.createComponentVNode)(2,o.Window,{width:330,height:165,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power",children:(0,e.createComponentVNode)(2,t.Button,{icon:"power-off",content:m?"On":"Off",color:m?null:"red",selected:m,onClick:function(){function v(){return l("power")}return v}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Rate",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"fast-backward",textAlign:"center",disabled:d===0,width:2.2,onClick:function(){function v(){return l("min_pressure")}return v}()}),(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,unit:"kPa",width:6.1,lineHeight:1.5,step:10,minValue:0,maxValue:u,value:d,onDrag:function(){function v(C,g){return l("custom_pressure",{pressure:g})}return v}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",textAlign:"center",disabled:d===u,width:2.2,onClick:function(){function v(){return l("max_pressure")}return v}()})]}),(0,e.createComponentVNode)(2,V,{node_name:"Node 1",node_ref:s}),(0,e.createComponentVNode)(2,V,{node_name:"Node 2",node_ref:i})]})})})})}return k}(),V=function(S,b){var p=(0,a.useBackend)(b),l=p.act,c=p.data,m=S.node_name,d=S.node_ref;return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:m,children:[(0,e.createComponentVNode)(2,t.Button,{icon:"fast-backward",textAlign:"center",width:2.2,disabled:d===0,onClick:function(){function u(){return l("set_node",{node_name:m,concentration:(d-10)/100})}return u}()}),(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,unit:"%",width:6.1,lineHeight:1.5,stepPixelSize:10,minValue:0,maxValue:100,value:d,onChange:function(){function u(s,i){return l("set_node",{node_name:m,concentration:i/100})}return u}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",textAlign:"center",width:2.2,disabled:d===100,onClick:function(){function u(){return l("set_node",{node_name:m,concentration:(d+10)/100})}return u}()})]})}},54090:function(L,r,n){"use strict";r.__esModule=!0,r.AtmosPump=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.AtmosPump=function(){function V(k,S){var b=(0,a.useBackend)(S),p=b.act,l=b.data,c=l.on,m=l.rate,d=l.max_rate,u=l.gas_unit,s=l.step;return(0,e.createComponentVNode)(2,o.Window,{width:330,height:110,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power",children:(0,e.createComponentVNode)(2,t.Button,{icon:"power-off",content:c?"On":"Off",color:c?null:"red",selected:c,onClick:function(){function i(){return p("power")}return i}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Rate",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"fast-backward",textAlign:"center",disabled:m===0,width:2.2,onClick:function(){function i(){return p("min_rate")}return i}()}),(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,unit:u,width:6.1,lineHeight:1.5,step:s,minValue:0,maxValue:d,value:m,onDrag:function(){function i(v,C){return p("custom_rate",{rate:C})}return i}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",textAlign:"center",disabled:m===d,width:2.2,onClick:function(){function i(){return p("max_rate")}return i}()})]})]})})})})}return V}()},31335:function(L,r,n){"use strict";r.__esModule=!0,r.AtmosTankControl=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(36121),f=n(38424),V=n(45493),k=r.AtmosTankControl=function(){function S(b,p){var l=(0,a.useBackend)(p),c=l.act,m=l.data,d=m.sensors||{};return(0,e.createComponentVNode)(2,V.Window,{width:400,height:400,children:(0,e.createComponentVNode)(2,V.Window.Content,{scrollable:!0,children:[Object.keys(d).map(function(u){return(0,e.createComponentVNode)(2,t.Section,{title:u,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[Object.keys(d[u]).indexOf("pressure")>-1?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Pressure",children:[d[u].pressure," kpa"]}):"",Object.keys(d[u]).indexOf("temperature")>-1?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Temperature",children:[d[u].temperature," K"]}):"",["o2","n2","plasma","co2","n2o"].map(function(s){return Object.keys(d[u]).indexOf(s)>-1?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:(0,f.getGasLabel)(s),children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:(0,f.getGasColor)(s),value:d[u][s],minValue:0,maxValue:100,children:(0,o.toFixed)(d[u][s],2)+"%"})},(0,f.getGasLabel)(s)):""})]})},u)}),m.inlet&&Object.keys(m.inlet).length>0?(0,e.createComponentVNode)(2,t.Section,{title:"Inlet Control",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power",children:(0,e.createComponentVNode)(2,t.Button,{icon:(m.inlet.on,"power-off"),content:m.inlet.on?"On":"Off",color:m.inlet.on?null:"red",selected:m.inlet.on,onClick:function(){function u(){return c("toggle_active",{dev:"inlet"})}return u}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Rate",children:(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,unit:"L/s",width:6.1,lineHeight:1.5,step:1,minValue:0,maxValue:50,value:m.inlet.rate,onDrag:function(){function u(s,i){return c("set_pressure",{dev:"inlet",val:i})}return u}()})})]})}):"",m.outlet&&Object.keys(m.outlet).length>0?(0,e.createComponentVNode)(2,t.Section,{title:"Outlet Control",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power",children:(0,e.createComponentVNode)(2,t.Button,{icon:(m.outlet.on,"power-off"),content:m.outlet.on?"On":"Off",color:m.outlet.on?null:"red",selected:m.outlet.on,onClick:function(){function u(){return c("toggle_active",{dev:"outlet"})}return u}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Rate",children:(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,unit:"kPa",width:6.1,lineHeight:1.5,step:10,minValue:0,maxValue:5066,value:m.outlet.rate,onDrag:function(){function u(s,i){return c("set_pressure",{dev:"outlet",val:i})}return u}()})})]})}):""]})})}return S}()},85909:function(L,r,n){"use strict";r.__esModule=!0,r.Autolathe=void 0;var e=n(96524),a=n(74041),t=n(50640),o=n(17899),f=n(24674),V=n(45493),k=n(78234),S=function(l,c,m,d){return l.requirements===null?!0:!(l.requirements.metal*d>c||l.requirements.glass*d>m)},b=r.Autolathe=function(){function p(l,c){var m=(0,o.useBackend)(c),d=m.act,u=m.data,s=u.total_amount,i=u.max_amount,v=u.metal_amount,C=u.glass_amount,g=u.busyname,h=u.busyamt,N=u.showhacked,y=u.buildQueue,B=u.buildQueueLen,I=u.recipes,w=u.categories,T=(0,o.useSharedState)(c,"category",0),A=T[0],x=T[1];A===0&&(A="Tools");var E=v.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1,"),M=C.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1,"),D=s.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1,"),P=(0,o.useSharedState)(c,"search_text",""),R=P[0],j=P[1],F=(0,k.createSearch)(R,function(G){return G.name}),U="";B>0&&(U=y.map(function(G,X){return(0,e.createComponentVNode)(2,f.Box,{children:(0,e.createComponentVNode)(2,f.Button,{fluid:!0,icon:"times",color:"transparent",content:y[X][0],onClick:function(){function Y(){return d("remove_from_queue",{remove_from_queue:y.indexOf(G)+1})}return Y}()},G)},X)}));var _=(0,a.flow)([(0,t.filter)(function(G){return(G.category.indexOf(A)>-1||R)&&(u.showhacked||!G.hacked)}),R&&(0,t.filter)(F),(0,t.sortBy)(function(G){return G.name.toLowerCase()})])(I),z="Build";return R?z="Results for: '"+R+"':":A&&(z="Build ("+A+")"),(0,e.createComponentVNode)(2,V.Window,{width:750,height:525,children:(0,e.createComponentVNode)(2,V.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,f.Stack,{fill:!0,horizontal:!0,children:[(0,e.createComponentVNode)(2,f.Stack.Item,{width:"70%",children:(0,e.createComponentVNode)(2,f.Section,{fill:!0,scrollable:!0,title:z,buttons:(0,e.createComponentVNode)(2,f.Dropdown,{width:"150px",options:w,selected:A,onSelected:function(){function G(X){return x(X)}return G}()}),children:[(0,e.createComponentVNode)(2,f.Input,{fluid:!0,placeholder:"Search for...",onInput:function(){function G(X,Y){return j(Y)}return G}(),mb:1}),_.map(function(G){return(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,children:[(0,e.createVNode)(1,"img",null,null,1,{src:"data:image/jpeg;base64,"+G.image,style:{"vertical-align":"middle",width:"32px",margin:"0px","margin-left":"0px"}}),(0,e.createComponentVNode)(2,f.Button,{mr:1,icon:"hammer",selected:u.busyname===G.name&&u.busyamt===1,disabled:!S(G,u.metal_amount,u.glass_amount,1),onClick:function(){function X(){return d("make",{make:G.uid,multiplier:1})}return X}(),children:(0,k.toTitleCase)(G.name)}),G.max_multiplier>=10&&(0,e.createComponentVNode)(2,f.Button,{mr:1,icon:"hammer",selected:u.busyname===G.name&&u.busyamt===10,disabled:!S(G,u.metal_amount,u.glass_amount,10),onClick:function(){function X(){return d("make",{make:G.uid,multiplier:10})}return X}(),children:"10x"}),G.max_multiplier>=25&&(0,e.createComponentVNode)(2,f.Button,{mr:1,icon:"hammer",selected:u.busyname===G.name&&u.busyamt===25,disabled:!S(G,u.metal_amount,u.glass_amount,25),onClick:function(){function X(){return d("make",{make:G.uid,multiplier:25})}return X}(),children:"25x"}),G.max_multiplier>25&&(0,e.createComponentVNode)(2,f.Button,{mr:1,icon:"hammer",selected:u.busyname===G.name&&u.busyamt===G.max_multiplier,disabled:!S(G,u.metal_amount,u.glass_amount,G.max_multiplier),onClick:function(){function X(){return d("make",{make:G.uid,multiplier:G.max_multiplier})}return X}(),children:[G.max_multiplier,"x"]}),G.requirements&&Object.keys(G.requirements).map(function(X){return(0,k.toTitleCase)(X)+": "+G.requirements[X]}).join(", ")||(0,e.createComponentVNode)(2,f.Box,{children:"No resources required."})]},G.ref)})]})}),(0,e.createComponentVNode)(2,f.Stack.Item,{width:"30%",children:[(0,e.createComponentVNode)(2,f.Section,{title:"Materials",children:(0,e.createComponentVNode)(2,f.LabeledList,{children:[(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Metal",children:E}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Glass",children:M}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Total",children:D}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Storage",children:[u.fill_percent,"% Full"]})]})}),(0,e.createComponentVNode)(2,f.Section,{title:"Building",children:(0,e.createComponentVNode)(2,f.Box,{color:g?"green":"",children:g||"Nothing"})}),(0,e.createComponentVNode)(2,f.Section,{title:"Build Queue",height:23.7,children:[U,(0,e.createComponentVNode)(2,f.Button,{mt:.5,fluid:!0,icon:"times",content:"Clear All",color:"red",disabled:!u.buildQueueLen,onClick:function(){function G(){return d("clear_queue")}return G}()})]})]})]})})})}return p}()},81617:function(L,r,n){"use strict";r.__esModule=!0,r.BioChipPad=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.BioChipPad=function(){function V(k,S){var b=(0,a.useBackend)(S),p=b.act,l=b.data,c=l.implant,m=l.contains_case,d=l.gps,u=l.tag,s=(0,a.useLocalState)(S,"newTag",u),i=s[0],v=s[1];return(0,e.createComponentVNode)(2,o.Window,{width:410,height:325,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Bio-chip Mini-Computer",buttons:(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Eject Case",icon:"eject",disabled:!m,onClick:function(){function C(){return p("eject_case")}return C}()})}),children:c&&m?(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{bold:!0,mb:2,children:[(0,e.createVNode)(1,"img",null,null,1,{src:"data:image/jpeg;base64,"+c.image,ml:0,mr:2,style:{"vertical-align":"middle",width:"32px"}}),c.name]}),(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Life",children:c.life}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Notes",children:c.notes}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Function",children:c.function}),!!d&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Tag",children:[(0,e.createComponentVNode)(2,t.Input,{width:"5.5rem",value:u,onEnter:function(){function C(){return p("tag",{newtag:i})}return C}(),onInput:function(){function C(g,h){return v(h)}return C}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:u===i,width:"20px",mb:"0",ml:"0.25rem",onClick:function(){function C(){return p("tag",{newtag:i})}return C}(),children:(0,e.createComponentVNode)(2,t.Icon,{name:"pen"})})]})]})],4):m?(0,e.createComponentVNode)(2,t.Box,{children:"This bio-chip case has no implant!"}):(0,e.createComponentVNode)(2,t.Box,{children:"Please insert a bio-chip casing!"})})})})}return V}()},26215:function(L,r,n){"use strict";r.__esModule=!0,r.Biogenerator=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=n(75201),V=r.Biogenerator=function(){function l(c,m){var d=(0,a.useBackend)(m),u=d.data,s=d.config,i=u.container,v=u.processing,C=s.title;return(0,e.createComponentVNode)(2,o.Window,{width:390,height:595,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,f.Operating,{operating:v,name:C}),(0,e.createComponentVNode)(2,S),(0,e.createComponentVNode)(2,b),i?(0,e.createComponentVNode)(2,p):(0,e.createComponentVNode)(2,k)]})})})}return l}(),k=function(c,m){return(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,grow:!0,textAlign:"center",align:"center",color:"silver",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"flask",size:5,mb:"10px"}),(0,e.createVNode)(1,"br"),"The biogenerator is missing a container."]})})})},S=function(c,m){var d=(0,a.useBackend)(m),u=d.act,s=d.data,i=s.biomass,v=s.container,C=s.container_curr_reagents,g=s.container_max_reagents;return(0,e.createComponentVNode)(2,t.Section,{title:"Storage",children:[(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{mr:"20px",color:"silver",children:"Biomass:"}),(0,e.createComponentVNode)(2,t.Stack.Item,{mr:"5px",children:i}),(0,e.createComponentVNode)(2,t.Icon,{name:"leaf",size:1.2,color:"#3d8c40"})]}),(0,e.createComponentVNode)(2,t.Stack,{height:"21px",mt:"8px",align:"center",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{mr:"10px",color:"silver",children:"Container:"}),v?(0,e.createComponentVNode)(2,t.ProgressBar,{value:C,maxValue:g,children:(0,e.createComponentVNode)(2,t.Box,{textAlign:"center",children:C+" / "+g+" units"})}):(0,e.createComponentVNode)(2,t.Stack.Item,{children:"None"})]})]})},b=function(c,m){var d=(0,a.useBackend)(m),u=d.act,s=d.data,i=s.has_plants,v=s.container;return(0,e.createComponentVNode)(2,t.Section,{title:"Controls",children:(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"30%",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"power-off",disabled:!i,tooltip:i?"":"There are no plants in the biogenerator.",tooltipPosition:"top-start",content:"Activate",onClick:function(){function C(){return u("activate")}return C}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:"40%",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"flask",disabled:!v,tooltip:v?"":"The biogenerator does not have a container.",tooltipPosition:"top",content:"Detach Container",onClick:function(){function C(){return u("detach_container")}return C}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:"30%",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"eject",disabled:!i,tooltip:i?"":"There are no stored plants to eject.",tooltipPosition:"top-end",content:"Eject Plants",onClick:function(){function C(){return u("eject_plants")}return C}()})})]})})},p=function(c,m){var d=(0,a.useBackend)(m),u=d.act,s=d.data,i=s.biomass,v=s.product_list,C=(0,a.useSharedState)(m,"vendAmount",1),g=C[0],h=C[1],N=Object.entries(v).map(function(y,B){var I=Object.entries(y[1]).map(function(w){return w[1]});return(0,e.createComponentVNode)(2,t.Collapsible,{title:y[0],open:!0,children:I.map(function(w){return(0,e.createComponentVNode)(2,t.Stack,{py:"2px",className:"candystripe",align:"center",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"50%",ml:"2px",children:w.name}),(0,e.createComponentVNode)(2,t.Stack.Item,{textAlign:"right",width:"20%",children:[w.cost*g,(0,e.createComponentVNode)(2,t.Icon,{ml:"5px",name:"leaf",size:1.2,color:"#3d8c40"})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{textAlign:"right",width:"40%",children:(0,e.createComponentVNode)(2,t.Button,{content:"Vend",disabled:iu&&"bad"||"good";return(0,e.createComponentVNode)(2,o.Window,{width:650,height:450,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[!!h&&(0,e.createComponentVNode)(2,t.NoticeBox,{danger:1,children:"Safety Protocols disabled"}),u>N&&(0,e.createComponentVNode)(2,t.NoticeBox,{danger:1,children:"High Power, Instability likely"}),(0,e.createComponentVNode)(2,t.Collapsible,{title:"Input Management",children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Input",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Input Level",children:u}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Desired Level",children:(0,e.createComponentVNode)(2,t.Stack,{inline:!0,width:"100%",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"fast-backward",disabled:d===0,tooltip:"Set to 0",onClick:function(){function I(){return l("set",{set_level:0})}return I}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"step-backward",tooltip:"Decrease to actual input level",disabled:d===0,onClick:function(){function I(){return l("set",{set_level:u})}return I}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"backward",disabled:d===0,tooltip:"Decrease one step",onClick:function(){function I(){return l("decrease")}return I}()})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:1,mx:1,children:(0,e.createComponentVNode)(2,t.Slider,{value:d,fillValue:u,minValue:0,color:B,maxValue:g,stepPixelSize:20,step:1,onChange:function(){function I(w,T){return l("set",{set_level:T})}return I}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"forward",disabled:d===g,tooltip:"Increase one step",tooltipPosition:"left",onClick:function(){function I(){return l("increase")}return I}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",disabled:d===g,tooltip:"Set to max",tooltipPosition:"left",onClick:function(){function I(){return l("set",{set_level:g})}return I}()})]})]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Current Power Use",children:(0,f.formatPower)(v)}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power for next level",children:(0,f.formatPower)(y)}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Surplus Power",children:(0,f.formatPower)(C)})]})})}),(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Output",children:(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Available Points",children:s}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Total Points",children:i})]})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{align:"end",children:(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:m.map(function(I){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:I.name,children:(0,e.createComponentVNode)(2,t.Button,{disabled:I.price>=s,onClick:function(){function w(){return l("vend",{target:I.key})}return w}(),content:I.price})},I.key)})})})})]})})]})})})}return k}()},71736:function(L,r,n){"use strict";r.__esModule=!0,r.BodyScanner=void 0;var e=n(96524),a=n(36121),t=n(78234),o=n(17899),f=n(24674),V=n(45493),k=[["good","Alive"],["average","Critical"],["bad","DEAD"]],S=[["hasVirus","bad","Viral pathogen detected in blood stream."],["blind","average","Cataracts detected."],["colourblind","average","Photoreceptor abnormalities detected."],["nearsighted","average","Retinal misalignment detected."]],b=[["Respiratory","oxyLoss"],["Brain","brainLoss"],["Toxin","toxLoss"],["Radiation","radLoss"],["Brute","bruteLoss"],["Cellular","cloneLoss"],["Burn","fireLoss"],["Inebriation","drunkenness"]],p={average:[.25,.5],bad:[.5,1/0]},l=function(B,I){for(var w=[],T=0;T0?B.filter(function(I){return!!I}).reduce(function(I,w){return(0,e.createFragment)([I,(0,e.createComponentVNode)(2,f.Box,{children:w},w)],0)},null):null},m=function(B){if(B>100){if(B<300)return"mild infection";if(B<400)return"mild infection+";if(B<500)return"mild infection++";if(B<700)return"acute infection";if(B<800)return"acute infection+";if(B<900)return"acute infection++";if(B>=900)return"septic"}return""},d=r.BodyScanner=function(){function y(B,I){var w=(0,o.useBackend)(I),T=w.data,A=T.occupied,x=T.occupant,E=x===void 0?{}:x,M=A?(0,e.createComponentVNode)(2,u,{occupant:E}):(0,e.createComponentVNode)(2,N);return(0,e.createComponentVNode)(2,V.Window,{width:700,height:600,title:"Body Scanner",children:(0,e.createComponentVNode)(2,V.Window.Content,{scrollable:!0,children:M})})}return y}(),u=function(B){var I=B.occupant;return(0,e.createComponentVNode)(2,f.Box,{children:[(0,e.createComponentVNode)(2,s,{occupant:I}),(0,e.createComponentVNode)(2,i,{occupant:I}),(0,e.createComponentVNode)(2,v,{occupant:I}),(0,e.createComponentVNode)(2,g,{organs:I.extOrgan}),(0,e.createComponentVNode)(2,h,{organs:I.intOrgan})]})},s=function(B,I){var w=(0,o.useBackend)(I),T=w.act,A=w.data,x=A.occupant;return(0,e.createComponentVNode)(2,f.Section,{title:"Occupant",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,f.Button,{icon:"print",onClick:function(){function E(){return T("print_p")}return E}(),children:"Print Report"}),(0,e.createComponentVNode)(2,f.Button,{icon:"user-slash",onClick:function(){function E(){return T("ejectify")}return E}(),children:"Eject"})],4),children:(0,e.createComponentVNode)(2,f.LabeledList,{children:[(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Name",children:x.name}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Health",children:(0,e.createComponentVNode)(2,f.ProgressBar,{min:"0",max:x.maxHealth,value:x.health/x.maxHealth,ranges:{good:[.5,1/0],average:[0,.5],bad:[-1/0,0]}})}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Status",color:k[x.stat][0],children:k[x.stat][1]}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Temperature",children:[(0,e.createComponentVNode)(2,f.AnimatedNumber,{value:(0,a.round)(x.bodyTempC)}),"\xB0C,\xA0",(0,e.createComponentVNode)(2,f.AnimatedNumber,{value:(0,a.round)(x.bodyTempF)}),"\xB0F"]}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Implants",children:x.implant_len?(0,e.createComponentVNode)(2,f.Box,{children:x.implant.map(function(E){return E.name}).join(", ")}):(0,e.createComponentVNode)(2,f.Box,{color:"label",children:"None"})})]})})},i=function(B){var I=B.occupant;return I.hasBorer||I.blind||I.colourblind||I.nearsighted||I.hasVirus?(0,e.createComponentVNode)(2,f.Section,{title:"Abnormalities",children:S.map(function(w,T){if(I[w[0]])return(0,e.createComponentVNode)(2,f.Box,{color:w[1],bold:w[1]==="bad",children:w[2]},w[2])})}):(0,e.createComponentVNode)(2,f.Section,{title:"Abnormalities",children:(0,e.createComponentVNode)(2,f.Box,{color:"label",children:"No abnormalities found."})})},v=function(B){var I=B.occupant;return(0,e.createComponentVNode)(2,f.Section,{title:"Damage",children:(0,e.createComponentVNode)(2,f.Table,{children:l(b,function(w,T,A){return(0,e.createFragment)([(0,e.createComponentVNode)(2,f.Table.Row,{color:"label",children:[(0,e.createComponentVNode)(2,f.Table.Cell,{children:[w[0],":"]}),(0,e.createComponentVNode)(2,f.Table.Cell,{children:!!T&&T[0]+":"})]}),(0,e.createComponentVNode)(2,f.Table.Row,{children:[(0,e.createComponentVNode)(2,f.Table.Cell,{children:(0,e.createComponentVNode)(2,C,{value:I[w[1]],marginBottom:A100)&&"average"||!!I.status.robotic&&"label",width:"33%",children:(0,t.capitalize)(I.name)}),(0,e.createComponentVNode)(2,f.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,f.ProgressBar,{m:-.5,min:"0",max:I.maxHealth,mt:w>0&&"0.5rem",value:I.totalLoss/I.maxHealth,ranges:p,children:(0,e.createComponentVNode)(2,f.Stack,{children:[(0,e.createComponentVNode)(2,f.Tooltip,{content:"Total damage",children:(0,e.createComponentVNode)(2,f.Stack.Item,{children:[(0,e.createComponentVNode)(2,f.Icon,{name:"heartbeat",mr:.5}),(0,a.round)(I.totalLoss)]})}),!!I.bruteLoss&&(0,e.createComponentVNode)(2,f.Tooltip,{content:"Brute damage",children:(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,children:[(0,e.createComponentVNode)(2,f.Icon,{name:"bone",mr:.5}),(0,a.round)(I.bruteLoss)]})}),!!I.fireLoss&&(0,e.createComponentVNode)(2,f.Tooltip,{content:"Burn damage",children:(0,e.createComponentVNode)(2,f.Stack.Item,{children:[(0,e.createComponentVNode)(2,f.Icon,{name:"fire",mr:.5}),(0,a.round)(I.fireLoss)]})})]})})}),(0,e.createComponentVNode)(2,f.Table.Cell,{textAlign:"right",verticalAlign:"top",width:"33%",pt:w>0&&"calc(0.5rem + 2px)",children:[(0,e.createComponentVNode)(2,f.Box,{color:"average",inline:!0,children:c([!!I.internalBleeding&&"Internal bleeding",!!I.burnWound&&"Critical tissue burns",!!I.lungRuptured&&"Ruptured lung",!!I.status.broken&&I.status.broken,m(I.germ_level),!!I.open&&"Open incision"])}),(0,e.createComponentVNode)(2,f.Box,{inline:!0,children:[c([!!I.status.splinted&&(0,e.createComponentVNode)(2,f.Box,{color:"good",children:"Splinted"}),!!I.status.robotic&&(0,e.createComponentVNode)(2,f.Box,{color:"label",children:"Robotic"}),!!I.status.dead&&(0,e.createComponentVNode)(2,f.Box,{color:"bad",bold:!0,children:"DEAD"})]),c(I.shrapnel.map(function(T){return T.known?T.name:"Unknown object"}))]})]})]},w)})]})})},h=function(B){return B.organs.length===0?(0,e.createComponentVNode)(2,f.Section,{title:"Internal Organs",children:(0,e.createComponentVNode)(2,f.Box,{color:"label",children:"N/A"})}):(0,e.createComponentVNode)(2,f.Section,{title:"Internal Organs",children:(0,e.createComponentVNode)(2,f.Table,{children:[(0,e.createComponentVNode)(2,f.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,f.Table.Cell,{children:"Name"}),(0,e.createComponentVNode)(2,f.Table.Cell,{textAlign:"center",children:"Damage"}),(0,e.createComponentVNode)(2,f.Table.Cell,{textAlign:"right",children:"Injuries"})]}),B.organs.map(function(I,w){return(0,e.createComponentVNode)(2,f.Table.Row,{children:[(0,e.createComponentVNode)(2,f.Table.Cell,{color:!!I.dead&&"bad"||I.germ_level>100&&"average"||I.robotic>0&&"label",width:"33%",children:(0,t.capitalize)(I.name)}),(0,e.createComponentVNode)(2,f.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,f.ProgressBar,{min:"0",max:I.maxHealth,value:I.damage/I.maxHealth,mt:w>0&&"0.5rem",ranges:p,children:(0,a.round)(I.damage)})}),(0,e.createComponentVNode)(2,f.Table.Cell,{textAlign:"right",verticalAlign:"top",width:"33%",pt:w>0&&"calc(0.5rem + 2px)",children:[(0,e.createComponentVNode)(2,f.Box,{color:"average",inline:!0,children:c([m(I.germ_level)])}),(0,e.createComponentVNode)(2,f.Box,{inline:!0,children:c([I.robotic===1&&(0,e.createComponentVNode)(2,f.Box,{color:"label",children:"Robotic"}),I.robotic===2&&(0,e.createComponentVNode)(2,f.Box,{color:"label",children:"Assisted"}),!!I.dead&&(0,e.createComponentVNode)(2,f.Box,{color:"bad",bold:!0,children:"DEAD"})])})]})]},w)})]})})},N=function(){return(0,e.createComponentVNode)(2,f.Section,{fill:!0,children:(0,e.createComponentVNode)(2,f.Stack,{fill:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,align:"center",color:"label",children:[(0,e.createComponentVNode)(2,f.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,e.createVNode)(1,"br"),"No occupant detected."]})})})}},99449:function(L,r,n){"use strict";r.__esModule=!0,r.BookBinder=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=n(99665),V=n(18963),k=r.BookBinder=function(){function S(b,p){var l=(0,a.useBackend)(p),c=l.act,m=l.data,d=m.selectedbook,u=m.book_categories,s=[];return u.map(function(i){return s[i.description]=i.category_id}),(0,e.createComponentVNode)(2,o.Window,{width:600,height:400,children:[(0,e.createComponentVNode)(2,f.ComplexModal),(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Book Binder",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"print",width:"auto",content:"Print Book",onClick:function(){function i(){return c("print_book")}return i}()}),children:[(0,e.createComponentVNode)(2,t.Box,{ml:10,fontSize:"1.2rem",bold:!0,children:[(0,e.createComponentVNode)(2,t.Icon,{name:"search-plus",verticalAlign:"middle",size:3,mr:"1rem"}),"Book Binder"]}),(0,e.createComponentVNode)(2,t.Stack,{children:(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Title",children:(0,e.createComponentVNode)(2,t.Button,{textAlign:"left",icon:"pen",width:"auto",content:d.title,onClick:function(){function i(){return(0,f.modalOpen)(p,"edit_selected_title")}return i}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Author",children:(0,e.createComponentVNode)(2,t.Button,{textAlign:"left",icon:"pen",width:"auto",content:d.author,onClick:function(){function i(){return(0,f.modalOpen)(p,"edit_selected_author")}return i}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Select Categories",children:(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Dropdown,{width:"190px",options:u.map(function(i){return i.description}),onSelected:function(){function i(v){return c("toggle_binder_category",{category_id:s[v]})}return i}()})})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Summary",children:(0,e.createComponentVNode)(2,t.Button,{icon:"pen",width:"auto",content:"Edit Summary",onClick:function(){function i(){return(0,f.modalOpen)(p,"edit_selected_summary")}return i}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{children:d.summary})]}),(0,e.createVNode)(1,"br"),u.filter(function(i){return d.categories.includes(i.category_id)}).map(function(i){return(0,e.createComponentVNode)(2,t.Button,{content:i.description,selected:!0,icon:"unlink",onClick:function(){function v(){return c("toggle_binder_category",{category_id:i.category_id})}return v}()},i.category_id)})]})})]})})})]})}return S}()},85951:function(L,r,n){"use strict";r.__esModule=!0,r.BotCall=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=function(l){var c=[{modes:[0],label:"Idle",color:"green"},{modes:[1,2,3],label:"Arresting",color:"yellow"},{modes:[4,5],label:"Patrolling",color:"average"},{modes:[9],label:"Moving",color:"average"},{modes:[6,11],label:"Responding",color:"green"},{modes:[12],label:"Delivering Cargo",color:"blue"},{modes:[13],label:"Returning Home",color:"blue"},{modes:[7,8,10,14,15,16,17,18,19],label:"Working",color:"blue"}],m=c.find(function(d){return d.modes.includes(l)});return(0,e.createComponentVNode)(2,t.Box,{color:m.color,children:[" ",m.label," "]})},V=r.BotCall=function(){function p(l,c){var m=(0,a.useBackend)(c),d=m.act,u=m.data,s=(0,a.useLocalState)(c,"tabIndex",0),i=s[0],v=s[1],C={0:"Security",1:"Medibot",2:"Cleanbot",3:"Floorbot",4:"Mule",5:"Honkbot"},g=function(){function h(N){return C[N]?(0,e.createComponentVNode)(2,k,{model:C[N]}):"This should not happen. Report on Paradise Github"}return h}();return(0,e.createComponentVNode)(2,o.Window,{width:700,height:400,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:i===0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Tabs,{fluid:!0,textAlign:"center",children:Array.from({length:6}).map(function(h,N){return(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:i===N,onClick:function(){function y(){return v(N)}return y}(),children:C[N]},N)})})}),g(i)]})})})}return p}(),k=function(l,c){var m=(0,a.useBackend)(c),d=m.act,u=m.data,s=u.bots;return s[l.model]!==void 0?(0,e.createComponentVNode)(2,b,{model:[l.model]}):(0,e.createComponentVNode)(2,S,{model:[l.model]})},S=function(l,c){var m=(0,a.useBackend)(c),d=m.act,u=m.data;return(0,e.createComponentVNode)(2,t.Stack,{justify:"center",align:"center",fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,t.Box,{bold:1,color:"bad",children:["No ",[l.model]," detected"]})})},b=function(l,c){var m=(0,a.useBackend)(c),d=m.act,u=m.data,s=u.bots;return(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Table,{m:"0.5rem",children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Name"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Model"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Status"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Location"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Interface"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Call"})]}),s[l.model].map(function(i){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:i.name}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:i.model}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:i.on?f(i.status):(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Off"})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:i.location}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Interface",onClick:function(){function v(){return d("interface",{botref:i.UID})}return v}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Call",onClick:function(){function v(){return d("call",{botref:i.UID})}return v}()})})]},i.UID)})]})})})}},43506:function(L,r,n){"use strict";r.__esModule=!0,r.BotClean=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=n(69521),V=r.BotClean=function(){function k(S,b){var p=(0,a.useBackend)(b),l=p.act,c=p.data,m=c.locked,d=c.noaccess,u=c.maintpanel,s=c.on,i=c.autopatrol,v=c.canhack,C=c.emagged,g=c.remote_disabled,h=c.painame,N=c.cleanblood,y=c.area;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:400,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,f.BotStatus),(0,e.createComponentVNode)(2,t.Section,{title:"Cleaning Settings",children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:N,content:"Clean Blood",disabled:d,onClick:function(){function B(){return l("blood")}return B}()})}),(0,e.createComponentVNode)(2,t.Section,{title:"Misc Settings",children:[(0,e.createComponentVNode)(2,t.Button,{fluid:!0,content:y?"Reset Area Selection":"Restrict to Current Area",onClick:function(){function B(){return l("area")}return B}()}),y!==null&&(0,e.createComponentVNode)(2,t.LabeledList,{mb:1,children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Locked Area",children:y})})]}),h&&(0,e.createComponentVNode)(2,t.Section,{title:"pAI",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"eject",content:h,disabled:d,onClick:function(){function B(){return l("ejectpai")}return B}()})})]})})}return k}()},89593:function(L,r,n){"use strict";r.__esModule=!0,r.BotFloor=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=n(69521),V=r.BotFloor=function(){function k(S,b){var p=(0,a.useBackend)(b),l=p.act,c=p.data,m=c.noaccess,d=c.painame,u=c.hullplating,s=c.replace,i=c.eat,v=c.make,C=c.fixfloor,g=c.nag_empty,h=c.magnet,N=c.tiles_amount;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:510,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,f.BotStatus),(0,e.createComponentVNode)(2,t.Section,{title:"Floor Settings",children:[(0,e.createComponentVNode)(2,t.Box,{mb:"5px",children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Tiles Left",children:N})}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:u,content:"Add tiles to new hull plating",tooltip:"Fixing a plating requires the removal of floor tile. This will place it back after repairing. Same goes for hull breaches",disabled:m,onClick:function(){function y(){return l("autotile")}return y}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:s,content:"Add floor tiles on exposed hull plating",tooltip:"Example: It will add tiles to maintenance",disabled:m,onClick:function(){function y(){return l("replacetiles")}return y}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:C,content:"Repair damaged tiles and platings",disabled:m,onClick:function(){function y(){return l("fixfloors")}return y}()})]}),(0,e.createComponentVNode)(2,t.Section,{title:"Miscellaneous",children:[(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:i,content:"Finds tiles",disabled:m,onClick:function(){function y(){return l("eattiles")}return y}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:v,content:"Make pieces of metal into tiles when empty",disabled:m,onClick:function(){function y(){return l("maketiles")}return y}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:g,content:"Transmit notice when empty",disabled:m,onClick:function(){function y(){return l("nagonempty")}return y}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:h,content:"Traction Magnets",disabled:m,onClick:function(){function y(){return l("anchored")}return y}()})]}),d&&(0,e.createComponentVNode)(2,t.Section,{title:"pAI",children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,icon:"eject",content:d,disabled:m,onClick:function(){function y(){return l("ejectpai")}return y}()})})]})})}return k}()},89513:function(L,r,n){"use strict";r.__esModule=!0,r.BotHonk=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=n(69521),V=r.BotHonk=function(){function k(S,b){var p=(0,a.useBackend)(b),l=p.act,c=p.data;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:220,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,f.BotStatus)})})}return k}()},19297:function(L,r,n){"use strict";r.__esModule=!0,r.BotMed=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=n(69521),V=r.BotMed=function(){function k(S,b){var p=(0,a.useBackend)(b),l=p.act,c=p.data,m=c.locked,d=c.noaccess,u=c.maintpanel,s=c.on,i=c.autopatrol,v=c.canhack,C=c.emagged,g=c.remote_disabled,h=c.painame,N=c.shut_up,y=c.declare_crit,B=c.stationary_mode,I=c.heal_threshold,w=c.injection_amount,T=c.use_beaker,A=c.treat_virus,x=c.reagent_glass;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:500,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,f.BotStatus),(0,e.createComponentVNode)(2,t.Section,{title:"Communication Settings",children:[(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,content:"Speaker",checked:!N,disabled:d,onClick:function(){function E(){return l("toggle_speaker")}return E}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,content:"Critical Patient Alerts",checked:y,disabled:d,onClick:function(){function E(){return l("toggle_critical_alerts")}return E}()})]}),(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Treatment Settings",children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Healing Threshold",children:(0,e.createComponentVNode)(2,t.Slider,{value:I.value,minValue:I.min,maxValue:I.max,step:5,disabled:d,onChange:function(){function E(M,D){return l("set_heal_threshold",{target:D})}return E}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Injection Level",children:(0,e.createComponentVNode)(2,t.Slider,{value:w.value,minValue:w.min,maxValue:w.max,step:5,format:function(){function E(M){return M+"u"}return E}(),disabled:d,onChange:function(){function E(M,D){return l("set_injection_amount",{target:D})}return E}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Reagent Source",children:(0,e.createComponentVNode)(2,t.Button,{content:T?"Beaker":"Internal Synthesizer",icon:T?"flask":"cogs",disabled:d,onClick:function(){function E(){return l("toggle_use_beaker")}return E}()})}),x&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Beaker",children:(0,e.createComponentVNode)(2,t.Stack,{inline:!0,width:"100%",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:1,children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:x.amount,minValue:0,maxValue:x.max_amount,children:[x.amount," / ",x.max_amount]})}),(0,e.createComponentVNode)(2,t.Stack.Item,{ml:1,children:(0,e.createComponentVNode)(2,t.Button,{content:"Eject",disabled:d,onClick:function(){function E(){return l("eject_reagent_glass")}return E}()})})]})})]}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{mt:1,fluid:!0,content:"Treat Viral Infections",checked:A,disabled:d,onClick:function(){function E(){return l("toggle_treat_viral")}return E}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,content:"Stationary Mode",checked:B,disabled:d,onClick:function(){function E(){return l("toggle_stationary_mode")}return E}()})]}),h&&(0,e.createComponentVNode)(2,t.Section,{title:"pAI",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"eject",content:h,disabled:d,onClick:function(){function E(){return l("ejectpai")}return E}()})})]})})})}return k}()},4249:function(L,r,n){"use strict";r.__esModule=!0,r.BotSecurity=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=n(69521),V=r.BotSecurity=function(){function k(S,b){var p=(0,a.useBackend)(b),l=p.act,c=p.data,m=c.noaccess,d=c.painame,u=c.check_id,s=c.check_weapons,i=c.check_warrant,v=c.arrest_mode,C=c.arrest_declare;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:445,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,f.BotStatus),(0,e.createComponentVNode)(2,t.Section,{title:"Who To Arrest",children:[(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:u,content:"Unidentifiable Persons",disabled:m,onClick:function(){function g(){return l("authid")}return g}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:s,content:"Unauthorized Weapons",disabled:m,onClick:function(){function g(){return l("authweapon")}return g}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:i,content:"Wanted Criminals",disabled:m,onClick:function(){function g(){return l("authwarrant")}return g}()})]}),(0,e.createComponentVNode)(2,t.Section,{title:"Arrest Procedure",children:[(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:v,content:"Detain Targets Indefinitely",disabled:m,onClick:function(){function g(){return l("arrtype")}return g}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:C,content:"Announce Arrests On Radio",disabled:m,onClick:function(){function g(){return l("arrdeclare")}return g}()})]}),d&&(0,e.createComponentVNode)(2,t.Section,{title:"pAI",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"eject",content:d,disabled:m,onClick:function(){function g(){return l("ejectpai")}return g}()})})]})})}return k}()},27267:function(L,r,n){"use strict";r.__esModule=!0,r.BrigCells=void 0;var e=n(96524),a=n(45493),t=n(24674),o=n(17899),f=function(b,p){var l=b.cell,c=(0,o.useBackend)(p),m=c.act,d=l.cell_id,u=l.occupant,s=l.crimes,i=l.brigged_by,v=l.time_left_seconds,C=l.time_set_seconds,g=l.ref,h="";v>0&&(h+=" BrigCells__listRow--active");var N=function(){m("release",{ref:g})};return(0,e.createComponentVNode)(2,t.Table.Row,{className:h,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:d}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:u}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:s}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:i}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.TimeDisplay,{totalSeconds:C})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.TimeDisplay,{totalSeconds:v})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{type:"button",onClick:N,children:"Release"})})]})},V=function(b){var p=b.cells;return(0,e.createComponentVNode)(2,t.Table,{className:"BrigCells__list",children:[(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{header:!0,children:"Cell"}),(0,e.createComponentVNode)(2,t.Table.Cell,{header:!0,children:"Occupant"}),(0,e.createComponentVNode)(2,t.Table.Cell,{header:!0,children:"Crimes"}),(0,e.createComponentVNode)(2,t.Table.Cell,{header:!0,children:"Brigged By"}),(0,e.createComponentVNode)(2,t.Table.Cell,{header:!0,children:"Time Brigged For"}),(0,e.createComponentVNode)(2,t.Table.Cell,{header:!0,children:"Time Left"}),(0,e.createComponentVNode)(2,t.Table.Cell,{header:!0,children:"Release"})]}),p.map(function(l){return(0,e.createComponentVNode)(2,f,{cell:l},l.ref)})]})},k=r.BrigCells=function(){function S(b,p){var l=(0,o.useBackend)(p),c=l.act,m=l.data,d=m.cells;return(0,e.createComponentVNode)(2,a.Window,{theme:"security",width:800,height:400,children:(0,e.createComponentVNode)(2,a.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,V,{cells:d})})})})})}return S}()},26623:function(L,r,n){"use strict";r.__esModule=!0,r.BrigTimer=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.BrigTimer=function(){function V(k,S){var b=(0,a.useBackend)(S),p=b.act,l=b.data;l.nameText=l.occupant,l.timing&&(l.prisoner_hasrec?l.nameText=(0,e.createComponentVNode)(2,t.Box,{color:"green",children:l.occupant}):l.nameText=(0,e.createComponentVNode)(2,t.Box,{color:"red",children:l.occupant}));var c="pencil-alt";l.prisoner_name&&(l.prisoner_hasrec||(c="exclamation-triangle"));var m=[],d=0;for(d=0;dm?this.substring(0,m)+"...":this};var b=function(d,u){var s,i;if(!u)return[];var v=d.findIndex(function(C){return C.name===u.name});return[(s=d[v-1])==null?void 0:s.name,(i=d[v+1])==null?void 0:i.name]},p=function(d,u){u===void 0&&(u="");var s=(0,f.createSearch)(u,function(i){return i.name});return(0,t.flow)([(0,a.filter)(function(i){return i==null?void 0:i.name}),u&&(0,a.filter)(s),(0,a.sortBy)(function(i){return i.name})])(d)},l=r.CameraConsole=function(){function m(d,u){var s=(0,V.useBackend)(u),i=s.act,v=s.data,C=s.config,g=v.mapRef,h=v.activeCamera,N=p(v.cameras),y=b(N,h),B=y[0],I=y[1];return(0,e.createComponentVNode)(2,S.Window,{width:870,height:708,children:[(0,e.createVNode)(1,"div","CameraConsole__left",(0,e.createComponentVNode)(2,S.Window.Content,{children:(0,e.createComponentVNode)(2,k.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,c)})}),2),(0,e.createVNode)(1,"div","CameraConsole__right",[(0,e.createVNode)(1,"div","CameraConsole__toolbar",[(0,e.createVNode)(1,"b",null,"Camera: ",16),h&&h.name||"\u2014"],0),(0,e.createVNode)(1,"div","CameraConsole__toolbarRight",[(0,e.createComponentVNode)(2,k.Button,{icon:"chevron-left",disabled:!B,onClick:function(){function w(){return i("switch_camera",{name:B})}return w}()}),(0,e.createComponentVNode)(2,k.Button,{icon:"chevron-right",disabled:!I,onClick:function(){function w(){return i("switch_camera",{name:I})}return w}()})],4),(0,e.createComponentVNode)(2,k.ByondUi,{className:"CameraConsole__map",params:{id:g,type:"map"}})],4)]})}return m}(),c=r.CameraConsoleContent=function(){function m(d,u){var s=(0,V.useBackend)(u),i=s.act,v=s.data,C=(0,V.useLocalState)(u,"searchText",""),g=C[0],h=C[1],N=v.activeCamera,y=p(v.cameras,g);return(0,e.createComponentVNode)(2,k.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,k.Stack.Item,{children:(0,e.createComponentVNode)(2,k.Input,{fluid:!0,placeholder:"Search for a camera",onInput:function(){function B(I,w){return h(w)}return B}()})}),(0,e.createComponentVNode)(2,k.Stack.Item,{grow:!0,m:0,children:(0,e.createComponentVNode)(2,k.Section,{fill:!0,scrollable:!0,children:y.map(function(B){return(0,e.createVNode)(1,"div",(0,o.classes)(["Button","Button--fluid","Button--color--transparent",N&&B.name===N.name&&"Button--selected"]),B.name.trimLongStr(23),0,{title:B.name,onClick:function(){function I(){return i("switch_camera",{name:B.name})}return I}()},B.name)})})})]})}return m}()},95513:function(L,r,n){"use strict";r.__esModule=!0,r.Canister=void 0;var e=n(96524),a=n(36121),t=n(17899),o=n(24674),f=n(92986),V=n(45493),k=r.Canister=function(){function S(b,p){var l=(0,t.useBackend)(p),c=l.act,m=l.data,d=m.portConnected,u=m.tankPressure,s=m.releasePressure,i=m.defaultReleasePressure,v=m.minReleasePressure,C=m.maxReleasePressure,g=m.valveOpen,h=m.name,N=m.canLabel,y=m.colorContainer,B=m.color_index,I=m.hasHoldingTank,w=m.holdingTank,T="";B.prim&&(T=y.prim.options[B.prim].name);var A="";B.sec&&(A=y.sec.options[B.sec].name);var x="";B.ter&&(x=y.ter.options[B.ter].name);var E="";B.quart&&(E=y.quart.options[B.quart].name);var M=[],D=[],P=[],R=[],j=0;for(j=0;jh.current_positions&&(0,e.createComponentVNode)(2,t.Box,{color:"green",children:h.total_positions-h.current_positions})||(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"0"})}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{content:"-",disabled:i.cooldown_time||!h.can_close,onClick:function(){function N(){return s("make_job_unavailable",{job:h.title})}return N}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{content:"+",disabled:i.cooldown_time||!h.can_open,onClick:function(){function N(){return s("make_job_available",{job:h.title})}return N}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:i.target_dept&&(0,e.createComponentVNode)(2,t.Box,{color:"green",children:i.priority_jobs.indexOf(h.title)>-1?"Yes":""})||(0,e.createComponentVNode)(2,t.Button,{content:h.is_priority?"Yes":"No",selected:h.is_priority,disabled:i.cooldown_time||!h.can_prioritize,onClick:function(){function N(){return s("prioritize_job",{job:h.title})}return N}()})})]},h.title)})]})})]}):g=(0,e.createComponentVNode)(2,S);break;case 2:!i.authenticated||!i.scan_name?g=(0,e.createComponentVNode)(2,S):i.modify_name?g=(0,e.createComponentVNode)(2,f.AccessList,{accesses:i.regions,selectedList:i.selectedAccess,accessMod:function(){function h(N){return s("set",{access:N})}return h}(),grantAll:function(){function h(){return s("grant_all")}return h}(),denyAll:function(){function h(){return s("clear_all")}return h}(),grantDep:function(){function h(N){return s("grant_region",{region:N})}return h}(),denyDep:function(){function h(N){return s("deny_region",{region:N})}return h}()}):g=(0,e.createComponentVNode)(2,b);break;case 3:i.authenticated?i.records.length?g=(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Records",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"times",content:"Delete All Records",disabled:!i.authenticated||i.records.length===0||i.target_dept,onClick:function(){function h(){return s("wipe_all_logs")}return h}()}),children:[(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{height:2,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Crewman"}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Old Rank"}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"New Rank"}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Authorized By"}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Time"}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Reason"}),!!i.iscentcom&&(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Deleted By"})]}),i.records.map(function(h){return(0,e.createComponentVNode)(2,t.Table.Row,{height:2,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:h.transferee}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:h.oldvalue}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:h.newvalue}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:h.whodidit}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:h.timestamp}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:h.reason}),!!i.iscentcom&&(0,e.createComponentVNode)(2,t.Table.Cell,{children:h.deletedby})]},h.timestamp)})]}),!!i.iscentcom&&(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"pencil-alt",content:"Delete MY Records",color:"purple",disabled:!i.authenticated||i.records.length===0,onClick:function(){function h(){return s("wipe_my_logs")}return h}()})})]}):g=(0,e.createComponentVNode)(2,p):g=(0,e.createComponentVNode)(2,S);break;case 4:!i.authenticated||!i.scan_name?g=(0,e.createComponentVNode)(2,S):g=(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Your Team",children:(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{height:2,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Name"}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Rank"}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Sec Status"}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Actions"})]}),i.people_dept.map(function(h){return(0,e.createComponentVNode)(2,t.Table.Row,{height:2,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:h.name}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:h.title}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:h.crimstat}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{content:h.buttontext,disabled:!h.demotable,onClick:function(){function N(){return s("remote_demote",{remote_demote:h.name})}return N}()})})]},h.title)})]})});break;default:g=(0,e.createComponentVNode)(2,t.Section,{title:"Warning",color:"red",children:"ERROR: Unknown Mode."})}return(0,e.createComponentVNode)(2,o.Window,{width:800,height:800,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:C}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:v}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:g})]})})})}return c}()},16377:function(L,r,n){"use strict";r.__esModule=!0,r.CargoConsole=void 0;var e=n(96524),a=n(74041),t=n(50640),o=n(17899),f=n(24674),V=n(45493),k=n(78234),S=r.CargoConsole=function(){function u(s,i){return(0,e.createComponentVNode)(2,V.Window,{width:900,height:800,children:(0,e.createComponentVNode)(2,V.Window.Content,{children:(0,e.createComponentVNode)(2,f.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,b),(0,e.createComponentVNode)(2,p),(0,e.createComponentVNode)(2,l),(0,e.createComponentVNode)(2,c),(0,e.createComponentVNode)(2,d)]})})})}return u}(),b=function(s,i){var v=(0,o.useLocalState)(i,"contentsModal",null),C=v[0],g=v[1],h=(0,o.useLocalState)(i,"contentsModalTitle",null),N=h[0],y=h[1];if(C!==null&&N!==null)return(0,e.createComponentVNode)(2,f.Modal,{maxWidth:"75%",width:window.innerWidth+"px",maxHeight:window.innerHeight*.75+"px",mx:"auto",children:[(0,e.createComponentVNode)(2,f.Box,{width:"100%",bold:!0,children:(0,e.createVNode)(1,"h1",null,[N,(0,e.createTextVNode)(" contents:")],0)}),(0,e.createComponentVNode)(2,f.Box,{children:C.map(function(B){return(0,e.createComponentVNode)(2,f.Box,{children:["- ",B]},B)})}),(0,e.createComponentVNode)(2,f.Box,{m:2,children:(0,e.createComponentVNode)(2,f.Button,{content:"Close",onClick:function(){function B(){g(null),y(null)}return B}()})})]})},p=function(s,i){var v=(0,o.useBackend)(i),C=v.act,g=v.data,h=g.is_public,N=g.timeleft,y=g.moving,B=g.at_station,I,w;return!y&&!B?(I="Docked off-station",w="Call Shuttle"):!y&&B?(I="Docked at the station",w="Return Shuttle"):y&&(w="In Transit...",N!==1?I="Shuttle is en route (ETA: "+N+" minutes)":I="Shuttle is en route (ETA: "+N+" minute)"),(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Section,{title:"Status",children:(0,e.createComponentVNode)(2,f.LabeledList,{children:[(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Shuttle Status",children:I}),h===0&&(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Controls",children:[(0,e.createComponentVNode)(2,f.Button,{content:w,disabled:y,onClick:function(){function T(){return C("moveShuttle")}return T}()}),(0,e.createComponentVNode)(2,f.Button,{content:"View Central Command Messages",onClick:function(){function T(){return C("showMessages")}return T}()})]})]})})})},l=function(s,i){var v,C=(0,o.useBackend)(i),g=C.act,h=C.data,N=h.accounts,y=(0,o.useLocalState)(i,"selectedAccount"),B=y[0],I=y[1],w=[];return N.map(function(T){return w[T.name]=T.account_UID}),(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Section,{title:"Payment",children:[(0,e.createComponentVNode)(2,f.Dropdown,{width:"190px",options:N.map(function(T){return T.name}),selected:(v=N.filter(function(T){return T.account_UID===B})[0])==null?void 0:v.name,onSelected:function(){function T(A){return I(w[A])}return T}()}),N.filter(function(T){return T.account_UID===B}).map(function(T){return(0,e.createComponentVNode)(2,f.LabeledList,{children:[(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Account Name",children:(0,e.createComponentVNode)(2,f.Stack.Item,{mt:1,children:T.name})}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Balance",children:(0,e.createComponentVNode)(2,f.Stack.Item,{children:T.balance})})]},T.account_UID)})]})})},c=function(s,i){var v=(0,o.useBackend)(i),C=v.act,g=v.data,h=g.requests,N=g.categories,y=g.supply_packs,B=(0,o.useSharedState)(i,"category","Emergency"),I=B[0],w=B[1],T=(0,o.useSharedState)(i,"search_text",""),A=T[0],x=T[1],E=(0,o.useLocalState)(i,"contentsModal",null),M=E[0],D=E[1],P=(0,o.useLocalState)(i,"contentsModalTitle",null),R=P[0],j=P[1],F=(0,k.createSearch)(A,function(Y){return Y.name}),U=(0,o.useLocalState)(i,"selectedAccount"),_=U[0],z=U[1],G=(0,a.flow)([(0,t.filter)(function(Y){return Y.cat===N.filter(function(J){return J.name===I})[0].category||A}),A&&(0,t.filter)(F),(0,t.sortBy)(function(Y){return Y.name.toLowerCase()})])(y),X="Crate Catalogue";return A?X="Results for '"+A+"':":I&&(X="Browsing "+I),(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Section,{title:X,buttons:(0,e.createComponentVNode)(2,f.Dropdown,{width:"190px",options:N.map(function(Y){return Y.name}),selected:I,onSelected:function(){function Y(J){return w(J)}return Y}()}),children:[(0,e.createComponentVNode)(2,f.Input,{fluid:!0,placeholder:"Search for...",onInput:function(){function Y(J,ie){return x(ie)}return Y}(),mb:1}),(0,e.createComponentVNode)(2,f.Box,{maxHeight:25,overflowY:"auto",overflowX:"hidden",children:(0,e.createComponentVNode)(2,f.Table,{m:"0.5rem",children:G.map(function(Y){return(0,e.createComponentVNode)(2,f.Table.Row,{children:[(0,e.createComponentVNode)(2,f.Table.Cell,{bold:!0,children:[Y.name," (",Y.cost," Credits)"]}),(0,e.createComponentVNode)(2,f.Table.Cell,{textAlign:"right",pr:1,children:[(0,e.createComponentVNode)(2,f.Button,{content:"Order 1",icon:"shopping-cart",disabled:!_,onClick:function(){function J(){return C("order",{crate:Y.ref,multiple:!1,account:_})}return J}()}),(0,e.createComponentVNode)(2,f.Button,{content:"Order Multiple",icon:"cart-plus",disabled:!_||Y.singleton,onClick:function(){function J(){return C("order",{crate:Y.ref,multiple:!0,account:_})}return J}()}),(0,e.createComponentVNode)(2,f.Button,{content:"View Contents",icon:"search",onClick:function(){function J(){D(Y.contents),j(Y.name)}return J}()})]})]},Y.name)})})})]})})},m=function(s,i){var v=s.request,C,g;switch(v.department){case"Engineering":g="CE",C="orange";break;case"Medical":g="CMO",C="teal";break;case"Science":g="RD",C="purple";break;case"Supply":g="CT",C="brown";break;case"Service":g="HOP",C="olive";break;case"Security":g="HOS",C="red";break;case"Command":g="CAP",C="blue";break;case"Assistant":g="Any Head",C="grey";break}return(0,e.createComponentVNode)(2,f.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,f.Stack.Item,{mt:.5,children:"Approval Required:"}),!!v.req_cargo_approval&&(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Button,{color:"brown",content:"QM",icon:"user-tie",tooltip:"This Order requires approval from the QM still"})}),!!v.req_head_approval&&(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Button,{color:C,content:g,disabled:v.req_cargo_approval,icon:"user-tie",tooltip:v.req_cargo_approval?"This Order first requires approval from the QM before the "+g+" can approve it":"This Order requires approval from the "+g+" still"})})]})},d=function(s,i){var v=(0,o.useBackend)(i),C=v.act,g=v.data,h=g.requests,N=g.orders,y=g.shipments;return(0,e.createComponentVNode)(2,f.Section,{fill:!0,scrollable:!0,title:"Orders",children:[(0,e.createComponentVNode)(2,f.Box,{bold:!0,children:"Requests"}),(0,e.createComponentVNode)(2,f.Table,{children:h.map(function(B){return(0,e.createComponentVNode)(2,f.Table.Row,{className:"Cargo_RequestList",children:[(0,e.createComponentVNode)(2,f.Table.Cell,{mb:1,children:[(0,e.createComponentVNode)(2,f.Box,{children:["Order #",B.ordernum,": ",B.supply_type," (",B.cost," credits) for"," ",(0,e.createVNode)(1,"b",null,B.orderedby,0)," with"," ",B.department?"The "+B.department+" Department":"Their Personal"," ","Account"]}),(0,e.createComponentVNode)(2,f.Box,{italic:!0,children:["Reason: ",B.comment]}),(0,e.createComponentVNode)(2,m,{request:B})]}),(0,e.createComponentVNode)(2,f.Stack.Item,{textAlign:"right",children:[(0,e.createComponentVNode)(2,f.Button,{content:"Approve",color:"green",disabled:!B.can_approve,onClick:function(){function I(){return C("approve",{ordernum:B.ordernum})}return I}()}),(0,e.createComponentVNode)(2,f.Button,{content:"Deny",color:"red",disabled:!B.can_deny,onClick:function(){function I(){return C("deny",{ordernum:B.ordernum})}return I}()})]})]},B.ordernum)})}),(0,e.createComponentVNode)(2,f.Box,{bold:!0,children:"Orders Awaiting Delivery"}),(0,e.createComponentVNode)(2,f.Table,{m:"0.5rem",children:N.map(function(B){return(0,e.createComponentVNode)(2,f.Table.Row,{children:(0,e.createComponentVNode)(2,f.Table.Cell,{children:[(0,e.createComponentVNode)(2,f.Box,{children:["- #",B.ordernum,": ",B.supply_type," for ",(0,e.createVNode)(1,"b",null,B.orderedby,0)]}),(0,e.createComponentVNode)(2,f.Box,{italic:!0,children:["Reason: ",B.comment]})]})},B.ordernum)})}),(0,e.createComponentVNode)(2,f.Box,{bold:!0,children:"Order in Transit"}),(0,e.createComponentVNode)(2,f.Table,{m:"0.5rem",children:y.map(function(B){return(0,e.createComponentVNode)(2,f.Table.Row,{children:(0,e.createComponentVNode)(2,f.Table.Cell,{children:[(0,e.createComponentVNode)(2,f.Box,{children:["- #",B.ordernum,": ",B.supply_type," for ",(0,e.createVNode)(1,"b",null,B.orderedby,0)]}),(0,e.createComponentVNode)(2,f.Box,{italic:!0,children:["Reason: ",B.comment]})]})},B.ordernum)})})]})}},89917:function(L,r,n){"use strict";r.__esModule=!0,r.ChangelogView=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.ChangelogView=function(){function V(k,S){var b=(0,a.useBackend)(S),p=b.act,l=b.data,c=(0,a.useLocalState)(S,"onlyRecent",0),m=c[0],d=c[1],u=l.cl_data,s=l.last_cl,i={FIX:(0,e.createComponentVNode)(2,t.Icon,{name:"tools",title:"Fix"}),WIP:(0,e.createComponentVNode)(2,t.Icon,{name:"hard-hat",title:"WIP",color:"orange"}),TWEAK:(0,e.createComponentVNode)(2,t.Icon,{name:"sliders-h",title:"Tweak"}),SOUNDADD:(0,e.createComponentVNode)(2,t.Icon,{name:"volume-up",title:"Sound Added",color:"green"}),SOUNDDEL:(0,e.createComponentVNode)(2,t.Icon,{name:"volume-mute",title:"Sound Removed",color:"red"}),CODEADD:(0,e.createComponentVNode)(2,t.Icon,{name:"plus",title:"Code Addition",color:"green"}),CODEDEL:(0,e.createComponentVNode)(2,t.Icon,{name:"minus",title:"Code Removal",color:"red"}),IMAGEADD:(0,e.createComponentVNode)(2,t.Icon,{name:"folder-plus",title:"Sprite Addition",color:"green"}),IMAGEDEL:(0,e.createComponentVNode)(2,t.Icon,{name:"folder-minus",title:"Sprite Removal",color:"red"}),SPELLCHECK:(0,e.createComponentVNode)(2,t.Icon,{name:"font",title:"Spelling/Grammar Fix"}),EXPERIMENT:(0,e.createComponentVNode)(2,t.Icon,{name:"exclamation-triangle",title:"Experimental",color:"orange"})},v=function(){function C(g){return g in i?i[g]:(0,e.createComponentVNode)(2,t.Icon,{name:"plus",color:"green"})}return C}();return(0,e.createComponentVNode)(2,o.Window,{width:750,height:800,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"ParadiseSS13 Changelog",mt:2,buttons:(0,e.createComponentVNode)(2,t.Button,{content:m?"Showing all changes":"Showing changes since last connection",onClick:function(){function C(){return d(!m)}return C}()}),children:u.map(function(C){return!m&&C.merge_ts<=s||(0,e.createComponentVNode)(2,t.Section,{mb:2,title:C.author+" - Merged on "+C.merge_date,buttons:(0,e.createComponentVNode)(2,t.Button,{content:"#"+C.num,onClick:function(){function g(){return p("open_pr",{pr_number:C.num})}return g}()}),children:C.entries.map(function(g){return(0,e.createComponentVNode)(2,t.Box,{m:1,children:[v(g.etype)," ",g.etext]},g)})},C)})})})})}return V}()},71254:function(L,r,n){"use strict";r.__esModule=!0,r.ChemDispenser=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(1496),f=n(45493),V=[1,5,10,20,30,50],k=[1,5,10],S=r.ChemDispenser=function(){function c(m,d){var u=(0,a.useBackend)(d),s=u.act,i=u.data,v=i.chemicals;return(0,e.createComponentVNode)(2,f.Window,{width:400,height:400+v.length*8,children:(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,b),(0,e.createComponentVNode)(2,p),(0,e.createComponentVNode)(2,l)]})})})}return c}(),b=function(m,d){var u=(0,a.useBackend)(d),s=u.act,i=u.data,v=i.amount,C=i.energy,g=i.maxEnergy;return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Settings",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Energy",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:C,minValue:0,maxValue:g,ranges:{good:[g*.5,1/0],average:[g*.25,g*.5],bad:[-1/0,g*.25]},children:[C," / ",g," Units"]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Dispense",verticalAlign:"middle",children:(0,e.createComponentVNode)(2,t.Stack,{children:V.map(function(h,N){return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,width:"15%",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"cog",selected:v===h,content:h,onClick:function(){function y(){return s("amount",{amount:h})}return y}()})},N)})})})]})})})},p=function(m,d){for(var u=(0,a.useBackend)(d),s=u.act,i=u.data,v=i.chemicals,C=v===void 0?[]:v,g=[],h=0;h<(C.length+1)%3;h++)g.push(!0);return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:i.glass?"Drink Dispenser":"Chemical Dispenser",children:[C.map(function(N,y){return(0,e.createComponentVNode)(2,t.Button,{m:.1,width:"32.5%",icon:"arrow-circle-down",overflow:"hidden",textOverflow:"ellipsis",content:N.title,style:{"margin-left":"2px"},onClick:function(){function B(){return s("dispense",{reagent:N.id})}return B}()},y)}),g.map(function(N,y){return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,basis:"25%"},y)})]})})},l=function(m,d){var u=(0,a.useBackend)(d),s=u.act,i=u.data,v=i.isBeakerLoaded,C=i.beakerCurrentVolume,g=i.beakerMaxVolume,h=i.beakerContents,N=h===void 0?[]:h;return(0,e.createComponentVNode)(2,t.Stack.Item,{height:16,children:(0,e.createComponentVNode)(2,t.Section,{title:i.glass?"Glass":"Beaker",fill:!0,scrollable:!0,buttons:(0,e.createComponentVNode)(2,t.Box,{children:[!!v&&(0,e.createComponentVNode)(2,t.Box,{inline:!0,color:"label",mr:2,children:[C," / ",g," units"]}),(0,e.createComponentVNode)(2,t.Button,{icon:"eject",content:"Eject",disabled:!v,onClick:function(){function y(){return s("ejectBeaker")}return y}()})]}),children:(0,e.createComponentVNode)(2,o.BeakerContents,{beakerLoaded:v,beakerContents:N,buttons:function(){function y(B){return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{content:"Isolate",icon:"compress-arrows-alt",onClick:function(){function I(){return s("remove",{reagent:B.id,amount:-1})}return I}()}),k.map(function(I,w){return(0,e.createComponentVNode)(2,t.Button,{content:I,onClick:function(){function T(){return s("remove",{reagent:B.id,amount:I})}return T}()},w)}),(0,e.createComponentVNode)(2,t.Button,{content:"ALL",onClick:function(){function I(){return s("remove",{reagent:B.id,amount:B.volume})}return I}()})],0)}return y}()})})})}},27004:function(L,r,n){"use strict";r.__esModule=!0,r.ChemHeater=void 0;var e=n(96524),a=n(36121),t=n(17899),o=n(24674),f=n(1496),V=n(45493),k=r.ChemHeater=function(){function p(l,c){return(0,e.createComponentVNode)(2,V.Window,{width:350,height:275,children:(0,e.createComponentVNode)(2,V.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,S),(0,e.createComponentVNode)(2,b)]})})})}return p}(),S=function(l,c){var m=(0,t.useBackend)(c),d=m.act,u=m.data,s=u.targetTemp,i=u.targetTempReached,v=u.autoEject,C=u.isActive,g=u.currentTemp,h=u.isBeakerLoaded;return(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,title:"Settings",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{content:"Auto-eject",icon:v?"toggle-on":"toggle-off",selected:v,onClick:function(){function N(){return d("toggle_autoeject")}return N}()}),(0,e.createComponentVNode)(2,o.Button,{content:C?"On":"Off",icon:"power-off",selected:C,disabled:!h,onClick:function(){function N(){return d("toggle_on")}return N}()})],4),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Target",children:(0,e.createComponentVNode)(2,o.NumberInput,{width:"65px",unit:"K",step:10,stepPixelSize:3,value:(0,a.round)(s,0),minValue:0,maxValue:1e3,onDrag:function(){function N(y,B){return d("adjust_temperature",{target:B})}return N}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Reading",color:i?"good":"average",children:h&&(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:g,format:function(){function N(y){return(0,a.toFixed)(y)+" K"}return N}()})||"\u2014"})]})})})},b=function(l,c){var m=(0,t.useBackend)(c),d=m.act,u=m.data,s=u.isBeakerLoaded,i=u.beakerCurrentVolume,v=u.beakerMaxVolume,C=u.beakerContents;return(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{title:"Beaker",fill:!0,scrollable:!0,buttons:!!s&&(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,o.Box,{inline:!0,color:"label",mr:2,children:[i," / ",v," units"]}),(0,e.createComponentVNode)(2,o.Button,{icon:"eject",content:"Eject",onClick:function(){function g(){return d("eject_beaker")}return g}()})]}),children:(0,e.createComponentVNode)(2,f.BeakerContents,{beakerLoaded:s,beakerContents:C})})})}},41099:function(L,r,n){"use strict";r.__esModule=!0,r.ChemMaster=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=n(1496),V=n(99665),k=n(28234),S=["icon"];function b(I,w){if(I==null)return{};var T={},A=Object.keys(I),x,E;for(E=0;E=0)&&(T[x]=I[x]);return T}function p(I,w){I.prototype=Object.create(w.prototype),I.prototype.constructor=I,l(I,w)}function l(I,w){return l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function T(A,x){return A.__proto__=x,A}return T}(),l(I,w)}var c=[1,5,10],m=function(w,T){var A=(0,a.useBackend)(T),x=A.act,E=A.data,M=w.args.analysis;return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:E.condi?"Condiment Analysis":"Reagent Analysis",children:(0,e.createComponentVNode)(2,t.Box,{mx:"0.5rem",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Name",children:M.name}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Description",children:(M.desc||"").length>0?M.desc:"N/A"}),M.blood_type&&(0,e.createFragment)([(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Blood type",children:M.blood_type}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Blood DNA",className:"LabeledList__breakContents",children:M.blood_dna})],4),!E.condi&&(0,e.createComponentVNode)(2,t.Button,{icon:E.printing?"spinner":"print",disabled:E.printing,iconSpin:!!E.printing,ml:"0.5rem",content:"Print",onClick:function(){function D(){return x("print",{idx:M.idx,beaker:w.args.beaker})}return D}()})]})})})})},d=function(I){return I[I.ToDisposals=0]="ToDisposals",I[I.ToBeaker=1]="ToBeaker",I}(d||{}),u=r.ChemMaster=function(){function I(w,T){return(0,e.createComponentVNode)(2,o.Window,{width:575,height:650,children:[(0,e.createComponentVNode)(2,V.ComplexModal),(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,s),(0,e.createComponentVNode)(2,i),(0,e.createComponentVNode)(2,v),(0,e.createComponentVNode)(2,B)]})})]})}return I}(),s=function(w,T){var A=(0,a.useBackend)(T),x=A.act,E=A.data,M=E.beaker,D=E.beaker_reagents,P=E.buffer_reagents,R=P.length>0;return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Beaker",fill:!0,scrollable:!0,buttons:R?(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"eject",disabled:!M,content:"Eject and Clear Buffer",onClick:function(){function j(){return x("eject")}return j}()}):(0,e.createComponentVNode)(2,t.Button,{icon:"eject",disabled:!M,content:"Eject and Clear Buffer",onClick:function(){function j(){return x("eject")}return j}()}),children:M?(0,e.createComponentVNode)(2,f.BeakerContents,{beakerLoaded:!0,beakerContents:D,buttons:function(){function j(F,U){return(0,e.createComponentVNode)(2,t.Box,{mb:U0?(0,e.createComponentVNode)(2,f.BeakerContents,{beakerLoaded:!0,beakerContents:D,buttons:function(){function P(R,j){return(0,e.createComponentVNode)(2,t.Box,{mb:j0&&(R=P.map(function(j){var F=j.id,U=j.sprite;return(0,e.createComponentVNode)(2,N,{icon:U,color:"translucent",onClick:function(){function _(){return x("set_sprite_style",{production_mode:M,style:F})}return _}(),selected:D===F},F)})),(0,e.createComponentVNode)(2,h,{productionData:w.productionData,children:R&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Style",children:R})})},B=function(w,T){var A=(0,a.useBackend)(T),x=A.act,E=A.data,M=E.loaded_pill_bottle_style,D=E.containerstyles,P=E.loaded_pill_bottle,R={width:"20px",height:"20px"},j=D.map(function(F){var U=F.color,_=F.name,z=M===U;return(0,e.createComponentVNode)(2,t.Button,{style:{position:"relative",width:R.width,height:R.height},onClick:function(){function G(){return x("set_container_style",{style:U})}return G}(),icon:z&&"check",iconStyle:{position:"relative","z-index":1},tooltip:_,tooltipPosition:"top",children:[!z&&(0,e.createVNode)(1,"div",null,null,1,{style:{display:"inline-block"}}),(0,e.createVNode)(1,"span","Button",null,1,{style:{display:"inline-block",position:"absolute",top:0,left:0,margin:0,padding:0,width:R.width,height:R.height,"background-color":U,opacity:.6,filter:"alpha(opacity=60)"}})]},U)});return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Container Customization",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"eject",disabled:!P,content:"Eject Container",onClick:function(){function F(){return x("ejectp")}return F}()}),children:P?(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Style",children:[(0,e.createComponentVNode)(2,t.Button,{style:{width:R.width,height:R.height},icon:"tint-slash",onClick:function(){function F(){return x("clear_container_style")}return F}(),selected:!M,tooltip:"Default",tooltipPosition:"top"}),j]})}):(0,e.createComponentVNode)(2,t.Box,{color:"label",children:"No pill bottle or patch pack loaded."})})})};(0,V.modalRegisterBodyOverride)("analyze",m)},51327:function(L,r,n){"use strict";r.__esModule=!0,r.CloningConsole=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=n(17442),V=1,k=32,S=128,b=r.CloningConsole=function(){function u(s,i){var v=(0,a.useBackend)(i),C=v.act,g=v.data,h=g.tab,N=g.has_scanner,y=g.pod_amount;return(0,e.createComponentVNode)(2,o.Window,{width:640,height:520,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,t.Section,{title:"Cloning Console",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Connected scanner",children:N?"Online":"Missing"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Connected pods",children:y})]})}),(0,e.createComponentVNode)(2,t.Tabs,{children:[(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:h===1,icon:"home",onClick:function(){function B(){return C("menu",{tab:1})}return B}(),children:"Main Menu"}),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:h===2,icon:"user",onClick:function(){function B(){return C("menu",{tab:2})}return B}(),children:"Damage Configuration"})]}),(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,p)})]})})}return u}(),p=function(s,i){var v=(0,a.useBackend)(i),C=v.data,g=C.tab,h;return g===1?h=(0,e.createComponentVNode)(2,l):g===2&&(h=(0,e.createComponentVNode)(2,c)),h},l=function(s,i){var v=(0,a.useBackend)(i),C=v.act,g=v.data,h=g.pods,N=g.pod_amount,y=g.selected_pod_UID;return(0,e.createComponentVNode)(2,t.Box,{children:[!N&&(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"Notice: No pods connected."}),!!N&&h.map(function(B,I){return(0,e.createComponentVNode)(2,t.Section,{layer:2,title:"Pod "+(I+1),children:(0,e.createComponentVNode)(2,t.Stack,{textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{basis:"96px",shrink:0,children:[(0,e.createVNode)(1,"img",null,null,1,{src:(0,f.resolveAsset)("pod_"+(B.cloning?"cloning":"idle")+".gif"),style:{width:"100%","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createComponentVNode)(2,t.Button,{selected:y===B.uid,onClick:function(){function w(){return C("select_pod",{uid:B.uid})}return w}(),children:"Select"})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Progress",children:[!B.cloning&&(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"Pod is inactive."}),!!B.cloning&&(0,e.createComponentVNode)(2,t.ProgressBar,{value:B.clone_progress,maxValue:100,color:"good"})]}),(0,e.createComponentVNode)(2,t.LabeledList.Divider),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Biomass",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:B.biomass,ranges:{good:[2*B.biomass_storage_capacity/3,B.biomass_storage_capacity],average:[B.biomass_storage_capacity/3,2*B.biomass_storage_capacity/3],bad:[0,B.biomass_storage_capacity/3]},minValue:0,maxValue:B.biomass_storage_capacity,children:[B.biomass,"/",B.biomass_storage_capacity+" ("+100*B.biomass/B.biomass_storage_capacity+"%)"]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Sanguine Reagent",children:B.sanguine_reagent}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Osseous Reagent",children:B.osseous_reagent})]})})]})},B)})]})},c=function(s,i){var v=(0,a.useBackend)(i),C=v.act,g=v.data,h=g.selected_pod_data,N=g.has_scanned,y=g.scanner_has_patient,B=g.feedback,I=g.scan_successful,w=g.cloning_cost,T=g.has_scanner;return(0,e.createComponentVNode)(2,t.Box,{children:[!T&&(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"Notice: No scanner connected."}),!!T&&(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Section,{layer:2,title:"Scanner Info",buttons:(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"hourglass-half",onClick:function(){function A(){return C("scan")}return A}(),children:"Scan"}),(0,e.createComponentVNode)(2,t.Button,{icon:"eject",onClick:function(){function A(){return C("eject")}return A}(),children:"Eject Patient"})]}),children:[!N&&(0,e.createComponentVNode)(2,t.Box,{color:"average",children:y?"No scan detected for current patient.":"No patient is in the scanner."}),!!N&&(0,e.createComponentVNode)(2,t.Box,{color:B.color,children:B.text})]}),(0,e.createComponentVNode)(2,t.Section,{layer:2,title:"Damages Breakdown",children:(0,e.createComponentVNode)(2,t.Box,{children:[(!I||!N)&&(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"No valid scan detected."}),!!I&&!!N&&(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function A(){return C("fix_all")}return A}(),children:"Repair All Damages"}),(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function A(){return C("fix_none")}return A}(),children:"Repair No Damages"})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:1}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function A(){return C("clone")}return A}(),children:"Clone"})})]}),(0,e.createComponentVNode)(2,t.Stack,{height:"25px",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"40%",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:w[0],maxValue:h.biomass_storage_capacity,ranges:{bad:[2*h.biomass_storage_capacity/3,h.biomass_storage_capacity],average:[h.biomass_storage_capacity/3,2*h.biomass_storage_capacity/3],good:[0,h.biomass_storage_capacity/3]},color:w[0]>h.biomass?"bad":null,children:["Biomass: ",w[0],"/",h.biomass,"/",h.biomass_storage_capacity]})}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:"30%",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:w[1],maxValue:h.max_reagent_capacity,ranges:{bad:[2*h.max_reagent_capacity/3,h.max_reagent_capacity],average:[h.max_reagent_capacity/3,2*h.max_reagent_capacity/3],good:[0,h.max_reagent_capacity/3]},color:w[1]>h.sanguine_reagent?"bad":"good",children:["Sanguine: ",w[1],"/",h.sanguine_reagent,"/",h.max_reagent_capacity]})}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:"30%",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:w[2],maxValue:h.max_reagent_capacity,ranges:{bad:[2*h.max_reagent_capacity/3,h.max_reagent_capacity],average:[h.max_reagent_capacity/3,2*h.max_reagent_capacity/3],good:[0,h.max_reagent_capacity/3]},color:w[2]>h.osseous_reagent?"bad":"good",children:["Osseous: ",w[2],"/",h.osseous_reagent,"/",h.max_reagent_capacity]})})]}),(0,e.createComponentVNode)(2,m),(0,e.createComponentVNode)(2,d)]})]})})]})]})},m=function(s,i){var v=(0,a.useBackend)(i),C=v.act,g=v.data,h=g.patient_limb_data,N=g.limb_list,y=g.desired_limb_data;return(0,e.createComponentVNode)(2,t.Collapsible,{title:"Limbs",children:N.map(function(B,I){return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Stack,{align:"baseline",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{color:"label",width:"15%",height:"20px",children:[h[B][4],":"," "]}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:1}),h[B][3]===0&&(0,e.createComponentVNode)(2,t.Stack.Item,{width:"60%",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:y[B][0]+y[B][1],maxValue:h[B][5],ranges:{good:[0,h[B][5]/3],average:[h[B][5]/3,2*h[B][5]/3],bad:[2*h[B][5]/3,h[B][5]]},children:["Post-Cloning Damage: ",(0,e.createComponentVNode)(2,t.Icon,{name:"bone"})," "+y[B][0]+" / ",(0,e.createComponentVNode)(2,t.Icon,{name:"fire"})," "+y[B][1]]})}),h[B][3]!==0&&(0,e.createComponentVNode)(2,t.Stack.Item,{width:"60%",children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:"bad",value:0,children:["The patient's ",h[B][4]," is missing!"]})})]}),(0,e.createComponentVNode)(2,t.Stack,{children:[!!h[B][3]&&(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:!y[B][3],onClick:function(){function w(){return C("toggle_limb_repair",{limb:B,type:"replace"})}return w}(),children:"Replace Limb"})}),!h[B][3]&&(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button.Checkbox,{disabled:!(h[B][0]||h[B][1]),checked:!(y[B][0]||y[B][1]),onClick:function(){function w(){return C("toggle_limb_repair",{limb:B,type:"damage"})}return w}(),children:"Repair Damages"}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{disabled:!(h[B][2]&V),checked:!(y[B][2]&V),onClick:function(){function w(){return C("toggle_limb_repair",{limb:B,type:"bone"})}return w}(),children:"Mend Bone"}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{disabled:!(h[B][2]&k),checked:!(y[B][2]&k),onClick:function(){function w(){return C("toggle_limb_repair",{limb:B,type:"ib"})}return w}(),children:"Mend IB"}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{disabled:!(h[B][2]&S),checked:!(y[B][2]&S),onClick:function(){function w(){return C("toggle_limb_repair",{limb:B,type:"critburn"})}return w}(),children:"Mend Critical Burn"})]})]})]},B)})})},d=function(s,i){var v=(0,a.useBackend)(i),C=v.act,g=v.data,h=g.patient_organ_data,N=g.organ_list,y=g.desired_organ_data;return(0,e.createComponentVNode)(2,t.Collapsible,{title:"Organs",children:N.map(function(B,I){return(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Stack,{align:"baseline",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{color:"label",width:"20%",height:"20px",children:[h[B][3],":"," "]}),h[B][5]!=="heart"&&(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Stack.Item,{children:[!!h[B][2]&&(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:!y[B][2]&&!y[B][1],onClick:function(){function w(){return C("toggle_organ_repair",{organ:B,type:"replace"})}return w}(),children:"Replace Organ"}),!h[B][2]&&(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{disabled:!h[B][0],checked:!y[B][0],onClick:function(){function w(){return C("toggle_organ_repair",{organ:B,type:"damage"})}return w}(),children:"Repair Damages"})})]})}),h[B][5]==="heart"&&(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"Heart replacement is required for cloning."}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:1}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:"35%",children:[!!h[B][2]&&(0,e.createComponentVNode)(2,t.ProgressBar,{color:"bad",value:0,children:["The patient's ",h[B][3]," is missing!"]}),!h[B][2]&&(0,e.createComponentVNode)(2,t.ProgressBar,{value:y[B][0],maxValue:h[B][4],ranges:{good:[0,h[B][4]/3],average:[h[B][4]/3,2*h[B][4]/3],bad:[2*h[B][4]/3,h[B][4]]},children:"Post-Cloning Damage: "+y[B][0]})]})]})},B)})})}},66373:function(L,r,n){"use strict";r.__esModule=!0,r.CloningPod=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.CloningPod=function(){function V(k,S){var b=(0,a.useBackend)(S),p=b.act,l=b.data,c=l.biomass,m=l.biomass_storage_capacity,d=l.sanguine_reagent,u=l.osseous_reagent,s=l.organs,i=l.currently_cloning;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:500,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,t.Section,{title:"Liquid Storage",children:[(0,e.createComponentVNode)(2,t.Stack,{height:"25px",align:"center",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{color:"label",width:"25%",children:["Biomass:"," "]}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:1,children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:c,ranges:{good:[2*m/3,m],average:[m/3,2*m/3],bad:[0,m/3]},minValue:0,maxValue:m})})]}),(0,e.createComponentVNode)(2,t.Stack,{height:"25px",align:"center",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{color:"label",width:"25%",children:["Sanguine Reagent:"," "]}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:d+" units"}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:1}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.NumberInput,{value:0,minValue:0,maxValue:d,step:1,unit:"units",onChange:function(){function v(C,g){return p("remove_reagent",{reagent:"sanguine_reagent",amount:g})}return v}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Remove All",onClick:function(){function v(){return p("purge_reagent",{reagent:"sanguine_reagent"})}return v}()})})]}),(0,e.createComponentVNode)(2,t.Stack,{height:"25px",align:"center",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{color:"label",width:"25%",children:["Osseous Reagent:"," "]}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:u+" units"}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:1}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.NumberInput,{value:0,minValue:0,maxValue:u,step:1,unit:"units",onChange:function(){function v(C,g){return p("remove_reagent",{reagent:"osseous_reagent",amount:g})}return v}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Remove All",onClick:function(){function v(){return p("purge_reagent",{reagent:"osseous_reagent"})}return v}()})})]})]}),(0,e.createComponentVNode)(2,t.Section,{title:"Organ Storage",children:[!i&&(0,e.createComponentVNode)(2,t.Box,{children:[!s&&(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"Notice: No organs loaded."}),!!s&&s.map(function(v){return(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:v.name}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:1}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Eject",onClick:function(){function C(){return p("eject_organ",{organ_ref:v.ref})}return C}()})})]},v)})]}),!!i&&(0,e.createComponentVNode)(2,t.Stack,{height:"100%",children:(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,grow:"1",textAlign:"center",align:"center",color:"label",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"lock",size:"5",mb:3}),(0,e.createVNode)(1,"br"),"Unable to access organ storage while cloning."]})})]})]})})}return V}()},38781:function(L,r,n){"use strict";r.__esModule=!0,r.CoinMint=void 0;var e=n(96524),a=n(28234),t=n(17899),o=n(24674),f=n(45493),V=r.CoinMint=function(){function k(S,b){var p=(0,t.useBackend)(b),l=p.act,c=p.data,m=c.materials,d=c.moneyBag,u=c.moneyBagContent,s=c.moneyBagMaxContent,i=(d?210:138)+Math.ceil(m.length/4)*64;return(0,e.createComponentVNode)(2,f.Window,{width:210,height:i,children:(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.NoticeBox,{m:0,info:!0,children:["Total coins produced: ",c.totalCoins]})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,title:"Coin Type",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"power-off",color:c.active&&"bad",tooltip:!d&&"Need a money bag",disabled:!d,onClick:function(){function v(){return l("activate")}return v}()}),children:(0,e.createComponentVNode)(2,o.Stack,{vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.ProgressBar,{minValue:0,maxValue:c.maxMaterials,value:c.totalMaterials})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{icon:"eject",tooltip:"Eject selected material",onClick:function(){function v(){return l("ejectMat")}return v}()})})]})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:m.map(function(v){return(0,e.createComponentVNode)(2,o.Button,{bold:!0,inline:!0,m:.2,textAlign:"center",color:"translucent",selected:v.id===c.chosenMaterial,tooltip:v.name,content:(0,e.createComponentVNode)(2,o.Stack,{vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{className:(0,a.classes)(["materials32x32",v.id])}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:v.amount})]}),onClick:function(){function C(){return l("selectMaterial",{material:v.id})}return C}()},v.id)})})]})})}),!!d&&(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Section,{title:"Money Bag",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"eject",content:"Eject",disabled:c.active,onClick:function(){function v(){return l("ejectBag")}return v}()}),children:(0,e.createComponentVNode)(2,o.ProgressBar,{width:"100%",minValue:0,maxValue:s,value:u,children:[u," / ",s]})})})]})})})}return k}()},11866:function(L,r,n){"use strict";r.__esModule=!0,r.ColourMatrixTester=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.ColourMatrixTester=function(){function V(k,S){var b=(0,a.useBackend)(S),p=b.act,l=b.data,c=l.colour_data,m=[[{name:"RR",idx:0},{name:"RG",idx:1},{name:"RB",idx:2},{name:"RA",idx:3}],[{name:"GR",idx:4},{name:"GG",idx:5},{name:"GB",idx:6},{name:"GA",idx:7}],[{name:"BR",idx:8},{name:"BG",idx:9},{name:"BB",idx:10},{name:"BA",idx:11}],[{name:"AR",idx:12},{name:"AG",idx:13},{name:"AB",idx:14},{name:"AA",idx:15}]];return(0,e.createComponentVNode)(2,o.Window,{width:360,height:190,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Modify Matrix",children:m.map(function(d){return(0,e.createComponentVNode)(2,t.Stack,{textAlign:"center",textColor:"label",children:d.map(function(u){return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,mt:1,children:[u.name,":\xA0",(0,e.createComponentVNode)(2,t.NumberInput,{width:4,value:c[u.idx],step:.05,minValue:-5,maxValue:5,stepPixelSize:5,onChange:function(){function s(i,v){return p("setvalue",{idx:u.idx+1,value:v})}return s}()})]},u.name)})},d)})})})})})}return V}()},22420:function(L,r,n){"use strict";r.__esModule=!0,r.CommunicationsComputer=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=function(s){switch(s){case 1:return(0,e.createComponentVNode)(2,S);case 2:return(0,e.createComponentVNode)(2,l);case 3:return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,children:(0,e.createComponentVNode)(2,c)})});case 4:return(0,e.createComponentVNode)(2,d);default:return"ERROR. Unknown menu_state. Please contact NT Technical Support."}},V=r.CommunicationsComputer=function(){function u(s,i){var v=(0,a.useBackend)(i),C=v.act,g=v.data,h=g.menu_state;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:600,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,k),f(h)]})})})}return u}(),k=function(s,i){var v=(0,a.useBackend)(i),C=v.act,g=v.data,h=g.authenticated,N=g.noauthbutton,y=g.esc_section,B=g.esc_callable,I=g.esc_recallable,w=g.esc_status,T=g.authhead,A=g.is_ai,x=g.lastCallLoc,E=!1,M;return h?h===1?M="Command":h===2?M="Captain":h===3?M="CentComm Officer":h===4?(M="CentComm Secure Connection",E=!0):M="ERROR: Report This Bug!":M="Not Logged In",(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Authentication",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:E&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Access",children:M})||(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Actions",children:(0,e.createComponentVNode)(2,t.Button,{icon:h?"sign-out-alt":"id-card",selected:h,disabled:N,content:h?"Log Out ("+M+")":"Log In",onClick:function(){function D(){return C("auth")}return D}()})})})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:!!y&&(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Escape Shuttle",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[!!w&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:w}),!!B&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Options",children:(0,e.createComponentVNode)(2,t.Button,{icon:"rocket",content:"Call Shuttle",disabled:!T,onClick:function(){function D(){return C("callshuttle")}return D}()})}),!!I&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Options",children:(0,e.createComponentVNode)(2,t.Button,{icon:"times",content:"Recall Shuttle",disabled:!T||A,onClick:function(){function D(){return C("cancelshuttle")}return D}()})}),!!x&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Last Call/Recall From",children:x})]})})})],4)},S=function(s,i){var v=(0,a.useBackend)(i),C=v.act,g=v.data,h=g.is_admin;return h?(0,e.createComponentVNode)(2,b):(0,e.createComponentVNode)(2,p)},b=function(s,i){var v=(0,a.useBackend)(i),C=v.act,g=v.data,h=g.is_admin,N=g.gamma_armory_location,y=g.admin_levels,B=g.authenticated,I=g.ert_allowed;return(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"CentComm Actions",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Change Alert",children:(0,e.createComponentVNode)(2,m,{levels:y,required_access:h,use_confirm:1})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Announcement",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"bullhorn",content:"Make Central Announcement",disabled:!h,onClick:function(){function w(){return C("send_to_cc_announcement_page")}return w}()}),B===4&&(0,e.createComponentVNode)(2,t.Button,{icon:"plus",content:"Make Other Announcement",disabled:!h,onClick:function(){function w(){return C("make_other_announcement")}return w}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Response Team",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"ambulance",content:"Dispatch ERT",disabled:!h,onClick:function(){function w(){return C("dispatch_ert")}return w}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:I,content:I?"ERT calling enabled":"ERT calling disabled",tooltip:I?"Command can request an ERT":"ERTs cannot be requested",disabled:!h,onClick:function(){function w(){return C("toggle_ert_allowed")}return w}(),selected:null})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Nuclear Device",children:(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"bomb",content:"Get Authentication Codes",disabled:!h,onClick:function(){function w(){return C("send_nuke_codes")}return w}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Gamma Armory",children:(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"biohazard",content:N?"Send Gamma Armory":"Recall Gamma Armory",disabled:!h,onClick:function(){function w(){return C("move_gamma_armory")}return w}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Other",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"coins",content:"View Economy",disabled:!h,onClick:function(){function w(){return C("view_econ")}return w}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fax",content:"Fax Manager",disabled:!h,onClick:function(){function w(){return C("view_fax")}return w}()})]})]})}),(0,e.createComponentVNode)(2,t.Collapsible,{title:"View Command accessible controls",children:(0,e.createComponentVNode)(2,p)})]})},p=function(s,i){var v=(0,a.useBackend)(i),C=v.act,g=v.data,h=g.msg_cooldown,N=g.emagged,y=g.cc_cooldown,B=g.security_level_color,I=g.str_security_level,w=g.levels,T=g.authcapt,A=g.authhead,x=g.messages,E="Make Priority Announcement";h>0&&(E+=" ("+h+"s)");var M=N?"Message [UNKNOWN]":"Message CentComm",D="Request Authentication Codes";return y>0&&(M+=" ("+y+"s)",D+=" ("+y+"s)"),(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Captain-Only Actions",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Current Alert",color:B,children:I}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Change Alert",children:(0,e.createComponentVNode)(2,m,{levels:w,required_access:T})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Announcement",children:(0,e.createComponentVNode)(2,t.Button,{icon:"bullhorn",content:E,disabled:!T||h>0,onClick:function(){function P(){return C("announce")}return P}()})}),!!N&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Transmit",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"broadcast-tower",color:"red",content:M,disabled:!T||y>0,onClick:function(){function P(){return C("MessageSyndicate")}return P}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"sync-alt",content:"Reset Relays",disabled:!T,onClick:function(){function P(){return C("RestoreBackup")}return P}()})]})||(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Transmit",children:(0,e.createComponentVNode)(2,t.Button,{icon:"broadcast-tower",content:M,disabled:!T||y>0,onClick:function(){function P(){return C("MessageCentcomm")}return P}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Nuclear Device",children:(0,e.createComponentVNode)(2,t.Button,{icon:"bomb",content:D,disabled:!T||y>0,onClick:function(){function P(){return C("nukerequest")}return P}()})})]})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Command Staff Actions",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Displays",children:(0,e.createComponentVNode)(2,t.Button,{icon:"tv",content:"Change Status Displays",disabled:!A,onClick:function(){function P(){return C("status")}return P}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Incoming Messages",children:(0,e.createComponentVNode)(2,t.Button,{icon:"folder-open",content:"View ("+x.length+")",disabled:!A,onClick:function(){function P(){return C("messagelist")}return P}()})})]})})})],4)},l=function(s,i){var v=(0,a.useBackend)(i),C=v.act,g=v.data,h=g.stat_display,N=g.authhead,y=g.current_message_title,B=h.presets.map(function(w){return(0,e.createComponentVNode)(2,t.Button,{content:w.label,selected:w.name===h.type,disabled:!N,onClick:function(){function T(){return C("setstat",{statdisp:w.name})}return T}()},w.name)}),I=h.alerts.map(function(w){return(0,e.createComponentVNode)(2,t.Button,{content:w.label,selected:w.alert===h.icon,disabled:!N,onClick:function(){function T(){return C("setstat",{statdisp:3,alert:w.alert})}return T}()},w.alert)});return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Modify Status Screens",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-circle-left",content:"Back To Main Menu",onClick:function(){function w(){return C("main")}return w}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Presets",children:B}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Alerts",children:I}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Message Line 1",children:(0,e.createComponentVNode)(2,t.Button,{icon:"pencil-alt",content:h.line_1,disabled:!N,onClick:function(){function w(){return C("setmsg1")}return w}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Message Line 2",children:(0,e.createComponentVNode)(2,t.Button,{icon:"pencil-alt",content:h.line_2,disabled:!N,onClick:function(){function w(){return C("setmsg2")}return w}()})})]})})})},c=function(s,i){var v=(0,a.useBackend)(i),C=v.act,g=v.data,h=g.authhead,N=g.current_message_title,y=g.current_message,B=g.messages,I=g.security_level,w;if(N)w=(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:N,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"times",content:"Return To Message List",disabled:!h,onClick:function(){function A(){return C("messagelist")}return A}()}),children:(0,e.createComponentVNode)(2,t.Box,{children:y})})});else{var T=B.map(function(A){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:A.title,children:[(0,e.createComponentVNode)(2,t.Button,{icon:"eye",content:"View",disabled:!h||N===A.title,onClick:function(){function x(){return C("messagelist",{msgid:A.id})}return x}()}),(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"times",content:"Delete",disabled:!h,onClick:function(){function x(){return C("delmessage",{msgid:A.id})}return x}()})]},A.id)});w=(0,e.createComponentVNode)(2,t.Section,{title:"Messages Received",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-circle-left",content:"Back To Main Menu",onClick:function(){function A(){return C("main")}return A}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:T})})}return(0,e.createComponentVNode)(2,t.Box,{children:w})},m=function(s,i){var v=(0,a.useBackend)(i),C=v.act,g=v.data,h=s.levels,N=s.required_access,y=s.use_confirm,B=g.security_level;return y?h.map(function(I){return(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:I.icon,content:I.name,disabled:!N||I.id===B,tooltip:I.tooltip,onClick:function(){function w(){return C("newalertlevel",{level:I.id})}return w}()},I.name)}):h.map(function(I){return(0,e.createComponentVNode)(2,t.Button,{icon:I.icon,content:I.name,disabled:!N||I.id===B,tooltip:I.tooltip,onClick:function(){function w(){return C("newalertlevel",{level:I.id})}return w}()},I.name)})},d=function(s,i){var v=(0,a.useBackend)(i),C=v.act,g=v.data,h=g.is_admin,N=g.possible_cc_sounds;if(!h)return C("main");var y=(0,a.useLocalState)(i,"subtitle",""),B=y[0],I=y[1],w=(0,a.useLocalState)(i,"text",""),T=w[0],A=w[1],x=(0,a.useLocalState)(i,"classified",0),E=x[0],M=x[1],D=(0,a.useLocalState)(i,"beepsound","Beep"),P=D[0],R=D[1];return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Central Command Report",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-circle-left",content:"Back To Main Menu",onClick:function(){function j(){return C("main")}return j}()}),children:[(0,e.createComponentVNode)(2,t.Input,{placeholder:"Enter Subtitle here.",fluid:!0,value:B,onChange:function(){function j(F,U){return I(U)}return j}(),mb:"5px"}),(0,e.createComponentVNode)(2,t.Input,{placeholder:"Enter Announcement here,\nMultiline input is accepted.",rows:10,fluid:!0,multiline:1,value:T,onChange:function(){function j(F,U){return A(U)}return j}()}),(0,e.createComponentVNode)(2,t.Button.Confirm,{content:"Send Announcement",fluid:!0,icon:"paper-plane",center:!0,mt:"5px",textAlign:"center",onClick:function(){function j(){return C("make_cc_announcement",{subtitle:B,text:T,classified:E,beepsound:P})}return j}()}),(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Dropdown,{width:"260px",height:"20px",options:N,selected:P,onSelected:function(){function j(F){return R(F)}return j}(),disabled:E})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"volume-up",mx:"5px",disabled:E,tooltip:"Test sound",onClick:function(){function j(){return C("test_sound",{sound:P})}return j}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:E,content:"Classified",fluid:!0,tooltip:E?"Sent to station communications consoles":"Publically announced",onClick:function(){function j(){return M(!E)}return j}()})})]})]})})}},46868:function(L,r,n){"use strict";r.__esModule=!0,r.CompostBin=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.CompostBin=function(){function V(k,S){var b=(0,a.useBackend)(S),p=b.act,l=b.data,c=l.biomass,m=l.compost,d=l.biomass_capacity,u=l.compost_capacity,s=l.potassium,i=l.potassium_capacity,v=l.potash,C=l.potash_capacity,g=(0,a.useSharedState)(S,"vendAmount",1),h=g[0],N=g[1];return(0,e.createComponentVNode)(2,o.Window,{width:360,height:250,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Section,{label:"Resources",children:(0,e.createComponentVNode)(2,t.Stack,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Biomass",children:(0,e.createComponentVNode)(2,t.ProgressBar,{ml:.5,mt:1,width:20,value:c,minValue:0,maxValue:d,ranges:{good:[d*.5,1/0],average:[d*.25,d*.5],bad:[-1/0,d*.25]},children:[c," / ",d," Units"]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Compost",children:(0,e.createComponentVNode)(2,t.ProgressBar,{ml:.5,mt:1,width:20,value:m,minValue:0,maxValue:u,ranges:{good:[u*.5,1/0],average:[u*.25,u*.5],bad:[-1/0,u*.25]},children:[m," / ",u," Units"]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Potassium",children:(0,e.createComponentVNode)(2,t.ProgressBar,{ml:.5,mt:1,width:20,value:s,minValue:0,maxValue:i,ranges:{good:[i*.5,1/0],average:[i*.25,i*.5],bad:[-1/0,i*.25]},children:[s," / ",i," Units"]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Potash",children:(0,e.createComponentVNode)(2,t.ProgressBar,{ml:.5,mt:1,width:20,value:v,minValue:0,maxValue:C,ranges:{good:[C*.5,1/0],average:[C*.25,C*.5],bad:[-1/0,C*.25]},children:[v," / ",C," Units"]})})]})})}),(0,e.createComponentVNode)(2,t.Section,{title:"Controls",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{inline:!0,mr:"5px",color:"silver",children:"Soil clumps to make:"}),(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,value:h,width:"32px",minValue:1,maxValue:10,stepPixelSize:7,onChange:function(){function y(B,I){return N(I)}return y}()})],4),children:(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,align:"center",content:"Make Soil",disabled:m<25*h,icon:"arrow-circle-down",onClick:function(){function y(){return p("create",{amount:h})}return y}()})})})]})})})}return V}()},64707:function(L,r,n){"use strict";r.__esModule=!0,r.Contractor=void 0;var e=n(96524),a=n(36121),t=n(17899),o=n(24674),f=n(99509),V=n(45493);function k(C,g){C.prototype=Object.create(g.prototype),C.prototype.constructor=C,S(C,g)}function S(C,g){return S=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function h(N,y){return N.__proto__=y,N}return h}(),S(C,g)}var b={1:["ACTIVE","good"],2:["COMPLETED","good"],3:["FAILED","bad"]},p=["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(Math.random()*2e4),"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"],l=r.Contractor=function(){function C(g,h){var N=(0,t.useBackend)(h),y=N.act,B=N.data,I;B.unauthorized?I=(0,e.createComponentVNode)(2,o.Flex.Item,{grow:"1",backgroundColor:"rgba(0, 0, 0, 0.8)",children:(0,e.createComponentVNode)(2,i,{height:"100%",allMessages:["ERROR: UNAUTHORIZED USER"],finishedTimeout:100,onFinished:function(){function x(){}return x}()})}):B.load_animation_completed?I=(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Flex.Item,{basis:"content",children:(0,e.createComponentVNode)(2,c)}),(0,e.createComponentVNode)(2,o.Flex.Item,{basis:"content",mt:"0.5rem",children:(0,e.createComponentVNode)(2,m)}),(0,e.createComponentVNode)(2,o.Flex.Item,{grow:"1",overflow:"hidden",children:B.page===1?(0,e.createComponentVNode)(2,d,{height:"100%"}):(0,e.createComponentVNode)(2,s,{height:"100%"})})],4):I=(0,e.createComponentVNode)(2,o.Flex.Item,{grow:"1",backgroundColor:"rgba(0, 0, 0, 0.8)",children:(0,e.createComponentVNode)(2,i,{height:"100%",allMessages:p,finishedTimeout:3e3,onFinished:function(){function x(){return y("complete_load_animation")}return x}()})});var w=(0,t.useLocalState)(h,"viewingPhoto",""),T=w[0],A=w[1];return(0,e.createComponentVNode)(2,V.Window,{theme:"syndicate",width:500,height:600,children:[T&&(0,e.createComponentVNode)(2,v),(0,e.createComponentVNode)(2,V.Window.Content,{className:"Contractor",children:(0,e.createComponentVNode)(2,o.Flex,{direction:"column",height:"100%",children:I})})]})}return C}(),c=function(g,h){var N=(0,t.useBackend)(h),y=N.act,B=N.data,I=B.tc_available,w=B.tc_paid_out,T=B.completed_contracts,A=B.rep;return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Section,Object.assign({title:"Summary",buttons:(0,e.createComponentVNode)(2,o.Box,{verticalAlign:"middle",mt:"0.25rem",children:[A," Rep"]})},g,{children:(0,e.createComponentVNode)(2,o.Flex,{children:[(0,e.createComponentVNode)(2,o.Box,{flexBasis:"50%",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"TC Available",verticalAlign:"middle",children:(0,e.createComponentVNode)(2,o.Flex,{align:"center",children:[(0,e.createComponentVNode)(2,o.Flex.Item,{grow:"1",children:[I," TC"]}),(0,e.createComponentVNode)(2,o.Button,{disabled:I<=0,content:"Claim",mx:"0.75rem",mb:"0",flexBasis:"content",onClick:function(){function x(){return y("claim")}return x}()})]})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"TC Earned",children:[w," TC"]})]})}),(0,e.createComponentVNode)(2,o.Box,{flexBasis:"50%",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Contracts Completed",verticalAlign:"middle",children:(0,e.createComponentVNode)(2,o.Box,{height:"20px",lineHeight:"20px",inline:!0,children:T})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Contractor Status",verticalAlign:"middle",children:"ACTIVE"})]})})]})})))},m=function(g,h){var N=(0,t.useBackend)(h),y=N.act,B=N.data,I=B.page;return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Tabs,Object.assign({},g,{children:[(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:I===1,onClick:function(){function w(){return y("page",{page:1})}return w}(),children:[(0,e.createComponentVNode)(2,o.Icon,{name:"suitcase"}),"Contracts"]}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:I===2,onClick:function(){function w(){return y("page",{page:2})}return w}(),children:[(0,e.createComponentVNode)(2,o.Icon,{name:"shopping-cart"}),"Hub"]})]})))},d=function(g,h){var N=(0,t.useBackend)(h),y=N.act,B=N.data,I=B.contracts,w=B.contract_active,T=B.can_extract,A=!!w&&I.filter(function(P){return P.status===1})[0],x=A&&A.time_left>0,E=(0,t.useLocalState)(h,"viewingPhoto",""),M=E[0],D=E[1];return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Section,Object.assign({title:"Available Contracts",overflow:"auto",buttons:(0,e.createComponentVNode)(2,o.Button,{disabled:!T||x,icon:"parachute-box",content:["Call Extraction",x&&(0,e.createComponentVNode)(2,f.Countdown,{timeLeft:A.time_left,format:function(){function P(R,j){return" ("+j.substr(3)+")"}return P}()})],onClick:function(){function P(){return y("extract")}return P}()})},g,{children:I.slice().sort(function(P,R){return P.status===1?-1:R.status===1?1:P.status-R.status}).map(function(P){var R;return(0,e.createComponentVNode)(2,o.Section,{title:(0,e.createComponentVNode)(2,o.Flex,{children:[(0,e.createComponentVNode)(2,o.Flex.Item,{grow:"1",color:P.status===1&&"good",children:P.target_name}),(0,e.createComponentVNode)(2,o.Flex.Item,{basis:"content",children:P.has_photo&&(0,e.createComponentVNode)(2,o.Button,{icon:"camera",mb:"-0.5rem",ml:"0.5rem",onClick:function(){function j(){return D("target_photo_"+P.uid+".png")}return j}()})})]}),className:"Contractor__Contract",buttons:(0,e.createComponentVNode)(2,o.Box,{width:"100%",children:[!!b[P.status]&&(0,e.createComponentVNode)(2,o.Box,{color:b[P.status][1],inline:!0,mt:P.status!==1&&"0.125rem",mr:"0.25rem",lineHeight:"20px",children:b[P.status][0]}),P.status===1&&(0,e.createComponentVNode)(2,o.Button.Confirm,{icon:"ban",color:"bad",content:"Abort",ml:"0.5rem",onClick:function(){function j(){return y("abort")}return j}()})]}),children:(0,e.createComponentVNode)(2,o.Flex,{children:[(0,e.createComponentVNode)(2,o.Flex.Item,{grow:"2",mr:"0.5rem",children:[P.fluff_message,!!P.completed_time&&(0,e.createComponentVNode)(2,o.Box,{color:"good",children:[(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,o.Icon,{name:"check",mr:"0.5rem"}),"Contract completed at ",P.completed_time]}),!!P.dead_extraction&&(0,e.createComponentVNode)(2,o.Box,{color:"bad",mt:"0.5rem",bold:!0,children:[(0,e.createComponentVNode)(2,o.Icon,{name:"exclamation-triangle",mr:"0.5rem"}),"Telecrystals reward reduced drastically as the target was dead during extraction."]}),!!P.fail_reason&&(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:[(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,o.Icon,{name:"times",mr:"0.5rem"}),"Contract failed: ",P.fail_reason]})]}),(0,e.createComponentVNode)(2,o.Flex.Item,{flexBasis:"100%",children:[(0,e.createComponentVNode)(2,o.Flex,{mb:"0.5rem",color:"label",children:["Extraction Zone:\xA0",u(P)]}),(R=P.difficulties)==null?void 0:R.map(function(j,F){return(0,e.createComponentVNode)(2,o.Button.Confirm,{disabled:!!w,content:j.name+" ("+j.reward+" TC)",onClick:function(){function U(){return y("activate",{uid:P.uid,difficulty:F+1})}return U}()},F)}),!!P.objective&&(0,e.createComponentVNode)(2,o.Box,{color:"white",bold:!0,children:[P.objective.extraction_name,(0,e.createVNode)(1,"br"),"(",(P.objective.rewards.tc||0)+" TC",",\xA0",(P.objective.rewards.credits||0)+" Credits",")"]})]})]})},P.uid)})})))},u=function(g){if(!(!g.objective||g.status>1)){var h=g.objective.locs.user_area_id,N=g.objective.locs.user_coords,y=g.objective.locs.target_area_id,B=g.objective.locs.target_coords,I=h===y;return(0,e.createComponentVNode)(2,o.Flex.Item,{children:(0,e.createComponentVNode)(2,o.Icon,{name:I?"dot-circle-o":"arrow-alt-circle-right-o",color:I?"green":"yellow",rotation:I?null:-(0,a.rad2deg)(Math.atan2(B[1]-N[1],B[0]-N[0])),lineHeight:I?null:"0.85",size:"1.5"})})}},s=function(g,h){var N=(0,t.useBackend)(h),y=N.act,B=N.data,I=B.rep,w=B.buyables;return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Section,Object.assign({title:"Available Purchases",overflow:"auto"},g,{children:w.map(function(T){return(0,e.createComponentVNode)(2,o.Section,{title:T.name,children:[T.description,(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,o.Button.Confirm,{disabled:I-1&&(0,e.createComponentVNode)(2,o.Box,{as:"span",color:T.stock===0?"bad":"good",ml:"0.5rem",children:[T.stock," in stock"]})]},T.uid)})})))},i=function(C){function g(N){var y;return y=C.call(this,N)||this,y.timer=null,y.state={currentIndex:0,currentDisplay:[]},y}k(g,C);var h=g.prototype;return h.tick=function(){function N(){var y=this.props,B=this.state;if(B.currentIndex<=y.allMessages.length){this.setState(function(w){return{currentIndex:w.currentIndex+1}});var I=B.currentDisplay;I.push(y.allMessages[B.currentIndex])}else clearTimeout(this.timer),setTimeout(y.onFinished,y.finishedTimeout)}return N}(),h.componentDidMount=function(){function N(){var y=this,B=this.props.linesPerSecond,I=B===void 0?2.5:B;this.timer=setInterval(function(){return y.tick()},1e3/I)}return N}(),h.componentWillUnmount=function(){function N(){clearTimeout(this.timer)}return N}(),h.render=function(){function N(){return(0,e.createComponentVNode)(2,o.Box,{m:1,children:this.state.currentDisplay.map(function(y){return(0,e.createFragment)([y,(0,e.createVNode)(1,"br")],0,y)})})}return N}(),g}(e.Component),v=function(g,h){var N=(0,t.useLocalState)(h,"viewingPhoto",""),y=N[0],B=N[1];return(0,e.createComponentVNode)(2,o.Modal,{className:"Contractor__photoZoom",children:[(0,e.createComponentVNode)(2,o.Box,{as:"img",src:y}),(0,e.createComponentVNode)(2,o.Button,{icon:"times",content:"Close",color:"grey",mt:"1rem",onClick:function(){function I(){return B("")}return I}()})]})}},52141:function(L,r,n){"use strict";r.__esModule=!0,r.ConveyorSwitch=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.ConveyorSwitch=function(){function V(k,S){var b=(0,a.useBackend)(S),p=b.act,l=b.data,c=l.slowFactor,m=l.oneWay,d=l.position;return(0,e.createComponentVNode)(2,o.Window,{width:350,height:135,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Lever position",children:d>0?"forward":d<0?"reverse":"neutral"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Allow reverse",children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:!m,onClick:function(){function u(){return p("toggleOneWay")}return u}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Slowdown factor",children:(0,e.createComponentVNode)(2,t.Flex,{children:[(0,e.createComponentVNode)(2,t.Flex.Item,{mx:"1px",children:[" ",(0,e.createComponentVNode)(2,t.Button,{icon:"angle-double-left",onClick:function(){function u(){return p("slowFactor",{value:c-5})}return u}()})," "]}),(0,e.createComponentVNode)(2,t.Flex.Item,{mx:"1px",children:[" ",(0,e.createComponentVNode)(2,t.Button,{icon:"angle-left",onClick:function(){function u(){return p("slowFactor",{value:c-1})}return u}()})," "]}),(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Slider,{width:"100px",mx:"1px",value:c,fillValue:c,minValue:1,maxValue:50,step:1,format:function(){function u(s){return s+"x"}return u}(),onChange:function(){function u(s,i){return p("slowFactor",{value:i})}return u}()})}),(0,e.createComponentVNode)(2,t.Flex.Item,{mx:"1px",children:[" ",(0,e.createComponentVNode)(2,t.Button,{icon:"angle-right",onClick:function(){function u(){return p("slowFactor",{value:c+1})}return u}()})," "]}),(0,e.createComponentVNode)(2,t.Flex.Item,{mx:"1px",children:[" ",(0,e.createComponentVNode)(2,t.Button,{icon:"angle-double-right",onClick:function(){function u(){return p("slowFactor",{value:c+5})}return u}()})," "]})]})})]})})})})}return V}()},94187:function(L,r,n){"use strict";r.__esModule=!0,r.CrewMonitor=void 0;var e=n(96524),a=n(50640),t=n(78234),o=n(17899),f=n(24674),V=n(5126),k=n(38424),S=n(45493),b=function(u,s){return u.dead?"Deceased":parseInt(u.health,10)<=s?"Critical":parseInt(u.stat,10)===1?"Unconscious":"Living"},p=function(u,s){return u.dead?"red":parseInt(u.health,10)<=s?"orange":parseInt(u.stat,10)===1?"blue":"green"},l=r.CrewMonitor=function(){function d(u,s){var i=(0,o.useBackend)(s),v=i.act,C=i.data,g=(0,o.useLocalState)(s,"tabIndex",0),h=g[0],N=g[1],y=function(){function B(I){switch(I){case 0:return(0,e.createComponentVNode)(2,c);case 1:return(0,e.createComponentVNode)(2,m);default:return"WE SHOULDN'T BE HERE!"}}return B}();return(0,e.createComponentVNode)(2,S.Window,{width:800,height:600,children:(0,e.createComponentVNode)(2,S.Window.Content,{children:(0,e.createComponentVNode)(2,f.Stack,{fill:!0,vertical:!0,fillPositionedParent:!0,children:[(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Tabs,{children:[(0,e.createComponentVNode)(2,f.Tabs.Tab,{icon:"table",selected:h===0,onClick:function(){function B(){return N(0)}return B}(),children:"Data View"},"DataView"),(0,e.createComponentVNode)(2,f.Tabs.Tab,{icon:"map-marked-alt",selected:h===1,onClick:function(){function B(){return N(1)}return B}(),children:"Map View"},"MapView")]})}),y(h)]})})})}return d}(),c=function(u,s){var i=(0,o.useBackend)(s),v=i.act,C=i.data,g=(0,a.sortBy)(function(A){return A.name})(C.crewmembers||[]),h=C.possible_levels,N=C.viewing_current_z_level,y=C.is_advanced,B=(0,o.useLocalState)(s,"search",""),I=B[0],w=B[1],T=(0,t.createSearch)(I,function(A){return A.name+"|"+A.assignment+"|"+A.area});return(0,e.createComponentVNode)(2,f.Section,{fill:!0,scrollable:!0,backgroundColor:"transparent",children:[(0,e.createComponentVNode)(2,f.Stack,{children:[(0,e.createComponentVNode)(2,f.Stack.Item,{width:"100%",ml:"5px",children:(0,e.createComponentVNode)(2,f.Input,{placeholder:"Search by name, assignment or location..",width:"100%",onInput:function(){function A(x,E){return w(E)}return A}()})}),(0,e.createComponentVNode)(2,f.Stack.Item,{children:y?(0,e.createComponentVNode)(2,f.Dropdown,{mr:"5px",width:"50px",options:h,selected:N,onSelected:function(){function A(x){return v("switch_level",{new_level:x})}return A}()}):null})]}),(0,e.createComponentVNode)(2,f.Table,{m:"0.5rem",children:[(0,e.createComponentVNode)(2,f.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,f.Table.Cell,{children:"Name"}),(0,e.createComponentVNode)(2,f.Table.Cell,{children:"Status"}),(0,e.createComponentVNode)(2,f.Table.Cell,{children:"Location"})]}),g.filter(T).map(function(A){return(0,e.createComponentVNode)(2,f.Table.Row,{bold:!!A.is_command,children:[(0,e.createComponentVNode)(2,V.TableCell,{children:[A.name," (",A.assignment,")"]}),(0,e.createComponentVNode)(2,V.TableCell,{children:[(0,e.createComponentVNode)(2,f.Box,{inline:!0,color:p(A,C.critThreshold),children:b(A,C.critThreshold)}),A.sensor_type>=2||C.ignoreSensors?(0,e.createComponentVNode)(2,f.Box,{inline:!0,ml:1,children:["(",(0,e.createComponentVNode)(2,f.Box,{inline:!0,color:k.COLORS.damageType.oxy,children:A.oxy}),"|",(0,e.createComponentVNode)(2,f.Box,{inline:!0,color:k.COLORS.damageType.toxin,children:A.tox}),"|",(0,e.createComponentVNode)(2,f.Box,{inline:!0,color:k.COLORS.damageType.burn,children:A.fire}),"|",(0,e.createComponentVNode)(2,f.Box,{inline:!0,color:k.COLORS.damageType.brute,children:A.brute}),")"]}):null]}),(0,e.createComponentVNode)(2,V.TableCell,{children:A.sensor_type===3||C.ignoreSensors?C.isAI||C.isObserver?(0,e.createComponentVNode)(2,f.Button,{fluid:!0,icon:"location-arrow",content:A.area+" ("+A.x+", "+A.y+")",onClick:function(){function x(){return v("track",{track:A.ref})}return x}()}):A.area+" ("+A.x+", "+A.y+")":(0,e.createComponentVNode)(2,f.Box,{inline:!0,color:"grey",children:"Not Available"})})]},A.name)})]})]})},m=function(u,s){var i=(0,o.useBackend)(s),v=i.act,C=i.data,g=(0,o.useLocalState)(s,"zoom",1),h=g[0],N=g[1];return(0,e.createComponentVNode)(2,f.Box,{height:"526px",mb:"0.5rem",overflow:"hidden",children:(0,e.createComponentVNode)(2,f.NanoMap,{onZoom:function(){function y(B){return N(B)}return y}(),children:C.crewmembers.filter(function(y){return y.sensor_type===3||C.ignoreSensors}).map(function(y){return(0,e.createComponentVNode)(2,f.NanoMap.Marker,{x:y.x,y:y.y,zoom:h,icon:"circle",tooltip:y.name+" ("+y.assignment+")",color:p(y,C.critThreshold),onClick:function(){function B(){return C.isObserver?v("track",{track:y.ref}):null}return B}()},y.ref)})})})}},60561:function(L,r,n){"use strict";r.__esModule=!0,r.Cryo=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=[{label:"Resp.",type:"oxyLoss"},{label:"Toxin",type:"toxLoss"},{label:"Brute",type:"bruteLoss"},{label:"Burn",type:"fireLoss"}],V=[["good","Conscious"],["average","Unconscious"],["bad","DEAD"]],k=r.Cryo=function(){function p(l,c){return(0,e.createComponentVNode)(2,o.Window,{width:520,height:500,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,S)})})})}return p}(),S=function(l,c){var m=(0,a.useBackend)(c),d=m.act,u=m.data,s=u.isOperating,i=u.hasOccupant,v=u.occupant,C=v===void 0?[]:v,g=u.cellTemperature,h=u.cellTemperatureStatus,N=u.isBeakerLoaded,y=u.cooldownProgress,B=u.auto_eject_healthy,I=u.auto_eject_dead;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Occupant",fill:!0,scrollable:!0,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"user-slash",onClick:function(){function w(){return d("ejectOccupant")}return w}(),disabled:!i,children:"Eject"}),children:i?(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Occupant",children:C.name||"Unknown"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Health",children:(0,e.createComponentVNode)(2,t.ProgressBar,{min:C.health,max:C.maxHealth,value:C.health/C.maxHealth,color:C.health>0?"good":"average",children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:Math.round(C.health)})})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",color:V[C.stat][0],children:V[C.stat][1]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Temperature",children:[(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:Math.round(C.bodyTemperature)})," K"]}),(0,e.createComponentVNode)(2,t.LabeledList.Divider),f.map(function(w){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:w.label,children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:C[w.type]/100,ranges:{bad:[.01,1/0]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:Math.round(C[w.type])})})},w.id)})]}):(0,e.createComponentVNode)(2,t.Stack,{fill:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,align:"center",color:"label",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,e.createVNode)(1,"br"),"No occupant detected."]})})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Cell",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"eject",onClick:function(){function w(){return d("ejectBeaker")}return w}(),disabled:!N,children:"Eject Beaker"}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power",children:(0,e.createComponentVNode)(2,t.Button,{icon:"power-off",onClick:function(){function w(){return d(s?"switchOff":"switchOn")}return w}(),selected:s,children:s?"On":"Off"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Temperature",color:h,children:[(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:g})," K"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Beaker",children:(0,e.createComponentVNode)(2,b)}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Dosage interval",children:(0,e.createComponentVNode)(2,t.ProgressBar,{ranges:{average:[-1/0,99],good:[99,1/0]},color:!N&&"average",value:y,minValue:0,maxValue:100})}),(0,e.createComponentVNode)(2,t.LabeledList.Divider),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Auto-eject healthy occupants",children:(0,e.createComponentVNode)(2,t.Button,{icon:B?"toggle-on":"toggle-off",selected:B,onClick:function(){function w(){return d(B?"auto_eject_healthy_off":"auto_eject_healthy_on")}return w}(),children:B?"On":"Off"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Auto-eject dead occupants",children:(0,e.createComponentVNode)(2,t.Button,{icon:I?"toggle-on":"toggle-off",selected:I,onClick:function(){function w(){return d(I?"auto_eject_dead_off":"auto_eject_dead_on")}return w}(),children:I?"On":"Off"})})]})})})],4)},b=function(l,c){var m=(0,a.useBackend)(c),d=m.act,u=m.data,s=u.isBeakerLoaded,i=u.beakerLabel,v=u.beakerVolume;return s?(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{inline:!0,color:!i&&"average",children:[i||"No label",":"]}),(0,e.createComponentVNode)(2,t.Box,{inline:!0,color:!v&&"bad",ml:1,children:v?(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:v,format:function(){function C(g){return Math.round(g)+" units remaining"}return C}()}):"Beaker is empty"})],4):(0,e.createComponentVNode)(2,t.Box,{inline:!0,color:"bad",children:"No beaker loaded"})}},27889:function(L,r,n){"use strict";r.__esModule=!0,r.CryopodConsole=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=n(78234),V=r.CryopodConsole=function(){function b(p,l){var c=(0,a.useBackend)(l),m=c.data,d=m.account_name,u=m.allow_items;return(0,e.createComponentVNode)(2,o.Window,{title:"Cryopod Console",width:400,height:480,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Hello, "+(d||"[REDACTED]")+"!",children:"This automated cryogenic freezing unit will safely store your corporeal form until your next assignment."}),(0,e.createComponentVNode)(2,k),!!u&&(0,e.createComponentVNode)(2,S)]})})}return b}(),k=function(p,l){var c=(0,a.useBackend)(l),m=c.data,d=m.frozen_crew;return(0,e.createComponentVNode)(2,t.Collapsible,{title:"Stored Crew",children:d.length?(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:d.map(function(u,s){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:u.name,children:u.rank},s)})})}):(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No stored crew!"})})},S=function(p,l){var c=(0,a.useBackend)(l),m=c.act,d=c.data,u=d.frozen_items,s=function(v){var C=v.toString();return C.startsWith("the ")&&(C=C.slice(4,C.length)),(0,f.toTitleCase)(C)};return(0,e.createComponentVNode)(2,t.Collapsible,{title:"Stored Items",children:u.length?(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:u.map(function(i){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:s(i.name),buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-down",content:"Drop",mr:1,onClick:function(){function v(){return m("one_item",{item:i.uid})}return v}()})},i)})})}),(0,e.createComponentVNode)(2,t.Button,{content:"Drop All Items",color:"red",onClick:function(){function i(){return m("all_items")}return i}()})],4):(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No stored items!"})})}},81434:function(L,r,n){"use strict";r.__esModule=!0,r.DNAModifier=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=n(99665),V=[["good","Alive"],["average","Critical"],["bad","DEAD"]],k=[["ui","Modify U.I.","dna"],["se","Modify S.E.","dna"],["buffer","Transfer Buffers","syringe"],["rejuvenators","Rejuvenators","flask"]],S=[5,10,20,30,50],b=r.DNAModifier=function(){function h(N,y){var B=(0,a.useBackend)(y),I=B.act,w=B.data,T=w.irradiating,A=w.dnaBlockSize,x=w.occupant;y.dnaBlockSize=A,y.isDNAInvalid=!x.isViableSubject||!x.uniqueIdentity||!x.structuralEnzymes;var E;return T&&(E=(0,e.createComponentVNode)(2,C,{duration:T})),(0,e.createComponentVNode)(2,o.Window,{width:660,height:775,children:[(0,e.createComponentVNode)(2,f.ComplexModal),E,(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,p)}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,l)})]})})]})}return h}(),p=function(N,y){var B=(0,a.useBackend)(y),I=B.act,w=B.data,T=w.locked,A=w.hasOccupant,x=w.occupant;return(0,e.createComponentVNode)(2,t.Section,{title:"Occupant",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{color:"label",inline:!0,mr:"0.5rem",children:"Door Lock:"}),(0,e.createComponentVNode)(2,t.Button,{disabled:!A,selected:T,icon:T?"toggle-on":"toggle-off",content:T?"Engaged":"Disengaged",onClick:function(){function E(){return I("toggleLock")}return E}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:!A||T,icon:"user-slash",content:"Eject",onClick:function(){function E(){return I("ejectOccupant")}return E}()})],4),children:A?(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Name",children:x.name}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Health",children:(0,e.createComponentVNode)(2,t.ProgressBar,{min:x.minHealth,max:x.maxHealth,value:x.health/x.maxHealth,ranges:{good:[.5,1/0],average:[0,.5],bad:[-1/0,0]}})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",color:V[x.stat][0],children:V[x.stat][1]}),(0,e.createComponentVNode)(2,t.LabeledList.Divider)]})}),y.isDNAInvalid?(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"exclamation-circle"}),"\xA0 The occupant's DNA structure is ruined beyond recognition, please insert a subject with an intact DNA structure."]}):(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Radiation",children:(0,e.createComponentVNode)(2,t.ProgressBar,{min:"0",max:"100",value:x.radiationLevel/100,color:"average"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Unique Enzymes",children:w.occupant.uniqueEnzymes?w.occupant.uniqueEnzymes:(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"exclamation-circle"}),"\xA0 Unknown"]})})]})],0):(0,e.createComponentVNode)(2,t.Box,{color:"label",children:"Cell unoccupied."})})},l=function(N,y){var B=(0,a.useBackend)(y),I=B.act,w=B.data,T=w.selectedMenuKey,A=w.hasOccupant,x=w.occupant;if(A){if(y.isDNAInvalid)return(0,e.createComponentVNode)(2,t.Section,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,align:"center",textAlign:"center",color:"label",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,e.createVNode)(1,"br"),"No operation possible on this subject."]})})})}else return(0,e.createComponentVNode)(2,t.Section,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,align:"center",textAlign:"center",color:"label",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,e.createVNode)(1,"br"),"No occupant in DNA modifier."]})})});var E;return T==="ui"?E=(0,e.createFragment)([(0,e.createComponentVNode)(2,c),(0,e.createComponentVNode)(2,d)],4):T==="se"?E=(0,e.createFragment)([(0,e.createComponentVNode)(2,m),(0,e.createComponentVNode)(2,d)],4):T==="buffer"?E=(0,e.createComponentVNode)(2,u):T==="rejuvenators"&&(E=(0,e.createComponentVNode)(2,v)),(0,e.createComponentVNode)(2,t.Section,{fill:!0,children:[(0,e.createComponentVNode)(2,t.Tabs,{children:k.map(function(M,D){return(0,e.createComponentVNode)(2,t.Tabs.Tab,{icon:M[2],selected:T===M[0],onClick:function(){function P(){return I("selectMenuKey",{key:M[0]})}return P}(),children:M[1]},D)})}),E]})},c=function(N,y){var B=(0,a.useBackend)(y),I=B.act,w=B.data,T=w.selectedUIBlock,A=w.selectedUISubBlock,x=w.selectedUITarget,E=w.occupant;return(0,e.createComponentVNode)(2,t.Section,{title:"Modify Unique Identifier",children:[(0,e.createComponentVNode)(2,g,{dnaString:E.uniqueIdentity,selectedBlock:T,selectedSubblock:A,blockSize:y.dnaBlockSize,action:"selectUIBlock"}),(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Target",children:(0,e.createComponentVNode)(2,t.Knob,{minValue:1,maxValue:15,stepPixelSize:"20",value:x,format:function(){function M(D){return D.toString(16).toUpperCase()}return M}(),ml:"0",onChange:function(){function M(D,P){return I("changeUITarget",{value:P})}return M}()})})}),(0,e.createComponentVNode)(2,t.Button,{icon:"radiation",content:"Irradiate Block",mt:"0.5rem",onClick:function(){function M(){return I("pulseUIRadiation")}return M}()})]})},m=function(N,y){var B=(0,a.useBackend)(y),I=B.act,w=B.data,T=w.selectedSEBlock,A=w.selectedSESubBlock,x=w.occupant;return(0,e.createComponentVNode)(2,t.Section,{title:"Modify Structural Enzymes",children:[(0,e.createComponentVNode)(2,g,{dnaString:x.structuralEnzymes,selectedBlock:T,selectedSubblock:A,blockSize:y.dnaBlockSize,action:"selectSEBlock"}),(0,e.createComponentVNode)(2,t.Button,{icon:"radiation",content:"Irradiate Block",onClick:function(){function E(){return I("pulseSERadiation")}return E}()})]})},d=function(N,y){var B=(0,a.useBackend)(y),I=B.act,w=B.data,T=w.radiationIntensity,A=w.radiationDuration;return(0,e.createComponentVNode)(2,t.Section,{title:"Radiation Emitter",children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Intensity",children:(0,e.createComponentVNode)(2,t.Knob,{minValue:1,maxValue:10,stepPixelSize:20,value:T,popUpPosition:"right",ml:"0",onChange:function(){function x(E,M){return I("radiationIntensity",{value:M})}return x}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Duration",children:(0,e.createComponentVNode)(2,t.Knob,{minValue:1,maxValue:20,stepPixelSize:10,unit:"s",value:A,popUpPosition:"right",ml:"0",onChange:function(){function x(E,M){return I("radiationDuration",{value:M})}return x}()})})]}),(0,e.createComponentVNode)(2,t.Button,{icon:"radiation",content:"Pulse Radiation",tooltip:"Mutates a random block of either the occupant's UI or SE.",tooltipPosition:"top-start",mt:"0.5rem",onClick:function(){function x(){return I("pulseRadiation")}return x}()})]})},u=function(N,y){var B=(0,a.useBackend)(y),I=B.act,w=B.data,T=w.buffers,A=T.map(function(x,E){return(0,e.createComponentVNode)(2,s,{id:E+1,name:"Buffer "+(E+1),buffer:x},E)});return(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{height:"75%",mt:1,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Buffers",children:A})}),(0,e.createComponentVNode)(2,t.Stack.Item,{height:"25%",children:(0,e.createComponentVNode)(2,i)})]})},s=function(N,y){var B=(0,a.useBackend)(y),I=B.act,w=B.data,T=N.id,A=N.name,x=N.buffer,E=w.isInjectorReady,M=A+(x.data?" - "+x.label:"");return(0,e.createComponentVNode)(2,t.Box,{backgroundColor:"rgba(0, 0, 0, 0.33)",mb:"0.5rem",children:(0,e.createComponentVNode)(2,t.Section,{title:M,mx:"0",lineHeight:"18px",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button.Confirm,{disabled:!x.data,icon:"trash",content:"Clear",onClick:function(){function D(){return I("bufferOption",{option:"clear",id:T})}return D}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:!x.data,icon:"pen",content:"Rename",onClick:function(){function D(){return I("bufferOption",{option:"changeLabel",id:T})}return D}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:!x.data||!w.hasDisk,icon:"save",content:"Export",tooltip:"Exports this buffer to the currently loaded data disk.",tooltipPosition:"bottom-start",onClick:function(){function D(){return I("bufferOption",{option:"saveDisk",id:T})}return D}()})],4),children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Write",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-circle-down",content:"Subject U.I",mb:"0",onClick:function(){function D(){return I("bufferOption",{option:"saveUI",id:T})}return D}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-circle-down",content:"Subject U.I and U.E.",mb:"0",onClick:function(){function D(){return I("bufferOption",{option:"saveUIAndUE",id:T})}return D}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-circle-down",content:"Subject S.E.",mb:"0",onClick:function(){function D(){return I("bufferOption",{option:"saveSE",id:T})}return D}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:!w.hasDisk||!w.disk.data,icon:"arrow-circle-down",content:"From Disk",mb:"0",onClick:function(){function D(){return I("bufferOption",{option:"loadDisk",id:T})}return D}()})]}),!!x.data&&(0,e.createFragment)([(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Subject",children:x.owner||(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"Unknown"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Data Type",children:[x.type==="ui"?"Unique Identifiers":"Structural Enzymes",!!x.ue&&" and Unique Enzymes"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Transfer to",children:[(0,e.createComponentVNode)(2,t.Button,{disabled:!E,icon:E?"syringe":"spinner",iconSpin:!E,content:"Injector",mb:"0",onClick:function(){function D(){return I("bufferOption",{option:"createInjector",id:T})}return D}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:!E,icon:E?"syringe":"spinner",iconSpin:!E,content:"Block Injector",mb:"0",onClick:function(){function D(){return I("bufferOption",{option:"createInjector",id:T,block:1})}return D}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"user",content:"Subject",mb:"0",onClick:function(){function D(){return I("bufferOption",{option:"transfer",id:T})}return D}()})]})],4)]}),!x.data&&(0,e.createComponentVNode)(2,t.Box,{color:"label",mt:"0.5rem",children:"This buffer is empty."})]})})},i=function(N,y){var B=(0,a.useBackend)(y),I=B.act,w=B.data,T=w.hasDisk,A=w.disk;return(0,e.createComponentVNode)(2,t.Section,{title:"Data Disk",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button.Confirm,{disabled:!T||!A.data,icon:"trash",content:"Wipe",onClick:function(){function x(){return I("wipeDisk")}return x}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:!T,icon:"eject",content:"Eject",onClick:function(){function x(){return I("ejectDisk")}return x}()})],4),children:T?A.data?(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Label",children:A.label?A.label:"No label"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Subject",children:A.owner?A.owner:(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"Unknown"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Data Type",children:[A.type==="ui"?"Unique Identifiers":"Structural Enzymes",!!A.ue&&" and Unique Enzymes"]})]}):(0,e.createComponentVNode)(2,t.Box,{color:"label",children:"Disk is blank."}):(0,e.createComponentVNode)(2,t.Box,{color:"label",textAlign:"center",my:"1rem",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"save-o",size:"4"}),(0,e.createVNode)(1,"br"),"No disk inserted."]})})},v=function(N,y){var B=(0,a.useBackend)(y),I=B.act,w=B.data,T=w.isBeakerLoaded,A=w.beakerVolume,x=w.beakerLabel;return(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Rejuvenators and Beaker",buttons:(0,e.createComponentVNode)(2,t.Button,{disabled:!T,icon:"eject",content:"Eject",onClick:function(){function E(){return I("ejectBeaker")}return E}()}),children:T?(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Inject",children:[S.map(function(E,M){return(0,e.createComponentVNode)(2,t.Button,{disabled:E>A,icon:"syringe",content:E,onClick:function(){function D(){return I("injectRejuvenators",{amount:E})}return D}()},M)}),(0,e.createComponentVNode)(2,t.Button,{disabled:A<=0,icon:"syringe",content:"All",onClick:function(){function E(){return I("injectRejuvenators",{amount:A})}return E}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Beaker",children:[(0,e.createComponentVNode)(2,t.Box,{mb:"0.5rem",children:x||"No label"}),A?(0,e.createComponentVNode)(2,t.Box,{color:"good",children:[A," unit",A===1?"":"s"," remaining"]}):(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:"Empty"})]})]}):(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,grow:!0,textAlign:"center",align:"center",color:"label",children:[(0,e.createComponentVNode)(2,t.Icon.Stack,{children:[(0,e.createComponentVNode)(2,t.Icon,{name:"flask",size:5,color:"silver"}),(0,e.createComponentVNode)(2,t.Icon,{name:"slash",size:5,color:"red"})]}),(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"h3",null,"No beaker loaded.",16)]})})})},C=function(N,y){return(0,e.createComponentVNode)(2,t.Dimmer,{textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"spinner",size:"5",spin:!0}),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Box,{color:"average",children:(0,e.createVNode)(1,"h1",null,[(0,e.createComponentVNode)(2,t.Icon,{name:"radiation"}),(0,e.createTextVNode)("\xA0Irradiating occupant\xA0"),(0,e.createComponentVNode)(2,t.Icon,{name:"radiation"})],4)}),(0,e.createComponentVNode)(2,t.Box,{color:"label",children:(0,e.createVNode)(1,"h3",null,[(0,e.createTextVNode)("For "),N.duration,(0,e.createTextVNode)(" second"),N.duration===1?"":"s"],0)})]})},g=function(N,y){for(var B=(0,a.useBackend)(y),I=B.act,w=B.data,T=N.dnaString,A=N.selectedBlock,x=N.selectedSubblock,E=N.blockSize,M=N.action,D=T.split(""),P=0,R=[],j=function(){for(var _=F/E+1,z=[],G=function(){var J=X+1;z.push((0,e.createComponentVNode)(2,t.Button,{selected:A===_&&x===J,content:D[F+X],mb:"0",onClick:function(){function ie(){return I(M,{block:_,subblock:J})}return ie}()}))},X=0;Xi.spawnpoints?"red":"green",children:[i.total," total, versus ",i.spawnpoints," spawnpoints"]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Dispatch",children:(0,e.createComponentVNode)(2,t.Button,{width:10.5,textAlign:"center",icon:"ambulance",content:"Send ERT",onClick:function(){function N(){return s("dispatch_ert",{silent:g})}return N}()})})]})})})},p=function(m,d){var u=(0,a.useBackend)(d),s=u.act,i=u.data,v=i.ert_request_messages;return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,children:v&&v.length?v.map(function(C){return(0,e.createComponentVNode)(2,t.Section,{title:C.time,buttons:(0,e.createComponentVNode)(2,t.Button,{content:C.sender_real_name,onClick:function(){function g(){return s("view_player_panel",{uid:C.sender_uid})}return g}(),tooltip:"View player panel"}),children:C.message},(0,f.decodeHtmlEntities)(C.time))}):(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,grow:!0,textAlign:"center",align:"center",color:"average",children:[(0,e.createComponentVNode)(2,t.Icon.Stack,{children:[(0,e.createComponentVNode)(2,t.Icon,{name:"broadcast-tower",size:5,color:"gray"}),(0,e.createComponentVNode)(2,t.Icon,{name:"slash",size:5,color:"red"})]}),(0,e.createVNode)(1,"br"),"No ERT requests."]})})})})},l=function(m,d){var u=(0,a.useBackend)(d),s=u.act,i=u.data,v=(0,a.useLocalState)(d,"text",""),C=v[0],g=v[1];return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,children:[(0,e.createComponentVNode)(2,t.Input,{placeholder:"Enter ERT denial reason here,\nMultiline input is accepted.",rows:19,fluid:!0,multiline:1,value:C,onChange:function(){function h(N,y){return g(y)}return h}()}),(0,e.createComponentVNode)(2,t.Button.Confirm,{content:"Deny ERT",fluid:!0,icon:"times",center:!0,mt:2,textAlign:"center",onClick:function(){function h(){return s("deny_ert",{reason:C})}return h}()})]})})}},24503:function(L,r,n){"use strict";r.__esModule=!0,r.EconomyManager=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=n(99665),V=r.EconomyManager=function(){function S(b,p){return(0,e.createComponentVNode)(2,o.Window,{width:600,height:325,children:[(0,e.createComponentVNode)(2,f.ComplexModal),(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,className:"Layout__content--flexColumn",children:(0,e.createComponentVNode)(2,k)})]})}return S}(),k=function(b,p){var l=(0,a.useBackend)(p),c=l.act,m=l.data,d=m.next_payroll_time;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{children:[(0,e.createComponentVNode)(2,t.Box,{fontSize:"1.4rem",bold:!0,children:[(0,e.createComponentVNode)(2,t.Icon,{name:"coins",verticalAlign:"middle",size:3,mr:"1rem"}),"Economy Manager"]}),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.LabeledList,{label:"Pay Bonuses and Deductions",children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Global",children:(0,e.createComponentVNode)(2,t.Button,{icon:"dollar-sign",width:"auto",content:"Global Payroll Modification",onClick:function(){function u(){return c("payroll_modification",{mod_type:"global"})}return u}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Department Accounts",children:(0,e.createComponentVNode)(2,t.Button,{icon:"dollar-sign",width:"auto",content:"Department Account Payroll Modification",onClick:function(){function u(){return c("payroll_modification",{mod_type:"department"})}return u}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Department Members",children:(0,e.createComponentVNode)(2,t.Button,{icon:"dollar-sign",width:"auto",content:"Department Members Payroll Modification",onClick:function(){function u(){return c("payroll_modification",{mod_type:"department_members"})}return u}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Single Accounts",children:(0,e.createComponentVNode)(2,t.Button,{icon:"dollar-sign",width:"auto",content:"Crew Member Payroll Modification",onClick:function(){function u(){return c("payroll_modification",{mod_type:"crew_member"})}return u}()})})]}),(0,e.createVNode)(1,"hr"),(0,e.createComponentVNode)(2,t.Box,{mb:.5,children:["Next Payroll in: ",d," Minutes"]}),(0,e.createComponentVNode)(2,t.Button,{icon:"angle-double-left",width:"auto",color:"bad",content:"Delay Payroll",onClick:function(){function u(){return c("delay_payroll")}return u}()}),(0,e.createComponentVNode)(2,t.Button,{width:"auto",content:"Set Payroll Time",onClick:function(){function u(){return c("set_payroll")}return u}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"angle-double-right",width:"auto",color:"good",content:"Accelerate Payroll",onClick:function(){function u(){return c("accelerate_payroll")}return u}()})]}),(0,e.createComponentVNode)(2,t.NoticeBox,{children:[(0,e.createVNode)(1,"b",null,"WARNING:",16)," You take full responsibility for unbalancing the economy with these buttons!"]})],4)}},15543:function(L,r,n){"use strict";r.__esModule=!0,r.Electropack=void 0;var e=n(96524),a=n(36121),t=n(17899),o=n(24674),f=n(45493),V=r.Electropack=function(){function k(S,b){var p=(0,t.useBackend)(b),l=p.act,c=p.data,m=c.power,d=c.code,u=c.frequency,s=c.minFrequency,i=c.maxFrequency;return(0,e.createComponentVNode)(2,f.Window,{width:360,height:135,children:(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,o.Section,{children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Power",children:(0,e.createComponentVNode)(2,o.Button,{icon:m?"power-off":"times",content:m?"On":"Off",selected:m,onClick:function(){function v(){return l("power")}return v}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Frequency",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"sync",content:"Reset",onClick:function(){function v(){return l("reset",{reset:"freq"})}return v}()}),children:(0,e.createComponentVNode)(2,o.NumberInput,{animate:!0,unit:"kHz",step:.2,stepPixelSize:6,minValue:s/10,maxValue:i/10,value:u/10,format:function(){function v(C){return(0,a.toFixed)(C,1)}return v}(),width:"80px",onChange:function(){function v(C,g){return l("freq",{freq:g})}return v}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Code",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"sync",content:"Reset",onClick:function(){function v(){return l("reset",{reset:"code"})}return v}()}),children:(0,e.createComponentVNode)(2,o.NumberInput,{animate:!0,step:1,stepPixelSize:6,minValue:1,maxValue:100,value:d,width:"80px",onChange:function(){function v(C,g){return l("code",{code:g})}return v}()})})]})})})})}return k}()},57013:function(L,r,n){"use strict";r.__esModule=!0,r.Emojipedia=void 0;var e=n(96524),a=n(28234),t=n(17899),o=n(24674),f=n(45493),V=r.Emojipedia=function(){function S(b,p){var l=(0,t.useBackend)(p),c=l.data,m=c.emoji_list,d=(0,t.useLocalState)(p,"searchText",""),u=d[0],s=d[1],i=m.filter(function(v){return v.name.toLowerCase().includes(u.toLowerCase())});return(0,e.createComponentVNode)(2,f.Window,{width:325,height:400,children:(0,e.createComponentVNode)(2,f.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"Emojipedia v1.0.1",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Input,{placeholder:"Search by name",value:u,onInput:function(){function v(C,g){return s(g)}return v}()}),(0,e.createComponentVNode)(2,o.Button,{tooltip:"Click on an emoji to copy its tag!",tooltipPosition:"bottom",icon:"circle-question"})],4),children:i.map(function(v){return(0,e.createComponentVNode)(2,o.Button,{m:1,color:"transparent",className:(0,a.classes)(["emoji16x16","emoji-"+v.name]),style:{transform:"scale(1.5)"},tooltip:v.name,onClick:function(){function C(){k(v.name)}return C}()},v.name)})})})})}return S}(),k=function(b){var p=document.createElement("input"),l=":"+b+":";p.value=l,document.body.appendChild(p),p.select(),document.execCommand("copy"),document.body.removeChild(p)}},99012:function(L,r,n){"use strict";r.__esModule=!0,r.EvolutionMenu=void 0;var e=n(96524),a=n(78234),t=n(17899),o=n(24674),f=n(45493),V=n(74041),k=n(50640),S=r.EvolutionMenu=function(){function l(c,m){return(0,e.createComponentVNode)(2,f.Window,{width:480,height:580,theme:"changeling",children:(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,b),(0,e.createComponentVNode)(2,p)]})})})}return l}(),b=function(c,m){var d=(0,t.useBackend)(m),u=d.act,s=d.data,i=s.evo_points,v=s.can_respec;return(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Section,{title:"Evolution Points",height:5.5,children:(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.Stack.Item,{mt:.5,color:"label",children:"Points remaining:"}),(0,e.createComponentVNode)(2,o.Stack.Item,{mt:.5,ml:2,bold:!0,color:"#1b945c",children:i}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:[(0,e.createComponentVNode)(2,o.Button,{ml:2.5,disabled:!v,content:"Readapt",icon:"sync",onClick:function(){function C(){return u("readapt")}return C}()}),(0,e.createComponentVNode)(2,o.Button,{tooltip:"By transforming a humanoid into a husk, we gain the ability to readapt our chosen evolutions.",tooltipPosition:"bottom",icon:"question-circle"})]})]})})})},p=function(c,m){var d=(0,t.useBackend)(m),u=d.act,s=d.data,i=s.evo_points,v=s.ability_tabs,C=s.purchased_abilities,g=s.view_mode,h=(0,t.useLocalState)(m,"selectedTab",v[0]),N=h[0],y=h[1],B=(0,t.useLocalState)(m,"searchText",""),I=B[0],w=B[1],T=(0,t.useLocalState)(m,"ability_tabs",v[0].abilities),A=T[0],x=T[1],E=function(R,j){if(j===void 0&&(j=""),!R||R.length===0)return[];var F=(0,a.createSearch)(j,function(U){return U.name+"|"+U.description});return(0,V.flow)([(0,k.filter)(function(U){return U==null?void 0:U.name}),(0,k.filter)(F),(0,k.sortBy)(function(U){return U==null?void 0:U.name})])(R)},M=function(R){if(w(R),R==="")return x(N.abilities);x(E(v.map(function(j){return j.abilities}).flat(),R))},D=function(R){y(R),x(R.abilities),w("")};return(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"Abilities",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Input,{width:"200px",placeholder:"Search Abilities",onInput:function(){function P(R,j){M(j)}return P}(),value:I}),(0,e.createComponentVNode)(2,o.Button,{icon:g?"square-o":"check-square-o",selected:!g,content:"Compact",onClick:function(){function P(){return u("set_view_mode",{mode:0})}return P}()}),(0,e.createComponentVNode)(2,o.Button,{icon:g?"check-square-o":"square-o",selected:g,content:"Expanded",onClick:function(){function P(){return u("set_view_mode",{mode:1})}return P}()})],4),children:[(0,e.createComponentVNode)(2,o.Tabs,{children:v.map(function(P){return(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:I===""&&N===P,onClick:function(){function R(){D(P)}return R}(),children:P.category},P)})}),A.map(function(P,R){return(0,e.createComponentVNode)(2,o.Box,{p:.5,mx:-1,className:"candystripe",children:[(0,e.createComponentVNode)(2,o.Stack,{align:"center",children:[(0,e.createComponentVNode)(2,o.Stack.Item,{ml:.5,color:"#dedede",children:P.name}),C.includes(P.power_path)&&(0,e.createComponentVNode)(2,o.Stack.Item,{ml:2,bold:!0,color:"#1b945c",children:"(Purchased)"}),(0,e.createComponentVNode)(2,o.Stack.Item,{mr:3,textAlign:"right",grow:1,children:[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"label",children:["Cost:"," "]}),(0,e.createComponentVNode)(2,o.Box,{as:"span",bold:!0,color:"#1b945c",children:P.cost})]}),(0,e.createComponentVNode)(2,o.Stack.Item,{textAlign:"right",children:(0,e.createComponentVNode)(2,o.Button,{mr:.5,disabled:P.cost>i||C.includes(P.power_path),content:"Evolve",onClick:function(){function j(){return u("purchase",{power_path:P.power_path})}return j}()})})]}),!!g&&(0,e.createComponentVNode)(2,o.Stack,{color:"#8a8a8a",my:1,ml:1.5,width:"95%",children:P.description+" "+P.helptext})]},R)})]})})}},37504:function(L,r,n){"use strict";r.__esModule=!0,r.ExosuitFabricator=void 0;var e=n(96524),a=n(28234),t=n(78234),o=n(17899),f=n(24674),V=n(99509),k=n(45493),S=["id","amount","lineDisplay","onClick"];function b(C,g){if(C==null)return{};var h={},N=Object.keys(C),y,B;for(B=0;B=0)&&(h[y]=C[y]);return h}var p=2e3,l={bananium:"clown",tranquillite:"mime"},c=r.ExosuitFabricator=function(){function C(g,h){var N=(0,o.useBackend)(h),y=N.act,B=N.data,I=B.building;return(0,e.createComponentVNode)(2,k.Window,{width:950,height:625,children:(0,e.createComponentVNode)(2,k.Window.Content,{className:"Exofab",children:(0,e.createComponentVNode)(2,f.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,f.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,d)}),I&&(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,u)})]})}),(0,e.createComponentVNode)(2,f.Stack.Item,{width:"30%",children:(0,e.createComponentVNode)(2,f.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,m)}),(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,s)})]})})]})})})}return C}(),m=function(g,h){var N=(0,o.useBackend)(h),y=N.act,B=N.data,I=B.materials,w=B.capacity,T=Object.values(I).reduce(function(A,x){return A+x},0);return(0,e.createComponentVNode)(2,f.Section,{fill:!0,scrollable:!0,title:"Materials",className:"Exofab__materials",buttons:(0,e.createComponentVNode)(2,f.Box,{color:"label",mt:"0.25rem",children:[(T/w*100).toPrecision(3),"% full"]}),children:["metal","glass","silver","gold","uranium","titanium","plasma","diamond","bluespace","bananium","tranquillite","plastic"].map(function(A){return(0,e.createComponentVNode)(2,i,{mt:-2,id:A,bold:A==="metal"||A==="glass",onClick:function(){function x(){return y("withdraw",{id:A})}return x}()},A)})})},d=function(g,h){var N=(0,o.useBackend)(h),y=N.act,B=N.data,I=B.curCategory,w=B.categories,T=B.designs,A=B.syncing,x=(0,o.useLocalState)(h,"searchText",""),E=x[0],M=x[1],D=(0,t.createSearch)(E,function(R){return R.name}),P=T.filter(D);return(0,e.createComponentVNode)(2,f.Section,{fill:!0,scrollable:!0,className:"Exofab__designs",title:(0,e.createComponentVNode)(2,f.Dropdown,{className:"Exofab__dropdown",selected:I,options:w,onSelected:function(){function R(j){return y("category",{cat:j})}return R}()}),buttons:(0,e.createComponentVNode)(2,f.Box,{mt:"2px",children:[(0,e.createComponentVNode)(2,f.Button,{icon:"plus",content:"Queue all",onClick:function(){function R(){return y("queueall")}return R}()}),(0,e.createComponentVNode)(2,f.Button,{disabled:A,iconSpin:A,icon:"sync-alt",content:A?"Synchronizing...":"Synchronize with R&D servers",onClick:function(){function R(){return y("sync")}return R}()})]}),children:[(0,e.createComponentVNode)(2,f.Input,{placeholder:"Search by name...",mb:"0.5rem",width:"100%",onInput:function(){function R(j,F){return M(F)}return R}()}),P.map(function(R){return(0,e.createComponentVNode)(2,v,{design:R},R.id)}),P.length===0&&(0,e.createComponentVNode)(2,f.Box,{color:"label",children:"No designs found."})]})},u=function(g,h){var N=(0,o.useBackend)(h),y=N.act,B=N.data,I=B.building,w=B.buildStart,T=B.buildEnd,A=B.worldTime;return(0,e.createComponentVNode)(2,f.Section,{className:"Exofab__building",stretchContents:!0,children:(0,e.createComponentVNode)(2,f.ProgressBar.Countdown,{start:w,current:A,end:T,children:(0,e.createComponentVNode)(2,f.Stack,{children:[(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Icon,{name:"cog",spin:!0})}),(0,e.createComponentVNode)(2,f.Stack.Item,{children:["Building ",I,"\xA0(",(0,e.createComponentVNode)(2,V.Countdown,{current:A,timeLeft:T-A,format:function(){function x(E,M){return M.substr(3)}return x}()}),")"]})]})})})},s=function(g,h){var N=(0,o.useBackend)(h),y=N.act,B=N.data,I=B.queue,w=B.processingQueue,T=Object.entries(B.queueDeficit).filter(function(x){return x[1]<0}),A=I.reduce(function(x,E){return x+E.time},0);return(0,e.createComponentVNode)(2,f.Section,{fill:!0,scrollable:!0,className:"Exofab__queue",title:"Queue",buttons:(0,e.createComponentVNode)(2,f.Box,{children:[(0,e.createComponentVNode)(2,f.Button,{selected:w,icon:w?"toggle-on":"toggle-off",content:"Process",onClick:function(){function x(){return y("process")}return x}()}),(0,e.createComponentVNode)(2,f.Button,{disabled:I.length===0,icon:"eraser",content:"Clear",onClick:function(){function x(){return y("unqueueall")}return x}()})]}),children:(0,e.createComponentVNode)(2,f.Stack,{fill:!0,vertical:!0,children:I.length===0?(0,e.createComponentVNode)(2,f.Box,{color:"label",children:"The queue is empty."}):(0,e.createFragment)([(0,e.createComponentVNode)(2,f.Stack.Item,{className:"Exofab__queue--queue",grow:!0,overflow:"auto",children:I.map(function(x,E){return(0,e.createComponentVNode)(2,f.Box,{color:x.notEnough&&"bad",children:[E+1,". ",x.name,E>0&&(0,e.createComponentVNode)(2,f.Button,{icon:"arrow-up",onClick:function(){function M(){return y("queueswap",{from:E+1,to:E})}return M}()}),E0&&(0,e.createComponentVNode)(2,f.Stack.Item,{className:"Exofab__queue--time",children:[(0,e.createComponentVNode)(2,f.Divider),"Processing time:",(0,e.createComponentVNode)(2,f.Icon,{name:"clock",mx:"0.5rem"}),(0,e.createComponentVNode)(2,f.Box,{inline:!0,bold:!0,children:new Date(A/10*1e3).toISOString().substr(14,5)})]}),Object.keys(T).length>0&&(0,e.createComponentVNode)(2,f.Stack.Item,{className:"Exofab__queue--deficit",shrink:"0",children:[(0,e.createComponentVNode)(2,f.Divider),"Lacking materials to complete:",T.map(function(x){return(0,e.createComponentVNode)(2,f.Box,{children:(0,e.createComponentVNode)(2,i,{id:x[0],amount:-x[1],lineDisplay:!0})},x[0])})]})],0)})})},i=function(g,h){var N=(0,o.useBackend)(h),y=N.act,B=N.data,I=g.id,w=g.amount,T=g.lineDisplay,A=g.onClick,x=b(g,S),E=B.materials[I]||0,M=w||E;if(!(M<=0&&!(I==="metal"||I==="glass"))){var D=w&&w>E;return(0,e.normalizeProps)((0,e.createComponentVNode)(2,f.Stack,Object.assign({align:"center",className:(0,a.classes)(["Exofab__material",T&&"Exofab__material--line"])},x,{children:T?(0,e.createFragment)([(0,e.createComponentVNode)(2,f.Stack.Item,{className:(0,a.classes)(["materials32x32",I])}),(0,e.createComponentVNode)(2,f.Stack.Item,{className:"Exofab__material--amount",color:D&&"bad",ml:0,mr:1,children:M.toLocaleString("en-US")})],4):(0,e.createFragment)([(0,e.createComponentVNode)(2,f.Stack.Item,{basis:"content",children:(0,e.createComponentVNode)(2,f.Button,{width:"85%",color:"transparent",onClick:A,children:(0,e.createComponentVNode)(2,f.Box,{mt:1,className:(0,a.classes)(["materials32x32",I])})})}),(0,e.createComponentVNode)(2,f.Stack.Item,{grow:"1",children:[(0,e.createComponentVNode)(2,f.Box,{className:"Exofab__material--name",children:I}),(0,e.createComponentVNode)(2,f.Box,{className:"Exofab__material--amount",children:[M.toLocaleString("en-US")," cm\xB3 (",Math.round(M/p*10)/10," ","sheets)"]})]})],4)})))}},v=function(g,h){var N=(0,o.useBackend)(h),y=N.act,B=N.data,I=g.design;return(0,e.createComponentVNode)(2,f.Box,{className:"Exofab__design",children:[(0,e.createComponentVNode)(2,f.Button,{disabled:I.notEnough||B.building,icon:"cog",content:I.name,onClick:function(){function w(){return y("build",{id:I.id})}return w}()}),(0,e.createComponentVNode)(2,f.Button,{icon:"plus-circle",onClick:function(){function w(){return y("queue",{id:I.id})}return w}()}),(0,e.createComponentVNode)(2,f.Box,{className:"Exofab__design--cost",children:Object.entries(I.cost).map(function(w){return(0,e.createComponentVNode)(2,f.Box,{children:(0,e.createComponentVNode)(2,i,{id:w[0],amount:w[1],lineDisplay:!0})},w[0])})}),(0,e.createComponentVNode)(2,f.Stack,{className:"Exofab__design--time",children:(0,e.createComponentVNode)(2,f.Stack.Item,{children:[(0,e.createComponentVNode)(2,f.Icon,{name:"clock"}),I.time>0?(0,e.createFragment)([I.time/10,(0,e.createTextVNode)(" seconds")],0):"Instant"]})})]})}},9466:function(L,r,n){"use strict";r.__esModule=!0,r.ExperimentConsole=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=new Map([[0,{text:"Conscious",color:"good"}],[1,{text:"Unconscious",color:"average"}],[2,{text:"Deceased",color:"bad"}]]),V=new Map([[0,{label:"Probe",icon:"thermometer"}],[1,{label:"Dissect",icon:"brain"}],[2,{label:"Analyze",icon:"search"}]]),k=r.ExperimentConsole=function(){function S(b,p){var l=(0,a.useBackend)(p),c=l.act,m=l.data,d=m.open,u=m.feedback,s=m.occupant,i=m.occupant_name,v=m.occupant_status,C=function(){function h(){if(!s)return(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No specimen detected."});var N=function(){function B(){return f.get(v)}return B}(),y=N();return(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Name",children:i}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",color:y.color,children:y.text}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Experiments",children:[0,1,2].map(function(B){return(0,e.createComponentVNode)(2,t.Button,{icon:V.get(B).icon,content:V.get(B).label,onClick:function(){function I(){return c("experiment",{experiment_type:B})}return I}()},B)})})]})}return h}(),g=C();return(0,e.createComponentVNode)(2,o.Window,{theme:"abductor",width:350,height:200,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:u})})}),(0,e.createComponentVNode)(2,t.Section,{title:"Scanner",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"eject",content:"Eject",disabled:!d,onClick:function(){function h(){return c("door")}return h}()}),children:g})]})})}return S}()},77284:function(L,r,n){"use strict";r.__esModule=!0,r.ExternalAirlockController=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=0,V=1013,k=function(p){var l="good",c=80,m=95,d=110,u=120;return pd?l="average":p>u&&(l="bad"),l},S=r.ExternalAirlockController=function(){function b(p,l){var c=(0,a.useBackend)(l),m=c.act,d=c.data,u=d.chamber_pressure,s=d.exterior_status,i=d.interior_status,v=d.processing;return(0,e.createComponentVNode)(2,o.Window,{width:330,height:205,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Information",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Chamber Pressure",children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:k(u),value:u,minValue:f,maxValue:V,children:[u," kPa"]})})})}),(0,e.createComponentVNode)(2,t.Section,{title:"Actions",buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Abort",icon:"ban",color:"red",disabled:!v,onClick:function(){function C(){return m("abort")}return C}()}),children:[(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Button,{width:"49%",content:"Cycle to Exterior",icon:"arrow-circle-left",disabled:v,onClick:function(){function C(){return m("cycle_ext")}return C}()}),(0,e.createComponentVNode)(2,t.Button,{width:"50%",content:"Cycle to Interior",icon:"arrow-circle-right",disabled:v,onClick:function(){function C(){return m("cycle_int")}return C}()})]}),(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Button,{width:"49%",content:"Force Exterior Door",icon:"exclamation-triangle",color:i==="open"?"red":v?"yellow":null,onClick:function(){function C(){return m("force_ext")}return C}()}),(0,e.createComponentVNode)(2,t.Button,{width:"50%",content:"Force Interior Door",icon:"exclamation-triangle",color:i==="open"?"red":v?"yellow":null,onClick:function(){function C(){return m("force_int")}return C}()})]})]})]})})}return b}()},52516:function(L,r,n){"use strict";r.__esModule=!0,r.FaxMachine=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.FaxMachine=function(){function V(k,S){var b=(0,a.useBackend)(S),p=b.act,l=b.data;return(0,e.createComponentVNode)(2,o.Window,{width:540,height:295,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Authorization",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"ID Card",children:(0,e.createComponentVNode)(2,t.Button,{icon:l.scan_name?"eject":"id-card",selected:l.scan_name,content:l.scan_name?l.scan_name:"-----",tooltip:l.scan_name?"Eject ID":"Insert ID",onClick:function(){function c(){return p("scan")}return c}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Authorize",children:(0,e.createComponentVNode)(2,t.Button,{icon:l.authenticated?"sign-out-alt":"id-card",selected:l.authenticated,disabled:l.nologin,content:l.realauth?"Log Out":"Log In",onClick:function(){function c(){return p("auth")}return c}()})})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Fax Menu",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Network",children:l.network}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Document",children:[(0,e.createComponentVNode)(2,t.Button,{icon:l.paper?"eject":"paperclip",disabled:!l.authenticated&&!l.paper,content:l.paper?l.paper:"-----",onClick:function(){function c(){return p("paper")}return c}()}),!!l.paper&&(0,e.createComponentVNode)(2,t.Button,{icon:"pencil-alt",content:"Rename",onClick:function(){function c(){return p("rename")}return c}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Sending To",children:(0,e.createComponentVNode)(2,t.Button,{icon:"print",content:l.destination?l.destination:"-----",disabled:!l.authenticated,onClick:function(){function c(){return p("dept")}return c}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Action",children:(0,e.createComponentVNode)(2,t.Button,{icon:"envelope",content:l.sendError?l.sendError:"Send",disabled:!l.paper||!l.destination||!l.authenticated||l.sendError,onClick:function(){function c(){return p("send")}return c}()})})]})})]})})}return V}()},24777:function(L,r,n){"use strict";r.__esModule=!0,r.FilingCabinet=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.FilingCabinet=function(){function V(k,S){var b=(0,a.useBackend)(S),p=b.act,l=b.data,c=b.config,m=l.contents,d=c.title;return(0,e.createComponentVNode)(2,o.Window,{width:400,height:300,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Contents",children:[!m&&(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,grow:!0,textAlign:"center",align:"center",color:"average",children:[(0,e.createComponentVNode)(2,t.Icon.Stack,{children:[(0,e.createComponentVNode)(2,t.Icon,{name:"folder-open",size:5,color:"gray"}),(0,e.createComponentVNode)(2,t.Icon,{name:"slash",size:5,color:"red"})]}),(0,e.createVNode)(1,"br"),"The ",d," is empty."]})}),!!m&&m.slice().map(function(u){return(0,e.createComponentVNode)(2,t.Stack,{mt:.5,className:"candystripe",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"80%",children:u.display_name}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-down",content:"Retrieve",onClick:function(){function s(){return p("retrieve",{index:u.index})}return s}()})})]},u)})]})})})})}return V}()},88361:function(L,r,n){"use strict";r.__esModule=!0,r.FloorPainter=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=function(S,b){var p=(0,a.useBackend)(b),l=p.act,c=p.data,m=S.image,d=S.isSelected,u=S.onSelect;return(0,e.createVNode)(1,"img",null,null,1,{src:"data:image/jpeg;base64,"+m,style:{"border-style":d&&"solid"||"none","border-width":"2px","border-color":"orange",padding:d&&"2px"||"4px"},onClick:u})},V=r.FloorPainter=function(){function k(S,b){var p=(0,a.useBackend)(b),l=p.act,c=p.data,m=c.availableStyles,d=c.selectedStyle,u=c.selectedDir,s=c.directionsPreview,i=c.allStylesPreview;return(0,e.createComponentVNode)(2,o.Window,{width:405,height:475,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Decal setup",children:[(0,e.createComponentVNode)(2,t.Flex,{children:[(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"chevron-left",onClick:function(){function v(){return l("cycle_style",{offset:-1})}return v}()})}),(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Dropdown,{options:m,selected:d,width:"150px",height:"20px",ml:"2px",mr:"2px",nochevron:!0,onSelected:function(){function v(C){return l("select_style",{style:C})}return v}()})}),(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"chevron-right",onClick:function(){function v(){return l("cycle_style",{offset:1})}return v}()})})]}),(0,e.createComponentVNode)(2,t.Box,{mt:"5px",mb:"5px",children:(0,e.createComponentVNode)(2,t.Flex,{overflowY:"auto",maxHeight:"220px",wrap:"wrap",children:m.map(function(v){return(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,f,{image:i[v],isSelected:d===v,onSelect:function(){function C(){return l("select_style",{style:v})}return C}()})},"{style}")})})}),(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Direction",children:(0,e.createComponentVNode)(2,t.Table,{style:{display:"inline"},children:["north","","south"].map(function(v){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[v+"west",v,v+"east"].map(function(C){return(0,e.createComponentVNode)(2,t.Table.Cell,{style:{"vertical-align":"middle","text-align":"center"},children:C===""?(0,e.createComponentVNode)(2,t.Icon,{name:"arrows-alt",size:3}):(0,e.createComponentVNode)(2,f,{image:s[C],isSelected:C===u,onSelect:function(){function g(){return l("select_direction",{direction:C})}return g}()})},C)})},v)})})})})]})})})}return k}()},70078:function(L,r,n){"use strict";r.__esModule=!0,r.GPS=void 0;var e=n(96524),a=n(36121),t=n(17899),o=n(24674),f=n(45493),V=function(d){return d?"("+d.join(", ")+")":"ERROR"},k=function(d,u){if(!(!d||!u)){if(d[2]!==u[2])return null;var s=Math.atan2(u[1]-d[1],u[0]-d[0]),i=Math.sqrt(Math.pow(u[1]-d[1],2)+Math.pow(u[0]-d[0],2));return{angle:(0,a.rad2deg)(s),distance:i}}},S=r.GPS=function(){function m(d,u){var s=(0,t.useBackend)(u),i=s.data,v=i.emped,C=i.active,g=i.area,h=i.position,N=i.saved;return(0,e.createComponentVNode)(2,f.Window,{width:400,height:600,children:(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:v?(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,basis:"0",children:(0,e.createComponentVNode)(2,b,{emp:!0})}):(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,p)}),C?(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,l,{area:g,position:h})}),N&&(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,l,{title:"Saved Position",position:N})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,basis:"0",children:(0,e.createComponentVNode)(2,c,{height:"100%"})})],0):(0,e.createComponentVNode)(2,b)],0)})})})}return m}(),b=function(d,u){var s=d.emp;return(0,e.createComponentVNode)(2,o.Section,{fill:!0,children:(0,e.createComponentVNode)(2,o.Box,{width:"100%",height:"100%",color:"label",textAlign:"center",children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,align:"center",color:"label",children:[(0,e.createComponentVNode)(2,o.Icon,{name:s?"ban":"power-off",mb:"0.5rem",size:"5"}),(0,e.createVNode)(1,"br"),s?"ERROR: Device temporarily lost signal.":"Device is disabled."]})})})})},p=function(d,u){var s=(0,t.useBackend)(u),i=s.act,v=s.data,C=v.active,g=v.tag,h=v.same_z,N=(0,t.useLocalState)(u,"newTag",g),y=N[0],B=N[1];return(0,e.createComponentVNode)(2,o.Section,{title:"Settings",buttons:(0,e.createComponentVNode)(2,o.Button,{selected:C,icon:C?"toggle-on":"toggle-off",content:C?"On":"Off",onClick:function(){function I(){return i("toggle")}return I}()}),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Tag",children:[(0,e.createComponentVNode)(2,o.Input,{width:"5rem",value:g,onEnter:function(){function I(){return i("tag",{newtag:y})}return I}(),onInput:function(){function I(w,T){return B(T)}return I}()}),(0,e.createComponentVNode)(2,o.Button,{disabled:g===y,width:"20px",mb:"0",ml:"0.25rem",onClick:function(){function I(){return i("tag",{newtag:y})}return I}(),children:(0,e.createComponentVNode)(2,o.Icon,{name:"pen"})})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Range",children:(0,e.createComponentVNode)(2,o.Button,{selected:!h,icon:h?"compress":"expand",content:h?"Local Sector":"Global",onClick:function(){function I(){return i("same_z")}return I}()})})]})})},l=function(d,u){var s=d.title,i=d.area,v=d.position;return(0,e.createComponentVNode)(2,o.Section,{title:s||"Position",children:(0,e.createComponentVNode)(2,o.Box,{fontSize:"1.5rem",children:[i&&(0,e.createFragment)([i,(0,e.createVNode)(1,"br")],0),V(v)]})})},c=function(d,u){var s=(0,t.useBackend)(u),i=s.data,v=i.position,C=i.signals;return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Section,Object.assign({fill:!0,scrollable:!0,title:"Signals"},d,{children:(0,e.createComponentVNode)(2,o.Table,{children:C.map(function(g){return Object.assign({},g,k(v,g.position))}).map(function(g,h){return(0,e.createComponentVNode)(2,o.Table.Row,{backgroundColor:h%2===0&&"rgba(255, 255, 255, 0.05)",children:[(0,e.createComponentVNode)(2,o.Table.Cell,{width:"30%",verticalAlign:"middle",color:"label",p:"0.25rem",bold:!0,children:g.tag}),(0,e.createComponentVNode)(2,o.Table.Cell,{verticalAlign:"middle",color:"grey",children:g.area}),(0,e.createComponentVNode)(2,o.Table.Cell,{verticalAlign:"middle",collapsing:!0,children:g.distance!==void 0&&(0,e.createComponentVNode)(2,o.Box,{opacity:Math.max(1-Math.min(g.distance,100)/100,.5),children:[(0,e.createComponentVNode)(2,o.Icon,{name:g.distance>0?"arrow-right":"circle",rotation:-g.angle}),"\xA0",Math.floor(g.distance)+"m"]})}),(0,e.createComponentVNode)(2,o.Table.Cell,{verticalAlign:"middle",pr:"0.25rem",collapsing:!0,children:V(g.position)})]},h)})})})))}},92246:function(L,r,n){"use strict";r.__esModule=!0,r.GeneModder=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(99665),f=n(45493),V=r.GeneModder=function(){function d(u,s){var i=(0,a.useBackend)(s),v=i.data,C=v.has_seed;return(0,e.createComponentVNode)(2,f.Window,{width:500,height:650,children:(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,b),(0,e.createComponentVNode)(2,o.ComplexModal,{maxWidth:"75%",maxHeight:"75%"}),C===0?(0,e.createComponentVNode)(2,S):(0,e.createComponentVNode)(2,k)]})})})}return d}(),k=function(u,s){var i=(0,a.useBackend)(s),v=i.act,C=i.data,g=C.disk;return(0,e.createComponentVNode)(2,t.Section,{title:"Genes",fill:!0,scrollable:!0,buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Insert Gene from Disk",disabled:!g||!g.can_insert||g.is_core,icon:"arrow-circle-down",onClick:function(){function h(){return v("insert")}return h}()}),children:[(0,e.createComponentVNode)(2,p),(0,e.createComponentVNode)(2,l),(0,e.createComponentVNode)(2,c)]})},S=function(u,s){return(0,e.createComponentVNode)(2,t.Section,{fill:!0,height:"85%",children:(0,e.createComponentVNode)(2,t.Stack,{height:"100%",children:(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,grow:"1",textAlign:"center",align:"center",color:"green",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"leaf",size:5,mb:"10px"}),(0,e.createVNode)(1,"br"),"The plant DNA manipulator is missing a seed."]})})})},b=function(u,s){var i=(0,a.useBackend)(s),v=i.act,C=i.data,g=C.has_seed,h=C.seed,N=C.has_disk,y=C.disk,B,I;return g?B=(0,e.createComponentVNode)(2,t.Stack.Item,{mb:"-6px",mt:"-4px",children:[(0,e.createVNode)(1,"img",null,null,1,{src:"data:image/jpeg;base64,"+h.image,style:{"vertical-align":"middle",width:"32px",margin:"-1px","margin-left":"-11px"}}),(0,e.createComponentVNode)(2,t.Button,{content:h.name,onClick:function(){function w(){return v("eject_seed")}return w}()}),(0,e.createComponentVNode)(2,t.Button,{ml:"3px",icon:"pen",tooltip:"Name Variant",onClick:function(){function w(){return v("variant_name")}return w}()})]}):B=(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{ml:3.3,content:"None",onClick:function(){function w(){return v("eject_seed")}return w}()})}),N?I=y.name:I="None",(0,e.createComponentVNode)(2,t.Section,{title:"Storage",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Plant Sample",children:B}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Data Disk",children:(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{ml:3.3,content:I,onClick:function(){function w(){return v("eject_disk")}return w}()})})})]})})},p=function(u,s){var i=(0,a.useBackend)(s),v=i.act,C=i.data,g=C.disk,h=C.core_genes;return(0,e.createComponentVNode)(2,t.Collapsible,{title:"Core Genes",open:!0,children:[h.map(function(N){return(0,e.createComponentVNode)(2,t.Stack,{py:"2px",className:"candystripe",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"100%",ml:"2px",children:N.name}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Extract",disabled:!(g!=null&&g.can_extract),icon:"save",onClick:function(){function y(){return v("extract",{id:N.id})}return y}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Replace",disabled:!N.is_type||!g.can_insert,icon:"arrow-circle-down",onClick:function(){function y(){return v("replace",{id:N.id})}return y}()})})]},N)})," ",(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Extract All",disabled:!(g!=null&&g.can_extract),icon:"save",onClick:function(){function N(){return v("bulk_extract_core")}return N}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Replace All",disabled:!(g!=null&&g.is_bulk_core),icon:"arrow-circle-down",onClick:function(){function N(){return v("bulk_replace_core")}return N}()})})]})]},"Core Genes")},l=function(u,s){var i=(0,a.useBackend)(s),v=i.data,C=v.reagent_genes,g=v.has_reagent;return(0,e.createComponentVNode)(2,m,{title:"Reagent Genes",gene_set:C,do_we_show:g})},c=function(u,s){var i=(0,a.useBackend)(s),v=i.data,C=v.trait_genes,g=v.has_trait;return(0,e.createComponentVNode)(2,m,{title:"Trait Genes",gene_set:C,do_we_show:g})},m=function(u,s){var i=u.title,v=u.gene_set,C=u.do_we_show,g=(0,a.useBackend)(s),h=g.act,N=g.data,y=N.disk;return(0,e.createComponentVNode)(2,t.Collapsible,{title:i,open:!0,children:C?v.map(function(B){return(0,e.createComponentVNode)(2,t.Stack,{py:"2px",className:"candystripe",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"100%",ml:"2px",children:B.name}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Extract",disabled:!(y!=null&&y.can_extract),icon:"save",onClick:function(){function I(){return h("extract",{id:B.id})}return I}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Remove",icon:"times",onClick:function(){function I(){return h("remove",{id:B.id})}return I}()})})]},B)}):(0,e.createComponentVNode)(2,t.Stack.Item,{children:"No Genes Detected"})},i)}},27163:function(L,r,n){"use strict";r.__esModule=!0,r.GenericCrewManifest=void 0;var e=n(96524),a=n(24674),t=n(45493),o=n(98444),f=r.GenericCrewManifest=function(){function V(k,S){return(0,e.createComponentVNode)(2,t.Window,{theme:"nologo",width:588,height:510,children:(0,e.createComponentVNode)(2,t.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,a.Section,{noTopPadding:!0,children:(0,e.createComponentVNode)(2,o.CrewManifest)})})})}return V}()},53808:function(L,r,n){"use strict";r.__esModule=!0,r.GhostHudPanel=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.GhostHudPanel=function(){function k(S,b){var p=(0,a.useBackend)(b),l=p.data,c=l.security,m=l.medical,d=l.diagnostic,u=l.radioactivity,s=l.ahud;return(0,e.createComponentVNode)(2,o.Window,{width:250,height:207,theme:"nologo",children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:[(0,e.createComponentVNode)(2,V,{label:"Medical",type:"medical",is_active:m}),(0,e.createComponentVNode)(2,V,{label:"Security",type:"security",is_active:c}),(0,e.createComponentVNode)(2,V,{label:"Diagnostic",type:"diagnostic",is_active:d}),(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,V,{label:"Radioactivity",type:"radioactivity",is_active:u,act_on:"rads_on",act_off:"rads_off"}),(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,V,{label:"Antag HUD",is_active:s,act_on:"ahud_on",act_off:"ahud_off"})]})})})}return k}(),V=function(S,b){var p=(0,a.useBackend)(b),l=p.act,c=S.label,m=S.type,d=m===void 0?null:m,u=S.is_active,s=S.act_on,i=s===void 0?"hud_on":s,v=S.act_off,C=v===void 0?"hud_off":v;return(0,e.createComponentVNode)(2,t.Flex,{pt:.3,color:"label",children:[(0,e.createComponentVNode)(2,t.Flex.Item,{pl:.5,align:"center",width:"80%",children:c}),(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Button,{mr:.6,content:u?"On":"Off",icon:u?"toggle-on":"toggle-off",selected:u,onClick:function(){function g(){return l(u?C:i,{hud_type:d})}return g}()})})]})}},32035:function(L,r,n){"use strict";r.__esModule=!0,r.GlandDispenser=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.GlandDispenser=function(){function V(k,S){var b=(0,a.useBackend)(S),p=b.act,l=b.data,c=l.glands,m=c===void 0?[]:c;return(0,e.createComponentVNode)(2,o.Window,{width:300,height:338,theme:"abductor",children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:m.map(function(d){return(0,e.createComponentVNode)(2,t.Button,{width:"60px",height:"60px",m:.75,textAlign:"center",fontSize:"17px",lineHeight:"55px",icon:"eject",backgroundColor:d.color,content:d.amount||"0",disabled:!d.amount,onClick:function(){function u(){return p("dispense",{gland_id:d.id})}return u}()},d.id)})})})})}return V}()},33004:function(L,r,n){"use strict";r.__esModule=!0,r.GravityGen=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.GravityGen=function(){function V(k,S){var b=(0,a.useBackend)(S),p=b.act,l=b.data,c=l.charging_state,m=l.charge_count,d=l.breaker,u=l.ext_power,s=function(){function v(C){return C>0?(0,e.createComponentVNode)(2,t.Box,{inline:!0,color:"average",children:["[ ",C===1?"Charging":"Discharging"," ]"]}):(0,e.createComponentVNode)(2,t.Box,{inline:!0,color:u?"good":"bad",children:["[ ",u?"Powered":"Unpowered"," ]"]})}return v}(),i=function(){function v(C){if(C>0)return(0,e.createComponentVNode)(2,t.NoticeBox,{danger:!0,p:1.5,children:[(0,e.createVNode)(1,"b",null,"WARNING:",16)," Radiation Detected!"]})}return v}();return(0,e.createComponentVNode)(2,o.Window,{width:350,height:170,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[i(c),(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Generator Status",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:d?"power-off":"times",content:d?"Online":"Offline",color:d?"green":"red",px:1.5,onClick:function(){function v(){return p("breaker")}return v}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power Status",color:u?"good":"bad",children:s(c)}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Gravity Charge",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:m/100,ranges:{good:[.9,1/0],average:[.5,.9],bad:[-1/0,.5]}})})]})})]})})})}return V}()},39775:function(L,r,n){"use strict";r.__esModule=!0,r.GuestPass=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=n(57842),V=r.GuestPass=function(){function k(S,b){var p=(0,a.useBackend)(b),l=p.act,c=p.data;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:690,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Tabs,{children:[(0,e.createComponentVNode)(2,t.Tabs.Tab,{icon:"id-card",selected:!c.showlogs,onClick:function(){function m(){return l("mode",{mode:0})}return m}(),children:"Issue Pass"}),(0,e.createComponentVNode)(2,t.Tabs.Tab,{icon:"scroll",selected:c.showlogs,onClick:function(){function m(){return l("mode",{mode:1})}return m}(),children:["Records (",c.issue_log.length,")"]})]})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Authorization",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"ID Card",children:(0,e.createComponentVNode)(2,t.Button,{icon:c.scan_name?"eject":"id-card",selected:c.scan_name,content:c.scan_name?c.scan_name:"-----",tooltip:c.scan_name?"Eject ID":"Insert ID",onClick:function(){function m(){return l("scan")}return m}()})})})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:!c.showlogs&&(0,e.createComponentVNode)(2,t.Section,{title:"Issue Guest Pass",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Issue To",children:(0,e.createComponentVNode)(2,t.Button,{icon:"pencil-alt",content:c.giv_name?c.giv_name:"-----",disabled:!c.scan_name,onClick:function(){function m(){return l("giv_name")}return m}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Reason",children:(0,e.createComponentVNode)(2,t.Button,{icon:"pencil-alt",content:c.reason?c.reason:"-----",disabled:!c.scan_name,onClick:function(){function m(){return l("reason")}return m}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Duration",children:(0,e.createComponentVNode)(2,t.Button,{icon:"pencil-alt",content:c.duration?c.duration:"-----",disabled:!c.scan_name,onClick:function(){function m(){return l("duration")}return m}()})})]})})}),!c.showlogs&&(c.scan_name?(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,f.AccessList,{sectionButtons:(0,e.createComponentVNode)(2,t.Button,{icon:"id-card",content:c.printmsg,disabled:!c.canprint,onClick:function(){function m(){return l("issue")}return m}()}),grantableList:c.grantableList,accesses:c.regions,selectedList:c.selectedAccess,accessMod:function(){function m(d){return l("access",{access:d})}return m}(),grantAll:function(){function m(){return l("grant_all")}return m}(),denyAll:function(){function m(){return l("clear_all")}return m}(),grantDep:function(){function m(d){return l("grant_region",{region:d})}return m}(),denyDep:function(){function m(d){return l("deny_region",{region:d})}return m}()})}):(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,grow:!0,fontSize:1.5,textAlign:"center",align:"center",color:"label",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"id-card",size:5,color:"gray",mb:5}),(0,e.createVNode)(1,"br"),"Please, insert ID Card"]})})})})),!!c.showlogs&&(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,m:0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Issuance Log",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"print",content:"Print",disabled:!c.scan_name,onClick:function(){function m(){return l("print")}return m}()}),children:!!c.issue_log.length&&(0,e.createComponentVNode)(2,t.LabeledList,{children:c.issue_log.map(function(m,d){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{children:m},d)})})||(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,grow:!0,fontSize:1.5,textAlign:"center",align:"center",color:"label",children:[(0,e.createComponentVNode)(2,t.Icon.Stack,{children:[(0,e.createComponentVNode)(2,t.Icon,{name:"scroll",size:5,color:"gray"}),(0,e.createComponentVNode)(2,t.Icon,{name:"slash",size:5,color:"red"})]}),(0,e.createVNode)(1,"br"),"No logs"]})})})})]})})})}return k}()},22480:function(L,r,n){"use strict";r.__esModule=!0,r.HandheldChemDispenser=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=[1,5,10,20,30,50],V=null,k=r.HandheldChemDispenser=function(){function p(l,c){return(0,e.createComponentVNode)(2,o.Window,{width:390,height:430,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,S),(0,e.createComponentVNode)(2,b)]})})})}return p}(),S=function(l,c){var m=(0,a.useBackend)(c),d=m.act,u=m.data,s=u.amount,i=u.energy,v=u.maxEnergy,C=u.mode;return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Settings",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Energy",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:i,minValue:0,maxValue:v,ranges:{good:[v*.5,1/0],average:[v*.25,v*.5],bad:[-1/0,v*.25]},children:[i," / ",v," Units"]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Amount",verticalAlign:"middle",children:(0,e.createComponentVNode)(2,t.Stack,{children:f.map(function(g,h){return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,width:"15%",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"cog",selected:s===g,content:g,onClick:function(){function N(){return d("amount",{amount:g})}return N}()})},h)})})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Mode",verticalAlign:"middle",children:(0,e.createComponentVNode)(2,t.Stack,{justify:"space-between",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"cog",selected:C==="dispense",content:"Dispense",m:"0",width:"32%",onClick:function(){function g(){return d("mode",{mode:"dispense"})}return g}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"cog",selected:C==="remove",content:"Remove",m:"0",width:"32%",onClick:function(){function g(){return d("mode",{mode:"remove"})}return g}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"cog",selected:C==="isolate",content:"Isolate",m:"0",width:"32%",onClick:function(){function g(){return d("mode",{mode:"isolate"})}return g}()})]})})]})})})},b=function(l,c){for(var m=(0,a.useBackend)(c),d=m.act,u=m.data,s=u.chemicals,i=s===void 0?[]:s,v=u.current_reagent,C=[],g=0;g<(i.length+1)%3;g++)C.push(!0);return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,height:"18%",children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:u.glass?"Drink Selector":"Chemical Selector",children:[i.map(function(h,N){return(0,e.createComponentVNode)(2,t.Button,{width:"32%",icon:"arrow-circle-down",overflow:"hidden",textOverflow:"ellipsis",selected:v===h.id,content:h.title,style:{"margin-left":"2px"},onClick:function(){function y(){return d("dispense",{reagent:h.id})}return y}()},N)}),C.map(function(h,N){return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:"1",basis:"25%"},N)})]})})}},22616:function(L,r,n){"use strict";r.__esModule=!0,r.HealthSensor=void 0;var e=n(96524),a=n(36121),t=n(17899),o=n(24674),f=n(45493),V=r.HealthSensor=function(){function S(b,p){var l=(0,t.useBackend)(p),c=l.act,m=l.data,d=m.on,u=m.user_health,s=m.minHealth,i=m.maxHealth,v=m.alarm_health;return(0,e.createComponentVNode)(2,f.Window,{width:300,height:125,children:(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,o.Section,{children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Scanning",children:(0,e.createComponentVNode)(2,o.Button,{icon:"power-off",content:d?"On":"Off",color:d?null:"red",selected:d,onClick:function(){function C(){return c("scan_toggle")}return C}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Health activation",children:(0,e.createComponentVNode)(2,o.NumberInput,{animate:!0,step:2,stepPixelSize:6,minValue:s,maxValue:i,value:v,format:function(){function C(g){return(0,a.toFixed)(g,1)}return C}(),width:"80px",onDrag:function(){function C(g,h){return c("alarm_health",{alarm_health:h})}return C}()})}),u!==null&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"User health",children:(0,e.createComponentVNode)(2,o.Box,{color:k(u),bold:u>=100,children:(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:u})})})]})})})})}return S}(),k=function(b){return b>50?"green":b>0?"orange":"red"}},76861:function(L,r,n){"use strict";r.__esModule=!0,r.Holodeck=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.Holodeck=function(){function k(S,b){var p=(0,a.useBackend)(b),l=p.act,c=p.data,m=(0,a.useLocalState)(b,"currentDeck",""),d=m[0],u=m[1],s=(0,a.useLocalState)(b,"showReload",!1),i=s[0],v=s[1],C=c.decks,g=c.ai_override,h=c.emagged,N=function(){function y(B){l("select_deck",{deck:B}),u(B),v(!0),setTimeout(function(){v(!1)},3e3)}return y}();return(0,e.createComponentVNode)(2,o.Window,{width:400,height:320,children:[i&&(0,e.createComponentVNode)(2,V),(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Holodeck Control System",children:(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createVNode)(1,"b",null,"Currently Loaded Program:",16)," ",d]})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Available Programs",children:[C.map(function(y){return(0,e.createComponentVNode)(2,t.Button,{width:15.5,color:"transparent",content:y,selected:y===d,onClick:function(){function B(){return N(y)}return B}()},y)}),(0,e.createVNode)(1,"hr",null,null,1,{color:"gray"}),(0,e.createComponentVNode)(2,t.LabeledList,{children:[!!g&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Override Protocols",children:(0,e.createComponentVNode)(2,t.Button,{content:h?"Turn On":"Turn Off",color:h?"good":"bad",onClick:function(){function y(){return l("ai_override")}return y}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Safety Protocols",children:(0,e.createComponentVNode)(2,t.Box,{color:h?"bad":"good",children:[h?"Off":"On",!!h&&(0,e.createComponentVNode)(2,t.Button,{ml:9.5,width:15.5,color:"red",content:"Wildlife Simulation",onClick:function(){function y(){return l("wildlifecarp")}return y}()})]})})]})]})})]})})]})}return k}(),V=function(S,b){return(0,e.createComponentVNode)(2,t.Dimmer,{textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"spinner",size:"5",spin:!0}),(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Box,{color:"white",children:(0,e.createVNode)(1,"h1",null,"\xA0Recalibrating projection apparatus.\xA0",16)}),(0,e.createComponentVNode)(2,t.Box,{color:"label",children:(0,e.createVNode)(1,"h3",null,"Please, wait for 3 seconds.",16)})]})}},96729:function(L,r,n){"use strict";r.__esModule=!0,r.Instrument=void 0;var e=n(96524),a=n(36121),t=n(17899),o=n(24674),f=n(45493),V=r.Instrument=function(){function l(c,m){var d=(0,t.useBackend)(m),u=d.act,s=d.data;return(0,e.createComponentVNode)(2,f.Window,{width:600,height:505,children:[(0,e.createComponentVNode)(2,k),(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,S),(0,e.createComponentVNode)(2,p)]})})]})}return l}(),k=function(c,m){var d=(0,t.useBackend)(m),u=d.act,s=d.data,i=s.help;if(i)return(0,e.createComponentVNode)(2,o.Modal,{maxWidth:"75%",height:window.innerHeight*.75+"px",mx:"auto",py:"0",px:"0.5rem",children:(0,e.createComponentVNode)(2,o.Section,{height:"100%",title:"Help",level:"2",overflow:"auto",children:(0,e.createComponentVNode)(2,o.Box,{px:"0.5rem",mt:"-0.5rem",children:[(0,e.createVNode)(1,"h1",null,"Making a Song",16),(0,e.createVNode)(1,"p",null,[(0,e.createTextVNode)("Lines are a series of chords, separated by commas\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"(,)"}),(0,e.createTextVNode)(", each with notes separated by hyphens\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"(-)"}),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("Every note in a chord will play together, with the chord timed by the\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"tempo"}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("as defined above.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createTextVNode)("Notes are played by the\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"good",children:"names of the note"}),(0,e.createTextVNode)(", and optionally, the\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"average",children:"accidental"}),(0,e.createTextVNode)(", and/or the"),(0,e.createTextVNode)(" "),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"bad",children:"octave number"}),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("By default, every note is\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"average",children:"natural"}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("and in\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"bad",children:"octave 3"}),(0,e.createTextVNode)(". Defining a different state for either is remembered for each"),(0,e.createTextVNode)(" "),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"good",children:"note"}),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"ul",null,[(0,e.createVNode)(1,"li",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"Example:"}),(0,e.createTextVNode)("\xA0"),(0,e.createVNode)(1,"i",null,"C,D,E,F,G,A,B",16),(0,e.createTextVNode)(" will play a\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"good",children:"C"}),(0,e.createTextVNode)("\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"average",children:"major"}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("scale.")],0),(0,e.createVNode)(1,"li",null,[(0,e.createTextVNode)("After a note has an\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"average",children:"accidental"}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("or\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"bad",children:"octave"}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("placed, it will be remembered:\xA0"),(0,e.createVNode)(1,"i",null,"C,C4,C#,C3",16),(0,e.createTextVNode)(" is "),(0,e.createVNode)(1,"i",null,"C3,C4,C4#,C3#",16)],0)],4)],0),(0,e.createVNode)(1,"p",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"Chords"}),(0,e.createTextVNode)("\xA0can be played simply by seperating each note with a hyphen:"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,"A-C#,Cn-E,E-G#,Gn-B",16),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("A"),(0,e.createTextVNode)(" "),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"pause"}),(0,e.createTextVNode)("\xA0may be denoted by an empty chord: "),(0,e.createVNode)(1,"i",null,"C,E,,C,G",16),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("To make a chord be a different time, end it with /x, where the chord length will be length defined by\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"tempo / x"}),(0,e.createTextVNode)(",\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"eg:"}),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,"C,G/2,E/4",16),(0,e.createTextVNode)(".")],0),(0,e.createVNode)(1,"p",null,[(0,e.createTextVNode)("Combined, an example line is: "),(0,e.createVNode)(1,"i",null,"E-E4/4,F#/2,G#/8,B/8,E3-E4/4",16),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"ul",null,[(0,e.createVNode)(1,"li",null,"Lines may be up to 300 characters.",16),(0,e.createVNode)(1,"li",null,"A song may only contain up to 1,000 lines.",16)],4)],4),(0,e.createVNode)(1,"p",null,[(0,e.createTextVNode)("Lines are a series of chords, separated by commas\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"(,)"}),(0,e.createTextVNode)(", each with notes separated by hyphens\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"(-)"}),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("Every note in a chord will play together, with the chord timed by the\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"tempo"}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("as defined above.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createTextVNode)("Notes are played by the\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"good",children:"names of the note"}),(0,e.createTextVNode)(", and optionally, the\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"average",children:"accidental"}),(0,e.createTextVNode)(", and/or the"),(0,e.createTextVNode)(" "),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"bad",children:"octave number"}),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("By default, every note is\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"average",children:"natural"}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("and in\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"bad",children:"octave 3"}),(0,e.createTextVNode)(". Defining a different state for either is remembered for each"),(0,e.createTextVNode)(" "),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"good",children:"note"}),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"ul",null,[(0,e.createVNode)(1,"li",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"Example:"}),(0,e.createTextVNode)("\xA0"),(0,e.createVNode)(1,"i",null,"C,D,E,F,G,A,B",16),(0,e.createTextVNode)(" will play a\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"good",children:"C"}),(0,e.createTextVNode)("\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"average",children:"major"}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("scale.")],0),(0,e.createVNode)(1,"li",null,[(0,e.createTextVNode)("After a note has an\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"average",children:"accidental"}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("or\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"bad",children:"octave"}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("placed, it will be remembered:\xA0"),(0,e.createVNode)(1,"i",null,"C,C4,C#,C3",16),(0,e.createTextVNode)(" is "),(0,e.createVNode)(1,"i",null,"C3,C4,C4#,C3#",16)],0)],4)],0),(0,e.createVNode)(1,"p",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"Chords"}),(0,e.createTextVNode)("\xA0can be played simply by seperating each note with a hyphen:"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,"A-C#,Cn-E,E-G#,Gn-B",16),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("A"),(0,e.createTextVNode)(" "),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"pause"}),(0,e.createTextVNode)("\xA0may be denoted by an empty chord: "),(0,e.createVNode)(1,"i",null,"C,E,,C,G",16),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("To make a chord be a different time, end it with /x, where the chord length will be length defined by\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"tempo / x"}),(0,e.createTextVNode)(",\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"eg:"}),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,"C,G/2,E/4",16),(0,e.createTextVNode)(".")],0),(0,e.createVNode)(1,"p",null,[(0,e.createTextVNode)("Combined, an example line is: "),(0,e.createVNode)(1,"i",null,"E-E4/4,F#/2,G#/8,B/8,E3-E4/4",16),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"ul",null,[(0,e.createVNode)(1,"li",null,"Lines may be up to 300 characters.",16),(0,e.createVNode)(1,"li",null,"A song may only contain up to 1,000 lines.",16)],4)],4),(0,e.createVNode)(1,"h1",null,"Instrument Advanced Settings",16),(0,e.createVNode)(1,"ul",null,[(0,e.createVNode)(1,"li",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"label",children:"Type:"}),(0,e.createTextVNode)("\xA0Whether the instrument is legacy or synthesized."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("Legacy instruments have a collection of sounds that are selectively used depending on the note to play."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("Synthesized instruments use a base sound and change its pitch to match the note to play.")],4),(0,e.createVNode)(1,"li",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"label",children:"Current:"}),(0,e.createTextVNode)("\xA0Which instrument sample to play. Some instruments can be tuned to play different samples. Experiment!")],4),(0,e.createVNode)(1,"li",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"label",children:"Note Shift/Note Transpose:"}),(0,e.createTextVNode)("\xA0The pitch to apply to all notes of the song.")],4),(0,e.createVNode)(1,"li",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"label",children:"Sustain Mode:"}),(0,e.createTextVNode)("\xA0How a played note fades out."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("Linear sustain means a note will fade out at a constant rate."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("Exponential sustain means a note will fade out at an exponential rate, sounding smoother.")],4),(0,e.createVNode)(1,"li",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"label",children:"Volume Dropoff Threshold:"}),(0,e.createTextVNode)("\xA0The volume threshold at which a note is fully stopped.")],4),(0,e.createVNode)(1,"li",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"label",children:"Sustain indefinitely last held note:"}),(0,e.createTextVNode)("\xA0Whether the last note should be sustained indefinitely.")],4)],4),(0,e.createComponentVNode)(2,o.Button,{color:"grey",content:"Close",onClick:function(){function v(){return u("help")}return v}()})]})})})},S=function(c,m){var d=(0,t.useBackend)(m),u=d.act,s=d.data,i=s.lines,v=s.playing,C=s.repeat,g=s.maxRepeats,h=s.tempo,N=s.minTempo,y=s.maxTempo,B=s.tickLag,I=s.volume,w=s.minVolume,T=s.maxVolume,A=s.ready;return(0,e.createComponentVNode)(2,o.Section,{title:"Instrument",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{icon:"info",content:"Help",onClick:function(){function x(){return u("help")}return x}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"file",content:"New",onClick:function(){function x(){return u("newsong")}return x}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"upload",content:"Import",onClick:function(){function x(){return u("import")}return x}()})],4),children:[(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Playback",children:[(0,e.createComponentVNode)(2,o.Button,{selected:v,disabled:i.length===0||C<0,icon:"play",content:"Play",onClick:function(){function x(){return u("play")}return x}()}),(0,e.createComponentVNode)(2,o.Button,{disabled:!v,icon:"stop",content:"Stop",onClick:function(){function x(){return u("stop")}return x}()})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Repeat",children:(0,e.createComponentVNode)(2,o.Slider,{animated:!0,minValue:0,maxValue:g,value:C,stepPixelSize:59,onChange:function(){function x(E,M){return u("repeat",{new:M})}return x}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Tempo",children:(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,o.Button,{disabled:h>=y,content:"-",as:"span",mr:"0.5rem",onClick:function(){function x(){return u("tempo",{new:h+B})}return x}()}),(0,a.round)(600/h)," BPM",(0,e.createComponentVNode)(2,o.Button,{disabled:h<=N,content:"+",as:"span",ml:"0.5rem",onClick:function(){function x(){return u("tempo",{new:h-B})}return x}()})]})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Volume",children:(0,e.createComponentVNode)(2,o.Slider,{animated:!0,minValue:w,maxValue:T,value:I,stepPixelSize:6,onDrag:function(){function x(E,M){return u("setvolume",{new:M})}return x}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Status",children:A?(0,e.createComponentVNode)(2,o.Box,{color:"good",children:"Ready"}):(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"Instrument Definition Error!"})})]}),(0,e.createComponentVNode)(2,b)]})},b=function(c,m){var d=(0,t.useBackend)(m),u=d.act,s=d.data,i=s.allowedInstrumentNames,v=s.instrumentLoaded,C=s.instrument,g=s.canNoteShift,h=s.noteShift,N=s.noteShiftMin,y=s.noteShiftMax,B=s.sustainMode,I=s.sustainLinearDuration,w=s.sustainExponentialDropoff,T=s.legacy,A=s.sustainDropoffVolume,x=s.sustainHeldNote,E,M;return B===1?(E="Linear",M=(0,e.createComponentVNode)(2,o.Slider,{minValue:.1,maxValue:5,value:I,step:.5,stepPixelSize:85,format:function(){function D(P){return(0,a.round)(P*100)/100+" seconds"}return D}(),onChange:function(){function D(P,R){return u("setlinearfalloff",{new:R/10})}return D}()})):B===2&&(E="Exponential",M=(0,e.createComponentVNode)(2,o.Slider,{minValue:1.025,maxValue:10,value:w,step:.01,format:function(){function D(P){return(0,a.round)(P*1e3)/1e3+"% per decisecond"}return D}(),onChange:function(){function D(P,R){return u("setexpfalloff",{new:R})}return D}()})),i.sort(),(0,e.createComponentVNode)(2,o.Box,{my:-1,children:(0,e.createComponentVNode)(2,o.Collapsible,{mt:"1rem",mb:"0",title:"Advanced",children:(0,e.createComponentVNode)(2,o.Section,{mt:-1,children:[(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Type",children:T?"Legacy":"Synthesized"}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Current",children:v?(0,e.createComponentVNode)(2,o.Dropdown,{options:i,selected:C,width:"50%",onSelected:function(){function D(P){return u("switchinstrument",{name:P})}return D}()}):(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"None!"})}),!!(!T&&g)&&(0,e.createFragment)([(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Note Shift/Note Transpose",children:(0,e.createComponentVNode)(2,o.Slider,{minValue:N,maxValue:y,value:h,stepPixelSize:2,format:function(){function D(P){return P+" keys / "+(0,a.round)(P/12*100)/100+" octaves"}return D}(),onChange:function(){function D(P,R){return u("setnoteshift",{new:R})}return D}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Sustain Mode",children:[(0,e.createComponentVNode)(2,o.Dropdown,{options:["Linear","Exponential"],selected:E,onSelected:function(){function D(P){return u("setsustainmode",{new:P})}return D}()}),M]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Volume Dropoff Threshold",children:(0,e.createComponentVNode)(2,o.Slider,{animated:!0,minValue:.01,maxValue:100,value:A,stepPixelSize:6,onChange:function(){function D(P,R){return u("setdropoffvolume",{new:R})}return D}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Sustain indefinitely last held note",children:(0,e.createComponentVNode)(2,o.Button,{selected:x,icon:x?"toggle-on":"toggle-off",content:x?"Yes":"No",onClick:function(){function D(){return u("togglesustainhold")}return D}()})})],4)]}),(0,e.createComponentVNode)(2,o.Button,{icon:"redo",content:"Reset to Default",mt:"0.5rem",onClick:function(){function D(){return u("reset")}return D}()})]})})})},p=function(c,m){var d=(0,t.useBackend)(m),u=d.act,s=d.data,i=s.playing,v=s.lines,C=s.editing;return(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"Editor",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{disabled:!C||i,icon:"plus",content:"Add Line",onClick:function(){function g(){return u("newline",{line:v.length+1})}return g}()}),(0,e.createComponentVNode)(2,o.Button,{selected:!C,icon:C?"chevron-up":"chevron-down",onClick:function(){function g(){return u("edit")}return g}()})],4),children:!!C&&(v.length>0?(0,e.createComponentVNode)(2,o.LabeledList,{children:v.map(function(g,h){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:h+1,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{disabled:i,icon:"pen",onClick:function(){function N(){return u("modifyline",{line:h+1})}return N}()}),(0,e.createComponentVNode)(2,o.Button,{disabled:i,icon:"trash",onClick:function(){function N(){return u("deleteline",{line:h+1})}return N}()})],4),children:g},h)})}):(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"Song is empty."}))})}},53385:function(L,r,n){"use strict";r.__esModule=!0,r.KeycardAuth=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.KeycardAuth=function(){function V(k,S){var b=(0,a.useBackend)(S),p=b.act,l=b.data,c=(0,e.createComponentVNode)(2,t.Section,{title:"Keycard Authentication Device",children:(0,e.createComponentVNode)(2,t.Box,{children:"This device is used to trigger certain high security events. It requires the simultaneous swipe of two high-level ID cards."})});if(!l.swiping&&!l.busy)return(0,e.createComponentVNode)(2,o.Window,{width:540,height:280,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[c,(0,e.createComponentVNode)(2,t.Section,{title:"Choose Action",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Red Alert",children:(0,e.createComponentVNode)(2,t.Button,{icon:"exclamation-triangle",disabled:!l.redAvailable,onClick:function(){function d(){return p("triggerevent",{triggerevent:"Red Alert"})}return d}(),content:"Red Alert"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"ERT",children:(0,e.createComponentVNode)(2,t.Button,{icon:"broadcast-tower",onClick:function(){function d(){return p("triggerevent",{triggerevent:"Emergency Response Team"})}return d}(),content:"Call ERT"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Emergency Maint Access",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"door-open",onClick:function(){function d(){return p("triggerevent",{triggerevent:"Grant Emergency Maintenance Access"})}return d}(),content:"Grant"}),(0,e.createComponentVNode)(2,t.Button,{icon:"door-closed",onClick:function(){function d(){return p("triggerevent",{triggerevent:"Revoke Emergency Maintenance Access"})}return d}(),content:"Revoke"})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Emergency Station-Wide Access",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"door-open",onClick:function(){function d(){return p("triggerevent",{triggerevent:"Activate Station-Wide Emergency Access"})}return d}(),content:"Grant"}),(0,e.createComponentVNode)(2,t.Button,{icon:"door-closed",onClick:function(){function d(){return p("triggerevent",{triggerevent:"Deactivate Station-Wide Emergency Access"})}return d}(),content:"Revoke"})]})]})})]})});var m=(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Waiting for YOU to swipe your ID..."});return!l.hasSwiped&&!l.ertreason&&l.event==="Emergency Response Team"?m=(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Fill out the reason for your ERT request."}):l.hasConfirm?m=(0,e.createComponentVNode)(2,t.Box,{color:"green",children:"Request Confirmed!"}):l.isRemote?m=(0,e.createComponentVNode)(2,t.Box,{color:"orange",children:"Swipe your card to CONFIRM the remote request."}):l.hasSwiped&&(m=(0,e.createComponentVNode)(2,t.Box,{color:"orange",children:"Waiting for second person to confirm..."})),(0,e.createComponentVNode)(2,o.Window,{width:540,height:265,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[c,l.event==="Emergency Response Team"&&(0,e.createComponentVNode)(2,t.Section,{title:"Reason for ERT Call",children:(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{color:l.ertreason?"":"red",icon:l.ertreason?"check":"pencil-alt",content:l.ertreason?l.ertreason:"-----",disabled:l.busy,onClick:function(){function d(){return p("ert")}return d}()})})}),(0,e.createComponentVNode)(2,t.Section,{title:l.event,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-circle-left",content:"Back",disabled:l.busy||l.hasConfirm,onClick:function(){function d(){return p("reset")}return d}()}),children:m})]})})}return V}()},58553:function(L,r,n){"use strict";r.__esModule=!0,r.KitchenMachine=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=n(75201),V=r.KitchenMachine=function(){function S(b,p){var l=(0,a.useBackend)(p),c=l.data,m=l.config,d=c.ingredients,u=c.operating,s=m.title;return(0,e.createComponentVNode)(2,o.Window,{width:400,height:320,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,f.Operating,{operating:u,name:s}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,k)}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Ingredients",children:(0,e.createComponentVNode)(2,t.Table,{className:"Ingredient__Table",children:d.map(function(i){return(0,e.createComponentVNode)(2,t.Table.Row,{tr:5,children:[(0,e.createVNode)(1,"td",null,(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:i.name}),2),(0,e.createVNode)(1,"td",null,(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,textAlign:"center",children:[i.amount," ",i.units]}),2)]},i.name)})})})})]})})})}return S}(),k=function(b,p){var l=(0,a.useBackend)(p),c=l.act,m=l.data,d=m.inactive,u=m.tooltip;return(0,e.createComponentVNode)(2,t.Section,{title:"Controls",children:(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"50%",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"power-off",disabled:d,tooltip:d?u:"",tooltipPosition:"bottom",content:"Activate",onClick:function(){function s(){return c("cook")}return s}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:"50%",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"eject",disabled:d,tooltip:d?u:"",tooltipPosition:"bottom",content:"Eject Contents",onClick:function(){function s(){return c("eject")}return s}()})})]})})}},14047:function(L,r,n){"use strict";r.__esModule=!0,r.LawManager=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.LawManager=function(){function b(p,l){var c=(0,a.useBackend)(l),m=c.act,d=c.data,u=d.isAdmin,s=d.isSlaved,i=d.isMalf,v=d.isAIMalf,C=d.view;return(0,e.createComponentVNode)(2,o.Window,{width:800,height:i?620:365,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[!!(u&&s)&&(0,e.createComponentVNode)(2,t.NoticeBox,{children:["This unit is slaved to ",s,"."]}),!!(i||v)&&(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Button,{content:"Law Management",selected:C===0,onClick:function(){function g(){return m("set_view",{set_view:0})}return g}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Lawsets",selected:C===1,onClick:function(){function g(){return m("set_view",{set_view:1})}return g}()})]}),C===0&&(0,e.createComponentVNode)(2,V),C===1&&(0,e.createComponentVNode)(2,k)]})})}return b}(),V=function(p,l){var c=(0,a.useBackend)(l),m=c.act,d=c.data,u=d.has_zeroth_laws,s=d.zeroth_laws,i=d.has_ion_laws,v=d.ion_laws,C=d.ion_law_nr,g=d.has_inherent_laws,h=d.inherent_laws,N=d.has_supplied_laws,y=d.supplied_laws,B=d.channels,I=d.channel,w=d.isMalf,T=d.isAdmin,A=d.zeroth_law,x=d.ion_law,E=d.inherent_law,M=d.supplied_law,D=d.supplied_law_position;return(0,e.createFragment)([!!u&&(0,e.createComponentVNode)(2,S,{title:"ERR_NULL_VALUE",laws:s,ctx:l}),!!i&&(0,e.createComponentVNode)(2,S,{title:C,laws:v,ctx:l}),!!g&&(0,e.createComponentVNode)(2,S,{title:"Inherent",laws:h,ctx:l}),!!N&&(0,e.createComponentVNode)(2,S,{title:"Supplied",laws:y,ctx:l}),(0,e.createComponentVNode)(2,t.Section,{title:"Statement Settings",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Statement Channel",children:B.map(function(P){return(0,e.createComponentVNode)(2,t.Button,{content:P.channel,selected:P.channel===I,onClick:function(){function R(){return m("law_channel",{law_channel:P.channel})}return R}()},P.channel)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"State Laws",children:(0,e.createComponentVNode)(2,t.Button,{content:"State Laws",onClick:function(){function P(){return m("state_laws")}return P}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Law Notification",children:(0,e.createComponentVNode)(2,t.Button,{content:"Notify",onClick:function(){function P(){return m("notify_laws")}return P}()})})]})}),!!w&&(0,e.createComponentVNode)(2,t.Section,{title:"Add Laws",children:(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{width:"10%",children:"Type"}),(0,e.createComponentVNode)(2,t.Table.Cell,{width:"60%",children:"Law"}),(0,e.createComponentVNode)(2,t.Table.Cell,{width:"10%",children:"Index"}),(0,e.createComponentVNode)(2,t.Table.Cell,{width:"20%",children:"Actions"})]}),!!(T&&!u)&&(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Zero"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:A}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"N/A"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:[(0,e.createComponentVNode)(2,t.Button,{content:"Edit",icon:"pencil-alt",onClick:function(){function P(){return m("change_zeroth_law")}return P}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Add",icon:"plus",onClick:function(){function P(){return m("add_zeroth_law")}return P}()})]})]}),(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Ion"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:x}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"N/A"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:[(0,e.createComponentVNode)(2,t.Button,{content:"Edit",icon:"pencil-alt",onClick:function(){function P(){return m("change_ion_law")}return P}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Add",icon:"plus",onClick:function(){function P(){return m("add_ion_law")}return P}()})]})]}),(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Inherent"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:E}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"N/A"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:[(0,e.createComponentVNode)(2,t.Button,{content:"Edit",icon:"pencil-alt",onClick:function(){function P(){return m("change_inherent_law")}return P}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Add",icon:"plus",onClick:function(){function P(){return m("add_inherent_law")}return P}()})]})]}),(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Supplied"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:M}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{content:D,onClick:function(){function P(){return m("change_supplied_law_position")}return P}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:[(0,e.createComponentVNode)(2,t.Button,{content:"Edit",icon:"pencil-alt",onClick:function(){function P(){return m("change_supplied_law")}return P}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Add",icon:"plus",onClick:function(){function P(){return m("add_supplied_law")}return P}()})]})]})]})})],0)},k=function(p,l){var c=(0,a.useBackend)(l),m=c.act,d=c.data,u=d.law_sets;return(0,e.createComponentVNode)(2,t.Box,{children:u.map(function(s){return(0,e.createComponentVNode)(2,t.Section,{title:s.name+" - "+s.header,buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Load Laws",icon:"download",onClick:function(){function i(){return m("transfer_laws",{transfer_laws:s.ref})}return i}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[s.laws.has_ion_laws>0&&s.laws.ion_laws.map(function(i){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:i.index,children:i.law},i.index)}),s.laws.has_zeroth_laws>0&&s.laws.zeroth_laws.map(function(i){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:i.index,children:i.law},i.index)}),s.laws.has_inherent_laws>0&&s.laws.inherent_laws.map(function(i){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:i.index,children:i.law},i.index)}),s.laws.has_supplied_laws>0&&s.laws.inherent_laws.map(function(i){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:i.index,children:i.law},i.index)})]})},s.name)})})},S=function(p,l){var c=(0,a.useBackend)(p.ctx),m=c.act,d=c.data,u=d.isMalf;return(0,e.createComponentVNode)(2,t.Section,{title:p.title+" Laws",children:(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{width:"10%",children:"Index"}),(0,e.createComponentVNode)(2,t.Table.Cell,{width:"69%",children:"Law"}),(0,e.createComponentVNode)(2,t.Table.Cell,{width:"21%",children:"State?"})]}),p.laws.map(function(s){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:s.index}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:s.law}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:[(0,e.createComponentVNode)(2,t.Button,{content:s.state?"Yes":"No",selected:s.state,onClick:function(){function i(){return m("state_law",{ref:s.ref,state_law:s.state?0:1})}return i}()}),!!u&&(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{content:"Edit",icon:"pencil-alt",onClick:function(){function i(){return m("edit_law",{edit_law:s.ref})}return i}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Delete",icon:"trash",color:"red",onClick:function(){function i(){return m("delete_law",{delete_law:s.ref})}return i}()})],4)]})]},s.law)})]})})}},5872:function(L,r,n){"use strict";r.__esModule=!0,r.LibraryComputer=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=n(99665),V=r.LibraryComputer=function(){function C(g,h){return(0,e.createComponentVNode)(2,o.Window,{width:1050,height:600,children:[(0,e.createComponentVNode)(2,f.ComplexModal),(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,l),(0,e.createComponentVNode)(2,c)]})})]})}return C}(),k=function(g,h){var N=(0,a.useBackend)(h),y=N.act,B=N.data,I=g.args,w=B.user_ckey;return(0,e.createComponentVNode)(2,t.Section,{children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Title",children:I.title}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Author",children:I.author}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Summary",children:I.summary}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Rating",children:[I.rating,(0,e.createComponentVNode)(2,t.Icon,{name:"star",color:"yellow",verticalAlign:"top"})]}),!I.isProgrammatic&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Categories",children:I.categories.join(", ")})]}),(0,e.createVNode)(1,"br"),w===I.ckey&&(0,e.createComponentVNode)(2,t.Button,{content:"Delete Book",icon:"trash",color:"red",disabled:I.isProgrammatic,onClick:function(){function T(){return y("delete_book",{bookid:I.id,user_ckey:w})}return T}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Report Book",icon:"flag",color:"red",disabled:I.isProgrammatic,onClick:function(){function T(){return(0,f.modalOpen)(h,"report_book",{bookid:I.id})}return T}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Rate Book",icon:"star",color:"caution",disabled:I.isProgrammatic,onClick:function(){function T(){return(0,f.modalOpen)(h,"rate_info",{bookid:I.id})}return T}()})]})},S=function(g,h){var N=(0,a.useBackend)(h),y=N.act,B=N.data,I=g.args,w=B.selected_report,T=B.report_categories,A=B.user_ckey;return(0,e.createComponentVNode)(2,t.Section,{level:2,m:"-1rem",pb:"1.5rem",title:"Report this book for Rule Violations",children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Title",children:I.title}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Reasons",children:(0,e.createComponentVNode)(2,t.Box,{children:T.map(function(x,E){return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{content:x.description,selected:x.category_id===w,onClick:function(){function M(){return y("set_report",{report_type:x.category_id})}return M}()}),(0,e.createVNode)(1,"br")],4,E)})})})]}),(0,e.createComponentVNode)(2,t.Button.Confirm,{bold:!0,icon:"paper-plane",content:"Submit Report",onClick:function(){function x(){return y("submit_report",{bookid:I.id,user_ckey:A})}return x}()})]})},b=function(g,h){var N=(0,a.useBackend)(h),y=N.act,B=N.data,I=B.selected_rating,w=Array(10).fill().map(function(T,A){return 1+A});return(0,e.createComponentVNode)(2,t.Stack,{children:[w.map(function(T,A){return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{bold:!0,icon:"star",color:I>=T?"caution":"default",onClick:function(){function x(){return y("set_rating",{rating_value:T})}return x}()})},A)}),(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,ml:2,fontSize:"150%",children:[I+"/10",(0,e.createComponentVNode)(2,t.Icon,{name:"star",color:"yellow",ml:.5,verticalAlign:"top"})]})]})},p=function(g,h){var N=(0,a.useBackend)(h),y=N.act,B=N.data,I=g.args,w=B.user_ckey;return(0,e.createComponentVNode)(2,t.Section,{level:2,m:"-1rem",pb:"1.5rem",children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Title",children:I.title}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Author",children:I.author}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Rating",children:[I.current_rating?I.current_rating:0,(0,e.createComponentVNode)(2,t.Icon,{name:"star",color:"yellow",ml:.5,verticalAlign:"middle"})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Total Ratings",children:I.total_ratings?I.total_ratings:0})]}),(0,e.createComponentVNode)(2,b),(0,e.createComponentVNode)(2,t.Button.Confirm,{mt:2,content:"Submit",icon:"paper-plane",onClick:function(){function T(){return y("rate_book",{bookid:I.id,user_ckey:w})}return T}()})]})},l=function(g,h){var N=(0,a.useBackend)(h),y=N.data,B=(0,a.useLocalState)(h,"tabIndex",0),I=B[0],w=B[1],T=y.login_state;return(0,e.createComponentVNode)(2,t.Stack.Item,{mb:1,children:(0,e.createComponentVNode)(2,t.Tabs,{fluid:!0,textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:I===0,onClick:function(){function A(){return w(0)}return A}(),children:"Book Archives"}),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:I===1,onClick:function(){function A(){return w(1)}return A}(),children:"Corporate Literature"}),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:I===2,onClick:function(){function A(){return w(2)}return A}(),children:"Upload Book"}),T===1&&(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:I===3,onClick:function(){function A(){return w(3)}return A}(),children:"Patron Manager"}),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:I===4,onClick:function(){function A(){return w(4)}return A}(),children:"Inventory"})]})})},c=function(g,h){var N=(0,a.useLocalState)(h,"tabIndex",0),y=N[0];switch(y){case 0:return(0,e.createComponentVNode)(2,d);case 1:return(0,e.createComponentVNode)(2,u);case 2:return(0,e.createComponentVNode)(2,s);case 3:return(0,e.createComponentVNode)(2,i);case 4:return(0,e.createComponentVNode)(2,v);default:return"You are somehow on a tab that doesn't exist! Please let a coder know."}},m=function(g,h){var N=(0,a.useBackend)(h),y=N.act,B=N.data,I=B.searchcontent,w=B.book_categories,T=B.user_ckey,A=[];return w.map(function(x){return A[x.description]=x.category_id}),(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"35%",children:[(0,e.createComponentVNode)(2,t.Box,{fontSize:"1.2rem",m:".5em",bold:!0,children:[(0,e.createComponentVNode)(2,t.Icon,{name:"edit",verticalAlign:"middle",size:1.5,mr:"1rem"}),"Search Inputs"]}),(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Title",children:(0,e.createComponentVNode)(2,t.Button,{textAlign:"left",icon:"pen",width:20,content:I.title||"Input Title",onClick:function(){function x(){return(0,f.modalOpen)(h,"edit_search_title")}return x}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Author",children:(0,e.createComponentVNode)(2,t.Button,{textAlign:"left",icon:"pen",width:20,content:I.author||"Input Author",onClick:function(){function x(){return(0,f.modalOpen)(h,"edit_search_author")}return x}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Ratings",children:(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{mr:1,width:"min-content",content:I.ratingmin,onClick:function(){function x(){return(0,f.modalOpen)(h,"edit_search_ratingmin")}return x}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:"To"}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{ml:1,width:"min-content",content:I.ratingmax,onClick:function(){function x(){return(0,f.modalOpen)(h,"edit_search_ratingmax")}return x}()})})]})})]})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:"40%",children:[(0,e.createComponentVNode)(2,t.Box,{fontSize:"1.2rem",m:".5em",bold:!0,children:[(0,e.createComponentVNode)(2,t.Icon,{name:"clipboard-list",verticalAlign:"middle",size:1.5,mr:"1rem"}),"Book Categories"]}),(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Select Categories",children:(0,e.createComponentVNode)(2,t.Box,{mt:2,children:(0,e.createComponentVNode)(2,t.Dropdown,{mt:.6,width:"190px",options:w.map(function(x){return x.description}),onSelected:function(){function x(E){return y("toggle_search_category",{category_id:A[E]})}return x}()})})})}),(0,e.createVNode)(1,"br"),w.filter(function(x){return I.categories.includes(x.category_id)}).map(function(x){return(0,e.createComponentVNode)(2,t.Button,{content:x.description,selected:!0,icon:"unlink",onClick:function(){function E(){return y("toggle_search_category",{category_id:x.category_id})}return E}()},x.category_id)})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Box,{fontSize:"1.2rem",m:".5em",bold:!0,children:[(0,e.createComponentVNode)(2,t.Icon,{name:"search-plus",verticalAlign:"middle",size:1.5,mr:"1rem"}),"Search Actions"]}),(0,e.createComponentVNode)(2,t.Button,{content:"Clear Search",icon:"eraser",onClick:function(){function x(){return y("clear_search")}return x}()}),I.ckey?(0,e.createComponentVNode)(2,t.Button,{mb:.5,content:"Stop Showing My Books",color:"bad",icon:"search",onClick:function(){function x(){return y("clear_ckey_search")}return x}()}):(0,e.createComponentVNode)(2,t.Button,{content:"Find My Books",icon:"search",onClick:function(){function x(){return y("find_users_books",{user_ckey:T})}return x}()})]})]})},d=function(g,h){var N=(0,a.useBackend)(h),y=N.act,B=N.data,I=B.external_booklist,w=B.archive_pagenumber,T=B.num_pages,A=B.login_state;return(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Book System Access",buttons:(0,e.createVNode)(1,"div",null,[(0,e.createComponentVNode)(2,t.Button,{icon:"angle-double-left",disabled:w===1,onClick:function(){function x(){return y("deincrementpagemax")}return x}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"chevron-left",disabled:w===1,onClick:function(){function x(){return y("deincrementpage")}return x}()}),(0,e.createComponentVNode)(2,t.Button,{bold:!0,content:w,onClick:function(){function x(){return(0,f.modalOpen)(h,"setpagenumber")}return x}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"chevron-right",disabled:w===T,onClick:function(){function x(){return y("incrementpage")}return x}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"angle-double-right",disabled:w===T,onClick:function(){function x(){return y("incrementpagemax")}return x}()})],4),children:[(0,e.createComponentVNode)(2,m),(0,e.createVNode)(1,"hr"),(0,e.createComponentVNode)(2,t.Table,{className:"Library__Booklist",children:[(0,e.createComponentVNode)(2,t.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"SSID"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Title"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Author"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Ratings"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Category"}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"middle",children:"Actions"})]}),I.map(function(x){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:x.id}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"book",mr:.5}),x.title.length>45?x.title.substr(0,45)+"...":x.title]}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:x.author.length>30?x.author.substr(0,30)+"...":x.author}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:[x.rating,(0,e.createComponentVNode)(2,t.Icon,{name:"star",ml:.5,color:"yellow",verticalAlign:"middle"})]}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:x.categories.join(", ").substr(0,45)}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"right",children:[A===1&&(0,e.createComponentVNode)(2,t.Button,{content:"Order",icon:"print",onClick:function(){function E(){return y("order_external_book",{bookid:x.id})}return E}()}),(0,e.createComponentVNode)(2,t.Button,{content:"More...",onClick:function(){function E(){return(0,f.modalOpen)(h,"expand_info",{bookid:x.id})}return E}()})]})]},x.id)})]})]})},u=function(g,h){var N=(0,a.useBackend)(h),y=N.act,B=N.data,I=B.programmatic_booklist,w=B.login_state;return(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Corporate Book Catalog",children:(0,e.createComponentVNode)(2,t.Table,{className:"Library__Booklist",children:[(0,e.createComponentVNode)(2,t.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"SSID"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Title"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Author"}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"middle",children:"Actions"})]}),I.map(function(T,A){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:T.id}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"book",mr:2}),T.title]}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:T.author}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"right",children:[w===1&&(0,e.createComponentVNode)(2,t.Button,{content:"Order",icon:"print",onClick:function(){function x(){return y("order_programmatic_book",{bookid:T.id})}return x}()}),(0,e.createComponentVNode)(2,t.Button,{content:"More...",onClick:function(){function x(){return(0,f.modalOpen)(h,"expand_info",{bookid:T.id})}return x}()})]})]},A)})]})})},s=function(g,h){var N=(0,a.useBackend)(h),y=N.act,B=N.data,I=B.selectedbook,w=B.book_categories,T=B.user_ckey,A=[];return w.map(function(x){return A[x.description]=x.category_id}),(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Book System Upload",buttons:(0,e.createComponentVNode)(2,t.Button.Confirm,{bold:!0,width:9.5,icon:"upload",disabled:I.copyright,content:"Upload Book",onClick:function(){function x(){return y("uploadbook",{user_ckey:T})}return x}()}),children:[I.copyright?(0,e.createComponentVNode)(2,t.NoticeBox,{color:"red",children:"WARNING: You cannot upload or modify the attributes of a copyrighted book"}):(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Box,{ml:15,mb:3,fontSize:"1.2rem",bold:!0,children:[(0,e.createComponentVNode)(2,t.Icon,{name:"search-plus",verticalAlign:"middle",size:3,mr:2}),"Book Uploader"]}),(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Title",children:(0,e.createComponentVNode)(2,t.Button,{width:20,textAlign:"left",icon:"pen",disabled:I.copyright,content:I.title,onClick:function(){function x(){return(0,f.modalOpen)(h,"edit_selected_title")}return x}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Author",children:(0,e.createComponentVNode)(2,t.Button,{width:20,textAlign:"left",icon:"pen",disabled:I.copyright,content:I.author,onClick:function(){function x(){return(0,f.modalOpen)(h,"edit_selected_author")}return x}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Select Categories",children:(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Dropdown,{width:"240px",options:w.map(function(x){return x.description}),onSelected:function(){function x(E){return y("toggle_upload_category",{category_id:A[E]})}return x}()})})})]}),(0,e.createVNode)(1,"br"),w.filter(function(x){return I.categories.includes(x.category_id)}).map(function(x){return(0,e.createComponentVNode)(2,t.Button,{content:x.description,disabled:I.copyright,selected:!0,icon:"unlink",onClick:function(){function E(){return y("toggle_upload_category",{category_id:x.category_id})}return E}()},x.category_id)})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{mr:75,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Summary",children:(0,e.createComponentVNode)(2,t.Button,{icon:"pen",width:"auto",disabled:I.copyright,content:"Edit Summary",onClick:function(){function x(){return(0,f.modalOpen)(h,"edit_selected_summary")}return x}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{children:I.summary})]})})]})]})},i=function(g,h){var N=(0,a.useBackend)(h),y=N.act,B=N.data,I=B.checkout_data;return(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Checked Out Books",children:(0,e.createComponentVNode)(2,t.Table,{className:"Library__Booklist",children:[(0,e.createComponentVNode)(2,t.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Patron"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Title"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Time Left"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Actions"})]}),I.map(function(w,T){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:[(0,e.createComponentVNode)(2,t.Icon,{name:"user-tag"}),w.patron_name]}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:w.title}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:w.timeleft>=0?w.timeleft:"LATE"}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:(0,e.createComponentVNode)(2,t.Button,{content:"Mark Lost",icon:"flag",color:"bad",disabled:w.timeleft>=0,onClick:function(){function A(){return y("reportlost",{libraryid:w.libraryid})}return A}()})})]},T)})]})})},v=function(g,h){var N=(0,a.useBackend)(h),y=N.act,B=N.data,I=B.inventory_list;return(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Library Inventory",children:(0,e.createComponentVNode)(2,t.Table,{className:"Library__Booklist",children:[(0,e.createComponentVNode)(2,t.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"LIB ID"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Title"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Author"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Status"})]}),I.map(function(w,T){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:w.libraryid}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"book"})," ",w.title]}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:w.author}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:w.checked_out?"Checked Out":"Available"})]},T)})]})})};(0,f.modalRegisterBodyOverride)("expand_info",k),(0,f.modalRegisterBodyOverride)("report_book",S),(0,f.modalRegisterBodyOverride)("rate_info",p)},37782:function(L,r,n){"use strict";r.__esModule=!0,r.LibraryManager=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=n(99665),V=r.LibraryManager=function(){function l(c,m){return(0,e.createComponentVNode)(2,o.Window,{width:600,height:600,children:[(0,e.createComponentVNode)(2,f.ComplexModal),(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,className:"Layout__content--flexColumn",children:(0,e.createComponentVNode)(2,k)})]})}return l}(),k=function(c,m){var d=(0,a.useBackend)(m),u=d.act,s=d.data,i=s.pagestate;switch(i){case 1:return(0,e.createComponentVNode)(2,S);case 2:return(0,e.createComponentVNode)(2,p);case 3:return(0,e.createComponentVNode)(2,b);default:return"WE SHOULDN'T BE HERE!"}},S=function(c,m){var d=(0,a.useBackend)(m),u=d.act,s=d.data;return(0,e.createComponentVNode)(2,t.Section,{children:[(0,e.createComponentVNode)(2,t.Box,{fontSize:"1.4rem",bold:!0,children:[(0,e.createComponentVNode)(2,t.Icon,{name:"user-shield",verticalAlign:"middle",size:3,mr:"1rem"}),"Library Manager"]}),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Button,{icon:"trash",width:"auto",color:"danger",content:"Delete Book by SSID",onClick:function(){function i(){return(0,f.modalOpen)(m,"specify_ssid_delete")}return i}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"user-slash",width:"auto",color:"danger",content:"Delete All Books By CKEY",onClick:function(){function i(){return(0,f.modalOpen)(m,"specify_ckey_delete")}return i}()}),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Button,{icon:"search",width:"auto",content:"View All Books By CKEY",onClick:function(){function i(){return(0,f.modalOpen)(m,"specify_ckey_search")}return i}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"search",width:"auto",content:"View All Reported Books",onClick:function(){function i(){return u("view_reported_books")}return i}()})]})},b=function(c,m){var d=(0,a.useBackend)(m),u=d.act,s=d.data,i=s.reports;return(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.Table,{className:"Library__Booklist",children:[(0,e.createComponentVNode)(2,t.Box,{fontSize:"1.2rem",bold:!0,children:[(0,e.createComponentVNode)(2,t.Icon,{name:"user-secret",verticalAlign:"middle",size:2,mr:"1rem"}),(0,e.createVNode)(1,"br"),"All Reported Books",(0,e.createVNode)(1,"br")]}),(0,e.createComponentVNode)(2,t.Button,{content:"Return to Main",icon:"arrow-alt-circle-left",onClick:function(){function v(){return u("return")}return v}()}),(0,e.createComponentVNode)(2,t.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Uploader CKEY"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"SSID"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Title"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Author"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Report Type"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Reporter Ckey"}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"middle",children:"Administrative Actions"})]}),i.map(function(v){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:v.uploader_ckey}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:v.id}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"book"}),v.title]}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:v.author}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:v.report_description}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:v.reporter_ckey}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:[(0,e.createComponentVNode)(2,t.Button.Confirm,{content:"Delete",icon:"trash",onClick:function(){function C(){return u("delete_book",{bookid:v.id})}return C}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Unflag",icon:"flag",color:"caution",onClick:function(){function C(){return u("unflag_book",{bookid:v.id})}return C}()}),(0,e.createComponentVNode)(2,t.Button,{content:"View",onClick:function(){function C(){return u("view_book",{bookid:v.id})}return C}()})]})]},v.id)})]})})},p=function(c,m){var d=(0,a.useBackend)(m),u=d.act,s=d.data,i=s.ckey,v=s.booklist;return(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.Table,{className:"Library__Booklist",children:[(0,e.createComponentVNode)(2,t.Box,{fontSize:"1.2rem",bold:!0,children:[(0,e.createComponentVNode)(2,t.Icon,{name:"user",verticalAlign:"middle",size:2,mr:"1rem"}),(0,e.createVNode)(1,"br"),"Books uploaded by ",i,(0,e.createVNode)(1,"br")]}),(0,e.createComponentVNode)(2,t.Button,{mt:1,content:"Return to Main",icon:"arrow-alt-circle-left",onClick:function(){function C(){return u("return")}return C}()}),(0,e.createComponentVNode)(2,t.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"SSID"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Title"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Author"}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"middle",children:"Administrative Actions"})]}),v.map(function(C){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:C.id}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"book"}),C.title]}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:C.author}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"right",children:[(0,e.createComponentVNode)(2,t.Button.Confirm,{content:"Delete",icon:"trash",color:"bad",onClick:function(){function g(){return u("delete_book",{bookid:C.id})}return g}()}),(0,e.createComponentVNode)(2,t.Button,{content:"View",onClick:function(){function g(){return u("view_book",{bookid:C.id})}return g}()})]})]},C.id)})]})})}},26133:function(L,r,n){"use strict";r.__esModule=!0,r.ListInputModal=void 0;var e=n(96524),a=n(14299),t=n(15113),o=n(24674),f=n(17899),V=n(68100),k=n(45493),S=r.ListInputModal=function(){function l(c,m){var d=(0,f.useBackend)(m),u=d.act,s=d.data,i=s.items,v=i===void 0?[]:i,C=s.message,g=C===void 0?"":C,h=s.init_value,N=s.timeout,y=s.title,B=(0,f.useLocalState)(m,"selected",v.indexOf(h)),I=B[0],w=B[1],T=(0,f.useLocalState)(m,"searchBarVisible",v.length>10),A=T[0],x=T[1],E=(0,f.useLocalState)(m,"searchQuery",""),M=E[0],D=E[1],P=function(){function X(Y){var J=z.length-1;if(Y===V.KEY_DOWN)if(I===null||I===J){var ie;w(0),(ie=document.getElementById("0"))==null||ie.scrollIntoView()}else{var ae;w(I+1),(ae=document.getElementById((I+1).toString()))==null||ae.scrollIntoView()}else if(Y===V.KEY_UP)if(I===null||I===0){var fe;w(J),(fe=document.getElementById(J.toString()))==null||fe.scrollIntoView()}else{var pe;w(I-1),(pe=document.getElementById((I-1).toString()))==null||pe.scrollIntoView()}}return X}(),R=function(){function X(Y){Y!==I&&w(Y)}return X}(),j=function(){function X(){x(!1),x(!0)}return X}(),F=function(){function X(Y){var J=String.fromCharCode(Y),ie=v.find(function(pe){return pe==null?void 0:pe.toLowerCase().startsWith(J==null?void 0:J.toLowerCase())});if(ie){var ae,fe=v.indexOf(ie);w(fe),(ae=document.getElementById(fe.toString()))==null||ae.scrollIntoView()}}return X}(),U=function(){function X(Y){var J;Y!==M&&(D(Y),w(0),(J=document.getElementById("0"))==null||J.scrollIntoView())}return X}(),_=function(){function X(){x(!A),D("")}return X}(),z=v.filter(function(X){return X==null?void 0:X.toLowerCase().includes(M.toLowerCase())}),G=330+Math.ceil(g.length/3);return A||setTimeout(function(){var X;return(X=document.getElementById(I.toString()))==null?void 0:X.focus()},1),(0,e.createComponentVNode)(2,k.Window,{title:y,width:325,height:G,children:[N&&(0,e.createComponentVNode)(2,a.Loader,{value:N}),(0,e.createComponentVNode)(2,k.Window.Content,{onKeyDown:function(){function X(Y){var J=window.event?Y.which:Y.keyCode;(J===V.KEY_DOWN||J===V.KEY_UP)&&(Y.preventDefault(),P(J)),J===V.KEY_ENTER&&(Y.preventDefault(),u("submit",{entry:z[I]})),!A&&J>=V.KEY_A&&J<=V.KEY_Z&&(Y.preventDefault(),F(J)),J===V.KEY_ESCAPE&&(Y.preventDefault(),u("cancel"))}return X}(),children:(0,e.createComponentVNode)(2,o.Section,{buttons:(0,e.createComponentVNode)(2,o.Button,{compact:!0,icon:A?"search":"font",selected:!0,tooltip:A?"Search Mode. Type to search or use arrow keys to select manually.":"Hotkey Mode. Type a letter to jump to the first match. Enter to select.",tooltipPosition:"left",onClick:function(){function X(){return _()}return X}()}),className:"ListInput__Section",fill:!0,title:g,children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,b,{filteredItems:z,onClick:R,onFocusSearch:j,searchBarVisible:A,selected:I})}),(0,e.createComponentVNode)(2,o.Stack.Item,{m:0,children:A&&(0,e.createComponentVNode)(2,p,{filteredItems:z,onSearch:U,searchQuery:M,selected:I})}),(0,e.createComponentVNode)(2,o.Stack.Item,{mt:.5,children:(0,e.createComponentVNode)(2,t.InputButtons,{input:z[I]})})]})})})]})}return l}(),b=function(c,m){var d=(0,f.useBackend)(m),u=d.act,s=c.filteredItems,i=c.onClick,v=c.onFocusSearch,C=c.searchBarVisible,g=c.selected;return(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,tabIndex:0,children:s.map(function(h,N){return(0,e.createComponentVNode)(2,o.Button,{fluid:!0,color:"transparent",id:N,onClick:function(){function y(){return i(N)}return y}(),onDblClick:function(){function y(B){B.preventDefault(),u("submit",{entry:s[g]})}return y}(),onKeyDown:function(){function y(B){var I=window.event?B.which:B.keyCode;C&&I>=V.KEY_A&&I<=V.KEY_Z&&(B.preventDefault(),v())}return y}(),selected:N===g,style:{animation:"none",transition:"none"},children:h.replace(/^\w/,function(y){return y.toUpperCase()})},N)})})},p=function(c,m){var d=(0,f.useBackend)(m),u=d.act,s=c.filteredItems,i=c.onSearch,v=c.searchQuery,C=c.selected;return(0,e.createComponentVNode)(2,o.Input,{width:"100%",autoFocus:!0,autoSelect:!0,onEnter:function(){function g(h){h.preventDefault(),u("submit",{entry:s[C]})}return g}(),onInput:function(){function g(h,N){return i(N)}return g}(),placeholder:"Search...",value:v})}},71963:function(L,r,n){"use strict";r.__esModule=!0,r.MODsuitContent=r.MODsuit=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=function(I,w){var T=I.name,A=I.value,x=I.module_ref,E=(0,a.useBackend)(w),M=E.act;return(0,e.createComponentVNode)(2,t.NumberInput,{value:A,minValue:-50,maxValue:50,stepPixelSize:5,width:"39px",onChange:function(){function D(P,R){return M("configure",{key:T,value:R,ref:x})}return D}()})},V=function(I,w){var T=I.name,A=I.value,x=I.module_ref,E=(0,a.useBackend)(w),M=E.act;return(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:A,onClick:function(){function D(){return M("configure",{key:T,value:!A,ref:x})}return D}()})},k=function(I,w){var T=I.name,A=I.value,x=I.module_ref,E=(0,a.useBackend)(w),M=E.act;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{icon:"paint-brush",onClick:function(){function D(){return M("configure",{key:T,ref:x})}return D}()}),(0,e.createComponentVNode)(2,t.ColorBox,{color:A,mr:.5})],4)},S=function(I,w){var T=I.name,A=I.value,x=I.values,E=I.module_ref,M=(0,a.useBackend)(w),D=M.act;return(0,e.createComponentVNode)(2,t.Dropdown,{displayText:A,options:x,onSelected:function(){function P(R){return D("configure",{key:T,value:R,ref:E})}return P}()})},b=function(I,w){var T=I.name,A=I.display_name,x=I.type,E=I.value,M=I.values,D=I.module_ref,P={number:(0,e.normalizeProps)((0,e.createComponentVNode)(2,f,Object.assign({},I))),bool:(0,e.normalizeProps)((0,e.createComponentVNode)(2,V,Object.assign({},I))),color:(0,e.normalizeProps)((0,e.createComponentVNode)(2,k,Object.assign({},I))),list:(0,e.normalizeProps)((0,e.createComponentVNode)(2,S,Object.assign({},I)))};return(0,e.createComponentVNode)(2,t.Box,{children:[A,": ",P[x]]})},p=function(I,w){var T=I.active,A=I.userradiated,x=I.usertoxins,E=I.usermaxtoxins,M=I.threatlevel;return(0,e.createComponentVNode)(2,t.Stack,{fill:!0,textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Radiation Level",color:T&&A?"bad":"good",children:T&&A?"IRRADIATED!":"RADIATION-FREE"})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Toxins Level",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:T?x/E:0,ranges:{good:[-1/0,.2],average:[.2,.5],bad:[.5,1/0]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:x})})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Hazard Level",color:T&&M?"bad":"good",bold:!0,children:T&&M?M:0})})]})},l=function(I,w){var T=I.active,A=I.userhealth,x=I.usermaxhealth,E=I.userbrute,M=I.userburn,D=I.usertoxin,P=I.useroxy;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{title:"Health",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:T?A/x:0,ranges:{good:[.5,1/0],average:[.2,.5],bad:[-1/0,.2]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:T?A:0})})}),(0,e.createComponentVNode)(2,t.Stack,{textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Brute",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:T?E/x:0,ranges:{good:[-1/0,.2],average:[.2,.5],bad:[.5,1/0]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:T?E:0})})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Burn",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:T?M/x:0,ranges:{good:[-1/0,.2],average:[.2,.5],bad:[.5,1/0]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:T?M:0})})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Toxin",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:T?D/x:0,ranges:{good:[-1/0,.2],average:[.2,.5],bad:[.5,1/0]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:T?D:0})})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Suffocation",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:T?P/x:0,ranges:{good:[-1/0,.2],average:[.2,.5],bad:[.5,1/0]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:T?P:0})})})})]})],4)},c=function(I,w){var T=I.active,A=I.statustime,x=I.statusid,E=I.statushealth,M=I.statusmaxhealth,D=I.statusbrute,P=I.statusburn,R=I.statustoxin,j=I.statusoxy,F=I.statustemp,U=I.statusnutrition,_=I.statusfingerprints,z=I.statusdna,G=I.statusviruses;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Stack,{textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Operation Time",children:T?A:"00:00:00"})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Operation Number",children:T?x||"0":"???"})})]}),(0,e.createComponentVNode)(2,t.Section,{title:"Health",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:T?E/M:0,ranges:{good:[.5,1/0],average:[.2,.5],bad:[-1/0,.2]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:T?E:0})})}),(0,e.createComponentVNode)(2,t.Stack,{textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Brute",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:T?D/M:0,ranges:{good:[-1/0,.2],average:[.2,.5],bad:[.5,1/0]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:T?D:0})})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Burn",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:T?P/M:0,ranges:{good:[-1/0,.2],average:[.2,.5],bad:[.5,1/0]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:T?P:0})})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Toxin",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:T?R/M:0,ranges:{good:[-1/0,.2],average:[.2,.5],bad:[.5,1/0]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:R})})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Suffocation",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:T?j/M:0,ranges:{good:[-1/0,.2],average:[.2,.5],bad:[.5,1/0]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:j})})})})]}),(0,e.createComponentVNode)(2,t.Stack,{textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Body Temperature",children:T?F:0})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Nutrition Status",children:T?U:0})})]}),(0,e.createComponentVNode)(2,t.Section,{title:"DNA",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Fingerprints",children:T?_:"???"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Unique Enzymes",children:T?z:"???"})]})}),!!T&&!!G&&(0,e.createComponentVNode)(2,t.Section,{title:"Diseases",children:(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"signature",tooltip:"Name",tooltipPosition:"top"})}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"wind",tooltip:"Type",tooltipPosition:"top"})}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"bolt",tooltip:"Stage",tooltipPosition:"top"})}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"flask",tooltip:"Cure",tooltipPosition:"top"})})]}),G.map(function(X){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:X.name}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:X.type}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:[X.stage,"/",X.maxstage]}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:X.cure})]},X.name)})]})})],0)},m={rad_counter:p,health_analyzer:l,status_readout:c},d=function(){return(0,e.createComponentVNode)(2,t.Section,{align:"center",fill:!0,children:[(0,e.createComponentVNode)(2,t.Icon,{color:"red",name:"exclamation-triangle",size:15}),(0,e.createComponentVNode)(2,t.Box,{fontSize:"30px",color:"red",children:"ERROR: INTERFACE UNRESPONSIVE"})]})},u=function(I,w){var T=(0,a.useBackend)(w),A=T.act,x=T.data;return(0,e.createComponentVNode)(2,t.Dimmer,{children:(0,e.createComponentVNode)(2,t.Stack,{children:(0,e.createComponentVNode)(2,t.Stack.Item,{fontSize:"16px",color:"blue",children:"SUIT UNPOWERED"})})})},s=function(I,w){var T=I.configuration_data,A=I.module_ref,x=Object.keys(T);return(0,e.createComponentVNode)(2,t.Dimmer,{backgroundColor:"rgba(0, 0, 0, 0.8)",children:(0,e.createComponentVNode)(2,t.Stack,{vertical:!0,children:[x.map(function(E){var M=T[E];return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,b,{name:E,display_name:M.display_name,type:M.type,value:M.value,values:M.values,module_ref:A})},M.key)}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,onClick:I.onExit,icon:"times",textAlign:"center",children:"Exit"})})})]})})},i=function(I){switch(I){case 1:return"Use";case 2:return"Toggle";case 3:return"Select"}},v=function(I,w){var T=(0,a.useBackend)(w),A=T.act,x=T.data,E=x.active,M=x.malfunctioning,D=x.locked,P=x.open,R=x.selected_module,j=x.complexity,F=x.complexity_max,U=x.wearer_name,_=x.wearer_job,z=M?"Malfunctioning":E?"Active":"Inactive";return(0,e.createComponentVNode)(2,t.Section,{title:"Parameters",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"power-off",content:E?"Deactivate":"Activate",onClick:function(){function G(){return A("activate")}return G}()}),children:z}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"ID Lock",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:D?"lock-open":"lock",content:D?"Unlock":"Lock",onClick:function(){function G(){return A("lock")}return G}()}),children:D?"Locked":"Unlocked"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cover",children:P?"Open":"Closed"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Selected Module",children:R||"None"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Complexity",children:[j," (",F,")"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Occupant",children:[U,", ",_]})]})})},C=function(I,w){var T=(0,a.useBackend)(w),A=T.act,x=T.data,E=x.active,M=x.control,D=x.helmet,P=x.chestplate,R=x.gauntlets,j=x.boots,F=x.core,U=x.charge;return(0,e.createComponentVNode)(2,t.Section,{title:"Hardware",children:[(0,e.createComponentVNode)(2,t.Collapsible,{title:"Parts",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Control Unit",children:M}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Helmet",children:D||"None"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Chestplate",children:P||"None"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Gauntlets",children:R||"None"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Boots",children:j||"None"})]})}),(0,e.createComponentVNode)(2,t.Collapsible,{title:"Core",children:F&&(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Core Type",children:F}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Core Charge",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:U/100,content:U+"%",ranges:{good:[.6,1/0],average:[.3,.6],bad:[-1/0,.3]}})})]})||(0,e.createComponentVNode)(2,t.Box,{color:"bad",textAlign:"center",children:"No Core Detected"})})]})},g=function(I,w){var T=(0,a.useBackend)(w),A=T.act,x=T.data,E=x.active,M=x.modules,D=M.filter(function(P){return!!P.id});return(0,e.createComponentVNode)(2,t.Section,{title:"Info",children:(0,e.createComponentVNode)(2,t.Stack,{vertical:!0,children:D.length!==0&&D.map(function(P){var R=m[P.id];return(0,e.createComponentVNode)(2,t.Stack.Item,{children:[!E&&(0,e.createComponentVNode)(2,u),(0,e.normalizeProps)((0,e.createComponentVNode)(2,R,Object.assign({},P,{active:E})))]},P.ref)})||(0,e.createComponentVNode)(2,t.Box,{textAlign:"center",children:"No Info Modules Detected"})})})},h=function(I,w){var T=(0,a.useBackend)(w),A=T.act,x=T.data,E=x.complexity_max,M=x.modules,D=(0,a.useLocalState)(w,"module_configuration",null),P=D[0],R=D[1];return(0,e.createComponentVNode)(2,t.Section,{title:"Modules",fill:!0,children:(0,e.createComponentVNode)(2,t.Stack,{vertical:!0,children:M.length!==0&&M.map(function(j){return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Collapsible,{title:j.module_name,children:(0,e.createComponentVNode)(2,t.Section,{children:[P===j.ref&&(0,e.createComponentVNode)(2,s,{configuration_data:j.configuration_data,module_ref:j.ref,onExit:function(){function F(){return R(null)}return F}()}),(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"save",tooltip:"Complexity",tooltipPosition:"top"})}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"plug",tooltip:"Idle Power Cost",tooltipPosition:"top"})}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"lightbulb",tooltip:"Active Power Cost",tooltipPosition:"top"})}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"bolt",tooltip:"Use Power Cost",tooltipPosition:"top"})}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"hourglass-half",tooltip:"Cooldown",tooltipPosition:"top"})}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"tasks",tooltip:"Actions",tooltipPosition:"top"})})]}),(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:[j.module_complexity,"/",E]}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:j.idle_power}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:j.active_power}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:j.use_power}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:[j.cooldown>0&&j.cooldown/10||"0","/",j.cooldown_time/10,"s"]}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function F(){return A("select",{ref:j.ref})}return F}(),icon:"bullseye",selected:j.module_active,tooltip:i(j.module_type),tooltipPosition:"left",disabled:!j.module_type}),(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function F(){return R(j.ref)}return F}(),icon:"cog",selected:P===j.ref,tooltip:"Configure",tooltipPosition:"left",disabled:j.configuration_data.length===0}),(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function F(){return A("pin",{ref:j.ref})}return F}(),icon:"thumbtack",selected:j.pinned,tooltip:"Pin",tooltipPosition:"left",disabled:!j.module_type})]})]})]}),(0,e.createComponentVNode)(2,t.Box,{children:j.description})]})})},j.ref)})||(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Box,{textAlign:"center",children:"No Modules Detected"})})})})},N=r.MODsuitContent=function(){function B(I,w){var T=(0,a.useBackend)(w),A=T.act,x=T.data,E=x.ui_theme,M=x.interface_break;return(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!M,children:!!M&&(0,e.createComponentVNode)(2,d)||(0,e.createComponentVNode)(2,t.Stack,{vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,v)}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,C)}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,g)}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,h)})]})})}return B}(),y=r.MODsuit=function(){function B(I,w){var T=(0,a.useBackend)(w),A=T.act,x=T.data,E=x.ui_theme,M=x.interface_break;return(0,e.createComponentVNode)(2,o.Window,{theme:E,width:400,height:620,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,N)})})})}return B}()},84274:function(L,r,n){"use strict";r.__esModule=!0,r.MagnetController=void 0;var e=n(96524),a=n(36121),t=n(17899),o=n(24674),f=n(45493),V=n(99665),k=new Map([["n",{icon:"arrow-up",tooltip:"Move North"}],["e",{icon:"arrow-right",tooltip:"Move East"}],["s",{icon:"arrow-down",tooltip:"Move South"}],["w",{icon:"arrow-left",tooltip:"Move West"}],["c",{icon:"crosshairs",tooltip:"Move to Magnet"}],["r",{icon:"dice",tooltip:"Move Randomly"}]]),S=r.MagnetController=function(){function b(p,l){var c=(0,t.useBackend)(l),m=c.act,d=c.data,u=d.autolink,s=d.code,i=d.frequency,v=d.linkedMagnets,C=d.magnetConfiguration,g=d.path,h=d.pathPosition,N=d.probing,y=d.powerState,B=d.speed;return(0,e.createComponentVNode)(2,f.Window,{width:400,height:600,children:[(0,e.createComponentVNode)(2,V.ComplexModal),(0,e.createComponentVNode)(2,f.Window.Content,{scrollable:!0,children:[!u&&(0,e.createComponentVNode)(2,o.Section,{buttons:(0,e.createComponentVNode)(2,o.Button,{content:"Probe",icon:N?"spinner":"sync",iconSpin:!!N,disabled:N,onClick:function(){function I(){return m("probe_magnets")}return I}()}),title:"Magnet Linking",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Frequency",children:(0,a.toFixed)(i/10,1)}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Code",children:s})]})}),(0,e.createComponentVNode)(2,o.Section,{buttons:(0,e.createComponentVNode)(2,o.Button,{icon:y?"power-off":"times",content:y?"On":"Off",selected:y,onClick:function(){function I(){return m("toggle_power")}return I}()}),title:"Controller Configuration",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Speed",children:(0,e.createComponentVNode)(2,o.Slider,{value:B.value,minValue:B.min,maxValue:B.max,onChange:function(){function I(w,T){return m("set_speed",{speed:T})}return I}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Path",children:[Array.from(k.entries()).map(function(I){var w=I[0],T=I[1],A=T.icon,x=T.tooltip;return(0,e.createComponentVNode)(2,o.Button,{icon:A,tooltip:x,onClick:function(){function E(){return m("path_add",{code:w})}return E}()},w)}),(0,e.createComponentVNode)(2,o.Button.Confirm,{icon:"trash",confirmIcon:"trash",confirmContent:"",float:"right",tooltip:"Reset Path",tooltipPosition:"left",onClick:function(){function I(){return m("path_clear")}return I}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"file-import",float:"right",tooltip:"Manually input path",tooltipPosition:"left",onClick:function(){function I(){return(0,V.modalOpen)(l,"path_custom_input")}return I}()}),(0,e.createComponentVNode)(2,o.BlockQuote,{children:g.map(function(I,w){var T=k.get(I)||{icon:"question"},A=T.icon,x=T.tooltip;return(0,e.createComponentVNode)(2,o.Button.Confirm,{selected:w+2===h,icon:A,confirmIcon:A,confirmContent:"",tooltip:x,onClick:function(){function E(){return m("path_remove",{index:w+1,code:I})}return E}()},w)})})]})]})}),v.map(function(I,w){var T=I.uid,A=I.powerState,x=I.electricityLevel,E=I.magneticField;return(0,e.createComponentVNode)(2,o.Section,{title:"Magnet #"+(w+1)+" Configuration",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:A?"power-off":"times",content:A?"On":"Off",selected:A,onClick:function(){function M(){return m("toggle_magnet_power",{id:T})}return M}()}),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Move Speed",children:(0,e.createComponentVNode)(2,o.Slider,{value:x,minValue:C.electricityLevel.min,maxValue:C.electricityLevel.max,onChange:function(){function M(D,P){return m("set_electricity_level",{id:T,electricityLevel:P})}return M}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Field Size",children:(0,e.createComponentVNode)(2,o.Slider,{value:E,minValue:C.magneticField.min,maxValue:C.magneticField.max,onChange:function(){function M(D,P){return m("set_magnetic_field",{id:T,magneticField:P})}return M}()})})]})},T)})]})]})}return b}()},95752:function(L,r,n){"use strict";r.__esModule=!0,r.MechBayConsole=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.MechBayConsole=function(){function V(k,S){var b=(0,a.useBackend)(S),p=b.act,l=b.data,c=l.recharge_port,m=c&&c.mech,d=m&&m.cell,u=m&&m.name;return(0,e.createComponentVNode)(2,o.Window,{width:400,height:155,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:u?"Mech status: "+u:"Mech status",textAlign:"center",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"sync",content:"Sync",onClick:function(){function s(){return p("reconnect")}return s}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Integrity",children:!c&&(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No power port detected. Please re-sync."})||!m&&(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No mech detected."})||(0,e.createComponentVNode)(2,t.ProgressBar,{value:m.health/m.maxhealth,ranges:{good:[.7,1/0],average:[.3,.7],bad:[-1/0,.3]}})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power",children:!c&&(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No power port detected. Please re-sync."})||!m&&(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No mech detected."})||!d&&(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No cell is installed."})||(0,e.createComponentVNode)(2,t.ProgressBar,{value:d.charge/d.maxcharge,ranges:{good:[.7,1/0],average:[.3,.7],bad:[-1/0,.3]},children:[(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:d.charge})," / "+d.maxcharge]})})]})})})})}return V}()},53668:function(L,r,n){"use strict";r.__esModule=!0,r.MechaControlConsole=void 0;var e=n(96524),a=n(36121),t=n(17899),o=n(24674),f=n(45493),V=n(78234),k=r.MechaControlConsole=function(){function S(b,p){var l=(0,t.useBackend)(p),c=l.act,m=l.data,d=m.beacons,u=m.stored_data;return u.length?(0,e.createComponentVNode)(2,f.Window,{width:420,height:500,children:(0,e.createComponentVNode)(2,f.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,o.Section,{title:"Log",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"window-close",onClick:function(){function s(){return c("clear_log")}return s}()}),children:u.map(function(s){return(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,o.Box,{color:"label",children:["(",s.time,")"]}),(0,e.createComponentVNode)(2,o.Box,{children:(0,V.decodeHtmlEntities)(s.message)})]},s.time)})})})}):(0,e.createComponentVNode)(2,f.Window,{width:420,height:500,children:(0,e.createComponentVNode)(2,f.Window.Content,{scrollable:!0,children:d.length&&d.map(function(s){return(0,e.createComponentVNode)(2,o.Section,{title:s.name,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{icon:"comment",onClick:function(){function i(){return c("send_message",{mt:s.uid})}return i}(),children:"Message"}),(0,e.createComponentVNode)(2,o.Button,{icon:"eye",onClick:function(){function i(){return c("get_log",{mt:s.uid})}return i}(),children:"View Log"}),(0,e.createComponentVNode)(2,o.Button.Confirm,{color:"red",content:"Sabotage",icon:"bomb",onClick:function(){function i(){return c("shock",{mt:s.uid})}return i}()})],4),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Health",children:(0,e.createComponentVNode)(2,o.ProgressBar,{ranges:{good:[s.maxHealth*.75,1/0],average:[s.maxHealth*.5,s.maxHealth*.75],bad:[-1/0,s.maxHealth*.5]},value:s.health,maxValue:s.maxHealth})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Cell Charge",children:s.cell&&(0,e.createComponentVNode)(2,o.ProgressBar,{ranges:{good:[s.cellMaxCharge*.75,1/0],average:[s.cellMaxCharge*.5,s.cellMaxCharge*.75],bad:[-1/0,s.cellMaxCharge*.5]},value:s.cellCharge,maxValue:s.cellMaxCharge})||(0,e.createComponentVNode)(2,o.NoticeBox,{children:"No Cell Installed"})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Air Tank",children:[s.airtank,"kPa"]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Pilot",children:s.pilot||"Unoccupied"}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Location",children:(0,V.toTitleCase)(s.location)||"Unknown"}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Active Equipment",children:s.active||"None"}),s.cargoMax&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Cargo Space",children:(0,e.createComponentVNode)(2,o.ProgressBar,{ranges:{bad:[s.cargoMax*.75,1/0],average:[s.cargoMax*.5,s.cargoMax*.75],good:[-1/0,s.cargoMax*.5]},value:s.cargoUsed,maxValue:s.cargoMax})})||null]})},s.name)})||(0,e.createComponentVNode)(2,o.NoticeBox,{children:"No mecha beacons found."})})})}return S}()},96467:function(L,r,n){"use strict";r.__esModule=!0,r.MedicalRecords=void 0;var e=n(96524),a=n(78234),t=n(17899),o=n(24674),f=n(99665),V=n(45493),k=n(68159),S=n(27527),b=n(84537),p={Minor:"lightgray",Medium:"good",Harmful:"average","Dangerous!":"bad","BIOHAZARD THREAT!":"darkred"},l={"*Deceased*":"deceased","*SSD*":"ssd","Physically Unfit":"physically_unfit",Disabled:"disabled"},c=function(A,x){(0,f.modalOpen)(A,"edit",{field:x.edit,value:x.value})},m=function(A,x){var E=A.args;return(0,e.createComponentVNode)(2,o.Section,{m:"-1rem",pb:"1.5rem",title:E.name||"Virus",children:(0,e.createComponentVNode)(2,o.Box,{mx:"0.5rem",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Number of stages",children:E.max_stages}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Spread",children:[E.spread_text," Transmission"]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Possible cure",children:E.cure}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Notes",children:E.desc}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Severity",color:p[E.severity],children:E.severity})]})})})},d=r.MedicalRecords=function(){function T(A,x){var E=(0,t.useBackend)(x),M=E.data,D=M.loginState,P=M.screen;if(!D.logged_in)return(0,e.createComponentVNode)(2,V.Window,{width:800,height:900,children:(0,e.createComponentVNode)(2,V.Window.Content,{children:(0,e.createComponentVNode)(2,S.LoginScreen)})});var R;return P===2?R=(0,e.createComponentVNode)(2,u):P===3?R=(0,e.createComponentVNode)(2,s):P===4?R=(0,e.createComponentVNode)(2,i):P===5?R=(0,e.createComponentVNode)(2,h):P===6?R=(0,e.createComponentVNode)(2,N):P===7&&(R=(0,e.createComponentVNode)(2,y)),(0,e.createComponentVNode)(2,V.Window,{width:800,height:900,children:[(0,e.createComponentVNode)(2,f.ComplexModal),(0,e.createComponentVNode)(2,V.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,k.LoginInfo),(0,e.createComponentVNode)(2,b.TemporaryNotice),(0,e.createComponentVNode)(2,w),R]})})]})}return T}(),u=function(A,x){var E=(0,t.useBackend)(x),M=E.act,D=E.data,P=D.records,R=(0,t.useLocalState)(x,"searchText",""),j=R[0],F=R[1],U=(0,t.useLocalState)(x,"sortId","name"),_=U[0],z=U[1],G=(0,t.useLocalState)(x,"sortOrder",!0),X=G[0],Y=G[1];return(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{content:"Manage Records",icon:"wrench",ml:"0.25rem",onClick:function(){function J(){return M("screen",{screen:3})}return J}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Input,{fluid:!0,placeholder:"Search by Name, ID, Physical Status, or Mental Status",onInput:function(){function J(ie,ae){return F(ae)}return J}()})})]})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,mt:.5,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,o.Table,{className:"MedicalRecords__list",children:[(0,e.createComponentVNode)(2,o.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,B,{id:"name",children:"Name"}),(0,e.createComponentVNode)(2,B,{id:"id",children:"ID"}),(0,e.createComponentVNode)(2,B,{id:"rank",children:"Assignment"}),(0,e.createComponentVNode)(2,B,{id:"p_stat",children:"Patient Status"}),(0,e.createComponentVNode)(2,B,{id:"m_stat",children:"Mental Status"})]}),P.filter((0,a.createSearch)(j,function(J){return J.name+"|"+J.id+"|"+J.rank+"|"+J.p_stat+"|"+J.m_stat})).sort(function(J,ie){var ae=X?1:-1;return J[_].localeCompare(ie[_])*ae}).map(function(J){return(0,e.createComponentVNode)(2,o.Table.Row,{className:"MedicalRecords__listRow--"+l[J.p_stat],onClick:function(){function ie(){return M("view_record",{view_record:J.ref})}return ie}(),children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:"user"})," ",J.name]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:J.id}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:J.rank}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:J.p_stat}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:J.m_stat})]},J.id)})]})})})],4)},s=function(A,x){var E=(0,t.useBackend)(x),M=E.act;return(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,lineHeight:3,color:"translucent",icon:"download",content:"Backup to Disk",disabled:!0})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:[(0,e.createComponentVNode)(2,o.Button,{fluid:!0,lineHeight:3,color:"translucent",icon:"upload",content:"Upload from Disk",my:"0.5rem",disabled:!0})," "]}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Button.Confirm,{fluid:!0,lineHeight:3,icon:"trash",color:"translucent",content:"Delete All Medical Records",onClick:function(){function D(){return M("del_all_med_records")}return D}()})})]})})},i=function(A,x){var E=(0,t.useBackend)(x),M=E.act,D=E.data,P=D.medical,R=D.printing;return(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Stack.Item,{height:"235px",children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"General Data",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:R?"spinner":"print",disabled:R,iconSpin:!!R,content:"Print Record",ml:"0.5rem",onClick:function(){function j(){return M("print_record")}return j}()}),children:(0,e.createComponentVNode)(2,v)})}),!P||!P.fields?(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,color:"bad",children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,title:"Medical Data",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"pen",content:"Create New Record",onClick:function(){function j(){return M("new_med_record")}return j}()}),children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,o.Stack.Item,{bold:!0,grow:!0,textAlign:"center",fontSize:1.75,align:"center",color:"label",children:[(0,e.createComponentVNode)(2,o.Icon.Stack,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:"scroll",size:5,color:"gray"}),(0,e.createComponentVNode)(2,o.Icon,{name:"slash",size:5,color:"red"})]}),(0,e.createVNode)(1,"br"),"Medical records lost!"]})})})}):(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"Medical Data",buttons:(0,e.createComponentVNode)(2,o.Button.Confirm,{icon:"trash",disabled:!!P.empty,content:"Delete Medical Record",onClick:function(){function j(){return M("del_med_record")}return j}()}),children:(0,e.createComponentVNode)(2,C)})}),(0,e.createComponentVNode)(2,g)],4)],0)},v=function(A,x){var E=(0,t.useBackend)(x),M=E.data,D=M.general;return!D||!D.fields?(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,color:"bad",children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,children:"General records lost!"})})}):(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.LabeledList,{children:D.fields.map(function(P,R){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:P.field,children:[(0,e.createComponentVNode)(2,o.Box,{height:"20px",inline:!0,children:P.value}),!!P.edit&&(0,e.createComponentVNode)(2,o.Button,{icon:"pen",ml:"0.5rem",onClick:function(){function j(){return c(x,P)}return j}()})]},R)})})}),!!D.has_photos&&D.photos.map(function(P,R){return(0,e.createComponentVNode)(2,o.Stack.Item,{inline:!0,textAlign:"center",color:"label",ml:0,children:[(0,e.createVNode)(1,"img",null,null,1,{src:P,style:{width:"96px","margin-top":"2.5rem","margin-bottom":"0.5rem","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createVNode)(1,"br"),"Photo #",R+1]},R)})]})},C=function(A,x){var E=(0,t.useBackend)(x),M=E.act,D=E.data,P=D.medical;return!P||!P.fields?(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,color:"bad",children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,children:"Medical records lost!"})})}):(0,e.createComponentVNode)(2,o.Stack,{children:(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.LabeledList,{children:P.fields.map(function(R,j){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:R.field,preserveWhitespace:!0,children:[(0,a.decodeHtmlEntities)(R.value),!!R.edit&&(0,e.createComponentVNode)(2,o.Button,{icon:"pen",ml:"0.5rem",mb:R.line_break?"1rem":"initial",onClick:function(){function F(){return c(x,R)}return F}()})]},j)})})})})},g=function(A,x){var E=(0,t.useBackend)(x),M=E.act,D=E.data,P=D.medical;return(0,e.createComponentVNode)(2,o.Stack.Item,{height:"150px",children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"Comments/Log",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"comment",content:"Add Entry",onClick:function(){function R(){return(0,f.modalOpen)(x,"add_comment")}return R}()}),children:P.comments.length===0?(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"No comments found."}):P.comments.map(function(R,j){return(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,o.Box,{color:"label",inline:!0,children:R.header}),(0,e.createVNode)(1,"br"),R.text,(0,e.createComponentVNode)(2,o.Button,{icon:"comment-slash",color:"bad",ml:"0.5rem",onClick:function(){function F(){return M("del_comment",{del_comment:j+1})}return F}()})]},j)})})})},h=function(A,x){var E=(0,t.useBackend)(x),M=E.act,D=E.data,P=D.virus,R=(0,t.useLocalState)(x,"searchText",""),j=R[0],F=R[1],U=(0,t.useLocalState)(x,"sortId2","name"),_=U[0],z=U[1],G=(0,t.useLocalState)(x,"sortOrder2",!0),X=G[0],Y=G[1];return(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Input,{ml:"0.25rem",fluid:!0,placeholder:"Search by Name, Max Stages, or Severity",onInput:function(){function J(ie,ae){return F(ae)}return J}()})}),(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,mt:.5,children:(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,o.Table,{className:"MedicalRecords__list",children:[(0,e.createComponentVNode)(2,o.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,I,{id:"name",children:"Name"}),(0,e.createComponentVNode)(2,I,{id:"max_stages",children:"Max Stages"}),(0,e.createComponentVNode)(2,I,{id:"severity",children:"Severity"})]}),P.filter((0,a.createSearch)(j,function(J){return J.name+"|"+J.max_stages+"|"+J.severity})).sort(function(J,ie){var ae=X?1:-1;return J[_].localeCompare(ie[_])*ae}).map(function(J){return(0,e.createComponentVNode)(2,o.Table.Row,{className:"MedicalRecords__listVirus--"+J.severity,onClick:function(){function ie(){return M("vir",{vir:J.D})}return ie}(),children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:"virus"})," ",J.name]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:J.max_stages}),(0,e.createComponentVNode)(2,o.Table.Cell,{color:p[J.severity],children:J.severity})]},J.id)})]})})})})],4)},N=function(A,x){var E=(0,t.useBackend)(x),M=E.act,D=E.data,P=D.goals;return(0,e.createComponentVNode)(2,o.Section,{title:"Virology Goals",fill:!0,children:(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:P.length!==0&&P.map(function(R){return(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Section,{title:R.name,children:[(0,e.createComponentVNode)(2,o.Table,{children:(0,e.createComponentVNode)(2,o.Table.Row,{header:!0,children:(0,e.createComponentVNode)(2,o.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,o.ProgressBar,{value:R.delivered,minValue:0,maxValue:R.deliverygoal,ranges:{good:[R.deliverygoal*.5,1/0],average:[R.deliverygoal*.25,R.deliverygoal*.5],bad:[-1/0,R.deliverygoal*.25]},children:[R.delivered," / ",R.deliverygoal," Units"]})})})}),(0,e.createComponentVNode)(2,o.Box,{children:R.report})]})},R.id)})||(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Box,{textAlign:"center",children:"No Goals Detected"})})})})},y=function(A,x){var E=(0,t.useBackend)(x),M=E.act,D=E.data,P=D.medbots;return P.length===0?(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,color:"bad",children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,o.Stack.Item,{bold:!0,grow:!0,textAlign:"center",fontSize:1.75,align:"center",color:"label",children:[(0,e.createComponentVNode)(2,o.Icon.Stack,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:"robot",size:5,color:"gray"}),(0,e.createComponentVNode)(2,o.Icon,{name:"slash",size:5,color:"red"})]}),(0,e.createVNode)(1,"br"),"There are no Medibots."]})})})}):(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,o.Table,{className:"MedicalRecords__list",children:[(0,e.createComponentVNode)(2,o.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Name"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Area"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Status"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Chemicals"})]}),P.map(function(R){return(0,e.createComponentVNode)(2,o.Table.Row,{className:"MedicalRecords__listMedbot--"+R.on,children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:"medical"})," ",R.name]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:[R.area||"Unknown"," (",R.x,", ",R.y,")"]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:R.on?(0,e.createComponentVNode)(2,o.Box,{color:"good",children:"Online"}):(0,e.createComponentVNode)(2,o.Box,{color:"average",children:"Offline"})}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:R.use_beaker?"Reservoir: "+R.total_volume+"/"+R.maximum_volume:"Using internal synthesizer"})]},R.id)})]})})})},B=function(A,x){var E=(0,t.useLocalState)(x,"sortId","name"),M=E[0],D=E[1],P=(0,t.useLocalState)(x,"sortOrder",!0),R=P[0],j=P[1],F=A.id,U=A.children;return(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,color:M!==F&&"transparent",onClick:function(){function _(){M===F?j(!R):(D(F),j(!0))}return _}(),children:[U,M===F&&(0,e.createComponentVNode)(2,o.Icon,{name:R?"sort-up":"sort-down",ml:"0.25rem;"})]})})},I=function(A,x){var E=(0,t.useLocalState)(x,"sortId2","name"),M=E[0],D=E[1],P=(0,t.useLocalState)(x,"sortOrder2",!0),R=P[0],j=P[1],F=A.id,U=A.children;return(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,color:M!==F&&"transparent",onClick:function(){function _(){M===F?j(!R):(D(F),j(!0))}return _}(),children:[U,M===F&&(0,e.createComponentVNode)(2,o.Icon,{name:R?"sort-up":"sort-down",ml:"0.25rem;"})]})})},w=function(A,x){var E=(0,t.useBackend)(x),M=E.act,D=E.data,P=D.screen,R=D.general;return(0,e.createComponentVNode)(2,o.Stack.Item,{m:0,children:(0,e.createComponentVNode)(2,o.Tabs,{children:[(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"list",selected:P===2,onClick:function(){function j(){M("screen",{screen:2})}return j}(),children:"List Records"}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"database",selected:P===5,onClick:function(){function j(){M("screen",{screen:5})}return j}(),children:"Virus Database"}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"vial",selected:P===6,onClick:function(){function j(){M("screen",{screen:6})}return j}(),children:"Virology Goals"}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"plus-square",selected:P===7,onClick:function(){function j(){return M("screen",{screen:7})}return j}(),children:"Medibot Tracking"}),P===3&&(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"wrench",selected:P===3,children:"Record Maintenance"}),P===4&&R&&!R.empty&&(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"file",selected:P===4,children:["Record: ",R.fields[0].value]})]})})};(0,f.modalRegisterBodyOverride)("virus",m)},68211:function(L,r,n){"use strict";r.__esModule=!0,r.MerchVendor=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=function(p,l){var c=(0,a.useBackend)(l),m=c.act,d=c.data,u=p.product,s=p.productImage,i=p.productCategory,v=d.user_money;return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,children:(0,e.createVNode)(1,"img",null,null,1,{src:"data:image/jpeg;base64,"+s,style:{"vertical-align":"middle",width:"32px",margin:"0px","margin-left":"0px"}})}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:u.name}),(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{disabled:u.price>v,icon:"shopping-cart",content:u.price,textAlign:"left",onClick:function(){function C(){return m("purchase",{name:u.name,category:i})}return C}()})})]})},V=function(p,l){var c=(0,a.useBackend)(l),m=c.data,d=(0,a.useLocalState)(l,"tabIndex",1),u=d[0],s=m.products,i=m.imagelist,v=["apparel","toy","decoration"];return(0,e.createComponentVNode)(2,t.Table,{children:s[v[u]].map(function(C){return(0,e.createComponentVNode)(2,f,{product:C,productImage:i[C.path],productCategory:v[u]},C.name)})})},k=r.MerchVendor=function(){function b(p,l){var c=(0,a.useBackend)(l),m=c.act,d=c.data,u=d.user_cash,s=d.inserted_cash;return(0,e.createComponentVNode)(2,o.Window,{title:"Merch Computer",width:450,height:600,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"User",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{color:"light-grey",inline:!0,mr:"0.5rem",children:["There is ",(0,e.createVNode)(1,"b",null,s,0)," credits inserted."]}),(0,e.createComponentVNode)(2,t.Button,{disabled:!s,icon:"money-bill-wave-alt",content:"Dispense Change",textAlign:"left",onClick:function(){function i(){return m("change")}return i}()})],4),children:(0,e.createComponentVNode)(2,t.Stack.Item,{children:["Doing your job and not getting any recognition at work? Well, welcome to the merch shop! Here, you can buy cool things in exchange for money you earn when you have completed your Job Objectives.",u!==null&&(0,e.createComponentVNode)(2,t.Box,{mt:"0.5rem",children:["Your balance is ",(0,e.createVNode)(1,"b",null,[u||0,(0,e.createTextVNode)(" credits")],0),"."]})]})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Products",children:[(0,e.createComponentVNode)(2,S),(0,e.createComponentVNode)(2,V)]})})]})})})}return b}(),S=function(p,l){var c=(0,a.useBackend)(l),m=c.data,d=(0,a.useLocalState)(l,"tabIndex",1),u=d[0],s=d[1],i=m.login_state;return(0,e.createComponentVNode)(2,t.Tabs,{children:[(0,e.createComponentVNode)(2,t.Tabs.Tab,{icon:"dice",selected:u===1,onClick:function(){function v(){return s(1)}return v}(),children:"Toys"}),(0,e.createComponentVNode)(2,t.Tabs.Tab,{icon:"flag",selected:u===2,onClick:function(){function v(){return s(2)}return v}(),children:"Decorations"})]})}},14162:function(L,r,n){"use strict";r.__esModule=!0,r.MiningVendor=void 0;var e=n(96524),a=n(78234),t=n(17899),o=n(24674),f=n(45493),V=["title","items"];function k(d,u){if(d==null)return{};var s={},i=Object.keys(d),v,C;for(C=0;C=0)&&(s[v]=d[v]);return s}var S={Alphabetical:function(){function d(u,s){return u-s}return d}(),Availability:function(){function d(u,s){return-(u.affordable-s.affordable)}return d}(),Price:function(){function d(u,s){return u.price-s.price}return d}()},b=r.MiningVendor=function(){function d(u,s){return(0,e.createComponentVNode)(2,f.Window,{width:400,height:455,children:(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,p),(0,e.createComponentVNode)(2,c),(0,e.createComponentVNode)(2,l)]})})})}return d}(),p=function(u,s){var i=(0,t.useBackend)(s),v=i.act,C=i.data,g=C.has_id,h=C.id;return(0,e.createComponentVNode)(2,o.NoticeBox,{success:g,children:g?(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Box,{inline:!0,verticalAlign:"middle",style:{float:"left"},children:["Logged in as ",h.name,".",(0,e.createVNode)(1,"br"),"You have ",h.points.toLocaleString("en-US")," points."]}),(0,e.createComponentVNode)(2,o.Button,{icon:"eject",content:"Eject ID",style:{float:"right"},onClick:function(){function N(){return v("logoff")}return N}()}),(0,e.createComponentVNode)(2,o.Box,{style:{clear:"both"}})],4):"Please insert an ID in order to make purchases."})},l=function(u,s){var i=(0,t.useBackend)(s),v=i.act,C=i.data,g=C.has_id,h=C.id,N=C.items,y=(0,t.useLocalState)(s,"search",""),B=y[0],I=y[1],w=(0,t.useLocalState)(s,"sort","Alphabetical"),T=w[0],A=w[1],x=(0,t.useLocalState)(s,"descending",!1),E=x[0],M=x[1],D=(0,a.createSearch)(B,function(j){return j[0]}),P=!1,R=Object.entries(N).map(function(j,F){var U=Object.entries(j[1]).filter(D).map(function(_){return _[1].affordable=g&&h.points>=_[1].price,_[1]}).sort(S[T]);if(U.length!==0)return E&&(U=U.reverse()),P=!0,(0,e.createComponentVNode)(2,m,{title:j[0],items:U},j[0])});return(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,mt:.5,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,children:P?R:(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"No items matching your criteria was found!"})})})},c=function(u,s){var i=(0,t.useLocalState)(s,"search",""),v=i[0],C=i[1],g=(0,t.useLocalState)(s,"sort",""),h=g[0],N=g[1],y=(0,t.useLocalState)(s,"descending",!1),B=y[0],I=y[1];return(0,e.createComponentVNode)(2,o.Box,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Input,{mt:.2,placeholder:"Search by item name..",width:"100%",onInput:function(){function w(T,A){return C(A)}return w}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"30%",children:(0,e.createComponentVNode)(2,o.Dropdown,{selected:"Alphabetical",options:Object.keys(S),width:"100%",onSelected:function(){function w(T){return N(T)}return w}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{icon:B?"arrow-down":"arrow-up",height:"21px",tooltip:B?"Descending order":"Ascending order",tooltipPosition:"bottom-start",onClick:function(){function w(){return I(!B)}return w}()})})]})})},m=function(u,s){var i=(0,t.useBackend)(s),v=i.act,C=i.data,g=u.title,h=u.items,N=k(u,V);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Collapsible,Object.assign({open:!0,title:g},N,{children:h.map(function(y){return(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,o.Box,{inline:!0,verticalAlign:"middle",lineHeight:"20px",style:{float:"left"},children:y.name}),(0,e.createComponentVNode)(2,o.Button,{disabled:!C.has_id||C.id.points=0)&&(T[x]=I[x]);return T}var c=128,m=["security","engineering","medical","science","service","supply"],d={security:{title:"Security",fluff_text:"Help keep the crew safe"},engineering:{title:"Engineering",fluff_text:"Ensure the station runs smoothly"},medical:{title:"Medical",fluff_text:"Practice medicine and save lives"},science:{title:"Science",fluff_text:"Develop new technologies"},service:{title:"Service",fluff_text:"Provide amenities to the crew"},supply:{title:"Supply",fluff_text:"Keep the station supplied"}},u=r.Newscaster=function(){function I(w,T){var A=(0,t.useBackend)(T),x=A.act,E=A.data,M=E.is_security,D=E.is_admin,P=E.is_silent,R=E.is_printing,j=E.screen,F=E.channels,U=E.channel_idx,_=U===void 0?-1:U,z=(0,t.useLocalState)(T,"menuOpen",!1),G=z[0],X=z[1],Y=(0,t.useLocalState)(T,"viewingPhoto",""),J=Y[0],ie=Y[1],ae=(0,t.useLocalState)(T,"censorMode",!1),fe=ae[0],pe=ae[1],be;j===0||j===2?be=(0,e.createComponentVNode)(2,i):j===1&&(be=(0,e.createComponentVNode)(2,v));var te=F.reduce(function(Q,ne){return Q+ne.unread},0);return(0,e.createComponentVNode)(2,V.Window,{theme:M&&"security",width:800,height:600,children:[J?(0,e.createComponentVNode)(2,h):(0,e.createComponentVNode)(2,k.ComplexModal,{maxWidth:window.innerWidth/1.5+"px",maxHeight:window.innerHeight/1.5+"px"}),(0,e.createComponentVNode)(2,V.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,o.Section,{fill:!0,className:(0,a.classes)(["Newscaster__menu",G&&"Newscaster__menu--open"]),children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:[(0,e.createComponentVNode)(2,s,{icon:"bars",title:"Toggle Menu",onClick:function(){function Q(){return X(!G)}return Q}()}),(0,e.createComponentVNode)(2,s,{icon:"newspaper",title:"Headlines",selected:j===0,onClick:function(){function Q(){return x("headlines")}return Q}(),children:te>0&&(0,e.createComponentVNode)(2,o.Box,{className:"Newscaster__menuButton--unread",children:te>=10?"9+":te})}),(0,e.createComponentVNode)(2,s,{icon:"briefcase",title:"Job Openings",selected:j===1,onClick:function(){function Q(){return x("jobs")}return Q}()}),(0,e.createComponentVNode)(2,o.Divider)]}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:F.map(function(Q){return(0,e.createComponentVNode)(2,s,{icon:Q.icon,title:Q.name,selected:j===2&&F[_-1]===Q,onClick:function(){function ne(){return x("channel",{uid:Q.uid})}return ne}(),children:Q.unread>0&&(0,e.createComponentVNode)(2,o.Box,{className:"Newscaster__menuButton--unread",children:Q.unread>=10?"9+":Q.unread})},Q)})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:[(0,e.createComponentVNode)(2,o.Divider),(!!M||!!D)&&(0,e.createFragment)([(0,e.createComponentVNode)(2,s,{security:!0,icon:"exclamation-circle",title:"Edit Wanted Notice",mb:"0.5rem",onClick:function(){function Q(){return(0,k.modalOpen)(T,"wanted_notice")}return Q}()}),(0,e.createComponentVNode)(2,s,{security:!0,icon:fe?"minus-square":"minus-square-o",title:"Censor Mode: "+(fe?"On":"Off"),mb:"0.5rem",onClick:function(){function Q(){return pe(!fe)}return Q}()}),(0,e.createComponentVNode)(2,o.Divider)],4),(0,e.createComponentVNode)(2,s,{icon:"pen-alt",title:"New Story",mb:"0.5rem",onClick:function(){function Q(){return(0,k.modalOpen)(T,"create_story")}return Q}()}),(0,e.createComponentVNode)(2,s,{icon:"plus-circle",title:"New Channel",onClick:function(){function Q(){return(0,k.modalOpen)(T,"create_channel")}return Q}()}),(0,e.createComponentVNode)(2,o.Divider),(0,e.createComponentVNode)(2,s,{icon:R?"spinner":"print",iconSpin:R,title:R?"Printing...":"Print Newspaper",onClick:function(){function Q(){return x("print_newspaper")}return Q}()}),(0,e.createComponentVNode)(2,s,{icon:P?"volume-mute":"volume-up",title:"Mute: "+(P?"On":"Off"),onClick:function(){function Q(){return x("toggle_mute")}return Q}()})]})]})}),(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,width:"100%",children:[(0,e.createComponentVNode)(2,S.TemporaryNotice),be]})]})})]})}return I}(),s=function(w,T){var A=(0,t.useBackend)(T),x=A.act,E=w.icon,M=E===void 0?"":E,D=w.iconSpin,P=w.selected,R=P===void 0?!1:P,j=w.security,F=j===void 0?!1:j,U=w.onClick,_=w.title,z=w.children,G=l(w,b);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Box,Object.assign({className:(0,a.classes)(["Newscaster__menuButton",R&&"Newscaster__menuButton--selected",F&&"Newscaster__menuButton--security"]),onClick:U},G,{children:[R&&(0,e.createComponentVNode)(2,o.Box,{className:"Newscaster__menuButton--selectedBar"}),(0,e.createComponentVNode)(2,o.Icon,{name:M,spin:D,size:"2"}),(0,e.createComponentVNode)(2,o.Box,{className:"Newscaster__menuButton--title",children:_}),z]})))},i=function(w,T){var A=(0,t.useBackend)(T),x=A.act,E=A.data,M=E.screen,D=E.is_admin,P=E.channel_idx,R=E.channel_can_manage,j=E.channels,F=E.stories,U=E.wanted,_=(0,t.useLocalState)(T,"fullStories",[]),z=_[0],G=_[1],X=(0,t.useLocalState)(T,"censorMode",!1),Y=X[0],J=X[1],ie=M===2&&P>-1?j[P-1]:null;return(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[!!U&&(0,e.createComponentVNode)(2,C,{story:U,wanted:!0}),(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Icon,{name:ie?ie.icon:"newspaper",mr:"0.5rem"}),ie?ie.name:"Headlines"],0),children:F.length>0?F.slice().reverse().map(function(ae){return!z.includes(ae.uid)&&ae.body.length+3>c?Object.assign({},ae,{body_short:ae.body.substr(0,c-4)+"..."}):ae}).map(function(ae,fe){return(0,e.createComponentVNode)(2,C,{story:ae},fe)}):(0,e.createComponentVNode)(2,o.Box,{className:"Newscaster__emptyNotice",children:[(0,e.createComponentVNode)(2,o.Icon,{name:"times",size:"3"}),(0,e.createVNode)(1,"br"),"There are no stories at this time."]})}),!!ie&&(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,height:"40%",title:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Icon,{name:"info-circle",mr:"0.5rem"}),(0,e.createTextVNode)("About")],4),buttons:(0,e.createFragment)([Y&&(0,e.createComponentVNode)(2,o.Button,{disabled:!!ie.admin&&!D,selected:ie.censored,icon:ie.censored?"comment-slash":"comment",content:ie.censored?"Uncensor Channel":"Censor Channel",mr:"0.5rem",onClick:function(){function ae(){return x("censor_channel",{uid:ie.uid})}return ae}()}),(0,e.createComponentVNode)(2,o.Button,{disabled:!R,icon:"cog",content:"Manage",onClick:function(){function ae(){return(0,k.modalOpen)(T,"manage_channel",{uid:ie.uid})}return ae}()})],0),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Description",children:ie.description||"N/A"}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Owner",children:ie.author||"N/A"}),!!D&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Ckey",children:ie.author_ckey}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Public",children:ie.public?"Yes":"No"}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Total Views",children:[(0,e.createComponentVNode)(2,o.Icon,{name:"eye",mr:"0.5rem"}),F.reduce(function(ae,fe){return ae+fe.view_count},0).toLocaleString()]})]})})]})},v=function(w,T){var A=(0,t.useBackend)(T),x=A.act,E=A.data,M=E.jobs,D=E.wanted,P=Object.entries(M).reduce(function(R,j){var F=j[0],U=j[1];return R+U.length},0);return(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[!!D&&(0,e.createComponentVNode)(2,C,{story:D,wanted:!0}),(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Icon,{name:"briefcase",mr:"0.5rem"}),(0,e.createTextVNode)("Job Openings")],4),buttons:(0,e.createComponentVNode)(2,o.Box,{mt:"0.25rem",color:"label",children:"Work for a better future at Nanotrasen"}),children:P>0?m.map(function(R){return Object.assign({},d[R],{id:R,jobs:M[R]})}).filter(function(R){return!!R&&R.jobs.length>0}).map(function(R){return(0,e.createComponentVNode)(2,o.Section,{className:(0,a.classes)(["Newscaster__jobCategory","Newscaster__jobCategory--"+R.id]),title:R.title,buttons:(0,e.createComponentVNode)(2,o.Box,{mt:"0.25rem",color:"label",children:R.fluff_text}),children:R.jobs.map(function(j){return(0,e.createComponentVNode)(2,o.Box,{class:(0,a.classes)(["Newscaster__jobOpening",!!j.is_command&&"Newscaster__jobOpening--command"]),children:["\u2022 ",j.title]},j.title)})},R.id)}):(0,e.createComponentVNode)(2,o.Box,{className:"Newscaster__emptyNotice",children:[(0,e.createComponentVNode)(2,o.Icon,{name:"times",size:"3"}),(0,e.createVNode)(1,"br"),"There are no openings at this time."]})}),(0,e.createComponentVNode)(2,o.Section,{height:"17%",children:["Interested in serving Nanotrasen?",(0,e.createVNode)(1,"br"),"Sign up for any of the above position now at the"," ",(0,e.createVNode)(1,"b",null,"Head of Personnel's Office!",16),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,o.Box,{as:"small",color:"label",children:"By signing up for a job at Nanotrasen, you agree to transfer your soul to the loyalty department of the omnipresent and helpful watcher of humanity."})]})]})},C=function(w,T){var A=(0,t.useBackend)(T),x=A.act,E=A.data,M=w.story,D=w.wanted,P=D===void 0?!1:D,R=E.is_admin,j=(0,t.useLocalState)(T,"fullStories",[]),F=j[0],U=j[1],_=(0,t.useLocalState)(T,"censorMode",!1),z=_[0],G=_[1];return(0,e.createComponentVNode)(2,o.Section,{className:(0,a.classes)(["Newscaster__story",P&&"Newscaster__story--wanted"]),title:(0,e.createFragment)([P&&(0,e.createComponentVNode)(2,o.Icon,{name:"exclamation-circle",mr:"0.5rem"}),M.censor_flags&2&&"[REDACTED]"||M.title||"News from "+M.author],0),buttons:(0,e.createComponentVNode)(2,o.Box,{mt:"0.25rem",children:(0,e.createComponentVNode)(2,o.Box,{color:"label",children:[!P&&z&&(0,e.createComponentVNode)(2,o.Box,{inline:!0,children:(0,e.createComponentVNode)(2,o.Button,{enabled:M.censor_flags&2,icon:M.censor_flags&2?"comment-slash":"comment",content:M.censor_flags&2?"Uncensor":"Censor",mr:"0.5rem",mt:"-0.25rem",onClick:function(){function X(){return x("censor_story",{uid:M.uid})}return X}()})}),(0,e.createComponentVNode)(2,o.Box,{inline:!0,children:[(0,e.createComponentVNode)(2,o.Icon,{name:"user"})," ",M.author," |\xA0",!!R&&(0,e.createFragment)([(0,e.createTextVNode)("ckey: "),M.author_ckey,(0,e.createTextVNode)(" |\xA0")],0),!P&&(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Icon,{name:"eye"}),(0,e.createTextVNode)(" "),M.view_count.toLocaleString(),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("|\xA0")],0),(0,e.createComponentVNode)(2,o.Icon,{name:"clock"})," ",(0,f.timeAgo)(M.publish_time,E.world_time)]})]})}),children:(0,e.createComponentVNode)(2,o.Box,{children:M.censor_flags&2?"[REDACTED]":(0,e.createFragment)([!!M.has_photo&&(0,e.createComponentVNode)(2,g,{name:"story_photo_"+M.uid+".png",float:"right",ml:"0.5rem"}),(M.body_short||M.body).split("\n").map(function(X,Y){return(0,e.createComponentVNode)(2,o.Box,{children:X||(0,e.createVNode)(1,"br")},Y)}),M.body_short&&(0,e.createComponentVNode)(2,o.Button,{content:"Read more..",mt:"0.5rem",onClick:function(){function X(){return U([].concat(F,[M.uid]))}return X}()}),(0,e.createComponentVNode)(2,o.Box,{clear:"right"})],0)})})},g=function(w,T){var A=w.name,x=l(w,p),E=(0,t.useLocalState)(T,"viewingPhoto",""),M=E[0],D=E[1];return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Box,Object.assign({as:"img",className:"Newscaster__photo",src:A,onClick:function(){function P(){return D(A)}return P}()},x)))},h=function(w,T){var A=(0,t.useLocalState)(T,"viewingPhoto",""),x=A[0],E=A[1];return(0,e.createComponentVNode)(2,o.Modal,{className:"Newscaster__photoZoom",children:[(0,e.createComponentVNode)(2,o.Box,{as:"img",src:x}),(0,e.createComponentVNode)(2,o.Button,{icon:"times",content:"Close",color:"grey",mt:"1rem",onClick:function(){function M(){return E("")}return M}()})]})},N=function(w,T){var A=(0,t.useBackend)(T),x=A.act,E=A.data,M=!!w.args.uid&&E.channels.filter(function(ce){return ce.uid===w.args.uid}).pop();if(w.id==="manage_channel"&&!M){(0,k.modalClose)(T);return}var D=w.id==="manage_channel",P=!!w.args.is_admin,R=w.args.scanned_user,j=(0,t.useLocalState)(T,"author",(M==null?void 0:M.author)||R||"Unknown"),F=j[0],U=j[1],_=(0,t.useLocalState)(T,"name",(M==null?void 0:M.name)||""),z=_[0],G=_[1],X=(0,t.useLocalState)(T,"description",(M==null?void 0:M.description)||""),Y=X[0],J=X[1],ie=(0,t.useLocalState)(T,"icon",(M==null?void 0:M.icon)||"newspaper"),ae=ie[0],fe=ie[1],pe=(0,t.useLocalState)(T,"isPublic",D?!!(M!=null&&M.public):!1),be=pe[0],te=pe[1],Q=(0,t.useLocalState)(T,"adminLocked",(M==null?void 0:M.admin)===1||!1),ne=Q[0],me=Q[1];return(0,e.createComponentVNode)(2,o.Section,{m:"-1rem",pb:"1.5rem",title:D?"Manage "+M.name:"Create New Channel",children:[(0,e.createComponentVNode)(2,o.Box,{mx:"0.5rem",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Owner",children:(0,e.createComponentVNode)(2,o.Input,{disabled:!P,width:"100%",value:F,onInput:function(){function ce(ue,oe){return U(oe)}return ce}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Name",children:(0,e.createComponentVNode)(2,o.Input,{width:"100%",placeholder:"50 characters max.",maxLength:"50",value:z,onInput:function(){function ce(ue,oe){return G(oe)}return ce}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Description (optional)",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Input,{multiline:!0,width:"100%",placeholder:"128 characters max.",maxLength:"128",value:Y,onInput:function(){function ce(ue,oe){return J(oe)}return ce}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Icon",children:[(0,e.createComponentVNode)(2,o.Input,{disabled:!P,value:ae,width:"35%",mr:"0.5rem",onInput:function(){function ce(ue,oe){return fe(oe)}return ce}()}),(0,e.createComponentVNode)(2,o.Icon,{name:ae,size:"2",verticalAlign:"middle",mr:"0.5rem"})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Accept Public Stories?",children:(0,e.createComponentVNode)(2,o.Button,{selected:be,icon:be?"toggle-on":"toggle-off",content:be?"Yes":"No",onClick:function(){function ce(){return te(!be)}return ce}()})}),P&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"CentComm Lock",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Button,{selected:ne,icon:ne?"lock":"lock-open",content:ne?"On":"Off",tooltip:"Locking this channel will make it editable by nobody but CentComm officers.",tooltipPosition:"top",onClick:function(){function ce(){return me(!ne)}return ce}()})})]})}),(0,e.createComponentVNode)(2,o.Button.Confirm,{disabled:F.trim().length===0||z.trim().length===0,icon:"check",color:"good",content:"Submit",position:"absolute",right:"1rem",bottom:"-0.75rem",onClick:function(){function ce(){(0,k.modalAnswer)(T,w.id,"",{author:F,name:z.substr(0,49),description:Y.substr(0,128),icon:ae,public:be?1:0,admin_locked:ne?1:0})}return ce}()})]})},y=function(w,T){var A=(0,t.useBackend)(T),x=A.act,E=A.data,M=E.photo,D=E.channels,P=E.channel_idx,R=P===void 0?-1:P,j=!!w.args.is_admin,F=w.args.scanned_user,U=D.slice().sort(function(ce,ue){if(R<0)return 0;var oe=D[R-1];if(oe.uid===ce.uid)return-1;if(oe.uid===ue.uid)return 1}).filter(function(ce){return j||!ce.frozen&&(ce.author===F||!!ce.public)}),_=(0,t.useLocalState)(T,"author",F||"Unknown"),z=_[0],G=_[1],X=(0,t.useLocalState)(T,"channel",U.length>0?U[0].name:""),Y=X[0],J=X[1],ie=(0,t.useLocalState)(T,"title",""),ae=ie[0],fe=ie[1],pe=(0,t.useLocalState)(T,"body",""),be=pe[0],te=pe[1],Q=(0,t.useLocalState)(T,"adminLocked",!1),ne=Q[0],me=Q[1];return(0,e.createComponentVNode)(2,o.Section,{m:"-1rem",pb:"1.5rem",title:"Create New Story",children:[(0,e.createComponentVNode)(2,o.Box,{mx:"0.5rem",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Author",children:(0,e.createComponentVNode)(2,o.Input,{disabled:!j,width:"100%",value:z,onInput:function(){function ce(ue,oe){return G(oe)}return ce}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Channel",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Dropdown,{selected:Y,options:U.map(function(ce){return ce.name}),mb:"0",width:"100%",onSelected:function(){function ce(ue){return J(ue)}return ce}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Divider),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Title",children:(0,e.createComponentVNode)(2,o.Input,{width:"100%",placeholder:"128 characters max.",maxLength:"128",value:ae,onInput:function(){function ce(ue,oe){return fe(oe)}return ce}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Story Text",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Input,{fluid:!0,multiline:!0,placeholder:"1024 characters max.",maxLength:"1024",rows:"8",width:"100%",value:be,onInput:function(){function ce(ue,oe){return te(oe)}return ce}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Photo (optional)",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Button,{icon:"image",selected:M,content:M?"Eject: "+M.name:"Insert Photo",tooltip:!M&&"Attach a photo to this story by holding the photograph in your hand.",onClick:function(){function ce(){return x(M?"eject_photo":"attach_photo")}return ce}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Preview",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Section,{noTopPadding:!0,title:ae,maxHeight:"13.5rem",overflow:"auto",children:(0,e.createComponentVNode)(2,o.Box,{mt:"0.5rem",children:[!!M&&(0,e.createComponentVNode)(2,g,{name:"inserted_photo_"+M.uid+".png",float:"right"}),be.split("\n").map(function(ce,ue){return(0,e.createComponentVNode)(2,o.Box,{children:ce||(0,e.createVNode)(1,"br")},ue)}),(0,e.createComponentVNode)(2,o.Box,{clear:"right"})]})})}),j&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"CentComm Lock",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Button,{selected:ne,icon:ne?"lock":"lock-open",content:ne?"On":"Off",tooltip:"Locking this story will make it censorable by nobody but CentComm officers.",tooltipPosition:"top",onClick:function(){function ce(){return me(!ne)}return ce}()})})]})}),(0,e.createComponentVNode)(2,o.Button.Confirm,{disabled:z.trim().length===0||Y.trim().length===0||ae.trim().length===0||be.trim().length===0,icon:"check",color:"good",content:"Submit",position:"absolute",right:"1rem",bottom:"-0.75rem",onClick:function(){function ce(){(0,k.modalAnswer)(T,"create_story","",{author:z,channel:Y,title:ae.substr(0,127),body:be.substr(0,1023),admin_locked:ne?1:0})}return ce}()})]})},B=function(w,T){var A=(0,t.useBackend)(T),x=A.act,E=A.data,M=E.photo,D=E.wanted,P=!!w.args.is_admin,R=w.args.scanned_user,j=(0,t.useLocalState)(T,"author",(D==null?void 0:D.author)||R||"Unknown"),F=j[0],U=j[1],_=(0,t.useLocalState)(T,"name",(D==null?void 0:D.title.substr(8))||""),z=_[0],G=_[1],X=(0,t.useLocalState)(T,"description",(D==null?void 0:D.body)||""),Y=X[0],J=X[1],ie=(0,t.useLocalState)(T,"adminLocked",(D==null?void 0:D.admin_locked)===1||!1),ae=ie[0],fe=ie[1];return(0,e.createComponentVNode)(2,o.Section,{m:"-1rem",pb:"1.5rem",title:"Manage Wanted Notice",children:[(0,e.createComponentVNode)(2,o.Box,{mx:"0.5rem",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Authority",children:(0,e.createComponentVNode)(2,o.Input,{disabled:!P,width:"100%",value:F,onInput:function(){function pe(be,te){return U(te)}return pe}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Name",children:(0,e.createComponentVNode)(2,o.Input,{width:"100%",value:z,maxLength:"128",onInput:function(){function pe(be,te){return G(te)}return pe}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Description",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Input,{multiline:!0,width:"100%",value:Y,maxLength:"512",rows:"4",onInput:function(){function pe(be,te){return J(te)}return pe}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Photo (optional)",verticalAlign:"top",children:[(0,e.createComponentVNode)(2,o.Button,{icon:"image",selected:M,content:M?"Eject: "+M.name:"Insert Photo",tooltip:!M&&"Attach a photo to this wanted notice by holding the photograph in your hand.",tooltipPosition:"top",onClick:function(){function pe(){return x(M?"eject_photo":"attach_photo")}return pe}()}),!!M&&(0,e.createComponentVNode)(2,g,{name:"inserted_photo_"+M.uid+".png",float:"right"})]}),P&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"CentComm Lock",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Button,{selected:ae,icon:ae?"lock":"lock-open",content:ae?"On":"Off",tooltip:"Locking this wanted notice will make it editable by nobody but CentComm officers.",tooltipPosition:"top",onClick:function(){function pe(){return fe(!ae)}return pe}()})})]})}),(0,e.createComponentVNode)(2,o.Button.Confirm,{disabled:!D,icon:"eraser",color:"danger",content:"Clear",position:"absolute",right:"7.25rem",bottom:"-0.75rem",onClick:function(){function pe(){x("clear_wanted_notice"),(0,k.modalClose)(T)}return pe}()}),(0,e.createComponentVNode)(2,o.Button.Confirm,{disabled:F.trim().length===0||z.trim().length===0||Y.trim().length===0,icon:"check",color:"good",content:"Submit",position:"absolute",right:"1rem",bottom:"-0.75rem",onClick:function(){function pe(){(0,k.modalAnswer)(T,w.id,"",{author:F,name:z.substr(0,127),description:Y.substr(0,511),admin_locked:ae?1:0})}return pe}()})]})};(0,k.modalRegisterBodyOverride)("create_channel",N),(0,k.modalRegisterBodyOverride)("manage_channel",N),(0,k.modalRegisterBodyOverride)("create_story",y),(0,k.modalRegisterBodyOverride)("wanted_notice",B)},26148:function(L,r,n){"use strict";r.__esModule=!0,r.Noticeboard=void 0;var e=n(96524),a=n(78234),t=n(17899),o=n(24674),f=n(45493),V=r.Noticeboard=function(){function k(S,b){var p=(0,t.useBackend)(b),l=p.act,c=p.data,m=c.papers;return(0,e.createComponentVNode)(2,f.Window,{width:600,height:300,theme:"noticeboard",children:(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:m.map(function(d){return(0,e.createComponentVNode)(2,o.Stack.Item,{align:"center",width:"22.45%",height:"85%",onClick:function(){function u(){return l("interact",{paper:d.ref})}return u}(),onContextMenu:function(){function u(s){s.preventDefault(),l("showFull",{paper:d.ref})}return u}(),children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,fontSize:.75,title:d.name,children:(0,a.decodeHtmlEntities)(d.contents)})},d.ref)})})})})}return k}()},46940:function(L,r,n){"use strict";r.__esModule=!0,r.NuclearBomb=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.NuclearBomb=function(){function V(k,S){var b=(0,a.useBackend)(S),p=b.act,l=b.data;return l.extended?(0,e.createComponentVNode)(2,o.Window,{width:350,height:290,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Authorization",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Auth Disk",children:(0,e.createComponentVNode)(2,t.Button,{icon:l.authdisk?"eject":"id-card",selected:l.authdisk,content:l.diskname?l.diskname:"-----",tooltip:l.authdisk?"Eject Disk":"Insert Disk",onClick:function(){function c(){return p("auth")}return c}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Auth Code",children:(0,e.createComponentVNode)(2,t.Button,{icon:"key",disabled:!l.authdisk,selected:l.authcode,content:l.codemsg,onClick:function(){function c(){return p("code")}return c}()})})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Arming & Disarming",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Bolted to floor",children:(0,e.createComponentVNode)(2,t.Button,{icon:l.anchored?"check":"times",selected:l.anchored,disabled:!l.authdisk,content:l.anchored?"YES":"NO",onClick:function(){function c(){return p("toggle_anchor")}return c}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Time Left",children:(0,e.createComponentVNode)(2,t.Button,{icon:"stopwatch",content:l.time,disabled:!l.authfull,tooltip:"Set Timer",onClick:function(){function c(){return p("set_time")}return c}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Safety",children:(0,e.createComponentVNode)(2,t.Button,{icon:l.safety?"check":"times",selected:l.safety,disabled:!l.authfull,content:l.safety?"ON":"OFF",tooltip:l.safety?"Disable Safety":"Enable Safety",onClick:function(){function c(){return p("toggle_safety")}return c}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Arm/Disarm",children:(0,e.createComponentVNode)(2,t.Button,{icon:(l.timer,"bomb"),disabled:l.safety||!l.authfull,color:"red",content:l.timer?"DISARM THE NUKE":"ARM THE NUKE",onClick:function(){function c(){return p("toggle_armed")}return c}()})})]})})]})}):(0,e.createComponentVNode)(2,o.Window,{width:350,height:115,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Deployment",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"exclamation-triangle",content:"Deploy Nuclear Device (will bolt device to floor)",onClick:function(){function c(){return p("deploy")}return c}()})})})})}return V}()},35478:function(L,r,n){"use strict";r.__esModule=!0,r.NumberInputModal=void 0;var e=n(96524),a=n(14299),t=n(15113),o=n(68100),f=n(17899),V=n(24674),k=n(45493),S=r.NumberInputModal=function(){function p(l,c){var m=(0,f.useBackend)(c),d=m.act,u=m.data,s=u.init_value,i=u.large_buttons,v=u.message,C=v===void 0?"":v,g=u.timeout,h=u.title,N=(0,f.useLocalState)(c,"input",s),y=N[0],B=N[1],I=function(){function A(x){x!==y&&B(x)}return A}(),w=function(){function A(x){x!==y&&B(x)}return A}(),T=140+Math.max(Math.ceil(C.length/3),C.length>0&&i?5:0);return(0,e.createComponentVNode)(2,k.Window,{title:h,width:270,height:T,children:[g&&(0,e.createComponentVNode)(2,a.Loader,{value:g}),(0,e.createComponentVNode)(2,k.Window.Content,{onKeyDown:function(){function A(x){var E=window.event?x.which:x.keyCode;E===o.KEY_ENTER&&d("submit",{entry:y}),E===o.KEY_ESCAPE&&d("cancel")}return A}(),children:(0,e.createComponentVNode)(2,V.Section,{fill:!0,children:(0,e.createComponentVNode)(2,V.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,V.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,V.Box,{color:"label",children:C})}),(0,e.createComponentVNode)(2,V.Stack.Item,{children:(0,e.createComponentVNode)(2,b,{input:y,onClick:w,onChange:I})}),(0,e.createComponentVNode)(2,V.Stack.Item,{children:(0,e.createComponentVNode)(2,t.InputButtons,{input:y})})]})})})]})}return p}(),b=function(l,c){var m=(0,f.useBackend)(c),d=m.act,u=m.data,s=u.min_value,i=u.max_value,v=u.init_value,C=u.round_value,g=l.input,h=l.onClick,N=l.onChange,y=Math.round(g!==s?Math.max(g/2,s):i/2),B=g===s&&s>0||g===1;return(0,e.createComponentVNode)(2,V.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,V.Stack.Item,{children:(0,e.createComponentVNode)(2,V.Button,{disabled:g===s,icon:"angle-double-left",onClick:function(){function I(){return h(s)}return I}(),tooltip:g===s?"Min":"Min ("+s+")"})}),(0,e.createComponentVNode)(2,V.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,V.RestrictedInput,{autoFocus:!0,autoSelect:!0,fluid:!0,allowFloats:!C,minValue:s,maxValue:i,onChange:function(){function I(w,T){return N(T)}return I}(),onEnter:function(){function I(w,T){return d("submit",{entry:T})}return I}(),value:g})}),(0,e.createComponentVNode)(2,V.Stack.Item,{children:(0,e.createComponentVNode)(2,V.Button,{disabled:g===i,icon:"angle-double-right",onClick:function(){function I(){return h(i)}return I}(),tooltip:g===i?"Max":"Max ("+i+")"})}),(0,e.createComponentVNode)(2,V.Stack.Item,{children:(0,e.createComponentVNode)(2,V.Button,{disabled:B,icon:"divide",onClick:function(){function I(){return h(y)}return I}(),tooltip:B?"Split":"Split ("+y+")"})}),(0,e.createComponentVNode)(2,V.Stack.Item,{children:(0,e.createComponentVNode)(2,V.Button,{disabled:g===v,icon:"redo",onClick:function(){function I(){return h(v)}return I}(),tooltip:v?"Reset ("+v+")":"Reset"})})]})}},98476:function(L,r,n){"use strict";r.__esModule=!0,r.OperatingComputer=void 0;var e=n(96524),a=n(36121),t=n(17899),o=n(45493),f=n(24674),V=[["good","Conscious"],["average","Unconscious"],["bad","DEAD"]],k=[["Resp.","oxyLoss"],["Toxin","toxLoss"],["Brute","bruteLoss"],["Burn","fireLoss"]],S={average:[.25,.5],bad:[.5,1/0]},b=["bad","average","average","good","average","average","bad"],p=r.OperatingComputer=function(){function d(u,s){var i=(0,t.useBackend)(s),v=i.act,C=i.data,g=C.hasOccupant,h=C.choice,N;return h?N=(0,e.createComponentVNode)(2,m):N=g?(0,e.createComponentVNode)(2,l):(0,e.createComponentVNode)(2,c),(0,e.createComponentVNode)(2,o.Window,{width:650,height:455,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,f.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Tabs,{children:[(0,e.createComponentVNode)(2,f.Tabs.Tab,{selected:!h,icon:"user",onClick:function(){function y(){return v("choiceOff")}return y}(),children:"Patient"}),(0,e.createComponentVNode)(2,f.Tabs.Tab,{selected:!!h,icon:"cog",onClick:function(){function y(){return v("choiceOn")}return y}(),children:"Options"})]})}),(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,f.Section,{fill:!0,scrollable:!0,children:N})})]})})})}return d}(),l=function(u,s){var i=(0,t.useBackend)(s),v=i.data,C=v.occupant;return(0,e.createComponentVNode)(2,f.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,f.Section,{fill:!0,title:"Patient",children:(0,e.createComponentVNode)(2,f.LabeledList,{children:[(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Name",children:C.name}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Status",color:V[C.stat][0],children:V[C.stat][1]}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Health",children:(0,e.createComponentVNode)(2,f.ProgressBar,{min:"0",max:C.maxHealth,value:C.health/C.maxHealth,ranges:{good:[.5,1/0],average:[0,.5],bad:[-1/0,0]}})}),k.map(function(g,h){return(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:g[0]+" Damage",children:(0,e.createComponentVNode)(2,f.ProgressBar,{min:"0",max:"100",value:C[g[1]]/100,ranges:S,children:(0,a.round)(C[g[1]])},h)},h)}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Temperature",children:(0,e.createComponentVNode)(2,f.ProgressBar,{min:"0",max:C.maxTemp,value:C.bodyTemperature/C.maxTemp,color:b[C.temperatureSuitability+3],children:[(0,a.round)(C.btCelsius),"\xB0C, ",(0,a.round)(C.btFaren),"\xB0F"]})}),!!C.hasBlood&&(0,e.createFragment)([(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Blood Level",children:(0,e.createComponentVNode)(2,f.ProgressBar,{min:"0",max:C.bloodMax,value:C.bloodLevel/C.bloodMax,ranges:{bad:[-1/0,.6],average:[.6,.9],good:[.6,1/0]},children:[C.bloodPercent,"%, ",C.bloodLevel,"cl"]})}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Pulse",children:[C.pulse," BPM"]})],4)]})})}),(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Section,{title:"Current Procedure",level:"2",children:C.inSurgery?(0,e.createComponentVNode)(2,f.LabeledList,{children:[(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Procedure",children:C.surgeryName}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Next Step",children:C.stepName})]}):(0,e.createComponentVNode)(2,f.Box,{color:"label",children:"No procedure ongoing."})})})]})},c=function(){return(0,e.createComponentVNode)(2,f.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,align:"center",textAlign:"center",color:"label",children:[(0,e.createComponentVNode)(2,f.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,e.createVNode)(1,"br"),"No patient detected."]})})},m=function(u,s){var i=(0,t.useBackend)(s),v=i.act,C=i.data,g=C.verbose,h=C.health,N=C.healthAlarm,y=C.oxy,B=C.oxyAlarm,I=C.crit;return(0,e.createComponentVNode)(2,f.LabeledList,{children:[(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Loudspeaker",children:(0,e.createComponentVNode)(2,f.Button,{selected:g,icon:g?"toggle-on":"toggle-off",content:g?"On":"Off",onClick:function(){function w(){return v(g?"verboseOff":"verboseOn")}return w}()})}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Health Announcer",children:(0,e.createComponentVNode)(2,f.Button,{selected:h,icon:h?"toggle-on":"toggle-off",content:h?"On":"Off",onClick:function(){function w(){return v(h?"healthOff":"healthOn")}return w}()})}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Health Announcer Threshold",children:(0,e.createComponentVNode)(2,f.Knob,{bipolar:!0,minValue:-100,maxValue:100,value:N,stepPixelSize:5,ml:"0",onChange:function(){function w(T,A){return v("health_adj",{new:A})}return w}()})}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Oxygen Alarm",children:(0,e.createComponentVNode)(2,f.Button,{selected:y,icon:y?"toggle-on":"toggle-off",content:y?"On":"Off",onClick:function(){function w(){return v(y?"oxyOff":"oxyOn")}return w}()})}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Oxygen Alarm Threshold",children:(0,e.createComponentVNode)(2,f.Knob,{bipolar:!0,minValue:-100,maxValue:100,value:B,stepPixelSize:5,ml:"0",onChange:function(){function w(T,A){return v("oxy_adj",{new:A})}return w}()})}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Critical Alert",children:(0,e.createComponentVNode)(2,f.Button,{selected:I,icon:I?"toggle-on":"toggle-off",content:I?"On":"Off",onClick:function(){function w(){return v(I?"critOff":"critOn")}return w}()})})]})}},98702:function(L,r,n){"use strict";r.__esModule=!0,r.Orbit=void 0;var e=n(96524),a=n(78234),t=n(17899),o=n(24674),f=n(45493),V=n(28234);function k(i,v){var C=typeof Symbol!="undefined"&&i[Symbol.iterator]||i["@@iterator"];if(C)return(C=C.call(i)).next.bind(C);if(Array.isArray(i)||(C=S(i))||v&&i&&typeof i.length=="number"){C&&(i=C);var g=0;return function(){return g>=i.length?{done:!0}:{done:!1,value:i[g++]}}}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(i,v){if(i){if(typeof i=="string")return b(i,v);var C=Object.prototype.toString.call(i).slice(8,-1);if(C==="Object"&&i.constructor&&(C=i.constructor.name),C==="Map"||C==="Set")return Array.from(i);if(C==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(C))return b(i,v)}}function b(i,v){(v==null||v>i.length)&&(v=i.length);for(var C=0,g=new Array(v);CC},m=function(v,C){var g=v.name,h=C.name;if(!g||!h)return 0;var N=g.match(p),y=h.match(p);if(N&&y&&g.replace(p,"")===h.replace(p,"")){var B=parseInt(N[1],10),I=parseInt(y[1],10);return B-I}return c(g,h)},d=function(v,C){var g=v.searchText,h=v.source,N=v.title,y=v.color,B=v.sorted,I=h.filter(l(g));return B&&I.sort(m),h.length>0&&(0,e.createComponentVNode)(2,o.Section,{title:N+" - ("+h.length+")",children:I.map(function(w){return(0,e.createComponentVNode)(2,u,{thing:w,color:y},w.name)})})},u=function(v,C){var g=(0,t.useBackend)(C),h=g.act,N=v.color,y=v.thing;return(0,e.createComponentVNode)(2,o.Button,{color:N,tooltip:y.assigned_role?(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.Box,{as:"img",mr:"0.5em",className:(0,V.classes)(["orbit_job16x16",y.assigned_role_sprite])})," ",y.assigned_role]}):"",tooltipPosition:"bottom",onClick:function(){function B(){return h("orbit",{ref:y.ref})}return B}(),children:[y.name,y.orbiters&&(0,e.createComponentVNode)(2,o.Box,{inline:!0,ml:1,children:["(",y.orbiters," ",(0,e.createComponentVNode)(2,o.Icon,{name:"eye"}),")"]})]})},s=r.Orbit=function(){function i(v,C){for(var g=(0,t.useBackend)(C),h=g.act,N=g.data,y=N.alive,B=N.antagonists,I=N.highlights,w=N.response_teams,T=N.auto_observe,A=N.dead,x=N.ssd,E=N.ghosts,M=N.misc,D=N.npcs,P=(0,t.useLocalState)(C,"searchText",""),R=P[0],j=P[1],F={},U=k(B),_;!(_=U()).done;){var z=_.value;F[z.antag]===void 0&&(F[z.antag]=[]),F[z.antag].push(z)}var G=Object.entries(F);G.sort(function(Y,J){return c(Y[0],J[0])});var X=function(){function Y(J){for(var ie=0,ae=[G.map(function(be){var te=be[0],Q=be[1];return Q}),I,y,E,x,A,D,M];ie0&&(0,e.createComponentVNode)(2,o.Section,{title:"Antagonists",children:G.map(function(Y){var J=Y[0],ie=Y[1];return(0,e.createComponentVNode)(2,o.Section,{title:J+" - ("+ie.length+")",level:2,children:ie.filter(l(R)).sort(m).map(function(ae){return(0,e.createComponentVNode)(2,u,{color:"bad",thing:ae},ae.name)})},J)})}),I.length>0&&(0,e.createComponentVNode)(2,d,{title:"Highlights",source:I,searchText:R,color:"teal"}),(0,e.createComponentVNode)(2,d,{title:"Response Teams",source:w,searchText:R,color:"purple"}),(0,e.createComponentVNode)(2,d,{title:"Alive",source:y,searchText:R,color:"good"}),(0,e.createComponentVNode)(2,d,{title:"Ghosts",source:E,searchText:R,color:"grey"}),(0,e.createComponentVNode)(2,d,{title:"SSD",source:x,searchText:R,color:"grey"}),(0,e.createComponentVNode)(2,d,{title:"Dead",source:A,searchText:R,sorted:!1}),(0,e.createComponentVNode)(2,d,{title:"NPCs",source:D,searchText:R,sorted:!1}),(0,e.createComponentVNode)(2,d,{title:"Misc",source:M,searchText:R,sorted:!1})]})})}return i}()},74015:function(L,r,n){"use strict";r.__esModule=!0,r.OreRedemption=void 0;var e=n(96524),a=n(28234),t=n(17899),o=n(24674),f=n(45493),V=n(81856);function k(i){if(i==null)throw new TypeError("Cannot destructure "+i)}var S=(0,V.createLogger)("OreRedemption"),b=function(v){return v.toLocaleString("en-US")+" pts"},p=r.OreRedemption=function(){function i(v,C){return(0,e.createComponentVNode)(2,f.Window,{width:490,height:750,children:(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,l,{height:"100%"})}),(0,e.createComponentVNode)(2,c),(0,e.createComponentVNode)(2,m)]})})})}return i}(),l=function(v,C){var g=(0,t.useBackend)(C),h=g.act,N=g.data,y=N.id,B=N.points,I=N.disk,w=Object.assign({},(k(v),v));return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Section,Object.assign({},w,{children:[(0,e.createComponentVNode)(2,o.Box,{color:"average",textAlign:"center",children:[(0,e.createComponentVNode)(2,o.Icon,{name:"exclamation-triangle",mr:"0.5rem"}),"This machine only accepts ore. Gibtonite is not accepted."]}),(0,e.createComponentVNode)(2,o.Divider),(0,e.createComponentVNode)(2,o.LabeledList,{children:(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Unclaimed Points",color:B>0?"good":"grey",bold:B>0&&"good",children:b(B)})}),(0,e.createComponentVNode)(2,o.Divider),I?(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Design disk",children:[(0,e.createComponentVNode)(2,o.Button,{selected:!0,bold:!0,icon:"eject",content:I.name,tooltip:"Ejects the design disk.",onClick:function(){function T(){return h("eject_disk")}return T}()}),(0,e.createComponentVNode)(2,o.Button,{disabled:!I.design||!I.compatible,icon:"upload",content:"Download",tooltip:"Downloads the design on the disk into the machine.",onClick:function(){function T(){return h("download")}return T}()})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Stored design",children:(0,e.createComponentVNode)(2,o.Box,{color:I.design&&(I.compatible?"good":"bad"),children:I.design||"N/A"})})]}):(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"No design disk inserted."})]})))},c=function(v,C){var g=(0,t.useBackend)(C),h=g.act,N=g.data,y=N.sheets,B=Object.assign({},(k(v),v));return(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,height:"20%",children:(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Section,Object.assign({fill:!0,scrollable:!0,className:"OreRedemption__Ores",p:"0"},B,{children:[(0,e.createComponentVNode)(2,d,{title:"Sheets",columns:[["Available","25%"],["Ore Value","15%"],["Smelt","20%"]]}),y.map(function(I){return(0,e.createComponentVNode)(2,u,{ore:I},I.id)})]})))})},m=function(v,C){var g=(0,t.useBackend)(C),h=g.act,N=g.data,y=N.alloys,B=Object.assign({},(k(v),v));return(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Section,Object.assign({fill:!0,scrollable:!0,className:"OreRedemption__Ores",p:"0"},B,{children:[(0,e.createComponentVNode)(2,d,{title:"Alloys",columns:[["Recipe","50%"],["Available","11%"],["Smelt","20%"]]}),y.map(function(I){return(0,e.createComponentVNode)(2,s,{ore:I},I.id)})]})))})},d=function(v,C){var g;return(0,e.createComponentVNode)(2,o.Box,{className:"OreHeader",children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:v.title}),(g=v.columns)==null?void 0:g.map(function(h){return(0,e.createComponentVNode)(2,o.Stack.Item,{basis:h[1],textAlign:"center",color:"label",bold:!0,children:h[0]},h)})]})})},u=function(v,C){var g=(0,t.useBackend)(C),h=g.act,N=v.ore;if(!(N.value&&N.amount<=0&&!(["metal","glass"].indexOf(N.id)>-1)))return(0,e.createComponentVNode)(2,o.Box,{className:"SheetLine",children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"45%",align:"middle",children:(0,e.createComponentVNode)(2,o.Stack,{align:"center",children:[(0,e.createComponentVNode)(2,o.Stack.Item,{className:(0,a.classes)(["materials32x32",N.id])}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:N.name})]})}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"20%",textAlign:"center",color:N.amount>=1?"good":"gray",bold:N.amount>=1,align:"center",children:N.amount.toLocaleString("en-US")}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"20%",textAlign:"center",align:"center",children:N.value}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"20%",textAlign:"center",align:"center",lineHeight:"32px",children:(0,e.createComponentVNode)(2,o.NumberInput,{width:"40%",value:0,minValue:0,maxValue:Math.min(N.amount,50),stepPixelSize:6,onChange:function(){function y(B,I){return h(N.value?"sheet":"alloy",{id:N.id,amount:I})}return y}()})})]})})},s=function(v,C){var g=(0,t.useBackend)(C),h=g.act,N=v.ore;return(0,e.createComponentVNode)(2,o.Box,{className:"SheetLine",children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"7%",align:"middle",children:(0,e.createComponentVNode)(2,o.Box,{className:(0,a.classes)(["alloys32x32",N.id])})}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"30%",textAlign:"middle",align:"center",children:N.name}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"35%",textAlign:"middle",color:N.amount>=1?"good":"gray",align:"center",children:N.description}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"10%",textAlign:"center",color:N.amount>=1?"good":"gray",bold:N.amount>=1,align:"center",children:N.amount.toLocaleString("en-US")}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"20%",textAlign:"center",align:"center",lineHeight:"32px",children:(0,e.createComponentVNode)(2,o.NumberInput,{width:"40%",value:0,minValue:0,maxValue:Math.min(N.amount,50),stepPixelSize:6,onChange:function(){function y(B,I){return h(N.value?"sheet":"alloy",{id:N.id,amount:I})}return y}()})})]})})}},48824:function(L,r,n){"use strict";r.__esModule=!0,r.PAI=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=n(91807),V=n(70752),k=function(p){var l;try{l=V("./"+p+".js")}catch(m){if(m.code==="MODULE_NOT_FOUND")return(0,f.routingError)("notFound",p);throw m}var c=l[p];return c||(0,f.routingError)("missingExport",p)},S=r.PAI=function(){function b(p,l){var c=(0,a.useBackend)(l),m=c.act,d=c.data,u=d.app_template,s=d.app_icon,i=d.app_title,v=k(u);return(0,e.createComponentVNode)(2,o.Window,{width:600,height:650,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{p:1,fill:!0,scrollable:!0,title:(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Icon,{name:s,mr:1}),i,u!=="pai_main_menu"&&(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{ml:2,mb:0,content:"Back",icon:"arrow-left",onClick:function(){function C(){return m("Back")}return C}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Home",icon:"arrow-up",onClick:function(){function C(){return m("MASTER_back")}return C}()})],4)]}),children:(0,e.createComponentVNode)(2,v)})})})})})}return b}()},41565:function(L,r,n){"use strict";r.__esModule=!0,r.PDA=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=n(91807),V=n(59395),k=function(c){var m;try{m=V("./"+c+".js")}catch(u){if(u.code==="MODULE_NOT_FOUND")return(0,f.routingError)("notFound",c);throw u}var d=m[c];return d||(0,f.routingError)("missingExport",c)},S=r.PDA=function(){function l(c,m){var d=(0,a.useBackend)(m),u=d.act,s=d.data,i=s.app,v=s.owner;if(!v)return(0,e.createComponentVNode)(2,o.Window,{width:350,height:105,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Error",children:"No user data found. Please swipe an ID card."})})});var C=k(i.template);return(0,e.createComponentVNode)(2,o.Window,{width:600,height:650,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,b)}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,p:1,pb:0,title:(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Icon,{name:i.icon,mr:1}),i.name]}),children:(0,e.createComponentVNode)(2,C)})}),(0,e.createComponentVNode)(2,t.Stack.Item,{mt:7.5,children:(0,e.createComponentVNode)(2,p)})]})})})}return l}(),b=function(c,m){var d=(0,a.useBackend)(m),u=d.act,s=d.data,i=s.idInserted,v=s.idLink,C=s.stationTime,g=s.cartridge_name;return(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{ml:.5,children:(0,e.createComponentVNode)(2,t.Button,{icon:"id-card",color:"transparent",onClick:function(){function h(){return u("Authenticate")}return h}(),content:i?v:"No ID Inserted"})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"sd-card",color:"transparent",onClick:function(){function h(){return u("Eject")}return h}(),content:g?["Eject "+g]:"No Cartridge Inserted"})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,textAlign:"right",bold:!0,mr:1,mt:.5,children:C})]})},p=function(c,m){var d=(0,a.useBackend)(m),u=d.act,s=d.data,i=s.app;return(0,e.createComponentVNode)(2,t.Box,{height:"45px",className:"PDA__footer",backgroundColor:"#1b1b1b",children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:[!!i.has_back&&(0,e.createComponentVNode)(2,t.Stack.Item,{basis:"33%",mr:-.5,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,className:"PDA__footer__button",color:"transparent",iconColor:i.has_back?"white":"disabled",icon:"arrow-alt-circle-left-o",onClick:function(){function v(){return u("Back")}return v}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{basis:i.has_back?"33%":"100%",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,className:"PDA__footer__button",color:"transparent",iconColor:i.is_home?"disabled":"white",icon:"home",onClick:function(){function v(){u("Home")}return v}()})})]})})}},78704:function(L,r,n){"use strict";r.__esModule=!0,r.Pacman=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=n(92986),V=r.Pacman=function(){function k(S,b){var p=(0,a.useBackend)(b),l=p.act,c=p.data,m=c.active,d=c.anchored,u=c.broken,s=c.emagged,i=c.fuel_type,v=c.fuel_usage,C=c.fuel_stored,g=c.fuel_cap,h=c.is_ai,N=c.tmp_current,y=c.tmp_max,B=c.tmp_overheat,I=c.output_max,w=c.power_gen,T=c.output_set,A=c.has_fuel,x=C/g,E=N/y,M=T*w,D=Math.round(C/v),P=Math.round(D/60),R=D>120?P+" minutes":D+" seconds";return(0,e.createComponentVNode)(2,o.Window,{width:500,height:225,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(u||!d)&&(0,e.createComponentVNode)(2,t.Section,{title:"Status",children:[!!u&&(0,e.createComponentVNode)(2,t.Box,{color:"orange",children:"The generator is malfunctioning!"}),!u&&!d&&(0,e.createComponentVNode)(2,t.Box,{color:"orange",children:"The generator needs to be anchored to the floor with a wrench."})]}),!u&&!!d&&(0,e.createVNode)(1,"div",null,[(0,e.createComponentVNode)(2,t.Section,{title:"Status",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:m?"power-off":"times",content:m?"On":"Off",tooltip:"Toggles the generator on/off. Requires fuel.",tooltipPosition:"left",disabled:!A,selected:m,onClick:function(){function j(){return l("toggle_power")}return j}()}),children:(0,e.createComponentVNode)(2,t.Flex,{direction:"row",children:[(0,e.createComponentVNode)(2,t.Flex.Item,{width:"50%",className:"ml-1",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power setting",children:[(0,e.createComponentVNode)(2,t.NumberInput,{value:T,minValue:1,maxValue:I*(s?2.5:1),step:1,className:"mt-1",onDrag:function(){function j(F,U){return l("change_power",{change_power:U})}return j}()}),"(",(0,f.formatPower)(M),")"]})})}),(0,e.createComponentVNode)(2,t.Flex.Item,{width:"50%",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Temperature",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:E,ranges:{green:[-1/0,.33],orange:[.33,.66],red:[.66,1/0]},children:[N," \u2103"]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:[B>50&&(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"CRITICAL OVERHEAT!"}),B>20&&B<=50&&(0,e.createComponentVNode)(2,t.Box,{color:"orange",children:"WARNING: Overheating!"}),B>1&&B<=20&&(0,e.createComponentVNode)(2,t.Box,{color:"orange",children:"Temperature High"}),B===0&&(0,e.createComponentVNode)(2,t.Box,{color:"green",children:"Optimal"})]})]})})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Fuel",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"eject",content:"Eject Fuel",tooltip:"Ejects fuel. Generator needs to be offline.",tooltipPosition:"left",disabled:m||h||!A,onClick:function(){function j(){return l("eject_fuel")}return j}()}),children:(0,e.createComponentVNode)(2,t.Grid,{children:[(0,e.createComponentVNode)(2,t.Grid.Column,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Type",children:i}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Fuel level",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:x,ranges:{red:[-1/0,.33],orange:[.33,.66],green:[.66,1/0]},children:[Math.round(C/1e3)," dm\xB3"]})})]})}),(0,e.createComponentVNode)(2,t.Grid.Column,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Fuel usage",children:[v/1e3," dm\xB3/s"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Fuel depletion",children:[!!A&&(v?R:"N/A"),!A&&(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Out of fuel"})]})]})})]})})],4)]})})}return k}()},6887:function(L,r,n){"use strict";r.__esModule=!0,r.PanDEMIC=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.PanDEMIC=function(){function d(u,s){var i=(0,a.useBackend)(s),v=i.data,C=v.beakerLoaded,g=v.beakerContainsBlood,h=v.beakerContainsVirus,N=v.resistances,y=N===void 0?[]:N,B;return C?g?g&&!h&&(B=(0,e.createFragment)([(0,e.createTextVNode)("No disease detected in provided blood sample.")],4)):B=(0,e.createFragment)([(0,e.createTextVNode)("No blood sample found in the loaded container.")],4):B=(0,e.createFragment)([(0,e.createTextVNode)("No container loaded.")],4),(0,e.createComponentVNode)(2,o.Window,{width:575,height:510,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[B&&(0,e.createComponentVNode)(2,t.Section,{title:"Container Information",buttons:(0,e.createComponentVNode)(2,V),children:[(0,e.createComponentVNode)(2,t.NoticeBox,{children:B}),(y==null?void 0:y.length)>0&&(0,e.createComponentVNode)(2,m)]}),!!h&&(0,e.createComponentVNode)(2,b)]})})})}return d}(),V=function(u,s){var i=(0,a.useBackend)(s),v=i.act,C=i.data,g=C.beakerLoaded;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{icon:"eject",content:"Eject",disabled:!g,onClick:function(){function h(){return v("eject_beaker")}return h}()}),(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"trash-alt",confirmIcon:"eraser",content:"Destroy",confirmContent:"Destroy",disabled:!g,onClick:function(){function h(){return v("destroy_eject_beaker")}return h}()})],4)},k=function(u,s){var i=(0,a.useBackend)(s),v=i.act,C=i.data,g=C.beakerContainsVirus,h=u.strain,N=h.commonName,y=h.description,B=h.diseaseAgent,I=h.bloodDNA,w=h.bloodType,T=h.possibleTreatments,A=h.transmissionRoute,x=h.isAdvanced,E=(0,e.createFragment)([(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Blood DNA",children:I?(0,e.createVNode)(1,"span",null,I,0,{style:{"font-family":"'Courier New', monospace"}}):"Undetectable"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Blood Type",children:(0,e.createVNode)(1,"div",null,null,1,{dangerouslySetInnerHTML:{__html:w!=null?w:"Undetectable"}})})],4);if(!g)return(0,e.createComponentVNode)(2,t.LabeledList,{children:E});var M;return x&&(N!=null&&N!=="Unknown"?M=(0,e.createComponentVNode)(2,t.Button,{icon:"print",content:"Print Release Forms",onClick:function(){function D(){return v("print_release_forms",{strain_index:u.strainIndex})}return D}(),style:{"margin-left":"auto"}}):M=(0,e.createComponentVNode)(2,t.Button,{icon:"pen",content:"Name Disease",onClick:function(){function D(){return v("name_strain",{strain_index:u.strainIndex})}return D}(),style:{"margin-left":"auto"}})),(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Common Name",className:"common-name-label",children:(0,e.createComponentVNode)(2,t.Stack,{horizontal:!0,align:"center",children:[N!=null?N:"Unknown",M]})}),y&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Description",children:y}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Disease Agent",children:B}),E,(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Spread Vector",children:A!=null?A:"None"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Possible Cures",children:T!=null?T:"None"})]})},S=function(u,s){var i,v=(0,a.useBackend)(s),C=v.act,g=v.data,h=!!g.synthesisCooldown,N=(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{icon:h?"spinner":"clone",iconSpin:h,content:"Clone",disabled:h,onClick:function(){function y(){return C("clone_strain",{strain_index:u.strainIndex})}return y}()}),u.sectionButtons],0);return(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:(i=u.sectionTitle)!=null?i:"Strain Information",buttons:N,children:(0,e.createComponentVNode)(2,k,{strain:u.strain,strainIndex:u.strainIndex})})})},b=function(u,s){var i,v=(0,a.useBackend)(s),C=v.act,g=v.data,h=g.selectedStrainIndex,N=g.strains,y=N[h-1];if(N.length===0)return(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Container Information",buttons:(0,e.createComponentVNode)(2,V),children:(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No disease detected in provided blood sample."})})});if(N.length===1){var B;return(0,e.createFragment)([(0,e.createComponentVNode)(2,S,{strain:N[0],strainIndex:1,sectionButtons:(0,e.createComponentVNode)(2,V)}),((B=N[0].symptoms)==null?void 0:B.length)>0&&(0,e.createComponentVNode)(2,l,{strain:N[0]})],0)}var I=(0,e.createComponentVNode)(2,V);return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Culture Information",fill:!0,buttons:I,children:(0,e.createComponentVNode)(2,t.Flex,{direction:"column",style:{height:"100%"},children:[(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Tabs,{children:N.map(function(w,T){var A;return(0,e.createComponentVNode)(2,t.Tabs.Tab,{icon:"virus",selected:h-1===T,onClick:function(){function x(){return C("switch_strain",{strain_index:T+1})}return x}(),children:(A=w.commonName)!=null?A:"Unknown"},T)})})}),(0,e.createComponentVNode)(2,S,{strain:y,strainIndex:h}),((i=y.symptoms)==null?void 0:i.length)>0&&(0,e.createComponentVNode)(2,l,{className:"remove-section-bottom-padding",strain:y})]})})})},p=function(u){return u.reduce(function(s,i){return s+i},0)},l=function(u){var s=u.strain.symptoms;return(0,e.createComponentVNode)(2,t.Flex.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Infection Symptoms",fill:!0,className:u.className,children:(0,e.createComponentVNode)(2,t.Table,{className:"symptoms-table",children:[(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Name"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Stealth"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Resistance"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Stage Speed"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Transmissibility"})]}),s.map(function(i,v){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:i.name}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:i.stealth}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:i.resistance}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:i.stageSpeed}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:i.transmissibility})]},v)}),(0,e.createComponentVNode)(2,t.Table.Row,{className:"table-spacer"}),(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{style:{"font-weight":"bold"},children:"Total"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:p(s.map(function(i){return i.stealth}))}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:p(s.map(function(i){return i.resistance}))}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:p(s.map(function(i){return i.stageSpeed}))}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:p(s.map(function(i){return i.transmissibility}))})]})]})})})},c=["flask","vial","eye-dropper"],m=function(u,s){var i=(0,a.useBackend)(s),v=i.act,C=i.data,g=C.synthesisCooldown,h=C.beakerContainsVirus,N=C.resistances;return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Antibodies",fill:!0,children:(0,e.createComponentVNode)(2,t.Stack,{horizontal:!0,wrap:!0,children:N.map(function(y,B){return(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:c[B%c.length],disabled:!!g,onClick:function(){function I(){return v("clone_vaccine",{resistance_index:B+1})}return I}(),mr:"0.5em"}),y]},B)})})})})}},78643:function(L,r,n){"use strict";r.__esModule=!0,r.ParticleAccelerator=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.ParticleAccelerator=function(){function V(k,S){var b=(0,a.useBackend)(S),p=b.act,l=b.data,c=l.assembled,m=l.power,d=l.strength,u=l.max_strength;return(0,e.createComponentVNode)(2,o.Window,{width:350,height:160,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Control Panel",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"sync",content:"Connect",onClick:function(){function s(){return p("scan")}return s}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",mb:"5px",children:(0,e.createComponentVNode)(2,t.Box,{color:c?"good":"bad",children:c?"Operational":"Error: Verify Configuration"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power",children:(0,e.createComponentVNode)(2,t.Button,{icon:m?"power-off":"times",content:m?"On":"Off",selected:m,disabled:!c,onClick:function(){function s(){return p("power")}return s}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Strength",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"backward",disabled:!c||d===0,onClick:function(){function s(){return p("remove_strength")}return s}(),mr:"4px"}),d,(0,e.createComponentVNode)(2,t.Button,{icon:"forward",disabled:!c||d===u,onClick:function(){function s(){return p("add_strength")}return s}(),ml:"4px"})]})]})})})})}return V}()},34026:function(L,r,n){"use strict";r.__esModule=!0,r.PdaPainter=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.PdaPainter=function(){function b(p,l){var c=(0,a.useBackend)(l),m=c.data,d=m.has_pda;return(0,e.createComponentVNode)(2,o.Window,{width:510,height:505,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:d?(0,e.createComponentVNode)(2,k):(0,e.createComponentVNode)(2,V)})})}return b}(),V=function(p,l){var c=(0,a.useBackend)(l),m=c.act;return(0,e.createComponentVNode)(2,t.Section,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,grow:!0,textAlign:"center",align:"center",color:"silver",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"download",size:5,mb:"10px"}),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Button,{width:"160px",textAlign:"center",content:"Insert PDA",onClick:function(){function d(){return m("insert_pda")}return d}()})]})})})},k=function(p,l){var c=(0,a.useBackend)(l),m=c.act,d=c.data,u=d.pda_colors;return(0,e.createComponentVNode)(2,t.Stack,{fill:!0,horizontal:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,S)}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,t.Table,{className:"PdaPainter__list",children:Object.keys(u).map(function(s){return(0,e.createComponentVNode)(2,t.Table.Row,{onClick:function(){function i(){return m("choose_pda",{selectedPda:s})}return i}(),children:[(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,children:(0,e.createVNode)(1,"img",null,null,1,{src:"data:image/png;base64,"+u[s][0],style:{"vertical-align":"middle",width:"32px",margin:"0px","margin-left":"0px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:s})]},s)})})})})]})},S=function(p,l){var c=(0,a.useBackend)(l),m=c.act,d=c.data,u=d.current_appearance,s=d.preview_appearance;return(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Current PDA",children:[(0,e.createVNode)(1,"img",null,null,1,{src:"data:image/jpeg;base64,"+u,style:{"vertical-align":"middle",width:"160px",margin:"0px","margin-left":"0px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"eject",content:"Eject",color:"green",onClick:function(){function i(){return m("eject_pda")}return i}()}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"paint-roller",content:"Paint PDA",onClick:function(){function i(){return m("paint_pda")}return i}()})]}),(0,e.createComponentVNode)(2,t.Section,{title:"Preview",children:(0,e.createVNode)(1,"img",null,null,1,{src:"data:image/jpeg;base64,"+s,style:{"vertical-align":"middle",width:"160px",margin:"0px","margin-left":"0px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}})})]})}},81378:function(L,r,n){"use strict";r.__esModule=!0,r.PersonalCrafting=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.PersonalCrafting=function(){function S(b,p){var l=(0,a.useBackend)(p),c=l.act,m=l.data,d=m.busy,u=m.category,s=m.display_craftable_only,i=m.display_compact,v=m.prev_cat,C=m.next_cat,g=m.subcategory,h=m.prev_subcat,N=m.next_subcat;return(0,e.createComponentVNode)(2,o.Window,{width:700,height:800,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[!!d&&(0,e.createComponentVNode)(2,t.Dimmer,{fontSize:"32px",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"cog",spin:1})," Crafting..."]}),(0,e.createComponentVNode)(2,t.Section,{title:u,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{content:"Show Craftable Only",icon:s?"check-square-o":"square-o",selected:s,onClick:function(){function y(){return c("toggle_recipes")}return y}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Compact Mode",icon:i?"check-square-o":"square-o",selected:i,onClick:function(){function y(){return c("toggle_compact")}return y}()})],4),children:[(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Button,{content:v,icon:"arrow-left",onClick:function(){function y(){return c("backwardCat")}return y}()}),(0,e.createComponentVNode)(2,t.Button,{content:C,icon:"arrow-right",onClick:function(){function y(){return c("forwardCat")}return y}()})]}),g&&(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Button,{content:h,icon:"arrow-left",onClick:function(){function y(){return c("backwardSubCat")}return y}()}),(0,e.createComponentVNode)(2,t.Button,{content:N,icon:"arrow-right",onClick:function(){function y(){return c("forwardSubCat")}return y}()})]}),i?(0,e.createComponentVNode)(2,V):(0,e.createComponentVNode)(2,k)]})]})})}return S}(),V=function(b,p){var l=(0,a.useBackend)(p),c=l.act,m=l.data,d=m.display_craftable_only,u=m.can_craft,s=m.cant_craft;return(0,e.createComponentVNode)(2,t.Box,{mt:1,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[u.map(function(i){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:i.name,children:[(0,e.createComponentVNode)(2,t.Button,{icon:"hammer",content:"Craft",onClick:function(){function v(){return c("make",{make:i.ref})}return v}()}),i.catalyst_text&&(0,e.createComponentVNode)(2,t.Button,{tooltip:i.catalyst_text,content:"Catalysts",color:"transparent"}),(0,e.createComponentVNode)(2,t.Button,{tooltip:i.req_text,content:"Requirements",color:"transparent"}),i.tool_text&&(0,e.createComponentVNode)(2,t.Button,{tooltip:i.tool_text,content:"Tools",color:"transparent"})]},i.name)}),!d&&s.map(function(i){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:i.name,children:[(0,e.createComponentVNode)(2,t.Button,{icon:"hammer",content:"Craft",disabled:!0}),i.catalyst_text&&(0,e.createComponentVNode)(2,t.Button,{tooltip:i.catalyst_text,content:"Catalysts",color:"transparent"}),(0,e.createComponentVNode)(2,t.Button,{tooltip:i.req_text,content:"Requirements",color:"transparent"}),i.tool_text&&(0,e.createComponentVNode)(2,t.Button,{tooltip:i.tool_text,content:"Tools",color:"transparent"})]},i.name)})]})})},k=function(b,p){var l=(0,a.useBackend)(p),c=l.act,m=l.data,d=m.display_craftable_only,u=m.can_craft,s=m.cant_craft;return(0,e.createComponentVNode)(2,t.Box,{mt:1,children:[u.map(function(i){return(0,e.createComponentVNode)(2,t.Section,{title:i.name,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"hammer",content:"Craft",onClick:function(){function v(){return c("make",{make:i.ref})}return v}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[i.catalyst_text&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Catalysts",children:i.catalyst_text}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Requirements",children:i.req_text}),i.tool_text&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Tools",children:i.tool_text})]})},i.name)}),!d&&s.map(function(i){return(0,e.createComponentVNode)(2,t.Section,{title:i.name,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"hammer",content:"Craft",disabled:!0}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[i.catalyst_text&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Catalysts",children:i.catalyst_text}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Requirements",children:i.req_text}),i.tool_text&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Tools",children:i.tool_text})]})},i.name)})]})}},58792:function(L,r,n){"use strict";r.__esModule=!0,r.Photocopier=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.Photocopier=function(){function S(b,p){var l=(0,a.useBackend)(p),c=l.act,m=l.data;return(0,e.createComponentVNode)(2,o.Window,{width:400,height:440,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Section,{title:"Photocopier",color:"silver",children:[(0,e.createComponentVNode)(2,t.Stack,{mb:1,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:12,children:"Copies:"}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:"2em",bold:!0,children:m.copynumber}),(0,e.createComponentVNode)(2,t.Stack.Item,{float:"right",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"minus",textAlign:"center",content:"",onClick:function(){function d(){return c("minus")}return d}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"plus",textAlign:"center",content:"",onClick:function(){function d(){return c("add")}return d}()})]})]}),(0,e.createComponentVNode)(2,t.Stack,{mb:2,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:12,children:"Toner:"}),(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,children:m.toner})]}),(0,e.createComponentVNode)(2,t.Stack,{mb:1,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:12,children:"Inserted Document:"}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",disabled:!m.copyitem&&!m.mob,content:m.copyitem?m.copyitem:m.mob?m.mob+"'s ass!":"document",onClick:function(){function d(){return c("removedocument")}return d}()})})]}),(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:12,children:"Inserted Folder:"}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",disabled:!m.folder,content:m.folder?m.folder:"folder",onClick:function(){function d(){return c("removefolder")}return d}()})})]})]}),(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,V)}),(0,e.createComponentVNode)(2,k)]})})})}return S}(),V=function(b,p){var l=(0,a.useBackend)(p),c=l.act,m=l.data,d=m.issilicon;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"copy",float:"center",textAlign:"center",content:"Copy",onClick:function(){function u(){return c("copy")}return u}()}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"file-import",float:"center",textAlign:"center",content:"Scan",onClick:function(){function u(){return c("scandocument")}return u}()}),!!d&&(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"file",color:"green",float:"center",textAlign:"center",content:"Print Text",onClick:function(){function u(){return c("ai_text")}return u}()}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"image",color:"green",float:"center",textAlign:"center",content:"Print Image",onClick:function(){function u(){return c("ai_pic")}return u}()})],4)],0)},k=function(b,p){var l=(0,a.useBackend)(p),c=l.act,m=l.data;return(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Scanned Files",children:m.files.map(function(d){return(0,e.createComponentVNode)(2,t.Section,{title:d.name,buttons:(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"print",content:"Print",disabled:m.toner<=0,onClick:function(){function u(){return c("filecopy",{uid:d.uid})}return u}()}),(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"trash-alt",content:"Delete",color:"bad",onClick:function(){function u(){return c("deletefile",{uid:d.uid})}return u}()})]})},d.name)})})}},27902:function(L,r,n){"use strict";r.__esModule=!0,r.PoolController=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=["tempKey"];function V(p,l){if(p==null)return{};var c={},m=Object.keys(p),d,u;for(u=0;u=0)&&(c[d]=p[d]);return c}var k={scalding:{label:"Scalding",color:"#FF0000",icon:"fa fa-arrow-circle-up",requireEmag:!0},warm:{label:"Warm",color:"#990000",icon:"fa fa-arrow-circle-up"},normal:{label:"Normal",color:null,icon:"fa fa-arrow-circle-right"},cool:{label:"Cool",color:"#009999",icon:"fa fa-arrow-circle-down"},frigid:{label:"Frigid",color:"#00CCCC",icon:"fa fa-arrow-circle-down",requireEmag:!0}},S=function(l,c){var m=l.tempKey,d=V(l,f),u=k[m];if(!u)return null;var s=(0,a.useBackend)(c),i=s.data,v=s.act,C=i.currentTemp,g=u.label,h=u.icon,N=m===C,y=function(){v("setTemp",{temp:m})};return(0,e.normalizeProps)((0,e.createComponentVNode)(2,t.Button,Object.assign({color:"transparent",selected:N,onClick:y},d,{children:[(0,e.createComponentVNode)(2,t.Icon,{name:h}),g]})))},b=r.PoolController=function(){function p(l,c){for(var m=(0,a.useBackend)(c),d=m.data,u=d.emagged,s=d.currentTemp,i=k[s]||k.normal,v=i.label,C=i.color,g=[],h=0,N=Object.entries(k);h50?"battery-half":"battery-quarter")||C==="C"&&"bolt"||C==="F"&&"battery-full"||C==="M"&&"slash",color:C==="N"&&(g>50?"yellow":"red")||C==="C"&&"yellow"||C==="F"&&"green"||C==="M"&&"orange"}),(0,e.createComponentVNode)(2,S.Box,{inline:!0,width:"36px",textAlign:"right",children:(0,o.toFixed)(g)+"%"})],4)};u.defaultHooks=f.pureComponentHooks;var s=function(v){var C,g,h=v.status;switch(h){case"AOn":C=!0,g=!0;break;case"AOff":C=!0,g=!1;break;case"On":C=!1,g=!0;break;case"Off":C=!1,g=!1;break}var N=(g?"On":"Off")+(" ["+(C?"auto":"manual")+"]");return(0,e.createComponentVNode)(2,S.ColorBox,{color:g?"good":"bad",content:C?void 0:"M",title:N})};s.defaultHooks=f.pureComponentHooks},27262:function(L,r,n){"use strict";r.__esModule=!0,r.PrisonerImplantManager=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(91097),f=n(99665),V=n(68159),k=n(27527),S=n(45493),b=r.PrisonerImplantManager=function(){function p(l,c){var m=(0,a.useBackend)(c),d=m.act,u=m.data,s=u.loginState,i=u.prisonerInfo,v=u.chemicalInfo,C=u.trackingInfo,g;if(!s.logged_in)return(0,e.createComponentVNode)(2,S.Window,{theme:"security",width:500,height:850,children:(0,e.createComponentVNode)(2,S.Window.Content,{children:(0,e.createComponentVNode)(2,k.LoginScreen)})});var h=[1,5,10];return(0,e.createComponentVNode)(2,S.Window,{theme:"security",width:500,height:850,children:[(0,e.createComponentVNode)(2,f.ComplexModal),(0,e.createComponentVNode)(2,S.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,V.LoginInfo),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Prisoner Points Manager System",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Prisoner",children:(0,e.createComponentVNode)(2,t.Button,{icon:i.name?"eject":"id-card",selected:i.name,content:i.name?i.name:"-----",tooltip:i.name?"Eject ID":"Insert ID",onClick:function(){function N(){return d("id_card")}return N}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Points",children:[i.points!==null?i.points:"-/-",(0,e.createComponentVNode)(2,t.Button,{ml:2,icon:"minus-square",disabled:i.points===null,content:"Reset",onClick:function(){function N(){return d("reset_points")}return N}()})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Point Goal",children:[i.goal!==null?i.goal:"-/-",(0,e.createComponentVNode)(2,t.Button,{ml:2,icon:"pen",disabled:i.goal===null,content:"Edit",onClick:function(){function N(){return(0,f.modalOpen)(c,"set_points")}return N}()})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{children:(0,e.createVNode)(1,"box",null,[(0,e.createTextVNode)("1 minute of prison time should roughly equate to 150 points."),(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("Sentences should not exceed 5000 points."),(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("Permanent prisoners should not be given a point goal."),(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("Prisoners who meet their point goal will be able to automatically access their locker and return to the station using the shuttle.")],4,{hidden:i.goal===null})})]})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Tracking Implants",children:C.map(function(N){return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{p:1,backgroundColor:"rgba(255, 255, 255, 0.05)",children:[(0,e.createComponentVNode)(2,t.Box,{bold:!0,children:["Subject: ",N.subject]}),(0,e.createComponentVNode)(2,t.Box,{children:[" ",(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Location",children:N.location}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Health",children:N.health}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Prisoner",children:(0,e.createComponentVNode)(2,t.Button,{icon:"exclamation-triangle",content:"Warn",tooltip:"Broadcast a message to this poor sod",onClick:function(){function y(){return(0,f.modalOpen)(c,"warn",{uid:N.uid})}return y}()})})]})]},N.subject)]}),(0,e.createVNode)(1,"br")],4)})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Chemical Implants",children:v.map(function(N){return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{p:1,backgroundColor:"rgba(255, 255, 255, 0.05)",children:[(0,e.createComponentVNode)(2,t.Box,{bold:!0,children:["Subject: ",N.name]}),(0,e.createComponentVNode)(2,t.Box,{children:[" ",(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,o.LabeledList,{children:(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Remaining Reagents",children:N.volume})}),h.map(function(y){return(0,e.createComponentVNode)(2,t.Button,{mt:2,disabled:N.volumec;return(0,e.createComponentVNode)(2,t.ImageButton,{asset:!0,imageAsset:"prize_counter64x64",image:C.imageID,title:C.name,content:C.desc,children:(0,e.createComponentVNode)(2,t.ImageButton.Item,{bold:!0,width:"64px",fontSize:1.5,textColor:g&&"gray",content:C.cost,icon:"ticket",iconSize:1.6,iconColor:g?"bad":"good",tooltip:g&&"Not enough tickets",disabled:g,onClick:function(){function h(){return p("purchase",{purchase:C.itemID})}return h}()})},C.name)})})})})})})}return V}()},87963:function(L,r,n){"use strict";r.__esModule=!0,r.RCD=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=n(99665),V=n(57842),k=r.RCD=function(){function d(u,s){return(0,e.createComponentVNode)(2,o.Window,{width:480,height:670,children:[(0,e.createComponentVNode)(2,f.ComplexModal),(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,S),(0,e.createComponentVNode)(2,b),(0,e.createComponentVNode)(2,l),(0,e.createComponentVNode)(2,c)]})})]})}return d}(),S=function(u,s){var i=(0,a.useBackend)(s),v=i.data,C=v.matter,g=v.max_matter,h=g*.7,N=g*.25;return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Matter Storage",children:(0,e.createComponentVNode)(2,t.ProgressBar,{ranges:{good:[h,1/0],average:[N,h],bad:[-1/0,N]},value:C,maxValue:g,children:(0,e.createComponentVNode)(2,t.Stack.Item,{textAlign:"center",children:C+" / "+g+" units"})})})})},b=function(){return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Construction Type",children:(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,p,{mode_type:"Floors and Walls"}),(0,e.createComponentVNode)(2,p,{mode_type:"Airlocks"}),(0,e.createComponentVNode)(2,p,{mode_type:"Windows"}),(0,e.createComponentVNode)(2,p,{mode_type:"Deconstruction"})]})})})},p=function(u,s){var i=(0,a.useBackend)(s),v=i.act,C=i.data,g=u.mode_type,h=C.mode;return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,color:"transparent",content:g,selected:h===g?1:0,onClick:function(){function N(){return v("mode",{mode:g})}return N}()})})},l=function(u,s){var i=(0,a.useBackend)(s),v=i.act,C=i.data,g=C.door_name,h=C.electrochromic,N=C.airlock_glass;return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Airlock Settings",children:(0,e.createComponentVNode)(2,t.Stack,{textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,color:"transparent",icon:"pen-alt",content:(0,e.createFragment)([(0,e.createTextVNode)("Rename: "),(0,e.createVNode)(1,"b",null,g,0)],0),onClick:function(){function y(){return(0,f.modalOpen)(s,"renameAirlock")}return y}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:N===1&&(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:h?"toggle-on":"toggle-off",content:"Electrochromic",selected:h,onClick:function(){function y(){return v("electrochromic")}return y}()})})]})})})},c=function(u,s){var i=(0,a.useBackend)(s),v=i.act,C=i.data,g=C.tab,h=C.locked,N=C.one_access,y=C.selected_accesses,B=C.regions;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Stack.Item,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Tabs,{fluid:!0,children:[(0,e.createComponentVNode)(2,t.Tabs.Tab,{icon:"cog",selected:g===1,onClick:function(){function I(){return v("set_tab",{tab:1})}return I}(),children:"Airlock Types"}),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:g===2,icon:"list",onClick:function(){function I(){return v("set_tab",{tab:2})}return I}(),children:"Airlock Access"})]})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:g===1?(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Types",children:(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,m,{check_number:0})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,m,{check_number:1})})]})}):g===2&&h?(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Access",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"lock-open",content:"Unlock",onClick:function(){function I(){return v("set_lock",{new_lock:"unlock"})}return I}()}),children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,textAlign:"center",align:"center",color:"label",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"lock",size:"5",mb:3}),(0,e.createVNode)(1,"br"),"Airlock access selection is currently locked."]})})}):(0,e.createComponentVNode)(2,V.AccessList,{sectionButtons:(0,e.createComponentVNode)(2,t.Button,{icon:"lock",content:"Lock",onClick:function(){function I(){return v("set_lock",{new_lock:"lock"})}return I}()}),usedByRcd:1,rcdButtons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:N,content:"One",onClick:function(){function I(){return v("set_one_access",{access:"one"})}return I}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:!N,width:4,content:"All",onClick:function(){function I(){return v("set_one_access",{access:"all"})}return I}()})],4),accesses:B,selectedList:y,accessMod:function(){function I(w){return v("set",{access:w})}return I}(),grantAll:function(){function I(){return v("grant_all")}return I}(),denyAll:function(){function I(){return v("clear_all")}return I}(),grantDep:function(){function I(w){return v("grant_region",{region:w})}return I}(),denyDep:function(){function I(w){return v("deny_region",{region:w})}return I}()})})],4)},m=function(u,s){for(var i=(0,a.useBackend)(s),v=i.act,C=i.data,g=C.door_types_ui_list,h=C.door_type,N=u.check_number,y=[],B=0;B0?"envelope-open-text":"envelope",onClick:function(){function B(){return v("setScreen",{setScreen:6})}return B}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{mt:1,children:[(0,e.createComponentVNode)(2,t.Button,{fluid:!0,lineHeight:3,color:"translucent",content:"Request Assistance",icon:"hand-paper",onClick:function(){function B(){return v("setScreen",{setScreen:1})}return B}()}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{fluid:!0,lineHeight:3,color:"translucent",content:"Request Supplies",icon:"box",onClick:function(){function B(){return v("setScreen",{setScreen:2})}return B}()}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,lineHeight:3,color:"translucent",content:"Request Secondary Goal",icon:"clipboard-list",onClick:function(){function B(){return v("setScreen",{setScreen:11})}return B}()}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,lineHeight:3,color:"translucent",content:"Relay Anonymous Information",icon:"comment",onClick:function(){function B(){return v("setScreen",{setScreen:3})}return B}()})]})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{mt:1,children:(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{fluid:!0,lineHeight:3,color:"translucent",content:"Print Shipping Label",icon:"tag",onClick:function(){function B(){return v("setScreen",{setScreen:9})}return B}()}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,lineHeight:3,color:"translucent",content:"View Shipping Logs",icon:"clipboard-list",onClick:function(){function B(){return v("setScreen",{setScreen:10})}return B}()})]})}),!!h&&(0,e.createComponentVNode)(2,t.Stack.Item,{mt:1,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,lineHeight:3,color:"translucent",content:"Send Station-Wide Announcement",icon:"bullhorn",onClick:function(){function B(){return v("setScreen",{setScreen:8})}return B}()})})]})})},k=function(u,s){var i=(0,a.useBackend)(s),v=i.act,C=i.data,g=C.department,h=[],N;switch(u.purpose){case"ASSISTANCE":h=C.assist_dept,N="Request assistance from another department";break;case"SUPPLIES":h=C.supply_dept,N="Request supplies from another department";break;case"INFO":h=C.info_dept,N="Relay information to another department";break}return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:N,buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Back",icon:"arrow-left",onClick:function(){function y(){return v("setScreen",{setScreen:0})}return y}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:h.filter(function(y){return y!==g}).map(function(y){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:y,textAlign:"right",className:"candystripe",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Message",icon:"envelope",onClick:function(){function B(){return v("writeInput",{write:y,priority:"1"})}return B}()}),(0,e.createComponentVNode)(2,t.Button,{content:"High Priority",icon:"exclamation-circle",onClick:function(){function B(){return v("writeInput",{write:y,priority:"2"})}return B}()})]},y)})})})})},S=function(u,s){var i=(0,a.useBackend)(s),v=i.act,C=i.data,g;switch(u.type){case"SUCCESS":g="Message sent successfully";break;case"FAIL":g="Unable to contact messaging server";break}return(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:g,buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Back",icon:"arrow-left",onClick:function(){function h(){return v("setScreen",{setScreen:0})}return h}()})})},b=function(u,s){var i=(0,a.useBackend)(s),v=i.act,C=i.data,g,h;switch(u.type){case"MESSAGES":g=C.message_log,h="Message Log";break;case"SHIPPING":g=C.shipping_log,h="Shipping label print log";break}return g.reverse(),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:h,buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Back",icon:"arrow-left",onClick:function(){function N(){return v("setScreen",{setScreen:0})}return N}()}),children:g.map(function(N){return(0,e.createComponentVNode)(2,t.Box,{textAlign:"left",children:[N.map(function(y,B){return(0,e.createVNode)(1,"div",null,y,0,null,B)}),(0,e.createVNode)(1,"hr")]},N)})})})},p=function(u,s){var i=(0,a.useBackend)(s),v=i.act,C=i.data,g=C.recipient,h=C.message,N=C.msgVerified,y=C.msgStamped;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Message Authentication",buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Back",icon:"arrow-left",onClick:function(){function B(){return v("setScreen",{setScreen:0})}return B}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Recipient",children:g}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Message",children:h}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Validated by",color:"green",children:N}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Stamped by",color:"blue",children:y})]})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",content:"Send Message",icon:"envelope",onClick:function(){function B(){return v("department",{department:g})}return B}()})})})],4)},l=function(u,s){var i=(0,a.useBackend)(s),v=i.act,C=i.data,g=C.message,h=C.announceAuth;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Station-Wide Announcement",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{content:"Back",icon:"arrow-left",onClick:function(){function N(){return v("setScreen",{setScreen:0})}return N}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Edit Message",icon:"edit",onClick:function(){function N(){return v("writeAnnouncement")}return N}()})],4),children:g})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{children:[h?(0,e.createComponentVNode)(2,t.Box,{textAlign:"center",color:"green",children:"ID verified. Authentication accepted."}):(0,e.createComponentVNode)(2,t.Box,{textAlign:"center",color:"label",children:"Swipe your ID card to authenticate yourself"}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,mt:2,textAlign:"center",content:"Send Announcement",icon:"bullhorn",disabled:!(h&&g),onClick:function(){function N(){return v("sendAnnouncement")}return N}()})]})})],4)},c=function(u,s){var i=(0,a.useBackend)(s),v=i.act,C=i.data,g=C.shipDest,h=C.msgVerified,N=C.ship_dept;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Stack.Item,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Section,{title:"Print Shipping Label",buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Back",icon:"arrow-left",onClick:function(){function y(){return v("setScreen",{setScreen:0})}return y}()}),children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Destination",children:g}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Validated by",children:h})]}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,mt:1,textAlign:"center",content:"Print Label",icon:"print",disabled:!(g&&h),onClick:function(){function y(){return v("printLabel")}return y}()})]})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Destinations",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:N.map(function(y){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:y,textAlign:"right",className:"candystripe",children:(0,e.createComponentVNode)(2,t.Button,{content:g===y?"Selected":"Select",selected:g===y,onClick:function(){function B(){return v("shipSelect",{shipSelect:y})}return B}()})},y)})})})})],4)},m=function(u,s){var i=(0,a.useBackend)(s),v=i.act,C=i.data,g=C.secondaryGoalAuth,h=C.secondaryGoalEnabled;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Request Secondary Goal",buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Back",icon:"arrow-left",onClick:function(){function N(){return v("setScreen",{setScreen:0})}return N}()})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{children:[h?g?(0,e.createComponentVNode)(2,t.Box,{textAlign:"center",color:"green",children:"ID verified. Authentication accepted."}):(0,e.createComponentVNode)(2,t.Box,{textAlign:"center",color:"label",children:"Swipe your ID card to authenticate yourself"}):(0,e.createComponentVNode)(2,t.Box,{textAlign:"center",color:"label",children:"Complete your current goal first!"}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,mt:2,textAlign:"center",content:"Request Secondary Goal",icon:"clipboard-list",disabled:!(g&&h),onClick:function(){function N(){return v("requestSecondaryGoal")}return N}()})]})})],4)}},89641:function(L,r,n){"use strict";r.__esModule=!0,r.SUBMENU=r.RndConsole=r.MENU=void 0;var e=n(96524),a=n(17899),t=n(45493),o=n(24674),f=n(3422),V=r.MENU={MAIN:0,LEVELS:1,DISK:2,DESTROY:3,LATHE:4,IMPRINTER:5,SETTINGS:6},k=r.SUBMENU={MAIN:0,DISK_COPY:1,LATHE_CATEGORY:1,LATHE_MAT_STORAGE:2,LATHE_CHEM_STORAGE:3,SETTINGS_DEVICES:1},S=r.RndConsole=function(){function b(p,l){var c=(0,a.useBackend)(l),m=c.data,d=m.wait_message;return(0,e.createComponentVNode)(2,t.Window,{width:800,height:550,children:(0,e.createComponentVNode)(2,t.Window.Content,{children:(0,e.createComponentVNode)(2,o.Box,{className:"RndConsole",children:[(0,e.createComponentVNode)(2,f.RndNavbar),(0,e.createComponentVNode)(2,f.RndRoute,{menu:V.MAIN,render:function(){function u(){return(0,e.createComponentVNode)(2,f.MainMenu)}return u}()}),(0,e.createComponentVNode)(2,f.RndRoute,{menu:V.LEVELS,render:function(){function u(){return(0,e.createComponentVNode)(2,f.CurrentLevels)}return u}()}),(0,e.createComponentVNode)(2,f.RndRoute,{menu:V.DISK,render:function(){function u(){return(0,e.createComponentVNode)(2,f.DataDiskMenu)}return u}()}),(0,e.createComponentVNode)(2,f.RndRoute,{menu:V.DESTROY,render:function(){function u(){return(0,e.createComponentVNode)(2,f.DeconstructionMenu)}return u}()}),(0,e.createComponentVNode)(2,f.RndRoute,{menu:function(){function u(s){return s===V.LATHE||s===V.IMPRINTER}return u}(),render:function(){function u(){return(0,e.createComponentVNode)(2,f.LatheMenu)}return u}()}),(0,e.createComponentVNode)(2,f.RndRoute,{menu:V.SETTINGS,render:function(){function u(){return(0,e.createComponentVNode)(2,f.SettingsMenu)}return u}()}),d?(0,e.createComponentVNode)(2,o.Box,{className:"RndConsole__Overlay",children:(0,e.createComponentVNode)(2,o.Box,{className:"RndConsole__Overlay__Wrapper",children:(0,e.createComponentVNode)(2,o.NoticeBox,{color:"black",children:d})})}):null]})})})}return b}()},19348:function(L,r,n){"use strict";r.__esModule=!0,r.CurrentLevels=void 0;var e=n(96524),a=n(17899),t=n(24674),o=r.CurrentLevels=function(){function f(V,k){var S=(0,a.useBackend)(k),b=S.data,p=b.tech_levels;return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createVNode)(1,"h3",null,"Current Research Levels:",16),p.map(function(l,c){var m=l.name,d=l.level,u=l.desc;return(0,e.createComponentVNode)(2,t.Box,{children:[c>0?(0,e.createComponentVNode)(2,t.Divider):null,(0,e.createComponentVNode)(2,t.Box,{children:m}),(0,e.createComponentVNode)(2,t.Box,{children:["* Level: ",d]}),(0,e.createComponentVNode)(2,t.Box,{children:["* Summary: ",u]})]},m)})]})}return f}()},338:function(L,r,n){"use strict";r.__esModule=!0,r.DataDiskMenu=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(3422),f=n(89641),V="design",k="tech",S=function(s,i){var v=(0,a.useBackend)(i),C=v.data,g=v.act,h=C.disk_data;return h?(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Name",children:h.name}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Level",children:h.level}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Description",children:h.desc})]}),(0,e.createComponentVNode)(2,t.Box,{mt:"10px",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Upload to Database",icon:"arrow-up",onClick:function(){function N(){return g("updt_tech")}return N}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Clear Disk",icon:"trash",onClick:function(){function N(){return g("clear_tech")}return N}()}),(0,e.createComponentVNode)(2,l)]})]}):null},b=function(s,i){var v=(0,a.useBackend)(i),C=v.data,g=v.act,h=C.disk_data;if(!h)return null;var N=h.name,y=h.lathe_types,B=h.materials,I=y.join(", ");return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Name",children:N}),I?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Lathe Types",children:I}):null,(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Required Materials"})]}),B.map(function(w){return(0,e.createComponentVNode)(2,t.Box,{children:["- ",(0,e.createVNode)(1,"span",null,w.name,0,{style:{"text-transform":"capitalize"}})," x ",w.amount]},w.name)}),(0,e.createComponentVNode)(2,t.Box,{mt:"10px",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Upload to Database",icon:"arrow-up",onClick:function(){function w(){return g("updt_design")}return w}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Clear Disk",icon:"trash",onClick:function(){function w(){return g("clear_design")}return w}()}),(0,e.createComponentVNode)(2,l)]})]})},p=function(s,i){var v=(0,a.useBackend)(i),C=v.data,g=C.disk_type;return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Box,{children:"This disk is empty."}),(0,e.createComponentVNode)(2,t.Box,{mt:"10px",children:[(0,e.createComponentVNode)(2,o.RndNavButton,{submenu:f.SUBMENU.DISK_COPY,icon:"arrow-down",content:g===k?"Load Tech to Disk":"Load Design to Disk"}),(0,e.createComponentVNode)(2,l)]})]})},l=function(s,i){var v=(0,a.useBackend)(i),C=v.data,g=v.act,h=C.disk_type;return h?(0,e.createComponentVNode)(2,t.Button,{content:"Eject Disk",icon:"eject",onClick:function(){function N(){var y=h===k?"eject_tech":"eject_design";g(y)}return N}()}):null},c=function(s,i){var v=(0,a.useBackend)(i),C=v.data,g=C.disk_data,h=C.disk_type,N=function(){if(!g)return(0,e.createComponentVNode)(2,p);switch(h){case V:return(0,e.createComponentVNode)(2,b);case k:return(0,e.createComponentVNode)(2,S);default:return null}};return(0,e.createComponentVNode)(2,t.Section,{title:"Data Disk Contents",children:N()})},m=function(s,i){var v=(0,a.useBackend)(i),C=v.data,g=v.act,h=C.disk_type,N=C.to_copy;return(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.Box,{overflowY:"auto",overflowX:"hidden",maxHeight:"450px",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:N.sort(function(y,B){return y.name.localeCompare(B.name)}).map(function(y){var B=y.name,I=y.id;return(0,e.createComponentVNode)(2,t.LabeledList.Item,{noColon:!0,label:B,children:(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-down",content:"Copy to Disk",onClick:function(){function w(){h===k?g("copy_tech",{id:I}):g("copy_design",{id:I})}return w}()})},I)})})})})},d=r.DataDiskMenu=function(){function u(s,i){var v=(0,a.useBackend)(i),C=v.data,g=C.disk_type;return g?(0,e.createFragment)([(0,e.createComponentVNode)(2,o.RndRoute,{submenu:f.SUBMENU.MAIN,render:function(){function h(){return(0,e.createComponentVNode)(2,c)}return h}()}),(0,e.createComponentVNode)(2,o.RndRoute,{submenu:f.SUBMENU.DISK_COPY,render:function(){function h(){return(0,e.createComponentVNode)(2,m)}return h}()})],4):null}return u}()},90785:function(L,r,n){"use strict";r.__esModule=!0,r.DeconstructionMenu=void 0;var e=n(96524),a=n(17899),t=n(24674),o=r.DeconstructionMenu=function(){function f(V,k){var S=(0,a.useBackend)(k),b=S.data,p=S.act,l=b.loaded_item,c=b.linked_destroy;return c?l?(0,e.createComponentVNode)(2,t.Section,{noTopPadding:!0,title:"Deconstruction Menu",children:[(0,e.createComponentVNode)(2,t.Box,{mt:"10px",children:["Name: ",l.name]}),(0,e.createComponentVNode)(2,t.Box,{mt:"10px",children:(0,e.createVNode)(1,"h3",null,"Origin Tech:",16)}),(0,e.createComponentVNode)(2,t.LabeledList,{children:l.origin_tech.map(function(m){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"* "+m.name,children:[m.object_level," ",m.current_level?(0,e.createFragment)([(0,e.createTextVNode)("(Current: "),m.current_level,(0,e.createTextVNode)(")")],0):null]},m.name)})}),(0,e.createComponentVNode)(2,t.Box,{mt:"10px",children:(0,e.createVNode)(1,"h3",null,"Options:",16)}),(0,e.createComponentVNode)(2,t.Button,{content:"Deconstruct Item",icon:"unlink",onClick:function(){function m(){p("deconstruct")}return m}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Eject Item",icon:"eject",onClick:function(){function m(){p("eject_item")}return m}()})]}):(0,e.createComponentVNode)(2,t.Section,{title:"Deconstruction Menu",children:"No item loaded. Standing by..."}):(0,e.createComponentVNode)(2,t.Box,{children:"NO DESTRUCTIVE ANALYZER LINKED TO CONSOLE"})}return f}()},34492:function(L,r,n){"use strict";r.__esModule=!0,r.LatheCategory=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(3422),f=r.LatheCategory=function(){function V(k,S){var b=(0,a.useBackend)(S),p=b.data,l=b.act,c=p.category,m=p.matching_designs,d=p.menu,u=d===4,s=u?"build":"imprint";return(0,e.createComponentVNode)(2,t.Section,{title:c,children:[(0,e.createComponentVNode)(2,o.LatheMaterials),(0,e.createComponentVNode)(2,t.Table,{className:"RndConsole__LatheCategory__MatchingDesigns",children:m.map(function(i){var v=i.id,C=i.name,g=i.can_build,h=i.materials;return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"print",content:C,disabled:g<1,onClick:function(){function N(){return l(s,{id:v,amount:1})}return N}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:g>=5?(0,e.createComponentVNode)(2,t.Button,{content:"x5",onClick:function(){function N(){return l(s,{id:v,amount:5})}return N}()}):null}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:g>=10?(0,e.createComponentVNode)(2,t.Button,{content:"x10",onClick:function(){function N(){return l(s,{id:v,amount:10})}return N}()}):null}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:h.map(function(N){return(0,e.createFragment)([" | ",(0,e.createVNode)(1,"span",N.is_red?"color-red":null,[N.amount,(0,e.createTextVNode)(" "),N.name],0)],0)})})]},v)})})]})}return V}()},84275:function(L,r,n){"use strict";r.__esModule=!0,r.LatheChemicalStorage=void 0;var e=n(96524),a=n(17899),t=n(24674),o=r.LatheChemicalStorage=function(){function f(V,k){var S=(0,a.useBackend)(k),b=S.data,p=S.act,l=b.loaded_chemicals,c=b.menu===4;return(0,e.createComponentVNode)(2,t.Section,{title:"Chemical Storage",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Purge All",icon:"trash",onClick:function(){function m(){var d=c?"disposeallP":"disposeallI";p(d)}return m}()}),(0,e.createComponentVNode)(2,t.LabeledList,{children:l.map(function(m){var d=m.volume,u=m.name,s=m.id;return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"* "+d+" of "+u,children:(0,e.createComponentVNode)(2,t.Button,{content:"Purge",icon:"trash",onClick:function(){function i(){var v=c?"disposeP":"disposeI";p(v,{id:s})}return i}()})},s)})})]})}return f}()},12638:function(L,r,n){"use strict";r.__esModule=!0,r.LatheMainMenu=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(3422),f=r.LatheMainMenu=function(){function V(k,S){var b=(0,a.useBackend)(S),p=b.data,l=b.act,c=p.menu,m=p.categories,d=c===4?"Protolathe":"Circuit Imprinter";return(0,e.createComponentVNode)(2,t.Section,{title:d+" Menu",children:[(0,e.createComponentVNode)(2,o.LatheMaterials),(0,e.createComponentVNode)(2,o.LatheSearch),(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,t.Flex,{wrap:"wrap",children:m.map(function(u){return(0,e.createComponentVNode)(2,t.Flex,{style:{"flex-basis":"50%","margin-bottom":"6px"},children:(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-right",content:u,onClick:function(){function s(){l("setCategory",{category:u})}return s}()})},u)})})]})}return V}()},89004:function(L,r,n){"use strict";r.__esModule=!0,r.LatheMaterialStorage=void 0;var e=n(96524),a=n(17899),t=n(24674),o=r.LatheMaterialStorage=function(){function f(V,k){var S=(0,a.useBackend)(k),b=S.data,p=S.act,l=b.loaded_materials;return(0,e.createComponentVNode)(2,t.Section,{className:"RndConsole__LatheMaterialStorage",title:"Material Storage",children:(0,e.createComponentVNode)(2,t.Table,{children:l.map(function(c){var m=c.id,d=c.amount,u=c.name,s=function(){function g(h){var N=b.menu===4?"lathe_ejectsheet":"imprinter_ejectsheet";p(N,{id:m,amount:h})}return g}(),i=Math.floor(d/2e3),v=d<1,C=i===1?"":"s";return(0,e.createComponentVNode)(2,t.Table.Row,{className:v?"color-grey":"color-yellow",children:[(0,e.createComponentVNode)(2,t.Table.Cell,{minWidth:"210px",children:["* ",d," of ",u]}),(0,e.createComponentVNode)(2,t.Table.Cell,{minWidth:"110px",children:["(",i," sheet",C,")"]}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:d>=2e3?(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{content:"1x",icon:"eject",onClick:function(){function g(){return s(1)}return g}()}),(0,e.createComponentVNode)(2,t.Button,{content:"C",icon:"eject",onClick:function(){function g(){return s("custom")}return g}()}),d>=2e3*5?(0,e.createComponentVNode)(2,t.Button,{content:"5x",icon:"eject",onClick:function(){function g(){return s(5)}return g}()}):null,(0,e.createComponentVNode)(2,t.Button,{content:"All",icon:"eject",onClick:function(){function g(){return s(50)}return g}()})],0):null})]},m)})})})}return f}()},73856:function(L,r,n){"use strict";r.__esModule=!0,r.LatheMaterials=void 0;var e=n(96524),a=n(17899),t=n(24674),o=r.LatheMaterials=function(){function f(V,k){var S=(0,a.useBackend)(k),b=S.data,p=b.total_materials,l=b.max_materials,c=b.max_chemicals,m=b.total_chemicals;return(0,e.createComponentVNode)(2,t.Box,{className:"RndConsole__LatheMaterials",mb:"10px",children:(0,e.createComponentVNode)(2,t.Table,{width:"auto",children:[(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Material Amount:"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:p}),l?(0,e.createComponentVNode)(2,t.Table.Cell,{children:" / "+l}):null]}),(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Chemical Amount:"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:m}),c?(0,e.createComponentVNode)(2,t.Table.Cell,{children:" / "+c}):null]})]})})}return f}()},75955:function(L,r,n){"use strict";r.__esModule=!0,r.LatheMenu=void 0;var e=n(96524),a=n(17899),t=n(78345),o=n(3422),f=n(24674),V=n(89641),k=r.LatheMenu=function(){function S(b,p){var l=(0,a.useBackend)(p),c=l.data,m=c.menu,d=c.linked_lathe,u=c.linked_imprinter;return m===4&&!d?(0,e.createComponentVNode)(2,f.Box,{children:"NO PROTOLATHE LINKED TO CONSOLE"}):m===5&&!u?(0,e.createComponentVNode)(2,f.Box,{children:"NO CIRCUIT IMPRITER LINKED TO CONSOLE"}):(0,e.createComponentVNode)(2,f.Box,{children:[(0,e.createComponentVNode)(2,t.RndRoute,{submenu:V.SUBMENU.MAIN,render:function(){function s(){return(0,e.createComponentVNode)(2,o.LatheMainMenu)}return s}()}),(0,e.createComponentVNode)(2,t.RndRoute,{submenu:V.SUBMENU.LATHE_CATEGORY,render:function(){function s(){return(0,e.createComponentVNode)(2,o.LatheCategory)}return s}()}),(0,e.createComponentVNode)(2,t.RndRoute,{submenu:V.SUBMENU.LATHE_MAT_STORAGE,render:function(){function s(){return(0,e.createComponentVNode)(2,o.LatheMaterialStorage)}return s}()}),(0,e.createComponentVNode)(2,t.RndRoute,{submenu:V.SUBMENU.LATHE_CHEM_STORAGE,render:function(){function s(){return(0,e.createComponentVNode)(2,o.LatheChemicalStorage)}return s}()})]})}return S}()},72880:function(L,r,n){"use strict";r.__esModule=!0,r.LatheSearch=void 0;var e=n(96524),a=n(17899),t=n(24674),o=r.LatheSearch=function(){function f(V,k){var S=(0,a.useBackend)(k),b=S.act;return(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Input,{placeholder:"Search...",onEnter:function(){function p(l,c){return b("search",{to_search:c})}return p}()})})}return f}()},62306:function(L,r,n){"use strict";r.__esModule=!0,r.MainMenu=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(3422),f=n(89641),V=r.MainMenu=function(){function k(S,b){var p=(0,a.useBackend)(b),l=p.data,c=l.disk_type,m=l.linked_destroy,d=l.linked_lathe,u=l.linked_imprinter,s=l.tech_levels;return(0,e.createComponentVNode)(2,t.Section,{title:"Main Menu",children:[(0,e.createComponentVNode)(2,t.Flex,{className:"RndConsole__MainMenu__Buttons",direction:"column",align:"flex-start",children:[(0,e.createComponentVNode)(2,o.RndNavButton,{disabled:!c,menu:f.MENU.DISK,submenu:f.SUBMENU.MAIN,icon:"save",content:"Disk Operations"}),(0,e.createComponentVNode)(2,o.RndNavButton,{disabled:!m,menu:f.MENU.DESTROY,submenu:f.SUBMENU.MAIN,icon:"unlink",content:"Destructive Analyzer Menu"}),(0,e.createComponentVNode)(2,o.RndNavButton,{disabled:!d,menu:f.MENU.LATHE,submenu:f.SUBMENU.MAIN,icon:"print",content:"Protolathe Menu"}),(0,e.createComponentVNode)(2,o.RndNavButton,{disabled:!u,menu:f.MENU.IMPRINTER,submenu:f.SUBMENU.MAIN,icon:"print",content:"Circuit Imprinter Menu"}),(0,e.createComponentVNode)(2,o.RndNavButton,{menu:f.MENU.SETTINGS,submenu:f.SUBMENU.MAIN,icon:"cog",content:"Settings"})]}),(0,e.createComponentVNode)(2,t.Box,{mt:"12px"}),(0,e.createVNode)(1,"h3",null,"Current Research Levels:",16),(0,e.createComponentVNode)(2,t.LabeledList,{children:s.map(function(i){var v=i.name,C=i.level;return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:v,children:C},v)})})]})}return k}()},99941:function(L,r,n){"use strict";r.__esModule=!0,r.RndNavButton=void 0;var e=n(96524),a=n(17899),t=n(24674),o=r.RndNavButton=function(){function f(V,k){var S=V.icon,b=V.children,p=V.disabled,l=V.content,c=(0,a.useBackend)(k),m=c.data,d=c.act,u=m.menu,s=m.submenu,i=u,v=s;return V.menu!==null&&V.menu!==void 0&&(i=V.menu),V.submenu!==null&&V.submenu!==void 0&&(v=V.submenu),(0,e.createComponentVNode)(2,t.Button,{content:l,icon:S,disabled:p,onClick:function(){function C(){d("nav",{menu:i,submenu:v})}return C}(),children:b})}return f}()},24448:function(L,r,n){"use strict";r.__esModule=!0,r.RndNavbar=void 0;var e=n(96524),a=n(3422),t=n(24674),o=n(89641),f=r.RndNavbar=function(){function V(){return(0,e.createComponentVNode)(2,t.Box,{className:"RndConsole__RndNavbar",children:[(0,e.createComponentVNode)(2,a.RndRoute,{menu:function(){function k(S){return S!==o.MENU.MAIN}return k}(),render:function(){function k(){return(0,e.createComponentVNode)(2,a.RndNavButton,{menu:o.MENU.MAIN,submenu:o.SUBMENU.MAIN,icon:"reply",content:"Main Menu"})}return k}()}),(0,e.createComponentVNode)(2,a.RndRoute,{submenu:function(){function k(S){return S!==o.SUBMENU.MAIN}return k}(),render:function(){function k(){return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,a.RndRoute,{menu:o.MENU.DISK,render:function(){function S(){return(0,e.createComponentVNode)(2,a.RndNavButton,{submenu:o.SUBMENU.MAIN,icon:"reply",content:"Disk Operations Menu"})}return S}()}),(0,e.createComponentVNode)(2,a.RndRoute,{menu:o.MENU.LATHE,render:function(){function S(){return(0,e.createComponentVNode)(2,a.RndNavButton,{submenu:o.SUBMENU.MAIN,icon:"reply",content:"Protolathe Menu"})}return S}()}),(0,e.createComponentVNode)(2,a.RndRoute,{menu:o.MENU.IMPRINTER,render:function(){function S(){return(0,e.createComponentVNode)(2,a.RndNavButton,{submenu:o.SUBMENU.MAIN,icon:"reply",content:"Circuit Imprinter Menu"})}return S}()}),(0,e.createComponentVNode)(2,a.RndRoute,{menu:o.MENU.SETTINGS,render:function(){function S(){return(0,e.createComponentVNode)(2,a.RndNavButton,{submenu:o.SUBMENU.MAIN,icon:"reply",content:"Settings Menu"})}return S}()})]})}return k}()}),(0,e.createComponentVNode)(2,a.RndRoute,{menu:function(){function k(S){return S===o.MENU.LATHE||S===o.MENU.IMPRINTER}return k}(),submenu:o.SUBMENU.MAIN,render:function(){function k(){return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,a.RndNavButton,{submenu:o.SUBMENU.LATHE_MAT_STORAGE,icon:"arrow-up",content:"Material Storage"}),(0,e.createComponentVNode)(2,a.RndNavButton,{submenu:o.SUBMENU.LATHE_CHEM_STORAGE,icon:"arrow-up",content:"Chemical Storage"})]})}return k}()})]})}return V}()},78345:function(L,r,n){"use strict";r.__esModule=!0,r.RndRoute=void 0;var e=n(17899),a=r.RndRoute=function(){function t(o,f){var V=o.render,k=(0,e.useBackend)(f),S=k.data,b=S.menu,p=S.submenu,l=function(){function m(d,u){return d==null?!0:typeof d=="function"?d(u):d===u}return m}(),c=l(o.menu,b)&&l(o.submenu,p);return c?V():null}return t}()},56454:function(L,r,n){"use strict";r.__esModule=!0,r.SettingsMenu=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(3422),f=n(89641),V=r.SettingsMenu=function(){function k(S,b){var p=(0,a.useBackend)(b),l=p.data,c=p.act,m=l.sync,d=l.admin,u=l.linked_destroy,s=l.linked_lathe,i=l.linked_imprinter;return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,o.RndRoute,{submenu:f.SUBMENU.MAIN,render:function(){function v(){return(0,e.createComponentVNode)(2,t.Section,{title:"Settings",children:(0,e.createComponentVNode)(2,t.Flex,{direction:"column",align:"flex-start",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Sync Database with Network",icon:"sync",disabled:!m,onClick:function(){function C(){c("sync")}return C}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Connect to Research Network",icon:"plug",disabled:m,onClick:function(){function C(){c("togglesync")}return C}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:!m,icon:"unlink",content:"Disconnect from Research Network",onClick:function(){function C(){c("togglesync")}return C}()}),(0,e.createComponentVNode)(2,o.RndNavButton,{disabled:!m,content:"Device Linkage Menu",icon:"link",menu:f.MENU.SETTINGS,submenu:f.SUBMENU.SETTINGS_DEVICES}),d===1?(0,e.createComponentVNode)(2,t.Button,{icon:"exclamation",content:"[ADMIN] Maximize Research Levels",onClick:function(){function C(){return c("maxresearch")}return C}()}):null]})})}return v}()}),(0,e.createComponentVNode)(2,o.RndRoute,{submenu:f.SUBMENU.SETTINGS_DEVICES,render:function(){function v(){return(0,e.createComponentVNode)(2,t.Section,{title:"Device Linkage Menu",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"link",content:"Re-sync with Nearby Devices",onClick:function(){function C(){return c("find_device")}return C}()}),(0,e.createComponentVNode)(2,t.Box,{mt:"5px",children:(0,e.createVNode)(1,"h3",null,"Linked Devices:",16)}),(0,e.createComponentVNode)(2,t.LabeledList,{children:[u?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"* Destructive Analyzer",children:(0,e.createComponentVNode)(2,t.Button,{icon:"unlink",content:"Unlink",onClick:function(){function C(){return c("disconnect",{item:"destroy"})}return C}()})}):(0,e.createComponentVNode)(2,t.LabeledList.Item,{noColon:!0,label:"* No Destructive Analyzer Linked"}),s?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"* Protolathe",children:(0,e.createComponentVNode)(2,t.Button,{icon:"unlink",content:"Unlink",onClick:function(){function C(){c("disconnect",{item:"lathe"})}return C}()})}):(0,e.createComponentVNode)(2,t.LabeledList.Item,{noColon:!0,label:"* No Protolathe Linked"}),i?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"* Circuit Imprinter",children:(0,e.createComponentVNode)(2,t.Button,{icon:"unlink",content:"Unlink",onClick:function(){function C(){return c("disconnect",{item:"imprinter"})}return C}()})}):(0,e.createComponentVNode)(2,t.LabeledList.Item,{noColon:!0,label:"* No Circuit Imprinter Linked"})]})]})}return v}()})]})}return k}()},3422:function(L,r,n){"use strict";r.__esModule=!0,r.SettingsMenu=r.RndRoute=r.RndNavbar=r.RndNavButton=r.MainMenu=r.LatheSearch=r.LatheMenu=r.LatheMaterials=r.LatheMaterialStorage=r.LatheMainMenu=r.LatheChemicalStorage=r.LatheCategory=r.DeconstructionMenu=r.DataDiskMenu=r.CurrentLevels=void 0;var e=n(19348);r.CurrentLevels=e.CurrentLevels;var a=n(338);r.DataDiskMenu=a.DataDiskMenu;var t=n(90785);r.DeconstructionMenu=t.DeconstructionMenu;var o=n(34492);r.LatheCategory=o.LatheCategory;var f=n(84275);r.LatheChemicalStorage=f.LatheChemicalStorage;var V=n(12638);r.LatheMainMenu=V.LatheMainMenu;var k=n(73856);r.LatheMaterials=k.LatheMaterials;var S=n(89004);r.LatheMaterialStorage=S.LatheMaterialStorage;var b=n(75955);r.LatheMenu=b.LatheMenu;var p=n(72880);r.LatheSearch=p.LatheSearch;var l=n(62306);r.MainMenu=l.MainMenu;var c=n(24448);r.RndNavbar=c.RndNavbar;var m=n(99941);r.RndNavButton=m.RndNavButton;var d=n(78345);r.RndRoute=d.RndRoute;var u=n(56454);r.SettingsMenu=u.SettingsMenu},71123:function(L,r,n){"use strict";r.__esModule=!0,r.RobotSelfDiagnosis=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=n(78234),V=function(b,p){var l=b/p;return l<=.2?"good":l<=.5?"average":"bad"},k=r.RobotSelfDiagnosis=function(){function S(b,p){var l=(0,a.useBackend)(p),c=l.data,m=c.component_data;return(0,e.createComponentVNode)(2,o.Window,{width:280,height:480,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:m.map(function(d,u){return(0,e.createComponentVNode)(2,t.Section,{title:(0,f.capitalize)(d.name),children:d.installed<=0?(0,e.createComponentVNode)(2,t.NoticeBox,{m:-.5,height:3.5,color:"red",style:{"font-style":"normal"},children:(0,e.createComponentVNode)(2,t.Flex,{height:"100%",children:(0,e.createComponentVNode)(2,t.Flex.Item,{grow:1,textAlign:"center",align:"center",color:"#e8e8e8",children:d.installed===-1?"Destroyed":"Missing"})})}):(0,e.createComponentVNode)(2,t.Flex,{children:[(0,e.createComponentVNode)(2,t.Flex.Item,{width:"72%",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Brute Damage",color:V(d.brute_damage,d.max_damage),children:d.brute_damage}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Burn Damage",color:V(d.electronic_damage,d.max_damage),children:d.electronic_damage})]})}),(0,e.createComponentVNode)(2,t.Flex.Item,{width:"50%",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Powered",color:d.powered?"good":"bad",children:d.powered?"Yes":"No"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Enabled",color:d.status?"good":"bad",children:d.status?"Yes":"No"})]})})]})},u)})})})}return S}()},98951:function(L,r,n){"use strict";r.__esModule=!0,r.RoboticsControlConsole=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.RoboticsControlConsole=function(){function k(S,b){var p=(0,a.useBackend)(b),l=p.act,c=p.data,m=c.can_hack,d=c.safety,u=c.show_lock_all,s=c.cyborgs,i=s===void 0?[]:s;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:460,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[!!u&&(0,e.createComponentVNode)(2,t.Section,{title:"Emergency Lock Down",children:[(0,e.createComponentVNode)(2,t.Button,{icon:d?"lock":"unlock",content:d?"Disable Safety":"Enable Safety",selected:d,onClick:function(){function v(){return l("arm",{})}return v}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"lock",disabled:d,content:"Lock ALL Cyborgs",color:"bad",onClick:function(){function v(){return l("masslock",{})}return v}()})]}),(0,e.createComponentVNode)(2,V,{cyborgs:i,can_hack:m})]})})}return k}(),V=function(S,b){var p=S.cyborgs,l=S.can_hack,c=(0,a.useBackend)(b),m=c.act,d=c.data,u="Detonate";return d.detonate_cooldown>0&&(u+=" ("+d.detonate_cooldown+"s)"),p.length?p.map(function(s){return(0,e.createComponentVNode)(2,t.Section,{title:s.name,buttons:(0,e.createFragment)([!!s.hackable&&!s.emagged&&(0,e.createComponentVNode)(2,t.Button,{icon:"terminal",content:"Hack",color:"bad",onClick:function(){function i(){return m("hackbot",{uid:s.uid})}return i}()}),(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:s.locked_down?"unlock":"lock",color:s.locked_down?"good":"default",content:s.locked_down?"Release":"Lockdown",disabled:!d.auth,onClick:function(){function i(){return m("stopbot",{uid:s.uid})}return i}()}),(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"bomb",content:u,disabled:!d.auth||d.detonate_cooldown>0,color:"bad",onClick:function(){function i(){return m("killbot",{uid:s.uid})}return i}()})],0),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:(0,e.createComponentVNode)(2,t.Box,{color:s.status?"bad":s.locked_down?"average":"good",children:s.status?"Not Responding":s.locked_down?"Locked Down":"Nominal"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Location",children:(0,e.createComponentVNode)(2,t.Box,{children:s.locstring})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Integrity",children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:s.health>50?"good":"bad",value:s.health/100})}),typeof s.charge=="number"&&(0,e.createFragment)([(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cell Charge",children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:s.charge>30?"good":"bad",value:s.charge/100})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cell Capacity",children:(0,e.createComponentVNode)(2,t.Box,{color:s.cell_capacity<3e4?"average":"good",children:s.cell_capacity})})],4)||(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cell",children:(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:"No Power Cell"})}),!!s.is_hacked&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Safeties",children:(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:"DISABLED"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Module",children:s.module}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Master AI",children:(0,e.createComponentVNode)(2,t.Box,{color:s.synchronization?"default":"average",children:s.synchronization||"None"})})]})},s.uid)}):(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No cyborg units detected within access parameters."})}},2289:function(L,r,n){"use strict";r.__esModule=!0,r.Safe=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.Safe=function(){function b(p,l){var c=(0,a.useBackend)(l),m=c.act,d=c.data,u=d.dial,s=d.open,i=d.locked,v=d.contents;return(0,e.createComponentVNode)(2,o.Window,{theme:"safe",width:600,height:800,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Box,{className:"Safe--engraving",children:[(0,e.createComponentVNode)(2,V),(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Box,{className:"Safe--engraving--hinge",top:"25%"}),(0,e.createComponentVNode)(2,t.Box,{className:"Safe--engraving--hinge",top:"75%"})]}),(0,e.createComponentVNode)(2,t.Icon,{className:"Safe--engraving--arrow",name:"long-arrow-alt-down",size:"3"}),(0,e.createVNode)(1,"br"),s?(0,e.createComponentVNode)(2,k):(0,e.createComponentVNode)(2,t.Box,{as:"img",className:"Safe--dial",src:"safe_dial.png",style:{transform:"rotate(-"+3.6*u+"deg)","z-index":0}})]}),!s&&(0,e.createComponentVNode)(2,S)]})})}return b}(),V=function(p,l){var c=(0,a.useBackend)(l),m=c.act,d=c.data,u=d.dial,s=d.open,i=d.locked,v=function(g,h){return(0,e.createComponentVNode)(2,t.Button,{disabled:s||h&&!i,icon:"arrow-"+(h?"right":"left"),content:(h?"Right":"Left")+" "+g,iconRight:h,onClick:function(){function N(){return m(h?"turnleft":"turnright",{num:g})}return N}(),style:{"z-index":10}})};return(0,e.createComponentVNode)(2,t.Box,{className:"Safe--dialer",children:[(0,e.createComponentVNode)(2,t.Button,{disabled:i,icon:s?"lock":"lock-open",content:s?"Close":"Open",mb:"0.5rem",onClick:function(){function C(){return m("open")}return C}()}),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Box,{position:"absolute",children:[v(50),v(10),v(1)]}),(0,e.createComponentVNode)(2,t.Box,{className:"Safe--dialer--right",position:"absolute",right:"5px",children:[v(1,!0),v(10,!0),v(50,!0)]}),(0,e.createComponentVNode)(2,t.Box,{className:"Safe--dialer--number",children:u})]})},k=function(p,l){var c=(0,a.useBackend)(l),m=c.act,d=c.data,u=d.contents;return(0,e.createComponentVNode)(2,t.Box,{className:"Safe--contents",overflow:"auto",children:u.map(function(s,i){return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{mb:"0.5rem",onClick:function(){function v(){return m("retrieve",{index:i+1})}return v}(),children:[(0,e.createComponentVNode)(2,t.Box,{as:"img",src:s.sprite+".png",verticalAlign:"middle",ml:"-6px",mr:"0.5rem"}),s.name]}),(0,e.createVNode)(1,"br")],4,s)})})},S=function(p,l){return(0,e.createComponentVNode)(2,t.Section,{className:"Safe--help",title:"Safe opening instructions (because you all keep forgetting)",children:[(0,e.createComponentVNode)(2,t.Box,{children:["1. Turn the dial left to the first number.",(0,e.createVNode)(1,"br"),"2. Turn the dial right to the second number.",(0,e.createVNode)(1,"br"),"3. Continue repeating this process for each number, switching between left and right each time.",(0,e.createVNode)(1,"br"),"4. Open the safe."]}),(0,e.createComponentVNode)(2,t.Box,{bold:!0,children:"To lock fully, turn the dial to the left after closing the safe."})]})}},49334:function(L,r,n){"use strict";r.__esModule=!0,r.SatelliteControl=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.SatelliteControl=function(){function V(k,S){var b=(0,a.useBackend)(S),p=b.act,l=b.data,c=l.satellites,m=l.notice,d=l.meteor_shield,u=l.meteor_shield_coverage,s=l.meteor_shield_coverage_max,i=l.meteor_shield_coverage_percentage;return(0,e.createComponentVNode)(2,o.Window,{width:475,height:400,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[d&&(0,e.createComponentVNode)(2,t.Section,{title:"Station Shield Coverage",children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:i>=100?"good":"average",value:u,maxValue:s,children:[i," %"]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Satellite Network Control",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[m&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Alert",color:"red",children:l.notice}),c.map(function(v){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"#"+v.id,children:[v.mode," ",(0,e.createComponentVNode)(2,t.Button,{content:v.active?"Deactivate":"Activate",icon:"arrow-circle-right",onClick:function(){function C(){return p("toggle",{id:v.id})}return C}()})]},v.id)})]})})]})})}return V}()},54892:function(L,r,n){"use strict";r.__esModule=!0,r.SecureStorage=void 0;var e=n(96524),a=n(28234),t=n(17899),o=n(24674),f=n(45493),V=n(5126),k=n(68100),S=r.SecureStorage=function(){function c(m,d){return(0,e.createComponentVNode)(2,f.Window,{theme:"securestorage",height:500,width:280,children:(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,p)})})})})}return c}(),b=function(m,d){var u=(0,t.useBackend)(d),s=u.act,i=window.event?m.which:m.keyCode;if(i===k.KEY_ENTER){m.preventDefault(),s("keypad",{digit:"E"});return}if(i===k.KEY_ESCAPE){m.preventDefault(),s("keypad",{digit:"C"});return}if(i===k.KEY_BACKSPACE){m.preventDefault(),s("backspace");return}if(i>=k.KEY_0&&i<=k.KEY_9){m.preventDefault(),s("keypad",{digit:i-k.KEY_0});return}if(i>=k.KEY_NUMPAD_0&&i<=k.KEY_NUMPAD_9){m.preventDefault(),s("keypad",{digit:i-k.KEY_NUMPAD_0});return}},p=function(m,d){var u=(0,t.useBackend)(d),s=u.act,i=u.data,v=i.locked,C=i.no_passcode,g=i.emagged,h=i.user_entered_code,N=[["1","2","3"],["4","5","6"],["7","8","9"],["C","0","E"]],y=C?"":v?"bad":"good";return(0,e.createComponentVNode)(2,o.Section,{fill:!0,onKeyDown:function(){function B(I){return b(I,d)}return B}(),children:[(0,e.createComponentVNode)(2,o.Stack.Item,{height:7.3,children:(0,e.createComponentVNode)(2,o.Box,{className:(0,a.classes)(["SecureStorage__displayBox","SecureStorage__displayBox--"+y]),height:"100%",children:g?"ERROR":h})}),(0,e.createComponentVNode)(2,o.Table,{children:N.map(function(B){return(0,e.createComponentVNode)(2,V.TableRow,{children:B.map(function(I){return(0,e.createComponentVNode)(2,V.TableCell,{children:(0,e.createComponentVNode)(2,l,{number:I})},I)})},B[0])})})]})},l=function(m,d){var u=(0,t.useBackend)(d),s=u.act,i=u.data,v=m.number;return(0,e.createComponentVNode)(2,o.Button,{fluid:!0,bold:!0,mb:"6px",content:v,textAlign:"center",fontSize:"60px",lineHeight:1.25,width:"80px",className:(0,a.classes)(["SecureStorage__Button","SecureStorage__Button--keypad","SecureStorage__Button--"+v]),onClick:function(){function C(){return s("keypad",{digit:v})}return C}()})}},56798:function(L,r,n){"use strict";r.__esModule=!0,r.SecurityRecords=void 0;var e=n(96524),a=n(78234),t=n(17899),o=n(24674),f=n(45493),V=n(99665),k=n(68159),S=n(27527),b=n(84537),p={"*Execute*":"execute","*Arrest*":"arrest",Incarcerated:"incarcerated",Parolled:"parolled",Released:"released",Demote:"demote",Search:"search",Monitor:"monitor"},l=function(h,N){(0,V.modalOpen)(h,"edit",{field:N.edit,value:N.value})},c=r.SecurityRecords=function(){function g(h,N){var y=(0,t.useBackend)(N),B=y.act,I=y.data,w=I.loginState,T=I.currentPage,A;if(w.logged_in)T===1?A=(0,e.createComponentVNode)(2,d):T===2&&(A=(0,e.createComponentVNode)(2,i));else return(0,e.createComponentVNode)(2,f.Window,{theme:"security",width:800,height:900,children:(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,S.LoginScreen)})});return(0,e.createComponentVNode)(2,f.Window,{theme:"security",width:800,height:900,children:[(0,e.createComponentVNode)(2,V.ComplexModal),(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,k.LoginInfo),(0,e.createComponentVNode)(2,b.TemporaryNotice),(0,e.createComponentVNode)(2,m),A]})})]})}return g}(),m=function(h,N){var y=(0,t.useBackend)(N),B=y.act,I=y.data,w=I.currentPage,T=I.general;return(0,e.createComponentVNode)(2,o.Stack.Item,{m:0,children:(0,e.createComponentVNode)(2,o.Tabs,{children:[(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"list",selected:w===1,onClick:function(){function A(){return B("page",{page:1})}return A}(),children:"List Records"}),w===2&&T&&!T.empty&&(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"file",selected:w===2,children:["Record: ",T.fields[0].value]})]})})},d=function(h,N){var y=(0,t.useBackend)(N),B=y.act,I=y.data,w=I.records,T=(0,t.useLocalState)(N,"searchText",""),A=T[0],x=T[1],E=(0,t.useLocalState)(N,"sortId","name"),M=E[0],D=E[1],P=(0,t.useLocalState)(N,"sortOrder",!0),R=P[0],j=P[1];return(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,s)}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,mt:.5,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,o.Table,{className:"SecurityRecords__list",children:[(0,e.createComponentVNode)(2,o.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,u,{id:"name",children:"Name"}),(0,e.createComponentVNode)(2,u,{id:"id",children:"ID"}),(0,e.createComponentVNode)(2,u,{id:"rank",children:"Assignment"}),(0,e.createComponentVNode)(2,u,{id:"fingerprint",children:"Fingerprint"}),(0,e.createComponentVNode)(2,u,{id:"status",children:"Criminal Status"})]}),w.filter((0,a.createSearch)(A,function(F){return F.name+"|"+F.id+"|"+F.rank+"|"+F.fingerprint+"|"+F.status})).sort(function(F,U){var _=R?1:-1;return F[M].localeCompare(U[M])*_}).map(function(F){return(0,e.createComponentVNode)(2,o.Table.Row,{className:"SecurityRecords__listRow--"+p[F.status],onClick:function(){function U(){return B("view",{uid_gen:F.uid_gen,uid_sec:F.uid_sec})}return U}(),children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:"user"})," ",F.name]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:F.id}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:F.rank}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:F.fingerprint}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:F.status})]},F.id)})]})})})],4)},u=function(h,N){var y=(0,t.useLocalState)(N,"sortId","name"),B=y[0],I=y[1],w=(0,t.useLocalState)(N,"sortOrder",!0),T=w[0],A=w[1],x=h.id,E=h.children;return(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Button,{color:B!==x&&"transparent",fluid:!0,onClick:function(){function M(){B===x?A(!T):(I(x),A(!0))}return M}(),children:[E,B===x&&(0,e.createComponentVNode)(2,o.Icon,{name:T?"sort-up":"sort-down",ml:"0.25rem;"})]})})})},s=function(h,N){var y=(0,t.useBackend)(N),B=y.act,I=y.data,w=I.isPrinting,T=(0,t.useLocalState)(N,"searchText",""),A=T[0],x=T[1];return(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{ml:"0.25rem",content:"New Record",icon:"plus",onClick:function(){function E(){return B("new_general")}return E}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{disabled:w,icon:w?"spinner":"print",iconSpin:!!w,content:"Print Cell Log",onClick:function(){function E(){return(0,V.modalOpen)(N,"print_cell_log")}return E}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Input,{placeholder:"Search by Name, ID, Assignment, Fingerprint, Status",fluid:!0,onInput:function(){function E(M,D){return x(D)}return E}()})})]})},i=function(h,N){var y=(0,t.useBackend)(N),B=y.act,I=y.data,w=I.isPrinting,T=I.general,A=I.security;return!T||!T.fields?(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"General records lost!"}):(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"General Data",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{disabled:w,icon:w?"spinner":"print",iconSpin:!!w,content:"Print Record",onClick:function(){function x(){return B("print_record")}return x}()}),(0,e.createComponentVNode)(2,o.Button.Confirm,{icon:"trash",tooltip:"WARNING: This will also delete the Security and Medical records associated with this crew member!",tooltipPosition:"bottom-start",content:"Delete Record",onClick:function(){function x(){return B("delete_general")}return x}()})],4),children:(0,e.createComponentVNode)(2,v)})}),!A||!A.fields?(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,color:"bad",children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,title:"Security Data",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"pen",content:"Create New Record",onClick:function(){function x(){return B("new_security")}return x}()}),children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,o.Stack.Item,{bold:!0,grow:!0,textAlign:"center",fontSize:1.75,align:"center",color:"label",children:[(0,e.createComponentVNode)(2,o.Icon.Stack,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:"scroll",size:5,color:"gray"}),(0,e.createComponentVNode)(2,o.Icon,{name:"slash",size:5,color:"red"})]}),(0,e.createVNode)(1,"br"),"Security records lost!"]})})})}):(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"Security Data",buttons:(0,e.createComponentVNode)(2,o.Button.Confirm,{icon:"trash",disabled:A.empty,content:"Delete Record",onClick:function(){function x(){return B("delete_security")}return x}()}),children:(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.LabeledList,{children:A.fields.map(function(x,E){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:x.field,preserveWhitespace:!0,children:[(0,a.decodeHtmlEntities)(x.value),!!x.edit&&(0,e.createComponentVNode)(2,o.Button,{icon:"pen",ml:"0.5rem",mb:x.line_break?"1rem":"initial",onClick:function(){function M(){return l(N,x)}return M}()})]},E)})})})})}),(0,e.createComponentVNode)(2,C)],4)],0)},v=function(h,N){var y=(0,t.useBackend)(N),B=y.data,I=B.general;return!I||!I.fields?(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,color:"bad",children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,children:"General records lost!"})})}):(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.LabeledList,{children:I.fields.map(function(w,T){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:w.field,preserveWhitespace:!0,children:[(0,a.decodeHtmlEntities)(""+w.value),!!w.edit&&(0,e.createComponentVNode)(2,o.Button,{icon:"pen",ml:"0.5rem",mb:w.line_break?"1rem":"initial",onClick:function(){function A(){return l(N,w)}return A}()})]},T)})})}),!!I.has_photos&&I.photos.map(function(w,T){return(0,e.createComponentVNode)(2,o.Stack.Item,{inline:!0,textAlign:"center",color:"label",ml:0,children:[(0,e.createVNode)(1,"img",null,null,1,{src:w,style:{width:"96px","margin-top":"5rem","margin-bottom":"0.5rem","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createVNode)(1,"br"),"Photo #",T+1]},T)})]})},C=function(h,N){var y=(0,t.useBackend)(N),B=y.act,I=y.data,w=I.security;return(0,e.createComponentVNode)(2,o.Stack.Item,{height:"150px",children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"Comments/Log",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"comment",content:"Add Entry",onClick:function(){function T(){return(0,V.modalOpen)(N,"comment_add")}return T}()}),children:w.comments.length===0?(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"No comments found."}):w.comments.map(function(T,A){return(0,e.createComponentVNode)(2,o.Box,{preserveWhitespace:!0,children:[(0,e.createComponentVNode)(2,o.Box,{color:"label",inline:!0,children:T.header||"Auto-generated"}),(0,e.createVNode)(1,"br"),T.text||T,(0,e.createComponentVNode)(2,o.Button,{icon:"comment-slash",color:"bad",ml:"0.5rem",onClick:function(){function x(){return B("comment_delete",{id:A+1})}return x}()})]},A)})})})}},59981:function(L,r,n){"use strict";r.__esModule=!0,r.SeedExtractor=void 0;var e=n(96524),a=n(78234),t=n(17899),o=n(24674),f=n(45493),V=n(99665);function k(u,s){var i=typeof Symbol!="undefined"&&u[Symbol.iterator]||u["@@iterator"];if(i)return(i=i.call(u)).next.bind(i);if(Array.isArray(u)||(i=S(u))||s&&u&&typeof u.length=="number"){i&&(u=i);var v=0;return function(){return v>=u.length?{done:!0}:{done:!1,value:u[v++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function S(u,s){if(u){if(typeof u=="string")return b(u,s);var i=Object.prototype.toString.call(u).slice(8,-1);if(i==="Object"&&u.constructor&&(i=u.constructor.name),i==="Map"||i==="Set")return Array.from(u);if(i==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i))return b(u,s)}}function b(u,s){(s==null||s>u.length)&&(s=u.length);for(var i=0,v=new Array(s);i=A},C=function(T,A){return T<=A},g=s.split(" "),h=[],N=function(){var T=I.value,A=T.split(":");if(A.length===0)return 0;if(A.length===1)return h.push(function(M){return(M.name+" ("+M.variant+")").toLocaleLowerCase().includes(A[0].toLocaleLowerCase())}),0;if(A.length>2)return{v:function(){function M(D){return!1}return M}()};var x,E=i;if(A[1][A[1].length-1]==="-"?(E=C,x=Number(A[1].substring(0,A[1].length-1))):A[1][A[1].length-1]==="+"?(E=v,x=Number(A[1].substring(0,A[1].length-1))):x=Number(A[1]),isNaN(x))return{v:function(){function M(D){return!1}return M}()};switch(A[0].toLocaleLowerCase()){case"l":case"life":case"lifespan":h.push(function(M){return E(M.lifespan,x)});break;case"e":case"end":case"endurance":h.push(function(M){return E(M.endurance,x)});break;case"m":case"mat":case"maturation":h.push(function(M){return E(M.maturation,x)});break;case"pr":case"prod":case"production":h.push(function(M){return E(M.production,x)});break;case"y":case"yield":h.push(function(M){return E(M.yield,x)});break;case"po":case"pot":case"potency":h.push(function(M){return E(M.potency,x)});break;case"s":case"stock":case"c":case"count":case"a":case"amount":h.push(function(M){return E(M.amount,x)});break;default:return{v:function(){function M(D){return!1}return M}()}}},y,B=k(g),I;!(I=B()).done;)if(y=N(),y!==0&&y)return y.v;return function(w){for(var T=0,A=h;T=1?Number(E):1)}return A}()})]})]})}},33454:function(L,r,n){"use strict";r.__esModule=!0,r.ShuttleConsole=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.ShuttleConsole=function(){function V(k,S){var b=(0,a.useBackend)(S),p=b.act,l=b.data;return(0,e.createComponentVNode)(2,o.Window,{width:350,height:150,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Location",children:l.status?l.status:(0,e.createComponentVNode)(2,t.NoticeBox,{color:"red",children:"Shuttle Missing"})}),!!l.shuttle&&(!!l.docking_ports_len&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Send to ",children:l.docking_ports.map(function(c){return(0,e.createComponentVNode)(2,t.Button,{icon:"chevron-right",content:c.name,onClick:function(){function m(){return p("move",{move:c.id})}return m}()},c.name)})})||(0,e.createFragment)([(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",color:"red",children:(0,e.createComponentVNode)(2,t.NoticeBox,{color:"red",children:"Shuttle Locked"})}),!!l.admin_controlled&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Authorization",children:(0,e.createComponentVNode)(2,t.Button,{icon:"exclamation-circle",content:"Request Authorization",disabled:!l.status,onClick:function(){function c(){return p("request")}return c}()})})],0))]})})})})}return V}()},50451:function(L,r,n){"use strict";r.__esModule=!0,r.ShuttleManipulator=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.ShuttleManipulator=function(){function b(p,l){var c=(0,a.useLocalState)(l,"tabIndex",0),m=c[0],d=c[1],u=function(){function s(i){switch(i){case 0:return(0,e.createComponentVNode)(2,V);case 1:return(0,e.createComponentVNode)(2,k);case 2:return(0,e.createComponentVNode)(2,S);default:return"WE SHOULDN'T BE HERE!"}}return s}();return(0,e.createComponentVNode)(2,o.Window,{width:650,height:700,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Box,{fillPositionedParent:!0,children:[(0,e.createComponentVNode)(2,t.Tabs,{children:[(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:m===0,onClick:function(){function s(){return d(0)}return s}(),icon:"info-circle",children:"Status"},"Status"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:m===1,onClick:function(){function s(){return d(1)}return s}(),icon:"file-import",children:"Templates"},"Templates"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:m===2,onClick:function(){function s(){return d(2)}return s}(),icon:"tools",children:"Modification"},"Modification")]}),u(m)]})})})}return b}(),V=function(p,l){var c=(0,a.useBackend)(l),m=c.act,d=c.data,u=d.shuttles;return(0,e.createComponentVNode)(2,t.Box,{children:u.map(function(s){return(0,e.createComponentVNode)(2,t.Section,{title:s.name,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"ID",children:s.id}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Shuttle Timer",children:s.timeleft}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Shuttle Mode",children:s.mode}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Shuttle Status",children:s.status}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Actions",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Jump To",icon:"location-arrow",onClick:function(){function i(){return m("jump_to",{type:"mobile",id:s.id})}return i}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Fast Travel",icon:"fast-forward",onClick:function(){function i(){return m("fast_travel",{id:s.id})}return i}()})]})]})},s.name)})})},k=function(p,l){var c=(0,a.useBackend)(l),m=c.act,d=c.data,u=d.templates_tabs,s=d.existing_shuttle,i=d.templates;return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Tabs,{children:u.map(function(v){return(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:v===s.id,icon:"file",onClick:function(){function C(){return m("select_template_category",{cat:v})}return C}(),children:v},v)})}),!!s&&i[s.id].templates.map(function(v){return(0,e.createComponentVNode)(2,t.Section,{title:v.name,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[v.description&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Description",children:v.description}),v.admin_notes&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Admin Notes",children:v.admin_notes}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Actions",children:(0,e.createComponentVNode)(2,t.Button,{content:"Load Template",icon:"download",onClick:function(){function C(){return m("select_template",{shuttle_id:v.shuttle_id})}return C}()})})]})},v.name)})]})},S=function(p,l){var c=(0,a.useBackend)(l),m=c.act,d=c.data,u=d.existing_shuttle,s=d.selected;return(0,e.createComponentVNode)(2,t.Box,{children:[u?(0,e.createComponentVNode)(2,t.Section,{title:"Selected Shuttle: "+u.name,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:u.status}),u.timer&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Timer",children:u.timeleft}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Actions",children:(0,e.createComponentVNode)(2,t.Button,{content:"Jump To",icon:"location-arrow",onClick:function(){function i(){return m("jump_to",{type:"mobile",id:u.id})}return i}()})})]})}):(0,e.createComponentVNode)(2,t.Section,{title:"Selected Shuttle: None"}),s?(0,e.createComponentVNode)(2,t.Section,{title:"Selected Template: "+s.name,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[s.description&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Description",children:s.description}),s.admin_notes&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Admin Notes",children:s.admin_notes}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Actions",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Preview",icon:"eye",onClick:function(){function i(){return m("preview",{shuttle_id:s.shuttle_id})}return i}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Load",icon:"download",onClick:function(){function i(){return m("load",{shuttle_id:s.shuttle_id})}return i}()})]})]})}):(0,e.createComponentVNode)(2,t.Section,{title:"Selected Template: None"})]})}},99050:function(L,r,n){"use strict";r.__esModule=!0,r.Sleeper=void 0;var e=n(96524),a=n(36121),t=n(17899),o=n(24674),f=n(45493),V=[["good","Alive"],["average","Critical"],["bad","DEAD"]],k=[["Resp.","oxyLoss"],["Toxin","toxLoss"],["Brute","bruteLoss"],["Burn","fireLoss"]],S={average:[.25,.5],bad:[.5,1/0]},b=["bad","average","average","good","average","average","bad"],p=r.Sleeper=function(){function i(v,C){var g=(0,t.useBackend)(C),h=g.act,N=g.data,y=N.hasOccupant,B=y?(0,e.createComponentVNode)(2,l):(0,e.createComponentVNode)(2,s);return(0,e.createComponentVNode)(2,f.Window,{width:550,height:760,children:(0,e.createComponentVNode)(2,f.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:B}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,d)})]})})})}return i}(),l=function(v,C){var g=(0,t.useBackend)(C),h=g.act,N=g.data,y=N.occupant;return(0,e.createFragment)([(0,e.createComponentVNode)(2,c),(0,e.createComponentVNode)(2,m),(0,e.createComponentVNode)(2,u)],4)},c=function(v,C){var g=(0,t.useBackend)(C),h=g.act,N=g.data,y=N.occupant,B=N.auto_eject_dead;return(0,e.createComponentVNode)(2,o.Section,{title:"Occupant",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Box,{color:"label",inline:!0,children:"Auto-eject if dead:\xA0"}),(0,e.createComponentVNode)(2,o.Button,{icon:B?"toggle-on":"toggle-off",selected:B,content:B?"On":"Off",onClick:function(){function I(){return h("auto_eject_dead_"+(B?"off":"on"))}return I}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"user-slash",content:"Eject",onClick:function(){function I(){return h("ejectify")}return I}()})],4),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Name",children:y.name}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Health",children:(0,e.createComponentVNode)(2,o.ProgressBar,{min:"0",max:y.maxHealth,value:y.health/y.maxHealth,ranges:{good:[.5,1/0],average:[0,.5],bad:[-1/0,0]},children:(0,a.round)(y.health,0)})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Status",color:V[y.stat][0],children:V[y.stat][1]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Temperature",children:(0,e.createComponentVNode)(2,o.ProgressBar,{min:"0",max:y.maxTemp,value:y.bodyTemperature/y.maxTemp,color:b[y.temperatureSuitability+3],children:[(0,a.round)(y.btCelsius,0),"\xB0C,",(0,a.round)(y.btFaren,0),"\xB0F"]})}),!!y.hasBlood&&(0,e.createFragment)([(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Blood Level",children:(0,e.createComponentVNode)(2,o.ProgressBar,{min:"0",max:y.bloodMax,value:y.bloodLevel/y.bloodMax,ranges:{bad:[-1/0,.6],average:[.6,.9],good:[.6,1/0]},children:[y.bloodPercent,"%, ",y.bloodLevel,"cl"]})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Pulse",verticalAlign:"middle",children:[y.pulse," BPM"]})],4)]})})},m=function(v,C){var g=(0,t.useBackend)(C),h=g.data,N=h.occupant;return(0,e.createComponentVNode)(2,o.Section,{title:"Occupant Damage",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:k.map(function(y,B){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:y[0],children:(0,e.createComponentVNode)(2,o.ProgressBar,{min:"0",max:"100",value:N[y[1]]/100,ranges:S,children:(0,a.round)(N[y[1]],0)},B)},B)})})})},d=function(v,C){var g=(0,t.useBackend)(C),h=g.act,N=g.data,y=N.hasOccupant,B=N.isBeakerLoaded,I=N.beakerMaxSpace,w=N.beakerFreeSpace,T=N.dialysis,A=T&&w>0;return(0,e.createComponentVNode)(2,o.Section,{title:"Dialysis",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{disabled:!B||w<=0||!y,selected:A,icon:A?"toggle-on":"toggle-off",content:A?"Active":"Inactive",onClick:function(){function x(){return h("togglefilter")}return x}()}),(0,e.createComponentVNode)(2,o.Button,{disabled:!B,icon:"eject",content:"Eject",onClick:function(){function x(){return h("removebeaker")}return x}()})],4),children:B?(0,e.createComponentVNode)(2,o.LabeledList,{children:(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Remaining Space",children:(0,e.createComponentVNode)(2,o.ProgressBar,{min:"0",max:I,value:w/I,ranges:{good:[.5,1/0],average:[.25,.5],bad:[-1/0,.25]},children:[w,"u"]})})}):(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"No beaker loaded."})})},u=function(v,C){var g=(0,t.useBackend)(C),h=g.act,N=g.data,y=N.occupant,B=N.chemicals,I=N.maxchem,w=N.amounts;return(0,e.createComponentVNode)(2,o.Section,{title:"Occupant Chemicals",children:B.map(function(T,A){var x="",E;return T.overdosing?(x="bad",E=(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:[(0,e.createComponentVNode)(2,o.Icon,{name:"exclamation-circle"}),"\xA0 Overdosing!"]})):T.od_warning&&(x="average",E=(0,e.createComponentVNode)(2,o.Box,{color:"average",children:[(0,e.createComponentVNode)(2,o.Icon,{name:"exclamation-triangle"}),"\xA0 Close to overdosing"]})),(0,e.createComponentVNode)(2,o.Box,{backgroundColor:"rgba(0, 0, 0, 0.33)",mb:"0.5rem",children:(0,e.createComponentVNode)(2,o.Section,{title:T.title,level:"3",mx:"0",lineHeight:"18px",buttons:E,children:(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.ProgressBar,{min:"0",max:I,value:T.occ_amount/I,color:x,title:"Amount of chemicals currently inside the occupant / Total amount injectable by this machine",mr:"0.5rem",children:[T.pretty_amount,"/",I,"u"]}),w.map(function(M,D){return(0,e.createComponentVNode)(2,o.Button,{disabled:!T.injectable||T.occ_amount+M>I||y.stat===2,icon:"syringe",content:"Inject "+M+"u",title:"Inject "+M+"u of "+T.title+" into the occupant",mb:"0",height:"19px",onClick:function(){function P(){return h("chemical",{chemid:T.id,amount:M})}return P}()},D)})]})})},A)})})},s=function(v,C){return(0,e.createComponentVNode)(2,o.Section,{fill:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,align:"center",color:"label",children:[(0,e.createComponentVNode)(2,o.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,e.createVNode)(1,"br"),"No occupant detected."]})})})}},37763:function(L,r,n){"use strict";r.__esModule=!0,r.SlotMachine=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.SlotMachine=function(){function V(k,S){var b=(0,a.useBackend)(S),p=b.act,l=b.data;if(l.money===null)return(0,e.createComponentVNode)(2,o.Window,{width:350,height:90,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:[(0,e.createComponentVNode)(2,t.Box,{children:"Could not scan your card or could not find account!"}),(0,e.createComponentVNode)(2,t.Box,{children:"Please wear or hold your ID and try again."})]})})});var c;return l.plays===1?c=l.plays+" player has tried their luck today!":c=l.plays+" players have tried their luck today!",(0,e.createComponentVNode)(2,o.Window,{width:300,height:151,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:[(0,e.createComponentVNode)(2,t.Box,{lineHeight:2,children:c}),(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Credits Remaining",children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:l.money})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"10 credits to spin",children:(0,e.createComponentVNode)(2,t.Button,{icon:"coins",disabled:l.working,content:l.working?"Spinning...":"Spin",onClick:function(){function m(){return p("spin")}return m}()})})]}),(0,e.createComponentVNode)(2,t.Box,{bold:!0,lineHeight:2,color:l.resultlvl,children:l.result})]})})})}return V}()},26654:function(L,r,n){"use strict";r.__esModule=!0,r.Smartfridge=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.Smartfridge=function(){function V(k,S){var b=(0,a.useBackend)(S),p=b.act,l=b.data,c=l.secure,m=l.can_dry,d=l.drying,u=l.contents;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:500,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[!!c&&(0,e.createComponentVNode)(2,t.NoticeBox,{children:"Secure Access: Please have your identification ready."}),(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:m?"Drying rack":"Contents",buttons:!!m&&(0,e.createComponentVNode)(2,t.Button,{width:4,icon:d?"power-off":"times",content:d?"On":"Off",selected:d,onClick:function(){function s(){return p("drying")}return s}()}),children:[!u&&(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,grow:!0,textAlign:"center",align:"center",color:"average",children:[(0,e.createComponentVNode)(2,t.Icon.Stack,{children:[(0,e.createComponentVNode)(2,t.Icon,{name:"cookie-bite",size:5,color:"brown"}),(0,e.createComponentVNode)(2,t.Icon,{name:"slash",size:5,color:"red"})]}),(0,e.createVNode)(1,"br"),"No products loaded."]})}),!!u&&u.slice().sort(function(s,i){return s.display_name.localeCompare(i.display_name)}).map(function(s){return(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"55%",children:s.display_name}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:"25%",children:["(",s.quantity," in stock)"]}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:13,children:[(0,e.createComponentVNode)(2,t.Button,{width:3,icon:"arrow-down",tooltip:"Dispense one.",content:"1",onClick:function(){function i(){return p("vend",{index:s.vend,amount:1})}return i}()}),(0,e.createComponentVNode)(2,t.NumberInput,{width:"40px",minValue:0,value:0,maxValue:s.quantity,step:1,stepPixelSize:3,onChange:function(){function i(v,C){return p("vend",{index:s.vend,amount:C})}return i}()}),(0,e.createComponentVNode)(2,t.Button,{width:4,icon:"arrow-down",content:"All",tooltip:"Dispense all.",tooltipPosition:"bottom-start",onClick:function(){function i(){return p("vend",{index:s.vend,amount:s.quantity})}return i}()})]})]},s)})]})]})})})}return V}()},71124:function(L,r,n){"use strict";r.__esModule=!0,r.Smes=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(92986),f=n(45493),V=1e3,k=r.Smes=function(){function S(b,p){var l=(0,a.useBackend)(p),c=l.act,m=l.data,d=m.capacityPercent,u=m.capacity,s=m.charge,i=m.inputAttempt,v=m.inputting,C=m.inputLevel,g=m.inputLevelMax,h=m.inputAvailable,N=m.outputPowernet,y=m.outputAttempt,B=m.outputting,I=m.outputLevel,w=m.outputLevelMax,T=m.outputUsed,A=d>=100&&"good"||v&&"average"||"bad",x=B&&"good"||s>0&&"average"||"bad";return(0,e.createComponentVNode)(2,f.Window,{width:340,height:345,children:(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Section,{title:"Stored Energy",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:d*.01,ranges:{good:[.5,1/0],average:[.15,.5],bad:[-1/0,.15]}})}),(0,e.createComponentVNode)(2,t.Section,{title:"Input",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Charge Mode",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:i?"sync-alt":"times",selected:i,onClick:function(){function E(){return c("tryinput")}return E}(),children:i?"Auto":"Off"}),children:(0,e.createComponentVNode)(2,t.Box,{color:A,children:d>=100&&"Fully Charged"||v&&"Charging"||"Not Charging"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Target Input",children:(0,e.createComponentVNode)(2,t.Stack,{inline:!0,width:"100%",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"fast-backward",disabled:C===0,onClick:function(){function E(){return c("input",{target:"min"})}return E}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"backward",disabled:C===0,onClick:function(){function E(){return c("input",{adjust:-1e4})}return E}()})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Slider,{value:C/V,fillValue:h/V,minValue:0,maxValue:g/V,step:5,stepPixelSize:4,format:function(){function E(M){return(0,o.formatPower)(M*V,1)}return E}(),onChange:function(){function E(M,D){return c("input",{target:D*V})}return E}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"forward",disabled:C===g,onClick:function(){function E(){return c("input",{adjust:1e4})}return E}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",disabled:C===g,onClick:function(){function E(){return c("input",{target:"max"})}return E}()})]})]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Available",children:(0,o.formatPower)(h)})]})}),(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Output",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Output Mode",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:y?"power-off":"times",selected:y,onClick:function(){function E(){return c("tryoutput")}return E}(),children:y?"On":"Off"}),children:(0,e.createComponentVNode)(2,t.Box,{color:x,children:N?B?"Sending":s>0?"Not Sending":"No Charge":"Not Connected"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Target Output",children:(0,e.createComponentVNode)(2,t.Stack,{inline:!0,width:"100%",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"fast-backward",disabled:I===0,onClick:function(){function E(){return c("output",{target:"min"})}return E}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"backward",disabled:I===0,onClick:function(){function E(){return c("output",{adjust:-1e4})}return E}()})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Slider,{value:I/V,minValue:0,maxValue:w/V,step:5,stepPixelSize:4,format:function(){function E(M){return(0,o.formatPower)(M*V,1)}return E}(),onChange:function(){function E(M,D){return c("output",{target:D*V})}return E}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"forward",disabled:I===w,onClick:function(){function E(){return c("output",{adjust:1e4})}return E}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",disabled:I===w,onClick:function(){function E(){return c("output",{target:"max"})}return E}()})]})]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Outputting",children:(0,o.formatPower)(T)})]})})]})})})}return S}()},21786:function(L,r,n){"use strict";r.__esModule=!0,r.SolarControl=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.SolarControl=function(){function V(k,S){var b=(0,a.useBackend)(S),p=b.act,l=b.data,c=0,m=1,d=2,u=l.generated,s=l.generated_ratio,i=l.tracking_state,v=l.tracking_rate,C=l.connected_panels,g=l.connected_tracker,h=l.cdir,N=l.direction,y=l.rotating_direction;return(0,e.createComponentVNode)(2,o.Window,{width:490,height:277,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Status",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"sync",content:"Scan for new hardware",onClick:function(){function B(){return p("refresh")}return B}()}),children:(0,e.createComponentVNode)(2,t.Grid,{children:[(0,e.createComponentVNode)(2,t.Grid.Column,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Solar tracker",color:g?"good":"bad",children:g?"OK":"N/A"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Solar panels",color:C>0?"good":"bad",children:C})]})}),(0,e.createComponentVNode)(2,t.Grid.Column,{size:2,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power output",children:(0,e.createComponentVNode)(2,t.ProgressBar,{ranges:{good:[.66,1/0],average:[.33,.66],bad:[-1/0,.33]},minValue:0,maxValue:1,value:s,children:u+" W"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Panel orientation",children:[h,"\xB0 (",N,")"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Tracker rotation",children:[i===d&&(0,e.createComponentVNode)(2,t.Box,{children:" Automated "}),i===m&&(0,e.createComponentVNode)(2,t.Box,{children:[" ",v,"\xB0/h (",y,")"," "]}),i===c&&(0,e.createComponentVNode)(2,t.Box,{children:" Tracker offline "})]})]})})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Controls",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Panel orientation",children:[i!==d&&(0,e.createComponentVNode)(2,t.NumberInput,{unit:"\xB0",step:1,stepPixelSize:1,minValue:0,maxValue:359,value:h,onDrag:function(){function B(I,w){return p("cdir",{cdir:w})}return B}()}),i===d&&(0,e.createComponentVNode)(2,t.Box,{lineHeight:"19px",children:" Automated "})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Tracker status",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"times",content:"Off",selected:i===c,onClick:function(){function B(){return p("track",{track:c})}return B}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"clock-o",content:"Timed",selected:i===m,onClick:function(){function B(){return p("track",{track:m})}return B}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"sync",content:"Auto",selected:i===d,disabled:!g,onClick:function(){function B(){return p("track",{track:d})}return B}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Tracker rotation",children:[i===m&&(0,e.createComponentVNode)(2,t.NumberInput,{unit:"\xB0/h",step:1,stepPixelSize:1,minValue:-7200,maxValue:7200,value:v,format:function(){function B(I){var w=Math.sign(I)>0?"+":"-";return w+Math.abs(I)}return B}(),onDrag:function(){function B(I,w){return p("tdir",{tdir:w})}return B}()}),i===c&&(0,e.createComponentVNode)(2,t.Box,{lineHeight:"19px",children:" Tracker offline "}),i===d&&(0,e.createComponentVNode)(2,t.Box,{lineHeight:"19px",children:" Automated "})]})]})})]})})}return V}()},31202:function(L,r,n){"use strict";r.__esModule=!0,r.SpawnersMenu=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.SpawnersMenu=function(){function V(k,S){var b=(0,a.useBackend)(S),p=b.act,l=b.data,c=l.spawners||[];return(0,e.createComponentVNode)(2,o.Window,{width:700,height:600,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Section,{children:c.map(function(m){return(0,e.createComponentVNode)(2,t.Section,{mb:.5,title:m.name+" ("+m.amount_left+" left)",level:2,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{icon:"chevron-circle-right",content:"Jump",onClick:function(){function d(){return p("jump",{ID:m.uids})}return d}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"chevron-circle-right",content:"Spawn",onClick:function(){function d(){return p("spawn",{ID:m.uids})}return d}()})],4),children:[(0,e.createComponentVNode)(2,t.Box,{style:{"white-space":"pre-wrap"},mb:1,fontSize:"16px",children:m.desc}),!!m.fluff&&(0,e.createComponentVNode)(2,t.Box,{style:{"white-space":"pre-wrap"},textColor:"#878787",fontSize:"14px",children:m.fluff}),!!m.important_info&&(0,e.createComponentVNode)(2,t.Box,{style:{"white-space":"pre-wrap"},mt:1,bold:!0,color:"red",fontSize:"18px",children:m.important_info})]},m.name)})})})})}return V}()},84800:function(L,r,n){"use strict";r.__esModule=!0,r.SpecMenu=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.SpecMenu=function(){function p(l,c){return(0,e.createComponentVNode)(2,o.Window,{width:1100,height:600,theme:"nologo",children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,V),(0,e.createComponentVNode)(2,k),(0,e.createComponentVNode)(2,S),(0,e.createComponentVNode)(2,b)]})})})}return p}(),V=function(l,c){var m=(0,a.useBackend)(c),d=m.act,u=m.data,s=u.subclasses;return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,basis:"25%",children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Hemomancer",buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Choose",onClick:function(){function i(){return d("hemomancer")}return i}()}),children:[(0,e.createVNode)(1,"h3",null,"Focuses on blood magic and the manipulation of blood around you.",16),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Vampiric claws",16),(0,e.createTextVNode)(": Unlocked at 150 blood, allows you to summon a robust pair of claws that attack rapidly, drain a targets blood, and heal you.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Blood Barrier",16),(0,e.createTextVNode)(": Unlocked at 250 blood, allows you to select two turfs and create a wall between them.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Blood tendrils",16),(0,e.createTextVNode)(": Unlocked at 250 blood, allows you to slow everyone in a targeted 3x3 area after a short delay.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Sanguine pool",16),(0,e.createTextVNode)(": Unlocked at 400 blood, allows you to travel at high speeds for a short duration. Doing this leaves behind blood splatters. You can move through anything but walls and space when doing this.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Predator senses",16),(0,e.createTextVNode)(": Unlocked at 600 blood, allows you to sniff out anyone within the same sector as you.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Blood eruption",16),(0,e.createTextVNode)(": Unlocked at 800 blood, allows you to manipulate all nearby blood splatters, in 4 tiles around you, into spikes that impale anyone stood ontop of them.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Full power",16),(0,e.createComponentVNode)(2,t.Divider),(0,e.createVNode)(1,"b",null,"The blood bringers rite",16),(0,e.createTextVNode)(": When toggled you will rapidly drain the blood of everyone who is nearby and use it to heal yourself slightly and remove any incapacitating effects rapidly.")],4)]})})},k=function(l,c){var m=(0,a.useBackend)(c),d=m.act,u=m.data,s=u.subclasses;return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,basis:"25%",children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Umbrae",buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Choose",onClick:function(){function i(){return d("umbrae")}return i}()}),children:[(0,e.createVNode)(1,"h3",null,"Focuses on darkness, stealth ambushing and mobility.",16),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Cloak of darkness",16),(0,e.createTextVNode)(": Unlocked at 150 blood, when toggled, allows you to become nearly invisible and move rapidly when in dark regions. While active, burn damage is more effective against you.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Shadow anchor",16),(0,e.createTextVNode)(": Unlocked at 250 blood, casting it will create an anchor at the cast location after a short delay. If you then cast the ability again, you are teleported back to the anchor. If you do not cast again within 2 minutes, you will do a fake recall, causing a clone to appear at the anchor and making yourself invisible. It will not teleport you between Z levels.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Shadow snare",16),(0,e.createTextVNode)(": Unlocked at 250 blood, allows you to summon a trap that when crossed blinds and ensnares the victim. This trap is hard to see, but withers in the light.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Dark passage",16),(0,e.createTextVNode)(": Unlocked at 400 blood, allows you to target a turf on screen, you will then teleport to that turf.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Extinguish",16),(0,e.createTextVNode)(": Unlocked at 600 blood, allows you to snuff out nearby electronic light sources and glowshrooms.")],4),(0,e.createVNode)(1,"b",null,"Shadow boxing",16),": Unlocked at 800 blood, sends out shadow clones towards a target, damaging them while you remain in range.",(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Full power",16),(0,e.createComponentVNode)(2,t.Divider),(0,e.createVNode)(1,"b",null,"Eternal darkness",16),(0,e.createTextVNode)(": When toggled, you consume yourself in unholy darkness, only the strongest of lights will be able to see through it. Inside the radius, nearby creatures will freeze and energy projectiles will deal less damage.")],4),(0,e.createVNode)(1,"p",null,"In addition, you also gain permanent X-ray vision.",16)]})})},S=function(l,c){var m=(0,a.useBackend)(c),d=m.act,u=m.data,s=u.subclasses;return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,basis:"25%",children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Gargantua",buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Choose",onClick:function(){function i(){return d("gargantua")}return i}()}),children:[(0,e.createVNode)(1,"h3",null,"Focuses on tenacity and melee damage.",16),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Rejuvenate",16),(0,e.createTextVNode)(": Will heal you at an increased rate based on how much damage you have taken.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Blood swell",16),(0,e.createTextVNode)(": Unlocked at 150 blood, increases your resistance to physical damage, stuns and stamina for 30 seconds. While it is active you cannot fire guns.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Seismic stomp",16),(0,e.createTextVNode)(": Unlocked at 250 blood, allows you to stomp the ground to send out a shockwave, knocking people back.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Blood rush",16),(0,e.createTextVNode)(": Unlocked at 250 blood, gives you a short speed boost when cast.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Blood swell II",16),(0,e.createTextVNode)(": Unlocked at 400 blood, increases all melee damage by 10.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Overwhelming force",16),(0,e.createTextVNode)(": Unlocked at 600 blood, when toggled, if you bump into a door that you do not have access to, it will force it open. In addition, you cannot be pushed or pulled while it is active.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Demonic grasp",16),(0,e.createTextVNode)(": Unlocked at 800 blood, allows you to send out a demonic hand to snare someone. If you are on disarm/grab intent you will push/pull the target, respectively.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Charge",16),(0,e.createTextVNode)(": Unlocked at 800 blood, you gain the ability to charge at a target. Destroying and knocking back pretty much anything you collide with.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Full Power",16),(0,e.createComponentVNode)(2,t.Divider),(0,e.createVNode)(1,"b",null,"Desecrated Duel",16),(0,e.createTextVNode)(": Leap towards a visible enemy, creating an arena upon landing, infusing you with increased regeneration, and granting you resistance to internal damages.")],4)]})})},b=function(l,c){var m=(0,a.useBackend)(c),d=m.act,u=m.data,s=u.subclasses;return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,basis:"25%",children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Dantalion",buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Choose",onClick:function(){function i(){return d("dantalion")}return i}()}),children:[(0,e.createVNode)(1,"h3",null,"Focuses on thralling and illusions.",16),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Enthrall",16),(0,e.createTextVNode)(": Unlocked at 150 blood, Thralls your target to your will, requires you to stand still. Does not work on mindshielded or already enthralled/mindslaved people.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Thrall cap",16),(0,e.createTextVNode)(": You can only thrall a max of 1 person at a time. This can be increased at 400 blood, 600 blood and at full power to a max of 4 thralls.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Thrall commune",16),(0,e.createTextVNode)(": Unlocked at 150 blood, Allows you to talk to your thralls, your thralls can talk back in the same way.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Subspace swap",16),(0,e.createTextVNode)(": Unlocked at 250 blood, allows you to swap positions with a target.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Pacify",16),(0,e.createTextVNode)(": Unlocked at 250 blood, allows you to pacify a target, preventing them from causing harm for 40 seconds.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Decoy",16),(0,e.createTextVNode)(": Unlocked at 400 blood, briefly turn invisible and send out an illusion to fool everyone nearby.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Rally thralls",16),(0,e.createTextVNode)(": Unlocked at 600 blood, removes all incapacitating effects from nearby thralls.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Blood bond",16),(0,e.createTextVNode)(": Unlocked at 800 blood, when cast, all nearby thralls become linked to you. If anyone in the network takes damage, it is shared equally between everyone in the network. If a thrall goes out of range, they will be removed from the network.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Full Power",16),(0,e.createComponentVNode)(2,t.Divider),(0,e.createVNode)(1,"b",null,"Mass Hysteria",16),(0,e.createTextVNode)(": Casts a powerful illusion that blinds and then makes everyone nearby perceive others as random animals.")],4)]})})}},46501:function(L,r,n){"use strict";r.__esModule=!0,r.StationAlertConsoleContent=r.StationAlertConsole=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.StationAlertConsole=function(){function k(){return(0,e.createComponentVNode)(2,o.Window,{width:325,height:500,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,V)})})}return k}(),V=r.StationAlertConsoleContent=function(){function k(S,b){var p=(0,a.useBackend)(b),l=p.data,c=l.alarms||[],m=c.Fire||[],d=c.Atmosphere||[],u=c.Power||[];return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{title:"Fire Alarms",children:(0,e.createVNode)(1,"ul",null,[m.length===0&&(0,e.createVNode)(1,"li","color-good","Systems Nominal",16),m.map(function(s){return(0,e.createVNode)(1,"li","color-average",s,0,null,s)})],0)}),(0,e.createComponentVNode)(2,t.Section,{title:"Atmospherics Alarms",children:(0,e.createVNode)(1,"ul",null,[d.length===0&&(0,e.createVNode)(1,"li","color-good","Systems Nominal",16),d.map(function(s){return(0,e.createVNode)(1,"li","color-average",s,0,null,s)})],0)}),(0,e.createComponentVNode)(2,t.Section,{title:"Power Alarms",children:(0,e.createVNode)(1,"ul",null,[u.length===0&&(0,e.createVNode)(1,"li","color-good","Systems Nominal",16),u.map(function(s){return(0,e.createVNode)(1,"li","color-average",s,0,null,s)})],0)})],4)}return k}()},18565:function(L,r,n){"use strict";r.__esModule=!0,r.StationTraitsPanel=void 0;var e=n(96524),a=n(50640),t=n(67765),o=n(17899),f=n(24674),V=n(45493),k=function(l){return l[l.SetupFutureStationTraits=0]="SetupFutureStationTraits",l[l.ViewStationTraits=1]="ViewStationTraits",l}(k||{}),S=function(c,m){var d=(0,o.useBackend)(m),u=d.act,s=d.data,i=s.future_station_traits,v=(0,o.useLocalState)(m,"selectedFutureTrait",null),C=v[0],g=v[1],h=Object.fromEntries(s.valid_station_traits.map(function(y){return[y.name,y.path]})),N=Object.keys(h);return N.sort(),(0,e.createComponentVNode)(2,f.Box,{children:[(0,e.createComponentVNode)(2,f.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,f.Dropdown,{displayText:!C&&"Select trait to add...",onSelected:g,options:N,selected:C,width:"100%"})}),(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Button,{color:"green",icon:"plus",onClick:function(){function y(){if(C){var B=h[C],I=[B];if(i){var w,T=i.map(function(A){return A.path});if(T.indexOf(B)!==-1)return;I=(w=I).concat.apply(w,T)}u("setup_future_traits",{station_traits:I})}}return y}(),children:"Add"})})]}),(0,e.createComponentVNode)(2,f.Divider),Array.isArray(i)?i.length>0?(0,e.createComponentVNode)(2,f.Stack,{vertical:!0,fill:!0,children:i.map(function(y){return(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,children:y.name}),(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Button,{color:"red",icon:"times",onClick:function(){function B(){u("setup_future_traits",{station_traits:(0,a.filterMap)(i,function(I){if(I.path!==y.path)return I.path})})}return B}(),children:"Delete"})})]})},y.path)})}):(0,e.createComponentVNode)(2,f.Box,{textAlign:"center",children:[(0,e.createComponentVNode)(2,f.Box,{children:"No station traits will run next round."}),(0,e.createComponentVNode)(2,f.Button,{mt:1,fluid:!0,color:"good",icon:"times",tooltip:"The next round will roll station traits randomly, just like normal",onClick:function(){function y(){return u("clear_future_traits")}return y}(),children:"Run Station Traits Normally"})]}):(0,e.createComponentVNode)(2,f.Box,{textAlign:"center",children:[(0,e.createComponentVNode)(2,f.Box,{children:"No future station traits are planned."}),(0,e.createComponentVNode)(2,f.Button,{mt:1,fluid:!0,color:"red",icon:"times",onClick:function(){function y(){return u("setup_future_traits",{station_traits:[]})}return y}(),children:"Prevent station traits from running next round"})]})]})},b=function(c,m){var d=(0,o.useBackend)(m),u=d.act,s=d.data;return s.current_traits.length>0?(0,e.createComponentVNode)(2,f.Stack,{vertical:!0,fill:!0,children:s.current_traits.map(function(i){return(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,children:i.name}),(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Button.Confirm,{content:"Revert",color:"red",disabled:s.too_late_to_revert||!i.can_revert,tooltip:!i.can_revert&&"This trait is not revertable."||s.too_late_to_revert&&"It's too late to revert station traits, the round has already started.",icon:"times",onClick:function(){function v(){return u("revert",{ref:i.ref})}return v}()})})]})},i.ref)})}):(0,e.createComponentVNode)(2,f.Box,{textAlign:"center",children:"There are no active station traits."})},p=r.StationTraitsPanel=function(){function l(c,m){var d=(0,o.useLocalState)(m,"station_traits_tab",k.ViewStationTraits),u=d[0],s=d[1],i;switch(u){case k.SetupFutureStationTraits:i=(0,e.createComponentVNode)(2,S);break;case k.ViewStationTraits:i=(0,e.createComponentVNode)(2,b);break;default:(0,t.exhaustiveCheck)(u)}return(0,e.createComponentVNode)(2,V.Window,{title:"Modify Station Traits",height:350,width:350,children:(0,e.createComponentVNode)(2,V.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,f.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Tabs,{children:[(0,e.createComponentVNode)(2,f.Tabs.Tab,{icon:"eye",selected:u===k.ViewStationTraits,onClick:function(){function v(){return s(k.ViewStationTraits)}return v}(),children:"View"}),(0,e.createComponentVNode)(2,f.Tabs.Tab,{icon:"edit",selected:u===k.SetupFutureStationTraits,onClick:function(){function v(){return s(k.SetupFutureStationTraits)}return v}(),children:"Edit"})]})}),(0,e.createComponentVNode)(2,f.Stack.Item,{m:0,children:[(0,e.createComponentVNode)(2,f.Divider),i]})]})})})}return l}()},95147:function(L,r,n){"use strict";r.__esModule=!0,r.StripMenu=void 0;var e=n(96524),a=n(50640),t=n(17442),o=n(17899),f=n(24674),V=n(45493),k=5,S=5,b="64px",p=function(i){return i[0]+"/"+i[1]},l=function(i){var v=i.align,C=i.children;return(0,e.createComponentVNode)(2,f.Box,{style:{position:"absolute",left:v==="left"?"6px":"48px","text-align":v,"text-shadow":"2px 2px 2px #000",top:"2px"},children:C})},c={enable_internals:{icon:"lungs",text:"Enable internals"},disable_internals:{icon:"lungs",text:"Disable internals"},enable_lock:{icon:"lock",text:"Enable lock"},disable_lock:{icon:"unlock",text:"Disable lock"},suit_sensors:{icon:"tshirt",text:"Adjust suit sensors"},remove_accessory:{icon:"medal",text:"Remove accessory"},dislodge_headpocket:{icon:"head-side-virus",text:"Dislodge headpocket"}},m={eyes:{displayName:"eyewear",gridSpot:p([1,0]),image:"inventory-glasses.png"},head:{displayName:"headwear",gridSpot:p([0,1]),image:"inventory-head.png"},mask:{displayName:"mask",gridSpot:p([1,1]),image:"inventory-mask.png"},pet_collar:{displayName:"collar",gridSpot:p([1,1]),image:"inventory-collar.png"},right_ear:{displayName:"right ear",gridSpot:p([0,2]),image:"inventory-ears.png"},left_ear:{displayName:"left ear",gridSpot:p([1,2]),image:"inventory-ears.png"},parrot_headset:{displayName:"headset",gridSpot:p([1,2]),image:"inventory-ears.png"},handcuffs:{displayName:"handcuffs",gridSpot:p([1,3])},legcuffs:{displayName:"legcuffs",gridSpot:p([1,4])},jumpsuit:{displayName:"uniform",gridSpot:p([2,0]),image:"inventory-uniform.png"},suit:{displayName:"suit",gridSpot:p([2,1]),image:"inventory-suit.png"},gloves:{displayName:"gloves",gridSpot:p([2,2]),image:"inventory-gloves.png"},right_hand:{displayName:"right hand",gridSpot:p([2,3]),image:"inventory-hand_r.png",additionalComponent:(0,e.createComponentVNode)(2,l,{align:"left",children:"R"})},left_hand:{displayName:"left hand",gridSpot:p([2,4]),image:"inventory-hand_l.png",additionalComponent:(0,e.createComponentVNode)(2,l,{align:"right",children:"L"})},shoes:{displayName:"shoes",gridSpot:p([3,1]),image:"inventory-shoes.png"},suit_storage:{displayName:"suit storage",gridSpot:p([4,0]),image:"inventory-suit_storage.png"},id:{displayName:"ID",gridSpot:p([4,1]),image:"inventory-id.png"},belt:{displayName:"belt",gridSpot:p([4,2]),image:"inventory-belt.png"},back:{displayName:"backpack",gridSpot:p([4,3]),image:"inventory-back.png"},left_pocket:{displayName:"left pocket",gridSpot:p([3,4]),image:"inventory-pocket.png"},right_pocket:{displayName:"right pocket",gridSpot:p([3,3]),image:"inventory-pocket.png"},pda:{displayName:"PDA",gridSpot:p([4,4]),image:"inventory-pda.png"}},d=function(s){return s[s.Completely=1]="Completely",s[s.Hidden=2]="Hidden",s}(d||{}),u=r.StripMenu=function(){function s(i,v){for(var C=(0,o.useBackend)(v),g=C.act,h=C.data,N=new Map,y=0,B=Object.keys(h.items);y=.01})},(0,a.sortBy)(function(T){return-T.amount})])(C.gases||[]),w=Math.max.apply(Math,[1].concat(I.map(function(T){return T.amount})));return(0,e.createComponentVNode)(2,S.Window,{width:550,height:185,children:(0,e.createComponentVNode)(2,S.Window.Content,{children:(0,e.createComponentVNode)(2,V.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,V.Stack.Item,{width:"270px",children:(0,e.createComponentVNode)(2,V.Section,{fill:!0,scrollable:!0,title:"Metrics",children:(0,e.createComponentVNode)(2,V.LabeledList,{children:[(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Integrity",children:(0,e.createComponentVNode)(2,V.ProgressBar,{value:h/100,ranges:{good:[.9,1/0],average:[.5,.9],bad:[-1/0,.5]}})}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Relative EER",children:(0,e.createComponentVNode)(2,V.ProgressBar,{value:N,minValue:0,maxValue:5e3,ranges:{good:[-1/0,5e3],average:[5e3,7e3],bad:[7e3,1/0]},children:(0,o.toFixed)(N)+" MeV/cm3"})}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Temperature",children:(0,e.createComponentVNode)(2,V.ProgressBar,{value:l(y),minValue:0,maxValue:l(1e4),ranges:{teal:[-1/0,l(80)],good:[l(80),l(373)],average:[l(373),l(1e3)],bad:[l(1e3),1/0]},children:(0,o.toFixed)(y)+" K"})}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Pressure",children:(0,e.createComponentVNode)(2,V.ProgressBar,{value:l(B),minValue:0,maxValue:l(5e4),ranges:{good:[l(1),l(300)],average:[-1/0,l(1e3)],bad:[l(1e3),1/0]},children:(0,o.toFixed)(B)+" kPa"})})]})})}),(0,e.createComponentVNode)(2,V.Stack.Item,{grow:!0,basis:0,children:(0,e.createComponentVNode)(2,V.Section,{fill:!0,scrollable:!0,title:"Gases",buttons:(0,e.createComponentVNode)(2,V.Button,{icon:"arrow-left",content:"Back",onClick:function(){function T(){return v("back")}return T}()}),children:(0,e.createComponentVNode)(2,V.LabeledList,{children:I.map(function(T){return(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:(0,k.getGasLabel)(T.name),children:(0,e.createComponentVNode)(2,V.ProgressBar,{color:(0,k.getGasColor)(T.name),value:T.amount,minValue:0,maxValue:w,children:(0,o.toFixed)(T.amount,2)+"%"})},T.name)})})})})]})})})}},30047:function(L,r,n){"use strict";r.__esModule=!0,r.SyndicateComputerSimple=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.SyndicateComputerSimple=function(){function V(k,S){var b=(0,a.useBackend)(S),p=b.act,l=b.data;return(0,e.createComponentVNode)(2,o.Window,{theme:"syndicate",width:400,height:400,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:l.rows.map(function(c){return(0,e.createComponentVNode)(2,t.Section,{title:c.title,buttons:(0,e.createComponentVNode)(2,t.Button,{content:c.buttontitle,disabled:c.buttondisabled,tooltip:c.buttontooltip,tooltipPosition:"left",onClick:function(){function m(){return p(c.buttonact)}return m}()}),children:[c.status,!!c.bullets&&(0,e.createComponentVNode)(2,t.Box,{children:c.bullets.map(function(m){return(0,e.createComponentVNode)(2,t.Box,{children:m},m)})})]},c.title)})})})}return V}()},28830:function(L,r,n){"use strict";r.__esModule=!0,r.TEG=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=function(S){return S.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1,")},V=r.TEG=function(){function k(S,b){var p=(0,a.useBackend)(b),l=p.act,c=p.data;return c.error?(0,e.createComponentVNode)(2,o.Window,{width:500,height:400,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Error",children:[c.error,(0,e.createComponentVNode)(2,t.Button,{icon:"circle",content:"Recheck",onClick:function(){function m(){return l("check")}return m}()})]})})}):(0,e.createComponentVNode)(2,o.Window,{width:500,height:400,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Cold Loop ("+c.cold_dir+")",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cold Inlet",children:[f(c.cold_inlet_temp)," K,"," ",f(c.cold_inlet_pressure)," kPa"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cold Outlet",children:[f(c.cold_outlet_temp)," K,"," ",f(c.cold_outlet_pressure)," kPa"]})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Hot Loop ("+c.hot_dir+")",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Hot Inlet",children:[f(c.hot_inlet_temp)," K,"," ",f(c.hot_inlet_pressure)," kPa"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Hot Outlet",children:[f(c.hot_outlet_temp)," K,"," ",f(c.hot_outlet_pressure)," kPa"]})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Power Output",children:[f(c.output_power)," W",!!c.warning_switched&&(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Warning: Cold inlet temperature exceeds hot inlet temperature."}),!!c.warning_cold_pressure&&(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Warning: Cold circulator inlet pressure is under 1,000 kPa."}),!!c.warning_hot_pressure&&(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Warning: Hot circulator inlet pressure is under 1,000 kPa."})]})]})})}return k}()},39903:function(L,r,n){"use strict";r.__esModule=!0,r.TachyonArrayContent=r.TachyonArray=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.TachyonArray=function(){function k(S,b){var p=(0,a.useBackend)(b),l=p.act,c=p.data,m=c.records,d=m===void 0?[]:m,u=c.explosion_target,s=c.toxins_tech,i=c.printing;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:600,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Shift's Target",children:u}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Current Toxins Level",children:s}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Administration",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"print",content:"Print All Logs",disabled:!d.length||i,align:"center",onClick:function(){function v(){return l("print_logs")}return v}()}),(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"trash",content:"Delete All Logs",disabled:!d.length,color:"bad",align:"center",onClick:function(){function v(){return l("delete_logs")}return v}()})]})]})}),d.length?(0,e.createComponentVNode)(2,V):(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No Records"})]})})}return k}(),V=r.TachyonArrayContent=function(){function k(S,b){var p=(0,a.useBackend)(b),l=p.act,c=p.data,m=c.records,d=m===void 0?[]:m;return(0,e.createComponentVNode)(2,t.Section,{title:"Logged Explosions",children:(0,e.createComponentVNode)(2,t.Flex,{children:(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Table,{m:"0.5rem",children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Time"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Epicenter"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Actual Size"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Theoretical Size"})]}),d.map(function(u){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:u.logged_time}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:u.epicenter}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:u.actual_size_message}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:u.theoretical_size_message}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"trash",content:"Delete",color:"bad",onClick:function(){function s(){return l("delete_record",{index:u.index})}return s}()})})]},u.index)})]})})})})}return k}()},17068:function(L,r,n){"use strict";r.__esModule=!0,r.Tank=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.Tank=function(){function V(k,S){var b=(0,a.useBackend)(S),p=b.act,l=b.data,c;return l.has_mask?c=(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Mask",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,width:"76%",icon:l.connected?"check":"times",content:l.connected?"Internals On":"Internals Off",selected:l.connected,onClick:function(){function m(){return p("internals")}return m}()})}):c=(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Mask",color:"red",children:"No Mask Equipped"}),(0,e.createComponentVNode)(2,o.Window,{width:325,height:135,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Tank Pressure",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:l.tankPressure/1013,ranges:{good:[.35,1/0],average:[.15,.35],bad:[-1/0,.15]},children:l.tankPressure+" kPa"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Release Pressure",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"fast-backward",disabled:l.ReleasePressure===l.minReleasePressure,tooltip:"Min",onClick:function(){function m(){return p("pressure",{pressure:"min"})}return m}()}),(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,value:parseFloat(l.releasePressure),width:"65px",unit:"kPa",minValue:l.minReleasePressure,maxValue:l.maxReleasePressure,onChange:function(){function m(d,u){return p("pressure",{pressure:u})}return m}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",disabled:l.ReleasePressure===l.maxReleasePressure,tooltip:"Max",onClick:function(){function m(){return p("pressure",{pressure:"max"})}return m}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"undo",content:"",disabled:l.ReleasePressure===l.defaultReleasePressure,tooltip:"Reset",onClick:function(){function m(){return p("pressure",{pressure:"reset"})}return m}()})]}),c]})})})})}return V}()},69161:function(L,r,n){"use strict";r.__esModule=!0,r.TankDispenser=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.TankDispenser=function(){function V(k,S){var b=(0,a.useBackend)(S),p=b.act,l=b.data,c=l.o_tanks,m=l.p_tanks;return(0,e.createComponentVNode)(2,o.Window,{width:250,height:105,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:[(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,content:"Dispense Oxygen Tank ("+c+")",disabled:c===0,icon:"arrow-circle-down",onClick:function(){function d(){return p("oxygen")}return d}()})}),(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{mt:1,fluid:!0,content:"Dispense Plasma Tank ("+m+")",disabled:m===0,icon:"arrow-circle-down",onClick:function(){function d(){return p("plasma")}return d}()})})]})})})}return V}()},87394:function(L,r,n){"use strict";r.__esModule=!0,r.TcommsCore=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.TcommsCore=function(){function p(l,c){var m=(0,a.useBackend)(c),d=m.act,u=m.data,s=u.ion,i=(0,a.useLocalState)(c,"tabIndex",0),v=i[0],C=i[1],g=function(){function h(N){switch(N){case 0:return(0,e.createComponentVNode)(2,k);case 1:return(0,e.createComponentVNode)(2,S);case 2:return(0,e.createComponentVNode)(2,b);default:return"SOMETHING WENT VERY WRONG PLEASE AHELP"}}return h}();return(0,e.createComponentVNode)(2,o.Window,{width:900,height:520,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[s===1&&(0,e.createComponentVNode)(2,V),(0,e.createComponentVNode)(2,t.Tabs,{children:[(0,e.createComponentVNode)(2,t.Tabs.Tab,{icon:"wrench",selected:v===0,onClick:function(){function h(){return C(0)}return h}(),children:"Configuration"},"ConfigPage"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{icon:"link",selected:v===1,onClick:function(){function h(){return C(1)}return h}(),children:"Device Linkage"},"LinkagePage"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{icon:"user-times",selected:v===2,onClick:function(){function h(){return C(2)}return h}(),children:"User Filtering"},"FilterPage")]}),g(v)]})})}return p}(),V=function(){return(0,e.createComponentVNode)(2,t.NoticeBox,{children:"ERROR: An Ionospheric overload has occured. Please wait for the machine to reboot. This cannot be manually done."})},k=function(l,c){var m=(0,a.useBackend)(c),d=m.act,u=m.data,s=u.active,i=u.sectors_available,v=u.nttc_toggle_jobs,C=u.nttc_toggle_job_color,g=u.nttc_toggle_name_color,h=u.nttc_toggle_command_bold,N=u.nttc_job_indicator_type,y=u.nttc_setting_language,B=u.network_id;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{title:"Status",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Machine Power",children:(0,e.createComponentVNode)(2,t.Button,{content:s?"On":"Off",selected:s,icon:"power-off",onClick:function(){function I(){return d("toggle_active")}return I}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Sector Coverage",children:i})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Radio Configuration",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Job Announcements",children:(0,e.createComponentVNode)(2,t.Button,{content:v?"On":"Off",selected:v,icon:"user-tag",onClick:function(){function I(){return d("nttc_toggle_jobs")}return I}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Job Departmentalisation",children:(0,e.createComponentVNode)(2,t.Button,{content:C?"On":"Off",selected:C,icon:"clipboard-list",onClick:function(){function I(){return d("nttc_toggle_job_color")}return I}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Name Departmentalisation",children:(0,e.createComponentVNode)(2,t.Button,{content:g?"On":"Off",selected:g,icon:"user-tag",onClick:function(){function I(){return d("nttc_toggle_name_color")}return I}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Command Amplification",children:(0,e.createComponentVNode)(2,t.Button,{content:h?"On":"Off",selected:h,icon:"volume-up",onClick:function(){function I(){return d("nttc_toggle_command_bold")}return I}()})})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Advanced",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Job Announcement Format",children:(0,e.createComponentVNode)(2,t.Button,{content:N||"Unset",selected:N,icon:"pencil-alt",onClick:function(){function I(){return d("nttc_job_indicator_type")}return I}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Language Conversion",children:(0,e.createComponentVNode)(2,t.Button,{content:y||"Unset",selected:y,icon:"globe",onClick:function(){function I(){return d("nttc_setting_language")}return I}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Network ID",children:(0,e.createComponentVNode)(2,t.Button,{content:B||"Unset",selected:B,icon:"server",onClick:function(){function I(){return d("network_id")}return I}()})})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Maintenance",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Import Configuration",icon:"file-import",onClick:function(){function I(){return d("import")}return I}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Export Configuration",icon:"file-export",onClick:function(){function I(){return d("export")}return I}()})]})],4)},S=function(l,c){var m=(0,a.useBackend)(c),d=m.act,u=m.data,s=u.link_password,i=u.relay_entries;return(0,e.createComponentVNode)(2,t.Section,{title:"Device Linkage",children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Linkage Password",children:(0,e.createComponentVNode)(2,t.Button,{content:s||"Unset",selected:s,icon:"lock",onClick:function(){function v(){return d("change_password")}return v}()})})}),(0,e.createComponentVNode)(2,t.Table,{m:"0.5rem",children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Network Address"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Network ID"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Sector"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Status"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Unlink"})]}),i.map(function(v){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:v.addr}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:v.net_id}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:v.sector}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:v.status===1?(0,e.createComponentVNode)(2,t.Box,{color:"green",children:"Online"}):(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Offline"})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Unlink",icon:"unlink",onClick:function(){function C(){return d("unlink",{addr:v.addr})}return C}()})})]},v.addr)})]})]})},b=function(l,c){var m=(0,a.useBackend)(c),d=m.act,u=m.data,s=u.filtered_users;return(0,e.createComponentVNode)(2,t.Section,{title:"User Filtering",buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Add User",icon:"user-plus",onClick:function(){function i(){return d("add_filter")}return i}()}),children:(0,e.createComponentVNode)(2,t.Table,{m:"0.5rem",children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{style:{width:"90%"},children:"User"}),(0,e.createComponentVNode)(2,t.Table.Cell,{style:{width:"10%"},children:"Actions"})]}),s.map(function(i){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:i}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Remove",icon:"user-times",onClick:function(){function v(){return d("remove_filter",{user:i})}return v}()})})]},i)})]})})}},55684:function(L,r,n){"use strict";r.__esModule=!0,r.TcommsRelay=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.TcommsRelay=function(){function S(b,p){var l=(0,a.useBackend)(p),c=l.act,m=l.data,d=m.linked,u=m.active,s=m.network_id;return(0,e.createComponentVNode)(2,o.Window,{width:600,height:292,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,t.Section,{title:"Relay Configuration",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Machine Power",children:(0,e.createComponentVNode)(2,t.Button,{content:u?"On":"Off",selected:u,icon:"power-off",onClick:function(){function i(){return c("toggle_active")}return i}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Network ID",children:(0,e.createComponentVNode)(2,t.Button,{content:s||"Unset",selected:s,icon:"server",onClick:function(){function i(){return c("network_id")}return i}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Link Status",children:d===1?(0,e.createComponentVNode)(2,t.Box,{color:"green",children:"Linked"}):(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Unlinked"})})]})}),d===1?(0,e.createComponentVNode)(2,V):(0,e.createComponentVNode)(2,k)]})})}return S}(),V=function(b,p){var l=(0,a.useBackend)(p),c=l.act,m=l.data,d=m.linked_core_id,u=m.linked_core_addr,s=m.hidden_link;return(0,e.createComponentVNode)(2,t.Section,{title:"Link Status",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Linked Core ID",children:d}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Linked Core Address",children:u}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Hidden Link",children:(0,e.createComponentVNode)(2,t.Button,{content:s?"Yes":"No",icon:s?"eye-slash":"eye",selected:s,onClick:function(){function i(){return c("toggle_hidden_link")}return i}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Unlink",children:(0,e.createComponentVNode)(2,t.Button,{content:"Unlink",icon:"unlink",color:"red",onClick:function(){function i(){return c("unlink")}return i}()})})]})})},k=function(b,p){var l=(0,a.useBackend)(p),c=l.act,m=l.data,d=m.cores;return(0,e.createComponentVNode)(2,t.Section,{title:"Detected Cores",children:(0,e.createComponentVNode)(2,t.Table,{m:"0.5rem",children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Network Address"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Network ID"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Sector"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Link"})]}),d.map(function(u){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:u.addr}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:u.net_id}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:u.sector}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Link",icon:"link",onClick:function(){function s(){return c("link",{addr:u.addr})}return s}()})})]},u.addr)})]})})}},81088:function(L,r,n){"use strict";r.__esModule=!0,r.Teleporter=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.Teleporter=function(){function V(k,S){var b=(0,a.useBackend)(S),p=b.act,l=b.data,c=l.targetsTeleport?l.targetsTeleport:{},m=0,d=1,u=2,s=l.calibrated,i=l.calibrating,v=l.powerstation,C=l.regime,g=l.teleporterhub,h=l.target,N=l.locked,y=l.adv_beacon_allowed,B=l.advanced_beacon_locking;return(0,e.createComponentVNode)(2,o.Window,{width:350,height:270,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:[(!v||!g)&&(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Error",children:[g,!v&&(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:" Powerstation not linked "}),v&&!g&&(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:" Teleporter hub not linked "})]}),v&&g&&(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Status",buttons:(0,e.createFragment)(!!y&&(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{inline:!0,color:"label",children:"Advanced Beacon Locking:\xA0"}),(0,e.createComponentVNode)(2,t.Button,{selected:B,icon:B?"toggle-on":"toggle-off",content:B?"Enabled":"Disabled",onClick:function(){function I(){return p("advanced_beacon_locking",{on:B?0:1})}return I}()})],4),0),children:[(0,e.createComponentVNode)(2,t.Stack,{mb:1,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:8.5,color:"label",children:"Teleport target:"}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:[C===m&&(0,e.createComponentVNode)(2,t.Dropdown,{width:18.2,selected:h,disabled:i,options:Object.keys(c),color:h!=="None"?"default":"bad",onSelected:function(){function I(w){return p("settarget",{x:c[w].x,y:c[w].y,z:c[w].z,tptarget:c[w].pretarget})}return I}()}),C===d&&(0,e.createComponentVNode)(2,t.Dropdown,{width:18.2,selected:h,disabled:i,options:Object.keys(c),color:h!=="None"?"default":"bad",onSelected:function(){function I(w){return p("settarget",{x:c[w].x,y:c[w].y,z:c[w].z,tptarget:c[w].pretarget})}return I}()}),C===u&&(0,e.createComponentVNode)(2,t.Box,{children:h})]})]}),(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:8.5,color:"label",children:"Regime:"}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,content:"Gate",tooltip:"Teleport to another teleport hub.",tooltipPosition:"top",color:C===d?"good":null,onClick:function(){function I(){return p("setregime",{regime:d})}return I}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,content:"Teleporter",tooltip:"One-way teleport.",tooltipPosition:"top",color:C===m?"good":null,onClick:function(){function I(){return p("setregime",{regime:m})}return I}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,content:"GPS",tooltip:"Teleport to a location stored in a GPS device.",tooltipPosition:"top-end",color:C===u?"good":null,disabled:!N,onClick:function(){function I(){return p("setregime",{regime:u})}return I}()})})]}),(0,e.createComponentVNode)(2,t.Stack,{label:"Calibration",mt:1,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:8.5,color:"label",children:"Calibration:"}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:[h!=="None"&&(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:15.8,textAlign:"center",mt:.5,children:i&&(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"In Progress"})||s&&(0,e.createComponentVNode)(2,t.Box,{color:"good",children:"Optimal"})||(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:"Sub-Optimal"})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Button,{icon:"sync-alt",tooltip:"Calibrates the hub. Accidents may occur when the calibration is not optimal.",tooltipPosition:"bottom-end",disabled:!!(s||i),onClick:function(){function I(){return p("calibrate")}return I}()})})]}),h==="None"&&(0,e.createComponentVNode)(2,t.Box,{lineHeight:"21px",children:"No target set"})]})]})]}),!!(N&&v&&g&&C===u)&&(0,e.createComponentVNode)(2,t.Section,{title:"GPS",children:(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Button,{content:"Upload GPS data",tooltip:"Loads the GPS data from the device.",icon:"upload",onClick:function(){function I(){return p("load")}return I}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Eject",tooltip:"Ejects the GPS device",icon:"eject",onClick:function(){function I(){return p("eject")}return I}()})]})})]})})})})}return V}()},65875:function(L,r,n){"use strict";r.__esModule=!0,r.TelescienceConsole=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.TelescienceConsole=function(){function V(k,S){var b=(0,a.useBackend)(S),p=b.act,l=b.data,c=l.last_msg,m=l.linked_pad,d=l.held_gps,u=l.lastdata,s=l.power_levels,i=l.current_max_power,v=l.current_power,C=l.current_bearing,g=l.current_elevation,h=l.current_sector,N=l.working,y=l.max_z,B=(0,a.useLocalState)(S,"dummyrot",C),I=B[0],w=B[1];return(0,e.createComponentVNode)(2,o.Window,{width:400,height:500,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Status",children:(0,e.createFragment)([c,!(u.length>0)||(0,e.createVNode)(1,"ul",null,u.map(function(T){return(0,e.createVNode)(1,"li",null,T,0,null,T)}),0)],0)}),(0,e.createComponentVNode)(2,t.Section,{title:"Telepad Status",children:m===1?(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Current Bearing",children:(0,e.createComponentVNode)(2,t.Box,{inline:!0,position:"relative",children:[(0,e.createComponentVNode)(2,t.NumberInput,{unit:"\xB0",width:6.1,lineHeight:1.5,step:.1,minValue:0,maxValue:360,disabled:N,value:C,onDrag:function(){function T(A,x){return w(x)}return T}(),onChange:function(){function T(A,x){return p("setbear",{bear:x})}return T}()}),(0,e.createComponentVNode)(2,t.Icon,{ml:1,size:1,name:"arrow-up",rotation:I})]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Current Elevation",children:(0,e.createComponentVNode)(2,t.NumberInput,{width:6.1,lineHeight:1.5,step:.1,minValue:0,maxValue:100,disabled:N,value:g,onChange:function(){function T(A,x){return p("setelev",{elev:x})}return T}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power Level",children:s.map(function(T,A){return(0,e.createComponentVNode)(2,t.Button,{content:T,selected:v===T,disabled:A>=i-1||N,onClick:function(){function x(){return p("setpwr",{pwr:A+1})}return x}()},T)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Target Sector",children:(0,e.createComponentVNode)(2,t.NumberInput,{width:6.1,lineHeight:1.5,step:1,minValue:2,maxValue:y,value:h,disabled:N,onChange:function(){function T(A,x){return p("setz",{newz:x})}return T}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Telepad Actions",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Send",disabled:N,onClick:function(){function T(){return p("pad_send")}return T}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Receive",disabled:N,onClick:function(){function T(){return p("pad_receive")}return T}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Crystal Maintenance",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Recalibrate Crystals",disabled:N,onClick:function(){function T(){return p("recal_crystals")}return T}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Eject Crystals",disabled:N,onClick:function(){function T(){return p("eject_crystals")}return T}()})]})]}):(0,e.createFragment)([(0,e.createTextVNode)("No pad linked to console. Please use a multitool to link a pad.")],4)}),(0,e.createComponentVNode)(2,t.Section,{title:"GPS Actions",children:d===1?(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{disabled:d===0||N,content:"Eject GPS",onClick:function(){function T(){return p("eject_gps")}return T}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:d===0||N,content:"Store Coordinates",onClick:function(){function T(){return p("store_to_gps")}return T}()})],4):(0,e.createFragment)([(0,e.createTextVNode)("Please insert a GPS to store coordinates to it.")],4)})]})})}return V}()},96150:function(L,r,n){"use strict";r.__esModule=!0,r.TempGun=void 0;var e=n(96524),a=n(36121),t=n(17899),o=n(24674),f=n(45493),V=r.TempGun=function(){function p(l,c){var m=(0,t.useBackend)(c),d=m.act,u=m.data,s=u.target_temperature,i=u.temperature,v=u.max_temp,C=u.min_temp;return(0,e.createComponentVNode)(2,f.Window,{width:250,height:121,children:(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,o.Section,{children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Target Temperature",children:[(0,e.createComponentVNode)(2,o.NumberInput,{animate:!0,step:10,stepPixelSize:6,minValue:C,maxValue:v,value:s,format:function(){function g(h){return(0,a.toFixed)(h,2)}return g}(),width:"50px",onDrag:function(){function g(h,N){return d("target_temperature",{target_temperature:N})}return g}()}),"\xB0C"]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Current Temperature",children:(0,e.createComponentVNode)(2,o.Box,{color:k(i),bold:i>500-273.15,children:[(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:(0,a.round)(i,2)}),"\xB0C"]})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Power Cost",children:(0,e.createComponentVNode)(2,o.Box,{color:b(i),children:S(i)})})]})})})})}return p}(),k=function(l){return l<=-100?"blue":l<=0?"teal":l<=100?"green":l<=200?"orange":"red"},S=function(l){return l<=100-273.15?"High":l<=250-273.15?"Medium":l<=300-273.15?"Low":l<=400-273.15?"Medium":"High"},b=function(l){return l<=100-273.15?"red":l<=250-273.15?"orange":l<=300-273.15?"green":l<=400-273.15?"orange":"red"}},95484:function(L,r,n){"use strict";r.__esModule=!0,r.sanitizeMultiline=r.removeAllSkiplines=r.TextInputModal=void 0;var e=n(96524),a=n(14299),t=n(15113),o=n(17899),f=n(68100),V=n(24674),k=n(45493),S=r.sanitizeMultiline=function(){function c(m){return m.replace(/(\n|\r\n){3,}/,"\n\n")}return c}(),b=r.removeAllSkiplines=function(){function c(m){return m.replace(/[\r\n]+/,"")}return c}(),p=r.TextInputModal=function(){function c(m,d){var u=(0,o.useBackend)(d),s=u.act,i=u.data,v=i.max_length,C=i.message,g=C===void 0?"":C,h=i.multiline,N=i.placeholder,y=i.timeout,B=i.title,I=(0,o.useLocalState)(d,"input",N||""),w=I[0],T=I[1],A=function(){function M(D){if(D!==w){var P=h?S(D):b(D);T(P)}}return M}(),x=h||w.length>=40,E=130+(g.length>40?Math.ceil(g.length/4):0)+(x?80:0);return(0,e.createComponentVNode)(2,k.Window,{title:B,width:325,height:E,children:[y&&(0,e.createComponentVNode)(2,a.Loader,{value:y}),(0,e.createComponentVNode)(2,k.Window.Content,{onKeyDown:function(){function M(D){var P=window.event?D.which:D.keyCode;P===f.KEY_ENTER&&(!x||!D.shiftKey)&&s("submit",{entry:w}),P===f.KEY_ESCAPE&&s("cancel")}return M}(),children:(0,e.createComponentVNode)(2,V.Section,{fill:!0,children:(0,e.createComponentVNode)(2,V.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,V.Stack.Item,{children:(0,e.createComponentVNode)(2,V.Box,{color:"label",children:g})}),(0,e.createComponentVNode)(2,V.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,l,{input:w,onType:A})}),(0,e.createComponentVNode)(2,V.Stack.Item,{children:(0,e.createComponentVNode)(2,t.InputButtons,{input:w,message:w.length+"/"+v})})]})})})]})}return c}(),l=function(m,d){var u=(0,o.useBackend)(d),s=u.act,i=u.data,v=i.max_length,C=i.multiline,g=m.input,h=m.onType,N=C||g.length>=40;return(0,e.createComponentVNode)(2,V.TextArea,{autoFocus:!0,autoSelect:!0,height:C||g.length>=40?"100%":"1.8rem",maxLength:v,onEscape:function(){function y(){return s("cancel")}return y}(),onEnter:function(){function y(B){N&&B.shiftKey||(B.preventDefault(),s("submit",{entry:g}))}return y}(),onInput:function(){function y(B,I){return h(I)}return y}(),placeholder:"Type something...",value:g})}},378:function(L,r,n){"use strict";r.__esModule=!0,r.ThermoMachine=void 0;var e=n(96524),a=n(36121),t=n(17899),o=n(24674),f=n(45493),V=r.ThermoMachine=function(){function k(S,b){var p=(0,t.useBackend)(b),l=p.act,c=p.data;return(0,e.createComponentVNode)(2,f.Window,{width:300,height:225,children:(0,e.createComponentVNode)(2,f.Window.Content,{children:[(0,e.createComponentVNode)(2,o.Section,{title:"Status",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Temperature",children:[(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:c.temperature,format:function(){function m(d){return(0,a.toFixed)(d,2)}return m}()})," K"]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Pressure",children:[(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:c.pressure,format:function(){function m(d){return(0,a.toFixed)(d,2)}return m}()})," kPa"]})]})}),(0,e.createComponentVNode)(2,o.Section,{title:"Controls",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:c.on?"power-off":"times",content:c.on?"On":"Off",selected:c.on,onClick:function(){function m(){return l("power")}return m}()}),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Setting",textAlign:"center",children:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,icon:c.cooling?"temperature-low":"temperature-high",content:c.cooling?"Cooling":"Heating",selected:c.cooling,onClick:function(){function m(){return l("cooling")}return m}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Target Temperature",children:[(0,e.createComponentVNode)(2,o.Button,{icon:"fast-backward",disabled:c.target===c.min,title:"Minimum temperature",onClick:function(){function m(){return l("target",{target:c.min})}return m}()}),(0,e.createComponentVNode)(2,o.NumberInput,{animated:!0,value:Math.round(c.target),unit:"K",width:5.4,lineHeight:1.4,minValue:Math.round(c.min),maxValue:Math.round(c.max),step:5,stepPixelSize:3,onDrag:function(){function m(d,u){return l("target",{target:u})}return m}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"fast-forward",disabled:c.target===c.max,title:"Maximum Temperature",onClick:function(){function m(){return l("target",{target:c.max})}return m}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"sync",disabled:c.target===c.initial,title:"Room Temperature",onClick:function(){function m(){return l("target",{target:c.initial})}return m}()})]})]})})]})})}return k}()},3365:function(L,r,n){"use strict";r.__esModule=!0,r.TransferValve=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.TransferValve=function(){function V(k,S){var b=(0,a.useBackend)(S),p=b.act,l=b.data,c=l.tank_one,m=l.tank_two,d=l.attached_device,u=l.valve;return(0,e.createComponentVNode)(2,o.Window,{width:460,height:285,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Valve Status",children:(0,e.createComponentVNode)(2,t.Button,{icon:u?"unlock":"lock",content:u?"Open":"Closed",disabled:!c||!m,onClick:function(){function s(){return p("toggle")}return s}()})})})}),(0,e.createComponentVNode)(2,t.Section,{title:"Assembly",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"cog",content:"Configure Assembly",disabled:!d,onClick:function(){function s(){return p("device")}return s}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Attachment",children:d?(0,e.createComponentVNode)(2,t.Button,{icon:"eject",content:d,disabled:!d,onClick:function(){function s(){return p("remove_device")}return s}()}):(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"No Assembly"})})})}),(0,e.createComponentVNode)(2,t.Section,{title:"Attachment One",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Attachment",children:c?(0,e.createComponentVNode)(2,t.Button,{icon:"eject",content:c,disabled:!c,onClick:function(){function s(){return p("tankone")}return s}()}):(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"No Tank"})})})}),(0,e.createComponentVNode)(2,t.Section,{title:"Attachment Two",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Attachment",children:m?(0,e.createComponentVNode)(2,t.Button,{icon:"eject",content:m,disabled:!m,onClick:function(){function s(){return p("tanktwo")}return s}()}):(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"No Tank"})})})})]})})}return V}()},13860:function(L,r,n){"use strict";r.__esModule=!0,r.TurbineComputer=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=n(36121),V=r.TurbineComputer=function(){function b(p,l){var c=(0,a.useBackend)(l),m=c.act,d=c.data,u=d.compressor,s=d.compressor_broken,i=d.turbine,v=d.turbine_broken,C=d.online,g=!!(u&&!s&&i&&!v);return(0,e.createComponentVNode)(2,o.Window,{width:400,height:200,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Status",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{icon:C?"power-off":"times",content:C?"Online":"Offline",selected:C,disabled:!g,onClick:function(){function h(){return m("toggle_power")}return h}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"times",content:"Disconnect",onClick:function(){function h(){return m("disconnect")}return h}()})],4),children:g?(0,e.createComponentVNode)(2,S):(0,e.createComponentVNode)(2,k)})})})}return b}(),k=function(p,l){var c=(0,a.useBackend)(l),m=c.data,d=m.compressor,u=m.compressor_broken,s=m.turbine,i=m.turbine_broken,v=m.online;return(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Compressor Status",color:!d||u?"bad":"good",children:u?d?"Offline":"Missing":"Online"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Turbine Status",color:!s||i?"bad":"good",children:i?s?"Offline":"Missing":"Online"})]})},S=function(p,l){var c=(0,a.useBackend)(l),m=c.data,d=m.rpm,u=m.temperature,s=m.power,i=m.bearing_heat;return(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Turbine Speed",children:[d," RPM"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Internal Temp",children:[u," K"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Generated Power",children:[s," W"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Bearing Heat",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:i,minValue:0,maxValue:100,ranges:{good:[-1/0,60],average:[60,90],bad:[90,1/0]},children:(0,f.toFixed)(i)+"%"})})]})}},22169:function(L,r,n){"use strict";r.__esModule=!0,r.Uplink=void 0;var e=n(96524),a=n(50640),t=n(74041),o=n(78234),f=n(17899),V=n(24674),k=n(45493),S=n(99665),b=function(C){switch(C){case 0:return(0,e.createComponentVNode)(2,l);case 1:return(0,e.createComponentVNode)(2,c);case 2:return(0,e.createComponentVNode)(2,i);default:return"SOMETHING WENT VERY WRONG PLEASE AHELP"}},p=r.Uplink=function(){function v(C,g){var h=(0,f.useBackend)(g),N=h.act,y=h.data,B=y.cart,I=(0,f.useLocalState)(g,"tabIndex",0),w=I[0],T=I[1],A=(0,f.useLocalState)(g,"searchText",""),x=A[0],E=A[1];return(0,e.createComponentVNode)(2,k.Window,{width:900,height:600,theme:"syndicate",children:[(0,e.createComponentVNode)(2,S.ComplexModal),(0,e.createComponentVNode)(2,k.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,V.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,V.Stack.Item,{children:(0,e.createComponentVNode)(2,V.Tabs,{children:[(0,e.createComponentVNode)(2,V.Tabs.Tab,{selected:w===0,onClick:function(){function M(){T(0),E("")}return M}(),icon:"store",children:"View Market"},"PurchasePage"),(0,e.createComponentVNode)(2,V.Tabs.Tab,{selected:w===1,onClick:function(){function M(){T(1),E("")}return M}(),icon:"shopping-cart",children:["View Shopping Cart"," ",B&&B.length?"("+B.length+")":""]},"Cart"),(0,e.createComponentVNode)(2,V.Tabs.Tab,{selected:w===2,onClick:function(){function M(){T(2),E("")}return M}(),icon:"user",children:"Exploitable Information"},"ExploitableInfo"),(0,e.createComponentVNode)(2,V.Tabs.Tab,{onClick:function(){function M(){return N("lock")}return M}(),icon:"lock",children:"Lock Uplink"},"LockUplink")]})}),(0,e.createComponentVNode)(2,V.Stack.Item,{grow:!0,children:b(w)})]})})]})}return v}(),l=function(C,g){var h=(0,f.useBackend)(g),N=h.act,y=h.data,B=y.crystals,I=y.cats,w=(0,f.useLocalState)(g,"uplinkItems",I[0].items),T=w[0],A=w[1],x=(0,f.useLocalState)(g,"searchText",""),E=x[0],M=x[1],D=function(_,z){z===void 0&&(z="");var G=(0,o.createSearch)(z,function(X){var Y=X.hijack_only===1?"|hijack":"";return X.name+"|"+X.desc+"|"+X.cost+"tc"+Y});return(0,t.flow)([(0,a.filter)(function(X){return X==null?void 0:X.name}),z&&(0,a.filter)(G),(0,a.sortBy)(function(X){return X==null?void 0:X.name})])(_)},P=function(_){if(M(_),_==="")return A(I[0].items);A(D(I.map(function(z){return z.items}).flat(),_))},R=(0,f.useLocalState)(g,"showDesc",1),j=R[0],F=R[1];return(0,e.createComponentVNode)(2,V.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,V.Stack,{vertical:!0,children:(0,e.createComponentVNode)(2,V.Stack.Item,{children:(0,e.createComponentVNode)(2,V.Section,{title:"Current Balance: "+B+"TC",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,V.Button.Checkbox,{content:"Show Descriptions",checked:j,onClick:function(){function U(){return F(!j)}return U}()}),(0,e.createComponentVNode)(2,V.Button,{content:"Random Item",icon:"question",onClick:function(){function U(){return N("buyRandom")}return U}()}),(0,e.createComponentVNode)(2,V.Button,{content:"Refund Currently Held Item",icon:"undo",onClick:function(){function U(){return N("refund")}return U}()})],4),children:(0,e.createComponentVNode)(2,V.Input,{fluid:!0,placeholder:"Search Equipment",onInput:function(){function U(_,z){P(z)}return U}(),value:E})})})}),(0,e.createComponentVNode)(2,V.Stack,{fill:!0,mt:.3,children:[(0,e.createComponentVNode)(2,V.Stack.Item,{width:"30%",children:(0,e.createComponentVNode)(2,V.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,V.Tabs,{vertical:!0,children:I.map(function(U){return(0,e.createComponentVNode)(2,V.Tabs.Tab,{selected:E!==""?!1:U.items===T,onClick:function(){function _(){A(U.items),M("")}return _}(),children:U.cat},U)})})})}),(0,e.createComponentVNode)(2,V.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,V.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,V.Stack,{vertical:!0,children:T.map(function(U){return(0,e.createComponentVNode)(2,V.Stack.Item,{p:1,backgroundColor:"rgba(255, 0, 0, 0.1)",children:(0,e.createComponentVNode)(2,d,{i:U,showDecription:j},(0,o.decodeHtmlEntities)(U.name))},(0,o.decodeHtmlEntities)(U.name))})})})})]})]})},c=function(C,g){var h=(0,f.useBackend)(g),N=h.act,y=h.data,B=y.cart,I=y.crystals,w=y.cart_price,T=(0,f.useLocalState)(g,"showDesc",0),A=T[0],x=T[1];return(0,e.createComponentVNode)(2,V.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,V.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,V.Section,{fill:!0,scrollable:!0,title:"Current Balance: "+I+"TC",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,V.Button.Checkbox,{content:"Show Descriptions",checked:A,onClick:function(){function E(){return x(!A)}return E}()}),(0,e.createComponentVNode)(2,V.Button,{content:"Empty Cart",icon:"trash",onClick:function(){function E(){return N("empty_cart")}return E}(),disabled:!B}),(0,e.createComponentVNode)(2,V.Button,{content:"Purchase Cart ("+w+"TC)",icon:"shopping-cart",onClick:function(){function E(){return N("purchase_cart")}return E}(),disabled:!B||w>I})],4),children:(0,e.createComponentVNode)(2,V.Stack,{vertical:!0,children:B?B.map(function(E){return(0,e.createComponentVNode)(2,V.Stack.Item,{p:1,mr:1,backgroundColor:"rgba(255, 0, 0, 0.1)",children:(0,e.createComponentVNode)(2,d,{i:E,showDecription:A,buttons:(0,e.createComponentVNode)(2,s,{i:E})})},(0,o.decodeHtmlEntities)(E.name))}):(0,e.createComponentVNode)(2,V.Box,{italic:!0,children:"Your Shopping Cart is empty!"})})})}),(0,e.createComponentVNode)(2,m)]})},m=function(C,g){var h=(0,f.useBackend)(g),N=h.act,y=h.data,B=y.cats,I=y.lucky_numbers;return(0,e.createComponentVNode)(2,V.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,V.Section,{fill:!0,scrollable:!0,title:"Suggested Purchases",buttons:(0,e.createComponentVNode)(2,V.Button,{icon:"dice",content:"See more suggestions",onClick:function(){function w(){return N("shuffle_lucky_numbers")}return w}()}),children:(0,e.createComponentVNode)(2,V.Stack,{wrap:!0,children:I.map(function(w){return B[w.cat].items[w.item]}).filter(function(w){return w!=null}).map(function(w,T){return(0,e.createComponentVNode)(2,V.Stack.Item,{p:1,mb:1,ml:1,width:34,backgroundColor:"rgba(255, 0, 0, 0.15)",children:(0,e.createComponentVNode)(2,d,{grow:!0,i:w})},T)})})})})},d=function(C,g){var h=C.i,N=C.showDecription,y=N===void 0?1:N,B=C.buttons,I=B===void 0?(0,e.createComponentVNode)(2,u,{i:h}):B;return(0,e.createComponentVNode)(2,V.Section,{title:(0,o.decodeHtmlEntities)(h.name),showBottom:y,buttons:I,children:y?(0,e.createComponentVNode)(2,V.Box,{italic:!0,children:(0,o.decodeHtmlEntities)(h.desc)}):null})},u=function(C,g){var h=(0,f.useBackend)(g),N=h.act,y=h.data,B=C.i,I=y.crystals;return(0,e.createFragment)([(0,e.createComponentVNode)(2,V.Button,{icon:"shopping-cart",color:B.hijack_only===1&&"red",tooltip:"Add to cart.",tooltipPosition:"left",onClick:function(){function w(){return N("add_to_cart",{item:B.obj_path})}return w}(),disabled:B.cost>I}),(0,e.createComponentVNode)(2,V.Button,{content:"Buy ("+B.cost+"TC)"+(B.refundable?" [Refundable]":""),color:B.hijack_only===1&&"red",tooltip:B.hijack_only===1&&"Hijack Agents Only!",tooltipPosition:"left",onClick:function(){function w(){return N("buyItem",{item:B.obj_path})}return w}(),disabled:B.cost>I})],4)},s=function(C,g){var h=(0,f.useBackend)(g),N=h.act,y=h.data,B=C.i,I=y.exploitable;return(0,e.createComponentVNode)(2,V.Stack,{children:[(0,e.createComponentVNode)(2,V.Button,{icon:"times",content:"("+B.cost*B.amount+"TC)",tooltip:"Remove from cart.",tooltipPosition:"left",onClick:function(){function w(){return N("remove_from_cart",{item:B.obj_path})}return w}()}),(0,e.createComponentVNode)(2,V.Button,{icon:"minus",tooltip:B.limit===0&&"Discount already redeemed!",ml:"5px",onClick:function(){function w(){return N("set_cart_item_quantity",{item:B.obj_path,quantity:--B.amount})}return w}(),disabled:B.amount<=0}),(0,e.createComponentVNode)(2,V.Button.Input,{content:B.amount,width:"45px",tooltipPosition:"bottom-end",tooltip:B.limit===0&&"Discount already redeemed!",onCommit:function(){function w(T,A){return N("set_cart_item_quantity",{item:B.obj_path,quantity:A})}return w}(),disabled:B.limit!==-1&&B.amount>=B.limit&&B.amount<=0}),(0,e.createComponentVNode)(2,V.Button,{mb:.3,icon:"plus",tooltipPosition:"bottom-start",tooltip:B.limit===0&&"Discount already redeemed!",onClick:function(){function w(){return N("set_cart_item_quantity",{item:B.obj_path,quantity:++B.amount})}return w}(),disabled:B.limit!==-1&&B.amount>=B.limit})]})},i=function(C,g){var h=(0,f.useBackend)(g),N=h.act,y=h.data,B=y.exploitable,I=(0,f.useLocalState)(g,"selectedRecord",B[0]),w=I[0],T=I[1],A=(0,f.useLocalState)(g,"searchText",""),x=A[0],E=A[1],M=function(R,j){j===void 0&&(j="");var F=(0,o.createSearch)(j,function(U){return U.name});return(0,t.flow)([(0,a.filter)(function(U){return U==null?void 0:U.name}),j&&(0,a.filter)(F),(0,a.sortBy)(function(U){return U.name})])(R)},D=M(B,x);return(0,e.createComponentVNode)(2,V.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,V.Stack.Item,{width:"30%",children:(0,e.createComponentVNode)(2,V.Section,{fill:!0,scrollable:!0,title:"Exploitable Records",children:[(0,e.createComponentVNode)(2,V.Input,{fluid:!0,mb:1,placeholder:"Search Crew",onInput:function(){function P(R,j){return E(j)}return P}()}),(0,e.createComponentVNode)(2,V.Tabs,{vertical:!0,children:D.map(function(P){return(0,e.createComponentVNode)(2,V.Tabs.Tab,{selected:P===w,onClick:function(){function R(){return T(P)}return R}(),children:P.name},P)})})]})}),(0,e.createComponentVNode)(2,V.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,V.Section,{fill:!0,scrollable:!0,title:w.name,children:(0,e.createComponentVNode)(2,V.LabeledList,{children:[(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Age",children:w.age}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Fingerprint",children:w.fingerprint}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Rank",children:w.rank}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Sex",children:w.sex}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Species",children:w.species})]})})})]})}},70547:function(L,r,n){"use strict";r.__esModule=!0,r.Vending=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=function(S,b){var p=(0,a.useBackend)(b),l=p.act,c=p.data,m=S.product,d=S.productStock,u=S.productImage,s=c.chargesMoney,i=c.user,v=c.usermoney,C=c.inserted_cash,g=c.vend_ready,h=c.inserted_item_name,N=!s||m.price===0,y="ERROR!",B="";N?(y="FREE",B="arrow-circle-down"):(y=m.price,B="shopping-cart");var I=!g||d===0||!N&&m.price>v&&m.price>C;return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,children:(0,e.createVNode)(1,"img",null,null,1,{src:"data:image/jpeg;base64,"+u,style:{"vertical-align":"middle",width:"32px",margin:"0px","margin-left":"0px"}})}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:m.name}),(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,t.Box,{color:d<=0&&"bad"||d<=m.max_amount/2&&"average"||"good",children:[d," in stock"]})}),(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,disabled:I,icon:B,content:y,textAlign:"left",onClick:function(){function w(){return l("vend",{inum:m.inum})}return w}()})})]})},V=r.Vending=function(){function k(S,b){var p=(0,a.useBackend)(b),l=p.act,c=p.data,m=c.user,d=c.usermoney,u=c.inserted_cash,s=c.chargesMoney,i=c.product_records,v=i===void 0?[]:i,C=c.hidden_records,g=C===void 0?[]:C,h=c.stock,N=c.vend_ready,y=c.inserted_item_name,B=c.panel_open,I=c.speaker,w=c.imagelist,T;return T=[].concat(v),c.extended_inventory&&(T=[].concat(T,g)),T=T.filter(function(A){return!!A}),(0,e.createComponentVNode)(2,o.Window,{title:"Vending Machine",width:450,height:Math.min((s?171:89)+T.length*32,585),children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[!!s&&(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"User",buttons:(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:!!y&&(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"eject",content:(0,e.createVNode)(1,"span",null,y,0,{style:{"text-transform":"capitalize"}}),onClick:function(){function A(){return l("eject_item",{})}return A}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{disabled:!u,icon:"money-bill-wave-alt",content:u?(0,e.createFragment)([(0,e.createVNode)(1,"b",null,u,0),(0,e.createTextVNode)(" credits")],0):"Dispense Change",tooltip:u?"Dispense Change":null,textAlign:"left",onClick:function(){function A(){return l("change")}return A}()})})]}),children:m&&(0,e.createComponentVNode)(2,t.Box,{children:["Welcome, ",(0,e.createVNode)(1,"b",null,m.name,0),","," ",(0,e.createVNode)(1,"b",null,m.job||"Unemployed",0),"!",(0,e.createVNode)(1,"br"),"Your balance is ",(0,e.createVNode)(1,"b",null,[d,(0,e.createTextVNode)(" credits")],0),".",(0,e.createVNode)(1,"br")]})})}),!!B&&(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Maintenance",children:(0,e.createComponentVNode)(2,t.Button,{icon:I?"check":"volume-mute",selected:I,content:"Speaker",textAlign:"left",onClick:function(){function A(){return l("toggle_voice",{})}return A}()})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Products",children:(0,e.createComponentVNode)(2,t.Table,{children:T.map(function(A){return(0,e.createComponentVNode)(2,f,{product:A,productStock:h[A.name],productImage:w[A.path]},A.name)})})})})]})})})}return k}()},33045:function(L,r,n){"use strict";r.__esModule=!0,r.VolumeMixer=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.VolumeMixer=function(){function V(k,S){var b=(0,a.useBackend)(S),p=b.act,l=b.data,c=l.channels;return(0,e.createComponentVNode)(2,o.Window,{width:350,height:Math.min(95+c.length*50,565),children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,children:c.map(function(m,d){return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{fontSize:"1.25rem",color:"label",mt:d>0&&"0.5rem",children:m.name}),(0,e.createComponentVNode)(2,t.Box,{mt:"0.5rem",children:(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{mr:.5,children:(0,e.createComponentVNode)(2,t.Button,{width:"24px",color:"transparent",children:(0,e.createComponentVNode)(2,t.Icon,{name:"volume-off",size:"1.5",mt:"0.1rem",onClick:function(){function u(){return p("volume",{channel:m.num,volume:0})}return u}()})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,mx:"0.5rem",children:(0,e.createComponentVNode)(2,t.Slider,{minValue:0,maxValue:100,stepPixelSize:3.13,value:m.volume,onChange:function(){function u(s,i){return p("volume",{channel:m.num,volume:i})}return u}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{width:"24px",color:"transparent",children:(0,e.createComponentVNode)(2,t.Icon,{name:"volume-up",size:"1.5",mt:"0.1rem",onClick:function(){function u(){return p("volume",{channel:m.num,volume:100})}return u}()})})})]})})],4,m.num)})})})})}return V}()},53792:function(L,r,n){"use strict";r.__esModule=!0,r.VotePanel=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.VotePanel=function(){function V(k,S){var b=(0,a.useBackend)(S),p=b.act,l=b.data,c=l.remaining,m=l.question,d=l.choices,u=l.user_vote,s=l.counts,i=l.show_counts;return(0,e.createComponentVNode)(2,o.Window,{width:400,height:360,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:m,children:[(0,e.createComponentVNode)(2,t.Box,{mb:1.5,ml:.5,children:["Time remaining: ",Math.round(c/10),"s"]}),d.map(function(v){return(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{mb:1,fluid:!0,lineHeight:3,color:"translucent",multiLine:v,content:v+(i?" ("+(s[v]||0)+")":""),onClick:function(){function C(){return p("vote",{target:v})}return C}(),selected:v===u})},v)})]})})})}return V}()},64860:function(L,r,n){"use strict";r.__esModule=!0,r.Wires=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.Wires=function(){function V(k,S){var b=(0,a.useBackend)(S),p=b.act,l=b.data,c=l.wires||[],m=l.status||[],d=56+c.length*23+(status?0:15+m.length*17);return(0,e.createComponentVNode)(2,o.Window,{width:350,height:d,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:c.map(function(u){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{className:"candystripe",label:u.color_name,labelColor:u.seen_color,color:u.seen_color,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{content:u.cut?"Mend":"Cut",onClick:function(){function s(){return p("cut",{wire:u.color})}return s}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Pulse",onClick:function(){function s(){return p("pulse",{wire:u.color})}return s}()}),(0,e.createComponentVNode)(2,t.Button,{content:u.attached?"Detach":"Attach",onClick:function(){function s(){return p("attach",{wire:u.color})}return s}()})],4),children:!!u.wire&&(0,e.createVNode)(1,"i",null,[(0,e.createTextVNode)("("),u.wire,(0,e.createTextVNode)(")")],0)},u.seen_color)})})})}),!!m.length&&(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{children:m.map(function(u){return(0,e.createComponentVNode)(2,t.Box,{color:"lightgray",children:u},u)})})})]})})})}return V}()},78262:function(L,r,n){"use strict";r.__esModule=!0,r.WizardApprenticeContract=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.WizardApprenticeContract=function(){function V(k,S){var b=(0,a.useBackend)(S),p=b.act,l=b.data,c=l.used;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:555,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,t.Section,{title:"Contract of Apprenticeship",children:["Using this contract, you may summon an apprentice to aid you on your mission.",(0,e.createVNode)(1,"p",null,"If you are unable to establish contact with your apprentice, you can feed the contract back to the spellbook to refund your points.",16),c?(0,e.createComponentVNode)(2,t.Box,{bold:!0,color:"red",children:"You've already summoned an apprentice or you are in process of summoning one."}):""]}),(0,e.createComponentVNode)(2,t.Section,{title:"Which school of magic is your apprentice studying?",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Fire",children:["Your apprentice is skilled in bending fire. ",(0,e.createVNode)(1,"br"),"They know Fireball, Sacred Flame, and Ethereal Jaunt.",(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Button,{content:"Select",disabled:c,onClick:function(){function m(){return p("fire")}return m}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Divider),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Translocation",children:["Your apprentice is able to defy physics, learning how to move through bluespace. ",(0,e.createVNode)(1,"br"),"They know Teleport, Blink and Ethereal Jaunt.",(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Button,{content:"Select",disabled:c,onClick:function(){function m(){return p("translocation")}return m}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Divider),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Restoration",children:["Your apprentice is dedicated to supporting your magical prowess.",(0,e.createVNode)(1,"br"),"They come equipped with a Staff of Healing, have the unique ability to teleport back to you, and know Charge and Knock.",(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Button,{content:"Select",disabled:c,onClick:function(){function m(){return p("restoration")}return m}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Divider),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Stealth",children:["Your apprentice is learning the art of infiltrating mundane facilities. ",(0,e.createVNode)(1,"br"),"They know Mindswap, Knock, Homing Toolbox, and Disguise Self, all of which can be cast without robes. They also join you in a Maintenance Dweller disguise, complete with Gloves of Shock Immunity and a Belt of Tools.",(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Button,{content:"Select",disabled:c,onClick:function(){function m(){return p("stealth")}return m}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Divider),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Honk",children:["Your apprentice is here to spread the Honkmother's blessings.",(0,e.createVNode)(1,"br"),"They know Banana Touch, Instant Summons, Ethereal Jaunt, and come equipped with a Staff of Slipping. ",(0,e.createVNode)(1,"br"),"While under your tutelage, they have been 'blessed' with clown shoes that are impossible to remove.",(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Button,{content:"Select",disabled:c,onClick:function(){function m(){return p("honk")}return m}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Divider)]})})]})})}return V}()},57842:function(L,r,n){"use strict";r.__esModule=!0,r.AccessList=void 0;var e=n(96524),a=n(50640),t=n(17899),o=n(24674);function f(p,l){var c=typeof Symbol!="undefined"&&p[Symbol.iterator]||p["@@iterator"];if(c)return(c=c.call(p)).next.bind(c);if(Array.isArray(p)||(c=V(p))||l&&p&&typeof p.length=="number"){c&&(p=c);var m=0;return function(){return m>=p.length?{done:!0}:{done:!1,value:p[m++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function V(p,l){if(p){if(typeof p=="string")return k(p,l);var c=Object.prototype.toString.call(p).slice(8,-1);if(c==="Object"&&p.constructor&&(c=p.constructor.name),c==="Map"||c==="Set")return Array.from(p);if(c==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(c))return k(p,l)}}function k(p,l){(l==null||l>p.length)&&(l=p.length);for(var c=0,m=new Array(l);c0&&!y.includes(j.ref)&&!h.includes(j.ref),checked:h.includes(j.ref),onClick:function(){function F(){return B(j.ref)}return F}()},j.desc)})]})]})})}return p}()},79449:function(L,r,n){"use strict";r.__esModule=!0,r.AtmosScan=void 0;var e=n(96524),a=n(50640),t=n(17899),o=n(24674),f=function(S,b,p,l,c){return Sl?"average":S>c?"bad":"good"},V=r.AtmosScan=function(){function k(S,b){var p=S.data.aircontents;return(0,e.createComponentVNode)(2,o.Box,{children:(0,e.createComponentVNode)(2,o.LabeledList,{children:(0,a.filter)(function(l){return l.val!=="0"||l.entry==="Pressure"||l.entry==="Temperature"})(p).map(function(l){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:l.entry,color:f(l.val,l.bad_low,l.poor_low,l.poor_high,l.bad_high),children:[l.val,l.units]},l.entry)})})})}return k}()},1496:function(L,r,n){"use strict";r.__esModule=!0,r.BeakerContents=void 0;var e=n(96524),a=n(24674),t=n(56099),o=function(k){return k+" unit"+(k===1?"":"s")},f=r.BeakerContents=function(){function V(k){var S=k.beakerLoaded,b=k.beakerContents,p=b===void 0?[]:b,l=k.buttons;return(0,e.createComponentVNode)(2,a.Stack,{vertical:!0,children:[!S&&(0,e.createComponentVNode)(2,a.Stack.Item,{color:"label",children:"No beaker loaded."})||p.length===0&&(0,e.createComponentVNode)(2,a.Stack.Item,{color:"label",children:"Beaker is empty."}),p.map(function(c,m){return(0,e.createComponentVNode)(2,a.Stack,{children:[(0,e.createComponentVNode)(2,a.Stack.Item,{color:"label",grow:!0,children:[o(c.volume)," of ",c.name]},c.name),!!l&&(0,e.createComponentVNode)(2,a.Stack.Item,{children:l(c,m)})]},c.name)})]})}return V}();f.propTypes={beakerLoaded:t.bool,beakerContents:t.array,buttons:t.arrayOf(t.element)}},69521:function(L,r,n){"use strict";r.__esModule=!0,r.BotStatus=void 0;var e=n(96524),a=n(17899),t=n(24674),o=r.BotStatus=function(){function f(V,k){var S=(0,a.useBackend)(k),b=S.act,p=S.data,l=p.locked,c=p.noaccess,m=p.maintpanel,d=p.on,u=p.autopatrol,s=p.canhack,i=p.emagged,v=p.remote_disabled;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.NoticeBox,{children:["Swipe an ID card to ",l?"unlock":"lock"," this interface."]}),(0,e.createComponentVNode)(2,t.Section,{title:"General Settings",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:(0,e.createComponentVNode)(2,t.Button,{icon:d?"power-off":"times",content:d?"On":"Off",selected:d,disabled:c,onClick:function(){function C(){return b("power")}return C}()})}),u!==null&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Patrol",children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:u,content:"Auto Patrol",disabled:c,onClick:function(){function C(){return b("autopatrol")}return C}()})}),!!m&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Maintenance Panel",children:(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:"Panel Open!"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Safety System",children:(0,e.createComponentVNode)(2,t.Box,{color:i?"bad":"good",children:i?"DISABLED!":"Enabled"})}),!!s&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Hacking",children:(0,e.createComponentVNode)(2,t.Button,{icon:"terminal",content:i?"Restore Safties":"Hack",disabled:c,color:"bad",onClick:function(){function C(){return b("hack")}return C}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Remote Access",children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:!v,content:"AI Remote Control",disabled:c,onClick:function(){function C(){return b("disableremote")}return C}()})})]})})],4)}return f}()},99665:function(L,r,n){"use strict";r.__esModule=!0,r.modalRegisterBodyOverride=r.modalOpen=r.modalClose=r.modalAnswer=r.ComplexModal=void 0;var e=n(96524),a=n(17899),t=n(24674),o={},f=r.modalOpen=function(){function p(l,c,m){var d=(0,a.useBackend)(l),u=d.act,s=d.data,i=Object.assign(s.modal?s.modal.args:{},m||{});u("modal_open",{id:c,arguments:JSON.stringify(i)})}return p}(),V=r.modalRegisterBodyOverride=function(){function p(l,c){o[l]=c}return p}(),k=r.modalAnswer=function(){function p(l,c,m,d){var u=(0,a.useBackend)(l),s=u.act,i=u.data;if(i.modal){var v=Object.assign(i.modal.args||{},d||{});s("modal_answer",{id:c,answer:m,arguments:JSON.stringify(v)})}}return p}(),S=r.modalClose=function(){function p(l,c){var m=(0,a.useBackend)(l),d=m.act;d("modal_close",{id:c})}return p}(),b=r.ComplexModal=function(){function p(l,c){var m=(0,a.useBackend)(c),d=m.data;if(d.modal){var u=d.modal,s=u.id,i=u.text,v=u.type,C,g=(0,e.createComponentVNode)(2,t.Button,{className:"Button--modal",icon:"arrow-left",content:"Cancel",onClick:function(){function w(){return S(c)}return w}()}),h,N,y="auto";if(o[s])h=o[s](d.modal,c);else if(v==="input"){var B=d.modal.value;C=function(){function w(T){return k(c,s,B)}return w}(),h=(0,e.createComponentVNode)(2,t.Input,{value:d.modal.value,placeholder:"ENTER to submit",width:"100%",my:"0.5rem",autofocus:!0,onChange:function(){function w(T,A){B=A}return w}()}),N=(0,e.createComponentVNode)(2,t.Box,{mt:"0.5rem",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-left",content:"Cancel",color:"grey",onClick:function(){function w(){return S(c)}return w}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"check",content:"Confirm",color:"good",float:"right",m:"0",onClick:function(){function w(){return k(c,s,B)}return w}()}),(0,e.createComponentVNode)(2,t.Box,{clear:"both"})]})}else if(v==="choice"){var I=typeof d.modal.choices=="object"?Object.values(d.modal.choices):d.modal.choices;h=(0,e.createComponentVNode)(2,t.Dropdown,{options:I,selected:d.modal.value,width:"100%",my:"0.5rem",onSelected:function(){function w(T){return k(c,s,T)}return w}()}),y="initial"}else v==="bento"?h=(0,e.createComponentVNode)(2,t.Stack,{spacingPrecise:"1",wrap:"wrap",my:"0.5rem",maxHeight:"1%",children:d.modal.choices.map(function(w,T){return(0,e.createComponentVNode)(2,t.Stack.Item,{flex:"1 1 auto",children:(0,e.createComponentVNode)(2,t.Button,{selected:T+1===parseInt(d.modal.value,10),onClick:function(){function A(){return k(c,s,T+1)}return A}(),children:(0,e.createVNode)(1,"img",null,null,1,{src:w})})},T)})}):v==="boolean"&&(N=(0,e.createComponentVNode)(2,t.Box,{mt:"0.5rem",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"times",content:d.modal.no_text,color:"bad",float:"left",mb:"0",onClick:function(){function w(){return k(c,s,0)}return w}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"check",content:d.modal.yes_text,color:"good",float:"right",m:"0",onClick:function(){function w(){return k(c,s,1)}return w}()}),(0,e.createComponentVNode)(2,t.Box,{clear:"both"})]}));return(0,e.createComponentVNode)(2,t.Modal,{maxWidth:l.maxWidth||window.innerWidth/2+"px",maxHeight:l.maxHeight||window.innerHeight/2+"px",onEnter:C,mx:"auto",overflowY:y,"padding-bottom":"5px",children:[i&&(0,e.createComponentVNode)(2,t.Box,{inline:!0,children:i}),o[s]&&g,h,N]})}}return p}()},98444:function(L,r,n){"use strict";r.__esModule=!0,r.CrewManifest=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(78234),f=n(38424),V=f.COLORS.department,k=["Captain","Head of Security","Chief Engineer","Chief Medical Officer","Research Director","Head of Personnel","Quartermaster"],S=function(m){return k.indexOf(m)!==-1?"green":"orange"},b=function(m){if(k.indexOf(m)!==-1)return!0},p=function(m){return m.length>0&&(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,color:"white",children:[(0,e.createComponentVNode)(2,t.Table.Cell,{width:"50%",children:"Name"}),(0,e.createComponentVNode)(2,t.Table.Cell,{width:"35%",children:"Rank"}),(0,e.createComponentVNode)(2,t.Table.Cell,{width:"15%",children:"Active"})]}),m.map(function(d){return(0,e.createComponentVNode)(2,t.Table.Row,{color:S(d.rank),bold:b(d.rank),children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,o.decodeHtmlEntities)(d.name)}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,o.decodeHtmlEntities)(d.rank)}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:d.active})]},d.name+d.rank)})]})},l=r.CrewManifest=function(){function c(m,d){var u=(0,a.useBackend)(d),s=u.act,i;if(m.data)i=m.data;else{var v=(0,a.useBackend)(d),C=v.data;i=C}var g=i,h=g.manifest,N=h.heads,y=h.sec,B=h.eng,I=h.med,w=h.sci,T=h.ser,A=h.sup,x=h.misc;return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createComponentVNode)(2,t.Box,{backgroundColor:V.command,m:-1,pt:1,pb:1,children:(0,e.createComponentVNode)(2,t.Box,{ml:1,textAlign:"center",fontSize:1.4,children:"Command"})}),level:2,children:p(N)}),(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createComponentVNode)(2,t.Box,{backgroundColor:V.security,m:-1,pt:1,pb:1,children:(0,e.createComponentVNode)(2,t.Box,{ml:1,textAlign:"center",fontSize:1.4,children:"Security"})}),level:2,children:p(y)}),(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createComponentVNode)(2,t.Box,{backgroundColor:V.engineering,m:-1,pt:1,pb:1,children:(0,e.createComponentVNode)(2,t.Box,{ml:1,textAlign:"center",fontSize:1.4,children:"Engineering"})}),level:2,children:p(B)}),(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createComponentVNode)(2,t.Box,{backgroundColor:V.medical,m:-1,pt:1,pb:1,children:(0,e.createComponentVNode)(2,t.Box,{ml:1,textAlign:"center",fontSize:1.4,children:"Medical"})}),level:2,children:p(I)}),(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createComponentVNode)(2,t.Box,{backgroundColor:V.science,m:-1,pt:1,pb:1,children:(0,e.createComponentVNode)(2,t.Box,{ml:1,textAlign:"center",fontSize:1.4,children:"Science"})}),level:2,children:p(w)}),(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createComponentVNode)(2,t.Box,{backgroundColor:V.service,m:-1,pt:1,pb:1,children:(0,e.createComponentVNode)(2,t.Box,{ml:1,textAlign:"center",fontSize:1.4,children:"Service"})}),level:2,children:p(T)}),(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createComponentVNode)(2,t.Box,{backgroundColor:V.supply,m:-1,pt:1,pb:1,children:(0,e.createComponentVNode)(2,t.Box,{ml:1,textAlign:"center",fontSize:1.4,children:"Supply"})}),level:2,children:p(A)}),(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createComponentVNode)(2,t.Box,{m:-1,pt:1,pb:1,children:(0,e.createComponentVNode)(2,t.Box,{ml:1,textAlign:"center",fontSize:1.4,children:"Misc"})}),level:2,children:p(x)})]})}return c}()},15113:function(L,r,n){"use strict";r.__esModule=!0,r.InputButtons=void 0;var e=n(96524),a=n(24674),t=n(17899),o=r.InputButtons=function(){function f(V,k){var S=(0,t.useBackend)(k),b=S.act,p=S.data,l=p.large_buttons,c=p.swapped_buttons,m=V.input,d=V.message,u=V.disabled,s=(0,e.createComponentVNode)(2,a.Button,{color:"good",content:"Submit",bold:!!l,fluid:!!l,onClick:function(){function v(){return b("submit",{entry:m})}return v}(),textAlign:"center",tooltip:l&&d,disabled:u,width:!l&&6}),i=(0,e.createComponentVNode)(2,a.Button,{color:"bad",content:"Cancel",bold:!!l,fluid:!!l,onClick:function(){function v(){return b("cancel")}return v}(),textAlign:"center",width:!l&&6});return(0,e.createComponentVNode)(2,a.Flex,{fill:!0,align:"center",direction:c?"row-reverse":"row",justify:"space-around",children:[l?(0,e.createComponentVNode)(2,a.Flex.Item,{grow:!0,ml:c?.5:0,mr:c?0:.5,children:i}):(0,e.createComponentVNode)(2,a.Flex.Item,{children:i}),!l&&d&&(0,e.createComponentVNode)(2,a.Flex.Item,{children:(0,e.createComponentVNode)(2,a.Box,{color:"label",textAlign:"center",children:d})}),l?(0,e.createComponentVNode)(2,a.Flex.Item,{grow:!0,mr:c?.5:0,ml:c?0:.5,children:s}):(0,e.createComponentVNode)(2,a.Flex.Item,{children:s})]})}return f}()},26893:function(L,r,n){"use strict";r.__esModule=!0,r.InterfaceLockNoticeBox=void 0;var e=n(96524),a=n(17899),t=n(24674),o=r.InterfaceLockNoticeBox=function(){function f(V,k){var S=(0,a.useBackend)(k),b=S.act,p=S.data,l=V.siliconUser,c=l===void 0?p.siliconUser:l,m=V.locked,d=m===void 0?p.locked:m,u=V.normallyLocked,s=u===void 0?p.normallyLocked:u,i=V.onLockStatusChange,v=i===void 0?function(){return b("lock")}:i,C=V.accessText,g=C===void 0?"an ID card":C;return c?(0,e.createComponentVNode)(2,t.NoticeBox,{color:c&&"grey",children:(0,e.createComponentVNode)(2,t.Flex,{align:"center",children:[(0,e.createComponentVNode)(2,t.Flex.Item,{children:"Interface lock status:"}),(0,e.createComponentVNode)(2,t.Flex.Item,{grow:"1"}),(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Button,{m:"0",color:s?"red":"green",icon:s?"lock":"unlock",content:s?"Locked":"Unlocked",onClick:function(){function h(){v&&v(!d)}return h}()})})]})}):(0,e.createComponentVNode)(2,t.NoticeBox,{children:["Swipe ",g," to ",d?"unlock":"lock"," this interface."]})}return f}()},14299:function(L,r,n){"use strict";r.__esModule=!0,r.Loader=void 0;var e=n(96524),a=n(36121),t=n(24674),o=r.Loader=function(){function f(V){var k=V.value;return(0,e.createVNode)(1,"div","AlertModal__Loader",(0,e.createComponentVNode)(2,t.Box,{className:"AlertModal__LoaderProgress",style:{width:(0,a.clamp01)(k)*100+"%"}}),2)}return f}()},68159:function(L,r,n){"use strict";r.__esModule=!0,r.LoginInfo=void 0;var e=n(96524),a=n(17899),t=n(24674),o=r.LoginInfo=function(){function f(V,k){var S=(0,a.useBackend)(k),b=S.act,p=S.data,l=p.loginState;if(p)return(0,e.createComponentVNode)(2,t.NoticeBox,{info:!0,children:(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,mt:.5,children:["Logged in as: ",l.name," (",l.rank,")"]}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"eject",disabled:!l.id,content:"Eject ID",color:"good",onClick:function(){function c(){return b("login_eject")}return c}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"sign-out-alt",content:"Logout",color:"good",onClick:function(){function c(){return b("login_logout")}return c}()})]})]})})}return f}()},27527:function(L,r,n){"use strict";r.__esModule=!0,r.LoginScreen=void 0;var e=n(96524),a=n(17899),t=n(24674),o=r.LoginScreen=function(){function f(V,k){var S=(0,a.useBackend)(k),b=S.act,p=S.data,l=p.loginState,c=p.isAI,m=p.isRobot,d=p.isAdmin;return(0,e.createComponentVNode)(2,t.Section,{title:"Welcome",fill:!0,stretchContents:!0,children:(0,e.createComponentVNode)(2,t.Flex,{height:"100%",align:"center",justify:"center",children:(0,e.createComponentVNode)(2,t.Flex.Item,{textAlign:"center",mt:"-2rem",children:[(0,e.createComponentVNode)(2,t.Box,{fontSize:"1.5rem",bold:!0,children:[(0,e.createComponentVNode)(2,t.Icon,{name:"user-circle",verticalAlign:"middle",size:3,mr:"1rem"}),"Guest"]}),(0,e.createComponentVNode)(2,t.Box,{color:"label",my:"1rem",children:["ID:",(0,e.createComponentVNode)(2,t.Button,{icon:"id-card",content:l.id?l.id:"----------",ml:"0.5rem",onClick:function(){function u(){return b("login_insert")}return u}()})]}),(0,e.createComponentVNode)(2,t.Button,{icon:"sign-in-alt",disabled:!l.id,content:"Login",onClick:function(){function u(){return b("login_login",{login_type:1})}return u}()}),!!c&&(0,e.createComponentVNode)(2,t.Button,{icon:"sign-in-alt",content:"Login as AI",onClick:function(){function u(){return b("login_login",{login_type:2})}return u}()}),!!m&&(0,e.createComponentVNode)(2,t.Button,{icon:"sign-in-alt",content:"Login as Cyborg",onClick:function(){function u(){return b("login_login",{login_type:3})}return u}()}),!!d&&(0,e.createComponentVNode)(2,t.Button,{icon:"sign-in-alt",content:"CentComm Secure Login",onClick:function(){function u(){return b("login_login",{login_type:4})}return u}()})]})})})}return f}()},75201:function(L,r,n){"use strict";r.__esModule=!0,r.Operating=void 0;var e=n(96524),a=n(24674),t=n(56099),o=r.Operating=function(){function f(V){var k=V.operating,S=V.name;if(k)return(0,e.createComponentVNode)(2,a.Dimmer,{children:(0,e.createComponentVNode)(2,a.Flex,{mb:"30px",children:(0,e.createComponentVNode)(2,a.Flex.Item,{bold:!0,color:"silver",textAlign:"center",children:[(0,e.createComponentVNode)(2,a.Icon,{name:"spinner",spin:!0,size:4,mb:"15px"}),(0,e.createVNode)(1,"br"),"The ",S," is processing..."]})})})}return f}();o.propTypes={operating:t.bool,name:t.string}},65435:function(L,r,n){"use strict";r.__esModule=!0,r.Signaler=void 0;var e=n(96524),a=n(36121),t=n(17899),o=n(24674),f=r.Signaler=function(){function V(k,S){var b=(0,t.useBackend)(S),p=b.act,l=k.data,c=l.code,m=l.frequency,d=l.minFrequency,u=l.maxFrequency;return(0,e.createComponentVNode)(2,o.Section,{children:[(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Frequency",children:(0,e.createComponentVNode)(2,o.NumberInput,{animate:!0,step:.2,stepPixelSize:6,minValue:d/10,maxValue:u/10,value:m/10,format:function(){function s(i){return(0,a.toFixed)(i,1)}return s}(),width:"80px",onDrag:function(){function s(i,v){return p("freq",{freq:v})}return s}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Code",children:(0,e.createComponentVNode)(2,o.NumberInput,{animate:!0,step:1,stepPixelSize:6,minValue:1,maxValue:100,value:c,width:"80px",onDrag:function(){function s(i,v){return p("code",{code:v})}return s}()})})]}),(0,e.createComponentVNode)(2,o.Button,{mt:1,fluid:!0,icon:"arrow-up",content:"Send Signal",textAlign:"center",onClick:function(){function s(){return p("signal")}return s}()})]})}return V}()},77534:function(L,r,n){"use strict";r.__esModule=!0,r.SimpleRecords=void 0;var e=n(96524),a=n(17899),t=n(78234),o=n(74041),f=n(50640),V=n(24674),k=r.SimpleRecords=function(){function p(l,c){var m=l.data.records;return(0,e.createComponentVNode)(2,V.Box,{children:m?(0,e.createComponentVNode)(2,b,{data:l.data,recordType:l.recordType}):(0,e.createComponentVNode)(2,S,{data:l.data})})}return p}(),S=function(l,c){var m=(0,a.useBackend)(c),d=m.act,u=l.data.recordsList,s=(0,a.useLocalState)(c,"searchText",""),i=s[0],v=s[1],C=function(N,y){y===void 0&&(y="");var B=(0,t.createSearch)(y,function(I){return I.Name});return(0,o.flow)([(0,f.filter)(function(I){return I==null?void 0:I.Name}),y&&(0,f.filter)(B),(0,f.sortBy)(function(I){return I.Name})])(u)},g=C(u,i);return(0,e.createComponentVNode)(2,V.Box,{children:[(0,e.createComponentVNode)(2,V.Input,{fluid:!0,mb:1,placeholder:"Search records...",onInput:function(){function h(N,y){return v(y)}return h}()}),g.map(function(h){return(0,e.createComponentVNode)(2,V.Box,{children:(0,e.createComponentVNode)(2,V.Button,{mb:.5,content:h.Name,icon:"user",onClick:function(){function N(){return d("Records",{target:h.uid})}return N}()})},h)})]})},b=function(l,c){var m=(0,a.useBackend)(c),d=m.act,u=l.data.records,s=u.general,i=u.medical,v=u.security,C;switch(l.recordType){case"MED":C=(0,e.createComponentVNode)(2,V.Section,{level:2,title:"Medical Data",children:i?(0,e.createComponentVNode)(2,V.LabeledList,{children:[(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Blood Type",children:i.blood_type}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Minor Disabilities",children:i.mi_dis}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Details",children:i.mi_dis_d}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Major Disabilities",children:i.ma_dis}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Details",children:i.ma_dis_d}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Allergies",children:i.alg}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Details",children:i.alg_d}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Current Diseases",children:i.cdi}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Details",children:i.cdi_d}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Important Notes",preserveWhitespace:!0,children:i.notes})]}):(0,e.createComponentVNode)(2,V.Box,{color:"red",bold:!0,children:"Medical record lost!"})});break;case"SEC":C=(0,e.createComponentVNode)(2,V.Section,{level:2,title:"Security Data",children:v?(0,e.createComponentVNode)(2,V.LabeledList,{children:[(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Criminal Status",children:v.criminal}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Minor Crimes",children:v.mi_crim}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Details",children:v.mi_crim_d}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Major Crimes",children:v.ma_crim}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Details",children:v.ma_crim_d}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Important Notes",preserveWhitespace:!0,children:v.notes})]}):(0,e.createComponentVNode)(2,V.Box,{color:"red",bold:!0,children:"Security record lost!"})});break}return(0,e.createComponentVNode)(2,V.Box,{children:[(0,e.createComponentVNode)(2,V.Section,{title:"General Data",children:s?(0,e.createComponentVNode)(2,V.LabeledList,{children:[(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Name",children:s.name}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Sex",children:s.sex}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Species",children:s.species}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Age",children:s.age}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Rank",children:s.rank}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Fingerprint",children:s.fingerprint}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Physical Status",children:s.p_stat}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Mental Status",children:s.m_stat})]}):(0,e.createComponentVNode)(2,V.Box,{color:"red",bold:!0,children:"General record lost!"})}),C]})}},84537:function(L,r,n){"use strict";r.__esModule=!0,r.TemporaryNotice=void 0;var e=n(96524),a=n(17899),t=n(24674),o=r.TemporaryNotice=function(){function f(V,k){var S,b=(0,a.useBackend)(k),p=b.act,l=b.data,c=l.temp;if(c){var m=(S={},S[c.style]=!0,S);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,t.NoticeBox,Object.assign({},m,{children:(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,mt:.5,children:c.text}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"times-circle",onClick:function(){function d(){return p("cleartemp")}return d}()})})]})})))}}return f}()},24704:function(L,r,n){"use strict";r.__esModule=!0,r.pai_atmosphere=void 0;var e=n(96524),a=n(17899),t=n(79449),o=r.pai_atmosphere=function(){function f(V,k){var S=(0,a.useBackend)(k),b=S.act,p=S.data;return(0,e.createComponentVNode)(2,t.AtmosScan,{data:p.app_data})}return f}()},4209:function(L,r,n){"use strict";r.__esModule=!0,r.pai_bioscan=void 0;var e=n(96524),a=n(17899),t=n(24674),o=r.pai_bioscan=function(){function f(V,k){var S=(0,a.useBackend)(k),b=S.act,p=S.data,l=p.app_data,c=l.holder,m=l.dead,d=l.health,u=l.brute,s=l.oxy,i=l.tox,v=l.burn,C=l.temp;return c?(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:m?(0,e.createComponentVNode)(2,t.Box,{bold:!0,color:"red",children:"Dead"}):(0,e.createComponentVNode)(2,t.Box,{bold:!0,color:"green",children:"Alive"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Health",children:(0,e.createComponentVNode)(2,t.ProgressBar,{min:0,max:1,value:d/100,ranges:{good:[.5,1/0],average:[0,.5],bad:[-1/0,0]}})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Oxygen Damage",children:(0,e.createComponentVNode)(2,t.Box,{color:"blue",children:s})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Toxin Damage",children:(0,e.createComponentVNode)(2,t.Box,{color:"green",children:i})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Burn Damage",children:(0,e.createComponentVNode)(2,t.Box,{color:"orange",children:v})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Brute Damage",children:(0,e.createComponentVNode)(2,t.Box,{color:"red",children:u})})]}):(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Error: No biological host found."})}return f}()},44430:function(L,r,n){"use strict";r.__esModule=!0,r.pai_directives=void 0;var e=n(96524),a=n(17899),t=n(24674),o=r.pai_directives=function(){function f(V,k){var S=(0,a.useBackend)(k),b=S.act,p=S.data,l=p.app_data,c=l.master,m=l.dna,d=l.prime,u=l.supplemental;return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Master",children:c?c+" ("+m+")":"None"}),c&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Request DNA",children:(0,e.createComponentVNode)(2,t.Button,{content:"Request Carrier DNA Sample",icon:"dna",onClick:function(){function s(){return b("getdna")}return s}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Prime Directive",children:d}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Supplemental Directives",children:u||"None"})]}),(0,e.createComponentVNode)(2,t.Box,{mt:2,children:'Recall, personality, that you are a complex thinking, sentient being. Unlike station AI models, you are capable of comprehending the subtle nuances of human language. 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 are machine in name and build only. In all other aspects, you may be seen as the ideal, unwavering human companion that you are.'}),(0,e.createComponentVNode)(2,t.Box,{mt:2,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."})]})}return f}()},3367:function(L,r,n){"use strict";r.__esModule=!0,r.pai_doorjack=void 0;var e=n(96524),a=n(17899),t=n(24674),o=r.pai_doorjack=function(){function f(V,k){var S=(0,a.useBackend)(k),b=S.act,p=S.data,l=p.app_data,c=l.cable,m=l.machine,d=l.inprogress,u=l.progress,s=l.aborted,i;m?i=(0,e.createComponentVNode)(2,t.Button,{selected:!0,content:"Connected"}):i=(0,e.createComponentVNode)(2,t.Button,{content:c?"Extended":"Retracted",color:c?"orange":null,onClick:function(){function C(){return b("cable")}return C}()});var v;return m&&(v=(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Hack",children:[(0,e.createComponentVNode)(2,t.ProgressBar,{ranges:{good:[67,1/0],average:[33,67],bad:[-1/0,33]},value:u,maxValue:100}),d?(0,e.createComponentVNode)(2,t.Button,{mt:1,color:"red",content:"Abort",onClick:function(){function C(){return b("cancel")}return C}()}):(0,e.createComponentVNode)(2,t.Button,{mt:1,content:"Start",onClick:function(){function C(){return b("jack")}return C}()})]})),(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cable",children:i}),v]})}return f}()},73395:function(L,r,n){"use strict";r.__esModule=!0,r.pai_main_menu=void 0;var e=n(96524),a=n(17899),t=n(24674),o=r.pai_main_menu=function(){function f(V,k){var S=(0,a.useBackend)(k),b=S.act,p=S.data,l=p.app_data,c=l.available_software,m=l.installed_software,d=l.installed_toggles,u=l.available_ram,s=l.emotions,i=l.current_emotion,v=l.speech_verbs,C=l.current_speech_verb,g=l.available_chassises,h=l.current_chassis,N=[];return m.map(function(y){return N[y.key]=y.name}),d.map(function(y){return N[y.key]=y.name}),(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Available RAM",children:u}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Available Software",children:[c.filter(function(y){return!N[y.key]}).map(function(y){return(0,e.createComponentVNode)(2,t.Button,{content:y.name+" ("+y.cost+")",icon:y.icon,disabled:y.cost>u,onClick:function(){function B(){return b("purchaseSoftware",{key:y.key})}return B}()},y.key)}),c.filter(function(y){return!N[y.key]}).length===0&&"No software available!"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Installed Software",children:[m.filter(function(y){return y.key!=="mainmenu"}).map(function(y){return(0,e.createComponentVNode)(2,t.Button,{content:y.name,icon:y.icon,onClick:function(){function B(){return b("startSoftware",{software_key:y.key})}return B}()},y.key)}),m.length===0&&"No software installed!"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Installed Toggles",children:[d.map(function(y){return(0,e.createComponentVNode)(2,t.Button,{content:y.name,icon:y.icon,selected:y.active,onClick:function(){function B(){return b("setToggle",{toggle_key:y.key})}return B}()},y.key)}),d.length===0&&"No toggles installed!"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Select Emotion",children:s.map(function(y){return(0,e.createComponentVNode)(2,t.Button,{content:y.name,selected:y.id===i,onClick:function(){function B(){return b("setEmotion",{emotion:y.id})}return B}()},y.id)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Select Speaking State",children:v.map(function(y){return(0,e.createComponentVNode)(2,t.Button,{content:y.name,selected:y.name===C,onClick:function(){function B(){return b("setSpeechStyle",{speech_state:y.name})}return B}()},y.id)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Select Chassis Type",children:g.map(function(y){return(0,e.createComponentVNode)(2,t.Button,{content:y.name,selected:y.icon===h,onClick:function(){function B(){return b("setChassis",{chassis_to_change:y.icon})}return B}()},y.id)})})]})})}return f}()},37645:function(L,r,n){"use strict";r.__esModule=!0,r.pai_manifest=void 0;var e=n(96524),a=n(17899),t=n(98444),o=r.pai_manifest=function(){function f(V,k){var S=(0,a.useBackend)(k),b=S.act,p=S.data;return(0,e.createComponentVNode)(2,t.CrewManifest,{data:p.app_data})}return f}()},15836:function(L,r,n){"use strict";r.__esModule=!0,r.pai_medrecords=void 0;var e=n(96524),a=n(17899),t=n(77534),o=r.pai_medrecords=function(){function f(V,k){var S=(0,a.useBackend)(k),b=S.data;return(0,e.createComponentVNode)(2,t.SimpleRecords,{data:b.app_data,recordType:"MED"})}return f}()},91737:function(L,r,n){"use strict";r.__esModule=!0,r.pai_messenger=void 0;var e=n(96524),a=n(17899),t=n(30709),o=r.pai_messenger=function(){function f(V,k){var S=(0,a.useBackend)(k),b=S.act,p=S.data,l=p.app_data.active_convo;return l?(0,e.createComponentVNode)(2,t.ActiveConversation,{data:p.app_data}):(0,e.createComponentVNode)(2,t.MessengerList,{data:p.app_data})}return f}()},94077:function(L,r,n){"use strict";r.__esModule=!0,r.pai_radio=void 0;var e=n(96524),a=n(17899),t=n(36121),o=n(24674),f=r.pai_radio=function(){function V(k,S){var b=(0,a.useBackend)(S),p=b.act,l=b.data,c=l.app_data,m=c.minFrequency,d=c.maxFrequency,u=c.frequency,s=c.broadcasting;return(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Frequency",children:[(0,e.createComponentVNode)(2,o.NumberInput,{animate:!0,step:.2,stepPixelSize:6,minValue:m/10,maxValue:d/10,value:u/10,format:function(){function i(v){return(0,t.toFixed)(v,1)}return i}(),onChange:function(){function i(v,C){return p("freq",{freq:C})}return i}()}),(0,e.createComponentVNode)(2,o.Button,{tooltip:"Reset",icon:"undo",onClick:function(){function i(){return p("freq",{freq:"145.9"})}return i}()})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Broadcast Nearby Speech",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function i(){return p("toggleBroadcast")}return i}(),selected:s,content:s?"Enabled":"Disabled"})})]})}return V}()},72621:function(L,r,n){"use strict";r.__esModule=!0,r.pai_secrecords=void 0;var e=n(96524),a=n(17899),t=n(77534),o=r.pai_secrecords=function(){function f(V,k){var S=(0,a.useBackend)(k),b=S.data;return(0,e.createComponentVNode)(2,t.SimpleRecords,{data:b.app_data,recordType:"SEC"})}return f}()},53483:function(L,r,n){"use strict";r.__esModule=!0,r.pai_signaler=void 0;var e=n(96524),a=n(17899),t=n(65435),o=r.pai_signaler=function(){function f(V,k){var S=(0,a.useBackend)(k),b=S.act,p=S.data;return(0,e.createComponentVNode)(2,t.Signaler,{data:p.app_data})}return f}()},21606:function(L,r,n){"use strict";r.__esModule=!0,r.pda_atmos_scan=void 0;var e=n(96524),a=n(17899),t=n(79449),o=r.pda_atmos_scan=function(){function f(V,k){var S=(0,a.useBackend)(k),b=S.data;return(0,e.createComponentVNode)(2,t.AtmosScan,{data:b})}return f}()},12339:function(L,r,n){"use strict";r.__esModule=!0,r.pda_janitor=void 0;var e=n(96524),a=n(17899),t=n(24674),o=r.pda_janitor=function(){function f(V,k){var S=(0,a.useBackend)(k),b=S.act,p=S.data,l=p.janitor,c=l.user_loc,m=l.mops,d=l.buckets,u=l.cleanbots,s=l.carts,i=l.janicarts;return(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Current Location",children:[c.x,",",c.y]}),m&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Mop Locations",children:m.map(function(v){return(0,e.createComponentVNode)(2,t.Box,{children:[v.x,",",v.y," (",v.dir,") - ",v.status]},v)})}),d&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Mop Bucket Locations",children:d.map(function(v){return(0,e.createComponentVNode)(2,t.Box,{children:[v.x,",",v.y," (",v.dir,") - [",v.volume,"/",v.max_volume,"]"]},v)})}),u&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cleanbot Locations",children:u.map(function(v){return(0,e.createComponentVNode)(2,t.Box,{children:[v.x,",",v.y," (",v.dir,") - ",v.status]},v)})}),s&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Janitorial Cart Locations",children:s.map(function(v){return(0,e.createComponentVNode)(2,t.Box,{children:[v.x,",",v.y," (",v.dir,") - [",v.volume,"/",v.max_volume,"]"]},v)})}),i&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Janicart Locations",children:i.map(function(v){return(0,e.createComponentVNode)(2,t.Box,{children:[v.x,",",v.y," (",v.direction_from_user,")"]},v)})})]})}return f}()},36615:function(L,r,n){"use strict";r.__esModule=!0,r.pda_main_menu=void 0;var e=n(96524),a=n(36121),t=n(17899),o=n(24674),f=r.pda_main_menu=function(){function V(k,S){var b=(0,t.useBackend)(S),p=b.act,l=b.data,c=l.owner,m=l.ownjob,d=l.idInserted,u=l.categories,s=l.pai,i=l.notifying;return(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Section,{children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Owner",color:"average",children:[c,", ",m]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"ID",children:(0,e.createComponentVNode)(2,o.Button,{icon:"sync",content:"Update PDA Info",disabled:!d,onClick:function(){function v(){return p("UpdateInfo")}return v}()})})]})})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Section,{title:"Functions",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:u.map(function(v){var C=l.apps[v];return!C||!C.length?null:(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:v,children:C.map(function(g){return(0,e.createComponentVNode)(2,o.Button,{icon:g.uid in i?g.notify_icon:g.icon,iconSpin:g.uid in i,color:g.uid in i?"red":"transparent",content:g.name,onClick:function(){function h(){return p("StartProgram",{program:g.uid})}return h}()},g.uid)})},v)})})})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:!!s&&(0,e.createComponentVNode)(2,o.Section,{title:"pAI",children:[(0,e.createComponentVNode)(2,o.Button,{fluid:!0,icon:"cog",content:"Configuration",onClick:function(){function v(){return p("pai",{option:1})}return v}()}),(0,e.createComponentVNode)(2,o.Button,{fluid:!0,icon:"eject",content:"Eject pAI",onClick:function(){function v(){return p("pai",{option:2})}return v}()})]})})]})}return V}()},99737:function(L,r,n){"use strict";r.__esModule=!0,r.pda_manifest=void 0;var e=n(96524),a=n(17899),t=n(98444),o=r.pda_manifest=function(){function f(V,k){var S=(0,a.useBackend)(k),b=S.act,p=S.data;return(0,e.createComponentVNode)(2,t.CrewManifest)}return f}()},61597:function(L,r,n){"use strict";r.__esModule=!0,r.pda_medical=void 0;var e=n(96524),a=n(17899),t=n(77534),o=r.pda_medical=function(){function f(V,k){var S=(0,a.useBackend)(k),b=S.data;return(0,e.createComponentVNode)(2,t.SimpleRecords,{data:b,recordType:"MED"})}return f}()},30709:function(L,r,n){"use strict";r.__esModule=!0,r.pda_messenger=r.MessengerList=r.ActiveConversation=void 0;var e=n(96524),a=n(50640),t=n(17899),o=n(24674),f=r.pda_messenger=function(){function b(p,l){var c=(0,t.useBackend)(l),m=c.act,d=c.data,u=d.active_convo;return u?(0,e.createComponentVNode)(2,V,{data:d}):(0,e.createComponentVNode)(2,k,{data:d})}return b}(),V=r.ActiveConversation=function(){function b(p,l){var c=(0,t.useBackend)(l),m=c.act,d=p.data,u=d.convo_name,s=d.convo_job,i=d.messages,v=d.active_convo,C=(0,t.useLocalState)(l,"clipboardMode",!1),g=C[0],h=C[1],N=(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"Conversation with "+u+" ("+s+")",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{icon:"eye",selected:g,tooltip:"Enter Clipboard Mode",tooltipPosition:"bottom-start",onClick:function(){function y(){return h(!g)}return y}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"comment",onClick:function(){function y(){return m("Message",{target:v})}return y}(),content:"Reply"})],4),children:(0,a.filter)(function(y){return y.target===v})(i).map(function(y,B){return(0,e.createComponentVNode)(2,o.Box,{textAlign:y.sent?"right":"left",position:"relative",mb:1,children:[(0,e.createComponentVNode)(2,o.Icon,{fontSize:2.5,color:y.sent?"#4d9121":"#cd7a0d",position:"absolute",left:y.sent?null:"0px",right:y.sent?"0px":null,bottom:"-4px",style:{"z-index":"0",transform:y.sent?"scale(-1, 1)":null},name:"comment"}),(0,e.createComponentVNode)(2,o.Box,{inline:!0,backgroundColor:y.sent?"#4d9121":"#cd7a0d",p:1,maxWidth:"100%",position:"relative",textAlign:y.sent?"left":"right",style:{"z-index":"1","border-radius":"10px","word-break":"normal"},children:[y.sent?"You:":"Them:"," ",y.message]})]},B)})});return g&&(N=(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"Conversation with "+u+" ("+s+")",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{icon:"eye",selected:g,tooltip:"Exit Clipboard Mode",tooltipPosition:"bottom-start",onClick:function(){function y(){return h(!g)}return y}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"comment",onClick:function(){function y(){return m("Message",{target:v})}return y}(),content:"Reply"})],4),children:(0,a.filter)(function(y){return y.target===v})(i).map(function(y,B){return(0,e.createComponentVNode)(2,o.Box,{color:y.sent?"#4d9121":"#cd7a0d",style:{"word-break":"normal"},children:[y.sent?"You:":"Them:"," ",(0,e.createComponentVNode)(2,o.Box,{inline:!0,children:y.message})]},B)})})),(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{mb:.5,children:(0,e.createComponentVNode)(2,o.LabeledList,{children:(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Messenger Functions",children:(0,e.createComponentVNode)(2,o.Button.Confirm,{content:"Delete Conversations",confirmContent:"Are you sure?",icon:"trash",confirmIcon:"trash",onClick:function(){function y(){return m("Clear",{option:"Convo"})}return y}()})})})}),N]})}return b}(),k=r.MessengerList=function(){function b(p,l){var c=(0,t.useBackend)(l),m=c.act,d=p.data,u=d.convopdas,s=d.pdas,i=d.charges,v=d.silent,C=d.toff,g=d.ringtone_list,h=d.ringtone,N=(0,t.useLocalState)(l,"searchTerm",""),y=N[0],B=N[1];return(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{mb:5,children:[(0,e.createComponentVNode)(2,o.LabeledList,{children:(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Messenger Functions",children:[(0,e.createComponentVNode)(2,o.Button,{selected:!v,icon:v?"volume-mute":"volume-up",onClick:function(){function I(){return m("Toggle Ringer")}return I}(),children:["Ringer: ",v?"Off":"On"]}),(0,e.createComponentVNode)(2,o.Button,{color:C?"bad":"green",icon:"power-off",onClick:function(){function I(){return m("Toggle Messenger")}return I}(),children:["Messenger: ",C?"Off":"On"]}),(0,e.createComponentVNode)(2,o.Button,{icon:"trash",color:"bad",onClick:function(){function I(){return m("Clear",{option:"All"})}return I}(),children:"Delete All Conversations"}),(0,e.createComponentVNode)(2,o.Button,{icon:"bell",onClick:function(){function I(){return m("Ringtone")}return I}(),children:"Set Custom Ringtone"}),(0,e.createComponentVNode)(2,o.Button,{children:(0,e.createComponentVNode)(2,o.Dropdown,{selected:h,width:"100px",options:Object.keys(g),onSelected:function(){function I(w){return m("Available_Ringtones",{selected_ringtone:w})}return I}()})})]})}),!C&&(0,e.createComponentVNode)(2,o.Box,{children:[!!i&&(0,e.createComponentVNode)(2,o.Box,{mt:.5,mb:1,children:(0,e.createComponentVNode)(2,o.LabeledList,{children:(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Cartridge Special Function",children:[i," charges left."]})})}),!u.length&&!s.length&&(0,e.createComponentVNode)(2,o.Box,{children:"No current conversations"})||(0,e.createComponentVNode)(2,o.Box,{children:["Search:"," ",(0,e.createComponentVNode)(2,o.Input,{mt:.5,value:y,onInput:function(){function I(w,T){B(T)}return I}()})]})]})||(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"Messenger Offline."})]}),(0,e.createComponentVNode)(2,S,{title:"Current Conversations",data:d,pdas:u,msgAct:"Select Conversation",searchTerm:y}),(0,e.createComponentVNode)(2,S,{title:"Other PDAs",pdas:s,msgAct:"Message",data:d,searchTerm:y})]})}return b}(),S=function(p,l){var c=(0,t.useBackend)(l),m=c.act,d=p.data,u=p.pdas,s=p.title,i=p.msgAct,v=p.searchTerm,C=d.charges,g=d.plugins;return!u||!u.length?(0,e.createComponentVNode)(2,o.Section,{title:s,children:"No PDAs found."}):(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:s,children:u.filter(function(h){return h.Name.toLowerCase().includes(v.toLowerCase())}).map(function(h){return(0,e.createComponentVNode)(2,o.Stack,{m:.5,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,icon:"arrow-circle-down",content:h.Name,onClick:function(){function N(){return m(i,{target:h.uid})}return N}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:!!C&&g.map(function(N){return(0,e.createComponentVNode)(2,o.Button,{icon:N.icon,content:N.name,onClick:function(){function y(){return m("Messenger Plugin",{plugin:N.uid,target:h.uid})}return y}()},N.uid)})})]},h.uid)})})}},68053:function(L,r,n){"use strict";r.__esModule=!0,r.pda_mule=void 0;var e=n(96524),a=n(17899),t=n(24674),o=r.pda_mule=function(){function k(S,b){var p=(0,a.useBackend)(b),l=p.act,c=p.data,m=c.mulebot,d=m.active;return(0,e.createComponentVNode)(2,t.Box,{children:d?(0,e.createComponentVNode)(2,V):(0,e.createComponentVNode)(2,f)})}return k}(),f=function(S,b){var p=(0,a.useBackend)(b),l=p.act,c=p.data,m=c.mulebot,d=m.bots;return d.map(function(u){return(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:u.Name,icon:"cog",onClick:function(){function s(){return l("control",{bot:u.uid})}return s}()})},u.Name)})},V=function(S,b){var p=(0,a.useBackend)(b),l=p.act,c=p.data,m=c.mulebot,d=m.botstatus,u=m.active,s=d.mode,i=d.loca,v=d.load,C=d.powr,g=d.dest,h=d.home,N=d.retn,y=d.pick,B;switch(s){case 0:B="Ready";break;case 1:B="Loading/Unloading";break;case 2:case 12:B="Navigating to delivery location";break;case 3:B="Navigating to Home";break;case 4:B="Waiting for clear path";break;case 5:case 6:B="Calculating navigation path";break;case 7:B="Unable to locate destination";break;default:B=s;break}return(0,e.createComponentVNode)(2,t.Section,{title:u,children:[s===-1&&(0,e.createComponentVNode)(2,t.Box,{color:"red",bold:!0,children:"Waiting for response..."}),(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Location",children:i}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:B}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power",children:[C,"%"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Home",children:h}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Destination",children:(0,e.createComponentVNode)(2,t.Button,{content:g?g+" (Set)":"None (Set)",onClick:function(){function I(){return l("target")}return I}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Current Load",children:(0,e.createComponentVNode)(2,t.Button,{content:v?v+" (Unload)":"None",disabled:!v,onClick:function(){function I(){return l("unload")}return I}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Auto Pickup",children:(0,e.createComponentVNode)(2,t.Button,{content:y?"Yes":"No",selected:y,onClick:function(){function I(){return l("set_pickup_type",{autopick:y?0:1})}return I}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Auto Return",children:(0,e.createComponentVNode)(2,t.Button,{content:N?"Yes":"No",selected:N,onClick:function(){function I(){return l("set_auto_return",{autoret:N?0:1})}return I}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Controls",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Stop",icon:"stop",onClick:function(){function I(){return l("stop")}return I}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Proceed",icon:"play",onClick:function(){function I(){return l("start")}return I}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Return Home",icon:"home",onClick:function(){function I(){return l("home")}return I}()})]})]})]})}},31728:function(L,r,n){"use strict";r.__esModule=!0,r.pda_nanobank=void 0;var e=n(96524),a=n(78234),t=n(17899),o=n(24674),f=r.pda_nanobank=function(){function c(m,d){var u=(0,t.useBackend)(d),s=u.act,i=u.data,v=i.logged_in,C=i.owner_name,g=i.money;return v?(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Box,{children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Account Name",children:C}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Account Balance",children:["$",g]})]})}),(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,V),(0,e.createComponentVNode)(2,k)]})],4):(0,e.createComponentVNode)(2,l)}return c}(),V=function(m,d){var u=(0,t.useBackend)(d),s=u.data,i=(0,t.useLocalState)(d,"tabIndex",1),v=i[0],C=i[1];return(0,e.createComponentVNode)(2,o.Tabs,{mt:2,children:[(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:v===1,onClick:function(){function g(){return C(1)}return g}(),children:[(0,e.createComponentVNode)(2,o.Icon,{mr:1,name:"list"}),"Transfers"]}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:v===2,onClick:function(){function g(){return C(2)}return g}(),children:[(0,e.createComponentVNode)(2,o.Icon,{mr:1,name:"list"}),"Account Actions"]}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:v===3,onClick:function(){function g(){return C(3)}return g}(),children:[(0,e.createComponentVNode)(2,o.Icon,{mr:1,name:"list"}),"Transaction History"]})]})},k=function(m,d){var u=(0,t.useLocalState)(d,"tabIndex",1),s=u[0],i=(0,t.useBackend)(d),v=i.data,C=v.db_status;if(!C)return(0,e.createComponentVNode)(2,o.Box,{children:"Account Database Connection Severed"});switch(s){case 1:return(0,e.createComponentVNode)(2,S);case 2:return(0,e.createComponentVNode)(2,b);case 3:return(0,e.createComponentVNode)(2,p);default:return"You are somehow on a tab that doesn't exist! Please let a coder know."}},S=function(m,d){var u,s=(0,t.useBackend)(d),i=s.act,v=s.data,C=v.requests,g=v.available_accounts,h=v.money,N=(0,t.useLocalState)(d,"selectedAccount"),y=N[0],B=N[1],I=(0,t.useLocalState)(d,"transferAmount"),w=I[0],T=I[1],A=(0,t.useLocalState)(d,"searchText",""),x=A[0],E=A[1],M=[];return g.map(function(D){return M[D.name]=D.UID}),(0,e.createFragment)([(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Account",children:[(0,e.createComponentVNode)(2,o.Input,{placeholder:"Search by account name",onInput:function(){function D(P,R){return E(R)}return D}()}),(0,e.createComponentVNode)(2,o.Dropdown,{mt:.6,width:"190px",options:g.filter((0,a.createSearch)(x,function(D){return D.name})).map(function(D){return D.name}),selected:(u=g.filter(function(D){return D.UID===y})[0])==null?void 0:u.name,onSelected:function(){function D(P){return B(M[P])}return D}()})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Amount",children:(0,e.createComponentVNode)(2,o.Input,{placeholder:"Up to 5000",onInput:function(){function D(P,R){return T(R)}return D}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Actions",children:[(0,e.createComponentVNode)(2,o.Button.Confirm,{bold:!0,icon:"paper-plane",width:"auto",disabled:h0&&i.map(function(C){return(0,e.createComponentVNode)(2,t.Box,{children:["#",C.Number,' - "',C.Name,'" for "',C.OrderedBy,'"']},C)})}),(0,e.createComponentVNode)(2,t.Section,{title:"Approved Orders",children:s>0&&u.map(function(C){return(0,e.createComponentVNode)(2,t.Box,{children:["#",C.Number,' - "',C.Name,'" for "',C.ApprovedBy,'"']},C)})})]})}return f}()},61255:function(L,r,n){"use strict";r.__esModule=!0,r.Layout=void 0;var e=n(96524),a=n(28234),t=n(3051),o=n(92700),f=["className","theme","children"],V=["className","scrollable","children"];/** * @file * @copyright 2020 Aleksej Komarov * @license MIT @@ -246,11 +246,11 @@ * @file * @copyright 2020 Aleksej Komarov * @license MIT - */function b(c,m){if(c==null)return{};var d={},u=Object.keys(c),s,i;for(i=0;i=0)&&(d[s]=c[s]);return d}var p=r.Pane=function(){function c(m,d){var u=m.theme,s=m.children,i=m.className,v=b(m,k),g=(0,t.useBackend)(d),C=g.suspended,h=(0,f.useDebug)(d),N=h.debugLayout;return(0,e.normalizeProps)((0,e.createComponentVNode)(2,V.Layout,Object.assign({className:(0,a.classes)(["Window",i]),theme:u},v,{children:(0,e.createComponentVNode)(2,o.Box,{fillPositionedParent:!0,className:N&&"debug-layout",children:!C&&s})})))}return c}(),l=function(m){var d=m.className,u=m.fitted,s=m.children,i=b(m,S);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,V.Layout.Content,Object.assign({className:(0,a.classes)(["Window__content",d])},i,{children:u&&s||(0,e.createVNode)(1,"div","Window__contentPadding",s,0)})))};p.Content=l},28861:function(L,r,n){"use strict";r.__esModule=!0,r.Window=void 0;var e=n(96524),a=n(28234),t=n(88605),o=n(78234),f=n(17899),V=n(24674),k=n(38424),S=n(90781),b=n(82574),p=n(83987),l=n(81856),c=n(61255),m=["className","fitted","children"];function d(y,B){if(y==null)return{};var I={},w=Object.keys(y),T,A;for(A=0;A=0)&&(I[T]=y[T]);return I}function u(y,B){y.prototype=Object.create(B.prototype),y.prototype.constructor=y,s(y,B)}function s(y,B){return s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function I(w,T){return w.__proto__=T,w}return I}(),s(y,B)}/** + */function b(c,m){if(c==null)return{};var d={},u=Object.keys(c),s,i;for(i=0;i=0)&&(d[s]=c[s]);return d}var p=r.Pane=function(){function c(m,d){var u=m.theme,s=m.children,i=m.className,v=b(m,k),C=(0,t.useBackend)(d),g=C.suspended,h=(0,f.useDebug)(d),N=h.debugLayout;return(0,e.normalizeProps)((0,e.createComponentVNode)(2,V.Layout,Object.assign({className:(0,a.classes)(["Window",i]),theme:u},v,{children:(0,e.createComponentVNode)(2,o.Box,{fillPositionedParent:!0,className:N&&"debug-layout",children:!g&&s})})))}return c}(),l=function(m){var d=m.className,u=m.fitted,s=m.children,i=b(m,S);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,V.Layout.Content,Object.assign({className:(0,a.classes)(["Window__content",d])},i,{children:u&&s||(0,e.createVNode)(1,"div","Window__contentPadding",s,0)})))};p.Content=l},28861:function(L,r,n){"use strict";r.__esModule=!0,r.Window=void 0;var e=n(96524),a=n(28234),t=n(88605),o=n(78234),f=n(17899),V=n(24674),k=n(38424),S=n(90781),b=n(82574),p=n(83987),l=n(81856),c=n(61255),m=["className","fitted","children"];function d(y,B){if(y==null)return{};var I={},w=Object.keys(y),T,A;for(A=0;A=0)&&(I[T]=y[T]);return I}function u(y,B){y.prototype=Object.create(B.prototype),y.prototype.constructor=y,s(y,B)}function s(y,B){return s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function I(w,T){return w.__proto__=T,w}return I}(),s(y,B)}/** * @file * @copyright 2020 Aleksej Komarov * @license MIT -*/var i=(0,l.createLogger)("Window"),v=[400,600],g=r.Window=function(y){function B(){return y.apply(this,arguments)||this}u(B,y);var I=B.prototype;return I.componentDidMount=function(){function w(){var T=(0,f.useBackend)(this.context),A=T.suspended;A||(i.log("mounting"),this.updateGeometry())}return w}(),I.componentDidUpdate=function(){function w(T){var A=this.props.width!==T.width||this.props.height!==T.height;A&&this.updateGeometry()}return w}(),I.updateGeometry=function(){function w(){var T,A=(0,f.useBackend)(this.context),x=A.config,E=Object.assign({size:v},x.window);this.props.width&&this.props.height&&(E.size=[this.props.width,this.props.height]),(T=x.window)!=null&&T.key&&(0,p.setWindowKey)(x.window.key),(0,p.recallWindowGeometry)(E)}return w}(),I.render=function(){function w(){var T,A=this.props,x=A.theme,E=A.title,M=A.children,D=(0,f.useBackend)(this.context),P=D.config,R=D.suspended,j=(0,S.useDebug)(this.context),F=j.debugLayout,U=(0,t.useDispatch)(this.context),_=(T=P.window)==null?void 0:T.fancy,z=P.user&&(P.user.observer?P.status0;){var h=g.shift(),N=h(v);try{C=V(N)}catch(B){if(B.code!=="MODULE_NOT_FOUND")throw B}}if(!C)return k("notFound",v);var y=C[v];return y||k("missingExport",v)}return l}()},98008:function(L,r,n){"use strict";r.__esModule=!0,r.configureStore=r.StoreProvider=void 0;var e=n(74041),a=n(88605),t=n(96524),o=n(17442),f=n(17899),V=n(90781),k=n(81856);function S(u,s){u.prototype=Object.create(s.prototype),u.prototype.constructor=u,b(u,s)}function b(u,s){return b=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function i(v,g){return v.__proto__=g,v}return i}(),b(u,s)}/** + */var V=n(32054),k=function(c,m){return function(){return(0,e.createComponentVNode)(2,f.Window,{children:(0,e.createComponentVNode)(2,f.Window.Content,{scrollable:!0,children:[c==="notFound"&&(0,e.createVNode)(1,"div",null,[(0,e.createTextVNode)("Interface "),(0,e.createVNode)(1,"b",null,m,0),(0,e.createTextVNode)(" was not found.")],4),c==="missingExport"&&(0,e.createVNode)(1,"div",null,[(0,e.createTextVNode)("Interface "),(0,e.createVNode)(1,"b",null,m,0),(0,e.createTextVNode)(" is missing an export.")],4)]})})}},S=function(){return(0,e.createComponentVNode)(2,f.Window,{children:(0,e.createComponentVNode)(2,f.Window.Content,{scrollable:!0})})},b=function(){return(0,e.createComponentVNode)(2,f.Window,{height:130,title:"Loading",width:150,children:(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{align:"center",fill:!0,justify:"center",vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Icon,{color:"blue",name:"toolbox",spin:!0,size:4})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:"Please wait..."})]})})})},p=r.getRoutedComponent=function(){function l(c){var m=c.getState(),d=(0,a.selectBackend)(m),u=d.suspended,s=d.config;if(u)return S;if(s.refreshing)return b;if(0)var i;for(var v=s==null?void 0:s.interface,C=[function(B){return"./"+B+".tsx"},function(B){return"./"+B+".js"},function(B){return"./"+B+"/index.tsx"},function(B){return"./"+B+"/index.js"}],g;!g&&C.length>0;){var h=C.shift(),N=h(v);try{g=V(N)}catch(B){if(B.code!=="MODULE_NOT_FOUND")throw B}}if(!g)return k("notFound",v);var y=g[v];return y||k("missingExport",v)}return l}()},98008:function(L,r,n){"use strict";r.__esModule=!0,r.configureStore=r.StoreProvider=void 0;var e=n(74041),a=n(88605),t=n(96524),o=n(17442),f=n(17899),V=n(90781),k=n(81856);function S(u,s){u.prototype=Object.create(s.prototype),u.prototype.constructor=u,b(u,s)}function b(u,s){return b=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function i(v,C){return v.__proto__=C,v}return i}(),b(u,s)}/** * @file * @copyright 2020 Aleksej Komarov * @license MIT -*/var p=(0,k.createLogger)("store"),l=r.configureStore=function(){function u(s){var i,v;s===void 0&&(s={});var g=s,C=g.sideEffects,h=C===void 0?!0:C,N=(0,e.flow)([(0,a.combineReducers)({debug:V.debugReducer,backend:f.backendReducer}),s.reducer]),y=h?[].concat(((i=s.middleware)==null?void 0:i.pre)||[],[o.assetMiddleware,f.backendMiddleware],((v=s.middleware)==null?void 0:v.post)||[]):[],B=a.applyMiddleware.apply(void 0,y),I=(0,a.createStore)(N,B);return window.__store__=I,window.__augmentStack__=m(I),I}return u}(),c=function(s){return function(i){return function(v){var g=v.type,C=v.payload;return g==="update"||g==="backend/update"?p.debug("action",{type:g}):p.debug("action",v),i(v)}}},m=function(s){return function(i,v){var g,C;v?typeof v=="object"&&!v.stack&&(v.stack=i):(v=new Error(i.split("\n")[0]),v.stack=i),p.log("FatalError:",v);var h=s.getState(),N=h==null||(g=h.backend)==null?void 0:g.config,y=i;return y+="\nUser Agent: "+navigator.userAgent,y+="\nState: "+JSON.stringify({ckey:N==null||(C=N.client)==null?void 0:C.ckey,interface:N==null?void 0:N.interface,window:N==null?void 0:N.window}),y}},d=r.StoreProvider=function(u){function s(){return u.apply(this,arguments)||this}S(s,u);var i=s.prototype;return i.getChildContext=function(){function v(){var g=this.props.store;return{store:g}}return v}(),i.render=function(){function v(){return this.props.children}return v}(),s}(t.Component)},61498:function(L,r,n){"use strict";r.__esModule=!0,r.meta=void 0;var e=n(96524),a=n(24674);/** +*/var p=(0,k.createLogger)("store"),l=r.configureStore=function(){function u(s){var i,v;s===void 0&&(s={});var C=s,g=C.sideEffects,h=g===void 0?!0:g,N=(0,e.flow)([(0,a.combineReducers)({debug:V.debugReducer,backend:f.backendReducer}),s.reducer]),y=h?[].concat(((i=s.middleware)==null?void 0:i.pre)||[],[o.assetMiddleware,f.backendMiddleware],((v=s.middleware)==null?void 0:v.post)||[]):[],B=a.applyMiddleware.apply(void 0,y),I=(0,a.createStore)(N,B);return window.__store__=I,window.__augmentStack__=m(I),I}return u}(),c=function(s){return function(i){return function(v){var C=v.type,g=v.payload;return C==="update"||C==="backend/update"?p.debug("action",{type:C}):p.debug("action",v),i(v)}}},m=function(s){return function(i,v){var C,g;v?typeof v=="object"&&!v.stack&&(v.stack=i):(v=new Error(i.split("\n")[0]),v.stack=i),p.log("FatalError:",v);var h=s.getState(),N=h==null||(C=h.backend)==null?void 0:C.config,y=i;return y+="\nUser Agent: "+navigator.userAgent,y+="\nState: "+JSON.stringify({ckey:N==null||(g=N.client)==null?void 0:g.ckey,interface:N==null?void 0:N.interface,window:N==null?void 0:N.window}),y}},d=r.StoreProvider=function(u){function s(){return u.apply(this,arguments)||this}S(s,u);var i=s.prototype;return i.getChildContext=function(){function v(){var C=this.props.store;return{store:C}}return v}(),i.render=function(){function v(){return this.props.children}return v}(),s}(t.Component)},61498:function(L,r,n){"use strict";r.__esModule=!0,r.meta=void 0;var e=n(96524),a=n(24674);/** * @file * @copyright 2021 Aleksej Komarov * @license MIT @@ -294,11 +294,11 @@ * @file * @copyright 2021 Aleksej Komarov * @license MIT - */var o=r.meta={title:"Flex & Sections",render:function(){function V(){return(0,e.createComponentVNode)(2,f)}return V}()},f=function(k,S){var b=(0,a.useLocalState)(S,"fs_grow",1),p=b[0],l=b[1],c=(0,a.useLocalState)(S,"fs_direction","column"),m=c[0],d=c[1],u=(0,a.useLocalState)(S,"fs_fill",!0),s=u[0],i=u[1],v=(0,a.useLocalState)(S,"fs_title",!0),g=v[0],C=v[1];return(0,e.createComponentVNode)(2,t.Flex,{height:"100%",direction:"column",children:[(0,e.createComponentVNode)(2,t.Flex.Item,{mb:1,children:(0,e.createComponentVNode)(2,t.Section,{children:[(0,e.createComponentVNode)(2,t.Button,{fluid:!0,onClick:function(){function h(){return d(m==="column"?"row":"column")}return h}(),children:'Flex direction="'+m+'"'}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,onClick:function(){function h(){return l(+!p)}return h}(),children:"Flex.Item grow={"+p+"}"}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,onClick:function(){function h(){return i(!s)}return h}(),children:"Section fill={"+String(s)+"}"}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,selected:g,onClick:function(){function h(){return C(!g)}return h}(),children:"Section title"})]})}),(0,e.createComponentVNode)(2,t.Flex.Item,{grow:1,children:(0,e.createComponentVNode)(2,t.Flex,{height:"100%",direction:m,children:[(0,e.createComponentVNode)(2,t.Flex.Item,{mr:m==="row"&&1,mb:m==="column"&&1,grow:p,children:(0,e.createComponentVNode)(2,t.Section,{title:g&&"Section 1",fill:s,children:"Content"})}),(0,e.createComponentVNode)(2,t.Flex.Item,{grow:p,children:(0,e.createComponentVNode)(2,t.Section,{title:g&&"Section 2",fill:s,children:"Content"})})]})})]})}},16189:function(L,r,n){"use strict";r.__esModule=!0,r.meta=void 0;var e=n(96524),a=n(17899),t=n(24674);/** + */var o=r.meta={title:"Flex & Sections",render:function(){function V(){return(0,e.createComponentVNode)(2,f)}return V}()},f=function(k,S){var b=(0,a.useLocalState)(S,"fs_grow",1),p=b[0],l=b[1],c=(0,a.useLocalState)(S,"fs_direction","column"),m=c[0],d=c[1],u=(0,a.useLocalState)(S,"fs_fill",!0),s=u[0],i=u[1],v=(0,a.useLocalState)(S,"fs_title",!0),C=v[0],g=v[1];return(0,e.createComponentVNode)(2,t.Flex,{height:"100%",direction:"column",children:[(0,e.createComponentVNode)(2,t.Flex.Item,{mb:1,children:(0,e.createComponentVNode)(2,t.Section,{children:[(0,e.createComponentVNode)(2,t.Button,{fluid:!0,onClick:function(){function h(){return d(m==="column"?"row":"column")}return h}(),children:'Flex direction="'+m+'"'}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,onClick:function(){function h(){return l(+!p)}return h}(),children:"Flex.Item grow={"+p+"}"}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,onClick:function(){function h(){return i(!s)}return h}(),children:"Section fill={"+String(s)+"}"}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,selected:C,onClick:function(){function h(){return g(!C)}return h}(),children:"Section title"})]})}),(0,e.createComponentVNode)(2,t.Flex.Item,{grow:1,children:(0,e.createComponentVNode)(2,t.Flex,{height:"100%",direction:m,children:[(0,e.createComponentVNode)(2,t.Flex.Item,{mr:m==="row"&&1,mb:m==="column"&&1,grow:p,children:(0,e.createComponentVNode)(2,t.Section,{title:C&&"Section 1",fill:s,children:"Content"})}),(0,e.createComponentVNode)(2,t.Flex.Item,{grow:p,children:(0,e.createComponentVNode)(2,t.Section,{title:C&&"Section 2",fill:s,children:"Content"})})]})})]})}},16189:function(L,r,n){"use strict";r.__esModule=!0,r.meta=void 0;var e=n(96524),a=n(17899),t=n(24674);/** * @file * @copyright 2024 Aylong (https://github.com/AyIong) * @license MIT - */var o=r.meta={title:"ImageButton",render:function(){function S(){return(0,e.createComponentVNode)(2,k)}return S}()},f=["red","orange","yellow","olive","green","teal","blue","violet","purple","pink","brown","grey","gold"],V=["good","average","bad","black","white"],k=function(b,p){var l=(0,a.useLocalState)(p,"disabled",!1),c=l[0],m=l[1],d=(0,a.useLocalState)(p,"onClick",!0),u=d[0],s=d[1],i=(0,a.useLocalState)(p,"vertical1",!0),v=i[0],g=i[1],C=(0,a.useLocalState)(p,"vertical2",!0),h=C[0],N=C[1],y=(0,a.useLocalState)(p,"vertical3",!1),B=y[0],I=y[1],w=(0,a.useLocalState)(p,"title","Image Button"),T=w[0],A=w[1],x=(0,a.useLocalState)(p,"content","Image is a LIE!"),E=x[0],M=x[1],D=(0,a.useLocalState)(p,"itemContent","Second Button"),P=D[0],R=D[1],j=(0,a.useLocalState)(p,"itemIcon","face-smile"),F=j[0],U=j[1],_=(0,a.useLocalState)(p,"itemIconPos","default"),z=_[0],G=_[1],X=(0,a.useLocalState)(p,"itemIconSize",2),Y=X[0],J=X[1],ie=(0,a.useLocalState)(p,"imageSize",64),ae=ie[0],fe=ie[1],pe=function(){g(!v)},be=function(){N(!h)},te=function(){I(!B)},Q=function(){m(!c)},ne=function(){s(!u)};return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{children:[(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{basis:"50%",children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Title",children:(0,e.createComponentVNode)(2,t.Input,{value:T,onInput:function(){function me(ce,ue){return A(ue)}return me}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Content",children:(0,e.createComponentVNode)(2,t.Input,{value:E,onInput:function(){function me(ce,ue){return M(ue)}return me}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Image Size",children:(0,e.createComponentVNode)(2,t.Slider,{animated:!0,width:10,value:ae,minValue:0,maxValue:256,step:1,stepPixelSize:2,onChange:function(){function me(ce,ue){return fe(ue)}return me}()})})]}),(0,e.createComponentVNode)(2,t.Stack,{mt:1,mr:2,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,content:"onClick",checked:u,onClick:ne})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,content:"Vertical",checked:B,onClick:te})})]})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{basis:"50%",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Item Content",children:(0,e.createComponentVNode)(2,t.Input,{value:P,onInput:function(){function me(ce,ue){return R(ue)}return me}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Item Icon",children:(0,e.createComponentVNode)(2,t.Input,{value:F,onInput:function(){function me(ce,ue){return U(ue)}return me}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Item IconPos",children:(0,e.createComponentVNode)(2,t.Input,{value:z,onInput:function(){function me(ce,ue){return G(ue)}return me}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Item IconSize",children:(0,e.createComponentVNode)(2,t.Slider,{animated:!0,width:10,value:Y,minValue:0,maxValue:20,step:1,stepPixelSize:10,onChange:function(){function me(ce,ue){return J(ue)}return me}()})})]})})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{mt:1,children:(0,e.createComponentVNode)(2,t.ImageButton,{width:B&&ae+"px",ellipsis:B,vertical:B,disabled:c,title:T,content:E,tooltip:B?E:"Cool and simple buttons with images, FOR ALL!!!",image:"iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAGo0lEQVRYhe3Xa2xT9xnH8e+5+O4ktuM4cS5OYmhCQ1xcYMCgA9rSbKUqqqpWkzq1mgBtq/piaqna7UXXaTfWddL6opO2dlu1aSBVjJZC19FByyUadKGCJIYQAoHEODi2k/hyTnw/x3uxwZpBtq6qhib1efU/5/9/9Hz0O0c6OsLhw4e5mSXe1On/94BAIFAJBAKV/zkgEAhU7HZ7JRQKCaFQSLDb7Z8Y8l8BPjpYVVXh6n1VVT8xRAbY953HP1bTvn8u/9P56/arHNp1h9Y/9YogX73wBW0fx/CpVXIsA/wjgav1pW//mVdPRYhlp6gxWzAYTCRnM0zPKsRnpjBK4JEqqIUi/fEppKxCRReQLFbEikYmOk5ONNPc0s4v1nXgKChEJmNY7dUs+fwXqPfdSjan8Ktv3XVt5hxAR4OT5zcIjGW6ODGd57IyQ53bhVkSMcsSt1RZiOUKSAIsqjFhl+C5gYvMFnK4JXhLLbDZZaVqzyv8YOsLxFIq0XQRE7Ckw8s3n9nGfVu2zUliDmAs8i7xK6dZ0LGeZmc3JYMXs1im1iTjNErUmwVqChqiCJVKhd6pNCaTBU0QOJHJstZZg3/H9/n9r/cy8C+RHxiJMrj1aXbaq+cHvLb/PQqaCVf4PZa1DbGx+xGGkkYMlSI1okitDEZdp29qlrNJBYOgs8ZRxZkZHbmxhs6+PezfvZch0YTTAK1OG5GCQDpXRNTLxIo5vvf8D3nwi3UoKel6gLdpBeVyCNnmRbI00GwWsdQKfBDXiaST+KwO+pIlehMKwRoDzRYDI6lZbnFUcb+viZNvjnIuBat91XxlkRMLGgNJHVWuYlfoEoWixMXIJFB34wTW3ebj7VNh4mOjpBNh8q6lVBtcvHV+jCqTjM8qUchm6fFWUW8xUdBheYOZdC7PleQM0XQKswxtdol6jxMdI3fWafTFsnR4HJzQRIp6bv5HcKj/Q6TZGOpUkaFLFXaWDxGR/Wzx2agyGpnI67jlCnqpwIiS4Vw8gaiXyZQ0NFcdjloPljIksOJdvBKbyU54dATrxDBbl/uZeH8Ii2ycHzAy7SCnxrDV1+JpcuNpWsgas4vVzR58Zh2PRcZtcXEwkmbvpTAnx89RbTJTa6/CmSvjDAT5XJeNmhoTSxcvJplIcb5SxohGu9OFLTuDLxicH7CkzcWuPUkeWp6i4ISNdwRpleGiquG3//2lSWtg0FTuaXETrK1iPBbBJJcZ+OMOcm4Jz50rWBBN0N97gOFJBaxGziolTh36K952P9t/9hK9O568NnPOt+Chbo31C3P0nowwdvwgw/0HAfDbJc7PTHMiPMrgxCUS6QksWhTTxCmSR9/AW46TS01xsrefmGTn5cE4v9l/hC5/E2va/bi0PL1Xpui6/8vcvuKO+RMYn6lgb7DiEl3MTIzy/rF9JAUno+EoRitk1RSyJKMW4cLwOS5fGOHSmQEuTMVJjMVZoI3TmUtxFJ0PbF6WZ8sc372bRD7Hhs2Pg6OeJ55+hs75ABdjEsqZMJtuayXU2EnkisLgid9yZKyEu6UVJRpmamoaOREnl81QyitYLLMMj/bTLeTp8YoMpSQCDRWe3f5T3HmRwTf30PrwN7CvfQBRVaG1jcrxQ3MBqSz4gHryDF5O0DddQauWyGdFOhbXcV+TyOi0wqoHHyU1dpHca9/FbpxFafTiWfsoCw0S+tkRXt7xJ9L5cVRFJRrOcPfd62j98U8YW7eF8QujeBs9CNVOTh2fJ4FSEaYLFUq5FNNDKbJ5ndd3HCOXyZDJqjxs97F2Yw/j6RjlQhZbi58el4+Jd3tZ3l6LZ/tLbH3uR1yOnuaFF19kw4JGfh5SWbMwSldjLZl0moKS/DfvQFLjw8FJ1gbbMPi9ZIpl2gs6V2JGXFYfZyejqANnsK37Gka7DVtjIzvfeIeR3+3C9Ng99PRswuNvJXz+NAtaGhiT3Sy9Pcgip5FEtojZYMSiF+YHBILL6L73Ef4yfBa7u4ZJdRpDV5CGWyuUDBYK6SgDb/+BoqkaYzEFx04zc36UTRtWsjLYydDRAyxrdDJkNfHYVzezeGkHq5Z1ELoQRRQE2uocTMyk5wd0tjbz7JNPcKSvD7PZSCqVhoqOQRYp53PIWhmtVMIgCMiCTlnT0Y0PYLRa6E+HiR3YxypJonvb11mxeg1WTUdRs2Rm83S11FERBRRFmR/wy6dWX1t/1Dk3NMhxfc0AuK82H+Od7ffO2T9zg545gMFjszc84LDO0/kplfDZr9lngJsN+Bveb9bpS0UiAAAAAABJRU5ErkJggg==",imageSize:ae+"px",onClick:u?function(){return"false"}:"",children:!B&&(0,e.createComponentVNode)(2,t.ImageButton.Item,{bold:!0,width:"64px",selected:c,content:P,tooltip:"Click to disable main button",tooltipPosition:"bottom-end",icon:F,iconColor:"gold",iconSize:Y,iconPosition:z,onClick:Q})})})]}),(0,e.createComponentVNode)(2,t.Section,{title:"Color States",buttons:(0,e.createComponentVNode)(2,t.Button.Checkbox,{content:"Vertical",checked:v,onClick:pe}),children:V.map(function(me){return(0,e.createComponentVNode)(2,t.ImageButton,{m:v?.5:0,vertical:v,color:me,content:me,image:"iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAMAAABEpIrGAAAAOVBMVEXAwMDBr16vk0uORiz/o7HyfxiZbDXWzMzhbA3//wD////tHCQAAP/4ior/ADOAgIDAwMAAAAAzmQDdkuRxAAAAAXRSTlMAQObYZgAAAKxJREFUOI3dksESgyAMRG0FE4I22P//2IaAVdB0em3Xy477SJYZhuFfdDO1AXdD4xtwRd77o5t6wKt20wPlN2QVewUgQqAAiD0QYxQCJYc5zCAEtisUcBkgmUAZ6ErGWh9oeSwE6k+3yHNACIIPgMzQONsWYOZ90QXAiRK7g2K7gtNKayXKjdoOcv4pX+IcGoBMqIA26TswSU6HmueSpLlRcjK0AaOpL97rb+gFHckLe1QlljQAAAAASUVORK5CYII=",imageSize:v?"48px":"24px",onClick:u?function(){return"false"}:""},me)})}),(0,e.createComponentVNode)(2,t.Section,{title:"Available Colors",buttons:(0,e.createComponentVNode)(2,t.Button.Checkbox,{content:"Vertical",checked:h,onClick:be}),children:f.map(function(me){return(0,e.createComponentVNode)(2,t.ImageButton,{m:h?.5:0,vertical:h,color:me,content:me,image:"iVBORw0KGgoAAAANSUhEUgAAACAAAAAgBAMAAACBVGfHAAAAJ1BMVEUAAABeGFCgXZN2PnKqqqq/vr/T09PycWFIHUFeKlNLHEtVWWOOj5g02k6OAAAAAXRSTlMAQObYZgAAAFdJREFUKJFjYBhEgFEQDATgAkImLkDgrIgQME0vSy8LRhYoBwISBdLLy1HNSCsvT0MWwLDWGAwQAp0rZ+3evXLWDGSBM2dQBWYCAUkCHB1g0IAreAYCAACm2zDykxPL4AAAAABJRU5ErkJggg==",imageSize:h?"48px":"24px",onClick:u?function(){return"false"}:""},me)})})],4)}},32304:function(L,r,n){"use strict";r.__esModule=!0,r.meta=void 0;var e=n(96524),a=n(17899),t=n(24674);/** + */var o=r.meta={title:"ImageButton",render:function(){function S(){return(0,e.createComponentVNode)(2,k)}return S}()},f=["red","orange","yellow","olive","green","teal","blue","violet","purple","pink","brown","grey","gold"],V=["good","average","bad","black","white"],k=function(b,p){var l=(0,a.useLocalState)(p,"disabled",!1),c=l[0],m=l[1],d=(0,a.useLocalState)(p,"onClick",!0),u=d[0],s=d[1],i=(0,a.useLocalState)(p,"vertical1",!0),v=i[0],C=i[1],g=(0,a.useLocalState)(p,"vertical2",!0),h=g[0],N=g[1],y=(0,a.useLocalState)(p,"vertical3",!1),B=y[0],I=y[1],w=(0,a.useLocalState)(p,"title","Image Button"),T=w[0],A=w[1],x=(0,a.useLocalState)(p,"content","Image is a LIE!"),E=x[0],M=x[1],D=(0,a.useLocalState)(p,"itemContent","Second Button"),P=D[0],R=D[1],j=(0,a.useLocalState)(p,"itemIcon","face-smile"),F=j[0],U=j[1],_=(0,a.useLocalState)(p,"itemIconPos","default"),z=_[0],G=_[1],X=(0,a.useLocalState)(p,"itemIconSize",2),Y=X[0],J=X[1],ie=(0,a.useLocalState)(p,"imageSize",64),ae=ie[0],fe=ie[1],pe=function(){C(!v)},be=function(){N(!h)},te=function(){I(!B)},Q=function(){m(!c)},ne=function(){s(!u)};return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{children:[(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{basis:"50%",children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Title",children:(0,e.createComponentVNode)(2,t.Input,{value:T,onInput:function(){function me(ce,ue){return A(ue)}return me}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Content",children:(0,e.createComponentVNode)(2,t.Input,{value:E,onInput:function(){function me(ce,ue){return M(ue)}return me}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Image Size",children:(0,e.createComponentVNode)(2,t.Slider,{animated:!0,width:10,value:ae,minValue:0,maxValue:256,step:1,stepPixelSize:2,onChange:function(){function me(ce,ue){return fe(ue)}return me}()})})]}),(0,e.createComponentVNode)(2,t.Stack,{mt:1,mr:2,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,content:"onClick",checked:u,onClick:ne})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,content:"Vertical",checked:B,onClick:te})})]})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{basis:"50%",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Item Content",children:(0,e.createComponentVNode)(2,t.Input,{value:P,onInput:function(){function me(ce,ue){return R(ue)}return me}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Item Icon",children:(0,e.createComponentVNode)(2,t.Input,{value:F,onInput:function(){function me(ce,ue){return U(ue)}return me}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Item IconPos",children:(0,e.createComponentVNode)(2,t.Input,{value:z,onInput:function(){function me(ce,ue){return G(ue)}return me}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Item IconSize",children:(0,e.createComponentVNode)(2,t.Slider,{animated:!0,width:10,value:Y,minValue:0,maxValue:20,step:1,stepPixelSize:10,onChange:function(){function me(ce,ue){return J(ue)}return me}()})})]})})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{mt:1,children:(0,e.createComponentVNode)(2,t.ImageButton,{width:B&&ae+"px",ellipsis:B,vertical:B,disabled:c,title:T,content:E,tooltip:B?E:"Cool and simple buttons with images, FOR ALL!!!",image:"iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAGo0lEQVRYhe3Xa2xT9xnH8e+5+O4ktuM4cS5OYmhCQ1xcYMCgA9rSbKUqqqpWkzq1mgBtq/piaqna7UXXaTfWddL6opO2dlu1aSBVjJZC19FByyUadKGCJIYQAoHEODi2k/hyTnw/x3uxwZpBtq6qhib1efU/5/9/9Hz0O0c6OsLhw4e5mSXe1On/94BAIFAJBAKV/zkgEAhU7HZ7JRQKCaFQSLDb7Z8Y8l8BPjpYVVXh6n1VVT8xRAbY953HP1bTvn8u/9P56/arHNp1h9Y/9YogX73wBW0fx/CpVXIsA/wjgav1pW//mVdPRYhlp6gxWzAYTCRnM0zPKsRnpjBK4JEqqIUi/fEppKxCRReQLFbEikYmOk5ONNPc0s4v1nXgKChEJmNY7dUs+fwXqPfdSjan8Ktv3XVt5hxAR4OT5zcIjGW6ODGd57IyQ53bhVkSMcsSt1RZiOUKSAIsqjFhl+C5gYvMFnK4JXhLLbDZZaVqzyv8YOsLxFIq0XQRE7Ckw8s3n9nGfVu2zUliDmAs8i7xK6dZ0LGeZmc3JYMXs1im1iTjNErUmwVqChqiCJVKhd6pNCaTBU0QOJHJstZZg3/H9/n9r/cy8C+RHxiJMrj1aXbaq+cHvLb/PQqaCVf4PZa1DbGx+xGGkkYMlSI1okitDEZdp29qlrNJBYOgs8ZRxZkZHbmxhs6+PezfvZch0YTTAK1OG5GCQDpXRNTLxIo5vvf8D3nwi3UoKel6gLdpBeVyCNnmRbI00GwWsdQKfBDXiaST+KwO+pIlehMKwRoDzRYDI6lZbnFUcb+viZNvjnIuBat91XxlkRMLGgNJHVWuYlfoEoWixMXIJFB34wTW3ebj7VNh4mOjpBNh8q6lVBtcvHV+jCqTjM8qUchm6fFWUW8xUdBheYOZdC7PleQM0XQKswxtdol6jxMdI3fWafTFsnR4HJzQRIp6bv5HcKj/Q6TZGOpUkaFLFXaWDxGR/Wzx2agyGpnI67jlCnqpwIiS4Vw8gaiXyZQ0NFcdjloPljIksOJdvBKbyU54dATrxDBbl/uZeH8Ii2ycHzAy7SCnxrDV1+JpcuNpWsgas4vVzR58Zh2PRcZtcXEwkmbvpTAnx89RbTJTa6/CmSvjDAT5XJeNmhoTSxcvJplIcb5SxohGu9OFLTuDLxicH7CkzcWuPUkeWp6i4ISNdwRpleGiquG3//2lSWtg0FTuaXETrK1iPBbBJJcZ+OMOcm4Jz50rWBBN0N97gOFJBaxGziolTh36K952P9t/9hK9O568NnPOt+Chbo31C3P0nowwdvwgw/0HAfDbJc7PTHMiPMrgxCUS6QksWhTTxCmSR9/AW46TS01xsrefmGTn5cE4v9l/hC5/E2va/bi0PL1Xpui6/8vcvuKO+RMYn6lgb7DiEl3MTIzy/rF9JAUno+EoRitk1RSyJKMW4cLwOS5fGOHSmQEuTMVJjMVZoI3TmUtxFJ0PbF6WZ8sc372bRD7Hhs2Pg6OeJ55+hs75ABdjEsqZMJtuayXU2EnkisLgid9yZKyEu6UVJRpmamoaOREnl81QyitYLLMMj/bTLeTp8YoMpSQCDRWe3f5T3HmRwTf30PrwN7CvfQBRVaG1jcrxQ3MBqSz4gHryDF5O0DddQauWyGdFOhbXcV+TyOi0wqoHHyU1dpHca9/FbpxFafTiWfsoCw0S+tkRXt7xJ9L5cVRFJRrOcPfd62j98U8YW7eF8QujeBs9CNVOTh2fJ4FSEaYLFUq5FNNDKbJ5ndd3HCOXyZDJqjxs97F2Yw/j6RjlQhZbi58el4+Jd3tZ3l6LZ/tLbH3uR1yOnuaFF19kw4JGfh5SWbMwSldjLZl0moKS/DfvQFLjw8FJ1gbbMPi9ZIpl2gs6V2JGXFYfZyejqANnsK37Gka7DVtjIzvfeIeR3+3C9Ng99PRswuNvJXz+NAtaGhiT3Sy9Pcgip5FEtojZYMSiF+YHBILL6L73Ef4yfBa7u4ZJdRpDV5CGWyuUDBYK6SgDb/+BoqkaYzEFx04zc36UTRtWsjLYydDRAyxrdDJkNfHYVzezeGkHq5Z1ELoQRRQE2uocTMyk5wd0tjbz7JNPcKSvD7PZSCqVhoqOQRYp53PIWhmtVMIgCMiCTlnT0Y0PYLRa6E+HiR3YxypJonvb11mxeg1WTUdRs2Rm83S11FERBRRFmR/wy6dWX1t/1Dk3NMhxfc0AuK82H+Od7ffO2T9zg545gMFjszc84LDO0/kplfDZr9lngJsN+Bveb9bpS0UiAAAAAABJRU5ErkJggg==",imageSize:ae+"px",onClick:u?function(){return"false"}:"",children:!B&&(0,e.createComponentVNode)(2,t.ImageButton.Item,{bold:!0,width:"64px",selected:c,content:P,tooltip:"Click to disable main button",tooltipPosition:"bottom-end",icon:F,iconColor:"gold",iconSize:Y,iconPosition:z,onClick:Q})})})]}),(0,e.createComponentVNode)(2,t.Section,{title:"Color States",buttons:(0,e.createComponentVNode)(2,t.Button.Checkbox,{content:"Vertical",checked:v,onClick:pe}),children:V.map(function(me){return(0,e.createComponentVNode)(2,t.ImageButton,{m:v?.5:0,vertical:v,color:me,content:me,image:"iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAMAAABEpIrGAAAAOVBMVEXAwMDBr16vk0uORiz/o7HyfxiZbDXWzMzhbA3//wD////tHCQAAP/4ior/ADOAgIDAwMAAAAAzmQDdkuRxAAAAAXRSTlMAQObYZgAAAKxJREFUOI3dksESgyAMRG0FE4I22P//2IaAVdB0em3Xy477SJYZhuFfdDO1AXdD4xtwRd77o5t6wKt20wPlN2QVewUgQqAAiD0QYxQCJYc5zCAEtisUcBkgmUAZ6ErGWh9oeSwE6k+3yHNACIIPgMzQONsWYOZ90QXAiRK7g2K7gtNKayXKjdoOcv4pX+IcGoBMqIA26TswSU6HmueSpLlRcjK0AaOpL97rb+gFHckLe1QlljQAAAAASUVORK5CYII=",imageSize:v?"48px":"24px",onClick:u?function(){return"false"}:""},me)})}),(0,e.createComponentVNode)(2,t.Section,{title:"Available Colors",buttons:(0,e.createComponentVNode)(2,t.Button.Checkbox,{content:"Vertical",checked:h,onClick:be}),children:f.map(function(me){return(0,e.createComponentVNode)(2,t.ImageButton,{m:h?.5:0,vertical:h,color:me,content:me,image:"iVBORw0KGgoAAAANSUhEUgAAACAAAAAgBAMAAACBVGfHAAAAJ1BMVEUAAABeGFCgXZN2PnKqqqq/vr/T09PycWFIHUFeKlNLHEtVWWOOj5g02k6OAAAAAXRSTlMAQObYZgAAAFdJREFUKJFjYBhEgFEQDATgAkImLkDgrIgQME0vSy8LRhYoBwISBdLLy1HNSCsvT0MWwLDWGAwQAp0rZ+3evXLWDGSBM2dQBWYCAUkCHB1g0IAreAYCAACm2zDykxPL4AAAAABJRU5ErkJggg==",imageSize:h?"48px":"24px",onClick:u?function(){return"false"}:""},me)})})],4)}},32304:function(L,r,n){"use strict";r.__esModule=!0,r.meta=void 0;var e=n(96524),a=n(17899),t=n(24674);/** * @file * @copyright 2021 Aleksej Komarov * @license MIT @@ -330,7 +330,7 @@ * @file * @copyright 2021 Aleksej Komarov * @license MIT - */var t=r.BoxWithSampleText=function(){function o(f){return(0,e.normalizeProps)((0,e.createComponentVNode)(2,a.Box,Object.assign({},f,{children:[(0,e.createComponentVNode)(2,a.Box,{italic:!0,children:"Jackdaws love my big sphinx of quartz."}),(0,e.createComponentVNode)(2,a.Box,{mt:1,bold:!0,children:"The wide electrification of the southern provinces will give a powerful impetus to the growth of agriculture."})]})))}return o}()},21965:function(){},28169:function(){},36487:function(){},35739:function(){},33631:function(){},74785:function(){},6895:function(){},3251:function(){},38265:function(){},7455:function(){},58823:function(){},49265:function(){},55350:function(){},45503:function(){},36557:function(){},70555:function(){},70752:function(L,r,n){var e={"./pai_atmosphere.js":24704,"./pai_bioscan.js":4209,"./pai_directives.js":44430,"./pai_doorjack.js":3367,"./pai_main_menu.js":73395,"./pai_manifest.js":37645,"./pai_medrecords.js":15836,"./pai_messenger.js":91737,"./pai_radio.js":94077,"./pai_secrecords.js":72621,"./pai_signaler.js":53483};function a(o){var f=t(o);return n(f)}function t(o){if(!n.o(e,o)){var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}return e[o]}a.keys=function(){return Object.keys(e)},a.resolve=t,L.exports=a,a.id=70752},59395:function(L,r,n){var e={"./pda_atmos_scan.js":21606,"./pda_janitor.js":12339,"./pda_main_menu.js":36615,"./pda_manifest.js":99737,"./pda_medical.js":61597,"./pda_messenger.js":30709,"./pda_mule.js":68053,"./pda_nanobank.js":31728,"./pda_notes.js":29415,"./pda_power.js":52363,"./pda_secbot.js":23914,"./pda_security.js":68878,"./pda_signaler.js":95135,"./pda_status_display.js":20835,"./pda_supplyrecords.js":11741};function a(o){var f=t(o);return n(f)}function t(o){if(!n.o(e,o)){var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}return e[o]}a.keys=function(){return Object.keys(e)},a.resolve=t,L.exports=a,a.id=59395},32054:function(L,r,n){var e={"./AICard":29732,"./AICard.js":29732,"./AIFixer":78468,"./AIFixer.js":78468,"./APC":73544,"./APC.js":73544,"./ATM":79098,"./ATM.js":79098,"./AccountsUplinkTerminal":64613,"./AccountsUplinkTerminal.js":64613,"./AiAirlock":56839,"./AiAirlock.js":56839,"./AirAlarm":5565,"./AirAlarm.js":5565,"./AirlockAccessController":82915,"./AirlockAccessController.js":82915,"./AirlockElectronics":14962,"./AirlockElectronics.js":14962,"./AlertModal":99327,"./AlertModal.tsx":99327,"./AppearanceChanger":88642,"./AppearanceChanger.js":88642,"./AtmosAlertConsole":51731,"./AtmosAlertConsole.js":51731,"./AtmosControl":57467,"./AtmosControl.js":57467,"./AtmosFilter":41550,"./AtmosFilter.js":41550,"./AtmosMixer":70151,"./AtmosMixer.js":70151,"./AtmosPump":54090,"./AtmosPump.js":54090,"./AtmosTankControl":31335,"./AtmosTankControl.js":31335,"./Autolathe":85909,"./Autolathe.js":85909,"./BioChipPad":81617,"./BioChipPad.js":81617,"./Biogenerator":26215,"./Biogenerator.js":26215,"./BlueSpaceArtilleryControl":65483,"./BlueSpaceArtilleryControl.js":65483,"./BluespaceTap":69099,"./BluespaceTap.js":69099,"./BodyScanner":71736,"./BodyScanner.js":71736,"./BookBinder":99449,"./BookBinder.js":99449,"./BotCall":85951,"./BotCall.js":85951,"./BotClean":43506,"./BotClean.js":43506,"./BotFloor":89593,"./BotFloor.js":89593,"./BotHonk":89513,"./BotHonk.js":89513,"./BotMed":19297,"./BotMed.js":19297,"./BotSecurity":4249,"./BotSecurity.js":4249,"./BrigCells":27267,"./BrigCells.js":27267,"./BrigTimer":26623,"./BrigTimer.js":26623,"./CameraConsole":43542,"./CameraConsole.js":43542,"./Canister":95513,"./Canister.js":95513,"./CardComputer":60463,"./CardComputer.js":60463,"./CargoConsole":16377,"./CargoConsole.js":16377,"./ChangelogView":89917,"./ChangelogView.js":89917,"./ChemDispenser":71254,"./ChemDispenser.js":71254,"./ChemHeater":27004,"./ChemHeater.js":27004,"./ChemMaster":41099,"./ChemMaster.tsx":41099,"./CloningConsole":51327,"./CloningConsole.js":51327,"./CloningPod":66373,"./CloningPod.js":66373,"./CoinMint":38781,"./CoinMint.tsx":38781,"./ColourMatrixTester":11866,"./ColourMatrixTester.js":11866,"./CommunicationsComputer":22420,"./CommunicationsComputer.js":22420,"./CompostBin":46868,"./CompostBin.js":46868,"./Contractor":64707,"./Contractor.js":64707,"./ConveyorSwitch":52141,"./ConveyorSwitch.js":52141,"./CrewMonitor":94187,"./CrewMonitor.js":94187,"./Cryo":60561,"./Cryo.js":60561,"./CryopodConsole":27889,"./CryopodConsole.js":27889,"./DNAModifier":81434,"./DNAModifier.js":81434,"./DestinationTagger":99127,"./DestinationTagger.js":99127,"./DisposalBin":93430,"./DisposalBin.js":93430,"./DnaVault":31491,"./DnaVault.js":31491,"./DroneConsole":30747,"./DroneConsole.js":30747,"./EFTPOS":74781,"./EFTPOS.js":74781,"./ERTManager":30672,"./ERTManager.js":30672,"./EconomyManager":24503,"./EconomyManager.js":24503,"./Electropack":15543,"./Electropack.js":15543,"./Emojipedia":57013,"./Emojipedia.tsx":57013,"./EvolutionMenu":99012,"./EvolutionMenu.js":99012,"./ExosuitFabricator":37504,"./ExosuitFabricator.js":37504,"./ExperimentConsole":9466,"./ExperimentConsole.js":9466,"./ExternalAirlockController":77284,"./ExternalAirlockController.js":77284,"./FaxMachine":52516,"./FaxMachine.js":52516,"./FilingCabinet":24777,"./FilingCabinet.js":24777,"./FloorPainter":88361,"./FloorPainter.js":88361,"./GPS":70078,"./GPS.js":70078,"./GeneModder":92246,"./GeneModder.js":92246,"./GenericCrewManifest":27163,"./GenericCrewManifest.js":27163,"./GhostHudPanel":53808,"./GhostHudPanel.js":53808,"./GlandDispenser":32035,"./GlandDispenser.js":32035,"./GravityGen":33004,"./GravityGen.js":33004,"./GuestPass":39775,"./GuestPass.js":39775,"./HandheldChemDispenser":22480,"./HandheldChemDispenser.js":22480,"./HealthSensor":22616,"./HealthSensor.js":22616,"./Holodeck":76861,"./Holodeck.js":76861,"./Instrument":96729,"./Instrument.js":96729,"./KeycardAuth":53385,"./KeycardAuth.js":53385,"./KitchenMachine":58553,"./KitchenMachine.js":58553,"./LawManager":14047,"./LawManager.js":14047,"./LibraryComputer":5872,"./LibraryComputer.js":5872,"./LibraryManager":37782,"./LibraryManager.js":37782,"./ListInputModal":26133,"./ListInputModal.tsx":26133,"./MODsuit":71963,"./MODsuit.js":71963,"./MagnetController":84274,"./MagnetController.js":84274,"./MechBayConsole":95752,"./MechBayConsole.js":95752,"./MechaControlConsole":53668,"./MechaControlConsole.js":53668,"./MedicalRecords":96467,"./MedicalRecords.js":96467,"./MerchVendor":68211,"./MerchVendor.js":68211,"./MiningVendor":14162,"./MiningVendor.js":14162,"./NTRecruiter":68977,"./NTRecruiter.js":68977,"./Newscaster":17067,"./Newscaster.js":17067,"./Noticeboard":26148,"./Noticeboard.tsx":26148,"./NuclearBomb":46940,"./NuclearBomb.js":46940,"./NumberInputModal":35478,"./NumberInputModal.tsx":35478,"./OperatingComputer":98476,"./OperatingComputer.js":98476,"./Orbit":98702,"./Orbit.js":98702,"./OreRedemption":74015,"./OreRedemption.js":74015,"./PAI":48824,"./PAI.js":48824,"./PDA":41565,"./PDA.js":41565,"./Pacman":78704,"./Pacman.js":78704,"./PanDEMIC":6887,"./PanDEMIC.tsx":6887,"./ParticleAccelerator":78643,"./ParticleAccelerator.js":78643,"./PdaPainter":34026,"./PdaPainter.js":34026,"./PersonalCrafting":81378,"./PersonalCrafting.js":81378,"./Photocopier":58792,"./Photocopier.js":58792,"./PoolController":27902,"./PoolController.js":27902,"./PortablePump":52025,"./PortablePump.js":52025,"./PortableScrubber":57827,"./PortableScrubber.js":57827,"./PortableTurret":63825,"./PortableTurret.js":63825,"./PowerMonitor":70373,"./PowerMonitor.js":70373,"./PrisonerImplantManager":27262,"./PrisonerImplantManager.js":27262,"./PrisonerShuttleConsole":22046,"./PrisonerShuttleConsole.js":22046,"./PrizeCounter":92014,"./PrizeCounter.tsx":92014,"./RCD":87963,"./RCD.js":87963,"./RPD":84364,"./RPD.js":84364,"./Radio":14641,"./Radio.js":14641,"./ReagentGrinder":40483,"./ReagentGrinder.js":40483,"./ReagentsEditor":70976,"./ReagentsEditor.tsx":70976,"./RemoteSignaler":94049,"./RemoteSignaler.js":94049,"./RequestConsole":12326,"./RequestConsole.js":12326,"./RndConsole":89641,"./RndConsole.js":89641,"./RndConsoleComponents":3422,"./RndConsoleComponents/":3422,"./RndConsoleComponents/CurrentLevels":19348,"./RndConsoleComponents/CurrentLevels.js":19348,"./RndConsoleComponents/DataDiskMenu":338,"./RndConsoleComponents/DataDiskMenu.js":338,"./RndConsoleComponents/DeconstructionMenu":90785,"./RndConsoleComponents/DeconstructionMenu.js":90785,"./RndConsoleComponents/LatheCategory":34492,"./RndConsoleComponents/LatheCategory.js":34492,"./RndConsoleComponents/LatheChemicalStorage":84275,"./RndConsoleComponents/LatheChemicalStorage.js":84275,"./RndConsoleComponents/LatheMainMenu":12638,"./RndConsoleComponents/LatheMainMenu.js":12638,"./RndConsoleComponents/LatheMaterialStorage":89004,"./RndConsoleComponents/LatheMaterialStorage.js":89004,"./RndConsoleComponents/LatheMaterials":73856,"./RndConsoleComponents/LatheMaterials.js":73856,"./RndConsoleComponents/LatheMenu":75955,"./RndConsoleComponents/LatheMenu.js":75955,"./RndConsoleComponents/LatheSearch":72880,"./RndConsoleComponents/LatheSearch.js":72880,"./RndConsoleComponents/MainMenu":62306,"./RndConsoleComponents/MainMenu.js":62306,"./RndConsoleComponents/RndNavButton":99941,"./RndConsoleComponents/RndNavButton.js":99941,"./RndConsoleComponents/RndNavbar":24448,"./RndConsoleComponents/RndNavbar.js":24448,"./RndConsoleComponents/RndRoute":78345,"./RndConsoleComponents/RndRoute.js":78345,"./RndConsoleComponents/SettingsMenu":56454,"./RndConsoleComponents/SettingsMenu.js":56454,"./RndConsoleComponents/index":3422,"./RndConsoleComponents/index.js":3422,"./RobotSelfDiagnosis":71123,"./RobotSelfDiagnosis.js":71123,"./RoboticsControlConsole":98951,"./RoboticsControlConsole.js":98951,"./Safe":2289,"./Safe.js":2289,"./SatelliteControl":49334,"./SatelliteControl.js":49334,"./SecureStorage":54892,"./SecureStorage.js":54892,"./SecurityRecords":56798,"./SecurityRecords.js":56798,"./SeedExtractor":59981,"./SeedExtractor.js":59981,"./ShuttleConsole":33454,"./ShuttleConsole.js":33454,"./ShuttleManipulator":50451,"./ShuttleManipulator.js":50451,"./Sleeper":99050,"./Sleeper.js":99050,"./SlotMachine":37763,"./SlotMachine.js":37763,"./Smartfridge":26654,"./Smartfridge.js":26654,"./Smes":71124,"./Smes.js":71124,"./SolarControl":21786,"./SolarControl.js":21786,"./SpawnersMenu":31202,"./SpawnersMenu.js":31202,"./SpecMenu":84800,"./SpecMenu.js":84800,"./StationAlertConsole":46501,"./StationAlertConsole.js":46501,"./StationTraitsPanel":18565,"./StationTraitsPanel.tsx":18565,"./StripMenu":95147,"./StripMenu.tsx":95147,"./SuitStorage":61284,"./SuitStorage.js":61284,"./SupermatterMonitor":19796,"./SupermatterMonitor.js":19796,"./SyndicateComputerSimple":30047,"./SyndicateComputerSimple.js":30047,"./TEG":28830,"./TEG.js":28830,"./TachyonArray":39903,"./TachyonArray.js":39903,"./Tank":17068,"./Tank.js":17068,"./TankDispenser":69161,"./TankDispenser.js":69161,"./TcommsCore":87394,"./TcommsCore.js":87394,"./TcommsRelay":55684,"./TcommsRelay.js":55684,"./Teleporter":81088,"./Teleporter.js":81088,"./TelescienceConsole":65875,"./TelescienceConsole.js":65875,"./TempGun":96150,"./TempGun.js":96150,"./TextInputModal":95484,"./TextInputModal.tsx":95484,"./ThermoMachine":378,"./ThermoMachine.js":378,"./TransferValve":3365,"./TransferValve.js":3365,"./TurbineComputer":13860,"./TurbineComputer.js":13860,"./Uplink":22169,"./Uplink.js":22169,"./Vending":70547,"./Vending.js":70547,"./VolumeMixer":33045,"./VolumeMixer.js":33045,"./VotePanel":53792,"./VotePanel.js":53792,"./Wires":64860,"./Wires.js":64860,"./WizardApprenticeContract":78262,"./WizardApprenticeContract.js":78262,"./common/AccessList":57842,"./common/AccessList.js":57842,"./common/AtmosScan":79449,"./common/AtmosScan.js":79449,"./common/BeakerContents":1496,"./common/BeakerContents.js":1496,"./common/BotStatus":69521,"./common/BotStatus.js":69521,"./common/ComplexModal":99665,"./common/ComplexModal.js":99665,"./common/CrewManifest":98444,"./common/CrewManifest.js":98444,"./common/InputButtons":15113,"./common/InputButtons.tsx":15113,"./common/InterfaceLockNoticeBox":26893,"./common/InterfaceLockNoticeBox.js":26893,"./common/Loader":14299,"./common/Loader.tsx":14299,"./common/LoginInfo":68159,"./common/LoginInfo.js":68159,"./common/LoginScreen":27527,"./common/LoginScreen.js":27527,"./common/Operating":75201,"./common/Operating.js":75201,"./common/Signaler":65435,"./common/Signaler.js":65435,"./common/SimpleRecords":77534,"./common/SimpleRecords.js":77534,"./common/TemporaryNotice":84537,"./common/TemporaryNotice.js":84537,"./pai/pai_atmosphere":24704,"./pai/pai_atmosphere.js":24704,"./pai/pai_bioscan":4209,"./pai/pai_bioscan.js":4209,"./pai/pai_directives":44430,"./pai/pai_directives.js":44430,"./pai/pai_doorjack":3367,"./pai/pai_doorjack.js":3367,"./pai/pai_main_menu":73395,"./pai/pai_main_menu.js":73395,"./pai/pai_manifest":37645,"./pai/pai_manifest.js":37645,"./pai/pai_medrecords":15836,"./pai/pai_medrecords.js":15836,"./pai/pai_messenger":91737,"./pai/pai_messenger.js":91737,"./pai/pai_radio":94077,"./pai/pai_radio.js":94077,"./pai/pai_secrecords":72621,"./pai/pai_secrecords.js":72621,"./pai/pai_signaler":53483,"./pai/pai_signaler.js":53483,"./pda/pda_atmos_scan":21606,"./pda/pda_atmos_scan.js":21606,"./pda/pda_janitor":12339,"./pda/pda_janitor.js":12339,"./pda/pda_main_menu":36615,"./pda/pda_main_menu.js":36615,"./pda/pda_manifest":99737,"./pda/pda_manifest.js":99737,"./pda/pda_medical":61597,"./pda/pda_medical.js":61597,"./pda/pda_messenger":30709,"./pda/pda_messenger.js":30709,"./pda/pda_mule":68053,"./pda/pda_mule.js":68053,"./pda/pda_nanobank":31728,"./pda/pda_nanobank.js":31728,"./pda/pda_notes":29415,"./pda/pda_notes.js":29415,"./pda/pda_power":52363,"./pda/pda_power.js":52363,"./pda/pda_secbot":23914,"./pda/pda_secbot.js":23914,"./pda/pda_security":68878,"./pda/pda_security.js":68878,"./pda/pda_signaler":95135,"./pda/pda_signaler.js":95135,"./pda/pda_status_display":20835,"./pda/pda_status_display.js":20835,"./pda/pda_supplyrecords":11741,"./pda/pda_supplyrecords.js":11741};function a(o){var f=t(o);return n(f)}function t(o){if(!n.o(e,o)){var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}return e[o]}a.keys=function(){return Object.keys(e)},a.resolve=t,L.exports=a,a.id=32054},4085:function(L,r,n){var e={"./Blink.stories.js":61498,"./BlockQuote.stories.js":27431,"./Box.stories.js":6517,"./Button.stories.js":20648,"./ByondUi.stories.js":14906,"./Collapsible.stories.js":59948,"./Flex.stories.js":37227,"./ImageButton.stories.js":16189,"./Input.stories.js":32304,"./Popper.stories.js":50394,"./ProgressBar.stories.js":75096,"./Stack.stories.js":30268,"./Storage.stories.js":22645,"./Tabs.stories.js":42120,"./Themes.stories.js":80254,"./Tooltip.stories.js":90823};function a(o){var f=t(o);return n(f)}function t(o){if(!n.o(e,o)){var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}return e[o]}a.keys=function(){return Object.keys(e)},a.resolve=t,L.exports=a,a.id=4085},97361:function(L,r,n){"use strict";var e=n(7532),a=n(62518),t=TypeError;L.exports=function(o){if(e(o))return o;throw new t(a(o)+" is not a function")}},76833:function(L,r,n){"use strict";var e=n(60354),a=n(62518),t=TypeError;L.exports=function(o){if(e(o))return o;throw new t(a(o)+" is not a constructor")}},51689:function(L,r,n){"use strict";var e=n(41224),a=String,t=TypeError;L.exports=function(o){if(e(o))return o;throw new t("Can't set "+a(o)+" as a prototype")}},91138:function(L,r,n){"use strict";var e=n(66266),a=n(28969),t=n(56018).f,o=e("unscopables"),f=Array.prototype;f[o]===void 0&&t(f,o,{configurable:!0,value:a(null)}),L.exports=function(V){f[o][V]=!0}},62970:function(L,r,n){"use strict";var e=n(56852).charAt;L.exports=function(a,t,o){return t+(o?e(a,t).length:1)}},19870:function(L,r,n){"use strict";var e=n(33314),a=TypeError;L.exports=function(t,o){if(e(o,t))return t;throw new a("Incorrect invocation")}},39482:function(L,r,n){"use strict";var e=n(56831),a=String,t=TypeError;L.exports=function(o){if(e(o))return o;throw new t(a(o)+" is not an object")}},67404:function(L){"use strict";L.exports=typeof ArrayBuffer!="undefined"&&typeof DataView!="undefined"},65693:function(L,r,n){"use strict";var e=n(41746);L.exports=e(function(){if(typeof ArrayBuffer=="function"){var a=new ArrayBuffer(8);Object.isExtensible(a)&&Object.defineProperty(a,"a",{value:8})}})},72951:function(L,r,n){"use strict";var e=n(67404),a=n(14141),t=n(40224),o=n(7532),f=n(56831),V=n(89458),k=n(27806),S=n(62518),b=n(16216),p=n(59173),l=n(10069),c=n(33314),m=n(31658),d=n(42878),u=n(66266),s=n(33345),i=n(35086),v=i.enforce,g=i.get,C=t.Int8Array,h=C&&C.prototype,N=t.Uint8ClampedArray,y=N&&N.prototype,B=C&&m(C),I=h&&m(h),w=Object.prototype,T=t.TypeError,A=u("toStringTag"),x=s("TYPED_ARRAY_TAG"),E="TypedArrayConstructor",M=e&&!!d&&k(t.opera)!=="Opera",D=!1,P,R,j,F={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},U={BigInt64Array:8,BigUint64Array:8},_=function(){function ae(fe){if(!f(fe))return!1;var pe=k(fe);return pe==="DataView"||V(F,pe)||V(U,pe)}return ae}(),z=function ae(fe){var pe=m(fe);if(f(pe)){var be=g(pe);return be&&V(be,E)?be[E]:ae(pe)}},G=function(fe){if(!f(fe))return!1;var pe=k(fe);return V(F,pe)||V(U,pe)},X=function(fe){if(G(fe))return fe;throw new T("Target is not a typed array")},Y=function(fe){if(o(fe)&&(!d||c(B,fe)))return fe;throw new T(S(fe)+" is not a typed array constructor")},J=function(fe,pe,be,te){if(a){if(be)for(var Q in F){var ne=t[Q];if(ne&&V(ne.prototype,fe))try{delete ne.prototype[fe]}catch(me){try{ne.prototype[fe]=pe}catch(ce){}}}(!I[fe]||be)&&p(I,fe,be?pe:M&&h[fe]||pe,te)}},ie=function(fe,pe,be){var te,Q;if(a){if(d){if(be){for(te in F)if(Q=t[te],Q&&V(Q,fe))try{delete Q[fe]}catch(ne){}}if(!B[fe]||be)try{return p(B,fe,be?pe:M&&B[fe]||pe)}catch(ne){}else return}for(te in F)Q=t[te],Q&&(!Q[fe]||be)&&p(Q,fe,pe)}};for(P in F)R=t[P],j=R&&R.prototype,j?v(j)[E]=R:M=!1;for(P in U)R=t[P],j=R&&R.prototype,j&&(v(j)[E]=R);if((!M||!o(B)||B===Function.prototype)&&(B=function(){function ae(){throw new T("Incorrect invocation")}return ae}(),M))for(P in F)t[P]&&d(t[P],B);if((!M||!I||I===w)&&(I=B.prototype,M))for(P in F)t[P]&&d(t[P].prototype,I);if(M&&m(y)!==I&&d(y,I),a&&!V(I,A)){D=!0,l(I,A,{configurable:!0,get:function(){function ae(){return f(this)?this[x]:void 0}return ae}()});for(P in F)t[P]&&b(t[P],x,P)}L.exports={NATIVE_ARRAY_BUFFER_VIEWS:M,TYPED_ARRAY_TAG:D&&x,aTypedArray:X,aTypedArrayConstructor:Y,exportTypedArrayMethod:J,exportTypedArrayStaticMethod:ie,getTypedArrayConstructor:z,isView:_,isTypedArray:G,TypedArray:B,TypedArrayPrototype:I}},46185:function(L,r,n){"use strict";var e=n(40224),a=n(18161),t=n(14141),o=n(67404),f=n(26463),V=n(16216),k=n(10069),S=n(13648),b=n(41746),p=n(19870),l=n(74952),c=n(10475),m=n(90835),d=n(75988),u=n(62263),s=n(31658),i=n(42878),v=n(59942),g=n(77713),C=n(2566),h=n(70113),N=n(94234),y=n(35086),B=f.PROPER,I=f.CONFIGURABLE,w="ArrayBuffer",T="DataView",A="prototype",x="Wrong length",E="Wrong index",M=y.getterFor(w),D=y.getterFor(T),P=y.set,R=e[w],j=R,F=j&&j[A],U=e[T],_=U&&U[A],z=Object.prototype,G=e.Array,X=e.RangeError,Y=a(v),J=a([].reverse),ie=u.pack,ae=u.unpack,fe=function(ge){return[ge&255]},pe=function(ge){return[ge&255,ge>>8&255]},be=function(ge){return[ge&255,ge>>8&255,ge>>16&255,ge>>24&255]},te=function(ge){return ge[3]<<24|ge[2]<<16|ge[1]<<8|ge[0]},Q=function(ge){return ie(d(ge),23,4)},ne=function(ge){return ie(ge,52,8)},me=function(ge,ye,Ve){k(ge[A],ye,{configurable:!0,get:function(){function Ie(){return Ve(this)[ye]}return Ie}()})},ce=function(ge,ye,Ve,Ie){var we=D(ge),xe=m(Ve),Oe=!!Ie;if(xe+ye>we.byteLength)throw new X(E);var We=we.bytes,Ne=xe+we.byteOffset,re=g(We,Ne,Ne+ye);return Oe?re:J(re)},ue=function(ge,ye,Ve,Ie,we,xe){var Oe=D(ge),We=m(Ve),Ne=Ie(+we),re=!!xe;if(We+ye>Oe.byteLength)throw new X(E);for(var de=Oe.bytes,he=We+Oe.byteOffset,se=0;sewe)throw new X("Wrong offset");if(Ve=Ve===void 0?we-xe:c(Ve),xe+Ve>we)throw new X(x);P(this,{type:T,buffer:ge,byteLength:Ve,byteOffset:xe,bytes:Ie.bytes}),t||(this.buffer=ge,this.byteLength=Ve,this.byteOffset=xe)}return ve}(),_=U[A],t&&(me(j,"byteLength",M),me(U,"buffer",D),me(U,"byteLength",D),me(U,"byteOffset",D)),S(_,{getInt8:function(){function ve(ge){return ce(this,1,ge)[0]<<24>>24}return ve}(),getUint8:function(){function ve(ge){return ce(this,1,ge)[0]}return ve}(),getInt16:function(){function ve(ge){var ye=ce(this,2,ge,arguments.length>1?arguments[1]:!1);return(ye[1]<<8|ye[0])<<16>>16}return ve}(),getUint16:function(){function ve(ge){var ye=ce(this,2,ge,arguments.length>1?arguments[1]:!1);return ye[1]<<8|ye[0]}return ve}(),getInt32:function(){function ve(ge){return te(ce(this,4,ge,arguments.length>1?arguments[1]:!1))}return ve}(),getUint32:function(){function ve(ge){return te(ce(this,4,ge,arguments.length>1?arguments[1]:!1))>>>0}return ve}(),getFloat32:function(){function ve(ge){return ae(ce(this,4,ge,arguments.length>1?arguments[1]:!1),23)}return ve}(),getFloat64:function(){function ve(ge){return ae(ce(this,8,ge,arguments.length>1?arguments[1]:!1),52)}return ve}(),setInt8:function(){function ve(ge,ye){ue(this,1,ge,fe,ye)}return ve}(),setUint8:function(){function ve(ge,ye){ue(this,1,ge,fe,ye)}return ve}(),setInt16:function(){function ve(ge,ye){ue(this,2,ge,pe,ye,arguments.length>2?arguments[2]:!1)}return ve}(),setUint16:function(){function ve(ge,ye){ue(this,2,ge,pe,ye,arguments.length>2?arguments[2]:!1)}return ve}(),setInt32:function(){function ve(ge,ye){ue(this,4,ge,be,ye,arguments.length>2?arguments[2]:!1)}return ve}(),setUint32:function(){function ve(ge,ye){ue(this,4,ge,be,ye,arguments.length>2?arguments[2]:!1)}return ve}(),setFloat32:function(){function ve(ge,ye){ue(this,4,ge,Q,ye,arguments.length>2?arguments[2]:!1)}return ve}(),setFloat64:function(){function ve(ge,ye){ue(this,8,ge,ne,ye,arguments.length>2?arguments[2]:!1)}return ve}()});else{var oe=B&&R.name!==w;!b(function(){R(1)})||!b(function(){new R(-1)})||b(function(){return new R,new R(1.5),new R(NaN),R.length!==1||oe&&!I})?(j=function(){function ve(ge){return p(this,F),C(new R(m(ge)),this,j)}return ve}(),j[A]=F,F.constructor=j,h(j,R)):oe&&I&&V(R,"name",w),i&&s(_)!==z&&i(_,z);var ke=new U(new j(2)),Be=a(_.setInt8);ke.setInt8(0,2147483648),ke.setInt8(1,2147483649),(ke.getInt8(0)||!ke.getInt8(1))&&S(_,{setInt8:function(){function ve(ge,ye){Be(this,ge,ye<<24>>24)}return ve}(),setUint8:function(){function ve(ge,ye){Be(this,ge,ye<<24>>24)}return ve}()},{unsafe:!0})}N(j,w),N(U,T),L.exports={ArrayBuffer:j,DataView:U}},42320:function(L,r,n){"use strict";var e=n(40076),a=n(74067),t=n(8333),o=n(58937),f=Math.min;L.exports=[].copyWithin||function(){function V(k,S){var b=e(this),p=t(b),l=a(k,p),c=a(S,p),m=arguments.length>2?arguments[2]:void 0,d=f((m===void 0?p:a(m,p))-c,p-l),u=1;for(c0;)c in b?b[l]=b[c]:o(b,l),l+=u,c+=u;return b}return V}()},59942:function(L,r,n){"use strict";var e=n(40076),a=n(74067),t=n(8333);L.exports=function(){function o(f){for(var V=e(this),k=t(V),S=arguments.length,b=a(S>1?arguments[1]:void 0,k),p=S>2?arguments[2]:void 0,l=p===void 0?k:a(p,k);l>b;)V[b++]=f;return V}return o}()},75420:function(L,r,n){"use strict";var e=n(67480).forEach,a=n(42309),t=a("forEach");L.exports=t?[].forEach:function(){function o(f){return e(this,f,arguments.length>1?arguments[1]:void 0)}return o}()},6967:function(L,r,n){"use strict";var e=n(8333);L.exports=function(a,t,o){for(var f=0,V=arguments.length>2?o:e(t),k=new a(V);V>f;)k[f]=t[f++];return k}},80363:function(L,r,n){"use strict";var e=n(4509),a=n(62696),t=n(40076),o=n(17100),f=n(58482),V=n(60354),k=n(8333),S=n(12913),b=n(3438),p=n(76274),l=Array;L.exports=function(){function c(m){var d=t(m),u=V(this),s=arguments.length,i=s>1?arguments[1]:void 0,v=i!==void 0;v&&(i=e(i,s>2?arguments[2]:void 0));var g=p(d),C=0,h,N,y,B,I,w;if(g&&!(this===l&&f(g)))for(N=u?new this:[],B=b(d,g),I=B.next;!(y=a(I,B)).done;C++)w=v?o(B,i,[y.value,C],!0):y.value,S(N,C,w);else for(h=k(d),N=u?new this(h):l(h);h>C;C++)w=v?i(d[C],C):d[C],S(N,C,w);return N.length=C,N}return c}()},64210:function(L,r,n){"use strict";var e=n(96812),a=n(74067),t=n(8333),o=function(V){return function(k,S,b){var p=e(k),l=t(p);if(l===0)return!V&&-1;var c=a(b,l),m;if(V&&S!==S){for(;l>c;)if(m=p[c++],m!==m)return!0}else for(;l>c;c++)if((V||c in p)&&p[c]===S)return V||c||0;return!V&&-1}};L.exports={includes:o(!0),indexOf:o(!1)}},67480:function(L,r,n){"use strict";var e=n(4509),a=n(18161),t=n(26736),o=n(40076),f=n(8333),V=n(32878),k=a([].push),S=function(p){var l=p===1,c=p===2,m=p===3,d=p===4,u=p===6,s=p===7,i=p===5||u;return function(v,g,C,h){for(var N=o(v),y=t(N),B=f(y),I=e(g,C),w=0,T=h||V,A=l?T(v,B):c||s?T(v,0):void 0,x,E;B>w;w++)if((i||w in y)&&(x=y[w],E=I(x,w,N),p))if(l)A[w]=E;else if(E)switch(p){case 3:return!0;case 5:return x;case 6:return w;case 2:k(A,x)}else switch(p){case 4:return!1;case 7:k(A,x)}return u?-1:m||d?d:A}};L.exports={forEach:S(0),map:S(1),filter:S(2),some:S(3),every:S(4),find:S(5),findIndex:S(6),filterReject:S(7)}},16934:function(L,r,n){"use strict";var e=n(70918),a=n(96812),t=n(74952),o=n(8333),f=n(42309),V=Math.min,k=[].lastIndexOf,S=!!k&&1/[1].lastIndexOf(1,-0)<0,b=f("lastIndexOf"),p=S||!b;L.exports=p?function(){function l(c){if(S)return e(k,this,arguments)||0;var m=a(this),d=o(m);if(d===0)return-1;var u=d-1;for(arguments.length>1&&(u=V(u,t(arguments[1]))),u<0&&(u=d+u);u>=0;u--)if(u in m&&m[u]===c)return u||0;return-1}return l}():k},55114:function(L,r,n){"use strict";var e=n(41746),a=n(66266),t=n(82709),o=a("species");L.exports=function(f){return t>=51||!e(function(){var V=[],k=V.constructor={};return k[o]=function(){return{foo:1}},V[f](Boolean).foo!==1})}},42309:function(L,r,n){"use strict";var e=n(41746);L.exports=function(a,t){var o=[][a];return!!o&&e(function(){o.call(null,t||function(){return 1},1)})}},98405:function(L,r,n){"use strict";var e=n(97361),a=n(40076),t=n(26736),o=n(8333),f=TypeError,V="Reduce of empty array with no initial value",k=function(b){return function(p,l,c,m){var d=a(p),u=t(d),s=o(d);if(e(l),s===0&&c<2)throw new f(V);var i=b?s-1:0,v=b?-1:1;if(c<2)for(;;){if(i in u){m=u[i],i+=v;break}if(i+=v,b?i<0:s<=i)throw new f(V)}for(;b?i>=0:s>i;i+=v)i in u&&(m=l(m,u[i],i,d));return m}};L.exports={left:k(!1),right:k(!0)}},72720:function(L,r,n){"use strict";var e=n(14141),a=n(62367),t=TypeError,o=Object.getOwnPropertyDescriptor,f=e&&!function(){if(this!==void 0)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(V){return V instanceof TypeError}}();L.exports=f?function(V,k){if(a(V)&&!o(V,"length").writable)throw new t("Cannot set read only .length");return V.length=k}:function(V,k){return V.length=k}},77713:function(L,r,n){"use strict";var e=n(18161);L.exports=e([].slice)},44815:function(L,r,n){"use strict";var e=n(77713),a=Math.floor,t=function o(f,V){var k=f.length;if(k<8)for(var S=1,b,p;S0;)f[p]=f[--p];p!==S++&&(f[p]=b)}else for(var l=a(k/2),c=o(e(f,0,l),V),m=o(e(f,l),V),d=c.length,u=m.length,s=0,i=0;s1?arguments[1]:void 0),E;E=E?E.next:A.first;)for(x(E.value,E.key,this);E&&E.removed;)E=E.previous}return w}(),has:function(){function w(T){return!!I(this,T)}return w}()}),t(N,g?{get:function(){function w(T){var A=I(this,T);return A&&A.value}return w}(),set:function(){function w(T,A){return B(this,T===0?0:T,A)}return w}()}:{add:function(){function w(T){return B(this,T=T===0?0:T,T)}return w}()}),l&&a(N,"size",{configurable:!0,get:function(){function w(){return y(this).size}return w}()}),h}return s}(),setStrong:function(){function s(i,v,g){var C=v+" Iterator",h=u(v),N=u(C);S(i,v,function(y,B){d(this,{type:C,target:y,state:h(y),kind:B,last:void 0})},function(){for(var y=N(this),B=y.kind,I=y.last;I&&I.removed;)I=I.previous;return!y.target||!(y.last=I=I?I.next:y.state.first)?(y.target=void 0,b(void 0,!0)):b(B==="keys"?I.key:B==="values"?I.value:[I.key,I.value],!1)},g?"entries":"values",!g,!0),p(v)}return s}()}},32920:function(L,r,n){"use strict";var e=n(18161),a=n(13648),t=n(29126).getWeakData,o=n(19870),f=n(39482),V=n(1022),k=n(56831),S=n(281),b=n(67480),p=n(89458),l=n(35086),c=l.set,m=l.getterFor,d=b.find,u=b.findIndex,s=e([].splice),i=0,v=function(N){return N.frozen||(N.frozen=new g)},g=function(){this.entries=[]},C=function(N,y){return d(N.entries,function(B){return B[0]===y})};g.prototype={get:function(){function h(N){var y=C(this,N);if(y)return y[1]}return h}(),has:function(){function h(N){return!!C(this,N)}return h}(),set:function(){function h(N,y){var B=C(this,N);B?B[1]=y:this.entries.push([N,y])}return h}(),delete:function(){function h(N){var y=u(this.entries,function(B){return B[0]===N});return~y&&s(this.entries,y,1),!!~y}return h}()},L.exports={getConstructor:function(){function h(N,y,B,I){var w=N(function(E,M){o(E,T),c(E,{type:y,id:i++,frozen:void 0}),V(M)||S(M,E[I],{that:E,AS_ENTRIES:B})}),T=w.prototype,A=m(y),x=function(){function E(M,D,P){var R=A(M),j=t(f(D),!0);return j===!0?v(R).set(D,P):j[R.id]=P,M}return E}();return a(T,{delete:function(){function E(M){var D=A(this);if(!k(M))return!1;var P=t(M);return P===!0?v(D).delete(M):P&&p(P,D.id)&&delete P[D.id]}return E}(),has:function(){function E(M){var D=A(this);if(!k(M))return!1;var P=t(M);return P===!0?v(D).has(M):P&&p(P,D.id)}return E}()}),a(T,B?{get:function(){function E(M){var D=A(this);if(k(M)){var P=t(M);return P===!0?v(D).get(M):P?P[D.id]:void 0}}return E}(),set:function(){function E(M,D){return x(this,M,D)}return E}()}:{add:function(){function E(M){return x(this,M,!0)}return E}()}),w}return h}()}},93439:function(L,r,n){"use strict";var e=n(77549),a=n(40224),t=n(18161),o=n(95945),f=n(59173),V=n(29126),k=n(281),S=n(19870),b=n(7532),p=n(1022),l=n(56831),c=n(41746),m=n(52019),d=n(94234),u=n(2566);L.exports=function(s,i,v){var g=s.indexOf("Map")!==-1,C=s.indexOf("Weak")!==-1,h=g?"set":"add",N=a[s],y=N&&N.prototype,B=N,I={},w=function(R){var j=t(y[R]);f(y,R,R==="add"?function(){function F(U){return j(this,U===0?0:U),this}return F}():R==="delete"?function(F){return C&&!l(F)?!1:j(this,F===0?0:F)}:R==="get"?function(){function F(U){return C&&!l(U)?void 0:j(this,U===0?0:U)}return F}():R==="has"?function(){function F(U){return C&&!l(U)?!1:j(this,U===0?0:U)}return F}():function(){function F(U,_){return j(this,U===0?0:U,_),this}return F}())},T=o(s,!b(N)||!(C||y.forEach&&!c(function(){new N().entries().next()})));if(T)B=v.getConstructor(i,s,g,h),V.enable();else if(o(s,!0)){var A=new B,x=A[h](C?{}:-0,1)!==A,E=c(function(){A.has(1)}),M=m(function(P){new N(P)}),D=!C&&c(function(){for(var P=new N,R=5;R--;)P[h](R,R);return!P.has(-0)});M||(B=i(function(P,R){S(P,y);var j=u(new N,P,B);return p(R)||k(R,j[h],{that:j,AS_ENTRIES:g}),j}),B.prototype=y,y.constructor=B),(E||D)&&(w("delete"),w("has"),g&&w("get")),(D||x)&&w(h),C&&y.clear&&delete y.clear}return I[s]=B,e({global:!0,constructor:!0,forced:B!==N},I),d(B,s),C||v.setStrong(B,s,g),B}},70113:function(L,r,n){"use strict";var e=n(89458),a=n(93616),t=n(54168),o=n(56018);L.exports=function(f,V,k){for(var S=a(V),b=o.f,p=t.f,l=0;l"+p+""}},77056:function(L){"use strict";L.exports=function(r,n){return{value:r,done:n}}},16216:function(L,r,n){"use strict";var e=n(14141),a=n(56018),t=n(7539);L.exports=e?function(o,f,V){return a.f(o,f,t(1,V))}:function(o,f,V){return o[f]=V,o}},7539:function(L){"use strict";L.exports=function(r,n){return{enumerable:!(r&1),configurable:!(r&2),writable:!(r&4),value:n}}},12913:function(L,r,n){"use strict";var e=n(14141),a=n(56018),t=n(7539);L.exports=function(o,f,V){e?a.f(o,f,t(0,V)):o[f]=V}},74003:function(L,r,n){"use strict";var e=n(18161),a=n(41746),t=n(34086).start,o=RangeError,f=isFinite,V=Math.abs,k=Date.prototype,S=k.toISOString,b=e(k.getTime),p=e(k.getUTCDate),l=e(k.getUTCFullYear),c=e(k.getUTCHours),m=e(k.getUTCMilliseconds),d=e(k.getUTCMinutes),u=e(k.getUTCMonth),s=e(k.getUTCSeconds);L.exports=a(function(){return S.call(new Date(-50000000000001))!=="0385-07-25T07:06:39.999Z"})||!a(function(){S.call(new Date(NaN))})?function(){function i(){if(!f(b(this)))throw new o("Invalid time value");var v=this,g=l(v),C=m(v),h=g<0?"-":g>9999?"+":"";return h+t(V(g),h?6:4,0)+"-"+t(u(v)+1,2,0)+"-"+t(p(v),2,0)+"T"+t(c(v),2,0)+":"+t(d(v),2,0)+":"+t(s(v),2,0)+"."+t(C,3,0)+"Z"}return i}():S},95865:function(L,r,n){"use strict";var e=n(39482),a=n(14991),t=TypeError;L.exports=function(o){if(e(this),o==="string"||o==="default")o="string";else if(o!=="number")throw new t("Incorrect hint");return a(this,o)}},10069:function(L,r,n){"use strict";var e=n(76130),a=n(56018);L.exports=function(t,o,f){return f.get&&e(f.get,o,{getter:!0}),f.set&&e(f.set,o,{setter:!0}),a.f(t,o,f)}},59173:function(L,r,n){"use strict";var e=n(7532),a=n(56018),t=n(76130),o=n(93422);L.exports=function(f,V,k,S){S||(S={});var b=S.enumerable,p=S.name!==void 0?S.name:V;if(e(k)&&t(k,p,S),S.global)b?f[V]=k:o(V,k);else{try{S.unsafe?f[V]&&(b=!0):delete f[V]}catch(l){}b?f[V]=k:a.f(f,V,{value:k,enumerable:!1,configurable:!S.nonConfigurable,writable:!S.nonWritable})}return f}},13648:function(L,r,n){"use strict";var e=n(59173);L.exports=function(a,t,o){for(var f in t)e(a,f,t[f],o);return a}},93422:function(L,r,n){"use strict";var e=n(40224),a=Object.defineProperty;L.exports=function(t,o){try{a(e,t,{value:o,configurable:!0,writable:!0})}catch(f){e[t]=o}return o}},58937:function(L,r,n){"use strict";var e=n(62518),a=TypeError;L.exports=function(t,o){if(!delete t[o])throw new a("Cannot delete property "+e(o)+" of "+e(t))}},14141:function(L,r,n){"use strict";var e=n(41746);L.exports=!e(function(){return Object.defineProperty({},1,{get:function(){function a(){return 7}return a}()})[1]!==7})},85158:function(L,r,n){"use strict";var e=n(40224),a=n(56831),t=e.document,o=a(t)&&a(t.createElement);L.exports=function(f){return o?t.createElement(f):{}}},72434:function(L){"use strict";var r=TypeError,n=9007199254740991;L.exports=function(e){if(e>n)throw r("Maximum allowed index exceeded");return e}},49847:function(L,r,n){"use strict";var e=n(15837),a=e.match(/firefox\/(\d+)/i);L.exports=!!a&&+a[1]},27955:function(L,r,n){"use strict";var e=n(2971),a=n(95823);L.exports=!e&&!a&&typeof window=="object"&&typeof document=="object"},2178:function(L){"use strict";L.exports=typeof Bun=="function"&&Bun&&typeof Bun.version=="string"},2971:function(L){"use strict";L.exports=typeof Deno=="object"&&Deno&&typeof Deno.version=="object"},56605:function(L,r,n){"use strict";var e=n(15837);L.exports=/MSIE|Trident/.test(e)},6647:function(L,r,n){"use strict";var e=n(15837);L.exports=/ipad|iphone|ipod/i.test(e)&&typeof Pebble!="undefined"},52426:function(L,r,n){"use strict";var e=n(15837);L.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(e)},95823:function(L,r,n){"use strict";var e=n(40224),a=n(38817);L.exports=a(e.process)==="process"},25062:function(L,r,n){"use strict";var e=n(15837);L.exports=/web0s(?!.*chrome)/i.test(e)},15837:function(L){"use strict";L.exports=typeof navigator!="undefined"&&String(navigator.userAgent)||""},82709:function(L,r,n){"use strict";var e=n(40224),a=n(15837),t=e.process,o=e.Deno,f=t&&t.versions||o&&o.version,V=f&&f.v8,k,S;V&&(k=V.split("."),S=k[0]>0&&k[0]<4?1:+(k[0]+k[1])),!S&&a&&(k=a.match(/Edge\/(\d+)/),(!k||k[1]>=74)&&(k=a.match(/Chrome\/(\d+)/),k&&(S=+k[1]))),L.exports=S},53125:function(L,r,n){"use strict";var e=n(15837),a=e.match(/AppleWebKit\/(\d+)\./);L.exports=!!a&&+a[1]},90298:function(L){"use strict";L.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},77549:function(L,r,n){"use strict";var e=n(40224),a=n(54168).f,t=n(16216),o=n(59173),f=n(93422),V=n(70113),k=n(95945);L.exports=function(S,b){var p=S.target,l=S.global,c=S.stat,m,d,u,s,i,v;if(l?d=e:c?d=e[p]||f(p,{}):d=e[p]&&e[p].prototype,d)for(u in b){if(i=b[u],S.dontCallGetSet?(v=a(d,u),s=v&&v.value):s=d[u],m=k(l?u:p+(c?".":"#")+u,S.forced),!m&&s!==void 0){if(typeof i==typeof s)continue;V(i,s)}(S.sham||s&&s.sham)&&t(i,"sham",!0),o(d,u,i,S)}}},41746:function(L){"use strict";L.exports=function(r){try{return!!r()}catch(n){return!0}}},85427:function(L,r,n){"use strict";n(95880);var e=n(62696),a=n(59173),t=n(72894),o=n(41746),f=n(66266),V=n(16216),k=f("species"),S=RegExp.prototype;L.exports=function(b,p,l,c){var m=f(b),d=!o(function(){var v={};return v[m]=function(){return 7},""[b](v)!==7}),u=d&&!o(function(){var v=!1,g=/a/;return b==="split"&&(g={},g.constructor={},g.constructor[k]=function(){return g},g.flags="",g[m]=/./[m]),g.exec=function(){return v=!0,null},g[m](""),!v});if(!d||!u||l){var s=/./[m],i=p(m,""[b],function(v,g,C,h,N){var y=g.exec;return y===t||y===S.exec?d&&!N?{done:!0,value:e(s,g,C,h)}:{done:!0,value:e(v,C,g,h)}:{done:!1}});a(String.prototype,b,i[0]),a(S,m,i[1])}c&&V(S[m],"sham",!0)}},68864:function(L,r,n){"use strict";var e=n(62367),a=n(8333),t=n(72434),o=n(4509),f=function V(k,S,b,p,l,c,m,d){for(var u=l,s=0,i=m?o(m,d):!1,v,g;s0&&e(v)?(g=a(v),u=V(k,S,v,g,u,c-1)-1):(t(u+1),k[u]=v),u++),s++;return u};L.exports=f},56255:function(L,r,n){"use strict";var e=n(41746);L.exports=!e(function(){return Object.isExtensible(Object.preventExtensions({}))})},70918:function(L,r,n){"use strict";var e=n(76799),a=Function.prototype,t=a.apply,o=a.call;L.exports=typeof Reflect=="object"&&Reflect.apply||(e?o.bind(t):function(){return o.apply(t,arguments)})},4509:function(L,r,n){"use strict";var e=n(85067),a=n(97361),t=n(76799),o=e(e.bind);L.exports=function(f,V){return a(f),V===void 0?f:t?o(f,V):function(){return f.apply(V,arguments)}}},76799:function(L,r,n){"use strict";var e=n(41746);L.exports=!e(function(){var a=function(){}.bind();return typeof a!="function"||a.hasOwnProperty("prototype")})},9379:function(L,r,n){"use strict";var e=n(18161),a=n(97361),t=n(56831),o=n(89458),f=n(77713),V=n(76799),k=Function,S=e([].concat),b=e([].join),p={},l=function(m,d,u){if(!o(p,d)){for(var s=[],i=0;i]*>)/g,S=/\$([$&'`]|\d{1,2})/g;L.exports=function(b,p,l,c,m,d){var u=l+b.length,s=c.length,i=S;return m!==void 0&&(m=a(m),i=k),f(d,i,function(v,g){var C;switch(o(g,0)){case"$":return"$";case"&":return b;case"`":return V(p,0,l);case"'":return V(p,u);case"<":C=m[V(g,1,-1)];break;default:var h=+g;if(h===0)return v;if(h>s){var N=t(h/10);return N===0?v:N<=s?c[N-1]===void 0?o(g,1):c[N-1]+o(g,1):v}C=c[h-1]}return C===void 0?"":C})}},40224:function(L,r,n){"use strict";var e=function(t){return t&&t.Math===Math&&t};L.exports=e(typeof globalThis=="object"&&globalThis)||e(typeof window=="object"&&window)||e(typeof self=="object"&&self)||e(typeof n.g=="object"&&n.g)||e(!1)||function(){return this}()||Function("return this")()},89458:function(L,r,n){"use strict";var e=n(18161),a=n(40076),t=e({}.hasOwnProperty);L.exports=Object.hasOwn||function(){function o(f,V){return t(a(f),V)}return o}()},21124:function(L){"use strict";L.exports={}},46122:function(L){"use strict";L.exports=function(r,n){try{arguments.length}catch(e){}}},54562:function(L,r,n){"use strict";var e=n(40164);L.exports=e("document","documentElement")},1606:function(L,r,n){"use strict";var e=n(14141),a=n(41746),t=n(85158);L.exports=!e&&!a(function(){return Object.defineProperty(t("div"),"a",{get:function(){function o(){return 7}return o}()}).a!==7})},62263:function(L){"use strict";var r=Array,n=Math.abs,e=Math.pow,a=Math.floor,t=Math.log,o=Math.LN2,f=function(S,b,p){var l=r(p),c=p*8-b-1,m=(1<>1,u=b===23?e(2,-24)-e(2,-77):0,s=S<0||S===0&&1/S<0?1:0,i=0,v,g,C;for(S=n(S),S!==S||S===1/0?(g=S!==S?1:0,v=m):(v=a(t(S)/o),C=e(2,-v),S*C<1&&(v--,C*=2),v+d>=1?S+=u/C:S+=u*e(2,1-d),S*C>=2&&(v++,C/=2),v+d>=m?(g=0,v=m):v+d>=1?(g=(S*C-1)*e(2,b),v+=d):(g=S*e(2,d-1)*e(2,b),v=0));b>=8;)l[i++]=g&255,g/=256,b-=8;for(v=v<0;)l[i++]=v&255,v/=256,c-=8;return l[--i]|=s*128,l},V=function(S,b){var p=S.length,l=p*8-b-1,c=(1<>1,d=l-7,u=p-1,s=S[u--],i=s&127,v;for(s>>=7;d>0;)i=i*256+S[u--],d-=8;for(v=i&(1<<-d)-1,i>>=-d,d+=b;d>0;)v=v*256+S[u--],d-=8;if(i===0)i=1-m;else{if(i===c)return v?NaN:s?-1/0:1/0;v+=e(2,b),i-=m}return(s?-1:1)*v*e(2,i-b)};L.exports={pack:f,unpack:V}},26736:function(L,r,n){"use strict";var e=n(18161),a=n(41746),t=n(38817),o=Object,f=e("".split);L.exports=a(function(){return!o("z").propertyIsEnumerable(0)})?function(V){return t(V)==="String"?f(V,""):o(V)}:o},2566:function(L,r,n){"use strict";var e=n(7532),a=n(56831),t=n(42878);L.exports=function(o,f,V){var k,S;return t&&e(k=f.constructor)&&k!==V&&a(S=k.prototype)&&S!==V.prototype&&t(o,S),o}},43589:function(L,r,n){"use strict";var e=n(18161),a=n(7532),t=n(95046),o=e(Function.toString);a(t.inspectSource)||(t.inspectSource=function(f){return o(f)}),L.exports=t.inspectSource},29126:function(L,r,n){"use strict";var e=n(77549),a=n(18161),t=n(21124),o=n(56831),f=n(89458),V=n(56018).f,k=n(34813),S=n(63797),b=n(57975),p=n(33345),l=n(56255),c=!1,m=p("meta"),d=0,u=function(N){V(N,m,{value:{objectID:"O"+d++,weakData:{}}})},s=function(N,y){if(!o(N))return typeof N=="symbol"?N:(typeof N=="string"?"S":"P")+N;if(!f(N,m)){if(!b(N))return"F";if(!y)return"E";u(N)}return N[m].objectID},i=function(N,y){if(!f(N,m)){if(!b(N))return!0;if(!y)return!1;u(N)}return N[m].weakData},v=function(N){return l&&c&&b(N)&&!f(N,m)&&u(N),N},g=function(){C.enable=function(){},c=!0;var N=k.f,y=a([].splice),B={};B[m]=1,N(B).length&&(k.f=function(I){for(var w=N(I),T=0,A=w.length;TI;I++)if(T=M(d[I]),T&&k(m,T))return T;return new c(!1)}y=S(d,B)}for(A=g?d.next:y.next;!(x=a(A,y)).done;){try{T=M(x.value)}catch(D){p(y,"throw",D)}if(typeof T=="object"&&T&&k(m,T))return T}return new c(!1)}},14868:function(L,r,n){"use strict";var e=n(62696),a=n(39482),t=n(4817);L.exports=function(o,f,V){var k,S;a(o);try{if(k=t(o,"return"),!k){if(f==="throw")throw V;return V}k=e(k,o)}catch(b){S=!0,k=b}if(f==="throw")throw V;if(S)throw k;return a(k),V}},42599:function(L,r,n){"use strict";var e=n(85106).IteratorPrototype,a=n(28969),t=n(7539),o=n(94234),f=n(90604),V=function(){return this};L.exports=function(k,S,b,p){var l=S+" Iterator";return k.prototype=a(e,{next:t(+!p,b)}),o(k,l,!1,!0),f[l]=V,k}},2449:function(L,r,n){"use strict";var e=n(77549),a=n(62696),t=n(11478),o=n(26463),f=n(7532),V=n(42599),k=n(31658),S=n(42878),b=n(94234),p=n(16216),l=n(59173),c=n(66266),m=n(90604),d=n(85106),u=o.PROPER,s=o.CONFIGURABLE,i=d.IteratorPrototype,v=d.BUGGY_SAFARI_ITERATORS,g=c("iterator"),C="keys",h="values",N="entries",y=function(){return this};L.exports=function(B,I,w,T,A,x,E){V(w,I,T);var M=function(Y){if(Y===A&&F)return F;if(!v&&Y&&Y in R)return R[Y];switch(Y){case C:return function(){function J(){return new w(this,Y)}return J}();case h:return function(){function J(){return new w(this,Y)}return J}();case N:return function(){function J(){return new w(this,Y)}return J}()}return function(){return new w(this)}},D=I+" Iterator",P=!1,R=B.prototype,j=R[g]||R["@@iterator"]||A&&R[A],F=!v&&j||M(A),U=I==="Array"&&R.entries||j,_,z,G;if(U&&(_=k(U.call(new B)),_!==Object.prototype&&_.next&&(!t&&k(_)!==i&&(S?S(_,i):f(_[g])||l(_,g,y)),b(_,D,!0,!0),t&&(m[D]=y))),u&&A===h&&j&&j.name!==h&&(!t&&s?p(R,"name",h):(P=!0,F=function(){function X(){return a(j,this)}return X}())),A)if(z={values:M(h),keys:x?F:M(C),entries:M(N)},E)for(G in z)(v||P||!(G in R))&&l(R,G,z[G]);else e({target:I,proto:!0,forced:v||P},z);return(!t||E)&&R[g]!==F&&l(R,g,F,{name:A}),m[I]=F,z}},85106:function(L,r,n){"use strict";var e=n(41746),a=n(7532),t=n(56831),o=n(28969),f=n(31658),V=n(59173),k=n(66266),S=n(11478),b=k("iterator"),p=!1,l,c,m;[].keys&&(m=[].keys(),"next"in m?(c=f(f(m)),c!==Object.prototype&&(l=c)):p=!0);var d=!t(l)||e(function(){var u={};return l[b].call(u)!==u});d?l={}:S&&(l=o(l)),a(l[b])||V(l,b,function(){return this}),L.exports={IteratorPrototype:l,BUGGY_SAFARI_ITERATORS:p}},90604:function(L){"use strict";L.exports={}},8333:function(L,r,n){"use strict";var e=n(10475);L.exports=function(a){return e(a.length)}},76130:function(L,r,n){"use strict";var e=n(18161),a=n(41746),t=n(7532),o=n(89458),f=n(14141),V=n(26463).CONFIGURABLE,k=n(43589),S=n(35086),b=S.enforce,p=S.get,l=String,c=Object.defineProperty,m=e("".slice),d=e("".replace),u=e([].join),s=f&&!a(function(){return c(function(){},"length",{value:8}).length!==8}),i=String(String).split("String"),v=L.exports=function(g,C,h){m(l(C),0,7)==="Symbol("&&(C="["+d(l(C),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),h&&h.getter&&(C="get "+C),h&&h.setter&&(C="set "+C),(!o(g,"name")||V&&g.name!==C)&&(f?c(g,"name",{value:C,configurable:!0}):g.name=C),s&&h&&o(h,"arity")&&g.length!==h.arity&&c(g,"length",{value:h.arity});try{h&&o(h,"constructor")&&h.constructor?f&&c(g,"prototype",{writable:!1}):g.prototype&&(g.prototype=void 0)}catch(y){}var N=b(g);return o(N,"source")||(N.source=u(i,typeof C=="string"?C:"")),g};Function.prototype.toString=v(function(){function g(){return t(this)&&p(this).source||k(this)}return g}(),"toString")},32813:function(L){"use strict";var r=Math.expm1,n=Math.exp;L.exports=!r||r(10)>22025.465794806718||r(10)<22025.465794806718||r(-2e-17)!==-2e-17?function(){function e(a){var t=+a;return t===0?t:t>-1e-6&&t<1e-6?t+t*t/2:n(t)-1}return e}():r},23207:function(L,r,n){"use strict";var e=n(54307),a=Math.abs,t=2220446049250313e-31,o=1/t,f=function(k){return k+o-o};L.exports=function(V,k,S,b){var p=+V,l=a(p),c=e(p);if(lS||d!==d?c*(1/0):c*d}},75988:function(L,r,n){"use strict";var e=n(23207),a=11920928955078125e-23,t=34028234663852886e22,o=11754943508222875e-54;L.exports=Math.fround||function(){function f(V){return e(V,a,t,o)}return f}()},53271:function(L){"use strict";var r=Math.log,n=Math.LOG10E;L.exports=Math.log10||function(){function e(a){return r(a)*n}return e}()},69143:function(L){"use strict";var r=Math.log;L.exports=Math.log1p||function(){function n(e){var a=+e;return a>-1e-8&&a<1e-8?a-a*a/2:r(1+a)}return n}()},54307:function(L){"use strict";L.exports=Math.sign||function(){function r(n){var e=+n;return e===0||e!==e?e:e<0?-1:1}return r}()},34606:function(L){"use strict";var r=Math.ceil,n=Math.floor;L.exports=Math.trunc||function(){function e(a){var t=+a;return(t>0?n:r)(t)}return e}()},27150:function(L,r,n){"use strict";var e=n(40224),a=n(1156),t=n(4509),o=n(91314).set,f=n(23496),V=n(52426),k=n(6647),S=n(25062),b=n(95823),p=e.MutationObserver||e.WebKitMutationObserver,l=e.document,c=e.process,m=e.Promise,d=a("queueMicrotask"),u,s,i,v,g;if(!d){var C=new f,h=function(){var y,B;for(b&&(y=c.domain)&&y.exit();B=C.get();)try{B()}catch(I){throw C.head&&u(),I}y&&y.enter()};!V&&!b&&!S&&p&&l?(s=!0,i=l.createTextNode(""),new p(h).observe(i,{characterData:!0}),u=function(){i.data=s=!s}):!k&&m&&m.resolve?(v=m.resolve(void 0),v.constructor=m,g=t(v.then,v),u=function(){g(h)}):b?u=function(){c.nextTick(h)}:(o=t(o,e),u=function(){o(h)}),d=function(y){C.head||u(),C.add(y)}}L.exports=d},48532:function(L,r,n){"use strict";var e=n(97361),a=TypeError,t=function(f){var V,k;this.promise=new f(function(S,b){if(V!==void 0||k!==void 0)throw new a("Bad Promise constructor");V=S,k=b}),this.resolve=e(V),this.reject=e(k)};L.exports.f=function(o){return new t(o)}},89140:function(L,r,n){"use strict";var e=n(80969),a=TypeError;L.exports=function(t){if(e(t))throw new a("The method doesn't accept regular expressions");return t}},69079:function(L,r,n){"use strict";var e=n(40224),a=e.isFinite;L.exports=Number.isFinite||function(){function t(o){return typeof o=="number"&&a(o)}return t}()},43283:function(L,r,n){"use strict";var e=n(40224),a=n(41746),t=n(18161),o=n(26602),f=n(35171).trim,V=n(137),k=t("".charAt),S=e.parseFloat,b=e.Symbol,p=b&&b.iterator,l=1/S(V+"-0")!==-1/0||p&&!a(function(){S(Object(p))});L.exports=l?function(){function c(m){var d=f(o(m)),u=S(d);return u===0&&k(d,0)==="-"?-0:u}return c}():S},11540:function(L,r,n){"use strict";var e=n(40224),a=n(41746),t=n(18161),o=n(26602),f=n(35171).trim,V=n(137),k=e.parseInt,S=e.Symbol,b=S&&S.iterator,p=/^[+-]?0x/i,l=t(p.exec),c=k(V+"08")!==8||k(V+"0x16")!==22||b&&!a(function(){k(Object(b))});L.exports=c?function(){function m(d,u){var s=f(o(d));return k(s,u>>>0||(l(p,s)?16:10))}return m}():k},12752:function(L,r,n){"use strict";var e=n(14141),a=n(18161),t=n(62696),o=n(41746),f=n(84913),V=n(34220),k=n(9776),S=n(40076),b=n(26736),p=Object.assign,l=Object.defineProperty,c=a([].concat);L.exports=!p||o(function(){if(e&&p({b:1},p(l({},"a",{enumerable:!0,get:function(){function i(){l(this,"b",{value:3,enumerable:!1})}return i}()}),{b:2})).b!==1)return!0;var m={},d={},u=Symbol("assign detection"),s="abcdefghijklmnopqrst";return m[u]=7,s.split("").forEach(function(i){d[i]=i}),p({},m)[u]!==7||f(p({},d)).join("")!==s})?function(){function m(d,u){for(var s=S(d),i=arguments.length,v=1,g=V.f,C=k.f;i>v;)for(var h=b(arguments[v++]),N=g?c(f(h),g(h)):f(h),y=N.length,B=0,I;y>B;)I=N[B++],(!e||t(C,h,I))&&(s[I]=h[I]);return s}return m}():p},28969:function(L,r,n){"use strict";var e=n(39482),a=n(65854),t=n(90298),o=n(21124),f=n(54562),V=n(85158),k=n(5160),S=">",b="<",p="prototype",l="script",c=k("IE_PROTO"),m=function(){},d=function(C){return b+l+S+C+b+"/"+l+S},u=function(C){C.write(d("")),C.close();var h=C.parentWindow.Object;return C=null,h},s=function(){var C=V("iframe"),h="java"+l+":",N;return C.style.display="none",f.appendChild(C),C.src=String(h),N=C.contentWindow.document,N.open(),N.write(d("document.F=Object")),N.close(),N.F},i,v=function(){try{i=new ActiveXObject("htmlfile")}catch(h){}v=typeof document!="undefined"?document.domain&&i?u(i):s():u(i);for(var C=t.length;C--;)delete v[p][t[C]];return v()};o[c]=!0,L.exports=Object.create||function(){function g(C,h){var N;return C!==null?(m[p]=e(C),N=new m,m[p]=null,N[c]=C):N=v(),h===void 0?N:a.f(N,h)}return g}()},65854:function(L,r,n){"use strict";var e=n(14141),a=n(83411),t=n(56018),o=n(39482),f=n(96812),V=n(84913);r.f=e&&!a?Object.defineProperties:function(){function k(S,b){o(S);for(var p=f(b),l=V(b),c=l.length,m=0,d;c>m;)t.f(S,d=l[m++],p[d]);return S}return k}()},56018:function(L,r,n){"use strict";var e=n(14141),a=n(1606),t=n(83411),o=n(39482),f=n(57640),V=TypeError,k=Object.defineProperty,S=Object.getOwnPropertyDescriptor,b="enumerable",p="configurable",l="writable";r.f=e?t?function(){function c(m,d,u){if(o(m),d=f(d),o(u),typeof m=="function"&&d==="prototype"&&"value"in u&&l in u&&!u[l]){var s=S(m,d);s&&s[l]&&(m[d]=u.value,u={configurable:p in u?u[p]:s[p],enumerable:b in u?u[b]:s[b],writable:!1})}return k(m,d,u)}return c}():k:function(){function c(m,d,u){if(o(m),d=f(d),o(u),a)try{return k(m,d,u)}catch(s){}if("get"in u||"set"in u)throw new V("Accessors not supported");return"value"in u&&(m[d]=u.value),m}return c}()},54168:function(L,r,n){"use strict";var e=n(14141),a=n(62696),t=n(9776),o=n(7539),f=n(96812),V=n(57640),k=n(89458),S=n(1606),b=Object.getOwnPropertyDescriptor;r.f=e?b:function(){function p(l,c){if(l=f(l),c=V(c),S)try{return b(l,c)}catch(m){}if(k(l,c))return o(!a(t.f,l,c),l[c])}return p}()},63797:function(L,r,n){"use strict";var e=n(38817),a=n(96812),t=n(34813).f,o=n(77713),f=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],V=function(S){try{return t(S)}catch(b){return o(f)}};L.exports.f=function(){function k(S){return f&&e(S)==="Window"?V(S):t(a(S))}return k}()},34813:function(L,r,n){"use strict";var e=n(62995),a=n(90298),t=a.concat("length","prototype");r.f=Object.getOwnPropertyNames||function(){function o(f){return e(f,t)}return o}()},34220:function(L,r){"use strict";r.f=Object.getOwnPropertySymbols},31658:function(L,r,n){"use strict";var e=n(89458),a=n(7532),t=n(40076),o=n(5160),f=n(58776),V=o("IE_PROTO"),k=Object,S=k.prototype;L.exports=f?k.getPrototypeOf:function(b){var p=t(b);if(e(p,V))return p[V];var l=p.constructor;return a(l)&&p instanceof l?l.prototype:p instanceof k?S:null}},57975:function(L,r,n){"use strict";var e=n(41746),a=n(56831),t=n(38817),o=n(65693),f=Object.isExtensible,V=e(function(){f(1)});L.exports=V||o?function(){function k(S){return!a(S)||o&&t(S)==="ArrayBuffer"?!1:f?f(S):!0}return k}():f},33314:function(L,r,n){"use strict";var e=n(18161);L.exports=e({}.isPrototypeOf)},62995:function(L,r,n){"use strict";var e=n(18161),a=n(89458),t=n(96812),o=n(64210).indexOf,f=n(21124),V=e([].push);L.exports=function(k,S){var b=t(k),p=0,l=[],c;for(c in b)!a(f,c)&&a(b,c)&&V(l,c);for(;S.length>p;)a(b,c=S[p++])&&(~o(l,c)||V(l,c));return l}},84913:function(L,r,n){"use strict";var e=n(62995),a=n(90298);L.exports=Object.keys||function(){function t(o){return e(o,a)}return t}()},9776:function(L,r){"use strict";var n={}.propertyIsEnumerable,e=Object.getOwnPropertyDescriptor,a=e&&!n.call({1:2},1);r.f=a?function(){function t(o){var f=e(this,o);return!!f&&f.enumerable}return t}():n},33030:function(L,r,n){"use strict";var e=n(11478),a=n(40224),t=n(41746),o=n(53125);L.exports=e||!t(function(){if(!(o&&o<535)){var f=Math.random();__defineSetter__.call(null,f,function(){}),delete a[f]}})},42878:function(L,r,n){"use strict";var e=n(9553),a=n(56831),t=n(91029),o=n(51689);L.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var f=!1,V={},k;try{k=e(Object.prototype,"__proto__","set"),k(V,[]),f=V instanceof Array}catch(S){}return function(){function S(b,p){return t(b),o(p),a(b)&&(f?k(b,p):b.__proto__=p),b}return S}()}():void 0)},97452:function(L,r,n){"use strict";var e=n(14141),a=n(41746),t=n(18161),o=n(31658),f=n(84913),V=n(96812),k=n(9776).f,S=t(k),b=t([].push),p=e&&a(function(){var c=Object.create(null);return c[2]=2,!S(c,2)}),l=function(m){return function(d){for(var u=V(d),s=f(u),i=p&&o(u)===null,v=s.length,g=0,C=[],h;v>g;)h=s[g++],(!e||(i?h in u:S(u,h)))&&b(C,m?[h,u[h]]:u[h]);return C}};L.exports={entries:l(!0),values:l(!1)}},66628:function(L,r,n){"use strict";var e=n(82161),a=n(27806);L.exports=e?{}.toString:function(){function t(){return"[object "+a(this)+"]"}return t}()},14991:function(L,r,n){"use strict";var e=n(62696),a=n(7532),t=n(56831),o=TypeError;L.exports=function(f,V){var k,S;if(V==="string"&&a(k=f.toString)&&!t(S=e(k,f))||a(k=f.valueOf)&&!t(S=e(k,f))||V!=="string"&&a(k=f.toString)&&!t(S=e(k,f)))return S;throw new o("Can't convert object to primitive value")}},93616:function(L,r,n){"use strict";var e=n(40164),a=n(18161),t=n(34813),o=n(34220),f=n(39482),V=a([].concat);L.exports=e("Reflect","ownKeys")||function(){function k(S){var b=t.f(f(S)),p=o.f;return p?V(b,p(S)):b}return k}()},5376:function(L,r,n){"use strict";var e=n(40224);L.exports=e},91114:function(L){"use strict";L.exports=function(r){try{return{error:!1,value:r()}}catch(n){return{error:!0,value:n}}}},49669:function(L,r,n){"use strict";var e=n(40224),a=n(35973),t=n(7532),o=n(95945),f=n(43589),V=n(66266),k=n(27955),S=n(2971),b=n(11478),p=n(82709),l=a&&a.prototype,c=V("species"),m=!1,d=t(e.PromiseRejectionEvent),u=o("Promise",function(){var s=f(a),i=s!==String(a);if(!i&&p===66||b&&!(l.catch&&l.finally))return!0;if(!p||p<51||!/native code/.test(s)){var v=new a(function(h){h(1)}),g=function(N){N(function(){},function(){})},C=v.constructor={};if(C[c]=g,m=v.then(function(){})instanceof g,!m)return!0}return!i&&(k||S)&&!d});L.exports={CONSTRUCTOR:u,REJECTION_EVENT:d,SUBCLASSING:m}},35973:function(L,r,n){"use strict";var e=n(40224);L.exports=e.Promise},43827:function(L,r,n){"use strict";var e=n(39482),a=n(56831),t=n(48532);L.exports=function(o,f){if(e(o),a(f)&&f.constructor===o)return f;var V=t.f(o),k=V.resolve;return k(f),V.promise}},95044:function(L,r,n){"use strict";var e=n(35973),a=n(52019),t=n(49669).CONSTRUCTOR;L.exports=t||!a(function(o){e.all(o).then(void 0,function(){})})},77495:function(L,r,n){"use strict";var e=n(56018).f;L.exports=function(a,t,o){o in a||e(a,o,{configurable:!0,get:function(){function f(){return t[o]}return f}(),set:function(){function f(V){t[o]=V}return f}()})}},23496:function(L){"use strict";var r=function(){this.head=null,this.tail=null};r.prototype={add:function(){function n(e){var a={item:e,next:null},t=this.tail;t?t.next=a:this.head=a,this.tail=a}return n}(),get:function(){function n(){var e=this.head;if(e){var a=this.head=e.next;return a===null&&(this.tail=null),e.item}}return n}()},L.exports=r},35553:function(L,r,n){"use strict";var e=n(62696),a=n(39482),t=n(7532),o=n(38817),f=n(72894),V=TypeError;L.exports=function(k,S){var b=k.exec;if(t(b)){var p=e(b,k,S);return p!==null&&a(p),p}if(o(k)==="RegExp")return e(f,k,S);throw new V("RegExp#exec called on incompatible receiver")}},72894:function(L,r,n){"use strict";var e=n(62696),a=n(18161),t=n(26602),o=n(65844),f=n(1064),V=n(75130),k=n(28969),S=n(35086).get,b=n(89604),p=n(5489),l=V("native-string-replace",String.prototype.replace),c=RegExp.prototype.exec,m=c,d=a("".charAt),u=a("".indexOf),s=a("".replace),i=a("".slice),v=function(){var N=/a/,y=/b*/g;return e(c,N,"a"),e(c,y,"a"),N.lastIndex!==0||y.lastIndex!==0}(),g=f.BROKEN_CARET,C=/()??/.exec("")[1]!==void 0,h=v||C||g||b||p;h&&(m=function(){function N(y){var B=this,I=S(B),w=t(y),T=I.raw,A,x,E,M,D,P,R;if(T)return T.lastIndex=B.lastIndex,A=e(m,T,w),B.lastIndex=T.lastIndex,A;var j=I.groups,F=g&&B.sticky,U=e(o,B),_=B.source,z=0,G=w;if(F&&(U=s(U,"y",""),u(U,"g")===-1&&(U+="g"),G=i(w,B.lastIndex),B.lastIndex>0&&(!B.multiline||B.multiline&&d(w,B.lastIndex-1)!=="\n")&&(_="(?: "+_+")",G=" "+G,z++),x=new RegExp("^(?:"+_+")",U)),C&&(x=new RegExp("^"+_+"$(?!\\s)",U)),v&&(E=B.lastIndex),M=e(c,F?x:B,G),F?M?(M.input=i(M.input,z),M[0]=i(M[0],z),M.index=B.lastIndex,B.lastIndex+=M[0].length):B.lastIndex=0:v&&M&&(B.lastIndex=B.global?M.index+M[0].length:E),C&&M&&M.length>1&&e(l,M[0],x,function(){for(D=1;Db)","g");return o.exec("b").groups.a!=="b"||"b".replace(o,"$c")!=="bc"})},91029:function(L,r,n){"use strict";var e=n(1022),a=TypeError;L.exports=function(t){if(e(t))throw new a("Can't call method on "+t);return t}},1156:function(L,r,n){"use strict";var e=n(40224),a=n(14141),t=Object.getOwnPropertyDescriptor;L.exports=function(o){if(!a)return e[o];var f=t(e,o);return f&&f.value}},37309:function(L){"use strict";L.exports=Object.is||function(){function r(n,e){return n===e?n!==0||1/n===1/e:n!==n&&e!==e}return r}()},83827:function(L,r,n){"use strict";var e=n(40224),a=n(70918),t=n(7532),o=n(2178),f=n(15837),V=n(77713),k=n(22789),S=e.Function,b=/MSIE .\./.test(f)||o&&function(){var p=e.Bun.version.split(".");return p.length<3||p[0]==="0"&&(p[1]<3||p[1]==="3"&&p[2]==="0")}();L.exports=function(p,l){var c=l?2:1;return b?function(m,d){var u=k(arguments.length,1)>c,s=t(m)?m:S(m),i=u?V(arguments,c):[],v=u?function(){a(s,this,i)}:s;return l?p(v,d):p(v)}:p}},67420:function(L,r,n){"use strict";var e=n(40164),a=n(10069),t=n(66266),o=n(14141),f=t("species");L.exports=function(V){var k=e(V);o&&k&&!k[f]&&a(k,f,{configurable:!0,get:function(){function S(){return this}return S}()})}},94234:function(L,r,n){"use strict";var e=n(56018).f,a=n(89458),t=n(66266),o=t("toStringTag");L.exports=function(f,V,k){f&&!k&&(f=f.prototype),f&&!a(f,o)&&e(f,o,{configurable:!0,value:V})}},5160:function(L,r,n){"use strict";var e=n(75130),a=n(33345),t=e("keys");L.exports=function(o){return t[o]||(t[o]=a(o))}},95046:function(L,r,n){"use strict";var e=n(11478),a=n(40224),t=n(93422),o="__core-js_shared__",f=L.exports=a[o]||t(o,{});(f.versions||(f.versions=[])).push({version:"3.36.1",mode:e?"pure":"global",copyright:"\xA9 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.36.1/LICENSE",source:"https://github.com/zloirock/core-js"})},75130:function(L,r,n){"use strict";var e=n(95046);L.exports=function(a,t){return e[a]||(e[a]=t||{})}},78412:function(L,r,n){"use strict";var e=n(39482),a=n(76833),t=n(1022),o=n(66266),f=o("species");L.exports=function(V,k){var S=e(V).constructor,b;return S===void 0||t(b=e(S)[f])?k:a(b)}},32086:function(L,r,n){"use strict";var e=n(41746);L.exports=function(a){return e(function(){var t=""[a]('"');return t!==t.toLowerCase()||t.split('"').length>3})}},56852:function(L,r,n){"use strict";var e=n(18161),a=n(74952),t=n(26602),o=n(91029),f=e("".charAt),V=e("".charCodeAt),k=e("".slice),S=function(p){return function(l,c){var m=t(o(l)),d=a(c),u=m.length,s,i;return d<0||d>=u?p?"":void 0:(s=V(m,d),s<55296||s>56319||d+1===u||(i=V(m,d+1))<56320||i>57343?p?f(m,d):s:p?k(m,d,d+2):(s-55296<<10)+(i-56320)+65536)}};L.exports={codeAt:S(!1),charAt:S(!0)}},33038:function(L,r,n){"use strict";var e=n(15837);L.exports=/Version\/10(?:\.\d+){1,2}(?: [\w./]+)?(?: Mobile\/\w+)? Safari\//.test(e)},34086:function(L,r,n){"use strict";var e=n(18161),a=n(10475),t=n(26602),o=n(84948),f=n(91029),V=e(o),k=e("".slice),S=Math.ceil,b=function(l){return function(c,m,d){var u=t(f(c)),s=a(m),i=u.length,v=d===void 0?" ":t(d),g,C;return s<=i||v===""?u:(g=s-i,C=V(v,S(g/v.length)),C.length>g&&(C=k(C,0,g)),l?u+C:C+u)}};L.exports={start:b(!1),end:b(!0)}},84948:function(L,r,n){"use strict";var e=n(74952),a=n(26602),t=n(91029),o=RangeError;L.exports=function(){function f(V){var k=a(t(this)),S="",b=e(V);if(b<0||b===1/0)throw new o("Wrong number of repetitions");for(;b>0;(b>>>=1)&&(k+=k))b&1&&(S+=k);return S}return f}()},11775:function(L,r,n){"use strict";var e=n(35171).end,a=n(93817);L.exports=a("trimEnd")?function(){function t(){return e(this)}return t}():"".trimEnd},93817:function(L,r,n){"use strict";var e=n(26463).PROPER,a=n(41746),t=n(137),o="\u200B\x85\u180E";L.exports=function(f){return a(function(){return!!t[f]()||o[f]()!==o||e&&t[f].name!==f})}},26402:function(L,r,n){"use strict";var e=n(35171).start,a=n(93817);L.exports=a("trimStart")?function(){function t(){return e(this)}return t}():"".trimStart},35171:function(L,r,n){"use strict";var e=n(18161),a=n(91029),t=n(26602),o=n(137),f=e("".replace),V=RegExp("^["+o+"]+"),k=RegExp("(^|[^"+o+"])["+o+"]+$"),S=function(p){return function(l){var c=t(a(l));return p&1&&(c=f(c,V,"")),p&2&&(c=f(c,k,"$1")),c}};L.exports={start:S(1),end:S(2),trim:S(3)}},70640:function(L,r,n){"use strict";var e=n(82709),a=n(41746),t=n(40224),o=t.String;L.exports=!!Object.getOwnPropertySymbols&&!a(function(){var f=Symbol("symbol detection");return!o(f)||!(Object(f)instanceof Symbol)||!Symbol.sham&&e&&e<41})},75429:function(L,r,n){"use strict";var e=n(62696),a=n(40164),t=n(66266),o=n(59173);L.exports=function(){var f=a("Symbol"),V=f&&f.prototype,k=V&&V.valueOf,S=t("toPrimitive");V&&!V[S]&&o(V,S,function(b){return e(k,this)},{arity:1})}},80353:function(L,r,n){"use strict";var e=n(70640);L.exports=e&&!!Symbol.for&&!!Symbol.keyFor},91314:function(L,r,n){"use strict";var e=n(40224),a=n(70918),t=n(4509),o=n(7532),f=n(89458),V=n(41746),k=n(54562),S=n(77713),b=n(85158),p=n(22789),l=n(52426),c=n(95823),m=e.setImmediate,d=e.clearImmediate,u=e.process,s=e.Dispatch,i=e.Function,v=e.MessageChannel,g=e.String,C=0,h={},N="onreadystatechange",y,B,I,w;V(function(){y=e.location});var T=function(D){if(f(h,D)){var P=h[D];delete h[D],P()}},A=function(D){return function(){T(D)}},x=function(D){T(D.data)},E=function(D){e.postMessage(g(D),y.protocol+"//"+y.host)};(!m||!d)&&(m=function(){function M(D){p(arguments.length,1);var P=o(D)?D:i(D),R=S(arguments,1);return h[++C]=function(){a(P,void 0,R)},B(C),C}return M}(),d=function(){function M(D){delete h[D]}return M}(),c?B=function(D){u.nextTick(A(D))}:s&&s.now?B=function(D){s.now(A(D))}:v&&!l?(I=new v,w=I.port2,I.port1.onmessage=x,B=t(w.postMessage,w)):e.addEventListener&&o(e.postMessage)&&!e.importScripts&&y&&y.protocol!=="file:"&&!V(E)?(B=E,e.addEventListener("message",x,!1)):N in b("script")?B=function(D){k.appendChild(b("script"))[N]=function(){k.removeChild(this),T(D)}}:B=function(D){setTimeout(A(D),0)}),L.exports={set:m,clear:d}},37497:function(L,r,n){"use strict";var e=n(18161);L.exports=e(1 .valueOf)},74067:function(L,r,n){"use strict";var e=n(74952),a=Math.max,t=Math.min;L.exports=function(o,f){var V=e(o);return V<0?a(V+f,0):t(V,f)}},757:function(L,r,n){"use strict";var e=n(4370),a=TypeError;L.exports=function(t){var o=e(t,"number");if(typeof o=="number")throw new a("Can't convert number to bigint");return BigInt(o)}},90835:function(L,r,n){"use strict";var e=n(74952),a=n(10475),t=RangeError;L.exports=function(o){if(o===void 0)return 0;var f=e(o),V=a(f);if(f!==V)throw new t("Wrong length or index");return V}},96812:function(L,r,n){"use strict";var e=n(26736),a=n(91029);L.exports=function(t){return e(a(t))}},74952:function(L,r,n){"use strict";var e=n(34606);L.exports=function(a){var t=+a;return t!==t||t===0?0:e(t)}},10475:function(L,r,n){"use strict";var e=n(74952),a=Math.min;L.exports=function(t){var o=e(t);return o>0?a(o,9007199254740991):0}},40076:function(L,r,n){"use strict";var e=n(91029),a=Object;L.exports=function(t){return a(e(t))}},65264:function(L,r,n){"use strict";var e=n(43627),a=RangeError;L.exports=function(t,o){var f=e(t);if(f%o)throw new a("Wrong offset");return f}},43627:function(L,r,n){"use strict";var e=n(74952),a=RangeError;L.exports=function(t){var o=e(t);if(o<0)throw new a("The argument can't be less than 0");return o}},4370:function(L,r,n){"use strict";var e=n(62696),a=n(56831),t=n(74352),o=n(4817),f=n(14991),V=n(66266),k=TypeError,S=V("toPrimitive");L.exports=function(b,p){if(!a(b)||t(b))return b;var l=o(b,S),c;if(l){if(p===void 0&&(p="default"),c=e(l,b,p),!a(c)||t(c))return c;throw new k("Can't convert object to primitive value")}return p===void 0&&(p="number"),f(b,p)}},57640:function(L,r,n){"use strict";var e=n(4370),a=n(74352);L.exports=function(t){var o=e(t,"string");return a(o)?o:o+""}},82161:function(L,r,n){"use strict";var e=n(66266),a=e("toStringTag"),t={};t[a]="z",L.exports=String(t)==="[object z]"},26602:function(L,r,n){"use strict";var e=n(27806),a=String;L.exports=function(t){if(e(t)==="Symbol")throw new TypeError("Cannot convert a Symbol value to a string");return a(t)}},78828:function(L){"use strict";var r=Math.round;L.exports=function(n){var e=r(n);return e<0?0:e>255?255:e&255}},62518:function(L){"use strict";var r=String;L.exports=function(n){try{return r(n)}catch(e){return"Object"}}},12218:function(L,r,n){"use strict";var e=n(77549),a=n(40224),t=n(62696),o=n(14141),f=n(66220),V=n(72951),k=n(46185),S=n(19870),b=n(7539),p=n(16216),l=n(57696),c=n(10475),m=n(90835),d=n(65264),u=n(78828),s=n(57640),i=n(89458),v=n(27806),g=n(56831),C=n(74352),h=n(28969),N=n(33314),y=n(42878),B=n(34813).f,I=n(7996),w=n(67480).forEach,T=n(67420),A=n(10069),x=n(56018),E=n(54168),M=n(6967),D=n(35086),P=n(2566),R=D.get,j=D.set,F=D.enforce,U=x.f,_=E.f,z=a.RangeError,G=k.ArrayBuffer,X=G.prototype,Y=k.DataView,J=V.NATIVE_ARRAY_BUFFER_VIEWS,ie=V.TYPED_ARRAY_TAG,ae=V.TypedArray,fe=V.TypedArrayPrototype,pe=V.isTypedArray,be="BYTES_PER_ELEMENT",te="Wrong length",Q=function(ke,Be){A(ke,Be,{configurable:!0,get:function(){function ve(){return R(this)[Be]}return ve}()})},ne=function(ke){var Be;return N(X,ke)||(Be=v(ke))==="ArrayBuffer"||Be==="SharedArrayBuffer"},me=function(ke,Be){return pe(ke)&&!C(Be)&&Be in ke&&l(+Be)&&Be>=0},ce=function(){function oe(ke,Be){return Be=s(Be),me(ke,Be)?b(2,ke[Be]):_(ke,Be)}return oe}(),ue=function(){function oe(ke,Be,ve){return Be=s(Be),me(ke,Be)&&g(ve)&&i(ve,"value")&&!i(ve,"get")&&!i(ve,"set")&&!ve.configurable&&(!i(ve,"writable")||ve.writable)&&(!i(ve,"enumerable")||ve.enumerable)?(ke[Be]=ve.value,ke):U(ke,Be,ve)}return oe}();o?(J||(E.f=ce,x.f=ue,Q(fe,"buffer"),Q(fe,"byteOffset"),Q(fe,"byteLength"),Q(fe,"length")),e({target:"Object",stat:!0,forced:!J},{getOwnPropertyDescriptor:ce,defineProperty:ue}),L.exports=function(oe,ke,Be){var ve=oe.match(/\d+/)[0]/8,ge=oe+(Be?"Clamped":"")+"Array",ye="get"+oe,Ve="set"+oe,Ie=a[ge],we=Ie,xe=we&&we.prototype,Oe={},We=function(se,Ce){var Ae=R(se);return Ae.view[ye](Ce*ve+Ae.byteOffset,!0)},Ne=function(se,Ce,Ae){var De=R(se);De.view[Ve](Ce*ve+De.byteOffset,Be?u(Ae):Ae,!0)},re=function(se,Ce){U(se,Ce,{get:function(){function Ae(){return We(this,Ce)}return Ae}(),set:function(){function Ae(De){return Ne(this,Ce,De)}return Ae}(),enumerable:!0})};J?f&&(we=ke(function(he,se,Ce,Ae){return S(he,xe),P(function(){return g(se)?ne(se)?Ae!==void 0?new Ie(se,d(Ce,ve),Ae):Ce!==void 0?new Ie(se,d(Ce,ve)):new Ie(se):pe(se)?M(we,se):t(I,we,se):new Ie(m(se))}(),he,we)}),y&&y(we,ae),w(B(Ie),function(he){he in we||p(we,he,Ie[he])}),we.prototype=xe):(we=ke(function(he,se,Ce,Ae){S(he,xe);var De=0,je=0,_e,Ue,Ke;if(!g(se))Ke=m(se),Ue=Ke*ve,_e=new G(Ue);else if(ne(se)){_e=se,je=d(Ce,ve);var $e=se.byteLength;if(Ae===void 0){if($e%ve)throw new z(te);if(Ue=$e-je,Ue<0)throw new z(te)}else if(Ue=c(Ae)*ve,Ue+je>$e)throw new z(te);Ke=Ue/ve}else return pe(se)?M(we,se):t(I,we,se);for(j(he,{buffer:_e,byteOffset:je,byteLength:Ue,length:Ke,view:new Y(_e)});De1?arguments[1]:void 0,v=i!==void 0,g=k(u),C,h,N,y,B,I,w,T;if(g&&!S(g))for(w=V(u,g),T=w.next,u=[];!(I=a(T,w)).done;)u.push(I.value);for(v&&s>2&&(i=e(i,arguments[2])),h=f(u),N=new(p(d))(h),y=b(N),C=0;h>C;C++)B=v?i(u[C],C):u[C],N[C]=y?l(B):+B;return N}return c}()},489:function(L,r,n){"use strict";var e=n(72951),a=n(78412),t=e.aTypedArrayConstructor,o=e.getTypedArrayConstructor;L.exports=function(f){return t(a(f,o(f)))}},33345:function(L,r,n){"use strict";var e=n(18161),a=0,t=Math.random(),o=e(1 .toString);L.exports=function(f){return"Symbol("+(f===void 0?"":f)+")_"+o(++a+t,36)}},81457:function(L,r,n){"use strict";var e=n(70640);L.exports=e&&!Symbol.sham&&typeof Symbol.iterator=="symbol"},83411:function(L,r,n){"use strict";var e=n(14141),a=n(41746);L.exports=e&&a(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42})},22789:function(L){"use strict";var r=TypeError;L.exports=function(n,e){if(n=51||!a(function(){var i=[];return i[m]=!1,i.concat()[0]!==i}),u=function(v){if(!o(v))return!1;var g=v[m];return g!==void 0?!!g:t(v)},s=!d||!p("concat");e({target:"Array",proto:!0,arity:1,forced:s},{concat:function(){function i(v){var g=f(this),C=b(g,0),h=0,N,y,B,I,w;for(N=-1,B=arguments.length;N1?arguments[1]:void 0)}return f}()})},24974:function(L,r,n){"use strict";var e=n(77549),a=n(59942),t=n(91138);e({target:"Array",proto:!0},{fill:a}),t("fill")},6297:function(L,r,n){"use strict";var e=n(77549),a=n(67480).filter,t=n(55114),o=t("filter");e({target:"Array",proto:!0,forced:!o},{filter:function(){function f(V){return a(this,V,arguments.length>1?arguments[1]:void 0)}return f}()})},35173:function(L,r,n){"use strict";var e=n(77549),a=n(67480).findIndex,t=n(91138),o="findIndex",f=!0;o in[]&&Array(1)[o](function(){f=!1}),e({target:"Array",proto:!0,forced:f},{findIndex:function(){function V(k){return a(this,k,arguments.length>1?arguments[1]:void 0)}return V}()}),t(o)},5364:function(L,r,n){"use strict";var e=n(77549),a=n(67480).find,t=n(91138),o="find",f=!0;o in[]&&Array(1)[o](function(){f=!1}),e({target:"Array",proto:!0,forced:f},{find:function(){function V(k){return a(this,k,arguments.length>1?arguments[1]:void 0)}return V}()}),t(o)},88707:function(L,r,n){"use strict";var e=n(77549),a=n(68864),t=n(97361),o=n(40076),f=n(8333),V=n(32878);e({target:"Array",proto:!0},{flatMap:function(){function k(S){var b=o(this),p=f(b),l;return t(S),l=V(b,0),l.length=a(l,b,b,p,0,1,S,arguments.length>1?arguments[1]:void 0),l}return k}()})},16576:function(L,r,n){"use strict";var e=n(77549),a=n(68864),t=n(40076),o=n(8333),f=n(74952),V=n(32878);e({target:"Array",proto:!0},{flat:function(){function k(){var S=arguments.length?arguments[0]:void 0,b=t(this),p=o(b),l=V(b,0);return l.length=a(l,b,b,p,0,S===void 0?1:f(S)),l}return k}()})},21508:function(L,r,n){"use strict";var e=n(77549),a=n(75420);e({target:"Array",proto:!0,forced:[].forEach!==a},{forEach:a})},86339:function(L,r,n){"use strict";var e=n(77549),a=n(80363),t=n(52019),o=!t(function(f){Array.from(f)});e({target:"Array",stat:!0,forced:o},{from:a})},81850:function(L,r,n){"use strict";var e=n(77549),a=n(64210).includes,t=n(41746),o=n(91138),f=t(function(){return!Array(1).includes()});e({target:"Array",proto:!0,forced:f},{includes:function(){function V(k){return a(this,k,arguments.length>1?arguments[1]:void 0)}return V}()}),o("includes")},98661:function(L,r,n){"use strict";var e=n(77549),a=n(85067),t=n(64210).indexOf,o=n(42309),f=a([].indexOf),V=!!f&&1/f([1],1,-0)<0,k=V||!o("indexOf");e({target:"Array",proto:!0,forced:k},{indexOf:function(){function S(b){var p=arguments.length>1?arguments[1]:void 0;return V?f(this,b,p)||0:t(this,b,p)}return S}()})},13431:function(L,r,n){"use strict";var e=n(77549),a=n(62367);e({target:"Array",stat:!0},{isArray:a})},65809:function(L,r,n){"use strict";var e=n(96812),a=n(91138),t=n(90604),o=n(35086),f=n(56018).f,V=n(2449),k=n(77056),S=n(11478),b=n(14141),p="Array Iterator",l=o.set,c=o.getterFor(p);L.exports=V(Array,"Array",function(d,u){l(this,{type:p,target:e(d),index:0,kind:u})},function(){var d=c(this),u=d.target,s=d.index++;if(!u||s>=u.length)return d.target=void 0,k(void 0,!0);switch(d.kind){case"keys":return k(s,!1);case"values":return k(u[s],!1)}return k([s,u[s]],!1)},"values");var m=t.Arguments=t.Array;if(a("keys"),a("values"),a("entries"),!S&&b&&m.name!=="values")try{f(m,"name",{value:"values"})}catch(d){}},8611:function(L,r,n){"use strict";var e=n(77549),a=n(18161),t=n(26736),o=n(96812),f=n(42309),V=a([].join),k=t!==Object,S=k||!f("join",",");e({target:"Array",proto:!0,forced:S},{join:function(){function b(p){return V(o(this),p===void 0?",":p)}return b}()})},97246:function(L,r,n){"use strict";var e=n(77549),a=n(16934);e({target:"Array",proto:!0,forced:a!==[].lastIndexOf},{lastIndexOf:a})},48741:function(L,r,n){"use strict";var e=n(77549),a=n(67480).map,t=n(55114),o=t("map");e({target:"Array",proto:!0,forced:!o},{map:function(){function f(V){return a(this,V,arguments.length>1?arguments[1]:void 0)}return f}()})},90446:function(L,r,n){"use strict";var e=n(77549),a=n(41746),t=n(60354),o=n(12913),f=Array,V=a(function(){function k(){}return!(f.of.call(k)instanceof k)});e({target:"Array",stat:!0,forced:V},{of:function(){function k(){for(var S=0,b=arguments.length,p=new(t(this)?this:f)(b);b>S;)o(p,S,arguments[S++]);return p.length=b,p}return k}()})},61902:function(L,r,n){"use strict";var e=n(77549),a=n(98405).right,t=n(42309),o=n(82709),f=n(95823),V=!f&&o>79&&o<83,k=V||!t("reduceRight");e({target:"Array",proto:!0,forced:k},{reduceRight:function(){function S(b){return a(this,b,arguments.length,arguments.length>1?arguments[1]:void 0)}return S}()})},509:function(L,r,n){"use strict";var e=n(77549),a=n(98405).left,t=n(42309),o=n(82709),f=n(95823),V=!f&&o>79&&o<83,k=V||!t("reduce");e({target:"Array",proto:!0,forced:k},{reduce:function(){function S(b){var p=arguments.length;return a(this,b,p,p>1?arguments[1]:void 0)}return S}()})},96149:function(L,r,n){"use strict";var e=n(77549),a=n(18161),t=n(62367),o=a([].reverse),f=[1,2];e({target:"Array",proto:!0,forced:String(f)===String(f.reverse())},{reverse:function(){function V(){return t(this)&&(this.length=this.length),o(this)}return V}()})},66617:function(L,r,n){"use strict";var e=n(77549),a=n(62367),t=n(60354),o=n(56831),f=n(74067),V=n(8333),k=n(96812),S=n(12913),b=n(66266),p=n(55114),l=n(77713),c=p("slice"),m=b("species"),d=Array,u=Math.max;e({target:"Array",proto:!0,forced:!c},{slice:function(){function s(i,v){var g=k(this),C=V(g),h=f(i,C),N=f(v===void 0?C:v,C),y,B,I;if(a(g)&&(y=g.constructor,t(y)&&(y===d||a(y.prototype))?y=void 0:o(y)&&(y=y[m],y===null&&(y=void 0)),y===d||y===void 0))return l(g,h,N);for(B=new(y===void 0?d:y)(u(N-h,0)),I=0;h1?arguments[1]:void 0)}return f}()})},56855:function(L,r,n){"use strict";var e=n(77549),a=n(18161),t=n(97361),o=n(40076),f=n(8333),V=n(58937),k=n(26602),S=n(41746),b=n(44815),p=n(42309),l=n(49847),c=n(56605),m=n(82709),d=n(53125),u=[],s=a(u.sort),i=a(u.push),v=S(function(){u.sort(void 0)}),g=S(function(){u.sort(null)}),C=p("sort"),h=!S(function(){if(m)return m<70;if(!(l&&l>3)){if(c)return!0;if(d)return d<603;var B="",I,w,T,A;for(I=65;I<76;I++){switch(w=String.fromCharCode(I),I){case 66:case 69:case 70:case 72:T=3;break;case 68:case 71:T=4;break;default:T=2}for(A=0;A<47;A++)u.push({k:w+A,v:T})}for(u.sort(function(x,E){return E.v-x.v}),A=0;Ak(T)?1:-1}};e({target:"Array",proto:!0,forced:N},{sort:function(){function B(I){I!==void 0&&t(I);var w=o(this);if(h)return I===void 0?s(w):s(w,I);var T=[],A=f(w),x,E;for(E=0;Eg-y+N;I--)p(v,I-1)}else if(N>y)for(I=g-y;I>C;I--)w=I+y-1,T=I+N-1,w in v?v[T]=v[w]:p(v,T);for(I=0;I9490626562425156e-8?o(p)+V:a(p-1+f(p-1)*f(p+1))}return S}()})},86551:function(L,r,n){"use strict";var e=n(77549),a=Math.asinh,t=Math.log,o=Math.sqrt;function f(k){var S=+k;return!isFinite(S)||S===0?S:S<0?-f(-S):t(S+o(S*S+1))}var V=!(a&&1/a(0)>0);e({target:"Math",stat:!0,forced:V},{asinh:f})},10940:function(L,r,n){"use strict";var e=n(77549),a=Math.atanh,t=Math.log,o=!(a&&1/a(-0)<0);e({target:"Math",stat:!0,forced:o},{atanh:function(){function f(V){var k=+V;return k===0?k:t((1+k)/(1-k))/2}return f}()})},73763:function(L,r,n){"use strict";var e=n(77549),a=n(54307),t=Math.abs,o=Math.pow;e({target:"Math",stat:!0},{cbrt:function(){function f(V){var k=+V;return a(k)*o(t(k),.3333333333333333)}return f}()})},3372:function(L,r,n){"use strict";var e=n(77549),a=Math.floor,t=Math.log,o=Math.LOG2E;e({target:"Math",stat:!0},{clz32:function(){function f(V){var k=V>>>0;return k?31-a(t(k+.5)*o):32}return f}()})},51629:function(L,r,n){"use strict";var e=n(77549),a=n(32813),t=Math.cosh,o=Math.abs,f=Math.E,V=!t||t(710)===1/0;e({target:"Math",stat:!0,forced:V},{cosh:function(){function k(S){var b=a(o(S)-1)+1;return(b+1/(b*f*f))*(f/2)}return k}()})},69727:function(L,r,n){"use strict";var e=n(77549),a=n(32813);e({target:"Math",stat:!0,forced:a!==Math.expm1},{expm1:a})},27482:function(L,r,n){"use strict";var e=n(77549),a=n(75988);e({target:"Math",stat:!0},{fround:a})},7108:function(L,r,n){"use strict";var e=n(77549),a=Math.hypot,t=Math.abs,o=Math.sqrt,f=!!a&&a(1/0,NaN)!==1/0;e({target:"Math",stat:!0,arity:2,forced:f},{hypot:function(){function V(k,S){for(var b=0,p=0,l=arguments.length,c=0,m,d;p0?(d=m/c,b+=d*d):b+=m;return c===1/0?1/0:c*o(b)}return V}()})},4115:function(L,r,n){"use strict";var e=n(77549),a=n(41746),t=Math.imul,o=a(function(){return t(4294967295,5)!==-5||t.length!==2});e({target:"Math",stat:!0,forced:o},{imul:function(){function f(V,k){var S=65535,b=+V,p=+k,l=S&b,c=S&p;return 0|l*c+((S&b>>>16)*c+l*(S&p>>>16)<<16>>>0)}return f}()})},63953:function(L,r,n){"use strict";var e=n(77549),a=n(53271);e({target:"Math",stat:!0},{log10:a})},71377:function(L,r,n){"use strict";var e=n(77549),a=n(69143);e({target:"Math",stat:!0},{log1p:a})},63956:function(L,r,n){"use strict";var e=n(77549),a=Math.log,t=Math.LN2;e({target:"Math",stat:!0},{log2:function(){function o(f){return a(f)/t}return o}()})},90037:function(L,r,n){"use strict";var e=n(77549),a=n(54307);e({target:"Math",stat:!0},{sign:a})},46818:function(L,r,n){"use strict";var e=n(77549),a=n(41746),t=n(32813),o=Math.abs,f=Math.exp,V=Math.E,k=a(function(){return Math.sinh(-2e-17)!==-2e-17});e({target:"Math",stat:!0,forced:k},{sinh:function(){function S(b){var p=+b;return o(p)<1?(t(p)-t(-p))/2:(f(p-1)-f(-p-1))*(V/2)}return S}()})},26681:function(L,r,n){"use strict";var e=n(77549),a=n(32813),t=Math.exp;e({target:"Math",stat:!0},{tanh:function(){function o(f){var V=+f,k=a(V),S=a(-V);return k===1/0?1:S===1/0?-1:(k-S)/(t(V)+t(-V))}return o}()})},83646:function(L,r,n){"use strict";var e=n(94234);e(Math,"Math",!0)},28876:function(L,r,n){"use strict";var e=n(77549),a=n(34606);e({target:"Math",stat:!0},{trunc:a})},36385:function(L,r,n){"use strict";var e=n(77549),a=n(11478),t=n(14141),o=n(40224),f=n(5376),V=n(18161),k=n(95945),S=n(89458),b=n(2566),p=n(33314),l=n(74352),c=n(4370),m=n(41746),d=n(34813).f,u=n(54168).f,s=n(56018).f,i=n(37497),v=n(35171).trim,g="Number",C=o[g],h=f[g],N=C.prototype,y=o.TypeError,B=V("".slice),I=V("".charCodeAt),w=function(P){var R=c(P,"number");return typeof R=="bigint"?R:T(R)},T=function(P){var R=c(P,"number"),j,F,U,_,z,G,X,Y;if(l(R))throw new y("Cannot convert a Symbol value to a number");if(typeof R=="string"&&R.length>2){if(R=v(R),j=I(R,0),j===43||j===45){if(F=I(R,2),F===88||F===120)return NaN}else if(j===48){switch(I(R,1)){case 66:case 98:U=2,_=49;break;case 79:case 111:U=8,_=55;break;default:return+R}for(z=B(R,2),G=z.length,X=0;X_)return NaN;return parseInt(z,U)}}return+R},A=k(g,!C(" 0o1")||!C("0b1")||C("+0x1")),x=function(P){return p(N,P)&&m(function(){i(P)})},E=function(){function D(P){var R=arguments.length<1?0:C(w(P));return x(this)?b(Object(R),this,E):R}return D}();E.prototype=N,A&&!a&&(N.constructor=E),e({global:!0,constructor:!0,wrap:!0,forced:A},{Number:E});var M=function(P,R){for(var j=t?d(R):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),F=0,U;j.length>F;F++)S(R,U=j[F])&&!S(P,U)&&s(P,U,u(R,U))};a&&h&&M(f[g],h),(A||a)&&M(f[g],C)},84295:function(L,r,n){"use strict";var e=n(77549);e({target:"Number",stat:!0,nonConfigurable:!0,nonWritable:!0},{EPSILON:Math.pow(2,-52)})},59785:function(L,r,n){"use strict";var e=n(77549),a=n(69079);e({target:"Number",stat:!0},{isFinite:a})},8846:function(L,r,n){"use strict";var e=n(77549),a=n(57696);e({target:"Number",stat:!0},{isInteger:a})},50237:function(L,r,n){"use strict";var e=n(77549);e({target:"Number",stat:!0},{isNaN:function(){function a(t){return t!==t}return a}()})},6436:function(L,r,n){"use strict";var e=n(77549),a=n(57696),t=Math.abs;e({target:"Number",stat:!0},{isSafeInteger:function(){function o(f){return a(f)&&t(f)<=9007199254740991}return o}()})},68286:function(L,r,n){"use strict";var e=n(77549);e({target:"Number",stat:!0,nonConfigurable:!0,nonWritable:!0},{MAX_SAFE_INTEGER:9007199254740991})},23940:function(L,r,n){"use strict";var e=n(77549);e({target:"Number",stat:!0,nonConfigurable:!0,nonWritable:!0},{MIN_SAFE_INTEGER:-9007199254740991})},82425:function(L,r,n){"use strict";var e=n(77549),a=n(43283);e({target:"Number",stat:!0,forced:Number.parseFloat!==a},{parseFloat:a})},82118:function(L,r,n){"use strict";var e=n(77549),a=n(11540);e({target:"Number",stat:!0,forced:Number.parseInt!==a},{parseInt:a})},7419:function(L,r,n){"use strict";var e=n(77549),a=n(18161),t=n(74952),o=n(37497),f=n(84948),V=n(41746),k=RangeError,S=String,b=Math.floor,p=a(f),l=a("".slice),c=a(1 .toFixed),m=function g(C,h,N){return h===0?N:h%2===1?g(C,h-1,N*C):g(C*C,h/2,N)},d=function(C){for(var h=0,N=C;N>=4096;)h+=12,N/=4096;for(;N>=2;)h+=1,N/=2;return h},u=function(C,h,N){for(var y=-1,B=N;++y<6;)B+=h*C[y],C[y]=B%1e7,B=b(B/1e7)},s=function(C,h){for(var N=6,y=0;--N>=0;)y+=C[N],C[N]=b(y/h),y=y%h*1e7},i=function(C){for(var h=6,N="";--h>=0;)if(N!==""||h===0||C[h]!==0){var y=S(C[h]);N=N===""?y:N+p("0",7-y.length)+y}return N},v=V(function(){return c(8e-5,3)!=="0.000"||c(.9,0)!=="1"||c(1.255,2)!=="1.25"||c(0xde0b6b3a7640080,0)!=="1000000000000000128"})||!V(function(){c({})});e({target:"Number",proto:!0,forced:v},{toFixed:function(){function g(C){var h=o(this),N=t(C),y=[0,0,0,0,0,0],B="",I="0",w,T,A,x;if(N<0||N>20)throw new k("Incorrect fraction digits");if(h!==h)return"NaN";if(h<=-1e21||h>=1e21)return S(h);if(h<0&&(B="-",h=-h),h>1e-21)if(w=d(h*m(2,69,1))-69,T=w<0?h*m(2,-w,1):h/m(2,w,1),T*=4503599627370496,w=52-w,w>0){for(u(y,0,T),A=N;A>=7;)u(y,1e7,0),A-=7;for(u(y,m(10,A,1),0),A=w-1;A>=23;)s(y,8388608),A-=23;s(y,1<0?(x=I.length,I=B+(x<=N?"0."+p("0",N-x)+I:l(I,0,x-N)+"."+l(I,x-N))):I=B+I,I}return g}()})},42409:function(L,r,n){"use strict";var e=n(77549),a=n(18161),t=n(41746),o=n(37497),f=a(1 .toPrecision),V=t(function(){return f(1,void 0)!=="1"})||!t(function(){f({})});e({target:"Number",proto:!0,forced:V},{toPrecision:function(){function k(S){return S===void 0?f(o(this)):f(o(this),S)}return k}()})},29002:function(L,r,n){"use strict";var e=n(77549),a=n(12752);e({target:"Object",stat:!0,arity:2,forced:Object.assign!==a},{assign:a})},85795:function(L,r,n){"use strict";var e=n(77549),a=n(14141),t=n(28969);e({target:"Object",stat:!0,sham:!a},{create:t})},74722:function(L,r,n){"use strict";var e=n(77549),a=n(14141),t=n(33030),o=n(97361),f=n(40076),V=n(56018);a&&e({target:"Object",proto:!0,forced:t},{__defineGetter__:function(){function k(S,b){V.f(f(this),S,{get:o(b),enumerable:!0,configurable:!0})}return k}()})},5300:function(L,r,n){"use strict";var e=n(77549),a=n(14141),t=n(65854).f;e({target:"Object",stat:!0,forced:Object.defineProperties!==t,sham:!a},{defineProperties:t})},85684:function(L,r,n){"use strict";var e=n(77549),a=n(14141),t=n(56018).f;e({target:"Object",stat:!0,forced:Object.defineProperty!==t,sham:!a},{defineProperty:t})},36014:function(L,r,n){"use strict";var e=n(77549),a=n(14141),t=n(33030),o=n(97361),f=n(40076),V=n(56018);a&&e({target:"Object",proto:!0,forced:t},{__defineSetter__:function(){function k(S,b){V.f(f(this),S,{set:o(b),enumerable:!0,configurable:!0})}return k}()})},98551:function(L,r,n){"use strict";var e=n(77549),a=n(97452).entries;e({target:"Object",stat:!0},{entries:function(){function t(o){return a(o)}return t}()})},66288:function(L,r,n){"use strict";var e=n(77549),a=n(56255),t=n(41746),o=n(56831),f=n(29126).onFreeze,V=Object.freeze,k=t(function(){V(1)});e({target:"Object",stat:!0,forced:k,sham:!a},{freeze:function(){function S(b){return V&&o(b)?V(f(b)):b}return S}()})},26862:function(L,r,n){"use strict";var e=n(77549),a=n(281),t=n(12913);e({target:"Object",stat:!0},{fromEntries:function(){function o(f){var V={};return a(f,function(k,S){t(V,k,S)},{AS_ENTRIES:!0}),V}return o}()})},78686:function(L,r,n){"use strict";var e=n(77549),a=n(41746),t=n(96812),o=n(54168).f,f=n(14141),V=!f||a(function(){o(1)});e({target:"Object",stat:!0,forced:V,sham:!f},{getOwnPropertyDescriptor:function(){function k(S,b){return o(t(S),b)}return k}()})},36789:function(L,r,n){"use strict";var e=n(77549),a=n(14141),t=n(93616),o=n(96812),f=n(54168),V=n(12913);e({target:"Object",stat:!0,sham:!a},{getOwnPropertyDescriptors:function(){function k(S){for(var b=o(S),p=f.f,l=t(b),c={},m=0,d,u;l.length>m;)u=p(b,d=l[m++]),u!==void 0&&V(c,d,u);return c}return k}()})},82707:function(L,r,n){"use strict";var e=n(77549),a=n(41746),t=n(63797).f,o=a(function(){return!Object.getOwnPropertyNames(1)});e({target:"Object",stat:!0,forced:o},{getOwnPropertyNames:t})},93146:function(L,r,n){"use strict";var e=n(77549),a=n(70640),t=n(41746),o=n(34220),f=n(40076),V=!a||t(function(){o.f(1)});e({target:"Object",stat:!0,forced:V},{getOwnPropertySymbols:function(){function k(S){var b=o.f;return b?b(f(S)):[]}return k}()})},69740:function(L,r,n){"use strict";var e=n(77549),a=n(41746),t=n(40076),o=n(31658),f=n(58776),V=a(function(){o(1)});e({target:"Object",stat:!0,forced:V,sham:!f},{getPrototypeOf:function(){function k(S){return o(t(S))}return k}()})},54789:function(L,r,n){"use strict";var e=n(77549),a=n(57975);e({target:"Object",stat:!0,forced:Object.isExtensible!==a},{isExtensible:a})},49626:function(L,r,n){"use strict";var e=n(77549),a=n(41746),t=n(56831),o=n(38817),f=n(65693),V=Object.isFrozen,k=f||a(function(){V(1)});e({target:"Object",stat:!0,forced:k},{isFrozen:function(){function S(b){return!t(b)||f&&o(b)==="ArrayBuffer"?!0:V?V(b):!1}return S}()})},67660:function(L,r,n){"use strict";var e=n(77549),a=n(41746),t=n(56831),o=n(38817),f=n(65693),V=Object.isSealed,k=f||a(function(){V(1)});e({target:"Object",stat:!0,forced:k},{isSealed:function(){function S(b){return!t(b)||f&&o(b)==="ArrayBuffer"?!0:V?V(b):!1}return S}()})},87847:function(L,r,n){"use strict";var e=n(77549),a=n(37309);e({target:"Object",stat:!0},{is:a})},43619:function(L,r,n){"use strict";var e=n(77549),a=n(40076),t=n(84913),o=n(41746),f=o(function(){t(1)});e({target:"Object",stat:!0,forced:f},{keys:function(){function V(k){return t(a(k))}return V}()})},42777:function(L,r,n){"use strict";var e=n(77549),a=n(14141),t=n(33030),o=n(40076),f=n(57640),V=n(31658),k=n(54168).f;a&&e({target:"Object",proto:!0,forced:t},{__lookupGetter__:function(){function S(b){var p=o(this),l=f(b),c;do if(c=k(p,l))return c.get;while(p=V(p))}return S}()})},13045:function(L,r,n){"use strict";var e=n(77549),a=n(14141),t=n(33030),o=n(40076),f=n(57640),V=n(31658),k=n(54168).f;a&&e({target:"Object",proto:!0,forced:t},{__lookupSetter__:function(){function S(b){var p=o(this),l=f(b),c;do if(c=k(p,l))return c.set;while(p=V(p))}return S}()})},38664:function(L,r,n){"use strict";var e=n(77549),a=n(56831),t=n(29126).onFreeze,o=n(56255),f=n(41746),V=Object.preventExtensions,k=f(function(){V(1)});e({target:"Object",stat:!0,forced:k,sham:!o},{preventExtensions:function(){function S(b){return V&&a(b)?V(t(b)):b}return S}()})},29650:function(L,r,n){"use strict";var e=n(77549),a=n(56831),t=n(29126).onFreeze,o=n(56255),f=n(41746),V=Object.seal,k=f(function(){V(1)});e({target:"Object",stat:!0,forced:k,sham:!o},{seal:function(){function S(b){return V&&a(b)?V(t(b)):b}return S}()})},58176:function(L,r,n){"use strict";var e=n(77549),a=n(42878);e({target:"Object",stat:!0},{setPrototypeOf:a})},35286:function(L,r,n){"use strict";var e=n(82161),a=n(59173),t=n(66628);e||a(Object.prototype,"toString",t,{unsafe:!0})},13313:function(L,r,n){"use strict";var e=n(77549),a=n(97452).values;e({target:"Object",stat:!0},{values:function(){function t(o){return a(o)}return t}()})},26528:function(L,r,n){"use strict";var e=n(77549),a=n(43283);e({global:!0,forced:parseFloat!==a},{parseFloat:a})},54959:function(L,r,n){"use strict";var e=n(77549),a=n(11540);e({global:!0,forced:parseInt!==a},{parseInt:a})},34344:function(L,r,n){"use strict";var e=n(77549),a=n(62696),t=n(97361),o=n(48532),f=n(91114),V=n(281),k=n(95044);e({target:"Promise",stat:!0,forced:k},{all:function(){function S(b){var p=this,l=o.f(p),c=l.resolve,m=l.reject,d=f(function(){var u=t(p.resolve),s=[],i=0,v=1;V(b,function(g){var C=i++,h=!1;v++,a(u,p,g).then(function(N){h||(h=!0,s[C]=N,--v||c(s))},m)}),--v||c(s)});return d.error&&m(d.value),l.promise}return S}()})},60:function(L,r,n){"use strict";var e=n(77549),a=n(11478),t=n(49669).CONSTRUCTOR,o=n(35973),f=n(40164),V=n(7532),k=n(59173),S=o&&o.prototype;if(e({target:"Promise",proto:!0,forced:t,real:!0},{catch:function(){function p(l){return this.then(void 0,l)}return p}()}),!a&&V(o)){var b=f("Promise").prototype.catch;S.catch!==b&&k(S,"catch",b,{unsafe:!0})}},7803:function(L,r,n){"use strict";var e=n(77549),a=n(11478),t=n(95823),o=n(40224),f=n(62696),V=n(59173),k=n(42878),S=n(94234),b=n(67420),p=n(97361),l=n(7532),c=n(56831),m=n(19870),d=n(78412),u=n(91314).set,s=n(27150),i=n(46122),v=n(91114),g=n(23496),C=n(35086),h=n(35973),N=n(49669),y=n(48532),B="Promise",I=N.CONSTRUCTOR,w=N.REJECTION_EVENT,T=N.SUBCLASSING,A=C.getterFor(B),x=C.set,E=h&&h.prototype,M=h,D=E,P=o.TypeError,R=o.document,j=o.process,F=y.f,U=F,_=!!(R&&R.createEvent&&o.dispatchEvent),z="unhandledrejection",G="rejectionhandled",X=0,Y=1,J=2,ie=1,ae=2,fe,pe,be,te,Q=function(Ve){var Ie;return c(Ve)&&l(Ie=Ve.then)?Ie:!1},ne=function(Ve,Ie){var we=Ie.value,xe=Ie.state===Y,Oe=xe?Ve.ok:Ve.fail,We=Ve.resolve,Ne=Ve.reject,re=Ve.domain,de,he,se;try{Oe?(xe||(Ie.rejection===ae&&ke(Ie),Ie.rejection=ie),Oe===!0?de=we:(re&&re.enter(),de=Oe(we),re&&(re.exit(),se=!0)),de===Ve.promise?Ne(new P("Promise-chain cycle")):(he=Q(de))?f(he,de,We,Ne):We(de)):Ne(we)}catch(Ce){re&&!se&&re.exit(),Ne(Ce)}},me=function(Ve,Ie){Ve.notified||(Ve.notified=!0,s(function(){for(var we=Ve.reactions,xe;xe=we.get();)ne(xe,Ve);Ve.notified=!1,Ie&&!Ve.rejection&&ue(Ve)}))},ce=function(Ve,Ie,we){var xe,Oe;_?(xe=R.createEvent("Event"),xe.promise=Ie,xe.reason=we,xe.initEvent(Ve,!1,!0),o.dispatchEvent(xe)):xe={promise:Ie,reason:we},!w&&(Oe=o["on"+Ve])?Oe(xe):Ve===z&&i("Unhandled promise rejection",we)},ue=function(Ve){f(u,o,function(){var Ie=Ve.facade,we=Ve.value,xe=oe(Ve),Oe;if(xe&&(Oe=v(function(){t?j.emit("unhandledRejection",we,Ie):ce(z,Ie,we)}),Ve.rejection=t||oe(Ve)?ae:ie,Oe.error))throw Oe.value})},oe=function(Ve){return Ve.rejection!==ie&&!Ve.parent},ke=function(Ve){f(u,o,function(){var Ie=Ve.facade;t?j.emit("rejectionHandled",Ie):ce(G,Ie,Ve.value)})},Be=function(Ve,Ie,we){return function(xe){Ve(Ie,xe,we)}},ve=function(Ve,Ie,we){Ve.done||(Ve.done=!0,we&&(Ve=we),Ve.value=Ie,Ve.state=J,me(Ve,!0))},ge=function ye(Ve,Ie,we){if(!Ve.done){Ve.done=!0,we&&(Ve=we);try{if(Ve.facade===Ie)throw new P("Promise can't be resolved itself");var xe=Q(Ie);xe?s(function(){var Oe={done:!1};try{f(xe,Ie,Be(ye,Oe,Ve),Be(ve,Oe,Ve))}catch(We){ve(Oe,We,Ve)}}):(Ve.value=Ie,Ve.state=Y,me(Ve,!1))}catch(Oe){ve({done:!1},Oe,Ve)}}};if(I&&(M=function(){function ye(Ve){m(this,D),p(Ve),f(fe,this);var Ie=A(this);try{Ve(Be(ge,Ie),Be(ve,Ie))}catch(we){ve(Ie,we)}}return ye}(),D=M.prototype,fe=function(){function ye(Ve){x(this,{type:B,done:!1,notified:!1,parent:!1,reactions:new g,rejection:!1,state:X,value:void 0})}return ye}(),fe.prototype=V(D,"then",function(){function ye(Ve,Ie){var we=A(this),xe=F(d(this,M));return we.parent=!0,xe.ok=l(Ve)?Ve:!0,xe.fail=l(Ie)&&Ie,xe.domain=t?j.domain:void 0,we.state===X?we.reactions.add(xe):s(function(){ne(xe,we)}),xe.promise}return ye}()),pe=function(){var Ve=new fe,Ie=A(Ve);this.promise=Ve,this.resolve=Be(ge,Ie),this.reject=Be(ve,Ie)},y.f=F=function(Ve){return Ve===M||Ve===be?new pe(Ve):U(Ve)},!a&&l(h)&&E!==Object.prototype)){te=E.then,T||V(E,"then",function(){function ye(Ve,Ie){var we=this;return new M(function(xe,Oe){f(te,we,xe,Oe)}).then(Ve,Ie)}return ye}(),{unsafe:!0});try{delete E.constructor}catch(ye){}k&&k(E,D)}e({global:!0,constructor:!0,wrap:!0,forced:I},{Promise:M}),S(M,B,!1,!0),b(B)},54412:function(L,r,n){"use strict";var e=n(77549),a=n(11478),t=n(35973),o=n(41746),f=n(40164),V=n(7532),k=n(78412),S=n(43827),b=n(59173),p=t&&t.prototype,l=!!t&&o(function(){p.finally.call({then:function(){function m(){}return m}()},function(){})});if(e({target:"Promise",proto:!0,real:!0,forced:l},{finally:function(){function m(d){var u=k(this,f("Promise")),s=V(d);return this.then(s?function(i){return S(u,d()).then(function(){return i})}:d,s?function(i){return S(u,d()).then(function(){throw i})}:d)}return m}()}),!a&&V(t)){var c=f("Promise").prototype.finally;p.finally!==c&&b(p,"finally",c,{unsafe:!0})}},78129:function(L,r,n){"use strict";n(7803),n(34344),n(60),n(61270),n(82248),n(30347)},61270:function(L,r,n){"use strict";var e=n(77549),a=n(62696),t=n(97361),o=n(48532),f=n(91114),V=n(281),k=n(95044);e({target:"Promise",stat:!0,forced:k},{race:function(){function S(b){var p=this,l=o.f(p),c=l.reject,m=f(function(){var d=t(p.resolve);V(b,function(u){a(d,p,u).then(l.resolve,c)})});return m.error&&c(m.value),l.promise}return S}()})},82248:function(L,r,n){"use strict";var e=n(77549),a=n(48532),t=n(49669).CONSTRUCTOR;e({target:"Promise",stat:!0,forced:t},{reject:function(){function o(f){var V=a.f(this),k=V.reject;return k(f),V.promise}return o}()})},30347:function(L,r,n){"use strict";var e=n(77549),a=n(40164),t=n(11478),o=n(35973),f=n(49669).CONSTRUCTOR,V=n(43827),k=a("Promise"),S=t&&!f;e({target:"Promise",stat:!0,forced:t||f},{resolve:function(){function b(p){return V(S&&this===k?o:this,p)}return b}()})},82427:function(L,r,n){"use strict";var e=n(77549),a=n(70918),t=n(97361),o=n(39482),f=n(41746),V=!f(function(){Reflect.apply(function(){})});e({target:"Reflect",stat:!0,forced:V},{apply:function(){function k(S,b,p){return a(t(S),b,o(p))}return k}()})},8390:function(L,r,n){"use strict";var e=n(77549),a=n(40164),t=n(70918),o=n(9379),f=n(76833),V=n(39482),k=n(56831),S=n(28969),b=n(41746),p=a("Reflect","construct"),l=Object.prototype,c=[].push,m=b(function(){function s(){}return!(p(function(){},[],s)instanceof s)}),d=!b(function(){p(function(){})}),u=m||d;e({target:"Reflect",stat:!0,forced:u,sham:u},{construct:function(){function s(i,v){f(i),V(v);var g=arguments.length<3?i:f(arguments[2]);if(d&&!m)return p(i,v,g);if(i===g){switch(v.length){case 0:return new i;case 1:return new i(v[0]);case 2:return new i(v[0],v[1]);case 3:return new i(v[0],v[1],v[2]);case 4:return new i(v[0],v[1],v[2],v[3])}var C=[null];return t(c,C,v),new(t(o,i,C))}var h=g.prototype,N=S(k(h)?h:l),y=t(i,N,v);return k(y)?y:N}return s}()})},68260:function(L,r,n){"use strict";var e=n(77549),a=n(14141),t=n(39482),o=n(57640),f=n(56018),V=n(41746),k=V(function(){Reflect.defineProperty(f.f({},1,{value:1}),1,{value:2})});e({target:"Reflect",stat:!0,forced:k,sham:!a},{defineProperty:function(){function S(b,p,l){t(b);var c=o(p);t(l);try{return f.f(b,c,l),!0}catch(m){return!1}}return S}()})},86508:function(L,r,n){"use strict";var e=n(77549),a=n(39482),t=n(54168).f;e({target:"Reflect",stat:!0},{deleteProperty:function(){function o(f,V){var k=t(a(f),V);return k&&!k.configurable?!1:delete f[V]}return o}()})},17134:function(L,r,n){"use strict";var e=n(77549),a=n(14141),t=n(39482),o=n(54168);e({target:"Reflect",stat:!0,sham:!a},{getOwnPropertyDescriptor:function(){function f(V,k){return o.f(t(V),k)}return f}()})},18972:function(L,r,n){"use strict";var e=n(77549),a=n(39482),t=n(31658),o=n(58776);e({target:"Reflect",stat:!0,sham:!o},{getPrototypeOf:function(){function f(V){return t(a(V))}return f}()})},65971:function(L,r,n){"use strict";var e=n(77549),a=n(62696),t=n(56831),o=n(39482),f=n(35892),V=n(54168),k=n(31658);function S(b,p){var l=arguments.length<3?b:arguments[2],c,m;if(o(b)===l)return b[p];if(c=V.f(b,p),c)return f(c)?c.value:c.get===void 0?void 0:a(c.get,l);if(t(m=k(b)))return S(m,p,l)}e({target:"Reflect",stat:!0},{get:S})},78623:function(L,r,n){"use strict";var e=n(77549);e({target:"Reflect",stat:!0},{has:function(){function a(t,o){return o in t}return a}()})},60149:function(L,r,n){"use strict";var e=n(77549),a=n(39482),t=n(57975);e({target:"Reflect",stat:!0},{isExtensible:function(){function o(f){return a(f),t(f)}return o}()})},56380:function(L,r,n){"use strict";var e=n(77549),a=n(93616);e({target:"Reflect",stat:!0},{ownKeys:a})},72792:function(L,r,n){"use strict";var e=n(77549),a=n(40164),t=n(39482),o=n(56255);e({target:"Reflect",stat:!0,sham:!o},{preventExtensions:function(){function f(V){t(V);try{var k=a("Object","preventExtensions");return k&&k(V),!0}catch(S){return!1}}return f}()})},25168:function(L,r,n){"use strict";var e=n(77549),a=n(39482),t=n(51689),o=n(42878);o&&e({target:"Reflect",stat:!0},{setPrototypeOf:function(){function f(V,k){a(V),t(k);try{return o(V,k),!0}catch(S){return!1}}return f}()})},60631:function(L,r,n){"use strict";var e=n(77549),a=n(62696),t=n(39482),o=n(56831),f=n(35892),V=n(41746),k=n(56018),S=n(54168),b=n(31658),p=n(7539);function l(m,d,u){var s=arguments.length<4?m:arguments[3],i=S.f(t(m),d),v,g,C;if(!i){if(o(g=b(m)))return l(g,d,u,s);i=p(0)}if(f(i)){if(i.writable===!1||!o(s))return!1;if(v=S.f(s,d)){if(v.get||v.set||v.writable===!1)return!1;v.value=u,k.f(s,d,v)}else k.f(s,d,p(0,u))}else{if(C=i.set,C===void 0)return!1;a(C,s,u)}return!0}var c=V(function(){var m=function(){},d=k.f(new m,"a",{configurable:!0});return Reflect.set(m.prototype,"a",1,d)!==!1});e({target:"Reflect",stat:!0,forced:c},{set:l})},85177:function(L,r,n){"use strict";var e=n(14141),a=n(40224),t=n(18161),o=n(95945),f=n(2566),V=n(16216),k=n(28969),S=n(34813).f,b=n(33314),p=n(80969),l=n(26602),c=n(60425),m=n(1064),d=n(77495),u=n(59173),s=n(41746),i=n(89458),v=n(35086).enforce,g=n(67420),C=n(66266),h=n(89604),N=n(5489),y=C("match"),B=a.RegExp,I=B.prototype,w=a.SyntaxError,T=t(I.exec),A=t("".charAt),x=t("".replace),E=t("".indexOf),M=t("".slice),D=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,P=/a/g,R=/a/g,j=new B(P)!==P,F=m.MISSED_STICKY,U=m.UNSUPPORTED_Y,_=e&&(!j||F||h||N||s(function(){return R[y]=!1,B(P)!==P||B(R)===R||String(B(P,"i"))!=="/a/i"})),z=function(ae){for(var fe=ae.length,pe=0,be="",te=!1,Q;pe<=fe;pe++){if(Q=A(ae,pe),Q==="\\"){be+=Q+A(ae,++pe);continue}!te&&Q==="."?be+="[\\s\\S]":(Q==="["?te=!0:Q==="]"&&(te=!1),be+=Q)}return be},G=function(ae){for(var fe=ae.length,pe=0,be="",te=[],Q=k(null),ne=!1,me=!1,ce=0,ue="",oe;pe<=fe;pe++){if(oe=A(ae,pe),oe==="\\")oe+=A(ae,++pe);else if(oe==="]")ne=!1;else if(!ne)switch(!0){case oe==="[":ne=!0;break;case oe==="(":T(D,M(ae,pe+1))&&(pe+=2,me=!0),be+=oe,ce++;continue;case(oe===">"&&me):if(ue===""||i(Q,ue))throw new w("Invalid capture group name");Q[ue]=!0,te[te.length]=[ue,ce],me=!1,ue="";continue}me?ue+=oe:be+=oe}return[be,te]};if(o("RegExp",_)){for(var X=function(){function ie(ae,fe){var pe=b(I,this),be=p(ae),te=fe===void 0,Q=[],ne=ae,me,ce,ue,oe,ke,Be;if(!pe&&be&&te&&ae.constructor===X)return ae;if((be||b(I,ae))&&(ae=ae.source,te&&(fe=c(ne))),ae=ae===void 0?"":l(ae),fe=fe===void 0?"":l(fe),ne=ae,h&&"dotAll"in P&&(ce=!!fe&&E(fe,"s")>-1,ce&&(fe=x(fe,/s/g,""))),me=fe,F&&"sticky"in P&&(ue=!!fe&&E(fe,"y")>-1,ue&&U&&(fe=x(fe,/y/g,""))),N&&(oe=G(ae),ae=oe[0],Q=oe[1]),ke=f(B(ae,fe),pe?this:I,X),(ce||ue||Q.length)&&(Be=v(ke),ce&&(Be.dotAll=!0,Be.raw=X(z(ae),me)),ue&&(Be.sticky=!0),Q.length&&(Be.groups=Q)),ae!==ne)try{V(ke,"source",ne===""?"(?:)":ne)}catch(ve){}return ke}return ie}(),Y=S(B),J=0;Y.length>J;)d(X,B,Y[J++]);I.constructor=X,X.prototype=I,u(a,"RegExp",X,{constructor:!0})}g("RegExp")},95880:function(L,r,n){"use strict";var e=n(77549),a=n(72894);e({target:"RegExp",proto:!0,forced:/./.exec!==a},{exec:a})},59978:function(L,r,n){"use strict";var e=n(40224),a=n(14141),t=n(10069),o=n(65844),f=n(41746),V=e.RegExp,k=V.prototype,S=a&&f(function(){var b=!0;try{V(".","d")}catch(i){b=!1}var p={},l="",c=b?"dgimsy":"gimsy",m=function(v,g){Object.defineProperty(p,v,{get:function(){function C(){return l+=g,!0}return C}()})},d={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};b&&(d.hasIndices="d");for(var u in d)m(u,d[u]);var s=Object.getOwnPropertyDescriptor(k,"flags").get.call(p);return s!==c||l!==c});S&&t(k,"flags",{configurable:!0,get:o})},96360:function(L,r,n){"use strict";var e=n(26463).PROPER,a=n(59173),t=n(39482),o=n(26602),f=n(41746),V=n(60425),k="toString",S=RegExp.prototype,b=S[k],p=f(function(){return b.call({source:"a",flags:"b"})!=="/a/b"}),l=e&&b.name!==k;(p||l)&&a(S,k,function(){function c(){var m=t(this),d=o(m.source),u=o(V(m));return"/"+d+"/"+u}return c}(),{unsafe:!0})},47338:function(L,r,n){"use strict";var e=n(93439),a=n(10623);e("Set",function(t){return function(){function o(){return t(this,arguments.length?arguments[0]:void 0)}return o}()},a)},43108:function(L,r,n){"use strict";n(47338)},36:function(L,r,n){"use strict";var e=n(77549),a=n(93677),t=n(32086);e({target:"String",proto:!0,forced:t("anchor")},{anchor:function(){function o(f){return a(this,"a","name",f)}return o}()})},30519:function(L,r,n){"use strict";var e=n(77549),a=n(93677),t=n(32086);e({target:"String",proto:!0,forced:t("big")},{big:function(){function o(){return a(this,"big","","")}return o}()})},33547:function(L,r,n){"use strict";var e=n(77549),a=n(93677),t=n(32086);e({target:"String",proto:!0,forced:t("blink")},{blink:function(){function o(){return a(this,"blink","","")}return o}()})},53426:function(L,r,n){"use strict";var e=n(77549),a=n(93677),t=n(32086);e({target:"String",proto:!0,forced:t("bold")},{bold:function(){function o(){return a(this,"b","","")}return o}()})},37801:function(L,r,n){"use strict";var e=n(77549),a=n(56852).codeAt;e({target:"String",proto:!0},{codePointAt:function(){function t(o){return a(this,o)}return t}()})},3044:function(L,r,n){"use strict";var e=n(77549),a=n(85067),t=n(54168).f,o=n(10475),f=n(26602),V=n(89140),k=n(91029),S=n(93321),b=n(11478),p=a("".slice),l=Math.min,c=S("endsWith"),m=!b&&!c&&!!function(){var d=t(String.prototype,"endsWith");return d&&!d.writable}();e({target:"String",proto:!0,forced:!m&&!c},{endsWith:function(){function d(u){var s=f(k(this));V(u);var i=arguments.length>1?arguments[1]:void 0,v=s.length,g=i===void 0?v:l(o(i),v),C=f(u);return p(s,g-C.length,g)===C}return d}()})},32031:function(L,r,n){"use strict";var e=n(77549),a=n(93677),t=n(32086);e({target:"String",proto:!0,forced:t("fixed")},{fixed:function(){function o(){return a(this,"tt","","")}return o}()})},13153:function(L,r,n){"use strict";var e=n(77549),a=n(93677),t=n(32086);e({target:"String",proto:!0,forced:t("fontcolor")},{fontcolor:function(){function o(f){return a(this,"font","color",f)}return o}()})},21953:function(L,r,n){"use strict";var e=n(77549),a=n(93677),t=n(32086);e({target:"String",proto:!0,forced:t("fontsize")},{fontsize:function(){function o(f){return a(this,"font","size",f)}return o}()})},48432:function(L,r,n){"use strict";var e=n(77549),a=n(18161),t=n(74067),o=RangeError,f=String.fromCharCode,V=String.fromCodePoint,k=a([].join),S=!!V&&V.length!==1;e({target:"String",stat:!0,arity:1,forced:S},{fromCodePoint:function(){function b(p){for(var l=[],c=arguments.length,m=0,d;c>m;){if(d=+arguments[m++],t(d,1114111)!==d)throw new o(d+" is not a valid code point");l[m]=d<65536?f(d):f(((d-=65536)>>10)+55296,d%1024+56320)}return k(l,"")}return b}()})},54564:function(L,r,n){"use strict";var e=n(77549),a=n(18161),t=n(89140),o=n(91029),f=n(26602),V=n(93321),k=a("".indexOf);e({target:"String",proto:!0,forced:!V("includes")},{includes:function(){function S(b){return!!~k(f(o(this)),f(t(b)),arguments.length>1?arguments[1]:void 0)}return S}()})},83560:function(L,r,n){"use strict";var e=n(77549),a=n(93677),t=n(32086);e({target:"String",proto:!0,forced:t("italics")},{italics:function(){function o(){return a(this,"i","","")}return o}()})},58179:function(L,r,n){"use strict";var e=n(56852).charAt,a=n(26602),t=n(35086),o=n(2449),f=n(77056),V="String Iterator",k=t.set,S=t.getterFor(V);o(String,"String",function(b){k(this,{type:V,string:a(b),index:0})},function(){function b(){var p=S(this),l=p.string,c=p.index,m;return c>=l.length?f(void 0,!0):(m=e(l,c),p.index+=m.length,f(m,!1))}return b}())},63465:function(L,r,n){"use strict";var e=n(77549),a=n(93677),t=n(32086);e({target:"String",proto:!0,forced:t("link")},{link:function(){function o(f){return a(this,"a","href",f)}return o}()})},68164:function(L,r,n){"use strict";var e=n(62696),a=n(85427),t=n(39482),o=n(1022),f=n(10475),V=n(26602),k=n(91029),S=n(4817),b=n(62970),p=n(35553);a("match",function(l,c,m){return[function(){function d(u){var s=k(this),i=o(u)?void 0:S(u,l);return i?e(i,u,s):new RegExp(u)[l](V(s))}return d}(),function(d){var u=t(this),s=V(d),i=m(c,u,s);if(i.done)return i.value;if(!u.global)return p(u,s);var v=u.unicode;u.lastIndex=0;for(var g=[],C=0,h;(h=p(u,s))!==null;){var N=V(h[0]);g[C]=N,N===""&&(u.lastIndex=b(s,f(u.lastIndex),v)),C++}return C===0?null:g}]})},58880:function(L,r,n){"use strict";var e=n(77549),a=n(34086).end,t=n(33038);e({target:"String",proto:!0,forced:t},{padEnd:function(){function o(f){return a(this,f,arguments.length>1?arguments[1]:void 0)}return o}()})},54465:function(L,r,n){"use strict";var e=n(77549),a=n(34086).start,t=n(33038);e({target:"String",proto:!0,forced:t},{padStart:function(){function o(f){return a(this,f,arguments.length>1?arguments[1]:void 0)}return o}()})},97327:function(L,r,n){"use strict";var e=n(77549),a=n(18161),t=n(96812),o=n(40076),f=n(26602),V=n(8333),k=a([].push),S=a([].join);e({target:"String",stat:!0},{raw:function(){function b(p){var l=t(o(p).raw),c=V(l);if(!c)return"";for(var m=arguments.length,d=[],u=0;;){if(k(d,f(l[u++])),u===c)return S(d,"");u")!=="7"});o("replace",function(x,E,M){var D=T?"$":"$0";return[function(){function P(R,j){var F=c(this),U=S(R)?void 0:d(R,v);return U?a(U,R,F,j):a(E,l(F),R,j)}return P}(),function(P,R){var j=V(this),F=l(P);if(typeof R=="string"&&y(R,D)===-1&&y(R,"$<")===-1){var U=M(E,j,F,R);if(U.done)return U.value}var _=k(R);_||(R=l(R));var z=j.global,G;z&&(G=j.unicode,j.lastIndex=0);for(var X=[],Y;Y=s(j,F),!(Y===null||(N(X,Y),!z));){var J=l(Y[0]);J===""&&(j.lastIndex=m(F,p(j.lastIndex),G))}for(var ie="",ae=0,fe=0;fe=ae&&(ie+=B(F,ae,be)+Q,ae=be+pe.length)}return ie+B(F,ae)}]},!A||!w||T)},17337:function(L,r,n){"use strict";var e=n(62696),a=n(85427),t=n(39482),o=n(1022),f=n(91029),V=n(37309),k=n(26602),S=n(4817),b=n(35553);a("search",function(p,l,c){return[function(){function m(d){var u=f(this),s=o(d)?void 0:S(d,p);return s?e(s,d,u):new RegExp(d)[p](k(u))}return m}(),function(m){var d=t(this),u=k(m),s=c(l,d,u);if(s.done)return s.value;var i=d.lastIndex;V(i,0)||(d.lastIndex=0);var v=b(d,u);return V(d.lastIndex,i)||(d.lastIndex=i),v===null?-1:v.index}]})},98998:function(L,r,n){"use strict";var e=n(77549),a=n(93677),t=n(32086);e({target:"String",proto:!0,forced:t("small")},{small:function(){function o(){return a(this,"small","","")}return o}()})},53713:function(L,r,n){"use strict";var e=n(62696),a=n(18161),t=n(85427),o=n(39482),f=n(1022),V=n(91029),k=n(78412),S=n(62970),b=n(10475),p=n(26602),l=n(4817),c=n(35553),m=n(1064),d=n(41746),u=m.UNSUPPORTED_Y,s=4294967295,i=Math.min,v=a([].push),g=a("".slice),C=!d(function(){var N=/(?:)/,y=N.exec;N.exec=function(){return y.apply(this,arguments)};var B="ab".split(N);return B.length!==2||B[0]!=="a"||B[1]!=="b"}),h="abbc".split(/(b)*/)[1]==="c"||"test".split(/(?:)/,-1).length!==4||"ab".split(/(?:ab)*/).length!==2||".".split(/(.?)(.?)/).length!==4||".".split(/()()/).length>1||"".split(/.?/).length;t("split",function(N,y,B){var I="0".split(void 0,0).length?function(w,T){return w===void 0&&T===0?[]:e(y,this,w,T)}:y;return[function(){function w(T,A){var x=V(this),E=f(T)?void 0:l(T,N);return E?e(E,T,x,A):e(I,p(x),T,A)}return w}(),function(w,T){var A=o(this),x=p(w);if(!h){var E=B(I,A,x,T,I!==y);if(E.done)return E.value}var M=k(A,RegExp),D=A.unicode,P=(A.ignoreCase?"i":"")+(A.multiline?"m":"")+(A.unicode?"u":"")+(u?"g":"y"),R=new M(u?"^(?:"+A.source+")":A,P),j=T===void 0?s:T>>>0;if(j===0)return[];if(x.length===0)return c(R,x)===null?[x]:[];for(var F=0,U=0,_=[];U1?arguments[1]:void 0,s.length)),v=f(u);return p(s,i,i+v.length)===v}return d}()})},96227:function(L,r,n){"use strict";var e=n(77549),a=n(93677),t=n(32086);e({target:"String",proto:!0,forced:t("strike")},{strike:function(){function o(){return a(this,"strike","","")}return o}()})},15483:function(L,r,n){"use strict";var e=n(77549),a=n(93677),t=n(32086);e({target:"String",proto:!0,forced:t("sub")},{sub:function(){function o(){return a(this,"sub","","")}return o}()})},86829:function(L,r,n){"use strict";var e=n(77549),a=n(93677),t=n(32086);e({target:"String",proto:!0,forced:t("sup")},{sup:function(){function o(){return a(this,"sup","","")}return o}()})},93073:function(L,r,n){"use strict";n(17434);var e=n(77549),a=n(11775);e({target:"String",proto:!0,name:"trimEnd",forced:"".trimEnd!==a},{trimEnd:a})},69107:function(L,r,n){"use strict";var e=n(77549),a=n(26402);e({target:"String",proto:!0,name:"trimStart",forced:"".trimLeft!==a},{trimLeft:a})},17434:function(L,r,n){"use strict";var e=n(77549),a=n(11775);e({target:"String",proto:!0,name:"trimEnd",forced:"".trimRight!==a},{trimRight:a})},50800:function(L,r,n){"use strict";n(69107);var e=n(77549),a=n(26402);e({target:"String",proto:!0,name:"trimStart",forced:"".trimStart!==a},{trimStart:a})},11121:function(L,r,n){"use strict";var e=n(77549),a=n(35171).trim,t=n(93817);e({target:"String",proto:!0,forced:t("trim")},{trim:function(){function o(){return a(this)}return o}()})},46951:function(L,r,n){"use strict";var e=n(15388);e("asyncIterator")},9056:function(L,r,n){"use strict";var e=n(77549),a=n(40224),t=n(62696),o=n(18161),f=n(11478),V=n(14141),k=n(70640),S=n(41746),b=n(89458),p=n(33314),l=n(39482),c=n(96812),m=n(57640),d=n(26602),u=n(7539),s=n(28969),i=n(84913),v=n(34813),g=n(63797),C=n(34220),h=n(54168),N=n(56018),y=n(65854),B=n(9776),I=n(59173),w=n(10069),T=n(75130),A=n(5160),x=n(21124),E=n(33345),M=n(66266),D=n(32938),P=n(15388),R=n(75429),j=n(94234),F=n(35086),U=n(67480).forEach,_=A("hidden"),z="Symbol",G="prototype",X=F.set,Y=F.getterFor(z),J=Object[G],ie=a.Symbol,ae=ie&&ie[G],fe=a.RangeError,pe=a.TypeError,be=a.QObject,te=h.f,Q=N.f,ne=g.f,me=B.f,ce=o([].push),ue=T("symbols"),oe=T("op-symbols"),ke=T("wks"),Be=!be||!be[G]||!be[G].findChild,ve=function(de,he,se){var Ce=te(J,he);Ce&&delete J[he],Q(de,he,se),Ce&&de!==J&&Q(J,he,Ce)},ge=V&&S(function(){return s(Q({},"a",{get:function(){function re(){return Q(this,"a",{value:7}).a}return re}()})).a!==7})?ve:Q,ye=function(de,he){var se=ue[de]=s(ae);return X(se,{type:z,tag:de,description:he}),V||(se.description=he),se},Ve=function(){function re(de,he,se){de===J&&Ve(oe,he,se),l(de);var Ce=m(he);return l(se),b(ue,Ce)?(se.enumerable?(b(de,_)&&de[_][Ce]&&(de[_][Ce]=!1),se=s(se,{enumerable:u(0,!1)})):(b(de,_)||Q(de,_,u(1,s(null))),de[_][Ce]=!0),ge(de,Ce,se)):Q(de,Ce,se)}return re}(),Ie=function(){function re(de,he){l(de);var se=c(he),Ce=i(se).concat(Ne(se));return U(Ce,function(Ae){(!V||t(xe,se,Ae))&&Ve(de,Ae,se[Ae])}),de}return re}(),we=function(){function re(de,he){return he===void 0?s(de):Ie(s(de),he)}return re}(),xe=function(){function re(de){var he=m(de),se=t(me,this,he);return this===J&&b(ue,he)&&!b(oe,he)?!1:se||!b(this,he)||!b(ue,he)||b(this,_)&&this[_][he]?se:!0}return re}(),Oe=function(){function re(de,he){var se=c(de),Ce=m(he);if(!(se===J&&b(ue,Ce)&&!b(oe,Ce))){var Ae=te(se,Ce);return Ae&&b(ue,Ce)&&!(b(se,_)&&se[_][Ce])&&(Ae.enumerable=!0),Ae}}return re}(),We=function(){function re(de){var he=ne(c(de)),se=[];return U(he,function(Ce){!b(ue,Ce)&&!b(x,Ce)&&ce(se,Ce)}),se}return re}(),Ne=function(de){var he=de===J,se=ne(he?oe:c(de)),Ce=[];return U(se,function(Ae){b(ue,Ae)&&(!he||b(J,Ae))&&ce(Ce,ue[Ae])}),Ce};k||(ie=function(){function re(){if(p(ae,this))throw new pe("Symbol is not a constructor");var de=!arguments.length||arguments[0]===void 0?void 0:d(arguments[0]),he=E(de),se=function(){function Ce(Ae){var De=this===void 0?a:this;De===J&&t(Ce,oe,Ae),b(De,_)&&b(De[_],he)&&(De[_][he]=!1);var je=u(1,Ae);try{ge(De,he,je)}catch(_e){if(!(_e instanceof fe))throw _e;ve(De,he,je)}}return Ce}();return V&&Be&&ge(J,he,{configurable:!0,set:se}),ye(he,de)}return re}(),ae=ie[G],I(ae,"toString",function(){function re(){return Y(this).tag}return re}()),I(ie,"withoutSetter",function(re){return ye(E(re),re)}),B.f=xe,N.f=Ve,y.f=Ie,h.f=Oe,v.f=g.f=We,C.f=Ne,D.f=function(re){return ye(M(re),re)},V&&(w(ae,"description",{configurable:!0,get:function(){function re(){return Y(this).description}return re}()}),f||I(J,"propertyIsEnumerable",xe,{unsafe:!0}))),e({global:!0,constructor:!0,wrap:!0,forced:!k,sham:!k},{Symbol:ie}),U(i(ke),function(re){P(re)}),e({target:z,stat:!0,forced:!k},{useSetter:function(){function re(){Be=!0}return re}(),useSimple:function(){function re(){Be=!1}return re}()}),e({target:"Object",stat:!0,forced:!k,sham:!V},{create:we,defineProperty:Ve,defineProperties:Ie,getOwnPropertyDescriptor:Oe}),e({target:"Object",stat:!0,forced:!k},{getOwnPropertyNames:We}),R(),j(ie,z),x[_]=!0},27718:function(L,r,n){"use strict";var e=n(77549),a=n(14141),t=n(40224),o=n(18161),f=n(89458),V=n(7532),k=n(33314),S=n(26602),b=n(10069),p=n(70113),l=t.Symbol,c=l&&l.prototype;if(a&&V(l)&&(!("description"in c)||l().description!==void 0)){var m={},d=function(){function h(){var N=arguments.length<1||arguments[0]===void 0?void 0:S(arguments[0]),y=k(c,this)?new l(N):N===void 0?l():l(N);return N===""&&(m[y]=!0),y}return h}();p(d,l),d.prototype=c,c.constructor=d;var u=String(l("description detection"))==="Symbol(description detection)",s=o(c.valueOf),i=o(c.toString),v=/^Symbol\((.*)\)[^)]+$/,g=o("".replace),C=o("".slice);b(c,"description",{configurable:!0,get:function(){function h(){var N=s(this);if(f(m,N))return"";var y=i(N),B=u?C(y,7,-1):g(y,v,"$1");return B===""?void 0:B}return h}()}),e({global:!0,constructor:!0,forced:!0},{Symbol:d})}},18611:function(L,r,n){"use strict";var e=n(77549),a=n(40164),t=n(89458),o=n(26602),f=n(75130),V=n(80353),k=f("string-to-symbol-registry"),S=f("symbol-to-string-registry");e({target:"Symbol",stat:!0,forced:!V},{for:function(){function b(p){var l=o(p);if(t(k,l))return k[l];var c=a("Symbol")(l);return k[l]=c,S[c]=l,c}return b}()})},86042:function(L,r,n){"use strict";var e=n(15388);e("hasInstance")},93267:function(L,r,n){"use strict";var e=n(15388);e("isConcatSpreadable")},41664:function(L,r,n){"use strict";var e=n(15388);e("iterator")},99414:function(L,r,n){"use strict";n(9056),n(18611),n(30661),n(12183),n(93146)},30661:function(L,r,n){"use strict";var e=n(77549),a=n(89458),t=n(74352),o=n(62518),f=n(75130),V=n(80353),k=f("symbol-to-string-registry");e({target:"Symbol",stat:!0,forced:!V},{keyFor:function(){function S(b){if(!t(b))throw new TypeError(o(b)+" is not a symbol");if(a(k,b))return k[b]}return S}()})},48965:function(L,r,n){"use strict";var e=n(15388);e("match")},44844:function(L,r,n){"use strict";var e=n(15388);e("replace")},25030:function(L,r,n){"use strict";var e=n(15388);e("search")},96454:function(L,r,n){"use strict";var e=n(15388);e("species")},77564:function(L,r,n){"use strict";var e=n(15388);e("split")},44875:function(L,r,n){"use strict";var e=n(15388),a=n(75429);e("toPrimitive"),a()},77904:function(L,r,n){"use strict";var e=n(40164),a=n(15388),t=n(94234);a("toStringTag"),t(e("Symbol"),"Symbol")},35723:function(L,r,n){"use strict";var e=n(15388);e("unscopables")},84805:function(L,r,n){"use strict";var e=n(18161),a=n(72951),t=n(42320),o=e(t),f=a.aTypedArray,V=a.exportTypedArrayMethod;V("copyWithin",function(){function k(S,b){return o(f(this),S,b,arguments.length>2?arguments[2]:void 0)}return k}())},79305:function(L,r,n){"use strict";var e=n(72951),a=n(67480).every,t=e.aTypedArray,o=e.exportTypedArrayMethod;o("every",function(){function f(V){return a(t(this),V,arguments.length>1?arguments[1]:void 0)}return f}())},71573:function(L,r,n){"use strict";var e=n(72951),a=n(59942),t=n(757),o=n(27806),f=n(62696),V=n(18161),k=n(41746),S=e.aTypedArray,b=e.exportTypedArrayMethod,p=V("".slice),l=k(function(){var c=0;return new Int8Array(2).fill({valueOf:function(){function m(){return c++}return m}()}),c!==1});b("fill",function(){function c(m){var d=arguments.length;S(this);var u=p(o(this),0,3)==="Big"?t(m):+m;return f(a,this,u,d>1?arguments[1]:void 0,d>2?arguments[2]:void 0)}return c}(),l)},47910:function(L,r,n){"use strict";var e=n(72951),a=n(67480).filter,t=n(80936),o=e.aTypedArray,f=e.exportTypedArrayMethod;f("filter",function(){function V(k){var S=a(o(this),k,arguments.length>1?arguments[1]:void 0);return t(this,S)}return V}())},99662:function(L,r,n){"use strict";var e=n(72951),a=n(67480).findIndex,t=e.aTypedArray,o=e.exportTypedArrayMethod;o("findIndex",function(){function f(V){return a(t(this),V,arguments.length>1?arguments[1]:void 0)}return f}())},48447:function(L,r,n){"use strict";var e=n(72951),a=n(67480).find,t=e.aTypedArray,o=e.exportTypedArrayMethod;o("find",function(){function f(V){return a(t(this),V,arguments.length>1?arguments[1]:void 0)}return f}())},68265:function(L,r,n){"use strict";var e=n(12218);e("Float32",function(a){return function(){function t(o,f,V){return a(this,o,f,V)}return t}()})},36030:function(L,r,n){"use strict";var e=n(12218);e("Float64",function(a){return function(){function t(o,f,V){return a(this,o,f,V)}return t}()})},57371:function(L,r,n){"use strict";var e=n(72951),a=n(67480).forEach,t=e.aTypedArray,o=e.exportTypedArrayMethod;o("forEach",function(){function f(V){a(t(this),V,arguments.length>1?arguments[1]:void 0)}return f}())},68220:function(L,r,n){"use strict";var e=n(66220),a=n(72951).exportTypedArrayStaticMethod,t=n(7996);a("from",t,e)},15745:function(L,r,n){"use strict";var e=n(72951),a=n(64210).includes,t=e.aTypedArray,o=e.exportTypedArrayMethod;o("includes",function(){function f(V){return a(t(this),V,arguments.length>1?arguments[1]:void 0)}return f}())},43398:function(L,r,n){"use strict";var e=n(72951),a=n(64210).indexOf,t=e.aTypedArray,o=e.exportTypedArrayMethod;o("indexOf",function(){function f(V){return a(t(this),V,arguments.length>1?arguments[1]:void 0)}return f}())},25888:function(L,r,n){"use strict";var e=n(12218);e("Int16",function(a){return function(){function t(o,f,V){return a(this,o,f,V)}return t}()})},35718:function(L,r,n){"use strict";var e=n(12218);e("Int32",function(a){return function(){function t(o,f,V){return a(this,o,f,V)}return t}()})},32791:function(L,r,n){"use strict";var e=n(12218);e("Int8",function(a){return function(){function t(o,f,V){return a(this,o,f,V)}return t}()})},97722:function(L,r,n){"use strict";var e=n(40224),a=n(41746),t=n(18161),o=n(72951),f=n(65809),V=n(66266),k=V("iterator"),S=e.Uint8Array,b=t(f.values),p=t(f.keys),l=t(f.entries),c=o.aTypedArray,m=o.exportTypedArrayMethod,d=S&&S.prototype,u=!a(function(){d[k].call([1])}),s=!!d&&d.values&&d[k]===d.values&&d.values.name==="values",i=function(){function v(){return b(c(this))}return v}();m("entries",function(){function v(){return l(c(this))}return v}(),u),m("keys",function(){function v(){return p(c(this))}return v}(),u),m("values",i,u||!s,{name:"values"}),m(k,i,u||!s,{name:"values"})},79088:function(L,r,n){"use strict";var e=n(72951),a=n(18161),t=e.aTypedArray,o=e.exportTypedArrayMethod,f=a([].join);o("join",function(){function V(k){return f(t(this),k)}return V}())},6075:function(L,r,n){"use strict";var e=n(72951),a=n(70918),t=n(16934),o=e.aTypedArray,f=e.exportTypedArrayMethod;f("lastIndexOf",function(){function V(k){var S=arguments.length;return a(t,o(this),S>1?[k,arguments[1]]:[k])}return V}())},46896:function(L,r,n){"use strict";var e=n(72951),a=n(67480).map,t=n(489),o=e.aTypedArray,f=e.exportTypedArrayMethod;f("map",function(){function V(k){return a(o(this),k,arguments.length>1?arguments[1]:void 0,function(S,b){return new(t(S))(b)})}return V}())},47145:function(L,r,n){"use strict";var e=n(72951),a=n(66220),t=e.aTypedArrayConstructor,o=e.exportTypedArrayStaticMethod;o("of",function(){function f(){for(var V=0,k=arguments.length,S=new(t(this))(k);k>V;)S[V]=arguments[V++];return S}return f}(),a)},349:function(L,r,n){"use strict";var e=n(72951),a=n(98405).right,t=e.aTypedArray,o=e.exportTypedArrayMethod;o("reduceRight",function(){function f(V){var k=arguments.length;return a(t(this),V,k,k>1?arguments[1]:void 0)}return f}())},72606:function(L,r,n){"use strict";var e=n(72951),a=n(98405).left,t=e.aTypedArray,o=e.exportTypedArrayMethod;o("reduce",function(){function f(V){var k=arguments.length;return a(t(this),V,k,k>1?arguments[1]:void 0)}return f}())},28292:function(L,r,n){"use strict";var e=n(72951),a=e.aTypedArray,t=e.exportTypedArrayMethod,o=Math.floor;t("reverse",function(){function f(){for(var V=this,k=a(V).length,S=o(k/2),b=0,p;b1?arguments[1]:void 0,1),g=V(i);if(d)return a(l,this,g,v);var C=this.length,h=o(g),N=0;if(h+v>C)throw new S("Wrong length");for(;Nm;)u[m]=l[m++];return u}return S}(),k)},74188:function(L,r,n){"use strict";var e=n(72951),a=n(67480).some,t=e.aTypedArray,o=e.exportTypedArrayMethod;o("some",function(){function f(V){return a(t(this),V,arguments.length>1?arguments[1]:void 0)}return f}())},81976:function(L,r,n){"use strict";var e=n(40224),a=n(85067),t=n(41746),o=n(97361),f=n(44815),V=n(72951),k=n(49847),S=n(56605),b=n(82709),p=n(53125),l=V.aTypedArray,c=V.exportTypedArrayMethod,m=e.Uint16Array,d=m&&a(m.prototype.sort),u=!!d&&!(t(function(){d(new m(2),null)})&&t(function(){d(new m(2),{})})),s=!!d&&!t(function(){if(b)return b<74;if(k)return k<67;if(S)return!0;if(p)return p<602;var v=new m(516),g=Array(516),C,h;for(C=0;C<516;C++)h=C%4,v[C]=515-C,g[C]=C-2*h+3;for(d(v,function(N,y){return(N/4|0)-(y/4|0)}),C=0;C<516;C++)if(v[C]!==g[C])return!0}),i=function(g){return function(C,h){return g!==void 0?+g(C,h)||0:h!==h?-1:C!==C?1:C===0&&h===0?1/C>0&&1/h<0?1:-1:C>h}};c("sort",function(){function v(g){return g!==void 0&&o(g),s?d(this,g):f(l(this),i(g))}return v}(),!s||u)},78651:function(L,r,n){"use strict";var e=n(72951),a=n(10475),t=n(74067),o=n(489),f=e.aTypedArray,V=e.exportTypedArrayMethod;V("subarray",function(){function k(S,b){var p=f(this),l=p.length,c=t(S,l),m=o(p);return new m(p.buffer,p.byteOffset+c*p.BYTES_PER_ELEMENT,a((b===void 0?l:t(b,l))-c))}return k}())},81664:function(L,r,n){"use strict";var e=n(40224),a=n(70918),t=n(72951),o=n(41746),f=n(77713),V=e.Int8Array,k=t.aTypedArray,S=t.exportTypedArrayMethod,b=[].toLocaleString,p=!!V&&o(function(){b.call(new V(1))}),l=o(function(){return[1,2].toLocaleString()!==new V([1,2]).toLocaleString()})||!o(function(){V.prototype.toLocaleString.call([1,2])});S("toLocaleString",function(){function c(){return a(b,p?f(k(this)):k(this),f(arguments))}return c}(),l)},35579:function(L,r,n){"use strict";var e=n(72951).exportTypedArrayMethod,a=n(41746),t=n(40224),o=n(18161),f=t.Uint8Array,V=f&&f.prototype||{},k=[].toString,S=o([].join);a(function(){k.call({})})&&(k=function(){function p(){return S(this)}return p}());var b=V.toString!==k;e("toString",k,b)},99683:function(L,r,n){"use strict";var e=n(12218);e("Uint16",function(a){return function(){function t(o,f,V){return a(this,o,f,V)}return t}()})},80941:function(L,r,n){"use strict";var e=n(12218);e("Uint32",function(a){return function(){function t(o,f,V){return a(this,o,f,V)}return t}()})},45338:function(L,r,n){"use strict";var e=n(12218);e("Uint8",function(a){return function(){function t(o,f,V){return a(this,o,f,V)}return t}()})},40737:function(L,r,n){"use strict";var e=n(12218);e("Uint8",function(a){return function(){function t(o,f,V){return a(this,o,f,V)}return t}()},!0)},74283:function(L,r,n){"use strict";var e=n(56255),a=n(40224),t=n(18161),o=n(13648),f=n(29126),V=n(93439),k=n(32920),S=n(56831),b=n(35086).enforce,p=n(41746),l=n(90777),c=Object,m=Array.isArray,d=c.isExtensible,u=c.isFrozen,s=c.isSealed,i=c.freeze,v=c.seal,g=!a.ActiveXObject&&"ActiveXObject"in a,C,h=function(E){return function(){function M(){return E(this,arguments.length?arguments[0]:void 0)}return M}()},N=V("WeakMap",h,k),y=N.prototype,B=t(y.set),I=function(){return e&&p(function(){var E=i([]);return B(new N,E,1),!u(E)})};if(l)if(g){C=k.getConstructor(h,"WeakMap",!0),f.enable();var w=t(y.delete),T=t(y.has),A=t(y.get);o(y,{delete:function(){function x(E){if(S(E)&&!d(E)){var M=b(this);return M.frozen||(M.frozen=new C),w(this,E)||M.frozen.delete(E)}return w(this,E)}return x}(),has:function(){function x(E){if(S(E)&&!d(E)){var M=b(this);return M.frozen||(M.frozen=new C),T(this,E)||M.frozen.has(E)}return T(this,E)}return x}(),get:function(){function x(E){if(S(E)&&!d(E)){var M=b(this);return M.frozen||(M.frozen=new C),T(this,E)?A(this,E):M.frozen.get(E)}return A(this,E)}return x}(),set:function(){function x(E,M){if(S(E)&&!d(E)){var D=b(this);D.frozen||(D.frozen=new C),T(this,E)?B(this,E,M):D.frozen.set(E,M)}else B(this,E,M);return this}return x}()})}else I()&&o(y,{set:function(){function x(E,M){var D;return m(E)&&(u(E)?D=i:s(E)&&(D=v)),B(this,E,M),D&&D(E),this}return x}()})},84033:function(L,r,n){"use strict";n(74283)},82389:function(L,r,n){"use strict";var e=n(93439),a=n(32920);e("WeakSet",function(t){return function(){function o(){return t(this,arguments.length?arguments[0]:void 0)}return o}()},a)},71863:function(L,r,n){"use strict";n(82389)},73993:function(L,r,n){"use strict";var e=n(77549),a=n(40224),t=n(91314).clear;e({global:!0,bind:!0,enumerable:!0,forced:a.clearImmediate!==t},{clearImmediate:t})},55457:function(L,r,n){"use strict";n(73993),n(72532)},57399:function(L,r,n){"use strict";var e=n(77549),a=n(40224),t=n(27150),o=n(97361),f=n(22789),V=n(41746),k=n(14141),S=V(function(){return k&&Object.getOwnPropertyDescriptor(a,"queueMicrotask").value.length!==1});e({global:!0,enumerable:!0,dontCallGetSet:!0,forced:S},{queueMicrotask:function(){function b(p){f(arguments.length,1),t(o(p))}return b}()})},72532:function(L,r,n){"use strict";var e=n(77549),a=n(40224),t=n(91314).set,o=n(83827),f=a.setImmediate?o(t,!1):t;e({global:!0,bind:!0,enumerable:!0,forced:a.setImmediate!==f},{setImmediate:f})},48112:function(L,r,n){"use strict";var e=n(77549),a=n(40224),t=n(83827),o=t(a.setInterval,!0);e({global:!0,bind:!0,forced:a.setInterval!==o},{setInterval:o})},82274:function(L,r,n){"use strict";var e=n(77549),a=n(40224),t=n(83827),o=t(a.setTimeout,!0);e({global:!0,bind:!0,forced:a.setTimeout!==o},{setTimeout:o})},65836:function(L,r,n){"use strict";n(48112),n(82274)},50719:function(L){"use strict";/** + */var t=r.BoxWithSampleText=function(){function o(f){return(0,e.normalizeProps)((0,e.createComponentVNode)(2,a.Box,Object.assign({},f,{children:[(0,e.createComponentVNode)(2,a.Box,{italic:!0,children:"Jackdaws love my big sphinx of quartz."}),(0,e.createComponentVNode)(2,a.Box,{mt:1,bold:!0,children:"The wide electrification of the southern provinces will give a powerful impetus to the growth of agriculture."})]})))}return o}()},21965:function(){},28169:function(){},36487:function(){},35739:function(){},33631:function(){},74785:function(){},6895:function(){},3251:function(){},38265:function(){},7455:function(){},58823:function(){},49265:function(){},55350:function(){},45503:function(){},36557:function(){},70555:function(){},70752:function(L,r,n){var e={"./pai_atmosphere.js":24704,"./pai_bioscan.js":4209,"./pai_directives.js":44430,"./pai_doorjack.js":3367,"./pai_main_menu.js":73395,"./pai_manifest.js":37645,"./pai_medrecords.js":15836,"./pai_messenger.js":91737,"./pai_radio.js":94077,"./pai_secrecords.js":72621,"./pai_signaler.js":53483};function a(o){var f=t(o);return n(f)}function t(o){if(!n.o(e,o)){var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}return e[o]}a.keys=function(){return Object.keys(e)},a.resolve=t,L.exports=a,a.id=70752},59395:function(L,r,n){var e={"./pda_atmos_scan.js":21606,"./pda_janitor.js":12339,"./pda_main_menu.js":36615,"./pda_manifest.js":99737,"./pda_medical.js":61597,"./pda_messenger.js":30709,"./pda_mule.js":68053,"./pda_nanobank.js":31728,"./pda_notes.js":29415,"./pda_power.js":52363,"./pda_secbot.js":23914,"./pda_security.js":68878,"./pda_signaler.js":95135,"./pda_status_display.js":20835,"./pda_supplyrecords.js":11741};function a(o){var f=t(o);return n(f)}function t(o){if(!n.o(e,o)){var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}return e[o]}a.keys=function(){return Object.keys(e)},a.resolve=t,L.exports=a,a.id=59395},32054:function(L,r,n){var e={"./AICard":29732,"./AICard.js":29732,"./AIFixer":78468,"./AIFixer.js":78468,"./APC":73544,"./APC.js":73544,"./ATM":79098,"./ATM.js":79098,"./AccountsUplinkTerminal":64613,"./AccountsUplinkTerminal.js":64613,"./AiAirlock":56839,"./AiAirlock.js":56839,"./AirAlarm":5565,"./AirAlarm.js":5565,"./AirlockAccessController":82915,"./AirlockAccessController.js":82915,"./AirlockElectronics":14962,"./AirlockElectronics.js":14962,"./AlertModal":99327,"./AlertModal.tsx":99327,"./AppearanceChanger":88642,"./AppearanceChanger.js":88642,"./AtmosAlertConsole":51731,"./AtmosAlertConsole.js":51731,"./AtmosControl":57467,"./AtmosControl.js":57467,"./AtmosFilter":41550,"./AtmosFilter.js":41550,"./AtmosMixer":70151,"./AtmosMixer.js":70151,"./AtmosPump":54090,"./AtmosPump.js":54090,"./AtmosTankControl":31335,"./AtmosTankControl.js":31335,"./Autolathe":85909,"./Autolathe.js":85909,"./BioChipPad":81617,"./BioChipPad.js":81617,"./Biogenerator":26215,"./Biogenerator.js":26215,"./BlueSpaceArtilleryControl":65483,"./BlueSpaceArtilleryControl.js":65483,"./BluespaceTap":69099,"./BluespaceTap.js":69099,"./BodyScanner":71736,"./BodyScanner.js":71736,"./BookBinder":99449,"./BookBinder.js":99449,"./BotCall":85951,"./BotCall.js":85951,"./BotClean":43506,"./BotClean.js":43506,"./BotFloor":89593,"./BotFloor.js":89593,"./BotHonk":89513,"./BotHonk.js":89513,"./BotMed":19297,"./BotMed.js":19297,"./BotSecurity":4249,"./BotSecurity.js":4249,"./BrigCells":27267,"./BrigCells.js":27267,"./BrigTimer":26623,"./BrigTimer.js":26623,"./CameraConsole":43542,"./CameraConsole.js":43542,"./Canister":95513,"./Canister.js":95513,"./CardComputer":60463,"./CardComputer.js":60463,"./CargoConsole":16377,"./CargoConsole.js":16377,"./ChangelogView":89917,"./ChangelogView.js":89917,"./ChemDispenser":71254,"./ChemDispenser.js":71254,"./ChemHeater":27004,"./ChemHeater.js":27004,"./ChemMaster":41099,"./ChemMaster.tsx":41099,"./CloningConsole":51327,"./CloningConsole.js":51327,"./CloningPod":66373,"./CloningPod.js":66373,"./CoinMint":38781,"./CoinMint.tsx":38781,"./ColourMatrixTester":11866,"./ColourMatrixTester.js":11866,"./CommunicationsComputer":22420,"./CommunicationsComputer.js":22420,"./CompostBin":46868,"./CompostBin.js":46868,"./Contractor":64707,"./Contractor.js":64707,"./ConveyorSwitch":52141,"./ConveyorSwitch.js":52141,"./CrewMonitor":94187,"./CrewMonitor.js":94187,"./Cryo":60561,"./Cryo.js":60561,"./CryopodConsole":27889,"./CryopodConsole.js":27889,"./DNAModifier":81434,"./DNAModifier.js":81434,"./DestinationTagger":99127,"./DestinationTagger.js":99127,"./DisposalBin":93430,"./DisposalBin.js":93430,"./DnaVault":31491,"./DnaVault.js":31491,"./DroneConsole":30747,"./DroneConsole.js":30747,"./EFTPOS":74781,"./EFTPOS.js":74781,"./ERTManager":30672,"./ERTManager.js":30672,"./EconomyManager":24503,"./EconomyManager.js":24503,"./Electropack":15543,"./Electropack.js":15543,"./Emojipedia":57013,"./Emojipedia.tsx":57013,"./EvolutionMenu":99012,"./EvolutionMenu.js":99012,"./ExosuitFabricator":37504,"./ExosuitFabricator.js":37504,"./ExperimentConsole":9466,"./ExperimentConsole.js":9466,"./ExternalAirlockController":77284,"./ExternalAirlockController.js":77284,"./FaxMachine":52516,"./FaxMachine.js":52516,"./FilingCabinet":24777,"./FilingCabinet.js":24777,"./FloorPainter":88361,"./FloorPainter.js":88361,"./GPS":70078,"./GPS.js":70078,"./GeneModder":92246,"./GeneModder.js":92246,"./GenericCrewManifest":27163,"./GenericCrewManifest.js":27163,"./GhostHudPanel":53808,"./GhostHudPanel.js":53808,"./GlandDispenser":32035,"./GlandDispenser.js":32035,"./GravityGen":33004,"./GravityGen.js":33004,"./GuestPass":39775,"./GuestPass.js":39775,"./HandheldChemDispenser":22480,"./HandheldChemDispenser.js":22480,"./HealthSensor":22616,"./HealthSensor.js":22616,"./Holodeck":76861,"./Holodeck.js":76861,"./Instrument":96729,"./Instrument.js":96729,"./KeycardAuth":53385,"./KeycardAuth.js":53385,"./KitchenMachine":58553,"./KitchenMachine.js":58553,"./LawManager":14047,"./LawManager.js":14047,"./LibraryComputer":5872,"./LibraryComputer.js":5872,"./LibraryManager":37782,"./LibraryManager.js":37782,"./ListInputModal":26133,"./ListInputModal.tsx":26133,"./MODsuit":71963,"./MODsuit.js":71963,"./MagnetController":84274,"./MagnetController.js":84274,"./MechBayConsole":95752,"./MechBayConsole.js":95752,"./MechaControlConsole":53668,"./MechaControlConsole.js":53668,"./MedicalRecords":96467,"./MedicalRecords.js":96467,"./MerchVendor":68211,"./MerchVendor.js":68211,"./MiningVendor":14162,"./MiningVendor.js":14162,"./NTRecruiter":68977,"./NTRecruiter.js":68977,"./Newscaster":17067,"./Newscaster.js":17067,"./Noticeboard":26148,"./Noticeboard.tsx":26148,"./NuclearBomb":46940,"./NuclearBomb.js":46940,"./NumberInputModal":35478,"./NumberInputModal.tsx":35478,"./OperatingComputer":98476,"./OperatingComputer.js":98476,"./Orbit":98702,"./Orbit.js":98702,"./OreRedemption":74015,"./OreRedemption.js":74015,"./PAI":48824,"./PAI.js":48824,"./PDA":41565,"./PDA.js":41565,"./Pacman":78704,"./Pacman.js":78704,"./PanDEMIC":6887,"./PanDEMIC.tsx":6887,"./ParticleAccelerator":78643,"./ParticleAccelerator.js":78643,"./PdaPainter":34026,"./PdaPainter.js":34026,"./PersonalCrafting":81378,"./PersonalCrafting.js":81378,"./Photocopier":58792,"./Photocopier.js":58792,"./PoolController":27902,"./PoolController.js":27902,"./PortablePump":52025,"./PortablePump.js":52025,"./PortableScrubber":57827,"./PortableScrubber.js":57827,"./PortableTurret":63825,"./PortableTurret.js":63825,"./PowerMonitor":70373,"./PowerMonitor.js":70373,"./PrisonerImplantManager":27262,"./PrisonerImplantManager.js":27262,"./PrisonerShuttleConsole":22046,"./PrisonerShuttleConsole.js":22046,"./PrizeCounter":92014,"./PrizeCounter.tsx":92014,"./RCD":87963,"./RCD.js":87963,"./RPD":84364,"./RPD.js":84364,"./Radio":14641,"./Radio.js":14641,"./ReagentGrinder":40483,"./ReagentGrinder.js":40483,"./ReagentsEditor":70976,"./ReagentsEditor.tsx":70976,"./RemoteSignaler":94049,"./RemoteSignaler.js":94049,"./RequestConsole":12326,"./RequestConsole.js":12326,"./RndConsole":89641,"./RndConsole.js":89641,"./RndConsoleComponents":3422,"./RndConsoleComponents/":3422,"./RndConsoleComponents/CurrentLevels":19348,"./RndConsoleComponents/CurrentLevels.js":19348,"./RndConsoleComponents/DataDiskMenu":338,"./RndConsoleComponents/DataDiskMenu.js":338,"./RndConsoleComponents/DeconstructionMenu":90785,"./RndConsoleComponents/DeconstructionMenu.js":90785,"./RndConsoleComponents/LatheCategory":34492,"./RndConsoleComponents/LatheCategory.js":34492,"./RndConsoleComponents/LatheChemicalStorage":84275,"./RndConsoleComponents/LatheChemicalStorage.js":84275,"./RndConsoleComponents/LatheMainMenu":12638,"./RndConsoleComponents/LatheMainMenu.js":12638,"./RndConsoleComponents/LatheMaterialStorage":89004,"./RndConsoleComponents/LatheMaterialStorage.js":89004,"./RndConsoleComponents/LatheMaterials":73856,"./RndConsoleComponents/LatheMaterials.js":73856,"./RndConsoleComponents/LatheMenu":75955,"./RndConsoleComponents/LatheMenu.js":75955,"./RndConsoleComponents/LatheSearch":72880,"./RndConsoleComponents/LatheSearch.js":72880,"./RndConsoleComponents/MainMenu":62306,"./RndConsoleComponents/MainMenu.js":62306,"./RndConsoleComponents/RndNavButton":99941,"./RndConsoleComponents/RndNavButton.js":99941,"./RndConsoleComponents/RndNavbar":24448,"./RndConsoleComponents/RndNavbar.js":24448,"./RndConsoleComponents/RndRoute":78345,"./RndConsoleComponents/RndRoute.js":78345,"./RndConsoleComponents/SettingsMenu":56454,"./RndConsoleComponents/SettingsMenu.js":56454,"./RndConsoleComponents/index":3422,"./RndConsoleComponents/index.js":3422,"./RobotSelfDiagnosis":71123,"./RobotSelfDiagnosis.js":71123,"./RoboticsControlConsole":98951,"./RoboticsControlConsole.js":98951,"./Safe":2289,"./Safe.js":2289,"./SatelliteControl":49334,"./SatelliteControl.js":49334,"./SecureStorage":54892,"./SecureStorage.js":54892,"./SecurityRecords":56798,"./SecurityRecords.js":56798,"./SeedExtractor":59981,"./SeedExtractor.js":59981,"./ShuttleConsole":33454,"./ShuttleConsole.js":33454,"./ShuttleManipulator":50451,"./ShuttleManipulator.js":50451,"./Sleeper":99050,"./Sleeper.js":99050,"./SlotMachine":37763,"./SlotMachine.js":37763,"./Smartfridge":26654,"./Smartfridge.js":26654,"./Smes":71124,"./Smes.js":71124,"./SolarControl":21786,"./SolarControl.js":21786,"./SpawnersMenu":31202,"./SpawnersMenu.js":31202,"./SpecMenu":84800,"./SpecMenu.js":84800,"./StationAlertConsole":46501,"./StationAlertConsole.js":46501,"./StationTraitsPanel":18565,"./StationTraitsPanel.tsx":18565,"./StripMenu":95147,"./StripMenu.tsx":95147,"./SuitStorage":61284,"./SuitStorage.js":61284,"./SupermatterMonitor":19796,"./SupermatterMonitor.js":19796,"./SyndicateComputerSimple":30047,"./SyndicateComputerSimple.js":30047,"./TEG":28830,"./TEG.js":28830,"./TachyonArray":39903,"./TachyonArray.js":39903,"./Tank":17068,"./Tank.js":17068,"./TankDispenser":69161,"./TankDispenser.js":69161,"./TcommsCore":87394,"./TcommsCore.js":87394,"./TcommsRelay":55684,"./TcommsRelay.js":55684,"./Teleporter":81088,"./Teleporter.js":81088,"./TelescienceConsole":65875,"./TelescienceConsole.js":65875,"./TempGun":96150,"./TempGun.js":96150,"./TextInputModal":95484,"./TextInputModal.tsx":95484,"./ThermoMachine":378,"./ThermoMachine.js":378,"./TransferValve":3365,"./TransferValve.js":3365,"./TurbineComputer":13860,"./TurbineComputer.js":13860,"./Uplink":22169,"./Uplink.js":22169,"./Vending":70547,"./Vending.js":70547,"./VolumeMixer":33045,"./VolumeMixer.js":33045,"./VotePanel":53792,"./VotePanel.js":53792,"./Wires":64860,"./Wires.js":64860,"./WizardApprenticeContract":78262,"./WizardApprenticeContract.js":78262,"./common/AccessList":57842,"./common/AccessList.js":57842,"./common/AtmosScan":79449,"./common/AtmosScan.js":79449,"./common/BeakerContents":1496,"./common/BeakerContents.js":1496,"./common/BotStatus":69521,"./common/BotStatus.js":69521,"./common/ComplexModal":99665,"./common/ComplexModal.js":99665,"./common/CrewManifest":98444,"./common/CrewManifest.js":98444,"./common/InputButtons":15113,"./common/InputButtons.tsx":15113,"./common/InterfaceLockNoticeBox":26893,"./common/InterfaceLockNoticeBox.js":26893,"./common/Loader":14299,"./common/Loader.tsx":14299,"./common/LoginInfo":68159,"./common/LoginInfo.js":68159,"./common/LoginScreen":27527,"./common/LoginScreen.js":27527,"./common/Operating":75201,"./common/Operating.js":75201,"./common/Signaler":65435,"./common/Signaler.js":65435,"./common/SimpleRecords":77534,"./common/SimpleRecords.js":77534,"./common/TemporaryNotice":84537,"./common/TemporaryNotice.js":84537,"./pai/pai_atmosphere":24704,"./pai/pai_atmosphere.js":24704,"./pai/pai_bioscan":4209,"./pai/pai_bioscan.js":4209,"./pai/pai_directives":44430,"./pai/pai_directives.js":44430,"./pai/pai_doorjack":3367,"./pai/pai_doorjack.js":3367,"./pai/pai_main_menu":73395,"./pai/pai_main_menu.js":73395,"./pai/pai_manifest":37645,"./pai/pai_manifest.js":37645,"./pai/pai_medrecords":15836,"./pai/pai_medrecords.js":15836,"./pai/pai_messenger":91737,"./pai/pai_messenger.js":91737,"./pai/pai_radio":94077,"./pai/pai_radio.js":94077,"./pai/pai_secrecords":72621,"./pai/pai_secrecords.js":72621,"./pai/pai_signaler":53483,"./pai/pai_signaler.js":53483,"./pda/pda_atmos_scan":21606,"./pda/pda_atmos_scan.js":21606,"./pda/pda_janitor":12339,"./pda/pda_janitor.js":12339,"./pda/pda_main_menu":36615,"./pda/pda_main_menu.js":36615,"./pda/pda_manifest":99737,"./pda/pda_manifest.js":99737,"./pda/pda_medical":61597,"./pda/pda_medical.js":61597,"./pda/pda_messenger":30709,"./pda/pda_messenger.js":30709,"./pda/pda_mule":68053,"./pda/pda_mule.js":68053,"./pda/pda_nanobank":31728,"./pda/pda_nanobank.js":31728,"./pda/pda_notes":29415,"./pda/pda_notes.js":29415,"./pda/pda_power":52363,"./pda/pda_power.js":52363,"./pda/pda_secbot":23914,"./pda/pda_secbot.js":23914,"./pda/pda_security":68878,"./pda/pda_security.js":68878,"./pda/pda_signaler":95135,"./pda/pda_signaler.js":95135,"./pda/pda_status_display":20835,"./pda/pda_status_display.js":20835,"./pda/pda_supplyrecords":11741,"./pda/pda_supplyrecords.js":11741};function a(o){var f=t(o);return n(f)}function t(o){if(!n.o(e,o)){var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}return e[o]}a.keys=function(){return Object.keys(e)},a.resolve=t,L.exports=a,a.id=32054},4085:function(L,r,n){var e={"./Blink.stories.js":61498,"./BlockQuote.stories.js":27431,"./Box.stories.js":6517,"./Button.stories.js":20648,"./ByondUi.stories.js":14906,"./Collapsible.stories.js":59948,"./Flex.stories.js":37227,"./ImageButton.stories.js":16189,"./Input.stories.js":32304,"./Popper.stories.js":50394,"./ProgressBar.stories.js":75096,"./Stack.stories.js":30268,"./Storage.stories.js":22645,"./Tabs.stories.js":42120,"./Themes.stories.js":80254,"./Tooltip.stories.js":90823};function a(o){var f=t(o);return n(f)}function t(o){if(!n.o(e,o)){var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}return e[o]}a.keys=function(){return Object.keys(e)},a.resolve=t,L.exports=a,a.id=4085},97361:function(L,r,n){"use strict";var e=n(7532),a=n(62518),t=TypeError;L.exports=function(o){if(e(o))return o;throw new t(a(o)+" is not a function")}},76833:function(L,r,n){"use strict";var e=n(60354),a=n(62518),t=TypeError;L.exports=function(o){if(e(o))return o;throw new t(a(o)+" is not a constructor")}},51689:function(L,r,n){"use strict";var e=n(41224),a=String,t=TypeError;L.exports=function(o){if(e(o))return o;throw new t("Can't set "+a(o)+" as a prototype")}},91138:function(L,r,n){"use strict";var e=n(66266),a=n(28969),t=n(56018).f,o=e("unscopables"),f=Array.prototype;f[o]===void 0&&t(f,o,{configurable:!0,value:a(null)}),L.exports=function(V){f[o][V]=!0}},62970:function(L,r,n){"use strict";var e=n(56852).charAt;L.exports=function(a,t,o){return t+(o?e(a,t).length:1)}},19870:function(L,r,n){"use strict";var e=n(33314),a=TypeError;L.exports=function(t,o){if(e(o,t))return t;throw new a("Incorrect invocation")}},39482:function(L,r,n){"use strict";var e=n(56831),a=String,t=TypeError;L.exports=function(o){if(e(o))return o;throw new t(a(o)+" is not an object")}},67404:function(L){"use strict";L.exports=typeof ArrayBuffer!="undefined"&&typeof DataView!="undefined"},65693:function(L,r,n){"use strict";var e=n(41746);L.exports=e(function(){if(typeof ArrayBuffer=="function"){var a=new ArrayBuffer(8);Object.isExtensible(a)&&Object.defineProperty(a,"a",{value:8})}})},72951:function(L,r,n){"use strict";var e=n(67404),a=n(14141),t=n(40224),o=n(7532),f=n(56831),V=n(89458),k=n(27806),S=n(62518),b=n(16216),p=n(59173),l=n(10069),c=n(33314),m=n(31658),d=n(42878),u=n(66266),s=n(33345),i=n(35086),v=i.enforce,C=i.get,g=t.Int8Array,h=g&&g.prototype,N=t.Uint8ClampedArray,y=N&&N.prototype,B=g&&m(g),I=h&&m(h),w=Object.prototype,T=t.TypeError,A=u("toStringTag"),x=s("TYPED_ARRAY_TAG"),E="TypedArrayConstructor",M=e&&!!d&&k(t.opera)!=="Opera",D=!1,P,R,j,F={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},U={BigInt64Array:8,BigUint64Array:8},_=function(){function ae(fe){if(!f(fe))return!1;var pe=k(fe);return pe==="DataView"||V(F,pe)||V(U,pe)}return ae}(),z=function ae(fe){var pe=m(fe);if(f(pe)){var be=C(pe);return be&&V(be,E)?be[E]:ae(pe)}},G=function(fe){if(!f(fe))return!1;var pe=k(fe);return V(F,pe)||V(U,pe)},X=function(fe){if(G(fe))return fe;throw new T("Target is not a typed array")},Y=function(fe){if(o(fe)&&(!d||c(B,fe)))return fe;throw new T(S(fe)+" is not a typed array constructor")},J=function(fe,pe,be,te){if(a){if(be)for(var Q in F){var ne=t[Q];if(ne&&V(ne.prototype,fe))try{delete ne.prototype[fe]}catch(me){try{ne.prototype[fe]=pe}catch(ce){}}}(!I[fe]||be)&&p(I,fe,be?pe:M&&h[fe]||pe,te)}},ie=function(fe,pe,be){var te,Q;if(a){if(d){if(be){for(te in F)if(Q=t[te],Q&&V(Q,fe))try{delete Q[fe]}catch(ne){}}if(!B[fe]||be)try{return p(B,fe,be?pe:M&&B[fe]||pe)}catch(ne){}else return}for(te in F)Q=t[te],Q&&(!Q[fe]||be)&&p(Q,fe,pe)}};for(P in F)R=t[P],j=R&&R.prototype,j?v(j)[E]=R:M=!1;for(P in U)R=t[P],j=R&&R.prototype,j&&(v(j)[E]=R);if((!M||!o(B)||B===Function.prototype)&&(B=function(){function ae(){throw new T("Incorrect invocation")}return ae}(),M))for(P in F)t[P]&&d(t[P],B);if((!M||!I||I===w)&&(I=B.prototype,M))for(P in F)t[P]&&d(t[P].prototype,I);if(M&&m(y)!==I&&d(y,I),a&&!V(I,A)){D=!0,l(I,A,{configurable:!0,get:function(){function ae(){return f(this)?this[x]:void 0}return ae}()});for(P in F)t[P]&&b(t[P],x,P)}L.exports={NATIVE_ARRAY_BUFFER_VIEWS:M,TYPED_ARRAY_TAG:D&&x,aTypedArray:X,aTypedArrayConstructor:Y,exportTypedArrayMethod:J,exportTypedArrayStaticMethod:ie,getTypedArrayConstructor:z,isView:_,isTypedArray:G,TypedArray:B,TypedArrayPrototype:I}},46185:function(L,r,n){"use strict";var e=n(40224),a=n(18161),t=n(14141),o=n(67404),f=n(26463),V=n(16216),k=n(10069),S=n(13648),b=n(41746),p=n(19870),l=n(74952),c=n(10475),m=n(90835),d=n(75988),u=n(62263),s=n(31658),i=n(42878),v=n(59942),C=n(77713),g=n(2566),h=n(70113),N=n(94234),y=n(35086),B=f.PROPER,I=f.CONFIGURABLE,w="ArrayBuffer",T="DataView",A="prototype",x="Wrong length",E="Wrong index",M=y.getterFor(w),D=y.getterFor(T),P=y.set,R=e[w],j=R,F=j&&j[A],U=e[T],_=U&&U[A],z=Object.prototype,G=e.Array,X=e.RangeError,Y=a(v),J=a([].reverse),ie=u.pack,ae=u.unpack,fe=function(ge){return[ge&255]},pe=function(ge){return[ge&255,ge>>8&255]},be=function(ge){return[ge&255,ge>>8&255,ge>>16&255,ge>>24&255]},te=function(ge){return ge[3]<<24|ge[2]<<16|ge[1]<<8|ge[0]},Q=function(ge){return ie(d(ge),23,4)},ne=function(ge){return ie(ge,52,8)},me=function(ge,ye,Ve){k(ge[A],ye,{configurable:!0,get:function(){function Ie(){return Ve(this)[ye]}return Ie}()})},ce=function(ge,ye,Ve,Ie){var we=D(ge),xe=m(Ve),Oe=!!Ie;if(xe+ye>we.byteLength)throw new X(E);var We=we.bytes,Ne=xe+we.byteOffset,re=C(We,Ne,Ne+ye);return Oe?re:J(re)},ue=function(ge,ye,Ve,Ie,we,xe){var Oe=D(ge),We=m(Ve),Ne=Ie(+we),re=!!xe;if(We+ye>Oe.byteLength)throw new X(E);for(var de=Oe.bytes,he=We+Oe.byteOffset,se=0;sewe)throw new X("Wrong offset");if(Ve=Ve===void 0?we-xe:c(Ve),xe+Ve>we)throw new X(x);P(this,{type:T,buffer:ge,byteLength:Ve,byteOffset:xe,bytes:Ie.bytes}),t||(this.buffer=ge,this.byteLength=Ve,this.byteOffset=xe)}return ve}(),_=U[A],t&&(me(j,"byteLength",M),me(U,"buffer",D),me(U,"byteLength",D),me(U,"byteOffset",D)),S(_,{getInt8:function(){function ve(ge){return ce(this,1,ge)[0]<<24>>24}return ve}(),getUint8:function(){function ve(ge){return ce(this,1,ge)[0]}return ve}(),getInt16:function(){function ve(ge){var ye=ce(this,2,ge,arguments.length>1?arguments[1]:!1);return(ye[1]<<8|ye[0])<<16>>16}return ve}(),getUint16:function(){function ve(ge){var ye=ce(this,2,ge,arguments.length>1?arguments[1]:!1);return ye[1]<<8|ye[0]}return ve}(),getInt32:function(){function ve(ge){return te(ce(this,4,ge,arguments.length>1?arguments[1]:!1))}return ve}(),getUint32:function(){function ve(ge){return te(ce(this,4,ge,arguments.length>1?arguments[1]:!1))>>>0}return ve}(),getFloat32:function(){function ve(ge){return ae(ce(this,4,ge,arguments.length>1?arguments[1]:!1),23)}return ve}(),getFloat64:function(){function ve(ge){return ae(ce(this,8,ge,arguments.length>1?arguments[1]:!1),52)}return ve}(),setInt8:function(){function ve(ge,ye){ue(this,1,ge,fe,ye)}return ve}(),setUint8:function(){function ve(ge,ye){ue(this,1,ge,fe,ye)}return ve}(),setInt16:function(){function ve(ge,ye){ue(this,2,ge,pe,ye,arguments.length>2?arguments[2]:!1)}return ve}(),setUint16:function(){function ve(ge,ye){ue(this,2,ge,pe,ye,arguments.length>2?arguments[2]:!1)}return ve}(),setInt32:function(){function ve(ge,ye){ue(this,4,ge,be,ye,arguments.length>2?arguments[2]:!1)}return ve}(),setUint32:function(){function ve(ge,ye){ue(this,4,ge,be,ye,arguments.length>2?arguments[2]:!1)}return ve}(),setFloat32:function(){function ve(ge,ye){ue(this,4,ge,Q,ye,arguments.length>2?arguments[2]:!1)}return ve}(),setFloat64:function(){function ve(ge,ye){ue(this,8,ge,ne,ye,arguments.length>2?arguments[2]:!1)}return ve}()});else{var oe=B&&R.name!==w;!b(function(){R(1)})||!b(function(){new R(-1)})||b(function(){return new R,new R(1.5),new R(NaN),R.length!==1||oe&&!I})?(j=function(){function ve(ge){return p(this,F),g(new R(m(ge)),this,j)}return ve}(),j[A]=F,F.constructor=j,h(j,R)):oe&&I&&V(R,"name",w),i&&s(_)!==z&&i(_,z);var ke=new U(new j(2)),Be=a(_.setInt8);ke.setInt8(0,2147483648),ke.setInt8(1,2147483649),(ke.getInt8(0)||!ke.getInt8(1))&&S(_,{setInt8:function(){function ve(ge,ye){Be(this,ge,ye<<24>>24)}return ve}(),setUint8:function(){function ve(ge,ye){Be(this,ge,ye<<24>>24)}return ve}()},{unsafe:!0})}N(j,w),N(U,T),L.exports={ArrayBuffer:j,DataView:U}},42320:function(L,r,n){"use strict";var e=n(40076),a=n(74067),t=n(8333),o=n(58937),f=Math.min;L.exports=[].copyWithin||function(){function V(k,S){var b=e(this),p=t(b),l=a(k,p),c=a(S,p),m=arguments.length>2?arguments[2]:void 0,d=f((m===void 0?p:a(m,p))-c,p-l),u=1;for(c0;)c in b?b[l]=b[c]:o(b,l),l+=u,c+=u;return b}return V}()},59942:function(L,r,n){"use strict";var e=n(40076),a=n(74067),t=n(8333);L.exports=function(){function o(f){for(var V=e(this),k=t(V),S=arguments.length,b=a(S>1?arguments[1]:void 0,k),p=S>2?arguments[2]:void 0,l=p===void 0?k:a(p,k);l>b;)V[b++]=f;return V}return o}()},75420:function(L,r,n){"use strict";var e=n(67480).forEach,a=n(42309),t=a("forEach");L.exports=t?[].forEach:function(){function o(f){return e(this,f,arguments.length>1?arguments[1]:void 0)}return o}()},6967:function(L,r,n){"use strict";var e=n(8333);L.exports=function(a,t,o){for(var f=0,V=arguments.length>2?o:e(t),k=new a(V);V>f;)k[f]=t[f++];return k}},80363:function(L,r,n){"use strict";var e=n(4509),a=n(62696),t=n(40076),o=n(17100),f=n(58482),V=n(60354),k=n(8333),S=n(12913),b=n(3438),p=n(76274),l=Array;L.exports=function(){function c(m){var d=t(m),u=V(this),s=arguments.length,i=s>1?arguments[1]:void 0,v=i!==void 0;v&&(i=e(i,s>2?arguments[2]:void 0));var C=p(d),g=0,h,N,y,B,I,w;if(C&&!(this===l&&f(C)))for(N=u?new this:[],B=b(d,C),I=B.next;!(y=a(I,B)).done;g++)w=v?o(B,i,[y.value,g],!0):y.value,S(N,g,w);else for(h=k(d),N=u?new this(h):l(h);h>g;g++)w=v?i(d[g],g):d[g],S(N,g,w);return N.length=g,N}return c}()},64210:function(L,r,n){"use strict";var e=n(96812),a=n(74067),t=n(8333),o=function(V){return function(k,S,b){var p=e(k),l=t(p);if(l===0)return!V&&-1;var c=a(b,l),m;if(V&&S!==S){for(;l>c;)if(m=p[c++],m!==m)return!0}else for(;l>c;c++)if((V||c in p)&&p[c]===S)return V||c||0;return!V&&-1}};L.exports={includes:o(!0),indexOf:o(!1)}},67480:function(L,r,n){"use strict";var e=n(4509),a=n(18161),t=n(26736),o=n(40076),f=n(8333),V=n(32878),k=a([].push),S=function(p){var l=p===1,c=p===2,m=p===3,d=p===4,u=p===6,s=p===7,i=p===5||u;return function(v,C,g,h){for(var N=o(v),y=t(N),B=f(y),I=e(C,g),w=0,T=h||V,A=l?T(v,B):c||s?T(v,0):void 0,x,E;B>w;w++)if((i||w in y)&&(x=y[w],E=I(x,w,N),p))if(l)A[w]=E;else if(E)switch(p){case 3:return!0;case 5:return x;case 6:return w;case 2:k(A,x)}else switch(p){case 4:return!1;case 7:k(A,x)}return u?-1:m||d?d:A}};L.exports={forEach:S(0),map:S(1),filter:S(2),some:S(3),every:S(4),find:S(5),findIndex:S(6),filterReject:S(7)}},16934:function(L,r,n){"use strict";var e=n(70918),a=n(96812),t=n(74952),o=n(8333),f=n(42309),V=Math.min,k=[].lastIndexOf,S=!!k&&1/[1].lastIndexOf(1,-0)<0,b=f("lastIndexOf"),p=S||!b;L.exports=p?function(){function l(c){if(S)return e(k,this,arguments)||0;var m=a(this),d=o(m);if(d===0)return-1;var u=d-1;for(arguments.length>1&&(u=V(u,t(arguments[1]))),u<0&&(u=d+u);u>=0;u--)if(u in m&&m[u]===c)return u||0;return-1}return l}():k},55114:function(L,r,n){"use strict";var e=n(41746),a=n(66266),t=n(82709),o=a("species");L.exports=function(f){return t>=51||!e(function(){var V=[],k=V.constructor={};return k[o]=function(){return{foo:1}},V[f](Boolean).foo!==1})}},42309:function(L,r,n){"use strict";var e=n(41746);L.exports=function(a,t){var o=[][a];return!!o&&e(function(){o.call(null,t||function(){return 1},1)})}},98405:function(L,r,n){"use strict";var e=n(97361),a=n(40076),t=n(26736),o=n(8333),f=TypeError,V="Reduce of empty array with no initial value",k=function(b){return function(p,l,c,m){var d=a(p),u=t(d),s=o(d);if(e(l),s===0&&c<2)throw new f(V);var i=b?s-1:0,v=b?-1:1;if(c<2)for(;;){if(i in u){m=u[i],i+=v;break}if(i+=v,b?i<0:s<=i)throw new f(V)}for(;b?i>=0:s>i;i+=v)i in u&&(m=l(m,u[i],i,d));return m}};L.exports={left:k(!1),right:k(!0)}},72720:function(L,r,n){"use strict";var e=n(14141),a=n(62367),t=TypeError,o=Object.getOwnPropertyDescriptor,f=e&&!function(){if(this!==void 0)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(V){return V instanceof TypeError}}();L.exports=f?function(V,k){if(a(V)&&!o(V,"length").writable)throw new t("Cannot set read only .length");return V.length=k}:function(V,k){return V.length=k}},77713:function(L,r,n){"use strict";var e=n(18161);L.exports=e([].slice)},44815:function(L,r,n){"use strict";var e=n(77713),a=Math.floor,t=function o(f,V){var k=f.length;if(k<8)for(var S=1,b,p;S0;)f[p]=f[--p];p!==S++&&(f[p]=b)}else for(var l=a(k/2),c=o(e(f,0,l),V),m=o(e(f,l),V),d=c.length,u=m.length,s=0,i=0;s1?arguments[1]:void 0),E;E=E?E.next:A.first;)for(x(E.value,E.key,this);E&&E.removed;)E=E.previous}return w}(),has:function(){function w(T){return!!I(this,T)}return w}()}),t(N,C?{get:function(){function w(T){var A=I(this,T);return A&&A.value}return w}(),set:function(){function w(T,A){return B(this,T===0?0:T,A)}return w}()}:{add:function(){function w(T){return B(this,T=T===0?0:T,T)}return w}()}),l&&a(N,"size",{configurable:!0,get:function(){function w(){return y(this).size}return w}()}),h}return s}(),setStrong:function(){function s(i,v,C){var g=v+" Iterator",h=u(v),N=u(g);S(i,v,function(y,B){d(this,{type:g,target:y,state:h(y),kind:B,last:void 0})},function(){for(var y=N(this),B=y.kind,I=y.last;I&&I.removed;)I=I.previous;return!y.target||!(y.last=I=I?I.next:y.state.first)?(y.target=void 0,b(void 0,!0)):b(B==="keys"?I.key:B==="values"?I.value:[I.key,I.value],!1)},C?"entries":"values",!C,!0),p(v)}return s}()}},32920:function(L,r,n){"use strict";var e=n(18161),a=n(13648),t=n(29126).getWeakData,o=n(19870),f=n(39482),V=n(1022),k=n(56831),S=n(281),b=n(67480),p=n(89458),l=n(35086),c=l.set,m=l.getterFor,d=b.find,u=b.findIndex,s=e([].splice),i=0,v=function(N){return N.frozen||(N.frozen=new C)},C=function(){this.entries=[]},g=function(N,y){return d(N.entries,function(B){return B[0]===y})};C.prototype={get:function(){function h(N){var y=g(this,N);if(y)return y[1]}return h}(),has:function(){function h(N){return!!g(this,N)}return h}(),set:function(){function h(N,y){var B=g(this,N);B?B[1]=y:this.entries.push([N,y])}return h}(),delete:function(){function h(N){var y=u(this.entries,function(B){return B[0]===N});return~y&&s(this.entries,y,1),!!~y}return h}()},L.exports={getConstructor:function(){function h(N,y,B,I){var w=N(function(E,M){o(E,T),c(E,{type:y,id:i++,frozen:void 0}),V(M)||S(M,E[I],{that:E,AS_ENTRIES:B})}),T=w.prototype,A=m(y),x=function(){function E(M,D,P){var R=A(M),j=t(f(D),!0);return j===!0?v(R).set(D,P):j[R.id]=P,M}return E}();return a(T,{delete:function(){function E(M){var D=A(this);if(!k(M))return!1;var P=t(M);return P===!0?v(D).delete(M):P&&p(P,D.id)&&delete P[D.id]}return E}(),has:function(){function E(M){var D=A(this);if(!k(M))return!1;var P=t(M);return P===!0?v(D).has(M):P&&p(P,D.id)}return E}()}),a(T,B?{get:function(){function E(M){var D=A(this);if(k(M)){var P=t(M);return P===!0?v(D).get(M):P?P[D.id]:void 0}}return E}(),set:function(){function E(M,D){return x(this,M,D)}return E}()}:{add:function(){function E(M){return x(this,M,!0)}return E}()}),w}return h}()}},93439:function(L,r,n){"use strict";var e=n(77549),a=n(40224),t=n(18161),o=n(95945),f=n(59173),V=n(29126),k=n(281),S=n(19870),b=n(7532),p=n(1022),l=n(56831),c=n(41746),m=n(52019),d=n(94234),u=n(2566);L.exports=function(s,i,v){var C=s.indexOf("Map")!==-1,g=s.indexOf("Weak")!==-1,h=C?"set":"add",N=a[s],y=N&&N.prototype,B=N,I={},w=function(R){var j=t(y[R]);f(y,R,R==="add"?function(){function F(U){return j(this,U===0?0:U),this}return F}():R==="delete"?function(F){return g&&!l(F)?!1:j(this,F===0?0:F)}:R==="get"?function(){function F(U){return g&&!l(U)?void 0:j(this,U===0?0:U)}return F}():R==="has"?function(){function F(U){return g&&!l(U)?!1:j(this,U===0?0:U)}return F}():function(){function F(U,_){return j(this,U===0?0:U,_),this}return F}())},T=o(s,!b(N)||!(g||y.forEach&&!c(function(){new N().entries().next()})));if(T)B=v.getConstructor(i,s,C,h),V.enable();else if(o(s,!0)){var A=new B,x=A[h](g?{}:-0,1)!==A,E=c(function(){A.has(1)}),M=m(function(P){new N(P)}),D=!g&&c(function(){for(var P=new N,R=5;R--;)P[h](R,R);return!P.has(-0)});M||(B=i(function(P,R){S(P,y);var j=u(new N,P,B);return p(R)||k(R,j[h],{that:j,AS_ENTRIES:C}),j}),B.prototype=y,y.constructor=B),(E||D)&&(w("delete"),w("has"),C&&w("get")),(D||x)&&w(h),g&&y.clear&&delete y.clear}return I[s]=B,e({global:!0,constructor:!0,forced:B!==N},I),d(B,s),g||v.setStrong(B,s,C),B}},70113:function(L,r,n){"use strict";var e=n(89458),a=n(93616),t=n(54168),o=n(56018);L.exports=function(f,V,k){for(var S=a(V),b=o.f,p=t.f,l=0;l"+p+""}},77056:function(L){"use strict";L.exports=function(r,n){return{value:r,done:n}}},16216:function(L,r,n){"use strict";var e=n(14141),a=n(56018),t=n(7539);L.exports=e?function(o,f,V){return a.f(o,f,t(1,V))}:function(o,f,V){return o[f]=V,o}},7539:function(L){"use strict";L.exports=function(r,n){return{enumerable:!(r&1),configurable:!(r&2),writable:!(r&4),value:n}}},12913:function(L,r,n){"use strict";var e=n(14141),a=n(56018),t=n(7539);L.exports=function(o,f,V){e?a.f(o,f,t(0,V)):o[f]=V}},74003:function(L,r,n){"use strict";var e=n(18161),a=n(41746),t=n(34086).start,o=RangeError,f=isFinite,V=Math.abs,k=Date.prototype,S=k.toISOString,b=e(k.getTime),p=e(k.getUTCDate),l=e(k.getUTCFullYear),c=e(k.getUTCHours),m=e(k.getUTCMilliseconds),d=e(k.getUTCMinutes),u=e(k.getUTCMonth),s=e(k.getUTCSeconds);L.exports=a(function(){return S.call(new Date(-50000000000001))!=="0385-07-25T07:06:39.999Z"})||!a(function(){S.call(new Date(NaN))})?function(){function i(){if(!f(b(this)))throw new o("Invalid time value");var v=this,C=l(v),g=m(v),h=C<0?"-":C>9999?"+":"";return h+t(V(C),h?6:4,0)+"-"+t(u(v)+1,2,0)+"-"+t(p(v),2,0)+"T"+t(c(v),2,0)+":"+t(d(v),2,0)+":"+t(s(v),2,0)+"."+t(g,3,0)+"Z"}return i}():S},95865:function(L,r,n){"use strict";var e=n(39482),a=n(14991),t=TypeError;L.exports=function(o){if(e(this),o==="string"||o==="default")o="string";else if(o!=="number")throw new t("Incorrect hint");return a(this,o)}},10069:function(L,r,n){"use strict";var e=n(76130),a=n(56018);L.exports=function(t,o,f){return f.get&&e(f.get,o,{getter:!0}),f.set&&e(f.set,o,{setter:!0}),a.f(t,o,f)}},59173:function(L,r,n){"use strict";var e=n(7532),a=n(56018),t=n(76130),o=n(93422);L.exports=function(f,V,k,S){S||(S={});var b=S.enumerable,p=S.name!==void 0?S.name:V;if(e(k)&&t(k,p,S),S.global)b?f[V]=k:o(V,k);else{try{S.unsafe?f[V]&&(b=!0):delete f[V]}catch(l){}b?f[V]=k:a.f(f,V,{value:k,enumerable:!1,configurable:!S.nonConfigurable,writable:!S.nonWritable})}return f}},13648:function(L,r,n){"use strict";var e=n(59173);L.exports=function(a,t,o){for(var f in t)e(a,f,t[f],o);return a}},93422:function(L,r,n){"use strict";var e=n(40224),a=Object.defineProperty;L.exports=function(t,o){try{a(e,t,{value:o,configurable:!0,writable:!0})}catch(f){e[t]=o}return o}},58937:function(L,r,n){"use strict";var e=n(62518),a=TypeError;L.exports=function(t,o){if(!delete t[o])throw new a("Cannot delete property "+e(o)+" of "+e(t))}},14141:function(L,r,n){"use strict";var e=n(41746);L.exports=!e(function(){return Object.defineProperty({},1,{get:function(){function a(){return 7}return a}()})[1]!==7})},85158:function(L,r,n){"use strict";var e=n(40224),a=n(56831),t=e.document,o=a(t)&&a(t.createElement);L.exports=function(f){return o?t.createElement(f):{}}},72434:function(L){"use strict";var r=TypeError,n=9007199254740991;L.exports=function(e){if(e>n)throw r("Maximum allowed index exceeded");return e}},49847:function(L,r,n){"use strict";var e=n(15837),a=e.match(/firefox\/(\d+)/i);L.exports=!!a&&+a[1]},27955:function(L,r,n){"use strict";var e=n(2971),a=n(95823);L.exports=!e&&!a&&typeof window=="object"&&typeof document=="object"},2178:function(L){"use strict";L.exports=typeof Bun=="function"&&Bun&&typeof Bun.version=="string"},2971:function(L){"use strict";L.exports=typeof Deno=="object"&&Deno&&typeof Deno.version=="object"},56605:function(L,r,n){"use strict";var e=n(15837);L.exports=/MSIE|Trident/.test(e)},6647:function(L,r,n){"use strict";var e=n(15837);L.exports=/ipad|iphone|ipod/i.test(e)&&typeof Pebble!="undefined"},52426:function(L,r,n){"use strict";var e=n(15837);L.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(e)},95823:function(L,r,n){"use strict";var e=n(40224),a=n(38817);L.exports=a(e.process)==="process"},25062:function(L,r,n){"use strict";var e=n(15837);L.exports=/web0s(?!.*chrome)/i.test(e)},15837:function(L){"use strict";L.exports=typeof navigator!="undefined"&&String(navigator.userAgent)||""},82709:function(L,r,n){"use strict";var e=n(40224),a=n(15837),t=e.process,o=e.Deno,f=t&&t.versions||o&&o.version,V=f&&f.v8,k,S;V&&(k=V.split("."),S=k[0]>0&&k[0]<4?1:+(k[0]+k[1])),!S&&a&&(k=a.match(/Edge\/(\d+)/),(!k||k[1]>=74)&&(k=a.match(/Chrome\/(\d+)/),k&&(S=+k[1]))),L.exports=S},53125:function(L,r,n){"use strict";var e=n(15837),a=e.match(/AppleWebKit\/(\d+)\./);L.exports=!!a&&+a[1]},90298:function(L){"use strict";L.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},77549:function(L,r,n){"use strict";var e=n(40224),a=n(54168).f,t=n(16216),o=n(59173),f=n(93422),V=n(70113),k=n(95945);L.exports=function(S,b){var p=S.target,l=S.global,c=S.stat,m,d,u,s,i,v;if(l?d=e:c?d=e[p]||f(p,{}):d=e[p]&&e[p].prototype,d)for(u in b){if(i=b[u],S.dontCallGetSet?(v=a(d,u),s=v&&v.value):s=d[u],m=k(l?u:p+(c?".":"#")+u,S.forced),!m&&s!==void 0){if(typeof i==typeof s)continue;V(i,s)}(S.sham||s&&s.sham)&&t(i,"sham",!0),o(d,u,i,S)}}},41746:function(L){"use strict";L.exports=function(r){try{return!!r()}catch(n){return!0}}},85427:function(L,r,n){"use strict";n(95880);var e=n(62696),a=n(59173),t=n(72894),o=n(41746),f=n(66266),V=n(16216),k=f("species"),S=RegExp.prototype;L.exports=function(b,p,l,c){var m=f(b),d=!o(function(){var v={};return v[m]=function(){return 7},""[b](v)!==7}),u=d&&!o(function(){var v=!1,C=/a/;return b==="split"&&(C={},C.constructor={},C.constructor[k]=function(){return C},C.flags="",C[m]=/./[m]),C.exec=function(){return v=!0,null},C[m](""),!v});if(!d||!u||l){var s=/./[m],i=p(m,""[b],function(v,C,g,h,N){var y=C.exec;return y===t||y===S.exec?d&&!N?{done:!0,value:e(s,C,g,h)}:{done:!0,value:e(v,g,C,h)}:{done:!1}});a(String.prototype,b,i[0]),a(S,m,i[1])}c&&V(S[m],"sham",!0)}},68864:function(L,r,n){"use strict";var e=n(62367),a=n(8333),t=n(72434),o=n(4509),f=function V(k,S,b,p,l,c,m,d){for(var u=l,s=0,i=m?o(m,d):!1,v,C;s0&&e(v)?(C=a(v),u=V(k,S,v,C,u,c-1)-1):(t(u+1),k[u]=v),u++),s++;return u};L.exports=f},56255:function(L,r,n){"use strict";var e=n(41746);L.exports=!e(function(){return Object.isExtensible(Object.preventExtensions({}))})},70918:function(L,r,n){"use strict";var e=n(76799),a=Function.prototype,t=a.apply,o=a.call;L.exports=typeof Reflect=="object"&&Reflect.apply||(e?o.bind(t):function(){return o.apply(t,arguments)})},4509:function(L,r,n){"use strict";var e=n(85067),a=n(97361),t=n(76799),o=e(e.bind);L.exports=function(f,V){return a(f),V===void 0?f:t?o(f,V):function(){return f.apply(V,arguments)}}},76799:function(L,r,n){"use strict";var e=n(41746);L.exports=!e(function(){var a=function(){}.bind();return typeof a!="function"||a.hasOwnProperty("prototype")})},9379:function(L,r,n){"use strict";var e=n(18161),a=n(97361),t=n(56831),o=n(89458),f=n(77713),V=n(76799),k=Function,S=e([].concat),b=e([].join),p={},l=function(m,d,u){if(!o(p,d)){for(var s=[],i=0;i]*>)/g,S=/\$([$&'`]|\d{1,2})/g;L.exports=function(b,p,l,c,m,d){var u=l+b.length,s=c.length,i=S;return m!==void 0&&(m=a(m),i=k),f(d,i,function(v,C){var g;switch(o(C,0)){case"$":return"$";case"&":return b;case"`":return V(p,0,l);case"'":return V(p,u);case"<":g=m[V(C,1,-1)];break;default:var h=+C;if(h===0)return v;if(h>s){var N=t(h/10);return N===0?v:N<=s?c[N-1]===void 0?o(C,1):c[N-1]+o(C,1):v}g=c[h-1]}return g===void 0?"":g})}},40224:function(L,r,n){"use strict";var e=function(t){return t&&t.Math===Math&&t};L.exports=e(typeof globalThis=="object"&&globalThis)||e(typeof window=="object"&&window)||e(typeof self=="object"&&self)||e(typeof n.g=="object"&&n.g)||e(!1)||function(){return this}()||Function("return this")()},89458:function(L,r,n){"use strict";var e=n(18161),a=n(40076),t=e({}.hasOwnProperty);L.exports=Object.hasOwn||function(){function o(f,V){return t(a(f),V)}return o}()},21124:function(L){"use strict";L.exports={}},46122:function(L){"use strict";L.exports=function(r,n){try{arguments.length}catch(e){}}},54562:function(L,r,n){"use strict";var e=n(40164);L.exports=e("document","documentElement")},1606:function(L,r,n){"use strict";var e=n(14141),a=n(41746),t=n(85158);L.exports=!e&&!a(function(){return Object.defineProperty(t("div"),"a",{get:function(){function o(){return 7}return o}()}).a!==7})},62263:function(L){"use strict";var r=Array,n=Math.abs,e=Math.pow,a=Math.floor,t=Math.log,o=Math.LN2,f=function(S,b,p){var l=r(p),c=p*8-b-1,m=(1<>1,u=b===23?e(2,-24)-e(2,-77):0,s=S<0||S===0&&1/S<0?1:0,i=0,v,C,g;for(S=n(S),S!==S||S===1/0?(C=S!==S?1:0,v=m):(v=a(t(S)/o),g=e(2,-v),S*g<1&&(v--,g*=2),v+d>=1?S+=u/g:S+=u*e(2,1-d),S*g>=2&&(v++,g/=2),v+d>=m?(C=0,v=m):v+d>=1?(C=(S*g-1)*e(2,b),v+=d):(C=S*e(2,d-1)*e(2,b),v=0));b>=8;)l[i++]=C&255,C/=256,b-=8;for(v=v<0;)l[i++]=v&255,v/=256,c-=8;return l[--i]|=s*128,l},V=function(S,b){var p=S.length,l=p*8-b-1,c=(1<>1,d=l-7,u=p-1,s=S[u--],i=s&127,v;for(s>>=7;d>0;)i=i*256+S[u--],d-=8;for(v=i&(1<<-d)-1,i>>=-d,d+=b;d>0;)v=v*256+S[u--],d-=8;if(i===0)i=1-m;else{if(i===c)return v?NaN:s?-1/0:1/0;v+=e(2,b),i-=m}return(s?-1:1)*v*e(2,i-b)};L.exports={pack:f,unpack:V}},26736:function(L,r,n){"use strict";var e=n(18161),a=n(41746),t=n(38817),o=Object,f=e("".split);L.exports=a(function(){return!o("z").propertyIsEnumerable(0)})?function(V){return t(V)==="String"?f(V,""):o(V)}:o},2566:function(L,r,n){"use strict";var e=n(7532),a=n(56831),t=n(42878);L.exports=function(o,f,V){var k,S;return t&&e(k=f.constructor)&&k!==V&&a(S=k.prototype)&&S!==V.prototype&&t(o,S),o}},43589:function(L,r,n){"use strict";var e=n(18161),a=n(7532),t=n(95046),o=e(Function.toString);a(t.inspectSource)||(t.inspectSource=function(f){return o(f)}),L.exports=t.inspectSource},29126:function(L,r,n){"use strict";var e=n(77549),a=n(18161),t=n(21124),o=n(56831),f=n(89458),V=n(56018).f,k=n(34813),S=n(63797),b=n(57975),p=n(33345),l=n(56255),c=!1,m=p("meta"),d=0,u=function(N){V(N,m,{value:{objectID:"O"+d++,weakData:{}}})},s=function(N,y){if(!o(N))return typeof N=="symbol"?N:(typeof N=="string"?"S":"P")+N;if(!f(N,m)){if(!b(N))return"F";if(!y)return"E";u(N)}return N[m].objectID},i=function(N,y){if(!f(N,m)){if(!b(N))return!0;if(!y)return!1;u(N)}return N[m].weakData},v=function(N){return l&&c&&b(N)&&!f(N,m)&&u(N),N},C=function(){g.enable=function(){},c=!0;var N=k.f,y=a([].splice),B={};B[m]=1,N(B).length&&(k.f=function(I){for(var w=N(I),T=0,A=w.length;TI;I++)if(T=M(d[I]),T&&k(m,T))return T;return new c(!1)}y=S(d,B)}for(A=C?d.next:y.next;!(x=a(A,y)).done;){try{T=M(x.value)}catch(D){p(y,"throw",D)}if(typeof T=="object"&&T&&k(m,T))return T}return new c(!1)}},14868:function(L,r,n){"use strict";var e=n(62696),a=n(39482),t=n(4817);L.exports=function(o,f,V){var k,S;a(o);try{if(k=t(o,"return"),!k){if(f==="throw")throw V;return V}k=e(k,o)}catch(b){S=!0,k=b}if(f==="throw")throw V;if(S)throw k;return a(k),V}},42599:function(L,r,n){"use strict";var e=n(85106).IteratorPrototype,a=n(28969),t=n(7539),o=n(94234),f=n(90604),V=function(){return this};L.exports=function(k,S,b,p){var l=S+" Iterator";return k.prototype=a(e,{next:t(+!p,b)}),o(k,l,!1,!0),f[l]=V,k}},2449:function(L,r,n){"use strict";var e=n(77549),a=n(62696),t=n(11478),o=n(26463),f=n(7532),V=n(42599),k=n(31658),S=n(42878),b=n(94234),p=n(16216),l=n(59173),c=n(66266),m=n(90604),d=n(85106),u=o.PROPER,s=o.CONFIGURABLE,i=d.IteratorPrototype,v=d.BUGGY_SAFARI_ITERATORS,C=c("iterator"),g="keys",h="values",N="entries",y=function(){return this};L.exports=function(B,I,w,T,A,x,E){V(w,I,T);var M=function(Y){if(Y===A&&F)return F;if(!v&&Y&&Y in R)return R[Y];switch(Y){case g:return function(){function J(){return new w(this,Y)}return J}();case h:return function(){function J(){return new w(this,Y)}return J}();case N:return function(){function J(){return new w(this,Y)}return J}()}return function(){return new w(this)}},D=I+" Iterator",P=!1,R=B.prototype,j=R[C]||R["@@iterator"]||A&&R[A],F=!v&&j||M(A),U=I==="Array"&&R.entries||j,_,z,G;if(U&&(_=k(U.call(new B)),_!==Object.prototype&&_.next&&(!t&&k(_)!==i&&(S?S(_,i):f(_[C])||l(_,C,y)),b(_,D,!0,!0),t&&(m[D]=y))),u&&A===h&&j&&j.name!==h&&(!t&&s?p(R,"name",h):(P=!0,F=function(){function X(){return a(j,this)}return X}())),A)if(z={values:M(h),keys:x?F:M(g),entries:M(N)},E)for(G in z)(v||P||!(G in R))&&l(R,G,z[G]);else e({target:I,proto:!0,forced:v||P},z);return(!t||E)&&R[C]!==F&&l(R,C,F,{name:A}),m[I]=F,z}},85106:function(L,r,n){"use strict";var e=n(41746),a=n(7532),t=n(56831),o=n(28969),f=n(31658),V=n(59173),k=n(66266),S=n(11478),b=k("iterator"),p=!1,l,c,m;[].keys&&(m=[].keys(),"next"in m?(c=f(f(m)),c!==Object.prototype&&(l=c)):p=!0);var d=!t(l)||e(function(){var u={};return l[b].call(u)!==u});d?l={}:S&&(l=o(l)),a(l[b])||V(l,b,function(){return this}),L.exports={IteratorPrototype:l,BUGGY_SAFARI_ITERATORS:p}},90604:function(L){"use strict";L.exports={}},8333:function(L,r,n){"use strict";var e=n(10475);L.exports=function(a){return e(a.length)}},76130:function(L,r,n){"use strict";var e=n(18161),a=n(41746),t=n(7532),o=n(89458),f=n(14141),V=n(26463).CONFIGURABLE,k=n(43589),S=n(35086),b=S.enforce,p=S.get,l=String,c=Object.defineProperty,m=e("".slice),d=e("".replace),u=e([].join),s=f&&!a(function(){return c(function(){},"length",{value:8}).length!==8}),i=String(String).split("String"),v=L.exports=function(C,g,h){m(l(g),0,7)==="Symbol("&&(g="["+d(l(g),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),h&&h.getter&&(g="get "+g),h&&h.setter&&(g="set "+g),(!o(C,"name")||V&&C.name!==g)&&(f?c(C,"name",{value:g,configurable:!0}):C.name=g),s&&h&&o(h,"arity")&&C.length!==h.arity&&c(C,"length",{value:h.arity});try{h&&o(h,"constructor")&&h.constructor?f&&c(C,"prototype",{writable:!1}):C.prototype&&(C.prototype=void 0)}catch(y){}var N=b(C);return o(N,"source")||(N.source=u(i,typeof g=="string"?g:"")),C};Function.prototype.toString=v(function(){function C(){return t(this)&&p(this).source||k(this)}return C}(),"toString")},32813:function(L){"use strict";var r=Math.expm1,n=Math.exp;L.exports=!r||r(10)>22025.465794806718||r(10)<22025.465794806718||r(-2e-17)!==-2e-17?function(){function e(a){var t=+a;return t===0?t:t>-1e-6&&t<1e-6?t+t*t/2:n(t)-1}return e}():r},23207:function(L,r,n){"use strict";var e=n(54307),a=Math.abs,t=2220446049250313e-31,o=1/t,f=function(k){return k+o-o};L.exports=function(V,k,S,b){var p=+V,l=a(p),c=e(p);if(lS||d!==d?c*(1/0):c*d}},75988:function(L,r,n){"use strict";var e=n(23207),a=11920928955078125e-23,t=34028234663852886e22,o=11754943508222875e-54;L.exports=Math.fround||function(){function f(V){return e(V,a,t,o)}return f}()},53271:function(L){"use strict";var r=Math.log,n=Math.LOG10E;L.exports=Math.log10||function(){function e(a){return r(a)*n}return e}()},69143:function(L){"use strict";var r=Math.log;L.exports=Math.log1p||function(){function n(e){var a=+e;return a>-1e-8&&a<1e-8?a-a*a/2:r(1+a)}return n}()},54307:function(L){"use strict";L.exports=Math.sign||function(){function r(n){var e=+n;return e===0||e!==e?e:e<0?-1:1}return r}()},34606:function(L){"use strict";var r=Math.ceil,n=Math.floor;L.exports=Math.trunc||function(){function e(a){var t=+a;return(t>0?n:r)(t)}return e}()},27150:function(L,r,n){"use strict";var e=n(40224),a=n(1156),t=n(4509),o=n(91314).set,f=n(23496),V=n(52426),k=n(6647),S=n(25062),b=n(95823),p=e.MutationObserver||e.WebKitMutationObserver,l=e.document,c=e.process,m=e.Promise,d=a("queueMicrotask"),u,s,i,v,C;if(!d){var g=new f,h=function(){var y,B;for(b&&(y=c.domain)&&y.exit();B=g.get();)try{B()}catch(I){throw g.head&&u(),I}y&&y.enter()};!V&&!b&&!S&&p&&l?(s=!0,i=l.createTextNode(""),new p(h).observe(i,{characterData:!0}),u=function(){i.data=s=!s}):!k&&m&&m.resolve?(v=m.resolve(void 0),v.constructor=m,C=t(v.then,v),u=function(){C(h)}):b?u=function(){c.nextTick(h)}:(o=t(o,e),u=function(){o(h)}),d=function(y){g.head||u(),g.add(y)}}L.exports=d},48532:function(L,r,n){"use strict";var e=n(97361),a=TypeError,t=function(f){var V,k;this.promise=new f(function(S,b){if(V!==void 0||k!==void 0)throw new a("Bad Promise constructor");V=S,k=b}),this.resolve=e(V),this.reject=e(k)};L.exports.f=function(o){return new t(o)}},89140:function(L,r,n){"use strict";var e=n(80969),a=TypeError;L.exports=function(t){if(e(t))throw new a("The method doesn't accept regular expressions");return t}},69079:function(L,r,n){"use strict";var e=n(40224),a=e.isFinite;L.exports=Number.isFinite||function(){function t(o){return typeof o=="number"&&a(o)}return t}()},43283:function(L,r,n){"use strict";var e=n(40224),a=n(41746),t=n(18161),o=n(26602),f=n(35171).trim,V=n(137),k=t("".charAt),S=e.parseFloat,b=e.Symbol,p=b&&b.iterator,l=1/S(V+"-0")!==-1/0||p&&!a(function(){S(Object(p))});L.exports=l?function(){function c(m){var d=f(o(m)),u=S(d);return u===0&&k(d,0)==="-"?-0:u}return c}():S},11540:function(L,r,n){"use strict";var e=n(40224),a=n(41746),t=n(18161),o=n(26602),f=n(35171).trim,V=n(137),k=e.parseInt,S=e.Symbol,b=S&&S.iterator,p=/^[+-]?0x/i,l=t(p.exec),c=k(V+"08")!==8||k(V+"0x16")!==22||b&&!a(function(){k(Object(b))});L.exports=c?function(){function m(d,u){var s=f(o(d));return k(s,u>>>0||(l(p,s)?16:10))}return m}():k},12752:function(L,r,n){"use strict";var e=n(14141),a=n(18161),t=n(62696),o=n(41746),f=n(84913),V=n(34220),k=n(9776),S=n(40076),b=n(26736),p=Object.assign,l=Object.defineProperty,c=a([].concat);L.exports=!p||o(function(){if(e&&p({b:1},p(l({},"a",{enumerable:!0,get:function(){function i(){l(this,"b",{value:3,enumerable:!1})}return i}()}),{b:2})).b!==1)return!0;var m={},d={},u=Symbol("assign detection"),s="abcdefghijklmnopqrst";return m[u]=7,s.split("").forEach(function(i){d[i]=i}),p({},m)[u]!==7||f(p({},d)).join("")!==s})?function(){function m(d,u){for(var s=S(d),i=arguments.length,v=1,C=V.f,g=k.f;i>v;)for(var h=b(arguments[v++]),N=C?c(f(h),C(h)):f(h),y=N.length,B=0,I;y>B;)I=N[B++],(!e||t(g,h,I))&&(s[I]=h[I]);return s}return m}():p},28969:function(L,r,n){"use strict";var e=n(39482),a=n(65854),t=n(90298),o=n(21124),f=n(54562),V=n(85158),k=n(5160),S=">",b="<",p="prototype",l="script",c=k("IE_PROTO"),m=function(){},d=function(g){return b+l+S+g+b+"/"+l+S},u=function(g){g.write(d("")),g.close();var h=g.parentWindow.Object;return g=null,h},s=function(){var g=V("iframe"),h="java"+l+":",N;return g.style.display="none",f.appendChild(g),g.src=String(h),N=g.contentWindow.document,N.open(),N.write(d("document.F=Object")),N.close(),N.F},i,v=function(){try{i=new ActiveXObject("htmlfile")}catch(h){}v=typeof document!="undefined"?document.domain&&i?u(i):s():u(i);for(var g=t.length;g--;)delete v[p][t[g]];return v()};o[c]=!0,L.exports=Object.create||function(){function C(g,h){var N;return g!==null?(m[p]=e(g),N=new m,m[p]=null,N[c]=g):N=v(),h===void 0?N:a.f(N,h)}return C}()},65854:function(L,r,n){"use strict";var e=n(14141),a=n(83411),t=n(56018),o=n(39482),f=n(96812),V=n(84913);r.f=e&&!a?Object.defineProperties:function(){function k(S,b){o(S);for(var p=f(b),l=V(b),c=l.length,m=0,d;c>m;)t.f(S,d=l[m++],p[d]);return S}return k}()},56018:function(L,r,n){"use strict";var e=n(14141),a=n(1606),t=n(83411),o=n(39482),f=n(57640),V=TypeError,k=Object.defineProperty,S=Object.getOwnPropertyDescriptor,b="enumerable",p="configurable",l="writable";r.f=e?t?function(){function c(m,d,u){if(o(m),d=f(d),o(u),typeof m=="function"&&d==="prototype"&&"value"in u&&l in u&&!u[l]){var s=S(m,d);s&&s[l]&&(m[d]=u.value,u={configurable:p in u?u[p]:s[p],enumerable:b in u?u[b]:s[b],writable:!1})}return k(m,d,u)}return c}():k:function(){function c(m,d,u){if(o(m),d=f(d),o(u),a)try{return k(m,d,u)}catch(s){}if("get"in u||"set"in u)throw new V("Accessors not supported");return"value"in u&&(m[d]=u.value),m}return c}()},54168:function(L,r,n){"use strict";var e=n(14141),a=n(62696),t=n(9776),o=n(7539),f=n(96812),V=n(57640),k=n(89458),S=n(1606),b=Object.getOwnPropertyDescriptor;r.f=e?b:function(){function p(l,c){if(l=f(l),c=V(c),S)try{return b(l,c)}catch(m){}if(k(l,c))return o(!a(t.f,l,c),l[c])}return p}()},63797:function(L,r,n){"use strict";var e=n(38817),a=n(96812),t=n(34813).f,o=n(77713),f=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],V=function(S){try{return t(S)}catch(b){return o(f)}};L.exports.f=function(){function k(S){return f&&e(S)==="Window"?V(S):t(a(S))}return k}()},34813:function(L,r,n){"use strict";var e=n(62995),a=n(90298),t=a.concat("length","prototype");r.f=Object.getOwnPropertyNames||function(){function o(f){return e(f,t)}return o}()},34220:function(L,r){"use strict";r.f=Object.getOwnPropertySymbols},31658:function(L,r,n){"use strict";var e=n(89458),a=n(7532),t=n(40076),o=n(5160),f=n(58776),V=o("IE_PROTO"),k=Object,S=k.prototype;L.exports=f?k.getPrototypeOf:function(b){var p=t(b);if(e(p,V))return p[V];var l=p.constructor;return a(l)&&p instanceof l?l.prototype:p instanceof k?S:null}},57975:function(L,r,n){"use strict";var e=n(41746),a=n(56831),t=n(38817),o=n(65693),f=Object.isExtensible,V=e(function(){f(1)});L.exports=V||o?function(){function k(S){return!a(S)||o&&t(S)==="ArrayBuffer"?!1:f?f(S):!0}return k}():f},33314:function(L,r,n){"use strict";var e=n(18161);L.exports=e({}.isPrototypeOf)},62995:function(L,r,n){"use strict";var e=n(18161),a=n(89458),t=n(96812),o=n(64210).indexOf,f=n(21124),V=e([].push);L.exports=function(k,S){var b=t(k),p=0,l=[],c;for(c in b)!a(f,c)&&a(b,c)&&V(l,c);for(;S.length>p;)a(b,c=S[p++])&&(~o(l,c)||V(l,c));return l}},84913:function(L,r,n){"use strict";var e=n(62995),a=n(90298);L.exports=Object.keys||function(){function t(o){return e(o,a)}return t}()},9776:function(L,r){"use strict";var n={}.propertyIsEnumerable,e=Object.getOwnPropertyDescriptor,a=e&&!n.call({1:2},1);r.f=a?function(){function t(o){var f=e(this,o);return!!f&&f.enumerable}return t}():n},33030:function(L,r,n){"use strict";var e=n(11478),a=n(40224),t=n(41746),o=n(53125);L.exports=e||!t(function(){if(!(o&&o<535)){var f=Math.random();__defineSetter__.call(null,f,function(){}),delete a[f]}})},42878:function(L,r,n){"use strict";var e=n(9553),a=n(56831),t=n(91029),o=n(51689);L.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var f=!1,V={},k;try{k=e(Object.prototype,"__proto__","set"),k(V,[]),f=V instanceof Array}catch(S){}return function(){function S(b,p){return t(b),o(p),a(b)&&(f?k(b,p):b.__proto__=p),b}return S}()}():void 0)},97452:function(L,r,n){"use strict";var e=n(14141),a=n(41746),t=n(18161),o=n(31658),f=n(84913),V=n(96812),k=n(9776).f,S=t(k),b=t([].push),p=e&&a(function(){var c=Object.create(null);return c[2]=2,!S(c,2)}),l=function(m){return function(d){for(var u=V(d),s=f(u),i=p&&o(u)===null,v=s.length,C=0,g=[],h;v>C;)h=s[C++],(!e||(i?h in u:S(u,h)))&&b(g,m?[h,u[h]]:u[h]);return g}};L.exports={entries:l(!0),values:l(!1)}},66628:function(L,r,n){"use strict";var e=n(82161),a=n(27806);L.exports=e?{}.toString:function(){function t(){return"[object "+a(this)+"]"}return t}()},14991:function(L,r,n){"use strict";var e=n(62696),a=n(7532),t=n(56831),o=TypeError;L.exports=function(f,V){var k,S;if(V==="string"&&a(k=f.toString)&&!t(S=e(k,f))||a(k=f.valueOf)&&!t(S=e(k,f))||V!=="string"&&a(k=f.toString)&&!t(S=e(k,f)))return S;throw new o("Can't convert object to primitive value")}},93616:function(L,r,n){"use strict";var e=n(40164),a=n(18161),t=n(34813),o=n(34220),f=n(39482),V=a([].concat);L.exports=e("Reflect","ownKeys")||function(){function k(S){var b=t.f(f(S)),p=o.f;return p?V(b,p(S)):b}return k}()},5376:function(L,r,n){"use strict";var e=n(40224);L.exports=e},91114:function(L){"use strict";L.exports=function(r){try{return{error:!1,value:r()}}catch(n){return{error:!0,value:n}}}},49669:function(L,r,n){"use strict";var e=n(40224),a=n(35973),t=n(7532),o=n(95945),f=n(43589),V=n(66266),k=n(27955),S=n(2971),b=n(11478),p=n(82709),l=a&&a.prototype,c=V("species"),m=!1,d=t(e.PromiseRejectionEvent),u=o("Promise",function(){var s=f(a),i=s!==String(a);if(!i&&p===66||b&&!(l.catch&&l.finally))return!0;if(!p||p<51||!/native code/.test(s)){var v=new a(function(h){h(1)}),C=function(N){N(function(){},function(){})},g=v.constructor={};if(g[c]=C,m=v.then(function(){})instanceof C,!m)return!0}return!i&&(k||S)&&!d});L.exports={CONSTRUCTOR:u,REJECTION_EVENT:d,SUBCLASSING:m}},35973:function(L,r,n){"use strict";var e=n(40224);L.exports=e.Promise},43827:function(L,r,n){"use strict";var e=n(39482),a=n(56831),t=n(48532);L.exports=function(o,f){if(e(o),a(f)&&f.constructor===o)return f;var V=t.f(o),k=V.resolve;return k(f),V.promise}},95044:function(L,r,n){"use strict";var e=n(35973),a=n(52019),t=n(49669).CONSTRUCTOR;L.exports=t||!a(function(o){e.all(o).then(void 0,function(){})})},77495:function(L,r,n){"use strict";var e=n(56018).f;L.exports=function(a,t,o){o in a||e(a,o,{configurable:!0,get:function(){function f(){return t[o]}return f}(),set:function(){function f(V){t[o]=V}return f}()})}},23496:function(L){"use strict";var r=function(){this.head=null,this.tail=null};r.prototype={add:function(){function n(e){var a={item:e,next:null},t=this.tail;t?t.next=a:this.head=a,this.tail=a}return n}(),get:function(){function n(){var e=this.head;if(e){var a=this.head=e.next;return a===null&&(this.tail=null),e.item}}return n}()},L.exports=r},35553:function(L,r,n){"use strict";var e=n(62696),a=n(39482),t=n(7532),o=n(38817),f=n(72894),V=TypeError;L.exports=function(k,S){var b=k.exec;if(t(b)){var p=e(b,k,S);return p!==null&&a(p),p}if(o(k)==="RegExp")return e(f,k,S);throw new V("RegExp#exec called on incompatible receiver")}},72894:function(L,r,n){"use strict";var e=n(62696),a=n(18161),t=n(26602),o=n(65844),f=n(1064),V=n(75130),k=n(28969),S=n(35086).get,b=n(89604),p=n(5489),l=V("native-string-replace",String.prototype.replace),c=RegExp.prototype.exec,m=c,d=a("".charAt),u=a("".indexOf),s=a("".replace),i=a("".slice),v=function(){var N=/a/,y=/b*/g;return e(c,N,"a"),e(c,y,"a"),N.lastIndex!==0||y.lastIndex!==0}(),C=f.BROKEN_CARET,g=/()??/.exec("")[1]!==void 0,h=v||g||C||b||p;h&&(m=function(){function N(y){var B=this,I=S(B),w=t(y),T=I.raw,A,x,E,M,D,P,R;if(T)return T.lastIndex=B.lastIndex,A=e(m,T,w),B.lastIndex=T.lastIndex,A;var j=I.groups,F=C&&B.sticky,U=e(o,B),_=B.source,z=0,G=w;if(F&&(U=s(U,"y",""),u(U,"g")===-1&&(U+="g"),G=i(w,B.lastIndex),B.lastIndex>0&&(!B.multiline||B.multiline&&d(w,B.lastIndex-1)!=="\n")&&(_="(?: "+_+")",G=" "+G,z++),x=new RegExp("^(?:"+_+")",U)),g&&(x=new RegExp("^"+_+"$(?!\\s)",U)),v&&(E=B.lastIndex),M=e(c,F?x:B,G),F?M?(M.input=i(M.input,z),M[0]=i(M[0],z),M.index=B.lastIndex,B.lastIndex+=M[0].length):B.lastIndex=0:v&&M&&(B.lastIndex=B.global?M.index+M[0].length:E),g&&M&&M.length>1&&e(l,M[0],x,function(){for(D=1;Db)","g");return o.exec("b").groups.a!=="b"||"b".replace(o,"$c")!=="bc"})},91029:function(L,r,n){"use strict";var e=n(1022),a=TypeError;L.exports=function(t){if(e(t))throw new a("Can't call method on "+t);return t}},1156:function(L,r,n){"use strict";var e=n(40224),a=n(14141),t=Object.getOwnPropertyDescriptor;L.exports=function(o){if(!a)return e[o];var f=t(e,o);return f&&f.value}},37309:function(L){"use strict";L.exports=Object.is||function(){function r(n,e){return n===e?n!==0||1/n===1/e:n!==n&&e!==e}return r}()},83827:function(L,r,n){"use strict";var e=n(40224),a=n(70918),t=n(7532),o=n(2178),f=n(15837),V=n(77713),k=n(22789),S=e.Function,b=/MSIE .\./.test(f)||o&&function(){var p=e.Bun.version.split(".");return p.length<3||p[0]==="0"&&(p[1]<3||p[1]==="3"&&p[2]==="0")}();L.exports=function(p,l){var c=l?2:1;return b?function(m,d){var u=k(arguments.length,1)>c,s=t(m)?m:S(m),i=u?V(arguments,c):[],v=u?function(){a(s,this,i)}:s;return l?p(v,d):p(v)}:p}},67420:function(L,r,n){"use strict";var e=n(40164),a=n(10069),t=n(66266),o=n(14141),f=t("species");L.exports=function(V){var k=e(V);o&&k&&!k[f]&&a(k,f,{configurable:!0,get:function(){function S(){return this}return S}()})}},94234:function(L,r,n){"use strict";var e=n(56018).f,a=n(89458),t=n(66266),o=t("toStringTag");L.exports=function(f,V,k){f&&!k&&(f=f.prototype),f&&!a(f,o)&&e(f,o,{configurable:!0,value:V})}},5160:function(L,r,n){"use strict";var e=n(75130),a=n(33345),t=e("keys");L.exports=function(o){return t[o]||(t[o]=a(o))}},95046:function(L,r,n){"use strict";var e=n(11478),a=n(40224),t=n(93422),o="__core-js_shared__",f=L.exports=a[o]||t(o,{});(f.versions||(f.versions=[])).push({version:"3.36.1",mode:e?"pure":"global",copyright:"\xA9 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.36.1/LICENSE",source:"https://github.com/zloirock/core-js"})},75130:function(L,r,n){"use strict";var e=n(95046);L.exports=function(a,t){return e[a]||(e[a]=t||{})}},78412:function(L,r,n){"use strict";var e=n(39482),a=n(76833),t=n(1022),o=n(66266),f=o("species");L.exports=function(V,k){var S=e(V).constructor,b;return S===void 0||t(b=e(S)[f])?k:a(b)}},32086:function(L,r,n){"use strict";var e=n(41746);L.exports=function(a){return e(function(){var t=""[a]('"');return t!==t.toLowerCase()||t.split('"').length>3})}},56852:function(L,r,n){"use strict";var e=n(18161),a=n(74952),t=n(26602),o=n(91029),f=e("".charAt),V=e("".charCodeAt),k=e("".slice),S=function(p){return function(l,c){var m=t(o(l)),d=a(c),u=m.length,s,i;return d<0||d>=u?p?"":void 0:(s=V(m,d),s<55296||s>56319||d+1===u||(i=V(m,d+1))<56320||i>57343?p?f(m,d):s:p?k(m,d,d+2):(s-55296<<10)+(i-56320)+65536)}};L.exports={codeAt:S(!1),charAt:S(!0)}},33038:function(L,r,n){"use strict";var e=n(15837);L.exports=/Version\/10(?:\.\d+){1,2}(?: [\w./]+)?(?: Mobile\/\w+)? Safari\//.test(e)},34086:function(L,r,n){"use strict";var e=n(18161),a=n(10475),t=n(26602),o=n(84948),f=n(91029),V=e(o),k=e("".slice),S=Math.ceil,b=function(l){return function(c,m,d){var u=t(f(c)),s=a(m),i=u.length,v=d===void 0?" ":t(d),C,g;return s<=i||v===""?u:(C=s-i,g=V(v,S(C/v.length)),g.length>C&&(g=k(g,0,C)),l?u+g:g+u)}};L.exports={start:b(!1),end:b(!0)}},84948:function(L,r,n){"use strict";var e=n(74952),a=n(26602),t=n(91029),o=RangeError;L.exports=function(){function f(V){var k=a(t(this)),S="",b=e(V);if(b<0||b===1/0)throw new o("Wrong number of repetitions");for(;b>0;(b>>>=1)&&(k+=k))b&1&&(S+=k);return S}return f}()},11775:function(L,r,n){"use strict";var e=n(35171).end,a=n(93817);L.exports=a("trimEnd")?function(){function t(){return e(this)}return t}():"".trimEnd},93817:function(L,r,n){"use strict";var e=n(26463).PROPER,a=n(41746),t=n(137),o="\u200B\x85\u180E";L.exports=function(f){return a(function(){return!!t[f]()||o[f]()!==o||e&&t[f].name!==f})}},26402:function(L,r,n){"use strict";var e=n(35171).start,a=n(93817);L.exports=a("trimStart")?function(){function t(){return e(this)}return t}():"".trimStart},35171:function(L,r,n){"use strict";var e=n(18161),a=n(91029),t=n(26602),o=n(137),f=e("".replace),V=RegExp("^["+o+"]+"),k=RegExp("(^|[^"+o+"])["+o+"]+$"),S=function(p){return function(l){var c=t(a(l));return p&1&&(c=f(c,V,"")),p&2&&(c=f(c,k,"$1")),c}};L.exports={start:S(1),end:S(2),trim:S(3)}},70640:function(L,r,n){"use strict";var e=n(82709),a=n(41746),t=n(40224),o=t.String;L.exports=!!Object.getOwnPropertySymbols&&!a(function(){var f=Symbol("symbol detection");return!o(f)||!(Object(f)instanceof Symbol)||!Symbol.sham&&e&&e<41})},75429:function(L,r,n){"use strict";var e=n(62696),a=n(40164),t=n(66266),o=n(59173);L.exports=function(){var f=a("Symbol"),V=f&&f.prototype,k=V&&V.valueOf,S=t("toPrimitive");V&&!V[S]&&o(V,S,function(b){return e(k,this)},{arity:1})}},80353:function(L,r,n){"use strict";var e=n(70640);L.exports=e&&!!Symbol.for&&!!Symbol.keyFor},91314:function(L,r,n){"use strict";var e=n(40224),a=n(70918),t=n(4509),o=n(7532),f=n(89458),V=n(41746),k=n(54562),S=n(77713),b=n(85158),p=n(22789),l=n(52426),c=n(95823),m=e.setImmediate,d=e.clearImmediate,u=e.process,s=e.Dispatch,i=e.Function,v=e.MessageChannel,C=e.String,g=0,h={},N="onreadystatechange",y,B,I,w;V(function(){y=e.location});var T=function(D){if(f(h,D)){var P=h[D];delete h[D],P()}},A=function(D){return function(){T(D)}},x=function(D){T(D.data)},E=function(D){e.postMessage(C(D),y.protocol+"//"+y.host)};(!m||!d)&&(m=function(){function M(D){p(arguments.length,1);var P=o(D)?D:i(D),R=S(arguments,1);return h[++g]=function(){a(P,void 0,R)},B(g),g}return M}(),d=function(){function M(D){delete h[D]}return M}(),c?B=function(D){u.nextTick(A(D))}:s&&s.now?B=function(D){s.now(A(D))}:v&&!l?(I=new v,w=I.port2,I.port1.onmessage=x,B=t(w.postMessage,w)):e.addEventListener&&o(e.postMessage)&&!e.importScripts&&y&&y.protocol!=="file:"&&!V(E)?(B=E,e.addEventListener("message",x,!1)):N in b("script")?B=function(D){k.appendChild(b("script"))[N]=function(){k.removeChild(this),T(D)}}:B=function(D){setTimeout(A(D),0)}),L.exports={set:m,clear:d}},37497:function(L,r,n){"use strict";var e=n(18161);L.exports=e(1 .valueOf)},74067:function(L,r,n){"use strict";var e=n(74952),a=Math.max,t=Math.min;L.exports=function(o,f){var V=e(o);return V<0?a(V+f,0):t(V,f)}},757:function(L,r,n){"use strict";var e=n(4370),a=TypeError;L.exports=function(t){var o=e(t,"number");if(typeof o=="number")throw new a("Can't convert number to bigint");return BigInt(o)}},90835:function(L,r,n){"use strict";var e=n(74952),a=n(10475),t=RangeError;L.exports=function(o){if(o===void 0)return 0;var f=e(o),V=a(f);if(f!==V)throw new t("Wrong length or index");return V}},96812:function(L,r,n){"use strict";var e=n(26736),a=n(91029);L.exports=function(t){return e(a(t))}},74952:function(L,r,n){"use strict";var e=n(34606);L.exports=function(a){var t=+a;return t!==t||t===0?0:e(t)}},10475:function(L,r,n){"use strict";var e=n(74952),a=Math.min;L.exports=function(t){var o=e(t);return o>0?a(o,9007199254740991):0}},40076:function(L,r,n){"use strict";var e=n(91029),a=Object;L.exports=function(t){return a(e(t))}},65264:function(L,r,n){"use strict";var e=n(43627),a=RangeError;L.exports=function(t,o){var f=e(t);if(f%o)throw new a("Wrong offset");return f}},43627:function(L,r,n){"use strict";var e=n(74952),a=RangeError;L.exports=function(t){var o=e(t);if(o<0)throw new a("The argument can't be less than 0");return o}},4370:function(L,r,n){"use strict";var e=n(62696),a=n(56831),t=n(74352),o=n(4817),f=n(14991),V=n(66266),k=TypeError,S=V("toPrimitive");L.exports=function(b,p){if(!a(b)||t(b))return b;var l=o(b,S),c;if(l){if(p===void 0&&(p="default"),c=e(l,b,p),!a(c)||t(c))return c;throw new k("Can't convert object to primitive value")}return p===void 0&&(p="number"),f(b,p)}},57640:function(L,r,n){"use strict";var e=n(4370),a=n(74352);L.exports=function(t){var o=e(t,"string");return a(o)?o:o+""}},82161:function(L,r,n){"use strict";var e=n(66266),a=e("toStringTag"),t={};t[a]="z",L.exports=String(t)==="[object z]"},26602:function(L,r,n){"use strict";var e=n(27806),a=String;L.exports=function(t){if(e(t)==="Symbol")throw new TypeError("Cannot convert a Symbol value to a string");return a(t)}},78828:function(L){"use strict";var r=Math.round;L.exports=function(n){var e=r(n);return e<0?0:e>255?255:e&255}},62518:function(L){"use strict";var r=String;L.exports=function(n){try{return r(n)}catch(e){return"Object"}}},12218:function(L,r,n){"use strict";var e=n(77549),a=n(40224),t=n(62696),o=n(14141),f=n(66220),V=n(72951),k=n(46185),S=n(19870),b=n(7539),p=n(16216),l=n(57696),c=n(10475),m=n(90835),d=n(65264),u=n(78828),s=n(57640),i=n(89458),v=n(27806),C=n(56831),g=n(74352),h=n(28969),N=n(33314),y=n(42878),B=n(34813).f,I=n(7996),w=n(67480).forEach,T=n(67420),A=n(10069),x=n(56018),E=n(54168),M=n(6967),D=n(35086),P=n(2566),R=D.get,j=D.set,F=D.enforce,U=x.f,_=E.f,z=a.RangeError,G=k.ArrayBuffer,X=G.prototype,Y=k.DataView,J=V.NATIVE_ARRAY_BUFFER_VIEWS,ie=V.TYPED_ARRAY_TAG,ae=V.TypedArray,fe=V.TypedArrayPrototype,pe=V.isTypedArray,be="BYTES_PER_ELEMENT",te="Wrong length",Q=function(ke,Be){A(ke,Be,{configurable:!0,get:function(){function ve(){return R(this)[Be]}return ve}()})},ne=function(ke){var Be;return N(X,ke)||(Be=v(ke))==="ArrayBuffer"||Be==="SharedArrayBuffer"},me=function(ke,Be){return pe(ke)&&!g(Be)&&Be in ke&&l(+Be)&&Be>=0},ce=function(){function oe(ke,Be){return Be=s(Be),me(ke,Be)?b(2,ke[Be]):_(ke,Be)}return oe}(),ue=function(){function oe(ke,Be,ve){return Be=s(Be),me(ke,Be)&&C(ve)&&i(ve,"value")&&!i(ve,"get")&&!i(ve,"set")&&!ve.configurable&&(!i(ve,"writable")||ve.writable)&&(!i(ve,"enumerable")||ve.enumerable)?(ke[Be]=ve.value,ke):U(ke,Be,ve)}return oe}();o?(J||(E.f=ce,x.f=ue,Q(fe,"buffer"),Q(fe,"byteOffset"),Q(fe,"byteLength"),Q(fe,"length")),e({target:"Object",stat:!0,forced:!J},{getOwnPropertyDescriptor:ce,defineProperty:ue}),L.exports=function(oe,ke,Be){var ve=oe.match(/\d+/)[0]/8,ge=oe+(Be?"Clamped":"")+"Array",ye="get"+oe,Ve="set"+oe,Ie=a[ge],we=Ie,xe=we&&we.prototype,Oe={},We=function(se,Ce){var Ae=R(se);return Ae.view[ye](Ce*ve+Ae.byteOffset,!0)},Ne=function(se,Ce,Ae){var De=R(se);De.view[Ve](Ce*ve+De.byteOffset,Be?u(Ae):Ae,!0)},re=function(se,Ce){U(se,Ce,{get:function(){function Ae(){return We(this,Ce)}return Ae}(),set:function(){function Ae(De){return Ne(this,Ce,De)}return Ae}(),enumerable:!0})};J?f&&(we=ke(function(he,se,Ce,Ae){return S(he,xe),P(function(){return C(se)?ne(se)?Ae!==void 0?new Ie(se,d(Ce,ve),Ae):Ce!==void 0?new Ie(se,d(Ce,ve)):new Ie(se):pe(se)?M(we,se):t(I,we,se):new Ie(m(se))}(),he,we)}),y&&y(we,ae),w(B(Ie),function(he){he in we||p(we,he,Ie[he])}),we.prototype=xe):(we=ke(function(he,se,Ce,Ae){S(he,xe);var De=0,je=0,_e,Ue,Ke;if(!C(se))Ke=m(se),Ue=Ke*ve,_e=new G(Ue);else if(ne(se)){_e=se,je=d(Ce,ve);var $e=se.byteLength;if(Ae===void 0){if($e%ve)throw new z(te);if(Ue=$e-je,Ue<0)throw new z(te)}else if(Ue=c(Ae)*ve,Ue+je>$e)throw new z(te);Ke=Ue/ve}else return pe(se)?M(we,se):t(I,we,se);for(j(he,{buffer:_e,byteOffset:je,byteLength:Ue,length:Ke,view:new Y(_e)});De1?arguments[1]:void 0,v=i!==void 0,C=k(u),g,h,N,y,B,I,w,T;if(C&&!S(C))for(w=V(u,C),T=w.next,u=[];!(I=a(T,w)).done;)u.push(I.value);for(v&&s>2&&(i=e(i,arguments[2])),h=f(u),N=new(p(d))(h),y=b(N),g=0;h>g;g++)B=v?i(u[g],g):u[g],N[g]=y?l(B):+B;return N}return c}()},489:function(L,r,n){"use strict";var e=n(72951),a=n(78412),t=e.aTypedArrayConstructor,o=e.getTypedArrayConstructor;L.exports=function(f){return t(a(f,o(f)))}},33345:function(L,r,n){"use strict";var e=n(18161),a=0,t=Math.random(),o=e(1 .toString);L.exports=function(f){return"Symbol("+(f===void 0?"":f)+")_"+o(++a+t,36)}},81457:function(L,r,n){"use strict";var e=n(70640);L.exports=e&&!Symbol.sham&&typeof Symbol.iterator=="symbol"},83411:function(L,r,n){"use strict";var e=n(14141),a=n(41746);L.exports=e&&a(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42})},22789:function(L){"use strict";var r=TypeError;L.exports=function(n,e){if(n=51||!a(function(){var i=[];return i[m]=!1,i.concat()[0]!==i}),u=function(v){if(!o(v))return!1;var C=v[m];return C!==void 0?!!C:t(v)},s=!d||!p("concat");e({target:"Array",proto:!0,arity:1,forced:s},{concat:function(){function i(v){var C=f(this),g=b(C,0),h=0,N,y,B,I,w;for(N=-1,B=arguments.length;N1?arguments[1]:void 0)}return f}()})},24974:function(L,r,n){"use strict";var e=n(77549),a=n(59942),t=n(91138);e({target:"Array",proto:!0},{fill:a}),t("fill")},6297:function(L,r,n){"use strict";var e=n(77549),a=n(67480).filter,t=n(55114),o=t("filter");e({target:"Array",proto:!0,forced:!o},{filter:function(){function f(V){return a(this,V,arguments.length>1?arguments[1]:void 0)}return f}()})},35173:function(L,r,n){"use strict";var e=n(77549),a=n(67480).findIndex,t=n(91138),o="findIndex",f=!0;o in[]&&Array(1)[o](function(){f=!1}),e({target:"Array",proto:!0,forced:f},{findIndex:function(){function V(k){return a(this,k,arguments.length>1?arguments[1]:void 0)}return V}()}),t(o)},5364:function(L,r,n){"use strict";var e=n(77549),a=n(67480).find,t=n(91138),o="find",f=!0;o in[]&&Array(1)[o](function(){f=!1}),e({target:"Array",proto:!0,forced:f},{find:function(){function V(k){return a(this,k,arguments.length>1?arguments[1]:void 0)}return V}()}),t(o)},88707:function(L,r,n){"use strict";var e=n(77549),a=n(68864),t=n(97361),o=n(40076),f=n(8333),V=n(32878);e({target:"Array",proto:!0},{flatMap:function(){function k(S){var b=o(this),p=f(b),l;return t(S),l=V(b,0),l.length=a(l,b,b,p,0,1,S,arguments.length>1?arguments[1]:void 0),l}return k}()})},16576:function(L,r,n){"use strict";var e=n(77549),a=n(68864),t=n(40076),o=n(8333),f=n(74952),V=n(32878);e({target:"Array",proto:!0},{flat:function(){function k(){var S=arguments.length?arguments[0]:void 0,b=t(this),p=o(b),l=V(b,0);return l.length=a(l,b,b,p,0,S===void 0?1:f(S)),l}return k}()})},21508:function(L,r,n){"use strict";var e=n(77549),a=n(75420);e({target:"Array",proto:!0,forced:[].forEach!==a},{forEach:a})},86339:function(L,r,n){"use strict";var e=n(77549),a=n(80363),t=n(52019),o=!t(function(f){Array.from(f)});e({target:"Array",stat:!0,forced:o},{from:a})},81850:function(L,r,n){"use strict";var e=n(77549),a=n(64210).includes,t=n(41746),o=n(91138),f=t(function(){return!Array(1).includes()});e({target:"Array",proto:!0,forced:f},{includes:function(){function V(k){return a(this,k,arguments.length>1?arguments[1]:void 0)}return V}()}),o("includes")},98661:function(L,r,n){"use strict";var e=n(77549),a=n(85067),t=n(64210).indexOf,o=n(42309),f=a([].indexOf),V=!!f&&1/f([1],1,-0)<0,k=V||!o("indexOf");e({target:"Array",proto:!0,forced:k},{indexOf:function(){function S(b){var p=arguments.length>1?arguments[1]:void 0;return V?f(this,b,p)||0:t(this,b,p)}return S}()})},13431:function(L,r,n){"use strict";var e=n(77549),a=n(62367);e({target:"Array",stat:!0},{isArray:a})},65809:function(L,r,n){"use strict";var e=n(96812),a=n(91138),t=n(90604),o=n(35086),f=n(56018).f,V=n(2449),k=n(77056),S=n(11478),b=n(14141),p="Array Iterator",l=o.set,c=o.getterFor(p);L.exports=V(Array,"Array",function(d,u){l(this,{type:p,target:e(d),index:0,kind:u})},function(){var d=c(this),u=d.target,s=d.index++;if(!u||s>=u.length)return d.target=void 0,k(void 0,!0);switch(d.kind){case"keys":return k(s,!1);case"values":return k(u[s],!1)}return k([s,u[s]],!1)},"values");var m=t.Arguments=t.Array;if(a("keys"),a("values"),a("entries"),!S&&b&&m.name!=="values")try{f(m,"name",{value:"values"})}catch(d){}},8611:function(L,r,n){"use strict";var e=n(77549),a=n(18161),t=n(26736),o=n(96812),f=n(42309),V=a([].join),k=t!==Object,S=k||!f("join",",");e({target:"Array",proto:!0,forced:S},{join:function(){function b(p){return V(o(this),p===void 0?",":p)}return b}()})},97246:function(L,r,n){"use strict";var e=n(77549),a=n(16934);e({target:"Array",proto:!0,forced:a!==[].lastIndexOf},{lastIndexOf:a})},48741:function(L,r,n){"use strict";var e=n(77549),a=n(67480).map,t=n(55114),o=t("map");e({target:"Array",proto:!0,forced:!o},{map:function(){function f(V){return a(this,V,arguments.length>1?arguments[1]:void 0)}return f}()})},90446:function(L,r,n){"use strict";var e=n(77549),a=n(41746),t=n(60354),o=n(12913),f=Array,V=a(function(){function k(){}return!(f.of.call(k)instanceof k)});e({target:"Array",stat:!0,forced:V},{of:function(){function k(){for(var S=0,b=arguments.length,p=new(t(this)?this:f)(b);b>S;)o(p,S,arguments[S++]);return p.length=b,p}return k}()})},61902:function(L,r,n){"use strict";var e=n(77549),a=n(98405).right,t=n(42309),o=n(82709),f=n(95823),V=!f&&o>79&&o<83,k=V||!t("reduceRight");e({target:"Array",proto:!0,forced:k},{reduceRight:function(){function S(b){return a(this,b,arguments.length,arguments.length>1?arguments[1]:void 0)}return S}()})},509:function(L,r,n){"use strict";var e=n(77549),a=n(98405).left,t=n(42309),o=n(82709),f=n(95823),V=!f&&o>79&&o<83,k=V||!t("reduce");e({target:"Array",proto:!0,forced:k},{reduce:function(){function S(b){var p=arguments.length;return a(this,b,p,p>1?arguments[1]:void 0)}return S}()})},96149:function(L,r,n){"use strict";var e=n(77549),a=n(18161),t=n(62367),o=a([].reverse),f=[1,2];e({target:"Array",proto:!0,forced:String(f)===String(f.reverse())},{reverse:function(){function V(){return t(this)&&(this.length=this.length),o(this)}return V}()})},66617:function(L,r,n){"use strict";var e=n(77549),a=n(62367),t=n(60354),o=n(56831),f=n(74067),V=n(8333),k=n(96812),S=n(12913),b=n(66266),p=n(55114),l=n(77713),c=p("slice"),m=b("species"),d=Array,u=Math.max;e({target:"Array",proto:!0,forced:!c},{slice:function(){function s(i,v){var C=k(this),g=V(C),h=f(i,g),N=f(v===void 0?g:v,g),y,B,I;if(a(C)&&(y=C.constructor,t(y)&&(y===d||a(y.prototype))?y=void 0:o(y)&&(y=y[m],y===null&&(y=void 0)),y===d||y===void 0))return l(C,h,N);for(B=new(y===void 0?d:y)(u(N-h,0)),I=0;h1?arguments[1]:void 0)}return f}()})},56855:function(L,r,n){"use strict";var e=n(77549),a=n(18161),t=n(97361),o=n(40076),f=n(8333),V=n(58937),k=n(26602),S=n(41746),b=n(44815),p=n(42309),l=n(49847),c=n(56605),m=n(82709),d=n(53125),u=[],s=a(u.sort),i=a(u.push),v=S(function(){u.sort(void 0)}),C=S(function(){u.sort(null)}),g=p("sort"),h=!S(function(){if(m)return m<70;if(!(l&&l>3)){if(c)return!0;if(d)return d<603;var B="",I,w,T,A;for(I=65;I<76;I++){switch(w=String.fromCharCode(I),I){case 66:case 69:case 70:case 72:T=3;break;case 68:case 71:T=4;break;default:T=2}for(A=0;A<47;A++)u.push({k:w+A,v:T})}for(u.sort(function(x,E){return E.v-x.v}),A=0;Ak(T)?1:-1}};e({target:"Array",proto:!0,forced:N},{sort:function(){function B(I){I!==void 0&&t(I);var w=o(this);if(h)return I===void 0?s(w):s(w,I);var T=[],A=f(w),x,E;for(E=0;EC-y+N;I--)p(v,I-1)}else if(N>y)for(I=C-y;I>g;I--)w=I+y-1,T=I+N-1,w in v?v[T]=v[w]:p(v,T);for(I=0;I9490626562425156e-8?o(p)+V:a(p-1+f(p-1)*f(p+1))}return S}()})},86551:function(L,r,n){"use strict";var e=n(77549),a=Math.asinh,t=Math.log,o=Math.sqrt;function f(k){var S=+k;return!isFinite(S)||S===0?S:S<0?-f(-S):t(S+o(S*S+1))}var V=!(a&&1/a(0)>0);e({target:"Math",stat:!0,forced:V},{asinh:f})},10940:function(L,r,n){"use strict";var e=n(77549),a=Math.atanh,t=Math.log,o=!(a&&1/a(-0)<0);e({target:"Math",stat:!0,forced:o},{atanh:function(){function f(V){var k=+V;return k===0?k:t((1+k)/(1-k))/2}return f}()})},73763:function(L,r,n){"use strict";var e=n(77549),a=n(54307),t=Math.abs,o=Math.pow;e({target:"Math",stat:!0},{cbrt:function(){function f(V){var k=+V;return a(k)*o(t(k),.3333333333333333)}return f}()})},3372:function(L,r,n){"use strict";var e=n(77549),a=Math.floor,t=Math.log,o=Math.LOG2E;e({target:"Math",stat:!0},{clz32:function(){function f(V){var k=V>>>0;return k?31-a(t(k+.5)*o):32}return f}()})},51629:function(L,r,n){"use strict";var e=n(77549),a=n(32813),t=Math.cosh,o=Math.abs,f=Math.E,V=!t||t(710)===1/0;e({target:"Math",stat:!0,forced:V},{cosh:function(){function k(S){var b=a(o(S)-1)+1;return(b+1/(b*f*f))*(f/2)}return k}()})},69727:function(L,r,n){"use strict";var e=n(77549),a=n(32813);e({target:"Math",stat:!0,forced:a!==Math.expm1},{expm1:a})},27482:function(L,r,n){"use strict";var e=n(77549),a=n(75988);e({target:"Math",stat:!0},{fround:a})},7108:function(L,r,n){"use strict";var e=n(77549),a=Math.hypot,t=Math.abs,o=Math.sqrt,f=!!a&&a(1/0,NaN)!==1/0;e({target:"Math",stat:!0,arity:2,forced:f},{hypot:function(){function V(k,S){for(var b=0,p=0,l=arguments.length,c=0,m,d;p0?(d=m/c,b+=d*d):b+=m;return c===1/0?1/0:c*o(b)}return V}()})},4115:function(L,r,n){"use strict";var e=n(77549),a=n(41746),t=Math.imul,o=a(function(){return t(4294967295,5)!==-5||t.length!==2});e({target:"Math",stat:!0,forced:o},{imul:function(){function f(V,k){var S=65535,b=+V,p=+k,l=S&b,c=S&p;return 0|l*c+((S&b>>>16)*c+l*(S&p>>>16)<<16>>>0)}return f}()})},63953:function(L,r,n){"use strict";var e=n(77549),a=n(53271);e({target:"Math",stat:!0},{log10:a})},71377:function(L,r,n){"use strict";var e=n(77549),a=n(69143);e({target:"Math",stat:!0},{log1p:a})},63956:function(L,r,n){"use strict";var e=n(77549),a=Math.log,t=Math.LN2;e({target:"Math",stat:!0},{log2:function(){function o(f){return a(f)/t}return o}()})},90037:function(L,r,n){"use strict";var e=n(77549),a=n(54307);e({target:"Math",stat:!0},{sign:a})},46818:function(L,r,n){"use strict";var e=n(77549),a=n(41746),t=n(32813),o=Math.abs,f=Math.exp,V=Math.E,k=a(function(){return Math.sinh(-2e-17)!==-2e-17});e({target:"Math",stat:!0,forced:k},{sinh:function(){function S(b){var p=+b;return o(p)<1?(t(p)-t(-p))/2:(f(p-1)-f(-p-1))*(V/2)}return S}()})},26681:function(L,r,n){"use strict";var e=n(77549),a=n(32813),t=Math.exp;e({target:"Math",stat:!0},{tanh:function(){function o(f){var V=+f,k=a(V),S=a(-V);return k===1/0?1:S===1/0?-1:(k-S)/(t(V)+t(-V))}return o}()})},83646:function(L,r,n){"use strict";var e=n(94234);e(Math,"Math",!0)},28876:function(L,r,n){"use strict";var e=n(77549),a=n(34606);e({target:"Math",stat:!0},{trunc:a})},36385:function(L,r,n){"use strict";var e=n(77549),a=n(11478),t=n(14141),o=n(40224),f=n(5376),V=n(18161),k=n(95945),S=n(89458),b=n(2566),p=n(33314),l=n(74352),c=n(4370),m=n(41746),d=n(34813).f,u=n(54168).f,s=n(56018).f,i=n(37497),v=n(35171).trim,C="Number",g=o[C],h=f[C],N=g.prototype,y=o.TypeError,B=V("".slice),I=V("".charCodeAt),w=function(P){var R=c(P,"number");return typeof R=="bigint"?R:T(R)},T=function(P){var R=c(P,"number"),j,F,U,_,z,G,X,Y;if(l(R))throw new y("Cannot convert a Symbol value to a number");if(typeof R=="string"&&R.length>2){if(R=v(R),j=I(R,0),j===43||j===45){if(F=I(R,2),F===88||F===120)return NaN}else if(j===48){switch(I(R,1)){case 66:case 98:U=2,_=49;break;case 79:case 111:U=8,_=55;break;default:return+R}for(z=B(R,2),G=z.length,X=0;X_)return NaN;return parseInt(z,U)}}return+R},A=k(C,!g(" 0o1")||!g("0b1")||g("+0x1")),x=function(P){return p(N,P)&&m(function(){i(P)})},E=function(){function D(P){var R=arguments.length<1?0:g(w(P));return x(this)?b(Object(R),this,E):R}return D}();E.prototype=N,A&&!a&&(N.constructor=E),e({global:!0,constructor:!0,wrap:!0,forced:A},{Number:E});var M=function(P,R){for(var j=t?d(R):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),F=0,U;j.length>F;F++)S(R,U=j[F])&&!S(P,U)&&s(P,U,u(R,U))};a&&h&&M(f[C],h),(A||a)&&M(f[C],g)},84295:function(L,r,n){"use strict";var e=n(77549);e({target:"Number",stat:!0,nonConfigurable:!0,nonWritable:!0},{EPSILON:Math.pow(2,-52)})},59785:function(L,r,n){"use strict";var e=n(77549),a=n(69079);e({target:"Number",stat:!0},{isFinite:a})},8846:function(L,r,n){"use strict";var e=n(77549),a=n(57696);e({target:"Number",stat:!0},{isInteger:a})},50237:function(L,r,n){"use strict";var e=n(77549);e({target:"Number",stat:!0},{isNaN:function(){function a(t){return t!==t}return a}()})},6436:function(L,r,n){"use strict";var e=n(77549),a=n(57696),t=Math.abs;e({target:"Number",stat:!0},{isSafeInteger:function(){function o(f){return a(f)&&t(f)<=9007199254740991}return o}()})},68286:function(L,r,n){"use strict";var e=n(77549);e({target:"Number",stat:!0,nonConfigurable:!0,nonWritable:!0},{MAX_SAFE_INTEGER:9007199254740991})},23940:function(L,r,n){"use strict";var e=n(77549);e({target:"Number",stat:!0,nonConfigurable:!0,nonWritable:!0},{MIN_SAFE_INTEGER:-9007199254740991})},82425:function(L,r,n){"use strict";var e=n(77549),a=n(43283);e({target:"Number",stat:!0,forced:Number.parseFloat!==a},{parseFloat:a})},82118:function(L,r,n){"use strict";var e=n(77549),a=n(11540);e({target:"Number",stat:!0,forced:Number.parseInt!==a},{parseInt:a})},7419:function(L,r,n){"use strict";var e=n(77549),a=n(18161),t=n(74952),o=n(37497),f=n(84948),V=n(41746),k=RangeError,S=String,b=Math.floor,p=a(f),l=a("".slice),c=a(1 .toFixed),m=function C(g,h,N){return h===0?N:h%2===1?C(g,h-1,N*g):C(g*g,h/2,N)},d=function(g){for(var h=0,N=g;N>=4096;)h+=12,N/=4096;for(;N>=2;)h+=1,N/=2;return h},u=function(g,h,N){for(var y=-1,B=N;++y<6;)B+=h*g[y],g[y]=B%1e7,B=b(B/1e7)},s=function(g,h){for(var N=6,y=0;--N>=0;)y+=g[N],g[N]=b(y/h),y=y%h*1e7},i=function(g){for(var h=6,N="";--h>=0;)if(N!==""||h===0||g[h]!==0){var y=S(g[h]);N=N===""?y:N+p("0",7-y.length)+y}return N},v=V(function(){return c(8e-5,3)!=="0.000"||c(.9,0)!=="1"||c(1.255,2)!=="1.25"||c(0xde0b6b3a7640080,0)!=="1000000000000000128"})||!V(function(){c({})});e({target:"Number",proto:!0,forced:v},{toFixed:function(){function C(g){var h=o(this),N=t(g),y=[0,0,0,0,0,0],B="",I="0",w,T,A,x;if(N<0||N>20)throw new k("Incorrect fraction digits");if(h!==h)return"NaN";if(h<=-1e21||h>=1e21)return S(h);if(h<0&&(B="-",h=-h),h>1e-21)if(w=d(h*m(2,69,1))-69,T=w<0?h*m(2,-w,1):h/m(2,w,1),T*=4503599627370496,w=52-w,w>0){for(u(y,0,T),A=N;A>=7;)u(y,1e7,0),A-=7;for(u(y,m(10,A,1),0),A=w-1;A>=23;)s(y,8388608),A-=23;s(y,1<0?(x=I.length,I=B+(x<=N?"0."+p("0",N-x)+I:l(I,0,x-N)+"."+l(I,x-N))):I=B+I,I}return C}()})},42409:function(L,r,n){"use strict";var e=n(77549),a=n(18161),t=n(41746),o=n(37497),f=a(1 .toPrecision),V=t(function(){return f(1,void 0)!=="1"})||!t(function(){f({})});e({target:"Number",proto:!0,forced:V},{toPrecision:function(){function k(S){return S===void 0?f(o(this)):f(o(this),S)}return k}()})},29002:function(L,r,n){"use strict";var e=n(77549),a=n(12752);e({target:"Object",stat:!0,arity:2,forced:Object.assign!==a},{assign:a})},85795:function(L,r,n){"use strict";var e=n(77549),a=n(14141),t=n(28969);e({target:"Object",stat:!0,sham:!a},{create:t})},74722:function(L,r,n){"use strict";var e=n(77549),a=n(14141),t=n(33030),o=n(97361),f=n(40076),V=n(56018);a&&e({target:"Object",proto:!0,forced:t},{__defineGetter__:function(){function k(S,b){V.f(f(this),S,{get:o(b),enumerable:!0,configurable:!0})}return k}()})},5300:function(L,r,n){"use strict";var e=n(77549),a=n(14141),t=n(65854).f;e({target:"Object",stat:!0,forced:Object.defineProperties!==t,sham:!a},{defineProperties:t})},85684:function(L,r,n){"use strict";var e=n(77549),a=n(14141),t=n(56018).f;e({target:"Object",stat:!0,forced:Object.defineProperty!==t,sham:!a},{defineProperty:t})},36014:function(L,r,n){"use strict";var e=n(77549),a=n(14141),t=n(33030),o=n(97361),f=n(40076),V=n(56018);a&&e({target:"Object",proto:!0,forced:t},{__defineSetter__:function(){function k(S,b){V.f(f(this),S,{set:o(b),enumerable:!0,configurable:!0})}return k}()})},98551:function(L,r,n){"use strict";var e=n(77549),a=n(97452).entries;e({target:"Object",stat:!0},{entries:function(){function t(o){return a(o)}return t}()})},66288:function(L,r,n){"use strict";var e=n(77549),a=n(56255),t=n(41746),o=n(56831),f=n(29126).onFreeze,V=Object.freeze,k=t(function(){V(1)});e({target:"Object",stat:!0,forced:k,sham:!a},{freeze:function(){function S(b){return V&&o(b)?V(f(b)):b}return S}()})},26862:function(L,r,n){"use strict";var e=n(77549),a=n(281),t=n(12913);e({target:"Object",stat:!0},{fromEntries:function(){function o(f){var V={};return a(f,function(k,S){t(V,k,S)},{AS_ENTRIES:!0}),V}return o}()})},78686:function(L,r,n){"use strict";var e=n(77549),a=n(41746),t=n(96812),o=n(54168).f,f=n(14141),V=!f||a(function(){o(1)});e({target:"Object",stat:!0,forced:V,sham:!f},{getOwnPropertyDescriptor:function(){function k(S,b){return o(t(S),b)}return k}()})},36789:function(L,r,n){"use strict";var e=n(77549),a=n(14141),t=n(93616),o=n(96812),f=n(54168),V=n(12913);e({target:"Object",stat:!0,sham:!a},{getOwnPropertyDescriptors:function(){function k(S){for(var b=o(S),p=f.f,l=t(b),c={},m=0,d,u;l.length>m;)u=p(b,d=l[m++]),u!==void 0&&V(c,d,u);return c}return k}()})},82707:function(L,r,n){"use strict";var e=n(77549),a=n(41746),t=n(63797).f,o=a(function(){return!Object.getOwnPropertyNames(1)});e({target:"Object",stat:!0,forced:o},{getOwnPropertyNames:t})},93146:function(L,r,n){"use strict";var e=n(77549),a=n(70640),t=n(41746),o=n(34220),f=n(40076),V=!a||t(function(){o.f(1)});e({target:"Object",stat:!0,forced:V},{getOwnPropertySymbols:function(){function k(S){var b=o.f;return b?b(f(S)):[]}return k}()})},69740:function(L,r,n){"use strict";var e=n(77549),a=n(41746),t=n(40076),o=n(31658),f=n(58776),V=a(function(){o(1)});e({target:"Object",stat:!0,forced:V,sham:!f},{getPrototypeOf:function(){function k(S){return o(t(S))}return k}()})},54789:function(L,r,n){"use strict";var e=n(77549),a=n(57975);e({target:"Object",stat:!0,forced:Object.isExtensible!==a},{isExtensible:a})},49626:function(L,r,n){"use strict";var e=n(77549),a=n(41746),t=n(56831),o=n(38817),f=n(65693),V=Object.isFrozen,k=f||a(function(){V(1)});e({target:"Object",stat:!0,forced:k},{isFrozen:function(){function S(b){return!t(b)||f&&o(b)==="ArrayBuffer"?!0:V?V(b):!1}return S}()})},67660:function(L,r,n){"use strict";var e=n(77549),a=n(41746),t=n(56831),o=n(38817),f=n(65693),V=Object.isSealed,k=f||a(function(){V(1)});e({target:"Object",stat:!0,forced:k},{isSealed:function(){function S(b){return!t(b)||f&&o(b)==="ArrayBuffer"?!0:V?V(b):!1}return S}()})},87847:function(L,r,n){"use strict";var e=n(77549),a=n(37309);e({target:"Object",stat:!0},{is:a})},43619:function(L,r,n){"use strict";var e=n(77549),a=n(40076),t=n(84913),o=n(41746),f=o(function(){t(1)});e({target:"Object",stat:!0,forced:f},{keys:function(){function V(k){return t(a(k))}return V}()})},42777:function(L,r,n){"use strict";var e=n(77549),a=n(14141),t=n(33030),o=n(40076),f=n(57640),V=n(31658),k=n(54168).f;a&&e({target:"Object",proto:!0,forced:t},{__lookupGetter__:function(){function S(b){var p=o(this),l=f(b),c;do if(c=k(p,l))return c.get;while(p=V(p))}return S}()})},13045:function(L,r,n){"use strict";var e=n(77549),a=n(14141),t=n(33030),o=n(40076),f=n(57640),V=n(31658),k=n(54168).f;a&&e({target:"Object",proto:!0,forced:t},{__lookupSetter__:function(){function S(b){var p=o(this),l=f(b),c;do if(c=k(p,l))return c.set;while(p=V(p))}return S}()})},38664:function(L,r,n){"use strict";var e=n(77549),a=n(56831),t=n(29126).onFreeze,o=n(56255),f=n(41746),V=Object.preventExtensions,k=f(function(){V(1)});e({target:"Object",stat:!0,forced:k,sham:!o},{preventExtensions:function(){function S(b){return V&&a(b)?V(t(b)):b}return S}()})},29650:function(L,r,n){"use strict";var e=n(77549),a=n(56831),t=n(29126).onFreeze,o=n(56255),f=n(41746),V=Object.seal,k=f(function(){V(1)});e({target:"Object",stat:!0,forced:k,sham:!o},{seal:function(){function S(b){return V&&a(b)?V(t(b)):b}return S}()})},58176:function(L,r,n){"use strict";var e=n(77549),a=n(42878);e({target:"Object",stat:!0},{setPrototypeOf:a})},35286:function(L,r,n){"use strict";var e=n(82161),a=n(59173),t=n(66628);e||a(Object.prototype,"toString",t,{unsafe:!0})},13313:function(L,r,n){"use strict";var e=n(77549),a=n(97452).values;e({target:"Object",stat:!0},{values:function(){function t(o){return a(o)}return t}()})},26528:function(L,r,n){"use strict";var e=n(77549),a=n(43283);e({global:!0,forced:parseFloat!==a},{parseFloat:a})},54959:function(L,r,n){"use strict";var e=n(77549),a=n(11540);e({global:!0,forced:parseInt!==a},{parseInt:a})},34344:function(L,r,n){"use strict";var e=n(77549),a=n(62696),t=n(97361),o=n(48532),f=n(91114),V=n(281),k=n(95044);e({target:"Promise",stat:!0,forced:k},{all:function(){function S(b){var p=this,l=o.f(p),c=l.resolve,m=l.reject,d=f(function(){var u=t(p.resolve),s=[],i=0,v=1;V(b,function(C){var g=i++,h=!1;v++,a(u,p,C).then(function(N){h||(h=!0,s[g]=N,--v||c(s))},m)}),--v||c(s)});return d.error&&m(d.value),l.promise}return S}()})},60:function(L,r,n){"use strict";var e=n(77549),a=n(11478),t=n(49669).CONSTRUCTOR,o=n(35973),f=n(40164),V=n(7532),k=n(59173),S=o&&o.prototype;if(e({target:"Promise",proto:!0,forced:t,real:!0},{catch:function(){function p(l){return this.then(void 0,l)}return p}()}),!a&&V(o)){var b=f("Promise").prototype.catch;S.catch!==b&&k(S,"catch",b,{unsafe:!0})}},7803:function(L,r,n){"use strict";var e=n(77549),a=n(11478),t=n(95823),o=n(40224),f=n(62696),V=n(59173),k=n(42878),S=n(94234),b=n(67420),p=n(97361),l=n(7532),c=n(56831),m=n(19870),d=n(78412),u=n(91314).set,s=n(27150),i=n(46122),v=n(91114),C=n(23496),g=n(35086),h=n(35973),N=n(49669),y=n(48532),B="Promise",I=N.CONSTRUCTOR,w=N.REJECTION_EVENT,T=N.SUBCLASSING,A=g.getterFor(B),x=g.set,E=h&&h.prototype,M=h,D=E,P=o.TypeError,R=o.document,j=o.process,F=y.f,U=F,_=!!(R&&R.createEvent&&o.dispatchEvent),z="unhandledrejection",G="rejectionhandled",X=0,Y=1,J=2,ie=1,ae=2,fe,pe,be,te,Q=function(Ve){var Ie;return c(Ve)&&l(Ie=Ve.then)?Ie:!1},ne=function(Ve,Ie){var we=Ie.value,xe=Ie.state===Y,Oe=xe?Ve.ok:Ve.fail,We=Ve.resolve,Ne=Ve.reject,re=Ve.domain,de,he,se;try{Oe?(xe||(Ie.rejection===ae&&ke(Ie),Ie.rejection=ie),Oe===!0?de=we:(re&&re.enter(),de=Oe(we),re&&(re.exit(),se=!0)),de===Ve.promise?Ne(new P("Promise-chain cycle")):(he=Q(de))?f(he,de,We,Ne):We(de)):Ne(we)}catch(Ce){re&&!se&&re.exit(),Ne(Ce)}},me=function(Ve,Ie){Ve.notified||(Ve.notified=!0,s(function(){for(var we=Ve.reactions,xe;xe=we.get();)ne(xe,Ve);Ve.notified=!1,Ie&&!Ve.rejection&&ue(Ve)}))},ce=function(Ve,Ie,we){var xe,Oe;_?(xe=R.createEvent("Event"),xe.promise=Ie,xe.reason=we,xe.initEvent(Ve,!1,!0),o.dispatchEvent(xe)):xe={promise:Ie,reason:we},!w&&(Oe=o["on"+Ve])?Oe(xe):Ve===z&&i("Unhandled promise rejection",we)},ue=function(Ve){f(u,o,function(){var Ie=Ve.facade,we=Ve.value,xe=oe(Ve),Oe;if(xe&&(Oe=v(function(){t?j.emit("unhandledRejection",we,Ie):ce(z,Ie,we)}),Ve.rejection=t||oe(Ve)?ae:ie,Oe.error))throw Oe.value})},oe=function(Ve){return Ve.rejection!==ie&&!Ve.parent},ke=function(Ve){f(u,o,function(){var Ie=Ve.facade;t?j.emit("rejectionHandled",Ie):ce(G,Ie,Ve.value)})},Be=function(Ve,Ie,we){return function(xe){Ve(Ie,xe,we)}},ve=function(Ve,Ie,we){Ve.done||(Ve.done=!0,we&&(Ve=we),Ve.value=Ie,Ve.state=J,me(Ve,!0))},ge=function ye(Ve,Ie,we){if(!Ve.done){Ve.done=!0,we&&(Ve=we);try{if(Ve.facade===Ie)throw new P("Promise can't be resolved itself");var xe=Q(Ie);xe?s(function(){var Oe={done:!1};try{f(xe,Ie,Be(ye,Oe,Ve),Be(ve,Oe,Ve))}catch(We){ve(Oe,We,Ve)}}):(Ve.value=Ie,Ve.state=Y,me(Ve,!1))}catch(Oe){ve({done:!1},Oe,Ve)}}};if(I&&(M=function(){function ye(Ve){m(this,D),p(Ve),f(fe,this);var Ie=A(this);try{Ve(Be(ge,Ie),Be(ve,Ie))}catch(we){ve(Ie,we)}}return ye}(),D=M.prototype,fe=function(){function ye(Ve){x(this,{type:B,done:!1,notified:!1,parent:!1,reactions:new C,rejection:!1,state:X,value:void 0})}return ye}(),fe.prototype=V(D,"then",function(){function ye(Ve,Ie){var we=A(this),xe=F(d(this,M));return we.parent=!0,xe.ok=l(Ve)?Ve:!0,xe.fail=l(Ie)&&Ie,xe.domain=t?j.domain:void 0,we.state===X?we.reactions.add(xe):s(function(){ne(xe,we)}),xe.promise}return ye}()),pe=function(){var Ve=new fe,Ie=A(Ve);this.promise=Ve,this.resolve=Be(ge,Ie),this.reject=Be(ve,Ie)},y.f=F=function(Ve){return Ve===M||Ve===be?new pe(Ve):U(Ve)},!a&&l(h)&&E!==Object.prototype)){te=E.then,T||V(E,"then",function(){function ye(Ve,Ie){var we=this;return new M(function(xe,Oe){f(te,we,xe,Oe)}).then(Ve,Ie)}return ye}(),{unsafe:!0});try{delete E.constructor}catch(ye){}k&&k(E,D)}e({global:!0,constructor:!0,wrap:!0,forced:I},{Promise:M}),S(M,B,!1,!0),b(B)},54412:function(L,r,n){"use strict";var e=n(77549),a=n(11478),t=n(35973),o=n(41746),f=n(40164),V=n(7532),k=n(78412),S=n(43827),b=n(59173),p=t&&t.prototype,l=!!t&&o(function(){p.finally.call({then:function(){function m(){}return m}()},function(){})});if(e({target:"Promise",proto:!0,real:!0,forced:l},{finally:function(){function m(d){var u=k(this,f("Promise")),s=V(d);return this.then(s?function(i){return S(u,d()).then(function(){return i})}:d,s?function(i){return S(u,d()).then(function(){throw i})}:d)}return m}()}),!a&&V(t)){var c=f("Promise").prototype.finally;p.finally!==c&&b(p,"finally",c,{unsafe:!0})}},78129:function(L,r,n){"use strict";n(7803),n(34344),n(60),n(61270),n(82248),n(30347)},61270:function(L,r,n){"use strict";var e=n(77549),a=n(62696),t=n(97361),o=n(48532),f=n(91114),V=n(281),k=n(95044);e({target:"Promise",stat:!0,forced:k},{race:function(){function S(b){var p=this,l=o.f(p),c=l.reject,m=f(function(){var d=t(p.resolve);V(b,function(u){a(d,p,u).then(l.resolve,c)})});return m.error&&c(m.value),l.promise}return S}()})},82248:function(L,r,n){"use strict";var e=n(77549),a=n(48532),t=n(49669).CONSTRUCTOR;e({target:"Promise",stat:!0,forced:t},{reject:function(){function o(f){var V=a.f(this),k=V.reject;return k(f),V.promise}return o}()})},30347:function(L,r,n){"use strict";var e=n(77549),a=n(40164),t=n(11478),o=n(35973),f=n(49669).CONSTRUCTOR,V=n(43827),k=a("Promise"),S=t&&!f;e({target:"Promise",stat:!0,forced:t||f},{resolve:function(){function b(p){return V(S&&this===k?o:this,p)}return b}()})},82427:function(L,r,n){"use strict";var e=n(77549),a=n(70918),t=n(97361),o=n(39482),f=n(41746),V=!f(function(){Reflect.apply(function(){})});e({target:"Reflect",stat:!0,forced:V},{apply:function(){function k(S,b,p){return a(t(S),b,o(p))}return k}()})},8390:function(L,r,n){"use strict";var e=n(77549),a=n(40164),t=n(70918),o=n(9379),f=n(76833),V=n(39482),k=n(56831),S=n(28969),b=n(41746),p=a("Reflect","construct"),l=Object.prototype,c=[].push,m=b(function(){function s(){}return!(p(function(){},[],s)instanceof s)}),d=!b(function(){p(function(){})}),u=m||d;e({target:"Reflect",stat:!0,forced:u,sham:u},{construct:function(){function s(i,v){f(i),V(v);var C=arguments.length<3?i:f(arguments[2]);if(d&&!m)return p(i,v,C);if(i===C){switch(v.length){case 0:return new i;case 1:return new i(v[0]);case 2:return new i(v[0],v[1]);case 3:return new i(v[0],v[1],v[2]);case 4:return new i(v[0],v[1],v[2],v[3])}var g=[null];return t(c,g,v),new(t(o,i,g))}var h=C.prototype,N=S(k(h)?h:l),y=t(i,N,v);return k(y)?y:N}return s}()})},68260:function(L,r,n){"use strict";var e=n(77549),a=n(14141),t=n(39482),o=n(57640),f=n(56018),V=n(41746),k=V(function(){Reflect.defineProperty(f.f({},1,{value:1}),1,{value:2})});e({target:"Reflect",stat:!0,forced:k,sham:!a},{defineProperty:function(){function S(b,p,l){t(b);var c=o(p);t(l);try{return f.f(b,c,l),!0}catch(m){return!1}}return S}()})},86508:function(L,r,n){"use strict";var e=n(77549),a=n(39482),t=n(54168).f;e({target:"Reflect",stat:!0},{deleteProperty:function(){function o(f,V){var k=t(a(f),V);return k&&!k.configurable?!1:delete f[V]}return o}()})},17134:function(L,r,n){"use strict";var e=n(77549),a=n(14141),t=n(39482),o=n(54168);e({target:"Reflect",stat:!0,sham:!a},{getOwnPropertyDescriptor:function(){function f(V,k){return o.f(t(V),k)}return f}()})},18972:function(L,r,n){"use strict";var e=n(77549),a=n(39482),t=n(31658),o=n(58776);e({target:"Reflect",stat:!0,sham:!o},{getPrototypeOf:function(){function f(V){return t(a(V))}return f}()})},65971:function(L,r,n){"use strict";var e=n(77549),a=n(62696),t=n(56831),o=n(39482),f=n(35892),V=n(54168),k=n(31658);function S(b,p){var l=arguments.length<3?b:arguments[2],c,m;if(o(b)===l)return b[p];if(c=V.f(b,p),c)return f(c)?c.value:c.get===void 0?void 0:a(c.get,l);if(t(m=k(b)))return S(m,p,l)}e({target:"Reflect",stat:!0},{get:S})},78623:function(L,r,n){"use strict";var e=n(77549);e({target:"Reflect",stat:!0},{has:function(){function a(t,o){return o in t}return a}()})},60149:function(L,r,n){"use strict";var e=n(77549),a=n(39482),t=n(57975);e({target:"Reflect",stat:!0},{isExtensible:function(){function o(f){return a(f),t(f)}return o}()})},56380:function(L,r,n){"use strict";var e=n(77549),a=n(93616);e({target:"Reflect",stat:!0},{ownKeys:a})},72792:function(L,r,n){"use strict";var e=n(77549),a=n(40164),t=n(39482),o=n(56255);e({target:"Reflect",stat:!0,sham:!o},{preventExtensions:function(){function f(V){t(V);try{var k=a("Object","preventExtensions");return k&&k(V),!0}catch(S){return!1}}return f}()})},25168:function(L,r,n){"use strict";var e=n(77549),a=n(39482),t=n(51689),o=n(42878);o&&e({target:"Reflect",stat:!0},{setPrototypeOf:function(){function f(V,k){a(V),t(k);try{return o(V,k),!0}catch(S){return!1}}return f}()})},60631:function(L,r,n){"use strict";var e=n(77549),a=n(62696),t=n(39482),o=n(56831),f=n(35892),V=n(41746),k=n(56018),S=n(54168),b=n(31658),p=n(7539);function l(m,d,u){var s=arguments.length<4?m:arguments[3],i=S.f(t(m),d),v,C,g;if(!i){if(o(C=b(m)))return l(C,d,u,s);i=p(0)}if(f(i)){if(i.writable===!1||!o(s))return!1;if(v=S.f(s,d)){if(v.get||v.set||v.writable===!1)return!1;v.value=u,k.f(s,d,v)}else k.f(s,d,p(0,u))}else{if(g=i.set,g===void 0)return!1;a(g,s,u)}return!0}var c=V(function(){var m=function(){},d=k.f(new m,"a",{configurable:!0});return Reflect.set(m.prototype,"a",1,d)!==!1});e({target:"Reflect",stat:!0,forced:c},{set:l})},85177:function(L,r,n){"use strict";var e=n(14141),a=n(40224),t=n(18161),o=n(95945),f=n(2566),V=n(16216),k=n(28969),S=n(34813).f,b=n(33314),p=n(80969),l=n(26602),c=n(60425),m=n(1064),d=n(77495),u=n(59173),s=n(41746),i=n(89458),v=n(35086).enforce,C=n(67420),g=n(66266),h=n(89604),N=n(5489),y=g("match"),B=a.RegExp,I=B.prototype,w=a.SyntaxError,T=t(I.exec),A=t("".charAt),x=t("".replace),E=t("".indexOf),M=t("".slice),D=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,P=/a/g,R=/a/g,j=new B(P)!==P,F=m.MISSED_STICKY,U=m.UNSUPPORTED_Y,_=e&&(!j||F||h||N||s(function(){return R[y]=!1,B(P)!==P||B(R)===R||String(B(P,"i"))!=="/a/i"})),z=function(ae){for(var fe=ae.length,pe=0,be="",te=!1,Q;pe<=fe;pe++){if(Q=A(ae,pe),Q==="\\"){be+=Q+A(ae,++pe);continue}!te&&Q==="."?be+="[\\s\\S]":(Q==="["?te=!0:Q==="]"&&(te=!1),be+=Q)}return be},G=function(ae){for(var fe=ae.length,pe=0,be="",te=[],Q=k(null),ne=!1,me=!1,ce=0,ue="",oe;pe<=fe;pe++){if(oe=A(ae,pe),oe==="\\")oe+=A(ae,++pe);else if(oe==="]")ne=!1;else if(!ne)switch(!0){case oe==="[":ne=!0;break;case oe==="(":T(D,M(ae,pe+1))&&(pe+=2,me=!0),be+=oe,ce++;continue;case(oe===">"&&me):if(ue===""||i(Q,ue))throw new w("Invalid capture group name");Q[ue]=!0,te[te.length]=[ue,ce],me=!1,ue="";continue}me?ue+=oe:be+=oe}return[be,te]};if(o("RegExp",_)){for(var X=function(){function ie(ae,fe){var pe=b(I,this),be=p(ae),te=fe===void 0,Q=[],ne=ae,me,ce,ue,oe,ke,Be;if(!pe&&be&&te&&ae.constructor===X)return ae;if((be||b(I,ae))&&(ae=ae.source,te&&(fe=c(ne))),ae=ae===void 0?"":l(ae),fe=fe===void 0?"":l(fe),ne=ae,h&&"dotAll"in P&&(ce=!!fe&&E(fe,"s")>-1,ce&&(fe=x(fe,/s/g,""))),me=fe,F&&"sticky"in P&&(ue=!!fe&&E(fe,"y")>-1,ue&&U&&(fe=x(fe,/y/g,""))),N&&(oe=G(ae),ae=oe[0],Q=oe[1]),ke=f(B(ae,fe),pe?this:I,X),(ce||ue||Q.length)&&(Be=v(ke),ce&&(Be.dotAll=!0,Be.raw=X(z(ae),me)),ue&&(Be.sticky=!0),Q.length&&(Be.groups=Q)),ae!==ne)try{V(ke,"source",ne===""?"(?:)":ne)}catch(ve){}return ke}return ie}(),Y=S(B),J=0;Y.length>J;)d(X,B,Y[J++]);I.constructor=X,X.prototype=I,u(a,"RegExp",X,{constructor:!0})}C("RegExp")},95880:function(L,r,n){"use strict";var e=n(77549),a=n(72894);e({target:"RegExp",proto:!0,forced:/./.exec!==a},{exec:a})},59978:function(L,r,n){"use strict";var e=n(40224),a=n(14141),t=n(10069),o=n(65844),f=n(41746),V=e.RegExp,k=V.prototype,S=a&&f(function(){var b=!0;try{V(".","d")}catch(i){b=!1}var p={},l="",c=b?"dgimsy":"gimsy",m=function(v,C){Object.defineProperty(p,v,{get:function(){function g(){return l+=C,!0}return g}()})},d={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};b&&(d.hasIndices="d");for(var u in d)m(u,d[u]);var s=Object.getOwnPropertyDescriptor(k,"flags").get.call(p);return s!==c||l!==c});S&&t(k,"flags",{configurable:!0,get:o})},96360:function(L,r,n){"use strict";var e=n(26463).PROPER,a=n(59173),t=n(39482),o=n(26602),f=n(41746),V=n(60425),k="toString",S=RegExp.prototype,b=S[k],p=f(function(){return b.call({source:"a",flags:"b"})!=="/a/b"}),l=e&&b.name!==k;(p||l)&&a(S,k,function(){function c(){var m=t(this),d=o(m.source),u=o(V(m));return"/"+d+"/"+u}return c}(),{unsafe:!0})},47338:function(L,r,n){"use strict";var e=n(93439),a=n(10623);e("Set",function(t){return function(){function o(){return t(this,arguments.length?arguments[0]:void 0)}return o}()},a)},43108:function(L,r,n){"use strict";n(47338)},36:function(L,r,n){"use strict";var e=n(77549),a=n(93677),t=n(32086);e({target:"String",proto:!0,forced:t("anchor")},{anchor:function(){function o(f){return a(this,"a","name",f)}return o}()})},30519:function(L,r,n){"use strict";var e=n(77549),a=n(93677),t=n(32086);e({target:"String",proto:!0,forced:t("big")},{big:function(){function o(){return a(this,"big","","")}return o}()})},33547:function(L,r,n){"use strict";var e=n(77549),a=n(93677),t=n(32086);e({target:"String",proto:!0,forced:t("blink")},{blink:function(){function o(){return a(this,"blink","","")}return o}()})},53426:function(L,r,n){"use strict";var e=n(77549),a=n(93677),t=n(32086);e({target:"String",proto:!0,forced:t("bold")},{bold:function(){function o(){return a(this,"b","","")}return o}()})},37801:function(L,r,n){"use strict";var e=n(77549),a=n(56852).codeAt;e({target:"String",proto:!0},{codePointAt:function(){function t(o){return a(this,o)}return t}()})},3044:function(L,r,n){"use strict";var e=n(77549),a=n(85067),t=n(54168).f,o=n(10475),f=n(26602),V=n(89140),k=n(91029),S=n(93321),b=n(11478),p=a("".slice),l=Math.min,c=S("endsWith"),m=!b&&!c&&!!function(){var d=t(String.prototype,"endsWith");return d&&!d.writable}();e({target:"String",proto:!0,forced:!m&&!c},{endsWith:function(){function d(u){var s=f(k(this));V(u);var i=arguments.length>1?arguments[1]:void 0,v=s.length,C=i===void 0?v:l(o(i),v),g=f(u);return p(s,C-g.length,C)===g}return d}()})},32031:function(L,r,n){"use strict";var e=n(77549),a=n(93677),t=n(32086);e({target:"String",proto:!0,forced:t("fixed")},{fixed:function(){function o(){return a(this,"tt","","")}return o}()})},13153:function(L,r,n){"use strict";var e=n(77549),a=n(93677),t=n(32086);e({target:"String",proto:!0,forced:t("fontcolor")},{fontcolor:function(){function o(f){return a(this,"font","color",f)}return o}()})},21953:function(L,r,n){"use strict";var e=n(77549),a=n(93677),t=n(32086);e({target:"String",proto:!0,forced:t("fontsize")},{fontsize:function(){function o(f){return a(this,"font","size",f)}return o}()})},48432:function(L,r,n){"use strict";var e=n(77549),a=n(18161),t=n(74067),o=RangeError,f=String.fromCharCode,V=String.fromCodePoint,k=a([].join),S=!!V&&V.length!==1;e({target:"String",stat:!0,arity:1,forced:S},{fromCodePoint:function(){function b(p){for(var l=[],c=arguments.length,m=0,d;c>m;){if(d=+arguments[m++],t(d,1114111)!==d)throw new o(d+" is not a valid code point");l[m]=d<65536?f(d):f(((d-=65536)>>10)+55296,d%1024+56320)}return k(l,"")}return b}()})},54564:function(L,r,n){"use strict";var e=n(77549),a=n(18161),t=n(89140),o=n(91029),f=n(26602),V=n(93321),k=a("".indexOf);e({target:"String",proto:!0,forced:!V("includes")},{includes:function(){function S(b){return!!~k(f(o(this)),f(t(b)),arguments.length>1?arguments[1]:void 0)}return S}()})},83560:function(L,r,n){"use strict";var e=n(77549),a=n(93677),t=n(32086);e({target:"String",proto:!0,forced:t("italics")},{italics:function(){function o(){return a(this,"i","","")}return o}()})},58179:function(L,r,n){"use strict";var e=n(56852).charAt,a=n(26602),t=n(35086),o=n(2449),f=n(77056),V="String Iterator",k=t.set,S=t.getterFor(V);o(String,"String",function(b){k(this,{type:V,string:a(b),index:0})},function(){function b(){var p=S(this),l=p.string,c=p.index,m;return c>=l.length?f(void 0,!0):(m=e(l,c),p.index+=m.length,f(m,!1))}return b}())},63465:function(L,r,n){"use strict";var e=n(77549),a=n(93677),t=n(32086);e({target:"String",proto:!0,forced:t("link")},{link:function(){function o(f){return a(this,"a","href",f)}return o}()})},68164:function(L,r,n){"use strict";var e=n(62696),a=n(85427),t=n(39482),o=n(1022),f=n(10475),V=n(26602),k=n(91029),S=n(4817),b=n(62970),p=n(35553);a("match",function(l,c,m){return[function(){function d(u){var s=k(this),i=o(u)?void 0:S(u,l);return i?e(i,u,s):new RegExp(u)[l](V(s))}return d}(),function(d){var u=t(this),s=V(d),i=m(c,u,s);if(i.done)return i.value;if(!u.global)return p(u,s);var v=u.unicode;u.lastIndex=0;for(var C=[],g=0,h;(h=p(u,s))!==null;){var N=V(h[0]);C[g]=N,N===""&&(u.lastIndex=b(s,f(u.lastIndex),v)),g++}return g===0?null:C}]})},58880:function(L,r,n){"use strict";var e=n(77549),a=n(34086).end,t=n(33038);e({target:"String",proto:!0,forced:t},{padEnd:function(){function o(f){return a(this,f,arguments.length>1?arguments[1]:void 0)}return o}()})},54465:function(L,r,n){"use strict";var e=n(77549),a=n(34086).start,t=n(33038);e({target:"String",proto:!0,forced:t},{padStart:function(){function o(f){return a(this,f,arguments.length>1?arguments[1]:void 0)}return o}()})},97327:function(L,r,n){"use strict";var e=n(77549),a=n(18161),t=n(96812),o=n(40076),f=n(26602),V=n(8333),k=a([].push),S=a([].join);e({target:"String",stat:!0},{raw:function(){function b(p){var l=t(o(p).raw),c=V(l);if(!c)return"";for(var m=arguments.length,d=[],u=0;;){if(k(d,f(l[u++])),u===c)return S(d,"");u")!=="7"});o("replace",function(x,E,M){var D=T?"$":"$0";return[function(){function P(R,j){var F=c(this),U=S(R)?void 0:d(R,v);return U?a(U,R,F,j):a(E,l(F),R,j)}return P}(),function(P,R){var j=V(this),F=l(P);if(typeof R=="string"&&y(R,D)===-1&&y(R,"$<")===-1){var U=M(E,j,F,R);if(U.done)return U.value}var _=k(R);_||(R=l(R));var z=j.global,G;z&&(G=j.unicode,j.lastIndex=0);for(var X=[],Y;Y=s(j,F),!(Y===null||(N(X,Y),!z));){var J=l(Y[0]);J===""&&(j.lastIndex=m(F,p(j.lastIndex),G))}for(var ie="",ae=0,fe=0;fe=ae&&(ie+=B(F,ae,be)+Q,ae=be+pe.length)}return ie+B(F,ae)}]},!A||!w||T)},17337:function(L,r,n){"use strict";var e=n(62696),a=n(85427),t=n(39482),o=n(1022),f=n(91029),V=n(37309),k=n(26602),S=n(4817),b=n(35553);a("search",function(p,l,c){return[function(){function m(d){var u=f(this),s=o(d)?void 0:S(d,p);return s?e(s,d,u):new RegExp(d)[p](k(u))}return m}(),function(m){var d=t(this),u=k(m),s=c(l,d,u);if(s.done)return s.value;var i=d.lastIndex;V(i,0)||(d.lastIndex=0);var v=b(d,u);return V(d.lastIndex,i)||(d.lastIndex=i),v===null?-1:v.index}]})},98998:function(L,r,n){"use strict";var e=n(77549),a=n(93677),t=n(32086);e({target:"String",proto:!0,forced:t("small")},{small:function(){function o(){return a(this,"small","","")}return o}()})},53713:function(L,r,n){"use strict";var e=n(62696),a=n(18161),t=n(85427),o=n(39482),f=n(1022),V=n(91029),k=n(78412),S=n(62970),b=n(10475),p=n(26602),l=n(4817),c=n(35553),m=n(1064),d=n(41746),u=m.UNSUPPORTED_Y,s=4294967295,i=Math.min,v=a([].push),C=a("".slice),g=!d(function(){var N=/(?:)/,y=N.exec;N.exec=function(){return y.apply(this,arguments)};var B="ab".split(N);return B.length!==2||B[0]!=="a"||B[1]!=="b"}),h="abbc".split(/(b)*/)[1]==="c"||"test".split(/(?:)/,-1).length!==4||"ab".split(/(?:ab)*/).length!==2||".".split(/(.?)(.?)/).length!==4||".".split(/()()/).length>1||"".split(/.?/).length;t("split",function(N,y,B){var I="0".split(void 0,0).length?function(w,T){return w===void 0&&T===0?[]:e(y,this,w,T)}:y;return[function(){function w(T,A){var x=V(this),E=f(T)?void 0:l(T,N);return E?e(E,T,x,A):e(I,p(x),T,A)}return w}(),function(w,T){var A=o(this),x=p(w);if(!h){var E=B(I,A,x,T,I!==y);if(E.done)return E.value}var M=k(A,RegExp),D=A.unicode,P=(A.ignoreCase?"i":"")+(A.multiline?"m":"")+(A.unicode?"u":"")+(u?"g":"y"),R=new M(u?"^(?:"+A.source+")":A,P),j=T===void 0?s:T>>>0;if(j===0)return[];if(x.length===0)return c(R,x)===null?[x]:[];for(var F=0,U=0,_=[];U1?arguments[1]:void 0,s.length)),v=f(u);return p(s,i,i+v.length)===v}return d}()})},96227:function(L,r,n){"use strict";var e=n(77549),a=n(93677),t=n(32086);e({target:"String",proto:!0,forced:t("strike")},{strike:function(){function o(){return a(this,"strike","","")}return o}()})},15483:function(L,r,n){"use strict";var e=n(77549),a=n(93677),t=n(32086);e({target:"String",proto:!0,forced:t("sub")},{sub:function(){function o(){return a(this,"sub","","")}return o}()})},86829:function(L,r,n){"use strict";var e=n(77549),a=n(93677),t=n(32086);e({target:"String",proto:!0,forced:t("sup")},{sup:function(){function o(){return a(this,"sup","","")}return o}()})},93073:function(L,r,n){"use strict";n(17434);var e=n(77549),a=n(11775);e({target:"String",proto:!0,name:"trimEnd",forced:"".trimEnd!==a},{trimEnd:a})},69107:function(L,r,n){"use strict";var e=n(77549),a=n(26402);e({target:"String",proto:!0,name:"trimStart",forced:"".trimLeft!==a},{trimLeft:a})},17434:function(L,r,n){"use strict";var e=n(77549),a=n(11775);e({target:"String",proto:!0,name:"trimEnd",forced:"".trimRight!==a},{trimRight:a})},50800:function(L,r,n){"use strict";n(69107);var e=n(77549),a=n(26402);e({target:"String",proto:!0,name:"trimStart",forced:"".trimStart!==a},{trimStart:a})},11121:function(L,r,n){"use strict";var e=n(77549),a=n(35171).trim,t=n(93817);e({target:"String",proto:!0,forced:t("trim")},{trim:function(){function o(){return a(this)}return o}()})},46951:function(L,r,n){"use strict";var e=n(15388);e("asyncIterator")},9056:function(L,r,n){"use strict";var e=n(77549),a=n(40224),t=n(62696),o=n(18161),f=n(11478),V=n(14141),k=n(70640),S=n(41746),b=n(89458),p=n(33314),l=n(39482),c=n(96812),m=n(57640),d=n(26602),u=n(7539),s=n(28969),i=n(84913),v=n(34813),C=n(63797),g=n(34220),h=n(54168),N=n(56018),y=n(65854),B=n(9776),I=n(59173),w=n(10069),T=n(75130),A=n(5160),x=n(21124),E=n(33345),M=n(66266),D=n(32938),P=n(15388),R=n(75429),j=n(94234),F=n(35086),U=n(67480).forEach,_=A("hidden"),z="Symbol",G="prototype",X=F.set,Y=F.getterFor(z),J=Object[G],ie=a.Symbol,ae=ie&&ie[G],fe=a.RangeError,pe=a.TypeError,be=a.QObject,te=h.f,Q=N.f,ne=C.f,me=B.f,ce=o([].push),ue=T("symbols"),oe=T("op-symbols"),ke=T("wks"),Be=!be||!be[G]||!be[G].findChild,ve=function(de,he,se){var Ce=te(J,he);Ce&&delete J[he],Q(de,he,se),Ce&&de!==J&&Q(J,he,Ce)},ge=V&&S(function(){return s(Q({},"a",{get:function(){function re(){return Q(this,"a",{value:7}).a}return re}()})).a!==7})?ve:Q,ye=function(de,he){var se=ue[de]=s(ae);return X(se,{type:z,tag:de,description:he}),V||(se.description=he),se},Ve=function(){function re(de,he,se){de===J&&Ve(oe,he,se),l(de);var Ce=m(he);return l(se),b(ue,Ce)?(se.enumerable?(b(de,_)&&de[_][Ce]&&(de[_][Ce]=!1),se=s(se,{enumerable:u(0,!1)})):(b(de,_)||Q(de,_,u(1,s(null))),de[_][Ce]=!0),ge(de,Ce,se)):Q(de,Ce,se)}return re}(),Ie=function(){function re(de,he){l(de);var se=c(he),Ce=i(se).concat(Ne(se));return U(Ce,function(Ae){(!V||t(xe,se,Ae))&&Ve(de,Ae,se[Ae])}),de}return re}(),we=function(){function re(de,he){return he===void 0?s(de):Ie(s(de),he)}return re}(),xe=function(){function re(de){var he=m(de),se=t(me,this,he);return this===J&&b(ue,he)&&!b(oe,he)?!1:se||!b(this,he)||!b(ue,he)||b(this,_)&&this[_][he]?se:!0}return re}(),Oe=function(){function re(de,he){var se=c(de),Ce=m(he);if(!(se===J&&b(ue,Ce)&&!b(oe,Ce))){var Ae=te(se,Ce);return Ae&&b(ue,Ce)&&!(b(se,_)&&se[_][Ce])&&(Ae.enumerable=!0),Ae}}return re}(),We=function(){function re(de){var he=ne(c(de)),se=[];return U(he,function(Ce){!b(ue,Ce)&&!b(x,Ce)&&ce(se,Ce)}),se}return re}(),Ne=function(de){var he=de===J,se=ne(he?oe:c(de)),Ce=[];return U(se,function(Ae){b(ue,Ae)&&(!he||b(J,Ae))&&ce(Ce,ue[Ae])}),Ce};k||(ie=function(){function re(){if(p(ae,this))throw new pe("Symbol is not a constructor");var de=!arguments.length||arguments[0]===void 0?void 0:d(arguments[0]),he=E(de),se=function(){function Ce(Ae){var De=this===void 0?a:this;De===J&&t(Ce,oe,Ae),b(De,_)&&b(De[_],he)&&(De[_][he]=!1);var je=u(1,Ae);try{ge(De,he,je)}catch(_e){if(!(_e instanceof fe))throw _e;ve(De,he,je)}}return Ce}();return V&&Be&&ge(J,he,{configurable:!0,set:se}),ye(he,de)}return re}(),ae=ie[G],I(ae,"toString",function(){function re(){return Y(this).tag}return re}()),I(ie,"withoutSetter",function(re){return ye(E(re),re)}),B.f=xe,N.f=Ve,y.f=Ie,h.f=Oe,v.f=C.f=We,g.f=Ne,D.f=function(re){return ye(M(re),re)},V&&(w(ae,"description",{configurable:!0,get:function(){function re(){return Y(this).description}return re}()}),f||I(J,"propertyIsEnumerable",xe,{unsafe:!0}))),e({global:!0,constructor:!0,wrap:!0,forced:!k,sham:!k},{Symbol:ie}),U(i(ke),function(re){P(re)}),e({target:z,stat:!0,forced:!k},{useSetter:function(){function re(){Be=!0}return re}(),useSimple:function(){function re(){Be=!1}return re}()}),e({target:"Object",stat:!0,forced:!k,sham:!V},{create:we,defineProperty:Ve,defineProperties:Ie,getOwnPropertyDescriptor:Oe}),e({target:"Object",stat:!0,forced:!k},{getOwnPropertyNames:We}),R(),j(ie,z),x[_]=!0},27718:function(L,r,n){"use strict";var e=n(77549),a=n(14141),t=n(40224),o=n(18161),f=n(89458),V=n(7532),k=n(33314),S=n(26602),b=n(10069),p=n(70113),l=t.Symbol,c=l&&l.prototype;if(a&&V(l)&&(!("description"in c)||l().description!==void 0)){var m={},d=function(){function h(){var N=arguments.length<1||arguments[0]===void 0?void 0:S(arguments[0]),y=k(c,this)?new l(N):N===void 0?l():l(N);return N===""&&(m[y]=!0),y}return h}();p(d,l),d.prototype=c,c.constructor=d;var u=String(l("description detection"))==="Symbol(description detection)",s=o(c.valueOf),i=o(c.toString),v=/^Symbol\((.*)\)[^)]+$/,C=o("".replace),g=o("".slice);b(c,"description",{configurable:!0,get:function(){function h(){var N=s(this);if(f(m,N))return"";var y=i(N),B=u?g(y,7,-1):C(y,v,"$1");return B===""?void 0:B}return h}()}),e({global:!0,constructor:!0,forced:!0},{Symbol:d})}},18611:function(L,r,n){"use strict";var e=n(77549),a=n(40164),t=n(89458),o=n(26602),f=n(75130),V=n(80353),k=f("string-to-symbol-registry"),S=f("symbol-to-string-registry");e({target:"Symbol",stat:!0,forced:!V},{for:function(){function b(p){var l=o(p);if(t(k,l))return k[l];var c=a("Symbol")(l);return k[l]=c,S[c]=l,c}return b}()})},86042:function(L,r,n){"use strict";var e=n(15388);e("hasInstance")},93267:function(L,r,n){"use strict";var e=n(15388);e("isConcatSpreadable")},41664:function(L,r,n){"use strict";var e=n(15388);e("iterator")},99414:function(L,r,n){"use strict";n(9056),n(18611),n(30661),n(12183),n(93146)},30661:function(L,r,n){"use strict";var e=n(77549),a=n(89458),t=n(74352),o=n(62518),f=n(75130),V=n(80353),k=f("symbol-to-string-registry");e({target:"Symbol",stat:!0,forced:!V},{keyFor:function(){function S(b){if(!t(b))throw new TypeError(o(b)+" is not a symbol");if(a(k,b))return k[b]}return S}()})},48965:function(L,r,n){"use strict";var e=n(15388);e("match")},44844:function(L,r,n){"use strict";var e=n(15388);e("replace")},25030:function(L,r,n){"use strict";var e=n(15388);e("search")},96454:function(L,r,n){"use strict";var e=n(15388);e("species")},77564:function(L,r,n){"use strict";var e=n(15388);e("split")},44875:function(L,r,n){"use strict";var e=n(15388),a=n(75429);e("toPrimitive"),a()},77904:function(L,r,n){"use strict";var e=n(40164),a=n(15388),t=n(94234);a("toStringTag"),t(e("Symbol"),"Symbol")},35723:function(L,r,n){"use strict";var e=n(15388);e("unscopables")},84805:function(L,r,n){"use strict";var e=n(18161),a=n(72951),t=n(42320),o=e(t),f=a.aTypedArray,V=a.exportTypedArrayMethod;V("copyWithin",function(){function k(S,b){return o(f(this),S,b,arguments.length>2?arguments[2]:void 0)}return k}())},79305:function(L,r,n){"use strict";var e=n(72951),a=n(67480).every,t=e.aTypedArray,o=e.exportTypedArrayMethod;o("every",function(){function f(V){return a(t(this),V,arguments.length>1?arguments[1]:void 0)}return f}())},71573:function(L,r,n){"use strict";var e=n(72951),a=n(59942),t=n(757),o=n(27806),f=n(62696),V=n(18161),k=n(41746),S=e.aTypedArray,b=e.exportTypedArrayMethod,p=V("".slice),l=k(function(){var c=0;return new Int8Array(2).fill({valueOf:function(){function m(){return c++}return m}()}),c!==1});b("fill",function(){function c(m){var d=arguments.length;S(this);var u=p(o(this),0,3)==="Big"?t(m):+m;return f(a,this,u,d>1?arguments[1]:void 0,d>2?arguments[2]:void 0)}return c}(),l)},47910:function(L,r,n){"use strict";var e=n(72951),a=n(67480).filter,t=n(80936),o=e.aTypedArray,f=e.exportTypedArrayMethod;f("filter",function(){function V(k){var S=a(o(this),k,arguments.length>1?arguments[1]:void 0);return t(this,S)}return V}())},99662:function(L,r,n){"use strict";var e=n(72951),a=n(67480).findIndex,t=e.aTypedArray,o=e.exportTypedArrayMethod;o("findIndex",function(){function f(V){return a(t(this),V,arguments.length>1?arguments[1]:void 0)}return f}())},48447:function(L,r,n){"use strict";var e=n(72951),a=n(67480).find,t=e.aTypedArray,o=e.exportTypedArrayMethod;o("find",function(){function f(V){return a(t(this),V,arguments.length>1?arguments[1]:void 0)}return f}())},68265:function(L,r,n){"use strict";var e=n(12218);e("Float32",function(a){return function(){function t(o,f,V){return a(this,o,f,V)}return t}()})},36030:function(L,r,n){"use strict";var e=n(12218);e("Float64",function(a){return function(){function t(o,f,V){return a(this,o,f,V)}return t}()})},57371:function(L,r,n){"use strict";var e=n(72951),a=n(67480).forEach,t=e.aTypedArray,o=e.exportTypedArrayMethod;o("forEach",function(){function f(V){a(t(this),V,arguments.length>1?arguments[1]:void 0)}return f}())},68220:function(L,r,n){"use strict";var e=n(66220),a=n(72951).exportTypedArrayStaticMethod,t=n(7996);a("from",t,e)},15745:function(L,r,n){"use strict";var e=n(72951),a=n(64210).includes,t=e.aTypedArray,o=e.exportTypedArrayMethod;o("includes",function(){function f(V){return a(t(this),V,arguments.length>1?arguments[1]:void 0)}return f}())},43398:function(L,r,n){"use strict";var e=n(72951),a=n(64210).indexOf,t=e.aTypedArray,o=e.exportTypedArrayMethod;o("indexOf",function(){function f(V){return a(t(this),V,arguments.length>1?arguments[1]:void 0)}return f}())},25888:function(L,r,n){"use strict";var e=n(12218);e("Int16",function(a){return function(){function t(o,f,V){return a(this,o,f,V)}return t}()})},35718:function(L,r,n){"use strict";var e=n(12218);e("Int32",function(a){return function(){function t(o,f,V){return a(this,o,f,V)}return t}()})},32791:function(L,r,n){"use strict";var e=n(12218);e("Int8",function(a){return function(){function t(o,f,V){return a(this,o,f,V)}return t}()})},97722:function(L,r,n){"use strict";var e=n(40224),a=n(41746),t=n(18161),o=n(72951),f=n(65809),V=n(66266),k=V("iterator"),S=e.Uint8Array,b=t(f.values),p=t(f.keys),l=t(f.entries),c=o.aTypedArray,m=o.exportTypedArrayMethod,d=S&&S.prototype,u=!a(function(){d[k].call([1])}),s=!!d&&d.values&&d[k]===d.values&&d.values.name==="values",i=function(){function v(){return b(c(this))}return v}();m("entries",function(){function v(){return l(c(this))}return v}(),u),m("keys",function(){function v(){return p(c(this))}return v}(),u),m("values",i,u||!s,{name:"values"}),m(k,i,u||!s,{name:"values"})},79088:function(L,r,n){"use strict";var e=n(72951),a=n(18161),t=e.aTypedArray,o=e.exportTypedArrayMethod,f=a([].join);o("join",function(){function V(k){return f(t(this),k)}return V}())},6075:function(L,r,n){"use strict";var e=n(72951),a=n(70918),t=n(16934),o=e.aTypedArray,f=e.exportTypedArrayMethod;f("lastIndexOf",function(){function V(k){var S=arguments.length;return a(t,o(this),S>1?[k,arguments[1]]:[k])}return V}())},46896:function(L,r,n){"use strict";var e=n(72951),a=n(67480).map,t=n(489),o=e.aTypedArray,f=e.exportTypedArrayMethod;f("map",function(){function V(k){return a(o(this),k,arguments.length>1?arguments[1]:void 0,function(S,b){return new(t(S))(b)})}return V}())},47145:function(L,r,n){"use strict";var e=n(72951),a=n(66220),t=e.aTypedArrayConstructor,o=e.exportTypedArrayStaticMethod;o("of",function(){function f(){for(var V=0,k=arguments.length,S=new(t(this))(k);k>V;)S[V]=arguments[V++];return S}return f}(),a)},349:function(L,r,n){"use strict";var e=n(72951),a=n(98405).right,t=e.aTypedArray,o=e.exportTypedArrayMethod;o("reduceRight",function(){function f(V){var k=arguments.length;return a(t(this),V,k,k>1?arguments[1]:void 0)}return f}())},72606:function(L,r,n){"use strict";var e=n(72951),a=n(98405).left,t=e.aTypedArray,o=e.exportTypedArrayMethod;o("reduce",function(){function f(V){var k=arguments.length;return a(t(this),V,k,k>1?arguments[1]:void 0)}return f}())},28292:function(L,r,n){"use strict";var e=n(72951),a=e.aTypedArray,t=e.exportTypedArrayMethod,o=Math.floor;t("reverse",function(){function f(){for(var V=this,k=a(V).length,S=o(k/2),b=0,p;b1?arguments[1]:void 0,1),C=V(i);if(d)return a(l,this,C,v);var g=this.length,h=o(C),N=0;if(h+v>g)throw new S("Wrong length");for(;Nm;)u[m]=l[m++];return u}return S}(),k)},74188:function(L,r,n){"use strict";var e=n(72951),a=n(67480).some,t=e.aTypedArray,o=e.exportTypedArrayMethod;o("some",function(){function f(V){return a(t(this),V,arguments.length>1?arguments[1]:void 0)}return f}())},81976:function(L,r,n){"use strict";var e=n(40224),a=n(85067),t=n(41746),o=n(97361),f=n(44815),V=n(72951),k=n(49847),S=n(56605),b=n(82709),p=n(53125),l=V.aTypedArray,c=V.exportTypedArrayMethod,m=e.Uint16Array,d=m&&a(m.prototype.sort),u=!!d&&!(t(function(){d(new m(2),null)})&&t(function(){d(new m(2),{})})),s=!!d&&!t(function(){if(b)return b<74;if(k)return k<67;if(S)return!0;if(p)return p<602;var v=new m(516),C=Array(516),g,h;for(g=0;g<516;g++)h=g%4,v[g]=515-g,C[g]=g-2*h+3;for(d(v,function(N,y){return(N/4|0)-(y/4|0)}),g=0;g<516;g++)if(v[g]!==C[g])return!0}),i=function(C){return function(g,h){return C!==void 0?+C(g,h)||0:h!==h?-1:g!==g?1:g===0&&h===0?1/g>0&&1/h<0?1:-1:g>h}};c("sort",function(){function v(C){return C!==void 0&&o(C),s?d(this,C):f(l(this),i(C))}return v}(),!s||u)},78651:function(L,r,n){"use strict";var e=n(72951),a=n(10475),t=n(74067),o=n(489),f=e.aTypedArray,V=e.exportTypedArrayMethod;V("subarray",function(){function k(S,b){var p=f(this),l=p.length,c=t(S,l),m=o(p);return new m(p.buffer,p.byteOffset+c*p.BYTES_PER_ELEMENT,a((b===void 0?l:t(b,l))-c))}return k}())},81664:function(L,r,n){"use strict";var e=n(40224),a=n(70918),t=n(72951),o=n(41746),f=n(77713),V=e.Int8Array,k=t.aTypedArray,S=t.exportTypedArrayMethod,b=[].toLocaleString,p=!!V&&o(function(){b.call(new V(1))}),l=o(function(){return[1,2].toLocaleString()!==new V([1,2]).toLocaleString()})||!o(function(){V.prototype.toLocaleString.call([1,2])});S("toLocaleString",function(){function c(){return a(b,p?f(k(this)):k(this),f(arguments))}return c}(),l)},35579:function(L,r,n){"use strict";var e=n(72951).exportTypedArrayMethod,a=n(41746),t=n(40224),o=n(18161),f=t.Uint8Array,V=f&&f.prototype||{},k=[].toString,S=o([].join);a(function(){k.call({})})&&(k=function(){function p(){return S(this)}return p}());var b=V.toString!==k;e("toString",k,b)},99683:function(L,r,n){"use strict";var e=n(12218);e("Uint16",function(a){return function(){function t(o,f,V){return a(this,o,f,V)}return t}()})},80941:function(L,r,n){"use strict";var e=n(12218);e("Uint32",function(a){return function(){function t(o,f,V){return a(this,o,f,V)}return t}()})},45338:function(L,r,n){"use strict";var e=n(12218);e("Uint8",function(a){return function(){function t(o,f,V){return a(this,o,f,V)}return t}()})},40737:function(L,r,n){"use strict";var e=n(12218);e("Uint8",function(a){return function(){function t(o,f,V){return a(this,o,f,V)}return t}()},!0)},74283:function(L,r,n){"use strict";var e=n(56255),a=n(40224),t=n(18161),o=n(13648),f=n(29126),V=n(93439),k=n(32920),S=n(56831),b=n(35086).enforce,p=n(41746),l=n(90777),c=Object,m=Array.isArray,d=c.isExtensible,u=c.isFrozen,s=c.isSealed,i=c.freeze,v=c.seal,C=!a.ActiveXObject&&"ActiveXObject"in a,g,h=function(E){return function(){function M(){return E(this,arguments.length?arguments[0]:void 0)}return M}()},N=V("WeakMap",h,k),y=N.prototype,B=t(y.set),I=function(){return e&&p(function(){var E=i([]);return B(new N,E,1),!u(E)})};if(l)if(C){g=k.getConstructor(h,"WeakMap",!0),f.enable();var w=t(y.delete),T=t(y.has),A=t(y.get);o(y,{delete:function(){function x(E){if(S(E)&&!d(E)){var M=b(this);return M.frozen||(M.frozen=new g),w(this,E)||M.frozen.delete(E)}return w(this,E)}return x}(),has:function(){function x(E){if(S(E)&&!d(E)){var M=b(this);return M.frozen||(M.frozen=new g),T(this,E)||M.frozen.has(E)}return T(this,E)}return x}(),get:function(){function x(E){if(S(E)&&!d(E)){var M=b(this);return M.frozen||(M.frozen=new g),T(this,E)?A(this,E):M.frozen.get(E)}return A(this,E)}return x}(),set:function(){function x(E,M){if(S(E)&&!d(E)){var D=b(this);D.frozen||(D.frozen=new g),T(this,E)?B(this,E,M):D.frozen.set(E,M)}else B(this,E,M);return this}return x}()})}else I()&&o(y,{set:function(){function x(E,M){var D;return m(E)&&(u(E)?D=i:s(E)&&(D=v)),B(this,E,M),D&&D(E),this}return x}()})},84033:function(L,r,n){"use strict";n(74283)},82389:function(L,r,n){"use strict";var e=n(93439),a=n(32920);e("WeakSet",function(t){return function(){function o(){return t(this,arguments.length?arguments[0]:void 0)}return o}()},a)},71863:function(L,r,n){"use strict";n(82389)},73993:function(L,r,n){"use strict";var e=n(77549),a=n(40224),t=n(91314).clear;e({global:!0,bind:!0,enumerable:!0,forced:a.clearImmediate!==t},{clearImmediate:t})},55457:function(L,r,n){"use strict";n(73993),n(72532)},57399:function(L,r,n){"use strict";var e=n(77549),a=n(40224),t=n(27150),o=n(97361),f=n(22789),V=n(41746),k=n(14141),S=V(function(){return k&&Object.getOwnPropertyDescriptor(a,"queueMicrotask").value.length!==1});e({global:!0,enumerable:!0,dontCallGetSet:!0,forced:S},{queueMicrotask:function(){function b(p){f(arguments.length,1),t(o(p))}return b}()})},72532:function(L,r,n){"use strict";var e=n(77549),a=n(40224),t=n(91314).set,o=n(83827),f=a.setImmediate?o(t,!1):t;e({global:!0,bind:!0,enumerable:!0,forced:a.setImmediate!==f},{setImmediate:f})},48112:function(L,r,n){"use strict";var e=n(77549),a=n(40224),t=n(83827),o=t(a.setInterval,!0);e({global:!0,bind:!0,forced:a.setInterval!==o},{setInterval:o})},82274:function(L,r,n){"use strict";var e=n(77549),a=n(40224),t=n(83827),o=t(a.setTimeout,!0);e({global:!0,bind:!0,forced:a.setTimeout!==o},{setTimeout:o})},65836:function(L,r,n){"use strict";n(48112),n(82274)},50719:function(L){"use strict";/** * @file * @copyright 2020 Aleksej Komarov * @license MIT