From 598786fc006b535abfadb3909320c41c9fc8a806 Mon Sep 17 00:00:00 2001 From: BeebBeebBoob Date: Wed, 29 Jan 2025 02:16:15 +0300 Subject: [PATCH] =?UTF-8?q?add:=20=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=BB?= =?UTF-8?q?=D0=B5=D0=BD=D0=B8=D0=B5=20map:=20=D0=B8=D0=BA=D0=BE=D0=BD?= =?UTF-8?q?=D0=BA=D0=B8=20=D0=B2=20=D1=87=D0=B5=D0=B9=D0=BD=D0=B4=D0=B6?= =?UTF-8?q?=D0=BB=D0=BE=D0=B3=20(#6484)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * add: Map Icon Changelog * bundle * prettier --- .github/CONTRIBUTING.md | 1 + tgui/packages/tgui/interfaces/Changelog.js | 1 + tgui/public/tgui.bundle.js | 2 +- 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/CONTRIBUTING.md b/.github/CONTRIBUTING.md index 12bb3ab6097..c5e57df7794 100644 --- a/.github/CONTRIBUTING.md +++ b/.github/CONTRIBUTING.md @@ -81,6 +81,7 @@ add: new lavaland elite mob - **bugfix:** если Вы исправили некий баг - **code_imp:** если имплементируете новое для билда, не меняя при этом ничего в самой игре. - **config:** если меняете перестановку конфигов или меняете работу SQL. (По этому поводу обращаться стоит с хосту) +- **map** если вы меняете только карту - **imageadd:** если просто поменяли спрайты, без затрагивания кода - **soundadd:** если просто добавили новые звуки, без затрагивания кода - **spellcheck:** если исправляете грамматику в коде. diff --git a/tgui/packages/tgui/interfaces/Changelog.js b/tgui/packages/tgui/interfaces/Changelog.js index f45c66f998a..1a7762a9216 100644 --- a/tgui/packages/tgui/interfaces/Changelog.js +++ b/tgui/packages/tgui/interfaces/Changelog.js @@ -28,6 +28,7 @@ const icons = { image: { icon: 'image', color: 'green' }, imageadd: { icon: 'tg-image-plus', color: 'green' }, imagedel: { icon: 'tg-image-minus', color: 'red' }, + map: { icon: 'map-location-dot', color: 'green' }, qol: { icon: 'hand-holding-heart', color: 'green' }, refactor: { icon: 'tools', color: 'green' }, rscadd: { icon: 'check-circle', color: 'green' }, diff --git a/tgui/public/tgui.bundle.js b/tgui/public/tgui.bundle.js index 51d4002801f..7722e2e994e 100644 --- a/tgui/public/tgui.bundle.js +++ b/tgui/public/tgui.bundle.js @@ -250,7 +250,7 @@ * @file * @copyright 2020 Aleksej Komarov * @license MIT - */var k=(0,t.createLogger)("hotkeys"),y={},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={},C=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"."},c=function(i){var h=String(i);if(h==="Ctrl+F5"||h==="Ctrl+R"){location.reload();return}if(h!=="Ctrl+F"&&!(i.event.defaultPrevented||i.isModifierKey()||S.includes(i.code))){h==="F5"&&(i.event.preventDefault(),i.event.returnValue=!1);var V=C(i.code);if(V){var v=y[V];if(v)return k.debug("macro",v),Byond.command(v);if(i.isDown()&&!b[V]){b[V]=!0;var s='KeyDown "'+V+'"';return k.debug(s),Byond.command(s)}if(i.isUp()&&b[V]){b[V]=!1;var g='KeyUp "'+V+'"';return k.debug(g),Byond.command(g)}}}},u=r.acquireHotKey=function(){function m(i){S.push(i)}return m}(),f=r.releaseHotKey=function(){function m(i){var h=S.indexOf(i);h>=0&&S.splice(h,1)}return m}(),l=r.releaseHeldKeys=function(){function m(){for(var i=0,h=Object.keys(b);i0||(0,a.fetchRetry)((0,e.resolveAsset)("icon_ref_map.json")).then(function(k){return k.json()}).then(function(k){return Byond.iconRefMap=k}).catch(function(k){return t.logger.log(k)})}return p}()},1090:function(I,r,n){"use strict";r.__esModule=!0,r.AICard=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.AICard=function(){function k(y,S){var b=(0,a.useBackend)(S),C=b.act,c=b.data;if(c.has_ai===0)return(0,e.createComponentVNode)(2,o.Window,{width:250,height:120,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Stored AI",children:(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createVNode)(1,"h3",null,"No AI detected.",16)})})})});var u=null;return c.integrity>=75?u="green":c.integrity>=25?u="yellow":u="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:c.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:u,value:c.integrity/100})})}),(0,e.createComponentVNode)(2,t.Box,{color:"red",children:(0,e.createVNode)(1,"h2",null,c.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:!!c.has_laws&&(0,e.createComponentVNode)(2,t.Box,{children:c.laws.map(function(f,l){return(0,e.createComponentVNode)(2,t.Box,{children:f},l)})})||(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:c.wireless?"check":"times",content:c.wireless?"Enabled":"Disabled",color:c.wireless?"green":"red",onClick:function(){function f(){return C("wireless")}return f}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Subspace Transceiver",children:(0,e.createComponentVNode)(2,t.Button,{width:10,icon:c.radio?"check":"times",content:c.radio?"Enabled":"Disabled",color:c.radio?"green":"red",onClick:function(){function f(){return C("radio")}return f}()})}),(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:c.flushing||c.integrity===0,confirmColor:"red",content:"Wipe AI",onClick:function(){function f(){return C("wipe")}return f}()})})]})})})]})})})}return k}()},39454:function(I,r,n){"use strict";r.__esModule=!0,r.AIFixer=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.AIFixer=function(){function k(y,S){var b=(0,a.useBackend)(S),C=b.act,c=b.data;if(c.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 u=!0;(c.stat===2||c.stat===null)&&(u=!1);var f=null;c.integrity>=75?f="green":c.integrity>=25?f="yellow":f="red";var l=!0;return c.integrity>=100&&c.stat!==2&&(l=!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:c.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:f,value:c.integrity/100})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",color:u?"green":"red",children:u?"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:!!c.has_laws&&(0,e.createComponentVNode)(2,t.Box,{children:c.laws.map(function(d,m){return(0,e.createComponentVNode)(2,t.Box,{inline:!0,children:d},m)})})||(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:c.wireless?"times":"check",content:c.wireless?"Disabled":"Enabled",color:c.wireless?"red":"green",onClick:function(){function d(){return C("wireless")}return d}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Subspace Transceiver",children:(0,e.createComponentVNode)(2,t.Button,{icon:c.radio?"times":"check",content:c.radio?"Disabled":"Enabled",color:c.radio?"red":"green",onClick:function(){function d(){return C("radio")}return d}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Start Repairs",children:(0,e.createComponentVNode)(2,t.Button,{icon:"wrench",disabled:!l||c.active,content:!l||c.active?"Already Repaired":"Repair",onClick:function(){function d(){return C("fix")}return d}()})})]}),(0,e.createComponentVNode)(2,t.Box,{color:"green",lineHeight:2,children:c.active?"Reconstruction in progress.":""})]})})]})})})}return k}()},88422:function(I,r,n){"use strict";r.__esModule=!0,r.APC=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=n(195),k=r.APC=function(){function C(c,u){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 C}(),y={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(c,u){var f=(0,a.useBackend)(u),l=f.act,d=f.data,m=d.locked&&!d.siliconUser,i=d.normallyLocked,h=y[d.externalPower]||y[0],V=y[d.chargingStatus]||y[0],v=d.powerChannels||[],s=S[d.malfStatus]||S[0],g=d.powerCellStatus/100;return(0,e.createFragment)([(0,e.createComponentVNode)(2,p.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:h.color,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:d.isOperating?"power-off":"times",content:d.isOperating?"On":"Off",selected:d.isOperating&&!m,color:d.isOperating?"":"bad",disabled:m,onClick:function(){function N(){return l("breaker")}return N}()}),children:["[ ",h.externalPowerText," ]"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power Cell",children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:"good",value:g})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Charge Mode",color:V.color,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:d.chargeMode?"sync":"times",content:d.chargeMode?"Auto":"Off",selected:d.chargeMode,disabled:m,onClick:function(){function N(){return l("charge")}return N}()}),children:["[ ",V.chargingText," ]"]})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Power Channels",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[v.map(function(N){var x=N.topicParams;return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:N.title,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{inline:!0,mx:2,color:N.status>=2?"good":"bad",children:N.status>=2?"On":"Off"}),(0,e.createComponentVNode)(2,t.Button,{icon:"sync",content:"Auto",selected:!m&&(N.status===1||N.status===3),disabled:m,onClick:function(){function B(){return l("channel",x.auto)}return B}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"power-off",content:"On",selected:!m&&N.status===2,disabled:m,onClick:function(){function B(){return l("channel",x.on)}return B}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"times",content:"Off",selected:!m&&N.status===0,disabled:m,onClick:function(){function B(){return l("channel",x.off)}return B}()})],4),children:[N.powerLoad," W"]},N.title)}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Total Load",children:(0,e.createVNode)(1,"b",null,[d.totalLoad,(0,e.createTextVNode)(" W")],0)})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Misc",buttons:!!d.siliconUser&&(0,e.createFragment)([!!d.malfStatus&&(0,e.createComponentVNode)(2,t.Button,{icon:s.icon,content:s.content,color:"bad",onClick:function(){function N(){return l(s.action)}return N}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"lightbulb-o",content:"Overload",onClick:function(){function N(){return l("overload")}return N}()})],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:d.coverLocked?"lock":"unlock",content:d.coverLocked?"Engaged":"Disengaged",disabled:m,onClick:function(){function N(){return l("cover")}return N}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Night Shift Lighting",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"lightbulb-o",content:d.nightshiftLights?"Enabled":"Disabled",onClick:function(){function N(){return l("toggle_nightshift")}return N}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Emergency Lighting Fallback",buttons:(0,e.createComponentVNode)(2,t.Button,{mt:.4,icon:"lightbulb-o",content:d.emergencyLights?"Engaged":"Disengaged",disabled:m,onClick:function(){function N(){return l("emergency_lighting")}return N}()})})]})})],4)}},99660:function(I,r,n){"use strict";r.__esModule=!0,r.ATM=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.ATM=function(){function l(d,m){var i=(0,a.useBackend)(m),h=i.act,V=i.data,v=V.view_screen,s=V.authenticated_account,g=V.ticks_left_locked_down,N=V.linked_db,x;if(g>0)x=(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)x=(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(s)switch(v){case 1:x=(0,e.createComponentVNode)(2,y);break;case 2:x=(0,e.createComponentVNode)(2,S);break;case 3:x=(0,e.createComponentVNode)(2,u);break;case 4:x=(0,e.createComponentVNode)(2,b);break;default:x=(0,e.createComponentVNode)(2,C)}else x=(0,e.createComponentVNode)(2,c);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,k),(0,e.createComponentVNode)(2,t.Section,{children:x})]})})}return l}(),k=function(d,m){var i=(0,a.useBackend)(m),h=i.act,V=i.data,v=V.machine_id,s=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:s,icon:"eject",onClick:function(){function g(){return h("insert_card")}return g}()})})})]})},y=function(d,m){var i=(0,a.useBackend)(m),h=i.act,V=i.data,v=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:v===0,onClick:function(){function s(){return h("change_security_level",{new_security_level:0})}return s}()})}),(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:v===1,onClick:function(){function s(){return h("change_security_level",{new_security_level:1})}return s}()})}),(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,t.LabeledList.Item,{label:"Level",children:(0,e.createComponentVNode)(2,t.Button,{content:"Card and Account Pin",icon:"unlock",selected:v===2,onClick:function(){function s(){return h("change_security_level",{new_security_level:2})}return s}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Description",children:"An account number, pin and card are required to access this account and process transactions."})]}),(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,f)]})},S=function(d,m){var i=(0,a.useBackend)(m),h=i.act,V=i.data,v=(0,a.useLocalState)(m,"targetAccNumber",0),s=v[0],g=v[1],N=(0,a.useLocalState)(m,"fundsAmount",0),x=N[0],B=N[1],L=(0,a.useLocalState)(m,"purpose",0),T=L[0],A=L[1],E=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:["$",E]}),(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 w(O,M){return g(M)}return w}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Funds to Transfer",children:(0,e.createComponentVNode)(2,t.Input,{onInput:function(){function w(O,M){return B(M)}return w}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Transaction Purpose",children:(0,e.createComponentVNode)(2,t.Input,{fluid:!0,onInput:function(){function w(O,M){return A(M)}return w}()})})]}),(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,t.Button,{content:"Transfer",icon:"sign-out-alt",onClick:function(){function w(){return h("transfer",{target_acc_number:s,funds_amount:x,purpose:T})}return w}()}),(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,f)]})},b=function(d,m){var i=(0,a.useBackend)(m),h=i.act,V=i.data,v=V.insurance_type;return(0,e.createComponentVNode)(2,t.Section,{title:"\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u043D\u043E\u0432\u044B\u0439 \u0442\u0438\u043F \u0441\u0442\u0440\u0430\u0445\u043E\u0432\u043A\u0438",children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0422\u0438\u043F",children:[(0,e.createComponentVNode)(2,t.Button,{content:"\u041D\u0435\u0442 (0)",icon:"unlock",selected:v==="None",onClick:function(){function s(){return h("change_insurance_type",{new_insurance_type:"None"})}return s}()}),(0,e.createComponentVNode)(2,t.Button,{content:"\u0411\u044E\u0434\u0436\u0435\u0442\u043D\u0430\u044F (0)",icon:"unlock",selected:v==="Bugetary",onClick:function(){function s(){return h("change_insurance_type",{new_insurance_type:"Bugetary"})}return s}()}),(0,e.createComponentVNode)(2,t.Button,{content:"\u0421\u0442\u0430\u043D\u0434\u0430\u0440\u0442\u043D\u0430\u044F (500)",icon:"unlock",selected:v==="Standart",onClick:function(){function s(){return h("change_insurance_type",{new_insurance_type:"Standart"})}return s}()}),(0,e.createComponentVNode)(2,t.Button,{content:"\u0414\u0435\u043B\u044E\u043A\u0441 (2000)",icon:"unlock",selected:v==="Deluxe",onClick:function(){function s(){return h("change_insurance_type",{new_insurance_type:"Deluxe"})}return s}()})]})}),(0,e.createComponentVNode)(2,f)]})},C=function(d,m){var i=(0,a.useBackend)(m),h=i.act,V=i.data,v=(0,a.useLocalState)(m,"fundsAmount",0),s=v[0],g=v[1],N=(0,a.useLocalState)(m,"insuranceAmount",0),x=N[0],B=N[1],L=V.owner_name,T=V.money,A=V.insurance;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{title:"Welcome, "+L,buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Logout",icon:"sign-out-alt",onClick:function(){function E(){return h("logout")}return E}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Account Balance",children:["$",T]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Withdrawal Amount",children:(0,e.createComponentVNode)(2,t.Input,{onInput:function(){function E(w,O){return g(O)}return E}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Withdraw Funds",icon:"sign-out-alt",onClick:function(){function E(){return h("withdrawal",{funds_amount:s})}return E}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Insurance Points",children:["$",A]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Adding Insurance",children:(0,e.createComponentVNode)(2,t.Input,{onInput:function(){function E(w,O){return B(O)}return E}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Add insurance points",icon:"sign-out-alt",onClick:function(){function E(){return h("insurance",{insurance_amount:x})}return E}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Toggle auto-replenishment of insurance",icon:"sign-out-alt",onClick:function(){function E(){return h("insurance_replenishment",{})}return E}()})})]})}),(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 E(){return h("view_screen",{view_screen:1})}return E}()})}),(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Make transfer",icon:"exchange-alt",onClick:function(){function E(){return h("view_screen",{view_screen:2})}return E}()})}),(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:"View transaction log",icon:"list",onClick:function(){function E(){return h("view_screen",{view_screen:3})}return E}()})}),(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Change type of insurance",icon:"lock",onClick:function(){function E(){return h("view_screen",{view_screen:4})}return E}()})}),(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Print balance statement",icon:"print",onClick:function(){function E(){return h("balance_statement")}return E}()})})]})],4)},c=function(d,m){var i=(0,a.useBackend)(m),h=i.act,V=i.data,v=(0,a.useLocalState)(m,"accountID",null),s=v[0],g=v[1],N=(0,a.useLocalState)(m,"accountPin",null),x=N[0],B=N[1],L=V.machine_id,T=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 A(E,w){return g(w)}return A}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Pin",children:(0,e.createComponentVNode)(2,t.Input,{placeholder:"6 Digit Number",onInput:function(){function A(E,w){return B(w)}return A}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Login",icon:"sign-in-alt",onClick:function(){function A(){return h("attempt_auth",{account_num:s,account_pin:x})}return A}()})})]})})},u=function(d,m){var i=(0,a.useBackend)(m),h=i.act,V=i.data,v=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"})]}),v.map(function(s){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:s.time}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:s.purpose}),(0,e.createComponentVNode)(2,t.Table.Cell,{color:s.is_deposit?"green":"red",children:["$",s.amount]}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:s.target_name})]},s)})]}),(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,f)]})},f=function(d,m){var i=(0,a.useBackend)(m),h=i.act,V=i.data;return(0,e.createComponentVNode)(2,t.Button,{content:"Back",icon:"sign-out-alt",onClick:function(){function v(){return h("view_screen",{view_screen:0})}return v}()})}},86423:function(I,r,n){"use strict";r.__esModule=!0,r.AccountsUplinkTerminal=void 0;var e=n(89005),a=n(25328),t=n(72253),o=n(36036),p=n(36352),k=n(98595),y=n(321),S=n(5485),b=r.AccountsUplinkTerminal=function(){function d(m,i){var h=(0,t.useBackend)(i),V=h.act,v=h.data,s=v.loginState,g=v.currentPage,N;if(s.logged_in)g===1?N=(0,e.createComponentVNode)(2,C):g===2?N=(0,e.createComponentVNode)(2,f):g===3&&(N=(0,e.createComponentVNode)(2,l));else return(0,e.createComponentVNode)(2,k.Window,{width:800,height:600,children:(0,e.createComponentVNode)(2,k.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,k.Window,{width:800,height:600,children:(0,e.createComponentVNode)(2,k.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,y.LoginInfo),(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,children:N})]})})})}return d}(),C=function(m,i){var h=(0,t.useBackend)(i),V=h.act,v=h.data,s=v.accounts,g=(0,t.useLocalState)(i,"searchText",""),N=g[0],x=g[1],B=(0,t.useLocalState)(i,"sortId","owner_name"),L=B[0],T=B[1],A=(0,t.useLocalState)(i,"sortOrder",!0),E=A[0],w=A[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,c,{id:"owner_name",children:"Account Holder"}),(0,e.createComponentVNode)(2,c,{id:"account_number",children:"Account Number"}),(0,e.createComponentVNode)(2,c,{id:"suspended",children:"Account Status"}),(0,e.createComponentVNode)(2,c,{id:"money",children:"Account Balance"})]}),s.filter((0,a.createSearch)(N,function(O){return O.owner_name+"|"+O.account_number+"|"+O.suspended+"|"+O.money})).sort(function(O,M){var P=E?1:-1;return O[L].localeCompare(M[L])*P}).map(function(O){return(0,e.createComponentVNode)(2,o.Table.Row,{className:"AccountsUplinkTerminal__listRow--"+O.suspended,onClick:function(){function M(){return V("view_account_detail",{index:O.account_index})}return M}(),children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:"user"})," ",O.owner_name]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:["#",O.account_number]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:O.suspended}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:O.money})]},O.account_number)})]})})})]})},c=function(m,i){var h=(0,t.useLocalState)(i,"sortId","name"),V=h[0],v=h[1],s=(0,t.useLocalState)(i,"sortOrder",!0),g=s[0],N=s[1],x=m.id,B=m.children;return(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Button,{color:V!==x&&"transparent",width:"100%",onClick:function(){function L(){V===x?N(!g):(v(x),N(!0))}return L}(),children:[B,V===x&&(0,e.createComponentVNode)(2,o.Icon,{name:g?"sort-up":"sort-down",ml:"0.25rem;"})]})})},u=function(m,i){var h=(0,t.useBackend)(i),V=h.act,v=h.data,s=v.is_printing,g=(0,t.useLocalState)(i,"searchText",""),N=g[0],x=g[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 B(){return V("create_new_account")}return B}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"print",content:"Print Account List",disabled:s,ml:"0.25rem",onClick:function(){function B(){return V("print_records")}return B}()})]}),(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 B(L,T){return x(T)}return B}()})})]})},f=function(m,i){var h=(0,t.useBackend)(i),V=h.act,v=h.data,s=v.account_number,g=v.owner_name,N=v.money,x=v.suspended,B=v.transactions;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:"#"+s+" / "+g,buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"arrow-left",content:"Back",onClick:function(){function L(){return V("back")}return L}()}),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Account Number",children:["#",s]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Account Holder",children:g}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Account Balance",children:N}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Account Status",color:x?"red":"green",children:[x?"Suspended":"Active",(0,e.createComponentVNode)(2,o.Button,{ml:1,content:x?"Unsuspend":"Suspend",icon:x?"unlock":"lock",onClick:function(){function L(){return V("toggle_suspension")}return L}()})]})]})})}),(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"})]}),B.map(function(L){return(0,e.createComponentVNode)(2,o.Table.Row,{children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:L.time}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:L.purpose}),(0,e.createComponentVNode)(2,o.Table.Cell,{color:L.is_deposit?"green":"red",children:["$",L.amount]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:L.target_name})]},L)})]})})})]})},l=function(m,i){var h=(0,t.useBackend)(i),V=h.act,v=h.data,s=(0,t.useLocalState)(i,"accName",""),g=s[0],N=s[1],x=(0,t.useLocalState)(i,"accDeposit",""),B=x[0],L=x[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 T(){return V("back")}return T}()}),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 T(A,E){return N(E)}return T}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Initial Deposit",children:(0,e.createComponentVNode)(2,o.Input,{placeholder:"0",onChange:function(){function T(A,E){return L(E)}return T}()})})]}),(0,e.createComponentVNode)(2,o.Button,{mt:1,fluid:!0,content:"Create Account",onClick:function(){function T(){return V("finalise_create_account",{holder_name:g,starting_funds:B})}return T}()})]})}},23001:function(I,r,n){"use strict";r.__esModule=!0,r.AdminAntagMenu=void 0;var e=n(89005),a=n(25328),t=n(72253),o=n(36036),p=n(36352),k=n(98595),y=n(321),S=n(5485),b={0:"\u0410\u043D\u0442\u0430\u0433\u043E\u043D\u0438\u0441\u0442\u044B",1:"\u0426\u0435\u043B\u0438",2:"\u0421\u0411",3:"\u041E\u0441\u043E\u0431\u043E \u0446\u0435\u043D\u043D\u044B\u0435 \u043F\u0440\u0435\u0434\u043C\u0435\u0442\u044B",default:"\u0427\u0442\u043E-\u0442\u043E \u043D\u0435 \u0442\u0430\u043A, \u043F\u043E\u0440\u0430 \u043F\u0438\u0441\u0430\u0442\u044C \u0431\u0430\u0433 \u0440\u0435\u043F\u043E\u0440\u0442!"},C={0:function(){function V(){return(0,e.createComponentVNode)(2,l)}return V}(),1:function(){function V(){return(0,e.createComponentVNode)(2,d)}return V}(),2:function(){function V(){return(0,e.createComponentVNode)(2,m)}return V}(),3:function(){function V(){return(0,e.createComponentVNode)(2,i)}return V}(),default:function(){function V(){return"\u0427\u0442\u043E-\u0442\u043E \u043D\u0435 \u0442\u0430\u043A, \u043F\u043E\u0440\u0430 \u043F\u0438\u0441\u0430\u0442\u044C \u0431\u0430\u0433 \u0440\u0435\u043F\u043E\u0440\u0442!"}return V}()},c=function(v){return b[v]||b.default},u=function(v){return C[v]||C.default},f=r.AdminAntagMenu=function(){function V(v,s){var g=(0,t.useBackend)(s),N=g.act,x=g.data,B=x.loginState,L=x.currentPage,T=(0,t.useLocalState)(s,"tabIndex",0),A=T[0],E=T[1],w=(0,t.useLocalState)(s,"searchText",""),O=w[0],M=w[1];return(0,e.createComponentVNode)(2,k.Window,{width:800,height:600,title:"\u041C\u0435\u043D\u044E \u0441\u043F\u0435\u0446-\u0440\u043E\u043B\u0435\u0439",children:(0,e.createComponentVNode)(2,k.Window.Content,{scrollable:!0,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.Tabs,{children:[(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:A===0,onClick:function(){function P(){E(0)}return P}(),icon:"user",children:"\u0410\u043D\u0442\u0430\u0433\u043E\u043D\u0438\u0441\u0442\u044B"},"Antagonists"),(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:A===1,onClick:function(){function P(){E(1)}return P}(),icon:"people-robbery",children:"\u0426\u0435\u043B\u0438"},"Objectives"),(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:A===2,onClick:function(){function P(){E(2)}return P}(),icon:"handcuffs",children:"\u0421\u0411"},"Security"),(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:A===3,onClick:function(){function P(){E(3)}return P}(),icon:"lock",children:"\u041E\u0441\u043E\u0431\u043E \u0446\u0435\u043D\u043D\u044B\u0435 \u043F\u0440\u0435\u0434\u043C\u0435\u0442\u044B"},"HighValueItems")]})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{title:c(A),fill:!0,scrollable:!0,buttons:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,o.Input,{placeholder:"\u0418\u0441\u043A\u0430\u0442\u044C...",width:"300px",onInput:function(){function P(F,R){return M(R)}return P}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"sync",onClick:function(){function P(){return N("refresh")}return P}(),children:"\u041E\u0431\u043D\u043E\u0432\u0438\u0442\u044C"})]}),children:u(A)()})})]})})})}return V}(),l=function(v,s){var g=(0,t.useBackend)(s),N=g.act,x=g.data,B=x.antagonists,L=(0,t.useLocalState)(s,"searchText",""),T=L[0],A=L[1],E=(0,t.useLocalState)(s,"sortId","antag_names"),w=E[0],O=E[1],M=(0,t.useLocalState)(s,"sortOrder",!0),P=M[0],F=M[1],R=Object.keys(B);if(!R||R.length===0)return(0,e.createVNode)(1,"div",null,"\u041D\u0435\u0442 \u0430\u043D\u0442\u0430\u0433\u043E\u043D\u0438\u0441\u0442\u043E\u0432.",16);var U=R.map(function(j){return Object.assign({key:j},B[j])});return(0,e.createComponentVNode)(2,o.Table,{className:"AdminAntagMenu__list",children:[(0,e.createComponentVNode)(2,o.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,h,{id:"name",children:"\u0418\u043C\u044F \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0430"}),(0,e.createComponentVNode)(2,h,{id:"",children:"\u041A\u043D\u043E\u043F\u043A\u0438"}),(0,e.createComponentVNode)(2,h,{id:"antag_names",children:"\u0422\u0438\u043F(-\u044B) \u0430\u043D\u0442\u0430\u0433\u043E\u043D\u0438\u0441\u0442\u043E\u0432"}),(0,e.createComponentVNode)(2,h,{id:"status",children:"\u0421\u0442\u0430\u0442\u0443\u0441"})]}),U.filter((0,a.createSearch)(T,function(j){var W=j.key,K=j.name,$=j.status,ne=j.antag_names;return K+"|"+$+"|"+ne.join(", ")})).sort(function(j,W){var K=P?1:-1;if(j[w]===void 0||j[w]===null)return K;if(W[w]===void 0||W[w]===null)return-1*K;if(typeof j[w]=="number")return(j[w]-W[w])*K;var $=j[w],ne=W[w];return w==="antag_names"&&($=j[w].join(", "),ne=W[w].join(", ")),$.localeCompare(ne)*K}).map(function(j,W){var K=j.key,$=j.name,ne=j.body_destroyed,Y=j.is_hijacker,le=j.antag_mind_uid,de=j.ckey,oe=j.status,re=j.antag_names;return(0,e.createComponentVNode)(2,o.Table.Row,{children:[(0,e.createComponentVNode)(2,o.Table.Cell,{collapsing:!0,children:ne?$:(0,e.createComponentVNode)(2,o.Button,{color:Y||!$?"red":"",tooltip:Y?"\u0423\u0433\u043E\u043D\u0449\u0438\u043A \u0448\u0430\u0442\u0442\u043B\u0430":"",onClick:function(){function Z(){return N("show_player_panel",{mind_uid:le})}return Z}(),children:$||"??? (\u041D\u0415\u0422 \u0418\u041C\u0415\u041D\u0418)"})}),(0,e.createComponentVNode)(2,o.Table.Cell,{collapsing:!0,children:[(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function Z(){N("pm",{ckey:de})}return Z}(),children:"PM"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function Z(){N("follow",{datum_uid:le})}return Z}(),children:"FLW"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function Z(){N("obs",{mind_uid:le})}return Z}(),children:"OBS"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function Z(){N("tp",{mind_uid:le})}return Z}(),children:"TP"})]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:re.join(", ")}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Box,{color:oe?"red":"grey",children:oe||"\u0416\u0438\u0432"})})]},W)})]})},d=function(v,s){var g=(0,t.useBackend)(s),N=g.act,x=g.data,B=x.objectives,L=(0,t.useLocalState)(s,"searchText",""),T=L[0],A=L[1],E=(0,t.useLocalState)(s,"sortId2","target_name"),w=E[0],O=E[1],M=(0,t.useLocalState)(s,"sortOrder",!0),P=M[0],F=M[1];return B.length?(0,e.createComponentVNode)(2,o.Table,{className:"AdminAntagMenu__list",children:[(0,e.createComponentVNode)(2,o.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,h,{sort_group:"sortId2",id:"obj_name",children:"\u0418\u043C\u044F"}),(0,e.createComponentVNode)(2,h,{sort_group:"sortId2",id:"target_name",children:"\u0426\u0435\u043B\u044C"}),(0,e.createComponentVNode)(2,h,{sort_group:"sortId2",id:"status",children:"\u0421\u0442\u0430\u0442\u0443\u0441"}),(0,e.createComponentVNode)(2,h,{sort_group:"sortId2",id:"owner_name",children:"\u0425\u043E\u0437\u044F\u0438\u043D"})]}),B.filter((0,a.createSearch)(T,function(R){return R.obj_name+"|"+R.target_name+"|"+(R.status?"success":"incompleted")+"|"+R.owner_name})).sort(function(R,U){var j=P?1:-1;return R[w]===void 0||R[w]===null||w==="target_name"&&R.no_target?j:U[w]===void 0||U[w]===null||w==="target_name"&&U.no_target?-1*j:typeof R[w]=="number"?(R[w]-U[w])*j:R[w].localeCompare(U[w])*j}).map(function(R,U){return(0,e.createComponentVNode)(2,o.Table.Row,{children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Button,{tooltip:R.obj_desc,onClick:function(){function j(){return N("vv",{uid:R.obj_uid})}return j}(),children:R.obj_name})}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:R.no_target?"":R.track.length?R.track.map(function(j,W){return(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function K(){return N("follow",{datum_uid:j})}return K}(),children:[R.target_name," ",R.track.length>1?"("+(parseInt(W,10)+1)+")":""]},W)}):R.target_name+" (\u043D\u0435 \u043D\u0430\u0439\u0434\u0435\u043D\u043E)"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Box,{color:R.status?"green":"grey",children:R.status?"\u0423\u0441\u043F\u0435\u0448\u043D\u043E":"\u041D\u0435\u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043D\u043E"})}),(0,e.createComponentVNode)(2,o.Table.Cell,{collapsing:!0,children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function j(){N("obj_owner",{owner_uid:R.owner_uid})}return j}(),children:R.owner_name})})]},U)})]}):"\u041D\u0435\u0442 \u0446\u0435\u043B\u0435\u0439!"},m=function(v,s){var g=(0,t.useBackend)(s),N=g.act,x=g.data,B=x.security,L=(0,t.useLocalState)(s,"searchText",""),T=L[0],A=L[1],E=(0,t.useLocalState)(s,"sortId3","health"),w=E[0],O=E[1],M=(0,t.useLocalState)(s,"sortOrder",!0),P=M[0],F=M[1],R=function(W){return W.status===2?"red":W.status===1?"orange":W.broken_bone||W.internal_bleeding?"yellow":"grey"},U=function(W){return W.status===2?"\u041C\u0451\u0440\u0442\u0432":W.status===1?"\u0411\u0435\u0437 \u0441\u043E\u0437\u043D\u0430\u043D\u0438\u044F":W.broken_bone&&W.internal_bleeding?"\u0421\u043B\u043E\u043C\u0430\u043D\u0430 \u043A\u043E\u0441\u0442\u044C, \u0412\u041A":W.broken_bone?"\u0421\u043B\u043E\u043C\u0430\u043D\u0430 \u043A\u043E\u0441\u0442\u044C":W.internal_bleeding?"\u0412\u041A":"\u0416\u0438\u0432"};return B.length?(0,e.createComponentVNode)(2,o.Table,{className:"AdminAntagMenu__list",children:[(0,e.createComponentVNode)(2,o.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,h,{sort_group:"sortId3",id:"name",children:"\u0418\u043C\u044F"}),(0,e.createComponentVNode)(2,h,{sort_group:"sortId3",id:"role",children:"\u0414\u043E\u043B\u0436\u043D\u043E\u0441\u0442\u044C"}),(0,e.createComponentVNode)(2,h,{sort_group:"sortId3",id:"status",children:"\u0421\u0442\u0430\u0442\u0443\u0441"}),(0,e.createComponentVNode)(2,h,{sort_group:"sortId3",id:"antag",children:"\u0410\u043D\u0442\u0430\u0433\u043E\u043D\u0438\u0441\u0442"}),(0,e.createComponentVNode)(2,h,{sort_group:"sortId3",id:"health",children:"\u0417\u0434\u043E\u0440\u043E\u0432\u044C\u0435"})]}),B.filter((0,a.createSearch)(T,function(j){return j.name+"|"+j.role+"|"+U(j)+"|"+j.antag})).sort(function(j,W){var K=P?1:-1;return j[w]===void 0||j[w]===null?K:W[w]===void 0||W[w]===null?-1*K:typeof j[w]=="number"?(j[w]-W[w])*K:j[w].localeCompare(W[w])*K}).map(function(j,W){return(0,e.createComponentVNode)(2,o.Table.Row,{children:[(0,e.createComponentVNode)(2,o.Table.Cell,{collapsing:!0,children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function K(){return N("show_player_panel",{mind_uid:j.mind_uid})}return K}(),children:j.name})}),(0,e.createComponentVNode)(2,o.Table.Cell,{collapsing:!0,children:j.role}),(0,e.createComponentVNode)(2,o.Table.Cell,{collapsing:!0,children:(0,e.createComponentVNode)(2,o.Box,{color:R(j),children:U(j)})}),(0,e.createComponentVNode)(2,o.Table.Cell,{collapsing:!0,children:j.antag?(0,e.createComponentVNode)(2,o.Button,{textColor:"red",translucent:!0,onClick:function(){function K(){N("tp",{mind_uid:j.mind_uid})}return K}(),children:j.antag}):""}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.ProgressBar,{minValue:0,value:j.health/j.max_health,maxValue:1,ranges:{good:[.6,1/0],average:[0,.6],bad:[-1/0,0]},children:j.health})}),(0,e.createComponentVNode)(2,o.Table.Cell,{collapsing:!0,children:[(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function K(){N("pm",{ckey:j.ckey})}return K}(),children:"PM"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function K(){N("follow",{datum_uid:j.mind_uid})}return K}(),children:"FLW"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function K(){N("obs",{mind_uid:j.mind_uid})}return K}(),children:"OBS"})]})]},W)})]}):"\u041D\u0435\u0442\u0443 \u0421\u0411!"},i=function(v,s){var g=(0,t.useBackend)(s),N=g.act,x=g.data,B=x.high_value_items,L=(0,t.useLocalState)(s,"searchText",""),T=L[0],A=L[1],E=(0,t.useLocalState)(s,"sortId4","person"),w=E[0],O=E[1],M=(0,t.useLocalState)(s,"sortOrder",!0),P=M[0],F=M[1];return B.length?(0,e.createComponentVNode)(2,o.Table,{className:"AdminAntagMenu__list",children:[(0,e.createComponentVNode)(2,o.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,h,{sort_group:"sortId4",id:"name",children:"\u0418\u043C\u044F"}),(0,e.createComponentVNode)(2,h,{sort_group:"sortId4",id:"person",children:"\u041D\u043E\u0441\u0438\u0442\u0435\u043B\u044C"}),(0,e.createComponentVNode)(2,h,{sort_group:"sortId4",id:"loc",children:"\u041C\u0435\u0441\u0442\u043E\u043F\u043E\u043B\u043E\u0436\u0435\u043D\u0438\u0435"}),(0,e.createComponentVNode)(2,h,{sort_group:"sortId4",id:"admin_z",children:"\u0410\u0434\u043C\u0438\u043D\u0441\u043A\u0438\u0439 Z-\u0443\u0440\u043E\u0432\u0435\u043D\u044C"})]}),B.filter((0,a.createSearch)(T,function(R){return R.name+"|"+R.loc})).sort(function(R,U){var j=P?1:-1;return R[w]===void 0||R[w]===null?j:U[w]===void 0||U[w]===null?-1*j:typeof R[w]=="number"?(R[w]-U[w])*j:R[w].localeCompare(U[w])*j}).map(function(R,U){return(0,e.createComponentVNode)(2,o.Table.Row,{children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Button,{tooltip:R.obj_desc,translucent:R.admin_z,onClick:function(){function j(){return N("vv",{uid:R.uid})}return j}(),children:R.name})}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Box,{color:R.admin_z?"grey":"",children:R.person})}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Box,{color:R.admin_z?"grey":"",children:R.loc})}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Box,{color:"grey",children:R.admin_z?"\u0414\u0430":"\u041D\u0435\u0442"})}),(0,e.createComponentVNode)(2,o.Table.Cell,{collapsing:!0,children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function j(){N("follow",{datum_uid:R.uid})}return j}(),children:"FLW"})})]},U)})]}):"\u041D\u0435\u0442 \u043E\u0441\u043E\u0431\u043E \u0446\u0435\u043D\u043D\u044B\u0445 \u043F\u0440\u0435\u0434\u043C\u0435\u0442\u043E\u0432!"},h=function(v,s){var g=v.id,N=v.sort_group,x=N===void 0?"sortId":N,B=v.default_sort,L=B===void 0?"antag_names":B,T=v.children,A=(0,t.useLocalState)(s,x,L),E=A[0],w=A[1],O=(0,t.useLocalState)(s,"sortOrder",!0),M=O[0],P=O[1];return(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Button,{color:E!==g&&"transparent",width:"100%",onClick:function(){function F(){E===g?P(!M):(w(g),P(!0))}return F}(),children:[T,E===g&&(0,e.createComponentVNode)(2,o.Icon,{name:M?"sort-up":"sort-down",ml:"0.25rem;"})]})})}},79571:function(I,r,n){"use strict";r.__esModule=!0,r.AgentCardSLSlots=r.AgentCardInfo=r.AgentCardAppearances=r.AgentCard=void 0;var e=n(89005),a=n(35840),t=n(72253),o=n(36036),p=n(98595),k=r.AgentCard=function(){function C(c,u){var f=(0,t.useLocalState)(u,"tabIndex",0),l=f[0],d=f[1],m=function(){function i(h){switch(h){case 0:return(0,e.createComponentVNode)(2,y);case 1:return(0,e.createComponentVNode)(2,S);case 2:return(0,e.createComponentVNode)(2,b);default:return(0,e.createComponentVNode)(2,y)}}return i}();return(0,e.createComponentVNode)(2,p.Window,{width:500,height:475,theme:"syndicate",children:(0,e.createComponentVNode)(2,p.Window.Content,{children:(0,e.createComponentVNode)(2,o.Box,{fillPositionedParent:!0,overflow:"hidden",children:[(0,e.createComponentVNode)(2,o.Tabs,{children:[(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:l===0,onClick:function(){function i(){return d(0)}return i}(),children:[(0,e.createComponentVNode)(2,o.Icon,{name:"table"})," Card Info"]},"Card Info"),(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:l===1,onClick:function(){function i(){return d(1)}return i}(),children:[(0,e.createComponentVNode)(2,o.Icon,{name:"id-card"})," Appearance"]},"Appearance"),(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:l===2,onClick:function(){function i(){return d(2)}return i}(),children:[(0,e.createComponentVNode)(2,o.Icon,{name:"arrow-down"})," Save/Load Card Info"]},"Save/Load Card Info")]}),m(l)]})})})}return C}(),y=r.AgentCardInfo=function(){function C(c,u){var f=(0,t.useBackend)(u),l=f.act,d=f.data,m=d.registered_name,i=d.sex,h=d.age,V=d.assignment,v=d.associated_account_number,s=d.blood_type,g=d.dna_hash,N=d.fingerprint_hash,x=d.photo,B=d.ai_tracking;return(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Section,{title:"Card Info",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Name",children:(0,e.createComponentVNode)(2,o.Button,{content:m||"[UNSET]",onClick:function(){function L(){return l("change_name")}return L}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Sex",children:(0,e.createComponentVNode)(2,o.Button,{iconRight:!1,content:i||"[UNSET]",onClick:function(){function L(){return l("change_sex")}return L}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Age",children:(0,e.createComponentVNode)(2,o.Button,{content:h||"[UNSET]",onClick:function(){function L(){return l("change_age")}return L}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Rank",children:(0,e.createComponentVNode)(2,o.Button,{content:V||"[UNSET]",onClick:function(){function L(){return l("change_occupation")}return L}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Fingerprints",children:(0,e.createComponentVNode)(2,o.Button,{content:N||"[UNSET]",onClick:function(){function L(){return l("change_fingerprints")}return L}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Blood Type",children:(0,e.createComponentVNode)(2,o.Button,{content:s||"[UNSET]",onClick:function(){function L(){return l("change_blood_type")}return L}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"DNA Hash",children:(0,e.createComponentVNode)(2,o.Button,{content:g||"[UNSET]",onClick:function(){function L(){return l("change_dna_hash")}return L}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Money Account",children:(0,e.createComponentVNode)(2,o.Button,{content:v||"[UNSET]",onClick:function(){function L(){return l("change_money_account")}return L}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Photo",children:(0,e.createComponentVNode)(2,o.Button,{content:x?"Update":"[UNSET]",onClick:function(){function L(){return l("change_photo")}return L}()})})]})}),(0,e.createComponentVNode)(2,o.Section,{title:"Card Settings",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Card Info",children:(0,e.createComponentVNode)(2,o.Button,{content:"Delete Card Info",onClick:function(){function L(){return l("delete_info")}return L}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Access",children:(0,e.createComponentVNode)(2,o.Button,{content:"Reset Access",onClick:function(){function L(){return l("clear_access")}return L}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"AI Tracking",children:(0,e.createComponentVNode)(2,o.Button,{content:B?"Untrackable":"Trackable",onClick:function(){function L(){return l("change_ai_tracking")}return L}()})})]})})],4)}return C}(),S=r.AgentCardAppearances=function(){function C(c,u){var f=(0,t.useBackend)(u),l=f.act,d=f.data,m=d.appearances;return(0,e.createComponentVNode)(2,o.Section,{fill:!0,title:"Card Appearance",children:m.map(function(i){return(0,e.createComponentVNode)(2,o.ImageButton,{tooltip:i,vertical:!0,asset:!0,style:{margin:"1px"},image:i,imageAsset:"id_card64x64",onclick:function(){function h(){return l("change_appearance_new",{new_appearance:i})}return h}()},i)})})}return C}(),b=r.AgentCardSLSlots=function(){function C(c,u){var f=(0,t.useBackend)(u),l=f.act,d=f.data,m=d.saved_info;return(0,e.createComponentVNode)(2,o.Section,{title:"Save/Load Manager",style:{"line-height":"25px"},children:(0,e.createComponentVNode)(2,o.LabeledList,{children:m.map(function(i){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:i.registered_name?i.registered_name+", "+i.assignment:"Slot "+i.id,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{content:"Clear",onClick:function(){function h(){return l("clear_slot",{slot:i.id})}return h}()}),(0,e.createComponentVNode)(2,o.Button,{content:"Save",onClick:function(){function h(){return l("save_slot",{slot:i.id})}return h}()}),(0,e.createComponentVNode)(2,o.Button,{content:"Load",disabled:!i.registered_name,onClick:function(){function h(){return l("load_slot",{slot:i.id})}return h}()})],4)},i.id)})})})}return C}()},56793:function(I,r,n){"use strict";r.__esModule=!0,r.AiAirlock=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p={2:{color:"good",localStatusText:"Offline"},1:{color:"average",localStatusText:"Caution"},0:{color:"bad",localStatusText:"Optimal"}},k=r.AiAirlock=function(){function y(S,b){var C=(0,a.useBackend)(b),c=C.act,u=C.data,f=p[u.power.main]||p[0],l=p[u.power.backup]||p[0],d=p[u.shock]||p[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:f.color,buttons:(0,e.createComponentVNode)(2,t.Button,{mb:.5,icon:"lightbulb-o",disabled:!u.power.main,content:"Disrupt",onClick:function(){function m(){return c("disrupt-main")}return m}()}),children:[u.power.main?"Online":"Offline"," ",!u.wires.main_power&&"[Wires have been cut!]"||u.power.main_timeleft>0&&"["+u.power.main_timeleft+"s]"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Backup",color:l.color,buttons:(0,e.createComponentVNode)(2,t.Button,{mb:.5,icon:"lightbulb-o",disabled:!u.power.backup,content:"Disrupt",onClick:function(){function m(){return c("disrupt-backup")}return m}()}),children:[u.power.backup?"Online":"Offline"," ",!u.wires.backup_power&&"[Wires have been cut!]"||u.power.backup_timeleft>0&&"["+u.power.backup_timeleft+"s]"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Electrify",color:d.color,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{mr:.5,icon:"wrench",disabled:!(u.wires.shock&&u.shock!==2),content:"Restore",onClick:function(){function m(){return c("shock-restore")}return m}()}),(0,e.createComponentVNode)(2,t.Button,{mr:.5,icon:"bolt",disabled:!u.wires.shock,content:"Temporary",onClick:function(){function m(){return c("shock-temp")}return m}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"bolt",disabled:!u.wires.shock||u.shock===0,content:"Permanent",onClick:function(){function m(){return c("shock-perm")}return m}()})],4),children:[u.shock===2?"Safe":"Electrified"," ",!u.wires.shock&&"[Wires have been cut!]"||u.shock_timeleft>0&&"["+u.shock_timeleft+"s]"||u.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:u.id_scanner?"power-off":"times",content:u.id_scanner?"Enabled":"Disabled",selected:u.id_scanner,disabled:!u.wires.id_scanner,onClick:function(){function m(){return c("idscan-toggle")}return m}()}),children:!u.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:u.emergency?"power-off":"times",content:u.emergency?"Enabled":"Disabled",selected:u.emergency,onClick:function(){function m(){return c("emergency-toggle")}return m}()})}),(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:u.locked?"lock":"unlock",content:u.locked?"Lowered":"Raised",selected:u.locked,disabled:!u.wires.bolts,onClick:function(){function m(){return c("bolt-toggle")}return m}()}),children:!u.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:u.lights?"power-off":"times",content:u.lights?"Enabled":"Disabled",selected:u.lights,disabled:!u.wires.lights,onClick:function(){function m(){return c("light-toggle")}return m}()}),children:!u.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:u.safe?"power-off":"times",content:u.safe?"Enabled":"Disabled",selected:u.safe,disabled:!u.wires.safe,onClick:function(){function m(){return c("safe-toggle")}return m}()}),children:!u.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:u.speed?"power-off":"times",content:u.speed?"Enabled":"Disabled",selected:u.speed,disabled:!u.wires.timing,onClick:function(){function m(){return c("speed-toggle")}return m}()}),children:!u.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:u.opened?"sign-out-alt":"sign-in-alt",content:u.opened?"Open":"Closed",selected:u.opened,disabled:u.locked||u.welded,onClick:function(){function m(){return c("open-close")}return m}()}),children:!!(u.locked||u.welded)&&(0,e.createVNode)(1,"span",null,[(0,e.createTextVNode)("[Door is "),u.locked?"bolted":"",u.locked&&u.welded?" and ":"",u.welded?"welded":"",(0,e.createTextVNode)("!]")],0)})]})})]})})}return y}()},72475:function(I,r,n){"use strict";r.__esModule=!0,r.AirAlarm=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=n(195),k=r.AirAlarm=function(){function d(m,i){var h=(0,a.useBackend)(i),V=h.act,v=h.data,s=v.locked;return(0,e.createComponentVNode)(2,o.Window,{width:570,height:s?310:755,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,p.InterfaceLockNoticeBox),(0,e.createComponentVNode)(2,S),!s&&(0,e.createFragment)([(0,e.createComponentVNode)(2,b),(0,e.createComponentVNode)(2,C)],4)]})})}return d}(),y=function(m){return m===0?"green":m===1?"orange":"red"},S=function(m,i){var h=(0,a.useBackend)(i),V=h.act,v=h.data,s=v.air,g=v.mode,N=v.atmos_alarm,x=v.locked,B=v.alarmActivated,L=v.rcon,T=v.target_temp,A;return s.danger.overall===0?N===0?A="Optimal":A="Caution: Atmos alert in area":s.danger.overall===1?A="Caution":A="DANGER: Internals Required",(0,e.createComponentVNode)(2,t.Section,{title:"Air Status",children:s?(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Pressure",children:(0,e.createComponentVNode)(2,t.Box,{color:y(s.danger.pressure),children:[(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:s.pressure})," kPa",!x&&(0,e.createFragment)([(0,e.createTextVNode)("\xA0"),(0,e.createComponentVNode)(2,t.Button,{content:g===3?"Deactivate Panic Siphon":"Activate Panic Siphon",selected:g===3,icon:"exclamation-triangle",onClick:function(){function E(){return V("mode",{mode:g===3?1:3})}return E}()})],4)]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Oxygen",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:s.contents.oxygen/100,fractionDigits:"1",color:y(s.danger.oxygen)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Nitrogen",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:s.contents.nitrogen/100,fractionDigits:"1",color:y(s.danger.nitrogen)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Carbon Dioxide",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:s.contents.co2/100,fractionDigits:"1",color:y(s.danger.co2)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Toxins",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:s.contents.plasma/100,fractionDigits:"1",color:y(s.danger.plasma)})}),s.contents.n2o>.1&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Nitrous Oxide",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:s.contents.n2o/100,fractionDigits:"1",color:y(s.danger.n2o)})}),s.contents.other>.1&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Other",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:s.contents.other/100,fractionDigits:"1",color:y(s.danger.other)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Temperature",children:(0,e.createComponentVNode)(2,t.Box,{color:y(s.danger.temperature),children:[(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:s.temperature})," K /"," ",(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:s.temperature_c})," C\xA0",(0,e.createComponentVNode)(2,t.Button,{icon:"thermometer-full",content:T+" C",onClick:function(){function E(){return V("temperature")}return E}()}),(0,e.createComponentVNode)(2,t.Button,{content:s.thermostat_state?"On":"Off",selected:s.thermostat_state,icon:"power-off",onClick:function(){function E(){return V("thermostat_state")}return E}()})]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Local Status",children:(0,e.createComponentVNode)(2,t.Box,{color:y(s.danger.overall),children:[A,!x&&(0,e.createFragment)([(0,e.createTextVNode)("\xA0"),(0,e.createComponentVNode)(2,t.Button,{content:B?"Reset Alarm":"Activate Alarm",selected:B,onClick:function(){function E(){return V(B?"atmos_reset":"atmos_alarm")}return E}()})],4)]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Remote Control Settings",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Off",selected:L===1,onClick:function(){function E(){return V("set_rcon",{rcon:1})}return E}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Auto",selected:L===2,onClick:function(){function E(){return V("set_rcon",{rcon:2})}return E}()}),(0,e.createComponentVNode)(2,t.Button,{content:"On",selected:L===3,onClick:function(){function E(){return V("set_rcon",{rcon:3})}return E}()})]})]}):(0,e.createComponentVNode)(2,t.Box,{children:"Unable to acquire air sample!"})})},b=function(m,i){var h=(0,a.useLocalState)(i,"tabIndex",0),V=h[0],v=h[1];return(0,e.createComponentVNode)(2,t.Tabs,{children:[(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:V===0,onClick:function(){function s(){return v(0)}return s}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"sign-out-alt"})," Vent Control"]},"Vents"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:V===1,onClick:function(){function s(){return v(1)}return s}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"sign-in-alt"})," Scrubber Control"]},"Scrubbers"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:V===2,onClick:function(){function s(){return v(2)}return s}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"cog"})," Mode"]},"Mode"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:V===3,onClick:function(){function s(){return v(3)}return s}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"tachometer-alt"})," Thresholds"]},"Thresholds")]})},C=function(m,i){var h=(0,a.useLocalState)(i,"tabIndex",0),V=h[0],v=h[1];switch(V){case 0:return(0,e.createComponentVNode)(2,c);case 1:return(0,e.createComponentVNode)(2,u);case 2:return(0,e.createComponentVNode)(2,f);case 3:return(0,e.createComponentVNode)(2,l);default:return"WE SHOULDN'T BE HERE!"}},c=function(m,i){var h=(0,a.useBackend)(i),V=h.act,v=h.data,s=v.vents;return s.map(function(g){return(0,e.createComponentVNode)(2,t.Section,{title:g.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:g.power?"On":"Off",selected:g.power,icon:"power-off",onClick:function(){function N(){return V("command",{cmd:"power",val:g.power===1?0:1,id_tag:g.id_tag})}return N}()}),(0,e.createComponentVNode)(2,t.Button,{content:g.direction==="release"?"Blowing":"Siphoning",icon:g.direction==="release"?"sign-out-alt":"sign-in-alt",onClick:function(){function N(){return V("command",{cmd:"direction",val:g.direction==="release"?0:1,id_tag:g.id_tag})}return N}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Pressure Checks",children:[(0,e.createComponentVNode)(2,t.Button,{content:"External",selected:g.checks===1,onClick:function(){function N(){return V("command",{cmd:"checks",val:1,id_tag:g.id_tag})}return N}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Internal",selected:g.checks===2,onClick:function(){function N(){return V("command",{cmd:"checks",val:2,id_tag:g.id_tag})}return N}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"External Pressure Target",children:[(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:g.external})," kPa\xA0",(0,e.createComponentVNode)(2,t.Button,{content:"Set",icon:"cog",onClick:function(){function N(){return V("command",{cmd:"set_external_pressure",id_tag:g.id_tag})}return N}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Reset",icon:"redo-alt",onClick:function(){function N(){return V("command",{cmd:"set_external_pressure",val:101.325,id_tag:g.id_tag})}return N}()})]})]})},g.name)})},u=function(m,i){var h=(0,a.useBackend)(i),V=h.act,v=h.data,s=v.scrubbers;return s.map(function(g){return(0,e.createComponentVNode)(2,t.Section,{title:g.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:g.power?"On":"Off",selected:g.power,icon:"power-off",onClick:function(){function N(){return V("command",{cmd:"power",val:g.power===1?0:1,id_tag:g.id_tag})}return N}()}),(0,e.createComponentVNode)(2,t.Button,{content:g.scrubbing?"Scrubbing":"Siphoning",icon:g.scrubbing?"filter":"sign-in-alt",onClick:function(){function N(){return V("command",{cmd:"scrubbing",val:g.scrubbing===0?1:0,id_tag:g.id_tag})}return N}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Range",children:(0,e.createComponentVNode)(2,t.Button,{content:g.widenet?"Extended":"Normal",selected:g.widenet,icon:"expand-arrows-alt",onClick:function(){function N(){return V("command",{cmd:"widenet",val:g.widenet===0?1:0,id_tag:g.id_tag})}return N}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Filtering",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Carbon Dioxide",selected:g.filter_co2,onClick:function(){function N(){return V("command",{cmd:"co2_scrub",val:g.filter_co2===0?1:0,id_tag:g.id_tag})}return N}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Plasma",selected:g.filter_toxins,onClick:function(){function N(){return V("command",{cmd:"tox_scrub",val:g.filter_toxins===0?1:0,id_tag:g.id_tag})}return N}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Nitrous Oxide",selected:g.filter_n2o,onClick:function(){function N(){return V("command",{cmd:"n2o_scrub",val:g.filter_n2o===0?1:0,id_tag:g.id_tag})}return N}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Oxygen",selected:g.filter_o2,onClick:function(){function N(){return V("command",{cmd:"o2_scrub",val:g.filter_o2===0?1:0,id_tag:g.id_tag})}return N}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Nitrogen",selected:g.filter_n2,onClick:function(){function N(){return V("command",{cmd:"n2_scrub",val:g.filter_n2===0?1:0,id_tag:g.id_tag})}return N}()})]})]})},g.name)})},f=function(m,i){var h=(0,a.useBackend)(i),V=h.act,v=h.data,s=v.modes,g=v.presets,N=v.emagged,x=v.mode,B=v.preset;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{title:"System Mode",children:(0,e.createComponentVNode)(2,t.Table,{children:s.map(function(L){return(!L.emagonly||L.emagonly&&!!N)&&(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:L.name,icon:"cog",selected:L.id===x,onClick:function(){function T(){return V("mode",{mode:L.id})}return T}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:L.desc})]},L.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:g.map(function(L){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:L.name,icon:"cog",selected:L.id===B,onClick:function(){function T(){return V("preset",{preset:L.id})}return T}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:L.desc})]},L.name)})})]})],4)},l=function(m,i){var h=(0,a.useBackend)(i),V=h.act,v=h.data,s=v.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"})]}),s.map(function(g){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:g.name}),g.settings.map(function(N){return(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{content:N.selected===-1?"Off":N.selected,onClick:function(){function x(){return V("command",{cmd:"set_threshold",env:N.env,var:N.val})}return x}()})},N.val)})]},g.name)})]})})}},12333:function(I,r,n){"use strict";r.__esModule=!0,r.AirlockAccessController=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.AirlockAccessController=function(){function k(y,S){var b=(0,a.useBackend)(S),C=b.act,c=b.data,u=c.exterior_status,f=c.interior_status,l=c.processing,d,m;return u==="open"?d=(0,e.createComponentVNode)(2,t.Button,{width:"50%",content:"Lock Exterior Door",icon:"exclamation-triangle",disabled:l,onClick:function(){function i(){return C("force_ext")}return i}()}):d=(0,e.createComponentVNode)(2,t.Button,{width:"50%",content:"Cycle to Exterior",icon:"arrow-circle-left",disabled:l,onClick:function(){function i(){return C("cycle_ext_door")}return i}()}),f==="open"?m=(0,e.createComponentVNode)(2,t.Button,{width:"49%",content:"Lock Interior Door",icon:"exclamation-triangle",disabled:l,color:f==="open"?"red":l?"yellow":null,onClick:function(){function i(){return C("force_int")}return i}()}):m=(0,e.createComponentVNode)(2,t.Button,{width:"49%",content:"Cycle to Interior",icon:"arrow-circle-right",disabled:l,onClick:function(){function i(){return C("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:u==="closed"?"Locked":"Open"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Internal Door Status",children:f==="closed"?"Locked":"Open"})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Actions",children:(0,e.createComponentVNode)(2,t.Box,{children:[d,m]})})]})})}return k}()},28736:function(I,r,n){"use strict";r.__esModule=!0,r.AirlockElectronics=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=n(49148),k=1,y=2,S=4,b=8,C=r.AirlockElectronics=function(){function f(l,d){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,c),(0,e.createComponentVNode)(2,u)]})})})}return f}(),c=function(l,d){var m=(0,a.useBackend)(d),i=m.act,h=m.data,V=h.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:V&S?"selected":null,onClick:function(){function v(){return i("unrestricted_access",{unres_dir:S})}return v}()})}),(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:V&y?"selected":null,onClick:function(){function v(){return i("unrestricted_access",{unres_dir:y})}return v}()})}),(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:V&b?"selected":null,onClick:function(){function v(){return i("unrestricted_access",{unres_dir:b})}return v}()})}),(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:V&k?"selected":null,onClick:function(){function v(){return i("unrestricted_access",{unres_dir:k})}return v}()})})]})]})})},u=function(l,d){var m=(0,a.useBackend)(d),i=m.act,h=m.data,V=h.selected_accesses,v=h.one_access,s=h.regions;return(0,e.createComponentVNode)(2,p.AccessList,{usedByRcd:1,rcdButtons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:v,content:"One",onClick:function(){function g(){return i("set_one_access",{access:"one"})}return g}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:!v,content:"All",onClick:function(){function g(){return i("set_one_access",{access:"all"})}return g}()})],4),accesses:s,selectedList:V,accessMod:function(){function g(N){return i("set",{access:N})}return g}(),grantAll:function(){function g(){return i("grant_all")}return g}(),denyAll:function(){function g(){return i("clear_all")}return g}(),grantDep:function(){function g(N){return i("grant_region",{region:N})}return g}(),denyDep:function(){function g(N){return i("deny_region",{region:N})}return g}()})}},47365:function(I,r,n){"use strict";r.__esModule=!0,r.AlertModal=void 0;var e=n(89005),a=n(51057),t=n(70611),o=n(72253),p=n(36036),k=n(98595),y=function(c){return c[c.Increment=1]="Increment",c[c.Decrement=-1]="Decrement",c}(y||{}),S=r.AlertModal=function(){function c(u,f){var l=(0,o.useBackend)(f),d=l.act,m=l.data,i=m.autofocus,h=m.buttons,V=h===void 0?[]:h,v=m.large_buttons,s=m.message,g=s===void 0?"":s,N=m.timeout,x=m.title,B=(0,o.useLocalState)(f,"selected",0),L=B[0],T=B[1],A=V.some(function(F){return F.length>10}),E=A&&v?20:15,w=120+(A?E*V.length:0)+(g.length>40?Math.ceil(g.length/3):0)+(g.length&&v?5:0),O=345+(V.length>2?55:0),M=function(){function F(R){switch(R.key){case t.KEY.Space:case t.KEY.Enter:d("choose",{choice:V[L]});return;case t.KEY.Escape:d("cancel");return;case t.KEY.Left:R.preventDefault(),P(y.Decrement);return;case t.KEY.Tab:case t.KEY.Right:R.preventDefault(),P(y.Increment);return}}return F}(),P=function(){function F(R){var U=(L+R+V.length)%V.length;T(U)}return F}();return(0,e.createComponentVNode)(2,k.Window,{title:x,height:w,width:O,children:[!!N&&(0,e.createComponentVNode)(2,a.Loader,{value:N}),(0,e.createComponentVNode)(2,k.Window.Content,{onKeyDown:M,children:(0,e.createComponentVNode)(2,p.Section,{fill:!0,children:(0,e.createComponentVNode)(2,p.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,p.Stack.Item,{grow:!0,m:1,children:(0,e.createComponentVNode)(2,p.Box,{color:"label",overflow:"hidden",children:g})}),(0,e.createComponentVNode)(2,p.Stack.Item,{children:[!!i&&(0,e.createComponentVNode)(2,p.Autofocus),A?(0,e.createComponentVNode)(2,C,{selected:L}):(0,e.createComponentVNode)(2,b,{selected:L})]})]})})})]})}return c}(),b=function(u,f){var l=(0,o.useBackend)(f),d=l.act,m=l.data,i=m.buttons,h=i===void 0?[]:i,V=m.large_buttons,v=m.swapped_buttons,s=u.selected;return(0,e.createComponentVNode)(2,p.Stack,{fill:!0,justify:"space-around",reverse:!v,children:h.map(function(g,N){return(0,e.createComponentVNode)(2,p.Stack.Item,{grow:V?1:void 0,children:(0,e.createComponentVNode)(2,p.Button,{fluid:!!V,minWidth:5,onClick:function(){function x(){return d("choose",{choice:g})}return x}(),overflowX:"hidden",px:2,py:V?.5:0,selected:s===N,textAlign:"center",children:V?g.toUpperCase():g})},N)})})},C=function(u,f){var l=(0,o.useBackend)(f),d=l.act,m=l.data,i=m.buttons,h=i===void 0?[]:i,V=m.large_buttons,v=m.swapped_buttons,s=u.selected;return(0,e.createComponentVNode)(2,p.Stack,{align:"center",fill:!0,justify:"space-around",reverse:!v,vertical:!0,children:h.map(function(g,N){return(0,e.createComponentVNode)(2,p.Stack.Item,{grow:!0,width:V?"100%":void 0,m:0,children:(0,e.createComponentVNode)(2,p.Button,{fluid:!0,minWidth:20,onClick:function(){function x(){return d("choose",{choice:g})}return x}(),overflowX:"hidden",px:2,py:V?.5:0,selected:s===N,textAlign:"center",children:V?g.toUpperCase():g})},N)})})}},71824:function(I,r,n){"use strict";r.__esModule=!0,r.AppearanceChanger=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.AppearanceChanger=function(){function y(S,b){var C=(0,a.useBackend)(b),c=C.act,u=C.data,f=u.change_race,l=u.species,d=u.specimen,m=u.change_gender,i=u.gender,h=u.has_gender,V=u.change_eye_color,v=u.change_skin_tone,s=u.change_skin_color,g=u.change_head_accessory_color,N=u.change_hair_color,x=u.change_secondary_hair_color,B=u.change_facial_hair_color,L=u.change_secondary_facial_hair_color,T=u.change_head_marking_color,A=u.change_body_marking_color,E=u.change_tail_marking_color,w=u.change_head_accessory,O=u.head_accessory_styles,M=u.head_accessory_style,P=u.change_hair,F=u.hair_styles,R=u.hair_style,U=u.change_hair_gradient,j=u.change_facial_hair,W=u.facial_hair_styles,K=u.facial_hair_style,$=u.change_head_markings,ne=u.head_marking_styles,Y=u.head_marking_style,le=u.change_body_markings,de=u.body_marking_styles,oe=u.body_marking_style,re=u.change_tail_markings,Z=u.tail_marking_styles,ae=u.tail_marking_style,J=u.change_body_accessory,X=u.body_accessory_styles,Q=u.body_accessory_style,q=u.change_alt_head,te=u.alt_head_styles,fe=u.alt_head_style,ye=!1;return(V||v||s||g||N||x||B||L||T||A||E)&&(ye=!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:[!!f&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Species",children:l.map(function(pe){return(0,e.createComponentVNode)(2,t.Button,{content:pe.specimen,selected:pe.specimen===d,onClick:function(){function Le(){return c("race",{race:pe.specimen})}return Le}()},pe.specimen)})}),!!m&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Gender",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Male",selected:i==="male",onClick:function(){function pe(){return c("gender",{gender:"male"})}return pe}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Female",selected:i==="female",onClick:function(){function pe(){return c("gender",{gender:"female"})}return pe}()}),!h&&(0,e.createComponentVNode)(2,t.Button,{content:"Genderless",selected:i==="plural",onClick:function(){function pe(){return c("gender",{gender:"plural"})}return pe}()})]}),!!ye&&(0,e.createComponentVNode)(2,k),!!w&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Head accessory",children:O.map(function(pe){return(0,e.createComponentVNode)(2,t.Button,{content:pe.headaccessorystyle,selected:pe.headaccessorystyle===M,onClick:function(){function Le(){return c("head_accessory",{head_accessory:pe.headaccessorystyle})}return Le}()},pe.headaccessorystyle)})}),!!P&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Hair",children:F.map(function(pe){return(0,e.createComponentVNode)(2,t.Button,{content:pe.hairstyle,selected:pe.hairstyle===R,onClick:function(){function Le(){return c("hair",{hair:pe.hairstyle})}return Le}()},pe.hairstyle)})}),!!U&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Hair Gradient",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Change Style",onClick:function(){function pe(){return c("hair_gradient")}return pe}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Change Offset",onClick:function(){function pe(){return c("hair_gradient_offset")}return pe}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Change Color",onClick:function(){function pe(){return c("hair_gradient_colour")}return pe}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Change Alpha",onClick:function(){function pe(){return c("hair_gradient_alpha")}return pe}()})]}),!!j&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Facial hair",children:W.map(function(pe){return(0,e.createComponentVNode)(2,t.Button,{content:pe.facialhairstyle,selected:pe.facialhairstyle===K,onClick:function(){function Le(){return c("facial_hair",{facial_hair:pe.facialhairstyle})}return Le}()},pe.facialhairstyle)})}),!!$&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Head markings",children:ne.map(function(pe){return(0,e.createComponentVNode)(2,t.Button,{content:pe.headmarkingstyle,selected:pe.headmarkingstyle===Y,onClick:function(){function Le(){return c("head_marking",{head_marking:pe.headmarkingstyle})}return Le}()},pe.headmarkingstyle)})}),!!le&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Body markings",children:de.map(function(pe){return(0,e.createComponentVNode)(2,t.Button,{content:pe.bodymarkingstyle,selected:pe.bodymarkingstyle===oe,onClick:function(){function Le(){return c("body_marking",{body_marking:pe.bodymarkingstyle})}return Le}()},pe.bodymarkingstyle)})}),!!re&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Tail markings",children:Z.map(function(pe){return(0,e.createComponentVNode)(2,t.Button,{content:pe.tailmarkingstyle,selected:pe.tailmarkingstyle===ae,onClick:function(){function Le(){return c("tail_marking",{tail_marking:pe.tailmarkingstyle})}return Le}()},pe.tailmarkingstyle)})}),!!J&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Body accessory",children:X.map(function(pe){return(0,e.createComponentVNode)(2,t.Button,{content:pe.bodyaccessorystyle,selected:pe.bodyaccessorystyle===Q,onClick:function(){function Le(){return c("body_accessory",{body_accessory:pe.bodyaccessorystyle})}return Le}()},pe.bodyaccessorystyle)})}),!!q&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Alternate head",children:te.map(function(pe){return(0,e.createComponentVNode)(2,t.Button,{content:pe.altheadstyle,selected:pe.altheadstyle===fe,onClick:function(){function Le(){return c("alt_head",{alt_head:pe.altheadstyle})}return Le}()},pe.altheadstyle)})})]})})})}return y}(),k=function(S,b){var C=(0,a.useBackend)(b),c=C.act,u=C.data,f=[{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:f.map(function(l){return!!u[l.key]&&(0,e.createComponentVNode)(2,t.Button,{content:l.text,onClick:function(){function d(){return c(l.action)}return d}()},l.key)})})}},72285:function(I,r,n){"use strict";r.__esModule=!0,r.AtmosAlertConsole=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.AtmosAlertConsole=function(){function k(y,S){var b=(0,a.useBackend)(S),C=b.act,c=b.data,u=c.priority||[],f=c.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,[u.length===0&&(0,e.createVNode)(1,"li","color-good","No Priority Alerts",16),u.map(function(l){return(0,e.createVNode)(1,"li",null,(0,e.createComponentVNode)(2,t.Button,{icon:"times",content:l,color:"bad",onClick:function(){function d(){return C("clear",{zone:l})}return d}()}),2,null,l)}),f.length===0&&(0,e.createVNode)(1,"li","color-good","No Minor Alerts",16),f.map(function(l){return(0,e.createVNode)(1,"li",null,(0,e.createComponentVNode)(2,t.Button,{icon:"times",content:l,color:"average",onClick:function(){function d(){return C("clear",{zone:l})}return d}()}),2,null,l)})],0)})})})}return k}()},65805:function(I,r,n){"use strict";r.__esModule=!0,r.AtmosControl=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(36352),p=n(98595),k=function(u){if(u===0)return(0,e.createComponentVNode)(2,t.Box,{color:"green",children:"Good"});if(u===1)return(0,e.createComponentVNode)(2,t.Box,{color:"orange",bold:!0,children:"Warning"});if(u===2)return(0,e.createComponentVNode)(2,t.Box,{color:"red",bold:!0,children:"DANGER"})},y=function(u){if(u===0)return"green";if(u===1)return"orange";if(u===2)return"red"},S=r.AtmosControl=function(){function c(u,f){var l=(0,a.useBackend)(f),d=l.act,m=l.data,i=(0,a.useLocalState)(f,"tabIndex",0),h=i[0],V=i[1],v=function(){function s(g){switch(g){case 0:return(0,e.createComponentVNode)(2,b);case 1:return(0,e.createComponentVNode)(2,C);default:return"WE SHOULDN'T BE HERE!"}}return s}();return(0,e.createComponentVNode)(2,p.Window,{width:800,height:600,children:(0,e.createComponentVNode)(2,p.Window.Content,{scrollable:h===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:h===0,onClick:function(){function s(){return V(0)}return s}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"table"})," Data View"]},"DataView"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:h===1,onClick:function(){function s(){return V(1)}return s}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"map-marked-alt"})," Map View"]},"MapView")]}),v(h)]})})})}return c}(),b=function(u,f){var l=(0,a.useBackend)(f),d=l.act,m=l.data,i=m.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(h){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,o.TableCell,{children:h.name}),(0,e.createComponentVNode)(2,o.TableCell,{children:k(h.danger)}),(0,e.createComponentVNode)(2,o.TableCell,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"cog",content:"Access",onClick:function(){function V(){return d("open_alarm",{aref:h.ref})}return V}()})})]},h.name)})]})})},C=function(u,f){var l=(0,a.useBackend)(f),d=l.act,m=l.data,i=m.alarms,h=m.stationLevelNum,V=m.stationLevelName,v=(0,a.useLocalState)(f,"zoom",1),s=v[0],g=v[1],N=(0,a.useLocalState)(f,"z_current",h[0]),x=N[0],B=N[1];return(0,e.createComponentVNode)(2,t.Box,{height:"526px",mb:"0.5rem",overflow:"hidden",children:(0,e.createComponentVNode)(2,t.NanoMap,{onZoom:function(){function L(T){return g(T)}return L}(),zLevels:h,zNames:V,z_current:x,setZCurrent:B,children:i.map(function(L){return(0,e.createComponentVNode)(2,t.NanoMap.Marker,{x:L.x,y:L.y,z:L.z,z_current:x,zoom:s,icon:"circle",tooltip:L.name,color:y(L.danger),onClick:function(){function T(){return d("open_alarm",{aref:L.ref})}return T}()},L.ref)})})})}},87816:function(I,r,n){"use strict";r.__esModule=!0,r.AtmosFilter=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.AtmosFilter=function(){function k(y,S){var b=(0,a.useBackend)(S),C=b.act,c=b.data,u=c.on,f=c.pressure,l=c.max_pressure,d=c.filter_type,m=c.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:u?"On":"Off",color:u?null:"red",selected:u,onClick:function(){function i(){return C("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:f===0,width:2.2,onClick:function(){function i(){return C("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:l,value:f,onDrag:function(){function i(h,V){return C("custom_pressure",{pressure:V})}return i}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",textAlign:"center",disabled:f===l,width:2.2,onClick:function(){function i(){return C("max_pressure")}return i}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Filter",children:m.map(function(i){return(0,e.createComponentVNode)(2,t.Button,{selected:i.gas_type===d,content:i.label,onClick:function(){function h(){return C("set_filter",{filter:i.gas_type})}return h}()},i.label)})})]})})})})}return k}()},52977:function(I,r,n){"use strict";r.__esModule=!0,r.AtmosMixer=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.AtmosMixer=function(){function y(S,b){var C=(0,a.useBackend)(b),c=C.act,u=C.data,f=u.on,l=u.pressure,d=u.max_pressure,m=u.node1_concentration,i=u.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:f?"On":"Off",color:f?null:"red",selected:f,onClick:function(){function h(){return c("power")}return h}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Rate",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"fast-backward",textAlign:"center",disabled:l===0,width:2.2,onClick:function(){function h(){return c("min_pressure")}return h}()}),(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,unit:"kPa",width:6.1,lineHeight:1.5,step:10,minValue:0,maxValue:d,value:l,onDrag:function(){function h(V,v){return c("custom_pressure",{pressure:v})}return h}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",textAlign:"center",disabled:l===d,width:2.2,onClick:function(){function h(){return c("max_pressure")}return h}()})]}),(0,e.createComponentVNode)(2,k,{node_name:"Node 1",node_ref:m}),(0,e.createComponentVNode)(2,k,{node_name:"Node 2",node_ref:i})]})})})})}return y}(),k=function(S,b){var C=(0,a.useBackend)(b),c=C.act,u=C.data,f=S.node_name,l=S.node_ref;return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:f,children:[(0,e.createComponentVNode)(2,t.Button,{icon:"fast-backward",textAlign:"center",width:2.2,disabled:l===0,onClick:function(){function d(){return c("set_node",{node_name:f,concentration:(l-10)/100})}return d}()}),(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,unit:"%",width:6.1,lineHeight:1.5,stepPixelSize:10,minValue:0,maxValue:100,value:l,onChange:function(){function d(m,i){return c("set_node",{node_name:f,concentration:i/100})}return d}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",textAlign:"center",width:2.2,disabled:l===100,onClick:function(){function d(){return c("set_node",{node_name:f,concentration:(l+10)/100})}return d}()})]})}},11748:function(I,r,n){"use strict";r.__esModule=!0,r.AtmosPump=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.AtmosPump=function(){function k(y,S){var b=(0,a.useBackend)(S),C=b.act,c=b.data,u=c.on,f=c.rate,l=c.max_rate,d=c.gas_unit,m=c.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:u?"On":"Off",color:u?null:"red",selected:u,onClick:function(){function i(){return C("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:f===0,width:2.2,onClick:function(){function i(){return C("min_rate")}return i}()}),(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,unit:d,width:6.1,lineHeight:1.5,step:m,minValue:0,maxValue:l,value:f,onDrag:function(){function i(h,V){return C("custom_rate",{rate:V})}return i}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",textAlign:"center",disabled:f===l,width:2.2,onClick:function(){function i(){return C("max_rate")}return i}()})]})]})})})})}return k}()},76511:function(I,r,n){"use strict";r.__esModule=!0,r.AutoDoc=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=n(39473),k=r.AutoDoc=function(){function y(S,b){var C=(0,a.useBackend)(b),c=C.act,u=C.data,f=u.HasTray,l=u.TguiIcons,d=u.occupant,m=u.isHealing,i=u.fixtimer,h=u.healtimer,V=(0,a.useLocalState)(b,"ChoosePart","chest"),v=V[0],s=V[1];return(0,e.createComponentVNode)(2,o.Window,{theme:"ntOS95",resizable:!0,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Flex,{width:"100%",children:[(0,e.createComponentVNode)(2,p.FlexItem,{basis:"30%",children:[(0,e.createVNode)(1,"img",null,null,1,{height:"256px",width:"256px",src:"data:image/jpeg;base64,"+l.human,style:{position:"absolute","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createVNode)(1,"img",null,null,1,{height:"256px",width:"256px",src:"data:image/jpeg;base64,"+l[v],style:{position:"absolute","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}})]}),(0,e.createComponentVNode)(2,p.FlexItem,{basis:"70%",children:(0,e.createComponentVNode)(2,t.Section,{title:"Info",buttons:(0,e.createFragment)([Object.keys(l).map(function(g){return g!=="human"&&(0,e.createComponentVNode)(2,t.Button,{content:g,selected:g===v,onClick:function(){function N(){return s(g)}return N}(),z:!0},g)}),(0,e.createComponentVNode)(2,t.Button,{style:{"margin-left":"30px"},content:f?"Eject Tray":"Reject Tray",locked:m,onClick:function(){function g(){return c("ChangeTrayState")}return g}()})],0),children:(0,e.createComponentVNode)(2,t.Box,{children:[!!(d[v]&&d[v].extOrgan)&&d[v].extOrgan.map(function(g){return(0,e.createFragment)([(0,e.createVNode)(1,"b",null,g.name,0),(0,e.createVNode)(1,"br"),g.open?"opened":"",g.broken?"broken":"",!!g.broken&&(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{content:"Fix",style:{"margin-left":"30px"},locked:m,onClick:function(){function N(){return c("FixOrgan",{organ:g.name,type:"fracture"})}return N}()}),(0,e.createVNode)(1,"br")],4),g.internalBleeding?"bleeding":"",!!g.internalBleeding&&(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{content:"Fix",style:{"margin-left":"30px"},locked:m,onClick:function(){function N(){return c("FixOrgan",{organ:g.name,type:"bleeding"})}return N}()}),(0,e.createVNode)(1,"br")],4),(0,e.createTextVNode)("Internals:"),(0,e.createComponentVNode)(2,t.Button,{content:"Complete",style:{"margin-left":"10px"},locked:m,onClick:function(){function N(){return c("FixOrgan",{organ:g.name,type:"completeInternal"})}return N}()}),(0,e.createVNode)(1,"br"),g.dead?"dead":"",!!g.dead&&(0,e.createVNode)(1,"br"),g.germ_level?"Germ level is "+g.germ_level:"",!!g.germ_level&&(0,e.createVNode)(1,"br"),g.totalLoss?"Total damage is "+g.totalLoss:"",(0,e.createVNode)(1,"br")],0,g.name)}),!!(d[v]&&d[v].intOrgan)&&d[v].intOrgan.map(function(g){return(0,e.createFragment)([(0,e.createVNode)(1,"b",null,g.name,0),(0,e.createComponentVNode)(2,t.Button,{content:"Remove",style:{"margin-left":"1.5rem"},locked:m,onClick:function(){function N(){return c("FixOrgan",{organ:g.name,type:"remove"})}return N}()}),(0,e.createVNode)(1,"br"),g.dead?"dead":"",!!g.dead&&(0,e.createVNode)(1,"br"),g.germ_level?"Germ level is "+g.germ_level:"",!!g.germ_level&&(0,e.createVNode)(1,"br"),g.totalLoss?"Total damage is "+g.damage:"",!!g.totalLoss&&(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{content:"Heal",style:{"margin-left":"30px"},locked:m,onClick:function(){function N(){return c("FixOrgan",{organ:g.name,type:"damage"})}return N}()}),(0,e.createVNode)(1,"br")],4)],0,g.name)}),!!d.TotalBruteBurn&&(0,e.createFragment)([(0,e.createTextVNode)("Total external damage is "),d.TotalBruteBurn,(0,e.createComponentVNode)(2,t.Button,{style:{"margin-left":"30px"},content:"Start Healing",onClick:function(){function g(){return c("HealBruteBurn")}return g}()}),(0,e.createComponentVNode)(2,t.Button,{style:{"margin-left":"30px"},content:"Reattach externals",onClick:function(){function g(){return c("CompleteExternal")}return g}()})],0),(0,e.createVNode)(1,"br"),!!i&&(0,e.createVNode)(1,"b",null,[(0,e.createTextVNode)("Fixing organ: "),i],0),!!h&&(0,e.createVNode)(1,"b",null,[(0,e.createTextVNode)("Healing external damage: "),h],0)]})})})]})})})}return y}()},59179:function(I,r,n){"use strict";r.__esModule=!0,r.Autolathe=void 0;var e=n(89005),a=n(64795),t=n(88510),o=n(72253),p=n(36036),k=n(98595),y=n(25328),S=function(c,u,f,l){return c.requirements===null?!0:!(c.requirements.metal*l>u||c.requirements.glass*l>f)},b=r.Autolathe=function(){function C(c,u){var f=(0,o.useBackend)(u),l=f.act,d=f.data,m=d.total_amount,i=d.max_amount,h=d.metal_amount,V=d.glass_amount,v=d.busyname,s=d.busyamt,g=d.showhacked,N=d.buildQueue,x=d.buildQueueLen,B=d.recipes,L=d.categories,T=(0,o.useSharedState)(u,"category",0),A=T[0],E=T[1];A===0&&(A="Tools");var w=h.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1,"),O=V.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1,"),M=m.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1,"),P=(0,o.useSharedState)(u,"search_text",""),F=P[0],R=P[1],U=(0,y.createSearch)(F,function($){return $.name}),j="";x>0&&(j=N.map(function($,ne){return(0,e.createComponentVNode)(2,p.Box,{children:(0,e.createComponentVNode)(2,p.Button,{fluid:!0,icon:"times",color:"transparent",content:N[ne][0],onClick:function(){function Y(){return l("remove_from_queue",{remove_from_queue:N.indexOf($)+1})}return Y}()},$)},ne)}));var W=(0,a.flow)([(0,t.filter)(function($){return($.category.indexOf(A)>-1||F)&&(d.showhacked||!$.hacked)}),F&&(0,t.filter)(U),(0,t.sortBy)(function($){return $.name.toLowerCase()})])(B),K="Build";return F?K="Results for: '"+F+"':":A&&(K="Build ("+A+")"),(0,e.createComponentVNode)(2,k.Window,{width:750,height:525,children:(0,e.createComponentVNode)(2,k.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,p.Stack,{fill:!0,horizontal:!0,children:[(0,e.createComponentVNode)(2,p.Stack.Item,{width:"70%",children:(0,e.createComponentVNode)(2,p.Section,{fill:!0,scrollable:!0,title:K,buttons:(0,e.createComponentVNode)(2,p.Dropdown,{width:"150px",options:L,selected:A,onSelected:function(){function $(ne){return E(ne)}return $}()}),children:[(0,e.createComponentVNode)(2,p.Input,{fluid:!0,placeholder:"Search for...",onInput:function(){function $(ne,Y){return R(Y)}return $}(),mb:1}),W.map(function($){return(0,e.createComponentVNode)(2,p.Stack.Item,{grow:!0,children:[(0,e.createComponentVNode)(2,p.DmIcon,{icon:$.icon,icon_state:$.icon_state,style:{"vertical-align":"middle",width:"32px",margin:"0px","margin-left":"0px"}}),(0,e.createComponentVNode)(2,p.Button,{mr:1,icon:"hammer",selected:d.busyname===$.name&&d.busyamt===1,disabled:!S($,d.metal_amount,d.glass_amount,1),onClick:function(){function ne(){return l("make",{make:$.uid,multiplier:1})}return ne}(),children:(0,y.toTitleCase)($.name)}),$.max_multiplier>=10&&(0,e.createComponentVNode)(2,p.Button,{mr:1,icon:"hammer",selected:d.busyname===$.name&&d.busyamt===10,disabled:!S($,d.metal_amount,d.glass_amount,10),onClick:function(){function ne(){return l("make",{make:$.uid,multiplier:10})}return ne}(),children:"10x"}),$.max_multiplier>=25&&(0,e.createComponentVNode)(2,p.Button,{mr:1,icon:"hammer",selected:d.busyname===$.name&&d.busyamt===25,disabled:!S($,d.metal_amount,d.glass_amount,25),onClick:function(){function ne(){return l("make",{make:$.uid,multiplier:25})}return ne}(),children:"25x"}),$.max_multiplier>25&&(0,e.createComponentVNode)(2,p.Button,{mr:1,icon:"hammer",selected:d.busyname===$.name&&d.busyamt===$.max_multiplier,disabled:!S($,d.metal_amount,d.glass_amount,$.max_multiplier),onClick:function(){function ne(){return l("make",{make:$.uid,multiplier:$.max_multiplier})}return ne}(),children:[$.max_multiplier,"x"]}),$.requirements&&Object.keys($.requirements).map(function(ne){return(0,y.toTitleCase)(ne)+": "+$.requirements[ne]}).join(", ")||(0,e.createComponentVNode)(2,p.Box,{children:"No resources required."})]},$.ref)})]})}),(0,e.createComponentVNode)(2,p.Stack.Item,{width:"30%",children:[(0,e.createComponentVNode)(2,p.Section,{title:"Materials",children:(0,e.createComponentVNode)(2,p.LabeledList,{children:[(0,e.createComponentVNode)(2,p.LabeledList.Item,{label:"Metal",children:w}),(0,e.createComponentVNode)(2,p.LabeledList.Item,{label:"Glass",children:O}),(0,e.createComponentVNode)(2,p.LabeledList.Item,{label:"Total",children:M}),(0,e.createComponentVNode)(2,p.LabeledList.Item,{label:"Storage",children:[d.fill_percent,"% Full"]})]})}),(0,e.createComponentVNode)(2,p.Section,{title:"Building",children:(0,e.createComponentVNode)(2,p.Box,{color:v?"green":"",children:v||"Nothing"})}),(0,e.createComponentVNode)(2,p.Section,{title:"Build Queue",height:23.7,children:[j,(0,e.createComponentVNode)(2,p.Button,{mt:.5,fluid:!0,icon:"times",content:"Clear All",color:"red",disabled:!d.buildQueueLen,onClick:function(){function $(){return l("clear_queue")}return $}()})]})]})]})})})}return C}()},64273:function(I,r,n){"use strict";r.__esModule=!0,r.Biogenerator=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=n(62411),k=r.Biogenerator=function(){function C(c,u){var f=(0,a.useBackend)(u),l=f.data,d=f.config,m=l.container,i=l.processing,h=d.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,p.Operating,{operating:i,name:h}),(0,e.createComponentVNode)(2,y),(0,e.createComponentVNode)(2,S),(0,e.createComponentVNode)(2,b)]})})})}return C}(),y=function(c,u){var f=(0,a.useBackend)(u),l=f.act,d=f.data,m=d.biomass,i=d.container,h=d.container_curr_reagents,V=d.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:m}),(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:"}),i?(0,e.createComponentVNode)(2,t.ProgressBar,{value:h,maxValue:V,children:(0,e.createComponentVNode)(2,t.Box,{textAlign:"center",children:h+" / "+V+" units"})}):(0,e.createComponentVNode)(2,t.Stack.Item,{children:"None"})]})]})},S=function(c,u){var f=(0,a.useBackend)(u),l=f.act,d=f.data,m=d.has_plants,i=d.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:!m,tooltip:m?"":"There are no plants in the biogenerator.",tooltipPosition:"top-start",content:"Activate",onClick:function(){function h(){return l("activate")}return h}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:"40%",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"flask",disabled:!i,tooltip:i?"":"The biogenerator does not have a container.",tooltipPosition:"top",content:"Detach Container",onClick:function(){function h(){return l("detach_container")}return h}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:"30%",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"eject",disabled:!m,tooltip:m?"":"There are no stored plants to eject.",tooltipPosition:"top-end",content:"Eject Plants",onClick:function(){function h(){return l("eject_plants")}return h}()})})]})})},b=function(c,u){var f=(0,a.useBackend)(u),l=f.act,d=f.data,m=d.biomass,i=d.product_list,h=d.container,V=(0,a.useSharedState)(u,"vendAmount",1),v=V[0],s=V[1],g=Object.entries(i).map(function(N,x){var B=Object.entries(N[1]).map(function(L){return L[1]});return(0,e.createComponentVNode)(2,t.Collapsible,{title:N[0],open:!0,children:B.map(function(L){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:L.name}),(0,e.createComponentVNode)(2,t.Stack.Item,{textAlign:"right",width:"20%",children:[L.cost*v,(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:L.needs_container&&!h?(0,e.createComponentVNode)(2,t.Button,{content:"No container",disabled:!0,icon:"flask",tooltip:"\u0412\u0441\u0442\u0430\u0432\u044C\u0442\u0435 \u043B\u044E\u0431\u043E\u0439 \u043A\u043E\u043D\u0442\u0435\u0439\u043D\u0435\u0440 \u0434\u043B\u044F \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u043D\u0438\u044F \u044D\u0442\u043E\u0439 \u043E\u043F\u0446\u0438\u0438"}):(0,e.createComponentVNode)(2,t.Button,{content:"Vend",disabled:m0?Math.floor(A/l):0,M=f?"@?%%!\u2116@"+l:l,P=A>=l,F=d-d%5+(d%5>0?5:0);return(0,e.createComponentVNode)(2,t.Section,{title:"\u0418\u0441\u0441\u043B\u0435\u0434\u043E\u0432\u0430\u043D\u0438\u0435 \u0420\u0430\u0437\u043B\u043E\u043C\u0430",children:[(0,e.createComponentVNode)(2,t.Box,{color:"silver",bold:!0,children:B}),(0,e.createComponentVNode)(2,t.ProgressBar,{color:w===0?"bad":w<100?"average":"good",value:T,maxValue:L,mt:1,mb:2,children:[w<=100?w:100," %"]}),(0,e.createComponentVNode)(2,t.Box,{children:["\u0414\u0430\u043D\u043D\u044B\u0435 \u0434\u043B\u044F \u0437\u043E\u043D\u0434\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u044F: ",(0,e.createComponentVNode)(2,t.Box,{color:A?P?"good":"average":"bad",as:"span",children:Math.floor(A)}),(0,e.createComponentVNode)(2,t.Button,{icon:"atom",tooltip:"\u0414\u043B\u044F \u0433\u0435\u043D\u0435\u0440\u0430\u0446\u0438\u0438 \u043E\u0434\u043D\u043E\u0433\u043E \u0437\u043E\u043D\u0434\u0438\u0440\u0443\u044E\u0449\u0435\u0433\u043E \u0438\u043C\u043F\u0443\u043B\u044C\u0441\u0430 \u043D\u0443\u0436\u043D\u043E \u0441\u043E\u0431\u0440\u0430\u0442\u044C "+M+" \u0434\u0430\u043D\u043D\u044B\u0445.",content:d>0?"\u041F\u043E\u0434\u0433\u043E\u0442\u043E\u0432\u043A\u0430 "+F+" \u0441\u0435\u043A\u0443\u043D\u0434":"\u0417\u043E\u043D\u0434\u0438\u0440\u043E\u0432\u0430\u0442\u044C ("+O+")",disabled:!P||d>0,onClick:function(){function R(){return c("probe",{rift_id:x})}return R}(),mx:2}),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",content:E?"\u0420\u0435\u0437\u0443\u043B\u044C\u0442\u0430\u0442 \u043F\u043E\u043B\u0443\u0447\u0435\u043D":"\u041F\u043E\u043B\u0443\u0447\u0438\u0442\u044C \u0440\u0435\u0437\u0443\u043B\u044C\u0442\u0430\u0442 \u0438\u0441\u0441\u043B\u0435\u0434\u043E\u0432\u0430\u043D\u0438\u0439",disabled:E||w<100,onClick:function(){function R(){return c("reward",{rift_id:x})}return R}(),mt:1.4})]})]})}return g}(),v=function(){function g(N){var x=N.servName,B=N.servData;return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:x,children:B.length?B.map(function(L,T){return(0,e.createComponentVNode)(2,t.Box,{children:[L.riftName," \u2014 ",Math.floor(L.probePoints)," ","\u0434\u0430\u043D\u043D\u044B\u0445."]},T)}):(0,e.createComponentVNode)(2,t.Box,{children:"\u041D\u0435\u0442 \u0434\u0430\u043D\u043D\u044B\u0445"})})}return g}(),s=function(){function g(N){var x=N.scannerId,B=N.scannerName,L=N.scanStatus,T=N.canSwitch,A=N.switching,E=p[L],w=function(){function M(){if(E==="OFF")return[" ","silver"];if(E==="NO_RIFTS")return["\u041D\u0435\u0442 \u0440\u0430\u0437\u043B\u043E\u043C\u043E\u0432","silver"];if(E==="SOME_RIFTS")return["\u0421\u043A\u0430\u043D\u0438\u0440\u0443\u0435\u0442","good"];if(E==="DANGER")return["\u041E\u043F\u0430\u0441\u043D\u043E\u0441\u0442\u044C! \u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u0435 \u0441\u043A\u0430\u043D\u0435\u0440!","bad"]}return M}(),O=w();return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:B,py:0,children:[A?(0,e.createComponentVNode)(2,t.Icon,{name:"circle-notch",color:"silver",spin:!0,ml:1.85,mr:1.79,my:.84}):T?(0,e.createComponentVNode)(2,t.Button,{icon:"power-off",color:E==="OFF"?"bad":"good",onClick:function(){function M(){return c("toggle_scanner",{scanner_id:x})}return M}(),ml:1,mr:1}):(0,e.createComponentVNode)(2,t.Icon,{name:"power-off",color:E==="OFF"?"bad":"good",ml:1.85,mr:1.79,my:.84}),E!=="OFF"&&(0,e.createComponentVNode)(2,t.Box,{as:"span",color:O[1],children:O[0]})]})}return g}();return(0,e.createComponentVNode)(2,o.Window,{width:570,height:400,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[m&&m.map(function(g){return V(g)}),(0,e.createComponentVNode)(2,t.Section,{title:"\u0421\u043A\u0430\u043D\u0435\u0440\u044B \u0432 \u0441\u0435\u0442\u0438",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:h&&h.map(function(g){return s(g)})})}),(0,e.createComponentVNode)(2,t.Section,{title:"\u0421\u0435\u0440\u0432\u0435\u0440\u044B \u0432 \u0441\u0435\u0442\u0438",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:i&&i.map(function(g){return v(g)})})})]})})}return y}()},27629:function(I,r,n){"use strict";r.__esModule=!0,r.BluespaceTap=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=n(49968),k=r.BluespaceTap=function(){function y(S,b){var C=(0,a.useBackend)(b),c=C.act,u=C.data,f=u.product||[],l=u.desiredLevel,d=u.inputLevel,m=u.points,i=u.totalPoints,h=u.powerUse,V=u.availablePower,v=u.maxLevel,s=u.emagged,g=u.safeLevels,N=u.nextLevelPower,x=l>d&&"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:[!!s&&(0,e.createComponentVNode)(2,t.NoticeBox,{danger:1,children:"Safety Protocols disabled"}),d>g&&(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:d}),(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:l===0,tooltip:"Set to 0",onClick:function(){function B(){return c("set",{set_level:0})}return B}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"step-backward",tooltip:"Decrease to actual input level",disabled:l===0,onClick:function(){function B(){return c("set",{set_level:d})}return B}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"backward",disabled:l===0,tooltip:"Decrease one step",onClick:function(){function B(){return c("decrease")}return B}()})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:1,mx:1,children:(0,e.createComponentVNode)(2,t.Slider,{value:l,fillValue:d,minValue:0,color:x,maxValue:v,stepPixelSize:20,step:1,onChange:function(){function B(L,T){return c("set",{set_level:T})}return B}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"forward",disabled:l===v,tooltip:"Increase one step",tooltipPosition:"left",onClick:function(){function B(){return c("increase")}return B}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",disabled:l===v,tooltip:"Set to max",tooltipPosition:"left",onClick:function(){function B(){return c("set",{set_level:v})}return B}()})]})]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Current Power Use",children:(0,p.formatPower)(h)}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power for next level",children:(0,p.formatPower)(N)}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Surplus Power",children:(0,p.formatPower)(V)})]})})}),(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:m}),(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:f.map(function(B){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:B.name,children:(0,e.createComponentVNode)(2,t.Button,{disabled:B.price>=m,onClick:function(){function L(){return c("vend",{target:B.key})}return L}(),content:B.price})},B.key)})})})})]})})]})})})}return y}()},33758:function(I,r,n){"use strict";r.__esModule=!0,r.BodyScanner=void 0;var e=n(89005),a=n(44879),t=n(25328),o=n(72253),p=n(36036),k=n(98595),y=[["good","\u041D\u043E\u0440\u043C\u0430"],["average","\u041A\u0440\u0438\u0442\u0438\u0447\u0435\u0441\u043A\u043E\u0435 \u0441\u043E\u0441\u0442\u043E\u044F\u043D\u0438\u0435"],["bad","\u0417\u0430\u0444\u0438\u043A\u0441\u0438\u0440\u043E\u0432\u0430\u043D\u0430 \u0441\u043C\u0435\u0440\u0442\u044C"]],S=[["hasBorer","bad","\u0412 \u043B\u043E\u0431\u043D\u043E\u0439 \u0434\u043E\u043B\u0435 \u043E\u0431\u043D\u0430\u0440\u0443\u0436\u0435\u043D\u043E \u043A\u0440\u0443\u043F\u043D\u043E\u0435 \u043E\u0431\u0440\u0430\u0437\u043E\u0432\u0430\u043D\u0438\u0435, \u0432\u043E\u0437\u043C\u043E\u0436\u043D\u043E, \u0437\u043B\u043E\u043A\u0430\u0447\u0435\u0441\u0442\u0432\u0435\u043D\u043D\u043E\u0435. \u0420\u0435\u043A\u043E\u043C\u0435\u043D\u0434\u0443\u0435\u0442\u0441\u044F \u0445\u0438\u0440\u0443\u0440\u0433\u0438\u0447\u0435\u0441\u043A\u043E\u0435 \u0443\u0434\u0430\u043B\u0435\u043D\u0438\u0435."],["hasVirus","bad","\u041E\u0431\u043D\u0430\u0440\u0443\u0436\u0435\u043D \u0432\u0438\u0440\u0443\u0441 \u0432 \u043A\u0440\u043E\u0432\u043E\u0442\u043E\u043A\u0435 \u043F\u0430\u0446\u0438\u0435\u043D\u0442\u0430."],["blind","average","\u041E\u0431\u043D\u0430\u0440\u0443\u0436\u0435\u043D\u0430 \u043A\u0430\u0442\u0430\u0440\u0430\u043A\u0442\u0430."],["colourblind","average","\u041E\u0431\u043D\u0430\u0440\u0443\u0436\u0435\u043D\u044B \u043D\u0430\u0440\u0443\u0448\u0435\u043D\u0438\u044F \u0432 \u0440\u0430\u0431\u043E\u0442\u0435 \u0444\u043E\u0442\u043E\u0440\u0435\u0446\u0435\u043F\u0442\u043E\u0440\u043E\u0432"],["nearsighted","average","\u041E\u0431\u043D\u0430\u0440\u0443\u0436\u0435\u043D\u043E \u0441\u043C\u0435\u0449\u0435\u043D\u0438\u0435 \u0441\u0435\u0442\u0447\u0430\u0442\u043A\u0438."]],b=[["\u0423\u0434\u0443\u0448\u0435\u043D\u0438\u0435","oxyLoss"],["\u041F\u043E\u0432\u0440\u0435\u0436\u0434\u0435\u043D\u0438\u0435 \u043C\u043E\u0437\u0433\u0430","brainLoss"],["\u0422\u043E\u043A\u0441\u0438\u043D\u044B","toxLoss"],["\u0420\u0430\u0434\u0438\u0430\u0446\u0438\u043E\u043D\u043D\u043E\u0435 \u043F\u043E\u0440\u0430\u0436\u0435\u043D\u0438\u0435","radLoss"],["\u0424\u0438\u0437\u0438\u0447\u0435\u0441\u043A\u0438\u0435 \u043F\u043E\u0432\u0440\u0435\u0436\u0434\u0435\u043D\u0438\u044F","bruteLoss"],["\u0413\u0435\u043D\u0435\u0442\u0438\u0447\u0435\u0441\u043A\u0438\u0435 \u043F\u043E\u0432\u0440\u0435\u0436\u0434\u0435\u043D\u0438\u044F","cloneLoss"],["\u041E\u0436\u043E\u0433\u0438","fireLoss"],["\u041F\u0430\u0440\u0430\u043B\u0438\u0447 \u0442\u0435\u043B\u0430","paralysis"]],C={average:[.25,.5],bad:[.5,1/0]},c=function(x,B){for(var L=[],T=0;T0?x.filter(function(B){return!!B}).reduce(function(B,L){return(0,e.createFragment)([B,(0,e.createComponentVNode)(2,p.Box,{children:L},L)],0)},null):null},f=function(x){if(x>100){if(x<300)return"\u041B\u0451\u0433\u043A\u0430\u044F \u0438\u043D\u0444\u0435\u043A\u0446\u0438\u044F";if(x<400)return"\u041B\u0451\u0433\u043A\u0430\u044F \u0438\u043D\u0444\u0435\u043A\u0446\u0438\u044F+";if(x<500)return"\u041B\u0451\u0433\u043A\u0430\u044F \u0438\u043D\u0444\u0435\u043A\u0446\u0438\u044F++";if(x<700)return"\u041E\u0441\u0442\u0440\u0430\u044F \u0438\u043D\u0444\u0435\u043A\u0446\u0438\u044F";if(x<800)return"\u041E\u0441\u0442\u0440\u0430\u044F \u0438\u043D\u0444\u0435\u043A\u0446\u0438\u044F+";if(x<900)return"\u041E\u0441\u0442\u0440\u0430\u044F \u0438\u043D\u0444\u0435\u043A\u0446\u0438\u044F++";if(x>=900)return"\u0421\u0435\u043F\u0441\u0438\u0441"}return""},l=r.BodyScanner=function(){function N(x,B){var L=(0,o.useBackend)(B),T=L.data,A=T.occupied,E=T.occupant,w=E===void 0?{}:E,O=A?(0,e.createComponentVNode)(2,d,{occupant:w}):(0,e.createComponentVNode)(2,g);return(0,e.createComponentVNode)(2,k.Window,{width:700,height:600,title:"\u041C\u0435\u0434\u0438\u0446\u0438\u043D\u0441\u043A\u0438\u0439 \u0441\u043A\u0430\u043D\u0435\u0440",children:(0,e.createComponentVNode)(2,k.Window.Content,{scrollable:!0,children:O})})}return N}(),d=function(x){var B=x.occupant;return(0,e.createComponentVNode)(2,p.Box,{children:[(0,e.createComponentVNode)(2,m,{occupant:B}),(0,e.createComponentVNode)(2,i,{occupant:B}),(0,e.createComponentVNode)(2,h,{occupant:B}),(0,e.createComponentVNode)(2,v,{organs:B.extOrgan}),(0,e.createComponentVNode)(2,s,{organs:B.intOrgan})]})},m=function(x,B){var L=(0,o.useBackend)(B),T=L.act,A=L.data,E=A.occupant;return(0,e.createComponentVNode)(2,p.Section,{title:"\u041F\u0430\u0446\u0438\u0435\u043D\u0442",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,p.Button,{icon:"print",onClick:function(){function w(){return T("print_p")}return w}(),children:"\u0420\u0430\u0441\u043F\u0435\u0447\u0430\u0442\u0430\u0442\u044C \u043E\u0442\u0447\u0451\u0442"}),(0,e.createComponentVNode)(2,p.Button,{icon:"print",onClick:function(){function w(){return T("insurance")}return w}(),children:"\u0421\u043F\u0438\u0441\u0430\u0442\u044C \u0441\u0442\u0440\u0430\u0445\u043E\u0432\u043A\u0443"}),(0,e.createComponentVNode)(2,p.Button,{icon:"user-slash",onClick:function(){function w(){return T("eject_id")}return w}(),children:"\u0418\u0437\u0432\u043B\u0435\u0447\u044C \u043A\u0430\u0440\u0442\u0443"}),(0,e.createComponentVNode)(2,p.Button,{icon:"user-slash",onClick:function(){function w(){return T("ejectify")}return w}(),children:"\u0418\u0437\u0432\u043B\u0435\u0447\u044C \u043F\u0430\u0446\u0438\u0435\u043D\u0442\u0430"})],4),children:(0,e.createComponentVNode)(2,p.LabeledList,{children:[(0,e.createComponentVNode)(2,p.LabeledList.Item,{label:"\u0418\u043C\u044F",children:E.name}),(0,e.createComponentVNode)(2,p.LabeledList.Item,{label:"\u041E\u0446\u0435\u043D\u043A\u0430 \u0437\u0434\u043E\u0440\u043E\u0432\u044C\u044F",children:(0,e.createComponentVNode)(2,p.ProgressBar,{min:"0",max:E.maxHealth,value:E.health/E.maxHealth,ranges:{good:[.5,1/0],average:[0,.5],bad:[-1/0,0]}})}),(0,e.createComponentVNode)(2,p.LabeledList.Item,{label:"\u0421\u043E\u0441\u0442\u043E\u044F\u043D\u0438\u0435",color:y[E.stat][0],children:y[E.stat][1]}),(0,e.createComponentVNode)(2,p.LabeledList.Item,{label:"\u0422\u0435\u043C\u043F\u0435\u0440\u0430\u0442\u0443\u0440\u0430 \u0442\u0435\u043B\u0430",children:[(0,e.createComponentVNode)(2,p.AnimatedNumber,{value:(0,a.round)(E.bodyTempC)}),"\xB0C,\xA0",(0,e.createComponentVNode)(2,p.AnimatedNumber,{value:(0,a.round)(E.bodyTempF)}),"\xB0F"]}),(0,e.createComponentVNode)(2,p.LabeledList.Item,{label:"\u0418\u043C\u043F\u043B\u0430\u043D\u0442\u044B",children:E.implant_len?(0,e.createComponentVNode)(2,p.Box,{children:E.implant.map(function(w){return w.name}).join(", ")}):(0,e.createComponentVNode)(2,p.Box,{color:"label",children:"\u041E\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u044E\u0442"})})]})})},i=function(x){var B=x.occupant;return B.hasBorer||B.blind||B.colourblind||B.nearsighted||B.hasVirus?(0,e.createComponentVNode)(2,p.Section,{title:"\u041E\u0442\u043A\u043B\u043E\u043D\u0435\u043D\u0438\u044F",children:S.map(function(L,T){if(B[L[0]])return(0,e.createComponentVNode)(2,p.Box,{color:L[1],bold:L[1]==="bad",children:L[2]},L[2])})}):(0,e.createComponentVNode)(2,p.Section,{title:"\u041E\u0442\u043A\u043B\u043E\u043D\u0435\u043D\u0438\u044F",children:(0,e.createComponentVNode)(2,p.Box,{color:"label",children:"\u041D\u0438\u043A\u0430\u043A\u0438\u0445 \u043E\u0442\u043A\u043B\u043E\u043D\u0435\u043D\u0438\u0439 \u043E\u0442 \u043D\u043E\u0440\u043C\u044B \u043D\u0435 \u043E\u0431\u043D\u0430\u0440\u0443\u0436\u0435\u043D\u043E."})})},h=function(x){var B=x.occupant;return(0,e.createComponentVNode)(2,p.Section,{title:"\u041E\u0431\u0449\u0438\u0439 \u0443\u0440\u043E\u043D",children:(0,e.createComponentVNode)(2,p.Table,{children:c(b,function(L,T,A){return(0,e.createFragment)([(0,e.createComponentVNode)(2,p.Table.Row,{color:"label",children:[(0,e.createComponentVNode)(2,p.Table.Cell,{children:[L[0],":"]}),(0,e.createComponentVNode)(2,p.Table.Cell,{children:!!T&&T[0]+":"})]}),(0,e.createComponentVNode)(2,p.Table.Row,{children:[(0,e.createComponentVNode)(2,p.Table.Cell,{children:(0,e.createComponentVNode)(2,V,{value:B[L[1]],marginBottom:A100)&&"average"||!!B.status.robotic&&"label",width:"33%",children:(0,t.capitalize)(B.name)}),(0,e.createComponentVNode)(2,p.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,p.ProgressBar,{m:-.5,min:"0",max:B.maxHealth,mt:L>0&&"0.5rem",value:B.totalLoss/B.maxHealth,ranges:C,children:(0,e.createComponentVNode)(2,p.Stack,{children:[(0,e.createComponentVNode)(2,p.Tooltip,{content:"\u041E\u0431\u0449\u0438\u0439 \u0443\u0440\u043E\u043D",children:(0,e.createComponentVNode)(2,p.Stack.Item,{children:[(0,e.createComponentVNode)(2,p.Icon,{name:"heartbeat",mr:.5}),(0,a.round)(B.totalLoss)]})}),!!B.bruteLoss&&(0,e.createComponentVNode)(2,p.Tooltip,{content:"\u0424\u0438\u0437\u0438\u0447\u0435\u0441\u043A\u0438\u0435 \u043F\u043E\u0432\u0440\u0435\u0436\u0434\u0435\u043D\u0438\u044F",children:(0,e.createComponentVNode)(2,p.Stack.Item,{grow:!0,children:[(0,e.createComponentVNode)(2,p.Icon,{name:"bone",mr:.5}),(0,a.round)(B.bruteLoss)]})}),!!B.fireLoss&&(0,e.createComponentVNode)(2,p.Tooltip,{content:"\u041E\u0436\u043E\u0433\u0438",children:(0,e.createComponentVNode)(2,p.Stack.Item,{children:[(0,e.createComponentVNode)(2,p.Icon,{name:"fire",mr:.5}),(0,a.round)(B.fireLoss)]})})]})})}),(0,e.createComponentVNode)(2,p.Table.Cell,{textAlign:"right",verticalAlign:"top",width:"33%",pt:L>0&&"calc(0.5rem + 2px)",children:[(0,e.createComponentVNode)(2,p.Box,{color:"average",inline:!0,children:u([!!B.internalBleeding&&"\u0412\u043D\u0443\u0442\u0440\u0435\u043D\u043D\u0435\u0435 \u043A\u0440\u043E\u0432\u043E\u0442\u0435\u0447\u0435\u043D\u0438\u0435",!!B.burnWound&&"\u041A\u0440\u0438\u0442\u0438\u0447\u0435\u0441\u043A\u0438\u0435 \u043E\u0436\u043E\u0433\u0438 \u0442\u043A\u0430\u043D\u0435\u0439",!!B.lungRuptured&&"\u041F\u0440\u043E\u0431\u0438\u0442\u043E \u043B\u0451\u0433\u043A\u043E\u0435",!!B.status.broken&&B.status.broken,f(B.germ_level),!!B.open&&"\u041E\u0442\u043A\u0440\u044B\u0442\u044B\u0439 \u0440\u0430\u0437\u0440\u0435\u0437"])}),(0,e.createComponentVNode)(2,p.Box,{inline:!0,children:[u([!!B.status.splinted&&(0,e.createComponentVNode)(2,p.Box,{color:"good",children:"\u041D\u0430\u043B\u043E\u0436\u0435\u043D\u0430 \u0448\u0438\u043D\u0430"}),!!B.status.robotic&&(0,e.createComponentVNode)(2,p.Box,{color:"label",children:"\u0421\u0438\u043D\u0442\u0435\u0442\u0438\u0447\u0435\u0441\u043A\u043E\u0435"}),!!B.status.dead&&(0,e.createComponentVNode)(2,p.Box,{color:"bad",bold:!0,children:"\u041C\u0435\u0440\u0442\u0432\u043E"})]),u(B.shrapnel.map(function(T){return T.known?T.name:"\u0418\u043D\u043E\u0440\u043E\u0434\u043D\u043E\u0435 \u0442\u0435\u043B\u043E"}))]})]})]},L)})]})})},s=function(x){return x.organs.length===0?(0,e.createComponentVNode)(2,p.Section,{title:"\u0412\u043D\u0443\u0442\u0440\u0435\u043D\u043D\u0438\u0435 \u043E\u0440\u0433\u0430\u043D\u044B",children:(0,e.createComponentVNode)(2,p.Box,{color:"label",children:"\u041D/\u0414"})}):(0,e.createComponentVNode)(2,p.Section,{title:"\u0412\u043D\u0443\u0442\u0440\u0435\u043D\u043D\u0438\u0435 \u043E\u0440\u0433\u0430\u043D\u044B",children:(0,e.createComponentVNode)(2,p.Table,{children:[(0,e.createComponentVNode)(2,p.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,p.Table.Cell,{children:"\u041D\u0430\u0437\u0432\u0430\u043D\u0438\u0435"}),(0,e.createComponentVNode)(2,p.Table.Cell,{textAlign:"center",children:"\u041E\u0431\u0449\u0438\u0439 \u0443\u0440\u043E\u043D"}),(0,e.createComponentVNode)(2,p.Table.Cell,{textAlign:"right",children:"\u0422\u0440\u0430\u0432\u043C\u044B"})]}),x.organs.map(function(B,L){return(0,e.createComponentVNode)(2,p.Table.Row,{children:[(0,e.createComponentVNode)(2,p.Table.Cell,{color:!!B.dead&&"bad"||B.germ_level>100&&"average"||B.robotic>0&&"label",width:"33%",children:(0,t.capitalize)(B.name)}),(0,e.createComponentVNode)(2,p.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,p.ProgressBar,{min:"0",max:B.maxHealth,value:B.damage/B.maxHealth,mt:L>0&&"0.5rem",ranges:C,children:(0,a.round)(B.damage)})}),(0,e.createComponentVNode)(2,p.Table.Cell,{textAlign:"right",verticalAlign:"top",width:"33%",pt:L>0&&"calc(0.5rem + 2px)",children:[(0,e.createComponentVNode)(2,p.Box,{color:"average",inline:!0,children:u([f(B.germ_level)])}),(0,e.createComponentVNode)(2,p.Box,{inline:!0,children:u([B.robotic===1&&(0,e.createComponentVNode)(2,p.Box,{color:"label",children:"\u0421\u0438\u043D\u0442\u0435\u0442\u0438\u0447\u0435\u0441\u043A\u043E\u0435"}),B.robotic===2&&(0,e.createComponentVNode)(2,p.Box,{color:"label",children:"\u0421\u0438\u043D\u0442\u0435\u0442\u0438\u0447\u0435\u0441\u043A\u043E\u0435"}),!!B.dead&&(0,e.createComponentVNode)(2,p.Box,{color:"bad",bold:!0,children:"\u041C\u0435\u0440\u0442\u0432\u043E"})])})]})]},L)})]})})},g=function(){return(0,e.createComponentVNode)(2,p.Section,{fill:!0,children:(0,e.createComponentVNode)(2,p.Stack,{fill:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,p.Stack.Item,{grow:!0,align:"center",color:"label",children:[(0,e.createComponentVNode)(2,p.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,e.createVNode)(1,"br"),"\u041F\u0430\u0446\u0438\u0435\u043D\u0442 \u0432\u043D\u0443\u0442\u0440\u0438 \u043D\u0435 \u043E\u0431\u043D\u0430\u0440\u0443\u0436\u0435\u043D."]})})})}},42570:function(I,r,n){"use strict";r.__esModule=!0,r.BorgPanel=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.BorgPanel=function(){function k(y,S){var b=(0,a.useBackend)(S),C=b.act,c=b.data,u=c.borg||{},f=c.cell||{},l=f.charge/f.maxcharge,d=c.channels||[],m=c.modules||[],i=c.upgrades||[],h=c.ais||[],V=c.laws||[];return(0,e.createComponentVNode)(2,o.Window,{title:"Borg Panel",width:700,height:700,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,t.Section,{title:u.name,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"pencil-alt",content:"Rename",onClick:function(){function v(){return C("rename")}return v}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:[(0,e.createComponentVNode)(2,t.Button,{icon:u.emagged?"check-square-o":"square-o",content:"Emagged",selected:u.emagged,onClick:function(){function v(){return C("toggle_emagged")}return v}()}),(0,e.createComponentVNode)(2,t.Button,{icon:u.lockdown?"check-square-o":"square-o",content:"Locked Down",selected:u.lockdown,onClick:function(){function v(){return C("toggle_lockdown")}return v}()}),(0,e.createComponentVNode)(2,t.Button,{icon:u.scrambledcodes?"check-square-o":"square-o",content:"Scrambled Codes",selected:u.scrambledcodes,onClick:function(){function v(){return C("toggle_scrambledcodes")}return v}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Reset Module",onClick:function(){function v(){return C("reset_module")}return v}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Charge",children:[f.missing?(0,e.createVNode)(1,"span","color-bad","No cell installed",16):(0,e.createComponentVNode)(2,t.ProgressBar,{value:l,children:f.charge+" / "+f.maxcharge}),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Button,{icon:"pencil-alt",content:"Set",onClick:function(){function v(){return C("set_charge")}return v}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"eject",content:"Change",onClick:function(){function v(){return C("change_cell")}return v}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"trash",content:"Remove",color:"bad",onClick:function(){function v(){return C("remove_cell")}return v}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Radio Channels",children:d.map(function(v){return(0,e.createComponentVNode)(2,t.Button,{icon:v.installed?"check-square-o":"square-o",content:v.name,selected:v.installed,onClick:function(){function s(){return C("toggle_radio",{channel:v.name})}return s}()},v.name)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Model",children:m.map(function(v){return(0,e.createComponentVNode)(2,t.Button,{icon:u.active_module===v.name?"check-square-o":"square-o",content:v.name+" module",selected:u.active_module===v.name,onClick:function(){function s(){return C("setmodule",{module:v.name})}return s}()},v.type)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Upgrades",children:i.map(function(v){return(0,e.createComponentVNode)(2,t.Button,{icon:v.installed?"check-square-o":"square-o",content:v.name,selected:v.installed,onClick:function(){function s(){return C("toggle_upgrade",{upgrade:v.type})}return s}()},v.type)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Master AI",children:h.map(function(v){return(0,e.createComponentVNode)(2,t.Button,{icon:v.connected?"check-square-o":"square-o",content:v.name,selected:v.connected,onClick:function(){function s(){return C("slavetoai",{slavetoai:v.ref})}return s}()},v.ref)})})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Laws",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{content:"Law Manager",selected:u.lawmanager,onClick:function(){function v(){return C("lawmanager")}return v}()}),(0,e.createComponentVNode)(2,t.Button,{icon:u.lawupdate?"check-square-o":"square-o",content:"Lawsync",selected:u.lawupdate,onClick:function(){function v(){return C("toggle_lawupdate")}return v}()})],4),children:V.map(function(v){return(0,e.createComponentVNode)(2,t.Box,{children:v},v)})})]})})}return k}()},20464:function(I,r,n){"use strict";r.__esModule=!0,r.BotClean=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.BotClean=function(){function k(y,S){var b=(0,a.useBackend)(S),C=b.act,c=b.data,u=c.locked,f=c.noaccess,l=c.maintpanel,d=c.on,m=c.autopatrol,i=c.canhack,h=c.emagged,V=c.remote_disabled,v=c.painame,s=c.cleanblood;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.NoticeBox,{children:["\u041F\u0440\u043E\u0432\u0435\u0434\u0438\u0442\u0435 \u0441\u0432\u043E\u0435\u0439 ID-\u043A\u0430\u0440\u0442\u043E\u0439, \u0447\u0442\u043E\u0431\u044B",u?"\u0440\u0430\u0437\u0431\u043B\u043E\u043A\u0438\u0440\u043E\u0432\u0430\u0442\u044C":"\u0437\u0430\u0431\u043B\u043E\u043A\u0438\u0440\u043E\u0432\u0430\u0442\u044C"," \u044D\u0442\u043E\u0442 \u0438\u043D\u0442\u0435\u0440\u0444\u0435\u0439\u0441."]}),(0,e.createComponentVNode)(2,t.Section,{title:"\u041E\u0441\u043D\u043E\u0432\u043D\u044B\u0435 \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0421\u043E\u0441\u0442\u043E\u044F\u043D\u0438\u0435",children:(0,e.createComponentVNode)(2,t.Button,{icon:d?"power-off":"times",content:d?"\u0412\u043A\u043B\u044E\u0447\u0451\u043D":"\u0412\u044B\u043A\u043B\u044E\u0447\u0435\u043D",selected:d,disabled:f,onClick:function(){function g(){return C("power")}return g}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0420\u0435\u0436\u0438\u043C \u043F\u0430\u0442\u0440\u0443\u043B\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u044F",children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:m,content:"\u0410\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u043E\u0435 \u043F\u0430\u0442\u0440\u0443\u043B\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u0435",disabled:f,onClick:function(){function g(){return C("autopatrol")}return g}()})}),!!l&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u041F\u0430\u043D\u0435\u043B\u044C \u0442\u0435\u0445\u043E\u0431\u0441\u043B\u0443\u0436\u0438\u0432\u0430\u043D\u0438\u044F",children:(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:"\u041F\u0430\u043D\u0435\u043B\u044C \u043E\u0442\u043A\u0440\u044B\u0442\u0430"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u041F\u0440\u043E\u0442\u043E\u043A\u043E\u043B\u044B \u0431\u0435\u0437\u043E\u043F\u0430\u0441\u043D\u043E\u0441\u0442\u0438",children:(0,e.createComponentVNode)(2,t.Box,{color:h?"bad":"good",children:h?"\u041E\u0442\u043A\u043B\u044E\u0447\u0435\u043D\u044B":"\u0412\u043A\u043B\u044E\u0447\u0435\u043D\u044B"})}),!!i&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0412\u0437\u043B\u043E\u043C",children:(0,e.createComponentVNode)(2,t.Button,{icon:"terminal",content:h?"\u0412\u043E\u0441\u0441\u0442\u0430\u043D\u043E\u0432\u0438\u0442\u044C \u043F\u0440\u043E\u0442\u043E\u043A\u043E\u043B\u044B \u0431\u0435\u0437\u043E\u043F\u0430\u0441\u043D\u043E\u0441\u0442\u0438":"\u0412\u0437\u043B\u043E\u043C\u0430\u0442\u044C",disabled:f,color:"bad",onClick:function(){function g(){return C("hack")}return g}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0423\u0434\u0430\u043B\u0451\u043D\u043D\u044B\u0439 \u0434\u043E\u0441\u0442\u0443\u043F",children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:!V,content:"\u0423\u0434\u0430\u043B\u0451\u043D\u043D\u044B\u0439 \u0434\u043E\u0441\u0442\u0443\u043F \u0441\u043E \u0441\u0442\u043E\u0440\u043E\u043D\u044B \u0418\u0418",disabled:f,onClick:function(){function g(){return C("disableremote")}return g}()})})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"\u041D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438 \u043F\u0440\u043E\u0446\u0435\u0441\u0441\u0430 \u0443\u0431\u043E\u0440\u043A\u0438",children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:s,content:"\u0423\u0431\u0438\u0440\u0430\u0442\u044C \u043A\u0440\u043E\u0432\u044C",disabled:f,onClick:function(){function g(){return C("blood")}return g}()})}),v&&(0,e.createComponentVNode)(2,t.Section,{title:"\u041F\u0418\u0418",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"eject",content:v,disabled:f,onClick:function(){function g(){return C("ejectpai")}return g}()})})]})})}return k}()},74439:function(I,r,n){"use strict";r.__esModule=!0,r.BotSecurity=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.BotSecurity=function(){function k(y,S){var b=(0,a.useBackend)(S),C=b.act,c=b.data,u=c.locked,f=c.noaccess,l=c.maintpanel,d=c.on,m=c.autopatrol,i=c.canhack,h=c.emagged,V=c.remote_disabled,v=c.painame,s=c.check_id,g=c.check_weapons,N=c.check_warrant,x=c.arrest_mode,B=c.arrest_declare;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.NoticeBox,{children:["\u041F\u0440\u043E\u0432\u0435\u0434\u0438\u0442\u0435 \u0441\u0432\u043E\u0435\u0439 ID-\u043A\u0430\u0440\u0442\u043E\u0439, \u0447\u0442\u043E\u0431\u044B",u?"\u0440\u0430\u0437\u0431\u043B\u043E\u043A\u0438\u0440\u043E\u0432\u0430\u0442\u044C":"\u0437\u0430\u0431\u043B\u043E\u043A\u0438\u0440\u043E\u0432\u0430\u0442\u044C"," \u044D\u0442\u043E\u0442 \u0438\u043D\u0442\u0435\u0440\u0444\u0435\u0439\u0441."]}),(0,e.createComponentVNode)(2,t.Section,{title:"\u041E\u0441\u043D\u043E\u0432\u043D\u044B\u0435 \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0421\u043E\u0441\u0442\u043E\u044F\u043D\u0438\u0435",children:(0,e.createComponentVNode)(2,t.Button,{icon:d?"power-off":"times",content:d?"\u0412\u043A\u043B\u044E\u0447\u0451\u043D":"\u0412\u044B\u043A\u043B\u044E\u0447\u0435\u043D",selected:d,disabled:f,onClick:function(){function L(){return C("power")}return L}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0420\u0435\u0436\u0438\u043C \u043F\u0430\u0442\u0440\u0443\u043B\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u044F",children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:m,content:"\u0410\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u043E\u0435 \u043F\u0430\u0442\u0440\u0443\u043B\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u0435",disabled:f,onClick:function(){function L(){return C("autopatrol")}return L}()})}),!!l&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u041F\u0430\u043D\u0435\u043B\u044C \u0442\u0435\u0445\u043E\u0431\u0441\u043B\u0443\u0436\u0438\u0432\u0430\u043D\u0438\u044F",children:(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:"\u041F\u0430\u043D\u0435\u043B\u044C \u043E\u0442\u043A\u0440\u044B\u0442\u0430"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u041F\u0440\u043E\u0442\u043E\u043A\u043E\u043B\u044B \u0431\u0435\u0437\u043E\u043F\u0430\u0441\u043D\u043E\u0441\u0442\u0438",children:(0,e.createComponentVNode)(2,t.Box,{color:h?"bad":"good",children:h?"\u041E\u0442\u043A\u043B\u044E\u0447\u0435\u043D\u044B":"\u0412\u043A\u043B\u044E\u0447\u0435\u043D\u044B"})}),!!i&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0412\u0437\u043B\u043E\u043C",children:(0,e.createComponentVNode)(2,t.Button,{icon:"terminal",content:h?"\u0412\u043E\u0441\u0441\u0442\u0430\u043D\u043E\u0432\u0438\u0442\u044C \u043F\u0440\u043E\u0442\u043E\u043A\u043E\u043B\u044B \u0431\u0435\u0437\u043E\u043F\u0430\u0441\u043D\u043E\u0441\u0442\u0438":"\u0412\u0437\u043B\u043E\u043C\u0430\u0442\u044C",disabled:f,color:"bad",onClick:function(){function L(){return C("hack")}return L}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0423\u0434\u0430\u043B\u0451\u043D\u043D\u044B\u0439 \u0434\u043E\u0441\u0442\u0443\u043F",children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:!V,content:"\u0423\u0434\u0430\u043B\u0451\u043D\u043D\u044B\u0439 \u0434\u043E\u0441\u0442\u0443\u043F \u0441\u043E \u0441\u0442\u043E\u0440\u043E\u043D\u044B \u0418\u0418",disabled:f,onClick:function(){function L(){return C("disableremote")}return L}()})})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"\u0417\u0430\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u043C\u044B\u0435 \u0446\u0435\u043B\u0438",children:[(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:s,content:"\u041D\u0435\u043E\u043F\u043E\u0437\u043D\u0430\u043D\u043D\u044B\u0435 \u043B\u0438\u0447\u043D\u043E\u0441\u0442\u0438",disabled:f,onClick:function(){function L(){return C("authid")}return L}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:g,content:"\u0418\u043C\u0435\u044E\u0449\u0438\u0435 \u043D\u0435\u0430\u0432\u0442\u043E\u0440\u0438\u0437\u0438\u0440\u043E\u0432\u0430\u043D\u043D\u043E\u0435 \u043E\u0440\u0443\u0436\u0438\u0435",disabled:f,onClick:function(){function L(){return C("authweapon")}return L}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:N,content:"\u0420\u0430\u0437\u044B\u0441\u043A\u0438\u0432\u0430\u0435\u043C\u044B\u0435 \u043F\u0440\u0435\u0441\u0442\u0443\u043F\u043D\u0438\u043A\u0438",disabled:f,onClick:function(){function L(){return C("authwarrant")}return L}()})]}),(0,e.createComponentVNode)(2,t.Section,{title:"\u041F\u0440\u043E\u0446\u0435\u0434\u0443\u0440\u0430 \u0437\u0430\u0434\u0435\u0440\u0436\u0430\u043D\u0438\u044F",children:[(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:x,content:"\u0411\u0435\u0441\u0441\u0440\u043E\u0447\u043D\u043E\u0435 \u043E\u0433\u043B\u0443\u0448\u0435\u043D\u0438\u0435 \u0446\u0435\u043B\u0435\u0439 \u0432\u043C\u0435\u0441\u0442\u043E \u0437\u0430\u0434\u0435\u0440\u0436\u0430\u043D\u0438\u044F",disabled:f,onClick:function(){function L(){return C("arrtype")}return L}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:B,content:"\u0421\u043E\u043E\u0431\u0449\u0430\u0442\u044C \u043E \u0437\u0430\u0434\u0435\u0440\u0436\u0430\u043D\u0438\u0438 \u043F\u043E \u0440\u0430\u0434\u0438\u043E\u0441\u0432\u044F\u0437\u0438",disabled:f,onClick:function(){function L(){return C("arrdeclare")}return L}()})]}),v&&(0,e.createComponentVNode)(2,t.Section,{title:"\u041F\u0418\u0418",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"eject",content:v,disabled:f,onClick:function(){function L(){return C("ejectpai")}return L}()})})]})})}return k}()},10833:function(I,r,n){"use strict";r.__esModule=!0,r.BrigCells=void 0;var e=n(89005),a=n(98595),t=n(36036),o=n(72253),p=function(b,C){var c=b.cell,u=(0,o.useBackend)(C),f=u.act,l=c.cell_id,d=c.occupant,m=c.crimes,i=c.brigged_by,h=c.time_left_seconds,V=c.time_set_seconds,v=c.ref,s="";h>0&&(s+=" BrigCells__listRow--active");var g=function(){f("release",{ref:v})};return(0,e.createComponentVNode)(2,t.Table.Row,{className:s,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:l}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:d}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:m}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:i}),(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.TimeDisplay,{totalSeconds:h})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{type:"button",onClick:g,children:"Release"})})]})},k=function(b){var C=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"})]}),C.map(function(c){return(0,e.createComponentVNode)(2,p,{cell:c},c.ref)})]})},y=r.BrigCells=function(){function S(b,C){var c=(0,o.useBackend)(C),u=c.act,f=c.data,l=f.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,k,{cells:l})})})})})}return S}()},45761:function(I,r,n){"use strict";r.__esModule=!0,r.BrigTimer=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.BrigTimer=function(){function k(y,S){var b=(0,a.useBackend)(S),C=b.act,c=b.data;c.nameText=c.occupant,c.timing&&(c.prisoner_hasrec?c.nameText=(0,e.createComponentVNode)(2,t.Box,{color:"green",children:c.occupant}):c.nameText=(0,e.createComponentVNode)(2,t.Box,{color:"red",children:c.occupant}));var u="pencil-alt";c.prisoner_name&&(c.prisoner_hasrec||(u="exclamation-triangle"));var f=[],l=0;for(l=0;l60||!c.isAllowed,onClick:function(){function d(){return C("start")}return d}()})})]})})]})})}return k}()},26300:function(I,r,n){"use strict";r.__esModule=!0,r.CameraConsoleOldContent=r.CameraConsoleMapContent=r.CameraConsoleListContent=r.CameraConsole=void 0;var e=n(89005),a=n(88510),t=n(64795),o=n(35840),p=n(25328),k=n(72253),y=n(36036),S=n(98595);String.prototype.trimLongStr=function(d){return this.length>d?this.substring(0,d)+"...":this};var b=function(m,i){var h,V;if(!i)return[];var v=m.findIndex(function(s){return s.name===i.name});return[(h=m[v-1])==null?void 0:h.name,(V=m[v+1])==null?void 0:V.name]},C=function(m,i){i===void 0&&(i="");var h=(0,p.createSearch)(i,function(V){return V.name});return(0,t.flow)([(0,a.filter)(function(V){return V==null?void 0:V.name}),i&&(0,a.filter)(h),(0,a.sortBy)(function(V){return V.name})])(m)},c=r.CameraConsole=function(){function d(m,i){var h=(0,k.useLocalState)(i,"tabIndex",0),V=h[0],v=h[1],s=function(){function g(N){switch(N){case 0:return(0,e.createComponentVNode)(2,u);case 1:return(0,e.createComponentVNode)(2,f);default:return"WE SHOULDN'T BE HERE!"}}return g}();return(0,e.createComponentVNode)(2,S.Window,{width:1250,height:600,children:(0,e.createComponentVNode)(2,S.Window.Content,{children:(0,e.createComponentVNode)(2,y.Box,{fillPositionedParent:!0,overflow:"hidden",children:[(0,e.createComponentVNode)(2,y.Tabs,{children:[(0,e.createComponentVNode)(2,y.Tabs.Tab,{selected:V===0,onClick:function(){function g(){return v(0)}return g}(),children:[(0,e.createComponentVNode)(2,y.Icon,{name:"map-marked-alt"})," Map"]},"Map"),(0,e.createComponentVNode)(2,y.Tabs.Tab,{selected:V===1,onClick:function(){function g(){return v(1)}return g}(),children:[(0,e.createComponentVNode)(2,y.Icon,{name:"table"})," List"]},"List")]}),s(V)]})})})}return d}(),u=r.CameraConsoleMapContent=function(){function d(m,i){var h=(0,k.useBackend)(i),V=h.act,v=h.data,s=C(v.cameras),g=(0,k.useLocalState)(i,"zoom",1),N=g[0],x=g[1],B=v.mapRef,L=v.activeCamera,T=v.stationLevelNum,A=v.stationLevelName,E=(0,k.useLocalState)(i,"z_current",T[0]),w=E[0],O=E[1],M=b(s,L),P=M[0],F=M[1];return(0,e.createComponentVNode)(2,y.Box,{height:"100%",display:"flex",children:[(0,e.createVNode)(1,"div","CameraConsole__left",(0,e.createComponentVNode)(2,y.Box,{height:"100%",display:"flex",children:(0,e.createComponentVNode)(2,y.NanoMap,{onZoom:function(){function R(U){return x(U)}return R}(),zLevels:T,zNames:A,z_current:w,setZCurrent:O,children:s.map(function(R){return(0,e.createComponentVNode)(2,y.NanoMap.Marker,{x:R.x,y:R.y,z:R.z,z_current:w,zoom:N,icon:"box",tooltip:R.name,color:R.status?"blue":"red",bordered:!0,onClick:function(){function U(){return V("switch_camera",{name:R.name})}return U}()},R.ref)})})}),2),(0,e.createVNode)(1,"div","CameraConsole__right",[(0,e.createVNode)(1,"div","CameraConsole__toolbar",[(0,e.createVNode)(1,"b",null,"Camera: ",16),L&&L.name||"\u2014"],0),(0,e.createVNode)(1,"div","CameraConsole__toolbarRight",[(0,e.createComponentVNode)(2,y.Button,{icon:"chevron-left",disabled:!P,onClick:function(){function R(){return V("switch_camera",{name:P})}return R}()}),(0,e.createComponentVNode)(2,y.Button,{icon:"chevron-right",disabled:!F,onClick:function(){function R(){return V("switch_camera",{name:F})}return R}()})],4),(0,e.createComponentVNode)(2,y.ByondUi,{className:"CameraConsole__map",params:{id:B,type:"map"}})],4)]})}return d}(),f=r.CameraConsoleOldContent=function(){function d(m,i){var h=(0,k.useBackend)(i),V=h.act,v=h.data,s=h.config,g=v.mapRef,N=v.activeCamera,x=(0,k.useLocalState)(i,"searchText",""),B=x[0],L=C(v.cameras,B),T=b(L,N),A=T[0],E=T[1];return(0,e.createComponentVNode)(2,y.Box,{children:[(0,e.createVNode)(1,"div","CameraConsole__left",(0,e.createComponentVNode)(2,S.Window.Content,{children:(0,e.createComponentVNode)(2,y.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,l)})}),2),(0,e.createVNode)(1,"div","CameraConsole__right",[(0,e.createVNode)(1,"div","CameraConsole__toolbar",[(0,e.createVNode)(1,"b",null,"Camera: ",16),N&&N.name||"\u2014"],0),(0,e.createVNode)(1,"div","CameraConsole__toolbarRight",[(0,e.createComponentVNode)(2,y.Button,{icon:"chevron-left",disabled:!A,onClick:function(){function w(){return V("switch_camera",{name:A})}return w}()}),(0,e.createComponentVNode)(2,y.Button,{icon:"chevron-right",disabled:!E,onClick:function(){function w(){return V("switch_camera",{name:E})}return w}()})],4),(0,e.createComponentVNode)(2,y.ByondUi,{className:"CameraConsole__map",params:{id:g,type:"map"}})],4)]})}return d}(),l=r.CameraConsoleListContent=function(){function d(m,i){var h=(0,k.useBackend)(i),V=h.act,v=h.data,s=(0,k.useLocalState)(i,"searchText",""),g=s[0],N=s[1],x=v.activeCamera,B=C(v.cameras,g);return(0,e.createComponentVNode)(2,y.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,y.Stack.Item,{children:(0,e.createComponentVNode)(2,y.Input,{fluid:!0,placeholder:"Search for a camera",onInput:function(){function L(T,A){return N(A)}return L}()})}),(0,e.createComponentVNode)(2,y.Stack.Item,{grow:!0,m:0,children:(0,e.createComponentVNode)(2,y.Section,{fill:!0,scrollable:!0,children:B.map(function(L){return(0,e.createVNode)(1,"div",(0,o.classes)(["Button","Button--fluid","Button--color--transparent",x&&L.name===x.name&&"Button--selected"]),L.name,0,{title:L.name,onClick:function(){function T(){return V("switch_camera",{name:L.name})}return T}()},L.name)})})})]})}return d}()},52927:function(I,r,n){"use strict";r.__esModule=!0,r.Canister=void 0;var e=n(89005),a=n(44879),t=n(72253),o=n(36036),p=n(49968),k=n(98595),y=r.Canister=function(){function S(b,C){var c=(0,t.useBackend)(C),u=c.act,f=c.data,l=f.portConnected,d=f.tankPressure,m=f.releasePressure,i=f.defaultReleasePressure,h=f.minReleasePressure,V=f.maxReleasePressure,v=f.valveOpen,s=f.name,g=f.canLabel,N=f.colorContainer,x=f.color_index,B=f.hasHoldingTank,L=f.holdingTank,T="";x.prim&&(T=N.prim.options[x.prim].name);var A="";x.sec&&(A=N.sec.options[x.sec].name);var E="";x.ter&&(E=N.ter.options[x.ter].name);var w="";x.quart&&(w=N.quart.options[x.quart].name);var O=[],M=[],P=[],F=[],R=0;for(R=0;Rs.current_positions&&(0,e.createComponentVNode)(2,t.Box,{color:"green",children:s.total_positions-s.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||!s.can_close,onClick:function(){function g(){return m("make_job_unavailable",{job:s.title})}return g}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{content:"+",disabled:i.cooldown_time||!s.can_open,onClick:function(){function g(){return m("make_job_available",{job:s.title})}return g}()})}),(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(s.title)>-1?"Yes":""})||(0,e.createComponentVNode)(2,t.Button,{content:s.is_priority?"Yes":"No",selected:s.is_priority,disabled:i.cooldown_time||!s.can_prioritize,onClick:function(){function g(){return m("prioritize_job",{job:s.title})}return g}()})})]},s.title)})]})})]}):v=(0,e.createComponentVNode)(2,S);break;case 2:!i.authenticated||!i.scan_name?v=(0,e.createComponentVNode)(2,S):i.modify_name?v=(0,e.createComponentVNode)(2,p.AccessList,{accesses:i.regions,selectedList:i.selectedAccess,accessMod:function(){function s(g){return m("set",{access:g})}return s}(),grantAll:function(){function s(){return m("grant_all")}return s}(),denyAll:function(){function s(){return m("clear_all")}return s}(),grantDep:function(){function s(g){return m("grant_region",{region:g})}return s}(),denyDep:function(){function s(g){return m("deny_region",{region:g})}return s}()}):v=(0,e.createComponentVNode)(2,b);break;case 3:i.authenticated?i.records.length?v=(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 s(){return m("wipe_all_logs")}return s}()}),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(s){return(0,e.createComponentVNode)(2,t.Table.Row,{height:2,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:s.transferee}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:s.oldvalue}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:s.newvalue}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:s.whodidit}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:s.timestamp}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:s.reason}),!!i.iscentcom&&(0,e.createComponentVNode)(2,t.Table.Cell,{children:s.deletedby})]},s.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 s(){return m("wipe_my_logs")}return s}()})})]}):v=(0,e.createComponentVNode)(2,C):v=(0,e.createComponentVNode)(2,S);break;case 4:!i.authenticated||!i.scan_name?v=(0,e.createComponentVNode)(2,S):v=(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(s){return(0,e.createComponentVNode)(2,t.Table.Row,{height:2,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:s.name}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:s.title}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:s.crimstat}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{content:s.buttontext,disabled:!s.demotable,onClick:function(){function g(){return m("remote_demote",{remote_demote:s.name})}return g}()})})]},s.title)})]})});break;default:v=(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:V}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:h}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:v})]})})})}return u}()},64083:function(I,r,n){"use strict";r.__esModule=!0,r.CargoConsole=void 0;var e=n(89005),a=n(64795),t=n(88510),o=n(72253),p=n(36036),k=n(98595),y=n(25328),S=r.CargoConsole=function(){function f(l,d){return(0,e.createComponentVNode)(2,k.Window,{width:900,height:800,children:(0,e.createComponentVNode)(2,k.Window.Content,{children:(0,e.createComponentVNode)(2,p.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,b),(0,e.createComponentVNode)(2,C),(0,e.createComponentVNode)(2,c),(0,e.createComponentVNode)(2,u)]})})})}return f}(),b=function(l,d){var m=(0,o.useLocalState)(d,"contentsModal",null),i=m[0],h=m[1],V=(0,o.useLocalState)(d,"contentsModalTitle",null),v=V[0],s=V[1];if(i!==null&&v!==null)return(0,e.createComponentVNode)(2,p.Modal,{maxWidth:"75%",width:window.innerWidth+"px",maxHeight:window.innerHeight*.75+"px",mx:"auto",children:[(0,e.createComponentVNode)(2,p.Box,{width:"100%",bold:!0,children:(0,e.createVNode)(1,"h1",null,[v,(0,e.createTextVNode)(" contents:")],0)}),(0,e.createComponentVNode)(2,p.Box,{children:i.map(function(g){return(0,e.createComponentVNode)(2,p.Box,{children:["- ",g]},g)})}),(0,e.createComponentVNode)(2,p.Box,{m:2,children:(0,e.createComponentVNode)(2,p.Button,{content:"Close",onClick:function(){function g(){h(null),s(null)}return g}()})})]})},C=function(l,d){var m=(0,o.useBackend)(d),i=m.act,h=m.data,V=h.is_public,v=h.points,s=h.credits,g=h.timeleft,N=h.moving,x=h.at_station,B,L;return!N&&!x?(B="Docked off-station",L="Call Shuttle"):!N&&x?(B="Docked at the station",L="Return Shuttle"):N&&(L="In Transit...",g!==1?B="Shuttle is en route (ETA: "+g+" minutes)":B="Shuttle is en route (ETA: "+g+" minute)"),(0,e.createComponentVNode)(2,p.Stack.Item,{children:(0,e.createComponentVNode)(2,p.Section,{title:"Status",children:(0,e.createComponentVNode)(2,p.LabeledList,{children:[(0,e.createComponentVNode)(2,p.LabeledList.Item,{label:"Points Available",children:v}),(0,e.createComponentVNode)(2,p.LabeledList.Item,{label:"Credits Available",children:s}),(0,e.createComponentVNode)(2,p.LabeledList.Item,{label:"Shuttle Status",children:B}),V===0&&(0,e.createComponentVNode)(2,p.LabeledList.Item,{label:"Controls",children:[(0,e.createComponentVNode)(2,p.Button,{content:L,disabled:N,onClick:function(){function T(){return i("moveShuttle")}return T}()}),(0,e.createComponentVNode)(2,p.Button,{content:"View Central Command Messages",onClick:function(){function T(){return i("showMessages")}return T}()})]})]})})})},c=function(l,d){var m=(0,o.useBackend)(d),i=m.act,h=m.data,V=h.categories,v=h.supply_packs,s=(0,o.useSharedState)(d,"category","Emergency"),g=s[0],N=s[1],x=(0,o.useSharedState)(d,"search_text",""),B=x[0],L=x[1],T=(0,o.useLocalState)(d,"contentsModal",null),A=T[0],E=T[1],w=(0,o.useLocalState)(d,"contentsModalTitle",null),O=w[0],M=w[1],P=(0,y.createSearch)(B,function(U){return U.name}),F=(0,a.flow)([(0,t.filter)(function(U){return U.cat===V.filter(function(j){return j.name===g})[0].category||B}),B&&(0,t.filter)(P),(0,t.sortBy)(function(U){return U.name.toLowerCase()})])(v),R="Crate Catalogue";return B?R="Results for '"+B+"':":g&&(R="Browsing "+g),(0,e.createComponentVNode)(2,p.Stack.Item,{children:(0,e.createComponentVNode)(2,p.Section,{title:R,buttons:(0,e.createComponentVNode)(2,p.Dropdown,{width:"190px",options:V.map(function(U){return U.name}),selected:g,onSelected:function(){function U(j){return N(j)}return U}()}),children:[(0,e.createComponentVNode)(2,p.Input,{fluid:!0,placeholder:"Search for...",onInput:function(){function U(j,W){return L(W)}return U}(),mb:1}),(0,e.createComponentVNode)(2,p.Box,{maxHeight:25,overflowY:"auto",overflowX:"hidden",children:(0,e.createComponentVNode)(2,p.Table,{m:"0.5rem",children:F.map(function(U){return(0,e.createComponentVNode)(2,p.Table.Row,{children:[(0,e.createComponentVNode)(2,p.Table.Cell,{bold:!0,children:(0,e.createComponentVNode)(2,p.Box,{color:U.has_sale?"good":"default",children:[U.name," (",U.cost?U.cost+" Points":"",U.creditsCost&&U.cost?" ":"",U.creditsCost?U.creditsCost+" Credits":"",")"]})}),(0,e.createComponentVNode)(2,p.Table.Cell,{textAlign:"right",pr:1,children:[(0,e.createComponentVNode)(2,p.Button,{content:"Order 1",icon:"shopping-cart",onClick:function(){function j(){return i("order",{crate:U.ref,multiple:0})}return j}()}),(0,e.createComponentVNode)(2,p.Button,{content:"Order Multiple",icon:"cart-plus",onClick:function(){function j(){return i("order",{crate:U.ref,multiple:1})}return j}()}),(0,e.createComponentVNode)(2,p.Button,{content:"View Contents",icon:"search",onClick:function(){function j(){E(U.contents),M(U.name)}return j}()})]})]},U.name)})})})]})})},u=function(l,d){var m=(0,o.useBackend)(d),i=m.act,h=m.data,V=h.requests,v=h.canapprove,s=h.orders;return(0,e.createComponentVNode)(2,p.Section,{fill:!0,scrollable:!0,title:"Details",children:[(0,e.createComponentVNode)(2,p.Box,{bold:!0,children:"Requests"}),(0,e.createComponentVNode)(2,p.Table,{m:"0.5rem",children:V.map(function(g){return(0,e.createComponentVNode)(2,p.Table.Row,{children:[(0,e.createComponentVNode)(2,p.Table.Cell,{children:[(0,e.createComponentVNode)(2,p.Box,{children:["- #",g.ordernum,": ",g.supply_type," for ",(0,e.createVNode)(1,"b",null,g.orderedby,0)]}),(0,e.createComponentVNode)(2,p.Box,{italic:!0,children:["Reason: ",g.comment]}),(0,e.createComponentVNode)(2,p.Box,{italic:!0,children:["Required Techs: ",g.pack_techs]})]}),(0,e.createComponentVNode)(2,p.Stack.Item,{textAlign:"right",children:[(0,e.createComponentVNode)(2,p.Button,{content:"Approve",color:"green",disabled:!v,onClick:function(){function N(){return i("approve",{ordernum:g.ordernum})}return N}()}),(0,e.createComponentVNode)(2,p.Button,{content:"Deny",color:"red",onClick:function(){function N(){return i("deny",{ordernum:g.ordernum})}return N}()})]})]},g.ordernum)})}),(0,e.createComponentVNode)(2,p.Box,{bold:!0,children:"Confirmed Orders"}),(0,e.createComponentVNode)(2,p.Table,{m:"0.5rem",children:s.map(function(g){return(0,e.createComponentVNode)(2,p.Table.Row,{children:(0,e.createComponentVNode)(2,p.Table.Cell,{children:[(0,e.createComponentVNode)(2,p.Box,{children:["- #",g.ordernum,": ",g.supply_type," for ",(0,e.createVNode)(1,"b",null,g.orderedby,0)]}),(0,e.createComponentVNode)(2,p.Box,{italic:!0,children:["Reason: ",g.comment]})]})},g.ordernum)})})]})}},22794:function(I,r,n){"use strict";r.__esModule=!0,r.DelayHelper=void 0;var e=n(89005),a=n(44879),t=n(72253),o=n(36036),p=r.DelayHelper=function(){function k(y,S){var b=(0,t.useBackend)(S),C=b.act,c=b.data,u=c.delays,f=c.rev_delays,l=y.delay_list,d=y.reverse,m=d===void 0?!1:d;return(0,e.createComponentVNode)(2,o.LabeledControls,{wrap:!0,style:{"flex-direction":"column","flex-wrap":"wrap",height:"7.5em","justify-content":"start"},children:l.map(function(i,h){return(0,e.createComponentVNode)(2,o.LabeledControls.Item,{label:i.title,style:{"flex-direction":"column","min-width":"0"},children:(0,e.createComponentVNode)(2,o.Knob,{color:(m?f[h+1]:u[h+1])/10>10?"orange":"default",format:function(){function V(v){return(0,a.toFixed)(v,2)}return V}(),maxValue:10,minValue:0,inline:!0,onDrag:function(){function V(v,s){C("editTiming",{reverse:m,timer:""+(h+1),value:Math.max(s,0)})}return V}(),size:1,step:.02,unclamped:!0,unit:"s",value:(m?f[h+1]:u[h+1])/10})},h)})})}return k}()},23749:function(I,r,n){"use strict";r.__esModule=!0,r.PodBays=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(7144),p=r.PodBays=function(){function k(y,S){var b=(0,a.useBackend)(S),C=b.act,c=b.data,u=c.bayNumber;return(0,e.createComponentVNode)(2,t.Section,{buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"trash",onClick:function(){function f(){return C("clearBay")}return f}(),tooltip:"\n \u041E\u0447\u0438\u0449\u0430\u0435\u0442 \u0432\u0441\u0451\n\u0438\u0437 \u0432\u044B\u0431\u0440\u0430\u043D\u043D\u043E\u0433\u043E \u0430\u043D\u0433\u0430\u0440\u0430.",tooltipPosition:"top-end"}),(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"question",tooltip:"\n \u041A\u0430\u0436\u0434\u044B\u0439 \u0432\u0430\u0440\u0438\u0430\u043D\u0442 \u0441\u043E\u043E\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u0435\u0442\n\u043E\u043F\u0440\u0435\u0434\u0435\u043B\u0451\u043D\u043D\u043E\u0439 \u0437\u043E\u043D\u0435 \u043D\u0430 \u0426\u041A.\n\u0417\u0430\u043F\u0443\u0449\u0435\u043D\u043D\u044B\u0435 \u043A\u0430\u043F\u0441\u0443\u043B\u044B \u0431\u0443\u0434\u0443\u0442\n\u0437\u0430\u043F\u043E\u043B\u043D\u0435\u043D\u044B \u043F\u0440\u0435\u0434\u043C\u0435\u0442\u0430\u043C\u0438 \u0438\u0437 \u044D\u0442\u0438\u0445 \u0437\u043E\u043D\n\u0432 \u0441\u043E\u043E\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0438\u0438 \u0441 \u043E\u043F\u0446\u0438\u0435\u0439\n\xAB\u0417\u0430\u0433\u0440\u0443\u0437\u043A\u0430 \u0438\u0437 \u0430\u043D\u0433\u0430\u0440\u0430\xBB \u0432 \u043B\u0435\u0432\u043E\u043C \u0432\u0435\u0440\u0445\u043D\u0435\u043C \u0443\u0433\u043B\u0443.",tooltipPosition:"top-end"})],4),fill:!0,title:"\u0410\u043D\u0433\u0430\u0440",children:o.BAYS.map(function(f,l){return(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function d(){return C("switchBay",{bayNumber:""+(l+1)})}return d}(),selected:u===""+(l+1),tooltipPosition:"bottom-end",children:f.title},l)})})}return k}()},8507:function(I,r,n){"use strict";r.__esModule=!0,r.PodLaunch=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(20345),p=r.PodLaunch=function(){function k(y,S){var b=(0,a.useBackend)(S),C=b.act,c=b.data,u=c.giveLauncher,f=(0,o.useCompact)(S),l=f[0];return(0,e.createComponentVNode)(2,t.Button,{fluid:!0,onClick:function(){function d(){return C("giveLauncher")}return d}(),selected:u,textAlign:"center",tooltip:"\n \u0412\u044B \u0434\u043E\u043B\u0436\u043D\u044B \u0437\u043D\u0430\u0442\u044C, \u0447\u0442\u043E\n \u041E\u0431 \u044D\u0442\u043E\u043C \u0433\u043E\u0432\u043E\u0440\u0438\u0442 \u041A\u043E\u0434\u0435\u043A\u0441 \u0410\u0441\u0442\u0430\u0440\u0442\u0435\u0441",tooltipPosition:"top",children:(0,e.createComponentVNode)(2,t.Box,{bold:!0,fontSize:"1.4em",lineHeight:l?1.5:3,children:"\u0417\u0410\u041F\u0423\u0421\u041A"})})}return k}()},15802:function(I,r,n){"use strict";r.__esModule=!0,r.PodSounds=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(7144),p=r.PodSounds=function(){function k(y,S){var b=(0,a.useBackend)(S),C=b.act,c=b.data,u=c.defaultSoundVolume,f=c.soundVolume;return(0,e.createComponentVNode)(2,t.Section,{buttons:(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"volume-up",onClick:function(){function l(){return C("soundVolume")}return l}(),selected:f!==u,tooltip:"\n \u0413\u0440\u043E\u043C\u043A\u043E\u0441\u0442\u044C \u0417\u0443\u043A\u0430:"+f}),fill:!0,title:"\u0417\u0432\u0443\u043A\u0438",children:o.SOUNDS.map(function(l,d){return(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function m(){return C(l.act)}return m}(),selected:c[l.act],tooltip:l.tooltip,tooltipPosition:"top-end",children:l.title},d)})})}return k}()},94577:function(I,r,n){"use strict";r.__esModule=!0,r.PodStatusPage=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(7144),p=n(20345),k=r.PodStatusPage=function(){function b(C,c){var u=(0,p.useCompact)(c),f=u[0];return(0,e.createComponentVNode)(2,t.Section,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack,{children:o.EFFECTS_ALL.map(function(l,d){return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Box,{bold:!0,color:"label",mb:1,children:[!f&&(l.alt_label||l.label),":"]}),(0,e.createComponentVNode)(2,t.Box,{children:l.list.map(function(m,i){return(0,e.createComponentVNode)(2,y,{effect:m,hasMargin:l.list.length>1,index:i},i)})})]}),d=0;--J){var X=this.tryEntries[J],Q=X.completion;if(X.tryLoc==="root")return ae("end");if(X.tryLoc<=this.prev){var q=m.call(X,"catchLoc"),te=m.call(X,"finallyLoc");if(q&&te){if(this.prev=0;--ae){var J=this.tryEntries[ae];if(J.tryLoc<=this.prev&&m.call(J,"finallyLoc")&&this.prev=0;--Z){var ae=this.tryEntries[Z];if(ae.finallyLoc===re)return this.complete(ae.completion,ae.afterLoc),Y(ae),E}}return oe}(),catch:function(){function oe(re){for(var Z=this.tryEntries.length-1;Z>=0;--Z){var ae=this.tryEntries[Z];if(ae.tryLoc===re){var J=ae.completion;if(J.type==="throw"){var X=J.arg;Y(ae)}return X}}throw Error("illegal catch attempt")}return oe}(),delegateYield:function(){function oe(re,Z,ae){return this.delegate={iterator:de(re),resultName:Z,nextLoc:ae},this.method==="next"&&(this.arg=f),E}return oe}()},l}function S(f,l,d,m,i,h,V){try{var v=f[h](V),s=v.value}catch(g){return void d(g)}v.done?l(s):Promise.resolve(s).then(m,i)}function b(f){return function(){var l=this,d=arguments;return new Promise(function(m,i){var h=f.apply(l,d);function V(s){S(h,m,i,V,v,"next",s)}function v(s){S(h,m,i,V,v,"throw",s)}V(void 0)})}}var C=function(){var f=b(y().mark(function(){function l(d,m){return y().wrap(function(){function i(h){for(;;)switch(h.prev=h.next){case 0:return h.next=2,a.storage.set("podlauncher_preset_"+d,m);case 2:case"end":return h.stop()}}return i}(),l)}return l}()));return function(){function l(d,m){return f.apply(this,arguments)}return l}()}(),c=function(l,d){var m=(0,o.useBackend)(d),i=m.data,h=l.editing,V=l.deletePreset,v=l.loadPreset,s=l.presetIndex,g=l.setEditing,N=l.getPresets;return(0,e.createFragment)([!h&&(0,e.createComponentVNode)(2,p.Button,{color:"transparent",icon:"plus",onClick:function(){function x(){return g(!h)}return x}(),tooltip:"\u041D\u043E\u0432\u044B\u0439 \u043F\u0440\u0435\u0441\u0435\u0442"}),(0,e.createComponentVNode)(2,p.Button,{color:"transparent",icon:"download",inline:!0,onClick:function(){function x(){return C(s.toString(),i)}return x}(),tooltip:"\u0421\u043E\u0445\u0440\u0430\u043D\u0438\u0442\u044C \u043F\u0440\u0435\u0441\u0435\u0442",tooltipPosition:"bottom"}),(0,e.createComponentVNode)(2,p.Button,{color:"transparent",icon:"upload",inline:!0,onClick:function(){function x(){v(s)}return x}(),tooltip:"\u0417\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044C \u043F\u0440\u0435\u0441\u0435\u0442"}),(0,e.createComponentVNode)(2,p.Button,{color:"transparent",icon:"trash",inline:!0,onClick:function(){function x(){return V(s)}return x}(),tooltip:"\u0423\u0434\u0430\u043B\u0438\u0442\u044C \u0432\u044B\u0431\u0440\u0430\u043D\u044B\u0439 \u043F\u0440\u0435\u0441\u0435\u0442",tooltipPosition:"bottom-start"}),(0,e.createComponentVNode)(2,p.Button,{color:"transparent",icon:"refresh",inline:!0,onClick:function(){function x(){return N()}return x}(),tooltip:"\u041E\u0431\u043D\u043E\u0432\u0438\u0442\u044C \u0441\u043F\u0438\u0441\u043E\u043A \u043F\u0440\u0435\u0441\u0435\u0442\u043E\u0432",tooltipPosition:"bottom-start"})],0)},u=r.PresetsPage=function(){function f(l,d){var m=(0,o.useBackend)(d),i=m.act,h=m.data,V=(0,o.useLocalState)(d,"editing",!1),v=V[0],s=V[1],g=(0,o.useLocalState)(d,"hue",0),N=g[0],x=g[1],B=(0,o.useLocalState)(d,"name",""),L=B[0],T=B[1],A=(0,o.useLocalState)(d,"presetID",0),E=A[0],w=A[1],O=(0,o.useLocalState)(d,"presets",[]),M=O[0],P=O[1],F=function(){var W=b(y().mark(function(){function K($){var ne,Y;return y().wrap(function(){function le(de){for(;;)switch(de.prev=de.next){case 0:ne=[].concat(M),Y=0;case 2:if(!(Y=l.length-2?m%2===1?"top-start":"top-end":m%2===1?"bottom-start":"bottom-end",tooltip:d.title,width:"45px",children:(0,e.createComponentVNode)(2,o.Box,{className:(0,a.classes)(["supplypods64x64","pod_asset"+d.id]),style:{"pointer-events":"none",transform:"rotate(45deg) translate(-25%,-10%)"}})},d.id)})})}return k}()},8179:function(I,r,n){"use strict";r.__esModule=!0,r.TabPod=r.TabDrop=r.TabBay=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.TabPod=function(){function y(S,b){var C=(0,a.useBackend)(b),c=C.act,u=C.data,f=u.oldArea;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{disabled:!0,icon:"street-view",children:"\u0422\u0435\u043B\u0435\u043F\u043E\u0440\u0442"}),(0,e.createComponentVNode)(2,t.Button,{disabled:!0,icon:"undo-alt",children:f?f.substring(0,17):"\u041D\u0430\u0437\u0430\u0434"})],4)}return y}(),p=r.TabBay=function(){function y(S,b){var C=(0,a.useBackend)(b),c=C.act,u=C.data,f=(0,a.useLocalState)(b,"teleported",!1),l=f[0],d=f[1],m=u.oldArea;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{icon:"street-view",onClick:function(){function i(){c("teleportCentcom"),d(!0)}return i}(),children:"\u0422\u0435\u043B\u0435\u043F\u043E\u0440\u0442"}),(0,e.createComponentVNode)(2,t.Button,{disabled:!m||!l,icon:"undo-alt",onClick:function(){function i(){c("teleportBack"),d(!1)}return i}(),children:m?m.substring(0,17):"\u041D\u0430\u0437\u0430\u0434"})],4)}return y}(),k=r.TabDrop=function(){function y(S,b){var C=(0,a.useBackend)(b),c=C.act,u=C.data,f=(0,a.useLocalState)(b,"teleported",!1),l=f[0],d=f[1],m=u.oldArea;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{icon:"street-view",onClick:function(){function i(){c("teleportDropoff"),d(!0)}return i}(),children:"\u0422\u0435\u043B\u0435\u043F\u043E\u0440\u0442"}),(0,e.createComponentVNode)(2,t.Button,{disabled:!m||!l,icon:"undo-alt",onClick:function(){function i(){c("teleportBack"),d(!1)}return i}(),children:m?m.substring(0,17):"\u041D\u0430\u0437\u0430\u0434"})],4)}return y}()},18885:function(I,r,n){"use strict";r.__esModule=!0,r.Timing=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(7144),p=n(22794),k=r.Timing=function(){function y(S,b){var C=(0,a.useBackend)(b),c=C.act,u=C.data,f=u.custom_rev_delay,l=u.effectReverse;return(0,e.createComponentVNode)(2,t.Section,{buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"undo",onClick:function(){function d(){return c("resetTiming")}return d}(),tooltip:"\n \u0421\u0431\u0440\u043E\u0441\u0438\u0442\u044C \u0442\u0430\u0439\u043C\u0438\u043D\u0433\u0438\n /\u0437\u0430\u0434\u0435\u0440\u0436\u043A\u0438 \u043A\u0430\u043F\u0441\u0443\u043B",tooltipPosition:"bottom-end"}),(0,e.createComponentVNode)(2,t.Button,{color:"transparent",disabled:!l,icon:f===1?"toggle-on":"toggle-off",onClick:function(){function d(){return c("toggleRevDelays")}return d}(),selected:f,tooltip:"\n \u041F\u0435\u0440\u0435\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0437\u0430\u0434\u0435\u0440\u0436\u043A\u0438 \u0432\u043E\u0437\u0432\u0440\u0430\u0442\u0430\n \u041F\u0440\u0438\u043C\u0435\u0447\u0430\u043D\u0438\u0435: \u043F\u0440\u0438 \u0432\u043A\u043B\u044E\u0447\u0435\u043D\u043D\u043E\u0439 \u043E\u043F\u0446\u0438\u0438 \u043F\u0435\u0440\u0435\u043A\u043B\u044E\u0447\u0430\u0442\u0435\u043B\u0438\n \u043E\u0431\u0440\u0430\u0449\u0430\u044E\u0442 \u0432\u0441\u043F\u044F\u0442\u044C \u0437\u0430\u0434\u0435\u0440\u0436\u043A\u0438 \u043A\u0430\u043F\u0441\u0443\u043B",tooltipPosition:"bottom-end"})],4),title:"\u0412\u0440\u0435\u043C\u044F",children:f?(0,e.createComponentVNode)(2,p.DelayHelper,{delay_list:o.REV_DELAYS,reverse:!0}):(0,e.createComponentVNode)(2,p.DelayHelper,{delay_list:o.DELAYS})})}return y}()},76417:function(I,r,n){"use strict";r.__esModule=!0,r.ViewTabHolder=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(7144),p=n(20345),k=r.ViewTabHolder=function(){function y(S,b){var C=(0,a.useBackend)(b),c=C.act,u=C.data,f=u.mapRef,l=u.customDropoff,d=u.effectReverse,m=u.renderLighting,i=(0,p.useTab)(b),h=i[0],V=i[1],v=o.TABPAGES[h].component;return(0,e.createComponentVNode)(2,t.Section,{buttons:(0,e.createFragment)([!!l&&!!d&&(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"arrow-circle-down",inline:!0,onClick:function(){function s(){V(2),c("tabSwitch",{tabIndex:2})}return s}(),selected:h===2,tooltip:"\u041C\u0435\u0441\u0442\u043E \u0412\u044B\u0441\u0430\u0434\u043A\u0438"}),(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"rocket",inline:!0,onClick:function(){function s(){V(0),c("tabSwitch",{tabIndex:0})}return s}(),selected:h===0,tooltip:"\u041A\u0430\u043F\u0441\u0443\u043B\u0430"}),(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"th",inline:!0,onClick:function(){function s(){V(1),c("tabSwitch",{tabIndex:1})}return s}(),selected:h===1,tooltip:"\u0410\u043D\u0433\u0430\u0440 \u041F\u043E\u0433\u0440\u0443\u0437\u043A\u0438"}),(0,e.createVNode)(1,"span",null,"|",16,{style:o.POD_GREY}),!!l&&!!d&&(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"lightbulb",inline:!0,onClick:function(){function s(){c("renderLighting"),c("refreshView")}return s}(),selected:m,tooltip:"\u0420\u0435\u043D\u0434\u0435\u0440\u0438\u043D\u0433 \u043E\u0441\u0432\u0435\u0449\u0435\u043D\u0438\u044F"}),(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"sync-alt",inline:!0,onClick:function(){function s(){V(h),c("refreshView")}return s}(),tooltip:"\u041E\u0431\u043D\u043E\u0432\u0438\u0442\u044C \u043E\u043A\u043D\u043E \u043F\u0440\u043E\u0441\u043C\u043E\u0442\u0440\u0430"})],0),fill:!0,title:"\u041E\u0441\u043C\u043E\u0442\u0440",children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,v)}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.ByondUi,{height:"100%",params:{id:f,type:"map",zoom:0}})})]})})}return y}()},7144:function(I,r,n){"use strict";r.__esModule=!0,r.TABPAGES=r.SOUNDS=r.REV_DELAYS=r.REVERSE_OPTIONS=r.POD_GREY=r.EFFECTS_NORMAL=r.EFFECTS_LOAD=r.EFFECTS_HARM=r.EFFECTS_ALL=r.DELAYS=r.BAYS=void 0;var e=n(8179),a=r.POD_GREY={color:"grey"},t=r.TABPAGES=[{title:"\u041F\u0440\u043E\u0441\u043C\u043E\u0442\u0440 \u043A\u0430\u043F\u0441\u0443\u043B\u044B",component:e.TabPod},{title:"\u041F\u0440\u043E\u0441\u043C\u043E\u0442\u0440 \u0430\u043D\u0433\u0430\u0440\u0430",component:e.TabBay},{title:"\u041F\u0440\u043E\u0441\u043C\u043E\u0442\u0440 \u043C\u0435\u0441\u0442\u0430 \u0432\u044B\u0433\u0440\u0443\u0437\u043A\u0438.",component:e.TabDrop}],o=r.REVERSE_OPTIONS=[{title:"\u041C\u043E\u0431\u044B",key:"Mobs",icon:"user"},{title:"\u041D\u0435 \u0437\u0430\u043A\u0440\u0435\u043F\u043B\u0451\u043D\u043D\u044B\u0435\n\u041E\u0431\u044A\u0435\u043A\u0442\u044B",key:"Unanchored",icon:"cube"},{title:"\u0417\u0430\u043A\u0440\u0435\u043F\u043B\u0451\u043D\u043D\u044B\u0435\n\u041E\u0431\u044A\u0435\u043A\u0442\u044B",key:"Anchored",icon:"anchor"},{title:"\u041C\u0435\u0445\u0438",key:"Mecha",icon:"truck"}],p=r.DELAYS=[{title:"Pre",tooltip:"\u0412\u0440\u0435\u043C\u044F \u0434\u043E \u043F\u0440\u0438\u0431\u044B\u0442\u0438\u044F \u043A\u0430\u043F\u0441\u0443\u043B\u044B \u043D\u0430 \u0441\u0442\u0430\u043D\u0446\u0438\u044E"},{title:"Fall",tooltip:"\u041F\u0440\u043E\u0434\u043E\u043B\u0436\u0438\u0442\u0435\u043B\u044C\u043D\u043E\u0441\u0442\u044C \u0430\u043D\u0438\u043C\u0430\u0446\u0438\u0438\n \u043F\u0430\u0434\u0435\u043D\u0438\u044F \u043A\u0430\u043F\u0441\u0443\u043B"},{title:"Open",tooltip:"\u0412\u0440\u0435\u043C\u044F, \u043D\u0435\u043E\u0431\u0445\u043E\u0434\u0438\u043C\u043E\u0435 \u043A\u0430\u043F\u0441\u0443\u043B\u0435 \u0434\u043B\u044F \u043E\u0442\u043A\u0440\u044B\u0442\u0438\u044F \u043F\u043E\u0441\u043B\u0435 \u043F\u0440\u0438\u0437\u0435\u043C\u043B\u0435\u043D\u0438\u044F"},{title:"Exit",tooltip:"\u0412\u0440\u0435\u043C\u044F \u0434\u043E \u043E\u0442\u043B\u0435\u0442\u0430 \u043A\u0430\u043F\u0441\u0443\u043B\u044B\n\u043F\u043E\u0441\u043B\u0435 \u043E\u0442\u043A\u0440\u044B\u0442\u0438\u044F"}],k=r.REV_DELAYS=[{title:"Pre",tooltip:"\u0412\u0440\u0435\u043C\u044F \u0434\u043E \u043F\u043E\u044F\u0432\u043B\u0435\u043D\u0438\u044F \u043A\u0430\u043F\u0441\u0443\u043B\u044B \u043D\u0430\u0434 \u0442\u043E\u0447\u043A\u043E\u0439 \u0432\u044B\u0441\u0430\u0434\u043A\u0438"},{title:"Fall",tooltip:"\u041F\u0440\u043E\u0434\u043E\u043B\u0436\u0438\u0442\u0435\u043B\u044C\u043D\u043E\u0441\u0442\u044C \u0430\u043D\u0438\u043C\u0430\u0446\u0438\u0438\n \u043F\u0430\u0434\u0435\u043D\u0438\u044F \u043A\u0430\u043F\u0441\u0443\u043B"},{title:"Open",tooltip:"\u0412\u0440\u0435\u043C\u044F, \u043D\u0435\u043E\u0431\u0445\u043E\u0434\u0438\u043C\u043E\u0435 \u043A\u0430\u043F\u0441\u0443\u043B\u0435 \u0434\u043B\u044F \u043E\u0442\u043A\u0440\u044B\u0442\u0438\u044F \u043F\u043E\u0441\u043B\u0435 \u043F\u0440\u0438\u0437\u0435\u043C\u043B\u0435\u043D\u0438\u044F"},{title:"Exit",tooltip:"\u0412\u0440\u0435\u043C\u044F \u0434\u043E \u043E\u0442\u043B\u0435\u0442\u0430 \u043A\u0430\u043F\u0441\u0443\u043B\u044B\n\u043F\u043E\u0441\u043B\u0435 \u043E\u0442\u043A\u0440\u044B\u0442\u0438\u044F"}],y=r.SOUNDS=[{title:"Fall",act:"fallingSound",tooltip:"\u0412\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u043E\u0434\u0438\u0442\u0441\u044F, \u043F\u043E\u043A\u0430 \u043A\u0430\u043F\u0441\u0443\u043B\u0430 \u043F\u0430\u0434\u0430\u0435\u0442, \u0438 \u0437\u0430\u043A\u0430\u043D\u0447\u0438\u0432\u0430\u0435\u0442\u0441\u044F\n\u043A\u043E\u0433\u0434\u0430 \u043A\u0430\u043F\u0441\u0443\u043B\u0430 \u043F\u0440\u0438\u0437\u0435\u043C\u043B\u044F\u0435\u0442\u0441\u044F"},{title:"Land",act:"landingSound",tooltip:"\u0412\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u043E\u0434\u0438\u0442\u0441\u044F \u043F\u043E\u0441\u043B\u0435 \u043F\u0440\u0438\u0437\u0435\u043C\u043B\u0435\u043D\u0438\u044F \u043A\u0430\u043F\u0441\u0443\u043B\u044B"},{title:"Open",act:"openingSound",tooltip:"\u0412\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u043E\u0434\u0438\u0442\u0441\u044F \u043F\u0440\u0438 \u043E\u0442\u043A\u0440\u044B\u0442\u0438\u0438 \u043A\u0430\u043F\u0441\u0443\u043B\u044B"},{title:"Exit",act:"leavingSound",tooltip:"\u0412\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u043E\u0434\u0438\u0442\u0441\u044F, \u043A\u043E\u0433\u0434\u0430 \u043A\u0430\u043F\u0441\u0443\u043B\u0430 \u0443\u043B\u0435\u0442\u0430\u0435\u0442"}],S=r.BAYS=[{title:"1"},{title:"2"},{title:"3"},{title:"4"},{title:"\u0415\u0420\u0422"}],b=r.EFFECTS_LOAD=[{act:"launchAll",choiceNumber:0,icon:"globe",selected:"launchChoice",title:"\u0417\u0430\u043F\u0443\u0441\u0442\u0438\u0442\u044C \u0441\u043E \u0432\u0441\u0435\u0445 \u0442\u0443\u0440\u0444\u043E\u0432"},{act:"launchOrdered",choiceNumber:1,icon:"sort-amount-down-alt",selected:"launchChoice",title:"\u0417\u0430\u043F\u0443\u0441\u0442\u0438\u0442\u044C \u0441 \u0442\u0443\u0440\u0444\u043E\u0432 \u043F\u043E \u043F\u043E\u0440\u044F\u0434\u043A\u0443"},{act:"launchRandomTurf",choiceNumber:2,icon:"dice",selected:"launchChoice",title:"\u0412\u044B\u0431\u0440\u0430\u0442\u044C \u0440\u0430\u043D\u0434\u043E\u043C\u043D\u044B\u0439 \u0442\u0443\u0440\u0444"},{divider:!0},{act:"launchWholeTurf",choiceNumber:0,icon:"expand",selected:"launchRandomItem",title:"\u0417\u0430\u043F\u0443\u0441\u0442\u0438\u0442\u044C \u0432\u0441\u0435 \u0441\u043E\u0434\u0435\u0440\u0436\u0438\u043C\u043E\u0435 \u0442\u0443\u0440\u0444\u0430"},{act:"launchRandomItem",choiceNumber:1,icon:"dice",selected:"launchRandomItem",title:"\u0412\u044B\u0431\u0440\u0430\u0442\u044C \u0441\u043B\u0443\u0447\u0430\u0439\u043D\u044B\u0439 \u043E\u0431\u044A\u0435\u043A\u0442"},{divider:!0},{act:"launchClone",icon:"clone",soloSelected:"launchClone",title:"\u041A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u043E\u0431\u044A\u0435\u043A\u0442"}],C=r.EFFECTS_NORMAL=[{act:"effectTarget",icon:"user-check",soloSelected:"effectTarget",title:"\u041E\u0441\u043E\u0431\u0430\u044F \u0446\u0435\u043B\u044C"},{act:"effectBluespace",choiceNumber:0,icon:"hand-paper",selected:"effectBluespace",title:"\u041A\u0430\u043F\u0441\u0443\u043B\u0430 \u043E\u0441\u0442\u0430\u0435\u0442\u0441\u044F"},{act:"effectStealth",icon:"user-ninja",soloSelected:"effectStealth",title:"\u0421\u043A\u0440\u044B\u0442\u043D\u043E"},{act:"effectQuiet",icon:"volume-mute",soloSelected:"effectQuiet",title:"\u0422\u0438\u0445\u043E"},{act:"effectMissile",icon:"rocket",soloSelected:"effectMissile",title:"\u0420\u0435\u0436\u0438\u043C \u0440\u0430\u043A\u0435\u0442\u044B"},{act:"effectBurst",icon:"certificate",soloSelected:"effectBurst",title:"\u0417\u0430\u043F\u0443\u0441\u043A \u043A\u043B\u0430\u0441\u0442\u0435\u0440\u0430"},{act:"effectCircle",icon:"ruler-combined",soloSelected:"effectCircle",title:"\u041B\u044E\u0431\u043E\u0439 \u0443\u0433\u043E\u043B \u0441\u043F\u0443\u0441\u043A\u0430"},{act:"effectAnnounce",choiceNumber:0,icon:"ghost",selected:"effectAnnounce",title:"\u041D\u0435\u0442 \u043E\u043F\u043E\u0432\u0435\u0449\u0435\u043D\u0438\u044F \u043F\u0440\u0438\u0437\u0440\u0430\u043A\u043E\u0432\n(\u0435\u0441\u043B\u0438 \u0432\u044B \u043D\u0435 \u0445\u043E\u0442\u0438\u0442\u0435\n\u0440\u0430\u0437\u0432\u043B\u0435\u043A\u0430\u0442\u044C \u0441\u043A\u0443\u0447\u0430\u044E\u0449\u0438\u0445 \u043F\u0440\u0438\u0437\u0440\u0430\u043A\u043E\u0432)"}],c=r.EFFECTS_HARM=[{act:"explosionCustom",choiceNumber:1,icon:"bomb",selected:"explosionChoice",title:"\u041D\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0435\u043C\u044B\u0439 \u0432\u0437\u0440\u044B\u0432"},{act:"explosionBus",choiceNumber:2,icon:"bomb",selected:"explosionChoice",title:"\u0410\u0434\u043C\u0438\u043D\u0430\u0431\u0443\u0437-\u0432\u0437\u0440\u044B\u0432\n\u0418 \u0447\u0442\u043E \u043E\u043D\u0438 \u0441\u0434\u0435\u043B\u0430\u044E\u0442, \u0437\u0430\u0431\u0430\u043D\u044F\u0442 \u0442\u0435\u0431\u044F?"},{divider:!0},{act:"damageCustom",choiceNumber:1,icon:"skull",selected:"damageChoice",title:"\u041D\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0435\u043C\u044B\u0439 \u0443\u0440\u043E\u043D"},{act:"damageGib",choiceNumber:2,icon:"skull-crossbones",selected:"damageChoice",title:"\u0413\u0438\u0431"},{divider:!0},{act:"effectShrapnel",details:!0,icon:"cloud-meatball",soloSelected:"effectShrapnel",title:"\u041E\u0431\u043B\u0430\u043A\u043E \u0441\u043D\u0430\u0440\u044F\u0434\u043E\u0432"},{act:"effectStun",icon:"sun",soloSelected:"effectStun",title:"\u0421\u0442\u0430\u043D"},{act:"effectLimb",icon:"socks",soloSelected:"effectLimb",title:"\u041F\u043E\u0442\u0435\u0440\u044F \u043A\u043E\u043D\u0435\u0447\u043D\u043E\u0441\u0442\u0438"},{act:"effectOrgans",icon:"book-dead",soloSelected:"effectOrgans",title:"\u0420\u0430\u0437\u043B\u0435\u0442 \u0432\u0441\u0435\u0445 \u043E\u0440\u0433\u0430\u043D\u043E\u0432"}],u=r.EFFECTS_ALL=[{list:b,label:"\u0417\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044C \u0438\u0437",alt_label:"\u0417\u0430\u0433\u0440\u0443\u0437\u043A\u0430",tooltipPosition:"right"},{list:C,label:"\u041E\u0431\u044B\u0447\u043D\u044B\u0435 \u042D\u0444\u0444\u0435\u043A\u0442\u044B",tooltipPosition:"bottom"},{list:c,label:"\u0412\u0440\u0435\u0434\u043D\u044B\u0435 \u044D\u0444\u0444\u0435\u043A\u0442\u044B",tooltipPosition:"bottom"}]},20345:function(I,r,n){"use strict";r.__esModule=!0,r.useTab=r.useCompact=void 0;var e=n(72253),a=r.useCompact=function(){function o(p){return(0,e.useLocalState)(p,"compact",!1)}return o}(),t=r.useTab=function(){function o(p){return(0,e.useLocalState)(p,"tab",1)}return o}()},65875:function(I,r,n){"use strict";r.__esModule=!0,r.CentcomPodLauncher=void 0;var e=n(89005),a=n(36036),t=n(98595),o=n(20345),p=n(23749),k=n(8507),y=n(15802),S=n(94577),b=n(30590),C=n(72932),c=n(68569),u=n(18885),f=n(76417),l=r.CentcomPodLauncher=function(){function d(m,i){var h=(0,o.useCompact)(i),V=h[0];return(0,e.createComponentVNode)(2,t.Window,{height:V?360:440,title:"\u041C\u0435\u043D\u044E \u043A\u0430\u043F\u0441\u0443\u043B \u0441\u043D\u0430\u0431\u0436\u0435\u043D\u0438\u044F",width:V?460:750,children:(0,e.createComponentVNode)(2,t.Window.Content,{children:(0,e.createComponentVNode)(2,a.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,a.Stack.Item,{shrink:0,children:(0,e.createComponentVNode)(2,S.PodStatusPage)}),(0,e.createComponentVNode)(2,a.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,a.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,a.Stack.Item,{grow:!0,shrink:0,basis:"14.1em",children:(0,e.createComponentVNode)(2,a.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,a.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,b.PresetsPage)}),(0,e.createComponentVNode)(2,a.Stack.Item,{children:(0,e.createComponentVNode)(2,C.ReverseMenu)}),(0,e.createComponentVNode)(2,a.Stack.Item,{children:(0,e.createComponentVNode)(2,a.Section,{children:(0,e.createComponentVNode)(2,k.PodLaunch)})})]})}),!V&&(0,e.createComponentVNode)(2,a.Stack.Item,{grow:3,children:(0,e.createComponentVNode)(2,f.ViewTabHolder)}),(0,e.createComponentVNode)(2,a.Stack.Item,{basis:"9em",children:(0,e.createComponentVNode)(2,a.Stack,{fill:!0,vertical:!0,direction:"column",children:[(0,e.createComponentVNode)(2,a.Stack.Item,{children:(0,e.createComponentVNode)(2,p.PodBays)}),(0,e.createComponentVNode)(2,a.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,u.Timing)}),!V&&(0,e.createComponentVNode)(2,a.Stack.Item,{children:(0,e.createComponentVNode)(2,y.PodSounds,{fill:!0})})]})}),(0,e.createComponentVNode)(2,a.Stack.Item,{basis:"11em",children:(0,e.createComponentVNode)(2,c.StylePage)})]})})]})})})}return d}()},16780:function(){"use strict"},12226:function(I,r,n){"use strict";r.__esModule=!0,r.Changelog=void 0;var e=n(89005),a=n(35840),t=n(72253),o=n(36036),p=n(98595),k=n(79140),y=b(n(83331)),S=b(n(52754));function b(i){return i&&i.__esModule?i:{default:i}}function C(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */C=function(){return h};var i,h={},V=Object.prototype,v=V.hasOwnProperty,s=Object.defineProperty||function(J,X,Q){J[X]=Q.value},g=typeof Symbol=="function"?Symbol:{},N=g.iterator||"@@iterator",x=g.asyncIterator||"@@asyncIterator",B=g.toStringTag||"@@toStringTag";function L(J,X,Q){return Object.defineProperty(J,X,{value:Q,enumerable:!0,configurable:!0,writable:!0}),J[X]}try{L({},"")}catch(J){L=function(Q,q,te){return Q[q]=te}}function T(J,X,Q,q){var te=X&&X.prototype instanceof F?X:F,fe=Object.create(te.prototype),ye=new Z(q||[]);return s(fe,"_invoke",{value:le(J,Q,ye)}),fe}function A(J,X,Q){try{return{type:"normal",arg:J.call(X,Q)}}catch(q){return{type:"throw",arg:q}}}h.wrap=T;var E="suspendedStart",w="suspendedYield",O="executing",M="completed",P={};function F(){}function R(){}function U(){}var j={};L(j,N,function(){return this});var W=Object.getPrototypeOf,K=W&&W(W(ae([])));K&&K!==V&&v.call(K,N)&&(j=K);var $=U.prototype=F.prototype=Object.create(j);function ne(J){["next","throw","return"].forEach(function(X){L(J,X,function(Q){return this._invoke(X,Q)})})}function Y(J,X){function Q(te,fe,ye,pe){var Le=A(J[te],J,fe);if(Le.type!=="throw"){var D=Le.arg,ie=D.value;return ie&&typeof ie=="object"&&v.call(ie,"__await")?X.resolve(ie.__await).then(function(se){Q("next",se,ye,pe)},function(se){Q("throw",se,ye,pe)}):X.resolve(ie).then(function(se){D.value=se,ye(D)},function(se){return Q("throw",se,ye,pe)})}pe(Le.arg)}var q;s(this,"_invoke",{value:function(){function te(fe,ye){function pe(){return new X(function(Le,D){Q(fe,ye,Le,D)})}return q=q?q.then(pe,pe):pe()}return te}()})}function le(J,X,Q){var q=E;return function(te,fe){if(q===O)throw Error("Generator is already running");if(q===M){if(te==="throw")throw fe;return{value:i,done:!0}}for(Q.method=te,Q.arg=fe;;){var ye=Q.delegate;if(ye){var pe=de(ye,Q);if(pe){if(pe===P)continue;return pe}}if(Q.method==="next")Q.sent=Q._sent=Q.arg;else if(Q.method==="throw"){if(q===E)throw q=M,Q.arg;Q.dispatchException(Q.arg)}else Q.method==="return"&&Q.abrupt("return",Q.arg);q=O;var Le=A(J,X,Q);if(Le.type==="normal"){if(q=Q.done?M:w,Le.arg===P)continue;return{value:Le.arg,done:Q.done}}Le.type==="throw"&&(q=M,Q.method="throw",Q.arg=Le.arg)}}}function de(J,X){var Q=X.method,q=J.iterator[Q];if(q===i)return X.delegate=null,Q==="throw"&&J.iterator.return&&(X.method="return",X.arg=i,de(J,X),X.method==="throw")||Q!=="return"&&(X.method="throw",X.arg=new TypeError("The iterator does not provide a '"+Q+"' method")),P;var te=A(q,J.iterator,X.arg);if(te.type==="throw")return X.method="throw",X.arg=te.arg,X.delegate=null,P;var fe=te.arg;return fe?fe.done?(X[J.resultName]=fe.value,X.next=J.nextLoc,X.method!=="return"&&(X.method="next",X.arg=i),X.delegate=null,P):fe:(X.method="throw",X.arg=new TypeError("iterator result is not an object"),X.delegate=null,P)}function oe(J){var X={tryLoc:J[0]};1 in J&&(X.catchLoc=J[1]),2 in J&&(X.finallyLoc=J[2],X.afterLoc=J[3]),this.tryEntries.push(X)}function re(J){var X=J.completion||{};X.type="normal",delete X.arg,J.completion=X}function Z(J){this.tryEntries=[{tryLoc:"root"}],J.forEach(oe,this),this.reset(!0)}function ae(J){if(J||J===""){var X=J[N];if(X)return X.call(J);if(typeof J.next=="function")return J;if(!isNaN(J.length)){var Q=-1,q=function(){function te(){for(;++Q=0;--te){var fe=this.tryEntries[te],ye=fe.completion;if(fe.tryLoc==="root")return q("end");if(fe.tryLoc<=this.prev){var pe=v.call(fe,"catchLoc"),Le=v.call(fe,"finallyLoc");if(pe&&Le){if(this.prev=0;--q){var te=this.tryEntries[q];if(te.tryLoc<=this.prev&&v.call(te,"finallyLoc")&&this.prev=0;--Q){var q=this.tryEntries[Q];if(q.finallyLoc===X)return this.complete(q.completion,q.afterLoc),re(q),P}}return J}(),catch:function(){function J(X){for(var Q=this.tryEntries.length-1;Q>=0;--Q){var q=this.tryEntries[Q];if(q.tryLoc===X){var te=q.completion;if(te.type==="throw"){var fe=te.arg;re(q)}return fe}}throw Error("illegal catch attempt")}return J}(),delegateYield:function(){function J(X,Q,q){return this.delegate={iterator:ae(X),resultName:Q,nextLoc:q},this.method==="next"&&(this.arg=i),P}return J}()},h}function c(i,h,V,v,s,g,N){try{var x=i[g](N),B=x.value}catch(L){return void V(L)}x.done?h(B):Promise.resolve(B).then(v,s)}function u(i){return function(){var h=this,V=arguments;return new Promise(function(v,s){var g=i.apply(h,V);function N(B){c(g,v,s,N,x,"next",B)}function x(B){c(g,v,s,N,x,"throw",B)}N(void 0)})}}function f(i,h){i.prototype=Object.create(h.prototype),i.prototype.constructor=i,l(i,h)}function l(i,h){return l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(V,v){return V.__proto__=v,V},l(i,h)}var d={add:{icon:"check-circle",color:"green"},admin:{icon:"user-shield",color:"purple"},balance:{icon:"balance-scale-right",color:"yellow"},bugfix:{icon:"bug",color:"green"},code_imp:{icon:"code",color:"green"},config:{icon:"cogs",color:"purple"},del:{icon:"minus",color:"red"},expansion:{icon:"check-circle",color:"green"},experiment:{icon:"radiation",color:"yellow"},image:{icon:"image",color:"green"},imageadd:{icon:"tg-image-plus",color:"green"},imagedel:{icon:"tg-image-minus",color:"red"},qol:{icon:"hand-holding-heart",color:"green"},refactor:{icon:"tools",color:"green"},rscadd:{icon:"check-circle",color:"green"},rscdel:{icon:"times-circle",color:"red"},server:{icon:"server",color:"purple"},sound:{icon:"volume-high",color:"green"},soundadd:{icon:"tg-sound-plus",color:"green"},sounddel:{icon:"tg-sound-minus",color:"red"},spellcheck:{icon:"spell-check",color:"green"},tgs:{icon:"toolbox",color:"purple"},tweak:{icon:"wrench",color:"green"},unknown:{icon:"info-circle",color:"label"},wip:{icon:"hammer",color:"orange"}},m=r.Changelog=function(i){function h(){var v;return v=i.call(this)||this,v.getData=function(s,g){g===void 0&&(g=1);var N=(0,t.useBackend)(v.context),x=N.act,B=v,L=6;if(g>L)return v.setData("Failed to load data after "+L+" attempts");x("get_month",{date:s}),fetch((0,k.resolveAsset)(s+".yml")).then(function(){var T=u(C().mark(function(){function A(E){var w,O,M;return C().wrap(function(){function P(F){for(;;)switch(F.prev=F.next){case 0:return F.next=2,E.text();case 2:w=F.sent,O=/^Cannot find/,O.test(w)?(M=50+g*50,B.setData("Loading changelog data"+".".repeat(g+3)),setTimeout(function(){B.getData(s,g+1)},M)):B.setData(S.default.load(w,{schema:S.default.CORE_SCHEMA}));case 5:case"end":return F.stop()}}return P}(),A)}return A}()));return function(A){return T.apply(this,arguments)}}())},v.state={data:"Loading changelog data...",selectedDate:"",selectedIndex:0},v.dateChoices=[],v}f(h,i);var V=h.prototype;return V.setData=function(){function v(s){this.setState({data:s})}return v}(),V.setSelectedDate=function(){function v(s){this.setState({selectedDate:s})}return v}(),V.setSelectedIndex=function(){function v(s){this.setState({selectedIndex:s})}return v}(),V.componentDidMount=function(){function v(){var s=this,g=(0,t.useBackend)(this.context),N=g.data.dates,x=N===void 0?[]:N;x&&(x.forEach(function(B){return s.dateChoices.push((0,y.default)(B,"mmmm yyyy",!0))}),this.setSelectedDate(this.dateChoices[0]),this.getData(x[0]))}return v}(),V.render=function(){function v(){var s=this,g=this.state,N=g.data,x=g.selectedDate,B=g.selectedIndex,L=(0,t.useBackend)(this.context),T=L.data.dates,A=this.dateChoices,E=A.length>0&&(0,e.createComponentVNode)(2,o.Stack,{mb:1,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{className:"Changelog__Button",disabled:B===0,icon:"chevron-left",onClick:function(){function F(){var R=B-1;return s.setData("Loading changelog data..."),s.setSelectedIndex(R),s.setSelectedDate(A[R]),window.scrollTo(0,document.body.scrollHeight||document.documentElement.scrollHeight),s.getData(T[R])}return F}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Dropdown,{displayText:x,options:A,onSelected:function(){function F(R){var U=A.indexOf(R);return s.setData("Loading changelog data..."),s.setSelectedIndex(U),s.setSelectedDate(R),window.scrollTo(0,document.body.scrollHeight||document.documentElement.scrollHeight),s.getData(T[U])}return F}(),selected:x,width:"150px"})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{className:"Changelog__Button",disabled:B===A.length-1,icon:"chevron-right",onClick:function(){function F(){var R=B+1;return s.setData("Loading changelog data..."),s.setSelectedIndex(R),s.setSelectedDate(A[R]),window.scrollTo(0,document.body.scrollHeight||document.documentElement.scrollHeight),s.getData(T[R])}return F}()})})]}),w=(0,e.createComponentVNode)(2,o.Section,{children:[(0,e.createVNode)(1,"h1",null,"Paradise Station",16),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Thanks to: ",16),(0,e.createTextVNode)("Baystation 12, /tg/station, /vg/station, NTstation, CDK Station devs, FacepunchStation, GoonStation devs, the original SpaceStation developers and Radithor for the title image. Also a thanks to anybody who has contributed who is not listed here :( Ask to be added here on irc.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createTextVNode)("Recent GitHub contributors can be found "),(0,e.createVNode)(1,"a",null,"here",16,{href:"https://github.com/ss220-space/Paradise/pulse/monthly"}),(0,e.createTextVNode)(".")],0),E]}),O=(0,e.createComponentVNode)(2,o.Section,{children:[E,(0,e.createVNode)(1,"h3",null,"GoonStation 13 Development Team",16),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Coders: ",16),(0,e.createTextVNode)("Stuntwaffle, Showtime, Pantaloons, Nannek, Keelin, Exadv1, hobnob, Justicefries, 0staf, sniperchance, AngriestIBM, BrianOBlivion")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Spriters: ",16),(0,e.createTextVNode)("Supernorn, Haruhi, Stuntwaffle, Pantaloons, Rho, SynthOrange, I Said No")],4),(0,e.createVNode)(1,"p",null,[(0,e.createTextVNode)("Traditional Games Space Station 13 is thankful to the GoonStation 13 Development Team for its work on the game up to the"),(0,e.createTextVNode)(" r4407 release. The changelog for changes up to r4407 can be seen "),(0,e.createVNode)(1,"a",null,"here",16,{href:"https://wiki.ss13.co/Pre-2016_Changelog#April_2010"}),(0,e.createTextVNode)(".")],0),(0,e.createVNode)(1,"p",null,["Except where otherwise noted, Goon Station 13 is licensed under a ",(0,e.createVNode)(1,"a",null,"Creative Commons Attribution-Noncommercial-Share Alike 3.0 License",16,{href:"https://creativecommons.org/licenses/by-nc-sa/3.0/"}),". Rights are currently extended to ",(0,e.createVNode)(1,"a",null,"SomethingAwful Goons",16,{href:"http://forums.somethingawful.com/"})," only."],0),(0,e.createVNode)(1,"h3",null,"Traditional Games Space Station 13 License",16),(0,e.createVNode)(1,"p",null,[(0,e.createTextVNode)("Some icons by"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"a",null,"Yusuke Kamiyamane",16,{href:"http://p.yusukekamiyamane.com/"}),(0,e.createTextVNode)(". All rights reserved. Licensed under a"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"a",null,"Creative Commons Attribution 3.0 License",16,{href:"http://creativecommons.org/licenses/by/3.0/"}),(0,e.createTextVNode)(".")],0)]}),M=/#\d+/,P=typeof N=="object"&&Object.keys(N).length>0&&Object.entries(N).reverse().map(function(F){var R=F[0],U=F[1];return(0,e.createComponentVNode)(2,o.Section,{title:(0,y.default)(R,"d mmmm yyyy",!0),children:(0,e.createComponentVNode)(2,o.Box,{ml:3,children:Object.entries(U).map(function(j){var W=j[0],K=j[1];return(0,e.createFragment)([(0,e.createVNode)(1,"h4",null,[W,(0,e.createTextVNode)(" changed:")],0),(0,e.createComponentVNode)(2,o.Box,{ml:3,children:(0,e.createComponentVNode)(2,o.Table,{children:K.map(function($){var ne=Object.keys($)[0],Y=$[ne],le=Y.match(M),de=(0,e.createComponentVNode)(2,o.Table.Cell,{className:(0,a.classes)(["Changelog__Cell","Changelog__Cell--Icon"]),children:(0,e.createComponentVNode)(2,o.Icon,{color:d[ne]?d[ne].color:d.unknown.color,name:d[ne]?d[ne].icon:d.unknown.icon})});return le!==null&&(0,e.createComponentVNode)(2,o.Table.Row,{children:[de,(0,e.createComponentVNode)(2,o.Table.Cell,{className:"Changelog__Cell",children:(0,e.createVNode)(1,"a",null,[" ",Y.charAt(0).toUpperCase()+Y.slice(1)," "],0,{href:"https://github.com/ss220-space/Paradise/pull/"+le[0].substring(1)})})]},ne+Y)||(0,e.createComponentVNode)(2,o.Table.Row,{children:[de,(0,e.createComponentVNode)(2,o.Table.Cell,{className:"Changelog__Cell",children:Y})]},ne+Y)})})})],4,W)})})},R)});return(0,e.createComponentVNode)(2,p.Window,{title:"Changelog",width:675,height:650,children:(0,e.createComponentVNode)(2,p.Window.Content,{scrollable:!0,children:[w,P,typeof N=="string"&&(0,e.createVNode)(1,"p",null,N,0),O]})})}return v}(),h}(e.Component)},91360:function(I,r,n){"use strict";r.__esModule=!0,r.CheckboxListInputModal=void 0;var e=n(89005),a=n(51057),t=n(19203),o=n(36036),p=n(72253),k=n(98595),y=r.CheckboxListInputModal=function(){function b(C,c){var u=(0,p.useBackend)(c),f=u.act,l=u.data,d=l.items,m=d===void 0?[]:d,i=l.message,h=i===void 0?"":i,V=l.init_value,v=l.timeout,s=l.title,g=(0,p.useLocalState)(c,"edittedItems",m),N=g[0],x=g[1],B=330+Math.ceil(h.length/3),L=function(){function T(A){A===void 0&&(A=null);var E=[].concat(N);E=E.map(function(w){return w.key===A.key?Object.assign({},w,{checked:!A.checked}):w}),x(E)}return T}();return(0,e.createComponentVNode)(2,k.Window,{title:s,width:325,height:B,children:[v&&(0,e.createComponentVNode)(2,a.Loader,{value:v}),(0,e.createComponentVNode)(2,k.Window.Content,{children:(0,e.createComponentVNode)(2,o.Section,{className:"ListInput__Section",fill:!0,title:h,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,S,{filteredItems:N,onClick:L})}),(0,e.createComponentVNode)(2,o.Stack.Item,{mt:.5,children:(0,e.createComponentVNode)(2,t.InputButtons,{input:N})})]})})})]})}return b}(),S=function(C,c){var u=C.filteredItems,f=C.onClick;return(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,tabIndex:0,children:u.map(function(l,d){return(0,e.createComponentVNode)(2,o.Button.Checkbox,{fluid:!0,id:d,onClick:function(){function m(){return f(l)}return m}(),checked:l.checked,style:{animation:"none",transition:"none"},children:l.key.replace(/^\w/,function(m){return m.toUpperCase()})},d)})})}},36108:function(I,r,n){"use strict";r.__esModule=!0,r.ChemDispenser=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(85870),p=n(98595),k=[1,5,10,20,30,50,100],y=[1,5,10],S=r.ChemDispenser=function(){function u(f,l){var d=(0,a.useBackend)(l),m=d.act,i=d.data,h=i.chemicals;return(0,e.createComponentVNode)(2,p.Window,{width:580,height:400+h.length*8,children:(0,e.createComponentVNode)(2,p.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,b),(0,e.createComponentVNode)(2,C),(0,e.createComponentVNode)(2,c)]})})})}return u}(),b=function(f,l){var d=(0,a.useBackend)(l),m=d.act,i=d.data,h=i.amount,V=i.energy,v=i.maxEnergy;return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"\u041F\u0430\u0440\u0430\u043C\u0435\u0442\u0440\u044B",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u042D\u043D\u0435\u0440\u0433\u0438\u044F",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:V,minValue:0,maxValue:v,ranges:{good:[v*.5,1/0],average:[v*.25,v*.5],bad:[-1/0,v*.25]},children:[V," / ",v," \u0415\u0434\u0438\u043D\u0438\u0446"]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u041E\u0431\u044A\u0451\u043C \u0441\u0438\u043D\u0442\u0435\u0437\u0430",verticalAlign:"middle",children:(0,e.createComponentVNode)(2,t.Stack,{children:k.map(function(s,g){return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,width:"15%",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"cog",selected:h===s,content:s,onClick:function(){function N(){return m("amount",{amount:s})}return N}()})},g)})})})]})})})},C=function(f,l){for(var d=(0,a.useBackend)(l),m=d.act,i=d.data,h=i.chemicals,V=h===void 0?[]:h,v=[],s=0;s<(V.length+1)%3;s++)v.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?"\u0421\u0438\u043D\u0442\u0435\u0437 \u043D\u0430\u043F\u0438\u0442\u043A\u043E\u0432":"\u0421\u0438\u043D\u0442\u0435\u0437 \u0440\u0435\u0430\u0433\u0435\u043D\u0442\u043E\u0432",children:[V.map(function(g,N){return(0,e.createComponentVNode)(2,t.Button,{m:.1,width:"32.5%",icon:"arrow-circle-down",overflow:"hidden",textOverflow:"ellipsis",content:g.title,style:{"margin-left":"2px"},onClick:function(){function x(){return m("dispense",{reagent:g.id})}return x}()},N)}),v.map(function(g,N){return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,basis:"25%"},N)})]})})},c=function(f,l){var d=(0,a.useBackend)(l),m=d.act,i=d.data,h=i.isBeakerLoaded,V=i.beakerCurrentVolume,v=i.beakerMaxVolume,s=i.beakerContents,g=s===void 0?[]:s;return(0,e.createComponentVNode)(2,t.Stack.Item,{height:16,children:(0,e.createComponentVNode)(2,t.Section,{title:"\u0401\u043C\u043A\u043E\u0441\u0442\u044C",fill:!0,scrollable:!0,buttons:(0,e.createComponentVNode)(2,t.Box,{children:[!!h&&(0,e.createComponentVNode)(2,t.Box,{inline:!0,color:"label",mr:2,children:[V," / ",v," \u0435\u0434\u0438\u043D\u0438\u0446"]}),(0,e.createComponentVNode)(2,t.Button,{icon:"eject",content:"\u0418\u0437\u0432\u043B\u0435\u0447\u044C",disabled:!h,onClick:function(){function N(){return m("ejectBeaker")}return N}()})]}),children:(0,e.createComponentVNode)(2,o.BeakerContents,{beakerLoaded:h,beakerContents:g,buttons:function(){function N(x){return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{content:"\u0418\u0437\u043E\u043B\u0438\u0440\u043E\u0432\u0430\u0442\u044C",icon:"compress-arrows-alt",onClick:function(){function B(){return m("remove",{reagent:x.id,amount:-1})}return B}()}),y.map(function(B,L){return(0,e.createComponentVNode)(2,t.Button,{content:B,onClick:function(){function T(){return m("remove",{reagent:x.id,amount:B})}return T}()},L)}),(0,e.createComponentVNode)(2,t.Button,{content:"\u0423\u0434\u0430\u043B\u0438\u0442\u044C \u0432\u0441\u0451",onClick:function(){function B(){return m("remove",{reagent:x.id,amount:x.volume})}return B}()}),(0,e.createComponentVNode)(2,t.Button,{content:"\u041E\u043A\u0440\u0443\u0433\u043B\u0438\u0442\u044C",tooltip:"\u0423\u0434\u0430\u043B\u044F\u0435\u0442 \u043B\u0438\u0448\u043D\u0435\u0435, \u043E\u043A\u0440\u0443\u0433\u043B\u044F\u044F \u043E\u0431\u044A\u0451\u043C \u0434\u043E "+Math.trunc(x.volume),icon:"arrow-circle-down",onClick:function(){function B(){return m("remove",{reagent:x.id,amount:-2})}return B}()})],0)}return N}()})})})}},13146:function(I,r,n){"use strict";r.__esModule=!0,r.ChemHeater=void 0;var e=n(89005),a=n(44879),t=n(72253),o=n(36036),p=n(85870),k=n(98595),y=r.ChemHeater=function(){function C(c,u){return(0,e.createComponentVNode)(2,k.Window,{width:450,height:275,children:(0,e.createComponentVNode)(2,k.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 C}(),S=function(c,u){var f=(0,t.useBackend)(u),l=f.act,d=f.data,m=d.targetTemp,i=d.targetTempReached,h=d.autoEject,V=d.isActive,v=d.currentTemp,s=d.isBeakerLoaded;return(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,title:"\u041F\u0430\u0440\u0430\u043C\u0435\u0442\u0440\u044B",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{content:"\u0410\u0432\u0442\u043E-\u0438\u0437\u0432\u043B\u0435\u0447\u0435\u043D\u0438\u0435",icon:h?"toggle-on":"toggle-off",selected:h,onClick:function(){function g(){return l("toggle_autoeject")}return g}()}),(0,e.createComponentVNode)(2,o.Button,{content:V?"\u0412\u043A\u043B\u044E\u0447\u0435\u043D\u043E":"\u0412\u044B\u043A\u043B\u044E\u0447\u0435\u043D\u043E",icon:"power-off",selected:V,disabled:!s,onClick:function(){function g(){return l("toggle_on")}return g}()})],4),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"\u0426\u0435\u043B\u0435\u0432\u0430\u044F \u0442\u0435\u043C\u043F\u0435\u0440\u0430\u0442\u0443\u0440\u0430",children:(0,e.createComponentVNode)(2,o.NumberInput,{width:"65px",unit:"K",step:10,stepPixelSize:3,value:(0,a.round)(m,0),minValue:0,maxValue:1e3,onDrag:function(){function g(N,x){return l("adjust_temperature",{target:x})}return g}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"\u0422\u0435\u043A\u0443\u0449\u0430\u044F \u0442\u0435\u043C\u043F\u0435\u0440\u0430\u0442\u0443\u0440\u0430",color:i?"good":"average",children:s&&(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:v,format:function(){function g(N){return(0,a.toFixed)(N)+" K"}return g}()})||"\u2014"})]})})})},b=function(c,u){var f=(0,t.useBackend)(u),l=f.act,d=f.data,m=d.isBeakerLoaded,i=d.beakerCurrentVolume,h=d.beakerMaxVolume,V=d.beakerContents;return(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{title:"\u0401\u043C\u043A\u043E\u0441\u0442\u044C",fill:!0,scrollable:!0,buttons:!!m&&(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,o.Box,{inline:!0,color:"label",mr:2,children:[i," / ",h," \u0435\u0434\u0438\u043D\u0438\u0446"]}),(0,e.createComponentVNode)(2,o.Button,{icon:"eject",content:"\u0418\u0437\u0432\u043B\u0435\u0447\u044C",onClick:function(){function v(){return l("eject_beaker")}return v}()})]}),children:(0,e.createComponentVNode)(2,p.BeakerContents,{beakerLoaded:m,beakerContents:V})})})}},56541:function(I,r,n){"use strict";r.__esModule=!0,r.ChemMaster=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=n(85870),k=n(3939),y=n(35840),S=["icon"];function b(B,L){if(B==null)return{};var T={};for(var A in B)if({}.hasOwnProperty.call(B,A)){if(L.includes(A))continue;T[A]=B[A]}return T}function C(B,L){B.prototype=Object.create(L.prototype),B.prototype.constructor=B,c(B,L)}function c(B,L){return c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(T,A){return T.__proto__=A,T},c(B,L)}var u=[1,5,10],f=function(L,T){var A=(0,a.useBackend)(T),E=A.act,w=A.data,O=L.args.analysis;return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:w.condi?"\u0410\u043D\u0430\u043B\u0438\u0437 \u0432\u0435\u0449\u0435\u0441\u0442\u0432\u0430":"\u0410\u043D\u0430\u043B\u0438\u0437 \u0440\u0435\u0430\u0433\u0435\u043D\u0442\u0430",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:"\u041D\u0430\u0437\u0432\u0430\u043D\u0438\u0435",children:O.name}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u041E\u043F\u0438\u0441\u0430\u043D\u0438\u0435",children:(O.desc||"").length>0?O.desc:"\u041D/\u0414"}),O.blood_type&&(0,e.createFragment)([(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0413\u0440\u0443\u043F\u043F\u0430 \u043A\u0440\u043E\u0432\u0438",children:O.blood_type}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0414\u041D\u041A-\u043A\u043E\u0434",className:"LabeledList__breakContents",children:O.blood_dna})],4),!w.condi&&(0,e.createComponentVNode)(2,t.Button,{icon:w.printing?"spinner":"print",disabled:w.printing,iconSpin:!!w.printing,ml:"0.5rem",content:"\u041F\u0435\u0447\u0430\u0442\u044C",onClick:function(){function M(){return E("print",{idx:O.idx,beaker:L.args.beaker})}return M}()})]})})})})},l=function(B){return B[B.ToDisposals=0]="ToDisposals",B[B.ToBeaker=1]="ToBeaker",B}(l||{}),d=r.ChemMaster=function(){function B(L,T){return(0,e.createComponentVNode)(2,o.Window,{width:575,height:650,children:[(0,e.createComponentVNode)(2,k.ComplexModal),(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,m),(0,e.createComponentVNode)(2,i),(0,e.createComponentVNode)(2,h),(0,e.createComponentVNode)(2,x)]})})]})}return B}(),m=function(L,T){var A=(0,a.useBackend)(T),E=A.act,w=A.data,O=w.beaker,M=w.beaker_reagents,P=w.buffer_reagents,F=P.length>0;return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"\u0401\u043C\u043A\u043E\u0441\u0442\u044C",fill:!0,scrollable:!0,buttons:F?(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"eject",disabled:!O,content:"\u0418\u0437\u0432\u043B\u0435\u0447\u044C \u0451\u043C\u043A\u043E\u0441\u0442\u044C \u0438 \u043E\u0447\u0438\u0441\u0442\u0438\u0442\u044C \u0431\u0443\u0444\u0435\u0440",onClick:function(){function R(){return E("eject")}return R}()}):(0,e.createComponentVNode)(2,t.Button,{icon:"eject",disabled:!O,content:"\u0418\u0437\u0432\u043B\u0435\u0447\u044C \u0451\u043C\u043A\u043E\u0441\u0442\u044C \u0438 \u043E\u0447\u0438\u0441\u0442\u0438\u0442\u044C \u0431\u0443\u0444\u0435\u0440",onClick:function(){function R(){return E("eject")}return R}()}),children:O?(0,e.createComponentVNode)(2,p.BeakerContents,{beakerLoaded:!0,beakerContents:M,buttons:function(){function R(U,j){return(0,e.createComponentVNode)(2,t.Box,{mb:j0?(0,e.createComponentVNode)(2,p.BeakerContents,{beakerLoaded:!0,beakerContents:M,buttons:function(){function P(F,R){return(0,e.createComponentVNode)(2,t.Box,{mb:R0&&(F=P.map(function(R){var U=R.id,j=R.sprite;return(0,e.createComponentVNode)(2,g,{icon:j,color:"translucent",onClick:function(){function W(){return E("set_sprite_style",{production_mode:O,style:U})}return W}(),selected:M===U},U)})),(0,e.createComponentVNode)(2,s,{productionData:L.productionData,children:F&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0422\u0438\u043F",children:F})})},x=function(L,T){var A=(0,a.useBackend)(T),E=A.act,w=A.data,O=w.loaded_pill_bottle_style,M=w.containerstyles,P=w.loaded_pill_bottle,F={width:"20px",height:"20px"},R=M.map(function(U){var j=U.color,W=U.name,K=O===j;return(0,e.createComponentVNode)(2,t.Button,{style:{position:"relative",width:F.width,height:F.height},onClick:function(){function $(){return E("set_container_style",{style:j})}return $}(),icon:K&&"check",iconStyle:{position:"relative","z-index":1},tooltip:W,tooltipPosition:"top",children:[!K&&(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:F.width,height:F.height,"background-color":j,opacity:.6,filter:"alpha(opacity=60)"}})]},j)});return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"\u041A\u0430\u0441\u0442\u043E\u043C\u0438\u0437\u0430\u0446\u0438\u044F \u043A\u043E\u043D\u0442\u0435\u0439\u043D\u0435\u0440\u0430",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"eject",disabled:!P,content:"\u0418\u0437\u0432\u043B\u0435\u0447\u044C \u043A\u043E\u043D\u0442\u0435\u0439\u043D\u0435\u0440",onClick:function(){function U(){return E("ejectp")}return U}()}),children:P?(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0421\u0442\u0438\u043B\u044C",children:[(0,e.createComponentVNode)(2,t.Button,{style:{width:F.width,height:F.height},icon:"tint-slash",onClick:function(){function U(){return E("clear_container_style")}return U}(),selected:!O,tooltip:"\u041F\u043E \u0443\u043C\u043E\u043B\u0447\u0430\u043D\u0438\u044E",tooltipPosition:"top"}),R]})}):(0,e.createComponentVNode)(2,t.Box,{color:"label",children:"\u041A\u043E\u043D\u0442\u0435\u0439\u043D\u0435\u0440 \u043E\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u0435\u0442."})})})};(0,k.modalRegisterBodyOverride)("analyze",f)},37173:function(I,r,n){"use strict";r.__esModule=!0,r.CloningConsole=void 0;var e=n(89005),a=n(44879),t=n(72253),o=n(36036),p=n(76910),k=n(3939),y=n(98595),S=n(79140),b=function(h,V){var v=(0,t.useBackend)(V),s=v.act,g=v.data,N=h.args,x=N.activerecord,B=N.realname,L=N.health,T=N.unidentity,A=N.strucenzymes,E=L.split(" - ");return(0,e.createComponentVNode)(2,o.Section,{level:2,m:"-1rem",pb:"1rem",title:"\u0417\u0430\u043F\u0438\u0441\u0438 \u0441\u0443\u0431\u044A\u0435\u043A\u0442\u0430",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"\u0418\u043C\u044F",children:B}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"\u041F\u043E\u0432\u0440\u0435\u0436\u0434\u0435\u043D\u0438\u044F",children:E.length>1?(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Box,{color:p.COLORS.damageType.oxy,inline:!0,children:E[0]}),(0,e.createTextVNode)("\xA0|\xA0"),(0,e.createComponentVNode)(2,o.Box,{color:p.COLORS.damageType.toxin,inline:!0,children:E[2]}),(0,e.createTextVNode)("\xA0|\xA0"),(0,e.createComponentVNode)(2,o.Box,{color:p.COLORS.damageType.brute,inline:!0,children:E[3]}),(0,e.createTextVNode)("\xA0|\xA0"),(0,e.createComponentVNode)(2,o.Box,{color:p.COLORS.damageType.burn,inline:!0,children:E[1]})],4):(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"\u041D\u0435\u0438\u0437\u0432\u0435\u0441\u0442\u043D\u043E"})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"\u0423\u0418",className:"LabeledList__breakContents",children:T}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"\u0421\u0424",className:"LabeledList__breakContents",children:A}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Disk",children:[(0,e.createComponentVNode)(2,o.Button.Confirm,{disabled:!g.disk,icon:"arrow-circle-down",content:"\u0418\u043C\u043F\u043E\u0440\u0442 \u0434\u0430\u043D\u043D\u044B\u0445",onClick:function(){function w(){return s("disk",{option:"load"})}return w}()}),(0,e.createComponentVNode)(2,o.Button,{disabled:!g.disk,icon:"arrow-circle-up",content:"\u042D\u043A\u0441\u043F\u043E\u0440\u0442\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0423\u0418",onClick:function(){function w(){return s("disk",{option:"save",savetype:"ui"})}return w}()}),(0,e.createComponentVNode)(2,o.Button,{disabled:!g.disk,icon:"arrow-circle-up",content:"\u042D\u043A\u0441\u043F\u043E\u0440\u0442\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0423\u0418 \u0438 \u0423\u0424",onClick:function(){function w(){return s("disk",{option:"save",savetype:"ue"})}return w}()}),(0,e.createComponentVNode)(2,o.Button,{disabled:!g.disk,icon:"arrow-circle-up",content:"\u042D\u043A\u0441\u043F\u043E\u0440\u0442\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0421\u0424",onClick:function(){function w(){return s("disk",{option:"save",savetype:"se"})}return w}()})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"\u0414\u0435\u0439\u0441\u0442\u0432\u0438\u044F",children:[(0,e.createComponentVNode)(2,o.Button,{disabled:!g.podready,icon:"user-plus",content:"\u041A\u043B\u043E\u043D\u0438\u0440\u043E\u0432\u0430\u0442\u044C",onClick:function(){function w(){return s("clone",{ref:x})}return w}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"trash",content:"\u0423\u0434\u0430\u043B\u0438\u0442\u044C",onClick:function(){function w(){return s("del_rec")}return w}()})]})]})})},C=r.CloningConsole=function(){function i(h,V){var v=(0,t.useBackend)(V),s=v.act,g=v.data,N=g.menu;return(0,k.modalRegisterBodyOverride)("view_rec",b),(0,e.createComponentVNode)(2,y.Window,{width:640,height:520,children:[(0,e.createComponentVNode)(2,k.ComplexModal,{maxWidth:"75%",maxHeight:"75%"}),(0,e.createComponentVNode)(2,y.Window.Content,{className:"Layout__content--flexColumn",children:[(0,e.createComponentVNode)(2,d),(0,e.createComponentVNode)(2,m),(0,e.createComponentVNode)(2,c),(0,e.createComponentVNode)(2,o.Section,{noTopPadding:!0,flexGrow:"1",children:(0,e.createComponentVNode)(2,u)})]})]})}return i}(),c=function(h,V){var v=(0,t.useBackend)(V),s=v.act,g=v.data,N=g.menu;return(0,e.createComponentVNode)(2,o.Tabs,{children:[(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:N===1,icon:"home",onClick:function(){function x(){return s("menu",{num:1})}return x}(),children:"\u041E\u0441\u043D\u043E\u0432\u043D\u043E\u0435"}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:N===2,icon:"folder",onClick:function(){function x(){return s("menu",{num:2})}return x}(),children:"\u0417\u0430\u043F\u0438\u0441\u0438"})]})},u=function(h,V){var v=(0,t.useBackend)(V),s=v.data,g=s.menu,N;return g===1?N=(0,e.createComponentVNode)(2,f):g===2&&(N=(0,e.createComponentVNode)(2,l)),N},f=function(h,V){var v=(0,t.useBackend)(V),s=v.act,g=v.data,N=g.loading,x=g.scantemp,B=g.occupant,L=g.locked,T=g.can_brainscan,A=g.scan_mode,E=g.numberofpods,w=g.pods,O=g.selected_pod,M=L&&!!B;return(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Section,{title:"\u0421\u043A\u0430\u043D\u0435\u0440",level:"2",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Box,{inline:!0,color:"label",children:"\u0411\u043B\u043E\u043A\u0438\u0440\u043E\u0432\u043A\u0430 \u0441\u043A\u0430\u043D\u0435\u0440\u0430:\xA0"}),(0,e.createComponentVNode)(2,o.Button,{disabled:!B,selected:M,icon:M?"toggle-on":"toggle-off",content:M?"\u0410\u043A\u0442\u0438\u0432\u043D\u0430":"\u041D\u0435\u0430\u043A\u0442\u0438\u0432\u043D\u0430",onClick:function(){function P(){return s("lock")}return P}()}),(0,e.createComponentVNode)(2,o.Button,{disabled:M||!B,icon:"user-slash",content:"\u0418\u0437\u0432\u043B\u0435\u0447\u044C \u0441\u0443\u0431\u044A\u0435\u043A\u0442",onClick:function(){function P(){return s("eject")}return P}()})],4),children:[(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"\u0421\u043E\u0441\u0442\u043E\u044F\u043D\u0438\u0435",children:N?(0,e.createComponentVNode)(2,o.Box,{color:"average",children:[(0,e.createComponentVNode)(2,o.Icon,{name:"spinner",spin:!0}),"\xA0 \u0421\u043A\u0430\u043D\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u0435..."]}):(0,e.createComponentVNode)(2,o.Box,{color:x.color,children:x.text})}),!!T&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"\u0420\u0435\u0436\u0438\u043C \u0441\u043A\u0430\u043D\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u044F",children:(0,e.createComponentVNode)(2,o.Button,{icon:A?"brain":"male",content:A?"\u041C\u043E\u0437\u0433":"\u0422\u0435\u043B\u043E",onClick:function(){function P(){return s("toggle_mode")}return P}()})})]}),(0,e.createComponentVNode)(2,o.Button,{disabled:!B||N,icon:"user",content:"\u0421\u043A\u0430\u043D\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0441\u0443\u0431\u044A\u0435\u043A\u0442",mt:"0.5rem",mb:"0",onClick:function(){function P(){return s("scan")}return P}()})]}),(0,e.createComponentVNode)(2,o.Section,{title:"\u041A\u0430\u043F\u0441\u0443\u043B\u044B",level:"2",children:E?w.map(function(P,F){var R;return P.status==="cloning"?R=(0,e.createComponentVNode)(2,o.ProgressBar,{min:"0",max:"100",value:P.progress/100,ranges:{good:[.75,1/0],average:[.25,.75],bad:[-1/0,.25]},mt:"0.5rem",children:(0,e.createComponentVNode)(2,o.Box,{textAlign:"center",children:(0,a.round)(P.progress,0)+"%"})}):P.status==="mess"?R=(0,e.createComponentVNode)(2,o.Box,{bold:!0,color:"bad",mt:"0.5rem",children:"\u041E\u0448\u0438\u0431\u043A\u0430"}):R=(0,e.createComponentVNode)(2,o.Button,{selected:O===P.pod,icon:O===P.pod&&"check",content:"\u0412\u044B\u0431\u0440\u0430\u0442\u044C",mt:"0.5rem",onClick:function(){function U(){return s("selectpod",{ref:P.pod})}return U}()}),(0,e.createComponentVNode)(2,o.Box,{width:"64px",textAlign:"center",display:"inline-block",mr:"0.5rem",children:[(0,e.createVNode)(1,"img",null,null,1,{src:(0,S.resolveAsset)("pod_"+P.status+".gif"),style:{width:"100%","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createComponentVNode)(2,o.Box,{color:"label",children:["\u041A\u0430\u043F\u0441\u0443\u043B\u0430 \u2116",F+1]}),(0,e.createComponentVNode)(2,o.Box,{bold:!0,color:P.biomass>=150?"good":"bad",inline:!0,children:[(0,e.createComponentVNode)(2,o.Icon,{name:P.biomass>=150?"circle":"circle-o"}),"\xA0",P.biomass]}),R]},F)}):(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"\u041A\u0430\u043F\u0441\u0443\u043B\u044B \u043D\u0435 \u043E\u0431\u043D\u0430\u0440\u0443\u0436\u0435\u043D\u044B. \u041A\u043B\u043E\u043D\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u0435 \u043D\u0435\u0432\u043E\u0437\u043C\u043E\u0436\u043D\u043E."})})],4)},l=function(h,V){var v=(0,t.useBackend)(V),s=v.act,g=v.data,N=g.records;return N.length?(0,e.createComponentVNode)(2,o.Box,{mt:"0.5rem",children:N.map(function(x,B){return(0,e.createComponentVNode)(2,o.Button,{icon:"user",mb:"0.5rem",content:x.realname,onClick:function(){function L(){return s("view_rec",{ref:x.record})}return L}()},B)})}):(0,e.createComponentVNode)(2,o.Flex,{height:"100%",children:(0,e.createComponentVNode)(2,o.Flex.Item,{grow:"1",align:"center",textAlign:"center",color:"label",children:[(0,e.createComponentVNode)(2,o.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,e.createVNode)(1,"br"),"\u0417\u0430\u043F\u0438\u0441\u0438 \u043D\u0435 \u043E\u0431\u043D\u0430\u0440\u0443\u0436\u0435\u043D\u044B."]})})},d=function(h,V){var v,s=(0,t.useBackend)(V),g=s.act,N=s.data,x=N.temp;if(!(!x||!x.text||x.text.length<=0)){var B=(v={},v[x.style]=!0,v);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.NoticeBox,Object.assign({},B,{children:[(0,e.createComponentVNode)(2,o.Box,{display:"inline-block",verticalAlign:"middle",children:x.text}),(0,e.createComponentVNode)(2,o.Button,{icon:"times-circle",float:"right",onClick:function(){function L(){return g("cleartemp")}return L}()}),(0,e.createComponentVNode)(2,o.Box,{clear:"both"})]})))}},m=function(h,V){var v=(0,t.useBackend)(V),s=v.act,g=v.data,N=g.scanner,x=g.numberofpods,B=g.autoallowed,L=g.autoprocess,T=g.disk;return(0,e.createComponentVNode)(2,o.Section,{title:"\u0421\u043E\u0441\u0442\u043E\u044F\u043D\u0438\u0435",buttons:(0,e.createFragment)([!!B&&(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Box,{inline:!0,color:"label",children:"\u0410\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u043E\u0435 \u043A\u043B\u043E\u043D\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u0435:\xA0"}),(0,e.createComponentVNode)(2,o.Button,{selected:L,icon:L?"toggle-on":"toggle-off",content:L?"\u0412\u043A\u043B\u044E\u0447\u0435\u043D\u043E":"\u0412\u044B\u043A\u043B\u044E\u0447\u0435\u043D\u043E",onClick:function(){function A(){return s("autoprocess",{on:L?0:1})}return A}()})],4),(0,e.createComponentVNode)(2,o.Button,{disabled:!T,icon:"eject",content:"\u0418\u0437\u0432\u043B\u0435\u0447\u044C \u0434\u0438\u0441\u043A\u0435\u0442\u0443",onClick:function(){function A(){return s("disk",{option:"eject"})}return A}()})],0),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"\u0421\u043A\u0430\u043D\u0435\u0440",children:N?(0,e.createComponentVNode)(2,o.Box,{color:"good",children:"\u041F\u043E\u0434\u043A\u043B\u044E\u0447\u0451\u043D"}):(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"\u041D\u0435 \u043F\u043E\u0434\u043A\u043B\u044E\u0447\u0451\u043D"})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"\u041A\u0430\u043F\u0441\u0443\u043B\u044B",children:x?(0,e.createComponentVNode)(2,o.Box,{color:"good",children:["\u041A\u043E\u043B\u0438\u0447\u0435\u0441\u0442\u0432\u043E \u043F\u043E\u0434\u043A\u043B\u044E\u0447\u0451\u043D\u043D\u044B\u0445 \u043A\u0430\u043F\u0441\u0443\u043B - ",x]}):(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"\u041D\u0435 \u043F\u043E\u0434\u043A\u043B\u044E\u0447\u0435\u043D\u044B"})})]})})}},18259:function(I,r,n){"use strict";r.__esModule=!0,r.CoinMint=void 0;var e=n(89005),a=n(35840),t=n(72253),o=n(36036),p=n(98595),k=r.CoinMint=function(){function y(S,b){var C=(0,t.useBackend)(b),c=C.act,u=C.data,f=u.materials,l=u.moneyBag,d=u.moneyBagContent,m=u.moneyBagMaxContent,i=(l?210:138)+Math.ceil(f.length/4)*64;return(0,e.createComponentVNode)(2,p.Window,{width:256,height:i,title:"\u041C\u043E\u043D\u0435\u0442\u043D\u044B\u0439 \u043F\u0440\u0435\u0441\u0441",children:(0,e.createComponentVNode)(2,p.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:["\u041F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u043E \u043C\u043E\u043D\u0435\u0442: ",u.totalCoins]})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,title:"\u0422\u0438\u043F \u041C\u043E\u043D\u0435\u0442",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"power-off",color:u.active&&"bad",tooltip:!l&&"\u041D\u0443\u0436\u0435\u043D \u0434\u0435\u043D\u0435\u0436\u043D\u044B\u0439 \u043C\u0435\u0448\u043E\u043A",disabled:!l,onClick:function(){function h(){return c("activate")}return h}()}),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:u.maxMaterials,value:u.totalMaterials})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{icon:"eject",tooltip:"\u0418\u0437\u0432\u0432\u043B\u0435\u0447\u044C \u0432\u044B\u0431\u0440\u0430\u043D\u044B\u0439 \u043C\u0430\u0442\u0435\u0440\u0438\u0430\u043B",onClick:function(){function h(){return c("ejectMat")}return h}()})})]})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:f.map(function(h){return(0,e.createComponentVNode)(2,o.Button,{bold:!0,inline:!0,m:.2,textAlign:"center",color:"translucent",selected:h.id===u.chosenMaterial,tooltip:h.name,content:(0,e.createComponentVNode)(2,o.Stack,{vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{className:(0,a.classes)(["materials32x32",h.id])}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:h.amount})]}),onClick:function(){function V(){return c("selectMaterial",{material:h.id})}return V}()},h.id)})})]})})}),!!l&&(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Section,{title:"\u0414\u0435\u043D\u0435\u0436\u043D\u044B\u0439 \u043C\u0435\u0448\u043E\u043A",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"eject",content:"\u0418\u0437\u0432\u043B\u0435\u0447\u044C",disabled:u.active,onClick:function(){function h(){return c("ejectBag")}return h}()}),children:(0,e.createComponentVNode)(2,o.ProgressBar,{width:"100%",minValue:0,maxValue:m,value:d,children:[d," / ",m]})})})]})})})}return y}()},93858:function(I,r,n){"use strict";r.__esModule=!0,r.HexColorInput=r.ColorSelector=r.ColorPickerModal=r.ColorInput=void 0;var e=n(89005),a=n(51057),t=n(72253),o=n(36036),p=n(98595),k=n(44879),y=n(14448),S=n(4454),b=n(35840),C=n(9394),c=n(19203),u=["prefixed","alpha","color","fluid","onChange"];/** + */var k=(0,t.createLogger)("hotkeys"),y={},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={},C=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"."},c=function(i){var h=String(i);if(h==="Ctrl+F5"||h==="Ctrl+R"){location.reload();return}if(h!=="Ctrl+F"&&!(i.event.defaultPrevented||i.isModifierKey()||S.includes(i.code))){h==="F5"&&(i.event.preventDefault(),i.event.returnValue=!1);var V=C(i.code);if(V){var v=y[V];if(v)return k.debug("macro",v),Byond.command(v);if(i.isDown()&&!b[V]){b[V]=!0;var s='KeyDown "'+V+'"';return k.debug(s),Byond.command(s)}if(i.isUp()&&b[V]){b[V]=!1;var g='KeyUp "'+V+'"';return k.debug(g),Byond.command(g)}}}},u=r.acquireHotKey=function(){function m(i){S.push(i)}return m}(),f=r.releaseHotKey=function(){function m(i){var h=S.indexOf(i);h>=0&&S.splice(h,1)}return m}(),l=r.releaseHeldKeys=function(){function m(){for(var i=0,h=Object.keys(b);i0||(0,a.fetchRetry)((0,e.resolveAsset)("icon_ref_map.json")).then(function(k){return k.json()}).then(function(k){return Byond.iconRefMap=k}).catch(function(k){return t.logger.log(k)})}return p}()},1090:function(I,r,n){"use strict";r.__esModule=!0,r.AICard=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.AICard=function(){function k(y,S){var b=(0,a.useBackend)(S),C=b.act,c=b.data;if(c.has_ai===0)return(0,e.createComponentVNode)(2,o.Window,{width:250,height:120,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Stored AI",children:(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createVNode)(1,"h3",null,"No AI detected.",16)})})})});var u=null;return c.integrity>=75?u="green":c.integrity>=25?u="yellow":u="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:c.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:u,value:c.integrity/100})})}),(0,e.createComponentVNode)(2,t.Box,{color:"red",children:(0,e.createVNode)(1,"h2",null,c.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:!!c.has_laws&&(0,e.createComponentVNode)(2,t.Box,{children:c.laws.map(function(f,l){return(0,e.createComponentVNode)(2,t.Box,{children:f},l)})})||(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:c.wireless?"check":"times",content:c.wireless?"Enabled":"Disabled",color:c.wireless?"green":"red",onClick:function(){function f(){return C("wireless")}return f}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Subspace Transceiver",children:(0,e.createComponentVNode)(2,t.Button,{width:10,icon:c.radio?"check":"times",content:c.radio?"Enabled":"Disabled",color:c.radio?"green":"red",onClick:function(){function f(){return C("radio")}return f}()})}),(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:c.flushing||c.integrity===0,confirmColor:"red",content:"Wipe AI",onClick:function(){function f(){return C("wipe")}return f}()})})]})})})]})})})}return k}()},39454:function(I,r,n){"use strict";r.__esModule=!0,r.AIFixer=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.AIFixer=function(){function k(y,S){var b=(0,a.useBackend)(S),C=b.act,c=b.data;if(c.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 u=!0;(c.stat===2||c.stat===null)&&(u=!1);var f=null;c.integrity>=75?f="green":c.integrity>=25?f="yellow":f="red";var l=!0;return c.integrity>=100&&c.stat!==2&&(l=!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:c.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:f,value:c.integrity/100})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",color:u?"green":"red",children:u?"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:!!c.has_laws&&(0,e.createComponentVNode)(2,t.Box,{children:c.laws.map(function(d,m){return(0,e.createComponentVNode)(2,t.Box,{inline:!0,children:d},m)})})||(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:c.wireless?"times":"check",content:c.wireless?"Disabled":"Enabled",color:c.wireless?"red":"green",onClick:function(){function d(){return C("wireless")}return d}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Subspace Transceiver",children:(0,e.createComponentVNode)(2,t.Button,{icon:c.radio?"times":"check",content:c.radio?"Disabled":"Enabled",color:c.radio?"red":"green",onClick:function(){function d(){return C("radio")}return d}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Start Repairs",children:(0,e.createComponentVNode)(2,t.Button,{icon:"wrench",disabled:!l||c.active,content:!l||c.active?"Already Repaired":"Repair",onClick:function(){function d(){return C("fix")}return d}()})})]}),(0,e.createComponentVNode)(2,t.Box,{color:"green",lineHeight:2,children:c.active?"Reconstruction in progress.":""})]})})]})})})}return k}()},88422:function(I,r,n){"use strict";r.__esModule=!0,r.APC=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=n(195),k=r.APC=function(){function C(c,u){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 C}(),y={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(c,u){var f=(0,a.useBackend)(u),l=f.act,d=f.data,m=d.locked&&!d.siliconUser,i=d.normallyLocked,h=y[d.externalPower]||y[0],V=y[d.chargingStatus]||y[0],v=d.powerChannels||[],s=S[d.malfStatus]||S[0],g=d.powerCellStatus/100;return(0,e.createFragment)([(0,e.createComponentVNode)(2,p.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:h.color,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:d.isOperating?"power-off":"times",content:d.isOperating?"On":"Off",selected:d.isOperating&&!m,color:d.isOperating?"":"bad",disabled:m,onClick:function(){function N(){return l("breaker")}return N}()}),children:["[ ",h.externalPowerText," ]"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power Cell",children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:"good",value:g})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Charge Mode",color:V.color,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:d.chargeMode?"sync":"times",content:d.chargeMode?"Auto":"Off",selected:d.chargeMode,disabled:m,onClick:function(){function N(){return l("charge")}return N}()}),children:["[ ",V.chargingText," ]"]})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Power Channels",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[v.map(function(N){var x=N.topicParams;return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:N.title,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{inline:!0,mx:2,color:N.status>=2?"good":"bad",children:N.status>=2?"On":"Off"}),(0,e.createComponentVNode)(2,t.Button,{icon:"sync",content:"Auto",selected:!m&&(N.status===1||N.status===3),disabled:m,onClick:function(){function B(){return l("channel",x.auto)}return B}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"power-off",content:"On",selected:!m&&N.status===2,disabled:m,onClick:function(){function B(){return l("channel",x.on)}return B}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"times",content:"Off",selected:!m&&N.status===0,disabled:m,onClick:function(){function B(){return l("channel",x.off)}return B}()})],4),children:[N.powerLoad," W"]},N.title)}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Total Load",children:(0,e.createVNode)(1,"b",null,[d.totalLoad,(0,e.createTextVNode)(" W")],0)})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Misc",buttons:!!d.siliconUser&&(0,e.createFragment)([!!d.malfStatus&&(0,e.createComponentVNode)(2,t.Button,{icon:s.icon,content:s.content,color:"bad",onClick:function(){function N(){return l(s.action)}return N}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"lightbulb-o",content:"Overload",onClick:function(){function N(){return l("overload")}return N}()})],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:d.coverLocked?"lock":"unlock",content:d.coverLocked?"Engaged":"Disengaged",disabled:m,onClick:function(){function N(){return l("cover")}return N}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Night Shift Lighting",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"lightbulb-o",content:d.nightshiftLights?"Enabled":"Disabled",onClick:function(){function N(){return l("toggle_nightshift")}return N}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Emergency Lighting Fallback",buttons:(0,e.createComponentVNode)(2,t.Button,{mt:.4,icon:"lightbulb-o",content:d.emergencyLights?"Engaged":"Disengaged",disabled:m,onClick:function(){function N(){return l("emergency_lighting")}return N}()})})]})})],4)}},99660:function(I,r,n){"use strict";r.__esModule=!0,r.ATM=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.ATM=function(){function l(d,m){var i=(0,a.useBackend)(m),h=i.act,V=i.data,v=V.view_screen,s=V.authenticated_account,g=V.ticks_left_locked_down,N=V.linked_db,x;if(g>0)x=(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)x=(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(s)switch(v){case 1:x=(0,e.createComponentVNode)(2,y);break;case 2:x=(0,e.createComponentVNode)(2,S);break;case 3:x=(0,e.createComponentVNode)(2,u);break;case 4:x=(0,e.createComponentVNode)(2,b);break;default:x=(0,e.createComponentVNode)(2,C)}else x=(0,e.createComponentVNode)(2,c);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,k),(0,e.createComponentVNode)(2,t.Section,{children:x})]})})}return l}(),k=function(d,m){var i=(0,a.useBackend)(m),h=i.act,V=i.data,v=V.machine_id,s=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:s,icon:"eject",onClick:function(){function g(){return h("insert_card")}return g}()})})})]})},y=function(d,m){var i=(0,a.useBackend)(m),h=i.act,V=i.data,v=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:v===0,onClick:function(){function s(){return h("change_security_level",{new_security_level:0})}return s}()})}),(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:v===1,onClick:function(){function s(){return h("change_security_level",{new_security_level:1})}return s}()})}),(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,t.LabeledList.Item,{label:"Level",children:(0,e.createComponentVNode)(2,t.Button,{content:"Card and Account Pin",icon:"unlock",selected:v===2,onClick:function(){function s(){return h("change_security_level",{new_security_level:2})}return s}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Description",children:"An account number, pin and card are required to access this account and process transactions."})]}),(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,f)]})},S=function(d,m){var i=(0,a.useBackend)(m),h=i.act,V=i.data,v=(0,a.useLocalState)(m,"targetAccNumber",0),s=v[0],g=v[1],N=(0,a.useLocalState)(m,"fundsAmount",0),x=N[0],B=N[1],L=(0,a.useLocalState)(m,"purpose",0),T=L[0],A=L[1],E=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:["$",E]}),(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 w(O,M){return g(M)}return w}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Funds to Transfer",children:(0,e.createComponentVNode)(2,t.Input,{onInput:function(){function w(O,M){return B(M)}return w}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Transaction Purpose",children:(0,e.createComponentVNode)(2,t.Input,{fluid:!0,onInput:function(){function w(O,M){return A(M)}return w}()})})]}),(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,t.Button,{content:"Transfer",icon:"sign-out-alt",onClick:function(){function w(){return h("transfer",{target_acc_number:s,funds_amount:x,purpose:T})}return w}()}),(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,f)]})},b=function(d,m){var i=(0,a.useBackend)(m),h=i.act,V=i.data,v=V.insurance_type;return(0,e.createComponentVNode)(2,t.Section,{title:"\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u043D\u043E\u0432\u044B\u0439 \u0442\u0438\u043F \u0441\u0442\u0440\u0430\u0445\u043E\u0432\u043A\u0438",children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0422\u0438\u043F",children:[(0,e.createComponentVNode)(2,t.Button,{content:"\u041D\u0435\u0442 (0)",icon:"unlock",selected:v==="None",onClick:function(){function s(){return h("change_insurance_type",{new_insurance_type:"None"})}return s}()}),(0,e.createComponentVNode)(2,t.Button,{content:"\u0411\u044E\u0434\u0436\u0435\u0442\u043D\u0430\u044F (0)",icon:"unlock",selected:v==="Bugetary",onClick:function(){function s(){return h("change_insurance_type",{new_insurance_type:"Bugetary"})}return s}()}),(0,e.createComponentVNode)(2,t.Button,{content:"\u0421\u0442\u0430\u043D\u0434\u0430\u0440\u0442\u043D\u0430\u044F (500)",icon:"unlock",selected:v==="Standart",onClick:function(){function s(){return h("change_insurance_type",{new_insurance_type:"Standart"})}return s}()}),(0,e.createComponentVNode)(2,t.Button,{content:"\u0414\u0435\u043B\u044E\u043A\u0441 (2000)",icon:"unlock",selected:v==="Deluxe",onClick:function(){function s(){return h("change_insurance_type",{new_insurance_type:"Deluxe"})}return s}()})]})}),(0,e.createComponentVNode)(2,f)]})},C=function(d,m){var i=(0,a.useBackend)(m),h=i.act,V=i.data,v=(0,a.useLocalState)(m,"fundsAmount",0),s=v[0],g=v[1],N=(0,a.useLocalState)(m,"insuranceAmount",0),x=N[0],B=N[1],L=V.owner_name,T=V.money,A=V.insurance;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{title:"Welcome, "+L,buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Logout",icon:"sign-out-alt",onClick:function(){function E(){return h("logout")}return E}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Account Balance",children:["$",T]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Withdrawal Amount",children:(0,e.createComponentVNode)(2,t.Input,{onInput:function(){function E(w,O){return g(O)}return E}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Withdraw Funds",icon:"sign-out-alt",onClick:function(){function E(){return h("withdrawal",{funds_amount:s})}return E}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Insurance Points",children:["$",A]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Adding Insurance",children:(0,e.createComponentVNode)(2,t.Input,{onInput:function(){function E(w,O){return B(O)}return E}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Add insurance points",icon:"sign-out-alt",onClick:function(){function E(){return h("insurance",{insurance_amount:x})}return E}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Toggle auto-replenishment of insurance",icon:"sign-out-alt",onClick:function(){function E(){return h("insurance_replenishment",{})}return E}()})})]})}),(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 E(){return h("view_screen",{view_screen:1})}return E}()})}),(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Make transfer",icon:"exchange-alt",onClick:function(){function E(){return h("view_screen",{view_screen:2})}return E}()})}),(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:"View transaction log",icon:"list",onClick:function(){function E(){return h("view_screen",{view_screen:3})}return E}()})}),(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Change type of insurance",icon:"lock",onClick:function(){function E(){return h("view_screen",{view_screen:4})}return E}()})}),(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Print balance statement",icon:"print",onClick:function(){function E(){return h("balance_statement")}return E}()})})]})],4)},c=function(d,m){var i=(0,a.useBackend)(m),h=i.act,V=i.data,v=(0,a.useLocalState)(m,"accountID",null),s=v[0],g=v[1],N=(0,a.useLocalState)(m,"accountPin",null),x=N[0],B=N[1],L=V.machine_id,T=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 A(E,w){return g(w)}return A}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Pin",children:(0,e.createComponentVNode)(2,t.Input,{placeholder:"6 Digit Number",onInput:function(){function A(E,w){return B(w)}return A}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Login",icon:"sign-in-alt",onClick:function(){function A(){return h("attempt_auth",{account_num:s,account_pin:x})}return A}()})})]})})},u=function(d,m){var i=(0,a.useBackend)(m),h=i.act,V=i.data,v=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"})]}),v.map(function(s){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:s.time}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:s.purpose}),(0,e.createComponentVNode)(2,t.Table.Cell,{color:s.is_deposit?"green":"red",children:["$",s.amount]}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:s.target_name})]},s)})]}),(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,f)]})},f=function(d,m){var i=(0,a.useBackend)(m),h=i.act,V=i.data;return(0,e.createComponentVNode)(2,t.Button,{content:"Back",icon:"sign-out-alt",onClick:function(){function v(){return h("view_screen",{view_screen:0})}return v}()})}},86423:function(I,r,n){"use strict";r.__esModule=!0,r.AccountsUplinkTerminal=void 0;var e=n(89005),a=n(25328),t=n(72253),o=n(36036),p=n(36352),k=n(98595),y=n(321),S=n(5485),b=r.AccountsUplinkTerminal=function(){function d(m,i){var h=(0,t.useBackend)(i),V=h.act,v=h.data,s=v.loginState,g=v.currentPage,N;if(s.logged_in)g===1?N=(0,e.createComponentVNode)(2,C):g===2?N=(0,e.createComponentVNode)(2,f):g===3&&(N=(0,e.createComponentVNode)(2,l));else return(0,e.createComponentVNode)(2,k.Window,{width:800,height:600,children:(0,e.createComponentVNode)(2,k.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,k.Window,{width:800,height:600,children:(0,e.createComponentVNode)(2,k.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,y.LoginInfo),(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,children:N})]})})})}return d}(),C=function(m,i){var h=(0,t.useBackend)(i),V=h.act,v=h.data,s=v.accounts,g=(0,t.useLocalState)(i,"searchText",""),N=g[0],x=g[1],B=(0,t.useLocalState)(i,"sortId","owner_name"),L=B[0],T=B[1],A=(0,t.useLocalState)(i,"sortOrder",!0),E=A[0],w=A[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,c,{id:"owner_name",children:"Account Holder"}),(0,e.createComponentVNode)(2,c,{id:"account_number",children:"Account Number"}),(0,e.createComponentVNode)(2,c,{id:"suspended",children:"Account Status"}),(0,e.createComponentVNode)(2,c,{id:"money",children:"Account Balance"})]}),s.filter((0,a.createSearch)(N,function(O){return O.owner_name+"|"+O.account_number+"|"+O.suspended+"|"+O.money})).sort(function(O,M){var P=E?1:-1;return O[L].localeCompare(M[L])*P}).map(function(O){return(0,e.createComponentVNode)(2,o.Table.Row,{className:"AccountsUplinkTerminal__listRow--"+O.suspended,onClick:function(){function M(){return V("view_account_detail",{index:O.account_index})}return M}(),children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:"user"})," ",O.owner_name]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:["#",O.account_number]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:O.suspended}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:O.money})]},O.account_number)})]})})})]})},c=function(m,i){var h=(0,t.useLocalState)(i,"sortId","name"),V=h[0],v=h[1],s=(0,t.useLocalState)(i,"sortOrder",!0),g=s[0],N=s[1],x=m.id,B=m.children;return(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Button,{color:V!==x&&"transparent",width:"100%",onClick:function(){function L(){V===x?N(!g):(v(x),N(!0))}return L}(),children:[B,V===x&&(0,e.createComponentVNode)(2,o.Icon,{name:g?"sort-up":"sort-down",ml:"0.25rem;"})]})})},u=function(m,i){var h=(0,t.useBackend)(i),V=h.act,v=h.data,s=v.is_printing,g=(0,t.useLocalState)(i,"searchText",""),N=g[0],x=g[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 B(){return V("create_new_account")}return B}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"print",content:"Print Account List",disabled:s,ml:"0.25rem",onClick:function(){function B(){return V("print_records")}return B}()})]}),(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 B(L,T){return x(T)}return B}()})})]})},f=function(m,i){var h=(0,t.useBackend)(i),V=h.act,v=h.data,s=v.account_number,g=v.owner_name,N=v.money,x=v.suspended,B=v.transactions;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:"#"+s+" / "+g,buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"arrow-left",content:"Back",onClick:function(){function L(){return V("back")}return L}()}),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Account Number",children:["#",s]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Account Holder",children:g}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Account Balance",children:N}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Account Status",color:x?"red":"green",children:[x?"Suspended":"Active",(0,e.createComponentVNode)(2,o.Button,{ml:1,content:x?"Unsuspend":"Suspend",icon:x?"unlock":"lock",onClick:function(){function L(){return V("toggle_suspension")}return L}()})]})]})})}),(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"})]}),B.map(function(L){return(0,e.createComponentVNode)(2,o.Table.Row,{children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:L.time}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:L.purpose}),(0,e.createComponentVNode)(2,o.Table.Cell,{color:L.is_deposit?"green":"red",children:["$",L.amount]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:L.target_name})]},L)})]})})})]})},l=function(m,i){var h=(0,t.useBackend)(i),V=h.act,v=h.data,s=(0,t.useLocalState)(i,"accName",""),g=s[0],N=s[1],x=(0,t.useLocalState)(i,"accDeposit",""),B=x[0],L=x[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 T(){return V("back")}return T}()}),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 T(A,E){return N(E)}return T}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Initial Deposit",children:(0,e.createComponentVNode)(2,o.Input,{placeholder:"0",onChange:function(){function T(A,E){return L(E)}return T}()})})]}),(0,e.createComponentVNode)(2,o.Button,{mt:1,fluid:!0,content:"Create Account",onClick:function(){function T(){return V("finalise_create_account",{holder_name:g,starting_funds:B})}return T}()})]})}},23001:function(I,r,n){"use strict";r.__esModule=!0,r.AdminAntagMenu=void 0;var e=n(89005),a=n(25328),t=n(72253),o=n(36036),p=n(36352),k=n(98595),y=n(321),S=n(5485),b={0:"\u0410\u043D\u0442\u0430\u0433\u043E\u043D\u0438\u0441\u0442\u044B",1:"\u0426\u0435\u043B\u0438",2:"\u0421\u0411",3:"\u041E\u0441\u043E\u0431\u043E \u0446\u0435\u043D\u043D\u044B\u0435 \u043F\u0440\u0435\u0434\u043C\u0435\u0442\u044B",default:"\u0427\u0442\u043E-\u0442\u043E \u043D\u0435 \u0442\u0430\u043A, \u043F\u043E\u0440\u0430 \u043F\u0438\u0441\u0430\u0442\u044C \u0431\u0430\u0433 \u0440\u0435\u043F\u043E\u0440\u0442!"},C={0:function(){function V(){return(0,e.createComponentVNode)(2,l)}return V}(),1:function(){function V(){return(0,e.createComponentVNode)(2,d)}return V}(),2:function(){function V(){return(0,e.createComponentVNode)(2,m)}return V}(),3:function(){function V(){return(0,e.createComponentVNode)(2,i)}return V}(),default:function(){function V(){return"\u0427\u0442\u043E-\u0442\u043E \u043D\u0435 \u0442\u0430\u043A, \u043F\u043E\u0440\u0430 \u043F\u0438\u0441\u0430\u0442\u044C \u0431\u0430\u0433 \u0440\u0435\u043F\u043E\u0440\u0442!"}return V}()},c=function(v){return b[v]||b.default},u=function(v){return C[v]||C.default},f=r.AdminAntagMenu=function(){function V(v,s){var g=(0,t.useBackend)(s),N=g.act,x=g.data,B=x.loginState,L=x.currentPage,T=(0,t.useLocalState)(s,"tabIndex",0),A=T[0],E=T[1],w=(0,t.useLocalState)(s,"searchText",""),O=w[0],M=w[1];return(0,e.createComponentVNode)(2,k.Window,{width:800,height:600,title:"\u041C\u0435\u043D\u044E \u0441\u043F\u0435\u0446-\u0440\u043E\u043B\u0435\u0439",children:(0,e.createComponentVNode)(2,k.Window.Content,{scrollable:!0,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.Tabs,{children:[(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:A===0,onClick:function(){function P(){E(0)}return P}(),icon:"user",children:"\u0410\u043D\u0442\u0430\u0433\u043E\u043D\u0438\u0441\u0442\u044B"},"Antagonists"),(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:A===1,onClick:function(){function P(){E(1)}return P}(),icon:"people-robbery",children:"\u0426\u0435\u043B\u0438"},"Objectives"),(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:A===2,onClick:function(){function P(){E(2)}return P}(),icon:"handcuffs",children:"\u0421\u0411"},"Security"),(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:A===3,onClick:function(){function P(){E(3)}return P}(),icon:"lock",children:"\u041E\u0441\u043E\u0431\u043E \u0446\u0435\u043D\u043D\u044B\u0435 \u043F\u0440\u0435\u0434\u043C\u0435\u0442\u044B"},"HighValueItems")]})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{title:c(A),fill:!0,scrollable:!0,buttons:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,o.Input,{placeholder:"\u0418\u0441\u043A\u0430\u0442\u044C...",width:"300px",onInput:function(){function P(F,R){return M(R)}return P}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"sync",onClick:function(){function P(){return N("refresh")}return P}(),children:"\u041E\u0431\u043D\u043E\u0432\u0438\u0442\u044C"})]}),children:u(A)()})})]})})})}return V}(),l=function(v,s){var g=(0,t.useBackend)(s),N=g.act,x=g.data,B=x.antagonists,L=(0,t.useLocalState)(s,"searchText",""),T=L[0],A=L[1],E=(0,t.useLocalState)(s,"sortId","antag_names"),w=E[0],O=E[1],M=(0,t.useLocalState)(s,"sortOrder",!0),P=M[0],F=M[1],R=Object.keys(B);if(!R||R.length===0)return(0,e.createVNode)(1,"div",null,"\u041D\u0435\u0442 \u0430\u043D\u0442\u0430\u0433\u043E\u043D\u0438\u0441\u0442\u043E\u0432.",16);var U=R.map(function(j){return Object.assign({key:j},B[j])});return(0,e.createComponentVNode)(2,o.Table,{className:"AdminAntagMenu__list",children:[(0,e.createComponentVNode)(2,o.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,h,{id:"name",children:"\u0418\u043C\u044F \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0430"}),(0,e.createComponentVNode)(2,h,{id:"",children:"\u041A\u043D\u043E\u043F\u043A\u0438"}),(0,e.createComponentVNode)(2,h,{id:"antag_names",children:"\u0422\u0438\u043F(-\u044B) \u0430\u043D\u0442\u0430\u0433\u043E\u043D\u0438\u0441\u0442\u043E\u0432"}),(0,e.createComponentVNode)(2,h,{id:"status",children:"\u0421\u0442\u0430\u0442\u0443\u0441"})]}),U.filter((0,a.createSearch)(T,function(j){var W=j.key,K=j.name,$=j.status,ne=j.antag_names;return K+"|"+$+"|"+ne.join(", ")})).sort(function(j,W){var K=P?1:-1;if(j[w]===void 0||j[w]===null)return K;if(W[w]===void 0||W[w]===null)return-1*K;if(typeof j[w]=="number")return(j[w]-W[w])*K;var $=j[w],ne=W[w];return w==="antag_names"&&($=j[w].join(", "),ne=W[w].join(", ")),$.localeCompare(ne)*K}).map(function(j,W){var K=j.key,$=j.name,ne=j.body_destroyed,Y=j.is_hijacker,le=j.antag_mind_uid,de=j.ckey,oe=j.status,re=j.antag_names;return(0,e.createComponentVNode)(2,o.Table.Row,{children:[(0,e.createComponentVNode)(2,o.Table.Cell,{collapsing:!0,children:ne?$:(0,e.createComponentVNode)(2,o.Button,{color:Y||!$?"red":"",tooltip:Y?"\u0423\u0433\u043E\u043D\u0449\u0438\u043A \u0448\u0430\u0442\u0442\u043B\u0430":"",onClick:function(){function Z(){return N("show_player_panel",{mind_uid:le})}return Z}(),children:$||"??? (\u041D\u0415\u0422 \u0418\u041C\u0415\u041D\u0418)"})}),(0,e.createComponentVNode)(2,o.Table.Cell,{collapsing:!0,children:[(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function Z(){N("pm",{ckey:de})}return Z}(),children:"PM"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function Z(){N("follow",{datum_uid:le})}return Z}(),children:"FLW"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function Z(){N("obs",{mind_uid:le})}return Z}(),children:"OBS"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function Z(){N("tp",{mind_uid:le})}return Z}(),children:"TP"})]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:re.join(", ")}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Box,{color:oe?"red":"grey",children:oe||"\u0416\u0438\u0432"})})]},W)})]})},d=function(v,s){var g=(0,t.useBackend)(s),N=g.act,x=g.data,B=x.objectives,L=(0,t.useLocalState)(s,"searchText",""),T=L[0],A=L[1],E=(0,t.useLocalState)(s,"sortId2","target_name"),w=E[0],O=E[1],M=(0,t.useLocalState)(s,"sortOrder",!0),P=M[0],F=M[1];return B.length?(0,e.createComponentVNode)(2,o.Table,{className:"AdminAntagMenu__list",children:[(0,e.createComponentVNode)(2,o.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,h,{sort_group:"sortId2",id:"obj_name",children:"\u0418\u043C\u044F"}),(0,e.createComponentVNode)(2,h,{sort_group:"sortId2",id:"target_name",children:"\u0426\u0435\u043B\u044C"}),(0,e.createComponentVNode)(2,h,{sort_group:"sortId2",id:"status",children:"\u0421\u0442\u0430\u0442\u0443\u0441"}),(0,e.createComponentVNode)(2,h,{sort_group:"sortId2",id:"owner_name",children:"\u0425\u043E\u0437\u044F\u0438\u043D"})]}),B.filter((0,a.createSearch)(T,function(R){return R.obj_name+"|"+R.target_name+"|"+(R.status?"success":"incompleted")+"|"+R.owner_name})).sort(function(R,U){var j=P?1:-1;return R[w]===void 0||R[w]===null||w==="target_name"&&R.no_target?j:U[w]===void 0||U[w]===null||w==="target_name"&&U.no_target?-1*j:typeof R[w]=="number"?(R[w]-U[w])*j:R[w].localeCompare(U[w])*j}).map(function(R,U){return(0,e.createComponentVNode)(2,o.Table.Row,{children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Button,{tooltip:R.obj_desc,onClick:function(){function j(){return N("vv",{uid:R.obj_uid})}return j}(),children:R.obj_name})}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:R.no_target?"":R.track.length?R.track.map(function(j,W){return(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function K(){return N("follow",{datum_uid:j})}return K}(),children:[R.target_name," ",R.track.length>1?"("+(parseInt(W,10)+1)+")":""]},W)}):R.target_name+" (\u043D\u0435 \u043D\u0430\u0439\u0434\u0435\u043D\u043E)"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Box,{color:R.status?"green":"grey",children:R.status?"\u0423\u0441\u043F\u0435\u0448\u043D\u043E":"\u041D\u0435\u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043D\u043E"})}),(0,e.createComponentVNode)(2,o.Table.Cell,{collapsing:!0,children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function j(){N("obj_owner",{owner_uid:R.owner_uid})}return j}(),children:R.owner_name})})]},U)})]}):"\u041D\u0435\u0442 \u0446\u0435\u043B\u0435\u0439!"},m=function(v,s){var g=(0,t.useBackend)(s),N=g.act,x=g.data,B=x.security,L=(0,t.useLocalState)(s,"searchText",""),T=L[0],A=L[1],E=(0,t.useLocalState)(s,"sortId3","health"),w=E[0],O=E[1],M=(0,t.useLocalState)(s,"sortOrder",!0),P=M[0],F=M[1],R=function(W){return W.status===2?"red":W.status===1?"orange":W.broken_bone||W.internal_bleeding?"yellow":"grey"},U=function(W){return W.status===2?"\u041C\u0451\u0440\u0442\u0432":W.status===1?"\u0411\u0435\u0437 \u0441\u043E\u0437\u043D\u0430\u043D\u0438\u044F":W.broken_bone&&W.internal_bleeding?"\u0421\u043B\u043E\u043C\u0430\u043D\u0430 \u043A\u043E\u0441\u0442\u044C, \u0412\u041A":W.broken_bone?"\u0421\u043B\u043E\u043C\u0430\u043D\u0430 \u043A\u043E\u0441\u0442\u044C":W.internal_bleeding?"\u0412\u041A":"\u0416\u0438\u0432"};return B.length?(0,e.createComponentVNode)(2,o.Table,{className:"AdminAntagMenu__list",children:[(0,e.createComponentVNode)(2,o.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,h,{sort_group:"sortId3",id:"name",children:"\u0418\u043C\u044F"}),(0,e.createComponentVNode)(2,h,{sort_group:"sortId3",id:"role",children:"\u0414\u043E\u043B\u0436\u043D\u043E\u0441\u0442\u044C"}),(0,e.createComponentVNode)(2,h,{sort_group:"sortId3",id:"status",children:"\u0421\u0442\u0430\u0442\u0443\u0441"}),(0,e.createComponentVNode)(2,h,{sort_group:"sortId3",id:"antag",children:"\u0410\u043D\u0442\u0430\u0433\u043E\u043D\u0438\u0441\u0442"}),(0,e.createComponentVNode)(2,h,{sort_group:"sortId3",id:"health",children:"\u0417\u0434\u043E\u0440\u043E\u0432\u044C\u0435"})]}),B.filter((0,a.createSearch)(T,function(j){return j.name+"|"+j.role+"|"+U(j)+"|"+j.antag})).sort(function(j,W){var K=P?1:-1;return j[w]===void 0||j[w]===null?K:W[w]===void 0||W[w]===null?-1*K:typeof j[w]=="number"?(j[w]-W[w])*K:j[w].localeCompare(W[w])*K}).map(function(j,W){return(0,e.createComponentVNode)(2,o.Table.Row,{children:[(0,e.createComponentVNode)(2,o.Table.Cell,{collapsing:!0,children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function K(){return N("show_player_panel",{mind_uid:j.mind_uid})}return K}(),children:j.name})}),(0,e.createComponentVNode)(2,o.Table.Cell,{collapsing:!0,children:j.role}),(0,e.createComponentVNode)(2,o.Table.Cell,{collapsing:!0,children:(0,e.createComponentVNode)(2,o.Box,{color:R(j),children:U(j)})}),(0,e.createComponentVNode)(2,o.Table.Cell,{collapsing:!0,children:j.antag?(0,e.createComponentVNode)(2,o.Button,{textColor:"red",translucent:!0,onClick:function(){function K(){N("tp",{mind_uid:j.mind_uid})}return K}(),children:j.antag}):""}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.ProgressBar,{minValue:0,value:j.health/j.max_health,maxValue:1,ranges:{good:[.6,1/0],average:[0,.6],bad:[-1/0,0]},children:j.health})}),(0,e.createComponentVNode)(2,o.Table.Cell,{collapsing:!0,children:[(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function K(){N("pm",{ckey:j.ckey})}return K}(),children:"PM"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function K(){N("follow",{datum_uid:j.mind_uid})}return K}(),children:"FLW"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function K(){N("obs",{mind_uid:j.mind_uid})}return K}(),children:"OBS"})]})]},W)})]}):"\u041D\u0435\u0442\u0443 \u0421\u0411!"},i=function(v,s){var g=(0,t.useBackend)(s),N=g.act,x=g.data,B=x.high_value_items,L=(0,t.useLocalState)(s,"searchText",""),T=L[0],A=L[1],E=(0,t.useLocalState)(s,"sortId4","person"),w=E[0],O=E[1],M=(0,t.useLocalState)(s,"sortOrder",!0),P=M[0],F=M[1];return B.length?(0,e.createComponentVNode)(2,o.Table,{className:"AdminAntagMenu__list",children:[(0,e.createComponentVNode)(2,o.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,h,{sort_group:"sortId4",id:"name",children:"\u0418\u043C\u044F"}),(0,e.createComponentVNode)(2,h,{sort_group:"sortId4",id:"person",children:"\u041D\u043E\u0441\u0438\u0442\u0435\u043B\u044C"}),(0,e.createComponentVNode)(2,h,{sort_group:"sortId4",id:"loc",children:"\u041C\u0435\u0441\u0442\u043E\u043F\u043E\u043B\u043E\u0436\u0435\u043D\u0438\u0435"}),(0,e.createComponentVNode)(2,h,{sort_group:"sortId4",id:"admin_z",children:"\u0410\u0434\u043C\u0438\u043D\u0441\u043A\u0438\u0439 Z-\u0443\u0440\u043E\u0432\u0435\u043D\u044C"})]}),B.filter((0,a.createSearch)(T,function(R){return R.name+"|"+R.loc})).sort(function(R,U){var j=P?1:-1;return R[w]===void 0||R[w]===null?j:U[w]===void 0||U[w]===null?-1*j:typeof R[w]=="number"?(R[w]-U[w])*j:R[w].localeCompare(U[w])*j}).map(function(R,U){return(0,e.createComponentVNode)(2,o.Table.Row,{children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Button,{tooltip:R.obj_desc,translucent:R.admin_z,onClick:function(){function j(){return N("vv",{uid:R.uid})}return j}(),children:R.name})}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Box,{color:R.admin_z?"grey":"",children:R.person})}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Box,{color:R.admin_z?"grey":"",children:R.loc})}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Box,{color:"grey",children:R.admin_z?"\u0414\u0430":"\u041D\u0435\u0442"})}),(0,e.createComponentVNode)(2,o.Table.Cell,{collapsing:!0,children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function j(){N("follow",{datum_uid:R.uid})}return j}(),children:"FLW"})})]},U)})]}):"\u041D\u0435\u0442 \u043E\u0441\u043E\u0431\u043E \u0446\u0435\u043D\u043D\u044B\u0445 \u043F\u0440\u0435\u0434\u043C\u0435\u0442\u043E\u0432!"},h=function(v,s){var g=v.id,N=v.sort_group,x=N===void 0?"sortId":N,B=v.default_sort,L=B===void 0?"antag_names":B,T=v.children,A=(0,t.useLocalState)(s,x,L),E=A[0],w=A[1],O=(0,t.useLocalState)(s,"sortOrder",!0),M=O[0],P=O[1];return(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Button,{color:E!==g&&"transparent",width:"100%",onClick:function(){function F(){E===g?P(!M):(w(g),P(!0))}return F}(),children:[T,E===g&&(0,e.createComponentVNode)(2,o.Icon,{name:M?"sort-up":"sort-down",ml:"0.25rem;"})]})})}},79571:function(I,r,n){"use strict";r.__esModule=!0,r.AgentCardSLSlots=r.AgentCardInfo=r.AgentCardAppearances=r.AgentCard=void 0;var e=n(89005),a=n(35840),t=n(72253),o=n(36036),p=n(98595),k=r.AgentCard=function(){function C(c,u){var f=(0,t.useLocalState)(u,"tabIndex",0),l=f[0],d=f[1],m=function(){function i(h){switch(h){case 0:return(0,e.createComponentVNode)(2,y);case 1:return(0,e.createComponentVNode)(2,S);case 2:return(0,e.createComponentVNode)(2,b);default:return(0,e.createComponentVNode)(2,y)}}return i}();return(0,e.createComponentVNode)(2,p.Window,{width:500,height:475,theme:"syndicate",children:(0,e.createComponentVNode)(2,p.Window.Content,{children:(0,e.createComponentVNode)(2,o.Box,{fillPositionedParent:!0,overflow:"hidden",children:[(0,e.createComponentVNode)(2,o.Tabs,{children:[(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:l===0,onClick:function(){function i(){return d(0)}return i}(),children:[(0,e.createComponentVNode)(2,o.Icon,{name:"table"})," Card Info"]},"Card Info"),(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:l===1,onClick:function(){function i(){return d(1)}return i}(),children:[(0,e.createComponentVNode)(2,o.Icon,{name:"id-card"})," Appearance"]},"Appearance"),(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:l===2,onClick:function(){function i(){return d(2)}return i}(),children:[(0,e.createComponentVNode)(2,o.Icon,{name:"arrow-down"})," Save/Load Card Info"]},"Save/Load Card Info")]}),m(l)]})})})}return C}(),y=r.AgentCardInfo=function(){function C(c,u){var f=(0,t.useBackend)(u),l=f.act,d=f.data,m=d.registered_name,i=d.sex,h=d.age,V=d.assignment,v=d.associated_account_number,s=d.blood_type,g=d.dna_hash,N=d.fingerprint_hash,x=d.photo,B=d.ai_tracking;return(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Section,{title:"Card Info",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Name",children:(0,e.createComponentVNode)(2,o.Button,{content:m||"[UNSET]",onClick:function(){function L(){return l("change_name")}return L}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Sex",children:(0,e.createComponentVNode)(2,o.Button,{iconRight:!1,content:i||"[UNSET]",onClick:function(){function L(){return l("change_sex")}return L}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Age",children:(0,e.createComponentVNode)(2,o.Button,{content:h||"[UNSET]",onClick:function(){function L(){return l("change_age")}return L}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Rank",children:(0,e.createComponentVNode)(2,o.Button,{content:V||"[UNSET]",onClick:function(){function L(){return l("change_occupation")}return L}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Fingerprints",children:(0,e.createComponentVNode)(2,o.Button,{content:N||"[UNSET]",onClick:function(){function L(){return l("change_fingerprints")}return L}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Blood Type",children:(0,e.createComponentVNode)(2,o.Button,{content:s||"[UNSET]",onClick:function(){function L(){return l("change_blood_type")}return L}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"DNA Hash",children:(0,e.createComponentVNode)(2,o.Button,{content:g||"[UNSET]",onClick:function(){function L(){return l("change_dna_hash")}return L}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Money Account",children:(0,e.createComponentVNode)(2,o.Button,{content:v||"[UNSET]",onClick:function(){function L(){return l("change_money_account")}return L}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Photo",children:(0,e.createComponentVNode)(2,o.Button,{content:x?"Update":"[UNSET]",onClick:function(){function L(){return l("change_photo")}return L}()})})]})}),(0,e.createComponentVNode)(2,o.Section,{title:"Card Settings",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Card Info",children:(0,e.createComponentVNode)(2,o.Button,{content:"Delete Card Info",onClick:function(){function L(){return l("delete_info")}return L}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Access",children:(0,e.createComponentVNode)(2,o.Button,{content:"Reset Access",onClick:function(){function L(){return l("clear_access")}return L}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"AI Tracking",children:(0,e.createComponentVNode)(2,o.Button,{content:B?"Untrackable":"Trackable",onClick:function(){function L(){return l("change_ai_tracking")}return L}()})})]})})],4)}return C}(),S=r.AgentCardAppearances=function(){function C(c,u){var f=(0,t.useBackend)(u),l=f.act,d=f.data,m=d.appearances;return(0,e.createComponentVNode)(2,o.Section,{fill:!0,title:"Card Appearance",children:m.map(function(i){return(0,e.createComponentVNode)(2,o.ImageButton,{tooltip:i,vertical:!0,asset:!0,style:{margin:"1px"},image:i,imageAsset:"id_card64x64",onclick:function(){function h(){return l("change_appearance_new",{new_appearance:i})}return h}()},i)})})}return C}(),b=r.AgentCardSLSlots=function(){function C(c,u){var f=(0,t.useBackend)(u),l=f.act,d=f.data,m=d.saved_info;return(0,e.createComponentVNode)(2,o.Section,{title:"Save/Load Manager",style:{"line-height":"25px"},children:(0,e.createComponentVNode)(2,o.LabeledList,{children:m.map(function(i){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:i.registered_name?i.registered_name+", "+i.assignment:"Slot "+i.id,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{content:"Clear",onClick:function(){function h(){return l("clear_slot",{slot:i.id})}return h}()}),(0,e.createComponentVNode)(2,o.Button,{content:"Save",onClick:function(){function h(){return l("save_slot",{slot:i.id})}return h}()}),(0,e.createComponentVNode)(2,o.Button,{content:"Load",disabled:!i.registered_name,onClick:function(){function h(){return l("load_slot",{slot:i.id})}return h}()})],4)},i.id)})})})}return C}()},56793:function(I,r,n){"use strict";r.__esModule=!0,r.AiAirlock=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p={2:{color:"good",localStatusText:"Offline"},1:{color:"average",localStatusText:"Caution"},0:{color:"bad",localStatusText:"Optimal"}},k=r.AiAirlock=function(){function y(S,b){var C=(0,a.useBackend)(b),c=C.act,u=C.data,f=p[u.power.main]||p[0],l=p[u.power.backup]||p[0],d=p[u.shock]||p[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:f.color,buttons:(0,e.createComponentVNode)(2,t.Button,{mb:.5,icon:"lightbulb-o",disabled:!u.power.main,content:"Disrupt",onClick:function(){function m(){return c("disrupt-main")}return m}()}),children:[u.power.main?"Online":"Offline"," ",!u.wires.main_power&&"[Wires have been cut!]"||u.power.main_timeleft>0&&"["+u.power.main_timeleft+"s]"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Backup",color:l.color,buttons:(0,e.createComponentVNode)(2,t.Button,{mb:.5,icon:"lightbulb-o",disabled:!u.power.backup,content:"Disrupt",onClick:function(){function m(){return c("disrupt-backup")}return m}()}),children:[u.power.backup?"Online":"Offline"," ",!u.wires.backup_power&&"[Wires have been cut!]"||u.power.backup_timeleft>0&&"["+u.power.backup_timeleft+"s]"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Electrify",color:d.color,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{mr:.5,icon:"wrench",disabled:!(u.wires.shock&&u.shock!==2),content:"Restore",onClick:function(){function m(){return c("shock-restore")}return m}()}),(0,e.createComponentVNode)(2,t.Button,{mr:.5,icon:"bolt",disabled:!u.wires.shock,content:"Temporary",onClick:function(){function m(){return c("shock-temp")}return m}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"bolt",disabled:!u.wires.shock||u.shock===0,content:"Permanent",onClick:function(){function m(){return c("shock-perm")}return m}()})],4),children:[u.shock===2?"Safe":"Electrified"," ",!u.wires.shock&&"[Wires have been cut!]"||u.shock_timeleft>0&&"["+u.shock_timeleft+"s]"||u.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:u.id_scanner?"power-off":"times",content:u.id_scanner?"Enabled":"Disabled",selected:u.id_scanner,disabled:!u.wires.id_scanner,onClick:function(){function m(){return c("idscan-toggle")}return m}()}),children:!u.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:u.emergency?"power-off":"times",content:u.emergency?"Enabled":"Disabled",selected:u.emergency,onClick:function(){function m(){return c("emergency-toggle")}return m}()})}),(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:u.locked?"lock":"unlock",content:u.locked?"Lowered":"Raised",selected:u.locked,disabled:!u.wires.bolts,onClick:function(){function m(){return c("bolt-toggle")}return m}()}),children:!u.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:u.lights?"power-off":"times",content:u.lights?"Enabled":"Disabled",selected:u.lights,disabled:!u.wires.lights,onClick:function(){function m(){return c("light-toggle")}return m}()}),children:!u.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:u.safe?"power-off":"times",content:u.safe?"Enabled":"Disabled",selected:u.safe,disabled:!u.wires.safe,onClick:function(){function m(){return c("safe-toggle")}return m}()}),children:!u.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:u.speed?"power-off":"times",content:u.speed?"Enabled":"Disabled",selected:u.speed,disabled:!u.wires.timing,onClick:function(){function m(){return c("speed-toggle")}return m}()}),children:!u.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:u.opened?"sign-out-alt":"sign-in-alt",content:u.opened?"Open":"Closed",selected:u.opened,disabled:u.locked||u.welded,onClick:function(){function m(){return c("open-close")}return m}()}),children:!!(u.locked||u.welded)&&(0,e.createVNode)(1,"span",null,[(0,e.createTextVNode)("[Door is "),u.locked?"bolted":"",u.locked&&u.welded?" and ":"",u.welded?"welded":"",(0,e.createTextVNode)("!]")],0)})]})})]})})}return y}()},72475:function(I,r,n){"use strict";r.__esModule=!0,r.AirAlarm=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=n(195),k=r.AirAlarm=function(){function d(m,i){var h=(0,a.useBackend)(i),V=h.act,v=h.data,s=v.locked;return(0,e.createComponentVNode)(2,o.Window,{width:570,height:s?310:755,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,p.InterfaceLockNoticeBox),(0,e.createComponentVNode)(2,S),!s&&(0,e.createFragment)([(0,e.createComponentVNode)(2,b),(0,e.createComponentVNode)(2,C)],4)]})})}return d}(),y=function(m){return m===0?"green":m===1?"orange":"red"},S=function(m,i){var h=(0,a.useBackend)(i),V=h.act,v=h.data,s=v.air,g=v.mode,N=v.atmos_alarm,x=v.locked,B=v.alarmActivated,L=v.rcon,T=v.target_temp,A;return s.danger.overall===0?N===0?A="Optimal":A="Caution: Atmos alert in area":s.danger.overall===1?A="Caution":A="DANGER: Internals Required",(0,e.createComponentVNode)(2,t.Section,{title:"Air Status",children:s?(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Pressure",children:(0,e.createComponentVNode)(2,t.Box,{color:y(s.danger.pressure),children:[(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:s.pressure})," kPa",!x&&(0,e.createFragment)([(0,e.createTextVNode)("\xA0"),(0,e.createComponentVNode)(2,t.Button,{content:g===3?"Deactivate Panic Siphon":"Activate Panic Siphon",selected:g===3,icon:"exclamation-triangle",onClick:function(){function E(){return V("mode",{mode:g===3?1:3})}return E}()})],4)]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Oxygen",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:s.contents.oxygen/100,fractionDigits:"1",color:y(s.danger.oxygen)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Nitrogen",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:s.contents.nitrogen/100,fractionDigits:"1",color:y(s.danger.nitrogen)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Carbon Dioxide",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:s.contents.co2/100,fractionDigits:"1",color:y(s.danger.co2)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Toxins",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:s.contents.plasma/100,fractionDigits:"1",color:y(s.danger.plasma)})}),s.contents.n2o>.1&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Nitrous Oxide",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:s.contents.n2o/100,fractionDigits:"1",color:y(s.danger.n2o)})}),s.contents.other>.1&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Other",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:s.contents.other/100,fractionDigits:"1",color:y(s.danger.other)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Temperature",children:(0,e.createComponentVNode)(2,t.Box,{color:y(s.danger.temperature),children:[(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:s.temperature})," K /"," ",(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:s.temperature_c})," C\xA0",(0,e.createComponentVNode)(2,t.Button,{icon:"thermometer-full",content:T+" C",onClick:function(){function E(){return V("temperature")}return E}()}),(0,e.createComponentVNode)(2,t.Button,{content:s.thermostat_state?"On":"Off",selected:s.thermostat_state,icon:"power-off",onClick:function(){function E(){return V("thermostat_state")}return E}()})]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Local Status",children:(0,e.createComponentVNode)(2,t.Box,{color:y(s.danger.overall),children:[A,!x&&(0,e.createFragment)([(0,e.createTextVNode)("\xA0"),(0,e.createComponentVNode)(2,t.Button,{content:B?"Reset Alarm":"Activate Alarm",selected:B,onClick:function(){function E(){return V(B?"atmos_reset":"atmos_alarm")}return E}()})],4)]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Remote Control Settings",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Off",selected:L===1,onClick:function(){function E(){return V("set_rcon",{rcon:1})}return E}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Auto",selected:L===2,onClick:function(){function E(){return V("set_rcon",{rcon:2})}return E}()}),(0,e.createComponentVNode)(2,t.Button,{content:"On",selected:L===3,onClick:function(){function E(){return V("set_rcon",{rcon:3})}return E}()})]})]}):(0,e.createComponentVNode)(2,t.Box,{children:"Unable to acquire air sample!"})})},b=function(m,i){var h=(0,a.useLocalState)(i,"tabIndex",0),V=h[0],v=h[1];return(0,e.createComponentVNode)(2,t.Tabs,{children:[(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:V===0,onClick:function(){function s(){return v(0)}return s}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"sign-out-alt"})," Vent Control"]},"Vents"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:V===1,onClick:function(){function s(){return v(1)}return s}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"sign-in-alt"})," Scrubber Control"]},"Scrubbers"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:V===2,onClick:function(){function s(){return v(2)}return s}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"cog"})," Mode"]},"Mode"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:V===3,onClick:function(){function s(){return v(3)}return s}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"tachometer-alt"})," Thresholds"]},"Thresholds")]})},C=function(m,i){var h=(0,a.useLocalState)(i,"tabIndex",0),V=h[0],v=h[1];switch(V){case 0:return(0,e.createComponentVNode)(2,c);case 1:return(0,e.createComponentVNode)(2,u);case 2:return(0,e.createComponentVNode)(2,f);case 3:return(0,e.createComponentVNode)(2,l);default:return"WE SHOULDN'T BE HERE!"}},c=function(m,i){var h=(0,a.useBackend)(i),V=h.act,v=h.data,s=v.vents;return s.map(function(g){return(0,e.createComponentVNode)(2,t.Section,{title:g.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:g.power?"On":"Off",selected:g.power,icon:"power-off",onClick:function(){function N(){return V("command",{cmd:"power",val:g.power===1?0:1,id_tag:g.id_tag})}return N}()}),(0,e.createComponentVNode)(2,t.Button,{content:g.direction==="release"?"Blowing":"Siphoning",icon:g.direction==="release"?"sign-out-alt":"sign-in-alt",onClick:function(){function N(){return V("command",{cmd:"direction",val:g.direction==="release"?0:1,id_tag:g.id_tag})}return N}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Pressure Checks",children:[(0,e.createComponentVNode)(2,t.Button,{content:"External",selected:g.checks===1,onClick:function(){function N(){return V("command",{cmd:"checks",val:1,id_tag:g.id_tag})}return N}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Internal",selected:g.checks===2,onClick:function(){function N(){return V("command",{cmd:"checks",val:2,id_tag:g.id_tag})}return N}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"External Pressure Target",children:[(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:g.external})," kPa\xA0",(0,e.createComponentVNode)(2,t.Button,{content:"Set",icon:"cog",onClick:function(){function N(){return V("command",{cmd:"set_external_pressure",id_tag:g.id_tag})}return N}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Reset",icon:"redo-alt",onClick:function(){function N(){return V("command",{cmd:"set_external_pressure",val:101.325,id_tag:g.id_tag})}return N}()})]})]})},g.name)})},u=function(m,i){var h=(0,a.useBackend)(i),V=h.act,v=h.data,s=v.scrubbers;return s.map(function(g){return(0,e.createComponentVNode)(2,t.Section,{title:g.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:g.power?"On":"Off",selected:g.power,icon:"power-off",onClick:function(){function N(){return V("command",{cmd:"power",val:g.power===1?0:1,id_tag:g.id_tag})}return N}()}),(0,e.createComponentVNode)(2,t.Button,{content:g.scrubbing?"Scrubbing":"Siphoning",icon:g.scrubbing?"filter":"sign-in-alt",onClick:function(){function N(){return V("command",{cmd:"scrubbing",val:g.scrubbing===0?1:0,id_tag:g.id_tag})}return N}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Range",children:(0,e.createComponentVNode)(2,t.Button,{content:g.widenet?"Extended":"Normal",selected:g.widenet,icon:"expand-arrows-alt",onClick:function(){function N(){return V("command",{cmd:"widenet",val:g.widenet===0?1:0,id_tag:g.id_tag})}return N}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Filtering",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Carbon Dioxide",selected:g.filter_co2,onClick:function(){function N(){return V("command",{cmd:"co2_scrub",val:g.filter_co2===0?1:0,id_tag:g.id_tag})}return N}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Plasma",selected:g.filter_toxins,onClick:function(){function N(){return V("command",{cmd:"tox_scrub",val:g.filter_toxins===0?1:0,id_tag:g.id_tag})}return N}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Nitrous Oxide",selected:g.filter_n2o,onClick:function(){function N(){return V("command",{cmd:"n2o_scrub",val:g.filter_n2o===0?1:0,id_tag:g.id_tag})}return N}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Oxygen",selected:g.filter_o2,onClick:function(){function N(){return V("command",{cmd:"o2_scrub",val:g.filter_o2===0?1:0,id_tag:g.id_tag})}return N}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Nitrogen",selected:g.filter_n2,onClick:function(){function N(){return V("command",{cmd:"n2_scrub",val:g.filter_n2===0?1:0,id_tag:g.id_tag})}return N}()})]})]})},g.name)})},f=function(m,i){var h=(0,a.useBackend)(i),V=h.act,v=h.data,s=v.modes,g=v.presets,N=v.emagged,x=v.mode,B=v.preset;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{title:"System Mode",children:(0,e.createComponentVNode)(2,t.Table,{children:s.map(function(L){return(!L.emagonly||L.emagonly&&!!N)&&(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:L.name,icon:"cog",selected:L.id===x,onClick:function(){function T(){return V("mode",{mode:L.id})}return T}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:L.desc})]},L.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:g.map(function(L){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:L.name,icon:"cog",selected:L.id===B,onClick:function(){function T(){return V("preset",{preset:L.id})}return T}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:L.desc})]},L.name)})})]})],4)},l=function(m,i){var h=(0,a.useBackend)(i),V=h.act,v=h.data,s=v.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"})]}),s.map(function(g){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:g.name}),g.settings.map(function(N){return(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{content:N.selected===-1?"Off":N.selected,onClick:function(){function x(){return V("command",{cmd:"set_threshold",env:N.env,var:N.val})}return x}()})},N.val)})]},g.name)})]})})}},12333:function(I,r,n){"use strict";r.__esModule=!0,r.AirlockAccessController=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.AirlockAccessController=function(){function k(y,S){var b=(0,a.useBackend)(S),C=b.act,c=b.data,u=c.exterior_status,f=c.interior_status,l=c.processing,d,m;return u==="open"?d=(0,e.createComponentVNode)(2,t.Button,{width:"50%",content:"Lock Exterior Door",icon:"exclamation-triangle",disabled:l,onClick:function(){function i(){return C("force_ext")}return i}()}):d=(0,e.createComponentVNode)(2,t.Button,{width:"50%",content:"Cycle to Exterior",icon:"arrow-circle-left",disabled:l,onClick:function(){function i(){return C("cycle_ext_door")}return i}()}),f==="open"?m=(0,e.createComponentVNode)(2,t.Button,{width:"49%",content:"Lock Interior Door",icon:"exclamation-triangle",disabled:l,color:f==="open"?"red":l?"yellow":null,onClick:function(){function i(){return C("force_int")}return i}()}):m=(0,e.createComponentVNode)(2,t.Button,{width:"49%",content:"Cycle to Interior",icon:"arrow-circle-right",disabled:l,onClick:function(){function i(){return C("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:u==="closed"?"Locked":"Open"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Internal Door Status",children:f==="closed"?"Locked":"Open"})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Actions",children:(0,e.createComponentVNode)(2,t.Box,{children:[d,m]})})]})})}return k}()},28736:function(I,r,n){"use strict";r.__esModule=!0,r.AirlockElectronics=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=n(49148),k=1,y=2,S=4,b=8,C=r.AirlockElectronics=function(){function f(l,d){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,c),(0,e.createComponentVNode)(2,u)]})})})}return f}(),c=function(l,d){var m=(0,a.useBackend)(d),i=m.act,h=m.data,V=h.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:V&S?"selected":null,onClick:function(){function v(){return i("unrestricted_access",{unres_dir:S})}return v}()})}),(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:V&y?"selected":null,onClick:function(){function v(){return i("unrestricted_access",{unres_dir:y})}return v}()})}),(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:V&b?"selected":null,onClick:function(){function v(){return i("unrestricted_access",{unres_dir:b})}return v}()})}),(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:V&k?"selected":null,onClick:function(){function v(){return i("unrestricted_access",{unres_dir:k})}return v}()})})]})]})})},u=function(l,d){var m=(0,a.useBackend)(d),i=m.act,h=m.data,V=h.selected_accesses,v=h.one_access,s=h.regions;return(0,e.createComponentVNode)(2,p.AccessList,{usedByRcd:1,rcdButtons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:v,content:"One",onClick:function(){function g(){return i("set_one_access",{access:"one"})}return g}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:!v,content:"All",onClick:function(){function g(){return i("set_one_access",{access:"all"})}return g}()})],4),accesses:s,selectedList:V,accessMod:function(){function g(N){return i("set",{access:N})}return g}(),grantAll:function(){function g(){return i("grant_all")}return g}(),denyAll:function(){function g(){return i("clear_all")}return g}(),grantDep:function(){function g(N){return i("grant_region",{region:N})}return g}(),denyDep:function(){function g(N){return i("deny_region",{region:N})}return g}()})}},47365:function(I,r,n){"use strict";r.__esModule=!0,r.AlertModal=void 0;var e=n(89005),a=n(51057),t=n(70611),o=n(72253),p=n(36036),k=n(98595),y=function(c){return c[c.Increment=1]="Increment",c[c.Decrement=-1]="Decrement",c}(y||{}),S=r.AlertModal=function(){function c(u,f){var l=(0,o.useBackend)(f),d=l.act,m=l.data,i=m.autofocus,h=m.buttons,V=h===void 0?[]:h,v=m.large_buttons,s=m.message,g=s===void 0?"":s,N=m.timeout,x=m.title,B=(0,o.useLocalState)(f,"selected",0),L=B[0],T=B[1],A=V.some(function(F){return F.length>10}),E=A&&v?20:15,w=120+(A?E*V.length:0)+(g.length>40?Math.ceil(g.length/3):0)+(g.length&&v?5:0),O=345+(V.length>2?55:0),M=function(){function F(R){switch(R.key){case t.KEY.Space:case t.KEY.Enter:d("choose",{choice:V[L]});return;case t.KEY.Escape:d("cancel");return;case t.KEY.Left:R.preventDefault(),P(y.Decrement);return;case t.KEY.Tab:case t.KEY.Right:R.preventDefault(),P(y.Increment);return}}return F}(),P=function(){function F(R){var U=(L+R+V.length)%V.length;T(U)}return F}();return(0,e.createComponentVNode)(2,k.Window,{title:x,height:w,width:O,children:[!!N&&(0,e.createComponentVNode)(2,a.Loader,{value:N}),(0,e.createComponentVNode)(2,k.Window.Content,{onKeyDown:M,children:(0,e.createComponentVNode)(2,p.Section,{fill:!0,children:(0,e.createComponentVNode)(2,p.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,p.Stack.Item,{grow:!0,m:1,children:(0,e.createComponentVNode)(2,p.Box,{color:"label",overflow:"hidden",children:g})}),(0,e.createComponentVNode)(2,p.Stack.Item,{children:[!!i&&(0,e.createComponentVNode)(2,p.Autofocus),A?(0,e.createComponentVNode)(2,C,{selected:L}):(0,e.createComponentVNode)(2,b,{selected:L})]})]})})})]})}return c}(),b=function(u,f){var l=(0,o.useBackend)(f),d=l.act,m=l.data,i=m.buttons,h=i===void 0?[]:i,V=m.large_buttons,v=m.swapped_buttons,s=u.selected;return(0,e.createComponentVNode)(2,p.Stack,{fill:!0,justify:"space-around",reverse:!v,children:h.map(function(g,N){return(0,e.createComponentVNode)(2,p.Stack.Item,{grow:V?1:void 0,children:(0,e.createComponentVNode)(2,p.Button,{fluid:!!V,minWidth:5,onClick:function(){function x(){return d("choose",{choice:g})}return x}(),overflowX:"hidden",px:2,py:V?.5:0,selected:s===N,textAlign:"center",children:V?g.toUpperCase():g})},N)})})},C=function(u,f){var l=(0,o.useBackend)(f),d=l.act,m=l.data,i=m.buttons,h=i===void 0?[]:i,V=m.large_buttons,v=m.swapped_buttons,s=u.selected;return(0,e.createComponentVNode)(2,p.Stack,{align:"center",fill:!0,justify:"space-around",reverse:!v,vertical:!0,children:h.map(function(g,N){return(0,e.createComponentVNode)(2,p.Stack.Item,{grow:!0,width:V?"100%":void 0,m:0,children:(0,e.createComponentVNode)(2,p.Button,{fluid:!0,minWidth:20,onClick:function(){function x(){return d("choose",{choice:g})}return x}(),overflowX:"hidden",px:2,py:V?.5:0,selected:s===N,textAlign:"center",children:V?g.toUpperCase():g})},N)})})}},71824:function(I,r,n){"use strict";r.__esModule=!0,r.AppearanceChanger=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.AppearanceChanger=function(){function y(S,b){var C=(0,a.useBackend)(b),c=C.act,u=C.data,f=u.change_race,l=u.species,d=u.specimen,m=u.change_gender,i=u.gender,h=u.has_gender,V=u.change_eye_color,v=u.change_skin_tone,s=u.change_skin_color,g=u.change_head_accessory_color,N=u.change_hair_color,x=u.change_secondary_hair_color,B=u.change_facial_hair_color,L=u.change_secondary_facial_hair_color,T=u.change_head_marking_color,A=u.change_body_marking_color,E=u.change_tail_marking_color,w=u.change_head_accessory,O=u.head_accessory_styles,M=u.head_accessory_style,P=u.change_hair,F=u.hair_styles,R=u.hair_style,U=u.change_hair_gradient,j=u.change_facial_hair,W=u.facial_hair_styles,K=u.facial_hair_style,$=u.change_head_markings,ne=u.head_marking_styles,Y=u.head_marking_style,le=u.change_body_markings,de=u.body_marking_styles,oe=u.body_marking_style,re=u.change_tail_markings,Z=u.tail_marking_styles,ae=u.tail_marking_style,J=u.change_body_accessory,X=u.body_accessory_styles,Q=u.body_accessory_style,q=u.change_alt_head,te=u.alt_head_styles,fe=u.alt_head_style,ye=!1;return(V||v||s||g||N||x||B||L||T||A||E)&&(ye=!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:[!!f&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Species",children:l.map(function(pe){return(0,e.createComponentVNode)(2,t.Button,{content:pe.specimen,selected:pe.specimen===d,onClick:function(){function Le(){return c("race",{race:pe.specimen})}return Le}()},pe.specimen)})}),!!m&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Gender",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Male",selected:i==="male",onClick:function(){function pe(){return c("gender",{gender:"male"})}return pe}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Female",selected:i==="female",onClick:function(){function pe(){return c("gender",{gender:"female"})}return pe}()}),!h&&(0,e.createComponentVNode)(2,t.Button,{content:"Genderless",selected:i==="plural",onClick:function(){function pe(){return c("gender",{gender:"plural"})}return pe}()})]}),!!ye&&(0,e.createComponentVNode)(2,k),!!w&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Head accessory",children:O.map(function(pe){return(0,e.createComponentVNode)(2,t.Button,{content:pe.headaccessorystyle,selected:pe.headaccessorystyle===M,onClick:function(){function Le(){return c("head_accessory",{head_accessory:pe.headaccessorystyle})}return Le}()},pe.headaccessorystyle)})}),!!P&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Hair",children:F.map(function(pe){return(0,e.createComponentVNode)(2,t.Button,{content:pe.hairstyle,selected:pe.hairstyle===R,onClick:function(){function Le(){return c("hair",{hair:pe.hairstyle})}return Le}()},pe.hairstyle)})}),!!U&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Hair Gradient",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Change Style",onClick:function(){function pe(){return c("hair_gradient")}return pe}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Change Offset",onClick:function(){function pe(){return c("hair_gradient_offset")}return pe}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Change Color",onClick:function(){function pe(){return c("hair_gradient_colour")}return pe}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Change Alpha",onClick:function(){function pe(){return c("hair_gradient_alpha")}return pe}()})]}),!!j&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Facial hair",children:W.map(function(pe){return(0,e.createComponentVNode)(2,t.Button,{content:pe.facialhairstyle,selected:pe.facialhairstyle===K,onClick:function(){function Le(){return c("facial_hair",{facial_hair:pe.facialhairstyle})}return Le}()},pe.facialhairstyle)})}),!!$&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Head markings",children:ne.map(function(pe){return(0,e.createComponentVNode)(2,t.Button,{content:pe.headmarkingstyle,selected:pe.headmarkingstyle===Y,onClick:function(){function Le(){return c("head_marking",{head_marking:pe.headmarkingstyle})}return Le}()},pe.headmarkingstyle)})}),!!le&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Body markings",children:de.map(function(pe){return(0,e.createComponentVNode)(2,t.Button,{content:pe.bodymarkingstyle,selected:pe.bodymarkingstyle===oe,onClick:function(){function Le(){return c("body_marking",{body_marking:pe.bodymarkingstyle})}return Le}()},pe.bodymarkingstyle)})}),!!re&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Tail markings",children:Z.map(function(pe){return(0,e.createComponentVNode)(2,t.Button,{content:pe.tailmarkingstyle,selected:pe.tailmarkingstyle===ae,onClick:function(){function Le(){return c("tail_marking",{tail_marking:pe.tailmarkingstyle})}return Le}()},pe.tailmarkingstyle)})}),!!J&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Body accessory",children:X.map(function(pe){return(0,e.createComponentVNode)(2,t.Button,{content:pe.bodyaccessorystyle,selected:pe.bodyaccessorystyle===Q,onClick:function(){function Le(){return c("body_accessory",{body_accessory:pe.bodyaccessorystyle})}return Le}()},pe.bodyaccessorystyle)})}),!!q&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Alternate head",children:te.map(function(pe){return(0,e.createComponentVNode)(2,t.Button,{content:pe.altheadstyle,selected:pe.altheadstyle===fe,onClick:function(){function Le(){return c("alt_head",{alt_head:pe.altheadstyle})}return Le}()},pe.altheadstyle)})})]})})})}return y}(),k=function(S,b){var C=(0,a.useBackend)(b),c=C.act,u=C.data,f=[{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:f.map(function(l){return!!u[l.key]&&(0,e.createComponentVNode)(2,t.Button,{content:l.text,onClick:function(){function d(){return c(l.action)}return d}()},l.key)})})}},72285:function(I,r,n){"use strict";r.__esModule=!0,r.AtmosAlertConsole=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.AtmosAlertConsole=function(){function k(y,S){var b=(0,a.useBackend)(S),C=b.act,c=b.data,u=c.priority||[],f=c.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,[u.length===0&&(0,e.createVNode)(1,"li","color-good","No Priority Alerts",16),u.map(function(l){return(0,e.createVNode)(1,"li",null,(0,e.createComponentVNode)(2,t.Button,{icon:"times",content:l,color:"bad",onClick:function(){function d(){return C("clear",{zone:l})}return d}()}),2,null,l)}),f.length===0&&(0,e.createVNode)(1,"li","color-good","No Minor Alerts",16),f.map(function(l){return(0,e.createVNode)(1,"li",null,(0,e.createComponentVNode)(2,t.Button,{icon:"times",content:l,color:"average",onClick:function(){function d(){return C("clear",{zone:l})}return d}()}),2,null,l)})],0)})})})}return k}()},65805:function(I,r,n){"use strict";r.__esModule=!0,r.AtmosControl=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(36352),p=n(98595),k=function(u){if(u===0)return(0,e.createComponentVNode)(2,t.Box,{color:"green",children:"Good"});if(u===1)return(0,e.createComponentVNode)(2,t.Box,{color:"orange",bold:!0,children:"Warning"});if(u===2)return(0,e.createComponentVNode)(2,t.Box,{color:"red",bold:!0,children:"DANGER"})},y=function(u){if(u===0)return"green";if(u===1)return"orange";if(u===2)return"red"},S=r.AtmosControl=function(){function c(u,f){var l=(0,a.useBackend)(f),d=l.act,m=l.data,i=(0,a.useLocalState)(f,"tabIndex",0),h=i[0],V=i[1],v=function(){function s(g){switch(g){case 0:return(0,e.createComponentVNode)(2,b);case 1:return(0,e.createComponentVNode)(2,C);default:return"WE SHOULDN'T BE HERE!"}}return s}();return(0,e.createComponentVNode)(2,p.Window,{width:800,height:600,children:(0,e.createComponentVNode)(2,p.Window.Content,{scrollable:h===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:h===0,onClick:function(){function s(){return V(0)}return s}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"table"})," Data View"]},"DataView"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:h===1,onClick:function(){function s(){return V(1)}return s}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"map-marked-alt"})," Map View"]},"MapView")]}),v(h)]})})})}return c}(),b=function(u,f){var l=(0,a.useBackend)(f),d=l.act,m=l.data,i=m.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(h){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,o.TableCell,{children:h.name}),(0,e.createComponentVNode)(2,o.TableCell,{children:k(h.danger)}),(0,e.createComponentVNode)(2,o.TableCell,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"cog",content:"Access",onClick:function(){function V(){return d("open_alarm",{aref:h.ref})}return V}()})})]},h.name)})]})})},C=function(u,f){var l=(0,a.useBackend)(f),d=l.act,m=l.data,i=m.alarms,h=m.stationLevelNum,V=m.stationLevelName,v=(0,a.useLocalState)(f,"zoom",1),s=v[0],g=v[1],N=(0,a.useLocalState)(f,"z_current",h[0]),x=N[0],B=N[1];return(0,e.createComponentVNode)(2,t.Box,{height:"526px",mb:"0.5rem",overflow:"hidden",children:(0,e.createComponentVNode)(2,t.NanoMap,{onZoom:function(){function L(T){return g(T)}return L}(),zLevels:h,zNames:V,z_current:x,setZCurrent:B,children:i.map(function(L){return(0,e.createComponentVNode)(2,t.NanoMap.Marker,{x:L.x,y:L.y,z:L.z,z_current:x,zoom:s,icon:"circle",tooltip:L.name,color:y(L.danger),onClick:function(){function T(){return d("open_alarm",{aref:L.ref})}return T}()},L.ref)})})})}},87816:function(I,r,n){"use strict";r.__esModule=!0,r.AtmosFilter=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.AtmosFilter=function(){function k(y,S){var b=(0,a.useBackend)(S),C=b.act,c=b.data,u=c.on,f=c.pressure,l=c.max_pressure,d=c.filter_type,m=c.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:u?"On":"Off",color:u?null:"red",selected:u,onClick:function(){function i(){return C("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:f===0,width:2.2,onClick:function(){function i(){return C("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:l,value:f,onDrag:function(){function i(h,V){return C("custom_pressure",{pressure:V})}return i}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",textAlign:"center",disabled:f===l,width:2.2,onClick:function(){function i(){return C("max_pressure")}return i}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Filter",children:m.map(function(i){return(0,e.createComponentVNode)(2,t.Button,{selected:i.gas_type===d,content:i.label,onClick:function(){function h(){return C("set_filter",{filter:i.gas_type})}return h}()},i.label)})})]})})})})}return k}()},52977:function(I,r,n){"use strict";r.__esModule=!0,r.AtmosMixer=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.AtmosMixer=function(){function y(S,b){var C=(0,a.useBackend)(b),c=C.act,u=C.data,f=u.on,l=u.pressure,d=u.max_pressure,m=u.node1_concentration,i=u.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:f?"On":"Off",color:f?null:"red",selected:f,onClick:function(){function h(){return c("power")}return h}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Rate",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"fast-backward",textAlign:"center",disabled:l===0,width:2.2,onClick:function(){function h(){return c("min_pressure")}return h}()}),(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,unit:"kPa",width:6.1,lineHeight:1.5,step:10,minValue:0,maxValue:d,value:l,onDrag:function(){function h(V,v){return c("custom_pressure",{pressure:v})}return h}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",textAlign:"center",disabled:l===d,width:2.2,onClick:function(){function h(){return c("max_pressure")}return h}()})]}),(0,e.createComponentVNode)(2,k,{node_name:"Node 1",node_ref:m}),(0,e.createComponentVNode)(2,k,{node_name:"Node 2",node_ref:i})]})})})})}return y}(),k=function(S,b){var C=(0,a.useBackend)(b),c=C.act,u=C.data,f=S.node_name,l=S.node_ref;return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:f,children:[(0,e.createComponentVNode)(2,t.Button,{icon:"fast-backward",textAlign:"center",width:2.2,disabled:l===0,onClick:function(){function d(){return c("set_node",{node_name:f,concentration:(l-10)/100})}return d}()}),(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,unit:"%",width:6.1,lineHeight:1.5,stepPixelSize:10,minValue:0,maxValue:100,value:l,onChange:function(){function d(m,i){return c("set_node",{node_name:f,concentration:i/100})}return d}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",textAlign:"center",width:2.2,disabled:l===100,onClick:function(){function d(){return c("set_node",{node_name:f,concentration:(l+10)/100})}return d}()})]})}},11748:function(I,r,n){"use strict";r.__esModule=!0,r.AtmosPump=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.AtmosPump=function(){function k(y,S){var b=(0,a.useBackend)(S),C=b.act,c=b.data,u=c.on,f=c.rate,l=c.max_rate,d=c.gas_unit,m=c.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:u?"On":"Off",color:u?null:"red",selected:u,onClick:function(){function i(){return C("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:f===0,width:2.2,onClick:function(){function i(){return C("min_rate")}return i}()}),(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,unit:d,width:6.1,lineHeight:1.5,step:m,minValue:0,maxValue:l,value:f,onDrag:function(){function i(h,V){return C("custom_rate",{rate:V})}return i}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",textAlign:"center",disabled:f===l,width:2.2,onClick:function(){function i(){return C("max_rate")}return i}()})]})]})})})})}return k}()},76511:function(I,r,n){"use strict";r.__esModule=!0,r.AutoDoc=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=n(39473),k=r.AutoDoc=function(){function y(S,b){var C=(0,a.useBackend)(b),c=C.act,u=C.data,f=u.HasTray,l=u.TguiIcons,d=u.occupant,m=u.isHealing,i=u.fixtimer,h=u.healtimer,V=(0,a.useLocalState)(b,"ChoosePart","chest"),v=V[0],s=V[1];return(0,e.createComponentVNode)(2,o.Window,{theme:"ntOS95",resizable:!0,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Flex,{width:"100%",children:[(0,e.createComponentVNode)(2,p.FlexItem,{basis:"30%",children:[(0,e.createVNode)(1,"img",null,null,1,{height:"256px",width:"256px",src:"data:image/jpeg;base64,"+l.human,style:{position:"absolute","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createVNode)(1,"img",null,null,1,{height:"256px",width:"256px",src:"data:image/jpeg;base64,"+l[v],style:{position:"absolute","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}})]}),(0,e.createComponentVNode)(2,p.FlexItem,{basis:"70%",children:(0,e.createComponentVNode)(2,t.Section,{title:"Info",buttons:(0,e.createFragment)([Object.keys(l).map(function(g){return g!=="human"&&(0,e.createComponentVNode)(2,t.Button,{content:g,selected:g===v,onClick:function(){function N(){return s(g)}return N}(),z:!0},g)}),(0,e.createComponentVNode)(2,t.Button,{style:{"margin-left":"30px"},content:f?"Eject Tray":"Reject Tray",locked:m,onClick:function(){function g(){return c("ChangeTrayState")}return g}()})],0),children:(0,e.createComponentVNode)(2,t.Box,{children:[!!(d[v]&&d[v].extOrgan)&&d[v].extOrgan.map(function(g){return(0,e.createFragment)([(0,e.createVNode)(1,"b",null,g.name,0),(0,e.createVNode)(1,"br"),g.open?"opened":"",g.broken?"broken":"",!!g.broken&&(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{content:"Fix",style:{"margin-left":"30px"},locked:m,onClick:function(){function N(){return c("FixOrgan",{organ:g.name,type:"fracture"})}return N}()}),(0,e.createVNode)(1,"br")],4),g.internalBleeding?"bleeding":"",!!g.internalBleeding&&(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{content:"Fix",style:{"margin-left":"30px"},locked:m,onClick:function(){function N(){return c("FixOrgan",{organ:g.name,type:"bleeding"})}return N}()}),(0,e.createVNode)(1,"br")],4),(0,e.createTextVNode)("Internals:"),(0,e.createComponentVNode)(2,t.Button,{content:"Complete",style:{"margin-left":"10px"},locked:m,onClick:function(){function N(){return c("FixOrgan",{organ:g.name,type:"completeInternal"})}return N}()}),(0,e.createVNode)(1,"br"),g.dead?"dead":"",!!g.dead&&(0,e.createVNode)(1,"br"),g.germ_level?"Germ level is "+g.germ_level:"",!!g.germ_level&&(0,e.createVNode)(1,"br"),g.totalLoss?"Total damage is "+g.totalLoss:"",(0,e.createVNode)(1,"br")],0,g.name)}),!!(d[v]&&d[v].intOrgan)&&d[v].intOrgan.map(function(g){return(0,e.createFragment)([(0,e.createVNode)(1,"b",null,g.name,0),(0,e.createComponentVNode)(2,t.Button,{content:"Remove",style:{"margin-left":"1.5rem"},locked:m,onClick:function(){function N(){return c("FixOrgan",{organ:g.name,type:"remove"})}return N}()}),(0,e.createVNode)(1,"br"),g.dead?"dead":"",!!g.dead&&(0,e.createVNode)(1,"br"),g.germ_level?"Germ level is "+g.germ_level:"",!!g.germ_level&&(0,e.createVNode)(1,"br"),g.totalLoss?"Total damage is "+g.damage:"",!!g.totalLoss&&(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{content:"Heal",style:{"margin-left":"30px"},locked:m,onClick:function(){function N(){return c("FixOrgan",{organ:g.name,type:"damage"})}return N}()}),(0,e.createVNode)(1,"br")],4)],0,g.name)}),!!d.TotalBruteBurn&&(0,e.createFragment)([(0,e.createTextVNode)("Total external damage is "),d.TotalBruteBurn,(0,e.createComponentVNode)(2,t.Button,{style:{"margin-left":"30px"},content:"Start Healing",onClick:function(){function g(){return c("HealBruteBurn")}return g}()}),(0,e.createComponentVNode)(2,t.Button,{style:{"margin-left":"30px"},content:"Reattach externals",onClick:function(){function g(){return c("CompleteExternal")}return g}()})],0),(0,e.createVNode)(1,"br"),!!i&&(0,e.createVNode)(1,"b",null,[(0,e.createTextVNode)("Fixing organ: "),i],0),!!h&&(0,e.createVNode)(1,"b",null,[(0,e.createTextVNode)("Healing external damage: "),h],0)]})})})]})})})}return y}()},59179:function(I,r,n){"use strict";r.__esModule=!0,r.Autolathe=void 0;var e=n(89005),a=n(64795),t=n(88510),o=n(72253),p=n(36036),k=n(98595),y=n(25328),S=function(c,u,f,l){return c.requirements===null?!0:!(c.requirements.metal*l>u||c.requirements.glass*l>f)},b=r.Autolathe=function(){function C(c,u){var f=(0,o.useBackend)(u),l=f.act,d=f.data,m=d.total_amount,i=d.max_amount,h=d.metal_amount,V=d.glass_amount,v=d.busyname,s=d.busyamt,g=d.showhacked,N=d.buildQueue,x=d.buildQueueLen,B=d.recipes,L=d.categories,T=(0,o.useSharedState)(u,"category",0),A=T[0],E=T[1];A===0&&(A="Tools");var w=h.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1,"),O=V.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1,"),M=m.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1,"),P=(0,o.useSharedState)(u,"search_text",""),F=P[0],R=P[1],U=(0,y.createSearch)(F,function($){return $.name}),j="";x>0&&(j=N.map(function($,ne){return(0,e.createComponentVNode)(2,p.Box,{children:(0,e.createComponentVNode)(2,p.Button,{fluid:!0,icon:"times",color:"transparent",content:N[ne][0],onClick:function(){function Y(){return l("remove_from_queue",{remove_from_queue:N.indexOf($)+1})}return Y}()},$)},ne)}));var W=(0,a.flow)([(0,t.filter)(function($){return($.category.indexOf(A)>-1||F)&&(d.showhacked||!$.hacked)}),F&&(0,t.filter)(U),(0,t.sortBy)(function($){return $.name.toLowerCase()})])(B),K="Build";return F?K="Results for: '"+F+"':":A&&(K="Build ("+A+")"),(0,e.createComponentVNode)(2,k.Window,{width:750,height:525,children:(0,e.createComponentVNode)(2,k.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,p.Stack,{fill:!0,horizontal:!0,children:[(0,e.createComponentVNode)(2,p.Stack.Item,{width:"70%",children:(0,e.createComponentVNode)(2,p.Section,{fill:!0,scrollable:!0,title:K,buttons:(0,e.createComponentVNode)(2,p.Dropdown,{width:"150px",options:L,selected:A,onSelected:function(){function $(ne){return E(ne)}return $}()}),children:[(0,e.createComponentVNode)(2,p.Input,{fluid:!0,placeholder:"Search for...",onInput:function(){function $(ne,Y){return R(Y)}return $}(),mb:1}),W.map(function($){return(0,e.createComponentVNode)(2,p.Stack.Item,{grow:!0,children:[(0,e.createComponentVNode)(2,p.DmIcon,{icon:$.icon,icon_state:$.icon_state,style:{"vertical-align":"middle",width:"32px",margin:"0px","margin-left":"0px"}}),(0,e.createComponentVNode)(2,p.Button,{mr:1,icon:"hammer",selected:d.busyname===$.name&&d.busyamt===1,disabled:!S($,d.metal_amount,d.glass_amount,1),onClick:function(){function ne(){return l("make",{make:$.uid,multiplier:1})}return ne}(),children:(0,y.toTitleCase)($.name)}),$.max_multiplier>=10&&(0,e.createComponentVNode)(2,p.Button,{mr:1,icon:"hammer",selected:d.busyname===$.name&&d.busyamt===10,disabled:!S($,d.metal_amount,d.glass_amount,10),onClick:function(){function ne(){return l("make",{make:$.uid,multiplier:10})}return ne}(),children:"10x"}),$.max_multiplier>=25&&(0,e.createComponentVNode)(2,p.Button,{mr:1,icon:"hammer",selected:d.busyname===$.name&&d.busyamt===25,disabled:!S($,d.metal_amount,d.glass_amount,25),onClick:function(){function ne(){return l("make",{make:$.uid,multiplier:25})}return ne}(),children:"25x"}),$.max_multiplier>25&&(0,e.createComponentVNode)(2,p.Button,{mr:1,icon:"hammer",selected:d.busyname===$.name&&d.busyamt===$.max_multiplier,disabled:!S($,d.metal_amount,d.glass_amount,$.max_multiplier),onClick:function(){function ne(){return l("make",{make:$.uid,multiplier:$.max_multiplier})}return ne}(),children:[$.max_multiplier,"x"]}),$.requirements&&Object.keys($.requirements).map(function(ne){return(0,y.toTitleCase)(ne)+": "+$.requirements[ne]}).join(", ")||(0,e.createComponentVNode)(2,p.Box,{children:"No resources required."})]},$.ref)})]})}),(0,e.createComponentVNode)(2,p.Stack.Item,{width:"30%",children:[(0,e.createComponentVNode)(2,p.Section,{title:"Materials",children:(0,e.createComponentVNode)(2,p.LabeledList,{children:[(0,e.createComponentVNode)(2,p.LabeledList.Item,{label:"Metal",children:w}),(0,e.createComponentVNode)(2,p.LabeledList.Item,{label:"Glass",children:O}),(0,e.createComponentVNode)(2,p.LabeledList.Item,{label:"Total",children:M}),(0,e.createComponentVNode)(2,p.LabeledList.Item,{label:"Storage",children:[d.fill_percent,"% Full"]})]})}),(0,e.createComponentVNode)(2,p.Section,{title:"Building",children:(0,e.createComponentVNode)(2,p.Box,{color:v?"green":"",children:v||"Nothing"})}),(0,e.createComponentVNode)(2,p.Section,{title:"Build Queue",height:23.7,children:[j,(0,e.createComponentVNode)(2,p.Button,{mt:.5,fluid:!0,icon:"times",content:"Clear All",color:"red",disabled:!d.buildQueueLen,onClick:function(){function $(){return l("clear_queue")}return $}()})]})]})]})})})}return C}()},64273:function(I,r,n){"use strict";r.__esModule=!0,r.Biogenerator=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=n(62411),k=r.Biogenerator=function(){function C(c,u){var f=(0,a.useBackend)(u),l=f.data,d=f.config,m=l.container,i=l.processing,h=d.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,p.Operating,{operating:i,name:h}),(0,e.createComponentVNode)(2,y),(0,e.createComponentVNode)(2,S),(0,e.createComponentVNode)(2,b)]})})})}return C}(),y=function(c,u){var f=(0,a.useBackend)(u),l=f.act,d=f.data,m=d.biomass,i=d.container,h=d.container_curr_reagents,V=d.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:m}),(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:"}),i?(0,e.createComponentVNode)(2,t.ProgressBar,{value:h,maxValue:V,children:(0,e.createComponentVNode)(2,t.Box,{textAlign:"center",children:h+" / "+V+" units"})}):(0,e.createComponentVNode)(2,t.Stack.Item,{children:"None"})]})]})},S=function(c,u){var f=(0,a.useBackend)(u),l=f.act,d=f.data,m=d.has_plants,i=d.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:!m,tooltip:m?"":"There are no plants in the biogenerator.",tooltipPosition:"top-start",content:"Activate",onClick:function(){function h(){return l("activate")}return h}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:"40%",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"flask",disabled:!i,tooltip:i?"":"The biogenerator does not have a container.",tooltipPosition:"top",content:"Detach Container",onClick:function(){function h(){return l("detach_container")}return h}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:"30%",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"eject",disabled:!m,tooltip:m?"":"There are no stored plants to eject.",tooltipPosition:"top-end",content:"Eject Plants",onClick:function(){function h(){return l("eject_plants")}return h}()})})]})})},b=function(c,u){var f=(0,a.useBackend)(u),l=f.act,d=f.data,m=d.biomass,i=d.product_list,h=d.container,V=(0,a.useSharedState)(u,"vendAmount",1),v=V[0],s=V[1],g=Object.entries(i).map(function(N,x){var B=Object.entries(N[1]).map(function(L){return L[1]});return(0,e.createComponentVNode)(2,t.Collapsible,{title:N[0],open:!0,children:B.map(function(L){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:L.name}),(0,e.createComponentVNode)(2,t.Stack.Item,{textAlign:"right",width:"20%",children:[L.cost*v,(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:L.needs_container&&!h?(0,e.createComponentVNode)(2,t.Button,{content:"No container",disabled:!0,icon:"flask",tooltip:"\u0412\u0441\u0442\u0430\u0432\u044C\u0442\u0435 \u043B\u044E\u0431\u043E\u0439 \u043A\u043E\u043D\u0442\u0435\u0439\u043D\u0435\u0440 \u0434\u043B\u044F \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u043D\u0438\u044F \u044D\u0442\u043E\u0439 \u043E\u043F\u0446\u0438\u0438"}):(0,e.createComponentVNode)(2,t.Button,{content:"Vend",disabled:m0?Math.floor(A/l):0,M=f?"@?%%!\u2116@"+l:l,P=A>=l,F=d-d%5+(d%5>0?5:0);return(0,e.createComponentVNode)(2,t.Section,{title:"\u0418\u0441\u0441\u043B\u0435\u0434\u043E\u0432\u0430\u043D\u0438\u0435 \u0420\u0430\u0437\u043B\u043E\u043C\u0430",children:[(0,e.createComponentVNode)(2,t.Box,{color:"silver",bold:!0,children:B}),(0,e.createComponentVNode)(2,t.ProgressBar,{color:w===0?"bad":w<100?"average":"good",value:T,maxValue:L,mt:1,mb:2,children:[w<=100?w:100," %"]}),(0,e.createComponentVNode)(2,t.Box,{children:["\u0414\u0430\u043D\u043D\u044B\u0435 \u0434\u043B\u044F \u0437\u043E\u043D\u0434\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u044F: ",(0,e.createComponentVNode)(2,t.Box,{color:A?P?"good":"average":"bad",as:"span",children:Math.floor(A)}),(0,e.createComponentVNode)(2,t.Button,{icon:"atom",tooltip:"\u0414\u043B\u044F \u0433\u0435\u043D\u0435\u0440\u0430\u0446\u0438\u0438 \u043E\u0434\u043D\u043E\u0433\u043E \u0437\u043E\u043D\u0434\u0438\u0440\u0443\u044E\u0449\u0435\u0433\u043E \u0438\u043C\u043F\u0443\u043B\u044C\u0441\u0430 \u043D\u0443\u0436\u043D\u043E \u0441\u043E\u0431\u0440\u0430\u0442\u044C "+M+" \u0434\u0430\u043D\u043D\u044B\u0445.",content:d>0?"\u041F\u043E\u0434\u0433\u043E\u0442\u043E\u0432\u043A\u0430 "+F+" \u0441\u0435\u043A\u0443\u043D\u0434":"\u0417\u043E\u043D\u0434\u0438\u0440\u043E\u0432\u0430\u0442\u044C ("+O+")",disabled:!P||d>0,onClick:function(){function R(){return c("probe",{rift_id:x})}return R}(),mx:2}),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",content:E?"\u0420\u0435\u0437\u0443\u043B\u044C\u0442\u0430\u0442 \u043F\u043E\u043B\u0443\u0447\u0435\u043D":"\u041F\u043E\u043B\u0443\u0447\u0438\u0442\u044C \u0440\u0435\u0437\u0443\u043B\u044C\u0442\u0430\u0442 \u0438\u0441\u0441\u043B\u0435\u0434\u043E\u0432\u0430\u043D\u0438\u0439",disabled:E||w<100,onClick:function(){function R(){return c("reward",{rift_id:x})}return R}(),mt:1.4})]})]})}return g}(),v=function(){function g(N){var x=N.servName,B=N.servData;return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:x,children:B.length?B.map(function(L,T){return(0,e.createComponentVNode)(2,t.Box,{children:[L.riftName," \u2014 ",Math.floor(L.probePoints)," ","\u0434\u0430\u043D\u043D\u044B\u0445."]},T)}):(0,e.createComponentVNode)(2,t.Box,{children:"\u041D\u0435\u0442 \u0434\u0430\u043D\u043D\u044B\u0445"})})}return g}(),s=function(){function g(N){var x=N.scannerId,B=N.scannerName,L=N.scanStatus,T=N.canSwitch,A=N.switching,E=p[L],w=function(){function M(){if(E==="OFF")return[" ","silver"];if(E==="NO_RIFTS")return["\u041D\u0435\u0442 \u0440\u0430\u0437\u043B\u043E\u043C\u043E\u0432","silver"];if(E==="SOME_RIFTS")return["\u0421\u043A\u0430\u043D\u0438\u0440\u0443\u0435\u0442","good"];if(E==="DANGER")return["\u041E\u043F\u0430\u0441\u043D\u043E\u0441\u0442\u044C! \u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u0435 \u0441\u043A\u0430\u043D\u0435\u0440!","bad"]}return M}(),O=w();return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:B,py:0,children:[A?(0,e.createComponentVNode)(2,t.Icon,{name:"circle-notch",color:"silver",spin:!0,ml:1.85,mr:1.79,my:.84}):T?(0,e.createComponentVNode)(2,t.Button,{icon:"power-off",color:E==="OFF"?"bad":"good",onClick:function(){function M(){return c("toggle_scanner",{scanner_id:x})}return M}(),ml:1,mr:1}):(0,e.createComponentVNode)(2,t.Icon,{name:"power-off",color:E==="OFF"?"bad":"good",ml:1.85,mr:1.79,my:.84}),E!=="OFF"&&(0,e.createComponentVNode)(2,t.Box,{as:"span",color:O[1],children:O[0]})]})}return g}();return(0,e.createComponentVNode)(2,o.Window,{width:570,height:400,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[m&&m.map(function(g){return V(g)}),(0,e.createComponentVNode)(2,t.Section,{title:"\u0421\u043A\u0430\u043D\u0435\u0440\u044B \u0432 \u0441\u0435\u0442\u0438",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:h&&h.map(function(g){return s(g)})})}),(0,e.createComponentVNode)(2,t.Section,{title:"\u0421\u0435\u0440\u0432\u0435\u0440\u044B \u0432 \u0441\u0435\u0442\u0438",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:i&&i.map(function(g){return v(g)})})})]})})}return y}()},27629:function(I,r,n){"use strict";r.__esModule=!0,r.BluespaceTap=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=n(49968),k=r.BluespaceTap=function(){function y(S,b){var C=(0,a.useBackend)(b),c=C.act,u=C.data,f=u.product||[],l=u.desiredLevel,d=u.inputLevel,m=u.points,i=u.totalPoints,h=u.powerUse,V=u.availablePower,v=u.maxLevel,s=u.emagged,g=u.safeLevels,N=u.nextLevelPower,x=l>d&&"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:[!!s&&(0,e.createComponentVNode)(2,t.NoticeBox,{danger:1,children:"Safety Protocols disabled"}),d>g&&(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:d}),(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:l===0,tooltip:"Set to 0",onClick:function(){function B(){return c("set",{set_level:0})}return B}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"step-backward",tooltip:"Decrease to actual input level",disabled:l===0,onClick:function(){function B(){return c("set",{set_level:d})}return B}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"backward",disabled:l===0,tooltip:"Decrease one step",onClick:function(){function B(){return c("decrease")}return B}()})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:1,mx:1,children:(0,e.createComponentVNode)(2,t.Slider,{value:l,fillValue:d,minValue:0,color:x,maxValue:v,stepPixelSize:20,step:1,onChange:function(){function B(L,T){return c("set",{set_level:T})}return B}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"forward",disabled:l===v,tooltip:"Increase one step",tooltipPosition:"left",onClick:function(){function B(){return c("increase")}return B}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",disabled:l===v,tooltip:"Set to max",tooltipPosition:"left",onClick:function(){function B(){return c("set",{set_level:v})}return B}()})]})]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Current Power Use",children:(0,p.formatPower)(h)}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power for next level",children:(0,p.formatPower)(N)}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Surplus Power",children:(0,p.formatPower)(V)})]})})}),(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:m}),(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:f.map(function(B){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:B.name,children:(0,e.createComponentVNode)(2,t.Button,{disabled:B.price>=m,onClick:function(){function L(){return c("vend",{target:B.key})}return L}(),content:B.price})},B.key)})})})})]})})]})})})}return y}()},33758:function(I,r,n){"use strict";r.__esModule=!0,r.BodyScanner=void 0;var e=n(89005),a=n(44879),t=n(25328),o=n(72253),p=n(36036),k=n(98595),y=[["good","\u041D\u043E\u0440\u043C\u0430"],["average","\u041A\u0440\u0438\u0442\u0438\u0447\u0435\u0441\u043A\u043E\u0435 \u0441\u043E\u0441\u0442\u043E\u044F\u043D\u0438\u0435"],["bad","\u0417\u0430\u0444\u0438\u043A\u0441\u0438\u0440\u043E\u0432\u0430\u043D\u0430 \u0441\u043C\u0435\u0440\u0442\u044C"]],S=[["hasBorer","bad","\u0412 \u043B\u043E\u0431\u043D\u043E\u0439 \u0434\u043E\u043B\u0435 \u043E\u0431\u043D\u0430\u0440\u0443\u0436\u0435\u043D\u043E \u043A\u0440\u0443\u043F\u043D\u043E\u0435 \u043E\u0431\u0440\u0430\u0437\u043E\u0432\u0430\u043D\u0438\u0435, \u0432\u043E\u0437\u043C\u043E\u0436\u043D\u043E, \u0437\u043B\u043E\u043A\u0430\u0447\u0435\u0441\u0442\u0432\u0435\u043D\u043D\u043E\u0435. \u0420\u0435\u043A\u043E\u043C\u0435\u043D\u0434\u0443\u0435\u0442\u0441\u044F \u0445\u0438\u0440\u0443\u0440\u0433\u0438\u0447\u0435\u0441\u043A\u043E\u0435 \u0443\u0434\u0430\u043B\u0435\u043D\u0438\u0435."],["hasVirus","bad","\u041E\u0431\u043D\u0430\u0440\u0443\u0436\u0435\u043D \u0432\u0438\u0440\u0443\u0441 \u0432 \u043A\u0440\u043E\u0432\u043E\u0442\u043E\u043A\u0435 \u043F\u0430\u0446\u0438\u0435\u043D\u0442\u0430."],["blind","average","\u041E\u0431\u043D\u0430\u0440\u0443\u0436\u0435\u043D\u0430 \u043A\u0430\u0442\u0430\u0440\u0430\u043A\u0442\u0430."],["colourblind","average","\u041E\u0431\u043D\u0430\u0440\u0443\u0436\u0435\u043D\u044B \u043D\u0430\u0440\u0443\u0448\u0435\u043D\u0438\u044F \u0432 \u0440\u0430\u0431\u043E\u0442\u0435 \u0444\u043E\u0442\u043E\u0440\u0435\u0446\u0435\u043F\u0442\u043E\u0440\u043E\u0432"],["nearsighted","average","\u041E\u0431\u043D\u0430\u0440\u0443\u0436\u0435\u043D\u043E \u0441\u043C\u0435\u0449\u0435\u043D\u0438\u0435 \u0441\u0435\u0442\u0447\u0430\u0442\u043A\u0438."]],b=[["\u0423\u0434\u0443\u0448\u0435\u043D\u0438\u0435","oxyLoss"],["\u041F\u043E\u0432\u0440\u0435\u0436\u0434\u0435\u043D\u0438\u0435 \u043C\u043E\u0437\u0433\u0430","brainLoss"],["\u0422\u043E\u043A\u0441\u0438\u043D\u044B","toxLoss"],["\u0420\u0430\u0434\u0438\u0430\u0446\u0438\u043E\u043D\u043D\u043E\u0435 \u043F\u043E\u0440\u0430\u0436\u0435\u043D\u0438\u0435","radLoss"],["\u0424\u0438\u0437\u0438\u0447\u0435\u0441\u043A\u0438\u0435 \u043F\u043E\u0432\u0440\u0435\u0436\u0434\u0435\u043D\u0438\u044F","bruteLoss"],["\u0413\u0435\u043D\u0435\u0442\u0438\u0447\u0435\u0441\u043A\u0438\u0435 \u043F\u043E\u0432\u0440\u0435\u0436\u0434\u0435\u043D\u0438\u044F","cloneLoss"],["\u041E\u0436\u043E\u0433\u0438","fireLoss"],["\u041F\u0430\u0440\u0430\u043B\u0438\u0447 \u0442\u0435\u043B\u0430","paralysis"]],C={average:[.25,.5],bad:[.5,1/0]},c=function(x,B){for(var L=[],T=0;T0?x.filter(function(B){return!!B}).reduce(function(B,L){return(0,e.createFragment)([B,(0,e.createComponentVNode)(2,p.Box,{children:L},L)],0)},null):null},f=function(x){if(x>100){if(x<300)return"\u041B\u0451\u0433\u043A\u0430\u044F \u0438\u043D\u0444\u0435\u043A\u0446\u0438\u044F";if(x<400)return"\u041B\u0451\u0433\u043A\u0430\u044F \u0438\u043D\u0444\u0435\u043A\u0446\u0438\u044F+";if(x<500)return"\u041B\u0451\u0433\u043A\u0430\u044F \u0438\u043D\u0444\u0435\u043A\u0446\u0438\u044F++";if(x<700)return"\u041E\u0441\u0442\u0440\u0430\u044F \u0438\u043D\u0444\u0435\u043A\u0446\u0438\u044F";if(x<800)return"\u041E\u0441\u0442\u0440\u0430\u044F \u0438\u043D\u0444\u0435\u043A\u0446\u0438\u044F+";if(x<900)return"\u041E\u0441\u0442\u0440\u0430\u044F \u0438\u043D\u0444\u0435\u043A\u0446\u0438\u044F++";if(x>=900)return"\u0421\u0435\u043F\u0441\u0438\u0441"}return""},l=r.BodyScanner=function(){function N(x,B){var L=(0,o.useBackend)(B),T=L.data,A=T.occupied,E=T.occupant,w=E===void 0?{}:E,O=A?(0,e.createComponentVNode)(2,d,{occupant:w}):(0,e.createComponentVNode)(2,g);return(0,e.createComponentVNode)(2,k.Window,{width:700,height:600,title:"\u041C\u0435\u0434\u0438\u0446\u0438\u043D\u0441\u043A\u0438\u0439 \u0441\u043A\u0430\u043D\u0435\u0440",children:(0,e.createComponentVNode)(2,k.Window.Content,{scrollable:!0,children:O})})}return N}(),d=function(x){var B=x.occupant;return(0,e.createComponentVNode)(2,p.Box,{children:[(0,e.createComponentVNode)(2,m,{occupant:B}),(0,e.createComponentVNode)(2,i,{occupant:B}),(0,e.createComponentVNode)(2,h,{occupant:B}),(0,e.createComponentVNode)(2,v,{organs:B.extOrgan}),(0,e.createComponentVNode)(2,s,{organs:B.intOrgan})]})},m=function(x,B){var L=(0,o.useBackend)(B),T=L.act,A=L.data,E=A.occupant;return(0,e.createComponentVNode)(2,p.Section,{title:"\u041F\u0430\u0446\u0438\u0435\u043D\u0442",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,p.Button,{icon:"print",onClick:function(){function w(){return T("print_p")}return w}(),children:"\u0420\u0430\u0441\u043F\u0435\u0447\u0430\u0442\u0430\u0442\u044C \u043E\u0442\u0447\u0451\u0442"}),(0,e.createComponentVNode)(2,p.Button,{icon:"print",onClick:function(){function w(){return T("insurance")}return w}(),children:"\u0421\u043F\u0438\u0441\u0430\u0442\u044C \u0441\u0442\u0440\u0430\u0445\u043E\u0432\u043A\u0443"}),(0,e.createComponentVNode)(2,p.Button,{icon:"user-slash",onClick:function(){function w(){return T("eject_id")}return w}(),children:"\u0418\u0437\u0432\u043B\u0435\u0447\u044C \u043A\u0430\u0440\u0442\u0443"}),(0,e.createComponentVNode)(2,p.Button,{icon:"user-slash",onClick:function(){function w(){return T("ejectify")}return w}(),children:"\u0418\u0437\u0432\u043B\u0435\u0447\u044C \u043F\u0430\u0446\u0438\u0435\u043D\u0442\u0430"})],4),children:(0,e.createComponentVNode)(2,p.LabeledList,{children:[(0,e.createComponentVNode)(2,p.LabeledList.Item,{label:"\u0418\u043C\u044F",children:E.name}),(0,e.createComponentVNode)(2,p.LabeledList.Item,{label:"\u041E\u0446\u0435\u043D\u043A\u0430 \u0437\u0434\u043E\u0440\u043E\u0432\u044C\u044F",children:(0,e.createComponentVNode)(2,p.ProgressBar,{min:"0",max:E.maxHealth,value:E.health/E.maxHealth,ranges:{good:[.5,1/0],average:[0,.5],bad:[-1/0,0]}})}),(0,e.createComponentVNode)(2,p.LabeledList.Item,{label:"\u0421\u043E\u0441\u0442\u043E\u044F\u043D\u0438\u0435",color:y[E.stat][0],children:y[E.stat][1]}),(0,e.createComponentVNode)(2,p.LabeledList.Item,{label:"\u0422\u0435\u043C\u043F\u0435\u0440\u0430\u0442\u0443\u0440\u0430 \u0442\u0435\u043B\u0430",children:[(0,e.createComponentVNode)(2,p.AnimatedNumber,{value:(0,a.round)(E.bodyTempC)}),"\xB0C,\xA0",(0,e.createComponentVNode)(2,p.AnimatedNumber,{value:(0,a.round)(E.bodyTempF)}),"\xB0F"]}),(0,e.createComponentVNode)(2,p.LabeledList.Item,{label:"\u0418\u043C\u043F\u043B\u0430\u043D\u0442\u044B",children:E.implant_len?(0,e.createComponentVNode)(2,p.Box,{children:E.implant.map(function(w){return w.name}).join(", ")}):(0,e.createComponentVNode)(2,p.Box,{color:"label",children:"\u041E\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u044E\u0442"})})]})})},i=function(x){var B=x.occupant;return B.hasBorer||B.blind||B.colourblind||B.nearsighted||B.hasVirus?(0,e.createComponentVNode)(2,p.Section,{title:"\u041E\u0442\u043A\u043B\u043E\u043D\u0435\u043D\u0438\u044F",children:S.map(function(L,T){if(B[L[0]])return(0,e.createComponentVNode)(2,p.Box,{color:L[1],bold:L[1]==="bad",children:L[2]},L[2])})}):(0,e.createComponentVNode)(2,p.Section,{title:"\u041E\u0442\u043A\u043B\u043E\u043D\u0435\u043D\u0438\u044F",children:(0,e.createComponentVNode)(2,p.Box,{color:"label",children:"\u041D\u0438\u043A\u0430\u043A\u0438\u0445 \u043E\u0442\u043A\u043B\u043E\u043D\u0435\u043D\u0438\u0439 \u043E\u0442 \u043D\u043E\u0440\u043C\u044B \u043D\u0435 \u043E\u0431\u043D\u0430\u0440\u0443\u0436\u0435\u043D\u043E."})})},h=function(x){var B=x.occupant;return(0,e.createComponentVNode)(2,p.Section,{title:"\u041E\u0431\u0449\u0438\u0439 \u0443\u0440\u043E\u043D",children:(0,e.createComponentVNode)(2,p.Table,{children:c(b,function(L,T,A){return(0,e.createFragment)([(0,e.createComponentVNode)(2,p.Table.Row,{color:"label",children:[(0,e.createComponentVNode)(2,p.Table.Cell,{children:[L[0],":"]}),(0,e.createComponentVNode)(2,p.Table.Cell,{children:!!T&&T[0]+":"})]}),(0,e.createComponentVNode)(2,p.Table.Row,{children:[(0,e.createComponentVNode)(2,p.Table.Cell,{children:(0,e.createComponentVNode)(2,V,{value:B[L[1]],marginBottom:A100)&&"average"||!!B.status.robotic&&"label",width:"33%",children:(0,t.capitalize)(B.name)}),(0,e.createComponentVNode)(2,p.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,p.ProgressBar,{m:-.5,min:"0",max:B.maxHealth,mt:L>0&&"0.5rem",value:B.totalLoss/B.maxHealth,ranges:C,children:(0,e.createComponentVNode)(2,p.Stack,{children:[(0,e.createComponentVNode)(2,p.Tooltip,{content:"\u041E\u0431\u0449\u0438\u0439 \u0443\u0440\u043E\u043D",children:(0,e.createComponentVNode)(2,p.Stack.Item,{children:[(0,e.createComponentVNode)(2,p.Icon,{name:"heartbeat",mr:.5}),(0,a.round)(B.totalLoss)]})}),!!B.bruteLoss&&(0,e.createComponentVNode)(2,p.Tooltip,{content:"\u0424\u0438\u0437\u0438\u0447\u0435\u0441\u043A\u0438\u0435 \u043F\u043E\u0432\u0440\u0435\u0436\u0434\u0435\u043D\u0438\u044F",children:(0,e.createComponentVNode)(2,p.Stack.Item,{grow:!0,children:[(0,e.createComponentVNode)(2,p.Icon,{name:"bone",mr:.5}),(0,a.round)(B.bruteLoss)]})}),!!B.fireLoss&&(0,e.createComponentVNode)(2,p.Tooltip,{content:"\u041E\u0436\u043E\u0433\u0438",children:(0,e.createComponentVNode)(2,p.Stack.Item,{children:[(0,e.createComponentVNode)(2,p.Icon,{name:"fire",mr:.5}),(0,a.round)(B.fireLoss)]})})]})})}),(0,e.createComponentVNode)(2,p.Table.Cell,{textAlign:"right",verticalAlign:"top",width:"33%",pt:L>0&&"calc(0.5rem + 2px)",children:[(0,e.createComponentVNode)(2,p.Box,{color:"average",inline:!0,children:u([!!B.internalBleeding&&"\u0412\u043D\u0443\u0442\u0440\u0435\u043D\u043D\u0435\u0435 \u043A\u0440\u043E\u0432\u043E\u0442\u0435\u0447\u0435\u043D\u0438\u0435",!!B.burnWound&&"\u041A\u0440\u0438\u0442\u0438\u0447\u0435\u0441\u043A\u0438\u0435 \u043E\u0436\u043E\u0433\u0438 \u0442\u043A\u0430\u043D\u0435\u0439",!!B.lungRuptured&&"\u041F\u0440\u043E\u0431\u0438\u0442\u043E \u043B\u0451\u0433\u043A\u043E\u0435",!!B.status.broken&&B.status.broken,f(B.germ_level),!!B.open&&"\u041E\u0442\u043A\u0440\u044B\u0442\u044B\u0439 \u0440\u0430\u0437\u0440\u0435\u0437"])}),(0,e.createComponentVNode)(2,p.Box,{inline:!0,children:[u([!!B.status.splinted&&(0,e.createComponentVNode)(2,p.Box,{color:"good",children:"\u041D\u0430\u043B\u043E\u0436\u0435\u043D\u0430 \u0448\u0438\u043D\u0430"}),!!B.status.robotic&&(0,e.createComponentVNode)(2,p.Box,{color:"label",children:"\u0421\u0438\u043D\u0442\u0435\u0442\u0438\u0447\u0435\u0441\u043A\u043E\u0435"}),!!B.status.dead&&(0,e.createComponentVNode)(2,p.Box,{color:"bad",bold:!0,children:"\u041C\u0435\u0440\u0442\u0432\u043E"})]),u(B.shrapnel.map(function(T){return T.known?T.name:"\u0418\u043D\u043E\u0440\u043E\u0434\u043D\u043E\u0435 \u0442\u0435\u043B\u043E"}))]})]})]},L)})]})})},s=function(x){return x.organs.length===0?(0,e.createComponentVNode)(2,p.Section,{title:"\u0412\u043D\u0443\u0442\u0440\u0435\u043D\u043D\u0438\u0435 \u043E\u0440\u0433\u0430\u043D\u044B",children:(0,e.createComponentVNode)(2,p.Box,{color:"label",children:"\u041D/\u0414"})}):(0,e.createComponentVNode)(2,p.Section,{title:"\u0412\u043D\u0443\u0442\u0440\u0435\u043D\u043D\u0438\u0435 \u043E\u0440\u0433\u0430\u043D\u044B",children:(0,e.createComponentVNode)(2,p.Table,{children:[(0,e.createComponentVNode)(2,p.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,p.Table.Cell,{children:"\u041D\u0430\u0437\u0432\u0430\u043D\u0438\u0435"}),(0,e.createComponentVNode)(2,p.Table.Cell,{textAlign:"center",children:"\u041E\u0431\u0449\u0438\u0439 \u0443\u0440\u043E\u043D"}),(0,e.createComponentVNode)(2,p.Table.Cell,{textAlign:"right",children:"\u0422\u0440\u0430\u0432\u043C\u044B"})]}),x.organs.map(function(B,L){return(0,e.createComponentVNode)(2,p.Table.Row,{children:[(0,e.createComponentVNode)(2,p.Table.Cell,{color:!!B.dead&&"bad"||B.germ_level>100&&"average"||B.robotic>0&&"label",width:"33%",children:(0,t.capitalize)(B.name)}),(0,e.createComponentVNode)(2,p.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,p.ProgressBar,{min:"0",max:B.maxHealth,value:B.damage/B.maxHealth,mt:L>0&&"0.5rem",ranges:C,children:(0,a.round)(B.damage)})}),(0,e.createComponentVNode)(2,p.Table.Cell,{textAlign:"right",verticalAlign:"top",width:"33%",pt:L>0&&"calc(0.5rem + 2px)",children:[(0,e.createComponentVNode)(2,p.Box,{color:"average",inline:!0,children:u([f(B.germ_level)])}),(0,e.createComponentVNode)(2,p.Box,{inline:!0,children:u([B.robotic===1&&(0,e.createComponentVNode)(2,p.Box,{color:"label",children:"\u0421\u0438\u043D\u0442\u0435\u0442\u0438\u0447\u0435\u0441\u043A\u043E\u0435"}),B.robotic===2&&(0,e.createComponentVNode)(2,p.Box,{color:"label",children:"\u0421\u0438\u043D\u0442\u0435\u0442\u0438\u0447\u0435\u0441\u043A\u043E\u0435"}),!!B.dead&&(0,e.createComponentVNode)(2,p.Box,{color:"bad",bold:!0,children:"\u041C\u0435\u0440\u0442\u0432\u043E"})])})]})]},L)})]})})},g=function(){return(0,e.createComponentVNode)(2,p.Section,{fill:!0,children:(0,e.createComponentVNode)(2,p.Stack,{fill:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,p.Stack.Item,{grow:!0,align:"center",color:"label",children:[(0,e.createComponentVNode)(2,p.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,e.createVNode)(1,"br"),"\u041F\u0430\u0446\u0438\u0435\u043D\u0442 \u0432\u043D\u0443\u0442\u0440\u0438 \u043D\u0435 \u043E\u0431\u043D\u0430\u0440\u0443\u0436\u0435\u043D."]})})})}},42570:function(I,r,n){"use strict";r.__esModule=!0,r.BorgPanel=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.BorgPanel=function(){function k(y,S){var b=(0,a.useBackend)(S),C=b.act,c=b.data,u=c.borg||{},f=c.cell||{},l=f.charge/f.maxcharge,d=c.channels||[],m=c.modules||[],i=c.upgrades||[],h=c.ais||[],V=c.laws||[];return(0,e.createComponentVNode)(2,o.Window,{title:"Borg Panel",width:700,height:700,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,t.Section,{title:u.name,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"pencil-alt",content:"Rename",onClick:function(){function v(){return C("rename")}return v}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:[(0,e.createComponentVNode)(2,t.Button,{icon:u.emagged?"check-square-o":"square-o",content:"Emagged",selected:u.emagged,onClick:function(){function v(){return C("toggle_emagged")}return v}()}),(0,e.createComponentVNode)(2,t.Button,{icon:u.lockdown?"check-square-o":"square-o",content:"Locked Down",selected:u.lockdown,onClick:function(){function v(){return C("toggle_lockdown")}return v}()}),(0,e.createComponentVNode)(2,t.Button,{icon:u.scrambledcodes?"check-square-o":"square-o",content:"Scrambled Codes",selected:u.scrambledcodes,onClick:function(){function v(){return C("toggle_scrambledcodes")}return v}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Reset Module",onClick:function(){function v(){return C("reset_module")}return v}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Charge",children:[f.missing?(0,e.createVNode)(1,"span","color-bad","No cell installed",16):(0,e.createComponentVNode)(2,t.ProgressBar,{value:l,children:f.charge+" / "+f.maxcharge}),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Button,{icon:"pencil-alt",content:"Set",onClick:function(){function v(){return C("set_charge")}return v}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"eject",content:"Change",onClick:function(){function v(){return C("change_cell")}return v}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"trash",content:"Remove",color:"bad",onClick:function(){function v(){return C("remove_cell")}return v}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Radio Channels",children:d.map(function(v){return(0,e.createComponentVNode)(2,t.Button,{icon:v.installed?"check-square-o":"square-o",content:v.name,selected:v.installed,onClick:function(){function s(){return C("toggle_radio",{channel:v.name})}return s}()},v.name)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Model",children:m.map(function(v){return(0,e.createComponentVNode)(2,t.Button,{icon:u.active_module===v.name?"check-square-o":"square-o",content:v.name+" module",selected:u.active_module===v.name,onClick:function(){function s(){return C("setmodule",{module:v.name})}return s}()},v.type)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Upgrades",children:i.map(function(v){return(0,e.createComponentVNode)(2,t.Button,{icon:v.installed?"check-square-o":"square-o",content:v.name,selected:v.installed,onClick:function(){function s(){return C("toggle_upgrade",{upgrade:v.type})}return s}()},v.type)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Master AI",children:h.map(function(v){return(0,e.createComponentVNode)(2,t.Button,{icon:v.connected?"check-square-o":"square-o",content:v.name,selected:v.connected,onClick:function(){function s(){return C("slavetoai",{slavetoai:v.ref})}return s}()},v.ref)})})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Laws",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{content:"Law Manager",selected:u.lawmanager,onClick:function(){function v(){return C("lawmanager")}return v}()}),(0,e.createComponentVNode)(2,t.Button,{icon:u.lawupdate?"check-square-o":"square-o",content:"Lawsync",selected:u.lawupdate,onClick:function(){function v(){return C("toggle_lawupdate")}return v}()})],4),children:V.map(function(v){return(0,e.createComponentVNode)(2,t.Box,{children:v},v)})})]})})}return k}()},20464:function(I,r,n){"use strict";r.__esModule=!0,r.BotClean=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.BotClean=function(){function k(y,S){var b=(0,a.useBackend)(S),C=b.act,c=b.data,u=c.locked,f=c.noaccess,l=c.maintpanel,d=c.on,m=c.autopatrol,i=c.canhack,h=c.emagged,V=c.remote_disabled,v=c.painame,s=c.cleanblood;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.NoticeBox,{children:["\u041F\u0440\u043E\u0432\u0435\u0434\u0438\u0442\u0435 \u0441\u0432\u043E\u0435\u0439 ID-\u043A\u0430\u0440\u0442\u043E\u0439, \u0447\u0442\u043E\u0431\u044B",u?"\u0440\u0430\u0437\u0431\u043B\u043E\u043A\u0438\u0440\u043E\u0432\u0430\u0442\u044C":"\u0437\u0430\u0431\u043B\u043E\u043A\u0438\u0440\u043E\u0432\u0430\u0442\u044C"," \u044D\u0442\u043E\u0442 \u0438\u043D\u0442\u0435\u0440\u0444\u0435\u0439\u0441."]}),(0,e.createComponentVNode)(2,t.Section,{title:"\u041E\u0441\u043D\u043E\u0432\u043D\u044B\u0435 \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0421\u043E\u0441\u0442\u043E\u044F\u043D\u0438\u0435",children:(0,e.createComponentVNode)(2,t.Button,{icon:d?"power-off":"times",content:d?"\u0412\u043A\u043B\u044E\u0447\u0451\u043D":"\u0412\u044B\u043A\u043B\u044E\u0447\u0435\u043D",selected:d,disabled:f,onClick:function(){function g(){return C("power")}return g}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0420\u0435\u0436\u0438\u043C \u043F\u0430\u0442\u0440\u0443\u043B\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u044F",children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:m,content:"\u0410\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u043E\u0435 \u043F\u0430\u0442\u0440\u0443\u043B\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u0435",disabled:f,onClick:function(){function g(){return C("autopatrol")}return g}()})}),!!l&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u041F\u0430\u043D\u0435\u043B\u044C \u0442\u0435\u0445\u043E\u0431\u0441\u043B\u0443\u0436\u0438\u0432\u0430\u043D\u0438\u044F",children:(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:"\u041F\u0430\u043D\u0435\u043B\u044C \u043E\u0442\u043A\u0440\u044B\u0442\u0430"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u041F\u0440\u043E\u0442\u043E\u043A\u043E\u043B\u044B \u0431\u0435\u0437\u043E\u043F\u0430\u0441\u043D\u043E\u0441\u0442\u0438",children:(0,e.createComponentVNode)(2,t.Box,{color:h?"bad":"good",children:h?"\u041E\u0442\u043A\u043B\u044E\u0447\u0435\u043D\u044B":"\u0412\u043A\u043B\u044E\u0447\u0435\u043D\u044B"})}),!!i&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0412\u0437\u043B\u043E\u043C",children:(0,e.createComponentVNode)(2,t.Button,{icon:"terminal",content:h?"\u0412\u043E\u0441\u0441\u0442\u0430\u043D\u043E\u0432\u0438\u0442\u044C \u043F\u0440\u043E\u0442\u043E\u043A\u043E\u043B\u044B \u0431\u0435\u0437\u043E\u043F\u0430\u0441\u043D\u043E\u0441\u0442\u0438":"\u0412\u0437\u043B\u043E\u043C\u0430\u0442\u044C",disabled:f,color:"bad",onClick:function(){function g(){return C("hack")}return g}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0423\u0434\u0430\u043B\u0451\u043D\u043D\u044B\u0439 \u0434\u043E\u0441\u0442\u0443\u043F",children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:!V,content:"\u0423\u0434\u0430\u043B\u0451\u043D\u043D\u044B\u0439 \u0434\u043E\u0441\u0442\u0443\u043F \u0441\u043E \u0441\u0442\u043E\u0440\u043E\u043D\u044B \u0418\u0418",disabled:f,onClick:function(){function g(){return C("disableremote")}return g}()})})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"\u041D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438 \u043F\u0440\u043E\u0446\u0435\u0441\u0441\u0430 \u0443\u0431\u043E\u0440\u043A\u0438",children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:s,content:"\u0423\u0431\u0438\u0440\u0430\u0442\u044C \u043A\u0440\u043E\u0432\u044C",disabled:f,onClick:function(){function g(){return C("blood")}return g}()})}),v&&(0,e.createComponentVNode)(2,t.Section,{title:"\u041F\u0418\u0418",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"eject",content:v,disabled:f,onClick:function(){function g(){return C("ejectpai")}return g}()})})]})})}return k}()},74439:function(I,r,n){"use strict";r.__esModule=!0,r.BotSecurity=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.BotSecurity=function(){function k(y,S){var b=(0,a.useBackend)(S),C=b.act,c=b.data,u=c.locked,f=c.noaccess,l=c.maintpanel,d=c.on,m=c.autopatrol,i=c.canhack,h=c.emagged,V=c.remote_disabled,v=c.painame,s=c.check_id,g=c.check_weapons,N=c.check_warrant,x=c.arrest_mode,B=c.arrest_declare;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.NoticeBox,{children:["\u041F\u0440\u043E\u0432\u0435\u0434\u0438\u0442\u0435 \u0441\u0432\u043E\u0435\u0439 ID-\u043A\u0430\u0440\u0442\u043E\u0439, \u0447\u0442\u043E\u0431\u044B",u?"\u0440\u0430\u0437\u0431\u043B\u043E\u043A\u0438\u0440\u043E\u0432\u0430\u0442\u044C":"\u0437\u0430\u0431\u043B\u043E\u043A\u0438\u0440\u043E\u0432\u0430\u0442\u044C"," \u044D\u0442\u043E\u0442 \u0438\u043D\u0442\u0435\u0440\u0444\u0435\u0439\u0441."]}),(0,e.createComponentVNode)(2,t.Section,{title:"\u041E\u0441\u043D\u043E\u0432\u043D\u044B\u0435 \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0421\u043E\u0441\u0442\u043E\u044F\u043D\u0438\u0435",children:(0,e.createComponentVNode)(2,t.Button,{icon:d?"power-off":"times",content:d?"\u0412\u043A\u043B\u044E\u0447\u0451\u043D":"\u0412\u044B\u043A\u043B\u044E\u0447\u0435\u043D",selected:d,disabled:f,onClick:function(){function L(){return C("power")}return L}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0420\u0435\u0436\u0438\u043C \u043F\u0430\u0442\u0440\u0443\u043B\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u044F",children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:m,content:"\u0410\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u043E\u0435 \u043F\u0430\u0442\u0440\u0443\u043B\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u0435",disabled:f,onClick:function(){function L(){return C("autopatrol")}return L}()})}),!!l&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u041F\u0430\u043D\u0435\u043B\u044C \u0442\u0435\u0445\u043E\u0431\u0441\u043B\u0443\u0436\u0438\u0432\u0430\u043D\u0438\u044F",children:(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:"\u041F\u0430\u043D\u0435\u043B\u044C \u043E\u0442\u043A\u0440\u044B\u0442\u0430"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u041F\u0440\u043E\u0442\u043E\u043A\u043E\u043B\u044B \u0431\u0435\u0437\u043E\u043F\u0430\u0441\u043D\u043E\u0441\u0442\u0438",children:(0,e.createComponentVNode)(2,t.Box,{color:h?"bad":"good",children:h?"\u041E\u0442\u043A\u043B\u044E\u0447\u0435\u043D\u044B":"\u0412\u043A\u043B\u044E\u0447\u0435\u043D\u044B"})}),!!i&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0412\u0437\u043B\u043E\u043C",children:(0,e.createComponentVNode)(2,t.Button,{icon:"terminal",content:h?"\u0412\u043E\u0441\u0441\u0442\u0430\u043D\u043E\u0432\u0438\u0442\u044C \u043F\u0440\u043E\u0442\u043E\u043A\u043E\u043B\u044B \u0431\u0435\u0437\u043E\u043F\u0430\u0441\u043D\u043E\u0441\u0442\u0438":"\u0412\u0437\u043B\u043E\u043C\u0430\u0442\u044C",disabled:f,color:"bad",onClick:function(){function L(){return C("hack")}return L}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0423\u0434\u0430\u043B\u0451\u043D\u043D\u044B\u0439 \u0434\u043E\u0441\u0442\u0443\u043F",children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:!V,content:"\u0423\u0434\u0430\u043B\u0451\u043D\u043D\u044B\u0439 \u0434\u043E\u0441\u0442\u0443\u043F \u0441\u043E \u0441\u0442\u043E\u0440\u043E\u043D\u044B \u0418\u0418",disabled:f,onClick:function(){function L(){return C("disableremote")}return L}()})})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"\u0417\u0430\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u043C\u044B\u0435 \u0446\u0435\u043B\u0438",children:[(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:s,content:"\u041D\u0435\u043E\u043F\u043E\u0437\u043D\u0430\u043D\u043D\u044B\u0435 \u043B\u0438\u0447\u043D\u043E\u0441\u0442\u0438",disabled:f,onClick:function(){function L(){return C("authid")}return L}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:g,content:"\u0418\u043C\u0435\u044E\u0449\u0438\u0435 \u043D\u0435\u0430\u0432\u0442\u043E\u0440\u0438\u0437\u0438\u0440\u043E\u0432\u0430\u043D\u043D\u043E\u0435 \u043E\u0440\u0443\u0436\u0438\u0435",disabled:f,onClick:function(){function L(){return C("authweapon")}return L}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:N,content:"\u0420\u0430\u0437\u044B\u0441\u043A\u0438\u0432\u0430\u0435\u043C\u044B\u0435 \u043F\u0440\u0435\u0441\u0442\u0443\u043F\u043D\u0438\u043A\u0438",disabled:f,onClick:function(){function L(){return C("authwarrant")}return L}()})]}),(0,e.createComponentVNode)(2,t.Section,{title:"\u041F\u0440\u043E\u0446\u0435\u0434\u0443\u0440\u0430 \u0437\u0430\u0434\u0435\u0440\u0436\u0430\u043D\u0438\u044F",children:[(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:x,content:"\u0411\u0435\u0441\u0441\u0440\u043E\u0447\u043D\u043E\u0435 \u043E\u0433\u043B\u0443\u0448\u0435\u043D\u0438\u0435 \u0446\u0435\u043B\u0435\u0439 \u0432\u043C\u0435\u0441\u0442\u043E \u0437\u0430\u0434\u0435\u0440\u0436\u0430\u043D\u0438\u044F",disabled:f,onClick:function(){function L(){return C("arrtype")}return L}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:B,content:"\u0421\u043E\u043E\u0431\u0449\u0430\u0442\u044C \u043E \u0437\u0430\u0434\u0435\u0440\u0436\u0430\u043D\u0438\u0438 \u043F\u043E \u0440\u0430\u0434\u0438\u043E\u0441\u0432\u044F\u0437\u0438",disabled:f,onClick:function(){function L(){return C("arrdeclare")}return L}()})]}),v&&(0,e.createComponentVNode)(2,t.Section,{title:"\u041F\u0418\u0418",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"eject",content:v,disabled:f,onClick:function(){function L(){return C("ejectpai")}return L}()})})]})})}return k}()},10833:function(I,r,n){"use strict";r.__esModule=!0,r.BrigCells=void 0;var e=n(89005),a=n(98595),t=n(36036),o=n(72253),p=function(b,C){var c=b.cell,u=(0,o.useBackend)(C),f=u.act,l=c.cell_id,d=c.occupant,m=c.crimes,i=c.brigged_by,h=c.time_left_seconds,V=c.time_set_seconds,v=c.ref,s="";h>0&&(s+=" BrigCells__listRow--active");var g=function(){f("release",{ref:v})};return(0,e.createComponentVNode)(2,t.Table.Row,{className:s,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:l}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:d}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:m}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:i}),(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.TimeDisplay,{totalSeconds:h})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{type:"button",onClick:g,children:"Release"})})]})},k=function(b){var C=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"})]}),C.map(function(c){return(0,e.createComponentVNode)(2,p,{cell:c},c.ref)})]})},y=r.BrigCells=function(){function S(b,C){var c=(0,o.useBackend)(C),u=c.act,f=c.data,l=f.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,k,{cells:l})})})})})}return S}()},45761:function(I,r,n){"use strict";r.__esModule=!0,r.BrigTimer=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.BrigTimer=function(){function k(y,S){var b=(0,a.useBackend)(S),C=b.act,c=b.data;c.nameText=c.occupant,c.timing&&(c.prisoner_hasrec?c.nameText=(0,e.createComponentVNode)(2,t.Box,{color:"green",children:c.occupant}):c.nameText=(0,e.createComponentVNode)(2,t.Box,{color:"red",children:c.occupant}));var u="pencil-alt";c.prisoner_name&&(c.prisoner_hasrec||(u="exclamation-triangle"));var f=[],l=0;for(l=0;l60||!c.isAllowed,onClick:function(){function d(){return C("start")}return d}()})})]})})]})})}return k}()},26300:function(I,r,n){"use strict";r.__esModule=!0,r.CameraConsoleOldContent=r.CameraConsoleMapContent=r.CameraConsoleListContent=r.CameraConsole=void 0;var e=n(89005),a=n(88510),t=n(64795),o=n(35840),p=n(25328),k=n(72253),y=n(36036),S=n(98595);String.prototype.trimLongStr=function(d){return this.length>d?this.substring(0,d)+"...":this};var b=function(m,i){var h,V;if(!i)return[];var v=m.findIndex(function(s){return s.name===i.name});return[(h=m[v-1])==null?void 0:h.name,(V=m[v+1])==null?void 0:V.name]},C=function(m,i){i===void 0&&(i="");var h=(0,p.createSearch)(i,function(V){return V.name});return(0,t.flow)([(0,a.filter)(function(V){return V==null?void 0:V.name}),i&&(0,a.filter)(h),(0,a.sortBy)(function(V){return V.name})])(m)},c=r.CameraConsole=function(){function d(m,i){var h=(0,k.useLocalState)(i,"tabIndex",0),V=h[0],v=h[1],s=function(){function g(N){switch(N){case 0:return(0,e.createComponentVNode)(2,u);case 1:return(0,e.createComponentVNode)(2,f);default:return"WE SHOULDN'T BE HERE!"}}return g}();return(0,e.createComponentVNode)(2,S.Window,{width:1250,height:600,children:(0,e.createComponentVNode)(2,S.Window.Content,{children:(0,e.createComponentVNode)(2,y.Box,{fillPositionedParent:!0,overflow:"hidden",children:[(0,e.createComponentVNode)(2,y.Tabs,{children:[(0,e.createComponentVNode)(2,y.Tabs.Tab,{selected:V===0,onClick:function(){function g(){return v(0)}return g}(),children:[(0,e.createComponentVNode)(2,y.Icon,{name:"map-marked-alt"})," Map"]},"Map"),(0,e.createComponentVNode)(2,y.Tabs.Tab,{selected:V===1,onClick:function(){function g(){return v(1)}return g}(),children:[(0,e.createComponentVNode)(2,y.Icon,{name:"table"})," List"]},"List")]}),s(V)]})})})}return d}(),u=r.CameraConsoleMapContent=function(){function d(m,i){var h=(0,k.useBackend)(i),V=h.act,v=h.data,s=C(v.cameras),g=(0,k.useLocalState)(i,"zoom",1),N=g[0],x=g[1],B=v.mapRef,L=v.activeCamera,T=v.stationLevelNum,A=v.stationLevelName,E=(0,k.useLocalState)(i,"z_current",T[0]),w=E[0],O=E[1],M=b(s,L),P=M[0],F=M[1];return(0,e.createComponentVNode)(2,y.Box,{height:"100%",display:"flex",children:[(0,e.createVNode)(1,"div","CameraConsole__left",(0,e.createComponentVNode)(2,y.Box,{height:"100%",display:"flex",children:(0,e.createComponentVNode)(2,y.NanoMap,{onZoom:function(){function R(U){return x(U)}return R}(),zLevels:T,zNames:A,z_current:w,setZCurrent:O,children:s.map(function(R){return(0,e.createComponentVNode)(2,y.NanoMap.Marker,{x:R.x,y:R.y,z:R.z,z_current:w,zoom:N,icon:"box",tooltip:R.name,color:R.status?"blue":"red",bordered:!0,onClick:function(){function U(){return V("switch_camera",{name:R.name})}return U}()},R.ref)})})}),2),(0,e.createVNode)(1,"div","CameraConsole__right",[(0,e.createVNode)(1,"div","CameraConsole__toolbar",[(0,e.createVNode)(1,"b",null,"Camera: ",16),L&&L.name||"\u2014"],0),(0,e.createVNode)(1,"div","CameraConsole__toolbarRight",[(0,e.createComponentVNode)(2,y.Button,{icon:"chevron-left",disabled:!P,onClick:function(){function R(){return V("switch_camera",{name:P})}return R}()}),(0,e.createComponentVNode)(2,y.Button,{icon:"chevron-right",disabled:!F,onClick:function(){function R(){return V("switch_camera",{name:F})}return R}()})],4),(0,e.createComponentVNode)(2,y.ByondUi,{className:"CameraConsole__map",params:{id:B,type:"map"}})],4)]})}return d}(),f=r.CameraConsoleOldContent=function(){function d(m,i){var h=(0,k.useBackend)(i),V=h.act,v=h.data,s=h.config,g=v.mapRef,N=v.activeCamera,x=(0,k.useLocalState)(i,"searchText",""),B=x[0],L=C(v.cameras,B),T=b(L,N),A=T[0],E=T[1];return(0,e.createComponentVNode)(2,y.Box,{children:[(0,e.createVNode)(1,"div","CameraConsole__left",(0,e.createComponentVNode)(2,S.Window.Content,{children:(0,e.createComponentVNode)(2,y.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,l)})}),2),(0,e.createVNode)(1,"div","CameraConsole__right",[(0,e.createVNode)(1,"div","CameraConsole__toolbar",[(0,e.createVNode)(1,"b",null,"Camera: ",16),N&&N.name||"\u2014"],0),(0,e.createVNode)(1,"div","CameraConsole__toolbarRight",[(0,e.createComponentVNode)(2,y.Button,{icon:"chevron-left",disabled:!A,onClick:function(){function w(){return V("switch_camera",{name:A})}return w}()}),(0,e.createComponentVNode)(2,y.Button,{icon:"chevron-right",disabled:!E,onClick:function(){function w(){return V("switch_camera",{name:E})}return w}()})],4),(0,e.createComponentVNode)(2,y.ByondUi,{className:"CameraConsole__map",params:{id:g,type:"map"}})],4)]})}return d}(),l=r.CameraConsoleListContent=function(){function d(m,i){var h=(0,k.useBackend)(i),V=h.act,v=h.data,s=(0,k.useLocalState)(i,"searchText",""),g=s[0],N=s[1],x=v.activeCamera,B=C(v.cameras,g);return(0,e.createComponentVNode)(2,y.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,y.Stack.Item,{children:(0,e.createComponentVNode)(2,y.Input,{fluid:!0,placeholder:"Search for a camera",onInput:function(){function L(T,A){return N(A)}return L}()})}),(0,e.createComponentVNode)(2,y.Stack.Item,{grow:!0,m:0,children:(0,e.createComponentVNode)(2,y.Section,{fill:!0,scrollable:!0,children:B.map(function(L){return(0,e.createVNode)(1,"div",(0,o.classes)(["Button","Button--fluid","Button--color--transparent",x&&L.name===x.name&&"Button--selected"]),L.name,0,{title:L.name,onClick:function(){function T(){return V("switch_camera",{name:L.name})}return T}()},L.name)})})})]})}return d}()},52927:function(I,r,n){"use strict";r.__esModule=!0,r.Canister=void 0;var e=n(89005),a=n(44879),t=n(72253),o=n(36036),p=n(49968),k=n(98595),y=r.Canister=function(){function S(b,C){var c=(0,t.useBackend)(C),u=c.act,f=c.data,l=f.portConnected,d=f.tankPressure,m=f.releasePressure,i=f.defaultReleasePressure,h=f.minReleasePressure,V=f.maxReleasePressure,v=f.valveOpen,s=f.name,g=f.canLabel,N=f.colorContainer,x=f.color_index,B=f.hasHoldingTank,L=f.holdingTank,T="";x.prim&&(T=N.prim.options[x.prim].name);var A="";x.sec&&(A=N.sec.options[x.sec].name);var E="";x.ter&&(E=N.ter.options[x.ter].name);var w="";x.quart&&(w=N.quart.options[x.quart].name);var O=[],M=[],P=[],F=[],R=0;for(R=0;Rs.current_positions&&(0,e.createComponentVNode)(2,t.Box,{color:"green",children:s.total_positions-s.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||!s.can_close,onClick:function(){function g(){return m("make_job_unavailable",{job:s.title})}return g}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{content:"+",disabled:i.cooldown_time||!s.can_open,onClick:function(){function g(){return m("make_job_available",{job:s.title})}return g}()})}),(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(s.title)>-1?"Yes":""})||(0,e.createComponentVNode)(2,t.Button,{content:s.is_priority?"Yes":"No",selected:s.is_priority,disabled:i.cooldown_time||!s.can_prioritize,onClick:function(){function g(){return m("prioritize_job",{job:s.title})}return g}()})})]},s.title)})]})})]}):v=(0,e.createComponentVNode)(2,S);break;case 2:!i.authenticated||!i.scan_name?v=(0,e.createComponentVNode)(2,S):i.modify_name?v=(0,e.createComponentVNode)(2,p.AccessList,{accesses:i.regions,selectedList:i.selectedAccess,accessMod:function(){function s(g){return m("set",{access:g})}return s}(),grantAll:function(){function s(){return m("grant_all")}return s}(),denyAll:function(){function s(){return m("clear_all")}return s}(),grantDep:function(){function s(g){return m("grant_region",{region:g})}return s}(),denyDep:function(){function s(g){return m("deny_region",{region:g})}return s}()}):v=(0,e.createComponentVNode)(2,b);break;case 3:i.authenticated?i.records.length?v=(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 s(){return m("wipe_all_logs")}return s}()}),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(s){return(0,e.createComponentVNode)(2,t.Table.Row,{height:2,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:s.transferee}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:s.oldvalue}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:s.newvalue}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:s.whodidit}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:s.timestamp}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:s.reason}),!!i.iscentcom&&(0,e.createComponentVNode)(2,t.Table.Cell,{children:s.deletedby})]},s.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 s(){return m("wipe_my_logs")}return s}()})})]}):v=(0,e.createComponentVNode)(2,C):v=(0,e.createComponentVNode)(2,S);break;case 4:!i.authenticated||!i.scan_name?v=(0,e.createComponentVNode)(2,S):v=(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(s){return(0,e.createComponentVNode)(2,t.Table.Row,{height:2,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:s.name}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:s.title}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:s.crimstat}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{content:s.buttontext,disabled:!s.demotable,onClick:function(){function g(){return m("remote_demote",{remote_demote:s.name})}return g}()})})]},s.title)})]})});break;default:v=(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:V}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:h}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:v})]})})})}return u}()},64083:function(I,r,n){"use strict";r.__esModule=!0,r.CargoConsole=void 0;var e=n(89005),a=n(64795),t=n(88510),o=n(72253),p=n(36036),k=n(98595),y=n(25328),S=r.CargoConsole=function(){function f(l,d){return(0,e.createComponentVNode)(2,k.Window,{width:900,height:800,children:(0,e.createComponentVNode)(2,k.Window.Content,{children:(0,e.createComponentVNode)(2,p.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,b),(0,e.createComponentVNode)(2,C),(0,e.createComponentVNode)(2,c),(0,e.createComponentVNode)(2,u)]})})})}return f}(),b=function(l,d){var m=(0,o.useLocalState)(d,"contentsModal",null),i=m[0],h=m[1],V=(0,o.useLocalState)(d,"contentsModalTitle",null),v=V[0],s=V[1];if(i!==null&&v!==null)return(0,e.createComponentVNode)(2,p.Modal,{maxWidth:"75%",width:window.innerWidth+"px",maxHeight:window.innerHeight*.75+"px",mx:"auto",children:[(0,e.createComponentVNode)(2,p.Box,{width:"100%",bold:!0,children:(0,e.createVNode)(1,"h1",null,[v,(0,e.createTextVNode)(" contents:")],0)}),(0,e.createComponentVNode)(2,p.Box,{children:i.map(function(g){return(0,e.createComponentVNode)(2,p.Box,{children:["- ",g]},g)})}),(0,e.createComponentVNode)(2,p.Box,{m:2,children:(0,e.createComponentVNode)(2,p.Button,{content:"Close",onClick:function(){function g(){h(null),s(null)}return g}()})})]})},C=function(l,d){var m=(0,o.useBackend)(d),i=m.act,h=m.data,V=h.is_public,v=h.points,s=h.credits,g=h.timeleft,N=h.moving,x=h.at_station,B,L;return!N&&!x?(B="Docked off-station",L="Call Shuttle"):!N&&x?(B="Docked at the station",L="Return Shuttle"):N&&(L="In Transit...",g!==1?B="Shuttle is en route (ETA: "+g+" minutes)":B="Shuttle is en route (ETA: "+g+" minute)"),(0,e.createComponentVNode)(2,p.Stack.Item,{children:(0,e.createComponentVNode)(2,p.Section,{title:"Status",children:(0,e.createComponentVNode)(2,p.LabeledList,{children:[(0,e.createComponentVNode)(2,p.LabeledList.Item,{label:"Points Available",children:v}),(0,e.createComponentVNode)(2,p.LabeledList.Item,{label:"Credits Available",children:s}),(0,e.createComponentVNode)(2,p.LabeledList.Item,{label:"Shuttle Status",children:B}),V===0&&(0,e.createComponentVNode)(2,p.LabeledList.Item,{label:"Controls",children:[(0,e.createComponentVNode)(2,p.Button,{content:L,disabled:N,onClick:function(){function T(){return i("moveShuttle")}return T}()}),(0,e.createComponentVNode)(2,p.Button,{content:"View Central Command Messages",onClick:function(){function T(){return i("showMessages")}return T}()})]})]})})})},c=function(l,d){var m=(0,o.useBackend)(d),i=m.act,h=m.data,V=h.categories,v=h.supply_packs,s=(0,o.useSharedState)(d,"category","Emergency"),g=s[0],N=s[1],x=(0,o.useSharedState)(d,"search_text",""),B=x[0],L=x[1],T=(0,o.useLocalState)(d,"contentsModal",null),A=T[0],E=T[1],w=(0,o.useLocalState)(d,"contentsModalTitle",null),O=w[0],M=w[1],P=(0,y.createSearch)(B,function(U){return U.name}),F=(0,a.flow)([(0,t.filter)(function(U){return U.cat===V.filter(function(j){return j.name===g})[0].category||B}),B&&(0,t.filter)(P),(0,t.sortBy)(function(U){return U.name.toLowerCase()})])(v),R="Crate Catalogue";return B?R="Results for '"+B+"':":g&&(R="Browsing "+g),(0,e.createComponentVNode)(2,p.Stack.Item,{children:(0,e.createComponentVNode)(2,p.Section,{title:R,buttons:(0,e.createComponentVNode)(2,p.Dropdown,{width:"190px",options:V.map(function(U){return U.name}),selected:g,onSelected:function(){function U(j){return N(j)}return U}()}),children:[(0,e.createComponentVNode)(2,p.Input,{fluid:!0,placeholder:"Search for...",onInput:function(){function U(j,W){return L(W)}return U}(),mb:1}),(0,e.createComponentVNode)(2,p.Box,{maxHeight:25,overflowY:"auto",overflowX:"hidden",children:(0,e.createComponentVNode)(2,p.Table,{m:"0.5rem",children:F.map(function(U){return(0,e.createComponentVNode)(2,p.Table.Row,{children:[(0,e.createComponentVNode)(2,p.Table.Cell,{bold:!0,children:(0,e.createComponentVNode)(2,p.Box,{color:U.has_sale?"good":"default",children:[U.name," (",U.cost?U.cost+" Points":"",U.creditsCost&&U.cost?" ":"",U.creditsCost?U.creditsCost+" Credits":"",")"]})}),(0,e.createComponentVNode)(2,p.Table.Cell,{textAlign:"right",pr:1,children:[(0,e.createComponentVNode)(2,p.Button,{content:"Order 1",icon:"shopping-cart",onClick:function(){function j(){return i("order",{crate:U.ref,multiple:0})}return j}()}),(0,e.createComponentVNode)(2,p.Button,{content:"Order Multiple",icon:"cart-plus",onClick:function(){function j(){return i("order",{crate:U.ref,multiple:1})}return j}()}),(0,e.createComponentVNode)(2,p.Button,{content:"View Contents",icon:"search",onClick:function(){function j(){E(U.contents),M(U.name)}return j}()})]})]},U.name)})})})]})})},u=function(l,d){var m=(0,o.useBackend)(d),i=m.act,h=m.data,V=h.requests,v=h.canapprove,s=h.orders;return(0,e.createComponentVNode)(2,p.Section,{fill:!0,scrollable:!0,title:"Details",children:[(0,e.createComponentVNode)(2,p.Box,{bold:!0,children:"Requests"}),(0,e.createComponentVNode)(2,p.Table,{m:"0.5rem",children:V.map(function(g){return(0,e.createComponentVNode)(2,p.Table.Row,{children:[(0,e.createComponentVNode)(2,p.Table.Cell,{children:[(0,e.createComponentVNode)(2,p.Box,{children:["- #",g.ordernum,": ",g.supply_type," for ",(0,e.createVNode)(1,"b",null,g.orderedby,0)]}),(0,e.createComponentVNode)(2,p.Box,{italic:!0,children:["Reason: ",g.comment]}),(0,e.createComponentVNode)(2,p.Box,{italic:!0,children:["Required Techs: ",g.pack_techs]})]}),(0,e.createComponentVNode)(2,p.Stack.Item,{textAlign:"right",children:[(0,e.createComponentVNode)(2,p.Button,{content:"Approve",color:"green",disabled:!v,onClick:function(){function N(){return i("approve",{ordernum:g.ordernum})}return N}()}),(0,e.createComponentVNode)(2,p.Button,{content:"Deny",color:"red",onClick:function(){function N(){return i("deny",{ordernum:g.ordernum})}return N}()})]})]},g.ordernum)})}),(0,e.createComponentVNode)(2,p.Box,{bold:!0,children:"Confirmed Orders"}),(0,e.createComponentVNode)(2,p.Table,{m:"0.5rem",children:s.map(function(g){return(0,e.createComponentVNode)(2,p.Table.Row,{children:(0,e.createComponentVNode)(2,p.Table.Cell,{children:[(0,e.createComponentVNode)(2,p.Box,{children:["- #",g.ordernum,": ",g.supply_type," for ",(0,e.createVNode)(1,"b",null,g.orderedby,0)]}),(0,e.createComponentVNode)(2,p.Box,{italic:!0,children:["Reason: ",g.comment]})]})},g.ordernum)})})]})}},22794:function(I,r,n){"use strict";r.__esModule=!0,r.DelayHelper=void 0;var e=n(89005),a=n(44879),t=n(72253),o=n(36036),p=r.DelayHelper=function(){function k(y,S){var b=(0,t.useBackend)(S),C=b.act,c=b.data,u=c.delays,f=c.rev_delays,l=y.delay_list,d=y.reverse,m=d===void 0?!1:d;return(0,e.createComponentVNode)(2,o.LabeledControls,{wrap:!0,style:{"flex-direction":"column","flex-wrap":"wrap",height:"7.5em","justify-content":"start"},children:l.map(function(i,h){return(0,e.createComponentVNode)(2,o.LabeledControls.Item,{label:i.title,style:{"flex-direction":"column","min-width":"0"},children:(0,e.createComponentVNode)(2,o.Knob,{color:(m?f[h+1]:u[h+1])/10>10?"orange":"default",format:function(){function V(v){return(0,a.toFixed)(v,2)}return V}(),maxValue:10,minValue:0,inline:!0,onDrag:function(){function V(v,s){C("editTiming",{reverse:m,timer:""+(h+1),value:Math.max(s,0)})}return V}(),size:1,step:.02,unclamped:!0,unit:"s",value:(m?f[h+1]:u[h+1])/10})},h)})})}return k}()},23749:function(I,r,n){"use strict";r.__esModule=!0,r.PodBays=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(7144),p=r.PodBays=function(){function k(y,S){var b=(0,a.useBackend)(S),C=b.act,c=b.data,u=c.bayNumber;return(0,e.createComponentVNode)(2,t.Section,{buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"trash",onClick:function(){function f(){return C("clearBay")}return f}(),tooltip:"\n \u041E\u0447\u0438\u0449\u0430\u0435\u0442 \u0432\u0441\u0451\n\u0438\u0437 \u0432\u044B\u0431\u0440\u0430\u043D\u043D\u043E\u0433\u043E \u0430\u043D\u0433\u0430\u0440\u0430.",tooltipPosition:"top-end"}),(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"question",tooltip:"\n \u041A\u0430\u0436\u0434\u044B\u0439 \u0432\u0430\u0440\u0438\u0430\u043D\u0442 \u0441\u043E\u043E\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u0435\u0442\n\u043E\u043F\u0440\u0435\u0434\u0435\u043B\u0451\u043D\u043D\u043E\u0439 \u0437\u043E\u043D\u0435 \u043D\u0430 \u0426\u041A.\n\u0417\u0430\u043F\u0443\u0449\u0435\u043D\u043D\u044B\u0435 \u043A\u0430\u043F\u0441\u0443\u043B\u044B \u0431\u0443\u0434\u0443\u0442\n\u0437\u0430\u043F\u043E\u043B\u043D\u0435\u043D\u044B \u043F\u0440\u0435\u0434\u043C\u0435\u0442\u0430\u043C\u0438 \u0438\u0437 \u044D\u0442\u0438\u0445 \u0437\u043E\u043D\n\u0432 \u0441\u043E\u043E\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0438\u0438 \u0441 \u043E\u043F\u0446\u0438\u0435\u0439\n\xAB\u0417\u0430\u0433\u0440\u0443\u0437\u043A\u0430 \u0438\u0437 \u0430\u043D\u0433\u0430\u0440\u0430\xBB \u0432 \u043B\u0435\u0432\u043E\u043C \u0432\u0435\u0440\u0445\u043D\u0435\u043C \u0443\u0433\u043B\u0443.",tooltipPosition:"top-end"})],4),fill:!0,title:"\u0410\u043D\u0433\u0430\u0440",children:o.BAYS.map(function(f,l){return(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function d(){return C("switchBay",{bayNumber:""+(l+1)})}return d}(),selected:u===""+(l+1),tooltipPosition:"bottom-end",children:f.title},l)})})}return k}()},8507:function(I,r,n){"use strict";r.__esModule=!0,r.PodLaunch=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(20345),p=r.PodLaunch=function(){function k(y,S){var b=(0,a.useBackend)(S),C=b.act,c=b.data,u=c.giveLauncher,f=(0,o.useCompact)(S),l=f[0];return(0,e.createComponentVNode)(2,t.Button,{fluid:!0,onClick:function(){function d(){return C("giveLauncher")}return d}(),selected:u,textAlign:"center",tooltip:"\n \u0412\u044B \u0434\u043E\u043B\u0436\u043D\u044B \u0437\u043D\u0430\u0442\u044C, \u0447\u0442\u043E\n \u041E\u0431 \u044D\u0442\u043E\u043C \u0433\u043E\u0432\u043E\u0440\u0438\u0442 \u041A\u043E\u0434\u0435\u043A\u0441 \u0410\u0441\u0442\u0430\u0440\u0442\u0435\u0441",tooltipPosition:"top",children:(0,e.createComponentVNode)(2,t.Box,{bold:!0,fontSize:"1.4em",lineHeight:l?1.5:3,children:"\u0417\u0410\u041F\u0423\u0421\u041A"})})}return k}()},15802:function(I,r,n){"use strict";r.__esModule=!0,r.PodSounds=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(7144),p=r.PodSounds=function(){function k(y,S){var b=(0,a.useBackend)(S),C=b.act,c=b.data,u=c.defaultSoundVolume,f=c.soundVolume;return(0,e.createComponentVNode)(2,t.Section,{buttons:(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"volume-up",onClick:function(){function l(){return C("soundVolume")}return l}(),selected:f!==u,tooltip:"\n \u0413\u0440\u043E\u043C\u043A\u043E\u0441\u0442\u044C \u0417\u0443\u043A\u0430:"+f}),fill:!0,title:"\u0417\u0432\u0443\u043A\u0438",children:o.SOUNDS.map(function(l,d){return(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function m(){return C(l.act)}return m}(),selected:c[l.act],tooltip:l.tooltip,tooltipPosition:"top-end",children:l.title},d)})})}return k}()},94577:function(I,r,n){"use strict";r.__esModule=!0,r.PodStatusPage=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(7144),p=n(20345),k=r.PodStatusPage=function(){function b(C,c){var u=(0,p.useCompact)(c),f=u[0];return(0,e.createComponentVNode)(2,t.Section,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack,{children:o.EFFECTS_ALL.map(function(l,d){return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Box,{bold:!0,color:"label",mb:1,children:[!f&&(l.alt_label||l.label),":"]}),(0,e.createComponentVNode)(2,t.Box,{children:l.list.map(function(m,i){return(0,e.createComponentVNode)(2,y,{effect:m,hasMargin:l.list.length>1,index:i},i)})})]}),d=0;--J){var X=this.tryEntries[J],Q=X.completion;if(X.tryLoc==="root")return ae("end");if(X.tryLoc<=this.prev){var q=m.call(X,"catchLoc"),te=m.call(X,"finallyLoc");if(q&&te){if(this.prev=0;--ae){var J=this.tryEntries[ae];if(J.tryLoc<=this.prev&&m.call(J,"finallyLoc")&&this.prev=0;--Z){var ae=this.tryEntries[Z];if(ae.finallyLoc===re)return this.complete(ae.completion,ae.afterLoc),Y(ae),E}}return oe}(),catch:function(){function oe(re){for(var Z=this.tryEntries.length-1;Z>=0;--Z){var ae=this.tryEntries[Z];if(ae.tryLoc===re){var J=ae.completion;if(J.type==="throw"){var X=J.arg;Y(ae)}return X}}throw Error("illegal catch attempt")}return oe}(),delegateYield:function(){function oe(re,Z,ae){return this.delegate={iterator:de(re),resultName:Z,nextLoc:ae},this.method==="next"&&(this.arg=f),E}return oe}()},l}function S(f,l,d,m,i,h,V){try{var v=f[h](V),s=v.value}catch(g){return void d(g)}v.done?l(s):Promise.resolve(s).then(m,i)}function b(f){return function(){var l=this,d=arguments;return new Promise(function(m,i){var h=f.apply(l,d);function V(s){S(h,m,i,V,v,"next",s)}function v(s){S(h,m,i,V,v,"throw",s)}V(void 0)})}}var C=function(){var f=b(y().mark(function(){function l(d,m){return y().wrap(function(){function i(h){for(;;)switch(h.prev=h.next){case 0:return h.next=2,a.storage.set("podlauncher_preset_"+d,m);case 2:case"end":return h.stop()}}return i}(),l)}return l}()));return function(){function l(d,m){return f.apply(this,arguments)}return l}()}(),c=function(l,d){var m=(0,o.useBackend)(d),i=m.data,h=l.editing,V=l.deletePreset,v=l.loadPreset,s=l.presetIndex,g=l.setEditing,N=l.getPresets;return(0,e.createFragment)([!h&&(0,e.createComponentVNode)(2,p.Button,{color:"transparent",icon:"plus",onClick:function(){function x(){return g(!h)}return x}(),tooltip:"\u041D\u043E\u0432\u044B\u0439 \u043F\u0440\u0435\u0441\u0435\u0442"}),(0,e.createComponentVNode)(2,p.Button,{color:"transparent",icon:"download",inline:!0,onClick:function(){function x(){return C(s.toString(),i)}return x}(),tooltip:"\u0421\u043E\u0445\u0440\u0430\u043D\u0438\u0442\u044C \u043F\u0440\u0435\u0441\u0435\u0442",tooltipPosition:"bottom"}),(0,e.createComponentVNode)(2,p.Button,{color:"transparent",icon:"upload",inline:!0,onClick:function(){function x(){v(s)}return x}(),tooltip:"\u0417\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044C \u043F\u0440\u0435\u0441\u0435\u0442"}),(0,e.createComponentVNode)(2,p.Button,{color:"transparent",icon:"trash",inline:!0,onClick:function(){function x(){return V(s)}return x}(),tooltip:"\u0423\u0434\u0430\u043B\u0438\u0442\u044C \u0432\u044B\u0431\u0440\u0430\u043D\u044B\u0439 \u043F\u0440\u0435\u0441\u0435\u0442",tooltipPosition:"bottom-start"}),(0,e.createComponentVNode)(2,p.Button,{color:"transparent",icon:"refresh",inline:!0,onClick:function(){function x(){return N()}return x}(),tooltip:"\u041E\u0431\u043D\u043E\u0432\u0438\u0442\u044C \u0441\u043F\u0438\u0441\u043E\u043A \u043F\u0440\u0435\u0441\u0435\u0442\u043E\u0432",tooltipPosition:"bottom-start"})],0)},u=r.PresetsPage=function(){function f(l,d){var m=(0,o.useBackend)(d),i=m.act,h=m.data,V=(0,o.useLocalState)(d,"editing",!1),v=V[0],s=V[1],g=(0,o.useLocalState)(d,"hue",0),N=g[0],x=g[1],B=(0,o.useLocalState)(d,"name",""),L=B[0],T=B[1],A=(0,o.useLocalState)(d,"presetID",0),E=A[0],w=A[1],O=(0,o.useLocalState)(d,"presets",[]),M=O[0],P=O[1],F=function(){var W=b(y().mark(function(){function K($){var ne,Y;return y().wrap(function(){function le(de){for(;;)switch(de.prev=de.next){case 0:ne=[].concat(M),Y=0;case 2:if(!(Y=l.length-2?m%2===1?"top-start":"top-end":m%2===1?"bottom-start":"bottom-end",tooltip:d.title,width:"45px",children:(0,e.createComponentVNode)(2,o.Box,{className:(0,a.classes)(["supplypods64x64","pod_asset"+d.id]),style:{"pointer-events":"none",transform:"rotate(45deg) translate(-25%,-10%)"}})},d.id)})})}return k}()},8179:function(I,r,n){"use strict";r.__esModule=!0,r.TabPod=r.TabDrop=r.TabBay=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.TabPod=function(){function y(S,b){var C=(0,a.useBackend)(b),c=C.act,u=C.data,f=u.oldArea;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{disabled:!0,icon:"street-view",children:"\u0422\u0435\u043B\u0435\u043F\u043E\u0440\u0442"}),(0,e.createComponentVNode)(2,t.Button,{disabled:!0,icon:"undo-alt",children:f?f.substring(0,17):"\u041D\u0430\u0437\u0430\u0434"})],4)}return y}(),p=r.TabBay=function(){function y(S,b){var C=(0,a.useBackend)(b),c=C.act,u=C.data,f=(0,a.useLocalState)(b,"teleported",!1),l=f[0],d=f[1],m=u.oldArea;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{icon:"street-view",onClick:function(){function i(){c("teleportCentcom"),d(!0)}return i}(),children:"\u0422\u0435\u043B\u0435\u043F\u043E\u0440\u0442"}),(0,e.createComponentVNode)(2,t.Button,{disabled:!m||!l,icon:"undo-alt",onClick:function(){function i(){c("teleportBack"),d(!1)}return i}(),children:m?m.substring(0,17):"\u041D\u0430\u0437\u0430\u0434"})],4)}return y}(),k=r.TabDrop=function(){function y(S,b){var C=(0,a.useBackend)(b),c=C.act,u=C.data,f=(0,a.useLocalState)(b,"teleported",!1),l=f[0],d=f[1],m=u.oldArea;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{icon:"street-view",onClick:function(){function i(){c("teleportDropoff"),d(!0)}return i}(),children:"\u0422\u0435\u043B\u0435\u043F\u043E\u0440\u0442"}),(0,e.createComponentVNode)(2,t.Button,{disabled:!m||!l,icon:"undo-alt",onClick:function(){function i(){c("teleportBack"),d(!1)}return i}(),children:m?m.substring(0,17):"\u041D\u0430\u0437\u0430\u0434"})],4)}return y}()},18885:function(I,r,n){"use strict";r.__esModule=!0,r.Timing=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(7144),p=n(22794),k=r.Timing=function(){function y(S,b){var C=(0,a.useBackend)(b),c=C.act,u=C.data,f=u.custom_rev_delay,l=u.effectReverse;return(0,e.createComponentVNode)(2,t.Section,{buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"undo",onClick:function(){function d(){return c("resetTiming")}return d}(),tooltip:"\n \u0421\u0431\u0440\u043E\u0441\u0438\u0442\u044C \u0442\u0430\u0439\u043C\u0438\u043D\u0433\u0438\n /\u0437\u0430\u0434\u0435\u0440\u0436\u043A\u0438 \u043A\u0430\u043F\u0441\u0443\u043B",tooltipPosition:"bottom-end"}),(0,e.createComponentVNode)(2,t.Button,{color:"transparent",disabled:!l,icon:f===1?"toggle-on":"toggle-off",onClick:function(){function d(){return c("toggleRevDelays")}return d}(),selected:f,tooltip:"\n \u041F\u0435\u0440\u0435\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0437\u0430\u0434\u0435\u0440\u0436\u043A\u0438 \u0432\u043E\u0437\u0432\u0440\u0430\u0442\u0430\n \u041F\u0440\u0438\u043C\u0435\u0447\u0430\u043D\u0438\u0435: \u043F\u0440\u0438 \u0432\u043A\u043B\u044E\u0447\u0435\u043D\u043D\u043E\u0439 \u043E\u043F\u0446\u0438\u0438 \u043F\u0435\u0440\u0435\u043A\u043B\u044E\u0447\u0430\u0442\u0435\u043B\u0438\n \u043E\u0431\u0440\u0430\u0449\u0430\u044E\u0442 \u0432\u0441\u043F\u044F\u0442\u044C \u0437\u0430\u0434\u0435\u0440\u0436\u043A\u0438 \u043A\u0430\u043F\u0441\u0443\u043B",tooltipPosition:"bottom-end"})],4),title:"\u0412\u0440\u0435\u043C\u044F",children:f?(0,e.createComponentVNode)(2,p.DelayHelper,{delay_list:o.REV_DELAYS,reverse:!0}):(0,e.createComponentVNode)(2,p.DelayHelper,{delay_list:o.DELAYS})})}return y}()},76417:function(I,r,n){"use strict";r.__esModule=!0,r.ViewTabHolder=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(7144),p=n(20345),k=r.ViewTabHolder=function(){function y(S,b){var C=(0,a.useBackend)(b),c=C.act,u=C.data,f=u.mapRef,l=u.customDropoff,d=u.effectReverse,m=u.renderLighting,i=(0,p.useTab)(b),h=i[0],V=i[1],v=o.TABPAGES[h].component;return(0,e.createComponentVNode)(2,t.Section,{buttons:(0,e.createFragment)([!!l&&!!d&&(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"arrow-circle-down",inline:!0,onClick:function(){function s(){V(2),c("tabSwitch",{tabIndex:2})}return s}(),selected:h===2,tooltip:"\u041C\u0435\u0441\u0442\u043E \u0412\u044B\u0441\u0430\u0434\u043A\u0438"}),(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"rocket",inline:!0,onClick:function(){function s(){V(0),c("tabSwitch",{tabIndex:0})}return s}(),selected:h===0,tooltip:"\u041A\u0430\u043F\u0441\u0443\u043B\u0430"}),(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"th",inline:!0,onClick:function(){function s(){V(1),c("tabSwitch",{tabIndex:1})}return s}(),selected:h===1,tooltip:"\u0410\u043D\u0433\u0430\u0440 \u041F\u043E\u0433\u0440\u0443\u0437\u043A\u0438"}),(0,e.createVNode)(1,"span",null,"|",16,{style:o.POD_GREY}),!!l&&!!d&&(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"lightbulb",inline:!0,onClick:function(){function s(){c("renderLighting"),c("refreshView")}return s}(),selected:m,tooltip:"\u0420\u0435\u043D\u0434\u0435\u0440\u0438\u043D\u0433 \u043E\u0441\u0432\u0435\u0449\u0435\u043D\u0438\u044F"}),(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"sync-alt",inline:!0,onClick:function(){function s(){V(h),c("refreshView")}return s}(),tooltip:"\u041E\u0431\u043D\u043E\u0432\u0438\u0442\u044C \u043E\u043A\u043D\u043E \u043F\u0440\u043E\u0441\u043C\u043E\u0442\u0440\u0430"})],0),fill:!0,title:"\u041E\u0441\u043C\u043E\u0442\u0440",children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,v)}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.ByondUi,{height:"100%",params:{id:f,type:"map",zoom:0}})})]})})}return y}()},7144:function(I,r,n){"use strict";r.__esModule=!0,r.TABPAGES=r.SOUNDS=r.REV_DELAYS=r.REVERSE_OPTIONS=r.POD_GREY=r.EFFECTS_NORMAL=r.EFFECTS_LOAD=r.EFFECTS_HARM=r.EFFECTS_ALL=r.DELAYS=r.BAYS=void 0;var e=n(8179),a=r.POD_GREY={color:"grey"},t=r.TABPAGES=[{title:"\u041F\u0440\u043E\u0441\u043C\u043E\u0442\u0440 \u043A\u0430\u043F\u0441\u0443\u043B\u044B",component:e.TabPod},{title:"\u041F\u0440\u043E\u0441\u043C\u043E\u0442\u0440 \u0430\u043D\u0433\u0430\u0440\u0430",component:e.TabBay},{title:"\u041F\u0440\u043E\u0441\u043C\u043E\u0442\u0440 \u043C\u0435\u0441\u0442\u0430 \u0432\u044B\u0433\u0440\u0443\u0437\u043A\u0438.",component:e.TabDrop}],o=r.REVERSE_OPTIONS=[{title:"\u041C\u043E\u0431\u044B",key:"Mobs",icon:"user"},{title:"\u041D\u0435 \u0437\u0430\u043A\u0440\u0435\u043F\u043B\u0451\u043D\u043D\u044B\u0435\n\u041E\u0431\u044A\u0435\u043A\u0442\u044B",key:"Unanchored",icon:"cube"},{title:"\u0417\u0430\u043A\u0440\u0435\u043F\u043B\u0451\u043D\u043D\u044B\u0435\n\u041E\u0431\u044A\u0435\u043A\u0442\u044B",key:"Anchored",icon:"anchor"},{title:"\u041C\u0435\u0445\u0438",key:"Mecha",icon:"truck"}],p=r.DELAYS=[{title:"Pre",tooltip:"\u0412\u0440\u0435\u043C\u044F \u0434\u043E \u043F\u0440\u0438\u0431\u044B\u0442\u0438\u044F \u043A\u0430\u043F\u0441\u0443\u043B\u044B \u043D\u0430 \u0441\u0442\u0430\u043D\u0446\u0438\u044E"},{title:"Fall",tooltip:"\u041F\u0440\u043E\u0434\u043E\u043B\u0436\u0438\u0442\u0435\u043B\u044C\u043D\u043E\u0441\u0442\u044C \u0430\u043D\u0438\u043C\u0430\u0446\u0438\u0438\n \u043F\u0430\u0434\u0435\u043D\u0438\u044F \u043A\u0430\u043F\u0441\u0443\u043B"},{title:"Open",tooltip:"\u0412\u0440\u0435\u043C\u044F, \u043D\u0435\u043E\u0431\u0445\u043E\u0434\u0438\u043C\u043E\u0435 \u043A\u0430\u043F\u0441\u0443\u043B\u0435 \u0434\u043B\u044F \u043E\u0442\u043A\u0440\u044B\u0442\u0438\u044F \u043F\u043E\u0441\u043B\u0435 \u043F\u0440\u0438\u0437\u0435\u043C\u043B\u0435\u043D\u0438\u044F"},{title:"Exit",tooltip:"\u0412\u0440\u0435\u043C\u044F \u0434\u043E \u043E\u0442\u043B\u0435\u0442\u0430 \u043A\u0430\u043F\u0441\u0443\u043B\u044B\n\u043F\u043E\u0441\u043B\u0435 \u043E\u0442\u043A\u0440\u044B\u0442\u0438\u044F"}],k=r.REV_DELAYS=[{title:"Pre",tooltip:"\u0412\u0440\u0435\u043C\u044F \u0434\u043E \u043F\u043E\u044F\u0432\u043B\u0435\u043D\u0438\u044F \u043A\u0430\u043F\u0441\u0443\u043B\u044B \u043D\u0430\u0434 \u0442\u043E\u0447\u043A\u043E\u0439 \u0432\u044B\u0441\u0430\u0434\u043A\u0438"},{title:"Fall",tooltip:"\u041F\u0440\u043E\u0434\u043E\u043B\u0436\u0438\u0442\u0435\u043B\u044C\u043D\u043E\u0441\u0442\u044C \u0430\u043D\u0438\u043C\u0430\u0446\u0438\u0438\n \u043F\u0430\u0434\u0435\u043D\u0438\u044F \u043A\u0430\u043F\u0441\u0443\u043B"},{title:"Open",tooltip:"\u0412\u0440\u0435\u043C\u044F, \u043D\u0435\u043E\u0431\u0445\u043E\u0434\u0438\u043C\u043E\u0435 \u043A\u0430\u043F\u0441\u0443\u043B\u0435 \u0434\u043B\u044F \u043E\u0442\u043A\u0440\u044B\u0442\u0438\u044F \u043F\u043E\u0441\u043B\u0435 \u043F\u0440\u0438\u0437\u0435\u043C\u043B\u0435\u043D\u0438\u044F"},{title:"Exit",tooltip:"\u0412\u0440\u0435\u043C\u044F \u0434\u043E \u043E\u0442\u043B\u0435\u0442\u0430 \u043A\u0430\u043F\u0441\u0443\u043B\u044B\n\u043F\u043E\u0441\u043B\u0435 \u043E\u0442\u043A\u0440\u044B\u0442\u0438\u044F"}],y=r.SOUNDS=[{title:"Fall",act:"fallingSound",tooltip:"\u0412\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u043E\u0434\u0438\u0442\u0441\u044F, \u043F\u043E\u043A\u0430 \u043A\u0430\u043F\u0441\u0443\u043B\u0430 \u043F\u0430\u0434\u0430\u0435\u0442, \u0438 \u0437\u0430\u043A\u0430\u043D\u0447\u0438\u0432\u0430\u0435\u0442\u0441\u044F\n\u043A\u043E\u0433\u0434\u0430 \u043A\u0430\u043F\u0441\u0443\u043B\u0430 \u043F\u0440\u0438\u0437\u0435\u043C\u043B\u044F\u0435\u0442\u0441\u044F"},{title:"Land",act:"landingSound",tooltip:"\u0412\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u043E\u0434\u0438\u0442\u0441\u044F \u043F\u043E\u0441\u043B\u0435 \u043F\u0440\u0438\u0437\u0435\u043C\u043B\u0435\u043D\u0438\u044F \u043A\u0430\u043F\u0441\u0443\u043B\u044B"},{title:"Open",act:"openingSound",tooltip:"\u0412\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u043E\u0434\u0438\u0442\u0441\u044F \u043F\u0440\u0438 \u043E\u0442\u043A\u0440\u044B\u0442\u0438\u0438 \u043A\u0430\u043F\u0441\u0443\u043B\u044B"},{title:"Exit",act:"leavingSound",tooltip:"\u0412\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u043E\u0434\u0438\u0442\u0441\u044F, \u043A\u043E\u0433\u0434\u0430 \u043A\u0430\u043F\u0441\u0443\u043B\u0430 \u0443\u043B\u0435\u0442\u0430\u0435\u0442"}],S=r.BAYS=[{title:"1"},{title:"2"},{title:"3"},{title:"4"},{title:"\u0415\u0420\u0422"}],b=r.EFFECTS_LOAD=[{act:"launchAll",choiceNumber:0,icon:"globe",selected:"launchChoice",title:"\u0417\u0430\u043F\u0443\u0441\u0442\u0438\u0442\u044C \u0441\u043E \u0432\u0441\u0435\u0445 \u0442\u0443\u0440\u0444\u043E\u0432"},{act:"launchOrdered",choiceNumber:1,icon:"sort-amount-down-alt",selected:"launchChoice",title:"\u0417\u0430\u043F\u0443\u0441\u0442\u0438\u0442\u044C \u0441 \u0442\u0443\u0440\u0444\u043E\u0432 \u043F\u043E \u043F\u043E\u0440\u044F\u0434\u043A\u0443"},{act:"launchRandomTurf",choiceNumber:2,icon:"dice",selected:"launchChoice",title:"\u0412\u044B\u0431\u0440\u0430\u0442\u044C \u0440\u0430\u043D\u0434\u043E\u043C\u043D\u044B\u0439 \u0442\u0443\u0440\u0444"},{divider:!0},{act:"launchWholeTurf",choiceNumber:0,icon:"expand",selected:"launchRandomItem",title:"\u0417\u0430\u043F\u0443\u0441\u0442\u0438\u0442\u044C \u0432\u0441\u0435 \u0441\u043E\u0434\u0435\u0440\u0436\u0438\u043C\u043E\u0435 \u0442\u0443\u0440\u0444\u0430"},{act:"launchRandomItem",choiceNumber:1,icon:"dice",selected:"launchRandomItem",title:"\u0412\u044B\u0431\u0440\u0430\u0442\u044C \u0441\u043B\u0443\u0447\u0430\u0439\u043D\u044B\u0439 \u043E\u0431\u044A\u0435\u043A\u0442"},{divider:!0},{act:"launchClone",icon:"clone",soloSelected:"launchClone",title:"\u041A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u043E\u0431\u044A\u0435\u043A\u0442"}],C=r.EFFECTS_NORMAL=[{act:"effectTarget",icon:"user-check",soloSelected:"effectTarget",title:"\u041E\u0441\u043E\u0431\u0430\u044F \u0446\u0435\u043B\u044C"},{act:"effectBluespace",choiceNumber:0,icon:"hand-paper",selected:"effectBluespace",title:"\u041A\u0430\u043F\u0441\u0443\u043B\u0430 \u043E\u0441\u0442\u0430\u0435\u0442\u0441\u044F"},{act:"effectStealth",icon:"user-ninja",soloSelected:"effectStealth",title:"\u0421\u043A\u0440\u044B\u0442\u043D\u043E"},{act:"effectQuiet",icon:"volume-mute",soloSelected:"effectQuiet",title:"\u0422\u0438\u0445\u043E"},{act:"effectMissile",icon:"rocket",soloSelected:"effectMissile",title:"\u0420\u0435\u0436\u0438\u043C \u0440\u0430\u043A\u0435\u0442\u044B"},{act:"effectBurst",icon:"certificate",soloSelected:"effectBurst",title:"\u0417\u0430\u043F\u0443\u0441\u043A \u043A\u043B\u0430\u0441\u0442\u0435\u0440\u0430"},{act:"effectCircle",icon:"ruler-combined",soloSelected:"effectCircle",title:"\u041B\u044E\u0431\u043E\u0439 \u0443\u0433\u043E\u043B \u0441\u043F\u0443\u0441\u043A\u0430"},{act:"effectAnnounce",choiceNumber:0,icon:"ghost",selected:"effectAnnounce",title:"\u041D\u0435\u0442 \u043E\u043F\u043E\u0432\u0435\u0449\u0435\u043D\u0438\u044F \u043F\u0440\u0438\u0437\u0440\u0430\u043A\u043E\u0432\n(\u0435\u0441\u043B\u0438 \u0432\u044B \u043D\u0435 \u0445\u043E\u0442\u0438\u0442\u0435\n\u0440\u0430\u0437\u0432\u043B\u0435\u043A\u0430\u0442\u044C \u0441\u043A\u0443\u0447\u0430\u044E\u0449\u0438\u0445 \u043F\u0440\u0438\u0437\u0440\u0430\u043A\u043E\u0432)"}],c=r.EFFECTS_HARM=[{act:"explosionCustom",choiceNumber:1,icon:"bomb",selected:"explosionChoice",title:"\u041D\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0435\u043C\u044B\u0439 \u0432\u0437\u0440\u044B\u0432"},{act:"explosionBus",choiceNumber:2,icon:"bomb",selected:"explosionChoice",title:"\u0410\u0434\u043C\u0438\u043D\u0430\u0431\u0443\u0437-\u0432\u0437\u0440\u044B\u0432\n\u0418 \u0447\u0442\u043E \u043E\u043D\u0438 \u0441\u0434\u0435\u043B\u0430\u044E\u0442, \u0437\u0430\u0431\u0430\u043D\u044F\u0442 \u0442\u0435\u0431\u044F?"},{divider:!0},{act:"damageCustom",choiceNumber:1,icon:"skull",selected:"damageChoice",title:"\u041D\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0435\u043C\u044B\u0439 \u0443\u0440\u043E\u043D"},{act:"damageGib",choiceNumber:2,icon:"skull-crossbones",selected:"damageChoice",title:"\u0413\u0438\u0431"},{divider:!0},{act:"effectShrapnel",details:!0,icon:"cloud-meatball",soloSelected:"effectShrapnel",title:"\u041E\u0431\u043B\u0430\u043A\u043E \u0441\u043D\u0430\u0440\u044F\u0434\u043E\u0432"},{act:"effectStun",icon:"sun",soloSelected:"effectStun",title:"\u0421\u0442\u0430\u043D"},{act:"effectLimb",icon:"socks",soloSelected:"effectLimb",title:"\u041F\u043E\u0442\u0435\u0440\u044F \u043A\u043E\u043D\u0435\u0447\u043D\u043E\u0441\u0442\u0438"},{act:"effectOrgans",icon:"book-dead",soloSelected:"effectOrgans",title:"\u0420\u0430\u0437\u043B\u0435\u0442 \u0432\u0441\u0435\u0445 \u043E\u0440\u0433\u0430\u043D\u043E\u0432"}],u=r.EFFECTS_ALL=[{list:b,label:"\u0417\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044C \u0438\u0437",alt_label:"\u0417\u0430\u0433\u0440\u0443\u0437\u043A\u0430",tooltipPosition:"right"},{list:C,label:"\u041E\u0431\u044B\u0447\u043D\u044B\u0435 \u042D\u0444\u0444\u0435\u043A\u0442\u044B",tooltipPosition:"bottom"},{list:c,label:"\u0412\u0440\u0435\u0434\u043D\u044B\u0435 \u044D\u0444\u0444\u0435\u043A\u0442\u044B",tooltipPosition:"bottom"}]},20345:function(I,r,n){"use strict";r.__esModule=!0,r.useTab=r.useCompact=void 0;var e=n(72253),a=r.useCompact=function(){function o(p){return(0,e.useLocalState)(p,"compact",!1)}return o}(),t=r.useTab=function(){function o(p){return(0,e.useLocalState)(p,"tab",1)}return o}()},65875:function(I,r,n){"use strict";r.__esModule=!0,r.CentcomPodLauncher=void 0;var e=n(89005),a=n(36036),t=n(98595),o=n(20345),p=n(23749),k=n(8507),y=n(15802),S=n(94577),b=n(30590),C=n(72932),c=n(68569),u=n(18885),f=n(76417),l=r.CentcomPodLauncher=function(){function d(m,i){var h=(0,o.useCompact)(i),V=h[0];return(0,e.createComponentVNode)(2,t.Window,{height:V?360:440,title:"\u041C\u0435\u043D\u044E \u043A\u0430\u043F\u0441\u0443\u043B \u0441\u043D\u0430\u0431\u0436\u0435\u043D\u0438\u044F",width:V?460:750,children:(0,e.createComponentVNode)(2,t.Window.Content,{children:(0,e.createComponentVNode)(2,a.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,a.Stack.Item,{shrink:0,children:(0,e.createComponentVNode)(2,S.PodStatusPage)}),(0,e.createComponentVNode)(2,a.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,a.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,a.Stack.Item,{grow:!0,shrink:0,basis:"14.1em",children:(0,e.createComponentVNode)(2,a.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,a.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,b.PresetsPage)}),(0,e.createComponentVNode)(2,a.Stack.Item,{children:(0,e.createComponentVNode)(2,C.ReverseMenu)}),(0,e.createComponentVNode)(2,a.Stack.Item,{children:(0,e.createComponentVNode)(2,a.Section,{children:(0,e.createComponentVNode)(2,k.PodLaunch)})})]})}),!V&&(0,e.createComponentVNode)(2,a.Stack.Item,{grow:3,children:(0,e.createComponentVNode)(2,f.ViewTabHolder)}),(0,e.createComponentVNode)(2,a.Stack.Item,{basis:"9em",children:(0,e.createComponentVNode)(2,a.Stack,{fill:!0,vertical:!0,direction:"column",children:[(0,e.createComponentVNode)(2,a.Stack.Item,{children:(0,e.createComponentVNode)(2,p.PodBays)}),(0,e.createComponentVNode)(2,a.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,u.Timing)}),!V&&(0,e.createComponentVNode)(2,a.Stack.Item,{children:(0,e.createComponentVNode)(2,y.PodSounds,{fill:!0})})]})}),(0,e.createComponentVNode)(2,a.Stack.Item,{basis:"11em",children:(0,e.createComponentVNode)(2,c.StylePage)})]})})]})})})}return d}()},16780:function(){"use strict"},12226:function(I,r,n){"use strict";r.__esModule=!0,r.Changelog=void 0;var e=n(89005),a=n(35840),t=n(72253),o=n(36036),p=n(98595),k=n(79140),y=b(n(83331)),S=b(n(52754));function b(i){return i&&i.__esModule?i:{default:i}}function C(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */C=function(){return h};var i,h={},V=Object.prototype,v=V.hasOwnProperty,s=Object.defineProperty||function(J,X,Q){J[X]=Q.value},g=typeof Symbol=="function"?Symbol:{},N=g.iterator||"@@iterator",x=g.asyncIterator||"@@asyncIterator",B=g.toStringTag||"@@toStringTag";function L(J,X,Q){return Object.defineProperty(J,X,{value:Q,enumerable:!0,configurable:!0,writable:!0}),J[X]}try{L({},"")}catch(J){L=function(Q,q,te){return Q[q]=te}}function T(J,X,Q,q){var te=X&&X.prototype instanceof F?X:F,fe=Object.create(te.prototype),ye=new Z(q||[]);return s(fe,"_invoke",{value:le(J,Q,ye)}),fe}function A(J,X,Q){try{return{type:"normal",arg:J.call(X,Q)}}catch(q){return{type:"throw",arg:q}}}h.wrap=T;var E="suspendedStart",w="suspendedYield",O="executing",M="completed",P={};function F(){}function R(){}function U(){}var j={};L(j,N,function(){return this});var W=Object.getPrototypeOf,K=W&&W(W(ae([])));K&&K!==V&&v.call(K,N)&&(j=K);var $=U.prototype=F.prototype=Object.create(j);function ne(J){["next","throw","return"].forEach(function(X){L(J,X,function(Q){return this._invoke(X,Q)})})}function Y(J,X){function Q(te,fe,ye,pe){var Le=A(J[te],J,fe);if(Le.type!=="throw"){var D=Le.arg,ie=D.value;return ie&&typeof ie=="object"&&v.call(ie,"__await")?X.resolve(ie.__await).then(function(se){Q("next",se,ye,pe)},function(se){Q("throw",se,ye,pe)}):X.resolve(ie).then(function(se){D.value=se,ye(D)},function(se){return Q("throw",se,ye,pe)})}pe(Le.arg)}var q;s(this,"_invoke",{value:function(){function te(fe,ye){function pe(){return new X(function(Le,D){Q(fe,ye,Le,D)})}return q=q?q.then(pe,pe):pe()}return te}()})}function le(J,X,Q){var q=E;return function(te,fe){if(q===O)throw Error("Generator is already running");if(q===M){if(te==="throw")throw fe;return{value:i,done:!0}}for(Q.method=te,Q.arg=fe;;){var ye=Q.delegate;if(ye){var pe=de(ye,Q);if(pe){if(pe===P)continue;return pe}}if(Q.method==="next")Q.sent=Q._sent=Q.arg;else if(Q.method==="throw"){if(q===E)throw q=M,Q.arg;Q.dispatchException(Q.arg)}else Q.method==="return"&&Q.abrupt("return",Q.arg);q=O;var Le=A(J,X,Q);if(Le.type==="normal"){if(q=Q.done?M:w,Le.arg===P)continue;return{value:Le.arg,done:Q.done}}Le.type==="throw"&&(q=M,Q.method="throw",Q.arg=Le.arg)}}}function de(J,X){var Q=X.method,q=J.iterator[Q];if(q===i)return X.delegate=null,Q==="throw"&&J.iterator.return&&(X.method="return",X.arg=i,de(J,X),X.method==="throw")||Q!=="return"&&(X.method="throw",X.arg=new TypeError("The iterator does not provide a '"+Q+"' method")),P;var te=A(q,J.iterator,X.arg);if(te.type==="throw")return X.method="throw",X.arg=te.arg,X.delegate=null,P;var fe=te.arg;return fe?fe.done?(X[J.resultName]=fe.value,X.next=J.nextLoc,X.method!=="return"&&(X.method="next",X.arg=i),X.delegate=null,P):fe:(X.method="throw",X.arg=new TypeError("iterator result is not an object"),X.delegate=null,P)}function oe(J){var X={tryLoc:J[0]};1 in J&&(X.catchLoc=J[1]),2 in J&&(X.finallyLoc=J[2],X.afterLoc=J[3]),this.tryEntries.push(X)}function re(J){var X=J.completion||{};X.type="normal",delete X.arg,J.completion=X}function Z(J){this.tryEntries=[{tryLoc:"root"}],J.forEach(oe,this),this.reset(!0)}function ae(J){if(J||J===""){var X=J[N];if(X)return X.call(J);if(typeof J.next=="function")return J;if(!isNaN(J.length)){var Q=-1,q=function(){function te(){for(;++Q=0;--te){var fe=this.tryEntries[te],ye=fe.completion;if(fe.tryLoc==="root")return q("end");if(fe.tryLoc<=this.prev){var pe=v.call(fe,"catchLoc"),Le=v.call(fe,"finallyLoc");if(pe&&Le){if(this.prev=0;--q){var te=this.tryEntries[q];if(te.tryLoc<=this.prev&&v.call(te,"finallyLoc")&&this.prev=0;--Q){var q=this.tryEntries[Q];if(q.finallyLoc===X)return this.complete(q.completion,q.afterLoc),re(q),P}}return J}(),catch:function(){function J(X){for(var Q=this.tryEntries.length-1;Q>=0;--Q){var q=this.tryEntries[Q];if(q.tryLoc===X){var te=q.completion;if(te.type==="throw"){var fe=te.arg;re(q)}return fe}}throw Error("illegal catch attempt")}return J}(),delegateYield:function(){function J(X,Q,q){return this.delegate={iterator:ae(X),resultName:Q,nextLoc:q},this.method==="next"&&(this.arg=i),P}return J}()},h}function c(i,h,V,v,s,g,N){try{var x=i[g](N),B=x.value}catch(L){return void V(L)}x.done?h(B):Promise.resolve(B).then(v,s)}function u(i){return function(){var h=this,V=arguments;return new Promise(function(v,s){var g=i.apply(h,V);function N(B){c(g,v,s,N,x,"next",B)}function x(B){c(g,v,s,N,x,"throw",B)}N(void 0)})}}function f(i,h){i.prototype=Object.create(h.prototype),i.prototype.constructor=i,l(i,h)}function l(i,h){return l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(V,v){return V.__proto__=v,V},l(i,h)}var d={add:{icon:"check-circle",color:"green"},admin:{icon:"user-shield",color:"purple"},balance:{icon:"balance-scale-right",color:"yellow"},bugfix:{icon:"bug",color:"green"},code_imp:{icon:"code",color:"green"},config:{icon:"cogs",color:"purple"},del:{icon:"minus",color:"red"},expansion:{icon:"check-circle",color:"green"},experiment:{icon:"radiation",color:"yellow"},image:{icon:"image",color:"green"},imageadd:{icon:"tg-image-plus",color:"green"},imagedel:{icon:"tg-image-minus",color:"red"},map:{icon:"map-location-dot",color:"green"},qol:{icon:"hand-holding-heart",color:"green"},refactor:{icon:"tools",color:"green"},rscadd:{icon:"check-circle",color:"green"},rscdel:{icon:"times-circle",color:"red"},server:{icon:"server",color:"purple"},sound:{icon:"volume-high",color:"green"},soundadd:{icon:"tg-sound-plus",color:"green"},sounddel:{icon:"tg-sound-minus",color:"red"},spellcheck:{icon:"spell-check",color:"green"},tgs:{icon:"toolbox",color:"purple"},tweak:{icon:"wrench",color:"green"},unknown:{icon:"info-circle",color:"label"},wip:{icon:"hammer",color:"orange"}},m=r.Changelog=function(i){function h(){var v;return v=i.call(this)||this,v.getData=function(s,g){g===void 0&&(g=1);var N=(0,t.useBackend)(v.context),x=N.act,B=v,L=6;if(g>L)return v.setData("Failed to load data after "+L+" attempts");x("get_month",{date:s}),fetch((0,k.resolveAsset)(s+".yml")).then(function(){var T=u(C().mark(function(){function A(E){var w,O,M;return C().wrap(function(){function P(F){for(;;)switch(F.prev=F.next){case 0:return F.next=2,E.text();case 2:w=F.sent,O=/^Cannot find/,O.test(w)?(M=50+g*50,B.setData("Loading changelog data"+".".repeat(g+3)),setTimeout(function(){B.getData(s,g+1)},M)):B.setData(S.default.load(w,{schema:S.default.CORE_SCHEMA}));case 5:case"end":return F.stop()}}return P}(),A)}return A}()));return function(A){return T.apply(this,arguments)}}())},v.state={data:"Loading changelog data...",selectedDate:"",selectedIndex:0},v.dateChoices=[],v}f(h,i);var V=h.prototype;return V.setData=function(){function v(s){this.setState({data:s})}return v}(),V.setSelectedDate=function(){function v(s){this.setState({selectedDate:s})}return v}(),V.setSelectedIndex=function(){function v(s){this.setState({selectedIndex:s})}return v}(),V.componentDidMount=function(){function v(){var s=this,g=(0,t.useBackend)(this.context),N=g.data.dates,x=N===void 0?[]:N;x&&(x.forEach(function(B){return s.dateChoices.push((0,y.default)(B,"mmmm yyyy",!0))}),this.setSelectedDate(this.dateChoices[0]),this.getData(x[0]))}return v}(),V.render=function(){function v(){var s=this,g=this.state,N=g.data,x=g.selectedDate,B=g.selectedIndex,L=(0,t.useBackend)(this.context),T=L.data.dates,A=this.dateChoices,E=A.length>0&&(0,e.createComponentVNode)(2,o.Stack,{mb:1,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{className:"Changelog__Button",disabled:B===0,icon:"chevron-left",onClick:function(){function F(){var R=B-1;return s.setData("Loading changelog data..."),s.setSelectedIndex(R),s.setSelectedDate(A[R]),window.scrollTo(0,document.body.scrollHeight||document.documentElement.scrollHeight),s.getData(T[R])}return F}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Dropdown,{displayText:x,options:A,onSelected:function(){function F(R){var U=A.indexOf(R);return s.setData("Loading changelog data..."),s.setSelectedIndex(U),s.setSelectedDate(R),window.scrollTo(0,document.body.scrollHeight||document.documentElement.scrollHeight),s.getData(T[U])}return F}(),selected:x,width:"150px"})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{className:"Changelog__Button",disabled:B===A.length-1,icon:"chevron-right",onClick:function(){function F(){var R=B+1;return s.setData("Loading changelog data..."),s.setSelectedIndex(R),s.setSelectedDate(A[R]),window.scrollTo(0,document.body.scrollHeight||document.documentElement.scrollHeight),s.getData(T[R])}return F}()})})]}),w=(0,e.createComponentVNode)(2,o.Section,{children:[(0,e.createVNode)(1,"h1",null,"Paradise Station",16),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Thanks to: ",16),(0,e.createTextVNode)("Baystation 12, /tg/station, /vg/station, NTstation, CDK Station devs, FacepunchStation, GoonStation devs, the original SpaceStation developers and Radithor for the title image. Also a thanks to anybody who has contributed who is not listed here :( Ask to be added here on irc.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createTextVNode)("Recent GitHub contributors can be found "),(0,e.createVNode)(1,"a",null,"here",16,{href:"https://github.com/ss220-space/Paradise/pulse/monthly"}),(0,e.createTextVNode)(".")],0),E]}),O=(0,e.createComponentVNode)(2,o.Section,{children:[E,(0,e.createVNode)(1,"h3",null,"GoonStation 13 Development Team",16),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Coders: ",16),(0,e.createTextVNode)("Stuntwaffle, Showtime, Pantaloons, Nannek, Keelin, Exadv1, hobnob, Justicefries, 0staf, sniperchance, AngriestIBM, BrianOBlivion")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Spriters: ",16),(0,e.createTextVNode)("Supernorn, Haruhi, Stuntwaffle, Pantaloons, Rho, SynthOrange, I Said No")],4),(0,e.createVNode)(1,"p",null,[(0,e.createTextVNode)("Traditional Games Space Station 13 is thankful to the GoonStation 13 Development Team for its work on the game up to the"),(0,e.createTextVNode)(" r4407 release. The changelog for changes up to r4407 can be seen "),(0,e.createVNode)(1,"a",null,"here",16,{href:"https://wiki.ss13.co/Pre-2016_Changelog#April_2010"}),(0,e.createTextVNode)(".")],0),(0,e.createVNode)(1,"p",null,["Except where otherwise noted, Goon Station 13 is licensed under a ",(0,e.createVNode)(1,"a",null,"Creative Commons Attribution-Noncommercial-Share Alike 3.0 License",16,{href:"https://creativecommons.org/licenses/by-nc-sa/3.0/"}),". Rights are currently extended to ",(0,e.createVNode)(1,"a",null,"SomethingAwful Goons",16,{href:"http://forums.somethingawful.com/"})," only."],0),(0,e.createVNode)(1,"h3",null,"Traditional Games Space Station 13 License",16),(0,e.createVNode)(1,"p",null,[(0,e.createTextVNode)("Some icons by"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"a",null,"Yusuke Kamiyamane",16,{href:"http://p.yusukekamiyamane.com/"}),(0,e.createTextVNode)(". All rights reserved. Licensed under a"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"a",null,"Creative Commons Attribution 3.0 License",16,{href:"http://creativecommons.org/licenses/by/3.0/"}),(0,e.createTextVNode)(".")],0)]}),M=/#\d+/,P=typeof N=="object"&&Object.keys(N).length>0&&Object.entries(N).reverse().map(function(F){var R=F[0],U=F[1];return(0,e.createComponentVNode)(2,o.Section,{title:(0,y.default)(R,"d mmmm yyyy",!0),children:(0,e.createComponentVNode)(2,o.Box,{ml:3,children:Object.entries(U).map(function(j){var W=j[0],K=j[1];return(0,e.createFragment)([(0,e.createVNode)(1,"h4",null,[W,(0,e.createTextVNode)(" changed:")],0),(0,e.createComponentVNode)(2,o.Box,{ml:3,children:(0,e.createComponentVNode)(2,o.Table,{children:K.map(function($){var ne=Object.keys($)[0],Y=$[ne],le=Y.match(M),de=(0,e.createComponentVNode)(2,o.Table.Cell,{className:(0,a.classes)(["Changelog__Cell","Changelog__Cell--Icon"]),children:(0,e.createComponentVNode)(2,o.Icon,{color:d[ne]?d[ne].color:d.unknown.color,name:d[ne]?d[ne].icon:d.unknown.icon})});return le!==null&&(0,e.createComponentVNode)(2,o.Table.Row,{children:[de,(0,e.createComponentVNode)(2,o.Table.Cell,{className:"Changelog__Cell",children:(0,e.createVNode)(1,"a",null,[" ",Y.charAt(0).toUpperCase()+Y.slice(1)," "],0,{href:"https://github.com/ss220-space/Paradise/pull/"+le[0].substring(1)})})]},ne+Y)||(0,e.createComponentVNode)(2,o.Table.Row,{children:[de,(0,e.createComponentVNode)(2,o.Table.Cell,{className:"Changelog__Cell",children:Y})]},ne+Y)})})})],4,W)})})},R)});return(0,e.createComponentVNode)(2,p.Window,{title:"Changelog",width:675,height:650,children:(0,e.createComponentVNode)(2,p.Window.Content,{scrollable:!0,children:[w,P,typeof N=="string"&&(0,e.createVNode)(1,"p",null,N,0),O]})})}return v}(),h}(e.Component)},91360:function(I,r,n){"use strict";r.__esModule=!0,r.CheckboxListInputModal=void 0;var e=n(89005),a=n(51057),t=n(19203),o=n(36036),p=n(72253),k=n(98595),y=r.CheckboxListInputModal=function(){function b(C,c){var u=(0,p.useBackend)(c),f=u.act,l=u.data,d=l.items,m=d===void 0?[]:d,i=l.message,h=i===void 0?"":i,V=l.init_value,v=l.timeout,s=l.title,g=(0,p.useLocalState)(c,"edittedItems",m),N=g[0],x=g[1],B=330+Math.ceil(h.length/3),L=function(){function T(A){A===void 0&&(A=null);var E=[].concat(N);E=E.map(function(w){return w.key===A.key?Object.assign({},w,{checked:!A.checked}):w}),x(E)}return T}();return(0,e.createComponentVNode)(2,k.Window,{title:s,width:325,height:B,children:[v&&(0,e.createComponentVNode)(2,a.Loader,{value:v}),(0,e.createComponentVNode)(2,k.Window.Content,{children:(0,e.createComponentVNode)(2,o.Section,{className:"ListInput__Section",fill:!0,title:h,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,S,{filteredItems:N,onClick:L})}),(0,e.createComponentVNode)(2,o.Stack.Item,{mt:.5,children:(0,e.createComponentVNode)(2,t.InputButtons,{input:N})})]})})})]})}return b}(),S=function(C,c){var u=C.filteredItems,f=C.onClick;return(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,tabIndex:0,children:u.map(function(l,d){return(0,e.createComponentVNode)(2,o.Button.Checkbox,{fluid:!0,id:d,onClick:function(){function m(){return f(l)}return m}(),checked:l.checked,style:{animation:"none",transition:"none"},children:l.key.replace(/^\w/,function(m){return m.toUpperCase()})},d)})})}},36108:function(I,r,n){"use strict";r.__esModule=!0,r.ChemDispenser=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(85870),p=n(98595),k=[1,5,10,20,30,50,100],y=[1,5,10],S=r.ChemDispenser=function(){function u(f,l){var d=(0,a.useBackend)(l),m=d.act,i=d.data,h=i.chemicals;return(0,e.createComponentVNode)(2,p.Window,{width:580,height:400+h.length*8,children:(0,e.createComponentVNode)(2,p.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,b),(0,e.createComponentVNode)(2,C),(0,e.createComponentVNode)(2,c)]})})})}return u}(),b=function(f,l){var d=(0,a.useBackend)(l),m=d.act,i=d.data,h=i.amount,V=i.energy,v=i.maxEnergy;return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"\u041F\u0430\u0440\u0430\u043C\u0435\u0442\u0440\u044B",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u042D\u043D\u0435\u0440\u0433\u0438\u044F",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:V,minValue:0,maxValue:v,ranges:{good:[v*.5,1/0],average:[v*.25,v*.5],bad:[-1/0,v*.25]},children:[V," / ",v," \u0415\u0434\u0438\u043D\u0438\u0446"]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u041E\u0431\u044A\u0451\u043C \u0441\u0438\u043D\u0442\u0435\u0437\u0430",verticalAlign:"middle",children:(0,e.createComponentVNode)(2,t.Stack,{children:k.map(function(s,g){return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,width:"15%",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"cog",selected:h===s,content:s,onClick:function(){function N(){return m("amount",{amount:s})}return N}()})},g)})})})]})})})},C=function(f,l){for(var d=(0,a.useBackend)(l),m=d.act,i=d.data,h=i.chemicals,V=h===void 0?[]:h,v=[],s=0;s<(V.length+1)%3;s++)v.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?"\u0421\u0438\u043D\u0442\u0435\u0437 \u043D\u0430\u043F\u0438\u0442\u043A\u043E\u0432":"\u0421\u0438\u043D\u0442\u0435\u0437 \u0440\u0435\u0430\u0433\u0435\u043D\u0442\u043E\u0432",children:[V.map(function(g,N){return(0,e.createComponentVNode)(2,t.Button,{m:.1,width:"32.5%",icon:"arrow-circle-down",overflow:"hidden",textOverflow:"ellipsis",content:g.title,style:{"margin-left":"2px"},onClick:function(){function x(){return m("dispense",{reagent:g.id})}return x}()},N)}),v.map(function(g,N){return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,basis:"25%"},N)})]})})},c=function(f,l){var d=(0,a.useBackend)(l),m=d.act,i=d.data,h=i.isBeakerLoaded,V=i.beakerCurrentVolume,v=i.beakerMaxVolume,s=i.beakerContents,g=s===void 0?[]:s;return(0,e.createComponentVNode)(2,t.Stack.Item,{height:16,children:(0,e.createComponentVNode)(2,t.Section,{title:"\u0401\u043C\u043A\u043E\u0441\u0442\u044C",fill:!0,scrollable:!0,buttons:(0,e.createComponentVNode)(2,t.Box,{children:[!!h&&(0,e.createComponentVNode)(2,t.Box,{inline:!0,color:"label",mr:2,children:[V," / ",v," \u0435\u0434\u0438\u043D\u0438\u0446"]}),(0,e.createComponentVNode)(2,t.Button,{icon:"eject",content:"\u0418\u0437\u0432\u043B\u0435\u0447\u044C",disabled:!h,onClick:function(){function N(){return m("ejectBeaker")}return N}()})]}),children:(0,e.createComponentVNode)(2,o.BeakerContents,{beakerLoaded:h,beakerContents:g,buttons:function(){function N(x){return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{content:"\u0418\u0437\u043E\u043B\u0438\u0440\u043E\u0432\u0430\u0442\u044C",icon:"compress-arrows-alt",onClick:function(){function B(){return m("remove",{reagent:x.id,amount:-1})}return B}()}),y.map(function(B,L){return(0,e.createComponentVNode)(2,t.Button,{content:B,onClick:function(){function T(){return m("remove",{reagent:x.id,amount:B})}return T}()},L)}),(0,e.createComponentVNode)(2,t.Button,{content:"\u0423\u0434\u0430\u043B\u0438\u0442\u044C \u0432\u0441\u0451",onClick:function(){function B(){return m("remove",{reagent:x.id,amount:x.volume})}return B}()}),(0,e.createComponentVNode)(2,t.Button,{content:"\u041E\u043A\u0440\u0443\u0433\u043B\u0438\u0442\u044C",tooltip:"\u0423\u0434\u0430\u043B\u044F\u0435\u0442 \u043B\u0438\u0448\u043D\u0435\u0435, \u043E\u043A\u0440\u0443\u0433\u043B\u044F\u044F \u043E\u0431\u044A\u0451\u043C \u0434\u043E "+Math.trunc(x.volume),icon:"arrow-circle-down",onClick:function(){function B(){return m("remove",{reagent:x.id,amount:-2})}return B}()})],0)}return N}()})})})}},13146:function(I,r,n){"use strict";r.__esModule=!0,r.ChemHeater=void 0;var e=n(89005),a=n(44879),t=n(72253),o=n(36036),p=n(85870),k=n(98595),y=r.ChemHeater=function(){function C(c,u){return(0,e.createComponentVNode)(2,k.Window,{width:450,height:275,children:(0,e.createComponentVNode)(2,k.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 C}(),S=function(c,u){var f=(0,t.useBackend)(u),l=f.act,d=f.data,m=d.targetTemp,i=d.targetTempReached,h=d.autoEject,V=d.isActive,v=d.currentTemp,s=d.isBeakerLoaded;return(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,title:"\u041F\u0430\u0440\u0430\u043C\u0435\u0442\u0440\u044B",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{content:"\u0410\u0432\u0442\u043E-\u0438\u0437\u0432\u043B\u0435\u0447\u0435\u043D\u0438\u0435",icon:h?"toggle-on":"toggle-off",selected:h,onClick:function(){function g(){return l("toggle_autoeject")}return g}()}),(0,e.createComponentVNode)(2,o.Button,{content:V?"\u0412\u043A\u043B\u044E\u0447\u0435\u043D\u043E":"\u0412\u044B\u043A\u043B\u044E\u0447\u0435\u043D\u043E",icon:"power-off",selected:V,disabled:!s,onClick:function(){function g(){return l("toggle_on")}return g}()})],4),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"\u0426\u0435\u043B\u0435\u0432\u0430\u044F \u0442\u0435\u043C\u043F\u0435\u0440\u0430\u0442\u0443\u0440\u0430",children:(0,e.createComponentVNode)(2,o.NumberInput,{width:"65px",unit:"K",step:10,stepPixelSize:3,value:(0,a.round)(m,0),minValue:0,maxValue:1e3,onDrag:function(){function g(N,x){return l("adjust_temperature",{target:x})}return g}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"\u0422\u0435\u043A\u0443\u0449\u0430\u044F \u0442\u0435\u043C\u043F\u0435\u0440\u0430\u0442\u0443\u0440\u0430",color:i?"good":"average",children:s&&(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:v,format:function(){function g(N){return(0,a.toFixed)(N)+" K"}return g}()})||"\u2014"})]})})})},b=function(c,u){var f=(0,t.useBackend)(u),l=f.act,d=f.data,m=d.isBeakerLoaded,i=d.beakerCurrentVolume,h=d.beakerMaxVolume,V=d.beakerContents;return(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{title:"\u0401\u043C\u043A\u043E\u0441\u0442\u044C",fill:!0,scrollable:!0,buttons:!!m&&(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,o.Box,{inline:!0,color:"label",mr:2,children:[i," / ",h," \u0435\u0434\u0438\u043D\u0438\u0446"]}),(0,e.createComponentVNode)(2,o.Button,{icon:"eject",content:"\u0418\u0437\u0432\u043B\u0435\u0447\u044C",onClick:function(){function v(){return l("eject_beaker")}return v}()})]}),children:(0,e.createComponentVNode)(2,p.BeakerContents,{beakerLoaded:m,beakerContents:V})})})}},56541:function(I,r,n){"use strict";r.__esModule=!0,r.ChemMaster=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=n(85870),k=n(3939),y=n(35840),S=["icon"];function b(B,L){if(B==null)return{};var T={};for(var A in B)if({}.hasOwnProperty.call(B,A)){if(L.includes(A))continue;T[A]=B[A]}return T}function C(B,L){B.prototype=Object.create(L.prototype),B.prototype.constructor=B,c(B,L)}function c(B,L){return c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(T,A){return T.__proto__=A,T},c(B,L)}var u=[1,5,10],f=function(L,T){var A=(0,a.useBackend)(T),E=A.act,w=A.data,O=L.args.analysis;return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:w.condi?"\u0410\u043D\u0430\u043B\u0438\u0437 \u0432\u0435\u0449\u0435\u0441\u0442\u0432\u0430":"\u0410\u043D\u0430\u043B\u0438\u0437 \u0440\u0435\u0430\u0433\u0435\u043D\u0442\u0430",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:"\u041D\u0430\u0437\u0432\u0430\u043D\u0438\u0435",children:O.name}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u041E\u043F\u0438\u0441\u0430\u043D\u0438\u0435",children:(O.desc||"").length>0?O.desc:"\u041D/\u0414"}),O.blood_type&&(0,e.createFragment)([(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0413\u0440\u0443\u043F\u043F\u0430 \u043A\u0440\u043E\u0432\u0438",children:O.blood_type}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0414\u041D\u041A-\u043A\u043E\u0434",className:"LabeledList__breakContents",children:O.blood_dna})],4),!w.condi&&(0,e.createComponentVNode)(2,t.Button,{icon:w.printing?"spinner":"print",disabled:w.printing,iconSpin:!!w.printing,ml:"0.5rem",content:"\u041F\u0435\u0447\u0430\u0442\u044C",onClick:function(){function M(){return E("print",{idx:O.idx,beaker:L.args.beaker})}return M}()})]})})})})},l=function(B){return B[B.ToDisposals=0]="ToDisposals",B[B.ToBeaker=1]="ToBeaker",B}(l||{}),d=r.ChemMaster=function(){function B(L,T){return(0,e.createComponentVNode)(2,o.Window,{width:575,height:650,children:[(0,e.createComponentVNode)(2,k.ComplexModal),(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,m),(0,e.createComponentVNode)(2,i),(0,e.createComponentVNode)(2,h),(0,e.createComponentVNode)(2,x)]})})]})}return B}(),m=function(L,T){var A=(0,a.useBackend)(T),E=A.act,w=A.data,O=w.beaker,M=w.beaker_reagents,P=w.buffer_reagents,F=P.length>0;return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"\u0401\u043C\u043A\u043E\u0441\u0442\u044C",fill:!0,scrollable:!0,buttons:F?(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"eject",disabled:!O,content:"\u0418\u0437\u0432\u043B\u0435\u0447\u044C \u0451\u043C\u043A\u043E\u0441\u0442\u044C \u0438 \u043E\u0447\u0438\u0441\u0442\u0438\u0442\u044C \u0431\u0443\u0444\u0435\u0440",onClick:function(){function R(){return E("eject")}return R}()}):(0,e.createComponentVNode)(2,t.Button,{icon:"eject",disabled:!O,content:"\u0418\u0437\u0432\u043B\u0435\u0447\u044C \u0451\u043C\u043A\u043E\u0441\u0442\u044C \u0438 \u043E\u0447\u0438\u0441\u0442\u0438\u0442\u044C \u0431\u0443\u0444\u0435\u0440",onClick:function(){function R(){return E("eject")}return R}()}),children:O?(0,e.createComponentVNode)(2,p.BeakerContents,{beakerLoaded:!0,beakerContents:M,buttons:function(){function R(U,j){return(0,e.createComponentVNode)(2,t.Box,{mb:j0?(0,e.createComponentVNode)(2,p.BeakerContents,{beakerLoaded:!0,beakerContents:M,buttons:function(){function P(F,R){return(0,e.createComponentVNode)(2,t.Box,{mb:R0&&(F=P.map(function(R){var U=R.id,j=R.sprite;return(0,e.createComponentVNode)(2,g,{icon:j,color:"translucent",onClick:function(){function W(){return E("set_sprite_style",{production_mode:O,style:U})}return W}(),selected:M===U},U)})),(0,e.createComponentVNode)(2,s,{productionData:L.productionData,children:F&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0422\u0438\u043F",children:F})})},x=function(L,T){var A=(0,a.useBackend)(T),E=A.act,w=A.data,O=w.loaded_pill_bottle_style,M=w.containerstyles,P=w.loaded_pill_bottle,F={width:"20px",height:"20px"},R=M.map(function(U){var j=U.color,W=U.name,K=O===j;return(0,e.createComponentVNode)(2,t.Button,{style:{position:"relative",width:F.width,height:F.height},onClick:function(){function $(){return E("set_container_style",{style:j})}return $}(),icon:K&&"check",iconStyle:{position:"relative","z-index":1},tooltip:W,tooltipPosition:"top",children:[!K&&(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:F.width,height:F.height,"background-color":j,opacity:.6,filter:"alpha(opacity=60)"}})]},j)});return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"\u041A\u0430\u0441\u0442\u043E\u043C\u0438\u0437\u0430\u0446\u0438\u044F \u043A\u043E\u043D\u0442\u0435\u0439\u043D\u0435\u0440\u0430",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"eject",disabled:!P,content:"\u0418\u0437\u0432\u043B\u0435\u0447\u044C \u043A\u043E\u043D\u0442\u0435\u0439\u043D\u0435\u0440",onClick:function(){function U(){return E("ejectp")}return U}()}),children:P?(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0421\u0442\u0438\u043B\u044C",children:[(0,e.createComponentVNode)(2,t.Button,{style:{width:F.width,height:F.height},icon:"tint-slash",onClick:function(){function U(){return E("clear_container_style")}return U}(),selected:!O,tooltip:"\u041F\u043E \u0443\u043C\u043E\u043B\u0447\u0430\u043D\u0438\u044E",tooltipPosition:"top"}),R]})}):(0,e.createComponentVNode)(2,t.Box,{color:"label",children:"\u041A\u043E\u043D\u0442\u0435\u0439\u043D\u0435\u0440 \u043E\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u0435\u0442."})})})};(0,k.modalRegisterBodyOverride)("analyze",f)},37173:function(I,r,n){"use strict";r.__esModule=!0,r.CloningConsole=void 0;var e=n(89005),a=n(44879),t=n(72253),o=n(36036),p=n(76910),k=n(3939),y=n(98595),S=n(79140),b=function(h,V){var v=(0,t.useBackend)(V),s=v.act,g=v.data,N=h.args,x=N.activerecord,B=N.realname,L=N.health,T=N.unidentity,A=N.strucenzymes,E=L.split(" - ");return(0,e.createComponentVNode)(2,o.Section,{level:2,m:"-1rem",pb:"1rem",title:"\u0417\u0430\u043F\u0438\u0441\u0438 \u0441\u0443\u0431\u044A\u0435\u043A\u0442\u0430",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"\u0418\u043C\u044F",children:B}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"\u041F\u043E\u0432\u0440\u0435\u0436\u0434\u0435\u043D\u0438\u044F",children:E.length>1?(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Box,{color:p.COLORS.damageType.oxy,inline:!0,children:E[0]}),(0,e.createTextVNode)("\xA0|\xA0"),(0,e.createComponentVNode)(2,o.Box,{color:p.COLORS.damageType.toxin,inline:!0,children:E[2]}),(0,e.createTextVNode)("\xA0|\xA0"),(0,e.createComponentVNode)(2,o.Box,{color:p.COLORS.damageType.brute,inline:!0,children:E[3]}),(0,e.createTextVNode)("\xA0|\xA0"),(0,e.createComponentVNode)(2,o.Box,{color:p.COLORS.damageType.burn,inline:!0,children:E[1]})],4):(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"\u041D\u0435\u0438\u0437\u0432\u0435\u0441\u0442\u043D\u043E"})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"\u0423\u0418",className:"LabeledList__breakContents",children:T}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"\u0421\u0424",className:"LabeledList__breakContents",children:A}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Disk",children:[(0,e.createComponentVNode)(2,o.Button.Confirm,{disabled:!g.disk,icon:"arrow-circle-down",content:"\u0418\u043C\u043F\u043E\u0440\u0442 \u0434\u0430\u043D\u043D\u044B\u0445",onClick:function(){function w(){return s("disk",{option:"load"})}return w}()}),(0,e.createComponentVNode)(2,o.Button,{disabled:!g.disk,icon:"arrow-circle-up",content:"\u042D\u043A\u0441\u043F\u043E\u0440\u0442\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0423\u0418",onClick:function(){function w(){return s("disk",{option:"save",savetype:"ui"})}return w}()}),(0,e.createComponentVNode)(2,o.Button,{disabled:!g.disk,icon:"arrow-circle-up",content:"\u042D\u043A\u0441\u043F\u043E\u0440\u0442\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0423\u0418 \u0438 \u0423\u0424",onClick:function(){function w(){return s("disk",{option:"save",savetype:"ue"})}return w}()}),(0,e.createComponentVNode)(2,o.Button,{disabled:!g.disk,icon:"arrow-circle-up",content:"\u042D\u043A\u0441\u043F\u043E\u0440\u0442\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0421\u0424",onClick:function(){function w(){return s("disk",{option:"save",savetype:"se"})}return w}()})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"\u0414\u0435\u0439\u0441\u0442\u0432\u0438\u044F",children:[(0,e.createComponentVNode)(2,o.Button,{disabled:!g.podready,icon:"user-plus",content:"\u041A\u043B\u043E\u043D\u0438\u0440\u043E\u0432\u0430\u0442\u044C",onClick:function(){function w(){return s("clone",{ref:x})}return w}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"trash",content:"\u0423\u0434\u0430\u043B\u0438\u0442\u044C",onClick:function(){function w(){return s("del_rec")}return w}()})]})]})})},C=r.CloningConsole=function(){function i(h,V){var v=(0,t.useBackend)(V),s=v.act,g=v.data,N=g.menu;return(0,k.modalRegisterBodyOverride)("view_rec",b),(0,e.createComponentVNode)(2,y.Window,{width:640,height:520,children:[(0,e.createComponentVNode)(2,k.ComplexModal,{maxWidth:"75%",maxHeight:"75%"}),(0,e.createComponentVNode)(2,y.Window.Content,{className:"Layout__content--flexColumn",children:[(0,e.createComponentVNode)(2,d),(0,e.createComponentVNode)(2,m),(0,e.createComponentVNode)(2,c),(0,e.createComponentVNode)(2,o.Section,{noTopPadding:!0,flexGrow:"1",children:(0,e.createComponentVNode)(2,u)})]})]})}return i}(),c=function(h,V){var v=(0,t.useBackend)(V),s=v.act,g=v.data,N=g.menu;return(0,e.createComponentVNode)(2,o.Tabs,{children:[(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:N===1,icon:"home",onClick:function(){function x(){return s("menu",{num:1})}return x}(),children:"\u041E\u0441\u043D\u043E\u0432\u043D\u043E\u0435"}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:N===2,icon:"folder",onClick:function(){function x(){return s("menu",{num:2})}return x}(),children:"\u0417\u0430\u043F\u0438\u0441\u0438"})]})},u=function(h,V){var v=(0,t.useBackend)(V),s=v.data,g=s.menu,N;return g===1?N=(0,e.createComponentVNode)(2,f):g===2&&(N=(0,e.createComponentVNode)(2,l)),N},f=function(h,V){var v=(0,t.useBackend)(V),s=v.act,g=v.data,N=g.loading,x=g.scantemp,B=g.occupant,L=g.locked,T=g.can_brainscan,A=g.scan_mode,E=g.numberofpods,w=g.pods,O=g.selected_pod,M=L&&!!B;return(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Section,{title:"\u0421\u043A\u0430\u043D\u0435\u0440",level:"2",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Box,{inline:!0,color:"label",children:"\u0411\u043B\u043E\u043A\u0438\u0440\u043E\u0432\u043A\u0430 \u0441\u043A\u0430\u043D\u0435\u0440\u0430:\xA0"}),(0,e.createComponentVNode)(2,o.Button,{disabled:!B,selected:M,icon:M?"toggle-on":"toggle-off",content:M?"\u0410\u043A\u0442\u0438\u0432\u043D\u0430":"\u041D\u0435\u0430\u043A\u0442\u0438\u0432\u043D\u0430",onClick:function(){function P(){return s("lock")}return P}()}),(0,e.createComponentVNode)(2,o.Button,{disabled:M||!B,icon:"user-slash",content:"\u0418\u0437\u0432\u043B\u0435\u0447\u044C \u0441\u0443\u0431\u044A\u0435\u043A\u0442",onClick:function(){function P(){return s("eject")}return P}()})],4),children:[(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"\u0421\u043E\u0441\u0442\u043E\u044F\u043D\u0438\u0435",children:N?(0,e.createComponentVNode)(2,o.Box,{color:"average",children:[(0,e.createComponentVNode)(2,o.Icon,{name:"spinner",spin:!0}),"\xA0 \u0421\u043A\u0430\u043D\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u0435..."]}):(0,e.createComponentVNode)(2,o.Box,{color:x.color,children:x.text})}),!!T&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"\u0420\u0435\u0436\u0438\u043C \u0441\u043A\u0430\u043D\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u044F",children:(0,e.createComponentVNode)(2,o.Button,{icon:A?"brain":"male",content:A?"\u041C\u043E\u0437\u0433":"\u0422\u0435\u043B\u043E",onClick:function(){function P(){return s("toggle_mode")}return P}()})})]}),(0,e.createComponentVNode)(2,o.Button,{disabled:!B||N,icon:"user",content:"\u0421\u043A\u0430\u043D\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0441\u0443\u0431\u044A\u0435\u043A\u0442",mt:"0.5rem",mb:"0",onClick:function(){function P(){return s("scan")}return P}()})]}),(0,e.createComponentVNode)(2,o.Section,{title:"\u041A\u0430\u043F\u0441\u0443\u043B\u044B",level:"2",children:E?w.map(function(P,F){var R;return P.status==="cloning"?R=(0,e.createComponentVNode)(2,o.ProgressBar,{min:"0",max:"100",value:P.progress/100,ranges:{good:[.75,1/0],average:[.25,.75],bad:[-1/0,.25]},mt:"0.5rem",children:(0,e.createComponentVNode)(2,o.Box,{textAlign:"center",children:(0,a.round)(P.progress,0)+"%"})}):P.status==="mess"?R=(0,e.createComponentVNode)(2,o.Box,{bold:!0,color:"bad",mt:"0.5rem",children:"\u041E\u0448\u0438\u0431\u043A\u0430"}):R=(0,e.createComponentVNode)(2,o.Button,{selected:O===P.pod,icon:O===P.pod&&"check",content:"\u0412\u044B\u0431\u0440\u0430\u0442\u044C",mt:"0.5rem",onClick:function(){function U(){return s("selectpod",{ref:P.pod})}return U}()}),(0,e.createComponentVNode)(2,o.Box,{width:"64px",textAlign:"center",display:"inline-block",mr:"0.5rem",children:[(0,e.createVNode)(1,"img",null,null,1,{src:(0,S.resolveAsset)("pod_"+P.status+".gif"),style:{width:"100%","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createComponentVNode)(2,o.Box,{color:"label",children:["\u041A\u0430\u043F\u0441\u0443\u043B\u0430 \u2116",F+1]}),(0,e.createComponentVNode)(2,o.Box,{bold:!0,color:P.biomass>=150?"good":"bad",inline:!0,children:[(0,e.createComponentVNode)(2,o.Icon,{name:P.biomass>=150?"circle":"circle-o"}),"\xA0",P.biomass]}),R]},F)}):(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"\u041A\u0430\u043F\u0441\u0443\u043B\u044B \u043D\u0435 \u043E\u0431\u043D\u0430\u0440\u0443\u0436\u0435\u043D\u044B. \u041A\u043B\u043E\u043D\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u0435 \u043D\u0435\u0432\u043E\u0437\u043C\u043E\u0436\u043D\u043E."})})],4)},l=function(h,V){var v=(0,t.useBackend)(V),s=v.act,g=v.data,N=g.records;return N.length?(0,e.createComponentVNode)(2,o.Box,{mt:"0.5rem",children:N.map(function(x,B){return(0,e.createComponentVNode)(2,o.Button,{icon:"user",mb:"0.5rem",content:x.realname,onClick:function(){function L(){return s("view_rec",{ref:x.record})}return L}()},B)})}):(0,e.createComponentVNode)(2,o.Flex,{height:"100%",children:(0,e.createComponentVNode)(2,o.Flex.Item,{grow:"1",align:"center",textAlign:"center",color:"label",children:[(0,e.createComponentVNode)(2,o.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,e.createVNode)(1,"br"),"\u0417\u0430\u043F\u0438\u0441\u0438 \u043D\u0435 \u043E\u0431\u043D\u0430\u0440\u0443\u0436\u0435\u043D\u044B."]})})},d=function(h,V){var v,s=(0,t.useBackend)(V),g=s.act,N=s.data,x=N.temp;if(!(!x||!x.text||x.text.length<=0)){var B=(v={},v[x.style]=!0,v);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.NoticeBox,Object.assign({},B,{children:[(0,e.createComponentVNode)(2,o.Box,{display:"inline-block",verticalAlign:"middle",children:x.text}),(0,e.createComponentVNode)(2,o.Button,{icon:"times-circle",float:"right",onClick:function(){function L(){return g("cleartemp")}return L}()}),(0,e.createComponentVNode)(2,o.Box,{clear:"both"})]})))}},m=function(h,V){var v=(0,t.useBackend)(V),s=v.act,g=v.data,N=g.scanner,x=g.numberofpods,B=g.autoallowed,L=g.autoprocess,T=g.disk;return(0,e.createComponentVNode)(2,o.Section,{title:"\u0421\u043E\u0441\u0442\u043E\u044F\u043D\u0438\u0435",buttons:(0,e.createFragment)([!!B&&(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Box,{inline:!0,color:"label",children:"\u0410\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u043E\u0435 \u043A\u043B\u043E\u043D\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u0435:\xA0"}),(0,e.createComponentVNode)(2,o.Button,{selected:L,icon:L?"toggle-on":"toggle-off",content:L?"\u0412\u043A\u043B\u044E\u0447\u0435\u043D\u043E":"\u0412\u044B\u043A\u043B\u044E\u0447\u0435\u043D\u043E",onClick:function(){function A(){return s("autoprocess",{on:L?0:1})}return A}()})],4),(0,e.createComponentVNode)(2,o.Button,{disabled:!T,icon:"eject",content:"\u0418\u0437\u0432\u043B\u0435\u0447\u044C \u0434\u0438\u0441\u043A\u0435\u0442\u0443",onClick:function(){function A(){return s("disk",{option:"eject"})}return A}()})],0),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"\u0421\u043A\u0430\u043D\u0435\u0440",children:N?(0,e.createComponentVNode)(2,o.Box,{color:"good",children:"\u041F\u043E\u0434\u043A\u043B\u044E\u0447\u0451\u043D"}):(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"\u041D\u0435 \u043F\u043E\u0434\u043A\u043B\u044E\u0447\u0451\u043D"})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"\u041A\u0430\u043F\u0441\u0443\u043B\u044B",children:x?(0,e.createComponentVNode)(2,o.Box,{color:"good",children:["\u041A\u043E\u043B\u0438\u0447\u0435\u0441\u0442\u0432\u043E \u043F\u043E\u0434\u043A\u043B\u044E\u0447\u0451\u043D\u043D\u044B\u0445 \u043A\u0430\u043F\u0441\u0443\u043B - ",x]}):(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"\u041D\u0435 \u043F\u043E\u0434\u043A\u043B\u044E\u0447\u0435\u043D\u044B"})})]})})}},18259:function(I,r,n){"use strict";r.__esModule=!0,r.CoinMint=void 0;var e=n(89005),a=n(35840),t=n(72253),o=n(36036),p=n(98595),k=r.CoinMint=function(){function y(S,b){var C=(0,t.useBackend)(b),c=C.act,u=C.data,f=u.materials,l=u.moneyBag,d=u.moneyBagContent,m=u.moneyBagMaxContent,i=(l?210:138)+Math.ceil(f.length/4)*64;return(0,e.createComponentVNode)(2,p.Window,{width:256,height:i,title:"\u041C\u043E\u043D\u0435\u0442\u043D\u044B\u0439 \u043F\u0440\u0435\u0441\u0441",children:(0,e.createComponentVNode)(2,p.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:["\u041F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u043E \u043C\u043E\u043D\u0435\u0442: ",u.totalCoins]})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,title:"\u0422\u0438\u043F \u041C\u043E\u043D\u0435\u0442",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"power-off",color:u.active&&"bad",tooltip:!l&&"\u041D\u0443\u0436\u0435\u043D \u0434\u0435\u043D\u0435\u0436\u043D\u044B\u0439 \u043C\u0435\u0448\u043E\u043A",disabled:!l,onClick:function(){function h(){return c("activate")}return h}()}),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:u.maxMaterials,value:u.totalMaterials})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{icon:"eject",tooltip:"\u0418\u0437\u0432\u0432\u043B\u0435\u0447\u044C \u0432\u044B\u0431\u0440\u0430\u043D\u044B\u0439 \u043C\u0430\u0442\u0435\u0440\u0438\u0430\u043B",onClick:function(){function h(){return c("ejectMat")}return h}()})})]})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:f.map(function(h){return(0,e.createComponentVNode)(2,o.Button,{bold:!0,inline:!0,m:.2,textAlign:"center",color:"translucent",selected:h.id===u.chosenMaterial,tooltip:h.name,content:(0,e.createComponentVNode)(2,o.Stack,{vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{className:(0,a.classes)(["materials32x32",h.id])}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:h.amount})]}),onClick:function(){function V(){return c("selectMaterial",{material:h.id})}return V}()},h.id)})})]})})}),!!l&&(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Section,{title:"\u0414\u0435\u043D\u0435\u0436\u043D\u044B\u0439 \u043C\u0435\u0448\u043E\u043A",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"eject",content:"\u0418\u0437\u0432\u043B\u0435\u0447\u044C",disabled:u.active,onClick:function(){function h(){return c("ejectBag")}return h}()}),children:(0,e.createComponentVNode)(2,o.ProgressBar,{width:"100%",minValue:0,maxValue:m,value:d,children:[d," / ",m]})})})]})})})}return y}()},93858:function(I,r,n){"use strict";r.__esModule=!0,r.HexColorInput=r.ColorSelector=r.ColorPickerModal=r.ColorInput=void 0;var e=n(89005),a=n(51057),t=n(72253),o=n(36036),p=n(98595),k=n(44879),y=n(14448),S=n(4454),b=n(35840),C=n(9394),c=n(19203),u=["prefixed","alpha","color","fluid","onChange"];/** * @file * @copyright 2023 itsmeow * @license MIT