i?"average":d>c?"bad":"good"}},74293:function(O,u,n){"use strict";n.r(u),n.d(u,{CONTTAB:function(){return t},HOMETAB:function(){return e},MANITAB:function(){return a},MESSSUBTAB:function(){return s},MESSTAB:function(){return r},NEWSTAB:function(){return x},NOTETAB:function(){return g},PHONTAB:function(){return o},SETTTAB:function(){return l},WTHRTAB:function(){return d},notFound:function(){return c},tabs:function(){return i}});var e=1,o=2,t=3,r=4,s=40,x=5,g=6,d=7,a=8,l=9,i=[e,o,t,r,s,x,g,d,a,l];function c(f){return i.includes(f)}},42320:function(O,u,n){"use strict";n.r(u),n.d(u,{Communicator:function(){return C}});var e=n(20462),o=n(61358),t=n(7081),r=n(88569),s=n(15581),x=n(58044),g=n(59546),d=n(28215),a=n(46873),l=n(51445),i=n(26217),c=n(28953),f=n(47106),m=n(10674),v=n(4435),E=n(81450),j=n(74293),C=function(){var P=function(Z){F(Z)},M=(0,t.Oc)(),_=M.act,S=M.data,T=S.currentTab,b=S.video_comm,L=[],W=(0,o.useState)(0),k=W[0],$=W[1],w=(0,o.useState)(!1),V=w[0],F=w[1];return L[j.tabs[0]]=(0,e.jsx)(a.CommunicatorHomeTab,{}),L[j.tabs[1]]=(0,e.jsx)(m.CommunicatorPhoneTab,{}),L[j.tabs[2]]=(0,e.jsx)(g.CommunicatorContactTab,{}),L[j.tabs[3]]=(0,e.jsx)(i.CommunicatorMessageTab,{}),L[j.tabs[4]]=(0,e.jsx)(l.CommunicatorMessageSubTab,{clipboardMode:V,onClipboardMode:P}),L[j.tabs[5]]=(0,e.jsx)(c.CommunicatorNewsTab,{}),L[j.tabs[6]]=(0,e.jsx)(f.CommunicatorNoteTab,{}),L[j.tabs[7]]=(0,e.jsx)(E.CommunicatorWeatherTab,{}),L[j.tabs[8]]=(0,e.jsx)(x.CrewManifestContent,{}),L[j.tabs[9]]=(0,e.jsx)(v.CommunicatorSettingsTab,{}),(0,e.jsx)(s.p8,{width:475,height:700,children:(0,e.jsxs)(s.p8.Content,{children:[b&&(0,e.jsx)(d.VideoComm,{videoSetting:k,setVideoSetting:$}),(!b||k!==0)&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(d.CommunicatorHeader,{}),(0,e.jsx)(r.az,{height:"88%",mb:1,style:{overflowY:"auto"},children:L[T]||(0,j.notFound)(T)&&(0,e.jsx)(d.TemplateError,{currentTab:T})}),(0,e.jsx)(d.CommunicatorFooter,{videoSetting:k,setVideoSetting:$})]})]})})}},96273:function(O,u,n){"use strict";n.r(u)},62311:function(O,u,n){"use strict";n.r(u),n.d(u,{CfStep1:function(){return r}});var e=n(20462),o=n(7081),t=n(88569),r=function(s){var x=(0,o.Oc)().act;return(0,e.jsxs)(t.wn,{title:"Step 1",minHeight:"306px",children:[(0,e.jsx)(t.az,{mt:5,bold:!0,textAlign:"center",fontSize:"40px",children:"Choose your Device"}),(0,e.jsx)(t.az,{mt:3,children:(0,e.jsx)(t.XI,{width:"100%",children:(0,e.jsxs)(t.XI.Row,{children:[(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.$n,{fluid:!0,icon:"laptop",textAlign:"center",fontSize:"30px",lineHeight:2,onClick:function(){return x("pick_device",{pick:"1"})},children:"Laptop"})}),(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.$n,{fluid:!0,icon:"tablet-alt",textAlign:"center",fontSize:"30px",lineHeight:2,onClick:function(){return x("pick_device",{pick:"2"})},children:"Tablet"})})]})})})]})}},78820:function(O,u,n){"use strict";n.r(u),n.d(u,{CfStep2:function(){return r}});var e=n(20462),o=n(7081),t=n(88569),r=function(s){var x=(0,o.Oc)(),g=x.act,d=x.data,a=d.totalprice,l=d.hw_battery,i=d.hw_disk,c=d.hw_netcard,f=d.hw_nanoprint,m=d.hw_card,v=d.devtype,E=d.hw_cpu,j=d.hw_tesla;return(0,e.jsxs)(t.wn,{title:"Step 2: Customize your device",minHeight:"282px",buttons:(0,e.jsxs)(t.az,{bold:!0,color:"good",children:[a,"\u20AE"]}),children:[(0,e.jsxs)(t.XI,{children:[(0,e.jsxs)(t.XI.Row,{children:[(0,e.jsxs)(t.XI.Cell,{bold:!0,position:"relative",children:["Battery:",(0,e.jsx)(t.m_,{content:"\n Allows your device to operate without external utility power\n source. Advanced batteries increase battery life.\n ",position:"right"})]}),(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.$n,{selected:l===1,onClick:function(){return g("hw_battery",{battery:"1"})},children:"Standard"})}),(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.$n,{selected:l===2,onClick:function(){return g("hw_battery",{battery:"2"})},children:"Upgraded"})}),(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.$n,{selected:l===3,onClick:function(){return g("hw_battery",{battery:"3"})},children:"Advanced"})})]}),(0,e.jsxs)(t.XI.Row,{children:[(0,e.jsxs)(t.XI.Cell,{bold:!0,position:"relative",children:["Hard Drive:",(0,e.jsx)(t.m_,{content:"\n Stores file on your device. Advanced drives can store more\n files, but use more power, shortening battery life.\n ",position:"right"})]}),(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.$n,{selected:i===1,onClick:function(){return g("hw_disk",{disk:"1"})},children:"Standard"})}),(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.$n,{selected:i===2,onClick:function(){return g("hw_disk",{disk:"2"})},children:"Upgraded"})}),(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.$n,{selected:i===3,onClick:function(){return g("hw_disk",{disk:"3"})},children:"Advanced"})})]}),(0,e.jsxs)(t.XI.Row,{children:[(0,e.jsxs)(t.XI.Cell,{bold:!0,position:"relative",children:["Network Card:",(0,e.jsx)(t.m_,{content:"\n Allows your device to wirelessly connect to stationwide NTNet\n network. Basic cards are limited to on-station use, while\n advanced cards can operate anywhere near the station, which\n includes asteroid outposts\n ",position:"right"})]}),(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.$n,{selected:c===0,onClick:function(){return g("hw_netcard",{netcard:"0"})},children:"None"})}),(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.$n,{selected:c===1,onClick:function(){return g("hw_netcard",{netcard:"1"})},children:"Standard"})}),(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.$n,{selected:c===2,onClick:function(){return g("hw_netcard",{netcard:"2"})},children:"Advanced"})})]}),(0,e.jsxs)(t.XI.Row,{children:[(0,e.jsxs)(t.XI.Cell,{bold:!0,position:"relative",children:["Nano Printer:",(0,e.jsx)(t.m_,{content:"\n A device that allows for various paperwork manipulations,\n such as, scanning of documents or printing new ones.\n This device was certified EcoFriendlyPlus and is capable of\n recycling existing paper for printing purposes.\n ",position:"right"})]}),(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.$n,{selected:f===0,onClick:function(){return g("hw_nanoprint",{print:"0"})},children:"None"})}),(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.$n,{selected:f===1,onClick:function(){return g("hw_nanoprint",{print:"1"})},children:"Standard"})})]}),(0,e.jsxs)(t.XI.Row,{children:[(0,e.jsxs)(t.XI.Cell,{bold:!0,position:"relative",children:["Secondary Card Reader:",(0,e.jsx)(t.m_,{content:"\n Adds a secondary RFID card reader, for manipulating or\n reading from a second standard RFID card.\n Please note that a primary card reader is necessary to\n allow the device to read your identification, but one\n is included in the base price.\n ",position:"right"})]}),(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.$n,{selected:m===0,onClick:function(){return g("hw_card",{card:"0"})},children:"None"})}),(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.$n,{selected:m===1,onClick:function(){return g("hw_card",{card:"1"})},children:"Standard"})})]}),v!==2&&(0,e.jsxs)(t.XI.Row,{children:[(0,e.jsxs)(t.XI.Cell,{bold:!0,position:"relative",children:["Processor Unit:",(0,e.jsx)(t.m_,{content:"\n A component critical for your device's functionality.\n It allows you to run programs from your hard drive.\n Advanced CPUs use more power, but allow you to run\n more programs on background at once.\n ",position:"right"})]}),(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.$n,{selected:E===1,onClick:function(){return g("hw_cpu",{cpu:"1"})},children:"Standard"})}),(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.$n,{selected:E===2,onClick:function(){return g("hw_cpu",{cpu:"2"})},children:"Advanced"})})]}),(0,e.jsxs)(t.XI.Row,{children:[(0,e.jsxs)(t.XI.Cell,{bold:!0,position:"relative",children:["Tesla Relay:",(0,e.jsx)(t.m_,{content:"\n An advanced wireless power relay that allows your device\n to connect to nearby area power controller to provide\n alternative power source. This component is currently\n unavailable on tablet computers due to size restrictions.\n ",position:"right"})]}),(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.$n,{selected:j===0,onClick:function(){return g("hw_tesla",{tesla:"0"})},children:"None"})}),(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.$n,{selected:j===1,onClick:function(){return g("hw_tesla",{tesla:"1"})},children:"Standard"})})]})]}),(0,e.jsx)(t.$n,{fluid:!0,mt:3,color:"good",textAlign:"center",fontSize:"18px",lineHeight:2,onClick:function(){return g("confirm_order")},children:"Confirm Order"})]})}},3777:function(O,u,n){"use strict";n.r(u),n.d(u,{CfStep3:function(){return t}});var e=n(20462),o=n(88569),t=function(r){var s=r.totalprice;return(0,e.jsxs)(o.wn,{title:"Step 3: Payment",minHeight:"282px",children:[(0,e.jsx)(o.az,{italic:!0,textAlign:"center",fontSize:"20px",children:"Your device is ready for fabrication..."}),(0,e.jsxs)(o.az,{bold:!0,mt:2,textAlign:"center",fontSize:"16px",children:[(0,e.jsx)(o.az,{inline:!0,children:"Please swipe your ID now to authorize payment of:"}),"\xA0",(0,e.jsxs)(o.az,{inline:!0,color:"good",children:[s,"\u20AE"]})]})]})}},44430:function(O,u,n){"use strict";n.r(u),n.d(u,{CfStep4:function(){return t}});var e=n(20462),o=n(88569),t=function(r){return(0,e.jsxs)(o.wn,{minHeight:"282px",children:[(0,e.jsx)(o.az,{bold:!0,textAlign:"center",fontSize:"28px",mt:10,children:"Thank you for your purchase!"}),(0,e.jsx)(o.az,{italic:!0,mt:1,textAlign:"center",children:"If you experience any difficulties with your new device, please contact your local network administrator."})]})}},36229:function(O,u,n){"use strict";n.r(u),n.d(u,{ComputerFabricator:function(){return a}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),s=n(62311),x=n(78820),g=n(3777),d=n(44430),a=function(l){var i=(0,o.Oc)(),c=i.act,f=i.data,m=f.state,v=f.totalprice,E=[];return E[0]=(0,e.jsx)(s.CfStep1,{}),E[1]=(0,e.jsx)(x.CfStep2,{}),E[2]=(0,e.jsx)(g.CfStep3,{totalprice:v}),E[3]=(0,e.jsx)(d.CfStep4,{}),(0,e.jsx)(r.p8,{title:"Personal Computer Vendor",width:500,height:420,children:(0,e.jsxs)(r.p8.Content,{children:[(0,e.jsx)(t.wn,{italic:!0,fontSize:"20px",children:"Your perfect device, only three steps away..."}),m!==0&&(0,e.jsx)(t.$n,{fluid:!0,mb:1,icon:"circle",onClick:function(){return c("clean_order")},children:"Clear Order"}),E[m]]})})}},75050:function(O,u,n){"use strict";n.r(u)},31681:function(O,u,n){"use strict";n.r(u),n.d(u,{CookingAppliance:function(){return s}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),s=function(x){var g=(0,o.Oc)(),d=g.act,a=g.data,l=a.temperature,i=a.optimalTemp,c=a.temperatureEnough,f=a.efficiency,m=a.containersRemovable,v=a.our_contents;return(0,e.jsx)(r.p8,{width:600,height:600,children:(0,e.jsxs)(r.p8.Content,{scrollable:!0,children:[(0,e.jsx)(t.wn,{title:"Status",children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Temperature",children:(0,e.jsxs)(t.z2,{color:c?"good":"blue",value:l,maxValue:i,children:[(0,e.jsx)(t.zv,{value:l}),"\xB0C / ",i,"\xB0C"]})}),(0,e.jsxs)(t.Ki.Item,{label:"Efficiency",children:[(0,e.jsx)(t.zv,{value:f}),"%"]})]})}),(0,e.jsx)(t.wn,{title:"Containers",children:(0,e.jsx)(t.Ki,{children:v.map(function(E,j){return E.empty?(0,e.jsx)(t.Ki.Item,{label:"Slot #"+(j+1),children:(0,e.jsx)(t.$n,{onClick:function(){return d("slot",{slot:j+1})},children:"Empty"})},j):(0,e.jsx)(t.Ki.Item,{label:"Slot #"+(j+1),verticalAlign:"middle",children:(0,e.jsxs)(t.so,{spacing:1,children:[(0,e.jsx)(t.so.Item,{children:(0,e.jsx)(t.$n,{disabled:!m,onClick:function(){return d("slot",{slot:j+1})},children:E.container||"No Container"})}),(0,e.jsx)(t.so.Item,{grow:1,children:(0,e.jsx)(t.z2,{color:E.progressText[0],value:E.progress,maxValue:1,children:E.progressText[1]})})]})},j)})})})]})})}},58044:function(O,u,n){"use strict";n.r(u),n.d(u,{CrewManifest:function(){return g},CrewManifestContent:function(){return d}});var e=n(20462),o=n(61282),t=n(7081),r=n(88569),s=n(79500),x=n(15581),g=function(){return(0,e.jsx)(x.p8,{width:400,height:600,children:(0,e.jsx)(x.p8.Content,{scrollable:!0,children:(0,e.jsx)(d,{})})})},d=function(a){var l=(0,t.Oc)(),i=l.act,c=l.data,f=c.manifest;return(0,e.jsx)(r.wn,{title:"Crew Manifest",noTopPadding:!0,children:f.map(function(m){return!!m.elems.length&&(0,e.jsx)(r.wn,{title:(0,e.jsx)(r.az,{backgroundColor:s.lm.manifest[m.cat.toLowerCase()],m:-1,pt:1,pb:1,children:(0,e.jsx)(r.az,{ml:1,textAlign:"center",fontSize:1.4,children:m.cat})}),children:(0,e.jsxs)(r.XI,{children:[(0,e.jsxs)(r.XI.Row,{header:!0,color:"white",children:[(0,e.jsx)(r.XI.Cell,{children:"Name"}),(0,e.jsx)(r.XI.Cell,{children:"Rank"}),(0,e.jsx)(r.XI.Cell,{children:"Active"})]}),m.elems.map(function(v){return(0,e.jsxs)(r.XI.Row,{color:"average",children:[(0,e.jsx)(r.XI.Cell,{children:(0,o.jT)(v.name)}),(0,e.jsx)(r.XI.Cell,{children:v.rank}),(0,e.jsx)(r.XI.Cell,{children:v.active})]},v.name+v.rank)})]})},m.cat)})})}},70117:function(O,u,n){"use strict";n.r(u),n.d(u,{CrewMonitor:function(){return l},CrewMonitorContent:function(){return i}});var e=n(20462),o=n(7402),t=n(15813),r=n(61358),s=n(7081),x=n(88569),g=n(15581),d=function(m){return m.dead?"Deceased":m.stat===1?"Unconscious":"Living"},a=function(m){return m.dead?"red":m.stat===1?"orange":"green"},l=function(){var m=function(T){C(T)},v=function(T){_(T)},E=(0,r.useState)(0),j=E[0],C=E[1],P=(0,r.useState)(1),M=P[0],_=P[1];return(0,e.jsx)(g.p8,{width:800,height:600,children:(0,e.jsx)(g.p8.Content,{children:(0,e.jsx)(i,{tabIndex:j,zoom:M,onTabIndex:m,onZoom:v})})})},i=function(m){var v=(0,s.Oc)().data,E=v.crewmembers,j=E===void 0?[]:E,C=(0,t.L)([function(M){return(0,o.Ul)(M,function(_){return _.name})},function(M){return(0,o.Ul)(M,function(_){return _==null?void 0:_.x})},function(M){return(0,o.Ul)(M,function(_){return _==null?void 0:_.y})},function(M){return(0,o.Ul)(M,function(_){return _==null?void 0:_.realZ})}])(j),P=[];return P[0]=(0,e.jsx)(c,{crew:C}),P[1]=(0,e.jsx)(f,{zoom:m.zoom,onZoom:m.onZoom}),(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(x.tU,{children:[(0,e.jsxs)(x.tU.Tab,{selected:m.tabIndex===0,onClick:function(){return m.onTabIndex(0)},children:[(0,e.jsx)(x.In,{name:"table"})," Data View"]},"DataView"),(0,e.jsxs)(x.tU.Tab,{selected:m.tabIndex===1,onClick:function(){return m.onTabIndex(1)},children:[(0,e.jsx)(x.In,{name:"map-marked-alt"})," Map View"]},"MapView")]}),(0,e.jsx)(x.az,{m:2,children:P[m.tabIndex]||(0,e.jsx)(x.az,{textColor:"red",children:"ERROR"})})]})},c=function(m){var v=(0,s.Oc)(),E=v.act,j=v.data,C=m.crew,P=j.isAI;return(0,e.jsxs)(x.XI,{children:[(0,e.jsxs)(x.XI.Row,{header:!0,children:[(0,e.jsx)(x.XI.Cell,{children:"Name"}),(0,e.jsx)(x.XI.Cell,{children:"Status"}),(0,e.jsx)(x.XI.Cell,{children:"Location"})]}),C.map(function(M){return(0,e.jsxs)(x.XI.Row,{children:[(0,e.jsxs)(x.XI.Cell,{children:[M.name," (",M.assignment,")"]}),(0,e.jsxs)(x.XI.Cell,{children:[(0,e.jsx)(x.az,{inline:!0,color:a(M),children:d(M)}),M.sensor_type>=2?(0,e.jsxs)(x.az,{inline:!0,children:["(",(0,e.jsx)(x.az,{inline:!0,color:"red",children:M.brute}),"|",(0,e.jsx)(x.az,{inline:!0,color:"orange",children:M.fire}),"|",(0,e.jsx)(x.az,{inline:!0,color:"green",children:M.tox}),"|",(0,e.jsx)(x.az,{inline:!0,color:"blue",children:M.oxy}),")"]}):null]}),(0,e.jsx)(x.XI.Cell,{children:M.sensor_type===3?P?(0,e.jsx)(x.$n,{fluid:!0,icon:"location-arrow",onClick:function(){return E("track",{track:M.ref})},children:M.area+" ("+M.x+", "+M.y+")"}):M.area+" ("+M.x+", "+M.y+", "+M.z+")":"Not Available"})]},M.ref)})]})},f=function(m){var v=(0,s.Oc)(),E=v.config,j=v.data,C=j.zoomScale,P=j.crewmembers;return(0,e.jsx)(x.az,{height:"526px",mb:"0.5rem",overflow:"hidden",children:(0,e.jsx)(x.tx,{zoomScale:C,onZoom:function(M){return m.onZoom(M)},children:P.filter(function(M){return M.sensor_type===3&&~~M.realZ===~~E.mapZLevel}).map(function(M){return(0,e.jsx)(x.tx.Marker,{x:M.x,y:M.y,zoom:m.zoom,icon:"circle",tooltip:M.name+" ("+M.assignment+")",color:a(M)},M.ref)})})})}},67268:function(O,u,n){"use strict";n.r(u),n.d(u,{CryoStorage:function(){return x},CryoStorageCrew:function(){return g},CryoStorageDefaultError:function(){return a},CryoStorageItems:function(){return d}});var e=n(20462),o=n(61358),t=n(7081),r=n(88569),s=n(15581),x=function(l){var i=(0,t.Oc)().data,c=i.real_name,f=i.allow_items,m=(0,o.useState)(0),v=m[0],E=m[1],j=[];return j[0]=(0,e.jsx)(g,{}),j[1]=f?(0,e.jsx)(d,{}):(0,e.jsx)(a,{}),(0,e.jsx)(s.p8,{width:400,height:600,children:(0,e.jsxs)(s.p8.Content,{scrollable:!0,children:[(0,e.jsxs)(r.tU,{children:[(0,e.jsx)(r.tU.Tab,{selected:v===0,onClick:function(){return E(0)},children:"Crew"}),!!f&&(0,e.jsx)(r.tU.Tab,{selected:v===1,onClick:function(){return E(1)},children:"Items"})]}),(0,e.jsxs)(r.IC,{info:!0,children:["Welcome, ",c,"."]}),j[v]]})})},g=function(l){var i=(0,t.Oc)().data,c=i.crew;return(0,e.jsx)(r.wn,{title:"Stored Crew",children:c.length&&c.map(function(f){return(0,e.jsx)(r.az,{color:"label",children:f},f)})||(0,e.jsx)(r.az,{color:"good",children:"No crew currently stored."})})},d=function(l){var i=(0,t.Oc)().data,c=i.items;return(0,e.jsx)(r.wn,{title:"Stored Items",children:c.length&&c.map(function(f){return(0,e.jsx)(r.az,{color:"label",children:f},f)})||(0,e.jsx)(r.az,{color:"average",children:"No items stored."})})},a=function(l){return(0,e.jsx)(r.az,{textColor:"red",children:"Disabled"})}},41628:function(O,u,n){"use strict";n.r(u),n.d(u,{CryoContent:function(){return x}});var e=n(20462),o=n(4089),t=n(7081),r=n(88569),s=n(17639),x=function(d){var a=(0,t.Oc)(),l=a.act,i=a.data,c=i.isOperating,f=i.hasOccupant,m=i.occupant,v=i.cellTemperature,E=i.cellTemperatureStatus,j=i.isBeakerLoaded;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.wn,{title:"Occupant",flexGrow:!0,buttons:(0,e.jsx)(r.$n,{icon:"user-slash",onClick:function(){return l("ejectOccupant")},disabled:!f,children:"Eject"}),children:f?(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Occupant",children:m.name||"Unknown"}),(0,e.jsx)(r.Ki.Item,{label:"Health",children:(0,e.jsx)(r.z2,{minValue:0,maxValue:1,value:m.health/m.maxHealth,color:m.health>0?"good":"average",children:(0,e.jsx)(r.zv,{value:m.health,format:function(C){return(0,o.Mg)(C)}})})}),(0,e.jsx)(r.Ki.Item,{label:"Status",color:s.statNames[m.stat][0],children:s.statNames[m.stat][1]}),(0,e.jsx)(r.Ki.Item,{label:"Temperature",children:(0,e.jsx)(r.zv,{value:m.bodyTemperature,format:function(C){return(0,o.Mg)(C)+" K"}})}),(0,e.jsx)(r.Ki.Divider,{}),s.damageTypes.map(function(C,P){return(0,e.jsx)(r.Ki.Item,{label:C.label,children:(0,e.jsx)(r.z2,{value:m[C.type]/100,ranges:{bad:[.01,1/0]},children:(0,e.jsx)(r.zv,{value:m[C.type],format:function(M){return(0,o.Mg)(M)}})})},P)})]}):(0,e.jsx)(r.so,{height:"100%",textAlign:"center",children:(0,e.jsxs)(r.so.Item,{grow:"1",align:"center",color:"label",children:[(0,e.jsx)(r.In,{name:"user-slash",mb:"0.5rem",size:5}),(0,e.jsx)("br",{}),"No occupant detected."]})})}),(0,e.jsx)(r.wn,{title:"Cell",buttons:(0,e.jsx)(r.$n,{icon:"eject",onClick:function(){return l("ejectBeaker")},disabled:!j,children:"Eject Beaker"}),children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Power",children:(0,e.jsx)(r.$n,{icon:"power-off",onClick:function(){return l(c?"switchOff":"switchOn")},selected:c,children:c?"On":"Off"})}),(0,e.jsxs)(r.Ki.Item,{label:"Temperature",color:E,children:[(0,e.jsx)(r.zv,{value:v})," K"]}),(0,e.jsx)(r.Ki.Item,{label:"Beaker",children:(0,e.jsx)(g,{})})]})})]})},g=function(d){var a=(0,t.Oc)(),l=a.act,i=a.data,c=i.isBeakerLoaded,f=i.beakerLabel,m=i.beakerVolume;return c?(0,e.jsxs)(e.Fragment,{children:[f||(0,e.jsx)(r.az,{color:"average",children:"No label"}),(0,e.jsx)(r.az,{color:!m&&"bad",children:m?(0,e.jsx)(r.zv,{value:m,format:function(v){return(0,o.Mg)(v)+" units remaining"}}):"Beaker is empty"})]}):(0,e.jsx)(r.az,{color:"average",children:"No beaker loaded"})}},17639:function(O,u,n){"use strict";n.r(u),n.d(u,{damageTypes:function(){return e},statNames:function(){return o}});var e=[{label:"Resp.",type:"oxyLoss"},{label:"Toxin",type:"toxLoss"},{label:"Brute",type:"bruteLoss"},{label:"Burn",type:"fireLoss"}],o=[["good","Conscious"],["average","Unconscious"],["bad","DEAD"]]},85970:function(O,u,n){"use strict";n.r(u),n.d(u,{Cryo:function(){return r}});var e=n(20462),o=n(15581),t=n(41628),r=function(s){return(0,e.jsx)(o.p8,{width:520,height:470,children:(0,e.jsx)(o.p8.Content,{className:"Layout__content--flexColumn",children:(0,e.jsx)(t.CryoContent,{})})})}},40599:function(O,u,n){"use strict";n.r(u)},39699:function(O,u,n){"use strict";n.r(u),n.d(u,{DNAForensics:function(){return s}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),s=function(x){var g=(0,o.Oc)(),d=g.act,a=g.data,l=a.scan_progress,i=a.scanning,c=a.bloodsamp,f=a.bloodsamp_desc;return(0,e.jsx)(r.p8,{width:540,height:326,children:(0,e.jsxs)(r.p8.Content,{children:[(0,e.jsx)(t.wn,{title:"Status",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n,{selected:i,disabled:!c,icon:"power-off",onClick:function(){return d("scanItem")},children:i?"Halt Scan":"Begin Scan"}),(0,e.jsx)(t.$n,{disabled:!c,icon:"eject",onClick:function(){return d("ejectItem")},children:"Eject Bloodsample"})]}),children:(0,e.jsx)(t.Ki,{children:(0,e.jsx)(t.Ki.Item,{label:"Scan Progress",children:(0,e.jsx)(t.z2,{ranges:{good:[99,1/0],violet:[-1/0,99]},value:l,maxValue:100})})})}),(0,e.jsx)(t.wn,{title:"Blood Sample",children:c&&(0,e.jsxs)(t.az,{children:[c,(0,e.jsx)(t.az,{color:"label",children:f})]})||(0,e.jsx)(t.az,{color:"bad",children:"No blood sample inserted."})})]})})}},63501:function(O,u,n){"use strict";n.r(u),n.d(u,{DNAModifierBlocks:function(){return r}});var e=n(20462),o=n(7081),t=n(88569),r=function(s){for(var x=function(E){for(var j=function(_){var S=_+1;P.push((0,e.jsx)(t.$n,{selected:a===C&&l===S,mb:"0",onClick:function(){return g(c,{block:C,subblock:S})},children:f[E+_]}))},C=E/i+1,P=[],M=0;Mj,icon:"syringe",onClick:function(){return m("injectRejuvenators",{amount:P})},children:P},M)}),(0,e.jsx)(t.$n,{disabled:j<=0,icon:"syringe",onClick:function(){return m("injectRejuvenators",{amount:j})},children:"All"})]}),(0,e.jsxs)(t.Ki.Item,{label:"Beaker",children:[(0,e.jsx)(t.az,{mb:"0.5rem",children:C||"No label"}),j?(0,e.jsxs)(t.az,{color:"good",children:[j," unit",j===1?"":"s"," remaining"]}):(0,e.jsx)(t.az,{color:"bad",children:"Empty"})]})]}):(0,e.jsxs)(t.az,{color:"label",textAlign:"center",my:"25%",children:[(0,e.jsx)(t.In,{name:"exclamation-triangle",size:4}),(0,e.jsx)("br",{}),"No beaker loaded."]})})}},25475:function(O,u,n){"use strict";n.r(u),n.d(u,{DNAModifierMainBuffers:function(){return r}});var e=n(20462),o=n(7081),t=n(88569),r=function(g){var d=(0,o.Oc)().data,a=d.buffers,l=a.map(function(i,c){return(0,e.jsx)(s,{id:c+1,name:"Buffer "+(c+1),buffer:i},c)});return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.wn,{title:"Buffers",children:l}),(0,e.jsx)(x,{})]})},s=function(g){var d=(0,o.Oc)(),a=d.act,l=d.data,i=g.id,c=g.name,f=g.buffer,m=l.isInjectorReady,v=c+(f.data?" - "+f.label:"");return(0,e.jsx)(t.az,{backgroundColor:"rgba(0, 0, 0, 0.33)",mb:"0.5rem",children:(0,e.jsxs)(t.wn,{title:v,mx:"0",lineHeight:"18px",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n.Confirm,{disabled:!f.data,icon:"trash",onClick:function(){return a("bufferOption",{option:"clear",id:i})},children:"Clear"}),(0,e.jsx)(t.$n,{disabled:!f.data,icon:"pen",onClick:function(){return a("bufferOption",{option:"changeLabel",id:i})},children:"Rename"}),(0,e.jsx)(t.$n,{disabled:!f.data||!l.hasDisk,icon:"save",tooltip:"Exports this buffer to the currently loaded data disk.",tooltipPosition:"bottom-end",onClick:function(){return a("bufferOption",{option:"saveDisk",id:i})},children:"Export"})]}),children:[(0,e.jsxs)(t.Ki,{children:[(0,e.jsxs)(t.Ki.Item,{label:"Write",children:[(0,e.jsx)(t.$n,{icon:"arrow-circle-down",mb:"0",onClick:function(){return a("bufferOption",{option:"saveUI",id:i})},children:"Subject U.I"}),(0,e.jsx)(t.$n,{icon:"arrow-circle-down",mb:"0",onClick:function(){return a("bufferOption",{option:"saveUIAndUE",id:i})},children:"Subject U.I and U.E."}),(0,e.jsx)(t.$n,{icon:"arrow-circle-down",mb:"0",onClick:function(){return a("bufferOption",{option:"saveSE",id:i})},children:"Subject S.E."}),(0,e.jsx)(t.$n,{disabled:!l.hasDisk||!l.disk.data,icon:"arrow-circle-down",mb:"0",onClick:function(){return a("bufferOption",{option:"loadDisk",id:i})},children:"From Disk"})]}),!!f.data&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.Ki.Item,{label:"Subject",children:f.owner||(0,e.jsx)(t.az,{color:"average",children:"Unknown"})}),(0,e.jsxs)(t.Ki.Item,{label:"Data Type",children:[f.type==="ui"?"Unique Identifiers":"Structural Enzymes",!!f.ue&&" and Unique Enzymes"]}),(0,e.jsxs)(t.Ki.Item,{label:"Transfer to",children:[(0,e.jsx)(t.$n,{disabled:!m,icon:m?"syringe":"spinner",iconSpin:!m,mb:"0",onClick:function(){return a("bufferOption",{option:"createInjector",id:i})},children:"Injector"}),(0,e.jsx)(t.$n,{disabled:!m,icon:m?"syringe":"spinner",iconSpin:!m,mb:"0",onClick:function(){return a("bufferOption",{option:"createInjector",id:i,block:1})},children:"Block Injector"}),(0,e.jsx)(t.$n,{icon:"user",mb:"0",onClick:function(){return a("bufferOption",{option:"transfer",id:i})},children:"Subject"})]})]})]}),!f.data&&(0,e.jsx)(t.az,{color:"label",mt:"0.5rem",children:"This buffer is empty."})]})})},x=function(g){var d=(0,o.Oc)(),a=d.act,l=d.data,i=l.hasDisk,c=l.disk;return(0,e.jsx)(t.wn,{title:"Data Disk",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n.Confirm,{disabled:!i||!c.data,icon:"trash",onClick:function(){return a("wipeDisk")},children:"Wipe"}),(0,e.jsx)(t.$n,{disabled:!i,icon:"eject",onClick:function(){return a("ejectDisk")},children:"Eject"})]}),children:i?c.data?(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Label",children:c.label?c.label:"No label"}),(0,e.jsx)(t.Ki.Item,{label:"Subject",children:c.owner?c.owner:(0,e.jsx)(t.az,{color:"average",children:"Unknown"})}),(0,e.jsxs)(t.Ki.Item,{label:"Data Type",children:[c.type==="ui"?"Unique Identifiers":"Structural Enzymes",!!c.ue&&" and Unique Enzymes"]})]}):(0,e.jsx)(t.az,{color:"label",children:"Disk is blank."}):(0,e.jsxs)(t.az,{color:"label",textAlign:"center",my:"1rem",children:[(0,e.jsx)(t.In,{name:"save-o",size:4}),(0,e.jsx)("br",{}),"No disk inserted."]})})}},76282:function(O,u,n){"use strict";n.r(u),n.d(u,{DNAModifierOccupant:function(){return s}});var e=n(20462),o=n(7081),t=n(88569),r=n(22724),s=function(x){var g=(0,o.Oc)(),d=g.act,a=g.data,l=a.locked,i=a.hasOccupant,c=a.occupant;return(0,e.jsx)(t.wn,{title:"Occupant",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.az,{color:"label",inline:!0,mr:"0.5rem",children:"Door Lock:"}),(0,e.jsx)(t.$n,{disabled:!i,selected:l,icon:l?"toggle-on":"toggle-off",onClick:function(){return d("toggleLock")},children:l?"Engaged":"Disengaged"}),(0,e.jsx)(t.$n,{disabled:!i||l,icon:"user-slash",onClick:function(){return d("ejectOccupant")},children:"Eject"})]}),children:i?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.az,{children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Name",children:c.name}),(0,e.jsx)(t.Ki.Item,{label:"Health",children:(0,e.jsx)(t.z2,{minValue:0,maxValue:1,value:c.health/c.maxHealth,ranges:{good:[.5,1/0],average:[0,.5],bad:[-1/0,0]}})}),(0,e.jsx)(t.Ki.Item,{label:"Status",color:r.stats[c.stat][0],children:r.stats[c.stat][1]}),(0,e.jsx)(t.Ki.Divider,{})]})}),x.isDNAInvalid?(0,e.jsxs)(t.az,{color:"bad",children:[(0,e.jsx)(t.In,{name:"exclamation-circle"}),"\xA0 The occupant's DNA structure is ruined beyond recognition, please insert a subject with an intact DNA structure."]}):(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Radiation",children:(0,e.jsx)(t.z2,{minValue:0,maxValue:1,value:c.radiationLevel/100,color:"average"})}),(0,e.jsx)(t.Ki.Item,{label:"Unique Enzymes",children:a.occupant.uniqueEnzymes?a.occupant.uniqueEnzymes:(0,e.jsxs)(t.az,{color:"bad",children:[(0,e.jsx)(t.In,{name:"exclamation-circle"}),"\xA0 Unknown"]})})]})]}):(0,e.jsx)(t.az,{color:"label",children:"Cell unoccupied."})})}},22724:function(O,u,n){"use strict";n.r(u),n.d(u,{operations:function(){return o},rejuvenatorsDoses:function(){return t},stats:function(){return e}});var e=[["good","Alive"],["average","Unconscious"],["bad","DEAD"]],o=[["ui","Modify U.I.","dna"],["se","Modify S.E.","dna"],["buffer","Transfer Buffers","syringe"],["rejuvenators","Rejuvenators","flask"]],t=[5,10,20,30,50]},62343:function(O,u,n){"use strict";n.r(u),n.d(u,{DNAModifier:function(){return d}});var e=n(20462),o=n(7081),t=n(15581),r=n(86471),s=n(11619),x=n(89100),g=n(76282),d=function(a){var l=(0,o.Oc)().data,i=l.irradiating,c=l.occupant,f=!c.isViableSubject||!c.uniqueIdentity||!c.structuralEnzymes;return(0,e.jsxs)(t.p8,{width:660,height:870,children:[(0,e.jsx)(r.ComplexModal,{}),i&&(0,e.jsx)(s.DNAModifierIrradiating,{duration:i}),(0,e.jsxs)(t.p8.Content,{className:"Layout__content--flexColumn",children:[(0,e.jsx)(g.DNAModifierOccupant,{isDNAInvalid:f}),(0,e.jsx)(x.DNAModifierMain,{isDNAInvalid:f})]})]})}},14512:function(O,u,n){"use strict";n.r(u)},80603:function(O,u,n){"use strict";n.r(u),n.d(u,{DestinationTagger:function(){return s}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),s=function(x){var g=(0,o.Oc)(),d=g.act,a=g.data,l=a.currTag,i=a.taggerLevels,c=i===void 0?[]:i,f=a.taggerLocs,m=c.filter(function(v,E){return E===c.findIndex(function(j){return v.location===j.location})});return(0,e.jsx)(r.p8,{width:450,height:310,children:(0,e.jsx)(r.p8.Content,{scrollable:!0,children:(0,e.jsx)(t.wn,{title:"Tagger Locations",children:m.map(function(v){return(0,e.jsx)(t.wn,{title:v.location,children:(0,e.jsx)(t.so,{wrap:"wrap",spacing:1,justify:"center",children:f.map(function(E){return v.z===E.level&&(0,e.jsx)(t.so.Item,{children:(0,e.jsx)(t.$n,{icon:l===E.tag?"check-square-o":"square-o",selected:l===E.tag,onClick:function(){return d("set_tag",{tag:E.tag})},children:E.tag})},E.tag)})})},v.location)})})})})}},17956:function(O,u,n){"use strict";n.r(u),n.d(u,{DiseaseSplicer:function(){return s}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),s=function(d){var a=(0,o.Oc)(),l=a.act,i=a.data,c=i.busy;return(0,e.jsx)(r.p8,{width:400,height:600,children:(0,e.jsx)(r.p8.Content,{scrollable:!0,children:c?(0,e.jsx)(t.wn,{title:"The Splicer is currently busy.",color:"bad",children:(0,e.jsx)("center",{children:(0,e.jsx)(t.az,{color:"bad",children:c})})}):(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(x,{}),(0,e.jsx)(g,{})]})})})},x=function(d){var a=(0,o.Oc)(),l=a.act,i=a.data,c=i.dish_inserted,f=i.effects,m=f===void 0?[]:f,v=i.info,E=i.growth,j=i.affected_species;return(0,e.jsxs)(t.wn,{title:"Virus Dish",buttons:(0,e.jsx)(t.$n,{icon:"eject",disabled:!c,onClick:function(){return l("eject")},children:"Eject Dish"}),children:[(0,e.jsx)(t.Ki,{children:(0,e.jsx)(t.Ki.Item,{label:"Growth Density",children:(0,e.jsx)(t.z2,{minValue:0,maxValue:100,ranges:{good:[50,1/0],average:[25,50],bad:[-1/0,25]},value:E})})}),v?(0,e.jsx)(t.wn,{children:(0,e.jsx)(t.az,{color:"bad",children:v})}):(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.wn,{title:"Symptoms",children:m.length>0?m.map(function(C){return(0,e.jsxs)(t.az,{color:"label",children:["(",C.stage,") ",C.name," ",C.badness>1?"Dangerous!":null]},C.stage)}):(0,e.jsx)(t.az,{children:"No virus sample loaded."})}),(0,e.jsx)(t.wn,{title:"Affected Species",color:"label",children:!j||!j.length?"None":j.sort().join(", ")}),(0,e.jsxs)(t.wn,{title:"Reverse Engineering",children:[(0,e.jsx)(t.az,{color:"bad",mb:1,children:(0,e.jsx)("i",{children:"CAUTION: Reverse engineering will destroy the viral sample."})}),!!m.length&&m.map(function(C){return(0,e.jsx)(t.$n,{icon:"exchange-alt",onClick:function(){return l("grab",{grab:C.reference})},children:C.stage},C.stage)}),(0,e.jsx)(t.$n,{icon:"exchange-alt",onClick:function(){return l("affected_species")},children:"Species"})]})]})]})},g=function(d){var a=(0,o.Oc)(),l=a.act,i=a.data,c=i.buffer,f=i.species_buffer,m=i.info;return(0,e.jsxs)(t.wn,{title:"Storage",children:[(0,e.jsx)(t.Ki,{children:(0,e.jsx)(t.Ki.Item,{label:"Memory Buffer",children:c?(0,e.jsxs)(t.az,{children:[c.name," (",c.stage,")"]}):f?(0,e.jsx)(t.az,{children:f}):"Empty"})}),(0,e.jsx)(t.$n,{mt:1,icon:"save",disabled:!c&&!f,onClick:function(){return l("disk")},children:"Save To Disk"}),c?(0,e.jsxs)(t.az,{children:[(0,e.jsx)(t.$n,{icon:"pen",disabled:c.stage>1,onClick:function(){return l("splice",{splice:1})},children:"Splice #1"}),(0,e.jsx)(t.$n,{icon:"pen",disabled:c.stage>2,onClick:function(){return l("splice",{splice:2})},children:"Splice #2"}),(0,e.jsx)(t.$n,{icon:"pen",disabled:c.stage>3,onClick:function(){return l("splice",{splice:3})},children:"Splice #3"}),(0,e.jsx)(t.$n,{icon:"pen",disabled:c.stage>4,onClick:function(){return l("splice",{splice:4})},children:"Splice #4"})]}):f?(0,e.jsx)(t.az,{children:(0,e.jsx)(t.$n,{icon:"pen",disabled:!f||!!m,onClick:function(){return l("splice",{splice:5})},children:"Splice Species"})}):null]})}},4843:function(O,u,n){"use strict";n.r(u),n.d(u,{DishIncubator:function(){return x}});var e=n(20462),o=n(7081),t=n(88569),r=n(41242),s=n(15581),x=function(g){var d=(0,o.Oc)(),a=d.act,l=d.data,i=l.on,c=l.system_in_use,f=l.food_supply,m=l.radiation,v=l.growth,E=l.toxins,j=l.chemicals_inserted,C=l.can_breed_virus,P=l.chemical_volume,M=l.max_chemical_volume,_=l.dish_inserted,S=l.blood_already_infected,T=l.virus,b=l.analysed,L=l.infection_rate;return(0,e.jsx)(s.p8,{width:400,height:600,children:(0,e.jsxs)(s.p8.Content,{scrollable:!0,children:[(0,e.jsxs)(t.wn,{title:"Environmental Conditions",buttons:(0,e.jsx)(t.$n,{icon:"power-off",selected:i,onClick:function(){return a("power")},children:i?"On":"Off"}),children:[(0,e.jsxs)(t.so,{spacing:1,mb:1,children:[(0,e.jsx)(t.so.Item,{grow:1,children:(0,e.jsx)(t.$n,{fluid:!0,icon:"radiation",onClick:function(){return a("rad")},children:"Add Radiation"})}),(0,e.jsx)(t.so.Item,{grow:1,children:(0,e.jsx)(t.$n.Confirm,{fluid:!0,color:"red",icon:"trash",confirmIcon:"trash",disabled:!c,onClick:function(){return a("flush")},children:"Flush System"})})]}),(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Virus Food",children:(0,e.jsx)(t.z2,{minValue:0,maxValue:100,ranges:{good:[40,1/0],average:[20,40],bad:[-1/0,20]},value:f})}),(0,e.jsx)(t.Ki.Item,{label:"Radiation Level",children:(0,e.jsxs)(t.z2,{minValue:0,maxValue:100,color:m>=50?"bad":v>=25?"average":"good",value:m,children:[(0,r.qQ)(m*1e4)," \xB5Sv"]})}),(0,e.jsx)(t.Ki.Item,{label:"Toxicity",children:(0,e.jsx)(t.z2,{minValue:0,maxValue:100,ranges:{bad:[50,1/0],average:[25,50],good:[-1/0,25]},value:E})})]})]}),(0,e.jsx)(t.wn,{title:C?"Vial":"Chemicals",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n,{icon:"eject",disabled:!j,onClick:function(){return a("ejectchem")},children:"Eject "+(C?"Vial":"Chemicals")}),(0,e.jsx)(t.$n,{icon:"virus",disabled:!C,onClick:function(){return a("virus")},children:"Breed Virus"})]}),children:j&&(0,e.jsx)(t.az,{children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Volume",children:(0,e.jsxs)(t.z2,{minValue:0,maxValue:M,value:P,children:[P,"/",M]})}),(0,e.jsxs)(t.Ki.Item,{label:"Breeding Environment",color:C?"good":"average",children:[_?C?"Suitable":"No hemolytic samples detected":"N/A",S?(0,e.jsx)(t.az,{color:"bad",children:"CAUTION: Viral infection detected in blood sample."}):null]})]})})||(0,e.jsx)(t.az,{color:"average",children:"No chemicals inserted."})}),(0,e.jsx)(t.wn,{title:"Virus Dish",buttons:(0,e.jsx)(t.$n,{icon:"eject",disabled:!_,onClick:function(){return a("ejectdish")},children:"Eject Dish"}),children:_?T?(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Growth Density",children:(0,e.jsx)(t.z2,{minValue:0,maxValue:100,ranges:{good:[50,1/0],average:[25,50],bad:[-1/0,25]},value:v})}),(0,e.jsx)(t.Ki.Item,{label:"Infection Rate",children:b?L:"Unknown."})]}):(0,e.jsx)(t.az,{color:"bad",children:"No virus detected."}):(0,e.jsx)(t.az,{color:"average",children:"No dish loaded."})})]})})}},43978:function(O,u,n){"use strict";n.r(u),n.d(u,{DisposalBin:function(){return s}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),s=function(x){var g=(0,o.Oc)(),d=g.act,a=g.data,l=a.mode,i=a.pressure,c=a.isAI,f=a.panel_open,m=a.flushing,v,E;return l===2?(v="good",E="Ready"):l<=0?(v="bad",E="N/A"):l===1?(v="average",E="Pressurizing"):(v="average",E="Idle"),(0,e.jsx)(r.p8,{width:300,height:250,children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsxs)(t.wn,{children:[(0,e.jsx)(t.az,{bold:!0,m:1,children:"Status"}),(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"State",color:v,children:E}),(0,e.jsx)(t.Ki.Item,{label:"Pressure",children:(0,e.jsx)(t.z2,{ranges:{bad:[-1/0,0],average:[0,99],good:[99,1/0]},value:i,minValue:0,maxValue:100})})]}),(0,e.jsx)(t.az,{bold:!0,m:1,children:"Controls"}),(0,e.jsxs)(t.Ki,{children:[(0,e.jsxs)(t.Ki.Item,{label:"Handle",children:[(0,e.jsx)(t.$n,{icon:"toggle-off",disabled:c||f,selected:m?null:!0,onClick:function(){return d("disengageHandle")},children:"Disengaged"}),(0,e.jsx)(t.$n,{icon:"toggle-on",disabled:c||f,selected:m?!0:null,onClick:function(){return d("engageHandle")},children:"Engaged"})]}),(0,e.jsxs)(t.Ki.Item,{label:"Power",children:[(0,e.jsx)(t.$n,{icon:"toggle-off",disabled:l===-1,selected:l?null:!0,onClick:function(){return d("pumpOff")},children:"Off"}),(0,e.jsx)(t.$n,{icon:"toggle-on",disabled:l===-1,selected:l?!0:null,onClick:function(){return d("pumpOn")},children:"On"})]}),(0,e.jsx)(t.Ki.Item,{label:"Eject",children:(0,e.jsx)(t.$n,{icon:"sign-out-alt",disabled:c,onClick:function(){return d("eject")},children:"Eject Contents"})})]})]})})})}},16381:function(O,u,n){"use strict";n.r(u),n.d(u,{DroneConsole:function(){return s}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),s=function(x){var g=(0,o.Oc)(),d=g.act,a=g.data,l=a.drones,i=a.areas,c=a.selected_area,f=a.fabricator,m=a.fabPower;return(0,e.jsx)(r.p8,{width:600,height:350,children:(0,e.jsxs)(r.p8.Content,{scrollable:!0,children:[(0,e.jsx)(t.wn,{title:"Drone Fabricator",buttons:(0,e.jsx)(t.$n,{disabled:!f,selected:m,icon:"power-off",onClick:function(){return d("toggle_fab")},children:m?"Enabled":"Disabled"}),children:f?(0,e.jsx)(t.az,{color:"good",children:"Linked."}):(0,e.jsxs)(t.az,{color:"bad",children:["Fabricator not detected.",(0,e.jsx)(t.$n,{icon:"sync",onClick:function(){return d("search_fab")},children:"Search for Fabricator"})]})}),(0,e.jsxs)(t.wn,{title:"Request Drone",children:[(0,e.jsx)(t.ms,{autoScroll:!1,options:i?i.sort():[],selected:c,width:"100%",onSelected:function(v){return d("set_dcall_area",{area:v})}}),(0,e.jsx)(t.$n,{icon:"share-square",onClick:function(){return d("ping")},children:"Send Ping"})]}),(0,e.jsx)(t.wn,{title:"Maintenance Units",children:l&&l.length?(0,e.jsx)(t.Ki,{children:l.map(function(v){return(0,e.jsx)(t.Ki.Item,{label:v.name,buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n,{icon:"sync",onClick:function(){return d("resync",{ref:v.ref})},children:"Resync"}),(0,e.jsx)(t.$n.Confirm,{icon:"exclamation-triangle",color:"red",onClick:function(){return d("shutdown",{ref:v.ref})},children:"Shutdown"})]}),children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Location",children:v.loc}),(0,e.jsxs)(t.Ki.Item,{label:"Charge",children:[v.charge," / ",v.maxCharge]}),(0,e.jsx)(t.Ki.Item,{label:"Active",children:v.active?"Yes":"No"})]})},v.name)})}):(0,e.jsx)(t.az,{color:"bad",children:"No drones detected."})})]})})}},27133:function(O,u,n){"use strict";n.r(u),n.d(u,{AirlockConsoleAdvanced:function(){return s}});var e=n(20462),o=n(7081),t=n(88569),r=n(64894),s=function(x){var g=function(C){return C<80||C>120?"bad":C<95||C>110?"average":"good"},d=(0,o.Oc)(),a=d.act,l=d.data,i=l.external_pressure,c=l.chamber_pressure,f=l.internal_pressure,m=l.processing,v={external_pressure:i,internal_pressure:f,chamber_pressure:c},E=[{minValue:0,maxValue:202,value:i,label:"External Pressure",textValue:i+" kPa",color:g},{minValue:0,maxValue:202,value:c,label:"Chamber Pressure",textValue:c+" kPa",color:g},{minValue:0,maxValue:202,value:f,label:"Internal Pressure",textValue:f+" kPa",color:g}];return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.StatusDisplay,{bars:E}),(0,e.jsxs)(t.wn,{title:"Controls",children:[(0,e.jsx)(r.StandardControls,{pressure_range:v}),(0,e.jsxs)(t.az,{children:[(0,e.jsx)(t.$n,{icon:"sync",onClick:function(){return a("purge")},children:"Purge"}),(0,e.jsx)(t.$n,{icon:"lock-open",onClick:function(){return a("secure")},children:"Secure"})]}),(0,e.jsx)(t.az,{children:(0,e.jsx)(t.$n,{disabled:!m,icon:"ban",color:"bad",onClick:function(){return a("abort")},children:"Abort"})})]})]})}},34012:function(O,u,n){"use strict";n.r(u),n.d(u,{AirlockConsoleDocking:function(){return s}});var e=n(20462),o=n(7081),t=n(88569),r=n(64894),s=function(x){var g=(0,o.Oc)(),d=g.act,a=g.data,l=a.interior_status,i=a.exterior_status,c=a.chamber_pressure,f=a.airlock_disabled,m=a.override_enabled,v=a.docking_status,E=a.processing,j={interior_status:l,exterior_status:i},C=[{minValue:0,maxValue:202,value:c,label:"Chamber Pressure",textValue:c+" kPa",color:function(P){return P<80||P>120?"bad":P<95||P>110?"average":"good"}}];return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.wn,{title:"Dock",buttons:f||m?(0,e.jsx)(t.$n,{icon:"exclamation-triangle",color:m?"red":"",onClick:function(){return d("toggle_override")},children:"Override"}):null,children:(0,e.jsx)(r.DockStatus,{docking_status:v,override_enabled:m})}),(0,e.jsx)(r.StatusDisplay,{bars:C}),(0,e.jsxs)(t.wn,{title:"Controls",children:[(0,e.jsx)(r.StandardControls,{status_range:j}),(0,e.jsx)(t.az,{children:(0,e.jsx)(t.$n,{disabled:!E,icon:"ban",color:"bad",onClick:function(){return d("abort")},children:"Abort"})})]})]})}},29935:function(O,u,n){"use strict";n.r(u),n.d(u,{AirlockConsolePhoron:function(){return s}});var e=n(20462),o=n(7081),t=n(88569),r=n(64894),s=function(x){var g=(0,o.Oc)(),d=g.act,a=g.data,l=a.chamber_pressure,i=a.chamber_phoron,c=a.interior_status,f=a.exterior_status,m=a.processing,v={interior_status:c,exterior_status:f},E=[{minValue:0,maxValue:202,value:l,label:"Chamber Pressure",textValue:l+" kPa",color:function(j){return j<80||j>120?"bad":j<95||j>110?"average":"good"}},{minValue:0,maxValue:100,value:i,label:"Chamber Phoron",textValue:i+" mol",color:function(j){return j>5?"bad":j>.5?"average":"good"}}];return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.StatusDisplay,{bars:E}),(0,e.jsxs)(t.wn,{title:"Controls",children:[(0,e.jsx)(r.StandardControls,{status_range:v}),(0,e.jsx)(t.az,{children:(0,e.jsx)(t.$n,{disabled:!m,icon:"ban",color:"bad",onClick:function(){return d("abort")},children:"Abort"})})]})]})}},32965:function(O,u,n){"use strict";n.r(u),n.d(u,{AirlockConsoleSimple:function(){return s}});var e=n(20462),o=n(7081),t=n(88569),r=n(64894),s=function(x){var g=(0,o.Oc)(),d=g.act,a=g.data,l=a.exterior_status,i=a.chamber_pressure,c=a.processing,f=a.interior_status,m={interior_status:f,exterior_status:l},v=[{minValue:0,maxValue:202,value:i,label:"Chamber Pressure",textValue:i+" kPa",color:function(E){return E<80||E>120?"bad":E<95||E>110?"average":"good"}}];return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.StatusDisplay,{bars:v}),(0,e.jsxs)(t.wn,{title:"Controls",children:[(0,e.jsx)(r.StandardControls,{status_range:m}),(0,e.jsx)(t.az,{children:(0,e.jsx)(t.$n,{disabled:!c,icon:"ban",color:"bad",onClick:function(){return d("abort")},children:"Abort"})})]})]})}},74390:function(O,u,n){"use strict";n.r(u),n.d(u,{DockingConsoleMulti:function(){return s}});var e=n(20462),o=n(7081),t=n(88569),r=n(64894),s=function(x){var g=(0,o.Oc)().data,d=g.docking_status;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.wn,{title:"Docking Status",children:(0,e.jsx)(r.DockStatus,{docking_status:d,override_enabled:!1})}),(0,e.jsx)(t.wn,{title:"Airlocks",children:g.airlocks.length?(0,e.jsx)(t.Ki,{children:g.airlocks.map(function(a){return(0,e.jsx)(t.Ki.Item,{color:a.override_enabled?"bad":"good",label:a.name,children:a.override_enabled?"OVERRIDE ENABLED":"STATUS OK"},a.name)})}):(0,e.jsx)(t.so,{height:"100%",mt:"0.5em",children:(0,e.jsxs)(t.so.Item,{grow:"1",align:"center",textAlign:"center",color:"bad",children:[(0,e.jsx)(t.In,{name:"door-closed",mb:"0.5rem",size:5}),(0,e.jsx)("br",{}),"No airlocks found."]})})})]})}},75355:function(O,u,n){"use strict";n.r(u),n.d(u,{DockingConsoleSimple:function(){return s}});var e=n(20462),o=n(7081),t=n(88569),r=n(64894),s=function(x){var g=(0,o.Oc)(),d=g.act,a=g.data,l=a.exterior_status,i=a.override_enabled,c=a.docking_status;return(0,e.jsx)(t.wn,{title:"Status",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n,{icon:"exclamation-triangle",disabled:!i,onClick:function(){return d("force_door")},children:"Force exterior door"}),(0,e.jsx)(t.$n,{icon:"exclamation-triangle",color:i?"red":"",onClick:function(){return d("toggle_override")},children:"Override"})]}),children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Dock Status",children:(0,e.jsx)(r.DockStatus,{docking_status:c,override_enabled:i})}),(0,e.jsx)(r.DockingStatus,{state:l.state})]})})}},77506:function(O,u,n){"use strict";n.r(u),n.d(u,{DoorAccessConsole:function(){return r}});var e=n(20462),o=n(7081),t=n(88569),r=function(s){var x=(0,o.Oc)(),g=x.act,d=x.data,a=d.interior_status,l=d.exterior_status,i=a.state==="open"||l.state==="closed",c=l.state==="open"||a.state==="closed";return(0,e.jsx)(t.wn,{title:"Status",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n,{icon:i?"arrow-left":"exclamation-triangle",onClick:function(){g(i?"cycle_ext_door":"force_ext")},children:i?"Cycle To Exterior":"Lock Exterior Door"}),(0,e.jsx)(t.$n,{icon:c?"arrow-right":"exclamation-triangle",onClick:function(){g(c?"cycle_int_door":"force_int")},children:c?"Cycle To Interior":"Lock Interior Door"})]}),children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Exterior Door Status",children:l.state==="closed"?"Locked":"Open"}),(0,e.jsx)(t.Ki.Item,{label:"Interior Door Status",children:a.state==="closed"?"Locked":"Open"})]})})}},64894:function(O,u,n){"use strict";n.r(u),n.d(u,{DockStatus:function(){return l},DockingStatus:function(){return g},EscapePodControls:function(){return a},EscapePodStatus:function(){return x},StandardControls:function(){return s},StatusDisplay:function(){return r}});var e=n(20462),o=n(7081),t=n(88569),r=function(i){var c=i.bars;return(0,e.jsx)(t.wn,{title:"Status",children:(0,e.jsx)(t.Ki,{children:c.map(function(f){return(0,e.jsx)(t.Ki.Item,{label:f.label,children:(0,e.jsx)(t.z2,{color:f.color(f.value),minValue:f.minValue,maxValue:f.maxValue,value:f.value,children:f.textValue})},f.label)})})})},s=function(i){var c=(0,o.Oc)().act,f=i.status_range,m=i.pressure_range,v=i.airlock_disabled,E=f||{},j=E.interior_status,C=E.exterior_status,P=m||{},M=P.external_pressure,_=P.internal_pressure,S=P.chamber_pressure,T=!0;j&&j.state==="open"?T=!1:M&&S&&(T=!(Math.abs(M-S)>5));var b=!0;return C&&C.state==="open"?b=!1:_&&S&&(b=!(Math.abs(_-S)>5)),(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(t.az,{children:[(0,e.jsx)(t.$n,{disabled:v,icon:"arrow-left",onClick:function(){return c("cycle_ext")},children:"Cycle to Exterior"}),(0,e.jsx)(t.$n,{disabled:v,icon:"arrow-right",onClick:function(){return c("cycle_int")},children:"Cycle to Interior"})]}),(0,e.jsxs)(t.az,{children:[(0,e.jsx)(t.$n.Confirm,{disabled:v,color:T?"":"bad",icon:"exclamation-triangle",confirmIcon:"exclamation-triangle",onClick:function(){return c("force_ext")},children:"Force Exterior Door"}),(0,e.jsx)(t.$n.Confirm,{disabled:v,color:b?"":"bad",icon:"exclamation-triangle",confirmIcon:"exclamation-triangle",onClick:function(){return c("force_int")},children:"Force Interior Door"})]})]})},x=function(i){var c=i.exterior_status,f=i.docking_status,m=i.armed,v={docked:(0,e.jsx)(d,{armed:m}),undocking:(0,e.jsx)(t.az,{color:"average",children:"EJECTING-STAND CLEAR!"}),undocked:(0,e.jsx)(t.az,{color:"grey",children:"POD EJECTED"}),docking:(0,e.jsx)(t.az,{color:"good",children:"INITIALIZING..."})};return(0,e.jsx)(t.wn,{children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Escape Pod Status",children:v[f]}),(0,e.jsx)(g,{state:c.state})]})})},g=function(i){var c=i.state,f=[];return f.open=(0,e.jsx)(t.az,{color:"average",children:"OPEN"}),f.unlocked=(0,e.jsx)(t.az,{color:"average",children:"UNSECURED"}),f.locked=(0,e.jsx)(t.az,{color:"good",children:"SECURED"}),(0,e.jsx)(t.Ki.Item,{label:"Docking Hatch",children:f[c]||(0,e.jsx)(t.az,{color:"bad",children:"ERROR"})})},d=function(i){var c=i.armed;return c?(0,e.jsx)(t.az,{color:"average",children:"ARMED"}):(0,e.jsx)(t.az,{color:"good",children:"SYSTEMS OK"})},a=function(i){var c=(0,o.Oc)().act,f=i.docking_status,m=i.override_enabled;return(0,e.jsxs)(t.az,{children:[(0,e.jsx)(t.$n,{disabled:!m,icon:"exclamation-triangle",color:f!=="docked"?"bad":"",onClick:function(){return c("force_door")},children:"Force Exterior Door"}),(0,e.jsx)(t.$n,{selected:m,color:f!=="docked"?"bad":"average",icon:"exclamation-triangle",onClick:function(){return c("toggle_override")},children:"Override"})]})},l=function(i){var c=i.docking_status,f=i.override_enabled,m={docked:(0,e.jsx)(t.az,{color:"good",children:"DOCKED"}),docking:(0,e.jsx)(t.az,{color:"average",children:"DOCKING"}),undocking:(0,e.jsx)(t.az,{color:"average",children:"UNDOCKING"}),undocked:(0,e.jsx)(t.az,{color:"grey",children:"NOT IN USE"})},v=m[c];return f&&(v=(0,e.jsxs)(t.az,{color:"bad",children:[c.toUpperCase(),"-OVERRIDE ENABLED"]})),v}},83783:function(O,u,n){"use strict";n.r(u),n.d(u,{EscapePodBerthConsole:function(){return s}});var e=n(20462),o=n(7081),t=n(88569),r=n(64894),s=function(x){var g=(0,o.Oc)().data,d=g.exterior_status,a=g.docking_status,l=g.armed,i=g.override_enabled;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.EscapePodStatus,{exterior_status:d,docking_status:a,armed:l}),(0,e.jsx)(t.wn,{title:"Controls",children:(0,e.jsx)(r.EscapePodControls,{docking_status:a,override_enabled:i})})]})}},13802:function(O,u,n){"use strict";n.r(u),n.d(u,{EscapePodConsole:function(){return s}});var e=n(20462),o=n(7081),t=n(88569),r=n(64894),s=function(x){var g=(0,o.Oc)(),d=g.act,a=g.data,l=a.exterior_status,i=a.docking_status,c=a.override_enabled,f=a.armed,m=a.can_force;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.EscapePodStatus,{exterior_status:l,docking_status:i,armed:f}),(0,e.jsxs)(t.wn,{title:"Controls",children:[(0,e.jsx)(r.EscapePodControls,{docking_status:i,override_enabled:c}),(0,e.jsxs)(t.az,{children:[(0,e.jsx)(t.$n,{icon:"exclamation-triangle",disabled:f,color:f?"bad":"average",onClick:function(){return d("manual_arm")},children:"ARM"}),(0,e.jsx)(t.$n,{icon:"exclamation-triangle",disabled:!m,color:"bad",onClick:function(){return d("force_launch")},children:"MANUAL EJECT"})]})]})]})}},84323:function(O,u,n){"use strict";n.r(u),n.d(u,{EmbeddedController:function(){return f}});var e=n(20462),o=n(7081),t=n(15581),r=n(27133),s=n(34012),x=n(29935),g=n(32965),d=n(74390),a=n(75355),l=n(77506),i=n(83783),c=n(13802),f=function(m){var v=(0,o.Oc)().data,E=v.internalTemplateName,j={};j.AirlockConsoleAdvanced=(0,e.jsx)(r.AirlockConsoleAdvanced,{}),j.AirlockConsoleSimple=(0,e.jsx)(g.AirlockConsoleSimple,{}),j.AirlockConsolePhoron=(0,e.jsx)(x.AirlockConsolePhoron,{}),j.AirlockConsoleDocking=(0,e.jsx)(s.AirlockConsoleDocking,{}),j.DockingConsoleSimple=(0,e.jsx)(a.DockingConsoleSimple,{}),j.DockingConsoleMulti=(0,e.jsx)(d.DockingConsoleMulti,{}),j.DoorAccessConsole=(0,e.jsx)(l.DoorAccessConsole,{}),j.EscapePodConsole=(0,e.jsx)(c.EscapePodConsole,{}),j.EscapePodBerthConsole=(0,e.jsx)(i.EscapePodBerthConsole,{});var C=j[E];if(!C)throw Error("Unable to find Component for template name: "+E);return(0,e.jsx)(t.p8,{width:450,height:340,children:(0,e.jsx)(t.p8.Content,{children:C})})}},2076:function(O,u,n){"use strict";n.r(u)},26356:function(O,u,n){"use strict";n.r(u),n.d(u,{DisplayDetails:function(){return d},EntityNarrate:function(){return x},EntitySelection:function(){return g},ModeSelector:function(){return a},NarrationInput:function(){return l}});var e=n(20462),o=n(61358),t=n(7081),r=n(88569),s=n(15581),x=function(i){var c=(0,t.Oc)(),f=c.act,m=c.data;return(0,e.jsx)(s.p8,{width:800,height:470,theme:"abstract",children:(0,e.jsx)(s.p8.Content,{scrollable:!0,children:(0,e.jsx)(r.wn,{children:(0,e.jsxs)(r.so,{children:[(0,e.jsx)(r.so.Item,{scrollable:!0,grow:2,fill:!0,children:(0,e.jsx)(r.wn,{scrollable:!0,children:(0,e.jsx)(g,{})})}),(0,e.jsx)(r.so.Item,{grow:.25,fill:!0,children:(0,e.jsx)(r.cG,{vertical:!0})}),(0,e.jsx)(r.so.Item,{grow:6.75,fill:!0,children:(0,e.jsx)(r.wn,{children:(0,e.jsxs)(r.so,{direction:"column",justify:"space-between",children:[(0,e.jsx)(r.so.Item,{Flex:!0,children:(0,e.jsx)(r.wn,{title:"Details",children:(0,e.jsx)(d,{})})}),(0,e.jsx)(r.so.Item,{Flex:!0,children:(0,e.jsx)(r.wn,{title:"Select Behaviour",children:(0,e.jsx)(a,{})})}),(0,e.jsx)(r.so.Item,{Flex:!0,children:(0,e.jsx)(l,{})})]})})})]})})})})},g=function(i){var c=(0,t.Oc)(),f=c.act,m=c.data,v=m.selection_mode,E=m.multi_id_selection,j=m.entity_names;return(0,e.jsx)(r.so,{direction:"column",grow:!0,children:(0,e.jsx)(r.so.Item,{children:(0,e.jsx)(r.wn,{title:"Choose!",buttons:(0,e.jsx)(r.$n,{selected:v,onClick:function(){return f("change_mode_multi")},children:"Multi-Selection"}),children:(0,e.jsx)(r.tU,{vertical:!0,children:j.map(function(C){return(0,e.jsx)(r.tU.Tab,{selected:E.includes(C),onClick:function(){return f("select_entity",{id_selected:C})},children:(0,e.jsx)(r.az,{inline:!0,children:C})},C)})})})})})},d=function(i){var c=(0,t.Oc)(),f=c.act,m=c.data,v=m.selection_mode,E=m.number_mob_selected,j=m.selected_id,C=m.selected_name,P=m.selected_type;return v?(0,e.jsxs)(r.az,{children:[(0,e.jsx)("b",{children:"Number of entities selected:"})," ",E]}):(0,e.jsxs)(r.az,{children:[(0,e.jsx)("b",{children:"Selected ID:"})," ",j," ",(0,e.jsx)("br",{}),(0,e.jsx)("b",{children:"Selected Name:"})," ",C," ",(0,e.jsx)("br",{}),(0,e.jsx)("b",{children:"Selected Type:"})," ",P," ",(0,e.jsx)("br",{})]})},a=function(i){var c=(0,t.Oc)(),f=c.act,m=c.data,v=m.privacy_select,E=m.mode_select;return(0,e.jsxs)(r.so,{direction:"row",children:[(0,e.jsx)(r.so.Item,{grow:!0,children:(0,e.jsx)(r.$n,{onClick:function(){return f("change_mode_privacy")},selected:v,fluid:!0,tooltip:"This button changes whether your narration is loud (any who see/hear) or subtle (range of 1 tile) "+(v?"Click here to disable subtle mode":"Click here to enable subtle mode"),children:v?"Currently: Subtle":"Currently: Loud"})}),(0,e.jsx)(r.so.Item,{grow:!0,children:(0,e.jsx)(r.$n,{onClick:function(){return f("change_mode_narration")},selected:E,fluid:!0,tooltip:"This button sets your narration to talk audiably or emote visibly "+(E?"Click here to emote visibly.":"Click here to talk audiably."),children:E?"Currently: Emoting":"Currently: Talking"})})]})},l=function(i){var c=(0,t.Oc)(),f=c.act,m=c.data,v=(0,o.useState)(""),E=v[0],j=v[1];return(0,e.jsx)(r.wn,{title:"Narration Text",buttons:(0,e.jsx)(r.$n,{onClick:function(){return f("narrate",{message:E})},children:"Send Narration"}),children:(0,e.jsx)(r.so,{children:(0,e.jsx)(r.so.Item,{width:"85%",children:(0,e.jsx)(r.fs,{height:"18rem",onChange:function(C,P){return j(P)},value:E||""})})})})}},63183:function(O,u,n){"use strict";n.r(u),n.d(u,{ExonetNode:function(){return s}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),s=function(x){var g=(0,o.Oc)(),d=g.act,a=g.data,l=a.on,i=a.allowPDAs,c=a.allowCommunicators,f=a.allowNewscasters,m=a.logs;return(0,e.jsx)(r.p8,{width:400,height:400,children:(0,e.jsxs)(r.p8.Content,{scrollable:!0,children:[(0,e.jsx)(t.wn,{title:"Status",buttons:(0,e.jsx)(t.$n,{icon:"power-off",selected:l,onClick:function(){return d("toggle_power")},children:"Power "+(l?"On":"Off")}),children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Incoming PDA Messages",children:(0,e.jsx)(t.$n,{icon:"power-off",selected:i,onClick:function(){return d("toggle_PDA_port")},children:i?"Open":"Closed"})}),(0,e.jsx)(t.Ki.Item,{label:"Incoming Communicators",children:(0,e.jsx)(t.$n,{icon:"power-off",selected:c,onClick:function(){return d("toggle_communicator_port")},children:c?"Open":"Closed"})}),(0,e.jsx)(t.Ki.Item,{label:"Incoming Newscaster Content",children:(0,e.jsx)(t.$n,{icon:"power-off",selected:f,onClick:function(){return d("toggle_newscaster_port")},children:f?"Open":"Closed"})})]})}),(0,e.jsx)(t.wn,{title:"Logging",children:(0,e.jsxs)(t.so,{wrap:"wrap",children:[m.map(function(v,E){return(0,e.jsx)(t.so.Item,{m:"2px",basis:"49%",grow:E%2,children:v},E)}),!m||m.length===0?(0,e.jsx)(t.az,{color:"average",children:"No logs found."}):null]})})]})})}},2858:function(O,u,n){"use strict";n.r(u),n.d(u,{MaterialAmount:function(){return i},Materials:function(){return l}});var e=n(20462),o=n(4089),t=n(65380),r=n(61282),s=n(7081),x=n(88569),g=n(41242),d=n(51890),a=function(c){var f=(0,s.Oc)().act,m=c.material,v=m.name,E=m.removable,j=m.sheets,C=(0,s.QY)("remove_mats_"+v,1),P=C[0],M=C[1];return P>1&&j0});return P.length===0?(0,e.jsxs)(x.az,{textAlign:"center",children:[(0,e.jsx)(x.In,{textAlign:"center",size:5,name:"inbox"}),(0,e.jsx)("br",{}),(0,e.jsx)("b",{children:"No Materials Loaded."})]}):(0,e.jsx)(x.so,{wrap:"wrap",children:P.map(function(M){return(0,e.jsxs)(x.so.Item,{width:"80px",children:[(0,e.jsx)(i,{name:M.name,amount:M.amount,formatsi:!0}),!E&&(0,e.jsx)(x.az,{mt:1,style:{textAlign:"center"},children:(0,e.jsx)(a,{material:M})})]},M.name)||""})})},i=function(c){var f=c.name,m=c.amount,v=c.formatsi,E=c.formatmoney,j=c.color,C=c.style,P="0";return m<1&&m>0?P=(0,o.Mg)(m,2):v?P=(0,g.QL)(m,0):E?P=(0,g.up)(m):P=m.toString(),(0,e.jsxs)(x.so,{direction:"column",align:"center",children:[(0,e.jsx)(x.so.Item,{children:(0,e.jsx)(x.m_,{position:"bottom",content:(0,r.Sn)(f),children:(0,e.jsx)(x.az,{className:(0,t.Ly)(["sheetmaterials32x32",d.MATERIAL_KEYS[f]]),position:"relative",style:C})})}),(0,e.jsx)(x.so.Item,{children:(0,e.jsx)(x.az,{textColor:j,style:{textAlign:"center"},children:P})})]})}},61763:function(O,u,n){"use strict";n.r(u),n.d(u,{PartLists:function(){return a},PartSets:function(){return d}});var e=n(20462),o=n(61358),t=n(7081),r=n(88569),s=n(51890),x=n(42878),g=n(2858),d=function(i){var c=(0,t.Oc)().data,f=c.partSets,m=f===void 0?[]:f,v=c.buildableParts,E=v===void 0?[]:v,j=(0,t.QY)("part_tab",m.length?E[0]:""),C=j[0],P=j[1];return(0,e.jsx)(r.tU,{vertical:!0,children:m.map(function(M){return!!E[M]&&(0,e.jsx)(r.tU.Tab,{selected:M===C,onClick:function(){return P(M)},children:M},M)})})},a=function(i){var c=(0,t.Oc)().data,f=c.partSets,m=f===void 0?[]:f,v=c.buildableParts,E=v===void 0?[]:v,j=i.queueMaterials,C=i.materials,P=(0,t.QY)("part_tab",(0,x.getFirstValidPartSet)(m,E)),M=P[0],_=P[1],S=(0,t.QY)("search_text",""),T=S[0],b=S[1];if(!M||!E[M]){var L=(0,x.getFirstValidPartSet)(m,E);if(L)_(L);else return}var W={Parts:[]},k=[];return T?(0,x.searchFilter)(T,E).forEach(function($){$.format=(0,x.partCondFormat)(C,j,$),k.push($)}):(W={Parts:[]},E[M].forEach(function($){if($.format=(0,x.partCondFormat)(C,j,$),!$.subCategory){W.Parts.push($);return}$.subCategory in W||(W[$.subCategory]=[]),W[$.subCategory].push($)})),(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.wn,{children:(0,e.jsxs)(r.so,{children:[(0,e.jsx)(r.so.Item,{mr:1,children:(0,e.jsx)(r.In,{name:"search"})}),(0,e.jsx)(r.so.Item,{grow:1,children:(0,e.jsx)(r.pd,{fluid:!0,placeholder:"Search for...",value:T,onInput:function($,w){return b(w)}})})]})}),!!T&&(0,e.jsx)(l,{name:"Search Results",parts:k,forceShow:!0,placeholder:"No matching results..."})||Object.keys(W).map(function($){return(0,e.jsx)(l,{name:$,parts:W[$]},$)})]})},l=function(i){var c=(0,t.Oc)(),f=c.act,m=c.data,v=m.buildingPart,E=i.parts,j=i.name,C=i.forceShow,P=i.placeholder,M=(0,t.QY)("display_mats",!1),_=M[0];return(!!E.length||C)&&(0,e.jsxs)(r.wn,{title:j,buttons:(0,e.jsx)(r.$n,{disabled:!E.length,color:"good",icon:"plus-circle",onClick:function(){return f("add_queue_set",{part_list:E.map(function(S){return S.id})})},children:"Queue All"}),children:[!E.length&&P,E.map(function(S){return(0,e.jsxs)(o.Fragment,{children:[(0,e.jsxs)(r.so,{align:"center",children:[(0,e.jsx)(r.so.Item,{children:(0,e.jsx)(r.$n,{disabled:!!v||S.format.textColor===s.COLOR_BAD,color:"good",height:"20px",mr:1,icon:"play",onClick:function(){return f("build_part",{id:S.id})}})}),(0,e.jsx)(r.so.Item,{children:(0,e.jsx)(r.$n,{color:"average",height:"20px",mr:1,icon:"plus-circle",onClick:function(){return f("add_queue_part",{id:S.id})}})}),(0,e.jsx)(r.so.Item,{children:(0,e.jsx)(r.az,{inline:!0,textColor:s.COLOR_KEYS[S.format.textColor],children:S.name})}),(0,e.jsx)(r.so.Item,{grow:1}),(0,e.jsx)(r.so.Item,{children:(0,e.jsx)(r.$n,{icon:"question-circle",color:"transparent",height:"20px",tooltip:"Build Time: "+S.printTime+"s. "+(S.desc||""),tooltipPosition:"left"})})]}),_&&(0,e.jsx)(r.so,{mb:2,children:Object.keys(S.cost).map(function(T){return(0,e.jsx)(r.so.Item,{width:"50px",color:s.COLOR_KEYS[S.format[T].color],children:(0,e.jsx)(g.MaterialAmount,{formatmoney:!0,style:{transform:"scale(0.75) translate(0%, 10%)"},name:T,amount:S.cost[T]})},T)})})]},S.name)})]})}},46372:function(O,u,n){"use strict";n.r(u),n.d(u,{Queue:function(){return g}});var e=n(20462),o=n(7081),t=n(88569),r=n(41242),s=n(51890),x=n(2858),g=function(i){var c=(0,o.Oc)(),f=c.act,m=c.data,v=m.isProcessingQueue,E=m.queue,j=E===void 0?[]:E,C=i.queueMaterials,P=i.missingMaterials,M=i.textColors,_=!j||!j.length;return(0,e.jsxs)(t.so,{height:"100%",width:"100%",direction:"column",children:[(0,e.jsx)(t.so.Item,{height:0,grow:1,children:(0,e.jsx)(t.wn,{height:"100%",title:"Queue",overflowY:"auto",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n.Confirm,{disabled:_,color:"bad",icon:"minus-circle",onClick:function(){return f("clear_queue")},children:"Clear Queue"}),!!v&&(0,e.jsx)(t.$n,{disabled:_,icon:"stop",onClick:function(){return f("stop_queue")},children:"Stop"})||(0,e.jsx)(t.$n,{disabled:_,icon:"play",onClick:function(){return f("build_queue")},children:"Build Queue"})]}),children:(0,e.jsxs)(t.so,{direction:"column",height:"100%",children:[(0,e.jsx)(t.so.Item,{children:(0,e.jsx)(l,{})}),(0,e.jsx)(t.so.Item,{children:(0,e.jsx)(a,{textColors:M})})]})})}),!_&&(0,e.jsx)(t.so.Item,{mt:1,children:(0,e.jsx)(t.wn,{title:"Material Cost",children:(0,e.jsx)(d,{queueMaterials:C,missingMaterials:P})})})]})},d=function(i){var c=i.queueMaterials,f=i.missingMaterials;return(0,e.jsx)(t.so,{wrap:"wrap",children:Object.keys(c).map(function(m){return(0,e.jsxs)(t.so.Item,{width:"12%",children:[(0,e.jsx)(x.MaterialAmount,{formatmoney:!0,name:m,amount:c[m]}),!!f[m]&&(0,e.jsx)(t.az,{textColor:"bad",style:{textAlign:"center"},children:(0,r.up)(f[m])})]},m)})})},a=function(i){var c=(0,o.Oc)(),f=c.act,m=c.data,v=i.textColors,E=m.queue,j=E===void 0?[]:E;return!j||!j.length?(0,e.jsx)(e.Fragment,{children:"No parts in queue."}):j.map(function(C,P){return(0,e.jsx)(t.az,{children:(0,e.jsxs)(t.so,{mb:.5,direction:"column",justify:"center",wrap:"wrap",height:"20px",inline:!0,children:[(0,e.jsx)(t.so.Item,{basis:"content",children:(0,e.jsx)(t.$n,{height:"20px",mr:1,icon:"minus-circle",color:"bad",onClick:function(){return f("del_queue_part",{index:P+1})}})}),(0,e.jsx)(t.so.Item,{children:(0,e.jsx)(t.az,{inline:!0,textColor:s.COLOR_KEYS[v[P]],children:C.name})})]})},C.name)})},l=function(i){var c=(0,o.Oc)().data,f=c.buildingPart,m=c.storedPart;if(m)return(0,e.jsx)(t.az,{children:(0,e.jsx)(t.z2,{minValue:0,maxValue:1,value:1,color:"average",children:(0,e.jsxs)(t.so,{children:[(0,e.jsx)(t.so.Item,{children:m}),(0,e.jsx)(t.so.Item,{grow:1}),(0,e.jsx)(t.so.Item,{children:"Fabricator outlet obstructed..."})]})})});if(f){var v=f.name,E=f.duration,j=f.printTime,C=Math.ceil(E/10);return(0,e.jsx)(t.az,{children:(0,e.jsx)(t.z2,{minValue:0,maxValue:j,value:E,children:(0,e.jsxs)(t.so,{children:[(0,e.jsx)(t.so.Item,{children:v}),(0,e.jsx)(t.so.Item,{grow:1}),(0,e.jsx)(t.so.Item,{children:C>=0&&C+"s"||"Dispensing..."})]})})})}}},51890:function(O,u,n){"use strict";n.r(u),n.d(u,{COLOR_AVERAGE:function(){return t},COLOR_BAD:function(){return r},COLOR_KEYS:function(){return x},COLOR_NONE:function(){return o},MATERIAL_KEYS:function(){return e}});var e={steel:"sheet-metal_3",glass:"sheet-glass_3",silver:"sheet-silver_3",graphite:"sheet-puck_3",plasteel:"sheet-plasteel_3",durasteel:"sheet-durasteel_3",verdantium:"sheet-wavy_3",morphium:"sheet-wavy_3",mhydrogen:"sheet-mythril_3",gold:"sheet-gold_3",diamond:"sheet-diamond",supermatter:"sheet-super_3",osmium:"sheet-silver_3",phoron:"sheet-phoron_3",uranium:"sheet-uranium_3",titanium:"sheet-titanium_3",lead:"sheet-adamantine_3",platinum:"sheet-adamantine_3",plastic:"sheet-plastic_3"},o=0,t=1,r=2,s,x=(s={},s[o]=void 0,s[t]="average",s[r]="bad",s)},42878:function(O,u,n){"use strict";n.r(u),n.d(u,{getFirstValidPartSet:function(){return c},materialArrayToObj:function(){return g},partBuildColor:function(){return d},partCondFormat:function(){return a},queueCondFormat:function(){return l},searchFilter:function(){return i}});var e=n(7402),o=n(61282),t=n(51890);function r(f,m){(m==null||m>f.length)&&(m=f.length);for(var v=0,E=new Array(m);v=f.length?{done:!0}:{done:!1,value:f[E++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function g(f){var m={};return f.forEach(function(v){m[v.name]=v.amount}),m}function d(f,m,v){return f>v?{color:t.COLOR_BAD,deficit:f-v}:m>v?{color:t.COLOR_AVERAGE,deficit:f}:f+m>v?{color:t.COLOR_AVERAGE,deficit:f+m-v}:{color:t.COLOR_NONE,deficit:0}}function a(f,m,v){var E={textColor:t.COLOR_NONE};return Object.keys(v.cost).forEach(function(j){E[j]=d(v.cost[j],m[j],f[j]),E[j].color>E.textColor&&(E.textColor=E[j].color)}),E}function l(f,m){var v={},E={},j={},C={};return m&&m.forEach(function(P,M){C[M]=t.COLOR_NONE,Object.keys(P.cost).forEach(function(_){v[_]=v[_]||0,j[_]=j[_]||0,E[_]=d(P.cost[_],v[_],f[_]),E[_].color!==t.COLOR_NONE?C[M]=100?c="Running":!l&&i>0&&(c="DISCHARGING"),(0,e.jsx)(r.p8,{width:500,height:400,children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsx)(t.wn,{title:"Status",buttons:(0,e.jsx)(t.$n.Confirm,{icon:"exclamation-triangle",confirmIcon:"exclamation-triangle",color:"red",confirmContent:l?"This will disable gravity!":"This will enable gravity!",onClick:function(){return d("gentoggle")},children:"Toggle Breaker"}),children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Breaker Setting",children:l?"Generator Enabled":"Generator Disabled"}),(0,e.jsxs)(t.Ki.Item,{label:"Charge Mode",children:["Generator ",c]}),(0,e.jsxs)(t.Ki.Item,{label:"Charge Status",children:[i,"%"]})]})})})})}},88941:function(O,u,n){"use strict";n.r(u),n.d(u,{GuestPass:function(){return x}});var e=n(20462),o=n(7402),t=n(7081),r=n(88569),s=n(15581),x=function(g){var d=(0,t.Oc)(),a=d.act,l=d.data,i=l.area,c=l.giver,f=l.giveName,m=l.reason,v=l.duration,E=l.mode,j=l.log,C=l.uid;return(0,e.jsx)(s.p8,{width:500,height:520,children:(0,e.jsx)(s.p8.Content,{scrollable:!0,children:E===1&&(0,e.jsxs)(r.wn,{title:"Activity Log",buttons:(0,e.jsx)(r.$n,{icon:"scroll",selected:!0,onClick:function(){return a("mode",{mode:0})},children:"Activity Log"}),children:[(0,e.jsx)(r.$n,{icon:"print",onClick:function(){return a("print")},fluid:!0,mb:1,children:"Print"}),(0,e.jsx)(r.wn,{title:"Logs",children:j.length&&j.map(function(P){return(0,e.jsx)("div",{dangerouslySetInnerHTML:{__html:P}},P)})||(0,e.jsx)(r.az,{children:"No logs."})})]})||(0,e.jsxs)(r.wn,{title:"Guest pass terminal #"+C,buttons:(0,e.jsx)(r.$n,{icon:"scroll",onClick:function(){return a("mode",{mode:1})},children:"Activity Log"}),children:[(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Issuing ID",children:(0,e.jsx)(r.$n,{onClick:function(){return a("id")},children:c||"Insert ID"})}),(0,e.jsx)(r.Ki.Item,{label:"Issued To",children:(0,e.jsx)(r.$n,{onClick:function(){return a("giv_name")},children:f})}),(0,e.jsx)(r.Ki.Item,{label:"Reason",children:(0,e.jsx)(r.$n,{onClick:function(){return a("reason")},children:m})}),(0,e.jsx)(r.Ki.Item,{label:"Duration (minutes)",children:(0,e.jsx)(r.$n,{onClick:function(){return a("duration")},children:v})})]}),(0,e.jsx)(r.$n.Confirm,{icon:"check",fluid:!0,onClick:function(){return a("issue")},children:"Issue Pass"}),(0,e.jsx)(r.wn,{title:"Access",children:(0,o.Ul)(i,function(P){return P.area_name}).map(function(P){return(0,e.jsx)(r.$n.Checkbox,{checked:P.on,onClick:function(){return a("access",{access:P.area})},children:P.area_name},P.area)})})]})})})}},52149:function(O,u,n){"use strict";n.r(u),n.d(u,{GyrotronControl:function(){return s},GyrotronControlContent:function(){return x}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),s=function(){return(0,e.jsx)(r.p8,{width:627,height:700,children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsx)(x,{})})})},x=function(g){var d=(0,o.Oc)(),a=d.act,l=d.data,i=l.gyros;return(0,e.jsx)(t.wn,{title:"Gyrotrons",buttons:(0,e.jsx)(t.$n,{icon:"pencil-alt",onClick:function(){return a("set_tag")},children:"Set Tag"}),children:(0,e.jsxs)(t.XI,{children:[(0,e.jsxs)(t.XI.Row,{header:!0,children:[(0,e.jsx)(t.XI.Cell,{children:"Name"}),(0,e.jsx)(t.XI.Cell,{children:"Position"}),(0,e.jsx)(t.XI.Cell,{children:"Status"}),(0,e.jsx)(t.XI.Cell,{children:"Fire Delay"}),(0,e.jsx)(t.XI.Cell,{children:"Strength"})]}),i.map(function(c){return(0,e.jsxs)(t.XI.Row,{children:[(0,e.jsx)(t.XI.Cell,{children:c.name}),(0,e.jsxs)(t.XI.Cell,{children:[c.x,", ",c.y,", ",c.z]}),(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.$n,{icon:"power-off",selected:c.active,disabled:!c.deployed,onClick:function(){return a("toggle_active",{gyro:c.ref})},children:c.active?"Online":"Offline"})}),(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.N6,{width:"60px",size:1.25,color:!!c.active&&"yellow",value:c.fire_delay,unit:"decisecond(s)",minValue:1,maxValue:60,stepPixelSize:1,onDrag:function(f,m){return a("set_rate",{gyro:c.ref,rate:m})}})}),(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.N6,{width:"60px",size:1.25,color:!!c.active&&"yellow",value:c.strength,unit:"penta-dakw",minValue:1,maxValue:50,stepPixelSize:1,onDrag:function(f,m){return a("set_str",{gyro:c.ref,str:m})}})})]},c.name)})]})})}},44791:function(O,u,n){"use strict";n.r(u),n.d(u,{Holodeck:function(){return s}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),s=function(x){var g=(0,o.Oc)(),d=g.act,a=g.data,l=a.supportedPrograms,i=a.restrictedPrograms,c=a.currentProgram,f=a.isSilicon,m=a.safetyDisabled,v=a.emagged,E=a.gravity,j=l;return m&&(j=j.concat(i)),(0,e.jsx)(r.p8,{width:400,height:610,children:(0,e.jsxs)(r.p8.Content,{scrollable:!0,children:[(0,e.jsx)(t.wn,{title:"Programs",children:j.map(function(C){return(0,e.jsx)(t.$n,{color:i.indexOf(C)!==-1?"bad":null,icon:"eye",selected:c===C,fluid:!0,onClick:function(){return d("program",{program:C})},children:C},C)})}),!!f&&(0,e.jsx)(t.wn,{title:"Override",children:(0,e.jsxs)(t.$n,{icon:"exclamation-triangle",fluid:!0,disabled:v,color:m?"good":"bad",onClick:function(){return d("AIoverride")},children:[!!v&&"Error, unable to control. ",m?"Enable Safeties":"Disable Safeties"]})}),(0,e.jsx)(t.wn,{title:"Controls",children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Safeties",children:m?(0,e.jsx)(t.az,{color:"bad",children:"DISABLED"}):(0,e.jsx)(t.az,{color:"good",children:"ENABLED"})}),(0,e.jsx)(t.Ki.Item,{label:"Gravity",children:(0,e.jsx)(t.$n,{icon:"user-astronaut",selected:E,onClick:function(){return d("gravity")},children:E?"Enabled":"Disabled"})})]})})]})})}},83860:function(O,u,n){"use strict";n.r(u),n.d(u,{ICAssembly:function(){return g}});var e=n(20462),o=n(4089),t=n(7081),r=n(88569),s=n(41242),x=n(15581),g=function(a){var l=(0,t.Oc)().data,i=l.total_parts,c=l.max_components,f=l.total_complexity,m=l.max_complexity,v=l.battery_charge,E=l.battery_max,j=l.net_power,C=l.unremovable_circuits,P=l.removable_circuits;return(0,e.jsx)(x.p8,{width:600,height:380,children:(0,e.jsxs)(x.p8.Content,{scrollable:!0,children:[(0,e.jsx)(r.wn,{title:"Status",children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Space in Assembly",children:(0,e.jsx)(r.z2,{ranges:{good:[0,.25],average:[.5,.75],bad:[.75,1]},value:i/c,maxValue:1,children:i+" / "+c+" ("+(0,o.Mg)(i/c*100,1)+"%)"})}),(0,e.jsx)(r.Ki.Item,{label:"Complexity",children:(0,e.jsx)(r.z2,{ranges:{good:[0,.25],average:[.5,.75],bad:[.75,1]},value:f/m,maxValue:1,children:f+" / "+m+" ("+(0,o.Mg)(f/m*100,1)+"%)"})}),(0,e.jsx)(r.Ki.Item,{label:"Cell Charge",children:v&&(0,e.jsx)(r.z2,{ranges:{bad:[0,.25],average:[.5,.75],good:[.75,1]},value:v/E,maxValue:1,children:v+" / "+E+" ("+(0,o.Mg)(v/E*100,1)+"%)"})||(0,e.jsx)(r.az,{color:"bad",children:"No cell detected."})}),(0,e.jsx)(r.Ki.Item,{label:"Net Energy",children:j===0&&"0 W/s"||(0,e.jsx)(r.zv,{value:j,format:function(M){return"-"+(0,s.d5)(Math.abs(M))+"/s"}})})]})}),C.length&&(0,e.jsx)(d,{title:"Built-in Components",circuits:C})||null,P.length&&(0,e.jsx)(d,{title:"Removable Components",circuits:P})||null]})})},d=function(a){var l=(0,t.Oc)().act,i=a.title,c=a.circuits;return(0,e.jsx)(r.wn,{title:i,children:(0,e.jsx)(r.Ki,{children:c.map(function(f){return(0,e.jsxs)(r.Ki.Item,{label:f.name,children:[(0,e.jsx)(r.$n,{icon:"eye",onClick:function(){return l("open_circuit",{ref:f.ref})},children:"View"}),(0,e.jsx)(r.$n,{icon:"eye",onClick:function(){return l("rename_circuit",{ref:f.ref})},children:"Rename"}),(0,e.jsx)(r.$n,{icon:"eye",onClick:function(){return l("scan_circuit",{ref:f.ref})},children:"Debugger Scan"}),(0,e.jsx)(r.$n,{icon:"eye",onClick:function(){return l("remove_circuit",{ref:f.ref})},children:"Remove"}),(0,e.jsx)(r.$n,{icon:"eye",onClick:function(){return l("bottom_circuit",{ref:f.ref})},children:"Move to Bottom"})]},f.ref)})})})}},23343:function(O,u,n){"use strict";n.r(u),n.d(u,{ICCircuit:function(){return g}});var e=n(20462),o=n(61282),t=n(7081),r=n(88569),s=n(41242),x=n(15581),g=function(l){var i=(0,t.Oc)(),c=i.act,f=i.data,m=f.desc,v=f.displayed_name,E=f.complexity,j=f.power_draw_idle,C=f.power_draw_per_use,P=f.extended_desc,M=f.inputs,_=f.outputs,S=f.activators;return(0,e.jsx)(x.p8,{width:600,height:400,title:v,children:(0,e.jsxs)(x.p8.Content,{scrollable:!0,children:[(0,e.jsxs)(r.wn,{title:"Stats",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.$n,{onClick:function(){return c("rename")},children:"Rename"}),(0,e.jsx)(r.$n,{onClick:function(){return c("scan")},children:"Scan with Device"}),(0,e.jsx)(r.$n,{onClick:function(){return c("remove")},children:"Remove"})]}),children:[(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Complexity",children:E}),j&&(0,e.jsx)(r.Ki.Item,{label:"Power Draw (Idle)",children:(0,s.d5)(j)})||null,C&&(0,e.jsx)(r.Ki.Item,{label:"Power Draw (Active)",children:(0,s.d5)(C)})||null]}),P]}),(0,e.jsxs)(r.wn,{title:"Circuit",children:[(0,e.jsxs)(r.so,{textAlign:"center",spacing:1,children:[M.length&&(0,e.jsx)(r.so.Item,{grow:1,children:(0,e.jsx)(r.wn,{title:"Inputs",children:(0,e.jsx)(d,{list:M})})})||null,(0,e.jsx)(r.so.Item,{basis:M.length&&_.length?"33%":M.length||_.length?"45%":"100%",children:(0,e.jsx)(r.wn,{title:v,mb:1,children:(0,e.jsx)(r.az,{children:m})})}),_.length&&(0,e.jsx)(r.so.Item,{grow:1,children:(0,e.jsx)(r.wn,{title:"Outputs",children:(0,e.jsx)(d,{list:_})})})||null]}),(0,e.jsx)(r.wn,{title:"Triggers",children:S.map(function(T){return(0,e.jsxs)(r.Ki.Item,{label:T.name,children:[(0,e.jsx)(r.$n,{onClick:function(){return c("pin_name",{pin:T.ref})},children:T.pulse_out?"":""}),(0,e.jsx)(a,{pin:T})]},T.name)})})]})]})})},d=function(l){var i=(0,t.Oc)().act,c=l.list;return c.map(function(f){return(0,e.jsxs)(r.az,{children:[(0,e.jsxs)(r.$n,{onClick:function(){return i("pin_name",{pin:f.ref})},children:[(0,o.jT)(f.type),": ",f.name]}),(0,e.jsx)(r.$n,{onClick:function(){return i("pin_data",{pin:f.ref})},children:f.data}),(0,e.jsx)(a,{pin:f})]},f.ref)})},a=function(l){var i=(0,t.Oc)().act,c=l.pin;return c.linked.map(function(f){return(0,e.jsxs)(r.az,{inline:!0,children:[(0,e.jsx)(r.$n,{onClick:function(){return i("pin_unwire",{pin:c.ref,link:f.ref})},children:f.name}),"@\xA0",(0,e.jsx)(r.$n,{onClick:function(){return i("examine",{ref:f.holder_ref})},children:f.holder_name})]},f.ref)})}},87134:function(O,u,n){"use strict";n.r(u),n.d(u,{ICDetailer:function(){return x}});var e=n(20462),o=n(61282),t=n(7081),r=n(88569),s=n(15581),x=function(g){var d=(0,t.Oc)(),a=d.act,l=d.data,i=l.detail_color,c=l.color_list;return(0,e.jsx)(s.p8,{width:420,height:254,children:(0,e.jsx)(s.p8.Content,{children:(0,e.jsx)(r.wn,{children:Object.keys(c).map(function(f,m){return(0,e.jsx)(r.$n,{ml:0,mr:0,mb:-.4,mt:0,tooltip:(0,o.Sn)(f),tooltipPosition:m%6===5?"left":"right",height:"64px",width:"64px",onClick:function(){return a("change_color",{color:f})},style:c[f]===i?{border:"4px solid black",borderRadius:"0"}:{borderRadius:"0"},backgroundColor:c[f]},f)})})})})}},92306:function(O,u,n){"use strict";n.r(u),n.d(u,{ICPrinter:function(){return x}});var e=n(20462),o=n(7402),t=n(7081),r=n(88569),s=n(15581),x=function(a){var l=(0,t.Oc)().data,i=l.metal,c=l.max_metal,f=l.metal_per_sheet,m=l.upgraded,v=l.can_clone;return(0,e.jsx)(s.p8,{width:600,height:630,children:(0,e.jsxs)(s.p8.Content,{scrollable:!0,children:[(0,e.jsxs)(r.wn,{title:"Status",children:[(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Metal",children:(0,e.jsxs)(r.z2,{value:i,maxValue:c,children:[i/f," / ",c/f," sheets"]})}),(0,e.jsx)(r.Ki.Item,{label:"Circuits Available",children:m?"Advanced":"Regular"}),(0,e.jsx)(r.Ki.Item,{label:"Assembly Cloning",children:v?"Available":"Unavailable"})]}),(0,e.jsx)(r.az,{mt:1,children:"Note: A red component name means that the printer must be upgraded to create that component."})]}),(0,e.jsx)(d,{})]})})};function g(a,l){return!(!a.can_build||a.cost>l.metal)}var d=function(a){var l=(0,t.Oc)(),i=l.act,c=l.data,f=c.categories,m=(0,t.QY)("categoryTarget",""),v=m[0],E=m[1],j=(0,o.pb)(f,function(C){return C.name===v})[0];return(0,e.jsx)(r.wn,{title:"Circuits",children:(0,e.jsxs)(r.BJ,{fill:!0,children:[(0,e.jsx)(r.BJ.Item,{mr:2,children:(0,e.jsx)(r.tU,{vertical:!0,children:(0,o.Ul)(f,function(C){return C.name}).map(function(C){return(0,e.jsx)(r.tU.Tab,{selected:v===C.name,onClick:function(){return E(C.name)},children:C.name},C.name)})})}),(0,e.jsx)(r.BJ.Item,{children:j?(0,e.jsx)(r.wn,{children:(0,e.jsx)(r.Ki,{children:(0,o.Ul)(j.items,function(C){return C.name}).map(function(C){return(0,e.jsx)(r.Ki.Item,{label:C.name,labelColor:C.can_build?"good":"bad",buttons:(0,e.jsx)(r.$n,{disabled:!g(C,c),icon:"print",onClick:function(){return i("build",{build:C.path})},children:"Print"}),children:C.desc},C.name)})})}):(0,e.jsx)(r.az,{children:"No category selected."})})]})})}},98309:function(O,u,n){"use strict";n.r(u),n.d(u,{IDCard:function(){return x}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),s=n(10921),x=function(g){var d=(0,o.Oc)().data,a=d.registered_name,l=d.sex,i=d.species,c=d.age,f=d.assignment,m=d.fingerprint_hash,v=d.blood_type,E=d.dna_hash,j=d.photo_front,C=[{name:"Sex",val:l},{name:"Species",val:i},{name:"Age",val:c},{name:"Blood Type",val:v},{name:"Fingerprint",val:m},{name:"DNA Hash",val:E}];return(0,e.jsx)(r.p8,{width:470,height:250,children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsxs)(t.wn,{children:[(0,e.jsxs)(t.so,{children:[(0,e.jsx)(t.so.Item,{basis:"25%",textAlign:"left",children:(0,e.jsx)(t.az,{inline:!0,style:{width:"101px",height:"120px",overflow:"hidden",outline:"2px solid #4972a1"},children:j&&(0,e.jsx)(t._V,{src:j.substring(1,j.length-1),style:{width:"300px",marginLeft:"-94px"}})||(0,e.jsx)(t.In,{name:"user",size:8,ml:1.5,mt:2.5})})}),(0,e.jsx)(t.so.Item,{basis:0,grow:1,children:(0,e.jsx)(t.Ki,{children:C.map(function(P){return(0,e.jsx)(t.Ki.Item,{label:P.name,children:P.val},P.name)})})})]}),(0,e.jsxs)(t.so,{className:"IDCard__NamePlate",align:"center",justify:"space-around",children:[(0,e.jsx)(t.so.Item,{children:(0,e.jsx)(t.az,{textAlign:"center",children:a})}),(0,e.jsx)(t.so.Item,{children:(0,e.jsx)(t.az,{textAlign:"center",children:(0,e.jsx)(s.RankIcon,{color:"",rank:f})})}),(0,e.jsx)(t.so.Item,{children:(0,e.jsx)(t.az,{textAlign:"center",children:f})})]})]})})})}},39841:function(O,u,n){"use strict";n.r(u),n.d(u,{IdentificationComputer:function(){return a},IdentificationComputerAccessModification:function(){return c},IdentificationComputerContent:function(){return l},IdentificationComputerPrinting:function(){return i},IdentificationComputerRegions:function(){return f}});var e=n(20462),o=n(7402),t=n(61282),r=n(61358),s=n(7081),x=n(88569),g=n(15581),d=n(58044),a=function(){return(0,e.jsx)(g.p8,{width:600,height:700,children:(0,e.jsx)(g.p8.Content,{children:(0,e.jsx)(l,{})})})},l=function(m){var v=(0,s.Oc)(),E=v.act,j=v.data,C=m.ntos,P=j.mode,M=j.has_modify,_=j.printing,S=j.have_id_slot,T=j.have_printer,b=(0,e.jsx)(c,{ntos:C});return C&&!S?b=(0,e.jsx)(d.CrewManifestContent,{}):_?b=(0,e.jsx)(i,{}):P===1&&(b=(0,e.jsx)(d.CrewManifestContent,{})),(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(x.tU,{children:[(!C||!!S)&&(0,e.jsx)(x.tU.Tab,{icon:"home",selected:P===0,onClick:function(){return E("mode",{mode_target:0})},children:"Access Modification"}),(0,e.jsx)(x.tU.Tab,{icon:"home",selected:P===1,onClick:function(){return E("mode",{mode_target:1})},children:"Crew Manifest"}),!C||!!T&&(0,e.jsx)(x.tU.Tab,{style:{float:"right"},icon:"print",onClick:function(){return(P||M)&&E("print")},color:!P&&!M?"transparent":"",children:"Print"})]}),b]})},i=function(m){return(0,e.jsx)(x.wn,{title:"Printing",children:"Please wait..."})},c=function(m){var v=(0,s.Oc)(),E=v.act,j=v.data,C=m.ntos,P=j.station_name,M=j.target_name,_=j.target_owner,S=_===void 0?"":_,T=j.scan_name,b=j.authenticated,L=j.has_modify,W=j.account_number,k=W===void 0?"":W,$=j.centcom_access,w=j.all_centcom_access,V=j.id_rank,F=j.departments;return(0,e.jsxs)(x.wn,{title:"Access Modification",children:[!b&&(0,e.jsx)(x.az,{italic:!0,mb:1,children:"Please insert the IDs into the terminal to proceed."}),(0,e.jsxs)(x.Ki,{children:[(0,e.jsx)(x.Ki.Item,{label:"Target Identitity",children:(0,e.jsx)(x.$n,{icon:"eject",fluid:!0,onClick:function(){return E("modify")},children:M})}),!C&&(0,e.jsx)(x.Ki.Item,{label:"Authorized Identitity",children:(0,e.jsx)(x.$n,{icon:"eject",fluid:!0,onClick:function(){return E("scan")},children:T})})]}),!!b&&!!L&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(x.wn,{title:"Details",children:(0,e.jsxs)(x.Ki,{children:[(0,e.jsx)(x.Ki.Item,{label:"Registered Name",children:(0,e.jsx)(x.pd,{value:S,fluid:!0,onInput:function(X,Z){return E("reg",{reg:Z})}})}),(0,e.jsx)(x.Ki.Item,{label:"Account Number",children:(0,e.jsx)(x.pd,{value:k,fluid:!0,onInput:function(X,Z){return E("account",{account:Z})}})}),(0,e.jsx)(x.Ki.Item,{label:"Dismissals",children:(0,e.jsx)(x.$n.Confirm,{color:"bad",icon:"exclamation-triangle",confirmIcon:"fire",fluid:!0,confirmContent:"You are dismissing "+S+", confirm?",onClick:function(){return E("terminate")},children:"Dismiss "+S})})]})}),(0,e.jsx)(x.wn,{title:"Assignment",children:(0,e.jsxs)(x.XI,{children:[F.map(function(X){return(0,e.jsxs)(r.Fragment,{children:[(0,e.jsxs)(x.XI.Row,{children:[(0,e.jsx)(x.XI.Cell,{header:!0,verticalAlign:"middle",children:X.department_name}),(0,e.jsx)(x.XI.Cell,{children:X.jobs.map(function(Z){return(0,e.jsx)(x.$n,{selected:Z.job===V,onClick:function(){return E("assign",{assign_target:Z.job})},children:(0,t.jT)(Z.display_name)},Z.job)})})]}),(0,e.jsx)(x.az,{mt:-1,children:"\xA0"})," "]},X.department_name)}),(0,e.jsxs)(x.XI.Row,{children:[(0,e.jsx)(x.XI.Cell,{header:!0,verticalAlign:"middle",children:"Special"}),(0,e.jsx)(x.XI.Cell,{children:(0,e.jsx)(x.$n,{onClick:function(){return E("assign",{assign_target:"Custom"})},children:"Custom"})})]})]})}),!!$&&(0,e.jsx)(x.wn,{title:"Central Command",children:w.map(function(X){return(0,e.jsx)(x.az,{children:(0,e.jsx)(x.$n,{fluid:!0,selected:X.allowed,onClick:function(){return E("access",{access_target:X.ref,allowed:X.allowed})},children:(0,t.jT)(X.desc)})},X.ref)})})||(0,e.jsx)(x.wn,{title:P,children:(0,e.jsx)(f,{actName:"access"})})]})]})},f=function(m){var v=(0,s.Oc)(),E=v.act,j=v.data,C=m.actName,P=j.regions;return(0,e.jsx)(x.so,{wrap:"wrap",spacing:1,children:P&&(0,o.Ul)(P,function(M){return M.name}).map(function(M){return(0,e.jsx)(x.so.Item,{mb:1,basis:"content",grow:1,children:(0,e.jsx)(x.wn,{title:M.name,height:"100%",children:(0,o.Ul)(M.accesses,function(_){return _.desc}).map(function(_){return(0,e.jsx)(x.az,{children:(0,e.jsx)(x.$n,{fluid:!0,selected:_.allowed,onClick:function(){return E(C,{access_target:_.ref,allowed:_.allowed})},children:(0,t.jT)(_.desc)})},_.ref)})})},M.name)})})}},15450:function(O,u,n){"use strict";n.r(u),n.d(u,{InventoryPanel:function(){return s}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),s=function(x){var g=(0,o.Oc)(),d=g.act,a=g.data,l=a.slots,i=a.internalsValid;return(0,e.jsx)(r.p8,{width:400,height:200,children:(0,e.jsxs)(r.p8.Content,{scrollable:!0,children:[(0,e.jsx)(t.wn,{children:(0,e.jsx)(t.Ki,{children:l&&l.length&&l.map(function(c){return(0,e.jsx)(t.Ki.Item,{label:c.name,children:(0,e.jsx)(t.$n,{mb:-1,icon:c.item?"hand-paper":"gift",onClick:function(){return d(c.act)},children:c.item||"Nothing"})},c.name)})})}),i&&(0,e.jsx)(t.wn,{title:"Actions",children:i&&(0,e.jsx)(t.$n,{fluid:!0,icon:"lungs",onClick:function(){return d("internals")},children:"Set Internals"})||null})||null]})})}},66855:function(O,u,n){"use strict";n.r(u),n.d(u,{InventoryPanelHuman:function(){return s}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),s=function(x){var g=(0,o.Oc)(),d=g.act,a=g.data,l=a.slots,i=a.specialSlots,c=a.internalsValid,f=a.sensors,m=a.handcuffed,v=a.handcuffedParams,E=a.legcuffed,j=a.legcuffedParams,C=a.accessory;return(0,e.jsx)(r.p8,{width:400,height:600,children:(0,e.jsxs)(r.p8.Content,{scrollable:!0,children:[(0,e.jsx)(t.wn,{children:(0,e.jsxs)(t.Ki,{children:[l&&l.length&&l.map(function(P){return(0,e.jsx)(t.Ki.Item,{label:P.name,children:(0,e.jsx)(t.$n,{mb:-1,icon:P.item?"hand-paper":"gift",onClick:function(){return d(P.act,P.params)},children:P.item||"Nothing"})},P.name)}),(0,e.jsx)(t.Ki.Divider,{}),i&&i.length&&i.map(function(P){return(0,e.jsx)(t.Ki.Item,{label:P.name,children:(0,e.jsx)(t.$n,{mb:-1,icon:P.item?"hand-paper":"gift",onClick:function(){return d(P.act,P.params)},children:P.item||"Nothing"})},P.name)})]})}),(0,e.jsxs)(t.wn,{title:"Actions",children:[(0,e.jsx)(t.$n,{fluid:!0,icon:"running",onClick:function(){return d("targetSlot",{slot:"splints"})},children:"Remove Splints"}),(0,e.jsx)(t.$n,{fluid:!0,icon:"hand-paper",onClick:function(){return d("targetSlot",{slot:"pockets"})},children:"Empty Pockets"}),(0,e.jsx)(t.$n,{fluid:!0,icon:"socks",onClick:function(){return d("targetSlot",{slot:"underwear"})},children:"Remove or Replace Underwear"}),c&&(0,e.jsx)(t.$n,{fluid:!0,icon:"lungs",onClick:function(){return d("targetSlot",{slot:"internals"})},children:"Set Internals"})||null,f&&(0,e.jsx)(t.$n,{fluid:!0,icon:"book-medical",onClick:function(){return d("targetSlot",{slot:"sensors"})},children:"Set Sensors"})||null,m&&(0,e.jsx)(t.$n,{fluid:!0,color:"bad",icon:"unlink",onClick:function(){return d("targetSlot",v)},children:"Handcuffed"})||null,E&&(0,e.jsx)(t.$n,{fluid:!0,color:"bad",icon:"unlink",onClick:function(){return d("targetSlot",j)},children:"Legcuffed"})||null,C&&(0,e.jsx)(t.$n,{fluid:!0,color:"bad",icon:"unlink",onClick:function(){return d("targetSlot",{slot:"tie"})},children:"Remove Accessory"})||null]})]})})}},42592:function(O,u,n){"use strict";n.r(u),n.d(u,{IsolationCentrifuge:function(){return s}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),s=function(x){var g=(0,o.Oc)(),d=g.act,a=g.data,l=a.busy,i=a.antibodies,c=a.pathogens,f=a.is_antibody_sample,m=a.sample_inserted,v=(0,e.jsx)(t.az,{color:"average",children:"No vial detected."});return m&&(!i&&!c?v=(0,e.jsx)(t.az,{color:"average",children:"No antibodies or viral strains detected."}):v=(0,e.jsxs)(e.Fragment,{children:[i?(0,e.jsx)(t.wn,{title:"Antibodies",children:i}):"",c.length?(0,e.jsx)(t.wn,{title:"Pathogens",children:(0,e.jsx)(t.Ki,{children:c.map(function(E){return(0,e.jsx)(t.Ki.Item,{label:E.name,children:E.spread_type},E.name)})})}):""]})),(0,e.jsx)(r.p8,{width:400,height:500,children:(0,e.jsx)(r.p8.Content,{scrollable:!0,children:l?(0,e.jsx)(t.wn,{title:"The Centrifuge is currently busy.",color:"bad",children:(0,e.jsx)("center",{children:(0,e.jsx)(t.az,{color:"bad",children:l})})}):(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(t.wn,{title:f?"Antibody Sample":"Blood Sample",children:[(0,e.jsxs)(t.so,{spacing:1,mb:1,children:[(0,e.jsx)(t.so.Item,{grow:1,children:(0,e.jsx)(t.$n,{fluid:!0,icon:"print",disabled:!i&&!c.length,onClick:function(){return d("print")},children:"Print"})}),(0,e.jsx)(t.so.Item,{grow:1,children:(0,e.jsx)(t.$n,{fluid:!0,icon:"eject",disabled:!m,onClick:function(){return d("sample")},children:"Eject Vial"})})]}),v]}),i&&!f||c.length?(0,e.jsx)(t.wn,{title:"Controls",children:(0,e.jsxs)(t.Ki,{children:[i&&!f?(0,e.jsx)(t.Ki.Item,{label:"Isolate Antibodies",children:(0,e.jsx)(t.$n,{icon:"pen",onClick:function(){return d("antibody")},children:i})}):"",c.length?(0,e.jsx)(t.Ki.Item,{label:"Isolate Strain",children:c.map(function(E){return(0,e.jsx)(t.$n,{icon:"pen",onClick:function(){return d("isolate",{isolate:E.reference})},children:E.name},E.name)})}):""]})}):""]})})})}},40939:function(O,u,n){"use strict";n.r(u),n.d(u,{JanitorCart:function(){return s}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),s=function(d){var a=(0,o.Oc)(),l=a.act,i=a.data,c=i.mybag,f=i.mybucket,m=i.mymop,v=i.myspray,E=i.myreplacer,j=i.signs;return(0,e.jsx)(r.p8,{width:210,height:180,children:(0,e.jsxs)(r.p8.Content,{children:[(0,e.jsx)(t.$n,{width:"64px",height:"64px",position:"relative",tooltip:c||"Garbage Bag Slot",tooltipPosition:"bottom-end",color:c?"grey":"transparent",style:{border:c?void 0:"2px solid grey"},onClick:function(){return l("bag")},children:(0,e.jsx)(g,{iconkey:"mybag"})}),(0,e.jsx)(t.$n,{width:"64px",height:"64px",position:"relative",tooltip:f||"Bucket Slot",tooltipPosition:"bottom",color:f?"grey":"transparent",style:{border:f?void 0:"2px solid grey"},onClick:function(){return l("bucket")},children:(0,e.jsx)(g,{iconkey:"mybucket"})}),(0,e.jsx)(t.$n,{width:"64px",height:"64px",position:"relative",tooltip:m||"Mop Slot",tooltipPosition:"bottom-end",color:m?"grey":"transparent",style:{border:m?void 0:"2px solid grey"},onClick:function(){return l("mop")},children:(0,e.jsx)(g,{iconkey:"mymop"})}),(0,e.jsx)(t.$n,{width:"64px",height:"64px",position:"relative",tooltip:v||"Spray Slot",tooltipPosition:"top-end",color:v?"grey":"transparent",style:{border:v?void 0:"2px solid grey"},onClick:function(){return l("spray")},children:(0,e.jsx)(g,{iconkey:"myspray"})}),(0,e.jsx)(t.$n,{width:"64px",height:"64px",position:"relative",tooltip:E||"Light Replacer Slot",tooltipPosition:"top",color:E?"grey":"transparent",style:{border:E?void 0:"2px solid grey"},onClick:function(){return l("replacer")},children:(0,e.jsx)(g,{iconkey:"myreplacer"})}),(0,e.jsx)(t.$n,{width:"64px",height:"64px",position:"relative",tooltip:j||"Signs Slot",tooltipPosition:"top-start",color:j?"grey":"transparent",style:{border:j?void 0:"2px solid grey"},onClick:function(){return l("sign")},children:(0,e.jsx)(g,{iconkey:"signs"})})]})})},x={mybag:"trash",mybucket:"fill",mymop:"broom",myspray:"spray-can",myreplacer:"lightbulb",signs:"sign"},g=function(d){var a=(0,o.Oc)().data,l=d.iconkey,i=a.icons;return l in i?(0,e.jsx)(t._V,{src:i[l].substr(1,i[l].length-1),style:{position:"absolute",left:"0",right:"0",top:"0",bottom:"0",width:"64px",height:"64px"}}):(0,e.jsx)(t.In,{style:{position:"absolute",left:"4px",right:"0",top:"20px",bottom:"0",width:"64px",height:"64px"},fontSize:2,name:x[l]})}},25244:function(O,u,n){"use strict";n.r(u),n.d(u,{Jukebox:function(){return a}});var e=n(20462),o=n(4089),t=n(61282),r=n(61358),s=n(7081),x=n(88569),g=n(41242),d=n(15581),a=function(l){var i=function(){cn&&le("Admin"),nn(!cn)},c=(0,s.Oc)(),f=c.act,m=c.data,v=m.playing,E=m.loop_mode,j=m.volume,C=m.current_track_ref,P=m.current_track,M=m.current_genre,_=m.percent,S=m.tracks,T=m.admin,b=S.length&&S.reduce(function(be,sn){var _n=sn.genre||"Uncategorized";return be[_n]||(be[_n]=[]),be[_n].push(sn),be},{}),L=v&&(M||"Uncategorized"),W=(0,r.useState)("Unknown"),k=W[0],$=W[1],w=(0,r.useState)(""),V=w[0],F=w[1],X=(0,r.useState)(0),Z=X[0],te=X[1],J=(0,r.useState)("Unknown"),Q=J[0],Y=J[1],G=(0,r.useState)("Admin"),ee=G[0],le=G[1],ie=(0,r.useState)(!1),de=ie[0],ve=ie[1],Te=(0,r.useState)(!1),Ce=Te[0],je=Te[1],$e=(0,r.useState)(!1),cn=$e[0],nn=$e[1];return(0,e.jsx)(d.p8,{width:450,height:600,children:(0,e.jsxs)(d.p8.Content,{scrollable:!0,children:[(0,e.jsx)(x.wn,{title:"Currently Playing",children:(0,e.jsxs)(x.Ki,{children:[(0,e.jsx)(x.Ki.Item,{label:"Title",children:v&&P&&(0,e.jsxs)(x.az,{children:[P.title," by ",P.artist||"Unkown"]})||(0,e.jsx)(x.az,{children:"Stopped"})}),(0,e.jsxs)(x.Ki.Item,{label:"Controls",children:[(0,e.jsx)(x.$n,{icon:"play",disabled:v,onClick:function(){return f("play")},children:"Play"}),(0,e.jsx)(x.$n,{icon:"stop",disabled:!v,onClick:function(){return f("stop")},children:"Stop"})]}),(0,e.jsxs)(x.Ki.Item,{label:"Loop Mode",children:[(0,e.jsx)(x.$n,{icon:"play",onClick:function(){return f("loopmode",{loopmode:1})},selected:E===1,children:"Next"}),(0,e.jsx)(x.$n,{icon:"random",onClick:function(){return f("loopmode",{loopmode:2})},selected:E===2,children:"Shuffle"}),(0,e.jsx)(x.$n,{icon:"redo",onClick:function(){return f("loopmode",{loopmode:3})},selected:E===3,children:"Repeat"}),(0,e.jsx)(x.$n,{icon:"step-forward",onClick:function(){return f("loopmode",{loopmode:4})},selected:E===4,children:"Once"})]}),(0,e.jsx)(x.Ki.Item,{label:"Progress",children:(0,e.jsx)(x.z2,{value:_,maxValue:1,color:"good"})}),(0,e.jsx)(x.Ki.Item,{label:"Volume",children:(0,e.jsx)(x.Ap,{minValue:0,step:1,value:j*100,maxValue:100,ranges:{good:[75,1/0],average:[25,75],bad:[0,25]},format:function(be){return(0,o.Mg)(be,1)+"%"},onChange:function(be,sn){return f("volume",{val:(0,o.LI)(sn/100,2)})}})})]})}),(0,e.jsx)(x.wn,{title:"Available Tracks",children:S.length&&Object.keys(b).sort().map(function(be){return(0,t.ZH)(be)!=="Admin"&&(0,e.jsx)(x.Nt,{title:be,color:L===be?"green":"default",child_mt:0,children:(0,e.jsx)("div",{style:{marginLeft:"1em"},children:b[be].map(function(sn){return(0,e.jsx)(x.$n,{fluid:!0,icon:"play",selected:C===sn.ref,onClick:function(){return f("change_track",{change_track:sn.ref})},children:sn.title},sn.ref)})})},be)})||(0,e.jsx)(x.az,{color:"bad",children:"Error: No songs loaded."})}),T&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(x.wn,{title:"Admin Tracks",children:S.length&&Object.keys(b).sort().map(function(be){return(0,t.ZH)(be)==="Admin"&&(0,e.jsx)(x.Nt,{title:be,color:L===be?"green":"default",child_mt:0,children:(0,e.jsx)("div",{style:{marginLeft:"1em"},children:b[be].map(function(sn){return(0,e.jsxs)(x.so,{children:[(0,e.jsx)(x.so.Item,{grow:1,children:(0,e.jsx)(x.$n,{fluid:!0,icon:"play",selected:C===sn.ref,onClick:function(){return f("change_track",{change_track:sn.ref})},children:sn.title},sn.ref)}),(0,e.jsx)(x.so.Item,{children:(0,e.jsx)(x.$n.Confirm,{icon:"trash",onClick:function(){return f("remove_new_track",{ref:sn.ref})}})})]},sn.ref)})})},be)})||(0,e.jsx)(x.az,{color:"bad",children:"Error: No songs added."})}),(0,e.jsx)(x.wn,{title:"Admin Options",children:(0,e.jsxs)(x.Nt,{title:"Add Track",children:[(0,e.jsxs)(x.Ki,{children:[(0,e.jsx)(x.Ki.Item,{label:"Title",children:(0,e.jsx)(x.pd,{width:"100%",value:k,onChange:function(be,sn){return $(sn)}})}),(0,e.jsx)(x.Ki.Item,{label:"URL",children:(0,e.jsx)(x.pd,{width:"100%",value:V,onChange:function(be,sn){return F(sn)}})}),(0,e.jsx)(x.Ki.Item,{label:"Playtime",children:(0,e.jsx)(x.Q7,{step:1,value:Z,minValue:0,maxValue:3600,onChange:function(be){return te(be)},format:function(be){return(0,g.fU)((0,o.LI)(be*10,0))}})}),(0,e.jsx)(x.Ki.Item,{label:"Artist",children:(0,e.jsx)(x.pd,{width:"100%",value:Q,onChange:function(be,sn){return Y(sn)}})}),(0,e.jsx)(x.Ki.Item,{label:"Genre",children:(0,e.jsxs)(x.so,{children:[(0,e.jsx)(x.so.Item,{grow:1,children:cn?(0,e.jsx)(x.pd,{width:"100%",value:ee,onChange:function(be,sn){return le(sn)}}):(0,e.jsx)(x.az,{children:ee})}),(0,e.jsx)(x.so.Item,{children:(0,e.jsx)(x.$n.Checkbox,{icon:cn?"lock-open":"lock",color:cn?"good":"bad",onClick:function(){return i()}})})]})}),(0,e.jsx)(x.Ki.Item,{label:"Secret",children:(0,e.jsx)(x.$n.Checkbox,{checked:de,onClick:function(){return ve(!de)}})}),(0,e.jsx)(x.Ki.Item,{label:"Lobby",children:(0,e.jsx)(x.$n.Checkbox,{checked:Ce,onClick:function(){return je(!Ce)}})})]}),(0,e.jsx)(x.cG,{}),(0,e.jsx)(x.$n,{disabled:!(k&&V&&Z&&Q&&ee),onClick:function(){return f("add_new_track",{title:k,url:V,duration:Z,artist:Q,genre:ee,secret:de,lobby:Ce})},children:"Add new Track"})]})})]})]})})}},7881:function(O,u,n){"use strict";n.r(u),n.d(u,{LawManager:function(){return g}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581);function s(){return s=Object.assign||function(c){for(var f=1;f=0)&&(m[E]=c[E]);return m}var g=function(c){var f=(0,o.Oc)().data,m=f.isSlaved;return(0,e.jsx)(r.p8,{width:800,height:600,children:(0,e.jsxs)(r.p8.Content,{scrollable:!0,children:[m?(0,e.jsxs)(t.IC,{info:!0,children:["Law-synced to ",m]}):"",(0,e.jsx)(d,{})]})})},d=function(c){var f=(0,o.QY)("lawsTabIndex",0),m=f[0],v=f[1],E=[];return E[0]=(0,e.jsx)(a,{}),E[1]=(0,e.jsx)(i,{}),(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(t.tU,{children:[(0,e.jsx)(t.tU.Tab,{selected:m===0,onClick:function(){return v(0)},children:"Law Management"}),(0,e.jsx)(t.tU.Tab,{selected:m===1,onClick:function(){return v(1)},children:"Law Sets"})]}),E[m]]})},a=function(c){var f=(0,o.Oc)(),m=f.act,v=f.data,E=v.ion_law_nr,j=v.ion_law,C=v.zeroth_law,P=v.inherent_law,M=v.supplied_law,_=v.supplied_law_position,S=v.zeroth_laws,T=v.has_zeroth_laws,b=v.ion_laws,L=v.has_ion_laws,W=v.inherent_laws,k=v.has_inherent_laws,$=v.supplied_laws,w=v.has_supplied_laws,V=v.isAI,F=v.isMalf,X=v.isAdmin,Z=v.channel,te=v.channels,J=S.map(function(Q){return Q.zero=!0,Q}).concat(W);return(0,e.jsxs)(t.wn,{children:[L?(0,e.jsx)(l,{laws:b,title:E+" Laws:",mt:-2}):"",T||k?(0,e.jsx)(l,{laws:J,title:"Inherent Laws",mt:-2}):"",w?(0,e.jsx)(l,{laws:$,title:"Supplied Laws",mt:-2}):"",(0,e.jsx)(t.wn,{title:"Controls",mt:-2,children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Statement Channel",children:te.map(function(Q){return(0,e.jsx)(t.$n,{selected:Z===Q.channel,onClick:function(){return m("law_channel",{law_channel:Q.channel})},children:Q.channel},Q.channel)})}),(0,e.jsx)(t.Ki.Item,{label:"State Laws",children:(0,e.jsx)(t.$n,{icon:"volume-up",onClick:function(){return m("state_laws")},children:"State Laws"})}),V?(0,e.jsx)(t.Ki.Item,{label:"Law Notification",children:(0,e.jsx)(t.$n,{icon:"exclamation",onClick:function(){return m("notify_laws")},children:"Notify"})}):""]})}),F?(0,e.jsx)(t.wn,{title:"Add Laws",mt:-2,children:(0,e.jsxs)(t.XI,{children:[(0,e.jsxs)(t.XI.Row,{header:!0,children:[(0,e.jsx)(t.XI.Cell,{collapsing:!0,children:"Type"}),(0,e.jsx)(t.XI.Cell,{children:"Law"}),(0,e.jsx)(t.XI.Cell,{collapsing:!0,children:"Index"}),(0,e.jsx)(t.XI.Cell,{collapsing:!0,children:"Add"})]}),X&&!T?(0,e.jsxs)(t.XI.Row,{children:[(0,e.jsx)(t.XI.Cell,{collapsing:!0,children:"Zero"}),(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.pd,{value:C,fluid:!0,onChange:function(Q,Y){return m("change_zeroth_law",{val:Y})}})}),(0,e.jsx)(t.XI.Cell,{children:"N/A"}),(0,e.jsx)(t.XI.Cell,{collapsing:!0,children:(0,e.jsx)(t.$n,{icon:"plus",onClick:function(){return m("add_zeroth_law")},children:"Add"})})]}):"",(0,e.jsxs)(t.XI.Row,{children:[(0,e.jsx)(t.XI.Cell,{collapsing:!0,children:"Ion"}),(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.pd,{value:j,fluid:!0,onChange:function(Q,Y){return m("change_ion_law",{val:Y})}})}),(0,e.jsx)(t.XI.Cell,{children:"N/A"}),(0,e.jsx)(t.XI.Cell,{collapsing:!0,children:(0,e.jsx)(t.$n,{icon:"plus",onClick:function(){return m("add_ion_law")},children:"Add"})})]}),(0,e.jsxs)(t.XI.Row,{children:[(0,e.jsx)(t.XI.Cell,{children:"Inherent"}),(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.pd,{value:P,fluid:!0,onChange:function(Q,Y){return m("change_inherent_law",{val:Y})}})}),(0,e.jsx)(t.XI.Cell,{children:"N/A"}),(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.$n,{icon:"plus",onClick:function(){return m("add_inherent_law")},children:"Add"})})]}),(0,e.jsxs)(t.XI.Row,{children:[(0,e.jsx)(t.XI.Cell,{children:"Supplied"}),(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.pd,{value:M,fluid:!0,onChange:function(Q,Y){return m("change_supplied_law",{val:Y})}})}),(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.$n,{icon:"pen",onClick:function(){return m("change_supplied_law_position")},children:_})}),(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.$n,{icon:"plus",onClick:function(){return m("add_supplied_law")},children:"Add"})})]})]})}):""]})},l=function(c){var f=(0,o.Oc)(),m=f.act,v=f.data,E=v.isMalf,j=v.isAdmin,C=c.laws,P=c.title,M=c.noButtons,_=x(c,["laws","title","noButtons"]);return(0,e.jsx)(t.wn,s({title:P},_,{children:(0,e.jsxs)(t.XI,{children:[(0,e.jsxs)(t.XI.Row,{header:!0,children:[(0,e.jsx)(t.XI.Cell,{collapsing:!0,children:"Index"}),(0,e.jsx)(t.XI.Cell,{children:"Law"}),M?"":(0,e.jsx)(t.XI.Cell,{collapsing:!0,children:"State"}),E&&!M?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.XI.Cell,{collapsing:!0,children:"Edit"}),(0,e.jsx)(t.XI.Cell,{collapsing:!0,children:"Delete"})]}):""]}),C.map(function(S){return(0,e.jsxs)(t.XI.Row,{children:[(0,e.jsxs)(t.XI.Cell,{collapsing:!0,children:[S.index,"."]}),(0,e.jsx)(t.XI.Cell,{color:S.zero?"bad":void 0,children:S.law}),M?"":(0,e.jsx)(t.XI.Cell,{collapsing:!0,children:(0,e.jsx)(t.$n,{fluid:!0,icon:"volume-up",selected:S.state,onClick:function(){return m("state_law",{ref:S.ref,state_law:!S.state})},children:S.state?"Yes":"No"})}),E&&!M?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.XI.Cell,{collapsing:!0,children:(0,e.jsx)(t.$n,{disabled:S.zero&&!j,icon:"pen",onClick:function(){return m("edit_law",{edit_law:S.ref})},children:"Edit"})}),(0,e.jsx)(t.XI.Cell,{collapsing:!0,children:(0,e.jsx)(t.$n,{disabled:S.zero&&!j,color:"bad",icon:"trash",onClick:function(){return m("delete_law",{delete_law:S.ref})},children:"Delete"})})]}):""]},S.index)})]})}))},i=function(c){var f=(0,o.Oc)(),m=f.act,v=f.data,E=v.isMalf,j=v.law_sets,C=v.ion_law_nr;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.IC,{children:"Remember: Stating laws other than those currently loaded may be grounds for decommissioning! - NanoTrasen"}),j.length?j.map(function(P){return(0,e.jsxs)(t.wn,{title:P.name,buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n,{disabled:!E,icon:"sync",onClick:function(){return m("transfer_laws",{transfer_laws:P.ref})},children:"Load Laws"}),(0,e.jsx)(t.$n,{icon:"volume-up",onClick:function(){return m("state_law_set",{state_law_set:P.ref})},children:"State Laws"})]}),children:[P.laws.has_ion_laws?(0,e.jsx)(l,{noButtons:!0,laws:P.laws.ion_laws,title:C+" Laws:"}):"",P.laws.has_zeroth_laws||P.laws.has_inherent_laws?(0,e.jsx)(l,{noButtons:!0,laws:P.laws.zeroth_laws.concat(P.laws.inherent_laws),title:P.header}):"",P.laws.has_supplied_laws?(0,e.jsx)(l,{noButtons:!0,laws:P.laws.supplied_laws,title:"Supplied Laws"}):""]},P.name)}):""]})}},94979:function(O,u,n){"use strict";n.r(u),n.d(u,{ListInputModal:function(){return a}});var e=n(20462),o=n(61358),t=n(6544),r=n(7081),s=n(88569),x=n(15581),g=n(5335),d=n(44149),a=function(c){var f=(0,r.Oc)(),m=f.act,v=f.data,E=v.items,j=E===void 0?[]:E,C=v.message,P=C===void 0?"":C,M=v.init_value,_=v.large_buttons,S=v.timeout,T=v.title,b=(0,o.useState)(j.indexOf(M)),L=b[0],W=b[1],k=(0,o.useState)(j.length>9),$=k[0],w=k[1],V=(0,o.useState)(""),F=V[0],X=V[1],Z=function(ie){var de=ee.length-1;if(ie===t.R)if(L===null||L===de){var ve;W(0),(ve=document.getElementById("0"))==null||ve.scrollIntoView()}else{var Te;W(L+1),(Te=document.getElementById((L+1).toString()))==null||Te.scrollIntoView()}else if(ie===t.gf)if(L===null||L===0){var Ce;W(de),(Ce=document.getElementById(de.toString()))==null||Ce.scrollIntoView()}else{var je;W(L-1),(je=document.getElementById((L-1).toString()))==null||je.scrollIntoView()}},te=function(ie){ie!==L&&W(ie)},J=function(){w(!1),w(!0)},Q=function(ie){var de=String.fromCharCode(ie),ve=j.find(function(je){return je==null?void 0:je.toLowerCase().startsWith(de==null?void 0:de.toLowerCase())});if(ve){var Te,Ce=j.indexOf(ve);W(Ce),(Te=document.getElementById(Ce.toString()))==null||Te.scrollIntoView()}},Y=function(ie){var de;ie!==F&&(X(ie),W(0),(de=document.getElementById("0"))==null||de.scrollIntoView())},G=function(){w(!$),X("")},ee=j.filter(function(ie){return ie==null?void 0:ie.toLowerCase().includes(F.toLowerCase())}),le=325+Math.ceil(P.length/3)+(_?5:0);return $||setTimeout(function(){var ie;return(ie=document.getElementById(L.toString()))==null?void 0:ie.focus()},1),(0,e.jsxs)(x.p8,{title:T,width:325,height:le,children:[S&&(0,e.jsx)(d.Loader,{value:S}),(0,e.jsx)(x.p8.Content,{onKeyDown:function(ie){var de=window.event?ie.which:ie.keyCode;(de===t.R||de===t.gf)&&(ie.preventDefault(),Z(de)),de===t.Ri&&(ie.preventDefault(),m("submit",{entry:ee[L]})),!$&&de>=t.W8&&de<=t.bh&&(ie.preventDefault(),Q(de)),de===t.s6&&(ie.preventDefault(),m("cancel"))},children:(0,e.jsx)(s.wn,{buttons:(0,e.jsx)(s.$n,{compact:!0,icon:$?"search":"font",selected:!0,tooltip:$?"Search Mode. Type to search or use arrow keys to select manually.":"Hotkey Mode. Type a letter to jump to the first match. Enter to select.",tooltipPosition:"left",onClick:function(){return G()}}),className:"ListInput__Section",fill:!0,title:P,children:(0,e.jsxs)(s.BJ,{fill:!0,vertical:!0,children:[(0,e.jsx)(s.BJ.Item,{grow:!0,children:(0,e.jsx)(l,{filteredItems:ee,onClick:te,onFocusSearch:J,searchBarVisible:$,selected:L})}),$&&(0,e.jsx)(i,{filteredItems:ee,onSearch:Y,searchQuery:F,selected:L}),(0,e.jsx)(s.BJ.Item,{children:(0,e.jsx)(g.InputButtons,{input:ee[L]})})]})})})]})},l=function(c){var f=(0,r.Oc)().act,m=c.filteredItems,v=c.onClick,E=c.onFocusSearch,j=c.searchBarVisible,C=c.selected;return(0,e.jsxs)(s.wn,{fill:!0,scrollable:!0,children:[(0,e.jsx)(s.y5,{}),m.map(function(P,M){return(0,e.jsx)(s.$n,{color:"transparent",fluid:!0,onClick:function(){return v(M)},onDoubleClick:function(_){_.preventDefault(),f("submit",{entry:m[C]})},onKeyDown:function(_){var S=window.event?_.which:_.keyCode;j&&S>=t.W8&&S<=t.bh&&(_.preventDefault(),E())},selected:M===C,style:{animation:"none",transition:"none"},children:P.replace(/^\w/,function(_){return _.toUpperCase()})},M)})]})},i=function(c){var f=(0,r.Oc)().act,m=c.filteredItems,v=c.onSearch,E=c.searchQuery,j=c.selected;return(0,e.jsx)(s.pd,{autoFocus:!0,autoSelect:!0,fluid:!0,onEnter:function(C){C.preventDefault(),f("submit",{entry:m[j]})},onInput:function(C,P){return v(P)},placeholder:"Search...",value:E})}},30373:function(O,u,n){"use strict";n.r(u),n.d(u,{LookingGlass:function(){return s}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),s=function(x){var g=(0,o.Oc)(),d=g.act,a=g.data,l=a.supportedPrograms,i=a.currentProgram,c=a.immersion,f=a.gravity,m=Math.min(180+l.length*23,600);return(0,e.jsx)(r.p8,{width:300,height:m,children:(0,e.jsxs)(r.p8.Content,{scrollable:!0,children:[(0,e.jsx)(t.wn,{title:"Programs",children:l.map(function(v){return(0,e.jsx)(t.$n,{fluid:!0,icon:"eye",selected:v===i,onClick:function(){return d("program",{program:v})},children:v},v)})}),(0,e.jsx)(t.wn,{title:"Controls",children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Gravity",children:(0,e.jsx)(t.$n,{fluid:!0,icon:"user-astronaut",selected:f,onClick:function(){return d("gravity")},children:f?"Enabled":"Disabled"})}),(0,e.jsx)(t.Ki.Item,{label:"Full Immersion",children:(0,e.jsx)(t.$n,{mt:-1,fluid:!0,icon:"eye",selected:c,onClick:function(){return d("immersion")},children:c?"Enabled":"Disabled"})})]})})]})})}},88504:function(O,u,n){"use strict";n.r(u),n.d(u,{MechaControlConsole:function(){return x}});var e=n(20462),o=n(61282),t=n(7081),r=n(88569),s=n(15581),x=function(g){var d=(0,t.Oc)(),a=d.act,l=d.data,i=l.beacons,c=i===void 0?[]:i,f=l.stored_data,m=f===void 0?[]:f;return(0,e.jsx)(s.p8,{width:600,height:600,children:(0,e.jsxs)(s.p8.Content,{scrollable:!0,children:[m.length?(0,e.jsx)(r.aF,{children:(0,e.jsx)(r.wn,{height:"400px",style:{overflowY:"auto"},title:"Log",buttons:(0,e.jsx)(r.$n,{icon:"window-close",onClick:function(){return a("clear_log")}}),children:m.map(function(v){return(0,e.jsxs)(r.az,{children:[(0,e.jsxs)(r.az,{color:"label",children:["(",v.time,") (",v.year,")"]}),(0,e.jsx)(r.az,{children:(0,o.jT)(v.message)})]},v.time)})})}):"",c.length&&c.map(function(v){return(0,e.jsx)(r.wn,{title:v.name,buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.$n,{icon:"comment",onClick:function(){return a("send_message",{mt:v.ref})},children:"Message"}),(0,e.jsx)(r.$n,{icon:"eye",onClick:function(){return a("get_log",{mt:v.ref})},children:"View Log"}),(0,e.jsx)(r.$n.Confirm,{color:"red",icon:"bomb",onClick:function(){return a("shock",{mt:v.ref})},children:"EMP"})]}),children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Health",children:(0,e.jsx)(r.z2,{ranges:{good:[v.maxHealth*.75,1/0],average:[v.maxHealth*.5,v.maxHealth*.75],bad:[-1/0,v.maxHealth*.5]},value:v.health,maxValue:v.maxHealth})}),(0,e.jsx)(r.Ki.Item,{label:"Cell Charge",children:v.cell&&(0,e.jsx)(r.z2,{ranges:{good:[v.cellMaxCharge*.75,1/0],average:[v.cellMaxCharge*.5,v.cellMaxCharge*.75],bad:[-1/0,v.cellMaxCharge*.5]},value:v.cellCharge,maxValue:v.cellMaxCharge})||(0,e.jsx)(r.IC,{children:"No Cell Installed"})}),(0,e.jsxs)(r.Ki.Item,{label:"Air Tank",children:[v.airtank,"kPa"]}),(0,e.jsx)(r.Ki.Item,{label:"Pilot",children:v.pilot||"Unoccupied"}),(0,e.jsx)(r.Ki.Item,{label:"Location",children:(0,o.Sn)(v.location)||"Unknown"}),(0,e.jsx)(r.Ki.Item,{label:"Active Equipment",children:v.active||"None"}),v.cargoMax?(0,e.jsx)(r.Ki.Item,{label:"Cargo Space",children:(0,e.jsx)(r.z2,{ranges:{bad:[v.cargoMax*.75,1/0],average:[v.cargoMax*.5,v.cargoMax*.75],good:[-1/0,v.cargoMax*.5]},value:v.cargoUsed,maxValue:v.cargoMax})}):""]})},v.name)})||(0,e.jsx)(r.IC,{children:"No mecha beacons found."})]})})}},94921:function(O,u,n){"use strict";n.r(u),n.d(u,{Medbot:function(){return s}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),s=function(x){var g=(0,o.Oc)(),d=g.act,a=g.data,l=a.on,i=a.open,c=a.beaker,f=a.beaker_total,m=a.beaker_max,v=a.locked,E=a.heal_threshold,j=a.heal_threshold_max,C=a.injection_amount_min,P=a.injection_amount,M=a.injection_amount_max,_=a.use_beaker,S=a.declare_treatment,T=a.vocal;return(0,e.jsx)(r.p8,{width:400,height:600,children:(0,e.jsxs)(r.p8.Content,{scrollable:!0,children:[(0,e.jsx)(t.wn,{title:"Automatic Medical Unit v2.0",buttons:(0,e.jsx)(t.$n,{icon:"power-off",selected:l,onClick:function(){return d("power")},children:l?"On":"Off"}),children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Maintenance Panel",color:i?"bad":"good",children:i?"Open":"Closed"}),(0,e.jsx)(t.Ki.Item,{label:"Beaker",buttons:(0,e.jsx)(t.$n,{disabled:!c,icon:"eject",onClick:function(){return d("eject")},children:"Eject"}),children:c&&(0,e.jsxs)(t.z2,{value:f,maxValue:m,children:[f," / ",m]})||(0,e.jsx)(t.az,{color:"average",children:"No beaker loaded."})}),(0,e.jsx)(t.Ki.Item,{label:"Behavior Controls",color:v?"good":"bad",children:v?"Locked":"Unlocked"})]})}),!v&&(0,e.jsx)(t.wn,{title:"Behavioral Controls",children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Healing Threshold",children:(0,e.jsx)(t.Q7,{fluid:!0,step:1,minValue:0,maxValue:j,value:E,onDrag:function(b){return d("adj_threshold",{val:b})}})}),(0,e.jsx)(t.Ki.Item,{label:"Injection Amount",children:(0,e.jsx)(t.Q7,{fluid:!0,step:1,minValue:C,maxValue:M,value:P,onDrag:function(b){return d("adj_inject",{val:b})}})}),(0,e.jsx)(t.Ki.Item,{label:"Reagent Source",children:(0,e.jsx)(t.$n,{fluid:!0,icon:_?"toggle-on":"toggle-off",selected:_,onClick:function(){return d("use_beaker")},children:_?"Loaded Beaker (When available)":"Internal Synthesizer"})}),(0,e.jsx)(t.Ki.Item,{label:"Treatment Report",children:(0,e.jsx)(t.$n,{fluid:!0,icon:S?"toggle-on":"toggle-off",selected:S,onClick:function(){return d("declaretreatment")},children:S?"On":"Off"})}),(0,e.jsx)(t.Ki.Item,{label:"Speaker",children:(0,e.jsx)(t.$n,{fluid:!0,icon:T?"toggle-on":"toggle-off",selected:T,onClick:function(){return d("togglevoice")},children:T?"On":"Off"})})]})})||null]})})}},47407:function(O,u,n){"use strict";n.r(u),n.d(u,{MedicalRecordsList:function(){return r}});var e=n(20462),o=n(7081),t=n(88569),r=function(s){var x=(0,o.Oc)(),g=x.act,d=x.data,a=d.records;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.pd,{fluid:!0,placeholder:"Search by Name, DNA, or ID",onChange:function(l,i){return g("search",{t1:i})}}),(0,e.jsx)(t.az,{mt:"0.5rem",children:a.map(function(l,i){return(0,e.jsx)(t.$n,{icon:"user",mb:"0.5rem",onClick:function(){return g("d_rec",{d_rec:l.ref})},children:l.id+": "+l.name},i)})})]})}},43131:function(O,u,n){"use strict";n.r(u),n.d(u,{MedicalRecordsMedbots:function(){return r}});var e=n(20462),o=n(7081),t=n(88569),r=function(s){var x=(0,o.Oc)().data,g=x.medbots;return!g||g.length===0?(0,e.jsx)(t.az,{color:"label",children:"There are no Medbots."}):g.map(function(d,a){return(0,e.jsx)(t.Nt,{open:!0,title:d.name,children:(0,e.jsx)(t.az,{px:"0.5rem",children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsxs)(t.Ki.Item,{label:"Location",children:[d.area||"Unknown"," (",d.x,", ",d.y,")"]}),(0,e.jsx)(t.Ki.Item,{label:"Status",children:d.on?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.az,{color:"good",children:"Online"}),(0,e.jsx)(t.az,{mt:"0.5rem",children:d.use_beaker?"Reservoir: "+d.total_volume+"/"+d.maximum_volume:"Using internal synthesizer."})]}):(0,e.jsx)(t.az,{color:"average",children:"Offline"})})]})})},a)})}},70734:function(O,u,n){"use strict";n.r(u),n.d(u,{MedicalRecordsMaintenance:function(){return x},MedicalRecordsNavigation:function(){return d},MedicalRecordsView:function(){return g}});var e=n(20462),o=n(7081),t=n(88569),r=n(72886),s=n(8615),x=function(a){var l=(0,o.Oc)().act;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n,{icon:"download",disabled:!0,children:"Backup to Disk"}),(0,e.jsx)("br",{}),(0,e.jsx)(t.$n,{icon:"upload",my:"0.5rem",disabled:!0,children:"Upload from Disk"}),(0,e.jsx)("br",{}),(0,e.jsx)(t.$n.Confirm,{icon:"trash",onClick:function(){return l("del_all")},children:"Delete All Medical Records"})]})},g=function(a){var l=(0,o.Oc)(),i=l.act,c=l.data,f=c.medical,m=c.printing;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.wn,{title:"General Data",mt:"-6px",children:(0,e.jsx)(r.MedicalRecordsViewGeneral,{})}),(0,e.jsx)(t.wn,{title:"Medical Data",children:(0,e.jsx)(s.MedicalRecordsViewMedical,{})}),(0,e.jsxs)(t.wn,{title:"Actions",children:[(0,e.jsx)(t.$n.Confirm,{icon:"trash",disabled:!!f.empty,color:"bad",onClick:function(){return i("del_r")},children:"Delete Medical Record"}),(0,e.jsx)(t.$n,{icon:m?"spinner":"print",disabled:m,iconSpin:!!m,ml:"0.5rem",onClick:function(){return i("print_p")},children:"Print Entry"}),(0,e.jsx)("br",{}),(0,e.jsx)(t.$n,{icon:"arrow-left",mt:"0.5rem",onClick:function(){return i("screen",{screen:2})},children:"Back"})]})]})},d=function(a){var l=(0,o.Oc)(),i=l.act,c=l.data,f=c.screen;return(0,e.jsxs)(t.tU,{children:[(0,e.jsxs)(t.tU.Tab,{selected:f===2,onClick:function(){return i("screen",{screen:2})},children:[(0,e.jsx)(t.In,{name:"list"}),"List Records"]}),(0,e.jsxs)(t.tU.Tab,{selected:f===5,onClick:function(){return i("screen",{screen:5})},children:[(0,e.jsx)(t.In,{name:"database"}),"Virus Database"]}),(0,e.jsxs)(t.tU.Tab,{selected:f===6,onClick:function(){return i("screen",{screen:6})},children:[(0,e.jsx)(t.In,{name:"plus-square"}),"Medbot Tracking"]}),(0,e.jsxs)(t.tU.Tab,{selected:f===3,onClick:function(){return i("screen",{screen:3})},children:[(0,e.jsx)(t.In,{name:"wrench"}),"Record Maintenance"]})]})}},72886:function(O,u,n){"use strict";n.r(u),n.d(u,{MedicalRecordsViewGeneral:function(){return s}});var e=n(20462),o=n(7081),t=n(88569),r=n(80724),s=function(x){var g=(0,o.Oc)().data,d=g.general;return!d||!d.fields?(0,e.jsx)(t.az,{color:"bad",children:"General records lost!"}):(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.az,{width:"50%",style:{float:"left"},children:(0,e.jsx)(t.Ki,{children:d.fields.map(function(a,l){return(0,e.jsx)(t.Ki.Item,{label:a.field,children:(0,e.jsxs)(t.az,{height:"20px",inline:!0,preserveWhitespace:!0,children:[a.value,!!a.edit&&(0,e.jsx)(t.$n,{icon:"pen",ml:"0.5rem",onClick:function(){return(0,r.doEdit)(a)}})]})},l)})})}),(0,e.jsx)(t.az,{width:"50%",style:{float:"right"},textAlign:"right",children:!!d.has_photos&&d.photos.map(function(a,l){return(0,e.jsxs)(t.az,{inline:!0,textAlign:"center",color:"label",children:[(0,e.jsx)(t._V,{src:a.substring(1,a.length-1),style:{width:"96px",marginBottom:"0.5rem"}}),(0,e.jsx)("br",{}),"Photo #",l+1]},l)})})]})}},8615:function(O,u,n){"use strict";n.r(u),n.d(u,{MedicalRecordsViewMedical:function(){return x}});var e=n(20462),o=n(7081),t=n(88569),r=n(86471),s=n(80724),x=function(g){var d=(0,o.Oc)(),a=d.act,l=d.data,i=l.medical;return!i||!i.fields?(0,e.jsxs)(t.az,{color:"bad",children:["Medical records lost!",(0,e.jsx)(t.$n,{icon:"pen",ml:"0.5rem",onClick:function(){return a("new")},children:"New Record"})]}):(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.Ki,{children:i.fields.map(function(c,f){return(0,e.jsx)(t.Ki.Item,{label:c.field,children:(0,e.jsxs)(t.az,{preserveWhitespace:!0,children:[c.value,(0,e.jsx)(t.$n,{icon:"pen",ml:"0.5rem",onClick:function(){return(0,s.doEdit)(c)}})]})},f)})}),(0,e.jsxs)(t.wn,{title:"Comments/Log",children:[i.comments&&i.comments.length===0?(0,e.jsx)(t.az,{color:"label",children:"No comments found."}):i.comments&&i.comments.map(function(c,f){return(0,e.jsxs)(t.az,{children:[(0,e.jsx)(t.az,{color:"label",inline:!0,children:c.header}),(0,e.jsx)("br",{}),c.text,(0,e.jsx)(t.$n,{icon:"comment-slash",color:"bad",ml:"0.5rem",onClick:function(){return a("del_c",{del_c:f+1})}})]},f)}),(0,e.jsx)(t.$n,{icon:"comment-medical",color:"good",mt:"0.5rem",mb:"0",onClick:function(){return(0,r.modalOpen)("add_c")},children:"Add Entry"})]})]})}},3748:function(O,u,n){"use strict";n.r(u),n.d(u,{MedicalRecordsViruses:function(){return s}});var e=n(20462),o=n(61358),t=n(7081),r=n(88569),s=function(x){var g=(0,t.Oc)(),d=g.act,a=g.data,l=a.virus;return l&&l.sort(function(i,c){return i.name>c.name?1:-1}),l&&l.map(function(i,c){return(0,e.jsxs)(o.Fragment,{children:[(0,e.jsx)(r.$n,{icon:"flask",mb:"0.5rem",onClick:function(){return d("vir",{vir:i.D})},children:i.name}),(0,e.jsx)("br",{})]},c)})}},46069:function(O,u,n){"use strict";n.r(u),n.d(u,{severities:function(){return e}});var e={Minor:"good",Medium:"average","Dangerous!":"bad",Harmful:"bad","BIOHAZARD THREAT!":"bad"}},65456:function(O,u,n){"use strict";n.r(u),n.d(u,{MedicalRecords:function(){return m}});var e=n(20462),o=n(7081),t=n(88569),r=n(86471),s=n(15581),x=n(35069),g=n(97049),d=n(3751),a=n(47407),l=n(43131),i=n(70734),c=n(3748),f=n(4492),m=function(v){var E=(0,o.Oc)().data,j=E.authenticated,C=E.screen;if(!j)return(0,e.jsx)(s.p8,{width:800,height:380,children:(0,e.jsx)(s.p8.Content,{children:(0,e.jsx)(g.LoginScreen,{})})});var P=[];return P[2]=(0,e.jsx)(a.MedicalRecordsList,{}),P[3]=(0,e.jsx)(i.MedicalRecordsMaintenance,{}),P[4]=(0,e.jsx)(i.MedicalRecordsView,{}),P[5]=(0,e.jsx)(c.MedicalRecordsViruses,{}),P[6]=(0,e.jsx)(l.MedicalRecordsMedbots,{}),(0,e.jsxs)(s.p8,{width:800,height:380,children:[(0,e.jsx)(r.ComplexModal,{maxHeight:"100%",maxWidth:"80%"}),(0,e.jsxs)(s.p8.Content,{className:"Layout__content--flexColumn",scrollable:!0,children:[(0,e.jsx)(x.LoginInfo,{}),(0,e.jsx)(d.TemporaryNotice,{}),(0,e.jsx)(i.MedicalRecordsNavigation,{}),(0,e.jsx)(t.wn,{height:"calc(100% - 5rem)",flexGrow:!0,children:C&&P[C]||""})]})]})};(0,r.modalRegisterBodyOverride)("virus",f.virusModalBodyOverride)},86097:function(O,u,n){"use strict";n.r(u)},4492:function(O,u,n){"use strict";n.r(u),n.d(u,{virusModalBodyOverride:function(){return r}});var e=n(20462),o=n(7081),t=n(88569),r=function(s){var x=(0,o.Oc)().act,g=s.args;return(0,e.jsx)(t.wn,{m:"-1rem",title:g.name||"Virus",buttons:(0,e.jsx)(t.$n,{icon:"times",color:"red",onClick:function(){return x("modal_close")}}),children:(0,e.jsx)(t.az,{mx:"0.5rem",children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsxs)(t.Ki.Item,{label:"Spread",children:[g.spreadtype," Transmission"]}),(0,e.jsx)(t.Ki.Item,{label:"Possible cure",children:g.antigen}),(0,e.jsx)(t.Ki.Item,{label:"Rate of Progression",children:g.rate}),(0,e.jsxs)(t.Ki.Item,{label:"Antibiotic Resistance",children:[g.resistance,"%"]}),(0,e.jsx)(t.Ki.Item,{label:"Species Affected",children:g.species}),(0,e.jsx)(t.Ki.Item,{label:"Symptoms",children:(0,e.jsx)(t.Ki,{children:g.symptoms.map(function(d){return(0,e.jsxs)(t.Ki.Item,{label:d.stage+". "+d.name,children:[(0,e.jsx)(t.az,{inline:!0,color:"label",children:"Strength:"})," ",d.strength,"\xA0",(0,e.jsx)(t.az,{inline:!0,color:"label",children:"Aggressiveness:"})," ",d.aggressiveness]},d.stage)})})})]})})})}},4477:function(O,u,n){"use strict";n.r(u),n.d(u,{MentorTicketPanel:function(){return g}});var e=n(20462),o=n(4089),t=n(7081),r=n(88569),s=n(15581),x={open:"Open",resolved:"Resolved",unknown:"Unknown"},g=function(d){var a=(0,t.Oc)(),l=a.act,i=a.data,c=i.id,f=i.name,m=i.state,v=i.opened_at,E=i.closed_at,j=i.opened_at_date,C=i.closed_at_date,P=i.actions,M=i.log;return(0,e.jsx)(s.p8,{width:900,height:600,children:(0,e.jsx)(s.p8.Content,{scrollable:!0,children:(0,e.jsx)(r.wn,{title:"Ticket #"+c,buttons:(0,e.jsxs)(r.az,{nowrap:!0,children:[(0,e.jsx)(r.$n,{icon:"arrow-up",onClick:function(){return l("escalate")},children:"Escalate"}),(0,e.jsx)(r.$n,{onClick:function(){return l("legacy")},children:"Legacy UI"})]}),children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsxs)(r.Ki.Item,{label:"Mentor Help Ticket",children:["#",c,": ",(0,e.jsx)("div",{dangerouslySetInnerHTML:{__html:f}})]}),(0,e.jsx)(r.Ki.Item,{label:"State",children:x[m]}),x[m]===x.open?(0,e.jsx)(r.Ki.Item,{label:"Opened At",children:j+" ("+(0,o.Mg)((0,o.LI)(v/600*10,0)/10,1)+" minutes ago.)"}):(0,e.jsxs)(r.Ki.Item,{label:"Closed At",children:[C+" ("+(0,o.Mg)((0,o.LI)(E/600*10,0)/10,1)+" minutes ago.)",(0,e.jsx)(r.$n,{onClick:function(){return l("reopen")},children:"Reopen"})]}),(0,e.jsx)(r.Ki.Item,{label:"Actions",children:(0,e.jsx)("div",{dangerouslySetInnerHTML:{__html:P}})}),(0,e.jsx)(r.Ki.Item,{label:"Log",children:Object.keys(M).map(function(_,S){return(0,e.jsx)("div",{dangerouslySetInnerHTML:{__html:M[_]}},S)})})]})})})})}},26948:function(O,u,n){"use strict";n.r(u),n.d(u,{MessageMonitorContent:function(){return x}});var e=n(20462),o=n(61358),t=n(7081),r=n(88569),s=n(5871),x=function(g){var d=(0,t.Oc)(),a=d.act,l=d.data,i=l.linkedServer,c=(0,o.useState)(0),f=c[0],m=c[1],v=[];return v[0]=(0,e.jsx)(s.MessageMonitorMain,{}),v[1]=(0,e.jsx)(s.MessageMonitorLogs,{logs:i.pda_msgs,pda:!0}),v[2]=(0,e.jsx)(s.MessageMonitorLogs,{logs:i.rc_msgs,rc:!0}),v[3]=(0,e.jsx)(s.MessageMonitorAdmin,{}),v[4]=(0,e.jsx)(s.MessageMonitorSpamFilter,{}),(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(r.tU,{children:[(0,e.jsxs)(r.tU.Tab,{selected:f===0,onClick:function(){return m(0)},children:[(0,e.jsx)(r.In,{name:"bars"})," Main Menu"]},"Main"),(0,e.jsxs)(r.tU.Tab,{selected:f===1,onClick:function(){return m(1)},children:[(0,e.jsx)(r.In,{name:"font"})," Message Logs"]},"MessageLogs"),(0,e.jsxs)(r.tU.Tab,{selected:f===2,onClick:function(){return m(2)},children:[(0,e.jsx)(r.In,{name:"bold"})," Request Logs"]},"RequestLogs"),(0,e.jsxs)(r.tU.Tab,{selected:f===3,onClick:function(){return m(3)},children:[(0,e.jsx)(r.In,{name:"comment-alt"})," Admin Messaging"]},"AdminMessage"),(0,e.jsxs)(r.tU.Tab,{selected:f===4,onClick:function(){return m(4)},children:[(0,e.jsx)(r.In,{name:"comment-slash"})," Spam Filter"]},"SpamFilter"),(0,e.jsxs)(r.tU.Tab,{color:"red",onClick:function(){return a("deauth")},children:[(0,e.jsx)(r.In,{name:"sign-out-alt"})," Log Out"]},"Logout")]}),(0,e.jsx)(r.az,{m:2,children:v[f]})]})}},9760:function(O,u,n){"use strict";n.r(u),n.d(u,{MessageMonitorHack:function(){return s}});var e=n(20462),o=n(7081),t=n(88569),r=n(72859),s=function(x){var g=(0,o.Oc)().data,d=g.isMalfAI;return(0,e.jsx)(r.FullscreenNotice,{title:"ERROR",children:d?(0,e.jsx)(t.az,{children:"Brute-forcing for server key. It will take 20 seconds for every character that the password has."}):(0,e.jsxs)(t.az,{children:["01000010011100100111010101110100011001010010110",(0,e.jsx)("br",{}),"10110011001101111011100100110001101101001011011100110011",(0,e.jsx)("br",{}),"10010000001100110011011110111001000100000011100110110010",(0,e.jsx)("br",{}),"10111001001110110011001010111001000100000011010110110010",(0,e.jsx)("br",{}),"10111100100101110001000000100100101110100001000000111011",(0,e.jsx)("br",{}),"10110100101101100011011000010000001110100011000010110101",(0,e.jsx)("br",{}),"10110010100100000001100100011000000100000011100110110010",(0,e.jsx)("br",{}),"10110001101101111011011100110010001110011001000000110011",(0,e.jsx)("br",{}),"00110111101110010001000000110010101110110011001010111001",(0,e.jsx)("br",{}),"00111100100100000011000110110100001100001011100100110000",(0,e.jsx)("br",{}),"10110001101110100011001010111001000100000011101000110100",(0,e.jsx)("br",{}),"00110000101110100001000000111010001101000011001010010000",(0,e.jsx)("br",{}),"00111000001100001011100110111001101110111011011110111001",(0,e.jsx)("br",{}),"00110010000100000011010000110000101110011001011100010000",(0,e.jsx)("br",{}),"00100100101101110001000000111010001101000011001010010000",(0,e.jsx)("br",{}),"00110110101100101011000010110111001110100011010010110110",(0,e.jsx)("br",{}),"10110010100101100001000000111010001101000011010010111001",(0,e.jsx)("br",{}),"10010000001100011011011110110111001110011011011110110110",(0,e.jsx)("br",{}),"00110010100100000011000110110000101101110001000000111001",(0,e.jsx)("br",{}),"00110010101110110011001010110000101101100001000000111100",(0,e.jsx)("br",{}),"10110111101110101011100100010000001110100011100100111010",(0,e.jsx)("br",{}),"10110010100100000011010010110111001110100011001010110111",(0,e.jsx)("br",{}),"00111010001101001011011110110111001110011001000000110100",(0,e.jsx)("br",{}),"10110011000100000011110010110111101110101001000000110110",(0,e.jsx)("br",{}),"00110010101110100001000000111001101101111011011010110010",(0,e.jsx)("br",{}),"10110111101101110011001010010000001100001011000110110001",(0,e.jsx)("br",{}),"10110010101110011011100110010000001101001011101000010111",(0,e.jsx)("br",{}),"00010000001001101011000010110101101100101001000000111001",(0,e.jsx)("br",{}),"10111010101110010011001010010000001101110011011110010000",(0,e.jsx)("br",{}),"00110100001110101011011010110000101101110011100110010000",(0,e.jsx)("br",{}),"00110010101101110011101000110010101110010001000000111010",(0,e.jsx)("br",{}),"00110100001100101001000000111001001101111011011110110110",(0,e.jsx)("br",{}),"10010000001100100011101010111001001101001011011100110011",(0,e.jsx)("br",{}),"10010000001110100011010000110000101110100001000000111010",(0,e.jsx)("br",{}),"001101001011011010110010100101110"]})})}},38860:function(O,u,n){"use strict";n.r(u),n.d(u,{MessageMonitorLogin:function(){return s}});var e=n(20462),o=n(7081),t=n(88569),r=n(72859),s=function(x){var g=(0,o.Oc)(),d=g.act,a=g.data,l=a.isMalfAI;return(0,e.jsxs)(r.FullscreenNotice,{title:"Welcome",children:[(0,e.jsxs)(t.az,{fontSize:"1.5rem",bold:!0,children:[(0,e.jsx)(t.In,{name:"exclamation-triangle",verticalAlign:"middle",size:3,mr:"1rem"}),"Unauthorized"]}),(0,e.jsxs)(t.az,{color:"label",my:"1rem",children:["Decryption Key:",(0,e.jsx)(t.pd,{placeholder:"Decryption Key",ml:"0.5rem",onChange:function(i,c){return d("auth",{key:c})}})]}),!!l&&(0,e.jsx)(t.$n,{icon:"terminal",onClick:function(){return d("hack")},children:"Hack"}),(0,e.jsx)(t.az,{color:"label",children:"Please authenticate with the server in order to show additional options."})]})}},5871:function(O,u,n){"use strict";n.r(u),n.d(u,{MessageMonitorAdmin:function(){return g},MessageMonitorLogs:function(){return x},MessageMonitorMain:function(){return s},MessageMonitorSpamFilter:function(){return d}});var e=n(20462),o=n(61282),t=n(7081),r=n(88569),s=function(a){var l=(0,t.Oc)(),i=l.act,c=l.data,f=c.linkedServer;return(0,e.jsxs)(r.wn,{title:"Main Menu",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.$n,{icon:"link",onClick:function(){return i("find")},children:"Server Link"}),(0,e.jsx)(r.$n,{icon:"power-off",selected:f.active,onClick:function(){return i("active")},children:"Server "+(f.active?"Enabled":"Disabled")})]}),children:[(0,e.jsx)(r.Ki,{children:(0,e.jsx)(r.Ki.Item,{label:"Server Status",children:(0,e.jsx)(r.az,{color:"good",children:"Good"})})}),(0,e.jsx)(r.$n,{mt:1,icon:"key",onClick:function(){return i("pass")},children:"Set Custom Key"}),(0,e.jsx)(r.$n.Confirm,{color:"red",confirmIcon:"exclamation-triangle",icon:"exclamation-triangle",children:"Clear Message Logs"}),(0,e.jsx)(r.$n.Confirm,{color:"red",confirmIcon:"exclamation-triangle",icon:"exclamation-triangle",children:"Clear Request Logs"})]})},x=function(a){var l=(0,t.Oc)().act,i=a.logs,c=a.pda,f=a.rc;return(0,e.jsx)(r.wn,{title:c?"PDA Logs":f?"Request Logs":"Logs",buttons:(0,e.jsx)(r.$n.Confirm,{color:"red",icon:"trash",confirmIcon:"trash",onClick:function(){return l(c?"del_pda":"del_rc")},children:"Delete All"}),children:(0,e.jsx)(r.so,{wrap:"wrap",children:i.map(function(m,v){return(0,e.jsx)(r.so.Item,{m:"2px",basis:"49%",grow:v%2,children:(0,e.jsx)(r.wn,{title:m.sender+" -> "+m.recipient,buttons:(0,e.jsx)(r.$n.Confirm,{confirmContent:"Delete Log?",color:"bad",icon:"trash",confirmIcon:"trash",onClick:function(){return l("delete",{id:m.ref,type:f?"rc":"pda"})}}),children:f?(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Message",children:m.message}),(0,e.jsx)(r.Ki.Item,{label:"Verification",color:m.id_auth==="Unauthenticated"?"bad":"good",children:!!m.id_auth&&(0,o.jT)(m.id_auth)}),(0,e.jsx)(r.Ki.Item,{label:"Stamp",children:m.stamp})]}):m.message})},m.ref)})})})},g=function(a){var l=(0,t.Oc)(),i=l.act,c=l.data,f=c.possibleRecipients,m=c.customsender,v=c.customrecepient,E=c.customjob,j=c.custommessage,C=Object.keys(f);return(0,e.jsxs)(r.wn,{title:"Admin Messaging",children:[(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Sender",children:(0,e.jsx)(r.pd,{fluid:!0,value:m,onChange:function(P,M){return i("set_sender",{val:M})}})}),(0,e.jsx)(r.Ki.Item,{label:"Sender's Job",children:(0,e.jsx)(r.pd,{fluid:!0,value:E,onChange:function(P,M){return i("set_sender_job",{val:M})}})}),(0,e.jsx)(r.Ki.Item,{label:"Recipient",children:(0,e.jsx)(r.ms,{autoScroll:!1,selected:v,options:C,width:"100%",mb:-.7,onSelected:function(P){return i("set_recipient",{val:f[P]})}})}),(0,e.jsx)(r.Ki.Item,{label:"Message",verticalAlign:"top",children:(0,e.jsx)(r.pd,{fluid:!0,mb:.5,value:j,onChange:function(P,M){return i("set_message",{val:M})}})})]}),(0,e.jsx)(r.$n,{fluid:!0,icon:"comment",onClick:function(){return i("send_message")},children:"Send Message"})]})},d=function(a){var l=(0,t.Oc)(),i=l.act,c=l.data,f=c.linkedServer;return(0,e.jsxs)(r.wn,{title:"Spam Filtering",children:[(0,e.jsx)(r.Ki,{children:f.spamFilter.map(function(m){return(0,e.jsx)(r.Ki.Item,{label:m.index,buttons:(0,e.jsx)(r.$n,{icon:"trash",color:"bad",onClick:function(){return i("deltoken",{deltoken:m.index})},children:"Delete"}),children:m.token},m.index)})}),(0,e.jsx)(r.$n,{icon:"plus",onClick:function(){return i("addtoken")},children:"Add New Entry"})]})}},34692:function(O,u,n){"use strict";n.r(u),n.d(u,{MessageMonitor:function(){return a}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),s=n(3751),x=n(26948),g=n(9760),d=n(38860),a=function(l){var i=(0,o.Oc)().data,c=i.auth,f=i.linkedServer,m=i.hacking,v=i.emag,E;return m||v?E=(0,e.jsx)(g.MessageMonitorHack,{}):c?f?E=(0,e.jsx)(x.MessageMonitorContent,{}):E=(0,e.jsx)(t.az,{color:"bad",children:"ERROR"}):E=(0,e.jsx)(d.MessageMonitorLogin,{}),(0,e.jsx)(r.p8,{width:670,height:450,children:(0,e.jsxs)(r.p8.Content,{scrollable:!0,children:[(0,e.jsx)(s.TemporaryNotice,{}),E]})})}},25029:function(O,u,n){"use strict";n.r(u)},41785:function(O,u,n){"use strict";n.r(u),n.d(u,{Microwave:function(){return s}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),s=function(x){var g=(0,o.Oc)(),d=g.act,a=g.config,l=g.data,i=l.broken,c=l.operating,f=l.dirty,m=l.items;return(0,e.jsx)(r.p8,{width:400,height:500,children:(0,e.jsx)(r.p8.Content,{scrollable:!0,children:i&&(0,e.jsx)(t.wn,{children:(0,e.jsx)(t.az,{color:"bad",children:"Bzzzzttttt!!"})})||c&&(0,e.jsx)(t.wn,{children:(0,e.jsxs)(t.az,{color:"good",children:["Microwaving in progress!",(0,e.jsx)("br",{}),"Please wait...!"]})})||f&&(0,e.jsx)(t.wn,{children:(0,e.jsxs)(t.az,{color:"bad",children:["This microwave is dirty!",(0,e.jsx)("br",{}),"Please clean it before use!"]})})||m.length&&(0,e.jsx)(t.wn,{title:"Ingredients",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n,{icon:"radiation",onClick:function(){return d("cook")},children:"Microwave"}),(0,e.jsx)(t.$n,{icon:"eject",onClick:function(){return d("dispose")},children:"Eject"})]}),children:(0,e.jsx)(t.Ki,{children:m.map(function(v){return(0,e.jsxs)(t.Ki.Item,{label:v.name,children:[v.amt," ",v.extra]},v.name)})})})||(0,e.jsx)(t.wn,{children:(0,e.jsxs)(t.az,{color:"bad",children:[a.title," is empty."]})})})})}},10844:function(O,u,n){"use strict";n.r(u),n.d(u,{MiningOreProcessingConsole:function(){return g}});var e=n(20462),o=n(61282),t=n(7081),r=n(88569),s=n(15581),x=n(22588),g=function(c){var f=(0,t.Oc)(),m=f.act,v=f.data,E=v.unclaimedPoints,j=v.power,C=v.speed;return(0,e.jsx)(s.p8,{width:400,height:500,children:(0,e.jsxs)(s.p8.Content,{children:[(0,e.jsx)(x.MiningUser,{insertIdText:(0,e.jsxs)(r.az,{children:[(0,e.jsx)(r.$n,{icon:"arrow-right",mr:1,onClick:function(){return m("insert")},children:"Insert ID"}),"in order to claim points."]})}),(0,e.jsx)(r.wn,{title:"Status",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.$n,{icon:"bolt",selected:C,onClick:function(){return m("speed_toggle")},children:C?"High-Speed Active":"High-Speed Inactive"}),(0,e.jsx)(r.$n,{icon:"power-off",selected:j,onClick:function(){return m("power")},children:j?"Smelting":"Not Smelting"})]}),children:(0,e.jsx)(r.Ki,{children:(0,e.jsx)(r.Ki.Item,{label:"Current unclaimed points",buttons:(0,e.jsx)(r.$n,{disabled:E<1,icon:"download",onClick:function(){return m("claim")},children:"Claim"}),children:(0,e.jsx)(r.zv,{value:E})})})}),(0,e.jsx)(i,{})]})})},d=["Not Processing","Smelting","Compressing","Alloying"],a=["verdantium","mhydrogen","diamond","platinum","uranium","gold","silver","rutile","phoron","marble","lead","sand","carbon","hematite"],l=function(c,f){return a.indexOf(c.ore)===-1||a.indexOf(f.ore)===-1?c.ore-f.ore:a.indexOf(f.ore)-a.indexOf(c.ore)},i=function(c){var f=(0,t.Oc)(),m=f.act,v=f.data,E=v.ores,j=v.showAllOres;return(0,e.jsx)(r.wn,{title:"Ore Processing Controls",buttons:(0,e.jsx)(r.$n,{icon:j?"toggle-on":"toggle-off",selected:j,onClick:function(){return m("showAllOres")},children:j?"All Ores":"Ores in Machine"}),children:(0,e.jsx)(r.Ki,{children:E.length&&E.sort(l).map(function(C){return(0,e.jsx)(r.Ki.Item,{label:(0,o.Sn)(C.name),buttons:(0,e.jsx)(r.ms,{autoScroll:!1,width:"120px",color:C.processing===0&&"red"||C.processing===1&&"green"||C.processing===2&&"blue"||C.processing===3&&"yellow"||void 0,options:d,selected:d[C.processing],onSelected:function(P){return m("toggleSmelting",{ore:C.ore,set:d.indexOf(P)})}}),children:(0,e.jsx)(r.az,{inline:!0,children:(0,e.jsx)(r.zv,{value:C.amount})})},C.ore)})||(0,e.jsx)(r.az,{color:"bad",textAlign:"center",children:"No ores in machine."})})})}},71297:function(O,u,n){"use strict";n.r(u),n.d(u,{MiningStackingConsole:function(){return x}});var e=n(20462),o=n(61282),t=n(7081),r=n(88569),s=n(15581),x=function(g){var d=(0,t.Oc)(),a=d.act,l=d.data,i=l.stacktypes,c=l.stackingAmt;return(0,e.jsx)(s.p8,{width:400,height:500,children:(0,e.jsx)(s.p8.Content,{children:(0,e.jsx)(r.wn,{title:"Stacker Controls",children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Stacking",children:(0,e.jsx)(r.Q7,{fluid:!0,step:1,value:c,minValue:1,maxValue:50,stepPixelSize:5,onChange:function(f){return a("change_stack",{amt:f})}})}),(0,e.jsx)(r.Ki.Divider,{}),i.length&&i.sort().map(function(f){return(0,e.jsx)(r.Ki.Item,{label:(0,o.Sn)(f.type),buttons:(0,e.jsx)(r.$n,{icon:"eject",onClick:function(){return a("release_stack",{stack:f.type})},children:"Eject"}),children:(0,e.jsx)(r.zv,{value:f.amt})},f.type)})||(0,e.jsx)(r.Ki.Item,{label:"Empty",color:"average",children:"No stacks in machine."})]})})})})}},602:function(O,u,n){"use strict";n.r(u),n.d(u,{MiningVendor:function(){return i}});var e=n(20462),o=n(61282),t=n(61358),r=n(7081),s=n(88569),x=n(15581),g=n(22588);function d(){return d=Object.assign||function(v){for(var E=1;E=0)&&(j[P]=v[P]);return j}var l={Alphabetical:function(v,E){return v.name>E.name},"By availability":function(v,E){return-(v.affordable-E.affordable)},"By price":function(v,E){return v.price-E.price}},i=function(v){var E=function(w){_(w)},j=function(w){b(w)},C=function(w){k(w)},P=(0,t.useState)(""),M=P[0],_=P[1],S=(0,t.useState)("Alphabetical"),T=S[0],b=S[1],L=(0,t.useState)(!1),W=L[0],k=L[1];return(0,e.jsx)(x.p8,{width:400,height:450,children:(0,e.jsxs)(x.p8.Content,{className:"Layout__content--flexColumn",scrollable:!0,children:[(0,e.jsx)(g.MiningUser,{insertIdText:"Please insert an ID in order to make purchases."}),(0,e.jsx)(f,{searchText:M,sortOrder:T,descending:W,onSearchText:E,onSortOrder:j,onDescending:C}),(0,e.jsx)(c,{searchText:M,sortOrder:T,descending:W})]})})},c=function(v){var E=(0,r.Oc)(),j=E.act,C=E.data,P=C.has_id,M=C.id,_=C.items,S=(0,o.XZ)(v.searchText,function(L){return L[0]}),T=!1,b=Object.entries(_).map(function(L,W){var k=Object.entries(L[1]).filter(S).map(function($){return $[1].affordable=+(P&&M.points>=$[1].price),$[1]}).sort(l[v.sortOrder]);if(k.length!==0)return v.descending&&(k=k.reverse()),T=!0,(0,e.jsx)(m,{title:L[0],items:k},L[0])});return(0,e.jsx)(s.so.Item,{grow:"1",overflow:"auto",children:(0,e.jsx)(s.wn,{children:T?b:(0,e.jsx)(s.az,{color:"label",children:"No items matching your criteria was found!"})})})},f=function(v){return(0,e.jsx)(s.az,{mb:"0.5rem",children:(0,e.jsxs)(s.so,{width:"100%",children:[(0,e.jsx)(s.so.Item,{grow:"1",mr:"0.5rem",children:(0,e.jsx)(s.pd,{placeholder:"Search by item name..",value:v.searchText,width:"100%",onInput:function(E,j){return v.onSearchText(j)}})}),(0,e.jsx)(s.so.Item,{basis:"30%",children:(0,e.jsx)(s.ms,{autoScroll:!1,selected:v.sortOrder,options:Object.keys(l),width:"100%",lineHeight:"19px",onSelected:function(E){return v.onSortOrder(E)}})}),(0,e.jsx)(s.so.Item,{children:(0,e.jsx)(s.$n,{icon:v.descending?"arrow-down":"arrow-up",height:"19px",tooltip:v.descending?"Descending order":"Ascending order",tooltipPosition:"bottom-end",ml:"0.5rem",onClick:function(){return v.onDescending(!v.descending)}})})]})})},m=function(v){var E=(0,r.Oc)(),j=E.act,C=E.data,P=C.has_id,M=C.id,_=v.title,S=v.items,T=a(v,["title","items"]);return(0,e.jsx)(s.Nt,d({open:!0,title:_},T,{children:S.map(function(b){return(0,e.jsxs)(s.az,{children:[(0,e.jsx)(s.az,{inline:!0,verticalAlign:"middle",lineHeight:"20px",style:{float:"left"},children:b.name}),(0,e.jsx)(s.$n,{disabled:!P||M.points=450?"Overcharged":r>=250?"Good Charge":"Low Charge":r>=250?"NIF Power Requirement met.":r>=150?"Fluctuations in available power.":"Power failure imminent."}},63300:function(O,u,n){"use strict";n.r(u),n.d(u,{NIF:function(){return d}});var e=n(20462),o=n(61358),t=n(7081),r=n(88569),s=n(15581),x=n(7428),g=n(84772),d=function(a){var l=(0,t.Oc)(),i=l.act,c=l.config,f=l.data,m=f.theme,v=f.last_notification,E=(0,o.useState)(!1),j=E[0],C=E[1],P=(0,o.useState)(null),M=P[0],_=P[1];return(0,e.jsx)(s.p8,{theme:m,width:500,height:400,children:(0,e.jsxs)(s.p8.Content,{scrollable:!0,children:[!!v&&(0,e.jsx)(r.IC,{info:!0,children:(0,e.jsx)(r.XI,{verticalAlign:"middle",children:(0,e.jsxs)(r.XI.Row,{verticalAlign:"middle",children:[(0,e.jsx)(r.XI.Cell,{verticalAlign:"middle",children:v}),(0,e.jsx)(r.XI.Cell,{verticalAlign:"middle",collapsing:!0,children:(0,e.jsx)(r.$n,{color:"red",icon:"times",tooltip:"Dismiss",tooltipPosition:"left",onClick:function(){return i("dismissNotification")}})})]})})}),!!M&&(0,e.jsx)(r.aF,{m:1,p:0,color:"label",children:(0,e.jsxs)(r.wn,{m:0,title:M.name,buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.$n.Confirm,{icon:"ban",color:"bad",confirmIcon:"ban",confirmContent:"Uninstall "+M.name+"?",onClick:function(){i("uninstall",{module:M.ref}),_(null)},children:"Uninstall"}),(0,e.jsx)(r.$n,{icon:"window-close",onClick:function(){return _(null)}})]}),children:[(0,e.jsx)(r.az,{children:M.desc}),(0,e.jsxs)(r.az,{children:["It consumes",(0,e.jsx)(r.az,{color:"good",inline:!0,children:M.p_drain}),"energy units while installed, and",(0,e.jsx)(r.az,{color:"average",inline:!0,children:M.a_drain}),"additionally while active."]}),(0,e.jsxs)(r.az,{color:M.illegal?"bad":"good",children:["It is ",M.illegal?"NOT ":"","a legal software package."]}),(0,e.jsxs)(r.az,{children:["The MSRP of the package is",(0,e.jsxs)(r.az,{color:"good",inline:!0,children:[M.cost,"\u20AE."]})]}),(0,e.jsxs)(r.az,{children:["The difficulty to construct the associated implant is\xA0",(0,e.jsxs)(r.az,{color:"good",inline:!0,children:["Rating ",M.wear]}),"."]})]})}),(0,e.jsx)(r.wn,{title:"Welcome to your NIF, "+c.user.name,buttons:(0,e.jsx)(r.$n,{icon:"cogs",tooltip:"Settings",tooltipPosition:"bottom-end",selected:j,onClick:function(){return C(!j)}}),children:j&&(0,e.jsx)(g.NIFSettings,{})||(0,e.jsx)(x.NIFMain,{setViewing:_})})]})})}},11045:function(O,u,n){"use strict";n.r(u)},14910:function(O,u,n){"use strict";n.r(u),n.d(u,{NTNetRelay:function(){return x}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),s=n(72859),x=function(a){var l=(0,o.Oc)().data,i=l.dos_crashed,c=(0,e.jsx)(g,{});return i&&(c=(0,e.jsx)(d,{})),(0,e.jsx)(r.p8,{width:i?700:500,height:i?600:300,children:(0,e.jsx)(r.p8.Content,{scrollable:!0,children:c})})},g=function(a){var l=(0,o.Oc)(),i=l.act,c=l.data,f=c.enabled,m=c.dos_overload,v=c.dos_capacity;return(0,e.jsx)(t.wn,{title:"Status",buttons:(0,e.jsx)(t.$n,{icon:"power-off",selected:f,onClick:function(){return i("toggle")},children:"Relay "+(f?"On":"Off")}),children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsxs)(t.Ki.Item,{label:"Network Buffer Status",children:[m," / ",v," GQ"]}),(0,e.jsx)(t.Ki.Item,{label:"Options",children:(0,e.jsx)(t.$n,{icon:"exclamation-triangle",onClick:function(){return i("purge")},children:"Purge network blacklist"})})]})})},d=function(a){var l=(0,o.Oc)().act;return(0,e.jsxs)(s.FullscreenNotice,{title:"ERROR",children:[(0,e.jsxs)(t.az,{fontSize:"1.5rem",bold:!0,color:"bad",children:[(0,e.jsx)(t.In,{name:"exclamation-triangle",verticalAlign:"middle",size:3,mr:"1rem"}),(0,e.jsx)("h2",{children:"NETWORK BUFFERS OVERLOADED"}),(0,e.jsx)("h3",{children:"Overload Recovery Mode"}),(0,e.jsx)("i",{children:"This system is suffering temporary outage due to overflow of traffic buffers. Until buffered traffic is processed, all further requests will be dropped. Frequent occurences of this error may indicate insufficient hardware capacity of your network. Please contact your network planning department for instructions on how to resolve this issue."}),(0,e.jsx)("h3",{children:"ADMINISTRATIVE OVERRIDE"}),(0,e.jsx)("b",{children:" CAUTION - Data loss may occur "})]}),(0,e.jsx)(t.az,{children:(0,e.jsx)(t.$n,{icon:"exclamation-triangle",onClick:function(){return l("restart")},children:"Purge buffered traffic"})})]})}},3949:function(O,u,n){"use strict";n.r(u),n.d(u,{NewscasterMainMenu:function(){return s}});var e=n(20462),o=n(7081),t=n(88569),r=n(42501),s=function(x){var g=(0,o.Oc)().data,d=g.securityCaster,a=g.wanted_issue,l=x.setScreen;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(t.wn,{title:"Main Menu",children:[a&&(0,e.jsx)(t.$n,{fluid:!0,icon:"eye",onClick:function(){return l(r.NEWSCASTER_SCREEN_VIEWWANTED)},color:"bad",children:"Read WANTED Issue"}),(0,e.jsx)(t.$n,{fluid:!0,icon:"eye",onClick:function(){return l(r.NEWSCASTER_SCREEN_VIEWLIST)},children:"View Feed Channels"}),(0,e.jsx)(t.$n,{fluid:!0,icon:"plus",onClick:function(){return l(r.NEWSCASTER_SCREEN_NEWCHANNEL)},children:"Create Feed Channel"}),(0,e.jsx)(t.$n,{fluid:!0,icon:"plus",onClick:function(){return l(r.NEWSCASTER_SCREEN_NEWSTORY)},children:"Create Feed Message"}),(0,e.jsx)(t.$n,{fluid:!0,icon:"print",onClick:function(){return l(r.NEWSCASTER_SCREEN_PRINT)},children:"Print Newspaper"})]}),!!d&&(0,e.jsx)(t.wn,{title:"Feed Security Functions",children:(0,e.jsx)(t.$n,{fluid:!0,icon:"plus",onClick:function(){return l(r.NEWSCASTER_SCREEN_NEWWANTED)},children:'Manage "Wanted" Issue'})})]})}},71588:function(O,u,n){"use strict";n.r(u),n.d(u,{NewscasterNewChannel:function(){return x}});var e=n(20462),o=n(61282),t=n(7081),r=n(88569),s=n(42501),x=function(g){var d=(0,t.Oc)(),a=d.act,l=d.data,i=l.channel_name,c=l.c_locked,f=l.user,m=g.setScreen;return(0,e.jsxs)(r.wn,{title:"Creating new Feed Channel",buttons:(0,e.jsx)(r.$n,{icon:"undo",onClick:function(){return m(s.NEWSCASTER_SCREEN_MAIN)},children:"Back"}),children:[(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Channel Name",children:(0,e.jsx)(r.pd,{fluid:!0,value:(0,o.jT)(i),onInput:function(v,E){return a("set_channel_name",{val:E})}})}),(0,e.jsx)(r.Ki.Item,{label:"Channel Author",color:"good",children:f}),(0,e.jsx)(r.Ki.Item,{label:"Accept Public Feeds",children:(0,e.jsx)(r.$n,{icon:c?"lock":"lock-open",selected:!c,onClick:function(){return a("set_channel_lock")},children:c?"No":"Yes"})})]}),(0,e.jsx)(r.$n,{fluid:!0,color:"good",icon:"plus",onClick:function(){return a("submit_new_channel")},children:"Submit Channel"}),(0,e.jsx)(r.$n,{fluid:!0,color:"bad",icon:"undo",onClick:function(){return m(s.NEWSCASTER_SCREEN_MAIN)},children:"Cancel"})]})}},85578:function(O,u,n){"use strict";n.r(u),n.d(u,{NewscasterNewStory:function(){return s}});var e=n(20462),o=n(7081),t=n(88569),r=n(42501),s=function(x){var g=(0,o.Oc)(),d=g.act,a=g.data,l=a.channel_name,i=a.user,c=a.title,f=a.msg,m=a.photo_data,v=x.setScreen;return(0,e.jsxs)(t.wn,{title:"Creating new Feed Message...",buttons:(0,e.jsx)(t.$n,{icon:"undo",onClick:function(){return v(r.NEWSCASTER_SCREEN_MAIN)},children:"Back"}),children:[(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Receiving Channel",children:(0,e.jsx)(t.$n,{fluid:!0,onClick:function(){return d("set_channel_receiving")},children:l||"Unset"})}),(0,e.jsx)(t.Ki.Item,{label:"Message Author",color:"good",children:i}),(0,e.jsx)(t.Ki.Item,{label:"Message Title",verticalAlign:"top",children:(0,e.jsxs)(t.so,{children:[(0,e.jsx)(t.so.Item,{grow:1,children:(0,e.jsx)(t.wn,{width:"99%",inline:!0,children:c||"(no title yet)"})}),(0,e.jsx)(t.so.Item,{children:(0,e.jsx)(t.$n,{verticalAlign:"top",onClick:function(){return d("set_new_title")},icon:"pen",tooltip:"Edit Title",tooltipPosition:"left"})})]})}),(0,e.jsx)(t.Ki.Item,{label:"Message Body",verticalAlign:"top",children:(0,e.jsxs)(t.so,{children:[(0,e.jsx)(t.so.Item,{grow:1,children:(0,e.jsx)(t.wn,{width:"99%",inline:!0,children:f||"(no message yet)"})}),(0,e.jsx)(t.so.Item,{children:(0,e.jsx)(t.$n,{verticalAlign:"top",onClick:function(){return d("set_new_message")},icon:"pen",tooltip:"Edit Message",tooltipPosition:"left"})})]})}),(0,e.jsx)(t.Ki.Item,{label:"Attach Photo",children:(0,e.jsx)(t.$n,{fluid:!0,icon:"image",onClick:function(){return d("set_attachment")},children:m?"Photo Attached":"No Photo"})})]}),(0,e.jsx)(t.$n,{fluid:!0,color:"good",icon:"plus",onClick:function(){return d("submit_new_message")},children:"Submit Message"}),(0,e.jsx)(t.$n,{fluid:!0,color:"bad",icon:"undo",onClick:function(){return v(r.NEWSCASTER_SCREEN_MAIN)},children:"Cancel"})]})}},92432:function(O,u,n){"use strict";n.r(u),n.d(u,{NewscasterNewWanted:function(){return x}});var e=n(20462),o=n(61282),t=n(7081),r=n(88569),s=n(42501),x=function(g){var d=(0,t.Oc)(),a=d.act,l=d.data,i=l.channel_name,c=l.msg,f=l.photo_data,m=l.user,v=l.wanted_issue,E=g.setScreen;return(0,e.jsxs)(r.wn,{title:"Wanted Issue Handler",buttons:(0,e.jsx)(r.$n,{icon:"undo",onClick:function(){return E(s.NEWSCASTER_SCREEN_MAIN)},children:"Back"}),children:[(0,e.jsxs)(r.Ki,{children:[!!v&&(0,e.jsx)(r.Ki.Item,{label:"Already In Circulation",children:"A wanted issue is already in circulation. You can edit or cancel it below."}),(0,e.jsx)(r.Ki.Item,{label:"Criminal Name",children:(0,e.jsx)(r.pd,{fluid:!0,value:(0,o.jT)(i),onInput:function(j,C){return a("set_channel_name",{val:C})}})}),(0,e.jsx)(r.Ki.Item,{label:"Description",children:(0,e.jsx)(r.pd,{fluid:!0,value:(0,o.jT)(c),onInput:function(j,C){return a("set_wanted_desc",{val:C})}})}),(0,e.jsx)(r.Ki.Item,{label:"Attach Photo",children:(0,e.jsx)(r.$n,{fluid:!0,icon:"image",onClick:function(){return a("set_attachment")},children:f?"Photo Attached":"No Photo"})}),(0,e.jsx)(r.Ki.Item,{label:"Prosecutor",color:"good",children:m})]}),(0,e.jsx)(r.$n,{mt:1,fluid:!0,color:"good",icon:"plus",onClick:function(){return a("submit_wanted")},children:"Submit Wanted Issue"}),!!v&&(0,e.jsx)(r.$n,{fluid:!0,color:"average",icon:"minus",onClick:function(){return a("cancel_wanted")},children:"Take Down Issue"}),(0,e.jsx)(r.$n,{fluid:!0,color:"bad",icon:"undo",onClick:function(){return E(s.NEWSCASTER_SCREEN_MAIN)},children:"Cancel"})]})}},7662:function(O,u,n){"use strict";n.r(u),n.d(u,{NewscasterPrint:function(){return s}});var e=n(20462),o=n(7081),t=n(88569),r=n(42501),s=function(x){var g=(0,o.Oc)(),d=g.act,a=g.data,l=a.total_num,i=a.active_num,c=a.message_num,f=a.paper_remaining,m=x.setScreen;return(0,e.jsxs)(t.wn,{title:"Printing",buttons:(0,e.jsx)(t.$n,{icon:"undo",onClick:function(){return m(r.NEWSCASTER_SCREEN_MAIN)},children:"Back"}),children:[(0,e.jsxs)(t.az,{color:"label",mb:1,children:["Newscaster currently serves a total of ",l," Feed channels,"," ",i," of which are active, and a total of ",c," Feed stories."]}),(0,e.jsx)(t.Ki,{children:(0,e.jsxs)(t.Ki.Item,{label:"Liquid Paper remaining",children:[f*100," cm\xB3"]})}),(0,e.jsx)(t.$n,{mt:1,fluid:!0,color:"good",icon:"plus",onClick:function(){return d("print_paper")},children:"Print Paper"}),(0,e.jsx)(t.$n,{fluid:!0,color:"bad",icon:"undo",onClick:function(){return m(r.NEWSCASTER_SCREEN_MAIN)},children:"Cancel"})]})}},12512:function(O,u,n){"use strict";n.r(u),n.d(u,{NewscasterViewList:function(){return x}});var e=n(20462),o=n(61282),t=n(7081),r=n(88569),s=n(42501),x=function(g){var d=(0,t.Oc)(),a=d.act,l=d.data,i=l.channels,c=g.setScreen;return(0,e.jsx)(r.wn,{title:"Station Feed Channels",buttons:(0,e.jsx)(r.$n,{icon:"undo",onClick:function(){return c(s.NEWSCASTER_SCREEN_MAIN)},children:"Back"}),children:i.map(function(f){return(0,e.jsx)(r.$n,{fluid:!0,icon:"eye",color:f.admin?"good":f.censored?"bad":"",onClick:function(){a("show_channel",{show_channel:f.ref}),c(s.NEWSCASTER_SCREEN_SELECTEDCHANNEL)},children:(0,o.jT)(f.name)},f.name)})})}},96935:function(O,u,n){"use strict";n.r(u),n.d(u,{NewscasterViewSelected:function(){return x}});var e=n(20462),o=n(61282),t=n(7081),r=n(88569),s=n(42501),x=function(g){var d=(0,t.Oc)(),a=d.act,l=d.data,i=l.viewing_channel,c=l.securityCaster,f=l.company,m=g.setScreen;return i?(0,e.jsxs)(r.wn,{title:(0,o.jT)(i.name),buttons:(0,e.jsxs)(e.Fragment,{children:[!!c&&(0,e.jsx)(r.$n.Confirm,{color:"bad",icon:"ban",confirmIcon:"ban",onClick:function(){return a("toggle_d_notice",{ref:i.ref})},children:"Issue D-Notice"}),(0,e.jsx)(r.$n,{icon:"undo",onClick:function(){return m(s.NEWSCASTER_SCREEN_VIEWLIST)},children:"Back"})]}),children:[(0,e.jsx)(r.Ki,{children:(0,e.jsx)(r.Ki.Item,{label:"Channel Created By",children:c&&(0,e.jsx)(r.$n.Confirm,{color:"bad",icon:"strikethrough",confirmIcon:"strikethrough",tooltip:"Censor?",confirmContent:"Censor Author",onClick:function(){return a("censor_channel_author",{ref:i.ref})},children:(0,o.jT)(i.author)})||(0,e.jsx)(r.az,{children:(0,o.jT)(i.author)})})}),!!i.censored&&(0,e.jsxs)(r.az,{color:"bad",children:["ATTENTION: This channel has been deemed as threatening to the welfare of the station, and marked with a ",f," D-Notice. No further feed story additions are allowed while the D-Notice is in effect."]}),!!i.messages.length&&i.messages.map(function(v){return(0,e.jsxs)(r.wn,{children:["- ",(0,o.jT)(v.body),!!v.img&&(0,e.jsxs)(r.az,{children:[(0,e.jsx)(r._V,{src:"data:image/png;base64,"+v.img}),!!v.caption&&(0,o.jT)(v.caption)||null]}),(0,e.jsxs)(r.az,{color:"grey",children:["[Story by ",(0,o.jT)(v.author)," -"," ",v.timestamp,"]"]}),!!c&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.$n.Confirm,{mt:1,color:"bad",icon:"strikethrough",confirmIcon:"strikethrough",onClick:function(){return a("censor_channel_story_body",{ref:v.ref})},children:"Censor Story"}),(0,e.jsx)(r.$n.Confirm,{color:"bad",icon:"strikethrough",confirmIcon:"strikethrough",onClick:function(){return a("censor_channel_story_author",{ref:v.ref})},children:"Censor Author"})]})]},v.ref)})||!i.censored&&(0,e.jsx)(r.az,{color:"average",children:"No feed messages found in channel."})]}):(0,e.jsx)(r.wn,{title:"Channel Not Found",buttons:(0,e.jsx)(r.$n,{icon:"undo",onClick:function(){return m(s.NEWSCASTER_SCREEN_VIEWLIST)},children:"Back"}),children:"The channel you were looking for no longer exists."})}},28189:function(O,u,n){"use strict";n.r(u),n.d(u,{NewscasterViewWanted:function(){return x}});var e=n(20462),o=n(61282),t=n(7081),r=n(88569),s=n(42501),x=function(g){var d=(0,t.Oc)().data,a=d.wanted_issue,l=g.setScreen;return a?(0,e.jsx)(r.wn,{title:"--STATIONWIDE WANTED ISSUE--",color:"bad",buttons:(0,e.jsx)(r.$n,{icon:"undo",onClick:function(){return l(s.NEWSCASTER_SCREEN_MAIN)},children:"Back"}),children:(0,e.jsx)(r.az,{color:"white",children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Submitted by",color:"good",children:(0,o.jT)(a.author)}),(0,e.jsx)(r.Ki.Divider,{}),(0,e.jsx)(r.Ki.Item,{label:"Criminal",children:(0,o.jT)(a.criminal)}),(0,e.jsx)(r.Ki.Item,{label:"Description",children:(0,o.jT)(a.desc)}),(0,e.jsx)(r.Ki.Item,{label:"Photo",children:a.img&&(0,e.jsx)(r._V,{src:a.img})||"None"})]})})}):(0,e.jsx)(r.wn,{title:"No Outstanding Wanted Issues",buttons:(0,e.jsx)(r.$n,{icon:"undo",onClick:function(){return l(s.NEWSCASTER_SCREEN_MAIN)},children:"Back"}),children:"There are no wanted issues currently outstanding."})}},42501:function(O,u,n){"use strict";n.r(u),n.d(u,{NEWSCASTER_SCREEN_MAIN:function(){return e},NEWSCASTER_SCREEN_NEWCHANNEL:function(){return o},NEWSCASTER_SCREEN_NEWSTORY:function(){return r},NEWSCASTER_SCREEN_NEWWANTED:function(){return x},NEWSCASTER_SCREEN_PRINT:function(){return s},NEWSCASTER_SCREEN_SELECTEDCHANNEL:function(){return d},NEWSCASTER_SCREEN_VIEWLIST:function(){return t},NEWSCASTER_SCREEN_VIEWWANTED:function(){return g}});var e="Main Menu",o="New Channel",t="View List",r="New Story",s="Print",x="New Wanted",g="View Wanted",d="View Selected Channel"},93856:function(O,u,n){"use strict";n.r(u),n.d(u,{Newscaster:function(){return v}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),s=n(3751),x=n(42501),g=n(3949),d=n(71588),a=n(85578),l=n(92432),i=n(7662),c=n(12512),f=n(96935),m=n(28189),v=function(j){return(0,e.jsx)(r.p8,{width:600,height:600,children:(0,e.jsxs)(r.p8.Content,{scrollable:!0,children:[(0,e.jsx)(s.TemporaryNotice,{decode:!0}),(0,e.jsx)(E,{})]})})},E=function(j){var C=(0,o.QY)("screen",x.NEWSCASTER_SCREEN_MAIN),P=C[0],M=C[1],_=[];return _[x.NEWSCASTER_SCREEN_MAIN]=(0,e.jsx)(g.NewscasterMainMenu,{setScreen:M}),_[x.NEWSCASTER_SCREEN_NEWCHANNEL]=(0,e.jsx)(d.NewscasterNewChannel,{setScreen:M}),_[x.NEWSCASTER_SCREEN_VIEWLIST]=(0,e.jsx)(c.NewscasterViewList,{setScreen:M}),_[x.NEWSCASTER_SCREEN_NEWSTORY]=(0,e.jsx)(a.NewscasterNewStory,{setScreen:M}),_[x.NEWSCASTER_SCREEN_PRINT]=(0,e.jsx)(i.NewscasterPrint,{setScreen:M}),_[x.NEWSCASTER_SCREEN_NEWWANTED]=(0,e.jsx)(l.NewscasterNewWanted,{setScreen:M}),_[x.NEWSCASTER_SCREEN_VIEWWANTED]=(0,e.jsx)(m.NewscasterViewWanted,{setScreen:M}),_[x.NEWSCASTER_SCREEN_SELECTEDCHANNEL]=(0,e.jsx)(f.NewscasterViewSelected,{setScreen:M}),(0,e.jsx)(t.az,{children:_[P]})}},5537:function(O,u,n){"use strict";n.r(u)},4418:function(O,u,n){"use strict";n.r(u),n.d(u,{NoticeBoard:function(){return s}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),s=function(x){var g=(0,o.Oc)(),d=g.act,a=g.data,l=a.notices;return(0,e.jsx)(r.p8,{width:330,height:300,children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsx)(t.wn,{children:l.length?(0,e.jsx)(t.Ki,{children:l.map(function(i,c){return(0,e.jsxs)(t.Ki.Item,{label:i.name,children:[i.isphoto&&(0,e.jsx)(t.$n,{icon:"image",onClick:function(){return d("look",{ref:i.ref})},children:"Look"})||i.ispaper&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n,{icon:"sticky-note",onClick:function(){return d("read",{ref:i.ref})},children:"Read"}),(0,e.jsx)(t.$n,{icon:"pen",onClick:function(){return d("write",{ref:i.ref})},children:"Write"})]})||"Unknown Entity",(0,e.jsx)(t.$n,{icon:"minus-circle",onClick:function(){return d("remove",{ref:i.ref})},children:"Remove"})]},c)})}):(0,e.jsx)(t.az,{color:"average",children:"No notices posted here."})})})})}},78610:function(O,u,n){"use strict";n.r(u),n.d(u,{NtosAccessDecrypter:function(){return x}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),s=n(39841),x=function(g){var d=(0,o.Oc)(),a=d.act,l=d.data,i=l.message,c=l.running,f=l.rate,m=l.factor,v=l.regions,E=function(C){for(var P="";P.lengthm?P+="0":P+="1";return P},j=45;return(0,e.jsx)(r.Zm,{width:600,height:600,theme:"syndicate",children:(0,e.jsx)(r.Zm.Content,{children:i&&(0,e.jsx)(t.IC,{children:i})||c&&(0,e.jsxs)(t.wn,{children:["Attempting to decrypt network access codes. Please wait. Rate:"," ",f," PHash/s",(0,e.jsx)(t.az,{children:E(j)}),(0,e.jsx)(t.az,{children:E(j)}),(0,e.jsx)(t.az,{children:E(j)}),(0,e.jsx)(t.az,{children:E(j)}),(0,e.jsx)(t.az,{children:E(j)}),(0,e.jsx)(t.$n,{fluid:!0,icon:"ban",onClick:function(){return a("PRG_reset")},children:"Abort"})]})||(0,e.jsx)(t.wn,{title:"Pick access code to decrypt",children:v.length&&(0,e.jsx)(s.IdentificationComputerRegions,{actName:"PRG_execute"})||(0,e.jsx)(t.az,{children:"Please insert ID card."})})})})}},25316:function(O,u,n){"use strict";n.r(u),n.d(u,{NtosArcade:function(){return x}});var e=n(20462),o=n(31200),t=n(7081),r=n(88569),s=n(15581),x=function(g){var d=(0,t.Oc)(),a=d.act,l=d.data,i=l.PlayerHitpoints,c=l.PlayerMP,f=l.PauseState,m=l.Status,v=l.Hitpoints,E=l.BossID,j=l.GameActive,C=l.TicketCount;return(0,e.jsx)(s.Zm,{width:450,height:350,children:(0,e.jsx)(s.Zm.Content,{children:(0,e.jsxs)(r.wn,{title:"Outbomb Cuban Pete Ultra",textAlign:"center",children:[(0,e.jsxs)(r.az,{children:[(0,e.jsx)(r.XI,{children:(0,e.jsxs)(r.XI.Row,{children:[(0,e.jsxs)(r.XI.Cell,{size:2,children:[(0,e.jsx)(r.az,{m:1}),(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Player Health",children:(0,e.jsxs)(r.z2,{value:i,minValue:0,maxValue:30,ranges:{olive:[31,1/0],good:[20,31],average:[10,20],bad:[-1/0,10]},children:[i,"HP"]})}),(0,e.jsx)(r.Ki.Item,{label:"Player Magic",children:(0,e.jsxs)(r.z2,{value:c,minValue:0,maxValue:10,ranges:{purple:[11,1/0],violet:[3,11],bad:[-1/0,3]},children:[c,"MP"]})})]}),(0,e.jsx)(r.az,{my:1,mx:4}),(0,e.jsx)(r.wn,{backgroundColor:f===1?"#1b3622":"#471915",children:m})]}),(0,e.jsxs)(r.XI.Cell,{children:[(0,e.jsxs)(r.z2,{value:v,minValue:0,maxValue:45,ranges:{good:[30,1/0],average:[5,30],bad:[-1/0,5]},children:[(0,e.jsx)(r.zv,{value:v}),"HP"]}),(0,e.jsx)(r.az,{m:1}),(0,e.jsx)(r.wn,{inline:!0,width:"156px",textAlign:"center",children:(0,e.jsx)(r._V,{src:(0,o.l)(E)})})]})]})}),(0,e.jsx)(r.az,{my:1,mx:4}),(0,e.jsx)(r.$n,{icon:"fist-raised",tooltip:"Go in for the kill!",tooltipPosition:"top",disabled:j===0||f===1,onClick:function(){return a("Attack")},children:"Attack!"}),(0,e.jsx)(r.$n,{icon:"band-aid",tooltip:"Heal yourself!",tooltipPosition:"top",disabled:j===0||f===1,onClick:function(){return a("Heal")},children:"Heal!"}),(0,e.jsx)(r.$n,{icon:"magic",tooltip:"Recharge your magic!",tooltipPosition:"top",disabled:j===0||f===1,onClick:function(){return a("Recharge_Power")},children:"Recharge!"})]}),(0,e.jsxs)(r.az,{children:[(0,e.jsx)(r.$n,{icon:"sync-alt",tooltip:"One more game couldn't hurt.",tooltipPosition:"top",disabled:j===1,onClick:function(){return a("Start_Game")},children:"Begin Game"}),(0,e.jsx)(r.$n,{icon:"ticket-alt",tooltip:"Claim at your local Arcade Computer for Prizes!",tooltipPosition:"top",disabled:j===1,onClick:function(){return a("Dispense_Tickets")},children:"Claim Tickets"})]}),(0,e.jsxs)(r.az,{color:C>=1?"good":"normal",children:["Earned Tickets: ",C]})]})})})}},98669:function(O,u,n){"use strict";n.r(u),n.d(u,{NtosAtmosControl:function(){return r}});var e=n(20462),o=n(15581),t=n(74737),r=function(){return(0,e.jsx)(o.Zm,{width:870,height:708,children:(0,e.jsx)(o.Zm.Content,{children:(0,e.jsx)(t.AtmosControlContent,{})})})}},34470:function(O,u,n){"use strict";n.r(u),n.d(u,{NtosCameraConsole:function(){return x}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),s=n(18490),x=function(g){var d=(0,o.Oc)(),a=d.act,l=d.data,i=l.mapRef,c=l.activeCamera,f=l.cameras,m=(0,s.selectCameras)(f),v=(0,s.prevNextCamera)(m,c),E=v[0],j=v[1];return(0,e.jsx)(r.Zm,{width:870,height:708,children:(0,e.jsxs)(r.Zm.Content,{children:[(0,e.jsx)("div",{className:"CameraConsole__left",children:(0,e.jsx)(s.CameraConsoleContent,{})}),(0,e.jsxs)("div",{className:"CameraConsole__right",children:[(0,e.jsxs)("div",{className:"CameraConsole__toolbar",children:[(0,e.jsx)("b",{children:"Camera: "}),c&&c.name||"\u2014"]}),(0,e.jsxs)("div",{className:"CameraConsole__toolbarRight",children:["SEL:",(0,e.jsx)(t.$n,{icon:"chevron-left",disabled:!E,onClick:function(){return a("switch_camera",{name:E})}}),(0,e.jsx)(t.$n,{icon:"chevron-right",disabled:!j,onClick:function(){return a("switch_camera",{name:j})}}),"| PAN:",(0,e.jsx)(t.$n,{icon:"chevron-left",onClick:function(){return a("pan",{dir:8})}}),(0,e.jsx)(t.$n,{icon:"chevron-up",onClick:function(){return a("pan",{dir:1})}}),(0,e.jsx)(t.$n,{icon:"chevron-right",onClick:function(){return a("pan",{dir:4})}}),(0,e.jsx)(t.$n,{icon:"chevron-down",onClick:function(){return a("pan",{dir:2})}})]}),(0,e.jsx)(t.D1,{className:"CameraConsole__map",params:{id:i,type:"map"}})]})]})})}},77580:function(O,u,n){"use strict";n.r(u),n.d(u,{NtosCommunicationsConsole:function(){return r}});var e=n(20462),o=n(15581),t=n(34116),r=function(){return(0,e.jsx)(o.Zm,{width:400,height:600,children:(0,e.jsx)(o.Zm.Content,{scrollable:!0,children:(0,e.jsx)(t.CommunicationsConsoleContent,{})})})}},35300:function(O,u,n){"use strict";n.r(u),n.d(u,{NtosConfiguration:function(){return s}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),s=function(x){var g=(0,o.Oc)(),d=g.act,a=g.data,l=a.PC_device_theme,i=a.power_usage,c=a.battery_exists,f=a.battery,m=f===void 0?{}:f,v=a.disk_size,E=a.disk_used,j=a.hardware,C=j===void 0?[]:j;return(0,e.jsx)(r.Zm,{theme:l,width:520,height:630,children:(0,e.jsxs)(r.Zm.Content,{scrollable:!0,children:[(0,e.jsx)(t.wn,{title:"Power Supply",buttons:(0,e.jsxs)(t.az,{inline:!0,bold:!0,mr:1,children:["Power Draw: ",i,"W"]}),children:(0,e.jsx)(t.Ki,{children:(0,e.jsx)(t.Ki.Item,{label:"Battery Status",color:!c&&"average"||void 0,children:c?(0,e.jsxs)(t.z2,{value:m.charge,minValue:0,maxValue:m.max,ranges:{good:[m.max/2,1/0],average:[m.max/4,m.max/2],bad:[-1/0,m.max/4]},children:[m.charge," / ",m.max]}):"Not Available"})})}),(0,e.jsx)(t.wn,{title:"File System",children:(0,e.jsxs)(t.z2,{value:E,minValue:0,maxValue:v,color:"good",children:[E," GQ / ",v," GQ"]})}),(0,e.jsx)(t.wn,{title:"Hardware Components",children:C.map(function(P){return(0,e.jsx)(t.wn,{title:P.name,buttons:(0,e.jsxs)(e.Fragment,{children:[!P.critical&&(0,e.jsx)(t.$n.Checkbox,{checked:P.enabled,mr:1,onClick:function(){return d("PC_toggle_component",{name:P.name})},children:"Enabled"}),(0,e.jsxs)(t.az,{inline:!0,bold:!0,mr:1,children:["Power Usage: ",P.powerusage,"W"]})]}),children:P.desc},P.name)})})]})})}},23984:function(O,u,n){"use strict";n.r(u),n.d(u,{NtosCrewManifest:function(){return r}});var e=n(20462),o=n(15581),t=n(58044),r=function(){return(0,e.jsx)(o.Zm,{width:800,height:600,children:(0,e.jsx)(o.Zm.Content,{children:(0,e.jsx)(t.CrewManifestContent,{})})})}},69233:function(O,u,n){"use strict";n.r(u),n.d(u,{NtosCrewMonitor:function(){return s}});var e=n(20462),o=n(61358),t=n(15581),r=n(70117),s=function(){var x=function(v){l(v)},g=function(v){f(v)},d=(0,o.useState)(0),a=d[0],l=d[1],i=(0,o.useState)(1),c=i[0],f=i[1];return(0,e.jsx)(t.Zm,{width:800,height:600,children:(0,e.jsx)(t.Zm.Content,{children:(0,e.jsx)(r.CrewMonitorContent,{tabIndex:a,zoom:c,onTabIndex:x,onZoom:g})})})}},6303:function(O,u,n){"use strict";n.r(u),n.d(u,{NtosDigitalWarrant:function(){return x}});var e=n(20462),o=n(7402),t=n(7081),r=n(88569),s=n(15581),x=function(l){var i=(0,t.Oc)().data,c=i.warrantauth,f=(0,e.jsx)(g,{});return c&&(f=(0,e.jsx)(a,{})),(0,e.jsx)(s.Zm,{width:500,height:350,children:(0,e.jsx)(s.Zm.Content,{scrollable:!0,children:f})})},g=function(l){var i=(0,t.Oc)().act;return(0,e.jsxs)(r.wn,{title:"Warrants",children:[(0,e.jsx)(r.$n,{icon:"plus",fluid:!0,onClick:function(){return i("addwarrant")},children:"Create New Warrant"}),(0,e.jsx)(r.wn,{title:"Arrest Warrants",children:(0,e.jsx)(d,{type:"arrest"})}),(0,e.jsx)(r.wn,{title:"Search Warrants",children:(0,e.jsx)(d,{type:"search"})})]})},d=function(l){var i=(0,t.Oc)(),c=i.act,f=i.data,m=l.type,v=f.allwarrants,E=v===void 0?[]:v,j=(0,o.pb)(E,function(C){return C.arrestsearch===m});return(0,e.jsxs)(r.XI,{children:[(0,e.jsxs)(r.XI.Row,{header:!0,children:[(0,e.jsx)(r.XI.Cell,{children:m==="arrest"?"Name":"Location"}),(0,e.jsx)(r.XI.Cell,{children:m==="arrest"?"Charges":"Reason"}),(0,e.jsx)(r.XI.Cell,{children:"Authorized By"}),(0,e.jsx)(r.XI.Cell,{collapsing:!0,children:"Edit"})]}),j.length&&j.map(function(C){return(0,e.jsxs)(r.XI.Row,{children:[(0,e.jsx)(r.XI.Cell,{children:C.warrantname}),(0,e.jsx)(r.XI.Cell,{children:C.charges}),(0,e.jsx)(r.XI.Cell,{children:C.auth}),(0,e.jsx)(r.XI.Cell,{collapsing:!0,children:(0,e.jsx)(r.$n,{icon:"pen",onClick:function(){return c("editwarrant",{id:C.id})}})})]},C.id)})||(0,e.jsx)(r.XI.Row,{children:(0,e.jsxs)(r.XI.Cell,{colspan:"3",color:"bad",children:["No ",m," warrants found."]})})]})},a=function(l){var i=(0,t.Oc)(),c=i.act,f=i.data,m=f.warrantname,v=f.warrantcharges,E=f.warrantauth,j=f.type,C=j==="arrest",P=j==="arrest"?"Name":"Location",M=j==="arrest"?"Charges":"Reason";return(0,e.jsx)(r.wn,{title:C?"Editing Arrest Warrant":"Editing Search Warrant",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.$n,{icon:"save",onClick:function(){return c("savewarrant")},children:"Save"}),(0,e.jsx)(r.$n,{color:"bad",icon:"trash",onClick:function(){return c("deletewarrant")},children:"Delete"}),(0,e.jsx)(r.$n,{icon:"undo",onClick:function(){return c("back")},children:"Back"})]}),children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:P,buttons:C&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.$n,{icon:"search",onClick:function(){return c("editwarrantname")}}),(0,e.jsx)(r.$n,{icon:"pen",onClick:function(){return c("editwarrantnamecustom")}})]})||(0,e.jsx)(r.$n,{icon:"pen",onClick:function(){return c("editwarrantnamecustom")}}),children:m}),(0,e.jsx)(r.Ki.Item,{label:M,buttons:(0,e.jsx)(r.$n,{icon:"pen",onClick:function(){return c("editwarrantcharges")}}),children:v}),(0,e.jsx)(r.Ki.Item,{label:"Authorized By",buttons:(0,e.jsx)(r.$n,{icon:"balance-scale",onClick:function(){return c("editwarrantauth")}}),children:E})]})})}},27896:function(O,u,n){"use strict";n.r(u),n.d(u,{NtosEmailAdministration:function(){return x}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),s=n(94151),x=function(i){var c=(0,o.Oc)().data,f=c.error,m=c.cur_title,v=c.current_account,E=c.accounts,j=(0,e.jsx)(g,{accounts:E});return f?j=(0,e.jsx)(d,{error:f}):m?j=(0,e.jsx)(a,{}):v&&(j=(0,e.jsx)(l,{})),(0,e.jsx)(r.Zm,{width:600,height:450,children:(0,e.jsx)(r.Zm.Content,{scrollable:!0,children:j})})},g=function(i){var c=(0,o.Oc)().act,f=i.accounts;return(0,e.jsxs)(t.wn,{title:"Welcome to the NTNet Email Administration System",children:[(0,e.jsx)(t.az,{italic:!0,mb:1,children:"SECURE SYSTEM - Have your identification ready"}),(0,e.jsx)(t.$n,{fluid:!0,icon:"plus",onClick:function(){return c("newaccount")},children:"Create New Account"}),(0,e.jsx)(t.az,{bold:!0,mt:1,mb:1,children:"Select account to administrate"}),f.map(function(m){return(0,e.jsx)(t.$n,{fluid:!0,icon:"eye",onClick:function(){return c("viewaccount",{viewaccount:m.uid})},children:m.login},m.uid)})]})},d=function(i){var c=(0,o.Oc)().act,f=i.error;return(0,e.jsx)(t.wn,{title:"Message",buttons:(0,e.jsx)(t.$n,{icon:"undo",onClick:function(){return c("back")},children:"Back"}),children:f})},a=function(i){return(0,e.jsx)(t.wn,{children:(0,e.jsx)(s.NtosEmailClientViewMessage,{administrator:!0})})},l=function(i){var c=(0,o.Oc)(),f=c.act,m=c.data,v=m.current_account,E=m.cur_suspended,j=m.messages,C=j===void 0?[]:j;return(0,e.jsxs)(t.wn,{title:"Viewing "+v+" in admin mode",buttons:(0,e.jsx)(t.$n,{icon:"undo",onClick:function(){return f("back")},children:"Back"}),children:[(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Account Status",children:(0,e.jsx)(t.$n,{color:E?"bad":"",icon:"ban",tooltip:(E?"Uns":"S")+"uspend Account?",onClick:function(){return f("ban")},children:E?"Suspended":"Normal"})}),(0,e.jsx)(t.Ki.Item,{label:"Actions",children:(0,e.jsx)(t.$n,{icon:"key",onClick:function(){return f("changepass")},children:"Change Password"})})]}),(0,e.jsx)(t.wn,{title:"Messages",children:C.length&&(0,e.jsxs)(t.XI,{children:[(0,e.jsxs)(t.XI.Row,{header:!0,children:[(0,e.jsx)(t.XI.Cell,{children:"Source"}),(0,e.jsx)(t.XI.Cell,{children:"Title"}),(0,e.jsx)(t.XI.Cell,{children:"Received at"}),(0,e.jsx)(t.XI.Cell,{children:"Actions"})]}),C.map(function(P){return(0,e.jsxs)(t.XI.Row,{children:[(0,e.jsx)(t.XI.Cell,{children:P.source}),(0,e.jsx)(t.XI.Cell,{children:P.title}),(0,e.jsx)(t.XI.Cell,{children:P.timestamp}),(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.$n,{icon:"eye",onClick:function(){return f("viewmail",{viewmail:P.uid})},children:"View"})})]},P.uid)})]})||(0,e.jsx)(t.az,{color:"average",children:"No messages found in selected account."})})]})}},94151:function(O,u,n){"use strict";n.r(u),n.d(u,{NtosEmailClient:function(){return x},NtosEmailClientViewMessage:function(){return l}});var e=n(20462),o=n(4089),t=n(7081),r=n(88569),s=n(15581),x=function(v){var E=(0,t.Oc)().data,j=E.PC_device_theme,C=E.error,P=E.downloading,M=E.current_account,_=(0,e.jsx)(m,{});return C?_=(0,e.jsx)(f,{error:C}):P?_=(0,e.jsx)(g,{}):M&&(_=(0,e.jsx)(d,{})),(0,e.jsx)(s.Zm,{resizable:!0,theme:j,children:(0,e.jsx)(s.Zm.Content,{scrollable:!0,children:_})})},g=function(v){var E=(0,t.Oc)().data,j=E.down_filename,C=E.down_progress,P=E.down_size,M=E.down_speed;return(0,e.jsx)(r.wn,{title:"Downloading...",children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsxs)(r.Ki.Item,{label:"File",children:[j," (",P," GQ)"]}),(0,e.jsxs)(r.Ki.Item,{label:"Speed",children:[(0,e.jsx)(r.zv,{value:M})," GQ/s"]}),(0,e.jsx)(r.Ki.Item,{label:"Progress",children:(0,e.jsx)(r.z2,{color:"good",value:C,maxValue:P,children:C+"/"+P+" ("+(0,o.Mg)(C/P*100,1)+"%)"})})]})})},d=function(v){var E=(0,t.Oc)(),j=E.act,C=E.data,P=C.current_account,M=C.addressbook,_=C.new_message,S=C.cur_title,T=C.accounts,b=(0,e.jsx)(a,{});return M?b=(0,e.jsx)(i,{accounts:T}):_?b=(0,e.jsx)(c,{}):S&&(b=(0,e.jsx)(l,{})),(0,e.jsx)(r.wn,{title:"Logged in as: "+P,buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.$n,{icon:"plus",tooltip:"New Message",tooltipPosition:"left",onClick:function(){return j("new_message")}}),(0,e.jsx)(r.$n,{icon:"cogs",tooltip:"Change Password",tooltipPosition:"left",onClick:function(){return j("changepassword")}}),(0,e.jsx)(r.$n,{icon:"sign-out-alt",tooltip:"Log Out",tooltipPosition:"left",onClick:function(){return j("logout")}})]}),children:b})},a=function(v){var E=(0,t.Oc)(),j=E.act,C=E.data,P=C.folder,M=C.messagecount,_=C.messages;return(0,e.jsxs)(r.wn,{noTopPadding:!0,children:[(0,e.jsxs)(r.tU,{children:[(0,e.jsx)(r.tU.Tab,{selected:P==="Inbox",onClick:function(){return j("set_folder",{set_folder:"Inbox"})},children:"Inbox"}),(0,e.jsx)(r.tU.Tab,{selected:P==="Spam",onClick:function(){return j("set_folder",{set_folder:"Spam"})},children:"Spam"}),(0,e.jsx)(r.tU.Tab,{selected:P==="Deleted",onClick:function(){return j("set_folder",{set_folder:"Deleted"})},children:"Deleted"})]}),M&&(0,e.jsx)(r.wn,{children:(0,e.jsxs)(r.XI,{children:[(0,e.jsxs)(r.XI.Row,{header:!0,children:[(0,e.jsx)(r.XI.Cell,{children:"Source"}),(0,e.jsx)(r.XI.Cell,{children:"Title"}),(0,e.jsx)(r.XI.Cell,{children:"Received At"}),(0,e.jsx)(r.XI.Cell,{children:"Actions"})]}),_.map(function(S){return(0,e.jsxs)(r.XI.Row,{children:[(0,e.jsx)(r.XI.Cell,{children:S.source}),(0,e.jsx)(r.XI.Cell,{children:S.title}),(0,e.jsx)(r.XI.Cell,{children:S.timestamp}),(0,e.jsxs)(r.XI.Cell,{children:[(0,e.jsx)(r.$n,{icon:"eye",onClick:function(){return j("view",{view:S.uid})},tooltip:"View"}),(0,e.jsx)(r.$n,{icon:"share",onClick:function(){return j("reply",{reply:S.uid})},tooltip:"Reply"}),(0,e.jsx)(r.$n,{color:"bad",icon:"trash",onClick:function(){return j("delete",{delete:S.uid})},tooltip:"Delete"})]})]},S.timestamp+S.title)})]})})||(0,e.jsxs)(r.az,{color:"bad",children:["No emails found in ",P,"."]})]})},l=function(v){var E=(0,t.Oc)(),j=E.act,C=E.data,P=v.administrator,M=C.cur_title,_=C.cur_source,S=C.cur_timestamp,T=C.cur_body,b=C.cur_hasattachment,L=C.cur_attachment_filename,W=C.cur_attachment_size,k=C.cur_uid;return(0,e.jsx)(r.wn,{title:M,buttons:P?(0,e.jsx)(r.$n,{icon:"times",onClick:function(){return j("back")}}):(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.$n,{icon:"share",tooltip:"Reply",tooltipPosition:"left",onClick:function(){return j("reply",{reply:k})}}),(0,e.jsx)(r.$n,{color:"bad",icon:"trash",tooltip:"Delete",tooltipPosition:"left",onClick:function(){return j("delete",{delete:k})}}),(0,e.jsx)(r.$n,{icon:"save",tooltip:"Save To Disk",tooltipPosition:"left",onClick:function(){return j("save",{save:k})}}),b&&(0,e.jsx)(r.$n,{icon:"paperclip",tooltip:"Save Attachment",tooltipPosition:"left",onClick:function(){return j("downloadattachment")}})||null,(0,e.jsx)(r.$n,{icon:"times",tooltip:"Close",tooltipPosition:"left",onClick:function(){return j("cancel",{cancel:k})}})]}),children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"From",children:_}),(0,e.jsx)(r.Ki.Item,{label:"At",children:S}),b&&!P&&(0,e.jsxs)(r.Ki.Item,{label:"Attachment",color:"average",children:[L," (",W,"GQ)"]})||"",(0,e.jsx)(r.Ki.Item,{label:"Message",verticalAlign:"top",children:(0,e.jsx)(r.wn,{children:(0,e.jsx)("div",{dangerouslySetInnerHTML:{__html:T}})})})]})})},i=function(v){var E=(0,t.Oc)().act,j=v.accounts;return(0,e.jsx)(r.wn,{title:"Address Book",buttons:(0,e.jsx)(r.$n,{color:"bad",icon:"times",onClick:function(){return E("set_recipient",{set_recipient:null})}}),children:j.map(function(C){return(0,e.jsx)(r.$n,{fluid:!0,onClick:function(){return E("set_recipient",{set_recipient:C.login})},children:C.login},C.login)})})},c=function(v){var E=(0,t.Oc)(),j=E.act,C=E.data,P=C.msg_title,M=P===void 0?"":P,_=C.msg_recipient,S=_===void 0?"":_,T=C.msg_body,b=C.msg_hasattachment,L=C.msg_attachment_filename,W=C.msg_attachment_size;return(0,e.jsx)(r.wn,{title:"New Message",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.$n,{icon:"share",onClick:function(){return j("send")},children:"Send Message"}),(0,e.jsx)(r.$n,{color:"bad",icon:"times",onClick:function(){return j("cancel")}})]}),children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Title",children:(0,e.jsx)(r.pd,{fluid:!0,value:M,onInput:function(k,$){return j("edit_title",{val:$})}})}),(0,e.jsx)(r.Ki.Item,{label:"Recipient",verticalAlign:"top",children:(0,e.jsxs)(r.so,{children:[(0,e.jsx)(r.so.Item,{grow:1,children:(0,e.jsx)(r.pd,{fluid:!0,value:S,onInput:function(k,$){return j("edit_recipient",{val:$})}})}),(0,e.jsx)(r.so.Item,{children:(0,e.jsx)(r.$n,{icon:"address-book",onClick:function(){return j("addressbook")},tooltip:"Find Receipients",tooltipPosition:"left"})})]})}),(0,e.jsx)(r.Ki.Item,{label:"Attachments",buttons:b&&(0,e.jsx)(r.$n,{color:"bad",icon:"times",onClick:function(){return j("remove_attachment")},children:"Remove Attachment"})||(0,e.jsx)(r.$n,{icon:"plus",onClick:function(){return j("addattachment")},children:"Add Attachment"}),children:b&&(0,e.jsxs)(r.az,{inline:!0,children:[L," (",W,"GQ)"]})||null}),(0,e.jsx)(r.Ki.Item,{label:"Message",verticalAlign:"top",children:(0,e.jsxs)(r.so,{children:[(0,e.jsx)(r.so.Item,{grow:1,children:(0,e.jsx)(r.wn,{width:"99%",inline:!0,children:(0,e.jsx)("div",{dangerouslySetInnerHTML:{__html:T}})})}),(0,e.jsx)(r.so.Item,{children:(0,e.jsx)(r.$n,{verticalAlign:"top",onClick:function(){return j("edit_body")},icon:"pen",tooltip:"Edit Message",tooltipPosition:"left"})})]})})]})})},f=function(v){var E=(0,t.Oc)().act,j=v.error;return(0,e.jsx)(r.wn,{title:"Notification",buttons:(0,e.jsx)(r.$n,{icon:"arrow-left",onClick:function(){return E("reset")},children:"Return"}),children:(0,e.jsx)(r.az,{color:"bad",children:j})})},m=function(v){var E=(0,t.Oc)(),j=E.act,C=E.data,P=C.stored_login,M=P===void 0?"":P,_=C.stored_password,S=_===void 0?"":_;return(0,e.jsxs)(r.wn,{title:"Please Log In",children:[(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Email address",children:(0,e.jsx)(r.pd,{fluid:!0,value:M,onInput:function(T,b){return j("edit_login",{val:b})}})}),(0,e.jsx)(r.Ki.Item,{label:"Password",children:(0,e.jsx)(r.pd,{fluid:!0,value:S,onInput:function(T,b){return j("edit_password",{val:b})}})})]}),(0,e.jsx)(r.$n,{icon:"sign-in-alt",onClick:function(){return j("login")},children:"Log In"})]})}},12813:function(O,u,n){"use strict";n.r(u),n.d(u,{NtosFileManager:function(){return s}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),s=function(g){var d=(0,o.Oc)(),a=d.act,l=d.data,i=l.PC_device_theme,c=l.usbconnected,f=l.filename,m=l.filedata,v=l.error,E=l.files,j=E===void 0?[]:E,C=l.usbfiles,P=C===void 0?[]:C;return(0,e.jsx)(r.Zm,{resizable:!0,theme:i,children:(0,e.jsxs)(r.Zm.Content,{scrollable:!0,children:[f&&(0,e.jsx)(t.wn,{title:"Viewing File "+f,buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n,{icon:"pen",onClick:function(){return a("PRG_edit")},children:"Edit"}),(0,e.jsx)(t.$n,{icon:"print",onClick:function(){return a("PRG_printfile")},children:"Print"}),(0,e.jsx)(t.$n,{icon:"times",onClick:function(){return a("PRG_closefile")},children:"Close"})]}),children:m&&(0,e.jsx)("div",{dangerouslySetInnerHTML:{__html:m}})})||(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.wn,{children:(0,e.jsx)(x,{files:j,usbconnected:c,onUpload:function(M){return a("PRG_copytousb",{uid:M})},onDelete:function(M){return a("PRG_deletefile",{uid:M})},onOpen:function(M){return a("PRG_openfile",{uid:M})},onRename:function(M,_){return a("PRG_rename",{uid:M,new_name:_})},onDuplicate:function(M){return a("PRG_clone",{uid:M})}})}),c&&(0,e.jsx)(t.wn,{title:"Data Disk",children:(0,e.jsx)(x,{usbmode:!0,files:P,usbconnected:c,onUpload:function(M){return a("PRG_copyfromusb",{uid:M})},onDelete:function(M){return a("PRG_deletefile",{uid:M})},onOpen:function(M){return a("PRG_openfile",{uid:M})},onRename:function(M,_){return a("PRG_rename",{uid:M,new_name:_})},onDuplicate:function(M){return a("PRG_clone",{uid:M})}})})||null,(0,e.jsx)(t.wn,{children:(0,e.jsx)(t.$n,{icon:"plus",onClick:function(){return a("PRG_newtextfile")},children:"New Text File"})})]}),v&&(0,e.jsxs)(t.so,{wrap:"wrap",position:"fixed",bottom:"5px",children:[(0,e.jsx)(t.so.Item,{children:(0,e.jsx)(t.wn,{children:(0,e.jsx)(t.$n,{bottom:"0",left:"0",icon:"ban",onClick:function(){return a("PRG_clearerror")}})})}),(0,e.jsx)(t.wn,{children:(0,e.jsx)(t.so.Item,{grow:!0,children:v})})]})]})})},x=function(g){var d=g.files,a=d===void 0?[]:d,l=g.usbconnected,i=g.usbmode,c=g.onUpload,f=g.onDelete,m=g.onRename,v=g.onOpen,E=g.onDuplicate;return(0,e.jsxs)(t.XI,{children:[(0,e.jsxs)(t.XI.Row,{header:!0,children:[(0,e.jsx)(t.XI.Cell,{children:"File"}),(0,e.jsx)(t.XI.Cell,{collapsing:!0,children:"Type"}),(0,e.jsx)(t.XI.Cell,{collapsing:!0,children:"Size"})]}),a.map(function(j){return(0,e.jsxs)(t.XI.Row,{className:"candystripe",children:[(0,e.jsx)(t.XI.Cell,{children:j.undeletable?j.name:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n.Input,{width:"80%",currentValue:j.name,tooltip:"Rename",onCommit:function(C,P){return m(j.uid,P)},children:j.name}),(0,e.jsx)(t.$n,{onClick:function(){return v(j.uid)},children:"Open"})]})}),(0,e.jsx)(t.XI.Cell,{children:j.type}),(0,e.jsx)(t.XI.Cell,{children:j.size}),(0,e.jsx)(t.XI.Cell,{collapsing:!0,children:!j.undeletable&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n.Confirm,{icon:"trash",confirmIcon:"times",confirmContent:"",tooltip:"Delete",onClick:function(){return f(j.uid)}}),!!l&&(i?(0,e.jsx)(t.$n,{icon:"download",tooltip:"Download",onClick:function(){return c(j.uid)}}):(0,e.jsx)(t.$n,{icon:"upload",tooltip:"Upload",onClick:function(){return c(j.uid)}}))]})})]},j.name)})]})}},39925:function(O,u,n){"use strict";n.r(u),n.d(u,{NtosIdentificationComputer:function(){return r}});var e=n(20462),o=n(15581),t=n(39841),r=function(){return(0,e.jsx)(o.Zm,{width:600,height:700,children:(0,e.jsx)(o.Zm.Content,{scrollable:!0,children:(0,e.jsx)(t.IdentificationComputerContent,{ntos:!0})})})}},45319:function(O,u,n){"use strict";n.r(u),n.d(u,{NtosMain:function(){return x}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),s={compconfig:"cog",ntndownloader:"download",filemanager:"folder",smmonitor:"radiation",alarmmonitor:"bell",cardmod:"id-card",arcade:"gamepad",ntnrc_client:"comment-alt",nttransfer:"exchange-alt",powermonitor:"plug",job_manage:"address-book",crewmani:"clipboard-list",robocontrol:"robot",atmosscan:"thermometer-half",shipping:"tags"},x=function(g){var d=(0,o.Oc)(),a=d.act,l=d.data,i=l.device_theme,c=l.programs,f=c===void 0?[]:c,m=l.has_light,v=l.light_on,E=l.comp_light_color,j=l.removable_media,C=j===void 0?[]:j,P=l.login,M=P===void 0?{}:P;return(0,e.jsx)(r.Zm,{title:i==="syndicate"&&"Syndix Main Menu"||"NtOS Main Menu",theme:i,width:400,height:500,children:(0,e.jsxs)(r.Zm.Content,{scrollable:!0,children:[!!m&&(0,e.jsxs)(t.wn,{children:[(0,e.jsxs)(t.$n,{width:"144px",icon:"lightbulb",selected:v,onClick:function(){return a("PC_toggle_light")},children:["Flashlight: ",v?"ON":"OFF"]}),(0,e.jsxs)(t.$n,{ml:1,onClick:function(){return a("PC_light_color")},children:["Color:",(0,e.jsx)(t.BK,{ml:1,color:E})]})]}),(0,e.jsx)(t.wn,{title:"User Login",buttons:(0,e.jsx)(t.$n,{icon:"eject",disabled:!M.IDName,onClick:function(){return a("PC_Eject_Disk",{name:"ID"})},children:"Eject ID"}),children:(0,e.jsxs)(t.XI,{children:[(0,e.jsxs)(t.XI.Row,{children:["ID Name: ",M.IDName]}),(0,e.jsxs)(t.XI.Row,{children:["Assignment: ",M.IDJob]})]})}),!!C.length&&(0,e.jsx)(t.wn,{title:"Media Eject",children:(0,e.jsx)(t.XI,{children:C.map(function(_){return(0,e.jsx)(t.XI.Row,{children:(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.$n,{fluid:!0,color:"transparent",icon:"eject",onClick:function(){return a("PC_Eject_Disk",{name:_})},children:_})})},_)})})}),(0,e.jsx)(t.wn,{title:"Programs",children:(0,e.jsx)(t.XI,{children:f.map(function(_){return(0,e.jsxs)(t.XI.Row,{children:[(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.$n,{fluid:!0,color:"transparent",icon:s[_.name]||"window-maximize-o",onClick:function(){return a("PC_runprogram",{name:_.name})},children:_.desc})}),(0,e.jsx)(t.XI.Cell,{collapsing:!0,width:"18px",children:!!_.running&&(0,e.jsx)(t.$n,{color:"transparent",icon:"times",tooltip:"Close program",tooltipPosition:"left",onClick:function(){return a("PC_killprogram",{name:_.name})}})}),(0,e.jsx)(t.XI.Cell,{collapsing:!0,width:"18px",children:(0,e.jsx)(t.$n,{color:"transparent",tooltip:"Set Autorun",tooltipPosition:"left",selected:_.autorun,onClick:function(){return a("PC_setautorun",{name:_.name})},children:"AR"})})]},_.name)})})})]})})}},9785:function(O,u,n){"use strict";n.r(u),n.d(u,{NtosNetChat:function(){return s}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),s=function(x){var g=(0,o.Oc)(),d=g.act,a=g.data,l=a.can_admin,i=a.adminmode,c=a.authed,f=a.username,m=a.active_channel,v=a.is_operator,E=a.all_channels,j=E===void 0?[]:E,C=a.clients,P=C===void 0?[]:C,M=a.messages,_=M===void 0?[]:M,S=m!==null,T=c||i;return(0,e.jsx)(r.Zm,{width:900,height:675,children:(0,e.jsx)(r.Zm.Content,{children:(0,e.jsx)(t.wn,{height:"600px",children:(0,e.jsx)(t.XI,{height:"580px",children:(0,e.jsxs)(t.XI.Row,{children:[(0,e.jsxs)(t.XI.Cell,{verticalAlign:"top",style:{width:"200px"},children:[(0,e.jsxs)(t.az,{height:"560px",overflowY:"scroll",children:[(0,e.jsx)(t.$n.Input,{fluid:!0,onCommit:function(b,L){return d("PRG_newchannel",{new_channel_name:L})},children:"New Channel..."}),j.map(function(b){return(0,e.jsx)(t.$n,{fluid:!0,selected:b.id===m,color:"transparent",onClick:function(){return d("PRG_joinchannel",{id:b.id})},children:b.chan},b.chan)})]}),(0,e.jsx)(t.$n.Input,{fluid:!0,mt:1,currentValue:f,onCommit:function(b,L){return d("PRG_changename",{new_name:L})},children:f+"..."}),!!l&&(0,e.jsx)(t.$n,{fluid:!0,bold:!0,color:i?"bad":"good",onClick:function(){return d("PRG_toggleadmin")},children:"ADMIN MODE: "+(i?"ON":"OFF")})]}),(0,e.jsxs)(t.XI.Cell,{children:[(0,e.jsx)(t.az,{height:"560px",overflowY:"scroll",children:S&&(T?_.map(function(b){return(0,e.jsx)(t.az,{children:b.msg},b.msg)}):(0,e.jsxs)(t.az,{textAlign:"center",children:[(0,e.jsx)(t.In,{name:"exclamation-triangle",mt:4,fontSize:"40px"}),(0,e.jsx)(t.az,{mt:1,bold:!0,fontSize:"18px",children:"THIS CHANNEL IS PASSWORD PROTECTED"}),(0,e.jsx)(t.az,{mt:1,children:"INPUT PASSWORD TO ACCESS"})]}))}),(0,e.jsx)(t.pd,{fluid:!0,selfClear:!0,mt:1,onEnter:function(b,L){return d("PRG_speak",{message:L})}})]}),(0,e.jsxs)(t.XI.Cell,{verticalAlign:"top",style:{width:"150px"},children:[(0,e.jsx)(t.az,{height:"465px",overflowY:"scroll",children:P.map(function(b){return(0,e.jsx)(t.az,{children:b.name},b.name)})}),S&&T&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n.Input,{fluid:!0,defaultValue:"new_log",onCommit:function(b,L){return d("PRG_savelog",{log_name:L})},children:"Save log..."}),(0,e.jsx)(t.$n.Confirm,{fluid:!0,onClick:function(){return d("PRG_leavechannel")},children:"Leave Channel"})]}),!!v&&c&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n.Confirm,{fluid:!0,onClick:function(){return d("PRG_deletechannel")},children:"Delete Channel"}),(0,e.jsx)(t.$n.Input,{fluid:!0,onCommit:function(b,L){return d("PRG_renamechannel",{new_name:L})},children:"Rename Channel..."}),(0,e.jsx)(t.$n.Input,{fluid:!0,onCommit:function(b,L){return d("PRG_setpassword",{new_password:L})},children:"Set Password..."})]})]})]})})})})})}},82193:function(O,u,n){"use strict";n.r(u),n.d(u,{NtosNetDos:function(){return s},NtosNetDosContent:function(){return x}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),s=function(){return(0,e.jsx)(r.Zm,{width:400,height:250,theme:"syndicate",children:(0,e.jsx)(r.Zm.Content,{children:(0,e.jsx)(x,{})})})},x=function(g){var d=(0,o.Oc)(),a=d.act,l=d.data,i=l.relays,c=i===void 0?[]:i,f=l.focus,m=l.target,v=l.speed,E=l.overload,j=l.capacity,C=l.error;if(C)return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.IC,{children:C}),(0,e.jsx)(t.$n,{fluid:!0,textAlign:"center",onClick:function(){return a("PRG_reset")},children:"Reset"})]});var P=function(_){for(var S="",T=E/j;S.length<_;)Math.random()>T?S+="0":S+="1";return S},M=45;return m?(0,e.jsxs)(t.wn,{fontFamily:"monospace",textAlign:"center",children:[(0,e.jsxs)(t.az,{children:["CURRENT SPEED: ",v," GQ/s"]}),(0,e.jsx)(t.az,{children:P(M)}),(0,e.jsx)(t.az,{children:P(M)}),(0,e.jsx)(t.az,{children:P(M)}),(0,e.jsx)(t.az,{children:P(M)}),(0,e.jsx)(t.az,{children:P(M)})]}):(0,e.jsxs)(t.wn,{children:[(0,e.jsx)(t.Ki,{children:(0,e.jsx)(t.Ki.Item,{label:"Target",children:c.map(function(_){return(0,e.jsx)(t.$n,{selected:f===_.id,onClick:function(){return a("PRG_target_relay",{targid:_.id})},children:_.id},_.id)})})}),(0,e.jsx)(t.$n,{fluid:!0,bold:!0,color:"bad",textAlign:"center",disabled:!f,mt:1,onClick:function(){return a("PRG_execute")},children:"EXECUTE"})]})}},43726:function(O,u,n){"use strict";n.r(u),n.d(u,{NtosNetDownloader:function(){return x}});var e=n(20462),o=n(4089),t=n(7081),r=n(88569),s=n(15581),x=function(d){var a=(0,t.Oc)(),l=a.act,i=a.data,c=i.PC_device_theme,f=i.disk_size,m=i.disk_used,v=i.downloadable_programs,E=v===void 0?[]:v,j=i.error,C=i.hacked_programs,P=C===void 0?[]:C,M=i.hackedavailable;return(0,e.jsx)(s.Zm,{theme:c,width:480,height:735,children:(0,e.jsxs)(s.Zm.Content,{scrollable:!0,children:[!!j&&(0,e.jsxs)(r.IC,{children:[(0,e.jsx)(r.az,{mb:1,children:j}),(0,e.jsx)(r.$n,{onClick:function(){return l("PRG_reseterror")},children:"Reset"})]}),(0,e.jsx)(r.wn,{children:(0,e.jsx)(r.Ki,{children:(0,e.jsx)(r.Ki.Item,{label:"Disk usage",children:(0,e.jsx)(r.z2,{value:m,minValue:0,maxValue:f,children:m+" GQ / "+f+" GQ"})})})}),(0,e.jsx)(r.wn,{children:E.map(function(_){return(0,e.jsx)(g,{program:_},_.filename)})}),!!M&&(0,e.jsxs)(r.wn,{title:"UNKNOWN Software Repository",children:[(0,e.jsx)(r.IC,{mb:1,children:"Please note that Nanotrasen does not recommend download of software from non-official servers."}),P.map(function(_){return(0,e.jsx)(g,{program:_},_.filename)})]})]})})},g=function(d){var a=d.program,l=(0,t.Oc)(),i=l.act,c=l.data,f=c.disk_size,m=c.disk_used,v=c.downloadcompletion,E=c.downloadname,j=c.downloadsize,C=c.downloadspeed,P=c.downloads_queue,M=f-m;return(0,e.jsxs)(r.az,{mb:3,children:[(0,e.jsxs)(r.so,{align:"baseline",children:[(0,e.jsx)(r.so.Item,{bold:!0,grow:1,children:a.filedesc}),(0,e.jsxs)(r.so.Item,{color:"label",nowrap:!0,children:[a.size," GQ"]}),(0,e.jsx)(r.so.Item,{ml:2,width:"110px",textAlign:"center",children:a.filename===E&&(0,e.jsxs)(r.z2,{color:"green",minValue:0,maxValue:j,value:v,children:[(0,o.Mg)(v/j*100,1),"%\xA0","("+C+"GQ/s)"]})||P.indexOf(a.filename)!==-1&&(0,e.jsx)(r.$n,{icon:"ban",color:"bad",onClick:function(){return i("PRG_removequeued",{filename:a.filename})},children:"Queued..."})||(0,e.jsx)(r.$n,{fluid:!0,icon:"download",disabled:a.size>M,onClick:function(){return i("PRG_downloadfile",{filename:a.filename})},children:"Download"})})]}),a.compatibility!=="Compatible"&&(0,e.jsxs)(r.az,{mt:1,italic:!0,fontSize:"12px",position:"relative",children:[(0,e.jsx)(r.In,{mx:1,color:"red",name:"times"}),"Incompatible!"]}),a.size>M&&(0,e.jsxs)(r.az,{mt:1,italic:!0,fontSize:"12px",position:"relative",children:[(0,e.jsx)(r.In,{mx:1,color:"red",name:"times"}),"Not enough disk space!"]}),(0,e.jsx)(r.az,{mt:1,italic:!0,color:"label",fontSize:"12px",children:a.fileinfo})]})}},30817:function(O,u,n){"use strict";n.r(u),n.d(u,{NtosNetMonitor:function(){return s}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),s=function(x){var g=(0,o.Oc)(),d=g.act,a=g.data,l=a.ntnetrelays,i=a.ntnetstatus,c=a.config_softwaredownload,f=a.config_peertopeer,m=a.config_communication,v=a.config_systemcontrol,E=a.idsalarm,j=a.idsstatus,C=a.ntnetmaxlogs,P=a.maxlogs,M=a.minlogs,_=a.banned_nids,S=a.ntnetlogs,T=S===void 0?[]:S;return(0,e.jsx)(r.Zm,{children:(0,e.jsxs)(r.Zm.Content,{scrollable:!0,children:[(0,e.jsx)(t.IC,{children:"WARNING: Disabling wireless transmitters when using a wireless device may prevent you from reenabling them!"}),(0,e.jsx)(t.wn,{title:"Wireless Connectivity",buttons:(0,e.jsx)(t.$n.Confirm,{icon:i?"power-off":"times",selected:i,onClick:function(){return d("toggleWireless")},children:i?"ENABLED":"DISABLED"}),children:l?(0,e.jsx)(t.Ki,{children:(0,e.jsx)(t.Ki.Item,{label:"Active NTNet Relays",children:l})}):"No Relays Connected"}),(0,e.jsx)(t.wn,{title:"Firewall Configuration",children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Software Downloads",buttons:(0,e.jsx)(t.$n,{icon:c?"power-off":"times",selected:c,onClick:function(){return d("toggle_function",{id:"1"})},children:c?"ENABLED":"DISABLED"})}),(0,e.jsx)(t.Ki.Item,{label:"Peer to Peer Traffic",buttons:(0,e.jsx)(t.$n,{icon:f?"power-off":"times",selected:f,onClick:function(){return d("toggle_function",{id:"2"})},children:f?"ENABLED":"DISABLED"})}),(0,e.jsx)(t.Ki.Item,{label:"Communication Systems",buttons:(0,e.jsx)(t.$n,{icon:m?"power-off":"times",selected:m,onClick:function(){return d("toggle_function",{id:"3"})},children:m?"ENABLED":"DISABLED"})}),(0,e.jsx)(t.Ki.Item,{label:"Remote System Control",buttons:(0,e.jsx)(t.$n,{icon:v?"power-off":"times",selected:v,onClick:function(){return d("toggle_function",{id:"4"})},children:v?"ENABLED":"DISABLED"})})]})}),(0,e.jsxs)(t.wn,{title:"Security Systems",children:[!!E&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.IC,{children:"NETWORK INCURSION DETECTED"}),(0,e.jsx)(t.az,{italic:!0,children:"Abnormal activity has been detected in the network. Check system logs for more information"})]}),(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Banned NIDs",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n,{icon:"ban",onClick:function(){return d("ban_nid")},children:"Ban NID"}),(0,e.jsx)(t.$n,{icon:"balance-scale",onClick:function(){return d("unban_nid")},children:"Unban NID"})]}),children:_.join(", ")||"None"}),(0,e.jsx)(t.Ki.Item,{label:"IDS Status",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n,{icon:j?"power-off":"times",selected:j,onClick:function(){return d("toggleIDS")},children:j?"ENABLED":"DISABLED"}),(0,e.jsx)(t.$n,{icon:"sync",color:"bad",onClick:function(){return d("resetIDS")},children:"Reset"})]})}),(0,e.jsx)(t.Ki.Item,{label:"Max Log Count",buttons:(0,e.jsx)(t.Q7,{step:1,value:C,minValue:M,maxValue:P,width:"39px",onChange:function(b){return d("updatemaxlogs",{new_number:b})}})})]}),(0,e.jsx)(t.wn,{title:"System Log",buttons:(0,e.jsx)(t.$n.Confirm,{icon:"trash",onClick:function(){return d("purgelogs")},children:"Clear Logs"}),children:T.map(function(b){return(0,e.jsx)(t.az,{className:"candystripe",children:b.entry},b.entry)})})]})]})})}},49106:function(O,u,n){"use strict";n.r(u),n.d(u,{NtosNetTransfer:function(){return s}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),s=function(i){var c=(0,o.Oc)().data,f=c.error,m=c.downloading,v=c.uploading,E=c.upload_filelist,j=(0,e.jsx)(l,{});return f?j=(0,e.jsx)(x,{}):m?j=(0,e.jsx)(g,{}):v?j=(0,e.jsx)(d,{}):E.length&&(j=(0,e.jsx)(a,{})),(0,e.jsx)(r.Zm,{width:575,height:700,children:(0,e.jsx)(r.Zm.Content,{scrollable:!0,children:j})})},x=function(i){var c=(0,o.Oc)(),f=c.act,m=c.data,v=m.error;return(0,e.jsxs)(t.wn,{title:"An error has occured during operation.",buttons:(0,e.jsx)(t.$n,{icon:"undo",onClick:function(){return f("PRG_reset")},children:"Reset"}),children:["Additional Information: ",v]})},g=function(i){var c=(0,o.Oc)(),f=c.act,m=c.data,v=m.download_name,E=m.download_progress,j=m.download_size,C=m.download_netspeed;return(0,e.jsx)(t.wn,{title:"Download in progress",children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Downloaded File",children:v}),(0,e.jsx)(t.Ki.Item,{label:"Progress",children:(0,e.jsxs)(t.z2,{value:E,maxValue:j,children:[E," / ",j," GQ"]})}),(0,e.jsxs)(t.Ki.Item,{label:"Transfer Speed",children:[C," GQ/s"]}),(0,e.jsx)(t.Ki.Item,{label:"Controls",children:(0,e.jsx)(t.$n,{icon:"ban",onClick:function(){return f("PRG_reset")},children:"Cancel Download"})})]})})},d=function(i){var c=(0,o.Oc)(),f=c.act,m=c.data,v=m.upload_clients,E=m.upload_filename,j=m.upload_haspassword;return(0,e.jsx)(t.wn,{title:"Server enabled",children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Clients Connected",children:v}),(0,e.jsx)(t.Ki.Item,{label:"Provided file",children:E}),(0,e.jsx)(t.Ki.Item,{label:"Server Password",children:j?"Enabled":"Disabled"}),(0,e.jsxs)(t.Ki.Item,{label:"Commands",children:[(0,e.jsx)(t.$n,{icon:"lock",onClick:function(){return f("PRG_setpassword")},children:"Set Password"}),(0,e.jsx)(t.$n,{icon:"ban",onClick:function(){return f("PRG_reset")},children:"Cancel Upload"})]})]})})},a=function(i){var c=(0,o.Oc)(),f=c.act,m=c.data,v=m.upload_filelist;return(0,e.jsxs)(t.wn,{title:"File transfer server ready.",buttons:(0,e.jsx)(t.$n,{icon:"undo",onClick:function(){return f("PRG_reset")},children:"Cancel"}),children:[(0,e.jsx)(t.$n,{fluid:!0,icon:"lock",onClick:function(){return f("PRG_setpassword")},children:"Set Password"}),(0,e.jsx)(t.wn,{title:"Pick file to serve.",children:v.map(function(E){return(0,e.jsxs)(t.$n,{fluid:!0,icon:"upload",onClick:function(){return f("PRG_uploadfile",{uid:E.uid})},children:[E.filename," (",E.size,"GQ)"]},E.uid)})})]})},l=function(i){var c=(0,o.Oc)(),f=c.act,m=c.data,v=m.servers;return(0,e.jsx)(t.wn,{title:"Available Files",buttons:(0,e.jsx)(t.$n,{icon:"upload",onClick:function(){return f("PRG_uploadmenu")},children:"Send File"}),children:v.length&&(0,e.jsx)(t.Ki,{children:v.map(function(E){return(0,e.jsxs)(t.Ki.Item,{label:E.uid,children:[!!E.haspassword&&(0,e.jsx)(t.In,{name:"lock",mr:1}),E.filename,"\xA0 (",E.size,"GQ)\xA0",(0,e.jsx)(t.$n,{icon:"download",onClick:function(){return f("PRG_downloadfile",{uid:E.uid})},children:"Download"})]},E.uid)})})||(0,e.jsx)(t.az,{children:"No upload servers found."})})}},50653:function(O,u,n){"use strict";n.r(u),n.d(u,{NtosNewsBrowser:function(){return x}});var e=n(20462),o=n(31200),t=n(7081),r=n(88569),s=n(15581),x=function(l){var i=(0,t.Oc)(),c=i.act,f=i.data,m=f.article,v=f.download,E=f.message,j=(0,e.jsx)(d,{});return m?j=(0,e.jsx)(g,{}):v&&(j=(0,e.jsx)(a,{})),(0,e.jsx)(s.Zm,{width:575,height:750,children:(0,e.jsxs)(s.Zm.Content,{scrollable:!0,children:[!!E&&(0,e.jsxs)(r.IC,{children:[E," ",(0,e.jsx)(r.$n,{icon:"times",onClick:function(){return c("PRG_clearmessage")}})]}),j]})})},g=function(l){var i=(0,t.Oc)(),c=i.act,f=i.data,m=f.article;if(!m)return(0,e.jsx)(r.wn,{children:"Error: Article not found."});var v=m.title,E=m.cover,j=m.content;return(0,e.jsxs)(r.wn,{title:"Viewing: "+v,buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.$n,{icon:"save",onClick:function(){return c("PRG_savearticle")},children:"Save"}),(0,e.jsx)(r.$n,{icon:"times",onClick:function(){return c("PRG_reset")},children:"Close"})]}),children:[!!E&&(0,e.jsx)(r._V,{src:(0,o.l)(E)}),(0,e.jsx)("div",{dangerouslySetInnerHTML:{__html:j}})]})},d=function(l){var i=(0,t.Oc)(),c=i.act,f=i.data,m=f.showing_archived,v=f.all_articles;return(0,e.jsx)(r.wn,{title:"Articles List",buttons:(0,e.jsx)(r.$n.Checkbox,{onClick:function(){return c("PRG_toggle_archived")},checked:m,children:"Show Archived"}),children:(0,e.jsx)(r.Ki,{children:v.length&&v.map(function(E){return(0,e.jsxs)(r.Ki.Item,{label:E.name,buttons:(0,e.jsx)(r.$n,{icon:"download",onClick:function(){return c("PRG_openarticle",{uid:E.uid})}}),children:[E.size," GQ"]},E.uid)})||(0,e.jsx)(r.Ki.Item,{label:"Error",children:"There appear to be no outstanding news articles on NTNet today."})})})},a=function(l){var i=(0,t.Oc)(),c=i.act,f=i.data,m=f.download,v=m.download_progress,E=m.download_maxprogress,j=m.download_rate;return(0,e.jsx)(r.wn,{title:"Downloading...",children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Progress",children:(0,e.jsxs)(r.z2,{color:"good",minValue:0,value:v,maxValue:E,children:[v," / ",E," GQ"]})}),(0,e.jsxs)(r.Ki.Item,{label:"Download Speed",children:[j," GQ/s"]}),(0,e.jsx)(r.Ki.Item,{label:"Controls",children:(0,e.jsx)(r.$n,{icon:"ban",fluid:!0,onClick:function(){return c("PRG_reset")},children:"Abort Download"})})]})})}},95436:function(O,u,n){"use strict";n.r(u),n.d(u,{NtosOvermapNavigation:function(){return r}});var e=n(20462),o=n(15581),t=n(65912),r=function(){return(0,e.jsx)(o.Zm,{width:380,height:530,children:(0,e.jsx)(o.Zm.Content,{scrollable:!0,children:(0,e.jsx)(t.OvermapNavigationContent,{})})})}},75655:function(O,u,n){"use strict";n.r(u),n.d(u,{NtosPowerMonitor:function(){return r}});var e=n(20462),o=n(15581),t=n(91276),r=function(){return(0,e.jsx)(o.Zm,{width:550,height:700,children:(0,e.jsx)(o.Zm.Content,{scrollable:!0,children:(0,e.jsx)(t.PowerMonitorContent,{})})})}},81986:function(O,u,n){"use strict";n.r(u),n.d(u,{NtosRCON:function(){return r}});var e=n(20462),o=n(15581),t=n(72778),r=function(){return(0,e.jsx)(o.Zm,{width:630,height:440,children:(0,e.jsx)(o.Zm.Content,{scrollable:!0,children:(0,e.jsx)(t.RCONContent,{})})})}},35399:function(O,u,n){"use strict";n.r(u),n.d(u,{NtosRevelation:function(){return s}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),s=function(x){var g=(0,o.Oc)(),d=g.act,a=g.data,l=a.armed;return(0,e.jsx)(r.Zm,{width:400,height:250,theme:"syndicate",children:(0,e.jsx)(r.Zm.Content,{children:(0,e.jsxs)(t.wn,{children:[(0,e.jsx)(t.$n.Input,{fluid:!0,onCommit:function(i,c){return d("PRG_obfuscate",{new_name:c})},mb:1,children:"Obfuscate Name..."}),(0,e.jsx)(t.Ki,{children:(0,e.jsx)(t.Ki.Item,{label:"Payload Status",buttons:(0,e.jsx)(t.$n,{color:l?"bad":"average",onClick:function(){return d("PRG_arm")},children:l?"ARMED":"DISARMED"})})}),(0,e.jsx)(t.$n,{fluid:!0,bold:!0,textAlign:"center",color:"bad",disabled:!l,children:"ACTIVATE"})]})})})}},79389:function(O,u,n){"use strict";n.r(u),n.d(u,{NtosShutoffMonitor:function(){return r}});var e=n(20462),o=n(15581),t=n(67889),r=function(){return(0,e.jsx)(o.Zm,{width:627,height:700,children:(0,e.jsx)(o.Zm.Content,{children:(0,e.jsx)(t.ShutoffMonitorContent,{})})})}},98011:function(O,u,n){"use strict";n.r(u),n.d(u,{NtosStationAlertConsole:function(){return r}});var e=n(20462),o=n(15581),t=n(68679),r=function(){return(0,e.jsx)(o.Zm,{width:315,height:500,children:(0,e.jsx)(o.Zm.Content,{scrollable:!0,children:(0,e.jsx)(t.StationAlertConsoleContent,{})})})}},57488:function(O,u,n){"use strict";n.r(u),n.d(u,{NtosSupermatterMonitor:function(){return r}});var e=n(20462),o=n(15581),t=n(50028),r=function(){return(0,e.jsx)(o.Zm,{width:600,height:400,children:(0,e.jsx)(o.Zm.Content,{scrollable:!0,children:(0,e.jsx)(t.SupermatterMonitorContent,{})})})}},10774:function(O,u,n){"use strict";n.r(u),n.d(u,{NtosUAV:function(){return s}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),s=function(x){var g=(0,o.Oc)(),d=g.act,a=g.data,l=a.current_uav,i=a.signal_strength,c=a.in_use,f=a.paired_uavs;return(0,e.jsx)(r.Zm,{width:600,height:500,children:(0,e.jsxs)(r.Zm.Content,{children:[(0,e.jsx)(t.wn,{title:"Selected UAV",children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"UAV",children:l&&l.status||"[Not Connected]"}),(0,e.jsx)(t.Ki.Item,{label:"Signal",children:l&&i||"[Not Connected]"}),(0,e.jsx)(t.Ki.Item,{label:"Power",children:l&&(0,e.jsx)(t.$n,{icon:"power-off",selected:l.power,onClick:function(){return d("power_uav")},children:l.power?"Online":"Offline"})||"[Not Connected]"}),(0,e.jsx)(t.Ki.Item,{label:"Camera",children:l&&(0,e.jsx)(t.$n,{icon:"power-off",selected:c,disabled:!l.power,onClick:function(){return d("view_uav")},children:l.power?"Available":"Unavailable"})||"[Not Connected]"})]})}),(0,e.jsx)(t.wn,{title:"Paired UAVs",children:f.length&&f.map(function(m){return(0,e.jsxs)(t.so,{spacing:1,children:[(0,e.jsx)(t.so.Item,{grow:1,children:(0,e.jsx)(t.$n,{fluid:!0,icon:"quidditch",onClick:function(){return d("switch_uav",{switch_uav:m.uavref})},children:m.name})}),(0,e.jsx)(t.so.Item,{children:(0,e.jsx)(t.$n,{color:"bad",icon:"times",onClick:function(){return d("del_uav",{del_uav:m.uavref})}})})]},m.uavref)})||(0,e.jsx)(t.az,{color:"average",children:"No UAVs Paired."})})]})})}},69062:function(O,u,n){"use strict";n.r(u),n.d(u,{NtosWordProcessor:function(){return s}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),s=function(x){var g=(0,o.Oc)(),d=g.act,a=g.data,l=a.PC_device_theme,i=a.error,c=a.browsing,f=a.files,m=a.filename,v=a.filedata;return(0,e.jsx)(r.Zm,{resizable:!0,theme:l,children:(0,e.jsx)(r.Zm.Content,{scrollable:!0,children:i&&(0,e.jsxs)(t.az,{color:"bad",children:[(0,e.jsx)("h2",{children:"An Error has occured:"}),"Additional Information: ",i,"Please try again. If the problem persists, contact your system administrator for assistance.",(0,e.jsx)(t.$n,{icon:"arrow-left",onClick:function(){return d("PRG_backtomenu")},children:"Back to menu"})]})||c&&(0,e.jsx)(t.wn,{title:"File Browser",buttons:(0,e.jsx)(t.$n,{icon:"arrow-left",onClick:function(){return d("PRG_closebrowser")},children:"Back to editor"}),children:(0,e.jsx)(t.wn,{title:"Available documents (local)",children:(0,e.jsxs)(t.XI,{children:[(0,e.jsxs)(t.XI.Row,{header:!0,children:[(0,e.jsx)(t.XI.Cell,{children:"Name"}),(0,e.jsx)(t.XI.Cell,{children:"Size (GQ)"}),(0,e.jsx)(t.XI.Cell,{collapsing:!0})]}),f.map(function(E,j){return(0,e.jsxs)(t.XI.Row,{children:[(0,e.jsx)(t.XI.Cell,{children:E.name}),(0,e.jsx)(t.XI.Cell,{children:E.size}),(0,e.jsx)(t.XI.Cell,{collapsing:!0,children:(0,e.jsx)(t.$n,{icon:"file-word",onClick:function(){return d("PRG_openfile",{PRG_openfile:E.name})},children:"Open"})})]},j)})]})})})||(0,e.jsxs)(t.wn,{title:"Document: "+m,children:[(0,e.jsxs)(t.az,{children:[(0,e.jsx)(t.$n,{onClick:function(){return d("PRG_newfile")},children:"New"}),(0,e.jsx)(t.$n,{onClick:function(){return d("PRG_loadmenu")},children:"Load"}),(0,e.jsx)(t.$n,{onClick:function(){return d("PRG_savefile")},children:"Save"}),(0,e.jsx)(t.$n,{onClick:function(){return d("PRG_saveasfile")},children:"Save As"})]}),(0,e.jsxs)(t.az,{children:[(0,e.jsx)(t.$n,{onClick:function(){return d("PRG_editfile")},children:"Edit"}),(0,e.jsx)(t.$n,{onClick:function(){return d("PRG_txtrpeview")},children:"Preview"}),(0,e.jsx)(t.$n,{onClick:function(){return d("PRG_taghelp")},children:"Formatting Help"}),(0,e.jsx)(t.$n,{disabled:!v,onClick:function(){return d("PRG_printfile")},children:"Print"})]}),(0,e.jsx)(t.wn,{mt:1,children:(0,e.jsx)("div",{dangerouslySetInnerHTML:{__html:v}})})]})})})}},46836:function(O,u,n){"use strict";n.r(u),n.d(u,{NumberInputModal:function(){return a}});var e=n(20462),o=n(87239),t=n(61358),r=n(7081),s=n(88569),x=n(15581),g=n(5335),d=n(44149),a=function(i){var c=(0,r.Oc)(),f=c.act,m=c.data,v=m.init_value,E=m.large_buttons,j=m.message,C=j===void 0?"":j,P=m.timeout,M=m.title,_=(0,t.useState)(v),S=_[0],T=_[1],b=function(W){W!==S&&T(W)},L=140+(C.length>30?Math.ceil(C.length/3):0)+(C.length&&E?5:0);return(0,e.jsxs)(x.p8,{title:M,width:270,height:L,children:[P&&(0,e.jsx)(d.Loader,{value:P}),(0,e.jsx)(x.p8.Content,{onKeyDown:function(W){W.key===o._.Enter&&f("submit",{entry:S}),(0,o.K)(W.key)&&f("cancel")},children:(0,e.jsx)(s.wn,{fill:!0,children:(0,e.jsxs)(s.BJ,{fill:!0,vertical:!0,children:[(0,e.jsx)(s.BJ.Item,{grow:!0,children:(0,e.jsx)(s.az,{color:"label",children:C})}),(0,e.jsx)(s.BJ.Item,{children:(0,e.jsx)(l,{input:S,onClick:b,onChange:b,onBlur:b})}),(0,e.jsx)(s.BJ.Item,{children:(0,e.jsx)(g.InputButtons,{input:S})})]})})})]})},l=function(i){var c=(0,r.Oc)(),f=c.act,m=c.data,v=m.min_value,E=m.max_value,j=m.init_value,C=m.round_value,P=i.input,M=i.onClick,_=i.onChange,S=i.onBlur;return(0,e.jsxs)(s.BJ,{fill:!0,children:[(0,e.jsx)(s.BJ.Item,{children:(0,e.jsx)(s.$n,{disabled:P===v,icon:"angle-double-left",onClick:function(){return M(v)},tooltip:v?"Min ("+v+")":"Min"})}),(0,e.jsx)(s.BJ.Item,{grow:!0,children:(0,e.jsx)(s.SM,{autoFocus:!0,autoSelect:!0,fluid:!0,allowFloats:!C,minValue:v,maxValue:E,onChange:function(T,b){return _(b)},onBlur:function(T,b){return S(b)},onEnter:function(T,b){return f("submit",{entry:b})},value:P})}),(0,e.jsx)(s.BJ.Item,{children:(0,e.jsx)(s.$n,{disabled:P===E,icon:"angle-double-right",onClick:function(){return M(E)},tooltip:E?"Max ("+E+")":"Max"})}),(0,e.jsx)(s.BJ.Item,{children:(0,e.jsx)(s.$n,{disabled:P===j,icon:"redo",onClick:function(){return M(j)},tooltip:j?"Reset ("+j+")":"Reset"})})]})}},12333:function(O,u,n){"use strict";n.r(u),n.d(u,{OmniFilter:function(){return x}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),s=function(g){return g.input?"Input":g.output?"Output":g.f_type?g.f_type:"Disabled"},x=function(g){var d=(0,o.Oc)(),a=d.act,l=d.data,i=l.power,c=l.config,f=l.ports,m=l.set_flow_rate,v=l.last_flow_rate;return(0,e.jsx)(r.p8,{width:360,height:330,children:(0,e.jsxs)(r.p8.Content,{children:[(0,e.jsx)(t.wn,{title:c?"Configuration":"Status",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n,{icon:"power-off",selected:i,disabled:c,onClick:function(){return a("power")},children:i?"On":"Off"}),(0,e.jsx)(t.$n,{icon:"wrench",selected:c,onClick:function(){return a("configure")}})]}),children:(0,e.jsx)(t.Ki,{children:f?f.map(function(E){return(0,e.jsx)(t.Ki.Item,{label:E.dir+" Port",children:c?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n,{selected:E.input,icon:"compress-arrows-alt",onClick:function(){return a("switch_mode",{mode:"in",dir:E.dir})},children:"IN"}),(0,e.jsx)(t.$n,{selected:E.output,icon:"expand-arrows-alt",onClick:function(){return a("switch_mode",{mode:"out",dir:E.dir})},children:"OUT"}),(0,e.jsx)(t.$n,{icon:"wrench",disabled:E.input||E.output,onClick:function(){return a("switch_filter",{mode:E.f_type,dir:E.dir})},children:E.f_type||"None"})]}):s(E)},E.dir)}):(0,e.jsx)(t.az,{color:"bad",children:"No Ports Detected"})})}),(0,e.jsx)(t.wn,{title:"Flow Rate",children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsxs)(t.Ki.Item,{label:"Current Flow Rate",children:[v," L/s"]}),(0,e.jsx)(t.Ki.Item,{label:"Flow Rate Limit",children:c?(0,e.jsx)(t.$n,{icon:"wrench",onClick:function(){return a("set_flow_rate")},children:m+" L/s"}):m+" L/s"})]})})]})})}},60780:function(O,u,n){"use strict";n.r(u),n.d(u,{OmniMixer:function(){return x}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),s=function(d){return d.input?"Input":d.output?"Output":d.f_type?d.f_type:"Disabled"},x=function(d){var a=(0,o.Oc)(),l=a.act,i=a.data,c=i.power,f=i.config,m=i.ports,v=i.set_flow_rate,E=i.last_flow_rate;return(0,e.jsx)(r.p8,{width:390,height:330,children:(0,e.jsxs)(r.p8.Content,{children:[(0,e.jsx)(t.wn,{title:f?"Configuration":"Status",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n,{icon:"power-off",selected:c,disabled:f,onClick:function(){return l("power")},children:c?"On":"Off"}),(0,e.jsx)(t.$n,{icon:"wrench",selected:f,onClick:function(){return l("configure")}})]}),children:(0,e.jsxs)(t.XI,{children:[(0,e.jsxs)(t.XI.Row,{header:!0,children:[(0,e.jsx)(t.XI.Cell,{textAlign:"center",children:"Port"}),f?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.XI.Cell,{textAlign:"center",children:"Input"}),(0,e.jsx)(t.XI.Cell,{textAlign:"center",children:"Output"})]}):(0,e.jsx)(t.XI.Cell,{textAlign:"center",children:"Mode"}),(0,e.jsx)(t.XI.Cell,{textAlign:"center",children:"Concentration"}),f?(0,e.jsx)(t.XI.Cell,{textAlign:"center",children:"Lock"}):null]}),m?m.map(function(j){return(0,e.jsx)(g,{port:j,config:f},j.dir)}):(0,e.jsx)(t.az,{color:"bad",children:"No Ports Detected"})]})}),(0,e.jsx)(t.wn,{title:"Flow Rate",children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsxs)(t.Ki.Item,{label:"Current Flow Rate",children:[E," L/s"]}),(0,e.jsx)(t.Ki.Item,{label:"Flow Rate Limit",children:f?(0,e.jsx)(t.$n,{icon:"wrench",onClick:function(){return l("set_flow_rate")},children:v+" L/s"}):v+" L/s"})]})})]})})},g=function(d){var a=(0,o.Oc)().act,l=d.port,i=d.config;return(0,e.jsxs)(t.XI.Row,{children:[(0,e.jsx)(t.XI.Cell,{textAlign:"center",children:l.dir+" Port"}),(0,e.jsx)(t.XI.Cell,{textAlign:"center",children:i?(0,e.jsx)(t.$n,{selected:l.input,disabled:l.output,icon:"compress-arrows-alt",onClick:function(){return a("switch_mode",{mode:l.input?"none":"in",dir:l.dir})},children:"IN"}):s(l)}),(0,e.jsx)(t.XI.Cell,{textAlign:"center",children:i?(0,e.jsx)(t.$n,{selected:l.output,icon:"expand-arrows-alt",onClick:function(){return a("switch_mode",{mode:"out",dir:l.dir})},children:"OUT"}):l.concentration*100+"%"}),i?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.XI.Cell,{textAlign:"center",width:"20%",children:(0,e.jsx)(t.$n,{width:"100%",icon:"wrench",disabled:!l.input,onClick:function(){return a("switch_con",{dir:l.dir})},children:l.input?l.concentration*100+" %":"-"})}),(0,e.jsx)(t.XI.Cell,{textAlign:"center",children:(0,e.jsx)(t.$n,{icon:l.con_lock?"lock":"lock-open",disabled:!l.input,selected:l.con_lock,onClick:function(){return a("switch_conlock",{dir:l.dir})},children:l.f_type||"None"})})]}):null]})}},43213:function(O,u,n){"use strict";n.r(u),n.d(u,{OperatingComputerOptions:function(){return r}});var e=n(20462),o=n(7081),t=n(88569),r=function(s){var x=(0,o.Oc)(),g=x.act,d=x.data,a=d.verbose,l=d.health,i=d.healthAlarm,c=d.oxy,f=d.oxyAlarm,m=d.crit;return(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Loudspeaker",children:(0,e.jsx)(t.$n,{selected:a,icon:a?"toggle-on":"toggle-off",onClick:function(){return g(a?"verboseOff":"verboseOn")},children:a?"On":"Off"})}),(0,e.jsx)(t.Ki.Item,{label:"Health Announcer",children:(0,e.jsx)(t.$n,{selected:l,icon:l?"toggle-on":"toggle-off",onClick:function(){return g(l?"healthOff":"healthOn")},children:l?"On":"Off"})}),(0,e.jsx)(t.Ki.Item,{label:"Health Announcer Threshold",children:(0,e.jsx)(t.N6,{bipolar:!0,minValue:-100,maxValue:100,value:i,stepPixelSize:5,ml:"0",format:function(v){return v+"%"},onChange:function(v,E){return g("health_adj",{new:E})}})}),(0,e.jsx)(t.Ki.Item,{label:"Oxygen Alarm",children:(0,e.jsx)(t.$n,{selected:c,icon:c?"toggle-on":"toggle-off",onClick:function(){return g(c?"oxyOff":"oxyOn")},children:c?"On":"Off"})}),(0,e.jsx)(t.Ki.Item,{label:"Oxygen Alarm Threshold",children:(0,e.jsx)(t.N6,{bipolar:!0,minValue:-100,maxValue:100,value:f,stepPixelSize:5,ml:"0",onChange:function(v,E){return g("oxy_adj",{new:E})}})}),(0,e.jsx)(t.Ki.Item,{label:"Critical Alert",children:(0,e.jsx)(t.$n,{selected:m,icon:m?"toggle-on":"toggle-off",onClick:function(){return g(m?"critOff":"critOn")},children:m?"On":"Off"})})]})}},88424:function(O,u,n){"use strict";n.r(u),n.d(u,{OperatingComputerPatient:function(){return s}});var e=n(20462),o=n(4089),t=n(88569),r=n(6050),s=function(x){var g=x.occupant;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.wn,{title:"Patient",children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Name",children:g.name}),(0,e.jsx)(t.Ki.Item,{label:"Status",color:r.stats[g.stat][0],children:r.stats[g.stat][1]}),(0,e.jsx)(t.Ki.Item,{label:"Health",children:(0,e.jsx)(t.z2,{minValue:0,maxValue:1,value:g.health/g.maxHealth,ranges:{good:[.5,1/0],average:[0,.5],bad:[-1/0,0]}})}),r.damages.map(function(d,a){return(0,e.jsx)(t.Ki.Item,{label:d[0]+" Damage",children:(0,e.jsx)(t.z2,{minValue:0,maxValue:1,value:g[d[1]]/100,ranges:r.damageRange,children:(0,o.Mg)(g[d[1]])},a)},a)}),(0,e.jsx)(t.Ki.Item,{label:"Temperature",children:(0,e.jsxs)(t.z2,{minValue:0,maxValue:1,value:g.bodyTemperature/g.maxTemp,color:r.tempColors[g.temperatureSuitability+3],children:[(0,o.Mg)(g.btCelsius),"\xB0C, ",(0,o.Mg)(g.btFaren),"\xB0F"]})}),!!g.hasBlood&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.Ki.Item,{label:"Blood Level",children:(0,e.jsxs)(t.z2,{minValue:0,maxValue:1,value:g.bloodLevel/g.bloodMax,ranges:{bad:[-1/0,.6],average:[.6,.9],good:[.6,1/0]},children:[g.bloodPercent,"%, ",g.bloodLevel,"cl"]})}),(0,e.jsxs)(t.Ki.Item,{label:"Pulse",children:[g.pulse," BPM"]})]})]})}),(0,e.jsx)(t.wn,{title:"Current Procedure",children:g.surgery&&g.surgery.length?(0,e.jsx)(t.Ki,{children:g.surgery.map(function(d){return(0,e.jsx)(t.Ki.Item,{label:d.name,children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Current State",children:d.currentStage}),(0,e.jsx)(t.Ki.Item,{label:"Possible Next Steps",children:d.nextSteps.map(function(a){return(0,e.jsx)("div",{children:a},a)})})]})},d.name)})}):(0,e.jsx)(t.az,{color:"label",children:"No procedure ongoing."})})]})}},13846:function(O,u,n){"use strict";n.r(u),n.d(u,{OperatingComputerUnoccupied:function(){return t}});var e=n(20462),o=n(88569),t=function(r){return(0,e.jsx)(o.so,{textAlign:"center",height:"100%",children:(0,e.jsxs)(o.so.Item,{grow:"1",align:"center",color:"label",children:[(0,e.jsx)(o.In,{name:"user-slash",mb:"0.5rem",size:5}),(0,e.jsx)("br",{}),"No patient detected."]})})}},6050:function(O,u,n){"use strict";n.r(u),n.d(u,{damageRange:function(){return t},damages:function(){return o},stats:function(){return e},tempColors:function(){return r}});var e=[["good","Conscious"],["average","Unconscious"],["bad","DEAD"]],o=[["Resp.","oxyLoss"],["Toxin","toxLoss"],["Brute","bruteLoss"],["Burn","fireLoss"]],t={average:[.25,.5],bad:[.5,1/0]},r=["bad","average","average","good","average","average","bad"]},70509:function(O,u,n){"use strict";n.r(u),n.d(u,{OperatingComputer:function(){return d}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),s=n(43213),x=n(88424),g=n(13846),d=function(a){var l=(0,o.Oc)(),i=l.act,c=l.data,f=c.hasOccupant,m=c.choice,v=c.occupant,E;return m?E=(0,e.jsx)(s.OperatingComputerOptions,{}):E=f?(0,e.jsx)(x.OperatingComputerPatient,{occupant:v}):(0,e.jsx)(g.OperatingComputerUnoccupied,{}),(0,e.jsx)(r.p8,{width:650,height:455,children:(0,e.jsxs)(r.p8.Content,{children:[(0,e.jsxs)(t.tU,{children:[(0,e.jsx)(t.tU.Tab,{selected:!m,icon:"user",onClick:function(){return i("choiceOff")},children:"Patient"}),(0,e.jsx)(t.tU.Tab,{selected:!!m,icon:"cog",onClick:function(){return i("choiceOn")},children:"Options"})]}),(0,e.jsx)(t.wn,{flexGrow:!0,children:E})]})})}},36882:function(O,u,n){"use strict";n.r(u)},81105:function(O,u,n){"use strict";n.r(u),n.d(u,{OvermapDisperser:function(){return x}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),s=n(91198),x=function(d){return(0,e.jsx)(r.p8,{width:400,height:550,children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsx)(g,{})})})},g=function(d){var a=(0,o.Oc)(),l=a.act,i=a.data,c=i.faillink,f=i.calibration,m=i.overmapdir,v=i.cal_accuracy,E=i.strength,j=i.range,C=i.next_shot,P=i.nopower,M=i.chargeload;return c?(0,e.jsx)(t.wn,{title:"Error",children:"Machine is incomplete, out of range, or misaligned!"}):(0,e.jsxs)(t.so,{wrap:"wrap",spacing:1,children:[(0,e.jsx)(t.so.Item,{basis:"22%",children:(0,e.jsx)(t.wn,{title:"Targeting",textAlign:"center",children:(0,e.jsx)(s.OvermapPanControls,{actToDo:"choose",selected:function(_){return _===m}})})}),(0,e.jsx)(t.so.Item,{basis:"74%",grow:1,children:(0,e.jsx)(t.wn,{title:"Charge",children:(0,e.jsxs)(t.Ki,{children:[P&&(0,e.jsx)(t.Ki.Item,{label:"Error",children:"At least one part of the machine is unpowered."})||"",(0,e.jsx)(t.Ki.Item,{label:"Charge Load Type",children:M}),(0,e.jsx)(t.Ki.Item,{label:"Cooldown",children:C===0&&(0,e.jsx)(t.az,{color:"good",children:"Ready"})||C>1&&(0,e.jsxs)(t.az,{color:"average",children:[(0,e.jsx)(t.zv,{value:C})," Seconds",(0,e.jsx)(t.az,{color:"bad",children:"Warning: Do not fire during cooldown."})]})||""})]})})}),(0,e.jsx)(t.so.Item,{basis:"50%",mt:1,children:(0,e.jsxs)(t.wn,{title:"Calibration",children:[(0,e.jsx)(t.zv,{value:v}),"%",(0,e.jsx)(t.$n,{ml:1,icon:"exchange-alt",onClick:function(){return l("skill_calibration")},children:"Pre-Calibration"}),(0,e.jsx)(t.az,{mt:1,children:f.map(function(_,S){return(0,e.jsxs)(t.az,{children:["Cal #",S,":",(0,e.jsx)(t.$n,{ml:1,icon:"random",onClick:function(){return l("calibration",{calibration:S})},children:_.toString()})]},S)})})]})}),(0,e.jsx)(t.so.Item,{basis:"45%",grow:1,mt:1,children:(0,e.jsx)(t.wn,{title:"Setup",children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Strength",children:(0,e.jsx)(t.$n,{fluid:!0,icon:"fist-raised",onClick:function(){return l("strength")},children:E})}),(0,e.jsx)(t.Ki.Item,{label:"Radius",children:(0,e.jsx)(t.$n,{fluid:!0,icon:"expand-arrows-alt",onClick:function(){return l("range")},children:j})})]})})}),(0,e.jsx)(t.so.Item,{grow:1,mt:1,children:(0,e.jsx)(t.$n,{fluid:!0,color:"red",icon:"bomb",onClick:function(){return l("fire")},children:"Fire ORB"})})]})}},22813:function(O,u,n){"use strict";n.r(u),n.d(u,{OvermapEngines:function(){return s},OvermapEnginesContent:function(){return x}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),s=function(g){return(0,e.jsx)(r.p8,{width:390,height:530,children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsx)(x,{})})})},x=function(g){var d=(0,o.Oc)(),a=d.act,l=d.data,i=l.global_state,c=l.global_limit,f=l.engines_info,m=l.total_thrust;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.wn,{title:"Status",children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Engines",children:(0,e.jsx)(t.$n,{icon:"power-off",selected:i,onClick:function(){return a("global_toggle")},children:i?"Shut All Engines Down":"Start All Engines"})}),(0,e.jsxs)(t.Ki.Item,{label:"Volume Limit",children:[(0,e.jsx)(t.$n,{onClick:function(){return a("global_limit",{global_limit:-.1})},icon:"minus"}),(0,e.jsxs)(t.$n,{onClick:function(){return a("set_global_limit")},children:[c,"%"]}),(0,e.jsx)(t.$n,{onClick:function(){return a("global_limit",{global_limit:.1})},icon:"plus"})]}),(0,e.jsx)(t.Ki.Item,{label:"Total Thrust",children:(0,e.jsx)(t.zv,{value:m})})]})}),(0,e.jsx)(t.wn,{title:"Engines",height:"340px",style:{overflowY:"auto"},children:f.map(function(v,E){return(0,e.jsxs)(t.so,{spacing:1,mt:E!==0&&-1,children:[(0,e.jsx)(t.so.Item,{basis:"80%",children:(0,e.jsx)(t.Nt,{title:(0,e.jsxs)(t.az,{inline:!0,children:["Engine #",E+1," | Thrust:"," ",(0,e.jsx)(t.zv,{value:v.eng_thrust})," | Limit:"," ",(0,e.jsx)(t.zv,{value:v.eng_thrust_limiter,format:function(j){return j+"%"}})]}),children:(0,e.jsx)(t.wn,{width:"127%",children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Type",children:v.eng_type}),(0,e.jsxs)(t.Ki.Item,{label:"Status",children:[(0,e.jsx)(t.az,{color:v.eng_on?v.eng_on===1?"good":"average":"bad",children:v.eng_on?v.eng_on===1?"Online":"Booting":"Offline"}),v.eng_status.map(function(j,C){return Array.isArray(j)?(0,e.jsx)(t.az,{color:j[1],children:j[0]},C):(0,e.jsx)(t.az,{children:j},C)})]}),(0,e.jsx)(t.Ki.Item,{label:"Current Thrust",children:v.eng_thrust}),(0,e.jsxs)(t.Ki.Item,{label:"Volume Limit",children:[(0,e.jsx)(t.$n,{onClick:function(){return a("limit",{limit:-.1,engine:v.eng_reference})},icon:"minus"}),(0,e.jsxs)(t.$n,{onClick:function(){return a("set_limit",{engine:v.eng_reference})},children:[v.eng_thrust_limiter,"%"]}),(0,e.jsx)(t.$n,{onClick:function(){return a("limit",{limit:.1,engine:v.eng_reference})},icon:"plus"})]})]})})})}),(0,e.jsx)(t.so.Item,{basis:"20%",children:(0,e.jsx)(t.$n,{fluid:!0,iconSpin:v.eng_on===-1,color:v.eng_on===-1?"purple":void 0,selected:v.eng_on===1,icon:"power-off",onClick:function(){return a("toggle_engine",{engine:v.eng_reference})},children:v.eng_on?v.eng_on===1?"Shutoff":"Booting":"Startup"})})]},E)})})]})}},61321:function(O,u,n){"use strict";n.r(u),n.d(u,{OvermapFull:function(){return d}});var e=n(20462),o=n(61358),t=n(88569),r=n(15581),s=n(22813),x=n(7558),g=n(97275),d=function(a){var l=(0,o.useState)(0),i=l[0],c=l[1];return(0,e.jsx)(r.p8,{width:800,height:800,children:(0,e.jsxs)(r.p8.Content,{scrollable:!0,children:[(0,e.jsxs)(t.tU,{children:[(0,e.jsx)(t.tU.Tab,{selected:i===0,onClick:function(){return c(0)},children:"Engines"}),(0,e.jsx)(t.tU.Tab,{selected:i===1,onClick:function(){return c(1)},children:"Helm"}),(0,e.jsx)(t.tU.Tab,{selected:i===2,onClick:function(){return c(2)},children:"Sensors"})]}),i===0&&(0,e.jsx)(s.OvermapEnginesContent,{}),i===1&&(0,e.jsx)(x.OvermapHelmContent,{}),i===2&&(0,e.jsx)(g.OvermapShipSensorsContent,{})]})})}},7558:function(O,u,n){"use strict";n.r(u),n.d(u,{OvermapFlightDataWrap:function(){return d},OvermapHelm:function(){return x},OvermapHelmContent:function(){return g}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),s=n(91198),x=function(c){return(0,e.jsx)(r.p8,{width:565,height:545,children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsx)(g,{})})})},g=function(c){return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(t.so,{children:[(0,e.jsx)(t.so.Item,{basis:"40%",height:"180px",children:(0,e.jsx)(d,{})}),(0,e.jsx)(t.so.Item,{basis:"25%",height:"180px",children:(0,e.jsx)(a,{})}),(0,e.jsx)(t.so.Item,{basis:"35%",height:"180px",children:(0,e.jsx)(l,{})})]}),(0,e.jsx)(i,{})]})},d=function(c){return(0,e.jsxs)("fieldset",{style:{height:"100%",border:"1px solid #4972a1",margin:"none"},className:"Section",children:[(0,e.jsx)("legend",{children:"Flight Data"}),(0,e.jsx)(s.OvermapFlightData,{})]})},a=function(c){var f=(0,o.Oc)(),m=f.act,v=f.data,E=v.canburn,j=v.manual_control;return(0,e.jsxs)("fieldset",{style:{height:"100%",border:"1px solid #4972a1"},className:"Section",children:[(0,e.jsx)("legend",{children:"Manual Control"}),(0,e.jsx)(t.so,{align:"center",justify:"center",children:(0,e.jsx)(t.so.Item,{children:(0,e.jsx)(s.OvermapPanControls,{disabled:!E,actToDo:"move"})})}),(0,e.jsxs)(t.az,{textAlign:"center",mt:1,children:[(0,e.jsx)(t.az,{bold:!0,underline:!0,children:"Direct Control"}),(0,e.jsx)(t.$n,{selected:j,onClick:function(){return m("manual")},icon:"compass",children:j?"Enabled":"Disabled"})]})]})},l=function(c){var f=(0,o.Oc)(),m=f.act,v=f.data,E=v.dest,j=v.d_x,C=v.d_y,P=v.speedlimit,M=v.autopilot,_=v.autopilot_disabled;return _?(0,e.jsxs)("fieldset",{style:{height:"100%",border:"1px solid #4972a1"},className:"Section",children:[(0,e.jsx)("legend",{children:"Autopilot"}),(0,e.jsx)(t.az,{textAlign:"center",color:"bad",fontSize:1.2,children:"AUTOPILOT DISABLED"}),(0,e.jsx)(t.az,{textAlign:"center",color:"average",children:"Warning: This vessel is equipped with a class I autopilot. Class I autopilots are unable to do anything but fly in a straight line directly towards the target, and may result in collisions."}),(0,e.jsx)(t.az,{textAlign:"center",children:(0,e.jsx)(t.$n.Confirm,{mt:1,color:"bad",confirmContent:"ACCEPT RISKS?",icon:"exclamation-triangle",confirmIcon:"exclamation-triangle",onClick:function(){return m("apilot_lock")},children:"Unlock Autopilot"})})]}):(0,e.jsxs)("fieldset",{style:{height:"100%",border:"1px solid #4972a1"},className:"Section",children:[(0,e.jsx)("legend",{children:"Autopilot"}),(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Target",children:E&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n,{onClick:function(){return m("setcoord",{setx:!0})},children:j}),(0,e.jsx)(t.$n,{onClick:function(){return m("setcoord",{sety:!0})},children:C})]})||(0,e.jsx)(t.$n,{icon:"pen",onClick:function(){return m("setcoord",{setx:!0,sety:!0})},children:"None"})}),(0,e.jsx)(t.Ki.Item,{label:"Speed Limit",children:(0,e.jsxs)(t.$n,{icon:"tachometer-alt",onClick:function(){return m("speedlimit")},children:[P," Gm/h"]})})]}),(0,e.jsx)(t.$n,{mt:1,fluid:!0,selected:M,disabled:!E,icon:"robot",onClick:function(){return m("apilot")},children:M?"Engaged":"Disengaged"}),(0,e.jsx)(t.$n,{fluid:!0,color:"good",icon:"exclamation-triangle",onClick:function(){return m("apilot_lock")},children:"Lock Autopilot"})]})},i=function(c){var f=(0,o.Oc)(),m=f.act,v=f.data,E=v.sector,j=v.s_x,C=v.s_y,P=v.sector_info,M=v.landed,_=v.locations;return(0,e.jsxs)(t.wn,{title:"Navigation Data",m:.3,mt:1,children:[(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Location",children:E}),(0,e.jsxs)(t.Ki.Item,{label:"Coordinates",children:[j," : ",C]}),(0,e.jsx)(t.Ki.Item,{label:"Scan Data",children:P}),(0,e.jsx)(t.Ki.Item,{label:"Status",children:M})]}),(0,e.jsxs)(t.so,{mt:1,align:"center",justify:"center",spacing:1,children:[(0,e.jsx)(t.so.Item,{basis:"50%",children:(0,e.jsx)(t.$n,{fluid:!0,icon:"save",onClick:function(){return m("add",{add:"current"})},children:"Save Current Position"})}),(0,e.jsx)(t.so.Item,{basis:"50%",children:(0,e.jsx)(t.$n,{fluid:!0,icon:"sticky-note",onClick:function(){return m("add",{add:"new"})},children:"Add New Entry"})})]}),(0,e.jsx)(t.wn,{mt:1,scrollable:!0,fill:!0,height:"130px",children:(0,e.jsxs)(t.XI,{children:[(0,e.jsxs)(t.XI.Row,{header:!0,children:[(0,e.jsx)(t.XI.Cell,{children:"Name"}),(0,e.jsx)(t.XI.Cell,{children:"Coordinates"}),(0,e.jsx)(t.XI.Cell,{children:"Actions"})]}),_.map(function(S){return(0,e.jsxs)(t.XI.Row,{children:[(0,e.jsx)(t.XI.Cell,{children:S.name}),(0,e.jsxs)(t.XI.Cell,{children:[S.x," : ",S.y]}),(0,e.jsxs)(t.XI.Cell,{collapsing:!0,children:[(0,e.jsx)(t.$n,{icon:"rocket",onClick:function(){return m("setds",{x:S.x,y:S.y})},children:"Plot Course"}),(0,e.jsx)(t.$n,{icon:"trash",onClick:function(){return m("remove",{remove:S.reference})},children:"Remove"})]})]},S.name)})]})})]})}},65912:function(O,u,n){"use strict";n.r(u),n.d(u,{OvermapNavigation:function(){return x},OvermapNavigationContent:function(){return g}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),s=n(91198),x=function(){return(0,e.jsx)(r.p8,{width:380,height:530,children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsx)(g,{})})})},g=function(d){var a=(0,o.Oc)(),l=a.act,i=a.data,c=i.sector,f=i.s_x,m=i.s_y,v=i.sector_info,E=i.viewing;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.wn,{title:"Current Location",buttons:(0,e.jsx)(t.$n,{icon:"eye",selected:E,onClick:function(){return l("viewing")},children:"Map View"}),children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Current Location",children:c}),(0,e.jsxs)(t.Ki.Item,{label:"Coordinates",children:[f," : ",m]}),(0,e.jsx)(t.Ki.Item,{label:"Additional Information",children:v})]})}),(0,e.jsx)(t.wn,{title:"Flight Data",children:(0,e.jsx)(s.OvermapFlightData,{disableLimiterControls:!0})})]})}},30766:function(O,u,n){"use strict";n.r(u),n.d(u,{OvermapShieldGenerator:function(){return s}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),s=function(a){return(0,e.jsx)(r.p8,{width:500,height:760,children:(0,e.jsx)(r.p8.Content,{scrollable:!0,children:(0,e.jsx)(x,{})})})},x=function(a){var l=(0,o.Oc)(),i=l.act,c=l.data,f=c.modes,m=c.offline_for;return m?(0,e.jsxs)(t.wn,{title:"EMERGENCY SHUTDOWN",color:"bad",children:["An emergency shutdown has been initiated - generator cooling down. Please wait until the generator cools down before resuming operation. Estimated time left: ",m," seconds."]}):(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(g,{}),(0,e.jsx)(d,{}),(0,e.jsx)(t.wn,{title:"Field Calibration",children:f.map(function(v){return(0,e.jsxs)(t.wn,{title:v.name,buttons:(0,e.jsx)(t.$n,{icon:"power-off",selected:v.status,onClick:function(){return i("toggle_mode",{toggle_mode:v.flag})},children:v.status?"Enabled":"Disabled"}),children:[(0,e.jsx)(t.az,{color:"label",children:v.desc}),(0,e.jsxs)(t.az,{mt:.5,children:["Multiplier: ",v.multiplier]})]},v.name)})})]})},g=function(a){var l=(0,o.Oc)().data,i=l.running,c=l.overloaded,f=l.mitigation_max,m=l.mitigation_physical,v=l.mitigation_em,E=l.mitigation_heat,j=l.field_integrity,C=l.max_energy,P=l.current_energy,M=l.percentage_energy,_=l.total_segments,S=l.functional_segments,T=l.field_radius,b=l.target_radius,L=l.input_cap_kw,W=l.upkeep_power_usage,k=l.power_usage,$=l.spinup_counter,w=[];return w[1]=(0,e.jsx)(t.az,{color:"average",children:"Shutting Down"}),w[2]=(0,e.jsx)(t.az,{color:"bad",children:"Overloaded"}),w[3]=(0,e.jsx)(t.az,{color:"average",children:"Inactive"}),w[4]=(0,e.jsxs)(t.az,{color:"blue",children:["Spinning Up\xA0",b!==T&&(0,e.jsx)(t.az,{inline:!0,children:"(Adjusting Radius)"})||(0,e.jsxs)(t.az,{inline:!0,children:[$*2,"s"]})]}),(0,e.jsx)(t.wn,{title:"System Status",children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Generator is",children:w[i]||(0,e.jsx)(t.az,{color:"bad",children:"Offline"})}),(0,e.jsx)(t.Ki.Item,{label:"Energy Storage",children:(0,e.jsxs)(t.z2,{value:P,maxValue:C,children:[P," / ",C," MJ (",M,"%)"]})}),(0,e.jsxs)(t.Ki.Item,{label:"Shield Integrity",children:[(0,e.jsx)(t.zv,{value:j}),"%"]}),(0,e.jsxs)(t.Ki.Item,{label:"Mitigation",children:[v,"% EM / ",m,"% PH / ",E,"% HE / ",f,"% MAX"]}),(0,e.jsxs)(t.Ki.Item,{label:"Upkeep Energy Use",children:[(0,e.jsx)(t.zv,{value:W})," kW"]}),(0,e.jsx)(t.Ki.Item,{label:"Total Energy Use",children:L&&(0,e.jsx)(t.az,{children:(0,e.jsxs)(t.z2,{value:k,maxValue:L,children:[k," / ",L," kW"]})})||(0,e.jsxs)(t.az,{children:[(0,e.jsx)(t.zv,{value:k})," kW (No Limit)"]})}),(0,e.jsxs)(t.Ki.Item,{label:"Field Size",children:[(0,e.jsx)(t.zv,{value:S}),"\xA0/\xA0",(0,e.jsx)(t.zv,{value:_})," m\xB2 (radius"," ",(0,e.jsx)(t.zv,{value:T}),", target"," ",(0,e.jsx)(t.zv,{value:b}),")"]})]})})},d=function(a){var l=(0,o.Oc)(),i=l.act,c=l.data,f=c.running,m=c.hacked,v=c.idle_multiplier,E=c.idle_valid_values;return(0,e.jsxs)(t.wn,{title:"Controls",buttons:(0,e.jsxs)(e.Fragment,{children:[f>=2&&(0,e.jsxs)(t.az,{children:[(0,e.jsx)(t.$n,{icon:"power-off",onClick:function(){return i("begin_shutdown")},selected:!0,children:"Turn off"}),f===3&&(0,e.jsx)(t.$n,{icon:"power-off",onClick:function(){return i("toggle_idle",{toggle_idle:0})},children:"Activate"})||(0,e.jsx)(t.$n,{icon:"power-off",onClick:function(){return i("toggle_idle",{toggle_idle:1})},selected:!0,children:"Deactivate"})]})||(0,e.jsx)(t.$n,{icon:"power-off",onClick:function(){return i("start_generator")},children:"Turn on"}),f&&m&&(0,e.jsx)(t.$n,{icon:"exclamation-triangle",onClick:function(){return i("emergency_shutdown")},color:"bad",children:"EMERGENCY SHUTDOWN"})||""]}),children:[(0,e.jsx)(t.$n,{icon:"expand-arrows-alt",onClick:function(){return i("set_range")},children:"Set Field Range"}),(0,e.jsx)(t.$n,{icon:"bolt",onClick:function(){return i("set_input_cap")},children:"Set Input Cap"}),(0,e.jsx)(t.Ki,{children:(0,e.jsx)(t.Ki.Item,{label:"Set inactive power use intensity",children:E.map(function(j){return(0,e.jsx)(t.$n,{selected:j===v,disabled:f===4,onClick:function(){return i("switch_idle",{switch_idle:j})},children:j},j)})})})]})}},97275:function(O,u,n){"use strict";n.r(u),n.d(u,{OvermapShipSensors:function(){return s},OvermapShipSensorsContent:function(){return x}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),s=function(g){return(0,e.jsx)(r.p8,{width:375,height:545,children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsx)(x,{})})})},x=function(g){var d=(0,o.Oc)(),a=d.act,l=d.data,i=l.viewing,c=l.on,f=l.range,m=l.health,v=l.max_health,E=l.heat,j=l.critical_heat,C=l.status,P=l.contacts;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.wn,{title:"Status",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n,{icon:"eye",selected:i,onClick:function(){return a("viewing")},children:"Map View"}),(0,e.jsx)(t.$n,{icon:"power-off",selected:c,onClick:function(){return a("toggle_sensor")},children:c?"Sensors Enabled":"Sensors Disabled"})]}),children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Status",children:C}),(0,e.jsx)(t.Ki.Item,{label:"Range",children:(0,e.jsx)(t.$n,{icon:"signal",onClick:function(){return a("range")},children:f})}),(0,e.jsx)(t.Ki.Item,{label:"Integrity",children:(0,e.jsxs)(t.z2,{ranges:{good:[v*.75,1/0],average:[v*.25,v*.75],bad:[-1/0,v*.25]},value:m,maxValue:v,children:[m," / ",v]})}),(0,e.jsx)(t.Ki.Item,{label:"Temperature",children:(0,e.jsx)(t.z2,{ranges:{bad:[j*.75,1/0],average:[j*.5,j*.75],good:[-1/0,j*.5]},value:E,maxValue:j,children:E0||!v)&&(0,e.jsx)(r.$n,{ml:1,icon:"times",onClick:function(){return l("cancel",{cancel:M+1})},children:"Cancel"})||""]},P)})||(0,e.jsx)(r.IC,{info:!0,children:"Queue Empty"})}),(0,e.jsx)(r.wn,{title:"Recipes",children:C.length&&C.map(function(P){return(0,e.jsx)(r.az,{children:(0,e.jsx)(r.$n,{icon:"wrench",onClick:function(){return l("queue",{queue:P.type})},children:(0,o.Sn)(P.name)})},P.name)})})]})})}},71675:function(O,u,n){"use strict";n.r(u),n.d(u,{PathogenicIsolator:function(){return d}});var e=n(20462),o=n(61358),t=n(7081),r=n(88569),s=n(15581),x=n(86471),g=function(i){var c=(0,t.Oc)(),f=c.act,m=c.data,v=m.can_print,E=i.args;return(0,e.jsx)(r.wn,{m:"-1rem",title:E.name||"Virus",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.$n,{disabled:!v,icon:"print",onClick:function(){return f("print",{type:"virus_record",vir:E.record})},children:"Print"}),(0,e.jsx)(r.$n,{icon:"times",color:"red",onClick:function(){return f("modal_close")}})]}),children:(0,e.jsx)(r.az,{mx:"0.5rem",children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsxs)(r.Ki.Item,{label:"Spread",children:[E.spreadtype," Transmission"]}),(0,e.jsx)(r.Ki.Item,{label:"Possible cure",children:E.antigen}),(0,e.jsx)(r.Ki.Item,{label:"Rate of Progression",children:E.rate}),(0,e.jsxs)(r.Ki.Item,{label:"Antibiotic Resistance",children:[E.resistance,"%"]}),(0,e.jsx)(r.Ki.Item,{label:"Species Affected",children:E.species}),(0,e.jsx)(r.Ki.Item,{label:"Symptoms",children:(0,e.jsx)(r.Ki,{children:E.symptoms.map(function(j){return(0,e.jsxs)(r.Ki.Item,{label:j.stage+". "+j.name,children:[(0,e.jsxs)(r.az,{inline:!0,children:[(0,e.jsx)(r.az,{inline:!0,color:"label",children:"Strength:"})," ",j.strength,"\xA0"]}),(0,e.jsxs)(r.az,{inline:!0,children:[(0,e.jsx)(r.az,{inline:!0,color:"label",children:"Aggressiveness:"})," ",j.aggressiveness]})]},j.stage)})})})]})})})},d=function(i){var c=(0,t.Oc)().data,f=c.isolating,m=(0,o.useState)(0),v=m[0],E=m[1],j=[];return j[0]=(0,e.jsx)(a,{}),j[1]=(0,e.jsx)(l,{}),(0,x.modalRegisterBodyOverride)("virus",g),(0,e.jsxs)(s.p8,{height:500,width:520,children:[(0,e.jsx)(x.ComplexModal,{maxHeight:"100%",maxWidth:"95%"}),(0,e.jsxs)(s.p8.Content,{scrollable:!0,children:[f&&(0,e.jsx)(r.IC,{warning:!0,children:"The Isolator is currently isolating..."})||"",(0,e.jsxs)(r.tU,{children:[(0,e.jsx)(r.tU.Tab,{selected:v===0,onClick:function(){return E(0)},children:"Home"}),(0,e.jsx)(r.tU.Tab,{selected:v===1,onClick:function(){return E(1)},children:"Database"})]}),j[v]||""]})]})},a=function(i){var c=(0,t.Oc)(),f=c.act,m=c.data,v=m.syringe_inserted,E=m.pathogen_pool,j=m.can_print;return(0,e.jsx)(r.wn,{title:"Pathogens",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.$n,{icon:"print",disabled:!j,onClick:function(){return f("print",{type:"patient_diagnosis"})},children:"Print"}),(0,e.jsx)(r.$n,{icon:"eject",disabled:!v,onClick:function(){return f("eject")},children:"Eject Syringe"})]}),children:E.length&&E.map(function(C){return(0,e.jsxs)(r.wn,{children:[(0,e.jsx)(r.az,{color:"label",children:(0,e.jsxs)(r.so,{align:"center",children:[(0,e.jsxs)(r.so.Item,{grow:1,children:[(0,e.jsxs)("u",{children:["Stamm #",C.unique_id]}),C.is_in_database?" (Analyzed)":" (Not Analyzed)"]}),(0,e.jsxs)(r.so.Item,{children:[(0,e.jsx)(r.$n,{icon:"virus",onClick:function(){return f("isolate",{isolate:C.reference})},children:"Isolate"}),(0,e.jsx)(r.$n,{icon:"search",disabled:!C.is_in_database,onClick:function(){return f("view_entry",{vir:C.record})},children:"Database"})]})]})}),(0,e.jsxs)(r.az,{children:[(0,e.jsx)(r.az,{color:"average",mb:1,children:C.name}),C.dna]})]},C.unique_id)})||(v?(0,e.jsx)(r.az,{color:"average",children:"No samples detected."}):(0,e.jsx)(r.az,{color:"average",children:"No syringe inserted."}))})},l=function(i){var c=(0,t.Oc)(),f=c.act,m=c.data,v=m.database,E=m.can_print;return(0,e.jsx)(r.wn,{title:"Database",buttons:(0,e.jsx)(r.$n,{icon:"print",disabled:!E,onClick:function(){return f("print",{type:"virus_list"})},children:"Print"}),children:v.length&&v.map(function(j){return(0,e.jsx)(r.$n,{fluid:!0,icon:"search",onClick:function(){return f("view_entry",{vir:j.record})},children:j.name},j.name)})||(0,e.jsx)(r.az,{color:"average",children:"The viral database is empty."})})}},50350:function(O,u,n){"use strict";n.r(u),n.d(u,{Pda:function(){return a}});var e=n(20462),o=n(61358),t=n(7081),r=n(88569),s=n(15581),x=n(15857),g=n(75091);function d(f){var m;try{m=g("./"+f+".tsx")}catch(E){if(E.code==="MODULE_NOT_FOUND")return(0,x.z)("notFound",f);throw E}var v=m[f];return v||(0,x.z)("missingExport",f)}var a=function(f){var m=function(b){S(b)},v=(0,t.Oc)().data,E=v.app,j=v.owner,C=v.useRetro;if(!j)return(0,e.jsx)(s.p8,{children:(0,e.jsx)(s.p8.Content,{children:(0,e.jsx)(r.wn,{stretchContents:!0,children:"Warning: No ID information found! Please swipe ID!"})})});var P=d(E.template),M=(0,o.useState)(!1),_=M[0],S=M[1];return(0,e.jsx)(s.p8,{width:580,height:670,theme:C?"pda-retro":void 0,children:(0,e.jsxs)(s.p8.Content,{scrollable:!0,children:[(0,e.jsx)(l,{settingsMode:_,onSettingsMode:m}),_&&(0,e.jsx)(i,{})||(0,e.jsx)(r.wn,{title:(0,e.jsxs)(r.az,{children:[(0,e.jsx)(r.In,{name:E.icon,mr:1}),E.name]}),p:1,children:(0,e.jsx)(P,{})}),(0,e.jsx)(r.az,{mb:8}),(0,e.jsx)(c,{onSettingsMode:m})]})})},l=function(f){var m=(0,t.Oc)(),v=m.act,E=m.data,j=E.idInserted,C=E.idLink,P=E.stationTime;return(0,e.jsx)(r.az,{mb:1,children:(0,e.jsxs)(r.so,{align:"center",justify:"space-between",children:[!!j&&(0,e.jsx)(r.so.Item,{children:(0,e.jsx)(r.$n,{icon:"eject",color:"transparent",onClick:function(){return v("Authenticate")},children:C})}),(0,e.jsx)(r.so.Item,{grow:1,textAlign:"center",bold:!0,children:P}),(0,e.jsxs)(r.so.Item,{children:[(0,e.jsx)(r.$n,{selected:f.settingsMode,onClick:function(){return f.onSettingsMode(!f.settingsMode)},icon:"cog"}),(0,e.jsx)(r.$n,{onClick:function(){return v("Retro")},icon:"adjust"})]})]})})},i=function(f){var m=(0,t.Oc)(),v=m.act,E=m.data,j=E.idInserted,C=E.idLink,P=E.cartridge_name,M=E.touch_silent;return(0,e.jsx)(r.wn,{title:"Settings",children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"R.E.T.R.O Mode",children:(0,e.jsx)(r.$n,{icon:"cog",onClick:function(){return v("Retro")},children:"Retro Theme"})}),(0,e.jsx)(r.Ki.Item,{label:"Touch Sounds",children:(0,e.jsx)(r.$n,{icon:"cog",selected:!M,onClick:function(){return v("TouchSounds")},children:M?"Disabled":"Enabled"})}),!!P&&(0,e.jsx)(r.Ki.Item,{label:"Cartridge",children:(0,e.jsx)(r.$n,{icon:"eject",onClick:function(){return v("Eject")},children:P})}),!!j&&(0,e.jsx)(r.Ki.Item,{label:"ID Card",children:(0,e.jsx)(r.$n,{icon:"eject",onClick:function(){return v("Authenticate")},children:C})})]})})},c=function(f){var m=(0,t.Oc)(),v=m.act,E=m.data,j=E.app,C=E.useRetro;return(0,e.jsx)(r.az,{position:"fixed",bottom:"0%",left:"0%",right:"0%",backgroundColor:C?"#6f7961":"#1b1b1b",children:(0,e.jsxs)(r.so,{children:[(0,e.jsx)(r.so.Item,{basis:"33%",children:(0,e.jsx)(r.$n,{fluid:!0,color:"transparent",iconColor:j.has_back?"white":"disabled",textAlign:"center",icon:"undo",mb:0,fontSize:1.7,onClick:function(){return v("Back")}})}),(0,e.jsx)(r.so.Item,{basis:"33%",children:(0,e.jsx)(r.$n,{fluid:!0,color:"transparent",iconColor:j.is_home?"disabled":"white",textAlign:"center",icon:"home",mb:0,fontSize:1.7,onClick:function(){f.onSettingsMode(!1),v("Home")}})})]})})}},46184:function(O,u,n){"use strict";n.r(u),n.d(u,{pda_atmos_scan:function(){return g}});var e=n(20462),o=n(7402),t=n(61282),r=n(7081),s=n(88569),x=function(d,a,l,i,c){return di?"average":d>c?"bad":"good"},g=function(d){var a=(0,r.Oc)(),l=a.act,i=a.data,c=i.aircontents;return(0,e.jsx)(s.az,{children:(0,e.jsx)(s.Ki,{children:(0,o.pb)(c,function(f){return f.val!=="0"||f.entry==="Pressure"||f.entry==="Temperature"}).map(function(f){return(0,e.jsxs)(s.Ki.Item,{label:f.entry,color:x(f.val,f.bad_low,f.poor_low,f.poor_high,f.bad_high),children:[f.val,(0,t.jT)(f.units)]},f.entry)})})})}},16091:function(O,u,n){"use strict";n.r(u),n.d(u,{pda_janitor:function(){return r}});var e=n(20462),o=n(7081),t=n(88569),r=function(s){var x=(0,o.Oc)(),g=x.act,d=x.data,a=d.janitor;return(0,e.jsxs)(t.az,{children:[(0,e.jsx)(t.Ki,{children:(0,e.jsx)(t.Ki.Item,{label:"Current Location",children:a.user_loc.x===0&&(0,e.jsx)(t.az,{color:"bad",children:"Unknown"})||(0,e.jsxs)(t.az,{children:[a.user_loc.x," / ",a.user_loc.y]})})}),(0,e.jsx)(t.wn,{title:"Mop Locations",children:a.mops&&(0,e.jsx)("ul",{children:a.mops.map(function(l,i){return(0,e.jsxs)("li",{children:[l.x," / ",l.y," - ",l.dir," - Status: ",l.status]},i)})})||(0,e.jsx)(t.az,{color:"bad",children:"No mops detected nearby."})}),(0,e.jsx)(t.wn,{title:"Mop Bucket Locations",children:a.buckets&&(0,e.jsx)("ul",{children:a.buckets.map(function(l,i){return(0,e.jsxs)("li",{children:[l.x," / ",l.y," - ",l.dir," - Capacity:"," ",l.volume,"/",l.max_volume]},i)})})||(0,e.jsx)(t.az,{color:"bad",children:"No buckets detected nearby."})}),(0,e.jsx)(t.wn,{title:"Cleanbot Locations",children:a.cleanbots&&(0,e.jsx)("ul",{children:a.cleanbots.map(function(l,i){return(0,e.jsxs)("li",{children:[l.x," / ",l.y," - ",l.dir," - Status:"," ",l.status]},i)})})||(0,e.jsx)(t.az,{color:"bad",children:"No cleanbots detected nearby."})}),(0,e.jsx)(t.wn,{title:"Janitorial Cart Locations",children:a.carts&&(0,e.jsx)("ul",{children:a.carts.map(function(l,i){return(0,e.jsxs)("li",{children:[l.x," / ",l.y," - ",l.dir," - Water Level: ",l.volume,"/",l.max_volume]},i)})})||(0,e.jsx)(t.az,{color:"bad",children:"No janitorial carts detected nearby."})})]})}},83743:function(O,u,n){"use strict";n.r(u),n.d(u,{pda_main_menu:function(){return r}});var e=n(20462),o=n(7081),t=n(88569),r=function(s){var x=(0,o.Oc)(),g=x.act,d=x.data,a=d.owner,l=d.ownjob,i=d.idInserted,c=d.categories,f=d.pai,m=d.notifying,v=d.apps;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.az,{children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsxs)(t.Ki.Item,{label:"Owner",color:"average",children:[a,", ",l]}),(0,e.jsx)(t.Ki.Item,{label:"ID",children:(0,e.jsx)(t.$n,{icon:"sync",disabled:!i,onClick:function(){return g("UpdateInfo")},children:"Update PDA Info"})})]})}),(0,e.jsx)(t.wn,{title:"Functions",children:(0,e.jsx)(t.Ki,{children:c.map(function(E){var j=v[E];return!j||!j.length?null:(0,e.jsx)(t.Ki.Item,{label:E,children:j.map(function(C){return(0,e.jsx)(t.$n,{icon:C.ref in m?C.notify_icon:C.icon,iconSpin:C.ref in m,color:C.ref in m?"red":"transparent",onClick:function(){return g("StartProgram",{program:C.ref})},children:C.name},C.ref)})},E)})})}),!!f&&(0,e.jsxs)(t.wn,{title:"pAI",children:[(0,e.jsx)(t.$n,{fluid:!0,icon:"cog",onClick:function(){return g("pai",{option:1})},children:"Configuration"}),(0,e.jsx)(t.$n,{fluid:!0,icon:"eject",onClick:function(){return g("pai",{option:2})},children:"Eject pAI"})]})]})}},29961:function(O,u,n){"use strict";n.r(u),n.d(u,{pda_manifest:function(){return s}});var e=n(20462),o=n(7081),t=n(88569),r=n(58044),s=function(x){var g=(0,o.Oc)(),d=g.act,a=g.data;return(0,e.jsx)(t.az,{color:"white",children:(0,e.jsx)(r.CrewManifestContent,{})})}},34029:function(O,u,n){"use strict";n.r(u),n.d(u,{pda_medical:function(){return r}});var e=n(20462),o=n(7081),t=n(88569),r=function(s){var x=(0,o.Oc)(),g=x.act,d=x.data,a=d.recordsList,l=d.records;if(l){var i=l.general,c=l.medical;return(0,e.jsxs)(t.az,{children:[(0,e.jsx)(t.wn,{title:"General Data",children:i&&(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Name",children:i.name}),(0,e.jsx)(t.Ki.Item,{label:"Sex",children:i.sex}),(0,e.jsx)(t.Ki.Item,{label:"Species",children:i.species}),(0,e.jsx)(t.Ki.Item,{label:"Age",children:i.age}),(0,e.jsx)(t.Ki.Item,{label:"Rank",children:i.rank}),(0,e.jsx)(t.Ki.Item,{label:"Fingerprint",children:i.fingerprint}),(0,e.jsx)(t.Ki.Item,{label:"Physical Status",children:i.p_stat}),(0,e.jsx)(t.Ki.Item,{label:"Mental Status",children:i.m_stat})]})||(0,e.jsx)(t.az,{color:"bad",children:"General record lost!"})}),(0,e.jsx)(t.wn,{title:"Medical Data",children:c&&(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Blood Type",children:c.b_type}),(0,e.jsx)(t.Ki.Item,{label:"Minor Disabilities",children:c.mi_dis}),(0,e.jsx)(t.Ki.Item,{label:"Details",children:c.mi_dis_d}),(0,e.jsx)(t.Ki.Item,{label:"Major Disabilities",children:c.ma_dis}),(0,e.jsx)(t.Ki.Item,{label:"Details",children:c.ma_dis_d}),(0,e.jsx)(t.Ki.Item,{label:"Allergies",children:c.alg}),(0,e.jsx)(t.Ki.Item,{label:"Details",children:c.alg_d}),(0,e.jsx)(t.Ki.Item,{label:"Current Disease",children:c.cdi}),(0,e.jsx)(t.Ki.Item,{label:"Details",children:c.cdi_d}),(0,e.jsx)(t.Ki.Item,{label:"Important Notes",children:(0,e.jsx)(t.az,{preserveWhitespace:!0,children:c.notes})})]})||(0,e.jsx)(t.az,{color:"bad",children:"Medical record lost!"})})]})}return(0,e.jsx)(t.wn,{title:"Select a record",children:a.map(function(f){return(0,e.jsx)(t.$n,{icon:"eye",fluid:!0,onClick:function(){return g("Records",{target:f.ref})},children:f.name},f.ref)})})}},2949:function(O,u,n){"use strict";n.r(u),n.d(u,{pda_messenger:function(){return E}});var e=n(20462),o=n(7402),t=n(61282),r=n(61358),s=n(7081),x=n(88569),g=n(30705);function d($,w){(w==null||w>$.length)&&(w=$.length);for(var V=0,F=new Array(w);V=$.length?{done:!0}:{done:!1,value:$[F++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function f($,w){var V,F,X,Z,te={label:0,sent:function(){if(X[0]&1)throw X[1];return X[1]},trys:[],ops:[]};return Z={next:J(0),throw:J(1),return:J(2)},typeof Symbol=="function"&&(Z[Symbol.iterator]=function(){return this}),Z;function J(Y){return function(G){return Q([Y,G])}}function Q(Y){if(V)throw new TypeError("Generator is already executing.");for(;te;)try{if(V=1,F&&(X=Y[0]&2?F.return:Y[0]?F.throw||((X=F.return)&&X.call(F),0):F.next)&&!(X=X.call(F,Y[1])).done)return X;switch(F=0,X&&(Y=[Y[0]&2,X.value]),Y[0]){case 0:case 1:X=Y;break;case 4:return te.label++,{value:Y[1],done:!1};case 5:te.label++,F=Y[1],Y=[0];continue;case 7:Y=te.ops.pop(),te.trys.pop();continue;default:if(X=te.trys,!(X=X.length>0&&X[X.length-1])&&(Y[0]===6||Y[0]===2)){te=0;continue}if(Y[0]===3&&(!X||Y[1]>X[0]&&Y[1]V.length)return $.sent?"TinderMessage_First_Sent":"TinderMessage_First_Received";var F=V[w].sent;return $.sent&&F?"TinderMessage_Subsequent_Sent":!$.sent&&!F?"TinderMessage_Subsequent_Received":$.sent?"TinderMessage_First_Sent":"TinderMessage_First_Received"},T=function($){var w=$.messages,V=$.active_conversation;return(0,e.jsx)(x.az,{children:w.filter(function(F){return F.target===V}).map(function(F,X,Z){return(0,e.jsx)(b,{im:F,className:S(F,X-1,Z)},X)})})},b=function($){var w=(0,s.Oc)().data,V=w.enable_message_embeds,F=$.im,X=$.className;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(x.az,{textAlign:F.sent?"right":"left",mb:1,children:(0,e.jsx)(x.az,{maxWidth:"75%",className:X,inline:!0,children:(0,t.jT)(F.message)})}),!!V&&(0,e.jsx)(W,{im:F,className:X})]})},L=["cdn.discordapp.com","i.imgur.com","imgur.com"],W=function($){var w=$.im,V=$.className,F=(0,r.useState)(null),X=F[0],Z=F[1];return(0,r.useEffect)(function(){var te=function(ee){return Y.apply(this,arguments)},J=(0,t.jT)(w.message.trim());if(!J.startsWith("https://")||J.includes(" "))return;var Q;try{Q=new URL(J)}catch(G){return}if(!L.includes(Q.hostname))return;function Y(){return Y=l(function(G){var ee,le,ie;return f(this,function(de){switch(de.label){case 0:return ee={Accept:"image/jpeg, image/png, image/gif","User-Agent":"SS13-Virgo-ImageEmbeds/1.0"},[4,(0,g.b)(G.toString(),{headers:ee})];case 1:return le=de.sent(),le.ok?(ie=le.headers.get("Content-Type"),ie==="image/jpeg"||ie==="image/png"||ie==="image/gif"?[2,G.toString()]:[2,null]):[2,null]}})}),Y.apply(this,arguments)}te(Q).then(function(G){G&&Z((0,e.jsx)(k,{im:w,className:V,img:G}))})},[]),X},k=function($){var w=(0,r.useState)(!1),V=w[0],F=w[1],X=$.im,Z=$.className,te=$.img;return(0,e.jsx)(x.az,{textAlign:X.sent?"right":"left",mb:1,children:(0,e.jsxs)(x.az,{maxWidth:"75%",className:Z,inline:!0,children:[(0,e.jsx)(x.az,{fontSize:.9,children:"Embed"}),V?(0,e.jsx)(x._V,{fixBlur:!1,src:te,maxWidth:30,maxHeight:30}):(0,e.jsxs)(x.$n,{width:30,height:20,onClick:function(){return F(!0)},color:"black",textAlign:"center",verticalAlignContent:"middle",fontSize:3,children:["Click to",(0,e.jsx)("br",{}),"Show"]})]})})}},25039:function(O,u,n){"use strict";n.r(u),n.d(u,{pda_news:function(){return s}});var e=n(20462),o=n(61282),t=n(7081),r=n(88569),s=function(d){var a=(0,t.Oc)(),l=a.act,i=a.data,c=i.feeds,f=i.target_feed;return(0,e.jsx)(r.az,{children:!c.length&&(0,e.jsx)(r.az,{color:"bad",children:"Error: No newsfeeds available. Please try again later."})||f&&(0,e.jsx)(x,{target_feed:f})||(0,e.jsx)(g,{})})},x=function(d){var a=(0,t.Oc)().act,l=d.target_feed;return(0,e.jsx)(r.wn,{title:(0,o.jT)(l.name)+" by "+(0,o.jT)(l.author),buttons:(0,e.jsx)(r.$n,{icon:"chevron-up",onClick:function(){return a("newsfeed",{newsfeed:null})},children:"Back"}),children:l.messages.length&&l.messages.map(function(i){return(0,e.jsxs)(r.wn,{children:["- ",(0,o.jT)(i.body),!!i.img&&(0,e.jsxs)(r.az,{children:[(0,e.jsx)(r._V,{src:"data:image/png;base64,"+i.img}),(0,o.jT)(i.caption)||null]}),(0,e.jsxs)(r.az,{color:"grey",children:["[",i.message_type," by ",(0,o.jT)(i.author)," -"," ",i.time_stamp,"]"]})]},i.index)})||(0,e.jsxs)(r.az,{children:["No stories found in ",l.name,"."]})})},g=function(d){var a=(0,t.Oc)(),l=a.act,i=a.data,c=i.feeds,f=i.latest_news;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.wn,{title:"Recent News",children:f.length&&(0,e.jsx)(r.wn,{children:f.map(function(m){return(0,e.jsxs)(r.az,{mb:2,children:[(0,e.jsxs)("h5",{children:[(0,o.jT)(m.channel),(0,e.jsx)(r.$n,{ml:1,icon:"chevron-up",onClick:function(){return l("newsfeed",{newsfeed:m.index})},children:"Go to"})]}),"- ",(0,o.jT)(m.body),!!m.has_image&&(0,e.jsxs)(r.az,{children:["[image omitted, view story for more details]",m.caption||null]}),(0,e.jsxs)(r.az,{fontSize:.9,children:["[",m.message_type," by"," ",(0,e.jsx)(r.az,{inline:!0,color:"average",children:m.author})," ","- ",m.time_stamp,"]"]})]},m.index)})})||(0,e.jsx)(r.az,{children:"No recent stories found."})}),(0,e.jsx)(r.wn,{title:"News Feeds",children:c.map(function(m){return(0,e.jsx)(r.$n,{fluid:!0,icon:"chevron-up",onClick:function(){return l("newsfeed",{newsfeed:m.index})},children:m.name},m.index)})})]})}},33312:function(O,u,n){"use strict";n.r(u),n.d(u,{pda_notekeeper:function(){return r}});var e=n(20462),o=n(7081),t=n(88569),r=function(s){var x=(0,o.Oc)(),g=x.act,d=x.data,a=d.note,l=d.notename;return(0,e.jsxs)(t.az,{children:[(0,e.jsx)(t.wn,{children:(0,e.jsxs)(t.XI,{children:[(0,e.jsxs)(t.XI.Row,{header:!0,children:[(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.$n,{icon:"sticky-note-o",onClick:function(){return g("Note1")},children:"Note A"})}),(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.$n,{icon:"sticky-note-o",onClick:function(){return g("Note2")},children:"Note B"})}),(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.$n,{icon:"sticky-note-o",onClick:function(){return g("Note3")},children:"Note C"})}),(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.$n,{icon:"sticky-note-o",onClick:function(){return g("Note4")},children:"Note D"})}),(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.$n,{icon:"sticky-note-o",onClick:function(){return g("Note5")},children:"Note E"})}),(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.$n,{icon:"sticky-note-o",onClick:function(){return g("Note6")},children:"Note F"})})]}),(0,e.jsxs)(t.XI.Row,{header:!0,children:[(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.$n,{icon:"sticky-note-o",onClick:function(){return g("Note7")},children:"Note G"})}),(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.$n,{icon:"sticky-note-o",onClick:function(){return g("Note8")},children:"Note H"})}),(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.$n,{icon:"sticky-note-o",onClick:function(){return g("Note9")},children:"Note I"})}),(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.$n,{icon:"sticky-note-o",onClick:function(){return g("Note10")},children:"Note J"})}),(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.$n,{icon:"sticky-note-o",onClick:function(){return g("Note11")},children:"Note K"})}),(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.$n,{icon:"sticky-note-o",onClick:function(){return g("Note12")},children:"Note L"})})]})]})}),(0,e.jsxs)(t.wn,{title:l,children:[(0,e.jsx)(t.$n,{icon:"pen",onClick:function(){return g("Edit")},children:"Edit Note"}),(0,e.jsx)(t.$n,{icon:"file-word",onClick:function(){return g("Titleset")},children:"Edit Title"}),(0,e.jsx)(t.$n,{icon:"sticky-note-o",onClick:function(){return g("Print")},children:"Print Note"})]}),(0,e.jsx)(t.wn,{children:(0,e.jsx)("div",{dangerouslySetInnerHTML:{__html:a}})})]})}},6835:function(O,u,n){"use strict";n.r(u),n.d(u,{pda_power:function(){return t}});var e=n(20462),o=n(91276),t=function(r){return(0,e.jsx)(o.PowerMonitorContent,{})}},70272:function(O,u,n){"use strict";n.r(u),n.d(u,{pda_security:function(){return r}});var e=n(20462),o=n(7081),t=n(88569),r=function(s){var x=(0,o.Oc)(),g=x.act,d=x.data,a=d.recordsList,l=d.records;if(l){var i=l.general,c=l.security;return(0,e.jsxs)(t.az,{children:[(0,e.jsx)(t.wn,{title:"General Data",children:i&&(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Name",children:i.name}),(0,e.jsx)(t.Ki.Item,{label:"Sex",children:i.sex}),(0,e.jsx)(t.Ki.Item,{label:"Species",children:i.species}),(0,e.jsx)(t.Ki.Item,{label:"Age",children:i.age}),(0,e.jsx)(t.Ki.Item,{label:"Rank",children:i.rank}),(0,e.jsx)(t.Ki.Item,{label:"Fingerprint",children:i.fingerprint}),(0,e.jsx)(t.Ki.Item,{label:"Physical Status",children:i.p_stat}),(0,e.jsx)(t.Ki.Item,{label:"Mental Status",children:i.m_stat})]})||(0,e.jsx)(t.az,{color:"bad",children:"General record lost!"})}),(0,e.jsx)(t.wn,{title:"Security Data",children:c&&(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Criminal Status",children:c.criminal}),(0,e.jsx)(t.Ki.Item,{label:"Minor Crimes",children:c.mi_crim}),(0,e.jsx)(t.Ki.Item,{label:"Details",children:c.mi_crim_d}),(0,e.jsx)(t.Ki.Item,{label:"Major Crimes",children:c.ma_crim}),(0,e.jsx)(t.Ki.Item,{label:"Details",children:c.ma_crim_d}),(0,e.jsx)(t.Ki.Item,{label:"Important Notes:",children:(0,e.jsx)(t.az,{preserveWhitespace:!0,children:c.notes||"No data found."})})]})||(0,e.jsx)(t.az,{color:"bad",children:"Security record lost!"})})]})}return(0,e.jsx)(t.wn,{title:"Select a record",children:a.map(function(f){return(0,e.jsx)(t.$n,{icon:"eye",fluid:!0,onClick:function(){return g("Records",{target:f.ref})},children:f.name},f.ref)})})}},56473:function(O,u,n){"use strict";n.r(u),n.d(u,{pda_signaller:function(){return t}});var e=n(20462),o=n(46321),t=function(r){return(0,e.jsx)(o.SignalerContent,{})}},41659:function(O,u,n){"use strict";n.r(u),n.d(u,{pda_status_display:function(){return r}});var e=n(20462),o=n(7081),t=n(88569),r=function(s){var x=(0,o.Oc)(),g=x.act,d=x.data,a=d.records;return(0,e.jsx)(t.az,{children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsxs)(t.Ki.Item,{label:"Code",children:[(0,e.jsx)(t.$n,{color:"transparent",icon:"trash",onClick:function(){return g("Status",{statdisp:"blank"})},children:"Clear"}),(0,e.jsx)(t.$n,{color:"transparent",icon:"cog",onClick:function(){return g("Status",{statdisp:"shuttle"})},children:"Evac ETA"}),(0,e.jsx)(t.$n,{color:"transparent",icon:"cog",onClick:function(){return g("Status",{statdisp:"message"})},children:"Message"}),(0,e.jsx)(t.$n,{color:"transparent",icon:"exclamation-triangle",onClick:function(){return g("Status",{statdisp:"alert"})},children:"ALERT"})]}),(0,e.jsx)(t.Ki.Item,{label:"Message line 1",children:(0,e.jsx)(t.$n,{icon:"pen",onClick:function(){return g("Status",{statdisp:"setmsg1"})},children:a&&a.message1+" (set)"})}),(0,e.jsx)(t.Ki.Item,{label:"Message line 2",children:(0,e.jsx)(t.$n,{icon:"pen",onClick:function(){return g("Status",{statdisp:"setmsg2"})},children:a&&a.message2+" (set)"})})]})})}},94431:function(O,u,n){"use strict";n.r(u),n.d(u,{pda_supply:function(){return r}});var e=n(20462),o=n(7081),t=n(88569),r=function(s){var x=(0,o.Oc)(),g=x.act,d=x.data,a=d.supply;return(0,e.jsxs)(t.az,{children:[(0,e.jsx)(t.Ki,{children:(0,e.jsx)(t.Ki.Item,{label:"Location",children:a.shuttle_moving?"Moving to station "+a.shuttle_eta:"Shuttle at "+a.shuttle_loc})}),(0,e.jsxs)(t.wn,{children:[(0,e.jsx)(t.az,{color:"good",bold:!0,children:"Current Approved Orders"}),a.approved.length&&a.approved.map(function(l){return(0,e.jsxs)(t.az,{color:"average",children:["#",l.Number," - ",l.Name," approved by ",l.ApprovedBy,(0,e.jsx)("br",{}),l.Comment]},l.Number)})||(0,e.jsx)(t.az,{children:"None!"}),(0,e.jsx)(t.az,{color:"good",bold:!0,children:"Current Requested Orders"}),a.requests.length&&a.requests.map(function(l){return(0,e.jsxs)(t.az,{color:"average",children:["#",l.Number," - ",l.Name," requested by ",l.OrderedBy,(0,e.jsx)("br",{}),l.Comment]},l.Number)})||(0,e.jsx)(t.az,{children:"None!"})]})]})}},11115:function(O,u,n){"use strict";n.r(u)},75418:function(O,u,n){"use strict";n.r(u),n.d(u,{PersonalCrafting:function(){return l}});var e=n(20462),o=n(61358),t=n(7081),r=n(88569),s=n(15581);function x(c,f){(f==null||f>c.length)&&(f=c.length);for(var m=0,v=new Array(f);m=c.length?{done:!0}:{done:!1,value:c[v++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var l=function(c){for(var f,m=(0,t.Oc)(),v=m.act,E=m.data,j=E.busy,C=E.display_craftable_only,P=E.display_compact,M=E.crafting_recipes||{},_=[],S=[],T=a(Object.keys(M)),b;!(b=T()).done;){var L=b.value,W=M[L];if("has_subcats"in W){for(var k=a(Object.keys(W)),$;!($=k()).done;){var w=$.value;if(w!=="has_subcats"){_.push({name:w,category:L,subcategory:w});for(var V=W[w],F=a(V),X;!(X=F()).done;){var Z=X.value;S.push(g({},Z,{category:w}))}}}continue}_.push({name:L,category:L});for(var te=M[L],J=a(te),Q;!(Q=J()).done;){var Y=Q.value;S.push(g({},Y,{category:L}))}}var G=(0,o.useState)((f=_[0])==null?void 0:f.name),ee=G[0],le=G[1],ie=S.filter(function(de){return de.category===ee});return(0,e.jsx)(s.p8,{title:"Crafting Menu",width:700,height:800,children:(0,e.jsxs)(s.p8.Content,{scrollable:!0,children:[!!j&&(0,e.jsxs)(r.Rr,{fontSize:"32px",children:[(0,e.jsx)(r.In,{name:"cog",spin:1})," Crafting..."]}),(0,e.jsx)(r.wn,{title:"Personal Crafting",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.$n.Checkbox,{checked:P,onClick:function(){return v("toggle_compact")},children:"Compact"}),(0,e.jsx)(r.$n.Checkbox,{checked:C,onClick:function(){return v("toggle_recipes")},children:"Craftable Only"})]}),children:(0,e.jsxs)(r.so,{children:[(0,e.jsx)(r.so.Item,{children:(0,e.jsx)(r.tU,{vertical:!0,children:_.map(function(de){return(0,e.jsx)(r.tU.Tab,{selected:de.name===ee,onClick:function(){le(de.name),v("set_category",{category:de.category,subcategory:de.subcategory})},children:de.name},de.name)})})}),(0,e.jsx)(r.so.Item,{grow:1,basis:0,children:(0,e.jsx)(i,{craftables:ie})})]})})]})})},i=function(c){var f=c.craftables,m=f===void 0?[]:f,v=(0,t.Oc)(),E=v.act,j=v.data,C=j.craftability,P=C===void 0?{}:C,M=j.display_compact,_=j.display_craftable_only;return m.map(function(S){return _&&!P[S.ref]?null:M?(0,e.jsx)(r.Ki.Item,{label:S.name,className:"candystripe",buttons:(0,e.jsx)(r.$n,{icon:"cog",disabled:!P[S.ref],tooltip:S.tool_text&&"Tools needed: "+S.tool_text,tooltipPosition:"left",onClick:function(){return E("make",{recipe:S.ref})},children:"Craft"}),children:S.req_text},S.name):(0,e.jsx)(r.wn,{title:S.name,buttons:(0,e.jsx)(r.$n,{icon:"cog",disabled:!P[S.ref],onClick:function(){return E("make",{recipe:S.ref})},children:"Craft"}),children:(0,e.jsxs)(r.Ki,{children:[!!S.req_text&&(0,e.jsx)(r.Ki.Item,{label:"Required",children:S.req_text}),!!S.catalyst_text&&(0,e.jsx)(r.Ki.Item,{label:"Catalyst",children:S.catalyst_text}),!!S.tool_text&&(0,e.jsx)(r.Ki.Item,{label:"Tools",children:S.tool_text})]})},S.name)})}},6924:function(O,u,n){"use strict";n.r(u),n.d(u,{Photocopier:function(){return s}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),s=function(a){var l=(0,o.Oc)().data,i=l.isAI,c=l.has_toner,f=l.has_item;return(0,e.jsx)(r.p8,{title:"Photocopier",width:240,height:i?309:234,children:(0,e.jsxs)(r.p8.Content,{children:[c?(0,e.jsx)(x,{}):(0,e.jsx)(t.wn,{title:"Toner",children:(0,e.jsx)(t.az,{color:"average",children:"No inserted toner cartridge."})}),f?(0,e.jsx)(g,{}):(0,e.jsx)(t.wn,{title:"Options",children:(0,e.jsx)(t.az,{color:"average",children:"No inserted item."})}),!!i&&(0,e.jsx)(d,{})]})})},x=function(a){var l=(0,o.Oc)().data,i=l.max_toner,c=l.current_toner,f=i*.66,m=i*.33;return(0,e.jsx)(t.wn,{title:"Toner",children:(0,e.jsx)(t.z2,{ranges:{good:[f,i],average:[m,f],bad:[0,m]},value:c,minValue:0,maxValue:i})})},g=function(a){var l=(0,o.Oc)(),i=l.act,c=l.data,f=c.num_copies;return(0,e.jsxs)(t.wn,{title:"Options",children:[(0,e.jsxs)(t.so,{children:[(0,e.jsx)(t.so.Item,{mt:.4,width:11,color:"label",children:"Make copies:"}),(0,e.jsx)(t.so.Item,{children:(0,e.jsx)(t.Q7,{animated:!0,width:"2.6",height:"1.65",step:1,stepPixelSize:8,minValue:1,maxValue:10,value:f,onDrag:function(m){return i("set_copies",{num_copies:m})}})}),(0,e.jsx)(t.so.Item,{children:(0,e.jsx)(t.$n,{ml:.2,icon:"copy",textAlign:"center",onClick:function(){return i("make_copy")},children:"Copy"})})]}),(0,e.jsx)(t.$n,{mt:.5,textAlign:"center",icon:"reply",fluid:!0,onClick:function(){return i("remove")},children:"Remove item"})]})},d=function(a){var l=(0,o.Oc)(),i=l.act,c=l.data,f=c.can_AI_print;return(0,e.jsx)(t.wn,{title:"AI Options",children:(0,e.jsx)(t.az,{children:(0,e.jsx)(t.$n,{fluid:!0,icon:"images",textAlign:"center",disabled:!f,onClick:function(){return i("ai_photo")},children:"Print photo from database"})})})}},11727:function(O,u,n){"use strict";n.r(u),n.d(u,{PipeDispenser:function(){return g}});var e=n(20462),o=n(61358),t=n(7081),r=n(88569),s=n(15581),x=n(66947),g=function(d){var a=(0,t.Oc)(),l=a.act,i=a.data,c=i.disposals,f=i.p_layer,m=i.pipe_layers,v=i.categories,E=v===void 0?[]:v,j=(0,o.useState)("categoryName"),C=j[0],P=j[1],M=E.find(function(_){return _.cat_name===C})||E[0];return(0,e.jsx)(s.p8,{width:425,height:515,children:(0,e.jsxs)(s.p8.Content,{scrollable:!0,children:[!c&&(0,e.jsx)(r.wn,{title:"Layer",children:(0,e.jsx)(r.az,{children:Object.keys(m).map(function(_){return(0,e.jsx)(r.$n.Checkbox,{fluid:!0,checked:m[_]===f,onClick:function(){return l("p_layer",{p_layer:m[_]})},children:_},_)})})}),(0,e.jsxs)(r.wn,{title:"Pipes",children:[(0,e.jsx)(r.tU,{children:E.map(function(_){return(0,e.jsx)(r.tU.Tab,{icon:x.ICON_BY_CATEGORY_NAME[_.cat_name],selected:_.cat_name===M.cat_name,onClick:function(){return P(_.cat_name)},children:_.cat_name},_.cat_name)})}),M==null?void 0:M.recipes.map(function(_){return(0,e.jsx)(r.$n,{fluid:!0,ellipsis:!0,onClick:function(){return l("dispense_pipe",{ref:_.ref,bent:_.bent,category:M.cat_name})},children:_.pipe_name},_.pipe_name)})]})]})})}},28291:function(O,u,n){"use strict";n.r(u),n.d(u,{PlantAnalyzer:function(){return s}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),s=function(g){var d=(0,o.Oc)().data,a=d.seed,l=d.reagents,i=250;return a&&(i+=18*a.trait_info.length),l&&l.length&&(i+=55,i+=20*l.length),(0,e.jsx)(r.p8,{width:400,height:i,children:(0,e.jsx)(r.p8.Content,{scrollable:!0,children:(0,e.jsx)(x,{})})})},x=function(g){var d=(0,o.Oc)(),a=d.act,l=d.data,i=l.no_seed,c=l.seed,f=l.reagents;return i?(0,e.jsx)(t.wn,{title:"Analyzer Unused",children:"You should go scan a plant! There is no data currently loaded."}):(0,e.jsxs)(t.wn,{title:"Plant Information",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n,{icon:"print",onClick:function(){return a("print")},children:"Print Report"}),(0,e.jsx)(t.$n,{icon:"window-close",color:"red",onClick:function(){return a("close")}})]}),children:[(0,e.jsxs)(t.Ki,{children:[(0,e.jsxs)(t.Ki.Item,{label:"Plant Name",children:[c.name,"#",c.uid]}),(0,e.jsx)(t.Ki.Item,{label:"Endurance",children:c.endurance}),(0,e.jsx)(t.Ki.Item,{label:"Yield",children:c.yield}),(0,e.jsx)(t.Ki.Item,{label:"Maturation Time",children:c.maturation_time}),(0,e.jsx)(t.Ki.Item,{label:"Production Time",children:c.production_time}),(0,e.jsx)(t.Ki.Item,{label:"Potency",children:c.potency})]}),f.length&&(0,e.jsx)(t.wn,{title:"Plant Reagents",children:(0,e.jsx)(t.Ki,{children:f.map(function(m){return(0,e.jsxs)(t.Ki.Item,{label:m.name,children:[m.volume," unit(s)."]},m.name)})})})||null,(0,e.jsx)(t.wn,{title:"Other Data",children:c.trait_info.map(function(m){return(0,e.jsx)(t.az,{color:"label",mb:.4,children:m},m)})})]})}},45371:function(O,u,n){"use strict";n.r(u),n.d(u,{ControlAbilities:function(){return r}});var e=n(20462),o=n(7081),t=n(88569),r=function(s){var x=(0,o.Oc)().act;return(0,e.jsxs)(t.wn,{title:"Grant Abilities",children:[(0,e.jsx)(t.$n,{fluid:!0,onClick:function(){return x("vent_crawl")},children:"Vent Crawl"}),(0,e.jsx)(t.$n,{fluid:!0,onClick:function(){return x("darksight")},children:"Set Darksight"}),(0,e.jsx)(t.$n,{fluid:!0,onClick:function(){return x("cocoon")},children:"Give Cocoon Transformation"}),(0,e.jsx)(t.$n,{fluid:!0,onClick:function(){return x("transformation")},children:"Give TF verbs"}),(0,e.jsx)(t.$n,{fluid:!0,onClick:function(){return x("set_size")},children:"Give Set Size"}),(0,e.jsx)(t.$n,{fluid:!0,onClick:function(){return x("lleill_energy")},children:"Set Lleill Energy Levels"}),(0,e.jsx)(t.$n,{fluid:!0,onClick:function(){return x("lleill_invisibility")},children:"Give Lleill Invisibility"}),(0,e.jsx)(t.$n,{fluid:!0,onClick:function(){return x("beast_form")},children:"Give Leill Beast Form"}),(0,e.jsx)(t.$n,{fluid:!0,onClick:function(){return x("lleill_transmute")},children:"Give Leill Transmutation"}),(0,e.jsx)(t.$n,{fluid:!0,onClick:function(){return x("lleill_alchemy")},children:"Give Leill Alchemy"}),(0,e.jsx)(t.$n,{fluid:!0,onClick:function(){return x("lleill_drain")},children:"Give Lleill Drain"}),(0,e.jsx)(t.$n,{fluid:!0,onClick:function(){return x("brutal_pred")},children:"Give Brutal Predation"}),(0,e.jsx)(t.$n,{fluid:!0,onClick:function(){return x("trash_eater")},children:"Give Trash Eater"})]})}},27484:function(O,u,n){"use strict";n.r(u),n.d(u,{ControlAdmin:function(){return r}});var e=n(20462),o=n(7081),t=n(88569),r=function(s){var x=(0,o.Oc)().act;return(0,e.jsxs)(t.wn,{title:"Admin Controls",children:[(0,e.jsx)(t.$n,{fluid:!0,onClick:function(){return x("quick_nif")},children:"Quick NIF"}),(0,e.jsx)(t.$n,{fluid:!0,onClick:function(){return x("resize")},children:"Resize"}),(0,e.jsx)(t.$n,{fluid:!0,onClick:function(){return x("teleport")},children:"Teleport"}),(0,e.jsx)(t.$n,{fluid:!0,onClick:function(){return x("gib")},children:"Gib"}),(0,e.jsx)(t.$n,{fluid:!0,onClick:function(){return x("dust")},children:"Dust"}),(0,e.jsx)(t.$n,{fluid:!0,onClick:function(){return x("paralyse")},children:"Paralyse"}),(0,e.jsx)(t.$n,{fluid:!0,onClick:function(){return x("subtle_message")},children:"Subtle Message"}),(0,e.jsx)(t.$n,{fluid:!0,onClick:function(){return x("direct_narrate")},children:"Direct Narrate"}),(0,e.jsx)(t.$n,{fluid:!0,onClick:function(){return x("player_panel")},children:"Open Player Panel"}),(0,e.jsx)(t.$n,{fluid:!0,onClick:function(){return x("view_variables")},children:"Open View Variables"}),(0,e.jsx)(t.$n,{fluid:!0,onClick:function(){return x("ai")},children:"Enable/Modify AI"}),(0,e.jsx)(t.$n,{fluid:!0,onClick:function(){return x("orbit")},children:"Make Marked Datum Orbit"})]})}},18316:function(O,u,n){"use strict";n.r(u),n.d(u,{ControlFixes:function(){return r}});var e=n(20462),o=n(7081),t=n(88569),r=function(s){var x=(0,o.Oc)().act;return(0,e.jsxs)(t.wn,{title:"Bug Fixes",children:[(0,e.jsx)(t.$n,{fluid:!0,onClick:function(){return x("rejuvenate")},children:"Rejuvenate"}),(0,e.jsx)(t.$n,{fluid:!0,onClick:function(){return x("popup-box")},children:"Send Message Box"}),(0,e.jsx)(t.$n,{fluid:!0,onClick:function(){return x("stop-orbits")},children:"Clear All Orbiters"})]})}},46809:function(O,u,n){"use strict";n.r(u),n.d(u,{ControlInventory:function(){return r}});var e=n(20462),o=n(7081),t=n(88569),r=function(s){var x=(0,o.Oc)().act;return(0,e.jsxs)(t.wn,{title:"Inventory Controls",children:[(0,e.jsx)(t.$n,{fluid:!0,onClick:function(){return x("drop_all")},children:"Drop Everything"}),(0,e.jsx)(t.$n,{fluid:!0,onClick:function(){return x("drop_specific")},children:"Drop Specific Item"}),(0,e.jsx)(t.$n,{fluid:!0,onClick:function(){return x("drop_held")},children:"Drop Held Items"}),(0,e.jsx)(t.$n,{fluid:!0,onClick:function(){return x("list_all")},children:"List All Items"}),(0,e.jsx)(t.$n,{fluid:!0,onClick:function(){return x("give_item")},children:"Add Marked Item To Hands"}),(0,e.jsx)(t.$n,{fluid:!0,onClick:function(){return x("equip_item")},children:"Equip Marked Item To Inventory"})]})}},7556:function(O,u,n){"use strict";n.r(u),n.d(u,{ControlMedical:function(){return r}});var e=n(20462),o=n(7081),t=n(88569),r=function(s){var x=(0,o.Oc)().act;return(0,e.jsxs)(t.wn,{title:"Medical Effects",children:[(0,e.jsx)(t.$n,{fluid:!0,onClick:function(){return x("appendicitis")},children:"Appendicitis"}),(0,e.jsx)(t.$n,{fluid:!0,onClick:function(){return x("repair_organ")},children:"Repair Organ"}),(0,e.jsx)(t.$n,{fluid:!0,onClick:function(){return x("damage_organ")},children:"Damage Organ/Limb"}),(0,e.jsx)(t.$n,{fluid:!0,onClick:function(){return x("break_bone")},children:"Break Bone"}),(0,e.jsx)(t.$n,{fluid:!0,onClick:function(){return x("drop_organ")},children:"Drop Organ/Limb"}),(0,e.jsx)(t.$n,{fluid:!0,onClick:function(){return x("assist_organ")},children:"Make Organ Assisted"}),(0,e.jsx)(t.$n,{fluid:!0,onClick:function(){return x("robot_organ")},children:"Make Organ Robotic"}),(0,e.jsx)(t.$n,{fluid:!0,onClick:function(){return x("rejuvenate")},children:"Rejuvenate"}),(0,e.jsx)(t.$n,{fluid:!0,onClick:function(){return x("stasis")},children:"Toggle Stasis"})]})}},45502:function(O,u,n){"use strict";n.r(u),n.d(u,{ControlSmites:function(){return r}});var e=n(20462),o=n(7081),t=n(88569),r=function(s){var x=(0,o.Oc)().act;return(0,e.jsxs)(t.wn,{title:"Smites",children:[(0,e.jsx)(t.$n,{fluid:!0,onClick:function(){return x("break_legs")},children:"Break Legs"}),(0,e.jsx)(t.$n,{fluid:!0,onClick:function(){return x("bluespace_artillery")},children:"Bluespace Artillery"}),(0,e.jsx)(t.$n,{fluid:!0,onClick:function(){return x("spont_combustion")},children:"Spontaneous Combustion"}),(0,e.jsx)(t.$n,{fluid:!0,onClick:function(){return x("lightning_strike")},children:"Lightning Bolt"}),(0,e.jsx)(t.$n,{fluid:!0,onClick:function(){return x("shadekin_attack")},children:"Shadekin Attack"}),(0,e.jsx)(t.$n,{fluid:!0,onClick:function(){return x("shadekin_vore")},children:"Shadekin Vore"}),(0,e.jsx)(t.$n,{fluid:!0,onClick:function(){return x("redspace_abduct")},children:"Redspace Abduction"}),(0,e.jsx)(t.$n,{fluid:!0,onClick:function(){return x("autosave")},children:"Autosave"}),(0,e.jsx)(t.$n,{fluid:!0,onClick:function(){return x("autosave2")},children:"Autosave AOE"}),(0,e.jsx)(t.$n,{fluid:!0,onClick:function(){return x("adspam")},children:"Ad Spam"}),(0,e.jsx)(t.$n,{fluid:!0,onClick:function(){return x("peppernade")},children:"Peppernade"}),(0,e.jsx)(t.$n,{fluid:!0,onClick:function(){return x("spicerequest")},children:"Spawn Spice"}),(0,e.jsx)(t.$n,{fluid:!0,onClick:function(){return x("terror")},children:"Terrify"}),(0,e.jsx)(t.$n,{fluid:!0,onClick:function(){return x("terror_aoe")},children:"Terrify AOE"}),(0,e.jsx)(t.$n,{fluid:!0,onClick:function(){return x("spin")},children:"Spin"}),(0,e.jsx)(t.$n,{fluid:!0,onClick:function(){return x("squish")},children:"Squish"})]})}},5880:function(O,u,n){"use strict";n.r(u),n.d(u,{PlayerEffects:function(){return c}});var e=n(20462),o=n(61358),t=n(7081),r=n(88569),s=n(15581),x=n(45371),g=n(27484),d=n(18316),a=n(46809),l=n(7556),i=n(45502),c=function(f){var m=(0,t.Oc)().data,v=m.real_name,E=m.player_ckey,j=(0,o.useState)(0),C=j[0],P=j[1],M=[];return M[0]=(0,e.jsx)(i.ControlSmites,{}),M[1]=(0,e.jsx)(l.ControlMedical,{}),M[2]=(0,e.jsx)(x.ControlAbilities,{}),M[3]=(0,e.jsx)(a.ControlInventory,{}),M[4]=(0,e.jsx)(g.ControlAdmin,{}),M[5]=(0,e.jsx)(d.ControlFixes,{}),(0,e.jsx)(s.p8,{width:400,height:600,children:(0,e.jsxs)(s.p8.Content,{scrollable:!0,children:[(0,e.jsxs)(r.tU,{children:[(0,e.jsx)(r.tU.Tab,{selected:C===0,onClick:function(){return P(0)},children:"Smites"}),(0,e.jsx)(r.tU.Tab,{selected:C===1,onClick:function(){return P(1)},children:"Medical"}),(0,e.jsx)(r.tU.Tab,{selected:C===2,onClick:function(){return P(2)},children:"Abilities"}),(0,e.jsx)(r.tU.Tab,{selected:C===3,onClick:function(){return P(3)},children:"Inventory"}),(0,e.jsx)(r.tU.Tab,{selected:C===4,onClick:function(){return P(4)},children:"Admin"}),(0,e.jsx)(r.tU.Tab,{selected:C===5,onClick:function(){return P(5)},children:"Fixes"})]}),(0,e.jsxs)(r.IC,{info:!0,children:[v," played by ",E,"."]}),M[C]]})})}},25721:function(O,u,n){"use strict";n.r(u)},12588:function(O,u,n){"use strict";n.r(u),n.d(u,{PlayerNotes:function(){return s}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),s=function(x){var g=(0,o.Oc)(),d=g.act,a=g.data,l=a.device_theme,i=a.filter,c=a.pages,f=a.ckeys,m=function(v){return v()};return(0,e.jsx)(r.p8,{title:"Player Notes",theme:l,width:400,height:500,children:(0,e.jsx)(r.p8.Content,{scrollable:!0,children:(0,e.jsxs)(t.wn,{title:"Player notes",children:[(0,e.jsx)(t.$n,{icon:"filter",onClick:function(){return d("filter_player_notes")},children:"Apply Filter"}),(0,e.jsx)(t.$n,{icon:"sidebar",onClick:function(){return d("open_legacy_ui")},children:"Open Legacy UI"}),(0,e.jsx)(t.cG,{}),(0,e.jsx)(t.$n.Input,{onCommit:function(v,E){return d("show_player_info",{name:E})},children:"CKEY to Open"}),(0,e.jsx)(t.cG,{vertical:!0}),(0,e.jsx)(t.$n,{color:"green",onClick:function(){return d("clear_player_info_filter")},children:i}),(0,e.jsx)(t.cG,{}),(0,e.jsx)(t.XI,{children:f.map(function(v){return(0,e.jsx)(t.XI.Row,{children:(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.$n,{fluid:!0,color:"transparent",icon:"user",onClick:function(){return d("show_player_info",{name:v.name})},children:v.name})})},v.name)})}),(0,e.jsx)(t.cG,{}),m(function(){for(var v=function(C){E.push((0,e.jsx)(t.$n,{onClick:function(){return d("set_page",{index:C})},children:C},C))},E=[],j=1;j=.5&&"good"||W>.15&&"average"||"bad";return(0,e.jsx)(s.p8,{width:450,height:340,children:(0,e.jsxs)(s.p8.Content,{scrollable:!0,children:[!f&&(0,e.jsx)(r.IC,{children:"Generator not anchored."}),(0,e.jsx)(r.wn,{title:"Status",children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Power switch",children:(0,e.jsx)(r.$n,{icon:m?"power-off":"times",onClick:function(){return a("toggle_power")},selected:m,disabled:!v,children:m?"On":"Off"})}),(0,e.jsx)(r.Ki.Item,{label:"Fuel Type",buttons:i>=1&&(0,e.jsx)(r.$n,{ml:1,icon:"eject",disabled:m,onClick:function(){return a("eject")},children:"Eject"}),children:(0,e.jsxs)(r.az,{color:k,children:[i,"cm\xB3 ",E]})}),(0,e.jsx)(r.Ki.Item,{label:"Current fuel level",children:(0,e.jsxs)(r.z2,{value:i/c,ranges:{good:[.5,1/0],average:[.15,.5],bad:[-1/0,.15]},children:[i,"cm\xB3 / ",c,"cm\xB3"]})}),(0,e.jsxs)(r.Ki.Item,{label:"Fuel Usage",children:[j," cm\xB3/s"]}),(0,e.jsx)(r.Ki.Item,{label:"Temperature",children:(0,e.jsxs)(r.z2,{value:C,maxValue:P+30,color:M?"bad":"good",children:[(0,o.Mg)(C),"\xB0C"]})})]})}),(0,e.jsx)(r.wn,{title:"Output",children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Current output",color:_?"bad":void 0,children:S}),(0,e.jsxs)(r.Ki.Item,{label:"Adjust output",children:[(0,e.jsx)(r.$n,{icon:"minus",onClick:function(){return a("lower_power")},children:T}),(0,e.jsx)(r.$n,{icon:"plus",onClick:function(){return a("higher_power")},children:T})]}),(0,e.jsx)(r.Ki.Item,{label:"Power available",children:(0,e.jsx)(r.az,{inline:!0,color:!b&&"bad",children:b?L:"Unconnected"})})]})})]})})}},31991:function(O,u,n){"use strict";n.r(u),n.d(u,{PortablePump:function(){return x}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),s=n(95823),x=function(g){var d=(0,o.Oc)(),a=d.act,l=d.data,i=l.direction,c=l.target_pressure,f=l.default_pressure,m=l.min_pressure,v=l.max_pressure;return(0,e.jsx)(r.p8,{width:330,height:375,children:(0,e.jsxs)(r.p8.Content,{scrollable:!0,children:[(0,e.jsx)(s.PortableBasicInfo,{}),(0,e.jsx)(t.wn,{title:"Pump",buttons:(0,e.jsx)(t.$n,{icon:i?"sign-in-alt":"sign-out-alt",selected:i,onClick:function(){return a("direction")},children:i?"In":"Out"}),children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Output",children:(0,e.jsx)(t.Ap,{mt:"0.4em",animated:!0,minValue:m,maxValue:v,value:c,unit:"kPa",stepPixelSize:.3,onChange:function(E,j){return a("pressure",{pressure:j})}})}),(0,e.jsxs)(t.Ki.Item,{label:"Presets",children:[(0,e.jsx)(t.$n,{icon:"minus",disabled:c===m,onClick:function(){return a("pressure",{pressure:"min"})}}),(0,e.jsx)(t.$n,{icon:"sync",disabled:c===f,onClick:function(){return a("pressure",{pressure:"reset"})}}),(0,e.jsx)(t.$n,{icon:"plus",disabled:c===v,onClick:function(){return a("pressure",{pressure:"max"})}})]})]})})]})})}},33353:function(O,u,n){"use strict";n.r(u),n.d(u,{PortableScrubber:function(){return x}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),s=n(95823),x=function(g){var d=(0,o.Oc)(),a=d.act,l=d.data,i=l.rate,c=l.minrate,f=l.maxrate;return(0,e.jsx)(r.p8,{width:320,height:350,children:(0,e.jsxs)(r.p8.Content,{children:[(0,e.jsx)(s.PortableBasicInfo,{}),(0,e.jsx)(t.wn,{title:"Power Regulator",children:(0,e.jsx)(t.Ki,{children:(0,e.jsx)(t.Ki.Item,{label:"Volume Rate",children:(0,e.jsx)(t.Ap,{mt:"0.4em",animated:!0,minValue:c,maxValue:f,value:i,unit:"L/s",onChange:function(m,v){return a("volume_adj",{vol:v})}})})})})]})})}},96527:function(O,u,n){"use strict";n.r(u),n.d(u,{PortableTurret:function(){return s}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),s=function(x){var g=(0,o.Oc)(),d=g.act,a=g.data,l=a.locked,i=a.on,c=a.lethal,f=a.lethal_is_configurable,m=a.targetting_is_configurable,v=a.check_weapons,E=a.neutralize_noaccess,j=a.neutralize_norecord,C=a.neutralize_criminals,P=a.neutralize_all,M=a.neutralize_nonsynth,_=a.neutralize_unidentified,S=a.neutralize_down;return(0,e.jsx)(r.p8,{width:500,height:400,children:(0,e.jsxs)(r.p8.Content,{scrollable:!0,children:[(0,e.jsxs)(t.IC,{children:["Swipe an ID card to ",l?"unlock":"lock"," this interface."]}),(0,e.jsx)(t.wn,{children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Status",children:(0,e.jsx)(t.$n,{icon:i?"power-off":"times",selected:i,disabled:l,onClick:function(){return d("power")},children:i?"On":"Off"})}),!!f&&(0,e.jsx)(t.Ki.Item,{label:"Lethals",children:(0,e.jsx)(t.$n,{icon:c?"exclamation-triangle":"times",color:c?"bad":"",disabled:l,onClick:function(){return d("lethal")},children:c?"On":"Off"})})]})}),!!m&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(t.wn,{title:"Humanoid Targets",children:[(0,e.jsx)(t.$n.Checkbox,{fluid:!0,checked:C,disabled:l,onClick:function(){return d("autharrest")},children:"Wanted Criminals"}),(0,e.jsx)(t.$n.Checkbox,{fluid:!0,checked:j,disabled:l,onClick:function(){return d("authnorecord")},children:"No Sec Record"}),(0,e.jsx)(t.$n.Checkbox,{fluid:!0,checked:v,disabled:l,onClick:function(){return d("authweapon")},children:"Unauthorized Weapons"}),(0,e.jsx)(t.$n.Checkbox,{fluid:!0,checked:E,disabled:l,onClick:function(){return d("authaccess")},children:"Unauthorized Access"})]}),(0,e.jsxs)(t.wn,{title:"Other Targets",children:[(0,e.jsx)(t.$n.Checkbox,{fluid:!0,checked:_,disabled:l,onClick:function(){return d("authxeno")},children:"Unidentified Lifesigns (Xenos, Animals, Etc)"}),(0,e.jsx)(t.$n.Checkbox,{fluid:!0,checked:M,disabled:l,onClick:function(){return d("authsynth")},children:"All Non-Synthetics"}),(0,e.jsx)(t.$n.Checkbox,{fluid:!0,checked:S,disabled:l,onClick:function(){return d("authdown")},children:"Downed Targets"}),(0,e.jsx)(t.$n.Checkbox,{fluid:!0,checked:P,disabled:l,onClick:function(){return d("authall")},children:"All Entities"})]})]})]})})}},91276:function(O,u,n){"use strict";n.r(u),n.d(u,{PowerMonitorContent:function(){return s}});var e=n(20462),o=n(7081),t=n(88569),r=n(27971),s=function(x){var g=(0,o.Oc)(),d=g.act,a=g.data,l=a.all_sensors,i=a.focus;if(i)return(0,e.jsx)(r.PowerMonitorFocus,{focus:i});var c=(0,e.jsx)(t.az,{color:"bad",children:"No sensors detected"});return l&&(c=(0,e.jsx)(t.XI,{children:l.map(function(f){return(0,e.jsx)(t.XI.Row,{children:(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.$n,{icon:f.alarm?"bell":"sign-in-alt",onClick:function(){return d("setsensor",{id:f.name})},children:f.name})})},f.name)})})),(0,e.jsx)(t.wn,{title:"No active sensor. Listing all.",buttons:(0,e.jsx)(t.$n,{icon:"undo",onClick:function(){return d("refresh")},children:"Scan For Sensors"}),children:c})}},27971:function(O,u,n){"use strict";n.r(u),n.d(u,{PowerMonitorFocus:function(){return c}});var e=n(20462),o=n(7402),t=n(15813),r=n(4089),s=n(61358),x=n(7081),g=n(88569),d=n(92595),a=n(69788),l=n(88040);function i(){return i=Object.assign||function(f){for(var m=1;m50?"battery-half":"battery-quarter")||g===1&&"bolt"||g===2&&"battery-full"||"",color:g===0&&(d>50?"yellow":"red")||g===1&&"yellow"||g===2&&"green"}),(0,e.jsx)(t.az,{inline:!0,width:"36px",textAlign:"right",children:(0,o.Mg)(d)+"%"})]})},s=function(x){var g=x.status,d=!!(g&2),a=!!(g&1),l=(d?"On":"Off")+(" ["+(a?"auto":"manual")+"]");return(0,e.jsx)(t.m_,{content:l,children:(0,e.jsx)(t.BK,{color:d?"good":"bad",content:a?void 0:"M"})})}},92595:function(O,u,n){"use strict";n.r(u),n.d(u,{PEAK_DRAW:function(){return e}});var e=5e5},69788:function(O,u,n){"use strict";n.r(u),n.d(u,{powerRank:function(){return e}});function e(o){var t=String(o.split(" ")[1]).toLowerCase();return["w","kw","mw","gw"].indexOf(t)}},53414:function(O,u,n){"use strict";n.r(u),n.d(u,{PowerMonitor:function(){return r}});var e=n(20462),o=n(15581),t=n(91276),r=function(){return(0,e.jsx)(o.p8,{width:550,height:700,children:(0,e.jsx)(o.p8.Content,{scrollable:!0,children:(0,e.jsx)(t.PowerMonitorContent,{})})})}},77243:function(O,u,n){"use strict";n.r(u)},14827:function(O,u,n){"use strict";n.r(u),n.d(u,{GamePreferenceWindow:function(){return d}});var e=n(20462),o=n(61358),t=n(7081),r=n(88569),s=n(15581),x=n(19870),g=n(69901),d=function(a){var l=(0,t.Oc)(),i=l.act,c=l.data,f,m=(0,o.useState)((f=a.startingPage)!=null?f:x.GamePreferencesSelectedPage.Settings),v=m[0],E=m[1],j;switch(v){case x.GamePreferencesSelectedPage.Settings:j=(0,e.jsx)(g.GamePreferencesPage,{});break}return(0,e.jsx)(s.p8,{title:"Game Preferences",width:920,height:770,children:(0,e.jsx)(s.p8.Content,{children:(0,e.jsx)(r.BJ,{vertical:!0,fill:!0,children:(0,e.jsx)(r.BJ.Item,{grow:!0,shrink:!0,basis:"1px",children:j})})})})}},69901:function(O,u,n){"use strict";n.r(u),n.d(u,{GamePreferencesPage:function(){return m}});var e=n(20462),o=n(7402),t=n(61358),r=n(7081),s=n(88569),x=n(16945),g=n(72736),d=n(49049);function a(v,E){(E==null||E>v.length)&&(E=v.length);for(var j=0,C=new Array(E);j=v.length?{done:!0}:{done:!1,value:v[C++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var c=function(v,E){return(0,o.V0)(v,E,function(j){return j.name})},f=function(v){return(0,o.Ul)(v,function(E){var j=E[0];return j})},m=function(v){for(var E=(0,r.Oc)(),j=E.act,C=E.data,P={},M=i(Object.entries(C.character_preferences.game_preferences)),_;!(_=M()).done;){var S=_.value,T=S[0],b=S[1],L=x.default[T],W=(L==null?void 0:L.name)||T;L!=null&&L.description&&(W=(0,e.jsx)(s.az,{as:"span",style:{borderBottom:"2px dotted rgba(255, 255, 255, 0.8)"},children:W}));var k=(0,e.jsx)(s.so.Item,{grow:1,pr:2,basis:0,ml:2,children:W});L!=null&&L.description&&(k=(0,e.jsx)(s.m_,{content:L.description,position:"bottom-start",children:k}));var $=(0,e.jsxs)(s.so,{align:"center",pb:2,children:[k,(0,e.jsx)(s.so.Item,{grow:1,basis:0,children:L&&(0,e.jsx)(g.FeatureValueInput,{feature:L,featureId:T,value:b,act:j})||(0,e.jsx)(s.az,{as:"b",color:"red",children:"...is not filled out properly!!!"})})]},T),w={name:(L==null?void 0:L.name)||T,children:$},V=(L==null?void 0:L.category)||"ERROR";P[V]=c(P[V]||[],w)}var F=(0,t.useState)(""),X=F[0],Z=F[1],te=(0,t.useState)(!1),J=te[0],Q=te[1],Y=f(Object.entries(P)).map(function(G){var ee=G[0],le=G[1];return[ee,le.filter(function(ie){return!X||ie.name.toLowerCase().includes(X.toLowerCase())}).map(function(ie){return ie.children})]}).filter(function(G){var ee=G[0],le=G[1];return le.length!==0});return(0,e.jsxs)(e.Fragment,{children:[!Y.length&&(0,e.jsx)(s.wn,{title:"No Results",children:"No results found."}),(0,e.jsxs)(s.az,{position:"absolute",right:4,top:4,style:{zIndex:"100"},children:[J&&(0,e.jsx)(s.pd,{width:16,value:X,onInput:function(G,ee){return Z(ee)},onChange:function(G,ee){return Z(ee)}}),(0,e.jsx)(s.$n,{selected:J,icon:"magnifying-glass",tooltip:"Search",tooltipPosition:"bottom",onClick:function(){Q(!J),Z("")}})]}),(0,e.jsx)(d.TabbedMenu,{categoryEntries:Y,contentProps:{fontSize:1.5}})]})}},95387:function(O,u,n){"use strict";n.r(u),n.d(u,{PageButton:function(){return t}});var e=n(20462),o=n(88569),t=function(r){var s=r.currentPage===r.page||r.otherActivePages&&r.otherActivePages.indexOf(r.currentPage)!==-1;return(0,e.jsx)(o.$n,{align:"center",fontSize:"1.2em",fluid:!0,selected:s,onClick:function(){return r.setPage(r.page)},children:r.children})}},97364:function(O,u,n){"use strict";n.r(u),n.d(u,{ServerPreferencesFetcher:function(){return l}});var e=n(61358),o=n(31200),t=n(30705);function r(i,c,f,m,v,E,j){try{var C=i[E](j),P=C.value}catch(M){f(M);return}C.done?c(P):Promise.resolve(P).then(m,v)}function s(i){return function(){var c=this,f=arguments;return new Promise(function(m,v){var E=i.apply(c,f);function j(P){r(E,m,v,j,C,"next",P)}function C(P){r(E,m,v,j,C,"throw",P)}j(void 0)})}}function x(i,c){if(typeof c!="function"&&c!==null)throw new TypeError("Super expression must either be null or a function");i.prototype=Object.create(c&&c.prototype,{constructor:{value:i,writable:!0,configurable:!0}}),c&&g(i,c)}function g(i,c){return g=Object.setPrototypeOf||function(m,v){return m.__proto__=v,m},g(i,c)}function d(i,c){var f,m,v,E,j={label:0,sent:function(){if(v[0]&1)throw v[1];return v[1]},trys:[],ops:[]};return E={next:C(0),throw:C(1),return:C(2)},typeof Symbol=="function"&&(E[Symbol.iterator]=function(){return this}),E;function C(M){return function(_){return P([M,_])}}function P(M){if(f)throw new TypeError("Generator is already executing.");for(;j;)try{if(f=1,m&&(v=M[0]&2?m.return:M[0]?m.throw||((v=m.return)&&v.call(m),0):m.next)&&!(v=v.call(m,M[1])).done)return v;switch(m=0,v&&(M=[M[0]&2,v.value]),M[0]){case 0:case 1:v=M;break;case 4:return j.label++,{value:M[1],done:!1};case 5:j.label++,m=M[1],M=[0];continue;case 7:M=j.ops.pop(),j.trys.pop();continue;default:if(v=j.trys,!(v=v.length>0&&v[v.length-1])&&(M[0]===6||M[0]===2)){j=0;continue}if(M[0]===3&&(!v||M[1]>v[0]&&M[1]m.length)&&(v=m.length);for(var E=0,j=new Array(v);E=m.length?{done:!0}:{done:!1,value:m[j++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}for(var r={},s=n(78997),x=t(s.keys()),g;!(g=x()).done;){var d=g.value;if(!(d==="index"||d==="base"))for(var a=t(Object.entries(s(d))),l;!(l=a()).done;){var i=l.value,c=i[0],f=i[1];r[c]=f}}u.default=r},12624:function(O,u,n){"use strict";n.r(u),n.d(u,{GENDERS:function(){return t},Gender:function(){return e}});var e;(function(r){r.Male="male",r.Female="female",r.Other="plural",r.Other2="neuter"})(e||(e={}));var o,t=(o={},o.male={icon:"mars",text:"He/Him"},o.female={icon:"venus",text:"She/Her"},o.plural={icon:"transgender",text:"They/Them"},o.neuter={icon:"neuter",text:"It/Its"},o)},96824:function(O,u,n){"use strict";n.r(u),n.d(u,{PressureRegulator:function(){return s}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),s=function(x){var g=(0,o.Oc)(),d=g.act,a=g.data,l=a.on,i=a.pressure_set,c=a.max_pressure,f=a.input_pressure,m=a.output_pressure,v=a.regulate_mode,E=a.set_flow_rate,j=a.last_flow_rate;return(0,e.jsx)(r.p8,{width:470,height:370,children:(0,e.jsxs)(r.p8.Content,{children:[(0,e.jsx)(t.wn,{title:"Status",children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsxs)(t.Ki.Item,{label:"Input Pressure",children:[(0,e.jsx)(t.zv,{value:f/100})," kPa"]}),(0,e.jsxs)(t.Ki.Item,{label:"Output Pressure",children:[(0,e.jsx)(t.zv,{value:m/100})," kPa"]}),(0,e.jsxs)(t.Ki.Item,{label:"Flow Rate",children:[(0,e.jsx)(t.zv,{value:j/10})," L/s"]})]})}),(0,e.jsx)(t.wn,{title:"Controls",buttons:(0,e.jsx)(t.$n,{icon:"power-off",selected:l,onClick:function(){return d("toggle_valve")},children:l?"Unlocked":"Closed"}),children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Pressure Regulation",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n,{icon:"power-off",selected:v===0,onClick:function(){return d("regulate_mode",{mode:"off"})},children:"Off"}),(0,e.jsx)(t.$n,{icon:"compress-arrows-alt",selected:v===1,onClick:function(){return d("regulate_mode",{mode:"input"})},children:"Input"}),(0,e.jsx)(t.$n,{icon:"expand-arrows-alt",selected:v===2,onClick:function(){return d("regulate_mode",{mode:"output"})},children:"Output"})]})}),(0,e.jsxs)(t.Ki.Item,{label:"Desired Output Pressure",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n,{icon:"compress-arrows-alt",onClick:function(){return d("set_press",{press:"min"})},children:"MIN"}),(0,e.jsx)(t.$n,{icon:"expand-arrows-alt",onClick:function(){return d("set_press",{press:"max"})},children:"MAX"}),(0,e.jsx)(t.$n,{icon:"wrench",onClick:function(){return d("set_press",{press:"set"})},children:"SET"})]}),children:[i/100," kPa"]}),(0,e.jsxs)(t.Ki.Item,{label:"Flow Rate Limit",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n,{icon:"compress-arrows-alt",onClick:function(){return d("set_flow_rate",{press:"min"})},children:"MIN"}),(0,e.jsx)(t.$n,{icon:"expand-arrows-alt",onClick:function(){return d("set_flow_rate",{press:"max"})},children:"MAX"}),(0,e.jsx)(t.$n,{icon:"wrench",onClick:function(){return d("set_flow_rate",{press:"set"})},children:"SET"})]}),children:[E/10," L/s"]})]})})]})})}},56257:function(O,u,n){"use strict";n.r(u),n.d(u,{PrisonerManagement:function(){return s}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),s=function(x){var g=(0,o.Oc)(),d=g.act,a=g.data,l=a.locked,i=a.chemImplants,c=a.trackImplants;return(0,e.jsx)(r.p8,{width:500,height:400,children:(0,e.jsx)(r.p8.Content,{scrollable:!0,children:l&&(0,e.jsxs)(t.wn,{title:"Locked",textAlign:"center",children:["This interface is currently locked.",(0,e.jsx)(t.az,{children:(0,e.jsx)(t.$n,{icon:"unlock",onClick:function(){return d("lock")},children:"Unlock"})})]})||(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.wn,{title:"Interface Lock",buttons:(0,e.jsx)(t.$n,{icon:"lock",onClick:function(){return d("lock")},children:"Lock Interface"})}),(0,e.jsx)(t.wn,{title:"Chemical Implants",children:i.length&&(0,e.jsxs)(t.XI,{children:[(0,e.jsxs)(t.XI.Row,{header:!0,children:[(0,e.jsx)(t.XI.Cell,{textAlign:"center",children:"Host"}),(0,e.jsx)(t.XI.Cell,{textAlign:"center",children:"Units Remaining"}),(0,e.jsx)(t.XI.Cell,{textAlign:"center",children:"Inject"})]}),i.map(function(f){return(0,e.jsxs)(t.XI.Row,{children:[(0,e.jsx)(t.XI.Cell,{textAlign:"center",children:f.host}),(0,e.jsxs)(t.XI.Cell,{textAlign:"center",children:[f.units,"u remaining"]}),(0,e.jsxs)(t.XI.Cell,{textAlign:"center",children:[(0,e.jsx)(t.$n,{onClick:function(){return d("inject",{imp:f.ref,val:1})},children:"(1)"}),(0,e.jsx)(t.$n,{onClick:function(){return d("inject",{imp:f.ref,val:5})},children:"(5)"}),(0,e.jsx)(t.$n,{onClick:function(){return d("inject",{imp:f.ref,val:10})},children:"(10)"})]})]},f.ref)})]})||(0,e.jsx)(t.az,{color:"average",children:"No chemical implants found."})}),(0,e.jsx)(t.wn,{title:"Tracking Implants",children:c.length&&(0,e.jsxs)(t.XI,{children:[(0,e.jsxs)(t.XI.Row,{header:!0,children:[(0,e.jsx)(t.XI.Cell,{textAlign:"center",children:"Host"}),(0,e.jsx)(t.XI.Cell,{textAlign:"center",children:"Location"}),(0,e.jsx)(t.XI.Cell,{textAlign:"center",children:"Message"})]}),c.map(function(f){return(0,e.jsxs)(t.XI.Row,{children:[(0,e.jsxs)(t.XI.Cell,{textAlign:"center",children:[f.host," (",f.id,")"]}),(0,e.jsx)(t.XI.Cell,{textAlign:"center",children:f.loc}),(0,e.jsx)(t.XI.Cell,{textAlign:"center",children:(0,e.jsx)(t.$n,{onClick:function(){return d("warn",{imp:f.ref})},children:"Message"})})]},f.ref)})]})||(0,e.jsx)(t.az,{color:"average",children:"No chemical implants found."})})]})})})}},13353:function(O,u,n){"use strict";n.r(u),n.d(u,{RCONBreakerList:function(){return r}});var e=n(20462),o=n(7081),t=n(88569),r=function(s){var x=(0,o.Oc)(),g=x.act,d=x.data,a=d.breaker_info;return(0,e.jsx)(t.wn,{title:"Breakers",children:(0,e.jsx)(t.Ki,{children:a?a.map(function(l){return(0,e.jsx)(t.Ki.Item,{label:l.RCON_tag,buttons:(0,e.jsx)(t.$n,{icon:"power-off",selected:l.enabled,color:l.enabled?null:"bad",onClick:function(){return g("toggle_breaker",{breaker:l.RCON_tag})},children:l.enabled?"Enabled":"Disabled"})},l.RCON_tag)}):(0,e.jsx)(t.Ki.Item,{color:"bad",children:"No breakers detected."})})})}},72778:function(O,u,n){"use strict";n.r(u),n.d(u,{RCONContent:function(){return x}});var e=n(20462),o=n(61358),t=n(88569),r=n(13353),s=n(14313),x=function(g){var d=(0,o.useState)(0),a=d[0],l=d[1],i=[];return i[0]=(0,e.jsx)(s.RCONSmesList,{}),i[1]=(0,e.jsx)(r.RCONBreakerList,{}),(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(t.tU,{children:[(0,e.jsxs)(t.tU.Tab,{selected:a===0,onClick:function(){return l(0)},children:[(0,e.jsx)(t.In,{name:"power-off"})," SMESs"]},"SMESs"),(0,e.jsxs)(t.tU.Tab,{selected:a===1,onClick:function(){return l(1)},children:[(0,e.jsx)(t.In,{name:"bolt"})," Breakers"]},"Breakers")]}),(0,e.jsx)(t.az,{m:2,children:i[a]||""})]})}},54323:function(O,u,n){"use strict";n.r(u),n.d(u,{SMESControls:function(){return g}});var e=n(20462),o=n(61282),t=n(7081),r=n(88569),s=n(41242),x=n(78784),g=function(d){var a=(0,t.Oc)().act,l=d.way,i=d.smes,c=i.inputAttempt,f=i.inputting,m=i.inputLevel,v=i.inputLevelMax,E=i.inputAvailable,j=i.outputAttempt,C=i.outputting,P=i.outputLevel,M=i.outputLevelMax,_=i.outputUsed,S=i.RCON_tag,T=0,b=0,L=0,W,k,$,w,V,F="";switch(l){case"input":T=m,b=v,L=E,W="IN",k="smes_in_toggle",$="smes_in_set",w=c,V=c?f?"green":"yellow":void 0,F=c?f?"The SMES is drawing power.":"The SMES lacks power.":"The SMES input is off.";break;case"output":T=P,b=M,L=_,W="OUT",k="smes_out_toggle",$="smes_out_set",w=j,V=j?C?"green":"yellow":void 0,F=j?C?"The SMES is outputting power.":"The SMES lacks any draw.":"The SMES output is off.";break}return(0,e.jsxs)(r.BJ,{fill:!0,children:[(0,e.jsx)(r.BJ.Item,{basis:"20%",children:(0,o.ZH)(l)}),(0,e.jsx)(r.BJ.Item,{grow:1,children:(0,e.jsxs)(r.BJ,{children:[(0,e.jsx)(r.BJ.Item,{children:(0,e.jsx)(r.$n,{icon:"power-off",color:V,tooltip:F,onClick:function(){return a(k,{smes:S})}})}),(0,e.jsxs)(r.BJ.Item,{children:[(0,e.jsx)(r.$n,{icon:"fast-backward",disabled:T===0,onClick:function(){return a($,{target:"min",smes:S})}}),(0,e.jsx)(r.$n,{icon:"backward",disabled:T===0,onClick:function(){return a($,{adjust:-1e4,smes:S})}})]}),(0,e.jsx)(r.BJ.Item,{grow:1,children:(0,e.jsx)(r.Ap,{value:T/x.POWER_MUL,fillValue:L/x.POWER_MUL,minValue:0,maxValue:b/x.POWER_MUL,step:5,stepPixelSize:4,format:function(X){return(0,s.d5)(L,1)+"/"+(0,s.d5)(X*x.POWER_MUL,1)},onDrag:function(X,Z){return a($,{target:Z*x.POWER_MUL,smes:S})}})}),(0,e.jsxs)(r.BJ.Item,{children:[(0,e.jsx)(r.$n,{icon:"forward",disabled:T===b,onClick:function(){return a($,{adjust:1e4,smes:S})}}),(0,e.jsx)(r.$n,{icon:"fast-forward",disabled:T===b,onClick:function(){return a($,{target:"max",smes:S})}})]})]})})]})}},46380:function(O,u,n){"use strict";n.r(u),n.d(u,{SMESItem:function(){return s}});var e=n(20462),o=n(4089),t=n(88569),r=n(54323),s=function(x){var g=x.smes,d=g.capacityPercent,a=g.capacity,l=g.charge,i=g.RCON_tag;return(0,e.jsxs)(t.BJ,{vertical:!0,children:[(0,e.jsx)(t.BJ.Item,{children:(0,e.jsxs)(t.BJ,{fill:!0,justify:"space-between",children:[(0,e.jsx)(t.BJ.Item,{flexBasis:"40%",fontSize:1.2,children:i}),(0,e.jsx)(t.BJ.Item,{grow:1,children:(0,e.jsx)(t.z2,{value:d*.01,ranges:{good:[.5,1/0],average:[.15,.5],bad:[-1/0,.15]},children:(0,o.Mg)(l/(1e3*60),1)+"kWh / "+(0,o.Mg)(a/(1e3*60))+"kWh ("+d+"%)"})})]})}),(0,e.jsx)(t.BJ.Item,{children:(0,e.jsx)(r.SMESControls,{smes:x.smes,way:"input"})}),(0,e.jsx)(t.BJ.Item,{children:(0,e.jsx)(r.SMESControls,{smes:x.smes,way:"output"})}),(0,e.jsx)(t.BJ.Divider,{})]})}},14313:function(O,u,n){"use strict";n.r(u),n.d(u,{RCONSmesList:function(){return s}});var e=n(20462),o=n(7081),t=n(88569),r=n(46380),s=function(x){var g=(0,o.Oc)(),d=g.act,a=g.data,l=a.smes_info,i=a.pages,c=a.current_page,f=function(m){return m()};return(0,e.jsxs)(t.wn,{title:"SMESs (Page "+c+")",children:[(0,e.jsx)(t.BJ,{vertical:!0,children:l.map(function(m){return(0,e.jsx)(t.BJ.Item,{children:(0,e.jsx)(r.SMESItem,{smes:m})},m.RCON_tag)})}),"Page Selection:",(0,e.jsx)("br",{}),f(function(){for(var m=function(j){v.push((0,e.jsx)(t.$n,{selected:c===j,onClick:function(){return d("set_smes_page",{index:j})},children:j},j))},v=[],E=1;E=2?(0,e.jsx)(r.az,{color:"bad",children:"-- MODULE DESTROYED --"}):(0,e.jsxs)(r.so,{spacing:1,children:[(0,e.jsxs)(r.so.Item,{grow:1,children:[(0,e.jsxs)(r.az,{color:"average",children:["Engage: ",m.engagecost]}),(0,e.jsxs)(r.az,{color:"average",children:["Active: ",m.activecost]}),(0,e.jsxs)(r.az,{color:"average",children:["Passive: ",m.passivecost]})]}),(0,e.jsx)(r.so.Item,{grow:1,children:m.desc})]}),m.charges?(0,e.jsx)(r.so.Item,{children:(0,e.jsx)(r.wn,{title:"Module Charges",children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Selected",children:(0,o.ZH)(m.chargetype)}),m.charges.map(function(E,j){return(0,e.jsx)(r.Ki.Item,{label:(0,o.ZH)(E.caption),children:(0,e.jsx)(r.$n,{selected:m.realchargetype===E.index,icon:"arrow-right",onClick:function(){return d("interact_module",{module:m.index,module_mode:"select_charge_type",charge_type:E.index})}})},E.caption)})]})})}):""]},v)})]})}},72273:function(O,u,n){"use strict";n.r(u),n.d(u,{RIGSuitStatus:function(){return r}});var e=n(20462),o=n(7081),t=n(88569),r=function(s){var x=(0,o.Oc)(),g=x.act,d=x.data,a=d.chargestatus,l=d.charge,i=d.maxcharge,c=d.aioverride,f=d.sealing,m=d.sealed,v=d.cooling,E=d.emagged,j=d.securitycheck,C=d.coverlock,P=(0,e.jsx)(t.$n,{icon:f?"redo":m?"power-off":"lock-open",iconSpin:f,disabled:f,selected:m,onClick:function(){return g("toggle_seals")},children:"Suit "+(f?"seals working...":m?"is Active":"is Inactive")}),M=(0,e.jsx)(t.$n,{icon:"power-off",selected:v,onClick:function(){return g("toggle_cooling")},children:"Suit Cooling "+(v?"is Active":"is Inactive")}),_=(0,e.jsx)(t.$n,{selected:c,icon:"robot",onClick:function(){return g("toggle_ai_control")},children:"AI Control "+(c?"Enabled":"Disabled")});return(0,e.jsx)(t.wn,{title:"Status",buttons:(0,e.jsxs)(e.Fragment,{children:[P,_,M]}),children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Power Supply",children:(0,e.jsxs)(t.z2,{minValue:0,maxValue:50,value:a,ranges:{good:[35,1/0],average:[15,35],bad:[-1/0,15]},children:[l," / ",i]})}),(0,e.jsx)(t.Ki.Item,{label:"Cover Status",children:E||!j?(0,e.jsx)(t.az,{color:"bad",children:"Error - Maintenance Lock Control Offline"}):(0,e.jsx)(t.$n,{icon:C?"lock":"lock-open",onClick:function(){return g("toggle_suit_lock")},children:C?"Locked":"Unlocked"})})]})})}},62938:function(O,u,n){"use strict";n.r(u),n.d(u,{RIGSuit:function(){return d}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),s=n(57483),x=n(24760),g=n(72273),d=function(a){var l=(0,o.Oc)().data,i=l.interfacelock,c=l.malf,f=l.aicontrol,m=l.ai,v=null;return i||c?v=(0,e.jsx)(t.az,{color:"bad",children:"--HARDSUIT INTERFACE OFFLINE--"}):!m&&f&&(v=(0,e.jsx)(t.az,{color:"bad",children:"-- HARDSUIT CONTROL OVERRIDDEN BY AI --"})),(0,e.jsx)(r.p8,{height:480,width:550,children:(0,e.jsx)(r.p8.Content,{scrollable:!0,children:v||(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(g.RIGSuitStatus,{}),(0,e.jsx)(s.RIGSuitHardware,{}),(0,e.jsx)(x.RIGSuitModules,{})]})})})}},12671:function(O,u,n){"use strict";n.r(u)},36863:function(O,u,n){"use strict";n.r(u),n.d(u,{Radio:function(){return g}});var e=n(20462),o=n(4089),t=n(7081),r=n(88569),s=n(79500),x=n(15581),g=function(d){var a=(0,t.Oc)(),l=a.act,i=a.data,c=i.rawfreq,f=i.minFrequency,m=i.maxFrequency,v=i.listening,E=i.broadcasting,j=i.subspace,C=i.subspaceSwitchable,P=i.chan_list,M=i.loudspeaker,_=i.mic_cut,S=i.spk_cut,T=i.useSyndMode,b=s.Fo.find(function(W){return W.freq===Number(c)}),L=156;return P&&P.length>0?L+=P.length*28+6:L+=24,C&&(L+=38),(0,e.jsx)(x.p8,{width:310,height:L,theme:T?"syndicate":"",children:(0,e.jsxs)(x.p8.Content,{children:[(0,e.jsx)(r.wn,{children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsxs)(r.Ki.Item,{label:"Frequency",children:[(0,e.jsx)(r.Q7,{animated:!0,unit:"kHz",step:.2,stepPixelSize:10,minValue:f/10,maxValue:m/10,value:c/10,format:function(W){return(0,o.Mg)(W,1)},onDrag:function(W){return l("setFrequency",{freq:(0,o.LI)(W*10,0)})}}),b&&(0,e.jsxs)(r.az,{inline:!0,color:b.color,ml:2,children:["[",b.name,"]"]})]}),(0,e.jsxs)(r.Ki.Item,{label:"Audio",children:[(0,e.jsx)(r.$n,{textAlign:"center",width:"37px",icon:v?"volume-up":"volume-mute",selected:v,disabled:S,onClick:function(){return l("listen")}}),(0,e.jsx)(r.$n,{textAlign:"center",width:"37px",icon:E?"microphone":"microphone-slash",selected:E,disabled:_,onClick:function(){return l("broadcast")}}),!!C&&(0,e.jsx)(r.az,{children:(0,e.jsx)(r.$n,{icon:"bullhorn",selected:j,onClick:function(){return l("subspace")},children:"Subspace Tx "+(j?"ON":"OFF")})}),!!C&&(0,e.jsx)(r.az,{children:(0,e.jsx)(r.$n,{icon:M?"volume-up":"volume-mute",selected:M,onClick:function(){return l("toggleLoudspeaker")},children:"Loudspeaker"})})]})]})}),(0,e.jsxs)(r.wn,{title:"Channels",children:[(!P||P.length===0)&&(0,e.jsx)(r.az,{inline:!0,color:"bad",children:"No channels detected."}),(0,e.jsx)(r.Ki,{children:P?P.map(function(W){var k=s.Fo.find(function(w){return w.freq===Number(W.freq)}),$="default";return k&&($=k.color),(0,e.jsx)(r.Ki.Item,{label:W.display_name,labelColor:$,textAlign:"right",children:W.secure_channel&&j?(0,e.jsx)(r.$n,{icon:W.sec_channel_listen?"square-o":"check-square-o",selected:!W.sec_channel_listen,onClick:function(){return l("channel",{channel:W.chan})},children:W.sec_channel_listen?"Off":"On"}):(0,e.jsx)(r.$n,{selected:W.chan===c,onClick:function(){return l("specFreq",{channel:W.chan})},children:"Switch"})},W.chan)}):null})]})]})})}},49040:function(O,u,n){"use strict";n.r(u),n.d(u,{LayerSection:function(){return s}});var e=n(20462),o=n(65380),t=n(7081),r=n(88569),s=function(x){var g=(0,t.Oc)(),d=g.act,a=g.data,l=a.category,i=a.piping_layer,c=a.pipe_layers,f=a.preview_rows.flatMap(function(m){return m.previews});return(0,e.jsxs)(r.wn,{fill:!0,width:7.5,children:[l===0&&(0,e.jsx)(r.BJ,{vertical:!0,mb:1,children:Object.keys(c).map(function(m){return(0,e.jsx)(r.BJ.Item,{my:0,children:(0,e.jsx)(r.$n.Checkbox,{checked:c[m]===i,onClick:function(){return d("piping_layer",{piping_layer:c[m]})},children:m})},m)})}),(0,e.jsx)(r.az,{width:"120px",children:f.map(function(m){return(0,e.jsx)(r.$n,{ml:0,tooltip:m.dir_name,selected:m.selected,style:{width:"40px",height:"40px",padding:"0"},onClick:function(){return d("setdir",{dir:m.dir,flipped:m.flipped})},children:(0,e.jsx)(r.az,{className:(0,o.Ly)(["pipes32x32",m.dir+"-"+m.icon_state]),style:{transform:"scale(1.5) translate(9.5%, 9.5%)"}})},m.dir)})})]})}},22915:function(O,u,n){"use strict";n.r(u),n.d(u,{PipeTypeSection:function(){return x}});var e=n(20462),o=n(61358),t=n(7081),r=n(88569),s=n(66947),x=function(g){var d=(0,t.Oc)(),a=d.act,l=d.data,i=l.categories,c=i===void 0?[]:i,f=(0,o.useState)("categoryName"),m=f[0],v=f[1],E=c.find(function(j){return j.cat_name===m})||c[0];return(0,e.jsxs)(r.wn,{fill:!0,scrollable:!0,children:[(0,e.jsx)(r.tU,{fluid:!0,children:c.map(function(j,C){return(0,e.jsx)(r.tU.Tab,{icon:s.ICON_BY_CATEGORY_NAME[j.cat_name],selected:j.cat_name===E.cat_name,onClick:function(){return v(j.cat_name)},children:j.cat_name},j.cat_name)})}),E==null?void 0:E.recipes.map(function(j){return(0,e.jsx)(r.$n.Checkbox,{fluid:!0,ellipsis:!0,checked:j.selected,tooltip:j.pipe_name,onClick:function(){return a("pipe_type",{pipe_type:j.pipe_index,category:E.cat_name})},children:j.pipe_name},j.pipe_index)})]})}},59015:function(O,u,n){"use strict";n.r(u),n.d(u,{SelectionSection:function(){return x}});var e=n(20462),o=n(61282),t=n(7081),r=n(88569),s=n(66947),x=function(g){var d=(0,t.Oc)(),a=d.act,l=d.data,i=l.category,c=l.selected_color,f=l.mode,m=l.paint_colors;return(0,e.jsx)(r.wn,{children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Category",children:s.ROOT_CATEGORIES.map(function(v,E){return(0,e.jsx)(r.$n,{selected:i===E,icon:s.ICON_BY_CATEGORY_NAME[v],color:"transparent",onClick:function(){return a("category",{category:E})},children:v},v)})}),(0,e.jsx)(r.Ki.Item,{label:"Modes",children:(0,e.jsx)(r.BJ,{fill:!0,children:s.TOOLS.map(function(v){return(0,e.jsx)(r.BJ.Item,{grow:!0,children:(0,e.jsx)(r.$n.Checkbox,{checked:f&v.bitmask,fluid:!0,onClick:function(){return a("mode",{mode:v.bitmask})},children:v.name})},v.bitmask)})})}),(0,e.jsxs)(r.Ki.Item,{label:"Color",children:[(0,e.jsx)(r.az,{inline:!0,width:"64px",color:m[c],children:(0,o.ZH)(c)}),Object.keys(m).map(function(v){return(0,e.jsx)(r.BK,{ml:1,color:m[v],onClick:function(){return a("color",{paint_color:v})}},v)})]})]})})}},66947:function(O,u,n){"use strict";n.r(u),n.d(u,{ICON_BY_CATEGORY_NAME:function(){return o},ROOT_CATEGORIES:function(){return e},TOOLS:function(){return t}});var e=["Atmospherics","Disposals"],o={Atmospherics:"wrench",Disposals:"trash-alt","Transit Tubes":"bus",Pipes:"grip-lines","Disposal Pipes":"grip-lines",Devices:"microchip","Heat Exchange":"thermometer-half","Insulated pipes":"snowflake","Station Equipment":"microchip"},t=[{name:"Dispense",bitmask:1},{name:"Connect",bitmask:2},{name:"Destroy",bitmask:4},{name:"Paint",bitmask:8}]},98838:function(O,u,n){"use strict";n.r(u),n.d(u,{RapidPipeDispenser:function(){return g}});var e=n(20462),o=n(88569),t=n(15581),r=n(49040),s=n(22915),x=n(59015),g=function(d){return(0,e.jsx)(t.p8,{width:550,height:570,children:(0,e.jsx)(t.p8.Content,{children:(0,e.jsxs)(o.BJ,{fill:!0,vertical:!0,children:[(0,e.jsx)(o.BJ.Item,{children:(0,e.jsx)(x.SelectionSection,{})}),(0,e.jsx)(o.BJ.Item,{grow:!0,children:(0,e.jsxs)(o.BJ,{fill:!0,children:[(0,e.jsx)(o.BJ.Item,{children:(0,e.jsx)(o.BJ,{vertical:!0,fill:!0,children:(0,e.jsx)(o.BJ.Item,{grow:!0,children:(0,e.jsx)(r.LayerSection,{})})})}),(0,e.jsx)(o.BJ.Item,{grow:!0,children:(0,e.jsx)(s.PipeTypeSection,{})})]})})]})})})}},1963:function(O,u,n){"use strict";n.r(u)},60195:function(O,u,n){"use strict";n.r(u),n.d(u,{RequestConsoleAssistance:function(){return x},RequestConsoleRelay:function(){return g},RequestConsoleSupplies:function(){return s}});var e=n(20462),o=n(7081),t=n(88569),r=n(36219),s=function(d){var a=(0,o.Oc)().data,l=a.department,i=a.supply_dept;return(0,e.jsx)(t.wn,{title:"Supplies",children:(0,e.jsx)(r.RequestConsoleSendMenu,{dept_list:i,department:l})})},x=function(d){var a=(0,o.Oc)().data,l=a.department,i=a.assist_dept;return(0,e.jsx)(t.wn,{title:"Request assistance from another department",children:(0,e.jsx)(r.RequestConsoleSendMenu,{dept_list:i,department:l})})},g=function(d){var a=(0,o.Oc)().data,l=a.department,i=a.info_dept;return(0,e.jsx)(t.wn,{title:"Report Anonymous Information",children:(0,e.jsx)(r.RequestConsoleSendMenu,{dept_list:i,department:l})})}},4584:function(O,u,n){"use strict";n.r(u),n.d(u,{RequestConsoleAnnounce:function(){return d},RequestConsoleMessageAuth:function(){return g},RequestConsoleViewMessages:function(){return x}});var e=n(20462),o=n(61282),t=n(7081),r=n(88569),s=n(34416),x=function(a){var l=(0,t.Oc)(),i=l.act,c=l.data,f=c.message_log;return(0,e.jsx)(r.wn,{title:"Messages",children:f.length&&f.map(function(m,v){return(0,e.jsx)(r.Ki.Item,{label:(0,o.jT)(m[0]),buttons:(0,e.jsx)(r.$n,{icon:"print",onClick:function(){return i("print",{print:v+1})},children:"Print"}),children:(0,o.jT)(m[1])},v)})||(0,e.jsx)(r.az,{children:"No messages."})})},g=function(a){var l=(0,t.Oc)(),i=l.act,c=l.data,f=c.message,m=c.recipient,v=c.priority,E=c.msgStamped,j=c.msgVerified;return(0,e.jsxs)(r.wn,{title:"Message Authentication",children:[(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Message for "+m,children:f}),(0,e.jsx)(r.Ki.Item,{label:"Priority",children:v===2?"High Priority":v===1?"Normal Priority":"Unknown"}),(0,e.jsx)(r.Ki.Item,{label:"Validated By",color:j?"good":"bad",children:(0,o.jT)(j)||"No Validation"}),(0,e.jsx)(r.Ki.Item,{label:"Stamped By",color:E?"good":"bad",children:(0,o.jT)(E)||"No Stamp"})]}),(0,e.jsx)(r.$n,{mt:1,icon:"share",onClick:function(){return i("department",{department:m})},children:"Send Message"}),(0,e.jsx)(r.$n,{icon:"undo",onClick:function(){return i("setScreen",{setScreen:s.RCS_MAINMENU})},children:"Back"})]})},d=function(a){var l=(0,t.Oc)(),i=l.act,c=l.data,f=c.message,m=c.announceAuth;return(0,e.jsxs)(r.wn,{title:"Send Station-Wide Announcement",children:[m&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.az,{bold:!0,color:"good",mb:1,children:"ID Verified. Authentication Accepted."}),(0,e.jsx)(r.wn,{title:"Message",mt:1,maxHeight:"200px",scrollable:!0,buttons:(0,e.jsx)(r.$n,{ml:1,icon:"pen",onClick:function(){return i("writeAnnouncement")},children:"Edit"}),children:f||"No Message"})]})||(0,e.jsx)(r.az,{bold:!0,color:"bad",mb:1,children:"Swipe your ID card to authenticate yourself."}),(0,e.jsx)(r.$n,{disabled:!f||!m,icon:"share",onClick:function(){return i("sendAnnouncement")},children:"Announce"}),(0,e.jsx)(r.$n,{icon:"undo",onClick:function(){return i("setScreen",{setScreen:s.RCS_MAINMENU})},children:"Back"})]})}},36219:function(O,u,n){"use strict";n.r(u),n.d(u,{RequestConsoleSendFail:function(){return g},RequestConsoleSendMenu:function(){return s},RequestConsoleSendPass:function(){return x}});var e=n(20462),o=n(7081),t=n(88569),r=n(34416),s=function(d){var a=(0,o.Oc)().act,l=d.dept_list,i=d.department;return(0,e.jsx)(t.Ki,{children:l.sort().map(function(c){return c!==i&&(0,e.jsx)(t.Ki.Item,{label:c,buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n,{icon:"envelope-open-text",onClick:function(){return a("write",{write:c,priority:1})},children:"Message"}),(0,e.jsx)(t.$n,{icon:"exclamation-triangle",onClick:function(){return a("write",{write:c,priority:2})},children:"High Priority"})]})})||null})})},x=function(d){var a=(0,o.Oc)(),l=a.act,i=a.data;return(0,e.jsxs)(t.wn,{children:[(0,e.jsx)(t.az,{fontSize:2,color:"good",children:"Message Sent Successfully"}),(0,e.jsx)(t.az,{children:(0,e.jsx)(t.$n,{icon:"arrow-right",onClick:function(){return l("setScreen",{setScreen:r.RCS_MAINMENU})},children:"Continue"})})]})},g=function(d){var a=(0,o.Oc)(),l=a.act,i=a.data;return(0,e.jsxs)(t.wn,{children:[(0,e.jsx)(t.az,{fontSize:1.5,bold:!0,color:"bad",children:"An error occured. Message Not Sent."}),(0,e.jsx)(t.az,{children:(0,e.jsx)(t.$n,{icon:"arrow-right",onClick:function(){return l("setScreen",{setScreen:r.RCS_MAINMENU})},children:"Continue"})})]})}},11986:function(O,u,n){"use strict";n.r(u),n.d(u,{RequestConsoleSettings:function(){return r}});var e=n(20462),o=n(7081),t=n(88569),r=function(s){var x=(0,o.Oc)(),g=x.act,d=x.data,a=d.silent;return(0,e.jsx)(t.wn,{title:"Settings",children:(0,e.jsxs)(t.$n,{selected:!a,icon:a?"volume-mute":"volume-up",onClick:function(){return g("toggleSilent")},children:["Speaker ",a?"OFF":"ON"]})})}},34416:function(O,u,n){"use strict";n.r(u),n.d(u,{RCS_ANNOUNCE:function(){return a},RCS_MAINMENU:function(){return e},RCS_MESSAUTH:function(){return d},RCS_RQASSIST:function(){return o},RCS_RQSUPPLY:function(){return t},RCS_SENDINFO:function(){return r},RCS_SENTFAIL:function(){return x},RCS_SENTPASS:function(){return s},RCS_VIEWMSGS:function(){return g}});var e=0,o=1,t=2,r=3,s=4,x=5,g=6,d=7,a=8},7291:function(O,u,n){"use strict";n.r(u),n.d(u,{RequestConsole:function(){return l}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),s=n(34416),x=n(4584),g=n(36219),d=n(11986),a=n(60195),l=function(i){var c=(0,o.Oc)(),f=c.act,m=c.data,v=m.screen,E=m.newmessagepriority,j=m.announcementConsole,C=[];return C[s.RCS_MAINMENU]=(0,e.jsx)(d.RequestConsoleSettings,{}),C[s.RCS_RQASSIST]=(0,e.jsx)(a.RequestConsoleAssistance,{}),C[s.RCS_RQSUPPLY]=(0,e.jsx)(a.RequestConsoleSupplies,{}),C[s.RCS_SENDINFO]=(0,e.jsx)(a.RequestConsoleRelay,{}),C[s.RCS_SENTPASS]=(0,e.jsx)(g.RequestConsoleSendPass,{}),C[s.RCS_SENTFAIL]=(0,e.jsx)(g.RequestConsoleSendFail,{}),C[s.RCS_VIEWMSGS]=(0,e.jsx)(x.RequestConsoleViewMessages,{}),C[s.RCS_MESSAUTH]=(0,e.jsx)(x.RequestConsoleMessageAuth,{}),C[s.RCS_ANNOUNCE]=(0,e.jsx)(x.RequestConsoleAnnounce,{}),(0,e.jsx)(r.p8,{width:520,height:410,children:(0,e.jsxs)(r.p8.Content,{scrollable:!0,children:[(0,e.jsxs)(t.tU,{children:[(0,e.jsx)(t.tU.Tab,{selected:v===s.RCS_VIEWMSGS,onClick:function(){return f("setScreen",{setScreen:s.RCS_VIEWMSGS})},icon:"envelope-open-text",children:"Messages"}),(0,e.jsx)(t.tU.Tab,{selected:v===s.RCS_RQASSIST,onClick:function(){return f("setScreen",{setScreen:s.RCS_RQASSIST})},icon:"share-square",children:"Assistance"}),(0,e.jsx)(t.tU.Tab,{selected:v===s.RCS_RQSUPPLY,onClick:function(){return f("setScreen",{setScreen:s.RCS_RQSUPPLY})},icon:"share-square",children:"Supplies"}),(0,e.jsx)(t.tU.Tab,{selected:v===s.RCS_SENDINFO,onClick:function(){return f("setScreen",{setScreen:s.RCS_SENDINFO})},icon:"share-square-o",children:"Report"}),j&&(0,e.jsx)(t.tU.Tab,{selected:v===s.RCS_ANNOUNCE,onClick:function(){return f("setScreen",{setScreen:s.RCS_ANNOUNCE})},icon:"volume-up",children:"Announce"})||null,(0,e.jsx)(t.tU.Tab,{selected:v===s.RCS_MAINMENU,onClick:function(){return f("setScreen",{setScreen:s.RCS_MAINMENU})},icon:"cog"})]}),E&&(0,e.jsx)(t.wn,{title:E>1?"NEW PRIORITY MESSAGES":"There are new messages!",color:E>1?"bad":"average",bold:E>1})||null,C[v]||""]})})}},22292:function(O,u,n){"use strict";n.r(u)},99930:function(O,u,n){"use strict";n.r(u),n.d(u,{PaginationChevrons:function(){return g},ResearchConsoleBuildMenu:function(){return x}});var e=n(20462),o=n(61358),t=n(7081),r=n(88569),s=n(69358),x=function(d){var a=(0,t.Oc)(),l=a.act,i=a.data,c=d.target,f=d.designs,m=d.buildName,v=d.buildFiveName;return c?(0,e.jsxs)(r.wn,{title:(0,s.paginationTitle)("Designs",i.builder_page),buttons:(0,e.jsx)(g,{target:"builder_page"}),children:[(0,e.jsx)(r.pd,{fluid:!0,placeholder:"Search for...",value:i.search,onInput:function(E,j){return l("search",{search:j})},mb:1}),f&&f.length?f.map(function(E){return(0,e.jsxs)(o.Fragment,{children:[(0,e.jsxs)(r.so,{width:"100%",justify:"space-between",children:[(0,e.jsx)(r.so.Item,{width:"40%",style:{"word-wrap":"break-all"},children:E.name}),(0,e.jsxs)(r.so.Item,{width:"15%",textAlign:"center",children:[(0,e.jsx)(r.$n,{mb:-1,icon:"wrench",onClick:function(){return l(m,{build:E.id,imprint:E.id})},children:"Build"}),v&&(0,e.jsx)(r.$n,{mb:-1,onClick:function(){return l(v,{build:E.id,imprint:E.id})},children:"x5"})]}),(0,e.jsxs)(r.so.Item,{width:"45%",style:{"word-wrap":"break-all"},children:[(0,e.jsx)(r.az,{inline:!0,color:"label",children:E.mat_list.join(" ")}),(0,e.jsx)(r.az,{inline:!0,color:"average",ml:1,children:E.chem_list.join(" ")})]})]}),(0,e.jsx)(r.cG,{})]},E.id)}):(0,e.jsx)(r.az,{children:"No items could be found matching the parameters (page or search)."})]}):(0,e.jsx)(r.az,{color:"bad",children:"Error"})},g=function(d){var a=(0,t.Oc)().act,l=d.target;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.$n,{icon:"undo",onClick:function(){return a(l,{reset:!0})}}),(0,e.jsx)(r.$n,{icon:"chevron-left",onClick:function(){return a(l,{reverse:-1})}}),(0,e.jsx)(r.$n,{icon:"chevron-right",onClick:function(){return a(l,{reverse:1})}})]})}},23119:function(O,u,n){"use strict";n.r(u),n.d(u,{ResearchConsoleConstructor:function(){return s}});var e=n(20462),o=n(7081),t=n(88569),r=n(95411),s=function(x){var g=(0,o.Oc)(),d=g.act,a=g.data,l=x.name,i=x.matsStates,c=x.onMatsState,f=x.protoTab,m=x.onProtoTab,v=x.linked,E=x.designs;if(!v||!v.present)return(0,e.jsxs)(t.wn,{title:l,children:["No ",l," found."]});var j=v.total_materials,C=v.max_materials,P=v.total_volume,M=v.max_volume,_=v.busy,S=v.mats,T=v.reagents,b=v.queue,L="transparent",W=!1,k="layer-group";_?(k="hammer",L="average",W=!0):b&&b.length&&(k="sync",L="green",W=!0);var $=[];return $[0]=(0,e.jsx)(r.ResearchConsoleConstructorMenue,{name:l,linked:v,designs:E}),$[1]=(0,e.jsx)(r.ResearchConsoleConstructorQueue,{name:l,busy:_,queue:b}),$[2]=(0,e.jsx)(r.ResearchConsoleConstructorMats,{name:l,mats:S,matsStates:i,onMatsState:c}),$[3]=(0,e.jsx)(r.ResearchConsoleConstructorChems,{name:l,reagents:T}),(0,e.jsxs)(t.wn,{title:l,buttons:_&&(0,e.jsx)(t.In,{name:"sync",spin:!0})||null,children:[(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Materials",children:(0,e.jsxs)(t.z2,{value:j,maxValue:C,children:[j," cm\xB3 / ",C," cm\xB3"]})}),(0,e.jsx)(t.Ki.Item,{label:"Chemicals",children:(0,e.jsxs)(t.z2,{value:P,maxValue:M,children:[P,"u / ",M,"u"]})})]}),(0,e.jsxs)(t.tU,{mt:1,children:[(0,e.jsx)(t.tU.Tab,{icon:"wrench",selected:f===0,onClick:function(){return m(0)},children:"Build"}),(0,e.jsx)(t.tU.Tab,{icon:k,iconSpin:W,color:L,selected:f===1,onClick:function(){return m(1)},children:"Queue"}),(0,e.jsx)(t.tU.Tab,{icon:"cookie-bite",selected:f===2,onClick:function(){return m(2)},children:"Mat Storage"}),(0,e.jsx)(t.tU.Tab,{icon:"flask",selected:f===3,onClick:function(){return m(3)},children:"Chem Storage"})]}),$[f]||(0,e.jsx)(t.az,{textColor:"red",children:"Error"})]})}},95411:function(O,u,n){"use strict";n.r(u),n.d(u,{ResearchConsoleConstructorChems:function(){return l},ResearchConsoleConstructorMats:function(){return a},ResearchConsoleConstructorMenue:function(){return g},ResearchConsoleConstructorQueue:function(){return d}});var e=n(20462),o=n(61282),t=n(7081),r=n(88569),s=n(99930);function x(){return x=Object.assign||function(i){for(var c=1;c=150?"good":"bad",inline:!0,children:[(0,e.jsx)(s.In,{name:m.biomass>=150?"circle":"circle-o"}),"\xA0",m.biomass]}),E]},v)}):""}},88315:function(O,u,n){"use strict";n.r(u),n.d(u,{ResleevingConsolePodSleevers:function(){return s}});var e=n(20462),o=n(31200),t=n(7081),r=n(88569),s=function(x){var g=(0,t.Oc)(),d=g.act,a=g.data,l=a.sleevers,i=a.spods,c=a.selected_sleever;return l&&l.length?l.map(function(f,m){return(0,e.jsxs)(r.az,{width:"64px",textAlign:"center",inline:!0,mr:"0.5rem",children:[(0,e.jsx)(r._V,{src:(0,o.l)("sleeve_"+(f.occupied?"occupied":"empty")+".gif"),style:{width:"100%"}}),(0,e.jsx)(r.az,{color:f.occupied?"label":"bad",children:f.name}),(0,e.jsx)(r.$n,{selected:c===f.sleever,icon:c===f.sleever&&"check",mt:i&&i.length?"3rem":"1.5rem",onClick:function(){return d("selectsleever",{ref:f.sleever})},children:"Select"})]},m)}):""}},50123:function(O,u,n){"use strict";n.r(u),n.d(u,{ResleevingConsolePodSpods:function(){return x}});var e=n(20462),o=n(4089),t=n(31200),r=n(7081),s=n(88569),x=function(g){var d=(0,r.Oc)(),a=d.act,l=d.data,i=l.spods,c=l.selected_printer;return i&&i.length?i.map(function(f,m){var v;return f.status==="cloning"?v=(0,e.jsx)(s.z2,{minValue:0,maxValue:1,value:f.progress/100,ranges:{good:[.75,1/0],average:[.25,.75],bad:[-1/0,.25]},mt:"0.5rem",children:(0,e.jsx)(s.az,{textAlign:"center",children:(0,o.Mg)(f.progress)+"%"})}):f.status==="mess"?v=(0,e.jsx)(s.az,{bold:!0,color:"bad",mt:"0.5rem",children:"ERROR"}):v=(0,e.jsx)(s.$n,{selected:c===f.spod,icon:c===f.spod&&"check",mt:"0.5rem",onClick:function(){return a("selectprinter",{ref:f.spod})},children:"Select"}),(0,e.jsxs)(s.az,{width:"64px",textAlign:"center",inline:!0,mr:"0.5rem",children:[(0,e.jsx)(s._V,{src:(0,t.l)("synthprinter"+(f.busy?"_working":"")+".gif"),style:{width:"100%"}}),(0,e.jsx)(s.az,{color:"label",children:f.name}),(0,e.jsxs)(s.az,{bold:!0,color:f.steel>=15e3?"good":"bad",inline:!0,children:[(0,e.jsx)(s.In,{name:f.steel>=15e3?"circle":"circle-o"}),"\xA0",f.steel]}),(0,e.jsxs)(s.az,{bold:!0,color:f.glass>=15e3?"good":"bad",inline:!0,children:[(0,e.jsx)(s.In,{name:f.glass>=15e3?"circle":"circle-o"}),"\xA0",f.glass]}),v]},m)}):""}},27529:function(O,u,n){"use strict";n.r(u),n.d(u,{ResleevingConsoleRecords:function(){return r}});var e=n(20462),o=n(7081),t=n(88569),r=function(s){var x=(0,o.Oc)().act,g=s.records,d=s.actToDo;return g.length?(0,e.jsx)(t.az,{mt:"0.5rem",children:g.map(function(a,l){return(0,e.jsx)(t.$n,{icon:"user",mb:"0.5rem",onClick:function(){return x(d,{ref:a.recref})},children:a.name},l)})}):(0,e.jsx)(t.so,{height:"100%",mt:"0.5rem",children:(0,e.jsxs)(t.so.Item,{grow:"1",align:"center",textAlign:"center",color:"label",children:[(0,e.jsx)(t.In,{name:"user-slash",mb:"0.5rem",size:5}),(0,e.jsx)("br",{}),"No records found."]})})}},60009:function(O,u,n){"use strict";n.r(u),n.d(u,{ResleevingConsoleStatus:function(){return r}});var e=n(20462),o=n(7081),t=n(88569),r=function(s){var x=(0,o.Oc)().data,g=x.pods,d=x.spods,a=x.sleevers;return(0,e.jsx)(t.wn,{title:"Status",children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Pods",children:g&&g.length?(0,e.jsxs)(t.az,{color:"good",children:[g.length," connected"]}):(0,e.jsx)(t.az,{color:"bad",children:"None connected!"})}),(0,e.jsx)(t.Ki.Item,{label:"SynthFabs",children:d&&d.length?(0,e.jsxs)(t.az,{color:"good",children:[d.length," connected"]}):(0,e.jsx)(t.az,{color:"bad",children:"None connected!"})}),(0,e.jsx)(t.Ki.Item,{label:"Sleevers",children:a&&a.length?(0,e.jsxs)(t.az,{color:"good",children:[a.length," Connected"]}):(0,e.jsx)(t.az,{color:"bad",children:"None connected!"})})]})})}},87999:function(O,u,n){"use strict";n.r(u),n.d(u,{ResleevingConsoleCoreDump:function(){return r},ResleevingConsoleDiskPrep:function(){return s}});var e=n(20462),o=n(7081),t=n(88569),r=function(x){return(0,e.jsx)(t.Rr,{children:(0,e.jsxs)(t.so,{direction:"column",justify:"space-evenly",align:"center",children:[(0,e.jsx)(t.so.Item,{grow:1,children:(0,e.jsx)(t.In,{size:12,color:"bad",name:"exclamation-triangle"})}),(0,e.jsx)(t.so.Item,{grow:1,color:"bad",mt:5,children:(0,e.jsx)("h2",{children:"TransCore dump completed. Resleeving offline."})})]})})},s=function(x){var g=(0,o.Oc)().act;return(0,e.jsxs)(t.Rr,{textAlign:"center",children:[(0,e.jsx)(t.az,{color:"bad",children:(0,e.jsx)("h1",{children:"TRANSCORE DUMP"})}),(0,e.jsx)(t.az,{color:"bad",children:(0,e.jsx)("h2",{children:"!!WARNING!!"})}),(0,e.jsx)(t.az,{color:"bad",children:"This will transfer all minds to the dump disk, and the TransCore will be made unusable until post-shift maintenance! This should only be used in emergencies!"}),(0,e.jsx)(t.az,{mt:4,children:(0,e.jsx)(t.$n,{icon:"eject",color:"good",onClick:function(){return g("ejectdisk")},children:"Eject Disk"})}),(0,e.jsx)(t.az,{mt:4,children:(0,e.jsx)(t.$n.Confirm,{icon:"exclamation-triangle",confirmIcon:"exclamation-triangle",confirmContent:"Disable Transcore?",color:"bad",onClick:function(){return g("coredump")},children:"Core Dump"})})]})}},69163:function(O,u,n){"use strict";n.r(u),n.d(u,{MENU_BODY:function(){return o},MENU_MAIN:function(){return e},MENU_MIND:function(){return t}});var e=1,o=2,t=3},86686:function(O,u,n){"use strict";n.r(u),n.d(u,{ResleevingConsole:function(){return i}});var e=n(20462),o=n(7081),t=n(88569),r=n(86471),s=n(15581),x=n(35216),g=n(60009),d=n(87999),a=n(73509),l=n(769),i=function(c){var f=(0,o.Oc)().data,m=f.coredumped,v=f.emergency,E=(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(x.ResleevingConsoleTemp,{}),(0,e.jsx)(g.ResleevingConsoleStatus,{}),(0,e.jsx)(x.ResleevingConsoleNavigation,{}),(0,e.jsx)(t.wn,{noTopPadding:!0,flexGrow:!0,children:(0,e.jsx)(x.ResleevingConsoleBody,{})})]});return m&&(E=(0,e.jsx)(d.ResleevingConsoleCoreDump,{})),v&&(E=(0,e.jsx)(d.ResleevingConsoleDiskPrep,{})),(0,r.modalRegisterBodyOverride)("view_b_rec",a.viewBodyRecordModalBodyOverride),(0,r.modalRegisterBodyOverride)("view_m_rec",l.viewMindRecordModalBodyOverride),(0,e.jsxs)(s.p8,{width:640,height:520,children:[(0,e.jsx)(r.ComplexModal,{maxWidth:"75%",maxHeight:"75%"}),(0,e.jsx)(s.p8.Content,{className:"Layout__content--flexColumn",children:E})]})}},43795:function(O,u,n){"use strict";n.r(u)},73509:function(O,u,n){"use strict";n.r(u),n.d(u,{viewBodyRecordModalBodyOverride:function(){return r}});var e=n(20462),o=n(7081),t=n(88569),r=function(s){var x=(0,o.Oc)().act,g=s.args,d=g.activerecord,a=g.realname,l=g.species,i=g.sex,c=g.mind_compat,f=g.synthetic,m=g.oocnotes,v=g.can_grow_active;return(0,e.jsx)(t.wn,{m:"-1rem",pb:"1rem",title:"Body Record ("+a+")",buttons:(0,e.jsx)(t.$n,{icon:"times",color:"red",onClick:function(){return x("modal_close")}}),children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Name",children:a}),(0,e.jsx)(t.Ki.Item,{label:"Species",children:l}),(0,e.jsx)(t.Ki.Item,{label:"Bio. Sex",children:i}),(0,e.jsx)(t.Ki.Item,{label:"Mind Compat",children:c}),(0,e.jsx)(t.Ki.Item,{label:"Synthetic",children:f?"Yes":"No"}),(0,e.jsx)(t.Ki.Item,{label:"OOC Notes",children:(0,e.jsx)(t.wn,{style:{wordBreak:"break-all",height:"100px"},scrollable:!0,children:m})}),(0,e.jsx)(t.Ki.Item,{label:"Actions",children:(0,e.jsx)(t.$n,{disabled:!v,icon:"user-plus",onClick:function(){return x("create",{ref:d})},children:f?"Build":"Grow"})})]})})}},769:function(O,u,n){"use strict";n.r(u),n.d(u,{viewMindRecordModalBodyOverride:function(){return r}});var e=n(20462),o=n(7081),t=n(88569),r=function(s){var x=(0,o.Oc)().act,g=s.args,d=g.activerecord,a=g.realname,l=g.obviously_dead,i=g.oocnotes,c=g.can_sleeve_active;return(0,e.jsx)(t.wn,{m:"-1rem",pb:"1rem",title:"Mind Record ("+a+")",buttons:(0,e.jsx)(t.$n,{icon:"times",color:"red",onClick:function(){return x("modal_close")}}),children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Name",children:a}),(0,e.jsx)(t.Ki.Item,{label:"Status",children:l}),(0,e.jsxs)(t.Ki.Item,{label:"Actions",children:[(0,e.jsx)(t.$n,{disabled:!c,icon:"user-plus",onClick:function(){return x("sleeve",{ref:d,mode:1})},children:"Sleeve"}),(0,e.jsx)(t.$n,{icon:"user-plus",onClick:function(){return x("sleeve",{ref:d,mode:2})},children:"Card"})]}),(0,e.jsx)(t.Ki.Item,{label:"OOC Notes",children:(0,e.jsx)(t.wn,{style:{wordBreak:"break-all",height:"100px"},scrollable:!0,children:i})})]})})}},18313:function(O,u,n){"use strict";n.r(u),n.d(u,{ResleevingPod:function(){return s}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),s=function(x){var g=(0,o.Oc)().data,d=g.occupied,a=g.name,l=g.health,i=g.maxHealth,c=g.stat,f=g.mindStatus,m=g.mindName,v=g.resleeveSick,E=g.initialSick;return(0,e.jsx)(r.p8,{width:300,height:350,children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsx)(t.wn,{title:"Occupant",children:d?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Name",children:a}),(0,e.jsx)(t.Ki.Item,{label:"Health",children:c===2?(0,e.jsx)(t.az,{color:"bad",children:"DEAD"}):c===1?(0,e.jsx)(t.az,{color:"average",children:"Unconscious"}):(0,e.jsxs)(t.z2,{ranges:{good:[.5,1/0],average:[.25,.5],bad:[-1/0,.25]},value:l/i,children:[l,"%"]})}),(0,e.jsx)(t.Ki.Item,{label:"Mind Status",children:f?"Present":"Missing"}),f?(0,e.jsx)(t.Ki.Item,{label:"Mind Occupying",children:m}):""]}),v?(0,e.jsxs)(t.az,{color:"average",mt:3,children:["Warning: Resleeving Sickness detected.",E?(0,e.jsxs)(e.Fragment,{children:[" ","Motion Sickness also detected. Please allow the newly resleeved person a moment to get their bearings. This warning will disappear when Motion Sickness is no longer detected."]}):""]}):""]}):(0,e.jsx)(t.az,{bold:!0,m:1,children:"Unoccupied."})})})})}},68297:function(O,u,n){"use strict";n.r(u),n.d(u,{RoboticsControlConsole:function(){return s}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),s=function(g){var d=(0,o.Oc)(),a=d.act,l=d.data,i=l.can_hack,c=l.safety,f=l.show_detonate_all,m=l.cyborgs,v=m===void 0?[]:m,E=l.auth;return(0,e.jsx)(r.p8,{width:500,height:460,children:(0,e.jsxs)(r.p8.Content,{scrollable:!0,children:[!!f&&(0,e.jsxs)(t.wn,{title:"Emergency Self Destruct",children:[(0,e.jsx)(t.$n,{icon:c?"lock":"unlock",selected:c,children:c?"Disable Safety":"Enable Safety"}),(0,e.jsx)(t.$n,{icon:"bomb",disabled:c,color:"bad",onClick:function(){return a("nuke",{})},children:"Destroy ALL Cyborgs"})]}),(0,e.jsx)(x,{cyborgs:v,can_hack:i,auth:E})]})})},x=function(g){var d=g.cyborgs,a=g.can_hack,l=g.auth,i=(0,o.Oc)().act;return d.length?d.map(function(c){return(0,e.jsx)(t.wn,{title:c.name,buttons:(0,e.jsxs)(e.Fragment,{children:[!!c.hackable&&!c.emagged&&(0,e.jsx)(t.$n,{icon:"terminal",color:"bad",onClick:function(){return i("hackbot",{ref:c.ref})},children:"Hack"}),(0,e.jsx)(t.$n.Confirm,{icon:c.locked_down?"unlock":"lock",color:c.locked_down?"good":"default",disabled:!l,onClick:function(){return i("stopbot",{ref:c.ref})},children:c.locked_down?"Release":"Lockdown"}),(0,e.jsx)(t.$n.Confirm,{icon:"bomb",disabled:!l,color:"bad",onClick:function(){return i("killbot",{ref:c.ref})},children:"Detonate"})]}),children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Status",children:(0,e.jsx)(t.az,{color:c.status?"bad":c.locked_down?"average":"good",children:c.status?"Not Responding":c.locked_down?"Locked Down":"Nominal"})}),(0,e.jsx)(t.Ki.Item,{label:"Location",children:(0,e.jsx)(t.az,{children:c.locstring})}),(0,e.jsx)(t.Ki.Item,{label:"Integrity",children:(0,e.jsx)(t.z2,{color:c.health>50?"good":"bad",value:c.health/100})}),typeof c.charge=="number"&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.Ki.Item,{label:"Cell Charge",children:(0,e.jsx)(t.z2,{color:c.charge>30?"good":"bad",value:c.charge/100})}),(0,e.jsx)(t.Ki.Item,{label:"Cell Capacity",children:(0,e.jsx)(t.az,{color:c.cell_capacity<3e4?"average":"good",children:c.cell_capacity})})]})||(0,e.jsx)(t.Ki.Item,{label:"Cell",children:(0,e.jsx)(t.az,{color:"bad",children:"No Power Cell"})}),!!c.is_hacked&&(0,e.jsx)(t.Ki.Item,{label:"Safeties",children:(0,e.jsx)(t.az,{color:"bad",children:"DISABLED"})}),(0,e.jsx)(t.Ki.Item,{label:"Module",children:c.module}),(0,e.jsx)(t.Ki.Item,{label:"Master AI",children:(0,e.jsx)(t.az,{color:c.synchronization?"default":"average",children:c.synchronization||"None"})})]})},c.ref)}):(0,e.jsx)(t.IC,{children:"No cyborg units detected within access parameters."})}},2879:function(O,u,n){"use strict";n.r(u),n.d(u,{RogueZones:function(){return s}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),s=function(x){var g=(0,o.Oc)(),d=g.act,a=g.data,l=a.timeout_percent,i=a.diffstep,c=a.difficulty,f=a.occupied,m=a.scanning,v=a.updated,E=a.debug,j=a.shuttle_location,C=a.shuttle_at_station,P=a.scan_ready,M=a.can_recall_shuttle;return(0,e.jsx)(r.p8,{width:360,height:250,children:(0,e.jsxs)(r.p8.Content,{children:[(0,e.jsx)(t.wn,{title:"Current Area",children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Mineral Content",children:c}),(0,e.jsx)(t.Ki.Item,{label:"Shuttle Location",buttons:M&&(0,e.jsx)(t.$n,{color:"bad",icon:"rocket",onClick:function(){return d("recall_shuttle")},children:"Recall Shuttle"})||null,children:j}),f&&(0,e.jsxs)(t.Ki.Item,{color:"bad",labelColor:"bad",label:"Personnel",children:["WARNING: Area occupied by ",f," personnel!"]})||(0,e.jsx)(t.Ki.Item,{label:"Personnel",color:"good",children:"No personnel detected."})]})}),(0,e.jsx)(t.wn,{title:"Scanner",buttons:(0,e.jsx)(t.$n,{disabled:!P,fluid:!0,icon:"search",onClick:function(){return d("scan_for_new")},children:"Scan For Asteroids"}),children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Scn Ramestat Core",children:(0,e.jsx)(t.z2,{value:l,maxValue:100,ranges:{good:[100,1/0],average:[75,100],bad:[-1/0,75]}})}),m&&(0,e.jsx)(t.Ki.Item,{label:"Scanning",children:"In progress."})||null,v&&!m&&(0,e.jsx)(t.Ki.Item,{label:"Info",children:"Updated shuttle destination!"})||null,E&&(0,e.jsxs)(t.Ki.Item,{label:"Debug",labelColor:"bad",children:[(0,e.jsxs)(t.az,{children:["Timeout Percent: ",l]}),(0,e.jsxs)(t.az,{children:["Diffstep: ",i]}),(0,e.jsxs)(t.az,{children:["Difficulty: ",c]}),(0,e.jsxs)(t.az,{children:["Occupied: ",f]}),(0,e.jsxs)(t.az,{children:["Debug: ",E]}),(0,e.jsxs)(t.az,{children:["Shuttle Location: ",j]}),(0,e.jsxs)(t.az,{children:["Shuttle at station: ",C]}),(0,e.jsxs)(t.az,{children:["Scan Ready: ",P]})]})||null]})})]})})}},1249:function(O,u,n){"use strict";n.r(u),n.d(u,{RustCoreMonitor:function(){return s},RustCoreMonitorContent:function(){return x}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),s=function(){return(0,e.jsx)(r.p8,{width:627,height:700,children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsx)(x,{})})})},x=function(g){var d=(0,o.Oc)(),a=d.act,l=d.data,i=l.cores;return(0,e.jsx)(t.wn,{title:"Cores",buttons:(0,e.jsx)(t.$n,{icon:"pencil-alt",onClick:function(){return a("set_tag")},children:"Set Tag"}),children:(0,e.jsxs)(t.XI,{children:[(0,e.jsxs)(t.XI.Row,{header:!0,children:[(0,e.jsx)(t.XI.Cell,{children:"Name"}),(0,e.jsx)(t.XI.Cell,{children:"Position"}),(0,e.jsx)(t.XI.Cell,{children:"Field Status"}),(0,e.jsx)(t.XI.Cell,{children:"Reactant Mode"}),(0,e.jsx)(t.XI.Cell,{children:"Field Instability"}),(0,e.jsx)(t.XI.Cell,{children:"Field Temperature"}),(0,e.jsx)(t.XI.Cell,{children:"Field Strength"}),(0,e.jsx)(t.XI.Cell,{children:"Plasma Content"})]}),i.map(function(c){return(0,e.jsxs)(t.XI.Row,{children:[(0,e.jsx)(t.XI.Cell,{children:c.name}),(0,e.jsxs)(t.XI.Cell,{children:[c.x,", ",c.y,", ",c.z]}),(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.$n,{icon:"power-off",selected:c.has_field,disabled:!c.core_operational,onClick:function(){return a("toggle_active",{core:c.ref})},children:c.has_field?"Online":"Offline"})}),(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.$n,{icon:"power-off",selected:c.has_field,disabled:!c.core_operational,onClick:function(){return a("toggle_reactantdump",{core:c.ref})},children:c.reactant_dump?"Dump":"Maintain"})}),(0,e.jsx)(t.XI.Cell,{children:c.field_instability}),(0,e.jsx)(t.XI.Cell,{children:c.field_temperature}),(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.N6,{width:"60px",size:1.25,color:!!c.has_field&&"yellow",value:c.target_field_strength,unit:"(W.m^-3)",minValue:1,maxValue:1e3,stepPixelSize:1,onDrag:function(f,m){return a("set_fieldstr",{core:c.ref,fieldstr:m})}})}),(0,e.jsx)(t.XI.Cell,{})]},c.name)})]})})}},27095:function(O,u,n){"use strict";n.r(u),n.d(u,{RustFuelContent:function(){return x},RustFuelControl:function(){return s}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),s=function(){return(0,e.jsx)(r.p8,{width:627,height:700,children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsx)(x,{})})})},x=function(g){var d=(0,o.Oc)(),a=d.act,l=d.data,i=l.fuels;return(0,e.jsx)(t.wn,{title:"Fuel Injectors",buttons:(0,e.jsx)(t.$n,{icon:"pencil-alt",onClick:function(){return a("set_tag")},children:"Set Tag"}),children:(0,e.jsxs)(t.XI,{children:[(0,e.jsxs)(t.XI.Row,{header:!0,children:[(0,e.jsx)(t.XI.Cell,{children:"Name"}),(0,e.jsx)(t.XI.Cell,{children:"Position"}),(0,e.jsx)(t.XI.Cell,{children:"Status"}),(0,e.jsx)(t.XI.Cell,{children:"Remaining Fuel"}),(0,e.jsx)(t.XI.Cell,{children:"Fuel Rod Composition"})]}),i.map(function(c){return(0,e.jsxs)(t.XI.Row,{children:[(0,e.jsx)(t.XI.Cell,{children:c.name}),(0,e.jsxs)(t.XI.Cell,{children:[c.x,", ",c.y,", ",c.z]}),(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.$n,{icon:"power-off",selected:c.active,disabled:!c.deployed,onClick:function(){return a("toggle_active",{fuel:c.ref})},children:c.active?"Online":"Offline"})}),(0,e.jsx)(t.XI.Cell,{children:c.fuel_amt}),(0,e.jsx)(t.XI.Cell,{children:c.fuel_type})]},c.name)})]})})}},90406:function(O,u,n){"use strict";n.r(u),n.d(u,{Secbot:function(){return s}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),s=function(x){var g=(0,o.Oc)(),d=g.act,a=g.data,l=a.on,i=a.open,c=a.locked,f=a.idcheck,m=a.check_records,v=a.check_arrest,E=a.arrest_type,j=a.declare_arrests,C=a.bot_patrolling,P=a.patrol;return(0,e.jsx)(r.p8,{width:390,height:320,children:(0,e.jsxs)(r.p8.Content,{scrollable:!0,children:[(0,e.jsx)(t.wn,{title:"Automatic Security Unit v2.0",buttons:(0,e.jsx)(t.$n,{icon:"power-off",selected:l,onClick:function(){return d("power")},children:l?"On":"Off"}),children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Maintenance Panel",color:i?"bad":"good",children:i?"Open":"Closed"}),(0,e.jsx)(t.Ki.Item,{label:"Behavior Controls",color:c?"good":"bad",children:c?"Locked":"Unlocked"})]})}),!c&&(0,e.jsx)(t.wn,{title:"Behavior Controls",children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Check for Weapon Authorization",children:(0,e.jsx)(t.$n,{icon:f?"toggle-on":"toggle-off",selected:f,onClick:function(){return d("idcheck")},children:f?"Yes":"No"})}),(0,e.jsx)(t.Ki.Item,{label:"Check Security Records",children:(0,e.jsx)(t.$n,{icon:m?"toggle-on":"toggle-off",selected:m,onClick:function(){return d("ignorerec")},children:m?"Yes":"No"})}),(0,e.jsx)(t.Ki.Item,{label:"Check Arrest Status",children:(0,e.jsx)(t.$n,{icon:v?"toggle-on":"toggle-off",selected:v,onClick:function(){return d("ignorearr")},children:v?"Yes":"No"})}),(0,e.jsx)(t.Ki.Item,{label:"Operating Mode",children:(0,e.jsx)(t.$n,{icon:E?"toggle-on":"toggle-off",selected:E,onClick:function(){return d("switchmode")},children:E?"Detain":"Arrest"})}),(0,e.jsx)(t.Ki.Item,{label:"Report Arrests",children:(0,e.jsx)(t.$n,{icon:j?"toggle-on":"toggle-off",selected:j,onClick:function(){return d("declarearrests")},children:j?"Yes":"No"})}),!!C&&(0,e.jsx)(t.Ki.Item,{label:"Auto Patrol",children:(0,e.jsx)(t.$n,{icon:P?"toggle-on":"toggle-off",selected:P,onClick:function(){return d("patrol")},children:P?"Yes":"No"})})]})})||null]})})}},38575:function(O,u,n){"use strict";n.r(u),n.d(u,{SecureSafe:function(){return x}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),s=function(g){var d=(0,o.Oc)(),a=d.act,l=d.data,i=[["1","4","7","R"],["2","5","8","0"],["3","6","9","E"]],c=l.locked,f=l.l_setshort,m=l.code,v=l.emagged;return(0,e.jsx)(t.az,{width:"185px",children:(0,e.jsx)(t.XI,{width:"1px",children:i.map(function(E){return(0,e.jsx)(t.XI.Cell,{children:E.map(function(j){return(0,e.jsx)(t.$n,{fluid:!0,bold:!0,mb:"6px",textAlign:"center",fontSize:"40px",height:"50px",lineHeight:1.25,disabled:!!v||!!f&&1||j!=="R"&&!c||m==="ERROR"&&j!=="R"&&1,onClick:function(){return a("type",{digit:j})},children:j},j)})},E[0])})})})},x=function(g){var d=(0,o.Oc)(),a=d.act,l=d.data,i=l.code,c=l.l_setshort,f=l.l_set,m=l.emagged,v=l.locked,E=!(f||c);return(0,e.jsx)(r.p8,{width:250,height:380,children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsxs)(t.az,{m:"6px",children:[E&&(0,e.jsx)(t.IC,{textAlign:"center",info:!0,children:"ENTER NEW 5-DIGIT PASSCODE."}),!!m&&(0,e.jsx)(t.IC,{textAlign:"center",danger:!0,children:"LOCKING SYSTEM ERROR - 1701"}),!!c&&(0,e.jsx)(t.IC,{textAlign:"center",danger:!0,children:"ALERT: MEMORY SYSTEM ERROR - 6040 201"}),(0,e.jsx)(t.wn,{height:"60px",children:(0,e.jsx)(t.az,{textAlign:"center",position:"center",fontSize:"35px",children:i&&i||(0,e.jsx)(t.az,{textColor:v?"red":"green",children:v?"LOCKED":"UNLOCKED"})})}),(0,e.jsxs)(t.so,{ml:"3px",children:[(0,e.jsx)(t.so.Item,{children:(0,e.jsx)(s,{})}),(0,e.jsx)(t.so.Item,{ml:"6px",width:"129px"})]})]})})})}},26487:function(O,u,n){"use strict";n.r(u),n.d(u,{SecurityRecordsList:function(){return r}});var e=n(20462),o=n(7081),t=n(88569),r=function(s){var x=(0,o.Oc)(),g=x.act,d=x.data,a=d.records;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.pd,{fluid:!0,placeholder:"Search by Name, DNA, or ID",onChange:function(l,i){return g("search",{t1:i})}}),(0,e.jsx)(t.az,{mt:"0.5rem",children:a.map(function(l,i){return(0,e.jsx)(t.$n,{icon:"user",mb:"0.5rem",color:l.color,onClick:function(){return g("d_rec",{d_rec:l.ref})},children:l.id+": "+l.name+" (Criminal Status: "+l.criminal+")"},i)})})]})}},12473:function(O,u,n){"use strict";n.r(u),n.d(u,{SecurityRecordsMaintenance:function(){return x},SecurityRecordsNavigation:function(){return d},SecurityRecordsView:function(){return g}});var e=n(20462),o=n(7081),t=n(88569),r=n(64254),s=n(72462),x=function(a){var l=(0,o.Oc)().act;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n,{icon:"download",disabled:!0,children:"Backup to Disk"}),(0,e.jsx)("br",{}),(0,e.jsx)(t.$n,{icon:"upload",my:"0.5rem",disabled:!0,children:"Upload from Disk"}),(0,e.jsx)("br",{}),(0,e.jsx)(t.$n.Confirm,{icon:"trash",onClick:function(){return l("del_all")},children:"Delete All Security Records"})]})},g=function(a){var l=(0,o.Oc)(),i=l.act,c=l.data,f=c.security,m=c.printing;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.wn,{title:"General Data",mt:"-6px",children:(0,e.jsx)(r.SecurityRecordsViewGeneral,{})}),(0,e.jsx)(t.wn,{title:"Security Data",children:(0,e.jsx)(s.SecurityRecordsViewSecurity,{})}),(0,e.jsxs)(t.wn,{title:"Actions",children:[(0,e.jsx)(t.$n.Confirm,{icon:"trash",disabled:!!f.empty,color:"bad",onClick:function(){return i("del_r")},children:"Delete Security Record"}),(0,e.jsx)(t.$n.Confirm,{icon:"trash",disabled:!!f.empty,color:"bad",onClick:function(){return i("del_r_2")},children:"Delete Record (All)"}),(0,e.jsx)(t.$n,{icon:m?"spinner":"print",disabled:m,iconSpin:!!m,ml:"0.5rem",onClick:function(){return i("print_p")},children:"Print Entry"}),(0,e.jsx)("br",{}),(0,e.jsx)(t.$n,{icon:"arrow-left",mt:"0.5rem",onClick:function(){return i("screen",{screen:2})},children:"Back"})]})]})},d=function(a){var l=(0,o.Oc)(),i=l.act,c=l.data,f=c.screen;return(0,e.jsxs)(t.tU,{children:[(0,e.jsx)(t.tU.Tab,{selected:f===2,icon:"list",onClick:function(){return i("screen",{screen:2})},children:"List Records"}),(0,e.jsx)(t.tU.Tab,{icon:"wrench",selected:f===3,onClick:function(){return i("screen",{screen:3})},children:"Record Maintenance"})]})}},64254:function(O,u,n){"use strict";n.r(u),n.d(u,{SecurityRecordsViewGeneral:function(){return s}});var e=n(20462),o=n(7081),t=n(88569),r=n(80724),s=function(x){var g=(0,o.Oc)(),d=g.act,a=g.data,l=a.general;return!l||!l.fields?(0,e.jsx)(t.az,{color:"bad",children:"General records lost!"}):(0,e.jsxs)(t.so,{children:[(0,e.jsx)(t.so.Item,{children:(0,e.jsx)(t.Ki,{children:l.fields.map(function(i,c){return(0,e.jsx)(t.Ki.Item,{label:i.field,children:(0,e.jsxs)(t.az,{height:"20px",inline:!0,preserveWhitespace:!0,children:[i.value,!!i.edit&&(0,e.jsx)(t.$n,{icon:"pen",ml:"0.5rem",onClick:function(){return(0,r.doEdit)(i)}})]})},c)})})}),(0,e.jsxs)(t.so.Item,{textAlign:"right",children:[!!l.has_photos&&l.photos.map(function(i,c){return(0,e.jsxs)(t.az,{inline:!0,textAlign:"center",color:"label",children:[(0,e.jsx)(t._V,{src:i.substring(1,i.length-1),style:{width:"96px",marginBottom:"0.5rem"}}),(0,e.jsx)("br",{}),"Photo #",c+1]},c)}),(0,e.jsxs)(t.az,{children:[(0,e.jsx)(t.$n,{onClick:function(){return d("photo_front")},children:"Update Front Photo"}),(0,e.jsx)(t.$n,{onClick:function(){return d("photo_side")},children:"Update Side Photo"})]})]})]})}},72462:function(O,u,n){"use strict";n.r(u),n.d(u,{SecurityRecordsViewSecurity:function(){return x}});var e=n(20462),o=n(7081),t=n(88569),r=n(86471),s=n(80724),x=function(g){var d=(0,o.Oc)(),a=d.act,l=d.data,i=l.security;return!i||!i.fields?(0,e.jsxs)(t.az,{color:"bad",children:["Security records lost!",(0,e.jsx)(t.$n,{icon:"pen",ml:"0.5rem",onClick:function(){return a("new")},children:"New Record"})]}):(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.Ki,{children:i.fields.map(function(c,f){return(0,e.jsx)(t.Ki.Item,{label:c.field,children:(0,e.jsxs)(t.az,{preserveWhitespace:!0,children:[c.value,(0,e.jsx)(t.$n,{icon:"pen",ml:"0.5rem",mb:"initial",onClick:function(){return(0,s.doEdit)(c)}})]})},f)})}),(0,e.jsxs)(t.wn,{title:"Comments/Log",children:[i.comments&&i.comments.length===0?(0,e.jsx)(t.az,{color:"label",children:"No comments found."}):i.comments&&i.comments.map(function(c,f){return(0,e.jsxs)(t.az,{children:[(0,e.jsx)(t.az,{color:"label",inline:!0,children:c.header}),(0,e.jsx)("br",{}),c.text,(0,e.jsx)(t.$n,{icon:"comment-slash",color:"bad",ml:"0.5rem",onClick:function(){return a("del_c",{del_c:f+1})}})]},f)}),(0,e.jsx)(t.$n,{icon:"comment",color:"good",mt:"0.5rem",mb:"0",onClick:function(){return(0,r.modalOpen)("add_c")},children:"Add Entry"})]})]})}},94779:function(O,u,n){"use strict";n.r(u),n.d(u,{SecurityRecords:function(){return i}});var e=n(20462),o=n(7081),t=n(88569),r=n(86471),s=n(15581),x=n(35069),g=n(97049),d=n(3751),a=n(26487),l=n(12473),i=function(c){var f=(0,o.Oc)().data,m=f.authenticated,v=f.screen;if(!m)return(0,e.jsx)(s.p8,{width:700,height:680,children:(0,e.jsx)(s.p8.Content,{children:(0,e.jsx)(g.LoginScreen,{})})});var E=[];return E[2]=(0,e.jsx)(a.SecurityRecordsList,{}),E[3]=(0,e.jsx)(l.SecurityRecordsMaintenance,{}),E[4]=(0,e.jsx)(l.SecurityRecordsView,{}),(0,e.jsxs)(s.p8,{width:700,height:680,children:[(0,e.jsx)(r.ComplexModal,{maxHeight:"100%",maxWidth:"400px"}),(0,e.jsxs)(s.p8.Content,{scrollable:!0,children:[(0,e.jsx)(x.LoginInfo,{}),(0,e.jsx)(d.TemporaryNotice,{}),(0,e.jsx)(l.SecurityRecordsNavigation,{}),(0,e.jsx)(t.wn,{flexGrow:!0,children:v&&E[v]||""})]})]})}},53588:function(O,u,n){"use strict";n.r(u)},62516:function(O,u,n){"use strict";n.r(u),n.d(u,{SeedStorage:function(){return g}});var e=n(20462),o=n(7402),t=n(61282),r=n(7081),s=n(88569),x=n(15581),g=function(d){var a=(0,r.Oc)(),l=a.act,i=a.data,c=i.seeds,f=(0,o.Ul)(c,function(m){return m.name.toLowerCase()});return(0,e.jsx)(x.p8,{width:600,height:760,children:(0,e.jsx)(x.p8.Content,{scrollable:!0,children:(0,e.jsx)(s.wn,{title:"Seeds",children:f.map(function(m){return(0,e.jsxs)(s.so,{spacing:1,mt:-1,children:[(0,e.jsx)(s.so.Item,{basis:"60%",children:(0,e.jsx)(s.Nt,{title:(0,t.Sn)(m.name)+" #"+m.uid,children:(0,e.jsx)(s.wn,{width:"165%",title:"Traits",children:(0,e.jsx)(s.Ki,{children:Object.keys(m.traits).map(function(v){return(0,e.jsx)(s.Ki.Item,{label:(0,t.Sn)(v),children:m.traits[v]},v)})})})})}),(0,e.jsxs)(s.so.Item,{mt:.4,children:[m.amount," Remaining"]}),(0,e.jsx)(s.so.Item,{grow:1,children:(0,e.jsx)(s.$n,{fluid:!0,icon:"download",onClick:function(){return l("vend",{id:m.id})},children:"Vend"})}),(0,e.jsx)(s.so.Item,{grow:1,children:(0,e.jsx)(s.$n,{fluid:!0,icon:"trash",onClick:function(){return l("purge",{id:m.id})},children:"Purge"})})]},m.name+m.uid)})})})})}},3967:function(O,u,n){"use strict";n.r(u),n.d(u,{ShieldCapacitor:function(){return g}});var e=n(20462),o=n(4089),t=n(7081),r=n(88569),s=n(41242),x=n(15581),g=function(d){var a=(0,t.Oc)(),l=a.act,i=a.data,c=i.active,f=i.time_since_fail,m=i.stored_charge,v=i.max_charge,E=i.charge_rate,j=i.max_charge_rate;return(0,e.jsx)(x.p8,{width:500,height:400,children:(0,e.jsx)(x.p8.Content,{children:(0,e.jsx)(r.wn,{title:"Status",buttons:(0,e.jsx)(r.$n,{icon:"power-off",selected:c,onClick:function(){return l("toggle")},children:c?"Online":"Offline"}),children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Capacitor Status",children:f>2?(0,e.jsx)(r.az,{color:"good",children:"OK."}):(0,e.jsx)(r.az,{color:"bad",children:"Discharging!"})}),(0,e.jsxs)(r.Ki.Item,{label:"Stored Energy",children:[(0,e.jsx)(r.zv,{value:m,format:function(C){return(0,s.QL)(C,0,"J")}}),(0,e.jsx)(r.zv,{value:100*(0,o.LI)(m/v,1),format:function(C){return" ("+(0,o.Mg)(C,1)+"%)"}})]}),(0,e.jsx)(r.Ki.Item,{label:"Charge Rate",children:(0,e.jsx)(r.Q7,{value:E,step:100,stepPixelSize:.2,minValue:1e4,maxValue:j,format:function(C){return(0,s.d5)(C)},onDrag:function(C){return l("charge_rate",{rate:C})}})})]})})})})}},7180:function(O,u,n){"use strict";n.r(u),n.d(u,{ShieldGenerator:function(){return d}});var e=n(20462),o=n(4089),t=n(7081),r=n(88569),s=n(41242),x=n(15581),g=n(72859),d=function(i){var c=(0,t.Oc)().data,f=c.locked;return(0,e.jsx)(x.p8,{width:500,height:400,children:(0,e.jsx)(x.p8.Content,{children:f?(0,e.jsx)(a,{}):(0,e.jsx)(l,{})})})},a=function(i){return(0,e.jsxs)(g.FullscreenNotice,{title:"Locked",children:[(0,e.jsx)(r.az,{fontSize:"1.5rem",bold:!0,children:(0,e.jsx)(r.In,{name:"exclamation-triangle",verticalAlign:"middle",size:3,mr:"1rem"})}),(0,e.jsx)(r.az,{color:"label",my:"1rem",children:"Swipe your ID to begin."})]})},l=function(i){var c=(0,t.Oc)(),f=c.act,m=c.data,v=m.lockedData,E=v.capacitors,j=v.active,C=v.failing,P=v.radius,M=v.max_radius,_=v.z_range,S=v.max_z_range,T=v.average_field_strength,b=v.target_field_strength,L=v.max_field_strength,W=v.shields,k=v.upkeep,$=v.strengthen_rate,w=v.max_strengthen_rate,V=v.gen_power,F=(E||[]).length;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.wn,{title:"Status",children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Field Status",children:C?(0,e.jsx)(r.az,{color:"bad",children:"Unstable"}):(0,e.jsx)(r.az,{color:"good",children:"Stable"})}),(0,e.jsx)(r.Ki.Item,{label:"Overall Field Strength",children:(0,o.Mg)(T,2)+" Renwick ("+(b&&(0,o.Mg)(100*T/b,1)+"%)")||"NA)"}),(0,e.jsx)(r.Ki.Item,{label:"Upkeep Power",children:(0,s.d5)(k)}),(0,e.jsx)(r.Ki.Item,{label:"Shield Generation Power",children:(0,s.d5)(V)}),(0,e.jsxs)(r.Ki.Item,{label:"Currently Shielded",children:[W," m\xB2"]}),(0,e.jsx)(r.Ki.Item,{label:"Capacitors",children:(0,e.jsx)(r.Ki,{children:F?E.map(function(X,Z){return(0,e.jsxs)(r.Ki.Item,{label:"Capacitor #"+Z,children:[X.active?(0,e.jsx)(r.az,{color:"good",children:"Online"}):(0,e.jsx)(r.az,{color:"bad",children:"Offline"}),(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Charge",children:(0,s.QL)(X.stored_charge,0,"J")+" ("+(0,o.Mg)(100*(X.stored_charge/X.max_charge),2)+"%)"}),(0,e.jsx)(r.Ki.Item,{label:"Status",children:X.failing?(0,e.jsx)(r.az,{color:"bad",children:"Discharging"}):(0,e.jsx)(r.az,{color:"good",children:"OK."})})]})]},Z)}):(0,e.jsx)(r.Ki.Item,{color:"bad",children:"No Capacitors Connected"})})})]})}),(0,e.jsx)(r.wn,{title:"Controls",buttons:(0,e.jsx)(r.$n,{icon:"power-off",selected:j,onClick:function(){return f("toggle")},children:j?"Online":"Offline"}),children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Coverage Radius",children:(0,e.jsx)(r.Q7,{fluid:!0,stepPixelSize:6,step:1,minValue:0,maxValue:M,value:P,unit:"m",onDrag:function(X){return f("change_radius",{val:X})}})}),(0,e.jsx)(r.Ki.Item,{label:"Vertical Shielding",children:(0,e.jsx)(r.Q7,{fluid:!0,stepPixelSize:12,step:1,minValue:0,maxValue:S,value:_,unit:"vertical range",onDrag:function(X){return f("z_range",{val:X})}})}),(0,e.jsx)(r.Ki.Item,{label:"Charge Rate",children:(0,e.jsx)(r.Q7,{fluid:!0,stepPixelSize:12,minValue:0,step:.1,maxValue:w,value:$,format:function(X){return(0,o.Mg)(X,1)},unit:"Renwick/s",onDrag:function(X){return f("strengthen_rate",{val:X})}})}),(0,e.jsx)(r.Ki.Item,{label:"Maximum Field Strength",children:(0,e.jsx)(r.Q7,{fluid:!0,stepPixelSize:12,step:1,minValue:1,maxValue:L,value:b,unit:"Renwick",onDrag:function(X){return f("target_field_strength",{val:X})}})})]})})]})}},67889:function(O,u,n){"use strict";n.r(u),n.d(u,{ShutoffMonitor:function(){return s},ShutoffMonitorContent:function(){return x}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),s=function(g){return(0,e.jsx)(r.p8,{width:627,height:700,children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsx)(x,{})})})},x=function(g){var d=(0,o.Oc)(),a=d.act,l=d.data,i=l.valves;return(0,e.jsx)(t.wn,{title:"Valves",children:(0,e.jsxs)(t.XI,{children:[(0,e.jsxs)(t.XI.Row,{header:!0,children:[(0,e.jsx)(t.XI.Cell,{children:"Name"}),(0,e.jsx)(t.XI.Cell,{children:"Position"}),(0,e.jsx)(t.XI.Cell,{children:"Open"}),(0,e.jsx)(t.XI.Cell,{children:"Mode"}),(0,e.jsx)(t.XI.Cell,{children:"Actions"})]}),i.map(function(c){return(0,e.jsxs)(t.XI.Row,{children:[(0,e.jsx)(t.XI.Cell,{children:c.name}),(0,e.jsxs)(t.XI.Cell,{children:[c.x,", ",c.y,", ",c.z]}),(0,e.jsx)(t.XI.Cell,{children:c.open?"Yes":"No"}),(0,e.jsx)(t.XI.Cell,{children:c.enabled?"Auto":"Manual"}),(0,e.jsxs)(t.XI.Cell,{children:[(0,e.jsx)(t.$n,{icon:"power-off",selected:c.open,disabled:!c.enabled,onClick:function(){return a("toggle_open",{valve:c.ref})},children:c.open?"Opened":"Closed"}),(0,e.jsx)(t.$n,{icon:"power-off",selected:c.enabled,onClick:function(){return a("toggle_enable",{valve:c.ref})},children:c.enabled?"Auto":"Manual"})]})]},c.name)})]})})}},83491:function(O,u,n){"use strict";n.r(u),n.d(u,{ShuttleControlConsoleDefault:function(){return x},ShuttleControlConsoleExploration:function(){return d},ShuttleControlConsoleMulti:function(){return g}});var e=n(20462),o=n(7081),t=n(88569),r=n(13553),s=n(50705),x=function(a){return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(s.ShuttleControlSharedShuttleStatus,{}),(0,e.jsx)(r.ShuttleControlSharedShuttleControls,{})]})},g=function(a){var l=(0,o.Oc)(),i=l.act,c=l.data,f=c.can_cloak,m=c.can_pick,v=c.legit,E=c.cloaked;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(s.ShuttleControlSharedShuttleStatus,{}),(0,e.jsx)(t.wn,{title:"Multishuttle Controls",children:(0,e.jsxs)(t.Ki,{children:[f&&(0,e.jsx)(t.Ki.Item,{label:v?"ATC Inhibitor":"Cloaking",children:(0,e.jsx)(t.$n,{selected:E,icon:E?"eye":"eye-o",onClick:function(){return i("toggle_cloaked")},children:E?"Enabled":"Disabled"})})||"",(0,e.jsx)(t.Ki.Item,{label:"Current Destination",children:(0,e.jsx)(t.$n,{icon:"taxi",disabled:!m,onClick:function(){return i("pick")},children:a.destination_name})})]})}),(0,e.jsx)(r.ShuttleControlSharedShuttleControls,{})]})},d=function(a){var l=(0,o.Oc)(),i=l.act,c=l.data,f=c.can_pick,m=c.destination_name,v=c.fuel_usage,E=c.fuel_span,j=c.remaining_fuel;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(s.ShuttleControlSharedShuttleStatus,{engineName:"Engines"}),(0,e.jsx)(t.wn,{title:"Jump Controls",children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Current Destination",children:(0,e.jsx)(t.$n,{icon:"taxi",disabled:!f,onClick:function(){return i("pick")},children:m})}),v&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(t.Ki.Item,{label:"Est. Delta-V Budget",color:E,children:[j," m/s"]}),(0,e.jsxs)(t.Ki.Item,{label:"Avg. Delta-V Per Maneuver",children:[v," m/s"]})]})||""]})}),(0,e.jsx)(r.ShuttleControlSharedShuttleControls,{})]})}},96366:function(O,u,n){"use strict";n.r(u),n.d(u,{ShuttleControlConsoleWeb:function(){return x}});var e=n(20462),o=n(61282),t=n(7081),r=n(88569),s=n(40420),x=function(g){var d=(0,t.Oc)(),a=d.act,l=d.data,i=l.autopilot,c=l.can_rename,f=l.shuttle_state,m=l.is_moving,v=l.skip_docking,E=l.docking_status,j=l.docking_override,C=l.shuttle_location,P=l.can_cloak,M=l.cloaked,_=l.can_autopilot,S=l.routes,T=l.is_in_transit,b=l.travel_progress,L=l.time_left,W=l.doors,k=l.sensors;return(0,e.jsxs)(e.Fragment,{children:[i&&(0,e.jsx)(r.wn,{title:"AI PILOT (CLASS D) ACTIVE",children:(0,e.jsx)(r.az,{inline:!0,italic:!0,children:"This vessel will start and stop automatically. Ensure that all non-cycling capable hatches and doors are closed, as the automated system may not be able to control them. Docking and flight controls are locked. To unlock, disable the automated flight system."})})||"",(0,e.jsxs)(r.wn,{title:"Shuttle Status",buttons:c&&(0,e.jsx)(r.$n,{icon:"pen",onClick:function(){return a("rename_command")},children:"Rename"})||"",children:[(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Engines",children:f==="idle"&&(0,e.jsx)(r.az,{color:"#676767",bold:!0,children:"IDLE"})||f==="warmup"&&(0,e.jsx)(r.az,{color:"#336699",children:"SPINNING UP"})||f==="in_transit"&&(0,e.jsx)(r.az,{color:"#336699",children:"ENGAGED"})||(0,e.jsx)(r.az,{color:"bad",children:"ERROR"})}),!m&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.Ki.Item,{label:"Current Location",children:(0,o.Sn)(C)}),!v&&(0,e.jsx)(r.Ki.Item,{label:"Docking Status",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.$n,{selected:E==="docked",disabled:E!=="undocked"&&E!=="docked",onClick:function(){return a("dock_command")},children:"Dock"}),(0,e.jsx)(r.$n,{selected:E==="undocked",disabled:E!=="docked"&&E!=="undocked",onClick:function(){return a("undock_command")},children:"Undock"})]}),children:(0,e.jsx)(r.az,{bold:!0,inline:!0,children:(0,s.getDockingStatus)(E,j)})})||"",P&&(0,e.jsx)(r.Ki.Item,{label:"Cloaking",children:(0,e.jsx)(r.$n,{selected:M,icon:M?"eye":"eye-o",onClick:function(){return a("toggle_cloaked")},children:M?"Enabled":"Disabled"})})||"",_&&(0,e.jsx)(r.Ki.Item,{label:"Autopilot",children:(0,e.jsx)(r.$n,{selected:i,icon:i?"eye":"eye-o",onClick:function(){return a("toggle_autopilot")},children:i?"Enabled":"Disabled"})})||""]})||""]}),!m&&(0,e.jsx)(r.wn,{title:"Available Destinations",children:(0,e.jsx)(r.Ki,{children:S.length&&S.map(function($){return(0,e.jsx)(r.Ki.Item,{label:$.name,children:(0,e.jsx)(r.$n,{icon:"rocket",onClick:function(){return a("traverse",{traverse:$.index})},children:$.travel_time})},$.name)})||(0,e.jsx)(r.Ki.Item,{label:"Error",color:"bad",children:"No routes found."})})})||""]}),T&&(0,e.jsx)(r.wn,{title:"Transit ETA",children:(0,e.jsx)(r.Ki,{children:(0,e.jsx)(r.Ki.Item,{label:"Distance from target",children:(0,e.jsxs)(r.z2,{color:"good",minValue:0,maxValue:100,value:b,children:[L,"s"]})})})})||"",Object.keys(W).length&&(0,e.jsx)(r.wn,{title:"Hatch Status",children:(0,e.jsx)(r.Ki,{children:Object.keys(W).map(function($){var w=W[$];return(0,e.jsxs)(r.Ki.Item,{label:$,children:[w.open&&(0,e.jsx)(r.az,{inline:!0,color:"bad",children:"Open"})||(0,e.jsx)(r.az,{inline:!0,color:"good",children:"Closed"}),"\xA0-\xA0",w.bolted&&(0,e.jsx)(r.az,{inline:!0,color:"good",children:"Bolted"})||(0,e.jsx)(r.az,{inline:!0,color:"bad",children:"Unbolted"})]},$)})})})||"",Object.keys(k).length&&(0,e.jsx)(r.wn,{title:"Sensors",children:(0,e.jsx)(r.Ki,{children:Object.keys(k).map(function($,w){var V=k[$];return V.reading?(0,e.jsx)(r.Ki.Item,{label:$,children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsxs)(r.Ki.Item,{label:"Pressure",children:[V.pressure,"kPa"]}),(0,e.jsxs)(r.Ki.Item,{label:"Temperature",children:[V.temp,"\xB0C"]}),(0,e.jsxs)(r.Ki.Item,{label:"Oxygen",children:[V.oxygen,"%"]}),(0,e.jsxs)(r.Ki.Item,{label:"Nitrogen",children:[V.nitrogen,"%"]}),(0,e.jsxs)(r.Ki.Item,{label:"Carbon Dioxide",children:[V.carbon_dioxide,"%"]}),(0,e.jsxs)(r.Ki.Item,{label:"Phoron",children:[V.phoron,"%"]}),V.other&&(0,e.jsxs)(r.Ki.Item,{label:"Other",children:[V.other,"%"]})||""]})},$):(0,e.jsx)(r.Ki.Item,{label:$,color:"bad",children:"Unable to get sensor air reading."},w)})})})||""]})}},13553:function(O,u,n){"use strict";n.r(u),n.d(u,{ShuttleControlSharedShuttleControls:function(){return r}});var e=n(20462),o=n(7081),t=n(88569),r=function(s){var x=(0,o.Oc)(),g=x.act,d=x.data,a=d.can_launch,l=d.can_cancel,i=d.can_force;return(0,e.jsx)(t.wn,{title:"Controls",children:(0,e.jsxs)(t.so,{spacing:1,children:[(0,e.jsx)(t.so.Item,{grow:1,children:(0,e.jsx)(t.$n,{onClick:function(){return g("move")},disabled:!a,icon:"rocket",fluid:!0,children:"Launch Shuttle"})}),(0,e.jsx)(t.so.Item,{grow:1,children:(0,e.jsx)(t.$n,{onClick:function(){return g("cancel")},disabled:!l,icon:"ban",fluid:!0,children:"Cancel Launch"})}),(0,e.jsx)(t.so.Item,{grow:1,children:(0,e.jsx)(t.$n,{onClick:function(){return g("force")},color:"bad",disabled:!i,icon:"exclamation-triangle",fluid:!0,children:"Force Launch"})})]})})}},50705:function(O,u,n){"use strict";n.r(u),n.d(u,{ShuttleControlSharedShuttleStatus:function(){return s}});var e=n(20462),o=n(7081),t=n(88569),r=n(40420),s=function(x){var g=(0,o.Oc)(),d=g.act,a=g.data,l=x.engineName,i=l===void 0?"Bluespace Drive":l,c=a.shuttle_status,f=a.shuttle_state,m=a.has_docking,v=a.docking_status,E=a.docking_override,j=a.docking_codes;return(0,e.jsxs)(t.wn,{title:"Shuttle Status",children:[(0,e.jsx)(t.az,{color:"label",mb:1,children:c}),(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:i,children:f==="idle"&&(0,e.jsx)(t.az,{color:"#676767",bold:!0,children:"IDLE"})||f==="warmup"&&(0,e.jsx)(t.az,{color:"#336699",children:"SPINNING UP"})||f==="in_transit"&&(0,e.jsx)(t.az,{color:"#336699",children:"ENGAGED"})||(0,e.jsx)(t.az,{color:"bad",children:"ERROR"})}),m&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.Ki.Item,{label:"Docking Status",children:(0,r.getDockingStatus)(v,E)}),(0,e.jsx)(t.Ki.Item,{label:"Docking Codes",children:(0,e.jsx)(t.$n,{icon:"pen",onClick:function(){return d("set_codes")},children:j||"Not Set"})})]})||""]})]})}},40420:function(O,u,n){"use strict";n.r(u),n.d(u,{getDockingStatus:function(){return t}});var e=n(20462),o=n(88569);function t(r,s){var x="ERROR",g="bad",d=!1;return r==="docked"?(x="DOCKED",g="good"):r==="docking"?(x="DOCKING",g="average",d=!0):r==="undocking"?(x="UNDOCKING",g="average",d=!0):r==="undocked"&&(x="UNDOCKED",g="#676767"),d&&s&&(x=x+"-MANUAL"),(0,e.jsx)(o.az,{color:g,children:x})}},93147:function(O,u,n){"use strict";n.r(u),n.d(u,{ShuttleControl:function(){return x}});var e=n(20462),o=n(7081),t=n(15581),r=n(83491),s=n(96366),x=function(g){var d=(0,o.Oc)().data,a=d.subtemplate,l=d.destination_name;return(0,e.jsx)(t.p8,{width:470,height:a==="ShuttleControlConsoleWeb"?560:370,children:(0,e.jsx)(t.p8.Content,{children:a==="ShuttleControlConsoleDefault"&&(0,e.jsx)(r.ShuttleControlConsoleDefault,{})||a==="ShuttleControlConsoleMulti"&&(0,e.jsx)(r.ShuttleControlConsoleMulti,{destination_name:l})||a==="ShuttleControlConsoleExploration"&&(0,e.jsx)(r.ShuttleControlConsoleExploration,{})||a==="ShuttleControlConsoleWeb"&&(0,e.jsx)(s.ShuttleControlConsoleWeb,{})})})}},41396:function(O,u,n){"use strict";n.r(u)},46321:function(O,u,n){"use strict";n.r(u),n.d(u,{Signaler:function(){return x},SignalerContent:function(){return g}});var e=n(20462),o=n(4089),t=n(7081),r=n(88569),s=n(15581),x=function(){return(0,e.jsx)(s.p8,{width:280,height:132,children:(0,e.jsx)(s.p8.Content,{children:(0,e.jsx)(g,{})})})},g=function(d){var a=(0,t.Oc)(),l=a.act,i=a.data,c=i.code,f=i.frequency,m=i.minFrequency,v=i.maxFrequency;return(0,e.jsx)(r.wn,{children:(0,e.jsxs)(r.XI,{children:[(0,e.jsxs)(r.XI.Row,{children:[(0,e.jsx)(r.XI.Cell,{size:1.4,color:"label",children:"Frequency:"}),(0,e.jsx)(r.XI.Cell,{children:(0,e.jsx)(r.Q7,{animated:!0,unit:"kHz",step:.2,stepPixelSize:6,minValue:m/10,maxValue:v/10,value:f/10,format:function(E){return(0,o.Mg)(E,1)},width:"80px",onDrag:function(E){return l("freq",{freq:E})}})}),(0,e.jsx)(r.XI.Cell,{children:(0,e.jsx)(r.$n,{ml:1.3,icon:"sync",onClick:function(){return l("reset",{reset:"freq"})},children:"Reset"})})]}),(0,e.jsxs)(r.XI.Row,{mt:.6,children:[(0,e.jsx)(r.XI.Cell,{size:1.4,color:"label",children:"Code:"}),(0,e.jsx)(r.XI.Cell,{children:(0,e.jsx)(r.Q7,{animated:!0,step:1,stepPixelSize:6,minValue:1,maxValue:100,value:c,width:"80px",onDrag:function(E){return l("code",{code:E})}})}),(0,e.jsx)(r.XI.Cell,{children:(0,e.jsx)(r.$n,{ml:1.3,icon:"sync",onClick:function(){return l("reset",{reset:"code"})},children:"Reset"})})]}),(0,e.jsx)(r.XI.Row,{mt:.8,children:(0,e.jsx)(r.XI.Cell,{children:(0,e.jsx)(r.$n,{mb:-.1,fluid:!0,icon:"arrow-up",textAlign:"center",onClick:function(){return l("signal")},children:"Send Signal"})})})]})})}},63e3:function(O,u,n){"use strict";n.r(u),n.d(u,{SleeperChemicals:function(){return r}});var e=n(20462),o=n(7081),t=n(88569),r=function(s){var x=(0,o.Oc)(),g=x.act,d=x.data,a=d.occupant,l=d.chemicals,i=d.maxchem,c=d.amounts;return(0,e.jsx)(t.wn,{title:"Chemicals",flexGrow:!0,children:l.map(function(f,m){var v="",E;return f.overdosing?(v="bad",E=(0,e.jsxs)(t.az,{color:"bad",children:[(0,e.jsx)(t.In,{name:"exclamation-circle"}),"\xA0 Overdosing!"]})):f.od_warning&&(v="average",E=(0,e.jsxs)(t.az,{color:"average",children:[(0,e.jsx)(t.In,{name:"exclamation-triangle"}),"\xA0 Close to overdosing"]})),(0,e.jsx)(t.az,{backgroundColor:"rgba(0, 0, 0, 0.33)",mb:"0.5rem",children:(0,e.jsx)(t.wn,{title:f.title,mx:"0",lineHeight:"18px",buttons:E,children:(0,e.jsxs)(t.so,{align:"flex-start",children:[(0,e.jsxs)(t.z2,{minValue:0,maxValue:1,value:f.occ_amount/i,color:v,mr:"0.5rem",children:[f.pretty_amount,"/",i,"u"]}),c.map(function(j,C){return(0,e.jsx)(t.$n,{disabled:!f.injectable||f.occ_amount+j>i||a.stat===2,icon:"syringe",mb:"0",height:"19px",onClick:function(){return g("chemical",{chemid:f.id,amount:j})},children:j},C)})]})})},m)})})}},57224:function(O,u,n){"use strict";n.r(u),n.d(u,{SleeperDamage:function(){return x}});var e=n(20462),o=n(4089),t=n(7081),r=n(88569),s=n(40308),x=function(g){var d=(0,t.Oc)().data,a=d.occupant;return(0,e.jsx)(r.wn,{title:"Damage",children:(0,e.jsx)(r.Ki,{children:s.damages.map(function(l,i){return(0,e.jsx)(r.Ki.Item,{label:l[0],children:(0,e.jsx)(r.z2,{minValue:0,maxValue:1,value:a[l[1]]/100,ranges:s.damageRange,children:(0,o.Mg)(a[l[1]])},i)},i)})})})}},54695:function(O,u,n){"use strict";n.r(u),n.d(u,{SleeperDialysisPump:function(){return r}});var e=n(20462),o=n(7081),t=n(88569),r=function(s){var x=(0,o.Oc)(),g=x.act,d=x.data,a=s.active,l=s.actToDo,i=s.title,c=d.isBeakerLoaded,f=d.beakerMaxSpace,m=d.beakerFreeSpace,v=a&&m>0;return(0,e.jsx)(t.wn,{title:i,buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n,{disabled:!c||m<=0,selected:v,icon:v?"toggle-on":"toggle-off",onClick:function(){return g(l)},children:v?"Active":"Inactive"}),(0,e.jsx)(t.$n,{disabled:!c,icon:"eject",onClick:function(){return g("removebeaker")},children:"Eject"})]}),children:c?(0,e.jsx)(t.Ki,{children:(0,e.jsx)(t.Ki.Item,{label:"Remaining Space",children:(0,e.jsxs)(t.z2,{minValue:0,maxValue:1,value:m/f,ranges:{good:[.5,1/0],average:[.25,.5],bad:[-1/0,.25]},children:[m,"u"]})})}):(0,e.jsx)(t.az,{color:"label",children:"No beaker loaded."})})}},39176:function(O,u,n){"use strict";n.r(u),n.d(u,{SleeperEmpty:function(){return r}});var e=n(20462),o=n(7081),t=n(88569),r=function(s){var x=(0,o.Oc)(),g=x.act,d=x.data,a=d.isBeakerLoaded;return(0,e.jsx)(t.wn,{textAlign:"center",flexGrow:!0,children:(0,e.jsx)(t.so,{height:"100%",children:(0,e.jsxs)(t.so.Item,{grow:"1",align:"center",color:"label",children:[(0,e.jsx)(t.In,{name:"user-slash",mb:"0.5rem",size:5}),(0,e.jsx)("br",{}),"No occupant detected.",a&&(0,e.jsx)(t.az,{children:(0,e.jsx)(t.$n,{icon:"eject",onClick:function(){return g("removebeaker")},children:"Remove Beaker"})})||null]})})})}},44092:function(O,u,n){"use strict";n.r(u),n.d(u,{SleeperMain:function(){return g}});var e=n(20462),o=n(7081),t=n(63e3),r=n(57224),s=n(54695),x=n(86570),g=function(d){var a=(0,o.Oc)().data,l=a.dialysis,i=a.stomachpumping;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(x.SleeperOccupant,{}),(0,e.jsx)(r.SleeperDamage,{}),(0,e.jsx)(s.SleeperDialysisPump,{title:"Dialysis",active:l,actToDo:"togglefilter"}),(0,e.jsx)(s.SleeperDialysisPump,{title:"Stomach Pump",active:i,actToDo:"togglepump"}),(0,e.jsx)(t.SleeperChemicals,{})]})}},86570:function(O,u,n){"use strict";n.r(u),n.d(u,{SleeperOccupant:function(){return x}});var e=n(20462),o=n(4089),t=n(7081),r=n(88569),s=n(40308),x=function(g){var d=(0,t.Oc)(),a=d.act,l=d.data,i=l.occupant,c=l.auto_eject_dead,f=l.stasis;return(0,e.jsx)(r.wn,{title:"Occupant",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.az,{color:"label",inline:!0,children:"Auto-eject if dead:\xA0"}),(0,e.jsx)(r.$n,{icon:c?"toggle-on":"toggle-off",selected:c,onClick:function(){return a("auto_eject_dead_"+(c?"off":"on"))},children:c?"On":"Off"}),(0,e.jsx)(r.$n,{icon:"user-slash",onClick:function(){return a("ejectify")},children:"Eject"}),(0,e.jsx)(r.$n,{onClick:function(){return a("changestasis")},children:f})]}),children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Name",children:i.name}),(0,e.jsx)(r.Ki.Item,{label:"Health",children:(0,e.jsx)(r.z2,{minValue:0,maxValue:1,value:i.health/i.maxHealth,ranges:{good:[.5,1/0],average:[0,.5],bad:[-1/0,0]},children:(0,o.Mg)(i.health)})}),(0,e.jsx)(r.Ki.Item,{label:"Status",color:s.stats[i.stat][0],children:s.stats[i.stat][1]}),(0,e.jsx)(r.Ki.Item,{label:"Temperature",children:(0,e.jsxs)(r.z2,{minValue:0,maxValue:1,value:i.bodyTemperature/i.maxTemp,color:s.tempColors[i.temperatureSuitability+3],children:[(0,o.Mg)(i.btCelsius),"\xB0C,",(0,o.Mg)(i.btFaren),"\xB0F"]})}),!!i.hasBlood&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.Ki.Item,{label:"Blood Level",children:(0,e.jsxs)(r.z2,{minValue:0,maxValue:1,value:i.bloodLevel/i.bloodMax,ranges:{bad:[-1/0,.6],average:[.6,.9],good:[.6,1/0]},children:[i.bloodPercent,"%, ",i.bloodLevel,"cl"]})}),(0,e.jsxs)(r.Ki.Item,{label:"Pulse",verticalAlign:"middle",children:[i.pulse," BPM"]})]})]})})}},40308:function(O,u,n){"use strict";n.r(u),n.d(u,{damageRange:function(){return t},damages:function(){return o},stats:function(){return e},tempColors:function(){return r}});var e=[["good","Alive"],["average","Unconscious"],["bad","DEAD"]],o=[["Resp","oxyLoss"],["Toxin","toxLoss"],["Brute","bruteLoss"],["Burn","fireLoss"]],t={average:[.25,.5],bad:[.5,1/0]},r=["bad","average","average","good","average","average","bad"]},46039:function(O,u,n){"use strict";n.r(u),n.d(u,{Sleeper:function(){return x}});var e=n(20462),o=n(7081),t=n(15581),r=n(39176),s=n(44092),x=function(g){var d=(0,o.Oc)().data,a=d.hasOccupant,l=a?(0,e.jsx)(s.SleeperMain,{}):(0,e.jsx)(r.SleeperEmpty,{});return(0,e.jsx)(t.p8,{width:550,height:760,children:(0,e.jsx)(t.p8.Content,{scrollable:!0,className:"Layout__content--flexColumn",children:l})})}},34880:function(O,u,n){"use strict";n.r(u)},49752:function(O,u,n){"use strict";n.r(u),n.d(u,{SmartVend:function(){return x}});var e=n(20462),o=n(7402),t=n(7081),r=n(88569),s=n(15581),x=function(g){var d=(0,t.Oc)(),a=d.act,l=d.config,i=d.data,c=i.secure,f=i.locked,m=i.contents;return(0,e.jsx)(s.p8,{width:500,height:550,children:(0,e.jsx)(s.p8.Content,{scrollable:!0,children:(0,e.jsxs)(r.wn,{title:"Storage",children:[c&&f===-1&&(0,e.jsx)(r.IC,{danger:!0,children:(0,e.jsx)(r.az,{children:"Sec.re ACC_** //):securi_nt.diag=>##'or 1=1'%($..."})})||c&&f!==-1&&(0,e.jsx)(r.IC,{info:!0,children:(0,e.jsx)(r.az,{children:"Secure Access: Please have your identification ready."})})||"",m.length===0&&(0,e.jsxs)(r.IC,{children:["Unfortunately, this ",l.title," is empty."]})||(0,e.jsxs)(r.XI,{children:[(0,e.jsxs)(r.XI.Row,{header:!0,children:[(0,e.jsx)(r.XI.Cell,{collapsing:!0,children:"Item"}),(0,e.jsx)(r.XI.Cell,{collapsing:!0,textAlign:"center",children:"Amount"}),(0,e.jsx)(r.XI.Cell,{collapsing:!0,textAlign:"center",children:"Dispense"})]}),(0,o.Tj)(m,function(v,E){return(0,e.jsxs)(r.XI.Row,{children:[(0,e.jsx)(r.XI.Cell,{collapsing:!0,children:v.name}),(0,e.jsxs)(r.XI.Cell,{collapsing:!0,textAlign:"center",children:[v.amount," in stock"]}),(0,e.jsxs)(r.XI.Cell,{collapsing:!0,children:[(0,e.jsx)(r.$n,{disabled:v.amount<1,onClick:function(){return a("Release",{index:v.index,amount:1})},children:"1"}),(0,e.jsx)(r.$n,{disabled:v.amount<5,onClick:function(){return a("Release",{index:v.index,amount:5})},children:"5"}),(0,e.jsx)(r.$n,{disabled:v.amount<25,onClick:function(){return a("Release",{index:v.index,amount:25})},children:"25"}),(0,e.jsx)(r.$n,{disabled:v.amount<50,onClick:function(){return a("Release",{index:v.index,amount:50})},children:"50"}),(0,e.jsx)(r.$n,{disabled:v.amount<1,onClick:function(){return a("Release",{index:v.index})},children:"Custom"}),(0,e.jsx)(r.$n,{disabled:v.amount<1,onClick:function(){return a("Release",{index:v.index,amount:v.amount})},children:"All"})]})]},E)})]})]})})})}},28088:function(O,u,n){"use strict";n.r(u),n.d(u,{Smes:function(){return d}});var e=n(20462),o=n(4089),t=n(7081),r=n(88569),s=n(41242),x=n(15581),g=1e3,d=function(a){var l=(0,t.Oc)(),i=l.act,c=l.data,f=c.capacityPercent,m=c.capacity,v=c.charge,E=c.inputAttempt,j=c.inputting,C=c.inputLevel,P=c.inputLevelMax,M=c.inputAvailable,_=c.outputAttempt,S=c.outputting,T=c.outputLevel,b=c.outputLevelMax,L=c.outputUsed,W=f>=100&&"good"||j&&"average"||"bad",k=S&&"good"||v>0&&"average"||"bad";return(0,e.jsx)(x.p8,{width:400,height:350,children:(0,e.jsxs)(x.p8.Content,{children:[(0,e.jsx)(r.wn,{title:"Stored Energy",children:(0,e.jsx)(r.z2,{value:f*.01,ranges:{good:[.5,1/0],average:[.15,.5],bad:[-1/0,.15]},children:(0,o.Mg)(v/(1e3*60),1)+" kWh / "+(0,o.Mg)(m/(1e3*60))+" kWh ("+f+"%)"})}),(0,e.jsx)(r.wn,{title:"Input",children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Charge Mode",buttons:(0,e.jsx)(r.$n,{icon:E?"sync-alt":"times",selected:E,onClick:function(){return i("tryinput")},children:E?"On":"Off"}),children:(0,e.jsx)(r.az,{color:W,children:f>=100&&"Fully Charged"||j&&"Charging"||"Not Charging"})}),(0,e.jsx)(r.Ki.Item,{label:"Target Input",children:(0,e.jsxs)(r.so,{inline:!0,width:"100%",children:[(0,e.jsxs)(r.so.Item,{children:[(0,e.jsx)(r.$n,{icon:"fast-backward",disabled:C===0,onClick:function(){return i("input",{target:"min"})}}),(0,e.jsx)(r.$n,{icon:"backward",disabled:C===0,onClick:function(){return i("input",{adjust:-1e4})}})]}),(0,e.jsx)(r.so.Item,{grow:1,mx:1,children:(0,e.jsx)(r.Ap,{value:C/g,fillValue:M/g,minValue:0,maxValue:P/g,step:5,stepPixelSize:4,format:function($){return(0,s.d5)($*g,1)},onDrag:function($,w){return i("input",{target:w*g})}})}),(0,e.jsxs)(r.so.Item,{children:[(0,e.jsx)(r.$n,{icon:"forward",disabled:C===P,onClick:function(){return i("input",{adjust:1e4})}}),(0,e.jsx)(r.$n,{icon:"fast-forward",disabled:C===P,onClick:function(){return i("input",{target:"max"})}})]})]})}),(0,e.jsx)(r.Ki.Item,{label:"Available",children:(0,s.d5)(M)})]})}),(0,e.jsx)(r.wn,{title:"Output",children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Output Mode",buttons:(0,e.jsx)(r.$n,{icon:_?"power-off":"times",selected:_,onClick:function(){return i("tryoutput")},children:_?"On":"Off"}),children:(0,e.jsx)(r.az,{color:k,children:S?"Sending":v>0?"Not Sending":"No Charge"})}),(0,e.jsx)(r.Ki.Item,{label:"Target Output",children:(0,e.jsxs)(r.so,{inline:!0,width:"100%",children:[(0,e.jsxs)(r.so.Item,{children:[(0,e.jsx)(r.$n,{icon:"fast-backward",disabled:T===0,onClick:function(){return i("output",{target:"min"})}}),(0,e.jsx)(r.$n,{icon:"backward",disabled:T===0,onClick:function(){return i("output",{adjust:-1e4})}})]}),(0,e.jsx)(r.so.Item,{grow:1,mx:1,children:(0,e.jsx)(r.Ap,{value:T/g,minValue:0,maxValue:b/g,step:5,stepPixelSize:4,format:function($){return(0,s.d5)($*g,1)},onDrag:function($,w){return i("output",{target:w*g})}})}),(0,e.jsxs)(r.so.Item,{children:[(0,e.jsx)(r.$n,{icon:"forward",disabled:T===b,onClick:function(){return i("output",{adjust:1e4})}}),(0,e.jsx)(r.$n,{icon:"fast-forward",disabled:T===b,onClick:function(){return i("output",{target:"max"})}})]})]})}),(0,e.jsx)(r.Ki.Item,{label:"Outputting",children:(0,s.d5)(L)})]})})]})})}},24854:function(O,u,n){"use strict";n.r(u),n.d(u,{SolarControl:function(){return x}});var e=n(20462),o=n(4089),t=n(7081),r=n(88569),s=n(15581),x=function(g){var d=(0,t.Oc)(),a=d.act,l=d.data,i=l.generated,c=l.generated_ratio,f=l.sun_angle,m=l.array_angle,v=l.rotation_rate,E=l.max_rotation_rate,j=l.tracking_state,C=l.connected_panels,P=l.connected_tracker;return(0,e.jsx)(s.p8,{width:380,height:230,children:(0,e.jsxs)(s.p8.Content,{children:[(0,e.jsx)(r.wn,{title:"Status",buttons:(0,e.jsx)(r.$n,{icon:"sync",onClick:function(){return a("refresh")},children:"Scan for new hardware"}),children:(0,e.jsx)(r.XI,{children:(0,e.jsxs)(r.XI.Row,{children:[(0,e.jsx)(r.XI.Cell,{children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Solar tracker",color:P?"good":"bad",children:P?"OK":"N/A"}),(0,e.jsx)(r.Ki.Item,{label:"Solar panels",color:C>0?"good":"bad",children:C})]})}),(0,e.jsx)(r.XI.Cell,{size:1.5,children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Power output",children:(0,e.jsx)(r.z2,{ranges:{good:[.66,1/0],average:[.33,.66],bad:[-1/0,.33]},minValue:0,maxValue:1,value:c,children:i+" W"})}),(0,e.jsxs)(r.Ki.Item,{label:"Star orientation",children:[f,"\xB0"]})]})})]})})}),(0,e.jsx)(r.wn,{title:"Controls",children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsxs)(r.Ki.Item,{label:"Tracking",children:[(0,e.jsx)(r.$n,{icon:"times",selected:j===0,onClick:function(){return a("tracking",{mode:0})},children:"Off"}),(0,e.jsx)(r.$n,{icon:"clock-o",selected:j===1,onClick:function(){return a("tracking",{mode:1})},children:"Timed"}),(0,e.jsx)(r.$n,{icon:"sync",selected:j===2,disabled:!P,onClick:function(){return a("tracking",{mode:2})},children:"Auto"})]}),(0,e.jsxs)(r.Ki.Item,{label:"Azimuth",children:[(j===0||j===1)&&(0,e.jsx)(r.Q7,{width:"52px",unit:"\xB0",step:1,stepPixelSize:2,minValue:-360,maxValue:720,value:m,format:function(M){var _=Math.sign(M)>0?" (CW)":" (CCW)";return(0,o.Mg)(Math.abs(M))+_},onDrag:function(M){return a("azimuth",{value:M})}}),j===1&&(0,e.jsx)(r.Q7,{width:"80px",unit:"deg/h",step:1,minValue:-E-.01,maxValue:E+.01,value:v,format:function(M){var _=Math.sign(M)>0?" (CW)":" (CCW)";return(0,o.Mg)(Math.abs(M))+_},onDrag:function(M){return a("azimuth_rate",{value:M})}}),j===2&&(0,e.jsxs)(r.az,{inline:!0,color:"label",mt:"3px",children:[m+"\xB0"," (auto)"]})]})]})})]})})}},44051:function(O,u,n){"use strict";n.r(u),n.d(u,{SpaceHeater:function(){return x}});var e=n(20462),o=n(7081),t=n(88569),r=n(79500),s=n(15581),x=function(g){var d=(0,o.Oc)(),a=d.act,l=d.data,i=l.temp,c=l.minTemp,f=l.maxTemp,m=l.cell,v=l.power;return(0,e.jsx)(s.p8,{width:300,height:250,children:(0,e.jsxs)(s.p8.Content,{children:[(0,e.jsx)(t.wn,{title:"Status",children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsxs)(t.Ki.Item,{label:"Target Temperature",children:[i," K (",i-r.Ai,"\xB0 C)"]}),(0,e.jsxs)(t.Ki.Item,{label:"Current Charge",children:[v,"% ",!m&&"(No Cell Inserted)"]})]})}),(0,e.jsx)(t.wn,{title:"Controls",children:(0,e.jsxs)(t.Wx,{children:[(0,e.jsx)(t.Wx.Item,{label:"Thermostat",children:(0,e.jsx)(t.N6,{animated:!0,value:i-r.Ai,minValue:c-r.Ai,maxValue:f-r.Ai,unit:"C",onChange:function(E,j){return a("temp",{newtemp:j+r.Ai})}})}),(0,e.jsx)(t.Wx.Item,{label:"Cell",children:m?(0,e.jsx)(t.$n,{icon:"eject",onClick:function(){return a("cellremove")},children:"Eject Cell"}):(0,e.jsx)(t.$n,{icon:"car-battery",onClick:function(){return a("cellinstall")},children:"Insert Cell"})})]})})]})})}},85586:function(O,u,n){"use strict";n.r(u),n.d(u,{Stack:function(){return d}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581);function s(f,m){(m==null||m>f.length)&&(m=f.length);for(var v=0,E=new Array(m);v=f.length?{done:!0}:{done:!1,value:f[E++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var d=function(f){var m=(0,o.Oc)().data,v=m.amount,E=m.recipes;return(0,e.jsx)(r.p8,{width:400,height:600,children:(0,e.jsx)(r.p8.Content,{scrollable:!0,children:(0,e.jsx)(t.wn,{title:"Amount: "+v,children:(0,e.jsx)(a,{recipes:E})})})})},a=function(f){var m=f.recipes,v=Object.keys(m).sort();return v.map(function(E,j){var C=m[E];return C.ref===void 0?(0,e.jsx)(t.Nt,{ml:1,mb:-.7,color:"label",title:E,children:(0,e.jsx)(t.az,{ml:1,children:(0,e.jsx)(a,{recipes:C})})},j):(0,e.jsx)(c,{title:E,recipe:C},j)})},l=function(f,m){return f.req_amount>m?0:Math.floor(m/f.req_amount)},i=function(f){for(var m=function(){var L=b.value;M>=L&&S.push((0,e.jsx)(t.$n,{onClick:function(){return E("make",{ref:C.ref,multiplier:L})},children:L*C.res_amount+"x"}))},v=(0,o.Oc)(),E=v.act,j=v.data,C=f.recipe,P=f.maxMultiplier,M=Math.min(P,Math.floor(C.max_res_amount/C.res_amount)),_=[5,10,25],S=[],T=g(_),b;!(b=T()).done;)m();return _.indexOf(M)===-1&&S.push((0,e.jsx)(t.$n,{onClick:function(){return E("make",{ref:C.ref,multiplier:M})},children:M*C.res_amount+"x"})),S},c=function(f){var m=(0,o.Oc)(),v=m.act,E=m.data,j=E.amount,C=f.recipe,P=f.title,M=C.res_amount,_=C.max_res_amount,S=C.req_amount,T=C.ref,b=P;b+=" (",b+=S+" ",b+="sheet"+(S>1?"s":""),b+=")",M>1&&(b=M+"x "+b);var L=l(C,j);return(0,e.jsx)(t.az,{children:(0,e.jsx)(t.XI,{children:(0,e.jsxs)(t.XI.Row,{children:[(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.$n,{fluid:!0,disabled:!L,icon:"wrench",onClick:function(){return v("make",{ref:C.ref,multiplier:1})},children:b})}),_>1&&L>1&&(0,e.jsx)(t.XI.Cell,{collapsing:!0,children:(0,e.jsx)(i,{recipe:C,maxMultiplier:L})})]})})})}},68679:function(O,u,n){"use strict";n.r(u),n.d(u,{StationAlertConsole:function(){return s},StationAlertConsoleContent:function(){return x}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),s=function(){return(0,e.jsx)(r.p8,{width:425,height:600,children:(0,e.jsx)(r.p8.Content,{scrollable:!0,children:(0,e.jsx)(x,{})})})},x=function(g){var d=(0,o.Oc)(),a=d.act,l=d.data,i=l.categories,c=i===void 0?[]:i;return c.map(function(f){return(0,e.jsx)(t.wn,{title:f.category,children:(0,e.jsxs)("ul",{children:[f.alarms.length===0&&(0,e.jsx)("li",{className:"color-good",children:"Systems Nominal"}),f.alarms.map(function(m){var v="";return m.has_cameras?v=(0,e.jsx)(t.wn,{children:m.cameras.map(function(E){return(0,e.jsx)(t.$n,{disabled:E.deact,icon:"video",onClick:function(){return a("switchTo",{camera:E.camera})},children:E.name+(E.deact?" (deactived)":"")},E.name)})}):m.lost_sources&&(v=(0,e.jsxs)(t.az,{color:"bad",children:["Lost Alarm Sources: ",m.lost_sources]})),(0,e.jsxs)("li",{children:[m.name,m.origin_lost?(0,e.jsx)(t.az,{color:"bad",children:"Alarm Origin Lost."}):"",v]},m.name)})]})},f.category)})}},27306:function(O,u,n){"use strict";n.r(u),n.d(u,{StationBlueprints:function(){return s},StationBlueprintsContent:function(){return x}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),s=function(g){return(0,e.jsx)(r.p8,{width:870,height:708,children:(0,e.jsx)(x,{})})},x=function(g){var d=(0,o.Oc)().data,a=d.mapRef;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)("div",{className:"CameraConsole__left",children:(0,e.jsx)(r.p8.Content,{scrollable:!0,children:"Honk!"})}),(0,e.jsx)("div",{className:"CameraConsole__right",children:(0,e.jsx)(t.D1,{className:"CameraConsole__map",params:{id:a,type:"map"}})})]})}},33395:function(O,u,n){"use strict";n.r(u),n.d(u,{StockExchange:function(){return s}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),s=function(c){var f=(0,o.Oc)().data,m=f.screen,v=f.stationName,E;return m==="stocks"?E=(0,e.jsx)(x,{}):m==="logs"?E=(0,e.jsx)(a,{}):m==="archive"?E=(0,e.jsx)(l,{}):m==="graph"&&(E=(0,e.jsx)(i,{})),(0,e.jsx)(r.p8,{width:600,height:600,children:(0,e.jsx)(r.p8.Content,{scrollable:!0,children:(0,e.jsx)(t.wn,{title:""+v+" Stock Exchange",children:E})})})},x=function(c){var f=(0,o.Oc)(),m=f.act,v=f.data,E=v.balance,j=v.stationName,C=v.viewMode,P=(0,e.jsx)(g,{});return C==="Full"?P=(0,e.jsx)(g,{}):C==="Compressed"&&(P=(0,e.jsx)(d,{})),(0,e.jsxs)(t.az,{children:[(0,e.jsxs)("span",{children:["Welcome, ",(0,e.jsxs)("b",{children:[j," Cargo Department"]})," |"]}),(0,e.jsxs)("span",{children:[(0,e.jsx)("b",{children:"Credits:"})," ",E]}),(0,e.jsx)("br",{}),(0,e.jsx)("b",{children:"View mode: "}),(0,e.jsx)(t.$n,{onClick:function(){return m("stocks_cycle_view")},children:C}),(0,e.jsx)("br",{}),(0,e.jsx)("b",{children:"Stock Transaction Log: "}),(0,e.jsx)(t.$n,{icon:"list",onClick:function(){return m("stocks_check")},children:"Check"}),(0,e.jsx)("br",{}),(0,e.jsx)("b",{children:"This is a work in progress. Certain features may not be available."}),(0,e.jsx)(t.wn,{title:"Listed Stocks",children:P})]})},g=function(c){var f=(0,o.Oc)(),m=f.act,v=f.data,E=v.stocks,j=E===void 0?[]:E;return(0,e.jsxs)(t.az,{children:[(0,e.jsx)("b",{children:"Actions:"})," + Buy, - Sell, (A)rchives, (H)istory",(0,e.jsx)(t.cG,{}),(0,e.jsxs)(t.XI,{children:[(0,e.jsxs)(t.XI.Row,{children:[(0,e.jsx)(t.XI.Cell,{bold:!0,children:"\xA0"}),(0,e.jsx)(t.XI.Cell,{children:"ID"}),(0,e.jsx)(t.XI.Cell,{children:"Name"}),(0,e.jsx)(t.XI.Cell,{children:"Value"}),(0,e.jsx)(t.XI.Cell,{children:"Owned"}),(0,e.jsx)(t.XI.Cell,{children:"Avail"}),(0,e.jsx)(t.XI.Cell,{children:"Actions"})]}),(0,e.jsx)(t.cG,{}),j.map(function(C){return(0,e.jsxs)(t.XI.Row,{children:[(0,e.jsx)(t.XI.Cell,{bold:!0,children:"\xA0"}),(0,e.jsx)(t.XI.Cell,{color:"label",children:C.ID}),(0,e.jsx)(t.XI.Cell,{color:"label",children:C.Name}),(0,e.jsx)(t.XI.Cell,{color:"label",children:C.Value}),(0,e.jsx)(t.XI.Cell,{color:"label",children:C.Owned}),(0,e.jsx)(t.XI.Cell,{color:"label",children:C.Avail}),(0,e.jsxs)(t.XI.Cell,{color:"label",children:[(0,e.jsx)(t.$n,{icon:"plus",disabled:!1,onClick:function(){return m("stocks_buy",{share:C.REF})}}),(0,e.jsx)(t.$n,{icon:"minus",disabled:!1,onClick:function(){return m("stocks_sell",{share:C.REF})}}),(0,e.jsx)("br",{}),(0,e.jsx)(t.$n,{onClick:function(){return m("stocks_archive",{share:C.REF})},children:"A"}),(0,e.jsx)(t.$n,{onClick:function(){return m("stocks_history",{share:C.REF})},children:"H"}),(0,e.jsx)("br",{})]})]},C.ID)})]})]})},d=function(c){var f=(0,o.Oc)(),m=f.act,v=f.data,E=v.stocks,j=E===void 0?[]:E;return(0,e.jsx)(t.az,{children:j.map(function(C){return(0,e.jsxs)(t.az,{children:[(0,e.jsx)("span",{children:C.Name})," ",(0,e.jsx)("span",{children:C.ID}),C.bankrupt===1&&(0,e.jsx)("b",{color:"red",children:"BANKRUPT"}),(0,e.jsx)("br",{}),(0,e.jsx)("b",{children:"Unified shares"})," ",C.Unification," ago.",(0,e.jsx)("br",{}),(0,e.jsx)("b",{children:"Current value per share:"})," ",C.Value," |",(0,e.jsx)(t.$n,{onClick:function(){return m("stocks_history",{share:C.REF})},children:"View history"}),(0,e.jsx)("br",{}),"You currently own ",(0,e.jsx)("b",{children:C.Owned})," shares in this company.",(0,e.jsx)("br",{}),"There are ",C.Avail," purchasable shares on the market currently.",(0,e.jsx)("br",{}),C.bankrupt===1?(0,e.jsx)("span",{children:"You cannot buy or sell shares in a bankrupt company!"}):(0,e.jsxs)("span",{children:[(0,e.jsx)(t.$n,{onClick:function(){return m("stocks_buy",{share:C.REF})},children:"Buy shares"}),"|",(0,e.jsx)(t.$n,{onClick:function(){return m("stocks_sell",{share:C.REF})},children:"Sell shares"})]}),(0,e.jsx)("br",{}),(0,e.jsx)("b",{children:"Prominent products:"}),(0,e.jsx)("br",{}),(0,e.jsx)("i",{children:C.Products}),(0,e.jsx)("br",{}),(0,e.jsx)(t.$n,{onClick:function(){return m("stocks_archive",{share:C.REF})},children:"View news archives"}),(0,e.jsx)(t.cG,{})]},C.ID)})})},a=function(c){var f=(0,o.Oc)(),m=f.act,v=f.data,E=v.logs,j=E===void 0?[]:E;return(0,e.jsxs)(t.az,{children:[(0,e.jsx)("h2",{children:"Stock Transaction Logs"}),(0,e.jsx)("br",{}),(0,e.jsx)(t.$n,{onClick:function(){return m("stocks_backbutton")},children:"Go back"}),(0,e.jsx)(t.cG,{}),(0,e.jsx)("div",{children:j.map(function(C){return(0,e.jsxs)(t.az,{children:[C.type!=="borrow"?(0,e.jsxs)("div",{children:[C.time," | ",(0,e.jsx)("b",{children:C.user_name}),C.type==="transaction_bought"?(0,e.jsx)("span",{children:"bought"}):(0,e.jsx)("span",{children:"sold"}),(0,e.jsx)("b",{children:C.stocks})," stocks at ",C.shareprice," a share for",(0,e.jsx)("b",{children:C.money})," total credits",C.type==="transaction_bought"?(0,e.jsx)("span",{children:"in"}):(0,e.jsx)("span",{children:"from"}),(0,e.jsx)("b",{children:C.company_name}),".",(0,e.jsx)("br",{})]}):(0,e.jsxs)("div",{children:[C.time," | ",(0,e.jsx)("b",{children:C.user_name})," borrowed ",(0,e.jsx)("b",{children:C.stocks}),"stocks with a deposit of ",(0,e.jsx)("b",{children:C.money})," credits in",(0,e.jsx)("b",{children:C.company_name}),".",(0,e.jsx)("br",{})]}),(0,e.jsx)(t.cG,{})]},C.time)})})]})},l=function(c){var f=(0,o.Oc)(),m=f.act,v=f.data,E=v.name,j=v.events,C=j===void 0?[]:j,P=v.articles,M=P===void 0?[]:P;return(0,e.jsxs)(t.az,{children:[(0,e.jsxs)("h2",{children:["News feed for ",E]}),(0,e.jsx)(t.$n,{onClick:function(){return m("stocks_backbutton")},children:"Go back"}),(0,e.jsx)("h3",{children:"Events"}),(0,e.jsx)(t.cG,{}),(0,e.jsx)("div",{children:C.map(function(_){return(0,e.jsxs)(t.az,{children:[(0,e.jsxs)("div",{children:[(0,e.jsx)("b",{children:_.current_title}),(0,e.jsx)("br",{}),_.current_desc]}),(0,e.jsx)(t.cG,{})]},_.current_title)})}),(0,e.jsx)("br",{}),(0,e.jsx)("h3",{children:"Articles"}),(0,e.jsx)(t.cG,{}),(0,e.jsx)("div",{children:M.map(function(_){return(0,e.jsxs)(t.az,{children:[(0,e.jsxs)("div",{children:[(0,e.jsx)("b",{children:_.headline}),(0,e.jsx)("i",{children:_.subtitle}),(0,e.jsx)("br",{}),_.article,(0,e.jsx)("br",{}),"- ",_.author,", ",_.spacetime," (via",(0,e.jsx)("i",{children:_.outlet}),")"]}),(0,e.jsx)(t.cG,{})]},_.headline)})})]})},i=function(c){var f=(0,o.Oc)(),m=f.act,v=f.data,E=v.name,j=v.maxValue,C=v.values,P=C===void 0?[]:C;return(0,e.jsxs)(t.az,{children:[(0,e.jsx)(t.$n,{onClick:function(){return m("stocks_backbutton")},children:"Go back"}),(0,e.jsx)(t.cG,{}),(0,e.jsx)(t.wn,{position:"relative",height:"100%",children:(0,e.jsx)(t.t1.Line,{fillPositionedParent:!0,data:P,rangeX:[0,P.length-1],rangeY:[0,j],strokeColor:"rgba(0, 181, 173, 1)",fillColor:"rgba(0, 181, 173, 0.25)"})}),(0,e.jsx)(t.cG,{}),(0,e.jsxs)("p",{children:[E," share value per share"]})]})}},92495:function(O,u,n){"use strict";n.r(u),n.d(u,{SuitCycler:function(){return x}});var e=n(20462),o=n(61358),t=n(7081),r=n(88569),s=n(15581),x=function(i){var c=function($){S($)},f=function($){L($)},m=(0,t.Oc)().data,v=m.active,E=m.locked,j=m.uv_active,C=m.species,P=m.departments,M=(0,o.useState)(!!P&&P[0]||void 0),_=M[0],S=M[1],T=(0,o.useState)(!!C&&C[0]||void 0),b=T[0],L=T[1],W=(0,e.jsx)(g,{selectedDepartment:_,selectedSpecies:b,onSelectedDepartment:c,onSelectedSpecies:f});return j?W=(0,e.jsx)(d,{}):E?W=(0,e.jsx)(a,{}):v&&(W=(0,e.jsx)(l,{})),(0,e.jsx)(s.p8,{width:320,height:400,children:(0,e.jsx)(s.p8.Content,{children:W})})},g=function(i){var c=(0,t.Oc)(),f=c.act,m=c.data,v=m.safeties,E=m.occupied,j=m.suit,C=m.helmet,P=m.departments,M=m.species,_=m.uv_level,S=m.max_uv_level,T=m.can_repair,b=m.damage;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(r.wn,{title:"Storage",buttons:(0,e.jsx)(r.$n,{icon:"lock",onClick:function(){return f("lock")},children:"Lock"}),children:[!!(E&&v)&&(0,e.jsxs)(r.IC,{children:["Biological entity detected in suit chamber. Please remove before continuing with operation.",(0,e.jsx)(r.$n,{fluid:!0,icon:"eject",color:"red",onClick:function(){return f("eject_guy")},children:"Eject Entity"})]}),(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Helmet",children:(0,e.jsx)(r.$n,{icon:C?"square":"square-o",disabled:!C,onClick:function(){return f("dispense",{item:"helmet"})},children:C||"Empty"})}),(0,e.jsx)(r.Ki.Item,{label:"Suit",children:(0,e.jsx)(r.$n,{icon:j?"square":"square-o",disabled:!j,onClick:function(){return f("dispense",{item:"suit"})},children:j||"Empty"})}),T&&b?(0,e.jsxs)(r.Ki.Item,{label:"Suit Damage",children:[b,(0,e.jsx)(r.$n,{icon:"wrench",onClick:function(){return f("repair_suit")},children:"Repair"})]}):null]})]}),(0,e.jsxs)(r.wn,{title:"Customization",children:[(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Target Paintjob",children:(0,e.jsx)(r.ms,{autoScroll:!1,width:"150px",options:P,selected:i.selectedDepartment,onSelected:function(L){i.onSelectedDepartment(L),f("department",{department:L})}})}),(0,e.jsx)(r.Ki.Item,{label:"Target Species",children:(0,e.jsx)(r.ms,{autoScroll:!1,width:"150px",maxHeight:"160px",options:M,selected:i.selectedSpecies,onSelected:function(L){i.onSelectedSpecies(L),f("species",{species:L})}})})]}),(0,e.jsx)(r.$n,{mt:1,fluid:!0,onClick:function(){return f("apply_paintjob")},children:"Customize"})]}),(0,e.jsx)(r.wn,{title:"UV Decontamination",children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Radiation Level",children:(0,e.jsx)(r.Q7,{width:"50px",value:_,step:1,minValue:1,maxValue:S,stepPixelSize:30,onChange:function(L){return f("radlevel",{radlevel:L})}})}),(0,e.jsx)(r.Ki.Item,{label:"Decontaminate",children:(0,e.jsx)(r.$n,{fluid:!0,icon:"recycle",disabled:E&&v,textAlign:"center",onClick:function(){return f("uv")}})})]})})]})},d=function(i){return(0,e.jsx)(r.IC,{children:"Contents are currently being decontaminated. Please wait."})},a=function(i){var c=(0,t.Oc)(),f=c.act,m=c.data,v=m.model_text,E=m.userHasAccess;return(0,e.jsxs)(r.wn,{title:"Locked",textAlign:"center",children:[(0,e.jsxs)(r.az,{color:"bad",bold:!0,children:["The ",v," suit cycler is currently locked. Please contact your system administrator."]}),(0,e.jsx)(r.az,{children:(0,e.jsx)(r.$n,{icon:"unlock",disabled:!E,onClick:function(){return f("lock")},children:"[Unlock]"})})]})},l=function(i){return(0,e.jsx)(r.IC,{children:"Contents are currently being painted. Please wait."})}},28742:function(O,u,n){"use strict";n.r(u),n.d(u,{SuitStorageUnit:function(){return s}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),s=function(l){var i=(0,o.Oc)().data,c=i.panelopen,f=i.uv_active,m=i.broken,v=(0,e.jsx)(x,{});return c?v=(0,e.jsx)(g,{}):f?v=(0,e.jsx)(d,{}):m&&(v=(0,e.jsx)(a,{})),(0,e.jsx)(r.p8,{width:400,height:365,children:(0,e.jsx)(r.p8.Content,{children:v})})},x=function(l){var i=(0,o.Oc)(),c=i.act,f=i.data,m=f.locked,v=f.open,E=f.safeties,j=f.occupied,C=f.suit,P=f.helmet,M=f.mask;return(0,e.jsxs)(t.wn,{title:"Storage",minHeight:"260px",buttons:(0,e.jsxs)(e.Fragment,{children:[!v&&(0,e.jsx)(t.$n,{icon:m?"unlock":"lock",onClick:function(){return c("lock")},children:m?"Unlock":"Lock"}),!m&&(0,e.jsx)(t.$n,{icon:v?"sign-out-alt":"sign-in-alt",onClick:function(){return c("door")},children:v?"Close":"Open"})]}),children:[!!(j&&E)&&(0,e.jsxs)(t.IC,{children:["Biological entity detected in suit chamber. Please remove before continuing with operation.",(0,e.jsx)(t.$n,{fluid:!0,icon:"eject",color:"red",onClick:function(){return c("eject_guy")},children:"Eject Entity"})]}),m&&(0,e.jsxs)(t.az,{mt:6,bold:!0,textAlign:"center",fontSize:"40px",children:[(0,e.jsx)(t.az,{children:"Unit Locked"}),(0,e.jsx)(t.In,{name:"lock"})]})||v&&(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Helmet",children:(0,e.jsx)(t.$n,{icon:P?"square":"square-o",disabled:!P,onClick:function(){return c("dispense",{item:"helmet"})},children:P||"Empty"})}),(0,e.jsx)(t.Ki.Item,{label:"Suit",children:(0,e.jsx)(t.$n,{icon:C?"square":"square-o",disabled:!C,onClick:function(){return c("dispense",{item:"suit"})},children:C||"Empty"})}),(0,e.jsx)(t.Ki.Item,{label:"Mask",children:(0,e.jsx)(t.$n,{icon:M?"square":"square-o",disabled:!M,onClick:function(){return c("dispense",{item:"mask"})},children:M||"Empty"})})]})||(0,e.jsx)(t.$n,{fluid:!0,icon:"recycle",disabled:j&&E,textAlign:"center",onClick:function(){return c("uv")},children:"Decontaminate"})]})},g=function(l){var i=(0,o.Oc)(),c=i.act,f=i.data,m=f.safeties,v=f.uv_super;return(0,e.jsxs)(t.wn,{title:"Maintenance Panel",children:[(0,e.jsx)(t.az,{color:"grey",children:"The panel is ridden with controls, button and meters, labeled in strange signs and symbols that you cannot understand. Probably the manufactoring world's language. Among other things, a few controls catch your eye."}),(0,e.jsx)("br",{}),(0,e.jsxs)(t.az,{children:["A small dial with a biohazard symbol next to it. It's pointing towards a gauge that reads ",v?"15nm":"185nm",".",(0,e.jsxs)(t.so,{mt:1,align:"center",textAlign:"center",children:[(0,e.jsx)(t.so.Item,{basis:"50%",textAlign:"center",children:(0,e.jsx)(t.N6,{size:2,inline:!0,value:v,minValue:0,maxValue:1,step:1,stepPixelSize:40,color:v?"red":"green",format:function(E){return E?"15nm":"185nm"},onChange:function(E,j){return c("toggleUV")}})}),(0,e.jsx)(t.so.Item,{basis:"50%",textAlign:"center",children:(0,e.jsx)(t.In,{name:"biohazard",size:3,color:"orange"})})]})]}),(0,e.jsx)("br",{}),(0,e.jsxs)(t.az,{children:["A thick old-style button, with 2 grimy LED lights next to it. The"," ",m?(0,e.jsx)(t.az,{textColor:"green",children:"GREEN"}):(0,e.jsx)(t.az,{textColor:"red",children:"RED"})," ","LED is on.",(0,e.jsxs)(t.so,{mt:1,align:"center",textAlign:"center",children:[(0,e.jsx)(t.so.Item,{basis:"50%",textAlign:"center",children:(0,e.jsx)(t.$n,{fontSize:"2rem",color:"grey",inline:!0,icon:"caret-square-right",style:{border:"4px solid #777",borderStyle:"outset"},onClick:function(){return c("togglesafeties")}})}),(0,e.jsxs)(t.so.Item,{basis:"50%",textAlign:"center",children:[(0,e.jsx)(t.In,{name:"circle",color:m?"black":"red",mr:2}),(0,e.jsx)(t.In,{name:"circle",color:m?"green":"black"})]})]})]})]})},d=function(l){return(0,e.jsx)(t.IC,{children:"Contents are currently being decontaminated. Please wait."})},a=function(l){return(0,e.jsx)(t.IC,{danger:!0,children:"Unit chamber is too contaminated to continue usage. Please call for a qualified individual to perform maintenance."})}},50028:function(O,u,n){"use strict";n.r(u),n.d(u,{SupermatterMonitor:function(){return g},SupermatterMonitorContent:function(){return d}});var e=n(20462),o=n(4089),t=n(61282),r=n(7081),s=n(88569),x=n(15581),g=function(i){return(0,e.jsx)(x.p8,{width:600,height:400,children:(0,e.jsx)(x.p8.Content,{scrollable:!0,children:(0,e.jsx)(d,{})})})},d=function(i){var c=(0,r.Oc)().data,f=c.active;return f?(0,e.jsx)(l,{}):(0,e.jsx)(a,{})},a=function(i){var c=(0,r.Oc)(),f=c.act,m=c.data,v=m.supermatters;return(0,e.jsx)(s.wn,{title:"Supermatters Detected",buttons:(0,e.jsx)(s.$n,{icon:"sync",onClick:function(){return f("refresh")},children:"Refresh"}),children:(0,e.jsx)(s.so,{wrap:"wrap",children:v.map(function(E,j){return(0,e.jsx)(s.so.Item,{basis:"49%",grow:j%2,children:(0,e.jsx)(s.wn,{title:E.area_name+" (#"+E.uid+")",children:(0,e.jsxs)(s.Ki,{children:[(0,e.jsxs)(s.Ki.Item,{label:"Integrity",children:[E.integrity," %"]}),(0,e.jsx)(s.Ki.Item,{label:"Options",children:(0,e.jsx)(s.$n,{icon:"eye",onClick:function(){return f("set",{set:E.uid})},children:"View Details"})})]})})},j)})})})},l=function(i){var c=(0,r.Oc)(),f=c.act,m=c.data,v=m.SM_area,E=m.SM_integrity,j=m.SM_power,C=m.SM_ambienttemp,P=m.SM_ambientpressure,M=m.SM_EPR,_=m.SM_gas_O2,S=m.SM_gas_CO2,T=m.SM_gas_N2,b=m.SM_gas_PH,L=m.SM_gas_N2O;return(0,e.jsx)(s.wn,{title:(0,t.Sn)(v),buttons:(0,e.jsx)(s.$n,{icon:"arrow-left",onClick:function(){return f("clear")},children:"Return to Menu"}),children:(0,e.jsxs)(s.Ki,{children:[(0,e.jsx)(s.Ki.Item,{label:"Core Integrity",children:(0,e.jsx)(s.z2,{value:E,minValue:0,maxValue:100,ranges:{good:[100,100],average:[50,100],bad:[-1/0,50]}})}),(0,e.jsx)(s.Ki.Item,{label:"Relative EER",children:(0,e.jsx)(s.az,{color:j>300&&"bad"||j>150&&"average"||"good",children:(0,e.jsx)(s.zv,{format:function(W){return(0,o.Mg)(W,2)+" MeV/cm\xB3"},value:j})})}),(0,e.jsx)(s.Ki.Item,{label:"Temperature",children:(0,e.jsx)(s.az,{color:C>5e3&&"bad"||C>4e3&&"average"||"good",children:(0,e.jsx)(s.zv,{format:function(W){return(0,o.Mg)(W,2)+" K"},value:C})})}),(0,e.jsx)(s.Ki.Item,{label:"Pressure",children:(0,e.jsx)(s.az,{color:P>1e4&&"bad"||P>5e3&&"average"||"good",children:(0,e.jsx)(s.zv,{format:function(W){return(0,o.Mg)(W,2)+" kPa"},value:P})})}),(0,e.jsx)(s.Ki.Item,{label:"Chamber EPR",children:(0,e.jsx)(s.az,{color:M>4&&"bad"||M>1&&"average"||"good",children:(0,e.jsx)(s.zv,{format:function(W){return(0,o.Mg)(W,2)},value:M})})}),(0,e.jsx)(s.Ki.Item,{label:"Gas Composition",children:(0,e.jsxs)(s.Ki,{children:[(0,e.jsxs)(s.Ki.Item,{label:"O\xB2",children:[(0,e.jsx)(s.zv,{value:_}),"%"]}),(0,e.jsxs)(s.Ki.Item,{label:"CO\xB2",children:[(0,e.jsx)(s.zv,{value:S}),"%"]}),(0,e.jsxs)(s.Ki.Item,{label:"N\xB2",children:[(0,e.jsx)(s.zv,{value:T}),"%"]}),(0,e.jsxs)(s.Ki.Item,{label:"PH",children:[(0,e.jsx)(s.zv,{value:b}),"%"]}),(0,e.jsxs)(s.Ki.Item,{label:"N\xB2O",children:[(0,e.jsx)(s.zv,{value:L}),"%"]})]})})]})})}},57754:function(O,u,n){"use strict";n.r(u),n.d(u,{SupplyConsoleMenu:function(){return g}});var e=n(20462),o=n(61358),t=n(88569),r=n(10242),s=n(50656),x=n(60164),g=function(d){var a=(0,o.useState)(0),l=a[0],i=a[1],c=[];return c[0]=(0,e.jsx)(s.SupplyConsoleMenuOrder,{}),c[1]=(0,e.jsx)(x.SupplyConsoleMenuOrderList,{mode:"Approved"}),c[2]=(0,e.jsx)(x.SupplyConsoleMenuOrderList,{mode:"Requested"}),c[3]=(0,e.jsx)(x.SupplyConsoleMenuOrderList,{mode:"All"}),c[4]=(0,e.jsx)(r.SupplyConsoleMenuHistoryExport,{}),(0,e.jsxs)(t.wn,{title:"Menu",children:[(0,e.jsxs)(t.tU,{children:[(0,e.jsx)(t.tU.Tab,{icon:"box",selected:l===0,onClick:function(){return i(0)},children:"Request"}),(0,e.jsx)(t.tU.Tab,{icon:"check-circle-o",selected:l===1,onClick:function(){return i(1)},children:"Accepted"}),(0,e.jsx)(t.tU.Tab,{icon:"circle-o",selected:l===2,onClick:function(){return i(2)},children:"Requests"}),(0,e.jsx)(t.tU.Tab,{icon:"book",selected:l===3,onClick:function(){return i(3)},children:"Order history"}),(0,e.jsx)(t.tU.Tab,{icon:"book",selected:l===4,onClick:function(){return i(4)},children:"Export history"})]}),c[l]||""]})}},10242:function(O,u,n){"use strict";n.r(u),n.d(u,{SupplyConsoleMenuHistoryExport:function(){return r}});var e=n(20462),o=n(7081),t=n(88569),r=function(s){var x=(0,o.Oc)(),g=x.act,d=x.data,a=d.receipts,l=d.order_auth;return a.length?(0,e.jsx)(t.wn,{scrollable:!0,fill:!0,height:"290px",children:a.map(function(i,c){return(0,e.jsxs)(t.wn,{children:[(0,e.jsxs)(t.Ki,{children:[i.title.map(function(f){return(0,e.jsx)(t.Ki.Item,{label:f.field,buttons:l?(0,e.jsx)(t.$n,{icon:"pen",onClick:function(){return g("export_edit",{ref:i.ref,edit:f.field,default:f.entry})},children:"Edit"}):"",children:f.entry},f.field)}),i.error?(0,e.jsx)(t.Ki.Item,{labelColor:"red",label:"Error",children:i.error}):i.contents.map(function(f,m){return(0,e.jsxs)(t.Ki.Item,{label:f.object,buttons:l?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n,{icon:"pen",onClick:function(){return g("export_edit_field",{ref:i.ref,index:m+1,edit:"meow",default:f.object})},children:"Edit"}),(0,e.jsx)(t.$n,{icon:"trash",color:"red",onClick:function(){return g("export_delete_field",{ref:i.ref,index:m+1})},children:"Delete"})]}):"",children:[f.quantity,"x -> ",f.value," points"]},m)})]}),l?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n,{mt:1,icon:"plus",onClick:function(){return g("export_add_field",{ref:i.ref})},children:"Add Item To Record"}),(0,e.jsx)(t.$n,{icon:"trash",onClick:function(){return g("export_delete",{ref:i.ref})},children:"Delete Record"})]}):""]},c)})}):(0,e.jsx)(t.wn,{children:"No receipts found."})}},50656:function(O,u,n){"use strict";n.r(u),n.d(u,{SupplyConsoleMenuOrder:function(){return g}});var e=n(20462),o=n(7402),t=n(15813),r=n(61358),s=n(7081),x=n(88569),g=function(d){var a=(0,s.Oc)(),l=a.act,i=a.data,c=i.categories,f=i.supply_packs,m=i.contraband,v=i.supply_points,E=(0,r.useState)(null),j=E[0],C=E[1],P=(0,t.L)([function(M){return(0,o.pb)(M,function(_){return _.group===j})},function(M){return(0,o.pb)(M,function(_){return!_.contraband||!!m})},function(M){return(0,o.Ul)(M,function(_){return _.name})},function(M){return(0,o.Ul)(M,function(_){return _.cost>v})}])(f);return(0,e.jsx)(x.wn,{children:(0,e.jsxs)(x.BJ,{children:[(0,e.jsx)(x.BJ.Item,{basis:"25%",children:(0,e.jsx)(x.wn,{title:"Categories",scrollable:!0,fill:!0,height:"290px",children:c.map(function(M){return(0,e.jsx)(x.$n,{fluid:!0,selected:M===j,onClick:function(){return C(M)},children:M},M)})})}),(0,e.jsx)(x.BJ.Item,{grow:1,ml:2,children:(0,e.jsx)(x.wn,{title:"Contents",scrollable:!0,fill:!0,height:"290px",children:P.map(function(M){return(0,e.jsx)(x.az,{children:(0,e.jsxs)(x.BJ,{align:"center",justify:"flex-start",children:[(0,e.jsx)(x.BJ.Item,{basis:"70%",children:(0,e.jsx)(x.$n,{fluid:!0,icon:"shopping-cart",ellipsis:!0,color:M.cost>v?"red":void 0,onClick:function(){return l("request_crate",{ref:M.ref})},children:M.name})}),(0,e.jsx)(x.BJ.Item,{children:(0,e.jsx)(x.$n,{color:M.cost>v?"red":void 0,onClick:function(){return l("request_crate_multi",{ref:M.ref})},children:"#"})}),(0,e.jsx)(x.BJ.Item,{children:(0,e.jsx)(x.$n,{color:M.cost>v?"red":void 0,onClick:function(){return l("view_crate",{crate:M.ref})},children:"C"})}),(0,e.jsxs)(x.BJ.Item,{grow:1,children:[M.cost," points"]})]})},M.name)})})})]})})}},60164:function(O,u,n){"use strict";n.r(u),n.d(u,{SupplyConsoleMenuOrderList:function(){return r}});var e=n(20462),o=n(7081),t=n(88569),r=function(s){var x=(0,o.Oc)(),g=x.act,d=x.data,a=s.mode,l=d.orders,i=d.order_auth,c=d.supply_points,f=l.filter(function(m){return m.status===a||a==="All"});return f.length?(0,e.jsxs)(t.wn,{scrollable:!0,fill:!0,height:"290px",children:[a==="Requested"&&i?(0,e.jsx)(t.$n,{mt:-1,mb:1,fluid:!0,color:"red",icon:"trash",onClick:function(){return g("clear_all_requests")},children:"Clear all requests"}):"",f.map(function(m,v){return(0,e.jsxs)(t.wn,{title:"Order "+(v+1),buttons:a==="All"&&i?(0,e.jsx)(t.$n,{color:"red",icon:"trash",onClick:function(){return g("delete_order",{ref:m.ref})},children:"Delete Record"}):"",children:[(0,e.jsxs)(t.Ki,{children:[m.entries.map(function(E,j){return E.entry?(0,e.jsx)(t.Ki.Item,{label:E.field,buttons:i?(0,e.jsx)(t.$n,{icon:"pen",onClick:function(){g("edit_order_value",{ref:m.ref,edit:E.field,default:E.entry})},children:"Edit"}):"",children:E.entry},j):""}),a==="All"?(0,e.jsx)(t.Ki.Item,{label:"Status",children:m.status}):""]}),i&&a==="Requested"?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n,{icon:"check",disabled:m.cost>c,onClick:function(){return g("approve_order",{ref:m.ref})},children:"Approve"}),(0,e.jsx)(t.$n,{icon:"times",onClick:function(){return g("deny_order",{ref:m.ref})},children:"Deny"})]}):""]},v)})]}):(0,e.jsx)(t.wn,{children:"No orders found."})}},95354:function(O,u,n){"use strict";n.r(u),n.d(u,{SupplyConsoleShuttleStatus:function(){return s}});var e=n(20462),o=n(7081),t=n(88569),r=n(41242),s=function(x){var g=(0,o.Oc)(),d=g.act,a=g.data,l=a.supply_points,i=a.shuttle,c=a.shuttle_auth,f="",m=!1;return c&&(i.launch===1&&i.mode===0?f=(0,e.jsx)(t.$n,{icon:"rocket",onClick:function(){return d("send_shuttle",{mode:"send_away"})},children:"Send Away"}):i.launch===2&&(i.mode===3||i.mode===1)?f=(0,e.jsx)(t.$n,{icon:"ban",onClick:function(){return d("send_shuttle",{mode:"cancel_shuttle"})},children:"Cancel Launch"}):i.launch===1&&i.mode===5&&(f=(0,e.jsx)(t.$n,{icon:"rocket",onClick:function(){return d("send_shuttle",{mode:"send_to_station"})},children:"Send Shuttle"})),i.force&&(m=!0)),(0,e.jsxs)(t.wn,{children:[(0,e.jsx)(t.Ki,{children:(0,e.jsx)(t.Ki.Item,{label:"Supply Points",children:(0,e.jsx)(t.zv,{value:l})})}),(0,e.jsx)(t.wn,{title:"Supply Shuttle",mt:2,children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Location",buttons:(0,e.jsxs)(e.Fragment,{children:[f,m?(0,e.jsx)(t.$n,{icon:"exclamation-triangle",onClick:function(){return d("send_shuttle",{mode:"force_shuttle"})},children:"Force Launch"}):""]}),children:i.location}),(0,e.jsx)(t.Ki.Item,{label:"Engine",children:i.engine}),i.mode===4?(0,e.jsx)(t.Ki.Item,{label:"ETA",children:i.time>1?(0,r.fU)(i.time):"LATE"}):""]})})]})}},28143:function(O,u,n){"use strict";n.r(u),n.d(u,{SupplyConsole:function(){return d}});var e=n(20462),o=n(88569),t=n(86471),r=n(15581),s=n(57754),x=n(95354),g=n(98885),d=function(a){return(0,t.modalRegisterBodyOverride)("view_crate",g.viewCrateContents),(0,e.jsx)(r.p8,{width:700,height:620,children:(0,e.jsxs)(r.p8.Content,{children:[(0,e.jsx)(t.ComplexModal,{maxWidth:"100%"}),(0,e.jsxs)(o.wn,{title:"Supply Records",children:[(0,e.jsx)(x.SupplyConsoleShuttleStatus,{}),(0,e.jsx)(s.SupplyConsoleMenu,{})]})]})})}},91192:function(O,u,n){"use strict";n.r(u)},98885:function(O,u,n){"use strict";n.r(u),n.d(u,{viewCrateContents:function(){return r}});var e=n(20462),o=n(7081),t=n(88569),r=function(s){var x=(0,o.Oc)(),g=x.act,d=x.data,a=d.supply_points,l=s.args,i=l.name,c=l.cost,f=l.manifest,m=l.ref,v=l.random;return(0,e.jsx)(t.wn,{width:"400px",m:"-1rem",pb:"1rem",title:i,buttons:(0,e.jsx)(t.$n,{icon:"shopping-cart",disabled:c>a,onClick:function(){return g("request_crate",{ref:m})},children:"Buy - "+c+" points"}),children:(0,e.jsx)(t.wn,{title:"Contains"+(v?" any "+v+" of:":""),scrollable:!0,height:"200px",children:f.map(function(E){return(0,e.jsx)(t.az,{children:E},E)})})})}},76786:function(O,u,n){"use strict";n.r(u),n.d(u,{TEGenerator:function(){return g}});var e=n(20462),o=n(4089),t=n(7081),r=n(88569),s=n(41242),x=n(15581),g=function(a){var l=(0,t.Oc)().data,i=l.totalOutput,c=l.maxTotalOutput,f=l.thermalOutput,m=l.primary,v=l.secondary;return(0,e.jsx)(x.p8,{width:550,height:310,children:(0,e.jsxs)(x.p8.Content,{children:[(0,e.jsx)(r.wn,{title:"Status",children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Total Output",children:(0,e.jsx)(r.z2,{value:i,maxValue:c,children:(0,s.d5)(i)})}),(0,e.jsx)(r.Ki.Item,{label:"Thermal Output",children:(0,s.d5)(f)})]})}),m&&v?(0,e.jsxs)(r.so,{spacing:1,children:[(0,e.jsx)(r.so.Item,{shrink:1,grow:1,children:(0,e.jsx)(d,{name:"Primary Circulator",values:m})}),(0,e.jsx)(r.so.Item,{shrink:1,grow:1,children:(0,e.jsx)(d,{name:"Secondary Circulator",values:v})})]}):(0,e.jsx)(r.az,{color:"bad",children:"Warning! Both circulators must be connected in order to operate this machine."})]})})},d=function(a){var l=a.name,i=a.values,c=i.dir,f=i.output,m=i.flowCapacity,v=i.inletPressure,E=i.inletTemperature,j=i.outletPressure,C=i.outletTemperature;return(0,e.jsx)(r.wn,{title:l+" ("+c+")",children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Turbine Output",children:(0,s.d5)(f)}),(0,e.jsxs)(r.Ki.Item,{label:"Flow Capacity",children:[(0,o.Mg)(m,2),"%"]}),(0,e.jsx)(r.Ki.Item,{label:"Inlet Pressure",children:(0,s.QL)(v*1e3,0,"Pa")}),(0,e.jsxs)(r.Ki.Item,{label:"Inlet Temperature",children:[(0,o.Mg)(E,2)," K"]}),(0,e.jsx)(r.Ki.Item,{label:"Outlet Pressure",children:(0,s.QL)(j*1e3,0,"Pa")}),(0,e.jsxs)(r.Ki.Item,{label:"Outlet Temperature",children:[(0,o.Mg)(C,2)," K"]})]})})}},27136:function(O,u,n){"use strict";n.r(u),n.d(u,{Tank:function(){return s}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),s=function(x){var g=(0,o.Oc)(),d=g.act,a=g.data,l=a.connected,i=a.showToggle,c=i===void 0?!0:i,f=a.maskConnected,m=a.tankPressure,v=a.releasePressure,E=a.defaultReleasePressure,j=a.minReleasePressure,C=a.maxReleasePressure;return(0,e.jsx)(r.p8,{width:400,height:320,children:(0,e.jsxs)(r.p8.Content,{children:[(0,e.jsx)(t.wn,{title:"Status",buttons:!!c&&(0,e.jsx)(t.$n,{icon:l?"air-freshener":"lock-open",selected:l,disabled:!f,onClick:function(){return d("toggle")},children:"Mask Release Valve"}),children:(0,e.jsx)(t.Ki,{children:(0,e.jsx)(t.Ki.Item,{label:"Mask Connected",children:f?"Yes":"No"})})}),(0,e.jsx)(t.wn,{children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Pressure",children:(0,e.jsx)(t.z2,{value:m/1013,ranges:{good:[.35,1/0],average:[.15,.35],bad:[-1/0,.15]},children:a.tankPressure+" kPa"})}),(0,e.jsxs)(t.Ki.Item,{label:"Pressure Regulator",children:[(0,e.jsx)(t.$n,{icon:"fast-backward",disabled:v===j,onClick:function(){return d("pressure",{pressure:"min"})}}),(0,e.jsx)(t.Q7,{animated:!0,step:1,value:v,width:"65px",unit:"kPa",minValue:j,maxValue:C,onChange:function(P){return d("pressure",{pressure:P})}}),(0,e.jsx)(t.$n,{icon:"fast-forward",disabled:v===C,onClick:function(){return d("pressure",{pressure:"max"})}}),(0,e.jsx)(t.$n,{icon:"undo",disabled:v===E,onClick:function(){return d("pressure",{pressure:"reset"})}})]})]})})]})})}},10351:function(O,u,n){"use strict";n.r(u),n.d(u,{TankDispenser:function(){return s}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),s=function(x){var g=(0,o.Oc)(),d=g.act,a=g.data,l=a.plasma,i=a.oxygen;return(0,e.jsx)(r.p8,{width:275,height:103,children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsx)(t.wn,{children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Phoron",buttons:(0,e.jsx)(t.$n,{icon:l?"square":"square-o",disabled:!l,onClick:function(){return d("plasma")},children:"Dispense"}),children:l}),(0,e.jsx)(t.Ki.Item,{label:"Oxygen",buttons:(0,e.jsx)(t.$n,{icon:i?"square":"square-o",disabled:!i,onClick:function(){return d("oxygen")},children:"Dispense"}),children:i})]})})})})}},66303:function(O,u,n){"use strict";n.r(u),n.d(u,{TelecommsLogBrowser:function(){return x}});var e=n(20462),o=n(4089),t=n(7081),r=n(88569),s=n(15581),x=function(l){var i=(0,t.Oc)(),c=i.act,f=i.data,m=f.universal_translate,v=f.network,E=f.temp,j=f.servers,C=f.selectedServer;return(0,e.jsx)(s.p8,{width:575,height:450,children:(0,e.jsxs)(s.p8.Content,{scrollable:!0,children:[E&&E.color==="bad"&&(0,e.jsxs)(r.IC,{danger:!0,children:[(0,e.jsx)(r.az,{inline:!0,verticalAlign:"middle",children:E.text}),(0,e.jsx)(r.$n,{icon:"times-circle",style:{float:"right"},onClick:function(){return c("cleartemp")}}),(0,e.jsx)(r.az,{style:{clear:"both"}})]})||E&&E.color!=="bad"&&(0,e.jsxs)(r.IC,{warning:!0,children:[(0,e.jsx)(r.az,{inline:!0,verticalAlign:"middle",children:E.text}),(0,e.jsx)(r.$n,{icon:"times-circle",style:{float:"right"},onClick:function(){return c("cleartemp")}}),(0,e.jsx)(r.az,{style:{clear:"both"}})]})||"",(0,e.jsx)(r.wn,{title:"Network Control",children:(0,e.jsx)(r.Ki,{children:(0,e.jsx)(r.Ki.Item,{label:"Current Network",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.$n,{icon:"search",onClick:function(){return c("scan")},children:"Refresh"}),(0,e.jsx)(r.$n,{color:"bad",icon:"exclamation-triangle",disabled:j.length===0,onClick:function(){return c("release")},children:"Flush Buffer"})]}),children:(0,e.jsx)(r.$n,{icon:"pen",onClick:function(){return c("network")},children:v})})})}),C?(0,e.jsx)(d,{network:v,server:C,universal_translate:m}):(0,e.jsx)(g,{network:v,servers:j})]})})},g=function(l){var i=(0,t.Oc)().act,c=l.network,f=l.servers;return!f||!f.length?(0,e.jsxs)(r.wn,{title:"Detected Telecommunications Servers",children:[(0,e.jsx)(r.az,{color:"bad",children:"No servers detected."}),(0,e.jsx)(r.$n,{fluid:!0,icon:"search",onClick:function(){return i("scan")},children:"Scan"})]}):(0,e.jsx)(r.wn,{title:"Detected Telecommunications Servers",children:(0,e.jsx)(r.Ki,{children:f.map(function(m){return(0,e.jsx)(r.Ki.Item,{label:m.name+" ("+m.id+")",children:(0,e.jsx)(r.$n,{icon:"eye",onClick:function(){return i("view",{id:m.id})},children:"View"})},m.id)})})})},d=function(l){var i=(0,t.Oc)().act,c=l.network,f=l.server,m=l.universal_translate;return(0,e.jsxs)(r.wn,{title:"Server ("+f.id+")",buttons:(0,e.jsx)(r.$n,{icon:"undo",onClick:function(){return i("mainmenu")},children:"Return"}),children:[(0,e.jsx)(r.Ki,{children:(0,e.jsx)(r.Ki.Item,{label:"Total Recorded Traffic",children:f.totalTraffic>=1024?(0,o.Mg)(f.totalTraffic/1024)+" Terrabytes":f.totalTraffic+" Gigabytes"})}),(0,e.jsx)(r.wn,{title:"Stored Logs",mt:"4px",children:(0,e.jsx)(r.so,{wrap:"wrap",children:!f.logs||!f.logs.length?"No Logs Detected.":f.logs.map(function(v){return(0,e.jsx)(r.so.Item,{m:"2px",basis:"49%",grow:v.id%2,children:(0,e.jsx)(r.wn,{title:m||v.parameters.uspeech||v.parameters.intelligible||v.input_type==="Execution Error"?v.input_type:"Audio File",buttons:(0,e.jsx)(r.$n.Confirm,{confirmContent:"Delete Log?",color:"bad",icon:"trash",confirmIcon:"trash",onClick:function(){return i("delete",{id:v.id})}}),children:v.input_type==="Execution Error"?(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Data type",children:"Error"}),(0,e.jsx)(r.Ki.Item,{label:"Output",children:v.parameters.message}),(0,e.jsx)(r.Ki.Item,{label:"Delete",children:(0,e.jsx)(r.$n,{icon:"trash",onClick:function(){return i("delete",{id:v.id})}})})]}):m||v.parameters.uspeech||v.parameters.intelligible?(0,e.jsx)(a,{log:v}):(0,e.jsx)(a,{error:!0})})},v.id)})})})]})},a=function(l){var i=l.log,c=l.error,f=i&&i.parameters||{none:"none"},m=f.timecode,v=f.name,E=f.race,j=f.job,C=f.message;return c?(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Time Recieved",children:m}),(0,e.jsx)(r.Ki.Item,{label:"Source",children:"Unidentifiable"}),(0,e.jsx)(r.Ki.Item,{label:"Class",children:E}),(0,e.jsx)(r.Ki.Item,{label:"Contents",children:"Unintelligible"})]}):(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Time Recieved",children:m}),(0,e.jsxs)(r.Ki.Item,{label:"Source",children:[v," (Job: ",j,")"]}),(0,e.jsx)(r.Ki.Item,{label:"Class",children:E}),(0,e.jsx)(r.Ki.Item,{label:"Contents",className:"LabeledList__breakContents",children:C})]})}},3684:function(O,u,n){"use strict";n.r(u),n.d(u,{TelecommsMachineBrowser:function(){return s}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),s=function(g){var d=(0,o.Oc)(),a=d.act,l=d.data,i=l.network,c=l.temp,f=l.machinelist,m=l.selectedMachine;return(0,e.jsx)(r.p8,{width:575,height:450,children:(0,e.jsxs)(r.p8.Content,{scrollable:!0,children:[c&&c.color==="bad"&&(0,e.jsxs)(t.IC,{danger:!0,children:[(0,e.jsx)(t.az,{inline:!0,verticalAlign:"middle",children:c.text}),(0,e.jsx)(t.$n,{icon:"times-circle",style:{float:"right"},onClick:function(){return a("cleartemp")}}),(0,e.jsx)(t.az,{style:{clear:"both"}})]})||c&&c.color!=="bad"&&(0,e.jsxs)(t.IC,{warning:!0,children:[(0,e.jsx)(t.az,{inline:!0,verticalAlign:"middle",children:c.text}),(0,e.jsx)(t.$n,{icon:"times-circle",style:{float:"right"},onClick:function(){return a("cleartemp")}}),(0,e.jsx)(t.az,{style:{clear:"both"}})]})||"",(0,e.jsx)(t.wn,{title:"Network Control",children:(0,e.jsx)(t.Ki,{children:(0,e.jsx)(t.Ki.Item,{label:"Current Network",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n,{icon:"search",onClick:function(){return a("scan")},children:"Probe Network"}),(0,e.jsx)(t.$n,{color:"bad",icon:"exclamation-triangle",disabled:f.length===0,onClick:function(){return a("release")},children:"Flush Buffer"})]}),children:(0,e.jsx)(t.$n,{icon:"pen",onClick:function(){return a("network")},children:i})})})}),f&&f.length?(0,e.jsx)(x,{title:m?m.name+" ("+m.id+")":"Detected Network Entities",list:m?m.links:f,showBack:m}):(0,e.jsx)(t.wn,{title:"No Devices Found",children:(0,e.jsx)(t.$n,{icon:"search",onClick:function(){return a("scan")},children:"Probe Network"})})]})})},x=function(g){var d=(0,o.Oc)(),a=d.act,l=d.data,i=g.list,c=g.title,f=g.showBack;return(0,e.jsxs)(t.wn,{title:c,buttons:f&&(0,e.jsx)(t.$n,{icon:"undo",onClick:function(){return a("mainmenu")},children:"Back to Main Menu"}),children:[(0,e.jsx)(t.az,{color:"label",children:(0,e.jsx)("u",{children:"Linked entities"})}),(0,e.jsx)(t.Ki,{children:i.length?i.map(function(m){return(0,e.jsx)(t.Ki.Item,{label:m.name+" ("+m.id+")",children:(0,e.jsx)(t.$n,{icon:"eye",onClick:function(){return a("view",{id:m.id})},children:"View"})},m.id)}):(0,e.jsx)(t.Ki.Item,{color:"bad",children:"No links detected."})})]})}},30053:function(O,u,n){"use strict";n.r(u),n.d(u,{TelecommsMultitoolMenu:function(){return x}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),s=n(3751),x=function(a){var l=(0,o.Oc)().data,i=l.options;return(0,e.jsx)(r.p8,{width:520,height:540,children:(0,e.jsxs)(r.p8.Content,{scrollable:!0,children:[(0,e.jsx)(s.TemporaryNotice,{}),(0,e.jsx)(g,{}),(0,e.jsx)(d,{options:i})]})})},g=function(a){var l=(0,o.Oc)(),i=l.act,c=l.data,f=c.on,m=c.id,v=c.network,E=c.autolinkers,j=c.shadowlink,C=c.linked,P=c.filter,M=c.multitool,_=c.multitool_buffer;return(0,e.jsxs)(t.wn,{title:"Status",buttons:(0,e.jsx)(t.$n,{icon:"power-off",selected:f,onClick:function(){return i("toggle")},children:f?"On":"Off"}),children:[(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Identification String",children:(0,e.jsx)(t.$n,{icon:"pen",onClick:function(){return i("id")},children:m})}),(0,e.jsx)(t.Ki.Item,{label:"Network",children:(0,e.jsx)(t.$n,{icon:"pen",onClick:function(){return i("network")},children:v})}),(0,e.jsx)(t.Ki.Item,{label:"Prefabrication",children:E?"TRUE":"FALSE"}),j?(0,e.jsx)(t.Ki.Item,{label:"Shadow Link",children:"Active."}):"",M?(0,e.jsxs)(t.Ki.Item,{label:"Multitool Buffer",children:[_?(0,e.jsxs)(e.Fragment,{children:[_.name," (",_.id,")"]}):"",(0,e.jsx)(t.$n,{color:_?"green":void 0,icon:_?"link":"plus",onClick:_?function(){return i("link")}:function(){return i("buffer")},children:_?"Link ("+_.id+")":"Add Machine"}),_?(0,e.jsx)(t.$n,{color:"red",icon:"trash",onClick:function(){return i("flush")},children:"Flush"}):""]}):""]}),(0,e.jsx)(t.wn,{title:"Linked network Entities",mt:1,children:(0,e.jsx)(t.Ki,{children:C.map(function(S){return(0,e.jsx)(t.Ki.Item,{label:S.ref+" "+S.name+" ("+S.id+")",buttons:(0,e.jsx)(t.$n.Confirm,{color:"red",icon:"trash",onClick:function(){return i("unlink",{unlink:S.index})}})},S.ref)})})}),(0,e.jsxs)(t.wn,{title:"Filtering Frequencies",mt:1,buttons:(0,e.jsx)(t.$n,{icon:"pen",onClick:function(){return i("freq")},children:"Add Frequency"}),children:[P.map(function(S,T){return(0,e.jsx)(t.$n.Confirm,{confirmContent:"Delete?",confirmColor:"red",confirmIcon:"trash",onClick:function(){return i("delete",{delete:S.freq})},children:S.name+" GHz"},T)}),!P||P.length===0?(0,e.jsx)(t.az,{color:"label",children:"No filters."}):""]})]})},d=function(a){var l=(0,o.Oc)().act,i=a.options,c=i.use_listening_level,f=i.use_broadcasting,m=i.use_receiving,v=i.listening_level,E=i.broadcasting,j=i.receiving,C=i.use_change_freq,P=i.change_freq,M=i.use_broadcast_range,_=i.use_receive_range,S=i.range,T=i.minRange,b=i.maxRange;return!c&&!f&&!m&&!C&&!M&&!_?(0,e.jsx)(t.wn,{title:"No Options Found"}):(0,e.jsx)(t.wn,{title:"Options",children:(0,e.jsxs)(t.Ki,{children:[c?(0,e.jsx)(t.Ki.Item,{label:"Signal Locked to Station",children:(0,e.jsx)(t.$n,{icon:v?"lock-closed":"lock-open",onClick:function(){return l("change_listening")},children:v?"Yes":"No"})}):"",f?(0,e.jsx)(t.Ki.Item,{label:"Broadcasting",children:(0,e.jsx)(t.$n,{icon:"power-off",selected:E,onClick:function(){return l("broadcast")},children:E?"Yes":"No"})}):"",m?(0,e.jsx)(t.Ki.Item,{label:"Receving",children:(0,e.jsx)(t.$n,{icon:"power-off",selected:j,onClick:function(){return l("receive")},children:j?"Yes":"No"})}):"",C?(0,e.jsx)(t.Ki.Item,{label:"Change Signal Frequency",children:(0,e.jsx)(t.$n,{icon:"wave-square",selected:!!P,onClick:function(){return l("change_freq")},children:P?"Yes ("+P+")":"No"})}):"",M||_?(0,e.jsx)(t.Ki.Item,{label:(M?"Broadcast":"Receive")+" Range",children:(0,e.jsx)(t.Q7,{step:1,value:S,minValue:T,maxValue:b,unit:"gigameters",stepPixelSize:4,format:function(L){return(L+1).toString()},onDrag:function(L){return l("range",{range:L})}})}):""]})})}},50624:function(O,u,n){"use strict";n.r(u),n.d(u,{Teleporter:function(){return s}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),s=function(x){var g=(0,o.Oc)(),d=g.act,a=g.data,l=a.locked_name,i=a.station_connected,c=a.hub_connected,f=a.calibrated,m=a.teleporter_on;return(0,e.jsx)(r.p8,{width:300,height:200,children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsx)(t.wn,{children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Target",children:(0,e.jsx)(t.$n,{fluid:!0,icon:"bullseye",onClick:function(){return d("select_target")},children:l})}),(0,e.jsx)(t.Ki.Item,{label:"Calibrated",children:(0,e.jsx)(t.$n.Checkbox,{fluid:!0,checked:f,color:f?"good":"bad",onClick:function(){return d("test_fire")},children:f?"Accurate":"Test Fire"})}),(0,e.jsx)(t.Ki.Item,{label:"Teleporter",children:(0,e.jsx)(t.$n.Checkbox,{fluid:!0,checked:m,color:m?"good":"bad",onClick:function(){return d("toggle_on")},children:m?"Online":"OFFLINE"})}),(0,e.jsx)(t.Ki.Item,{label:"Station",children:i?"Connected":"Not Connected"}),(0,e.jsx)(t.Ki.Item,{label:"Hub",children:c?"Connected":"Not Connected"})]})})})})}},92546:function(O,u,n){"use strict";n.r(u),n.d(u,{TelesciConsole:function(){return x},TelesciConsoleContent:function(){return d}});var e=n(20462),o=n(7402),t=n(7081),r=n(88569),s=n(15581),x=function(a){var l=(0,t.Oc)().data,i=l.noTelepad;return(0,e.jsx)(s.p8,{width:400,height:450,children:(0,e.jsx)(s.p8.Content,{scrollable:!0,children:i&&(0,e.jsx)(g,{})||(0,e.jsx)(d,{})})})},g=function(a){return(0,e.jsxs)(r.wn,{title:"Error",color:"bad",children:["No telepad located.",(0,e.jsx)("br",{}),"Please add telepad data."]})},d=function(a){var l=(0,t.Oc)(),i=l.act,c=l.data,f=c.insertedGps,m=c.rotation,v=c.currentZ,E=c.cooldown,j=c.crystalCount,C=c.maxCrystals,P=c.maxPossibleDistance,M=c.maxAllowedDistance,_=c.distance,S=c.tempMsg,T=c.sectorOptions,b=c.lastTeleData;return(0,e.jsxs)(r.wn,{title:"Telepad Controls",buttons:(0,e.jsx)(r.$n,{icon:"eject",disabled:!f,onClick:function(){return i("ejectGPS")},children:"Eject GPS"}),children:[(0,e.jsx)(r.IC,{info:!0,children:E&&(0,e.jsxs)(r.az,{children:["Telepad is recharging. Please wait",(0,e.jsx)(r.zv,{value:E})," seconds."]})||(0,e.jsx)(r.az,{children:S})}),(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Bearing",children:(0,e.jsx)(r.Q7,{fluid:!0,value:m,format:function(L){return L+"\xB0"},step:1,minValue:-900,maxValue:900,onDrag:function(L){return i("setrotation",{val:L})}})}),(0,e.jsx)(r.Ki.Item,{label:"Distance",children:(0,e.jsx)(r.Q7,{fluid:!0,value:_,format:function(L){return L+"/"+M+" m"},minValue:0,maxValue:M,step:1,stepPixelSize:4,onDrag:function(L){return i("setdistance",{val:L})}})}),(0,e.jsx)(r.Ki.Item,{label:"Sector",children:T&&(0,o.Ul)(T,function(L){return L}).map(function(L){return(0,e.jsx)(r.$n,{icon:"check-circle",selected:v===Number(L),onClick:function(){return i("setz",{setz:L})},children:L},L)})}),(0,e.jsxs)(r.Ki.Item,{label:"Controls",children:[(0,e.jsx)(r.$n,{icon:"share",iconRotation:-90,onClick:function(){return i("send")},children:"Send"}),(0,e.jsx)(r.$n,{icon:"share",iconRotation:90,onClick:function(){return i("receive")},children:"Receive"}),(0,e.jsx)(r.$n,{icon:"sync",iconRotation:90,onClick:function(){return i("recal")},children:"Recalibrate"})]})]}),b&&(0,e.jsx)(r.wn,{mt:1,children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsxs)(r.Ki.Item,{label:"Telepad Location",children:[b.src_x,", ",b.src_y]}),(0,e.jsxs)(r.Ki.Item,{label:"Distance",children:[b.distance,"m"]}),(0,e.jsxs)(r.Ki.Item,{label:"Transit Time",children:[b.time," secs"]})]})})||(0,e.jsx)(r.wn,{mt:1,children:"No teleport data found."}),(0,e.jsxs)(r.wn,{children:["Crystals: ",j," / ",C]})]})}},95273:function(O,u,n){"use strict";n.r(u),n.d(u,{TextInputModal:function(){return i},removeAllSkiplines:function(){return l},sanitizeMultiline:function(){return a}});var e=n(20462),o=n(87239),t=n(61358),r=n(7081),s=n(88569),x=n(15581),g=n(5335),d=n(44149),a=function(f){return f.replace(/(\n|\r\n){3,}/,"\n\n")},l=function(f){return f.replace(/[\r\n]+/," ")},i=function(f){var m=(0,r.Oc)(),v=m.act,E=m.data,j=E.large_buttons,C=E.max_length,P=E.message,M=P===void 0?"":P,_=E.multiline,S=E.placeholder,T=S===void 0?"":S,b=E.timeout,L=E.title,W=(0,t.useState)(T||""),k=W[0],$=W[1],w=function(X){if(X!==k){var Z=_?a(X):l(X);$(Z)}},V=_||k.length>=30,F=135+(M.length>30?Math.ceil(M.length/4):0)+(V?75:0)+(M.length&&j?5:0);return(0,e.jsxs)(x.p8,{title:L,width:325,height:F,children:[b&&(0,e.jsx)(d.Loader,{value:b}),(0,e.jsx)(x.p8.Content,{onKeyDown:function(X){X.key===o._.Enter&&(!V||!X.shiftKey)&&v("submit",{entry:k}),(0,o.K)(X.key)&&v("cancel")},children:(0,e.jsx)(s.wn,{fill:!0,children:(0,e.jsxs)(s.BJ,{fill:!0,vertical:!0,children:[(0,e.jsx)(s.BJ.Item,{children:(0,e.jsx)(s.az,{color:"label",children:M})}),(0,e.jsx)(s.BJ.Item,{grow:!0,children:(0,e.jsx)(c,{input:k,onType:w},L)}),(0,e.jsx)(s.BJ.Item,{children:(0,e.jsx)(g.InputButtons,{input:k,message:k.length+"/"+C})})]})})})]})},c=function(f){var m=(0,r.Oc)(),v=m.act,E=m.data,j=E.max_length,C=E.multiline,P=f.input,M=f.onType,_=C||P.length>=30;return(0,e.jsx)(s.fs,{autoFocus:!0,autoSelect:!0,height:C||P.length>=30?"100%":"1.8rem",maxLength:j,onEscape:function(){return v("cancel")},onEnter:function(S){_&&S.shiftKey||(S.preventDefault(),v("submit",{entry:P}))},onChange:function(S,T){return M(T)},onInput:function(S,T){return M(T)},placeholder:"Type something...",value:P})}},34113:function(O,u,n){"use strict";n.r(u),n.d(u,{TimeClock:function(){return g}});var e=n(20462),o=n(4089),t=n(7081),r=n(88569),s=n(15581),x=n(10921),g=function(d){var a=(0,t.Oc)(),l=a.act,i=a.data,c=i.department_hours,f=i.user_name,m=i.card,v=i.assignment,E=i.job_datum,j=i.allow_change_job,C=i.job_choices;return(0,e.jsx)(s.p8,{width:500,height:520,children:(0,e.jsxs)(s.p8.Content,{scrollable:!0,children:[(0,e.jsxs)(r.wn,{title:"OOC",children:[(0,e.jsx)(r.IC,{children:"OOC Note: PTO acquired is account-wide and shared across all characters. Info listed below is not IC information."}),(0,e.jsx)(r.wn,{title:"Time Off Balance for "+f,children:(0,e.jsx)(r.Ki,{children:!!c&&Object.keys(c).map(function(P){return(0,e.jsxs)(r.Ki.Item,{label:P,color:c[P]>6?"good":c[P]>1?"average":"bad",children:[(0,o.Mg)(c[P],1)," ",c[P]===1?"hour":"hours"]},P)})})})]}),(0,e.jsx)(r.wn,{title:"Employee Info",children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Employee ID",children:(0,e.jsx)(r.$n,{fluid:!0,icon:"user",onClick:function(){return l("id")},children:m||"Insert ID"})}),!!E&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.Ki.Item,{label:"Rank",children:(0,e.jsx)(r.az,{backgroundColor:E.selection_color,p:.8,children:(0,e.jsxs)(r.so,{justify:"space-between",align:"center",children:[(0,e.jsx)(r.so.Item,{children:(0,e.jsx)(r.az,{ml:1,children:(0,e.jsx)(x.RankIcon,{color:"white",rank:E.title})})}),(0,e.jsx)(r.so.Item,{children:(0,e.jsx)(r.az,{fontSize:1.5,inline:!0,mr:1,children:E.title})})]})})}),(0,e.jsx)(r.Ki.Item,{label:"Departments",children:E.departments}),(0,e.jsx)(r.Ki.Item,{label:"Pay Scale",children:E.economic_modifier}),(0,e.jsx)(r.Ki.Item,{label:"PTO Elegibility",children:E.timeoff_factor>0&&(0,e.jsxs)(r.az,{children:["Earns PTO - ",E.pto_department]})||E.timeoff_factor<0&&(0,e.jsxs)(r.az,{children:["Requires PTO - ",E.pto_department]})||(0,e.jsx)(r.az,{children:"Neutral"})})]})]})}),!!(j&&E&&E.timeoff_factor!==0&&v!=="Dismissed")&&(0,e.jsx)(r.wn,{title:"Employment Actions",children:E.timeoff_factor>0&&(!!c&&c[E.pto_department]>0&&(0,e.jsx)(r.$n,{fluid:!0,icon:"exclamation-triangle",onClick:function(){return l("switch-to-offduty")},children:"Go Off-Duty"})||(0,e.jsx)(r.az,{color:"bad",children:"Warning: You do not have enough accrued time off to go off-duty."}))||!!C&&Object.keys(C).length&&Object.keys(C).map(function(P){var M=C[P];return M.map(function(_){return(0,e.jsx)(r.$n,{icon:"suitcase",onClick:function(){return l("switch-to-onduty-rank",{"switch-to-onduty-rank":P,"switch-to-onduty-assignment":_})},children:_},_)})})||(0,e.jsx)(r.az,{color:"bad",children:"No Open Positions - See Head Of Personnel"})})]})})}},6972:function(O,u,n){"use strict";n.r(u),n.d(u,{TraitDescription:function(){return g},TraitSelection:function(){return x},TraitTutorial:function(){return s}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),s=function(d){var a=(0,o.Oc)(),l=a.act,i=a.data;return(0,e.jsx)(r.p8,{width:804,height:426,children:(0,e.jsx)(r.p8.Content,{scrollable:!0,children:(0,e.jsx)(t.wn,{title:"Guide to Custom Traits",children:(0,e.jsx)(x,{})})})})},x=function(d){var a=(0,o.Oc)(),l=a.act,i=a.data,c=i.names,f=i.selection;return(0,e.jsxs)(t.BJ,{children:[(0,e.jsx)(t.BJ.Item,{shrink:!0,children:(0,e.jsx)(t.wn,{title:"Trait Selection",children:(0,e.jsx)(t.tU,{vertical:!0,children:c.map(function(m){return(0,e.jsx)(t.tU.Tab,{selected:m===f,onClick:function(){return l("select_trait",{name:m})},children:(0,e.jsx)(t.az,{inline:!0,children:m})},m)})})})}),(0,e.jsx)(t.BJ.Item,{grow:8,children:f&&(0,e.jsx)(t.wn,{title:f,children:(0,e.jsx)(g,{name:f})})})]})},g=function(d){var a=(0,o.Oc)(),l=a.act,i=a.data,c=d.name,f=i.descriptions,m=i.categories,v=i.tutorials;return(0,e.jsxs)(t.wn,{children:[(0,e.jsx)("b",{children:"Name:"})," ",c,(0,e.jsx)("br",{}),(0,e.jsx)("b",{children:"Category:"})," ",m[c],(0,e.jsx)("br",{}),(0,e.jsx)("b",{children:"Description:"})," ",f[c],(0,e.jsx)("br",{}),(0,e.jsx)("b",{children:"Details & How to Use:"}),(0,e.jsx)("br",{}),(0,e.jsx)("br",{}),(0,e.jsx)("div",{dangerouslySetInnerHTML:{__html:v[c]}})]})}},67159:function(O,u,n){"use strict";n.r(u),n.d(u,{TransferValve:function(){return s}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),s=function(x){var g=(0,o.Oc)(),d=g.act,a=g.data,l=a.tank_one,i=a.tank_two,c=a.attached_device,f=a.valve;return(0,e.jsx)(r.p8,{children:(0,e.jsxs)(r.p8.Content,{children:[(0,e.jsx)(t.wn,{children:(0,e.jsx)(t.Ki,{children:(0,e.jsx)(t.Ki.Item,{label:"Valve Status",children:(0,e.jsx)(t.$n,{icon:f?"unlock":"lock",disabled:!l||!i,onClick:function(){return d("toggle")},children:f?"Open":"Closed"})})})}),(0,e.jsx)(t.wn,{title:"Assembly",buttons:(0,e.jsx)(t.$n,{textAlign:"center",width:"150px",icon:"cog",disabled:!c,onClick:function(){return d("device")},children:"Configure Assembly"}),children:(0,e.jsx)(t.Ki,{children:c?(0,e.jsx)(t.Ki.Item,{label:"Attachment",children:(0,e.jsx)(t.$n,{icon:"eject",disabled:!c,onClick:function(){return d("remove_device")},children:c})}):(0,e.jsx)(t.IC,{textAlign:"center",children:"Attach Assembly"})})}),(0,e.jsx)(t.wn,{title:"Attachment One",children:(0,e.jsx)(t.Ki,{children:l?(0,e.jsx)(t.Ki.Item,{label:"Attachment",children:(0,e.jsx)(t.$n,{icon:"eject",disabled:!l,onClick:function(){return d("tankone")},children:l})}):(0,e.jsx)(t.IC,{textAlign:"center",children:"Attach Tank"})})}),(0,e.jsx)(t.wn,{title:"Attachment Two",children:(0,e.jsx)(t.Ki,{children:i?(0,e.jsx)(t.Ki.Item,{label:"Attachment",children:(0,e.jsx)(t.$n,{icon:"eject",disabled:!i,onClick:function(){return d("tanktwo")},children:i})}):(0,e.jsx)(t.IC,{textAlign:"center",children:"Attach Tank"})})})]})})}},76992:function(O,u,n){"use strict";n.r(u),n.d(u,{TurbineControl:function(){return x}});var e=n(20462),o=n(7081),t=n(88569),r=n(41242),s=n(15581),x=function(g){var d=(0,o.Oc)(),a=d.act,l=d.data,i=l.compressor_broke,c=l.turbine_broke,f=l.broken,m=l.door_status,v=l.online,E=l.power,j=l.rpm,C=l.temp;return(0,e.jsx)(s.p8,{width:520,height:440,children:(0,e.jsxs)(s.p8.Content,{scrollable:!0,children:[(0,e.jsx)(t.wn,{title:"Turbine Controller",children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Status",children:f&&(0,e.jsxs)(t.az,{color:"bad",children:["Setup is broken",(0,e.jsx)(t.$n,{icon:"sync",onClick:function(){return a("reconnect")},children:"Reconnect"})]})||(0,e.jsx)(t.az,{color:v?"good":"bad",children:v&&!i&&!c?"Online":"Offline"})}),(0,e.jsx)(t.Ki.Item,{label:"Compressor",children:i&&(0,e.jsx)(t.az,{color:"bad",children:"Compressor is inoperable."})||c&&(0,e.jsx)(t.az,{color:"bad",children:"Turbine is inoperable."})||(0,e.jsx)(t.az,{children:(0,e.jsx)(t.$n.Checkbox,{checked:v,onClick:function(){return a(v?"power-off":"power-on")},children:"Compressor Power"})})}),(0,e.jsx)(t.Ki.Item,{label:"Vent Doors",children:(0,e.jsx)(t.$n.Checkbox,{checked:m,onClick:function(){return a("doors")},children:m?"Closed":"Open"})})]})}),(0,e.jsx)(t.wn,{title:"Status",children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsxs)(t.Ki.Item,{label:"Turbine Speed",children:[f?"--":(0,e.jsx)(t.zv,{value:j})," RPM"]}),(0,e.jsxs)(t.Ki.Item,{label:"Internal Temperature",children:[f?"--":(0,e.jsx)(t.zv,{value:C})," K"]}),(0,e.jsx)(t.Ki.Item,{label:"Generated Power",children:f?"--":(0,e.jsx)(t.zv,{format:function(P){return(0,r.d5)(P)},value:Number(E)})})]})})]})})}},13101:function(O,u,n){"use strict";n.r(u),n.d(u,{Turbolift:function(){return s}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),s=function(x){var g=(0,o.Oc)(),d=g.act,a=g.data,l=a.floors,i=a.doors_open,c=a.fire_mode;return(0,e.jsx)(r.p8,{width:480,height:c?285:260,children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsxs)(t.wn,{title:"Floor Selection",className:c?"Section--elevator--fire":null,buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n,{icon:i?"door-open":"door-closed",selected:i&&!c,color:c?"red":null,onClick:function(){return d("toggle_doors")},children:i?c?"Close Doors (SAFETY OFF)":"Doors Open":"Doors Closed"}),(0,e.jsx)(t.$n,{icon:"exclamation-triangle",color:"bad",onClick:function(){return d("emergency_stop")},children:"Emergency Stop"})]}),children:[!c||(0,e.jsx)(t.wn,{className:"Section--elevator--fire",textAlign:"center",title:"FIREFIGHTER MODE ENGAGED"}),(0,e.jsx)(t.so,{wrap:"wrap",children:l.map(function(f){return(0,e.jsx)(t.so.Item,{basis:"100%",children:(0,e.jsxs)(t.so,{align:"center",justify:"space-around",children:[(0,e.jsx)(t.so.Item,{basis:"22%",textAlign:"right",mr:"3px",children:f.label||"Floor #"+f.id}),(0,e.jsx)(t.so.Item,{basis:"8%",textAlign:"left",children:(0,e.jsx)(t.$n,{icon:"circle",color:f.current?"red":f.target?"green":f.queued?"yellow":null,onClick:function(){return d("move_to_floor",{ref:f.ref})}})}),(0,e.jsx)(t.so.Item,{basis:"50%",grow:1,children:f.name})]})},f.id)})})]})})})}},28665:function(O,u,n){"use strict";n.r(u),n.d(u,{ExploitableInformation:function(){return r}});var e=n(20462),o=n(7081),t=n(88569),r=function(s){var x=(0,o.Oc)(),g=x.act,d=x.data,a=d.exploit,l=d.locked_records;return(0,e.jsx)(t.wn,{title:"Exploitable Information",buttons:a&&(0,e.jsx)(t.$n,{icon:"undo",onClick:function(){return g("view_exploits",{id:0})},children:"Back"}),children:a&&(0,e.jsx)(t.az,{children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Name",children:a.name}),(0,e.jsx)(t.Ki.Item,{label:"Sex",children:a.sex}),(0,e.jsx)(t.Ki.Item,{label:"Species",children:a.species}),(0,e.jsx)(t.Ki.Item,{label:"Age",children:a.age}),(0,e.jsx)(t.Ki.Item,{label:"Rank",children:a.rank}),(0,e.jsx)(t.Ki.Item,{label:"Home System",children:a.home_system}),(0,e.jsx)(t.Ki.Item,{label:"Birthplace",children:a.birthplace}),(0,e.jsx)(t.Ki.Item,{label:"Citizenship",children:a.citizenship}),(0,e.jsx)(t.Ki.Item,{label:"Faction",children:a.faction}),(0,e.jsx)(t.Ki.Item,{label:"Religion",children:a.religion}),(0,e.jsx)(t.Ki.Item,{label:"Fingerprint",children:a.fingerprint}),(0,e.jsx)(t.Ki.Item,{label:"Other Affiliations",children:a.antagfaction}),(0,e.jsx)(t.Ki.Divider,{}),(0,e.jsx)(t.Ki.Item,{children:"Acquired Information"}),(0,e.jsx)(t.Ki.Item,{label:"Notes",children:a.nanoui_exploit_record.split("
").map(function(i){return(0,e.jsx)(t.az,{children:i},i)})})]})})||l&&l.map(function(i){return(0,e.jsx)(t.$n,{icon:"eye",fluid:!0,onClick:function(){return g("view_exploits",{id:i.id})},children:i.name},i.id)})})}},26142:function(O,u,n){"use strict";n.r(u),n.d(u,{GenericUplink:function(){return a}});var e=n(20462),o=n(61282),t=n(61358),r=n(7081),s=n(88569),x=n(41242),g=n(32011),d=n(25513),a=function(l){var i,c,f=(0,r.Oc)(),m=f.act,v=f.data,E=l.currencyAmount,j=E===void 0?0:E,C=l.currencySymbol,P=C===void 0?"\u20AE":C,M=v.compactMode,_=v.lockable,S=v.categories,T=S===void 0?[]:S,b=(0,t.useState)(""),L=b[0],W=b[1],k=(0,t.useState)((i=T[0])==null?void 0:i.name),$=k[0],w=k[1],V=(0,o.XZ)(L,function(X){return X.name+X.desc}),F=L.length>0&&T.flatMap(function(X){return X.items||[]}).filter(V).filter(function(X,Z){return Z0?"good":"bad",children:[(0,x.up)(j)," ",P]}),buttons:(0,e.jsxs)(e.Fragment,{children:["Search",(0,e.jsx)(s.pd,{autoFocus:!0,value:L,onInput:function(X,Z){return W(Z)},mx:1}),(0,e.jsx)(s.$n,{icon:M?"list":"info",onClick:function(){return m("compact_toggle")},children:M?"Compact":"Detailed"}),!!_&&(0,e.jsx)(s.$n,{icon:"lock",onClick:function(){return m("lock")},children:"Lock"})]}),children:(0,e.jsxs)(s.so,{children:[L.length===0&&(0,e.jsx)(s.so.Item,{children:(0,e.jsx)(s.tU,{vertical:!0,children:T.map(function(X){var Z;return(0,e.jsxs)(s.tU.Tab,{selected:X.name===$,onClick:function(){return w(X.name)},children:[X.name," (",((Z=X.items)==null?void 0:Z.length)||0,")"]},X.name)})})}),(0,e.jsxs)(s.so.Item,{grow:1,basis:0,children:[F.length===0&&(0,e.jsx)(s.IC,{children:L.length===0?"No items in this category.":"No results found."}),(0,e.jsx)(d.ItemList,{compactMode:L.length>0||M,currencyAmount:j,currencySymbol:P,items:F})]})]})})}},25513:function(O,u,n){"use strict";n.r(u),n.d(u,{ItemList:function(){return x}});var e=n(20462),o=n(61282),t=n(7081),r=n(88569),s=n(41242),x=function(g){var d=(0,t.Oc)().act,a=g.compactMode,l=g.currencyAmount,i=g.currencySymbol,c=g.items;return a?(0,e.jsx)(r.XI,{children:c.map(function(f){return(0,e.jsxs)(r.XI.Row,{className:"candystripe",children:[(0,e.jsx)(r.XI.Cell,{bold:!0,children:(0,o.jT)(f.name)}),(0,e.jsx)(r.XI.Cell,{collapsing:!0,textAlign:"right",children:(0,e.jsx)(r.$n,{fluid:!0,disabled:l",ne+='',ne+='
',ne+="Addons:
"+(0,o.GetAddons)(f)+"
",ne+="
== Descriptions ==",ne+="Vore Verb:
"+l+"
",ne+="Release Verb:
"+i+"
",ne+='Description:
"'+g+'"
',ne+='Absorbed Description:
"'+a+'"
',ne+="
",ne+="
== Messages ==",ne+="Show All Interactive Messages: "+(d?'
Yes':'No')+"
",ne+='',ne+='
',ne+='
',ne+='
Escape Attempt Messages (Owner)',ne+='
Escape Attempt Messages (Prey)',ne+='
Escape Message (Owner)',ne+='
Escape Message (Prey)',ne+='
Escape Message (Outside)',ne+='
Escape Item Messages (Owner)',ne+='
Escape Item Messages (Prey)',ne+='
Escape Item Messages (Outside)',ne+='
Escape Fail Messages (Owner)',ne+='
Escape Fail Messages (Prey)',ne+='
Escape Attempt Absorbed Messages (Owner)',ne+='
Escape Attempt Absorbed Messages (Prey)',ne+='
Escape Absorbed Messages (Owner)',ne+='
Escape Absorbed Messages (Prey)',ne+='
Escape Absorbed Messages (Outside)',ne+='
Escape Fail Absorbed Messages (Owner)',ne+='
Escape Fail Absorbed Messages (Prey)',ne+='
Primary Transfer Messages (Owner)',ne+='
Primary Transfer Messages (Prey)',ne+='
Secondary Transfer Messages (Owner)',ne+='
Secondary Transfer Messages (Prey)',ne+='
Digest Chance Messages (Owner)',ne+='
Digest Chance Messages (Prey)',ne+='
Absorb Chance Messages (Owner)',ne+='
Absorb Chance Messages (Prey)',ne+='
Struggle Messages (Outside)',ne+='
Struggle Messages (Inside)',ne+='
Absorbed Struggle Messages (Outside)',ne+='
Absorbed Struggle Messages (Inside)',ne+='
Digest Messages (Owner)',ne+='
Digest Messages (Prey)',ne+='
Absorb Messages (Owner)',ne+='
Absorb Messages (Prey)',ne+='
Unabsorb Messages (Owner)',ne+='
Unabsorb Messages (Prey)',ne+='
Examine Messages',ne+='
Examine Messages (Absorbed)',ne+="
",ne+='
',ne+='
',ne+='
',Y==null||Y.forEach(function(Ke){ne+=Ke+"
"}),ne+="
",ne+='
',G==null||G.forEach(function(Ke){ne+=Ke+"
"}),ne+="
",ne+='
',ee==null||ee.forEach(function(Ke){ne+=Ke+"
"}),ne+="
",ne+='
',le==null||le.forEach(function(Ke){ne+=Ke+"
"}),ne+="
",ne+='
',ie==null||ie.forEach(function(Ke){ne+=Ke+"
"}),ne+="
",ne+='
',de==null||de.forEach(function(Ke){ne+=Ke+"
"}),ne+="
",ne+='
',ve==null||ve.forEach(function(Ke){ne+=Ke+"
"}),ne+="
",ne+='
',Te==null||Te.forEach(function(Ke){ne+=Ke+"
"}),ne+="
",ne+='
',Ce==null||Ce.forEach(function(Ke){ne+=Ke+"
"}),ne+="
",ne+='
',je==null||je.forEach(function(Ke){ne+=Ke+"
"}),ne+="
",ne+='
',$e==null||$e.forEach(function(Ke){ne+=Ke+"
"}),ne+="
",ne+='
',cn==null||cn.forEach(function(Ke){ne+=Ke+"
"}),ne+="
",ne+='
',nn==null||nn.forEach(function(Ke){ne+=Ke+"
"}),ne+="
",ne+='
',be==null||be.forEach(function(Ke){ne+=Ke+"
"}),ne+="
",ne+='
',sn==null||sn.forEach(function(Ke){ne+=Ke+"
"}),ne+="
",ne+='
',_n==null||_n.forEach(function(Ke){ne+=Ke+"
"}),ne+="
",ne+='
',Sn==null||Sn.forEach(function(Ke){ne+=Ke+"
"}),ne+="
",ne+='
',xn==null||xn.forEach(function(Ke){ne+=Ke+"
"}),ne+="
",ne+='
',Tn==null||Tn.forEach(function(Ke){ne+=Ke+"
"}),ne+="
",ne+='
',vn==null||vn.forEach(function(Ke){ne+=Ke+"
"}),ne+="
",ne+='
',dn==null||dn.forEach(function(Ke){ne+=Ke+"
"}),ne+="
",ne+='
',Re==null||Re.forEach(function(Ke){ne+=Ke+"
"}),ne+="
",ne+='
',Fe==null||Fe.forEach(function(Ke){ne+=Ke+"
"}),ne+="
",ne+='
',ye==null||ye.forEach(function(Ke){ne+=Ke+"
"}),ne+="
",ne+='
',Qe==null||Qe.forEach(function(Ke){ne+=Ke+"
"}),ne+="
",ne+='
',Z==null||Z.forEach(function(Ke){ne+=Ke+"
"}),ne+="
",ne+='
',te==null||te.forEach(function(Ke){ne+=Ke+"
"}),ne+="
",ne+='
',J==null||J.forEach(function(Ke){ne+=Ke+"
"}),ne+="
",ne+='
',Q==null||Q.forEach(function(Ke){ne+=Ke+"
"}),ne+="
",ne+='
',Ze==null||Ze.forEach(function(Ke){ne+=Ke+"
"}),ne+="
",ne+='
',Xe==null||Xe.forEach(function(Ke){ne+=Ke+"
"}),ne+="
",ne+='
',Je==null||Je.forEach(function(Ke){ne+=Ke+"
"}),ne+="
",ne+='
',Un==null||Un.forEach(function(Ke){ne+=Ke+"
"}),ne+="
",ne+='
',kn==null||kn.forEach(function(Ke){ne+=Ke+"
"}),ne+="
",ne+='
',Rn==null||Rn.forEach(function(Ke){ne+=Ke+"
"}),ne+="
",ne+='
',gn==null||gn.forEach(function(Ke){ne+=Ke+"
"}),ne+="
",ne+='
',rn==null||rn.forEach(function(Ke){ne+=Ke+"
"}),ne+="
",ne+="
",ne+="
",ne+="
",ne+="= Idle Messages =
",ne+="Idle Messages (Hold):
",Ae==null||Ae.forEach(function(Ke){ne+=Ke+"
"}),ne+="
",ne+="Idle Messages (Hold Absorbed):
",ke==null||ke.forEach(function(Ke){ne+=Ke+"
"}),ne+="
",ne+="Idle Messages (Digest):
",Ie==null||Ie.forEach(function(Ke){ne+=Ke+"
"}),ne+="
",ne+="Idle Messages (Absorb):
",en==null||en.forEach(function(Ke){ne+=Ke+"
"}),ne+="
",ne+="Idle Messages (Unabsorb):
",jt==null||jt.forEach(function(Ke){ne+=Ke+"
"}),ne+="
",ne+="Idle Messages (Drain):
",Mn==null||Mn.forEach(function(Ke){ne+=Ke+"
"}),ne+="
",ne+="Idle Messages (Heal):
",Pn==null||Pn.forEach(function(Ke){ne+=Ke+"
"}),ne+="
",ne+="Idle Messages (Size Steal):
",Wn==null||Wn.forEach(function(Ke){ne+=Ke+"
"}),ne+="
",ne+="Idle Messages (Shrink):
",wn==null||wn.forEach(function(Ke){ne+=Ke+"
"}),ne+="
",ne+="Idle Messages (Grow):
",at==null||at.forEach(function(Ke){ne+=Ke+"
"}),ne+="
",ne+="Idle Messages (Encase In Egg):
",Kn==null||Kn.forEach(function(Ke){ne+=Ke+"
"}),ne+="
",ne+="
",ne+="
",ne+='',ne+='
',ne+='",ne+='
',ne+='
',ne+='
',ne+='- Can Taste: '+(M?'Yes':'No')+"
",ne+='- Contaminates: '+(_?'Yes':'No')+"
",ne+='- Contamination Flavor: '+S+"
",ne+='- Contamination Color: '+T+"
",ne+='- Nutritional Gain: '+b+"%
",ne+='- Required Examine Size: '+L*100+"%
",ne+='- Display Absorbed Examines: '+(W?'True':'False')+"
",ne+='- Save Digest Mode: '+(k?'True':'False')+"
",ne+='- Idle Emotes: '+($?'Active':'Inactive')+"
",ne+='- Idle Emote Delay: '+w+" seconds
",ne+='- Shrink/Grow Size: '+V*100+"%
",ne+='- Egg Type: '+F+"
",ne+='- Selective Mode Preference: '+X+"
",ne+="
",ne+="
",ne+='
',ne+='",ne+='
',ne+='
',ne+='
',ne+='- Fleshy Belly: '+(Bt?'Yes':'No')+"
",ne+='- Internal Loop: '+(xr?'Yes':'No')+"
",ne+='- Use Fancy Sounds: '+(Tr?'Yes':'No')+"
",ne+='- Vore Sound: '+Rr+"
",ne+='- Release Sound: '+gr+"
",ne+="
",ne+="
",ne+='
',ne+='",ne+='
",ne+='
',ne+="
Vore FX",ne+='
',ne+='- Disable Prey HUD: '+(pr?'Yes':'No')+"
",ne+="
",ne+="
",ne+='
',ne+='",ne+='
',ne+='
',ne+="
Belly Interactions ("+(Br?'Enabled':'Disabled')+")",ne+='
',ne+='- Escape Chance: '+Qr+"%
",ne+='- Escape Chance: '+xt+"%
",ne+='- Escape Time: '+Ct/10+"s
",ne+='- Transfer Chance: '+ar+"%
",ne+='- Transfer Location: '+it+"
",ne+='- Secondary Transfer Chance: '+nt+"%
",ne+='- Secondary Transfer Location: '+$t+"
",ne+='- Absorb Chance: '+St+"%
",ne+='- Digest Chance: '+rt+"%
",ne+="
",ne+="
",ne+="
",ne}},65881:function(O,u,n){"use strict";n.r(u),n.d(u,{GetAddons:function(){return o}});var e=n(26222),o=function(t){var r=[];return t==null||t.forEach(function(s){r.push(''+s+"")}),r.length===0&&r.push("No Addons Set"),r}},44887:function(O,u,n){"use strict";n.r(u),n.d(u,{downloadPrefs:function(){return r}});var e=n(7081),o=n(18228),t=n(95679),r=function(s){var x=(0,e.Oc)(),g=x.act,d=x.data,a=d.db_version,l=d.db_repo,i=d.mob_name,c=d.bellies,f=(0,t.getCurrentTimestamp)(),m=i+f+s,v;if(s===".html"){var E="";v=new Blob([''+c.length+" Exported Bellies (DB_VER: "+l+"-"+a+')'+E+'Bellies of '+i+'
Generated on: '+f+'
'],{type:"text/html;charset=utf8"}),c.forEach(function(j,C){v=new Blob([v,(0,o.generateBellyString)(j,C)],{type:"text/html;charset=utf8"})}),v=new Blob([v,"
",'