Bellies of '+I+'
Generated on: '+T+'
diff --git a/code/__defines/chemistry.dm b/code/__defines/chemistry.dm index ddd7838b2c..aa86e7b308 100644 --- a/code/__defines/chemistry.dm +++ b/code/__defines/chemistry.dm @@ -50,7 +50,7 @@ // Chemistry lists. var/list/tachycardics = list("coffee", "inaprovaline", "hyperzine", "nitroglycerin", "thirteenloko", "nicotine") // Increase heart rate. var/list/bradycardics = list("neurotoxin", "cryoxadone", "clonexadone", "bliss", "stoxin", "ambrosia_extract") // Decrease heart rate. -var/list/heartstopper = list("potassium_chlorophoride", "zombie_powder") // This stops the heart. +var/list/heartstopper = list("potassium_chlorophoride", "zombiepowder") // This stops the heart. var/list/cheartstopper = list("potassium_chloride") // This stops the heart when overdose is met. -- c = conditional #define MAX_PILL_SPRITE 24 //max icon state of the pill sprites diff --git a/code/game/antagonist/station/highlander.dm b/code/game/antagonist/station/highlander.dm index 9b54383278..2e4885fd76 100644 --- a/code/game/antagonist/station/highlander.dm +++ b/code/game/antagonist/station/highlander.dm @@ -12,6 +12,8 @@ var/datum/antagonist/highlander/highlanders initial_spawn_req = 3 initial_spawn_target = 5 + id_type = /obj/item/weapon/card/id/centcom/ERT + /datum/antagonist/highlander/New() ..() highlanders = src @@ -32,26 +34,28 @@ var/datum/antagonist/highlander/highlanders if(!..()) return - for (var/obj/item/I in player) - if (istype(I, /obj/item/weapon/implant)) - continue - qdel(I) - + // drop original items! It used to be a loop that just Qdeled everything including your organs! + // Dropping because of non-oxy breathers... That would suck wouldn't it? + player.drop_from_inventory(player.get_equipped_item(slot_wear_id)) + player.drop_from_inventory(player.get_equipped_item(slot_wear_suit)) + player.drop_from_inventory(player.get_equipped_item(slot_w_uniform)) + player.drop_from_inventory(player.get_equipped_item(slot_l_ear)) + player.drop_from_inventory(player.get_equipped_item(slot_head)) + player.drop_from_inventory(player.get_equipped_item(slot_l_hand)) + player.drop_from_inventory(player.get_equipped_item(slot_shoes)) + player.drop_from_inventory(player.get_equipped_item(slot_l_store)) + // highlanders! player.equip_to_slot_or_del(new /obj/item/clothing/under/kilt(player), slot_w_uniform) - player.equip_to_slot_or_del(new /obj/item/device/radio/headset/heads/captain(player), slot_l_ear) player.equip_to_slot_or_del(new /obj/item/clothing/head/beret(player), slot_head) player.equip_to_slot_or_del(new /obj/item/weapon/material/sword(player), slot_l_hand) player.equip_to_slot_or_del(new /obj/item/clothing/shoes/boots/combat(player), slot_shoes) player.equip_to_slot_or_del(new /obj/item/weapon/pinpointer(get_turf(player)), slot_l_store) - var/obj/item/weapon/card/id/W = new(player) - W.name = "[player.real_name]'s ID Card" - W.icon_state = "centcom" - W.access = get_all_station_access().Copy() - W.access |= get_all_centcom_access() - W.assignment = "Highlander" - W.registered_name = player.real_name - player.equip_to_slot_or_del(W, slot_wear_id) + var/obj/item/weapon/card/id/id = create_id("Highlander", player) + if(id) + id.access |= get_all_station_access() + id.icon_state = "centcom" + create_radio(DTH_FREQ, player) /proc/only_one() diff --git a/code/game/objects/items/weapons/material/material_weapons.dm b/code/game/objects/items/weapons/material/material_weapons.dm index f300cb068e..2bd785d369 100644 --- a/code/game/objects/items/weapons/material/material_weapons.dm +++ b/code/game/objects/items/weapons/material/material_weapons.dm @@ -142,7 +142,7 @@ return /obj/item/weapon/material/proc/sharpen(var/material, var/sharpen_time, var/kit, mob/living/M) - if(!fragile) + if(!fragile && src.material.can_sharpen) if(health < initial(health)) to_chat(M, "You should repair [src] first. Try using [kit] on it.") return FALSE diff --git a/code/game/turfs/flooring/flooring.dm b/code/game/turfs/flooring/flooring.dm index 9f0b05d914..80c2dd1fce 100644 --- a/code/game/turfs/flooring/flooring.dm +++ b/code/game/turfs/flooring/flooring.dm @@ -210,6 +210,17 @@ var/list/flooring_types 'sound/effects/footstep/mud3.ogg', 'sound/effects/footstep/mud4.ogg')) +/decl/flooring/rock + name = "rocks" + desc = "Hard as a rock." + icon = 'icons/turf/outdoors.dmi' + icon_base = "rock" + footstep_sounds = list("human" = list( + 'sound/effects/footstep/LightStone1.ogg', + 'sound/effects/footstep/LightStone2.ogg', + 'sound/effects/footstep/LightStone3.ogg', + 'sound/effects/footstep/LightStone4.ogg')) + /decl/flooring/asteroid name = "coarse sand" desc = "You got a pebble in your shoe just looking at it." diff --git a/code/game/turfs/simulated/outdoors/outdoors.dm b/code/game/turfs/simulated/outdoors/outdoors.dm index e55196aea6..98d195001c 100644 --- a/code/game/turfs/simulated/outdoors/outdoors.dm +++ b/code/game/turfs/simulated/outdoors/outdoors.dm @@ -123,6 +123,7 @@ var/list/turf_edge_cache = list() desc = "Hard as a rock." icon_state = "rock" edge_blending_priority = 1 + initial_flooring = /decl/flooring/rock /turf/simulated/floor/outdoors/rocks/caves outdoors = OUTDOORS_NO @@ -185,4 +186,4 @@ var/list/turf_edge_cache = list() icon = 'icons/turf/concrete.dmi' icon_state = "concrete_dark" desc = "Some sort of material composite road." - edge_blending_priority = -1 \ No newline at end of file + edge_blending_priority = -1 diff --git a/code/modules/lore_codex/codex.dm b/code/modules/lore_codex/codex.dm index e93f10638f..008cf429ed 100644 --- a/code/modules/lore_codex/codex.dm +++ b/code/modules/lore_codex/codex.dm @@ -9,21 +9,21 @@ var/datum/codex_tree/tree = null var/root_type = /datum/lore/codex/category/main_borealis_lore //YW EDIT - var/static/list/codex_tree_keys = list() // CHOMPedit: static list linking codexes to the correct codex_tree. + var/static/list/codex_tree_keys = list() // static list linking codexes to the correct codex_tree. /obj/item/weapon/book/codex/Initialize() - tree = codex_tree_keys["[root_type]"] // CHOMPedit start + tree = codex_tree_keys["[root_type]"] if(!tree) tree = new(src, root_type) - codex_tree_keys["[root_type]"] = tree // CHOMPedit end + codex_tree_keys["[root_type]"] = tree . = ..() /obj/item/weapon/book/codex/attack_self(mob/user) - if(!tree) // CHOMPedit start + if(!tree) tree = codex_tree_keys["[root_type]"] if(!tree) tree = new(src, root_type) - codex_tree_keys["[root_type]"] = tree // CHOMPedit end + codex_tree_keys["[root_type]"] = tree icon_state = "[initial(icon_state)]-open" tree.display(user) diff --git a/code/modules/lore_codex/codex_tree.dm b/code/modules/lore_codex/codex_tree.dm index 71aa80b087..200a1ec4f0 100644 --- a/code/modules/lore_codex/codex_tree.dm +++ b/code/modules/lore_codex/codex_tree.dm @@ -4,9 +4,9 @@ var/atom/movable/holder = null var/root_type = null var/datum/lore/codex/home = null // Top-most page. - var/datum/lore/codex/current_page = null // Current page or category to display to the user. + var/list/current_page = list() // Current page or category to display to the user. // converted to list to track multiple players. var/list/indexed_pages = list() // Assoc list with search terms pointing to a ref of the page. It's created on New(). - var/list/history = list() // List of pages we previously visited. + var/list/history = list() // List of pages we previously visited. // now a 2D list /datum/codex_tree/New(var/new_holder, var/new_root_type) holder = new_holder @@ -16,25 +16,31 @@ /datum/codex_tree/proc/generate_pages() home = new root_type(src) // This will also generate the others. - current_page = home - indexed_pages = current_page.index_page() + //current_page = home + indexed_pages = home.index_page() // changed from current_page to home. // Changes current_page to its parent, assuming one exists. -/datum/codex_tree/proc/go_to_parent() - if(current_page && current_page.parent) - current_page = current_page.parent +/datum/codex_tree/proc/go_to_parent(var/mob/user) + var/datum/lore/codex/D = current_page["[user]"] + if(istype(D) && D.parent) + current_page["[user]"] = D.parent // Changes current_page to a specific page or category. -/datum/codex_tree/proc/go_to_page(var/datum/lore/codex/new_page, var/dont_record_history = FALSE) - if(new_page) // Make sure we're not going to a null page for whatever reason. - current_page = new_page +/datum/codex_tree/proc/go_to_page(var/datum/lore/codex/new_page, var/dont_record_history = FALSE, var/mob/user) + var/datum/lore/codex/D = current_page["[user]"] + if(new_page && istype(D)) // Make sure we're not going to a null page for whatever reason. + current_page["[user]"] = new_page if(!dont_record_history) - history.Add(new_page) + var/list/H = history["[user]"] + if(!H) + H = list() + H.Add(new_page) + history["[user]"] = H -/datum/codex_tree/proc/quick_link(var/search_word) +/datum/codex_tree/proc/quick_link(var/search_word, var/mob/user) for(var/word in indexed_pages) if(lowertext(search_word) == lowertext(word)) // Exact matches unfortunately limit our ability to perform SEOs. - go_to_page(indexed_pages[word]) + go_to_page(indexed_pages[word], FALSE, user) return /datum/codex_tree/proc/get_page_from_type(var/desired_type) @@ -45,16 +51,26 @@ return null // Returns to the last visited page, based on the history list. -/datum/codex_tree/proc/go_back() - if((history.len - 1) > 0) - if(history[history.len] == current_page) - history.len-- // This gets rid of the current page in the history. - go_to_page(pop(history), dont_record_history = TRUE) // Where as this will get us the previous page that we want to go to. +/datum/codex_tree/proc/go_back(var/mob/user) + var/list/H = history["[user]"] + var/datum/lore/codex/D = current_page["[user]"] + if(!LAZYLEN(H) || !istype(D)) + return + if((H.len) > 1) + if(H[H.len] == D) + H.len-- // This gets rid of the current page in the history. + history["[user]"] = H + if(H.len == 1) + go_to_page(H[H.len], TRUE, user) + return + go_to_page(pop(history["[user]"]), TRUE, user) // Where as this will get us the previous page that we want to go to. + else + go_to_page(H[H.len], TRUE, user) -/datum/codex_tree/proc/get_tree_position() - if(current_page) +/datum/codex_tree/proc/get_tree_position(var/mob/user) + var/datum/lore/codex/checked = current_page["[user]"] + if(istype(checked)) var/output = "" - var/datum/lore/codex/checked = current_page output = "[checked.name]" while(checked.parent) output = "[checked.parent.name] \> [output]" @@ -75,38 +91,53 @@ /datum/codex_tree/proc/display(mob/user) // icon_state = "[initial(icon_state)]-open" - if(!current_page) + if(!home) generate_pages() + if(!user) + return + var/datum/lore/codex/D = current_page["[user]"] + if(!istype(D)) // Initialize current_page and history + current_page["[user]"] = home + D = current_page["[user]"] + if(!istype(D)) + log_debug("Codex_tree failed to failed to load for [user].") + return + var/list/H_init = list() + H_init.Add(home) + history["[user]"] = H_init + //if(!current_page) + //generate_pages() user << browse_rsc('html/browser/codex.css', "codex.css") var/dat dat = "
" - dat += "ae?"average":J>le?"bad":"good"},K=function(J,q){var oe=(0,o.useBackend)(q),ae=oe.act,le=oe.data,he=le.aircontents,me=le.weather,Be="\xB0";return(0,e.createComponentVNode)(2,m.Section,{title:"Weather",children:[(0,e.createComponentVNode)(2,m.Section,{title:"Current Conditions",children:(0,e.createComponentVNode)(2,m.LabeledList,{children:(0,a.filter)(function(ce){return ce.val!=="0"||ce.entry==="Pressure"||ce.entry==="Temperature"})(he).map(function(ce){return(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:ce.entry,color:W(ce.val,ce.bad_low,ce.poor_low,ce.poor_high,ce.bad_high),children:[ce.val,(0,t.decodeHtmlEntities)(ce.units)]},ce.entry)})})}),(0,e.createComponentVNode)(2,m.Section,{title:"Weather Reports",children:!!me.length&&(0,e.createComponentVNode)(2,m.LabeledList,{children:me.map(function(ce){return(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:ce.Planet,children:(0,e.createComponentVNode)(2,m.LabeledList,{children:[(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Time",children:ce.Time}),(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Weather",children:(0,t.toTitleCase)(ce.Weather)}),(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Temperature",children:["Current: ",ce.Temperature.toFixed()," ",Be,"C | High:"," ",ce.High.toFixed()," ",Be,"C | Low: ",ce.Low.toFixed()," ",Be,"C"]}),(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Wind Direction",children:ce.WindDir}),(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Wind Speed",children:ce.WindSpeed}),(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Forecast",children:(0,t.decodeHtmlEntities)(ce.Forecast)})]})},ce.Planet)})})||(0,e.createComponentVNode)(2,m.Box,{color:"bad",children:"No weather reports available. Please check back later."})})]})};v[c]=(0,e.createComponentVNode)(2,K),v[d]=(0,e.createComponentVNode)(2,k.CrewManifestContent);var H=function(J,q){var oe=(0,o.useBackend)(q),ae=oe.act,le=oe.data,he=le.owner,me=le.occupation,Be=le.connectionStatus,ce=le.address,te=le.visible,ee=le.ring,ie=le.selfie_mode;return(0,e.createComponentVNode)(2,m.Section,{title:"Settings",children:(0,e.createComponentVNode)(2,m.LabeledList,{children:[(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Owner",children:(0,e.createComponentVNode)(2,m.Button,{icon:"pen",fluid:!0,content:(0,t.decodeHtmlEntities)(he),onClick:function(){function Ce(){return ae("rename")}return Ce}()})}),(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Camera Mode",children:(0,e.createComponentVNode)(2,m.Button,{fluid:!0,content:ie?"Front-facing Camera":"Rear-facing Camera",onClick:function(){function Ce(){return ae("selfie_mode")}return Ce}()})}),(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Occupation",children:(0,t.decodeHtmlEntities)(me)}),(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Connection",children:Be===1?(0,e.createComponentVNode)(2,m.Box,{color:"good",children:"Connected"}):(0,e.createComponentVNode)(2,m.Box,{color:"bad",children:"Disconnected"})}),(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Device EPv2 Address",children:ce}),(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Visibility",children:(0,e.createComponentVNode)(2,m.Button.Checkbox,{checked:te,selected:te,fluid:!0,content:te?"This device can be seen by other devices.":"This device is invisible to other devices.",onClick:function(){function Ce(){return ae("toggle_visibility")}return Ce}()})}),(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Ringer",children:[(0,e.createComponentVNode)(2,m.Button.Checkbox,{checked:ee,selected:ee,fluid:!0,content:ee?"Ringer on.":"Ringer off.",onClick:function(){function Ce(){return ae("toggle_ringer")}return Ce}()}),(0,e.createComponentVNode)(2,m.Button,{fluid:!0,content:"Set Ringer Tone",onClick:function(){function Ce(){return ae("set_ringer_tone")}return Ce}()})]})]})})};v[p]=(0,e.createComponentVNode)(2,H)},84429:function(x,r,n){"use strict";r.__esModule=!0,r.ComputerFabricator=void 0;var e=n(58734),a=n(40946),t=n(62188),o=n(11790),m=n(11477),V=r.ComputerFabricator=function(){function s(l,u){var i=(0,t.useBackend)(u),c=i.act,d=i.data;return(0,e.createComponentVNode)(2,m.Window,{title:"Personal Computer Vendor",width:500,height:420,resizable:!0,children:(0,e.createComponentVNode)(2,m.Window.Content,{children:[(0,e.createComponentVNode)(2,o.Section,{italic:!0,fontSize:"20px",children:"Your perfect device, only three steps away..."}),d.state!==0&&(0,e.createComponentVNode)(2,o.Button,{fluid:!0,mb:1,icon:"circle",content:"Clear Order",onClick:function(){function p(){return c("clean_order")}return p}()}),d.state===0&&(0,e.createComponentVNode)(2,k),d.state===1&&(0,e.createComponentVNode)(2,S),d.state===2&&(0,e.createComponentVNode)(2,N),d.state===3&&(0,e.createComponentVNode)(2,h)]})})}return s}(),k=function(l,u){var i=(0,t.useBackend)(u),c=i.act,d=i.data;return(0,e.createComponentVNode)(2,o.Section,{title:"Step 1",minHeight:"306px",children:[(0,e.createComponentVNode)(2,o.Box,{mt:5,bold:!0,textAlign:"center",fontSize:"40px",children:"Choose your Device"}),(0,e.createComponentVNode)(2,o.Box,{mt:3,children:(0,e.createComponentVNode)(2,o.Grid,{width:"100%",children:[(0,e.createComponentVNode)(2,o.Grid.Column,{children:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,icon:"laptop",content:"Laptop",textAlign:"center",fontSize:"30px",lineHeight:2,onClick:function(){function p(){return c("pick_device",{pick:"1"})}return p}()})}),(0,e.createComponentVNode)(2,o.Grid.Column,{children:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,icon:"tablet-alt",content:"Tablet",textAlign:"center",fontSize:"30px",lineHeight:2,onClick:function(){function p(){return c("pick_device",{pick:"2"})}return p}()})})]})})]})},S=function(l,u){var i=(0,t.useBackend)(u),c=i.act,d=i.data;return(0,e.createComponentVNode)(2,o.Section,{title:"Step 2: Customize your device",minHeight:"282px",buttons:(0,e.createComponentVNode)(2,o.Box,{bold:!0,color:"good",children:[d.totalprice,"\u20AE"]}),children:[(0,e.createComponentVNode)(2,o.Table,{children:[(0,e.createComponentVNode)(2,o.Table.Row,{children:[(0,e.createComponentVNode)(2,o.Table.Cell,{bold:!0,position:"relative",children:["Battery:",(0,e.createComponentVNode)(2,o.Tooltip,{content:"Allows your device to operate without external utility power\nsource. Advanced batteries increase battery life.",position:"right"})]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Button,{content:"Standard",selected:d.hw_battery===1,onClick:function(){function p(){return c("hw_battery",{battery:"1"})}return p}()})}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Button,{content:"Upgraded",selected:d.hw_battery===2,onClick:function(){function p(){return c("hw_battery",{battery:"2"})}return p}()})}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Button,{content:"Advanced",selected:d.hw_battery===3,onClick:function(){function p(){return c("hw_battery",{battery:"3"})}return p}()})})]}),(0,e.createComponentVNode)(2,o.Table.Row,{children:[(0,e.createComponentVNode)(2,o.Table.Cell,{bold:!0,position:"relative",children:["Hard Drive:",(0,e.createComponentVNode)(2,o.Tooltip,{content:"Stores file on your device. Advanced drives can store more\nfiles, but use more power, shortening battery life.",position:"right"})]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Button,{content:"Standard",selected:d.hw_disk===1,onClick:function(){function p(){return c("hw_disk",{disk:"1"})}return p}()})}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Button,{content:"Upgraded",selected:d.hw_disk===2,onClick:function(){function p(){return c("hw_disk",{disk:"2"})}return p}()})}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Button,{content:"Advanced",selected:d.hw_disk===3,onClick:function(){function p(){return c("hw_disk",{disk:"3"})}return p}()})})]}),(0,e.createComponentVNode)(2,o.Table.Row,{children:[(0,e.createComponentVNode)(2,o.Table.Cell,{bold:!0,position:"relative",children:["Network Card:",(0,e.createComponentVNode)(2,o.Tooltip,{content:"Allows your device to wirelessly connect to stationwide NTNet\nnetwork. Basic cards are limited to on-station use, while\nadvanced cards can operate anywhere near the station, which\nincludes asteroid outposts",position:"right"})]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Button,{content:"None",selected:d.hw_netcard===0,onClick:function(){function p(){return c("hw_netcard",{netcard:"0"})}return p}()})}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Button,{content:"Standard",selected:d.hw_netcard===1,onClick:function(){function p(){return c("hw_netcard",{netcard:"1"})}return p}()})}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Button,{content:"Advanced",selected:d.hw_netcard===2,onClick:function(){function p(){return c("hw_netcard",{netcard:"2"})}return p}()})})]}),(0,e.createComponentVNode)(2,o.Table.Row,{children:[(0,e.createComponentVNode)(2,o.Table.Cell,{bold:!0,position:"relative",children:["Nano Printer:",(0,e.createComponentVNode)(2,o.Tooltip,{content:"A device that allows for various paperwork manipulations,\nsuch as, scanning of documents or printing new ones.\nThis device was certified EcoFriendlyPlus and is capable of\nrecycling existing paper for printing purposes.",position:"right"})]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Button,{content:"None",selected:d.hw_nanoprint===0,onClick:function(){function p(){return c("hw_nanoprint",{print:"0"})}return p}()})}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Button,{content:"Standard",selected:d.hw_nanoprint===1,onClick:function(){function p(){return c("hw_nanoprint",{print:"1"})}return p}()})})]}),(0,e.createComponentVNode)(2,o.Table.Row,{children:[(0,e.createComponentVNode)(2,o.Table.Cell,{bold:!0,position:"relative",children:["Secondary Card Reader:",(0,e.createComponentVNode)(2,o.Tooltip,{content:"Adds a secondary RFID card reader, for manipulating or\nreading from a second standard RFID card.\nPlease note that a primary card reader is necessary to\nallow the device to read your identification, but one\nis included in the base price.",position:"right"})]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Button,{content:"None",selected:d.hw_card===0,onClick:function(){function p(){return c("hw_card",{card:"0"})}return p}()})}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Button,{content:"Standard",selected:d.hw_card===1,onClick:function(){function p(){return c("hw_card",{card:"1"})}return p}()})})]}),d.devtype!==2&&(0,e.createComponentVNode)(2,o.Table.Row,{children:[(0,e.createComponentVNode)(2,o.Table.Cell,{bold:!0,position:"relative",children:["Processor Unit:",(0,e.createComponentVNode)(2,o.Tooltip,{content:"A component critical for your device's functionality.\nIt allows you to run programs from your hard drive.\nAdvanced CPUs use more power, but allow you to run\nmore programs on background at once.",position:"right"})]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Button,{content:"Standard",selected:d.hw_cpu===1,onClick:function(){function p(){return c("hw_cpu",{cpu:"1"})}return p}()})}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Button,{content:"Advanced",selected:d.hw_cpu===2,onClick:function(){function p(){return c("hw_cpu",{cpu:"2"})}return p}()})})]}),(0,e.createComponentVNode)(2,o.Table.Row,{children:[(0,e.createComponentVNode)(2,o.Table.Cell,{bold:!0,position:"relative",children:["Tesla Relay:",(0,e.createComponentVNode)(2,o.Tooltip,{content:"An advanced wireless power relay that allows your device\nto connect to nearby area power controller to provide\nalternative power source. This component is currently\nunavailable on tablet computers due to size restrictions.",position:"right"})]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Button,{content:"None",selected:d.hw_tesla===0,onClick:function(){function p(){return c("hw_tesla",{tesla:"0"})}return p}()})}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Button,{content:"Standard",selected:d.hw_tesla===1,onClick:function(){function p(){return c("hw_tesla",{tesla:"1"})}return p}()})})]})]}),(0,e.createComponentVNode)(2,o.Button,{fluid:!0,mt:3,content:"Confirm Order",color:"good",textAlign:"center",fontSize:"18px",lineHeight:2,onClick:function(){function p(){return c("confirm_order")}return p}()})]})},N=function(l,u){var i=(0,t.useBackend)(u),c=i.act,d=i.data;return(0,e.createComponentVNode)(2,o.Section,{title:"Step 3: Payment",minHeight:"282px",children:[(0,e.createComponentVNode)(2,o.Box,{italic:!0,textAlign:"center",fontSize:"20px",children:"Your device is ready for fabrication..."}),(0,e.createComponentVNode)(2,o.Box,{bold:!0,mt:2,textAlign:"center",fontSize:"16px",children:[(0,e.createComponentVNode)(2,o.Box,{inline:!0,children:"Please swipe your ID now to authorize payment of:"}),"\xA0",(0,e.createComponentVNode)(2,o.Box,{inline:!0,color:"good",children:[d.totalprice,"\u20AE"]})]})]})},h=function(l,u){return(0,e.createComponentVNode)(2,o.Section,{minHeight:"282px",children:[(0,e.createComponentVNode)(2,o.Box,{bold:!0,textAlign:"center",fontSize:"28px",mt:10,children:"Thank you for your purchase!"}),(0,e.createComponentVNode)(2,o.Box,{italic:!0,mt:1,textAlign:"center",children:"If you experience any difficulties with your new device, please contact your local network administrator."})]})}},68155:function(x,r,n){"use strict";r.__esModule=!0,r.CookingAppliance=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=r.CookingAppliance=function(){function V(k,S){var N=(0,a.useBackend)(S),h=N.act,s=N.data,l=s.temperature,u=s.optimalTemp,i=s.temperatureEnough,c=s.efficiency,d=s.containersRemovable,p=s.our_contents;return(0,e.createComponentVNode)(2,o.Window,{width:600,height:600,resizable:!0,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,t.Section,{title:"Status",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Temperature",children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:i?"good":"blue",value:l,maxValue:u,children:[(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:l}),"\xB0C / ",u,"\xB0C"]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Efficiency",children:[(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:c}),"%"]})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Containers",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:p.map(function(v,f){return v.empty?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Slot #"+(f+1),children:(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function C(){return h("slot",{slot:f+1})}return C}(),children:"Empty"})}):(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Slot #"+(f+1),verticalAlign:"middle",children:(0,e.createComponentVNode)(2,t.Flex,{spacing:1,children:[(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Button,{disabled:!d,onClick:function(){function C(){return h("slot",{slot:f+1})}return C}(),children:v.container||"No Container"})}),(0,e.createComponentVNode)(2,t.Flex.Item,{grow:1,children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:v.progressText[0],value:v.progress,maxValue:1,children:v.progressText[1]})})]})},f)})})})]})})}return V}()},68285:function(x,r,n){"use strict";r.__esModule=!0,r.CrewManifestContent=r.CrewManifest=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=n(78419),V=n(40946),k=r.CrewManifest=function(){function N(){return(0,e.createComponentVNode)(2,o.Window,{width:400,height:600,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,S)})})}return N}(),S=r.CrewManifestContent=function(){function N(h,s){var l=(0,a.useBackend)(s),u=l.act,i=l.data,c=i.manifest;return(0,e.createComponentVNode)(2,t.Section,{title:"Crew Manifest",noTopPadding:!0,children:c.map(function(d){return!!d.elems.length&&(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createComponentVNode)(2,t.Box,{backgroundColor:m.COLORS.manifest[d.cat.toLowerCase()],m:-1,pt:1,pb:1,children:(0,e.createComponentVNode)(2,t.Box,{ml:1,textAlign:"center",fontSize:1.4,children:d.cat})}),children:(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,color:"white",children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Name"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Rank"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Active"})]}),d.elems.map(function(p){return(0,e.createComponentVNode)(2,t.Table.Row,{color:"average",children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,V.decodeHtmlEntities)(p.name)}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:p.rank}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:p.active})]},p.name+p.rank)})]})},d.cat)})})}return N}()},59694:function(x,r,n){"use strict";r.__esModule=!0,r.CrewMonitorContent=r.CrewMonitor=void 0;var e=n(58734),a=n(45445),t=n(75671),o=n(62188),m=n(11477),V=n(11790),k=function(u){return u.dead?"Deceased":parseInt(u.stat,10)===1?"Unconscious":"Living"},S=function(u){return u.dead?"red":parseInt(u.stat,10)===1?"orange":"green"},N=r.CrewMonitor=function(){function l(){return(0,e.createComponentVNode)(2,m.Window,{width:800,height:600,resizable:!0,children:(0,e.createComponentVNode)(2,m.Window.Content,{children:(0,e.createComponentVNode)(2,h)})})}return l}(),h=r.CrewMonitorContent=function(){function l(u,i){var c=(0,o.useBackend)(i),d=c.act,p=c.data,v=c.config,f=(0,o.useLocalState)(i,"tabIndex",0),C=f[0],b=f[1],g=(0,t.flow)([(0,a.sortBy)(function(w){return w.name}),(0,a.sortBy)(function(w){return w==null?void 0:w.x}),(0,a.sortBy)(function(w){return w==null?void 0:w.y}),(0,a.sortBy)(function(w){return w==null?void 0:w.realZ})])(p.crewmembers||[]),y=(0,o.useLocalState)(i,"zoom",1),B=y[0],L=y[1],I;return C===0?I=(0,e.createComponentVNode)(2,V.Table,{children:[(0,e.createComponentVNode)(2,V.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,V.Table.Cell,{children:"Name"}),(0,e.createComponentVNode)(2,V.Table.Cell,{children:"Status"}),(0,e.createComponentVNode)(2,V.Table.Cell,{children:"Location"})]}),g.map(function(w){return(0,e.createComponentVNode)(2,V.Table.Row,{children:[(0,e.createComponentVNode)(2,V.Table.Cell,{children:[w.name," (",w.assignment,")"]}),(0,e.createComponentVNode)(2,V.Table.Cell,{children:[(0,e.createComponentVNode)(2,V.Box,{inline:!0,color:S(w),children:k(w)}),w.sensor_type>=2?(0,e.createComponentVNode)(2,V.Box,{inline:!0,children:["(",(0,e.createComponentVNode)(2,V.Box,{inline:!0,color:"red",children:w.brute}),"|",(0,e.createComponentVNode)(2,V.Box,{inline:!0,color:"orange",children:w.fire}),"|",(0,e.createComponentVNode)(2,V.Box,{inline:!0,color:"green",children:w.tox}),"|",(0,e.createComponentVNode)(2,V.Box,{inline:!0,color:"blue",children:w.oxy}),")"]}):null]}),(0,e.createComponentVNode)(2,V.Table.Cell,{children:w.sensor_type===3?p.isAI?(0,e.createComponentVNode)(2,V.Button,{fluid:!0,icon:"location-arrow",content:w.area+" ("+w.x+", "+w.y+")",onClick:function(){function T(){return d("track",{track:w.ref})}return T}()}):w.area+" ("+w.x+", "+w.y+", "+w.z+")":"Not Available"})]},w.ref)})]}):C===1?I=(0,e.createComponentVNode)(2,s):I="ERROR",(0,e.createFragment)([(0,e.createComponentVNode)(2,V.Tabs,{children:[(0,e.createComponentVNode)(2,V.Tabs.Tab,{selected:C===0,onClick:function(){function w(){return b(0)}return w}(),children:[(0,e.createComponentVNode)(2,V.Icon,{name:"table"})," Data View"]},"DataView"),(0,e.createComponentVNode)(2,V.Tabs.Tab,{selected:C===1,onClick:function(){function w(){return b(1)}return w}(),children:[(0,e.createComponentVNode)(2,V.Icon,{name:"map-marked-alt"})," Map View"]},"MapView")]}),(0,e.createComponentVNode)(2,V.Box,{m:2,children:I})],4)}return l}(),s=function(u,i){var c=(0,o.useBackend)(i),d=c.act,p=c.config,v=c.data,f=(0,o.useLocalState)(i,"zoom",1),C=f[0],b=f[1];return(0,e.createComponentVNode)(2,V.Box,{height:"526px",mb:"0.5rem",overflow:"hidden",children:(0,e.createComponentVNode)(2,V.NanoMap,{onZoom:function(){function g(y){return b(y)}return g}(),children:v.crewmembers.filter(function(g){return g.sensor_type===3&&~~g.realZ===~~p.mapZLevel}).map(function(g){return(0,e.createComponentVNode)(2,V.NanoMap.Marker,{x:g.x,y:g.y,zoom:C,icon:"circle",tooltip:g.name+" ("+g.assignment+")",color:S(g)},g.ref)})})})}},1123:function(x,r,n){"use strict";r.__esModule=!0,r.Cryo=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=[{label:"Resp.",type:"oxyLoss"},{label:"Toxin",type:"toxLoss"},{label:"Brute",type:"bruteLoss"},{label:"Burn",type:"fireLoss"}],V=[["good","Conscious"],["average","Unconscious"],["bad","DEAD"]],k=r.Cryo=function(){function h(s,l){return(0,e.createComponentVNode)(2,o.Window,{width:520,height:470,resizeable:!0,children:(0,e.createComponentVNode)(2,o.Window.Content,{className:"Layout__content--flexColumn",children:(0,e.createComponentVNode)(2,S)})})}return h}(),S=function(s,l){var u=(0,a.useBackend)(l),i=u.act,c=u.data,d=c.isOperating,p=c.hasOccupant,v=c.occupant,f=v===void 0?[]:v,C=c.cellTemperature,b=c.cellTemperatureStatus,g=c.isBeakerLoaded;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{title:"Occupant",flexGrow:"1",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"user-slash",onClick:function(){function y(){return i("ejectOccupant")}return y}(),disabled:!p,children:"Eject"}),children:p?(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Occupant",children:f.name||"Unknown"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Health",children:(0,e.createComponentVNode)(2,t.ProgressBar,{min:f.health,max:f.maxHealth,value:f.health/f.maxHealth,color:f.health>0?"good":"average",children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:Math.round(f.health)})})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",color:V[f.stat][0],children:V[f.stat][1]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Temperature",children:[(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:Math.round(f.bodyTemperature)})," K"]}),(0,e.createComponentVNode)(2,t.LabeledList.Divider),m.map(function(y){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:y.label,children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:f[y.type]/100,ranges:{bad:[.01,1/0]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:Math.round(f[y.type])})})},y.id)})]}):(0,e.createComponentVNode)(2,t.Flex,{height:"100%",textAlign:"center",children:(0,e.createComponentVNode)(2,t.Flex.Item,{grow:"1",align:"center",color:"label",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,e.createVNode)(1,"br"),"No occupant detected."]})})}),(0,e.createComponentVNode)(2,t.Section,{title:"Cell",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"eject",onClick:function(){function y(){return i("ejectBeaker")}return y}(),disabled:!g,children:"Eject Beaker"}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power",children:(0,e.createComponentVNode)(2,t.Button,{icon:"power-off",onClick:function(){function y(){return i(d?"switchOff":"switchOn")}return y}(),selected:d,children:d?"On":"Off"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Temperature",color:b,children:[(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:C})," K"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Beaker",children:(0,e.createComponentVNode)(2,N)})]})})],4)},N=function(s,l){var u=(0,a.useBackend)(l),i=u.act,c=u.data,d=c.isBeakerLoaded,p=c.beakerLabel,v=c.beakerVolume;return d?(0,e.createFragment)([p||(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"No label"}),(0,e.createComponentVNode)(2,t.Box,{color:!v&&"bad",children:v?(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:v,format:function(){function f(C){return Math.round(C)+" units remaining"}return f}()}):"Beaker is empty"})],0):(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"No beaker loaded"})}},96886:function(x,r,n){"use strict";r.__esModule=!0,r.CryoStorageItems=r.CryoStorageCrew=r.CryoStorage=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=r.CryoStorage=function(){function S(N,h){var s=(0,a.useBackend)(h),l=s.act,u=s.data,i=u.real_name,c=u.allow_items,d=(0,a.useLocalState)(h,"tab",0),p=d[0],v=d[1];return(0,e.createComponentVNode)(2,o.Window,{width:400,height:600,resizable:!0,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,t.Tabs,{children:[(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:p===0,onClick:function(){function f(){return v(0)}return f}(),children:"Crew"}),!!c&&(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:p===1,onClick:function(){function f(){return v(1)}return f}(),children:"Items"})]}),(0,e.createComponentVNode)(2,t.NoticeBox,{info:!0,children:["Welcome, ",i,"."]}),p===0&&(0,e.createComponentVNode)(2,V),!!c&&p===1&&(0,e.createComponentVNode)(2,k)]})})}return S}(),V=r.CryoStorageCrew=function(){function S(N,h){var s=(0,a.useBackend)(h),l=s.act,u=s.data,i=u.crew;return(0,e.createComponentVNode)(2,t.Section,{title:"Stored Crew",children:i.length&&i.map(function(c){return(0,e.createComponentVNode)(2,t.Box,{color:"label",children:c},c)})||(0,e.createComponentVNode)(2,t.Box,{color:"good",children:"No crew currently stored."})})}return S}(),k=r.CryoStorageItems=function(){function S(N,h){var s=(0,a.useBackend)(h),l=s.act,u=s.data,i=u.items;return(0,e.createComponentVNode)(2,t.Section,{title:"Stored Items",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"hand-rock",onClick:function(){function c(){return l("allitems")}return c}(),children:"Claim All"}),children:i.length&&i.map(function(c){return(0,e.createComponentVNode)(2,t.Button,{icon:"hand-rock",onClick:function(){function d(){return l("item",{ref:c.ref})}return d}(),children:c.name},c.ref)})||(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"No items stored."})})}return S}()},65185:function(x,r,n){"use strict";r.__esModule=!0,r.CryoStorageVr=r.CryoStorageItemsVr=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=n(96886),V=r.CryoStorageVr=function(){function S(N,h){var s=(0,a.useBackend)(h),l=s.act,u=s.data,i=u.real_name,c=u.allow_items,d=(0,a.useLocalState)(h,"tab",0),p=d[0],v=d[1];return(0,e.createComponentVNode)(2,o.Window,{width:400,height:600,resizable:!0,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,t.Tabs,{children:[(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:p===0,onClick:function(){function f(){return v(0)}return f}(),children:"Crew"}),!!c&&(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:p===1,onClick:function(){function f(){return v(1)}return f}(),children:"Items"})]}),(0,e.createComponentVNode)(2,t.NoticeBox,{info:!0,children:["Welcome, ",i,"."]}),p===0&&(0,e.createComponentVNode)(2,m.CryoStorageCrew),!!c&&p===1&&(0,e.createComponentVNode)(2,k)]})})}return S}(),k=r.CryoStorageItemsVr=function(){function S(N,h){var s=(0,a.useBackend)(h),l=s.act,u=s.data,i=u.items;return(0,e.createComponentVNode)(2,t.Section,{title:"Stored Items",children:i.length&&i.map(function(c){return(0,e.createComponentVNode)(2,t.Box,{color:"label",children:c},c)})||(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"No items stored."})})}return S}()},12513:function(x,r,n){"use strict";r.__esModule=!0,r.DNAForensics=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=r.DNAForensics=function(){function V(k,S){var N=(0,a.useBackend)(S),h=N.act,s=N.data,l=s.scan_progress,u=s.scanning,i=s.bloodsamp,c=s.bloodsamp_desc;return(0,e.createComponentVNode)(2,o.Window,{width:540,height:326,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Status",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{selected:u,disabled:!i,icon:"power-off",onClick:function(){function d(){return h("scanItem")}return d}(),children:u?"Halt Scan":"Begin Scan"}),(0,e.createComponentVNode)(2,t.Button,{disabled:!i,icon:"eject",onClick:function(){function d(){return h("ejectItem")}return d}(),children:"Eject Bloodsample"})],4),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Scan Progress",children:(0,e.createComponentVNode)(2,t.ProgressBar,{ranges:{good:[99,1/0],violet:[-1/0,99]},value:l,maxValue:100})})})}),(0,e.createComponentVNode)(2,t.Section,{title:"Blood Sample",children:i&&(0,e.createComponentVNode)(2,t.Box,{children:[i,(0,e.createComponentVNode)(2,t.Box,{color:"label",children:c})]})||(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:"No blood sample inserted."})})]})})}return V}()},21576:function(x,r,n){"use strict";r.__esModule=!0,r.DNAModifier=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=n(48388),V=[["good","Alive"],["average","Unconscious"],["bad","DEAD"]],k=[["ui","Modify U.I.","dna"],["se","Modify S.E.","dna"],["buffer","Transfer Buffers","syringe"],["rejuvenators","Rejuvenators","flask"]],S=[5,10,20,30,50],N=r.DNAModifier=function(){function b(g,y){var B=(0,a.useBackend)(y),L=B.act,I=B.data,w=I.irradiating,T=I.dnaBlockSize,M=I.occupant;y.dnaBlockSize=T,y.isDNAInvalid=!M.isViableSubject||!M.uniqueIdentity||!M.structuralEnzymes;var A;return w&&(A=(0,e.createComponentVNode)(2,f,{duration:w})),(0,e.createComponentVNode)(2,o.Window,{width:660,height:700,resizable:!0,children:[(0,e.createComponentVNode)(2,m.ComplexModal),A,(0,e.createComponentVNode)(2,o.Window.Content,{className:"Layout__content--flexColumn",children:[(0,e.createComponentVNode)(2,h),(0,e.createComponentVNode)(2,s)]})]})}return b}(),h=function(g,y){var B=(0,a.useBackend)(y),L=B.act,I=B.data,w=I.locked,T=I.hasOccupant,M=I.occupant;return(0,e.createComponentVNode)(2,t.Section,{title:"Occupant",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{color:"label",inline:!0,mr:"0.5rem",children:"Door Lock:"}),(0,e.createComponentVNode)(2,t.Button,{disabled:!T,selected:w,icon:w?"toggle-on":"toggle-off",content:w?"Engaged":"Disengaged",onClick:function(){function A(){return L("toggleLock")}return A}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:!T||w,icon:"user-slash",content:"Eject",onClick:function(){function A(){return L("ejectOccupant")}return A}()})],4),children:T?(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Name",children:M.name}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Health",children:(0,e.createComponentVNode)(2,t.ProgressBar,{min:M.minHealth,max:M.maxHealth,value:M.health/M.maxHealth,ranges:{good:[.5,1/0],average:[0,.5],bad:[-1/0,0]}})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",color:V[M.stat][0],children:V[M.stat][1]}),(0,e.createComponentVNode)(2,t.LabeledList.Divider)]})}),y.isDNAInvalid?(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"exclamation-circle"}),"\xA0 The occupant's DNA structure is ruined beyond recognition, please insert a subject with an intact DNA structure."]}):(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Radiation",children:(0,e.createComponentVNode)(2,t.ProgressBar,{min:"0",max:"100",value:M.radiationLevel/100,color:"average"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Unique Enzymes",children:I.occupant.uniqueEnzymes?I.occupant.uniqueEnzymes:(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"exclamation-circle"}),"\xA0 Unknown"]})})]})],0):(0,e.createComponentVNode)(2,t.Box,{color:"label",children:"Cell unoccupied."})})},s=function(g,y){var B=(0,a.useBackend)(y),L=B.act,I=B.data,w=I.selectedMenuKey,T=I.hasOccupant,M=I.occupant;if(T){if(y.isDNAInvalid)return(0,e.createComponentVNode)(2,t.Section,{flexGrow:"1",children:(0,e.createComponentVNode)(2,t.Flex,{height:"100%",children:(0,e.createComponentVNode)(2,t.Flex.Item,{grow:"1",align:"center",textAlign:"center",color:"label",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,e.createVNode)(1,"br"),"No operation possible on this subject."]})})})}else return(0,e.createComponentVNode)(2,t.Section,{flexGrow:"1",children:(0,e.createComponentVNode)(2,t.Flex,{height:"100%",children:(0,e.createComponentVNode)(2,t.Flex.Item,{grow:"1",align:"center",textAlign:"center",color:"label",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,e.createVNode)(1,"br"),"No occupant in DNA modifier."]})})});var A;return w==="ui"?A=(0,e.createFragment)([(0,e.createComponentVNode)(2,l),(0,e.createComponentVNode)(2,i)],4):w==="se"?A=(0,e.createFragment)([(0,e.createComponentVNode)(2,u),(0,e.createComponentVNode)(2,i)],4):w==="buffer"?A=(0,e.createComponentVNode)(2,c):w==="rejuvenators"&&(A=(0,e.createComponentVNode)(2,v)),(0,e.createComponentVNode)(2,t.Section,{flexGrow:"1",children:[(0,e.createComponentVNode)(2,t.Tabs,{children:k.map(function(R,O){return(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:w===R[0],onClick:function(){function _(){return L("selectMenuKey",{key:R[0]})}return _}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:R[2]}),R[1]]},O)})}),A]})},l=function(g,y){var B=(0,a.useBackend)(y),L=B.act,I=B.data,w=I.selectedUIBlock,T=I.selectedUISubBlock,M=I.selectedUITarget,A=I.occupant;return(0,e.createComponentVNode)(2,t.Section,{title:"Modify Unique Identifier",level:"2",children:[(0,e.createComponentVNode)(2,C,{dnaString:A.uniqueIdentity,selectedBlock:w,selectedSubblock:T,blockSize:y.dnaBlockSize,action:"selectUIBlock"}),(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Target",children:(0,e.createComponentVNode)(2,t.Knob,{minValue:"1",maxValue:"15",stepPixelSize:"20",value:M,format:function(){function R(O){return O.toString(16).toUpperCase()}return R}(),ml:"0",onChange:function(){function R(O,_){return L("changeUITarget",{value:_})}return R}()})})}),(0,e.createComponentVNode)(2,t.Button,{icon:"radiation",content:"Irradiate Block",mt:"0.5rem",onClick:function(){function R(){return L("pulseUIRadiation")}return R}()})]})},u=function(g,y){var B=(0,a.useBackend)(y),L=B.act,I=B.data,w=I.selectedSEBlock,T=I.selectedSESubBlock,M=I.occupant;return(0,e.createComponentVNode)(2,t.Section,{title:"Modify Structural Enzymes",level:"2",children:[(0,e.createComponentVNode)(2,C,{dnaString:M.structuralEnzymes,selectedBlock:w,selectedSubblock:T,blockSize:y.dnaBlockSize,action:"selectSEBlock"}),(0,e.createComponentVNode)(2,t.Button,{icon:"radiation",content:"Irradiate Block",onClick:function(){function A(){return L("pulseSERadiation")}return A}()})]})},i=function(g,y){var B=(0,a.useBackend)(y),L=B.act,I=B.data,w=I.radiationIntensity,T=I.radiationDuration;return(0,e.createComponentVNode)(2,t.Section,{title:"Radiation Emitter",level:"2",children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Intensity",children:(0,e.createComponentVNode)(2,t.Knob,{minValue:"1",maxValue:"10",stepPixelSize:"20",value:w,popUpPosition:"right",ml:"0",onChange:function(){function M(A,R){return L("radiationIntensity",{value:R})}return M}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Duration",children:(0,e.createComponentVNode)(2,t.Knob,{minValue:"1",maxValue:"20",stepPixelSize:"10",unit:"s",value:T,popUpPosition:"right",ml:"0",onChange:function(){function M(A,R){return L("radiationDuration",{value:R})}return M}()})})]}),(0,e.createComponentVNode)(2,t.Button,{icon:"radiation",content:"Pulse Radiation",tooltip:"Mutates a random block of either the occupant's UI or SE.",tooltipPosition:"top",mt:"0.5rem",onClick:function(){function M(){return L("pulseRadiation")}return M}()})]})},c=function(g,y){var B=(0,a.useBackend)(y),L=B.act,I=B.data,w=I.buffers,T=w.map(function(M,A){return(0,e.createComponentVNode)(2,d,{id:A+1,name:"Buffer "+(A+1),buffer:M},A)});return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{title:"Buffers",level:"2",children:T}),(0,e.createComponentVNode)(2,p)],4)},d=function(g,y){var B=(0,a.useBackend)(y),L=B.act,I=B.data,w=g.id,T=g.name,M=g.buffer,A=I.isInjectorReady,R=T+(M.data?" - "+M.label:"");return(0,e.createComponentVNode)(2,t.Box,{backgroundColor:"rgba(0, 0, 0, 0.33)",mb:"0.5rem",children:(0,e.createComponentVNode)(2,t.Section,{title:R,level:"3",mx:"0",lineHeight:"18px",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button.Confirm,{disabled:!M.data,icon:"trash",content:"Clear",onClick:function(){function O(){return L("bufferOption",{option:"clear",id:w})}return O}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:!M.data,icon:"pen",content:"Rename",onClick:function(){function O(){return L("bufferOption",{option:"changeLabel",id:w})}return O}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:!M.data||!I.hasDisk,icon:"save",content:"Export",tooltip:"Exports this buffer to the currently loaded data disk.",tooltipPosition:"bottom-end",onClick:function(){function O(){return L("bufferOption",{option:"saveDisk",id:w})}return O}()})],4),children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Write",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-circle-down",content:"Subject U.I",mb:"0",onClick:function(){function O(){return L("bufferOption",{option:"saveUI",id:w})}return O}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-circle-down",content:"Subject U.I and U.E.",mb:"0",onClick:function(){function O(){return L("bufferOption",{option:"saveUIAndUE",id:w})}return O}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-circle-down",content:"Subject S.E.",mb:"0",onClick:function(){function O(){return L("bufferOption",{option:"saveSE",id:w})}return O}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:!I.hasDisk||!I.disk.data,icon:"arrow-circle-down",content:"From Disk",mb:"0",onClick:function(){function O(){return L("bufferOption",{option:"loadDisk",id:w})}return O}()})]}),M.data?(0,e.createFragment)([(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Subject",children:M.owner||(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"Unknown"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Data Type",children:[M.type==="ui"?"Unique Identifiers":"Structural Enzymes",!!M.ue&&" and Unique Enzymes"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Transfer to",children:[(0,e.createComponentVNode)(2,t.Button,{disabled:!A,icon:A?"syringe":"spinner",iconSpin:!A,content:"Injector",mb:"0",onClick:function(){function O(){return L("bufferOption",{option:"createInjector",id:w})}return O}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:!A,icon:A?"syringe":"spinner",iconSpin:!A,content:"Block Injector",mb:"0",onClick:function(){function O(){return L("bufferOption",{option:"createInjector",id:w,block:1})}return O}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"user",content:"Subject",mb:"0",onClick:function(){function O(){return L("bufferOption",{option:"transfer",id:w})}return O}()})]})],4):null]}),!M.data&&(0,e.createComponentVNode)(2,t.Box,{color:"label",mt:"0.5rem",children:"This buffer is empty."})]})})},p=function(g,y){var B=(0,a.useBackend)(y),L=B.act,I=B.data,w=I.hasDisk,T=I.disk;return(0,e.createComponentVNode)(2,t.Section,{title:"Data Disk",level:"2",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button.Confirm,{disabled:!w||!T.data,icon:"trash",content:"Wipe",onClick:function(){function M(){return L("wipeDisk")}return M}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:!w,icon:"eject",content:"Eject",onClick:function(){function M(){return L("ejectDisk")}return M}()})],4),children:w?T.data?(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Label",children:T.label?T.label:"No label"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Subject",children:T.owner?T.owner:(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"Unknown"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Data Type",children:[T.type==="ui"?"Unique Identifiers":"Structural Enzymes",!!T.ue&&" and Unique Enzymes"]})]}):(0,e.createComponentVNode)(2,t.Box,{color:"label",children:"Disk is blank."}):(0,e.createComponentVNode)(2,t.Box,{color:"label",textAlign:"center",my:"1rem",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"save-o",size:"4"}),(0,e.createVNode)(1,"br"),"No disk inserted."]})})},v=function(g,y){var B=(0,a.useBackend)(y),L=B.act,I=B.data,w=I.isBeakerLoaded,T=I.beakerVolume,M=I.beakerLabel;return(0,e.createComponentVNode)(2,t.Section,{title:"Rejuvenators and Beaker",level:"2",buttons:(0,e.createComponentVNode)(2,t.Button,{disabled:!w,icon:"eject",content:"Eject",onClick:function(){function A(){return L("ejectBeaker")}return A}()}),children:w?(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Inject",children:[S.map(function(A,R){return(0,e.createComponentVNode)(2,t.Button,{disabled:A>T,icon:"syringe",content:A,onClick:function(){function O(){return L("injectRejuvenators",{amount:A})}return O}()},R)}),(0,e.createComponentVNode)(2,t.Button,{disabled:T<=0,icon:"syringe",content:"All",onClick:function(){function A(){return L("injectRejuvenators",{amount:T})}return A}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Beaker",children:[(0,e.createComponentVNode)(2,t.Box,{mb:"0.5rem",children:M||"No label"}),T?(0,e.createComponentVNode)(2,t.Box,{color:"good",children:[T," unit",T===1?"":"s"," remaining"]}):(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:"Empty"})]})]}):(0,e.createComponentVNode)(2,t.Box,{color:"label",textAlign:"center",my:"25%",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"exclamation-triangle",size:"4"}),(0,e.createVNode)(1,"br"),"No beaker loaded."]})})},f=function(g,y){return(0,e.createComponentVNode)(2,t.Dimmer,{textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"spinner",size:"5",spin:!0}),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Box,{color:"average",children:(0,e.createVNode)(1,"h1",null,[(0,e.createComponentVNode)(2,t.Icon,{name:"radiation"}),(0,e.createTextVNode)("\xA0Irradiating occupant\xA0"),(0,e.createComponentVNode)(2,t.Icon,{name:"radiation"})],4)}),(0,e.createComponentVNode)(2,t.Box,{color:"label",children:(0,e.createVNode)(1,"h3",null,[(0,e.createTextVNode)("For "),g.duration,(0,e.createTextVNode)(" second"),g.duration===1?"":"s"],0)})]})},C=function(g,y){for(var B=(0,a.useBackend)(y),L=B.act,I=B.data,w=g.dnaString,T=g.selectedBlock,M=g.selectedSubblock,A=g.blockSize,R=g.action,O=w.split(""),_=0,P=[],D=function(){for(var W=z/A+1,K=[],H=function(){var q=Y+1;K.push((0,e.createComponentVNode)(2,t.Button,{selected:T===W&&M===q,content:O[z+Y],mb:"0",onClick:function(){function oe(){return L(R,{block:W,subblock:q})}return oe}()}))},Y=0;Y1?"Dangerous!":null]},f.stage)})||(0,e.createComponentVNode)(2,t.Box,{children:"No virus sample loaded."})}),(0,e.createComponentVNode)(2,t.Section,{level:2,title:"Affected Species",color:"label",children:[!v||!v.length?"None":null,v.sort().join(", ")]}),(0,e.createComponentVNode)(2,t.Section,{level:2,title:"Reverse Engineering",children:[(0,e.createComponentVNode)(2,t.Box,{color:"bad",mb:1,children:(0,e.createVNode)(1,"i",null,"CAUTION: Reverse engineering will destroy the viral sample.",16)}),c.map(function(f){return(0,e.createComponentVNode)(2,t.Button,{content:f.stage,icon:"exchange-alt",onClick:function(){function C(){return l("grab",{grab:f.reference})}return C}()},f.stage)}),(0,e.createComponentVNode)(2,t.Button,{content:"Species",icon:"exchange-alt",onClick:function(){function f(){return l("affected_species")}return f}()})]})],4)]})},k=function(N,h){var s=(0,a.useBackend)(h),l=s.act,u=s.data,i=u.dish_inserted,c=u.buffer,d=u.species_buffer,p=u.effects,v=u.info,f=u.growth,C=u.affected_species,b=u.busy;return(0,e.createComponentVNode)(2,t.Section,{title:"Storage",children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Memory Buffer",children:c?(0,e.createComponentVNode)(2,t.Box,{children:[c.name," (",c.stage,")"]}):d?(0,e.createComponentVNode)(2,t.Box,{children:d}):"Empty"})}),(0,e.createComponentVNode)(2,t.Button,{mt:1,icon:"save",content:"Save To Disk",disabled:!c&&!d,onClick:function(){function g(){return l("disk")}return g}()}),c?(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"pen",content:"Splice #1",disabled:c.stage>1,onClick:function(){function g(){return l("splice",{splice:1})}return g}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"pen",content:"Splice #2",disabled:c.stage>2,onClick:function(){function g(){return l("splice",{splice:2})}return g}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"pen",content:"Splice #3",disabled:c.stage>3,onClick:function(){function g(){return l("splice",{splice:3})}return g}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"pen",content:"Splice #4",disabled:c.stage>4,onClick:function(){function g(){return l("splice",{splice:4})}return g}()})]}):d?(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"pen",content:"Splice Species",disabled:!d||v,onClick:function(){function g(){return l("splice",{splice:5})}return g}()})}):null]})}},3153:function(x,r,n){"use strict";r.__esModule=!0,r.DishIncubator=void 0;var e=n(58734),a=n(43820),t=n(62188),o=n(11790),m=n(11477),V=r.DishIncubator=function(){function k(S,N){var h=(0,t.useBackend)(N),s=h.act,l=h.data,u=l.on,i=l.system_in_use,c=l.food_supply,d=l.radiation,p=l.growth,v=l.toxins,f=l.chemicals_inserted,C=l.can_breed_virus,b=l.chemical_volume,g=l.max_chemical_volume,y=l.dish_inserted,B=l.blood_already_infected,L=l.virus,I=l.analysed,w=l.infection_rate;return(0,e.createComponentVNode)(2,m.Window,{width:400,height:600,children:(0,e.createComponentVNode)(2,m.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,o.Section,{title:"Environmental Conditions",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"power-off",selected:u,content:u?"On":"Off",onClick:function(){function T(){return s("power")}return T}()}),children:[(0,e.createComponentVNode)(2,o.Flex,{spacing:1,mb:1,children:[(0,e.createComponentVNode)(2,o.Flex.Item,{grow:1,children:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,icon:"radiation",content:"Add Radiation",onClick:function(){function T(){return s("rad")}return T}()})}),(0,e.createComponentVNode)(2,o.Flex.Item,{grow:1,children:(0,e.createComponentVNode)(2,o.Button.Confirm,{fluid:!0,color:"red",icon:"trash",confirmIcon:"trash",content:"Flush System",disabled:!i,onClick:function(){function T(){return s("flush")}return T}()})})]}),(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Virus Food",children:(0,e.createComponentVNode)(2,o.ProgressBar,{minValue:0,maxValue:100,ranges:{good:[40,1/0],average:[20,40],bad:[-1/0,20]},value:c})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Radiation Level",children:(0,e.createComponentVNode)(2,o.ProgressBar,{minValue:0,maxValue:100,color:d>=50?"bad":p>=25?"average":"good",value:d,children:[(0,a.formatCommaNumber)(d*1e4)," \xB5Sv"]})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Toxicity",children:(0,e.createComponentVNode)(2,o.ProgressBar,{minValue:0,maxValue:100,ranges:{bad:[50,1/0],average:[25,50],good:[-1/0,25]},value:v})})]})]}),(0,e.createComponentVNode)(2,o.Section,{title:C?"Vial":"Chemicals",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{icon:"eject",content:"Eject "+(C?"Vial":"Chemicals"),disabled:!f,onClick:function(){function T(){return s("ejectchem")}return T}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"virus",content:"Breed Virus",disabled:!C,onClick:function(){function T(){return s("virus")}return T}()})],4),children:f&&(0,e.createComponentVNode)(2,o.Box,{children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Volume",children:(0,e.createComponentVNode)(2,o.ProgressBar,{minValue:0,maxValue:g,value:b,children:[b,"/",g]})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Breeding Environment",color:C?"good":"average",children:[y?C?"Suitable":"No hemolytic samples detected":"N/A",B?(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"CAUTION: Viral infection detected in blood sample."}):null]})]})})||(0,e.createComponentVNode)(2,o.Box,{color:"average",children:"No chemicals inserted."})}),(0,e.createComponentVNode)(2,o.Section,{title:"Virus Dish",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"eject",content:"Eject Dish",disabled:!y,onClick:function(){function T(){return s("ejectdish")}return T}()}),children:y?L?(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Growth Density",children:(0,e.createComponentVNode)(2,o.ProgressBar,{minValue:0,maxValue:100,ranges:{good:[50,1/0],average:[25,50],bad:[-1/0,25]},value:p})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Infection Rate",children:I?w:"Unknown."})]}):(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"No virus detected."}):(0,e.createComponentVNode)(2,o.Box,{color:"average",children:"No dish loaded."})})]})})}return k}()},82936:function(x,r,n){"use strict";r.__esModule=!0,r.DisposalBin=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=r.DisposalBin=function(){function V(k,S){var N=(0,a.useBackend)(S),h=N.act,s=N.data,l=s.mode,u=s.pressure,i=s.isAI,c=s.panel_open,d=s.flushing,p,v;return l===2?(p="good",v="Ready"):l<=0?(p="bad",v="N/A"):l===1?(p="average",v="Pressurizing"):(p="average",v="Idle"),(0,e.createComponentVNode)(2,o.Window,{width:300,height:250,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:[(0,e.createComponentVNode)(2,t.Box,{bold:!0,m:1,children:"Status"}),(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"State",color:p,children:v}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Pressure",children:(0,e.createComponentVNode)(2,t.ProgressBar,{ranges:{bad:[-1/0,0],average:[0,99],good:[99,1/0]},value:u,minValue:0,maxValue:100})})]}),(0,e.createComponentVNode)(2,t.Box,{bold:!0,m:1,children:"Controls"}),(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Handle",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"toggle-off",disabled:i||c,content:"Disengaged",selected:d?null:"selected",onClick:function(){function f(){return h("disengageHandle")}return f}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"toggle-on",disabled:i||c,content:"Engaged",selected:d?"selected":null,onClick:function(){function f(){return h("engageHandle")}return f}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"toggle-off",disabled:l===-1,content:"Off",selected:l?null:"selected",onClick:function(){function f(){return h("pumpOff")}return f}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"toggle-on",disabled:l===-1,content:"On",selected:l?"selected":null,onClick:function(){function f(){return h("pumpOn")}return f}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Eject",children:(0,e.createComponentVNode)(2,t.Button,{icon:"sign-out-alt",disabled:i,content:"Eject Contents",onClick:function(){function f(){return h("eject")}return f}()})})]})]})})})}return V}()},93263:function(x,r,n){"use strict";r.__esModule=!0,r.DroneConsole=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=r.DroneConsole=function(){function V(k,S){var N=(0,a.useBackend)(S),h=N.act,s=N.data,l=s.drones,u=s.areas,i=s.selected_area,c=s.fabricator,d=s.fabPower;return(0,e.createComponentVNode)(2,o.Window,{width:600,height:350,resizable:!0,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,t.Section,{title:"Drone Fabricator",buttons:(0,e.createComponentVNode)(2,t.Button,{disabled:!c,selected:d,icon:"power-off",content:d?"Enabled":"Disabled",onClick:function(){function p(){return h("toggle_fab")}return p}()}),children:c?(0,e.createComponentVNode)(2,t.Box,{color:"good",children:"Linked."}):(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:["Fabricator not detected.",(0,e.createComponentVNode)(2,t.Button,{icon:"sync",content:"Search for Fabricator",onClick:function(){function p(){return h("search_fab")}return p}()})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Request Drone",children:[(0,e.createComponentVNode)(2,t.Dropdown,{options:u?u.sort():null,selected:i,width:"100%",onSelected:function(){function p(v){return h("set_dcall_area",{area:v})}return p}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"share-square",content:"Send Ping",onClick:function(){function p(){return h("ping")}return p}()})]}),(0,e.createComponentVNode)(2,t.Section,{title:"Maintenance Units",children:l&&l.length?(0,e.createComponentVNode)(2,t.LabeledList,{children:l.map(function(p){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:p.name,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{icon:"sync",content:"Resync",onClick:function(){function v(){return h("resync",{ref:p.ref})}return v}()}),(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"exclamation-triangle",color:"red",content:"Shutdown",onClick:function(){function v(){return h("shutdown",{ref:p.ref})}return v}()})],4),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Location",children:p.loc}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Charge",children:[p.charge," / ",p.maxCharge]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Active",children:p.active?"Yes":"No"})]})},p.name)})}):(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:"No drones detected."})})]})})}return V}()},64032:function(x,r,n){"use strict";r.__esModule=!0,r.EmbeddedController=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=n(66905),V=(0,m.createLogger)("fuck"),k={},S=r.EmbeddedController=function(){function B(L,I){var w=(0,a.useBackend)(I),T=w.act,M=w.data,A=M.internalTemplateName,R=k[A];if(!R)throw Error("Unable to find Component for template name: "+A);return(0,e.createComponentVNode)(2,o.Window,{width:450,height:340,resizable:!0,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,R)})})}return B}(),N=function(L,I){var w=L.bars;return(0,e.createComponentVNode)(2,t.Section,{title:"Status",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:w.map(function(T){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:T.label,children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:T.color(T.value),minValue:T.minValue,maxValue:T.maxValue,value:T.value,children:T.textValue})},T.label)})})})},h=function(L,I){var w=(0,a.useBackend)(I),T=w.data,M=w.act,A=!0;T.interior_status&&T.interior_status.state==="open"?A=!1:T.external_pressure&&T.chamber_pressure&&(A=!(Math.abs(T.external_pressure-T.chamber_pressure)>5));var R=!0;return T.exterior_status&&T.exterior_status.state==="open"?R=!1:T.internal_pressure&&T.chamber_pressure&&(R=!(Math.abs(T.internal_pressure-T.chamber_pressure)>5)),(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Button,{disabled:T.airlock_disabled,icon:"arrow-left",content:"Cycle to Exterior",onClick:function(){function O(){return M("cycle_ext")}return O}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:T.airlock_disabled,icon:"arrow-right",content:"Cycle to Interior",onClick:function(){function O(){return M("cycle_int")}return O}()})]}),(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Button.Confirm,{disabled:T.airlock_disabled,color:A?"":"bad",icon:"exclamation-triangle",confirmIcon:"exclamation-triangle",content:"Force Exterior Door",onClick:function(){function O(){return M("force_ext")}return O}()}),(0,e.createComponentVNode)(2,t.Button.Confirm,{disabled:T.airlock_disabled,color:R?"":"bad",icon:"exclamation-triangle",confirmIcon:"exclamation-triangle",content:"Force Interior Door",onClick:function(){function O(){return M("force_int")}return O}()})]})],4)},s=function(L,I){var w=(0,a.useBackend)(I),T=w.data,M=w.act,A={docked:(0,e.createComponentVNode)(2,l),undocking:(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"EJECTING-STAND CLEAR!"}),undocked:(0,e.createComponentVNode)(2,t.Box,{color:"grey",children:"POD EJECTED"}),docking:(0,e.createComponentVNode)(2,t.Box,{color:"good",children:"INITIALIZING..."})},R=(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:"ERROR"});return T.exterior_status.state==="open"?R=(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"OPEN"}):T.exterior_status.lock==="unlocked"?R=(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"UNSECURED"}):T.exterior_status.lock==="locked"&&(R=(0,e.createComponentVNode)(2,t.Box,{color:"good",children:"SECURED"})),(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Escape Pod Status",children:A[T.docking_status]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Docking Hatch",children:R})]})})},l=function(L,I){var w=(0,a.useBackend)(I),T=w.data,M=w.act;return T.armed?(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"ARMED"}):(0,e.createComponentVNode)(2,t.Box,{color:"good",children:"SYSTEMS OK"})},u=function(L,I){var w=(0,a.useBackend)(I),T=w.data,M=w.act;return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Button,{disabled:!T.override_enabled,icon:"exclamation-triangle",content:"Force Exterior Door",color:T.docking_status!=="docked"?"bad":"",onClick:function(){function A(){return M("force_door")}return A}()}),(0,e.createComponentVNode)(2,t.Button,{selected:T.override_enabled,color:T.docking_status!=="docked"?"bad":"average",icon:"exclamation-triangle",content:"Override",onClick:function(){function A(){return M("toggle_override")}return A}()})]})},i=function(L,I){var w=(0,a.useBackend)(I),T=w.data,M=w.act,A={docked:(0,e.createComponentVNode)(2,t.Box,{color:"good",children:"DOCKED"}),docking:(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"DOCKING"}),undocking:(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"UNDOCKING"}),undocked:(0,e.createComponentVNode)(2,t.Box,{color:"grey",children:"NOT IN USE"})},R=A[T.docking_status];return T.override_enabled&&(R=(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:[T.docking_status.toUpperCase(),"-OVERRIDE ENABLED"]})),R},c=function(L,I){var w=(0,a.useBackend)(I),T=w.act,M=w.data,A=function(_){return _<80||_>120?"bad":_<95||_>110?"average":"good"},R=[{minValue:0,maxValue:202,value:M.external_pressure,label:"External Pressure",textValue:M.external_pressure+" kPa",color:A},{minValue:0,maxValue:202,value:M.chamber_pressure,label:"Chamber Pressure",textValue:M.chamber_pressure+" kPa",color:A},{minValue:0,maxValue:202,value:M.internal_pressure,label:"Internal Pressure",textValue:M.internal_pressure+" kPa",color:A}];return(0,e.createFragment)([(0,e.createComponentVNode)(2,N,{bars:R}),(0,e.createComponentVNode)(2,t.Section,{title:"Controls",children:[(0,e.createComponentVNode)(2,h),(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"sync",content:"Purge",onClick:function(){function O(){return T("purge")}return O}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"lock-open",content:"Secure",onClick:function(){function O(){return T("secure")}return O}()})]}),(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{disabled:!M.processing,icon:"ban",color:"bad",content:"Abort",onClick:function(){function O(){return T("abort")}return O}()})})]})],4)};k.AirlockConsoleAdvanced=c;var d=function(L,I){var w=(0,a.useBackend)(I),T=w.act,M=w.data,A=[{minValue:0,maxValue:202,value:M.chamber_pressure,label:"Chamber Pressure",textValue:M.chamber_pressure+" kPa",color:function(){function R(O){return O<80||O>120?"bad":O<95||O>110?"average":"good"}return R}()}];return(0,e.createFragment)([(0,e.createComponentVNode)(2,N,{bars:A}),(0,e.createComponentVNode)(2,t.Section,{title:"Controls",children:[(0,e.createComponentVNode)(2,h),(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{disabled:!M.processing,icon:"ban",color:"bad",content:"Abort",onClick:function(){function R(){return T("abort")}return R}()})})]})],4)};k.AirlockConsoleSimple=d;var p=function(L,I){var w=(0,a.useBackend)(I),T=w.act,M=w.data,A=[{minValue:0,maxValue:202,value:M.chamber_pressure,label:"Chamber Pressure",textValue:M.chamber_pressure+" kPa",color:function(){function R(O){return O<80||O>120?"bad":O<95||O>110?"average":"good"}return R}()},{minValue:0,maxValue:100,value:M.chamber_phoron,label:"Chamber Phoron",textValue:M.chamber_phoron+" mol",color:function(){function R(O){return O>5?"bad":O>.5?"average":"good"}return R}()}];return(0,e.createFragment)([(0,e.createComponentVNode)(2,N,{bars:A}),(0,e.createComponentVNode)(2,t.Section,{title:"Controls",children:[(0,e.createComponentVNode)(2,h),(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{disabled:!M.processing,icon:"ban",color:"bad",content:"Abort",onClick:function(){function R(){return T("abort")}return R}()})})]})],4)};k.AirlockConsolePhoron=p;var v=function(L,I){var w=(0,a.useBackend)(I),T=w.act,M=w.data,A=[{minValue:0,maxValue:202,value:M.chamber_pressure,label:"Chamber Pressure",textValue:M.chamber_pressure+" kPa",color:function(){function R(O){return O<80||O>120?"bad":O<95||O>110?"average":"good"}return R}()}];return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{title:"Dock",buttons:M.airlock_disabled||M.override_enabled?(0,e.createComponentVNode)(2,t.Button,{icon:"exclamation-triangle",color:M.override_enabled?"red":"",content:"Override",onClick:function(){function R(){return T("toggle_override")}return R}()}):null,children:(0,e.createComponentVNode)(2,i)}),(0,e.createComponentVNode)(2,N,{bars:A}),(0,e.createComponentVNode)(2,t.Section,{title:"Controls",children:[(0,e.createComponentVNode)(2,h),(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{disabled:!M.processing,icon:"ban",color:"bad",content:"Abort",onClick:function(){function R(){return T("abort")}return R}()})})]})],4)};k.AirlockConsoleDocking=v;var f=function(L,I){var w=(0,a.useBackend)(I),T=w.act,M=w.data,A=(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:"ERROR"});return M.exterior_status.state==="open"?A=(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"OPEN"}):M.exterior_status.lock==="unlocked"?A=(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"UNSECURED"}):M.exterior_status.lock==="locked"&&(A=(0,e.createComponentVNode)(2,t.Box,{color:"good",children:"SECURED"})),(0,e.createComponentVNode)(2,t.Section,{title:"Status",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{icon:"exclamation-triangle",disabled:!M.override_enabled,content:"Force exterior door",onClick:function(){function R(){return T("force_door")}return R}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"exclamation-triangle",color:M.override_enabled?"red":"",content:"Override",onClick:function(){function R(){return T("toggle_override")}return R}()})],4),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Dock Status",children:(0,e.createComponentVNode)(2,i)}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Docking Hatch",children:A})]})})};k.DockingConsoleSimple=f;var C=function(L,I){var w=(0,a.useBackend)(I),T=w.data;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{title:"Docking Status",children:(0,e.createComponentVNode)(2,i)}),(0,e.createComponentVNode)(2,t.Section,{title:"Airlocks",children:T.airlocks.length?(0,e.createComponentVNode)(2,t.LabeledList,{children:T.airlocks.map(function(M){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{color:M.override_enabled?"bad":"good",label:M.name,children:M.override_enabled?"OVERRIDE ENABLED":"STATUS OK"},M.name)})}):(0,e.createComponentVNode)(2,t.Flex,{height:"100%",mt:"0.5em",children:(0,e.createComponentVNode)(2,t.Flex.Item,{grow:"1",align:"center",textAlign:"center",color:"bad",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"door-closed",mb:"0.5rem",size:"5"}),(0,e.createVNode)(1,"br"),"No airlocks found."]})})})],4)};k.DockingConsoleMulti=C;var b=function(L,I){var w=(0,a.useBackend)(I),T=w.act,M=w.data,A=M.interior_status.state==="open"||M.exterior_status.state==="closed",R=M.exterior_status.state==="open"||M.interior_status.state==="closed";return(0,e.createComponentVNode)(2,t.Section,{title:"Status",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{icon:A?"arrow-left":"exclamation-triangle",content:A?"Cycle To Exterior":"Lock Exterior Door",onClick:function(){function O(){T(A?"cycle_ext_door":"force_ext")}return O}()}),(0,e.createComponentVNode)(2,t.Button,{icon:R?"arrow-right":"exclamation-triangle",content:R?"Cycle To Interior":"Lock Interior Door",onClick:function(){function O(){T(R?"cycle_int_door":"force_int")}return O}()})],0),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Exterior Door Status",children:M.exterior_status.state==="closed"?"Locked":"Open"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Interior Door Status",children:M.interior_status.state==="closed"?"Locked":"Open"})]})})};k.DoorAccessConsole=b;var g=function(L,I){var w=(0,a.useBackend)(I),T=w.act,M=w.data;return(0,e.createFragment)([(0,e.createComponentVNode)(2,s),(0,e.createComponentVNode)(2,t.Section,{title:"Controls",children:[(0,e.createComponentVNode)(2,u),(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"exclamation-triangle",disabled:M.armed,color:M.armed?"bad":"average",content:"ARM",onClick:function(){function A(){return T("manual_arm")}return A}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"exclamation-triangle",disabled:!M.can_force,color:"bad",content:"MANUAL EJECT",onClick:function(){function A(){return T("force_launch")}return A}()})]})]})],4)};k.EscapePodConsole=g;var y=function(L,I){var w=(0,a.useBackend)(I),T=w.data;return(0,e.createFragment)([(0,e.createComponentVNode)(2,s),(0,e.createComponentVNode)(2,t.Section,{title:"Controls",children:(0,e.createComponentVNode)(2,u)})],4)};k.EscapePodBerthConsole=y},23424:function(x,r,n){"use strict";r.__esModule=!0,r.NarrationInput=r.ModeSelector=r.EntitySelection=r.EntityNarrate=r.DisplayDetails=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=r.EntityNarrate=function(){function h(s,l){var u=(0,a.useBackend)(l),i=u.act,c=u.data;return(0,e.createComponentVNode)(2,o.Window,{width:800,height:470,theme:"abstract",resizable:!0,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.Flex,{children:[(0,e.createComponentVNode)(2,t.Flex.Item,{scrollable:!0,grow:2,fill:!0,children:(0,e.createComponentVNode)(2,t.Section,{scrollable:!0,children:(0,e.createComponentVNode)(2,V)})}),(0,e.createComponentVNode)(2,t.Flex.Item,{grow:.25,fill:!0,children:(0,e.createComponentVNode)(2,t.Divider,{vertical:!0})}),(0,e.createComponentVNode)(2,t.Flex.Item,{grow:6.75,fill:!0,children:(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.Flex,{direction:"column",justify:"space-between",children:[(0,e.createComponentVNode)(2,t.Flex.Item,{Flex:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Details",children:(0,e.createComponentVNode)(2,k)})}),(0,e.createComponentVNode)(2,t.Flex.Item,{Flex:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Select Behaviour",children:(0,e.createComponentVNode)(2,S)})}),(0,e.createComponentVNode)(2,t.Flex.Item,{Flex:!0,children:(0,e.createComponentVNode)(2,N)})]})})})]})})})})}return h}(),V=r.EntitySelection=function(){function h(s,l){var u=(0,a.useBackend)(l),i=u.act,c=u.data,d=c.selection_mode,p=c.multi_id_selection,v=c.entity_names;return(0,e.createComponentVNode)(2,t.Flex,{direction:"column",grow:!0,children:(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Choose!",buttons:(0,e.createComponentVNode)(2,t.Button,{selected:d,fill:!0,content:"Multi-Selection",onClick:function(){function f(){return i("change_mode_multi")}return f}()}),children:(0,e.createComponentVNode)(2,t.Tabs,{vertical:!0,children:v.map(function(f){return(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:p.includes(f),onClick:function(){function C(){return i("select_entity",{id_selected:f})}return C}(),children:(0,e.createComponentVNode)(2,t.Box,{inline:!0,children:f})},f)})})})})})}return h}(),k=r.DisplayDetails=function(){function h(s,l){var u=(0,a.useBackend)(l),i=u.act,c=u.data,d=c.selection_mode,p=c.number_mob_selected,v=c.selected_id,f=c.selected_name,C=c.selected_type;return d?(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createVNode)(1,"b",null,"Number of entities selected:",16)," ",p]}):(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createVNode)(1,"b",null,"Selected ID:",16)," ",v," ",(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"b",null,"Selected Name:",16)," ",f," ",(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"b",null,"Selected Type:",16)," ",C," ",(0,e.createVNode)(1,"br")]})}return h}(),S=r.ModeSelector=function(){function h(s,l){var u=(0,a.useBackend)(l),i=u.act,c=u.data,d=c.privacy_select,p=c.mode_select;return(0,e.createComponentVNode)(2,t.Flex,{direction:"row",children:[(0,e.createComponentVNode)(2,t.Flex.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function v(){return i("change_mode_privacy")}return v}(),selected:d,fluid:!0,tooltip:"This button changes whether your narration is loud (any who see/hear) or subtle (range of 1 tile) "+(d?"Click here to disable subtle mode":"Click here to enable subtle mode"),content:d?"Currently: Subtle":"Currently: Loud"})}),(0,e.createComponentVNode)(2,t.Flex.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function v(){return i("change_mode_narration")}return v}(),selected:p,fluid:!0,tooltip:"This button sets your narration to talk audiably or emote visibly "+(p?"Click here to emote visibly.":"Click here to talk audiably."),content:p?"Currently: Emoting":"Currently: Talking"})})]})}return h}(),N=r.NarrationInput=function(){function h(s,l){var u=(0,a.useBackend)(l),i=u.act,c=u.data,d=(0,a.useLocalState)(l,"narration",""),p=d[0],v=d[1];return(0,e.createComponentVNode)(2,t.Section,{title:"Narration Text",buttons:(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function f(){return i("narrate",{message:p})}return f}(),content:"Send Narration"}),children:(0,e.createComponentVNode)(2,t.Flex,{children:(0,e.createComponentVNode)(2,t.Flex.Item,{width:"85%",children:(0,e.createComponentVNode)(2,t.TextArea,{height:"18rem",onChange:function(){function f(C,b){return v(b)}return f}(),value:p||""})})})})}return h}()},42014:function(x,r,n){"use strict";r.__esModule=!0,r.ExonetNode=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=r.ExonetNode=function(){function V(k,S){var N=(0,a.useBackend)(S),h=N.act,s=N.data,l=s.on,u=s.allowPDAs,i=s.allowCommunicators,c=s.allowNewscasters,d=s.logs;return(0,e.createComponentVNode)(2,o.Window,{width:400,height:400,resizable:!0,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,t.Section,{title:"Status",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"power-off",selected:l,content:"Power "+(l?"On":"Off"),onClick:function(){function p(){return h("toggle_power")}return p}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Incoming PDA Messages",children:(0,e.createComponentVNode)(2,t.Button,{icon:"power-off",selected:u,content:u?"Open":"Closed",onClick:function(){function p(){return h("toggle_PDA_port")}return p}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Incoming Communicators",children:(0,e.createComponentVNode)(2,t.Button,{icon:"power-off",selected:i,content:i?"Open":"Closed",onClick:function(){function p(){return h("toggle_communicator_port")}return p}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Incoming Newscaster Content",children:(0,e.createComponentVNode)(2,t.Button,{icon:"power-off",selected:c,content:c?"Open":"Closed",onClick:function(){function p(){return h("toggle_newscaster_port")}return p}()})})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Logging",children:(0,e.createComponentVNode)(2,t.Flex,{wrap:"wrap",children:[d.map(function(p,v){return(0,e.createComponentVNode)(2,t.Flex.Item,{m:"2px",basis:"49%",grow:v%2,children:p},v)}),!d||d.length===0?(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"No logs found."}):null]})})]})})}return V}()},88662:function(x,r,n){"use strict";r.__esModule=!0,r.Materials=r.ExosuitFabricator=void 0;var e=n(58734),a=n(59641),t=n(45445),o=n(62188),m=n(43820),V=n(11790),k=n(11477),S=n(40946),N=n(5339),h;function s(D,z){var U=typeof Symbol!="undefined"&&D[Symbol.iterator]||D["@@iterator"];if(U)return(U=U.call(D)).next.bind(U);if(Array.isArray(D)||(U=l(D))||z&&D&&typeof D.length=="number"){U&&(D=U);var W=0;return function(){return W>=D.length?{done:!0}:{done:!1,value:D[W++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function l(D,z){if(D){if(typeof D=="string")return u(D,z);var U=Object.prototype.toString.call(D).slice(8,-1);if(U==="Object"&&D.constructor&&(U=D.constructor.name),U==="Map"||U==="Set")return Array.from(D);if(U==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(U))return u(D,z)}}function u(D,z){(z==null||z>D.length)&&(z=D.length);for(var U=0,W=new Array(z);UW?{color:p,deficit:z-W}:U>W?{color:d,deficit:z}:z+U>W?{color:d,deficit:z+U-W}:{color:c,deficit:0}},b=function(z,U,W){var K={textColor:c};return Object.keys(W.cost).forEach(function(H){K[H]=C(W.cost[H],U[H],z[H]),K[H].color>K.textColor&&(K.textColor=K[H].color)}),K},g=function(z,U){var W={},K={},H={},Y={};return U.forEach(function(J,q){Y[q]=c,Object.keys(J.cost).forEach(function(oe){W[oe]=W[oe]||0,H[oe]=H[oe]||0,K[oe]=C(J.cost[oe],W[oe],z[oe]),K[oe].color!==c?Y[q] 1&&q 0});return oe.length===0?(0,e.createComponentVNode)(2,V.Box,{textAlign:"center",children:[(0,e.createComponentVNode)(2,V.Icon,{textAlign:"center",size:5,name:"inbox"}),(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"b",null,"No Materials Loaded.",16)]}):(0,e.createComponentVNode)(2,V.Flex,{wrap:"wrap",children:oe.map(function(ae){return(0,e.createComponentVNode)(2,V.Flex.Item,{width:"80px",children:[(0,e.createComponentVNode)(2,w,{name:ae.name,amount:ae.amount,formatsi:!0}),!J&&(0,e.createComponentVNode)(2,V.Box,{mt:1,style:{"text-align":"center"},children:(0,e.createComponentVNode)(2,L,{material:ae})})]},ae.name)||null})})}return D}(),w=function(z,U){var W=z.name,K=z.amount,H=z.formatsi,Y=z.formatmoney,J=z.color,q=z.style,oe="0";return K<1&&K>0?oe=(0,N.toFixed)(K,2):H?oe=(0,m.formatSiUnit)(K,0):Y?oe=(0,m.formatMoney)(K):oe=K,(0,e.createComponentVNode)(2,V.Flex,{direction:"column",align:"center",children:[(0,e.createComponentVNode)(2,V.Flex.Item,{children:(0,e.createComponentVNode)(2,V.Tooltip,{position:"bottom",content:(0,S.toTitleCase)(W),children:(0,e.createComponentVNode)(2,V.Box,{className:(0,a.classes)(["sheetmaterials32x32",i[W]]),position:"relative",style:q})})}),(0,e.createComponentVNode)(2,V.Flex.Item,{children:(0,e.createComponentVNode)(2,V.Box,{textColor:J,style:{"text-align":"center"},children:oe})})]})},T=function(z,U){var W=(0,o.useBackend)(U),K=W.data,H=K.partSets||[],Y=K.buildableParts||{},J=(0,o.useSharedState)(U,"part_tab",H.length?Y[0]:""),q=J[0],oe=J[1];return(0,e.createComponentVNode)(2,V.Tabs,{vertical:!0,children:H.map(function(ae){return!!Y[ae]&&(0,e.createComponentVNode)(2,V.Tabs.Tab,{selected:ae===q,disabled:!Y[ae],onClick:function(){function le(){return oe(ae)}return le}(),children:ae},ae)})})},M=function(z,U){var W=(0,o.useBackend)(U),K=W.data,H=function(Ce){for(var Se=s(Ce),we;!(we=Se()).done;){var pe=we.value;if(J[pe])return pe}return null},Y=K.partSets||[],J=K.buildableParts||[],q=z.queueMaterials,oe=z.materials,ae=(0,o.useSharedState)(U,"part_tab",H(Y)),le=ae[0],he=ae[1],me=(0,o.useSharedState)(U,"search_text",""),Be=me[0],ce=me[1];if(!le||!J[le]){var te=H(Y);if(te)he(te);else return}var ee;return Be?(ee=[],y(Be,J).forEach(function(ie){ie.format=b(oe,q,ie),ee.push(ie)})):(ee={Parts:[]},J[le].forEach(function(ie){if(ie.format=b(oe,q,ie),!ie.subCategory){ee.Parts.push(ie);return}ie.subCategory in ee||(ee[ie.subCategory]=[]),ee[ie.subCategory].push(ie)})),(0,e.createFragment)([(0,e.createComponentVNode)(2,V.Section,{children:(0,e.createComponentVNode)(2,V.Flex,{children:[(0,e.createComponentVNode)(2,V.Flex.Item,{mr:1,children:(0,e.createComponentVNode)(2,V.Icon,{name:"search"})}),(0,e.createComponentVNode)(2,V.Flex.Item,{grow:1,children:(0,e.createComponentVNode)(2,V.Input,{fluid:!0,placeholder:"Search for...",onInput:function(){function ie(Ce,Se){return ce(Se)}return ie}()})})]})}),!!Be&&(0,e.createComponentVNode)(2,A,{name:"Search Results",parts:ee,forceShow:!0,placeholder:"No matching results..."})||Object.keys(ee).map(function(ie){return(0,e.createComponentVNode)(2,A,{name:ie,parts:ee[ie]},ie)})],0)},A=function(z,U){var W=(0,o.useBackend)(U),K=W.act,H=W.data,Y=H.buildingPart,J=z.parts,q=z.name,oe=z.forceShow,ae=z.placeholder,le=(0,o.useSharedState)(U,"display_mats",!1),he=le[0];return(!!J.length||oe)&&(0,e.createComponentVNode)(2,V.Section,{title:q,buttons:(0,e.createComponentVNode)(2,V.Button,{disabled:!J.length,color:"good",content:"Queue All",icon:"plus-circle",onClick:function(){function me(){return K("add_queue_set",{part_list:J.map(function(Be){return Be.id})})}return me}()}),children:[!J.length&&ae,J.map(function(me){return(0,e.createFragment)([(0,e.createComponentVNode)(2,V.Flex,{align:"center",children:[(0,e.createComponentVNode)(2,V.Flex.Item,{children:(0,e.createComponentVNode)(2,V.Button,{disabled:Y||me.format.textColor===p,color:"good",height:"20px",mr:1,icon:"play",onClick:function(){function Be(){return K("build_part",{id:me.id})}return Be}()})}),(0,e.createComponentVNode)(2,V.Flex.Item,{children:(0,e.createComponentVNode)(2,V.Button,{color:"average",height:"20px",mr:1,icon:"plus-circle",onClick:function(){function Be(){return K("add_queue_part",{id:me.id})}return Be}()})}),(0,e.createComponentVNode)(2,V.Flex.Item,{children:(0,e.createComponentVNode)(2,V.Box,{inline:!0,textColor:v[me.format.textColor],children:me.name})}),(0,e.createComponentVNode)(2,V.Flex.Item,{grow:1}),(0,e.createComponentVNode)(2,V.Flex.Item,{children:(0,e.createComponentVNode)(2,V.Button,{icon:"question-circle",transparent:!0,height:"20px",tooltip:"Build Time: "+me.printTime+"s. "+(me.desc||""),tooltipPosition:"left"})})]}),he&&(0,e.createComponentVNode)(2,V.Flex,{mb:2,children:Object.keys(me.cost).map(function(Be){return(0,e.createComponentVNode)(2,V.Flex.Item,{width:"50px",color:v[me.format[Be].color],children:(0,e.createComponentVNode)(2,w,{formatmoney:!0,style:{transform:"scale(0.75) translate(0%, 10%)"},name:Be,amount:me.cost[Be]})},Be)})})],0,me.name)})]})},R=function(z,U){var W=(0,o.useBackend)(U),K=W.act,H=W.data,Y=H.isProcessingQueue,J=H.queue||[],q=z.queueMaterials,oe=z.missingMaterials,ae=z.textColors;return(0,e.createComponentVNode)(2,V.Flex,{height:"100%",width:"100%",direction:"column",children:[(0,e.createComponentVNode)(2,V.Flex.Item,{height:0,grow:1,children:(0,e.createComponentVNode)(2,V.Section,{height:"100%",title:"Queue",overflowY:"auto",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,V.Button.Confirm,{disabled:!J.length,color:"bad",icon:"minus-circle",content:"Clear Queue",onClick:function(){function le(){return K("clear_queue")}return le}()}),!!Y&&(0,e.createComponentVNode)(2,V.Button,{disabled:!J.length,content:"Stop",icon:"stop",onClick:function(){function le(){return K("stop_queue")}return le}()})||(0,e.createComponentVNode)(2,V.Button,{disabled:!J.length,content:"Build Queue",icon:"play",onClick:function(){function le(){return K("build_queue")}return le}()})],0),children:(0,e.createComponentVNode)(2,V.Flex,{direction:"column",height:"100%",children:[(0,e.createComponentVNode)(2,V.Flex.Item,{children:(0,e.createComponentVNode)(2,P)}),(0,e.createComponentVNode)(2,V.Flex.Item,{children:(0,e.createComponentVNode)(2,_,{textColors:ae})})]})})}),!!J.length&&(0,e.createComponentVNode)(2,V.Flex.Item,{mt:1,children:(0,e.createComponentVNode)(2,V.Section,{title:"Material Cost",children:(0,e.createComponentVNode)(2,O,{queueMaterials:q,missingMaterials:oe})})})]})},O=function(z,U){var W=z.queueMaterials,K=z.missingMaterials;return(0,e.createComponentVNode)(2,V.Flex,{wrap:"wrap",children:Object.keys(W).map(function(H){return(0,e.createComponentVNode)(2,V.Flex.Item,{width:"12%",children:[(0,e.createComponentVNode)(2,w,{formatmoney:!0,name:H,amount:W[H]}),!!K[H]&&(0,e.createComponentVNode)(2,V.Box,{textColor:"bad",style:{"text-align":"center"},children:(0,m.formatMoney)(K[H])})]},H)})})},_=function(z,U){var W=(0,o.useBackend)(U),K=W.act,H=W.data,Y=z.textColors,J=H.queue||[];return J.length?J.map(function(q,oe){return(0,e.createComponentVNode)(2,V.Box,{children:(0,e.createComponentVNode)(2,V.Flex,{mb:.5,direction:"column",justify:"center",wrap:"wrap",height:"20px",inline:!0,children:[(0,e.createComponentVNode)(2,V.Flex.Item,{basis:"content",children:(0,e.createComponentVNode)(2,V.Button,{height:"20px",mr:1,icon:"minus-circle",color:"bad",onClick:function(){function ae(){return K("del_queue_part",{index:oe+1})}return ae}()})}),(0,e.createComponentVNode)(2,V.Flex.Item,{children:(0,e.createComponentVNode)(2,V.Box,{inline:!0,textColor:v[Y[oe]],children:q.name})})]})},q.name)}):(0,e.createFragment)([(0,e.createTextVNode)("No parts in queue.")],4)},P=function(z,U){var W=(0,o.useBackend)(U),K=W.data,H=K.buildingPart,Y=K.storedPart;if(Y){var J=Y.name;return(0,e.createComponentVNode)(2,V.Box,{children:(0,e.createComponentVNode)(2,V.ProgressBar,{minValue:0,maxValue:1,value:1,color:"average",children:(0,e.createComponentVNode)(2,V.Flex,{children:[(0,e.createComponentVNode)(2,V.Flex.Item,{children:J}),(0,e.createComponentVNode)(2,V.Flex.Item,{grow:1}),(0,e.createComponentVNode)(2,V.Flex.Item,{children:"Fabricator outlet obstructed..."})]})})})}if(H){var q=H.name,oe=H.duration,ae=H.printTime,le=Math.ceil(oe/10);return(0,e.createComponentVNode)(2,V.Box,{children:(0,e.createComponentVNode)(2,V.ProgressBar,{minValue:0,maxValue:ae,value:oe,children:(0,e.createComponentVNode)(2,V.Flex,{children:[(0,e.createComponentVNode)(2,V.Flex.Item,{children:q}),(0,e.createComponentVNode)(2,V.Flex.Item,{grow:1}),(0,e.createComponentVNode)(2,V.Flex.Item,{children:le>=0&&le+"s"||"Dispensing..."})]})})})}}},61697:function(x,r,n){"use strict";r.__esModule=!0,r.Farmbot=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=r.Farmbot=function(){function V(k,S){var N=(0,a.useBackend)(S),h=N.act,s=N.data,l=s.on,u=s.locked,i=s.tank,c=s.tankVolume,d=s.tankMaxVolume,p=s.waters_trays,v=s.refills_water,f=s.uproots_weeds,C=s.replaces_nutriment,b=s.collects_produce,g=s.removes_dead;return(0,e.createComponentVNode)(2,o.Window,{width:450,height:540,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,t.Section,{title:"Automatic Hydroponic Assistance Unit v2.0",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"power-off",selected:l,onClick:function(){function y(){return h("power")}return y}(),children:l?"On":"Off"}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Water Tank",children:i&&(0,e.createComponentVNode)(2,t.ProgressBar,{value:c,maxValue:d,children:[c," / ",d]})||(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"No water tank detected."})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Behavior Controls",color:u?"good":"bad",children:u?"Locked":"Unlocked"})]})}),!u&&(0,e.createComponentVNode)(2,t.Section,{title:"Behavior Controls",children:[(0,e.createComponentVNode)(2,t.Section,{level:2,title:"Watering Controls",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Water plants",children:(0,e.createComponentVNode)(2,t.Button,{icon:p?"toggle-on":"toggle-off",selected:p,onClick:function(){function y(){return h("water")}return y}(),children:p?"Yes":"No"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Refill watertank",children:(0,e.createComponentVNode)(2,t.Button,{icon:v?"toggle-on":"toggle-off",selected:v,onClick:function(){function y(){return h("refill")}return y}(),children:v?"Yes":"No"})})]})}),(0,e.createComponentVNode)(2,t.Section,{level:2,title:"Weeding controls",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Weed plants",children:(0,e.createComponentVNode)(2,t.Button,{icon:f?"toggle-on":"toggle-off",selected:f,onClick:function(){function y(){return h("weed")}return y}(),children:f?"Yes":"No"})})})}),(0,e.createComponentVNode)(2,t.Section,{level:2,title:"Nutriment controls",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Replace fertilizer",children:(0,e.createComponentVNode)(2,t.Button,{icon:C?"toggle-on":"toggle-off",selected:C,onClick:function(){function y(){return h("replacenutri")}return y}(),children:C?"Yes":"No"})})})})]})||null]})})}return V}()},27319:function(x,r,n){"use strict";r.__esModule=!0,r.FaxContent=r.Fax=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=n(39813),V=n(50947),k=r.Fax=function(){function s(l,u){var i=(0,a.useBackend)(u),c=i.data,d=c.authenticated,p=c.copyItem,v=340;return p&&(v=358),d?(0,e.createComponentVNode)(2,o.Window,{width:600,height:v,resizable:!0,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,N),(0,e.createComponentVNode)(2,m.LoginInfo),(0,e.createComponentVNode)(2,S)]})}):(0,e.createComponentVNode)(2,o.Window,{width:600,height:250,resizable:!0,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,N),(0,e.createComponentVNode)(2,V.LoginScreen,{machineType:"Fax"})]})})}return s}(),S=r.FaxContent=function(){function s(l,u){var i=(0,a.useBackend)(u),c=i.act,d=i.data,p=d.bossName,v=d.copyItem,f=d.cooldown,C=d.destination,b=d.adminDepartments,g=new Set(b);return(0,e.createComponentVNode)(2,t.Section,{children:[!!f&&(0,e.createComponentVNode)(2,t.NoticeBox,{info:!0,children:"Transmitter arrays realigning. Please stand by."}),(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Network",children:[p," Quantum Entanglement Network"]})}),v&&(0,e.createComponentVNode)(2,t.Box,{mt:1,children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Currently Sending",children:[v," ",(0,e.createComponentVNode)(2,t.Button,{icon:"pen",onClick:function(){function y(){return c("rename")}return y}(),tooltip:"Renames the paper. This changes its preview in staff chat when sending to centcom/job board/supply (admin departments). It is advisable to name your faxes something self-explanatory for quick response."})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Sending To",children:(0,e.createComponentVNode)(2,t.Button,{icon:"map-marker-alt",content:C,onClick:function(){function y(){return c("dept")}return y}()})})]}),(0,e.createComponentVNode)(2,t.Button,{icon:"share-square",onClick:function(){function y(){return c("send")}return y}(),content:"Send",fluid:!0})]})||(0,e.createComponentVNode)(2,t.Box,{mt:1,children:"Please insert item to transmit."}),(0,e.createComponentVNode)(2,h)]})}return s}(),N=function(l,u){var i=(0,a.useBackend)(u),c=i.act,d=i.data,p=d.copyItem;return p?(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"eject",onClick:function(){function v(){return c("remove")}return v}(),content:"Remove Item"})}):null},h=function(l,u){var i=(0,a.useBackend)(u),c=i.act,d=i.data,p=d.adminDepartments,v=d.destination,f=d.copyItem,C=new Set(p),b="1rem";return f&&(b="1.5rem"),!f||f&&C.has(v)?(0,e.createComponentVNode)(2,t.Box,{mt:"1.5rem",children:[(0,e.createVNode)(1,"b",null,"Or submit an automated staff request.",16)," ",(0,e.createVNode)(1,"br")," ",(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"i",null,[(0,e.createTextVNode)("The automated staff request form automatically populates the company job board ((sends to discord, but does not ping.)) without requiring intervention from central command clerks and officers. "),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("It also works without requiring a written request to be composed.")],4),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Box,{mt:"1.5rem",children:(0,e.createComponentVNode)(2,t.Button,{icon:"share-square",onClick:function(){function g(){return c("send_automated_staff_request")}return g}(),content:"Send Automated Staff Request",fluid:!0})})]}):null}},51193:function(x,r,n){"use strict";r.__esModule=!0,r.FilingCabinet=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=r.FilingCabinet=function(){function V(k,S){var N=(0,a.useBackend)(S),h=N.act,s=N.data,l=s.cabinet_name,u=s.contents,i=s.contents_ref;return(0,e.createComponentVNode)(2,o.Window,{title:l||"Filing Cabinet",width:350,height:300,children:(0,e.createComponentVNode)(2,o.Window.Content,{backgroundColor:"#B88F3D",scrollable:!0,children:[u.map(function(c,d){return(0,e.createComponentVNode)(2,t.Flex,{color:"black",backgroundColor:"white",style:{padding:"2px"},mb:.5,children:[(0,e.createComponentVNode)(2,t.Flex.Item,{align:"center",grow:1,children:(0,e.createComponentVNode)(2,t.Box,{align:"center",children:c})}),(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"eject",onClick:function(){function p(){return h("remove_object",{ref:i[d]})}return p}()})})]},i[d])}),u.length===0&&(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.Box,{color:"white",align:"center",children:["The ",l," is empty!"]})})]})})}return V}()},19860:function(x,r,n){"use strict";r.__esModule=!0,r.Floorbot=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=r.Floorbot=function(){function V(k,S){var N=(0,a.useBackend)(S),h=N.act,s=N.data,l=s.on,u=s.open,i=s.locked,c=s.vocal,d=s.amount,p=s.possible_bmode,v=s.improvefloors,f=s.eattiles,C=s.maketiles,b=s.bmode;return(0,e.createComponentVNode)(2,o.Window,{width:390,height:310,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,t.Section,{title:"Automatic Station Floor Repairer v2.0",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"power-off",selected:l,onClick:function(){function g(){return h("start")}return g}(),children:l?"On":"Off"}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Tiles Left",children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:d})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Maintenance Panel",color:u?"bad":"good",children:u?"Open":"Closed"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Behavior Controls",color:i?"good":"bad",children:i?"Locked":"Unlocked"})]})}),!i&&(0,e.createComponentVNode)(2,t.Section,{title:"Behavior Controls",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Speaker",children:(0,e.createComponentVNode)(2,t.Button,{icon:c?"toggle-on":"toggle-off",selected:c,onClick:function(){function g(){return h("vocal")}return g}(),children:c?"On":"Off"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Improves Floors",children:(0,e.createComponentVNode)(2,t.Button,{icon:v?"toggle-on":"toggle-off",selected:v,onClick:function(){function g(){return h("improve")}return g}(),children:v?"On":"Off"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Finds Tiles",children:(0,e.createComponentVNode)(2,t.Button,{icon:f?"toggle-on":"toggle-off",selected:f,onClick:function(){function g(){return h("tiles")}return g}(),children:f?"On":"Off"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Makes Metal Sheets into Tiles",children:(0,e.createComponentVNode)(2,t.Button,{icon:C?"toggle-on":"toggle-off",selected:C,onClick:function(){function g(){return h("make")}return g}(),children:C?"On":"Off"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Bridge Mode",children:(0,e.createComponentVNode)(2,t.Dropdown,{over:!0,width:"100%",placeholder:"Disabled",selected:b,options:p,onSelected:function(){function g(y){return h("bridgemode",{dir:y})}return g}()})})]})})||null]})})}return V}()},19592:function(x,r,n){"use strict";r.__esModule=!0,r.GasPump=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=r.GasPump=function(){function V(k,S){var N=(0,a.useBackend)(S),h=N.act,s=N.data,l=s.on,u=s.pressure_set,i=s.last_flow_rate,c=s.last_power_draw,d=s.max_power_draw;return(0,e.createComponentVNode)(2,o.Window,{width:470,height:290,resizable:!0,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Status",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Flow Rate",children:[(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:i/10})," L/s"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Load",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:c,minValue:0,maxValue:d,color:c =100?p="Running":!l&&u>0&&(p="DISCHARGING"),(0,e.createComponentVNode)(2,o.Window,{width:500,height:400,resizable:!0,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Status",buttons:(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"exclamation-triangle",confirmIcon:"exclamation-triangle",color:"red",content:"Toggle Breaker",confirmContent:l?"This will disable gravity!":"This will enable gravity!",onClick:function(){function v(){return h("gentoggle")}return v}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Breaker Setting",children:l?"Generator Enabled":"Generator Disabled"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Charge Mode",children:["Generator ",p]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Charge Status",children:[u,"%"]})]})})})})}return V}()},462:function(x,r,n){"use strict";r.__esModule=!0,r.GuestPass=void 0;var e=n(58734),a=n(45445),t=n(62188),o=n(11790),m=n(11477),V=r.GuestPass=function(){function k(S,N){var h=(0,t.useBackend)(N),s=h.act,l=h.data,u=l.access,i=l.area,c=l.giver,d=l.giveName,p=l.reason,v=l.duration,f=l.mode,C=l.log,b=l.uid;return(0,e.createComponentVNode)(2,m.Window,{width:500,height:520,resizable:!0,children:(0,e.createComponentVNode)(2,m.Window.Content,{scrollable:!0,children:f===1&&(0,e.createComponentVNode)(2,o.Section,{title:"Activity Log",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"scroll",content:"Activity Log",selected:!0,onClick:function(){function g(){return s("mode",{mode:0})}return g}()}),children:[(0,e.createComponentVNode)(2,o.Button,{icon:"print",content:"Print",onClick:function(){function g(){return s("print")}return g}(),fluid:!0,mb:1}),(0,e.createComponentVNode)(2,o.Section,{level:2,title:"Logs",children:C.length&&C.map(function(g){return(0,e.createVNode)(1,"div",null,null,1,{dangerouslySetInnerHTML:{__html:g}},g)})||(0,e.createComponentVNode)(2,o.Box,{children:"No logs."})})]})||(0,e.createComponentVNode)(2,o.Section,{title:"Guest pass terminal #"+b,buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"scroll",content:"Activity Log",onClick:function(){function g(){return s("mode",{mode:1})}return g}()}),children:[(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Issuing ID",children:(0,e.createComponentVNode)(2,o.Button,{content:c||"Insert ID",onClick:function(){function g(){return s("id")}return g}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Issued To",children:(0,e.createComponentVNode)(2,o.Button,{content:d,onClick:function(){function g(){return s("giv_name")}return g}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Reason",children:(0,e.createComponentVNode)(2,o.Button,{content:p,onClick:function(){function g(){return s("reason")}return g}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Duration (minutes)",children:(0,e.createComponentVNode)(2,o.Button,{content:v,onClick:function(){function g(){return s("duration")}return g}()})})]}),(0,e.createComponentVNode)(2,o.Button.Confirm,{icon:"check",fluid:!0,content:"Issue Pass",onClick:function(){function g(){return s("issue")}return g}()}),(0,e.createComponentVNode)(2,o.Section,{title:"Access",level:2,children:(0,a.sortBy)(function(g){return g.area_name})(i).map(function(g){return(0,e.createComponentVNode)(2,o.Button.Checkbox,{checked:g.on,content:g.area_name,onClick:function(){function y(){return s("access",{access:g.area})}return y}()},g.area)})})]})})})}return k}()},98915:function(x,r,n){"use strict";r.__esModule=!0,r.GyrotronControlContent=r.GyrotronControl=void 0;var e=n(58734),a=n(62188),t=n(11477),o=n(11790),m=r.GyrotronControl=function(){function k(){return(0,e.createComponentVNode)(2,t.Window,{width:627,height:700,resizable:!0,children:(0,e.createComponentVNode)(2,t.Window.Content,{children:(0,e.createComponentVNode)(2,V)})})}return k}(),V=r.GyrotronControlContent=function(){function k(S,N){var h=(0,a.useBackend)(N),s=h.act,l=h.data,u=l.gyros;return(0,e.createComponentVNode)(2,o.Section,{title:"Gyrotrons",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"pencil-alt",content:"Set Tag",onClick:function(){function i(){return s("set_tag")}return i}()}),children:(0,e.createComponentVNode)(2,o.Table,{children:[(0,e.createComponentVNode)(2,o.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Name"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Position"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Status"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Fire Delay"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Strength"})]}),u.map(function(i){return(0,e.createComponentVNode)(2,o.Table.Row,{children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:i.name}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:[i.x,", ",i.y,", ",i.z]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Button,{icon:"power-off",content:i.active?"Online":"Offline",selected:i.active,disabled:!i.deployed,onClick:function(){function c(){return s("toggle_active",{gyro:i.ref})}return c}()})}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Knob,{forcedInputWidth:"60px",size:1.25,color:!!i.active&&"yellow",value:i.fire_delay,unit:"decisecond(s)",minValue:1,maxValue:60,stepPixelSize:1,onDrag:function(){function c(d,p){return s("set_rate",{gyro:i.ref,rate:p})}return c}()})}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Knob,{forcedInputWidth:"60px",size:1.25,color:!!i.active&&"yellow",value:i.strength,unit:"penta-dakw",minValue:1,maxValue:50,stepPixelSize:1,onDrag:function(){function c(d,p){return s("set_str",{gyro:i.ref,str:p})}return c}()})})]},i.name)})]})})}return k}()},14289:function(x,r,n){"use strict";r.__esModule=!0,r.Holodeck=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=r.Holodeck=function(){function V(k,S){var N=(0,a.useBackend)(S),h=N.act,s=N.data,l=s.supportedPrograms,u=s.restrictedPrograms,i=s.currentProgram,c=s.isSilicon,d=s.safetyDisabled,p=s.emagged,v=s.gravity,f=l;return d&&(f=f.concat(u)),(0,e.createComponentVNode)(2,o.Window,{width:400,height:610,resizable:!0,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,t.Section,{title:"Programs",children:f.map(function(C){return(0,e.createComponentVNode)(2,t.Button,{color:u.indexOf(C)!==-1?"bad":null,icon:"eye",content:C,selected:i===C,fluid:!0,onClick:function(){function b(){return h("program",{program:C})}return b}()},C)})}),!!c&&(0,e.createComponentVNode)(2,t.Section,{title:"Override",children:(0,e.createComponentVNode)(2,t.Button,{icon:"exclamation-triangle",fluid:!0,disabled:p,color:d?"good":"bad",onClick:function(){function C(){return h("AIoverride")}return C}(),children:[!!p&&"Error, unable to control. ",d?"Enable Safeties":"Disable Safeties"]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Controls",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Safeties",children:d?(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:"DISABLED"}):(0,e.createComponentVNode)(2,t.Box,{color:"good",children:"ENABLED"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Gravity",children:(0,e.createComponentVNode)(2,t.Button,{icon:"user-astronaut",selected:v,onClick:function(){function C(){return h("gravity")}return C}(),children:v?"Enabled":"Disabled"})})]})})]})})}return V}()},46065:function(x,r,n){"use strict";r.__esModule=!0,r.ICAssembly=void 0;var e=n(58734),a=n(5339),t=n(62188),o=n(11790),m=n(11477),V=n(43820),k=r.ICAssembly=function(){function N(h,s){var l=(0,t.useBackend)(s),u=l.act,i=l.data,c=i.total_parts,d=i.max_components,p=i.total_complexity,v=i.max_complexity,f=i.battery_charge,C=i.battery_max,b=i.net_power,g=i.unremovable_circuits,y=i.removable_circuits,B=function(){function I(){return u("remove_cell")}return I}(),L=function(){function I(){return u("rename")}return I}();return(0,e.createComponentVNode)(2,m.Window,{width:600,height:380,resizable:!0,children:(0,e.createComponentVNode)(2,m.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,o.Section,{title:"Status",buttons:[(0,e.createComponentVNode)(2,o.Button,{icon:"eye",onClick:B,children:"Remove Battery"}),(0,e.createComponentVNode)(2,o.Button,{icon:"eye",onClick:L,children:"Rename"})],children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Space in Assembly",children:(0,e.createComponentVNode)(2,o.ProgressBar,{ranges:{good:[0,.25],average:[.5,.75],bad:[.75,1]},value:c/d,maxValue:1,children:[c," / ",d," (",(0,a.round)(c/d*100,1),"%)"]})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Complexity",children:(0,e.createComponentVNode)(2,o.ProgressBar,{ranges:{good:[0,.25],average:[.5,.75],bad:[.75,1]},value:p/v,maxValue:1,children:[p," / ",v," (",(0,a.round)(p/v*100,1),"%)"]})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Cell Charge",children:f&&(0,e.createComponentVNode)(2,o.ProgressBar,{ranges:{bad:[0,.25],average:[.5,.75],good:[.75,1]},value:f/C,maxValue:1,children:[f," / ",C," (",(0,a.round)(f/C*100,1),"%)"]})||(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"No cell detected."})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Net Energy",children:b===0&&"0 W/s"||(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:b,format:function(){function I(w){return"-"+(0,V.formatPower)(Math.abs(w))+"/s"}return I}()})})]})}),g.length&&(0,e.createComponentVNode)(2,S,{title:"Built-in Components",circuits:g})||null,y.length&&(0,e.createComponentVNode)(2,S,{title:"Removable Components",circuits:y})||null]})})}return N}(),S=function(h,s){var l=(0,t.useBackend)(s),u=l.act,i=h.title,c=h.circuits;return(0,e.createComponentVNode)(2,o.Section,{title:i,children:(0,e.createComponentVNode)(2,o.LabeledList,{children:c.map(function(d){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:d.name,children:[(0,e.createComponentVNode)(2,o.Button,{icon:"eye",onClick:function(){function p(){return u("open_circuit",{ref:d.ref})}return p}(),children:"View"}),(0,e.createComponentVNode)(2,o.Button,{icon:"eye",onClick:function(){function p(){return u("rename_circuit",{ref:d.ref})}return p}(),children:"Rename"}),(0,e.createComponentVNode)(2,o.Button,{icon:"eye",onClick:function(){function p(){return u("scan_circuit",{ref:d.ref})}return p}(),children:"Debugger Scan"}),(0,e.createComponentVNode)(2,o.Button,{icon:"eye",onClick:function(){function p(){return u("remove_circuit",{ref:d.ref})}return p}(),children:"Remove"}),(0,e.createComponentVNode)(2,o.Button,{icon:"eye",onClick:function(){function p(){return u("bottom_circuit",{ref:d.ref})}return p}(),children:"Move to Bottom"})]},d.ref)})})})}},95599:function(x,r,n){"use strict";r.__esModule=!0,r.ICCircuit=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=n(40946),V=n(43820),k=r.ICCircuit=function(){function h(s,l){var u=(0,a.useBackend)(l),i=u.act,c=u.data,d=c.name,p=c.desc,v=c.displayed_name,f=c.removable,C=c.complexity,b=c.power_draw_idle,g=c.power_draw_per_use,y=c.extended_desc,B=c.inputs,L=c.outputs,I=c.activators;return(0,e.createComponentVNode)(2,o.Window,{width:600,height:400,resizable:!0,title:v,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,t.Section,{title:"Stats",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function w(){return i("rename")}return w}(),children:"Rename"}),(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function w(){return i("scan")}return w}(),children:"Scan with Device"}),(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function w(){return i("remove")}return w}(),children:"Remove"})],4),children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Complexity",children:C}),b&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power Draw (Idle)",children:(0,V.formatPower)(b)})||null,g&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power Draw (Active)",children:(0,V.formatPower)(g)})||null]}),y]}),(0,e.createComponentVNode)(2,t.Section,{title:"Circuit",children:[(0,e.createComponentVNode)(2,t.Flex,{textAlign:"center",spacing:1,children:[B.length&&(0,e.createComponentVNode)(2,t.Flex.Item,{grow:1,children:(0,e.createComponentVNode)(2,t.Section,{title:"Inputs",children:(0,e.createComponentVNode)(2,S,{list:B})})})||null,(0,e.createComponentVNode)(2,t.Flex.Item,{basis:B.length&&L.length?"33%":B.length||L.length?"45%":"100%",children:(0,e.createComponentVNode)(2,t.Section,{title:v,mb:1,children:(0,e.createComponentVNode)(2,t.Box,{children:p})})}),L.length&&(0,e.createComponentVNode)(2,t.Flex.Item,{grow:1,children:(0,e.createComponentVNode)(2,t.Section,{title:"Outputs",children:(0,e.createComponentVNode)(2,S,{list:L})})})||null]}),(0,e.createComponentVNode)(2,t.Section,{title:"Triggers",children:I.map(function(w){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:w.name,children:[(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function T(){return i("pin_name",{pin:w.ref})}return T}(),children:w.pulse_out?" ":" "}),(0,e.createComponentVNode)(2,N,{pin:w})]},w.name)})})]})]})})}return h}(),S=function(s,l){var u=(0,a.useBackend)(l),i=u.act,c=s.list;return c.map(function(d){return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function p(){return i("pin_name",{pin:d.ref})}return p}(),children:[(0,m.decodeHtmlEntities)(d.type),": ",d.name]}),(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function p(){return i("pin_data",{pin:d.ref})}return p}(),children:d.data}),(0,e.createComponentVNode)(2,N,{pin:d})]},d.ref)})},N=function(s,l){var u=(0,a.useBackend)(l),i=u.act,c=s.pin;return c.linked.map(function(d){return(0,e.createComponentVNode)(2,t.Box,{inline:!0,children:[(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function p(){return i("pin_unwire",{pin:c.ref,link:d.ref})}return p}(),children:d.name}),"@\xA0",(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function p(){return i("examine",{ref:d.holder_ref})}return p}(),children:d.holder_name})]},d.ref)})}},82723:function(x,r,n){"use strict";r.__esModule=!0,r.ICDetailer=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=n(40946),V=r.ICDetailer=function(){function k(S,N){var h=(0,a.useBackend)(N),s=h.act,l=h.data,u=l.detail_color,i=l.color_list;return(0,e.createComponentVNode)(2,o.Window,{width:420,height:254,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:Object.keys(i).map(function(c,d){return(0,e.createComponentVNode)(2,t.Button,{ml:0,mr:0,mb:-.4,mt:0,tooltip:(0,m.toTitleCase)(c),tooltipPosition:d%6===5?"left":"right",height:"64px",width:"64px",onClick:function(){function p(){return s("change_color",{color:c})}return p}(),style:i[c]===u?{border:"4px solid black","border-radius":0}:{"border-radius":0},backgroundColor:i[c]},c)})})})})}return k}()},15875:function(x,r,n){"use strict";r.__esModule=!0,r.ICPrinter=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=n(45445),V=r.ICPrinter=function(){function N(h,s){var l=(0,a.useBackend)(s),u=l.act,i=l.data,c=i.metal,d=i.max_metal,p=i.metal_per_sheet,v=i.debug,f=i.upgraded,C=i.can_clone,b=i.assembly_to_clone,g=i.categories;return(0,e.createComponentVNode)(2,o.Window,{width:600,height:630,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,t.Section,{title:"Status",children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Metal",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:c,maxValue:d,children:[c/p," / ",d/p," sheets"]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Circuits Available",children:f?"Advanced":"Regular"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Assembly Cloning",children:C?"Available":"Unavailable"})]}),(0,e.createComponentVNode)(2,t.Box,{mt:1,children:"Note: A red component name means that the printer must be upgraded to create that component."})]}),(0,e.createComponentVNode)(2,S)]})})}return N}(),k=function(h,s){return!(!h.can_build||h.cost>s.metal)},S=function(h,s){var l=(0,a.useBackend)(s),u=l.act,i=l.data,c=i.categories,d=i.debug,p=(0,a.useSharedState)(s,"categoryTarget",null),v=p[0],f=p[1],C=(0,m.filter)(function(b){return b.name===v})(c)[0];return(0,e.createComponentVNode)(2,t.Section,{title:"Circuits",children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{mr:2,children:(0,e.createComponentVNode)(2,t.Tabs,{vertical:!0,children:(0,m.sortBy)(function(b){return b.name})(c).map(function(b){return(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:v===b.name,onClick:function(){function g(){return f(b.name)}return g}(),children:b.name},b.name)})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:C&&(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,m.sortBy)(function(b){return b.name})(C.items).map(function(b){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:b.name,labelColor:b.can_build?"good":"bad",buttons:(0,e.createComponentVNode)(2,t.Button,{disabled:!k(b,i),icon:"print",onClick:function(){function g(){return u("build",{build:b.path})}return g}(),children:"Print"}),children:b.desc},b.name)})})})||"No category selected."})]})})}},89724:function(x,r,n){"use strict";r.__esModule=!0,r.IDCard=void 0;var e=n(58734),a=n(11790),t=n(62188),o=n(11477),m=n(70237),V=r.IDCard=function(){function k(S,N){var h=(0,t.useBackend)(N),s=h.data,l=s.registered_name,u=s.sex,i=s.species,c=s.age,d=s.assignment,p=s.fingerprint_hash,v=s.blood_type,f=s.dna_hash,C=s.photo_front,b=[{name:"Sex",val:u},{name:"Species",val:i},{name:"Age",val:c},{name:"Blood Type",val:v},{name:"Fingerprint",val:p},{name:"DNA Hash",val:f}];return(0,e.createComponentVNode)(2,o.Window,{width:470,height:250,resizable:!0,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,a.Section,{children:[(0,e.createComponentVNode)(2,a.Flex,{children:[(0,e.createComponentVNode)(2,a.Flex.Item,{basis:"25%",textAlign:"left",children:(0,e.createComponentVNode)(2,a.Box,{inline:!0,style:{width:"101px",height:"120px",overflow:"hidden",outline:"2px solid #4972a1"},children:C&&(0,e.createVNode)(1,"img",null,null,1,{src:C.substr(1,C.length-1),style:{width:"300px","margin-left":"-94px","-ms-interpolation-mode":"nearest-neighbor"}})||(0,e.createComponentVNode)(2,a.Icon,{name:"user",size:8,ml:1.5,mt:2.5})})}),(0,e.createComponentVNode)(2,a.Flex.Item,{basis:0,grow:1,children:(0,e.createComponentVNode)(2,a.LabeledList,{children:b.map(function(g){return(0,e.createComponentVNode)(2,a.LabeledList.Item,{label:g.name,children:g.val},g.name)})})})]}),(0,e.createComponentVNode)(2,a.Flex,{className:"IDCard__NamePlate",align:"center",justify:"space-around",children:[(0,e.createComponentVNode)(2,a.Flex.Item,{children:(0,e.createComponentVNode)(2,a.Box,{textAlign:"center",children:l})}),(0,e.createComponentVNode)(2,a.Flex.Item,{children:(0,e.createComponentVNode)(2,a.Box,{textAlign:"center",children:(0,e.createComponentVNode)(2,m.RankIcon,{rank:d})})}),(0,e.createComponentVNode)(2,a.Flex.Item,{children:(0,e.createComponentVNode)(2,a.Box,{textAlign:"center",children:d})})]})]})})})}return k}()},85418:function(x,r,n){"use strict";r.__esModule=!0,r.IdentificationComputerRegions=r.IdentificationComputerPrinting=r.IdentificationComputerContent=r.IdentificationComputerAccessModification=r.IdentificationComputer=void 0;var e=n(58734),a=n(45445),t=n(62188),o=n(11790),m=n(11477),V=n(40946),k=n(68285),S=r.IdentificationComputer=function(){function u(){return(0,e.createComponentVNode)(2,m.Window,{width:600,height:700,children:(0,e.createComponentVNode)(2,m.Window.Content,{resizable:!0,children:(0,e.createComponentVNode)(2,N)})})}return u}(),N=r.IdentificationComputerContent=function(){function u(i,c){var d=(0,t.useBackend)(c),p=d.act,v=d.data,f=i.ntos,C=v.mode,b=v.has_modify,g=v.printing,y=(0,e.createComponentVNode)(2,s,{ntos:f});return f&&!v.have_id_slot?y=(0,e.createComponentVNode)(2,k.CrewManifestContent):g?y=(0,e.createComponentVNode)(2,h):C===1&&(y=(0,e.createComponentVNode)(2,k.CrewManifestContent)),(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Tabs,{children:[(!f||!!v.have_id_slot)&&(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"home",selected:C===0,onClick:function(){function B(){return p("mode",{mode_target:0})}return B}(),children:"Access Modification"}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"home",selected:C===1,onClick:function(){function B(){return p("mode",{mode_target:1})}return B}(),children:"Crew Manifest"}),!f||!!v.have_printer&&(0,e.createComponentVNode)(2,o.Tabs.Tab,{float:"right",icon:"print",onClick:function(){function B(){return p("print")}return B}(),disabled:!C&&!b,color:"",children:"Print"})]}),y],0)}return u}(),h=r.IdentificationComputerPrinting=function(){function u(i,c){return(0,e.createComponentVNode)(2,o.Section,{title:"Printing",children:"Please wait..."})}return u}(),s=r.IdentificationComputerAccessModification=function(){function u(i,c){var d=(0,t.useBackend)(c),p=d.act,v=d.data,f=i.ntos,C=v.station_name,b=v.target_name,g=v.target_owner,y=v.scan_name,B=v.authenticated,L=v.has_modify,I=v.account_number,w=v.centcom_access,T=v.all_centcom_access,M=v.regions,A=v.id_rank,R=v.departments;return(0,e.createComponentVNode)(2,o.Section,{title:"Access Modification",children:[!B&&(0,e.createComponentVNode)(2,o.Box,{italic:!0,mb:1,children:"Please insert the IDs into the terminal to proceed."}),(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Target Identitity",children:(0,e.createComponentVNode)(2,o.Button,{icon:"eject",fluid:!0,content:b,onClick:function(){function O(){return p("modify")}return O}()})}),!f&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Authorized Identitity",children:(0,e.createComponentVNode)(2,o.Button,{icon:"eject",fluid:!0,content:y,onClick:function(){function O(){return p("scan")}return O}()})})]}),!!B&&!!L&&(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Section,{title:"Details",level:2,children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Registered Name",children:(0,e.createComponentVNode)(2,o.Input,{value:g,fluid:!0,onInput:function(){function O(_,P){return p("reg",{reg:P})}return O}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Account Number",children:(0,e.createComponentVNode)(2,o.Input,{value:I,fluid:!0,onInput:function(){function O(_,P){return p("account",{account:P})}return O}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Dismissals",children:(0,e.createComponentVNode)(2,o.Button.Confirm,{color:"bad",icon:"exclamation-triangle",confirmIcon:"fire",fluid:!0,content:"Dismiss "+g,confirmContent:"You are dismissing "+g+", confirm?",onClick:function(){function O(){return p("terminate")}return O}()})})]})}),(0,e.createComponentVNode)(2,o.Section,{title:"Assignment",level:2,children:(0,e.createComponentVNode)(2,o.Table,{children:[R.map(function(O){return(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Table.Row,{children:[(0,e.createComponentVNode)(2,o.Table.Cell,{header:!0,verticalAlign:"middle",children:O.department_name}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:O.jobs.map(function(_){return(0,e.createComponentVNode)(2,o.Button,{selected:_.job===A,onClick:function(){function P(){return p("assign",{assign_target:_.job})}return P}(),children:(0,V.decodeHtmlEntities)(_.display_name)},_.job)})})]}),(0,e.createComponentVNode)(2,o.Box,{mt:-1,children:"\xA0"})," "],0,O.department_name)}),(0,e.createComponentVNode)(2,o.Table.Row,{children:[(0,e.createComponentVNode)(2,o.Table.Cell,{header:!0,verticalAlign:"middle",children:"Special"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function O(){return p("assign",{assign_target:"Custom"})}return O}(),children:"Custom"})})]})]})}),!!w&&(0,e.createComponentVNode)(2,o.Section,{title:"Central Command",level:2,children:T.map(function(O){return(0,e.createComponentVNode)(2,o.Box,{children:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,selected:O.allowed,onClick:function(){function _(){return p("access",{access_target:O.ref,allowed:O.allowed})}return _}(),children:(0,V.decodeHtmlEntities)(O.desc)})},O.ref)})})||(0,e.createComponentVNode)(2,o.Section,{title:C,level:2,children:(0,e.createComponentVNode)(2,l,{actName:"access"})})],0)]})}return u}(),l=r.IdentificationComputerRegions=function(){function u(i,c){var d=(0,t.useBackend)(c),p=d.act,v=d.data,f=i.actName,C=v.regions;return(0,e.createComponentVNode)(2,o.Flex,{wrap:"wrap",spacing:1,children:(0,a.sortBy)(function(b){return b.name})(C).map(function(b){return(0,e.createComponentVNode)(2,o.Flex.Item,{mb:1,basis:"content",grow:1,children:(0,e.createComponentVNode)(2,o.Section,{title:b.name,height:"100%",children:(0,a.sortBy)(function(g){return g.desc})(b.accesses).map(function(g){return(0,e.createComponentVNode)(2,o.Box,{children:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,selected:g.allowed,onClick:function(){function y(){return p(f,{access_target:g.ref,allowed:g.allowed})}return y}(),children:(0,V.decodeHtmlEntities)(g.desc)})},g.ref)})})},b.name)})})}return u}()},33835:function(x,r,n){"use strict";r.__esModule=!0,r.InventoryPanel=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=r.InventoryPanel=function(){function V(k,S){var N=(0,a.useBackend)(S),h=N.act,s=N.data,l=s.slots,u=s.internalsValid;return(0,e.createComponentVNode)(2,o.Window,{width:400,height:200,resizable:!0,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:l&&l.length&&l.map(function(i){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:i.name,children:(0,e.createComponentVNode)(2,t.Button,{mb:-1,icon:i.item?"hand-paper":"gift",onClick:function(){function c(){return h(i.act)}return c}(),children:i.item||"Nothing"})},i.name)})})}),u&&(0,e.createComponentVNode)(2,t.Section,{title:"Actions",children:u&&(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"lungs",onClick:function(){function i(){return h("internals")}return i}(),children:"Set Internals"})||null})||null]})})}return V}()},77422:function(x,r,n){"use strict";r.__esModule=!0,r.InventoryPanelHuman=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=r.InventoryPanelHuman=function(){function V(k,S){var N=(0,a.useBackend)(S),h=N.act,s=N.data,l=s.slots,u=s.specialSlots,i=s.internals,c=s.internalsValid,d=s.sensors,p=s.handcuffed,v=s.handcuffedParams,f=s.legcuffed,C=s.legcuffedParams,b=s.accessory;return(0,e.createComponentVNode)(2,o.Window,{width:400,height:600,resizable:!0,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[l&&l.length&&l.map(function(g){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:g.name,children:(0,e.createComponentVNode)(2,t.Button,{mb:-1,icon:g.item?"hand-paper":"gift",onClick:function(){function y(){return h(g.act,g.params)}return y}(),children:g.item||"Nothing"})},g.name)}),(0,e.createComponentVNode)(2,t.LabeledList.Divider),u&&u.length&&u.map(function(g){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:g.name,children:(0,e.createComponentVNode)(2,t.Button,{mb:-1,icon:g.item?"hand-paper":"gift",onClick:function(){function y(){return h(g.act,g.params)}return y}(),children:g.item||"Nothing"})},g.name)})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Actions",children:[(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"running",onClick:function(){function g(){return h("targetSlot",{slot:"splints"})}return g}(),children:"Remove Splints"}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"hand-paper",onClick:function(){function g(){return h("targetSlot",{slot:"pockets"})}return g}(),children:"Empty Pockets"}),c&&(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"lungs",onClick:function(){function g(){return h("targetSlot",{slot:"internals"})}return g}(),children:"Set Internals"})||null,d&&(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"book-medical",onClick:function(){function g(){return h("targetSlot",{slot:"sensors"})}return g}(),children:"Set Sensors"})||null,p&&(0,e.createComponentVNode)(2,t.Button,{fluid:!0,color:"bad",icon:"unlink",onClick:function(){function g(){return h("targetSlot",v)}return g}(),children:"Handcuffed"})||null,f&&(0,e.createComponentVNode)(2,t.Button,{fluid:!0,color:"bad",icon:"unlink",onClick:function(){function g(){return h("targetSlot",C)}return g}(),children:"Legcuffed"})||null,b&&(0,e.createComponentVNode)(2,t.Button,{fluid:!0,color:"bad",icon:"unlink",onClick:function(){function g(){return h("targetSlot",{slot:"tie"})}return g}(),children:"Remove Accessory"})||null]})]})})}return V}()},39749:function(x,r,n){"use strict";r.__esModule=!0,r.IsolationCentrifuge=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=r.IsolationCentrifuge=function(){function V(k,S){var N=(0,a.useBackend)(S),h=N.act,s=N.data,l=s.busy,u=s.antibodies,i=s.pathogens,c=s.is_antibody_sample,d=s.sample_inserted,p=(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"No vial detected."});return d&&(!u&&!i?p=(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"No antibodies or viral strains detected."}):p=(0,e.createFragment)([u?(0,e.createComponentVNode)(2,t.Section,{title:"Antibodies",children:u}):null,i.length?(0,e.createComponentVNode)(2,t.Section,{title:"Pathogens",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:i.map(function(v){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:v.name,children:v.spread_type},v.name)})})}):null],0)),(0,e.createComponentVNode)(2,o.Window,{width:400,height:500,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:l?(0,e.createComponentVNode)(2,t.Section,{title:"The Centrifuge is currently busy.",color:"bad",children:(0,e.createVNode)(1,"center",null,(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:l}),2)}):(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{title:c?"Antibody Sample":"Blood Sample",children:[(0,e.createComponentVNode)(2,t.Flex,{spacing:1,mb:1,children:[(0,e.createComponentVNode)(2,t.Flex.Item,{grow:1,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"print",content:"Print",disabled:!u&&!i.length,onClick:function(){function v(){return h("print")}return v}()})}),(0,e.createComponentVNode)(2,t.Flex.Item,{grow:1,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"eject",content:"Eject Vial",disabled:!d,onClick:function(){function v(){return h("sample")}return v}()})})]}),p]}),u&&!c||i.length?(0,e.createComponentVNode)(2,t.Section,{title:"Controls",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[u&&!c?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Isolate Antibodies",children:(0,e.createComponentVNode)(2,t.Button,{icon:"pen",content:u,onClick:function(){function v(){return h("antibody")}return v}()})}):null,i.length?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Isolate Strain",children:i.map(function(v){return(0,e.createComponentVNode)(2,t.Button,{icon:"pen",content:v.name,onClick:function(){function f(){return h("isolate",{isolate:v.reference})}return f}()},v.name)})}):null]})}):null],0)})})}return V}()},93432:function(x,r,n){"use strict";r.__esModule=!0,r.JanitorCart=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=r.JanitorCart=function(){function S(N,h){var s=(0,a.useBackend)(h),l=s.act,u=s.data,i=u.mybag,c=u.mybucket,d=u.mymop,p=u.myspray,v=u.myreplacer,f=u.signs,C=u.icons;return(0,e.createComponentVNode)(2,o.Window,{width:210,height:180,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Button,{width:"64px",height:"64px",position:"relative",tooltip:i||"Garbage Bag Slot",tooltipPosition:"bottom-end",color:i?"grey":"transparent",style:{border:i?null:"2px solid grey"},onClick:function(){function b(){return l("bag")}return b}(),children:(0,e.createComponentVNode)(2,k,{iconkey:"mybag"})}),(0,e.createComponentVNode)(2,t.Button,{width:"64px",height:"64px",position:"relative",tooltip:c||"Bucket Slot",tooltipPosition:"bottom",color:c?"grey":"transparent",style:{border:c?null:"2px solid grey"},onClick:function(){function b(){return l("bucket")}return b}(),children:(0,e.createComponentVNode)(2,k,{iconkey:"mybucket"})}),(0,e.createComponentVNode)(2,t.Button,{width:"64px",height:"64px",position:"relative",tooltip:d||"Mop Slot",tooltipPosition:"bottom-end",color:d?"grey":"transparent",style:{border:d?null:"2px solid grey"},onClick:function(){function b(){return l("mop")}return b}(),children:(0,e.createComponentVNode)(2,k,{iconkey:"mymop"})}),(0,e.createComponentVNode)(2,t.Button,{width:"64px",height:"64px",position:"relative",tooltip:p||"Spray Slot",tooltipPosition:"top-end",color:p?"grey":"transparent",style:{border:p?null:"2px solid grey"},onClick:function(){function b(){return l("spray")}return b}(),children:(0,e.createComponentVNode)(2,k,{iconkey:"myspray"})}),(0,e.createComponentVNode)(2,t.Button,{width:"64px",height:"64px",position:"relative",tooltip:v||"Light Replacer Slot",tooltipPosition:"top",color:v?"grey":"transparent",style:{border:v?null:"2px solid grey"},onClick:function(){function b(){return l("replacer")}return b}(),children:(0,e.createComponentVNode)(2,k,{iconkey:"myreplacer"})}),(0,e.createComponentVNode)(2,t.Button,{width:"64px",height:"64px",position:"relative",tooltip:f||"Signs Slot",tooltipPosition:"top-start",color:f?"grey":"transparent",style:{border:f?null:"2px solid grey"},onClick:function(){function b(){return l("sign")}return b}(),children:(0,e.createComponentVNode)(2,k,{iconkey:"signs"})})]})})}return S}(),V={mybag:"trash",mybucket:"fill",mymop:"broom",myspray:"spray-can",myreplacer:"lightbulb",signs:"sign"},k=function(N,h){var s=(0,a.useBackend)(h),l=s.data,u=N.iconkey,i=l.icons;return u in i?(0,e.createVNode)(1,"img",null,null,1,{src:i[u].substr(1,i[u].length-1),style:{position:"absolute",left:0,right:0,top:0,bottom:0,width:"64px",height:"64px","-ms-interpolation-mode":"nearest-neighbor"}}):(0,e.createComponentVNode)(2,t.Icon,{style:{position:"absolute",left:"4px",right:0,top:"20px",bottom:0,width:"64px",height:"64px"},fontSize:2,name:V[u]})}},1644:function(x,r,n){"use strict";r.__esModule=!0,r.Jukebox=void 0;var e=n(58734),a=n(5339),t=n(62188),o=n(11790),m=n(11477),V=r.Jukebox=function(){function k(S,N){var h=(0,t.useBackend)(N),s=h.act,l=h.data,u=l.playing,i=l.loop_mode,c=l.volume,d=l.current_track_ref,p=l.current_track,v=l.current_genre,f=l.percent,C=l.tracks,b=C.length&&C.reduce(function(y,B){var L=B.genre||"Uncategorized";return y[L]||(y[L]=[]),y[L].push(B),y},{}),g=u&&(v||"Uncategorized");return(0,e.createComponentVNode)(2,m.Window,{width:450,height:600,resizable:!0,children:(0,e.createComponentVNode)(2,m.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,o.Section,{title:"Currently Playing",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Title",children:u&&p&&(0,e.createComponentVNode)(2,o.Box,{children:[p.title," by ",p.artist||"Unkown"]})||(0,e.createComponentVNode)(2,o.Box,{children:"Stopped"})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Controls",children:[(0,e.createComponentVNode)(2,o.Button,{icon:"play",disabled:u,onClick:function(){function y(){return s("play")}return y}(),children:"Play"}),(0,e.createComponentVNode)(2,o.Button,{icon:"stop",disabled:!u,onClick:function(){function y(){return s("stop")}return y}(),children:"Stop"})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Loop Mode",children:[(0,e.createComponentVNode)(2,o.Button,{icon:"play",onClick:function(){function y(){return s("loopmode",{loopmode:1})}return y}(),selected:i===1,children:"Next"}),(0,e.createComponentVNode)(2,o.Button,{icon:"random",onClick:function(){function y(){return s("loopmode",{loopmode:2})}return y}(),selected:i===2,children:"Shuffle"}),(0,e.createComponentVNode)(2,o.Button,{icon:"redo",onClick:function(){function y(){return s("loopmode",{loopmode:3})}return y}(),selected:i===3,children:"Repeat"}),(0,e.createComponentVNode)(2,o.Button,{icon:"step-forward",onClick:function(){function y(){return s("loopmode",{loopmode:4})}return y}(),selected:i===4,children:"Once"})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Progress",children:(0,e.createComponentVNode)(2,o.ProgressBar,{value:f,maxValue:1,color:"good"})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Volume",children:(0,e.createComponentVNode)(2,o.Slider,{minValue:0,step:1,value:c*100,maxValue:100,ranges:{good:[75,1/0],average:[25,75],bad:[0,25]},format:function(){function y(B){return(0,a.round)(B,1)+"%"}return y}(),onChange:function(){function y(B,L){return s("volume",{val:(0,a.round)(L/100,2)})}return y}()})})]})}),(0,e.createComponentVNode)(2,o.Section,{title:"Available Tracks",children:C.length&&Object.keys(b).sort().map(function(y){return(0,e.createComponentVNode)(2,o.Collapsible,{title:y,color:g===y?"green":"default",child_mt:0,children:(0,e.createVNode)(1,"div",null,b[y].map(function(B){return(0,e.createComponentVNode)(2,o.Button,{fluid:!0,icon:"play",selected:d===B.ref,onClick:function(){function L(){return s("change_track",{change_track:B.ref})}return L}(),children:B.title},B.ref)}),0,{style:{"margin-left":"1em"}})},y)})||(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"Error: No songs loaded."})})]})})}return k}()},11877:function(x,r,n){"use strict";r.__esModule=!0,r.LawManager=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=["laws","title","noButtons"];function V(l,u){if(l==null)return{};var i={},c=Object.keys(l),d,p;for(p=0;p =0)&&(i[d]=l[d]);return i}var k=r.LawManager=function(){function l(u,i){var c=(0,a.useBackend)(i),d=c.act,p=c.data,v=p.isSlaved;return(0,e.createComponentVNode)(2,o.Window,{width:800,height:600,resizable:!0,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[v&&(0,e.createComponentVNode)(2,t.NoticeBox,{info:!0,children:["Law-synced to ",v]})||null,(0,e.createComponentVNode)(2,S)]})})}return l}(),S=function(u,i){var c=(0,a.useSharedState)(i,"lawsTabIndex",0),d=c[0],p=c[1];return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Tabs,{children:[(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:d===0,onClick:function(){function v(){return p(0)}return v}(),children:"Law Management"}),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:d===1,onClick:function(){function v(){return p(1)}return v}(),children:"Law Sets"})]}),d===0&&(0,e.createComponentVNode)(2,N)||null,d===1&&(0,e.createComponentVNode)(2,s)||null],0)},N=function(u,i){var c=(0,a.useBackend)(i),d=c.act,p=c.data,v=p.ion_law_nr,f=p.ion_law,C=p.zeroth_law,b=p.inherent_law,g=p.supplied_law,y=p.supplied_law_position,B=p.zeroth_laws,L=p.has_zeroth_laws,I=p.ion_laws,w=p.has_ion_laws,T=p.inherent_laws,M=p.has_inherent_laws,A=p.supplied_laws,R=p.has_supplied_laws,O=p.isAI,_=p.isMalf,P=p.isAdmin,D=p.channel,z=p.channels,U=B.map(function(W){return W.zero=!0,W}).concat(T);return(0,e.createComponentVNode)(2,t.Section,{children:[w&&(0,e.createComponentVNode)(2,h,{laws:I,title:v+" Laws:",mt:-2})||null,(L||M)&&(0,e.createComponentVNode)(2,h,{laws:U,title:"Inherent Laws",mt:-2})||null,R&&(0,e.createComponentVNode)(2,h,{laws:A,title:"Supplied Laws",mt:-2})||null,(0,e.createComponentVNode)(2,t.Section,{level:2,title:"Controls",mt:-2,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Statement Channel",children:z.map(function(W){return(0,e.createComponentVNode)(2,t.Button,{content:W.channel,selected:D===W.channel,onClick:function(){function K(){return d("law_channel",{law_channel:W.channel})}return K}()},W.channel)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"State Laws",children:(0,e.createComponentVNode)(2,t.Button,{icon:"volume-up",onClick:function(){function W(){return d("state_laws")}return W}(),children:"State Laws"})}),O&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Law Notification",children:(0,e.createComponentVNode)(2,t.Button,{icon:"exclamation",onClick:function(){function W(){return d("notify_laws")}return W}(),children:"Notify"})})||null]})}),_&&(0,e.createComponentVNode)(2,t.Section,{level:2,title:"Add Laws",mt:-2,children:(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,children:"Type"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Law"}),(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,children:"Index"}),(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,children:"Add"})]}),P&&!L&&(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,children:"Zero"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Input,{value:C,fluid:!0,onChange:function(){function W(K,H){return d("change_zeroth_law",{val:H})}return W}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"N/A"}),(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,children:(0,e.createComponentVNode)(2,t.Button,{icon:"plus",onClick:function(){function W(){return d("add_zeroth_law")}return W}(),children:"Add"})})]})||null,(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,children:"Ion"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Input,{value:f,fluid:!0,onChange:function(){function W(K,H){return d("change_ion_law",{val:H})}return W}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"N/A"}),(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,children:(0,e.createComponentVNode)(2,t.Button,{icon:"plus",onClick:function(){function W(){return d("add_ion_law")}return W}(),children:"Add"})})]}),(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Inherent"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Input,{value:b,fluid:!0,onChange:function(){function W(K,H){return d("change_inherent_law",{val:H})}return W}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"N/A"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"plus",onClick:function(){function W(){return d("add_inherent_law")}return W}(),children:"Add"})})]}),(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Supplied"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Input,{value:g,fluid:!0,onChange:function(){function W(K,H){return d("change_supplied_law",{val:H})}return W}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"pen",onClick:function(){function W(){return d("change_supplied_law_position")}return W}(),children:y})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"plus",onClick:function(){function W(){return d("add_supplied_law")}return W}(),children:"Add"})})]})]})})||null]})},h=function(u,i){var c=(0,a.useBackend)(i),d=c.act,p=c.data,v=p.isMalf,f=p.isAdmin,C=u.laws,b=u.title,g=u.noButtons,y=V(u,m);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,t.Section,Object.assign({level:2,title:b},y,{children:(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,children:"Index"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Law"}),!g&&(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,children:"State"})||null,v&&!g&&(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,children:"Edit"}),(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,children:"Delete"})],4)||null]}),C.map(function(B){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,children:[B.index,"."]}),(0,e.createComponentVNode)(2,t.Table.Cell,{color:B.zero?"bad":null,children:B.law}),!g&&(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"volume-up",selected:B.state,onClick:function(){function L(){return d("state_law",{ref:B.ref,state_law:!B.state})}return L}(),children:B.state?"Yes":"No"})})||null,v&&!g&&(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,children:(0,e.createComponentVNode)(2,t.Button,{disabled:B.zero&&!f,icon:"pen",onClick:function(){function L(){return d("edit_law",{edit_law:B.ref})}return L}(),children:"Edit"})}),(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,children:(0,e.createComponentVNode)(2,t.Button,{disabled:B.zero&&!f,color:"bad",icon:"trash",onClick:function(){function L(){return d("delete_law",{delete_law:B.ref})}return L}(),children:"Delete"})})],4)||null]},B.index)})]})})))},s=function(u,i){var c=(0,a.useBackend)(i),d=c.act,p=c.data,v=p.isMalf,f=p.law_sets;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.NoticeBox,{children:"Remember: Stating laws other than those currently loaded may be grounds for decommissioning! - NanoTrasen"}),f.length&&f.map(function(C){return(0,e.createComponentVNode)(2,t.Section,{title:C.name,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{disabled:!v,icon:"sync",onClick:function(){function b(){return d("transfer_laws",{transfer_laws:C.ref})}return b}(),children:"Load Laws"}),(0,e.createComponentVNode)(2,t.Button,{icon:"volume-up",onClick:function(){function b(){return d("state_law_set",{state_law_set:C.ref})}return b}(),children:"State Laws"})],4),children:[C.laws.has_ion_laws&&(0,e.createComponentVNode)(2,h,{noButtons:!0,laws:C.laws.ion_laws,title:C.laws.ion_law_nr+" Laws:"})||null,(C.laws.has_zeroth_laws||C.laws.has_inherent_laws)&&(0,e.createComponentVNode)(2,h,{noButtons:!0,laws:C.laws.zeroth_laws.concat(C.laws.inherent_laws),title:C.header})||null,C.laws.has_supplied_laws&&(0,e.createComponentVNode)(2,h,{noButtons:!0,laws:C.laws.supplied_laws,title:"Supplied Laws"})||null]},C.name)})||null],0)}},94648:function(x,r,n){"use strict";r.__esModule=!0,r.ListInputModal=void 0;var e=n(58734),a=n(89226),t=n(57370),o=n(11790),m=n(62188),V=n(42678),k=n(11477),S=r.ListInputModal=function(){function s(l,u){var i=(0,m.useBackend)(u),c=i.act,d=i.data,p=d.items,v=p===void 0?[]:p,f=d.message,C=f===void 0?"":f,b=d.init_value,g=d.large_buttons,y=d.timeout,B=d.title,L=(0,m.useLocalState)(u,"selected",v.indexOf(b)),I=L[0],w=L[1],T=(0,m.useLocalState)(u,"searchBarVisible",v.length>9),M=T[0],A=T[1],R=(0,m.useLocalState)(u,"searchQuery",""),O=R[0],_=R[1],P=function(){function J(q){var oe=H.length-1;if(q===V.KEY_DOWN)if(I===null||I===oe){var ae;w(0),(ae=document.getElementById("0"))==null||ae.scrollIntoView()}else{var le;w(I+1),(le=document.getElementById((I+1).toString()))==null||le.scrollIntoView()}else if(q===V.KEY_UP)if(I===null||I===0){var he;w(oe),(he=document.getElementById(oe.toString()))==null||he.scrollIntoView()}else{var me;w(I-1),(me=document.getElementById((I-1).toString()))==null||me.scrollIntoView()}}return J}(),D=function(){function J(q){q!==I&&w(q)}return J}(),z=function(){function J(){A(!1),A(!0)}return J}(),U=function(){function J(q){var oe=String.fromCharCode(q),ae=v.find(function(me){return me==null?void 0:me.toLowerCase().startsWith(oe==null?void 0:oe.toLowerCase())});if(ae){var le,he=v.indexOf(ae);w(he),(le=document.getElementById(he.toString()))==null||le.scrollIntoView()}}return J}(),W=function(){function J(q){var oe;q!==O&&(_(q),w(0),(oe=document.getElementById("0"))==null||oe.scrollIntoView())}return J}(),K=function(){function J(){A(!M),_("")}return J}(),H=v.filter(function(J){return J==null?void 0:J.toLowerCase().includes(O.toLowerCase())}),Y=325+Math.ceil(C.length/3)+(g?5:0);return M||setTimeout(function(){var J;return(J=document.getElementById(I.toString()))==null?void 0:J.focus()},1),(0,e.createComponentVNode)(2,k.Window,{title:B,width:325,height:Y,children:[y&&(0,e.createComponentVNode)(2,a.Loader,{value:y}),(0,e.createComponentVNode)(2,k.Window.Content,{onKeyDown:function(){function J(q){var oe=window.event?q.which:q.keyCode;(oe===V.KEY_DOWN||oe===V.KEY_UP)&&(q.preventDefault(),P(oe)),oe===V.KEY_ENTER&&(q.preventDefault(),c("submit",{entry:H[I]})),!M&&oe>=V.KEY_A&&oe<=V.KEY_Z&&(q.preventDefault(),U(oe)),oe===V.KEY_ESCAPE&&(q.preventDefault(),c("cancel"))}return J}(),children:(0,e.createComponentVNode)(2,o.Section,{buttons:(0,e.createComponentVNode)(2,o.Button,{compact:!0,icon:M?"search":"font",selected:!0,tooltip:M?"Search Mode. Type to search or use arrow keys to select manually.":"Hotkey Mode. Type a letter to jump to the first match. Enter to select.",tooltipPosition:"left",onClick:function(){function J(){return K()}return J}()}),className:"ListInput__Section",fill:!0,title:C,children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,N,{filteredItems:H,onClick:D,onFocusSearch:z,searchBarVisible:M,selected:I})}),M&&(0,e.createComponentVNode)(2,h,{filteredItems:H,onSearch:W,searchQuery:O,selected:I}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,t.InputButtons,{input:H[I]})})]})})})]})}return s}(),N=function(l,u){var i=(0,m.useBackend)(u),c=i.act,d=l.filteredItems,p=l.onClick,v=l.onFocusSearch,f=l.searchBarVisible,C=l.selected;return(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,tabIndex:0,children:d.map(function(b,g){return(0,e.createComponentVNode)(2,o.Button,{color:"transparent",fluid:!0,id:g,onClick:function(){function y(){return p(g)}return y}(),onDblClick:function(){function y(B){B.preventDefault(),c("submit",{entry:d[C]})}return y}(),onKeyDown:function(){function y(B){var L=window.event?B.which:B.keyCode;f&&L>=V.KEY_A&&L<=V.KEY_Z&&(B.preventDefault(),v())}return y}(),selected:g===C,style:{animation:"none",transition:"none"},children:b.replace(/^\w/,function(y){return y.toUpperCase()})},g)})})},h=function(l,u){var i=(0,m.useBackend)(u),c=i.act,d=l.filteredItems,p=l.onSearch,v=l.searchQuery,f=l.selected;return(0,e.createComponentVNode)(2,o.Input,{autoFocus:!0,autoSelect:!0,fluid:!0,onEnter:function(){function C(b){b.preventDefault(),c("submit",{entry:d[f]})}return C}(),onInput:function(){function C(b,g){return p(g)}return C}(),placeholder:"Search...",value:v})}},74639:function(x,r,n){"use strict";r.__esModule=!0,r.LookingGlass=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=r.LookingGlass=function(){function V(k,S){var N=(0,a.useBackend)(S),h=N.act,s=N.data,l=s.supportedPrograms,u=s.currentProgram,i=s.immersion,c=s.gravity,d=Math.min(180+l.length*23,600);return(0,e.createComponentVNode)(2,o.Window,{width:300,height:d,resizable:!0,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,t.Section,{title:"Programs",children:l.map(function(p){return(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"eye",selected:p===u,onClick:function(){function v(){return h("program",{program:p})}return v}(),children:p},p)})}),(0,e.createComponentVNode)(2,t.Section,{title:"Controls",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Gravity",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"user-astronaut",selected:c,onClick:function(){function p(){return h("gravity")}return p}(),children:c?"Enabled":"Disabled"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Full Immersion",children:(0,e.createComponentVNode)(2,t.Button,{mt:-1,fluid:!0,icon:"eye",selected:i,onClick:function(){function p(){return h("immersion")}return p}(),children:i?"Enabled":"Disabled"})})]})})]})})}return V}()},1365:function(x,r,n){"use strict";r.__esModule=!0,r.MechaControlConsole=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=n(40946),V=r.MechaControlConsole=function(){function k(S,N){var h=(0,a.useBackend)(N),s=h.act,l=h.data,u=l.beacons,i=l.stored_data;return(0,e.createComponentVNode)(2,o.Window,{width:600,height:600,resizable:!0,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[i.length&&(0,e.createComponentVNode)(2,t.Modal,{children:(0,e.createComponentVNode)(2,t.Section,{height:"400px",style:{"overflow-y":"auto"},title:"Log",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"window-close",onClick:function(){function c(){return s("clear_log")}return c}()}),children:i.map(function(c){return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Box,{color:"label",children:["(",c.time,") (",c.year,")"]}),(0,e.createComponentVNode)(2,t.Box,{children:(0,m.decodeHtmlEntities)(c.message)})]},c.time)})})})||null,u.length&&u.map(function(c){return(0,e.createComponentVNode)(2,t.Section,{title:c.name,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{icon:"comment",onClick:function(){function d(){return s("send_message",{mt:c.ref})}return d}(),children:"Message"}),(0,e.createComponentVNode)(2,t.Button,{icon:"eye",onClick:function(){function d(){return s("get_log",{mt:c.ref})}return d}(),children:"View Log"}),(0,e.createComponentVNode)(2,t.Button.Confirm,{color:"red",content:"EMP",icon:"bomb",onClick:function(){function d(){return s("shock",{mt:c.ref})}return d}()})],4),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Health",children:(0,e.createComponentVNode)(2,t.ProgressBar,{ranges:{good:[c.maxHealth*.75,1/0],average:[c.maxHealth*.5,c.maxHealth*.75],bad:[-1/0,c.maxHealth*.5]},value:c.health,maxValue:c.maxHealth})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cell Charge",children:c.cell&&(0,e.createComponentVNode)(2,t.ProgressBar,{ranges:{good:[c.cellMaxCharge*.75,1/0],average:[c.cellMaxCharge*.5,c.cellMaxCharge*.75],bad:[-1/0,c.cellMaxCharge*.5]},value:c.cellCharge,maxValue:c.cellMaxCharge})||(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No Cell Installed"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Air Tank",children:[c.airtank,"kPa"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Pilot",children:c.pilot||"Unoccupied"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Location",children:(0,m.toTitleCase)(c.location)||"Unknown"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Active Equipment",children:c.active||"None"}),c.cargoMax&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cargo Space",children:(0,e.createComponentVNode)(2,t.ProgressBar,{ranges:{bad:[c.cargoMax*.75,1/0],average:[c.cargoMax*.5,c.cargoMax*.75],good:[-1/0,c.cargoMax*.5]},value:c.cargoUsed,maxValue:c.cargoMax})})||null]})},c.name)})||(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No mecha beacons found."})]})})}return k}()},69909:function(x,r,n){"use strict";r.__esModule=!0,r.Medbot=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=r.Medbot=function(){function V(k,S){var N=(0,a.useBackend)(S),h=N.act,s=N.data,l=s.on,u=s.open,i=s.beaker,c=s.beaker_total,d=s.beaker_max,p=s.locked,v=s.heal_threshold,f=s.heal_threshold_max,C=s.injection_amount_min,b=s.injection_amount,g=s.injection_amount_max,y=s.use_beaker,B=s.declare_treatment,L=s.vocal;return(0,e.createComponentVNode)(2,o.Window,{width:400,height:600,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,t.Section,{title:"Automatic Medical Unit v2.0",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"power-off",selected:l,onClick:function(){function I(){return h("power")}return I}(),children:l?"On":"Off"}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Maintenance Panel",color:u?"bad":"good",children:u?"Open":"Closed"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Beaker",buttons:(0,e.createComponentVNode)(2,t.Button,{disabled:!i,icon:"eject",onClick:function(){function I(){return h("eject")}return I}(),children:"Eject"}),children:i&&(0,e.createComponentVNode)(2,t.ProgressBar,{value:c,maxValue:d,children:[c," / ",d]})||(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"No beaker loaded."})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Behavior Controls",color:p?"good":"bad",children:p?"Locked":"Unlocked"})]})}),!p&&(0,e.createComponentVNode)(2,t.Section,{title:"Behavioral Controls",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Healing Threshold",children:(0,e.createComponentVNode)(2,t.NumberInput,{fluid:!0,minValue:0,maxValue:f,value:v,onDrag:function(){function I(w,T){return h("adj_threshold",{val:T})}return I}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Injection Amount",children:(0,e.createComponentVNode)(2,t.NumberInput,{fluid:!0,minValue:C,maxValue:g,value:b,onDrag:function(){function I(w,T){return h("adj_inject",{val:T})}return I}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Reagent Source",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:y?"toggle-on":"toggle-off",selected:y,onClick:function(){function I(){return h("use_beaker")}return I}(),children:y?"Loaded Beaker (When available)":"Internal Synthesizer"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Treatment Report",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:B?"toggle-on":"toggle-off",selected:B,onClick:function(){function I(){return h("declaretreatment")}return I}(),children:B?"On":"Off"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Speaker",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:L?"toggle-on":"toggle-off",selected:L,onClick:function(){function I(){return h("togglevoice")}return I}(),children:L?"On":"Off"})})]})})||null]})})}return V}()},82854:function(x,r,n){"use strict";r.__esModule=!0,r.MedicalRecords=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(48388),m=n(11477),V=n(39813),k=n(50947),S=n(45246),N={Minor:"good",Medium:"average","Dangerous!":"bad",Harmful:"bad","BIOHAZARD THREAT!":"bad"},h=function(g,y){(0,o.modalOpen)(g,"edit",{field:y.edit,value:y.value})},s=function(g,y){var B=(0,a.useBackend)(y),L=B.act,I=g.args;return(0,e.createComponentVNode)(2,t.Section,{level:2,m:"-1rem",title:I.name||"Virus",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"times",color:"red",onClick:function(){function w(){return L("modal_close")}return w}()}),children:(0,e.createComponentVNode)(2,t.Box,{mx:"0.5rem",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Spread",children:[I.spread_text," Transmission"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Possible cure",children:I.antigen}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Rate of Progression",children:I.rate}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Antibiotic Resistance",children:[I.resistance,"%"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Species Affected",children:I.species}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Symptoms",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:I.symptoms.map(function(w){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:w.stage+". "+w.name,children:[(0,e.createComponentVNode)(2,t.Box,{inline:!0,color:"label",children:"Strength:"})," ",w.strength,"\xA0",(0,e.createComponentVNode)(2,t.Box,{inline:!0,color:"label",children:"Aggressiveness:"})," ",w.aggressiveness]},w.stage)})})})]})})})},l=r.MedicalRecords=function(){function b(g,y){var B=(0,a.useBackend)(y),L=B.data,I=L.authenticated,w=L.screen;if(!I)return(0,e.createComponentVNode)(2,m.Window,{width:800,height:380,resizable:!0,children:(0,e.createComponentVNode)(2,m.Window.Content,{children:(0,e.createComponentVNode)(2,k.LoginScreen)})});var T;return w===2?T=(0,e.createComponentVNode)(2,u):w===3?T=(0,e.createComponentVNode)(2,i):w===4?T=(0,e.createComponentVNode)(2,c):w===5?T=(0,e.createComponentVNode)(2,v):w===6&&(T=(0,e.createComponentVNode)(2,f)),(0,e.createComponentVNode)(2,m.Window,{width:800,height:380,resizable:!0,children:[(0,e.createComponentVNode)(2,o.ComplexModal,{maxHeight:"100%",maxWidth:"80%"}),(0,e.createComponentVNode)(2,m.Window.Content,{className:"Layout__content--flexColumn",scrollable:!0,children:[(0,e.createComponentVNode)(2,V.LoginInfo),(0,e.createComponentVNode)(2,S.TemporaryNotice),(0,e.createComponentVNode)(2,C),(0,e.createComponentVNode)(2,t.Section,{height:"calc(100% - 5rem)",flexGrow:"1",children:T})]})]})}return b}(),u=function(g,y){var B=(0,a.useBackend)(y),L=B.act,I=B.data,w=I.records;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Input,{fluid:!0,placeholder:"Search by Name, DNA, or ID",onChange:function(){function T(M,A){return L("search",{t1:A})}return T}()}),(0,e.createComponentVNode)(2,t.Box,{mt:"0.5rem",children:w.map(function(T,M){return(0,e.createComponentVNode)(2,t.Button,{icon:"user",mb:"0.5rem",content:T.id+": "+T.name,onClick:function(){function A(){return L("d_rec",{d_rec:T.ref})}return A}()},M)})})],4)},i=function(g,y){var B=(0,a.useBackend)(y),L=B.act;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{icon:"download",content:"Backup to Disk",disabled:!0}),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Button,{icon:"upload",content:"Upload from Disk",my:"0.5rem",disabled:!0})," ",(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"trash",content:"Delete All Medical Records",onClick:function(){function I(){return L("del_all")}return I}()})],0)},c=function(g,y){var B=(0,a.useBackend)(y),L=B.act,I=B.data,w=I.medical,T=I.printing;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{title:"General Data",level:2,mt:"-6px",children:(0,e.createComponentVNode)(2,d)}),(0,e.createComponentVNode)(2,t.Section,{title:"Medical Data",level:2,children:(0,e.createComponentVNode)(2,p)}),(0,e.createComponentVNode)(2,t.Section,{title:"Actions",level:2,children:[(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"trash",disabled:!!w.empty,content:"Delete Medical Record",color:"bad",onClick:function(){function M(){return L("del_r")}return M}()}),(0,e.createComponentVNode)(2,t.Button,{icon:T?"spinner":"print",disabled:T,iconSpin:!!T,content:"Print Entry",ml:"0.5rem",onClick:function(){function M(){return L("print_p")}return M}()}),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-left",content:"Back",mt:"0.5rem",onClick:function(){function M(){return L("screen",{screen:2})}return M}()})]})],4)},d=function(g,y){var B=(0,a.useBackend)(y),L=B.data,I=L.general;return!I||!I.fields?(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:"General records lost!"}):(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{width:"50%",float:"left",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:I.fields.map(function(w,T){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:w.field,children:[(0,e.createComponentVNode)(2,t.Box,{height:"20px",display:"inline-block",preserveWhitespace:!0,children:w.value}),!!w.edit&&(0,e.createComponentVNode)(2,t.Button,{icon:"pen",ml:"0.5rem",onClick:function(){function M(){return h(y,w)}return M}()})]},T)})})}),(0,e.createComponentVNode)(2,t.Box,{width:"50%",float:"right",textAlign:"right",children:!!I.has_photos&&I.photos.map(function(w,T){return(0,e.createComponentVNode)(2,t.Box,{display:"inline-block",textAlign:"center",color:"label",children:[(0,e.createVNode)(1,"img",null,null,1,{src:w.substr(1,w.length-1),style:{width:"96px","margin-bottom":"0.5rem","-ms-interpolation-mode":"nearest-neighbor"}}),(0,e.createVNode)(1,"br"),"Photo #",T+1]},T)})})],4)},p=function(g,y){var B=(0,a.useBackend)(y),L=B.act,I=B.data,w=I.medical;return!w||!w.fields?(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:["Medical records lost!",(0,e.createComponentVNode)(2,t.Button,{icon:"pen",content:"New Record",ml:"0.5rem",onClick:function(){function T(){return L("new")}return T}()})]}):(0,e.createFragment)([(0,e.createComponentVNode)(2,t.LabeledList,{children:w.fields.map(function(T,M){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:T.field,children:(0,e.createComponentVNode)(2,t.Box,{preserveWhitespace:!0,children:[T.value,(0,e.createComponentVNode)(2,t.Button,{icon:"pen",ml:"0.5rem",mb:T.line_break?"1rem":"initial",onClick:function(){function A(){return h(y,T)}return A}()})]})},M)})}),(0,e.createComponentVNode)(2,t.Section,{title:"Comments/Log",level:2,children:[w.comments.length===0?(0,e.createComponentVNode)(2,t.Box,{color:"label",children:"No comments found."}):w.comments.map(function(T,M){return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Box,{color:"label",inline:!0,children:T.header}),(0,e.createVNode)(1,"br"),T.text,(0,e.createComponentVNode)(2,t.Button,{icon:"comment-slash",color:"bad",ml:"0.5rem",onClick:function(){function A(){return L("del_c",{del_c:M+1})}return A}()})]},M)}),(0,e.createComponentVNode)(2,t.Button,{icon:"comment-medical",content:"Add Entry",color:"good",mt:"0.5rem",mb:"0",onClick:function(){function T(){return(0,o.modalOpen)(y,"add_c")}return T}()})]})],4)},v=function(g,y){var B=(0,a.useBackend)(y),L=B.act,I=B.data,w=I.virus;return w.sort(function(T,M){return T.name>M.name?1:-1}),w.map(function(T,M){return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{icon:"flask",content:T.name,mb:"0.5rem",onClick:function(){function A(){return L("vir",{vir:T.D})}return A}()}),(0,e.createVNode)(1,"br")],4,M)})},f=function(g,y){var B=(0,a.useBackend)(y),L=B.data,I=L.medbots;return I.length===0?(0,e.createComponentVNode)(2,t.Box,{color:"label",children:"There are no Medbots."}):I.map(function(w,T){return(0,e.createComponentVNode)(2,t.Collapsible,{open:!0,title:w.name,children:(0,e.createComponentVNode)(2,t.Box,{px:"0.5rem",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Location",children:[w.area||"Unknown"," (",w.x,", ",w.y,")"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:w.on?(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{color:"good",children:"Online"}),(0,e.createComponentVNode)(2,t.Box,{mt:"0.5rem",children:w.use_beaker?"Reservoir: "+w.total_volume+"/"+w.maximum_volume:"Using internal synthesizer."})],4):(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"Offline"})})]})})},T)})},C=function(g,y){var B=(0,a.useBackend)(y),L=B.act,I=B.data,w=I.screen;return(0,e.createComponentVNode)(2,t.Tabs,{children:[(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:w===2,onClick:function(){function T(){return L("screen",{screen:2})}return T}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"list"}),"List Records"]}),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:w===5,onClick:function(){function T(){return L("screen",{screen:5})}return T}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"database"}),"Virus Database"]}),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:w===6,onClick:function(){function T(){return L("screen",{screen:6})}return T}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"plus-square"}),"Medbot Tracking"]}),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:w===3,onClick:function(){function T(){return L("screen",{screen:3})}return T}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"wrench"}),"Record Maintenance"]})]})};(0,o.modalRegisterBodyOverride)("virus",s)},38223:function(x,r,n){"use strict";r.__esModule=!0,r.MessageMonitor=void 0;var e=n(58734),a=n(40946),t=n(62188),o=n(11790),m=n(11477),V=n(45246),k=n(84288),S=r.MessageMonitor=function(){function d(p,v){var f=(0,t.useBackend)(v),C=f.act,b=f.data,g=b.auth,y=b.linkedServer,B=b.message,L=b.hacking,I=b.emag,w;return L||I?w=(0,e.createComponentVNode)(2,N):g?y?w=(0,e.createComponentVNode)(2,s):w=(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"ERROR"}):w=(0,e.createComponentVNode)(2,h),(0,e.createComponentVNode)(2,m.Window,{width:670,height:450,resizable:!0,children:(0,e.createComponentVNode)(2,m.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,V.TemporaryNotice),w]})})}return d}(),N=function(p,v){var f=(0,t.useBackend)(v),C=f.act,b=f.data,g=b.isMalfAI;return(0,e.createComponentVNode)(2,k.FullscreenNotice,{title:"ERROR",children:g?(0,e.createComponentVNode)(2,o.Box,{children:"Brute-forcing for server key. It will take 20 seconds for every character that the password has."}):(0,e.createComponentVNode)(2,o.Box,{children:["01000010011100100111010101110100011001010010110",(0,e.createVNode)(1,"br"),"10110011001101111011100100110001101101001011011100110011",(0,e.createVNode)(1,"br"),"10010000001100110011011110111001000100000011100110110010",(0,e.createVNode)(1,"br"),"10111001001110110011001010111001000100000011010110110010",(0,e.createVNode)(1,"br"),"10111100100101110001000000100100101110100001000000111011",(0,e.createVNode)(1,"br"),"10110100101101100011011000010000001110100011000010110101",(0,e.createVNode)(1,"br"),"10110010100100000001100100011000000100000011100110110010",(0,e.createVNode)(1,"br"),"10110001101101111011011100110010001110011001000000110011",(0,e.createVNode)(1,"br"),"00110111101110010001000000110010101110110011001010111001",(0,e.createVNode)(1,"br"),"00111100100100000011000110110100001100001011100100110000",(0,e.createVNode)(1,"br"),"10110001101110100011001010111001000100000011101000110100",(0,e.createVNode)(1,"br"),"00110000101110100001000000111010001101000011001010010000",(0,e.createVNode)(1,"br"),"00111000001100001011100110111001101110111011011110111001",(0,e.createVNode)(1,"br"),"00110010000100000011010000110000101110011001011100010000",(0,e.createVNode)(1,"br"),"00100100101101110001000000111010001101000011001010010000",(0,e.createVNode)(1,"br"),"00110110101100101011000010110111001110100011010010110110",(0,e.createVNode)(1,"br"),"10110010100101100001000000111010001101000011010010111001",(0,e.createVNode)(1,"br"),"10010000001100011011011110110111001110011011011110110110",(0,e.createVNode)(1,"br"),"00110010100100000011000110110000101101110001000000111001",(0,e.createVNode)(1,"br"),"00110010101110110011001010110000101101100001000000111100",(0,e.createVNode)(1,"br"),"10110111101110101011100100010000001110100011100100111010",(0,e.createVNode)(1,"br"),"10110010100100000011010010110111001110100011001010110111",(0,e.createVNode)(1,"br"),"00111010001101001011011110110111001110011001000000110100",(0,e.createVNode)(1,"br"),"10110011000100000011110010110111101110101001000000110110",(0,e.createVNode)(1,"br"),"00110010101110100001000000111001101101111011011010110010",(0,e.createVNode)(1,"br"),"10110111101101110011001010010000001100001011000110110001",(0,e.createVNode)(1,"br"),"10110010101110011011100110010000001101001011101000010111",(0,e.createVNode)(1,"br"),"00010000001001101011000010110101101100101001000000111001",(0,e.createVNode)(1,"br"),"10111010101110010011001010010000001101110011011110010000",(0,e.createVNode)(1,"br"),"00110100001110101011011010110000101101110011100110010000",(0,e.createVNode)(1,"br"),"00110010101101110011101000110010101110010001000000111010",(0,e.createVNode)(1,"br"),"00110100001100101001000000111001001101111011011110110110",(0,e.createVNode)(1,"br"),"10010000001100100011101010111001001101001011011100110011",(0,e.createVNode)(1,"br"),"10010000001110100011010000110000101110100001000000111010",(0,e.createVNode)(1,"br"),"001101001011011010110010100101110"]})})},h=function(p,v){var f=(0,t.useBackend)(v),C=f.act,b=f.data,g=b.isMalfAI;return(0,e.createComponentVNode)(2,k.FullscreenNotice,{title:"Welcome",children:[(0,e.createComponentVNode)(2,o.Box,{fontSize:"1.5rem",bold:!0,children:[(0,e.createComponentVNode)(2,o.Icon,{name:"exclamation-triangle",verticalAlign:"middle",size:3,mr:"1rem"}),"Unauthorized"]}),(0,e.createComponentVNode)(2,o.Box,{color:"label",my:"1rem",children:["Decryption Key:",(0,e.createComponentVNode)(2,o.Input,{placeholder:"Decryption Key",ml:"0.5rem",onChange:function(){function y(B,L){return C("auth",{key:L})}return y}()})]}),!!g&&(0,e.createComponentVNode)(2,o.Button,{icon:"terminal",content:"Hack",onClick:function(){function y(){return C("hack")}return y}()}),(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"Please authenticate with the server in order to show additional options."})]})},s=function(p,v){var f=(0,t.useBackend)(v),C=f.act,b=f.data,g=b.linkedServer,y=(0,t.useLocalState)(v,"tabIndex",0),B=y[0],L=y[1],I;return B===0?I=(0,e.createComponentVNode)(2,l):B===1?I=(0,e.createComponentVNode)(2,u,{logs:g.pda_msgs,pda:!0}):B===2?I=(0,e.createComponentVNode)(2,u,{logs:g.rc_msgs,rc:!0}):B===3?I=(0,e.createComponentVNode)(2,i):B===4&&(I=(0,e.createComponentVNode)(2,c)),(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Tabs,{children:[(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:B===0,onClick:function(){function w(){return L(0)}return w}(),children:[(0,e.createComponentVNode)(2,o.Icon,{name:"bars"})," Main Menu"]},"Main"),(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:B===1,onClick:function(){function w(){return L(1)}return w}(),children:[(0,e.createComponentVNode)(2,o.Icon,{name:"font"})," Message Logs"]},"MessageLogs"),(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:B===2,onClick:function(){function w(){return L(2)}return w}(),children:[(0,e.createComponentVNode)(2,o.Icon,{name:"bold"})," Request Logs"]},"RequestLogs"),(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:B===3,onClick:function(){function w(){return L(3)}return w}(),children:[(0,e.createComponentVNode)(2,o.Icon,{name:"comment-alt"})," Admin Messaging"]},"AdminMessage"),(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:B===4,onClick:function(){function w(){return L(4)}return w}(),children:[(0,e.createComponentVNode)(2,o.Icon,{name:"comment-slash"})," Spam Filter"]},"SpamFilter"),(0,e.createComponentVNode)(2,o.Tabs.Tab,{color:"red",onClick:function(){function w(){return C("deauth")}return w}(),children:[(0,e.createComponentVNode)(2,o.Icon,{name:"sign-out-alt"})," Log Out"]},"Logout")]}),(0,e.createComponentVNode)(2,o.Box,{m:2,children:I})],4)},l=function(p,v){var f=(0,t.useBackend)(v),C=f.act,b=f.data,g=b.linkedServer;return(0,e.createComponentVNode)(2,o.Section,{title:"Main Menu",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{icon:"link",content:"Server Link",onClick:function(){function y(){return C("find")}return y}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"power-off",content:"Server "+(g.active?"Enabled":"Disabled"),selected:g.active,onClick:function(){function y(){return C("active")}return y}()})],4),children:[(0,e.createComponentVNode)(2,o.LabeledList,{children:(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Server Status",children:(0,e.createComponentVNode)(2,o.Box,{color:"good",children:"Good"})})}),(0,e.createComponentVNode)(2,o.Button,{mt:1,icon:"key",content:"Set Custom Key",onClick:function(){function y(){return C("pass")}return y}()}),(0,e.createComponentVNode)(2,o.Button.Confirm,{color:"red",confirmIcon:"exclamation-triangle",icon:"exclamation-triangle",content:"Clear Message Logs"}),(0,e.createComponentVNode)(2,o.Button.Confirm,{color:"red",confirmIcon:"exclamation-triangle",icon:"exclamation-triangle",content:"Clear Request Logs"})]})},u=function(p,v){var f=(0,t.useBackend)(v),C=f.act,b=f.data,g=p.logs,y=p.pda,B=p.rc;return(0,e.createComponentVNode)(2,o.Section,{title:y?"PDA Logs":B?"Request Logs":"Logs",buttons:(0,e.createComponentVNode)(2,o.Button.Confirm,{color:"red",icon:"trash",confirmIcon:"trash",content:"Delete All",onClick:function(){function L(){return C(y?"del_pda":"del_rc")}return L}()}),children:(0,e.createComponentVNode)(2,o.Flex,{wrap:"wrap",children:g.map(function(L,I){return(0,e.createComponentVNode)(2,o.Flex.Item,{m:"2px",basis:"49%",grow:I%2,children:(0,e.createComponentVNode)(2,o.Section,{title:L.sender+" -> "+L.recipient,buttons:(0,e.createComponentVNode)(2,o.Button.Confirm,{confirmContent:"Delete Log?",color:"bad",icon:"trash",confirmIcon:"trash",onClick:function(){function w(){return C("delete",{id:L.ref,type:B?"rc":"pda"})}return w}()}),children:B?(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Message",children:L.message}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Verification",color:L.id_auth==="Unauthenticated"?"bad":"good",children:(0,a.decodeHtmlEntities)(L.id_auth)}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Stamp",children:L.stamp})]}):L.message})},L.ref)})})})},i=function(p,v){var f=(0,t.useBackend)(v),C=f.act,b=f.data,g=b.possibleRecipients,y=b.customsender,B=b.customrecepient,L=b.customjob,I=b.custommessage,w=Object.keys(g);return(0,e.createComponentVNode)(2,o.Section,{title:"Admin Messaging",children:[(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Sender",children:(0,e.createComponentVNode)(2,o.Input,{fluid:!0,value:y,onChange:function(){function T(M,A){return C("set_sender",{val:A})}return T}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Sender's Job",children:(0,e.createComponentVNode)(2,o.Input,{fluid:!0,value:L,onChange:function(){function T(M,A){return C("set_sender_job",{val:A})}return T}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Recipient",children:(0,e.createComponentVNode)(2,o.Dropdown,{value:B,options:w,width:"100%",mb:-.7,onSelected:function(){function T(M){return C("set_recipient",{val:g[M]})}return T}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Message",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Input,{fluid:!0,mb:.5,value:I,onChange:function(){function T(M,A){return C("set_message",{val:A})}return T}()})})]}),(0,e.createComponentVNode)(2,o.Button,{fluid:!0,icon:"comment",content:"Send Message",onClick:function(){function T(){return C("send_message")}return T}()})]})},c=function(p,v){var f=(0,t.useBackend)(v),C=f.act,b=f.data,g=b.linkedServer;return(0,e.createComponentVNode)(2,o.Section,{title:"Spam Filtering",children:[(0,e.createComponentVNode)(2,o.LabeledList,{children:g.spamFilter.map(function(y){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:y.index,buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"trash",color:"bad",content:"Delete",onClick:function(){function B(){return C("deltoken",{deltoken:y.index})}return B}()}),children:y.token},y.index)})}),(0,e.createComponentVNode)(2,o.Button,{icon:"plus",content:"Add New Entry",onClick:function(){function y(){return C("addtoken")}return y}()})]})}},31546:function(x,r,n){"use strict";r.__esModule=!0,r.Microwave=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=r.Microwave=function(){function V(k,S){var N=(0,a.useBackend)(S),h=N.act,s=N.config,l=N.data,u=l.broken,i=l.operating,c=l.dirty,d=l.items;return(0,e.createComponentVNode)(2,o.Window,{width:400,height:500,resizable:!0,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:u&&(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:"Bzzzzttttt!!"})})||i&&(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.Box,{color:"good",children:["Microwaving in progress!",(0,e.createVNode)(1,"br"),"Please wait...!"]})})||c&&(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:["This microwave is dirty!",(0,e.createVNode)(1,"br"),"Please clean it before use!"]})})||d.length&&(0,e.createComponentVNode)(2,t.Section,{level:1,title:"Ingredients",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{icon:"radiation",onClick:function(){function p(){return h("cook")}return p}(),children:"Microwave"}),(0,e.createComponentVNode)(2,t.Button,{icon:"eject",onClick:function(){function p(){return h("dispose")}return p}(),children:"Eject"})],4),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:d.map(function(p){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:p.name,children:[p.amt," ",p.extra]},p.name)})})})||(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:[s.title," is empty."]})})})})}return V}()},64193:function(x,r,n){"use strict";r.__esModule=!0,r.MiningOreProcessingConsole=void 0;var e=n(58734),a=n(40946),t=n(62188),o=n(11790),m=n(11477),V=n(23415),k=r.MiningOreProcessingConsole=function(){function l(u,i){var c=(0,t.useBackend)(i),d=c.act,p=c.data,v=p.unclaimedPoints,f=p.ores,C=p.showAllOres,b=p.power,g=p.speed;return(0,e.createComponentVNode)(2,m.Window,{width:400,height:500,resizable:!0,children:(0,e.createComponentVNode)(2,m.Window.Content,{children:[(0,e.createComponentVNode)(2,V.MiningUser,{insertIdText:(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,o.Button,{icon:"arrow-right",mr:1,onClick:function(){function y(){return d("insert")}return y}(),children:"Insert ID"}),"in order to claim points."]})}),(0,e.createComponentVNode)(2,o.Section,{title:"Status",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{icon:"bolt",selected:g,onClick:function(){function y(){return d("speed_toggle")}return y}(),children:g?"High-Speed Active":"High-Speed Inactive"}),(0,e.createComponentVNode)(2,o.Button,{icon:"power-off",selected:b,onClick:function(){function y(){return d("power")}return y}(),children:b?"Smelting":"Not Smelting"})],4),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Current unclaimed points",buttons:(0,e.createComponentVNode)(2,o.Button,{disabled:v<1,icon:"download",onClick:function(){function y(){return d("claim")}return y}(),children:"Claim"}),children:(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:v})})})}),(0,e.createComponentVNode)(2,s)]})})}return l}(),S=["Not Processing","Smelting","Compressing","Alloying"],N=["verdantium","mhydrogen","diamond","platinum","uranium","gold","silver","rutile","phoron","marble","lead","sand","carbon","hematite"],h=function(u,i){return N.indexOf(u.ore)===-1||N.indexOf(i.ore)===-1?u.ore-i.ore:N.indexOf(i.ore)-N.indexOf(u.ore)},s=function(u,i){var c=(0,t.useBackend)(i),d=c.act,p=c.data,v=p.ores,f=p.showAllOres,C=p.power;return(0,e.createComponentVNode)(2,o.Section,{title:"Ore Processing Controls",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:f?"toggle-on":"toggle-off",selected:f,onClick:function(){function b(){return d("showAllOres")}return b}(),children:f?"All Ores":"Ores in Machine"}),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:v.length&&v.sort(h).map(function(b){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:(0,a.toTitleCase)(b.name),buttons:(0,e.createComponentVNode)(2,o.Dropdown,{width:"120px",color:b.processing===0&&"red"||b.processing===1&&"green"||b.processing===2&&"blue"||b.processing===3&&"yellow",options:S,selected:S[b.processing],onSelected:function(){function g(y){return d("toggleSmelting",{ore:b.ore,set:S.indexOf(y)})}return g}()}),children:(0,e.createComponentVNode)(2,o.Box,{inline:!0,children:(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:b.amount})})},b.ore)})||(0,e.createComponentVNode)(2,o.Box,{color:"bad",textAlign:"center",children:"No ores in machine."})})})}},94702:function(x,r,n){"use strict";r.__esModule=!0,r.MiningStackingConsole=void 0;var e=n(58734),a=n(40946),t=n(62188),o=n(11790),m=n(11477),V=r.MiningStackingConsole=function(){function k(S,N){var h=(0,t.useBackend)(N),s=h.act,l=h.data,u=l.stacktypes,i=l.stackingAmt;return(0,e.createComponentVNode)(2,m.Window,{width:400,height:500,resizable:!0,children:(0,e.createComponentVNode)(2,m.Window.Content,{children:(0,e.createComponentVNode)(2,o.Section,{title:"Stacker Controls",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Stacking",children:(0,e.createComponentVNode)(2,o.NumberInput,{fluid:!0,value:i,minValue:1,maxValue:50,stepPixelSize:5,onChange:function(){function c(d,p){return s("change_stack",{amt:p})}return c}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Divider),u.length&&u.sort().map(function(c){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:(0,a.toTitleCase)(c.type),buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"eject",onClick:function(){function d(){return s("release_stack",{stack:c.type})}return d}(),children:"Eject"}),children:(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:c.amt})},c.type)})||(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Empty",color:"average",children:"No stacks in machine."})]})})})})}return k}()},677:function(x,r,n){"use strict";r.__esModule=!0,r.MiningVendor=void 0;var e=n(58734),a=n(40946),t=n(62188),o=n(11790),m=n(11477),V=n(23415),k=["title","items"];function S(i,c){if(i==null)return{};var d={},p=Object.keys(i),v,f;for(f=0;f =0)&&(d[v]=i[v]);return d}var N={Alphabetical:function(){function i(c,d){return c-d}return i}(),"By availability":function(){function i(c,d){return-(c.affordable-d.affordable)}return i}(),"By price":function(){function i(c,d){return c.price-d.price}return i}()},h=r.MiningVendor=function(){function i(c,d){return(0,e.createComponentVNode)(2,m.Window,{width:400,height:450,resizable:!0,children:(0,e.createComponentVNode)(2,m.Window.Content,{className:"Layout__content--flexColumn",scrollable:!0,children:[(0,e.createComponentVNode)(2,V.MiningUser,{insertIdText:"Please insert an ID in order to make purchases."}),(0,e.createComponentVNode)(2,l),(0,e.createComponentVNode)(2,s)]})})}return i}(),s=function(c,d){var p=(0,t.useBackend)(d),v=p.act,f=p.data,C=f.has_id,b=f.id,g=f.items,y=(0,t.useLocalState)(d,"search",""),B=y[0],L=y[1],I=(0,t.useLocalState)(d,"sort","Alphabetical"),w=I[0],T=I[1],M=(0,t.useLocalState)(d,"descending",!1),A=M[0],R=M[1],O=(0,a.createSearch)(B,function(D){return D[0]}),_=!1,P=Object.entries(g).map(function(D,z){var U=Object.entries(D[1]).filter(O).map(function(W){return W[1].affordable=C&&b.points>=W[1].price,W[1]}).sort(N[w]);if(U.length!==0)return A&&(U=U.reverse()),_=!0,(0,e.createComponentVNode)(2,u,{title:D[0],items:U},D[0])});return(0,e.createComponentVNode)(2,o.Flex.Item,{grow:"1",overflow:"auto",children:(0,e.createComponentVNode)(2,o.Section,{children:_?P:(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"No items matching your criteria was found!"})})})},l=function(c,d){var p=(0,t.useLocalState)(d,"search",""),v=p[0],f=p[1],C=(0,t.useLocalState)(d,"sort",""),b=C[0],g=C[1],y=(0,t.useLocalState)(d,"descending",!1),B=y[0],L=y[1];return(0,e.createComponentVNode)(2,o.Box,{mb:"0.5rem",children:(0,e.createComponentVNode)(2,o.Flex,{width:"100%",children:[(0,e.createComponentVNode)(2,o.Flex.Item,{grow:"1",mr:"0.5rem",children:(0,e.createComponentVNode)(2,o.Input,{placeholder:"Search by item name..",width:"100%",onInput:function(){function I(w,T){return f(T)}return I}()})}),(0,e.createComponentVNode)(2,o.Flex.Item,{basis:"30%",children:(0,e.createComponentVNode)(2,o.Dropdown,{selected:"Alphabetical",options:Object.keys(N),width:"100%",lineHeight:"19px",onSelected:function(){function I(w){return g(w)}return I}()})}),(0,e.createComponentVNode)(2,o.Flex.Item,{children:(0,e.createComponentVNode)(2,o.Button,{icon:B?"arrow-down":"arrow-up",height:"19px",tooltip:B?"Descending order":"Ascending order",tooltipPosition:"bottom-end",ml:"0.5rem",onClick:function(){function I(){return L(!B)}return I}()})})]})})},u=function(c,d){var p=(0,t.useBackend)(d),v=p.act,f=p.data,C=c.title,b=c.items,g=S(c,k);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Collapsible,Object.assign({open:!0,title:C},g,{children:b.map(function(y){return(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,o.Box,{display:"inline-block",verticalAlign:"middle",lineHeight:"20px",style:{float:"left"},children:y.name}),(0,e.createComponentVNode)(2,o.Button,{disabled:!f.has_id||f.id.points =450?"Overcharged":p>=250?"Good Charge":"Low Charge":p>=250?"NIF Power Requirement met.":p>=150?"Fluctuations in available power.":"Power failure imminent."},i=function(p,v){var f=(0,a.useBackend)(v),C=f.act,b=f.config,g=f.data,y=g.nif_percent,B=g.nif_stat,L=g.last_notification,I=g.nutrition,w=g.isSynthetic,T=g.modules,M=p.setViewing;return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"NIF Condition",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:y,minValue:0,maxValue:100,ranges:{good:[50,1/0],average:[25,50],bad:[-1/0,0]},children:[l(B,y)," (",(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:y}),"%)"]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"NIF Power",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:I,minValue:0,maxValue:700,ranges:{good:[250,1/0],average:[150,250],bad:[0,150]},children:u(I,w)})})]}),(0,e.createComponentVNode)(2,t.Section,{level:2,title:"NIFSoft Modules",mt:1,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:T.map(function(A){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:A.name,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"trash",color:"bad",confirmContent:"UNINSTALL?",confirmIcon:"trash",tooltip:"Uninstall Module",tooltipPosition:"left",onClick:function(){function R(){return C("uninstall",{module:A.ref})}return R}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"search",onClick:function(){function R(){return M(A)}return R}(),tooltip:"View Information",tooltipPosition:"left"})],4),children:A.activates&&(0,e.createComponentVNode)(2,t.Button,{fluid:!0,selected:A.active,content:A.stat_text,onClick:function(){function R(){return C("toggle_module",{module:A.ref})}return R}()})||(0,e.createComponentVNode)(2,t.Box,{children:A.stat_text})},A.ref)})})})]})},c=function(p,v){var f=(0,a.useBackend)(v),C=f.act,b=f.data,g=b.theme;return(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"NIF Theme",verticalAlign:"top",children:(0,e.createComponentVNode)(2,t.Dropdown,{width:"100%",placeholder:"Default",selected:g,options:h,onSelected:function(){function y(B){return C("setTheme",{theme:B})}return y}()})})})}},97540:function(x,r,n){"use strict";r.__esModule=!0,r.NTNetRelay=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=n(84288),V=r.NTNetRelay=function(){function N(h,s){var l=(0,a.useBackend)(s),u=l.act,i=l.data,c=i.dos_crashed,d=i.enabled,p=i.dos_overload,v=i.dos_capacity,f=(0,e.createComponentVNode)(2,k);return c&&(f=(0,e.createComponentVNode)(2,S)),(0,e.createComponentVNode)(2,o.Window,{width:c?700:500,height:c?600:300,resizable:!0,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:f})})}return N}(),k=function(h,s){var l=(0,a.useBackend)(s),u=l.act,i=l.data,c=i.dos_crashed,d=i.enabled,p=i.dos_overload,v=i.dos_capacity;return(0,e.createComponentVNode)(2,t.Section,{title:"Status",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"power-off",selected:d,content:"Relay "+(d?"On":"Off"),onClick:function(){function f(){return u("toggle")}return f}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Network Buffer Status",children:[p," / ",v," GQ"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Options",children:(0,e.createComponentVNode)(2,t.Button,{icon:"exclamation-triangle",content:"Purge network blacklist",onClick:function(){function f(){return u("purge")}return f}()})})]})})},S=function(h,s){var l=(0,a.useBackend)(s),u=l.act,i=l.data;return(0,e.createComponentVNode)(2,m.FullscreenNotice,{title:"ERROR",children:[(0,e.createComponentVNode)(2,t.Box,{fontSize:"1.5rem",bold:!0,color:"bad",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"exclamation-triangle",verticalAlign:"middle",size:3,mr:"1rem"}),(0,e.createVNode)(1,"h2",null,"NETWORK BUFFERS OVERLOADED",16),(0,e.createVNode)(1,"h3",null,"Overload Recovery Mode",16),(0,e.createVNode)(1,"i",null,"This system is suffering temporary outage due to overflow of traffic buffers. Until buffered traffic is processed, all further requests will be dropped. Frequent occurences of this error may indicate insufficient hardware capacity of your network. Please contact your network planning department for instructions on how to resolve this issue.",16),(0,e.createVNode)(1,"h3",null,"ADMINISTRATIVE OVERRIDE",16),(0,e.createVNode)(1,"b",null," CAUTION - Data loss may occur ",16)]}),(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"exclamation-triangle",content:"Purge buffered traffic",onClick:function(){function c(){return u("restart")}return c}()})})]})}},4024:function(x,r,n){"use strict";r.__esModule=!0,r.Newscaster=void 0;var e=n(58734),a=n(40946),t=n(62188),o=n(11790),m=n(11477),V=n(45246),k="Main Menu",S="New Channel",N="View List",h="New Story",s="Print",l="New Wanted",u="View Wanted",i="View Selected Channel",c=r.Newscaster=function(){function I(w,T){var M=(0,t.useBackend)(T),A=M.act,R=M.data,O=R.screen,_=R.user;return(0,e.createComponentVNode)(2,m.Window,{width:600,height:600,resizable:!0,children:(0,e.createComponentVNode)(2,m.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,V.TemporaryNotice,{decode:!0}),(0,e.createComponentVNode)(2,d)]})})}return I}(),d=function(w,T){var M=(0,t.useBackend)(T),A=M.act,R=M.data,O=R.user,_=(0,t.useSharedState)(T,"screen",k),P=_[0],D=_[1],z=L[P];return(0,e.createComponentVNode)(2,o.Box,{children:(0,e.createComponentVNode)(2,z,{setScreen:D})})},p=function(w,T){var M=(0,t.useBackend)(T),A=M.act,R=M.data,O=R.securityCaster,_=R.wanted_issue,P=w.setScreen;return(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Section,{title:"Main Menu",children:[_&&(0,e.createComponentVNode)(2,o.Button,{fluid:!0,icon:"eye",onClick:function(){function D(){return P(u)}return D}(),color:"bad",children:"Read WANTED Issue"}),(0,e.createComponentVNode)(2,o.Button,{fluid:!0,icon:"eye",onClick:function(){function D(){return P(N)}return D}(),children:"View Feed Channels"}),(0,e.createComponentVNode)(2,o.Button,{fluid:!0,icon:"plus",onClick:function(){function D(){return P(S)}return D}(),children:"Create Feed Channel"}),(0,e.createComponentVNode)(2,o.Button,{fluid:!0,icon:"plus",onClick:function(){function D(){return P(h)}return D}(),children:"Create Feed Message"}),(0,e.createComponentVNode)(2,o.Button,{fluid:!0,icon:"print",onClick:function(){function D(){return P(s)}return D}(),children:"Print Newspaper"})]}),!!O&&(0,e.createComponentVNode)(2,o.Section,{title:"Feed Security Functions",children:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,icon:"plus",onClick:function(){function D(){return P(l)}return D}(),children:'Manage "Wanted" Issue'})})],0)},v=function(w,T){var M=(0,t.useBackend)(T),A=M.act,R=M.data,O=R.channel_name,_=R.c_locked,P=R.user,D=w.setScreen;return(0,e.createComponentVNode)(2,o.Section,{title:"Creating new Feed Channel",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"undo",onClick:function(){function z(){return D(k)}return z}(),children:"Back"}),children:[(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Channel Name",children:(0,e.createComponentVNode)(2,o.Input,{fluid:!0,value:(0,a.decodeHtmlEntities)(O),onInput:function(){function z(U,W){return A("set_channel_name",{val:W})}return z}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Channel Author",color:"good",children:P}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Accept Public Feeds",children:(0,e.createComponentVNode)(2,o.Button,{icon:_?"lock":"lock-open",selected:!_,onClick:function(){function z(){return A("set_channel_lock")}return z}(),children:_?"No":"Yes"})})]}),(0,e.createComponentVNode)(2,o.Button,{fluid:!0,color:"good",icon:"plus",onClick:function(){function z(){return A("submit_new_channel")}return z}(),children:"Submit Channel"}),(0,e.createComponentVNode)(2,o.Button,{fluid:!0,color:"bad",icon:"undo",onClick:function(){function z(){return D(k)}return z}(),children:"Cancel"})]})},f=function(w,T){var M=(0,t.useBackend)(T),A=M.act,R=M.data,O=R.channels,_=w.setScreen;return(0,e.createComponentVNode)(2,o.Section,{title:"Station Feed Channels",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"undo",onClick:function(){function P(){return _(k)}return P}(),children:"Back"}),children:O.map(function(P){return(0,e.createComponentVNode)(2,o.Button,{fluid:!0,icon:"eye",color:P.admin?"good":P.censored?"bad":"",onClick:function(){function D(){A("show_channel",{show_channel:P.ref}),_(i)}return D}(),children:(0,a.decodeHtmlEntities)(P.name)},P.name)})})},C=function(w,T){var M=(0,t.useBackend)(T),A=M.act,R=M.data,O=R.channel_name,_=R.user,P=R.title,D=R.msg,z=R.photo_data,U=w.setScreen,W={"white-space":"nowrap"},K={width:"100%","word-break":"break-all","word-wrap":"break-word"};return(0,e.createComponentVNode)(2,o.Section,{title:"Creating new Feed Message...",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"undo",onClick:function(){function H(){return U(k)}return H}(),children:"Back"}),children:[(0,e.createVNode)(1,"table",null,[(0,e.createVNode)(1,"tr",null,[(0,e.createVNode)(1,"td",null,"Receiving Channel:",16,{style:W}),(0,e.createVNode)(1,"td",null,(0,e.createComponentVNode)(2,o.Button,{fluid:!0,onClick:function(){function H(){return A("set_channel_receiving")}return H}(),children:O||"Unset"}),2,{colspan:2})],4),(0,e.createVNode)(1,"tr",null,[(0,e.createVNode)(1,"td",null,"Message Author:",16,{style:W}),(0,e.createVNode)(1,"td","color-good",_,0,{colspan:2})],4),(0,e.createVNode)(1,"tr",null,[(0,e.createVNode)(1,"td",null,"Message Title:",16,{style:W}),(0,e.createVNode)(1,"td",null,P||"(no title yet)",0,{style:K}),(0,e.createVNode)(1,"td",null,(0,e.createComponentVNode)(2,o.Button,{verticalAlign:"top",onClick:function(){function H(){return A("set_new_title")}return H}(),icon:"pen",tooltip:"Edit Title",tooltipPosition:"left"}),2)],4),(0,e.createVNode)(1,"tr",null,[(0,e.createVNode)(1,"td",null,"Message Body:",16,{style:W}),(0,e.createVNode)(1,"td",null,D||"(no message yet)",0,{style:K}),(0,e.createVNode)(1,"td",null,(0,e.createComponentVNode)(2,o.Button,{verticalAlign:"top",onClick:function(){function H(){return A("set_new_message")}return H}(),icon:"pen",tooltip:"Edit Message",tooltipPosition:"left"}),2)],4),(0,e.createVNode)(1,"tr",null,[(0,e.createVNode)(1,"td",null,"Attach Photo:",16,{style:W}),(0,e.createVNode)(1,"td",null,(0,e.createComponentVNode)(2,o.Button,{fluid:!0,icon:"image",onClick:function(){function H(){return A("set_attachment")}return H}(),children:z?"Photo Attached":"No Photo"}),2,{colspan:2})],4)],4,{style:{width:"calc(100% + 0.5em)",margin:"-0.25em -0.25em 0 -0.25em",padding:0}}),(0,e.createComponentVNode)(2,o.Button,{fluid:!0,color:"good",icon:"plus",onClick:function(){function H(){return A("submit_new_message")}return H}(),children:"Submit Message"}),(0,e.createComponentVNode)(2,o.Button,{fluid:!0,color:"bad",icon:"undo",onClick:function(){function H(){return U(k)}return H}(),children:"Cancel"})]})},b=function(w,T){var M=(0,t.useBackend)(T),A=M.act,R=M.data,O=R.total_num,_=R.active_num,P=R.message_num,D=R.paper_remaining,z=w.setScreen;return(0,e.createComponentVNode)(2,o.Section,{title:"Printing",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"undo",onClick:function(){function U(){return z(k)}return U}(),children:"Back"}),children:[(0,e.createComponentVNode)(2,o.Box,{color:"label",mb:1,children:["Newscaster currently serves a total of ",O," Feed channels,"," ",_," of which are active, and a total of ",P," Feed stories."]}),(0,e.createComponentVNode)(2,o.LabeledList,{children:(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Liquid Paper remaining",children:[D*100," cm\xB3"]})}),(0,e.createComponentVNode)(2,o.Button,{mt:1,fluid:!0,color:"good",icon:"plus",onClick:function(){function U(){return A("print_paper")}return U}(),children:"Print Paper"}),(0,e.createComponentVNode)(2,o.Button,{fluid:!0,color:"bad",icon:"undo",onClick:function(){function U(){return z(k)}return U}(),children:"Cancel"})]})},g=function(w,T){var M=(0,t.useBackend)(T),A=M.act,R=M.data,O=R.channel_name,_=R.msg,P=R.photo_data,D=R.user,z=R.wanted_issue,U=w.setScreen;return(0,e.createComponentVNode)(2,o.Section,{title:"Wanted Issue Handler",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"undo",onClick:function(){function W(){return U(k)}return W}(),children:"Back"}),children:[(0,e.createComponentVNode)(2,o.LabeledList,{children:[!!z&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Already In Circulation",children:"A wanted issue is already in circulation. You can edit or cancel it below."}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Criminal Name",children:(0,e.createComponentVNode)(2,o.Input,{fluid:!0,value:(0,a.decodeHtmlEntities)(O),onInput:function(){function W(K,H){return A("set_channel_name",{val:H})}return W}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Description",children:(0,e.createComponentVNode)(2,o.Input,{fluid:!0,value:(0,a.decodeHtmlEntities)(_),onInput:function(){function W(K,H){return A("set_wanted_desc",{val:H})}return W}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Attach Photo",children:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,icon:"image",onClick:function(){function W(){return A("set_attachment")}return W}(),children:P?"Photo Attached":"No Photo"})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Prosecutor",color:"good",children:D})]}),(0,e.createComponentVNode)(2,o.Button,{mt:1,fluid:!0,color:"good",icon:"plus",onClick:function(){function W(){return A("submit_wanted")}return W}(),children:"Submit Wanted Issue"}),!!z&&(0,e.createComponentVNode)(2,o.Button,{fluid:!0,color:"average",icon:"minus",onClick:function(){function W(){return A("cancel_wanted")}return W}(),children:"Take Down Issue"}),(0,e.createComponentVNode)(2,o.Button,{fluid:!0,color:"bad",icon:"undo",onClick:function(){function W(){return U(k)}return W}(),children:"Cancel"})]})},y=function(w,T){var M=(0,t.useBackend)(T),A=M.act,R=M.data,O=R.wanted_issue,_=w.setScreen;return O?(0,e.createComponentVNode)(2,o.Section,{title:"--STATIONWIDE WANTED ISSUE--",color:"bad",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"undo",onClick:function(){function P(){return _(k)}return P}(),children:"Back"}),children:(0,e.createComponentVNode)(2,o.Box,{color:"white",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Submitted by",color:"good",children:(0,a.decodeHtmlEntities)(O.author)}),(0,e.createComponentVNode)(2,o.LabeledList.Divider),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Criminal",children:(0,a.decodeHtmlEntities)(O.criminal)}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Description",children:(0,a.decodeHtmlEntities)(O.desc)}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Photo",children:O.img&&(0,e.createVNode)(1,"img",null,null,1,{src:O.img})||"None"})]})})}):(0,e.createComponentVNode)(2,o.Section,{title:"No Outstanding Wanted Issues",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"undo",onClick:function(){function P(){return _(k)}return P}(),children:"Back"}),children:"There are no wanted issues currently outstanding."})},B=function(w,T){var M=(0,t.useBackend)(T),A=M.act,R=M.data,O=R.viewing_channel,_=R.securityCaster,P=R.company,D=w.setScreen;return O?(0,e.createComponentVNode)(2,o.Section,{title:(0,a.decodeHtmlEntities)(O.name),buttons:(0,e.createFragment)([!!_&&(0,e.createComponentVNode)(2,o.Button.Confirm,{color:"bad",icon:"ban",confirmIcon:"ban",content:"Issue D-Notice",onClick:function(){function z(){return A("toggle_d_notice",{ref:O.ref})}return z}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"undo",onClick:function(){function z(){return D(N)}return z}(),children:"Back"})],0),children:[(0,e.createComponentVNode)(2,o.LabeledList,{children:(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Channel Created By",children:_&&(0,e.createComponentVNode)(2,o.Button.Confirm,{color:"bad",icon:"strikethrough",confirmIcon:"strikethrough",content:(0,a.decodeHtmlEntities)(O.author),tooltip:"Censor?",confirmContent:"Censor Author",onClick:function(){function z(){return A("censor_channel_author",{ref:O.ref})}return z}()})||(0,e.createComponentVNode)(2,o.Box,{children:(0,a.decodeHtmlEntities)(O.author)})})}),!!O.censored&&(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:["ATTENTION: This channel has been deemed as threatening to the welfare of the station, and marked with a ",P," D-Notice. No further feed story additions are allowed while the D-Notice is in effect."]}),!!O.messages.length&&O.messages.map(function(z){return(0,e.createComponentVNode)(2,o.Section,{children:["- ",(0,a.decodeHtmlEntities)(z.body),!!z.img&&(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createVNode)(1,"img",null,null,1,{src:"data:image/png;base64,"+z.img}),(0,a.decodeHtmlEntities)(z.caption)||null]}),(0,e.createComponentVNode)(2,o.Box,{color:"grey",children:["[Story by ",(0,a.decodeHtmlEntities)(z.author)," -"," ",z.timestamp,"]"]}),!!_&&(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button.Confirm,{mt:1,color:"bad",icon:"strikethrough",confirmIcon:"strikethrough",content:"Censor Story",onClick:function(){function U(){return A("censor_channel_story_body",{ref:z.ref})}return U}()}),(0,e.createComponentVNode)(2,o.Button.Confirm,{color:"bad",icon:"strikethrough",confirmIcon:"strikethrough",content:"Censor Author",onClick:function(){function U(){return A("censor_channel_story_author",{ref:z.ref})}return U}()})],4)]},z.ref)})||!O.censored&&(0,e.createComponentVNode)(2,o.Box,{color:"average",children:"No feed messages found in channel."})]}):(0,e.createComponentVNode)(2,o.Section,{title:"Channel Not Found",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"undo",onClick:function(){function z(){return D(N)}return z}(),children:"Back"}),children:"The channel you were looking for no longer exists."})},L={};L[k]=p,L[S]=v,L[N]=f,L[h]=C,L[s]=b,L[l]=g,L[u]=y,L[i]=B},83945:function(x,r,n){"use strict";r.__esModule=!0,r.NoticeBoard=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=r.NoticeBoard=function(){function V(k,S){var N=(0,a.useBackend)(S),h=N.act,s=N.data,l=s.notices;return(0,e.createComponentVNode)(2,o.Window,{width:330,height:300,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:l.length?(0,e.createComponentVNode)(2,t.LabeledList,{children:l.map(function(u,i){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:u.name,children:[u.isphoto&&(0,e.createComponentVNode)(2,t.Button,{icon:"image",content:"Look",onClick:function(){function c(){return h("look",{ref:u.ref})}return c}()})||u.ispaper&&(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{icon:"sticky-note",content:"Read",onClick:function(){function c(){return h("read",{ref:u.ref})}return c}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"pen",content:"Write",onClick:function(){function c(){return h("write",{ref:u.ref})}return c}()})],4)||"Unknown Entity",(0,e.createComponentVNode)(2,t.Button,{icon:"minus-circle",content:"Remove",onClick:function(){function c(){return h("remove",{ref:u.ref})}return c}()})]},i)})}):(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"No notices posted here."})})})})}return V}()},45835:function(x,r,n){"use strict";r.__esModule=!0,r.NtosAccessDecrypter=void 0;var e=n(58734),a=n(62188),t=n(11477),o=n(85418),m=n(11790),V=r.NtosAccessDecrypter=function(){function k(S,N){var h=(0,a.useBackend)(N),s=h.act,l=h.data,u=l.message,i=l.running,c=l.rate,d=l.factor,p=l.regions,v=function(){function C(b){for(var g="";g.lengthd?g+="0":g+="1";return g}return C}(),f=45;return(0,e.createComponentVNode)(2,t.NtosWindow,{width:600,height:600,theme:"syndicate",children:(0,e.createComponentVNode)(2,t.NtosWindow.Content,{children:u&&(0,e.createComponentVNode)(2,m.NoticeBox,{children:u})||i&&(0,e.createComponentVNode)(2,m.Section,{children:["Attempting to decrypt network access codes. Please wait. Rate:"," ",c," PHash/s",(0,e.createComponentVNode)(2,m.Box,{children:v(f)}),(0,e.createComponentVNode)(2,m.Box,{children:v(f)}),(0,e.createComponentVNode)(2,m.Box,{children:v(f)}),(0,e.createComponentVNode)(2,m.Box,{children:v(f)}),(0,e.createComponentVNode)(2,m.Box,{children:v(f)}),(0,e.createComponentVNode)(2,m.Button,{fluid:!0,icon:"ban",onClick:function(){function C(){return s("PRG_reset")}return C}(),children:"Abort"})]})||(0,e.createComponentVNode)(2,m.Section,{title:"Pick access code to decrypt",children:p.length&&(0,e.createComponentVNode)(2,o.IdentificationComputerRegions,{actName:"PRG_execute"})||(0,e.createComponentVNode)(2,m.Box,{children:"Please insert ID card."})})})})}return k}()},32974:function(x,r,n){"use strict";r.__esModule=!0,r.NtosArcade=void 0;var e=n(58734),a=n(37655),t=n(62188),o=n(11790),m=n(11477),V=r.NtosArcade=function(){function k(S,N){var h=(0,t.useBackend)(N),s=h.act,l=h.data;return(0,e.createComponentVNode)(2,m.NtosWindow,{width:450,height:350,children:(0,e.createComponentVNode)(2,m.NtosWindow.Content,{children:(0,e.createComponentVNode)(2,o.Section,{title:"Outbomb Cuban Pete Ultra",textAlign:"center",children:[(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,o.Grid,{children:[(0,e.createComponentVNode)(2,o.Grid.Column,{size:2,children:[(0,e.createComponentVNode)(2,o.Box,{m:1}),(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Player Health",children:(0,e.createComponentVNode)(2,o.ProgressBar,{value:l.PlayerHitpoints,minValue:0,maxValue:30,ranges:{olive:[31,1/0],good:[20,31],average:[10,20],bad:[-1/0,10]},children:[l.PlayerHitpoints,"HP"]})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Player Magic",children:(0,e.createComponentVNode)(2,o.ProgressBar,{value:l.PlayerMP,minValue:0,maxValue:10,ranges:{purple:[11,1/0],violet:[3,11],bad:[-1/0,3]},children:[l.PlayerMP,"MP"]})})]}),(0,e.createComponentVNode)(2,o.Box,{my:1,mx:4}),(0,e.createComponentVNode)(2,o.Section,{backgroundColor:l.PauseState===1?"#1b3622":"#471915",children:l.Status})]}),(0,e.createComponentVNode)(2,o.Grid.Column,{children:[(0,e.createComponentVNode)(2,o.ProgressBar,{value:l.Hitpoints,minValue:0,maxValue:45,ranges:{good:[30,1/0],average:[5,30],bad:[-1/0,5]},children:[(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:l.Hitpoints}),"HP"]}),(0,e.createComponentVNode)(2,o.Box,{m:1}),(0,e.createComponentVNode)(2,o.Section,{inline:!0,width:"156px",textAlign:"center",children:(0,e.createVNode)(1,"img",null,null,1,{src:(0,a.resolveAsset)(l.BossID)})})]})]}),(0,e.createComponentVNode)(2,o.Box,{my:1,mx:4}),(0,e.createComponentVNode)(2,o.Button,{icon:"fist-raised",tooltip:"Go in for the kill!",tooltipPosition:"top",disabled:l.GameActive===0||l.PauseState===1,onClick:function(){function u(){return s("Attack")}return u}(),content:"Attack!"}),(0,e.createComponentVNode)(2,o.Button,{icon:"band-aid",tooltip:"Heal yourself!",tooltipPosition:"top",disabled:l.GameActive===0||l.PauseState===1,onClick:function(){function u(){return s("Heal")}return u}(),content:"Heal!"}),(0,e.createComponentVNode)(2,o.Button,{icon:"magic",tooltip:"Recharge your magic!",tooltipPosition:"top",disabled:l.GameActive===0||l.PauseState===1,onClick:function(){function u(){return s("Recharge_Power")}return u}(),content:"Recharge!"})]}),(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,o.Button,{icon:"sync-alt",tooltip:"One more game couldn't hurt.",tooltipPosition:"top",disabled:l.GameActive===1,onClick:function(){function u(){return s("Start_Game")}return u}(),content:"Begin Game"}),(0,e.createComponentVNode)(2,o.Button,{icon:"ticket-alt",tooltip:"Claim at your local Arcade Computer for Prizes!",tooltipPosition:"top",disabled:l.GameActive===1,onClick:function(){function u(){return s("Dispense_Tickets")}return u}(),content:"Claim Tickets"})]}),(0,e.createComponentVNode)(2,o.Box,{color:l.TicketCount>=1?"good":"normal",children:["Earned Tickets: ",l.TicketCount]})]})})})}return k}()},95982:function(x,r,n){"use strict";r.__esModule=!0,r.NtosAtmosControl=void 0;var e=n(58734),a=n(11477),t=n(49907),o=r.NtosAtmosControl=function(){function m(){return(0,e.createComponentVNode)(2,a.NtosWindow,{width:870,height:708,resizable:!0,children:(0,e.createComponentVNode)(2,a.NtosWindow.Content,{children:(0,e.createComponentVNode)(2,t.AtmosControlContent)})})}return m}()},70824:function(x,r,n){"use strict";r.__esModule=!0,r.selectCameras=r.prevNextCamera=r.NtosCameraConsole=void 0;var e=n(58734),a=n(45445),t=n(75671),o=n(40946),m=n(62188),V=n(11790),k=n(11477),S=n(48902),N=r.prevNextCamera=function(){function l(u,i){var c,d;if(!i)return[];var p=u.findIndex(function(v){return v.name===i.name});return[(c=u[p-1])==null?void 0:c.name,(d=u[p+1])==null?void 0:d.name]}return l}(),h=r.selectCameras=function(){function l(u,i,c){i===void 0&&(i=""),c===void 0&&(c="");var d=(0,o.createSearch)(i,function(p){return p.name});return(0,t.flow)([(0,a.filter)(function(p){return p==null?void 0:p.name}),i&&(0,a.filter)(d),c&&(0,a.filter)(function(p){return p.networks.includes(c)}),(0,a.sortBy)(function(p){return p.name})])(u)}return l}(),s=r.NtosCameraConsole=function(){function l(u,i){var c=(0,m.useBackend)(i),d=c.act,p=c.data,v=p.mapRef,f=p.activeCamera,C=h(p.cameras),b=N(C,f),g=b[0],y=b[1];return(0,e.createComponentVNode)(2,k.NtosWindow,{width:870,height:708,resizable:!0,children:(0,e.createComponentVNode)(2,k.NtosWindow.Content,{children:[(0,e.createVNode)(1,"div","CameraConsole__left",(0,e.createComponentVNode)(2,S.CameraConsoleContent),2),(0,e.createVNode)(1,"div","CameraConsole__right",[(0,e.createVNode)(1,"div","CameraConsole__toolbar",[(0,e.createVNode)(1,"b",null,"Camera: ",16),f&&f.name||"\u2014"],0),(0,e.createVNode)(1,"div","CameraConsole__toolbarRight",[(0,e.createTextVNode)("SEL:"),(0,e.createComponentVNode)(2,V.Button,{icon:"chevron-left",disabled:!g,onClick:function(){function B(){return d("switch_camera",{name:g})}return B}()}),(0,e.createComponentVNode)(2,V.Button,{icon:"chevron-right",disabled:!y,onClick:function(){function B(){return d("switch_camera",{name:y})}return B}()}),(0,e.createTextVNode)("| PAN:"),(0,e.createComponentVNode)(2,V.Button,{icon:"chevron-left",onClick:function(){function B(){return d("pan",{dir:8})}return B}()}),(0,e.createComponentVNode)(2,V.Button,{icon:"chevron-up",onClick:function(){function B(){return d("pan",{dir:1})}return B}()}),(0,e.createComponentVNode)(2,V.Button,{icon:"chevron-right",onClick:function(){function B(){return d("pan",{dir:4})}return B}()}),(0,e.createComponentVNode)(2,V.Button,{icon:"chevron-down",onClick:function(){function B(){return d("pan",{dir:2})}return B}()})],4),(0,e.createComponentVNode)(2,V.ByondUi,{className:"CameraConsole__map",params:{id:v,type:"map"}})],4)]})})}return l}()},30536:function(x,r,n){"use strict";r.__esModule=!0,r.NtosCommunicationsConsole=void 0;var e=n(58734),a=n(11477),t=n(29340),o=r.NtosCommunicationsConsole=function(){function m(){return(0,e.createComponentVNode)(2,a.NtosWindow,{width:400,height:600,resizable:!0,children:(0,e.createComponentVNode)(2,a.NtosWindow.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.CommunicationsConsoleContent)})})}return m}()},94821:function(x,r,n){"use strict";r.__esModule=!0,r.NtosConfiguration=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=r.NtosConfiguration=function(){function V(k,S){var N=(0,a.useBackend)(S),h=N.act,s=N.data,l=s.PC_device_theme,u=s.power_usage,i=s.battery_exists,c=s.battery,d=c===void 0?{}:c,p=s.disk_size,v=s.disk_used,f=s.hardware,C=f===void 0?[]:f;return(0,e.createComponentVNode)(2,o.NtosWindow,{theme:l,width:520,height:630,resizable:!0,children:(0,e.createComponentVNode)(2,o.NtosWindow.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,t.Section,{title:"Power Supply",buttons:(0,e.createComponentVNode)(2,t.Box,{inline:!0,bold:!0,mr:1,children:["Power Draw: ",u,"W"]}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Battery Status",color:!i&&"average",children:i?(0,e.createComponentVNode)(2,t.ProgressBar,{value:d.charge,minValue:0,maxValue:d.max,ranges:{good:[d.max/2,1/0],average:[d.max/4,d.max/2],bad:[-1/0,d.max/4]},children:[d.charge," / ",d.max]}):"Not Available"})})}),(0,e.createComponentVNode)(2,t.Section,{title:"File System",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:v,minValue:0,maxValue:p,color:"good",children:[v," GQ / ",p," GQ"]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Hardware Components",children:C.map(function(b){return(0,e.createComponentVNode)(2,t.Section,{title:b.name,level:2,buttons:(0,e.createFragment)([!b.critical&&(0,e.createComponentVNode)(2,t.Button.Checkbox,{content:"Enabled",checked:b.enabled,mr:1,onClick:function(){function g(){return h("PC_toggle_component",{name:b.name})}return g}()}),(0,e.createComponentVNode)(2,t.Box,{inline:!0,bold:!0,mr:1,children:["Power Usage: ",b.powerusage,"W"]})],0),children:b.desc},b.name)})})]})})}return V}()},56722:function(x,r,n){"use strict";r.__esModule=!0,r.NtosCrewManifest=void 0;var e=n(58734),a=n(11477),t=n(68285),o=r.NtosCrewManifest=function(){function m(){return(0,e.createComponentVNode)(2,a.NtosWindow,{width:800,height:600,resizable:!0,children:(0,e.createComponentVNode)(2,a.NtosWindow.Content,{children:(0,e.createComponentVNode)(2,t.CrewManifestContent)})})}return m}()},9562:function(x,r,n){"use strict";r.__esModule=!0,r.NtosCrewMonitor=void 0;var e=n(58734),a=n(11477),t=n(59694),o=r.NtosCrewMonitor=function(){function m(){return(0,e.createComponentVNode)(2,a.NtosWindow,{width:800,height:600,resizable:!0,children:(0,e.createComponentVNode)(2,a.NtosWindow.Content,{children:(0,e.createComponentVNode)(2,t.CrewMonitorContent)})})}return m}()},20716:function(x,r,n){"use strict";r.__esModule=!0,r.NtosDigitalWarrant=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=n(45445),V=r.NtosDigitalWarrant=function(){function h(s,l){var u=(0,a.useBackend)(l),i=u.act,c=u.data,d=c.warrantname,p=c.warrantcharges,v=c.warrantauth,f=c.type,C=c.allwarrants,b=(0,e.createComponentVNode)(2,k);return v&&(b=(0,e.createComponentVNode)(2,N)),(0,e.createComponentVNode)(2,o.NtosWindow,{width:500,height:350,resizable:!0,children:(0,e.createComponentVNode)(2,o.NtosWindow.Content,{scrollable:!0,children:b})})}return h}(),k=function(s,l){var u=(0,a.useBackend)(l),i=u.act,c=u.data,d=c.allwarrants;return(0,e.createComponentVNode)(2,t.Section,{title:"Warrants",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"plus",fluid:!0,onClick:function(){function p(){return i("addwarrant")}return p}(),children:"Create New Warrant"}),(0,e.createComponentVNode)(2,t.Section,{level:2,title:"Arrest Warrants",children:(0,e.createComponentVNode)(2,S,{type:"arrest"})}),(0,e.createComponentVNode)(2,t.Section,{level:2,title:"Search Warrants",children:(0,e.createComponentVNode)(2,S,{type:"search"})})]})},S=function(s,l){var u=(0,a.useBackend)(l),i=u.act,c=u.data,d=s.type,p=c.allwarrants,v=(0,m.filter)(function(f){return f.arrestsearch===d})(p);return(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:d==="arrest"?"Name":"Location"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:d==="arrest"?"Charges":"Reason"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Authorized By"}),(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,children:"Edit"})]}),v.length&&v.map(function(f){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:f.warrantname}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:f.charges}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:f.auth}),(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,children:(0,e.createComponentVNode)(2,t.Button,{icon:"pen",onClick:function(){function C(){return i("editwarrant",{id:f.id})}return C}()})})]},f.id)})||(0,e.createComponentVNode)(2,t.Table.Row,{children:(0,e.createComponentVNode)(2,t.Table.Cell,{colspan:"3",color:"bad",children:["No ",d," warrants found."]})})]})},N=function(s,l){var u=(0,a.useBackend)(l),i=u.act,c=u.data,d=c.warrantname,p=c.warrantcharges,v=c.warrantauth,f=c.type,C=f==="arrest",b=f==="arrest"?"Name":"Location",g=f==="arrest"?"Charges":"Reason";return(0,e.createComponentVNode)(2,t.Section,{title:C?"Editing Arrest Warrant":"Editing Search Warrant",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{icon:"save",onClick:function(){function y(){return i("savewarrant")}return y}(),children:"Save"}),(0,e.createComponentVNode)(2,t.Button,{color:"bad",icon:"trash",onClick:function(){function y(){return i("deletewarrant")}return y}(),children:"Delete"}),(0,e.createComponentVNode)(2,t.Button,{icon:"undo",onClick:function(){function y(){return i("back")}return y}(),children:"Back"})],4),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:b,buttons:C&&(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{icon:"search",onClick:function(){function y(){return i("editwarrantname")}return y}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"pen",onClick:function(){function y(){return i("editwarrantnamecustom")}return y}()})],4)||(0,e.createComponentVNode)(2,t.Button,{icon:"pen",onClick:function(){function y(){return i("editwarrantnamecustom")}return y}()}),children:d}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:g,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"pen",onClick:function(){function y(){return i("editwarrantcharges")}return y}()}),children:p}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Authorized By",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"balance-scale",onClick:function(){function y(){return i("editwarrantauth")}return y}()}),children:v})]})})}},14559:function(x,r,n){"use strict";r.__esModule=!0,r.NtosEmailAdministration=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=n(42185),V=r.NtosEmailAdministration=function(){function s(l,u){var i=(0,a.useBackend)(u),c=i.act,d=i.data,p=d.error,v=d.cur_title,f=d.current_account,C=(0,e.createComponentVNode)(2,k);return p?C=(0,e.createComponentVNode)(2,S):v?C=(0,e.createComponentVNode)(2,N):f&&(C=(0,e.createComponentVNode)(2,h)),(0,e.createComponentVNode)(2,o.NtosWindow,{width:600,height:450,resizable:!0,children:(0,e.createComponentVNode)(2,o.NtosWindow.Content,{scrollable:!0,children:C})})}return s}(),k=function(l,u){var i=(0,a.useBackend)(u),c=i.act,d=i.data,p=d.accounts;return(0,e.createComponentVNode)(2,t.Section,{title:"Welcome to the NTNet Email Administration System",children:[(0,e.createComponentVNode)(2,t.Box,{italic:!0,mb:1,children:"SECURE SYSTEM - Have your identification ready"}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"plus",onClick:function(){function v(){return c("newaccount")}return v}(),children:"Create New Account"}),(0,e.createComponentVNode)(2,t.Box,{bold:!0,mt:1,mb:1,children:"Select account to administrate"}),p.map(function(v){return(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"eye",onClick:function(){function f(){return c("viewaccount",{viewaccount:v.uid})}return f}(),children:v.login},v.uid)})]})},S=function(l,u){var i=(0,a.useBackend)(u),c=i.act,d=i.data,p=d.error;return(0,e.createComponentVNode)(2,t.Section,{title:"Message",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"undo",onClick:function(){function v(){return c("back")}return v}(),children:"Back"}),children:p})},N=function(l,u){var i=(0,a.useBackend)(u),c=i.act,d=i.data;return(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,m.NtosEmailClientViewMessage,{administrator:!0})})},h=function(l,u){var i=(0,a.useBackend)(u),c=i.act,d=i.data,p=d.error,v=d.msg_title,f=d.msg_body,C=d.msg_timestamp,b=d.msg_source,g=d.current_account,y=d.cur_suspended,B=d.messages,L=d.accounts;return(0,e.createComponentVNode)(2,t.Section,{title:"Viewing "+g+" in admin mode",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"undo",onClick:function(){function I(){return c("back")}return I}(),children:"Back"}),children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Account Status",children:(0,e.createComponentVNode)(2,t.Button,{color:y?"bad":"",icon:"ban",tooltip:(y?"Uns":"S")+"uspend Account?",onClick:function(){function I(){return c("ban")}return I}(),children:y?"Suspended":"Normal"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Actions",children:(0,e.createComponentVNode)(2,t.Button,{icon:"key",onClick:function(){function I(){return c("changepass")}return I}(),children:"Change Password"})})]}),(0,e.createComponentVNode)(2,t.Section,{level:2,title:"Messages",children:B.length&&(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Source"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Title"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Received at"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Actions"})]}),B.map(function(I){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:I.source}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:I.title}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:I.timestamp}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"eye",onClick:function(){function w(){return c("viewmail",{viewmail:I.uid})}return w}(),children:"View"})})]},I.uid)})]})||(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"No messages found in selected account."})})]})}},42185:function(x,r,n){"use strict";r.__esModule=!0,r.NtosEmailClientViewMessage=r.NtosEmailClient=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=n(5339),V=r.NtosEmailClient=function(){function c(d,p){var v=(0,a.useBackend)(p),f=v.act,C=v.data,b=C.PC_device_theme,g=C.error,y=C.downloading,B=C.current_account,L=(0,e.createComponentVNode)(2,i);return g?L=(0,e.createComponentVNode)(2,u,{error:g}):y?L=(0,e.createComponentVNode)(2,k):B&&(L=(0,e.createComponentVNode)(2,S)),(0,e.createComponentVNode)(2,o.NtosWindow,{resizable:!0,theme:b,children:(0,e.createComponentVNode)(2,o.NtosWindow.Content,{scrollable:!0,children:L})})}return c}(),k=function(d,p){var v=(0,a.useBackend)(p),f=v.act,C=v.data,b=C.down_filename,g=C.down_progress,y=C.down_size,B=C.down_speed;return(0,e.createComponentVNode)(2,t.Section,{title:"Downloading...",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"File",children:[b," (",y," GQ)"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Speed",children:[(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:B})," GQ/s"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Progress",children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:"good",value:g,maxValue:y,children:[g,"/",y," (",(0,m.round)(g/y*100,1),"%)"]})})]})})},S=function(d,p){var v=(0,a.useBackend)(p),f=v.act,C=v.data,b=C.current_account,g=C.addressbook,y=C.new_message,B=C.cur_title,L=(0,e.createComponentVNode)(2,N);return g?L=(0,e.createComponentVNode)(2,s):y?L=(0,e.createComponentVNode)(2,l):B&&(L=(0,e.createComponentVNode)(2,h)),(0,e.createComponentVNode)(2,t.Section,{title:"Logged in as: "+b,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{icon:"plus",tooltip:"New Message",tooltipPosition:"left",onClick:function(){function I(){return f("new_message")}return I}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"cogs",tooltip:"Change Password",tooltipPosition:"left",onClick:function(){function I(){return f("changepassword")}return I}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"sign-out-alt",tooltip:"Log Out",tooltipPosition:"left",onClick:function(){function I(){return f("logout")}return I}()})],4),children:L})},N=function(d,p){var v=(0,a.useBackend)(p),f=v.act,C=v.data,b=C.current_account,g=C.folder,y=C.messagecount,B=C.messages;return(0,e.createComponentVNode)(2,t.Section,{level:2,noTopPadding:!0,children:[(0,e.createComponentVNode)(2,t.Tabs,{children:[(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:g==="Inbox",onClick:function(){function L(){return f("set_folder",{set_folder:"Inbox"})}return L}(),children:"Inbox"}),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:g==="Spam",onClick:function(){function L(){return f("set_folder",{set_folder:"Spam"})}return L}(),children:"Spam"}),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:g==="Deleted",onClick:function(){function L(){return f("set_folder",{set_folder:"Deleted"})}return L}(),children:"Deleted"})]}),y&&(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Source"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Title"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Received At"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Actions"})]}),B.map(function(L){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:L.source}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:L.title}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:L.timestamp}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"eye",onClick:function(){function I(){return f("view",{view:L.uid})}return I}(),tooltip:"View"}),(0,e.createComponentVNode)(2,t.Button,{icon:"share",onClick:function(){function I(){return f("reply",{reply:L.uid})}return I}(),tooltip:"Reply"}),(0,e.createComponentVNode)(2,t.Button,{color:"bad",icon:"trash",onClick:function(){function I(){return f("delete",{delete:L.uid})}return I}(),tooltip:"Delete"})]})]},L.timestamp+L.title)})]})})||(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:["No emails found in ",g,"."]})]})},h=r.NtosEmailClientViewMessage=function(){function c(d,p){var v=(0,a.useBackend)(p),f=v.act,C=v.data,b=d.administrator,g=C.cur_title,y=C.cur_source,B=C.cur_timestamp,L=C.cur_body,I=C.cur_hasattachment,w=C.cur_attachment_filename,T=C.cur_attachment_size,M=C.cur_uid;return(0,e.createComponentVNode)(2,t.Section,{title:g,buttons:b?(0,e.createComponentVNode)(2,t.Button,{icon:"times",onClick:function(){function A(){return f("back")}return A}()}):(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{icon:"share",tooltip:"Reply",tooltipPosition:"left",onClick:function(){function A(){return f("reply",{reply:M})}return A}()}),(0,e.createComponentVNode)(2,t.Button,{color:"bad",icon:"trash",tooltip:"Delete",tooltipPosition:"left",onClick:function(){function A(){return f("delete",{delete:M})}return A}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"save",tooltip:"Save To Disk",tooltipPosition:"left",onClick:function(){function A(){return f("save",{save:M})}return A}()}),I&&(0,e.createComponentVNode)(2,t.Button,{icon:"paperclip",tooltip:"Save Attachment",tooltipPosition:"left",onClick:function(){function A(){return f("downloadattachment")}return A}()})||null,(0,e.createComponentVNode)(2,t.Button,{icon:"times",tooltip:"Close",tooltipPosition:"left",onClick:function(){function A(){return f("cancel",{cancel:M})}return A}()})],0),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"From",children:y}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"At",children:B}),I&&!b&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Attachment",color:"average",children:[w," (",T,"GQ)"]})||null,(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Message",verticalAlign:"top",children:(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createVNode)(1,"div",null,null,1,{dangerouslySetInnerHTML:{__html:L}})})})]})})}return c}(),s=function(d,p){var v=(0,a.useBackend)(p),f=v.act,C=v.data,b=C.accounts;return(0,e.createComponentVNode)(2,t.Section,{title:"Address Book",level:2,buttons:(0,e.createComponentVNode)(2,t.Button,{color:"bad",icon:"times",onClick:function(){function g(){return f("set_recipient",{set_recipient:null})}return g}()}),children:b.map(function(g){return(0,e.createComponentVNode)(2,t.Button,{content:g.login,fluid:!0,onClick:function(){function y(){return f("set_recipient",{set_recipient:g.login})}return y}()},g.login)})})},l=function(d,p){var v=(0,a.useBackend)(p),f=v.act,C=v.data,b=C.current_account,g=C.msg_title,y=C.msg_recipient,B=C.msg_body,L=C.msg_hasattachment,I=C.msg_attachment_filename,w=C.msg_attachment_size;return(0,e.createComponentVNode)(2,t.Section,{title:"New Message",level:2,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{icon:"share",onClick:function(){function T(){return f("send")}return T}(),children:"Send Message"}),(0,e.createComponentVNode)(2,t.Button,{color:"bad",icon:"times",onClick:function(){function T(){return f("cancel")}return T}()})],4),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Title",children:(0,e.createComponentVNode)(2,t.Input,{fluid:!0,value:g,onInput:function(){function T(M,A){return f("edit_title",{val:A})}return T}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Recipient",verticalAlign:"top",children:(0,e.createComponentVNode)(2,t.Flex,{children:[(0,e.createComponentVNode)(2,t.Flex.Item,{grow:1,children:(0,e.createComponentVNode)(2,t.Input,{fluid:!0,value:y,onInput:function(){function T(M,A){return f("edit_recipient",{val:A})}return T}()})}),(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"address-book",onClick:function(){function T(){return f("addressbook")}return T}(),tooltip:"Find Receipients",tooltipPosition:"left"})})]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Attachments",buttons:L&&(0,e.createComponentVNode)(2,t.Button,{color:"bad",icon:"times",onClick:function(){function T(){return f("remove_attachment")}return T}(),children:"Remove Attachment"})||(0,e.createComponentVNode)(2,t.Button,{icon:"plus",onClick:function(){function T(){return f("addattachment")}return T}(),children:"Add Attachment"}),children:L&&(0,e.createComponentVNode)(2,t.Box,{inline:!0,children:[I," (",w,"GQ)"]})||null}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Message",verticalAlign:"top",children:(0,e.createComponentVNode)(2,t.Flex,{children:[(0,e.createComponentVNode)(2,t.Flex.Item,{grow:1,children:(0,e.createComponentVNode)(2,t.Section,{width:"99%",inline:!0,children:(0,e.createVNode)(1,"div",null,null,1,{dangerouslySetInnerHTML:{__html:B}})})}),(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Button,{verticalAlign:"top",onClick:function(){function T(){return f("edit_body")}return T}(),icon:"pen",tooltip:"Edit Message",tooltipPosition:"left"})})]})})]})})},u=function(d,p){var v=(0,a.useBackend)(p),f=v.act,C=d.error;return(0,e.createComponentVNode)(2,t.Section,{title:"Notification",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-left",content:"Return",onClick:function(){function b(){return f("reset")}return b}()}),children:(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:C})})},i=function(d,p){var v=(0,a.useBackend)(p),f=v.act,C=v.data,b=C.stored_login,g=C.stored_password;return(0,e.createComponentVNode)(2,t.Section,{title:"Please Log In",children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Email address",children:(0,e.createComponentVNode)(2,t.Input,{fluid:!0,value:b,onInput:function(){function y(B,L){return f("edit_login",{val:L})}return y}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Password",children:(0,e.createComponentVNode)(2,t.Input,{fluid:!0,value:g,onInput:function(){function y(B,L){return f("edit_password",{val:L})}return y}()})})]}),(0,e.createComponentVNode)(2,t.Button,{icon:"sign-in-alt",onClick:function(){function y(){return f("login")}return y}(),children:"Log In"})]})}},96365:function(x,r,n){"use strict";r.__esModule=!0,r.NtosFileManager=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=r.NtosFileManager=function(){function k(S,N){var h=(0,a.useBackend)(N),s=h.act,l=h.data,u=l.PC_device_theme,i=l.usbconnected,c=l.filename,d=l.filedata,p=l.error,v=l.files,f=v===void 0?[]:v,C=l.usbfiles,b=C===void 0?[]:C;return(0,e.createComponentVNode)(2,o.NtosWindow,{resizable:!0,theme:u,children:(0,e.createComponentVNode)(2,o.NtosWindow.Content,{scrollable:!0,children:[c&&(0,e.createComponentVNode)(2,t.Section,{title:"Viewing File "+c,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{icon:"pen",content:"Edit",onClick:function(){function g(){return s("PRG_edit")}return g}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"print",content:"Print",onClick:function(){function g(){return s("PRG_printfile")}return g}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"times",content:"Close",onClick:function(){function g(){return s("PRG_closefile")}return g}()})],4),children:d&&(0,e.createVNode)(1,"div",null,null,1,{dangerouslySetInnerHTML:{__html:d}})})||(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,V,{files:f,usbconnected:i,onUpload:function(){function g(y){return s("PRG_copytousb",{uid:y})}return g}(),onDelete:function(){function g(y){return s("PRG_deletefile",{uid:y})}return g}(),onOpen:function(){function g(y){return s("PRG_openfile",{uid:y})}return g}(),onRename:function(){function g(y,B){return s("PRG_rename",{uid:y,new_name:B})}return g}(),onDuplicate:function(){function g(y){return s("PRG_clone",{uid:y})}return g}()})}),i&&(0,e.createComponentVNode)(2,t.Section,{title:"Data Disk",children:(0,e.createComponentVNode)(2,V,{usbmode:!0,files:b,usbconnected:i,onUpload:function(){function g(y){return s("PRG_copyfromusb",{uid:y})}return g}(),onDelete:function(){function g(y){return s("PRG_deletefile",{uid:y})}return g}(),onOpen:function(){function g(y){return s("PRG_openfile",{uid:y})}return g}(),onRename:function(){function g(y,B){return s("PRG_rename",{uid:y,new_name:B})}return g}(),onDuplicate:function(){function g(y){return s("PRG_clone",{uid:y})}return g}()})})||null,(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"plus",onClick:function(){function g(){return s("PRG_newtextfile")}return g}(),children:"New Text File"})})],0),p&&(0,e.createComponentVNode)(2,t.Flex,{wrap:"wrap",position:"fixed",bottom:"5px",children:[(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.Button,{bottom:"0",left:"0",icon:"ban",onClick:function(){function g(){return s("PRG_clearerror")}return g}()})})}),(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.Flex.Item,{grow:!0,children:p})})]})]})})}return k}(),V=function(S){var N=S.files,h=N===void 0?[]:N,s=S.usbconnected,l=S.usbmode,u=S.onUpload,i=S.onDelete,c=S.onRename,d=S.onOpen;return(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"File"}),(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,children:"Type"}),(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,children:"Size"})]}),h.map(function(p){return(0,e.createComponentVNode)(2,t.Table.Row,{className:"candystripe",children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:p.undeletable?p.name:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button.Input,{width:"80%",content:p.name,currentValue:p.name,tooltip:"Rename",onCommit:function(){function v(f,C){return c(p.uid,C)}return v}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Open",onClick:function(){function v(){return d(p.uid)}return v}()})],4)}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:p.type}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:p.size}),(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,children:!p.undeletable&&(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"trash",confirmIcon:"times",confirmContent:"",tooltip:"Delete",onClick:function(){function v(){return i(p.uid)}return v}()}),!!s&&(l?(0,e.createComponentVNode)(2,t.Button,{icon:"download",tooltip:"Download",onClick:function(){function v(){return u(p.uid)}return v}()}):(0,e.createComponentVNode)(2,t.Button,{icon:"upload",tooltip:"Upload",onClick:function(){function v(){return u(p.uid)}return v}()}))],0)})]},p.name)})]})}},39032:function(x,r,n){"use strict";r.__esModule=!0,r.NtosIdentificationComputer=void 0;var e=n(58734),a=n(11477),t=n(85418),o=r.NtosIdentificationComputer=function(){function m(){return(0,e.createComponentVNode)(2,a.NtosWindow,{width:600,height:700,resizable:!0,children:(0,e.createComponentVNode)(2,a.NtosWindow.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.IdentificationComputerContent,{ntos:!0})})})}return m}()},41448:function(x,r,n){"use strict";r.__esModule=!0,r.NtosMain=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m={compconfig:"cog",ntndownloader:"download",filemanager:"folder",smmonitor:"radiation",alarmmonitor:"bell",cardmod:"id-card",arcade:"gamepad",ntnrc_client:"comment-alt",nttransfer:"exchange-alt",powermonitor:"plug",job_manage:"address-book",crewmani:"clipboard-list",robocontrol:"robot",atmosscan:"thermometer-half",shipping:"tags"},V=r.NtosMain=function(){function k(S,N){var h=(0,a.useBackend)(N),s=h.act,l=h.data,u=l.device_theme,i=l.programs,c=i===void 0?[]:i,d=l.has_light,p=l.light_on,v=l.comp_light_color,f=l.removable_media,C=f===void 0?[]:f,b=l.login,g=b===void 0?[]:b;return(0,e.createComponentVNode)(2,o.NtosWindow,{title:u==="syndicate"&&"Syndix Main Menu"||"NtOS Main Menu",theme:u,width:400,height:500,resizable:!0,children:(0,e.createComponentVNode)(2,o.NtosWindow.Content,{scrollable:!0,children:[!!d&&(0,e.createComponentVNode)(2,t.Section,{children:[(0,e.createComponentVNode)(2,t.Button,{width:"144px",icon:"lightbulb",selected:p,onClick:function(){function y(){return s("PC_toggle_light")}return y}(),children:["Flashlight: ",p?"ON":"OFF"]}),(0,e.createComponentVNode)(2,t.Button,{ml:1,onClick:function(){function y(){return s("PC_light_color")}return y}(),children:["Color:",(0,e.createComponentVNode)(2,t.ColorBox,{ml:1,color:v})]})]}),(0,e.createComponentVNode)(2,t.Section,{title:"User Login",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"eject",content:"Eject ID",disabled:!g.IDName,onClick:function(){function y(){return s("PC_Eject_Disk",{name:"ID"})}return y}()}),children:(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{children:["ID Name: ",g.IDName]}),(0,e.createComponentVNode)(2,t.Table.Row,{children:["Assignment: ",g.IDJob]})]})}),!!C.length&&(0,e.createComponentVNode)(2,t.Section,{title:"Media Eject",children:(0,e.createComponentVNode)(2,t.Table,{children:C.map(function(y){return(0,e.createComponentVNode)(2,t.Table.Row,{children:(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,color:"transparent",icon:"eject",content:y,onClick:function(){function B(){return s("PC_Eject_Disk",{name:y})}return B}()})})},y)})})}),(0,e.createComponentVNode)(2,t.Section,{title:"Programs",children:(0,e.createComponentVNode)(2,t.Table,{children:c.map(function(y){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,color:"transparent",icon:m[y.name]||"window-maximize-o",content:y.desc,onClick:function(){function B(){return s("PC_runprogram",{name:y.name})}return B}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,width:"18px",children:!!y.running&&(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"times",tooltip:"Close program",tooltipPosition:"left",onClick:function(){function B(){return s("PC_killprogram",{name:y.name})}return B}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,width:"18px",children:(0,e.createComponentVNode)(2,t.Button,{color:"transparent",tooltip:"Set Autorun",tooltipPosition:"left",selected:y.autorun,onClick:function(){function B(){return s("PC_setautorun",{name:y.name})}return B}(),children:"AR"})})]},y.name)})})})]})})}return k}()},28774:function(x,r,n){"use strict";r.__esModule=!0,r.NtosNetChat=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=r.NtosNetChat=function(){function V(k,S){var N=(0,a.useBackend)(S),h=N.act,s=N.data,l=s.can_admin,u=s.adminmode,i=s.authed,c=s.username,d=s.active_channel,p=s.is_operator,v=s.all_channels,f=v===void 0?[]:v,C=s.clients,b=C===void 0?[]:C,g=s.messages,y=g===void 0?[]:g,B=d!==null,L=i||u;return(0,e.createComponentVNode)(2,o.NtosWindow,{width:900,height:675,children:(0,e.createComponentVNode)(2,o.NtosWindow.Content,{children:(0,e.createComponentVNode)(2,t.Section,{height:"600px",children:(0,e.createComponentVNode)(2,t.Table,{height:"580px",children:(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{verticalAlign:"top",style:{width:"200px"},children:[(0,e.createComponentVNode)(2,t.Box,{height:"560px",overflowY:"scroll",children:[(0,e.createComponentVNode)(2,t.Button.Input,{fluid:!0,content:"New Channel...",onCommit:function(){function I(w,T){return h("PRG_newchannel",{new_channel_name:T})}return I}()}),f.map(function(I){return(0,e.createComponentVNode)(2,t.Button,{fluid:!0,content:I.chan,selected:I.id===d,color:"transparent",onClick:function(){function w(){return h("PRG_joinchannel",{id:I.id})}return w}()},I.chan)})]}),(0,e.createComponentVNode)(2,t.Button.Input,{fluid:!0,mt:1,content:c+"...",currentValue:c,onCommit:function(){function I(w,T){return h("PRG_changename",{new_name:T})}return I}()}),!!l&&(0,e.createComponentVNode)(2,t.Button,{fluid:!0,bold:!0,content:"ADMIN MODE: "+(u?"ON":"OFF"),color:u?"bad":"good",onClick:function(){function I(){return h("PRG_toggleadmin")}return I}()})]}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:[(0,e.createComponentVNode)(2,t.Box,{height:"560px",overflowY:"scroll",children:B&&(L?y.map(function(I){return(0,e.createComponentVNode)(2,t.Box,{children:I.msg},I.msg)}):(0,e.createComponentVNode)(2,t.Box,{textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"exclamation-triangle",mt:4,fontSize:"40px"}),(0,e.createComponentVNode)(2,t.Box,{mt:1,bold:!0,fontSize:"18px",children:"THIS CHANNEL IS PASSWORD PROTECTED"}),(0,e.createComponentVNode)(2,t.Box,{mt:1,children:"INPUT PASSWORD TO ACCESS"})]}))}),(0,e.createComponentVNode)(2,t.Input,{fluid:!0,selfClear:!0,mt:1,onEnter:function(){function I(w,T){return h("PRG_speak",{message:T})}return I}()})]}),(0,e.createComponentVNode)(2,t.Table.Cell,{verticalAlign:"top",style:{width:"150px"},children:[(0,e.createComponentVNode)(2,t.Box,{height:"465px",overflowY:"scroll",children:b.map(function(I){return(0,e.createComponentVNode)(2,t.Box,{children:I.name},I.name)})}),B&&L&&(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button.Input,{fluid:!0,content:"Save log...",defaultValue:"new_log",onCommit:function(){function I(w,T){return h("PRG_savelog",{log_name:T})}return I}()}),(0,e.createComponentVNode)(2,t.Button.Confirm,{fluid:!0,content:"Leave Channel",onClick:function(){function I(){return h("PRG_leavechannel")}return I}()})],4),!!p&&i&&(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button.Confirm,{fluid:!0,content:"Delete Channel",onClick:function(){function I(){return h("PRG_deletechannel")}return I}()}),(0,e.createComponentVNode)(2,t.Button.Input,{fluid:!0,content:"Rename Channel...",onCommit:function(){function I(w,T){return h("PRG_renamechannel",{new_name:T})}return I}()}),(0,e.createComponentVNode)(2,t.Button.Input,{fluid:!0,content:"Set Password...",onCommit:function(){function I(w,T){return h("PRG_setpassword",{new_password:T})}return I}()})],4)]})]})})})})})}return V}()},73924:function(x,r,n){"use strict";r.__esModule=!0,r.NtosNetDosContent=r.NtosNetDos=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=r.NtosNetDos=function(){function k(){return(0,e.createComponentVNode)(2,o.NtosWindow,{width:400,height:250,theme:"syndicate",children:(0,e.createComponentVNode)(2,o.NtosWindow.Content,{children:(0,e.createComponentVNode)(2,V)})})}return k}(),V=r.NtosNetDosContent=function(){function k(S,N){var h=(0,a.useBackend)(N),s=h.act,l=h.data,u=l.relays,i=u===void 0?[]:u,c=l.focus,d=l.target,p=l.speed,v=l.overload,f=l.capacity,C=l.error;if(C)return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.NoticeBox,{children:C}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,content:"Reset",textAlign:"center",onClick:function(){function y(){return s("PRG_reset")}return y}()})],4);var b=function(){function y(B){for(var L="",I=v/f;L.lengthI?L+="0":L+="1";return L}return y}(),g=45;return d?(0,e.createComponentVNode)(2,t.Section,{fontFamily:"monospace",textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Box,{children:["CURRENT SPEED: ",p," GQ/s"]}),(0,e.createComponentVNode)(2,t.Box,{children:b(g)}),(0,e.createComponentVNode)(2,t.Box,{children:b(g)}),(0,e.createComponentVNode)(2,t.Box,{children:b(g)}),(0,e.createComponentVNode)(2,t.Box,{children:b(g)}),(0,e.createComponentVNode)(2,t.Box,{children:b(g)})]}):(0,e.createComponentVNode)(2,t.Section,{children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Target",children:i.map(function(y){return(0,e.createComponentVNode)(2,t.Button,{content:y.id,selected:c===y.id,onClick:function(){function B(){return s("PRG_target_relay",{targid:y.id})}return B}()},y.id)})})}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,bold:!0,content:"EXECUTE",color:"bad",textAlign:"center",disabled:!c,mt:1,onClick:function(){function y(){return s("PRG_execute")}return y}()})]})}return k}()},72973:function(x,r,n){"use strict";r.__esModule=!0,r.NtosNetDownloader=void 0;var e=n(58734),a=n(5339),t=n(62188),o=n(11790),m=n(11477),V=r.NtosNetDownloader=function(){function S(N,h){var s=(0,t.useBackend)(h),l=s.act,u=s.data,i=u.PC_device_theme,c=u.disk_size,d=u.disk_used,p=u.downloadable_programs,v=p===void 0?[]:p,f=u.error,C=u.hacked_programs,b=C===void 0?[]:C,g=u.hackedavailable;return(0,e.createComponentVNode)(2,m.NtosWindow,{theme:i,width:480,height:735,resizable:!0,children:(0,e.createComponentVNode)(2,m.NtosWindow.Content,{scrollable:!0,children:[!!f&&(0,e.createComponentVNode)(2,o.NoticeBox,{children:[(0,e.createComponentVNode)(2,o.Box,{mb:1,children:f}),(0,e.createComponentVNode)(2,o.Button,{content:"Reset",onClick:function(){function y(){return l("PRG_reseterror")}return y}()})]}),(0,e.createComponentVNode)(2,o.Section,{children:(0,e.createComponentVNode)(2,o.LabeledList,{children:(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Disk usage",children:(0,e.createComponentVNode)(2,o.ProgressBar,{value:d,minValue:0,maxValue:c,children:d+" GQ / "+c+" GQ"})})})}),(0,e.createComponentVNode)(2,o.Section,{children:v.map(function(y){return(0,e.createComponentVNode)(2,k,{program:y},y.filename)})}),!!g&&(0,e.createComponentVNode)(2,o.Section,{title:"UNKNOWN Software Repository",children:[(0,e.createComponentVNode)(2,o.NoticeBox,{mb:1,children:"Please note that Nanotrasen does not recommend download of software from non-official servers."}),b.map(function(y){return(0,e.createComponentVNode)(2,k,{program:y},y.filename)})]})]})})}return S}(),k=function(N,h){var s=N.program,l=(0,t.useBackend)(h),u=l.act,i=l.data,c=i.disk_size,d=i.disk_used,p=i.downloadcompletion,v=i.downloading,f=i.downloadname,C=i.downloadsize,b=i.downloadspeed,g=i.downloads_queue,y=c-d;return(0,e.createComponentVNode)(2,o.Box,{mb:3,children:[(0,e.createComponentVNode)(2,o.Flex,{align:"baseline",children:[(0,e.createComponentVNode)(2,o.Flex.Item,{bold:!0,grow:1,children:s.filedesc}),(0,e.createComponentVNode)(2,o.Flex.Item,{color:"label",nowrap:!0,children:[s.size," GQ"]}),(0,e.createComponentVNode)(2,o.Flex.Item,{ml:2,width:"94px",textAlign:"center",children:s.filename===f&&(0,e.createComponentVNode)(2,o.ProgressBar,{color:"green",minValue:0,maxValue:C,value:p,children:[(0,a.round)(p/C*100,1),"% (",b,"GQ/s)"]})||g.indexOf(s.filename)!==-1&&(0,e.createComponentVNode)(2,o.Button,{icon:"ban",color:"bad",onClick:function(){function B(){return u("PRG_removequeued",{filename:s.filename})}return B}(),children:"Queued..."})||(0,e.createComponentVNode)(2,o.Button,{fluid:!0,icon:"download",content:"Download",disabled:s.size>y,onClick:function(){function B(){return u("PRG_downloadfile",{filename:s.filename})}return B}()})})]}),s.compatibility!=="Compatible"&&(0,e.createComponentVNode)(2,o.Box,{mt:1,italic:!0,fontSize:"12px",position:"relative",children:[(0,e.createComponentVNode)(2,o.Icon,{mx:1,color:"red",name:"times"}),"Incompatible!"]}),s.size>y&&(0,e.createComponentVNode)(2,o.Box,{mt:1,italic:!0,fontSize:"12px",position:"relative",children:[(0,e.createComponentVNode)(2,o.Icon,{mx:1,color:"red",name:"times"}),"Not enough disk space!"]}),(0,e.createComponentVNode)(2,o.Box,{mt:1,italic:!0,color:"label",fontSize:"12px",children:s.fileinfo})]})}},96255:function(x,r,n){"use strict";r.__esModule=!0,r.NtosNetMonitor=void 0;var e=n(58734),a=n(11790),t=n(62188),o=n(11477),m=r.NtosNetMonitor=function(){function V(k,S){var N=(0,t.useBackend)(S),h=N.act,s=N.data,l=s.ntnetrelays,u=s.ntnetstatus,i=s.config_softwaredownload,c=s.config_peertopeer,d=s.config_communication,p=s.config_systemcontrol,v=s.idsalarm,f=s.idsstatus,C=s.ntnetmaxlogs,b=s.maxlogs,g=s.minlogs,y=s.banned_nids,B=s.ntnetlogs,L=B===void 0?[]:B;return(0,e.createComponentVNode)(2,o.NtosWindow,{resizable:!0,children:(0,e.createComponentVNode)(2,o.NtosWindow.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,a.NoticeBox,{children:"WARNING: Disabling wireless transmitters when using a wireless device may prevent you from reenabling them!"}),(0,e.createComponentVNode)(2,a.Section,{title:"Wireless Connectivity",buttons:(0,e.createComponentVNode)(2,a.Button.Confirm,{icon:u?"power-off":"times",content:u?"ENABLED":"DISABLED",selected:u,onClick:function(){function I(){return h("toggleWireless")}return I}()}),children:l?(0,e.createComponentVNode)(2,a.LabeledList,{children:(0,e.createComponentVNode)(2,a.LabeledList.Item,{label:"Active NTNet Relays",children:l})}):"No Relays Connected"}),(0,e.createComponentVNode)(2,a.Section,{title:"Firewall Configuration",children:(0,e.createComponentVNode)(2,a.LabeledList,{children:[(0,e.createComponentVNode)(2,a.LabeledList.Item,{label:"Software Downloads",buttons:(0,e.createComponentVNode)(2,a.Button,{icon:i?"power-off":"times",content:i?"ENABLED":"DISABLED",selected:i,onClick:function(){function I(){return h("toggle_function",{id:"1"})}return I}()})}),(0,e.createComponentVNode)(2,a.LabeledList.Item,{label:"Peer to Peer Traffic",buttons:(0,e.createComponentVNode)(2,a.Button,{icon:c?"power-off":"times",content:c?"ENABLED":"DISABLED",selected:c,onClick:function(){function I(){return h("toggle_function",{id:"2"})}return I}()})}),(0,e.createComponentVNode)(2,a.LabeledList.Item,{label:"Communication Systems",buttons:(0,e.createComponentVNode)(2,a.Button,{icon:d?"power-off":"times",content:d?"ENABLED":"DISABLED",selected:d,onClick:function(){function I(){return h("toggle_function",{id:"3"})}return I}()})}),(0,e.createComponentVNode)(2,a.LabeledList.Item,{label:"Remote System Control",buttons:(0,e.createComponentVNode)(2,a.Button,{icon:p?"power-off":"times",content:p?"ENABLED":"DISABLED",selected:p,onClick:function(){function I(){return h("toggle_function",{id:"4"})}return I}()})})]})}),(0,e.createComponentVNode)(2,a.Section,{title:"Security Systems",children:[!!v&&(0,e.createFragment)([(0,e.createComponentVNode)(2,a.NoticeBox,{children:"NETWORK INCURSION DETECTED"}),(0,e.createComponentVNode)(2,a.Box,{italics:!0,children:"Abnormal activity has been detected in the network. Check system logs for more information"})],4),(0,e.createComponentVNode)(2,a.LabeledList,{children:[(0,e.createComponentVNode)(2,a.LabeledList.Item,{label:"Banned NIDs",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,a.Button,{icon:"ban",onClick:function(){function I(){return h("ban_nid")}return I}(),children:"Ban NID"}),(0,e.createComponentVNode)(2,a.Button,{icon:"balance-scale",onClick:function(){function I(){return h("unban_nid")}return I}(),children:"Unban NID"})],4),children:y.join(", ")||"None"}),(0,e.createComponentVNode)(2,a.LabeledList.Item,{label:"IDS Status",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,a.Button,{icon:f?"power-off":"times",content:f?"ENABLED":"DISABLED",selected:f,onClick:function(){function I(){return h("toggleIDS")}return I}()}),(0,e.createComponentVNode)(2,a.Button,{icon:"sync",content:"Reset",color:"bad",onClick:function(){function I(){return h("resetIDS")}return I}()})],4)}),(0,e.createComponentVNode)(2,a.LabeledList.Item,{label:"Max Log Count",buttons:(0,e.createComponentVNode)(2,a.NumberInput,{value:C,minValue:g,maxValue:b,width:"39px",onChange:function(){function I(w,T){return h("updatemaxlogs",{new_number:T})}return I}()})})]}),(0,e.createComponentVNode)(2,a.Section,{title:"System Log",level:2,buttons:(0,e.createComponentVNode)(2,a.Button.Confirm,{icon:"trash",content:"Clear Logs",onClick:function(){function I(){return h("purgelogs")}return I}()}),children:L.map(function(I){return(0,e.createComponentVNode)(2,a.Box,{className:"candystripe",children:I.entry},I.entry)})})]})]})})}return V}()},47198:function(x,r,n){"use strict";r.__esModule=!0,r.NtosNetTransfer=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=r.NtosNetTransfer=function(){function s(l,u){var i=(0,a.useBackend)(u),c=i.act,d=i.data,p=d.error,v=d.downloading,f=d.uploading,C=d.upload_filelist,b=(0,e.createComponentVNode)(2,h);return p?b=(0,e.createComponentVNode)(2,V):v?b=(0,e.createComponentVNode)(2,k):f?b=(0,e.createComponentVNode)(2,S):C.length&&(b=(0,e.createComponentVNode)(2,N)),(0,e.createComponentVNode)(2,o.NtosWindow,{width:575,height:700,resizable:!0,children:(0,e.createComponentVNode)(2,o.NtosWindow.Content,{scrollable:!0,children:b})})}return s}(),V=function(l,u){var i=(0,a.useBackend)(u),c=i.act,d=i.data,p=d.error;return(0,e.createComponentVNode)(2,t.Section,{title:"An error has occured during operation.",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"undo",onClick:function(){function v(){return c("PRG_reset")}return v}(),children:"Reset"}),children:["Additional Information: ",p]})},k=function(l,u){var i=(0,a.useBackend)(u),c=i.act,d=i.data,p=d.download_name,v=d.download_progress,f=d.download_size,C=d.download_netspeed;return(0,e.createComponentVNode)(2,t.Section,{title:"Download in progress",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Downloaded File",children:p}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Progress",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:v,maxValue:f,children:[v," / ",f," GQ"]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Transfer Speed",children:[C," GQ/s"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Controls",children:(0,e.createComponentVNode)(2,t.Button,{icon:"ban",onClick:function(){function b(){return c("PRG_reset")}return b}(),children:"Cancel Download"})})]})})},S=function(l,u){var i=(0,a.useBackend)(u),c=i.act,d=i.data,p=d.upload_clients,v=d.upload_filename,f=d.upload_haspassword;return(0,e.createComponentVNode)(2,t.Section,{title:"Server enabled",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Clients Connected",children:p}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Provided file",children:v}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Server Password",children:f?"Enabled":"Disabled"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Commands",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"lock",onClick:function(){function C(){return c("PRG_setpassword")}return C}(),children:"Set Password"}),(0,e.createComponentVNode)(2,t.Button,{icon:"ban",onClick:function(){function C(){return c("PRG_reset")}return C}(),children:"Cancel Upload"})]})]})})},N=function(l,u){var i=(0,a.useBackend)(u),c=i.act,d=i.data,p=d.upload_filelist;return(0,e.createComponentVNode)(2,t.Section,{title:"File transfer server ready.",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"undo",onClick:function(){function v(){return c("PRG_reset")}return v}(),children:"Cancel"}),children:[(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"lock",onClick:function(){function v(){return c("PRG_setpassword")}return v}(),children:"Set Password"}),(0,e.createComponentVNode)(2,t.Section,{title:"Pick file to serve.",level:2,children:p.map(function(v){return(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"upload",onClick:function(){function f(){return c("PRG_uploadfile",{uid:v.uid})}return f}(),children:[v.filename," (",v.size,"GQ)"]},v.uid)})})]})},h=function(l,u){var i=(0,a.useBackend)(u),c=i.act,d=i.data,p=d.servers;return(0,e.createComponentVNode)(2,t.Section,{title:"Available Files",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"upload",onClick:function(){function v(){return c("PRG_uploadmenu")}return v}(),children:"Send File"}),children:p.length&&(0,e.createComponentVNode)(2,t.LabeledList,{children:p.map(function(v){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:v.uid,children:[!!v.haspassword&&(0,e.createComponentVNode)(2,t.Icon,{name:"lock",mr:1}),v.filename,"\xA0 (",v.size,"GQ)\xA0",(0,e.createComponentVNode)(2,t.Button,{icon:"download",onClick:function(){function f(){return c("PRG_downloadfile",{uid:v.uid})}return f}(),children:"Download"})]},v.uid)})})||(0,e.createComponentVNode)(2,t.Box,{children:"No upload servers found."})})}},75627:function(x,r,n){"use strict";r.__esModule=!0,r.NtosNewsBrowser=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=n(37655),V=r.NtosNewsBrowser=function(){function h(s,l){var u=(0,a.useBackend)(l),i=u.act,c=u.data,d=c.article,p=c.download,v=c.message,f=(0,e.createComponentVNode)(2,S);return d?f=(0,e.createComponentVNode)(2,k):p&&(f=(0,e.createComponentVNode)(2,N)),(0,e.createComponentVNode)(2,o.NtosWindow,{width:575,height:750,resizable:!0,children:(0,e.createComponentVNode)(2,o.NtosWindow.Content,{scrollable:!0,children:[!!v&&(0,e.createComponentVNode)(2,t.NoticeBox,{children:[v," ",(0,e.createComponentVNode)(2,t.Button,{icon:"times",onClick:function(){function C(){return i("PRG_clearmessage")}return C}()})]}),f]})})}return h}(),k=function(s,l){var u=(0,a.useBackend)(l),i=u.act,c=u.data,d=c.article;if(!d)return(0,e.createComponentVNode)(2,t.Section,{children:"Error: Article not found."});var p=d.title,v=d.cover,f=d.content;return(0,e.createComponentVNode)(2,t.Section,{title:"Viewing: "+p,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{icon:"save",onClick:function(){function C(){return i("PRG_savearticle")}return C}(),children:"Save"}),(0,e.createComponentVNode)(2,t.Button,{icon:"times",onClick:function(){function C(){return i("PRG_reset")}return C}(),children:"Close"})],4),children:[!!v&&(0,e.createVNode)(1,"img",null,null,1,{src:(0,m.resolveAsset)(v)}),(0,e.createVNode)(1,"div",null,null,1,{dangerouslySetInnerHTML:{__html:f}})]})},S=function(s,l){var u=(0,a.useBackend)(l),i=u.act,c=u.data,d=c.showing_archived,p=c.all_articles;return(0,e.createComponentVNode)(2,t.Section,{title:"Articles List",buttons:(0,e.createComponentVNode)(2,t.Button.Checkbox,{onClick:function(){function v(){return i("PRG_toggle_archived")}return v}(),checked:d,children:"Show Archived"}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:p.length&&p.map(function(v){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:v.name,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"download",onClick:function(){function f(){return i("PRG_openarticle",{uid:v.uid})}return f}()}),children:[v.size," GQ"]},v.uid)})||(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Error",children:"There appear to be no outstanding news articles on NTNet today."})})})},N=function(s,l){var u=(0,a.useBackend)(l),i=u.act,c=u.data,d=c.download,p=d.download_progress,v=d.download_maxprogress,f=d.download_rate;return(0,e.createComponentVNode)(2,t.Section,{title:"Downloading...",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Progress",children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:"good",minValue:0,value:p,maxValue:v,children:[p," / ",v," GQ"]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Download Speed",children:[f," GQ/s"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Controls",children:(0,e.createComponentVNode)(2,t.Button,{icon:"ban",fluid:!0,onClick:function(){function C(){return i("PRG_reset")}return C}(),children:"Abort Download"})})]})})}},84804:function(x,r,n){"use strict";r.__esModule=!0,r.NtosOvermapNavigation=void 0;var e=n(58734),a=n(11477),t=n(85513),o=r.NtosOvermapNavigation=function(){function m(){return(0,e.createComponentVNode)(2,a.NtosWindow,{width:380,height:530,resizable:!0,children:(0,e.createComponentVNode)(2,a.NtosWindow.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.OvermapNavigationContent)})})}return m}()},91142:function(x,r,n){"use strict";r.__esModule=!0,r.NtosPowerMonitor=void 0;var e=n(58734),a=n(11477),t=n(8694),o=r.NtosPowerMonitor=function(){function m(){return(0,e.createComponentVNode)(2,a.NtosWindow,{width:550,height:700,resizable:!0,children:(0,e.createComponentVNode)(2,a.NtosWindow.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.PowerMonitorContent)})})}return m}()},95538:function(x,r,n){"use strict";r.__esModule=!0,r.NtosRCON=void 0;var e=n(58734),a=n(11477),t=n(23613),o=r.NtosRCON=function(){function m(){return(0,e.createComponentVNode)(2,a.NtosWindow,{width:630,height:440,resizable:!0,children:(0,e.createComponentVNode)(2,a.NtosWindow.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.RCONContent)})})}return m}()},23754:function(x,r,n){"use strict";r.__esModule=!0,r.NtosRevelation=void 0;var e=n(58734),a=n(11790),t=n(62188),o=n(11477),m=r.NtosRevelation=function(){function V(k,S){var N=(0,t.useBackend)(S),h=N.act,s=N.data,l=s.armed;return(0,e.createComponentVNode)(2,o.NtosWindow,{width:400,height:250,theme:"syndicate",children:(0,e.createComponentVNode)(2,o.NtosWindow.Content,{children:(0,e.createComponentVNode)(2,a.Section,{children:[(0,e.createComponentVNode)(2,a.Button.Input,{fluid:!0,content:"Obfuscate Name...",onCommit:function(){function u(i,c){return h("PRG_obfuscate",{new_name:c})}return u}(),mb:1}),(0,e.createComponentVNode)(2,a.LabeledList,{children:(0,e.createComponentVNode)(2,a.LabeledList.Item,{label:"Payload Status",buttons:(0,e.createComponentVNode)(2,a.Button,{content:l?"ARMED":"DISARMED",color:l?"bad":"average",onClick:function(){function u(){return h("PRG_arm")}return u}()})})}),(0,e.createComponentVNode)(2,a.Button,{fluid:!0,bold:!0,content:"ACTIVATE",textAlign:"center",color:"bad",disabled:!l})]})})})}return V}()},1446:function(x,r,n){"use strict";r.__esModule=!0,r.NtosShutoffMonitor=void 0;var e=n(58734),a=n(11477),t=n(56780),o=r.NtosShutoffMonitor=function(){function m(){return(0,e.createComponentVNode)(2,a.NtosWindow,{width:627,height:700,resizable:!0,children:(0,e.createComponentVNode)(2,a.NtosWindow.Content,{children:(0,e.createComponentVNode)(2,t.ShutoffMonitorContent)})})}return m}()},73068:function(x,r,n){"use strict";r.__esModule=!0,r.NtosStationAlertConsole=void 0;var e=n(58734),a=n(11477),t=n(93840),o=r.NtosStationAlertConsole=function(){function m(){return(0,e.createComponentVNode)(2,a.NtosWindow,{width:315,height:500,resizable:!0,children:(0,e.createComponentVNode)(2,a.NtosWindow.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.StationAlertConsoleContent)})})}return m}()},2329:function(x,r,n){"use strict";r.__esModule=!0,r.NtosSupermatterMonitor=void 0;var e=n(58734),a=n(11477),t=n(7287),o=r.NtosSupermatterMonitor=function(){function m(){return(0,e.createComponentVNode)(2,a.NtosWindow,{width:600,height:400,resizable:!0,children:(0,e.createComponentVNode)(2,a.NtosWindow.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.SupermatterMonitorContent)})})}return m}()},35452:function(x,r,n){"use strict";r.__esModule=!0,r.NtosUAV=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=r.NtosUAV=function(){function V(k,S){var N=(0,a.useBackend)(S),h=N.act,s=N.data,l=s.current_uav,u=s.signal_strength,i=s.in_use,c=s.paired_uavs;return(0,e.createComponentVNode)(2,o.NtosWindow,{width:600,height:500,resizable:!0,children:(0,e.createComponentVNode)(2,o.NtosWindow.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Selected UAV",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"UAV",children:l&&l.status||"[Not Connected]"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Signal",children:l&&u||"[Not Connected]"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power",children:l&&(0,e.createComponentVNode)(2,t.Button,{icon:"power-off",selected:l.power,onClick:function(){function d(){return h("power_uav")}return d}(),children:l.power?"Online":"Offline"})||"[Not Connected]"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Camera",children:l&&(0,e.createComponentVNode)(2,t.Button,{icon:"power-off",selected:i,disabled:!l.power,onClick:function(){function d(){return h("view_uav")}return d}(),children:l.power?"Available":"Unavailable"})||"[Not Connected]"})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Paired UAVs",children:c.length&&c.map(function(d){return(0,e.createComponentVNode)(2,t.Flex,{spacing:1,children:[(0,e.createComponentVNode)(2,t.Flex.Item,{grow:1,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"quidditch",onClick:function(){function p(){return h("switch_uav",{switch_uav:d.uavref})}return p}(),children:d.name})}),(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Button,{color:"bad",icon:"times",onClick:function(){function p(){return h("del_uav",{del_uav:d.uavref})}return p}()})})]},d.uavref)})||(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"No UAVs Paired."})})]})})}return V}()},79101:function(x,r,n){"use strict";r.__esModule=!0,r.NtosWordProcessor=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=r.NtosWordProcessor=function(){function V(k,S){var N=(0,a.useBackend)(S),h=N.act,s=N.data,l=s.PC_device_theme,u=s.error,i=s.browsing,c=s.files,d=s.usbconnected,p=s.usbfiles,v=s.filename,f=s.filedata;return(0,e.createComponentVNode)(2,o.NtosWindow,{resizable:!0,theme:l,children:(0,e.createComponentVNode)(2,o.NtosWindow.Content,{scrollable:!0,children:u&&(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:[(0,e.createVNode)(1,"h2",null,"An Error has occured:",16),"Additional Information: ",u,"Please try again. If the problem persists, contact your system administrator for assistance.",(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-left",content:"Back to menu",onClick:function(){function C(){return h("PRG_backtomenu")}return C}()})]})||i&&(0,e.createComponentVNode)(2,t.Section,{title:"File Browser",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-left",content:"Back to editor",onClick:function(){function C(){return h("PRG_closebrowser")}return C}()}),children:(0,e.createComponentVNode)(2,t.Section,{title:"Available documents (local)",level:2,children:(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Name"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Size (GQ)"}),(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0})]}),c.map(function(C,b){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:C.name}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:C.size}),(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,children:(0,e.createComponentVNode)(2,t.Button,{icon:"file-word",onClick:function(){function g(){return h("PRG_openfile",{PRG_openfile:C.name})}return g}(),children:"Open"})})]},b)})]})})})||(0,e.createComponentVNode)(2,t.Section,{title:"Document: "+v,children:[(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function C(){return h("PRG_newfile")}return C}(),children:"New"}),(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function C(){return h("PRG_loadmenu")}return C}(),children:"Load"}),(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function C(){return h("PRG_savefile")}return C}(),children:"Save"}),(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function C(){return h("PRG_saveasfile")}return C}(),children:"Save As"})]}),(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function C(){return h("PRG_editfile")}return C}(),children:"Edit"}),(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function C(){return h("PRG_txtrpeview")}return C}(),children:"Preview"}),(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function C(){return h("PRG_taghelp")}return C}(),children:"Formatting Help"}),(0,e.createComponentVNode)(2,t.Button,{disabled:!f,onClick:function(){function C(){return h("PRG_printfile")}return C}(),children:"Print"})]}),(0,e.createComponentVNode)(2,t.Section,{mt:1,children:(0,e.createVNode)(1,"div",null,null,1,{dangerouslySetInnerHTML:{__html:f}})})]})})})}return V}()},90132:function(x,r,n){"use strict";r.__esModule=!0,r.NumberInputModal=void 0;var e=n(58734),a=n(89226),t=n(57370),o=n(42678),m=n(62188),V=n(11790),k=n(11477),S=r.NumberInputModal=function(){function h(s,l){var u=(0,m.useBackend)(l),i=u.act,c=u.data,d=c.init_value,p=c.large_buttons,v=c.message,f=v===void 0?"":v,C=c.timeout,b=c.title,g=(0,m.useLocalState)(l,"input",d),y=g[0],B=g[1],L=function(){function T(M){M!==y&&B(M)}return T}(),I=function(){function T(M){M!==y&&B(M)}return T}(),w=140+(f.length>30?Math.ceil(f.length/3):0)+(f.length&&p?5:0);return(0,e.createComponentVNode)(2,k.Window,{title:b,width:270,height:w,children:[C&&(0,e.createComponentVNode)(2,a.Loader,{value:C}),(0,e.createComponentVNode)(2,k.Window.Content,{onKeyDown:function(){function T(M){var A=window.event?M.which:M.keyCode;A===o.KEY_ENTER&&i("submit",{entry:y}),A===o.KEY_ESCAPE&&i("cancel")}return T}(),children:(0,e.createComponentVNode)(2,V.Section,{fill:!0,children:(0,e.createComponentVNode)(2,V.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,V.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,V.Box,{color:"label",children:f})}),(0,e.createComponentVNode)(2,V.Stack.Item,{children:(0,e.createComponentVNode)(2,N,{input:y,onClick:I,onChange:L})}),(0,e.createComponentVNode)(2,V.Stack.Item,{children:(0,e.createComponentVNode)(2,t.InputButtons,{input:y})})]})})})]})}return h}(),N=function(s,l){var u=(0,m.useBackend)(l),i=u.act,c=u.data,d=c.min_value,p=c.max_value,v=c.init_value,f=s.input,C=s.onClick,b=s.onChange;return(0,e.createComponentVNode)(2,V.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,V.Stack.Item,{children:(0,e.createComponentVNode)(2,V.Button,{disabled:f===d,icon:"angle-double-left",onClick:function(){function g(){return C(d)}return g}(),tooltip:d?"Min ("+d+")":"Min"})}),(0,e.createComponentVNode)(2,V.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,V.RestrictedInput,{allowFloats:!0,autoFocus:!0,autoSelect:!0,fluid:!0,minValue:d,maxValue:p,onChange:function(){function g(y,B){return b(B)}return g}(),onEnter:function(){function g(y,B){return i("submit",{entry:B})}return g}(),value:f})}),(0,e.createComponentVNode)(2,V.Stack.Item,{children:(0,e.createComponentVNode)(2,V.Button,{disabled:f===p,icon:"angle-double-right",onClick:function(){function g(){return C(p)}return g}(),tooltip:p?"Max ("+p+")":"Max"})}),(0,e.createComponentVNode)(2,V.Stack.Item,{children:(0,e.createComponentVNode)(2,V.Button,{disabled:f===v,icon:"redo",onClick:function(){function g(){return C(v)}return g}(),tooltip:v?"Reset ("+v+")":"Reset"})})]})}},84035:function(x,r,n){"use strict";r.__esModule=!0,r.OmniFilter=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=function(S){return S.input?"Input":S.output?"Output":S.f_type?S.f_type:"Disabled"},V=r.OmniFilter=function(){function k(S,N){var h=(0,a.useBackend)(N),s=h.act,l=h.data,u=l.power,i=l.config,c=l.ports,d=l.set_flow_rate,p=l.last_flow_rate;return(0,e.createComponentVNode)(2,o.Window,{width:360,height:330,resizable:!0,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{title:i?"Configuration":"Status",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{icon:"power-off",content:u?"On":"Off",selected:u,disabled:i,onClick:function(){function v(){return s("power")}return v}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"wrench",selected:i,onClick:function(){function v(){return s("configure")}return v}()})],4),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:c?c.map(function(v){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:v.dir+" Port",children:i?(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{content:"IN",selected:v.input,icon:"compress-arrows-alt",onClick:function(){function f(){return s("switch_mode",{mode:"in",dir:v.dir})}return f}()}),(0,e.createComponentVNode)(2,t.Button,{content:"OUT",selected:v.output,icon:"expand-arrows-alt",onClick:function(){function f(){return s("switch_mode",{mode:"out",dir:v.dir})}return f}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"wrench",disabled:v.input||v.output,content:v.f_type||"None",onClick:function(){function f(){return s("switch_filter",{mode:v.f_type,dir:v.dir})}return f}()})],4):m(v)},v.dir)}):(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:"No Ports Detected"})})}),(0,e.createComponentVNode)(2,t.Section,{title:"Flow Rate",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Current Flow Rate",children:[p," L/s"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Flow Rate Limit",children:i?(0,e.createComponentVNode)(2,t.Button,{icon:"wrench",content:d/10+" L/s",onClick:function(){function v(){return s("set_flow_rate")}return v}()}):d/10+" L/s"})]})})]})})}return k}()},6238:function(x,r,n){"use strict";r.__esModule=!0,r.OmniMixer=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=function(N){return N.input?"Input":N.output?"Output":N.f_type?N.f_type:"Disabled"},V=r.OmniMixer=function(){function S(N,h){var s=(0,a.useBackend)(h),l=s.act,u=s.data,i=u.power,c=u.config,d=u.ports,p=u.set_flow_rate,v=u.last_flow_rate;return(0,e.createComponentVNode)(2,o.Window,{width:390,height:330,resizable:!0,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{title:c?"Configuration":"Status",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{icon:"power-off",content:i?"On":"Off",selected:i,disabled:c,onClick:function(){function f(){return l("power")}return f}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"wrench",selected:c,onClick:function(){function f(){return l("configure")}return f}()})],4),children:(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:"Port"}),c?(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:"Input"}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:"Output"})],4):(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:"Mode"}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:"Concentration"}),c?(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:"Lock"}):null]}),d?d.map(function(f){return(0,e.createComponentVNode)(2,k,{port:f,config:c},f.dir)}):(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:"No Ports Detected"})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Flow Rate",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Current Flow Rate",children:[v," L/s"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Flow Rate Limit",children:c?(0,e.createComponentVNode)(2,t.Button,{icon:"wrench",content:p/10+" L/s",onClick:function(){function f(){return l("set_flow_rate")}return f}()}):p/10+" L/s"})]})})]})})}return S}(),k=function(N,h){var s=(0,a.useBackend)(h),l=s.act,u=N.port,i=N.config;return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:u.dir+" Port"}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:i?(0,e.createComponentVNode)(2,t.Button,{content:"IN",selected:u.input,disabled:u.output,icon:"compress-arrows-alt",onClick:function(){function c(){return l("switch_mode",{mode:u.input?"none":"in",dir:u.dir})}return c}()}):m(u)}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:i?(0,e.createComponentVNode)(2,t.Button,{content:"OUT",selected:u.output,icon:"expand-arrows-alt",onClick:function(){function c(){return l("switch_mode",{mode:"out",dir:u.dir})}return c}()}):u.concentration*100+"%"}),i?(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",width:"20%",children:(0,e.createComponentVNode)(2,t.Button,{width:"100%",icon:"wrench",disabled:!u.input,content:u.input?u.concentration*100+" %":"-",onClick:function(){function c(){return l("switch_con",{dir:u.dir})}return c}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{icon:u.con_lock?"lock":"lock-open",disabled:!u.input,selected:u.con_lock,content:u.f_type||"None",onClick:function(){function c(){return l("switch_conlock",{dir:u.dir})}return c}()})})],4):null]})}},46476:function(x,r,n){"use strict";r.__esModule=!0,r.OperatingComputer=void 0;var e=n(58734),a=n(5339),t=n(62188),o=n(11477),m=n(11790),V=[["good","Conscious"],["average","Unconscious"],["bad","DEAD"]],k=[["Resp.","oxyLoss"],["Toxin","toxLoss"],["Brute","bruteLoss"],["Burn","fireLoss"]],S={average:[.25,.5],bad:[.5,1/0]},N=["bad","average","average","good","average","average","bad"],h=r.OperatingComputer=function(){function i(c,d){var p=(0,t.useBackend)(d),v=p.act,f=p.data,C=f.hasOccupant,b=f.choice,g;return b?g=(0,e.createComponentVNode)(2,u):g=C?(0,e.createComponentVNode)(2,s):(0,e.createComponentVNode)(2,l),(0,e.createComponentVNode)(2,o.Window,{width:650,height:455,resizable:!0,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,m.Tabs,{children:[(0,e.createComponentVNode)(2,m.Tabs.Tab,{selected:!b,icon:"user",onClick:function(){function y(){return v("choiceOff")}return y}(),children:"Patient"}),(0,e.createComponentVNode)(2,m.Tabs.Tab,{selected:!!b,icon:"cog",onClick:function(){function y(){return v("choiceOn")}return y}(),children:"Options"})]}),(0,e.createComponentVNode)(2,m.Section,{flexGrow:"1",children:g})]})})}return i}(),s=function(c,d){var p=(0,t.useBackend)(d),v=p.data,f=v.occupant;return(0,e.createFragment)([(0,e.createComponentVNode)(2,m.Section,{title:"Patient",level:"2",children:(0,e.createComponentVNode)(2,m.LabeledList,{children:[(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Name",children:f.name}),(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Status",color:V[f.stat][0],children:V[f.stat][1]}),(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Health",children:(0,e.createComponentVNode)(2,m.ProgressBar,{min:"0",max:f.maxHealth,value:f.health/f.maxHealth,ranges:{good:[.5,1/0],average:[0,.5],bad:[-1/0,0]}})}),k.map(function(C,b){return(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:C[0]+" Damage",children:(0,e.createComponentVNode)(2,m.ProgressBar,{min:"0",max:"100",value:f[C[1]]/100,ranges:S,children:(0,a.round)(f[C[1]])},b)},b)}),(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Temperature",children:(0,e.createComponentVNode)(2,m.ProgressBar,{min:"0",max:f.maxTemp,value:f.bodyTemperature/f.maxTemp,color:N[f.temperatureSuitability+3],children:[(0,a.round)(f.btCelsius),"\xB0C, ",(0,a.round)(f.btFaren),"\xB0F"]})}),!!f.hasBlood&&(0,e.createFragment)([(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Blood Level",children:(0,e.createComponentVNode)(2,m.ProgressBar,{min:"0",max:f.bloodMax,value:f.bloodLevel/f.bloodMax,ranges:{bad:[-1/0,.6],average:[.6,.9],good:[.6,1/0]},children:[f.bloodPercent,"%, ",f.bloodLevel,"cl"]})}),(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Pulse",children:[f.pulse," BPM"]})],4)]})}),(0,e.createComponentVNode)(2,m.Section,{title:"Current Procedure",level:"2",children:f.surgery&&f.surgery.length?(0,e.createComponentVNode)(2,m.LabeledList,{children:f.surgery.map(function(C){return(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:C.name,children:(0,e.createComponentVNode)(2,m.LabeledList,{children:[(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Current State",children:C.currentStage}),(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Possible Next Steps",children:C.nextSteps.map(function(b){return(0,e.createVNode)(1,"div",null,b,0,null,b)})})]})},C.name)})}):(0,e.createComponentVNode)(2,m.Box,{color:"label",children:"No procedure ongoing."})})],4)},l=function(){return(0,e.createComponentVNode)(2,m.Flex,{textAlign:"center",height:"100%",children:(0,e.createComponentVNode)(2,m.Flex.Item,{grow:"1",align:"center",color:"label",children:[(0,e.createComponentVNode)(2,m.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,e.createVNode)(1,"br"),"No patient detected."]})})},u=function(c,d){var p=(0,t.useBackend)(d),v=p.act,f=p.data,C=f.verbose,b=f.health,g=f.healthAlarm,y=f.oxy,B=f.oxyAlarm,L=f.crit;return(0,e.createComponentVNode)(2,m.LabeledList,{children:[(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Loudspeaker",children:(0,e.createComponentVNode)(2,m.Button,{selected:C,icon:C?"toggle-on":"toggle-off",content:C?"On":"Off",onClick:function(){function I(){return v(C?"verboseOff":"verboseOn")}return I}()})}),(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Health Announcer",children:(0,e.createComponentVNode)(2,m.Button,{selected:b,icon:b?"toggle-on":"toggle-off",content:b?"On":"Off",onClick:function(){function I(){return v(b?"healthOff":"healthOn")}return I}()})}),(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Health Announcer Threshold",children:(0,e.createComponentVNode)(2,m.Knob,{bipolar:!0,minValue:"-100",maxValue:"100",value:g,stepPixelSize:"5",ml:"0",format:function(){function I(w){return w+"%"}return I}(),onChange:function(){function I(w,T){return v("health_adj",{new:T})}return I}()})}),(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Oxygen Alarm",children:(0,e.createComponentVNode)(2,m.Button,{selected:y,icon:y?"toggle-on":"toggle-off",content:y?"On":"Off",onClick:function(){function I(){return v(y?"oxyOff":"oxyOn")}return I}()})}),(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Oxygen Alarm Threshold",children:(0,e.createComponentVNode)(2,m.Knob,{bipolar:!0,minValue:"-100",maxValue:"100",value:B,stepPixelSize:"5",ml:"0",onChange:function(){function I(w,T){return v("oxy_adj",{new:T})}return I}()})}),(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Critical Alert",children:(0,e.createComponentVNode)(2,m.Button,{selected:L,icon:L?"toggle-on":"toggle-off",content:L?"On":"Off",onClick:function(){function I(){return v(L?"critOff":"critOn")}return I}()})})]})}},96008:function(x,r,n){"use strict";r.__esModule=!0,r.OvermapDisperser=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=n(51608),V=r.OvermapDisperser=function(){function S(N,h){return(0,e.createComponentVNode)(2,o.Window,{width:400,height:550,resizable:!0,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,k)})})}return S}(),k=function(N,h){var s=(0,a.useBackend)(h),l=s.act,u=s.data,i=u.faillink,c=u.calibration,d=u.overmapdir,p=u.cal_accuracy,v=u.strength,f=u.range,C=u.next_shot,b=u.nopower,g=u.skill,y=u.chargeload;return i?(0,e.createComponentVNode)(2,t.Section,{title:"Error",children:"Machine is incomplete, out of range, or misaligned!"}):(0,e.createComponentVNode)(2,t.Flex,{wrap:"wrap",spacing:1,children:[(0,e.createComponentVNode)(2,t.Flex.Item,{basis:"22%",children:(0,e.createComponentVNode)(2,t.Section,{title:"Targeting",textAlign:"center",children:(0,e.createComponentVNode)(2,m.OvermapPanControls,{actToDo:"choose",selected:function(){function B(L){return L===d}return B}()})})}),(0,e.createComponentVNode)(2,t.Flex.Item,{basis:"74%",grow:1,children:(0,e.createComponentVNode)(2,t.Section,{title:"Charge",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[b&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Error",children:"At least one part of the machine is unpowered."})||null,(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Charge Load Type",children:y}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cooldown",children:C===0&&(0,e.createComponentVNode)(2,t.Box,{color:"good",children:"Ready"})||C>1&&(0,e.createComponentVNode)(2,t.Box,{color:"average",children:[(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:C})," Seconds",(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:"Warning: Do not fire during cooldown."})]})||null})]})})}),(0,e.createComponentVNode)(2,t.Flex.Item,{basis:"50%",mt:1,children:(0,e.createComponentVNode)(2,t.Section,{title:"Calibration",children:[(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:p}),"%",(0,e.createComponentVNode)(2,t.Button,{ml:1,icon:"exchange-alt",onClick:function(){function B(){return l("skill_calibration")}return B}(),children:"Pre-Calibration"}),(0,e.createComponentVNode)(2,t.Box,{mt:1,children:c.map(function(B,L){return(0,e.createComponentVNode)(2,t.Box,{children:["Cal #",L,":",(0,e.createComponentVNode)(2,t.Button,{ml:1,icon:"random",onClick:function(){function I(){return l("calibration",{calibration:L})}return I}(),children:B.toString()})]},L)})})]})}),(0,e.createComponentVNode)(2,t.Flex.Item,{basis:"45%",grow:1,mt:1,children:(0,e.createComponentVNode)(2,t.Section,{title:"Setup",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Strength",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"fist-raised",onClick:function(){function B(){return l("strength")}return B}(),children:v})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Radius",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"expand-arrows-alt",onClick:function(){function B(){return l("range")}return B}(),children:f})})]})})}),(0,e.createComponentVNode)(2,t.Flex.Item,{grow:1,mt:1,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,color:"red",icon:"bomb",onClick:function(){function B(){return l("fire")}return B}(),children:"Fire ORB"})})]})}},54030:function(x,r,n){"use strict";r.__esModule=!0,r.OvermapEnginesContent=r.OvermapEngines=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=r.OvermapEngines=function(){function k(S,N){return(0,e.createComponentVNode)(2,o.Window,{width:390,height:530,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,V)})})}return k}(),V=r.OvermapEnginesContent=function(){function k(S,N){var h=(0,a.useBackend)(N),s=h.act,l=h.data,u=l.global_state,i=l.global_limit,c=l.engines_info,d=l.total_thrust;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{title:"Status",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Engines",children:(0,e.createComponentVNode)(2,t.Button,{icon:"power-off",selected:u,onClick:function(){function p(){return s("global_toggle")}return p}(),children:u?"Shut All Engines Down":"Start All Engines"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Volume Limit",children:[(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function p(){return s("global_limit",{global_limit:-.1})}return p}(),icon:"minus"}),(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function p(){return s("set_global_limit")}return p}(),children:[i,"%"]}),(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function p(){return s("global_limit",{global_limit:.1})}return p}(),icon:"plus"})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Total Thrust",children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:d})})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Engines",height:"340px",style:{"overflow-y":"auto"},children:c.map(function(p,v){return(0,e.createComponentVNode)(2,t.Flex,{spacing:1,mt:v!==0&&-1,children:[(0,e.createComponentVNode)(2,t.Flex.Item,{basis:"80%",children:(0,e.createComponentVNode)(2,t.Collapsible,{title:(0,e.createComponentVNode)(2,t.Box,{inline:!0,children:["Engine #",v+1," | Thrust:"," ",(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:p.eng_thrust})," | Limit:"," ",(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:p.eng_thrust_limiter,format:function(){function f(C){return C+"%"}return f}()})]}),children:(0,e.createComponentVNode)(2,t.Section,{width:"127%",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Type",children:p.eng_type}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:[(0,e.createComponentVNode)(2,t.Box,{color:p.eng_on?p.eng_on===1?"good":"average":"bad",children:p.eng_on?p.eng_on===1?"Online":"Booting":"Offline"}),p.eng_status.map(function(f){return Array.isArray(f)?(0,e.createComponentVNode)(2,t.Box,{color:f[1],children:f[0]}):(0,e.createComponentVNode)(2,t.Box,{children:f})})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Current Thrust",children:p.eng_thrust}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Volume Limit",children:[(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function f(){return s("limit",{limit:-.1,engine:p.eng_reference})}return f}(),icon:"minus"}),(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function f(){return s("set_limit",{engine:p.eng_reference})}return f}(),children:[p.eng_thrust_limiter,"%"]}),(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function f(){return s("limit",{limit:.1,engine:p.eng_reference})}return f}(),icon:"plus"})]})]})})})}),(0,e.createComponentVNode)(2,t.Flex.Item,{basis:"20%",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,iconSpin:p.eng_on===-1,color:p.eng_on===-1?"purple":null,selected:p.eng_on===1,icon:"power-off",onClick:function(){function f(){return s("toggle_engine",{engine:p.eng_reference})}return f}(),children:p.eng_on?p.eng_on===1?"Shutoff":"Booting":"Startup"})})]},v)})})],4)}return k}()},3774:function(x,r,n){"use strict";r.__esModule=!0,r.OvermapFull=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=n(54030),V=n(39526),k=n(35780),S=r.OvermapFull=function(){function N(h,s){var l=(0,a.useLocalState)(s,"overmapFullState",0),u=l[0],i=l[1];return(0,e.createComponentVNode)(2,o.Window,{width:800,height:800,resizable:!0,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,t.Tabs,{children:[(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:u===0,onClick:function(){function c(){return i(0)}return c}(),children:"Engines"}),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:u===1,onClick:function(){function c(){return i(1)}return c}(),children:"Helm"}),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:u===2,onClick:function(){function c(){return i(2)}return c}(),children:"Sensors"})]}),u===0&&(0,e.createComponentVNode)(2,m.OvermapEnginesContent),u===1&&(0,e.createComponentVNode)(2,V.OvermapHelmContent),u===2&&(0,e.createComponentVNode)(2,k.OvermapShipSensorsContent)]})})}return N}()},39526:function(x,r,n){"use strict";r.__esModule=!0,r.OvermapHelmContent=r.OvermapHelm=r.OvermapFlightDataWrap=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=n(51608),V=r.OvermapHelm=function(){function l(u,i){return(0,e.createComponentVNode)(2,o.Window,{width:565,height:545,resizable:!0,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,k)})})}return l}(),k=r.OvermapHelmContent=function(){function l(u,i){return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Flex,{children:[(0,e.createComponentVNode)(2,t.Flex.Item,{basis:"40%",height:"180px",children:(0,e.createComponentVNode)(2,S)}),(0,e.createComponentVNode)(2,t.Flex.Item,{basis:"25%",height:"180px",children:(0,e.createComponentVNode)(2,N)}),(0,e.createComponentVNode)(2,t.Flex.Item,{basis:"35%",height:"180px",children:(0,e.createComponentVNode)(2,h)})]}),(0,e.createComponentVNode)(2,s)],4)}return l}(),S=r.OvermapFlightDataWrap=function(){function l(u,i){var c=(0,a.useBackend)(i),d=c.act,p=c.data;return(0,e.createVNode)(1,"fieldset","Section",[(0,e.createVNode)(1,"legend",null,"Flight Data",16),(0,e.createComponentVNode)(2,m.OvermapFlightData)],4,{style:{height:"100%",border:"1px solid #4972a1",margin:"none"}})}return l}(),N=function(u,i){var c=(0,a.useBackend)(i),d=c.act,p=c.data,v=p.canburn,f=p.manual_control;return(0,e.createVNode)(1,"fieldset","Section",[(0,e.createVNode)(1,"legend",null,"Manual Control",16),(0,e.createComponentVNode)(2,t.Flex,{align:"center",justify:"center",children:(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,m.OvermapPanControls,{disabled:!v,actToDo:"move"})})}),(0,e.createComponentVNode)(2,t.Box,{textAlign:"center",mt:1,children:[(0,e.createComponentVNode)(2,t.Box,{bold:!0,underline:!0,children:"Direct Control"}),(0,e.createComponentVNode)(2,t.Button,{selected:f,onClick:function(){function C(){return d("manual")}return C}(),icon:"compass",children:f?"Enabled":"Disabled"})]})],4,{style:{height:"100%",border:"1px solid #4972a1"}})},h=function(u,i){var c=(0,a.useBackend)(i),d=c.act,p=c.data,v=p.dest,f=p.d_x,C=p.d_y,b=p.speedlimit,g=p.autopilot,y=p.autopilot_disabled;return y?(0,e.createVNode)(1,"fieldset","Section",[(0,e.createVNode)(1,"legend",null,"Autopilot",16),(0,e.createComponentVNode)(2,t.Box,{textAlign:"center",color:"bad",fontSize:1.2,children:"AUTOPILOT DISABLED"}),(0,e.createComponentVNode)(2,t.Box,{textAlign:"center",color:"average",children:"Warning: This vessel is equipped with a class I autopilot. Class I autopilots are unable to do anything but fly in a straight line directly towards the target, and may result in collisions."}),(0,e.createComponentVNode)(2,t.Box,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button.Confirm,{mt:1,color:"bad",content:"Unlock Autopilot",confirmContent:"ACCEPT RISKS?",icon:"exclamation-triangle",confirmIcon:"exclamation-triangle",onClick:function(){function B(){return d("apilot_lock")}return B}()})})],4,{style:{height:"100%",border:"1px solid #4972a1"}}):(0,e.createVNode)(1,"fieldset","Section",[(0,e.createVNode)(1,"legend",null,"Autopilot",16),(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Target",children:v&&(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function B(){return d("setcoord",{setx:!0})}return B}(),children:f}),(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function B(){return d("setcoord",{sety:!0})}return B}(),children:C})],4)||(0,e.createComponentVNode)(2,t.Button,{icon:"pen",onClick:function(){function B(){return d("setcoord",{setx:!0,sety:!0})}return B}(),children:"None"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Speed Limit",children:(0,e.createComponentVNode)(2,t.Button,{icon:"tachometer-alt",onClick:function(){function B(){return d("speedlimit")}return B}(),children:[b," Gm/h"]})})]}),(0,e.createComponentVNode)(2,t.Button,{mt:1,fluid:!0,selected:g,disabled:!v,icon:"robot",onClick:function(){function B(){return d("apilot")}return B}(),children:g?"Engaged":"Disengaged"}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,color:"good",icon:"exclamation-triangle",onClick:function(){function B(){return d("apilot_lock")}return B}(),children:"Lock Autopilot"})],4,{style:{height:"100%",border:"1px solid #4972a1"}})},s=function(u,i){var c=(0,a.useBackend)(i),d=c.act,p=c.data,v=p.sector,f=p.s_x,C=p.s_y,b=p.sector_info,g=p.landed,y=p.locations;return(0,e.createComponentVNode)(2,t.Section,{title:"Navigation Data",m:.3,mt:1,children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Location",children:v}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Coordinates",children:[f," : ",C]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Scan Data",children:b}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:g})]}),(0,e.createComponentVNode)(2,t.Flex,{mt:1,align:"center",justify:"center",spacing:1,children:[(0,e.createComponentVNode)(2,t.Flex.Item,{basis:"50%",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"save",onClick:function(){function B(){return d("add",{add:"current"})}return B}(),children:"Save Current Position"})}),(0,e.createComponentVNode)(2,t.Flex.Item,{basis:"50%",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"sticky-note",onClick:function(){function B(){return d("add",{add:"new"})}return B}(),children:"Add New Entry"})})]}),(0,e.createComponentVNode)(2,t.Section,{mt:1,scrollable:!0,height:"130px",children:(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Name"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Coordinates"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Actions"})]}),y.map(function(B){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:B.name}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:[B.x," : ",B.y]}),(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,children:[(0,e.createComponentVNode)(2,t.Button,{icon:"rocket",onClick:function(){function L(){return d("setds",{x:B.x,y:B.y})}return L}(),children:"Plot Course"}),(0,e.createComponentVNode)(2,t.Button,{icon:"trash",onClick:function(){function L(){return d("remove",{remove:B.reference})}return L}(),children:"Remove"})]})]},B.name)})]})})]})}},85513:function(x,r,n){"use strict";r.__esModule=!0,r.OvermapNavigationContent=r.OvermapNavigation=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=n(51608),V=r.OvermapNavigation=function(){function S(){return(0,e.createComponentVNode)(2,o.Window,{width:380,height:530,resizable:!0,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,k)})})}return S}(),k=r.OvermapNavigationContent=function(){function S(N,h){var s=(0,a.useBackend)(h),l=s.act,u=s.data,i=u.sector,c=u.s_x,d=u.s_y,p=u.sector_info,v=u.viewing;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{title:"Current Location",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"eye",selected:v,onClick:function(){function f(){return l("viewing")}return f}(),children:"Map View"}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Current Location",children:i}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Coordinates",children:[c," : ",d]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Additional Information",children:p})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Flight Data",children:(0,e.createComponentVNode)(2,m.OvermapFlightData,{disableLimiterControls:!0})})],4)}return S}()},28204:function(x,r,n){"use strict";r.__esModule=!0,r.OvermapShieldGenerator=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=r.OvermapShieldGenerator=function(){function N(h,s){return(0,e.createComponentVNode)(2,o.Window,{width:500,height:760,resizable:!0,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,V)})})}return N}(),V=function(h,s){var l=(0,a.useBackend)(s),u=l.act,i=l.data,c=i.modes,d=i.offline_for;return d?(0,e.createComponentVNode)(2,t.Section,{title:"EMERGENCY SHUTDOWN",color:"bad",children:["An emergency shutdown has been initiated - generator cooling down. Please wait until the generator cools down before resuming operation. Estimated time left: ",d," seconds."]}):(0,e.createFragment)([(0,e.createComponentVNode)(2,k),(0,e.createComponentVNode)(2,S),(0,e.createComponentVNode)(2,t.Section,{title:"Field Calibration",children:c.map(function(p){return(0,e.createComponentVNode)(2,t.Section,{title:p.name,level:2,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"power-off",selected:p.status,onClick:function(){function v(){return u("toggle_mode",{toggle_mode:p.flag})}return v}(),children:p.status?"Enabled":"Disabled"}),children:[(0,e.createComponentVNode)(2,t.Box,{color:"label",children:p.desc}),(0,e.createComponentVNode)(2,t.Box,{mt:.5,children:["Multiplier: ",p.multiplier]})]},p.name)})})],4)},k=function(h,s){var l=(0,a.useBackend)(s),u=l.act,i=l.data,c=i.running,d=i.overloaded,p=i.mitigation_max,v=i.mitigation_physical,f=i.mitigation_em,C=i.mitigation_heat,b=i.field_integrity,g=i.max_energy,y=i.current_energy,B=i.percentage_energy,L=i.total_segments,I=i.functional_segments,w=i.field_radius,T=i.target_radius,M=i.input_cap_kw,A=i.upkeep_power_usage,R=i.power_usage,O=i.spinup_counter;return(0,e.createComponentVNode)(2,t.Section,{title:"System Status",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Generator is",children:c===1&&(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"Shutting Down"})||c===2&&(d&&(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:"Overloaded"})||(0,e.createComponentVNode)(2,t.Box,{color:"good",children:"Running"}))||c===3&&(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"Inactive"})||c===4&&(0,e.createComponentVNode)(2,t.Box,{color:"blue",children:["Spinning Up\xA0",T!==w&&(0,e.createComponentVNode)(2,t.Box,{inline:!0,children:"(Adjusting Radius)"})||(0,e.createComponentVNode)(2,t.Box,{inline:!0,children:[O*2,"s"]})]})||(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:"Offline"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Energy Storage",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:y,maxValue:g,children:[y," / ",g," MJ (",B,"%)"]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Shield Integrity",children:[(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:b}),"%"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Mitigation",children:[f,"% EM / ",v,"% PH / ",C,"% HE / ",p,"% MAX"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Upkeep Energy Use",children:[(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:A})," kW"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Total Energy Use",children:M&&(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:R,maxValue:M,children:[R," / ",M," kW"]})})||(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:R})," kW (No Limit)"]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Field Size",children:[(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:I}),"\xA0/\xA0",(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:L})," m\xB2 (radius"," ",(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:w}),", target"," ",(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:T}),")"]})]})})},S=function(h,s){var l=(0,a.useBackend)(s),u=l.act,i=l.data,c=i.running,d=i.hacked,p=i.idle_multiplier,v=i.idle_valid_values;return(0,e.createComponentVNode)(2,t.Section,{title:"Controls",buttons:(0,e.createFragment)([c>=2&&(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"power-off",onClick:function(){function f(){return u("begin_shutdown")}return f}(),selected:!0,children:"Turn off"}),c===3&&(0,e.createComponentVNode)(2,t.Button,{icon:"power-off",onClick:function(){function f(){return u("toggle_idle",{toggle_idle:0})}return f}(),children:"Activate"})||(0,e.createComponentVNode)(2,t.Button,{icon:"power-off",onClick:function(){function f(){return u("toggle_idle",{toggle_idle:1})}return f}(),selected:!0,children:"Deactivate"})]})||(0,e.createComponentVNode)(2,t.Button,{icon:"power-off",onClick:function(){function f(){return u("start_generator")}return f}(),children:"Turn on"}),c&&d&&(0,e.createComponentVNode)(2,t.Button,{icon:"exclamation-triangle",onClick:function(){function f(){return u("emergency_shutdown")}return f}(),color:"bad",children:"EMERGENCY SHUTDOWN"})||null],0),children:[(0,e.createComponentVNode)(2,t.Button,{icon:"expand-arrows-alt",onClick:function(){function f(){return u("set_range")}return f}(),children:"Set Field Range"}),(0,e.createComponentVNode)(2,t.Button,{icon:"bolt",onClick:function(){function f(){return u("set_input_cap")}return f}(),children:"Set Input Cap"}),(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Set inactive power use intensity",children:v.map(function(f){return(0,e.createComponentVNode)(2,t.Button,{selected:f===p,disabled:c===4,onClick:function(){function C(){return u("switch_idle",{switch_idle:f})}return C}(),children:f},f)})})})]})}},35780:function(x,r,n){"use strict";r.__esModule=!0,r.OvermapShipSensorsContent=r.OvermapShipSensors=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=r.OvermapShipSensors=function(){function k(S,N){return(0,e.createComponentVNode)(2,o.Window,{width:375,height:545,resizable:!0,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,V)})})}return k}(),V=r.OvermapShipSensorsContent=function(){function k(S,N){var h=(0,a.useBackend)(N),s=h.act,l=h.data,u=l.viewing,i=l.on,c=l.range,d=l.health,p=l.max_health,v=l.heat,f=l.critical_heat,C=l.status,b=l.contacts;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{title:"Status",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{icon:"eye",selected:u,onClick:function(){function g(){return s("viewing")}return g}(),children:"Map View"}),(0,e.createComponentVNode)(2,t.Button,{icon:"power-off",selected:i,onClick:function(){function g(){return s("toggle_sensor")}return g}(),children:i?"Sensors Enabled":"Sensors Disabled"})],4),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:C}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Range",children:(0,e.createComponentVNode)(2,t.Button,{icon:"signal",onClick:function(){function g(){return s("range")}return g}(),children:c})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Integrity",children:(0,e.createComponentVNode)(2,t.ProgressBar,{ranges:{good:[p*.75,1/0],average:[p*.25,p*.75],bad:[-1/0,p*.25]},value:d,maxValue:p,children:[d," / ",p]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Temperature",children:(0,e.createComponentVNode)(2,t.ProgressBar,{ranges:{bad:[f*.75,1/0],average:[f*.5,f*.75],good:[-1/0,f*.5]},value:v,maxValue:f,children:v 0||!v)&&(0,e.createComponentVNode)(2,t.Button,{ml:1,icon:"times",onClick:function(){function B(){return l("cancel",{cancel:y+1})}return B}(),children:"Cancel"})||null]},g)})||(0,e.createComponentVNode)(2,t.NoticeBox,{info:!0,children:"Queue Empty"})}),(0,e.createComponentVNode)(2,t.Section,{title:"Recipes",children:b.length&&b.map(function(g){return(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"wrench",onClick:function(){function y(){return l("queue",{queue:g.type})}return y}(),children:(0,m.toTitleCase)(g.name)})},g.name)})})]})})}return S}()},27252:function(x,r,n){"use strict";r.__esModule=!0,r.PathogenicIsolator=void 0;var e=n(58734),a=n(62188),t=n(48388),o=n(11790),m=n(11477),V=function(s,l){var u=(0,a.useBackend)(l),i=u.act,c=u.data,d=c.can_print,p=s.args;return(0,e.createComponentVNode)(2,o.Section,{level:2,m:"-1rem",title:p.name||"Virus",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{disabled:!d,icon:"print",content:"Print",onClick:function(){function v(){return i("print",{type:"virus_record",vir:p.record})}return v}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"times",color:"red",onClick:function(){function v(){return i("modal_close")}return v}()})],4),children:(0,e.createComponentVNode)(2,o.Box,{mx:"0.5rem",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Spread",children:[p.spread_text," Transmission"]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Possible cure",children:p.antigen}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Rate of Progression",children:p.rate}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Antibiotic Resistance",children:[p.resistance,"%"]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Species Affected",children:p.species}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Symptoms",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:p.symptoms.map(function(v){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:v.stage+". "+v.name,children:[(0,e.createComponentVNode)(2,o.Box,{inline:!0,children:[(0,e.createComponentVNode)(2,o.Box,{inline:!0,color:"label",children:"Strength:"})," ",v.strength,"\xA0"]}),(0,e.createComponentVNode)(2,o.Box,{inline:!0,children:[(0,e.createComponentVNode)(2,o.Box,{inline:!0,color:"label",children:"Aggressiveness:"})," ",v.aggressiveness]})]},v.stage)})})})]})})})},k=r.PathogenicIsolator=function(){function h(s,l){var u=(0,a.useBackend)(l),i=u.act,c=u.data,d=c.isolating,p=(0,a.useLocalState)(l,"tabIndex",0),v=p[0],f=p[1],C=null;return v===0?C=(0,e.createComponentVNode)(2,S):v===1&&(C=(0,e.createComponentVNode)(2,N)),(0,t.modalRegisterBodyOverride)("virus",V),(0,e.createComponentVNode)(2,m.Window,{height:500,width:520,resizable:!0,children:[(0,e.createComponentVNode)(2,t.ComplexModal,{maxHeight:"100%",maxWidth:"95%"}),(0,e.createComponentVNode)(2,m.Window.Content,{scrollable:!0,children:[d&&(0,e.createComponentVNode)(2,o.NoticeBox,{warning:!0,children:"The Isolator is currently isolating..."})||null,(0,e.createComponentVNode)(2,o.Tabs,{children:[(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:v===0,onClick:function(){function b(){return f(0)}return b}(),children:"Home"}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:v===1,onClick:function(){function b(){return f(1)}return b}(),children:"Database"})]}),C]})]})}return h}(),S=function(s,l){var u=(0,a.useBackend)(l),i=u.act,c=u.data,d=c.syringe_inserted,p=c.pathogen_pool,v=c.can_print;return(0,e.createComponentVNode)(2,o.Section,{title:"Pathogens",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{icon:"print",content:"Print",disabled:!v,onClick:function(){function f(){return i("print",{type:"patient_diagnosis"})}return f}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"eject",content:"Eject Syringe",disabled:!d,onClick:function(){function f(){return i("eject")}return f}()})],4),children:p.length&&p.map(function(f){return(0,e.createComponentVNode)(2,o.Section,{children:[(0,e.createComponentVNode)(2,o.Box,{color:"label",children:(0,e.createComponentVNode)(2,o.Flex,{align:"center",children:[(0,e.createComponentVNode)(2,o.Flex.Item,{grow:1,children:[(0,e.createVNode)(1,"u",null,[(0,e.createTextVNode)("Stamm #"),f.unique_id],0),f.is_in_database?" (Analyzed)":" (Not Analyzed)"]}),(0,e.createComponentVNode)(2,o.Flex.Item,{children:[(0,e.createComponentVNode)(2,o.Button,{icon:"virus",content:"Isolate",onClick:function(){function C(){return i("isolate",{isolate:f.reference})}return C}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"search",content:"Database",disabled:!f.is_in_database,onClick:function(){function C(){return i("view_entry",{vir:f.record})}return C}()})]})]})}),(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,o.Box,{color:"average",mb:1,children:f.name}),f.dna]})]},f.unique_id)})||(d?(0,e.createComponentVNode)(2,o.Box,{color:"average",children:"No samples detected."}):(0,e.createComponentVNode)(2,o.Box,{color:"average",children:"No syringe inserted."}))})},N=function(s,l){var u=(0,a.useBackend)(l),i=u.act,c=u.data,d=c.database,p=c.can_print;return(0,e.createComponentVNode)(2,o.Section,{title:"Database",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"print",content:"Print",disabled:!p,onClick:function(){function v(){return i("print",{type:"virus_list"})}return v}()}),children:d.length&&d.map(function(v){return(0,e.createComponentVNode)(2,o.Button,{fluid:!0,icon:"search",onClick:function(){function f(){return i("view_entry",{vir:v.record})}return f}(),children:v.name},v.name)})||(0,e.createComponentVNode)(2,o.Box,{color:"average",children:"The viral database is empty."})})}},32183:function(x,r,n){"use strict";r.__esModule=!0,r.Pda=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=n(61082),V=n(67484),k=function(u){var i;try{i=V("./"+u+".jsx")}catch(d){if(d.code==="MODULE_NOT_FOUND")return(0,m.routingError)("notFound",u);throw d}var c=i[u];return c||(0,m.routingError)("missingExport",u)},S=r.Pda=function(){function l(u,i){var c=(0,a.useBackend)(i),d=c.act,p=c.data,v=p.app,f=p.owner,C=p.useRetro;if(!f)return(0,e.createComponentVNode)(2,o.Window,{children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{stretchContents:!0,children:"Warning: No ID information found! Please swipe ID!"})})});var b=k(v.template),g=(0,a.useLocalState)(i,"settingsMode",!1),y=g[0],B=g[1];return(0,e.createComponentVNode)(2,o.Window,{width:580,height:670,theme:C?"pda-retro":null,resizable:!0,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,N,{settingsMode:y,setSettingsMode:B}),y&&(0,e.createComponentVNode)(2,h)||(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Icon,{name:v.icon,mr:1}),v.name]}),p:1,children:(0,e.createComponentVNode)(2,b)}),(0,e.createComponentVNode)(2,t.Box,{mb:8}),(0,e.createComponentVNode)(2,s,{setSettingsMode:B})]})})}return l}(),N=function(u,i){var c=(0,a.useBackend)(i),d=c.act,p=c.data,v=u.settingsMode,f=u.setSettingsMode,C=p.idInserted,b=p.idLink,g=p.cartridge_name,y=p.stationTime;return(0,e.createComponentVNode)(2,t.Box,{mb:1,children:(0,e.createComponentVNode)(2,t.Flex,{align:"center",justify:"space-between",children:[!!C&&(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"eject",color:"transparent",onClick:function(){function B(){return d("Authenticate")}return B}(),content:b})}),(0,e.createComponentVNode)(2,t.Flex.Item,{grow:1,textAlign:"center",bold:!0,children:y}),(0,e.createComponentVNode)(2,t.Flex.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{selected:v,onClick:function(){function B(){return f(!v)}return B}(),icon:"cog"}),(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function B(){return d("Retro")}return B}(),icon:"adjust"})]})]})})},h=function(u,i){var c=(0,a.useBackend)(i),d=c.act,p=c.data,v=p.idInserted,f=p.idLink,C=p.cartridge_name,b=p.touch_silent;return(0,e.createComponentVNode)(2,t.Section,{title:"Settings",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"R.E.T.R.O Mode",children:(0,e.createComponentVNode)(2,t.Button,{icon:"cog",content:"Retro Theme",onClick:function(){function g(){return d("Retro")}return g}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Touch Sounds",children:(0,e.createComponentVNode)(2,t.Button,{icon:"cog",selected:!b,content:b?"Disabled":"Enabled",onClick:function(){function g(){return d("TouchSounds")}return g}()})}),!!C&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cartridge",children:(0,e.createComponentVNode)(2,t.Button,{icon:"eject",onClick:function(){function g(){return d("Eject")}return g}(),content:C})}),!!v&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"ID Card",children:(0,e.createComponentVNode)(2,t.Button,{icon:"eject",onClick:function(){function g(){return d("Authenticate")}return g}(),content:f})})]})})},s=function(u,i){var c=(0,a.useBackend)(i),d=c.act,p=c.data,v=u.setSettingsMode,f=p.app,C=p.useRetro;return(0,e.createComponentVNode)(2,t.Box,{position:"fixed",bottom:"0%",left:"0%",right:"0%",backgroundColor:C?"#6f7961":"#1b1b1b",children:(0,e.createComponentVNode)(2,t.Flex,{children:[(0,e.createComponentVNode)(2,t.Flex.Item,{basis:"33%",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,color:"transparent",iconColor:f.has_back?"white":"disabled",textAlign:"center",icon:"undo",mb:0,fontSize:1.7,onClick:function(){function b(){return d("Back")}return b}()})}),(0,e.createComponentVNode)(2,t.Flex.Item,{basis:"33%",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,color:"transparent",iconColor:f.is_home?"disabled":"white",textAlign:"center",icon:"home",mb:0,fontSize:1.7,onClick:function(){function b(){v(!1),d("Home")}return b}()})})]})})}},90394:function(x,r,n){"use strict";r.__esModule=!0,r.PersonalCrafting=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477);function m(h,s){var l=typeof Symbol!="undefined"&&h[Symbol.iterator]||h["@@iterator"];if(l)return(l=l.call(h)).next.bind(l);if(Array.isArray(h)||(l=V(h))||s&&h&&typeof h.length=="number"){l&&(h=l);var u=0;return function(){return u>=h.length?{done:!0}:{done:!1,value:h[u++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function V(h,s){if(h){if(typeof h=="string")return k(h,s);var l=Object.prototype.toString.call(h).slice(8,-1);if(l==="Object"&&h.constructor&&(l=h.constructor.name),l==="Map"||l==="Set")return Array.from(h);if(l==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(l))return k(h,s)}}function k(h,s){(s==null||s>h.length)&&(s=h.length);for(var l=0,u=new Array(s);l =.5&&"good"||u>.15&&"average"||"bad";return(0,e.createComponentVNode)(2,o.Window,{width:450,height:340,resizable:!0,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[!l.anchored&&(0,e.createComponentVNode)(2,t.NoticeBox,{children:"Generator not anchored."}),(0,e.createComponentVNode)(2,t.Section,{title:"Status",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power switch",children:(0,e.createComponentVNode)(2,t.Button,{icon:l.active?"power-off":"times",onClick:function(){function c(){return s("toggle_power")}return c}(),selected:l.active,disabled:!l.ready_to_boot,children:l.active?"On":"Off"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Fuel Type",buttons:l.fuel_stored>=1&&(0,e.createComponentVNode)(2,t.Button,{ml:1,icon:"eject",disabled:l.active,onClick:function(){function c(){return s("eject")}return c}(),children:"Eject"}),children:(0,e.createComponentVNode)(2,t.Box,{color:i,children:[l.fuel_stored,"cm\xB3 ",l.sheet_name]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Current fuel level",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:l.fuel_stored/l.fuel_capacity,ranges:{good:[.5,1/0],average:[.15,.5],bad:[-1/0,.15]},children:[l.fuel_stored,"cm\xB3 / ",l.fuel_capacity,"cm\xB3"]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Fuel Usage",children:[l.fuel_usage," cm\xB3/s"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Temperature",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:l.temperature_current,maxValue:l.temperature_max+30,color:l.temperature_overheat?"bad":"good",children:[(0,m.round)(l.temperature_current),"\xB0C"]})})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Output",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Current output",color:l.unsafe_output?"bad":null,children:l.power_output}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Adjust output",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"minus",onClick:function(){function c(){return s("lower_power")}return c}(),children:l.power_generated}),(0,e.createComponentVNode)(2,t.Button,{icon:"plus",onClick:function(){function c(){return s("higher_power")}return c}(),children:l.power_generated})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power available",children:(0,e.createComponentVNode)(2,t.Box,{inline:!0,color:!l.connected&&"bad",children:l.connected?l.power_available:"Unconnected"})})]})})]})})}return k}()},80387:function(x,r,n){"use strict";r.__esModule=!0,r.PortablePump=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=n(25606),V=r.PortablePump=function(){function k(S,N){var h=(0,a.useBackend)(N),s=h.act,l=h.data,u=l.direction,i=l.target_pressure,c=l.default_pressure,d=l.min_pressure,p=l.max_pressure;return(0,e.createComponentVNode)(2,o.Window,{width:330,height:375,resizable:!0,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,m.PortableBasicInfo),(0,e.createComponentVNode)(2,t.Section,{title:"Pump",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:u?"sign-in-alt":"sign-out-alt",content:u?"In":"Out",selected:u,onClick:function(){function v(){return s("direction")}return v}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Output",children:(0,e.createComponentVNode)(2,t.Slider,{mt:"0.4em",animated:!0,minValue:d,maxValue:p,value:i,unit:"kPa",stepPixelSize:.3,onChange:function(){function v(f,C){return s("pressure",{pressure:C})}return v}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Presets",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"minus",disabled:i===d,onClick:function(){function v(){return s("pressure",{pressure:"min"})}return v}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"sync",disabled:i===c,onClick:function(){function v(){return s("pressure",{pressure:"reset"})}return v}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"plus",disabled:i===p,onClick:function(){function v(){return s("pressure",{pressure:"max"})}return v}()})]})]})})]})})}return k}()},47750:function(x,r,n){"use strict";r.__esModule=!0,r.PortableScrubber=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=n(25606),V=r.PortableScrubber=function(){function k(S,N){var h=(0,a.useBackend)(N),s=h.act,l=h.data,u=l.rate,i=l.minrate,c=l.maxrate;return(0,e.createComponentVNode)(2,o.Window,{width:320,height:350,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,m.PortableBasicInfo),(0,e.createComponentVNode)(2,t.Section,{title:"Power Regulator",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Volume Rate",children:(0,e.createComponentVNode)(2,t.Slider,{mt:"0.4em",animated:!0,minValue:i,maxValue:c,value:u,unit:"L/s",onChange:function(){function d(p,v){return s("volume_adj",{vol:v})}return d}()})})})})]})})}return k}()},45143:function(x,r,n){"use strict";r.__esModule=!0,r.PortableTurret=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=r.PortableTurret=function(){function V(k,S){var N=(0,a.useBackend)(S),h=N.act,s=N.data,l=s.locked,u=s.on,i=s.lethal,c=s.lethal_is_configurable,d=s.targetting_is_configurable,p=s.check_weapons,v=s.neutralize_noaccess,f=s.neutralize_norecord,C=s.neutralize_criminals,b=s.neutralize_all,g=s.neutralize_nonsynth,y=s.neutralize_unidentified,B=s.neutralize_down;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:400,resizable:!0,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,t.NoticeBox,{children:["Swipe an ID card to ",l?"unlock":"lock"," this interface."]}),(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:(0,e.createComponentVNode)(2,t.Button,{icon:u?"power-off":"times",content:u?"On":"Off",selected:u,disabled:l,onClick:function(){function L(){return h("power")}return L}()})}),!!c&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Lethals",children:(0,e.createComponentVNode)(2,t.Button,{icon:i?"exclamation-triangle":"times",content:i?"On":"Off",color:i?"bad":"",disabled:l,onClick:function(){function L(){return h("lethal")}return L}()})})]})}),!!d&&(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{title:"Humanoid Targets",children:[(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:C,content:"Wanted Criminals",disabled:l,onClick:function(){function L(){return h("autharrest")}return L}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:f,content:"No Sec Record",disabled:l,onClick:function(){function L(){return h("authnorecord")}return L}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:p,content:"Unauthorized Weapons",disabled:l,onClick:function(){function L(){return h("authweapon")}return L}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:v,content:"Unauthorized Access",disabled:l,onClick:function(){function L(){return h("authaccess")}return L}()})]}),(0,e.createComponentVNode)(2,t.Section,{title:"Other Targets",children:[(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:y,content:"Unidentified Lifesigns (Xenos, Animals, Etc)",disabled:l,onClick:function(){function L(){return h("authxeno")}return L}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:g,content:"All Non-Synthetics",disabled:l,onClick:function(){function L(){return h("authsynth")}return L}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:B,content:"Downed Targets",disabled:l,onClick:function(){function L(){return h("authdown")}return L}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:b,content:"All Entities",disabled:l,onClick:function(){function L(){return h("authall")}return L}()})]})],4)]})})}return V}()},8694:function(x,r,n){"use strict";r.__esModule=!0,r.powerRank=r.PowerMonitorFocus=r.PowerMonitorContent=r.PowerMonitor=r.AreaCharge=void 0;var e=n(58734),a=n(45445),t=n(75671),o=n(5339),m=n(59641),V=n(62188),k=n(11790),S=n(11477),N=5e5,h=r.powerRank=function(){function d(p){var v=String(p.split(" ")[1]).toLowerCase();return["w","kw","mw","gw"].indexOf(v)}return d}(),s=r.PowerMonitor=function(){function d(){return(0,e.createComponentVNode)(2,S.Window,{width:550,height:700,resizable:!0,children:(0,e.createComponentVNode)(2,S.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,l)})})}return d}(),l=r.PowerMonitorContent=function(){function d(p,v){var f=(0,V.useBackend)(v),C=f.act,b=f.data,g=b.map_levels,y=b.all_sensors,B=b.focus;if(B)return(0,e.createComponentVNode)(2,u,{focus:B});var L=(0,e.createComponentVNode)(2,k.Box,{color:"bad",children:"No sensors detected"});return y&&(L=(0,e.createComponentVNode)(2,k.Table,{children:y.map(function(I){return(0,e.createComponentVNode)(2,k.Table.Row,{children:(0,e.createComponentVNode)(2,k.Table.Cell,{children:(0,e.createComponentVNode)(2,k.Button,{content:I.name,icon:I.alarm?"bell":"sign-in-alt",onClick:function(){function w(){return C("setsensor",{id:I.name})}return w}()})})},I.name)})})),(0,e.createComponentVNode)(2,k.Section,{title:"No active sensor. Listing all.",buttons:(0,e.createComponentVNode)(2,k.Button,{content:"Scan For Sensors",icon:"undo",onClick:function(){function I(){return C("refresh")}return I}()}),children:L})}return d}(),u=r.PowerMonitorFocus=function(){function d(p,v){var f=(0,V.useBackend)(v),C=f.act,b=f.data,g=p.focus,y=g.history,B=(0,V.useLocalState)(v,"sortByField",null),L=B[0],I=B[1],w=y.supply[y.supply.length-1]||0,T=y.demand[y.demand.length-1]||0,M=y.supply.map(function(_,P){return[P,_]}),A=y.demand.map(function(_,P){return[P,_]}),R=Math.max.apply(Math,[N].concat(y.supply,y.demand)),O=(0,t.flow)([(0,a.map)(function(_,P){return Object.assign({},_,{id:_.name+P})}),L==="name"&&(0,a.sortBy)(function(_){return _.name}),L==="charge"&&(0,a.sortBy)(function(_){return-_.charge}),L==="draw"&&(0,a.sortBy)(function(_){return-h(_.load)},function(_){return-parseFloat(_.load)}),L==="problems"&&(0,a.sortBy)(function(_){return _.eqp},function(_){return _.lgt},function(_){return _.env},function(_){return _.charge},function(_){return _.name})])(g.areas);return(0,e.createFragment)([(0,e.createComponentVNode)(2,k.Section,{title:g.name,buttons:(0,e.createComponentVNode)(2,k.Button,{icon:"sign-out-alt",content:"Back To Main",onClick:function(){function _(){return C("clear")}return _}()})}),(0,e.createComponentVNode)(2,k.Flex,{mx:-.5,mb:1,children:[(0,e.createComponentVNode)(2,k.Flex.Item,{mx:.5,width:"200px",children:(0,e.createComponentVNode)(2,k.Section,{children:(0,e.createComponentVNode)(2,k.LabeledList,{children:[(0,e.createComponentVNode)(2,k.LabeledList.Item,{label:"Supply",children:(0,e.createComponentVNode)(2,k.ProgressBar,{value:w,minValue:0,maxValue:R,color:"teal",children:(0,o.toFixed)(w/1e3)+" kW"})}),(0,e.createComponentVNode)(2,k.LabeledList.Item,{label:"Draw",children:(0,e.createComponentVNode)(2,k.ProgressBar,{value:T,minValue:0,maxValue:R,color:"pink",children:(0,o.toFixed)(T/1e3)+" kW"})})]})})}),(0,e.createComponentVNode)(2,k.Flex.Item,{mx:.5,grow:1,children:(0,e.createComponentVNode)(2,k.Section,{position:"relative",height:"100%",children:[(0,e.createComponentVNode)(2,k.Chart.Line,{fillPositionedParent:!0,data:M,rangeX:[0,M.length-1],rangeY:[0,R],strokeColor:"rgba(0, 181, 173, 1)",fillColor:"rgba(0, 181, 173, 0.25)"}),(0,e.createComponentVNode)(2,k.Chart.Line,{fillPositionedParent:!0,data:A,rangeX:[0,A.length-1],rangeY:[0,R],strokeColor:"rgba(224, 57, 151, 1)",fillColor:"rgba(224, 57, 151, 0.25)"})]})})]}),(0,e.createComponentVNode)(2,k.Section,{children:[(0,e.createComponentVNode)(2,k.Box,{mb:1,children:[(0,e.createComponentVNode)(2,k.Box,{inline:!0,mr:2,color:"label",children:"Sort by:"}),(0,e.createComponentVNode)(2,k.Button.Checkbox,{checked:L==="name",content:"Name",onClick:function(){function _(){return I(L!=="name"&&"name")}return _}()}),(0,e.createComponentVNode)(2,k.Button.Checkbox,{checked:L==="charge",content:"Charge",onClick:function(){function _(){return I(L!=="charge"&&"charge")}return _}()}),(0,e.createComponentVNode)(2,k.Button.Checkbox,{checked:L==="draw",content:"Draw",onClick:function(){function _(){return I(L!=="draw"&&"draw")}return _}()}),(0,e.createComponentVNode)(2,k.Button.Checkbox,{checked:L==="problems",content:"Problems",onClick:function(){function _(){return I(L!=="problems"&&"problems")}return _}()})]}),(0,e.createComponentVNode)(2,k.Table,{children:[(0,e.createComponentVNode)(2,k.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,k.Table.Cell,{children:"Area"}),(0,e.createComponentVNode)(2,k.Table.Cell,{collapsing:!0,children:"Charge"}),(0,e.createComponentVNode)(2,k.Table.Cell,{textAlign:"right",children:"Draw"}),(0,e.createComponentVNode)(2,k.Table.Cell,{collapsing:!0,title:"Equipment",children:"Eqp"}),(0,e.createComponentVNode)(2,k.Table.Cell,{collapsing:!0,title:"Lighting",children:"Lgt"}),(0,e.createComponentVNode)(2,k.Table.Cell,{collapsing:!0,title:"Environment",children:"Env"})]}),O.map(function(_,P){return(0,e.createVNode)(1,"tr","Table__row candystripe",[(0,e.createVNode)(1,"td",null,_.name,0),(0,e.createVNode)(1,"td","Table__cell text-right text-nowrap",(0,e.createComponentVNode)(2,i,{charging:_.charging,charge:_.charge}),2),(0,e.createVNode)(1,"td","Table__cell text-right text-nowrap",_.load,0),(0,e.createVNode)(1,"td","Table__cell text-center text-nowrap",(0,e.createComponentVNode)(2,c,{status:_.eqp}),2),(0,e.createVNode)(1,"td","Table__cell text-center text-nowrap",(0,e.createComponentVNode)(2,c,{status:_.lgt}),2),(0,e.createVNode)(1,"td","Table__cell text-center text-nowrap",(0,e.createComponentVNode)(2,c,{status:_.env}),2)],4,null,_.id)})]})]})],4)}return d}(),i=r.AreaCharge=function(){function d(p){var v=p.charging,f=p.charge;return(0,e.createFragment)([(0,e.createComponentVNode)(2,k.Icon,{width:"18px",textAlign:"center",name:v===0&&(f>50?"battery-half":"battery-quarter")||v===1&&"bolt"||v===2&&"battery-full",color:v===0&&(f>50?"yellow":"red")||v===1&&"yellow"||v===2&&"green"}),(0,e.createComponentVNode)(2,k.Box,{inline:!0,width:"36px",textAlign:"right",children:(0,o.toFixed)(f)+"%"})],4)}return d}();i.defaultHooks=m.pureComponentHooks;var c=function(p){var v=p.status,f=!!(v&2),C=!!(v&1),b=(f?"On":"Off")+(" ["+(C?"auto":"manual")+"]");return(0,e.createComponentVNode)(2,k.ColorBox,{color:f?"good":"bad",content:C?void 0:"M",title:b})};c.defaultHooks=m.pureComponentHooks},70955:function(x,r,n){"use strict";r.__esModule=!0,r.PrecisionEditor=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=r.PrecisionEditor=function(){function N(h,s){var l=(0,a.useBackend)(s),u=l.act,i=l.data,c=i.screenstate;return(0,e.createComponentVNode)(2,o.Window,{resizable:!0,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Seed status",children:[c==="main"&&(0,e.createComponentVNode)(2,V),c==="colors"&&(0,e.createComponentVNode)(2,k),c==="reagents"&&(0,e.createComponentVNode)(2,S)]})})})}return N}(),V=function(h,s){var l=(0,a.useBackend)(s),u=l.act,i=l.data,c=i.health,d=i.plantcolor,p=i.fruitcolor,v=i.chems,f=i.seedname;return(0,e.createComponentVNode)(2,t.LabeledList,{children:v?(0,e.createFragment)([(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Name",children:f}),c<100?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Genetic Integrity",children:100-c+"%"}):(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Genetic Integrity",children:"UNVIABLE"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Plant Color",children:d}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Fruit Color",children:p}),(0,e.createComponentVNode)(2,t.LabeledList.Divider,{size:2}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Chems produced in fruit (click to splice out)",children:v.map(function(C){return(0,e.createComponentVNode)(2,t.Button,{fluid:!0,content:C.displayname,onClick:function(){function b(){return u("prune",{gene_name:C.name})}return b}()},C.displayname)})}),(0,e.createComponentVNode)(2,t.Button,{content:"Edit Colors",onClick:function(){function C(){return u("change_focus",{window:"colors"})}return C}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Add Reagents",onClick:function(){function C(){return u("change_focus",{window:"reagents"})}return C}()}),(0,e.createComponentVNode)(2,t.LabeledList.Divider,{size:2}),(0,e.createComponentVNode)(2,t.Button,{content:"Eject Seed",onClick:function(){function C(){return u("eject")}return C}()})],0):(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Waiting",children:"There is currently no seed loaded."})})},k=function(h,s){var l=(0,a.useBackend)(s),u=l.act,i=l.data,c=i.plantcolor,d=i.fruitcolor;return(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Plant Color",children:c}),(0,e.createComponentVNode)(2,t.ColorBox,{color:c}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Fruit Color",children:d}),(0,e.createComponentVNode)(2,t.ColorBox,{color:d}),(0,e.createComponentVNode)(2,t.Button,{content:"Change plant color",onClick:function(){function p(){return u("change_color",{option:0})}return p}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Change fruit color",onClick:function(){function p(){return u("change_color",{option:1})}return p}()}),(0,e.createComponentVNode)(2,t.LabeledList.Divider,{size:2}),(0,e.createComponentVNode)(2,t.Button,{content:"Return",onClick:function(){function p(){return u("change_focus",{window:"main"})}return p}()})]})},S=function(h,s){var l=(0,a.useBackend)(s),u=l.act,i=l.data,c=i.beakerchems,d=i.health;return(0,e.createComponentVNode)(2,t.LabeledList,{children:[d<100?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Genetic Integrity",children:100-d+"%"}):(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Genetic Integrity",children:"UNVIABLE"}),(0,e.createComponentVNode)(2,t.NoticeBox,{info:1,width:19,height:9,ml:1,children:["Available chems to choose are based on the reagents stored in the beaker. "," A minimum of 100 units of reagent is required to generate a viable sequence. ","The chosen reagent will be consumed in the process.",(0,e.createComponentVNode)(2,t.Box,{bold:1,mt:1,children:"This process severely damages genetic integrity."})]}),(0,e.createComponentVNode)(2,t.Box,{width:20,opacity:.5,ml:1,mt:6,mb:2,children:["Plant will produce 1 additional unit for every 25 units beyond 100"," (modified by potency)"]}),c?(0,e.createFragment)([d<100?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Available reagents",children:c.map(function(p){return(0,e.createComponentVNode)(2,t.Button,{fluid:!0,content:p.displayname,onClick:function(){function v(){return u("add_chem",{target_chem:p.name})}return v}()},p.displayname)})}):(0,e.createComponentVNode)(2,t.NoticeBox,{warning:1,children:"WARNING: Genetic integrity of seed is too poor to proceed."}),(0,e.createComponentVNode)(2,t.Button,{content:"Eject Beaker",onClick:function(){function p(){return u("eject_beaker")}return p}()})],0):(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Waiting",children:"There is currently no beaker loaded."}),(0,e.createComponentVNode)(2,t.Button,{content:"Return",onClick:function(){function p(){return u("change_focus",{window:"main"})}return p}()})]})}},22217:function(x,r,n){"use strict";r.__esModule=!0,r.PressureRegulator=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=r.PressureRegulator=function(){function V(k,S){var N=(0,a.useBackend)(S),h=N.act,s=N.data,l=s.on,u=s.pressure_set,i=s.max_pressure,c=s.input_pressure,d=s.output_pressure,p=s.regulate_mode,v=s.set_flow_rate,f=s.last_flow_rate;return(0,e.createComponentVNode)(2,o.Window,{width:470,height:370,resizable:!0,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Status",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Input Pressure",children:[(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:c/100})," kPa"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Output Pressure",children:[(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:d/100})," kPa"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Flow Rate",children:[(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:f/10})," L/s"]})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Controls",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"power-off",content:l?"Unlocked":"Closed",selected:l,onClick:function(){function C(){return h("toggle_valve")}return C}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Pressure Regulation",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{icon:"power-off",content:"Off",selected:p===0,onClick:function(){function C(){return h("regulate_mode",{mode:"off"})}return C}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"compress-arrows-alt",content:"Input",selected:p===1,onClick:function(){function C(){return h("regulate_mode",{mode:"input"})}return C}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"expand-arrows-alt",content:"Output",selected:p===2,onClick:function(){function C(){return h("regulate_mode",{mode:"output"})}return C}()})],4)}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Desired Output Pressure",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{icon:"compress-arrows-alt",content:"MIN",onClick:function(){function C(){return h("set_press",{press:"min"})}return C}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"expand-arrows-alt",content:"MAX",onClick:function(){function C(){return h("set_press",{press:"max"})}return C}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"wrench",content:"SET",onClick:function(){function C(){return h("set_press",{press:"set"})}return C}()})],4),children:[u/100," kPa"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Flow Rate Limit",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{icon:"compress-arrows-alt",content:"MIN",onClick:function(){function C(){return h("set_flow_rate",{press:"min"})}return C}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"expand-arrows-alt",content:"MAX",onClick:function(){function C(){return h("set_flow_rate",{press:"max"})}return C}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"wrench",content:"SET",onClick:function(){function C(){return h("set_flow_rate",{press:"set"})}return C}()})],4),children:[v/10," L/s"]})]})})]})})}return V}()},97749:function(x,r,n){"use strict";r.__esModule=!0,r.PrisonerManagement=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=r.PrisonerManagement=function(){function V(k,S){var N=(0,a.useBackend)(S),h=N.act,s=N.data,l=s.locked,u=s.chemImplants,i=s.trackImplants;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:400,resizable:!0,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:l&&(0,e.createComponentVNode)(2,t.Section,{title:"Locked",textAlign:"center",children:["This interface is currently locked.",(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"unlock",onClick:function(){function c(){return h("lock")}return c}(),children:"Unlock"})})]})||(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{title:"Interface Lock",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"lock",onClick:function(){function c(){return h("lock")}return c}(),children:"Lock Interface"})}),(0,e.createComponentVNode)(2,t.Section,{title:"Chemical Implants",children:u.length&&(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:"Host"}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:"Units Remaining"}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:"Inject"})]}),u.map(function(c){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:c.host}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:[c.units,"u remaining"]}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function d(){return h("inject",{imp:c.ref,val:1})}return d}(),children:"(1)"}),(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function d(){return h("inject",{imp:c.ref,val:5})}return d}(),children:"(5)"}),(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function d(){return h("inject",{imp:c.ref,val:10})}return d}(),children:"(10)"})]})]},c.ref)})]})||(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"No chemical implants found."})}),(0,e.createComponentVNode)(2,t.Section,{title:"Tracking Implants",children:i.length&&(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:"Host"}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:"Location"}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:"Message"})]}),i.map(function(c){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:[c.host," (",c.id,")"]}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:c.loc}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function d(){return h("warn",{imp:c.ref})}return d}(),children:"Message"})})]},c.ref)})]})||(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"No chemical implants found."})})],4)})})}return V}()},23613:function(x,r,n){"use strict";r.__esModule=!0,r.RCONContent=r.RCON=void 0;var e=n(58734),a=n(5339),t=n(43820),o=n(62188),m=n(11790),V=n(11477),k=n(40946),S=1e3,N=r.RCON=function(){function c(d,p){return(0,e.createComponentVNode)(2,V.Window,{width:630,height:540,resizable:!0,children:(0,e.createComponentVNode)(2,V.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,h)})})}return c}(),h=r.RCONContent=function(){function c(d,p){var v=(0,o.useLocalState)(p,"tabIndex",0),f=v[0],C=v[1],b;return f===0?b=(0,e.createComponentVNode)(2,s):f===1&&(b=(0,e.createComponentVNode)(2,i)),(0,e.createFragment)([(0,e.createComponentVNode)(2,m.Tabs,{children:[(0,e.createComponentVNode)(2,m.Tabs.Tab,{selected:f===0,onClick:function(){function g(){return C(0)}return g}(),children:[(0,e.createComponentVNode)(2,m.Icon,{name:"power-off"})," SMESs"]},"SMESs"),(0,e.createComponentVNode)(2,m.Tabs.Tab,{selected:f===1,onClick:function(){function g(){return C(1)}return g}(),children:[(0,e.createComponentVNode)(2,m.Icon,{name:"bolt"})," Breakers"]},"Breakers")]}),(0,e.createComponentVNode)(2,m.Box,{m:2,children:b})],4)}return c}(),s=function(d,p){var v=(0,o.useBackend)(p),f=v.act,C=v.data,b=C.smes_info,g=C.pages,y=C.current_page,B=function(I){return I()};return(0,e.createComponentVNode)(2,m.Section,{title:"SMESs (Page "+y+")",children:[(0,e.createComponentVNode)(2,m.Stack,{vertical:!0,children:b.map(function(L){return(0,e.createComponentVNode)(2,m.Stack.Item,{children:(0,e.createComponentVNode)(2,l,{smes:L})},L.RCON_tag)})}),"Page Selection:",(0,e.createVNode)(1,"br"),B(function(){for(var L=[],I=function(M){L.push((0,e.createComponentVNode)(2,m.Button,{selected:y===M,onClick:function(){function A(){return f("set_smes_page",{index:M})}return A}(),children:M},M))},w=1;w=2?(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:"-- MODULE DESTROYED --"}):(0,e.createComponentVNode)(2,t.Flex,{spacing:1,children:[(0,e.createComponentVNode)(2,t.Flex.Item,{grow:1,children:[(0,e.createComponentVNode)(2,t.Box,{color:"average",children:["Engage: ",C.engagecost]}),(0,e.createComponentVNode)(2,t.Box,{color:"average",children:["Active: ",C.activecost]}),(0,e.createComponentVNode)(2,t.Box,{color:"average",children:["Passive: ",C.passivecost]})]}),(0,e.createComponentVNode)(2,t.Flex.Item,{grow:1,children:C.desc})]}),C.charges?(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Module Charges",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Selected",children:(0,m.capitalize)(C.chargetype)}),C.charges.map(function(g,y){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:(0,m.capitalize)(g.caption),children:(0,e.createComponentVNode)(2,t.Button,{selected:C.realchargetype===g.index,icon:"arrow-right",onClick:function(){function B(){return i("interact_module",{module:C.index,module_mode:"select_charge_type",charge_type:g.index})}return B}()})},g.caption)})]})})}):null]},C.name)})]})}},82402:function(x,r,n){"use strict";r.__esModule=!0,r.Radio=void 0;var e=n(58734),a=n(5339),t=n(62188),o=n(11790),m=n(78419),V=n(11477),k=r.Radio=function(){function S(N,h){var s=(0,t.useBackend)(h),l=s.act,u=s.data,i=u.rawfreq,c=u.minFrequency,d=u.maxFrequency,p=u.listening,v=u.broadcasting,f=u.subspace,C=u.subspaceSwitchable,b=u.chan_list,g=u.loudspeaker,y=u.mic_cut,B=u.spk_cut,L=u.useSyndMode,I=m.RADIO_CHANNELS.find(function(T){return T.freq===Number(i)}),w=156;return b&&b.length>0?w+=b.length*28+6:w+=24,C&&(w+=38),(0,e.createComponentVNode)(2,V.Window,{width:310,height:w,resizable:!0,theme:L?"syndicate":"",children:(0,e.createComponentVNode)(2,V.Window.Content,{children:[(0,e.createComponentVNode)(2,o.Section,{children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Frequency",children:[(0,e.createComponentVNode)(2,o.NumberInput,{animated:!0,unit:"kHz",step:.2,stepPixelSize:10,minValue:c/10,maxValue:d/10,value:i/10,format:function(){function T(M){return(0,a.toFixed)(M,1)}return T}(),onDrag:function(){function T(M,A){return l("setFrequency",{freq:(0,a.round)(A*10)})}return T}()}),I&&(0,e.createComponentVNode)(2,o.Box,{inline:!0,color:I.color,ml:2,children:["[",I.name,"]"]})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Audio",children:[(0,e.createComponentVNode)(2,o.Button,{textAlign:"center",width:"37px",icon:p?"volume-up":"volume-mute",selected:p,disabled:B,onClick:function(){function T(){return l("listen")}return T}()}),(0,e.createComponentVNode)(2,o.Button,{textAlign:"center",width:"37px",icon:v?"microphone":"microphone-slash",selected:v,disabled:y,onClick:function(){function T(){return l("broadcast")}return T}()}),!!C&&(0,e.createComponentVNode)(2,o.Box,{children:(0,e.createComponentVNode)(2,o.Button,{icon:"bullhorn",selected:f,content:"Subspace Tx "+(f?"ON":"OFF"),onClick:function(){function T(){return l("subspace")}return T}()})}),!!C&&(0,e.createComponentVNode)(2,o.Box,{children:(0,e.createComponentVNode)(2,o.Button,{icon:g?"volume-up":"volume-mute",selected:g,content:"Loudspeaker",onClick:function(){function T(){return l("toggleLoudspeaker")}return T}()})})]})]})}),(0,e.createComponentVNode)(2,o.Section,{title:"Channels",children:[(!b||b.length===0)&&(0,e.createComponentVNode)(2,o.Box,{inline:!0,color:"bad",children:"No channels detected."}),(0,e.createComponentVNode)(2,o.LabeledList,{children:b?b.map(function(T){var M=m.RADIO_CHANNELS.find(function(R){return R.freq===Number(T.freq)}),A="default";return M&&(A=M.color),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:T.display_name,labelColor:A,textAlign:"right",children:T.secure_channel&&f?(0,e.createComponentVNode)(2,o.Button,{icon:T.sec_channel_listen?"square-o":"check-square-o",selected:!T.sec_channel_listen,content:T.sec_channel_listen?"Off":"On",onClick:function(){function R(){return l("channel",{channel:T.chan})}return R}()}):(0,e.createComponentVNode)(2,o.Button,{content:"Switch",selected:T.chan===i,onClick:function(){function R(){return l("specFreq",{channel:T.chan})}return R}()})},T.chan)}):null})]})]})})}return S}()},25114:function(x,r,n){"use strict";r.__esModule=!0,r.RapidPipeDispenser=r.ICON_BY_CATEGORY_NAME=void 0;var e=n(58734),a=n(59641),t=n(40946),o=n(62188),m=n(11790),V=n(11477),k=["Atmospherics","Disposals"],S=r.ICON_BY_CATEGORY_NAME={Atmospherics:"wrench",Disposals:"trash-alt","Transit Tubes":"bus",Pipes:"grip-lines","Disposal Pipes":"grip-lines",Devices:"microchip","Heat Exchange":"thermometer-half","Insulated pipes":"snowflake","Station Equipment":"microchip"},N=[{name:"Dispense",bitmask:1},{name:"Connect",bitmask:2},{name:"Destroy",bitmask:4},{name:"Paint",bitmask:8}],h=function(c,d){var p=(0,o.useBackend)(d),v=p.act,f=p.data,C=f.category,b=f.selected_color,g=f.mode;return(0,e.createComponentVNode)(2,m.Section,{children:(0,e.createComponentVNode)(2,m.LabeledList,{children:[(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Category",children:k.map(function(y,B){return(0,e.createComponentVNode)(2,m.Button,{selected:C===B,icon:S[y],color:"transparent",onClick:function(){function L(){return v("category",{category:B})}return L}(),children:y},y)})}),(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Modes",children:(0,e.createComponentVNode)(2,m.Stack,{fill:!0,children:N.map(function(y){return(0,e.createComponentVNode)(2,m.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,m.Button.Checkbox,{checked:g&y.bitmask,fluid:!0,content:y.name,onClick:function(){function B(){return v("mode",{mode:y.bitmask})}return B}()})},y.bitmask)})})}),(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Color",children:[(0,e.createComponentVNode)(2,m.Box,{inline:!0,width:"64px",color:f.paint_colors[b],children:(0,t.capitalize)(b)}),Object.keys(f.paint_colors).map(function(y){return(0,e.createComponentVNode)(2,m.ColorBox,{ml:1,color:f.paint_colors[y],onClick:function(){function B(){return v("color",{paint_color:y})}return B}()},y)})]})]})})},s=function(c,d){var p=(0,o.useBackend)(d),v=p.act,f=p.data,C=f.category,b=f.piping_layer,g=f.pipe_layers,y=f.preview_rows.flatMap(function(B){return B.previews});return(0,e.createComponentVNode)(2,m.Section,{fill:!0,width:7.5,children:[C===0&&(0,e.createComponentVNode)(2,m.Stack,{vertical:!0,mb:1,children:Object.keys(g).map(function(B){return(0,e.createComponentVNode)(2,m.Stack.Item,{my:0,children:(0,e.createComponentVNode)(2,m.Button.Checkbox,{checked:g[B]===b,content:B,onClick:function(){function L(){return v("piping_layer",{piping_layer:g[B]})}return L}()})},B)})}),(0,e.createComponentVNode)(2,m.Box,{width:"120px",children:y.map(function(B){return(0,e.createComponentVNode)(2,m.Button,{ml:0,title:B.dir_name,selected:B.selected,style:{width:"40px",height:"40px",padding:0},onClick:function(){function L(){return v("setdir",{dir:B.dir,flipped:B.flipped})}return L}(),children:(0,e.createComponentVNode)(2,m.Box,{className:(0,a.classes)(["pipes32x32",B.dir+"-"+B.icon_state]),style:{transform:"scale(1.5) translate(9.5%, 9.5%)"}})},B.dir)})})]})},l=function(c,d){var p=(0,o.useBackend)(d),v=p.act,f=p.data,C=f.categories,b=C===void 0?[]:C,g=(0,o.useLocalState)(d,"categoryName"),y=g[0],B=g[1],L=b.find(function(I){return I.cat_name===y})||b[0];return(0,e.createComponentVNode)(2,m.Section,{fill:!0,scrollable:!0,children:[(0,e.createComponentVNode)(2,m.Tabs,{children:b.map(function(I,w){return(0,e.createComponentVNode)(2,m.Tabs.Tab,{fluid:!0,icon:S[I.cat_name],selected:I.cat_name===L.cat_name,onClick:function(){function T(){return B(I.cat_name)}return T}(),children:I.cat_name},I.cat_name)})}),L==null?void 0:L.recipes.map(function(I){return(0,e.createComponentVNode)(2,m.Button.Checkbox,{fluid:!0,ellipsis:!0,checked:I.selected,content:I.pipe_name,title:I.pipe_name,onClick:function(){function w(){return v("pipe_type",{pipe_type:I.pipe_index,category:L.cat_name})}return w}()},I.pipe_index)})]})},u=r.RapidPipeDispenser=function(){function i(c,d){var p=(0,o.useBackend)(d),v=p.act,f=p.data,C=f.category;return(0,e.createComponentVNode)(2,V.Window,{width:550,height:570,children:(0,e.createComponentVNode)(2,V.Window.Content,{children:(0,e.createComponentVNode)(2,m.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,m.Stack.Item,{children:(0,e.createComponentVNode)(2,h)}),(0,e.createComponentVNode)(2,m.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,m.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,m.Stack.Item,{children:(0,e.createComponentVNode)(2,m.Stack,{vertical:!0,fill:!0,children:(0,e.createComponentVNode)(2,m.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,s)})})}),(0,e.createComponentVNode)(2,m.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,l)})]})})]})})})}return i}()},83942:function(x,r,n){"use strict";r.__esModule=!0,r.RequestConsole=void 0;var e=n(58734),a=n(40946),t=n(62188),o=n(11790),m=n(11477),V=0,k=1,S=2,N=3,h=4,s=5,l=6,u=7,i=8,c=function(T,M){var A=(0,t.useBackend)(M),R=A.act,O=A.data,_=O.silent;return(0,e.createComponentVNode)(2,o.Section,{title:"Settings",children:(0,e.createComponentVNode)(2,o.Button,{selected:!_,icon:_?"volume-mute":"volume-up",onClick:function(){function P(){return R("toggleSilent")}return P}(),children:["Speaker ",_?"OFF":"ON"]})})},d=function(T,M){var A=(0,t.useBackend)(M),R=A.act,O=A.data,_=O.department,P=O.supply_dept;return(0,e.createComponentVNode)(2,o.Section,{title:"Supplies",children:(0,e.createComponentVNode)(2,f,{dept_list:P,department:_})})},p=function(T,M){var A=(0,t.useBackend)(M),R=A.act,O=A.data,_=O.department,P=O.assist_dept;return(0,e.createComponentVNode)(2,o.Section,{title:"Request assistance from another department",children:(0,e.createComponentVNode)(2,f,{dept_list:P,department:_})})},v=function(T,M){var A=(0,t.useBackend)(M),R=A.act,O=A.data,_=O.department,P=O.info_dept;return(0,e.createComponentVNode)(2,o.Section,{title:"Report Anonymous Information",children:(0,e.createComponentVNode)(2,f,{dept_list:P,department:_})})},f=function(T,M){var A=(0,t.useBackend)(M),R=A.act,O=T.dept_list,_=T.department;return(0,e.createComponentVNode)(2,o.LabeledList,{children:O.sort().map(function(P){return P!==_&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:P,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{icon:"envelope-open-text",onClick:function(){function D(){return R("write",{write:P,priority:1})}return D}(),children:"Message"}),(0,e.createComponentVNode)(2,o.Button,{icon:"exclamation-triangle",onClick:function(){function D(){return R("write",{write:P,priority:2})}return D}(),children:"High Priority"})],4)})||null})})},C=function(T,M){var A=(0,t.useBackend)(M),R=A.act,O=A.data;return(0,e.createComponentVNode)(2,o.Section,{children:[(0,e.createComponentVNode)(2,o.Box,{fontSize:2,color:"good",children:"Message Sent Successfully"}),(0,e.createComponentVNode)(2,o.Box,{children:(0,e.createComponentVNode)(2,o.Button,{icon:"arrow-right",onClick:function(){function _(){return R("setScreen",{setScreen:V})}return _}(),children:"Continue"})})]})},b=function(T,M){var A=(0,t.useBackend)(M),R=A.act,O=A.data;return(0,e.createComponentVNode)(2,o.Section,{children:[(0,e.createComponentVNode)(2,o.Box,{fontSize:1.5,bold:!0,color:"bad",children:"An error occured. Message Not Sent."}),(0,e.createComponentVNode)(2,o.Box,{children:(0,e.createComponentVNode)(2,o.Button,{icon:"arrow-right",onClick:function(){function _(){return R("setScreen",{setScreen:V})}return _}(),children:"Continue"})})]})},g=function(T,M){var A=(0,t.useBackend)(M),R=A.act,O=A.data,_=O.message_log;return(0,e.createComponentVNode)(2,o.Section,{title:"Messages",children:_.length&&_.map(function(P,D){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:(0,a.decodeHtmlEntities)(P[0]),buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"print",onClick:function(){function z(){return R("print",{print:D+1})}return z}(),children:"Print"}),children:(0,a.decodeHtmlEntities)(P[1])},D)})||(0,e.createComponentVNode)(2,o.Box,{children:"No messages."})})},y=function(T,M){var A=(0,t.useBackend)(M),R=A.act,O=A.data,_=O.message,P=O.recipient,D=O.priority,z=O.msgStamped,U=O.msgVerified;return(0,e.createComponentVNode)(2,o.Section,{title:"Message Authentication",children:[(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Message for "+P,children:_}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Priority",children:D===2?"High Priority":D===1?"Normal Priority":"Unknown"}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Validated By",color:U?"good":"bad",children:(0,a.decodeHtmlEntities)(U)||"No Validation"}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Stamped By",color:z?"good":"bad",children:(0,a.decodeHtmlEntities)(z)||"No Stamp"})]}),(0,e.createComponentVNode)(2,o.Button,{mt:1,icon:"share",onClick:function(){function W(){return R("department",{department:P})}return W}(),children:"Send Message"}),(0,e.createComponentVNode)(2,o.Button,{icon:"undo",onClick:function(){function W(){return R("setScreen",{setScreen:V})}return W}(),children:"Back"})]})},B=function(T,M){var A=(0,t.useBackend)(M),R=A.act,O=A.data,_=O.department,P=O.screen,D=O.message_log,z=O.newmessagepriority,U=O.silent,W=O.announcementConsole,K=O.assist_dept,H=O.supply_dept,Y=O.info_dept,J=O.message,q=O.recipient,oe=O.priority,ae=O.msgStamped,le=O.msgVerified,he=O.announceAuth;return(0,e.createComponentVNode)(2,o.Section,{title:"Send Station-Wide Announcement",children:[he&&(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Box,{bold:!0,color:"good",mb:1,children:"ID Verified. Authentication Accepted."}),(0,e.createComponentVNode)(2,o.Section,{title:"Message",mt:1,maxHeight:"200px",scrollable:!0,buttons:(0,e.createComponentVNode)(2,o.Button,{ml:1,icon:"pen",onClick:function(){function me(){return R("writeAnnouncement")}return me}(),children:"Edit"}),children:J||"No Message"})],4)||(0,e.createComponentVNode)(2,o.Box,{bold:!0,color:"bad",mb:1,children:"Swipe your ID card to authenticate yourself."}),(0,e.createComponentVNode)(2,o.Button,{disabled:!J||!he,icon:"share",onClick:function(){function me(){return R("sendAnnouncement")}return me}(),children:"Announce"}),(0,e.createComponentVNode)(2,o.Button,{icon:"undo",onClick:function(){function me(){return R("setScreen",{setScreen:V})}return me}(),children:"Back"})]})},L={};L[V]=c,L[k]=p,L[S]=d,L[N]=v,L[h]=C,L[s]=b,L[l]=g,L[u]=y,L[i]=B;var I=r.RequestConsole=function(){function w(T,M){var A=(0,t.useBackend)(M),R=A.act,O=A.data,_=O.screen,P=O.newmessagepriority,D=O.announcementConsole,z=L[_];return(0,e.createComponentVNode)(2,m.Window,{width:520,height:410,resizable:!0,children:(0,e.createComponentVNode)(2,m.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,o.Tabs,{children:[(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:_===l,onClick:function(){function U(){return R("setScreen",{setScreen:l})}return U}(),icon:"envelope-open-text",children:"Messages"}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:_===k,onClick:function(){function U(){return R("setScreen",{setScreen:k})}return U}(),icon:"share-square",children:"Assistance"}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:_===S,onClick:function(){function U(){return R("setScreen",{setScreen:S})}return U}(),icon:"share-square",children:"Supplies"}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:_===N,onClick:function(){function U(){return R("setScreen",{setScreen:N})}return U}(),icon:"share-square-o",children:"Report"}),D&&(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:_===i,onClick:function(){function U(){return R("setScreen",{setScreen:i})}return U}(),icon:"volume-up",children:"Announce"})||null,(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:_===V,onClick:function(){function U(){return R("setScreen",{setScreen:V})}return U}(),icon:"cog"})]}),P&&(0,e.createComponentVNode)(2,o.Section,{title:P>1?"NEW PRIORITY MESSAGES":"There are new messages!",color:P>1?"bad":"average",bold:P>1})||null,(0,e.createComponentVNode)(2,z)]})})}return w}()},69701:function(x,r,n){"use strict";r.__esModule=!0,r.ResearchConsole=void 0;var e=n(58734),a=n(40946),t=n(62188),o=n(11790),m=n(11477),V=function(C,b){var g=(0,t.useBackend)(b),y=g.act,B=g.data,L=B.tech;return(0,e.createComponentVNode)(2,o.Section,{title:"Current Research Levels",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"print",onClick:function(){function I(){return y("print",{print:1})}return I}(),children:"Print This Page"}),children:(0,e.createComponentVNode)(2,o.Table,{children:L.map(function(I){return(0,e.createComponentVNode)(2,o.Table.Row,{children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:[(0,e.createComponentVNode)(2,o.Box,{color:"label",children:I.name}),(0,e.createComponentVNode)(2,o.Box,{children:[" - Level ",I.level]})]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Box,{color:"label",children:I.desc})})]},I.name)})})})},k=function(C,b){var g=(0,t.useBackend)(b),y=g.data,B=C.title,L=C.target,I=y[L];return typeof I=="number"?B+" - Page "+(I+1):B},S=function(C,b){var g=(0,t.useBackend)(b),y=g.act,B=C.target;return(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{icon:"undo",onClick:function(){function L(){return y(B,{reset:!0})}return L}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"chevron-left",onClick:function(){function L(){return y(B,{reverse:-1})}return L}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"chevron-right",onClick:function(){function L(){return y(B,{reverse:1})}return L}()})],4)},N=function(C,b){var g=(0,t.useBackend)(b),y=g.act,B=g.data,L=B.designs;return(0,e.createComponentVNode)(2,o.Section,{title:(0,e.createComponentVNode)(2,k,{title:"Researched Technologies & Designs",target:"design_page"}),buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{icon:"print",onClick:function(){function I(){return y("print",{print:2})}return I}(),children:"Print This Page"}),(0,e.createComponentVNode)(2,S,{target:"design_page"})||null],0),children:[(0,e.createComponentVNode)(2,o.Input,{fluid:!0,placeholder:"Search for...",value:B.search,onInput:function(){function I(w,T){return y("search",{search:T})}return I}(),mb:1}),L&&L.length&&(0,e.createComponentVNode)(2,o.LabeledList,{children:L.map(function(I){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:I.name,children:I.desc},I.name)})})||(0,e.createComponentVNode)(2,o.Box,{color:"warning",children:"No designs found."})]})},h=function(C,b){var g=(0,t.useBackend)(b),y=g.act,B=g.data,L=B.tech,I=C.disk;if(!I||!I.present)return null;var w=(0,t.useSharedState)(b,"saveDialogTech",!1),T=w[0],M=w[1];return T?(0,e.createComponentVNode)(2,o.Section,{title:"Load Technology to Disk",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"arrow-left",content:"Back",onClick:function(){function A(){return M(!1)}return A}()}),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:L.map(function(A){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:A.name,children:(0,e.createComponentVNode)(2,o.Button,{icon:"save",onClick:function(){function R(){M(!1),y("copy_tech",{copy_tech_ID:A.id})}return R}(),children:"Copy To Disk"})},A.name)})})}):(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,o.LabeledList,{children:(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Disk Contents",children:"(Technology Data Disk)"})}),I.stored&&(0,e.createComponentVNode)(2,o.Box,{mt:2,children:[(0,e.createComponentVNode)(2,o.Box,{children:I.name}),(0,e.createComponentVNode)(2,o.Box,{children:["Level: ",I.level]}),(0,e.createComponentVNode)(2,o.Box,{children:["Description: ",I.desc]}),(0,e.createComponentVNode)(2,o.Box,{mt:1,children:[(0,e.createComponentVNode)(2,o.Button,{icon:"save",onClick:function(){function A(){return y("updt_tech")}return A}(),children:"Upload to Database"}),(0,e.createComponentVNode)(2,o.Button,{icon:"trash",onClick:function(){function A(){return y("clear_tech")}return A}(),children:"Clear Disk"}),(0,e.createComponentVNode)(2,o.Button,{icon:"eject",onClick:function(){function A(){return y("eject_tech")}return A}(),children:"Eject Disk"})]})]})||(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,o.Box,{children:"This disk has no data stored on it."}),(0,e.createComponentVNode)(2,o.Button,{icon:"save",onClick:function(){function A(){return M(!0)}return A}(),children:"Load Tech To Disk"}),(0,e.createComponentVNode)(2,o.Button,{icon:"eject",onClick:function(){function A(){return y("eject_tech")}return A}(),children:"Eject Disk"})]})]})},s=function(C,b){var g=(0,t.useBackend)(b),y=g.act,B=g.data,L=B.designs,I=C.disk;if(!I||!I.present)return null;var w=(0,t.useSharedState)(b,"saveDialogData",!1),T=w[0],M=w[1];return T?(0,e.createComponentVNode)(2,o.Section,{title:(0,e.createComponentVNode)(2,k,{title:"Load Design to Disk",target:"design_page"}),buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{icon:"arrow-left",content:"Back",onClick:function(){function A(){return M(!1)}return A}()}),(0,e.createComponentVNode)(2,S,{target:"design_page"})||null],0),children:[(0,e.createComponentVNode)(2,o.Input,{fluid:!0,placeholder:"Search for...",value:B.search,onInput:function(){function A(R,O){return y("search",{search:O})}return A}(),mb:1}),L&&L.length&&(0,e.createComponentVNode)(2,o.LabeledList,{children:L.map(function(A){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:A.name,children:(0,e.createComponentVNode)(2,o.Button,{icon:"save",onClick:function(){function R(){M(!1),y("copy_design",{copy_design_ID:A.id})}return R}(),children:"Copy To Disk"})},A.name)})})||(0,e.createComponentVNode)(2,o.Box,{color:"warning",children:"No designs found."})]}):(0,e.createComponentVNode)(2,o.Box,{children:I.stored&&(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Name",children:I.name}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Lathe Type",children:I.build_type}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Required Materials",children:Object.keys(I.materials).map(function(A){return(0,e.createComponentVNode)(2,o.Box,{children:[A," x ",I.materials[A]]},A)})})]}),(0,e.createComponentVNode)(2,o.Box,{mt:1,children:[(0,e.createComponentVNode)(2,o.Button,{icon:"save",onClick:function(){function A(){return y("updt_design")}return A}(),children:"Upload to Database"}),(0,e.createComponentVNode)(2,o.Button,{icon:"trash",onClick:function(){function A(){return y("clear_design")}return A}(),children:"Clear Disk"}),(0,e.createComponentVNode)(2,o.Button,{icon:"eject",onClick:function(){function A(){return y("eject_design")}return A}(),children:"Eject Disk"})]})]})||(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,o.Box,{mb:.5,children:"This disk has no data stored on it."}),(0,e.createComponentVNode)(2,o.Button,{icon:"save",onClick:function(){function A(){return M(!0)}return A}(),children:"Load Design To Disk"}),(0,e.createComponentVNode)(2,o.Button,{icon:"eject",onClick:function(){function A(){return y("eject_design")}return A}(),children:"Eject Disk"})]})})},l=function(C,b){var g=(0,t.useBackend)(b),y=g.act,B=g.data,L=B.info,I=L.d_disk,w=L.t_disk;return!I.present&&!w.present?(0,e.createComponentVNode)(2,o.Section,{title:"Disk Operations",children:"No disk inserted."}):(0,e.createComponentVNode)(2,o.Section,{title:"Disk Operations",children:[(0,e.createComponentVNode)(2,h,{disk:w}),(0,e.createComponentVNode)(2,s,{disk:I})]})},u=function(C,b){var g=(0,t.useBackend)(b),y=g.act,B=g.data,L=B.info.linked_destroy;if(!L.present)return(0,e.createComponentVNode)(2,o.Section,{title:"Destructive Analyzer",children:"No destructive analyzer found."});var I=L.loaded_item,w=L.origin_tech;return(0,e.createComponentVNode)(2,o.Section,{title:"Destructive Analyzer",children:I&&(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Name",children:I}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Origin Tech",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:w.length&&w.map(function(T){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:T.name,children:[T.level,"\xA0\xA0",T.current&&"(Current: "+T.current+")"]},T.name)})||(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Error",children:"No origin tech found."})})})]}),(0,e.createComponentVNode)(2,o.Button,{mt:1,color:"red",icon:"eraser",onClick:function(){function T(){return y("deconstruct")}return T}(),children:"Deconstruct Item"}),(0,e.createComponentVNode)(2,o.Button,{icon:"eject",onClick:function(){function T(){return y("eject_item")}return T}(),children:"Eject Item"})]})||(0,e.createComponentVNode)(2,o.Box,{children:"No Item Loaded. Standing-by..."})})},i=function(C,b){var g=(0,t.useBackend)(b),y=g.act,B=g.data,L=C.target,I=C.designs,w=C.buildName,T=C.buildFiveName;return L?(0,e.createComponentVNode)(2,o.Section,{title:(0,e.createComponentVNode)(2,k,{target:"builder_page",title:"Designs"}),buttons:(0,e.createComponentVNode)(2,S,{target:"builder_page"}),children:[(0,e.createComponentVNode)(2,o.Input,{fluid:!0,placeholder:"Search for...",value:B.search,onInput:function(){function M(A,R){return y("search",{search:R})}return M}(),mb:1}),I&&I.length?I.map(function(M){return(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Flex,{width:"100%",justify:"space-between",children:[(0,e.createComponentVNode)(2,o.Flex.Item,{width:"40%",style:{"word-wrap":"break-all"},children:M.name}),(0,e.createComponentVNode)(2,o.Flex.Item,{width:"15%",textAlign:"center",children:[(0,e.createComponentVNode)(2,o.Button,{mb:-1,icon:"wrench",onClick:function(){function A(){return y(w,{build:M.id,imprint:M.id})}return A}(),children:"Build"}),T&&(0,e.createComponentVNode)(2,o.Button,{mb:-1,onClick:function(){function A(){return y(T,{build:M.id,imprint:M.id})}return A}(),children:"x5"})]}),(0,e.createComponentVNode)(2,o.Flex.Item,{width:"45%",style:{"word-wrap":"break-all"},children:[(0,e.createComponentVNode)(2,o.Box,{inline:!0,color:"label",children:M.mat_list.join(" ")}),(0,e.createComponentVNode)(2,o.Box,{inline:!0,color:"average",ml:1,children:M.chem_list.join(" ")})]})]}),(0,e.createComponentVNode)(2,o.Divider)],4,M.id)}):(0,e.createComponentVNode)(2,o.Box,{children:"No items could be found matching the parameters (page or search)."})]}):(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"Error"})},c=function(C,b){var g=(0,t.useBackend)(b),y=g.act,B=g.data,L=C.name,I=null,w=null;if(L==="Protolathe"?(I=B.info.linked_lathe,w=B.lathe_designs):(I=B.info.linked_imprinter,w=B.imprinter_designs),!I||!I.present)return(0,e.createComponentVNode)(2,o.Section,{title:L,children:["No ",L," found."]});var T=I,M=T.total_materials,A=T.max_materials,R=T.total_volume,O=T.max_volume,_=T.busy,P=T.mats,D=T.reagents,z=T.queue,U=(0,t.useSharedState)(b,"protoTab",0),W=U[0],K=U[1],H="transparent",Y=!1,J="layer-group";_?(J="hammer",H="average",Y=!0):z&&z.length&&(J="sync",H="green",Y=!0);var q=L==="Protolathe"?"removeP":"removeI",oe=L==="Protolathe"?"lathe_ejectsheet":"imprinter_ejectsheet",ae=L==="Protolathe"?"disposeP":"disposeI",le=L==="Protolathe"?"disposeallP":"disposeallI";return(0,e.createComponentVNode)(2,o.Section,{title:L,buttons:_&&(0,e.createComponentVNode)(2,o.Icon,{name:"sync",spin:!0})||null,children:[(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Materials",children:(0,e.createComponentVNode)(2,o.ProgressBar,{value:M,maxValue:A,children:[M," cm\xB3 / ",A," cm\xB3"]})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Chemicals",children:(0,e.createComponentVNode)(2,o.ProgressBar,{value:R,maxValue:O,children:[R,"u / ",O,"u"]})})]}),(0,e.createComponentVNode)(2,o.Tabs,{mt:1,children:[(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"wrench",selected:W===0,onClick:function(){function he(){return K(0)}return he}(),children:"Build"}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:J,iconSpin:Y,color:H,selected:W===1,onClick:function(){function he(){return K(1)}return he}(),children:"Queue"}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"cookie-bite",selected:W===2,onClick:function(){function he(){return K(2)}return he}(),children:"Mat Storage"}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"flask",selected:W===3,onClick:function(){function he(){return K(3)}return he}(),children:"Chem Storage"})]}),W===0&&(0,e.createComponentVNode)(2,i,{target:I,designs:w,buildName:L==="Protolathe"?"build":"imprint",buildFiveName:L==="Protolathe"?"buildfive":null})||W===1&&(0,e.createComponentVNode)(2,o.LabeledList,{children:z.length&&z.map(function(he){return he.index===1?(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:he.name,labelColor:"bad",children:_?(0,e.createComponentVNode)(2,o.Button,{disabled:!0,icon:"trash",children:"Remove"}):(0,e.createComponentVNode)(2,o.Box,{children:["(Awaiting Materials)",(0,e.createComponentVNode)(2,o.Button,{ml:1,icon:"trash",onClick:function(){function me(){var Be;return y(q,(Be={},Be[q]=he.index,Be))}return me}(),children:"Remove"})]})}):(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:he.name,children:(0,e.createComponentVNode)(2,o.Button,{icon:"trash",onClick:function(){function me(){var Be;return y(q,(Be={},Be[q]=he.index,Be))}return me}(),children:"Remove"})},he.name)})||(0,e.createComponentVNode)(2,o.Box,{m:1,children:"Queue Empty."})})||W===2&&(0,e.createComponentVNode)(2,o.LabeledList,{children:P.map(function(he){var me=(0,t.useLocalState)(b,"ejectAmt"+he.name,0),Be=me[0],ce=me[1];return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:(0,a.toTitleCase)(he.name),buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.NumberInput,{minValue:0,width:"100px",value:Be,maxValue:he.sheets,onDrag:function(){function te(ee,ie){return ce(ie)}return te}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"eject",disabled:!he.removable,onClick:function(){function te(){var ee;ce(0),y(oe,(ee={},ee[oe]=he.name,ee.amount=Be,ee))}return te}(),children:"Num"}),(0,e.createComponentVNode)(2,o.Button,{icon:"eject",disabled:!he.removable,onClick:function(){function te(){var ee;return y(oe,(ee={},ee[oe]=he.name,ee.amount=50,ee))}return te}(),children:"All"})],4),children:[he.amount," cm\xB3"]},he.name)})})||W===3&&(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,o.LabeledList,{children:D.length&&D.map(function(he){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:he.name,children:[he.volume,"u",(0,e.createComponentVNode)(2,o.Button,{ml:1,icon:"eject",onClick:function(){function me(){return y(ae,{dispose:he.id})}return me}(),children:"Purge"})]},he.name)})||(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Empty",children:"No chems detected"})}),(0,e.createComponentVNode)(2,o.Button,{mt:1,icon:"trash",onClick:function(){function he(){return y(le)}return he}(),children:"Disposal All Chemicals In Storage"})]})||(0,e.createComponentVNode)(2,o.Box,{children:"Error"})]})},d=function(C,b){var g=(0,t.useBackend)(b),y=g.act,B=g.data,L=B.info,I=L.sync,w=L.linked_destroy,T=L.linked_imprinter,M=L.linked_lathe,A=(0,t.useSharedState)(b,"settingsTab",0),R=A[0],O=A[1];return(0,e.createComponentVNode)(2,o.Section,{title:"Settings",children:[(0,e.createComponentVNode)(2,o.Tabs,{children:[(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"cogs",onClick:function(){function _(){return O(0)}return _}(),selected:R===0,children:"General"}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"link",onClick:function(){function _(){return O(1)}return _}(),selected:R===1,children:"Device Linkages"})]}),R===0&&(0,e.createComponentVNode)(2,o.Box,{children:[I&&(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{fluid:!0,icon:"sync",onClick:function(){function _(){return y("sync")}return _}(),children:"Sync Database with Network"}),(0,e.createComponentVNode)(2,o.Button,{fluid:!0,icon:"unlink",onClick:function(){function _(){return y("togglesync")}return _}(),children:"Disconnect from Research Network"})],4)||(0,e.createComponentVNode)(2,o.Button,{fluid:!0,icon:"link",onClick:function(){function _(){return y("togglesync")}return _}(),children:"Connect to Research Network"}),(0,e.createComponentVNode)(2,o.Button,{fluid:!0,icon:"lock",onClick:function(){function _(){return y("lock")}return _}(),children:"Lock Console"}),(0,e.createComponentVNode)(2,o.Button,{fluid:!0,color:"red",icon:"trash",onClick:function(){function _(){return y("reset")}return _}(),children:"Reset R&D Database"})]})||R===1&&(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,o.Button,{fluid:!0,icon:"sync",mb:1,onClick:function(){function _(){return y("find_device")}return _}(),children:"Re-sync with Nearby Devices"}),(0,e.createComponentVNode)(2,o.LabeledList,{children:[w.present&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Destructive Analyzer",children:(0,e.createComponentVNode)(2,o.Button,{icon:"unlink",onClick:function(){function _(){return y("disconnect",{disconnect:"destroy"})}return _}(),children:"Disconnect"})})||null,M.present&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Protolathe",children:(0,e.createComponentVNode)(2,o.Button,{icon:"unlink",onClick:function(){function _(){return y("disconnect",{disconnect:"lathe"})}return _}(),children:"Disconnect"})})||null,T.present&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Circuit Imprinter",children:(0,e.createComponentVNode)(2,o.Button,{icon:"unlink",onClick:function(){function _(){return y("disconnect",{disconnect:"imprinter"})}return _}(),children:"Disconnect"})})||null]})]})||(0,e.createComponentVNode)(2,o.Box,{children:"Error"})]})},p=[{name:"Protolathe",icon:"wrench",template:(0,e.createComponentVNode)(2,c,{name:"Protolathe"})},{name:"Circuit Imprinter",icon:"digital-tachograph",template:(0,e.createComponentVNode)(2,c,{name:"Circuit Imprinter"})},{name:"Destructive Analyzer",icon:"eraser",template:(0,e.createComponentVNode)(2,u)},{name:"Settings",icon:"cog",template:(0,e.createComponentVNode)(2,d)},{name:"Research List",icon:"flask",template:(0,e.createComponentVNode)(2,V)},{name:"Design List",icon:"file",template:(0,e.createComponentVNode)(2,N)},{name:"Disk Operations",icon:"save",template:(0,e.createComponentVNode)(2,l)}],v=r.ResearchConsole=function(){function f(C,b){var g=(0,t.useBackend)(b),y=g.act,B=g.data,L=B.busy_msg,I=B.locked,w=(0,t.useSharedState)(b,"rdmenu",0),T=w[0],M=w[1],A=!1;return(L||I)&&(A=!0),(0,e.createComponentVNode)(2,m.Window,{width:850,height:630,children:(0,e.createComponentVNode)(2,m.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,o.Tabs,{children:p.map(function(R,O){return(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:R.icon,selected:T===O,disabled:A,onClick:function(){function _(){return M(O)}return _}(),children:R.name},O)})}),L&&(0,e.createComponentVNode)(2,o.Section,{title:"Processing...",children:L})||I&&(0,e.createComponentVNode)(2,o.Section,{title:"Console Locked",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function R(){return y("lock")}return R}(),icon:"lock-open",children:"Unlock"})})||p[T].template]})})}return f}()},6743:function(x,r,n){"use strict";r.__esModule=!0,r.ResearchServerController=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=n(45445),V=r.ResearchServerController=function(){function l(u,i){var c=(0,a.useBackend)(i),d=c.act,p=c.data;return(0,e.createComponentVNode)(2,o.Window,{width:575,height:430,resizable:!0,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,k)})})}return l}(),k=function(u,i){var c=(0,a.useBackend)(i),d=c.act,p=c.data,v=p.badmin,f=p.servers,C=p.consoles,b=(0,a.useSharedState)(i,"selectedServer",null),g=b[0],y=b[1],B=f.find(function(L){return L.id===g});return B?(0,e.createComponentVNode)(2,S,{setSelectedServer:y,server:B}):(0,e.createComponentVNode)(2,t.Section,{title:"Server Selection",children:f.map(function(L){return(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"eye",onClick:function(){function I(){return y(L.id)}return I}(),children:L.name})},L.name)})})},S=function(u,i){var c=(0,a.useBackend)(i),d=c.act,p=c.data,v=p.badmin,f=u.server,C=u.setSelectedServer,b=(0,a.useSharedState)(i,"tab",0),g=b[0],y=b[1];return(0,e.createComponentVNode)(2,t.Section,{title:f.name,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"undo",onClick:function(){function B(){return C(null)}return B}(),children:"Back"}),children:[(0,e.createComponentVNode)(2,t.Tabs,{children:[(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:g===0,onClick:function(){function B(){return y(0)}return B}(),children:"Access Rights"}),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:g===1,onClick:function(){function B(){return y(1)}return B}(),children:"Data Management"}),v&&(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:g===2,onClick:function(){function B(){return y(2)}return B}(),color:"red",children:"Server-to-Server Transfer"})||null]}),g===0&&(0,e.createComponentVNode)(2,N,{server:f})||null,g===1&&(0,e.createComponentVNode)(2,h,{server:f})||null,g===2&&v&&(0,e.createComponentVNode)(2,s,{server:f})||null]})},N=function(u,i){var c=(0,a.useBackend)(i),d=c.act,p=c.data,v=u.server,f=p.consoles,C=function(y,B){return y.id_with_upload.indexOf(B.id)!==-1},b=function(y,B){return y.id_with_download.indexOf(B.id)!==-1};return(0,e.createComponentVNode)(2,t.Section,{level:2,title:"Consoles",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:f.length&&f.map(function(g){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:g.name+" ("+g.loc+")",children:[(0,e.createComponentVNode)(2,t.Button,{icon:C(v,g)?"lock-open":"lock",selected:C(v,g),onClick:function(){function y(){return d("toggle_upload",{server:v.ref,console:g.ref})}return y}(),children:C(v,g)?"Upload On":"Upload Off"}),(0,e.createComponentVNode)(2,t.Button,{icon:b(v,g)?"lock-open":"lock",selected:b(v,g),onClick:function(){function y(){return d("toggle_download",{server:v.ref,console:g.ref})}return y}(),children:b(v,g)?"Download On":"Download Off"})]},g.name)})})})},h=function(u,i){var c=(0,a.useBackend)(i),d=c.act,p=c.data,v=u.server;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{level:2,title:"Research Levels",children:v.tech.map(function(f){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:f.name,buttons:(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"trash",confirmIcon:"trash",color:"red",content:"Reset",onClick:function(){function C(){return d("reset_tech",{server:v.ref,tech:f.id})}return C}()})},f.name)})}),(0,e.createComponentVNode)(2,t.Section,{level:2,title:"Designs",children:(0,m.filter)(function(f){return!!f.name})(v.designs).map(function(f){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:f.name,buttons:(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"trash",confirmIcon:"trash",color:"red",content:"Delete",onClick:function(){function C(){return d("reset_design",{server:v.ref,design:f.id})}return C}()})},f.name)})})],4)},s=function(u,i){var c=(0,a.useBackend)(i),d=c.act,p=c.data,v=u.server,f=p.badmin,C=p.servers;return f?(0,e.createComponentVNode)(2,t.Section,{level:2,title:"Server Data Transfer",children:C.map(function(b){return(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button.Confirm,{fluid:!0,color:"bad",content:(0,e.createComponentVNode)(2,t.Box,{children:["Transfer from ",v.name," To ",b.name]}),onClick:function(){function g(){return d("transfer_data",{server:v.ref,target:b.ref})}return g}()})},b.name)})}):null}},1319:function(x,r,n){"use strict";r.__esModule=!0,r.ResleevingConsole=void 0;var e=n(58734),a=n(5339),t=n(62188),o=n(11790),m=n(48388),V=n(11477),k=1,S=2,N=3,h=function(L,I){var w=(0,t.useBackend)(I),T=w.act,M=w.data,A=L.args,R=A.activerecord,O=A.realname,_=A.obviously_dead,P=A.oocnotes,D=A.can_sleeve_active;return(0,e.createComponentVNode)(2,o.Section,{level:2,m:"-1rem",pb:"1rem",title:"Mind Record ("+O+")",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"times",color:"red",onClick:function(){function z(){return T("modal_close")}return z}()}),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Name",children:O}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Status",children:_}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Actions",children:[(0,e.createComponentVNode)(2,o.Button,{disabled:!D,icon:"user-plus",content:"Sleeve",onClick:function(){function z(){return T("sleeve",{ref:R,mode:1})}return z}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"user-plus",content:"Card",onClick:function(){function z(){return T("sleeve",{ref:R,mode:2})}return z}()})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"OOC Notes",children:(0,e.createComponentVNode)(2,o.Section,{style:{"word-break":"break-all",height:"100px"},scrollable:!0,children:P})})]})})},s=function(L,I){var w=(0,t.useBackend)(I),T=w.act,M=w.data,A=L.args,R=A.activerecord,O=A.realname,_=A.species,P=A.sex,D=A.mind_compat,z=A.synthetic,U=A.oocnotes,W=A.can_grow_active;return(0,e.createComponentVNode)(2,o.Section,{level:2,m:"-1rem",pb:"1rem",title:"Body Record ("+O+")",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"times",color:"red",onClick:function(){function K(){return T("modal_close")}return K}()}),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Name",children:O}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Species",children:_}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Bio. Sex",children:P}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Mind Compat",children:D}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Synthetic",children:z?"Yes":"No"}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"OOC Notes",children:(0,e.createComponentVNode)(2,o.Section,{style:{"word-break":"break-all",height:"100px"},scrollable:!0,children:U})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Actions",children:(0,e.createComponentVNode)(2,o.Button,{disabled:!W,icon:"user-plus",content:z?"Build":"Grow",onClick:function(){function K(){return T("create",{ref:R})}return K}()})})]})})},l=r.ResleevingConsole=function(){function B(L,I){var w=(0,t.useBackend)(I),T=w.act,M=w.data,A=M.menu,R=M.coredumped,O=M.emergency,_=(0,e.createFragment)([(0,e.createComponentVNode)(2,g),(0,e.createComponentVNode)(2,y),(0,e.createComponentVNode)(2,u),(0,e.createComponentVNode)(2,o.Section,{noTopPadding:!0,flexGrow:"1",children:(0,e.createComponentVNode)(2,i)})],4);return R&&(_=(0,e.createComponentVNode)(2,c)),O&&(_=(0,e.createComponentVNode)(2,d)),(0,m.modalRegisterBodyOverride)("view_b_rec",s),(0,m.modalRegisterBodyOverride)("view_m_rec",h),(0,e.createComponentVNode)(2,V.Window,{width:640,height:520,resizable:!0,children:[(0,e.createComponentVNode)(2,m.ComplexModal,{maxWidth:"75%",maxHeight:"75%"}),(0,e.createComponentVNode)(2,V.Window.Content,{className:"Layout__content--flexColumn",children:_})]})}return B}(),u=function(L,I){var w=(0,t.useBackend)(I),T=w.act,M=w.data,A=M.menu;return(0,e.createComponentVNode)(2,o.Tabs,{children:[(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:A===k,icon:"home",onClick:function(){function R(){return T("menu",{num:k})}return R}(),children:"Main"}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:A===S,icon:"folder",onClick:function(){function R(){return T("menu",{num:S})}return R}(),children:"Body Records"}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:A===N,icon:"folder",onClick:function(){function R(){return T("menu",{num:N})}return R}(),children:"Mind Records"})]})},i=function(L,I){var w=(0,t.useBackend)(I),T=w.data,M=T.menu,A=T.bodyrecords,R=T.mindrecords,O;return M===k?O=(0,e.createComponentVNode)(2,p):M===S?O=(0,e.createComponentVNode)(2,b,{records:A,actToDo:"view_b_rec"}):M===N&&(O=(0,e.createComponentVNode)(2,b,{records:R,actToDo:"view_m_rec"})),O},c=function(L,I){return(0,e.createComponentVNode)(2,o.Dimmer,{children:(0,e.createComponentVNode)(2,o.Flex,{direction:"column",justify:"space-evenly",align:"center",children:[(0,e.createComponentVNode)(2,o.Flex.Item,{grow:1,children:(0,e.createComponentVNode)(2,o.Icon,{size:12,color:"bad",name:"exclamation-triangle"})}),(0,e.createComponentVNode)(2,o.Flex.Item,{grow:1,color:"bad",mt:5,children:(0,e.createVNode)(1,"h2",null,"TransCore dump completed. Resleeving offline.",16)})]})})},d=function(L,I){var w=(0,t.useBackend)(I),T=w.act;return(0,e.createComponentVNode)(2,o.Dimmer,{textAlign:"center",children:[(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:(0,e.createVNode)(1,"h1",null,"TRANSCORE DUMP",16)}),(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:(0,e.createVNode)(1,"h2",null,"!!WARNING!!",16)}),(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"This will transfer all minds to the dump disk, and the TransCore will be made unusable until post-shift maintenance! This should only be used in emergencies!"}),(0,e.createComponentVNode)(2,o.Box,{mt:4,children:(0,e.createComponentVNode)(2,o.Button,{icon:"eject",content:"Eject Disk",color:"good",onClick:function(){function M(){return T("ejectdisk")}return M}()})}),(0,e.createComponentVNode)(2,o.Box,{mt:4,children:(0,e.createComponentVNode)(2,o.Button.Confirm,{icon:"exclamation-triangle",confirmIcon:"exclamation-triangle",content:"Core Dump",confirmContent:"Disable Transcore?",color:"bad",onClick:function(){function M(){return T("coredump")}return M}()})})]})},p=function(L,I){var w=(0,t.useBackend)(I),T=w.act,M=w.data,A=M.loading,R=M.scantemp,O=M.occupant,_=M.locked,P=M.can_brainscan,D=M.scan_mode,z=M.pods,U=M.selected_pod,W=_&&!!O;return(0,e.createComponentVNode)(2,o.Section,{title:"Pods",level:"2",children:[(0,e.createComponentVNode)(2,v),(0,e.createComponentVNode)(2,C),(0,e.createComponentVNode)(2,f)]})},v=function(L,I){var w=(0,t.useBackend)(I),T=w.act,M=w.data,A=M.pods,R=M.spods,O=M.selected_pod;return A&&A.length?A.map(function(_,P){var D;return _.status==="cloning"?D=(0,e.createComponentVNode)(2,o.ProgressBar,{min:"0",max:"100",value:_.progress/100,ranges:{good:[.75,1/0],average:[.25,.75],bad:[-1/0,.25]},mt:"0.5rem",children:(0,e.createComponentVNode)(2,o.Box,{textAlign:"center",children:(0,a.round)(_.progress,0)+"%"})}):_.status==="mess"?D=(0,e.createComponentVNode)(2,o.Box,{bold:!0,color:"bad",mt:"0.5rem",children:"ERROR"}):D=(0,e.createComponentVNode)(2,o.Button,{selected:O===_.pod,icon:O===_.pod&&"check",content:"Select",mt:R&&R.length?"2rem":"0.5rem",onClick:function(){function z(){return T("selectpod",{ref:_.pod})}return z}()}),(0,e.createComponentVNode)(2,o.Box,{width:"64px",textAlign:"center",display:"inline-block",mr:"0.5rem",children:[(0,e.createVNode)(1,"img",null,null,1,{src:"pod_"+_.status+".gif",style:{width:"100%","-ms-interpolation-mode":"nearest-neighbor"}}),(0,e.createComponentVNode)(2,o.Box,{color:"label",children:_.name}),(0,e.createComponentVNode)(2,o.Box,{bold:!0,color:_.biomass>=150?"good":"bad",inline:!0,children:[(0,e.createComponentVNode)(2,o.Icon,{name:_.biomass>=150?"circle":"circle-o"}),"\xA0",_.biomass]}),D]},P)}):null},f=function(L,I){var w=(0,t.useBackend)(I),T=w.act,M=w.data,A=M.sleevers,R=M.spods,O=M.selected_sleever;return A&&A.length?A.map(function(_,P){return(0,e.createComponentVNode)(2,o.Box,{width:"64px",textAlign:"center",display:"inline-block",mr:"0.5rem",children:[(0,e.createVNode)(1,"img",null,null,1,{src:"sleeve_"+(_.occupied?"occupied":"empty")+".gif",style:{width:"100%","-ms-interpolation-mode":"nearest-neighbor"}}),(0,e.createComponentVNode)(2,o.Box,{color:_.occupied?"label":"bad",children:_.name}),(0,e.createComponentVNode)(2,o.Button,{selected:O===_.sleever,icon:O===_.sleever&&"check",content:"Select",mt:R&&R.length?"3rem":"1.5rem",onClick:function(){function D(){return T("selectsleever",{ref:_.sleever})}return D}()})]},P)}):null},C=function(L,I){var w=(0,t.useBackend)(I),T=w.act,M=w.data,A=M.spods,R=M.selected_printer;return A&&A.length?A.map(function(O,_){var P;return O.status==="cloning"?P=(0,e.createComponentVNode)(2,o.ProgressBar,{min:"0",max:"100",value:O.progress/100,ranges:{good:[.75,1/0],average:[.25,.75],bad:[-1/0,.25]},mt:"0.5rem",children:(0,e.createComponentVNode)(2,o.Box,{textAlign:"center",children:(0,a.round)(O.progress,0)+"%"})}):O.status==="mess"?P=(0,e.createComponentVNode)(2,o.Box,{bold:!0,color:"bad",mt:"0.5rem",children:"ERROR"}):P=(0,e.createComponentVNode)(2,o.Button,{selected:R===O.spod,icon:R===O.spod&&"check",content:"Select",mt:"0.5rem",onClick:function(){function D(){return T("selectprinter",{ref:O.spod})}return D}()}),(0,e.createComponentVNode)(2,o.Box,{width:"64px",textAlign:"center",display:"inline-block",mr:"0.5rem",children:[(0,e.createVNode)(1,"img",null,null,1,{src:"synthprinter"+(O.busy?"_working":"")+".gif",style:{width:"100%","-ms-interpolation-mode":"nearest-neighbor"}}),(0,e.createComponentVNode)(2,o.Box,{color:"label",children:O.name}),(0,e.createComponentVNode)(2,o.Box,{bold:!0,color:O.steel>=15e3?"good":"bad",inline:!0,children:[(0,e.createComponentVNode)(2,o.Icon,{name:O.steel>=15e3?"circle":"circle-o"}),"\xA0",O.steel]}),(0,e.createComponentVNode)(2,o.Box,{bold:!0,color:O.glass>=15e3?"good":"bad",inline:!0,children:[(0,e.createComponentVNode)(2,o.Icon,{name:O.glass>=15e3?"circle":"circle-o"}),"\xA0",O.glass]}),P]},_)}):null},b=function(L,I){var w=(0,t.useBackend)(I),T=w.act,M=L.records,A=L.actToDo;return M.length?(0,e.createComponentVNode)(2,o.Box,{mt:"0.5rem",children:M.map(function(R,O){return(0,e.createComponentVNode)(2,o.Button,{icon:"user",mb:"0.5rem",content:R.name,onClick:function(){function _(){return T(A,{ref:R.recref})}return _}()},O)})}):(0,e.createComponentVNode)(2,o.Flex,{height:"100%",mt:"0.5rem",children:(0,e.createComponentVNode)(2,o.Flex.Item,{grow:"1",align:"center",textAlign:"center",color:"label",children:[(0,e.createComponentVNode)(2,o.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,e.createVNode)(1,"br"),"No records found."]})})},g=function(L,I){var w,T=(0,t.useBackend)(I),M=T.act,A=T.data,R=A.temp;if(!(!R||!R.text||R.text.length<=0)){var O=(w={},w[R.style]=!0,w);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.NoticeBox,Object.assign({},O,{children:[(0,e.createComponentVNode)(2,o.Box,{display:"inline-block",verticalAlign:"middle",children:R.text}),(0,e.createComponentVNode)(2,o.Button,{icon:"times-circle",float:"right",onClick:function(){function _(){return M("cleartemp")}return _}()}),(0,e.createComponentVNode)(2,o.Box,{clear:"both"})]})))}},y=function(L,I){var w=(0,t.useBackend)(I),T=w.act,M=w.data,A=M.pods,R=M.spods,O=M.sleevers,_=M.autoallowed,P=M.autoprocess,D=M.disk;return(0,e.createComponentVNode)(2,o.Section,{title:"Status",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Pods",children:A&&A.length?(0,e.createComponentVNode)(2,o.Box,{color:"good",children:[A.length," connected"]}):(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"None connected!"})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"SynthFabs",children:R&&R.length?(0,e.createComponentVNode)(2,o.Box,{color:"good",children:[R.length," connected"]}):(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"None connected!"})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Sleevers",children:O&&O.length?(0,e.createComponentVNode)(2,o.Box,{color:"good",children:[O.length," Connected"]}):(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"None connected!"})})]})})}},7426:function(x,r,n){"use strict";r.__esModule=!0,r.ResleevingPod=void 0;var e=n(58734),a=n(11477),t=n(62188),o=n(11790),m=r.ResleevingPod=function(){function V(k,S){var N=(0,t.useBackend)(S),h=N.data,s=h.occupied,l=h.name,u=h.health,i=h.maxHealth,c=h.stat,d=h.mindStatus,p=h.mindName,v=h.resleeveSick,f=h.initialSick;return(0,e.createComponentVNode)(2,a.Window,{width:300,height:350,resizeable:!0,children:(0,e.createComponentVNode)(2,a.Window.Content,{children:(0,e.createComponentVNode)(2,o.Section,{title:"Occupant",children:s?(0,e.createFragment)([(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Name",children:l}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Health",children:c===2?(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"DEAD"}):c===1?(0,e.createComponentVNode)(2,o.Box,{color:"average",children:"Unconscious"}):(0,e.createComponentVNode)(2,o.ProgressBar,{ranges:{good:[.5,1/0],average:[.25,.5],bad:[-1/0,.25]},value:u/i,children:[u,"%"]})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Mind Status",children:d?"Present":"Missing"}),d?(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Mind Occupying",children:p}):""]}),v?(0,e.createComponentVNode)(2,o.Box,{color:"average",mt:3,children:["Warning: Resleeving Sickness detected.",f?(0,e.createFragment)([(0,e.createTextVNode)(" "),(0,e.createTextVNode)("Motion Sickness also detected. Please allow the newly resleeved person a moment to get their bearings. This warning will disappear when Motion Sickness is no longer detected.")],0):""]}):""],0):(0,e.createComponentVNode)(2,o.Box,{bold:!0,m:1,children:"Unoccupied."})})})})}return V}()},21429:function(x,r,n){"use strict";r.__esModule=!0,r.RoboticsControlConsole=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=r.RoboticsControlConsole=function(){function k(S,N){var h=(0,a.useBackend)(N),s=h.act,l=h.data,u=l.can_hack,i=l.safety,c=l.show_detonate_all,d=l.cyborgs,p=d===void 0?[]:d;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:460,resizable:!0,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[!!c&&(0,e.createComponentVNode)(2,t.Section,{title:"Emergency Self Destruct",children:[(0,e.createComponentVNode)(2,t.Button,{icon:i?"lock":"unlock",content:i?"Disable Safety":"Enable Safety",selected:i,onClick:function(){function v(){return s("arm",{})}return v}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"bomb",disabled:i,content:"Destroy ALL Cyborgs",color:"bad",onClick:function(){function v(){return s("nuke",{})}return v}()})]}),(0,e.createComponentVNode)(2,V,{cyborgs:p,can_hack:u})]})})}return k}(),V=function(S,N){var h=S.cyborgs,s=S.can_hack,l=(0,a.useBackend)(N),u=l.act,i=l.data;return h.length?h.map(function(c){return(0,e.createComponentVNode)(2,t.Section,{title:c.name,buttons:(0,e.createFragment)([!!c.hackable&&!c.emagged&&(0,e.createComponentVNode)(2,t.Button,{icon:"terminal",content:"Hack",color:"bad",onClick:function(){function d(){return u("hackbot",{ref:c.ref})}return d}()}),(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:c.locked_down?"unlock":"lock",color:c.locked_down?"good":"default",content:c.locked_down?"Release":"Lockdown",disabled:!i.auth,onClick:function(){function d(){return u("stopbot",{ref:c.ref})}return d}()}),(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"bomb",content:"Detonate",disabled:!i.auth,color:"bad",onClick:function(){function d(){return u("killbot",{ref:c.ref})}return d}()})],0),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:(0,e.createComponentVNode)(2,t.Box,{color:c.status?"bad":c.locked_down?"average":"good",children:c.status?"Not Responding":c.locked_down?"Locked Down":"Nominal"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Location",children:(0,e.createComponentVNode)(2,t.Box,{children:c.locstring})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Integrity",children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:c.health>50?"good":"bad",value:c.health/100})}),typeof c.charge=="number"&&(0,e.createFragment)([(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cell Charge",children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:c.charge>30?"good":"bad",value:c.charge/100})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cell Capacity",children:(0,e.createComponentVNode)(2,t.Box,{color:c.cell_capacity<3e4?"average":"good",children:c.cell_capacity})})],4)||(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cell",children:(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:"No Power Cell"})}),!!c.is_hacked&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Safeties",children:(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:"DISABLED"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Module",children:c.module}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Master AI",children:(0,e.createComponentVNode)(2,t.Box,{color:c.synchronization?"default":"average",children:c.synchronization||"None"})})]})},c.ref)}):(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No cyborg units detected within access parameters."})}},30941:function(x,r,n){"use strict";r.__esModule=!0,r.RogueZones=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=r.RogueZones=function(){function V(k,S){var N=(0,a.useBackend)(S),h=N.act,s=N.data,l=s.timeout_percent,u=s.diffstep,i=s.difficulty,c=s.occupied,d=s.scanning,p=s.updated,v=s.debug,f=s.shuttle_location,C=s.shuttle_at_station,b=s.scan_ready,g=s.can_recall_shuttle;return(0,e.createComponentVNode)(2,o.Window,{width:360,height:250,resizable:!0,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Current Area",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Mineral Content",children:i}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Shuttle Location",buttons:g&&(0,e.createComponentVNode)(2,t.Button,{color:"bad",icon:"rocket",onClick:function(){function y(){return h("recall_shuttle")}return y}(),children:"Recall Shuttle"})||null,children:f}),c&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{color:"bad",labelColor:"bad",label:"Personnel",children:["WARNING: Area occupied by ",c," personnel!"]})||(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Personnel",color:"good",children:"No personnel detected."})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Scanner",buttons:(0,e.createComponentVNode)(2,t.Button,{disabled:!b,fluid:!0,icon:"search",onClick:function(){function y(){return h("scan_for_new")}return y}(),children:"Scan For Asteroids"}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Scn Ramestat Core",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:l,maxValue:100,ranges:{good:[100,1/0],average:[75,100],bad:[-1/0,75]}})}),d&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Scanning",children:"In progress."})||null,p&&!d&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Info",children:"Updated shuttle destination!"})||null,v&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Debug",labelColor:"bad",children:[(0,e.createComponentVNode)(2,t.Box,{children:["Timeout Percent: ",l]}),(0,e.createComponentVNode)(2,t.Box,{children:["Diffstep: ",u]}),(0,e.createComponentVNode)(2,t.Box,{children:["Difficulty: ",i]}),(0,e.createComponentVNode)(2,t.Box,{children:["Occupied: ",c]}),(0,e.createComponentVNode)(2,t.Box,{children:["Debug: ",v]}),(0,e.createComponentVNode)(2,t.Box,{children:["Shuttle Location: ",f]}),(0,e.createComponentVNode)(2,t.Box,{children:["Shuttle at station: ",C]}),(0,e.createComponentVNode)(2,t.Box,{children:["Scan Ready: ",b]})]})||null]})})]})})}return V}()},82713:function(x,r,n){"use strict";r.__esModule=!0,r.RustCoreMonitorContent=r.RustCoreMonitor=void 0;var e=n(58734),a=n(62188),t=n(11477),o=n(11790),m=r.RustCoreMonitor=function(){function k(){return(0,e.createComponentVNode)(2,t.Window,{width:627,height:700,resizable:!0,children:(0,e.createComponentVNode)(2,t.Window.Content,{children:(0,e.createComponentVNode)(2,V)})})}return k}(),V=r.RustCoreMonitorContent=function(){function k(S,N){var h=(0,a.useBackend)(N),s=h.act,l=h.data,u=l.cores;return(0,e.createComponentVNode)(2,o.Section,{title:"Cores",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"pencil-alt",content:"Set Tag",onClick:function(){function i(){return s("set_tag")}return i}()}),children:(0,e.createComponentVNode)(2,o.Table,{children:[(0,e.createComponentVNode)(2,o.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Name"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Position"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Field Status"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Reactant Mode"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Field Instability"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Field Temperature"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Field Strength"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Plasma Content"})]}),u.map(function(i){return(0,e.createComponentVNode)(2,o.Table.Row,{children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:i.name}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:[i.x,", ",i.y,", ",i.z]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Button,{icon:"power-off",content:i.has_field?"Online":"Offline",selected:i.has_field,disabled:!i.core_operational,onClick:function(){function c(){return s("toggle_active",{core:i.ref})}return c}()})}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Button,{icon:"power-off",content:i.reactant_dump?"Dump":"Maintain",selected:i.has_field,disabled:!i.core_operational,onClick:function(){function c(){return s("toggle_reactantdump",{core:i.ref})}return c}()})}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:i.field_instability}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:i.field_temperature}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Knob,{forcedInputWidth:"60px",size:1.25,color:!!i.has_field&&"yellow",value:i.target_field_strength,unit:"(W.m^-3)",minValue:1,maxValue:1e3,stepPixelSize:1,onDrag:function(){function c(d,p){return s("set_fieldstr",{core:i.ref,fieldstr:p})}return c}()})}),(0,e.createComponentVNode)(2,o.Table.Cell)]},i.name)})]})})}return k}()},27743:function(x,r,n){"use strict";r.__esModule=!0,r.RustFuelControl=r.RustFuelContent=void 0;var e=n(58734),a=n(62188),t=n(11477),o=n(11790),m=r.RustFuelControl=function(){function k(){return(0,e.createComponentVNode)(2,t.Window,{width:627,height:700,resizable:!0,children:(0,e.createComponentVNode)(2,t.Window.Content,{children:(0,e.createComponentVNode)(2,V)})})}return k}(),V=r.RustFuelContent=function(){function k(S,N){var h=(0,a.useBackend)(N),s=h.act,l=h.data,u=l.fuels;return(0,e.createComponentVNode)(2,o.Section,{title:"Fuel Injectors",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"pencil-alt",content:"Set Tag",onClick:function(){function i(){return s("set_tag")}return i}()}),children:(0,e.createComponentVNode)(2,o.Table,{children:[(0,e.createComponentVNode)(2,o.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Name"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Position"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Status"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Remaining Fuel"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Fuel Rod Composition"})]}),u.map(function(i){return(0,e.createComponentVNode)(2,o.Table.Row,{children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:i.name}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:[i.x,", ",i.y,", ",i.z]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Button,{icon:"power-off",content:i.active?"Online":"Offline",selected:i.active,disabled:!i.deployed,onClick:function(){function c(){return s("toggle_active",{fuel:i.ref})}return c}()})}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:i.fuel_amt}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:i.fuel_type})]},i.name)})]})})}return k}()},75614:function(x,r,n){"use strict";r.__esModule=!0,r.Secbot=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=r.Secbot=function(){function V(k,S){var N=(0,a.useBackend)(S),h=N.act,s=N.data,l=s.on,u=s.open,i=s.locked,c=s.idcheck,d=s.check_records,p=s.check_arrest,v=s.arrest_type,f=s.declare_arrests,C=s.bot_patrolling,b=s.patrol;return(0,e.createComponentVNode)(2,o.Window,{width:390,height:320,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,t.Section,{title:"Automatic Security Unit v2.0",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"power-off",selected:l,onClick:function(){function g(){return h("power")}return g}(),children:l?"On":"Off"}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Maintenance Panel",color:u?"bad":"good",children:u?"Open":"Closed"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Behavior Controls",color:i?"good":"bad",children:i?"Locked":"Unlocked"})]})}),!i&&(0,e.createComponentVNode)(2,t.Section,{title:"Behavior Controls",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Check for Weapon Authorization",children:(0,e.createComponentVNode)(2,t.Button,{icon:c?"toggle-on":"toggle-off",selected:c,onClick:function(){function g(){return h("idcheck")}return g}(),children:c?"Yes":"No"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Check Security Records",children:(0,e.createComponentVNode)(2,t.Button,{icon:d?"toggle-on":"toggle-off",selected:d,onClick:function(){function g(){return h("ignorerec")}return g}(),children:d?"Yes":"No"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Check Arrest Status",children:(0,e.createComponentVNode)(2,t.Button,{icon:p?"toggle-on":"toggle-off",selected:p,onClick:function(){function g(){return h("ignorearr")}return g}(),children:p?"Yes":"No"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Operating Mode",children:(0,e.createComponentVNode)(2,t.Button,{icon:v?"toggle-on":"toggle-off",selected:v,onClick:function(){function g(){return h("switchmode")}return g}(),children:v?"Detain":"Arrest"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Report Arrests",children:(0,e.createComponentVNode)(2,t.Button,{icon:f?"toggle-on":"toggle-off",selected:f,onClick:function(){function g(){return h("declarearrests")}return g}(),children:f?"Yes":"No"})}),!!C&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Auto Patrol",children:(0,e.createComponentVNode)(2,t.Button,{icon:b?"toggle-on":"toggle-off",selected:b,onClick:function(){function g(){return h("patrol")}return g}(),children:b?"Yes":"No"})})]})})||null]})})}return V}()},69919:function(x,r,n){"use strict";r.__esModule=!0,r.SecureSafe=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=function(S,N){var h=(0,a.useBackend)(N),s=h.act,l=h.data,u=[["1","4","7","R"],["2","5","8","0"],["3","6","9","E"]],i=l.locked,c=l.l_setshort,d=l.code,p=l.emagged;return(0,e.createComponentVNode)(2,t.Box,{width:"185px",children:(0,e.createComponentVNode)(2,t.Grid,{width:"1px",children:u.map(function(v){return(0,e.createComponentVNode)(2,t.Grid.Column,{children:v.map(function(f){return(0,e.createComponentVNode)(2,t.Button,{fluid:!0,bold:!0,mb:"6px",content:f,textAlign:"center",fontSize:"40px",height:"50px",lineHeight:1.25,disabled:!!p||!!c&&1||f!=="R"&&!i||d==="ERROR"&&f!=="R"&&1,onClick:function(){function C(){return s("type",{digit:f})}return C}()},f)})},v[0])})})})},V=r.SecureSafe=function(){function k(S,N){var h=(0,a.useBackend)(N),s=h.act,l=h.data,u=l.code,i=l.l_setshort,c=l.l_set,d=l.emagged,p=l.locked,v=!(c||i);return(0,e.createComponentVNode)(2,o.Window,{width:250,height:380,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Box,{m:"6px",children:[v&&(0,e.createComponentVNode)(2,t.NoticeBox,{textAlign:"center",info:1,children:"ENTER NEW 5-DIGIT PASSCODE."}),!!d&&(0,e.createComponentVNode)(2,t.NoticeBox,{textAlign:"center",danger:1,children:"LOCKING SYSTEM ERROR - 1701"}),!!i&&(0,e.createComponentVNode)(2,t.NoticeBox,{textAlign:"center",danger:1,children:"ALERT: MEMORY SYSTEM ERROR - 6040 201"}),(0,e.createComponentVNode)(2,t.Section,{height:"60px",children:(0,e.createComponentVNode)(2,t.Box,{textAlign:"center",position:"center",fontSize:"35px",children:u&&u||(0,e.createComponentVNode)(2,t.Box,{textColor:p?"red":"green",children:p?"LOCKED":"UNLOCKED"})})}),(0,e.createComponentVNode)(2,t.Flex,{ml:"3px",children:[(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,m)}),(0,e.createComponentVNode)(2,t.Flex.Item,{ml:"6px",width:"129px"})]})]})})})}return k}()},92983:function(x,r,n){"use strict";r.__esModule=!0,r.SecurityRecords=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(48388),m=n(11477),V=n(39813),k=n(50947),S=n(45246),N=function(v,f){(0,o.modalOpen)(v,"edit",{field:f.edit,value:f.value})},h=r.SecurityRecords=function(){function p(v,f){var C=(0,a.useBackend)(f),b=C.data,g=b.authenticated,y=b.screen;if(!g)return(0,e.createComponentVNode)(2,m.Window,{width:700,height:680,resizable:!0,children:(0,e.createComponentVNode)(2,m.Window.Content,{children:(0,e.createComponentVNode)(2,k.LoginScreen)})});var B;return y===2?B=(0,e.createComponentVNode)(2,s):y===3?B=(0,e.createComponentVNode)(2,l):y===4&&(B=(0,e.createComponentVNode)(2,u)),(0,e.createComponentVNode)(2,m.Window,{width:700,height:680,resizable:!0,children:[(0,e.createComponentVNode)(2,o.ComplexModal,{maxHeight:"100%",maxWidth:"400px"}),(0,e.createComponentVNode)(2,m.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,V.LoginInfo),(0,e.createComponentVNode)(2,S.TemporaryNotice),(0,e.createComponentVNode)(2,d),(0,e.createComponentVNode)(2,t.Section,{flexGrow:!0,children:B})]})]})}return p}(),s=function(v,f){var C=(0,a.useBackend)(f),b=C.act,g=C.data,y=g.records;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Input,{fluid:!0,placeholder:"Search by Name, DNA, or ID",onChange:function(){function B(L,I){return b("search",{t1:I})}return B}()}),(0,e.createComponentVNode)(2,t.Box,{mt:"0.5rem",children:y.map(function(B,L){return(0,e.createComponentVNode)(2,t.Button,{icon:"user",mb:"0.5rem",color:B.color,content:B.id+": "+B.name+" (Criminal Status: "+B.criminal+")",onClick:function(){function I(){return b("d_rec",{d_rec:B.ref})}return I}()},L)})})],4)},l=function(v,f){var C=(0,a.useBackend)(f),b=C.act;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{icon:"download",content:"Backup to Disk",disabled:!0}),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Button,{icon:"upload",content:"Upload from Disk",my:"0.5rem",disabled:!0})," ",(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"trash",content:"Delete All Security Records",onClick:function(){function g(){return b("del_all")}return g}()})],0)},u=function(v,f){var C=(0,a.useBackend)(f),b=C.act,g=C.data,y=g.security,B=g.printing;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{title:"General Data",mt:"-6px",children:(0,e.createComponentVNode)(2,i)}),(0,e.createComponentVNode)(2,t.Section,{title:"Security Data",children:(0,e.createComponentVNode)(2,c)}),(0,e.createComponentVNode)(2,t.Section,{title:"Actions",children:[(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"trash",disabled:!!y.empty,content:"Delete Security Record",color:"bad",onClick:function(){function L(){return b("del_r")}return L}()}),(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"trash",disabled:!!y.empty,content:"Delete Record (All)",color:"bad",onClick:function(){function L(){return b("del_r_2")}return L}()}),(0,e.createComponentVNode)(2,t.Button,{icon:B?"spinner":"print",disabled:B,iconSpin:!!B,content:"Print Entry",ml:"0.5rem",onClick:function(){function L(){return b("print_p")}return L}()}),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-left",content:"Back",mt:"0.5rem",onClick:function(){function L(){return b("screen",{screen:2})}return L}()})]})],4)},i=function(v,f){var C=(0,a.useBackend)(f),b=C.act,g=C.data,y=g.general;return!y||!y.fields?(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:"General records lost!"}):(0,e.createComponentVNode)(2,t.Flex,{children:[(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:y.fields.map(function(B,L){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:B.field,children:[(0,e.createComponentVNode)(2,t.Box,{height:"20px",inline:!0,preserveWhitespace:!0,children:B.value}),!!B.edit&&(0,e.createComponentVNode)(2,t.Button,{icon:"pen",ml:"0.5rem",onClick:function(){function I(){return N(f,B)}return I}()})]},L)})})}),(0,e.createComponentVNode)(2,t.Flex.Item,{textAlign:"right",children:[!!y.has_photos&&y.photos.map(function(B,L){return(0,e.createComponentVNode)(2,t.Box,{display:"inline-block",textAlign:"center",color:"label",children:[(0,e.createVNode)(1,"img",null,null,1,{src:B.substr(1,B.length-1),style:{width:"96px","margin-bottom":"0.5rem","-ms-interpolation-mode":"nearest-neighbor"}}),(0,e.createVNode)(1,"br"),"Photo #",L+1]},L)}),(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function B(){return b("photo_front")}return B}(),children:"Update Front Photo"}),(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function B(){return b("photo_side")}return B}(),children:"Update Side Photo"})]})]})]})},c=function(v,f){var C=(0,a.useBackend)(f),b=C.act,g=C.data,y=g.security;return!y||!y.fields?(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:["Security records lost!",(0,e.createComponentVNode)(2,t.Button,{icon:"pen",content:"New Record",ml:"0.5rem",onClick:function(){function B(){return b("new")}return B}()})]}):(0,e.createFragment)([(0,e.createComponentVNode)(2,t.LabeledList,{children:y.fields.map(function(B,L){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:B.field,children:(0,e.createComponentVNode)(2,t.Box,{preserveWhitespace:!0,children:[B.value,(0,e.createComponentVNode)(2,t.Button,{icon:"pen",ml:"0.5rem",mb:B.line_break?"1rem":"initial",onClick:function(){function I(){return N(f,B)}return I}()})]})},L)})}),(0,e.createComponentVNode)(2,t.Section,{title:"Comments/Log",children:[y.comments.length===0?(0,e.createComponentVNode)(2,t.Box,{color:"label",children:"No comments found."}):y.comments.map(function(B,L){return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Box,{color:"label",inline:!0,children:B.header}),(0,e.createVNode)(1,"br"),B.text,(0,e.createComponentVNode)(2,t.Button,{icon:"comment-slash",color:"bad",ml:"0.5rem",onClick:function(){function I(){return b("del_c",{del_c:L+1})}return I}()})]},L)}),(0,e.createComponentVNode)(2,t.Button,{icon:"comment",content:"Add Entry",color:"good",mt:"0.5rem",mb:"0",onClick:function(){function B(){return(0,o.modalOpen)(f,"add_c")}return B}()})]})],4)},d=function(v,f){var C=(0,a.useBackend)(f),b=C.act,g=C.data,y=g.screen;return(0,e.createComponentVNode)(2,t.Tabs,{children:[(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:y===2,icon:"list",onClick:function(){function B(){return b("screen",{screen:2})}return B}(),children:"List Records"}),(0,e.createComponentVNode)(2,t.Tabs.Tab,{icon:"wrench",selected:y===3,onClick:function(){function B(){return b("screen",{screen:3})}return B}(),children:"Record Maintenance"})]})}},24217:function(x,r,n){"use strict";r.__esModule=!0,r.SeedStorage=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=n(40946),V=n(45445),k=r.SeedStorage=function(){function S(N,h){var s=(0,a.useBackend)(h),l=s.act,u=s.data,i=u.scanner,c=u.seeds,d=(0,V.sortBy)(function(p){return p.name.toLowerCase()})(c);return(0,e.createComponentVNode)(2,o.Window,{width:600,height:760,resizable:!0,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Seeds",children:d.map(function(p){return(0,e.createComponentVNode)(2,t.Flex,{spacing:1,mt:-1,children:[(0,e.createComponentVNode)(2,t.Flex.Item,{basis:"60%",children:(0,e.createComponentVNode)(2,t.Collapsible,{title:(0,m.toTitleCase)(p.name)+" #"+p.uid,children:(0,e.createComponentVNode)(2,t.Section,{width:"165%",title:"Traits",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:Object.keys(p.traits).map(function(v){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:(0,m.toTitleCase)(v),children:p.traits[v]},v)})})})})}),(0,e.createComponentVNode)(2,t.Flex.Item,{mt:.4,children:[p.amount," Remaining"]}),(0,e.createComponentVNode)(2,t.Flex.Item,{grow:1,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"download",onClick:function(){function v(){return l("vend",{id:p.id})}return v}(),children:"Vend"})}),(0,e.createComponentVNode)(2,t.Flex.Item,{grow:1,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"trash",onClick:function(){function v(){return l("purge",{id:p.id})}return v}(),children:"Purge"})})]},p.name+p.uid)})})})})}return S}()},37707:function(x,r,n){"use strict";r.__esModule=!0,r.ShieldCapacitor=void 0;var e=n(58734),a=n(62188),t=n(11477),o=n(11790),m=n(5339),V=n(43820),k=r.ShieldCapacitor=function(){function S(N,h){var s=(0,a.useBackend)(h),l=s.act,u=s.data,i=u.active,c=u.time_since_fail,d=u.stored_charge,p=u.max_charge,v=u.charge_rate,f=u.max_charge_rate;return(0,e.createComponentVNode)(2,t.Window,{width:500,height:400,resizable:!0,children:(0,e.createComponentVNode)(2,t.Window.Content,{children:(0,e.createComponentVNode)(2,o.Section,{title:"Status",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"power-off",selected:i,content:i?"Online":"Offline",onClick:function(){function C(){return l("toggle")}return C}()}),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Capacitor Status",children:c>2?(0,e.createComponentVNode)(2,o.Box,{color:"good",children:"OK."}):(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"Discharging!"})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Stored Energy",children:[(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:d,format:function(){function C(b){return(0,V.formatSiUnit)(b,0,"J")}return C}()})," ","(",(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:100*(0,m.round)(d/p,1)}),"%)"]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Charge Rate",children:(0,e.createComponentVNode)(2,o.NumberInput,{value:v,step:100,stepPixelSize:.2,minValue:1e4,maxValue:f,format:function(){function C(b){return(0,V.formatPower)(b)}return C}(),onDrag:function(){function C(b,g){return l("charge_rate",{rate:g})}return C}()})})]})})})})}return S}()},92794:function(x,r,n){"use strict";r.__esModule=!0,r.ShieldGenerator=void 0;var e=n(58734),a=n(62188),t=n(11477),o=n(11790),m=n(5339),V=n(43820),k=n(84288),S=r.ShieldGenerator=function(){function s(l,u){var i=(0,a.useBackend)(u),c=i.act,d=i.data,p=d.locked;return(0,e.createComponentVNode)(2,t.Window,{width:500,height:400,resizable:!0,children:(0,e.createComponentVNode)(2,t.Window.Content,{children:p?(0,e.createComponentVNode)(2,N):(0,e.createComponentVNode)(2,h)})})}return s}(),N=function(l,u){return(0,e.createComponentVNode)(2,k.FullscreenNotice,{title:"Locked",children:[(0,e.createComponentVNode)(2,o.Box,{fontSize:"1.5rem",bold:!0,children:(0,e.createComponentVNode)(2,o.Icon,{name:"exclamation-triangle",verticalAlign:"middle",size:3,mr:"1rem"})}),(0,e.createComponentVNode)(2,o.Box,{color:"label",my:"1rem",children:"Swipe your ID to begin."})]})},h=function(l,u){var i=(0,a.useBackend)(u),c=i.act,d=i.data,p=d.lockedData,v=p.capacitors,f=p.active,C=p.failing,b=p.radius,g=p.max_radius,y=p.z_range,B=p.max_z_range,L=p.average_field_strength,I=p.target_field_strength,w=p.max_field_strength,T=p.shields,M=p.upkeep,A=p.strengthen_rate,R=p.max_strengthen_rate,O=p.gen_power,_=(v||[]).length;return(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Section,{title:"Status",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Field Status",children:C?(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"Unstable"}):(0,e.createComponentVNode)(2,o.Box,{color:"good",children:"Stable"})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Overall Field Strength",children:[(0,m.round)(L,2)," Renwick (",I&&(0,m.round)(100*L/I,1)||"NA","%)"]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Upkeep Power",children:(0,V.formatPower)(M)}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Shield Generation Power",children:(0,V.formatPower)(O)}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Currently Shielded",children:[T," m\xB2"]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Capacitors",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:_?v.map(function(P,D){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Capacitor #"+D,children:[P.active?(0,e.createComponentVNode)(2,o.Box,{color:"good",children:"Online"}):(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"Offline"}),(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Charge",children:[(0,V.formatSiUnit)(P.stored_charge,0,"J")," (",100*(0,m.round)(P.stored_charge/P.max_charge,2),"%)"]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Status",children:P.failing?(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"Discharging"}):(0,e.createComponentVNode)(2,o.Box,{color:"good",children:"OK."})})]})]},D)}):(0,e.createComponentVNode)(2,o.LabeledList.Item,{color:"bad",children:"No Capacitors Connected"})})})]})}),(0,e.createComponentVNode)(2,o.Section,{title:"Controls",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"power-off",content:f?"Online":"Offline",selected:f,onClick:function(){function P(){return c("toggle")}return P}()}),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Coverage Radius",children:(0,e.createComponentVNode)(2,o.NumberInput,{fluid:!0,stepPixelSize:6,minValue:0,maxValue:g,value:b,unit:"m",onDrag:function(){function P(D,z){return c("change_radius",{val:z})}return P}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Vertical Shielding",children:(0,e.createComponentVNode)(2,o.NumberInput,{fluid:!0,stepPixelSize:12,minValue:0,maxValue:B,value:y,unit:"vertical range",onDrag:function(){function P(D,z){return c("z_range",{val:z})}return P}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Charge Rate",children:(0,e.createComponentVNode)(2,o.NumberInput,{fluid:!0,stepPixelSize:12,minValue:0,step:.1,maxValue:R,value:A,format:function(){function P(D){return(0,m.round)(D,1)}return P}(),unit:"Renwick/s",onDrag:function(){function P(D,z){return c("strengthen_rate",{val:z})}return P}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Maximum Field Strength",children:(0,e.createComponentVNode)(2,o.NumberInput,{fluid:!0,stepPixelSize:12,minValue:1,maxValue:w,value:I,unit:"Renwick",onDrag:function(){function P(D,z){return c("target_field_strength",{val:z})}return P}()})})]})})],4)}},56780:function(x,r,n){"use strict";r.__esModule=!0,r.ShutoffMonitorContent=r.ShutoffMonitor=void 0;var e=n(58734),a=n(62188),t=n(11477),o=n(11790),m=r.ShutoffMonitor=function(){function k(S,N){return(0,e.createComponentVNode)(2,t.Window,{width:627,height:700,resizable:!0,children:(0,e.createComponentVNode)(2,t.Window.Content,{children:(0,e.createComponentVNode)(2,V)})})}return k}(),V=r.ShutoffMonitorContent=function(){function k(S,N){var h=(0,a.useBackend)(N),s=h.act,l=h.data,u=l.valves;return(0,e.createComponentVNode)(2,o.Section,{title:"Valves",children:(0,e.createComponentVNode)(2,o.Table,{children:[(0,e.createComponentVNode)(2,o.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Name"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Position"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Open"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Mode"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Actions"})]}),u.map(function(i){return(0,e.createComponentVNode)(2,o.Table.Row,{children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:i.name}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:[i.x,", ",i.y,", ",i.z]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:i.open?"Yes":"No"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:i.enabled?"Auto":"Manual"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:[(0,e.createComponentVNode)(2,o.Button,{icon:"power-off",content:i.open?"Opened":"Closed",selected:i.open,disabled:!i.enabled,onClick:function(){function c(){return s("toggle_open",{valve:i.ref})}return c}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"power-off",content:i.enabled?"Auto":"Manual",selected:i.enabled,onClick:function(){function c(){return s("toggle_enable",{valve:i.ref})}return c}()})]})]},i.name)})]})})}return k}()},7309:function(x,r,n){"use strict";r.__esModule=!0,r.ShuttleControl=void 0;var e=n(58734),a=n(40946),t=n(62188),o=n(11790),m=n(11477),V=function(d,p){var v="ERROR",f="bad",C=!1;return d==="docked"?(v="DOCKED",f="good"):d==="docking"?(v="DOCKING",f="average",C=!0):d==="undocking"?(v="UNDOCKING",f="average",C=!0):d==="undocked"&&(v="UNDOCKED",f="#676767"),C&&p&&(v=v+"-MANUAL"),(0,e.createComponentVNode)(2,o.Box,{color:f,children:v})},k=function(d,p){var v=(0,t.useBackend)(p),f=v.act,C=v.data,b=d.engineName,g=b===void 0?"Bluespace Drive":b,y=C.shuttle_status,B=C.shuttle_state,L=C.has_docking,I=C.docking_status,w=C.docking_override,T=C.docking_codes;return(0,e.createComponentVNode)(2,o.Section,{title:"Shuttle Status",children:[(0,e.createComponentVNode)(2,o.Box,{color:"label",mb:1,children:y}),(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:g,children:B==="idle"&&(0,e.createComponentVNode)(2,o.Box,{color:"#676767",bold:!0,children:"IDLE"})||B==="warmup"&&(0,e.createComponentVNode)(2,o.Box,{color:"#336699",children:"SPINNING UP"})||B==="in_transit"&&(0,e.createComponentVNode)(2,o.Box,{color:"#336699",children:"ENGAGED"})||(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"ERROR"})}),L&&(0,e.createFragment)([(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Docking Status",children:V(I,w)}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Docking Codes",children:(0,e.createComponentVNode)(2,o.Button,{icon:"pen",onClick:function(){function M(){return f("set_codes")}return M}(),children:T||"Not Set"})})],4)||null]})]})},S=function(d,p){var v=(0,t.useBackend)(p),f=v.act,C=v.data,b=C.can_launch,g=C.can_cancel,y=C.can_force;return(0,e.createComponentVNode)(2,o.Section,{title:"Controls",children:(0,e.createComponentVNode)(2,o.Flex,{spacing:1,children:[(0,e.createComponentVNode)(2,o.Flex.Item,{grow:1,children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function B(){return f("move")}return B}(),disabled:!b,icon:"rocket",fluid:!0,children:"Launch Shuttle"})}),(0,e.createComponentVNode)(2,o.Flex.Item,{grow:1,children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function B(){return f("cancel")}return B}(),disabled:!g,icon:"ban",fluid:!0,children:"Cancel Launch"})}),(0,e.createComponentVNode)(2,o.Flex.Item,{grow:1,children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function B(){return f("force")}return B}(),color:"bad",disabled:!y,icon:"exclamation-triangle",fluid:!0,children:"Force Launch"})})]})})},N=function(d,p){var v=(0,t.useBackend)(p),f=v.act,C=v.data;return(0,e.createFragment)([(0,e.createComponentVNode)(2,k),(0,e.createComponentVNode)(2,S)],4)},h=function(d,p){var v=(0,t.useBackend)(p),f=v.act,C=v.data,b=C.can_cloak,g=C.can_pick,y=C.legit,B=C.cloaked,L=C.destination_name;return(0,e.createFragment)([(0,e.createComponentVNode)(2,k),(0,e.createComponentVNode)(2,o.Section,{title:"Multishuttle Controls",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[b&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:y?"ATC Inhibitor":"Cloaking",children:(0,e.createComponentVNode)(2,o.Button,{selected:B,icon:B?"eye":"eye-o",onClick:function(){function I(){return f("toggle_cloaked")}return I}(),children:B?"Enabled":"Disabled"})})||null,(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Current Destination",children:(0,e.createComponentVNode)(2,o.Button,{icon:"taxi",disabled:!g,onClick:function(){function I(){return f("pick")}return I}(),children:L})})]})}),(0,e.createComponentVNode)(2,S)],4)},s=function(d,p){var v=(0,t.useBackend)(p),f=v.act,C=v.data,b=C.can_pick,g=C.destination_name,y=C.fuel_usage,B=C.fuel_span,L=C.remaining_fuel;return(0,e.createFragment)([(0,e.createComponentVNode)(2,k,{engineName:"Engines"}),(0,e.createComponentVNode)(2,o.Section,{title:"Jump Controls",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Current Destination",children:(0,e.createComponentVNode)(2,o.Button,{icon:"taxi",disabled:!b,onClick:function(){function I(){return f("pick")}return I}(),children:g})}),y&&(0,e.createFragment)([(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Est. Delta-V Budget",color:B,children:[L," m/s"]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Avg. Delta-V Per Maneuver",children:[y," m/s"]})],4)||null]})}),(0,e.createComponentVNode)(2,S)],4)},l=function(d,p){var v=(0,t.useBackend)(p),f=v.act,C=v.data,b=C.autopilot,g=C.can_rename,y=C.shuttle_state,B=C.is_moving,L=C.skip_docking,I=C.docking_status,w=C.docking_override,T=C.shuttle_location,M=C.can_cloak,A=C.cloaked,R=C.can_autopilot,O=C.routes,_=C.is_in_transit,P=C.travel_progress,D=C.time_left,z=C.doors,U=C.sensors;return(0,e.createFragment)([b&&(0,e.createComponentVNode)(2,o.Section,{title:"AI PILOT (CLASS D) ACTIVE",children:(0,e.createComponentVNode)(2,o.Box,{inline:!0,italic:!0,children:"This vessel will start and stop automatically. Ensure that all non-cycling capable hatches and doors are closed, as the automated system may not be able to control them. Docking and flight controls are locked. To unlock, disable the automated flight system."})})||null,(0,e.createComponentVNode)(2,o.Section,{title:"Shuttle Status",buttons:g&&(0,e.createComponentVNode)(2,o.Button,{icon:"pen",onClick:function(){function W(){return f("rename_command")}return W}(),children:"Rename"})||null,children:[(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Engines",children:y==="idle"&&(0,e.createComponentVNode)(2,o.Box,{color:"#676767",bold:!0,children:"IDLE"})||y==="warmup"&&(0,e.createComponentVNode)(2,o.Box,{color:"#336699",children:"SPINNING UP"})||y==="in_transit"&&(0,e.createComponentVNode)(2,o.Box,{color:"#336699",children:"ENGAGED"})||(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"ERROR"})}),!B&&(0,e.createFragment)([(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Current Location",children:(0,a.toTitleCase)(T)}),!L&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Docking Status",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{selected:I==="docked",disabled:I!=="undocked"&&I!=="docked",onClick:function(){function W(){return f("dock_command")}return W}(),children:"Dock"}),(0,e.createComponentVNode)(2,o.Button,{selected:I==="undocked",disabled:I!=="docked"&&I!=="undocked",onClick:function(){function W(){return f("undock_command")}return W}(),children:"Undock"})],4),children:(0,e.createComponentVNode)(2,o.Box,{bold:!0,inline:!0,children:V(I,w)})})||null,M&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Cloaking",children:(0,e.createComponentVNode)(2,o.Button,{selected:A,icon:A?"eye":"eye-o",onClick:function(){function W(){return f("toggle_cloaked")}return W}(),children:A?"Enabled":"Disabled"})})||null,R&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Autopilot",children:(0,e.createComponentVNode)(2,o.Button,{selected:b,icon:b?"eye":"eye-o",onClick:function(){function W(){return f("toggle_autopilot")}return W}(),children:b?"Enabled":"Disabled"})})||null],0)||null]}),!B&&(0,e.createComponentVNode)(2,o.Section,{level:2,title:"Available Destinations",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:O.length&&O.map(function(W){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:W.name,children:(0,e.createComponentVNode)(2,o.Button,{icon:"rocket",onClick:function(){function K(){return f("traverse",{traverse:W.index})}return K}(),children:W.travel_time})},W.name)})||(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Error",color:"bad",children:"No routes found."})})})||null]}),_&&(0,e.createComponentVNode)(2,o.Section,{title:"Transit ETA",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Distance from target",children:(0,e.createComponentVNode)(2,o.ProgressBar,{color:"good",minValue:0,maxValue:100,value:P,children:[D,"s"]})})})})||null,Object.keys(z).length&&(0,e.createComponentVNode)(2,o.Section,{title:"Hatch Status",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:Object.keys(z).map(function(W){var K=z[W];return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:W,children:[K.open&&(0,e.createComponentVNode)(2,o.Box,{inline:!0,color:"bad",children:"Open"})||(0,e.createComponentVNode)(2,o.Box,{inline:!0,color:"good",children:"Closed"}),"\xA0-\xA0",K.bolted&&(0,e.createComponentVNode)(2,o.Box,{inline:!0,color:"good",children:"Bolted"})||(0,e.createComponentVNode)(2,o.Box,{inline:!0,color:"bad",children:"Unbolted"})]},W)})})})||null,Object.keys(U).length&&(0,e.createComponentVNode)(2,o.Section,{title:"Sensors",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:Object.keys(U).map(function(W){var K=U[W];return K.reading===-1?(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:W,color:"bad",children:"Unable to get sensor air reading."}):(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:W,children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Pressure",children:[K.pressure,"kPa"]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Temperature",children:[K.temp,"\xB0C"]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Oxygen",children:[K.oxygen,"%"]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Nitrogen",children:[K.nitrogen,"%"]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Carbon Dioxide",children:[K.carbon_dioxide,"%"]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Phoron",children:[K.phoron,"%"]}),K.other&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Other",children:[K.other,"%"]})||null]})},W)})})})||null],0)},u={ShuttleControlConsoleDefault:(0,e.createComponentVNode)(2,N),ShuttleControlConsoleMulti:(0,e.createComponentVNode)(2,h),ShuttleControlConsoleExploration:(0,e.createComponentVNode)(2,s),ShuttleControlConsoleWeb:(0,e.createComponentVNode)(2,l)},i=r.ShuttleControl=function(){function c(d,p){var v=(0,t.useBackend)(p),f=v.act,C=v.data,b=C.subtemplate;return(0,e.createComponentVNode)(2,m.Window,{width:470,height:b==="ShuttleControlConsoleWeb"?560:370,resizable:!0,children:(0,e.createComponentVNode)(2,m.Window.Content,{children:u[b]})})}return c}()},76289:function(x,r,n){"use strict";r.__esModule=!0,r.SignalerContent=r.Signaler=void 0;var e=n(58734),a=n(5339),t=n(62188),o=n(11790),m=n(11477),V=r.Signaler=function(){function S(){return(0,e.createComponentVNode)(2,m.Window,{width:280,height:132,children:(0,e.createComponentVNode)(2,m.Window.Content,{children:(0,e.createComponentVNode)(2,k)})})}return S}(),k=r.SignalerContent=function(){function S(N,h){var s=(0,t.useBackend)(h),l=s.act,u=s.data,i=u.code,c=u.frequency,d=u.minFrequency,p=u.maxFrequency;return(0,e.createComponentVNode)(2,o.Section,{children:[(0,e.createComponentVNode)(2,o.Grid,{children:[(0,e.createComponentVNode)(2,o.Grid.Column,{size:1.4,color:"label",children:"Frequency:"}),(0,e.createComponentVNode)(2,o.Grid.Column,{children:(0,e.createComponentVNode)(2,o.NumberInput,{animate:!0,unit:"kHz",step:.2,stepPixelSize:6,minValue:d/10,maxValue:p/10,value:c/10,format:function(){function v(f){return(0,a.toFixed)(f,1)}return v}(),width:"80px",onDrag:function(){function v(f,C){return l("freq",{freq:C})}return v}()})}),(0,e.createComponentVNode)(2,o.Grid.Column,{children:(0,e.createComponentVNode)(2,o.Button,{ml:1.3,icon:"sync",content:"Reset",onClick:function(){function v(){return l("reset",{reset:"freq"})}return v}()})})]}),(0,e.createComponentVNode)(2,o.Grid,{mt:.6,children:[(0,e.createComponentVNode)(2,o.Grid.Column,{size:1.4,color:"label",children:"Code:"}),(0,e.createComponentVNode)(2,o.Grid.Column,{children:(0,e.createComponentVNode)(2,o.NumberInput,{animate:!0,step:1,stepPixelSize:6,minValue:1,maxValue:100,value:i,width:"80px",onDrag:function(){function v(f,C){return l("code",{code:C})}return v}()})}),(0,e.createComponentVNode)(2,o.Grid.Column,{children:(0,e.createComponentVNode)(2,o.Button,{ml:1.3,icon:"sync",content:"Reset",onClick:function(){function v(){return l("reset",{reset:"code"})}return v}()})})]}),(0,e.createComponentVNode)(2,o.Grid,{mt:.8,children:(0,e.createComponentVNode)(2,o.Grid.Column,{children:(0,e.createComponentVNode)(2,o.Button,{mb:-.1,fluid:!0,icon:"arrow-up",content:"Send Signal",textAlign:"center",onClick:function(){function v(){return l("signal")}return v}()})})})]})}return S}()},78491:function(x,r,n){"use strict";r.__esModule=!0,r.Sleeper=void 0;var e=n(58734),a=n(5339),t=n(62188),o=n(11790),m=n(11477),V=[["good","Alive"],["average","Unconscious"],["bad","DEAD"]],k=[["Resp","oxyLoss"],["Toxin","toxLoss"],["Brute","bruteLoss"],["Burn","fireLoss"]],S={average:[.25,.5],bad:[.5,1/0]},N=["bad","average","average","good","average","average","bad"],h=r.Sleeper=function(){function p(v,f){var C=(0,t.useBackend)(f),b=C.act,g=C.data,y=g.hasOccupant,B=y?(0,e.createComponentVNode)(2,s):(0,e.createComponentVNode)(2,d);return(0,e.createComponentVNode)(2,m.Window,{width:550,height:760,resizable:!0,children:(0,e.createComponentVNode)(2,m.Window.Content,{className:"Layout__content--flexColumn",children:B})})}return p}(),s=function(v,f){var C=(0,t.useBackend)(f),b=C.act,g=C.data,y=g.occupant,B=g.dialysis,L=g.stomachpumping;return(0,e.createFragment)([(0,e.createComponentVNode)(2,l),(0,e.createComponentVNode)(2,u),(0,e.createComponentVNode)(2,i,{title:"Dialysis",active:B,actToDo:"togglefilter"}),(0,e.createComponentVNode)(2,i,{title:"Stomach Pump",active:L,actToDo:"togglepump"}),(0,e.createComponentVNode)(2,c)],4)},l=function(v,f){var C=(0,t.useBackend)(f),b=C.act,g=C.data,y=g.occupant,B=g.auto_eject_dead,L=g.stasis;return(0,e.createComponentVNode)(2,o.Section,{title:"Occupant",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Box,{color:"label",inline:!0,children:"Auto-eject if dead:\xA0"}),(0,e.createComponentVNode)(2,o.Button,{icon:B?"toggle-on":"toggle-off",selected:B,content:B?"On":"Off",onClick:function(){function I(){return b("auto_eject_dead_"+(B?"off":"on"))}return I}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"user-slash",content:"Eject",onClick:function(){function I(){return b("ejectify")}return I}()}),(0,e.createComponentVNode)(2,o.Button,{content:L,onClick:function(){function I(){return b("changestasis")}return I}()})],4),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Name",children:y.name}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Health",children:(0,e.createComponentVNode)(2,o.ProgressBar,{min:0,max:y.maxHealth,value:y.health/y.maxHealth,ranges:{good:[.5,1/0],average:[0,.5],bad:[-1/0,0]},children:(0,a.round)(y.health,0)})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Status",color:V[y.stat][0],children:V[y.stat][1]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Temperature",children:(0,e.createComponentVNode)(2,o.ProgressBar,{min:"0",max:y.maxTemp,value:y.bodyTemperature/y.maxTemp,color:N[y.temperatureSuitability+3],children:[(0,a.round)(y.btCelsius,0),"\xB0C,",(0,a.round)(y.btFaren,0),"\xB0F"]})}),!!y.hasBlood&&(0,e.createFragment)([(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Blood Level",children:(0,e.createComponentVNode)(2,o.ProgressBar,{min:"0",max:y.bloodMax,value:y.bloodLevel/y.bloodMax,ranges:{bad:[-1/0,.6],average:[.6,.9],good:[.6,1/0]},children:[y.bloodPercent,"%, ",y.bloodLevel,"cl"]})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Pulse",verticalAlign:"middle",children:[y.pulse," BPM"]})],4)]})})},u=function(v,f){var C=(0,t.useBackend)(f),b=C.data,g=b.occupant;return(0,e.createComponentVNode)(2,o.Section,{title:"Damage",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:k.map(function(y,B){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:y[0],children:(0,e.createComponentVNode)(2,o.ProgressBar,{min:"0",max:"100",value:g[y[1]]/100,ranges:S,children:(0,a.round)(g[y[1]],0)},B)},B)})})})},i=function(v,f){var C=(0,t.useBackend)(f),b=C.act,g=C.data,y=g.isBeakerLoaded,B=g.beakerMaxSpace,L=g.beakerFreeSpace,I=v.active,w=v.actToDo,T=v.title,M=I&&L>0;return(0,e.createComponentVNode)(2,o.Section,{title:T,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{disabled:!y||L<=0,selected:M,icon:M?"toggle-on":"toggle-off",content:M?"Active":"Inactive",onClick:function(){function A(){return b(w)}return A}()}),(0,e.createComponentVNode)(2,o.Button,{disabled:!y,icon:"eject",content:"Eject",onClick:function(){function A(){return b("removebeaker")}return A}()})],4),children:y?(0,e.createComponentVNode)(2,o.LabeledList,{children:(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Remaining Space",children:(0,e.createComponentVNode)(2,o.ProgressBar,{min:"0",max:B,value:L/B,ranges:{good:[.5,1/0],average:[.25,.5],bad:[-1/0,.25]},children:[L,"u"]})})}):(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"No beaker loaded."})})},c=function(v,f){var C=(0,t.useBackend)(f),b=C.act,g=C.data,y=g.occupant,B=g.chemicals,L=g.maxchem,I=g.amounts;return(0,e.createComponentVNode)(2,o.Section,{title:"Chemicals",flexGrow:"1",children:B.map(function(w,T){var M="",A;return w.overdosing?(M="bad",A=(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:[(0,e.createComponentVNode)(2,o.Icon,{name:"exclamation-circle"}),"\xA0 Overdosing!"]})):w.od_warning&&(M="average",A=(0,e.createComponentVNode)(2,o.Box,{color:"average",children:[(0,e.createComponentVNode)(2,o.Icon,{name:"exclamation-triangle"}),"\xA0 Close to overdosing"]})),(0,e.createComponentVNode)(2,o.Box,{backgroundColor:"rgba(0, 0, 0, 0.33)",mb:"0.5rem",children:(0,e.createComponentVNode)(2,o.Section,{title:w.title,level:"3",mx:"0",lineHeight:"18px",buttons:A,children:(0,e.createComponentVNode)(2,o.Flex,{align:"flex-start",children:[(0,e.createComponentVNode)(2,o.ProgressBar,{min:"0",max:L,value:w.occ_amount/L,color:M,mr:"0.5rem",children:[w.pretty_amount,"/",L,"u"]}),I.map(function(R,O){return(0,e.createComponentVNode)(2,o.Button,{disabled:!w.injectable||w.occ_amount+R>L||y.stat===2,icon:"syringe",content:R,mb:"0",height:"19px",onClick:function(){function _(){return b("chemical",{chemid:w.id,amount:R})}return _}()},O)})]})})},T)})})},d=function(v,f){var C=(0,t.useBackend)(f),b=C.act,g=C.data,y=g.isBeakerLoaded;return(0,e.createComponentVNode)(2,o.Section,{textAlign:"center",flexGrow:"1",children:(0,e.createComponentVNode)(2,o.Flex,{height:"100%",children:(0,e.createComponentVNode)(2,o.Flex.Item,{grow:"1",align:"center",color:"label",children:[(0,e.createComponentVNode)(2,o.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,e.createVNode)(1,"br"),"No occupant detected.",y&&(0,e.createComponentVNode)(2,o.Box,{children:(0,e.createComponentVNode)(2,o.Button,{icon:"eject",content:"Remove Beaker",onClick:function(){function B(){return b("removebeaker")}return B}()})})||null]})})})}},47296:function(x,r,n){"use strict";r.__esModule=!0,r.SmartVend=void 0;var e=n(58734),a=n(45445),t=n(62188),o=n(11790),m=n(11477),V=r.SmartVend=function(){function k(S,N){var h=(0,t.useBackend)(N),s=h.act,l=h.config,u=h.data;return(0,e.createComponentVNode)(2,m.Window,{width:500,height:550,resizable:!0,children:(0,e.createComponentVNode)(2,m.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,o.Section,{title:"Storage",children:[u.secure&&(0,e.createComponentVNode)(2,o.NoticeBox,{danger:u.locked===-1,info:u.locked!==-1,children:u.locked===-1?(0,e.createComponentVNode)(2,o.Box,{children:"Sec.re ACC_** //):securi_nt.diag=>##'or 1=1'%($..."}):(0,e.createComponentVNode)(2,o.Box,{children:"Secure Access: Please have your identification ready."})})||null,u.contents.length===0&&(0,e.createComponentVNode)(2,o.NoticeBox,{children:["Unfortunately, this ",l.title," is empty."]})||(0,e.createComponentVNode)(2,o.Table,{children:[(0,e.createComponentVNode)(2,o.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,o.Table.Cell,{collapsing:!0,children:"Item"}),(0,e.createComponentVNode)(2,o.Table.Cell,{collapsing:!0,textAlign:"center",children:"Amount"}),(0,e.createComponentVNode)(2,o.Table.Cell,{collapsing:!0,textAlign:"center",children:"Dispense"})]}),(0,a.map)(function(i,c){return(0,e.createComponentVNode)(2,o.Table.Row,{children:[(0,e.createComponentVNode)(2,o.Table.Cell,{collapsing:!0,children:i.name}),(0,e.createComponentVNode)(2,o.Table.Cell,{collapsing:!0,textAlign:"center",children:[i.amount," in stock"]}),(0,e.createComponentVNode)(2,o.Table.Cell,{collapsing:!0,children:[(0,e.createComponentVNode)(2,o.Button,{content:"1",disabled:i.amount<1,onClick:function(){function d(){return s("Release",{index:i.index,amount:1})}return d}()}),(0,e.createComponentVNode)(2,o.Button,{content:"5",disabled:i.amount<5,onClick:function(){function d(){return s("Release",{index:i.index,amount:5})}return d}()}),(0,e.createComponentVNode)(2,o.Button,{content:"25",disabled:i.amount<25,onClick:function(){function d(){return s("Release",{index:i.index,amount:25})}return d}()}),(0,e.createComponentVNode)(2,o.Button,{content:"50",disabled:i.amount<50,onClick:function(){function d(){return s("Release",{index:i.index,amount:50})}return d}()}),(0,e.createComponentVNode)(2,o.Button,{content:"Custom",disabled:i.amount<1,onClick:function(){function d(){return s("Release",{index:i.index})}return d}()}),(0,e.createComponentVNode)(2,o.Button,{content:"All",disabled:i.amount<1,onClick:function(){function d(){return s("Release",{index:i.index,amount:i.amount})}return d}()})]})]},c)})(u.contents)]})]})})})}return k}()},11524:function(x,r,n){"use strict";r.__esModule=!0,r.Smes=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(43820),m=n(11477),V=n(5339),k=1e3,S=r.Smes=function(){function N(h,s){var l=(0,a.useBackend)(s),u=l.act,i=l.data,c=i.capacityPercent,d=i.capacity,p=i.charge,v=i.inputAttempt,f=i.inputting,C=i.inputLevel,b=i.inputLevelMax,g=i.inputAvailable,y=i.outputAttempt,B=i.outputting,L=i.outputLevel,I=i.outputLevelMax,w=i.outputUsed,T=c>=100&&"good"||f&&"average"||"bad",M=B&&"good"||p>0&&"average"||"bad";return(0,e.createComponentVNode)(2,m.Window,{width:340,height:350,resizable:!0,children:(0,e.createComponentVNode)(2,m.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Stored Energy",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:c*.01,ranges:{good:[.5,1/0],average:[.15,.5],bad:[-1/0,.15]},children:[(0,V.round)(p/(1e3*60),1)," kWh /"," ",(0,V.round)(d/(1e3*60))," kWh (",c,"%)"]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Input",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Charge Mode",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:v?"sync-alt":"times",selected:v,onClick:function(){function A(){return u("tryinput")}return A}(),children:v?"On":"Off"}),children:(0,e.createComponentVNode)(2,t.Box,{color:T,children:c>=100&&"Fully Charged"||f&&"Charging"||"Not Charging"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Target Input",children:(0,e.createComponentVNode)(2,t.Flex,{inline:!0,width:"100%",children:[(0,e.createComponentVNode)(2,t.Flex.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"fast-backward",disabled:C===0,onClick:function(){function A(){return u("input",{target:"min"})}return A}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"backward",disabled:C===0,onClick:function(){function A(){return u("input",{adjust:-1e4})}return A}()})]}),(0,e.createComponentVNode)(2,t.Flex.Item,{grow:1,mx:1,children:(0,e.createComponentVNode)(2,t.Slider,{value:C/k,fillValue:g/k,minValue:0,maxValue:b/k,step:5,stepPixelSize:4,format:function(){function A(R){return(0,o.formatPower)(R*k,1)}return A}(),onDrag:function(){function A(R,O){return u("input",{target:O*k})}return A}()})}),(0,e.createComponentVNode)(2,t.Flex.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"forward",disabled:C===b,onClick:function(){function A(){return u("input",{adjust:1e4})}return A}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",disabled:C===b,onClick:function(){function A(){return u("input",{target:"max"})}return A}()})]})]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Available",children:(0,o.formatPower)(g)})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Output",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Output Mode",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:y?"power-off":"times",selected:y,onClick:function(){function A(){return u("tryoutput")}return A}(),children:y?"On":"Off"}),children:(0,e.createComponentVNode)(2,t.Box,{color:M,children:B?"Sending":p>0?"Not Sending":"No Charge"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Target Output",children:(0,e.createComponentVNode)(2,t.Flex,{inline:!0,width:"100%",children:[(0,e.createComponentVNode)(2,t.Flex.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"fast-backward",disabled:L===0,onClick:function(){function A(){return u("output",{target:"min"})}return A}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"backward",disabled:L===0,onClick:function(){function A(){return u("output",{adjust:-1e4})}return A}()})]}),(0,e.createComponentVNode)(2,t.Flex.Item,{grow:1,mx:1,children:(0,e.createComponentVNode)(2,t.Slider,{value:L/k,minValue:0,maxValue:I/k,step:5,stepPixelSize:4,format:function(){function A(R){return(0,o.formatPower)(R*k,1)}return A}(),onDrag:function(){function A(R,O){return u("output",{target:O*k})}return A}()})}),(0,e.createComponentVNode)(2,t.Flex.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"forward",disabled:L===I,onClick:function(){function A(){return u("output",{adjust:1e4})}return A}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",disabled:L===I,onClick:function(){function A(){return u("output",{target:"max"})}return A}()})]})]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Outputting",children:(0,o.formatPower)(w)})]})})]})})}return N}()},48027:function(x,r,n){"use strict";r.__esModule=!0,r.SolarControl=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=n(5339),V=r.SolarControl=function(){function k(S,N){var h=(0,a.useBackend)(N),s=h.act,l=h.data,u=l.generated,i=l.generated_ratio,c=l.sun_angle,d=l.array_angle,p=l.rotation_rate,v=l.max_rotation_rate,f=l.tracking_state,C=l.connected_panels,b=l.connected_tracker;return(0,e.createComponentVNode)(2,o.Window,{width:380,height:230,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Status",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"sync",content:"Scan for new hardware",onClick:function(){function g(){return s("refresh")}return g}()}),children:(0,e.createComponentVNode)(2,t.Grid,{children:[(0,e.createComponentVNode)(2,t.Grid.Column,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Solar tracker",color:b?"good":"bad",children:b?"OK":"N/A"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Solar panels",color:C>0?"good":"bad",children:C})]})}),(0,e.createComponentVNode)(2,t.Grid.Column,{size:1.5,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power output",children:(0,e.createComponentVNode)(2,t.ProgressBar,{ranges:{good:[.66,1/0],average:[.33,.66],bad:[-1/0,.33]},minValue:0,maxValue:1,value:i,children:u+" W"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Star orientation",children:[c,"\xB0"]})]})})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Controls",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Tracking",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"times",content:"Off",selected:f===0,onClick:function(){function g(){return s("tracking",{mode:0})}return g}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"clock-o",content:"Timed",selected:f===1,onClick:function(){function g(){return s("tracking",{mode:1})}return g}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"sync",content:"Auto",selected:f===2,disabled:!b,onClick:function(){function g(){return s("tracking",{mode:2})}return g}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Azimuth",children:[(f===0||f===1)&&(0,e.createComponentVNode)(2,t.NumberInput,{width:"52px",unit:"\xB0",step:1,stepPixelSize:2,minValue:-360,maxValue:720,value:d,format:function(){function g(y){var B=Math.sign(y)>0?" (CW)":" (CCW)";return Math.abs((0,m.round)(y))+B}return g}(),onDrag:function(){function g(y,B){return s("azimuth",{value:B})}return g}()}),f===1&&(0,e.createComponentVNode)(2,t.NumberInput,{width:"80px",unit:"deg/h",step:1,minValue:-v-.01,maxValue:v+.01,value:p,format:function(){function g(y){var B=Math.sign(y)>0?" (CW)":" (CCW)";return Math.abs((0,m.round)(y))+B}return g}(),onDrag:function(){function g(y,B){return s("azimuth_rate",{value:B})}return g}()}),f===2&&(0,e.createComponentVNode)(2,t.Box,{inline:!0,color:"label",mt:"3px",children:[d+"\xB0"," (auto)"]})]})]})})]})})}return k}()},99621:function(x,r,n){"use strict";r.__esModule=!0,r.SpaceHeater=void 0;var e=n(58734),a=n(78419),t=n(62188),o=n(11790),m=n(11477),V=r.SpaceHeater=function(){function k(S,N){var h=(0,t.useBackend)(N),s=h.act,l=h.data,u=l.temp,i=l.minTemp,c=l.maxTemp,d=l.cell,p=l.power;return(0,e.createComponentVNode)(2,m.Window,{width:300,height:250,resizable:!0,children:(0,e.createComponentVNode)(2,m.Window.Content,{children:[(0,e.createComponentVNode)(2,o.Section,{title:"Status",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Target Temperature",children:[u," K (",u-a.T0C,"\xB0 C)"]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Current Charge",children:[p,"% ",!d&&"(No Cell Inserted)"]})]})}),(0,e.createComponentVNode)(2,o.Section,{title:"Controls",children:(0,e.createComponentVNode)(2,o.LabeledControls,{children:[(0,e.createComponentVNode)(2,o.LabeledControls.Item,{label:"Thermostat",children:(0,e.createComponentVNode)(2,o.Knob,{animated:!0,value:u-a.T0C,minValue:i-a.T0C,maxValue:c-a.T0C,unit:"C",onChange:function(){function v(f,C){return s("temp",{newtemp:C+a.T0C})}return v}()})}),(0,e.createComponentVNode)(2,o.LabeledControls.Item,{label:"Cell",children:d?(0,e.createComponentVNode)(2,o.Button,{icon:"eject",content:"Eject Cell",onClick:function(){function v(){return s("cellremove")}return v}()}):(0,e.createComponentVNode)(2,o.Button,{icon:"car-battery",content:"Insert Cell",onClick:function(){function v(){return s("cellinstall")}return v}()})})]})})]})})}return k}()},80498:function(x,r,n){"use strict";r.__esModule=!0,r.Stack=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=r.Stack=function(){function h(s,l){var u=(0,a.useBackend)(l),i=u.act,c=u.data,d=c.amount,p=c.recipes;return(0,e.createComponentVNode)(2,o.Window,{width:400,height:600,resizable:!0,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Amount: "+d,children:(0,e.createComponentVNode)(2,V,{recipes:p})})})})}return h}(),V=function h(s,l){var u=(0,a.useBackend)(l),i=u.act,c=u.data,d=s.recipes,p=Object.keys(d).sort();return p.map(function(v){var f=d[v];return f.ref===void 0?(0,e.createComponentVNode)(2,t.Collapsible,{ml:1,mb:-.7,color:"label",title:v,children:(0,e.createComponentVNode)(2,t.Box,{ml:1,children:(0,e.createComponentVNode)(2,h,{recipes:f})})}):(0,e.createComponentVNode)(2,N,{title:v,recipe:f})})},k=function(s,l){return s.req_amount>l?0:Math.floor(l/s.req_amount)},S=function(s,l){for(var u=(0,a.useBackend)(l),i=u.act,c=u.data,d=s.recipe,p=s.maxMultiplier,v=Math.min(p,Math.floor(d.max_res_amount/d.res_amount)),f=[5,10,25],C=[],b=function(){var L=y[g];v>=L&&C.push((0,e.createComponentVNode)(2,t.Button,{content:L*d.res_amount+"x",onClick:function(){function I(){return i("make",{ref:d.ref,multiplier:L})}return I}()}))},g=0,y=f;g 1?"s":""),y+=")",f>1&&(y=f+"x "+y);var B=k(p,d);return(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Table,{children:(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,disabled:!B,icon:"wrench",content:y,onClick:function(){function L(){return i("make",{ref:p.ref,multiplier:1})}return L}()})}),C>1&&B>1&&(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,children:(0,e.createComponentVNode)(2,S,{recipe:p,maxMultiplier:B})})]})})})}},66528:function(x,r,n){"use strict";r.__esModule=!0,r.StarcasterCh=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=n(37655),V=r.StarcasterCh=function(){function N(h,s){var l=(0,a.useBackend)(s),u=l.act,i=l.data,c=i.article,d=(0,e.createComponentVNode)(2,S);return c&&(d=(0,e.createComponentVNode)(2,k)),(0,e.createComponentVNode)(2,o.Window,{width:575,height:750,resizable:!0,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:d})})}return N}(),k=function(h,s){var l=(0,a.useBackend)(s),u=l.act,i=l.data,c=i.article;if(!c)return(0,e.createComponentVNode)(2,t.Section,{children:"Error: Article not found."});var d=c.title,p=c.cover,v=c.content;return(0,e.createComponentVNode)(2,t.Section,{title:"Viewing: "+d,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"times",onClick:function(){function f(){return u("PRG_reset")}return f}(),children:"Close"}),children:[!!p&&(0,e.createVNode)(1,"img",null,null,1,{src:(0,m.resolveAsset)(p)}),(0,e.createVNode)(1,"div",null,null,1,{dangerouslySetInnerHTML:{__html:v}})]})},S=function(h,s){var l=(0,a.useBackend)(s),u=l.act,i=l.data,c=i.showing_archived,d=i.all_articles;return(0,e.createComponentVNode)(2,t.Section,{title:"Articles List",buttons:(0,e.createComponentVNode)(2,t.Button.Checkbox,{onClick:function(){function p(){return u("PRG_toggle_archived")}return p}(),checked:c,children:"Show Archived"}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:d.length&&d.map(function(p){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:p.name,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"download",onClick:function(){function v(){return u("PRG_openarticle",{uid:p.uid})}return v}()})},p.uid)})||(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Error",children:"Unable to connect to Starfire database."})})})}},93840:function(x,r,n){"use strict";r.__esModule=!0,r.StationAlertConsoleContent=r.StationAlertConsole=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=r.StationAlertConsole=function(){function k(){return(0,e.createComponentVNode)(2,o.Window,{width:425,height:600,resizable:!0,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,V)})})}return k}(),V=r.StationAlertConsoleContent=function(){function k(S,N){var h=(0,a.useBackend)(N),s=h.act,l=h.data,u=l.categories,i=u===void 0?[]:u;return i.map(function(c){return(0,e.createComponentVNode)(2,t.Section,{title:c.category,children:(0,e.createVNode)(1,"ul",null,[c.alarms.length===0&&(0,e.createVNode)(1,"li","color-good","Systems Nominal",16),c.alarms.map(function(d){var p="";return d.has_cameras?p=(0,e.createComponentVNode)(2,t.Section,{children:d.cameras.map(function(v){return(0,e.createComponentVNode)(2,t.Button,{disabled:v.deact,content:v.name+(v.deact?" (deactived)":""),icon:"video",onClick:function(){function f(){return s("switchTo",{camera:v.camera})}return f}()},v.name)})}):d.lost_sources&&(p=(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:["Lost Alarm Sources: ",d.lost_sources]})),(0,e.createVNode)(1,"li",null,[d.name,d.origin_lost?(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:"Alarm Origin Lost."}):"",p],0,null,d.name)})],0)},c.category)})}return k}()},50976:function(x,r,n){"use strict";r.__esModule=!0,r.StationBlueprintsContent=r.StationBlueprints=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=r.StationBlueprints=function(){function k(S,N){return(0,e.createComponentVNode)(2,o.Window,{width:870,height:708,resizable:!0,children:(0,e.createComponentVNode)(2,V)})}return k}(),V=r.StationBlueprintsContent=function(){function k(S,N){var h=(0,a.useBackend)(N),s=h.act,l=h.data,u=h.config,i=l.mapRef,c=l.areas,d=l.turfs;return(0,e.createFragment)([(0,e.createVNode)(1,"div","CameraConsole__left",(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:"Honk!"}),2),(0,e.createVNode)(1,"div","CameraConsole__right",(0,e.createComponentVNode)(2,t.ByondUi,{className:"CameraConsole__map",params:{id:i,type:"map"}}),2)],4)}return k}()},31357:function(x,r,n){"use strict";r.__esModule=!0,r.StockExchange=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=r.StockExchange=function(){function l(u,i){var c=(0,a.useBackend)(i),d=c.act,p=c.data,v=p.screen,f=p.stationName,C;return v==="stocks"?C=(0,e.createComponentVNode)(2,V):v==="logs"?C=(0,e.createComponentVNode)(2,N):v==="archive"?C=(0,e.createComponentVNode)(2,h):v==="graph"&&(C=(0,e.createComponentVNode)(2,s)),(0,e.createComponentVNode)(2,o.Window,{width:600,height:600,resizable:!0,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:f+" Stock Exchange",children:C})})})}return l}(),V=function(u,i){var c=(0,a.useBackend)(i),d=c.act,p=c.data,v=p.balance,f=p.stationName,C=p.viewMode,b=(0,e.createComponentVNode)(2,k);return C==="Full"?b=(0,e.createComponentVNode)(2,k):C==="Compressed"&&(b=(0,e.createComponentVNode)(2,S)),(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createVNode)(1,"span",null,[(0,e.createTextVNode)("Welcome, "),(0,e.createVNode)(1,"b",null,[f,(0,e.createTextVNode)(" Cargo Department")],0),(0,e.createTextVNode)(" |"),(0,e.createTextVNode)(" ")],0),(0,e.createVNode)(1,"span",null,[(0,e.createVNode)(1,"b",null,"Credits:",16),(0,e.createTextVNode)(" "),v],0),(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"b",null,"View mode: ",16),(0,e.createComponentVNode)(2,t.Button,{content:C,onClick:function(){function g(){return d("stocks_cycle_view")}return g}()}),(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"b",null,"Stock Transaction Log: ",16),(0,e.createComponentVNode)(2,t.Button,{icon:"list",content:"Check",onClick:function(){function g(){return d("stocks_check")}return g}()}),(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"b",null,"This is a work in progress. Certain features may not be available.",16),(0,e.createComponentVNode)(2,t.Section,{title:"Listed Stocks",children:b})]})},k=function(u,i){var c=(0,a.useBackend)(i),d=c.act,p=c.data,v=p.stocks,f=v===void 0?[]:v;return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createVNode)(1,"b",null,"Actions:",16)," + Buy, - Sell, (A)rchives, (H)istory",(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"\xA0"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"ID"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Name"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Value"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Owned"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Avail"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Actions"})]}),(0,e.createComponentVNode)(2,t.Divider),f.map(function(C){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"\xA0"}),(0,e.createComponentVNode)(2,t.Table.Cell,{color:"label",children:C.ID}),(0,e.createComponentVNode)(2,t.Table.Cell,{color:"label",children:C.Name}),(0,e.createComponentVNode)(2,t.Table.Cell,{color:"label",children:C.Value}),(0,e.createComponentVNode)(2,t.Table.Cell,{color:"label",children:C.Owned}),(0,e.createComponentVNode)(2,t.Table.Cell,{color:"label",children:C.Avail}),(0,e.createComponentVNode)(2,t.Table.Cell,{color:"label",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"plus",disabled:!1,onClick:function(){function b(){return d("stocks_buy",{share:C.REF})}return b}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"minus",disabled:!1,onClick:function(){function b(){return d("stocks_sell",{share:C.REF})}return b}()}),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Button,{content:"A",onClick:function(){function b(){return d("stocks_archive",{share:C.REF})}return b}()}),(0,e.createComponentVNode)(2,t.Button,{content:"H",onClick:function(){function b(){return d("stocks_history",{share:C.REF})}return b}()}),(0,e.createVNode)(1,"br")]})]},C.ID)})]})]})},S=function(u,i){var c=(0,a.useBackend)(i),d=c.act,p=c.data,v=p.stocks,f=v===void 0?[]:v;return(0,e.createComponentVNode)(2,t.Box,{children:f.map(function(C){return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createVNode)(1,"span",null,C.name,0)," ",(0,e.createVNode)(1,"span",null,C.ID,0),C.bankrupt===1&&(0,e.createVNode)(1,"b",null,"BANKRUPT",16,{color:"red"}),(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"b",null,"Unified shares",16)," ",C.Unification," ago.",(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"b",null,"Current value per share:",16)," ",C.Value," |"," ",(0,e.createComponentVNode)(2,t.Button,{content:"View history",onClick:function(){function b(){return d("stocks_history",{share:C.REF})}return b}()}),(0,e.createVNode)(1,"br"),"You currently own ",(0,e.createVNode)(1,"b",null,C.Owned,0)," shares in this company.",(0,e.createVNode)(1,"br"),"There are ",C.Avail," purchasable shares on the market currently.",(0,e.createVNode)(1,"br"),C.bankrupt===1?(0,e.createVNode)(1,"span",null,"You cannot buy or sell shares in a bankrupt company!",16):(0,e.createVNode)(1,"span",null,[(0,e.createComponentVNode)(2,t.Button,{content:"Buy shares",onClick:function(){function b(){return d("stocks_buy",{share:C.REF})}return b}()}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("|"),(0,e.createTextVNode)(" "),(0,e.createComponentVNode)(2,t.Button,{content:"Sell shares",onClick:function(){function b(){return d("stocks_sell",{share:C.REF})}return b}()})],0),(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"b",null,"Prominent products:",16),(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"i",null,C.Products,0),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Button,{content:"View news archives",onClick:function(){function b(){return d("stocks_archive",{share:C.REF})}return b}()})," ",(0,e.createComponentVNode)(2,t.Divider)]},C.ID)})})},N=function(u,i){var c=(0,a.useBackend)(i),d=c.act,p=c.data,v=p.logs,f=v===void 0?[]:v;return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createVNode)(1,"h2",null,"Stock Transaction Logs",16),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Button,{content:"Go back",onClick:function(){function C(){return d("stocks_backbutton")}return C}()}),(0,e.createComponentVNode)(2,t.Divider),(0,e.createVNode)(1,"div",null,f.map(function(C){return(0,e.createComponentVNode)(2,t.Box,{children:[C.type!=="borrow"?(0,e.createVNode)(1,"div",null,[C.time,(0,e.createTextVNode)(" | "),(0,e.createVNode)(1,"b",null,C.user_name,0),(0,e.createTextVNode)(" "),C.type==="transaction_bought"?(0,e.createVNode)(1,"span",null,"bought",16):(0,e.createVNode)(1,"span",null,"sold",16),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"b",null,C.stocks,0),(0,e.createTextVNode)(" stocks at "),C.shareprice,(0,e.createTextVNode)(" a share for"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"b",null,C.money,0),(0,e.createTextVNode)(" total credits"),(0,e.createTextVNode)(" "),C.type==="transaction_bought"?(0,e.createVNode)(1,"span",null,"in",16):(0,e.createVNode)(1,"span",null,"from",16),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"b",null,C.company_name,0),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"br")],0):(0,e.createVNode)(1,"div",null,[C.time,(0,e.createTextVNode)(" | "),(0,e.createVNode)(1,"b",null,C.user_name,0),(0,e.createTextVNode)(" borrowed "),(0,e.createVNode)(1,"b",null,C.stocks,0),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("stocks with a deposit of "),(0,e.createVNode)(1,"b",null,C.money,0),(0,e.createTextVNode)(" credits in"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"b",null,C.company_name,0),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"br")],0),(0,e.createComponentVNode)(2,t.Divider)]},C.time)}),0)]})},h=function(u,i){var c=(0,a.useBackend)(i),d=c.act,p=c.data,v=p.name,f=p.events,C=f===void 0?[]:f,b=p.articles,g=b===void 0?[]:b;return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createVNode)(1,"h2",null,[(0,e.createTextVNode)("News feed for "),v],0),(0,e.createComponentVNode)(2,t.Button,{content:"Go back",onClick:function(){function y(){return d("stocks_backbutton")}return y}()}),(0,e.createVNode)(1,"h3",null,"Events",16),(0,e.createComponentVNode)(2,t.Divider),(0,e.createVNode)(1,"div",null,C.map(function(y){return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createVNode)(1,"div",null,[(0,e.createVNode)(1,"b",null,y.current_title,0),(0,e.createVNode)(1,"br"),y.current_desc],0),(0,e.createComponentVNode)(2,t.Divider)]},y.current_title)}),0),(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"h3",null,"Articles",16),(0,e.createComponentVNode)(2,t.Divider),(0,e.createVNode)(1,"div",null,g.map(function(y){return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createVNode)(1,"div",null,[(0,e.createVNode)(1,"b",null,y.headline,0),(0,e.createVNode)(1,"i",null,y.subtitle,0),(0,e.createVNode)(1,"br"),y.article,(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("- "),y.author,(0,e.createTextVNode)(", "),y.spacetime,(0,e.createTextVNode)(" (via"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,y.outlet,0),(0,e.createTextVNode)(")")],0),(0,e.createComponentVNode)(2,t.Divider)]},y.headline)}),0)]})},s=function(u,i){var c=(0,a.useBackend)(i),d=c.act,p=c.data,v=p.name,f=p.maxValue,C=p.values,b=C===void 0?[]:C;return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Button,{content:"Go back",onClick:function(){function g(){return d("stocks_backbutton")}return g}()}),(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,t.Section,{position:"relative",height:"100%",children:(0,e.createComponentVNode)(2,t.Chart.Line,{fillPositionedParent:!0,data:b,rangeX:[0,b.length-1],rangeY:[0,f],strokeColor:"rgba(0, 181, 173, 1)",fillColor:"rgba(0, 181, 173, 0.25)"})}),(0,e.createComponentVNode)(2,t.Divider),(0,e.createVNode)(1,"p",null,[v,(0,e.createTextVNode)(" share value per share")],0)]})}},44261:function(x,r,n){"use strict";r.__esModule=!0,r.SuitCycler=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=r.SuitCycler=function(){function h(s,l){var u=(0,a.useBackend)(l),i=u.act,c=u.data,d=c.active,p=c.locked,v=c.uv_active,f=(0,e.createComponentVNode)(2,V);return v?f=(0,e.createComponentVNode)(2,k):p?f=(0,e.createComponentVNode)(2,S):d&&(f=(0,e.createComponentVNode)(2,N)),(0,e.createComponentVNode)(2,o.Window,{width:320,height:400,resizable:!0,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:f})})}return h}(),V=function(s,l){var u=(0,a.useBackend)(l),i=u.act,c=u.data,d=c.safeties,p=c.occupied,v=c.suit,f=c.helmet,C=c.departments,b=c.species,g=c.uv_level,y=c.max_uv_level,B=c.can_repair,L=c.damage;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{title:"Storage",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"lock",content:"Lock",onClick:function(){function I(){return i("lock")}return I}()}),children:[!!(p&&d)&&(0,e.createComponentVNode)(2,t.NoticeBox,{children:["Biological entity detected in suit chamber. Please remove before continuing with operation.",(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"eject",color:"red",content:"Eject Entity",onClick:function(){function I(){return i("eject_guy")}return I}()})]}),(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Helmet",children:(0,e.createComponentVNode)(2,t.Button,{icon:f?"square":"square-o",content:f||"Empty",disabled:!f,onClick:function(){function I(){return i("dispense",{item:"helmet"})}return I}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Suit",children:(0,e.createComponentVNode)(2,t.Button,{icon:v?"square":"square-o",content:v||"Empty",disabled:!v,onClick:function(){function I(){return i("dispense",{item:"suit"})}return I}()})}),B&&L?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Suit Damage",children:[L,(0,e.createComponentVNode)(2,t.Button,{icon:"wrench",content:"Repair",onClick:function(){function I(){return i("repair_suit")}return I}()})]}):null]})]}),(0,e.createComponentVNode)(2,t.Section,{title:"Customization",children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Target Paintjob",children:(0,e.createComponentVNode)(2,t.Dropdown,{noscroll:!0,width:"150px",options:C,selected:C[0],onSelected:function(){function I(w){return i("department",{department:w})}return I}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Target Species",children:(0,e.createComponentVNode)(2,t.Dropdown,{width:"150px",maxHeight:"160px",options:b,selected:b[0],onSelected:function(){function I(w){return i("species",{species:w})}return I}()})})]}),(0,e.createComponentVNode)(2,t.Button,{mt:1,fluid:!0,content:"Customize",onClick:function(){function I(){return i("apply_paintjob")}return I}()})]}),(0,e.createComponentVNode)(2,t.Section,{title:"UV Decontamination",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Radiation Level",children:(0,e.createComponentVNode)(2,t.NumberInput,{width:"50px",value:g,minValue:1,maxValue:y,stepPixelSize:30,onChange:function(){function I(w,T){return i("radlevel",{radlevel:T})}return I}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Decontaminate",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"recycle",disabled:p&&d,textAlign:"center",onClick:function(){function I(){return i("uv")}return I}()})})]})})],4)},k=function(s,l){return(0,e.createComponentVNode)(2,t.NoticeBox,{children:"Contents are currently being decontaminated. Please wait."})},S=function(s,l){var u=(0,a.useBackend)(l),i=u.act,c=u.data,d=c.model_text,p=c.userHasAccess;return(0,e.createComponentVNode)(2,t.Section,{title:"Locked",textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Box,{color:"bad",bold:!0,children:["The ",d," suit cycler is currently locked. Please contact your system administrator."]}),(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"unlock",content:"[Unlock]",disabled:!p,onClick:function(){function v(){return i("lock")}return v}()})})]})},N=function(s,l){return(0,e.createComponentVNode)(2,t.NoticeBox,{children:"Contents are currently being painted. Please wait."})}},58954:function(x,r,n){"use strict";r.__esModule=!0,r.SuitStorageUnit=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=r.SuitStorageUnit=function(){function h(s,l){var u=(0,a.useBackend)(l),i=u.act,c=u.data,d=c.panelopen,p=c.uv_active,v=c.broken,f=(0,e.createComponentVNode)(2,V);return d?f=(0,e.createComponentVNode)(2,k):p?f=(0,e.createComponentVNode)(2,S):v&&(f=(0,e.createComponentVNode)(2,N)),(0,e.createComponentVNode)(2,o.Window,{width:400,height:365,resizable:!0,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:f})})}return h}(),V=function(s,l){var u=(0,a.useBackend)(l),i=u.act,c=u.data,d=c.locked,p=c.open,v=c.safeties,f=c.occupied,C=c.suit,b=c.helmet,g=c.mask;return(0,e.createComponentVNode)(2,t.Section,{title:"Storage",minHeight:"260px",buttons:(0,e.createFragment)([!p&&(0,e.createComponentVNode)(2,t.Button,{icon:d?"unlock":"lock",content:d?"Unlock":"Lock",onClick:function(){function y(){return i("lock")}return y}()}),!d&&(0,e.createComponentVNode)(2,t.Button,{icon:p?"sign-out-alt":"sign-in-alt",content:p?"Close":"Open",onClick:function(){function y(){return i("door")}return y}()})],0),children:[!!(f&&v)&&(0,e.createComponentVNode)(2,t.NoticeBox,{children:["Biological entity detected in suit chamber. Please remove before continuing with operation.",(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"eject",color:"red",content:"Eject Entity",onClick:function(){function y(){return i("eject_guy")}return y}()})]}),d&&(0,e.createComponentVNode)(2,t.Box,{mt:6,bold:!0,textAlign:"center",fontSize:"40px",children:[(0,e.createComponentVNode)(2,t.Box,{children:"Unit Locked"}),(0,e.createComponentVNode)(2,t.Icon,{name:"lock"})]})||p&&(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Helmet",children:(0,e.createComponentVNode)(2,t.Button,{icon:b?"square":"square-o",content:b||"Empty",disabled:!b,onClick:function(){function y(){return i("dispense",{item:"helmet"})}return y}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Suit",children:(0,e.createComponentVNode)(2,t.Button,{icon:C?"square":"square-o",content:C||"Empty",disabled:!C,onClick:function(){function y(){return i("dispense",{item:"suit"})}return y}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Mask",children:(0,e.createComponentVNode)(2,t.Button,{icon:g?"square":"square-o",content:g||"Empty",disabled:!g,onClick:function(){function y(){return i("dispense",{item:"mask"})}return y}()})})]})||(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"recycle",content:"Decontaminate",disabled:f&&v,textAlign:"center",onClick:function(){function y(){return i("uv")}return y}()})]})},k=function(s,l){var u=(0,a.useBackend)(l),i=u.act,c=u.data,d=c.safeties,p=c.uv_super;return(0,e.createComponentVNode)(2,t.Section,{title:"Maintenance Panel",children:[(0,e.createComponentVNode)(2,t.Box,{color:"grey",children:"The panel is ridden with controls, button and meters, labeled in strange signs and symbols that you cannot understand. Probably the manufactoring world's language. Among other things, a few controls catch your eye."}),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Box,{children:["A small dial with a biohazard symbol next to it. It's pointing towards a gauge that reads ",p?"15nm":"185nm",".",(0,e.createComponentVNode)(2,t.Flex,{mt:1,align:"center",textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Flex.Item,{basis:"50%",textAlign:"center",children:(0,e.createComponentVNode)(2,t.Knob,{size:2,inline:!0,value:p,minValue:0,maxValue:1,step:1,stepPixelSize:40,color:p?"red":"green",format:function(){function v(f){return f?"15nm":"185nm"}return v}(),onChange:function(){function v(f,C){return i("toggleUV")}return v}()})}),(0,e.createComponentVNode)(2,t.Flex.Item,{basis:"50%",textAlign:"center",children:(0,e.createComponentVNode)(2,t.Icon,{name:"biohazard",size:3,color:"orange"})})]})]}),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Box,{children:["A thick old-style button, with 2 grimy LED lights next to it. The"," ",d?(0,e.createVNode)(1,"font",null,"GREEN",16,{color:"green"}):(0,e.createVNode)(1,"font",null,"RED",16,{color:"red"})," ","LED is on.",(0,e.createComponentVNode)(2,t.Flex,{mt:1,align:"center",textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Flex.Item,{basis:"50%",textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{fontSize:"2rem",color:"grey",inline:!0,icon:"caret-square-right",style:{border:"4px solid #777","border-style":"outset"},onClick:function(){function v(){return i("togglesafeties")}return v}()})}),(0,e.createComponentVNode)(2,t.Flex.Item,{basis:"50%",textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"circle",color:d?"black":"red",mr:2}),(0,e.createComponentVNode)(2,t.Icon,{name:"circle",color:d?"green":"black"})]})]})]})]})},S=function(s,l){return(0,e.createComponentVNode)(2,t.NoticeBox,{children:"Contents are currently being decontaminated. Please wait."})},N=function(s,l){return(0,e.createComponentVNode)(2,t.NoticeBox,{danger:!0,children:"Unit chamber is too contaminated to continue usage. Please call for a qualified individual to perform maintenance."})}},7287:function(x,r,n){"use strict";r.__esModule=!0,r.SupermatterMonitorContent=r.SupermatterMonitor=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=n(5339),V=n(40946),k=r.SupermatterMonitor=function(){function s(l,u){return(0,e.createComponentVNode)(2,o.Window,{width:600,height:400,resizable:!0,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,S)})})}return s}(),S=r.SupermatterMonitorContent=function(){function s(l,u){var i=(0,a.useBackend)(u),c=i.act,d=i.data,p=d.active;return p?(0,e.createComponentVNode)(2,h):(0,e.createComponentVNode)(2,N)}return s}(),N=function(l,u){var i=(0,a.useBackend)(u),c=i.act,d=i.data,p=d.supermatters;return(0,e.createComponentVNode)(2,t.Section,{title:"Supermatters Detected",buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Refresh",icon:"sync",onClick:function(){function v(){return c("refresh")}return v}()}),children:(0,e.createComponentVNode)(2,t.Flex,{wrap:"wrap",children:p.map(function(v,f){return(0,e.createComponentVNode)(2,t.Flex.Item,{basis:"49%",grow:f%2,children:(0,e.createComponentVNode)(2,t.Section,{title:v.area_name+" (#"+v.uid+")",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Integrity",children:[v.integrity," %"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Options",children:(0,e.createComponentVNode)(2,t.Button,{icon:"eye",content:"View Details",onClick:function(){function C(){return c("set",{set:v.uid})}return C}()})})]})})},f)})})})},h=function(l,u){var i=(0,a.useBackend)(u),c=i.act,d=i.data,p=d.SM_area,v=d.SM_integrity,f=d.SM_power,C=d.SM_ambienttemp,b=d.SM_ambientpressure,g=d.SM_EPR,y=d.SM_gas_O2,B=d.SM_gas_CO2,L=d.SM_gas_N2,I=d.SM_gas_PH,w=d.SM_gas_N2O;return(0,e.createComponentVNode)(2,t.Section,{title:(0,V.toTitleCase)(p),buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-left",content:"Return to Menu",onClick:function(){function T(){return c("clear")}return T}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Core Integrity",children:(0,e.createComponentVNode)(2,t.ProgressBar,{animated:!0,value:v,minValue:0,maxValue:100,ranges:{good:[100,100],average:[50,100],bad:[-1/0,50]}})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Relative EER",children:(0,e.createComponentVNode)(2,t.Box,{color:f>300&&"bad"||f>150&&"average"||"good",children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{format:function(){function T(M){return(0,m.round)(M,2)+" MeV/cm\xB3"}return T}(),value:f})})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Temperature",children:(0,e.createComponentVNode)(2,t.Box,{color:C>5e3&&"bad"||C>4e3&&"average"||"good",children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{format:function(){function T(M){return(0,m.round)(M,2)+" K"}return T}(),value:C})})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Pressure",children:(0,e.createComponentVNode)(2,t.Box,{color:b>1e4&&"bad"||b>5e3&&"average"||"good",children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{format:function(){function T(M){return(0,m.round)(M,2)+" kPa"}return T}(),value:b})})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Chamber EPR",children:(0,e.createComponentVNode)(2,t.Box,{color:g>4&&"bad"||g>1&&"average"||"good",children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{format:function(){function T(M){return(0,m.round)(M,2)}return T}(),value:g})})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Gas Composition",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"O\xB2",children:[(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:y}),"%"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"CO\xB2",children:[(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:B}),"%"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"N\xB2",children:[(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:L}),"%"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"PH",children:[(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:I}),"%"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"N\xB2O",children:[(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:w}),"%"]})]})})]})})}},68164:function(x,r,n){"use strict";r.__esModule=!0,r.SupplyConsole=void 0;var e=n(58734),a=n(45445),t=n(43820),o=n(62188),m=n(11790),V=n(48388),k=n(11477),S=n(75671),N=function(p,v){var f=(0,o.useBackend)(v),C=f.act,b=f.data,g=b.supply_points,y=p.args,B=y.name,L=y.cost,I=y.manifest,w=y.ref,T=y.random;return(0,e.createComponentVNode)(2,m.Section,{width:"400px",level:2,m:"-1rem",pb:"1rem",title:B,buttons:(0,e.createComponentVNode)(2,m.Button,{icon:"shopping-cart",content:"Buy - "+L+" points",disabled:L>g,onClick:function(){function M(){return C("request_crate",{ref:w})}return M}()}),children:(0,e.createComponentVNode)(2,m.Section,{title:"Contains"+(T?" any "+T+" of:":""),scrollable:!0,height:"200px",children:I.map(function(M){return(0,e.createComponentVNode)(2,m.Box,{children:M},M)})})})},h=r.SupplyConsole=function(){function d(p,v){var f=(0,o.useBackend)(v),C=f.act,b=f.data;return(0,V.modalRegisterBodyOverride)("view_crate",N),(0,e.createComponentVNode)(2,k.Window,{width:700,height:620,children:(0,e.createComponentVNode)(2,k.Window.Content,{children:[(0,e.createComponentVNode)(2,V.ComplexModal,{maxWidth:"100%"}),(0,e.createComponentVNode)(2,m.Section,{title:"Supply Records",children:[(0,e.createComponentVNode)(2,s),(0,e.createComponentVNode)(2,l)]})]})})}return d}(),s=function(p,v){var f=(0,o.useBackend)(v),C=f.act,b=f.data,g=b.supply_points,y=b.shuttle,B=b.shuttle_auth,L=null,I=!1;return B&&(y.launch===1&&y.mode===0?L=(0,e.createComponentVNode)(2,m.Button,{icon:"rocket",content:"Send Away",onClick:function(){function w(){return C("send_shuttle",{mode:"send_away"})}return w}()}):y.launch===2&&(y.mode===3||y.mode===1)?L=(0,e.createComponentVNode)(2,m.Button,{icon:"ban",content:"Cancel Launch",onClick:function(){function w(){return C("send_shuttle",{mode:"cancel_shuttle"})}return w}()}):y.launch===1&&y.mode===5&&(L=(0,e.createComponentVNode)(2,m.Button,{icon:"rocket",content:"Send Shuttle",onClick:function(){function w(){return C("send_shuttle",{mode:"send_to_station"})}return w}()})),y.force&&(I=!0)),(0,e.createComponentVNode)(2,m.Section,{children:[(0,e.createComponentVNode)(2,m.LabeledList,{children:(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Supply Points",children:(0,e.createComponentVNode)(2,m.AnimatedNumber,{value:g})})}),(0,e.createComponentVNode)(2,m.Section,{level:2,title:"Supply Shuttle",mt:2,children:(0,e.createComponentVNode)(2,m.LabeledList,{children:[(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Location",buttons:(0,e.createFragment)([L,I?(0,e.createComponentVNode)(2,m.Button,{icon:"exclamation-triangle",content:"Force Launch",onClick:function(){function w(){return C("send_shuttle",{mode:"force_shuttle"})}return w}()}):null],0),children:y.location}),(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Engine",children:y.engine}),y.mode===4?(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"ETA",children:y.time>1?(0,t.formatTime)(y.time):"LATE"}):null]})})]})},l=function(p,v){var f=(0,o.useBackend)(v),C=f.act,b=f.data,g=b.order_auth,y=(0,o.useLocalState)(v,"tabIndex",0),B=y[0],L=y[1];return(0,e.createComponentVNode)(2,m.Section,{title:"Menu",children:[(0,e.createComponentVNode)(2,m.Tabs,{children:[(0,e.createComponentVNode)(2,m.Tabs.Tab,{icon:"box",selected:B===0,onClick:function(){function I(){return L(0)}return I}(),children:"Request"}),(0,e.createComponentVNode)(2,m.Tabs.Tab,{icon:"check-circle-o",selected:B===1,onClick:function(){function I(){return L(1)}return I}(),children:"Accepted"}),(0,e.createComponentVNode)(2,m.Tabs.Tab,{icon:"circle-o",selected:B===2,onClick:function(){function I(){return L(2)}return I}(),children:"Requests"}),(0,e.createComponentVNode)(2,m.Tabs.Tab,{icon:"book",selected:B===3,onClick:function(){function I(){return L(3)}return I}(),children:"Order history"}),(0,e.createComponentVNode)(2,m.Tabs.Tab,{icon:"book",selected:B===4,onClick:function(){function I(){return L(4)}return I}(),children:"Export history"})]}),B===0?(0,e.createComponentVNode)(2,u):null,B===1?(0,e.createComponentVNode)(2,i,{mode:"Approved"}):null,B===2?(0,e.createComponentVNode)(2,i,{mode:"Requested"}):null,B===3?(0,e.createComponentVNode)(2,i,{mode:"All"}):null,B===4?(0,e.createComponentVNode)(2,c):null]})},u=function(p,v){var f=(0,o.useBackend)(v),C=f.act,b=f.data,g=b.categories,y=b.supply_packs,B=b.contraband,L=b.supply_points,I=(0,o.useLocalState)(v,"activeCategory",null),w=I[0],T=I[1],M=(0,S.flow)([(0,a.filter)(function(A){return A.group===w}),(0,a.filter)(function(A){return!A.contraband||B}),(0,a.sortBy)(function(A){return A.name}),(0,a.sortBy)(function(A){return A.cost>L})])(y);return(0,e.createComponentVNode)(2,m.Section,{level:2,children:(0,e.createComponentVNode)(2,m.Stack,{children:[(0,e.createComponentVNode)(2,m.Stack.Item,{basis:"25%",children:(0,e.createComponentVNode)(2,m.Section,{title:"Categories",scrollable:!0,fill:!0,height:"290px",children:g.map(function(A){return(0,e.createComponentVNode)(2,m.Button,{fluid:!0,content:A,selected:A===w,onClick:function(){function R(){return T(A)}return R}()},A)})})}),(0,e.createComponentVNode)(2,m.Stack.Item,{grow:1,ml:2,children:(0,e.createComponentVNode)(2,m.Section,{title:"Contents",scrollable:!0,fill:!0,height:"290px",children:M.map(function(A){return(0,e.createComponentVNode)(2,m.Box,{children:(0,e.createComponentVNode)(2,m.Stack,{align:"center",justify:"flex-start",children:[(0,e.createComponentVNode)(2,m.Stack.Item,{basis:"70%",children:(0,e.createComponentVNode)(2,m.Button,{fluid:!0,icon:"shopping-cart",ellipsis:!0,content:A.name,color:A.cost>L?"red":null,onClick:function(){function R(){return C("request_crate",{ref:A.ref})}return R}()})}),(0,e.createComponentVNode)(2,m.Stack.Item,{children:(0,e.createComponentVNode)(2,m.Button,{content:"#",color:A.cost>L?"red":null,onClick:function(){function R(){return C("request_crate_multi",{ref:A.ref})}return R}()})}),(0,e.createComponentVNode)(2,m.Stack.Item,{children:(0,e.createComponentVNode)(2,m.Button,{content:"C",color:A.cost>L?"red":null,onClick:function(){function R(){return C("view_crate",{crate:A.ref})}return R}()})}),(0,e.createComponentVNode)(2,m.Stack.Item,{grow:1,children:[A.cost," points"]})]})},A.name)})})})]})})},i=function(p,v){var f=(0,o.useBackend)(v),C=f.act,b=f.data,g=p.mode,y=b.orders,B=b.order_auth,L=b.supply_points,I=y.filter(function(w){return w.status===g||g==="All"});return I.length?(0,e.createComponentVNode)(2,m.Section,{level:2,children:[g==="Requested"&&B?(0,e.createComponentVNode)(2,m.Button,{mt:-1,mb:1,fluid:!0,color:"red",icon:"trash",content:"Clear all requests",onClick:function(){function w(){return C("clear_all_requests")}return w}()}):null,I.map(function(w,T){return(0,e.createComponentVNode)(2,m.Section,{title:"Order "+(T+1),buttons:g==="All"&&B?(0,e.createComponentVNode)(2,m.Button,{color:"red",icon:"trash",content:"Delete Record",onClick:function(){function M(){return C("delete_order",{ref:w.ref})}return M}()}):null,children:[(0,e.createComponentVNode)(2,m.LabeledList,{children:[w.entries.map(function(M){return M.entry?(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:M.field,buttons:B?(0,e.createComponentVNode)(2,m.Button,{icon:"pen",content:"Edit",onClick:function(){function A(){C("edit_order_value",{ref:w.ref,edit:M.field,default:M.entry})}return A}()}):null,children:M.entry}):null}),g==="All"?(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Status",children:w.status}):null]}),B&&g==="Requested"?(0,e.createFragment)([(0,e.createComponentVNode)(2,m.Button,{icon:"check",content:"Approve",disabled:w.cost>L,onClick:function(){function M(){return C("approve_order",{ref:w.ref})}return M}()}),(0,e.createComponentVNode)(2,m.Button,{icon:"times",content:"Deny",onClick:function(){function M(){return C("deny_order",{ref:w.ref})}return M}()})],4):null]},T)})]}):(0,e.createComponentVNode)(2,m.Section,{level:2,children:"No orders found."})},c=function(p,v){var f=(0,o.useBackend)(v),C=f.act,b=f.data,g=b.receipts,y=b.order_auth;return g.length?(0,e.createComponentVNode)(2,m.Section,{level:2,children:g.map(function(B,L){return(0,e.createComponentVNode)(2,m.Section,{children:[(0,e.createComponentVNode)(2,m.LabeledList,{children:[B.title.map(function(I){return(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:I.field,buttons:y?(0,e.createComponentVNode)(2,m.Button,{icon:"pen",content:"Edit",onClick:function(){function w(){return C("export_edit",{ref:B.ref,edit:I.field,default:I.entry})}return w}()}):null,children:I.entry},I.field)}),B.error?(0,e.createComponentVNode)(2,m.LabeledList.Item,{labelColor:"red",label:"Error",children:B.error}):B.contents.map(function(I,w){return(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:I.object,buttons:y?(0,e.createFragment)([(0,e.createComponentVNode)(2,m.Button,{icon:"pen",content:"Edit",onClick:function(){function T(){return C("export_edit_field",{ref:B.ref,index:w+1,edit:"meow",default:I.object})}return T}()}),(0,e.createComponentVNode)(2,m.Button,{icon:"trash",color:"red",content:"Delete",onClick:function(){function T(){return C("export_delete_field",{ref:B.ref,index:w+1})}return T}()})],4):null,children:[I.quantity,"x -> ",I.value," points"]},w)})]}),y?(0,e.createFragment)([(0,e.createComponentVNode)(2,m.Button,{mt:1,icon:"plus",content:"Add Item To Record",onClick:function(){function I(){return C("export_add_field",{ref:B.ref})}return I}()}),(0,e.createComponentVNode)(2,m.Button,{icon:"trash",content:"Delete Record",onClick:function(){function I(){return C("export_delete",{ref:B.ref})}return I}()})],4):null]},L)})}):(0,e.createComponentVNode)(2,m.Section,{level:2,children:"No receipts found."})}},50698:function(x,r,n){"use strict";r.__esModule=!0,r.TEGenerator=void 0;var e=n(58734),a=n(5339),t=n(62188),o=n(11790),m=n(11477),V=n(43820),k=r.TEGenerator=function(){function N(h,s){var l=(0,t.useBackend)(s),u=l.data,i=u.totalOutput,c=u.maxTotalOutput,d=u.thermalOutput,p=u.primary,v=u.secondary;return(0,e.createComponentVNode)(2,m.Window,{width:550,height:310,resizable:!0,children:(0,e.createComponentVNode)(2,m.Window.Content,{children:[(0,e.createComponentVNode)(2,o.Section,{title:"Status",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Total Output",children:(0,e.createComponentVNode)(2,o.ProgressBar,{value:i,maxValue:c,children:(0,V.formatPower)(i)})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Thermal Output",children:(0,V.formatPower)(d)})]})}),p&&v?(0,e.createComponentVNode)(2,o.Flex,{spacing:1,children:[(0,e.createComponentVNode)(2,o.Flex.Item,{shrink:1,grow:1,children:(0,e.createComponentVNode)(2,S,{name:"Primary Circulator",values:p})}),(0,e.createComponentVNode)(2,o.Flex.Item,{shrink:1,grow:1,children:(0,e.createComponentVNode)(2,S,{name:"Secondary Circulator",values:v})})]}):(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"Warning! Both circulators must be connected in order to operate this machine."})]})})}return N}(),S=function(h,s){var l=h.name,u=h.values,i=u.dir,c=u.output,d=u.flowCapacity,p=u.inletPressure,v=u.inletTemperature,f=u.outletPressure,C=u.outletTemperature;return(0,e.createComponentVNode)(2,o.Section,{title:l+" ("+i+")",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Turbine Output",children:(0,V.formatPower)(c)}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Flow Capacity",children:[(0,a.round)(d,2),"%"]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Inlet Pressure",children:(0,V.formatSiUnit)(p*1e3,0,"Pa")}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Inlet Temperature",children:[(0,a.round)(v,2)," K"]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Outlet Pressure",children:(0,V.formatSiUnit)(f*1e3,0,"Pa")}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Outlet Temperature",children:[(0,a.round)(C,2)," K"]})]})})}},29023:function(x,r,n){"use strict";r.__esModule=!0,r.Tank=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=r.Tank=function(){function V(k,S){var N=(0,a.useBackend)(S),h=N.act,s=N.data,l=s.connected,u=s.showToggle,i=u===void 0?!0:u,c=s.maskConnected,d=s.tankPressure,p=s.releasePressure,v=s.defaultReleasePressure,f=s.minReleasePressure,C=s.maxReleasePressure;return(0,e.createComponentVNode)(2,o.Window,{width:400,height:320,resizable:!0,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Status",buttons:!!i&&(0,e.createComponentVNode)(2,t.Button,{icon:l?"air-freshener":"lock-open",selected:l,disabled:!c,content:"Mask Release Valve",onClick:function(){function b(){return h("toggle")}return b}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Mask Connected",children:c?"Yes":"No"})})}),(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Pressure",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:d/1013,ranges:{good:[.35,1/0],average:[.15,.35],bad:[-1/0,.15]},children:s.tankPressure+" kPa"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Pressure Regulator",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"fast-backward",disabled:p===f,onClick:function(){function b(){return h("pressure",{pressure:"min"})}return b}()}),(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,value:parseFloat(p),width:"65px",unit:"kPa",minValue:f,maxValue:C,onChange:function(){function b(g,y){return h("pressure",{pressure:y})}return b}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",disabled:p===C,onClick:function(){function b(){return h("pressure",{pressure:"max"})}return b}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"undo",content:"",disabled:p===v,onClick:function(){function b(){return h("pressure",{pressure:"reset"})}return b}()})]})]})})]})})}return V}()},91299:function(x,r,n){"use strict";r.__esModule=!0,r.TankDispenser=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=r.TankDispenser=function(){function V(k,S){var N=(0,a.useBackend)(S),h=N.act,s=N.data,l=s.plasma,u=s.oxygen;return(0,e.createComponentVNode)(2,o.Window,{width:275,height:103,resizable:!0,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Phoron",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:l?"square":"square-o",content:"Dispense",disabled:!l,onClick:function(){function i(){return h("plasma")}return i}()}),children:l}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Oxygen",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:u?"square":"square-o",content:"Dispense",disabled:!u,onClick:function(){function i(){return h("oxygen")}return i}()}),children:u})]})})})})}return V}()},32235:function(x,r,n){"use strict";r.__esModule=!0,r.TelecommsLogBrowser=void 0;var e=n(58734),a=n(5339),t=n(62188),o=n(11790),m=n(11477),V=r.TelecommsLogBrowser=function(){function h(s,l){var u=(0,t.useBackend)(l),i=u.act,c=u.data,d=c.universal_translate,p=c.network,v=c.temp,f=c.servers,C=c.selectedServer;return(0,e.createComponentVNode)(2,m.Window,{width:575,height:450,resizable:!0,children:(0,e.createComponentVNode)(2,m.Window.Content,{scrollable:!0,children:[v?(0,e.createComponentVNode)(2,o.NoticeBox,{danger:v.color==="bad",warning:v.color!=="bad",children:[(0,e.createComponentVNode)(2,o.Box,{display:"inline-box",verticalAlign:"middle",children:v.text}),(0,e.createComponentVNode)(2,o.Button,{icon:"times-circle",float:"right",onClick:function(){function b(){return i("cleartemp")}return b}()}),(0,e.createComponentVNode)(2,o.Box,{clear:"both"})]}):null,(0,e.createComponentVNode)(2,o.Section,{title:"Network Control",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Current Network",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{icon:"search",content:"Refresh",onClick:function(){function b(){return i("scan")}return b}()}),(0,e.createComponentVNode)(2,o.Button,{color:"bad",icon:"exclamation-triangle",content:"Flush Buffer",disabled:f.length===0,onClick:function(){function b(){return i("release")}return b}()})],4),children:(0,e.createComponentVNode)(2,o.Button,{content:p,icon:"pen",onClick:function(){function b(){return i("network")}return b}()})})})}),C?(0,e.createComponentVNode)(2,S,{network:p,server:C,universal_translate:d}):(0,e.createComponentVNode)(2,k,{network:p,servers:f})]})})}return h}(),k=function(s,l){var u=(0,t.useBackend)(l),i=u.act,c=u.data,d=s.network,p=s.servers;return!p||!p.length?(0,e.createComponentVNode)(2,o.Section,{title:"Detected Telecommunications Servers",children:[(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"No servers detected."}),(0,e.createComponentVNode)(2,o.Button,{fluid:!0,content:"Scan",icon:"search",onClick:function(){function v(){return i("scan")}return v}()})]}):(0,e.createComponentVNode)(2,o.Section,{title:"Detected Telecommunications Servers",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:p.map(function(v){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:v.name+" ("+v.id+")",children:(0,e.createComponentVNode)(2,o.Button,{content:"View",icon:"eye",onClick:function(){function f(){return i("view",{id:v.id})}return f}()})},v.id)})})})},S=function(s,l){var u=(0,t.useBackend)(l),i=u.act,c=u.data,d=s.network,p=s.server,v=s.universal_translate;return(0,e.createComponentVNode)(2,o.Section,{title:"Server ("+p.id+")",buttons:(0,e.createComponentVNode)(2,o.Button,{content:"Return",icon:"undo",onClick:function(){function f(){return i("mainmenu")}return f}()}),children:[(0,e.createComponentVNode)(2,o.LabeledList,{children:(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Total Recorded Traffic",children:p.totalTraffic>=1024?(0,a.round)(p.totalTraffic/1024)+" Terrabytes":p.totalTraffic+" Gigabytes"})}),(0,e.createComponentVNode)(2,o.Section,{title:"Stored Logs",mt:"4px",children:(0,e.createComponentVNode)(2,o.Flex,{wrap:"wrap",children:!p.logs||!p.logs.length?"No Logs Detected.":p.logs.map(function(f){return(0,e.createComponentVNode)(2,o.Flex.Item,{m:"2px",basis:"49%",grow:f.id%2,children:(0,e.createComponentVNode)(2,o.Section,{title:v||f.parameters.uspeech||f.parameters.intelligible||f.input_type==="Execution Error"?f.input_type:"Audio File",buttons:(0,e.createComponentVNode)(2,o.Button.Confirm,{confirmContent:"Delete Log?",color:"bad",icon:"trash",confirmIcon:"trash",onClick:function(){function C(){return i("delete",{id:f.id})}return C}()}),children:f.input_type==="Execution Error"?(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Data type",children:"Error"}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Output",children:f.parameters.message}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Delete",children:(0,e.createComponentVNode)(2,o.Button,{icon:"trash",onClick:function(){function C(){return i("delete",{id:f.id})}return C}()})})]}):v||f.parameters.uspeech||f.parameters.intelligible?(0,e.createComponentVNode)(2,N,{log:f}):(0,e.createComponentVNode)(2,N,{error:!0})})},f.id)})})})]})},N=function(s,l){var u=(0,t.useBackend)(l),i=u.act,c=u.data,d=s.log,p=s.error,v=d&&d.parameters||{none:"none"},f=v.timecode,C=v.name,b=v.race,g=v.job,y=v.message;return p?(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Time Recieved",children:f}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Source",children:"Unidentifiable"}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Class",children:b}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Contents",children:"Unintelligible"})]}):(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Time Recieved",children:f}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Source",children:[C," (Job: ",g,")"]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Class",children:b}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Contents",className:"LabeledList__breakContents",children:y})]})}},81443:function(x,r,n){"use strict";r.__esModule=!0,r.TelecommsMachineBrowser=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=r.TelecommsMachineBrowser=function(){function k(S,N){var h=(0,a.useBackend)(N),s=h.act,l=h.data,u=l.network,i=l.temp,c=l.machinelist,d=l.selectedMachine;return(0,e.createComponentVNode)(2,o.Window,{width:575,height:450,resizable:!0,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[i?(0,e.createComponentVNode)(2,t.NoticeBox,{danger:i.color==="bad",warning:i.color!=="bad",children:[(0,e.createComponentVNode)(2,t.Box,{display:"inline-box",verticalAlign:"middle",children:i.text}),(0,e.createComponentVNode)(2,t.Button,{icon:"times-circle",float:"right",onClick:function(){function p(){return s("cleartemp")}return p}()}),(0,e.createComponentVNode)(2,t.Box,{clear:"both"})]}):null,(0,e.createComponentVNode)(2,t.Section,{title:"Network Control",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Current Network",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{icon:"search",content:"Probe Network",onClick:function(){function p(){return s("scan")}return p}()}),(0,e.createComponentVNode)(2,t.Button,{color:"bad",icon:"exclamation-triangle",content:"Flush Buffer",disabled:c.length===0,onClick:function(){function p(){return s("release")}return p}()})],4),children:(0,e.createComponentVNode)(2,t.Button,{content:u,icon:"pen",onClick:function(){function p(){return s("network")}return p}()})})})}),c&&c.length?(0,e.createComponentVNode)(2,V,{title:d?d.name+" ("+d.id+")":"Detected Network Entities",list:d?d.links:c,showBack:d}):(0,e.createComponentVNode)(2,t.Section,{title:"No Devices Found",children:(0,e.createComponentVNode)(2,t.Button,{icon:"search",content:"Probe Network",onClick:function(){function p(){return s("scan")}return p}()})})]})})}return k}(),V=function(S,N){var h=(0,a.useBackend)(N),s=h.act,l=h.data,u=S.list,i=S.title,c=S.showBack;return(0,e.createComponentVNode)(2,t.Section,{title:i,buttons:c&&(0,e.createComponentVNode)(2,t.Button,{icon:"undo",content:"Back to Main Menu",onClick:function(){function d(){return s("mainmenu")}return d}()}),children:[(0,e.createComponentVNode)(2,t.Box,{color:"label",children:(0,e.createVNode)(1,"u",null,"Linked entities",16)}),(0,e.createComponentVNode)(2,t.LabeledList,{children:u.length?u.map(function(d){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:d.name+" ("+d.id+")",children:(0,e.createComponentVNode)(2,t.Button,{content:"View",icon:"eye",onClick:function(){function p(){return s("view",{id:d.id})}return p}()})},d.id)}):(0,e.createComponentVNode)(2,t.LabeledList.Item,{color:"bad",children:"No links detected."})})]})}},63443:function(x,r,n){"use strict";r.__esModule=!0,r.TelecommsMultitoolMenu=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(45246),m=n(11477),V=r.TelecommsMultitoolMenu=function(){function N(h,s){var l=(0,a.useBackend)(s),u=l.act,i=l.data,c=i.temp,d=i.on,p=i.id,v=i.network,f=i.autolinkers,C=i.shadowlink,b=i.options,g=i.linked,y=i.filter,B=i.multitool,L=i.multitool_buffer;return(0,e.createComponentVNode)(2,m.Window,{width:520,height:540,resizable:!0,children:(0,e.createComponentVNode)(2,m.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,o.TemporaryNotice),(0,e.createComponentVNode)(2,k),(0,e.createComponentVNode)(2,S,{options:b})]})})}return N}(),k=function(h,s){var l=(0,a.useBackend)(s),u=l.act,i=l.data,c=i.temp,d=i.on,p=i.id,v=i.network,f=i.autolinkers,C=i.shadowlink,b=i.options,g=i.linked,y=i.filter,B=i.multitool,L=i.multitool_buffer;return(0,e.createComponentVNode)(2,t.Section,{title:"Status",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"power-off",selected:d,content:d?"On":"Off",onClick:function(){function I(){return u("toggle")}return I}()}),children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Identification String",children:(0,e.createComponentVNode)(2,t.Button,{icon:"pen",content:p,onClick:function(){function I(){return u("id")}return I}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Network",children:(0,e.createComponentVNode)(2,t.Button,{icon:"pen",content:v,onClick:function(){function I(){return u("network")}return I}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Prefabrication",children:f?"TRUE":"FALSE"}),C?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Shadow Link",children:"Active."}):null,B?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Multitool Buffer",children:[L?(0,e.createFragment)([L.name,(0,e.createTextVNode)(" ("),L.id,(0,e.createTextVNode)(")")],0):null,(0,e.createComponentVNode)(2,t.Button,{color:L?"green":null,content:L?"Link ("+L.id+")":"Add Machine",icon:L?"link":"plus",onClick:L?function(){return u("link")}:function(){return u("buffer")}}),L?(0,e.createComponentVNode)(2,t.Button,{color:"red",content:"Flush",icon:"trash",onClick:function(){function I(){return u("flush")}return I}()}):null]}):null]}),(0,e.createComponentVNode)(2,t.Section,{title:"Linked network Entities",mt:1,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:g.map(function(I){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:I.ref+" "+I.name+" ("+I.id+")",buttons:(0,e.createComponentVNode)(2,t.Button.Confirm,{color:"red",icon:"trash",onClick:function(){function w(){return u("unlink",{unlink:I.index})}return w}()})},I.ref)})})}),(0,e.createComponentVNode)(2,t.Section,{title:"Filtering Frequencies",mt:1,children:[y.map(function(I){return(0,e.createComponentVNode)(2,t.Button.Confirm,{content:I.name+" GHz",confirmContent:"Delete?",confirmColor:"red",confirmIcon:"trash",onClick:function(){function w(){return u("delete",{delete:I.freq})}return w}()},I.index)}),!y||y.length===0?(0,e.createComponentVNode)(2,t.Box,{color:"label",children:"No filters."}):null]})]})},S=function(h,s){var l=(0,a.useBackend)(s),u=l.act,i=l.data,c=h.options,d=c.use_listening_level,p=c.use_broadcasting,v=c.use_receiving,f=c.listening_level,C=c.broadcasting,b=c.receiving,g=c.use_change_freq,y=c.change_freq,B=c.use_broadcast_range,L=c.use_receive_range,I=c.range,w=c.minRange,T=c.maxRange;return!d&&!p&&!v&&!g&&!B&&!L?(0,e.createComponentVNode)(2,t.Section,{title:"No Options Found"}):(0,e.createComponentVNode)(2,t.Section,{title:"Options",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[d?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Signal Locked to Station",children:(0,e.createComponentVNode)(2,t.Button,{icon:f?"lock-closed":"lock-open",content:f?"Yes":"No",onClick:function(){function M(){return u("change_listening")}return M}()})}):null,p?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Broadcasting",children:(0,e.createComponentVNode)(2,t.Button,{icon:"power-off",selected:C,content:C?"Yes":"No",onClick:function(){function M(){return u("broadcast")}return M}()})}):null,v?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Receving",children:(0,e.createComponentVNode)(2,t.Button,{icon:"power-off",selected:b,content:b?"Yes":"No",onClick:function(){function M(){return u("receive")}return M}()})}):null,g?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Change Signal Frequency",children:(0,e.createComponentVNode)(2,t.Button,{icon:"wave-square",selected:!!y,content:y?"Yes ("+y+")":"No",onClick:function(){function M(){return u("change_freq")}return M}()})}):null,B||L?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:(B?"Broadcast":"Receive")+" Range",children:(0,e.createComponentVNode)(2,t.NumberInput,{value:I,minValue:w,maxValue:T,unit:"gigameters",stepPixelSize:4,format:function(){function M(A){return A+1}return M}(),onDrag:function(){function M(A,R){return u("range",{range:R})}return M}()})}):null]})})}},73616:function(x,r,n){"use strict";r.__esModule=!0,r.Teleporter=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=r.Teleporter=function(){function V(k,S){var N=(0,a.useBackend)(S),h=N.act,s=N.data,l=s.locked_name,u=s.station_connected,i=s.hub_connected,c=s.calibrated,d=s.teleporter_on;return(0,e.createComponentVNode)(2,o.Window,{width:300,height:200,resizable:!0,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Target",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"bullseye",onClick:function(){function p(){return h("select_target")}return p}(),content:l})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Calibrated",children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:c,color:c?"good":"bad",onClick:function(){function p(){return h("test_fire")}return p}(),content:c?"Accurate":"Test Fire"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Teleporter",children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:d,color:d?"good":"bad",onClick:function(){function p(){return h("toggle_on")}return p}(),content:d?"Online":"OFFLINE"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Station",children:u?"Connected":"Not Connected"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Hub",children:i?"Connected":"Not Connected"})]})})})})}return V}()},60726:function(x,r,n){"use strict";r.__esModule=!0,r.TelesciConsoleContent=r.TelesciConsole=void 0;var e=n(58734),a=n(45445),t=n(62188),o=n(11790),m=n(11477),V=r.TelesciConsole=function(){function N(h,s){var l=(0,t.useBackend)(s),u=l.act,i=l.data,c=i.noTelepad;return(0,e.createComponentVNode)(2,m.Window,{width:400,height:450,resizable:!0,children:(0,e.createComponentVNode)(2,m.Window.Content,{scrollable:!0,children:c&&(0,e.createComponentVNode)(2,k)||(0,e.createComponentVNode)(2,S)})})}return N}(),k=function(h,s){return(0,e.createComponentVNode)(2,o.Section,{title:"Error",color:"bad",children:["No telepad located.",(0,e.createVNode)(1,"br"),"Please add telepad data."]})},S=r.TelesciConsoleContent=function(){function N(h,s){var l=(0,t.useBackend)(s),u=l.act,i=l.data,c=i.insertedGps,d=i.rotation,p=i.currentZ,v=i.cooldown,f=i.crystalCount,C=i.maxCrystals,b=i.maxPossibleDistance,g=i.maxAllowedDistance,y=i.distance,B=i.tempMsg,L=i.sectorOptions,I=i.lastTeleData;return(0,e.createComponentVNode)(2,o.Section,{title:"Telepad Controls",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"eject",disabled:!c,onClick:function(){function w(){return u("ejectGPS")}return w}(),content:"Eject GPS"}),children:[(0,e.createComponentVNode)(2,o.NoticeBox,{info:!0,children:v&&(0,e.createComponentVNode)(2,o.Box,{children:["Telepad is recharging. Please wait"," ",(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:v})," seconds."]})||(0,e.createComponentVNode)(2,o.Box,{children:B})}),(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Bearing",children:(0,e.createComponentVNode)(2,o.NumberInput,{fluid:!0,value:d,format:function(){function w(T){return T+"\xB0"}return w}(),step:1,minValue:-900,maxValue:900,onDrag:function(){function w(T,M){return u("setrotation",{val:M})}return w}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Distance",children:(0,e.createComponentVNode)(2,o.NumberInput,{fluid:!0,value:y,format:function(){function w(T){return T+"/"+g+" m"}return w}(),minValue:0,maxValue:g,step:1,stepPixelSize:4,onDrag:function(){function w(T,M){return u("setdistance",{val:M})}return w}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Sector",children:(0,a.sortBy)(function(w){return Number(w)})(L).map(function(w){return(0,e.createComponentVNode)(2,o.Button,{icon:"check-circle",content:w,selected:p===w,onClick:function(){function T(){return u("setz",{setz:w})}return T}()},w)})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Controls",children:[(0,e.createComponentVNode)(2,o.Button,{icon:"share",iconRotation:-90,onClick:function(){function w(){return u("send")}return w}(),content:"Send"}),(0,e.createComponentVNode)(2,o.Button,{icon:"share",iconRotation:90,onClick:function(){function w(){return u("receive")}return w}(),content:"Receive"}),(0,e.createComponentVNode)(2,o.Button,{icon:"sync",iconRotation:90,onClick:function(){function w(){return u("recal")}return w}(),content:"Recalibrate"})]})]}),I&&(0,e.createComponentVNode)(2,o.Section,{mt:1,children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Telepad Location",children:[I.src_x,", ",I.src_y]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Distance",children:[I.distance,"m"]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Transit Time",children:[I.time," secs"]})]})})||(0,e.createComponentVNode)(2,o.Section,{mt:1,children:"No teleport data found."}),(0,e.createComponentVNode)(2,o.Section,{children:["Crystals: ",f," / ",C]})]})}return N}()},8529:function(x,r,n){"use strict";r.__esModule=!0,r.sanitizeMultiline=r.removeAllSkiplines=r.TextInputModal=void 0;var e=n(58734),a=n(89226),t=n(57370),o=n(62188),m=n(42678),V=n(11790),k=n(11477),S=r.sanitizeMultiline=function(){function l(u){return u.replace(/(\n|\r\n){3,}/,"\n\n")}return l}(),N=r.removeAllSkiplines=function(){function l(u){return u.replace(/[\r\n]+/,"")}return l}(),h=r.TextInputModal=function(){function l(u,i){var c=(0,o.useBackend)(i),d=c.act,p=c.data,v=p.large_buttons,f=p.max_length,C=p.message,b=C===void 0?"":C,g=p.multiline,y=p.placeholder,B=p.timeout,L=p.title,I=(0,o.useLocalState)(i,"input",y||""),w=I[0],T=I[1],M=function(){function O(_){if(_!==w){var P=g?S(_):N(_);T(P)}}return O}(),A=g||w.length>=30,R=135+(b.length>30?Math.ceil(b.length/4):0)+(A?75:0)+(b.length&&v?5:0);return(0,e.createComponentVNode)(2,k.Window,{title:L,width:325,height:R,children:[B&&(0,e.createComponentVNode)(2,a.Loader,{value:B}),(0,e.createComponentVNode)(2,k.Window.Content,{onKeyDown:function(){function O(_){var P=window.event?_.which:_.keyCode;P===m.KEY_ENTER&&(!A||!_.shiftKey)&&d("submit",{entry:w}),P===m.KEY_ESCAPE&&d("cancel")}return O}(),children:(0,e.createComponentVNode)(2,V.Section,{fill:!0,children:(0,e.createComponentVNode)(2,V.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,V.Stack.Item,{children:(0,e.createComponentVNode)(2,V.Box,{color:"label",children:b})}),(0,e.createComponentVNode)(2,V.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,s,{input:w,onType:M})}),(0,e.createComponentVNode)(2,V.Stack.Item,{children:(0,e.createComponentVNode)(2,t.InputButtons,{input:w,message:w.length+"/"+f})})]})})})]})}return l}(),s=function(u,i){var c=(0,o.useBackend)(i),d=c.act,p=c.data,v=p.max_length,f=p.multiline,C=u.input,b=u.onType,g=f||C.length>=30;return(0,e.createComponentVNode)(2,V.TextArea,{autoFocus:!0,autoSelect:!0,height:f||C.length>=30?"100%":"1.8rem",maxLength:v,onEscape:function(){function y(){return d("cancel")}return y}(),onEnter:function(){function y(B){g&&B.shiftKey||(B.preventDefault(),d("submit",{entry:C}))}return y}(),onInput:function(){function y(B,L){return b(L)}return y}(),placeholder:"Type something...",value:C})}},70194:function(x,r,n){"use strict";r.__esModule=!0,r.TguiFeedback=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=r.TguiFeedback=function(){function V(k,S){var N=(0,a.useBackend)(S),h=N.act,s=N.data,l=s.open_windows,u=s.selected_window,i=(0,a.useLocalState)(S,"rating",""),c=i[0],d=i[1],p=(0,a.useLocalState)(S,"comment",""),v=p[0],f=p[1];return(0,e.createComponentVNode)(2,o.Window,{width:550,height:460,children:(0,e.createComponentVNode)(2,t.Flex,{children:[(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Open Windows",scrollable:!0,children:(0,e.createComponentVNode)(2,t.Tabs,{vertical:!0,children:l.map(function(C){return(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:C===u,onClick:function(){function b(){return h("pick_window",{win:C})}return b}(),children:(0,e.createComponentVNode)(2,t.Box,{inline:!0,children:C})},C)})})})}),(0,e.createComponentVNode)(2,t.Flex.Item,{children:[u&&(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{title:"Rating",children:["Please enter your rating of this window from a range from 1 to 5",(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Input,{onChange:function(){function C(b,g){return d(g)}return C}(),value:c})]}),(0,e.createComponentVNode)(2,t.Section,{title:"Optional Comment",children:["If you want, you can leave an optional comment as well!",(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.TextArea,{height:"18rem",onChange:function(){function C(b,g){return f(g)}return C}(),value:v})]}),(0,e.createComponentVNode)(2,t.Button,{content:"Submit",onClick:function(){function C(){return h("submit",{rating:c,comment:v})}return C}()})],4)," ",": ",(0,e.createFragment)([(0,e.createTextVNode)("Please select an open window on the left!")],4)]})]})})}return V}()},69344:function(x,r,n){"use strict";r.__esModule=!0,r.Ticket=void 0;var e=n(58734),a=n(42678),t=n(62188),o=n(11790),m=n(11477),V={0:"Adminhelp",1:"Mentorhelp",2:"GM Request"},k={0:"red",1:"green",2:"pink"},S={example:"Example"},N={open:"Open",resolved:"Resolved",closed:"Closed",unknown:"Unknown"},h=r.Ticket=function(){function s(l,u){var i=(0,t.useBackend)(u),c=i.act,d=i.data,p=(0,t.useLocalState)(u,"ticketChat",""),v=p[0],f=p[1],C=d.id,b=d.title,g=d.name,y=d.ticket_ref,B=d.state,L=d.level,I=d.handler,w=d.opened_at,T=d.closed_at,M=d.opened_at_date,A=d.closed_at_date,R=d.actions,O=d.log;return(0,e.createComponentVNode)(2,m.Window,{width:900,height:600,children:(0,e.createComponentVNode)(2,m.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,o.Section,{title:"Ticket #"+C,buttons:(0,e.createComponentVNode)(2,o.Box,{nowrap:!0,children:[(0,e.createComponentVNode)(2,o.Button,{icon:"pen",content:"Rename Ticket",onClick:function(){function _(){return c("retitle")}return _}()})," ",(0,e.createComponentVNode)(2,o.Button,{content:"Legacy UI",onClick:function(){function _(){return c("legacy")}return _}()})," ",(0,e.createComponentVNode)(2,o.Button,{content:V[L],color:k[L]})]}),children:[(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Ticket ID",children:["#",C,": ",(0,e.createVNode)(1,"div",null,null,1,{dangerouslySetInnerHTML:{__html:g}})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Type",children:V[L]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"State",children:N[B]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Assignee",children:I}),N[B]===N.open?(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Opened At",children:[M," (",Math.round(w/600*10)/10," ","minutes ago.)"]}):(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Closed At",children:[A," (",Math.round(T/600*10)/10," ","minutes ago.)"," ",(0,e.createComponentVNode)(2,o.Button,{content:"Reopen",onClick:function(){function _(){return c("reopen")}return _}()})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Actions",children:(0,e.createVNode)(1,"div",null,null,1,{dangerouslySetInnerHTML:{__html:R}})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Log"})]}),(0,e.createComponentVNode)(2,o.Divider),(0,e.createComponentVNode)(2,o.Flex,{direction:"column",children:[(0,e.createComponentVNode)(2,o.Flex.Item,{children:Object.keys(O).slice(0).map(function(_){return(0,e.createVNode)(1,"div",null,null,1,{dangerouslySetInnerHTML:{__html:O[_]}})})}),(0,e.createComponentVNode)(2,o.Divider),(0,e.createComponentVNode)(2,o.Flex.Item,{children:(0,e.createComponentVNode)(2,o.Flex,{children:[(0,e.createComponentVNode)(2,o.Flex.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Input,{autoFocus:!0,autoSelect:!0,fluid:!0,placeholder:"Enter a message...",value:v,onInput:function(){function _(P,D){return f(D)}return _}(),onKeyDown:function(){function _(P){var D=window.event?P.which:P.keyCode;D===a.KEY_ENTER&&(c("send_msg",{msg:v,ticket_ref:y}),f(""))}return _}()})}),(0,e.createComponentVNode)(2,o.Flex.Item,{children:(0,e.createComponentVNode)(2,o.Button,{content:"Send",onClick:function(){function _(){c("send_msg",{msg:v,ticket_ref:y}),f("")}return _}()})})]})})]})]})})})}return s}()},5903:function(x,r,n){"use strict";r.__esModule=!0,r.TicketChat=void 0;var e=n(58734),a=n(42678),t=n(62188),o=n(11790),m=n(11477),V={0:"Adminhelp",1:"Mentorhelp",2:"GM Request"},k={0:"red",1:"green",2:"pink"},S={example:"Example"},N={open:"Open",resolved:"Resolved",closed:"Closed",unknown:"Unknown"},h=r.TicketChat=function(){function s(l,u){var i=(0,t.useBackend)(u),c=i.act,d=i.data,p=(0,t.useLocalState)(u,"ticketChat",""),v=p[0],f=p[1],C=d.id,b=d.level,g=d.handler,y=d.log;return(0,e.createComponentVNode)(2,m.Window,{width:900,height:600,children:(0,e.createComponentVNode)(2,m.Window.Content,{children:(0,e.createComponentVNode)(2,o.Section,{title:"Ticket #"+C,buttons:(0,e.createComponentVNode)(2,o.Box,{nowrap:!0,children:(0,e.createComponentVNode)(2,o.Button,{content:V[b],color:k[b]})}),children:[(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Assignee",children:g}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Log"})]}),(0,e.createComponentVNode)(2,o.Divider),(0,e.createComponentVNode)(2,o.Flex,{direction:"column",children:[(0,e.createComponentVNode)(2,o.Flex.Item,{children:Object.keys(y).slice(0).map(function(B){return(0,e.createVNode)(1,"div",null,null,1,{dangerouslySetInnerHTML:{__html:y[B]}})})}),(0,e.createComponentVNode)(2,o.Divider),(0,e.createComponentVNode)(2,o.Flex.Item,{children:(0,e.createComponentVNode)(2,o.Flex,{children:[(0,e.createComponentVNode)(2,o.Flex.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Input,{autoFocus:!0,autoSelect:!0,fluid:!0,placeholder:"Enter a message...",value:v,onInput:function(){function B(L,I){return f(I)}return B}(),onKeyDown:function(){function B(L){var I=window.event?L.which:L.keyCode;I===a.KEY_ENTER&&(c("send_msg",{msg:v}),f(""))}return B}()})}),(0,e.createComponentVNode)(2,o.Flex.Item,{children:(0,e.createComponentVNode)(2,o.Button,{content:"Send",onClick:function(){function B(){c("send_msg",{msg:v}),f("")}return B}()})})]})})]})]})})})}return s}()},680:function(x,r,n){"use strict";r.__esModule=!0,r.TicketsPanel=void 0;var e=n(58734),a=n(42678),t=n(62188),o=n(11790),m=n(11477),V={0:"Admin",1:"Mentor",2:"All Levels"},k={0:"red",1:"green",2:"pink"},S={example:"Example"},N={open:"Open",resolved:"Resolved",closed:"Closed",unknown:"Unknown",all:"All States"},h={open:"white",resolved:"green",closed:"grey",unknown:"orange"},s=function(i,c,d){var p=[];return i.forEach(function(v){(v.state===c||c==="all")&&(v.level===d||d===2)&&p.push(v)}),p},l=r.TicketsPanel=function(){function u(i,c){var d=(0,t.useBackend)(c),p=d.act,v=d.data,f=v.tickets,C=v.selected_ticket,b=(0,t.useLocalState)(c,"stateFilter","open"),g=b[0],y=b[1],B=(0,t.useLocalState)(c,"levelFilter",2),L=B[0],I=B[1],w=(0,t.useLocalState)(c,"ticketChat",""),T=w[0],M=w[1],A=s(f,g,L);return(0,e.createComponentVNode)(2,m.Window,{width:900,height:600,children:(0,e.createComponentVNode)(2,m.Window.Content,{children:(0,e.createComponentVNode)(2,o.Flex,{children:[(0,e.createComponentVNode)(2,o.Flex.Item,{shrink:!0,children:[(0,e.createComponentVNode)(2,o.Section,{title:"Filter",children:[(0,e.createComponentVNode)(2,o.Dropdown,{width:"100%",maxHeight:"160px",options:Object.values(N),selected:N[g],onSelected:function(){function R(O){return y(Object.keys(N)[Object.values(N).indexOf(O)])}return R}()}),(0,e.createComponentVNode)(2,o.Divider),(0,e.createComponentVNode)(2,o.Dropdown,{width:"100%",maxHeight:"160px",options:Object.values(V),selected:V[L],onSelected:function(){function R(O){return I(Object.values(V).indexOf(O))}return R}()})]}),(0,e.createComponentVNode)(2,o.Section,{title:"Tickets",scrollable:!0,children:(0,e.createComponentVNode)(2,o.Tabs,{vertical:!0,children:[(0,e.createComponentVNode)(2,o.Tabs.Tab,{onClick:function(){function R(){return p("new_ticket")}return R}(),children:["New Ticket",(0,e.createComponentVNode)(2,o.Icon,{name:"plus",ml:.5})]}),(0,e.createComponentVNode)(2,o.Divider),A.map(function(R){return(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:R.id===(C==null?void 0:C.id),onClick:function(){function O(){return p("pick_ticket",{ticket_id:R.id})}return O}(),children:(0,e.createComponentVNode)(2,o.Box,{inline:!0,children:[(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,o.Button,{content:V[R.level],color:k[R.level]})," ",R.name]}),(0,e.createComponentVNode)(2,o.Box,{fontSize:.9,textColor:h[R.state],children:["State: ",N[R.state]," | Assignee:"," ",R.handler]})]})},R.id)})]})})]}),(0,e.createComponentVNode)(2,o.Flex.Item,{grow:!0,children:C&&(0,e.createComponentVNode)(2,o.Section,{title:"Ticket #"+C.id,buttons:(0,e.createComponentVNode)(2,o.Box,{nowrap:!0,children:[(0,e.createComponentVNode)(2,o.Button,{icon:"arrow-up",content:"Undock",onClick:function(){function R(){return p("undock_ticket")}return R}()})," ",(0,e.createComponentVNode)(2,o.Button,{icon:"pen",content:"Rename Ticket",onClick:function(){function R(){return p("retitle_ticket")}return R}()})," ",(0,e.createComponentVNode)(2,o.Button,{content:"Legacy UI",onClick:function(){function R(){return p("legacy")}return R}()})," ",(0,e.createComponentVNode)(2,o.Button,{content:V[C.level],color:k[C.level]})]}),children:[(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Ticket ID",children:["#",C.id,":"," ",(0,e.createVNode)(1,"div",null,null,1,{dangerouslySetInnerHTML:{__html:C.name}})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Type",children:V[C.level]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"State",children:N[C.state]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Assignee",children:C.handler}),N[C.state]===N.open?(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Opened At",children:[C.opened_at_date," (",Math.round(C.opened_at/600*10)/10," ","minutes ago.)"]}):(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Closed At",children:[C.closed_at_date," (",Math.round(C.closed_at/600*10)/10," ","minutes ago.)"," ",(0,e.createComponentVNode)(2,o.Button,{content:"Reopen",onClick:function(){function R(){return p("reopen_ticket")}return R}()})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Actions",children:(0,e.createVNode)(1,"div",null,null,1,{dangerouslySetInnerHTML:{__html:C.actions}})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Log"})]}),(0,e.createComponentVNode)(2,o.Divider),(0,e.createComponentVNode)(2,o.Flex,{direction:"column",children:[(0,e.createComponentVNode)(2,o.Flex.Item,{maxWidth:"500px",children:Object.keys(C.log).slice(0).map(function(R){return(0,e.createVNode)(1,"div",null,null,1,{dangerouslySetInnerHTML:{__html:C.log[R]}})})}),(0,e.createComponentVNode)(2,o.Divider),(0,e.createComponentVNode)(2,o.Flex.Item,{children:(0,e.createComponentVNode)(2,o.Flex,{children:[(0,e.createComponentVNode)(2,o.Flex.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Input,{autoFocus:!0,autoSelect:!0,fluid:!0,placeholder:"Enter a message...",value:T,onInput:function(){function R(O,_){return M(_)}return R}(),onKeyDown:function(){function R(O){var _=window.event?O.which:O.keyCode;_===a.KEY_ENTER&&(p("send_msg",{msg:T}),M(""))}return R}()})}),(0,e.createComponentVNode)(2,o.Flex.Item,{children:(0,e.createComponentVNode)(2,o.Button,{content:"Send",onClick:function(){function R(){p("send_msg",{msg:T}),M("")}return R}()})})]})})]})]})||(0,e.createComponentVNode)(2,o.Section,{title:"No ticket selected",buttons:(0,e.createComponentVNode)(2,o.Box,{nowrap:!0,children:[(0,e.createComponentVNode)(2,o.Button,{disabled:!0,icon:"arrow-up",content:"Undock",onClick:function(){function R(){return p("undock_ticket")}return R}()})," ",(0,e.createComponentVNode)(2,o.Button,{disabled:!0,icon:"pen",content:"Rename Ticket",onClick:function(){function R(){return p("retitle_ticket")}return R}()})," ",(0,e.createComponentVNode)(2,o.Button,{content:"Legacy UI",onClick:function(){function R(){return p("legacy")}return R}()})]}),children:"Please select a ticket on the left to view its details."})})]})})})}return u}()},45336:function(x,r,n){"use strict";r.__esModule=!0,r.TimeClock=void 0;var e=n(58734),a=n(5339),t=n(62188),o=n(11790),m=n(11477),V=n(70237),k=r.TimeClock=function(){function S(N,h){var s=(0,t.useBackend)(h),l=s.act,u=s.data,i=u.department_hours,c=u.user_name,d=u.card,p=u.assignment,v=u.job_datum,f=u.allow_change_job,C=u.job_choices;return(0,e.createComponentVNode)(2,m.Window,{width:500,height:520,resizable:!0,children:(0,e.createComponentVNode)(2,m.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,o.Section,{title:"OOC",children:[(0,e.createComponentVNode)(2,o.NoticeBox,{children:"OOC Note: PTO acquired is account-wide and shared across all characters. Info listed below is not IC information."}),(0,e.createComponentVNode)(2,o.Section,{level:2,title:"Time Off Balance for "+c,children:(0,e.createComponentVNode)(2,o.LabeledList,{children:Object.keys(i).map(function(b){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:b,color:i[b]>6?"good":i[b]>1?"average":"bad",children:[(0,a.toFixed)(i[b],1)," ",i[b]===1?"hour":"hours"]},b)})})})]}),(0,e.createComponentVNode)(2,o.Section,{title:"Employee Info",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Employee ID",children:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,icon:"user",onClick:function(){function b(){return l("id")}return b}(),children:d||"Insert ID"})}),!!v&&(0,e.createFragment)([(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Rank",children:(0,e.createComponentVNode)(2,o.Box,{backgroundColor:v.selection_color,p:.8,children:(0,e.createComponentVNode)(2,o.Flex,{justify:"space-between",align:"center",children:[(0,e.createComponentVNode)(2,o.Flex.Item,{children:(0,e.createComponentVNode)(2,o.Box,{ml:1,children:(0,e.createComponentVNode)(2,V.RankIcon,{color:"white",rank:v.title})})}),(0,e.createComponentVNode)(2,o.Flex.Item,{children:(0,e.createComponentVNode)(2,o.Box,{fontSize:1.5,inline:!0,mr:1,children:v.title})})]})})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Departments",children:v.departments}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Pay Scale",children:v.economic_modifier}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"PTO Elegibility",children:v.timeoff_factor>0&&(0,e.createComponentVNode)(2,o.Box,{children:["Earns PTO - ",v.pto_department]})||v.timeoff_factor<0&&(0,e.createComponentVNode)(2,o.Box,{children:["Requires PTO - ",v.pto_department]})||(0,e.createComponentVNode)(2,o.Box,{children:"Neutral"})})],4)]})}),!!(f&&v&&v.timeoff_factor!==0&&p!=="Dismissed")&&(0,e.createComponentVNode)(2,o.Section,{title:"Employment Actions",children:v.timeoff_factor>0&&(i[v.pto_department]>0&&(0,e.createComponentVNode)(2,o.Button,{fluid:!0,icon:"exclamation-triangle",onClick:function(){function b(){return l("switch-to-offduty")}return b}(),children:"Go Off-Duty"})||(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"Warning: You do not have enough accrued time off to go off-duty."}))||Object.keys(C).length&&Object.keys(C).map(function(b){var g=C[b];return g.map(function(y){return(0,e.createComponentVNode)(2,o.Button,{icon:"suitcase",onClick:function(){function B(){return l("switch-to-onduty-rank",{"switch-to-onduty-rank":b,"switch-to-onduty-assignment":y})}return B}(),children:y},y)})})||(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"No Open Positions - See Head Of Personnel"})})]})})}return S}()},59799:function(x,r,n){"use strict";r.__esModule=!0,r.TraitTutorial=r.TraitSelection=r.TraitDescription=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=r.TraitTutorial=function(){function S(N,h){var s=(0,a.useBackend)(h),l=s.act,u=s.data;return(0,e.createComponentVNode)(2,o.Window,{width:804,height:426,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Guide to Custom Traits",children:(0,e.createComponentVNode)(2,V)})})})}return S}(),V=r.TraitSelection=function(){function S(N,h){var s=(0,a.useBackend)(h),l=s.act,u=s.data,i=u.names,c=u.selection;return(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{shrink:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Trait Selection",children:(0,e.createComponentVNode)(2,t.Tabs,{vertical:!0,children:i.map(function(d){return(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:d===c,onClick:function(){function p(){return l("select_trait",{name:d})}return p}(),children:(0,e.createComponentVNode)(2,t.Box,{inline:!0,children:d})},d)})})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:8,children:c&&(0,e.createComponentVNode)(2,t.Section,{title:c,children:(0,e.createComponentVNode)(2,k,{name:c})})})]})}return S}(),k=r.TraitDescription=function(){function S(N,h){var s=(0,a.useBackend)(h),l=s.act,u=s.data,i=N.name,c=u.descriptions,d=u.categories,p=u.tutorials;return(0,e.createComponentVNode)(2,t.Section,{StackWrap:!0,children:[(0,e.createVNode)(1,"b",null,"Name:",16)," ",i,(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"b",null,"Category:",16)," ",d[i],(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"b",null,"Description:",16)," ",c[i],(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"b",null,"Details & How to Use:",16),(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"div",null,null,1,{dangerouslySetInnerHTML:{__html:p[i]}})]})}return S}()},18871:function(x,r,n){"use strict";r.__esModule=!0,r.TransferValve=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=r.TransferValve=function(){function V(k,S){var N=(0,a.useBackend)(S),h=N.act,s=N.data,l=s.tank_one,u=s.tank_two,i=s.attached_device,c=s.valve;return(0,e.createComponentVNode)(2,o.Window,{children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Valve Status",children:(0,e.createComponentVNode)(2,t.Button,{icon:c?"unlock":"lock",content:c?"Open":"Closed",disabled:!l||!u,onClick:function(){function d(){return h("toggle")}return d}()})})})}),(0,e.createComponentVNode)(2,t.Section,{title:"Assembly",buttons:(0,e.createComponentVNode)(2,t.Button,{textAlign:"center",width:"150px",icon:"cog",content:"Configure Assembly",disabled:!i,onClick:function(){function d(){return h("device")}return d}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:i?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Attachment",children:(0,e.createComponentVNode)(2,t.Button,{icon:"eject",content:i,disabled:!i,onClick:function(){function d(){return h("remove_device")}return d}()})}):(0,e.createComponentVNode)(2,t.NoticeBox,{textAlign:"center",children:"Attach Assembly"})})}),(0,e.createComponentVNode)(2,t.Section,{title:"Attachment One",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:l?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Attachment",children:(0,e.createComponentVNode)(2,t.Button,{icon:"eject",content:l,disabled:!l,onClick:function(){function d(){return h("tankone")}return d}()})}):(0,e.createComponentVNode)(2,t.NoticeBox,{textAlign:"center",children:"Attach Tank"})})}),(0,e.createComponentVNode)(2,t.Section,{title:"Attachment Two",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:u?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Attachment",children:(0,e.createComponentVNode)(2,t.Button,{icon:"eject",content:u,disabled:!u,onClick:function(){function d(){return h("tanktwo")}return d}()})}):(0,e.createComponentVNode)(2,t.NoticeBox,{textAlign:"center",children:"Attach Tank"})})})]})})}return V}()},57427:function(x,r,n){"use strict";r.__esModule=!0,r.TurbineControl=void 0;var e=n(58734),a=n(43820),t=n(62188),o=n(11790),m=n(11477),V=r.TurbineControl=function(){function k(S,N){var h=(0,t.useBackend)(N),s=h.act,l=h.data,u=l.connected,i=l.compressor_broke,c=l.turbine_broke,d=l.broken,p=l.door_status,v=l.online,f=l.power,C=l.rpm,b=l.temp;return(0,e.createComponentVNode)(2,m.Window,{width:520,height:440,resizable:!0,children:(0,e.createComponentVNode)(2,m.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,o.Section,{title:"Turbine Controller",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Status",children:d&&(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:["Setup is broken",(0,e.createComponentVNode)(2,o.Button,{icon:"sync",onClick:function(){function g(){return s("reconnect")}return g}(),content:"Reconnect"})]})||(0,e.createComponentVNode)(2,o.Box,{color:v?"good":"bad",children:v&&!i&&!c?"Online":"Offline"})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Compressor",children:i&&(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"Compressor is inoperable."})||c&&(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"Turbine is inoperable."})||(0,e.createComponentVNode)(2,o.Box,{children:(0,e.createComponentVNode)(2,o.Button.Checkbox,{checked:v,content:"Compressor Power",onClick:function(){function g(){return s(v?"power-off":"power-on")}return g}()})})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Vent Doors",children:(0,e.createComponentVNode)(2,o.Button.Checkbox,{checked:p,onClick:function(){function g(){return s("doors")}return g}(),content:p?"Closed":"Open"})})]})}),(0,e.createComponentVNode)(2,o.Section,{title:"Status",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Turbine Speed",children:[d?"--":(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:C})," RPM"]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Internal Temperature",children:[d?"--":(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:b})," K"]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Generated Power",children:d?"--":(0,e.createComponentVNode)(2,o.AnimatedNumber,{format:function(){function g(y){return(0,a.formatPower)(y)}return g}(),value:Number(f)})})]})})]})})}return k}()},68710:function(x,r,n){"use strict";r.__esModule=!0,r.Turbolift=void 0;var e=n(58734),a=n(62188),t=n(11790),o=n(11477),m=r.Turbolift=function(){function V(k,S){var N=(0,a.useBackend)(S),h=N.act,s=N.data,l=s.floors,u=s.doors_open,i=s.fire_mode;return(0,e.createComponentVNode)(2,o.Window,{width:480,height:260+i*25,resizable:!0,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Floor Selection",className:i?"Section--elevator--fire":null,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{icon:u?"door-open":"door-closed",content:u?i?"Close Doors (SAFETY OFF)":"Doors Open":"Doors Closed",selected:u&&!i,color:i?"red":null,onClick:function(){function c(){return h("toggle_doors")}return c}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"exclamation-triangle",color:"bad",content:"Emergency Stop",onClick:function(){function c(){return h("emergency_stop")}return c}()})],4),children:[!i||(0,e.createComponentVNode)(2,t.Section,{className:"Section--elevator--fire",textAlign:"center",title:"FIREFIGHTER MODE ENGAGED"}),(0,e.createComponentVNode)(2,t.Flex,{wrap:"wrap",children:l.map(function(c){return(0,e.createComponentVNode)(2,t.Flex.Item,{basis:"100%",children:(0,e.createComponentVNode)(2,t.Flex,{align:"center",justify:"space-around",children:[(0,e.createComponentVNode)(2,t.Flex.Item,{basis:"22%",textAlign:"right",mr:"3px",children:c.label||"Floor #"+c.id}),(0,e.createComponentVNode)(2,t.Flex.Item,{basis:"8%",textAlign:"left",children:(0,e.createComponentVNode)(2,t.Button,{icon:"circle",color:c.current?"red":c.target?"green":c.queued?"yellow":null,onClick:function(){function d(){return h("move_to_floor",{ref:c.ref})}return d}()})}),(0,e.createComponentVNode)(2,t.Flex.Item,{basis:"50%",grow:1,children:c.name})]})},c.id)})})]})})})}return V}()},3790:function(x,r,n){"use strict";r.__esModule=!0,r.Uplink=r.GenericUplink=void 0;var e=n(58734),a=n(40946),t=n(62188),o=n(11790),m=n(43820),V=n(11477),k=25,S=r.Uplink=function(){function u(i,c){var d=(0,t.useBackend)(c),p=d.data,v=(0,t.useLocalState)(c,"screen",0),f=v[0],C=v[1],b=p.telecrystals;return(0,e.createComponentVNode)(2,V.Window,{width:620,height:580,theme:"syndicate",resizable:!0,children:(0,e.createComponentVNode)(2,V.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,N,{screen:f,setScreen:C}),f===0&&(0,e.createComponentVNode)(2,s,{currencyAmount:b,currencySymbol:"TC"})||f===1&&(0,e.createComponentVNode)(2,h)||(0,e.createComponentVNode)(2,o.Section,{color:"bad",children:"Error"})]})})}return u}(),N=function(i,c){var d=(0,t.useBackend)(c),p=d.act,v=d.data,f=i.screen,C=i.setScreen,b=v.discount_name,g=v.discount_amount,y=v.offer_expiry;return(0,e.createComponentVNode)(2,o.Section,{children:[(0,e.createComponentVNode)(2,o.Tabs,{style:{"border-bottom":"none","margin-bottom":"0"},children:[(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:f===0,onClick:function(){function B(){return C(0)}return B}(),children:"Request Items"}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:f===1,onClick:function(){function B(){return C(1)}return B}(),children:"Exploitable Information"})]}),(0,e.createComponentVNode)(2,o.Section,{title:"Item Discount",level:2,children:g<100&&(0,e.createComponentVNode)(2,o.Box,{children:[b," - ",g,"% off. Offer expires at:"," ",y]})||(0,e.createComponentVNode)(2,o.Box,{children:"No items currently discounted."})})]})},h=function(i,c){var d=(0,t.useBackend)(c),p=d.act,v=d.data,f=v.exploit,C=v.locked_records;return(0,e.createComponentVNode)(2,o.Section,{title:"Exploitable Information",buttons:f&&(0,e.createComponentVNode)(2,o.Button,{icon:"undo",content:"Back",onClick:function(){function b(){return p("view_exploits",{id:0})}return b}()}),children:f&&(0,e.createComponentVNode)(2,o.Box,{children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Name",children:f.name}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Sex",children:f.sex}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Species",children:f.species}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Age",children:f.age}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Rank",children:f.rank}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Home System",children:f.home_system}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Birthplace",children:f.birthplace}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Citizenship",children:f.citizenship}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Faction",children:f.faction}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Religion",children:f.religion}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Fingerprint",children:f.fingerprint}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Other Affiliations",children:f.antagfaction}),(0,e.createComponentVNode)(2,o.LabeledList.Divider),(0,e.createComponentVNode)(2,o.LabeledList.Item,{children:"Acquired Information"}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Notes",children:f.nanoui_exploit_record.split("
").map(function(b){return(0,e.createComponentVNode)(2,o.Box,{children:b},b)})})]})})||C.map(function(b){return(0,e.createComponentVNode)(2,o.Button,{icon:"eye",fluid:!0,content:b.name,onClick:function(){function g(){return p("view_exploits",{id:b.id})}return g}()},b.id)})})},s=r.GenericUplink=function(){function u(i,c){var d,p,v=i.currencyAmount,f=v===void 0?0:v,C=i.currencySymbol,b=C===void 0?"\u20AE":C,g=(0,t.useBackend)(c),y=g.act,B=g.data,L=B.compactMode,I=B.lockable,w=B.categories,T=w===void 0?[]:w,M=(0,t.useLocalState)(c,"searchText",""),A=M[0],R=M[1],O=(0,t.useLocalState)(c,"category",(d=T[0])==null?void 0:d.name),_=O[0],P=O[1],D=(0,a.createSearch)(A,function(U){return U.name+U.desc}),z=A.length>0&&T.flatMap(function(U){return U.items||[]}).filter(D).filter(function(U,W){return W0?"good":"bad",children:[(0,m.formatMoney)(f)," ",b]}),buttons:(0,e.createFragment)([(0,e.createTextVNode)("Search"),(0,e.createComponentVNode)(2,o.Input,{autoFocus:!0,value:A,onInput:function(){function U(W,K){return R(K)}return U}(),mx:1}),(0,e.createComponentVNode)(2,o.Button,{icon:L?"list":"info",content:L?"Compact":"Detailed",onClick:function(){function U(){return y("compact_toggle")}return U}()}),!!I&&(0,e.createComponentVNode)(2,o.Button,{icon:"lock",content:"Lock",onClick:function(){function U(){return y("lock")}return U}()})],0),children:(0,e.createComponentVNode)(2,o.Flex,{children:[A.length===0&&(0,e.createComponentVNode)(2,o.Flex.Item,{children:(0,e.createComponentVNode)(2,o.Tabs,{vertical:!0,children:T.map(function(U){var W;return(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:U.name===_,onClick:function(){function K(){return P(U.name)}return K}(),children:[U.name," (",((W=U.items)==null?void 0:W.length)||0,")"]},U.name)})})}),(0,e.createComponentVNode)(2,o.Flex.Item,{grow:1,basis:0,children:[z.length===0&&(0,e.createComponentVNode)(2,o.NoticeBox,{children:A.length===0?"No items in this category.":"No results found."}),(0,e.createComponentVNode)(2,l,{compactMode:A.length>0||L,currencyAmount:f,currencySymbol:b,items:z})]})]})})}return u}(),l=function(i,c){var d=i.compactMode,p=i.currencyAmount,v=i.currencySymbol,f=(0,t.useBackend)(c),C=f.act,b=(0,t.useLocalState)(c,"hoveredItem",{}),g=b[0],y=b[1],B=g&&g.cost||0,L=i.items.map(function(I){var w=g&&g.name!==I.name,T=p-B =0)&&(O[P]=A[P]);return O}var N=[null,"average","bad"],h={Hold:null,Digest:"red",Absorb:"purple",Unabsorb:"purple",Drain:"orange",Selective:"orange",Shrink:"teal",Grow:"teal","Size Steal":"teal",Heal:"green","Encase In Egg":"blue"},s={Hold:"being held.",Digest:"being digested.",Absorb:"being absorbed.",Unabsorb:"being unabsorbed.",Drain:"being drained.",Selective:"being processed.",Shrink:"being shrunken.",Grow:"being grown.","Size Steal":"having your size stolen.",Heal:"being healed.","Encase In Egg":"being encased in an egg."},l=r.VorePanel=function(){function A(R,O){var _=(0,t.useBackend)(O),P=_.act,D=_.data,z=(0,t.useLocalState)(O,"panelTabIndex",0),U=z[0],W=z[1],K=[];return K[0]=(0,e.createComponentVNode)(2,i),K[1]=(0,e.createComponentVNode)(2,I),(0,e.createComponentVNode)(2,m.Window,{width:890,height:660,theme:"abstract",resizable:!0,children:(0,e.createComponentVNode)(2,m.Window.Content,{scrollable:!0,children:[D.unsaved_changes&&(0,e.createComponentVNode)(2,o.NoticeBox,{danger:!0,children:(0,e.createComponentVNode)(2,o.Flex,{children:[(0,e.createComponentVNode)(2,o.Flex.Item,{basis:"90%",children:"Warning: Unsaved Changes!"}),(0,e.createComponentVNode)(2,o.Flex.Item,{children:(0,e.createComponentVNode)(2,o.Button,{content:"Save Prefs",icon:"save",onClick:function(){function H(){return P("saveprefs")}return H}()})}),(0,e.createComponentVNode)(2,o.Flex.Item,{children:(0,e.createComponentVNode)(2,o.Button,{content:"Save Prefs & Export Selected Belly",icon:"download",onClick:function(){function H(){P("saveprefs"),P("exportpanel")}return H}()})})]})})||null,(0,e.createComponentVNode)(2,u),(0,e.createComponentVNode)(2,o.Tabs,{children:[(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:U===0,onClick:function(){function H(){return W(0)}return H}(),children:["Bellies",(0,e.createComponentVNode)(2,o.Icon,{name:"list",ml:.5})]}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:U===1,onClick:function(){function H(){return W(1)}return H}(),children:["Preferences",(0,e.createComponentVNode)(2,o.Icon,{name:"user-cog",ml:.5})]})]}),K[U]||"Error"]})})}return A}(),u=function(R,O){var _=(0,t.useBackend)(O),P=_.act,D=_.data,z=D.inside,U=z.absorbed,W=z.belly_name,K=z.belly_mode,H=z.desc,Y=z.pred,J=z.contents,q=z.ref;return W?(0,e.createComponentVNode)(2,o.Section,{title:"Inside",children:[(0,e.createComponentVNode)(2,o.Box,{color:"green",inline:!0,children:["You are currently ",U?"absorbed into":"inside"]}),"\xA0",(0,e.createComponentVNode)(2,o.Box,{color:"yellow",inline:!0,children:[Y,"'s"]}),"\xA0",(0,e.createComponentVNode)(2,o.Box,{color:"red",inline:!0,children:W}),"\xA0",(0,e.createComponentVNode)(2,o.Box,{color:"yellow",inline:!0,children:"and you are"}),"\xA0",(0,e.createComponentVNode)(2,o.Box,{color:h[K],inline:!0,children:s[K]}),"\xA0",(0,e.createComponentVNode)(2,o.Box,{color:"label",children:H}),J.length&&(0,e.createComponentVNode)(2,o.Collapsible,{title:"Belly Contents",children:(0,e.createComponentVNode)(2,y,{contents:J,belly:q})})||"There is nothing else around you."]}):(0,e.createComponentVNode)(2,o.Section,{title:"Inside",children:"You aren't inside anyone."})},i=function(R,O){var _=(0,t.useBackend)(O),P=_.act,D=_.data,z=D.our_bellies,U=D.selected;return(0,e.createComponentVNode)(2,o.Flex,{children:[(0,e.createComponentVNode)(2,o.Flex.Item,{shrink:!0,children:(0,e.createComponentVNode)(2,o.Section,{title:"My Bellies",scollable:!0,children:(0,e.createComponentVNode)(2,o.Tabs,{vertical:!0,children:[(0,e.createComponentVNode)(2,o.Tabs.Tab,{onClick:function(){function W(){return P("newbelly")}return W}(),children:["New",(0,e.createComponentVNode)(2,o.Icon,{name:"plus",ml:.5})]}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{onClick:function(){function W(){return P("exportpanel")}return W}(),children:["Export",(0,e.createComponentVNode)(2,o.Icon,{name:"file-export",ml:.5})]}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{onClick:function(){function W(){return P("importpanel")}return W}(),children:["Import",(0,e.createComponentVNode)(2,o.Icon,{name:"file-import",ml:.5})]}),(0,e.createComponentVNode)(2,o.Divider),z.map(function(W){return(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:W.selected,textColor:h[W.digest_mode],onClick:function(){function K(){return P("bellypick",{bellypick:W.ref})}return K}(),children:(0,e.createComponentVNode)(2,o.Box,{inline:!0,textColor:W.selected&&h[W.digest_mode]||null,children:[W.name," (",W.contents,")"]})},W.name)})]})})}),(0,e.createComponentVNode)(2,o.Flex.Item,{grow:!0,children:U&&(0,e.createComponentVNode)(2,o.Section,{title:U.belly_name,children:(0,e.createComponentVNode)(2,c,{belly:U})})})]})},c=function(R,O){var _=(0,t.useBackend)(O),P=_.act,D=R.belly,z=D.contents,U=(0,t.useLocalState)(O,"bellyTabIndex",0),W=U[0],K=U[1],H=[];return H[0]=(0,e.createComponentVNode)(2,d,{belly:D}),H[1]=(0,e.createComponentVNode)(2,p,{belly:D}),H[2]=(0,e.createComponentVNode)(2,v,{belly:D}),H[3]=(0,e.createComponentVNode)(2,C,{belly:D}),H[4]=(0,e.createComponentVNode)(2,b,{belly:D}),H[5]=(0,e.createComponentVNode)(2,g,{belly:D}),H[6]=(0,e.createComponentVNode)(2,y,{outside:!0,contents:z}),H[7]=(0,e.createComponentVNode)(2,B,{belly:D}),H[8]=(0,e.createComponentVNode)(2,L,{belly:D}),(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Tabs,{children:[(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:W===0,onClick:function(){function Y(){return K(0)}return Y}(),children:"Controls"}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:W===1,onClick:function(){function Y(){return K(1)}return Y}(),children:"Descriptions"}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:W===2,onClick:function(){function Y(){return K(2)}return Y}(),children:"Options"}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:W===3,onClick:function(){function Y(){return K(3)}return Y}(),children:"Sounds"}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:W===4,onClick:function(){function Y(){return K(4)}return Y}(),children:"Visuals"}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:W===5,onClick:function(){function Y(){return K(5)}return Y}(),children:"Interactions"}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:W===6,onClick:function(){function Y(){return K(6)}return Y}(),children:["Contents (",z.length,")"]}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:W===7,onClick:function(){function Y(){return K(7)}return Y}(),children:"Liquid Options"}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:W===8,onClick:function(){function Y(){return K(8)}return Y}(),children:"Liquid Messages"})]}),H[W]||"Error"],0)},d=function(R,O){var _=(0,t.useBackend)(O),P=_.act,D=R.belly,z=D.belly_name,U=D.mode,W=D.item_mode,K=D.addons;return(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Name",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{icon:"arrow-up",tooltipPosition:"left",tooltip:"Move this belly tab up.",onClick:function(){function H(){return P("move_belly",{dir:-1})}return H}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"arrow-down",tooltipPosition:"left",tooltip:"Move this belly tab down.",onClick:function(){function H(){return P("move_belly",{dir:1})}return H}()})],4),children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function H(){return P("set_attribute",{attribute:"b_name"})}return H}(),content:z})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Mode",children:(0,e.createComponentVNode)(2,o.Button,{color:h[U],onClick:function(){function H(){return P("set_attribute",{attribute:"b_mode"})}return H}(),content:U})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Mode Addons",children:[K.length&&K.join(", ")||"None",(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function H(){return P("set_attribute",{attribute:"b_addons"})}return H}(),ml:1,icon:"plus"})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Item Mode",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function H(){return P("set_attribute",{attribute:"b_item_mode"})}return H}(),content:W})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{basis:"100%",mt:1,children:(0,e.createComponentVNode)(2,o.Button.Confirm,{fluid:!0,icon:"exclamation-triangle",confirmIcon:"trash",color:"red",content:"Delete Belly",confirmContent:"This is irreversable!",onClick:function(){function H(){return P("set_attribute",{attribute:"b_del"})}return H}()})})]})},p=function(R,O){var _=(0,t.useBackend)(O),P=_.act,D=R.belly,z=D.verb,U=D.release_verb,W=D.desc,K=D.absorbed_desc;return(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Description",buttons:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function H(){return P("set_attribute",{attribute:"b_desc"})}return H}(),icon:"pen"}),children:W}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Description (Absorbed)",buttons:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function H(){return P("set_attribute",{attribute:"b_absorbed_desc"})}return H}(),icon:"pen"}),children:K}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Vore Verb",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function H(){return P("set_attribute",{attribute:"b_verb"})}return H}(),content:z})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Release Verb",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function H(){return P("set_attribute",{attribute:"b_release_verb"})}return H}(),content:U})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Examine Messages",children:[(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function H(){return P("set_attribute",{attribute:"b_msgs",msgtype:"em"})}return H}(),content:"Examine Message (when full)"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function H(){return P("set_attribute",{attribute:"b_msgs",msgtype:"ema"})}return H}(),content:"Examine Message (with absorbed victims)"})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Struggle Messages",children:[(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function H(){return P("set_attribute",{attribute:"b_msgs",msgtype:"smo"})}return H}(),content:"Struggle Message (outside)"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function H(){return P("set_attribute",{attribute:"b_msgs",msgtype:"smi"})}return H}(),content:"Struggle Message (inside)"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function H(){return P("set_attribute",{attribute:"b_msgs",msgtype:"asmo"})}return H}(),content:"Absorbed Struggle Message (outside)"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function H(){return P("set_attribute",{attribute:"b_msgs",msgtype:"asmi"})}return H}(),content:"Absorbed Struggle Message (inside)"})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Escape Messages",children:[(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function H(){return P("set_attribute",{attribute:"b_msgs",msgtype:"escap"})}return H}(),content:"Escape Attempt Message (to prey)"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function H(){return P("set_attribute",{attribute:"b_msgs",msgtype:"escao"})}return H}(),content:"Escape Attempt Message (to you)"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function H(){return P("set_attribute",{attribute:"b_msgs",msgtype:"escp"})}return H}(),content:"Escape Message (to prey)"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function H(){return P("set_attribute",{attribute:"b_msgs",msgtype:"esco"})}return H}(),content:"Escape Message (to you)"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function H(){return P("set_attribute",{attribute:"b_msgs",msgtype:"escout"})}return H}(),content:"Escape Message (outside)"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function H(){return P("set_attribute",{attribute:"b_msgs",msgtype:"escip"})}return H}(),content:"Escape Item Message (to prey)"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function H(){return P("set_attribute",{attribute:"b_msgs",msgtype:"escio"})}return H}(),content:"Escape Item Message (to you)"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function H(){return P("set_attribute",{attribute:"b_msgs",msgtype:"esciout"})}return H}(),content:"Escape Item Message (outside)"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function H(){return P("set_attribute",{attribute:"b_msgs",msgtype:"escfp"})}return H}(),content:"Escape Fail Message (to prey)"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function H(){return P("set_attribute",{attribute:"b_msgs",msgtype:"escfo"})}return H}(),content:"Escape Fail Message (to you)"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function H(){return P("set_attribute",{attribute:"b_msgs",msgtype:"aescap"})}return H}(),content:"Absorbed Escape Attempt Message (to prey)"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function H(){return P("set_attribute",{attribute:"b_msgs",msgtype:"aescao"})}return H}(),content:"Absorbed Escape Attempt Message (to you)"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function H(){return P("set_attribute",{attribute:"b_msgs",msgtype:"aescp"})}return H}(),content:"Absorbed Escape Message (to prey)"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function H(){return P("set_attribute",{attribute:"b_msgs",msgtype:"aesco"})}return H}(),content:"Absorbed Escape Message (to you)"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function H(){return P("set_attribute",{attribute:"b_msgs",msgtype:"aescout"})}return H}(),content:"Absorbed Escape Message (outside)"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function H(){return P("set_attribute",{attribute:"b_msgs",msgtype:"aescfp"})}return H}(),content:"Absorbed Escape Fail Message (to prey)"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function H(){return P("set_attribute",{attribute:"b_msgs",msgtype:"aescfo"})}return H}(),content:"Absorbed Escape Fail Message (to you)"})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Transfer Messages",children:[(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function H(){return P("set_attribute",{attribute:"b_msgs",msgtype:"trnspp"})}return H}(),content:"Primary Transfer Message (to prey)"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function H(){return P("set_attribute",{attribute:"b_msgs",msgtype:"trnspo"})}return H}(),content:"Primary Transfer Message (to you)"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function H(){return P("set_attribute",{attribute:"b_msgs",msgtype:"trnssp"})}return H}(),content:"Secondary Transfer Message (to prey)"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function H(){return P("set_attribute",{attribute:"b_msgs",msgtype:"trnsso"})}return H}(),content:"Secondary Transfer Message (to you)"})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Interaction Chance Messages",children:[(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function H(){return P("set_attribute",{attribute:"b_msgs",msgtype:"stmodp"})}return H}(),content:"Interaction Chance Digest Message (to prey)"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function H(){return P("set_attribute",{attribute:"b_msgs",msgtype:"stmodo"})}return H}(),content:"Interaction Chance Digest Message (to you)"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function H(){return P("set_attribute",{attribute:"b_msgs",msgtype:"stmoap"})}return H}(),content:"Interaction Chance Absorb Message (to prey)"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function H(){return P("set_attribute",{attribute:"b_msgs",msgtype:"stmoao"})}return H}(),content:"Interaction Chance Absorb Message (to you)"})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Bellymode Messages",children:[(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function H(){return P("set_attribute",{attribute:"b_msgs",msgtype:"dmp"})}return H}(),content:"Digest Message (to prey)"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function H(){return P("set_attribute",{attribute:"b_msgs",msgtype:"dmo"})}return H}(),content:"Digest Message (to you)"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function H(){return P("set_attribute",{attribute:"b_msgs",msgtype:"amp"})}return H}(),content:"Absorb Message (to prey)"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function H(){return P("set_attribute",{attribute:"b_msgs",msgtype:"amo"})}return H}(),content:"Absorb Message (to you)"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function H(){return P("set_attribute",{attribute:"b_msgs",msgtype:"uamp"})}return H}(),content:"Unabsorb Message (to prey)"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function H(){return P("set_attribute",{attribute:"b_msgs",msgtype:"uamo"})}return H}(),content:"Unabsorb Message (to you)"})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Idle Messages",children:[(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function H(){return P("set_attribute",{attribute:"b_msgs",msgtype:"im_hold"})}return H}(),content:"Idle Messages (Hold)"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function H(){return P("set_attribute",{attribute:"b_msgs",msgtype:"im_holdabsorbed"})}return H}(),content:"Idle Messages (Hold Absorbed)"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function H(){return P("set_attribute",{attribute:"b_msgs",msgtype:"im_digest"})}return H}(),content:"Idle Messages (Digest)"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function H(){return P("set_attribute",{attribute:"b_msgs",msgtype:"im_absorb"})}return H}(),content:"Idle Messages (Absorb)"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function H(){return P("set_attribute",{attribute:"b_msgs",msgtype:"im_unabsorb"})}return H}(),content:"Idle Messages (Unabsorb)"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function H(){return P("set_attribute",{attribute:"b_msgs",msgtype:"im_drain"})}return H}(),content:"Idle Messages (Drain)"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function H(){return P("set_attribute",{attribute:"b_msgs",msgtype:"im_heal"})}return H}(),content:"Idle Messages (Heal)"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function H(){return P("set_attribute",{attribute:"b_msgs",msgtype:"im_steal"})}return H}(),content:"Idle Messages (Size Steal)"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function H(){return P("set_attribute",{attribute:"b_msgs",msgtype:"im_shrink"})}return H}(),content:"Idle Messages (Shrink)"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function H(){return P("set_attribute",{attribute:"b_msgs",msgtype:"im_grow"})}return H}(),content:"Idle Messages (Grow)"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function H(){return P("set_attribute",{attribute:"b_msgs",msgtype:"im_egg"})}return H}(),content:"Idle Messages (Encase In Egg)"})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Reset Messages",children:(0,e.createComponentVNode)(2,o.Button,{color:"red",onClick:function(){function H(){return P("set_attribute",{attribute:"b_msgs",msgtype:"reset"})}return H}(),content:"Reset Messages"})})]})},v=function(R,O){var _=(0,t.useBackend)(O),P=_.act,D=_.data,z=D.host_mobtype,U=z.is_cyborg,W=z.is_vore_simple_mob,K=R.belly,H=K.can_taste,Y=K.is_feedable,J=K.nutrition_percent,q=K.digest_brute,oe=K.digest_burn,ae=K.digest_oxy,le=K.digest_tox,he=K.digest_clone,me=K.bulge_size,Be=K.display_absorbed_examine,ce=K.shrink_grow_size,te=K.emote_time,ee=K.emote_active,ie=K.contaminates,Ce=K.contaminate_flavor,Se=K.contaminate_color,we=K.egg_type,pe=K.egg_name,E=K.recycling,Z=K.storing_nutrition,re=K.entrance_logs,X=K.item_digest_logs,ne=K.selective_preference,ve=K.save_digest_mode,Ve=K.eating_privacy_local,Ie=K.silicon_belly_overlay_preference,Pe=K.belly_mob_mult,Ae=K.belly_item_mult,Oe=K.belly_overall_mult,de=K.vorespawn_blacklist,ge=K.private_struggle;return(0,e.createComponentVNode)(2,o.Flex,{wrap:"wrap",children:[(0,e.createComponentVNode)(2,o.Flex.Item,{basis:"49%",grow:1,children:[(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Can Taste",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function j(){return P("set_attribute",{attribute:"b_tastes"})}return j}(),icon:H?"toggle-on":"toggle-off",selected:H,content:H?"Yes":"No"})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Feedable",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function j(){return P("set_attribute",{attribute:"b_feedable"})}return j}(),icon:Y?"toggle-on":"toggle-off",selected:Y,content:Y?"Yes":"No"})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Contaminates",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function j(){return P("set_attribute",{attribute:"b_contaminates"})}return j}(),icon:ie?"toggle-on":"toggle-off",selected:ie,content:ie?"Yes":"No"})}),ie&&(0,e.createFragment)([(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Contamination Flavor",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function j(){return P("set_attribute",{attribute:"b_contamination_flavor"})}return j}(),icon:"pen",content:Ce})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Contamination Color",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function j(){return P("set_attribute",{attribute:"b_contamination_color"})}return j}(),icon:"pen",content:(0,a.capitalize)(Se)})})],4)||null,(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Nutritional Gain",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function j(){return P("set_attribute",{attribute:"b_nutritionpercent"})}return j}(),content:J+"%"})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Required Examine Size",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function j(){return P("set_attribute",{attribute:"b_bulge_size"})}return j}(),content:me*100+"%"})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Display Absorbed Examines",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function j(){return P("set_attribute",{attribute:"b_display_absorbed_examine"})}return j}(),icon:Be?"toggle-on":"toggle-off",selected:Be,content:Be?"True":"False"})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Toggle Vore Privacy",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function j(){return P("set_attribute",{attribute:"b_eating_privacy"})}return j}(),content:(0,a.capitalize)(Ve)})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Toggle Struggle Privacy",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function j(){return P("set_attribute",{attribute:"b_private_struggle"})}return j}(),icon:ge?"toggle-on":"toggle-off",selected:ge,content:ge?"Private":"Loud"})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Save Digest Mode",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function j(){return P("set_attribute",{attribute:"b_save_digest_mode"})}return j}(),icon:ve?"toggle-on":"toggle-off",selected:ve,content:ve?"True":"False"})})]}),(0,e.createComponentVNode)(2,f,{belly:K})]}),(0,e.createComponentVNode)(2,o.Flex.Item,{basis:"49%",grow:1,children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Idle Emotes",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function j(){return P("set_attribute",{attribute:"b_emoteactive"})}return j}(),icon:ee?"toggle-on":"toggle-off",selected:ee,content:ee?"Active":"Inactive"})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Idle Emote Delay",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function j(){return P("set_attribute",{attribute:"b_emotetime"})}return j}(),content:te+" seconds"})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Digest Brute Damage",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function j(){return P("set_attribute",{attribute:"b_brute_dmg"})}return j}(),content:q})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Digest Burn Damage",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function j(){return P("set_attribute",{attribute:"b_burn_dmg"})}return j}(),content:oe})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Digest Suffocation Damage",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function j(){return P("set_attribute",{attribute:"b_oxy_dmg"})}return j}(),content:ae})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Digest Toxins Damage",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function j(){return P("set_attribute",{attribute:"b_tox_dmg"})}return j}(),content:le})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Digest Clone Damage",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function j(){return P("set_attribute",{attribute:"b_clone_dmg"})}return j}(),content:he})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Shrink/Grow Size",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function j(){return P("set_attribute",{attribute:"b_grow_shrink"})}return j}(),content:ce*100+"%"})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Vore Spawn Blacklist",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function j(){return P("set_attribute",{attribute:"b_vorespawn_blacklist"})}return j}(),icon:de?"toggle-on":"toggle-off",selected:de,content:de?"Yes":"No"})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Egg Type",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function j(){return P("set_attribute",{attribute:"b_egg_type"})}return j}(),icon:"pen",content:(0,a.capitalize)(we)})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Custom Egg Name",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function j(){return P("set_attribute",{attribute:"b_egg_name"})}return j}(),icon:"pen",content:pe||"Default"})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Recycling",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function j(){return P("set_attribute",{attribute:"b_recycling"})}return j}(),icon:E?"toggle-on":"toggle-off",selected:E,content:E?"Enabled":"Disabled"})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Storing Nutrition",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function j(){return P("set_attribute",{attribute:"b_storing_nutrition"})}return j}(),icon:Z?"toggle-on":"toggle-off",selected:Z,content:Z?"Storing":"Absorbing"})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Entrance Logs",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function j(){return P("set_attribute",{attribute:"b_entrance_logs"})}return j}(),icon:re?"toggle-on":"toggle-off",selected:re,content:re?"Enabled":"Disabled"})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Item Digestion Logs",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function j(){return P("set_attribute",{attribute:"b_item_digest_logs"})}return j}(),icon:X?"toggle-on":"toggle-off",selected:X,content:X?"Enabled":"Disabled"})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Selective Mode Preference",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function j(){return P("set_attribute",{attribute:"b_selective_mode_pref_toggle"})}return j}(),content:(0,a.capitalize)(ne)})})]})})]})},f=function(R,O){var _=(0,t.useBackend)(O),P=_.act,D=_.data,z=D.host_mobtype,U=z.is_cyborg,W=z.is_vore_simple_mob,K=R.belly,H=K.silicon_belly_overlay_preference,Y=K.belly_sprite_option_shown,J=K.belly_sprite_to_affect,q=K.belly_mob_mult,oe=K.belly_item_mult,ae=K.belly_overall_mult;return U?Y&&J==="sleeper"?(0,e.createComponentVNode)(2,o.Section,{title:"Cyborg Controls",width:"80%",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Toggle Belly Overlay Mode",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function le(){return P("set_attribute",{attribute:"b_silicon_belly"})}return le}(),content:(0,a.capitalize)(H)})})})}):(0,e.createComponentVNode)(2,o.Section,{title:"Cyborg Controls",width:"80%",children:(0,e.createVNode)(1,"span",null,"Your module does either not support vore sprites or you've selected a belly sprite other than the sleeper within the Visuals section.",16,{style:{color:"red"}})}):W?(0,e.createComponentVNode)(2,o.LabeledList,{children:(0,e.createComponentVNode)(2,o.LabeledList.Item)}):(0,e.createComponentVNode)(2,o.LabeledList,{children:(0,e.createComponentVNode)(2,o.LabeledList.Item)})},C=function(R,O){var _=(0,t.useBackend)(O),P=_.act,D=R.belly,z=D.is_wet,U=D.wet_loop,W=D.fancy,K=D.sound,H=D.release_sound,Y=D.sound_volume,J=D.noise_freq;return(0,e.createComponentVNode)(2,o.Flex,{wrap:"wrap",children:(0,e.createComponentVNode)(2,o.Flex.Item,{basis:"49%",grow:1,children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Fleshy Belly",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function q(){return P("set_attribute",{attribute:"b_wetness"})}return q}(),icon:z?"toggle-on":"toggle-off",selected:z,content:z?"Yes":"No"})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Internal Loop",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function q(){return P("set_attribute",{attribute:"b_wetloop"})}return q}(),icon:U?"toggle-on":"toggle-off",selected:U,content:U?"Yes":"No"})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Use Fancy Sounds",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function q(){return P("set_attribute",{attribute:"b_fancy_sound"})}return q}(),icon:W?"toggle-on":"toggle-off",selected:W,content:W?"Yes":"No"})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Vore Sound",children:[(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function q(){return P("set_attribute",{attribute:"b_sound"})}return q}(),content:K}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function q(){return P("set_attribute",{attribute:"b_soundtest"})}return q}(),icon:"volume-up"})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Release Sound",children:[(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function q(){return P("set_attribute",{attribute:"b_release"})}return q}(),content:H}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function q(){return P("set_attribute",{attribute:"b_releasesoundtest"})}return q}(),icon:"volume-up"})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Sound Volume",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function q(){return P("set_attribute",{attribute:"b_sound_volume"})}return q}(),content:Y+"%"})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Noise Frequency",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function q(){return P("set_attribute",{attribute:"b_noise_freq"})}return q}(),content:J})})]})})})},b=function(R,O){var _=(0,t.useBackend)(O),P=_.act,D=R.belly,z=D.belly_fullscreen,U=D.belly_fullscreen_color,W=D.belly_fullscreen_color2,K=D.belly_fullscreen_color3,H=D.belly_fullscreen_color4,Y=D.belly_fullscreen_alpha,J=D.mapRef,q=D.colorization_enabled,oe=D.possible_fullscreens,ae=D.disable_hud,le=D.vore_sprite_flags,he=D.affects_voresprite,me=D.absorbed_voresprite,Be=D.absorbed_multiplier,ce=D.liquid_voresprite,te=D.liquid_multiplier,ee=D.item_voresprite,ie=D.item_multiplier,Ce=D.health_voresprite,Se=D.resist_animation,we=D.voresprite_size_factor,pe=D.belly_sprite_option_shown,E=D.belly_sprite_to_affect,Z=D.undergarment_chosen,re=D.undergarment_if_none,X=D.undergarment_color,ne=D.tail_option_shown,ve=D.tail_to_change_to,Ve=D.tail_colouration,Ie=D.tail_extra_overlay,Pe=D.tail_extra_overlay2;return(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Section,{title:"Vore Sprites",children:(0,e.createComponentVNode)(2,o.Flex,{direction:"row",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Affect Vore Sprites",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function Ae(){return P("set_attribute",{attribute:"b_affects_vore_sprites"})}return Ae}(),icon:he?"toggle-on":"toggle-off",selected:he,content:he?"Yes":"No"})}),he?(0,e.createVNode)(1,"span",null,[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Vore Sprite Mode",children:[le.length&&le.join(", ")||"None",(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function Ae(){return P("set_attribute",{attribute:"b_vore_sprite_flags"})}return Ae}(),ml:1,icon:"plus"})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Count Absorbed prey for vore sprites",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function Ae(){return P("set_attribute",{attribute:"b_count_absorbed_prey_for_sprites"})}return Ae}(),icon:me?"toggle-on":"toggle-off",selected:me,content:me?"Yes":"No"})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Absorbed Multiplier",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function Ae(){return P("set_attribute",{attribute:"b_absorbed_multiplier"})}return Ae}(),content:Be})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Count liquid reagents for vore sprites",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function Ae(){return P("set_attribute",{attribute:"b_count_liquid_for_sprites"})}return Ae}(),icon:ce?"toggle-on":"toggle-off",selected:ce,content:ce?"Yes":"No"})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Liquid Multiplier",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function Ae(){return P("set_attribute",{attribute:"b_liquid_multiplier"})}return Ae}(),content:te})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Count items for vore sprites",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function Ae(){return P("set_attribute",{attribute:"b_count_items_for_sprites"})}return Ae}(),icon:ee?"toggle-on":"toggle-off",selected:ee,content:ee?"Yes":"No"})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Items Multiplier",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function Ae(){return P("set_attribute",{attribute:"b_item_multiplier"})}return Ae}(),content:ie})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Prey health affects vore sprites",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function Ae(){return P("set_attribute",{attribute:"b_health_impacts_size"})}return Ae}(),icon:Ce?"toggle-on":"toggle-off",selected:Ce,content:Ce?"Yes":"No"})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Animation when prey resist",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function Ae(){return P("set_attribute",{attribute:"b_resist_animation"})}return Ae}(),icon:Se?"toggle-on":"toggle-off",selected:Se,content:Se?"Yes":"No"})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Vore Sprite Size Factor",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function Ae(){return P("set_attribute",{attribute:"b_size_factor_sprites"})}return Ae}(),content:we})}),pe?(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Belly Sprite to affect",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function Ae(){return P("set_attribute",{attribute:"b_belly_sprite_to_affect"})}return Ae}(),content:E})}):(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Belly Sprite to affect",children:(0,e.createVNode)(1,"span",null,"You do not have any bellysprites.",16,{style:{color:"red"}})}),ne&&le.includes("Undergarment addition")?(0,e.createVNode)(1,"div",null,[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Undergarment type to affect",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function Ae(){return P("set_attribute",{attribute:"b_undergarment_choice"})}return Ae}(),content:Z})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Undergarment if none equipped",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function Ae(){return P("set_attribute",{attribute:"b_undergarment_if_none"})}return Ae}(),content:re})}),(0,e.createComponentVNode)(2,T,{action_name:"b_undergarment_color",value_of:null,back_color:X,name_of:"Undergarment Color if none"})],4):"",ne&&le.includes("Tail adjustment")?(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Tail to change to",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function Ae(){return P("set_attribute",{attribute:"b_tail_to_change_to"})}return Ae}(),content:ve})}):""],0):""]})})}),(0,e.createComponentVNode)(2,o.Section,{title:"Belly Fullscreens Preview and Coloring",children:[(0,e.createComponentVNode)(2,o.Flex,{direction:"row",children:[(0,e.createComponentVNode)(2,T,{action_name:"b_fullscreen_color",value_of:null,back_color:U,name_of:"1"}),(0,e.createComponentVNode)(2,T,{action_name:"b_fullscreen_color2",value_of:null,back_color:W,name_of:"2"}),(0,e.createComponentVNode)(2,T,{action_name:"b_fullscreen_color3",value_of:null,back_color:K,name_of:"3"}),(0,e.createComponentVNode)(2,T,{action_name:"b_fullscreen_color4",value_of:null,back_color:H,name_of:"4"}),(0,e.createComponentVNode)(2,T,{action_name:"b_fullscreen_alpha",value_of:null,back_color:"#FFFFFF",name_of:"Alpha"})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Enable Coloration",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function Ae(){return P("set_attribute",{attribute:"b_colorization_enabled"})}return Ae}(),icon:q?"toggle-on":"toggle-off",selected:q,content:q?"Yes":"No"})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Preview Belly",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function Ae(){return P("set_attribute",{attribute:"b_preview_belly"})}return Ae}(),content:"Preview"})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Clear Preview",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function Ae(){return P("set_attribute",{attribute:"b_clear_preview"})}return Ae}(),content:"Clear"})})]}),(0,e.createComponentVNode)(2,o.Section,{children:[(0,e.createComponentVNode)(2,o.Section,{title:"Vore FX",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Disable Prey HUD",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function Ae(){return P("set_attribute",{attribute:"b_disable_hud"})}return Ae}(),icon:ae?"toggle-on":"toggle-off",selected:ae,content:ae?"Yes":"No"})})})}),(0,e.createComponentVNode)(2,o.Section,{title:"Belly Fullscreens Styles",width:"800px",children:["Belly styles:",(0,e.createComponentVNode)(2,o.Button,{fluid:!0,selected:z===""||z===null,onClick:function(){function Ae(){return P("set_attribute",{attribute:"b_fullscreen",val:null})}return Ae}(),children:"Disabled"}),Object.keys(oe).map(function(Ae){return(0,e.createVNode)(1,"span",null,(0,e.createComponentVNode)(2,o.Button,{width:"256px",height:"256px",selected:Ae===z,onClick:function(){function Oe(){return P("set_attribute",{attribute:"b_fullscreen",val:Ae})}return Oe}(),children:(0,e.createComponentVNode)(2,o.Box,{className:(0,V.classes)(["vore240x240",Ae]),style:{transform:"translate(0%, 4%)"}})},Ae),2,{style:{width:"256px"}})})]})]})],4)},g=function(R,O){var _=(0,t.useBackend)(O),P=_.act,D=R.belly,z=D.escapable,U=D.interacts,W=D.vorespawn_blacklist,K=D.autotransfer_enabled,H=D.autotransfer;return(0,e.createComponentVNode)(2,o.Section,{title:"Belly Interactions",buttons:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function Y(){return P("set_attribute",{attribute:"b_escapable"})}return Y}(),icon:z?"toggle-on":"toggle-off",selected:z,content:z?"Interactions On":"Interactions Off"}),children:[z?(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Escape Chance",children:(0,e.createComponentVNode)(2,o.Button,{content:U.escapechance+"%",onClick:function(){function Y(){return P("set_attribute",{attribute:"b_escapechance"})}return Y}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Absorbed Escape Chance",children:(0,e.createComponentVNode)(2,o.Button,{content:U.escapechance_absorbed+"%",onClick:function(){function Y(){return P("set_attribute",{attribute:"b_escapechance_absorbed"})}return Y}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Escape Time",children:(0,e.createComponentVNode)(2,o.Button,{content:U.escapetime/10+"s",onClick:function(){function Y(){return P("set_attribute",{attribute:"b_escapetime"})}return Y}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Divider),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Transfer Chance",children:(0,e.createComponentVNode)(2,o.Button,{content:U.transferchance+"%",onClick:function(){function Y(){return P("set_attribute",{attribute:"b_transferchance"})}return Y}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Transfer Location",children:(0,e.createComponentVNode)(2,o.Button,{content:U.transferlocation?U.transferlocation:"Disabled",onClick:function(){function Y(){return P("set_attribute",{attribute:"b_transferlocation"})}return Y}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Divider),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Secondary Transfer Chance",children:(0,e.createComponentVNode)(2,o.Button,{content:U.transferchance_secondary+"%",onClick:function(){function Y(){return P("set_attribute",{attribute:"b_transferchance_secondary"})}return Y}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Secondary Transfer Location",children:(0,e.createComponentVNode)(2,o.Button,{content:U.transferlocation_secondary?U.transferlocation_secondary:"Disabled",onClick:function(){function Y(){return P("set_attribute",{attribute:"b_transferlocation_secondary"})}return Y}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Divider),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Absorb Chance",children:(0,e.createComponentVNode)(2,o.Button,{content:U.absorbchance+"%",onClick:function(){function Y(){return P("set_attribute",{attribute:"b_absorbchance"})}return Y}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Digest Chance",children:(0,e.createComponentVNode)(2,o.Button,{content:U.digestchance+"%",onClick:function(){function Y(){return P("set_attribute",{attribute:"b_digestchance"})}return Y}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Divider)]}):"These options only display while interactions are turned on.",(0,e.createComponentVNode)(2,o.Section,{title:"Auto-Transfer Options",buttons:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function Y(){return P("set_attribute",{attribute:"b_autotransfer_enabled"})}return Y}(),icon:K?"toggle-on":"toggle-off",selected:K,content:K?"Auto-Transfer Enabled":"Auto-Transfer Disabled"}),children:K?(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Auto-Transfer Time",children:(0,e.createComponentVNode)(2,o.Button,{content:H.autotransferwait/10+"s",onClick:function(){function Y(){return P("set_attribute",{attribute:"b_autotransferwait"})}return Y}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Auto-Transfer Min Amount",children:(0,e.createComponentVNode)(2,o.Button,{content:H.autotransfer_min_amount,onClick:function(){function Y(){return P("set_attribute",{attribute:"b_autotransfer_min_amount"})}return Y}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Auto-Transfer Max Amount",children:(0,e.createComponentVNode)(2,o.Button,{content:H.autotransfer_max_amount,onClick:function(){function Y(){return P("set_attribute",{attribute:"b_autotransfer_max_amount"})}return Y}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Divider),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Auto-Transfer Primary Chance",children:(0,e.createComponentVNode)(2,o.Button,{content:H.autotransferchance+"%",onClick:function(){function Y(){return P("set_attribute",{attribute:"b_autotransferchance"})}return Y}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Auto-Transfer Primary Location",children:(0,e.createComponentVNode)(2,o.Button,{content:H.autotransferlocation?H.autotransferlocation:"Disabled",onClick:function(){function Y(){return P("set_attribute",{attribute:"b_autotransferlocation"})}return Y}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Auto-Transfer Primary Whitelist (Mobs)",children:[H.autotransfer_whitelist.length&&H.autotransfer_whitelist.join(", ")||"Everything",(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function Y(){return P("set_attribute",{attribute:"b_autotransfer_whitelist"})}return Y}(),ml:1,icon:"plus"})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Auto-Transfer Primary Whitelist (Items)",children:[H.autotransfer_whitelist_items.length&&H.autotransfer_whitelist_items.join(", ")||"Everything",(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function Y(){return P("set_attribute",{attribute:"b_autotransfer_whitelist_items"})}return Y}(),ml:1,icon:"plus"})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Auto-Transfer Primary Blacklist (Mobs)",children:[H.autotransfer_blacklist.length&&H.autotransfer_blacklist.join(", ")||"Nothing",(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function Y(){return P("set_attribute",{attribute:"b_autotransfer_blacklist"})}return Y}(),ml:1,icon:"plus"})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Auto-Transfer Primary Blacklist (Items)",children:[H.autotransfer_blacklist_items.length&&H.autotransfer_blacklist_items.join(", ")||"Nothing",(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function Y(){return P("set_attribute",{attribute:"b_autotransfer_blacklist_items"})}return Y}(),ml:1,icon:"plus"})]}),(0,e.createComponentVNode)(2,o.LabeledList.Divider),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Auto-Transfer Secondary Chance",children:(0,e.createComponentVNode)(2,o.Button,{content:H.autotransferchance_secondary+"%",onClick:function(){function Y(){return P("set_attribute",{attribute:"b_autotransferchance_secondary"})}return Y}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Auto-Transfer Secondary Location",children:(0,e.createComponentVNode)(2,o.Button,{content:H.autotransferlocation_secondary?H.autotransferlocation_secondary:"Disabled",onClick:function(){function Y(){return P("set_attribute",{attribute:"b_autotransferlocation_secondary"})}return Y}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Auto-Transfer Secondary Whitelist (Mobs)",children:[H.autotransfer_secondary_whitelist.length&&H.autotransfer_secondary_whitelist.join(", ")||"Everything",(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function Y(){return P("set_attribute",{attribute:"b_autotransfer_secondary_whitelist"})}return Y}(),ml:1,icon:"plus"})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Auto-Transfer Secondary Whitelist (Items)",children:[H.autotransfer_secondary_whitelist_items.length&&H.autotransfer_secondary_whitelist_items.join(", ")||"Everything",(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function Y(){return P("set_attribute",{attribute:"b_autotransfer_secondary_whitelist_items"})}return Y}(),ml:1,icon:"plus"})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Auto-Transfer Secondary Blacklist (Mobs)",children:[H.autotransfer_secondary_blacklist.length&&H.autotransfer_secondary_blacklist.join(", ")||"Nothing",(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function Y(){return P("set_attribute",{attribute:"b_autotransfer_secondary_blacklist"})}return Y}(),ml:1,icon:"plus"})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Auto-Transfer Secondary Blacklist (Items)",children:[H.autotransfer_secondary_blacklist_items.length&&H.autotransfer_secondary_blacklist_items.join(", ")||"Nothing",(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function Y(){return P("set_attribute",{attribute:"b_autotransfer_secondary_blacklist_items"})}return Y}(),ml:1,icon:"plus"})]})]}):"These options only display while Auto-Transfer is enabled."})]})},y=function(R,O){var _=(0,t.useBackend)(O),P=_.act,D=_.data,z=D.show_pictures,U=R.contents,W=R.belly,K=R.outside,H=K===void 0?!1:K;return(0,e.createFragment)([H&&(0,e.createComponentVNode)(2,o.Button,{textAlign:"center",fluid:!0,mb:1,onClick:function(){function Y(){return P("pick_from_outside",{pickall:!0})}return Y}(),children:"All"})||null,z&&(0,e.createComponentVNode)(2,o.Flex,{wrap:"wrap",justify:"center",align:"center",children:U.map(function(Y){return(0,e.createComponentVNode)(2,o.Flex.Item,{basis:"33%",children:[(0,e.createComponentVNode)(2,o.Button,{width:"64px",color:Y.absorbed?"purple":N[Y.stat],style:{"vertical-align":"middle","margin-right":"5px","border-radius":"20px"},onClick:function(){function J(){return P(Y.outside?"pick_from_outside":"pick_from_inside",{pick:Y.ref,belly:W})}return J}(),children:(0,e.createVNode)(1,"img",null,null,1,{src:"data:image/jpeg;base64, "+Y.icon,width:"64px",height:"64px",style:{"-ms-interpolation-mode":"nearest-neighbor","margin-left":"-5px"}})}),Y.name]},Y.name)})})||(0,e.createComponentVNode)(2,o.LabeledList,{children:U.map(function(Y){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:Y.name,children:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,mt:-1,mb:-1,color:Y.absorbed?"purple":N[Y.stat],onClick:function(){function J(){return P(Y.outside?"pick_from_outside":"pick_from_inside",{pick:Y.ref,belly:W})}return J}(),children:"Interact"})},Y.ref)})})],0)},B=function(R,O){var _=(0,t.useBackend)(O),P=_.act,D=R.belly,z=D.show_liq,U=D.liq_interacts,W=D.liq_reagent_gen,K=D.liq_reagent_type,H=D.liq_reagent_name,Y=D.liq_reagent_transfer_verb,J=D.liq_reagent_nutri_rate,q=D.liq_reagent_capacity,oe=D.liq_sloshing,ae=D.liq_reagent_addons,le=D.show_liq_fullness,he=D.liq_messages,me=D.liq_msg1,Be=D.liq_msg2,ce=D.liq_msg3,te=D.liq_msg4,ee=D.liq_msg5,ie=D.custom_reagentcolor,Ce=D.custom_reagentalpha,Se=D.liquid_overlay,we=D.max_liquid_level,pe=D.reagent_touches,E=D.mush_overlay,Z=D.mush_color,re=D.mush_alpha,X=D.max_mush,ne=D.min_mush,ve=D.item_mush_val,Ve=D.metabolism_overlay,Ie=D.metabolism_mush_ratio,Pe=D.max_ingested,Ae=D.custom_ingested_color,Oe=D.custom_ingested_alpha;return(0,e.createComponentVNode)(2,o.Section,{title:"Liquid Options",buttons:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function de(){return P("liq_set_attribute",{liq_attribute:"b_show_liq"})}return de}(),icon:z?"toggle-on":"toggle-off",selected:z,tooltipPosition:"left",tooltip:"These are the settings for liquid bellies, every belly has a liquid storage.",content:z?"Liquids On":"Liquids Off"}),children:z?(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Generate Liquids",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function de(){return P("liq_set_attribute",{liq_attribute:"b_liq_reagent_gen"})}return de}(),icon:U.liq_reagent_gen?"toggle-on":"toggle-off",selected:U.liq_reagent_gen,content:U.liq_reagent_gen?"On":"Off"})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Liquid Type",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function de(){return P("liq_set_attribute",{liq_attribute:"b_liq_reagent_type"})}return de}(),icon:"pen",content:U.liq_reagent_type})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Liquid Name",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function de(){return P("liq_set_attribute",{liq_attribute:"b_liq_reagent_name"})}return de}(),content:U.liq_reagent_name})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Transfer Verb",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function de(){return P("liq_set_attribute",{liq_attribute:"b_liq_reagent_transfer_verb"})}return de}(),content:U.liq_reagent_transfer_verb})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Generation Time",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function de(){return P("liq_set_attribute",{liq_attribute:"b_liq_reagent_nutri_rate"})}return de}(),icon:"clock",content:(U.liq_reagent_nutri_rate+1)*10/60+" Hours"})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Liquid Capacity",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function de(){return P("liq_set_attribute",{liq_attribute:"b_liq_reagent_capacity"})}return de}(),content:U.liq_reagent_capacity})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Slosh Sounds",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function de(){return P("liq_set_attribute",{liq_attribute:"b_liq_sloshing"})}return de}(),icon:U.liq_sloshing?"toggle-on":"toggle-off",selected:U.liq_sloshing,content:U.liq_sloshing?"On":"Off"})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Liquid Addons",children:[U.liq_reagent_addons.length&&U.liq_reagent_addons.join(", ")||"None",(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function de(){return P("liq_set_attribute",{liq_attribute:"b_liq_reagent_addons"})}return de}(),ml:1,icon:"plus"})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Liquid Application to Prey",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function de(){return P("liq_set_attribute",{liq_attribute:"b_reagent_touches"})}return de}(),icon:U.reagent_touches?"toggle-on":"toggle-off",selected:U.reagent_touches,content:U.reagent_touches?"On":"Off"})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Custom Liquid Color",children:(0,e.createComponentVNode)(2,M,{action_name:"b_custom_reagentcolor",value_of:null,back_color:U.custom_reagentcolor,name_of:"Custom Liquid Color"})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Liquid Overlay",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function de(){return P("liq_set_attribute",{liq_attribute:"b_liquid_overlay"})}return de}(),icon:U.liquid_overlay?"toggle-on":"toggle-off",selected:U.liquid_overlay,content:U.liquid_overlay?"On":"Off"})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Max Liquid Level",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function de(){return P("liq_set_attribute",{liq_attribute:"b_max_liquid_level"})}return de}(),content:U.max_liquid_level+"%"})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Custom Liquid Alpha",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function de(){return P("liq_set_attribute",{liq_attribute:"b_custom_reagentalpha"})}return de}(),content:U.custom_reagentalpha})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Fullness Overlay",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function de(){return P("liq_set_attribute",{liq_attribute:"b_mush_overlay"})}return de}(),icon:U.mush_overlay?"toggle-on":"toggle-off",selected:U.mush_overlay,content:U.mush_overlay?"On":"Off"})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Mush Overlay Color",children:(0,e.createComponentVNode)(2,M,{action_name:"b_mush_color",value_of:null,back_color:U.mush_color,name_of:"Custom Mush Color"})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Mush Overlay Alpha",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function de(){return P("liq_set_attribute",{liq_attribute:"b_mush_alpha"})}return de}(),content:U.mush_alpha})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Mush Overlay Scaling",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function de(){return P("liq_set_attribute",{liq_attribute:"b_max_mush"})}return de}(),content:U.max_mush})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Minimum Mush Level",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function de(){return P("liq_set_attribute",{liq_attribute:"b_min_mush"})}return de}(),content:U.min_mush+"%"})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Item Mush Value",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function de(){return P("liq_set_attribute",{liq_attribute:"b_item_mush_val"})}return de}(),content:U.item_mush_val+" fullness per item"})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Metabolism Overlay",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function de(){return P("liq_set_attribute",{liq_attribute:"b_metabolism_overlay"})}return de}(),icon:U.metabolism_overlay?"toggle-on":"toggle-off",selected:U.metabolism_overlay,content:U.metabolism_overlay?"On":"Off"})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Metabolism Mush Ratio",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function de(){return P("liq_set_attribute",{liq_attribute:"b_metabolism_mush_ratio"})}return de}(),content:U.metabolism_mush_ratio+" fullness per reagent unit"})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Metabolism Overlay Scaling",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function de(){return P("liq_set_attribute",{liq_attribute:"b_max_ingested"})}return de}(),content:U.max_ingested})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Custom Metabolism Color",children:(0,e.createComponentVNode)(2,M,{action_name:"b_custom_ingested_color",value_of:null,back_color:U.custom_ingested_color,name_of:"Custom Metabolism Color"})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Metabolism Overlay Alpha",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function de(){return P("liq_set_attribute",{liq_attribute:"b_custom_ingested_alpha"})}return de}(),content:U.custom_ingested_alpha})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Purge Liquids",children:(0,e.createComponentVNode)(2,o.Button,{color:"red",onClick:function(){function de(){return P("liq_set_attribute",{liq_attribute:"b_liq_purge"})}return de}(),content:"Purge Liquids"})})]}):"These options only display while liquid settings are turned on."})},L=function(R,O){var _=(0,t.useBackend)(O),P=_.act,D=R.belly,z=D.liq_interacts,U=D.liq_reagent_gen,W=D.liq_reagent_type,K=D.liq_reagent_name,H=D.liq_reagent_transfer_verb,Y=D.liq_reagent_nutri_rate,J=D.liq_reagent_capacity,q=D.liq_sloshing,oe=D.liq_reagent_addons,ae=D.show_liq_fullness,le=D.liq_messages,he=D.liq_msg_toggle1,me=D.liq_msg_toggle2,Be=D.liq_msg_toggle3,ce=D.liq_msg_toggle4,te=D.liq_msg_toggle5,ee=D.liq_msg1,ie=D.liq_msg2,Ce=D.liq_msg3,Se=D.liq_msg4,we=D.liq_msg5;return(0,e.createComponentVNode)(2,o.Section,{title:"Liquid Messages",buttons:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function pe(){return P("liq_set_messages",{liq_messages:"b_show_liq_fullness"})}return pe}(),icon:ae?"toggle-on":"toggle-off",selected:ae,tooltipPosition:"left",tooltip:"These are the settings for belly visibility when involving liquids fullness.",content:ae?"Messages On":"Messages Off"}),children:ae?(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"0 to 20%",children:[(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function pe(){return P("liq_set_messages",{liq_messages:"b_liq_msg_toggle1"})}return pe}(),icon:le.liq_msg_toggle1?"toggle-on":"toggle-off",selected:le.liq_msg_toggle1,content:le.liq_msg_toggle1?"On":"Off"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function pe(){return P("liq_set_messages",{liq_messages:"b_liq_msg1"})}return pe}(),content:"Examine Message (0 to 20%)"})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"20 to 40%",children:[(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function pe(){return P("liq_set_messages",{liq_messages:"b_liq_msg_toggle2"})}return pe}(),icon:le.liq_msg_toggle2?"toggle-on":"toggle-off",selected:le.liq_msg_toggle2,content:le.liq_msg_toggle2?"On":"Off"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function pe(){return P("liq_set_messages",{liq_messages:"b_liq_msg2"})}return pe}(),content:"Examine Message (20 to 40%)"})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"40 to 60%",children:[(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function pe(){return P("liq_set_messages",{liq_messages:"b_liq_msg_toggle3"})}return pe}(),icon:le.liq_msg_toggle3?"toggle-on":"toggle-off",selected:le.liq_msg_toggle3,content:le.liq_msg_toggle3?"On":"Off"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function pe(){return P("liq_set_messages",{liq_messages:"b_liq_msg3"})}return pe}(),content:"Examine Message (40 to 60%)"})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"60 to 80%",children:[(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function pe(){return P("liq_set_messages",{liq_messages:"b_liq_msg_toggle4"})}return pe}(),icon:le.liq_msg_toggle4?"toggle-on":"toggle-off",selected:le.liq_msg_toggle4,content:le.liq_msg_toggle4?"On":"Off"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function pe(){return P("liq_set_messages",{liq_messages:"b_liq_msg4"})}return pe}(),content:"Examine Message (60 to 80%)"})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"80 to 100%",children:[(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function pe(){return P("liq_set_messages",{liq_messages:"b_liq_msg_toggle5"})}return pe}(),icon:le.liq_msg_toggle5?"toggle-on":"toggle-off",selected:le.liq_msg_toggle5,content:le.liq_msg_toggle5?"On":"Off"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function pe(){return P("liq_set_messages",{liq_messages:"b_liq_msg5"})}return pe}(),content:"Examine Message (80 to 100%)"})]})]}):"These options only display while liquid examination settings are turned on."})},I=function(R,O){var _=(0,t.useBackend)(O),P=_.act,D=_.data,z=D.prefs,U=z.digestable,W=z.devourable,K=z.resizable,H=z.feeding,Y=z.absorbable,J=z.digest_leave_remains,q=z.allowmobvore,oe=z.permit_healbelly,ae=z.show_vore_fx,le=z.can_be_drop_prey,he=z.can_be_drop_pred,me=z.latejoin_vore,Be=z.latejoin_prey,ce=z.allow_spontaneous_tf,te=z.step_mechanics_active,ee=z.pickup_mechanics_active,ie=z.noisy,Ce=z.noisy_full,Se=z.liq_rec,we=z.liq_giv,pe=z.autotransferable,E=z.drop_vore,Z=z.stumble_vore,re=z.slip_vore,X=z.throw_vore,ne=z.food_vore,ve=z.nutrition_message_visible,Ve=z.weight_message_visible,Ie=z.eating_privacy_global,Pe=D.show_pictures,Ae=(0,t.useLocalState)(O,"tabIndex",0),Oe=Ae[0],de=Ae[1],ge={digestion:{action:"toggle_digest",test:U,tooltip:{main:"This button is for those who don't like being digested. It can make you undigestable.",enable:"Click here to allow digestion.",disable:"Click here to prevent digestion."},content:{enabled:"Digestion Allowed",disabled:"No Digestion"}},absorbable:{action:"toggle_absorbable",test:Y,tooltip:{main:"This button allows preds to know whether you prefer or don't prefer to be absorbed.",enable:"Click here to allow being absorbed.",disable:"Click here to disallow being absorbed."},content:{enabled:"Absorption Allowed",disabled:"No Absorption"}},devour:{action:"toggle_devour",test:W,tooltip:{main:"This button is to toggle your ability to be devoured by others.",enable:"Click here to allow being devoured.",disable:"Click here to prevent being devoured."},content:{enabled:"Devouring Allowed",disabled:"No Devouring"}},mobvore:{action:"toggle_mobvore",test:q,tooltip:{main:"This button is for those who don't like being eaten by mobs.",enable:"Click here to allow being eaten by mobs.",disable:"Click here to prevent being eaten by mobs."},content:{enabled:"Mobs eating you allowed",disabled:"No Mobs eating you"}},feed:{action:"toggle_feed",test:H,tooltip:{main:"This button is to toggle your ability to be fed to or by others vorishly.",enable:"Click here to allow being fed to/by other people.",disable:"Click here to prevent being fed to/by other people."},content:{enabled:"Feeding Allowed",disabled:"No Feeding"}},healbelly:{action:"toggle_healbelly",test:oe,tooltip:{main:"This button is for those who don't like healbelly used on them as a mechanic. It does not affect anything, but is displayed under mechanical prefs for ease of quick checks.",enable:"Click here to allow being heal-bellied.",disable:"Click here to prevent being heal-bellied."},content:{enabled:"Heal-bellies Allowed",disabled:"No Heal-bellies"}},dropnom_prey:{action:"toggle_dropnom_prey",test:le,tooltip:{main:"This toggle is for spontaneous, environment related vore as prey, including drop-noms, teleporters, etc.",enable:"Click here to allow being spontaneous prey.",disable:"Click here to prevent being spontaneous prey."},content:{enabled:"Spontaneous Prey Enabled",disabled:"Spontaneous Prey Disabled"}},dropnom_pred:{action:"toggle_dropnom_pred",test:he,tooltip:{main:"This toggle is for spontaneous, environment related vore as a predator, including drop-noms, teleporters, etc.",enable:"Click here to allow being spontaneous pred.",disable:"Click here to prevent being spontaneous pred."},content:{enabled:"Spontaneous Pred Enabled",disabled:"Spontaneous Pred Disabled"}},toggle_drop_vore:{action:"toggle_drop_vore",test:E,tooltip:{main:"Allows for dropnom spontaneous vore to occur. Note, you still need spontaneous vore pred and/or prey enabled.",enable:"Click here to allow for dropnoms.",disable:"Click here to disable dropnoms."},content:{enabled:"Drop Noms Enabled",disabled:"Drop Noms Disabled"}},toggle_slip_vore:{action:"toggle_slip_vore",test:re,tooltip:{main:"Allows for slip related spontaneous vore to occur. Note, you still need spontaneous vore pred and/or prey enabled.",enable:"Click here to allow for slip vore.",disable:"Click here to disable slip vore."},content:{enabled:"Slip Vore Enabled",disabled:"Slip Vore Disabled"}},toggle_stumble_vore:{action:"toggle_stumble_vore",test:Z,tooltip:{main:"Allows for stumble related spontaneous vore to occur. Note, you still need spontaneous vore pred and/or prey enabled.",enable:"Click here to allow for stumble vore.",disable:"Click here to disable stumble vore."},content:{enabled:"Stumble Vore Enabled",disabled:"Stumble Vore Disabled"}},toggle_throw_vore:{action:"toggle_throw_vore",test:X,tooltip:{main:"Allows for throw related spontaneous vore to occur. Note, you still need spontaneous vore pred and/or prey enabled.",enable:"Click here to allow for throw vore.",disable:"Click here to disable throw vore."},content:{enabled:"Throw Vore Enabled",disabled:"Throw Vore Disabled"}},toggle_food_vore:{action:"toggle_food_vore",test:ne,tooltip:{main:"Allows for food related spontaneous vore to occur. Note, you still need spontaneous vore pred and/or prey enabled.",enable:"Click here to allow for food vore.",disable:"Click here to disable food vore."},content:{enabled:"Food Vore Enabled",disabled:"Food Vore Disabled"}},spawnbelly:{action:"toggle_latejoin_vore",test:me,tooltip:{main:"Toggle late join vore spawnpoint.",enable:"Click here to turn on vorish spawnpoint.",disable:"Click here to turn off vorish spawnpoint."},content:{enabled:"Vore Spawn Pred Enabled",disabled:"Vore Spawn Pred Disabled"}},spawnprey:{action:"toggle_latejoin_prey",test:Be,tooltip:{main:"Toggle late join preds spawning on you.",enable:"Click here to turn on preds spawning around you.",disable:"Click here to turn off preds spawning around you."},content:{enabled:"Vore Spawn Prey Enabled",disabled:"Vore Spawn Prey Disabled"}},noisy:{action:"toggle_noisy",test:ie,tooltip:{main:"Toggle audible hunger noises.",enable:"Click here to turn on hunger noises.",disable:"Click here to turn off hunger noises."},content:{enabled:"Hunger Noises Enabled",disabled:"Hunger Noises Disabled"}},noisy_full:{action:"toggle_noisy_full",test:Ce,tooltip:{main:"Toggle belching while full.",enable:"Click here to turn on belching while full.",disable:"Click here to turn off belching while full."},content:{enabled:"Belching Enabled",disabled:"Belching Disabled"}},resize:{action:"toggle_resize",test:K,tooltip:{main:"This button is to toggle your ability to be resized by others.",enable:"Click here to allow being resized.",disable:"Click here to prevent being resized."},content:{enabled:"Resizing Allowed",disabled:"No Resizing"}},steppref:{action:"toggle_steppref",test:te,tooltip:{main:"",enable:"You will not participate in step mechanics. Click to enable step mechanics.",disable:"This setting controls whether or not you participate in size-based step mechanics. Includes both stepping on others, as well as getting stepped on. Click to disable step mechanics."},content:{enabled:"Step Mechanics Enabled",disabled:"Step Mechanics Disabled"}},vore_fx:{action:"toggle_fx",test:ae,tooltip:{main:"",enable:"Regardless of Predator Setting, you will not see their FX settings. Click this to enable showing FX.",disable:"This setting controls whether or not a pred is allowed to mess with your HUD and fullscreen overlays. Click to disable all FX."},content:{enabled:"Show Vore FX",disabled:"Do Not Show Vore FX"}},remains:{action:"toggle_leaveremains",test:J,tooltip:{main:"",enable:"Regardless of Predator Setting, you will not leave remains behind. Click this to allow leaving remains.",disable:"Your Predator must have this setting enabled in their belly modes to allow remains to show up, if they do not, they will not leave your remains behind, even with this on. Click to disable remains."},content:{enabled:"Allow Leaving Remains",disabled:"Do Not Allow Leaving Remains"}},pickuppref:{action:"toggle_pickuppref",test:ee,tooltip:{main:"",enable:"You will not participate in pick-up mechanics. Click this to allow picking up/being picked up.",disable:"Allows macros to pick you up into their hands, and you to pick up micros. Click to disable pick-up mechanics."},content:{enabled:"Pick-up Mechanics Enabled",disabled:"Pick-up Mechanics Disabled"}},spontaneous_tf:{action:"toggle_allow_spontaneous_tf",test:ce,tooltip:{main:"This toggle is for spontaneous or environment related transformation as a victim, such as via chemicals.",enable:"Click here to allow being spontaneously transformed.",disable:"Click here to disable being spontaneously transformed."},content:{enabled:"Spontaneous TF Enabled",disabled:"Spontaneous TF Disabled"}},examine_nutrition:{action:"toggle_nutrition_ex",test:ve,tooltip:{main:"",enable:"Click here to enable nutrition messages.",disable:"Click here to disable nutrition messages."},content:{enabled:"Examine Nutrition Messages Active",disabled:"Examine Nutrition Messages Inactive"}},examine_weight:{action:"toggle_weight_ex",test:Ve,tooltip:{main:"",enable:"Click here to enable weight messages.",disable:"Click here to disable weight messages."},content:{enabled:"Examine Weight Messages Active",disabled:"Examine Weight Messages Inactive"}},eating_privacy_global:{action:"toggle_global_privacy",test:Ie,tooltip:{main:"Sets default belly behaviour for vorebellies for announcing ingesting or expelling prey Overwritten by belly-specific preferences if set.",enable:" Click here to turn your messages subtle",disable:" Click here to turn your messages loud"},content:{enabled:"Global Vore Privacy: Subtle",disabled:"Global Vore Privacy: Loud"}},liquid_receive:{action:"toggle_liq_rec",test:Se,tooltip:{main:"This button is for allowing or preventing others from giving you liquids from their vore organs.",enable:"Click here to allow receiving liquids.",disable:"Click here to prevent receiving liquids."},content:{enabled:"Receiving Liquids Allowed",disabled:"Do Not Allow Receiving Liquids"}},liquid_give:{action:"toggle_liq_giv",test:we,tooltip:{main:"This button is for allowing or preventing others from taking liquids from your vore organs.",enable:"Click here to allow taking liquids.",disable:"Click here to prevent taking liquids."},content:{enabled:"Taking Liquids Allowed",disabled:"Do Not Allow Taking Liquids"}},autotransferable:{action:"toggle_autotransferable",test:pe,tooltip:{main:"This button is for allowing or preventing belly auto-transfer mechanics from moving you.",enable:"Click here to allow autotransfer.",disable:"Click here to prevent autotransfer."},content:{enabled:"Auto-Transfer Allowed",disabled:"Do Not Allow Auto-Transfer"}}};return(0,e.createComponentVNode)(2,o.Section,{title:"Mechanical Preferences",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"eye",selected:Pe,onClick:function(){function j(){return P("show_pictures")}return j}(),children:["Contents Preference: ",Pe?"Show Pictures":"Show List"]}),children:[(0,e.createComponentVNode)(2,o.Flex,{spacing:1,wrap:"wrap",justify:"center",children:[(0,e.createComponentVNode)(2,o.Flex.Item,{basis:"32%",children:(0,e.createComponentVNode)(2,w,{spec:ge.digestion})}),(0,e.createComponentVNode)(2,o.Flex.Item,{basis:"32%",grow:1,children:(0,e.createComponentVNode)(2,w,{spec:ge.absorbable})}),(0,e.createComponentVNode)(2,o.Flex.Item,{basis:"32%",children:(0,e.createComponentVNode)(2,w,{spec:ge.devour})}),(0,e.createComponentVNode)(2,o.Flex.Item,{basis:"32%",children:(0,e.createComponentVNode)(2,w,{spec:ge.mobvore})}),(0,e.createComponentVNode)(2,o.Flex.Item,{basis:"32%",grow:1,children:(0,e.createComponentVNode)(2,w,{spec:ge.feed})}),(0,e.createComponentVNode)(2,o.Flex.Item,{basis:"32%",children:(0,e.createComponentVNode)(2,w,{spec:ge.healbelly,tooltipPosition:"top"})}),(0,e.createComponentVNode)(2,o.Flex.Item,{basis:"32%",children:(0,e.createComponentVNode)(2,w,{spec:ge.dropnom_prey})}),(0,e.createComponentVNode)(2,o.Flex.Item,{basis:"32%",grow:1,children:(0,e.createComponentVNode)(2,w,{spec:ge.dropnom_pred})}),(0,e.createComponentVNode)(2,o.Flex.Item,{basis:"32%",children:(0,e.createComponentVNode)(2,w,{spec:ge.toggle_drop_vore})}),(0,e.createComponentVNode)(2,o.Flex.Item,{basis:"32%",children:(0,e.createComponentVNode)(2,w,{spec:ge.toggle_slip_vore})}),(0,e.createComponentVNode)(2,o.Flex.Item,{basis:"32%",grow:1,children:(0,e.createComponentVNode)(2,w,{spec:ge.toggle_stumble_vore})}),(0,e.createComponentVNode)(2,o.Flex.Item,{basis:"32%",children:(0,e.createComponentVNode)(2,w,{spec:ge.toggle_throw_vore})}),(0,e.createComponentVNode)(2,o.Flex.Item,{basis:"32%",children:(0,e.createComponentVNode)(2,w,{spec:ge.toggle_food_vore})}),(0,e.createComponentVNode)(2,o.Flex.Item,{basis:"32%",grow:1,children:(0,e.createComponentVNode)(2,w,{spec:ge.spawnbelly})}),(0,e.createComponentVNode)(2,o.Flex.Item,{basis:"32%",grow:1,children:(0,e.createComponentVNode)(2,w,{spec:ge.spawnprey})}),(0,e.createComponentVNode)(2,o.Flex.Item,{basis:"32%",children:(0,e.createComponentVNode)(2,w,{spec:ge.noisy})}),(0,e.createComponentVNode)(2,o.Flex.Item,{basis:"32%",children:(0,e.createComponentVNode)(2,w,{spec:ge.noisy_full})}),(0,e.createComponentVNode)(2,o.Flex.Item,{basis:"32%",children:(0,e.createComponentVNode)(2,w,{spec:ge.resize})}),(0,e.createComponentVNode)(2,o.Flex.Item,{basis:"32%",grow:1,children:(0,e.createComponentVNode)(2,w,{spec:ge.steppref,tooltipPosition:"top"})}),(0,e.createComponentVNode)(2,o.Flex.Item,{basis:"32%",children:(0,e.createComponentVNode)(2,w,{spec:ge.vore_fx,tooltipPosition:"top"})}),(0,e.createComponentVNode)(2,o.Flex.Item,{basis:"32%",children:(0,e.createComponentVNode)(2,w,{spec:ge.remains,tooltipPosition:"top"})}),(0,e.createComponentVNode)(2,o.Flex.Item,{basis:"32%",grow:1,children:(0,e.createComponentVNode)(2,w,{spec:ge.pickuppref,tooltipPosition:"top"})}),(0,e.createComponentVNode)(2,o.Flex.Item,{basis:"32%",children:(0,e.createComponentVNode)(2,w,{spec:ge.spontaneous_tf})}),(0,e.createComponentVNode)(2,o.Flex.Item,{basis:"32%",children:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,content:"Selective Mode Preference",onClick:function(){function j(){return P("switch_selective_mode_pref")}return j}()})}),(0,e.createComponentVNode)(2,o.Flex.Item,{basis:"32%",children:(0,e.createComponentVNode)(2,w,{spec:ge.eating_privacy_global})}),(0,e.createComponentVNode)(2,o.Flex.Item,{basis:"32%",grow:1,children:(0,e.createComponentVNode)(2,w,{spec:ge.autotransferable})}),(0,e.createComponentVNode)(2,o.Flex.Item,{basis:"32%",children:(0,e.createComponentVNode)(2,w,{spec:ge.liquid_receive,tooltipPosition:"top"})}),(0,e.createComponentVNode)(2,o.Flex.Item,{basis:"32%",children:(0,e.createComponentVNode)(2,w,{spec:ge.liquid_give,tooltipPosition:"top"})})]}),(0,e.createComponentVNode)(2,o.Section,{title:"Aesthetic Preferences",children:(0,e.createComponentVNode)(2,o.Flex,{spacing:1,wrap:"wrap",justify:"center",children:[(0,e.createComponentVNode)(2,o.Flex.Item,{basis:"50%",grow:1,children:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,content:"Set Taste",icon:"grin-tongue",onClick:function(){function j(){return P("setflavor")}return j}()})}),(0,e.createComponentVNode)(2,o.Flex.Item,{basis:"50%",children:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,content:"Set Smell",icon:"wind",onClick:function(){function j(){return P("setsmell")}return j}()})}),(0,e.createComponentVNode)(2,o.Flex.Item,{basis:"50%",grow:1,children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function j(){return P("set_attribute",{attribute:"b_msgs",msgtype:"en"})}return j}(),content:"Set Nutrition Examine Message",icon:"flask",fluid:!0})}),(0,e.createComponentVNode)(2,o.Flex.Item,{basis:"50%",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function j(){return P("set_attribute",{attribute:"b_msgs",msgtype:"ew"})}return j}(),content:"Set Weight Examine Message",icon:"weight-hanging",fluid:!0})}),(0,e.createComponentVNode)(2,o.Flex.Item,{basis:"50%",grow:1,children:(0,e.createComponentVNode)(2,w,{spec:ge.examine_nutrition})}),(0,e.createComponentVNode)(2,o.Flex.Item,{basis:"50%",children:(0,e.createComponentVNode)(2,w,{spec:ge.examine_weight})}),(0,e.createComponentVNode)(2,o.Flex.Item,{basis:"50%",children:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,content:"Vore Sprite Color",onClick:function(){function j(){return P("set_vs_color")}return j}()})})]})}),(0,e.createComponentVNode)(2,o.Divider),(0,e.createComponentVNode)(2,o.Section,{children:(0,e.createComponentVNode)(2,o.Flex,{spacing:1,children:[(0,e.createComponentVNode)(2,o.Flex.Item,{basis:"49%",children:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,content:"Save Prefs",icon:"save",onClick:function(){function j(){return P("saveprefs")}return j}()})}),(0,e.createComponentVNode)(2,o.Flex.Item,{basis:"49%",grow:1,children:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,content:"Reload Prefs",icon:"undo",onClick:function(){function j(){return P("reloadprefs")}return j}()})})]})})]})},w=function(R,O){var _=(0,t.useBackend)(O),P=_.act,D=R.spec,z=S(R,k),U=D.action,W=D.test,K=D.tooltip,H=D.content;return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Button,Object.assign({onClick:function(){function Y(){return P(U)}return Y}(),icon:W?"toggle-on":"toggle-off",selected:W,fluid:!0,tooltip:K.main+" "+(W?K.disable:K.enable),content:W?H.enabled:H.disabled},z)))},T=function(R,O){var _=(0,t.useBackend)(O),P=_.act,D=R.action_name,z=R.value_of,U=R.back_color,W=R.name_of;return(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function K(){P("set_attribute",{attribute:D,val:z})}return K}(),children:(0,e.createComponentVNode)(2,o.Stack,{align:"center",fill:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Box,{style:{background:U.startsWith("#")?U:"#"+U,border:"2px solid white","box-sizing":"content-box",height:"11px",width:"11px"}})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:["Change ",W]})]})})},M=function(R,O){var _=(0,t.useBackend)(O),P=_.act,D=R.action_name,z=R.value_of,U=R.back_color,W=R.name_of;return(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function K(){P("liq_set_attribute",{liq_attribute:D,val:z})}return K}(),children:(0,e.createComponentVNode)(2,o.Stack,{align:"center",fill:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Box,{style:{background:U.startsWith("#")?U:"#"+U,border:"2px solid white","box-sizing":"content-box",height:"11px",width:"11px"}})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:["Change ",W]})]})})}},75105:function(x,r,n){"use strict";r.__esModule=!0,r.VorePanelExport=void 0;var e=n(58734),a=n(62188),t=n(11477),o=n(11790),m={Hold:'Hold',Digest:'Digest',Absorb:'Absorb',Drain:'Drain',Selective:'Selective',Unabsorb:'Unabsorb',Heal:'Heal',Shrink:'Shrink',Grow:'Grow',"Size Steal":'Size Steal',"Encase In Egg":'Encase In Egg'},V={Hold:'Item: Hold',"Digest (Food Only)":'Item: Digest (Food Only)',Digest:'Item: Digest',"Digest (Dispersed Damage)":'Item: Digest (Dispersed Damage)'},k={Numbing:"",Stripping:"","Leave Remains":"",Muffles:"bi-volume-mute","Affect Worn Items":"","Jams Sensors":"bi-wifi-off","Complete Absorb":""},S={"Produce Liquids":"","Digestion Liquids":"","Absorption Liquids":"","Draining Liquids":""},N={Creatures:"",Absorbed:"",Carbon:"",Silicon:"",Mobs:"",Animals:"",Mice:"",Dead:"","Digestable Creatures":"","Absorbable Creatures":"","Full Health":"",Items:"",Trash:"",Eggs:"",Remains:"","Indigestible Items":"","Recyclable Items":"",Ores:"","Clothes and Bags":"",Food:""},h=function(f){var C=[];return f==null||f.forEach(function(b){C.push(''+b+"")}),C.length===0&&C.push("No Addons Set"),C},s=function(f){var C=[];return f==null||f.forEach(function(b){C.push(''+b+"")}),C.length===0&&C.push("No Addons Set"),C},l=function(f,C){var b=[];return f==null||f.forEach(function(g){b.push(''+g+"")}),b.length===0&&(C?b.push("Everything"):b.push("Nothing")),b},u=function(f,C){var b=f.name,g=f.desc,y=f.absorbed_desc,B=f.vore_verb,L=f.release_verb,I=f.mode,w=f.addons,T=f.item_mode,M=f.digest_brute,A=f.digest_burn,R=f.digest_oxy,O=f.can_taste,_=f.is_feedable,P=f.contaminates,D=f.contamination_flavor,z=f.contamination_color,U=f.nutrition_percent,W=f.bulge_size,K=f.display_absorbed_examine,H=f.save_digest_mode,Y=f.emote_active,J=f.emote_time,q=f.shrink_grow_size,oe=f.vorespawn_blacklist,ae=f.egg_type,le=f.egg_name,he=f.selective_preference,me=f.recycling,Be=f.storing_nutrition,ce=f.entrance_logs,te=f.item_digest_logs,ee=f.struggle_messages_outside,ie=f.struggle_messages_inside,Ce=f.absorbed_struggle_messages_outside,Se=f.absorbed_struggle_messages_inside,we=f.escape_attempt_messages_owner,pe=f.escape_attempt_messages_prey,E=f.escape_messages_owner,Z=f.escape_messages_prey,re=f.escape_messages_outside,X=f.escape_item_messages_owner,ne=f.escape_item_messages_prey,ve=f.escape_item_messages_outside,Ve=f.escape_fail_messages_owner,Ie=f.escape_fail_messages_prey,Pe=f.escape_attempt_absorbed_messages_owner,Ae=f.escape_attempt_absorbed_messages_prey,Oe=f.escape_absorbed_messages_owner,de=f.escape_absorbed_messages_prey,ge=f.escape_absorbed_messages_outside,j=f.escape_fail_absorbed_messages_owner,ue=f.escape_fail_absorbed_messages_prey,be=f.primary_transfer_messages_owner,ke=f.primary_transfer_messages_prey,Te=f.secondary_transfer_messages_owner,Ee=f.secondary_transfer_messages_prey,Re=f.digest_chance_messages_owner,_e=f.digest_chance_messages_prey,De=f.absorb_chance_messages_owner,Ue=f.absorb_chance_messages_prey,Xe=f.digest_messages_owner,Qe=f.digest_messages_prey,$e=f.absorb_messages_owner,ht=f.absorb_messages_prey,lt=f.unabsorb_messages_owner,ut=f.unabsorb_messages_prey,kt=f.examine_messages,St=f.examine_messages_absorbed,Mt=f.emotes_digest,Bt=f.emotes_hold,Ot=f.emotes_holdabsorbed,Pt=f.emotes_absorb,Ct=f.emotes_heal,dt=f.emotes_drain,et=f.emotes_steal,nt=f.emotes_egg,st=f.emotes_shrink,vt=f.emotes_grow,gt=f.emotes_unabsorb,$t=f.is_wet,Yt=f.wet_loop,Xt=f.fancy_vore,Qt=f.vore_sound,Lt=f.release_sound,Jt=f.sound_volume,Zt=f.noise_freq,_t=f.affects_vore_sprites,It=f.count_absorbed_prey_for_sprite,Je=f.resist_triggers_animation,qt=f.size_factor_for_sprite,en=f.belly_sprite_to_affect,tn=f.belly_fullscreen,xt=f.belly_fullscreen_color,mt=f.belly_fullscreen_color2,yn=f.belly_fullscreen_color3,kn=f.belly_fullscreen_color4,Sn=f.belly_fullscreen_alpha,nn=f.colorization_enabled,on=f.disable_hud,Rt=f.escapable,rn=f.escapechance,at=f.escapechance_absorbed,an=f.escapetime,cn=f.transferchance,ln=f.transferlocation,un=f.transferchance_secondary,dn=f.transferlocation_secondary,sn=f.absorbchance,wt=f.digestchance,mn=f.autotransferwait,Tt=f.autotransferchance,Dt=f.autotransferlocation,Ft=f.autotransferchance_secondary,jt=f.autotransferlocation_secondary,fn=f.autotransfer_enabled,pn=f.autotransfer_min_amount,hn=f.autotransfer_max_amount,it=f.autotransfer_whitelist,Vt=f.autotransfer_blacklist,Wt=f.autotransfer_secondary_whitelist,Cn=f.autotransfer_secondary_blacklist,vn=f.autotransfer_whitelist_items,zt=f.autotransfer_blacklist_items,Ut=f.autotransfer_secondary_whitelist_items,gn=f.autotransfer_secondary_blacklist_items,Nt=f.show_liquids,Nn=f.reagentbellymode,At=f.reagent_chosen,Ht=f.reagent_name,bn=f.reagent_transfer_verb,Gt=f.gen_time_display,Kt=f.custom_max_volume,Et=f.vorefootsteps_sounds,Bn=f.reagent_mode_flag_list,F=f.liquid_overlay,G=f.max_liquid_level,Q=f.reagent_touches,se=f.mush_overlay,Ne=f.mush_color,ye=f.mush_alpha,Le=f.max_mush,xe=f.min_mush,We=f.item_mush_val,Fe=f.custom_reagentcolor,je=f.custom_reagentalpha,ze=f.metabolism_overlay,Ge=f.metabolism_mush_ratio,Ye=f.max_ingested,He=f.custom_ingested_color,qe=f.custom_ingested_alpha,Ke=f.liquid_fullness1_messages,ct=f.liquid_fullness2_messages,tt=f.liquid_fullness3_messages,bt=f.liquid_fullness4_messages,ot=f.liquid_fullness5_messages,ft=f.fullness1_messages,rt=f.fullness2_messages,yt=f.fullness3_messages,Ze=f.fullness4_messages,pt=f.fullness5_messages,$="";return $+=' ',$+='
",$+='',$+=b+' - ('+M+'/'+A+'/'+R+") - "+m[I]+" - "+V[T],$+=" ',$+='",$},i=function(){var f=new Date,C=String(f.getHours());C.length<2&&(C="0"+C);var b=String(f.getMinutes());b.length<2&&(b="0"+b);var g=String(f.getDate());g.length<2&&(g="0"+g);var y=String(f.getMonth()+1);y.length<2&&(y="0"+y);var B=String(f.getFullYear());return" "+B+"-"+y+"-"+g+" ("+C+" "+b+")"},c=function(f,C){var b=(0,a.useBackend)(f),g=b.act,y=b.data,B=y.db_version,L=y.db_repo,I=y.mob_name,w=y.bellies,T=i(),M=I+T+C,A;if(C===".html"){var R="";A=new Blob(['',$+="Addons:
"+h(w)+"
",$+="== Descriptions ==
",$+="Vore Verb:
"+B+"
",$+="Release Verb:
"+L+"
",$+='Description:
"'+g+'"
',$+='Absorbed Description:
"'+y+'"
',$+="
",$+="== Messages ==
",$+='',$+='",$+="",$+="',$+='",$+='',$+='Escape Attempt Messages (Owner)',$+='Escape Attempt Messages (Prey)',$+='Escape Message (Owner)',$+='Escape Message (Prey)',$+='Escape Message (Outside)',$+='Escape Item Messages (Owner)',$+='Escape Item Messages (Prey)',$+='Escape Item Messages (Outside)',$+='Escape Fail Messages (Owner)',$+='Escape Fail Messages (Prey)',$+='Escape Attempt Absorbed Messages (Owner)',$+='Escape Attempt Absorbed Messages (Prey)',$+='Escape Absorbed Messages (Owner)',$+='Escape Absorbed Messages (Prey)',$+='Escape Absorbed Messages (Outside)',$+='Escape Fail Absorbed Messages (Owner)',$+='Escape Fail Absorbed Messages (Prey)',$+='Primary Transfer Messages (Owner)',$+='Primary Transfer Messages (Prey)',$+='Secondary Transfer Messages (Owner)',$+='Secondary Transfer Messages (Prey)',$+='Digest Chance Messages (Owner)',$+='Digest Chance Messages (Prey)',$+='Absorb Chance Messages (Owner)',$+='Absorb Chance Messages (Prey)',$+='Struggle Messages (Outside)',$+='Struggle Messages (Inside)',$+='Absorbed Struggle Messages (Outside)',$+='Absorbed Struggle Messages (Inside)',$+='Digest Messages (Owner)',$+='Digest Messages (Prey)',$+='Absorb Messages (Owner)',$+='Absorb Messages (Prey)',$+='Unabsorb Messages (Owner)',$+='Unabsorb Messages (Prey)',$+='Examine Messages',$+='Examine Messages (Absorbed)',$+="',$+='',$+='",$+="',we==null||we.forEach(function(Me){$+=Me+"",$+='
"}),$+="',pe==null||pe.forEach(function(Me){$+=Me+"",$+='
"}),$+="',E==null||E.forEach(function(Me){$+=Me+"",$+='
"}),$+="',Z==null||Z.forEach(function(Me){$+=Me+"",$+='
"}),$+="',re==null||re.forEach(function(Me){$+=Me+"",$+='
"}),$+="',X==null||X.forEach(function(Me){$+=Me+"",$+='
"}),$+="',ne==null||ne.forEach(function(Me){$+=Me+"",$+='
"}),$+="',ve==null||ve.forEach(function(Me){$+=Me+"",$+='
"}),$+="',Ve==null||Ve.forEach(function(Me){$+=Me+"",$+='
"}),$+="',Ie==null||Ie.forEach(function(Me){$+=Me+"",$+='
"}),$+="',Pe==null||Pe.forEach(function(Me){$+=Me+"",$+='
"}),$+="',Ae==null||Ae.forEach(function(Me){$+=Me+"",$+='
"}),$+="',Oe==null||Oe.forEach(function(Me){$+=Me+"",$+='
"}),$+="',de==null||de.forEach(function(Me){$+=Me+"",$+='
"}),$+="',ge==null||ge.forEach(function(Me){$+=Me+"",$+='
"}),$+="',j==null||j.forEach(function(Me){$+=Me+"",$+='
"}),$+="',ue==null||ue.forEach(function(Me){$+=Me+"",$+='
"}),$+="',be==null||be.forEach(function(Me){$+=Me+"",$+='
"}),$+="',ke==null||ke.forEach(function(Me){$+=Me+"",$+='
"}),$+="',Te==null||Te.forEach(function(Me){$+=Me+"",$+='
"}),$+="',Ee==null||Ee.forEach(function(Me){$+=Me+"",$+='
"}),$+="',Re==null||Re.forEach(function(Me){$+=Me+"",$+='
"}),$+="',_e==null||_e.forEach(function(Me){$+=Me+"",$+='
"}),$+="',De==null||De.forEach(function(Me){$+=Me+"",$+='
"}),$+="',Ue==null||Ue.forEach(function(Me){$+=Me+"",$+='
"}),$+="',ee==null||ee.forEach(function(Me){$+=Me+"",$+='
"}),$+="',ie==null||ie.forEach(function(Me){$+=Me+"",$+='
"}),$+="',Ce==null||Ce.forEach(function(Me){$+=Me+"",$+='
"}),$+="',Se==null||Se.forEach(function(Me){$+=Me+"",$+='
"}),$+="',Xe==null||Xe.forEach(function(Me){$+=Me+"",$+='
"}),$+="',Qe==null||Qe.forEach(function(Me){$+=Me+"",$+='
"}),$+="',$e==null||$e.forEach(function(Me){$+=Me+"",$+='
"}),$+="',ht==null||ht.forEach(function(Me){$+=Me+"",$+='
"}),$+="',lt==null||lt.forEach(function(Me){$+=Me+"",$+='
"}),$+="',ut==null||ut.forEach(function(Me){$+=Me+"",$+='
"}),$+="',kt==null||kt.forEach(function(Me){$+=Me+"",$+='
"}),$+="',St==null||St.forEach(function(Me){$+=Me+"",$+="
"}),$+="= Idle Messages =
",$+="
Idle Messages (Hold):
",Bt==null||Bt.forEach(function(Me){$+=Me+"
"}),$+="
",$+="Idle Messages (Hold Absorbed):
",Ot==null||Ot.forEach(function(Me){$+=Me+"
"}),$+="
",$+="Idle Messages (Digest):
",Mt==null||Mt.forEach(function(Me){$+=Me+"
"}),$+="
",$+="Idle Messages (Absorb):
",Pt==null||Pt.forEach(function(Me){$+=Me+"
"}),$+="
",$+="Idle Messages (Unabsorb):
",gt==null||gt.forEach(function(Me){$+=Me+"
"}),$+="
",$+="Idle Messages (Drain):
",dt==null||dt.forEach(function(Me){$+=Me+"
"}),$+="
",$+="Idle Messages (Heal):
",Ct==null||Ct.forEach(function(Me){$+=Me+"
"}),$+="
",$+="Idle Messages (Size Steal):
",et==null||et.forEach(function(Me){$+=Me+"
"}),$+="
",$+="Idle Messages (Shrink):
",st==null||st.forEach(function(Me){$+=Me+"
"}),$+="
",$+="Idle Messages (Grow):
",vt==null||vt.forEach(function(Me){$+=Me+"
"}),$+="
",$+="Idle Messages (Encase In Egg):
",nt==null||nt.forEach(function(Me){$+=Me+"
"}),$+="
",$+="
",$+="
",$+='',$+='',$+='",$+='',$+='
",$+='',$+="== Options ==
",$+="',$+='',$+='',$+='
",$+="- Can Taste: '+(O?'Yes':'No')+"
",$+='- Feedable: '+(_?'Yes':'No')+"
",$+='- Contaminates: '+(P?'Yes':'No')+"
",$+='- Contamination Flavor: '+D+"
",$+='- Contamination Color: '+z+"
",$+='- Nutritional Gain: '+U+"%
",$+='- Required Examine Size: '+W*100+"%
",$+='- Display Absorbed Examines: '+(K?'True':'False')+"
",$+='- Save Digest Mode: '+(H?'True':'False')+"
",$+='- Idle Emotes: '+(Y?'Active':'Inactive')+"
",$+='- Idle Emote Delay: '+J+" seconds
",$+='- Shrink/Grow Size: '+q*100+"%
",$+='- Vore Spawn Blacklist: '+(oe?'Yes':'No')+"
",$+='- Egg Type: '+ae+"
",$+='- Selective Mode Preference: '+he+"
",$+="',$+='",$+='',$+='
",$+='',$+="== Sounds ==
",$+="',$+='',$+='',$+='
",$+="- Fleshy Belly: '+($t?'Yes':'No')+"
",$+='- Internal Loop: '+(Yt?'Yes':'No')+"
",$+='- Use Fancy Sounds: '+(Xt?'Yes':'No')+"
",$+='- Vore Sound: '+Qt+"
",$+='- Release Sound: '+Lt+"
",$+="',$+='",$+='',$+='
",$+='',$+="== Visuals ==
",$+="",$+='',$+="Vore Sprites",$+='',$+='
",$+="Belly Fullscreens Preview and Coloring",$+='- Affect Vore Sprites: '+(_t?'Yes':'No')+"
",$+='- Count Absorbed prey for vore sprites: '+(It?'Yes':'No')+"
",$+='- Animation when prey resist: '+(Je?'Yes':'No')+"
",$+='- Vore Sprite Size Factor: '+qt+"
",$+='- Belly Sprite to affect: '+en+"
",$+="',$+='
",$+="Vore FX",$+='- Color: '+xt+"",$+="
',$+='
",$+="- Disable Prey HUD: '+(on?'Yes':'No')+"
",$+="',$+='",$+='',$+='
",$+='',$+="== Interactions ==",$+=" ',$+='',$+="Belly Interactions ("+(Rt?'Enabled':'Disabled')+")",$+='',$+='
",$+="- Escape Chance: '+rn+"%
",$+='- Escape Chance: '+at+"%
",$+='- Escape Time: '+an/10+"s
",$+='- Transfer Chance: '+cn+"%
",$+='- Transfer Location: '+ln+"
",$+='- Secondary Transfer Chance: '+un+"%
",$+='- Secondary Transfer Location: '+dn+"
",$+='- Absorb Chance: '+sn+"%
",$+='- Digest Chance: '+wt+"%
",$+="
",$+="Auto-Transfer Options ("+(fn?'Enabled':'Disabled')+")",$+='',$+='
",$+="- Auto-Transfer Time: '+mn/10+"s
",$+='- Auto-Transfer Chance: '+Tt+"%
",$+='- Auto-Transfer Location: '+Dt+"
",$+='- Auto-Transfer Chance: '+Ft+"%
",$+='- Auto-Transfer Location: '+jt+"
",$+='- Auto-Transfer Min Amount: '+pn+"
",$+='- Auto-Transfer Max Amount: '+hn+"
",$+='- Auto-Transfer Primary Chance: '+Tt+"%
",$+='- Auto-Transfer Primary Location: '+Dt+"
",$+='- Auto-Transfer Primary Whitelist (Mobs): '+l(it,!0)+"
",$+='- Auto-Transfer Primary Whitelist (Items): '+l(vn,!0)+"
",$+='- Auto-Transfer Primary Blacklist (Mobs): '+l(Vt,!1)+"
",$+='- Auto-Transfer Primary Blacklist (Items): '+l(zt,!1)+"
",$+='- Auto-Transfer Secondary Chance: '+Ft+"%
",$+='- Auto-Transfer Secondary Location: '+jt+"
",$+='- Auto-Transfer Secondary Whitelist (Mobs): '+l(Wt,!0)+"
",$+='- Auto-Transfer Secondary Whitelist (Items): '+l(Ut,!0)+"
",$+='- Auto-Transfer Secondary Blacklist (Mobs): '+l(Cn,!1)+"
",$+='- Auto-Transfer Secondary Blacklist (Items): '+l(gn,!1)+"
",$+="',$+='",$+='',$+='
",$+='',$+="== Liquid Options ("+(Nt?'Liquids On':'Liquids Off')+") ==",$+=" ',$+='',$+='',$+='
",$+="- Generate Liquids: '+(Nn?'On':'Off')+"
",$+='- Liquid Type: '+At+"
",$+='- Liquid Name: '+Ht+"
",$+='- Transfer Verb: '+bn+"
",$+='- Generation Time: '+Gt+"
",$+='- Liquid Capacity: '+Kt+"
",$+='- Slosh Sounds: '+(Et?'On':'Off')+"
",$+='- Liquid Addons: '+s(Bn)+"
",$+="',$+='",$+="',$+='
",$+='',$+="== Liquid Messages ("+(Nt?'Messages On':'Messages Off')+") ==",$+=" ',$+='',$+='',$+='",$+="",$+="',$+='",$+='',$+='',$+='",$+="',ft==null||ft.forEach(function(Me){$+=Me+"",$+='
"}),$+="',rt==null||rt.forEach(function(Me){$+=Me+"",$+='
"}),$+="',yt==null||yt.forEach(function(Me){$+=Me+"",$+='
"}),$+="',Ze==null||Ze.forEach(function(Me){$+=Me+"",$+='
"}),$+="',pt==null||pt.forEach(function(Me){$+=Me+"",$+="
"}),$+="'+w.length+" Exported Bellies (DB_VER: "+L+"-"+B+') '+R+'Bellies of '+I+'
Generated on: '+T+'
'],{type:"text/html;charset=utf8"}),w.forEach(function(O,_){A=new Blob([A,u(O,_)],{type:"text/html;charset=utf8"})}),A=new Blob([A,"",'