diff --git a/code/datums/outfits/outfit_security_clown.dm b/code/datums/outfits/outfit_security_clown.dm index 53e2bb8f0a9..9f628a62c9c 100644 --- a/code/datums/outfits/outfit_security_clown.dm +++ b/code/datums/outfits/outfit_security_clown.dm @@ -128,6 +128,7 @@ I.access.Add(ACCESS_CLOWN, ACCESS_MIME, ACCESS_THEATRE) I.assignment = name H.sec_hud_set_ID() + H.grant_mimicking() //=========== security clown equipment =========== diff --git a/code/datums/spells/cluwne.dm b/code/datums/spells/cluwne.dm index 01068b6edc2..b4609830126 100644 --- a/code/datums/spells/cluwne.dm +++ b/code/datums/spells/cluwne.dm @@ -42,7 +42,7 @@ equip_to_slot_or_del(new /obj/item/clothing/gloves/cursedclown, ITEM_SLOT_GLOVES) equip_to_slot_or_del(new /obj/item/clothing/mask/cursedclown, ITEM_SLOT_MASK) equip_to_slot_or_del(new /obj/item/clothing/shoes/cursedclown, ITEM_SLOT_FEET) - + grant_mimicking() /mob/living/carbon/human/proc/makeAntiCluwne() to_chat(src, "You don't feel very funny.") diff --git a/code/game/jobs/job/support.dm b/code/game/jobs/job/support.dm index e68887424ff..49e818c79a4 100644 --- a/code/game/jobs/job/support.dm +++ b/code/game/jobs/job/support.dm @@ -316,6 +316,134 @@ H.force_gene_block(GLOB.clumsyblock, TRUE, TRUE) H.force_gene_block(GLOB.comicblock, TRUE, TRUE) H.add_language(LANGUAGE_CLOWN) + H.grant_mimicking() + +/mob/living/carbon/human/proc/grant_mimicking() + if(!(locate(/datum/action/innate/mimicking) in actions)) + var/datum/action/innate/mimicking/mimicking = new + mimicking.Grant(src) + verbs |= /mob/living/carbon/human/proc/mimicking + +/datum/action/innate/mimicking + name = "Mimicking" + button_icon_state = "clown" + check_flags = AB_CHECK_CONSCIOUS + var/list/voice_slots = list() + var/empty_slots = 3 + var/list/available_voices + var/datum/mimicking_voice/selected + +/datum/action/innate/mimicking/New() + ..() + var/donor_level = owner?.client ? owner.client.donator_level : 0 + available_voices = list() + for(var/level in 0 to donor_level) + available_voices += SStts.tts_seeds_names_by_donator_levels["[level]"] + +/datum/action/innate/mimicking/Trigger(left_click) + if(!..()) + return FALSE + ui_interact(owner) + +/datum/action/innate/mimicking/ui_state(mob/user) + return GLOB.conscious_state + +/datum/action/innate/mimicking/ui_interact(mob/user, datum/tgui/ui = null) + ui = SStgui.try_update_ui(user, src, ui) + if(!ui) + ui = new(user, src, "Mimicking", "Mimicking") + ui.set_autoupdate(FALSE) + ui.open() + +/datum/action/innate/mimicking/ui_act(action, list/params, datum/tgui/ui, datum/ui_state/state) + if(..()) + return + var/datum/mimicking_voice/voice + if(params["id"]) + for(var/datum/mimicking_voice/find_voice in voice_slots) + if(find_voice.UID() != params["id"]) + continue + voice = find_voice + switch(action) + if("Choose") + if(!voice) + stack_trace("Mimicking can not find it own voice.") + return + if(voice.selected) + return + set_selected(voice) + owner.update_tts_seed(voice.voice) + if("Delete") + if(!voice) + stack_trace("Mimicking can not find it own voice.") + return + if(voice.selected) + selected = null + voice_slots -= voice + empty_slots++ + if("Add") + if(empty_slots < 1) + to_chat(owner, span_notice("You have no available slots.")) + return + var/voice_name = input(owner, "Choose a name for slot.", "Mimicking") as text|null + if(!voice_name) + return + var/voice_seed = tgui_input_list(owner, "Choose a voice for slot", "Mimicking", available_voices, owner.tts_seed) + if(!voice_seed) + return + var/new_voice = new /datum/mimicking_voice(voice_name, voice_seed) + add_voice(new_voice) + SStgui.update_uis(src) + +/datum/action/innate/mimicking/ui_data(mob/user) + var/list/data = list() + var/list/slots = list() + for(var/datum/mimicking_voice/voice in voice_slots) + if(istype(voice)) + slots += list(voice.voice_data()) + data["slots"] = slots + return data + +/datum/action/innate/mimicking/proc/set_selected(datum/mimicking_voice/new_voice) + if(selected) + selected.selected = FALSE + selected = new_voice + selected.selected = TRUE + +/datum/action/innate/mimicking/proc/add_voice(datum/mimicking_voice/voice) + voice_slots += voice + empty_slots-- + +/datum/action/innate/mimicking/proc/remove_voice(datum/mimicking_voice/voice) + voice_slots -= voice + empty_slots++ + +/datum/mimicking_voice + var/name + var/voice + var/selected = FALSE + +/datum/mimicking_voice/New(name, voice) + src.name = name + src.voice = voice + +/datum/mimicking_voice/proc/voice_data() + return list("name" = name, "voice" = voice, "selected" = selected, "id" = UID()) + +/mob/living/carbon/human/proc/mimicking(var/mob/living/carbon/human/H) + set name = "Mimic voice" + set category = "IC" + if(!H) + to_chat(usr, span_notice("Use right click to choose target correctly.")) + var/datum/action/innate/mimicking/mimic = locate(/datum/action/innate/mimicking) in usr.actions + if(!mimic) + return + if(mimic.empty_slots < 1) + to_chat(usr, span_notice("You have no available slots.")) + return + var/new_voice = new /datum/mimicking_voice(H.name, H.tts_seed) + mimic.add_voice(new_voice) + SStgui.update_uis(mimic) //action given to antag clowns /datum/action/innate/toggle_clumsy diff --git a/code/modules/admin/verbs/honksquad.dm b/code/modules/admin/verbs/honksquad.dm index 1f0070491a7..27fad4cdfcd 100644 --- a/code/modules/admin/verbs/honksquad.dm +++ b/code/modules/admin/verbs/honksquad.dm @@ -130,6 +130,7 @@ GLOBAL_VAR_INIT(sent_clownsequritysquad, 0) else equip_to_slot_or_del(new /obj/item/gun/throw/piecannon(src), ITEM_SLOT_BACKPACK) src.mutations.Add(CLUMSY) + grant_mimicking() var/obj/item/implant/sad_trombone/S = new/obj/item/implant/sad_trombone(src) S.implant(src) diff --git a/tgui/packages/tgui/interfaces/Mimicking.js b/tgui/packages/tgui/interfaces/Mimicking.js new file mode 100644 index 00000000000..30ff8ff8490 --- /dev/null +++ b/tgui/packages/tgui/interfaces/Mimicking.js @@ -0,0 +1,46 @@ +import { useBackend } from '../backend'; +import { Box, Button, Section, Stack } from '../components'; +import { Window } from '../layouts'; + +export const Mimicking = (props, context) => { + const { act, data } = useBackend(context); + const slots = data.slots || []; + + return ( + + + +
+ {slots.map((voice) => ( +
+
+ ))} +
+
+
+
+ ); +}; diff --git a/tgui/public/tgui.bundle.js b/tgui/public/tgui.bundle.js index ea4a91c7f54..88b0833e61a 100644 --- a/tgui/public/tgui.bundle.js +++ b/tgui/public/tgui.bundle.js @@ -238,7 +238,7 @@ * @file * @copyright 2020 Aleksej Komarov * @license MIT - */var y=(0,t.createLogger)("hotkeys"),V={},k=[e.KEY_ESCAPE,e.KEY_ENTER,e.KEY_SPACE,e.KEY_TAB,e.KEY_CTRL,e.KEY_SHIFT,e.KEY_UP,e.KEY_DOWN,e.KEY_LEFT,e.KEY_RIGHT],S={},p=function(c){if(c===16)return"Shift";if(c===17)return"Ctrl";if(c===18)return"Alt";if(c===33)return"Northeast";if(c===34)return"Southeast";if(c===35)return"Southwest";if(c===36)return"Northwest";if(c===37)return"West";if(c===38)return"North";if(c===39)return"East";if(c===40)return"South";if(c===45)return"Insert";if(c===46)return"Delete";if(c>=48&&c<=57||c>=65&&c<=90)return String.fromCharCode(c);if(c>=96&&c<=105)return"Numpad"+(c-96);if(c>=112&&c<=123)return"F"+(c-111);if(c===188)return",";if(c===189)return"-";if(c===190)return"."},i=function(c){var v=String(c);if(v==="Ctrl+F5"||v==="Ctrl+R"){location.reload();return}if(v!=="Ctrl+F"&&!(c.event.defaultPrevented||c.isModifierKey()||k.includes(c.code))){v==="F5"&&(c.event.preventDefault(),c.event.returnValue=!1);var b=p(c.code);if(b){var C=V[b];if(C)return y.debug("macro",C),Byond.command(C);if(c.isDown()&&!S[b]){S[b]=!0;var h='KeyDown "'+b+'"';return y.debug(h),Byond.command(h)}if(c.isUp()&&S[b]){S[b]=!1;var g='KeyUp "'+b+'"';return y.debug(g),Byond.command(g)}}}},l=r.acquireHotKey=function(){function m(c){k.push(c)}return m}(),f=r.releaseHotKey=function(){function m(c){var v=k.indexOf(c);v>=0&&k.splice(v,1)}return m}(),u=r.releaseHeldKeys=function(){function m(){for(var c=0,v=Object.keys(S);c=75?l="green":i.integrity>=25?l="yellow":l="red",(0,e.createComponentVNode)(2,o.Window,{width:600,height:420,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:i.name,children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Integrity",children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:l,value:i.integrity/100})})}),(0,e.createComponentVNode)(2,t.Box,{color:"red",children:(0,e.createVNode)(1,"h2",null,i.flushing===1?"Wipe of AI in progress...":"",0)})]})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Laws",children:!!i.has_laws&&(0,e.createComponentVNode)(2,t.Box,{children:i.laws.map(function(f,u){return(0,e.createComponentVNode)(2,t.Box,{children:f},u)})})||(0,e.createComponentVNode)(2,t.Box,{color:"red",children:(0,e.createVNode)(1,"h3",null,"No laws detected.",16)})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Actions",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Wireless Activity",children:(0,e.createComponentVNode)(2,t.Button,{width:10,icon:i.wireless?"check":"times",content:i.wireless?"Enabled":"Disabled",color:i.wireless?"green":"red",onClick:function(){function f(){return p("wireless")}return f}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Subspace Transceiver",children:(0,e.createComponentVNode)(2,t.Button,{width:10,icon:i.radio?"check":"times",content:i.radio?"Enabled":"Disabled",color:i.radio?"green":"red",onClick:function(){function f(){return p("radio")}return f}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Wipe",children:(0,e.createComponentVNode)(2,t.Button.Confirm,{width:10,icon:"trash-alt",confirmIcon:"trash-alt",disabled:i.flushing||i.integrity===0,confirmColor:"red",content:"Wipe AI",onClick:function(){function f(){return p("wipe")}return f}()})})]})})})]})})})}return y}()},78468:function(I,r,n){"use strict";r.__esModule=!0,r.AIFixer=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),s=r.AIFixer=function(){function y(V,k){var S=(0,a.useBackend)(k),p=S.act,i=S.data;if(i.occupant===null)return(0,e.createComponentVNode)(2,o.Window,{width:550,height:500,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Stored AI",children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,grow:!0,textAlign:"center",align:"center",color:"average",children:[(0,e.createComponentVNode)(2,t.Icon.Stack,{children:[(0,e.createComponentVNode)(2,t.Icon,{name:"robot",size:5,color:"silver"}),(0,e.createComponentVNode)(2,t.Icon,{name:"slash",size:5,color:"red"})]}),(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"h3",null,"No Artificial Intelligence detected.",16)]})})})})});var l=!0;(i.stat===2||i.stat===null)&&(l=!1);var f=null;i.integrity>=75?f="green":i.integrity>=25?f="yellow":f="red";var u=!0;return i.integrity>=100&&i.stat!==2&&(u=!1),(0,e.createComponentVNode)(2,o.Window,{scrollable:!0,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:i.occupant,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Integrity",children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:f,value:i.integrity/100})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",color:l?"green":"red",children:l?"Functional":"Non-Functional"})]})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Laws",children:!!i.has_laws&&(0,e.createComponentVNode)(2,t.Box,{children:i.laws.map(function(d,m){return(0,e.createComponentVNode)(2,t.Box,{inline:!0,children:d},m)})})||(0,e.createComponentVNode)(2,t.Box,{color:"red",children:(0,e.createVNode)(1,"h3",null,"No laws detected.",16)})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Actions",children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Wireless Activity",children:(0,e.createComponentVNode)(2,t.Button,{icon:i.wireless?"times":"check",content:i.wireless?"Disabled":"Enabled",color:i.wireless?"red":"green",onClick:function(){function d(){return p("wireless")}return d}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Subspace Transceiver",children:(0,e.createComponentVNode)(2,t.Button,{icon:i.radio?"times":"check",content:i.radio?"Disabled":"Enabled",color:i.radio?"red":"green",onClick:function(){function d(){return p("radio")}return d}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Start Repairs",children:(0,e.createComponentVNode)(2,t.Button,{icon:"wrench",disabled:!u||i.active,content:!u||i.active?"Already Repaired":"Repair",onClick:function(){function d(){return p("fix")}return d}()})})]}),(0,e.createComponentVNode)(2,t.Box,{color:"green",lineHeight:2,children:i.active?"Reconstruction in progress.":""})]})})]})})})}return y}()},73544:function(I,r,n){"use strict";r.__esModule=!0,r.APC=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),s=n(26893),y=r.APC=function(){function p(i,l){return(0,e.createComponentVNode)(2,o.Window,{width:510,height:435,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,S)})})}return p}(),V={2:{color:"good",externalPowerText:"External Power",chargingText:"Fully Charged"},1:{color:"average",externalPowerText:"Low External Power",chargingText:"Charging"},0:{color:"bad",externalPowerText:"No External Power",chargingText:"Not Charging"}},k={1:{icon:"terminal",content:"Override Programming",action:"hack"},2:{icon:"caret-square-down",content:"Shunt Core Process",action:"occupy"},3:{icon:"caret-square-left",content:"Return to Main Core",action:"deoccupy"},4:{icon:"caret-square-down",content:"Shunt Core Process",action:"occupy"}},S=function(i,l){var f=(0,a.useBackend)(l),u=f.act,d=f.data,m=d.locked&&!d.siliconUser,c=d.normallyLocked,v=V[d.externalPower]||V[0],b=V[d.chargingStatus]||V[0],C=d.powerChannels||[],h=k[d.malfStatus]||k[0],g=d.powerCellStatus/100;return(0,e.createFragment)([(0,e.createComponentVNode)(2,s.InterfaceLockNoticeBox),(0,e.createComponentVNode)(2,t.Section,{title:"Power Status",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Main Breaker",color:v.color,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:d.isOperating?"power-off":"times",content:d.isOperating?"On":"Off",selected:d.isOperating&&!m,color:d.isOperating?"":"bad",disabled:m,onClick:function(){function N(){return u("breaker")}return N}()}),children:["[ ",v.externalPowerText," ]"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power Cell",children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:"good",value:g})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Charge Mode",color:b.color,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:d.chargeMode?"sync":"times",content:d.chargeMode?"Auto":"Off",selected:d.chargeMode,disabled:m,onClick:function(){function N(){return u("charge")}return N}()}),children:["[ ",b.chargingText," ]"]})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Power Channels",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[C.map(function(N){var x=N.topicParams;return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:N.title,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{inline:!0,mx:2,color:N.status>=2?"good":"bad",children:N.status>=2?"On":"Off"}),(0,e.createComponentVNode)(2,t.Button,{icon:"sync",content:"Auto",selected:!m&&(N.status===1||N.status===3),disabled:m,onClick:function(){function B(){return u("channel",x.auto)}return B}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"power-off",content:"On",selected:!m&&N.status===2,disabled:m,onClick:function(){function B(){return u("channel",x.on)}return B}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"times",content:"Off",selected:!m&&N.status===0,disabled:m,onClick:function(){function B(){return u("channel",x.off)}return B}()})],4),children:[N.powerLoad," W"]},N.title)}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Total Load",children:(0,e.createVNode)(1,"b",null,[d.totalLoad,(0,e.createTextVNode)(" W")],0)})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Misc",buttons:!!d.siliconUser&&(0,e.createFragment)([!!d.malfStatus&&(0,e.createComponentVNode)(2,t.Button,{icon:h.icon,content:h.content,color:"bad",onClick:function(){function N(){return u(h.action)}return N}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"lightbulb-o",content:"Overload",onClick:function(){function N(){return u("overload")}return N}()})],0),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cover Lock",buttons:(0,e.createComponentVNode)(2,t.Button,{mb:.4,icon:d.coverLocked?"lock":"unlock",content:d.coverLocked?"Engaged":"Disengaged",disabled:m,onClick:function(){function N(){return u("cover")}return N}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Night Shift Lighting",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"lightbulb-o",content:d.nightshiftLights?"Enabled":"Disabled",onClick:function(){function N(){return u("toggle_nightshift")}return N}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Emergency Lighting Fallback",buttons:(0,e.createComponentVNode)(2,t.Button,{mt:.4,icon:"lightbulb-o",content:d.emergencyLights?"Engaged":"Disengaged",disabled:m,onClick:function(){function N(){return u("emergency_lighting")}return N}()})})]})})],4)}},79098:function(I,r,n){"use strict";r.__esModule=!0,r.ATM=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),s=r.ATM=function(){function f(u,d){var m=(0,a.useBackend)(d),c=m.act,v=m.data,b=v.view_screen,C=v.authenticated_account,h=v.ticks_left_locked_down,g=v.linked_db,N;if(h>0)N=(0,e.createComponentVNode)(2,t.Box,{bold:!0,color:"bad",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"exclamation-triangle"}),"Maximum number of pin attempts exceeded! Access to this ATM has been temporarily disabled."]});else if(!g)N=(0,e.createComponentVNode)(2,t.Box,{bold:!0,color:"bad",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"exclamation-triangle"}),"Unable to connect to accounts database, please retry and if the issue persists contact Nanotrasen IT support."]});else if(C)switch(b){case 1:N=(0,e.createComponentVNode)(2,V);break;case 2:N=(0,e.createComponentVNode)(2,k);break;case 3:N=(0,e.createComponentVNode)(2,i);break;default:N=(0,e.createComponentVNode)(2,S)}else N=(0,e.createComponentVNode)(2,p);return(0,e.createComponentVNode)(2,o.Window,{width:550,height:650,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,y),(0,e.createComponentVNode)(2,t.Section,{children:N})]})})}return f}(),y=function(u,d){var m=(0,a.useBackend)(d),c=m.act,v=m.data,b=v.machine_id,C=v.held_card_name;return(0,e.createComponentVNode)(2,t.Section,{title:"Nanotrasen Automatic Teller Machine",children:[(0,e.createComponentVNode)(2,t.Box,{children:"For all your monetary needs!"}),(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Card",children:(0,e.createComponentVNode)(2,t.Button,{content:C,icon:"eject",onClick:function(){function h(){return c("insert_card")}return h}()})})})]})},V=function(u,d){var m=(0,a.useBackend)(d),c=m.act,v=m.data,b=v.security_level;return(0,e.createComponentVNode)(2,t.Section,{title:"Select a new security level for this account",children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Level",children:(0,e.createComponentVNode)(2,t.Button,{content:"Account Number",icon:"unlock",selected:b===0,onClick:function(){function C(){return c("change_security_level",{new_security_level:0})}return C}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Description",children:"Either the account number or card is required to access this account. EFTPOS transactions will require a card."}),(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Level",children:(0,e.createComponentVNode)(2,t.Button,{content:"Account Pin",icon:"unlock",selected:b===1,onClick:function(){function C(){return c("change_security_level",{new_security_level:1})}return C}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Description",children:"An account number and pin must be manually entered to access this account and process transactions."}),(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Level",children:(0,e.createComponentVNode)(2,t.Button,{content:"Card and Account Pin",icon:"unlock",selected:b===2,onClick:function(){function C(){return c("change_security_level",{new_security_level:2})}return C}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Description",children:"An account number, pin and card are required to access this account and process transactions."})]}),(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,l)]})},k=function(u,d){var m=(0,a.useBackend)(d),c=m.act,v=m.data,b=(0,a.useLocalState)(d,"targetAccNumber",0),C=b[0],h=b[1],g=(0,a.useLocalState)(d,"fundsAmount",0),N=g[0],x=g[1],B=(0,a.useLocalState)(d,"purpose",0),L=B[0],w=B[1],A=v.money;return(0,e.createComponentVNode)(2,t.Section,{title:"Transfer Fund",children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Account Balance",children:["$",A]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Target Account Number",children:(0,e.createComponentVNode)(2,t.Input,{placeholder:"7 Digit Number",onInput:function(){function T(E,O){return h(O)}return T}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Funds to Transfer",children:(0,e.createComponentVNode)(2,t.Input,{onInput:function(){function T(E,O){return x(O)}return T}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Transaction Purpose",children:(0,e.createComponentVNode)(2,t.Input,{fluid:!0,onInput:function(){function T(E,O){return w(O)}return T}()})})]}),(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,t.Button,{content:"Transfer",icon:"sign-out-alt",onClick:function(){function T(){return c("transfer",{target_acc_number:C,funds_amount:N,purpose:L})}return T}()}),(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,l)]})},S=function(u,d){var m=(0,a.useBackend)(d),c=m.act,v=m.data,b=(0,a.useLocalState)(d,"fundsAmount",0),C=b[0],h=b[1],g=v.owner_name,N=v.money;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{title:"Welcome, "+g,buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Logout",icon:"sign-out-alt",onClick:function(){function x(){return c("logout")}return x}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Account Balance",children:["$",N]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Withdrawal Amount",children:(0,e.createComponentVNode)(2,t.Input,{onInput:function(){function x(B,L){return h(L)}return x}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Withdraw Funds",icon:"sign-out-alt",onClick:function(){function x(){return c("withdrawal",{funds_amount:C})}return x}()})})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Menu",children:[(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Change account security level",icon:"lock",onClick:function(){function x(){return c("view_screen",{view_screen:1})}return x}()})}),(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Make transfer",icon:"exchange-alt",onClick:function(){function x(){return c("view_screen",{view_screen:2})}return x}()})}),(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:"View transaction log",icon:"list",onClick:function(){function x(){return c("view_screen",{view_screen:3})}return x}()})}),(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Print balance statement",icon:"print",onClick:function(){function x(){return c("balance_statement")}return x}()})})]})],4)},p=function(u,d){var m=(0,a.useBackend)(d),c=m.act,v=m.data,b=(0,a.useLocalState)(d,"accountID",null),C=b[0],h=b[1],g=(0,a.useLocalState)(d,"accountPin",null),N=g[0],x=g[1],B=v.machine_id,L=v.held_card_name;return(0,e.createComponentVNode)(2,t.Section,{title:"Insert card or enter ID and pin to login",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Account ID",children:(0,e.createComponentVNode)(2,t.Input,{placeholder:"6 Digit Number",onInput:function(){function w(A,T){return h(T)}return w}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Pin",children:(0,e.createComponentVNode)(2,t.Input,{placeholder:"6 Digit Number",onInput:function(){function w(A,T){return x(T)}return w}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Login",icon:"sign-in-alt",onClick:function(){function w(){return c("attempt_auth",{account_num:C,account_pin:N})}return w}()})})]})})},i=function(u,d){var m=(0,a.useBackend)(d),c=m.act,v=m.data,b=v.transaction_log;return(0,e.createComponentVNode)(2,t.Section,{title:"Transactions",children:[(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Timestamp"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Reason"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Value"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Terminal"})]}),b.map(function(C){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:C.time}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:C.purpose}),(0,e.createComponentVNode)(2,t.Table.Cell,{color:C.is_deposit?"green":"red",children:["$",C.amount]}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:C.target_name})]},C)})]}),(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,l)]})},l=function(u,d){var m=(0,a.useBackend)(d),c=m.act,v=m.data;return(0,e.createComponentVNode)(2,t.Button,{content:"Back",icon:"sign-out-alt",onClick:function(){function b(){return c("view_screen",{view_screen:0})}return b}()})}},64613:function(I,r,n){"use strict";r.__esModule=!0,r.AccountsUplinkTerminal=void 0;var e=n(96524),a=n(78234),t=n(17899),o=n(24674),s=n(5126),y=n(45493),V=n(68159),k=n(27527),S=r.AccountsUplinkTerminal=function(){function d(m,c){var v=(0,t.useBackend)(c),b=v.act,C=v.data,h=C.loginState,g=C.currentPage,N;if(h.logged_in)g===1?N=(0,e.createComponentVNode)(2,p):g===2?N=(0,e.createComponentVNode)(2,f):g===3&&(N=(0,e.createComponentVNode)(2,u));else return(0,e.createComponentVNode)(2,y.Window,{width:800,height:600,children:(0,e.createComponentVNode)(2,y.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,k.LoginScreen)})})});return(0,e.createComponentVNode)(2,y.Window,{width:800,height:600,children:(0,e.createComponentVNode)(2,y.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,V.LoginInfo),(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,children:N})]})})})}return d}(),p=function(m,c){var v=(0,t.useBackend)(c),b=v.act,C=v.data,h=C.accounts,g=(0,t.useLocalState)(c,"searchText",""),N=g[0],x=g[1],B=(0,t.useLocalState)(c,"sortId","owner_name"),L=B[0],w=B[1],A=(0,t.useLocalState)(c,"sortOrder",!0),T=A[0],E=A[1];return(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,l),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,o.Table,{className:"AccountsUplinkTerminal__list",children:[(0,e.createComponentVNode)(2,o.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,i,{id:"owner_name",children:"Account Holder"}),(0,e.createComponentVNode)(2,i,{id:"account_number",children:"Account Number"}),(0,e.createComponentVNode)(2,i,{id:"suspended",children:"Account Status"}),(0,e.createComponentVNode)(2,i,{id:"money",children:"Account Balance"})]}),h.filter((0,a.createSearch)(N,function(O){return O.owner_name+"|"+O.account_number+"|"+O.suspended+"|"+O.money})).sort(function(O,P){var R=T?1:-1;return O[L].localeCompare(P[L])*R}).map(function(O){return(0,e.createComponentVNode)(2,o.Table.Row,{className:"AccountsUplinkTerminal__listRow--"+O.suspended,onClick:function(){function P(){return b("view_account_detail",{index:O.account_index})}return P}(),children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:"user"})," ",O.owner_name]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:["#",O.account_number]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:O.suspended}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:O.money})]},O.account_number)})]})})})]})},i=function(m,c){var v=(0,t.useLocalState)(c,"sortId","name"),b=v[0],C=v[1],h=(0,t.useLocalState)(c,"sortOrder",!0),g=h[0],N=h[1],x=m.id,B=m.children;return(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Button,{color:b!==x&&"transparent",width:"100%",onClick:function(){function L(){b===x?N(!g):(C(x),N(!0))}return L}(),children:[B,b===x&&(0,e.createComponentVNode)(2,o.Icon,{name:g?"sort-up":"sort-down",ml:"0.25rem;"})]})})},l=function(m,c){var v=(0,t.useBackend)(c),b=v.act,C=v.data,h=C.is_printing,g=(0,t.useLocalState)(c,"searchText",""),N=g[0],x=g[1];return(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:[(0,e.createComponentVNode)(2,o.Button,{content:"New Account",icon:"plus",onClick:function(){function B(){return b("create_new_account")}return B}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"print",content:"Print Account List",disabled:h,ml:"0.25rem",onClick:function(){function B(){return b("print_records")}return B}()})]}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Input,{placeholder:"Search by account holder, number, status",width:"100%",onInput:function(){function B(L,w){return x(w)}return B}()})})]})},f=function(m,c){var v=(0,t.useBackend)(c),b=v.act,C=v.data,h=C.account_number,g=C.owner_name,N=C.money,x=C.suspended,B=C.transactions;return(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Section,{title:"#"+h+" / "+g,buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"arrow-left",content:"Back",onClick:function(){function L(){return b("back")}return L}()}),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Account Number",children:["#",h]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Account Holder",children:g}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Account Balance",children:N}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Account Status",color:x?"red":"green",children:[x?"Suspended":"Active",(0,e.createComponentVNode)(2,o.Button,{ml:1,content:x?"Unsuspend":"Suspend",icon:x?"unlock":"lock",onClick:function(){function L(){return b("toggle_suspension")}return L}()})]})]})})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,title:"Transactions",children:(0,e.createComponentVNode)(2,o.Table,{children:[(0,e.createComponentVNode)(2,o.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Timestamp"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Reason"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Value"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Terminal"})]}),B.map(function(L){return(0,e.createComponentVNode)(2,o.Table.Row,{children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:L.time}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:L.purpose}),(0,e.createComponentVNode)(2,o.Table.Cell,{color:L.is_deposit?"green":"red",children:["$",L.amount]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:L.target_name})]},L)})]})})})]})},u=function(m,c){var v=(0,t.useBackend)(c),b=v.act,C=v.data,h=(0,t.useLocalState)(c,"accName",""),g=h[0],N=h[1],x=(0,t.useLocalState)(c,"accDeposit",""),B=x[0],L=x[1];return(0,e.createComponentVNode)(2,o.Section,{title:"Create Account",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"arrow-left",content:"Back",onClick:function(){function w(){return b("back")}return w}()}),children:[(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Account Holder",children:(0,e.createComponentVNode)(2,o.Input,{placeholder:"Name Here",onChange:function(){function w(A,T){return N(T)}return w}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Initial Deposit",children:(0,e.createComponentVNode)(2,o.Input,{placeholder:"0",onChange:function(){function w(A,T){return L(T)}return w}()})})]}),(0,e.createComponentVNode)(2,o.Button,{mt:1,fluid:!0,content:"Create Account",onClick:function(){function w(){return b("finalise_create_account",{holder_name:g,starting_funds:B})}return w}()})]})}},34257:function(I,r,n){"use strict";r.__esModule=!0,r.AgentCardSLSlots=r.AgentCardInfo=r.AgentCardAppearances=r.AgentCard=void 0;var e=n(96524),a=n(28234),t=n(17899),o=n(24674),s=n(45493),y=r.AgentCard=function(){function p(i,l){var f=(0,t.useLocalState)(l,"tabIndex",0),u=f[0],d=f[1],m=function(){function c(v){switch(v){case 0:return(0,e.createComponentVNode)(2,V);case 1:return(0,e.createComponentVNode)(2,k);case 2:return(0,e.createComponentVNode)(2,S);default:return(0,e.createComponentVNode)(2,V)}}return c}();return(0,e.createComponentVNode)(2,s.Window,{width:500,height:475,theme:"syndicate",children:(0,e.createComponentVNode)(2,s.Window.Content,{children:(0,e.createComponentVNode)(2,o.Box,{fillPositionedParent:!0,overflow:"hidden",children:[(0,e.createComponentVNode)(2,o.Tabs,{children:[(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:u===0,onClick:function(){function c(){return d(0)}return c}(),children:[(0,e.createComponentVNode)(2,o.Icon,{name:"table"})," Card Info"]},"Card Info"),(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:u===1,onClick:function(){function c(){return d(1)}return c}(),children:[(0,e.createComponentVNode)(2,o.Icon,{name:"id-card"})," Appearance"]},"Appearance"),(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:u===2,onClick:function(){function c(){return d(2)}return c}(),children:[(0,e.createComponentVNode)(2,o.Icon,{name:"arrow-down"})," Save/Load Card Info"]},"Save/Load Card Info")]}),m(u)]})})})}return p}(),V=r.AgentCardInfo=function(){function p(i,l){var f=(0,t.useBackend)(l),u=f.act,d=f.data,m=d.registered_name,c=d.sex,v=d.age,b=d.assignment,C=d.associated_account_number,h=d.blood_type,g=d.dna_hash,N=d.fingerprint_hash,x=d.photo,B=d.ai_tracking;return(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Section,{title:"Card Info",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Name",children:(0,e.createComponentVNode)(2,o.Button,{content:m||"[UNSET]",onClick:function(){function L(){return u("change_name")}return L}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Sex",children:(0,e.createComponentVNode)(2,o.Button,{iconRight:!1,content:c||"[UNSET]",onClick:function(){function L(){return u("change_sex")}return L}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Age",children:(0,e.createComponentVNode)(2,o.Button,{content:v||"[UNSET]",onClick:function(){function L(){return u("change_age")}return L}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Rank",children:(0,e.createComponentVNode)(2,o.Button,{content:b||"[UNSET]",onClick:function(){function L(){return u("change_occupation")}return L}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Fingerprints",children:(0,e.createComponentVNode)(2,o.Button,{content:N||"[UNSET]",onClick:function(){function L(){return u("change_fingerprints")}return L}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Blood Type",children:(0,e.createComponentVNode)(2,o.Button,{content:h||"[UNSET]",onClick:function(){function L(){return u("change_blood_type")}return L}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"DNA Hash",children:(0,e.createComponentVNode)(2,o.Button,{content:g||"[UNSET]",onClick:function(){function L(){return u("change_dna_hash")}return L}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Money Account",children:(0,e.createComponentVNode)(2,o.Button,{content:C||"[UNSET]",onClick:function(){function L(){return u("change_money_account")}return L}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Photo",children:(0,e.createComponentVNode)(2,o.Button,{content:x?"Update":"[UNSET]",onClick:function(){function L(){return u("change_photo")}return L}()})})]})}),(0,e.createComponentVNode)(2,o.Section,{title:"Card Settings",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Card Info",children:(0,e.createComponentVNode)(2,o.Button,{content:"Delete Card Info",onClick:function(){function L(){return u("delete_info")}return L}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Access",children:(0,e.createComponentVNode)(2,o.Button,{content:"Reset Access",onClick:function(){function L(){return u("clear_access")}return L}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"AI Tracking",children:(0,e.createComponentVNode)(2,o.Button,{content:B?"Untrackable":"Trackable",onClick:function(){function L(){return u("change_ai_tracking")}return L}()})})]})})],4)}return p}(),k=r.AgentCardAppearances=function(){function p(i,l){var f=(0,t.useBackend)(l),u=f.act,d=f.data,m=d.appearances;return(0,e.createComponentVNode)(2,o.Section,{fill:!0,title:"Card Appearance",children:m.map(function(c){return(0,e.createComponentVNode)(2,o.ImageButton,{tooltip:c,vertical:!0,asset:!0,style:{margin:"1px"},image:c,imageAsset:"id_card64x64",onclick:function(){function v(){return u("change_appearance_new",{new_appearance:c})}return v}()},c)})})}return p}(),S=r.AgentCardSLSlots=function(){function p(i,l){var f=(0,t.useBackend)(l),u=f.act,d=f.data,m=d.saved_info;return(0,e.createComponentVNode)(2,o.Section,{title:"Save/Load Manager",style:{"line-height":"25px"},children:(0,e.createComponentVNode)(2,o.LabeledList,{children:m.map(function(c){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:c.registered_name?c.registered_name+", "+c.assignment:"Slot "+c.id,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{content:"Clear",onClick:function(){function v(){return u("clear_slot",{slot:c.id})}return v}()}),(0,e.createComponentVNode)(2,o.Button,{content:"Save",onClick:function(){function v(){return u("save_slot",{slot:c.id})}return v}()}),(0,e.createComponentVNode)(2,o.Button,{content:"Load",disabled:!c.registered_name,onClick:function(){function v(){return u("load_slot",{slot:c.id})}return v}()})],4)},c.id)})})})}return p}()},56839:function(I,r,n){"use strict";r.__esModule=!0,r.AiAirlock=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),s={2:{color:"good",localStatusText:"Offline"},1:{color:"average",localStatusText:"Caution"},0:{color:"bad",localStatusText:"Optimal"}},y=r.AiAirlock=function(){function V(k,S){var p=(0,a.useBackend)(S),i=p.act,l=p.data,f=s[l.power.main]||s[0],u=s[l.power.backup]||s[0],d=s[l.shock]||s[0];return(0,e.createComponentVNode)(2,o.Window,{width:500,height:400,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Power Status",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Main",color:f.color,buttons:(0,e.createComponentVNode)(2,t.Button,{mb:.5,icon:"lightbulb-o",disabled:!l.power.main,content:"Disrupt",onClick:function(){function m(){return i("disrupt-main")}return m}()}),children:[l.power.main?"Online":"Offline"," ",!l.wires.main_power&&"[Wires have been cut!]"||l.power.main_timeleft>0&&"["+l.power.main_timeleft+"s]"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Backup",color:u.color,buttons:(0,e.createComponentVNode)(2,t.Button,{mb:.5,icon:"lightbulb-o",disabled:!l.power.backup,content:"Disrupt",onClick:function(){function m(){return i("disrupt-backup")}return m}()}),children:[l.power.backup?"Online":"Offline"," ",!l.wires.backup_power&&"[Wires have been cut!]"||l.power.backup_timeleft>0&&"["+l.power.backup_timeleft+"s]"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Electrify",color:d.color,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{mr:.5,icon:"wrench",disabled:!(l.wires.shock&&l.shock!==2),content:"Restore",onClick:function(){function m(){return i("shock-restore")}return m}()}),(0,e.createComponentVNode)(2,t.Button,{mr:.5,icon:"bolt",disabled:!l.wires.shock,content:"Temporary",onClick:function(){function m(){return i("shock-temp")}return m}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"bolt",disabled:!l.wires.shock||l.shock===0,content:"Permanent",onClick:function(){function m(){return i("shock-perm")}return m}()})],4),children:[l.shock===2?"Safe":"Electrified"," ",!l.wires.shock&&"[Wires have been cut!]"||l.shock_timeleft>0&&"["+l.shock_timeleft+"s]"||l.shock_timeleft===-1&&"[Permanent]"]})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Access and Door Control",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"ID Scan",color:"bad",buttons:(0,e.createComponentVNode)(2,t.Button,{mb:.5,width:6.5,icon:l.id_scanner?"power-off":"times",content:l.id_scanner?"Enabled":"Disabled",selected:l.id_scanner,disabled:!l.wires.id_scanner,onClick:function(){function m(){return i("idscan-toggle")}return m}()}),children:!l.wires.id_scanner&&"[Wires have been cut!]"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Emergency Access",buttons:(0,e.createComponentVNode)(2,t.Button,{width:6.5,icon:l.emergency?"power-off":"times",content:l.emergency?"Enabled":"Disabled",selected:l.emergency,onClick:function(){function m(){return i("emergency-toggle")}return m}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Divider),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Door Bolts",color:"bad",buttons:(0,e.createComponentVNode)(2,t.Button,{mb:.5,icon:l.locked?"lock":"unlock",content:l.locked?"Lowered":"Raised",selected:l.locked,disabled:!l.wires.bolts,onClick:function(){function m(){return i("bolt-toggle")}return m}()}),children:!l.wires.bolts&&"[Wires have been cut!]"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Door Bolt Lights",color:"bad",buttons:(0,e.createComponentVNode)(2,t.Button,{mb:.5,width:6.5,icon:l.lights?"power-off":"times",content:l.lights?"Enabled":"Disabled",selected:l.lights,disabled:!l.wires.lights,onClick:function(){function m(){return i("light-toggle")}return m}()}),children:!l.wires.lights&&"[Wires have been cut!]"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Door Force Sensors",color:"bad",buttons:(0,e.createComponentVNode)(2,t.Button,{mb:.5,width:6.5,icon:l.safe?"power-off":"times",content:l.safe?"Enabled":"Disabled",selected:l.safe,disabled:!l.wires.safe,onClick:function(){function m(){return i("safe-toggle")}return m}()}),children:!l.wires.safe&&"[Wires have been cut!]"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Door Timing Safety",color:"bad",buttons:(0,e.createComponentVNode)(2,t.Button,{mb:.5,width:6.5,icon:l.speed?"power-off":"times",content:l.speed?"Enabled":"Disabled",selected:l.speed,disabled:!l.wires.timing,onClick:function(){function m(){return i("speed-toggle")}return m}()}),children:!l.wires.timing&&"[Wires have been cut!]"}),(0,e.createComponentVNode)(2,t.LabeledList.Divider),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Door Control",color:"bad",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:l.opened?"sign-out-alt":"sign-in-alt",content:l.opened?"Open":"Closed",selected:l.opened,disabled:l.locked||l.welded,onClick:function(){function m(){return i("open-close")}return m}()}),children:!!(l.locked||l.welded)&&(0,e.createVNode)(1,"span",null,[(0,e.createTextVNode)("[Door is "),l.locked?"bolted":"",l.locked&&l.welded?" and ":"",l.welded?"welded":"",(0,e.createTextVNode)("!]")],0)})]})})]})})}return V}()},5565:function(I,r,n){"use strict";r.__esModule=!0,r.AirAlarm=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),s=n(26893),y=r.AirAlarm=function(){function d(m,c){var v=(0,a.useBackend)(c),b=v.act,C=v.data,h=C.locked;return(0,e.createComponentVNode)(2,o.Window,{width:570,height:h?310:755,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,s.InterfaceLockNoticeBox),(0,e.createComponentVNode)(2,k),!h&&(0,e.createFragment)([(0,e.createComponentVNode)(2,S),(0,e.createComponentVNode)(2,p)],4)]})})}return d}(),V=function(m){return m===0?"green":m===1?"orange":"red"},k=function(m,c){var v=(0,a.useBackend)(c),b=v.act,C=v.data,h=C.air,g=C.mode,N=C.atmos_alarm,x=C.locked,B=C.alarmActivated,L=C.rcon,w=C.target_temp,A;return h.danger.overall===0?N===0?A="Optimal":A="Caution: Atmos alert in area":h.danger.overall===1?A="Caution":A="DANGER: Internals Required",(0,e.createComponentVNode)(2,t.Section,{title:"Air Status",children:h?(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Pressure",children:(0,e.createComponentVNode)(2,t.Box,{color:V(h.danger.pressure),children:[(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:h.pressure})," kPa",!x&&(0,e.createFragment)([(0,e.createTextVNode)("\xA0"),(0,e.createComponentVNode)(2,t.Button,{content:g===3?"Deactivate Panic Siphon":"Activate Panic Siphon",selected:g===3,icon:"exclamation-triangle",onClick:function(){function T(){return b("mode",{mode:g===3?1:3})}return T}()})],4)]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Oxygen",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:h.contents.oxygen/100,fractionDigits:"1",color:V(h.danger.oxygen)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Nitrogen",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:h.contents.nitrogen/100,fractionDigits:"1",color:V(h.danger.nitrogen)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Carbon Dioxide",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:h.contents.co2/100,fractionDigits:"1",color:V(h.danger.co2)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Toxins",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:h.contents.plasma/100,fractionDigits:"1",color:V(h.danger.plasma)})}),h.contents.n2o>.1&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Nitrous Oxide",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:h.contents.n2o/100,fractionDigits:"1",color:V(h.danger.n2o)})}),h.contents.other>.1&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Other",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:h.contents.other/100,fractionDigits:"1",color:V(h.danger.other)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Temperature",children:(0,e.createComponentVNode)(2,t.Box,{color:V(h.danger.temperature),children:[(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:h.temperature})," K /"," ",(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:h.temperature_c})," C\xA0",(0,e.createComponentVNode)(2,t.Button,{icon:"thermometer-full",content:w+" C",onClick:function(){function T(){return b("temperature")}return T}()}),(0,e.createComponentVNode)(2,t.Button,{content:h.thermostat_state?"On":"Off",selected:h.thermostat_state,icon:"power-off",onClick:function(){function T(){return b("thermostat_state")}return T}()})]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Local Status",children:(0,e.createComponentVNode)(2,t.Box,{color:V(h.danger.overall),children:[A,!x&&(0,e.createFragment)([(0,e.createTextVNode)("\xA0"),(0,e.createComponentVNode)(2,t.Button,{content:B?"Reset Alarm":"Activate Alarm",selected:B,onClick:function(){function T(){return b(B?"atmos_reset":"atmos_alarm")}return T}()})],4)]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Remote Control Settings",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Off",selected:L===1,onClick:function(){function T(){return b("set_rcon",{rcon:1})}return T}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Auto",selected:L===2,onClick:function(){function T(){return b("set_rcon",{rcon:2})}return T}()}),(0,e.createComponentVNode)(2,t.Button,{content:"On",selected:L===3,onClick:function(){function T(){return b("set_rcon",{rcon:3})}return T}()})]})]}):(0,e.createComponentVNode)(2,t.Box,{children:"Unable to acquire air sample!"})})},S=function(m,c){var v=(0,a.useLocalState)(c,"tabIndex",0),b=v[0],C=v[1];return(0,e.createComponentVNode)(2,t.Tabs,{children:[(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:b===0,onClick:function(){function h(){return C(0)}return h}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"sign-out-alt"})," Vent Control"]},"Vents"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:b===1,onClick:function(){function h(){return C(1)}return h}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"sign-in-alt"})," Scrubber Control"]},"Scrubbers"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:b===2,onClick:function(){function h(){return C(2)}return h}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"cog"})," Mode"]},"Mode"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:b===3,onClick:function(){function h(){return C(3)}return h}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"tachometer-alt"})," Thresholds"]},"Thresholds")]})},p=function(m,c){var v=(0,a.useLocalState)(c,"tabIndex",0),b=v[0],C=v[1];switch(b){case 0:return(0,e.createComponentVNode)(2,i);case 1:return(0,e.createComponentVNode)(2,l);case 2:return(0,e.createComponentVNode)(2,f);case 3:return(0,e.createComponentVNode)(2,u);default:return"WE SHOULDN'T BE HERE!"}},i=function(m,c){var v=(0,a.useBackend)(c),b=v.act,C=v.data,h=C.vents;return h.map(function(g){return(0,e.createComponentVNode)(2,t.Section,{title:g.name,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:[(0,e.createComponentVNode)(2,t.Button,{content:g.power?"On":"Off",selected:g.power,icon:"power-off",onClick:function(){function N(){return b("command",{cmd:"power",val:g.power===1?0:1,id_tag:g.id_tag})}return N}()}),(0,e.createComponentVNode)(2,t.Button,{content:g.direction?"Blowing":"Siphoning",icon:g.direction?"sign-out-alt":"sign-in-alt",onClick:function(){function N(){return b("command",{cmd:"direction",val:g.direction==="release"?0:1,id_tag:g.id_tag})}return N}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Pressure Checks",children:[(0,e.createComponentVNode)(2,t.Button,{content:"External",selected:g.checks===1,onClick:function(){function N(){return b("command",{cmd:"checks",val:1,id_tag:g.id_tag})}return N}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Internal",selected:g.checks===2,onClick:function(){function N(){return b("command",{cmd:"checks",val:2,id_tag:g.id_tag})}return N}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"External Pressure Target",children:[(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:g.external})," kPa\xA0",(0,e.createComponentVNode)(2,t.Button,{content:"Set",icon:"cog",onClick:function(){function N(){return b("command",{cmd:"set_external_pressure",id_tag:g.id_tag})}return N}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Reset",icon:"redo-alt",onClick:function(){function N(){return b("command",{cmd:"set_external_pressure",val:101.325,id_tag:g.id_tag})}return N}()})]})]})},g.name)})},l=function(m,c){var v=(0,a.useBackend)(c),b=v.act,C=v.data,h=C.scrubbers;return h.map(function(g){return(0,e.createComponentVNode)(2,t.Section,{title:g.name,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:[(0,e.createComponentVNode)(2,t.Button,{content:g.power?"On":"Off",selected:g.power,icon:"power-off",onClick:function(){function N(){return b("command",{cmd:"power",val:g.power===1?0:1,id_tag:g.id_tag})}return N}()}),(0,e.createComponentVNode)(2,t.Button,{content:g.scrubbing?"Scrubbing":"Siphoning",icon:g.scrubbing?"filter":"sign-in-alt",onClick:function(){function N(){return b("command",{cmd:"scrubbing",val:g.scrubbing===0?1:0,id_tag:g.id_tag})}return N}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Range",children:(0,e.createComponentVNode)(2,t.Button,{content:g.widenet?"Extended":"Normal",selected:g.widenet,icon:"expand-arrows-alt",onClick:function(){function N(){return b("command",{cmd:"widenet",val:g.widenet===0?1:0,id_tag:g.id_tag})}return N}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Filtering",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Carbon Dioxide",selected:g.filter_co2,onClick:function(){function N(){return b("command",{cmd:"co2_scrub",val:g.filter_co2===0?1:0,id_tag:g.id_tag})}return N}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Plasma",selected:g.filter_toxins,onClick:function(){function N(){return b("command",{cmd:"tox_scrub",val:g.filter_toxins===0?1:0,id_tag:g.id_tag})}return N}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Nitrous Oxide",selected:g.filter_n2o,onClick:function(){function N(){return b("command",{cmd:"n2o_scrub",val:g.filter_n2o===0?1:0,id_tag:g.id_tag})}return N}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Oxygen",selected:g.filter_o2,onClick:function(){function N(){return b("command",{cmd:"o2_scrub",val:g.filter_o2===0?1:0,id_tag:g.id_tag})}return N}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Nitrogen",selected:g.filter_n2,onClick:function(){function N(){return b("command",{cmd:"n2_scrub",val:g.filter_n2===0?1:0,id_tag:g.id_tag})}return N}()})]})]})},g.name)})},f=function(m,c){var v=(0,a.useBackend)(c),b=v.act,C=v.data,h=C.modes,g=C.presets,N=C.emagged,x=C.mode,B=C.preset;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{title:"System Mode",children:(0,e.createComponentVNode)(2,t.Table,{children:h.map(function(L){return(!L.emagonly||L.emagonly&&!!N)&&(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"right",width:1,children:(0,e.createComponentVNode)(2,t.Button,{content:L.name,icon:"cog",selected:L.id===x,onClick:function(){function w(){return b("mode",{mode:L.id})}return w}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:L.desc})]},L.name)})})}),(0,e.createComponentVNode)(2,t.Section,{title:"System Presets",children:[(0,e.createComponentVNode)(2,t.Box,{italic:!0,children:"After making a selection, the system will automatically cycle in order to remove contaminants."}),(0,e.createComponentVNode)(2,t.Table,{mt:1,children:g.map(function(L){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"right",width:1,children:(0,e.createComponentVNode)(2,t.Button,{content:L.name,icon:"cog",selected:L.id===B,onClick:function(){function w(){return b("preset",{preset:L.id})}return w}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:L.desc})]},L.name)})})]})],4)},u=function(m,c){var v=(0,a.useBackend)(c),b=v.act,C=v.data,h=C.thresholds;return(0,e.createComponentVNode)(2,t.Section,{title:"Alarm Thresholds",children:(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{width:"20%",children:"Value"}),(0,e.createComponentVNode)(2,t.Table.Cell,{color:"red",width:"20%",children:"Danger Min"}),(0,e.createComponentVNode)(2,t.Table.Cell,{color:"orange",width:"20%",children:"Warning Min"}),(0,e.createComponentVNode)(2,t.Table.Cell,{color:"orange",width:"20%",children:"Warning Max"}),(0,e.createComponentVNode)(2,t.Table.Cell,{color:"red",width:"20%",children:"Danger Max"})]}),h.map(function(g){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:g.name}),g.settings.map(function(N){return(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{content:N.selected===-1?"Off":N.selected,onClick:function(){function x(){return b("command",{cmd:"set_threshold",env:N.env,var:N.val})}return x}()})},N.val)})]},g.name)})]})})}},82915:function(I,r,n){"use strict";r.__esModule=!0,r.AirlockAccessController=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),s=r.AirlockAccessController=function(){function y(V,k){var S=(0,a.useBackend)(k),p=S.act,i=S.data,l=i.exterior_status,f=i.interior_status,u=i.processing,d,m;return l==="open"?d=(0,e.createComponentVNode)(2,t.Button,{width:"50%",content:"Lock Exterior Door",icon:"exclamation-triangle",disabled:u,onClick:function(){function c(){return p("force_ext")}return c}()}):d=(0,e.createComponentVNode)(2,t.Button,{width:"50%",content:"Cycle to Exterior",icon:"arrow-circle-left",disabled:u,onClick:function(){function c(){return p("cycle_ext_door")}return c}()}),f==="open"?m=(0,e.createComponentVNode)(2,t.Button,{width:"49%",content:"Lock Interior Door",icon:"exclamation-triangle",disabled:u,color:f==="open"?"red":u?"yellow":null,onClick:function(){function c(){return p("force_int")}return c}()}):m=(0,e.createComponentVNode)(2,t.Button,{width:"49%",content:"Cycle to Interior",icon:"arrow-circle-right",disabled:u,onClick:function(){function c(){return p("cycle_int_door")}return c}()}),(0,e.createComponentVNode)(2,o.Window,{width:330,height:200,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Information",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"External Door Status",children:l==="closed"?"Locked":"Open"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Internal Door Status",children:f==="closed"?"Locked":"Open"})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Actions",children:(0,e.createComponentVNode)(2,t.Box,{children:[d,m]})})]})})}return y}()},14962:function(I,r,n){"use strict";r.__esModule=!0,r.AirlockElectronics=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),s=n(57842),y=1,V=2,k=4,S=8,p=r.AirlockElectronics=function(){function f(u,d){return(0,e.createComponentVNode)(2,o.Window,{width:450,height:565,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,i),(0,e.createComponentVNode)(2,l)]})})})}return f}(),i=function(u,d){var m=(0,a.useBackend)(d),c=m.act,v=m.data,b=v.unrestricted_dir;return(0,e.createComponentVNode)(2,t.Section,{title:"Access Control",children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,mb:1,children:"Unrestricted Access From:"}),(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"arrow-left",content:"East",selected:b&k?"selected":null,onClick:function(){function C(){return c("unrestricted_access",{unres_dir:k})}return C}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"arrow-up",content:"South",selected:b&V?"selected":null,onClick:function(){function C(){return c("unrestricted_access",{unres_dir:V})}return C}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"arrow-right",content:"West",selected:b&S?"selected":null,onClick:function(){function C(){return c("unrestricted_access",{unres_dir:S})}return C}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"arrow-down",content:"North",selected:b&y?"selected":null,onClick:function(){function C(){return c("unrestricted_access",{unres_dir:y})}return C}()})})]})]})})},l=function(u,d){var m=(0,a.useBackend)(d),c=m.act,v=m.data,b=v.selected_accesses,C=v.one_access,h=v.regions;return(0,e.createComponentVNode)(2,s.AccessList,{usedByRcd:1,rcdButtons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:C,content:"One",onClick:function(){function g(){return c("set_one_access",{access:"one"})}return g}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:!C,content:"All",onClick:function(){function g(){return c("set_one_access",{access:"all"})}return g}()})],4),accesses:h,selectedList:b,accessMod:function(){function g(N){return c("set",{access:N})}return g}(),grantAll:function(){function g(){return c("grant_all")}return g}(),denyAll:function(){function g(){return c("clear_all")}return g}(),grantDep:function(){function g(N){return c("grant_region",{region:N})}return g}(),denyDep:function(){function g(N){return c("deny_region",{region:N})}return g}()})}},99327:function(I,r,n){"use strict";r.__esModule=!0,r.AlertModal=void 0;var e=n(96524),a=n(14299),t=n(17899),o=n(68100),s=n(24674),y=n(45493),V=-1,k=1,S=r.AlertModal=function(){function l(f,u){var d=(0,t.useBackend)(u),m=d.act,c=d.data,v=c.autofocus,b=c.buttons,C=b===void 0?[]:b,h=c.large_buttons,g=c.message,N=g===void 0?"":g,x=c.timeout,B=c.title,L=(0,t.useLocalState)(u,"selected",0),w=L[0],A=L[1],T=110+(N.length>30?Math.ceil(N.length/4):0)+(N.length&&h?5:0),E=325+(C.length>2?100:0),O=function(){function P(R){w===0&&R===V?A(C.length-1):w===C.length-1&&R===k?A(0):A(w+R)}return P}();return(0,e.createComponentVNode)(2,y.Window,{title:B,height:T,width:E,children:[!!x&&(0,e.createComponentVNode)(2,a.Loader,{value:x}),(0,e.createComponentVNode)(2,y.Window.Content,{onKeyDown:function(){function P(R){var F=window.event?R.which:R.keyCode;F===o.KEY_SPACE||F===o.KEY_ENTER?m("choose",{choice:C[w]}):F===o.KEY_ESCAPE?m("cancel"):F===o.KEY_LEFT?(R.preventDefault(),O(V)):(F===o.KEY_TAB||F===o.KEY_RIGHT)&&(R.preventDefault(),O(k))}return P}(),children:(0,e.createComponentVNode)(2,s.Section,{fill:!0,children:(0,e.createComponentVNode)(2,s.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,s.Stack.Item,{grow:!0,m:1,children:(0,e.createComponentVNode)(2,s.Box,{color:"label",overflow:"hidden",children:N})}),(0,e.createComponentVNode)(2,s.Stack.Item,{children:[!!v&&(0,e.createComponentVNode)(2,s.Autofocus),(0,e.createComponentVNode)(2,p,{selected:w})]})]})})})]})}return l}(),p=function(f,u){var d=(0,t.useBackend)(u),m=d.data,c=m.buttons,v=c===void 0?[]:c,b=m.large_buttons,C=m.swapped_buttons,h=f.selected;return(0,e.createComponentVNode)(2,s.Flex,{fill:!0,align:"center",direction:C?"row":"row-reverse",justify:"space-around",wrap:!0,children:v==null?void 0:v.map(function(g,N){return b&&v.length<3?(0,e.createComponentVNode)(2,s.Flex.Item,{grow:!0,children:(0,e.createComponentVNode)(2,i,{button:g,id:N.toString(),selected:h===N})},N):(0,e.createComponentVNode)(2,s.Flex.Item,{grow:b?1:0,children:(0,e.createComponentVNode)(2,i,{button:g,id:N.toString(),selected:h===N})},N)})})},i=function(f,u){var d=(0,t.useBackend)(u),m=d.act,c=d.data,v=c.large_buttons,b=f.button,C=f.selected,h=b.length>7?"100%":7;return(0,e.createComponentVNode)(2,s.Button,{mx:v?1:0,pt:v?.33:0,content:b,fluid:!!v,onClick:function(){function g(){return m("choose",{choice:b})}return g}(),selected:C,textAlign:"center",height:!!v&&2,width:!v&&h})}},88642:function(I,r,n){"use strict";r.__esModule=!0,r.AppearanceChanger=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),s=r.AppearanceChanger=function(){function V(k,S){var p=(0,a.useBackend)(S),i=p.act,l=p.data,f=l.change_race,u=l.species,d=l.specimen,m=l.change_gender,c=l.gender,v=l.has_gender,b=l.change_eye_color,C=l.change_skin_tone,h=l.change_skin_color,g=l.change_head_accessory_color,N=l.change_hair_color,x=l.change_secondary_hair_color,B=l.change_facial_hair_color,L=l.change_secondary_facial_hair_color,w=l.change_head_marking_color,A=l.change_body_marking_color,T=l.change_tail_marking_color,E=l.change_head_accessory,O=l.head_accessory_styles,P=l.head_accessory_style,R=l.change_hair,F=l.hair_styles,j=l.hair_style,U=l.change_hair_gradient,_=l.change_facial_hair,K=l.facial_hair_styles,Y=l.facial_hair_style,G=l.change_head_markings,ne=l.head_marking_styles,$=l.head_marking_style,se=l.change_body_markings,Ne=l.body_marking_styles,be=l.body_marking_style,xe=l.change_tail_markings,Ie=l.tail_marking_styles,Te=l.tail_marking_style,he=l.change_body_accessory,Q=l.body_accessory_styles,X=l.body_accessory_style,te=l.change_alt_head,q=l.alt_head_styles,ce=l.alt_head_style,Ve=!1;return(b||C||h||g||N||x||B||L||w||A||T)&&(Ve=!0),(0,e.createComponentVNode)(2,o.Window,{width:800,height:450,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[!!f&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Species",children:u.map(function(fe){return(0,e.createComponentVNode)(2,t.Button,{content:fe.specimen,selected:fe.specimen===d,onClick:function(){function we(){return i("race",{race:fe.specimen})}return we}()},fe.specimen)})}),!!m&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Gender",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Male",selected:c==="male",onClick:function(){function fe(){return i("gender",{gender:"male"})}return fe}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Female",selected:c==="female",onClick:function(){function fe(){return i("gender",{gender:"female"})}return fe}()}),!v&&(0,e.createComponentVNode)(2,t.Button,{content:"Genderless",selected:c==="plural",onClick:function(){function fe(){return i("gender",{gender:"plural"})}return fe}()})]}),!!Ve&&(0,e.createComponentVNode)(2,y),!!E&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Head accessory",children:O.map(function(fe){return(0,e.createComponentVNode)(2,t.Button,{content:fe.headaccessorystyle,selected:fe.headaccessorystyle===P,onClick:function(){function we(){return i("head_accessory",{head_accessory:fe.headaccessorystyle})}return we}()},fe.headaccessorystyle)})}),!!R&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Hair",children:F.map(function(fe){return(0,e.createComponentVNode)(2,t.Button,{content:fe.hairstyle,selected:fe.hairstyle===j,onClick:function(){function we(){return i("hair",{hair:fe.hairstyle})}return we}()},fe.hairstyle)})}),!!U&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Hair Gradient",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Change Style",onClick:function(){function fe(){return i("hair_gradient")}return fe}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Change Offset",onClick:function(){function fe(){return i("hair_gradient_offset")}return fe}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Change Color",onClick:function(){function fe(){return i("hair_gradient_colour")}return fe}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Change Alpha",onClick:function(){function fe(){return i("hair_gradient_alpha")}return fe}()})]}),!!_&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Facial hair",children:K.map(function(fe){return(0,e.createComponentVNode)(2,t.Button,{content:fe.facialhairstyle,selected:fe.facialhairstyle===Y,onClick:function(){function we(){return i("facial_hair",{facial_hair:fe.facialhairstyle})}return we}()},fe.facialhairstyle)})}),!!G&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Head markings",children:ne.map(function(fe){return(0,e.createComponentVNode)(2,t.Button,{content:fe.headmarkingstyle,selected:fe.headmarkingstyle===$,onClick:function(){function we(){return i("head_marking",{head_marking:fe.headmarkingstyle})}return we}()},fe.headmarkingstyle)})}),!!se&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Body markings",children:Ne.map(function(fe){return(0,e.createComponentVNode)(2,t.Button,{content:fe.bodymarkingstyle,selected:fe.bodymarkingstyle===be,onClick:function(){function we(){return i("body_marking",{body_marking:fe.bodymarkingstyle})}return we}()},fe.bodymarkingstyle)})}),!!xe&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Tail markings",children:Ie.map(function(fe){return(0,e.createComponentVNode)(2,t.Button,{content:fe.tailmarkingstyle,selected:fe.tailmarkingstyle===Te,onClick:function(){function we(){return i("tail_marking",{tail_marking:fe.tailmarkingstyle})}return we}()},fe.tailmarkingstyle)})}),!!he&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Body accessory",children:Q.map(function(fe){return(0,e.createComponentVNode)(2,t.Button,{content:fe.bodyaccessorystyle,selected:fe.bodyaccessorystyle===X,onClick:function(){function we(){return i("body_accessory",{body_accessory:fe.bodyaccessorystyle})}return we}()},fe.bodyaccessorystyle)})}),!!te&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Alternate head",children:q.map(function(fe){return(0,e.createComponentVNode)(2,t.Button,{content:fe.altheadstyle,selected:fe.altheadstyle===ce,onClick:function(){function we(){return i("alt_head",{alt_head:fe.altheadstyle})}return we}()},fe.altheadstyle)})})]})})})}return V}(),y=function(k,S){var p=(0,a.useBackend)(S),i=p.act,l=p.data,f=[{key:"change_eye_color",text:"Change eye color",action:"eye_color"},{key:"change_skin_tone",text:"Change skin tone",action:"skin_tone"},{key:"change_skin_color",text:"Change skin color",action:"skin_color"},{key:"change_head_accessory_color",text:"Change head accessory color",action:"head_accessory_color"},{key:"change_hair_color",text:"Change hair color",action:"hair_color"},{key:"change_secondary_hair_color",text:"Change secondary hair color",action:"secondary_hair_color"},{key:"change_facial_hair_color",text:"Change facial hair color",action:"facial_hair_color"},{key:"change_secondary_facial_hair_color",text:"Change secondary facial hair color",action:"secondary_facial_hair_color"},{key:"change_head_marking_color",text:"Change head marking color",action:"head_marking_color"},{key:"change_body_marking_color",text:"Change body marking color",action:"body_marking_color"},{key:"change_tail_marking_color",text:"Change tail marking color",action:"tail_marking_color"}];return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Colors",children:f.map(function(u){return!!l[u.key]&&(0,e.createComponentVNode)(2,t.Button,{content:u.text,onClick:function(){function d(){return i(u.action)}return d}()},u.key)})})}},51731:function(I,r,n){"use strict";r.__esModule=!0,r.AtmosAlertConsole=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),s=r.AtmosAlertConsole=function(){function y(V,k){var S=(0,a.useBackend)(k),p=S.act,i=S.data,l=i.priority||[],f=i.minor||[];return(0,e.createComponentVNode)(2,o.Window,{width:350,height:300,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Alarms",children:(0,e.createVNode)(1,"ul",null,[l.length===0&&(0,e.createVNode)(1,"li","color-good","No Priority Alerts",16),l.map(function(u){return(0,e.createVNode)(1,"li",null,(0,e.createComponentVNode)(2,t.Button,{icon:"times",content:u,color:"bad",onClick:function(){function d(){return p("clear",{zone:u})}return d}()}),2,null,u)}),f.length===0&&(0,e.createVNode)(1,"li","color-good","No Minor Alerts",16),f.map(function(u){return(0,e.createVNode)(1,"li",null,(0,e.createComponentVNode)(2,t.Button,{icon:"times",content:u,color:"average",onClick:function(){function d(){return p("clear",{zone:u})}return d}()}),2,null,u)})],0)})})})}return y}()},57467:function(I,r,n){"use strict";r.__esModule=!0,r.AtmosControl=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(5126),s=n(45493),y=function(l){if(l===0)return(0,e.createComponentVNode)(2,t.Box,{color:"green",children:"Good"});if(l===1)return(0,e.createComponentVNode)(2,t.Box,{color:"orange",bold:!0,children:"Warning"});if(l===2)return(0,e.createComponentVNode)(2,t.Box,{color:"red",bold:!0,children:"DANGER"})},V=function(l){if(l===0)return"green";if(l===1)return"orange";if(l===2)return"red"},k=r.AtmosControl=function(){function i(l,f){var u=(0,a.useBackend)(f),d=u.act,m=u.data,c=(0,a.useLocalState)(f,"tabIndex",0),v=c[0],b=c[1],C=function(){function h(g){switch(g){case 0:return(0,e.createComponentVNode)(2,S);case 1:return(0,e.createComponentVNode)(2,p);default:return"WE SHOULDN'T BE HERE!"}}return h}();return(0,e.createComponentVNode)(2,s.Window,{width:800,height:600,children:(0,e.createComponentVNode)(2,s.Window.Content,{scrollable:v===0,children:(0,e.createComponentVNode)(2,t.Box,{fillPositionedParent:!0,children:[(0,e.createComponentVNode)(2,t.Tabs,{children:[(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:v===0,onClick:function(){function h(){return b(0)}return h}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"table"})," Data View"]},"DataView"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:v===1,onClick:function(){function h(){return b(1)}return h}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"map-marked-alt"})," Map View"]},"MapView")]}),C(v)]})})})}return i}(),S=function(l,f){var u=(0,a.useBackend)(f),d=u.act,m=u.data,c=m.alarms;return(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Table,{m:"0.5rem",children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Name"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Status"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Access"})]}),c.map(function(v){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,o.TableCell,{children:v.name}),(0,e.createComponentVNode)(2,o.TableCell,{children:y(v.danger)}),(0,e.createComponentVNode)(2,o.TableCell,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"cog",content:"Access",onClick:function(){function b(){return d("open_alarm",{aref:v.ref})}return b}()})})]},v.name)})]})})},p=function(l,f){var u=(0,a.useBackend)(f),d=u.act,m=u.data,c=m.alarms,v=m.stationLevelNum,b=m.stationLevelName,C=(0,a.useLocalState)(f,"zoom",1),h=C[0],g=C[1],N=(0,a.useLocalState)(f,"z_current",v[0]),x=N[0],B=N[1];return(0,e.createComponentVNode)(2,t.Box,{height:"526px",mb:"0.5rem",overflow:"hidden",children:(0,e.createComponentVNode)(2,t.NanoMap,{onZoom:function(){function L(w){return g(w)}return L}(),zLevels:v,zNames:b,z_current:x,setZCurrent:B,children:c.map(function(L){return(0,e.createComponentVNode)(2,t.NanoMap.Marker,{x:L.x,y:L.y,z:L.z,z_current:x,zoom:h,icon:"circle",tooltip:L.name,color:V(L.danger),onClick:function(){function w(){return d("open_alarm",{aref:L.ref})}return w}()},L.ref)})})})}},41550:function(I,r,n){"use strict";r.__esModule=!0,r.AtmosFilter=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),s=r.AtmosFilter=function(){function y(V,k){var S=(0,a.useBackend)(k),p=S.act,i=S.data,l=i.on,f=i.pressure,u=i.max_pressure,d=i.filter_type,m=i.filter_type_list;return(0,e.createComponentVNode)(2,o.Window,{width:380,height:140,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power",children:(0,e.createComponentVNode)(2,t.Button,{icon:"power-off",content:l?"On":"Off",color:l?null:"red",selected:l,onClick:function(){function c(){return p("power")}return c}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Rate",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"fast-backward",textAlign:"center",disabled:f===0,width:2.2,onClick:function(){function c(){return p("min_pressure")}return c}()}),(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,unit:"kPa",width:6.1,lineHeight:1.5,step:10,minValue:0,maxValue:u,value:f,onDrag:function(){function c(v,b){return p("custom_pressure",{pressure:b})}return c}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",textAlign:"center",disabled:f===u,width:2.2,onClick:function(){function c(){return p("max_pressure")}return c}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Filter",children:m.map(function(c){return(0,e.createComponentVNode)(2,t.Button,{selected:c.gas_type===d,content:c.label,onClick:function(){function v(){return p("set_filter",{filter:c.gas_type})}return v}()},c.label)})})]})})})})}return y}()},70151:function(I,r,n){"use strict";r.__esModule=!0,r.AtmosMixer=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),s=r.AtmosMixer=function(){function V(k,S){var p=(0,a.useBackend)(S),i=p.act,l=p.data,f=l.on,u=l.pressure,d=l.max_pressure,m=l.node1_concentration,c=l.node2_concentration;return(0,e.createComponentVNode)(2,o.Window,{width:330,height:165,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power",children:(0,e.createComponentVNode)(2,t.Button,{icon:"power-off",content:f?"On":"Off",color:f?null:"red",selected:f,onClick:function(){function v(){return i("power")}return v}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Rate",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"fast-backward",textAlign:"center",disabled:u===0,width:2.2,onClick:function(){function v(){return i("min_pressure")}return v}()}),(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,unit:"kPa",width:6.1,lineHeight:1.5,step:10,minValue:0,maxValue:d,value:u,onDrag:function(){function v(b,C){return i("custom_pressure",{pressure:C})}return v}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",textAlign:"center",disabled:u===d,width:2.2,onClick:function(){function v(){return i("max_pressure")}return v}()})]}),(0,e.createComponentVNode)(2,y,{node_name:"Node 1",node_ref:m}),(0,e.createComponentVNode)(2,y,{node_name:"Node 2",node_ref:c})]})})})})}return V}(),y=function(k,S){var p=(0,a.useBackend)(S),i=p.act,l=p.data,f=k.node_name,u=k.node_ref;return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:f,children:[(0,e.createComponentVNode)(2,t.Button,{icon:"fast-backward",textAlign:"center",width:2.2,disabled:u===0,onClick:function(){function d(){return i("set_node",{node_name:f,concentration:(u-10)/100})}return d}()}),(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,unit:"%",width:6.1,lineHeight:1.5,stepPixelSize:10,minValue:0,maxValue:100,value:u,onChange:function(){function d(m,c){return i("set_node",{node_name:f,concentration:c/100})}return d}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",textAlign:"center",width:2.2,disabled:u===100,onClick:function(){function d(){return i("set_node",{node_name:f,concentration:(u+10)/100})}return d}()})]})}},54090:function(I,r,n){"use strict";r.__esModule=!0,r.AtmosPump=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),s=r.AtmosPump=function(){function y(V,k){var S=(0,a.useBackend)(k),p=S.act,i=S.data,l=i.on,f=i.rate,u=i.max_rate,d=i.gas_unit,m=i.step;return(0,e.createComponentVNode)(2,o.Window,{width:330,height:110,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power",children:(0,e.createComponentVNode)(2,t.Button,{icon:"power-off",content:l?"On":"Off",color:l?null:"red",selected:l,onClick:function(){function c(){return p("power")}return c}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Rate",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"fast-backward",textAlign:"center",disabled:f===0,width:2.2,onClick:function(){function c(){return p("min_rate")}return c}()}),(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,unit:d,width:6.1,lineHeight:1.5,step:m,minValue:0,maxValue:u,value:f,onDrag:function(){function c(v,b){return p("custom_rate",{rate:b})}return c}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",textAlign:"center",disabled:f===u,width:2.2,onClick:function(){function c(){return p("max_rate")}return c}()})]})]})})})})}return y}()},85909:function(I,r,n){"use strict";r.__esModule=!0,r.Autolathe=void 0;var e=n(96524),a=n(74041),t=n(50640),o=n(17899),s=n(24674),y=n(45493),V=n(78234),k=function(i,l,f,u){return i.requirements===null?!0:!(i.requirements.metal*u>l||i.requirements.glass*u>f)},S=r.Autolathe=function(){function p(i,l){var f=(0,o.useBackend)(l),u=f.act,d=f.data,m=d.total_amount,c=d.max_amount,v=d.metal_amount,b=d.glass_amount,C=d.busyname,h=d.busyamt,g=d.showhacked,N=d.buildQueue,x=d.buildQueueLen,B=d.recipes,L=d.categories,w=(0,o.useSharedState)(l,"category",0),A=w[0],T=w[1];A===0&&(A="Tools");var E=v.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1,"),O=b.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1,"),P=m.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1,"),R=(0,o.useSharedState)(l,"search_text",""),F=R[0],j=R[1],U=(0,V.createSearch)(F,function(G){return G.name}),_="";x>0&&(_=N.map(function(G,ne){return(0,e.createComponentVNode)(2,s.Box,{children:(0,e.createComponentVNode)(2,s.Button,{fluid:!0,icon:"times",color:"transparent",content:N[ne][0],onClick:function(){function $(){return u("remove_from_queue",{remove_from_queue:N.indexOf(G)+1})}return $}()},G)},ne)}));var K=(0,a.flow)([(0,t.filter)(function(G){return(G.category.indexOf(A)>-1||F)&&(d.showhacked||!G.hacked)}),F&&(0,t.filter)(U),(0,t.sortBy)(function(G){return G.name.toLowerCase()})])(B),Y="Build";return F?Y="Results for: '"+F+"':":A&&(Y="Build ("+A+")"),(0,e.createComponentVNode)(2,y.Window,{width:750,height:525,children:(0,e.createComponentVNode)(2,y.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,s.Stack,{fill:!0,horizontal:!0,children:[(0,e.createComponentVNode)(2,s.Stack.Item,{width:"70%",children:(0,e.createComponentVNode)(2,s.Section,{fill:!0,scrollable:!0,title:Y,buttons:(0,e.createComponentVNode)(2,s.Dropdown,{width:"150px",options:L,selected:A,onSelected:function(){function G(ne){return T(ne)}return G}()}),children:[(0,e.createComponentVNode)(2,s.Input,{fluid:!0,placeholder:"Search for...",onInput:function(){function G(ne,$){return j($)}return G}(),mb:1}),K.map(function(G){return(0,e.createComponentVNode)(2,s.Stack.Item,{grow:!0,children:[(0,e.createVNode)(1,"img",null,null,1,{src:"data:image/jpeg;base64,"+G.image,style:{"vertical-align":"middle",width:"32px",margin:"0px","margin-left":"0px"}}),(0,e.createComponentVNode)(2,s.Button,{mr:1,icon:"hammer",selected:d.busyname===G.name&&d.busyamt===1,disabled:!k(G,d.metal_amount,d.glass_amount,1),onClick:function(){function ne(){return u("make",{make:G.uid,multiplier:1})}return ne}(),children:(0,V.toTitleCase)(G.name)}),G.max_multiplier>=10&&(0,e.createComponentVNode)(2,s.Button,{mr:1,icon:"hammer",selected:d.busyname===G.name&&d.busyamt===10,disabled:!k(G,d.metal_amount,d.glass_amount,10),onClick:function(){function ne(){return u("make",{make:G.uid,multiplier:10})}return ne}(),children:"10x"}),G.max_multiplier>=25&&(0,e.createComponentVNode)(2,s.Button,{mr:1,icon:"hammer",selected:d.busyname===G.name&&d.busyamt===25,disabled:!k(G,d.metal_amount,d.glass_amount,25),onClick:function(){function ne(){return u("make",{make:G.uid,multiplier:25})}return ne}(),children:"25x"}),G.max_multiplier>25&&(0,e.createComponentVNode)(2,s.Button,{mr:1,icon:"hammer",selected:d.busyname===G.name&&d.busyamt===G.max_multiplier,disabled:!k(G,d.metal_amount,d.glass_amount,G.max_multiplier),onClick:function(){function ne(){return u("make",{make:G.uid,multiplier:G.max_multiplier})}return ne}(),children:[G.max_multiplier,"x"]}),G.requirements&&Object.keys(G.requirements).map(function(ne){return(0,V.toTitleCase)(ne)+": "+G.requirements[ne]}).join(", ")||(0,e.createComponentVNode)(2,s.Box,{children:"No resources required."})]},G.ref)})]})}),(0,e.createComponentVNode)(2,s.Stack.Item,{width:"30%",children:[(0,e.createComponentVNode)(2,s.Section,{title:"Materials",children:(0,e.createComponentVNode)(2,s.LabeledList,{children:[(0,e.createComponentVNode)(2,s.LabeledList.Item,{label:"Metal",children:E}),(0,e.createComponentVNode)(2,s.LabeledList.Item,{label:"Glass",children:O}),(0,e.createComponentVNode)(2,s.LabeledList.Item,{label:"Total",children:P}),(0,e.createComponentVNode)(2,s.LabeledList.Item,{label:"Storage",children:[d.fill_percent,"% Full"]})]})}),(0,e.createComponentVNode)(2,s.Section,{title:"Building",children:(0,e.createComponentVNode)(2,s.Box,{color:C?"green":"",children:C||"Nothing"})}),(0,e.createComponentVNode)(2,s.Section,{title:"Build Queue",height:23.7,children:[_,(0,e.createComponentVNode)(2,s.Button,{mt:.5,fluid:!0,icon:"times",content:"Clear All",color:"red",disabled:!d.buildQueueLen,onClick:function(){function G(){return u("clear_queue")}return G}()})]})]})]})})})}return p}()},26215:function(I,r,n){"use strict";r.__esModule=!0,r.Biogenerator=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),s=n(75201),y=r.Biogenerator=function(){function p(i,l){var f=(0,a.useBackend)(l),u=f.data,d=f.config,m=u.container,c=u.processing,v=d.title;return(0,e.createComponentVNode)(2,o.Window,{width:390,height:595,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,s.Operating,{operating:c,name:v}),(0,e.createComponentVNode)(2,V),(0,e.createComponentVNode)(2,k),(0,e.createComponentVNode)(2,S)]})})})}return p}(),V=function(i,l){var f=(0,a.useBackend)(l),u=f.act,d=f.data,m=d.biomass,c=d.container,v=d.container_curr_reagents,b=d.container_max_reagents;return(0,e.createComponentVNode)(2,t.Section,{title:"Storage",children:[(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{mr:"20px",color:"silver",children:"Biomass:"}),(0,e.createComponentVNode)(2,t.Stack.Item,{mr:"5px",children:m}),(0,e.createComponentVNode)(2,t.Icon,{name:"leaf",size:1.2,color:"#3d8c40"})]}),(0,e.createComponentVNode)(2,t.Stack,{height:"21px",mt:"8px",align:"center",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{mr:"10px",color:"silver",children:"Container:"}),c?(0,e.createComponentVNode)(2,t.ProgressBar,{value:v,maxValue:b,children:(0,e.createComponentVNode)(2,t.Box,{textAlign:"center",children:v+" / "+b+" units"})}):(0,e.createComponentVNode)(2,t.Stack.Item,{children:"None"})]})]})},k=function(i,l){var f=(0,a.useBackend)(l),u=f.act,d=f.data,m=d.has_plants,c=d.container;return(0,e.createComponentVNode)(2,t.Section,{title:"Controls",children:(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"30%",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"power-off",disabled:!m,tooltip:m?"":"There are no plants in the biogenerator.",tooltipPosition:"top-start",content:"Activate",onClick:function(){function v(){return u("activate")}return v}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:"40%",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"flask",disabled:!c,tooltip:c?"":"The biogenerator does not have a container.",tooltipPosition:"top",content:"Detach Container",onClick:function(){function v(){return u("detach_container")}return v}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:"30%",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"eject",disabled:!m,tooltip:m?"":"There are no stored plants to eject.",tooltipPosition:"top-end",content:"Eject Plants",onClick:function(){function v(){return u("eject_plants")}return v}()})})]})})},S=function(i,l){var f=(0,a.useBackend)(l),u=f.act,d=f.data,m=d.biomass,c=d.product_list,v=d.container,b=(0,a.useSharedState)(l,"vendAmount",1),C=b[0],h=b[1],g=Object.entries(c).map(function(N,x){var B=Object.entries(N[1]).map(function(L){return L[1]});return(0,e.createComponentVNode)(2,t.Collapsible,{title:N[0],open:!0,children:B.map(function(L){return(0,e.createComponentVNode)(2,t.Stack,{py:"2px",className:"candystripe",align:"center",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"50%",ml:"2px",children:L.name}),(0,e.createComponentVNode)(2,t.Stack.Item,{textAlign:"right",width:"20%",children:[L.cost*C,(0,e.createComponentVNode)(2,t.Icon,{ml:"5px",name:"leaf",size:1.2,color:"#3d8c40"})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{textAlign:"right",width:"40%",children:L.needs_container&&!v?(0,e.createComponentVNode)(2,t.Button,{content:"No container",disabled:!0,icon:"flask",tooltip:"\u0412\u0441\u0442\u0430\u0432\u044C\u0442\u0435 \u043B\u044E\u0431\u043E\u0439 \u043A\u043E\u043D\u0442\u0435\u0439\u043D\u0435\u0440 \u0434\u043B\u044F \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u043D\u0438\u044F \u044D\u0442\u043E\u0439 \u043E\u043F\u0446\u0438\u0438"}):(0,e.createComponentVNode)(2,t.Button,{content:"Vend",disabled:m0?Math.floor(A/u):0,P=f?"@?%%!\u2116@"+u:u,R=A>=u,F=d-d%5+(d%5>0?5:0);return(0,e.createComponentVNode)(2,t.Section,{title:"\u0418\u0441\u0441\u043B\u0435\u0434\u043E\u0432\u0430\u043D\u0438\u0435 \u0420\u0430\u0437\u043B\u043E\u043C\u0430",children:[(0,e.createComponentVNode)(2,t.Box,{color:"silver",bold:!0,children:B}),(0,e.createComponentVNode)(2,t.ProgressBar,{color:E===0?"bad":E<100?"average":"good",value:w,maxValue:L,mt:1,mb:2,children:[E<=100?E:100," %"]}),(0,e.createComponentVNode)(2,t.Box,{children:["\u0414\u0430\u043D\u043D\u044B\u0435 \u0434\u043B\u044F \u0437\u043E\u043D\u0434\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u044F: ",(0,e.createComponentVNode)(2,t.Box,{color:A?R?"good":"average":"bad",as:"span",children:Math.floor(A)}),(0,e.createComponentVNode)(2,t.Button,{icon:"atom",tooltip:"\u0414\u043B\u044F \u0433\u0435\u043D\u0435\u0440\u0430\u0446\u0438\u0438 \u043E\u0434\u043D\u043E\u0433\u043E \u0437\u043E\u043D\u0434\u0438\u0440\u0443\u044E\u0449\u0435\u0433\u043E \u0438\u043C\u043F\u0443\u043B\u044C\u0441\u0430 \u043D\u0443\u0436\u043D\u043E \u0441\u043E\u0431\u0440\u0430\u0442\u044C "+P+" \u0434\u0430\u043D\u043D\u044B\u0445.",content:d>0?"\u041F\u043E\u0434\u0433\u043E\u0442\u043E\u0432\u043A\u0430 "+F+" \u0441\u0435\u043A\u0443\u043D\u0434":"\u0417\u043E\u043D\u0434\u0438\u0440\u043E\u0432\u0430\u0442\u044C ("+O+")",disabled:!R||d>0,onClick:function(){function j(){return i("probe",{rift_id:x})}return j}(),mx:2}),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",content:T?"\u0420\u0435\u0437\u0443\u043B\u044C\u0442\u0430\u0442 \u043F\u043E\u043B\u0443\u0447\u0435\u043D":"\u041F\u043E\u043B\u0443\u0447\u0438\u0442\u044C \u0440\u0435\u0437\u0443\u043B\u044C\u0442\u0430\u0442 \u0438\u0441\u0441\u043B\u0435\u0434\u043E\u0432\u0430\u043D\u0438\u0439",disabled:T||E<100,onClick:function(){function j(){return i("reward",{rift_id:x})}return j}(),mt:1.4})]})]})}return g}(),C=function(){function g(N){var x=N.servName,B=N.servData;return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:x,children:B.length?B.map(function(L,w){return(0,e.createComponentVNode)(2,t.Box,{children:[L.riftName," \u2014 ",Math.floor(L.probePoints)," ","\u0434\u0430\u043D\u043D\u044B\u0445."]},w)}):(0,e.createComponentVNode)(2,t.Box,{children:"\u041D\u0435\u0442 \u0434\u0430\u043D\u043D\u044B\u0445"})})}return g}(),h=function(){function g(N){var x=N.scannerId,B=N.scannerName,L=N.scanStatus,w=N.canSwitch,A=N.switching,T=s[L],E=function(){function P(){if(T==="OFF")return[" ","silver"];if(T==="NO_RIFTS")return["\u041D\u0435\u0442 \u0440\u0430\u0437\u043B\u043E\u043C\u043E\u0432","silver"];if(T==="SOME_RIFTS")return["\u0421\u043A\u0430\u043D\u0438\u0440\u0443\u0435\u0442","good"];if(T==="DANGER")return["\u041E\u043F\u0430\u0441\u043D\u043E\u0441\u0442\u044C! \u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u0435 \u0441\u043A\u0430\u043D\u0435\u0440!","bad"]}return P}(),O=E();return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:B,py:0,children:[A?(0,e.createComponentVNode)(2,t.Icon,{name:"circle-notch",color:"silver",spin:!0,ml:1.85,mr:1.79,my:.84}):w?(0,e.createComponentVNode)(2,t.Button,{icon:"power-off",color:T==="OFF"?"bad":"good",onClick:function(){function P(){return i("toggle_scanner",{scanner_id:x})}return P}(),ml:1,mr:1}):(0,e.createComponentVNode)(2,t.Icon,{name:"power-off",color:T==="OFF"?"bad":"good",ml:1.85,mr:1.79,my:.84}),T!=="OFF"&&(0,e.createComponentVNode)(2,t.Box,{as:"span",color:O[1],children:O[0]})]})}return g}();return(0,e.createComponentVNode)(2,o.Window,{width:570,height:400,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[m&&m.map(function(g){return b(g)}),(0,e.createComponentVNode)(2,t.Section,{title:"\u0421\u043A\u0430\u043D\u0435\u0440\u044B \u0432 \u0441\u0435\u0442\u0438",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:v&&v.map(function(g){return h(g)})})}),(0,e.createComponentVNode)(2,t.Section,{title:"\u0421\u0435\u0440\u0432\u0435\u0440\u044B \u0432 \u0441\u0435\u0442\u0438",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:c&&c.map(function(g){return C(g)})})})]})})}return V}()},69099:function(I,r,n){"use strict";r.__esModule=!0,r.BluespaceTap=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),s=n(92986),y=r.BluespaceTap=function(){function V(k,S){var p=(0,a.useBackend)(S),i=p.act,l=p.data,f=l.product||[],u=l.desiredLevel,d=l.inputLevel,m=l.points,c=l.totalPoints,v=l.powerUse,b=l.availablePower,C=l.maxLevel,h=l.emagged,g=l.safeLevels,N=l.nextLevelPower,x=u>d&&"bad"||"good";return(0,e.createComponentVNode)(2,o.Window,{width:650,height:450,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[!!h&&(0,e.createComponentVNode)(2,t.NoticeBox,{danger:1,children:"Safety Protocols disabled"}),d>g&&(0,e.createComponentVNode)(2,t.NoticeBox,{danger:1,children:"High Power, Instability likely"}),(0,e.createComponentVNode)(2,t.Collapsible,{title:"Input Management",children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Input",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Input Level",children:d}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Desired Level",children:(0,e.createComponentVNode)(2,t.Stack,{inline:!0,width:"100%",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"fast-backward",disabled:u===0,tooltip:"Set to 0",onClick:function(){function B(){return i("set",{set_level:0})}return B}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"step-backward",tooltip:"Decrease to actual input level",disabled:u===0,onClick:function(){function B(){return i("set",{set_level:d})}return B}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"backward",disabled:u===0,tooltip:"Decrease one step",onClick:function(){function B(){return i("decrease")}return B}()})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:1,mx:1,children:(0,e.createComponentVNode)(2,t.Slider,{value:u,fillValue:d,minValue:0,color:x,maxValue:C,stepPixelSize:20,step:1,onChange:function(){function B(L,w){return i("set",{set_level:w})}return B}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"forward",disabled:u===C,tooltip:"Increase one step",tooltipPosition:"left",onClick:function(){function B(){return i("increase")}return B}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",disabled:u===C,tooltip:"Set to max",tooltipPosition:"left",onClick:function(){function B(){return i("set",{set_level:C})}return B}()})]})]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Current Power Use",children:(0,s.formatPower)(v)}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power for next level",children:(0,s.formatPower)(N)}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Surplus Power",children:(0,s.formatPower)(b)})]})})}),(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Output",children:(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Available Points",children:m}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Total Points",children:c})]})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{align:"end",children:(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:f.map(function(B){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:B.name,children:(0,e.createComponentVNode)(2,t.Button,{disabled:B.price>=m,onClick:function(){function L(){return i("vend",{target:B.key})}return L}(),content:B.price})},B.key)})})})})]})})]})})})}return V}()},71736:function(I,r,n){"use strict";r.__esModule=!0,r.BodyScanner=void 0;var e=n(96524),a=n(36121),t=n(78234),o=n(17899),s=n(24674),y=n(45493),V=[["good","Alive"],["average","Critical"],["bad","DEAD"]],k=[["hasBorer","bad","Large growth detected in frontal lobe, possibly cancerous. Surgical removal is recommended."],["hasVirus","bad","Viral pathogen detected in blood stream."],["blind","average","Cataracts detected."],["colourblind","average","Photoreceptor abnormalities detected."],["nearsighted","average","Retinal misalignment detected."]],S=[["Respiratory","oxyLoss"],["Brain","brainLoss"],["Toxin","toxLoss"],["Radioactive","radLoss"],["Brute","bruteLoss"],["Genetic","cloneLoss"],["Burn","fireLoss"],["Paralysis","paralysis"]],p={average:[.25,.5],bad:[.5,1/0]},i=function(x,B){for(var L=[],w=0;w0?x.filter(function(B){return!!B}).reduce(function(B,L){return(0,e.createFragment)([B,(0,e.createComponentVNode)(2,s.Box,{children:L},L)],0)},null):null},f=function(x){if(x>100){if(x<300)return"mild infection";if(x<400)return"mild infection+";if(x<500)return"mild infection++";if(x<700)return"acute infection";if(x<800)return"acute infection+";if(x<900)return"acute infection++";if(x>=900)return"septic"}return""},u=r.BodyScanner=function(){function N(x,B){var L=(0,o.useBackend)(B),w=L.data,A=w.occupied,T=w.occupant,E=T===void 0?{}:T,O=A?(0,e.createComponentVNode)(2,d,{occupant:E}):(0,e.createComponentVNode)(2,g);return(0,e.createComponentVNode)(2,y.Window,{width:700,height:600,title:"Body Scanner",children:(0,e.createComponentVNode)(2,y.Window.Content,{scrollable:!0,children:O})})}return N}(),d=function(x){var B=x.occupant;return(0,e.createComponentVNode)(2,s.Box,{children:[(0,e.createComponentVNode)(2,m,{occupant:B}),(0,e.createComponentVNode)(2,c,{occupant:B}),(0,e.createComponentVNode)(2,v,{occupant:B}),(0,e.createComponentVNode)(2,C,{organs:B.extOrgan}),(0,e.createComponentVNode)(2,h,{organs:B.intOrgan})]})},m=function(x,B){var L=(0,o.useBackend)(B),w=L.act,A=L.data,T=A.occupant;return(0,e.createComponentVNode)(2,s.Section,{title:"Occupant",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,s.Button,{icon:"print",onClick:function(){function E(){return w("print_p")}return E}(),children:"Print Report"}),(0,e.createComponentVNode)(2,s.Button,{icon:"user-slash",onClick:function(){function E(){return w("ejectify")}return E}(),children:"Eject"})],4),children:(0,e.createComponentVNode)(2,s.LabeledList,{children:[(0,e.createComponentVNode)(2,s.LabeledList.Item,{label:"Name",children:T.name}),(0,e.createComponentVNode)(2,s.LabeledList.Item,{label:"Health",children:(0,e.createComponentVNode)(2,s.ProgressBar,{min:"0",max:T.maxHealth,value:T.health/T.maxHealth,ranges:{good:[.5,1/0],average:[0,.5],bad:[-1/0,0]}})}),(0,e.createComponentVNode)(2,s.LabeledList.Item,{label:"Status",color:V[T.stat][0],children:V[T.stat][1]}),(0,e.createComponentVNode)(2,s.LabeledList.Item,{label:"Temperature",children:[(0,e.createComponentVNode)(2,s.AnimatedNumber,{value:(0,a.round)(T.bodyTempC)}),"\xB0C,\xA0",(0,e.createComponentVNode)(2,s.AnimatedNumber,{value:(0,a.round)(T.bodyTempF)}),"\xB0F"]}),(0,e.createComponentVNode)(2,s.LabeledList.Item,{label:"Implants",children:T.implant_len?(0,e.createComponentVNode)(2,s.Box,{children:T.implant.map(function(E){return E.name}).join(", ")}):(0,e.createComponentVNode)(2,s.Box,{color:"label",children:"None"})})]})})},c=function(x){var B=x.occupant;return B.hasBorer||B.blind||B.colourblind||B.nearsighted||B.hasVirus?(0,e.createComponentVNode)(2,s.Section,{title:"Abnormalities",children:k.map(function(L,w){if(B[L[0]])return(0,e.createComponentVNode)(2,s.Box,{color:L[1],bold:L[1]==="bad",children:L[2]},L[2])})}):(0,e.createComponentVNode)(2,s.Section,{title:"Abnormalities",children:(0,e.createComponentVNode)(2,s.Box,{color:"label",children:"No abnormalities found."})})},v=function(x){var B=x.occupant;return(0,e.createComponentVNode)(2,s.Section,{title:"Damage",children:(0,e.createComponentVNode)(2,s.Table,{children:i(S,function(L,w,A){return(0,e.createFragment)([(0,e.createComponentVNode)(2,s.Table.Row,{color:"label",children:[(0,e.createComponentVNode)(2,s.Table.Cell,{children:[L[0],":"]}),(0,e.createComponentVNode)(2,s.Table.Cell,{children:!!w&&w[0]+":"})]}),(0,e.createComponentVNode)(2,s.Table.Row,{children:[(0,e.createComponentVNode)(2,s.Table.Cell,{children:(0,e.createComponentVNode)(2,b,{value:B[L[1]],marginBottom:A100)&&"average"||!!B.status.robotic&&"label",width:"33%",children:(0,t.capitalize)(B.name)}),(0,e.createComponentVNode)(2,s.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,s.ProgressBar,{m:-.5,min:"0",max:B.maxHealth,mt:L>0&&"0.5rem",value:B.totalLoss/B.maxHealth,ranges:p,children:(0,e.createComponentVNode)(2,s.Stack,{children:[(0,e.createComponentVNode)(2,s.Tooltip,{content:"Total damage",children:(0,e.createComponentVNode)(2,s.Stack.Item,{children:[(0,e.createComponentVNode)(2,s.Icon,{name:"heartbeat",mr:.5}),(0,a.round)(B.totalLoss)]})}),!!B.bruteLoss&&(0,e.createComponentVNode)(2,s.Tooltip,{content:"Brute damage",children:(0,e.createComponentVNode)(2,s.Stack.Item,{grow:!0,children:[(0,e.createComponentVNode)(2,s.Icon,{name:"bone",mr:.5}),(0,a.round)(B.bruteLoss)]})}),!!B.fireLoss&&(0,e.createComponentVNode)(2,s.Tooltip,{content:"Burn damage",children:(0,e.createComponentVNode)(2,s.Stack.Item,{children:[(0,e.createComponentVNode)(2,s.Icon,{name:"fire",mr:.5}),(0,a.round)(B.fireLoss)]})})]})})}),(0,e.createComponentVNode)(2,s.Table.Cell,{textAlign:"right",verticalAlign:"top",width:"33%",pt:L>0&&"calc(0.5rem + 2px)",children:[(0,e.createComponentVNode)(2,s.Box,{color:"average",inline:!0,children:l([!!B.internalBleeding&&"Internal bleeding",!!B.burnWound&&"Critical tissue burns",!!B.lungRuptured&&"Ruptured lung",!!B.status.broken&&B.status.broken,f(B.germ_level),!!B.open&&"Open incision"])}),(0,e.createComponentVNode)(2,s.Box,{inline:!0,children:[l([!!B.status.splinted&&(0,e.createComponentVNode)(2,s.Box,{color:"good",children:"Splinted"}),!!B.status.robotic&&(0,e.createComponentVNode)(2,s.Box,{color:"label",children:"Robotic"}),!!B.status.dead&&(0,e.createComponentVNode)(2,s.Box,{color:"bad",bold:!0,children:"DEAD"})]),l(B.shrapnel.map(function(w){return w.known?w.name:"Unknown object"}))]})]})]},L)})]})})},h=function(x){return x.organs.length===0?(0,e.createComponentVNode)(2,s.Section,{title:"Internal Organs",children:(0,e.createComponentVNode)(2,s.Box,{color:"label",children:"N/A"})}):(0,e.createComponentVNode)(2,s.Section,{title:"Internal Organs",children:(0,e.createComponentVNode)(2,s.Table,{children:[(0,e.createComponentVNode)(2,s.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,s.Table.Cell,{children:"Name"}),(0,e.createComponentVNode)(2,s.Table.Cell,{textAlign:"center",children:"Damage"}),(0,e.createComponentVNode)(2,s.Table.Cell,{textAlign:"right",children:"Injuries"})]}),x.organs.map(function(B,L){return(0,e.createComponentVNode)(2,s.Table.Row,{children:[(0,e.createComponentVNode)(2,s.Table.Cell,{color:!!B.dead&&"bad"||B.germ_level>100&&"average"||B.robotic>0&&"label",width:"33%",children:(0,t.capitalize)(B.name)}),(0,e.createComponentVNode)(2,s.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,s.ProgressBar,{min:"0",max:B.maxHealth,value:B.damage/B.maxHealth,mt:L>0&&"0.5rem",ranges:p,children:(0,a.round)(B.damage)})}),(0,e.createComponentVNode)(2,s.Table.Cell,{textAlign:"right",verticalAlign:"top",width:"33%",pt:L>0&&"calc(0.5rem + 2px)",children:[(0,e.createComponentVNode)(2,s.Box,{color:"average",inline:!0,children:l([f(B.germ_level)])}),(0,e.createComponentVNode)(2,s.Box,{inline:!0,children:l([B.robotic===1&&(0,e.createComponentVNode)(2,s.Box,{color:"label",children:"Robotic"}),B.robotic===2&&(0,e.createComponentVNode)(2,s.Box,{color:"label",children:"Assisted"}),!!B.dead&&(0,e.createComponentVNode)(2,s.Box,{color:"bad",bold:!0,children:"DEAD"})])})]})]},L)})]})})},g=function(){return(0,e.createComponentVNode)(2,s.Section,{fill:!0,children:(0,e.createComponentVNode)(2,s.Stack,{fill:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,s.Stack.Item,{grow:!0,align:"center",color:"label",children:[(0,e.createComponentVNode)(2,s.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,e.createVNode)(1,"br"),"No occupant detected."]})})})}},65052:function(I,r,n){"use strict";r.__esModule=!0,r.BorgPanel=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),s=r.BorgPanel=function(){function y(V,k){var S=(0,a.useBackend)(k),p=S.act,i=S.data,l=i.borg||{},f=i.cell||{},u=f.charge/f.maxcharge,d=i.channels||[],m=i.modules||[],c=i.upgrades||[],v=i.ais||[],b=i.laws||[];return(0,e.createComponentVNode)(2,o.Window,{title:"Borg Panel",width:700,height:700,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,t.Section,{title:l.name,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"pencil-alt",content:"Rename",onClick:function(){function C(){return p("rename")}return C}()}),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:l.emagged?"check-square-o":"square-o",content:"Emagged",selected:l.emagged,onClick:function(){function C(){return p("toggle_emagged")}return C}()}),(0,e.createComponentVNode)(2,t.Button,{icon:l.lockdown?"check-square-o":"square-o",content:"Locked Down",selected:l.lockdown,onClick:function(){function C(){return p("toggle_lockdown")}return C}()}),(0,e.createComponentVNode)(2,t.Button,{icon:l.scrambledcodes?"check-square-o":"square-o",content:"Scrambled Codes",selected:l.scrambledcodes,onClick:function(){function C(){return p("toggle_scrambledcodes")}return C}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Reset Module",onClick:function(){function C(){return p("reset_module")}return C}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Charge",children:[f.missing?(0,e.createVNode)(1,"span","color-bad","No cell installed",16):(0,e.createComponentVNode)(2,t.ProgressBar,{value:u,children:f.charge+" / "+f.maxcharge}),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Button,{icon:"pencil-alt",content:"Set",onClick:function(){function C(){return p("set_charge")}return C}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"eject",content:"Change",onClick:function(){function C(){return p("change_cell")}return C}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"trash",content:"Remove",color:"bad",onClick:function(){function C(){return p("remove_cell")}return C}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Radio Channels",children:d.map(function(C){return(0,e.createComponentVNode)(2,t.Button,{icon:C.installed?"check-square-o":"square-o",content:C.name,selected:C.installed,onClick:function(){function h(){return p("toggle_radio",{channel:C.name})}return h}()},C.name)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Model",children:m.map(function(C){return(0,e.createComponentVNode)(2,t.Button,{icon:l.active_module===C.name?"check-square-o":"square-o",content:C.name+" module",selected:l.active_module===C.name,onClick:function(){function h(){return p("setmodule",{module:C.name})}return h}()},C.type)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Upgrades",children:c.map(function(C){return(0,e.createComponentVNode)(2,t.Button,{icon:C.installed?"check-square-o":"square-o",content:C.name,selected:C.installed,onClick:function(){function h(){return p("toggle_upgrade",{upgrade:C.type})}return h}()},C.type)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Master AI",children:v.map(function(C){return(0,e.createComponentVNode)(2,t.Button,{icon:C.connected?"check-square-o":"square-o",content:C.name,selected:C.connected,onClick:function(){function h(){return p("slavetoai",{slavetoai:C.ref})}return h}()},C.ref)})})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Laws",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{content:"Law Manager",selected:l.lawmanager,onClick:function(){function C(){return p("lawmanager")}return C}()}),(0,e.createComponentVNode)(2,t.Button,{icon:l.lawupdate?"check-square-o":"square-o",content:"Lawsync",selected:l.lawupdate,onClick:function(){function C(){return p("toggle_lawupdate")}return C}()})],4),children:b.map(function(C){return(0,e.createComponentVNode)(2,t.Box,{children:C},C)})})]})})}return y}()},43506:function(I,r,n){"use strict";r.__esModule=!0,r.BotClean=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),s=r.BotClean=function(){function y(V,k){var S=(0,a.useBackend)(k),p=S.act,i=S.data,l=i.locked,f=i.noaccess,u=i.maintpanel,d=i.on,m=i.autopatrol,c=i.canhack,v=i.emagged,b=i.remote_disabled,C=i.painame,h=i.cleanblood;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:500,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,t.NoticeBox,{children:["Swipe an ID card to ",l?"unlock":"lock"," this interface."]}),(0,e.createComponentVNode)(2,t.Section,{title:"General Settings",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:(0,e.createComponentVNode)(2,t.Button,{icon:d?"power-off":"times",content:d?"On":"Off",selected:d,disabled:f,onClick:function(){function g(){return p("power")}return g}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Patrol",children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:m,content:"Auto Patrol",disabled:f,onClick:function(){function g(){return p("autopatrol")}return g}()})}),!!u&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Maintenance Panel",children:(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:"Panel Open!"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Safety System",children:(0,e.createComponentVNode)(2,t.Box,{color:v?"bad":"good",children:v?"DISABLED!":"Enabled"})}),!!c&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Hacking",children:(0,e.createComponentVNode)(2,t.Button,{icon:"terminal",content:v?"Restore Safties":"Hack",disabled:f,color:"bad",onClick:function(){function g(){return p("hack")}return g}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Remote Access",children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:!b,content:"AI Remote Control",disabled:f,onClick:function(){function g(){return p("disableremote")}return g}()})})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Cleaning Settings",children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:h,content:"Clean Blood",disabled:f,onClick:function(){function g(){return p("blood")}return g}()})}),C&&(0,e.createComponentVNode)(2,t.Section,{title:"pAI",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"eject",content:C,disabled:f,onClick:function(){function g(){return p("ejectpai")}return g}()})})]})})}return y}()},4249:function(I,r,n){"use strict";r.__esModule=!0,r.BotSecurity=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),s=r.BotSecurity=function(){function y(V,k){var S=(0,a.useBackend)(k),p=S.act,i=S.data,l=i.locked,f=i.noaccess,u=i.maintpanel,d=i.on,m=i.autopatrol,c=i.canhack,v=i.emagged,b=i.remote_disabled,C=i.painame,h=i.check_id,g=i.check_weapons,N=i.check_warrant,x=i.arrest_mode,B=i.arrest_declare;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:500,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,t.NoticeBox,{children:["Swipe an ID card to ",l?"unlock":"lock"," this interface."]}),(0,e.createComponentVNode)(2,t.Section,{title:"General Settings",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:(0,e.createComponentVNode)(2,t.Button,{icon:d?"power-off":"times",content:d?"On":"Off",selected:d,disabled:f,onClick:function(){function L(){return p("power")}return L}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Patrol",children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:m,content:"Auto Patrol",disabled:f,onClick:function(){function L(){return p("autopatrol")}return L}()})}),!!u&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Maintenance Panel",children:(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:"Panel Open!"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Safety System",children:(0,e.createComponentVNode)(2,t.Box,{color:v?"bad":"good",children:v?"DISABLED!":"Enabled"})}),!!c&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Hacking",children:(0,e.createComponentVNode)(2,t.Button,{icon:"terminal",content:v?"Restore Safties":"Hack",disabled:f,color:"bad",onClick:function(){function L(){return p("hack")}return L}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Remote Access",children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:!b,content:"AI Remote Control",disabled:f,onClick:function(){function L(){return p("disableremote")}return L}()})})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Who To Arrest",children:[(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:h,content:"Unidentifiable Persons",disabled:f,onClick:function(){function L(){return p("authid")}return L}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:g,content:"Unauthorized Weapons",disabled:f,onClick:function(){function L(){return p("authweapon")}return L}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:N,content:"Wanted Criminals",disabled:f,onClick:function(){function L(){return p("authwarrant")}return L}()})]}),(0,e.createComponentVNode)(2,t.Section,{title:"Arrest Procedure",children:[(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:x,content:"Detain Targets Indefinitely",disabled:f,onClick:function(){function L(){return p("arrtype")}return L}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:B,content:"Announce Arrests On Radio",disabled:f,onClick:function(){function L(){return p("arrdeclare")}return L}()})]}),C&&(0,e.createComponentVNode)(2,t.Section,{title:"pAI",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"eject",content:C,disabled:f,onClick:function(){function L(){return p("ejectpai")}return L}()})})]})})}return y}()},27267:function(I,r,n){"use strict";r.__esModule=!0,r.BrigCells=void 0;var e=n(96524),a=n(45493),t=n(24674),o=n(17899),s=function(S,p){var i=S.cell,l=(0,o.useBackend)(p),f=l.act,u=i.cell_id,d=i.occupant,m=i.crimes,c=i.brigged_by,v=i.time_left_seconds,b=i.time_set_seconds,C=i.ref,h="";v>0&&(h+=" BrigCells__listRow--active");var g=function(){f("release",{ref:C})};return(0,e.createComponentVNode)(2,t.Table.Row,{className:h,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:u}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:d}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:m}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:c}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.TimeDisplay,{totalSeconds:b})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.TimeDisplay,{totalSeconds:v})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{type:"button",onClick:g,children:"Release"})})]})},y=function(S){var p=S.cells;return(0,e.createComponentVNode)(2,t.Table,{className:"BrigCells__list",children:[(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{header:!0,children:"Cell"}),(0,e.createComponentVNode)(2,t.Table.Cell,{header:!0,children:"Occupant"}),(0,e.createComponentVNode)(2,t.Table.Cell,{header:!0,children:"Crimes"}),(0,e.createComponentVNode)(2,t.Table.Cell,{header:!0,children:"Brigged By"}),(0,e.createComponentVNode)(2,t.Table.Cell,{header:!0,children:"Time Brigged For"}),(0,e.createComponentVNode)(2,t.Table.Cell,{header:!0,children:"Time Left"}),(0,e.createComponentVNode)(2,t.Table.Cell,{header:!0,children:"Release"})]}),p.map(function(i){return(0,e.createComponentVNode)(2,s,{cell:i},i.ref)})]})},V=r.BrigCells=function(){function k(S,p){var i=(0,o.useBackend)(p),l=i.act,f=i.data,u=f.cells;return(0,e.createComponentVNode)(2,a.Window,{theme:"security",width:800,height:400,children:(0,e.createComponentVNode)(2,a.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,y,{cells:u})})})})})}return k}()},26623:function(I,r,n){"use strict";r.__esModule=!0,r.BrigTimer=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),s=r.BrigTimer=function(){function y(V,k){var S=(0,a.useBackend)(k),p=S.act,i=S.data;i.nameText=i.occupant,i.timing&&(i.prisoner_hasrec?i.nameText=(0,e.createComponentVNode)(2,t.Box,{color:"green",children:i.occupant}):i.nameText=(0,e.createComponentVNode)(2,t.Box,{color:"red",children:i.occupant}));var l="pencil-alt";i.prisoner_name&&(i.prisoner_hasrec||(l="exclamation-triangle"));var f=[],u=0;for(u=0;u60||!i.isAllowed,onClick:function(){function d(){return p("start")}return d}()})})]})})]})})}return y}()},43542:function(I,r,n){"use strict";r.__esModule=!0,r.CameraConsoleOldContent=r.CameraConsoleMapContent=r.CameraConsoleListContent=r.CameraConsole=void 0;var e=n(96524),a=n(50640),t=n(74041),o=n(28234),s=n(78234),y=n(17899),V=n(24674),k=n(45493);String.prototype.trimLongStr=function(d){return this.length>d?this.substring(0,d)+"...":this};var S=function(m,c){var v,b;if(!c)return[];var C=m.findIndex(function(h){return h.name===c.name});return[(v=m[C-1])==null?void 0:v.name,(b=m[C+1])==null?void 0:b.name]},p=function(m,c){c===void 0&&(c="");var v=(0,s.createSearch)(c,function(b){return b.name});return(0,t.flow)([(0,a.filter)(function(b){return b==null?void 0:b.name}),c&&(0,a.filter)(v),(0,a.sortBy)(function(b){return b.name})])(m)},i=r.CameraConsole=function(){function d(m,c){var v=(0,y.useLocalState)(c,"tabIndex",0),b=v[0],C=v[1],h=function(){function g(N){switch(N){case 0:return(0,e.createComponentVNode)(2,l);case 1:return(0,e.createComponentVNode)(2,f);default:return"WE SHOULDN'T BE HERE!"}}return g}();return(0,e.createComponentVNode)(2,k.Window,{width:1250,height:600,children:(0,e.createComponentVNode)(2,k.Window.Content,{children:(0,e.createComponentVNode)(2,V.Box,{fillPositionedParent:!0,overflow:"hidden",children:[(0,e.createComponentVNode)(2,V.Tabs,{children:[(0,e.createComponentVNode)(2,V.Tabs.Tab,{selected:b===0,onClick:function(){function g(){return C(0)}return g}(),children:[(0,e.createComponentVNode)(2,V.Icon,{name:"map-marked-alt"})," Map"]},"Map"),(0,e.createComponentVNode)(2,V.Tabs.Tab,{selected:b===1,onClick:function(){function g(){return C(1)}return g}(),children:[(0,e.createComponentVNode)(2,V.Icon,{name:"table"})," List"]},"List")]}),h(b)]})})})}return d}(),l=r.CameraConsoleMapContent=function(){function d(m,c){var v=(0,y.useBackend)(c),b=v.act,C=v.data,h=p(C.cameras),g=(0,y.useLocalState)(c,"zoom",1),N=g[0],x=g[1],B=C.mapRef,L=C.activeCamera,w=C.stationLevelNum,A=C.stationLevelName,T=(0,y.useLocalState)(c,"z_current",w[0]),E=T[0],O=T[1],P=S(h,L),R=P[0],F=P[1];return(0,e.createComponentVNode)(2,V.Box,{height:"100%",display:"flex",children:[(0,e.createVNode)(1,"div","CameraConsole__left",(0,e.createComponentVNode)(2,V.Box,{height:"100%",display:"flex",children:(0,e.createComponentVNode)(2,V.NanoMap,{onZoom:function(){function j(U){return x(U)}return j}(),zLevels:w,zNames:A,z_current:E,setZCurrent:O,children:h.map(function(j){return(0,e.createComponentVNode)(2,V.NanoMap.Marker,{x:j.x,y:j.y,z:j.z,z_current:E,zoom:N,icon:"box",tooltip:j.name,color:j.status?"blue":"red",onClick:function(){function U(){return b("switch_camera",{name:j.name})}return U}()},j.ref)})})}),2),(0,e.createVNode)(1,"div","CameraConsole__right",[(0,e.createVNode)(1,"div","CameraConsole__toolbar",[(0,e.createVNode)(1,"b",null,"Camera: ",16),L&&L.name||"\u2014"],0),(0,e.createVNode)(1,"div","CameraConsole__toolbarRight",[(0,e.createComponentVNode)(2,V.Button,{icon:"chevron-left",disabled:!R,onClick:function(){function j(){return b("switch_camera",{name:R})}return j}()}),(0,e.createComponentVNode)(2,V.Button,{icon:"chevron-right",disabled:!F,onClick:function(){function j(){return b("switch_camera",{name:F})}return j}()})],4),(0,e.createComponentVNode)(2,V.ByondUi,{className:"CameraConsole__map",params:{id:B,type:"map"}})],4)]})}return d}(),f=r.CameraConsoleOldContent=function(){function d(m,c){var v=(0,y.useBackend)(c),b=v.act,C=v.data,h=v.config,g=C.mapRef,N=C.activeCamera,x=(0,y.useLocalState)(c,"searchText",""),B=x[0],L=p(C.cameras,B),w=S(L,N),A=w[0],T=w[1];return(0,e.createComponentVNode)(2,V.Box,{children:[(0,e.createVNode)(1,"div","CameraConsole__left",(0,e.createComponentVNode)(2,k.Window.Content,{children:(0,e.createComponentVNode)(2,V.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,u)})}),2),(0,e.createVNode)(1,"div","CameraConsole__right",[(0,e.createVNode)(1,"div","CameraConsole__toolbar",[(0,e.createVNode)(1,"b",null,"Camera: ",16),N&&N.name||"\u2014"],0),(0,e.createVNode)(1,"div","CameraConsole__toolbarRight",[(0,e.createComponentVNode)(2,V.Button,{icon:"chevron-left",disabled:!A,onClick:function(){function E(){return b("switch_camera",{name:A})}return E}()}),(0,e.createComponentVNode)(2,V.Button,{icon:"chevron-right",disabled:!T,onClick:function(){function E(){return b("switch_camera",{name:T})}return E}()})],4),(0,e.createComponentVNode)(2,V.ByondUi,{className:"CameraConsole__map",params:{id:g,type:"map"}})],4)]})}return d}(),u=r.CameraConsoleListContent=function(){function d(m,c){var v=(0,y.useBackend)(c),b=v.act,C=v.data,h=(0,y.useLocalState)(c,"searchText",""),g=h[0],N=h[1],x=C.activeCamera,B=p(C.cameras,g);return(0,e.createComponentVNode)(2,V.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,V.Stack.Item,{children:(0,e.createComponentVNode)(2,V.Input,{fluid:!0,placeholder:"Search for a camera",onInput:function(){function L(w,A){return N(A)}return L}()})}),(0,e.createComponentVNode)(2,V.Stack.Item,{grow:!0,m:0,children:(0,e.createComponentVNode)(2,V.Section,{fill:!0,scrollable:!0,children:B.map(function(L){return(0,e.createVNode)(1,"div",(0,o.classes)(["Button","Button--fluid","Button--color--transparent",x&&L.name===x.name&&"Button--selected"]),L.name,0,{title:L.name,onClick:function(){function w(){return b("switch_camera",{name:L.name})}return w}()},L.name)})})})]})}return d}()},95513:function(I,r,n){"use strict";r.__esModule=!0,r.Canister=void 0;var e=n(96524),a=n(36121),t=n(17899),o=n(24674),s=n(92986),y=n(45493),V=r.Canister=function(){function k(S,p){var i=(0,t.useBackend)(p),l=i.act,f=i.data,u=f.portConnected,d=f.tankPressure,m=f.releasePressure,c=f.defaultReleasePressure,v=f.minReleasePressure,b=f.maxReleasePressure,C=f.valveOpen,h=f.name,g=f.canLabel,N=f.colorContainer,x=f.color_index,B=f.hasHoldingTank,L=f.holdingTank,w="";x.prim&&(w=N.prim.options[x.prim].name);var A="";x.sec&&(A=N.sec.options[x.sec].name);var T="";x.ter&&(T=N.ter.options[x.ter].name);var E="";x.quart&&(E=N.quart.options[x.quart].name);var O=[],P=[],R=[],F=[],j=0;for(j=0;jh.current_positions&&(0,e.createComponentVNode)(2,t.Box,{color:"green",children:h.total_positions-h.current_positions})||(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"0"})}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{content:"-",disabled:c.cooldown_time||!h.can_close,onClick:function(){function g(){return m("make_job_unavailable",{job:h.title})}return g}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{content:"+",disabled:c.cooldown_time||!h.can_open,onClick:function(){function g(){return m("make_job_available",{job:h.title})}return g}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:c.target_dept&&(0,e.createComponentVNode)(2,t.Box,{color:"green",children:c.priority_jobs.indexOf(h.title)>-1?"Yes":""})||(0,e.createComponentVNode)(2,t.Button,{content:h.is_priority?"Yes":"No",selected:h.is_priority,disabled:c.cooldown_time||!h.can_prioritize,onClick:function(){function g(){return m("prioritize_job",{job:h.title})}return g}()})})]},h.title)})]})})]}):C=(0,e.createComponentVNode)(2,k);break;case 2:!c.authenticated||!c.scan_name?C=(0,e.createComponentVNode)(2,k):c.modify_name?C=(0,e.createComponentVNode)(2,s.AccessList,{accesses:c.regions,selectedList:c.selectedAccess,accessMod:function(){function h(g){return m("set",{access:g})}return h}(),grantAll:function(){function h(){return m("grant_all")}return h}(),denyAll:function(){function h(){return m("clear_all")}return h}(),grantDep:function(){function h(g){return m("grant_region",{region:g})}return h}(),denyDep:function(){function h(g){return m("deny_region",{region:g})}return h}()}):C=(0,e.createComponentVNode)(2,S);break;case 3:c.authenticated?c.records.length?C=(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Records",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"times",content:"Delete All Records",disabled:!c.authenticated||c.records.length===0||c.target_dept,onClick:function(){function h(){return m("wipe_all_logs")}return h}()}),children:[(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{height:2,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Crewman"}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Old Rank"}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"New Rank"}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Authorized By"}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Time"}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Reason"}),!!c.iscentcom&&(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Deleted By"})]}),c.records.map(function(h){return(0,e.createComponentVNode)(2,t.Table.Row,{height:2,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:h.transferee}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:h.oldvalue}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:h.newvalue}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:h.whodidit}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:h.timestamp}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:h.reason}),!!c.iscentcom&&(0,e.createComponentVNode)(2,t.Table.Cell,{children:h.deletedby})]},h.timestamp)})]}),!!c.iscentcom&&(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"pencil-alt",content:"Delete MY Records",color:"purple",disabled:!c.authenticated||c.records.length===0,onClick:function(){function h(){return m("wipe_my_logs")}return h}()})})]}):C=(0,e.createComponentVNode)(2,p):C=(0,e.createComponentVNode)(2,k);break;case 4:!c.authenticated||!c.scan_name?C=(0,e.createComponentVNode)(2,k):C=(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Your Team",children:(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{height:2,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Name"}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Rank"}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Sec Status"}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Actions"})]}),c.people_dept.map(function(h){return(0,e.createComponentVNode)(2,t.Table.Row,{height:2,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:h.name}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:h.title}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:h.crimstat}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{content:h.buttontext,disabled:!h.demotable,onClick:function(){function g(){return m("remote_demote",{remote_demote:h.name})}return g}()})})]},h.title)})]})});break;default:C=(0,e.createComponentVNode)(2,t.Section,{title:"Warning",color:"red",children:"ERROR: Unknown Mode."})}return(0,e.createComponentVNode)(2,o.Window,{width:800,height:800,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:b}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:v}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:C})]})})})}return l}()},16377:function(I,r,n){"use strict";r.__esModule=!0,r.CargoConsole=void 0;var e=n(96524),a=n(74041),t=n(50640),o=n(17899),s=n(24674),y=n(45493),V=n(78234),k=r.CargoConsole=function(){function f(u,d){return(0,e.createComponentVNode)(2,y.Window,{width:900,height:800,children:(0,e.createComponentVNode)(2,y.Window.Content,{children:(0,e.createComponentVNode)(2,s.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,S),(0,e.createComponentVNode)(2,p),(0,e.createComponentVNode)(2,i),(0,e.createComponentVNode)(2,l)]})})})}return f}(),S=function(u,d){var m=(0,o.useLocalState)(d,"contentsModal",null),c=m[0],v=m[1],b=(0,o.useLocalState)(d,"contentsModalTitle",null),C=b[0],h=b[1];if(c!==null&&C!==null)return(0,e.createComponentVNode)(2,s.Modal,{maxWidth:"75%",width:window.innerWidth+"px",maxHeight:window.innerHeight*.75+"px",mx:"auto",children:[(0,e.createComponentVNode)(2,s.Box,{width:"100%",bold:!0,children:(0,e.createVNode)(1,"h1",null,[C,(0,e.createTextVNode)(" contents:")],0)}),(0,e.createComponentVNode)(2,s.Box,{children:c.map(function(g){return(0,e.createComponentVNode)(2,s.Box,{children:["- ",g]},g)})}),(0,e.createComponentVNode)(2,s.Box,{m:2,children:(0,e.createComponentVNode)(2,s.Button,{content:"Close",onClick:function(){function g(){v(null),h(null)}return g}()})})]})},p=function(u,d){var m=(0,o.useBackend)(d),c=m.act,v=m.data,b=v.is_public,C=v.points,h=v.credits,g=v.timeleft,N=v.moving,x=v.at_station,B,L;return!N&&!x?(B="Docked off-station",L="Call Shuttle"):!N&&x?(B="Docked at the station",L="Return Shuttle"):N&&(L="In Transit...",g!==1?B="Shuttle is en route (ETA: "+g+" minutes)":B="Shuttle is en route (ETA: "+g+" minute)"),(0,e.createComponentVNode)(2,s.Stack.Item,{children:(0,e.createComponentVNode)(2,s.Section,{title:"Status",children:(0,e.createComponentVNode)(2,s.LabeledList,{children:[(0,e.createComponentVNode)(2,s.LabeledList.Item,{label:"Points Available",children:C}),(0,e.createComponentVNode)(2,s.LabeledList.Item,{label:"Credits Available",children:h}),(0,e.createComponentVNode)(2,s.LabeledList.Item,{label:"Shuttle Status",children:B}),b===0&&(0,e.createComponentVNode)(2,s.LabeledList.Item,{label:"Controls",children:[(0,e.createComponentVNode)(2,s.Button,{content:L,disabled:N,onClick:function(){function w(){return c("moveShuttle")}return w}()}),(0,e.createComponentVNode)(2,s.Button,{content:"View Central Command Messages",onClick:function(){function w(){return c("showMessages")}return w}()})]})]})})})},i=function(u,d){var m=(0,o.useBackend)(d),c=m.act,v=m.data,b=v.categories,C=v.supply_packs,h=(0,o.useSharedState)(d,"category","Emergency"),g=h[0],N=h[1],x=(0,o.useSharedState)(d,"search_text",""),B=x[0],L=x[1],w=(0,o.useLocalState)(d,"contentsModal",null),A=w[0],T=w[1],E=(0,o.useLocalState)(d,"contentsModalTitle",null),O=E[0],P=E[1],R=(0,V.createSearch)(B,function(U){return U.name}),F=(0,a.flow)([(0,t.filter)(function(U){return U.cat===b.filter(function(_){return _.name===g})[0].category||B}),B&&(0,t.filter)(R),(0,t.sortBy)(function(U){return U.name.toLowerCase()})])(C),j="Crate Catalogue";return B?j="Results for '"+B+"':":g&&(j="Browsing "+g),(0,e.createComponentVNode)(2,s.Stack.Item,{children:(0,e.createComponentVNode)(2,s.Section,{title:j,buttons:(0,e.createComponentVNode)(2,s.Dropdown,{width:"190px",options:b.map(function(U){return U.name}),selected:g,onSelected:function(){function U(_){return N(_)}return U}()}),children:[(0,e.createComponentVNode)(2,s.Input,{fluid:!0,placeholder:"Search for...",onInput:function(){function U(_,K){return L(K)}return U}(),mb:1}),(0,e.createComponentVNode)(2,s.Box,{maxHeight:25,overflowY:"auto",overflowX:"hidden",children:(0,e.createComponentVNode)(2,s.Table,{m:"0.5rem",children:F.map(function(U){return(0,e.createComponentVNode)(2,s.Table.Row,{children:[(0,e.createComponentVNode)(2,s.Table.Cell,{bold:!0,children:(0,e.createComponentVNode)(2,s.Box,{color:U.has_sale?"good":"default",children:[U.name," (",U.cost?U.cost+" Points":"",U.creditsCost&&U.cost?" ":"",U.creditsCost?U.creditsCost+" Credits":"",")"]})}),(0,e.createComponentVNode)(2,s.Table.Cell,{textAlign:"right",pr:1,children:[(0,e.createComponentVNode)(2,s.Button,{content:"Order 1",icon:"shopping-cart",onClick:function(){function _(){return c("order",{crate:U.ref,multiple:0})}return _}()}),(0,e.createComponentVNode)(2,s.Button,{content:"Order Multiple",icon:"cart-plus",onClick:function(){function _(){return c("order",{crate:U.ref,multiple:1})}return _}()}),(0,e.createComponentVNode)(2,s.Button,{content:"View Contents",icon:"search",onClick:function(){function _(){T(U.contents),P(U.name)}return _}()})]})]},U.name)})})})]})})},l=function(u,d){var m=(0,o.useBackend)(d),c=m.act,v=m.data,b=v.requests,C=v.canapprove,h=v.orders;return(0,e.createComponentVNode)(2,s.Section,{fill:!0,scrollable:!0,title:"Details",children:[(0,e.createComponentVNode)(2,s.Box,{bold:!0,children:"Requests"}),(0,e.createComponentVNode)(2,s.Table,{m:"0.5rem",children:b.map(function(g){return(0,e.createComponentVNode)(2,s.Table.Row,{children:[(0,e.createComponentVNode)(2,s.Table.Cell,{children:[(0,e.createComponentVNode)(2,s.Box,{children:["- #",g.ordernum,": ",g.supply_type," for ",(0,e.createVNode)(1,"b",null,g.orderedby,0)]}),(0,e.createComponentVNode)(2,s.Box,{italic:!0,children:["Reason: ",g.comment]}),(0,e.createComponentVNode)(2,s.Box,{italic:!0,children:["Required Techs: ",g.pack_techs]})]}),(0,e.createComponentVNode)(2,s.Stack.Item,{textAlign:"right",children:[(0,e.createComponentVNode)(2,s.Button,{content:"Approve",color:"green",disabled:!C,onClick:function(){function N(){return c("approve",{ordernum:g.ordernum})}return N}()}),(0,e.createComponentVNode)(2,s.Button,{content:"Deny",color:"red",onClick:function(){function N(){return c("deny",{ordernum:g.ordernum})}return N}()})]})]},g.ordernum)})}),(0,e.createComponentVNode)(2,s.Box,{bold:!0,children:"Confirmed Orders"}),(0,e.createComponentVNode)(2,s.Table,{m:"0.5rem",children:h.map(function(g){return(0,e.createComponentVNode)(2,s.Table.Row,{children:(0,e.createComponentVNode)(2,s.Table.Cell,{children:[(0,e.createComponentVNode)(2,s.Box,{children:["- #",g.ordernum,": ",g.supply_type," for ",(0,e.createVNode)(1,"b",null,g.orderedby,0)]}),(0,e.createComponentVNode)(2,s.Box,{italic:!0,children:["Reason: ",g.comment]})]})},g.ordernum)})})]})}},14372:function(I,r,n){"use strict";r.__esModule=!0,r.Changelog=void 0;var e=n(96524),a=n(28234),t=n(17899),o=n(24674),s=n(45493),y=n(17442),V=S(n(97186)),k=S(n(71212));function S(c){return c&&c.__esModule?c:{default:c}}function p(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */p=function(){return v};var c,v={},b=Object.prototype,C=b.hasOwnProperty,h=Object.defineProperty||function(he,Q,X){he[Q]=X.value},g=typeof Symbol=="function"?Symbol:{},N=g.iterator||"@@iterator",x=g.asyncIterator||"@@asyncIterator",B=g.toStringTag||"@@toStringTag";function L(he,Q,X){return Object.defineProperty(he,Q,{value:X,enumerable:!0,configurable:!0,writable:!0}),he[Q]}try{L({},"")}catch(he){L=function(X,te,q){return X[te]=q}}function w(he,Q,X,te){var q=Q&&Q.prototype instanceof F?Q:F,ce=Object.create(q.prototype),Ve=new Ie(te||[]);return h(ce,"_invoke",{value:se(he,X,Ve)}),ce}function A(he,Q,X){try{return{type:"normal",arg:he.call(Q,X)}}catch(te){return{type:"throw",arg:te}}}v.wrap=w;var T="suspendedStart",E="suspendedYield",O="executing",P="completed",R={};function F(){}function j(){}function U(){}var _={};L(_,N,function(){return this});var K=Object.getPrototypeOf,Y=K&&K(K(Te([])));Y&&Y!==b&&C.call(Y,N)&&(_=Y);var G=U.prototype=F.prototype=Object.create(_);function ne(he){["next","throw","return"].forEach(function(Q){L(he,Q,function(X){return this._invoke(Q,X)})})}function $(he,Q){function X(q,ce,Ve,fe){var we=A(he[q],he,ce);if(we.type!=="throw"){var M=we.arg,J=M.value;return J&&typeof J=="object"&&C.call(J,"__await")?Q.resolve(J.__await).then(function(re){X("next",re,Ve,fe)},function(re){X("throw",re,Ve,fe)}):Q.resolve(J).then(function(re){M.value=re,Ve(M)},function(re){return X("throw",re,Ve,fe)})}fe(we.arg)}var te;h(this,"_invoke",{value:function(){function q(ce,Ve){function fe(){return new Q(function(we,M){X(ce,Ve,we,M)})}return te=te?te.then(fe,fe):fe()}return q}()})}function se(he,Q,X){var te=T;return function(q,ce){if(te===O)throw Error("Generator is already running");if(te===P){if(q==="throw")throw ce;return{value:c,done:!0}}for(X.method=q,X.arg=ce;;){var Ve=X.delegate;if(Ve){var fe=Ne(Ve,X);if(fe){if(fe===R)continue;return fe}}if(X.method==="next")X.sent=X._sent=X.arg;else if(X.method==="throw"){if(te===T)throw te=P,X.arg;X.dispatchException(X.arg)}else X.method==="return"&&X.abrupt("return",X.arg);te=O;var we=A(he,Q,X);if(we.type==="normal"){if(te=X.done?P:E,we.arg===R)continue;return{value:we.arg,done:X.done}}we.type==="throw"&&(te=P,X.method="throw",X.arg=we.arg)}}}function Ne(he,Q){var X=Q.method,te=he.iterator[X];if(te===c)return Q.delegate=null,X==="throw"&&he.iterator.return&&(Q.method="return",Q.arg=c,Ne(he,Q),Q.method==="throw")||X!=="return"&&(Q.method="throw",Q.arg=new TypeError("The iterator does not provide a '"+X+"' method")),R;var q=A(te,he.iterator,Q.arg);if(q.type==="throw")return Q.method="throw",Q.arg=q.arg,Q.delegate=null,R;var ce=q.arg;return ce?ce.done?(Q[he.resultName]=ce.value,Q.next=he.nextLoc,Q.method!=="return"&&(Q.method="next",Q.arg=c),Q.delegate=null,R):ce:(Q.method="throw",Q.arg=new TypeError("iterator result is not an object"),Q.delegate=null,R)}function be(he){var Q={tryLoc:he[0]};1 in he&&(Q.catchLoc=he[1]),2 in he&&(Q.finallyLoc=he[2],Q.afterLoc=he[3]),this.tryEntries.push(Q)}function xe(he){var Q=he.completion||{};Q.type="normal",delete Q.arg,he.completion=Q}function Ie(he){this.tryEntries=[{tryLoc:"root"}],he.forEach(be,this),this.reset(!0)}function Te(he){if(he||he===""){var Q=he[N];if(Q)return Q.call(he);if(typeof he.next=="function")return he;if(!isNaN(he.length)){var X=-1,te=function(){function q(){for(;++X=0;--q){var ce=this.tryEntries[q],Ve=ce.completion;if(ce.tryLoc==="root")return te("end");if(ce.tryLoc<=this.prev){var fe=C.call(ce,"catchLoc"),we=C.call(ce,"finallyLoc");if(fe&&we){if(this.prev=0;--te){var q=this.tryEntries[te];if(q.tryLoc<=this.prev&&C.call(q,"finallyLoc")&&this.prev=0;--X){var te=this.tryEntries[X];if(te.finallyLoc===Q)return this.complete(te.completion,te.afterLoc),xe(te),R}}return he}(),catch:function(){function he(Q){for(var X=this.tryEntries.length-1;X>=0;--X){var te=this.tryEntries[X];if(te.tryLoc===Q){var q=te.completion;if(q.type==="throw"){var ce=q.arg;xe(te)}return ce}}throw Error("illegal catch attempt")}return he}(),delegateYield:function(){function he(Q,X,te){return this.delegate={iterator:Te(Q),resultName:X,nextLoc:te},this.method==="next"&&(this.arg=c),R}return he}()},v}function i(c,v,b,C,h,g,N){try{var x=c[g](N),B=x.value}catch(L){b(L);return}x.done?v(B):Promise.resolve(B).then(C,h)}function l(c){return function(){var v=this,b=arguments;return new Promise(function(C,h){var g=c.apply(v,b);function N(B){i(g,C,h,N,x,"next",B)}function x(B){i(g,C,h,N,x,"throw",B)}N(void 0)})}}function f(c,v){c.prototype=Object.create(v.prototype),c.prototype.constructor=c,u(c,v)}function u(c,v){return u=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function b(C,h){return C.__proto__=h,C}return b}(),u(c,v)}var d={add:{icon:"check-circle",color:"green"},admin:{icon:"user-shield",color:"purple"},balance:{icon:"balance-scale-right",color:"yellow"},bugfix:{icon:"bug",color:"green"},code_imp:{icon:"code",color:"green"},config:{icon:"cogs",color:"purple"},del:{icon:"minus",color:"red"},expansion:{icon:"check-circle",color:"green"},experiment:{icon:"radiation",color:"yellow"},image:{icon:"image",color:"green"},imageadd:{icon:"tg-image-plus",color:"green"},imagedel:{icon:"tg-image-minus",color:"red"},qol:{icon:"hand-holding-heart",color:"green"},refactor:{icon:"tools",color:"green"},rscadd:{icon:"check-circle",color:"green"},rscdel:{icon:"times-circle",color:"red"},server:{icon:"server",color:"purple"},sound:{icon:"volume-high",color:"green"},soundadd:{icon:"tg-sound-plus",color:"green"},sounddel:{icon:"tg-sound-minus",color:"red"},spellcheck:{icon:"spell-check",color:"green"},tgs:{icon:"toolbox",color:"purple"},tweak:{icon:"wrench",color:"green"},unknown:{icon:"info-circle",color:"label"},wip:{icon:"hammer",color:"orange"}},m=r.Changelog=function(c){function v(){var C;return C=c.call(this)||this,C.getData=function(h,g){g===void 0&&(g=1);var N=(0,t.useBackend)(C.context),x=N.act,B=C,L=6;if(g>L)return C.setData("Failed to load data after "+L+" attempts");x("get_month",{date:h}),fetch((0,y.resolveAsset)(h+".yml")).then(function(){var w=l(p().mark(function(){function A(T){var E,O,P;return p().wrap(function(){function R(F){for(;;)switch(F.prev=F.next){case 0:return F.next=2,T.text();case 2:E=F.sent,O=/^Cannot find/,O.test(E)?(P=50+g*50,B.setData("Loading changelog data"+".".repeat(g+3)),setTimeout(function(){B.getData(h,g+1)},P)):B.setData(k.default.load(E,{schema:k.default.CORE_SCHEMA}));case 5:case"end":return F.stop()}}return R}(),A)}return A}()));return function(A){return w.apply(this,arguments)}}())},C.state={data:"Loading changelog data...",selectedDate:"",selectedIndex:0},C.dateChoices=[],C}f(v,c);var b=v.prototype;return b.setData=function(){function C(h){this.setState({data:h})}return C}(),b.setSelectedDate=function(){function C(h){this.setState({selectedDate:h})}return C}(),b.setSelectedIndex=function(){function C(h){this.setState({selectedIndex:h})}return C}(),b.componentDidMount=function(){function C(){var h=this,g=(0,t.useBackend)(this.context),N=g.data.dates,x=N===void 0?[]:N;x&&(x.forEach(function(B){return h.dateChoices.push((0,V.default)(B,"mmmm yyyy",!0))}),this.setSelectedDate(this.dateChoices[0]),this.getData(x[0]))}return C}(),b.render=function(){function C(){var h=this,g=this.state,N=g.data,x=g.selectedDate,B=g.selectedIndex,L=(0,t.useBackend)(this.context),w=L.data.dates,A=this.dateChoices,T=A.length>0&&(0,e.createComponentVNode)(2,o.Stack,{mb:1,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{className:"Changelog__Button",disabled:B===0,icon:"chevron-left",onClick:function(){function F(){var j=B-1;return h.setData("Loading changelog data..."),h.setSelectedIndex(j),h.setSelectedDate(A[j]),window.scrollTo(0,document.body.scrollHeight||document.documentElement.scrollHeight),h.getData(w[j])}return F}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Dropdown,{displayText:x,options:A,onSelected:function(){function F(j){var U=A.indexOf(j);return h.setData("Loading changelog data..."),h.setSelectedIndex(U),h.setSelectedDate(j),window.scrollTo(0,document.body.scrollHeight||document.documentElement.scrollHeight),h.getData(w[U])}return F}(),selected:x,width:"150px"})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{className:"Changelog__Button",disabled:B===A.length-1,icon:"chevron-right",onClick:function(){function F(){var j=B+1;return h.setData("Loading changelog data..."),h.setSelectedIndex(j),h.setSelectedDate(A[j]),window.scrollTo(0,document.body.scrollHeight||document.documentElement.scrollHeight),h.getData(w[j])}return F}()})})]}),E=(0,e.createComponentVNode)(2,o.Section,{children:[(0,e.createVNode)(1,"h1",null,"Paradise Station",16),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Thanks to: ",16),(0,e.createTextVNode)("Baystation 12, /tg/station, /vg/station, NTstation, CDK Station devs, FacepunchStation, GoonStation devs, the original SpaceStation developers and Radithor for the title image. Also a thanks to anybody who has contributed who is not listed here :( Ask to be added here on irc.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createTextVNode)("Recent GitHub contributors can be found "),(0,e.createVNode)(1,"a",null,"here",16,{href:"https://github.com/ss220-space/Paradise/pulse/monthly"}),(0,e.createTextVNode)(".")],0),T]}),O=(0,e.createComponentVNode)(2,o.Section,{children:[T,(0,e.createVNode)(1,"h3",null,"GoonStation 13 Development Team",16),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Coders: ",16),(0,e.createTextVNode)("Stuntwaffle, Showtime, Pantaloons, Nannek, Keelin, Exadv1, hobnob, Justicefries, 0staf, sniperchance, AngriestIBM, BrianOBlivion")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Spriters: ",16),(0,e.createTextVNode)("Supernorn, Haruhi, Stuntwaffle, Pantaloons, Rho, SynthOrange, I Said No")],4),(0,e.createVNode)(1,"p",null,[(0,e.createTextVNode)("Traditional Games Space Station 13 is thankful to the GoonStation 13 Development Team for its work on the game up to the"),(0,e.createTextVNode)(" r4407 release. The changelog for changes up to r4407 can be seen "),(0,e.createVNode)(1,"a",null,"here",16,{href:"https://wiki.ss13.co/Pre-2016_Changelog#April_2010"}),(0,e.createTextVNode)(".")],0),(0,e.createVNode)(1,"p",null,["Except where otherwise noted, Goon Station 13 is licensed under a ",(0,e.createVNode)(1,"a",null,"Creative Commons Attribution-Noncommercial-Share Alike 3.0 License",16,{href:"https://creativecommons.org/licenses/by-nc-sa/3.0/"}),". Rights are currently extended to ",(0,e.createVNode)(1,"a",null,"SomethingAwful Goons",16,{href:"http://forums.somethingawful.com/"})," only."],0),(0,e.createVNode)(1,"h3",null,"Traditional Games Space Station 13 License",16),(0,e.createVNode)(1,"p",null,[(0,e.createTextVNode)("Some icons by"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"a",null,"Yusuke Kamiyamane",16,{href:"http://p.yusukekamiyamane.com/"}),(0,e.createTextVNode)(". All rights reserved. Licensed under a"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"a",null,"Creative Commons Attribution 3.0 License",16,{href:"http://creativecommons.org/licenses/by/3.0/"}),(0,e.createTextVNode)(".")],0)]}),P=/#\d+/,R=typeof N=="object"&&Object.keys(N).length>0&&Object.entries(N).reverse().map(function(F){var j=F[0],U=F[1];return(0,e.createComponentVNode)(2,o.Section,{title:(0,V.default)(j,"d mmmm yyyy",!0),children:(0,e.createComponentVNode)(2,o.Box,{ml:3,children:Object.entries(U).map(function(_){var K=_[0],Y=_[1];return(0,e.createFragment)([(0,e.createVNode)(1,"h4",null,[K,(0,e.createTextVNode)(" changed:")],0),(0,e.createComponentVNode)(2,o.Box,{ml:3,children:(0,e.createComponentVNode)(2,o.Table,{children:Y.map(function(G){var ne=Object.keys(G)[0],$=G[ne],se=$.match(P),Ne=(0,e.createComponentVNode)(2,o.Table.Cell,{className:(0,a.classes)(["Changelog__Cell","Changelog__Cell--Icon"]),children:(0,e.createComponentVNode)(2,o.Icon,{color:d[ne]?d[ne].color:d.unknown.color,name:d[ne]?d[ne].icon:d.unknown.icon})});return se!==null&&(0,e.createComponentVNode)(2,o.Table.Row,{children:[Ne,(0,e.createComponentVNode)(2,o.Table.Cell,{className:"Changelog__Cell",children:(0,e.createVNode)(1,"a",null,[" ",$.charAt(0).toUpperCase()+$.slice(1)," "],0,{href:"https://github.com/ss220-space/Paradise/pull/"+se[0].substring(1)})})]},ne+$)||(0,e.createComponentVNode)(2,o.Table.Row,{children:[Ne,(0,e.createComponentVNode)(2,o.Table.Cell,{className:"Changelog__Cell",children:$})]},ne+$)})})})],4,K)})})},j)});return(0,e.createComponentVNode)(2,s.Window,{title:"Changelog",width:675,height:650,children:(0,e.createComponentVNode)(2,s.Window.Content,{scrollable:!0,children:[E,R,typeof N=="string"&&(0,e.createVNode)(1,"p",null,N,0),O]})})}return C}(),v}(e.Component)},71254:function(I,r,n){"use strict";r.__esModule=!0,r.ChemDispenser=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(1496),s=n(45493),y=[1,5,10,20,30,50,100],V=[1,5,10],k=r.ChemDispenser=function(){function l(f,u){var d=(0,a.useBackend)(u),m=d.act,c=d.data,v=c.chemicals;return(0,e.createComponentVNode)(2,s.Window,{width:460,height:400+v.length*8,children:(0,e.createComponentVNode)(2,s.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,S),(0,e.createComponentVNode)(2,p),(0,e.createComponentVNode)(2,i)]})})})}return l}(),S=function(f,u){var d=(0,a.useBackend)(u),m=d.act,c=d.data,v=c.amount,b=c.energy,C=c.maxEnergy;return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Settings",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Energy",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:b,minValue:0,maxValue:C,ranges:{good:[C*.5,1/0],average:[C*.25,C*.5],bad:[-1/0,C*.25]},children:[b," / ",C," Units"]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Dispense",verticalAlign:"middle",children:(0,e.createComponentVNode)(2,t.Stack,{children:y.map(function(h,g){return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,width:"15%",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"cog",selected:v===h,content:h,onClick:function(){function N(){return m("amount",{amount:h})}return N}()})},g)})})})]})})})},p=function(f,u){for(var d=(0,a.useBackend)(u),m=d.act,c=d.data,v=c.chemicals,b=v===void 0?[]:v,C=[],h=0;h<(b.length+1)%3;h++)C.push(!0);return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:c.glass?"Drink Dispenser":"Chemical Dispenser",children:[b.map(function(g,N){return(0,e.createComponentVNode)(2,t.Button,{m:.1,width:"32.5%",icon:"arrow-circle-down",overflow:"hidden",textOverflow:"ellipsis",content:g.title,style:{"margin-left":"2px"},onClick:function(){function x(){return m("dispense",{reagent:g.id})}return x}()},N)}),C.map(function(g,N){return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,basis:"25%"},N)})]})})},i=function(f,u){var d=(0,a.useBackend)(u),m=d.act,c=d.data,v=c.isBeakerLoaded,b=c.beakerCurrentVolume,C=c.beakerMaxVolume,h=c.beakerContents,g=h===void 0?[]:h;return(0,e.createComponentVNode)(2,t.Stack.Item,{height:16,children:(0,e.createComponentVNode)(2,t.Section,{title:c.glass?"Glass":"Beaker",fill:!0,scrollable:!0,buttons:(0,e.createComponentVNode)(2,t.Box,{children:[!!v&&(0,e.createComponentVNode)(2,t.Box,{inline:!0,color:"label",mr:2,children:[b," / ",C," units"]}),(0,e.createComponentVNode)(2,t.Button,{icon:"eject",content:"Eject",disabled:!v,onClick:function(){function N(){return m("ejectBeaker")}return N}()})]}),children:(0,e.createComponentVNode)(2,o.BeakerContents,{beakerLoaded:v,beakerContents:g,buttons:function(){function N(x){return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{content:"Isolate",icon:"compress-arrows-alt",onClick:function(){function B(){return m("remove",{reagent:x.id,amount:-1})}return B}()}),V.map(function(B,L){return(0,e.createComponentVNode)(2,t.Button,{content:B,onClick:function(){function w(){return m("remove",{reagent:x.id,amount:B})}return w}()},L)}),(0,e.createComponentVNode)(2,t.Button,{content:"ALL",onClick:function(){function B(){return m("remove",{reagent:x.id,amount:x.volume})}return B}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Floor",tooltip:"Set to "+Math.trunc(x.volume),icon:"arrow-circle-down",onClick:function(){function B(){return m("remove",{reagent:x.id,amount:-2})}return B}()})],0)}return N}()})})})}},27004:function(I,r,n){"use strict";r.__esModule=!0,r.ChemHeater=void 0;var e=n(96524),a=n(36121),t=n(17899),o=n(24674),s=n(1496),y=n(45493),V=r.ChemHeater=function(){function p(i,l){return(0,e.createComponentVNode)(2,y.Window,{width:350,height:275,children:(0,e.createComponentVNode)(2,y.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,k),(0,e.createComponentVNode)(2,S)]})})})}return p}(),k=function(i,l){var f=(0,t.useBackend)(l),u=f.act,d=f.data,m=d.targetTemp,c=d.targetTempReached,v=d.autoEject,b=d.isActive,C=d.currentTemp,h=d.isBeakerLoaded;return(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,title:"Settings",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{content:"Auto-eject",icon:v?"toggle-on":"toggle-off",selected:v,onClick:function(){function g(){return u("toggle_autoeject")}return g}()}),(0,e.createComponentVNode)(2,o.Button,{content:b?"On":"Off",icon:"power-off",selected:b,disabled:!h,onClick:function(){function g(){return u("toggle_on")}return g}()})],4),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Target",children:(0,e.createComponentVNode)(2,o.NumberInput,{width:"65px",unit:"K",step:10,stepPixelSize:3,value:(0,a.round)(m,0),minValue:0,maxValue:1e3,onDrag:function(){function g(N,x){return u("adjust_temperature",{target:x})}return g}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Reading",color:c?"good":"average",children:h&&(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:C,format:function(){function g(N){return(0,a.toFixed)(N)+" K"}return g}()})||"\u2014"})]})})})},S=function(i,l){var f=(0,t.useBackend)(l),u=f.act,d=f.data,m=d.isBeakerLoaded,c=d.beakerCurrentVolume,v=d.beakerMaxVolume,b=d.beakerContents;return(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{title:"Beaker",fill:!0,scrollable:!0,buttons:!!m&&(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,o.Box,{inline:!0,color:"label",mr:2,children:[c," / ",v," units"]}),(0,e.createComponentVNode)(2,o.Button,{icon:"eject",content:"Eject",onClick:function(){function C(){return u("eject_beaker")}return C}()})]}),children:(0,e.createComponentVNode)(2,s.BeakerContents,{beakerLoaded:m,beakerContents:b})})})}},41099:function(I,r,n){"use strict";r.__esModule=!0,r.ChemMaster=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),s=n(1496),y=n(99665),V=n(28234),k=["icon"];function S(B,L){if(B==null)return{};var w={},A=Object.keys(B),T,E;for(E=0;E=0)&&(w[T]=B[T]);return w}function p(B,L){B.prototype=Object.create(L.prototype),B.prototype.constructor=B,i(B,L)}function i(B,L){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function w(A,T){return A.__proto__=T,A}return w}(),i(B,L)}var l=[1,5,10],f=function(L,w){var A=(0,a.useBackend)(w),T=A.act,E=A.data,O=L.args.analysis;return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:E.condi?"Condiment Analysis":"Reagent Analysis",children:(0,e.createComponentVNode)(2,t.Box,{mx:"0.5rem",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Name",children:O.name}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Description",children:(O.desc||"").length>0?O.desc:"N/A"}),O.blood_type&&(0,e.createFragment)([(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Blood type",children:O.blood_type}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Blood DNA",className:"LabeledList__breakContents",children:O.blood_dna})],4),!E.condi&&(0,e.createComponentVNode)(2,t.Button,{icon:E.printing?"spinner":"print",disabled:E.printing,iconSpin:!!E.printing,ml:"0.5rem",content:"Print",onClick:function(){function P(){return T("print",{idx:O.idx,beaker:L.args.beaker})}return P}()})]})})})})},u=function(B){return B[B.ToDisposals=0]="ToDisposals",B[B.ToBeaker=1]="ToBeaker",B}(u||{}),d=r.ChemMaster=function(){function B(L,w){return(0,e.createComponentVNode)(2,o.Window,{width:575,height:650,children:[(0,e.createComponentVNode)(2,y.ComplexModal),(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,m),(0,e.createComponentVNode)(2,c),(0,e.createComponentVNode)(2,v),(0,e.createComponentVNode)(2,x)]})})]})}return B}(),m=function(L,w){var A=(0,a.useBackend)(w),T=A.act,E=A.data,O=E.beaker,P=E.beaker_reagents,R=E.buffer_reagents,F=R.length>0;return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Beaker",fill:!0,scrollable:!0,buttons:F?(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"eject",disabled:!O,content:"Eject and Clear Buffer",onClick:function(){function j(){return T("eject")}return j}()}):(0,e.createComponentVNode)(2,t.Button,{icon:"eject",disabled:!O,content:"Eject and Clear Buffer",onClick:function(){function j(){return T("eject")}return j}()}),children:O?(0,e.createComponentVNode)(2,s.BeakerContents,{beakerLoaded:!0,beakerContents:P,buttons:function(){function j(U,_){return(0,e.createComponentVNode)(2,t.Box,{mb:_0?(0,e.createComponentVNode)(2,s.BeakerContents,{beakerLoaded:!0,beakerContents:P,buttons:function(){function R(F,j){return(0,e.createComponentVNode)(2,t.Box,{mb:j0&&(F=R.map(function(j){var U=j.id,_=j.sprite;return(0,e.createComponentVNode)(2,g,{icon:_,color:"translucent",onClick:function(){function K(){return T("set_sprite_style",{production_mode:O,style:U})}return K}(),selected:P===U},U)})),(0,e.createComponentVNode)(2,h,{productionData:L.productionData,children:F&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Style",children:F})})},x=function(L,w){var A=(0,a.useBackend)(w),T=A.act,E=A.data,O=E.loaded_pill_bottle_style,P=E.containerstyles,R=E.loaded_pill_bottle,F={width:"20px",height:"20px"},j=P.map(function(U){var _=U.color,K=U.name,Y=O===_;return(0,e.createComponentVNode)(2,t.Button,{style:{position:"relative",width:F.width,height:F.height},onClick:function(){function G(){return T("set_container_style",{style:_})}return G}(),icon:Y&&"check",iconStyle:{position:"relative","z-index":1},tooltip:K,tooltipPosition:"top",children:[!Y&&(0,e.createVNode)(1,"div",null,null,1,{style:{display:"inline-block"}}),(0,e.createVNode)(1,"span","Button",null,1,{style:{display:"inline-block",position:"absolute",top:0,left:0,margin:0,padding:0,width:F.width,height:F.height,"background-color":_,opacity:.6,filter:"alpha(opacity=60)"}})]},_)});return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Container Customization",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"eject",disabled:!R,content:"Eject Container",onClick:function(){function U(){return T("ejectp")}return U}()}),children:R?(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Style",children:[(0,e.createComponentVNode)(2,t.Button,{style:{width:F.width,height:F.height},icon:"tint-slash",onClick:function(){function U(){return T("clear_container_style")}return U}(),selected:!O,tooltip:"Default",tooltipPosition:"top"}),j]})}):(0,e.createComponentVNode)(2,t.Box,{color:"label",children:"No pill bottle or patch pack loaded."})})})};(0,y.modalRegisterBodyOverride)("analyze",f)},51327:function(I,r,n){"use strict";r.__esModule=!0,r.CloningConsole=void 0;var e=n(96524),a=n(36121),t=n(17899),o=n(24674),s=n(38424),y=n(99665),V=n(45493),k=n(17442),S=function(v,b){var C=(0,t.useBackend)(b),h=C.act,g=C.data,N=v.args,x=N.activerecord,B=N.realname,L=N.health,w=N.unidentity,A=N.strucenzymes,T=L.split(" - ");return(0,e.createComponentVNode)(2,o.Section,{level:2,m:"-1rem",pb:"1rem",title:"Records of "+B,children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Name",children:B}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Damage",children:T.length>1?(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Box,{color:s.COLORS.damageType.oxy,inline:!0,children:T[0]}),(0,e.createTextVNode)("\xA0|\xA0"),(0,e.createComponentVNode)(2,o.Box,{color:s.COLORS.damageType.toxin,inline:!0,children:T[2]}),(0,e.createTextVNode)("\xA0|\xA0"),(0,e.createComponentVNode)(2,o.Box,{color:s.COLORS.damageType.brute,inline:!0,children:T[3]}),(0,e.createTextVNode)("\xA0|\xA0"),(0,e.createComponentVNode)(2,o.Box,{color:s.COLORS.damageType.burn,inline:!0,children:T[1]})],4):(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"Unknown"})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"UI",className:"LabeledList__breakContents",children:w}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"SE",className:"LabeledList__breakContents",children:A}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Disk",children:[(0,e.createComponentVNode)(2,o.Button.Confirm,{disabled:!g.disk,icon:"arrow-circle-down",content:"Import",onClick:function(){function E(){return h("disk",{option:"load"})}return E}()}),(0,e.createComponentVNode)(2,o.Button,{disabled:!g.disk,icon:"arrow-circle-up",content:"Export UI",onClick:function(){function E(){return h("disk",{option:"save",savetype:"ui"})}return E}()}),(0,e.createComponentVNode)(2,o.Button,{disabled:!g.disk,icon:"arrow-circle-up",content:"Export UI and UE",onClick:function(){function E(){return h("disk",{option:"save",savetype:"ue"})}return E}()}),(0,e.createComponentVNode)(2,o.Button,{disabled:!g.disk,icon:"arrow-circle-up",content:"Export SE",onClick:function(){function E(){return h("disk",{option:"save",savetype:"se"})}return E}()})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Actions",children:[(0,e.createComponentVNode)(2,o.Button,{disabled:!g.podready,icon:"user-plus",content:"Clone",onClick:function(){function E(){return h("clone",{ref:x})}return E}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"trash",content:"Delete",onClick:function(){function E(){return h("del_rec")}return E}()})]})]})})},p=r.CloningConsole=function(){function c(v,b){var C=(0,t.useBackend)(b),h=C.act,g=C.data,N=g.menu;return(0,y.modalRegisterBodyOverride)("view_rec",S),(0,e.createComponentVNode)(2,V.Window,{width:640,height:520,children:[(0,e.createComponentVNode)(2,y.ComplexModal,{maxWidth:"75%",maxHeight:"75%"}),(0,e.createComponentVNode)(2,V.Window.Content,{className:"Layout__content--flexColumn",children:[(0,e.createComponentVNode)(2,d),(0,e.createComponentVNode)(2,m),(0,e.createComponentVNode)(2,i),(0,e.createComponentVNode)(2,o.Section,{noTopPadding:!0,flexGrow:"1",children:(0,e.createComponentVNode)(2,l)})]})]})}return c}(),i=function(v,b){var C=(0,t.useBackend)(b),h=C.act,g=C.data,N=g.menu;return(0,e.createComponentVNode)(2,o.Tabs,{children:[(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:N===1,icon:"home",onClick:function(){function x(){return h("menu",{num:1})}return x}(),children:"Main"}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:N===2,icon:"folder",onClick:function(){function x(){return h("menu",{num:2})}return x}(),children:"Records"})]})},l=function(v,b){var C=(0,t.useBackend)(b),h=C.data,g=h.menu,N;return g===1?N=(0,e.createComponentVNode)(2,f):g===2&&(N=(0,e.createComponentVNode)(2,u)),N},f=function(v,b){var C=(0,t.useBackend)(b),h=C.act,g=C.data,N=g.loading,x=g.scantemp,B=g.occupant,L=g.locked,w=g.can_brainscan,A=g.scan_mode,T=g.numberofpods,E=g.pods,O=g.selected_pod,P=L&&!!B;return(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Section,{title:"Scanner",level:"2",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Box,{inline:!0,color:"label",children:"Scanner Lock:\xA0"}),(0,e.createComponentVNode)(2,o.Button,{disabled:!B,selected:P,icon:P?"toggle-on":"toggle-off",content:P?"Engaged":"Disengaged",onClick:function(){function R(){return h("lock")}return R}()}),(0,e.createComponentVNode)(2,o.Button,{disabled:P||!B,icon:"user-slash",content:"Eject Occupant",onClick:function(){function R(){return h("eject")}return R}()})],4),children:[(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Status",children:N?(0,e.createComponentVNode)(2,o.Box,{color:"average",children:[(0,e.createComponentVNode)(2,o.Icon,{name:"spinner",spin:!0}),"\xA0 Scanning..."]}):(0,e.createComponentVNode)(2,o.Box,{color:x.color,children:x.text})}),!!w&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Scan Mode",children:(0,e.createComponentVNode)(2,o.Button,{icon:A?"brain":"male",content:A?"Brain":"Body",onClick:function(){function R(){return h("toggle_mode")}return R}()})})]}),(0,e.createComponentVNode)(2,o.Button,{disabled:!B||N,icon:"user",content:"Scan Occupant",mt:"0.5rem",mb:"0",onClick:function(){function R(){return h("scan")}return R}()})]}),(0,e.createComponentVNode)(2,o.Section,{title:"Pods",level:"2",children:T?E.map(function(R,F){var j;return R.status==="cloning"?j=(0,e.createComponentVNode)(2,o.ProgressBar,{min:"0",max:"100",value:R.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)(R.progress,0)+"%"})}):R.status==="mess"?j=(0,e.createComponentVNode)(2,o.Box,{bold:!0,color:"bad",mt:"0.5rem",children:"ERROR"}):j=(0,e.createComponentVNode)(2,o.Button,{selected:O===R.pod,icon:O===R.pod&&"check",content:"Select",mt:"0.5rem",onClick:function(){function U(){return h("selectpod",{ref:R.pod})}return U}()}),(0,e.createComponentVNode)(2,o.Box,{width:"64px",textAlign:"center",display:"inline-block",mr:"0.5rem",children:[(0,e.createVNode)(1,"img",null,null,1,{src:(0,k.resolveAsset)("pod_"+R.status+".gif"),style:{width:"100%","-ms-interpolation-mode":"nearest-neighbor"}}),(0,e.createComponentVNode)(2,o.Box,{color:"label",children:["Pod #",F+1]}),(0,e.createComponentVNode)(2,o.Box,{bold:!0,color:R.biomass>=150?"good":"bad",inline:!0,children:[(0,e.createComponentVNode)(2,o.Icon,{name:R.biomass>=150?"circle":"circle-o"}),"\xA0",R.biomass]}),j]},F)}):(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"No pods detected. Unable to clone."})})],4)},u=function(v,b){var C=(0,t.useBackend)(b),h=C.act,g=C.data,N=g.records;return N.length?(0,e.createComponentVNode)(2,o.Box,{mt:"0.5rem",children:N.map(function(x,B){return(0,e.createComponentVNode)(2,o.Button,{icon:"user",mb:"0.5rem",content:x.realname,onClick:function(){function L(){return h("view_rec",{ref:x.record})}return L}()},B)})}):(0,e.createComponentVNode)(2,o.Flex,{height:"100%",children:(0,e.createComponentVNode)(2,o.Flex.Item,{grow:"1",align:"center",textAlign:"center",color:"label",children:[(0,e.createComponentVNode)(2,o.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,e.createVNode)(1,"br"),"No records found."]})})},d=function(v,b){var C,h=(0,t.useBackend)(b),g=h.act,N=h.data,x=N.temp;if(!(!x||!x.text||x.text.length<=0)){var B=(C={},C[x.style]=!0,C);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.NoticeBox,Object.assign({},B,{children:[(0,e.createComponentVNode)(2,o.Box,{display:"inline-block",verticalAlign:"middle",children:x.text}),(0,e.createComponentVNode)(2,o.Button,{icon:"times-circle",float:"right",onClick:function(){function L(){return g("cleartemp")}return L}()}),(0,e.createComponentVNode)(2,o.Box,{clear:"both"})]})))}},m=function(v,b){var C=(0,t.useBackend)(b),h=C.act,g=C.data,N=g.scanner,x=g.numberofpods,B=g.autoallowed,L=g.autoprocess,w=g.disk;return(0,e.createComponentVNode)(2,o.Section,{title:"Status",buttons:(0,e.createFragment)([!!B&&(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Box,{inline:!0,color:"label",children:"Auto-processing:\xA0"}),(0,e.createComponentVNode)(2,o.Button,{selected:L,icon:L?"toggle-on":"toggle-off",content:L?"Enabled":"Disabled",onClick:function(){function A(){return h("autoprocess",{on:L?0:1})}return A}()})],4),(0,e.createComponentVNode)(2,o.Button,{disabled:!w,icon:"eject",content:"Eject Disk",onClick:function(){function A(){return h("disk",{option:"eject"})}return A}()})],0),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Scanner",children:N?(0,e.createComponentVNode)(2,o.Box,{color:"good",children:"Connected"}):(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"Not connected!"})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Pods",children:x?(0,e.createComponentVNode)(2,o.Box,{color:"good",children:[x," connected"]}):(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"None connected!"})})]})})}},22420:function(I,r,n){"use strict";r.__esModule=!0,r.CommunicationsComputer=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),s=r.CommunicationsComputer=function(){function y(V,k){var S=(0,a.useBackend)(k),p=S.act,i=S.data,l;i.authenticated?i.is_ai?l="AI":i.authenticated===1?l="Command":i.authenticated===2?l="Captain":l="ERROR: Report This Bug!":l="Not Logged In";var f="View ("+i.messages.length+")",u=(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{title:"Authentication",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:i.is_ai&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Access Level",children:"AI"})||(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Actions",children:(0,e.createComponentVNode)(2,t.Button,{icon:i.authenticated?"sign-out-alt":"id-card",selected:i.authenticated,content:i.authenticated?"Log Out ("+l+")":"Log In",onClick:function(){function x(){return p("auth")}return x}()})})})}),!!i.esc_section&&(0,e.createComponentVNode)(2,t.Section,{title:"Escape Shuttle",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[!!i.esc_status&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:i.esc_status}),!!i.esc_callable&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Options",children:(0,e.createComponentVNode)(2,t.Button,{icon:"rocket",content:"Call Shuttle",disabled:!i.authenticated,onClick:function(){function x(){return p("callshuttle")}return x}()})}),!!i.esc_recallable&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Options",children:(0,e.createComponentVNode)(2,t.Button,{icon:"times",content:"Recall Shuttle",disabled:!i.authenticated||i.is_ai,onClick:function(){function x(){return p("cancelshuttle")}return x}()})}),!!i.lastCallLoc&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Last Call/Recall From",children:i.lastCallLoc})]})})],0),d="Make Priority Announcement";i.msg_cooldown>0&&(d+=" ("+i.msg_cooldown+"s)");var m=i.emagged?"Message [UNKNOWN]":"Message CentComm",c="Request Authentication Codes";i.cc_cooldown>0&&(m+=" ("+i.cc_cooldown+"s)",c+=" ("+i.cc_cooldown+"s)");var v=i.str_security_level,b=i.levels.map(function(x){return(0,e.createComponentVNode)(2,t.Button,{icon:x.icon,content:x.name,disabled:!i.authmax||x.id===i.security_level,onClick:function(){function B(){return p("newalertlevel",{level:x.id})}return B}()},x.name)}),C=i.stat_display.presets.map(function(x){return(0,e.createComponentVNode)(2,t.Button,{content:x.label,selected:x.name===i.stat_display.type,disabled:!i.authenticated,onClick:function(){function B(){return p("setstat",{statdisp:x.name})}return B}()},x.name)}),h=i.stat_display.alerts.map(function(x){return(0,e.createComponentVNode)(2,t.Button,{content:x.label,selected:x.alert===i.stat_display.icon,disabled:!i.authenticated,onClick:function(){function B(){return p("setstat",{statdisp:"alert",alert:x.alert})}return B}()},x.alert)}),g;if(i.current_message_title)g=(0,e.createComponentVNode)(2,t.Section,{title:i.current_message_title,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"times",content:"Return To Message List",disabled:!i.authenticated,onClick:function(){function x(){return p("messagelist")}return x}()}),children:(0,e.createComponentVNode)(2,t.Box,{children:i.current_message})});else{var N=i.messages.map(function(x){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:x.title,children:[(0,e.createComponentVNode)(2,t.Button,{icon:"eye",content:"View",disabled:!i.authenticated||i.current_message_title===x.title,onClick:function(){function B(){return p("messagelist",{msgid:x.id})}return B}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"times",content:"Delete",disabled:!i.authenticated,onClick:function(){function B(){return p("delmessage",{msgid:x.id})}return B}()})]},x.id)});g=(0,e.createComponentVNode)(2,t.Section,{title:"Messages Received",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-circle-left",content:"Back To Main Menu",onClick:function(){function x(){return p("main")}return x}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:N})})}switch(i.menu_state){case 1:return(0,e.createComponentVNode)(2,o.Window,{width:500,height:600,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[u,(0,e.createComponentVNode)(2,t.Section,{title:"Captain-Only Actions",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Current Alert",color:i.security_level_color,children:v}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Change Alert",children:b}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Announcement",children:(0,e.createComponentVNode)(2,t.Button,{icon:"bullhorn",content:d,disabled:!i.authmax||i.msg_cooldown>0,onClick:function(){function x(){return p("announce")}return x}()})}),!!i.emagged&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Transmit",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"broadcast-tower",color:"red",content:m,disabled:!i.authmax||i.cc_cooldown>0,onClick:function(){function x(){return p("MessageSyndicate")}return x}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"sync-alt",content:"Reset Relays",disabled:!i.authmax,onClick:function(){function x(){return p("RestoreBackup")}return x}()})]})||(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Transmit",children:(0,e.createComponentVNode)(2,t.Button,{icon:"broadcast-tower",content:m,disabled:!i.authmax||i.cc_cooldown>0,onClick:function(){function x(){return p("MessageCentcomm")}return x}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Nuclear Device",children:(0,e.createComponentVNode)(2,t.Button,{icon:"bomb",content:c,disabled:!i.authmax||i.cc_cooldown>0,onClick:function(){function x(){return p("nukerequest")}return x}()})})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Command Staff Actions",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Displays",children:(0,e.createComponentVNode)(2,t.Button,{icon:"tv",content:"Change Status Displays",disabled:!i.authenticated,onClick:function(){function x(){return p("status")}return x}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Incoming Messages",children:(0,e.createComponentVNode)(2,t.Button,{icon:"folder-open",content:f,disabled:!i.authenticated,onClick:function(){function x(){return p("messagelist")}return x}()})})]})})]})});case 2:return(0,e.createComponentVNode)(2,o.Window,{width:500,height:600,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[u,(0,e.createComponentVNode)(2,t.Section,{title:"Modify Status Screens",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-circle-left",content:"Back To Main Menu",onClick:function(){function x(){return p("main")}return x}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Presets",children:C}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Alerts",children:h}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Message Line 1",children:(0,e.createComponentVNode)(2,t.Button,{icon:"pencil-alt",content:i.stat_display.line_1,disabled:!i.authenticated,onClick:function(){function x(){return p("setmsg1")}return x}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Message Line 2",children:(0,e.createComponentVNode)(2,t.Button,{icon:"pencil-alt",content:i.stat_display.line_2,disabled:!i.authenticated,onClick:function(){function x(){return p("setmsg2")}return x}()})})]})})]})});case 3:return(0,e.createComponentVNode)(2,o.Window,{width:500,height:600,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[u,g]})});default:return(0,e.createComponentVNode)(2,o.Window,{width:500,height:600,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[u,"ERRROR. Unknown menu_state: ",i.menu_state,"Please report this to NT Technical Support."]})})}}return y}()},64707:function(I,r,n){"use strict";r.__esModule=!0,r.Contractor=void 0;var e=n(96524),a=n(36121),t=n(17899),o=n(24674),s=n(99509),y=n(45493);function V(b,C){b.prototype=Object.create(C.prototype),b.prototype.constructor=b,k(b,C)}function k(b,C){return k=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function h(g,N){return g.__proto__=N,g}return h}(),k(b,C)}var S={1:["ACTIVE","good"],2:["COMPLETED","good"],3:["FAILED","bad"]},p=["Recording biometric data...","Analyzing embedded syndicate info...","STATUS CONFIRMED","Contacting Syndicate database...","Awaiting response...","Awaiting response...","Awaiting response...","Awaiting response...","Awaiting response...","Awaiting response...","Response received, ack 4851234...","CONFIRM ACC "+Math.round(Math.random()*2e4),"Setting up private accounts...","CONTRACTOR ACCOUNT CREATED","Searching for available contracts...","Searching for available contracts...","Searching for available contracts...","Searching for available contracts...","CONTRACTS FOUND","WELCOME, AGENT"],i=r.Contractor=function(){function b(C,h){var g=(0,t.useBackend)(h),N=g.act,x=g.data,B;x.unauthorized?B=(0,e.createComponentVNode)(2,o.Flex.Item,{grow:"1",backgroundColor:"rgba(0, 0, 0, 0.8)",children:(0,e.createComponentVNode)(2,c,{height:"100%",allMessages:["ERROR: UNAUTHORIZED USER"],finishedTimeout:100,onFinished:function(){function T(){}return T}()})}):x.load_animation_completed?B=(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Flex.Item,{basis:"content",children:(0,e.createComponentVNode)(2,l)}),(0,e.createComponentVNode)(2,o.Flex.Item,{basis:"content",mt:"0.5rem",children:(0,e.createComponentVNode)(2,f)}),(0,e.createComponentVNode)(2,o.Flex.Item,{grow:"1",overflow:"hidden",children:x.page===1?(0,e.createComponentVNode)(2,u,{height:"100%"}):(0,e.createComponentVNode)(2,m,{height:"100%"})})],4):B=(0,e.createComponentVNode)(2,o.Flex.Item,{grow:"1",backgroundColor:"rgba(0, 0, 0, 0.8)",children:(0,e.createComponentVNode)(2,c,{height:"100%",allMessages:p,finishedTimeout:3e3,onFinished:function(){function T(){return N("complete_load_animation")}return T}()})});var L=(0,t.useLocalState)(h,"viewingPhoto",""),w=L[0],A=L[1];return(0,e.createComponentVNode)(2,y.Window,{width:500,height:600,theme:"syndicate",children:[w&&(0,e.createComponentVNode)(2,v),(0,e.createComponentVNode)(2,y.Window.Content,{className:"Contractor",children:(0,e.createComponentVNode)(2,o.Flex,{direction:"column",height:"100%",children:B})})]})}return b}(),l=function(C,h){var g=(0,t.useBackend)(h),N=g.act,x=g.data,B=x.tc_available,L=x.tc_paid_out,w=x.completed_contracts,A=x.rep;return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Section,Object.assign({title:"Summary",buttons:(0,e.createComponentVNode)(2,o.Box,{verticalAlign:"middle",mt:"0.25rem",children:[A," Rep"]})},C,{children:(0,e.createComponentVNode)(2,o.Flex,{children:[(0,e.createComponentVNode)(2,o.Box,{flexBasis:"50%",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"TC Available",verticalAlign:"middle",children:(0,e.createComponentVNode)(2,o.Flex,{align:"center",children:[(0,e.createComponentVNode)(2,o.Flex.Item,{grow:"1",children:[B," TC"]}),(0,e.createComponentVNode)(2,o.Button,{disabled:B<=0,content:"Claim",mx:"0.75rem",mb:"0",flexBasis:"content",onClick:function(){function T(){return N("claim")}return T}()})]})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"TC Earned",children:[L," TC"]})]})}),(0,e.createComponentVNode)(2,o.Box,{flexBasis:"50%",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Contracts Completed",verticalAlign:"middle",children:(0,e.createComponentVNode)(2,o.Box,{height:"20px",lineHeight:"20px",display:"inline-block",children:w})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Contractor Status",verticalAlign:"middle",children:"ACTIVE"})]})})]})})))},f=function(C,h){var g=(0,t.useBackend)(h),N=g.act,x=g.data,B=x.page;return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Tabs,Object.assign({},C,{children:[(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:B===1,onClick:function(){function L(){return N("page",{page:1})}return L}(),children:[(0,e.createComponentVNode)(2,o.Icon,{name:"suitcase"}),"Contracts"]}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:B===2,onClick:function(){function L(){return N("page",{page:2})}return L}(),children:[(0,e.createComponentVNode)(2,o.Icon,{name:"shopping-cart"}),"Hub"]})]})))},u=function(C,h){var g=(0,t.useBackend)(h),N=g.act,x=g.data,B=x.contracts,L=x.contract_active,w=x.can_extract,A=!!L&&B.filter(function(R){return R.status===1})[0],T=A&&A.time_left>0,E=(0,t.useLocalState)(h,"viewingPhoto",""),O=E[0],P=E[1];return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Section,Object.assign({title:"Available Contracts",overflow:"auto",buttons:(0,e.createComponentVNode)(2,o.Button,{disabled:!w||T,icon:"parachute-box",content:["Call Extraction",T&&(0,e.createComponentVNode)(2,s.Countdown,{timeLeft:A.time_left,format:function(){function R(F,j){return" ("+j.substr(3)+")"}return R}()})],onClick:function(){function R(){return N("extract")}return R}()})},C,{children:B.slice().sort(function(R,F){return R.status===1?-1:F.status===1?1:R.status-F.status}).map(function(R){var F;return(0,e.createComponentVNode)(2,o.Section,{title:(0,e.createComponentVNode)(2,o.Flex,{children:[(0,e.createComponentVNode)(2,o.Flex.Item,{grow:"1",color:R.status===1&&"good",children:R.target_name}),(0,e.createComponentVNode)(2,o.Flex.Item,{basis:"content",children:R.has_photo&&(0,e.createComponentVNode)(2,o.Button,{icon:"camera",mb:"-0.5rem",ml:"0.5rem",onClick:function(){function j(){return P("target_photo_"+R.uid+".png")}return j}()})})]}),className:"Contractor__Contract",buttons:(0,e.createComponentVNode)(2,o.Box,{width:"100%",children:[!!S[R.status]&&(0,e.createComponentVNode)(2,o.Box,{color:S[R.status][1],display:"inline-block",mt:R.status!==1&&"0.125rem",mr:"0.25rem",lineHeight:"20px",children:S[R.status][0]}),R.status===1&&(0,e.createComponentVNode)(2,o.Button.Confirm,{icon:"ban",color:"bad",content:"Abort",ml:"0.5rem",onClick:function(){function j(){return N("abort")}return j}()})]}),children:(0,e.createComponentVNode)(2,o.Flex,{children:[(0,e.createComponentVNode)(2,o.Flex.Item,{grow:"2",mr:"0.5rem",children:[R.fluff_message,!!R.completed_time&&(0,e.createComponentVNode)(2,o.Box,{color:"good",children:[(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,o.Icon,{name:"check",mr:"0.5rem"}),"Contract completed at ",R.completed_time]}),!!R.dead_extraction&&(0,e.createComponentVNode)(2,o.Box,{color:"bad",mt:"0.5rem",bold:!0,children:[(0,e.createComponentVNode)(2,o.Icon,{name:"exclamation-triangle",mr:"0.5rem"}),"Telecrystals reward reduced drastically as the target was dead during extraction."]}),!!R.fail_reason&&(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:[(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,o.Icon,{name:"times",mr:"0.5rem"}),"Contract failed: ",R.fail_reason]})]}),(0,e.createComponentVNode)(2,o.Flex.Item,{flexBasis:"100%",children:[(0,e.createComponentVNode)(2,o.Flex,{mb:"0.5rem",color:"label",children:["Extraction Zone:\xA0",d(R)]}),(F=R.difficulties)==null?void 0:F.map(function(j,U){return(0,e.createComponentVNode)(2,o.Button.Confirm,{disabled:!!L,content:j.name+" ("+j.reward+" TC)",onClick:function(){function _(){return N("activate",{uid:R.uid,difficulty:U+1})}return _}()},U)}),!!R.objective&&(0,e.createComponentVNode)(2,o.Box,{color:"white",bold:!0,children:[R.objective.extraction_name,(0,e.createVNode)(1,"br"),"(",(R.objective.rewards.tc||0)+" TC",",\xA0",(R.objective.rewards.credits||0)+" Credits",")"]})]})]})},R.uid)})})))},d=function(C){if(!(!C.objective||C.status>1)){var h=C.objective.locs.user_area_id,g=C.objective.locs.user_coords,N=C.objective.locs.target_area_id,x=C.objective.locs.target_coords,B=h===N;return(0,e.createComponentVNode)(2,o.Flex.Item,{children:(0,e.createComponentVNode)(2,o.Icon,{name:B?"dot-circle-o":"arrow-alt-circle-right-o",color:B?"green":"yellow",rotation:B?null:-(0,a.rad2deg)(Math.atan2(x[1]-g[1],x[0]-g[0])),lineHeight:B?null:"0.85",size:"1.5"})})}},m=function(C,h){var g=(0,t.useBackend)(h),N=g.act,x=g.data,B=x.rep,L=x.buyables;return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Section,Object.assign({title:"Available Purchases",overflow:"auto"},C,{children:L.map(function(w){return(0,e.createComponentVNode)(2,o.Section,{title:w.name,buttons:w.refundable&&(0,e.createComponentVNode)(2,o.Button.Confirm,{content:"Refund ("+w.cost+" Rep)",onClick:function(){function A(){return N("refund",{uid:w.uid})}return A}()}),children:[w.description,(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,o.Button.Confirm,{disabled:B-1&&(0,e.createComponentVNode)(2,o.Box,{as:"span",color:w.stock===0?"bad":"good",ml:"0.5rem",children:[w.stock," in stock"]})]},w.uid)})})))},c=function(b){function C(g){var N;return N=b.call(this,g)||this,N.timer=null,N.state={currentIndex:0,currentDisplay:[]},N}V(C,b);var h=C.prototype;return h.tick=function(){function g(){var N=this.props,x=this.state;if(x.currentIndex<=N.allMessages.length){this.setState(function(L){return{currentIndex:L.currentIndex+1}});var B=x.currentDisplay;B.push(N.allMessages[x.currentIndex])}else clearTimeout(this.timer),setTimeout(N.onFinished,N.finishedTimeout)}return g}(),h.componentDidMount=function(){function g(){var N=this,x=this.props.linesPerSecond,B=x===void 0?2.5:x;this.timer=setInterval(function(){return N.tick()},1e3/B)}return g}(),h.componentWillUnmount=function(){function g(){clearTimeout(this.timer)}return g}(),h.render=function(){function g(){return(0,e.createComponentVNode)(2,o.Box,{m:1,children:this.state.currentDisplay.map(function(N){return(0,e.createFragment)([N,(0,e.createVNode)(1,"br")],0,N)})})}return g}(),C}(e.Component),v=function(C,h){var g=(0,t.useLocalState)(h,"viewingPhoto",""),N=g[0],x=g[1];return(0,e.createComponentVNode)(2,o.Modal,{className:"Contractor__photoZoom",children:[(0,e.createComponentVNode)(2,o.Box,{as:"img",src:N}),(0,e.createComponentVNode)(2,o.Button,{icon:"times",content:"Close",color:"grey",mt:"1rem",onClick:function(){function B(){return x("")}return B}()})]})}},52141:function(I,r,n){"use strict";r.__esModule=!0,r.ConveyorSwitch=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),s=r.ConveyorSwitch=function(){function y(V,k){var S=(0,a.useBackend)(k),p=S.act,i=S.data,l=i.slowFactor,f=i.minSpeed,u=i.maxSpeed,d=i.oneWay,m=i.position;return(0,e.createComponentVNode)(2,o.Window,{width:350,height:150,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Lever position",children:m>0?"forward":m<0?"reverse":"neutral"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Allow reverse",children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:!d,onClick:function(){function c(){return p("toggleOneWay")}return c}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Slowdown factor",children:(0,e.createComponentVNode)(2,t.Flex,{children:[(0,e.createComponentVNode)(2,t.Flex.Item,{mx:"1px",children:[" ",(0,e.createComponentVNode)(2,t.Button,{icon:"angle-double-left",onClick:function(){function c(){return p("slowFactor",{value:l-.5})}return c}()})," "]}),(0,e.createComponentVNode)(2,t.Flex.Item,{mx:"1px",children:[" ",(0,e.createComponentVNode)(2,t.Button,{icon:"angle-left",onClick:function(){function c(){return p("slowFactor",{value:l-.1})}return c}()})," "]}),(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Slider,{width:"100px",mx:"1px",value:l,fillValue:l,minValue:f,maxValue:u,step:.1,format:function(){function c(v){return v+"s."}return c}(),onChange:function(){function c(v,b){return p("slowFactor",{value:b})}return c}()})}),(0,e.createComponentVNode)(2,t.Flex.Item,{mx:"1px",children:[" ",(0,e.createComponentVNode)(2,t.Button,{icon:"angle-right",onClick:function(){function c(){return p("slowFactor",{value:l+.1})}return c}()})," "]}),(0,e.createComponentVNode)(2,t.Flex.Item,{mx:"1px",children:[" ",(0,e.createComponentVNode)(2,t.Button,{icon:"angle-double-right",onClick:function(){function c(){return p("slowFactor",{value:l+.5})}return c}()})," "]})]})})]})})})})}return y}()},94187:function(I,r,n){"use strict";r.__esModule=!0,r.CrewMonitor=void 0;var e=n(96524),a=n(50640),t=n(78234),o=n(17899),s=n(24674),y=n(5126),V=n(38424),k=n(45493),S=function(v,b){return v.dead?"Deceased":parseInt(v.health,10)<=b?"Critical":parseInt(v.stat,10)===1?"Unconscious":"Living"},p=function(v,b){return v.dead?"red":parseInt(v.health,10)<=b?"orange":parseInt(v.stat,10)===1?"blue":"green"},i=r.CrewMonitor=function(){function c(v,b){var C=(0,o.useBackend)(b),h=C.act,g=C.data,N=(0,o.useLocalState)(b,"tabIndex",g.IndexToggler),x=N[0],B=N[1],L=function(){function w(A){switch(A){case 0:return(0,e.createComponentVNode)(2,u);case 1:return(0,e.createComponentVNode)(2,d);case 2:return(0,e.createComponentVNode)(2,f);case 3:return(0,e.createComponentVNode)(2,m);default:return"WE SHOULDN'T BE HERE!"}}return w}();return(0,e.createComponentVNode)(2,k.Window,{width:800,height:600,children:(0,e.createComponentVNode)(2,k.Window.Content,{children:(0,e.createComponentVNode)(2,s.Box,{fillPositionedParent:!0,children:[(0,e.createComponentVNode)(2,s.Tabs,{children:[g.isBS?(0,e.createComponentVNode)(2,s.Tabs.Tab,{selected:x===0,onClick:function(){function w(){return B(0)}return w}(),children:[(0,e.createComponentVNode)(2,s.Icon,{name:"table"})," Command Data View"]},"ComDataView"):null,g.isBP?(0,e.createComponentVNode)(2,s.Tabs.Tab,{selected:x===1,onClick:function(){function w(){return B(1)}return w}(),children:[(0,e.createComponentVNode)(2,s.Icon,{name:"table"})," Security Data View"]},"SecDataView"):null,(0,e.createComponentVNode)(2,s.Tabs.Tab,{selected:x===2,onClick:function(){function w(){return B(2)}return w}(),children:[(0,e.createComponentVNode)(2,s.Icon,{name:"table"})," Data View"]},"DataView"),(0,e.createComponentVNode)(2,s.Tabs.Tab,{selected:x===3,onClick:function(){function w(){return B(3)}return w}(),children:[(0,e.createComponentVNode)(2,s.Icon,{name:"map-marked-alt"})," Map View"]},"MapView")]}),L(x)]})})})}return c}(),l=function(v){var b=v.crewData,C=v.context,h=(0,o.useBackend)(C),g=h.act,N=h.data,x=(0,a.sortBy)(function(T){return T.name})(b||[]),B=(0,o.useLocalState)(C,"search",""),L=B[0],w=B[1],A=(0,t.createSearch)(L,function(T){return T.name+"|"+T.assignment+"|"+T.area});return(0,e.createComponentVNode)(2,s.Box,{children:[(0,e.createComponentVNode)(2,s.Input,{placeholder:"Search by name, assignment or location..",width:"100%",onInput:function(){function T(E,O){return w(O)}return T}()}),(0,e.createComponentVNode)(2,s.Table,{m:"0.5rem",children:[(0,e.createComponentVNode)(2,s.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,s.Table.Cell,{children:"Name"}),(0,e.createComponentVNode)(2,s.Table.Cell,{children:"Status"}),(0,e.createComponentVNode)(2,s.Table.Cell,{children:"Location"})]}),x.filter(A).map(function(T){return(0,e.createComponentVNode)(2,s.Table.Row,{bold:!!T.is_command,children:[(0,e.createComponentVNode)(2,y.TableCell,{children:[T.name," (",T.assignment,")"]}),(0,e.createComponentVNode)(2,y.TableCell,{children:[(0,e.createComponentVNode)(2,s.Box,{inline:!0,color:p(T,N.critThreshold),children:S(T,N.critThreshold)}),T.sensor_type>=2?(0,e.createComponentVNode)(2,s.Box,{inline:!0,children:["(",(0,e.createComponentVNode)(2,s.Box,{inline:!0,color:V.COLORS.damageType.oxy,children:T.oxy}),"|",(0,e.createComponentVNode)(2,s.Box,{inline:!0,color:V.COLORS.damageType.toxin,children:T.tox}),"|",(0,e.createComponentVNode)(2,s.Box,{inline:!0,color:V.COLORS.damageType.burn,children:T.fire}),"|",(0,e.createComponentVNode)(2,s.Box,{inline:!0,color:V.COLORS.damageType.brute,children:T.brute}),")"]}):null]}),(0,e.createComponentVNode)(2,y.TableCell,{children:T.sensor_type===3?N.isAI?(0,e.createComponentVNode)(2,s.Button,{fluid:!0,icon:"location-arrow",content:T.area+" ("+T.x+", "+T.y+")",onClick:function(){function E(){return g("track",{track:T.ref})}return E}()}):T.area+" ("+T.x+", "+T.y+")":"Not Available"})]},T.ref)})]})]})},f=function(v,b){var C=(0,o.useBackend)(b),h=C.act,g=C.data,N=g.crewmembers||[];return(0,e.createComponentVNode)(2,l,{crewData:N,context:b})},u=function(v,b){var C=(0,o.useBackend)(b),h=C.act,g=C.data,N=g.crewmembers.filter(function(x){return x.is_command})||[];return(0,e.createComponentVNode)(2,l,{crewData:N,context:b})},d=function(v,b){var C=(0,o.useBackend)(b),h=C.act,g=C.data,N=g.crewmembers.filter(function(x){return x.is_security})||[];return(0,e.createComponentVNode)(2,l,{crewData:N,context:b})},m=function(v,b){var C=(0,o.useBackend)(b),h=C.act,g=C.data,N=g.stationLevelNum,x=g.stationLevelName,B=(0,o.useLocalState)(b,"zoom",1),L=B[0],w=B[1],A=(0,o.useLocalState)(b,"z_current",N[0]),T=A[0],E=A[1],O=function(j){return j.is_command&&g.isBS||j.is_security&&g.isBP?"square":"circle"},P=function(j){return j.is_command&&g.isBS||j.is_security&&g.isBP?10:6},R=function(j,U){return j.is_command&&g.isBS||j.is_security&&g.isBP?j.dead?"red":parseInt(j.health,10)<=U?"orange":parseInt(j.stat,10)===1?"blue":"violet":p(j,U)};return(0,e.createComponentVNode)(2,s.Box,{height:"526px",mb:"0.5rem",overflow:"hidden",children:(0,e.createComponentVNode)(2,s.NanoMap,{onZoom:function(){function F(j){return w(j)}return F}(),zLevels:N,zNames:x,z_current:T,setZCurrent:E,children:g.crewmembers.filter(function(F){return F.sensor_type===3}).map(function(F){return(0,e.createComponentVNode)(2,s.NanoMap.Marker,{x:F.x,y:F.y,z:F.z,z_current:T,zoom:L,icon:O(F),size:P(F),tooltip:F.name+" ("+F.assignment+")",color:R(F,g.critThreshold),onClick:function(){function j(){g.isAI&&h("track",{track:F.ref})}return j}()},F.ref)})})})}},60561:function(I,r,n){"use strict";r.__esModule=!0,r.Cryo=void 0;var e=n(96524),a=n(97650),t=n(17899),o=n(24674),s=n(45493),y=[{label:"\u0410\u0441\u0444\u0438\u043A\u0441\u0438\u044F",type:"oxyLoss"},{label:"\u0418\u043D\u0442\u043E\u043A\u0441\u0438\u043A\u0430\u0446\u0438\u044F",type:"toxLoss"},{label:"\u0420\u0430\u043D\u044B",type:"bruteLoss"},{label:"\u041E\u0436\u043E\u0433\u0438",type:"fireLoss"}],V=[["good","\u0412 \u0441\u043E\u0437\u043D\u0430\u043D\u0438\u0438"],["average","\u0411\u0435\u0437 \u0441\u043E\u0437\u043D\u0430\u043D\u0438\u044F"],["bad","\u0422\u0420\u0423\u041F"]],k=r.Cryo=function(){function i(l,f){return(0,e.createComponentVNode)(2,s.Window,{width:520,height:490,children:(0,e.createComponentVNode)(2,s.Window.Content,{children:(0,e.createComponentVNode)(2,S)})})}return i}(),S=function(l,f){var u=(0,t.useBackend)(f),d=u.act,m=u.data,c=m.isOperating,v=m.hasOccupant,b=m.occupant,C=b===void 0?[]:b,h=m.cellTemperature,g=m.cellTemperatureStatus,N=m.isBeakerLoaded,x=m.auto_eject_healthy,B=m.auto_eject_dead;return(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:2,children:(0,e.createComponentVNode)(2,o.Section,{title:"\u041F\u0430\u0446\u0438\u0435\u043D\u0442",fill:!0,buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"user-slash",onClick:function(){function L(){return d("ejectOccupant")}return L}(),disabled:!v,children:"\u0418\u0437\u0432\u043B\u0435\u0447\u044C"}),children:v?(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"\u041F\u0430\u0446\u0438\u0435\u043D\u0442",children:C.name||"\u0418\u043C\u044F \u043D\u0435\u0438\u0437\u0432\u0435\u0441\u0442\u043D\u043E"}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"\u0417\u0434\u043E\u0440\u043E\u0432\u044C\u0435",children:(0,e.createComponentVNode)(2,o.ProgressBar,{min:C.health,max:C.maxHealth,value:C.health/C.maxHealth,color:C.health>0?"good":"average",children:(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:Math.round(C.health)})})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"\u0421\u0442\u0430\u0442\u0443\u0441",color:V[C.stat][0],children:V[C.stat][1]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"\u0422\u0435\u043C\u043F\u0435\u0440\u0430\u0442\u0443\u0440\u0430",children:[(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:Math.round(C.bodyTemperature)})," ","K"]}),(0,e.createComponentVNode)(2,o.LabeledList.Divider),y.map(function(L){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:L.label,children:(0,e.createComponentVNode)(2,o.ProgressBar,{value:C[L.type]/100,ranges:{bad:[.01,1/0]},children:(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:Math.round(C[L.type])})})},L.id)})]}):(0,e.createComponentVNode)(2,o.Stack,{fill:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,o.Stack.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"),"\u041F\u0430\u0446\u0438\u0435\u043D\u0442 \u043D\u0435 \u043E\u0431\u043D\u0430\u0440\u0443\u0436\u0435\u043D."]})})})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{title:"\u041A\u0440\u0438\u043E\u043A\u0430\u043F\u0441\u0443\u043B\u0430",fill:!0,buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"eject",onClick:function(){function L(){return d("ejectBeaker")}return L}(),disabled:!N,children:"\u0418\u0437\u0432\u043B\u0435\u0447\u044C \u0451\u043C\u043A\u043E\u0441\u0442\u044C"}),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"\u041F\u0438\u0442\u0430\u043D\u0438\u0435",children:(0,e.createComponentVNode)(2,o.Button,{icon:"power-off",onClick:function(){function L(){return d(c?"switchOff":"switchOn")}return L}(),selected:c,children:c?"\u0412\u043A\u043B":"\u0412\u044B\u043A\u043B"})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"\u0422\u0435\u043C\u043F\u0435\u0440\u0430\u0442\u0443\u0440\u0430",color:g,children:[(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:h})," K"]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"\u0401\u043C\u043A\u043E\u0441\u0442\u044C",children:(0,e.createComponentVNode)(2,p)}),(0,e.createComponentVNode)(2,o.LabeledList.Divider),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"\u0410\u0432\u0442\u043E\u0438\u0437\u0432\u043B\u0435\u0447\u0435\u043D\u0438\u0435 \u0437\u0434\u043E\u0440\u043E\u0432\u044B\u0445 \u043F\u0430\u0446\u0438\u0435\u043D\u0442\u043E\u0432",children:(0,e.createComponentVNode)(2,o.Button,{icon:x?"toggle-on":"toggle-off",selected:x,onClick:function(){function L(){return d(x?"auto_eject_healthy_off":"auto_eject_healthy_on")}return L}(),children:x?"\u0412\u043A\u043B":"\u0412\u044B\u043A\u043B"})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"\u0410\u0432\u0442\u043E\u0438\u0437\u0432\u043B\u0435\u0447\u0435\u043D\u0438\u0435 \u043C\u0451\u0440\u0442\u0432\u044B\u0445 \u043F\u0430\u0446\u0438\u0435\u043D\u0442\u043E\u0432",children:(0,e.createComponentVNode)(2,o.Button,{icon:B?"toggle-on":"toggle-off",selected:B,onClick:function(){function L(){return d(B?"auto_eject_dead_off":"auto_eject_dead_on")}return L}(),children:B?"\u0412\u043A\u043B":"\u0412\u044B\u043A\u043B"})})]})})})]})},p=function(l,f){var u=(0,t.useBackend)(f),d=u.act,m=u.data,c=m.isBeakerLoaded,v=m.beakerLabel,b=m.beakerVolume;return c?(0,e.createFragment)([v?"\xAB"+v+"\xBB":(0,e.createComponentVNode)(2,o.Box,{color:"average",children:"\u0401\u043C\u043A\u043E\u0441\u0442\u044C \u043D\u0435 \u043F\u043E\u0434\u043F\u0438\u0441\u0430\u043D\u0430"}),(0,e.createComponentVNode)(2,o.Box,{color:!b&&"bad",children:b?(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:b,format:function(){function C(h){var g=Math.round(h),N=(0,a.declensionRu)(g,"\u041E\u0441\u0442\u0430\u043B\u0430\u0441\u044C","\u041E\u0441\u0442\u0430\u043B\u0438\u0441\u044C","\u041E\u0441\u0442\u0430\u043B\u043E\u0441\u044C"),x=(0,a.declensionRu)(g,"\u0435\u0434\u0438\u043D\u0438\u0446\u0430","\u0435\u0434\u0438\u043D\u0438\u0446\u044B","\u0435\u0434\u0438\u043D\u0438\u0446");return N+" "+g+" "+x}return C}()}):"\u0401\u043C\u043A\u043E\u0441\u0442\u044C \u043F\u0443\u0441\u0442\u0430"})],0):(0,e.createComponentVNode)(2,o.Box,{color:"average",children:"\u0401\u043C\u043A\u043E\u0441\u0442\u044C \u043D\u0435 \u0443\u0441\u0442\u0430\u043D\u043E\u0432\u043B\u0435\u043D\u0430"})}},27889:function(I,r,n){"use strict";r.__esModule=!0,r.CryopodConsole=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),s=n(78234),y=r.CryopodConsole=function(){function S(p,i){var l=(0,a.useBackend)(i),f=l.data,u=f.account_name,d=f.allow_items;return(0,e.createComponentVNode)(2,o.Window,{width:400,height:480,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Hello, "+(u||"[REDACTED]")+"!",children:"This automated cryogenic freezing unit will safely store your corporeal form until your next assignment."}),(0,e.createComponentVNode)(2,V),!!d&&(0,e.createComponentVNode)(2,k)]})})}return S}(),V=function(p,i){var l=(0,a.useBackend)(i),f=l.data,u=f.frozen_crew;return(0,e.createComponentVNode)(2,t.Collapsible,{title:"Stored Crew",children:u.length?(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:u.map(function(d,m){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:d.name,children:d.rank},m)})})}):(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No stored crew!"})})},k=function(p,i){var l=(0,a.useBackend)(i),f=l.act,u=l.data,d=u.frozen_items,m=function(v){var b=v.toString();return b.startsWith("the ")&&(b=b.slice(4,b.length)),(0,s.toTitleCase)(b)};return(0,e.createComponentVNode)(2,t.Collapsible,{title:"Stored Items",children:d.length?(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:d.map(function(c){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:m(c.name),buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-down",content:"Drop",mr:1,onClick:function(){function v(){return f("one_item",{item:c.uid})}return v}()})},c)})})}),(0,e.createComponentVNode)(2,t.Button,{content:"Drop All Items",color:"red",onClick:function(){function c(){return f("all_items")}return c}()})],4):(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No stored items!"})})}},81434:function(I,r,n){"use strict";r.__esModule=!0,r.DNAModifier=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),s=n(99665),y=[["good","Alive"],["average","Critical"],["bad","DEAD"]],V=[["ui","Modify U.I.","dna"],["se","Modify S.E.","dna"],["buffer","Transfer Buffers","syringe"],["rejuvenators","Rejuvenators","flask"]],k=[5,10,20,30,50],S=r.DNAModifier=function(){function h(g,N){var x=(0,a.useBackend)(N),B=x.act,L=x.data,w=L.irradiating,A=L.dnaBlockSize,T=L.occupant;N.dnaBlockSize=A,N.isDNAInvalid=!T.isViableSubject||!T.uniqueIdentity||!T.structuralEnzymes;var E;return w&&(E=(0,e.createComponentVNode)(2,b,{duration:w})),(0,e.createComponentVNode)(2,o.Window,{width:660,height:775,children:[(0,e.createComponentVNode)(2,s.ComplexModal),E,(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,p)}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,i)})]})})]})}return h}(),p=function(g,N){var x=(0,a.useBackend)(N),B=x.act,L=x.data,w=L.locked,A=L.hasOccupant,T=L.occupant;return(0,e.createComponentVNode)(2,t.Section,{title:"Occupant",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{color:"label",inline:!0,mr:"0.5rem",children:"Door Lock:"}),(0,e.createComponentVNode)(2,t.Button,{disabled:!A,selected:w,icon:w?"toggle-on":"toggle-off",content:w?"Engaged":"Disengaged",onClick:function(){function E(){return B("toggleLock")}return E}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:!A||w,icon:"user-slash",content:"Eject",onClick:function(){function E(){return B("ejectOccupant")}return E}()})],4),children:A?(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Name",children:T.name}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Health",children:(0,e.createComponentVNode)(2,t.ProgressBar,{min:T.minHealth,max:T.maxHealth,value:T.health/T.maxHealth,ranges:{good:[.5,1/0],average:[0,.5],bad:[-1/0,0]}})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",color:y[T.stat][0],children:y[T.stat][1]}),(0,e.createComponentVNode)(2,t.LabeledList.Divider)]})}),N.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:T.radiationLevel/100,color:"average"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Unique Enzymes",children:L.occupant.uniqueEnzymes?L.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."})})},i=function(g,N){var x=(0,a.useBackend)(N),B=x.act,L=x.data,w=L.selectedMenuKey,A=L.hasOccupant,T=L.occupant;if(A){if(N.isDNAInvalid)return(0,e.createComponentVNode)(2,t.Section,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,align:"center",textAlign:"center",color:"label",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,e.createVNode)(1,"br"),"No operation possible on this subject."]})})})}else return(0,e.createComponentVNode)(2,t.Section,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,align:"center",textAlign:"center",color:"label",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,e.createVNode)(1,"br"),"No occupant in DNA modifier."]})})});var E;return w==="ui"?E=(0,e.createFragment)([(0,e.createComponentVNode)(2,l),(0,e.createComponentVNode)(2,u)],4):w==="se"?E=(0,e.createFragment)([(0,e.createComponentVNode)(2,f),(0,e.createComponentVNode)(2,u)],4):w==="buffer"?E=(0,e.createComponentVNode)(2,d):w==="rejuvenators"&&(E=(0,e.createComponentVNode)(2,v)),(0,e.createComponentVNode)(2,t.Section,{fill:!0,children:[(0,e.createComponentVNode)(2,t.Tabs,{children:V.map(function(O,P){return(0,e.createComponentVNode)(2,t.Tabs.Tab,{icon:O[2],selected:w===O[0],onClick:function(){function R(){return B("selectMenuKey",{key:O[0]})}return R}(),children:O[1]},P)})}),E]})},l=function(g,N){var x=(0,a.useBackend)(N),B=x.act,L=x.data,w=L.selectedUIBlock,A=L.selectedUISubBlock,T=L.selectedUITarget,E=L.occupant;return(0,e.createComponentVNode)(2,t.Section,{title:"Modify Unique Identifier",children:[(0,e.createComponentVNode)(2,C,{dnaString:E.uniqueIdentity,selectedBlock:w,selectedSubblock:A,blockSize:N.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:T,format:function(){function O(P){return P.toString(16).toUpperCase()}return O}(),ml:"0",onChange:function(){function O(P,R){return B("changeUITarget",{value:R})}return O}()})})}),(0,e.createComponentVNode)(2,t.Button,{icon:"radiation",content:"Irradiate Block",mt:"0.5rem",onClick:function(){function O(){return B("pulseUIRadiation")}return O}()})]})},f=function(g,N){var x=(0,a.useBackend)(N),B=x.act,L=x.data,w=L.selectedSEBlock,A=L.selectedSESubBlock,T=L.occupant;return(0,e.createComponentVNode)(2,t.Section,{title:"Modify Structural Enzymes",children:[(0,e.createComponentVNode)(2,C,{dnaString:T.structuralEnzymes,selectedBlock:w,selectedSubblock:A,blockSize:N.dnaBlockSize,action:"selectSEBlock"}),(0,e.createComponentVNode)(2,t.Button,{icon:"radiation",content:"Irradiate Block",onClick:function(){function E(){return B("pulseSERadiation")}return E}()})]})},u=function(g,N){var x=(0,a.useBackend)(N),B=x.act,L=x.data,w=L.radiationIntensity,A=L.radiationDuration;return(0,e.createComponentVNode)(2,t.Section,{title:"Radiation Emitter",children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Intensity",children:(0,e.createComponentVNode)(2,t.Knob,{minValue:1,maxValue:10,stepPixelSize:20,value:w,popUpPosition:"right",ml:"0",onChange:function(){function T(E,O){return B("radiationIntensity",{value:O})}return T}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Duration",children:(0,e.createComponentVNode)(2,t.Knob,{minValue:1,maxValue:20,stepPixelSize:10,unit:"s",value:A,popUpPosition:"right",ml:"0",onChange:function(){function T(E,O){return B("radiationDuration",{value:O})}return T}()})})]}),(0,e.createComponentVNode)(2,t.Button,{icon:"radiation",content:"Pulse Radiation",tooltip:"Mutates a random block of either the occupant's UI or SE.",tooltipPosition:"top-start",mt:"0.5rem",onClick:function(){function T(){return B("pulseRadiation")}return T}()})]})},d=function(g,N){var x=(0,a.useBackend)(N),B=x.act,L=x.data,w=L.buffers,A=w.map(function(T,E){return(0,e.createComponentVNode)(2,m,{id:E+1,name:"Buffer "+(E+1),buffer:T},E)});return(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{height:"75%",mt:1,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Buffers",children:A})}),(0,e.createComponentVNode)(2,t.Stack.Item,{height:"25%",children:(0,e.createComponentVNode)(2,c)})]})},m=function(g,N){var x=(0,a.useBackend)(N),B=x.act,L=x.data,w=g.id,A=g.name,T=g.buffer,E=L.isInjectorReady,O=A+(T.data?" - "+T.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:O,mx:"0",lineHeight:"18px",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button.Confirm,{disabled:!T.data,icon:"trash",content:"Clear",onClick:function(){function P(){return B("bufferOption",{option:"clear",id:w})}return P}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:!T.data,icon:"pen",content:"Rename",onClick:function(){function P(){return B("bufferOption",{option:"changeLabel",id:w})}return P}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:!T.data||!L.hasDisk,icon:"save",content:"Export",tooltip:"Exports this buffer to the currently loaded data disk.",tooltipPosition:"bottom-start",onClick:function(){function P(){return B("bufferOption",{option:"saveDisk",id:w})}return P}()})],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 P(){return B("bufferOption",{option:"saveUI",id:w})}return P}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-circle-down",content:"Subject U.I and U.E.",mb:"0",onClick:function(){function P(){return B("bufferOption",{option:"saveUIAndUE",id:w})}return P}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-circle-down",content:"Subject S.E.",mb:"0",onClick:function(){function P(){return B("bufferOption",{option:"saveSE",id:w})}return P}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:!L.hasDisk||!L.disk.data,icon:"arrow-circle-down",content:"From Disk",mb:"0",onClick:function(){function P(){return B("bufferOption",{option:"loadDisk",id:w})}return P}()})]}),!!T.data&&(0,e.createFragment)([(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Subject",children: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.LabeledList.Item,{label:"Transfer to",children:[(0,e.createComponentVNode)(2,t.Button,{disabled:!E,icon:E?"syringe":"spinner",iconSpin:!E,content:"Injector",mb:"0",onClick:function(){function P(){return B("bufferOption",{option:"createInjector",id:w})}return P}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:!E,icon:E?"syringe":"spinner",iconSpin:!E,content:"Block Injector",mb:"0",onClick:function(){function P(){return B("bufferOption",{option:"createInjector",id:w,block:1})}return P}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"user",content:"Subject",mb:"0",onClick:function(){function P(){return B("bufferOption",{option:"transfer",id:w})}return P}()})]})],4)]}),!T.data&&(0,e.createComponentVNode)(2,t.Box,{color:"label",mt:"0.5rem",children:"This buffer is empty."})]})})},c=function(g,N){var x=(0,a.useBackend)(N),B=x.act,L=x.data,w=L.hasDisk,A=L.disk;return(0,e.createComponentVNode)(2,t.Section,{title:"Data Disk",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button.Confirm,{disabled:!w||!A.data,icon:"trash",content:"Wipe",onClick:function(){function T(){return B("wipeDisk")}return T}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:!w,icon:"eject",content:"Eject",onClick:function(){function T(){return B("ejectDisk")}return T}()})],4),children:w?A.data?(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Label",children:A.label?A.label:"No label"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Subject",children:A.owner?A.owner:(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"Unknown"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Data Type",children:[A.type==="ui"?"Unique Identifiers":"Structural Enzymes",!!A.ue&&" and Unique Enzymes"]})]}):(0,e.createComponentVNode)(2,t.Box,{color:"label",children:"Disk is blank."}):(0,e.createComponentVNode)(2,t.Box,{color:"label",textAlign:"center",my:"1rem",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"save-o",size:"4"}),(0,e.createVNode)(1,"br"),"No disk inserted."]})})},v=function(g,N){var x=(0,a.useBackend)(N),B=x.act,L=x.data,w=L.isBeakerLoaded,A=L.beakerVolume,T=L.beakerLabel;return(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Rejuvenators and Beaker",buttons:(0,e.createComponentVNode)(2,t.Button,{disabled:!w,icon:"eject",content:"Eject",onClick:function(){function E(){return B("ejectBeaker")}return E}()}),children:w?(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Inject",children:[k.map(function(E,O){return(0,e.createComponentVNode)(2,t.Button,{disabled:E>A,icon:"syringe",content:E,onClick:function(){function P(){return B("injectRejuvenators",{amount:E})}return P}()},O)}),(0,e.createComponentVNode)(2,t.Button,{disabled:A<=0,icon:"syringe",content:"All",onClick:function(){function E(){return B("injectRejuvenators",{amount:A})}return E}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Beaker",children:[(0,e.createComponentVNode)(2,t.Box,{mb:"0.5rem",children:T||"No label"}),A?(0,e.createComponentVNode)(2,t.Box,{color:"good",children:[A," unit",A===1?"":"s"," remaining"]}):(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:"Empty"})]})]}):(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,grow:!0,textAlign:"center",align:"center",color:"label",children:[(0,e.createComponentVNode)(2,t.Icon.Stack,{children:[(0,e.createComponentVNode)(2,t.Icon,{name:"flask",size:5,color:"silver"}),(0,e.createComponentVNode)(2,t.Icon,{name:"slash",size:5,color:"red"})]}),(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"h3",null,"No beaker loaded.",16)]})})})},b=function(g,N){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,N){for(var x=(0,a.useBackend)(N),B=x.act,L=x.data,w=g.dnaString,A=g.selectedBlock,T=g.selectedSubblock,E=g.blockSize,O=g.action,P=w.split(""),R=0,F=[],j=function(){for(var K=U/E+1,Y=[],G=function(){var se=ne+1;Y.push((0,e.createComponentVNode)(2,t.Button,{selected:A===K&&T===se,content:P[U+ne],mb:"0",onClick:function(){function Ne(){return B(O,{block:K,subblock:se})}return Ne}()}))},ne=0;ne0?"Yes":"No",selected:i.com>0,onClick:function(){function f(){return p("toggle_com")}return f}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Security",children:l.map(function(f,u){return(0,e.createComponentVNode)(2,t.Button,{selected:i.sec===f,content:f,onClick:function(){function d(){return p("set_sec",{set_sec:f})}return d}()},"sec"+f)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Medical",children:l.map(function(f,u){return(0,e.createComponentVNode)(2,t.Button,{selected:i.med===f,content:f,onClick:function(){function d(){return p("set_med",{set_med:f})}return d}()},"med"+f)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Engineering",children:l.map(function(f,u){return(0,e.createComponentVNode)(2,t.Button,{selected:i.eng===f,content:f,onClick:function(){function d(){return p("set_eng",{set_eng:f})}return d}()},"eng"+f)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Paranormal",children:l.map(function(f,u){return(0,e.createComponentVNode)(2,t.Button,{selected:i.par===f,content:f,onClick:function(){function d(){return p("set_par",{set_par:f})}return d}()},"par"+f)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Janitor",children:l.map(function(f,u){return(0,e.createComponentVNode)(2,t.Button,{selected:i.jan===f,content:f,onClick:function(){function d(){return p("set_jan",{set_jan:f})}return d}()},"jan"+f)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cyborg",children:l.map(function(f,u){return(0,e.createComponentVNode)(2,t.Button,{selected:i.cyb===f,content:f,onClick:function(){function d(){return p("set_cyb",{set_cyb:f})}return d}()},"cyb"+f)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Total Slots",children:(0,e.createComponentVNode)(2,t.Box,{color:i.total>i.spawnpoints?"red":"green",children:[i.total," total, versus ",i.spawnpoints," spawnpoints"]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Dispatch",children:(0,e.createComponentVNode)(2,t.Button,{icon:"ambulance",content:"Send ERT",onClick:function(){function f(){return p("dispatch_ert")}return f}()})})]})})]})})}return y}()},15543:function(I,r,n){"use strict";r.__esModule=!0,r.Electropack=void 0;var e=n(96524),a=n(36121),t=n(17899),o=n(24674),s=n(45493),y=r.Electropack=function(){function V(k,S){var p=(0,t.useBackend)(S),i=p.act,l=p.data,f=l.power,u=l.code,d=l.frequency,m=l.minFrequency,c=l.maxFrequency;return(0,e.createComponentVNode)(2,s.Window,{width:360,height:150,children:(0,e.createComponentVNode)(2,s.Window.Content,{children:(0,e.createComponentVNode)(2,o.Section,{children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Power",children:(0,e.createComponentVNode)(2,o.Button,{icon:f?"power-off":"times",content:f?"On":"Off",selected:f,onClick:function(){function v(){return i("power")}return v}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Frequency",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"sync",content:"Reset",onClick:function(){function v(){return i("reset",{reset:"freq"})}return v}()}),children:(0,e.createComponentVNode)(2,o.NumberInput,{animate:!0,unit:"kHz",step:.2,stepPixelSize:6,minValue:m/10,maxValue:c/10,value:d/10,format:function(){function v(b){return(0,a.toFixed)(b,1)}return v}(),width:"80px",onChange:function(){function v(b,C){return i("freq",{freq:C})}return v}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Code",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"sync",content:"Reset",onClick:function(){function v(){return i("reset",{reset:"code"})}return v}()}),children:(0,e.createComponentVNode)(2,o.NumberInput,{animate:!0,step:1,stepPixelSize:6,minValue:1,maxValue:100,value:u,width:"80px",onChange:function(){function v(b,C){return i("code",{code:C})}return v}()})})]})})})})}return V}()},99012:function(I,r,n){"use strict";r.__esModule=!0,r.EvolutionMenu=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),s=r.EvolutionMenu=function(){function k(S,p){return(0,e.createComponentVNode)(2,o.Window,{width:480,height:574,theme:"changeling",children:(0,e.createComponentVNode)(2,o.Window.Content,{className:"Layout__content--flexColumn",children:[(0,e.createComponentVNode)(2,y),(0,e.createComponentVNode)(2,V)]})})}return k}(),y=function(S,p){var i=(0,a.useBackend)(p),l=i.act,f=i.data,u=f.evo_points,d=f.can_respec;return(0,e.createComponentVNode)(2,t.Section,{title:"Evolution Points",height:5.5,children:(0,e.createComponentVNode)(2,t.Flex,{children:[(0,e.createComponentVNode)(2,t.Flex.Item,{mt:.5,color:"label",children:"Points remaining:"}),(0,e.createComponentVNode)(2,t.Flex.Item,{mt:.5,ml:2,bold:!0,color:"#1b945c",children:u}),(0,e.createComponentVNode)(2,t.Flex.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{ml:2.5,disabled:!d,content:"Readapt",icon:"sync",onClick:function(){function m(){return l("readapt")}return m}()}),(0,e.createComponentVNode)(2,t.Button,{tooltip:"By transforming a humanoid into a husk, we gain the ability to readapt our chosen evolutions.",tooltipPosition:"bottom",icon:"question-circle"})]})]})})},V=function(S,p){var i=(0,a.useBackend)(p),l=i.act,f=i.data,u=f.evo_points,d=f.ability_list,m=f.purchased_abilities,c=f.view_mode;return(0,e.createComponentVNode)(2,t.Section,{title:"Abilities",flexGrow:"1",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{icon:c?"square-o":"check-square-o",selected:!c,content:"Compact",onClick:function(){function v(){return l("set_view_mode",{mode:0})}return v}()}),(0,e.createComponentVNode)(2,t.Button,{icon:c?"check-square-o":"square-o",selected:c,content:"Expanded",onClick:function(){function v(){return l("set_view_mode",{mode:1})}return v}()})],4),children:d.map(function(v,b){return(0,e.createComponentVNode)(2,t.Box,{p:.5,mx:-1,className:"candystripe",children:[(0,e.createComponentVNode)(2,t.Flex,{align:"center",children:[(0,e.createComponentVNode)(2,t.Flex.Item,{ml:.5,color:"#dedede",children:v.name}),m.includes(v.power_path)&&(0,e.createComponentVNode)(2,t.Flex.Item,{ml:2,bold:!0,color:"#1b945c",children:"(Purchased)"}),(0,e.createComponentVNode)(2,t.Flex.Item,{mr:3,textAlign:"right",grow:1,children:[(0,e.createComponentVNode)(2,t.Box,{as:"span",color:"label",children:["Cost:"," "]}),(0,e.createComponentVNode)(2,t.Box,{as:"span",bold:!0,color:"#1b945c",children:v.cost})]}),(0,e.createComponentVNode)(2,t.Flex.Item,{textAlign:"right",children:(0,e.createComponentVNode)(2,t.Button,{mr:.5,disabled:v.cost>u||m.includes(v.power_path),content:"Evolve",onClick:function(){function C(){return l("purchase",{power_path:v.power_path})}return C}()})})]}),!!c&&(0,e.createComponentVNode)(2,t.Flex,{color:"#8a8a8a",my:1,ml:1.5,width:"95%",children:v.description+" "+v.helptext})]},b)})})}},37504:function(I,r,n){"use strict";r.__esModule=!0,r.ExosuitFabricator=void 0;var e=n(96524),a=n(28234),t=n(78234),o=n(17899),s=n(24674),y=n(99509),V=n(45493),k=["id","amount","lineDisplay","onClick"];function S(b,C){if(b==null)return{};var h={},g=Object.keys(b),N,x;for(x=0;x=0)&&(h[N]=b[N]);return h}var p=2e3,i={bananium:"clown",tranquillite:"mime"},l=r.ExosuitFabricator=function(){function b(C,h){var g=(0,o.useBackend)(h),N=g.act,x=g.data,B=x.building;return(0,e.createComponentVNode)(2,V.Window,{width:950,height:625,children:(0,e.createComponentVNode)(2,V.Window.Content,{className:"Exofab",children:(0,e.createComponentVNode)(2,s.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,s.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,s.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,s.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,u)}),B&&(0,e.createComponentVNode)(2,s.Stack.Item,{children:(0,e.createComponentVNode)(2,d)})]})}),(0,e.createComponentVNode)(2,s.Stack.Item,{width:"30%",children:(0,e.createComponentVNode)(2,s.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,s.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,f)}),(0,e.createComponentVNode)(2,s.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,m)})]})})]})})})}return b}(),f=function(C,h){var g=(0,o.useBackend)(h),N=g.act,x=g.data,B=x.materials,L=x.capacity,w=Object.values(B).reduce(function(A,T){return A+T},0);return(0,e.createComponentVNode)(2,s.Section,{fill:!0,scrollable:!0,title:"Materials",className:"Exofab__materials",buttons:(0,e.createComponentVNode)(2,s.Box,{color:"label",mt:"0.25rem",children:[(w/L*100).toPrecision(3),"% full"]}),children:["metal","glass","silver","gold","uranium","titanium","plasma","diamond","bluespace","bananium","tranquillite","plastic"].map(function(A){return(0,e.createComponentVNode)(2,c,{mt:-2,id:A,bold:A==="metal"||A==="glass",onClick:function(){function T(){return N("withdraw",{id:A})}return T}()},A)})})},u=function(C,h){var g=(0,o.useBackend)(h),N=g.act,x=g.data,B=x.curCategory,L=x.categories,w=x.designs,A=x.syncing,T=(0,o.useLocalState)(h,"searchText",""),E=T[0],O=T[1],P=(0,t.createSearch)(E,function(F){return F.name}),R=w.filter(P);return(0,e.createComponentVNode)(2,s.Section,{fill:!0,scrollable:!0,className:"Exofab__designs",title:(0,e.createComponentVNode)(2,s.Dropdown,{className:"Exofab__dropdown",selected:B,options:L,onSelected:function(){function F(j){return N("category",{cat:j})}return F}()}),buttons:(0,e.createComponentVNode)(2,s.Box,{mt:"2px",children:[(0,e.createComponentVNode)(2,s.Button,{icon:"plus",content:"Queue all",onClick:function(){function F(){return N("queueall")}return F}()}),(0,e.createComponentVNode)(2,s.Button,{disabled:A,iconSpin:A,icon:"sync-alt",content:A?"Synchronizing...":"Synchronize with R&D servers",onClick:function(){function F(){return N("sync")}return F}()})]}),children:[(0,e.createComponentVNode)(2,s.Input,{placeholder:"Search by name...",mb:"0.5rem",width:"100%",onInput:function(){function F(j,U){return O(U)}return F}()}),R.map(function(F){return(0,e.createComponentVNode)(2,v,{design:F},F.id)}),R.length===0&&(0,e.createComponentVNode)(2,s.Box,{color:"label",children:"No designs found."})]})},d=function(C,h){var g=(0,o.useBackend)(h),N=g.act,x=g.data,B=x.building,L=x.buildStart,w=x.buildEnd,A=x.worldTime;return(0,e.createComponentVNode)(2,s.Section,{className:"Exofab__building",stretchContents:!0,children:(0,e.createComponentVNode)(2,s.ProgressBar.Countdown,{start:L,current:A,end:w,children:(0,e.createComponentVNode)(2,s.Stack,{children:[(0,e.createComponentVNode)(2,s.Stack.Item,{children:(0,e.createComponentVNode)(2,s.Icon,{name:"cog",spin:!0})}),(0,e.createComponentVNode)(2,s.Stack.Item,{children:["Building ",B,"\xA0(",(0,e.createComponentVNode)(2,y.Countdown,{current:A,timeLeft:w-A,format:function(){function T(E,O){return O.substr(3)}return T}()}),")"]})]})})})},m=function(C,h){var g=(0,o.useBackend)(h),N=g.act,x=g.data,B=x.queue,L=x.processingQueue,w=Object.entries(x.queueDeficit).filter(function(T){return T[1]<0}),A=B.reduce(function(T,E){return T+E.time},0);return(0,e.createComponentVNode)(2,s.Section,{fill:!0,scrollable:!0,className:"Exofab__queue",title:"Queue",buttons:(0,e.createComponentVNode)(2,s.Box,{children:[(0,e.createComponentVNode)(2,s.Button,{selected:L,icon:L?"toggle-on":"toggle-off",content:"Process",onClick:function(){function T(){return N("process")}return T}()}),(0,e.createComponentVNode)(2,s.Button,{disabled:B.length===0,icon:"eraser",content:"Clear",onClick:function(){function T(){return N("unqueueall")}return T}()})]}),children:(0,e.createComponentVNode)(2,s.Stack,{fill:!0,vertical:!0,children:B.length===0?(0,e.createComponentVNode)(2,s.Box,{color:"label",children:"The queue is empty."}):(0,e.createFragment)([(0,e.createComponentVNode)(2,s.Stack.Item,{className:"Exofab__queue--queue",grow:!0,overflow:"auto",children:B.map(function(T,E){return(0,e.createComponentVNode)(2,s.Box,{color:T.notEnough&&"bad",children:[E+1,". ",T.name,E>0&&(0,e.createComponentVNode)(2,s.Button,{icon:"arrow-up",onClick:function(){function O(){return N("queueswap",{from:E+1,to:E})}return O}()}),E0&&(0,e.createComponentVNode)(2,s.Stack.Item,{className:"Exofab__queue--time",children:[(0,e.createComponentVNode)(2,s.Divider),"Processing time:",(0,e.createComponentVNode)(2,s.Icon,{name:"clock",mx:"0.5rem"}),(0,e.createComponentVNode)(2,s.Box,{inline:!0,bold:!0,children:new Date(A/10*1e3).toISOString().substr(14,5)})]}),Object.keys(w).length>0&&(0,e.createComponentVNode)(2,s.Stack.Item,{className:"Exofab__queue--deficit",shrink:"0",children:[(0,e.createComponentVNode)(2,s.Divider),"Lacking materials to complete:",w.map(function(T){return(0,e.createComponentVNode)(2,s.Box,{children:(0,e.createComponentVNode)(2,c,{id:T[0],amount:-T[1],lineDisplay:!0})},T[0])})]})],0)})})},c=function(C,h){var g=(0,o.useBackend)(h),N=g.act,x=g.data,B=C.id,L=C.amount,w=C.lineDisplay,A=C.onClick,T=S(C,k),E=x.materials[B]||0,O=L||E;if(!(O<=0&&!(B==="metal"||B==="glass"))){var P=L&&L>E;return(0,e.normalizeProps)((0,e.createComponentVNode)(2,s.Stack,Object.assign({align:"center",className:(0,a.classes)(["Exofab__material",w&&"Exofab__material--line"])},T,{children:w?(0,e.createFragment)([(0,e.createComponentVNode)(2,s.Stack.Item,{className:(0,a.classes)(["materials32x32",B])}),(0,e.createComponentVNode)(2,s.Stack.Item,{className:"Exofab__material--amount",color:P&&"bad",ml:0,mr:1,children:O.toLocaleString("en-US")})],4):(0,e.createFragment)([(0,e.createComponentVNode)(2,s.Stack.Item,{basis:"content",children:(0,e.createComponentVNode)(2,s.Button,{width:"85%",color:"transparent",onClick:A,children:(0,e.createComponentVNode)(2,s.Box,{mt:1,className:(0,a.classes)(["materials32x32",B])})})}),(0,e.createComponentVNode)(2,s.Stack.Item,{grow:"1",children:[(0,e.createComponentVNode)(2,s.Box,{className:"Exofab__material--name",children:B}),(0,e.createComponentVNode)(2,s.Box,{className:"Exofab__material--amount",children:[O.toLocaleString("en-US")," cm\xB3 (",Math.round(O/p*10)/10," ","sheets)"]})]})],4)})))}},v=function(C,h){var g=(0,o.useBackend)(h),N=g.act,x=g.data,B=C.design;return(0,e.createComponentVNode)(2,s.Box,{className:"Exofab__design",children:[(0,e.createComponentVNode)(2,s.Button,{disabled:B.notEnough||x.building,icon:"cog",content:B.name,onClick:function(){function L(){return N("build",{id:B.id})}return L}()}),(0,e.createComponentVNode)(2,s.Button,{icon:"plus-circle",onClick:function(){function L(){return N("queue",{id:B.id})}return L}()}),(0,e.createComponentVNode)(2,s.Box,{className:"Exofab__design--cost",children:Object.entries(B.cost).map(function(L){return(0,e.createComponentVNode)(2,s.Box,{children:(0,e.createComponentVNode)(2,c,{id:L[0],amount:L[1],lineDisplay:!0})},L[0])})}),(0,e.createComponentVNode)(2,s.Stack,{className:"Exofab__design--time",children:(0,e.createComponentVNode)(2,s.Stack.Item,{children:[(0,e.createComponentVNode)(2,s.Icon,{name:"clock"}),B.time>0?(0,e.createFragment)([B.time/10,(0,e.createTextVNode)(" seconds")],0):"Instant"]})})]})}},77284:function(I,r,n){"use strict";r.__esModule=!0,r.ExternalAirlockController=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),s=0,y=1013,V=function(p){var i="good",l=80,f=95,u=110,d=120;return pu?i="average":p>d&&(i="bad"),i},k=r.ExternalAirlockController=function(){function S(p,i){var l=(0,a.useBackend)(i),f=l.act,u=l.data,d=u.chamber_pressure,m=u.exterior_status,c=u.interior_status,v=u.processing;return(0,e.createComponentVNode)(2,o.Window,{width:470,height:290,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Information",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Chamber Pressure",children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:V(d),value:d,minValue:s,maxValue:y,children:[d," kPa"]})})})}),(0,e.createComponentVNode)(2,t.Section,{title:"Actions",children:[(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Button,{content:"Cycle to Exterior",icon:"arrow-circle-left",disabled:v,onClick:function(){function b(){return f("cycle_ext")}return b}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Cycle to Interior",icon:"arrow-circle-right",disabled:v,onClick:function(){function b(){return f("cycle_int")}return b}()})]}),(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Button,{content:"Force Exterior Door",icon:"exclamation-triangle",color:c==="open"?"red":v?"yellow":null,onClick:function(){function b(){return f("force_ext")}return b}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Force Interior Door",icon:"exclamation-triangle",color:c==="open"?"red":v?"yellow":null,onClick:function(){function b(){return f("force_int")}return b}()})]}),(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Abort",icon:"ban",color:"red",disabled:!v,onClick:function(){function b(){return f("abort")}return b}()})})]})]})})}return S}()},52516:function(I,r,n){"use strict";r.__esModule=!0,r.FaxMachine=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),s=r.FaxMachine=function(){function y(V,k){var S=(0,a.useBackend)(k),p=S.act,i=S.data;return(0,e.createComponentVNode)(2,o.Window,{width:540,height:300,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Authorization",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"ID Card",children:(0,e.createComponentVNode)(2,t.Button,{icon:i.scan_name?"eject":"id-card",selected:i.scan_name,content:i.scan_name?i.scan_name:"-----",tooltip:i.scan_name?"Eject ID":"Insert ID",onClick:function(){function l(){return p("scan")}return l}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Authorize",children:(0,e.createComponentVNode)(2,t.Button,{icon:i.authenticated?"sign-out-alt":"id-card",selected:i.authenticated,disabled:!i.scan_name&&!i.authenticated,content:i.authenticated?"Log Out":"Log In",onClick:function(){function l(){return p("auth")}return l}()})})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Fax Menu",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Network",children:i.network}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Document",children:[(0,e.createComponentVNode)(2,t.Button,{icon:i.paper?"eject":"paperclip",disabled:!i.authenticated&&!i.paper,content:i.paper?i.paper:"-----",onClick:function(){function l(){return p("paper")}return l}()}),!!i.paper&&(0,e.createComponentVNode)(2,t.Button,{icon:"pencil-alt",content:"Rename",onClick:function(){function l(){return p("rename")}return l}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Sending To",children:(0,e.createComponentVNode)(2,t.Button,{icon:"print",content:i.destination?i.destination:"-----",disabled:!i.authenticated,onClick:function(){function l(){return p("dept")}return l}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Action",children:(0,e.createComponentVNode)(2,t.Button,{icon:"envelope",content:i.sendError?i.sendError:"Send",disabled:!i.paper||!i.destination||!i.authenticated||i.sendError,onClick:function(){function l(){return p("send")}return l}()})})]})})]})})}return y}()},88361:function(I,r,n){"use strict";r.__esModule=!0,r.FloorPainter=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),s=function(k,S){var p=(0,a.useBackend)(S),i=p.act,l=p.data,f=k.image,u=k.isSelected,d=k.onSelect;return(0,e.createVNode)(1,"img",null,null,1,{src:"data:image/jpeg;base64,"+f,style:{"border-style":u&&"solid"||"none","border-width":"2px","border-color":"orange",padding:u&&"2px"||"4px"},onClick:d})},y=r.FloorPainter=function(){function V(k,S){var p=(0,a.useBackend)(S),i=p.act,l=p.data,f=l.availableStyles,u=l.selectedStyle,d=l.selectedDir,m=l.directionsPreview,c=l.allStylesPreview;return(0,e.createComponentVNode)(2,o.Window,{width:405,height:475,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Decal setup",children:[(0,e.createComponentVNode)(2,t.Flex,{children:[(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"chevron-left",onClick:function(){function v(){return i("cycle_style",{offset:-1})}return v}()})}),(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Dropdown,{options:f,selected:u,width:"150px",height:"20px",ml:"2px",mr:"2px",nochevron:!0,onSelected:function(){function v(b){return i("select_style",{style:b})}return v}()})}),(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"chevron-right",onClick:function(){function v(){return i("cycle_style",{offset:1})}return v}()})})]}),(0,e.createComponentVNode)(2,t.Box,{mt:"5px",mb:"5px",children:(0,e.createComponentVNode)(2,t.Flex,{overflowY:"auto",maxHeight:"220px",wrap:"wrap",children:f.map(function(v){return(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,s,{image:c[v],isSelected:u===v,onSelect:function(){function b(){return i("select_style",{style:v})}return b}()})},"{style}")})})}),(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Direction",children:(0,e.createComponentVNode)(2,t.Table,{style:{display:"inline"},children:["north","","south"].map(function(v){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[v+"west",v,v+"east"].map(function(b){return(0,e.createComponentVNode)(2,t.Table.Cell,{style:{"vertical-align":"middle","text-align":"center"},children:b===""?(0,e.createComponentVNode)(2,t.Icon,{name:"arrows-alt",size:3}):(0,e.createComponentVNode)(2,s,{image:m[b],isSelected:b===d,onSelect:function(){function C(){return i("select_direction",{direction:b})}return C}()})},b)})},v)})})})})]})})})}return V}()},70078:function(I,r,n){"use strict";r.__esModule=!0,r.GPS=void 0;var e=n(96524),a=n(36121),t=n(17899),o=n(24674),s=n(45493),y=function(u){return u?"("+u.join(", ")+")":"ERROR"},V=function(u,d,m){if(!(!u||!d)){if(u[2]!==d[2]||m!==1)return null;var c=Math.atan2(d[1]-u[1],d[0]-u[0]),v=Math.sqrt(Math.pow(d[1]-u[1],2)+Math.pow(d[0]-u[0],2));return{angle:(0,a.rad2deg)(c),distance:v}}},k=r.GPS=function(){function f(u,d){var m=(0,t.useBackend)(d),c=m.data,v=c.emped,b=c.active,C=c.area,h=c.position,g=c.saved;return(0,e.createComponentVNode)(2,s.Window,{width:450,height:700,children:(0,e.createComponentVNode)(2,s.Window.Content,{children:(0,e.createComponentVNode)(2,o.Flex,{direction:"column",height:"100%",children:v?(0,e.createComponentVNode)(2,o.Flex.Item,{grow:"1",basis:"0",children:(0,e.createComponentVNode)(2,S,{emp:!0})}):(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Flex.Item,{children:(0,e.createComponentVNode)(2,p)}),b?(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Flex.Item,{mt:"0.5rem",children:(0,e.createComponentVNode)(2,i,{area:C,position:h})}),g&&(0,e.createComponentVNode)(2,o.Flex.Item,{mt:"0.5rem",children:(0,e.createComponentVNode)(2,i,{title:"Saved Position",position:g})}),(0,e.createComponentVNode)(2,o.Flex.Item,{mt:"0.5rem",grow:"1",basis:"0",children:(0,e.createComponentVNode)(2,l,{height:"100%"})})],0):(0,e.createComponentVNode)(2,S)],0)})})})}return f}(),S=function(u,d){var m=u.emp;return(0,e.createComponentVNode)(2,o.Section,{mt:"0.5rem",width:"100%",height:"100%",stretchContents:!0,children:(0,e.createComponentVNode)(2,o.Box,{width:"100%",height:"100%",color:"label",textAlign:"center",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:m?"ban":"power-off",mb:"0.5rem",size:"5"}),(0,e.createVNode)(1,"br"),m?"ERROR: Device temporarily lost signal.":"Device is disabled."]})})})})},p=function(u,d){var m=(0,t.useBackend)(d),c=m.act,v=m.data,b=v.active,C=v.tag,h=v.same_z,g=(0,t.useLocalState)(d,"newTag",C),N=g[0],x=g[1];return(0,e.createComponentVNode)(2,o.Section,{title:"Settings",buttons:(0,e.createComponentVNode)(2,o.Button,{selected:b,icon:b?"toggle-on":"toggle-off",content:b?"On":"Off",onClick:function(){function B(){return c("toggle")}return B}()}),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Tag",children:[(0,e.createComponentVNode)(2,o.Input,{width:"5rem",value:C,onEnter:function(){function B(){return c("tag",{newtag:N})}return B}(),onInput:function(){function B(L,w){return x(w)}return B}()}),(0,e.createComponentVNode)(2,o.Button,{disabled:C===N,width:"20px",mb:"0",ml:"0.25rem",onClick:function(){function B(){return c("tag",{newtag:N})}return B}(),children:(0,e.createComponentVNode)(2,o.Icon,{name:"pen"})})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Range",children:(0,e.createComponentVNode)(2,o.Button,{selected:!h,icon:h?"compress":"expand",content:h?"Local Sector":"Global",onClick:function(){function B(){return c("same_z")}return B}()})})]})})},i=function(u,d){var m=u.title,c=u.area,v=u.position;return(0,e.createComponentVNode)(2,o.Section,{title:m||"Position",children:(0,e.createComponentVNode)(2,o.Box,{fontSize:"1.5rem",children:[c&&(0,e.createFragment)([c,(0,e.createVNode)(1,"br")],0),y(v)]})})},l=function(u,d){var m=(0,t.useBackend)(d),c=m.data,v=c.position,b=c.signals,C=c.upgraded;return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Section,Object.assign({title:"Signals",overflow:"auto"},u,{children:(0,e.createComponentVNode)(2,o.Table,{children:b.map(function(h){return Object.assign({},h,V(v,h.position,C))}).map(function(h,g){return(0,e.createComponentVNode)(2,o.Table.Row,{backgroundColor:g%2===0&&"rgba(255, 255, 255, 0.05)",children:[(0,e.createComponentVNode)(2,o.Table.Cell,{width:"30%",verticalAlign:"middle",color:"label",p:"0.25rem",bold:!0,children:h.tag}),(0,e.createComponentVNode)(2,o.Table.Cell,{verticalAlign:"middle",color:"grey",children:h.area}),(0,e.createComponentVNode)(2,o.Table.Cell,{verticalAlign:"middle",collapsing:!0,children:h.distance!==void 0&&(0,e.createComponentVNode)(2,o.Box,{opacity:Math.max(1-Math.min(h.distance,100)/100,.5),children:[(0,e.createComponentVNode)(2,o.Icon,{name:h.distance>0?"arrow-right":"circle",rotation:-h.angle}),"\xA0",Math.floor(h.distance)+"m"]})}),(0,e.createComponentVNode)(2,o.Table.Cell,{verticalAlign:"middle",pr:"0.25rem",collapsing:!0,children:y(h.position)})]},g)})})})))}},96961:function(I,r,n){"use strict";r.__esModule=!0,r.GasAnalyzerHistory=r.GasAnalyzerContent=r.GasAnalyzer=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),s=r.GasAnalyzerContent=function(){function k(S,p){var i=(0,a.useBackend)(p),l=i.act,f=i.data,u=f.gasmixes,d=f.autoUpdating;return(0,e.createComponentVNode)(2,t.Section,{title:u[0].name,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:d?"unlock":"lock",onClick:function(){function m(){return l("autoscantoggle")}return m}(),tooltip:d?"Auto-Update Enabled":"Auto-Update Disabled",fluid:!0,textAlign:"center",selected:d}),children:u[0].total_moles?(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Total Moles",children:(u[0].total_moles?u[0].total_moles:"-")+" mol"}),u[0].oxygen?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Oxygen",children:u[0].oxygen.toFixed(2)+" mol ("+(u[0].oxygen/u[0].total_moles).toFixed(2)*100+" %)"}):"",u[0].nitrogen?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Nitrogen",children:u[0].nitrogen.toFixed(2)+" mol ("+(u[0].nitrogen/u[0].total_moles).toFixed(2)*100+" %)"}):"",u[0].carbon_dioxide?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Carbon Dioxide",children:u[0].carbon_dioxide.toFixed(2)+" mol ("+(u[0].carbon_dioxide/u[0].total_moles).toFixed(2)*100+" %)"}):"",u[0].toxins?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Plasma",children:u[0].toxins.toFixed(2)+" mol ("+(u[0].toxins/u[0].total_moles).toFixed(2)*100+" %)"}):"",u[0].sleeping_agent?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Nitrous Oxide",children:u[0].sleeping_agent.toFixed(2)+" mol ("+(u[0].sleeping_agent/u[0].total_moles).toFixed(2)*100+" %)"}):"",u[0].agent_b?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Agent B",children:u[0].agent_b.toFixed(2)+" mol ("+(u[0].agent_b/u[0].total_moles).toFixed(2)*100+" %)"}):"",(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Temperature",children:(u[0].total_moles?(u[0].temperature-273.15).toFixed(2):"-")+" \xB0C ("+(u[0].total_moles?u[0].temperature.toFixed(2):"-")+" K)"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Volume",children:(u[0].total_moles?u[0].volume:"-")+" L"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Pressure",children:(u[0].total_moles?u[0].pressure.toFixed(2):"-")+" kPa"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Heat Capacity",children:u[0].heat_capacity+" / K"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Thermal Energy",children:u[0].thermal_energy})]}):(0,e.createComponentVNode)(2,t.Box,{nowrap:!0,italic:!0,mb:"10px",children:"No Gas Detected!"})},u[0])}return k}(),y=r.GasAnalyzerHistory=function(){function k(S,p){var i=(0,a.useBackend)(p),l=i.act,f=i.data,u=f.historyGasmixes,d=f.historyViewMode,m=f.historyIndex;return(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Scan History",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"trash",tooltip:"Clear History",onClick:function(){function c(){return l("clearhistory")}return c}(),textAlign:"center",disabled:u.length===0}),children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Mode",children:(0,e.createComponentVNode)(2,t.Flex,{inline:!0,width:"50%",children:[(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Button,{content:"kPa",onClick:function(){function c(){return l("modekpa")}return c}(),textAlign:"center",selected:d==="kpa"})}),(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Button,{content:"mol",onClick:function(){function c(){return l("modemol")}return c}(),textAlign:"center",selected:d==="mol"})})]})}),(0,e.createComponentVNode)(2,t.LabeledList,{children:u.map(function(c,v){return(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:v+1+". "+(d==="mol"?c[0].total_moles.toFixed(2):c[0].pressure.toFixed(2)),onClick:function(){function b(){return l("input",{target:v+1})}return b}(),textAlign:"left",selected:v+1===m,fluid:!0})},c[0])})})]})}return k}(),V=r.GasAnalyzer=function(){function k(S,p){var i={float:"left",width:"67%"},l={float:"right",width:"33%"};return(0,e.createComponentVNode)(2,o.Window,{width:500,height:500,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createVNode)(1,"div",null,(0,e.createComponentVNode)(2,t.Section,{grow:!0,children:(0,e.createComponentVNode)(2,s)}),2,{style:i}),(0,e.createVNode)(1,"div",null,(0,e.createComponentVNode)(2,t.Section,{width:"160px",children:(0,e.createComponentVNode)(2,y)}),2,{style:l})]})})}return k}()},94572:function(I,r,n){"use strict";r.__esModule=!0,r.GasFreezer=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),s=r.GasFreezer=function(){function y(V,k){var S=(0,a.useBackend)(k),p=S.act,i=S.data,l=i.on,f=i.pressure,u=i.temperature,d=i.temperatureCelsius,m=i.min,c=i.max,v=i.target,b=i.targetCelsius,C=(u-m)/(c-m);return(0,e.createComponentVNode)(2,o.Window,{width:560,height:200,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{title:"\u0421\u0442\u0430\u0442\u0443\u0441",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:l?"power-off":"times",content:l?"\u0412\u043A\u043B":"\u0412\u044B\u043A\u043B",selected:l,onClick:function(){function h(){return p("power")}return h}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0414\u0430\u0432\u043B\u0435\u043D\u0438\u0435",children:[f," \u043A\u041F\u0430"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0422\u0435\u043C\u043F\u0435\u0440\u0430\u0442\u0443\u0440\u0430",children:(0,e.createComponentVNode)(2,t.Flex,{direction:"row",justify:"space-between",children:[(0,e.createComponentVNode)(2,t.Flex.Item,{width:"65%",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:C,ranges:{blue:[-1/0,.5],red:[.5,1/0]},children:"\xA0"})}),(0,e.createComponentVNode)(2,t.Flex.Item,{width:"35%",children:[C<.5&&(0,e.createComponentVNode)(2,t.Box,{inline:!0,color:"blue",ml:1,children:[u," \xB0K (",d," \xB0C)"]}),C>=.5&&(0,e.createComponentVNode)(2,t.Box,{inline:!0,color:"red",ml:1,children:[u," \xB0K (",d," \xB0C)"]})]})]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0426\u0435\u043B\u0435\u0432\u0430\u044F \u0442\u0435\u043C\u043F\u0435\u0440\u0430\u0442\u0443\u0440\u0430",children:(0,e.createComponentVNode)(2,t.Flex,{direction:"row",children:[(0,e.createComponentVNode)(2,t.Flex.Item,{width:"65%",justify:"end",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:(v-m)/(c-m),children:"\xA0"})}),(0,e.createComponentVNode)(2,t.Flex.Item,{width:"35%",children:(0,e.createComponentVNode)(2,t.Box,{inline:!0,ml:1,children:[v," \xB0K (",b," \xB0C)"]})})]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0417\u0430\u0434\u0430\u0442\u044C \u0446\u0435\u043B\u0435\u0432\u0443\u044E \u0442\u0435\u043C\u043F\u0435\u0440\u0430\u0442\u0443\u0440\u0443",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"fast-backward",title:"\u041C\u0438\u043D\u0438\u043C\u0430\u043B\u044C\u043D\u0430\u044F \u0442\u0435\u043C\u043F\u0435\u0440\u0430\u0442\u0443\u0440\u0430",onClick:function(){function h(){return p("temp",{temp:m})}return h}()}),(0,e.createComponentVNode)(2,t.NumberInput,{value:Math.round(v),unit:"\xB0K",minValue:Math.round(m),maxValue:Math.round(c),step:5,stepPixelSize:3,onDrag:function(){function h(g,N){return p("temp",{temp:N})}return h}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",title:"\u041C\u0430\u043A\u0441\u0438\u043C\u0430\u043B\u044C\u043D\u0430\u044F \u0442\u0435\u043C\u043F\u0435\u0440\u0430\u0442\u0443\u0440\u0430",onClick:function(){function h(){return p("temp",{temp:c})}return h}()})]})]})})})})}return y}()},92246:function(I,r,n){"use strict";r.__esModule=!0,r.GeneModder=void 0;var e=n(96524),a=n(17899),t=n(28234),o=n(24674),s=n(99665),y=n(45493),V=r.GeneModder=function(){function d(m,c){var v=(0,a.useBackend)(c),b=v.data,C=b.has_seed;return(0,e.createComponentVNode)(2,y.Window,{width:500,height:650,children:(0,e.createComponentVNode)(2,y.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,p),(0,e.createComponentVNode)(2,s.ComplexModal,{maxWidth:"75%",maxHeight:"75%"}),C===0?(0,e.createComponentVNode)(2,S):(0,e.createComponentVNode)(2,k)]})})})}return d}(),k=function(m,c){var v=(0,a.useBackend)(c),b=v.act,C=v.data,h=C.disk;return(0,e.createComponentVNode)(2,o.Section,{title:"Genes",fill:!0,scrollable:!0,buttons:(0,e.createComponentVNode)(2,o.Button,{content:"Insert Gene from Disk",disabled:!h||!h.can_insert||h.is_core,icon:"arrow-circle-down",onClick:function(){function g(){return b("insert")}return g}()}),children:[(0,e.createComponentVNode)(2,i),(0,e.createComponentVNode)(2,l),(0,e.createComponentVNode)(2,f)]})},S=function(m,c){return(0,e.createComponentVNode)(2,o.Section,{fill:!0,height:"85%",children:(0,e.createComponentVNode)(2,o.Stack,{height:"100%",children:(0,e.createComponentVNode)(2,o.Stack.Item,{bold:!0,grow:"1",textAlign:"center",align:"center",color:"green",children:[(0,e.createComponentVNode)(2,o.Icon,{name:"leaf",size:5,mb:"10px"}),(0,e.createVNode)(1,"br"),"The plant DNA manipulator is missing a seed."]})})})},p=function(m,c){var v=(0,a.useBackend)(c),b=v.act,C=v.data,h=C.has_seed,g=C.seed,N=C.has_disk,x=C.disk,B,L;return h?B=(0,e.createComponentVNode)(2,o.Stack.Item,{mb:"-6px",mt:"-4px",children:[(0,e.createVNode)(1,"img",(0,t.classes)(["seeds32x32",g.image]),null,1,{style:{"vertical-align":"middle",width:"32px",margin:"-1px","margin-left":"-11px"}}),(0,e.createComponentVNode)(2,o.Button,{content:g.name,onClick:function(){function w(){return b("eject_seed")}return w}()}),(0,e.createComponentVNode)(2,o.Button,{ml:"3px",icon:"pen",tooltip:"Name Variant",onClick:function(){function w(){return b("variant_name")}return w}()})]}):B=(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{ml:3.3,content:"None",onClick:function(){function w(){return b("eject_seed")}return w}()})}),N?L=x.name:L="None",(0,e.createComponentVNode)(2,o.Section,{title:"Storage",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Plant Sample",children:B}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Data Disk",children:(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{ml:3.3,content:L,onClick:function(){function w(){return b("eject_disk")}return w}()})})})]})})},i=function(m,c){var v=(0,a.useBackend)(c),b=v.act,C=v.data,h=C.disk,g=C.core_genes;return(0,e.createComponentVNode)(2,o.Collapsible,{title:"Core Genes",open:!0,children:[g.map(function(N){return(0,e.createComponentVNode)(2,o.Stack,{py:"2px",className:"candystripe",children:[(0,e.createComponentVNode)(2,o.Stack.Item,{width:"100%",ml:"2px",children:N.name}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{content:"Extract",disabled:!(h!=null&&h.can_extract),icon:"save",onClick:function(){function x(){return b("extract",{id:N.id})}return x}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{content:"Replace",disabled:!N.is_type||!h.can_insert,icon:"arrow-circle-down",onClick:function(){function x(){return b("replace",{id:N.id})}return x}()})})]},N)})," ",(0,e.createComponentVNode)(2,o.Stack,{children:(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{content:"Replace All",disabled:!(h!=null&&h.is_bulk_core),icon:"arrow-circle-down",onClick:function(){function N(){return b("bulk_replace_core")}return N}()})})})]},"Core Genes")},l=function(m,c){var v=(0,a.useBackend)(c),b=v.data,C=b.reagent_genes,h=b.has_reagent;return(0,e.createComponentVNode)(2,u,{title:"Reagent Genes",gene_set:C,do_we_show:h})},f=function(m,c){var v=(0,a.useBackend)(c),b=v.data,C=b.trait_genes,h=b.has_trait;return(0,e.createComponentVNode)(2,u,{title:"Trait Genes",gene_set:C,do_we_show:h})},u=function(m,c){var v=m.title,b=m.gene_set,C=m.do_we_show,h=(0,a.useBackend)(c),g=h.act,N=h.data,x=N.disk;return(0,e.createComponentVNode)(2,o.Collapsible,{title:v,open:!0,children:C?b.map(function(B){return(0,e.createComponentVNode)(2,o.Stack,{py:"2px",className:"candystripe",children:[(0,e.createComponentVNode)(2,o.Stack.Item,{width:"100%",ml:"2px",children:B.name}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{content:"Extract",disabled:!(x!=null&&x.can_extract),icon:"save",onClick:function(){function L(){return g("extract",{id:B.id})}return L}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{content:"Remove",icon:"times",onClick:function(){function L(){return g("remove",{id:B.id})}return L}()})})]},B)}):(0,e.createComponentVNode)(2,o.Stack.Item,{children:"No Genes Detected"})},v)}},27163:function(I,r,n){"use strict";r.__esModule=!0,r.GenericCrewManifest=void 0;var e=n(96524),a=n(24674),t=n(45493),o=n(98444),s=r.GenericCrewManifest=function(){function y(V,k){return(0,e.createComponentVNode)(2,t.Window,{width:588,height:510,theme:"nologo",children:(0,e.createComponentVNode)(2,t.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,a.Section,{noTopPadding:!0,children:(0,e.createComponentVNode)(2,o.CrewManifest)})})})}return y}()},53808:function(I,r,n){"use strict";r.__esModule=!0,r.GhostHudPanel=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),s=r.GhostHudPanel=function(){function V(k,S){var p=(0,a.useBackend)(S),i=p.data,l=i.security,f=i.medical,u=i.diagnostic,d=i.ahud;return(0,e.createComponentVNode)(2,o.Window,{width:250,height:207,theme:"nologo",children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:[(0,e.createComponentVNode)(2,y,{label:"Medical",type:"medical",is_active:f}),(0,e.createComponentVNode)(2,y,{label:"Security",type:"security",is_active:l}),(0,e.createComponentVNode)(2,y,{label:"Diagnostic",type:"diagnostic",is_active:u}),(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,y,{label:"Antag HUD",is_active:d,act_on:"ahud_on",act_off:"ahud_off"})]})})})}return V}(),y=function(k,S){var p=(0,a.useBackend)(S),i=p.act,l=k.label,f=k.type,u=f===void 0?null:f,d=k.is_active,m=k.act_on,c=m===void 0?"hud_on":m,v=k.act_off,b=v===void 0?"hud_off":v;return(0,e.createComponentVNode)(2,t.Flex,{pt:.3,color:"label",children:[(0,e.createComponentVNode)(2,t.Flex.Item,{pl:.5,align:"center",width:"80%",children:l}),(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Button,{mr:.6,content:d?"On":"Off",icon:d?"toggle-on":"toggle-off",selected:d,onClick:function(){function C(){return i(d?b:c,{hud_type:u})}return C}()})})]})}},32035:function(I,r,n){"use strict";r.__esModule=!0,r.GlandDispenser=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),s=r.GlandDispenser=function(){function y(V,k){var S=(0,a.useBackend)(k),p=S.act,i=S.data,l=i.glands,f=l===void 0?[]:l;return(0,e.createComponentVNode)(2,o.Window,{width:300,height:338,theme:"abductor",children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:f.map(function(u){return(0,e.createComponentVNode)(2,t.Button,{width:"60px",height:"60px",m:.75,textAlign:"center",fontSize:"17px",lineHeight:"55px",icon:"eject",backgroundColor:u.color,content:u.amount||"0",disabled:!u.amount,onClick:function(){function d(){return p("dispense",{gland_id:u.id})}return d}()},u.id)})})})})}return y}()},22480:function(I,r,n){"use strict";r.__esModule=!0,r.HandheldChemDispenser=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),s=[1,5,10,20,30,50],y=null,V=r.HandheldChemDispenser=function(){function p(i,l){return(0,e.createComponentVNode)(2,o.Window,{width:450,height:500,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,k),(0,e.createComponentVNode)(2,S)]})})})}return p}(),k=function(i,l){var f=(0,a.useBackend)(l),u=f.act,d=f.data,m=d.amount,c=d.energy,v=d.maxEnergy,b=d.mode;return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Settings",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Energy",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:c,minValue:0,maxValue:v,ranges:{good:[v*.5,1/0],average:[v*.25,v*.5],bad:[-1/0,v*.25]},children:[c," / ",v," Units"]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Amount",verticalAlign:"middle",children:(0,e.createComponentVNode)(2,t.Stack,{children:s.map(function(C,h){return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,width:"15%",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"cog",selected:m===C,content:C,onClick:function(){function g(){return u("amount",{amount:C})}return g}()})},h)})})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Mode",verticalAlign:"middle",children:(0,e.createComponentVNode)(2,t.Stack,{justify:"space-between",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"cog",selected:b==="dispense",content:"Dispense",m:"0",width:"32%",onClick:function(){function C(){return u("mode",{mode:"dispense"})}return C}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"cog",selected:b==="remove",content:"Remove",m:"0",width:"32%",onClick:function(){function C(){return u("mode",{mode:"remove"})}return C}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"cog",selected:b==="isolate",content:"Isolate",m:"0",width:"32%",onClick:function(){function C(){return u("mode",{mode:"isolate"})}return C}()})]})})]})})})},S=function(i,l){for(var f=(0,a.useBackend)(l),u=f.act,d=f.data,m=d.chemicals,c=m===void 0?[]:m,v=d.current_reagent,b=[],C=0;C<(c.length+1)%3;C++)b.push(!0);return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,height:"18%",children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:d.glass?"Drink Selector":"Chemical Selector",children:[c.map(function(h,g){return(0,e.createComponentVNode)(2,t.Button,{width:"32%",icon:"arrow-circle-down",overflow:"hidden",textOverflow:"ellipsis",selected:v===h.id,content:h.title,style:{"margin-left":"2px"},onClick:function(){function N(){return u("dispense",{reagent:h.id})}return N}()},g)}),b.map(function(h,g){return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:"1",basis:"25%"},g)})]})})}},5876:function(I,r,n){"use strict";r.__esModule=!0,r.ImplantPad=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),s=r.ImplantPad=function(){function y(V,k){var S=(0,a.useBackend)(k),p=S.act,i=S.data,l=i.implant,f=i.contains_case,u=i.tag,d=(0,a.useLocalState)(k,"newTag",u),m=d[0],c=d[1];return(0,e.createComponentVNode)(2,o.Window,{width:410,height:325,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Bio-chip Mini-Computer",buttons:(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Eject Case",icon:"eject",disabled:!f,onClick:function(){function v(){return p("eject_case")}return v}()})}),children:l&&f?(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{bold:!0,mb:2,children:[(0,e.createVNode)(1,"img",null,null,1,{src:"data:image/jpeg;base64,"+l.image,ml:0,mr:2,style:{"vertical-align":"middle",width:"32px"}}),l.name]}),(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Life",children:l.life}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Notes",children:l.notes}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Function",children:l.function}),!!u&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Tag",children:[(0,e.createComponentVNode)(2,t.Input,{width:"5.5rem",value:u,onEnter:function(){function v(){return p("tag",{newtag:m})}return v}(),onInput:function(){function v(b,C){return c(C)}return v}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:u===m,width:"20px",mb:"0",ml:"0.25rem",onClick:function(){function v(){return p("tag",{newtag:m})}return v}(),children:(0,e.createComponentVNode)(2,t.Icon,{name:"pen"})})]})]})],4):f?(0,e.createComponentVNode)(2,t.Box,{children:"This bio-chip case has no implant!"}):(0,e.createComponentVNode)(2,t.Box,{children:"Please insert a bio-chip casing!"})})})})}return y}()},96729:function(I,r,n){"use strict";r.__esModule=!0,r.Instrument=void 0;var e=n(96524),a=n(36121),t=n(17899),o=n(24674),s=n(45493),y=r.Instrument=function(){function i(l,f){var u=(0,t.useBackend)(f),d=u.act,m=u.data;return(0,e.createComponentVNode)(2,s.Window,{width:600,height:505,children:[(0,e.createComponentVNode)(2,V),(0,e.createComponentVNode)(2,s.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,k),(0,e.createComponentVNode)(2,p)]})})]})}return i}(),V=function(l,f){var u=(0,t.useBackend)(f),d=u.act,m=u.data,c=m.help;if(c)return(0,e.createComponentVNode)(2,o.Modal,{maxWidth:"75%",height:window.innerHeight*.75+"px",mx:"auto",py:"0",px:"0.5rem",children:(0,e.createComponentVNode)(2,o.Section,{height:"100%",title:"Help",level:"2",overflow:"auto",children:(0,e.createComponentVNode)(2,o.Box,{px:"0.5rem",mt:"-0.5rem",children:[(0,e.createVNode)(1,"h1",null,"Making a Song",16),(0,e.createVNode)(1,"p",null,[(0,e.createTextVNode)("Lines are a series of chords, separated by commas\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"(,)"}),(0,e.createTextVNode)(", each with notes separated by hyphens\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"(-)"}),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("Every note in a chord will play together, with the chord timed by the\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"tempo"}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("as defined above.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createTextVNode)("Notes are played by the\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"good",children:"names of the note"}),(0,e.createTextVNode)(", and optionally, the\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"average",children:"accidental"}),(0,e.createTextVNode)(", and/or the"),(0,e.createTextVNode)(" "),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"bad",children:"octave number"}),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("By default, every note is\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"average",children:"natural"}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("and in\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"bad",children:"octave 3"}),(0,e.createTextVNode)(". Defining a different state for either is remembered for each"),(0,e.createTextVNode)(" "),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"good",children:"note"}),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"ul",null,[(0,e.createVNode)(1,"li",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"Example:"}),(0,e.createTextVNode)("\xA0"),(0,e.createVNode)(1,"i",null,"C,D,E,F,G,A,B",16),(0,e.createTextVNode)(" will play a\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"good",children:"C"}),(0,e.createTextVNode)("\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"average",children:"major"}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("scale.")],0),(0,e.createVNode)(1,"li",null,[(0,e.createTextVNode)("After a note has an\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"average",children:"accidental"}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("or\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"bad",children:"octave"}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("placed, it will be remembered:\xA0"),(0,e.createVNode)(1,"i",null,"C,C4,C#,C3",16),(0,e.createTextVNode)(" is "),(0,e.createVNode)(1,"i",null,"C3,C4,C4#,C3#",16)],0)],4)],0),(0,e.createVNode)(1,"p",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"Chords"}),(0,e.createTextVNode)("\xA0can be played simply by seperating each note with a hyphen:"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,"A-C#,Cn-E,E-G#,Gn-B",16),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("A"),(0,e.createTextVNode)(" "),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"pause"}),(0,e.createTextVNode)("\xA0may be denoted by an empty chord: "),(0,e.createVNode)(1,"i",null,"C,E,,C,G",16),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("To make a chord be a different time, end it with /x, where the chord length will be length defined by\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"tempo / x"}),(0,e.createTextVNode)(",\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"eg:"}),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,"C,G/2,E/4",16),(0,e.createTextVNode)(".")],0),(0,e.createVNode)(1,"p",null,[(0,e.createTextVNode)("Combined, an example line is: "),(0,e.createVNode)(1,"i",null,"E-E4/4,F#/2,G#/8,B/8,E3-E4/4",16),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"ul",null,[(0,e.createVNode)(1,"li",null,"Lines may be up to 300 characters.",16),(0,e.createVNode)(1,"li",null,"A song may only contain up to 1,000 lines.",16)],4)],4),(0,e.createVNode)(1,"p",null,[(0,e.createTextVNode)("Lines are a series of chords, separated by commas\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"(,)"}),(0,e.createTextVNode)(", each with notes separated by hyphens\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"(-)"}),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("Every note in a chord will play together, with the chord timed by the\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"tempo"}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("as defined above.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createTextVNode)("Notes are played by the\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"good",children:"names of the note"}),(0,e.createTextVNode)(", and optionally, the\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"average",children:"accidental"}),(0,e.createTextVNode)(", and/or the"),(0,e.createTextVNode)(" "),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"bad",children:"octave number"}),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("By default, every note is\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"average",children:"natural"}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("and in\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"bad",children:"octave 3"}),(0,e.createTextVNode)(". Defining a different state for either is remembered for each"),(0,e.createTextVNode)(" "),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"good",children:"note"}),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"ul",null,[(0,e.createVNode)(1,"li",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"Example:"}),(0,e.createTextVNode)("\xA0"),(0,e.createVNode)(1,"i",null,"C,D,E,F,G,A,B",16),(0,e.createTextVNode)(" will play a\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"good",children:"C"}),(0,e.createTextVNode)("\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"average",children:"major"}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("scale.")],0),(0,e.createVNode)(1,"li",null,[(0,e.createTextVNode)("After a note has an\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"average",children:"accidental"}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("or\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"bad",children:"octave"}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("placed, it will be remembered:\xA0"),(0,e.createVNode)(1,"i",null,"C,C4,C#,C3",16),(0,e.createTextVNode)(" is "),(0,e.createVNode)(1,"i",null,"C3,C4,C4#,C3#",16)],0)],4)],0),(0,e.createVNode)(1,"p",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"Chords"}),(0,e.createTextVNode)("\xA0can be played simply by seperating each note with a hyphen:"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,"A-C#,Cn-E,E-G#,Gn-B",16),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("A"),(0,e.createTextVNode)(" "),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"pause"}),(0,e.createTextVNode)("\xA0may be denoted by an empty chord: "),(0,e.createVNode)(1,"i",null,"C,E,,C,G",16),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("To make a chord be a different time, end it with /x, where the chord length will be length defined by\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"tempo / x"}),(0,e.createTextVNode)(",\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"eg:"}),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,"C,G/2,E/4",16),(0,e.createTextVNode)(".")],0),(0,e.createVNode)(1,"p",null,[(0,e.createTextVNode)("Combined, an example line is: "),(0,e.createVNode)(1,"i",null,"E-E4/4,F#/2,G#/8,B/8,E3-E4/4",16),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"ul",null,[(0,e.createVNode)(1,"li",null,"Lines may be up to 300 characters.",16),(0,e.createVNode)(1,"li",null,"A song may only contain up to 1,000 lines.",16)],4)],4),(0,e.createVNode)(1,"h1",null,"Instrument Advanced Settings",16),(0,e.createVNode)(1,"ul",null,[(0,e.createVNode)(1,"li",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"label",children:"Type:"}),(0,e.createTextVNode)("\xA0Whether the instrument is legacy or synthesized."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("Legacy instruments have a collection of sounds that are selectively used depending on the note to play."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("Synthesized instruments use a base sound and change its pitch to match the note to play.")],4),(0,e.createVNode)(1,"li",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"label",children:"Current:"}),(0,e.createTextVNode)("\xA0Which instrument sample to play. Some instruments can be tuned to play different samples. Experiment!")],4),(0,e.createVNode)(1,"li",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"label",children:"Note Shift/Note Transpose:"}),(0,e.createTextVNode)("\xA0The pitch to apply to all notes of the song.")],4),(0,e.createVNode)(1,"li",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"label",children:"Sustain Mode:"}),(0,e.createTextVNode)("\xA0How a played note fades out."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("Linear sustain means a note will fade out at a constant rate."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("Exponential sustain means a note will fade out at an exponential rate, sounding smoother.")],4),(0,e.createVNode)(1,"li",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"label",children:"Volume Dropoff Threshold:"}),(0,e.createTextVNode)("\xA0The volume threshold at which a note is fully stopped.")],4),(0,e.createVNode)(1,"li",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"label",children:"Sustain indefinitely last held note:"}),(0,e.createTextVNode)("\xA0Whether the last note should be sustained indefinitely.")],4)],4),(0,e.createComponentVNode)(2,o.Button,{color:"grey",content:"Close",onClick:function(){function v(){return d("help")}return v}()})]})})})},k=function(l,f){var u=(0,t.useBackend)(f),d=u.act,m=u.data,c=m.lines,v=m.playing,b=m.repeat,C=m.maxRepeats,h=m.tempo,g=m.minTempo,N=m.maxTempo,x=m.tickLag,B=m.volume,L=m.minVolume,w=m.maxVolume,A=m.ready;return(0,e.createComponentVNode)(2,o.Section,{title:"Instrument",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{icon:"info",content:"Help",onClick:function(){function T(){return d("help")}return T}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"file",content:"New",onClick:function(){function T(){return d("newsong")}return T}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"upload",content:"Import",onClick:function(){function T(){return d("import")}return T}()})],4),children:[(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Playback",children:[(0,e.createComponentVNode)(2,o.Button,{selected:v,disabled:c.length===0||b<0,icon:"play",content:"Play",onClick:function(){function T(){return d("play")}return T}()}),(0,e.createComponentVNode)(2,o.Button,{disabled:!v,icon:"stop",content:"Stop",onClick:function(){function T(){return d("stop")}return T}()})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Repeat",children:(0,e.createComponentVNode)(2,o.Slider,{animated:!0,minValue:0,maxValue:C,value:b,stepPixelSize:59,onChange:function(){function T(E,O){return d("repeat",{new:O})}return T}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Tempo",children:(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,o.Button,{disabled:h>=N,content:"-",as:"span",mr:"0.5rem",onClick:function(){function T(){return d("tempo",{new:h+x})}return T}()}),(0,a.round)(600/h)," BPM",(0,e.createComponentVNode)(2,o.Button,{disabled:h<=g,content:"+",as:"span",ml:"0.5rem",onClick:function(){function T(){return d("tempo",{new:h-x})}return T}()})]})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Volume",children:(0,e.createComponentVNode)(2,o.Slider,{animated:!0,minValue:L,maxValue:w,value:B,stepPixelSize:6,onDrag:function(){function T(E,O){return d("setvolume",{new:O})}return T}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Status",children:A?(0,e.createComponentVNode)(2,o.Box,{color:"good",children:"Ready"}):(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"Instrument Definition Error!"})})]}),(0,e.createComponentVNode)(2,S)]})},S=function(l,f){var u=(0,t.useBackend)(f),d=u.act,m=u.data,c=m.allowedInstrumentNames,v=m.instrumentLoaded,b=m.instrument,C=m.canNoteShift,h=m.noteShift,g=m.noteShiftMin,N=m.noteShiftMax,x=m.sustainMode,B=m.sustainLinearDuration,L=m.sustainExponentialDropoff,w=m.legacy,A=m.sustainDropoffVolume,T=m.sustainHeldNote,E,O;return x===1?(E="Linear",O=(0,e.createComponentVNode)(2,o.Slider,{minValue:.1,maxValue:5,value:B,step:.5,stepPixelSize:85,format:function(){function P(R){return(0,a.round)(R*100)/100+" seconds"}return P}(),onChange:function(){function P(R,F){return d("setlinearfalloff",{new:F/10})}return P}()})):x===2&&(E="Exponential",O=(0,e.createComponentVNode)(2,o.Slider,{minValue:1.025,maxValue:10,value:L,step:.01,format:function(){function P(R){return(0,a.round)(R*1e3)/1e3+"% per decisecond"}return P}(),onChange:function(){function P(R,F){return d("setexpfalloff",{new:F})}return P}()})),c.sort(),(0,e.createComponentVNode)(2,o.Box,{my:-1,children:(0,e.createComponentVNode)(2,o.Collapsible,{mt:"1rem",mb:"0",title:"Advanced",children:(0,e.createComponentVNode)(2,o.Section,{mt:-1,children:[(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Type",children:w?"Legacy":"Synthesized"}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Current",children:v?(0,e.createComponentVNode)(2,o.Dropdown,{options:c,selected:b,width:"50%",onSelected:function(){function P(R){return d("switchinstrument",{name:R})}return P}()}):(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"None!"})}),!!(!w&&C)&&(0,e.createFragment)([(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Note Shift/Note Transpose",children:(0,e.createComponentVNode)(2,o.Slider,{minValue:g,maxValue:N,value:h,stepPixelSize:2,format:function(){function P(R){return R+" keys / "+(0,a.round)(R/12*100)/100+" octaves"}return P}(),onChange:function(){function P(R,F){return d("setnoteshift",{new:F})}return P}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Sustain Mode",children:[(0,e.createComponentVNode)(2,o.Dropdown,{options:["Linear","Exponential"],selected:E,onSelected:function(){function P(R){return d("setsustainmode",{new:R})}return P}()}),O]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Volume Dropoff Threshold",children:(0,e.createComponentVNode)(2,o.Slider,{animated:!0,minValue:.01,maxValue:100,value:A,stepPixelSize:6,onChange:function(){function P(R,F){return d("setdropoffvolume",{new:F})}return P}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Sustain indefinitely last held note",children:(0,e.createComponentVNode)(2,o.Button,{selected:T,icon:T?"toggle-on":"toggle-off",content:T?"Yes":"No",onClick:function(){function P(){return d("togglesustainhold")}return P}()})})],4)]}),(0,e.createComponentVNode)(2,o.Button,{icon:"redo",content:"Reset to Default",mt:"0.5rem",onClick:function(){function P(){return d("reset")}return P}()})]})})})},p=function(l,f){var u=(0,t.useBackend)(f),d=u.act,m=u.data,c=m.playing,v=m.lines,b=m.editing;return(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"Editor",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{disabled:!b||c,icon:"plus",content:"Add Line",onClick:function(){function C(){return d("newline",{line:v.length+1})}return C}()}),(0,e.createComponentVNode)(2,o.Button,{selected:!b,icon:b?"chevron-up":"chevron-down",onClick:function(){function C(){return d("edit")}return C}()})],4),children:!!b&&(v.length>0?(0,e.createComponentVNode)(2,o.LabeledList,{children:v.map(function(C,h){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:h+1,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{disabled:c,icon:"pen",onClick:function(){function g(){return d("modifyline",{line:h+1})}return g}()}),(0,e.createComponentVNode)(2,o.Button,{disabled:c,icon:"trash",onClick:function(){function g(){return d("deleteline",{line:h+1})}return g}()})],4),children:C},h)})}):(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"Song is empty."}))})}},33679:function(I,r,n){"use strict";r.__esModule=!0,r.ItemPixelShift=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),s=r.ItemPixelShift=function(){function y(V,k){var S=(0,a.useBackend)(k),p=S.act,i=S.data,l=i.pixel_x,f=i.pixel_y,u=i.max_shift_x,d=i.max_shift_y,m=i.random_drop_on;return(0,e.createComponentVNode)(2,o.Window,{width:250,height:160,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:"X-coordinates",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-left",title:"Shifts item leftwards.",disabled:l===-u,onClick:function(){function c(){return p("shift_left")}return c}()}),(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,lineHeight:1.7,width:"75px",unit:"pixels",stepPixelSize:6,value:l,minValue:-u,maxValue:u,onChange:function(){function c(v,b){return p("custom_x",{pixel_x:b})}return c}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-right",title:"Shifts item rightwards.",disabled:l===u,onClick:function(){function c(){return p("shift_right")}return c}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Y-coordinates",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-up",title:"Shifts item upwards.",disabled:f===d,onClick:function(){function c(){return p("shift_up")}return c}()}),(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,lineHeight:1.7,width:"75px",unit:"pixels",stepPixelSize:6,value:f,minValue:-d,maxValue:d,onChange:function(){function c(v,b){return p("custom_y",{pixel_y:b})}return c}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-down",title:"Shifts item downwards.",disabled:f===-d,onClick:function(){function c(){return p("shift_down")}return c}()})]})]})}),(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.Grid,{children:[(0,e.createComponentVNode)(2,t.Grid.Column,{children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,color:"brown",icon:"arrow-up",content:"Move to Top",title:"Tries to place an item on top of the others.",onClick:function(){function c(){return p("move_to_top")}return c}()})}),(0,e.createComponentVNode)(2,t.Grid.Column,{children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,color:m?"good":"bad",icon:"power-off",content:m?"Shift Enabled":"Shift Disabled",title:"Enables/Disables item pixel randomization on any drops.",onClick:function(){function c(){return p("toggle")}return c}()})})]})})]})})}return y}()},240:function(I,r,n){"use strict";r.__esModule=!0,r.KeyComboModal=void 0;var e=n(96524),a=n(41161),t=n(17899),o=n(24674),s=n(45493),y=n(15113),V=n(14299),k=function(u){return u.key!==a.KEY.Alt&&u.key!==a.KEY.Control&&u.key!==a.KEY.Shift&&u.key!==a.KEY.Escape},S={DEL:"Delete",DOWN:"South",END:"Southwest",HOME:"Northwest",INSERT:"Insert",LEFT:"West",PAGEDOWN:"Southeast",PAGEUP:"Northeast",RIGHT:"East",SPACEBAR:"Space",UP:"North"},p=3,i=function(u){var d="";if(u.altKey&&(d+="Alt"),u.ctrlKey&&(d+="Ctrl"),u.shiftKey&&!(u.keyCode>=48&&u.keyCode<=57)&&(d+="Shift"),u.location===p&&(d+="Numpad"),k(u))if(u.shiftKey&&u.keyCode>=48&&u.keyCode<=57){var m=u.keyCode-48;d+="Shift"+m}else{var c=u.key.toUpperCase();d+=S[c]||c}return d},l=r.KeyComboModal=function(){function f(u,d){var m=(0,t.useBackend)(d),c=m.act,v=m.data,b=v.init_value,C=v.large_buttons,h=v.message,g=h===void 0?"":h,N=v.title,x=v.timeout,B=(0,t.useLocalState)(d,"input",b),L=B[0],w=B[1],A=(0,t.useLocalState)(d,"binding",!0),T=A[0],E=A[1],O=function(){function F(j){if(!T){j.key===a.KEY.Enter&&c("submit",{entry:L}),j.key===a.KEY.Escape&&c("cancel");return}if(j.preventDefault(),k(j)){P(i(j)),E(!1);return}else if(j.key===a.KEY.Escape){P(b),E(!1);return}}return F}(),P=function(){function F(j){j!==L&&w(j)}return F}(),R=130+(g.length>30?Math.ceil(g.length/3):0)+(g.length&&C?5:0);return(0,e.createComponentVNode)(2,s.Window,{title:N,width:240,height:R,children:[x&&(0,e.createComponentVNode)(2,V.Loader,{value:x}),(0,e.createComponentVNode)(2,s.Window.Content,{onKeyDown:function(){function F(j){O(j)}return F}(),children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,children:[(0,e.createComponentVNode)(2,o.Autofocus),(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Box,{color:"label",children:g})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{disabled:T,content:T&&T!==null?"Awaiting input...":""+L,width:"100%",textAlign:"center",onClick:function(){function F(){P(b),E(!0)}return F}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,y.InputButtons,{input:L})})]})]})})]})}return f}()},53385:function(I,r,n){"use strict";r.__esModule=!0,r.KeycardAuth=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),s=r.KeycardAuth=function(){function y(V,k){var S=(0,a.useBackend)(k),p=S.act,i=S.data,l=(0,e.createComponentVNode)(2,t.Section,{title:"Keycard Authentication Device",children:(0,e.createComponentVNode)(2,t.Box,{children:"This device is used to trigger certain high security events. It requires the simultaneous swipe of two high-level ID cards."})});if(!i.swiping&&!i.busy)return(0,e.createComponentVNode)(2,o.Window,{width:540,height:280,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[l,(0,e.createComponentVNode)(2,t.Section,{title:"Choose Action",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Red Alert",children:(0,e.createComponentVNode)(2,t.Button,{icon:"exclamation-triangle",disabled:!i.redAvailable,onClick:function(){function u(){return p("triggerevent",{triggerevent:"Red Alert"})}return u}(),content:"Red Alert"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"ERT",children:(0,e.createComponentVNode)(2,t.Button,{icon:"broadcast-tower",onClick:function(){function u(){return p("triggerevent",{triggerevent:"Emergency Response Team"})}return u}(),content:"Call ERT"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Emergency Maint Access",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"door-open",onClick:function(){function u(){return p("triggerevent",{triggerevent:"Grant Emergency Maintenance Access"})}return u}(),content:"Grant"}),(0,e.createComponentVNode)(2,t.Button,{icon:"door-closed",onClick:function(){function u(){return p("triggerevent",{triggerevent:"Revoke Emergency Maintenance Access"})}return u}(),content:"Revoke"})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Emergency Station-Wide Access",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"door-open",onClick:function(){function u(){return p("triggerevent",{triggerevent:"Activate Station-Wide Emergency Access"})}return u}(),content:"Grant"}),(0,e.createComponentVNode)(2,t.Button,{icon:"door-closed",onClick:function(){function u(){return p("triggerevent",{triggerevent:"Deactivate Station-Wide Emergency Access"})}return u}(),content:"Revoke"})]})]})})]})});var f=(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Waiting for YOU to swipe your ID..."});return!i.hasSwiped&&!i.ertreason&&i.event==="Emergency Response Team"?f=(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Fill out the reason for your ERT request."}):i.hasConfirm?f=(0,e.createComponentVNode)(2,t.Box,{color:"green",children:"Request Confirmed!"}):i.isRemote?f=(0,e.createComponentVNode)(2,t.Box,{color:"orange",children:"Swipe your card to CONFIRM the remote request."}):i.hasSwiped&&(f=(0,e.createComponentVNode)(2,t.Box,{color:"orange",children:"Waiting for second person to confirm..."})),(0,e.createComponentVNode)(2,o.Window,{width:540,height:265,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[l,i.event==="Emergency Response Team"&&(0,e.createComponentVNode)(2,t.Section,{title:"Reason for ERT Call",children:(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{color:i.ertreason?"":"red",icon:i.ertreason?"check":"pencil-alt",content:i.ertreason?i.ertreason:"-----",disabled:i.busy,onClick:function(){function u(){return p("ert")}return u}()})})}),(0,e.createComponentVNode)(2,t.Section,{title:i.event,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-circle-left",content:"Back",disabled:i.busy||i.hasConfirm,onClick:function(){function u(){return p("reset")}return u}()}),children:f})]})})}return y}()},87609:function(I,r,n){"use strict";r.__esModule=!0,r.LaborClaimConsole=void 0;var e=n(96524),a=n(78234),t=n(17899),o=n(24674),s=n(45493),y=r.LaborClaimConsole=function(){function S(p,i){return(0,e.createComponentVNode)(2,s.Window,{width:315,height:470,children:(0,e.createComponentVNode)(2,s.Window.Content,{children:[(0,e.createComponentVNode)(2,V),(0,e.createComponentVNode)(2,k)]})})}return S}(),V=function(p,i){var l=(0,t.useBackend)(i),f=l.act,u=l.data,d=u.can_go_home,m=u.emagged,c=u.id_inserted,v=u.id_name,b=u.id_points,C=u.id_goal,h=u.unclaimed_points,g=m?0:1,N=m?"ERR0R":d?"Completed!":"Insufficient";return(0,e.createComponentVNode)(2,o.Section,{children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Status",children:!!c&&(0,e.createComponentVNode)(2,o.ProgressBar,{value:b/C,ranges:{good:[g,1/0],bad:[-1/0,g]},children:b+" / "+C+" "+N})||!!m&&"ERR0R COMPLETED?!@"||"No ID inserted"}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Shuttle controls",children:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,content:"Move shuttle",disabled:!d,onClick:function(){function x(){return f("move_shuttle")}return x}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Unclaimed points",children:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,content:"Claim points ("+h+")",disabled:!c||!h,onClick:function(){function x(){return f("claim_points")}return x}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Inserted ID",children:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,content:c?v:"-------------",onClick:function(){function x(){return f("handle_id")}return x}()})})]})})},k=function(p,i){var l=(0,t.useBackend)(i),f=l.data,u=f.ores;return(0,e.createComponentVNode)(2,o.Section,{title:"Material values",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:"Material"}),(0,e.createComponentVNode)(2,o.Table.Cell,{collapsing:!0,textAlign:"right",children:"Value"})]}),u.map(function(d){return(0,e.createComponentVNode)(2,o.Table.Row,{children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,a.toTitleCase)(d.ore)}),(0,e.createComponentVNode)(2,o.Table.Cell,{collapsing:!0,textAlign:"right",children:(0,e.createComponentVNode)(2,o.Box,{color:"label",inline:!0,children:d.value})})]},d.ore)})]})})}},14047:function(I,r,n){"use strict";r.__esModule=!0,r.LawManager=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),s=r.LawManager=function(){function S(p,i){var l=(0,a.useBackend)(i),f=l.act,u=l.data,d=u.isAdmin,m=u.isSlaved,c=u.isMalf,v=u.isAIMalf,b=u.view;return(0,e.createComponentVNode)(2,o.Window,{width:800,height:c?620:365,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[!!(d&&m)&&(0,e.createComponentVNode)(2,t.NoticeBox,{children:["This unit is slaved to ",m,"."]}),!!(c||v)&&(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Button,{content:"Law Management",selected:b===0,onClick:function(){function C(){return f("set_view",{set_view:0})}return C}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Lawsets",selected:b===1,onClick:function(){function C(){return f("set_view",{set_view:1})}return C}()})]}),b===0&&(0,e.createComponentVNode)(2,y),b===1&&(0,e.createComponentVNode)(2,V)]})})}return S}(),y=function(p,i){var l=(0,a.useBackend)(i),f=l.act,u=l.data,d=u.has_zeroth_laws,m=u.zeroth_laws,c=u.has_ion_laws,v=u.ion_laws,b=u.ion_law_nr,C=u.has_inherent_laws,h=u.inherent_laws,g=u.has_supplied_laws,N=u.supplied_laws,x=u.channels,B=u.channel,L=u.isMalf,w=u.isAdmin,A=u.zeroth_law,T=u.ion_law,E=u.inherent_law,O=u.supplied_law,P=u.supplied_law_position;return(0,e.createFragment)([!!d&&(0,e.createComponentVNode)(2,k,{title:"ERR_NULL_VALUE",laws:m,ctx:i}),!!c&&(0,e.createComponentVNode)(2,k,{title:b,laws:v,ctx:i}),!!C&&(0,e.createComponentVNode)(2,k,{title:"Inherent",laws:h,ctx:i}),!!g&&(0,e.createComponentVNode)(2,k,{title:"Supplied",laws:N,ctx:i}),(0,e.createComponentVNode)(2,t.Section,{title:"Statement Settings",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Statement Channel",children:x.map(function(R){return(0,e.createComponentVNode)(2,t.Button,{content:R.channel,selected:R.channel===B,onClick:function(){function F(){return f("law_channel",{law_channel:R.channel})}return F}()},R.channel)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"State Laws",children:(0,e.createComponentVNode)(2,t.Button,{content:"State Laws",onClick:function(){function R(){return f("state_laws")}return R}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Law Notification",children:(0,e.createComponentVNode)(2,t.Button,{content:"Notify",onClick:function(){function R(){return f("notify_laws")}return R}()})})]})}),!!L&&(0,e.createComponentVNode)(2,t.Section,{title:"Add Laws",children:(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{width:"10%",children:"Type"}),(0,e.createComponentVNode)(2,t.Table.Cell,{width:"60%",children:"Law"}),(0,e.createComponentVNode)(2,t.Table.Cell,{width:"10%",children:"Index"}),(0,e.createComponentVNode)(2,t.Table.Cell,{width:"20%",children:"Actions"})]}),!!(w&&!d)&&(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Zero"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:A}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"N/A"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:[(0,e.createComponentVNode)(2,t.Button,{content:"Edit",icon:"pencil-alt",onClick:function(){function R(){return f("change_zeroth_law")}return R}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Add",icon:"plus",onClick:function(){function R(){return f("add_zeroth_law")}return R}()})]})]}),(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Ion"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:T}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"N/A"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:[(0,e.createComponentVNode)(2,t.Button,{content:"Edit",icon:"pencil-alt",onClick:function(){function R(){return f("change_ion_law")}return R}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Add",icon:"plus",onClick:function(){function R(){return f("add_ion_law")}return R}()})]})]}),(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Inherent"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:E}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"N/A"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:[(0,e.createComponentVNode)(2,t.Button,{content:"Edit",icon:"pencil-alt",onClick:function(){function R(){return f("change_inherent_law")}return R}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Add",icon:"plus",onClick:function(){function R(){return f("add_inherent_law")}return R}()})]})]}),(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:O}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{content:P,onClick:function(){function R(){return f("change_supplied_law_position")}return R}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:[(0,e.createComponentVNode)(2,t.Button,{content:"Edit",icon:"pencil-alt",onClick:function(){function R(){return f("change_supplied_law")}return R}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Add",icon:"plus",onClick:function(){function R(){return f("add_supplied_law")}return R}()})]})]})]})})],0)},V=function(p,i){var l=(0,a.useBackend)(i),f=l.act,u=l.data,d=u.law_sets;return(0,e.createComponentVNode)(2,t.Box,{children:d.map(function(m){return(0,e.createComponentVNode)(2,t.Section,{title:m.name+" - "+m.header,buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Load Laws",icon:"download",onClick:function(){function c(){return f("transfer_laws",{transfer_laws:m.ref})}return c}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[m.laws.has_ion_laws>0&&m.laws.ion_laws.map(function(c){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:c.index,children:c.law},c.index)}),m.laws.has_zeroth_laws>0&&m.laws.zeroth_laws.map(function(c){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:c.index,children:c.law},c.index)}),m.laws.has_inherent_laws>0&&m.laws.inherent_laws.map(function(c){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:c.index,children:c.law},c.index)}),m.laws.has_supplied_laws>0&&m.laws.inherent_laws.map(function(c){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:c.index,children:c.law},c.index)})]})},m.name)})})},k=function(p,i){var l=(0,a.useBackend)(p.ctx),f=l.act,u=l.data,d=u.isMalf;return(0,e.createComponentVNode)(2,t.Section,{title:p.title+" Laws",children:(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{width:"10%",children:"Index"}),(0,e.createComponentVNode)(2,t.Table.Cell,{width:"69%",children:"Law"}),(0,e.createComponentVNode)(2,t.Table.Cell,{width:"21%",children:"State?"})]}),p.laws.map(function(m){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:m.index}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:m.law}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:[(0,e.createComponentVNode)(2,t.Button,{content:m.state?"Yes":"No",selected:m.state,onClick:function(){function c(){return f("state_law",{ref:m.ref,state_law:m.state?0:1})}return c}()}),!!d&&(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{content:"Edit",icon:"pencil-alt",onClick:function(){function c(){return f("edit_law",{edit_law:m.ref})}return c}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Delete",icon:"trash",color:"red",onClick:function(){function c(){return f("delete_law",{delete_law:m.ref})}return c}()})],4)]})]},m.law)})]})})}},26133:function(I,r,n){"use strict";r.__esModule=!0,r.ListInputModal=void 0;var e=n(96524),a=n(14299),t=n(15113),o=n(24674),s=n(17899),y=n(68100),V=n(45493),k=r.ListInputModal=function(){function i(l,f){var u=(0,s.useBackend)(f),d=u.act,m=u.data,c=m.items,v=c===void 0?[]:c,b=m.message,C=b===void 0?"":b,h=m.init_value,g=m.timeout,N=m.title,x=(0,s.useLocalState)(f,"selected",v.indexOf(h)),B=x[0],L=x[1],w=(0,s.useLocalState)(f,"searchBarVisible",v.length>10),A=w[0],T=w[1],E=(0,s.useLocalState)(f,"searchQuery",""),O=E[0],P=E[1],R=function(){function ne($){var se=Y.length-1;if($===y.KEY_DOWN)if(B===null||B===se){var Ne;L(0),(Ne=document.getElementById("0"))==null||Ne.scrollIntoView()}else{var be;L(B+1),(be=document.getElementById((B+1).toString()))==null||be.scrollIntoView()}else if($===y.KEY_UP)if(B===null||B===0){var xe;L(se),(xe=document.getElementById(se.toString()))==null||xe.scrollIntoView()}else{var Ie;L(B-1),(Ie=document.getElementById((B-1).toString()))==null||Ie.scrollIntoView()}}return ne}(),F=function(){function ne($){$!==B&&L($)}return ne}(),j=function(){function ne(){T(!1),T(!0)}return ne}(),U=function(){function ne($){var se=String.fromCharCode($),Ne=v.find(function(Ie){return Ie==null?void 0:Ie.toLowerCase().startsWith(se==null?void 0:se.toLowerCase())});if(Ne){var be,xe=v.indexOf(Ne);L(xe),(be=document.getElementById(xe.toString()))==null||be.scrollIntoView()}}return ne}(),_=function(){function ne($){var se;$!==O&&(P($),L(0),(se=document.getElementById("0"))==null||se.scrollIntoView())}return ne}(),K=function(){function ne(){T(!A),P("")}return ne}(),Y=v.filter(function(ne){return ne==null?void 0:ne.toLowerCase().includes(O.toLowerCase())}),G=330+Math.ceil(C.length/3);return A||setTimeout(function(){var ne;return(ne=document.getElementById(B.toString()))==null?void 0:ne.focus()},1),(0,e.createComponentVNode)(2,V.Window,{title:N,width:325,height:G,children:[g&&(0,e.createComponentVNode)(2,a.Loader,{value:g}),(0,e.createComponentVNode)(2,V.Window.Content,{onKeyDown:function(){function ne($){var se=window.event?$.which:$.keyCode;(se===y.KEY_DOWN||se===y.KEY_UP)&&($.preventDefault(),R(se)),se===y.KEY_ENTER&&($.preventDefault(),d("submit",{entry:Y[B]})),!A&&se>=y.KEY_A&&se<=y.KEY_Z&&($.preventDefault(),U(se)),se===y.KEY_ESCAPE&&($.preventDefault(),d("cancel"))}return ne}(),children:(0,e.createComponentVNode)(2,o.Section,{buttons:(0,e.createComponentVNode)(2,o.Button,{compact:!0,icon:A?"search":"font",selected:!0,tooltip:A?"Search Mode. Type to search or use arrow keys to select manually.":"Hotkey Mode. Type a letter to jump to the first match. Enter to select.",tooltipPosition:"left",onClick:function(){function ne(){return K()}return ne}()}),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,S,{filteredItems:Y,onClick:F,onFocusSearch:j,searchBarVisible:A,selected:B})}),(0,e.createComponentVNode)(2,o.Stack.Item,{m:0,children:A&&(0,e.createComponentVNode)(2,p,{filteredItems:Y,onSearch:_,searchQuery:O,selected:B})}),(0,e.createComponentVNode)(2,o.Stack.Item,{mt:.5,children:(0,e.createComponentVNode)(2,t.InputButtons,{input:Y[B]})})]})})})]})}return i}(),S=function(l,f){var u=(0,s.useBackend)(f),d=u.act,m=l.filteredItems,c=l.onClick,v=l.onFocusSearch,b=l.searchBarVisible,C=l.selected;return(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,tabIndex:0,children:m.map(function(h,g){return(0,e.createComponentVNode)(2,o.Button,{fluid:!0,color:"transparent",id:g,onClick:function(){function N(){return c(g)}return N}(),onDblClick:function(){function N(x){x.preventDefault(),d("submit",{entry:m[C]})}return N}(),onKeyDown:function(){function N(x){var B=window.event?x.which:x.keyCode;b&&B>=y.KEY_A&&B<=y.KEY_Z&&(x.preventDefault(),v())}return N}(),selected:g===C,style:{animation:"none",transition:"none"},children:h.replace(/^\w/,function(N){return N.toUpperCase()})},g)})})},p=function(l,f){var u=(0,s.useBackend)(f),d=u.act,m=l.filteredItems,c=l.onSearch,v=l.searchQuery,b=l.selected;return(0,e.createComponentVNode)(2,o.Input,{width:"100%",autoFocus:!0,autoSelect:!0,onEnter:function(){function C(h){h.preventDefault(),d("submit",{entry:m[b]})}return C}(),onInput:function(){function C(h,g){return c(g)}return C}(),placeholder:"Search...",value:v})}},95752:function(I,r,n){"use strict";r.__esModule=!0,r.MechBayConsole=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),s=r.MechBayConsole=function(){function y(V,k){var S=(0,a.useBackend)(k),p=S.act,i=S.data,l=i.recharge_port,f=l&&l.mech,u=f&&f.cell,d=f&&f.name;return(0,e.createComponentVNode)(2,o.Window,{width:400,height:150,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{title:d?"Mech status: "+d:"Mech status",textAlign:"center",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"sync",content:"Sync",onClick:function(){function m(){return p("reconnect")}return m}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Integrity",children:!l&&(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No power port detected. Please re-sync."})||!f&&(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No mech detected."})||(0,e.createComponentVNode)(2,t.ProgressBar,{value:f.health/f.maxhealth,ranges:{good:[.7,1/0],average:[.3,.7],bad:[-1/0,.3]}})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power",children:!l&&(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No power port detected. Please re-sync."})||!f&&(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No mech detected."})||!u&&(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No cell is installed."})||(0,e.createComponentVNode)(2,t.ProgressBar,{value:u.charge/u.maxcharge,ranges:{good:[.7,1/0],average:[.3,.7],bad:[-1/0,.3]},children:[(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:u.charge})," / "+u.maxcharge]})})]})})})})}return y}()},53668:function(I,r,n){"use strict";r.__esModule=!0,r.MechaControlConsole=void 0;var e=n(96524),a=n(36121),t=n(17899),o=n(24674),s=n(45493),y=n(78234),V=r.MechaControlConsole=function(){function k(S,p){var i=(0,t.useBackend)(p),l=i.act,f=i.data,u=f.beacons,d=f.stored_data;return d.length?(0,e.createComponentVNode)(2,s.Window,{width:420,height:500,children:(0,e.createComponentVNode)(2,s.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,o.Section,{title:"Log",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"window-close",onClick:function(){function m(){return l("clear_log")}return m}()}),children:d.map(function(m){return(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,o.Box,{color:"label",children:["(",m.time,")"]}),(0,e.createComponentVNode)(2,o.Box,{children:(0,y.decodeHtmlEntities)(m.message)})]},m.time)})})})}):(0,e.createComponentVNode)(2,s.Window,{width:420,height:500,children:(0,e.createComponentVNode)(2,s.Window.Content,{scrollable:!0,children:u.length&&u.map(function(m){return(0,e.createComponentVNode)(2,o.Section,{title:m.name,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{icon:"comment",onClick:function(){function c(){return l("send_message",{mt:m.uid})}return c}(),children:"Message"}),(0,e.createComponentVNode)(2,o.Button,{icon:"eye",onClick:function(){function c(){return l("get_log",{mt:m.uid})}return c}(),children:"View Log"}),(0,e.createComponentVNode)(2,o.Button.Confirm,{color:"red",content:"EMP",icon:"bomb",onClick:function(){function c(){return l("shock",{mt:m.uid})}return c}()})],4),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Health",children:(0,e.createComponentVNode)(2,o.ProgressBar,{ranges:{good:[m.maxHealth*.75,1/0],average:[m.maxHealth*.5,m.maxHealth*.75],bad:[-1/0,m.maxHealth*.5]},value:m.health,maxValue:m.maxHealth})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Cell Charge",children:m.cell&&(0,e.createComponentVNode)(2,o.ProgressBar,{ranges:{good:[m.cellMaxCharge*.75,1/0],average:[m.cellMaxCharge*.5,m.cellMaxCharge*.75],bad:[-1/0,m.cellMaxCharge*.5]},value:m.cellCharge,maxValue:m.cellMaxCharge})||(0,e.createComponentVNode)(2,o.NoticeBox,{children:"No Cell Installed"})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Air Tank",children:[m.airtank,"kPa"]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Pilot",children:m.pilot||"Unoccupied"}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Location",children:(0,y.toTitleCase)(m.location)||"Unknown"}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Active Equipment",children:m.active||"None"}),m.cargoMax&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Cargo Space",children:(0,e.createComponentVNode)(2,o.ProgressBar,{ranges:{bad:[m.cargoMax*.75,1/0],average:[m.cargoMax*.5,m.cargoMax*.75],good:[-1/0,m.cargoMax*.5]},value:m.cargoUsed,maxValue:m.cargoMax})})||null]})},m.name)})||(0,e.createComponentVNode)(2,o.NoticeBox,{children:"No mecha beacons found."})})})}return k}()},96467:function(I,r,n){"use strict";r.__esModule=!0,r.MedicalRecords=void 0;var e=n(96524),a=n(78234),t=n(17899),o=n(24674),s=n(99665),y=n(45493),V=n(68159),k=n(27527),S=n(84537),p={Minor:"lightgray",Medium:"good",Harmful:"average","Dangerous!":"bad","BIOHAZARD THREAT!":"darkred"},i={"*Deceased*":"deceased","*SSD*":"ssd","Physically Unfit":"physically_unfit",Disabled:"disabled"},l=function(w,A){(0,s.modalOpen)(w,"edit",{field:A.edit,value:A.value})},f=function(w,A){var T=w.args;return(0,e.createComponentVNode)(2,o.Section,{m:"-1rem",pb:"1.5rem",title:T.name||"Virus",children:(0,e.createComponentVNode)(2,o.Box,{mx:"0.5rem",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Number of stages",children:T.max_stages}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Spread",children:[T.spread_text," Transmission"]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Possible cure",children:T.cure}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Notes",children:T.desc}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Severity",color:p[T.severity],children:T.severity})]})})})},u=r.MedicalRecords=function(){function L(w,A){var T=(0,t.useBackend)(A),E=T.data,O=E.loginState,P=E.screen;if(!O.logged_in)return(0,e.createComponentVNode)(2,y.Window,{width:800,height:900,children:(0,e.createComponentVNode)(2,y.Window.Content,{children:(0,e.createComponentVNode)(2,k.LoginScreen)})});var R;return P===2?R=(0,e.createComponentVNode)(2,d):P===3?R=(0,e.createComponentVNode)(2,m):P===4?R=(0,e.createComponentVNode)(2,c):P===5?R=(0,e.createComponentVNode)(2,h):P===6&&(R=(0,e.createComponentVNode)(2,g)),(0,e.createComponentVNode)(2,y.Window,{width:800,height:900,children:[(0,e.createComponentVNode)(2,s.ComplexModal),(0,e.createComponentVNode)(2,y.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,V.LoginInfo),(0,e.createComponentVNode)(2,S.TemporaryNotice),(0,e.createComponentVNode)(2,B),R]})})]})}return L}(),d=function(w,A){var T=(0,t.useBackend)(A),E=T.act,O=T.data,P=O.records,R=(0,t.useLocalState)(A,"searchText",""),F=R[0],j=R[1],U=(0,t.useLocalState)(A,"sortId","name"),_=U[0],K=U[1],Y=(0,t.useLocalState)(A,"sortOrder",!0),G=Y[0],ne=Y[1];return(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{content:"Manage Records",icon:"wrench",ml:"0.25rem",onClick:function(){function $(){return E("screen",{screen:3})}return $}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Input,{fluid:!0,placeholder:"Search by Name, ID, Physical Status, or Mental Status",onInput:function(){function $(se,Ne){return j(Ne)}return $}()})})]})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,mt:.5,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,o.Table,{className:"MedicalRecords__list",children:[(0,e.createComponentVNode)(2,o.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,N,{id:"name",children:"Name"}),(0,e.createComponentVNode)(2,N,{id:"id",children:"ID"}),(0,e.createComponentVNode)(2,N,{id:"rank",children:"Assignment"}),(0,e.createComponentVNode)(2,N,{id:"p_stat",children:"Patient Status"}),(0,e.createComponentVNode)(2,N,{id:"m_stat",children:"Mental Status"})]}),P.filter((0,a.createSearch)(F,function($){return $.name+"|"+$.id+"|"+$.rank+"|"+$.p_stat+"|"+$.m_stat})).sort(function($,se){var Ne=G?1:-1;return $[_].localeCompare(se[_])*Ne}).map(function($){return(0,e.createComponentVNode)(2,o.Table.Row,{className:"MedicalRecords__listRow--"+i[$.p_stat],onClick:function(){function se(){return E("view_record",{view_record:$.ref})}return se}(),children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:"user"})," ",$.name]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:$.id}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:$.rank}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:$.p_stat}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:$.m_stat})]},$.id)})]})})})],4)},m=function(w,A){var T=(0,t.useBackend)(A),E=T.act;return(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,lineHeight:3,color:"translucent",icon:"download",content:"Backup to Disk",disabled:!0})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:[(0,e.createComponentVNode)(2,o.Button,{fluid:!0,lineHeight:3,color:"translucent",icon:"upload",content:"Upload from Disk",my:"0.5rem",disabled:!0})," "]}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Button.Confirm,{fluid:!0,lineHeight:3,icon:"trash",color:"translucent",content:"Delete All Medical Records",onClick:function(){function O(){return E("del_all")}return O}()})})]})})},c=function(w,A){var T=(0,t.useBackend)(A),E=T.act,O=T.data,P=O.medical,R=O.printing;return(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Stack.Item,{height:"235px",children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"General Data",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:R?"spinner":"print",disabled:R,iconSpin:!!R,content:"Print Record",ml:"0.5rem",onClick:function(){function F(){return E("print_record")}return F}()}),children:(0,e.createComponentVNode)(2,v)})}),!P||!P.fields?(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,color:"bad",children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,title:"Medical Data",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"pen",content:"Create New Record",onClick:function(){function F(){return E("new")}return F}()}),children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,o.Stack.Item,{bold:!0,grow:!0,textAlign:"center",fontSize:1.75,align:"center",color:"label",children:[(0,e.createComponentVNode)(2,o.Icon.Stack,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:"scroll",size:5,color:"gray"}),(0,e.createComponentVNode)(2,o.Icon,{name:"slash",size:5,color:"red"})]}),(0,e.createVNode)(1,"br"),"Medical records lost!"]})})})}):(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"Medical Data",buttons:(0,e.createComponentVNode)(2,o.Button.Confirm,{icon:"trash",disabled:!!P.empty,content:"Delete Medical Record",onClick:function(){function F(){return E("del_r")}return F}()}),children:(0,e.createComponentVNode)(2,b)})}),(0,e.createComponentVNode)(2,C)],4)],0)},v=function(w,A){var T=(0,t.useBackend)(A),E=T.data,O=E.general;return!O||!O.fields?(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,color:"bad",children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,children:"General records lost!"})})}):(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.LabeledList,{children:O.fields.map(function(P,R){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:P.field,children:[(0,e.createComponentVNode)(2,o.Box,{height:"20px",inline:!0,children:P.value}),!!P.edit&&(0,e.createComponentVNode)(2,o.Button,{icon:"pen",ml:"0.5rem",onClick:function(){function F(){return l(A,P)}return F}()})]},R)})})}),!!O.has_photos&&O.photos.map(function(P,R){return(0,e.createComponentVNode)(2,o.Stack.Item,{inline:!0,textAlign:"center",color:"label",ml:0,children:[(0,e.createVNode)(1,"img",null,null,1,{src:P,style:{width:"96px","margin-top":"2.5rem","margin-bottom":"0.5rem","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createVNode)(1,"br"),"Photo #",R+1]},R)})]})},b=function(w,A){var T=(0,t.useBackend)(A),E=T.act,O=T.data,P=O.medical;return!P||!P.fields?(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,color:"bad",children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,children:"Medical records lost!"})})}):(0,e.createComponentVNode)(2,o.Stack,{children:(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.LabeledList,{children:P.fields.map(function(R,F){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:R.field,preserveWhitespace:!0,children:[(0,a.decodeHtmlEntities)(R.value),!!R.edit&&(0,e.createComponentVNode)(2,o.Button,{icon:"pen",ml:"0.5rem",mb:R.line_break?"1rem":"initial",onClick:function(){function j(){return l(A,R)}return j}()})]},F)})})})})},C=function(w,A){var T=(0,t.useBackend)(A),E=T.act,O=T.data,P=O.medical;return(0,e.createComponentVNode)(2,o.Stack.Item,{height:"150px",children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"Comments/Log",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"comment",content:"Add Entry",onClick:function(){function R(){return(0,s.modalOpen)(A,"add_comment")}return R}()}),children:P.comments.length===0?(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"No comments found."}):P.comments.map(function(R,F){return(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,o.Box,{color:"label",inline:!0,children:R.header}),(0,e.createVNode)(1,"br"),R.text,(0,e.createComponentVNode)(2,o.Button,{icon:"comment-slash",color:"bad",ml:"0.5rem",onClick:function(){function j(){return E("del_c",{del_c:F+1})}return j}()})]},F)})})})},h=function(w,A){var T=(0,t.useBackend)(A),E=T.act,O=T.data,P=O.virus,R=(0,t.useLocalState)(A,"searchText",""),F=R[0],j=R[1],U=(0,t.useLocalState)(A,"sortId2","name"),_=U[0],K=U[1],Y=(0,t.useLocalState)(A,"sortOrder2",!0),G=Y[0],ne=Y[1];return(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Input,{ml:"0.25rem",fluid:!0,placeholder:"Search by Name, Max Stages, or Severity",onInput:function(){function $(se,Ne){return j(Ne)}return $}()})}),(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,mt:.5,children:(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,o.Table,{className:"MedicalRecords__list",children:[(0,e.createComponentVNode)(2,o.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,x,{id:"name",children:"Name"}),(0,e.createComponentVNode)(2,x,{id:"max_stages",children:"Max Stages"}),(0,e.createComponentVNode)(2,x,{id:"severity",children:"Severity"})]}),P.filter((0,a.createSearch)(F,function($){return $.name+"|"+$.max_stages+"|"+$.severity})).sort(function($,se){var Ne=G?1:-1;return $[_].localeCompare(se[_])*Ne}).map(function($){return(0,e.createComponentVNode)(2,o.Table.Row,{className:"MedicalRecords__listVirus--"+$.severity,onClick:function(){function se(){return E("vir",{vir:$.D})}return se}(),children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:"virus"})," ",$.name]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:$.max_stages}),(0,e.createComponentVNode)(2,o.Table.Cell,{color:p[$.severity],children:$.severity})]},$.id)})]})})})})],4)},g=function(w,A){var T=(0,t.useBackend)(A),E=T.act,O=T.data,P=O.medbots;return P.length===0?(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,color:"bad",children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,o.Stack.Item,{bold:!0,grow:!0,textAlign:"center",fontSize:1.75,align:"center",color:"label",children:[(0,e.createComponentVNode)(2,o.Icon.Stack,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:"robot",size:5,color:"gray"}),(0,e.createComponentVNode)(2,o.Icon,{name:"slash",size:5,color:"red"})]}),(0,e.createVNode)(1,"br"),"There are no Medibots."]})})})}):(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,o.Table,{className:"MedicalRecords__list",children:[(0,e.createComponentVNode)(2,o.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Name"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Area"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Status"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Chemicals"})]}),P.map(function(R){return(0,e.createComponentVNode)(2,o.Table.Row,{className:"MedicalRecords__listMedbot--"+R.on,children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:"medical"})," ",R.name]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:[R.area||"Unknown"," (",R.x,", ",R.y,")"]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:R.on?(0,e.createComponentVNode)(2,o.Box,{color:"good",children:"Online"}):(0,e.createComponentVNode)(2,o.Box,{color:"average",children:"Offline"})}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:R.use_beaker?"Reservoir: "+R.total_volume+"/"+R.maximum_volume:"Using internal synthesizer"})]},R.id)})]})})})},N=function(w,A){var T=(0,t.useLocalState)(A,"sortId","name"),E=T[0],O=T[1],P=(0,t.useLocalState)(A,"sortOrder",!0),R=P[0],F=P[1],j=w.id,U=w.children;return(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,color:E!==j&&"transparent",onClick:function(){function _(){E===j?F(!R):(O(j),F(!0))}return _}(),children:[U,E===j&&(0,e.createComponentVNode)(2,o.Icon,{name:R?"sort-up":"sort-down",ml:"0.25rem;"})]})})},x=function(w,A){var T=(0,t.useLocalState)(A,"sortId2","name"),E=T[0],O=T[1],P=(0,t.useLocalState)(A,"sortOrder2",!0),R=P[0],F=P[1],j=w.id,U=w.children;return(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,color:E!==j&&"transparent",onClick:function(){function _(){E===j?F(!R):(O(j),F(!0))}return _}(),children:[U,E===j&&(0,e.createComponentVNode)(2,o.Icon,{name:R?"sort-up":"sort-down",ml:"0.25rem;"})]})})},B=function(w,A){var T=(0,t.useBackend)(A),E=T.act,O=T.data,P=O.screen,R=O.general;return(0,e.createComponentVNode)(2,o.Stack.Item,{m:0,children:(0,e.createComponentVNode)(2,o.Tabs,{children:[(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"list",selected:P===2,onClick:function(){function F(){E("screen",{screen:2})}return F}(),children:"List Records"}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"database",selected:P===5,onClick:function(){function F(){E("screen",{screen:5})}return F}(),children:"Virus Database"}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"plus-square",selected:P===6,onClick:function(){function F(){return E("screen",{screen:6})}return F}(),children:"Medibot Tracking"}),P===3&&(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"wrench",selected:P===3,children:"Record Maintenance"}),P===4&&R&&!R.empty&&(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"file",selected:P===4,children:["Record: ",R.fields[0].value]})]})})};(0,s.modalRegisterBodyOverride)("virus",f)},96415:function(I,r,n){"use strict";r.__esModule=!0,r.MiniGamesMenu=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),s=r.MiniGamesMenu=function(){function y(V,k){var S=(0,a.useBackend)(k),p=S.act,i=S.data,l=i.spawners||[],f=i.thunderdome_eligible,u=i.notifications_enabled;return(0,e.createComponentVNode)(2,o.Window,{width:700,height:600,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"power-off",tooltip:f?"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0443\u0447\u0430\u0441\u0442\u0438\u0435 \u0432 \u0431\u043E\u0435\u0432\u044B\u0445 \u043C\u0438\u043D\u0438-\u0438\u0433\u0440\u0430\u0445":"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0443\u0447\u0430\u0441\u0442\u0438\u0435 \u0432 \u0431\u043E\u0435\u0432\u044B\u0445 \u043C\u0438\u043D\u0438-\u0438\u0433\u0440\u0430\u0445",tooltipPosition:"bottom",content:f?"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0443\u0447\u0430\u0441\u0442\u0438\u0435 \u0432 \u0431\u043E\u0435\u0432\u044B\u0445 \u043C\u0438\u043D\u0438-\u0438\u0433\u0440\u0430\u0445":"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0443\u0447\u0430\u0441\u0442\u0438\u0435 \u0432 \u0431\u043E\u0435\u0432\u044B\u0445 \u043C\u0438\u043D\u0438-\u0438\u0433\u0440\u0430\u0445",color:f?"good":"bad",onClick:function(){function d(){return p("toggle_minigames")}return d}()}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"power-off",tooltip:u?"\u041E\u0442\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0443\u0432\u0435\u0434\u043E\u043C\u043B\u0435\u043D\u0438\u044F \u043E \u0431\u043E\u0435\u0432\u044B\u0445 \u043C\u0438\u043D\u0438-\u0438\u0433\u0440\u0430\u0445":"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0443\u0432\u0435\u0434\u043E\u043C\u043B\u0435\u043D\u0438\u044F \u043E \u0431\u043E\u0435\u0432\u044B\u0445 \u043C\u0438\u043D\u0438-\u0438\u0433\u0440\u0430\u0445",tooltipPosition:"bottom",content:u?"\u041E\u0442\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0443\u0432\u0435\u0434\u043E\u043C\u043B\u0435\u043D\u0438\u044F \u043E \u0431\u043E\u0435\u0432\u044B\u0445 \u043C\u0438\u043D\u0438-\u0438\u0433\u0440\u0430\u0445":"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0443\u0432\u0435\u0434\u043E\u043C\u043B\u0435\u043D\u0438\u044F \u043E \u0431\u043E\u0435\u0432\u044B\u0445 \u043C\u0438\u043D\u0438-\u0438\u0433\u0440\u0430\u0445",color:u?"good":"bad",onClick:function(){function d(){return p("toggle_notifications")}return d}()}),(0,e.createComponentVNode)(2,t.Section,{children:l.map(function(d){return(0,e.createComponentVNode)(2,t.Section,{mb:.5,title:d.name,level:2,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{icon:"chevron-circle-right",content:"Jump",onClick:function(){function m(){return p("jump",{ID:d.uids})}return m}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"chevron-circle-right",content:"Start",onClick:function(){function m(){return p("spawn",{ID:d.uids})}return m}()})],4),children:[(0,e.createComponentVNode)(2,t.Box,{style:{"white-space":"pre-wrap"},mb:1,fontSize:"16px",children:d.desc}),!!d.fluff&&(0,e.createComponentVNode)(2,t.Box,{style:{"white-space":"pre-wrap"},textColor:"#878787",fontSize:"14px",children:d.fluff}),!!d.important_info&&(0,e.createComponentVNode)(2,t.Box,{style:{"white-space":"pre-wrap"},mt:1,bold:!0,color:"red",fontSize:"18px",children:d.important_info})]},d.name)})})]})})}return y}()},14162:function(I,r,n){"use strict";r.__esModule=!0,r.MiningVendor=void 0;var e=n(96524),a=n(78234),t=n(17899),o=n(24674),s=n(45493),y=["title","items"];function V(u,d){if(u==null)return{};var m={},c=Object.keys(u),v,b;for(b=0;b=0)&&(m[v]=u[v]);return m}var k={Alphabetical:function(){function u(d,m){return d-m}return u}(),Availability:function(){function u(d,m){return-(d.affordable-m.affordable)}return u}(),Price:function(){function u(d,m){return d.price-m.price}return u}()},S=r.MiningVendor=function(){function u(d,m){return(0,e.createComponentVNode)(2,s.Window,{width:400,height:450,children:(0,e.createComponentVNode)(2,s.Window.Content,{className:"Layout__content--flexColumn",children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,p),(0,e.createComponentVNode)(2,l),(0,e.createComponentVNode)(2,i)]})})})}return u}(),p=function(d,m){var c=(0,t.useBackend)(m),v=c.act,b=c.data,C=b.has_id,h=b.id;return(0,e.createComponentVNode)(2,o.NoticeBox,{success:C,children:C?(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Box,{inline:!0,verticalAlign:"middle",style:{float:"left"},children:["Logged in as ",h.name,".",(0,e.createVNode)(1,"br"),"You have ",h.points.toLocaleString("en-US")," points."]}),(0,e.createComponentVNode)(2,o.Button,{icon:"eject",content:"Eject ID",style:{float:"right"},onClick:function(){function g(){return v("logoff")}return g}()}),(0,e.createComponentVNode)(2,o.Box,{style:{clear:"both"}})],4):"Please insert an ID in order to make purchases."})},i=function(d,m){var c=(0,t.useBackend)(m),v=c.act,b=c.data,C=b.has_id,h=b.id,g=b.items,N=(0,t.useLocalState)(m,"search",""),x=N[0],B=N[1],L=(0,t.useLocalState)(m,"sort","Alphabetical"),w=L[0],A=L[1],T=(0,t.useLocalState)(m,"descending",!1),E=T[0],O=T[1],P=(0,a.createSearch)(x,function(j){return j[0]}),R=!1,F=Object.entries(g).map(function(j,U){var _=Object.entries(j[1]).filter(P).map(function(K){return K[1].affordable=C&&h.points>=K[1].price,K[1]}).sort(k[w]);if(_.length!==0)return E&&(_=_.reverse()),R=!0,(0,e.createComponentVNode)(2,f,{title:j[0],items:_},j[0])});return(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,children:R?F:(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"No items matching your criteria was found!"})})})},l=function(d,m){var c=(0,t.useLocalState)(m,"search",""),v=c[0],b=c[1],C=(0,t.useLocalState)(m,"sort",""),h=C[0],g=C[1],N=(0,t.useLocalState)(m,"descending",!1),x=N[0],B=N[1];return(0,e.createComponentVNode)(2,o.Box,{children:(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Input,{placeholder:"Search by item name..",width:"100%",onInput:function(){function L(w,A){return b(A)}return L}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"30%",children:(0,e.createComponentVNode)(2,o.Dropdown,{selected:"Alphabetical",options:Object.keys(k),width:"100%",onSelected:function(){function L(w){return g(w)}return L}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{icon:x?"arrow-down":"arrow-up",height:"21px",tooltip:x?"Descending order":"Ascending order",tooltipPosition:"bottom-start",onClick:function(){function L(){return B(!x)}return L}()})})]})})},f=function(d,m){var c=(0,t.useBackend)(m),v=c.act,b=c.data,C=d.title,h=d.items,g=V(d,y);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Collapsible,Object.assign({open:!0,title:C},g,{children:h.map(function(N){return(0,e.createComponentVNode)(2,o.ImageButton,{bold:!0,asset:!0,color:"brown",imageSize:"64px",image:N.imageId,imageAsset:"mining_vendor64x64",content:N.name,children:(0,e.createComponentVNode)(2,o.ImageButton.Item,{bold:!0,horizontal:!0,width:"64px",fontSize:1,content:N.price,icon:"shopping-cart",iconSize:1,iconColor:!b.has_id||b.id.points=0)&&(L[A]=x[A]);return L}var p=r.Multitool=function(){function x(B,L){var w=(0,t.useBackend)(L),A=w.act,T=w.data,E=T.multitoolMenuId,O=T.buffer,P=T.bufferName,R=T.bufferTag,F=T.canBufferHaveTag,j=T.isAttachedAlreadyInBuffer,U=T.attachedName,_=E!=="default_no_machine",K=function(){function Y(G){switch(G){case"default_no_machine":return(0,e.createComponentVNode)(2,m);case"no_options":return(0,e.createComponentVNode)(2,m);case"access_denied":return(0,e.createComponentVNode)(2,c);case"tag_only":return(0,e.createComponentVNode)(2,v);case"multiple_tags":return(0,e.createComponentVNode)(2,C);case"frequency_and_tag":return(0,e.createFragment)([(0,e.createComponentVNode)(2,b),(0,e.createComponentVNode)(2,v)],4);case"air_sensor":return(0,e.createFragment)([(0,e.createComponentVNode)(2,b),(0,e.createComponentVNode)(2,v),(0,e.createComponentVNode)(2,h)],4);case"general_air_control":return(0,e.createFragment)([(0,e.createComponentVNode)(2,b),(0,e.createComponentVNode)(2,g)],4);case"large_tank_control":return(0,e.createFragment)([(0,e.createComponentVNode)(2,b),(0,e.createComponentVNode)(2,N),(0,e.createComponentVNode)(2,g)],4);default:return"WE SHOULDN'T BE HERE!"}}return Y}();return(0,e.createComponentVNode)(2,s.Window,{width:510,height:420,children:(0,e.createComponentVNode)(2,s.Window.Content,{children:(0,e.createComponentVNode)(2,o.Flex,{direction:"column",height:"100%",children:[(0,e.createComponentVNode)(2,o.Flex.Item,{style:{"overflow-x":"hidden","overflow-y":"auto"},grow:1,shrink:1,basis:0,children:(0,e.createComponentVNode)(2,o.Section,{title:"Configuration menu",py:.3,children:[(0,e.createComponentVNode)(2,i,{iconName:"tools",machineName:U,noMachine:E==="default_no_machine",noMachineText:"No machine attached"}),K(E)]})}),(0,e.createComponentVNode)(2,o.Flex.Item,{grow:0,shrink:0,children:(0,e.createComponentVNode)(2,o.Divider)}),(0,e.createComponentVNode)(2,o.Flex.Item,{grow:0,shrink:0,children:(0,e.createComponentVNode)(2,o.Section,{title:"Multitool buffer",mb:.9,py:.3,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{content:j?"Added":"Add machine",icon:"save",disabled:!_||j,onClick:function(){function Y(){return A("buffer_add")}return Y}()}),(0,e.createComponentVNode)(2,o.Button,{mr:1,content:"Flush",icon:"times-circle",color:"red",disabled:!O,onClick:function(){function Y(){return A("buffer_flush")}return Y}()})],4),children:[(0,e.createComponentVNode)(2,i,{iconName:"tools",machineName:P,noMachine:!O,noMachineElem:(0,e.createComponentVNode)(2,l,{text:""})}),!!O&&(0,e.createComponentVNode)(2,d,{mt:1.1,label:"ID tag",compactLabel:!0,wrapContent:F?(0,e.createComponentVNode)(2,f,{text:R,defaultText:"",color:"silver"}):(0,e.createComponentVNode)(2,o.Box,{as:"span",fontSize:"0.9rem",color:"red",italic:!0,nowrap:!0,children:"Not supported"})})]})})]})})})}return x}(),i=function(B,L){var w=B.iconName,A=B.machineName,T=B.noMachine,E=B.noMachineText,O=B.noMachineElem,P="Unknown machine",R=T?E:A||"Unknown machine",F=R===E,j=R===E||R===P;return T&&O?O:(0,e.createComponentVNode)(2,o.Flex,{mt:.1,mb:1.9,children:[!T&&(0,e.createComponentVNode)(2,o.Flex.Item,{grow:0,shrink:0,align:"center",children:(0,e.createComponentVNode)(2,o.Icon,{mr:1,size:1.1,name:w})}),(0,e.createComponentVNode)(2,o.Flex.Item,{grow:1,shrink:1,basis:0,wordWrap:"break-word",children:(0,e.createComponentVNode)(2,o.Box,{as:"span",wordWrap:"break-word",color:F?"label":"silver",fontSize:"1.1rem",bold:!0,italic:j,children:R})})]})},l=function(B,L){var w=B.text;return(0,e.createComponentVNode)(2,o.Box,{as:"span",fontSize:"0.9rem",color:"yellow",italic:!0,nowrap:!0,children:w})},f=function(B,L){var w=B.text,A=B.defaultText,T=S(B,y);return w?(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Box,Object.assign({as:"span",wordWrap:"break-word"},T,{children:w}))):(0,e.createComponentVNode)(2,l,{text:A})},u=function(B,L){var w=B.noConfirm,A=w===void 0?!1:w,T=S(B,V);return A?(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Button,Object.assign({},T))):(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Button.Confirm,Object.assign({},T)))},d=function(B,L){var w=B.label,A=B.wrapContent,T=B.noWrapContent,E=B.compactLabel,O=E===void 0?!1:E,P=S(B,k);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Flex,Object.assign({my:.5,mr:"0.5%",spacing:1,align:"center"},P,{children:[(0,e.createComponentVNode)(2,o.Flex.Item,{grow:O?0:1,shrink:0,textOverflow:"ellipsis",overflow:"hidden",basis:O?"auto":0,maxWidth:O?"none":20,color:"label",nowrap:!0,children:w}),(0,e.createComponentVNode)(2,o.Flex.Item,{grow:1,shrink:1,basis:0,textAlign:"center",wordWrap:"break-word",children:A}),(0,e.createComponentVNode)(2,o.Flex.Item,{grow:.1}),(0,e.createComponentVNode)(2,o.Flex.Item,{grow:0,shrink:0,nowrap:!0,children:T})]})))},m=function(B,L){var w=(0,t.useBackend)(L),A=w.act,T=w.data;return(0,e.createComponentVNode)(2,o.Box,{mt:1.5,fontSize:"0.9rem",color:"silver",italic:!0,children:"No options"})},c=function(B,L){var w=(0,t.useBackend)(L),A=w.act,T=w.data;return(0,e.createComponentVNode)(2,o.Box,{fontSize:"1.1rem",color:"red",bold:!0,italic:!0,children:"ACCESS DENIED"})},v=function(B,L){var w=(0,t.useBackend)(L),A=w.act,T=w.data,E=T.attachedTag;return(0,e.createComponentVNode)(2,d,{label:"ID tag",wrapContent:(0,e.createComponentVNode)(2,f,{text:E,defaultText:"",color:"silver"}),noWrapContent:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{content:"Set",icon:"wrench",onClick:function(){function O(){return A("set_tag")}return O}()}),(0,e.createComponentVNode)(2,o.Button,{content:"Clear",icon:"times-circle",color:"red",disabled:!E,onClick:function(){function O(){return A("clear_tag")}return O}()})],4)})},b=function(B,L){var w=(0,t.useBackend)(L),A=w.act,T=w.data,E=T.frequency,O=T.minFrequency,P=T.maxFrequency,R=T.canReset;return(0,e.createComponentVNode)(2,d,{label:"Frequency",noWrapContent:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.NumberInput,{animate:!0,unit:"kHz",step:.1,stepPixelSize:10,minValue:O/10,maxValue:P/10,value:E/10,format:function(){function F(j){return(0,a.toFixed)(j,1)}return F}(),onChange:function(){function F(j,U){return A("set_frequency",{frequency:U*10})}return F}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"undo",content:"",disabled:!R,tooltip:"Reset",onClick:function(){function F(){return A("reset_frequency")}return F}()})],4)})},C=function(B,L){var w=(0,t.useBackend)(L),A=w.act,T=w.data,E=T.attachedTags;return(0,e.createComponentVNode)(2,o.Section,{mt:1.7,ml:.5,mr:1,px:.5,title:"Linked tags",buttons:(0,e.createComponentVNode)(2,o.Button,{mr:1,pl:2.1,content:"Add tag",icon:"plus",iconRight:!0,onClick:function(){function O(){return A("add_tag")}return O}()}),children:E.map(function(O,P){return(0,e.createComponentVNode)(2,d,{mr:0,label:(0,e.createComponentVNode)(2,o.Icon,{name:"wave-square"}),compactLabel:!0,wrapContent:(0,e.createComponentVNode)(2,o.Flex,{align:"center",spacing:1,children:(0,e.createComponentVNode)(2,o.Flex.Item,{grow:1,shrink:1,basis:0,color:"silver",wordWrap:"break-word",children:O})}),noWrapContent:(0,e.createComponentVNode)(2,o.Flex,{children:(0,e.createComponentVNode)(2,o.Flex.Item,{grow:0,shrink:0,children:(0,e.createComponentVNode)(2,o.Button,{icon:"minus",color:"red",onClick:function(){function R(){return A("remove_tag",{tag_index:P})}return R}()})})})},P)})})},h=function(B,L){var w=(0,t.useBackend)(L),A=w.act,T=w.data,E=T.bolts,O=T.pressureCheck,P=T.temperatureCheck,R=T.oxygenCheck,F=T.toxinsCheck,j=T.nitrogenCheck,U=T.carbonDioxideCheck,_=[{bitflag:1,checked:O,label:"Monitor pressure"},{bitflag:2,checked:P,label:"Monitor temperature"},{bitflag:4,checked:R,label:"Monitor oxygen concentration"},{bitflag:8,checked:F,label:"Monitor plasma concentration"},{bitflag:16,checked:j,label:"Monitor nitrogen concentration"},{bitflag:32,checked:U,label:"Monitor carbon dioxide concentration"}];return(0,e.createFragment)([(0,e.createComponentVNode)(2,d,{label:"Floor bolts",noWrapContent:(0,e.createComponentVNode)(2,o.Button,{icon:E?"check":"times",selected:E,content:E?"YES":"NO",onClick:function(){function K(){return A("toggle_bolts")}return K}()})}),_.map(function(K){return(0,e.createComponentVNode)(2,d,{label:K.label,noWrapContent:(0,e.createComponentVNode)(2,o.Button.Checkbox,{checked:K.checked,onClick:function(){function Y(){return A("toggle_flag",{bitflag:K.bitflag})}return Y}()})},K.bitflag)})],0)},g=function(B,L){var w=(0,t.useBackend)(L),A=w.act,T=w.data,E=T.sensors;return(0,e.createComponentVNode)(2,o.Section,{mt:1.7,ml:.5,mr:1,px:.5,title:"Sensors",buttons:(0,e.createComponentVNode)(2,o.Button,{mr:1,pl:2.1,content:"Add sensor",icon:"plus",iconRight:!0,onClick:function(){function O(){return A("add_sensor")}return O}()}),children:[(0,e.createComponentVNode)(2,d,{mr:0,compactLabel:!0,wrapContent:(0,e.createComponentVNode)(2,o.Flex,{children:[(0,e.createComponentVNode)(2,o.Flex.Item,{width:1}),(0,e.createComponentVNode)(2,o.Flex.Item,{grow:1,shrink:1,basis:0,color:"label",nowrap:!0,bold:!0,children:"ID tag"}),(0,e.createComponentVNode)(2,o.Flex.Item,{grow:1,shrink:1,basis:0,color:"label",nowrap:!0,bold:!0,children:"Label"}),(0,e.createComponentVNode)(2,o.Flex.Item,{width:11.3})]})}),Object.keys(E).map(function(O){return(0,e.createComponentVNode)(2,d,{mr:0,label:(0,e.createComponentVNode)(2,o.Icon,{name:"wave-square"}),compactLabel:!0,wrapContent:(0,e.createComponentVNode)(2,o.Flex,{align:"center",spacing:1,children:[(0,e.createComponentVNode)(2,o.Flex.Item,{grow:1,shrink:1,basis:0,color:"silver",wordWrap:"break-word",children:O}),E[O]?(0,e.createComponentVNode)(2,o.Flex.Item,{grow:1,shrink:1,basis:0,color:"silver",wordWrap:"break-word",children:E[O]}):(0,e.createComponentVNode)(2,o.Flex.Item,{grow:1,shrink:1,basis:0,fontSize:"0.9rem",color:"yellow",italic:!0,nowrap:!0,children:""})]}),noWrapContent:(0,e.createComponentVNode)(2,o.Flex,{children:[(0,e.createComponentVNode)(2,o.Flex.Item,{grow:0,shrink:0,children:[(0,e.createComponentVNode)(2,o.Button,{content:"Label",icon:"edit",onClick:function(){function P(){return A("change_label",{sensor_tag:O})}return P}()}),(0,e.createComponentVNode)(2,o.Button,{content:"Label",icon:"times-circle",color:"orange",disabled:!E[O],onClick:function(){function P(){return A("clear_label",{sensor_tag:O})}return P}()})]}),(0,e.createComponentVNode)(2,o.Flex.Item,{width:.5}),(0,e.createComponentVNode)(2,o.Flex.Item,{grow:0,shrink:0,children:(0,e.createComponentVNode)(2,o.Button,{px:1.2,icon:"minus",color:"red",onClick:function(){function P(){return A("del_sensor",{sensor_tag:O})}return P}()})})]})},O)})]})},N=function(B,L){var w=(0,t.useBackend)(L),A=w.act,T=w.data,E=T.inputTag,O=T.outputTag,P=T.bufferTag,R=T.bufferFitsInput,F=T.bufferFitsOutput,j=T.doNotLinkAndNotify;return(0,e.createFragment)([(0,e.createComponentVNode)(2,d,{label:"Input",labelWidth:6,wrapContent:(0,e.createComponentVNode)(2,f,{text:E,defaultText:"",color:"silver"}),noWrapContent:(0,e.createFragment)([(0,e.createComponentVNode)(2,u,{noConfirm:j||!E,confirmContent:"This will change the intput device. Confirm?",confirmColor:"orange",content:"Link buffer",icon:"link",selected:E&&P===E,disabled:!R,onClick:function(){function U(){return A("link_input")}return U}()}),(0,e.createComponentVNode)(2,o.Button.Confirm,{confirmContent:"This will unlink the intput device. Confirm?",confirmColor:"orange",content:"Unlink",icon:"unlink",color:"red",disabled:!E,onClick:function(){function U(){return A("unlink_input")}return U}()})],4)}),(0,e.createComponentVNode)(2,d,{label:"Output",labelWidth:6,wrapContent:(0,e.createComponentVNode)(2,f,{text:O,defaultText:"",color:"silver"}),noWrapContent:(0,e.createFragment)([(0,e.createComponentVNode)(2,u,{noConfirm:j||!O,confirmContent:"This will change the output device. Confirm?",confirmColor:"orange",content:"Link buffer",icon:"link",selected:O&&P===O,disabled:!F,onClick:function(){function U(){return A("link_output")}return U}()}),(0,e.createComponentVNode)(2,o.Button.Confirm,{confirmContent:"This will unlink the output device. Confirm?",confirmColor:"orange",content:"Unlink",icon:"unlink",color:"red",disabled:!O,onClick:function(){function U(){return A("unlink_output")}return U}()})],4)})],4)}},17067:function(I,r,n){"use strict";r.__esModule=!0,r.Newscaster=void 0;var e=n(96524),a=n(28234),t=n(17899),o=n(24674),s=n(38424),y=n(45493),V=n(99665),k=n(84537),S=["icon","iconSpin","selected","security","onClick","title","children"],p=["name"];function i(B,L){if(B==null)return{};var w={},A=Object.keys(B),T,E;for(E=0;E=0)&&(w[T]=B[T]);return w}var l=128,f=["security","engineering","medical","science","service","supply"],u={security:{title:"Security",fluff_text:"Help keep the crew safe"},engineering:{title:"Engineering",fluff_text:"Ensure the station runs smoothly"},medical:{title:"Medical",fluff_text:"Practice medicine and save lives"},science:{title:"Science",fluff_text:"Develop new technologies"},service:{title:"Service",fluff_text:"Provide amenities to the crew"},supply:{title:"Supply",fluff_text:"Keep the station supplied"}},d=r.Newscaster=function(){function B(L,w){var A=(0,t.useBackend)(w),T=A.act,E=A.data,O=E.is_security,P=E.is_admin,R=E.is_silent,F=E.is_printing,j=E.screen,U=E.channels,_=E.channel_idx,K=_===void 0?-1:_,Y=(0,t.useLocalState)(w,"menuOpen",!1),G=Y[0],ne=Y[1],$=(0,t.useLocalState)(w,"viewingPhoto",""),se=$[0],Ne=$[1],be=(0,t.useLocalState)(w,"censorMode",!1),xe=be[0],Ie=be[1],Te;j===0||j===2?Te=(0,e.createComponentVNode)(2,c):j===1&&(Te=(0,e.createComponentVNode)(2,v));var he=U.reduce(function(Q,X){return Q+X.unread},0);return(0,e.createComponentVNode)(2,y.Window,{theme:O&&"security",width:800,height:600,children:[se?(0,e.createComponentVNode)(2,h):(0,e.createComponentVNode)(2,V.ComplexModal,{maxWidth:window.innerWidth/1.5+"px",maxHeight:window.innerHeight/1.5+"px"}),(0,e.createComponentVNode)(2,y.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,o.Section,{fill:!0,className:(0,a.classes)(["Newscaster__menu",G&&"Newscaster__menu--open"]),children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:[(0,e.createComponentVNode)(2,m,{icon:"bars",title:"Toggle Menu",onClick:function(){function Q(){return ne(!G)}return Q}()}),(0,e.createComponentVNode)(2,m,{icon:"newspaper",title:"Headlines",selected:j===0,onClick:function(){function Q(){return T("headlines")}return Q}(),children:he>0&&(0,e.createComponentVNode)(2,o.Box,{className:"Newscaster__menuButton--unread",children:he>=10?"9+":he})}),(0,e.createComponentVNode)(2,m,{icon:"briefcase",title:"Job Openings",selected:j===1,onClick:function(){function Q(){return T("jobs")}return Q}()}),(0,e.createComponentVNode)(2,o.Divider)]}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:U.map(function(Q){return(0,e.createComponentVNode)(2,m,{icon:Q.icon,title:Q.name,selected:j===2&&U[K-1]===Q,onClick:function(){function X(){return T("channel",{uid:Q.uid})}return X}(),children:Q.unread>0&&(0,e.createComponentVNode)(2,o.Box,{className:"Newscaster__menuButton--unread",children:Q.unread>=10?"9+":Q.unread})},Q)})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:[(0,e.createComponentVNode)(2,o.Divider),(!!O||!!P)&&(0,e.createFragment)([(0,e.createComponentVNode)(2,m,{security:!0,icon:"exclamation-circle",title:"Edit Wanted Notice",mb:"0.5rem",onClick:function(){function Q(){return(0,V.modalOpen)(w,"wanted_notice")}return Q}()}),(0,e.createComponentVNode)(2,m,{security:!0,icon:xe?"minus-square":"minus-square-o",title:"Censor Mode: "+(xe?"On":"Off"),mb:"0.5rem",onClick:function(){function Q(){return Ie(!xe)}return Q}()}),(0,e.createComponentVNode)(2,o.Divider)],4),(0,e.createComponentVNode)(2,m,{icon:"pen-alt",title:"New Story",mb:"0.5rem",onClick:function(){function Q(){return(0,V.modalOpen)(w,"create_story")}return Q}()}),(0,e.createComponentVNode)(2,m,{icon:"plus-circle",title:"New Channel",onClick:function(){function Q(){return(0,V.modalOpen)(w,"create_channel")}return Q}()}),(0,e.createComponentVNode)(2,o.Divider),(0,e.createComponentVNode)(2,m,{icon:F?"spinner":"print",iconSpin:F,title:F?"Printing...":"Print Newspaper",onClick:function(){function Q(){return T("print_newspaper")}return Q}()}),(0,e.createComponentVNode)(2,m,{icon:R?"volume-mute":"volume-up",title:"Mute: "+(R?"On":"Off"),onClick:function(){function Q(){return T("toggle_mute")}return Q}()})]})]})}),(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,width:"100%",children:[(0,e.createComponentVNode)(2,k.TemporaryNotice),Te]})]})})]})}return B}(),m=function(L,w){var A=(0,t.useBackend)(w),T=A.act,E=L.icon,O=E===void 0?"":E,P=L.iconSpin,R=L.selected,F=R===void 0?!1:R,j=L.security,U=j===void 0?!1:j,_=L.onClick,K=L.title,Y=L.children,G=i(L,S);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Box,Object.assign({className:(0,a.classes)(["Newscaster__menuButton",F&&"Newscaster__menuButton--selected",U&&"Newscaster__menuButton--security"]),onClick:_},G,{children:[F&&(0,e.createComponentVNode)(2,o.Box,{className:"Newscaster__menuButton--selectedBar"}),(0,e.createComponentVNode)(2,o.Icon,{name:O,spin:P,size:"2"}),(0,e.createComponentVNode)(2,o.Box,{className:"Newscaster__menuButton--title",children:K}),Y]})))},c=function(L,w){var A=(0,t.useBackend)(w),T=A.act,E=A.data,O=E.screen,P=E.is_admin,R=E.channel_idx,F=E.channel_can_manage,j=E.channels,U=E.stories,_=E.wanted,K=(0,t.useLocalState)(w,"fullStories",[]),Y=K[0],G=K[1],ne=(0,t.useLocalState)(w,"censorMode",!1),$=ne[0],se=ne[1],Ne=O===2&&R>-1?j[R-1]:null;return(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[!!_&&(0,e.createComponentVNode)(2,b,{story:_,wanted:!0}),(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Icon,{name:Ne?Ne.icon:"newspaper",mr:"0.5rem"}),Ne?Ne.name:"Headlines"],0),children:U.length>0?U.slice().reverse().map(function(be){return!Y.includes(be.uid)&&be.body.length+3>l?Object.assign({},be,{body_short:be.body.substr(0,l-4)+"..."}):be}).map(function(be,xe){return(0,e.createComponentVNode)(2,b,{story:be},xe)}):(0,e.createComponentVNode)(2,o.Box,{className:"Newscaster__emptyNotice",children:[(0,e.createComponentVNode)(2,o.Icon,{name:"times",size:"3"}),(0,e.createVNode)(1,"br"),"There are no stories at this time."]})}),!!Ne&&(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,height:"40%",title:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Icon,{name:"info-circle",mr:"0.5rem"}),(0,e.createTextVNode)("About")],4),buttons:(0,e.createFragment)([$&&(0,e.createComponentVNode)(2,o.Button,{disabled:!!Ne.admin&&!P,selected:Ne.censored,icon:Ne.censored?"comment-slash":"comment",content:Ne.censored?"Uncensor Channel":"Censor Channel",mr:"0.5rem",onClick:function(){function be(){return T("censor_channel",{uid:Ne.uid})}return be}()}),(0,e.createComponentVNode)(2,o.Button,{disabled:!F,icon:"cog",content:"Manage",onClick:function(){function be(){return(0,V.modalOpen)(w,"manage_channel",{uid:Ne.uid})}return be}()})],0),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Description",children:Ne.description||"N/A"}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Owner",children:Ne.author||"N/A"}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Public",children:Ne.public?"Yes":"No"}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Total Views",children:[(0,e.createComponentVNode)(2,o.Icon,{name:"eye",mr:"0.5rem"}),U.reduce(function(be,xe){return be+xe.view_count},0).toLocaleString()]})]})})]})},v=function(L,w){var A=(0,t.useBackend)(w),T=A.act,E=A.data,O=E.jobs,P=E.wanted,R=Object.entries(O).reduce(function(F,j){var U=j[0],_=j[1];return F+_.length},0);return(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[!!P&&(0,e.createComponentVNode)(2,b,{story:P,wanted:!0}),(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Icon,{name:"briefcase",mr:"0.5rem"}),(0,e.createTextVNode)("Job Openings")],4),buttons:(0,e.createComponentVNode)(2,o.Box,{mt:"0.25rem",color:"label",children:"Work for a better future at Nanotrasen"}),children:R>0?f.map(function(F){return Object.assign({},u[F],{id:F,jobs:O[F]})}).filter(function(F){return!!F&&F.jobs.length>0}).map(function(F){return(0,e.createComponentVNode)(2,o.Section,{className:(0,a.classes)(["Newscaster__jobCategory","Newscaster__jobCategory--"+F.id]),title:F.title,buttons:(0,e.createComponentVNode)(2,o.Box,{mt:"0.25rem",color:"label",children:F.fluff_text}),children:F.jobs.map(function(j){return(0,e.createComponentVNode)(2,o.Box,{class:(0,a.classes)(["Newscaster__jobOpening",!!j.is_command&&"Newscaster__jobOpening--command"]),children:["\u2022 ",j.title]},j.title)})},F.id)}):(0,e.createComponentVNode)(2,o.Box,{className:"Newscaster__emptyNotice",children:[(0,e.createComponentVNode)(2,o.Icon,{name:"times",size:"3"}),(0,e.createVNode)(1,"br"),"There are no openings at this time."]})}),(0,e.createComponentVNode)(2,o.Section,{height:"17%",children:["Interested in serving Nanotrasen?",(0,e.createVNode)(1,"br"),"Sign up for any of the above position now at the"," ",(0,e.createVNode)(1,"b",null,"Head of Personnel's Office!",16),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,o.Box,{as:"small",color:"label",children:"By signing up for a job at Nanotrasen, you agree to transfer your soul to the loyalty department of the omnipresent and helpful watcher of humanity."})]})]})},b=function(L,w){var A=(0,t.useBackend)(w),T=A.act,E=A.data,O=L.story,P=L.wanted,R=P===void 0?!1:P,F=(0,t.useLocalState)(w,"fullStories",[]),j=F[0],U=F[1],_=(0,t.useLocalState)(w,"censorMode",!1),K=_[0],Y=_[1];return(0,e.createComponentVNode)(2,o.Section,{className:(0,a.classes)(["Newscaster__story",R&&"Newscaster__story--wanted"]),title:(0,e.createFragment)([R&&(0,e.createComponentVNode)(2,o.Icon,{name:"exclamation-circle",mr:"0.5rem"}),O.censor_flags&2&&"[REDACTED]"||O.title||"News from "+O.author],0),buttons:(0,e.createComponentVNode)(2,o.Box,{mt:"0.25rem",children:(0,e.createComponentVNode)(2,o.Box,{color:"label",children:[!R&&K&&(0,e.createComponentVNode)(2,o.Box,{inline:!0,children:(0,e.createComponentVNode)(2,o.Button,{enabled:O.censor_flags&2,icon:O.censor_flags&2?"comment-slash":"comment",content:O.censor_flags&2?"Uncensor":"Censor",mr:"0.5rem",mt:"-0.25rem",onClick:function(){function G(){return T("censor_story",{uid:O.uid})}return G}()})}),(0,e.createComponentVNode)(2,o.Box,{inline:!0,children:[(0,e.createComponentVNode)(2,o.Icon,{name:"user"})," ",O.author," |\xA0",!R&&(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Icon,{name:"eye"}),(0,e.createTextVNode)(" "),O.view_count.toLocaleString(),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("|\xA0")],0),(0,e.createComponentVNode)(2,o.Icon,{name:"clock"})," ",(0,s.timeAgo)(O.publish_time,E.world_time)]})]})}),children:(0,e.createComponentVNode)(2,o.Box,{children:O.censor_flags&2?"[REDACTED]":(0,e.createFragment)([!!O.has_photo&&(0,e.createComponentVNode)(2,C,{name:"story_photo_"+O.uid+".png",float:"right",ml:"0.5rem"}),(O.body_short||O.body).split("\n").map(function(G,ne){return(0,e.createComponentVNode)(2,o.Box,{children:G||(0,e.createVNode)(1,"br")},ne)}),O.body_short&&(0,e.createComponentVNode)(2,o.Button,{content:"Read more..",mt:"0.5rem",onClick:function(){function G(){return U([].concat(j,[O.uid]))}return G}()}),(0,e.createComponentVNode)(2,o.Box,{clear:"right"})],0)})})},C=function(L,w){var A=L.name,T=i(L,p),E=(0,t.useLocalState)(w,"viewingPhoto",""),O=E[0],P=E[1];return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Box,Object.assign({as:"img",className:"Newscaster__photo",src:A,onClick:function(){function R(){return P(A)}return R}()},T)))},h=function(L,w){var A=(0,t.useLocalState)(w,"viewingPhoto",""),T=A[0],E=A[1];return(0,e.createComponentVNode)(2,o.Modal,{className:"Newscaster__photoZoom",children:[(0,e.createComponentVNode)(2,o.Box,{as:"img",src:T}),(0,e.createComponentVNode)(2,o.Button,{icon:"times",content:"Close",color:"grey",mt:"1rem",onClick:function(){function O(){return E("")}return O}()})]})},g=function(L,w){var A=(0,t.useBackend)(w),T=A.act,E=A.data,O=!!L.args.uid&&E.channels.filter(function(q){return q.uid===L.args.uid}).pop();if(L.id==="manage_channel"&&!O){(0,V.modalClose)(w);return}var P=L.id==="manage_channel",R=!!L.args.is_admin,F=L.args.scanned_user,j=(0,t.useLocalState)(w,"author",(O==null?void 0:O.author)||F||"Unknown"),U=j[0],_=j[1],K=(0,t.useLocalState)(w,"name",(O==null?void 0:O.name)||""),Y=K[0],G=K[1],ne=(0,t.useLocalState)(w,"description",(O==null?void 0:O.description)||""),$=ne[0],se=ne[1],Ne=(0,t.useLocalState)(w,"icon",(O==null?void 0:O.icon)||"newspaper"),be=Ne[0],xe=Ne[1],Ie=(0,t.useLocalState)(w,"isPublic",P?!!(O!=null&&O.public):!1),Te=Ie[0],he=Ie[1],Q=(0,t.useLocalState)(w,"adminLocked",(O==null?void 0:O.admin)===1||!1),X=Q[0],te=Q[1];return(0,e.createComponentVNode)(2,o.Section,{m:"-1rem",pb:"1.5rem",title:P?"Manage "+O.name:"Create New Channel",children:[(0,e.createComponentVNode)(2,o.Box,{mx:"0.5rem",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Owner",children:(0,e.createComponentVNode)(2,o.Input,{disabled:!R,width:"100%",value:U,onInput:function(){function q(ce,Ve){return _(Ve)}return q}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Name",children:(0,e.createComponentVNode)(2,o.Input,{width:"100%",placeholder:"50 characters max.",maxLength:"50",value:Y,onInput:function(){function q(ce,Ve){return G(Ve)}return q}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Description (optional)",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Input,{multiline:!0,width:"100%",placeholder:"128 characters max.",maxLength:"128",value:$,onInput:function(){function q(ce,Ve){return se(Ve)}return q}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Icon",children:[(0,e.createComponentVNode)(2,o.Input,{disabled:!R,value:be,width:"35%",mr:"0.5rem",onInput:function(){function q(ce,Ve){return xe(Ve)}return q}()}),(0,e.createComponentVNode)(2,o.Icon,{name:be,size:"2",verticalAlign:"middle",mr:"0.5rem"})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Accept Public Stories?",children:(0,e.createComponentVNode)(2,o.Button,{selected:Te,icon:Te?"toggle-on":"toggle-off",content:Te?"Yes":"No",onClick:function(){function q(){return he(!Te)}return q}()})}),R&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"CentComm Lock",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Button,{selected:X,icon:X?"lock":"lock-open",content:X?"On":"Off",tooltip:"Locking this channel will make it editable by nobody but CentComm officers.",tooltipPosition:"top",onClick:function(){function q(){return te(!X)}return q}()})})]})}),(0,e.createComponentVNode)(2,o.Button.Confirm,{disabled:U.trim().length===0||Y.trim().length===0,icon:"check",color:"good",content:"Submit",position:"absolute",right:"1rem",bottom:"-0.75rem",onClick:function(){function q(){(0,V.modalAnswer)(w,L.id,"",{author:U,name:Y.substr(0,49),description:$.substr(0,128),icon:be,public:Te?1:0,admin_locked:X?1:0})}return q}()})]})},N=function(L,w){var A=(0,t.useBackend)(w),T=A.act,E=A.data,O=E.photo,P=E.channels,R=E.channel_idx,F=R===void 0?-1:R,j=!!L.args.is_admin,U=L.args.scanned_user,_=P.slice().sort(function(q,ce){if(F<0)return 0;var Ve=P[F-1];if(Ve.uid===q.uid)return-1;if(Ve.uid===ce.uid)return 1}).filter(function(q){return j||!q.frozen&&(q.author===U||!!q.public)}),K=(0,t.useLocalState)(w,"author",U||"Unknown"),Y=K[0],G=K[1],ne=(0,t.useLocalState)(w,"channel",_.length>0?_[0].name:""),$=ne[0],se=ne[1],Ne=(0,t.useLocalState)(w,"title",""),be=Ne[0],xe=Ne[1],Ie=(0,t.useLocalState)(w,"body",""),Te=Ie[0],he=Ie[1],Q=(0,t.useLocalState)(w,"adminLocked",!1),X=Q[0],te=Q[1];return(0,e.createComponentVNode)(2,o.Section,{m:"-1rem",pb:"1.5rem",title:"Create New Story",children:[(0,e.createComponentVNode)(2,o.Box,{mx:"0.5rem",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Author",children:(0,e.createComponentVNode)(2,o.Input,{disabled:!j,width:"100%",value:Y,onInput:function(){function q(ce,Ve){return G(Ve)}return q}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Channel",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Dropdown,{selected:$,options:_.map(function(q){return q.name}),mb:"0",width:"100%",onSelected:function(){function q(ce){return se(ce)}return q}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Divider),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Title",children:(0,e.createComponentVNode)(2,o.Input,{width:"100%",placeholder:"128 characters max.",maxLength:"128",value:be,onInput:function(){function q(ce,Ve){return xe(Ve)}return q}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Story Text",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Input,{fluid:!0,multiline:!0,placeholder:"1024 characters max.",maxLength:"1024",rows:"8",width:"100%",value:Te,onInput:function(){function q(ce,Ve){return he(Ve)}return q}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Photo (optional)",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Button,{icon:"image",selected:O,content:O?"Eject: "+O.name:"Insert Photo",tooltip:!O&&"Attach a photo to this story by holding the photograph in your hand.",onClick:function(){function q(){return T(O?"eject_photo":"attach_photo")}return q}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Preview",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Section,{noTopPadding:!0,title:be,maxHeight:"13.5rem",overflow:"auto",children:(0,e.createComponentVNode)(2,o.Box,{mt:"0.5rem",children:[!!O&&(0,e.createComponentVNode)(2,C,{name:"inserted_photo_"+O.uid+".png",float:"right"}),Te.split("\n").map(function(q,ce){return(0,e.createComponentVNode)(2,o.Box,{children:q||(0,e.createVNode)(1,"br")},ce)}),(0,e.createComponentVNode)(2,o.Box,{clear:"right"})]})})}),j&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"CentComm Lock",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Button,{selected:X,icon:X?"lock":"lock-open",content:X?"On":"Off",tooltip:"Locking this story will make it censorable by nobody but CentComm officers.",tooltipPosition:"top",onClick:function(){function q(){return te(!X)}return q}()})})]})}),(0,e.createComponentVNode)(2,o.Button.Confirm,{disabled:Y.trim().length===0||$.trim().length===0||be.trim().length===0||Te.trim().length===0,icon:"check",color:"good",content:"Submit",position:"absolute",right:"1rem",bottom:"-0.75rem",onClick:function(){function q(){(0,V.modalAnswer)(w,"create_story","",{author:Y,channel:$,title:be.substr(0,127),body:Te.substr(0,1023),admin_locked:X?1:0})}return q}()})]})},x=function(L,w){var A=(0,t.useBackend)(w),T=A.act,E=A.data,O=E.photo,P=E.wanted,R=!!L.args.is_admin,F=L.args.scanned_user,j=(0,t.useLocalState)(w,"author",(P==null?void 0:P.author)||F||"Unknown"),U=j[0],_=j[1],K=(0,t.useLocalState)(w,"name",(P==null?void 0:P.title.substr(8))||""),Y=K[0],G=K[1],ne=(0,t.useLocalState)(w,"description",(P==null?void 0:P.body)||""),$=ne[0],se=ne[1],Ne=(0,t.useLocalState)(w,"adminLocked",(P==null?void 0:P.admin_locked)===1||!1),be=Ne[0],xe=Ne[1];return(0,e.createComponentVNode)(2,o.Section,{m:"-1rem",pb:"1.5rem",title:"Manage Wanted Notice",children:[(0,e.createComponentVNode)(2,o.Box,{mx:"0.5rem",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Authority",children:(0,e.createComponentVNode)(2,o.Input,{disabled:!R,width:"100%",value:U,onInput:function(){function Ie(Te,he){return _(he)}return Ie}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Name",children:(0,e.createComponentVNode)(2,o.Input,{width:"100%",value:Y,maxLength:"128",onInput:function(){function Ie(Te,he){return G(he)}return Ie}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Description",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Input,{multiline:!0,width:"100%",value:$,maxLength:"512",rows:"4",onInput:function(){function Ie(Te,he){return se(he)}return Ie}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Photo (optional)",verticalAlign:"top",children:[(0,e.createComponentVNode)(2,o.Button,{icon:"image",selected:O,content:O?"Eject: "+O.name:"Insert Photo",tooltip:!O&&"Attach a photo to this wanted notice by holding the photograph in your hand.",tooltipPosition:"top",onClick:function(){function Ie(){return T(O?"eject_photo":"attach_photo")}return Ie}()}),!!O&&(0,e.createComponentVNode)(2,C,{name:"inserted_photo_"+O.uid+".png",float:"right"})]}),R&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"CentComm Lock",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Button,{selected:be,icon:be?"lock":"lock-open",content:be?"On":"Off",tooltip:"Locking this wanted notice will make it editable by nobody but CentComm officers.",tooltipPosition:"top",onClick:function(){function Ie(){return xe(!be)}return Ie}()})})]})}),(0,e.createComponentVNode)(2,o.Button.Confirm,{disabled:!P,icon:"eraser",color:"danger",content:"Clear",position:"absolute",right:"7.25rem",bottom:"-0.75rem",onClick:function(){function Ie(){T("clear_wanted_notice"),(0,V.modalClose)(w)}return Ie}()}),(0,e.createComponentVNode)(2,o.Button.Confirm,{disabled:U.trim().length===0||Y.trim().length===0||$.trim().length===0,icon:"check",color:"good",content:"Submit",position:"absolute",right:"1rem",bottom:"-0.75rem",onClick:function(){function Ie(){(0,V.modalAnswer)(w,L.id,"",{author:U,name:Y.substr(0,127),description:$.substr(0,511),admin_locked:be?1:0})}return Ie}()})]})};(0,V.modalRegisterBodyOverride)("create_channel",g),(0,V.modalRegisterBodyOverride)("manage_channel",g),(0,V.modalRegisterBodyOverride)("create_story",N),(0,V.modalRegisterBodyOverride)("wanted_notice",x)},65765:function(I,r,n){"use strict";r.__esModule=!0,r.NinjaBloodScan=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(18963),s=n(45493),y=r.NinjaBloodScan=function(){function S(p,i){var l=(0,a.useBackend)(i),f=l.act,u=l.data;return(0,e.createComponentVNode)(2,s.Window,{width:500,height:400,theme:"spider_clan",children:(0,e.createComponentVNode)(2,s.Window.Content,{className:"Layout__content--flexColumn",children:[(0,e.createComponentVNode)(2,V),(0,e.createComponentVNode)(2,k)]})})}return S}(),V=function(p,i){var l=(0,a.useBackend)(i),f=l.act,u=l.data,d=u.vialIcons,m=u.noVialIcon,c=u.bloodOwnerNames,v=u.bloodOwnerSpecies,b=u.bloodOwnerTypes,C=u.blockButtons,h=u.scanStates,g={blue:"Button_blue",green:"Button_green",red:"Button_red",disabled:"Button_disabled"},N=["NoticeBox_red","NoticeBox","NoticeBox_blue"],x=[1,2,3];return(0,e.createComponentVNode)(2,t.Flex,{direction:"column",shrink:1,alignContent:"center",children:(0,e.createComponentVNode)(2,t.Section,{title:"\u041E\u0431\u0440\u0430\u0437\u0446\u044B",backgroundColor:"rgba(0, 0, 0, 0.4)",buttons:(0,e.createComponentVNode)(2,t.Button,{content:"?",tooltip:"\u0414\u043E\u0431\u0430\u0432\u044C\u0442\u0435 \u0442\u0440\u0438 \u043E\u0431\u0440\u0430\u0437\u0446\u0430 \u043A\u0440\u043E\u0432\u0438. \u041C\u0430\u0448\u0438\u043D\u0430 \u043D\u0430\u0441\u0442\u0440\u043E\u0435\u043D\u0430 \u043D\u0430 \u0440\u0430\u0431\u043E\u0442\u0443 \u0441 \u043A\u0440\u043E\u0432\u044C\u044E \u0441\u0443\u0449\u0435\u0441\u0442\u0432 \u0438 \u0443\u0441\u043B\u043E\u0432\u0438\u044F\u043C\u0438 \u043A\u043E\u0442\u043E\u0440\u044B\u0435 \u043F\u043E\u0441\u0442\u0430\u0432\u0438\u043B \u0432\u0430\u043C \u043A\u043B\u0430\u043D. \u0420\u0435\u0430\u0433\u0435\u043D\u0442\u044B \u0438\u043C \u043D\u0435 \u0441\u043E\u043E\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044E\u0449\u0438\u0435 \u043D\u0435 \u043F\u0440\u0438\u043C\u0443\u0442\u0441\u044F \u0438\u043B\u0438 \u0441\u043A\u0430\u043D\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u0435 \u043D\u0435 \u0431\u0443\u0434\u0435\u0442 \u0443\u0441\u043F\u0435\u0448\u043D\u044B\u043C",tooltipPosition:"bottom-start"}),children:[(0,e.createComponentVNode)(2,t.Flex,{direction:"row",shrink:1,alignContent:"center",children:x.map(function(B,L){return(0,e.createComponentVNode)(2,o.FlexItem,{direction:"column",width:"33.3%",ml:L?2:0,children:[(0,e.createComponentVNode)(2,t.Section,{title:c[L]?"\u041A\u0440\u043E\u0432\u044C":"\u041D\u0435\u0442 \u0440\u0435\u0430\u0433\u0435\u043D\u0442\u0430",style:{"text-align":"left",background:"rgba(53, 94, 163, 0.5)"}}),(0,e.createComponentVNode)(2,t.NoticeBox,{className:N[h[L]],success:0,danger:0,align:"center",children:(0,e.createComponentVNode)(2,t.Button,{className:C?g.disabled:g.blue,height:"100%",width:"100%",disabled:C,onClick:function(){function w(){return f("vial_out",{button_num:L+1})}return w}(),children:[(0,e.createVNode)(1,"img",null,null,1,{height:"128px",width:"128px",src:"data:image/jpeg;base64,"+(d[L]||m),style:{"margin-left":"3px","-ms-interpolation-mode":"nearest-neighbor"}}),(0,e.createComponentVNode)(2,t.Tooltip,{title:c[L]||" - ",content:"\u0420\u0430\u0441\u0430: "+(v[L]||" - ")+"\n"+("\u0422\u0438\u043F \u043A\u0440\u043E\u0432\u0438: "+(b[L]||" - ")),position:"bottom"})]})})]},L)})}),(0,e.createComponentVNode)(2,t.NoticeBox,{className:"NoticeBox_red",success:0,danger:0,align:"center",children:(0,e.createComponentVNode)(2,t.Button,{className:C===0?"":"Button_disabled",content:"\u041D\u0430\u0447\u0430\u0442\u044C \u0441\u043A\u0430\u043D\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u0435",width:"250px",textAlign:"center",disabled:C,tooltip:"\u0421\u043A\u0430\u043D\u0438\u0440\u0443\u0435\u0442 \u043A\u0440\u043E\u0432\u044C \u0438 \u043F\u0435\u0440\u0435\u0441\u044B\u043B\u0430\u0435\u0442 \u043F\u043E\u043B\u0443\u0447\u0435\u043D\u043D\u0443\u044E \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u044E \u043A\u043B\u0430\u043D\u0443.",tooltipPosition:"bottom",onClick:function(){function B(){return f("scan_blood")}return B}()})})]})})},k=function(p,i){var l=(0,a.useBackend)(i),f=l.data,u=f.progressBar;return(0,e.createComponentVNode)(2,t.Section,{stretchContents:!0,children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:"green",value:u,minValue:0,maxValue:100,children:(0,e.createVNode)(1,"center",null,(0,e.createComponentVNode)(2,t.NoticeBox,{className:"NoticeBox_green",mt:1,children:u?"\u0417\u0430\u0433\u0440\u0443\u0437\u043A\u0430 "+(u+"%"):"\u0420\u0435\u0436\u0438\u043C \u043E\u0436\u0438\u0434\u0430\u043D\u0438\u044F"}),2)})})}},61095:function(I,r,n){"use strict";r.__esModule=!0,r.NinjaMindScan=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),s=r.NinjaMindScan=function(){function V(k,S){var p=(0,a.useBackend)(S),i=p.act,l=p.data;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:400,theme:"spider_clan",children:(0,e.createComponentVNode)(2,o.Window.Content,{className:"Layout__content--flexColumn",children:(0,e.createComponentVNode)(2,y)})})}return V}(),y=function(k,S){var p=(0,a.useBackend)(S),i=p.act,l=p.data,f=l.occupantIcon,u=l.occupant_name,d=l.occupant_health,m=l.scanned_occupants,c=u==="none"?1:0;return(0,e.createComponentVNode)(2,t.Flex,{direction:"column",shrink:1,alignContent:"left",children:[(0,e.createComponentVNode)(2,t.Section,{title:"\u041F\u0430\u0446\u0438\u0435\u043D\u0442",backgroundColor:"rgba(0, 0, 0, 0.4)",buttons:(0,e.createComponentVNode)(2,t.Button,{content:"?",tooltip:"\u041E\u0442\u043E\u0431\u0440\u0430\u0436\u0435\u043D\u0438\u0435 \u0432\u043D\u0435\u0448\u043D\u0435\u0433\u043E \u0432\u0438\u0434\u0430 \u0438 \u0441\u043E\u0441\u0442\u043E\u044F\u043D\u0438\u044F \u043F\u0430\u0446\u0438\u0435\u043D\u0442\u0430 \u0432 \u0443\u0441\u0442\u0440\u043E\u0439\u0441\u0442\u0432\u0435.",tooltipPosition:"left"}),children:(0,e.createComponentVNode)(2,t.Flex,{direction:"row",shrink:1,alignContent:"left",children:[(0,e.createComponentVNode)(2,t.Flex.Item,{shrink:1,alignContent:"left",children:(0,e.createComponentVNode)(2,t.NoticeBox,{className:"NoticeBox_blue",success:0,danger:0,width:"90px",align:"left",children:(0,e.createComponentVNode)(2,t.Section,{style:{background:"rgba(4, 74, 27, 0.75)"},align:"left",children:(0,e.createVNode)(1,"img",null,null,1,{height:"128px",width:"128px",src:"data:image/jpeg;base64,"+f,style:{"margin-left":"-28px","-ms-interpolation-mode":"nearest-neighbor"}})})})}),(0,e.createComponentVNode)(2,t.Flex.Item,{grow:1,alignContent:"right",children:[(0,e.createComponentVNode)(2,t.NoticeBox,{className:"NoticeBox_green",success:0,danger:0,align:"left",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0418\u043C\u044F",children:u}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0417\u0434\u043E\u0440\u043E\u0432\u044C\u0435",children:d})]})}),(0,e.createComponentVNode)(2,t.NoticeBox,{className:"NoticeBox_red",mt:2.5,success:0,danger:0,align:"center",children:[(0,e.createComponentVNode)(2,t.Button,{className:c===0?"":"Button_disabled",content:"\u041D\u0430\u0447\u0430\u0442\u044C \u0441\u043A\u0430\u043D\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u0435",width:"250px",textAlign:"center",disabled:c,tooltip:"\u0421\u043A\u0430\u043D\u0438\u0440\u0443\u0435\u0442 \u043F\u0430\u0446\u0438\u0435\u043D\u0442\u0430 \u0438 \u043F\u044B\u0442\u0430\u0435\u0442\u0441\u044F \u0434\u043E\u0431\u044B\u0442\u044C \u0438\u0437 \u0435\u0433\u043E \u0440\u0430\u0437\u0443\u043C\u0430 \u043D\u0435\u043E\u0431\u0445\u043E\u0434\u0438\u043C\u0443\u044E \u043A\u043B\u0430\u043D\u0443 \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u044E.",tooltipPosition:"bottom-start",onClick:function(){function v(){return i("scan_occupant")}return v}()}),(0,e.createComponentVNode)(2,t.Button,{className:c===0?"":"Button_disabled",content:"\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u0443\u0441\u0442\u0440\u043E\u0439\u0441\u0442\u0432\u043E",width:"250px",textAlign:"center",disabled:c,tooltip:"\u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442 \u0443\u0441\u0442\u0440\u043E\u0439\u0441\u0442\u0432\u043E, \u0432\u044B\u043F\u0443\u0441\u043A\u0430\u044F \u043F\u0430\u0446\u0438\u0435\u043D\u0442\u0430 \u0438\u0437 \u043A\u0430\u043F\u0441\u0443\u043B\u044B",tooltipPosition:"bottom-start",onClick:function(){function v(){return i("go_out")}return v}()}),(0,e.createComponentVNode)(2,t.Button,{className:c===0?"":"Button_disabled",content:"\u0422\u0435\u043B\u0435\u043F\u043E\u0440\u0442\u0430\u0446\u0438\u044F \u043F\u0430\u0446\u0438\u0435\u043D\u0442\u0430",width:"250px",textAlign:"center",disabled:c,tooltip:"\u0422\u0435\u043B\u0435\u043F\u043E\u0440\u0442\u0438\u0440\u0443\u0435\u0442 \u043F\u0430\u0446\u0438\u0435\u043D\u0442\u0430 \u043E\u0431\u0440\u0430\u0442\u043D\u043E \u043D\u0430 \u043E\u0431\u044C\u0435\u043A\u0442 \u0441 \u043A\u043E\u0442\u043E\u0440\u043E\u0433\u043E \u043E\u043D \u0431\u044B\u043B \u043F\u043E\u0445\u0438\u0449\u0435\u043D. \u0420\u0435\u043A\u043E\u043C\u0435\u043D\u0434\u0443\u0435\u043C \u043A\u0430\u043A \u0441\u043B\u0435\u0434\u0443\u0435\u0442 \u0435\u0433\u043E \u0437\u0430\u043F\u0443\u0433\u0430\u0442\u044C \u043F\u0435\u0440\u0435\u0434 \u044D\u0442\u0438\u043C, \u0447\u0442\u043E\u0431\u044B \u043E\u043D \u043D\u0435 \u0440\u0430\u0437\u0431\u043E\u043B\u0442\u0430\u043B \u043E \u0432\u0430\u0441.",tooltipPosition:"bottom-start",onClick:function(){function v(){return i("teleport_out")}return v}()})]})]})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"\u0421\u043F\u0438\u0441\u043E\u043A \u0443\u0436\u0435 \u043F\u0440\u043E\u0441\u043A\u0430\u043D\u0438\u0440\u043E\u0432\u0430\u043D\u043D\u044B\u0445 \u0432\u0430\u043C\u0438 \u043B\u044E\u0434\u0435\u0439",align:"center",backgroundColor:"rgba(0, 0, 0, 0.4)",children:(0,e.createComponentVNode)(2,t.Box,{maxHeight:15,overflowY:"auto",overflowX:"hidden",children:(0,e.createComponentVNode)(2,t.Table,{m:"0.5rem",children:m.map(function(v){return(0,e.createComponentVNode)(2,t.Table.Row,{children:(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Box,{children:v.scanned_occupant})})},v.scanned_occupant)})})})})]})}},46940:function(I,r,n){"use strict";r.__esModule=!0,r.NuclearBomb=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),s=r.NuclearBomb=function(){function y(V,k){var S=(0,a.useBackend)(k),p=S.act,i=S.data;return i.extended?(0,e.createComponentVNode)(2,o.Window,{width:450,height:300,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Authorization",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Auth Disk",children:(0,e.createComponentVNode)(2,t.Button,{icon:i.authdisk?"eject":"id-card",selected:i.authdisk,content:i.diskname?i.diskname:"-----",tooltip:i.authdisk?"Eject Disk":"Insert Disk",onClick:function(){function l(){return p("auth")}return l}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Auth Code",children:(0,e.createComponentVNode)(2,t.Button,{icon:"key",disabled:!i.authdisk,selected:i.authcode,content:i.codemsg,onClick:function(){function l(){return p("code")}return l}()})})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Arming & Disarming",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Bolted to floor",children:(0,e.createComponentVNode)(2,t.Button,{icon:i.anchored?"check":"times",selected:i.anchored,disabled:!i.authfull,content:i.anchored?"YES":"NO",onClick:function(){function l(){return p("toggle_anchor")}return l}()})}),i.authfull&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Time Left",children:(0,e.createComponentVNode)(2,t.Button,{icon:"stopwatch",content:i.time,disabled:!i.authfull,tooltip:"Set Timer",onClick:function(){function l(){return p("set_time")}return l}()})})||(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Time Left",color:i.timer?"red":"",children:i.time+"s"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Safety",children:(0,e.createComponentVNode)(2,t.Button,{icon:i.safety?"check":"times",selected:i.safety,disabled:!i.authfull,content:i.safety?"ON":"OFF",tooltip:i.safety?"Disable Safety":"Enable Safety",onClick:function(){function l(){return p("toggle_safety")}return l}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Arm/Disarm",children:(0,e.createComponentVNode)(2,t.Button,{icon:(i.timer,"bomb"),disabled:i.safety||!i.authfull,color:"red",content:i.timer?"DISARM THE NUKE":"ARM THE NUKE",onClick:function(){function l(){return p("toggle_armed")}return l}()})})]})})]})}):(0,e.createComponentVNode)(2,o.Window,{width:450,height:300,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Deployment",children:(0,e.createComponentVNode)(2,t.Button,{icon:"exclamation-triangle",content:"Deploy Nuclear Device (will bolt device to floor)",onClick:function(){function l(){return p("deploy")}return l}()})})})})}return y}()},35478:function(I,r,n){"use strict";r.__esModule=!0,r.NumberInputModal=void 0;var e=n(96524),a=n(14299),t=n(15113),o=n(68100),s=n(17899),y=n(24674),V=n(45493),k=r.NumberInputModal=function(){function p(i,l){var f=(0,s.useBackend)(l),u=f.act,d=f.data,m=d.init_value,c=d.large_buttons,v=d.message,b=v===void 0?"":v,C=d.timeout,h=d.title,g=(0,s.useLocalState)(l,"input",m),N=g[0],x=g[1],B=function(){function A(T){T!==N&&x(T)}return A}(),L=function(){function A(T){T!==N&&x(T)}return A}(),w=140+Math.max(Math.ceil(b.length/3),b.length>0&&c?5:0);return(0,e.createComponentVNode)(2,V.Window,{title:h,width:270,height:w,children:[C&&(0,e.createComponentVNode)(2,a.Loader,{value:C}),(0,e.createComponentVNode)(2,V.Window.Content,{onKeyDown:function(){function A(T){var E=window.event?T.which:T.keyCode;E===o.KEY_ENTER&&u("submit",{entry:N}),E===o.KEY_ESCAPE&&u("cancel")}return A}(),children:(0,e.createComponentVNode)(2,y.Section,{fill:!0,children:(0,e.createComponentVNode)(2,y.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,y.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,y.Box,{color:"label",children:b})}),(0,e.createComponentVNode)(2,y.Stack.Item,{children:(0,e.createComponentVNode)(2,S,{input:N,onClick:L,onChange:B})}),(0,e.createComponentVNode)(2,y.Stack.Item,{children:(0,e.createComponentVNode)(2,t.InputButtons,{input:N})})]})})})]})}return p}(),S=function(i,l){var f=(0,s.useBackend)(l),u=f.act,d=f.data,m=d.min_value,c=d.max_value,v=d.init_value,b=d.round_value,C=i.input,h=i.onClick,g=i.onChange,N=Math.round(C!==m?Math.max(C/2,m):c/2),x=C===m&&m>0||C===1;return(0,e.createComponentVNode)(2,y.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,y.Stack.Item,{children:(0,e.createComponentVNode)(2,y.Button,{disabled:C===m,icon:"angle-double-left",onClick:function(){function B(){return h(m)}return B}(),tooltip:C===m?"Min":"Min ("+m+")"})}),(0,e.createComponentVNode)(2,y.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,y.RestrictedInput,{autoFocus:!0,autoSelect:!0,fluid:!0,allowFloats:!b,minValue:m,maxValue:c,onChange:function(){function B(L,w){return g(w)}return B}(),onEnter:function(){function B(L,w){return u("submit",{entry:w})}return B}(),value:C})}),(0,e.createComponentVNode)(2,y.Stack.Item,{children:(0,e.createComponentVNode)(2,y.Button,{disabled:C===c,icon:"angle-double-right",onClick:function(){function B(){return h(c)}return B}(),tooltip:C===c?"Max":"Max ("+c+")"})}),(0,e.createComponentVNode)(2,y.Stack.Item,{children:(0,e.createComponentVNode)(2,y.Button,{disabled:x,icon:"divide",onClick:function(){function B(){return h(N)}return B}(),tooltip:x?"Split":"Split ("+N+")"})}),(0,e.createComponentVNode)(2,y.Stack.Item,{children:(0,e.createComponentVNode)(2,y.Button,{disabled:C===v,icon:"redo",onClick:function(){function B(){return h(v)}return B}(),tooltip:v?"Reset ("+v+")":"Reset"})})]})}},98476:function(I,r,n){"use strict";r.__esModule=!0,r.OperatingComputer=void 0;var e=n(96524),a=n(36121),t=n(17899),o=n(45493),s=n(24674),y=[["good","Conscious"],["average","Unconscious"],["bad","DEAD"]],V=[["Resp.","oxyLoss"],["Toxin","toxLoss"],["Brute","bruteLoss"],["Burn","fireLoss"]],k={average:[.25,.5],bad:[.5,1/0]},S=["bad","average","average","good","average","average","bad"],p=r.OperatingComputer=function(){function u(d,m){var c=(0,t.useBackend)(m),v=c.act,b=c.data,C=b.hasOccupant,h=b.choice,g;return h?g=(0,e.createComponentVNode)(2,f):g=C?(0,e.createComponentVNode)(2,i):(0,e.createComponentVNode)(2,l),(0,e.createComponentVNode)(2,o.Window,{width:650,height:455,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,s.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,s.Stack.Item,{children:(0,e.createComponentVNode)(2,s.Tabs,{children:[(0,e.createComponentVNode)(2,s.Tabs.Tab,{selected:!h,icon:"user",onClick:function(){function N(){return v("choiceOff")}return N}(),children:"Patient"}),(0,e.createComponentVNode)(2,s.Tabs.Tab,{selected:!!h,icon:"cog",onClick:function(){function N(){return v("choiceOn")}return N}(),children:"Options"})]})}),(0,e.createComponentVNode)(2,s.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,s.Section,{fill:!0,scrollable:!0,children:g})})]})})})}return u}(),i=function(d,m){var c=(0,t.useBackend)(m),v=c.data,b=v.occupant;return(0,e.createComponentVNode)(2,s.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,s.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,s.Section,{fill:!0,title:"Patient",children:(0,e.createComponentVNode)(2,s.LabeledList,{children:[(0,e.createComponentVNode)(2,s.LabeledList.Item,{label:"Name",children:b.name}),(0,e.createComponentVNode)(2,s.LabeledList.Item,{label:"Status",color:y[b.stat][0],children:y[b.stat][1]}),(0,e.createComponentVNode)(2,s.LabeledList.Item,{label:"Health",children:(0,e.createComponentVNode)(2,s.ProgressBar,{min:"0",max:b.maxHealth,value:b.health/b.maxHealth,ranges:{good:[.5,1/0],average:[0,.5],bad:[-1/0,0]}})}),V.map(function(C,h){return(0,e.createComponentVNode)(2,s.LabeledList.Item,{label:C[0]+" Damage",children:(0,e.createComponentVNode)(2,s.ProgressBar,{min:"0",max:"100",value:b[C[1]]/100,ranges:k,children:(0,a.round)(b[C[1]])},h)},h)}),(0,e.createComponentVNode)(2,s.LabeledList.Item,{label:"Temperature",children:(0,e.createComponentVNode)(2,s.ProgressBar,{min:"0",max:b.maxTemp,value:b.bodyTemperature/b.maxTemp,color:S[b.temperatureSuitability+3],children:[(0,a.round)(b.btCelsius),"\xB0C, ",(0,a.round)(b.btFaren),"\xB0F"]})}),!!b.hasBlood&&(0,e.createFragment)([(0,e.createComponentVNode)(2,s.LabeledList.Item,{label:"Blood Level",children:(0,e.createComponentVNode)(2,s.ProgressBar,{min:"0",max:b.bloodMax,value:b.bloodLevel/b.bloodMax,ranges:{bad:[-1/0,.6],average:[.6,.9],good:[.6,1/0]},children:[b.bloodPercent,"%, ",b.bloodLevel,"cl"]})}),(0,e.createComponentVNode)(2,s.LabeledList.Item,{label:"Pulse",children:[b.pulse," BPM"]})],4)]})})}),(0,e.createComponentVNode)(2,s.Stack.Item,{children:(0,e.createComponentVNode)(2,s.Section,{title:"Current Procedures",level:"2",children:b.inSurgery?b.surgeries.map(function(C){var h=C.bodypartName,g=C.surgeryName,N=C.stepName;return(0,e.createComponentVNode)(2,s.Section,{title:h,level:"4",children:(0,e.createComponentVNode)(2,s.LabeledList,{children:[(0,e.createComponentVNode)(2,s.LabeledList.Item,{label:"Procedure",children:g}),(0,e.createComponentVNode)(2,s.LabeledList.Item,{label:"Next Step",children:N})]})},h)}):(0,e.createComponentVNode)(2,s.Box,{color:"label",children:"No procedure ongoing."})})})]})},l=function(){return(0,e.createComponentVNode)(2,s.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,s.Stack.Item,{grow:!0,align:"center",textAlign:"center",color:"label",children:[(0,e.createComponentVNode)(2,s.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,e.createVNode)(1,"br"),"No patient detected."]})})},f=function(d,m){var c=(0,t.useBackend)(m),v=c.act,b=c.data,C=b.verbose,h=b.health,g=b.healthAlarm,N=b.oxy,x=b.oxyAlarm,B=b.crit;return(0,e.createComponentVNode)(2,s.LabeledList,{children:[(0,e.createComponentVNode)(2,s.LabeledList.Item,{label:"Loudspeaker",children:(0,e.createComponentVNode)(2,s.Button,{selected:C,icon:C?"toggle-on":"toggle-off",content:C?"On":"Off",onClick:function(){function L(){return v(C?"verboseOff":"verboseOn")}return L}()})}),(0,e.createComponentVNode)(2,s.LabeledList.Item,{label:"Health Announcer",children:(0,e.createComponentVNode)(2,s.Button,{selected:h,icon:h?"toggle-on":"toggle-off",content:h?"On":"Off",onClick:function(){function L(){return v(h?"healthOff":"healthOn")}return L}()})}),(0,e.createComponentVNode)(2,s.LabeledList.Item,{label:"Health Announcer Threshold",children:(0,e.createComponentVNode)(2,s.Knob,{bipolar:!0,minValue:-100,maxValue:100,value:g,stepPixelSize:5,ml:"0",onChange:function(){function L(w,A){return v("health_adj",{new:A})}return L}()})}),(0,e.createComponentVNode)(2,s.LabeledList.Item,{label:"Oxygen Alarm",children:(0,e.createComponentVNode)(2,s.Button,{selected:N,icon:N?"toggle-on":"toggle-off",content:N?"On":"Off",onClick:function(){function L(){return v(N?"oxyOff":"oxyOn")}return L}()})}),(0,e.createComponentVNode)(2,s.LabeledList.Item,{label:"Oxygen Alarm Threshold",children:(0,e.createComponentVNode)(2,s.Knob,{bipolar:!0,minValue:-100,maxValue:100,value:x,stepPixelSize:5,ml:"0",onChange:function(){function L(w,A){return v("oxy_adj",{new:A})}return L}()})}),(0,e.createComponentVNode)(2,s.LabeledList.Item,{label:"Critical Alert",children:(0,e.createComponentVNode)(2,s.Button,{selected:B,icon:B?"toggle-on":"toggle-off",content:B?"On":"Off",onClick:function(){function L(){return v(B?"critOff":"critOn")}return L}()})})]})}},98702:function(I,r,n){"use strict";r.__esModule=!0,r.Orbit=void 0;var e=n(96524),a=n(78234),t=n(17899),o=n(24674),s=n(45493);function y(m,c){var v=typeof Symbol!="undefined"&&m[Symbol.iterator]||m["@@iterator"];if(v)return(v=v.call(m)).next.bind(v);if(Array.isArray(m)||(v=V(m))||c&&m&&typeof m.length=="number"){v&&(m=v);var b=0;return function(){return b>=m.length?{done:!0}:{done:!1,value:m[b++]}}}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(m,c){if(m){if(typeof m=="string")return k(m,c);var v=Object.prototype.toString.call(m).slice(8,-1);if(v==="Object"&&m.constructor&&(v=m.constructor.name),v==="Map"||v==="Set")return Array.from(m);if(v==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(v))return k(m,c)}}function k(m,c){(c==null||c>m.length)&&(c=m.length);for(var v=0,b=new Array(c);vv},l=function(c,v){var b=c.name,C=v.name;if(!b||!C)return 0;var h=b.match(S),g=C.match(S);if(h&&g&&b.replace(S,"")===C.replace(S,"")){var N=parseInt(h[1],10),x=parseInt(g[1],10);return N-x}return i(b,C)},f=function(c,v){var b=(0,t.useBackend)(v),C=b.act,h=c.searchText,g=c.source,N=c.title,x=g.filter(p(h));return x.sort(l),g.length>0&&(0,e.createComponentVNode)(2,o.Section,{title:N+" - ("+g.length+")",children:x.map(function(B){return(0,e.createComponentVNode)(2,o.Button,{content:B.name,onClick:function(){function L(){return C("orbit",{ref:B.ref})}return L}()},B.name)})})},u=function(c,v){var b=(0,t.useBackend)(v),C=b.act,h=c.color,g=c.thing;return(0,e.createComponentVNode)(2,o.Button,{color:h,onClick:function(){function N(){return C("orbit",{ref:g.ref})}return N}(),children:g.name})},d=r.Orbit=function(){function m(c,v){for(var b=(0,t.useBackend)(v),C=b.act,h=b.data,g=h.alive,N=h.antagonists,x=h.highlights,B=h.auto_observe,L=h.dead,w=h.ghosts,A=h.misc,T=h.npcs,E=(0,t.useLocalState)(v,"searchText",""),O=E[0],P=E[1],R={},F=y(N),j;!(j=F()).done;){var U=j.value;R[U.antag]===void 0&&(R[U.antag]=[]),R[U.antag].push(U)}var _=Object.entries(R);_.sort(function(Y,G){return i(Y[0],G[0])});var K=function(){function Y(G){for(var ne=0,$=[_.map(function(be){var xe=be[0],Ie=be[1];return Ie}),x,g,w,L,T,A];ne<$.length;ne++){var se=$[ne],Ne=se.filter(p(G)).sort(l)[0];if(Ne!==void 0){C("orbit",{ref:Ne.ref});break}}}return Y}();return(0,e.createComponentVNode)(2,s.Window,{width:700,height:500,children:(0,e.createComponentVNode)(2,s.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,o.Section,{children:(0,e.createComponentVNode)(2,o.Flex,{children:[(0,e.createComponentVNode)(2,o.Flex.Item,{children:(0,e.createComponentVNode)(2,o.Icon,{name:"search",mr:1})}),(0,e.createComponentVNode)(2,o.Flex.Item,{grow:1,children:(0,e.createComponentVNode)(2,o.Input,{placeholder:"Search...",autoFocus:!0,fluid:!0,value:O,onInput:function(){function Y(G,ne){return P(ne)}return Y}(),onEnter:function(){function Y(G,ne){return K(ne)}return Y}()})}),(0,e.createComponentVNode)(2,o.Flex.Item,{children:(0,e.createComponentVNode)(2,o.Divider,{vertical:!0})}),(0,e.createComponentVNode)(2,o.Flex.Item,{children:(0,e.createComponentVNode)(2,o.Button,{inline:!0,color:"transparent",tooltip:"Refresh",tooltipPosition:"bottom-start",icon:"sync-alt",onClick:function(){function Y(){return C("refresh")}return Y}()})})]})}),N.length>0&&(0,e.createComponentVNode)(2,o.Section,{title:"Antagonists",children:_.map(function(Y){var G=Y[0],ne=Y[1];return(0,e.createComponentVNode)(2,o.Section,{title:G,level:2,children:ne.filter(p(O)).sort(l).map(function($){return(0,e.createComponentVNode)(2,u,{color:"bad",thing:$},$.name)})},G)})}),x.length>0&&(0,e.createComponentVNode)(2,f,{title:"Highlights",source:x,searchText:O,color:"teal"}),(0,e.createComponentVNode)(2,o.Section,{title:"Alive - ("+g.length+")",children:g.filter(p(O)).sort(l).map(function(Y){return(0,e.createComponentVNode)(2,u,{color:"good",thing:Y},Y.name)})}),(0,e.createComponentVNode)(2,o.Section,{title:"Ghosts - ("+w.length+")",children:w.filter(p(O)).sort(l).map(function(Y){return(0,e.createComponentVNode)(2,u,{color:"grey",thing:Y},Y.name)})}),(0,e.createComponentVNode)(2,f,{title:"Dead",source:L,searchText:O}),(0,e.createComponentVNode)(2,f,{title:"NPCs",source:T,searchText:O}),(0,e.createComponentVNode)(2,f,{title:"Misc",source:A,searchText:O})]})})}return m}()},74015:function(I,r,n){"use strict";r.__esModule=!0,r.OreRedemption=void 0;var e=n(96524),a=n(28234),t=n(17899),o=n(24674),s=n(45493),y=n(81856);function V(c){if(c==null)throw new TypeError("Cannot destructure "+c)}var k=(0,y.createLogger)("OreRedemption"),S=function(v){return v.toLocaleString("en-US")+" pts"},p=r.OreRedemption=function(){function c(v,b){return(0,e.createComponentVNode)(2,s.Window,{width:490,height:750,children:(0,e.createComponentVNode)(2,s.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,i,{height:"100%"})}),(0,e.createComponentVNode)(2,l),(0,e.createComponentVNode)(2,f)]})})})}return c}(),i=function(v,b){var C=(0,t.useBackend)(b),h=C.act,g=C.data,N=g.id,x=g.points,B=g.disk,L=Object.assign({},(V(v),v));return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Section,Object.assign({},L,{children:[(0,e.createComponentVNode)(2,o.Box,{color:"average",textAlign:"center",children:[(0,e.createComponentVNode)(2,o.Icon,{name:"exclamation-triangle",mr:"0.5rem"}),"This machine only accepts ore. Gibtonite is not accepted."]}),(0,e.createComponentVNode)(2,o.Divider),(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"ID card",children:N?(0,e.createComponentVNode)(2,o.Button,{selected:!0,bold:!0,verticalAlign:"middle",icon:"eject",content:N.name,tooltip:"Ejects the ID card.",onClick:function(){function w(){return h("eject_id")}return w}(),style:{"white-space":"pre-wrap"}}):(0,e.createComponentVNode)(2,o.Button,{icon:"sign-in-alt",content:"Insert",tooltip:"Hold the ID card in your hand to insert.",onClick:function(){function w(){return h("insert_id")}return w}()})}),N&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Current Mining Points",children:(0,e.createComponentVNode)(2,o.Box,{bold:!0,children:S(N.points)})}),N&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Total Mining Points",children:(0,e.createComponentVNode)(2,o.Box,{bold:!0,children:S(N.total_points)})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Unclaimed Points",color:x>0?"good":"grey",bold:x>0&&"good",children:S(x)}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{children:(0,e.createComponentVNode)(2,o.Button,{disabled:!N,icon:"hand-holding-usd",content:"Claim",onClick:function(){function w(){return h("claim")}return w}()})})]}),(0,e.createComponentVNode)(2,o.Divider),B?(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Design disk",children:(0,e.createComponentVNode)(2,o.Button,{selected:!0,bold:!0,icon:"eject",content:B.name,tooltip:"Ejects the design disk.",onClick:function(){function w(){return h("eject_disk")}return w}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Stored design",children:(0,e.createComponentVNode)(2,o.Box,{color:B.design&&(B.compatible?"good":"bad"),children:B.design||"N/A"})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{children:(0,e.createComponentVNode)(2,o.Button,{disabled:!B.design||!B.compatible,icon:"upload",content:"Download",tooltip:"Downloads the design on the disk into the machine.",onClick:function(){function w(){return h("download")}return w}()})})]}):(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"No design disk inserted."})]})))},l=function(v,b){var C=(0,t.useBackend)(b),h=C.act,g=C.data,N=g.sheets,x=Object.assign({},(V(v),v));return(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,height:"20%",children:(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Section,Object.assign({fill:!0,scrollable:!0,className:"OreRedemption__Ores",p:"0"},x,{children:[(0,e.createComponentVNode)(2,u,{title:"Sheets",columns:[["Available","25%"],["Ore Value","15%"],["Smelt","20%"]]}),N.map(function(B){return(0,e.createComponentVNode)(2,d,{ore:B},B.id)})]})))})},f=function(v,b){var C=(0,t.useBackend)(b),h=C.act,g=C.data,N=g.alloys,x=Object.assign({},(V(v),v));return(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Section,Object.assign({fill:!0,scrollable:!0,className:"OreRedemption__Ores",p:"0"},x,{children:[(0,e.createComponentVNode)(2,u,{title:"Alloys",columns:[["Recipe","50%"],["Available","11%"],["Smelt","20%"]]}),N.map(function(B){return(0,e.createComponentVNode)(2,m,{ore:B},B.id)})]})))})},u=function(v,b){var C;return(0,e.createComponentVNode)(2,o.Box,{className:"OreHeader",children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:v.title}),(C=v.columns)==null?void 0:C.map(function(h){return(0,e.createComponentVNode)(2,o.Stack.Item,{basis:h[1],textAlign:"center",color:"label",bold:!0,children:h[0]},h)})]})})},d=function(v,b){var C=(0,t.useBackend)(b),h=C.act,g=v.ore;if(!(g.value&&g.amount<=0&&!(["metal","glass"].indexOf(g.id)>-1)))return(0,e.createComponentVNode)(2,o.Box,{className:"SheetLine",children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"45%",align:"middle",children:(0,e.createComponentVNode)(2,o.Stack,{align:"center",children:[(0,e.createComponentVNode)(2,o.Stack.Item,{className:(0,a.classes)(["materials32x32",g.id])}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:g.name})]})}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"20%",textAlign:"center",color:g.amount>=1?"good":"gray",bold:g.amount>=1,align:"center",children:g.amount.toLocaleString("en-US")}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"20%",textAlign:"center",align:"center",children:g.value}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"20%",textAlign:"center",align:"center",lineHeight:"32px",children:(0,e.createComponentVNode)(2,o.NumberInput,{width:"40%",value:0,minValue:0,maxValue:Math.min(g.amount,50),stepPixelSize:6,onChange:function(){function N(x,B){return h(g.value?"sheet":"alloy",{id:g.id,amount:B})}return N}()})})]})})},m=function(v,b){var C=(0,t.useBackend)(b),h=C.act,g=v.ore;return(0,e.createComponentVNode)(2,o.Box,{className:"SheetLine",children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"7%",align:"middle",children:(0,e.createComponentVNode)(2,o.Box,{className:(0,a.classes)(["alloys32x32",g.id])})}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"30%",textAlign:"middle",align:"center",children:g.name}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"35%",textAlign:"middle",color:g.amount>=1?"good":"gray",align:"center",children:g.description}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"10%",textAlign:"center",color:g.amount>=1?"good":"gray",bold:g.amount>=1,align:"center",children:g.amount.toLocaleString("en-US")}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"20%",textAlign:"center",align:"center",lineHeight:"32px",children:(0,e.createComponentVNode)(2,o.NumberInput,{width:"40%",value:0,minValue:0,maxValue:Math.min(g.amount,50),stepPixelSize:6,onChange:function(){function N(x,B){return h(g.value?"sheet":"alloy",{id:g.id,amount:B})}return N}()})})]})})}},48824:function(I,r,n){"use strict";r.__esModule=!0,r.PAI=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),s=n(91807),y=n(70752),V=function(p){var i;try{i=y("./"+p+".js")}catch(f){if(f.code==="MODULE_NOT_FOUND")return(0,s.routingError)("notFound",p);throw f}var l=i[p];return l||(0,s.routingError)("missingExport",p)},k=r.PAI=function(){function S(p,i){var l=(0,a.useBackend)(i),f=l.act,u=l.data,d=u.app_template,m=u.app_icon,c=u.app_title,v=V(d);return(0,e.createComponentVNode)(2,o.Window,{width:600,height:650,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Icon,{name:m,mr:1}),c,d!=="pai_main_menu"&&(0,e.createComponentVNode)(2,t.Button,{ml:2,content:"Home",icon:"arrow-up",onClick:function(){function b(){return f("MASTER_back")}return b}()})]}),p:1,children:(0,e.createComponentVNode)(2,v)})})})}return S}()},41565:function(I,r,n){"use strict";r.__esModule=!0,r.PDA=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),s=n(91807),y=n(59395),V=function(l){var f;try{f=y("./"+l+".js")}catch(d){if(d.code==="MODULE_NOT_FOUND")return(0,s.routingError)("notFound",l);throw d}var u=f[l];return u||(0,s.routingError)("missingExport",l)},k=r.PDA=function(){function i(l,f){var u=(0,a.useBackend)(f),d=u.act,m=u.data,c=m.app,v=m.owner;if(!v)return(0,e.createComponentVNode)(2,o.Window,{width:350,height:105,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Error",children:"No user data found. Please swipe an ID card."})})});var b=V(c.template);return(0,e.createComponentVNode)(2,o.Window,{width:600,height:650,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,S)}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,p:1,pb:0,title:(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Icon,{name:c.icon,mr:1}),c.name]}),children:(0,e.createComponentVNode)(2,b)})}),(0,e.createComponentVNode)(2,t.Stack.Item,{mt:7.5,children:(0,e.createComponentVNode)(2,p)})]})})})}return i}(),S=function(l,f){var u=(0,a.useBackend)(f),d=u.act,m=u.data,c=m.idInserted,v=m.idLink,b=m.stationTime,C=m.cartridge_name;return(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{ml:.5,children:(0,e.createComponentVNode)(2,t.Button,{icon:"id-card",color:"transparent",onClick:function(){function h(){return d("Authenticate")}return h}(),content:c?v:"No ID Inserted"})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"sd-card",color:"transparent",onClick:function(){function h(){return d("Eject")}return h}(),content:C?["Eject "+C]:"No Cartridge Inserted"})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,textAlign:"right",bold:!0,mr:1,mt:.5,children:b})]})},p=function(l,f){var u=(0,a.useBackend)(f),d=u.act,m=u.data,c=m.app;return(0,e.createComponentVNode)(2,t.Box,{height:"45px",className:"PDA__footer",backgroundColor:"#1b1b1b",children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:[!!c.has_back&&(0,e.createComponentVNode)(2,t.Stack.Item,{basis:"33%",mr:-.5,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,className:"PDA__footer__button",color:"transparent",iconColor:c.has_back?"white":"disabled",icon:"arrow-alt-circle-left-o",onClick:function(){function v(){return d("Back")}return v}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{basis:c.has_back?"33%":"100%",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,className:"PDA__footer__button",color:"transparent",iconColor:c.is_home?"disabled":"white",icon:"home",onClick:function(){function v(){d("Home")}return v}()})})]})})}},10890:function(I,r,n){"use strict";r.__esModule=!0,r.PDAPainter=r.PDAColorRow=void 0;var e=n(96524),a=n(17899),t=n(45493),o=n(24674),s=r.PDAPainter=function(){function V(k,S){var p=(0,a.useBackend)(S),i=p.act,l=p.data,f=l.statusLabel,u=l.pdaTypes,d=l.hasPDA,m=l.pdaIcon,c=l.pdaOwnerName,v=l.pdaJobName;return(0,e.createComponentVNode)(2,t.Window,{width:545,height:350,children:(0,e.createComponentVNode)(2,t.Window.Content,{children:(0,e.createComponentVNode)(2,o.Flex,{spacing:1,direction:"row",height:"100%",flex:"1",children:[(0,e.createComponentVNode)(2,o.Flex.Item,{width:24,shrink:0,children:[(0,e.createComponentVNode)(2,o.Section,{title:"\u041E\u0431\u0449\u0435\u0435",buttons:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,icon:d?"eject":"exclamation-triangle",selected:d,content:d?"\u0418\u0437\u0432\u043B\u0435\u0447\u044C":"-----",tooltip:d?"\u0418\u0437\u0432\u043B\u0435\u0447\u044C PDA":"\u0412\u0441\u0442\u0430\u0432\u0438\u0442\u044C PDA",tooltipPosition:"left",onClick:function(){function b(){return i(d?"eject_pda":"insert_pda")}return b}()}),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"\u0418\u043C\u044F",children:c||"\u041D/\u0414"}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"\u0414\u043E\u043B\u0436\u043D\u043E\u0441\u0442\u044C",children:v||"\u041D/\u0414"})]})}),(0,e.createComponentVNode)(2,o.Section,{children:(0,e.createComponentVNode)(2,o.Flex,{height:"100%",direction:"column",flex:"1",children:(0,e.createComponentVNode)(2,o.Flex.Item,{children:[(0,e.createComponentVNode)(2,o.Box,{textAlign:"center",children:(0,e.createComponentVNode)(2,o.Box,{as:"img",height:"160px",src:d?"data:image/png;base64,"+m:"",style:{"-ms-interpolation-mode":"nearest-neighbor"},align:"middle"})}),(0,e.createComponentVNode)(2,o.LabeledList,{m:"5px",children:(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"\u0421\u0442\u0430\u0442\u0443\u0441",children:f})}),(0,e.createComponentVNode)(2,o.Button.Confirm,{m:"5px",fluid:!0,disabled:!d,content:"\u0421\u0442\u0435\u0440\u0435\u0442\u044C PDA",confirmContent:"\u041F\u043E\u0434\u0442\u0432\u0435\u0440\u0434\u0438\u0442\u044C?",textAlign:"left",color:"red",tooltip:"C\u0431\u0440\u043E\u0441\u0438\u0442\u044C \u0442\u0435\u043B\u0435\u0444\u043E\u043D \u043D\u0430 \u0437\u0430\u0432\u043E\u0434\u0441\u043A\u0438\u0435 \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438",tooltipPosition:"top",onClick:function(){function b(){return i("erase_pda")}return b}()})]})})})]}),(0,e.createComponentVNode)(2,o.Flex.Item,{width:27,children:(0,e.createComponentVNode)(2,o.Flex,{direction:"column",height:"100%",flex:"1",children:(0,e.createComponentVNode)(2,o.Section,{title:"\u0426\u0432\u0435\u0442 PDA",flexGrow:"1",scrollable:!0,fill:!0,children:(0,e.createComponentVNode)(2,o.Table,{children:Object.keys(u).map(function(b){return(0,e.createComponentVNode)(2,y,{selectedPda:b,selectedPdaImage:u[b][0]},b)})})})})})]})})})}return V}(),y=r.PDAColorRow=function(){function V(k,S){var p=(0,a.useBackend)(S),i=p.act,l=p.data,f=l.hasPDA,u=k.selectedPda,d=k.selectedPdaImage;return(0,e.createComponentVNode)(2,o.Table.Row,{children:[(0,e.createComponentVNode)(2,o.Table.Cell,{collapsing:!0,children:(0,e.createVNode)(1,"img",null,null,1,{src:"data:image/png;base64,"+d,style:{"vertical-align":"middle",width:"32px",margin:"0px","margin-left":"0px"}})}),(0,e.createComponentVNode)(2,o.Table.Cell,{bold:!0,children:(0,e.createComponentVNode)(2,o.Button.Confirm,{fluid:!0,disabled:!f,icon:d,content:u,confirmContent:"\u041F\u043E\u043A\u0440\u0430\u0441\u0438\u0442\u044C?",textAlign:"left",onClick:function(){function m(){return i("choose_pda",{selectedPda:u,selectedPdaImage:d})}return m}()})})]})}return V}()},78704:function(I,r,n){"use strict";r.__esModule=!0,r.Pacman=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),s=n(92986),y=r.Pacman=function(){function V(k,S){var p=(0,a.useBackend)(S),i=p.act,l=p.data,f=l.broken,u=l.anchored,d=l.active,m=l.fuel_type,c=l.fuel_usage,v=l.fuel_stored,b=l.fuel_cap,C=l.is_ai,h=l.tmp_current,g=l.tmp_max,N=l.tmp_overheat,x=l.output_max,B=l.power_gen,L=l.output_set,w=l.has_fuel,A=v/b,T=h/g,E=L*B,O=Math.round(v/c),P=Math.round(O/60),R=O>120?P+" minutes":O+" seconds";return(0,e.createComponentVNode)(2,o.Window,{width:500,height:260,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(f||!u)&&(0,e.createComponentVNode)(2,t.Section,{title:"Status",children:[!!f&&(0,e.createComponentVNode)(2,t.Box,{color:"orange",children:"The generator is malfunctioning!"}),!f&&!u&&(0,e.createComponentVNode)(2,t.Box,{color:"orange",children:"The generator needs to be anchored to the floor with a wrench."})]}),!f&&!!u&&(0,e.createVNode)(1,"div",null,[(0,e.createComponentVNode)(2,t.Section,{title:"Status",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:d?"power-off":"times",content:d?"On":"Off",tooltip:"Toggles the generator on/off. Requires fuel.",tooltipPosition:"left",disabled:!w,selected:d,onClick:function(){function F(){return i("toggle_power")}return F}()}),children:(0,e.createComponentVNode)(2,t.Flex,{direction:"row",children:[(0,e.createComponentVNode)(2,t.Flex.Item,{width:"50%",className:"ml-1",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power setting",children:[(0,e.createComponentVNode)(2,t.NumberInput,{value:L,minValue:1,maxValue:x,step:1,className:"mt-1",onDrag:function(){function F(j,U){return i("change_power",{change_power:U})}return F}()}),"(",(0,s.formatPower)(E),")"]})})}),(0,e.createComponentVNode)(2,t.Flex.Item,{width:"50%",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Temperature",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:T,ranges:{green:[-1/0,.33],orange:[.33,.66],red:[.66,1/0]},children:[h," \u2103"]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:[N>50&&(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"CRITICAL OVERHEAT!"}),N>20&&N<=50&&(0,e.createComponentVNode)(2,t.Box,{color:"orange",children:"WARNING: Overheating!"}),N>1&&N<=20&&(0,e.createComponentVNode)(2,t.Box,{color:"orange",children:"Temperature High"}),N===0&&(0,e.createComponentVNode)(2,t.Box,{color:"green",children:"Optimal"})]})]})})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Fuel",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"eject",content:"Eject Fuel",tooltip:"Ejects fuel. Generator needs to be offline.",tooltipPosition:"left",disabled:d||C||!w,onClick:function(){function F(){return i("eject_fuel")}return F}()}),children:(0,e.createComponentVNode)(2,t.Grid,{children:[(0,e.createComponentVNode)(2,t.Grid.Column,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Type",children:m}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Fuel level",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:A,ranges:{red:[-1/0,.33],orange:[.33,.66],green:[.66,1/0]},children:[Math.round(v/1e3)," dm\xB3"]})})]})}),(0,e.createComponentVNode)(2,t.Grid.Column,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Fuel usage",children:[c/1e3," dm\xB3/s"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Fuel depletion",children:[!!w&&(c?R:"N/A"),!w&&(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Out of fuel"})]})]})})]})})],4)]})})}return V}()},81378:function(I,r,n){"use strict";r.__esModule=!0,r.PersonalCrafting=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),s=r.PersonalCrafting=function(){function k(S,p){var i=(0,a.useBackend)(p),l=i.act,f=i.data,u=f.busy,d=f.category,m=f.display_craftable_only,c=f.display_compact,v=f.prev_cat,b=f.next_cat,C=f.subcategory,h=f.prev_subcat,g=f.next_subcat;return(0,e.createComponentVNode)(2,o.Window,{width:700,height:800,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[!!u&&(0,e.createComponentVNode)(2,t.Dimmer,{fontSize:"32px",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"cog",spin:1})," Crafting..."]}),(0,e.createComponentVNode)(2,t.Section,{title:d,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{content:"Show Craftable Only",icon:m?"check-square-o":"square-o",selected:m,onClick:function(){function N(){return l("toggle_recipes")}return N}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Compact Mode",icon:c?"check-square-o":"square-o",selected:c,onClick:function(){function N(){return l("toggle_compact")}return N}()})],4),children:[(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Button,{content:v,icon:"arrow-left",onClick:function(){function N(){return l("backwardCat")}return N}()}),(0,e.createComponentVNode)(2,t.Button,{content:b,icon:"arrow-right",onClick:function(){function N(){return l("forwardCat")}return N}()})]}),C&&(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Button,{content:h,icon:"arrow-left",onClick:function(){function N(){return l("backwardSubCat")}return N}()}),(0,e.createComponentVNode)(2,t.Button,{content:g,icon:"arrow-right",onClick:function(){function N(){return l("forwardSubCat")}return N}()})]}),c?(0,e.createComponentVNode)(2,y):(0,e.createComponentVNode)(2,V)]})]})})}return k}(),y=function(S,p){var i=(0,a.useBackend)(p),l=i.act,f=i.data,u=f.display_craftable_only,d=f.can_craft,m=f.cant_craft;return(0,e.createComponentVNode)(2,t.Box,{mt:1,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[d.map(function(c){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:c.name,children:[(0,e.createComponentVNode)(2,t.Button,{icon:"hammer",content:"Craft",onClick:function(){function v(){return l("make",{make:c.ref})}return v}()}),c.catalyst_text&&(0,e.createComponentVNode)(2,t.Button,{tooltip:c.catalyst_text,content:"Catalysts",color:"transparent"}),(0,e.createComponentVNode)(2,t.Button,{tooltip:c.req_text,content:"Requirements",color:"transparent"}),c.tool_text&&(0,e.createComponentVNode)(2,t.Button,{tooltip:c.tool_text,content:"Tools",color:"transparent"})]},c.name)}),!u&&m.map(function(c){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:c.name,children:[(0,e.createComponentVNode)(2,t.Button,{icon:"hammer",content:"Craft",disabled:!0}),c.catalyst_text&&(0,e.createComponentVNode)(2,t.Button,{tooltip:c.catalyst_text,content:"Catalysts",color:"transparent"}),(0,e.createComponentVNode)(2,t.Button,{tooltip:c.req_text,content:"Requirements",color:"transparent"}),c.tool_text&&(0,e.createComponentVNode)(2,t.Button,{tooltip:c.tool_text,content:"Tools",color:"transparent"})]},c.name)})]})})},V=function(S,p){var i=(0,a.useBackend)(p),l=i.act,f=i.data,u=f.display_craftable_only,d=f.can_craft,m=f.cant_craft;return(0,e.createComponentVNode)(2,t.Box,{mt:1,children:[d.map(function(c){return(0,e.createComponentVNode)(2,t.Section,{title:c.name,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"hammer",content:"Craft",onClick:function(){function v(){return l("make",{make:c.ref})}return v}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[c.catalyst_text&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Catalysts",children:c.catalyst_text}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Requirements",children:c.req_text}),c.tool_text&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Tools",children:c.tool_text})]})},c.name)}),!u&&m.map(function(c){return(0,e.createComponentVNode)(2,t.Section,{title:c.name,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"hammer",content:"Craft",disabled:!0}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[c.catalyst_text&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Catalysts",children:c.catalyst_text}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Requirements",children:c.req_text}),c.tool_text&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Tools",children:c.tool_text})]})},c.name)})]})}},58792:function(I,r,n){"use strict";r.__esModule=!0,r.Photocopier=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),s=n(50640),y=n(74041),V=n(78234);function k(f,u){var d=typeof Symbol!="undefined"&&f[Symbol.iterator]||f["@@iterator"];if(d)return(d=d.call(f)).next.bind(d);if(Array.isArray(f)||(d=S(f))||u&&f&&typeof f.length=="number"){d&&(f=d);var m=0;return function(){return m>=f.length?{done:!0}:{done:!1,value:f[m++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function S(f,u){if(f){if(typeof f=="string")return p(f,u);var d=Object.prototype.toString.call(f).slice(8,-1);if(d==="Object"&&f.constructor&&(d=f.constructor.name),d==="Map"||d==="Set")return Array.from(f);if(d==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(d))return p(f,u)}}function p(f,u){(u==null||u>f.length)&&(u=f.length);for(var d=0,m=new Array(u);df?this.substring(0,f)+"...":this};var i=function(u,d){d===void 0&&(d="");var m=(0,V.createSearch)(d,function(c){return c.altername});return(0,y.flow)([(0,s.filter)(function(c){return c==null?void 0:c.altername}),d&&(0,s.filter)(m),(0,s.sortBy)(function(c){return c.id})])(u)},l=r.Photocopier=function(){function f(u,d){for(var m=(0,a.useBackend)(d),c=m.act,v=m.data,b=v.copies,C=v.maxcopies,h=(0,a.useLocalState)(d,"searchText",""),g=h[0],N=h[1],x=i((0,s.sortBy)(function(R){return R.category})(v.forms||[]),g),B=[],L=k(x),w;!(w=L()).done;){var A=w.value;B.includes(A.category)||B.push(A.category)}var T=(0,a.useLocalState)(d,"number",0),E=T[0],O=T[1],P;return v.category===""?P=x:P=x.filter(function(R){return R.category===v.category}),(0,e.createComponentVNode)(2,o.Window,{width:550,height:575,theme:v.ui_theme,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{basis:"40%",children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Section,{title:"\u0421\u0442\u0430\u0442\u0443\u0441",children:[(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"50%",mt:.3,color:"grey",children:"\u0417\u0430\u0440\u044F\u0434 \u0442\u043E\u043D\u0435\u0440\u0430:"}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:"50%",children:(0,e.createComponentVNode)(2,t.ProgressBar,{minValue:0,maxValue:30,value:v.toner})})]}),(0,e.createComponentVNode)(2,t.Stack,{mt:1,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"50%",mb:.3,color:"grey",children:"\u0424\u043E\u0440\u043C\u0430:"}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:"50%",textAlign:"center",bold:!0,children:v.form_id===""?"\u041D\u0435 \u0432\u044B\u0431\u0440\u0430\u043D\u0430":v.form_id})]}),(0,e.createComponentVNode)(2,t.Stack,{children:(0,e.createComponentVNode)(2,t.Stack.Item,{width:"100%",mt:1,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",disabled:!v.copyitem&&!v.mob,icon:v.copyitem||v.mob?"eject":"times",content:v.copyitem?v.copyitem:v.mob?"\u0416\u043E\u043F\u0430 "+v.mob+"!":"\u0421\u043B\u043E\u0442 \u0434\u043B\u044F \u0434\u043E\u043A\u0443\u043C\u0435\u043D\u0442\u0430",onClick:function(){function R(){return c("removedocument")}return R}()})})}),(0,e.createComponentVNode)(2,t.Stack,{children:(0,e.createComponentVNode)(2,t.Stack.Item,{width:"100%",mt:"3px",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",disabled:!v.folder,icon:v.folder?"eject":"times",content:v.folder?v.folder:"\u0421\u043B\u043E\u0442 \u0434\u043B\u044F \u043F\u0430\u043F\u043A\u0438",onClick:function(){function R(){return c("removefolder")}return R}()})})})]}),(0,e.createComponentVNode)(2,t.Section,{title:"\u0423\u043F\u0440\u0430\u0432\u043B\u0435\u043D\u0438\u0435",children:[(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,width:"100%",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"print",disabled:v.toner===0||v.form===null,content:"\u041F\u0435\u0447\u0430\u0442\u044C",onClick:function(){function R(){return c("print_form")}return R}()})}),!!v.isAI&&(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,width:"100%",ml:"5px",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"image",disabled:v.toner<5,content:"\u0424\u043E\u0442\u043E",tooltip:"\u0420\u0430\u0441\u043F\u0435\u0447\u0430\u0442\u0430\u0442\u044C \u0444\u043E\u0442\u043E \u0441 \u0411\u0430\u0437\u044B \u0414\u0430\u043D\u043D\u044B\u0445",onClick:function(){function R(){return c("ai_pic")}return R}()})})]}),(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,width:"100%",mt:"3px",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"copy",content:"\u041A\u043E\u043F\u0438\u044F",disabled:v.toner===0||!v.copyitem&&!v.mob,onClick:function(){function R(){return c("copy")}return R}()})}),!!v.isAI&&(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,width:"100%",ml:"5px",mt:"3px",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"i-cursor",content:"\u0422\u0435\u043A\u0441\u0442",tooltip:"\u0420\u0430\u0441\u043F\u0435\u0447\u0430\u0442\u0430\u0442\u044C \u0441\u0432\u043E\u0439 \u0442\u0435\u043A\u0441\u0442",disabled:v.toner===0,onClick:function(){function R(){return c("ai_text")}return R}()})})]}),(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{mr:1.5,mt:1.2,width:"50%",color:"grey",children:"\u041A\u043E\u043B\u0438\u0447\u0435\u0441\u0442\u0432\u043E:"}),(0,e.createComponentVNode)(2,t.Slider,{mt:.75,width:"50%",animated:!0,minValue:1,maxValue:C,value:b,stepPixelSize:10,onChange:function(){function R(F,j){return c("copies",{new:j})}return R}()})]})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,mt:0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"\u0411\u044E\u0440\u043E\u043A\u0440\u0430\u0442\u0438\u044F",children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,mb:-.5,icon:"chevron-right",color:"transparent",content:"\u0412\u0441\u0435 \u0444\u043E\u0440\u043C\u044B",selected:!v.category,onClick:function(){function R(){return c("choose_category",{category:""})}return R}()})}),B.map(function(R){return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"chevron-right",mb:-.5,color:"transparent",content:R,selected:v.category===R,onClick:function(){function F(){return c("choose_category",{category:R})}return F}()},R)},R)})]})})})]})}),(0,e.createComponentVNode)(2,t.Stack.Item,{basis:"60%",children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:v.category||"\u0412\u0441\u0435 \u0444\u043E\u0440\u043C\u044B",buttons:(0,e.createComponentVNode)(2,t.Input,{mr:18.5,width:"100%",placeholder:"\u041F\u043E\u0438\u0441\u043A \u0444\u043E\u0440\u043C\u044B",onInput:function(){function R(F,j){return N(j)}return R}()}),children:P.map(function(R){return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,mb:.5,color:"transparent",content:R.altername.trimLongStr(37),tooltip:R.altername,selected:v.form_id===R.id,onClick:function(){function F(){return c("choose_form",{path:R.path,id:R.id})}return F}()})},R.path)})})})]})})})}return f}()},43220:function(I,r,n){"use strict";r.__esModule=!0,r.PodTracking=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),s=r.PodTracking=function(){function y(V,k){var S=(0,a.useBackend)(k),p=S.act,i=S.data,l=i.pods;return(0,e.createComponentVNode)(2,o.Window,{width:400,height:500,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:l.map(function(f){return(0,e.createComponentVNode)(2,t.Section,{title:f.name,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Position",children:[f.podx,", ",f.pody,", ",f.podz]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Pilot",children:f.pilot}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Passengers",children:f.passengers})]})},f.name)})})})}return y}()},27902:function(I,r,n){"use strict";r.__esModule=!0,r.PoolController=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),s=["tempKey"];function y(p,i){if(p==null)return{};var l={},f=Object.keys(p),u,d;for(d=0;d=0)&&(l[u]=p[u]);return l}var V={scalding:{label:"Scalding",color:"#FF0000",icon:"fa fa-arrow-circle-up",requireEmag:!0},warm:{label:"Warm",color:"#990000",icon:"fa fa-arrow-circle-up"},normal:{label:"Normal",color:null,icon:"fa fa-arrow-circle-right"},cool:{label:"Cool",color:"#009999",icon:"fa fa-arrow-circle-down"},frigid:{label:"Frigid",color:"#00CCCC",icon:"fa fa-arrow-circle-down",requireEmag:!0}},k=function(i,l){var f=i.tempKey,u=y(i,s),d=V[f];if(!d)return null;var m=(0,a.useBackend)(l),c=m.data,v=m.act,b=c.currentTemp,C=d.label,h=d.icon,g=f===b,N=function(){v("setTemp",{temp:f})};return(0,e.normalizeProps)((0,e.createComponentVNode)(2,t.Button,Object.assign({selected:g,onClick:N},u,{children:[(0,e.createComponentVNode)(2,t.Icon,{name:h}),C]})))},S=r.PoolController=function(){function p(i,l){for(var f=(0,a.useBackend)(l),u=f.data,d=u.emagged,m=u.currentTemp,c=V[m]||V.normal,v=c.label,b=c.color,C=[],h=0,g=Object.entries(V);h50?"battery-half":"battery-quarter")||b==="C"&&"bolt"||b==="F"&&"battery-full"||b==="M"&&"slash",color:b==="N"&&(C>50?"yellow":"red")||b==="C"&&"yellow"||b==="F"&&"green"||b==="M"&&"orange"}),(0,e.createComponentVNode)(2,k.Box,{inline:!0,width:"36px",textAlign:"right",children:(0,o.toFixed)(C)+"%"})],4)};d.defaultHooks=s.pureComponentHooks;var m=function(v){var b,C,h=v.status;switch(h){case"AOn":b=!0,C=!0;break;case"AOff":b=!0,C=!1;break;case"On":b=!1,C=!0;break;case"Off":b=!1,C=!1;break}var g=(C?"On":"Off")+(" ["+(b?"auto":"manual")+"]");return(0,e.createComponentVNode)(2,k.ColorBox,{color:C?"good":"bad",content:b?void 0:"M",title:g})};m.defaultHooks=s.pureComponentHooks},27262:function(I,r,n){"use strict";r.__esModule=!0,r.PrisonerImplantManager=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(91097),s=n(99665),y=n(68159),V=n(27527),k=n(45493),S=r.PrisonerImplantManager=function(){function p(i,l){var f=(0,a.useBackend)(l),u=f.act,d=f.data,m=d.loginState,c=d.prisonerInfo,v=d.chemicalInfo,b=d.trackingInfo,C;if(!m.logged_in)return(0,e.createComponentVNode)(2,k.Window,{theme:"security",width:500,height:850,children:(0,e.createComponentVNode)(2,k.Window.Content,{children:(0,e.createComponentVNode)(2,V.LoginScreen)})});var h=[1,5,10];return(0,e.createComponentVNode)(2,k.Window,{theme:"security",width:500,height:850,children:[(0,e.createComponentVNode)(2,s.ComplexModal),(0,e.createComponentVNode)(2,k.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,y.LoginInfo),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Prisoner Points Manager System",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Prisoner",children:(0,e.createComponentVNode)(2,t.Button,{icon:c.name?"eject":"id-card",selected:c.name,content:c.name?c.name:"-----",tooltip:c.name?"Eject ID":"Insert ID",onClick:function(){function g(){return u("id_card")}return g}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Points",children:[c.points!==null?c.points:"-/-",(0,e.createComponentVNode)(2,t.Button,{ml:2,icon:"minus-square",disabled:c.points===null,content:"Reset",onClick:function(){function g(){return u("reset_points")}return g}()})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Point Goal",children:[c.goal!==null?c.goal:"-/-",(0,e.createComponentVNode)(2,t.Button,{ml:2,icon:"pen",disabled:c.goal===null,content:"Edit",onClick:function(){function g(){return(0,s.modalOpen)(l,"set_points")}return g}()})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{children:(0,e.createVNode)(1,"box",null,[(0,e.createTextVNode)("1 minute of prison time should roughly equate to 150 points."),(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("Sentences should not exceed 5000 points."),(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("Permanent prisoners should not be given a point goal."),(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("Prisoners who meet their point goal will be able to automatically access their locker and return to the station using the shuttle.")],4,{hidden:c.goal===null})})]})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Tracking Implants",children:b.map(function(g){return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{p:1,backgroundColor:"rgba(255, 255, 255, 0.05)",children:[(0,e.createComponentVNode)(2,t.Box,{bold:!0,children:["Subject: ",g.subject]}),(0,e.createComponentVNode)(2,t.Box,{children:[" ",(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Location",children:g.location}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Health",children:g.health}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Prisoner",children:(0,e.createComponentVNode)(2,t.Button,{icon:"exclamation-triangle",content:"Warn",tooltip:"Broadcast a message to this poor sod",onClick:function(){function N(){return(0,s.modalOpen)(l,"warn",{uid:g.uid})}return N}()})})]})]},g.subject)]}),(0,e.createVNode)(1,"br")],4)})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Chemical Implants",children:v.map(function(g){return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{p:1,backgroundColor:"rgba(255, 255, 255, 0.05)",children:[(0,e.createComponentVNode)(2,t.Box,{bold:!0,children:["Subject: ",g.name]}),(0,e.createComponentVNode)(2,t.Box,{children:[" ",(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,o.LabeledList,{children:(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Remaining Reagents",children:g.volume})}),h.map(function(N){return(0,e.createComponentVNode)(2,t.Button,{mt:2,disabled:g.volume1100?"purple":m>500?"orange":m>250?"yellow":"green"},k=function(m,c){for(var v=[],b=0;b0?"envelope-open-text":"envelope",onClick:function(){function N(){return c("setScreen",{setScreen:6})}return N}()})}),(0,e.createComponentVNode)(2,t.Box,{mt:2,children:[(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Request Assistance",icon:"hand-paper",onClick:function(){function N(){return c("setScreen",{setScreen:1})}return N}()})}),(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Request Supplies",icon:"box",onClick:function(){function N(){return c("setScreen",{setScreen:2})}return N}()})}),(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Relay Anonymous Information",icon:"comment",onClick:function(){function N(){return c("setScreen",{setScreen:3})}return N}()})})]}),(0,e.createComponentVNode)(2,t.Box,{mt:2,children:[(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Print Shipping Label",icon:"tag",onClick:function(){function N(){return c("setScreen",{setScreen:9})}return N}()})}),(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:"View Shipping Logs",icon:"clipboard-list",onClick:function(){function N(){return c("setScreen",{setScreen:10})}return N}()})})]}),!!C&&(0,e.createComponentVNode)(2,t.Box,{mt:2,children:(0,e.createComponentVNode)(2,t.Button,{content:"Send Station-Wide Announcement",icon:"bullhorn",onClick:function(){function N(){return c("setScreen",{setScreen:8})}return N}()})}),(0,e.createComponentVNode)(2,t.Box,{mt:2,children:(0,e.createComponentVNode)(2,t.Button,{content:h?"Speaker Off":"Speaker On",selected:!h,icon:h?"volume-mute":"volume-up",onClick:function(){function N(){return c("toggleSilent")}return N}()})})]})},V=function(u,d){var m=(0,a.useBackend)(d),c=m.act,v=m.data,b=v.department,C,h;switch(u.purpose){case"ASSISTANCE":C=v.assist_dept,h="Request assistance from another department";break;case"SUPPLIES":C=v.supply_dept,h="Request supplies from another department";break;case"INFO":C=v.info_dept,h="Relay information to another department";break}return(0,e.createComponentVNode)(2,t.Section,{title:h,buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Back",icon:"arrow-left",onClick:function(){function g(){return c("setScreen",{setScreen:0})}return g}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:C.filter(function(g){return g!==b}).map(function(g){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:g,children:[(0,e.createComponentVNode)(2,t.Button,{content:"Message",icon:"envelope",onClick:function(){function N(){return c("writeInput",{write:g,priority:1})}return N}()}),(0,e.createComponentVNode)(2,t.Button,{content:"High Priority",icon:"exclamation-circle",onClick:function(){function N(){return c("writeInput",{write:g,priority:2})}return N}()})]},g)})})})},k=function(u,d){var m=(0,a.useBackend)(d),c=m.act,v=m.data,b;switch(u.type){case"SUCCESS":b="Message sent successfully";break;case"FAIL":b="Request supplies from another department";break}return(0,e.createComponentVNode)(2,t.Section,{title:b,buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Back",icon:"arrow-left",onClick:function(){function C(){return c("setScreen",{setScreen:0})}return C}()})})},S=function(u,d){var m=(0,a.useBackend)(d),c=m.act,v=m.data,b,C;switch(u.type){case"MESSAGES":b=v.message_log,C="Message Log";break;case"SHIPPING":b=v.shipping_log,C="Shipping label print log";break}return(0,e.createComponentVNode)(2,t.Section,{title:C,buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Back",icon:"arrow-left",onClick:function(){function h(){return c("setScreen",{setScreen:0})}return h}()}),children:b.map(function(h){return(0,e.createComponentVNode)(2,t.Box,{className:"RequestConsole__message",children:h},h)})})},p=function(u,d){var m=(0,a.useBackend)(d),c=m.act,v=m.data,b=v.recipient,C=v.message,h=v.msgVerified,g=v.msgStamped;return(0,e.createComponentVNode)(2,t.Section,{title:"Message Authentication",buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Back",icon:"arrow-left",onClick:function(){function N(){return c("setScreen",{setScreen:0})}return N}()}),children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Recipient",children:b}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Message",children:C}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Validated by",color:"green",children:h}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Stamped by",color:"blue",children:g})]}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,mt:1,textAlign:"center",content:"Send Message",icon:"envelope",onClick:function(){function N(){return c("department",{department:b})}return N}()})]})},i=function(u,d){var m=(0,a.useBackend)(d),c=m.act,v=m.data,b=v.message,C=v.announceAuth;return(0,e.createComponentVNode)(2,t.Section,{title:"Station-Wide Announcement",buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Back",icon:"arrow-left",onClick:function(){function h(){return c("setScreen",{setScreen:0})}return h}()}),children:[(0,e.createComponentVNode)(2,t.Button,{content:b||"Edit Message",icon:"edit",onClick:function(){function h(){return c("writeAnnouncement")}return h}()}),C?(0,e.createComponentVNode)(2,t.Box,{mt:1,color:"green",children:"ID verified. Authentication accepted."}):(0,e.createComponentVNode)(2,t.Box,{mt:1,children:"Swipe your ID card to authenticate yourself."}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,mt:1,textAlign:"center",content:"Send Announcement",icon:"bullhorn",disabled:!(C&&b),onClick:function(){function h(){return c("sendAnnouncement")}return h}()})]})},l=function(u,d){var m=(0,a.useBackend)(d),c=m.act,v=m.data,b=v.shipDest,C=v.msgVerified,h=v.ship_dept;return(0,e.createComponentVNode)(2,t.Section,{title:"Print Shipping Label",buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Back",icon:"arrow-left",onClick:function(){function g(){return c("setScreen",{setScreen:0})}return g}()}),children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Destination",children:b}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Validated by",children:C})]}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,mt:1,textAlign:"center",content:"Print Label",icon:"print",disabled:!(b&&C),onClick:function(){function g(){return c("printLabel")}return g}()}),(0,e.createComponentVNode)(2,t.Section,{title:"Destinations",mt:1,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:h.map(function(g){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:g,children:(0,e.createComponentVNode)(2,t.Button,{content:b===g?"Selected":"Select",selected:b===g,onClick:function(){function N(){return c("shipSelect",{shipSelect:g})}return N}()})},g)})})})]})}},29392:function(I,r,n){"use strict";r.__esModule=!0,r.RequestManager=void 0;var e=n(96524),a=n(78234),t=n(17899),o=n(24674),s=n(45493);/** + */var y=(0,t.createLogger)("hotkeys"),V={},k=[e.KEY_ESCAPE,e.KEY_ENTER,e.KEY_SPACE,e.KEY_TAB,e.KEY_CTRL,e.KEY_SHIFT,e.KEY_UP,e.KEY_DOWN,e.KEY_LEFT,e.KEY_RIGHT],S={},p=function(c){if(c===16)return"Shift";if(c===17)return"Ctrl";if(c===18)return"Alt";if(c===33)return"Northeast";if(c===34)return"Southeast";if(c===35)return"Southwest";if(c===36)return"Northwest";if(c===37)return"West";if(c===38)return"North";if(c===39)return"East";if(c===40)return"South";if(c===45)return"Insert";if(c===46)return"Delete";if(c>=48&&c<=57||c>=65&&c<=90)return String.fromCharCode(c);if(c>=96&&c<=105)return"Numpad"+(c-96);if(c>=112&&c<=123)return"F"+(c-111);if(c===188)return",";if(c===189)return"-";if(c===190)return"."},i=function(c){var v=String(c);if(v==="Ctrl+F5"||v==="Ctrl+R"){location.reload();return}if(v!=="Ctrl+F"&&!(c.event.defaultPrevented||c.isModifierKey()||k.includes(c.code))){v==="F5"&&(c.event.preventDefault(),c.event.returnValue=!1);var b=p(c.code);if(b){var C=V[b];if(C)return y.debug("macro",C),Byond.command(C);if(c.isDown()&&!S[b]){S[b]=!0;var h='KeyDown "'+b+'"';return y.debug(h),Byond.command(h)}if(c.isUp()&&S[b]){S[b]=!1;var g='KeyUp "'+b+'"';return y.debug(g),Byond.command(g)}}}},l=r.acquireHotKey=function(){function m(c){k.push(c)}return m}(),f=r.releaseHotKey=function(){function m(c){var v=k.indexOf(c);v>=0&&k.splice(v,1)}return m}(),u=r.releaseHeldKeys=function(){function m(){for(var c=0,v=Object.keys(S);c=75?l="green":i.integrity>=25?l="yellow":l="red",(0,e.createComponentVNode)(2,o.Window,{width:600,height:420,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:i.name,children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Integrity",children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:l,value:i.integrity/100})})}),(0,e.createComponentVNode)(2,t.Box,{color:"red",children:(0,e.createVNode)(1,"h2",null,i.flushing===1?"Wipe of AI in progress...":"",0)})]})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Laws",children:!!i.has_laws&&(0,e.createComponentVNode)(2,t.Box,{children:i.laws.map(function(f,u){return(0,e.createComponentVNode)(2,t.Box,{children:f},u)})})||(0,e.createComponentVNode)(2,t.Box,{color:"red",children:(0,e.createVNode)(1,"h3",null,"No laws detected.",16)})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Actions",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Wireless Activity",children:(0,e.createComponentVNode)(2,t.Button,{width:10,icon:i.wireless?"check":"times",content:i.wireless?"Enabled":"Disabled",color:i.wireless?"green":"red",onClick:function(){function f(){return p("wireless")}return f}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Subspace Transceiver",children:(0,e.createComponentVNode)(2,t.Button,{width:10,icon:i.radio?"check":"times",content:i.radio?"Enabled":"Disabled",color:i.radio?"green":"red",onClick:function(){function f(){return p("radio")}return f}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Wipe",children:(0,e.createComponentVNode)(2,t.Button.Confirm,{width:10,icon:"trash-alt",confirmIcon:"trash-alt",disabled:i.flushing||i.integrity===0,confirmColor:"red",content:"Wipe AI",onClick:function(){function f(){return p("wipe")}return f}()})})]})})})]})})})}return y}()},78468:function(I,r,n){"use strict";r.__esModule=!0,r.AIFixer=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),s=r.AIFixer=function(){function y(V,k){var S=(0,a.useBackend)(k),p=S.act,i=S.data;if(i.occupant===null)return(0,e.createComponentVNode)(2,o.Window,{width:550,height:500,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Stored AI",children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,grow:!0,textAlign:"center",align:"center",color:"average",children:[(0,e.createComponentVNode)(2,t.Icon.Stack,{children:[(0,e.createComponentVNode)(2,t.Icon,{name:"robot",size:5,color:"silver"}),(0,e.createComponentVNode)(2,t.Icon,{name:"slash",size:5,color:"red"})]}),(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"h3",null,"No Artificial Intelligence detected.",16)]})})})})});var l=!0;(i.stat===2||i.stat===null)&&(l=!1);var f=null;i.integrity>=75?f="green":i.integrity>=25?f="yellow":f="red";var u=!0;return i.integrity>=100&&i.stat!==2&&(u=!1),(0,e.createComponentVNode)(2,o.Window,{scrollable:!0,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:i.occupant,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Integrity",children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:f,value:i.integrity/100})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",color:l?"green":"red",children:l?"Functional":"Non-Functional"})]})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Laws",children:!!i.has_laws&&(0,e.createComponentVNode)(2,t.Box,{children:i.laws.map(function(d,m){return(0,e.createComponentVNode)(2,t.Box,{inline:!0,children:d},m)})})||(0,e.createComponentVNode)(2,t.Box,{color:"red",children:(0,e.createVNode)(1,"h3",null,"No laws detected.",16)})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Actions",children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Wireless Activity",children:(0,e.createComponentVNode)(2,t.Button,{icon:i.wireless?"times":"check",content:i.wireless?"Disabled":"Enabled",color:i.wireless?"red":"green",onClick:function(){function d(){return p("wireless")}return d}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Subspace Transceiver",children:(0,e.createComponentVNode)(2,t.Button,{icon:i.radio?"times":"check",content:i.radio?"Disabled":"Enabled",color:i.radio?"red":"green",onClick:function(){function d(){return p("radio")}return d}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Start Repairs",children:(0,e.createComponentVNode)(2,t.Button,{icon:"wrench",disabled:!u||i.active,content:!u||i.active?"Already Repaired":"Repair",onClick:function(){function d(){return p("fix")}return d}()})})]}),(0,e.createComponentVNode)(2,t.Box,{color:"green",lineHeight:2,children:i.active?"Reconstruction in progress.":""})]})})]})})})}return y}()},73544:function(I,r,n){"use strict";r.__esModule=!0,r.APC=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),s=n(26893),y=r.APC=function(){function p(i,l){return(0,e.createComponentVNode)(2,o.Window,{width:510,height:435,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,S)})})}return p}(),V={2:{color:"good",externalPowerText:"External Power",chargingText:"Fully Charged"},1:{color:"average",externalPowerText:"Low External Power",chargingText:"Charging"},0:{color:"bad",externalPowerText:"No External Power",chargingText:"Not Charging"}},k={1:{icon:"terminal",content:"Override Programming",action:"hack"},2:{icon:"caret-square-down",content:"Shunt Core Process",action:"occupy"},3:{icon:"caret-square-left",content:"Return to Main Core",action:"deoccupy"},4:{icon:"caret-square-down",content:"Shunt Core Process",action:"occupy"}},S=function(i,l){var f=(0,a.useBackend)(l),u=f.act,d=f.data,m=d.locked&&!d.siliconUser,c=d.normallyLocked,v=V[d.externalPower]||V[0],b=V[d.chargingStatus]||V[0],C=d.powerChannels||[],h=k[d.malfStatus]||k[0],g=d.powerCellStatus/100;return(0,e.createFragment)([(0,e.createComponentVNode)(2,s.InterfaceLockNoticeBox),(0,e.createComponentVNode)(2,t.Section,{title:"Power Status",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Main Breaker",color:v.color,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:d.isOperating?"power-off":"times",content:d.isOperating?"On":"Off",selected:d.isOperating&&!m,color:d.isOperating?"":"bad",disabled:m,onClick:function(){function N(){return u("breaker")}return N}()}),children:["[ ",v.externalPowerText," ]"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power Cell",children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:"good",value:g})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Charge Mode",color:b.color,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:d.chargeMode?"sync":"times",content:d.chargeMode?"Auto":"Off",selected:d.chargeMode,disabled:m,onClick:function(){function N(){return u("charge")}return N}()}),children:["[ ",b.chargingText," ]"]})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Power Channels",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[C.map(function(N){var x=N.topicParams;return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:N.title,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{inline:!0,mx:2,color:N.status>=2?"good":"bad",children:N.status>=2?"On":"Off"}),(0,e.createComponentVNode)(2,t.Button,{icon:"sync",content:"Auto",selected:!m&&(N.status===1||N.status===3),disabled:m,onClick:function(){function B(){return u("channel",x.auto)}return B}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"power-off",content:"On",selected:!m&&N.status===2,disabled:m,onClick:function(){function B(){return u("channel",x.on)}return B}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"times",content:"Off",selected:!m&&N.status===0,disabled:m,onClick:function(){function B(){return u("channel",x.off)}return B}()})],4),children:[N.powerLoad," W"]},N.title)}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Total Load",children:(0,e.createVNode)(1,"b",null,[d.totalLoad,(0,e.createTextVNode)(" W")],0)})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Misc",buttons:!!d.siliconUser&&(0,e.createFragment)([!!d.malfStatus&&(0,e.createComponentVNode)(2,t.Button,{icon:h.icon,content:h.content,color:"bad",onClick:function(){function N(){return u(h.action)}return N}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"lightbulb-o",content:"Overload",onClick:function(){function N(){return u("overload")}return N}()})],0),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cover Lock",buttons:(0,e.createComponentVNode)(2,t.Button,{mb:.4,icon:d.coverLocked?"lock":"unlock",content:d.coverLocked?"Engaged":"Disengaged",disabled:m,onClick:function(){function N(){return u("cover")}return N}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Night Shift Lighting",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"lightbulb-o",content:d.nightshiftLights?"Enabled":"Disabled",onClick:function(){function N(){return u("toggle_nightshift")}return N}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Emergency Lighting Fallback",buttons:(0,e.createComponentVNode)(2,t.Button,{mt:.4,icon:"lightbulb-o",content:d.emergencyLights?"Engaged":"Disengaged",disabled:m,onClick:function(){function N(){return u("emergency_lighting")}return N}()})})]})})],4)}},79098:function(I,r,n){"use strict";r.__esModule=!0,r.ATM=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),s=r.ATM=function(){function f(u,d){var m=(0,a.useBackend)(d),c=m.act,v=m.data,b=v.view_screen,C=v.authenticated_account,h=v.ticks_left_locked_down,g=v.linked_db,N;if(h>0)N=(0,e.createComponentVNode)(2,t.Box,{bold:!0,color:"bad",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"exclamation-triangle"}),"Maximum number of pin attempts exceeded! Access to this ATM has been temporarily disabled."]});else if(!g)N=(0,e.createComponentVNode)(2,t.Box,{bold:!0,color:"bad",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"exclamation-triangle"}),"Unable to connect to accounts database, please retry and if the issue persists contact Nanotrasen IT support."]});else if(C)switch(b){case 1:N=(0,e.createComponentVNode)(2,V);break;case 2:N=(0,e.createComponentVNode)(2,k);break;case 3:N=(0,e.createComponentVNode)(2,i);break;default:N=(0,e.createComponentVNode)(2,S)}else N=(0,e.createComponentVNode)(2,p);return(0,e.createComponentVNode)(2,o.Window,{width:550,height:650,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,y),(0,e.createComponentVNode)(2,t.Section,{children:N})]})})}return f}(),y=function(u,d){var m=(0,a.useBackend)(d),c=m.act,v=m.data,b=v.machine_id,C=v.held_card_name;return(0,e.createComponentVNode)(2,t.Section,{title:"Nanotrasen Automatic Teller Machine",children:[(0,e.createComponentVNode)(2,t.Box,{children:"For all your monetary needs!"}),(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Card",children:(0,e.createComponentVNode)(2,t.Button,{content:C,icon:"eject",onClick:function(){function h(){return c("insert_card")}return h}()})})})]})},V=function(u,d){var m=(0,a.useBackend)(d),c=m.act,v=m.data,b=v.security_level;return(0,e.createComponentVNode)(2,t.Section,{title:"Select a new security level for this account",children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Level",children:(0,e.createComponentVNode)(2,t.Button,{content:"Account Number",icon:"unlock",selected:b===0,onClick:function(){function C(){return c("change_security_level",{new_security_level:0})}return C}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Description",children:"Either the account number or card is required to access this account. EFTPOS transactions will require a card."}),(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Level",children:(0,e.createComponentVNode)(2,t.Button,{content:"Account Pin",icon:"unlock",selected:b===1,onClick:function(){function C(){return c("change_security_level",{new_security_level:1})}return C}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Description",children:"An account number and pin must be manually entered to access this account and process transactions."}),(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Level",children:(0,e.createComponentVNode)(2,t.Button,{content:"Card and Account Pin",icon:"unlock",selected:b===2,onClick:function(){function C(){return c("change_security_level",{new_security_level:2})}return C}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Description",children:"An account number, pin and card are required to access this account and process transactions."})]}),(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,l)]})},k=function(u,d){var m=(0,a.useBackend)(d),c=m.act,v=m.data,b=(0,a.useLocalState)(d,"targetAccNumber",0),C=b[0],h=b[1],g=(0,a.useLocalState)(d,"fundsAmount",0),N=g[0],x=g[1],B=(0,a.useLocalState)(d,"purpose",0),L=B[0],w=B[1],A=v.money;return(0,e.createComponentVNode)(2,t.Section,{title:"Transfer Fund",children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Account Balance",children:["$",A]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Target Account Number",children:(0,e.createComponentVNode)(2,t.Input,{placeholder:"7 Digit Number",onInput:function(){function T(E,O){return h(O)}return T}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Funds to Transfer",children:(0,e.createComponentVNode)(2,t.Input,{onInput:function(){function T(E,O){return x(O)}return T}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Transaction Purpose",children:(0,e.createComponentVNode)(2,t.Input,{fluid:!0,onInput:function(){function T(E,O){return w(O)}return T}()})})]}),(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,t.Button,{content:"Transfer",icon:"sign-out-alt",onClick:function(){function T(){return c("transfer",{target_acc_number:C,funds_amount:N,purpose:L})}return T}()}),(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,l)]})},S=function(u,d){var m=(0,a.useBackend)(d),c=m.act,v=m.data,b=(0,a.useLocalState)(d,"fundsAmount",0),C=b[0],h=b[1],g=v.owner_name,N=v.money;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{title:"Welcome, "+g,buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Logout",icon:"sign-out-alt",onClick:function(){function x(){return c("logout")}return x}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Account Balance",children:["$",N]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Withdrawal Amount",children:(0,e.createComponentVNode)(2,t.Input,{onInput:function(){function x(B,L){return h(L)}return x}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Withdraw Funds",icon:"sign-out-alt",onClick:function(){function x(){return c("withdrawal",{funds_amount:C})}return x}()})})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Menu",children:[(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Change account security level",icon:"lock",onClick:function(){function x(){return c("view_screen",{view_screen:1})}return x}()})}),(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Make transfer",icon:"exchange-alt",onClick:function(){function x(){return c("view_screen",{view_screen:2})}return x}()})}),(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:"View transaction log",icon:"list",onClick:function(){function x(){return c("view_screen",{view_screen:3})}return x}()})}),(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Print balance statement",icon:"print",onClick:function(){function x(){return c("balance_statement")}return x}()})})]})],4)},p=function(u,d){var m=(0,a.useBackend)(d),c=m.act,v=m.data,b=(0,a.useLocalState)(d,"accountID",null),C=b[0],h=b[1],g=(0,a.useLocalState)(d,"accountPin",null),N=g[0],x=g[1],B=v.machine_id,L=v.held_card_name;return(0,e.createComponentVNode)(2,t.Section,{title:"Insert card or enter ID and pin to login",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Account ID",children:(0,e.createComponentVNode)(2,t.Input,{placeholder:"6 Digit Number",onInput:function(){function w(A,T){return h(T)}return w}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Pin",children:(0,e.createComponentVNode)(2,t.Input,{placeholder:"6 Digit Number",onInput:function(){function w(A,T){return x(T)}return w}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Login",icon:"sign-in-alt",onClick:function(){function w(){return c("attempt_auth",{account_num:C,account_pin:N})}return w}()})})]})})},i=function(u,d){var m=(0,a.useBackend)(d),c=m.act,v=m.data,b=v.transaction_log;return(0,e.createComponentVNode)(2,t.Section,{title:"Transactions",children:[(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Timestamp"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Reason"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Value"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Terminal"})]}),b.map(function(C){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:C.time}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:C.purpose}),(0,e.createComponentVNode)(2,t.Table.Cell,{color:C.is_deposit?"green":"red",children:["$",C.amount]}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:C.target_name})]},C)})]}),(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,l)]})},l=function(u,d){var m=(0,a.useBackend)(d),c=m.act,v=m.data;return(0,e.createComponentVNode)(2,t.Button,{content:"Back",icon:"sign-out-alt",onClick:function(){function b(){return c("view_screen",{view_screen:0})}return b}()})}},64613:function(I,r,n){"use strict";r.__esModule=!0,r.AccountsUplinkTerminal=void 0;var e=n(96524),a=n(78234),t=n(17899),o=n(24674),s=n(5126),y=n(45493),V=n(68159),k=n(27527),S=r.AccountsUplinkTerminal=function(){function d(m,c){var v=(0,t.useBackend)(c),b=v.act,C=v.data,h=C.loginState,g=C.currentPage,N;if(h.logged_in)g===1?N=(0,e.createComponentVNode)(2,p):g===2?N=(0,e.createComponentVNode)(2,f):g===3&&(N=(0,e.createComponentVNode)(2,u));else return(0,e.createComponentVNode)(2,y.Window,{width:800,height:600,children:(0,e.createComponentVNode)(2,y.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,k.LoginScreen)})})});return(0,e.createComponentVNode)(2,y.Window,{width:800,height:600,children:(0,e.createComponentVNode)(2,y.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,V.LoginInfo),(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,children:N})]})})})}return d}(),p=function(m,c){var v=(0,t.useBackend)(c),b=v.act,C=v.data,h=C.accounts,g=(0,t.useLocalState)(c,"searchText",""),N=g[0],x=g[1],B=(0,t.useLocalState)(c,"sortId","owner_name"),L=B[0],w=B[1],A=(0,t.useLocalState)(c,"sortOrder",!0),T=A[0],E=A[1];return(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,l),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,o.Table,{className:"AccountsUplinkTerminal__list",children:[(0,e.createComponentVNode)(2,o.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,i,{id:"owner_name",children:"Account Holder"}),(0,e.createComponentVNode)(2,i,{id:"account_number",children:"Account Number"}),(0,e.createComponentVNode)(2,i,{id:"suspended",children:"Account Status"}),(0,e.createComponentVNode)(2,i,{id:"money",children:"Account Balance"})]}),h.filter((0,a.createSearch)(N,function(O){return O.owner_name+"|"+O.account_number+"|"+O.suspended+"|"+O.money})).sort(function(O,P){var R=T?1:-1;return O[L].localeCompare(P[L])*R}).map(function(O){return(0,e.createComponentVNode)(2,o.Table.Row,{className:"AccountsUplinkTerminal__listRow--"+O.suspended,onClick:function(){function P(){return b("view_account_detail",{index:O.account_index})}return P}(),children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:"user"})," ",O.owner_name]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:["#",O.account_number]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:O.suspended}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:O.money})]},O.account_number)})]})})})]})},i=function(m,c){var v=(0,t.useLocalState)(c,"sortId","name"),b=v[0],C=v[1],h=(0,t.useLocalState)(c,"sortOrder",!0),g=h[0],N=h[1],x=m.id,B=m.children;return(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Button,{color:b!==x&&"transparent",width:"100%",onClick:function(){function L(){b===x?N(!g):(C(x),N(!0))}return L}(),children:[B,b===x&&(0,e.createComponentVNode)(2,o.Icon,{name:g?"sort-up":"sort-down",ml:"0.25rem;"})]})})},l=function(m,c){var v=(0,t.useBackend)(c),b=v.act,C=v.data,h=C.is_printing,g=(0,t.useLocalState)(c,"searchText",""),N=g[0],x=g[1];return(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:[(0,e.createComponentVNode)(2,o.Button,{content:"New Account",icon:"plus",onClick:function(){function B(){return b("create_new_account")}return B}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"print",content:"Print Account List",disabled:h,ml:"0.25rem",onClick:function(){function B(){return b("print_records")}return B}()})]}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Input,{placeholder:"Search by account holder, number, status",width:"100%",onInput:function(){function B(L,w){return x(w)}return B}()})})]})},f=function(m,c){var v=(0,t.useBackend)(c),b=v.act,C=v.data,h=C.account_number,g=C.owner_name,N=C.money,x=C.suspended,B=C.transactions;return(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Section,{title:"#"+h+" / "+g,buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"arrow-left",content:"Back",onClick:function(){function L(){return b("back")}return L}()}),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Account Number",children:["#",h]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Account Holder",children:g}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Account Balance",children:N}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Account Status",color:x?"red":"green",children:[x?"Suspended":"Active",(0,e.createComponentVNode)(2,o.Button,{ml:1,content:x?"Unsuspend":"Suspend",icon:x?"unlock":"lock",onClick:function(){function L(){return b("toggle_suspension")}return L}()})]})]})})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,title:"Transactions",children:(0,e.createComponentVNode)(2,o.Table,{children:[(0,e.createComponentVNode)(2,o.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Timestamp"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Reason"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Value"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Terminal"})]}),B.map(function(L){return(0,e.createComponentVNode)(2,o.Table.Row,{children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:L.time}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:L.purpose}),(0,e.createComponentVNode)(2,o.Table.Cell,{color:L.is_deposit?"green":"red",children:["$",L.amount]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:L.target_name})]},L)})]})})})]})},u=function(m,c){var v=(0,t.useBackend)(c),b=v.act,C=v.data,h=(0,t.useLocalState)(c,"accName",""),g=h[0],N=h[1],x=(0,t.useLocalState)(c,"accDeposit",""),B=x[0],L=x[1];return(0,e.createComponentVNode)(2,o.Section,{title:"Create Account",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"arrow-left",content:"Back",onClick:function(){function w(){return b("back")}return w}()}),children:[(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Account Holder",children:(0,e.createComponentVNode)(2,o.Input,{placeholder:"Name Here",onChange:function(){function w(A,T){return N(T)}return w}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Initial Deposit",children:(0,e.createComponentVNode)(2,o.Input,{placeholder:"0",onChange:function(){function w(A,T){return L(T)}return w}()})})]}),(0,e.createComponentVNode)(2,o.Button,{mt:1,fluid:!0,content:"Create Account",onClick:function(){function w(){return b("finalise_create_account",{holder_name:g,starting_funds:B})}return w}()})]})}},34257:function(I,r,n){"use strict";r.__esModule=!0,r.AgentCardSLSlots=r.AgentCardInfo=r.AgentCardAppearances=r.AgentCard=void 0;var e=n(96524),a=n(28234),t=n(17899),o=n(24674),s=n(45493),y=r.AgentCard=function(){function p(i,l){var f=(0,t.useLocalState)(l,"tabIndex",0),u=f[0],d=f[1],m=function(){function c(v){switch(v){case 0:return(0,e.createComponentVNode)(2,V);case 1:return(0,e.createComponentVNode)(2,k);case 2:return(0,e.createComponentVNode)(2,S);default:return(0,e.createComponentVNode)(2,V)}}return c}();return(0,e.createComponentVNode)(2,s.Window,{width:500,height:475,theme:"syndicate",children:(0,e.createComponentVNode)(2,s.Window.Content,{children:(0,e.createComponentVNode)(2,o.Box,{fillPositionedParent:!0,overflow:"hidden",children:[(0,e.createComponentVNode)(2,o.Tabs,{children:[(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:u===0,onClick:function(){function c(){return d(0)}return c}(),children:[(0,e.createComponentVNode)(2,o.Icon,{name:"table"})," Card Info"]},"Card Info"),(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:u===1,onClick:function(){function c(){return d(1)}return c}(),children:[(0,e.createComponentVNode)(2,o.Icon,{name:"id-card"})," Appearance"]},"Appearance"),(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:u===2,onClick:function(){function c(){return d(2)}return c}(),children:[(0,e.createComponentVNode)(2,o.Icon,{name:"arrow-down"})," Save/Load Card Info"]},"Save/Load Card Info")]}),m(u)]})})})}return p}(),V=r.AgentCardInfo=function(){function p(i,l){var f=(0,t.useBackend)(l),u=f.act,d=f.data,m=d.registered_name,c=d.sex,v=d.age,b=d.assignment,C=d.associated_account_number,h=d.blood_type,g=d.dna_hash,N=d.fingerprint_hash,x=d.photo,B=d.ai_tracking;return(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Section,{title:"Card Info",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Name",children:(0,e.createComponentVNode)(2,o.Button,{content:m||"[UNSET]",onClick:function(){function L(){return u("change_name")}return L}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Sex",children:(0,e.createComponentVNode)(2,o.Button,{iconRight:!1,content:c||"[UNSET]",onClick:function(){function L(){return u("change_sex")}return L}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Age",children:(0,e.createComponentVNode)(2,o.Button,{content:v||"[UNSET]",onClick:function(){function L(){return u("change_age")}return L}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Rank",children:(0,e.createComponentVNode)(2,o.Button,{content:b||"[UNSET]",onClick:function(){function L(){return u("change_occupation")}return L}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Fingerprints",children:(0,e.createComponentVNode)(2,o.Button,{content:N||"[UNSET]",onClick:function(){function L(){return u("change_fingerprints")}return L}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Blood Type",children:(0,e.createComponentVNode)(2,o.Button,{content:h||"[UNSET]",onClick:function(){function L(){return u("change_blood_type")}return L}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"DNA Hash",children:(0,e.createComponentVNode)(2,o.Button,{content:g||"[UNSET]",onClick:function(){function L(){return u("change_dna_hash")}return L}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Money Account",children:(0,e.createComponentVNode)(2,o.Button,{content:C||"[UNSET]",onClick:function(){function L(){return u("change_money_account")}return L}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Photo",children:(0,e.createComponentVNode)(2,o.Button,{content:x?"Update":"[UNSET]",onClick:function(){function L(){return u("change_photo")}return L}()})})]})}),(0,e.createComponentVNode)(2,o.Section,{title:"Card Settings",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Card Info",children:(0,e.createComponentVNode)(2,o.Button,{content:"Delete Card Info",onClick:function(){function L(){return u("delete_info")}return L}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Access",children:(0,e.createComponentVNode)(2,o.Button,{content:"Reset Access",onClick:function(){function L(){return u("clear_access")}return L}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"AI Tracking",children:(0,e.createComponentVNode)(2,o.Button,{content:B?"Untrackable":"Trackable",onClick:function(){function L(){return u("change_ai_tracking")}return L}()})})]})})],4)}return p}(),k=r.AgentCardAppearances=function(){function p(i,l){var f=(0,t.useBackend)(l),u=f.act,d=f.data,m=d.appearances;return(0,e.createComponentVNode)(2,o.Section,{fill:!0,title:"Card Appearance",children:m.map(function(c){return(0,e.createComponentVNode)(2,o.ImageButton,{tooltip:c,vertical:!0,asset:!0,style:{margin:"1px"},image:c,imageAsset:"id_card64x64",onclick:function(){function v(){return u("change_appearance_new",{new_appearance:c})}return v}()},c)})})}return p}(),S=r.AgentCardSLSlots=function(){function p(i,l){var f=(0,t.useBackend)(l),u=f.act,d=f.data,m=d.saved_info;return(0,e.createComponentVNode)(2,o.Section,{title:"Save/Load Manager",style:{"line-height":"25px"},children:(0,e.createComponentVNode)(2,o.LabeledList,{children:m.map(function(c){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:c.registered_name?c.registered_name+", "+c.assignment:"Slot "+c.id,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{content:"Clear",onClick:function(){function v(){return u("clear_slot",{slot:c.id})}return v}()}),(0,e.createComponentVNode)(2,o.Button,{content:"Save",onClick:function(){function v(){return u("save_slot",{slot:c.id})}return v}()}),(0,e.createComponentVNode)(2,o.Button,{content:"Load",disabled:!c.registered_name,onClick:function(){function v(){return u("load_slot",{slot:c.id})}return v}()})],4)},c.id)})})})}return p}()},56839:function(I,r,n){"use strict";r.__esModule=!0,r.AiAirlock=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),s={2:{color:"good",localStatusText:"Offline"},1:{color:"average",localStatusText:"Caution"},0:{color:"bad",localStatusText:"Optimal"}},y=r.AiAirlock=function(){function V(k,S){var p=(0,a.useBackend)(S),i=p.act,l=p.data,f=s[l.power.main]||s[0],u=s[l.power.backup]||s[0],d=s[l.shock]||s[0];return(0,e.createComponentVNode)(2,o.Window,{width:500,height:400,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Power Status",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Main",color:f.color,buttons:(0,e.createComponentVNode)(2,t.Button,{mb:.5,icon:"lightbulb-o",disabled:!l.power.main,content:"Disrupt",onClick:function(){function m(){return i("disrupt-main")}return m}()}),children:[l.power.main?"Online":"Offline"," ",!l.wires.main_power&&"[Wires have been cut!]"||l.power.main_timeleft>0&&"["+l.power.main_timeleft+"s]"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Backup",color:u.color,buttons:(0,e.createComponentVNode)(2,t.Button,{mb:.5,icon:"lightbulb-o",disabled:!l.power.backup,content:"Disrupt",onClick:function(){function m(){return i("disrupt-backup")}return m}()}),children:[l.power.backup?"Online":"Offline"," ",!l.wires.backup_power&&"[Wires have been cut!]"||l.power.backup_timeleft>0&&"["+l.power.backup_timeleft+"s]"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Electrify",color:d.color,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{mr:.5,icon:"wrench",disabled:!(l.wires.shock&&l.shock!==2),content:"Restore",onClick:function(){function m(){return i("shock-restore")}return m}()}),(0,e.createComponentVNode)(2,t.Button,{mr:.5,icon:"bolt",disabled:!l.wires.shock,content:"Temporary",onClick:function(){function m(){return i("shock-temp")}return m}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"bolt",disabled:!l.wires.shock||l.shock===0,content:"Permanent",onClick:function(){function m(){return i("shock-perm")}return m}()})],4),children:[l.shock===2?"Safe":"Electrified"," ",!l.wires.shock&&"[Wires have been cut!]"||l.shock_timeleft>0&&"["+l.shock_timeleft+"s]"||l.shock_timeleft===-1&&"[Permanent]"]})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Access and Door Control",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"ID Scan",color:"bad",buttons:(0,e.createComponentVNode)(2,t.Button,{mb:.5,width:6.5,icon:l.id_scanner?"power-off":"times",content:l.id_scanner?"Enabled":"Disabled",selected:l.id_scanner,disabled:!l.wires.id_scanner,onClick:function(){function m(){return i("idscan-toggle")}return m}()}),children:!l.wires.id_scanner&&"[Wires have been cut!]"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Emergency Access",buttons:(0,e.createComponentVNode)(2,t.Button,{width:6.5,icon:l.emergency?"power-off":"times",content:l.emergency?"Enabled":"Disabled",selected:l.emergency,onClick:function(){function m(){return i("emergency-toggle")}return m}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Divider),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Door Bolts",color:"bad",buttons:(0,e.createComponentVNode)(2,t.Button,{mb:.5,icon:l.locked?"lock":"unlock",content:l.locked?"Lowered":"Raised",selected:l.locked,disabled:!l.wires.bolts,onClick:function(){function m(){return i("bolt-toggle")}return m}()}),children:!l.wires.bolts&&"[Wires have been cut!]"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Door Bolt Lights",color:"bad",buttons:(0,e.createComponentVNode)(2,t.Button,{mb:.5,width:6.5,icon:l.lights?"power-off":"times",content:l.lights?"Enabled":"Disabled",selected:l.lights,disabled:!l.wires.lights,onClick:function(){function m(){return i("light-toggle")}return m}()}),children:!l.wires.lights&&"[Wires have been cut!]"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Door Force Sensors",color:"bad",buttons:(0,e.createComponentVNode)(2,t.Button,{mb:.5,width:6.5,icon:l.safe?"power-off":"times",content:l.safe?"Enabled":"Disabled",selected:l.safe,disabled:!l.wires.safe,onClick:function(){function m(){return i("safe-toggle")}return m}()}),children:!l.wires.safe&&"[Wires have been cut!]"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Door Timing Safety",color:"bad",buttons:(0,e.createComponentVNode)(2,t.Button,{mb:.5,width:6.5,icon:l.speed?"power-off":"times",content:l.speed?"Enabled":"Disabled",selected:l.speed,disabled:!l.wires.timing,onClick:function(){function m(){return i("speed-toggle")}return m}()}),children:!l.wires.timing&&"[Wires have been cut!]"}),(0,e.createComponentVNode)(2,t.LabeledList.Divider),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Door Control",color:"bad",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:l.opened?"sign-out-alt":"sign-in-alt",content:l.opened?"Open":"Closed",selected:l.opened,disabled:l.locked||l.welded,onClick:function(){function m(){return i("open-close")}return m}()}),children:!!(l.locked||l.welded)&&(0,e.createVNode)(1,"span",null,[(0,e.createTextVNode)("[Door is "),l.locked?"bolted":"",l.locked&&l.welded?" and ":"",l.welded?"welded":"",(0,e.createTextVNode)("!]")],0)})]})})]})})}return V}()},5565:function(I,r,n){"use strict";r.__esModule=!0,r.AirAlarm=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),s=n(26893),y=r.AirAlarm=function(){function d(m,c){var v=(0,a.useBackend)(c),b=v.act,C=v.data,h=C.locked;return(0,e.createComponentVNode)(2,o.Window,{width:570,height:h?310:755,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,s.InterfaceLockNoticeBox),(0,e.createComponentVNode)(2,k),!h&&(0,e.createFragment)([(0,e.createComponentVNode)(2,S),(0,e.createComponentVNode)(2,p)],4)]})})}return d}(),V=function(m){return m===0?"green":m===1?"orange":"red"},k=function(m,c){var v=(0,a.useBackend)(c),b=v.act,C=v.data,h=C.air,g=C.mode,N=C.atmos_alarm,x=C.locked,B=C.alarmActivated,L=C.rcon,w=C.target_temp,A;return h.danger.overall===0?N===0?A="Optimal":A="Caution: Atmos alert in area":h.danger.overall===1?A="Caution":A="DANGER: Internals Required",(0,e.createComponentVNode)(2,t.Section,{title:"Air Status",children:h?(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Pressure",children:(0,e.createComponentVNode)(2,t.Box,{color:V(h.danger.pressure),children:[(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:h.pressure})," kPa",!x&&(0,e.createFragment)([(0,e.createTextVNode)("\xA0"),(0,e.createComponentVNode)(2,t.Button,{content:g===3?"Deactivate Panic Siphon":"Activate Panic Siphon",selected:g===3,icon:"exclamation-triangle",onClick:function(){function T(){return b("mode",{mode:g===3?1:3})}return T}()})],4)]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Oxygen",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:h.contents.oxygen/100,fractionDigits:"1",color:V(h.danger.oxygen)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Nitrogen",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:h.contents.nitrogen/100,fractionDigits:"1",color:V(h.danger.nitrogen)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Carbon Dioxide",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:h.contents.co2/100,fractionDigits:"1",color:V(h.danger.co2)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Toxins",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:h.contents.plasma/100,fractionDigits:"1",color:V(h.danger.plasma)})}),h.contents.n2o>.1&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Nitrous Oxide",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:h.contents.n2o/100,fractionDigits:"1",color:V(h.danger.n2o)})}),h.contents.other>.1&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Other",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:h.contents.other/100,fractionDigits:"1",color:V(h.danger.other)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Temperature",children:(0,e.createComponentVNode)(2,t.Box,{color:V(h.danger.temperature),children:[(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:h.temperature})," K /"," ",(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:h.temperature_c})," C\xA0",(0,e.createComponentVNode)(2,t.Button,{icon:"thermometer-full",content:w+" C",onClick:function(){function T(){return b("temperature")}return T}()}),(0,e.createComponentVNode)(2,t.Button,{content:h.thermostat_state?"On":"Off",selected:h.thermostat_state,icon:"power-off",onClick:function(){function T(){return b("thermostat_state")}return T}()})]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Local Status",children:(0,e.createComponentVNode)(2,t.Box,{color:V(h.danger.overall),children:[A,!x&&(0,e.createFragment)([(0,e.createTextVNode)("\xA0"),(0,e.createComponentVNode)(2,t.Button,{content:B?"Reset Alarm":"Activate Alarm",selected:B,onClick:function(){function T(){return b(B?"atmos_reset":"atmos_alarm")}return T}()})],4)]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Remote Control Settings",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Off",selected:L===1,onClick:function(){function T(){return b("set_rcon",{rcon:1})}return T}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Auto",selected:L===2,onClick:function(){function T(){return b("set_rcon",{rcon:2})}return T}()}),(0,e.createComponentVNode)(2,t.Button,{content:"On",selected:L===3,onClick:function(){function T(){return b("set_rcon",{rcon:3})}return T}()})]})]}):(0,e.createComponentVNode)(2,t.Box,{children:"Unable to acquire air sample!"})})},S=function(m,c){var v=(0,a.useLocalState)(c,"tabIndex",0),b=v[0],C=v[1];return(0,e.createComponentVNode)(2,t.Tabs,{children:[(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:b===0,onClick:function(){function h(){return C(0)}return h}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"sign-out-alt"})," Vent Control"]},"Vents"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:b===1,onClick:function(){function h(){return C(1)}return h}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"sign-in-alt"})," Scrubber Control"]},"Scrubbers"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:b===2,onClick:function(){function h(){return C(2)}return h}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"cog"})," Mode"]},"Mode"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:b===3,onClick:function(){function h(){return C(3)}return h}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"tachometer-alt"})," Thresholds"]},"Thresholds")]})},p=function(m,c){var v=(0,a.useLocalState)(c,"tabIndex",0),b=v[0],C=v[1];switch(b){case 0:return(0,e.createComponentVNode)(2,i);case 1:return(0,e.createComponentVNode)(2,l);case 2:return(0,e.createComponentVNode)(2,f);case 3:return(0,e.createComponentVNode)(2,u);default:return"WE SHOULDN'T BE HERE!"}},i=function(m,c){var v=(0,a.useBackend)(c),b=v.act,C=v.data,h=C.vents;return h.map(function(g){return(0,e.createComponentVNode)(2,t.Section,{title:g.name,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:[(0,e.createComponentVNode)(2,t.Button,{content:g.power?"On":"Off",selected:g.power,icon:"power-off",onClick:function(){function N(){return b("command",{cmd:"power",val:g.power===1?0:1,id_tag:g.id_tag})}return N}()}),(0,e.createComponentVNode)(2,t.Button,{content:g.direction?"Blowing":"Siphoning",icon:g.direction?"sign-out-alt":"sign-in-alt",onClick:function(){function N(){return b("command",{cmd:"direction",val:g.direction==="release"?0:1,id_tag:g.id_tag})}return N}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Pressure Checks",children:[(0,e.createComponentVNode)(2,t.Button,{content:"External",selected:g.checks===1,onClick:function(){function N(){return b("command",{cmd:"checks",val:1,id_tag:g.id_tag})}return N}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Internal",selected:g.checks===2,onClick:function(){function N(){return b("command",{cmd:"checks",val:2,id_tag:g.id_tag})}return N}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"External Pressure Target",children:[(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:g.external})," kPa\xA0",(0,e.createComponentVNode)(2,t.Button,{content:"Set",icon:"cog",onClick:function(){function N(){return b("command",{cmd:"set_external_pressure",id_tag:g.id_tag})}return N}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Reset",icon:"redo-alt",onClick:function(){function N(){return b("command",{cmd:"set_external_pressure",val:101.325,id_tag:g.id_tag})}return N}()})]})]})},g.name)})},l=function(m,c){var v=(0,a.useBackend)(c),b=v.act,C=v.data,h=C.scrubbers;return h.map(function(g){return(0,e.createComponentVNode)(2,t.Section,{title:g.name,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:[(0,e.createComponentVNode)(2,t.Button,{content:g.power?"On":"Off",selected:g.power,icon:"power-off",onClick:function(){function N(){return b("command",{cmd:"power",val:g.power===1?0:1,id_tag:g.id_tag})}return N}()}),(0,e.createComponentVNode)(2,t.Button,{content:g.scrubbing?"Scrubbing":"Siphoning",icon:g.scrubbing?"filter":"sign-in-alt",onClick:function(){function N(){return b("command",{cmd:"scrubbing",val:g.scrubbing===0?1:0,id_tag:g.id_tag})}return N}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Range",children:(0,e.createComponentVNode)(2,t.Button,{content:g.widenet?"Extended":"Normal",selected:g.widenet,icon:"expand-arrows-alt",onClick:function(){function N(){return b("command",{cmd:"widenet",val:g.widenet===0?1:0,id_tag:g.id_tag})}return N}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Filtering",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Carbon Dioxide",selected:g.filter_co2,onClick:function(){function N(){return b("command",{cmd:"co2_scrub",val:g.filter_co2===0?1:0,id_tag:g.id_tag})}return N}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Plasma",selected:g.filter_toxins,onClick:function(){function N(){return b("command",{cmd:"tox_scrub",val:g.filter_toxins===0?1:0,id_tag:g.id_tag})}return N}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Nitrous Oxide",selected:g.filter_n2o,onClick:function(){function N(){return b("command",{cmd:"n2o_scrub",val:g.filter_n2o===0?1:0,id_tag:g.id_tag})}return N}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Oxygen",selected:g.filter_o2,onClick:function(){function N(){return b("command",{cmd:"o2_scrub",val:g.filter_o2===0?1:0,id_tag:g.id_tag})}return N}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Nitrogen",selected:g.filter_n2,onClick:function(){function N(){return b("command",{cmd:"n2_scrub",val:g.filter_n2===0?1:0,id_tag:g.id_tag})}return N}()})]})]})},g.name)})},f=function(m,c){var v=(0,a.useBackend)(c),b=v.act,C=v.data,h=C.modes,g=C.presets,N=C.emagged,x=C.mode,B=C.preset;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{title:"System Mode",children:(0,e.createComponentVNode)(2,t.Table,{children:h.map(function(L){return(!L.emagonly||L.emagonly&&!!N)&&(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"right",width:1,children:(0,e.createComponentVNode)(2,t.Button,{content:L.name,icon:"cog",selected:L.id===x,onClick:function(){function w(){return b("mode",{mode:L.id})}return w}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:L.desc})]},L.name)})})}),(0,e.createComponentVNode)(2,t.Section,{title:"System Presets",children:[(0,e.createComponentVNode)(2,t.Box,{italic:!0,children:"After making a selection, the system will automatically cycle in order to remove contaminants."}),(0,e.createComponentVNode)(2,t.Table,{mt:1,children:g.map(function(L){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"right",width:1,children:(0,e.createComponentVNode)(2,t.Button,{content:L.name,icon:"cog",selected:L.id===B,onClick:function(){function w(){return b("preset",{preset:L.id})}return w}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:L.desc})]},L.name)})})]})],4)},u=function(m,c){var v=(0,a.useBackend)(c),b=v.act,C=v.data,h=C.thresholds;return(0,e.createComponentVNode)(2,t.Section,{title:"Alarm Thresholds",children:(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{width:"20%",children:"Value"}),(0,e.createComponentVNode)(2,t.Table.Cell,{color:"red",width:"20%",children:"Danger Min"}),(0,e.createComponentVNode)(2,t.Table.Cell,{color:"orange",width:"20%",children:"Warning Min"}),(0,e.createComponentVNode)(2,t.Table.Cell,{color:"orange",width:"20%",children:"Warning Max"}),(0,e.createComponentVNode)(2,t.Table.Cell,{color:"red",width:"20%",children:"Danger Max"})]}),h.map(function(g){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:g.name}),g.settings.map(function(N){return(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{content:N.selected===-1?"Off":N.selected,onClick:function(){function x(){return b("command",{cmd:"set_threshold",env:N.env,var:N.val})}return x}()})},N.val)})]},g.name)})]})})}},82915:function(I,r,n){"use strict";r.__esModule=!0,r.AirlockAccessController=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),s=r.AirlockAccessController=function(){function y(V,k){var S=(0,a.useBackend)(k),p=S.act,i=S.data,l=i.exterior_status,f=i.interior_status,u=i.processing,d,m;return l==="open"?d=(0,e.createComponentVNode)(2,t.Button,{width:"50%",content:"Lock Exterior Door",icon:"exclamation-triangle",disabled:u,onClick:function(){function c(){return p("force_ext")}return c}()}):d=(0,e.createComponentVNode)(2,t.Button,{width:"50%",content:"Cycle to Exterior",icon:"arrow-circle-left",disabled:u,onClick:function(){function c(){return p("cycle_ext_door")}return c}()}),f==="open"?m=(0,e.createComponentVNode)(2,t.Button,{width:"49%",content:"Lock Interior Door",icon:"exclamation-triangle",disabled:u,color:f==="open"?"red":u?"yellow":null,onClick:function(){function c(){return p("force_int")}return c}()}):m=(0,e.createComponentVNode)(2,t.Button,{width:"49%",content:"Cycle to Interior",icon:"arrow-circle-right",disabled:u,onClick:function(){function c(){return p("cycle_int_door")}return c}()}),(0,e.createComponentVNode)(2,o.Window,{width:330,height:200,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Information",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"External Door Status",children:l==="closed"?"Locked":"Open"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Internal Door Status",children:f==="closed"?"Locked":"Open"})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Actions",children:(0,e.createComponentVNode)(2,t.Box,{children:[d,m]})})]})})}return y}()},14962:function(I,r,n){"use strict";r.__esModule=!0,r.AirlockElectronics=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),s=n(57842),y=1,V=2,k=4,S=8,p=r.AirlockElectronics=function(){function f(u,d){return(0,e.createComponentVNode)(2,o.Window,{width:450,height:565,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,i),(0,e.createComponentVNode)(2,l)]})})})}return f}(),i=function(u,d){var m=(0,a.useBackend)(d),c=m.act,v=m.data,b=v.unrestricted_dir;return(0,e.createComponentVNode)(2,t.Section,{title:"Access Control",children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,mb:1,children:"Unrestricted Access From:"}),(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"arrow-left",content:"East",selected:b&k?"selected":null,onClick:function(){function C(){return c("unrestricted_access",{unres_dir:k})}return C}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"arrow-up",content:"South",selected:b&V?"selected":null,onClick:function(){function C(){return c("unrestricted_access",{unres_dir:V})}return C}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"arrow-right",content:"West",selected:b&S?"selected":null,onClick:function(){function C(){return c("unrestricted_access",{unres_dir:S})}return C}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"arrow-down",content:"North",selected:b&y?"selected":null,onClick:function(){function C(){return c("unrestricted_access",{unres_dir:y})}return C}()})})]})]})})},l=function(u,d){var m=(0,a.useBackend)(d),c=m.act,v=m.data,b=v.selected_accesses,C=v.one_access,h=v.regions;return(0,e.createComponentVNode)(2,s.AccessList,{usedByRcd:1,rcdButtons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:C,content:"One",onClick:function(){function g(){return c("set_one_access",{access:"one"})}return g}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:!C,content:"All",onClick:function(){function g(){return c("set_one_access",{access:"all"})}return g}()})],4),accesses:h,selectedList:b,accessMod:function(){function g(N){return c("set",{access:N})}return g}(),grantAll:function(){function g(){return c("grant_all")}return g}(),denyAll:function(){function g(){return c("clear_all")}return g}(),grantDep:function(){function g(N){return c("grant_region",{region:N})}return g}(),denyDep:function(){function g(N){return c("deny_region",{region:N})}return g}()})}},99327:function(I,r,n){"use strict";r.__esModule=!0,r.AlertModal=void 0;var e=n(96524),a=n(14299),t=n(17899),o=n(68100),s=n(24674),y=n(45493),V=-1,k=1,S=r.AlertModal=function(){function l(f,u){var d=(0,t.useBackend)(u),m=d.act,c=d.data,v=c.autofocus,b=c.buttons,C=b===void 0?[]:b,h=c.large_buttons,g=c.message,N=g===void 0?"":g,x=c.timeout,B=c.title,L=(0,t.useLocalState)(u,"selected",0),w=L[0],A=L[1],T=110+(N.length>30?Math.ceil(N.length/4):0)+(N.length&&h?5:0),E=325+(C.length>2?100:0),O=function(){function P(R){w===0&&R===V?A(C.length-1):w===C.length-1&&R===k?A(0):A(w+R)}return P}();return(0,e.createComponentVNode)(2,y.Window,{title:B,height:T,width:E,children:[!!x&&(0,e.createComponentVNode)(2,a.Loader,{value:x}),(0,e.createComponentVNode)(2,y.Window.Content,{onKeyDown:function(){function P(R){var F=window.event?R.which:R.keyCode;F===o.KEY_SPACE||F===o.KEY_ENTER?m("choose",{choice:C[w]}):F===o.KEY_ESCAPE?m("cancel"):F===o.KEY_LEFT?(R.preventDefault(),O(V)):(F===o.KEY_TAB||F===o.KEY_RIGHT)&&(R.preventDefault(),O(k))}return P}(),children:(0,e.createComponentVNode)(2,s.Section,{fill:!0,children:(0,e.createComponentVNode)(2,s.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,s.Stack.Item,{grow:!0,m:1,children:(0,e.createComponentVNode)(2,s.Box,{color:"label",overflow:"hidden",children:N})}),(0,e.createComponentVNode)(2,s.Stack.Item,{children:[!!v&&(0,e.createComponentVNode)(2,s.Autofocus),(0,e.createComponentVNode)(2,p,{selected:w})]})]})})})]})}return l}(),p=function(f,u){var d=(0,t.useBackend)(u),m=d.data,c=m.buttons,v=c===void 0?[]:c,b=m.large_buttons,C=m.swapped_buttons,h=f.selected;return(0,e.createComponentVNode)(2,s.Flex,{fill:!0,align:"center",direction:C?"row":"row-reverse",justify:"space-around",wrap:!0,children:v==null?void 0:v.map(function(g,N){return b&&v.length<3?(0,e.createComponentVNode)(2,s.Flex.Item,{grow:!0,children:(0,e.createComponentVNode)(2,i,{button:g,id:N.toString(),selected:h===N})},N):(0,e.createComponentVNode)(2,s.Flex.Item,{grow:b?1:0,children:(0,e.createComponentVNode)(2,i,{button:g,id:N.toString(),selected:h===N})},N)})})},i=function(f,u){var d=(0,t.useBackend)(u),m=d.act,c=d.data,v=c.large_buttons,b=f.button,C=f.selected,h=b.length>7?"100%":7;return(0,e.createComponentVNode)(2,s.Button,{mx:v?1:0,pt:v?.33:0,content:b,fluid:!!v,onClick:function(){function g(){return m("choose",{choice:b})}return g}(),selected:C,textAlign:"center",height:!!v&&2,width:!v&&h})}},88642:function(I,r,n){"use strict";r.__esModule=!0,r.AppearanceChanger=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),s=r.AppearanceChanger=function(){function V(k,S){var p=(0,a.useBackend)(S),i=p.act,l=p.data,f=l.change_race,u=l.species,d=l.specimen,m=l.change_gender,c=l.gender,v=l.has_gender,b=l.change_eye_color,C=l.change_skin_tone,h=l.change_skin_color,g=l.change_head_accessory_color,N=l.change_hair_color,x=l.change_secondary_hair_color,B=l.change_facial_hair_color,L=l.change_secondary_facial_hair_color,w=l.change_head_marking_color,A=l.change_body_marking_color,T=l.change_tail_marking_color,E=l.change_head_accessory,O=l.head_accessory_styles,P=l.head_accessory_style,R=l.change_hair,F=l.hair_styles,j=l.hair_style,U=l.change_hair_gradient,_=l.change_facial_hair,K=l.facial_hair_styles,Y=l.facial_hair_style,G=l.change_head_markings,ne=l.head_marking_styles,$=l.head_marking_style,se=l.change_body_markings,Ne=l.body_marking_styles,be=l.body_marking_style,xe=l.change_tail_markings,Ie=l.tail_marking_styles,Te=l.tail_marking_style,he=l.change_body_accessory,Q=l.body_accessory_styles,X=l.body_accessory_style,te=l.change_alt_head,q=l.alt_head_styles,ce=l.alt_head_style,Ve=!1;return(b||C||h||g||N||x||B||L||w||A||T)&&(Ve=!0),(0,e.createComponentVNode)(2,o.Window,{width:800,height:450,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[!!f&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Species",children:u.map(function(fe){return(0,e.createComponentVNode)(2,t.Button,{content:fe.specimen,selected:fe.specimen===d,onClick:function(){function we(){return i("race",{race:fe.specimen})}return we}()},fe.specimen)})}),!!m&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Gender",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Male",selected:c==="male",onClick:function(){function fe(){return i("gender",{gender:"male"})}return fe}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Female",selected:c==="female",onClick:function(){function fe(){return i("gender",{gender:"female"})}return fe}()}),!v&&(0,e.createComponentVNode)(2,t.Button,{content:"Genderless",selected:c==="plural",onClick:function(){function fe(){return i("gender",{gender:"plural"})}return fe}()})]}),!!Ve&&(0,e.createComponentVNode)(2,y),!!E&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Head accessory",children:O.map(function(fe){return(0,e.createComponentVNode)(2,t.Button,{content:fe.headaccessorystyle,selected:fe.headaccessorystyle===P,onClick:function(){function we(){return i("head_accessory",{head_accessory:fe.headaccessorystyle})}return we}()},fe.headaccessorystyle)})}),!!R&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Hair",children:F.map(function(fe){return(0,e.createComponentVNode)(2,t.Button,{content:fe.hairstyle,selected:fe.hairstyle===j,onClick:function(){function we(){return i("hair",{hair:fe.hairstyle})}return we}()},fe.hairstyle)})}),!!U&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Hair Gradient",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Change Style",onClick:function(){function fe(){return i("hair_gradient")}return fe}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Change Offset",onClick:function(){function fe(){return i("hair_gradient_offset")}return fe}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Change Color",onClick:function(){function fe(){return i("hair_gradient_colour")}return fe}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Change Alpha",onClick:function(){function fe(){return i("hair_gradient_alpha")}return fe}()})]}),!!_&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Facial hair",children:K.map(function(fe){return(0,e.createComponentVNode)(2,t.Button,{content:fe.facialhairstyle,selected:fe.facialhairstyle===Y,onClick:function(){function we(){return i("facial_hair",{facial_hair:fe.facialhairstyle})}return we}()},fe.facialhairstyle)})}),!!G&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Head markings",children:ne.map(function(fe){return(0,e.createComponentVNode)(2,t.Button,{content:fe.headmarkingstyle,selected:fe.headmarkingstyle===$,onClick:function(){function we(){return i("head_marking",{head_marking:fe.headmarkingstyle})}return we}()},fe.headmarkingstyle)})}),!!se&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Body markings",children:Ne.map(function(fe){return(0,e.createComponentVNode)(2,t.Button,{content:fe.bodymarkingstyle,selected:fe.bodymarkingstyle===be,onClick:function(){function we(){return i("body_marking",{body_marking:fe.bodymarkingstyle})}return we}()},fe.bodymarkingstyle)})}),!!xe&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Tail markings",children:Ie.map(function(fe){return(0,e.createComponentVNode)(2,t.Button,{content:fe.tailmarkingstyle,selected:fe.tailmarkingstyle===Te,onClick:function(){function we(){return i("tail_marking",{tail_marking:fe.tailmarkingstyle})}return we}()},fe.tailmarkingstyle)})}),!!he&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Body accessory",children:Q.map(function(fe){return(0,e.createComponentVNode)(2,t.Button,{content:fe.bodyaccessorystyle,selected:fe.bodyaccessorystyle===X,onClick:function(){function we(){return i("body_accessory",{body_accessory:fe.bodyaccessorystyle})}return we}()},fe.bodyaccessorystyle)})}),!!te&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Alternate head",children:q.map(function(fe){return(0,e.createComponentVNode)(2,t.Button,{content:fe.altheadstyle,selected:fe.altheadstyle===ce,onClick:function(){function we(){return i("alt_head",{alt_head:fe.altheadstyle})}return we}()},fe.altheadstyle)})})]})})})}return V}(),y=function(k,S){var p=(0,a.useBackend)(S),i=p.act,l=p.data,f=[{key:"change_eye_color",text:"Change eye color",action:"eye_color"},{key:"change_skin_tone",text:"Change skin tone",action:"skin_tone"},{key:"change_skin_color",text:"Change skin color",action:"skin_color"},{key:"change_head_accessory_color",text:"Change head accessory color",action:"head_accessory_color"},{key:"change_hair_color",text:"Change hair color",action:"hair_color"},{key:"change_secondary_hair_color",text:"Change secondary hair color",action:"secondary_hair_color"},{key:"change_facial_hair_color",text:"Change facial hair color",action:"facial_hair_color"},{key:"change_secondary_facial_hair_color",text:"Change secondary facial hair color",action:"secondary_facial_hair_color"},{key:"change_head_marking_color",text:"Change head marking color",action:"head_marking_color"},{key:"change_body_marking_color",text:"Change body marking color",action:"body_marking_color"},{key:"change_tail_marking_color",text:"Change tail marking color",action:"tail_marking_color"}];return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Colors",children:f.map(function(u){return!!l[u.key]&&(0,e.createComponentVNode)(2,t.Button,{content:u.text,onClick:function(){function d(){return i(u.action)}return d}()},u.key)})})}},51731:function(I,r,n){"use strict";r.__esModule=!0,r.AtmosAlertConsole=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),s=r.AtmosAlertConsole=function(){function y(V,k){var S=(0,a.useBackend)(k),p=S.act,i=S.data,l=i.priority||[],f=i.minor||[];return(0,e.createComponentVNode)(2,o.Window,{width:350,height:300,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Alarms",children:(0,e.createVNode)(1,"ul",null,[l.length===0&&(0,e.createVNode)(1,"li","color-good","No Priority Alerts",16),l.map(function(u){return(0,e.createVNode)(1,"li",null,(0,e.createComponentVNode)(2,t.Button,{icon:"times",content:u,color:"bad",onClick:function(){function d(){return p("clear",{zone:u})}return d}()}),2,null,u)}),f.length===0&&(0,e.createVNode)(1,"li","color-good","No Minor Alerts",16),f.map(function(u){return(0,e.createVNode)(1,"li",null,(0,e.createComponentVNode)(2,t.Button,{icon:"times",content:u,color:"average",onClick:function(){function d(){return p("clear",{zone:u})}return d}()}),2,null,u)})],0)})})})}return y}()},57467:function(I,r,n){"use strict";r.__esModule=!0,r.AtmosControl=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(5126),s=n(45493),y=function(l){if(l===0)return(0,e.createComponentVNode)(2,t.Box,{color:"green",children:"Good"});if(l===1)return(0,e.createComponentVNode)(2,t.Box,{color:"orange",bold:!0,children:"Warning"});if(l===2)return(0,e.createComponentVNode)(2,t.Box,{color:"red",bold:!0,children:"DANGER"})},V=function(l){if(l===0)return"green";if(l===1)return"orange";if(l===2)return"red"},k=r.AtmosControl=function(){function i(l,f){var u=(0,a.useBackend)(f),d=u.act,m=u.data,c=(0,a.useLocalState)(f,"tabIndex",0),v=c[0],b=c[1],C=function(){function h(g){switch(g){case 0:return(0,e.createComponentVNode)(2,S);case 1:return(0,e.createComponentVNode)(2,p);default:return"WE SHOULDN'T BE HERE!"}}return h}();return(0,e.createComponentVNode)(2,s.Window,{width:800,height:600,children:(0,e.createComponentVNode)(2,s.Window.Content,{scrollable:v===0,children:(0,e.createComponentVNode)(2,t.Box,{fillPositionedParent:!0,children:[(0,e.createComponentVNode)(2,t.Tabs,{children:[(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:v===0,onClick:function(){function h(){return b(0)}return h}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"table"})," Data View"]},"DataView"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:v===1,onClick:function(){function h(){return b(1)}return h}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"map-marked-alt"})," Map View"]},"MapView")]}),C(v)]})})})}return i}(),S=function(l,f){var u=(0,a.useBackend)(f),d=u.act,m=u.data,c=m.alarms;return(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Table,{m:"0.5rem",children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Name"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Status"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Access"})]}),c.map(function(v){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,o.TableCell,{children:v.name}),(0,e.createComponentVNode)(2,o.TableCell,{children:y(v.danger)}),(0,e.createComponentVNode)(2,o.TableCell,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"cog",content:"Access",onClick:function(){function b(){return d("open_alarm",{aref:v.ref})}return b}()})})]},v.name)})]})})},p=function(l,f){var u=(0,a.useBackend)(f),d=u.act,m=u.data,c=m.alarms,v=m.stationLevelNum,b=m.stationLevelName,C=(0,a.useLocalState)(f,"zoom",1),h=C[0],g=C[1],N=(0,a.useLocalState)(f,"z_current",v[0]),x=N[0],B=N[1];return(0,e.createComponentVNode)(2,t.Box,{height:"526px",mb:"0.5rem",overflow:"hidden",children:(0,e.createComponentVNode)(2,t.NanoMap,{onZoom:function(){function L(w){return g(w)}return L}(),zLevels:v,zNames:b,z_current:x,setZCurrent:B,children:c.map(function(L){return(0,e.createComponentVNode)(2,t.NanoMap.Marker,{x:L.x,y:L.y,z:L.z,z_current:x,zoom:h,icon:"circle",tooltip:L.name,color:V(L.danger),onClick:function(){function w(){return d("open_alarm",{aref:L.ref})}return w}()},L.ref)})})})}},41550:function(I,r,n){"use strict";r.__esModule=!0,r.AtmosFilter=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),s=r.AtmosFilter=function(){function y(V,k){var S=(0,a.useBackend)(k),p=S.act,i=S.data,l=i.on,f=i.pressure,u=i.max_pressure,d=i.filter_type,m=i.filter_type_list;return(0,e.createComponentVNode)(2,o.Window,{width:380,height:140,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power",children:(0,e.createComponentVNode)(2,t.Button,{icon:"power-off",content:l?"On":"Off",color:l?null:"red",selected:l,onClick:function(){function c(){return p("power")}return c}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Rate",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"fast-backward",textAlign:"center",disabled:f===0,width:2.2,onClick:function(){function c(){return p("min_pressure")}return c}()}),(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,unit:"kPa",width:6.1,lineHeight:1.5,step:10,minValue:0,maxValue:u,value:f,onDrag:function(){function c(v,b){return p("custom_pressure",{pressure:b})}return c}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",textAlign:"center",disabled:f===u,width:2.2,onClick:function(){function c(){return p("max_pressure")}return c}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Filter",children:m.map(function(c){return(0,e.createComponentVNode)(2,t.Button,{selected:c.gas_type===d,content:c.label,onClick:function(){function v(){return p("set_filter",{filter:c.gas_type})}return v}()},c.label)})})]})})})})}return y}()},70151:function(I,r,n){"use strict";r.__esModule=!0,r.AtmosMixer=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),s=r.AtmosMixer=function(){function V(k,S){var p=(0,a.useBackend)(S),i=p.act,l=p.data,f=l.on,u=l.pressure,d=l.max_pressure,m=l.node1_concentration,c=l.node2_concentration;return(0,e.createComponentVNode)(2,o.Window,{width:330,height:165,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power",children:(0,e.createComponentVNode)(2,t.Button,{icon:"power-off",content:f?"On":"Off",color:f?null:"red",selected:f,onClick:function(){function v(){return i("power")}return v}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Rate",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"fast-backward",textAlign:"center",disabled:u===0,width:2.2,onClick:function(){function v(){return i("min_pressure")}return v}()}),(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,unit:"kPa",width:6.1,lineHeight:1.5,step:10,minValue:0,maxValue:d,value:u,onDrag:function(){function v(b,C){return i("custom_pressure",{pressure:C})}return v}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",textAlign:"center",disabled:u===d,width:2.2,onClick:function(){function v(){return i("max_pressure")}return v}()})]}),(0,e.createComponentVNode)(2,y,{node_name:"Node 1",node_ref:m}),(0,e.createComponentVNode)(2,y,{node_name:"Node 2",node_ref:c})]})})})})}return V}(),y=function(k,S){var p=(0,a.useBackend)(S),i=p.act,l=p.data,f=k.node_name,u=k.node_ref;return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:f,children:[(0,e.createComponentVNode)(2,t.Button,{icon:"fast-backward",textAlign:"center",width:2.2,disabled:u===0,onClick:function(){function d(){return i("set_node",{node_name:f,concentration:(u-10)/100})}return d}()}),(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,unit:"%",width:6.1,lineHeight:1.5,stepPixelSize:10,minValue:0,maxValue:100,value:u,onChange:function(){function d(m,c){return i("set_node",{node_name:f,concentration:c/100})}return d}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",textAlign:"center",width:2.2,disabled:u===100,onClick:function(){function d(){return i("set_node",{node_name:f,concentration:(u+10)/100})}return d}()})]})}},54090:function(I,r,n){"use strict";r.__esModule=!0,r.AtmosPump=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),s=r.AtmosPump=function(){function y(V,k){var S=(0,a.useBackend)(k),p=S.act,i=S.data,l=i.on,f=i.rate,u=i.max_rate,d=i.gas_unit,m=i.step;return(0,e.createComponentVNode)(2,o.Window,{width:330,height:110,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power",children:(0,e.createComponentVNode)(2,t.Button,{icon:"power-off",content:l?"On":"Off",color:l?null:"red",selected:l,onClick:function(){function c(){return p("power")}return c}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Rate",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"fast-backward",textAlign:"center",disabled:f===0,width:2.2,onClick:function(){function c(){return p("min_rate")}return c}()}),(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,unit:d,width:6.1,lineHeight:1.5,step:m,minValue:0,maxValue:u,value:f,onDrag:function(){function c(v,b){return p("custom_rate",{rate:b})}return c}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",textAlign:"center",disabled:f===u,width:2.2,onClick:function(){function c(){return p("max_rate")}return c}()})]})]})})})})}return y}()},85909:function(I,r,n){"use strict";r.__esModule=!0,r.Autolathe=void 0;var e=n(96524),a=n(74041),t=n(50640),o=n(17899),s=n(24674),y=n(45493),V=n(78234),k=function(i,l,f,u){return i.requirements===null?!0:!(i.requirements.metal*u>l||i.requirements.glass*u>f)},S=r.Autolathe=function(){function p(i,l){var f=(0,o.useBackend)(l),u=f.act,d=f.data,m=d.total_amount,c=d.max_amount,v=d.metal_amount,b=d.glass_amount,C=d.busyname,h=d.busyamt,g=d.showhacked,N=d.buildQueue,x=d.buildQueueLen,B=d.recipes,L=d.categories,w=(0,o.useSharedState)(l,"category",0),A=w[0],T=w[1];A===0&&(A="Tools");var E=v.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1,"),O=b.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1,"),P=m.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1,"),R=(0,o.useSharedState)(l,"search_text",""),F=R[0],j=R[1],U=(0,V.createSearch)(F,function(G){return G.name}),_="";x>0&&(_=N.map(function(G,ne){return(0,e.createComponentVNode)(2,s.Box,{children:(0,e.createComponentVNode)(2,s.Button,{fluid:!0,icon:"times",color:"transparent",content:N[ne][0],onClick:function(){function $(){return u("remove_from_queue",{remove_from_queue:N.indexOf(G)+1})}return $}()},G)},ne)}));var K=(0,a.flow)([(0,t.filter)(function(G){return(G.category.indexOf(A)>-1||F)&&(d.showhacked||!G.hacked)}),F&&(0,t.filter)(U),(0,t.sortBy)(function(G){return G.name.toLowerCase()})])(B),Y="Build";return F?Y="Results for: '"+F+"':":A&&(Y="Build ("+A+")"),(0,e.createComponentVNode)(2,y.Window,{width:750,height:525,children:(0,e.createComponentVNode)(2,y.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,s.Stack,{fill:!0,horizontal:!0,children:[(0,e.createComponentVNode)(2,s.Stack.Item,{width:"70%",children:(0,e.createComponentVNode)(2,s.Section,{fill:!0,scrollable:!0,title:Y,buttons:(0,e.createComponentVNode)(2,s.Dropdown,{width:"150px",options:L,selected:A,onSelected:function(){function G(ne){return T(ne)}return G}()}),children:[(0,e.createComponentVNode)(2,s.Input,{fluid:!0,placeholder:"Search for...",onInput:function(){function G(ne,$){return j($)}return G}(),mb:1}),K.map(function(G){return(0,e.createComponentVNode)(2,s.Stack.Item,{grow:!0,children:[(0,e.createVNode)(1,"img",null,null,1,{src:"data:image/jpeg;base64,"+G.image,style:{"vertical-align":"middle",width:"32px",margin:"0px","margin-left":"0px"}}),(0,e.createComponentVNode)(2,s.Button,{mr:1,icon:"hammer",selected:d.busyname===G.name&&d.busyamt===1,disabled:!k(G,d.metal_amount,d.glass_amount,1),onClick:function(){function ne(){return u("make",{make:G.uid,multiplier:1})}return ne}(),children:(0,V.toTitleCase)(G.name)}),G.max_multiplier>=10&&(0,e.createComponentVNode)(2,s.Button,{mr:1,icon:"hammer",selected:d.busyname===G.name&&d.busyamt===10,disabled:!k(G,d.metal_amount,d.glass_amount,10),onClick:function(){function ne(){return u("make",{make:G.uid,multiplier:10})}return ne}(),children:"10x"}),G.max_multiplier>=25&&(0,e.createComponentVNode)(2,s.Button,{mr:1,icon:"hammer",selected:d.busyname===G.name&&d.busyamt===25,disabled:!k(G,d.metal_amount,d.glass_amount,25),onClick:function(){function ne(){return u("make",{make:G.uid,multiplier:25})}return ne}(),children:"25x"}),G.max_multiplier>25&&(0,e.createComponentVNode)(2,s.Button,{mr:1,icon:"hammer",selected:d.busyname===G.name&&d.busyamt===G.max_multiplier,disabled:!k(G,d.metal_amount,d.glass_amount,G.max_multiplier),onClick:function(){function ne(){return u("make",{make:G.uid,multiplier:G.max_multiplier})}return ne}(),children:[G.max_multiplier,"x"]}),G.requirements&&Object.keys(G.requirements).map(function(ne){return(0,V.toTitleCase)(ne)+": "+G.requirements[ne]}).join(", ")||(0,e.createComponentVNode)(2,s.Box,{children:"No resources required."})]},G.ref)})]})}),(0,e.createComponentVNode)(2,s.Stack.Item,{width:"30%",children:[(0,e.createComponentVNode)(2,s.Section,{title:"Materials",children:(0,e.createComponentVNode)(2,s.LabeledList,{children:[(0,e.createComponentVNode)(2,s.LabeledList.Item,{label:"Metal",children:E}),(0,e.createComponentVNode)(2,s.LabeledList.Item,{label:"Glass",children:O}),(0,e.createComponentVNode)(2,s.LabeledList.Item,{label:"Total",children:P}),(0,e.createComponentVNode)(2,s.LabeledList.Item,{label:"Storage",children:[d.fill_percent,"% Full"]})]})}),(0,e.createComponentVNode)(2,s.Section,{title:"Building",children:(0,e.createComponentVNode)(2,s.Box,{color:C?"green":"",children:C||"Nothing"})}),(0,e.createComponentVNode)(2,s.Section,{title:"Build Queue",height:23.7,children:[_,(0,e.createComponentVNode)(2,s.Button,{mt:.5,fluid:!0,icon:"times",content:"Clear All",color:"red",disabled:!d.buildQueueLen,onClick:function(){function G(){return u("clear_queue")}return G}()})]})]})]})})})}return p}()},26215:function(I,r,n){"use strict";r.__esModule=!0,r.Biogenerator=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),s=n(75201),y=r.Biogenerator=function(){function p(i,l){var f=(0,a.useBackend)(l),u=f.data,d=f.config,m=u.container,c=u.processing,v=d.title;return(0,e.createComponentVNode)(2,o.Window,{width:390,height:595,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,s.Operating,{operating:c,name:v}),(0,e.createComponentVNode)(2,V),(0,e.createComponentVNode)(2,k),(0,e.createComponentVNode)(2,S)]})})})}return p}(),V=function(i,l){var f=(0,a.useBackend)(l),u=f.act,d=f.data,m=d.biomass,c=d.container,v=d.container_curr_reagents,b=d.container_max_reagents;return(0,e.createComponentVNode)(2,t.Section,{title:"Storage",children:[(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{mr:"20px",color:"silver",children:"Biomass:"}),(0,e.createComponentVNode)(2,t.Stack.Item,{mr:"5px",children:m}),(0,e.createComponentVNode)(2,t.Icon,{name:"leaf",size:1.2,color:"#3d8c40"})]}),(0,e.createComponentVNode)(2,t.Stack,{height:"21px",mt:"8px",align:"center",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{mr:"10px",color:"silver",children:"Container:"}),c?(0,e.createComponentVNode)(2,t.ProgressBar,{value:v,maxValue:b,children:(0,e.createComponentVNode)(2,t.Box,{textAlign:"center",children:v+" / "+b+" units"})}):(0,e.createComponentVNode)(2,t.Stack.Item,{children:"None"})]})]})},k=function(i,l){var f=(0,a.useBackend)(l),u=f.act,d=f.data,m=d.has_plants,c=d.container;return(0,e.createComponentVNode)(2,t.Section,{title:"Controls",children:(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"30%",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"power-off",disabled:!m,tooltip:m?"":"There are no plants in the biogenerator.",tooltipPosition:"top-start",content:"Activate",onClick:function(){function v(){return u("activate")}return v}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:"40%",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"flask",disabled:!c,tooltip:c?"":"The biogenerator does not have a container.",tooltipPosition:"top",content:"Detach Container",onClick:function(){function v(){return u("detach_container")}return v}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:"30%",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"eject",disabled:!m,tooltip:m?"":"There are no stored plants to eject.",tooltipPosition:"top-end",content:"Eject Plants",onClick:function(){function v(){return u("eject_plants")}return v}()})})]})})},S=function(i,l){var f=(0,a.useBackend)(l),u=f.act,d=f.data,m=d.biomass,c=d.product_list,v=d.container,b=(0,a.useSharedState)(l,"vendAmount",1),C=b[0],h=b[1],g=Object.entries(c).map(function(N,x){var B=Object.entries(N[1]).map(function(L){return L[1]});return(0,e.createComponentVNode)(2,t.Collapsible,{title:N[0],open:!0,children:B.map(function(L){return(0,e.createComponentVNode)(2,t.Stack,{py:"2px",className:"candystripe",align:"center",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"50%",ml:"2px",children:L.name}),(0,e.createComponentVNode)(2,t.Stack.Item,{textAlign:"right",width:"20%",children:[L.cost*C,(0,e.createComponentVNode)(2,t.Icon,{ml:"5px",name:"leaf",size:1.2,color:"#3d8c40"})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{textAlign:"right",width:"40%",children:L.needs_container&&!v?(0,e.createComponentVNode)(2,t.Button,{content:"No container",disabled:!0,icon:"flask",tooltip:"\u0412\u0441\u0442\u0430\u0432\u044C\u0442\u0435 \u043B\u044E\u0431\u043E\u0439 \u043A\u043E\u043D\u0442\u0435\u0439\u043D\u0435\u0440 \u0434\u043B\u044F \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u043D\u0438\u044F \u044D\u0442\u043E\u0439 \u043E\u043F\u0446\u0438\u0438"}):(0,e.createComponentVNode)(2,t.Button,{content:"Vend",disabled:m0?Math.floor(A/u):0,P=f?"@?%%!\u2116@"+u:u,R=A>=u,F=d-d%5+(d%5>0?5:0);return(0,e.createComponentVNode)(2,t.Section,{title:"\u0418\u0441\u0441\u043B\u0435\u0434\u043E\u0432\u0430\u043D\u0438\u0435 \u0420\u0430\u0437\u043B\u043E\u043C\u0430",children:[(0,e.createComponentVNode)(2,t.Box,{color:"silver",bold:!0,children:B}),(0,e.createComponentVNode)(2,t.ProgressBar,{color:E===0?"bad":E<100?"average":"good",value:w,maxValue:L,mt:1,mb:2,children:[E<=100?E:100," %"]}),(0,e.createComponentVNode)(2,t.Box,{children:["\u0414\u0430\u043D\u043D\u044B\u0435 \u0434\u043B\u044F \u0437\u043E\u043D\u0434\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u044F: ",(0,e.createComponentVNode)(2,t.Box,{color:A?R?"good":"average":"bad",as:"span",children:Math.floor(A)}),(0,e.createComponentVNode)(2,t.Button,{icon:"atom",tooltip:"\u0414\u043B\u044F \u0433\u0435\u043D\u0435\u0440\u0430\u0446\u0438\u0438 \u043E\u0434\u043D\u043E\u0433\u043E \u0437\u043E\u043D\u0434\u0438\u0440\u0443\u044E\u0449\u0435\u0433\u043E \u0438\u043C\u043F\u0443\u043B\u044C\u0441\u0430 \u043D\u0443\u0436\u043D\u043E \u0441\u043E\u0431\u0440\u0430\u0442\u044C "+P+" \u0434\u0430\u043D\u043D\u044B\u0445.",content:d>0?"\u041F\u043E\u0434\u0433\u043E\u0442\u043E\u0432\u043A\u0430 "+F+" \u0441\u0435\u043A\u0443\u043D\u0434":"\u0417\u043E\u043D\u0434\u0438\u0440\u043E\u0432\u0430\u0442\u044C ("+O+")",disabled:!R||d>0,onClick:function(){function j(){return i("probe",{rift_id:x})}return j}(),mx:2}),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",content:T?"\u0420\u0435\u0437\u0443\u043B\u044C\u0442\u0430\u0442 \u043F\u043E\u043B\u0443\u0447\u0435\u043D":"\u041F\u043E\u043B\u0443\u0447\u0438\u0442\u044C \u0440\u0435\u0437\u0443\u043B\u044C\u0442\u0430\u0442 \u0438\u0441\u0441\u043B\u0435\u0434\u043E\u0432\u0430\u043D\u0438\u0439",disabled:T||E<100,onClick:function(){function j(){return i("reward",{rift_id:x})}return j}(),mt:1.4})]})]})}return g}(),C=function(){function g(N){var x=N.servName,B=N.servData;return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:x,children:B.length?B.map(function(L,w){return(0,e.createComponentVNode)(2,t.Box,{children:[L.riftName," \u2014 ",Math.floor(L.probePoints)," ","\u0434\u0430\u043D\u043D\u044B\u0445."]},w)}):(0,e.createComponentVNode)(2,t.Box,{children:"\u041D\u0435\u0442 \u0434\u0430\u043D\u043D\u044B\u0445"})})}return g}(),h=function(){function g(N){var x=N.scannerId,B=N.scannerName,L=N.scanStatus,w=N.canSwitch,A=N.switching,T=s[L],E=function(){function P(){if(T==="OFF")return[" ","silver"];if(T==="NO_RIFTS")return["\u041D\u0435\u0442 \u0440\u0430\u0437\u043B\u043E\u043C\u043E\u0432","silver"];if(T==="SOME_RIFTS")return["\u0421\u043A\u0430\u043D\u0438\u0440\u0443\u0435\u0442","good"];if(T==="DANGER")return["\u041E\u043F\u0430\u0441\u043D\u043E\u0441\u0442\u044C! \u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u0435 \u0441\u043A\u0430\u043D\u0435\u0440!","bad"]}return P}(),O=E();return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:B,py:0,children:[A?(0,e.createComponentVNode)(2,t.Icon,{name:"circle-notch",color:"silver",spin:!0,ml:1.85,mr:1.79,my:.84}):w?(0,e.createComponentVNode)(2,t.Button,{icon:"power-off",color:T==="OFF"?"bad":"good",onClick:function(){function P(){return i("toggle_scanner",{scanner_id:x})}return P}(),ml:1,mr:1}):(0,e.createComponentVNode)(2,t.Icon,{name:"power-off",color:T==="OFF"?"bad":"good",ml:1.85,mr:1.79,my:.84}),T!=="OFF"&&(0,e.createComponentVNode)(2,t.Box,{as:"span",color:O[1],children:O[0]})]})}return g}();return(0,e.createComponentVNode)(2,o.Window,{width:570,height:400,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[m&&m.map(function(g){return b(g)}),(0,e.createComponentVNode)(2,t.Section,{title:"\u0421\u043A\u0430\u043D\u0435\u0440\u044B \u0432 \u0441\u0435\u0442\u0438",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:v&&v.map(function(g){return h(g)})})}),(0,e.createComponentVNode)(2,t.Section,{title:"\u0421\u0435\u0440\u0432\u0435\u0440\u044B \u0432 \u0441\u0435\u0442\u0438",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:c&&c.map(function(g){return C(g)})})})]})})}return V}()},69099:function(I,r,n){"use strict";r.__esModule=!0,r.BluespaceTap=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),s=n(92986),y=r.BluespaceTap=function(){function V(k,S){var p=(0,a.useBackend)(S),i=p.act,l=p.data,f=l.product||[],u=l.desiredLevel,d=l.inputLevel,m=l.points,c=l.totalPoints,v=l.powerUse,b=l.availablePower,C=l.maxLevel,h=l.emagged,g=l.safeLevels,N=l.nextLevelPower,x=u>d&&"bad"||"good";return(0,e.createComponentVNode)(2,o.Window,{width:650,height:450,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[!!h&&(0,e.createComponentVNode)(2,t.NoticeBox,{danger:1,children:"Safety Protocols disabled"}),d>g&&(0,e.createComponentVNode)(2,t.NoticeBox,{danger:1,children:"High Power, Instability likely"}),(0,e.createComponentVNode)(2,t.Collapsible,{title:"Input Management",children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Input",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Input Level",children:d}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Desired Level",children:(0,e.createComponentVNode)(2,t.Stack,{inline:!0,width:"100%",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"fast-backward",disabled:u===0,tooltip:"Set to 0",onClick:function(){function B(){return i("set",{set_level:0})}return B}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"step-backward",tooltip:"Decrease to actual input level",disabled:u===0,onClick:function(){function B(){return i("set",{set_level:d})}return B}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"backward",disabled:u===0,tooltip:"Decrease one step",onClick:function(){function B(){return i("decrease")}return B}()})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:1,mx:1,children:(0,e.createComponentVNode)(2,t.Slider,{value:u,fillValue:d,minValue:0,color:x,maxValue:C,stepPixelSize:20,step:1,onChange:function(){function B(L,w){return i("set",{set_level:w})}return B}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"forward",disabled:u===C,tooltip:"Increase one step",tooltipPosition:"left",onClick:function(){function B(){return i("increase")}return B}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",disabled:u===C,tooltip:"Set to max",tooltipPosition:"left",onClick:function(){function B(){return i("set",{set_level:C})}return B}()})]})]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Current Power Use",children:(0,s.formatPower)(v)}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power for next level",children:(0,s.formatPower)(N)}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Surplus Power",children:(0,s.formatPower)(b)})]})})}),(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Output",children:(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Available Points",children:m}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Total Points",children:c})]})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{align:"end",children:(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:f.map(function(B){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:B.name,children:(0,e.createComponentVNode)(2,t.Button,{disabled:B.price>=m,onClick:function(){function L(){return i("vend",{target:B.key})}return L}(),content:B.price})},B.key)})})})})]})})]})})})}return V}()},71736:function(I,r,n){"use strict";r.__esModule=!0,r.BodyScanner=void 0;var e=n(96524),a=n(36121),t=n(78234),o=n(17899),s=n(24674),y=n(45493),V=[["good","Alive"],["average","Critical"],["bad","DEAD"]],k=[["hasBorer","bad","Large growth detected in frontal lobe, possibly cancerous. Surgical removal is recommended."],["hasVirus","bad","Viral pathogen detected in blood stream."],["blind","average","Cataracts detected."],["colourblind","average","Photoreceptor abnormalities detected."],["nearsighted","average","Retinal misalignment detected."]],S=[["Respiratory","oxyLoss"],["Brain","brainLoss"],["Toxin","toxLoss"],["Radioactive","radLoss"],["Brute","bruteLoss"],["Genetic","cloneLoss"],["Burn","fireLoss"],["Paralysis","paralysis"]],p={average:[.25,.5],bad:[.5,1/0]},i=function(x,B){for(var L=[],w=0;w0?x.filter(function(B){return!!B}).reduce(function(B,L){return(0,e.createFragment)([B,(0,e.createComponentVNode)(2,s.Box,{children:L},L)],0)},null):null},f=function(x){if(x>100){if(x<300)return"mild infection";if(x<400)return"mild infection+";if(x<500)return"mild infection++";if(x<700)return"acute infection";if(x<800)return"acute infection+";if(x<900)return"acute infection++";if(x>=900)return"septic"}return""},u=r.BodyScanner=function(){function N(x,B){var L=(0,o.useBackend)(B),w=L.data,A=w.occupied,T=w.occupant,E=T===void 0?{}:T,O=A?(0,e.createComponentVNode)(2,d,{occupant:E}):(0,e.createComponentVNode)(2,g);return(0,e.createComponentVNode)(2,y.Window,{width:700,height:600,title:"Body Scanner",children:(0,e.createComponentVNode)(2,y.Window.Content,{scrollable:!0,children:O})})}return N}(),d=function(x){var B=x.occupant;return(0,e.createComponentVNode)(2,s.Box,{children:[(0,e.createComponentVNode)(2,m,{occupant:B}),(0,e.createComponentVNode)(2,c,{occupant:B}),(0,e.createComponentVNode)(2,v,{occupant:B}),(0,e.createComponentVNode)(2,C,{organs:B.extOrgan}),(0,e.createComponentVNode)(2,h,{organs:B.intOrgan})]})},m=function(x,B){var L=(0,o.useBackend)(B),w=L.act,A=L.data,T=A.occupant;return(0,e.createComponentVNode)(2,s.Section,{title:"Occupant",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,s.Button,{icon:"print",onClick:function(){function E(){return w("print_p")}return E}(),children:"Print Report"}),(0,e.createComponentVNode)(2,s.Button,{icon:"user-slash",onClick:function(){function E(){return w("ejectify")}return E}(),children:"Eject"})],4),children:(0,e.createComponentVNode)(2,s.LabeledList,{children:[(0,e.createComponentVNode)(2,s.LabeledList.Item,{label:"Name",children:T.name}),(0,e.createComponentVNode)(2,s.LabeledList.Item,{label:"Health",children:(0,e.createComponentVNode)(2,s.ProgressBar,{min:"0",max:T.maxHealth,value:T.health/T.maxHealth,ranges:{good:[.5,1/0],average:[0,.5],bad:[-1/0,0]}})}),(0,e.createComponentVNode)(2,s.LabeledList.Item,{label:"Status",color:V[T.stat][0],children:V[T.stat][1]}),(0,e.createComponentVNode)(2,s.LabeledList.Item,{label:"Temperature",children:[(0,e.createComponentVNode)(2,s.AnimatedNumber,{value:(0,a.round)(T.bodyTempC)}),"\xB0C,\xA0",(0,e.createComponentVNode)(2,s.AnimatedNumber,{value:(0,a.round)(T.bodyTempF)}),"\xB0F"]}),(0,e.createComponentVNode)(2,s.LabeledList.Item,{label:"Implants",children:T.implant_len?(0,e.createComponentVNode)(2,s.Box,{children:T.implant.map(function(E){return E.name}).join(", ")}):(0,e.createComponentVNode)(2,s.Box,{color:"label",children:"None"})})]})})},c=function(x){var B=x.occupant;return B.hasBorer||B.blind||B.colourblind||B.nearsighted||B.hasVirus?(0,e.createComponentVNode)(2,s.Section,{title:"Abnormalities",children:k.map(function(L,w){if(B[L[0]])return(0,e.createComponentVNode)(2,s.Box,{color:L[1],bold:L[1]==="bad",children:L[2]},L[2])})}):(0,e.createComponentVNode)(2,s.Section,{title:"Abnormalities",children:(0,e.createComponentVNode)(2,s.Box,{color:"label",children:"No abnormalities found."})})},v=function(x){var B=x.occupant;return(0,e.createComponentVNode)(2,s.Section,{title:"Damage",children:(0,e.createComponentVNode)(2,s.Table,{children:i(S,function(L,w,A){return(0,e.createFragment)([(0,e.createComponentVNode)(2,s.Table.Row,{color:"label",children:[(0,e.createComponentVNode)(2,s.Table.Cell,{children:[L[0],":"]}),(0,e.createComponentVNode)(2,s.Table.Cell,{children:!!w&&w[0]+":"})]}),(0,e.createComponentVNode)(2,s.Table.Row,{children:[(0,e.createComponentVNode)(2,s.Table.Cell,{children:(0,e.createComponentVNode)(2,b,{value:B[L[1]],marginBottom:A100)&&"average"||!!B.status.robotic&&"label",width:"33%",children:(0,t.capitalize)(B.name)}),(0,e.createComponentVNode)(2,s.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,s.ProgressBar,{m:-.5,min:"0",max:B.maxHealth,mt:L>0&&"0.5rem",value:B.totalLoss/B.maxHealth,ranges:p,children:(0,e.createComponentVNode)(2,s.Stack,{children:[(0,e.createComponentVNode)(2,s.Tooltip,{content:"Total damage",children:(0,e.createComponentVNode)(2,s.Stack.Item,{children:[(0,e.createComponentVNode)(2,s.Icon,{name:"heartbeat",mr:.5}),(0,a.round)(B.totalLoss)]})}),!!B.bruteLoss&&(0,e.createComponentVNode)(2,s.Tooltip,{content:"Brute damage",children:(0,e.createComponentVNode)(2,s.Stack.Item,{grow:!0,children:[(0,e.createComponentVNode)(2,s.Icon,{name:"bone",mr:.5}),(0,a.round)(B.bruteLoss)]})}),!!B.fireLoss&&(0,e.createComponentVNode)(2,s.Tooltip,{content:"Burn damage",children:(0,e.createComponentVNode)(2,s.Stack.Item,{children:[(0,e.createComponentVNode)(2,s.Icon,{name:"fire",mr:.5}),(0,a.round)(B.fireLoss)]})})]})})}),(0,e.createComponentVNode)(2,s.Table.Cell,{textAlign:"right",verticalAlign:"top",width:"33%",pt:L>0&&"calc(0.5rem + 2px)",children:[(0,e.createComponentVNode)(2,s.Box,{color:"average",inline:!0,children:l([!!B.internalBleeding&&"Internal bleeding",!!B.burnWound&&"Critical tissue burns",!!B.lungRuptured&&"Ruptured lung",!!B.status.broken&&B.status.broken,f(B.germ_level),!!B.open&&"Open incision"])}),(0,e.createComponentVNode)(2,s.Box,{inline:!0,children:[l([!!B.status.splinted&&(0,e.createComponentVNode)(2,s.Box,{color:"good",children:"Splinted"}),!!B.status.robotic&&(0,e.createComponentVNode)(2,s.Box,{color:"label",children:"Robotic"}),!!B.status.dead&&(0,e.createComponentVNode)(2,s.Box,{color:"bad",bold:!0,children:"DEAD"})]),l(B.shrapnel.map(function(w){return w.known?w.name:"Unknown object"}))]})]})]},L)})]})})},h=function(x){return x.organs.length===0?(0,e.createComponentVNode)(2,s.Section,{title:"Internal Organs",children:(0,e.createComponentVNode)(2,s.Box,{color:"label",children:"N/A"})}):(0,e.createComponentVNode)(2,s.Section,{title:"Internal Organs",children:(0,e.createComponentVNode)(2,s.Table,{children:[(0,e.createComponentVNode)(2,s.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,s.Table.Cell,{children:"Name"}),(0,e.createComponentVNode)(2,s.Table.Cell,{textAlign:"center",children:"Damage"}),(0,e.createComponentVNode)(2,s.Table.Cell,{textAlign:"right",children:"Injuries"})]}),x.organs.map(function(B,L){return(0,e.createComponentVNode)(2,s.Table.Row,{children:[(0,e.createComponentVNode)(2,s.Table.Cell,{color:!!B.dead&&"bad"||B.germ_level>100&&"average"||B.robotic>0&&"label",width:"33%",children:(0,t.capitalize)(B.name)}),(0,e.createComponentVNode)(2,s.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,s.ProgressBar,{min:"0",max:B.maxHealth,value:B.damage/B.maxHealth,mt:L>0&&"0.5rem",ranges:p,children:(0,a.round)(B.damage)})}),(0,e.createComponentVNode)(2,s.Table.Cell,{textAlign:"right",verticalAlign:"top",width:"33%",pt:L>0&&"calc(0.5rem + 2px)",children:[(0,e.createComponentVNode)(2,s.Box,{color:"average",inline:!0,children:l([f(B.germ_level)])}),(0,e.createComponentVNode)(2,s.Box,{inline:!0,children:l([B.robotic===1&&(0,e.createComponentVNode)(2,s.Box,{color:"label",children:"Robotic"}),B.robotic===2&&(0,e.createComponentVNode)(2,s.Box,{color:"label",children:"Assisted"}),!!B.dead&&(0,e.createComponentVNode)(2,s.Box,{color:"bad",bold:!0,children:"DEAD"})])})]})]},L)})]})})},g=function(){return(0,e.createComponentVNode)(2,s.Section,{fill:!0,children:(0,e.createComponentVNode)(2,s.Stack,{fill:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,s.Stack.Item,{grow:!0,align:"center",color:"label",children:[(0,e.createComponentVNode)(2,s.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,e.createVNode)(1,"br"),"No occupant detected."]})})})}},65052:function(I,r,n){"use strict";r.__esModule=!0,r.BorgPanel=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),s=r.BorgPanel=function(){function y(V,k){var S=(0,a.useBackend)(k),p=S.act,i=S.data,l=i.borg||{},f=i.cell||{},u=f.charge/f.maxcharge,d=i.channels||[],m=i.modules||[],c=i.upgrades||[],v=i.ais||[],b=i.laws||[];return(0,e.createComponentVNode)(2,o.Window,{title:"Borg Panel",width:700,height:700,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,t.Section,{title:l.name,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"pencil-alt",content:"Rename",onClick:function(){function C(){return p("rename")}return C}()}),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:l.emagged?"check-square-o":"square-o",content:"Emagged",selected:l.emagged,onClick:function(){function C(){return p("toggle_emagged")}return C}()}),(0,e.createComponentVNode)(2,t.Button,{icon:l.lockdown?"check-square-o":"square-o",content:"Locked Down",selected:l.lockdown,onClick:function(){function C(){return p("toggle_lockdown")}return C}()}),(0,e.createComponentVNode)(2,t.Button,{icon:l.scrambledcodes?"check-square-o":"square-o",content:"Scrambled Codes",selected:l.scrambledcodes,onClick:function(){function C(){return p("toggle_scrambledcodes")}return C}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Reset Module",onClick:function(){function C(){return p("reset_module")}return C}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Charge",children:[f.missing?(0,e.createVNode)(1,"span","color-bad","No cell installed",16):(0,e.createComponentVNode)(2,t.ProgressBar,{value:u,children:f.charge+" / "+f.maxcharge}),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Button,{icon:"pencil-alt",content:"Set",onClick:function(){function C(){return p("set_charge")}return C}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"eject",content:"Change",onClick:function(){function C(){return p("change_cell")}return C}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"trash",content:"Remove",color:"bad",onClick:function(){function C(){return p("remove_cell")}return C}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Radio Channels",children:d.map(function(C){return(0,e.createComponentVNode)(2,t.Button,{icon:C.installed?"check-square-o":"square-o",content:C.name,selected:C.installed,onClick:function(){function h(){return p("toggle_radio",{channel:C.name})}return h}()},C.name)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Model",children:m.map(function(C){return(0,e.createComponentVNode)(2,t.Button,{icon:l.active_module===C.name?"check-square-o":"square-o",content:C.name+" module",selected:l.active_module===C.name,onClick:function(){function h(){return p("setmodule",{module:C.name})}return h}()},C.type)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Upgrades",children:c.map(function(C){return(0,e.createComponentVNode)(2,t.Button,{icon:C.installed?"check-square-o":"square-o",content:C.name,selected:C.installed,onClick:function(){function h(){return p("toggle_upgrade",{upgrade:C.type})}return h}()},C.type)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Master AI",children:v.map(function(C){return(0,e.createComponentVNode)(2,t.Button,{icon:C.connected?"check-square-o":"square-o",content:C.name,selected:C.connected,onClick:function(){function h(){return p("slavetoai",{slavetoai:C.ref})}return h}()},C.ref)})})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Laws",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{content:"Law Manager",selected:l.lawmanager,onClick:function(){function C(){return p("lawmanager")}return C}()}),(0,e.createComponentVNode)(2,t.Button,{icon:l.lawupdate?"check-square-o":"square-o",content:"Lawsync",selected:l.lawupdate,onClick:function(){function C(){return p("toggle_lawupdate")}return C}()})],4),children:b.map(function(C){return(0,e.createComponentVNode)(2,t.Box,{children:C},C)})})]})})}return y}()},43506:function(I,r,n){"use strict";r.__esModule=!0,r.BotClean=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),s=r.BotClean=function(){function y(V,k){var S=(0,a.useBackend)(k),p=S.act,i=S.data,l=i.locked,f=i.noaccess,u=i.maintpanel,d=i.on,m=i.autopatrol,c=i.canhack,v=i.emagged,b=i.remote_disabled,C=i.painame,h=i.cleanblood;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:500,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,t.NoticeBox,{children:["Swipe an ID card to ",l?"unlock":"lock"," this interface."]}),(0,e.createComponentVNode)(2,t.Section,{title:"General Settings",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:(0,e.createComponentVNode)(2,t.Button,{icon:d?"power-off":"times",content:d?"On":"Off",selected:d,disabled:f,onClick:function(){function g(){return p("power")}return g}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Patrol",children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:m,content:"Auto Patrol",disabled:f,onClick:function(){function g(){return p("autopatrol")}return g}()})}),!!u&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Maintenance Panel",children:(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:"Panel Open!"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Safety System",children:(0,e.createComponentVNode)(2,t.Box,{color:v?"bad":"good",children:v?"DISABLED!":"Enabled"})}),!!c&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Hacking",children:(0,e.createComponentVNode)(2,t.Button,{icon:"terminal",content:v?"Restore Safties":"Hack",disabled:f,color:"bad",onClick:function(){function g(){return p("hack")}return g}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Remote Access",children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:!b,content:"AI Remote Control",disabled:f,onClick:function(){function g(){return p("disableremote")}return g}()})})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Cleaning Settings",children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:h,content:"Clean Blood",disabled:f,onClick:function(){function g(){return p("blood")}return g}()})}),C&&(0,e.createComponentVNode)(2,t.Section,{title:"pAI",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"eject",content:C,disabled:f,onClick:function(){function g(){return p("ejectpai")}return g}()})})]})})}return y}()},4249:function(I,r,n){"use strict";r.__esModule=!0,r.BotSecurity=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),s=r.BotSecurity=function(){function y(V,k){var S=(0,a.useBackend)(k),p=S.act,i=S.data,l=i.locked,f=i.noaccess,u=i.maintpanel,d=i.on,m=i.autopatrol,c=i.canhack,v=i.emagged,b=i.remote_disabled,C=i.painame,h=i.check_id,g=i.check_weapons,N=i.check_warrant,x=i.arrest_mode,B=i.arrest_declare;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:500,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,t.NoticeBox,{children:["Swipe an ID card to ",l?"unlock":"lock"," this interface."]}),(0,e.createComponentVNode)(2,t.Section,{title:"General Settings",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:(0,e.createComponentVNode)(2,t.Button,{icon:d?"power-off":"times",content:d?"On":"Off",selected:d,disabled:f,onClick:function(){function L(){return p("power")}return L}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Patrol",children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:m,content:"Auto Patrol",disabled:f,onClick:function(){function L(){return p("autopatrol")}return L}()})}),!!u&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Maintenance Panel",children:(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:"Panel Open!"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Safety System",children:(0,e.createComponentVNode)(2,t.Box,{color:v?"bad":"good",children:v?"DISABLED!":"Enabled"})}),!!c&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Hacking",children:(0,e.createComponentVNode)(2,t.Button,{icon:"terminal",content:v?"Restore Safties":"Hack",disabled:f,color:"bad",onClick:function(){function L(){return p("hack")}return L}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Remote Access",children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:!b,content:"AI Remote Control",disabled:f,onClick:function(){function L(){return p("disableremote")}return L}()})})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Who To Arrest",children:[(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:h,content:"Unidentifiable Persons",disabled:f,onClick:function(){function L(){return p("authid")}return L}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:g,content:"Unauthorized Weapons",disabled:f,onClick:function(){function L(){return p("authweapon")}return L}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:N,content:"Wanted Criminals",disabled:f,onClick:function(){function L(){return p("authwarrant")}return L}()})]}),(0,e.createComponentVNode)(2,t.Section,{title:"Arrest Procedure",children:[(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:x,content:"Detain Targets Indefinitely",disabled:f,onClick:function(){function L(){return p("arrtype")}return L}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:B,content:"Announce Arrests On Radio",disabled:f,onClick:function(){function L(){return p("arrdeclare")}return L}()})]}),C&&(0,e.createComponentVNode)(2,t.Section,{title:"pAI",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"eject",content:C,disabled:f,onClick:function(){function L(){return p("ejectpai")}return L}()})})]})})}return y}()},27267:function(I,r,n){"use strict";r.__esModule=!0,r.BrigCells=void 0;var e=n(96524),a=n(45493),t=n(24674),o=n(17899),s=function(S,p){var i=S.cell,l=(0,o.useBackend)(p),f=l.act,u=i.cell_id,d=i.occupant,m=i.crimes,c=i.brigged_by,v=i.time_left_seconds,b=i.time_set_seconds,C=i.ref,h="";v>0&&(h+=" BrigCells__listRow--active");var g=function(){f("release",{ref:C})};return(0,e.createComponentVNode)(2,t.Table.Row,{className:h,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:u}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:d}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:m}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:c}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.TimeDisplay,{totalSeconds:b})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.TimeDisplay,{totalSeconds:v})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{type:"button",onClick:g,children:"Release"})})]})},y=function(S){var p=S.cells;return(0,e.createComponentVNode)(2,t.Table,{className:"BrigCells__list",children:[(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{header:!0,children:"Cell"}),(0,e.createComponentVNode)(2,t.Table.Cell,{header:!0,children:"Occupant"}),(0,e.createComponentVNode)(2,t.Table.Cell,{header:!0,children:"Crimes"}),(0,e.createComponentVNode)(2,t.Table.Cell,{header:!0,children:"Brigged By"}),(0,e.createComponentVNode)(2,t.Table.Cell,{header:!0,children:"Time Brigged For"}),(0,e.createComponentVNode)(2,t.Table.Cell,{header:!0,children:"Time Left"}),(0,e.createComponentVNode)(2,t.Table.Cell,{header:!0,children:"Release"})]}),p.map(function(i){return(0,e.createComponentVNode)(2,s,{cell:i},i.ref)})]})},V=r.BrigCells=function(){function k(S,p){var i=(0,o.useBackend)(p),l=i.act,f=i.data,u=f.cells;return(0,e.createComponentVNode)(2,a.Window,{theme:"security",width:800,height:400,children:(0,e.createComponentVNode)(2,a.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,y,{cells:u})})})})})}return k}()},26623:function(I,r,n){"use strict";r.__esModule=!0,r.BrigTimer=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),s=r.BrigTimer=function(){function y(V,k){var S=(0,a.useBackend)(k),p=S.act,i=S.data;i.nameText=i.occupant,i.timing&&(i.prisoner_hasrec?i.nameText=(0,e.createComponentVNode)(2,t.Box,{color:"green",children:i.occupant}):i.nameText=(0,e.createComponentVNode)(2,t.Box,{color:"red",children:i.occupant}));var l="pencil-alt";i.prisoner_name&&(i.prisoner_hasrec||(l="exclamation-triangle"));var f=[],u=0;for(u=0;u60||!i.isAllowed,onClick:function(){function d(){return p("start")}return d}()})})]})})]})})}return y}()},43542:function(I,r,n){"use strict";r.__esModule=!0,r.CameraConsoleOldContent=r.CameraConsoleMapContent=r.CameraConsoleListContent=r.CameraConsole=void 0;var e=n(96524),a=n(50640),t=n(74041),o=n(28234),s=n(78234),y=n(17899),V=n(24674),k=n(45493);String.prototype.trimLongStr=function(d){return this.length>d?this.substring(0,d)+"...":this};var S=function(m,c){var v,b;if(!c)return[];var C=m.findIndex(function(h){return h.name===c.name});return[(v=m[C-1])==null?void 0:v.name,(b=m[C+1])==null?void 0:b.name]},p=function(m,c){c===void 0&&(c="");var v=(0,s.createSearch)(c,function(b){return b.name});return(0,t.flow)([(0,a.filter)(function(b){return b==null?void 0:b.name}),c&&(0,a.filter)(v),(0,a.sortBy)(function(b){return b.name})])(m)},i=r.CameraConsole=function(){function d(m,c){var v=(0,y.useLocalState)(c,"tabIndex",0),b=v[0],C=v[1],h=function(){function g(N){switch(N){case 0:return(0,e.createComponentVNode)(2,l);case 1:return(0,e.createComponentVNode)(2,f);default:return"WE SHOULDN'T BE HERE!"}}return g}();return(0,e.createComponentVNode)(2,k.Window,{width:1250,height:600,children:(0,e.createComponentVNode)(2,k.Window.Content,{children:(0,e.createComponentVNode)(2,V.Box,{fillPositionedParent:!0,overflow:"hidden",children:[(0,e.createComponentVNode)(2,V.Tabs,{children:[(0,e.createComponentVNode)(2,V.Tabs.Tab,{selected:b===0,onClick:function(){function g(){return C(0)}return g}(),children:[(0,e.createComponentVNode)(2,V.Icon,{name:"map-marked-alt"})," Map"]},"Map"),(0,e.createComponentVNode)(2,V.Tabs.Tab,{selected:b===1,onClick:function(){function g(){return C(1)}return g}(),children:[(0,e.createComponentVNode)(2,V.Icon,{name:"table"})," List"]},"List")]}),h(b)]})})})}return d}(),l=r.CameraConsoleMapContent=function(){function d(m,c){var v=(0,y.useBackend)(c),b=v.act,C=v.data,h=p(C.cameras),g=(0,y.useLocalState)(c,"zoom",1),N=g[0],x=g[1],B=C.mapRef,L=C.activeCamera,w=C.stationLevelNum,A=C.stationLevelName,T=(0,y.useLocalState)(c,"z_current",w[0]),E=T[0],O=T[1],P=S(h,L),R=P[0],F=P[1];return(0,e.createComponentVNode)(2,V.Box,{height:"100%",display:"flex",children:[(0,e.createVNode)(1,"div","CameraConsole__left",(0,e.createComponentVNode)(2,V.Box,{height:"100%",display:"flex",children:(0,e.createComponentVNode)(2,V.NanoMap,{onZoom:function(){function j(U){return x(U)}return j}(),zLevels:w,zNames:A,z_current:E,setZCurrent:O,children:h.map(function(j){return(0,e.createComponentVNode)(2,V.NanoMap.Marker,{x:j.x,y:j.y,z:j.z,z_current:E,zoom:N,icon:"box",tooltip:j.name,color:j.status?"blue":"red",onClick:function(){function U(){return b("switch_camera",{name:j.name})}return U}()},j.ref)})})}),2),(0,e.createVNode)(1,"div","CameraConsole__right",[(0,e.createVNode)(1,"div","CameraConsole__toolbar",[(0,e.createVNode)(1,"b",null,"Camera: ",16),L&&L.name||"\u2014"],0),(0,e.createVNode)(1,"div","CameraConsole__toolbarRight",[(0,e.createComponentVNode)(2,V.Button,{icon:"chevron-left",disabled:!R,onClick:function(){function j(){return b("switch_camera",{name:R})}return j}()}),(0,e.createComponentVNode)(2,V.Button,{icon:"chevron-right",disabled:!F,onClick:function(){function j(){return b("switch_camera",{name:F})}return j}()})],4),(0,e.createComponentVNode)(2,V.ByondUi,{className:"CameraConsole__map",params:{id:B,type:"map"}})],4)]})}return d}(),f=r.CameraConsoleOldContent=function(){function d(m,c){var v=(0,y.useBackend)(c),b=v.act,C=v.data,h=v.config,g=C.mapRef,N=C.activeCamera,x=(0,y.useLocalState)(c,"searchText",""),B=x[0],L=p(C.cameras,B),w=S(L,N),A=w[0],T=w[1];return(0,e.createComponentVNode)(2,V.Box,{children:[(0,e.createVNode)(1,"div","CameraConsole__left",(0,e.createComponentVNode)(2,k.Window.Content,{children:(0,e.createComponentVNode)(2,V.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,u)})}),2),(0,e.createVNode)(1,"div","CameraConsole__right",[(0,e.createVNode)(1,"div","CameraConsole__toolbar",[(0,e.createVNode)(1,"b",null,"Camera: ",16),N&&N.name||"\u2014"],0),(0,e.createVNode)(1,"div","CameraConsole__toolbarRight",[(0,e.createComponentVNode)(2,V.Button,{icon:"chevron-left",disabled:!A,onClick:function(){function E(){return b("switch_camera",{name:A})}return E}()}),(0,e.createComponentVNode)(2,V.Button,{icon:"chevron-right",disabled:!T,onClick:function(){function E(){return b("switch_camera",{name:T})}return E}()})],4),(0,e.createComponentVNode)(2,V.ByondUi,{className:"CameraConsole__map",params:{id:g,type:"map"}})],4)]})}return d}(),u=r.CameraConsoleListContent=function(){function d(m,c){var v=(0,y.useBackend)(c),b=v.act,C=v.data,h=(0,y.useLocalState)(c,"searchText",""),g=h[0],N=h[1],x=C.activeCamera,B=p(C.cameras,g);return(0,e.createComponentVNode)(2,V.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,V.Stack.Item,{children:(0,e.createComponentVNode)(2,V.Input,{fluid:!0,placeholder:"Search for a camera",onInput:function(){function L(w,A){return N(A)}return L}()})}),(0,e.createComponentVNode)(2,V.Stack.Item,{grow:!0,m:0,children:(0,e.createComponentVNode)(2,V.Section,{fill:!0,scrollable:!0,children:B.map(function(L){return(0,e.createVNode)(1,"div",(0,o.classes)(["Button","Button--fluid","Button--color--transparent",x&&L.name===x.name&&"Button--selected"]),L.name,0,{title:L.name,onClick:function(){function w(){return b("switch_camera",{name:L.name})}return w}()},L.name)})})})]})}return d}()},95513:function(I,r,n){"use strict";r.__esModule=!0,r.Canister=void 0;var e=n(96524),a=n(36121),t=n(17899),o=n(24674),s=n(92986),y=n(45493),V=r.Canister=function(){function k(S,p){var i=(0,t.useBackend)(p),l=i.act,f=i.data,u=f.portConnected,d=f.tankPressure,m=f.releasePressure,c=f.defaultReleasePressure,v=f.minReleasePressure,b=f.maxReleasePressure,C=f.valveOpen,h=f.name,g=f.canLabel,N=f.colorContainer,x=f.color_index,B=f.hasHoldingTank,L=f.holdingTank,w="";x.prim&&(w=N.prim.options[x.prim].name);var A="";x.sec&&(A=N.sec.options[x.sec].name);var T="";x.ter&&(T=N.ter.options[x.ter].name);var E="";x.quart&&(E=N.quart.options[x.quart].name);var O=[],P=[],R=[],F=[],j=0;for(j=0;jh.current_positions&&(0,e.createComponentVNode)(2,t.Box,{color:"green",children:h.total_positions-h.current_positions})||(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"0"})}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{content:"-",disabled:c.cooldown_time||!h.can_close,onClick:function(){function g(){return m("make_job_unavailable",{job:h.title})}return g}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{content:"+",disabled:c.cooldown_time||!h.can_open,onClick:function(){function g(){return m("make_job_available",{job:h.title})}return g}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:c.target_dept&&(0,e.createComponentVNode)(2,t.Box,{color:"green",children:c.priority_jobs.indexOf(h.title)>-1?"Yes":""})||(0,e.createComponentVNode)(2,t.Button,{content:h.is_priority?"Yes":"No",selected:h.is_priority,disabled:c.cooldown_time||!h.can_prioritize,onClick:function(){function g(){return m("prioritize_job",{job:h.title})}return g}()})})]},h.title)})]})})]}):C=(0,e.createComponentVNode)(2,k);break;case 2:!c.authenticated||!c.scan_name?C=(0,e.createComponentVNode)(2,k):c.modify_name?C=(0,e.createComponentVNode)(2,s.AccessList,{accesses:c.regions,selectedList:c.selectedAccess,accessMod:function(){function h(g){return m("set",{access:g})}return h}(),grantAll:function(){function h(){return m("grant_all")}return h}(),denyAll:function(){function h(){return m("clear_all")}return h}(),grantDep:function(){function h(g){return m("grant_region",{region:g})}return h}(),denyDep:function(){function h(g){return m("deny_region",{region:g})}return h}()}):C=(0,e.createComponentVNode)(2,S);break;case 3:c.authenticated?c.records.length?C=(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Records",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"times",content:"Delete All Records",disabled:!c.authenticated||c.records.length===0||c.target_dept,onClick:function(){function h(){return m("wipe_all_logs")}return h}()}),children:[(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{height:2,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Crewman"}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Old Rank"}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"New Rank"}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Authorized By"}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Time"}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Reason"}),!!c.iscentcom&&(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Deleted By"})]}),c.records.map(function(h){return(0,e.createComponentVNode)(2,t.Table.Row,{height:2,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:h.transferee}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:h.oldvalue}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:h.newvalue}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:h.whodidit}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:h.timestamp}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:h.reason}),!!c.iscentcom&&(0,e.createComponentVNode)(2,t.Table.Cell,{children:h.deletedby})]},h.timestamp)})]}),!!c.iscentcom&&(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"pencil-alt",content:"Delete MY Records",color:"purple",disabled:!c.authenticated||c.records.length===0,onClick:function(){function h(){return m("wipe_my_logs")}return h}()})})]}):C=(0,e.createComponentVNode)(2,p):C=(0,e.createComponentVNode)(2,k);break;case 4:!c.authenticated||!c.scan_name?C=(0,e.createComponentVNode)(2,k):C=(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Your Team",children:(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{height:2,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Name"}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Rank"}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Sec Status"}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Actions"})]}),c.people_dept.map(function(h){return(0,e.createComponentVNode)(2,t.Table.Row,{height:2,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:h.name}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:h.title}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:h.crimstat}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{content:h.buttontext,disabled:!h.demotable,onClick:function(){function g(){return m("remote_demote",{remote_demote:h.name})}return g}()})})]},h.title)})]})});break;default:C=(0,e.createComponentVNode)(2,t.Section,{title:"Warning",color:"red",children:"ERROR: Unknown Mode."})}return(0,e.createComponentVNode)(2,o.Window,{width:800,height:800,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:b}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:v}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:C})]})})})}return l}()},16377:function(I,r,n){"use strict";r.__esModule=!0,r.CargoConsole=void 0;var e=n(96524),a=n(74041),t=n(50640),o=n(17899),s=n(24674),y=n(45493),V=n(78234),k=r.CargoConsole=function(){function f(u,d){return(0,e.createComponentVNode)(2,y.Window,{width:900,height:800,children:(0,e.createComponentVNode)(2,y.Window.Content,{children:(0,e.createComponentVNode)(2,s.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,S),(0,e.createComponentVNode)(2,p),(0,e.createComponentVNode)(2,i),(0,e.createComponentVNode)(2,l)]})})})}return f}(),S=function(u,d){var m=(0,o.useLocalState)(d,"contentsModal",null),c=m[0],v=m[1],b=(0,o.useLocalState)(d,"contentsModalTitle",null),C=b[0],h=b[1];if(c!==null&&C!==null)return(0,e.createComponentVNode)(2,s.Modal,{maxWidth:"75%",width:window.innerWidth+"px",maxHeight:window.innerHeight*.75+"px",mx:"auto",children:[(0,e.createComponentVNode)(2,s.Box,{width:"100%",bold:!0,children:(0,e.createVNode)(1,"h1",null,[C,(0,e.createTextVNode)(" contents:")],0)}),(0,e.createComponentVNode)(2,s.Box,{children:c.map(function(g){return(0,e.createComponentVNode)(2,s.Box,{children:["- ",g]},g)})}),(0,e.createComponentVNode)(2,s.Box,{m:2,children:(0,e.createComponentVNode)(2,s.Button,{content:"Close",onClick:function(){function g(){v(null),h(null)}return g}()})})]})},p=function(u,d){var m=(0,o.useBackend)(d),c=m.act,v=m.data,b=v.is_public,C=v.points,h=v.credits,g=v.timeleft,N=v.moving,x=v.at_station,B,L;return!N&&!x?(B="Docked off-station",L="Call Shuttle"):!N&&x?(B="Docked at the station",L="Return Shuttle"):N&&(L="In Transit...",g!==1?B="Shuttle is en route (ETA: "+g+" minutes)":B="Shuttle is en route (ETA: "+g+" minute)"),(0,e.createComponentVNode)(2,s.Stack.Item,{children:(0,e.createComponentVNode)(2,s.Section,{title:"Status",children:(0,e.createComponentVNode)(2,s.LabeledList,{children:[(0,e.createComponentVNode)(2,s.LabeledList.Item,{label:"Points Available",children:C}),(0,e.createComponentVNode)(2,s.LabeledList.Item,{label:"Credits Available",children:h}),(0,e.createComponentVNode)(2,s.LabeledList.Item,{label:"Shuttle Status",children:B}),b===0&&(0,e.createComponentVNode)(2,s.LabeledList.Item,{label:"Controls",children:[(0,e.createComponentVNode)(2,s.Button,{content:L,disabled:N,onClick:function(){function w(){return c("moveShuttle")}return w}()}),(0,e.createComponentVNode)(2,s.Button,{content:"View Central Command Messages",onClick:function(){function w(){return c("showMessages")}return w}()})]})]})})})},i=function(u,d){var m=(0,o.useBackend)(d),c=m.act,v=m.data,b=v.categories,C=v.supply_packs,h=(0,o.useSharedState)(d,"category","Emergency"),g=h[0],N=h[1],x=(0,o.useSharedState)(d,"search_text",""),B=x[0],L=x[1],w=(0,o.useLocalState)(d,"contentsModal",null),A=w[0],T=w[1],E=(0,o.useLocalState)(d,"contentsModalTitle",null),O=E[0],P=E[1],R=(0,V.createSearch)(B,function(U){return U.name}),F=(0,a.flow)([(0,t.filter)(function(U){return U.cat===b.filter(function(_){return _.name===g})[0].category||B}),B&&(0,t.filter)(R),(0,t.sortBy)(function(U){return U.name.toLowerCase()})])(C),j="Crate Catalogue";return B?j="Results for '"+B+"':":g&&(j="Browsing "+g),(0,e.createComponentVNode)(2,s.Stack.Item,{children:(0,e.createComponentVNode)(2,s.Section,{title:j,buttons:(0,e.createComponentVNode)(2,s.Dropdown,{width:"190px",options:b.map(function(U){return U.name}),selected:g,onSelected:function(){function U(_){return N(_)}return U}()}),children:[(0,e.createComponentVNode)(2,s.Input,{fluid:!0,placeholder:"Search for...",onInput:function(){function U(_,K){return L(K)}return U}(),mb:1}),(0,e.createComponentVNode)(2,s.Box,{maxHeight:25,overflowY:"auto",overflowX:"hidden",children:(0,e.createComponentVNode)(2,s.Table,{m:"0.5rem",children:F.map(function(U){return(0,e.createComponentVNode)(2,s.Table.Row,{children:[(0,e.createComponentVNode)(2,s.Table.Cell,{bold:!0,children:(0,e.createComponentVNode)(2,s.Box,{color:U.has_sale?"good":"default",children:[U.name," (",U.cost?U.cost+" Points":"",U.creditsCost&&U.cost?" ":"",U.creditsCost?U.creditsCost+" Credits":"",")"]})}),(0,e.createComponentVNode)(2,s.Table.Cell,{textAlign:"right",pr:1,children:[(0,e.createComponentVNode)(2,s.Button,{content:"Order 1",icon:"shopping-cart",onClick:function(){function _(){return c("order",{crate:U.ref,multiple:0})}return _}()}),(0,e.createComponentVNode)(2,s.Button,{content:"Order Multiple",icon:"cart-plus",onClick:function(){function _(){return c("order",{crate:U.ref,multiple:1})}return _}()}),(0,e.createComponentVNode)(2,s.Button,{content:"View Contents",icon:"search",onClick:function(){function _(){T(U.contents),P(U.name)}return _}()})]})]},U.name)})})})]})})},l=function(u,d){var m=(0,o.useBackend)(d),c=m.act,v=m.data,b=v.requests,C=v.canapprove,h=v.orders;return(0,e.createComponentVNode)(2,s.Section,{fill:!0,scrollable:!0,title:"Details",children:[(0,e.createComponentVNode)(2,s.Box,{bold:!0,children:"Requests"}),(0,e.createComponentVNode)(2,s.Table,{m:"0.5rem",children:b.map(function(g){return(0,e.createComponentVNode)(2,s.Table.Row,{children:[(0,e.createComponentVNode)(2,s.Table.Cell,{children:[(0,e.createComponentVNode)(2,s.Box,{children:["- #",g.ordernum,": ",g.supply_type," for ",(0,e.createVNode)(1,"b",null,g.orderedby,0)]}),(0,e.createComponentVNode)(2,s.Box,{italic:!0,children:["Reason: ",g.comment]}),(0,e.createComponentVNode)(2,s.Box,{italic:!0,children:["Required Techs: ",g.pack_techs]})]}),(0,e.createComponentVNode)(2,s.Stack.Item,{textAlign:"right",children:[(0,e.createComponentVNode)(2,s.Button,{content:"Approve",color:"green",disabled:!C,onClick:function(){function N(){return c("approve",{ordernum:g.ordernum})}return N}()}),(0,e.createComponentVNode)(2,s.Button,{content:"Deny",color:"red",onClick:function(){function N(){return c("deny",{ordernum:g.ordernum})}return N}()})]})]},g.ordernum)})}),(0,e.createComponentVNode)(2,s.Box,{bold:!0,children:"Confirmed Orders"}),(0,e.createComponentVNode)(2,s.Table,{m:"0.5rem",children:h.map(function(g){return(0,e.createComponentVNode)(2,s.Table.Row,{children:(0,e.createComponentVNode)(2,s.Table.Cell,{children:[(0,e.createComponentVNode)(2,s.Box,{children:["- #",g.ordernum,": ",g.supply_type," for ",(0,e.createVNode)(1,"b",null,g.orderedby,0)]}),(0,e.createComponentVNode)(2,s.Box,{italic:!0,children:["Reason: ",g.comment]})]})},g.ordernum)})})]})}},14372:function(I,r,n){"use strict";r.__esModule=!0,r.Changelog=void 0;var e=n(96524),a=n(28234),t=n(17899),o=n(24674),s=n(45493),y=n(17442),V=S(n(97186)),k=S(n(71212));function S(c){return c&&c.__esModule?c:{default:c}}function p(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */p=function(){return v};var c,v={},b=Object.prototype,C=b.hasOwnProperty,h=Object.defineProperty||function(he,Q,X){he[Q]=X.value},g=typeof Symbol=="function"?Symbol:{},N=g.iterator||"@@iterator",x=g.asyncIterator||"@@asyncIterator",B=g.toStringTag||"@@toStringTag";function L(he,Q,X){return Object.defineProperty(he,Q,{value:X,enumerable:!0,configurable:!0,writable:!0}),he[Q]}try{L({},"")}catch(he){L=function(X,te,q){return X[te]=q}}function w(he,Q,X,te){var q=Q&&Q.prototype instanceof F?Q:F,ce=Object.create(q.prototype),Ve=new Ie(te||[]);return h(ce,"_invoke",{value:se(he,X,Ve)}),ce}function A(he,Q,X){try{return{type:"normal",arg:he.call(Q,X)}}catch(te){return{type:"throw",arg:te}}}v.wrap=w;var T="suspendedStart",E="suspendedYield",O="executing",P="completed",R={};function F(){}function j(){}function U(){}var _={};L(_,N,function(){return this});var K=Object.getPrototypeOf,Y=K&&K(K(Te([])));Y&&Y!==b&&C.call(Y,N)&&(_=Y);var G=U.prototype=F.prototype=Object.create(_);function ne(he){["next","throw","return"].forEach(function(Q){L(he,Q,function(X){return this._invoke(Q,X)})})}function $(he,Q){function X(q,ce,Ve,fe){var we=A(he[q],he,ce);if(we.type!=="throw"){var M=we.arg,J=M.value;return J&&typeof J=="object"&&C.call(J,"__await")?Q.resolve(J.__await).then(function(re){X("next",re,Ve,fe)},function(re){X("throw",re,Ve,fe)}):Q.resolve(J).then(function(re){M.value=re,Ve(M)},function(re){return X("throw",re,Ve,fe)})}fe(we.arg)}var te;h(this,"_invoke",{value:function(){function q(ce,Ve){function fe(){return new Q(function(we,M){X(ce,Ve,we,M)})}return te=te?te.then(fe,fe):fe()}return q}()})}function se(he,Q,X){var te=T;return function(q,ce){if(te===O)throw Error("Generator is already running");if(te===P){if(q==="throw")throw ce;return{value:c,done:!0}}for(X.method=q,X.arg=ce;;){var Ve=X.delegate;if(Ve){var fe=Ne(Ve,X);if(fe){if(fe===R)continue;return fe}}if(X.method==="next")X.sent=X._sent=X.arg;else if(X.method==="throw"){if(te===T)throw te=P,X.arg;X.dispatchException(X.arg)}else X.method==="return"&&X.abrupt("return",X.arg);te=O;var we=A(he,Q,X);if(we.type==="normal"){if(te=X.done?P:E,we.arg===R)continue;return{value:we.arg,done:X.done}}we.type==="throw"&&(te=P,X.method="throw",X.arg=we.arg)}}}function Ne(he,Q){var X=Q.method,te=he.iterator[X];if(te===c)return Q.delegate=null,X==="throw"&&he.iterator.return&&(Q.method="return",Q.arg=c,Ne(he,Q),Q.method==="throw")||X!=="return"&&(Q.method="throw",Q.arg=new TypeError("The iterator does not provide a '"+X+"' method")),R;var q=A(te,he.iterator,Q.arg);if(q.type==="throw")return Q.method="throw",Q.arg=q.arg,Q.delegate=null,R;var ce=q.arg;return ce?ce.done?(Q[he.resultName]=ce.value,Q.next=he.nextLoc,Q.method!=="return"&&(Q.method="next",Q.arg=c),Q.delegate=null,R):ce:(Q.method="throw",Q.arg=new TypeError("iterator result is not an object"),Q.delegate=null,R)}function be(he){var Q={tryLoc:he[0]};1 in he&&(Q.catchLoc=he[1]),2 in he&&(Q.finallyLoc=he[2],Q.afterLoc=he[3]),this.tryEntries.push(Q)}function xe(he){var Q=he.completion||{};Q.type="normal",delete Q.arg,he.completion=Q}function Ie(he){this.tryEntries=[{tryLoc:"root"}],he.forEach(be,this),this.reset(!0)}function Te(he){if(he||he===""){var Q=he[N];if(Q)return Q.call(he);if(typeof he.next=="function")return he;if(!isNaN(he.length)){var X=-1,te=function(){function q(){for(;++X=0;--q){var ce=this.tryEntries[q],Ve=ce.completion;if(ce.tryLoc==="root")return te("end");if(ce.tryLoc<=this.prev){var fe=C.call(ce,"catchLoc"),we=C.call(ce,"finallyLoc");if(fe&&we){if(this.prev=0;--te){var q=this.tryEntries[te];if(q.tryLoc<=this.prev&&C.call(q,"finallyLoc")&&this.prev=0;--X){var te=this.tryEntries[X];if(te.finallyLoc===Q)return this.complete(te.completion,te.afterLoc),xe(te),R}}return he}(),catch:function(){function he(Q){for(var X=this.tryEntries.length-1;X>=0;--X){var te=this.tryEntries[X];if(te.tryLoc===Q){var q=te.completion;if(q.type==="throw"){var ce=q.arg;xe(te)}return ce}}throw Error("illegal catch attempt")}return he}(),delegateYield:function(){function he(Q,X,te){return this.delegate={iterator:Te(Q),resultName:X,nextLoc:te},this.method==="next"&&(this.arg=c),R}return he}()},v}function i(c,v,b,C,h,g,N){try{var x=c[g](N),B=x.value}catch(L){b(L);return}x.done?v(B):Promise.resolve(B).then(C,h)}function l(c){return function(){var v=this,b=arguments;return new Promise(function(C,h){var g=c.apply(v,b);function N(B){i(g,C,h,N,x,"next",B)}function x(B){i(g,C,h,N,x,"throw",B)}N(void 0)})}}function f(c,v){c.prototype=Object.create(v.prototype),c.prototype.constructor=c,u(c,v)}function u(c,v){return u=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function b(C,h){return C.__proto__=h,C}return b}(),u(c,v)}var d={add:{icon:"check-circle",color:"green"},admin:{icon:"user-shield",color:"purple"},balance:{icon:"balance-scale-right",color:"yellow"},bugfix:{icon:"bug",color:"green"},code_imp:{icon:"code",color:"green"},config:{icon:"cogs",color:"purple"},del:{icon:"minus",color:"red"},expansion:{icon:"check-circle",color:"green"},experiment:{icon:"radiation",color:"yellow"},image:{icon:"image",color:"green"},imageadd:{icon:"tg-image-plus",color:"green"},imagedel:{icon:"tg-image-minus",color:"red"},qol:{icon:"hand-holding-heart",color:"green"},refactor:{icon:"tools",color:"green"},rscadd:{icon:"check-circle",color:"green"},rscdel:{icon:"times-circle",color:"red"},server:{icon:"server",color:"purple"},sound:{icon:"volume-high",color:"green"},soundadd:{icon:"tg-sound-plus",color:"green"},sounddel:{icon:"tg-sound-minus",color:"red"},spellcheck:{icon:"spell-check",color:"green"},tgs:{icon:"toolbox",color:"purple"},tweak:{icon:"wrench",color:"green"},unknown:{icon:"info-circle",color:"label"},wip:{icon:"hammer",color:"orange"}},m=r.Changelog=function(c){function v(){var C;return C=c.call(this)||this,C.getData=function(h,g){g===void 0&&(g=1);var N=(0,t.useBackend)(C.context),x=N.act,B=C,L=6;if(g>L)return C.setData("Failed to load data after "+L+" attempts");x("get_month",{date:h}),fetch((0,y.resolveAsset)(h+".yml")).then(function(){var w=l(p().mark(function(){function A(T){var E,O,P;return p().wrap(function(){function R(F){for(;;)switch(F.prev=F.next){case 0:return F.next=2,T.text();case 2:E=F.sent,O=/^Cannot find/,O.test(E)?(P=50+g*50,B.setData("Loading changelog data"+".".repeat(g+3)),setTimeout(function(){B.getData(h,g+1)},P)):B.setData(k.default.load(E,{schema:k.default.CORE_SCHEMA}));case 5:case"end":return F.stop()}}return R}(),A)}return A}()));return function(A){return w.apply(this,arguments)}}())},C.state={data:"Loading changelog data...",selectedDate:"",selectedIndex:0},C.dateChoices=[],C}f(v,c);var b=v.prototype;return b.setData=function(){function C(h){this.setState({data:h})}return C}(),b.setSelectedDate=function(){function C(h){this.setState({selectedDate:h})}return C}(),b.setSelectedIndex=function(){function C(h){this.setState({selectedIndex:h})}return C}(),b.componentDidMount=function(){function C(){var h=this,g=(0,t.useBackend)(this.context),N=g.data.dates,x=N===void 0?[]:N;x&&(x.forEach(function(B){return h.dateChoices.push((0,V.default)(B,"mmmm yyyy",!0))}),this.setSelectedDate(this.dateChoices[0]),this.getData(x[0]))}return C}(),b.render=function(){function C(){var h=this,g=this.state,N=g.data,x=g.selectedDate,B=g.selectedIndex,L=(0,t.useBackend)(this.context),w=L.data.dates,A=this.dateChoices,T=A.length>0&&(0,e.createComponentVNode)(2,o.Stack,{mb:1,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{className:"Changelog__Button",disabled:B===0,icon:"chevron-left",onClick:function(){function F(){var j=B-1;return h.setData("Loading changelog data..."),h.setSelectedIndex(j),h.setSelectedDate(A[j]),window.scrollTo(0,document.body.scrollHeight||document.documentElement.scrollHeight),h.getData(w[j])}return F}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Dropdown,{displayText:x,options:A,onSelected:function(){function F(j){var U=A.indexOf(j);return h.setData("Loading changelog data..."),h.setSelectedIndex(U),h.setSelectedDate(j),window.scrollTo(0,document.body.scrollHeight||document.documentElement.scrollHeight),h.getData(w[U])}return F}(),selected:x,width:"150px"})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{className:"Changelog__Button",disabled:B===A.length-1,icon:"chevron-right",onClick:function(){function F(){var j=B+1;return h.setData("Loading changelog data..."),h.setSelectedIndex(j),h.setSelectedDate(A[j]),window.scrollTo(0,document.body.scrollHeight||document.documentElement.scrollHeight),h.getData(w[j])}return F}()})})]}),E=(0,e.createComponentVNode)(2,o.Section,{children:[(0,e.createVNode)(1,"h1",null,"Paradise Station",16),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Thanks to: ",16),(0,e.createTextVNode)("Baystation 12, /tg/station, /vg/station, NTstation, CDK Station devs, FacepunchStation, GoonStation devs, the original SpaceStation developers and Radithor for the title image. Also a thanks to anybody who has contributed who is not listed here :( Ask to be added here on irc.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createTextVNode)("Recent GitHub contributors can be found "),(0,e.createVNode)(1,"a",null,"here",16,{href:"https://github.com/ss220-space/Paradise/pulse/monthly"}),(0,e.createTextVNode)(".")],0),T]}),O=(0,e.createComponentVNode)(2,o.Section,{children:[T,(0,e.createVNode)(1,"h3",null,"GoonStation 13 Development Team",16),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Coders: ",16),(0,e.createTextVNode)("Stuntwaffle, Showtime, Pantaloons, Nannek, Keelin, Exadv1, hobnob, Justicefries, 0staf, sniperchance, AngriestIBM, BrianOBlivion")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Spriters: ",16),(0,e.createTextVNode)("Supernorn, Haruhi, Stuntwaffle, Pantaloons, Rho, SynthOrange, I Said No")],4),(0,e.createVNode)(1,"p",null,[(0,e.createTextVNode)("Traditional Games Space Station 13 is thankful to the GoonStation 13 Development Team for its work on the game up to the"),(0,e.createTextVNode)(" r4407 release. The changelog for changes up to r4407 can be seen "),(0,e.createVNode)(1,"a",null,"here",16,{href:"https://wiki.ss13.co/Pre-2016_Changelog#April_2010"}),(0,e.createTextVNode)(".")],0),(0,e.createVNode)(1,"p",null,["Except where otherwise noted, Goon Station 13 is licensed under a ",(0,e.createVNode)(1,"a",null,"Creative Commons Attribution-Noncommercial-Share Alike 3.0 License",16,{href:"https://creativecommons.org/licenses/by-nc-sa/3.0/"}),". Rights are currently extended to ",(0,e.createVNode)(1,"a",null,"SomethingAwful Goons",16,{href:"http://forums.somethingawful.com/"})," only."],0),(0,e.createVNode)(1,"h3",null,"Traditional Games Space Station 13 License",16),(0,e.createVNode)(1,"p",null,[(0,e.createTextVNode)("Some icons by"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"a",null,"Yusuke Kamiyamane",16,{href:"http://p.yusukekamiyamane.com/"}),(0,e.createTextVNode)(". All rights reserved. Licensed under a"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"a",null,"Creative Commons Attribution 3.0 License",16,{href:"http://creativecommons.org/licenses/by/3.0/"}),(0,e.createTextVNode)(".")],0)]}),P=/#\d+/,R=typeof N=="object"&&Object.keys(N).length>0&&Object.entries(N).reverse().map(function(F){var j=F[0],U=F[1];return(0,e.createComponentVNode)(2,o.Section,{title:(0,V.default)(j,"d mmmm yyyy",!0),children:(0,e.createComponentVNode)(2,o.Box,{ml:3,children:Object.entries(U).map(function(_){var K=_[0],Y=_[1];return(0,e.createFragment)([(0,e.createVNode)(1,"h4",null,[K,(0,e.createTextVNode)(" changed:")],0),(0,e.createComponentVNode)(2,o.Box,{ml:3,children:(0,e.createComponentVNode)(2,o.Table,{children:Y.map(function(G){var ne=Object.keys(G)[0],$=G[ne],se=$.match(P),Ne=(0,e.createComponentVNode)(2,o.Table.Cell,{className:(0,a.classes)(["Changelog__Cell","Changelog__Cell--Icon"]),children:(0,e.createComponentVNode)(2,o.Icon,{color:d[ne]?d[ne].color:d.unknown.color,name:d[ne]?d[ne].icon:d.unknown.icon})});return se!==null&&(0,e.createComponentVNode)(2,o.Table.Row,{children:[Ne,(0,e.createComponentVNode)(2,o.Table.Cell,{className:"Changelog__Cell",children:(0,e.createVNode)(1,"a",null,[" ",$.charAt(0).toUpperCase()+$.slice(1)," "],0,{href:"https://github.com/ss220-space/Paradise/pull/"+se[0].substring(1)})})]},ne+$)||(0,e.createComponentVNode)(2,o.Table.Row,{children:[Ne,(0,e.createComponentVNode)(2,o.Table.Cell,{className:"Changelog__Cell",children:$})]},ne+$)})})})],4,K)})})},j)});return(0,e.createComponentVNode)(2,s.Window,{title:"Changelog",width:675,height:650,children:(0,e.createComponentVNode)(2,s.Window.Content,{scrollable:!0,children:[E,R,typeof N=="string"&&(0,e.createVNode)(1,"p",null,N,0),O]})})}return C}(),v}(e.Component)},71254:function(I,r,n){"use strict";r.__esModule=!0,r.ChemDispenser=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(1496),s=n(45493),y=[1,5,10,20,30,50,100],V=[1,5,10],k=r.ChemDispenser=function(){function l(f,u){var d=(0,a.useBackend)(u),m=d.act,c=d.data,v=c.chemicals;return(0,e.createComponentVNode)(2,s.Window,{width:460,height:400+v.length*8,children:(0,e.createComponentVNode)(2,s.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,S),(0,e.createComponentVNode)(2,p),(0,e.createComponentVNode)(2,i)]})})})}return l}(),S=function(f,u){var d=(0,a.useBackend)(u),m=d.act,c=d.data,v=c.amount,b=c.energy,C=c.maxEnergy;return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Settings",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Energy",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:b,minValue:0,maxValue:C,ranges:{good:[C*.5,1/0],average:[C*.25,C*.5],bad:[-1/0,C*.25]},children:[b," / ",C," Units"]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Dispense",verticalAlign:"middle",children:(0,e.createComponentVNode)(2,t.Stack,{children:y.map(function(h,g){return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,width:"15%",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"cog",selected:v===h,content:h,onClick:function(){function N(){return m("amount",{amount:h})}return N}()})},g)})})})]})})})},p=function(f,u){for(var d=(0,a.useBackend)(u),m=d.act,c=d.data,v=c.chemicals,b=v===void 0?[]:v,C=[],h=0;h<(b.length+1)%3;h++)C.push(!0);return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:c.glass?"Drink Dispenser":"Chemical Dispenser",children:[b.map(function(g,N){return(0,e.createComponentVNode)(2,t.Button,{m:.1,width:"32.5%",icon:"arrow-circle-down",overflow:"hidden",textOverflow:"ellipsis",content:g.title,style:{"margin-left":"2px"},onClick:function(){function x(){return m("dispense",{reagent:g.id})}return x}()},N)}),C.map(function(g,N){return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,basis:"25%"},N)})]})})},i=function(f,u){var d=(0,a.useBackend)(u),m=d.act,c=d.data,v=c.isBeakerLoaded,b=c.beakerCurrentVolume,C=c.beakerMaxVolume,h=c.beakerContents,g=h===void 0?[]:h;return(0,e.createComponentVNode)(2,t.Stack.Item,{height:16,children:(0,e.createComponentVNode)(2,t.Section,{title:c.glass?"Glass":"Beaker",fill:!0,scrollable:!0,buttons:(0,e.createComponentVNode)(2,t.Box,{children:[!!v&&(0,e.createComponentVNode)(2,t.Box,{inline:!0,color:"label",mr:2,children:[b," / ",C," units"]}),(0,e.createComponentVNode)(2,t.Button,{icon:"eject",content:"Eject",disabled:!v,onClick:function(){function N(){return m("ejectBeaker")}return N}()})]}),children:(0,e.createComponentVNode)(2,o.BeakerContents,{beakerLoaded:v,beakerContents:g,buttons:function(){function N(x){return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{content:"Isolate",icon:"compress-arrows-alt",onClick:function(){function B(){return m("remove",{reagent:x.id,amount:-1})}return B}()}),V.map(function(B,L){return(0,e.createComponentVNode)(2,t.Button,{content:B,onClick:function(){function w(){return m("remove",{reagent:x.id,amount:B})}return w}()},L)}),(0,e.createComponentVNode)(2,t.Button,{content:"ALL",onClick:function(){function B(){return m("remove",{reagent:x.id,amount:x.volume})}return B}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Floor",tooltip:"Set to "+Math.trunc(x.volume),icon:"arrow-circle-down",onClick:function(){function B(){return m("remove",{reagent:x.id,amount:-2})}return B}()})],0)}return N}()})})})}},27004:function(I,r,n){"use strict";r.__esModule=!0,r.ChemHeater=void 0;var e=n(96524),a=n(36121),t=n(17899),o=n(24674),s=n(1496),y=n(45493),V=r.ChemHeater=function(){function p(i,l){return(0,e.createComponentVNode)(2,y.Window,{width:350,height:275,children:(0,e.createComponentVNode)(2,y.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,k),(0,e.createComponentVNode)(2,S)]})})})}return p}(),k=function(i,l){var f=(0,t.useBackend)(l),u=f.act,d=f.data,m=d.targetTemp,c=d.targetTempReached,v=d.autoEject,b=d.isActive,C=d.currentTemp,h=d.isBeakerLoaded;return(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,title:"Settings",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{content:"Auto-eject",icon:v?"toggle-on":"toggle-off",selected:v,onClick:function(){function g(){return u("toggle_autoeject")}return g}()}),(0,e.createComponentVNode)(2,o.Button,{content:b?"On":"Off",icon:"power-off",selected:b,disabled:!h,onClick:function(){function g(){return u("toggle_on")}return g}()})],4),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Target",children:(0,e.createComponentVNode)(2,o.NumberInput,{width:"65px",unit:"K",step:10,stepPixelSize:3,value:(0,a.round)(m,0),minValue:0,maxValue:1e3,onDrag:function(){function g(N,x){return u("adjust_temperature",{target:x})}return g}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Reading",color:c?"good":"average",children:h&&(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:C,format:function(){function g(N){return(0,a.toFixed)(N)+" K"}return g}()})||"\u2014"})]})})})},S=function(i,l){var f=(0,t.useBackend)(l),u=f.act,d=f.data,m=d.isBeakerLoaded,c=d.beakerCurrentVolume,v=d.beakerMaxVolume,b=d.beakerContents;return(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{title:"Beaker",fill:!0,scrollable:!0,buttons:!!m&&(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,o.Box,{inline:!0,color:"label",mr:2,children:[c," / ",v," units"]}),(0,e.createComponentVNode)(2,o.Button,{icon:"eject",content:"Eject",onClick:function(){function C(){return u("eject_beaker")}return C}()})]}),children:(0,e.createComponentVNode)(2,s.BeakerContents,{beakerLoaded:m,beakerContents:b})})})}},41099:function(I,r,n){"use strict";r.__esModule=!0,r.ChemMaster=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),s=n(1496),y=n(99665),V=n(28234),k=["icon"];function S(B,L){if(B==null)return{};var w={},A=Object.keys(B),T,E;for(E=0;E=0)&&(w[T]=B[T]);return w}function p(B,L){B.prototype=Object.create(L.prototype),B.prototype.constructor=B,i(B,L)}function i(B,L){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function w(A,T){return A.__proto__=T,A}return w}(),i(B,L)}var l=[1,5,10],f=function(L,w){var A=(0,a.useBackend)(w),T=A.act,E=A.data,O=L.args.analysis;return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:E.condi?"Condiment Analysis":"Reagent Analysis",children:(0,e.createComponentVNode)(2,t.Box,{mx:"0.5rem",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Name",children:O.name}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Description",children:(O.desc||"").length>0?O.desc:"N/A"}),O.blood_type&&(0,e.createFragment)([(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Blood type",children:O.blood_type}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Blood DNA",className:"LabeledList__breakContents",children:O.blood_dna})],4),!E.condi&&(0,e.createComponentVNode)(2,t.Button,{icon:E.printing?"spinner":"print",disabled:E.printing,iconSpin:!!E.printing,ml:"0.5rem",content:"Print",onClick:function(){function P(){return T("print",{idx:O.idx,beaker:L.args.beaker})}return P}()})]})})})})},u=function(B){return B[B.ToDisposals=0]="ToDisposals",B[B.ToBeaker=1]="ToBeaker",B}(u||{}),d=r.ChemMaster=function(){function B(L,w){return(0,e.createComponentVNode)(2,o.Window,{width:575,height:650,children:[(0,e.createComponentVNode)(2,y.ComplexModal),(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,m),(0,e.createComponentVNode)(2,c),(0,e.createComponentVNode)(2,v),(0,e.createComponentVNode)(2,x)]})})]})}return B}(),m=function(L,w){var A=(0,a.useBackend)(w),T=A.act,E=A.data,O=E.beaker,P=E.beaker_reagents,R=E.buffer_reagents,F=R.length>0;return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Beaker",fill:!0,scrollable:!0,buttons:F?(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"eject",disabled:!O,content:"Eject and Clear Buffer",onClick:function(){function j(){return T("eject")}return j}()}):(0,e.createComponentVNode)(2,t.Button,{icon:"eject",disabled:!O,content:"Eject and Clear Buffer",onClick:function(){function j(){return T("eject")}return j}()}),children:O?(0,e.createComponentVNode)(2,s.BeakerContents,{beakerLoaded:!0,beakerContents:P,buttons:function(){function j(U,_){return(0,e.createComponentVNode)(2,t.Box,{mb:_0?(0,e.createComponentVNode)(2,s.BeakerContents,{beakerLoaded:!0,beakerContents:P,buttons:function(){function R(F,j){return(0,e.createComponentVNode)(2,t.Box,{mb:j0&&(F=R.map(function(j){var U=j.id,_=j.sprite;return(0,e.createComponentVNode)(2,g,{icon:_,color:"translucent",onClick:function(){function K(){return T("set_sprite_style",{production_mode:O,style:U})}return K}(),selected:P===U},U)})),(0,e.createComponentVNode)(2,h,{productionData:L.productionData,children:F&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Style",children:F})})},x=function(L,w){var A=(0,a.useBackend)(w),T=A.act,E=A.data,O=E.loaded_pill_bottle_style,P=E.containerstyles,R=E.loaded_pill_bottle,F={width:"20px",height:"20px"},j=P.map(function(U){var _=U.color,K=U.name,Y=O===_;return(0,e.createComponentVNode)(2,t.Button,{style:{position:"relative",width:F.width,height:F.height},onClick:function(){function G(){return T("set_container_style",{style:_})}return G}(),icon:Y&&"check",iconStyle:{position:"relative","z-index":1},tooltip:K,tooltipPosition:"top",children:[!Y&&(0,e.createVNode)(1,"div",null,null,1,{style:{display:"inline-block"}}),(0,e.createVNode)(1,"span","Button",null,1,{style:{display:"inline-block",position:"absolute",top:0,left:0,margin:0,padding:0,width:F.width,height:F.height,"background-color":_,opacity:.6,filter:"alpha(opacity=60)"}})]},_)});return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Container Customization",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"eject",disabled:!R,content:"Eject Container",onClick:function(){function U(){return T("ejectp")}return U}()}),children:R?(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Style",children:[(0,e.createComponentVNode)(2,t.Button,{style:{width:F.width,height:F.height},icon:"tint-slash",onClick:function(){function U(){return T("clear_container_style")}return U}(),selected:!O,tooltip:"Default",tooltipPosition:"top"}),j]})}):(0,e.createComponentVNode)(2,t.Box,{color:"label",children:"No pill bottle or patch pack loaded."})})})};(0,y.modalRegisterBodyOverride)("analyze",f)},51327:function(I,r,n){"use strict";r.__esModule=!0,r.CloningConsole=void 0;var e=n(96524),a=n(36121),t=n(17899),o=n(24674),s=n(38424),y=n(99665),V=n(45493),k=n(17442),S=function(v,b){var C=(0,t.useBackend)(b),h=C.act,g=C.data,N=v.args,x=N.activerecord,B=N.realname,L=N.health,w=N.unidentity,A=N.strucenzymes,T=L.split(" - ");return(0,e.createComponentVNode)(2,o.Section,{level:2,m:"-1rem",pb:"1rem",title:"Records of "+B,children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Name",children:B}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Damage",children:T.length>1?(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Box,{color:s.COLORS.damageType.oxy,inline:!0,children:T[0]}),(0,e.createTextVNode)("\xA0|\xA0"),(0,e.createComponentVNode)(2,o.Box,{color:s.COLORS.damageType.toxin,inline:!0,children:T[2]}),(0,e.createTextVNode)("\xA0|\xA0"),(0,e.createComponentVNode)(2,o.Box,{color:s.COLORS.damageType.brute,inline:!0,children:T[3]}),(0,e.createTextVNode)("\xA0|\xA0"),(0,e.createComponentVNode)(2,o.Box,{color:s.COLORS.damageType.burn,inline:!0,children:T[1]})],4):(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"Unknown"})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"UI",className:"LabeledList__breakContents",children:w}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"SE",className:"LabeledList__breakContents",children:A}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Disk",children:[(0,e.createComponentVNode)(2,o.Button.Confirm,{disabled:!g.disk,icon:"arrow-circle-down",content:"Import",onClick:function(){function E(){return h("disk",{option:"load"})}return E}()}),(0,e.createComponentVNode)(2,o.Button,{disabled:!g.disk,icon:"arrow-circle-up",content:"Export UI",onClick:function(){function E(){return h("disk",{option:"save",savetype:"ui"})}return E}()}),(0,e.createComponentVNode)(2,o.Button,{disabled:!g.disk,icon:"arrow-circle-up",content:"Export UI and UE",onClick:function(){function E(){return h("disk",{option:"save",savetype:"ue"})}return E}()}),(0,e.createComponentVNode)(2,o.Button,{disabled:!g.disk,icon:"arrow-circle-up",content:"Export SE",onClick:function(){function E(){return h("disk",{option:"save",savetype:"se"})}return E}()})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Actions",children:[(0,e.createComponentVNode)(2,o.Button,{disabled:!g.podready,icon:"user-plus",content:"Clone",onClick:function(){function E(){return h("clone",{ref:x})}return E}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"trash",content:"Delete",onClick:function(){function E(){return h("del_rec")}return E}()})]})]})})},p=r.CloningConsole=function(){function c(v,b){var C=(0,t.useBackend)(b),h=C.act,g=C.data,N=g.menu;return(0,y.modalRegisterBodyOverride)("view_rec",S),(0,e.createComponentVNode)(2,V.Window,{width:640,height:520,children:[(0,e.createComponentVNode)(2,y.ComplexModal,{maxWidth:"75%",maxHeight:"75%"}),(0,e.createComponentVNode)(2,V.Window.Content,{className:"Layout__content--flexColumn",children:[(0,e.createComponentVNode)(2,d),(0,e.createComponentVNode)(2,m),(0,e.createComponentVNode)(2,i),(0,e.createComponentVNode)(2,o.Section,{noTopPadding:!0,flexGrow:"1",children:(0,e.createComponentVNode)(2,l)})]})]})}return c}(),i=function(v,b){var C=(0,t.useBackend)(b),h=C.act,g=C.data,N=g.menu;return(0,e.createComponentVNode)(2,o.Tabs,{children:[(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:N===1,icon:"home",onClick:function(){function x(){return h("menu",{num:1})}return x}(),children:"Main"}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:N===2,icon:"folder",onClick:function(){function x(){return h("menu",{num:2})}return x}(),children:"Records"})]})},l=function(v,b){var C=(0,t.useBackend)(b),h=C.data,g=h.menu,N;return g===1?N=(0,e.createComponentVNode)(2,f):g===2&&(N=(0,e.createComponentVNode)(2,u)),N},f=function(v,b){var C=(0,t.useBackend)(b),h=C.act,g=C.data,N=g.loading,x=g.scantemp,B=g.occupant,L=g.locked,w=g.can_brainscan,A=g.scan_mode,T=g.numberofpods,E=g.pods,O=g.selected_pod,P=L&&!!B;return(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Section,{title:"Scanner",level:"2",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Box,{inline:!0,color:"label",children:"Scanner Lock:\xA0"}),(0,e.createComponentVNode)(2,o.Button,{disabled:!B,selected:P,icon:P?"toggle-on":"toggle-off",content:P?"Engaged":"Disengaged",onClick:function(){function R(){return h("lock")}return R}()}),(0,e.createComponentVNode)(2,o.Button,{disabled:P||!B,icon:"user-slash",content:"Eject Occupant",onClick:function(){function R(){return h("eject")}return R}()})],4),children:[(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Status",children:N?(0,e.createComponentVNode)(2,o.Box,{color:"average",children:[(0,e.createComponentVNode)(2,o.Icon,{name:"spinner",spin:!0}),"\xA0 Scanning..."]}):(0,e.createComponentVNode)(2,o.Box,{color:x.color,children:x.text})}),!!w&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Scan Mode",children:(0,e.createComponentVNode)(2,o.Button,{icon:A?"brain":"male",content:A?"Brain":"Body",onClick:function(){function R(){return h("toggle_mode")}return R}()})})]}),(0,e.createComponentVNode)(2,o.Button,{disabled:!B||N,icon:"user",content:"Scan Occupant",mt:"0.5rem",mb:"0",onClick:function(){function R(){return h("scan")}return R}()})]}),(0,e.createComponentVNode)(2,o.Section,{title:"Pods",level:"2",children:T?E.map(function(R,F){var j;return R.status==="cloning"?j=(0,e.createComponentVNode)(2,o.ProgressBar,{min:"0",max:"100",value:R.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)(R.progress,0)+"%"})}):R.status==="mess"?j=(0,e.createComponentVNode)(2,o.Box,{bold:!0,color:"bad",mt:"0.5rem",children:"ERROR"}):j=(0,e.createComponentVNode)(2,o.Button,{selected:O===R.pod,icon:O===R.pod&&"check",content:"Select",mt:"0.5rem",onClick:function(){function U(){return h("selectpod",{ref:R.pod})}return U}()}),(0,e.createComponentVNode)(2,o.Box,{width:"64px",textAlign:"center",display:"inline-block",mr:"0.5rem",children:[(0,e.createVNode)(1,"img",null,null,1,{src:(0,k.resolveAsset)("pod_"+R.status+".gif"),style:{width:"100%","-ms-interpolation-mode":"nearest-neighbor"}}),(0,e.createComponentVNode)(2,o.Box,{color:"label",children:["Pod #",F+1]}),(0,e.createComponentVNode)(2,o.Box,{bold:!0,color:R.biomass>=150?"good":"bad",inline:!0,children:[(0,e.createComponentVNode)(2,o.Icon,{name:R.biomass>=150?"circle":"circle-o"}),"\xA0",R.biomass]}),j]},F)}):(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"No pods detected. Unable to clone."})})],4)},u=function(v,b){var C=(0,t.useBackend)(b),h=C.act,g=C.data,N=g.records;return N.length?(0,e.createComponentVNode)(2,o.Box,{mt:"0.5rem",children:N.map(function(x,B){return(0,e.createComponentVNode)(2,o.Button,{icon:"user",mb:"0.5rem",content:x.realname,onClick:function(){function L(){return h("view_rec",{ref:x.record})}return L}()},B)})}):(0,e.createComponentVNode)(2,o.Flex,{height:"100%",children:(0,e.createComponentVNode)(2,o.Flex.Item,{grow:"1",align:"center",textAlign:"center",color:"label",children:[(0,e.createComponentVNode)(2,o.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,e.createVNode)(1,"br"),"No records found."]})})},d=function(v,b){var C,h=(0,t.useBackend)(b),g=h.act,N=h.data,x=N.temp;if(!(!x||!x.text||x.text.length<=0)){var B=(C={},C[x.style]=!0,C);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.NoticeBox,Object.assign({},B,{children:[(0,e.createComponentVNode)(2,o.Box,{display:"inline-block",verticalAlign:"middle",children:x.text}),(0,e.createComponentVNode)(2,o.Button,{icon:"times-circle",float:"right",onClick:function(){function L(){return g("cleartemp")}return L}()}),(0,e.createComponentVNode)(2,o.Box,{clear:"both"})]})))}},m=function(v,b){var C=(0,t.useBackend)(b),h=C.act,g=C.data,N=g.scanner,x=g.numberofpods,B=g.autoallowed,L=g.autoprocess,w=g.disk;return(0,e.createComponentVNode)(2,o.Section,{title:"Status",buttons:(0,e.createFragment)([!!B&&(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Box,{inline:!0,color:"label",children:"Auto-processing:\xA0"}),(0,e.createComponentVNode)(2,o.Button,{selected:L,icon:L?"toggle-on":"toggle-off",content:L?"Enabled":"Disabled",onClick:function(){function A(){return h("autoprocess",{on:L?0:1})}return A}()})],4),(0,e.createComponentVNode)(2,o.Button,{disabled:!w,icon:"eject",content:"Eject Disk",onClick:function(){function A(){return h("disk",{option:"eject"})}return A}()})],0),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Scanner",children:N?(0,e.createComponentVNode)(2,o.Box,{color:"good",children:"Connected"}):(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"Not connected!"})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Pods",children:x?(0,e.createComponentVNode)(2,o.Box,{color:"good",children:[x," connected"]}):(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"None connected!"})})]})})}},22420:function(I,r,n){"use strict";r.__esModule=!0,r.CommunicationsComputer=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),s=r.CommunicationsComputer=function(){function y(V,k){var S=(0,a.useBackend)(k),p=S.act,i=S.data,l;i.authenticated?i.is_ai?l="AI":i.authenticated===1?l="Command":i.authenticated===2?l="Captain":l="ERROR: Report This Bug!":l="Not Logged In";var f="View ("+i.messages.length+")",u=(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{title:"Authentication",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:i.is_ai&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Access Level",children:"AI"})||(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Actions",children:(0,e.createComponentVNode)(2,t.Button,{icon:i.authenticated?"sign-out-alt":"id-card",selected:i.authenticated,content:i.authenticated?"Log Out ("+l+")":"Log In",onClick:function(){function x(){return p("auth")}return x}()})})})}),!!i.esc_section&&(0,e.createComponentVNode)(2,t.Section,{title:"Escape Shuttle",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[!!i.esc_status&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:i.esc_status}),!!i.esc_callable&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Options",children:(0,e.createComponentVNode)(2,t.Button,{icon:"rocket",content:"Call Shuttle",disabled:!i.authenticated,onClick:function(){function x(){return p("callshuttle")}return x}()})}),!!i.esc_recallable&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Options",children:(0,e.createComponentVNode)(2,t.Button,{icon:"times",content:"Recall Shuttle",disabled:!i.authenticated||i.is_ai,onClick:function(){function x(){return p("cancelshuttle")}return x}()})}),!!i.lastCallLoc&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Last Call/Recall From",children:i.lastCallLoc})]})})],0),d="Make Priority Announcement";i.msg_cooldown>0&&(d+=" ("+i.msg_cooldown+"s)");var m=i.emagged?"Message [UNKNOWN]":"Message CentComm",c="Request Authentication Codes";i.cc_cooldown>0&&(m+=" ("+i.cc_cooldown+"s)",c+=" ("+i.cc_cooldown+"s)");var v=i.str_security_level,b=i.levels.map(function(x){return(0,e.createComponentVNode)(2,t.Button,{icon:x.icon,content:x.name,disabled:!i.authmax||x.id===i.security_level,onClick:function(){function B(){return p("newalertlevel",{level:x.id})}return B}()},x.name)}),C=i.stat_display.presets.map(function(x){return(0,e.createComponentVNode)(2,t.Button,{content:x.label,selected:x.name===i.stat_display.type,disabled:!i.authenticated,onClick:function(){function B(){return p("setstat",{statdisp:x.name})}return B}()},x.name)}),h=i.stat_display.alerts.map(function(x){return(0,e.createComponentVNode)(2,t.Button,{content:x.label,selected:x.alert===i.stat_display.icon,disabled:!i.authenticated,onClick:function(){function B(){return p("setstat",{statdisp:"alert",alert:x.alert})}return B}()},x.alert)}),g;if(i.current_message_title)g=(0,e.createComponentVNode)(2,t.Section,{title:i.current_message_title,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"times",content:"Return To Message List",disabled:!i.authenticated,onClick:function(){function x(){return p("messagelist")}return x}()}),children:(0,e.createComponentVNode)(2,t.Box,{children:i.current_message})});else{var N=i.messages.map(function(x){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:x.title,children:[(0,e.createComponentVNode)(2,t.Button,{icon:"eye",content:"View",disabled:!i.authenticated||i.current_message_title===x.title,onClick:function(){function B(){return p("messagelist",{msgid:x.id})}return B}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"times",content:"Delete",disabled:!i.authenticated,onClick:function(){function B(){return p("delmessage",{msgid:x.id})}return B}()})]},x.id)});g=(0,e.createComponentVNode)(2,t.Section,{title:"Messages Received",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-circle-left",content:"Back To Main Menu",onClick:function(){function x(){return p("main")}return x}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:N})})}switch(i.menu_state){case 1:return(0,e.createComponentVNode)(2,o.Window,{width:500,height:600,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[u,(0,e.createComponentVNode)(2,t.Section,{title:"Captain-Only Actions",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Current Alert",color:i.security_level_color,children:v}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Change Alert",children:b}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Announcement",children:(0,e.createComponentVNode)(2,t.Button,{icon:"bullhorn",content:d,disabled:!i.authmax||i.msg_cooldown>0,onClick:function(){function x(){return p("announce")}return x}()})}),!!i.emagged&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Transmit",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"broadcast-tower",color:"red",content:m,disabled:!i.authmax||i.cc_cooldown>0,onClick:function(){function x(){return p("MessageSyndicate")}return x}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"sync-alt",content:"Reset Relays",disabled:!i.authmax,onClick:function(){function x(){return p("RestoreBackup")}return x}()})]})||(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Transmit",children:(0,e.createComponentVNode)(2,t.Button,{icon:"broadcast-tower",content:m,disabled:!i.authmax||i.cc_cooldown>0,onClick:function(){function x(){return p("MessageCentcomm")}return x}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Nuclear Device",children:(0,e.createComponentVNode)(2,t.Button,{icon:"bomb",content:c,disabled:!i.authmax||i.cc_cooldown>0,onClick:function(){function x(){return p("nukerequest")}return x}()})})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Command Staff Actions",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Displays",children:(0,e.createComponentVNode)(2,t.Button,{icon:"tv",content:"Change Status Displays",disabled:!i.authenticated,onClick:function(){function x(){return p("status")}return x}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Incoming Messages",children:(0,e.createComponentVNode)(2,t.Button,{icon:"folder-open",content:f,disabled:!i.authenticated,onClick:function(){function x(){return p("messagelist")}return x}()})})]})})]})});case 2:return(0,e.createComponentVNode)(2,o.Window,{width:500,height:600,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[u,(0,e.createComponentVNode)(2,t.Section,{title:"Modify Status Screens",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-circle-left",content:"Back To Main Menu",onClick:function(){function x(){return p("main")}return x}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Presets",children:C}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Alerts",children:h}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Message Line 1",children:(0,e.createComponentVNode)(2,t.Button,{icon:"pencil-alt",content:i.stat_display.line_1,disabled:!i.authenticated,onClick:function(){function x(){return p("setmsg1")}return x}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Message Line 2",children:(0,e.createComponentVNode)(2,t.Button,{icon:"pencil-alt",content:i.stat_display.line_2,disabled:!i.authenticated,onClick:function(){function x(){return p("setmsg2")}return x}()})})]})})]})});case 3:return(0,e.createComponentVNode)(2,o.Window,{width:500,height:600,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[u,g]})});default:return(0,e.createComponentVNode)(2,o.Window,{width:500,height:600,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[u,"ERRROR. Unknown menu_state: ",i.menu_state,"Please report this to NT Technical Support."]})})}}return y}()},64707:function(I,r,n){"use strict";r.__esModule=!0,r.Contractor=void 0;var e=n(96524),a=n(36121),t=n(17899),o=n(24674),s=n(99509),y=n(45493);function V(b,C){b.prototype=Object.create(C.prototype),b.prototype.constructor=b,k(b,C)}function k(b,C){return k=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function h(g,N){return g.__proto__=N,g}return h}(),k(b,C)}var S={1:["ACTIVE","good"],2:["COMPLETED","good"],3:["FAILED","bad"]},p=["Recording biometric data...","Analyzing embedded syndicate info...","STATUS CONFIRMED","Contacting Syndicate database...","Awaiting response...","Awaiting response...","Awaiting response...","Awaiting response...","Awaiting response...","Awaiting response...","Response received, ack 4851234...","CONFIRM ACC "+Math.round(Math.random()*2e4),"Setting up private accounts...","CONTRACTOR ACCOUNT CREATED","Searching for available contracts...","Searching for available contracts...","Searching for available contracts...","Searching for available contracts...","CONTRACTS FOUND","WELCOME, AGENT"],i=r.Contractor=function(){function b(C,h){var g=(0,t.useBackend)(h),N=g.act,x=g.data,B;x.unauthorized?B=(0,e.createComponentVNode)(2,o.Flex.Item,{grow:"1",backgroundColor:"rgba(0, 0, 0, 0.8)",children:(0,e.createComponentVNode)(2,c,{height:"100%",allMessages:["ERROR: UNAUTHORIZED USER"],finishedTimeout:100,onFinished:function(){function T(){}return T}()})}):x.load_animation_completed?B=(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Flex.Item,{basis:"content",children:(0,e.createComponentVNode)(2,l)}),(0,e.createComponentVNode)(2,o.Flex.Item,{basis:"content",mt:"0.5rem",children:(0,e.createComponentVNode)(2,f)}),(0,e.createComponentVNode)(2,o.Flex.Item,{grow:"1",overflow:"hidden",children:x.page===1?(0,e.createComponentVNode)(2,u,{height:"100%"}):(0,e.createComponentVNode)(2,m,{height:"100%"})})],4):B=(0,e.createComponentVNode)(2,o.Flex.Item,{grow:"1",backgroundColor:"rgba(0, 0, 0, 0.8)",children:(0,e.createComponentVNode)(2,c,{height:"100%",allMessages:p,finishedTimeout:3e3,onFinished:function(){function T(){return N("complete_load_animation")}return T}()})});var L=(0,t.useLocalState)(h,"viewingPhoto",""),w=L[0],A=L[1];return(0,e.createComponentVNode)(2,y.Window,{width:500,height:600,theme:"syndicate",children:[w&&(0,e.createComponentVNode)(2,v),(0,e.createComponentVNode)(2,y.Window.Content,{className:"Contractor",children:(0,e.createComponentVNode)(2,o.Flex,{direction:"column",height:"100%",children:B})})]})}return b}(),l=function(C,h){var g=(0,t.useBackend)(h),N=g.act,x=g.data,B=x.tc_available,L=x.tc_paid_out,w=x.completed_contracts,A=x.rep;return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Section,Object.assign({title:"Summary",buttons:(0,e.createComponentVNode)(2,o.Box,{verticalAlign:"middle",mt:"0.25rem",children:[A," Rep"]})},C,{children:(0,e.createComponentVNode)(2,o.Flex,{children:[(0,e.createComponentVNode)(2,o.Box,{flexBasis:"50%",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"TC Available",verticalAlign:"middle",children:(0,e.createComponentVNode)(2,o.Flex,{align:"center",children:[(0,e.createComponentVNode)(2,o.Flex.Item,{grow:"1",children:[B," TC"]}),(0,e.createComponentVNode)(2,o.Button,{disabled:B<=0,content:"Claim",mx:"0.75rem",mb:"0",flexBasis:"content",onClick:function(){function T(){return N("claim")}return T}()})]})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"TC Earned",children:[L," TC"]})]})}),(0,e.createComponentVNode)(2,o.Box,{flexBasis:"50%",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Contracts Completed",verticalAlign:"middle",children:(0,e.createComponentVNode)(2,o.Box,{height:"20px",lineHeight:"20px",display:"inline-block",children:w})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Contractor Status",verticalAlign:"middle",children:"ACTIVE"})]})})]})})))},f=function(C,h){var g=(0,t.useBackend)(h),N=g.act,x=g.data,B=x.page;return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Tabs,Object.assign({},C,{children:[(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:B===1,onClick:function(){function L(){return N("page",{page:1})}return L}(),children:[(0,e.createComponentVNode)(2,o.Icon,{name:"suitcase"}),"Contracts"]}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:B===2,onClick:function(){function L(){return N("page",{page:2})}return L}(),children:[(0,e.createComponentVNode)(2,o.Icon,{name:"shopping-cart"}),"Hub"]})]})))},u=function(C,h){var g=(0,t.useBackend)(h),N=g.act,x=g.data,B=x.contracts,L=x.contract_active,w=x.can_extract,A=!!L&&B.filter(function(R){return R.status===1})[0],T=A&&A.time_left>0,E=(0,t.useLocalState)(h,"viewingPhoto",""),O=E[0],P=E[1];return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Section,Object.assign({title:"Available Contracts",overflow:"auto",buttons:(0,e.createComponentVNode)(2,o.Button,{disabled:!w||T,icon:"parachute-box",content:["Call Extraction",T&&(0,e.createComponentVNode)(2,s.Countdown,{timeLeft:A.time_left,format:function(){function R(F,j){return" ("+j.substr(3)+")"}return R}()})],onClick:function(){function R(){return N("extract")}return R}()})},C,{children:B.slice().sort(function(R,F){return R.status===1?-1:F.status===1?1:R.status-F.status}).map(function(R){var F;return(0,e.createComponentVNode)(2,o.Section,{title:(0,e.createComponentVNode)(2,o.Flex,{children:[(0,e.createComponentVNode)(2,o.Flex.Item,{grow:"1",color:R.status===1&&"good",children:R.target_name}),(0,e.createComponentVNode)(2,o.Flex.Item,{basis:"content",children:R.has_photo&&(0,e.createComponentVNode)(2,o.Button,{icon:"camera",mb:"-0.5rem",ml:"0.5rem",onClick:function(){function j(){return P("target_photo_"+R.uid+".png")}return j}()})})]}),className:"Contractor__Contract",buttons:(0,e.createComponentVNode)(2,o.Box,{width:"100%",children:[!!S[R.status]&&(0,e.createComponentVNode)(2,o.Box,{color:S[R.status][1],display:"inline-block",mt:R.status!==1&&"0.125rem",mr:"0.25rem",lineHeight:"20px",children:S[R.status][0]}),R.status===1&&(0,e.createComponentVNode)(2,o.Button.Confirm,{icon:"ban",color:"bad",content:"Abort",ml:"0.5rem",onClick:function(){function j(){return N("abort")}return j}()})]}),children:(0,e.createComponentVNode)(2,o.Flex,{children:[(0,e.createComponentVNode)(2,o.Flex.Item,{grow:"2",mr:"0.5rem",children:[R.fluff_message,!!R.completed_time&&(0,e.createComponentVNode)(2,o.Box,{color:"good",children:[(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,o.Icon,{name:"check",mr:"0.5rem"}),"Contract completed at ",R.completed_time]}),!!R.dead_extraction&&(0,e.createComponentVNode)(2,o.Box,{color:"bad",mt:"0.5rem",bold:!0,children:[(0,e.createComponentVNode)(2,o.Icon,{name:"exclamation-triangle",mr:"0.5rem"}),"Telecrystals reward reduced drastically as the target was dead during extraction."]}),!!R.fail_reason&&(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:[(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,o.Icon,{name:"times",mr:"0.5rem"}),"Contract failed: ",R.fail_reason]})]}),(0,e.createComponentVNode)(2,o.Flex.Item,{flexBasis:"100%",children:[(0,e.createComponentVNode)(2,o.Flex,{mb:"0.5rem",color:"label",children:["Extraction Zone:\xA0",d(R)]}),(F=R.difficulties)==null?void 0:F.map(function(j,U){return(0,e.createComponentVNode)(2,o.Button.Confirm,{disabled:!!L,content:j.name+" ("+j.reward+" TC)",onClick:function(){function _(){return N("activate",{uid:R.uid,difficulty:U+1})}return _}()},U)}),!!R.objective&&(0,e.createComponentVNode)(2,o.Box,{color:"white",bold:!0,children:[R.objective.extraction_name,(0,e.createVNode)(1,"br"),"(",(R.objective.rewards.tc||0)+" TC",",\xA0",(R.objective.rewards.credits||0)+" Credits",")"]})]})]})},R.uid)})})))},d=function(C){if(!(!C.objective||C.status>1)){var h=C.objective.locs.user_area_id,g=C.objective.locs.user_coords,N=C.objective.locs.target_area_id,x=C.objective.locs.target_coords,B=h===N;return(0,e.createComponentVNode)(2,o.Flex.Item,{children:(0,e.createComponentVNode)(2,o.Icon,{name:B?"dot-circle-o":"arrow-alt-circle-right-o",color:B?"green":"yellow",rotation:B?null:-(0,a.rad2deg)(Math.atan2(x[1]-g[1],x[0]-g[0])),lineHeight:B?null:"0.85",size:"1.5"})})}},m=function(C,h){var g=(0,t.useBackend)(h),N=g.act,x=g.data,B=x.rep,L=x.buyables;return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Section,Object.assign({title:"Available Purchases",overflow:"auto"},C,{children:L.map(function(w){return(0,e.createComponentVNode)(2,o.Section,{title:w.name,buttons:w.refundable&&(0,e.createComponentVNode)(2,o.Button.Confirm,{content:"Refund ("+w.cost+" Rep)",onClick:function(){function A(){return N("refund",{uid:w.uid})}return A}()}),children:[w.description,(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,o.Button.Confirm,{disabled:B-1&&(0,e.createComponentVNode)(2,o.Box,{as:"span",color:w.stock===0?"bad":"good",ml:"0.5rem",children:[w.stock," in stock"]})]},w.uid)})})))},c=function(b){function C(g){var N;return N=b.call(this,g)||this,N.timer=null,N.state={currentIndex:0,currentDisplay:[]},N}V(C,b);var h=C.prototype;return h.tick=function(){function g(){var N=this.props,x=this.state;if(x.currentIndex<=N.allMessages.length){this.setState(function(L){return{currentIndex:L.currentIndex+1}});var B=x.currentDisplay;B.push(N.allMessages[x.currentIndex])}else clearTimeout(this.timer),setTimeout(N.onFinished,N.finishedTimeout)}return g}(),h.componentDidMount=function(){function g(){var N=this,x=this.props.linesPerSecond,B=x===void 0?2.5:x;this.timer=setInterval(function(){return N.tick()},1e3/B)}return g}(),h.componentWillUnmount=function(){function g(){clearTimeout(this.timer)}return g}(),h.render=function(){function g(){return(0,e.createComponentVNode)(2,o.Box,{m:1,children:this.state.currentDisplay.map(function(N){return(0,e.createFragment)([N,(0,e.createVNode)(1,"br")],0,N)})})}return g}(),C}(e.Component),v=function(C,h){var g=(0,t.useLocalState)(h,"viewingPhoto",""),N=g[0],x=g[1];return(0,e.createComponentVNode)(2,o.Modal,{className:"Contractor__photoZoom",children:[(0,e.createComponentVNode)(2,o.Box,{as:"img",src:N}),(0,e.createComponentVNode)(2,o.Button,{icon:"times",content:"Close",color:"grey",mt:"1rem",onClick:function(){function B(){return x("")}return B}()})]})}},52141:function(I,r,n){"use strict";r.__esModule=!0,r.ConveyorSwitch=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),s=r.ConveyorSwitch=function(){function y(V,k){var S=(0,a.useBackend)(k),p=S.act,i=S.data,l=i.slowFactor,f=i.minSpeed,u=i.maxSpeed,d=i.oneWay,m=i.position;return(0,e.createComponentVNode)(2,o.Window,{width:350,height:150,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Lever position",children:m>0?"forward":m<0?"reverse":"neutral"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Allow reverse",children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:!d,onClick:function(){function c(){return p("toggleOneWay")}return c}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Slowdown factor",children:(0,e.createComponentVNode)(2,t.Flex,{children:[(0,e.createComponentVNode)(2,t.Flex.Item,{mx:"1px",children:[" ",(0,e.createComponentVNode)(2,t.Button,{icon:"angle-double-left",onClick:function(){function c(){return p("slowFactor",{value:l-.5})}return c}()})," "]}),(0,e.createComponentVNode)(2,t.Flex.Item,{mx:"1px",children:[" ",(0,e.createComponentVNode)(2,t.Button,{icon:"angle-left",onClick:function(){function c(){return p("slowFactor",{value:l-.1})}return c}()})," "]}),(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Slider,{width:"100px",mx:"1px",value:l,fillValue:l,minValue:f,maxValue:u,step:.1,format:function(){function c(v){return v+"s."}return c}(),onChange:function(){function c(v,b){return p("slowFactor",{value:b})}return c}()})}),(0,e.createComponentVNode)(2,t.Flex.Item,{mx:"1px",children:[" ",(0,e.createComponentVNode)(2,t.Button,{icon:"angle-right",onClick:function(){function c(){return p("slowFactor",{value:l+.1})}return c}()})," "]}),(0,e.createComponentVNode)(2,t.Flex.Item,{mx:"1px",children:[" ",(0,e.createComponentVNode)(2,t.Button,{icon:"angle-double-right",onClick:function(){function c(){return p("slowFactor",{value:l+.5})}return c}()})," "]})]})})]})})})})}return y}()},94187:function(I,r,n){"use strict";r.__esModule=!0,r.CrewMonitor=void 0;var e=n(96524),a=n(50640),t=n(78234),o=n(17899),s=n(24674),y=n(5126),V=n(38424),k=n(45493),S=function(v,b){return v.dead?"Deceased":parseInt(v.health,10)<=b?"Critical":parseInt(v.stat,10)===1?"Unconscious":"Living"},p=function(v,b){return v.dead?"red":parseInt(v.health,10)<=b?"orange":parseInt(v.stat,10)===1?"blue":"green"},i=r.CrewMonitor=function(){function c(v,b){var C=(0,o.useBackend)(b),h=C.act,g=C.data,N=(0,o.useLocalState)(b,"tabIndex",g.IndexToggler),x=N[0],B=N[1],L=function(){function w(A){switch(A){case 0:return(0,e.createComponentVNode)(2,u);case 1:return(0,e.createComponentVNode)(2,d);case 2:return(0,e.createComponentVNode)(2,f);case 3:return(0,e.createComponentVNode)(2,m);default:return"WE SHOULDN'T BE HERE!"}}return w}();return(0,e.createComponentVNode)(2,k.Window,{width:800,height:600,children:(0,e.createComponentVNode)(2,k.Window.Content,{children:(0,e.createComponentVNode)(2,s.Box,{fillPositionedParent:!0,children:[(0,e.createComponentVNode)(2,s.Tabs,{children:[g.isBS?(0,e.createComponentVNode)(2,s.Tabs.Tab,{selected:x===0,onClick:function(){function w(){return B(0)}return w}(),children:[(0,e.createComponentVNode)(2,s.Icon,{name:"table"})," Command Data View"]},"ComDataView"):null,g.isBP?(0,e.createComponentVNode)(2,s.Tabs.Tab,{selected:x===1,onClick:function(){function w(){return B(1)}return w}(),children:[(0,e.createComponentVNode)(2,s.Icon,{name:"table"})," Security Data View"]},"SecDataView"):null,(0,e.createComponentVNode)(2,s.Tabs.Tab,{selected:x===2,onClick:function(){function w(){return B(2)}return w}(),children:[(0,e.createComponentVNode)(2,s.Icon,{name:"table"})," Data View"]},"DataView"),(0,e.createComponentVNode)(2,s.Tabs.Tab,{selected:x===3,onClick:function(){function w(){return B(3)}return w}(),children:[(0,e.createComponentVNode)(2,s.Icon,{name:"map-marked-alt"})," Map View"]},"MapView")]}),L(x)]})})})}return c}(),l=function(v){var b=v.crewData,C=v.context,h=(0,o.useBackend)(C),g=h.act,N=h.data,x=(0,a.sortBy)(function(T){return T.name})(b||[]),B=(0,o.useLocalState)(C,"search",""),L=B[0],w=B[1],A=(0,t.createSearch)(L,function(T){return T.name+"|"+T.assignment+"|"+T.area});return(0,e.createComponentVNode)(2,s.Box,{children:[(0,e.createComponentVNode)(2,s.Input,{placeholder:"Search by name, assignment or location..",width:"100%",onInput:function(){function T(E,O){return w(O)}return T}()}),(0,e.createComponentVNode)(2,s.Table,{m:"0.5rem",children:[(0,e.createComponentVNode)(2,s.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,s.Table.Cell,{children:"Name"}),(0,e.createComponentVNode)(2,s.Table.Cell,{children:"Status"}),(0,e.createComponentVNode)(2,s.Table.Cell,{children:"Location"})]}),x.filter(A).map(function(T){return(0,e.createComponentVNode)(2,s.Table.Row,{bold:!!T.is_command,children:[(0,e.createComponentVNode)(2,y.TableCell,{children:[T.name," (",T.assignment,")"]}),(0,e.createComponentVNode)(2,y.TableCell,{children:[(0,e.createComponentVNode)(2,s.Box,{inline:!0,color:p(T,N.critThreshold),children:S(T,N.critThreshold)}),T.sensor_type>=2?(0,e.createComponentVNode)(2,s.Box,{inline:!0,children:["(",(0,e.createComponentVNode)(2,s.Box,{inline:!0,color:V.COLORS.damageType.oxy,children:T.oxy}),"|",(0,e.createComponentVNode)(2,s.Box,{inline:!0,color:V.COLORS.damageType.toxin,children:T.tox}),"|",(0,e.createComponentVNode)(2,s.Box,{inline:!0,color:V.COLORS.damageType.burn,children:T.fire}),"|",(0,e.createComponentVNode)(2,s.Box,{inline:!0,color:V.COLORS.damageType.brute,children:T.brute}),")"]}):null]}),(0,e.createComponentVNode)(2,y.TableCell,{children:T.sensor_type===3?N.isAI?(0,e.createComponentVNode)(2,s.Button,{fluid:!0,icon:"location-arrow",content:T.area+" ("+T.x+", "+T.y+")",onClick:function(){function E(){return g("track",{track:T.ref})}return E}()}):T.area+" ("+T.x+", "+T.y+")":"Not Available"})]},T.ref)})]})]})},f=function(v,b){var C=(0,o.useBackend)(b),h=C.act,g=C.data,N=g.crewmembers||[];return(0,e.createComponentVNode)(2,l,{crewData:N,context:b})},u=function(v,b){var C=(0,o.useBackend)(b),h=C.act,g=C.data,N=g.crewmembers.filter(function(x){return x.is_command})||[];return(0,e.createComponentVNode)(2,l,{crewData:N,context:b})},d=function(v,b){var C=(0,o.useBackend)(b),h=C.act,g=C.data,N=g.crewmembers.filter(function(x){return x.is_security})||[];return(0,e.createComponentVNode)(2,l,{crewData:N,context:b})},m=function(v,b){var C=(0,o.useBackend)(b),h=C.act,g=C.data,N=g.stationLevelNum,x=g.stationLevelName,B=(0,o.useLocalState)(b,"zoom",1),L=B[0],w=B[1],A=(0,o.useLocalState)(b,"z_current",N[0]),T=A[0],E=A[1],O=function(j){return j.is_command&&g.isBS||j.is_security&&g.isBP?"square":"circle"},P=function(j){return j.is_command&&g.isBS||j.is_security&&g.isBP?10:6},R=function(j,U){return j.is_command&&g.isBS||j.is_security&&g.isBP?j.dead?"red":parseInt(j.health,10)<=U?"orange":parseInt(j.stat,10)===1?"blue":"violet":p(j,U)};return(0,e.createComponentVNode)(2,s.Box,{height:"526px",mb:"0.5rem",overflow:"hidden",children:(0,e.createComponentVNode)(2,s.NanoMap,{onZoom:function(){function F(j){return w(j)}return F}(),zLevels:N,zNames:x,z_current:T,setZCurrent:E,children:g.crewmembers.filter(function(F){return F.sensor_type===3}).map(function(F){return(0,e.createComponentVNode)(2,s.NanoMap.Marker,{x:F.x,y:F.y,z:F.z,z_current:T,zoom:L,icon:O(F),size:P(F),tooltip:F.name+" ("+F.assignment+")",color:R(F,g.critThreshold),onClick:function(){function j(){g.isAI&&h("track",{track:F.ref})}return j}()},F.ref)})})})}},60561:function(I,r,n){"use strict";r.__esModule=!0,r.Cryo=void 0;var e=n(96524),a=n(97650),t=n(17899),o=n(24674),s=n(45493),y=[{label:"\u0410\u0441\u0444\u0438\u043A\u0441\u0438\u044F",type:"oxyLoss"},{label:"\u0418\u043D\u0442\u043E\u043A\u0441\u0438\u043A\u0430\u0446\u0438\u044F",type:"toxLoss"},{label:"\u0420\u0430\u043D\u044B",type:"bruteLoss"},{label:"\u041E\u0436\u043E\u0433\u0438",type:"fireLoss"}],V=[["good","\u0412 \u0441\u043E\u0437\u043D\u0430\u043D\u0438\u0438"],["average","\u0411\u0435\u0437 \u0441\u043E\u0437\u043D\u0430\u043D\u0438\u044F"],["bad","\u0422\u0420\u0423\u041F"]],k=r.Cryo=function(){function i(l,f){return(0,e.createComponentVNode)(2,s.Window,{width:520,height:490,children:(0,e.createComponentVNode)(2,s.Window.Content,{children:(0,e.createComponentVNode)(2,S)})})}return i}(),S=function(l,f){var u=(0,t.useBackend)(f),d=u.act,m=u.data,c=m.isOperating,v=m.hasOccupant,b=m.occupant,C=b===void 0?[]:b,h=m.cellTemperature,g=m.cellTemperatureStatus,N=m.isBeakerLoaded,x=m.auto_eject_healthy,B=m.auto_eject_dead;return(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:2,children:(0,e.createComponentVNode)(2,o.Section,{title:"\u041F\u0430\u0446\u0438\u0435\u043D\u0442",fill:!0,buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"user-slash",onClick:function(){function L(){return d("ejectOccupant")}return L}(),disabled:!v,children:"\u0418\u0437\u0432\u043B\u0435\u0447\u044C"}),children:v?(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"\u041F\u0430\u0446\u0438\u0435\u043D\u0442",children:C.name||"\u0418\u043C\u044F \u043D\u0435\u0438\u0437\u0432\u0435\u0441\u0442\u043D\u043E"}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"\u0417\u0434\u043E\u0440\u043E\u0432\u044C\u0435",children:(0,e.createComponentVNode)(2,o.ProgressBar,{min:C.health,max:C.maxHealth,value:C.health/C.maxHealth,color:C.health>0?"good":"average",children:(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:Math.round(C.health)})})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"\u0421\u0442\u0430\u0442\u0443\u0441",color:V[C.stat][0],children:V[C.stat][1]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"\u0422\u0435\u043C\u043F\u0435\u0440\u0430\u0442\u0443\u0440\u0430",children:[(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:Math.round(C.bodyTemperature)})," ","K"]}),(0,e.createComponentVNode)(2,o.LabeledList.Divider),y.map(function(L){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:L.label,children:(0,e.createComponentVNode)(2,o.ProgressBar,{value:C[L.type]/100,ranges:{bad:[.01,1/0]},children:(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:Math.round(C[L.type])})})},L.id)})]}):(0,e.createComponentVNode)(2,o.Stack,{fill:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,o.Stack.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"),"\u041F\u0430\u0446\u0438\u0435\u043D\u0442 \u043D\u0435 \u043E\u0431\u043D\u0430\u0440\u0443\u0436\u0435\u043D."]})})})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{title:"\u041A\u0440\u0438\u043E\u043A\u0430\u043F\u0441\u0443\u043B\u0430",fill:!0,buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"eject",onClick:function(){function L(){return d("ejectBeaker")}return L}(),disabled:!N,children:"\u0418\u0437\u0432\u043B\u0435\u0447\u044C \u0451\u043C\u043A\u043E\u0441\u0442\u044C"}),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"\u041F\u0438\u0442\u0430\u043D\u0438\u0435",children:(0,e.createComponentVNode)(2,o.Button,{icon:"power-off",onClick:function(){function L(){return d(c?"switchOff":"switchOn")}return L}(),selected:c,children:c?"\u0412\u043A\u043B":"\u0412\u044B\u043A\u043B"})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"\u0422\u0435\u043C\u043F\u0435\u0440\u0430\u0442\u0443\u0440\u0430",color:g,children:[(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:h})," K"]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"\u0401\u043C\u043A\u043E\u0441\u0442\u044C",children:(0,e.createComponentVNode)(2,p)}),(0,e.createComponentVNode)(2,o.LabeledList.Divider),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"\u0410\u0432\u0442\u043E\u0438\u0437\u0432\u043B\u0435\u0447\u0435\u043D\u0438\u0435 \u0437\u0434\u043E\u0440\u043E\u0432\u044B\u0445 \u043F\u0430\u0446\u0438\u0435\u043D\u0442\u043E\u0432",children:(0,e.createComponentVNode)(2,o.Button,{icon:x?"toggle-on":"toggle-off",selected:x,onClick:function(){function L(){return d(x?"auto_eject_healthy_off":"auto_eject_healthy_on")}return L}(),children:x?"\u0412\u043A\u043B":"\u0412\u044B\u043A\u043B"})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"\u0410\u0432\u0442\u043E\u0438\u0437\u0432\u043B\u0435\u0447\u0435\u043D\u0438\u0435 \u043C\u0451\u0440\u0442\u0432\u044B\u0445 \u043F\u0430\u0446\u0438\u0435\u043D\u0442\u043E\u0432",children:(0,e.createComponentVNode)(2,o.Button,{icon:B?"toggle-on":"toggle-off",selected:B,onClick:function(){function L(){return d(B?"auto_eject_dead_off":"auto_eject_dead_on")}return L}(),children:B?"\u0412\u043A\u043B":"\u0412\u044B\u043A\u043B"})})]})})})]})},p=function(l,f){var u=(0,t.useBackend)(f),d=u.act,m=u.data,c=m.isBeakerLoaded,v=m.beakerLabel,b=m.beakerVolume;return c?(0,e.createFragment)([v?"\xAB"+v+"\xBB":(0,e.createComponentVNode)(2,o.Box,{color:"average",children:"\u0401\u043C\u043A\u043E\u0441\u0442\u044C \u043D\u0435 \u043F\u043E\u0434\u043F\u0438\u0441\u0430\u043D\u0430"}),(0,e.createComponentVNode)(2,o.Box,{color:!b&&"bad",children:b?(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:b,format:function(){function C(h){var g=Math.round(h),N=(0,a.declensionRu)(g,"\u041E\u0441\u0442\u0430\u043B\u0430\u0441\u044C","\u041E\u0441\u0442\u0430\u043B\u0438\u0441\u044C","\u041E\u0441\u0442\u0430\u043B\u043E\u0441\u044C"),x=(0,a.declensionRu)(g,"\u0435\u0434\u0438\u043D\u0438\u0446\u0430","\u0435\u0434\u0438\u043D\u0438\u0446\u044B","\u0435\u0434\u0438\u043D\u0438\u0446");return N+" "+g+" "+x}return C}()}):"\u0401\u043C\u043A\u043E\u0441\u0442\u044C \u043F\u0443\u0441\u0442\u0430"})],0):(0,e.createComponentVNode)(2,o.Box,{color:"average",children:"\u0401\u043C\u043A\u043E\u0441\u0442\u044C \u043D\u0435 \u0443\u0441\u0442\u0430\u043D\u043E\u0432\u043B\u0435\u043D\u0430"})}},27889:function(I,r,n){"use strict";r.__esModule=!0,r.CryopodConsole=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),s=n(78234),y=r.CryopodConsole=function(){function S(p,i){var l=(0,a.useBackend)(i),f=l.data,u=f.account_name,d=f.allow_items;return(0,e.createComponentVNode)(2,o.Window,{width:400,height:480,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Hello, "+(u||"[REDACTED]")+"!",children:"This automated cryogenic freezing unit will safely store your corporeal form until your next assignment."}),(0,e.createComponentVNode)(2,V),!!d&&(0,e.createComponentVNode)(2,k)]})})}return S}(),V=function(p,i){var l=(0,a.useBackend)(i),f=l.data,u=f.frozen_crew;return(0,e.createComponentVNode)(2,t.Collapsible,{title:"Stored Crew",children:u.length?(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:u.map(function(d,m){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:d.name,children:d.rank},m)})})}):(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No stored crew!"})})},k=function(p,i){var l=(0,a.useBackend)(i),f=l.act,u=l.data,d=u.frozen_items,m=function(v){var b=v.toString();return b.startsWith("the ")&&(b=b.slice(4,b.length)),(0,s.toTitleCase)(b)};return(0,e.createComponentVNode)(2,t.Collapsible,{title:"Stored Items",children:d.length?(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:d.map(function(c){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:m(c.name),buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-down",content:"Drop",mr:1,onClick:function(){function v(){return f("one_item",{item:c.uid})}return v}()})},c)})})}),(0,e.createComponentVNode)(2,t.Button,{content:"Drop All Items",color:"red",onClick:function(){function c(){return f("all_items")}return c}()})],4):(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No stored items!"})})}},81434:function(I,r,n){"use strict";r.__esModule=!0,r.DNAModifier=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),s=n(99665),y=[["good","Alive"],["average","Critical"],["bad","DEAD"]],V=[["ui","Modify U.I.","dna"],["se","Modify S.E.","dna"],["buffer","Transfer Buffers","syringe"],["rejuvenators","Rejuvenators","flask"]],k=[5,10,20,30,50],S=r.DNAModifier=function(){function h(g,N){var x=(0,a.useBackend)(N),B=x.act,L=x.data,w=L.irradiating,A=L.dnaBlockSize,T=L.occupant;N.dnaBlockSize=A,N.isDNAInvalid=!T.isViableSubject||!T.uniqueIdentity||!T.structuralEnzymes;var E;return w&&(E=(0,e.createComponentVNode)(2,b,{duration:w})),(0,e.createComponentVNode)(2,o.Window,{width:660,height:775,children:[(0,e.createComponentVNode)(2,s.ComplexModal),E,(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,p)}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,i)})]})})]})}return h}(),p=function(g,N){var x=(0,a.useBackend)(N),B=x.act,L=x.data,w=L.locked,A=L.hasOccupant,T=L.occupant;return(0,e.createComponentVNode)(2,t.Section,{title:"Occupant",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{color:"label",inline:!0,mr:"0.5rem",children:"Door Lock:"}),(0,e.createComponentVNode)(2,t.Button,{disabled:!A,selected:w,icon:w?"toggle-on":"toggle-off",content:w?"Engaged":"Disengaged",onClick:function(){function E(){return B("toggleLock")}return E}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:!A||w,icon:"user-slash",content:"Eject",onClick:function(){function E(){return B("ejectOccupant")}return E}()})],4),children:A?(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Name",children:T.name}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Health",children:(0,e.createComponentVNode)(2,t.ProgressBar,{min:T.minHealth,max:T.maxHealth,value:T.health/T.maxHealth,ranges:{good:[.5,1/0],average:[0,.5],bad:[-1/0,0]}})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",color:y[T.stat][0],children:y[T.stat][1]}),(0,e.createComponentVNode)(2,t.LabeledList.Divider)]})}),N.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:T.radiationLevel/100,color:"average"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Unique Enzymes",children:L.occupant.uniqueEnzymes?L.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."})})},i=function(g,N){var x=(0,a.useBackend)(N),B=x.act,L=x.data,w=L.selectedMenuKey,A=L.hasOccupant,T=L.occupant;if(A){if(N.isDNAInvalid)return(0,e.createComponentVNode)(2,t.Section,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,align:"center",textAlign:"center",color:"label",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,e.createVNode)(1,"br"),"No operation possible on this subject."]})})})}else return(0,e.createComponentVNode)(2,t.Section,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,align:"center",textAlign:"center",color:"label",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,e.createVNode)(1,"br"),"No occupant in DNA modifier."]})})});var E;return w==="ui"?E=(0,e.createFragment)([(0,e.createComponentVNode)(2,l),(0,e.createComponentVNode)(2,u)],4):w==="se"?E=(0,e.createFragment)([(0,e.createComponentVNode)(2,f),(0,e.createComponentVNode)(2,u)],4):w==="buffer"?E=(0,e.createComponentVNode)(2,d):w==="rejuvenators"&&(E=(0,e.createComponentVNode)(2,v)),(0,e.createComponentVNode)(2,t.Section,{fill:!0,children:[(0,e.createComponentVNode)(2,t.Tabs,{children:V.map(function(O,P){return(0,e.createComponentVNode)(2,t.Tabs.Tab,{icon:O[2],selected:w===O[0],onClick:function(){function R(){return B("selectMenuKey",{key:O[0]})}return R}(),children:O[1]},P)})}),E]})},l=function(g,N){var x=(0,a.useBackend)(N),B=x.act,L=x.data,w=L.selectedUIBlock,A=L.selectedUISubBlock,T=L.selectedUITarget,E=L.occupant;return(0,e.createComponentVNode)(2,t.Section,{title:"Modify Unique Identifier",children:[(0,e.createComponentVNode)(2,C,{dnaString:E.uniqueIdentity,selectedBlock:w,selectedSubblock:A,blockSize:N.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:T,format:function(){function O(P){return P.toString(16).toUpperCase()}return O}(),ml:"0",onChange:function(){function O(P,R){return B("changeUITarget",{value:R})}return O}()})})}),(0,e.createComponentVNode)(2,t.Button,{icon:"radiation",content:"Irradiate Block",mt:"0.5rem",onClick:function(){function O(){return B("pulseUIRadiation")}return O}()})]})},f=function(g,N){var x=(0,a.useBackend)(N),B=x.act,L=x.data,w=L.selectedSEBlock,A=L.selectedSESubBlock,T=L.occupant;return(0,e.createComponentVNode)(2,t.Section,{title:"Modify Structural Enzymes",children:[(0,e.createComponentVNode)(2,C,{dnaString:T.structuralEnzymes,selectedBlock:w,selectedSubblock:A,blockSize:N.dnaBlockSize,action:"selectSEBlock"}),(0,e.createComponentVNode)(2,t.Button,{icon:"radiation",content:"Irradiate Block",onClick:function(){function E(){return B("pulseSERadiation")}return E}()})]})},u=function(g,N){var x=(0,a.useBackend)(N),B=x.act,L=x.data,w=L.radiationIntensity,A=L.radiationDuration;return(0,e.createComponentVNode)(2,t.Section,{title:"Radiation Emitter",children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Intensity",children:(0,e.createComponentVNode)(2,t.Knob,{minValue:1,maxValue:10,stepPixelSize:20,value:w,popUpPosition:"right",ml:"0",onChange:function(){function T(E,O){return B("radiationIntensity",{value:O})}return T}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Duration",children:(0,e.createComponentVNode)(2,t.Knob,{minValue:1,maxValue:20,stepPixelSize:10,unit:"s",value:A,popUpPosition:"right",ml:"0",onChange:function(){function T(E,O){return B("radiationDuration",{value:O})}return T}()})})]}),(0,e.createComponentVNode)(2,t.Button,{icon:"radiation",content:"Pulse Radiation",tooltip:"Mutates a random block of either the occupant's UI or SE.",tooltipPosition:"top-start",mt:"0.5rem",onClick:function(){function T(){return B("pulseRadiation")}return T}()})]})},d=function(g,N){var x=(0,a.useBackend)(N),B=x.act,L=x.data,w=L.buffers,A=w.map(function(T,E){return(0,e.createComponentVNode)(2,m,{id:E+1,name:"Buffer "+(E+1),buffer:T},E)});return(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{height:"75%",mt:1,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Buffers",children:A})}),(0,e.createComponentVNode)(2,t.Stack.Item,{height:"25%",children:(0,e.createComponentVNode)(2,c)})]})},m=function(g,N){var x=(0,a.useBackend)(N),B=x.act,L=x.data,w=g.id,A=g.name,T=g.buffer,E=L.isInjectorReady,O=A+(T.data?" - "+T.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:O,mx:"0",lineHeight:"18px",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button.Confirm,{disabled:!T.data,icon:"trash",content:"Clear",onClick:function(){function P(){return B("bufferOption",{option:"clear",id:w})}return P}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:!T.data,icon:"pen",content:"Rename",onClick:function(){function P(){return B("bufferOption",{option:"changeLabel",id:w})}return P}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:!T.data||!L.hasDisk,icon:"save",content:"Export",tooltip:"Exports this buffer to the currently loaded data disk.",tooltipPosition:"bottom-start",onClick:function(){function P(){return B("bufferOption",{option:"saveDisk",id:w})}return P}()})],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 P(){return B("bufferOption",{option:"saveUI",id:w})}return P}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-circle-down",content:"Subject U.I and U.E.",mb:"0",onClick:function(){function P(){return B("bufferOption",{option:"saveUIAndUE",id:w})}return P}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-circle-down",content:"Subject S.E.",mb:"0",onClick:function(){function P(){return B("bufferOption",{option:"saveSE",id:w})}return P}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:!L.hasDisk||!L.disk.data,icon:"arrow-circle-down",content:"From Disk",mb:"0",onClick:function(){function P(){return B("bufferOption",{option:"loadDisk",id:w})}return P}()})]}),!!T.data&&(0,e.createFragment)([(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Subject",children: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.LabeledList.Item,{label:"Transfer to",children:[(0,e.createComponentVNode)(2,t.Button,{disabled:!E,icon:E?"syringe":"spinner",iconSpin:!E,content:"Injector",mb:"0",onClick:function(){function P(){return B("bufferOption",{option:"createInjector",id:w})}return P}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:!E,icon:E?"syringe":"spinner",iconSpin:!E,content:"Block Injector",mb:"0",onClick:function(){function P(){return B("bufferOption",{option:"createInjector",id:w,block:1})}return P}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"user",content:"Subject",mb:"0",onClick:function(){function P(){return B("bufferOption",{option:"transfer",id:w})}return P}()})]})],4)]}),!T.data&&(0,e.createComponentVNode)(2,t.Box,{color:"label",mt:"0.5rem",children:"This buffer is empty."})]})})},c=function(g,N){var x=(0,a.useBackend)(N),B=x.act,L=x.data,w=L.hasDisk,A=L.disk;return(0,e.createComponentVNode)(2,t.Section,{title:"Data Disk",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button.Confirm,{disabled:!w||!A.data,icon:"trash",content:"Wipe",onClick:function(){function T(){return B("wipeDisk")}return T}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:!w,icon:"eject",content:"Eject",onClick:function(){function T(){return B("ejectDisk")}return T}()})],4),children:w?A.data?(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Label",children:A.label?A.label:"No label"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Subject",children:A.owner?A.owner:(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"Unknown"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Data Type",children:[A.type==="ui"?"Unique Identifiers":"Structural Enzymes",!!A.ue&&" and Unique Enzymes"]})]}):(0,e.createComponentVNode)(2,t.Box,{color:"label",children:"Disk is blank."}):(0,e.createComponentVNode)(2,t.Box,{color:"label",textAlign:"center",my:"1rem",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"save-o",size:"4"}),(0,e.createVNode)(1,"br"),"No disk inserted."]})})},v=function(g,N){var x=(0,a.useBackend)(N),B=x.act,L=x.data,w=L.isBeakerLoaded,A=L.beakerVolume,T=L.beakerLabel;return(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Rejuvenators and Beaker",buttons:(0,e.createComponentVNode)(2,t.Button,{disabled:!w,icon:"eject",content:"Eject",onClick:function(){function E(){return B("ejectBeaker")}return E}()}),children:w?(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Inject",children:[k.map(function(E,O){return(0,e.createComponentVNode)(2,t.Button,{disabled:E>A,icon:"syringe",content:E,onClick:function(){function P(){return B("injectRejuvenators",{amount:E})}return P}()},O)}),(0,e.createComponentVNode)(2,t.Button,{disabled:A<=0,icon:"syringe",content:"All",onClick:function(){function E(){return B("injectRejuvenators",{amount:A})}return E}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Beaker",children:[(0,e.createComponentVNode)(2,t.Box,{mb:"0.5rem",children:T||"No label"}),A?(0,e.createComponentVNode)(2,t.Box,{color:"good",children:[A," unit",A===1?"":"s"," remaining"]}):(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:"Empty"})]})]}):(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,grow:!0,textAlign:"center",align:"center",color:"label",children:[(0,e.createComponentVNode)(2,t.Icon.Stack,{children:[(0,e.createComponentVNode)(2,t.Icon,{name:"flask",size:5,color:"silver"}),(0,e.createComponentVNode)(2,t.Icon,{name:"slash",size:5,color:"red"})]}),(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"h3",null,"No beaker loaded.",16)]})})})},b=function(g,N){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,N){for(var x=(0,a.useBackend)(N),B=x.act,L=x.data,w=g.dnaString,A=g.selectedBlock,T=g.selectedSubblock,E=g.blockSize,O=g.action,P=w.split(""),R=0,F=[],j=function(){for(var K=U/E+1,Y=[],G=function(){var se=ne+1;Y.push((0,e.createComponentVNode)(2,t.Button,{selected:A===K&&T===se,content:P[U+ne],mb:"0",onClick:function(){function Ne(){return B(O,{block:K,subblock:se})}return Ne}()}))},ne=0;ne0?"Yes":"No",selected:i.com>0,onClick:function(){function f(){return p("toggle_com")}return f}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Security",children:l.map(function(f,u){return(0,e.createComponentVNode)(2,t.Button,{selected:i.sec===f,content:f,onClick:function(){function d(){return p("set_sec",{set_sec:f})}return d}()},"sec"+f)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Medical",children:l.map(function(f,u){return(0,e.createComponentVNode)(2,t.Button,{selected:i.med===f,content:f,onClick:function(){function d(){return p("set_med",{set_med:f})}return d}()},"med"+f)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Engineering",children:l.map(function(f,u){return(0,e.createComponentVNode)(2,t.Button,{selected:i.eng===f,content:f,onClick:function(){function d(){return p("set_eng",{set_eng:f})}return d}()},"eng"+f)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Paranormal",children:l.map(function(f,u){return(0,e.createComponentVNode)(2,t.Button,{selected:i.par===f,content:f,onClick:function(){function d(){return p("set_par",{set_par:f})}return d}()},"par"+f)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Janitor",children:l.map(function(f,u){return(0,e.createComponentVNode)(2,t.Button,{selected:i.jan===f,content:f,onClick:function(){function d(){return p("set_jan",{set_jan:f})}return d}()},"jan"+f)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cyborg",children:l.map(function(f,u){return(0,e.createComponentVNode)(2,t.Button,{selected:i.cyb===f,content:f,onClick:function(){function d(){return p("set_cyb",{set_cyb:f})}return d}()},"cyb"+f)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Total Slots",children:(0,e.createComponentVNode)(2,t.Box,{color:i.total>i.spawnpoints?"red":"green",children:[i.total," total, versus ",i.spawnpoints," spawnpoints"]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Dispatch",children:(0,e.createComponentVNode)(2,t.Button,{icon:"ambulance",content:"Send ERT",onClick:function(){function f(){return p("dispatch_ert")}return f}()})})]})})]})})}return y}()},15543:function(I,r,n){"use strict";r.__esModule=!0,r.Electropack=void 0;var e=n(96524),a=n(36121),t=n(17899),o=n(24674),s=n(45493),y=r.Electropack=function(){function V(k,S){var p=(0,t.useBackend)(S),i=p.act,l=p.data,f=l.power,u=l.code,d=l.frequency,m=l.minFrequency,c=l.maxFrequency;return(0,e.createComponentVNode)(2,s.Window,{width:360,height:150,children:(0,e.createComponentVNode)(2,s.Window.Content,{children:(0,e.createComponentVNode)(2,o.Section,{children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Power",children:(0,e.createComponentVNode)(2,o.Button,{icon:f?"power-off":"times",content:f?"On":"Off",selected:f,onClick:function(){function v(){return i("power")}return v}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Frequency",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"sync",content:"Reset",onClick:function(){function v(){return i("reset",{reset:"freq"})}return v}()}),children:(0,e.createComponentVNode)(2,o.NumberInput,{animate:!0,unit:"kHz",step:.2,stepPixelSize:6,minValue:m/10,maxValue:c/10,value:d/10,format:function(){function v(b){return(0,a.toFixed)(b,1)}return v}(),width:"80px",onChange:function(){function v(b,C){return i("freq",{freq:C})}return v}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Code",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"sync",content:"Reset",onClick:function(){function v(){return i("reset",{reset:"code"})}return v}()}),children:(0,e.createComponentVNode)(2,o.NumberInput,{animate:!0,step:1,stepPixelSize:6,minValue:1,maxValue:100,value:u,width:"80px",onChange:function(){function v(b,C){return i("code",{code:C})}return v}()})})]})})})})}return V}()},99012:function(I,r,n){"use strict";r.__esModule=!0,r.EvolutionMenu=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),s=r.EvolutionMenu=function(){function k(S,p){return(0,e.createComponentVNode)(2,o.Window,{width:480,height:574,theme:"changeling",children:(0,e.createComponentVNode)(2,o.Window.Content,{className:"Layout__content--flexColumn",children:[(0,e.createComponentVNode)(2,y),(0,e.createComponentVNode)(2,V)]})})}return k}(),y=function(S,p){var i=(0,a.useBackend)(p),l=i.act,f=i.data,u=f.evo_points,d=f.can_respec;return(0,e.createComponentVNode)(2,t.Section,{title:"Evolution Points",height:5.5,children:(0,e.createComponentVNode)(2,t.Flex,{children:[(0,e.createComponentVNode)(2,t.Flex.Item,{mt:.5,color:"label",children:"Points remaining:"}),(0,e.createComponentVNode)(2,t.Flex.Item,{mt:.5,ml:2,bold:!0,color:"#1b945c",children:u}),(0,e.createComponentVNode)(2,t.Flex.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{ml:2.5,disabled:!d,content:"Readapt",icon:"sync",onClick:function(){function m(){return l("readapt")}return m}()}),(0,e.createComponentVNode)(2,t.Button,{tooltip:"By transforming a humanoid into a husk, we gain the ability to readapt our chosen evolutions.",tooltipPosition:"bottom",icon:"question-circle"})]})]})})},V=function(S,p){var i=(0,a.useBackend)(p),l=i.act,f=i.data,u=f.evo_points,d=f.ability_list,m=f.purchased_abilities,c=f.view_mode;return(0,e.createComponentVNode)(2,t.Section,{title:"Abilities",flexGrow:"1",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{icon:c?"square-o":"check-square-o",selected:!c,content:"Compact",onClick:function(){function v(){return l("set_view_mode",{mode:0})}return v}()}),(0,e.createComponentVNode)(2,t.Button,{icon:c?"check-square-o":"square-o",selected:c,content:"Expanded",onClick:function(){function v(){return l("set_view_mode",{mode:1})}return v}()})],4),children:d.map(function(v,b){return(0,e.createComponentVNode)(2,t.Box,{p:.5,mx:-1,className:"candystripe",children:[(0,e.createComponentVNode)(2,t.Flex,{align:"center",children:[(0,e.createComponentVNode)(2,t.Flex.Item,{ml:.5,color:"#dedede",children:v.name}),m.includes(v.power_path)&&(0,e.createComponentVNode)(2,t.Flex.Item,{ml:2,bold:!0,color:"#1b945c",children:"(Purchased)"}),(0,e.createComponentVNode)(2,t.Flex.Item,{mr:3,textAlign:"right",grow:1,children:[(0,e.createComponentVNode)(2,t.Box,{as:"span",color:"label",children:["Cost:"," "]}),(0,e.createComponentVNode)(2,t.Box,{as:"span",bold:!0,color:"#1b945c",children:v.cost})]}),(0,e.createComponentVNode)(2,t.Flex.Item,{textAlign:"right",children:(0,e.createComponentVNode)(2,t.Button,{mr:.5,disabled:v.cost>u||m.includes(v.power_path),content:"Evolve",onClick:function(){function C(){return l("purchase",{power_path:v.power_path})}return C}()})})]}),!!c&&(0,e.createComponentVNode)(2,t.Flex,{color:"#8a8a8a",my:1,ml:1.5,width:"95%",children:v.description+" "+v.helptext})]},b)})})}},37504:function(I,r,n){"use strict";r.__esModule=!0,r.ExosuitFabricator=void 0;var e=n(96524),a=n(28234),t=n(78234),o=n(17899),s=n(24674),y=n(99509),V=n(45493),k=["id","amount","lineDisplay","onClick"];function S(b,C){if(b==null)return{};var h={},g=Object.keys(b),N,x;for(x=0;x=0)&&(h[N]=b[N]);return h}var p=2e3,i={bananium:"clown",tranquillite:"mime"},l=r.ExosuitFabricator=function(){function b(C,h){var g=(0,o.useBackend)(h),N=g.act,x=g.data,B=x.building;return(0,e.createComponentVNode)(2,V.Window,{width:950,height:625,children:(0,e.createComponentVNode)(2,V.Window.Content,{className:"Exofab",children:(0,e.createComponentVNode)(2,s.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,s.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,s.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,s.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,u)}),B&&(0,e.createComponentVNode)(2,s.Stack.Item,{children:(0,e.createComponentVNode)(2,d)})]})}),(0,e.createComponentVNode)(2,s.Stack.Item,{width:"30%",children:(0,e.createComponentVNode)(2,s.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,s.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,f)}),(0,e.createComponentVNode)(2,s.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,m)})]})})]})})})}return b}(),f=function(C,h){var g=(0,o.useBackend)(h),N=g.act,x=g.data,B=x.materials,L=x.capacity,w=Object.values(B).reduce(function(A,T){return A+T},0);return(0,e.createComponentVNode)(2,s.Section,{fill:!0,scrollable:!0,title:"Materials",className:"Exofab__materials",buttons:(0,e.createComponentVNode)(2,s.Box,{color:"label",mt:"0.25rem",children:[(w/L*100).toPrecision(3),"% full"]}),children:["metal","glass","silver","gold","uranium","titanium","plasma","diamond","bluespace","bananium","tranquillite","plastic"].map(function(A){return(0,e.createComponentVNode)(2,c,{mt:-2,id:A,bold:A==="metal"||A==="glass",onClick:function(){function T(){return N("withdraw",{id:A})}return T}()},A)})})},u=function(C,h){var g=(0,o.useBackend)(h),N=g.act,x=g.data,B=x.curCategory,L=x.categories,w=x.designs,A=x.syncing,T=(0,o.useLocalState)(h,"searchText",""),E=T[0],O=T[1],P=(0,t.createSearch)(E,function(F){return F.name}),R=w.filter(P);return(0,e.createComponentVNode)(2,s.Section,{fill:!0,scrollable:!0,className:"Exofab__designs",title:(0,e.createComponentVNode)(2,s.Dropdown,{className:"Exofab__dropdown",selected:B,options:L,onSelected:function(){function F(j){return N("category",{cat:j})}return F}()}),buttons:(0,e.createComponentVNode)(2,s.Box,{mt:"2px",children:[(0,e.createComponentVNode)(2,s.Button,{icon:"plus",content:"Queue all",onClick:function(){function F(){return N("queueall")}return F}()}),(0,e.createComponentVNode)(2,s.Button,{disabled:A,iconSpin:A,icon:"sync-alt",content:A?"Synchronizing...":"Synchronize with R&D servers",onClick:function(){function F(){return N("sync")}return F}()})]}),children:[(0,e.createComponentVNode)(2,s.Input,{placeholder:"Search by name...",mb:"0.5rem",width:"100%",onInput:function(){function F(j,U){return O(U)}return F}()}),R.map(function(F){return(0,e.createComponentVNode)(2,v,{design:F},F.id)}),R.length===0&&(0,e.createComponentVNode)(2,s.Box,{color:"label",children:"No designs found."})]})},d=function(C,h){var g=(0,o.useBackend)(h),N=g.act,x=g.data,B=x.building,L=x.buildStart,w=x.buildEnd,A=x.worldTime;return(0,e.createComponentVNode)(2,s.Section,{className:"Exofab__building",stretchContents:!0,children:(0,e.createComponentVNode)(2,s.ProgressBar.Countdown,{start:L,current:A,end:w,children:(0,e.createComponentVNode)(2,s.Stack,{children:[(0,e.createComponentVNode)(2,s.Stack.Item,{children:(0,e.createComponentVNode)(2,s.Icon,{name:"cog",spin:!0})}),(0,e.createComponentVNode)(2,s.Stack.Item,{children:["Building ",B,"\xA0(",(0,e.createComponentVNode)(2,y.Countdown,{current:A,timeLeft:w-A,format:function(){function T(E,O){return O.substr(3)}return T}()}),")"]})]})})})},m=function(C,h){var g=(0,o.useBackend)(h),N=g.act,x=g.data,B=x.queue,L=x.processingQueue,w=Object.entries(x.queueDeficit).filter(function(T){return T[1]<0}),A=B.reduce(function(T,E){return T+E.time},0);return(0,e.createComponentVNode)(2,s.Section,{fill:!0,scrollable:!0,className:"Exofab__queue",title:"Queue",buttons:(0,e.createComponentVNode)(2,s.Box,{children:[(0,e.createComponentVNode)(2,s.Button,{selected:L,icon:L?"toggle-on":"toggle-off",content:"Process",onClick:function(){function T(){return N("process")}return T}()}),(0,e.createComponentVNode)(2,s.Button,{disabled:B.length===0,icon:"eraser",content:"Clear",onClick:function(){function T(){return N("unqueueall")}return T}()})]}),children:(0,e.createComponentVNode)(2,s.Stack,{fill:!0,vertical:!0,children:B.length===0?(0,e.createComponentVNode)(2,s.Box,{color:"label",children:"The queue is empty."}):(0,e.createFragment)([(0,e.createComponentVNode)(2,s.Stack.Item,{className:"Exofab__queue--queue",grow:!0,overflow:"auto",children:B.map(function(T,E){return(0,e.createComponentVNode)(2,s.Box,{color:T.notEnough&&"bad",children:[E+1,". ",T.name,E>0&&(0,e.createComponentVNode)(2,s.Button,{icon:"arrow-up",onClick:function(){function O(){return N("queueswap",{from:E+1,to:E})}return O}()}),E0&&(0,e.createComponentVNode)(2,s.Stack.Item,{className:"Exofab__queue--time",children:[(0,e.createComponentVNode)(2,s.Divider),"Processing time:",(0,e.createComponentVNode)(2,s.Icon,{name:"clock",mx:"0.5rem"}),(0,e.createComponentVNode)(2,s.Box,{inline:!0,bold:!0,children:new Date(A/10*1e3).toISOString().substr(14,5)})]}),Object.keys(w).length>0&&(0,e.createComponentVNode)(2,s.Stack.Item,{className:"Exofab__queue--deficit",shrink:"0",children:[(0,e.createComponentVNode)(2,s.Divider),"Lacking materials to complete:",w.map(function(T){return(0,e.createComponentVNode)(2,s.Box,{children:(0,e.createComponentVNode)(2,c,{id:T[0],amount:-T[1],lineDisplay:!0})},T[0])})]})],0)})})},c=function(C,h){var g=(0,o.useBackend)(h),N=g.act,x=g.data,B=C.id,L=C.amount,w=C.lineDisplay,A=C.onClick,T=S(C,k),E=x.materials[B]||0,O=L||E;if(!(O<=0&&!(B==="metal"||B==="glass"))){var P=L&&L>E;return(0,e.normalizeProps)((0,e.createComponentVNode)(2,s.Stack,Object.assign({align:"center",className:(0,a.classes)(["Exofab__material",w&&"Exofab__material--line"])},T,{children:w?(0,e.createFragment)([(0,e.createComponentVNode)(2,s.Stack.Item,{className:(0,a.classes)(["materials32x32",B])}),(0,e.createComponentVNode)(2,s.Stack.Item,{className:"Exofab__material--amount",color:P&&"bad",ml:0,mr:1,children:O.toLocaleString("en-US")})],4):(0,e.createFragment)([(0,e.createComponentVNode)(2,s.Stack.Item,{basis:"content",children:(0,e.createComponentVNode)(2,s.Button,{width:"85%",color:"transparent",onClick:A,children:(0,e.createComponentVNode)(2,s.Box,{mt:1,className:(0,a.classes)(["materials32x32",B])})})}),(0,e.createComponentVNode)(2,s.Stack.Item,{grow:"1",children:[(0,e.createComponentVNode)(2,s.Box,{className:"Exofab__material--name",children:B}),(0,e.createComponentVNode)(2,s.Box,{className:"Exofab__material--amount",children:[O.toLocaleString("en-US")," cm\xB3 (",Math.round(O/p*10)/10," ","sheets)"]})]})],4)})))}},v=function(C,h){var g=(0,o.useBackend)(h),N=g.act,x=g.data,B=C.design;return(0,e.createComponentVNode)(2,s.Box,{className:"Exofab__design",children:[(0,e.createComponentVNode)(2,s.Button,{disabled:B.notEnough||x.building,icon:"cog",content:B.name,onClick:function(){function L(){return N("build",{id:B.id})}return L}()}),(0,e.createComponentVNode)(2,s.Button,{icon:"plus-circle",onClick:function(){function L(){return N("queue",{id:B.id})}return L}()}),(0,e.createComponentVNode)(2,s.Box,{className:"Exofab__design--cost",children:Object.entries(B.cost).map(function(L){return(0,e.createComponentVNode)(2,s.Box,{children:(0,e.createComponentVNode)(2,c,{id:L[0],amount:L[1],lineDisplay:!0})},L[0])})}),(0,e.createComponentVNode)(2,s.Stack,{className:"Exofab__design--time",children:(0,e.createComponentVNode)(2,s.Stack.Item,{children:[(0,e.createComponentVNode)(2,s.Icon,{name:"clock"}),B.time>0?(0,e.createFragment)([B.time/10,(0,e.createTextVNode)(" seconds")],0):"Instant"]})})]})}},77284:function(I,r,n){"use strict";r.__esModule=!0,r.ExternalAirlockController=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),s=0,y=1013,V=function(p){var i="good",l=80,f=95,u=110,d=120;return pu?i="average":p>d&&(i="bad"),i},k=r.ExternalAirlockController=function(){function S(p,i){var l=(0,a.useBackend)(i),f=l.act,u=l.data,d=u.chamber_pressure,m=u.exterior_status,c=u.interior_status,v=u.processing;return(0,e.createComponentVNode)(2,o.Window,{width:470,height:290,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Information",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Chamber Pressure",children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:V(d),value:d,minValue:s,maxValue:y,children:[d," kPa"]})})})}),(0,e.createComponentVNode)(2,t.Section,{title:"Actions",children:[(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Button,{content:"Cycle to Exterior",icon:"arrow-circle-left",disabled:v,onClick:function(){function b(){return f("cycle_ext")}return b}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Cycle to Interior",icon:"arrow-circle-right",disabled:v,onClick:function(){function b(){return f("cycle_int")}return b}()})]}),(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Button,{content:"Force Exterior Door",icon:"exclamation-triangle",color:c==="open"?"red":v?"yellow":null,onClick:function(){function b(){return f("force_ext")}return b}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Force Interior Door",icon:"exclamation-triangle",color:c==="open"?"red":v?"yellow":null,onClick:function(){function b(){return f("force_int")}return b}()})]}),(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Abort",icon:"ban",color:"red",disabled:!v,onClick:function(){function b(){return f("abort")}return b}()})})]})]})})}return S}()},52516:function(I,r,n){"use strict";r.__esModule=!0,r.FaxMachine=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),s=r.FaxMachine=function(){function y(V,k){var S=(0,a.useBackend)(k),p=S.act,i=S.data;return(0,e.createComponentVNode)(2,o.Window,{width:540,height:300,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Authorization",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"ID Card",children:(0,e.createComponentVNode)(2,t.Button,{icon:i.scan_name?"eject":"id-card",selected:i.scan_name,content:i.scan_name?i.scan_name:"-----",tooltip:i.scan_name?"Eject ID":"Insert ID",onClick:function(){function l(){return p("scan")}return l}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Authorize",children:(0,e.createComponentVNode)(2,t.Button,{icon:i.authenticated?"sign-out-alt":"id-card",selected:i.authenticated,disabled:!i.scan_name&&!i.authenticated,content:i.authenticated?"Log Out":"Log In",onClick:function(){function l(){return p("auth")}return l}()})})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Fax Menu",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Network",children:i.network}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Document",children:[(0,e.createComponentVNode)(2,t.Button,{icon:i.paper?"eject":"paperclip",disabled:!i.authenticated&&!i.paper,content:i.paper?i.paper:"-----",onClick:function(){function l(){return p("paper")}return l}()}),!!i.paper&&(0,e.createComponentVNode)(2,t.Button,{icon:"pencil-alt",content:"Rename",onClick:function(){function l(){return p("rename")}return l}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Sending To",children:(0,e.createComponentVNode)(2,t.Button,{icon:"print",content:i.destination?i.destination:"-----",disabled:!i.authenticated,onClick:function(){function l(){return p("dept")}return l}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Action",children:(0,e.createComponentVNode)(2,t.Button,{icon:"envelope",content:i.sendError?i.sendError:"Send",disabled:!i.paper||!i.destination||!i.authenticated||i.sendError,onClick:function(){function l(){return p("send")}return l}()})})]})})]})})}return y}()},88361:function(I,r,n){"use strict";r.__esModule=!0,r.FloorPainter=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),s=function(k,S){var p=(0,a.useBackend)(S),i=p.act,l=p.data,f=k.image,u=k.isSelected,d=k.onSelect;return(0,e.createVNode)(1,"img",null,null,1,{src:"data:image/jpeg;base64,"+f,style:{"border-style":u&&"solid"||"none","border-width":"2px","border-color":"orange",padding:u&&"2px"||"4px"},onClick:d})},y=r.FloorPainter=function(){function V(k,S){var p=(0,a.useBackend)(S),i=p.act,l=p.data,f=l.availableStyles,u=l.selectedStyle,d=l.selectedDir,m=l.directionsPreview,c=l.allStylesPreview;return(0,e.createComponentVNode)(2,o.Window,{width:405,height:475,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Decal setup",children:[(0,e.createComponentVNode)(2,t.Flex,{children:[(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"chevron-left",onClick:function(){function v(){return i("cycle_style",{offset:-1})}return v}()})}),(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Dropdown,{options:f,selected:u,width:"150px",height:"20px",ml:"2px",mr:"2px",nochevron:!0,onSelected:function(){function v(b){return i("select_style",{style:b})}return v}()})}),(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"chevron-right",onClick:function(){function v(){return i("cycle_style",{offset:1})}return v}()})})]}),(0,e.createComponentVNode)(2,t.Box,{mt:"5px",mb:"5px",children:(0,e.createComponentVNode)(2,t.Flex,{overflowY:"auto",maxHeight:"220px",wrap:"wrap",children:f.map(function(v){return(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,s,{image:c[v],isSelected:u===v,onSelect:function(){function b(){return i("select_style",{style:v})}return b}()})},"{style}")})})}),(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Direction",children:(0,e.createComponentVNode)(2,t.Table,{style:{display:"inline"},children:["north","","south"].map(function(v){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[v+"west",v,v+"east"].map(function(b){return(0,e.createComponentVNode)(2,t.Table.Cell,{style:{"vertical-align":"middle","text-align":"center"},children:b===""?(0,e.createComponentVNode)(2,t.Icon,{name:"arrows-alt",size:3}):(0,e.createComponentVNode)(2,s,{image:m[b],isSelected:b===d,onSelect:function(){function C(){return i("select_direction",{direction:b})}return C}()})},b)})},v)})})})})]})})})}return V}()},70078:function(I,r,n){"use strict";r.__esModule=!0,r.GPS=void 0;var e=n(96524),a=n(36121),t=n(17899),o=n(24674),s=n(45493),y=function(u){return u?"("+u.join(", ")+")":"ERROR"},V=function(u,d,m){if(!(!u||!d)){if(u[2]!==d[2]||m!==1)return null;var c=Math.atan2(d[1]-u[1],d[0]-u[0]),v=Math.sqrt(Math.pow(d[1]-u[1],2)+Math.pow(d[0]-u[0],2));return{angle:(0,a.rad2deg)(c),distance:v}}},k=r.GPS=function(){function f(u,d){var m=(0,t.useBackend)(d),c=m.data,v=c.emped,b=c.active,C=c.area,h=c.position,g=c.saved;return(0,e.createComponentVNode)(2,s.Window,{width:450,height:700,children:(0,e.createComponentVNode)(2,s.Window.Content,{children:(0,e.createComponentVNode)(2,o.Flex,{direction:"column",height:"100%",children:v?(0,e.createComponentVNode)(2,o.Flex.Item,{grow:"1",basis:"0",children:(0,e.createComponentVNode)(2,S,{emp:!0})}):(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Flex.Item,{children:(0,e.createComponentVNode)(2,p)}),b?(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Flex.Item,{mt:"0.5rem",children:(0,e.createComponentVNode)(2,i,{area:C,position:h})}),g&&(0,e.createComponentVNode)(2,o.Flex.Item,{mt:"0.5rem",children:(0,e.createComponentVNode)(2,i,{title:"Saved Position",position:g})}),(0,e.createComponentVNode)(2,o.Flex.Item,{mt:"0.5rem",grow:"1",basis:"0",children:(0,e.createComponentVNode)(2,l,{height:"100%"})})],0):(0,e.createComponentVNode)(2,S)],0)})})})}return f}(),S=function(u,d){var m=u.emp;return(0,e.createComponentVNode)(2,o.Section,{mt:"0.5rem",width:"100%",height:"100%",stretchContents:!0,children:(0,e.createComponentVNode)(2,o.Box,{width:"100%",height:"100%",color:"label",textAlign:"center",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:m?"ban":"power-off",mb:"0.5rem",size:"5"}),(0,e.createVNode)(1,"br"),m?"ERROR: Device temporarily lost signal.":"Device is disabled."]})})})})},p=function(u,d){var m=(0,t.useBackend)(d),c=m.act,v=m.data,b=v.active,C=v.tag,h=v.same_z,g=(0,t.useLocalState)(d,"newTag",C),N=g[0],x=g[1];return(0,e.createComponentVNode)(2,o.Section,{title:"Settings",buttons:(0,e.createComponentVNode)(2,o.Button,{selected:b,icon:b?"toggle-on":"toggle-off",content:b?"On":"Off",onClick:function(){function B(){return c("toggle")}return B}()}),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Tag",children:[(0,e.createComponentVNode)(2,o.Input,{width:"5rem",value:C,onEnter:function(){function B(){return c("tag",{newtag:N})}return B}(),onInput:function(){function B(L,w){return x(w)}return B}()}),(0,e.createComponentVNode)(2,o.Button,{disabled:C===N,width:"20px",mb:"0",ml:"0.25rem",onClick:function(){function B(){return c("tag",{newtag:N})}return B}(),children:(0,e.createComponentVNode)(2,o.Icon,{name:"pen"})})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Range",children:(0,e.createComponentVNode)(2,o.Button,{selected:!h,icon:h?"compress":"expand",content:h?"Local Sector":"Global",onClick:function(){function B(){return c("same_z")}return B}()})})]})})},i=function(u,d){var m=u.title,c=u.area,v=u.position;return(0,e.createComponentVNode)(2,o.Section,{title:m||"Position",children:(0,e.createComponentVNode)(2,o.Box,{fontSize:"1.5rem",children:[c&&(0,e.createFragment)([c,(0,e.createVNode)(1,"br")],0),y(v)]})})},l=function(u,d){var m=(0,t.useBackend)(d),c=m.data,v=c.position,b=c.signals,C=c.upgraded;return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Section,Object.assign({title:"Signals",overflow:"auto"},u,{children:(0,e.createComponentVNode)(2,o.Table,{children:b.map(function(h){return Object.assign({},h,V(v,h.position,C))}).map(function(h,g){return(0,e.createComponentVNode)(2,o.Table.Row,{backgroundColor:g%2===0&&"rgba(255, 255, 255, 0.05)",children:[(0,e.createComponentVNode)(2,o.Table.Cell,{width:"30%",verticalAlign:"middle",color:"label",p:"0.25rem",bold:!0,children:h.tag}),(0,e.createComponentVNode)(2,o.Table.Cell,{verticalAlign:"middle",color:"grey",children:h.area}),(0,e.createComponentVNode)(2,o.Table.Cell,{verticalAlign:"middle",collapsing:!0,children:h.distance!==void 0&&(0,e.createComponentVNode)(2,o.Box,{opacity:Math.max(1-Math.min(h.distance,100)/100,.5),children:[(0,e.createComponentVNode)(2,o.Icon,{name:h.distance>0?"arrow-right":"circle",rotation:-h.angle}),"\xA0",Math.floor(h.distance)+"m"]})}),(0,e.createComponentVNode)(2,o.Table.Cell,{verticalAlign:"middle",pr:"0.25rem",collapsing:!0,children:y(h.position)})]},g)})})})))}},96961:function(I,r,n){"use strict";r.__esModule=!0,r.GasAnalyzerHistory=r.GasAnalyzerContent=r.GasAnalyzer=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),s=r.GasAnalyzerContent=function(){function k(S,p){var i=(0,a.useBackend)(p),l=i.act,f=i.data,u=f.gasmixes,d=f.autoUpdating;return(0,e.createComponentVNode)(2,t.Section,{title:u[0].name,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:d?"unlock":"lock",onClick:function(){function m(){return l("autoscantoggle")}return m}(),tooltip:d?"Auto-Update Enabled":"Auto-Update Disabled",fluid:!0,textAlign:"center",selected:d}),children:u[0].total_moles?(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Total Moles",children:(u[0].total_moles?u[0].total_moles:"-")+" mol"}),u[0].oxygen?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Oxygen",children:u[0].oxygen.toFixed(2)+" mol ("+(u[0].oxygen/u[0].total_moles).toFixed(2)*100+" %)"}):"",u[0].nitrogen?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Nitrogen",children:u[0].nitrogen.toFixed(2)+" mol ("+(u[0].nitrogen/u[0].total_moles).toFixed(2)*100+" %)"}):"",u[0].carbon_dioxide?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Carbon Dioxide",children:u[0].carbon_dioxide.toFixed(2)+" mol ("+(u[0].carbon_dioxide/u[0].total_moles).toFixed(2)*100+" %)"}):"",u[0].toxins?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Plasma",children:u[0].toxins.toFixed(2)+" mol ("+(u[0].toxins/u[0].total_moles).toFixed(2)*100+" %)"}):"",u[0].sleeping_agent?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Nitrous Oxide",children:u[0].sleeping_agent.toFixed(2)+" mol ("+(u[0].sleeping_agent/u[0].total_moles).toFixed(2)*100+" %)"}):"",u[0].agent_b?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Agent B",children:u[0].agent_b.toFixed(2)+" mol ("+(u[0].agent_b/u[0].total_moles).toFixed(2)*100+" %)"}):"",(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Temperature",children:(u[0].total_moles?(u[0].temperature-273.15).toFixed(2):"-")+" \xB0C ("+(u[0].total_moles?u[0].temperature.toFixed(2):"-")+" K)"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Volume",children:(u[0].total_moles?u[0].volume:"-")+" L"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Pressure",children:(u[0].total_moles?u[0].pressure.toFixed(2):"-")+" kPa"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Heat Capacity",children:u[0].heat_capacity+" / K"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Thermal Energy",children:u[0].thermal_energy})]}):(0,e.createComponentVNode)(2,t.Box,{nowrap:!0,italic:!0,mb:"10px",children:"No Gas Detected!"})},u[0])}return k}(),y=r.GasAnalyzerHistory=function(){function k(S,p){var i=(0,a.useBackend)(p),l=i.act,f=i.data,u=f.historyGasmixes,d=f.historyViewMode,m=f.historyIndex;return(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Scan History",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"trash",tooltip:"Clear History",onClick:function(){function c(){return l("clearhistory")}return c}(),textAlign:"center",disabled:u.length===0}),children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Mode",children:(0,e.createComponentVNode)(2,t.Flex,{inline:!0,width:"50%",children:[(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Button,{content:"kPa",onClick:function(){function c(){return l("modekpa")}return c}(),textAlign:"center",selected:d==="kpa"})}),(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Button,{content:"mol",onClick:function(){function c(){return l("modemol")}return c}(),textAlign:"center",selected:d==="mol"})})]})}),(0,e.createComponentVNode)(2,t.LabeledList,{children:u.map(function(c,v){return(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:v+1+". "+(d==="mol"?c[0].total_moles.toFixed(2):c[0].pressure.toFixed(2)),onClick:function(){function b(){return l("input",{target:v+1})}return b}(),textAlign:"left",selected:v+1===m,fluid:!0})},c[0])})})]})}return k}(),V=r.GasAnalyzer=function(){function k(S,p){var i={float:"left",width:"67%"},l={float:"right",width:"33%"};return(0,e.createComponentVNode)(2,o.Window,{width:500,height:500,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createVNode)(1,"div",null,(0,e.createComponentVNode)(2,t.Section,{grow:!0,children:(0,e.createComponentVNode)(2,s)}),2,{style:i}),(0,e.createVNode)(1,"div",null,(0,e.createComponentVNode)(2,t.Section,{width:"160px",children:(0,e.createComponentVNode)(2,y)}),2,{style:l})]})})}return k}()},94572:function(I,r,n){"use strict";r.__esModule=!0,r.GasFreezer=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),s=r.GasFreezer=function(){function y(V,k){var S=(0,a.useBackend)(k),p=S.act,i=S.data,l=i.on,f=i.pressure,u=i.temperature,d=i.temperatureCelsius,m=i.min,c=i.max,v=i.target,b=i.targetCelsius,C=(u-m)/(c-m);return(0,e.createComponentVNode)(2,o.Window,{width:560,height:200,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{title:"\u0421\u0442\u0430\u0442\u0443\u0441",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:l?"power-off":"times",content:l?"\u0412\u043A\u043B":"\u0412\u044B\u043A\u043B",selected:l,onClick:function(){function h(){return p("power")}return h}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0414\u0430\u0432\u043B\u0435\u043D\u0438\u0435",children:[f," \u043A\u041F\u0430"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0422\u0435\u043C\u043F\u0435\u0440\u0430\u0442\u0443\u0440\u0430",children:(0,e.createComponentVNode)(2,t.Flex,{direction:"row",justify:"space-between",children:[(0,e.createComponentVNode)(2,t.Flex.Item,{width:"65%",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:C,ranges:{blue:[-1/0,.5],red:[.5,1/0]},children:"\xA0"})}),(0,e.createComponentVNode)(2,t.Flex.Item,{width:"35%",children:[C<.5&&(0,e.createComponentVNode)(2,t.Box,{inline:!0,color:"blue",ml:1,children:[u," \xB0K (",d," \xB0C)"]}),C>=.5&&(0,e.createComponentVNode)(2,t.Box,{inline:!0,color:"red",ml:1,children:[u," \xB0K (",d," \xB0C)"]})]})]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0426\u0435\u043B\u0435\u0432\u0430\u044F \u0442\u0435\u043C\u043F\u0435\u0440\u0430\u0442\u0443\u0440\u0430",children:(0,e.createComponentVNode)(2,t.Flex,{direction:"row",children:[(0,e.createComponentVNode)(2,t.Flex.Item,{width:"65%",justify:"end",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:(v-m)/(c-m),children:"\xA0"})}),(0,e.createComponentVNode)(2,t.Flex.Item,{width:"35%",children:(0,e.createComponentVNode)(2,t.Box,{inline:!0,ml:1,children:[v," \xB0K (",b," \xB0C)"]})})]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0417\u0430\u0434\u0430\u0442\u044C \u0446\u0435\u043B\u0435\u0432\u0443\u044E \u0442\u0435\u043C\u043F\u0435\u0440\u0430\u0442\u0443\u0440\u0443",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"fast-backward",title:"\u041C\u0438\u043D\u0438\u043C\u0430\u043B\u044C\u043D\u0430\u044F \u0442\u0435\u043C\u043F\u0435\u0440\u0430\u0442\u0443\u0440\u0430",onClick:function(){function h(){return p("temp",{temp:m})}return h}()}),(0,e.createComponentVNode)(2,t.NumberInput,{value:Math.round(v),unit:"\xB0K",minValue:Math.round(m),maxValue:Math.round(c),step:5,stepPixelSize:3,onDrag:function(){function h(g,N){return p("temp",{temp:N})}return h}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",title:"\u041C\u0430\u043A\u0441\u0438\u043C\u0430\u043B\u044C\u043D\u0430\u044F \u0442\u0435\u043C\u043F\u0435\u0440\u0430\u0442\u0443\u0440\u0430",onClick:function(){function h(){return p("temp",{temp:c})}return h}()})]})]})})})})}return y}()},92246:function(I,r,n){"use strict";r.__esModule=!0,r.GeneModder=void 0;var e=n(96524),a=n(17899),t=n(28234),o=n(24674),s=n(99665),y=n(45493),V=r.GeneModder=function(){function d(m,c){var v=(0,a.useBackend)(c),b=v.data,C=b.has_seed;return(0,e.createComponentVNode)(2,y.Window,{width:500,height:650,children:(0,e.createComponentVNode)(2,y.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,p),(0,e.createComponentVNode)(2,s.ComplexModal,{maxWidth:"75%",maxHeight:"75%"}),C===0?(0,e.createComponentVNode)(2,S):(0,e.createComponentVNode)(2,k)]})})})}return d}(),k=function(m,c){var v=(0,a.useBackend)(c),b=v.act,C=v.data,h=C.disk;return(0,e.createComponentVNode)(2,o.Section,{title:"Genes",fill:!0,scrollable:!0,buttons:(0,e.createComponentVNode)(2,o.Button,{content:"Insert Gene from Disk",disabled:!h||!h.can_insert||h.is_core,icon:"arrow-circle-down",onClick:function(){function g(){return b("insert")}return g}()}),children:[(0,e.createComponentVNode)(2,i),(0,e.createComponentVNode)(2,l),(0,e.createComponentVNode)(2,f)]})},S=function(m,c){return(0,e.createComponentVNode)(2,o.Section,{fill:!0,height:"85%",children:(0,e.createComponentVNode)(2,o.Stack,{height:"100%",children:(0,e.createComponentVNode)(2,o.Stack.Item,{bold:!0,grow:"1",textAlign:"center",align:"center",color:"green",children:[(0,e.createComponentVNode)(2,o.Icon,{name:"leaf",size:5,mb:"10px"}),(0,e.createVNode)(1,"br"),"The plant DNA manipulator is missing a seed."]})})})},p=function(m,c){var v=(0,a.useBackend)(c),b=v.act,C=v.data,h=C.has_seed,g=C.seed,N=C.has_disk,x=C.disk,B,L;return h?B=(0,e.createComponentVNode)(2,o.Stack.Item,{mb:"-6px",mt:"-4px",children:[(0,e.createVNode)(1,"img",(0,t.classes)(["seeds32x32",g.image]),null,1,{style:{"vertical-align":"middle",width:"32px",margin:"-1px","margin-left":"-11px"}}),(0,e.createComponentVNode)(2,o.Button,{content:g.name,onClick:function(){function w(){return b("eject_seed")}return w}()}),(0,e.createComponentVNode)(2,o.Button,{ml:"3px",icon:"pen",tooltip:"Name Variant",onClick:function(){function w(){return b("variant_name")}return w}()})]}):B=(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{ml:3.3,content:"None",onClick:function(){function w(){return b("eject_seed")}return w}()})}),N?L=x.name:L="None",(0,e.createComponentVNode)(2,o.Section,{title:"Storage",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Plant Sample",children:B}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Data Disk",children:(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{ml:3.3,content:L,onClick:function(){function w(){return b("eject_disk")}return w}()})})})]})})},i=function(m,c){var v=(0,a.useBackend)(c),b=v.act,C=v.data,h=C.disk,g=C.core_genes;return(0,e.createComponentVNode)(2,o.Collapsible,{title:"Core Genes",open:!0,children:[g.map(function(N){return(0,e.createComponentVNode)(2,o.Stack,{py:"2px",className:"candystripe",children:[(0,e.createComponentVNode)(2,o.Stack.Item,{width:"100%",ml:"2px",children:N.name}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{content:"Extract",disabled:!(h!=null&&h.can_extract),icon:"save",onClick:function(){function x(){return b("extract",{id:N.id})}return x}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{content:"Replace",disabled:!N.is_type||!h.can_insert,icon:"arrow-circle-down",onClick:function(){function x(){return b("replace",{id:N.id})}return x}()})})]},N)})," ",(0,e.createComponentVNode)(2,o.Stack,{children:(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{content:"Replace All",disabled:!(h!=null&&h.is_bulk_core),icon:"arrow-circle-down",onClick:function(){function N(){return b("bulk_replace_core")}return N}()})})})]},"Core Genes")},l=function(m,c){var v=(0,a.useBackend)(c),b=v.data,C=b.reagent_genes,h=b.has_reagent;return(0,e.createComponentVNode)(2,u,{title:"Reagent Genes",gene_set:C,do_we_show:h})},f=function(m,c){var v=(0,a.useBackend)(c),b=v.data,C=b.trait_genes,h=b.has_trait;return(0,e.createComponentVNode)(2,u,{title:"Trait Genes",gene_set:C,do_we_show:h})},u=function(m,c){var v=m.title,b=m.gene_set,C=m.do_we_show,h=(0,a.useBackend)(c),g=h.act,N=h.data,x=N.disk;return(0,e.createComponentVNode)(2,o.Collapsible,{title:v,open:!0,children:C?b.map(function(B){return(0,e.createComponentVNode)(2,o.Stack,{py:"2px",className:"candystripe",children:[(0,e.createComponentVNode)(2,o.Stack.Item,{width:"100%",ml:"2px",children:B.name}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{content:"Extract",disabled:!(x!=null&&x.can_extract),icon:"save",onClick:function(){function L(){return g("extract",{id:B.id})}return L}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{content:"Remove",icon:"times",onClick:function(){function L(){return g("remove",{id:B.id})}return L}()})})]},B)}):(0,e.createComponentVNode)(2,o.Stack.Item,{children:"No Genes Detected"})},v)}},27163:function(I,r,n){"use strict";r.__esModule=!0,r.GenericCrewManifest=void 0;var e=n(96524),a=n(24674),t=n(45493),o=n(98444),s=r.GenericCrewManifest=function(){function y(V,k){return(0,e.createComponentVNode)(2,t.Window,{width:588,height:510,theme:"nologo",children:(0,e.createComponentVNode)(2,t.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,a.Section,{noTopPadding:!0,children:(0,e.createComponentVNode)(2,o.CrewManifest)})})})}return y}()},53808:function(I,r,n){"use strict";r.__esModule=!0,r.GhostHudPanel=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),s=r.GhostHudPanel=function(){function V(k,S){var p=(0,a.useBackend)(S),i=p.data,l=i.security,f=i.medical,u=i.diagnostic,d=i.ahud;return(0,e.createComponentVNode)(2,o.Window,{width:250,height:207,theme:"nologo",children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:[(0,e.createComponentVNode)(2,y,{label:"Medical",type:"medical",is_active:f}),(0,e.createComponentVNode)(2,y,{label:"Security",type:"security",is_active:l}),(0,e.createComponentVNode)(2,y,{label:"Diagnostic",type:"diagnostic",is_active:u}),(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,y,{label:"Antag HUD",is_active:d,act_on:"ahud_on",act_off:"ahud_off"})]})})})}return V}(),y=function(k,S){var p=(0,a.useBackend)(S),i=p.act,l=k.label,f=k.type,u=f===void 0?null:f,d=k.is_active,m=k.act_on,c=m===void 0?"hud_on":m,v=k.act_off,b=v===void 0?"hud_off":v;return(0,e.createComponentVNode)(2,t.Flex,{pt:.3,color:"label",children:[(0,e.createComponentVNode)(2,t.Flex.Item,{pl:.5,align:"center",width:"80%",children:l}),(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Button,{mr:.6,content:d?"On":"Off",icon:d?"toggle-on":"toggle-off",selected:d,onClick:function(){function C(){return i(d?b:c,{hud_type:u})}return C}()})})]})}},32035:function(I,r,n){"use strict";r.__esModule=!0,r.GlandDispenser=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),s=r.GlandDispenser=function(){function y(V,k){var S=(0,a.useBackend)(k),p=S.act,i=S.data,l=i.glands,f=l===void 0?[]:l;return(0,e.createComponentVNode)(2,o.Window,{width:300,height:338,theme:"abductor",children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:f.map(function(u){return(0,e.createComponentVNode)(2,t.Button,{width:"60px",height:"60px",m:.75,textAlign:"center",fontSize:"17px",lineHeight:"55px",icon:"eject",backgroundColor:u.color,content:u.amount||"0",disabled:!u.amount,onClick:function(){function d(){return p("dispense",{gland_id:u.id})}return d}()},u.id)})})})})}return y}()},22480:function(I,r,n){"use strict";r.__esModule=!0,r.HandheldChemDispenser=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),s=[1,5,10,20,30,50],y=null,V=r.HandheldChemDispenser=function(){function p(i,l){return(0,e.createComponentVNode)(2,o.Window,{width:450,height:500,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,k),(0,e.createComponentVNode)(2,S)]})})})}return p}(),k=function(i,l){var f=(0,a.useBackend)(l),u=f.act,d=f.data,m=d.amount,c=d.energy,v=d.maxEnergy,b=d.mode;return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Settings",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Energy",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:c,minValue:0,maxValue:v,ranges:{good:[v*.5,1/0],average:[v*.25,v*.5],bad:[-1/0,v*.25]},children:[c," / ",v," Units"]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Amount",verticalAlign:"middle",children:(0,e.createComponentVNode)(2,t.Stack,{children:s.map(function(C,h){return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,width:"15%",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"cog",selected:m===C,content:C,onClick:function(){function g(){return u("amount",{amount:C})}return g}()})},h)})})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Mode",verticalAlign:"middle",children:(0,e.createComponentVNode)(2,t.Stack,{justify:"space-between",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"cog",selected:b==="dispense",content:"Dispense",m:"0",width:"32%",onClick:function(){function C(){return u("mode",{mode:"dispense"})}return C}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"cog",selected:b==="remove",content:"Remove",m:"0",width:"32%",onClick:function(){function C(){return u("mode",{mode:"remove"})}return C}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"cog",selected:b==="isolate",content:"Isolate",m:"0",width:"32%",onClick:function(){function C(){return u("mode",{mode:"isolate"})}return C}()})]})})]})})})},S=function(i,l){for(var f=(0,a.useBackend)(l),u=f.act,d=f.data,m=d.chemicals,c=m===void 0?[]:m,v=d.current_reagent,b=[],C=0;C<(c.length+1)%3;C++)b.push(!0);return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,height:"18%",children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:d.glass?"Drink Selector":"Chemical Selector",children:[c.map(function(h,g){return(0,e.createComponentVNode)(2,t.Button,{width:"32%",icon:"arrow-circle-down",overflow:"hidden",textOverflow:"ellipsis",selected:v===h.id,content:h.title,style:{"margin-left":"2px"},onClick:function(){function N(){return u("dispense",{reagent:h.id})}return N}()},g)}),b.map(function(h,g){return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:"1",basis:"25%"},g)})]})})}},5876:function(I,r,n){"use strict";r.__esModule=!0,r.ImplantPad=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),s=r.ImplantPad=function(){function y(V,k){var S=(0,a.useBackend)(k),p=S.act,i=S.data,l=i.implant,f=i.contains_case,u=i.tag,d=(0,a.useLocalState)(k,"newTag",u),m=d[0],c=d[1];return(0,e.createComponentVNode)(2,o.Window,{width:410,height:325,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Bio-chip Mini-Computer",buttons:(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Eject Case",icon:"eject",disabled:!f,onClick:function(){function v(){return p("eject_case")}return v}()})}),children:l&&f?(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{bold:!0,mb:2,children:[(0,e.createVNode)(1,"img",null,null,1,{src:"data:image/jpeg;base64,"+l.image,ml:0,mr:2,style:{"vertical-align":"middle",width:"32px"}}),l.name]}),(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Life",children:l.life}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Notes",children:l.notes}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Function",children:l.function}),!!u&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Tag",children:[(0,e.createComponentVNode)(2,t.Input,{width:"5.5rem",value:u,onEnter:function(){function v(){return p("tag",{newtag:m})}return v}(),onInput:function(){function v(b,C){return c(C)}return v}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:u===m,width:"20px",mb:"0",ml:"0.25rem",onClick:function(){function v(){return p("tag",{newtag:m})}return v}(),children:(0,e.createComponentVNode)(2,t.Icon,{name:"pen"})})]})]})],4):f?(0,e.createComponentVNode)(2,t.Box,{children:"This bio-chip case has no implant!"}):(0,e.createComponentVNode)(2,t.Box,{children:"Please insert a bio-chip casing!"})})})})}return y}()},96729:function(I,r,n){"use strict";r.__esModule=!0,r.Instrument=void 0;var e=n(96524),a=n(36121),t=n(17899),o=n(24674),s=n(45493),y=r.Instrument=function(){function i(l,f){var u=(0,t.useBackend)(f),d=u.act,m=u.data;return(0,e.createComponentVNode)(2,s.Window,{width:600,height:505,children:[(0,e.createComponentVNode)(2,V),(0,e.createComponentVNode)(2,s.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,k),(0,e.createComponentVNode)(2,p)]})})]})}return i}(),V=function(l,f){var u=(0,t.useBackend)(f),d=u.act,m=u.data,c=m.help;if(c)return(0,e.createComponentVNode)(2,o.Modal,{maxWidth:"75%",height:window.innerHeight*.75+"px",mx:"auto",py:"0",px:"0.5rem",children:(0,e.createComponentVNode)(2,o.Section,{height:"100%",title:"Help",level:"2",overflow:"auto",children:(0,e.createComponentVNode)(2,o.Box,{px:"0.5rem",mt:"-0.5rem",children:[(0,e.createVNode)(1,"h1",null,"Making a Song",16),(0,e.createVNode)(1,"p",null,[(0,e.createTextVNode)("Lines are a series of chords, separated by commas\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"(,)"}),(0,e.createTextVNode)(", each with notes separated by hyphens\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"(-)"}),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("Every note in a chord will play together, with the chord timed by the\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"tempo"}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("as defined above.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createTextVNode)("Notes are played by the\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"good",children:"names of the note"}),(0,e.createTextVNode)(", and optionally, the\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"average",children:"accidental"}),(0,e.createTextVNode)(", and/or the"),(0,e.createTextVNode)(" "),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"bad",children:"octave number"}),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("By default, every note is\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"average",children:"natural"}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("and in\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"bad",children:"octave 3"}),(0,e.createTextVNode)(". Defining a different state for either is remembered for each"),(0,e.createTextVNode)(" "),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"good",children:"note"}),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"ul",null,[(0,e.createVNode)(1,"li",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"Example:"}),(0,e.createTextVNode)("\xA0"),(0,e.createVNode)(1,"i",null,"C,D,E,F,G,A,B",16),(0,e.createTextVNode)(" will play a\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"good",children:"C"}),(0,e.createTextVNode)("\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"average",children:"major"}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("scale.")],0),(0,e.createVNode)(1,"li",null,[(0,e.createTextVNode)("After a note has an\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"average",children:"accidental"}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("or\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"bad",children:"octave"}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("placed, it will be remembered:\xA0"),(0,e.createVNode)(1,"i",null,"C,C4,C#,C3",16),(0,e.createTextVNode)(" is "),(0,e.createVNode)(1,"i",null,"C3,C4,C4#,C3#",16)],0)],4)],0),(0,e.createVNode)(1,"p",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"Chords"}),(0,e.createTextVNode)("\xA0can be played simply by seperating each note with a hyphen:"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,"A-C#,Cn-E,E-G#,Gn-B",16),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("A"),(0,e.createTextVNode)(" "),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"pause"}),(0,e.createTextVNode)("\xA0may be denoted by an empty chord: "),(0,e.createVNode)(1,"i",null,"C,E,,C,G",16),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("To make a chord be a different time, end it with /x, where the chord length will be length defined by\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"tempo / x"}),(0,e.createTextVNode)(",\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"eg:"}),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,"C,G/2,E/4",16),(0,e.createTextVNode)(".")],0),(0,e.createVNode)(1,"p",null,[(0,e.createTextVNode)("Combined, an example line is: "),(0,e.createVNode)(1,"i",null,"E-E4/4,F#/2,G#/8,B/8,E3-E4/4",16),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"ul",null,[(0,e.createVNode)(1,"li",null,"Lines may be up to 300 characters.",16),(0,e.createVNode)(1,"li",null,"A song may only contain up to 1,000 lines.",16)],4)],4),(0,e.createVNode)(1,"p",null,[(0,e.createTextVNode)("Lines are a series of chords, separated by commas\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"(,)"}),(0,e.createTextVNode)(", each with notes separated by hyphens\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"(-)"}),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("Every note in a chord will play together, with the chord timed by the\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"tempo"}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("as defined above.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createTextVNode)("Notes are played by the\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"good",children:"names of the note"}),(0,e.createTextVNode)(", and optionally, the\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"average",children:"accidental"}),(0,e.createTextVNode)(", and/or the"),(0,e.createTextVNode)(" "),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"bad",children:"octave number"}),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("By default, every note is\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"average",children:"natural"}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("and in\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"bad",children:"octave 3"}),(0,e.createTextVNode)(". Defining a different state for either is remembered for each"),(0,e.createTextVNode)(" "),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"good",children:"note"}),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"ul",null,[(0,e.createVNode)(1,"li",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"Example:"}),(0,e.createTextVNode)("\xA0"),(0,e.createVNode)(1,"i",null,"C,D,E,F,G,A,B",16),(0,e.createTextVNode)(" will play a\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"good",children:"C"}),(0,e.createTextVNode)("\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"average",children:"major"}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("scale.")],0),(0,e.createVNode)(1,"li",null,[(0,e.createTextVNode)("After a note has an\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"average",children:"accidental"}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("or\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"bad",children:"octave"}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("placed, it will be remembered:\xA0"),(0,e.createVNode)(1,"i",null,"C,C4,C#,C3",16),(0,e.createTextVNode)(" is "),(0,e.createVNode)(1,"i",null,"C3,C4,C4#,C3#",16)],0)],4)],0),(0,e.createVNode)(1,"p",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"Chords"}),(0,e.createTextVNode)("\xA0can be played simply by seperating each note with a hyphen:"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,"A-C#,Cn-E,E-G#,Gn-B",16),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("A"),(0,e.createTextVNode)(" "),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"pause"}),(0,e.createTextVNode)("\xA0may be denoted by an empty chord: "),(0,e.createVNode)(1,"i",null,"C,E,,C,G",16),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("To make a chord be a different time, end it with /x, where the chord length will be length defined by\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"tempo / x"}),(0,e.createTextVNode)(",\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"eg:"}),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,"C,G/2,E/4",16),(0,e.createTextVNode)(".")],0),(0,e.createVNode)(1,"p",null,[(0,e.createTextVNode)("Combined, an example line is: "),(0,e.createVNode)(1,"i",null,"E-E4/4,F#/2,G#/8,B/8,E3-E4/4",16),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"ul",null,[(0,e.createVNode)(1,"li",null,"Lines may be up to 300 characters.",16),(0,e.createVNode)(1,"li",null,"A song may only contain up to 1,000 lines.",16)],4)],4),(0,e.createVNode)(1,"h1",null,"Instrument Advanced Settings",16),(0,e.createVNode)(1,"ul",null,[(0,e.createVNode)(1,"li",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"label",children:"Type:"}),(0,e.createTextVNode)("\xA0Whether the instrument is legacy or synthesized."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("Legacy instruments have a collection of sounds that are selectively used depending on the note to play."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("Synthesized instruments use a base sound and change its pitch to match the note to play.")],4),(0,e.createVNode)(1,"li",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"label",children:"Current:"}),(0,e.createTextVNode)("\xA0Which instrument sample to play. Some instruments can be tuned to play different samples. Experiment!")],4),(0,e.createVNode)(1,"li",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"label",children:"Note Shift/Note Transpose:"}),(0,e.createTextVNode)("\xA0The pitch to apply to all notes of the song.")],4),(0,e.createVNode)(1,"li",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"label",children:"Sustain Mode:"}),(0,e.createTextVNode)("\xA0How a played note fades out."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("Linear sustain means a note will fade out at a constant rate."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("Exponential sustain means a note will fade out at an exponential rate, sounding smoother.")],4),(0,e.createVNode)(1,"li",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"label",children:"Volume Dropoff Threshold:"}),(0,e.createTextVNode)("\xA0The volume threshold at which a note is fully stopped.")],4),(0,e.createVNode)(1,"li",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"label",children:"Sustain indefinitely last held note:"}),(0,e.createTextVNode)("\xA0Whether the last note should be sustained indefinitely.")],4)],4),(0,e.createComponentVNode)(2,o.Button,{color:"grey",content:"Close",onClick:function(){function v(){return d("help")}return v}()})]})})})},k=function(l,f){var u=(0,t.useBackend)(f),d=u.act,m=u.data,c=m.lines,v=m.playing,b=m.repeat,C=m.maxRepeats,h=m.tempo,g=m.minTempo,N=m.maxTempo,x=m.tickLag,B=m.volume,L=m.minVolume,w=m.maxVolume,A=m.ready;return(0,e.createComponentVNode)(2,o.Section,{title:"Instrument",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{icon:"info",content:"Help",onClick:function(){function T(){return d("help")}return T}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"file",content:"New",onClick:function(){function T(){return d("newsong")}return T}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"upload",content:"Import",onClick:function(){function T(){return d("import")}return T}()})],4),children:[(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Playback",children:[(0,e.createComponentVNode)(2,o.Button,{selected:v,disabled:c.length===0||b<0,icon:"play",content:"Play",onClick:function(){function T(){return d("play")}return T}()}),(0,e.createComponentVNode)(2,o.Button,{disabled:!v,icon:"stop",content:"Stop",onClick:function(){function T(){return d("stop")}return T}()})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Repeat",children:(0,e.createComponentVNode)(2,o.Slider,{animated:!0,minValue:0,maxValue:C,value:b,stepPixelSize:59,onChange:function(){function T(E,O){return d("repeat",{new:O})}return T}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Tempo",children:(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,o.Button,{disabled:h>=N,content:"-",as:"span",mr:"0.5rem",onClick:function(){function T(){return d("tempo",{new:h+x})}return T}()}),(0,a.round)(600/h)," BPM",(0,e.createComponentVNode)(2,o.Button,{disabled:h<=g,content:"+",as:"span",ml:"0.5rem",onClick:function(){function T(){return d("tempo",{new:h-x})}return T}()})]})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Volume",children:(0,e.createComponentVNode)(2,o.Slider,{animated:!0,minValue:L,maxValue:w,value:B,stepPixelSize:6,onDrag:function(){function T(E,O){return d("setvolume",{new:O})}return T}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Status",children:A?(0,e.createComponentVNode)(2,o.Box,{color:"good",children:"Ready"}):(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"Instrument Definition Error!"})})]}),(0,e.createComponentVNode)(2,S)]})},S=function(l,f){var u=(0,t.useBackend)(f),d=u.act,m=u.data,c=m.allowedInstrumentNames,v=m.instrumentLoaded,b=m.instrument,C=m.canNoteShift,h=m.noteShift,g=m.noteShiftMin,N=m.noteShiftMax,x=m.sustainMode,B=m.sustainLinearDuration,L=m.sustainExponentialDropoff,w=m.legacy,A=m.sustainDropoffVolume,T=m.sustainHeldNote,E,O;return x===1?(E="Linear",O=(0,e.createComponentVNode)(2,o.Slider,{minValue:.1,maxValue:5,value:B,step:.5,stepPixelSize:85,format:function(){function P(R){return(0,a.round)(R*100)/100+" seconds"}return P}(),onChange:function(){function P(R,F){return d("setlinearfalloff",{new:F/10})}return P}()})):x===2&&(E="Exponential",O=(0,e.createComponentVNode)(2,o.Slider,{minValue:1.025,maxValue:10,value:L,step:.01,format:function(){function P(R){return(0,a.round)(R*1e3)/1e3+"% per decisecond"}return P}(),onChange:function(){function P(R,F){return d("setexpfalloff",{new:F})}return P}()})),c.sort(),(0,e.createComponentVNode)(2,o.Box,{my:-1,children:(0,e.createComponentVNode)(2,o.Collapsible,{mt:"1rem",mb:"0",title:"Advanced",children:(0,e.createComponentVNode)(2,o.Section,{mt:-1,children:[(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Type",children:w?"Legacy":"Synthesized"}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Current",children:v?(0,e.createComponentVNode)(2,o.Dropdown,{options:c,selected:b,width:"50%",onSelected:function(){function P(R){return d("switchinstrument",{name:R})}return P}()}):(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"None!"})}),!!(!w&&C)&&(0,e.createFragment)([(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Note Shift/Note Transpose",children:(0,e.createComponentVNode)(2,o.Slider,{minValue:g,maxValue:N,value:h,stepPixelSize:2,format:function(){function P(R){return R+" keys / "+(0,a.round)(R/12*100)/100+" octaves"}return P}(),onChange:function(){function P(R,F){return d("setnoteshift",{new:F})}return P}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Sustain Mode",children:[(0,e.createComponentVNode)(2,o.Dropdown,{options:["Linear","Exponential"],selected:E,onSelected:function(){function P(R){return d("setsustainmode",{new:R})}return P}()}),O]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Volume Dropoff Threshold",children:(0,e.createComponentVNode)(2,o.Slider,{animated:!0,minValue:.01,maxValue:100,value:A,stepPixelSize:6,onChange:function(){function P(R,F){return d("setdropoffvolume",{new:F})}return P}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Sustain indefinitely last held note",children:(0,e.createComponentVNode)(2,o.Button,{selected:T,icon:T?"toggle-on":"toggle-off",content:T?"Yes":"No",onClick:function(){function P(){return d("togglesustainhold")}return P}()})})],4)]}),(0,e.createComponentVNode)(2,o.Button,{icon:"redo",content:"Reset to Default",mt:"0.5rem",onClick:function(){function P(){return d("reset")}return P}()})]})})})},p=function(l,f){var u=(0,t.useBackend)(f),d=u.act,m=u.data,c=m.playing,v=m.lines,b=m.editing;return(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"Editor",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{disabled:!b||c,icon:"plus",content:"Add Line",onClick:function(){function C(){return d("newline",{line:v.length+1})}return C}()}),(0,e.createComponentVNode)(2,o.Button,{selected:!b,icon:b?"chevron-up":"chevron-down",onClick:function(){function C(){return d("edit")}return C}()})],4),children:!!b&&(v.length>0?(0,e.createComponentVNode)(2,o.LabeledList,{children:v.map(function(C,h){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:h+1,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{disabled:c,icon:"pen",onClick:function(){function g(){return d("modifyline",{line:h+1})}return g}()}),(0,e.createComponentVNode)(2,o.Button,{disabled:c,icon:"trash",onClick:function(){function g(){return d("deleteline",{line:h+1})}return g}()})],4),children:C},h)})}):(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"Song is empty."}))})}},33679:function(I,r,n){"use strict";r.__esModule=!0,r.ItemPixelShift=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),s=r.ItemPixelShift=function(){function y(V,k){var S=(0,a.useBackend)(k),p=S.act,i=S.data,l=i.pixel_x,f=i.pixel_y,u=i.max_shift_x,d=i.max_shift_y,m=i.random_drop_on;return(0,e.createComponentVNode)(2,o.Window,{width:250,height:160,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:"X-coordinates",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-left",title:"Shifts item leftwards.",disabled:l===-u,onClick:function(){function c(){return p("shift_left")}return c}()}),(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,lineHeight:1.7,width:"75px",unit:"pixels",stepPixelSize:6,value:l,minValue:-u,maxValue:u,onChange:function(){function c(v,b){return p("custom_x",{pixel_x:b})}return c}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-right",title:"Shifts item rightwards.",disabled:l===u,onClick:function(){function c(){return p("shift_right")}return c}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Y-coordinates",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-up",title:"Shifts item upwards.",disabled:f===d,onClick:function(){function c(){return p("shift_up")}return c}()}),(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,lineHeight:1.7,width:"75px",unit:"pixels",stepPixelSize:6,value:f,minValue:-d,maxValue:d,onChange:function(){function c(v,b){return p("custom_y",{pixel_y:b})}return c}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-down",title:"Shifts item downwards.",disabled:f===-d,onClick:function(){function c(){return p("shift_down")}return c}()})]})]})}),(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.Grid,{children:[(0,e.createComponentVNode)(2,t.Grid.Column,{children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,color:"brown",icon:"arrow-up",content:"Move to Top",title:"Tries to place an item on top of the others.",onClick:function(){function c(){return p("move_to_top")}return c}()})}),(0,e.createComponentVNode)(2,t.Grid.Column,{children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,color:m?"good":"bad",icon:"power-off",content:m?"Shift Enabled":"Shift Disabled",title:"Enables/Disables item pixel randomization on any drops.",onClick:function(){function c(){return p("toggle")}return c}()})})]})})]})})}return y}()},240:function(I,r,n){"use strict";r.__esModule=!0,r.KeyComboModal=void 0;var e=n(96524),a=n(41161),t=n(17899),o=n(24674),s=n(45493),y=n(15113),V=n(14299),k=function(u){return u.key!==a.KEY.Alt&&u.key!==a.KEY.Control&&u.key!==a.KEY.Shift&&u.key!==a.KEY.Escape},S={DEL:"Delete",DOWN:"South",END:"Southwest",HOME:"Northwest",INSERT:"Insert",LEFT:"West",PAGEDOWN:"Southeast",PAGEUP:"Northeast",RIGHT:"East",SPACEBAR:"Space",UP:"North"},p=3,i=function(u){var d="";if(u.altKey&&(d+="Alt"),u.ctrlKey&&(d+="Ctrl"),u.shiftKey&&!(u.keyCode>=48&&u.keyCode<=57)&&(d+="Shift"),u.location===p&&(d+="Numpad"),k(u))if(u.shiftKey&&u.keyCode>=48&&u.keyCode<=57){var m=u.keyCode-48;d+="Shift"+m}else{var c=u.key.toUpperCase();d+=S[c]||c}return d},l=r.KeyComboModal=function(){function f(u,d){var m=(0,t.useBackend)(d),c=m.act,v=m.data,b=v.init_value,C=v.large_buttons,h=v.message,g=h===void 0?"":h,N=v.title,x=v.timeout,B=(0,t.useLocalState)(d,"input",b),L=B[0],w=B[1],A=(0,t.useLocalState)(d,"binding",!0),T=A[0],E=A[1],O=function(){function F(j){if(!T){j.key===a.KEY.Enter&&c("submit",{entry:L}),j.key===a.KEY.Escape&&c("cancel");return}if(j.preventDefault(),k(j)){P(i(j)),E(!1);return}else if(j.key===a.KEY.Escape){P(b),E(!1);return}}return F}(),P=function(){function F(j){j!==L&&w(j)}return F}(),R=130+(g.length>30?Math.ceil(g.length/3):0)+(g.length&&C?5:0);return(0,e.createComponentVNode)(2,s.Window,{title:N,width:240,height:R,children:[x&&(0,e.createComponentVNode)(2,V.Loader,{value:x}),(0,e.createComponentVNode)(2,s.Window.Content,{onKeyDown:function(){function F(j){O(j)}return F}(),children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,children:[(0,e.createComponentVNode)(2,o.Autofocus),(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Box,{color:"label",children:g})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{disabled:T,content:T&&T!==null?"Awaiting input...":""+L,width:"100%",textAlign:"center",onClick:function(){function F(){P(b),E(!0)}return F}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,y.InputButtons,{input:L})})]})]})})]})}return f}()},53385:function(I,r,n){"use strict";r.__esModule=!0,r.KeycardAuth=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),s=r.KeycardAuth=function(){function y(V,k){var S=(0,a.useBackend)(k),p=S.act,i=S.data,l=(0,e.createComponentVNode)(2,t.Section,{title:"Keycard Authentication Device",children:(0,e.createComponentVNode)(2,t.Box,{children:"This device is used to trigger certain high security events. It requires the simultaneous swipe of two high-level ID cards."})});if(!i.swiping&&!i.busy)return(0,e.createComponentVNode)(2,o.Window,{width:540,height:280,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[l,(0,e.createComponentVNode)(2,t.Section,{title:"Choose Action",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Red Alert",children:(0,e.createComponentVNode)(2,t.Button,{icon:"exclamation-triangle",disabled:!i.redAvailable,onClick:function(){function u(){return p("triggerevent",{triggerevent:"Red Alert"})}return u}(),content:"Red Alert"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"ERT",children:(0,e.createComponentVNode)(2,t.Button,{icon:"broadcast-tower",onClick:function(){function u(){return p("triggerevent",{triggerevent:"Emergency Response Team"})}return u}(),content:"Call ERT"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Emergency Maint Access",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"door-open",onClick:function(){function u(){return p("triggerevent",{triggerevent:"Grant Emergency Maintenance Access"})}return u}(),content:"Grant"}),(0,e.createComponentVNode)(2,t.Button,{icon:"door-closed",onClick:function(){function u(){return p("triggerevent",{triggerevent:"Revoke Emergency Maintenance Access"})}return u}(),content:"Revoke"})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Emergency Station-Wide Access",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"door-open",onClick:function(){function u(){return p("triggerevent",{triggerevent:"Activate Station-Wide Emergency Access"})}return u}(),content:"Grant"}),(0,e.createComponentVNode)(2,t.Button,{icon:"door-closed",onClick:function(){function u(){return p("triggerevent",{triggerevent:"Deactivate Station-Wide Emergency Access"})}return u}(),content:"Revoke"})]})]})})]})});var f=(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Waiting for YOU to swipe your ID..."});return!i.hasSwiped&&!i.ertreason&&i.event==="Emergency Response Team"?f=(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Fill out the reason for your ERT request."}):i.hasConfirm?f=(0,e.createComponentVNode)(2,t.Box,{color:"green",children:"Request Confirmed!"}):i.isRemote?f=(0,e.createComponentVNode)(2,t.Box,{color:"orange",children:"Swipe your card to CONFIRM the remote request."}):i.hasSwiped&&(f=(0,e.createComponentVNode)(2,t.Box,{color:"orange",children:"Waiting for second person to confirm..."})),(0,e.createComponentVNode)(2,o.Window,{width:540,height:265,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[l,i.event==="Emergency Response Team"&&(0,e.createComponentVNode)(2,t.Section,{title:"Reason for ERT Call",children:(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{color:i.ertreason?"":"red",icon:i.ertreason?"check":"pencil-alt",content:i.ertreason?i.ertreason:"-----",disabled:i.busy,onClick:function(){function u(){return p("ert")}return u}()})})}),(0,e.createComponentVNode)(2,t.Section,{title:i.event,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-circle-left",content:"Back",disabled:i.busy||i.hasConfirm,onClick:function(){function u(){return p("reset")}return u}()}),children:f})]})})}return y}()},87609:function(I,r,n){"use strict";r.__esModule=!0,r.LaborClaimConsole=void 0;var e=n(96524),a=n(78234),t=n(17899),o=n(24674),s=n(45493),y=r.LaborClaimConsole=function(){function S(p,i){return(0,e.createComponentVNode)(2,s.Window,{width:315,height:470,children:(0,e.createComponentVNode)(2,s.Window.Content,{children:[(0,e.createComponentVNode)(2,V),(0,e.createComponentVNode)(2,k)]})})}return S}(),V=function(p,i){var l=(0,t.useBackend)(i),f=l.act,u=l.data,d=u.can_go_home,m=u.emagged,c=u.id_inserted,v=u.id_name,b=u.id_points,C=u.id_goal,h=u.unclaimed_points,g=m?0:1,N=m?"ERR0R":d?"Completed!":"Insufficient";return(0,e.createComponentVNode)(2,o.Section,{children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Status",children:!!c&&(0,e.createComponentVNode)(2,o.ProgressBar,{value:b/C,ranges:{good:[g,1/0],bad:[-1/0,g]},children:b+" / "+C+" "+N})||!!m&&"ERR0R COMPLETED?!@"||"No ID inserted"}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Shuttle controls",children:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,content:"Move shuttle",disabled:!d,onClick:function(){function x(){return f("move_shuttle")}return x}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Unclaimed points",children:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,content:"Claim points ("+h+")",disabled:!c||!h,onClick:function(){function x(){return f("claim_points")}return x}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Inserted ID",children:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,content:c?v:"-------------",onClick:function(){function x(){return f("handle_id")}return x}()})})]})})},k=function(p,i){var l=(0,t.useBackend)(i),f=l.data,u=f.ores;return(0,e.createComponentVNode)(2,o.Section,{title:"Material values",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:"Material"}),(0,e.createComponentVNode)(2,o.Table.Cell,{collapsing:!0,textAlign:"right",children:"Value"})]}),u.map(function(d){return(0,e.createComponentVNode)(2,o.Table.Row,{children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,a.toTitleCase)(d.ore)}),(0,e.createComponentVNode)(2,o.Table.Cell,{collapsing:!0,textAlign:"right",children:(0,e.createComponentVNode)(2,o.Box,{color:"label",inline:!0,children:d.value})})]},d.ore)})]})})}},14047:function(I,r,n){"use strict";r.__esModule=!0,r.LawManager=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),s=r.LawManager=function(){function S(p,i){var l=(0,a.useBackend)(i),f=l.act,u=l.data,d=u.isAdmin,m=u.isSlaved,c=u.isMalf,v=u.isAIMalf,b=u.view;return(0,e.createComponentVNode)(2,o.Window,{width:800,height:c?620:365,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[!!(d&&m)&&(0,e.createComponentVNode)(2,t.NoticeBox,{children:["This unit is slaved to ",m,"."]}),!!(c||v)&&(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Button,{content:"Law Management",selected:b===0,onClick:function(){function C(){return f("set_view",{set_view:0})}return C}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Lawsets",selected:b===1,onClick:function(){function C(){return f("set_view",{set_view:1})}return C}()})]}),b===0&&(0,e.createComponentVNode)(2,y),b===1&&(0,e.createComponentVNode)(2,V)]})})}return S}(),y=function(p,i){var l=(0,a.useBackend)(i),f=l.act,u=l.data,d=u.has_zeroth_laws,m=u.zeroth_laws,c=u.has_ion_laws,v=u.ion_laws,b=u.ion_law_nr,C=u.has_inherent_laws,h=u.inherent_laws,g=u.has_supplied_laws,N=u.supplied_laws,x=u.channels,B=u.channel,L=u.isMalf,w=u.isAdmin,A=u.zeroth_law,T=u.ion_law,E=u.inherent_law,O=u.supplied_law,P=u.supplied_law_position;return(0,e.createFragment)([!!d&&(0,e.createComponentVNode)(2,k,{title:"ERR_NULL_VALUE",laws:m,ctx:i}),!!c&&(0,e.createComponentVNode)(2,k,{title:b,laws:v,ctx:i}),!!C&&(0,e.createComponentVNode)(2,k,{title:"Inherent",laws:h,ctx:i}),!!g&&(0,e.createComponentVNode)(2,k,{title:"Supplied",laws:N,ctx:i}),(0,e.createComponentVNode)(2,t.Section,{title:"Statement Settings",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Statement Channel",children:x.map(function(R){return(0,e.createComponentVNode)(2,t.Button,{content:R.channel,selected:R.channel===B,onClick:function(){function F(){return f("law_channel",{law_channel:R.channel})}return F}()},R.channel)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"State Laws",children:(0,e.createComponentVNode)(2,t.Button,{content:"State Laws",onClick:function(){function R(){return f("state_laws")}return R}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Law Notification",children:(0,e.createComponentVNode)(2,t.Button,{content:"Notify",onClick:function(){function R(){return f("notify_laws")}return R}()})})]})}),!!L&&(0,e.createComponentVNode)(2,t.Section,{title:"Add Laws",children:(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{width:"10%",children:"Type"}),(0,e.createComponentVNode)(2,t.Table.Cell,{width:"60%",children:"Law"}),(0,e.createComponentVNode)(2,t.Table.Cell,{width:"10%",children:"Index"}),(0,e.createComponentVNode)(2,t.Table.Cell,{width:"20%",children:"Actions"})]}),!!(w&&!d)&&(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Zero"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:A}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"N/A"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:[(0,e.createComponentVNode)(2,t.Button,{content:"Edit",icon:"pencil-alt",onClick:function(){function R(){return f("change_zeroth_law")}return R}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Add",icon:"plus",onClick:function(){function R(){return f("add_zeroth_law")}return R}()})]})]}),(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Ion"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:T}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"N/A"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:[(0,e.createComponentVNode)(2,t.Button,{content:"Edit",icon:"pencil-alt",onClick:function(){function R(){return f("change_ion_law")}return R}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Add",icon:"plus",onClick:function(){function R(){return f("add_ion_law")}return R}()})]})]}),(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Inherent"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:E}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"N/A"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:[(0,e.createComponentVNode)(2,t.Button,{content:"Edit",icon:"pencil-alt",onClick:function(){function R(){return f("change_inherent_law")}return R}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Add",icon:"plus",onClick:function(){function R(){return f("add_inherent_law")}return R}()})]})]}),(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:O}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{content:P,onClick:function(){function R(){return f("change_supplied_law_position")}return R}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:[(0,e.createComponentVNode)(2,t.Button,{content:"Edit",icon:"pencil-alt",onClick:function(){function R(){return f("change_supplied_law")}return R}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Add",icon:"plus",onClick:function(){function R(){return f("add_supplied_law")}return R}()})]})]})]})})],0)},V=function(p,i){var l=(0,a.useBackend)(i),f=l.act,u=l.data,d=u.law_sets;return(0,e.createComponentVNode)(2,t.Box,{children:d.map(function(m){return(0,e.createComponentVNode)(2,t.Section,{title:m.name+" - "+m.header,buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Load Laws",icon:"download",onClick:function(){function c(){return f("transfer_laws",{transfer_laws:m.ref})}return c}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[m.laws.has_ion_laws>0&&m.laws.ion_laws.map(function(c){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:c.index,children:c.law},c.index)}),m.laws.has_zeroth_laws>0&&m.laws.zeroth_laws.map(function(c){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:c.index,children:c.law},c.index)}),m.laws.has_inherent_laws>0&&m.laws.inherent_laws.map(function(c){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:c.index,children:c.law},c.index)}),m.laws.has_supplied_laws>0&&m.laws.inherent_laws.map(function(c){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:c.index,children:c.law},c.index)})]})},m.name)})})},k=function(p,i){var l=(0,a.useBackend)(p.ctx),f=l.act,u=l.data,d=u.isMalf;return(0,e.createComponentVNode)(2,t.Section,{title:p.title+" Laws",children:(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{width:"10%",children:"Index"}),(0,e.createComponentVNode)(2,t.Table.Cell,{width:"69%",children:"Law"}),(0,e.createComponentVNode)(2,t.Table.Cell,{width:"21%",children:"State?"})]}),p.laws.map(function(m){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:m.index}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:m.law}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:[(0,e.createComponentVNode)(2,t.Button,{content:m.state?"Yes":"No",selected:m.state,onClick:function(){function c(){return f("state_law",{ref:m.ref,state_law:m.state?0:1})}return c}()}),!!d&&(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{content:"Edit",icon:"pencil-alt",onClick:function(){function c(){return f("edit_law",{edit_law:m.ref})}return c}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Delete",icon:"trash",color:"red",onClick:function(){function c(){return f("delete_law",{delete_law:m.ref})}return c}()})],4)]})]},m.law)})]})})}},26133:function(I,r,n){"use strict";r.__esModule=!0,r.ListInputModal=void 0;var e=n(96524),a=n(14299),t=n(15113),o=n(24674),s=n(17899),y=n(68100),V=n(45493),k=r.ListInputModal=function(){function i(l,f){var u=(0,s.useBackend)(f),d=u.act,m=u.data,c=m.items,v=c===void 0?[]:c,b=m.message,C=b===void 0?"":b,h=m.init_value,g=m.timeout,N=m.title,x=(0,s.useLocalState)(f,"selected",v.indexOf(h)),B=x[0],L=x[1],w=(0,s.useLocalState)(f,"searchBarVisible",v.length>10),A=w[0],T=w[1],E=(0,s.useLocalState)(f,"searchQuery",""),O=E[0],P=E[1],R=function(){function ne($){var se=Y.length-1;if($===y.KEY_DOWN)if(B===null||B===se){var Ne;L(0),(Ne=document.getElementById("0"))==null||Ne.scrollIntoView()}else{var be;L(B+1),(be=document.getElementById((B+1).toString()))==null||be.scrollIntoView()}else if($===y.KEY_UP)if(B===null||B===0){var xe;L(se),(xe=document.getElementById(se.toString()))==null||xe.scrollIntoView()}else{var Ie;L(B-1),(Ie=document.getElementById((B-1).toString()))==null||Ie.scrollIntoView()}}return ne}(),F=function(){function ne($){$!==B&&L($)}return ne}(),j=function(){function ne(){T(!1),T(!0)}return ne}(),U=function(){function ne($){var se=String.fromCharCode($),Ne=v.find(function(Ie){return Ie==null?void 0:Ie.toLowerCase().startsWith(se==null?void 0:se.toLowerCase())});if(Ne){var be,xe=v.indexOf(Ne);L(xe),(be=document.getElementById(xe.toString()))==null||be.scrollIntoView()}}return ne}(),_=function(){function ne($){var se;$!==O&&(P($),L(0),(se=document.getElementById("0"))==null||se.scrollIntoView())}return ne}(),K=function(){function ne(){T(!A),P("")}return ne}(),Y=v.filter(function(ne){return ne==null?void 0:ne.toLowerCase().includes(O.toLowerCase())}),G=330+Math.ceil(C.length/3);return A||setTimeout(function(){var ne;return(ne=document.getElementById(B.toString()))==null?void 0:ne.focus()},1),(0,e.createComponentVNode)(2,V.Window,{title:N,width:325,height:G,children:[g&&(0,e.createComponentVNode)(2,a.Loader,{value:g}),(0,e.createComponentVNode)(2,V.Window.Content,{onKeyDown:function(){function ne($){var se=window.event?$.which:$.keyCode;(se===y.KEY_DOWN||se===y.KEY_UP)&&($.preventDefault(),R(se)),se===y.KEY_ENTER&&($.preventDefault(),d("submit",{entry:Y[B]})),!A&&se>=y.KEY_A&&se<=y.KEY_Z&&($.preventDefault(),U(se)),se===y.KEY_ESCAPE&&($.preventDefault(),d("cancel"))}return ne}(),children:(0,e.createComponentVNode)(2,o.Section,{buttons:(0,e.createComponentVNode)(2,o.Button,{compact:!0,icon:A?"search":"font",selected:!0,tooltip:A?"Search Mode. Type to search or use arrow keys to select manually.":"Hotkey Mode. Type a letter to jump to the first match. Enter to select.",tooltipPosition:"left",onClick:function(){function ne(){return K()}return ne}()}),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,S,{filteredItems:Y,onClick:F,onFocusSearch:j,searchBarVisible:A,selected:B})}),(0,e.createComponentVNode)(2,o.Stack.Item,{m:0,children:A&&(0,e.createComponentVNode)(2,p,{filteredItems:Y,onSearch:_,searchQuery:O,selected:B})}),(0,e.createComponentVNode)(2,o.Stack.Item,{mt:.5,children:(0,e.createComponentVNode)(2,t.InputButtons,{input:Y[B]})})]})})})]})}return i}(),S=function(l,f){var u=(0,s.useBackend)(f),d=u.act,m=l.filteredItems,c=l.onClick,v=l.onFocusSearch,b=l.searchBarVisible,C=l.selected;return(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,tabIndex:0,children:m.map(function(h,g){return(0,e.createComponentVNode)(2,o.Button,{fluid:!0,color:"transparent",id:g,onClick:function(){function N(){return c(g)}return N}(),onDblClick:function(){function N(x){x.preventDefault(),d("submit",{entry:m[C]})}return N}(),onKeyDown:function(){function N(x){var B=window.event?x.which:x.keyCode;b&&B>=y.KEY_A&&B<=y.KEY_Z&&(x.preventDefault(),v())}return N}(),selected:g===C,style:{animation:"none",transition:"none"},children:h.replace(/^\w/,function(N){return N.toUpperCase()})},g)})})},p=function(l,f){var u=(0,s.useBackend)(f),d=u.act,m=l.filteredItems,c=l.onSearch,v=l.searchQuery,b=l.selected;return(0,e.createComponentVNode)(2,o.Input,{width:"100%",autoFocus:!0,autoSelect:!0,onEnter:function(){function C(h){h.preventDefault(),d("submit",{entry:m[b]})}return C}(),onInput:function(){function C(h,g){return c(g)}return C}(),placeholder:"Search...",value:v})}},95752:function(I,r,n){"use strict";r.__esModule=!0,r.MechBayConsole=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),s=r.MechBayConsole=function(){function y(V,k){var S=(0,a.useBackend)(k),p=S.act,i=S.data,l=i.recharge_port,f=l&&l.mech,u=f&&f.cell,d=f&&f.name;return(0,e.createComponentVNode)(2,o.Window,{width:400,height:150,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{title:d?"Mech status: "+d:"Mech status",textAlign:"center",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"sync",content:"Sync",onClick:function(){function m(){return p("reconnect")}return m}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Integrity",children:!l&&(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No power port detected. Please re-sync."})||!f&&(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No mech detected."})||(0,e.createComponentVNode)(2,t.ProgressBar,{value:f.health/f.maxhealth,ranges:{good:[.7,1/0],average:[.3,.7],bad:[-1/0,.3]}})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power",children:!l&&(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No power port detected. Please re-sync."})||!f&&(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No mech detected."})||!u&&(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No cell is installed."})||(0,e.createComponentVNode)(2,t.ProgressBar,{value:u.charge/u.maxcharge,ranges:{good:[.7,1/0],average:[.3,.7],bad:[-1/0,.3]},children:[(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:u.charge})," / "+u.maxcharge]})})]})})})})}return y}()},53668:function(I,r,n){"use strict";r.__esModule=!0,r.MechaControlConsole=void 0;var e=n(96524),a=n(36121),t=n(17899),o=n(24674),s=n(45493),y=n(78234),V=r.MechaControlConsole=function(){function k(S,p){var i=(0,t.useBackend)(p),l=i.act,f=i.data,u=f.beacons,d=f.stored_data;return d.length?(0,e.createComponentVNode)(2,s.Window,{width:420,height:500,children:(0,e.createComponentVNode)(2,s.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,o.Section,{title:"Log",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"window-close",onClick:function(){function m(){return l("clear_log")}return m}()}),children:d.map(function(m){return(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,o.Box,{color:"label",children:["(",m.time,")"]}),(0,e.createComponentVNode)(2,o.Box,{children:(0,y.decodeHtmlEntities)(m.message)})]},m.time)})})})}):(0,e.createComponentVNode)(2,s.Window,{width:420,height:500,children:(0,e.createComponentVNode)(2,s.Window.Content,{scrollable:!0,children:u.length&&u.map(function(m){return(0,e.createComponentVNode)(2,o.Section,{title:m.name,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{icon:"comment",onClick:function(){function c(){return l("send_message",{mt:m.uid})}return c}(),children:"Message"}),(0,e.createComponentVNode)(2,o.Button,{icon:"eye",onClick:function(){function c(){return l("get_log",{mt:m.uid})}return c}(),children:"View Log"}),(0,e.createComponentVNode)(2,o.Button.Confirm,{color:"red",content:"EMP",icon:"bomb",onClick:function(){function c(){return l("shock",{mt:m.uid})}return c}()})],4),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Health",children:(0,e.createComponentVNode)(2,o.ProgressBar,{ranges:{good:[m.maxHealth*.75,1/0],average:[m.maxHealth*.5,m.maxHealth*.75],bad:[-1/0,m.maxHealth*.5]},value:m.health,maxValue:m.maxHealth})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Cell Charge",children:m.cell&&(0,e.createComponentVNode)(2,o.ProgressBar,{ranges:{good:[m.cellMaxCharge*.75,1/0],average:[m.cellMaxCharge*.5,m.cellMaxCharge*.75],bad:[-1/0,m.cellMaxCharge*.5]},value:m.cellCharge,maxValue:m.cellMaxCharge})||(0,e.createComponentVNode)(2,o.NoticeBox,{children:"No Cell Installed"})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Air Tank",children:[m.airtank,"kPa"]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Pilot",children:m.pilot||"Unoccupied"}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Location",children:(0,y.toTitleCase)(m.location)||"Unknown"}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Active Equipment",children:m.active||"None"}),m.cargoMax&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Cargo Space",children:(0,e.createComponentVNode)(2,o.ProgressBar,{ranges:{bad:[m.cargoMax*.75,1/0],average:[m.cargoMax*.5,m.cargoMax*.75],good:[-1/0,m.cargoMax*.5]},value:m.cargoUsed,maxValue:m.cargoMax})})||null]})},m.name)})||(0,e.createComponentVNode)(2,o.NoticeBox,{children:"No mecha beacons found."})})})}return k}()},96467:function(I,r,n){"use strict";r.__esModule=!0,r.MedicalRecords=void 0;var e=n(96524),a=n(78234),t=n(17899),o=n(24674),s=n(99665),y=n(45493),V=n(68159),k=n(27527),S=n(84537),p={Minor:"lightgray",Medium:"good",Harmful:"average","Dangerous!":"bad","BIOHAZARD THREAT!":"darkred"},i={"*Deceased*":"deceased","*SSD*":"ssd","Physically Unfit":"physically_unfit",Disabled:"disabled"},l=function(w,A){(0,s.modalOpen)(w,"edit",{field:A.edit,value:A.value})},f=function(w,A){var T=w.args;return(0,e.createComponentVNode)(2,o.Section,{m:"-1rem",pb:"1.5rem",title:T.name||"Virus",children:(0,e.createComponentVNode)(2,o.Box,{mx:"0.5rem",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Number of stages",children:T.max_stages}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Spread",children:[T.spread_text," Transmission"]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Possible cure",children:T.cure}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Notes",children:T.desc}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Severity",color:p[T.severity],children:T.severity})]})})})},u=r.MedicalRecords=function(){function L(w,A){var T=(0,t.useBackend)(A),E=T.data,O=E.loginState,P=E.screen;if(!O.logged_in)return(0,e.createComponentVNode)(2,y.Window,{width:800,height:900,children:(0,e.createComponentVNode)(2,y.Window.Content,{children:(0,e.createComponentVNode)(2,k.LoginScreen)})});var R;return P===2?R=(0,e.createComponentVNode)(2,d):P===3?R=(0,e.createComponentVNode)(2,m):P===4?R=(0,e.createComponentVNode)(2,c):P===5?R=(0,e.createComponentVNode)(2,h):P===6&&(R=(0,e.createComponentVNode)(2,g)),(0,e.createComponentVNode)(2,y.Window,{width:800,height:900,children:[(0,e.createComponentVNode)(2,s.ComplexModal),(0,e.createComponentVNode)(2,y.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,V.LoginInfo),(0,e.createComponentVNode)(2,S.TemporaryNotice),(0,e.createComponentVNode)(2,B),R]})})]})}return L}(),d=function(w,A){var T=(0,t.useBackend)(A),E=T.act,O=T.data,P=O.records,R=(0,t.useLocalState)(A,"searchText",""),F=R[0],j=R[1],U=(0,t.useLocalState)(A,"sortId","name"),_=U[0],K=U[1],Y=(0,t.useLocalState)(A,"sortOrder",!0),G=Y[0],ne=Y[1];return(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{content:"Manage Records",icon:"wrench",ml:"0.25rem",onClick:function(){function $(){return E("screen",{screen:3})}return $}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Input,{fluid:!0,placeholder:"Search by Name, ID, Physical Status, or Mental Status",onInput:function(){function $(se,Ne){return j(Ne)}return $}()})})]})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,mt:.5,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,o.Table,{className:"MedicalRecords__list",children:[(0,e.createComponentVNode)(2,o.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,N,{id:"name",children:"Name"}),(0,e.createComponentVNode)(2,N,{id:"id",children:"ID"}),(0,e.createComponentVNode)(2,N,{id:"rank",children:"Assignment"}),(0,e.createComponentVNode)(2,N,{id:"p_stat",children:"Patient Status"}),(0,e.createComponentVNode)(2,N,{id:"m_stat",children:"Mental Status"})]}),P.filter((0,a.createSearch)(F,function($){return $.name+"|"+$.id+"|"+$.rank+"|"+$.p_stat+"|"+$.m_stat})).sort(function($,se){var Ne=G?1:-1;return $[_].localeCompare(se[_])*Ne}).map(function($){return(0,e.createComponentVNode)(2,o.Table.Row,{className:"MedicalRecords__listRow--"+i[$.p_stat],onClick:function(){function se(){return E("view_record",{view_record:$.ref})}return se}(),children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:"user"})," ",$.name]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:$.id}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:$.rank}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:$.p_stat}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:$.m_stat})]},$.id)})]})})})],4)},m=function(w,A){var T=(0,t.useBackend)(A),E=T.act;return(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,lineHeight:3,color:"translucent",icon:"download",content:"Backup to Disk",disabled:!0})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:[(0,e.createComponentVNode)(2,o.Button,{fluid:!0,lineHeight:3,color:"translucent",icon:"upload",content:"Upload from Disk",my:"0.5rem",disabled:!0})," "]}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Button.Confirm,{fluid:!0,lineHeight:3,icon:"trash",color:"translucent",content:"Delete All Medical Records",onClick:function(){function O(){return E("del_all")}return O}()})})]})})},c=function(w,A){var T=(0,t.useBackend)(A),E=T.act,O=T.data,P=O.medical,R=O.printing;return(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Stack.Item,{height:"235px",children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"General Data",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:R?"spinner":"print",disabled:R,iconSpin:!!R,content:"Print Record",ml:"0.5rem",onClick:function(){function F(){return E("print_record")}return F}()}),children:(0,e.createComponentVNode)(2,v)})}),!P||!P.fields?(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,color:"bad",children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,title:"Medical Data",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"pen",content:"Create New Record",onClick:function(){function F(){return E("new")}return F}()}),children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,o.Stack.Item,{bold:!0,grow:!0,textAlign:"center",fontSize:1.75,align:"center",color:"label",children:[(0,e.createComponentVNode)(2,o.Icon.Stack,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:"scroll",size:5,color:"gray"}),(0,e.createComponentVNode)(2,o.Icon,{name:"slash",size:5,color:"red"})]}),(0,e.createVNode)(1,"br"),"Medical records lost!"]})})})}):(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"Medical Data",buttons:(0,e.createComponentVNode)(2,o.Button.Confirm,{icon:"trash",disabled:!!P.empty,content:"Delete Medical Record",onClick:function(){function F(){return E("del_r")}return F}()}),children:(0,e.createComponentVNode)(2,b)})}),(0,e.createComponentVNode)(2,C)],4)],0)},v=function(w,A){var T=(0,t.useBackend)(A),E=T.data,O=E.general;return!O||!O.fields?(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,color:"bad",children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,children:"General records lost!"})})}):(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.LabeledList,{children:O.fields.map(function(P,R){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:P.field,children:[(0,e.createComponentVNode)(2,o.Box,{height:"20px",inline:!0,children:P.value}),!!P.edit&&(0,e.createComponentVNode)(2,o.Button,{icon:"pen",ml:"0.5rem",onClick:function(){function F(){return l(A,P)}return F}()})]},R)})})}),!!O.has_photos&&O.photos.map(function(P,R){return(0,e.createComponentVNode)(2,o.Stack.Item,{inline:!0,textAlign:"center",color:"label",ml:0,children:[(0,e.createVNode)(1,"img",null,null,1,{src:P,style:{width:"96px","margin-top":"2.5rem","margin-bottom":"0.5rem","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createVNode)(1,"br"),"Photo #",R+1]},R)})]})},b=function(w,A){var T=(0,t.useBackend)(A),E=T.act,O=T.data,P=O.medical;return!P||!P.fields?(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,color:"bad",children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,children:"Medical records lost!"})})}):(0,e.createComponentVNode)(2,o.Stack,{children:(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.LabeledList,{children:P.fields.map(function(R,F){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:R.field,preserveWhitespace:!0,children:[(0,a.decodeHtmlEntities)(R.value),!!R.edit&&(0,e.createComponentVNode)(2,o.Button,{icon:"pen",ml:"0.5rem",mb:R.line_break?"1rem":"initial",onClick:function(){function j(){return l(A,R)}return j}()})]},F)})})})})},C=function(w,A){var T=(0,t.useBackend)(A),E=T.act,O=T.data,P=O.medical;return(0,e.createComponentVNode)(2,o.Stack.Item,{height:"150px",children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"Comments/Log",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"comment",content:"Add Entry",onClick:function(){function R(){return(0,s.modalOpen)(A,"add_comment")}return R}()}),children:P.comments.length===0?(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"No comments found."}):P.comments.map(function(R,F){return(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,o.Box,{color:"label",inline:!0,children:R.header}),(0,e.createVNode)(1,"br"),R.text,(0,e.createComponentVNode)(2,o.Button,{icon:"comment-slash",color:"bad",ml:"0.5rem",onClick:function(){function j(){return E("del_c",{del_c:F+1})}return j}()})]},F)})})})},h=function(w,A){var T=(0,t.useBackend)(A),E=T.act,O=T.data,P=O.virus,R=(0,t.useLocalState)(A,"searchText",""),F=R[0],j=R[1],U=(0,t.useLocalState)(A,"sortId2","name"),_=U[0],K=U[1],Y=(0,t.useLocalState)(A,"sortOrder2",!0),G=Y[0],ne=Y[1];return(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Input,{ml:"0.25rem",fluid:!0,placeholder:"Search by Name, Max Stages, or Severity",onInput:function(){function $(se,Ne){return j(Ne)}return $}()})}),(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,mt:.5,children:(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,o.Table,{className:"MedicalRecords__list",children:[(0,e.createComponentVNode)(2,o.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,x,{id:"name",children:"Name"}),(0,e.createComponentVNode)(2,x,{id:"max_stages",children:"Max Stages"}),(0,e.createComponentVNode)(2,x,{id:"severity",children:"Severity"})]}),P.filter((0,a.createSearch)(F,function($){return $.name+"|"+$.max_stages+"|"+$.severity})).sort(function($,se){var Ne=G?1:-1;return $[_].localeCompare(se[_])*Ne}).map(function($){return(0,e.createComponentVNode)(2,o.Table.Row,{className:"MedicalRecords__listVirus--"+$.severity,onClick:function(){function se(){return E("vir",{vir:$.D})}return se}(),children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:"virus"})," ",$.name]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:$.max_stages}),(0,e.createComponentVNode)(2,o.Table.Cell,{color:p[$.severity],children:$.severity})]},$.id)})]})})})})],4)},g=function(w,A){var T=(0,t.useBackend)(A),E=T.act,O=T.data,P=O.medbots;return P.length===0?(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,color:"bad",children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,o.Stack.Item,{bold:!0,grow:!0,textAlign:"center",fontSize:1.75,align:"center",color:"label",children:[(0,e.createComponentVNode)(2,o.Icon.Stack,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:"robot",size:5,color:"gray"}),(0,e.createComponentVNode)(2,o.Icon,{name:"slash",size:5,color:"red"})]}),(0,e.createVNode)(1,"br"),"There are no Medibots."]})})})}):(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,o.Table,{className:"MedicalRecords__list",children:[(0,e.createComponentVNode)(2,o.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Name"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Area"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Status"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Chemicals"})]}),P.map(function(R){return(0,e.createComponentVNode)(2,o.Table.Row,{className:"MedicalRecords__listMedbot--"+R.on,children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:"medical"})," ",R.name]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:[R.area||"Unknown"," (",R.x,", ",R.y,")"]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:R.on?(0,e.createComponentVNode)(2,o.Box,{color:"good",children:"Online"}):(0,e.createComponentVNode)(2,o.Box,{color:"average",children:"Offline"})}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:R.use_beaker?"Reservoir: "+R.total_volume+"/"+R.maximum_volume:"Using internal synthesizer"})]},R.id)})]})})})},N=function(w,A){var T=(0,t.useLocalState)(A,"sortId","name"),E=T[0],O=T[1],P=(0,t.useLocalState)(A,"sortOrder",!0),R=P[0],F=P[1],j=w.id,U=w.children;return(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,color:E!==j&&"transparent",onClick:function(){function _(){E===j?F(!R):(O(j),F(!0))}return _}(),children:[U,E===j&&(0,e.createComponentVNode)(2,o.Icon,{name:R?"sort-up":"sort-down",ml:"0.25rem;"})]})})},x=function(w,A){var T=(0,t.useLocalState)(A,"sortId2","name"),E=T[0],O=T[1],P=(0,t.useLocalState)(A,"sortOrder2",!0),R=P[0],F=P[1],j=w.id,U=w.children;return(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,color:E!==j&&"transparent",onClick:function(){function _(){E===j?F(!R):(O(j),F(!0))}return _}(),children:[U,E===j&&(0,e.createComponentVNode)(2,o.Icon,{name:R?"sort-up":"sort-down",ml:"0.25rem;"})]})})},B=function(w,A){var T=(0,t.useBackend)(A),E=T.act,O=T.data,P=O.screen,R=O.general;return(0,e.createComponentVNode)(2,o.Stack.Item,{m:0,children:(0,e.createComponentVNode)(2,o.Tabs,{children:[(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"list",selected:P===2,onClick:function(){function F(){E("screen",{screen:2})}return F}(),children:"List Records"}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"database",selected:P===5,onClick:function(){function F(){E("screen",{screen:5})}return F}(),children:"Virus Database"}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"plus-square",selected:P===6,onClick:function(){function F(){return E("screen",{screen:6})}return F}(),children:"Medibot Tracking"}),P===3&&(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"wrench",selected:P===3,children:"Record Maintenance"}),P===4&&R&&!R.empty&&(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"file",selected:P===4,children:["Record: ",R.fields[0].value]})]})})};(0,s.modalRegisterBodyOverride)("virus",f)},81352:function(I,r,n){"use strict";r.__esModule=!0,r.Mimicking=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),s=r.Mimicking=function(){function y(V,k){var S=(0,a.useBackend)(k),p=S.act,i=S.data,l=i.slots||[];return(0,e.createComponentVNode)(2,o.Window,{width:400,height:300,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Stack,{vertical:!0,fill:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,children:[l.map(function(f){return(0,e.createComponentVNode)(2,t.Section,{mb:.5,title:f.name,level:2,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{content:"Choose",selected:f.selected,onClick:function(){function u(){return p("Choose",{id:f.id})}return u}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Delete",color:"bad",onClick:function(){function u(){return p("Delete",{id:f.id})}return u}()})],4),children:(0,e.createComponentVNode)(2,t.Box,{preserveWhitespace:!0,textColor:"#878787",fontSize:"14px",children:["Voice: ",f.voice]})},f.id)}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,content:"Add",onClick:function(){function f(){return p("Add")}return f}()})]})})})})}return y}()},96415:function(I,r,n){"use strict";r.__esModule=!0,r.MiniGamesMenu=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),s=r.MiniGamesMenu=function(){function y(V,k){var S=(0,a.useBackend)(k),p=S.act,i=S.data,l=i.spawners||[],f=i.thunderdome_eligible,u=i.notifications_enabled;return(0,e.createComponentVNode)(2,o.Window,{width:700,height:600,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"power-off",tooltip:f?"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0443\u0447\u0430\u0441\u0442\u0438\u0435 \u0432 \u0431\u043E\u0435\u0432\u044B\u0445 \u043C\u0438\u043D\u0438-\u0438\u0433\u0440\u0430\u0445":"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0443\u0447\u0430\u0441\u0442\u0438\u0435 \u0432 \u0431\u043E\u0435\u0432\u044B\u0445 \u043C\u0438\u043D\u0438-\u0438\u0433\u0440\u0430\u0445",tooltipPosition:"bottom",content:f?"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0443\u0447\u0430\u0441\u0442\u0438\u0435 \u0432 \u0431\u043E\u0435\u0432\u044B\u0445 \u043C\u0438\u043D\u0438-\u0438\u0433\u0440\u0430\u0445":"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0443\u0447\u0430\u0441\u0442\u0438\u0435 \u0432 \u0431\u043E\u0435\u0432\u044B\u0445 \u043C\u0438\u043D\u0438-\u0438\u0433\u0440\u0430\u0445",color:f?"good":"bad",onClick:function(){function d(){return p("toggle_minigames")}return d}()}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"power-off",tooltip:u?"\u041E\u0442\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0443\u0432\u0435\u0434\u043E\u043C\u043B\u0435\u043D\u0438\u044F \u043E \u0431\u043E\u0435\u0432\u044B\u0445 \u043C\u0438\u043D\u0438-\u0438\u0433\u0440\u0430\u0445":"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0443\u0432\u0435\u0434\u043E\u043C\u043B\u0435\u043D\u0438\u044F \u043E \u0431\u043E\u0435\u0432\u044B\u0445 \u043C\u0438\u043D\u0438-\u0438\u0433\u0440\u0430\u0445",tooltipPosition:"bottom",content:u?"\u041E\u0442\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0443\u0432\u0435\u0434\u043E\u043C\u043B\u0435\u043D\u0438\u044F \u043E \u0431\u043E\u0435\u0432\u044B\u0445 \u043C\u0438\u043D\u0438-\u0438\u0433\u0440\u0430\u0445":"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0443\u0432\u0435\u0434\u043E\u043C\u043B\u0435\u043D\u0438\u044F \u043E \u0431\u043E\u0435\u0432\u044B\u0445 \u043C\u0438\u043D\u0438-\u0438\u0433\u0440\u0430\u0445",color:u?"good":"bad",onClick:function(){function d(){return p("toggle_notifications")}return d}()}),(0,e.createComponentVNode)(2,t.Section,{children:l.map(function(d){return(0,e.createComponentVNode)(2,t.Section,{mb:.5,title:d.name,level:2,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{icon:"chevron-circle-right",content:"Jump",onClick:function(){function m(){return p("jump",{ID:d.uids})}return m}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"chevron-circle-right",content:"Start",onClick:function(){function m(){return p("spawn",{ID:d.uids})}return m}()})],4),children:[(0,e.createComponentVNode)(2,t.Box,{style:{"white-space":"pre-wrap"},mb:1,fontSize:"16px",children:d.desc}),!!d.fluff&&(0,e.createComponentVNode)(2,t.Box,{style:{"white-space":"pre-wrap"},textColor:"#878787",fontSize:"14px",children:d.fluff}),!!d.important_info&&(0,e.createComponentVNode)(2,t.Box,{style:{"white-space":"pre-wrap"},mt:1,bold:!0,color:"red",fontSize:"18px",children:d.important_info})]},d.name)})})]})})}return y}()},14162:function(I,r,n){"use strict";r.__esModule=!0,r.MiningVendor=void 0;var e=n(96524),a=n(78234),t=n(17899),o=n(24674),s=n(45493),y=["title","items"];function V(u,d){if(u==null)return{};var m={},c=Object.keys(u),v,b;for(b=0;b=0)&&(m[v]=u[v]);return m}var k={Alphabetical:function(){function u(d,m){return d-m}return u}(),Availability:function(){function u(d,m){return-(d.affordable-m.affordable)}return u}(),Price:function(){function u(d,m){return d.price-m.price}return u}()},S=r.MiningVendor=function(){function u(d,m){return(0,e.createComponentVNode)(2,s.Window,{width:400,height:450,children:(0,e.createComponentVNode)(2,s.Window.Content,{className:"Layout__content--flexColumn",children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,p),(0,e.createComponentVNode)(2,l),(0,e.createComponentVNode)(2,i)]})})})}return u}(),p=function(d,m){var c=(0,t.useBackend)(m),v=c.act,b=c.data,C=b.has_id,h=b.id;return(0,e.createComponentVNode)(2,o.NoticeBox,{success:C,children:C?(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Box,{inline:!0,verticalAlign:"middle",style:{float:"left"},children:["Logged in as ",h.name,".",(0,e.createVNode)(1,"br"),"You have ",h.points.toLocaleString("en-US")," points."]}),(0,e.createComponentVNode)(2,o.Button,{icon:"eject",content:"Eject ID",style:{float:"right"},onClick:function(){function g(){return v("logoff")}return g}()}),(0,e.createComponentVNode)(2,o.Box,{style:{clear:"both"}})],4):"Please insert an ID in order to make purchases."})},i=function(d,m){var c=(0,t.useBackend)(m),v=c.act,b=c.data,C=b.has_id,h=b.id,g=b.items,N=(0,t.useLocalState)(m,"search",""),x=N[0],B=N[1],L=(0,t.useLocalState)(m,"sort","Alphabetical"),w=L[0],A=L[1],T=(0,t.useLocalState)(m,"descending",!1),E=T[0],O=T[1],P=(0,a.createSearch)(x,function(j){return j[0]}),R=!1,F=Object.entries(g).map(function(j,U){var _=Object.entries(j[1]).filter(P).map(function(K){return K[1].affordable=C&&h.points>=K[1].price,K[1]}).sort(k[w]);if(_.length!==0)return E&&(_=_.reverse()),R=!0,(0,e.createComponentVNode)(2,f,{title:j[0],items:_},j[0])});return(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,children:R?F:(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"No items matching your criteria was found!"})})})},l=function(d,m){var c=(0,t.useLocalState)(m,"search",""),v=c[0],b=c[1],C=(0,t.useLocalState)(m,"sort",""),h=C[0],g=C[1],N=(0,t.useLocalState)(m,"descending",!1),x=N[0],B=N[1];return(0,e.createComponentVNode)(2,o.Box,{children:(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Input,{placeholder:"Search by item name..",width:"100%",onInput:function(){function L(w,A){return b(A)}return L}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"30%",children:(0,e.createComponentVNode)(2,o.Dropdown,{selected:"Alphabetical",options:Object.keys(k),width:"100%",onSelected:function(){function L(w){return g(w)}return L}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{icon:x?"arrow-down":"arrow-up",height:"21px",tooltip:x?"Descending order":"Ascending order",tooltipPosition:"bottom-start",onClick:function(){function L(){return B(!x)}return L}()})})]})})},f=function(d,m){var c=(0,t.useBackend)(m),v=c.act,b=c.data,C=d.title,h=d.items,g=V(d,y);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Collapsible,Object.assign({open:!0,title:C},g,{children:h.map(function(N){return(0,e.createComponentVNode)(2,o.ImageButton,{bold:!0,asset:!0,color:"brown",imageSize:"64px",image:N.imageId,imageAsset:"mining_vendor64x64",content:N.name,children:(0,e.createComponentVNode)(2,o.ImageButton.Item,{bold:!0,horizontal:!0,width:"64px",fontSize:1,content:N.price,icon:"shopping-cart",iconSize:1,iconColor:!b.has_id||b.id.points=0)&&(L[A]=x[A]);return L}var p=r.Multitool=function(){function x(B,L){var w=(0,t.useBackend)(L),A=w.act,T=w.data,E=T.multitoolMenuId,O=T.buffer,P=T.bufferName,R=T.bufferTag,F=T.canBufferHaveTag,j=T.isAttachedAlreadyInBuffer,U=T.attachedName,_=E!=="default_no_machine",K=function(){function Y(G){switch(G){case"default_no_machine":return(0,e.createComponentVNode)(2,m);case"no_options":return(0,e.createComponentVNode)(2,m);case"access_denied":return(0,e.createComponentVNode)(2,c);case"tag_only":return(0,e.createComponentVNode)(2,v);case"multiple_tags":return(0,e.createComponentVNode)(2,C);case"frequency_and_tag":return(0,e.createFragment)([(0,e.createComponentVNode)(2,b),(0,e.createComponentVNode)(2,v)],4);case"air_sensor":return(0,e.createFragment)([(0,e.createComponentVNode)(2,b),(0,e.createComponentVNode)(2,v),(0,e.createComponentVNode)(2,h)],4);case"general_air_control":return(0,e.createFragment)([(0,e.createComponentVNode)(2,b),(0,e.createComponentVNode)(2,g)],4);case"large_tank_control":return(0,e.createFragment)([(0,e.createComponentVNode)(2,b),(0,e.createComponentVNode)(2,N),(0,e.createComponentVNode)(2,g)],4);default:return"WE SHOULDN'T BE HERE!"}}return Y}();return(0,e.createComponentVNode)(2,s.Window,{width:510,height:420,children:(0,e.createComponentVNode)(2,s.Window.Content,{children:(0,e.createComponentVNode)(2,o.Flex,{direction:"column",height:"100%",children:[(0,e.createComponentVNode)(2,o.Flex.Item,{style:{"overflow-x":"hidden","overflow-y":"auto"},grow:1,shrink:1,basis:0,children:(0,e.createComponentVNode)(2,o.Section,{title:"Configuration menu",py:.3,children:[(0,e.createComponentVNode)(2,i,{iconName:"tools",machineName:U,noMachine:E==="default_no_machine",noMachineText:"No machine attached"}),K(E)]})}),(0,e.createComponentVNode)(2,o.Flex.Item,{grow:0,shrink:0,children:(0,e.createComponentVNode)(2,o.Divider)}),(0,e.createComponentVNode)(2,o.Flex.Item,{grow:0,shrink:0,children:(0,e.createComponentVNode)(2,o.Section,{title:"Multitool buffer",mb:.9,py:.3,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{content:j?"Added":"Add machine",icon:"save",disabled:!_||j,onClick:function(){function Y(){return A("buffer_add")}return Y}()}),(0,e.createComponentVNode)(2,o.Button,{mr:1,content:"Flush",icon:"times-circle",color:"red",disabled:!O,onClick:function(){function Y(){return A("buffer_flush")}return Y}()})],4),children:[(0,e.createComponentVNode)(2,i,{iconName:"tools",machineName:P,noMachine:!O,noMachineElem:(0,e.createComponentVNode)(2,l,{text:""})}),!!O&&(0,e.createComponentVNode)(2,d,{mt:1.1,label:"ID tag",compactLabel:!0,wrapContent:F?(0,e.createComponentVNode)(2,f,{text:R,defaultText:"",color:"silver"}):(0,e.createComponentVNode)(2,o.Box,{as:"span",fontSize:"0.9rem",color:"red",italic:!0,nowrap:!0,children:"Not supported"})})]})})]})})})}return x}(),i=function(B,L){var w=B.iconName,A=B.machineName,T=B.noMachine,E=B.noMachineText,O=B.noMachineElem,P="Unknown machine",R=T?E:A||"Unknown machine",F=R===E,j=R===E||R===P;return T&&O?O:(0,e.createComponentVNode)(2,o.Flex,{mt:.1,mb:1.9,children:[!T&&(0,e.createComponentVNode)(2,o.Flex.Item,{grow:0,shrink:0,align:"center",children:(0,e.createComponentVNode)(2,o.Icon,{mr:1,size:1.1,name:w})}),(0,e.createComponentVNode)(2,o.Flex.Item,{grow:1,shrink:1,basis:0,wordWrap:"break-word",children:(0,e.createComponentVNode)(2,o.Box,{as:"span",wordWrap:"break-word",color:F?"label":"silver",fontSize:"1.1rem",bold:!0,italic:j,children:R})})]})},l=function(B,L){var w=B.text;return(0,e.createComponentVNode)(2,o.Box,{as:"span",fontSize:"0.9rem",color:"yellow",italic:!0,nowrap:!0,children:w})},f=function(B,L){var w=B.text,A=B.defaultText,T=S(B,y);return w?(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Box,Object.assign({as:"span",wordWrap:"break-word"},T,{children:w}))):(0,e.createComponentVNode)(2,l,{text:A})},u=function(B,L){var w=B.noConfirm,A=w===void 0?!1:w,T=S(B,V);return A?(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Button,Object.assign({},T))):(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Button.Confirm,Object.assign({},T)))},d=function(B,L){var w=B.label,A=B.wrapContent,T=B.noWrapContent,E=B.compactLabel,O=E===void 0?!1:E,P=S(B,k);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Flex,Object.assign({my:.5,mr:"0.5%",spacing:1,align:"center"},P,{children:[(0,e.createComponentVNode)(2,o.Flex.Item,{grow:O?0:1,shrink:0,textOverflow:"ellipsis",overflow:"hidden",basis:O?"auto":0,maxWidth:O?"none":20,color:"label",nowrap:!0,children:w}),(0,e.createComponentVNode)(2,o.Flex.Item,{grow:1,shrink:1,basis:0,textAlign:"center",wordWrap:"break-word",children:A}),(0,e.createComponentVNode)(2,o.Flex.Item,{grow:.1}),(0,e.createComponentVNode)(2,o.Flex.Item,{grow:0,shrink:0,nowrap:!0,children:T})]})))},m=function(B,L){var w=(0,t.useBackend)(L),A=w.act,T=w.data;return(0,e.createComponentVNode)(2,o.Box,{mt:1.5,fontSize:"0.9rem",color:"silver",italic:!0,children:"No options"})},c=function(B,L){var w=(0,t.useBackend)(L),A=w.act,T=w.data;return(0,e.createComponentVNode)(2,o.Box,{fontSize:"1.1rem",color:"red",bold:!0,italic:!0,children:"ACCESS DENIED"})},v=function(B,L){var w=(0,t.useBackend)(L),A=w.act,T=w.data,E=T.attachedTag;return(0,e.createComponentVNode)(2,d,{label:"ID tag",wrapContent:(0,e.createComponentVNode)(2,f,{text:E,defaultText:"",color:"silver"}),noWrapContent:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{content:"Set",icon:"wrench",onClick:function(){function O(){return A("set_tag")}return O}()}),(0,e.createComponentVNode)(2,o.Button,{content:"Clear",icon:"times-circle",color:"red",disabled:!E,onClick:function(){function O(){return A("clear_tag")}return O}()})],4)})},b=function(B,L){var w=(0,t.useBackend)(L),A=w.act,T=w.data,E=T.frequency,O=T.minFrequency,P=T.maxFrequency,R=T.canReset;return(0,e.createComponentVNode)(2,d,{label:"Frequency",noWrapContent:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.NumberInput,{animate:!0,unit:"kHz",step:.1,stepPixelSize:10,minValue:O/10,maxValue:P/10,value:E/10,format:function(){function F(j){return(0,a.toFixed)(j,1)}return F}(),onChange:function(){function F(j,U){return A("set_frequency",{frequency:U*10})}return F}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"undo",content:"",disabled:!R,tooltip:"Reset",onClick:function(){function F(){return A("reset_frequency")}return F}()})],4)})},C=function(B,L){var w=(0,t.useBackend)(L),A=w.act,T=w.data,E=T.attachedTags;return(0,e.createComponentVNode)(2,o.Section,{mt:1.7,ml:.5,mr:1,px:.5,title:"Linked tags",buttons:(0,e.createComponentVNode)(2,o.Button,{mr:1,pl:2.1,content:"Add tag",icon:"plus",iconRight:!0,onClick:function(){function O(){return A("add_tag")}return O}()}),children:E.map(function(O,P){return(0,e.createComponentVNode)(2,d,{mr:0,label:(0,e.createComponentVNode)(2,o.Icon,{name:"wave-square"}),compactLabel:!0,wrapContent:(0,e.createComponentVNode)(2,o.Flex,{align:"center",spacing:1,children:(0,e.createComponentVNode)(2,o.Flex.Item,{grow:1,shrink:1,basis:0,color:"silver",wordWrap:"break-word",children:O})}),noWrapContent:(0,e.createComponentVNode)(2,o.Flex,{children:(0,e.createComponentVNode)(2,o.Flex.Item,{grow:0,shrink:0,children:(0,e.createComponentVNode)(2,o.Button,{icon:"minus",color:"red",onClick:function(){function R(){return A("remove_tag",{tag_index:P})}return R}()})})})},P)})})},h=function(B,L){var w=(0,t.useBackend)(L),A=w.act,T=w.data,E=T.bolts,O=T.pressureCheck,P=T.temperatureCheck,R=T.oxygenCheck,F=T.toxinsCheck,j=T.nitrogenCheck,U=T.carbonDioxideCheck,_=[{bitflag:1,checked:O,label:"Monitor pressure"},{bitflag:2,checked:P,label:"Monitor temperature"},{bitflag:4,checked:R,label:"Monitor oxygen concentration"},{bitflag:8,checked:F,label:"Monitor plasma concentration"},{bitflag:16,checked:j,label:"Monitor nitrogen concentration"},{bitflag:32,checked:U,label:"Monitor carbon dioxide concentration"}];return(0,e.createFragment)([(0,e.createComponentVNode)(2,d,{label:"Floor bolts",noWrapContent:(0,e.createComponentVNode)(2,o.Button,{icon:E?"check":"times",selected:E,content:E?"YES":"NO",onClick:function(){function K(){return A("toggle_bolts")}return K}()})}),_.map(function(K){return(0,e.createComponentVNode)(2,d,{label:K.label,noWrapContent:(0,e.createComponentVNode)(2,o.Button.Checkbox,{checked:K.checked,onClick:function(){function Y(){return A("toggle_flag",{bitflag:K.bitflag})}return Y}()})},K.bitflag)})],0)},g=function(B,L){var w=(0,t.useBackend)(L),A=w.act,T=w.data,E=T.sensors;return(0,e.createComponentVNode)(2,o.Section,{mt:1.7,ml:.5,mr:1,px:.5,title:"Sensors",buttons:(0,e.createComponentVNode)(2,o.Button,{mr:1,pl:2.1,content:"Add sensor",icon:"plus",iconRight:!0,onClick:function(){function O(){return A("add_sensor")}return O}()}),children:[(0,e.createComponentVNode)(2,d,{mr:0,compactLabel:!0,wrapContent:(0,e.createComponentVNode)(2,o.Flex,{children:[(0,e.createComponentVNode)(2,o.Flex.Item,{width:1}),(0,e.createComponentVNode)(2,o.Flex.Item,{grow:1,shrink:1,basis:0,color:"label",nowrap:!0,bold:!0,children:"ID tag"}),(0,e.createComponentVNode)(2,o.Flex.Item,{grow:1,shrink:1,basis:0,color:"label",nowrap:!0,bold:!0,children:"Label"}),(0,e.createComponentVNode)(2,o.Flex.Item,{width:11.3})]})}),Object.keys(E).map(function(O){return(0,e.createComponentVNode)(2,d,{mr:0,label:(0,e.createComponentVNode)(2,o.Icon,{name:"wave-square"}),compactLabel:!0,wrapContent:(0,e.createComponentVNode)(2,o.Flex,{align:"center",spacing:1,children:[(0,e.createComponentVNode)(2,o.Flex.Item,{grow:1,shrink:1,basis:0,color:"silver",wordWrap:"break-word",children:O}),E[O]?(0,e.createComponentVNode)(2,o.Flex.Item,{grow:1,shrink:1,basis:0,color:"silver",wordWrap:"break-word",children:E[O]}):(0,e.createComponentVNode)(2,o.Flex.Item,{grow:1,shrink:1,basis:0,fontSize:"0.9rem",color:"yellow",italic:!0,nowrap:!0,children:""})]}),noWrapContent:(0,e.createComponentVNode)(2,o.Flex,{children:[(0,e.createComponentVNode)(2,o.Flex.Item,{grow:0,shrink:0,children:[(0,e.createComponentVNode)(2,o.Button,{content:"Label",icon:"edit",onClick:function(){function P(){return A("change_label",{sensor_tag:O})}return P}()}),(0,e.createComponentVNode)(2,o.Button,{content:"Label",icon:"times-circle",color:"orange",disabled:!E[O],onClick:function(){function P(){return A("clear_label",{sensor_tag:O})}return P}()})]}),(0,e.createComponentVNode)(2,o.Flex.Item,{width:.5}),(0,e.createComponentVNode)(2,o.Flex.Item,{grow:0,shrink:0,children:(0,e.createComponentVNode)(2,o.Button,{px:1.2,icon:"minus",color:"red",onClick:function(){function P(){return A("del_sensor",{sensor_tag:O})}return P}()})})]})},O)})]})},N=function(B,L){var w=(0,t.useBackend)(L),A=w.act,T=w.data,E=T.inputTag,O=T.outputTag,P=T.bufferTag,R=T.bufferFitsInput,F=T.bufferFitsOutput,j=T.doNotLinkAndNotify;return(0,e.createFragment)([(0,e.createComponentVNode)(2,d,{label:"Input",labelWidth:6,wrapContent:(0,e.createComponentVNode)(2,f,{text:E,defaultText:"",color:"silver"}),noWrapContent:(0,e.createFragment)([(0,e.createComponentVNode)(2,u,{noConfirm:j||!E,confirmContent:"This will change the intput device. Confirm?",confirmColor:"orange",content:"Link buffer",icon:"link",selected:E&&P===E,disabled:!R,onClick:function(){function U(){return A("link_input")}return U}()}),(0,e.createComponentVNode)(2,o.Button.Confirm,{confirmContent:"This will unlink the intput device. Confirm?",confirmColor:"orange",content:"Unlink",icon:"unlink",color:"red",disabled:!E,onClick:function(){function U(){return A("unlink_input")}return U}()})],4)}),(0,e.createComponentVNode)(2,d,{label:"Output",labelWidth:6,wrapContent:(0,e.createComponentVNode)(2,f,{text:O,defaultText:"",color:"silver"}),noWrapContent:(0,e.createFragment)([(0,e.createComponentVNode)(2,u,{noConfirm:j||!O,confirmContent:"This will change the output device. Confirm?",confirmColor:"orange",content:"Link buffer",icon:"link",selected:O&&P===O,disabled:!F,onClick:function(){function U(){return A("link_output")}return U}()}),(0,e.createComponentVNode)(2,o.Button.Confirm,{confirmContent:"This will unlink the output device. Confirm?",confirmColor:"orange",content:"Unlink",icon:"unlink",color:"red",disabled:!O,onClick:function(){function U(){return A("unlink_output")}return U}()})],4)})],4)}},17067:function(I,r,n){"use strict";r.__esModule=!0,r.Newscaster=void 0;var e=n(96524),a=n(28234),t=n(17899),o=n(24674),s=n(38424),y=n(45493),V=n(99665),k=n(84537),S=["icon","iconSpin","selected","security","onClick","title","children"],p=["name"];function i(B,L){if(B==null)return{};var w={},A=Object.keys(B),T,E;for(E=0;E=0)&&(w[T]=B[T]);return w}var l=128,f=["security","engineering","medical","science","service","supply"],u={security:{title:"Security",fluff_text:"Help keep the crew safe"},engineering:{title:"Engineering",fluff_text:"Ensure the station runs smoothly"},medical:{title:"Medical",fluff_text:"Practice medicine and save lives"},science:{title:"Science",fluff_text:"Develop new technologies"},service:{title:"Service",fluff_text:"Provide amenities to the crew"},supply:{title:"Supply",fluff_text:"Keep the station supplied"}},d=r.Newscaster=function(){function B(L,w){var A=(0,t.useBackend)(w),T=A.act,E=A.data,O=E.is_security,P=E.is_admin,R=E.is_silent,F=E.is_printing,j=E.screen,U=E.channels,_=E.channel_idx,K=_===void 0?-1:_,Y=(0,t.useLocalState)(w,"menuOpen",!1),G=Y[0],ne=Y[1],$=(0,t.useLocalState)(w,"viewingPhoto",""),se=$[0],Ne=$[1],be=(0,t.useLocalState)(w,"censorMode",!1),xe=be[0],Ie=be[1],Te;j===0||j===2?Te=(0,e.createComponentVNode)(2,c):j===1&&(Te=(0,e.createComponentVNode)(2,v));var he=U.reduce(function(Q,X){return Q+X.unread},0);return(0,e.createComponentVNode)(2,y.Window,{theme:O&&"security",width:800,height:600,children:[se?(0,e.createComponentVNode)(2,h):(0,e.createComponentVNode)(2,V.ComplexModal,{maxWidth:window.innerWidth/1.5+"px",maxHeight:window.innerHeight/1.5+"px"}),(0,e.createComponentVNode)(2,y.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,o.Section,{fill:!0,className:(0,a.classes)(["Newscaster__menu",G&&"Newscaster__menu--open"]),children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:[(0,e.createComponentVNode)(2,m,{icon:"bars",title:"Toggle Menu",onClick:function(){function Q(){return ne(!G)}return Q}()}),(0,e.createComponentVNode)(2,m,{icon:"newspaper",title:"Headlines",selected:j===0,onClick:function(){function Q(){return T("headlines")}return Q}(),children:he>0&&(0,e.createComponentVNode)(2,o.Box,{className:"Newscaster__menuButton--unread",children:he>=10?"9+":he})}),(0,e.createComponentVNode)(2,m,{icon:"briefcase",title:"Job Openings",selected:j===1,onClick:function(){function Q(){return T("jobs")}return Q}()}),(0,e.createComponentVNode)(2,o.Divider)]}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:U.map(function(Q){return(0,e.createComponentVNode)(2,m,{icon:Q.icon,title:Q.name,selected:j===2&&U[K-1]===Q,onClick:function(){function X(){return T("channel",{uid:Q.uid})}return X}(),children:Q.unread>0&&(0,e.createComponentVNode)(2,o.Box,{className:"Newscaster__menuButton--unread",children:Q.unread>=10?"9+":Q.unread})},Q)})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:[(0,e.createComponentVNode)(2,o.Divider),(!!O||!!P)&&(0,e.createFragment)([(0,e.createComponentVNode)(2,m,{security:!0,icon:"exclamation-circle",title:"Edit Wanted Notice",mb:"0.5rem",onClick:function(){function Q(){return(0,V.modalOpen)(w,"wanted_notice")}return Q}()}),(0,e.createComponentVNode)(2,m,{security:!0,icon:xe?"minus-square":"minus-square-o",title:"Censor Mode: "+(xe?"On":"Off"),mb:"0.5rem",onClick:function(){function Q(){return Ie(!xe)}return Q}()}),(0,e.createComponentVNode)(2,o.Divider)],4),(0,e.createComponentVNode)(2,m,{icon:"pen-alt",title:"New Story",mb:"0.5rem",onClick:function(){function Q(){return(0,V.modalOpen)(w,"create_story")}return Q}()}),(0,e.createComponentVNode)(2,m,{icon:"plus-circle",title:"New Channel",onClick:function(){function Q(){return(0,V.modalOpen)(w,"create_channel")}return Q}()}),(0,e.createComponentVNode)(2,o.Divider),(0,e.createComponentVNode)(2,m,{icon:F?"spinner":"print",iconSpin:F,title:F?"Printing...":"Print Newspaper",onClick:function(){function Q(){return T("print_newspaper")}return Q}()}),(0,e.createComponentVNode)(2,m,{icon:R?"volume-mute":"volume-up",title:"Mute: "+(R?"On":"Off"),onClick:function(){function Q(){return T("toggle_mute")}return Q}()})]})]})}),(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,width:"100%",children:[(0,e.createComponentVNode)(2,k.TemporaryNotice),Te]})]})})]})}return B}(),m=function(L,w){var A=(0,t.useBackend)(w),T=A.act,E=L.icon,O=E===void 0?"":E,P=L.iconSpin,R=L.selected,F=R===void 0?!1:R,j=L.security,U=j===void 0?!1:j,_=L.onClick,K=L.title,Y=L.children,G=i(L,S);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Box,Object.assign({className:(0,a.classes)(["Newscaster__menuButton",F&&"Newscaster__menuButton--selected",U&&"Newscaster__menuButton--security"]),onClick:_},G,{children:[F&&(0,e.createComponentVNode)(2,o.Box,{className:"Newscaster__menuButton--selectedBar"}),(0,e.createComponentVNode)(2,o.Icon,{name:O,spin:P,size:"2"}),(0,e.createComponentVNode)(2,o.Box,{className:"Newscaster__menuButton--title",children:K}),Y]})))},c=function(L,w){var A=(0,t.useBackend)(w),T=A.act,E=A.data,O=E.screen,P=E.is_admin,R=E.channel_idx,F=E.channel_can_manage,j=E.channels,U=E.stories,_=E.wanted,K=(0,t.useLocalState)(w,"fullStories",[]),Y=K[0],G=K[1],ne=(0,t.useLocalState)(w,"censorMode",!1),$=ne[0],se=ne[1],Ne=O===2&&R>-1?j[R-1]:null;return(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[!!_&&(0,e.createComponentVNode)(2,b,{story:_,wanted:!0}),(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Icon,{name:Ne?Ne.icon:"newspaper",mr:"0.5rem"}),Ne?Ne.name:"Headlines"],0),children:U.length>0?U.slice().reverse().map(function(be){return!Y.includes(be.uid)&&be.body.length+3>l?Object.assign({},be,{body_short:be.body.substr(0,l-4)+"..."}):be}).map(function(be,xe){return(0,e.createComponentVNode)(2,b,{story:be},xe)}):(0,e.createComponentVNode)(2,o.Box,{className:"Newscaster__emptyNotice",children:[(0,e.createComponentVNode)(2,o.Icon,{name:"times",size:"3"}),(0,e.createVNode)(1,"br"),"There are no stories at this time."]})}),!!Ne&&(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,height:"40%",title:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Icon,{name:"info-circle",mr:"0.5rem"}),(0,e.createTextVNode)("About")],4),buttons:(0,e.createFragment)([$&&(0,e.createComponentVNode)(2,o.Button,{disabled:!!Ne.admin&&!P,selected:Ne.censored,icon:Ne.censored?"comment-slash":"comment",content:Ne.censored?"Uncensor Channel":"Censor Channel",mr:"0.5rem",onClick:function(){function be(){return T("censor_channel",{uid:Ne.uid})}return be}()}),(0,e.createComponentVNode)(2,o.Button,{disabled:!F,icon:"cog",content:"Manage",onClick:function(){function be(){return(0,V.modalOpen)(w,"manage_channel",{uid:Ne.uid})}return be}()})],0),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Description",children:Ne.description||"N/A"}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Owner",children:Ne.author||"N/A"}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Public",children:Ne.public?"Yes":"No"}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Total Views",children:[(0,e.createComponentVNode)(2,o.Icon,{name:"eye",mr:"0.5rem"}),U.reduce(function(be,xe){return be+xe.view_count},0).toLocaleString()]})]})})]})},v=function(L,w){var A=(0,t.useBackend)(w),T=A.act,E=A.data,O=E.jobs,P=E.wanted,R=Object.entries(O).reduce(function(F,j){var U=j[0],_=j[1];return F+_.length},0);return(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[!!P&&(0,e.createComponentVNode)(2,b,{story:P,wanted:!0}),(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Icon,{name:"briefcase",mr:"0.5rem"}),(0,e.createTextVNode)("Job Openings")],4),buttons:(0,e.createComponentVNode)(2,o.Box,{mt:"0.25rem",color:"label",children:"Work for a better future at Nanotrasen"}),children:R>0?f.map(function(F){return Object.assign({},u[F],{id:F,jobs:O[F]})}).filter(function(F){return!!F&&F.jobs.length>0}).map(function(F){return(0,e.createComponentVNode)(2,o.Section,{className:(0,a.classes)(["Newscaster__jobCategory","Newscaster__jobCategory--"+F.id]),title:F.title,buttons:(0,e.createComponentVNode)(2,o.Box,{mt:"0.25rem",color:"label",children:F.fluff_text}),children:F.jobs.map(function(j){return(0,e.createComponentVNode)(2,o.Box,{class:(0,a.classes)(["Newscaster__jobOpening",!!j.is_command&&"Newscaster__jobOpening--command"]),children:["\u2022 ",j.title]},j.title)})},F.id)}):(0,e.createComponentVNode)(2,o.Box,{className:"Newscaster__emptyNotice",children:[(0,e.createComponentVNode)(2,o.Icon,{name:"times",size:"3"}),(0,e.createVNode)(1,"br"),"There are no openings at this time."]})}),(0,e.createComponentVNode)(2,o.Section,{height:"17%",children:["Interested in serving Nanotrasen?",(0,e.createVNode)(1,"br"),"Sign up for any of the above position now at the"," ",(0,e.createVNode)(1,"b",null,"Head of Personnel's Office!",16),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,o.Box,{as:"small",color:"label",children:"By signing up for a job at Nanotrasen, you agree to transfer your soul to the loyalty department of the omnipresent and helpful watcher of humanity."})]})]})},b=function(L,w){var A=(0,t.useBackend)(w),T=A.act,E=A.data,O=L.story,P=L.wanted,R=P===void 0?!1:P,F=(0,t.useLocalState)(w,"fullStories",[]),j=F[0],U=F[1],_=(0,t.useLocalState)(w,"censorMode",!1),K=_[0],Y=_[1];return(0,e.createComponentVNode)(2,o.Section,{className:(0,a.classes)(["Newscaster__story",R&&"Newscaster__story--wanted"]),title:(0,e.createFragment)([R&&(0,e.createComponentVNode)(2,o.Icon,{name:"exclamation-circle",mr:"0.5rem"}),O.censor_flags&2&&"[REDACTED]"||O.title||"News from "+O.author],0),buttons:(0,e.createComponentVNode)(2,o.Box,{mt:"0.25rem",children:(0,e.createComponentVNode)(2,o.Box,{color:"label",children:[!R&&K&&(0,e.createComponentVNode)(2,o.Box,{inline:!0,children:(0,e.createComponentVNode)(2,o.Button,{enabled:O.censor_flags&2,icon:O.censor_flags&2?"comment-slash":"comment",content:O.censor_flags&2?"Uncensor":"Censor",mr:"0.5rem",mt:"-0.25rem",onClick:function(){function G(){return T("censor_story",{uid:O.uid})}return G}()})}),(0,e.createComponentVNode)(2,o.Box,{inline:!0,children:[(0,e.createComponentVNode)(2,o.Icon,{name:"user"})," ",O.author," |\xA0",!R&&(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Icon,{name:"eye"}),(0,e.createTextVNode)(" "),O.view_count.toLocaleString(),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("|\xA0")],0),(0,e.createComponentVNode)(2,o.Icon,{name:"clock"})," ",(0,s.timeAgo)(O.publish_time,E.world_time)]})]})}),children:(0,e.createComponentVNode)(2,o.Box,{children:O.censor_flags&2?"[REDACTED]":(0,e.createFragment)([!!O.has_photo&&(0,e.createComponentVNode)(2,C,{name:"story_photo_"+O.uid+".png",float:"right",ml:"0.5rem"}),(O.body_short||O.body).split("\n").map(function(G,ne){return(0,e.createComponentVNode)(2,o.Box,{children:G||(0,e.createVNode)(1,"br")},ne)}),O.body_short&&(0,e.createComponentVNode)(2,o.Button,{content:"Read more..",mt:"0.5rem",onClick:function(){function G(){return U([].concat(j,[O.uid]))}return G}()}),(0,e.createComponentVNode)(2,o.Box,{clear:"right"})],0)})})},C=function(L,w){var A=L.name,T=i(L,p),E=(0,t.useLocalState)(w,"viewingPhoto",""),O=E[0],P=E[1];return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Box,Object.assign({as:"img",className:"Newscaster__photo",src:A,onClick:function(){function R(){return P(A)}return R}()},T)))},h=function(L,w){var A=(0,t.useLocalState)(w,"viewingPhoto",""),T=A[0],E=A[1];return(0,e.createComponentVNode)(2,o.Modal,{className:"Newscaster__photoZoom",children:[(0,e.createComponentVNode)(2,o.Box,{as:"img",src:T}),(0,e.createComponentVNode)(2,o.Button,{icon:"times",content:"Close",color:"grey",mt:"1rem",onClick:function(){function O(){return E("")}return O}()})]})},g=function(L,w){var A=(0,t.useBackend)(w),T=A.act,E=A.data,O=!!L.args.uid&&E.channels.filter(function(q){return q.uid===L.args.uid}).pop();if(L.id==="manage_channel"&&!O){(0,V.modalClose)(w);return}var P=L.id==="manage_channel",R=!!L.args.is_admin,F=L.args.scanned_user,j=(0,t.useLocalState)(w,"author",(O==null?void 0:O.author)||F||"Unknown"),U=j[0],_=j[1],K=(0,t.useLocalState)(w,"name",(O==null?void 0:O.name)||""),Y=K[0],G=K[1],ne=(0,t.useLocalState)(w,"description",(O==null?void 0:O.description)||""),$=ne[0],se=ne[1],Ne=(0,t.useLocalState)(w,"icon",(O==null?void 0:O.icon)||"newspaper"),be=Ne[0],xe=Ne[1],Ie=(0,t.useLocalState)(w,"isPublic",P?!!(O!=null&&O.public):!1),Te=Ie[0],he=Ie[1],Q=(0,t.useLocalState)(w,"adminLocked",(O==null?void 0:O.admin)===1||!1),X=Q[0],te=Q[1];return(0,e.createComponentVNode)(2,o.Section,{m:"-1rem",pb:"1.5rem",title:P?"Manage "+O.name:"Create New Channel",children:[(0,e.createComponentVNode)(2,o.Box,{mx:"0.5rem",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Owner",children:(0,e.createComponentVNode)(2,o.Input,{disabled:!R,width:"100%",value:U,onInput:function(){function q(ce,Ve){return _(Ve)}return q}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Name",children:(0,e.createComponentVNode)(2,o.Input,{width:"100%",placeholder:"50 characters max.",maxLength:"50",value:Y,onInput:function(){function q(ce,Ve){return G(Ve)}return q}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Description (optional)",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Input,{multiline:!0,width:"100%",placeholder:"128 characters max.",maxLength:"128",value:$,onInput:function(){function q(ce,Ve){return se(Ve)}return q}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Icon",children:[(0,e.createComponentVNode)(2,o.Input,{disabled:!R,value:be,width:"35%",mr:"0.5rem",onInput:function(){function q(ce,Ve){return xe(Ve)}return q}()}),(0,e.createComponentVNode)(2,o.Icon,{name:be,size:"2",verticalAlign:"middle",mr:"0.5rem"})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Accept Public Stories?",children:(0,e.createComponentVNode)(2,o.Button,{selected:Te,icon:Te?"toggle-on":"toggle-off",content:Te?"Yes":"No",onClick:function(){function q(){return he(!Te)}return q}()})}),R&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"CentComm Lock",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Button,{selected:X,icon:X?"lock":"lock-open",content:X?"On":"Off",tooltip:"Locking this channel will make it editable by nobody but CentComm officers.",tooltipPosition:"top",onClick:function(){function q(){return te(!X)}return q}()})})]})}),(0,e.createComponentVNode)(2,o.Button.Confirm,{disabled:U.trim().length===0||Y.trim().length===0,icon:"check",color:"good",content:"Submit",position:"absolute",right:"1rem",bottom:"-0.75rem",onClick:function(){function q(){(0,V.modalAnswer)(w,L.id,"",{author:U,name:Y.substr(0,49),description:$.substr(0,128),icon:be,public:Te?1:0,admin_locked:X?1:0})}return q}()})]})},N=function(L,w){var A=(0,t.useBackend)(w),T=A.act,E=A.data,O=E.photo,P=E.channels,R=E.channel_idx,F=R===void 0?-1:R,j=!!L.args.is_admin,U=L.args.scanned_user,_=P.slice().sort(function(q,ce){if(F<0)return 0;var Ve=P[F-1];if(Ve.uid===q.uid)return-1;if(Ve.uid===ce.uid)return 1}).filter(function(q){return j||!q.frozen&&(q.author===U||!!q.public)}),K=(0,t.useLocalState)(w,"author",U||"Unknown"),Y=K[0],G=K[1],ne=(0,t.useLocalState)(w,"channel",_.length>0?_[0].name:""),$=ne[0],se=ne[1],Ne=(0,t.useLocalState)(w,"title",""),be=Ne[0],xe=Ne[1],Ie=(0,t.useLocalState)(w,"body",""),Te=Ie[0],he=Ie[1],Q=(0,t.useLocalState)(w,"adminLocked",!1),X=Q[0],te=Q[1];return(0,e.createComponentVNode)(2,o.Section,{m:"-1rem",pb:"1.5rem",title:"Create New Story",children:[(0,e.createComponentVNode)(2,o.Box,{mx:"0.5rem",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Author",children:(0,e.createComponentVNode)(2,o.Input,{disabled:!j,width:"100%",value:Y,onInput:function(){function q(ce,Ve){return G(Ve)}return q}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Channel",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Dropdown,{selected:$,options:_.map(function(q){return q.name}),mb:"0",width:"100%",onSelected:function(){function q(ce){return se(ce)}return q}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Divider),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Title",children:(0,e.createComponentVNode)(2,o.Input,{width:"100%",placeholder:"128 characters max.",maxLength:"128",value:be,onInput:function(){function q(ce,Ve){return xe(Ve)}return q}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Story Text",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Input,{fluid:!0,multiline:!0,placeholder:"1024 characters max.",maxLength:"1024",rows:"8",width:"100%",value:Te,onInput:function(){function q(ce,Ve){return he(Ve)}return q}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Photo (optional)",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Button,{icon:"image",selected:O,content:O?"Eject: "+O.name:"Insert Photo",tooltip:!O&&"Attach a photo to this story by holding the photograph in your hand.",onClick:function(){function q(){return T(O?"eject_photo":"attach_photo")}return q}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Preview",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Section,{noTopPadding:!0,title:be,maxHeight:"13.5rem",overflow:"auto",children:(0,e.createComponentVNode)(2,o.Box,{mt:"0.5rem",children:[!!O&&(0,e.createComponentVNode)(2,C,{name:"inserted_photo_"+O.uid+".png",float:"right"}),Te.split("\n").map(function(q,ce){return(0,e.createComponentVNode)(2,o.Box,{children:q||(0,e.createVNode)(1,"br")},ce)}),(0,e.createComponentVNode)(2,o.Box,{clear:"right"})]})})}),j&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"CentComm Lock",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Button,{selected:X,icon:X?"lock":"lock-open",content:X?"On":"Off",tooltip:"Locking this story will make it censorable by nobody but CentComm officers.",tooltipPosition:"top",onClick:function(){function q(){return te(!X)}return q}()})})]})}),(0,e.createComponentVNode)(2,o.Button.Confirm,{disabled:Y.trim().length===0||$.trim().length===0||be.trim().length===0||Te.trim().length===0,icon:"check",color:"good",content:"Submit",position:"absolute",right:"1rem",bottom:"-0.75rem",onClick:function(){function q(){(0,V.modalAnswer)(w,"create_story","",{author:Y,channel:$,title:be.substr(0,127),body:Te.substr(0,1023),admin_locked:X?1:0})}return q}()})]})},x=function(L,w){var A=(0,t.useBackend)(w),T=A.act,E=A.data,O=E.photo,P=E.wanted,R=!!L.args.is_admin,F=L.args.scanned_user,j=(0,t.useLocalState)(w,"author",(P==null?void 0:P.author)||F||"Unknown"),U=j[0],_=j[1],K=(0,t.useLocalState)(w,"name",(P==null?void 0:P.title.substr(8))||""),Y=K[0],G=K[1],ne=(0,t.useLocalState)(w,"description",(P==null?void 0:P.body)||""),$=ne[0],se=ne[1],Ne=(0,t.useLocalState)(w,"adminLocked",(P==null?void 0:P.admin_locked)===1||!1),be=Ne[0],xe=Ne[1];return(0,e.createComponentVNode)(2,o.Section,{m:"-1rem",pb:"1.5rem",title:"Manage Wanted Notice",children:[(0,e.createComponentVNode)(2,o.Box,{mx:"0.5rem",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Authority",children:(0,e.createComponentVNode)(2,o.Input,{disabled:!R,width:"100%",value:U,onInput:function(){function Ie(Te,he){return _(he)}return Ie}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Name",children:(0,e.createComponentVNode)(2,o.Input,{width:"100%",value:Y,maxLength:"128",onInput:function(){function Ie(Te,he){return G(he)}return Ie}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Description",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Input,{multiline:!0,width:"100%",value:$,maxLength:"512",rows:"4",onInput:function(){function Ie(Te,he){return se(he)}return Ie}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Photo (optional)",verticalAlign:"top",children:[(0,e.createComponentVNode)(2,o.Button,{icon:"image",selected:O,content:O?"Eject: "+O.name:"Insert Photo",tooltip:!O&&"Attach a photo to this wanted notice by holding the photograph in your hand.",tooltipPosition:"top",onClick:function(){function Ie(){return T(O?"eject_photo":"attach_photo")}return Ie}()}),!!O&&(0,e.createComponentVNode)(2,C,{name:"inserted_photo_"+O.uid+".png",float:"right"})]}),R&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"CentComm Lock",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Button,{selected:be,icon:be?"lock":"lock-open",content:be?"On":"Off",tooltip:"Locking this wanted notice will make it editable by nobody but CentComm officers.",tooltipPosition:"top",onClick:function(){function Ie(){return xe(!be)}return Ie}()})})]})}),(0,e.createComponentVNode)(2,o.Button.Confirm,{disabled:!P,icon:"eraser",color:"danger",content:"Clear",position:"absolute",right:"7.25rem",bottom:"-0.75rem",onClick:function(){function Ie(){T("clear_wanted_notice"),(0,V.modalClose)(w)}return Ie}()}),(0,e.createComponentVNode)(2,o.Button.Confirm,{disabled:U.trim().length===0||Y.trim().length===0||$.trim().length===0,icon:"check",color:"good",content:"Submit",position:"absolute",right:"1rem",bottom:"-0.75rem",onClick:function(){function Ie(){(0,V.modalAnswer)(w,L.id,"",{author:U,name:Y.substr(0,127),description:$.substr(0,511),admin_locked:be?1:0})}return Ie}()})]})};(0,V.modalRegisterBodyOverride)("create_channel",g),(0,V.modalRegisterBodyOverride)("manage_channel",g),(0,V.modalRegisterBodyOverride)("create_story",N),(0,V.modalRegisterBodyOverride)("wanted_notice",x)},65765:function(I,r,n){"use strict";r.__esModule=!0,r.NinjaBloodScan=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(18963),s=n(45493),y=r.NinjaBloodScan=function(){function S(p,i){var l=(0,a.useBackend)(i),f=l.act,u=l.data;return(0,e.createComponentVNode)(2,s.Window,{width:500,height:400,theme:"spider_clan",children:(0,e.createComponentVNode)(2,s.Window.Content,{className:"Layout__content--flexColumn",children:[(0,e.createComponentVNode)(2,V),(0,e.createComponentVNode)(2,k)]})})}return S}(),V=function(p,i){var l=(0,a.useBackend)(i),f=l.act,u=l.data,d=u.vialIcons,m=u.noVialIcon,c=u.bloodOwnerNames,v=u.bloodOwnerSpecies,b=u.bloodOwnerTypes,C=u.blockButtons,h=u.scanStates,g={blue:"Button_blue",green:"Button_green",red:"Button_red",disabled:"Button_disabled"},N=["NoticeBox_red","NoticeBox","NoticeBox_blue"],x=[1,2,3];return(0,e.createComponentVNode)(2,t.Flex,{direction:"column",shrink:1,alignContent:"center",children:(0,e.createComponentVNode)(2,t.Section,{title:"\u041E\u0431\u0440\u0430\u0437\u0446\u044B",backgroundColor:"rgba(0, 0, 0, 0.4)",buttons:(0,e.createComponentVNode)(2,t.Button,{content:"?",tooltip:"\u0414\u043E\u0431\u0430\u0432\u044C\u0442\u0435 \u0442\u0440\u0438 \u043E\u0431\u0440\u0430\u0437\u0446\u0430 \u043A\u0440\u043E\u0432\u0438. \u041C\u0430\u0448\u0438\u043D\u0430 \u043D\u0430\u0441\u0442\u0440\u043E\u0435\u043D\u0430 \u043D\u0430 \u0440\u0430\u0431\u043E\u0442\u0443 \u0441 \u043A\u0440\u043E\u0432\u044C\u044E \u0441\u0443\u0449\u0435\u0441\u0442\u0432 \u0438 \u0443\u0441\u043B\u043E\u0432\u0438\u044F\u043C\u0438 \u043A\u043E\u0442\u043E\u0440\u044B\u0435 \u043F\u043E\u0441\u0442\u0430\u0432\u0438\u043B \u0432\u0430\u043C \u043A\u043B\u0430\u043D. \u0420\u0435\u0430\u0433\u0435\u043D\u0442\u044B \u0438\u043C \u043D\u0435 \u0441\u043E\u043E\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044E\u0449\u0438\u0435 \u043D\u0435 \u043F\u0440\u0438\u043C\u0443\u0442\u0441\u044F \u0438\u043B\u0438 \u0441\u043A\u0430\u043D\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u0435 \u043D\u0435 \u0431\u0443\u0434\u0435\u0442 \u0443\u0441\u043F\u0435\u0448\u043D\u044B\u043C",tooltipPosition:"bottom-start"}),children:[(0,e.createComponentVNode)(2,t.Flex,{direction:"row",shrink:1,alignContent:"center",children:x.map(function(B,L){return(0,e.createComponentVNode)(2,o.FlexItem,{direction:"column",width:"33.3%",ml:L?2:0,children:[(0,e.createComponentVNode)(2,t.Section,{title:c[L]?"\u041A\u0440\u043E\u0432\u044C":"\u041D\u0435\u0442 \u0440\u0435\u0430\u0433\u0435\u043D\u0442\u0430",style:{"text-align":"left",background:"rgba(53, 94, 163, 0.5)"}}),(0,e.createComponentVNode)(2,t.NoticeBox,{className:N[h[L]],success:0,danger:0,align:"center",children:(0,e.createComponentVNode)(2,t.Button,{className:C?g.disabled:g.blue,height:"100%",width:"100%",disabled:C,onClick:function(){function w(){return f("vial_out",{button_num:L+1})}return w}(),children:[(0,e.createVNode)(1,"img",null,null,1,{height:"128px",width:"128px",src:"data:image/jpeg;base64,"+(d[L]||m),style:{"margin-left":"3px","-ms-interpolation-mode":"nearest-neighbor"}}),(0,e.createComponentVNode)(2,t.Tooltip,{title:c[L]||" - ",content:"\u0420\u0430\u0441\u0430: "+(v[L]||" - ")+"\n"+("\u0422\u0438\u043F \u043A\u0440\u043E\u0432\u0438: "+(b[L]||" - ")),position:"bottom"})]})})]},L)})}),(0,e.createComponentVNode)(2,t.NoticeBox,{className:"NoticeBox_red",success:0,danger:0,align:"center",children:(0,e.createComponentVNode)(2,t.Button,{className:C===0?"":"Button_disabled",content:"\u041D\u0430\u0447\u0430\u0442\u044C \u0441\u043A\u0430\u043D\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u0435",width:"250px",textAlign:"center",disabled:C,tooltip:"\u0421\u043A\u0430\u043D\u0438\u0440\u0443\u0435\u0442 \u043A\u0440\u043E\u0432\u044C \u0438 \u043F\u0435\u0440\u0435\u0441\u044B\u043B\u0430\u0435\u0442 \u043F\u043E\u043B\u0443\u0447\u0435\u043D\u043D\u0443\u044E \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u044E \u043A\u043B\u0430\u043D\u0443.",tooltipPosition:"bottom",onClick:function(){function B(){return f("scan_blood")}return B}()})})]})})},k=function(p,i){var l=(0,a.useBackend)(i),f=l.data,u=f.progressBar;return(0,e.createComponentVNode)(2,t.Section,{stretchContents:!0,children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:"green",value:u,minValue:0,maxValue:100,children:(0,e.createVNode)(1,"center",null,(0,e.createComponentVNode)(2,t.NoticeBox,{className:"NoticeBox_green",mt:1,children:u?"\u0417\u0430\u0433\u0440\u0443\u0437\u043A\u0430 "+(u+"%"):"\u0420\u0435\u0436\u0438\u043C \u043E\u0436\u0438\u0434\u0430\u043D\u0438\u044F"}),2)})})}},61095:function(I,r,n){"use strict";r.__esModule=!0,r.NinjaMindScan=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),s=r.NinjaMindScan=function(){function V(k,S){var p=(0,a.useBackend)(S),i=p.act,l=p.data;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:400,theme:"spider_clan",children:(0,e.createComponentVNode)(2,o.Window.Content,{className:"Layout__content--flexColumn",children:(0,e.createComponentVNode)(2,y)})})}return V}(),y=function(k,S){var p=(0,a.useBackend)(S),i=p.act,l=p.data,f=l.occupantIcon,u=l.occupant_name,d=l.occupant_health,m=l.scanned_occupants,c=u==="none"?1:0;return(0,e.createComponentVNode)(2,t.Flex,{direction:"column",shrink:1,alignContent:"left",children:[(0,e.createComponentVNode)(2,t.Section,{title:"\u041F\u0430\u0446\u0438\u0435\u043D\u0442",backgroundColor:"rgba(0, 0, 0, 0.4)",buttons:(0,e.createComponentVNode)(2,t.Button,{content:"?",tooltip:"\u041E\u0442\u043E\u0431\u0440\u0430\u0436\u0435\u043D\u0438\u0435 \u0432\u043D\u0435\u0448\u043D\u0435\u0433\u043E \u0432\u0438\u0434\u0430 \u0438 \u0441\u043E\u0441\u0442\u043E\u044F\u043D\u0438\u044F \u043F\u0430\u0446\u0438\u0435\u043D\u0442\u0430 \u0432 \u0443\u0441\u0442\u0440\u043E\u0439\u0441\u0442\u0432\u0435.",tooltipPosition:"left"}),children:(0,e.createComponentVNode)(2,t.Flex,{direction:"row",shrink:1,alignContent:"left",children:[(0,e.createComponentVNode)(2,t.Flex.Item,{shrink:1,alignContent:"left",children:(0,e.createComponentVNode)(2,t.NoticeBox,{className:"NoticeBox_blue",success:0,danger:0,width:"90px",align:"left",children:(0,e.createComponentVNode)(2,t.Section,{style:{background:"rgba(4, 74, 27, 0.75)"},align:"left",children:(0,e.createVNode)(1,"img",null,null,1,{height:"128px",width:"128px",src:"data:image/jpeg;base64,"+f,style:{"margin-left":"-28px","-ms-interpolation-mode":"nearest-neighbor"}})})})}),(0,e.createComponentVNode)(2,t.Flex.Item,{grow:1,alignContent:"right",children:[(0,e.createComponentVNode)(2,t.NoticeBox,{className:"NoticeBox_green",success:0,danger:0,align:"left",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0418\u043C\u044F",children:u}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0417\u0434\u043E\u0440\u043E\u0432\u044C\u0435",children:d})]})}),(0,e.createComponentVNode)(2,t.NoticeBox,{className:"NoticeBox_red",mt:2.5,success:0,danger:0,align:"center",children:[(0,e.createComponentVNode)(2,t.Button,{className:c===0?"":"Button_disabled",content:"\u041D\u0430\u0447\u0430\u0442\u044C \u0441\u043A\u0430\u043D\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u0435",width:"250px",textAlign:"center",disabled:c,tooltip:"\u0421\u043A\u0430\u043D\u0438\u0440\u0443\u0435\u0442 \u043F\u0430\u0446\u0438\u0435\u043D\u0442\u0430 \u0438 \u043F\u044B\u0442\u0430\u0435\u0442\u0441\u044F \u0434\u043E\u0431\u044B\u0442\u044C \u0438\u0437 \u0435\u0433\u043E \u0440\u0430\u0437\u0443\u043C\u0430 \u043D\u0435\u043E\u0431\u0445\u043E\u0434\u0438\u043C\u0443\u044E \u043A\u043B\u0430\u043D\u0443 \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u044E.",tooltipPosition:"bottom-start",onClick:function(){function v(){return i("scan_occupant")}return v}()}),(0,e.createComponentVNode)(2,t.Button,{className:c===0?"":"Button_disabled",content:"\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u0443\u0441\u0442\u0440\u043E\u0439\u0441\u0442\u0432\u043E",width:"250px",textAlign:"center",disabled:c,tooltip:"\u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442 \u0443\u0441\u0442\u0440\u043E\u0439\u0441\u0442\u0432\u043E, \u0432\u044B\u043F\u0443\u0441\u043A\u0430\u044F \u043F\u0430\u0446\u0438\u0435\u043D\u0442\u0430 \u0438\u0437 \u043A\u0430\u043F\u0441\u0443\u043B\u044B",tooltipPosition:"bottom-start",onClick:function(){function v(){return i("go_out")}return v}()}),(0,e.createComponentVNode)(2,t.Button,{className:c===0?"":"Button_disabled",content:"\u0422\u0435\u043B\u0435\u043F\u043E\u0440\u0442\u0430\u0446\u0438\u044F \u043F\u0430\u0446\u0438\u0435\u043D\u0442\u0430",width:"250px",textAlign:"center",disabled:c,tooltip:"\u0422\u0435\u043B\u0435\u043F\u043E\u0440\u0442\u0438\u0440\u0443\u0435\u0442 \u043F\u0430\u0446\u0438\u0435\u043D\u0442\u0430 \u043E\u0431\u0440\u0430\u0442\u043D\u043E \u043D\u0430 \u043E\u0431\u044C\u0435\u043A\u0442 \u0441 \u043A\u043E\u0442\u043E\u0440\u043E\u0433\u043E \u043E\u043D \u0431\u044B\u043B \u043F\u043E\u0445\u0438\u0449\u0435\u043D. \u0420\u0435\u043A\u043E\u043C\u0435\u043D\u0434\u0443\u0435\u043C \u043A\u0430\u043A \u0441\u043B\u0435\u0434\u0443\u0435\u0442 \u0435\u0433\u043E \u0437\u0430\u043F\u0443\u0433\u0430\u0442\u044C \u043F\u0435\u0440\u0435\u0434 \u044D\u0442\u0438\u043C, \u0447\u0442\u043E\u0431\u044B \u043E\u043D \u043D\u0435 \u0440\u0430\u0437\u0431\u043E\u043B\u0442\u0430\u043B \u043E \u0432\u0430\u0441.",tooltipPosition:"bottom-start",onClick:function(){function v(){return i("teleport_out")}return v}()})]})]})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"\u0421\u043F\u0438\u0441\u043E\u043A \u0443\u0436\u0435 \u043F\u0440\u043E\u0441\u043A\u0430\u043D\u0438\u0440\u043E\u0432\u0430\u043D\u043D\u044B\u0445 \u0432\u0430\u043C\u0438 \u043B\u044E\u0434\u0435\u0439",align:"center",backgroundColor:"rgba(0, 0, 0, 0.4)",children:(0,e.createComponentVNode)(2,t.Box,{maxHeight:15,overflowY:"auto",overflowX:"hidden",children:(0,e.createComponentVNode)(2,t.Table,{m:"0.5rem",children:m.map(function(v){return(0,e.createComponentVNode)(2,t.Table.Row,{children:(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Box,{children:v.scanned_occupant})})},v.scanned_occupant)})})})})]})}},46940:function(I,r,n){"use strict";r.__esModule=!0,r.NuclearBomb=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),s=r.NuclearBomb=function(){function y(V,k){var S=(0,a.useBackend)(k),p=S.act,i=S.data;return i.extended?(0,e.createComponentVNode)(2,o.Window,{width:450,height:300,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Authorization",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Auth Disk",children:(0,e.createComponentVNode)(2,t.Button,{icon:i.authdisk?"eject":"id-card",selected:i.authdisk,content:i.diskname?i.diskname:"-----",tooltip:i.authdisk?"Eject Disk":"Insert Disk",onClick:function(){function l(){return p("auth")}return l}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Auth Code",children:(0,e.createComponentVNode)(2,t.Button,{icon:"key",disabled:!i.authdisk,selected:i.authcode,content:i.codemsg,onClick:function(){function l(){return p("code")}return l}()})})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Arming & Disarming",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Bolted to floor",children:(0,e.createComponentVNode)(2,t.Button,{icon:i.anchored?"check":"times",selected:i.anchored,disabled:!i.authfull,content:i.anchored?"YES":"NO",onClick:function(){function l(){return p("toggle_anchor")}return l}()})}),i.authfull&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Time Left",children:(0,e.createComponentVNode)(2,t.Button,{icon:"stopwatch",content:i.time,disabled:!i.authfull,tooltip:"Set Timer",onClick:function(){function l(){return p("set_time")}return l}()})})||(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Time Left",color:i.timer?"red":"",children:i.time+"s"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Safety",children:(0,e.createComponentVNode)(2,t.Button,{icon:i.safety?"check":"times",selected:i.safety,disabled:!i.authfull,content:i.safety?"ON":"OFF",tooltip:i.safety?"Disable Safety":"Enable Safety",onClick:function(){function l(){return p("toggle_safety")}return l}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Arm/Disarm",children:(0,e.createComponentVNode)(2,t.Button,{icon:(i.timer,"bomb"),disabled:i.safety||!i.authfull,color:"red",content:i.timer?"DISARM THE NUKE":"ARM THE NUKE",onClick:function(){function l(){return p("toggle_armed")}return l}()})})]})})]})}):(0,e.createComponentVNode)(2,o.Window,{width:450,height:300,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Deployment",children:(0,e.createComponentVNode)(2,t.Button,{icon:"exclamation-triangle",content:"Deploy Nuclear Device (will bolt device to floor)",onClick:function(){function l(){return p("deploy")}return l}()})})})})}return y}()},35478:function(I,r,n){"use strict";r.__esModule=!0,r.NumberInputModal=void 0;var e=n(96524),a=n(14299),t=n(15113),o=n(68100),s=n(17899),y=n(24674),V=n(45493),k=r.NumberInputModal=function(){function p(i,l){var f=(0,s.useBackend)(l),u=f.act,d=f.data,m=d.init_value,c=d.large_buttons,v=d.message,b=v===void 0?"":v,C=d.timeout,h=d.title,g=(0,s.useLocalState)(l,"input",m),N=g[0],x=g[1],B=function(){function A(T){T!==N&&x(T)}return A}(),L=function(){function A(T){T!==N&&x(T)}return A}(),w=140+Math.max(Math.ceil(b.length/3),b.length>0&&c?5:0);return(0,e.createComponentVNode)(2,V.Window,{title:h,width:270,height:w,children:[C&&(0,e.createComponentVNode)(2,a.Loader,{value:C}),(0,e.createComponentVNode)(2,V.Window.Content,{onKeyDown:function(){function A(T){var E=window.event?T.which:T.keyCode;E===o.KEY_ENTER&&u("submit",{entry:N}),E===o.KEY_ESCAPE&&u("cancel")}return A}(),children:(0,e.createComponentVNode)(2,y.Section,{fill:!0,children:(0,e.createComponentVNode)(2,y.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,y.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,y.Box,{color:"label",children:b})}),(0,e.createComponentVNode)(2,y.Stack.Item,{children:(0,e.createComponentVNode)(2,S,{input:N,onClick:L,onChange:B})}),(0,e.createComponentVNode)(2,y.Stack.Item,{children:(0,e.createComponentVNode)(2,t.InputButtons,{input:N})})]})})})]})}return p}(),S=function(i,l){var f=(0,s.useBackend)(l),u=f.act,d=f.data,m=d.min_value,c=d.max_value,v=d.init_value,b=d.round_value,C=i.input,h=i.onClick,g=i.onChange,N=Math.round(C!==m?Math.max(C/2,m):c/2),x=C===m&&m>0||C===1;return(0,e.createComponentVNode)(2,y.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,y.Stack.Item,{children:(0,e.createComponentVNode)(2,y.Button,{disabled:C===m,icon:"angle-double-left",onClick:function(){function B(){return h(m)}return B}(),tooltip:C===m?"Min":"Min ("+m+")"})}),(0,e.createComponentVNode)(2,y.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,y.RestrictedInput,{autoFocus:!0,autoSelect:!0,fluid:!0,allowFloats:!b,minValue:m,maxValue:c,onChange:function(){function B(L,w){return g(w)}return B}(),onEnter:function(){function B(L,w){return u("submit",{entry:w})}return B}(),value:C})}),(0,e.createComponentVNode)(2,y.Stack.Item,{children:(0,e.createComponentVNode)(2,y.Button,{disabled:C===c,icon:"angle-double-right",onClick:function(){function B(){return h(c)}return B}(),tooltip:C===c?"Max":"Max ("+c+")"})}),(0,e.createComponentVNode)(2,y.Stack.Item,{children:(0,e.createComponentVNode)(2,y.Button,{disabled:x,icon:"divide",onClick:function(){function B(){return h(N)}return B}(),tooltip:x?"Split":"Split ("+N+")"})}),(0,e.createComponentVNode)(2,y.Stack.Item,{children:(0,e.createComponentVNode)(2,y.Button,{disabled:C===v,icon:"redo",onClick:function(){function B(){return h(v)}return B}(),tooltip:v?"Reset ("+v+")":"Reset"})})]})}},98476:function(I,r,n){"use strict";r.__esModule=!0,r.OperatingComputer=void 0;var e=n(96524),a=n(36121),t=n(17899),o=n(45493),s=n(24674),y=[["good","Conscious"],["average","Unconscious"],["bad","DEAD"]],V=[["Resp.","oxyLoss"],["Toxin","toxLoss"],["Brute","bruteLoss"],["Burn","fireLoss"]],k={average:[.25,.5],bad:[.5,1/0]},S=["bad","average","average","good","average","average","bad"],p=r.OperatingComputer=function(){function u(d,m){var c=(0,t.useBackend)(m),v=c.act,b=c.data,C=b.hasOccupant,h=b.choice,g;return h?g=(0,e.createComponentVNode)(2,f):g=C?(0,e.createComponentVNode)(2,i):(0,e.createComponentVNode)(2,l),(0,e.createComponentVNode)(2,o.Window,{width:650,height:455,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,s.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,s.Stack.Item,{children:(0,e.createComponentVNode)(2,s.Tabs,{children:[(0,e.createComponentVNode)(2,s.Tabs.Tab,{selected:!h,icon:"user",onClick:function(){function N(){return v("choiceOff")}return N}(),children:"Patient"}),(0,e.createComponentVNode)(2,s.Tabs.Tab,{selected:!!h,icon:"cog",onClick:function(){function N(){return v("choiceOn")}return N}(),children:"Options"})]})}),(0,e.createComponentVNode)(2,s.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,s.Section,{fill:!0,scrollable:!0,children:g})})]})})})}return u}(),i=function(d,m){var c=(0,t.useBackend)(m),v=c.data,b=v.occupant;return(0,e.createComponentVNode)(2,s.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,s.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,s.Section,{fill:!0,title:"Patient",children:(0,e.createComponentVNode)(2,s.LabeledList,{children:[(0,e.createComponentVNode)(2,s.LabeledList.Item,{label:"Name",children:b.name}),(0,e.createComponentVNode)(2,s.LabeledList.Item,{label:"Status",color:y[b.stat][0],children:y[b.stat][1]}),(0,e.createComponentVNode)(2,s.LabeledList.Item,{label:"Health",children:(0,e.createComponentVNode)(2,s.ProgressBar,{min:"0",max:b.maxHealth,value:b.health/b.maxHealth,ranges:{good:[.5,1/0],average:[0,.5],bad:[-1/0,0]}})}),V.map(function(C,h){return(0,e.createComponentVNode)(2,s.LabeledList.Item,{label:C[0]+" Damage",children:(0,e.createComponentVNode)(2,s.ProgressBar,{min:"0",max:"100",value:b[C[1]]/100,ranges:k,children:(0,a.round)(b[C[1]])},h)},h)}),(0,e.createComponentVNode)(2,s.LabeledList.Item,{label:"Temperature",children:(0,e.createComponentVNode)(2,s.ProgressBar,{min:"0",max:b.maxTemp,value:b.bodyTemperature/b.maxTemp,color:S[b.temperatureSuitability+3],children:[(0,a.round)(b.btCelsius),"\xB0C, ",(0,a.round)(b.btFaren),"\xB0F"]})}),!!b.hasBlood&&(0,e.createFragment)([(0,e.createComponentVNode)(2,s.LabeledList.Item,{label:"Blood Level",children:(0,e.createComponentVNode)(2,s.ProgressBar,{min:"0",max:b.bloodMax,value:b.bloodLevel/b.bloodMax,ranges:{bad:[-1/0,.6],average:[.6,.9],good:[.6,1/0]},children:[b.bloodPercent,"%, ",b.bloodLevel,"cl"]})}),(0,e.createComponentVNode)(2,s.LabeledList.Item,{label:"Pulse",children:[b.pulse," BPM"]})],4)]})})}),(0,e.createComponentVNode)(2,s.Stack.Item,{children:(0,e.createComponentVNode)(2,s.Section,{title:"Current Procedures",level:"2",children:b.inSurgery?b.surgeries.map(function(C){var h=C.bodypartName,g=C.surgeryName,N=C.stepName;return(0,e.createComponentVNode)(2,s.Section,{title:h,level:"4",children:(0,e.createComponentVNode)(2,s.LabeledList,{children:[(0,e.createComponentVNode)(2,s.LabeledList.Item,{label:"Procedure",children:g}),(0,e.createComponentVNode)(2,s.LabeledList.Item,{label:"Next Step",children:N})]})},h)}):(0,e.createComponentVNode)(2,s.Box,{color:"label",children:"No procedure ongoing."})})})]})},l=function(){return(0,e.createComponentVNode)(2,s.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,s.Stack.Item,{grow:!0,align:"center",textAlign:"center",color:"label",children:[(0,e.createComponentVNode)(2,s.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,e.createVNode)(1,"br"),"No patient detected."]})})},f=function(d,m){var c=(0,t.useBackend)(m),v=c.act,b=c.data,C=b.verbose,h=b.health,g=b.healthAlarm,N=b.oxy,x=b.oxyAlarm,B=b.crit;return(0,e.createComponentVNode)(2,s.LabeledList,{children:[(0,e.createComponentVNode)(2,s.LabeledList.Item,{label:"Loudspeaker",children:(0,e.createComponentVNode)(2,s.Button,{selected:C,icon:C?"toggle-on":"toggle-off",content:C?"On":"Off",onClick:function(){function L(){return v(C?"verboseOff":"verboseOn")}return L}()})}),(0,e.createComponentVNode)(2,s.LabeledList.Item,{label:"Health Announcer",children:(0,e.createComponentVNode)(2,s.Button,{selected:h,icon:h?"toggle-on":"toggle-off",content:h?"On":"Off",onClick:function(){function L(){return v(h?"healthOff":"healthOn")}return L}()})}),(0,e.createComponentVNode)(2,s.LabeledList.Item,{label:"Health Announcer Threshold",children:(0,e.createComponentVNode)(2,s.Knob,{bipolar:!0,minValue:-100,maxValue:100,value:g,stepPixelSize:5,ml:"0",onChange:function(){function L(w,A){return v("health_adj",{new:A})}return L}()})}),(0,e.createComponentVNode)(2,s.LabeledList.Item,{label:"Oxygen Alarm",children:(0,e.createComponentVNode)(2,s.Button,{selected:N,icon:N?"toggle-on":"toggle-off",content:N?"On":"Off",onClick:function(){function L(){return v(N?"oxyOff":"oxyOn")}return L}()})}),(0,e.createComponentVNode)(2,s.LabeledList.Item,{label:"Oxygen Alarm Threshold",children:(0,e.createComponentVNode)(2,s.Knob,{bipolar:!0,minValue:-100,maxValue:100,value:x,stepPixelSize:5,ml:"0",onChange:function(){function L(w,A){return v("oxy_adj",{new:A})}return L}()})}),(0,e.createComponentVNode)(2,s.LabeledList.Item,{label:"Critical Alert",children:(0,e.createComponentVNode)(2,s.Button,{selected:B,icon:B?"toggle-on":"toggle-off",content:B?"On":"Off",onClick:function(){function L(){return v(B?"critOff":"critOn")}return L}()})})]})}},98702:function(I,r,n){"use strict";r.__esModule=!0,r.Orbit=void 0;var e=n(96524),a=n(78234),t=n(17899),o=n(24674),s=n(45493);function y(m,c){var v=typeof Symbol!="undefined"&&m[Symbol.iterator]||m["@@iterator"];if(v)return(v=v.call(m)).next.bind(v);if(Array.isArray(m)||(v=V(m))||c&&m&&typeof m.length=="number"){v&&(m=v);var b=0;return function(){return b>=m.length?{done:!0}:{done:!1,value:m[b++]}}}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(m,c){if(m){if(typeof m=="string")return k(m,c);var v=Object.prototype.toString.call(m).slice(8,-1);if(v==="Object"&&m.constructor&&(v=m.constructor.name),v==="Map"||v==="Set")return Array.from(m);if(v==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(v))return k(m,c)}}function k(m,c){(c==null||c>m.length)&&(c=m.length);for(var v=0,b=new Array(c);vv},l=function(c,v){var b=c.name,C=v.name;if(!b||!C)return 0;var h=b.match(S),g=C.match(S);if(h&&g&&b.replace(S,"")===C.replace(S,"")){var N=parseInt(h[1],10),x=parseInt(g[1],10);return N-x}return i(b,C)},f=function(c,v){var b=(0,t.useBackend)(v),C=b.act,h=c.searchText,g=c.source,N=c.title,x=g.filter(p(h));return x.sort(l),g.length>0&&(0,e.createComponentVNode)(2,o.Section,{title:N+" - ("+g.length+")",children:x.map(function(B){return(0,e.createComponentVNode)(2,o.Button,{content:B.name,onClick:function(){function L(){return C("orbit",{ref:B.ref})}return L}()},B.name)})})},u=function(c,v){var b=(0,t.useBackend)(v),C=b.act,h=c.color,g=c.thing;return(0,e.createComponentVNode)(2,o.Button,{color:h,onClick:function(){function N(){return C("orbit",{ref:g.ref})}return N}(),children:g.name})},d=r.Orbit=function(){function m(c,v){for(var b=(0,t.useBackend)(v),C=b.act,h=b.data,g=h.alive,N=h.antagonists,x=h.highlights,B=h.auto_observe,L=h.dead,w=h.ghosts,A=h.misc,T=h.npcs,E=(0,t.useLocalState)(v,"searchText",""),O=E[0],P=E[1],R={},F=y(N),j;!(j=F()).done;){var U=j.value;R[U.antag]===void 0&&(R[U.antag]=[]),R[U.antag].push(U)}var _=Object.entries(R);_.sort(function(Y,G){return i(Y[0],G[0])});var K=function(){function Y(G){for(var ne=0,$=[_.map(function(be){var xe=be[0],Ie=be[1];return Ie}),x,g,w,L,T,A];ne<$.length;ne++){var se=$[ne],Ne=se.filter(p(G)).sort(l)[0];if(Ne!==void 0){C("orbit",{ref:Ne.ref});break}}}return Y}();return(0,e.createComponentVNode)(2,s.Window,{width:700,height:500,children:(0,e.createComponentVNode)(2,s.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,o.Section,{children:(0,e.createComponentVNode)(2,o.Flex,{children:[(0,e.createComponentVNode)(2,o.Flex.Item,{children:(0,e.createComponentVNode)(2,o.Icon,{name:"search",mr:1})}),(0,e.createComponentVNode)(2,o.Flex.Item,{grow:1,children:(0,e.createComponentVNode)(2,o.Input,{placeholder:"Search...",autoFocus:!0,fluid:!0,value:O,onInput:function(){function Y(G,ne){return P(ne)}return Y}(),onEnter:function(){function Y(G,ne){return K(ne)}return Y}()})}),(0,e.createComponentVNode)(2,o.Flex.Item,{children:(0,e.createComponentVNode)(2,o.Divider,{vertical:!0})}),(0,e.createComponentVNode)(2,o.Flex.Item,{children:(0,e.createComponentVNode)(2,o.Button,{inline:!0,color:"transparent",tooltip:"Refresh",tooltipPosition:"bottom-start",icon:"sync-alt",onClick:function(){function Y(){return C("refresh")}return Y}()})})]})}),N.length>0&&(0,e.createComponentVNode)(2,o.Section,{title:"Antagonists",children:_.map(function(Y){var G=Y[0],ne=Y[1];return(0,e.createComponentVNode)(2,o.Section,{title:G,level:2,children:ne.filter(p(O)).sort(l).map(function($){return(0,e.createComponentVNode)(2,u,{color:"bad",thing:$},$.name)})},G)})}),x.length>0&&(0,e.createComponentVNode)(2,f,{title:"Highlights",source:x,searchText:O,color:"teal"}),(0,e.createComponentVNode)(2,o.Section,{title:"Alive - ("+g.length+")",children:g.filter(p(O)).sort(l).map(function(Y){return(0,e.createComponentVNode)(2,u,{color:"good",thing:Y},Y.name)})}),(0,e.createComponentVNode)(2,o.Section,{title:"Ghosts - ("+w.length+")",children:w.filter(p(O)).sort(l).map(function(Y){return(0,e.createComponentVNode)(2,u,{color:"grey",thing:Y},Y.name)})}),(0,e.createComponentVNode)(2,f,{title:"Dead",source:L,searchText:O}),(0,e.createComponentVNode)(2,f,{title:"NPCs",source:T,searchText:O}),(0,e.createComponentVNode)(2,f,{title:"Misc",source:A,searchText:O})]})})}return m}()},74015:function(I,r,n){"use strict";r.__esModule=!0,r.OreRedemption=void 0;var e=n(96524),a=n(28234),t=n(17899),o=n(24674),s=n(45493),y=n(81856);function V(c){if(c==null)throw new TypeError("Cannot destructure "+c)}var k=(0,y.createLogger)("OreRedemption"),S=function(v){return v.toLocaleString("en-US")+" pts"},p=r.OreRedemption=function(){function c(v,b){return(0,e.createComponentVNode)(2,s.Window,{width:490,height:750,children:(0,e.createComponentVNode)(2,s.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,i,{height:"100%"})}),(0,e.createComponentVNode)(2,l),(0,e.createComponentVNode)(2,f)]})})})}return c}(),i=function(v,b){var C=(0,t.useBackend)(b),h=C.act,g=C.data,N=g.id,x=g.points,B=g.disk,L=Object.assign({},(V(v),v));return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Section,Object.assign({},L,{children:[(0,e.createComponentVNode)(2,o.Box,{color:"average",textAlign:"center",children:[(0,e.createComponentVNode)(2,o.Icon,{name:"exclamation-triangle",mr:"0.5rem"}),"This machine only accepts ore. Gibtonite is not accepted."]}),(0,e.createComponentVNode)(2,o.Divider),(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"ID card",children:N?(0,e.createComponentVNode)(2,o.Button,{selected:!0,bold:!0,verticalAlign:"middle",icon:"eject",content:N.name,tooltip:"Ejects the ID card.",onClick:function(){function w(){return h("eject_id")}return w}(),style:{"white-space":"pre-wrap"}}):(0,e.createComponentVNode)(2,o.Button,{icon:"sign-in-alt",content:"Insert",tooltip:"Hold the ID card in your hand to insert.",onClick:function(){function w(){return h("insert_id")}return w}()})}),N&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Current Mining Points",children:(0,e.createComponentVNode)(2,o.Box,{bold:!0,children:S(N.points)})}),N&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Total Mining Points",children:(0,e.createComponentVNode)(2,o.Box,{bold:!0,children:S(N.total_points)})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Unclaimed Points",color:x>0?"good":"grey",bold:x>0&&"good",children:S(x)}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{children:(0,e.createComponentVNode)(2,o.Button,{disabled:!N,icon:"hand-holding-usd",content:"Claim",onClick:function(){function w(){return h("claim")}return w}()})})]}),(0,e.createComponentVNode)(2,o.Divider),B?(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Design disk",children:(0,e.createComponentVNode)(2,o.Button,{selected:!0,bold:!0,icon:"eject",content:B.name,tooltip:"Ejects the design disk.",onClick:function(){function w(){return h("eject_disk")}return w}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Stored design",children:(0,e.createComponentVNode)(2,o.Box,{color:B.design&&(B.compatible?"good":"bad"),children:B.design||"N/A"})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{children:(0,e.createComponentVNode)(2,o.Button,{disabled:!B.design||!B.compatible,icon:"upload",content:"Download",tooltip:"Downloads the design on the disk into the machine.",onClick:function(){function w(){return h("download")}return w}()})})]}):(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"No design disk inserted."})]})))},l=function(v,b){var C=(0,t.useBackend)(b),h=C.act,g=C.data,N=g.sheets,x=Object.assign({},(V(v),v));return(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,height:"20%",children:(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Section,Object.assign({fill:!0,scrollable:!0,className:"OreRedemption__Ores",p:"0"},x,{children:[(0,e.createComponentVNode)(2,u,{title:"Sheets",columns:[["Available","25%"],["Ore Value","15%"],["Smelt","20%"]]}),N.map(function(B){return(0,e.createComponentVNode)(2,d,{ore:B},B.id)})]})))})},f=function(v,b){var C=(0,t.useBackend)(b),h=C.act,g=C.data,N=g.alloys,x=Object.assign({},(V(v),v));return(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Section,Object.assign({fill:!0,scrollable:!0,className:"OreRedemption__Ores",p:"0"},x,{children:[(0,e.createComponentVNode)(2,u,{title:"Alloys",columns:[["Recipe","50%"],["Available","11%"],["Smelt","20%"]]}),N.map(function(B){return(0,e.createComponentVNode)(2,m,{ore:B},B.id)})]})))})},u=function(v,b){var C;return(0,e.createComponentVNode)(2,o.Box,{className:"OreHeader",children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:v.title}),(C=v.columns)==null?void 0:C.map(function(h){return(0,e.createComponentVNode)(2,o.Stack.Item,{basis:h[1],textAlign:"center",color:"label",bold:!0,children:h[0]},h)})]})})},d=function(v,b){var C=(0,t.useBackend)(b),h=C.act,g=v.ore;if(!(g.value&&g.amount<=0&&!(["metal","glass"].indexOf(g.id)>-1)))return(0,e.createComponentVNode)(2,o.Box,{className:"SheetLine",children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"45%",align:"middle",children:(0,e.createComponentVNode)(2,o.Stack,{align:"center",children:[(0,e.createComponentVNode)(2,o.Stack.Item,{className:(0,a.classes)(["materials32x32",g.id])}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:g.name})]})}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"20%",textAlign:"center",color:g.amount>=1?"good":"gray",bold:g.amount>=1,align:"center",children:g.amount.toLocaleString("en-US")}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"20%",textAlign:"center",align:"center",children:g.value}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"20%",textAlign:"center",align:"center",lineHeight:"32px",children:(0,e.createComponentVNode)(2,o.NumberInput,{width:"40%",value:0,minValue:0,maxValue:Math.min(g.amount,50),stepPixelSize:6,onChange:function(){function N(x,B){return h(g.value?"sheet":"alloy",{id:g.id,amount:B})}return N}()})})]})})},m=function(v,b){var C=(0,t.useBackend)(b),h=C.act,g=v.ore;return(0,e.createComponentVNode)(2,o.Box,{className:"SheetLine",children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"7%",align:"middle",children:(0,e.createComponentVNode)(2,o.Box,{className:(0,a.classes)(["alloys32x32",g.id])})}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"30%",textAlign:"middle",align:"center",children:g.name}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"35%",textAlign:"middle",color:g.amount>=1?"good":"gray",align:"center",children:g.description}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"10%",textAlign:"center",color:g.amount>=1?"good":"gray",bold:g.amount>=1,align:"center",children:g.amount.toLocaleString("en-US")}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"20%",textAlign:"center",align:"center",lineHeight:"32px",children:(0,e.createComponentVNode)(2,o.NumberInput,{width:"40%",value:0,minValue:0,maxValue:Math.min(g.amount,50),stepPixelSize:6,onChange:function(){function N(x,B){return h(g.value?"sheet":"alloy",{id:g.id,amount:B})}return N}()})})]})})}},48824:function(I,r,n){"use strict";r.__esModule=!0,r.PAI=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),s=n(91807),y=n(70752),V=function(p){var i;try{i=y("./"+p+".js")}catch(f){if(f.code==="MODULE_NOT_FOUND")return(0,s.routingError)("notFound",p);throw f}var l=i[p];return l||(0,s.routingError)("missingExport",p)},k=r.PAI=function(){function S(p,i){var l=(0,a.useBackend)(i),f=l.act,u=l.data,d=u.app_template,m=u.app_icon,c=u.app_title,v=V(d);return(0,e.createComponentVNode)(2,o.Window,{width:600,height:650,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Icon,{name:m,mr:1}),c,d!=="pai_main_menu"&&(0,e.createComponentVNode)(2,t.Button,{ml:2,content:"Home",icon:"arrow-up",onClick:function(){function b(){return f("MASTER_back")}return b}()})]}),p:1,children:(0,e.createComponentVNode)(2,v)})})})}return S}()},41565:function(I,r,n){"use strict";r.__esModule=!0,r.PDA=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),s=n(91807),y=n(59395),V=function(l){var f;try{f=y("./"+l+".js")}catch(d){if(d.code==="MODULE_NOT_FOUND")return(0,s.routingError)("notFound",l);throw d}var u=f[l];return u||(0,s.routingError)("missingExport",l)},k=r.PDA=function(){function i(l,f){var u=(0,a.useBackend)(f),d=u.act,m=u.data,c=m.app,v=m.owner;if(!v)return(0,e.createComponentVNode)(2,o.Window,{width:350,height:105,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Error",children:"No user data found. Please swipe an ID card."})})});var b=V(c.template);return(0,e.createComponentVNode)(2,o.Window,{width:600,height:650,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,S)}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,p:1,pb:0,title:(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Icon,{name:c.icon,mr:1}),c.name]}),children:(0,e.createComponentVNode)(2,b)})}),(0,e.createComponentVNode)(2,t.Stack.Item,{mt:7.5,children:(0,e.createComponentVNode)(2,p)})]})})})}return i}(),S=function(l,f){var u=(0,a.useBackend)(f),d=u.act,m=u.data,c=m.idInserted,v=m.idLink,b=m.stationTime,C=m.cartridge_name;return(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{ml:.5,children:(0,e.createComponentVNode)(2,t.Button,{icon:"id-card",color:"transparent",onClick:function(){function h(){return d("Authenticate")}return h}(),content:c?v:"No ID Inserted"})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"sd-card",color:"transparent",onClick:function(){function h(){return d("Eject")}return h}(),content:C?["Eject "+C]:"No Cartridge Inserted"})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,textAlign:"right",bold:!0,mr:1,mt:.5,children:b})]})},p=function(l,f){var u=(0,a.useBackend)(f),d=u.act,m=u.data,c=m.app;return(0,e.createComponentVNode)(2,t.Box,{height:"45px",className:"PDA__footer",backgroundColor:"#1b1b1b",children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:[!!c.has_back&&(0,e.createComponentVNode)(2,t.Stack.Item,{basis:"33%",mr:-.5,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,className:"PDA__footer__button",color:"transparent",iconColor:c.has_back?"white":"disabled",icon:"arrow-alt-circle-left-o",onClick:function(){function v(){return d("Back")}return v}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{basis:c.has_back?"33%":"100%",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,className:"PDA__footer__button",color:"transparent",iconColor:c.is_home?"disabled":"white",icon:"home",onClick:function(){function v(){d("Home")}return v}()})})]})})}},10890:function(I,r,n){"use strict";r.__esModule=!0,r.PDAPainter=r.PDAColorRow=void 0;var e=n(96524),a=n(17899),t=n(45493),o=n(24674),s=r.PDAPainter=function(){function V(k,S){var p=(0,a.useBackend)(S),i=p.act,l=p.data,f=l.statusLabel,u=l.pdaTypes,d=l.hasPDA,m=l.pdaIcon,c=l.pdaOwnerName,v=l.pdaJobName;return(0,e.createComponentVNode)(2,t.Window,{width:545,height:350,children:(0,e.createComponentVNode)(2,t.Window.Content,{children:(0,e.createComponentVNode)(2,o.Flex,{spacing:1,direction:"row",height:"100%",flex:"1",children:[(0,e.createComponentVNode)(2,o.Flex.Item,{width:24,shrink:0,children:[(0,e.createComponentVNode)(2,o.Section,{title:"\u041E\u0431\u0449\u0435\u0435",buttons:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,icon:d?"eject":"exclamation-triangle",selected:d,content:d?"\u0418\u0437\u0432\u043B\u0435\u0447\u044C":"-----",tooltip:d?"\u0418\u0437\u0432\u043B\u0435\u0447\u044C PDA":"\u0412\u0441\u0442\u0430\u0432\u0438\u0442\u044C PDA",tooltipPosition:"left",onClick:function(){function b(){return i(d?"eject_pda":"insert_pda")}return b}()}),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"\u0418\u043C\u044F",children:c||"\u041D/\u0414"}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"\u0414\u043E\u043B\u0436\u043D\u043E\u0441\u0442\u044C",children:v||"\u041D/\u0414"})]})}),(0,e.createComponentVNode)(2,o.Section,{children:(0,e.createComponentVNode)(2,o.Flex,{height:"100%",direction:"column",flex:"1",children:(0,e.createComponentVNode)(2,o.Flex.Item,{children:[(0,e.createComponentVNode)(2,o.Box,{textAlign:"center",children:(0,e.createComponentVNode)(2,o.Box,{as:"img",height:"160px",src:d?"data:image/png;base64,"+m:"",style:{"-ms-interpolation-mode":"nearest-neighbor"},align:"middle"})}),(0,e.createComponentVNode)(2,o.LabeledList,{m:"5px",children:(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"\u0421\u0442\u0430\u0442\u0443\u0441",children:f})}),(0,e.createComponentVNode)(2,o.Button.Confirm,{m:"5px",fluid:!0,disabled:!d,content:"\u0421\u0442\u0435\u0440\u0435\u0442\u044C PDA",confirmContent:"\u041F\u043E\u0434\u0442\u0432\u0435\u0440\u0434\u0438\u0442\u044C?",textAlign:"left",color:"red",tooltip:"C\u0431\u0440\u043E\u0441\u0438\u0442\u044C \u0442\u0435\u043B\u0435\u0444\u043E\u043D \u043D\u0430 \u0437\u0430\u0432\u043E\u0434\u0441\u043A\u0438\u0435 \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438",tooltipPosition:"top",onClick:function(){function b(){return i("erase_pda")}return b}()})]})})})]}),(0,e.createComponentVNode)(2,o.Flex.Item,{width:27,children:(0,e.createComponentVNode)(2,o.Flex,{direction:"column",height:"100%",flex:"1",children:(0,e.createComponentVNode)(2,o.Section,{title:"\u0426\u0432\u0435\u0442 PDA",flexGrow:"1",scrollable:!0,fill:!0,children:(0,e.createComponentVNode)(2,o.Table,{children:Object.keys(u).map(function(b){return(0,e.createComponentVNode)(2,y,{selectedPda:b,selectedPdaImage:u[b][0]},b)})})})})})]})})})}return V}(),y=r.PDAColorRow=function(){function V(k,S){var p=(0,a.useBackend)(S),i=p.act,l=p.data,f=l.hasPDA,u=k.selectedPda,d=k.selectedPdaImage;return(0,e.createComponentVNode)(2,o.Table.Row,{children:[(0,e.createComponentVNode)(2,o.Table.Cell,{collapsing:!0,children:(0,e.createVNode)(1,"img",null,null,1,{src:"data:image/png;base64,"+d,style:{"vertical-align":"middle",width:"32px",margin:"0px","margin-left":"0px"}})}),(0,e.createComponentVNode)(2,o.Table.Cell,{bold:!0,children:(0,e.createComponentVNode)(2,o.Button.Confirm,{fluid:!0,disabled:!f,icon:d,content:u,confirmContent:"\u041F\u043E\u043A\u0440\u0430\u0441\u0438\u0442\u044C?",textAlign:"left",onClick:function(){function m(){return i("choose_pda",{selectedPda:u,selectedPdaImage:d})}return m}()})})]})}return V}()},78704:function(I,r,n){"use strict";r.__esModule=!0,r.Pacman=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),s=n(92986),y=r.Pacman=function(){function V(k,S){var p=(0,a.useBackend)(S),i=p.act,l=p.data,f=l.broken,u=l.anchored,d=l.active,m=l.fuel_type,c=l.fuel_usage,v=l.fuel_stored,b=l.fuel_cap,C=l.is_ai,h=l.tmp_current,g=l.tmp_max,N=l.tmp_overheat,x=l.output_max,B=l.power_gen,L=l.output_set,w=l.has_fuel,A=v/b,T=h/g,E=L*B,O=Math.round(v/c),P=Math.round(O/60),R=O>120?P+" minutes":O+" seconds";return(0,e.createComponentVNode)(2,o.Window,{width:500,height:260,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(f||!u)&&(0,e.createComponentVNode)(2,t.Section,{title:"Status",children:[!!f&&(0,e.createComponentVNode)(2,t.Box,{color:"orange",children:"The generator is malfunctioning!"}),!f&&!u&&(0,e.createComponentVNode)(2,t.Box,{color:"orange",children:"The generator needs to be anchored to the floor with a wrench."})]}),!f&&!!u&&(0,e.createVNode)(1,"div",null,[(0,e.createComponentVNode)(2,t.Section,{title:"Status",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:d?"power-off":"times",content:d?"On":"Off",tooltip:"Toggles the generator on/off. Requires fuel.",tooltipPosition:"left",disabled:!w,selected:d,onClick:function(){function F(){return i("toggle_power")}return F}()}),children:(0,e.createComponentVNode)(2,t.Flex,{direction:"row",children:[(0,e.createComponentVNode)(2,t.Flex.Item,{width:"50%",className:"ml-1",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power setting",children:[(0,e.createComponentVNode)(2,t.NumberInput,{value:L,minValue:1,maxValue:x,step:1,className:"mt-1",onDrag:function(){function F(j,U){return i("change_power",{change_power:U})}return F}()}),"(",(0,s.formatPower)(E),")"]})})}),(0,e.createComponentVNode)(2,t.Flex.Item,{width:"50%",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Temperature",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:T,ranges:{green:[-1/0,.33],orange:[.33,.66],red:[.66,1/0]},children:[h," \u2103"]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:[N>50&&(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"CRITICAL OVERHEAT!"}),N>20&&N<=50&&(0,e.createComponentVNode)(2,t.Box,{color:"orange",children:"WARNING: Overheating!"}),N>1&&N<=20&&(0,e.createComponentVNode)(2,t.Box,{color:"orange",children:"Temperature High"}),N===0&&(0,e.createComponentVNode)(2,t.Box,{color:"green",children:"Optimal"})]})]})})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Fuel",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"eject",content:"Eject Fuel",tooltip:"Ejects fuel. Generator needs to be offline.",tooltipPosition:"left",disabled:d||C||!w,onClick:function(){function F(){return i("eject_fuel")}return F}()}),children:(0,e.createComponentVNode)(2,t.Grid,{children:[(0,e.createComponentVNode)(2,t.Grid.Column,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Type",children:m}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Fuel level",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:A,ranges:{red:[-1/0,.33],orange:[.33,.66],green:[.66,1/0]},children:[Math.round(v/1e3)," dm\xB3"]})})]})}),(0,e.createComponentVNode)(2,t.Grid.Column,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Fuel usage",children:[c/1e3," dm\xB3/s"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Fuel depletion",children:[!!w&&(c?R:"N/A"),!w&&(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Out of fuel"})]})]})})]})})],4)]})})}return V}()},81378:function(I,r,n){"use strict";r.__esModule=!0,r.PersonalCrafting=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),s=r.PersonalCrafting=function(){function k(S,p){var i=(0,a.useBackend)(p),l=i.act,f=i.data,u=f.busy,d=f.category,m=f.display_craftable_only,c=f.display_compact,v=f.prev_cat,b=f.next_cat,C=f.subcategory,h=f.prev_subcat,g=f.next_subcat;return(0,e.createComponentVNode)(2,o.Window,{width:700,height:800,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[!!u&&(0,e.createComponentVNode)(2,t.Dimmer,{fontSize:"32px",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"cog",spin:1})," Crafting..."]}),(0,e.createComponentVNode)(2,t.Section,{title:d,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{content:"Show Craftable Only",icon:m?"check-square-o":"square-o",selected:m,onClick:function(){function N(){return l("toggle_recipes")}return N}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Compact Mode",icon:c?"check-square-o":"square-o",selected:c,onClick:function(){function N(){return l("toggle_compact")}return N}()})],4),children:[(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Button,{content:v,icon:"arrow-left",onClick:function(){function N(){return l("backwardCat")}return N}()}),(0,e.createComponentVNode)(2,t.Button,{content:b,icon:"arrow-right",onClick:function(){function N(){return l("forwardCat")}return N}()})]}),C&&(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Button,{content:h,icon:"arrow-left",onClick:function(){function N(){return l("backwardSubCat")}return N}()}),(0,e.createComponentVNode)(2,t.Button,{content:g,icon:"arrow-right",onClick:function(){function N(){return l("forwardSubCat")}return N}()})]}),c?(0,e.createComponentVNode)(2,y):(0,e.createComponentVNode)(2,V)]})]})})}return k}(),y=function(S,p){var i=(0,a.useBackend)(p),l=i.act,f=i.data,u=f.display_craftable_only,d=f.can_craft,m=f.cant_craft;return(0,e.createComponentVNode)(2,t.Box,{mt:1,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[d.map(function(c){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:c.name,children:[(0,e.createComponentVNode)(2,t.Button,{icon:"hammer",content:"Craft",onClick:function(){function v(){return l("make",{make:c.ref})}return v}()}),c.catalyst_text&&(0,e.createComponentVNode)(2,t.Button,{tooltip:c.catalyst_text,content:"Catalysts",color:"transparent"}),(0,e.createComponentVNode)(2,t.Button,{tooltip:c.req_text,content:"Requirements",color:"transparent"}),c.tool_text&&(0,e.createComponentVNode)(2,t.Button,{tooltip:c.tool_text,content:"Tools",color:"transparent"})]},c.name)}),!u&&m.map(function(c){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:c.name,children:[(0,e.createComponentVNode)(2,t.Button,{icon:"hammer",content:"Craft",disabled:!0}),c.catalyst_text&&(0,e.createComponentVNode)(2,t.Button,{tooltip:c.catalyst_text,content:"Catalysts",color:"transparent"}),(0,e.createComponentVNode)(2,t.Button,{tooltip:c.req_text,content:"Requirements",color:"transparent"}),c.tool_text&&(0,e.createComponentVNode)(2,t.Button,{tooltip:c.tool_text,content:"Tools",color:"transparent"})]},c.name)})]})})},V=function(S,p){var i=(0,a.useBackend)(p),l=i.act,f=i.data,u=f.display_craftable_only,d=f.can_craft,m=f.cant_craft;return(0,e.createComponentVNode)(2,t.Box,{mt:1,children:[d.map(function(c){return(0,e.createComponentVNode)(2,t.Section,{title:c.name,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"hammer",content:"Craft",onClick:function(){function v(){return l("make",{make:c.ref})}return v}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[c.catalyst_text&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Catalysts",children:c.catalyst_text}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Requirements",children:c.req_text}),c.tool_text&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Tools",children:c.tool_text})]})},c.name)}),!u&&m.map(function(c){return(0,e.createComponentVNode)(2,t.Section,{title:c.name,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"hammer",content:"Craft",disabled:!0}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[c.catalyst_text&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Catalysts",children:c.catalyst_text}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Requirements",children:c.req_text}),c.tool_text&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Tools",children:c.tool_text})]})},c.name)})]})}},58792:function(I,r,n){"use strict";r.__esModule=!0,r.Photocopier=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),s=n(50640),y=n(74041),V=n(78234);function k(f,u){var d=typeof Symbol!="undefined"&&f[Symbol.iterator]||f["@@iterator"];if(d)return(d=d.call(f)).next.bind(d);if(Array.isArray(f)||(d=S(f))||u&&f&&typeof f.length=="number"){d&&(f=d);var m=0;return function(){return m>=f.length?{done:!0}:{done:!1,value:f[m++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function S(f,u){if(f){if(typeof f=="string")return p(f,u);var d=Object.prototype.toString.call(f).slice(8,-1);if(d==="Object"&&f.constructor&&(d=f.constructor.name),d==="Map"||d==="Set")return Array.from(f);if(d==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(d))return p(f,u)}}function p(f,u){(u==null||u>f.length)&&(u=f.length);for(var d=0,m=new Array(u);df?this.substring(0,f)+"...":this};var i=function(u,d){d===void 0&&(d="");var m=(0,V.createSearch)(d,function(c){return c.altername});return(0,y.flow)([(0,s.filter)(function(c){return c==null?void 0:c.altername}),d&&(0,s.filter)(m),(0,s.sortBy)(function(c){return c.id})])(u)},l=r.Photocopier=function(){function f(u,d){for(var m=(0,a.useBackend)(d),c=m.act,v=m.data,b=v.copies,C=v.maxcopies,h=(0,a.useLocalState)(d,"searchText",""),g=h[0],N=h[1],x=i((0,s.sortBy)(function(R){return R.category})(v.forms||[]),g),B=[],L=k(x),w;!(w=L()).done;){var A=w.value;B.includes(A.category)||B.push(A.category)}var T=(0,a.useLocalState)(d,"number",0),E=T[0],O=T[1],P;return v.category===""?P=x:P=x.filter(function(R){return R.category===v.category}),(0,e.createComponentVNode)(2,o.Window,{width:550,height:575,theme:v.ui_theme,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{basis:"40%",children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Section,{title:"\u0421\u0442\u0430\u0442\u0443\u0441",children:[(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"50%",mt:.3,color:"grey",children:"\u0417\u0430\u0440\u044F\u0434 \u0442\u043E\u043D\u0435\u0440\u0430:"}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:"50%",children:(0,e.createComponentVNode)(2,t.ProgressBar,{minValue:0,maxValue:30,value:v.toner})})]}),(0,e.createComponentVNode)(2,t.Stack,{mt:1,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"50%",mb:.3,color:"grey",children:"\u0424\u043E\u0440\u043C\u0430:"}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:"50%",textAlign:"center",bold:!0,children:v.form_id===""?"\u041D\u0435 \u0432\u044B\u0431\u0440\u0430\u043D\u0430":v.form_id})]}),(0,e.createComponentVNode)(2,t.Stack,{children:(0,e.createComponentVNode)(2,t.Stack.Item,{width:"100%",mt:1,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",disabled:!v.copyitem&&!v.mob,icon:v.copyitem||v.mob?"eject":"times",content:v.copyitem?v.copyitem:v.mob?"\u0416\u043E\u043F\u0430 "+v.mob+"!":"\u0421\u043B\u043E\u0442 \u0434\u043B\u044F \u0434\u043E\u043A\u0443\u043C\u0435\u043D\u0442\u0430",onClick:function(){function R(){return c("removedocument")}return R}()})})}),(0,e.createComponentVNode)(2,t.Stack,{children:(0,e.createComponentVNode)(2,t.Stack.Item,{width:"100%",mt:"3px",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",disabled:!v.folder,icon:v.folder?"eject":"times",content:v.folder?v.folder:"\u0421\u043B\u043E\u0442 \u0434\u043B\u044F \u043F\u0430\u043F\u043A\u0438",onClick:function(){function R(){return c("removefolder")}return R}()})})})]}),(0,e.createComponentVNode)(2,t.Section,{title:"\u0423\u043F\u0440\u0430\u0432\u043B\u0435\u043D\u0438\u0435",children:[(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,width:"100%",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"print",disabled:v.toner===0||v.form===null,content:"\u041F\u0435\u0447\u0430\u0442\u044C",onClick:function(){function R(){return c("print_form")}return R}()})}),!!v.isAI&&(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,width:"100%",ml:"5px",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"image",disabled:v.toner<5,content:"\u0424\u043E\u0442\u043E",tooltip:"\u0420\u0430\u0441\u043F\u0435\u0447\u0430\u0442\u0430\u0442\u044C \u0444\u043E\u0442\u043E \u0441 \u0411\u0430\u0437\u044B \u0414\u0430\u043D\u043D\u044B\u0445",onClick:function(){function R(){return c("ai_pic")}return R}()})})]}),(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,width:"100%",mt:"3px",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"copy",content:"\u041A\u043E\u043F\u0438\u044F",disabled:v.toner===0||!v.copyitem&&!v.mob,onClick:function(){function R(){return c("copy")}return R}()})}),!!v.isAI&&(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,width:"100%",ml:"5px",mt:"3px",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"i-cursor",content:"\u0422\u0435\u043A\u0441\u0442",tooltip:"\u0420\u0430\u0441\u043F\u0435\u0447\u0430\u0442\u0430\u0442\u044C \u0441\u0432\u043E\u0439 \u0442\u0435\u043A\u0441\u0442",disabled:v.toner===0,onClick:function(){function R(){return c("ai_text")}return R}()})})]}),(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{mr:1.5,mt:1.2,width:"50%",color:"grey",children:"\u041A\u043E\u043B\u0438\u0447\u0435\u0441\u0442\u0432\u043E:"}),(0,e.createComponentVNode)(2,t.Slider,{mt:.75,width:"50%",animated:!0,minValue:1,maxValue:C,value:b,stepPixelSize:10,onChange:function(){function R(F,j){return c("copies",{new:j})}return R}()})]})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,mt:0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"\u0411\u044E\u0440\u043E\u043A\u0440\u0430\u0442\u0438\u044F",children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,mb:-.5,icon:"chevron-right",color:"transparent",content:"\u0412\u0441\u0435 \u0444\u043E\u0440\u043C\u044B",selected:!v.category,onClick:function(){function R(){return c("choose_category",{category:""})}return R}()})}),B.map(function(R){return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"chevron-right",mb:-.5,color:"transparent",content:R,selected:v.category===R,onClick:function(){function F(){return c("choose_category",{category:R})}return F}()},R)},R)})]})})})]})}),(0,e.createComponentVNode)(2,t.Stack.Item,{basis:"60%",children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:v.category||"\u0412\u0441\u0435 \u0444\u043E\u0440\u043C\u044B",buttons:(0,e.createComponentVNode)(2,t.Input,{mr:18.5,width:"100%",placeholder:"\u041F\u043E\u0438\u0441\u043A \u0444\u043E\u0440\u043C\u044B",onInput:function(){function R(F,j){return N(j)}return R}()}),children:P.map(function(R){return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,mb:.5,color:"transparent",content:R.altername.trimLongStr(37),tooltip:R.altername,selected:v.form_id===R.id,onClick:function(){function F(){return c("choose_form",{path:R.path,id:R.id})}return F}()})},R.path)})})})]})})})}return f}()},43220:function(I,r,n){"use strict";r.__esModule=!0,r.PodTracking=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),s=r.PodTracking=function(){function y(V,k){var S=(0,a.useBackend)(k),p=S.act,i=S.data,l=i.pods;return(0,e.createComponentVNode)(2,o.Window,{width:400,height:500,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:l.map(function(f){return(0,e.createComponentVNode)(2,t.Section,{title:f.name,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Position",children:[f.podx,", ",f.pody,", ",f.podz]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Pilot",children:f.pilot}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Passengers",children:f.passengers})]})},f.name)})})})}return y}()},27902:function(I,r,n){"use strict";r.__esModule=!0,r.PoolController=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),s=["tempKey"];function y(p,i){if(p==null)return{};var l={},f=Object.keys(p),u,d;for(d=0;d=0)&&(l[u]=p[u]);return l}var V={scalding:{label:"Scalding",color:"#FF0000",icon:"fa fa-arrow-circle-up",requireEmag:!0},warm:{label:"Warm",color:"#990000",icon:"fa fa-arrow-circle-up"},normal:{label:"Normal",color:null,icon:"fa fa-arrow-circle-right"},cool:{label:"Cool",color:"#009999",icon:"fa fa-arrow-circle-down"},frigid:{label:"Frigid",color:"#00CCCC",icon:"fa fa-arrow-circle-down",requireEmag:!0}},k=function(i,l){var f=i.tempKey,u=y(i,s),d=V[f];if(!d)return null;var m=(0,a.useBackend)(l),c=m.data,v=m.act,b=c.currentTemp,C=d.label,h=d.icon,g=f===b,N=function(){v("setTemp",{temp:f})};return(0,e.normalizeProps)((0,e.createComponentVNode)(2,t.Button,Object.assign({selected:g,onClick:N},u,{children:[(0,e.createComponentVNode)(2,t.Icon,{name:h}),C]})))},S=r.PoolController=function(){function p(i,l){for(var f=(0,a.useBackend)(l),u=f.data,d=u.emagged,m=u.currentTemp,c=V[m]||V.normal,v=c.label,b=c.color,C=[],h=0,g=Object.entries(V);h50?"battery-half":"battery-quarter")||b==="C"&&"bolt"||b==="F"&&"battery-full"||b==="M"&&"slash",color:b==="N"&&(C>50?"yellow":"red")||b==="C"&&"yellow"||b==="F"&&"green"||b==="M"&&"orange"}),(0,e.createComponentVNode)(2,k.Box,{inline:!0,width:"36px",textAlign:"right",children:(0,o.toFixed)(C)+"%"})],4)};d.defaultHooks=s.pureComponentHooks;var m=function(v){var b,C,h=v.status;switch(h){case"AOn":b=!0,C=!0;break;case"AOff":b=!0,C=!1;break;case"On":b=!1,C=!0;break;case"Off":b=!1,C=!1;break}var g=(C?"On":"Off")+(" ["+(b?"auto":"manual")+"]");return(0,e.createComponentVNode)(2,k.ColorBox,{color:C?"good":"bad",content:b?void 0:"M",title:g})};m.defaultHooks=s.pureComponentHooks},27262:function(I,r,n){"use strict";r.__esModule=!0,r.PrisonerImplantManager=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(91097),s=n(99665),y=n(68159),V=n(27527),k=n(45493),S=r.PrisonerImplantManager=function(){function p(i,l){var f=(0,a.useBackend)(l),u=f.act,d=f.data,m=d.loginState,c=d.prisonerInfo,v=d.chemicalInfo,b=d.trackingInfo,C;if(!m.logged_in)return(0,e.createComponentVNode)(2,k.Window,{theme:"security",width:500,height:850,children:(0,e.createComponentVNode)(2,k.Window.Content,{children:(0,e.createComponentVNode)(2,V.LoginScreen)})});var h=[1,5,10];return(0,e.createComponentVNode)(2,k.Window,{theme:"security",width:500,height:850,children:[(0,e.createComponentVNode)(2,s.ComplexModal),(0,e.createComponentVNode)(2,k.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,y.LoginInfo),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Prisoner Points Manager System",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Prisoner",children:(0,e.createComponentVNode)(2,t.Button,{icon:c.name?"eject":"id-card",selected:c.name,content:c.name?c.name:"-----",tooltip:c.name?"Eject ID":"Insert ID",onClick:function(){function g(){return u("id_card")}return g}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Points",children:[c.points!==null?c.points:"-/-",(0,e.createComponentVNode)(2,t.Button,{ml:2,icon:"minus-square",disabled:c.points===null,content:"Reset",onClick:function(){function g(){return u("reset_points")}return g}()})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Point Goal",children:[c.goal!==null?c.goal:"-/-",(0,e.createComponentVNode)(2,t.Button,{ml:2,icon:"pen",disabled:c.goal===null,content:"Edit",onClick:function(){function g(){return(0,s.modalOpen)(l,"set_points")}return g}()})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{children:(0,e.createVNode)(1,"box",null,[(0,e.createTextVNode)("1 minute of prison time should roughly equate to 150 points."),(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("Sentences should not exceed 5000 points."),(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("Permanent prisoners should not be given a point goal."),(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("Prisoners who meet their point goal will be able to automatically access their locker and return to the station using the shuttle.")],4,{hidden:c.goal===null})})]})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Tracking Implants",children:b.map(function(g){return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{p:1,backgroundColor:"rgba(255, 255, 255, 0.05)",children:[(0,e.createComponentVNode)(2,t.Box,{bold:!0,children:["Subject: ",g.subject]}),(0,e.createComponentVNode)(2,t.Box,{children:[" ",(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Location",children:g.location}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Health",children:g.health}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Prisoner",children:(0,e.createComponentVNode)(2,t.Button,{icon:"exclamation-triangle",content:"Warn",tooltip:"Broadcast a message to this poor sod",onClick:function(){function N(){return(0,s.modalOpen)(l,"warn",{uid:g.uid})}return N}()})})]})]},g.subject)]}),(0,e.createVNode)(1,"br")],4)})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Chemical Implants",children:v.map(function(g){return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{p:1,backgroundColor:"rgba(255, 255, 255, 0.05)",children:[(0,e.createComponentVNode)(2,t.Box,{bold:!0,children:["Subject: ",g.name]}),(0,e.createComponentVNode)(2,t.Box,{children:[" ",(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,o.LabeledList,{children:(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Remaining Reagents",children:g.volume})}),h.map(function(N){return(0,e.createComponentVNode)(2,t.Button,{mt:2,disabled:g.volume1100?"purple":m>500?"orange":m>250?"yellow":"green"},k=function(m,c){for(var v=[],b=0;b0?"envelope-open-text":"envelope",onClick:function(){function N(){return c("setScreen",{setScreen:6})}return N}()})}),(0,e.createComponentVNode)(2,t.Box,{mt:2,children:[(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Request Assistance",icon:"hand-paper",onClick:function(){function N(){return c("setScreen",{setScreen:1})}return N}()})}),(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Request Supplies",icon:"box",onClick:function(){function N(){return c("setScreen",{setScreen:2})}return N}()})}),(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Relay Anonymous Information",icon:"comment",onClick:function(){function N(){return c("setScreen",{setScreen:3})}return N}()})})]}),(0,e.createComponentVNode)(2,t.Box,{mt:2,children:[(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Print Shipping Label",icon:"tag",onClick:function(){function N(){return c("setScreen",{setScreen:9})}return N}()})}),(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:"View Shipping Logs",icon:"clipboard-list",onClick:function(){function N(){return c("setScreen",{setScreen:10})}return N}()})})]}),!!C&&(0,e.createComponentVNode)(2,t.Box,{mt:2,children:(0,e.createComponentVNode)(2,t.Button,{content:"Send Station-Wide Announcement",icon:"bullhorn",onClick:function(){function N(){return c("setScreen",{setScreen:8})}return N}()})}),(0,e.createComponentVNode)(2,t.Box,{mt:2,children:(0,e.createComponentVNode)(2,t.Button,{content:h?"Speaker Off":"Speaker On",selected:!h,icon:h?"volume-mute":"volume-up",onClick:function(){function N(){return c("toggleSilent")}return N}()})})]})},V=function(u,d){var m=(0,a.useBackend)(d),c=m.act,v=m.data,b=v.department,C,h;switch(u.purpose){case"ASSISTANCE":C=v.assist_dept,h="Request assistance from another department";break;case"SUPPLIES":C=v.supply_dept,h="Request supplies from another department";break;case"INFO":C=v.info_dept,h="Relay information to another department";break}return(0,e.createComponentVNode)(2,t.Section,{title:h,buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Back",icon:"arrow-left",onClick:function(){function g(){return c("setScreen",{setScreen:0})}return g}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:C.filter(function(g){return g!==b}).map(function(g){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:g,children:[(0,e.createComponentVNode)(2,t.Button,{content:"Message",icon:"envelope",onClick:function(){function N(){return c("writeInput",{write:g,priority:1})}return N}()}),(0,e.createComponentVNode)(2,t.Button,{content:"High Priority",icon:"exclamation-circle",onClick:function(){function N(){return c("writeInput",{write:g,priority:2})}return N}()})]},g)})})})},k=function(u,d){var m=(0,a.useBackend)(d),c=m.act,v=m.data,b;switch(u.type){case"SUCCESS":b="Message sent successfully";break;case"FAIL":b="Request supplies from another department";break}return(0,e.createComponentVNode)(2,t.Section,{title:b,buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Back",icon:"arrow-left",onClick:function(){function C(){return c("setScreen",{setScreen:0})}return C}()})})},S=function(u,d){var m=(0,a.useBackend)(d),c=m.act,v=m.data,b,C;switch(u.type){case"MESSAGES":b=v.message_log,C="Message Log";break;case"SHIPPING":b=v.shipping_log,C="Shipping label print log";break}return(0,e.createComponentVNode)(2,t.Section,{title:C,buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Back",icon:"arrow-left",onClick:function(){function h(){return c("setScreen",{setScreen:0})}return h}()}),children:b.map(function(h){return(0,e.createComponentVNode)(2,t.Box,{className:"RequestConsole__message",children:h},h)})})},p=function(u,d){var m=(0,a.useBackend)(d),c=m.act,v=m.data,b=v.recipient,C=v.message,h=v.msgVerified,g=v.msgStamped;return(0,e.createComponentVNode)(2,t.Section,{title:"Message Authentication",buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Back",icon:"arrow-left",onClick:function(){function N(){return c("setScreen",{setScreen:0})}return N}()}),children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Recipient",children:b}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Message",children:C}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Validated by",color:"green",children:h}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Stamped by",color:"blue",children:g})]}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,mt:1,textAlign:"center",content:"Send Message",icon:"envelope",onClick:function(){function N(){return c("department",{department:b})}return N}()})]})},i=function(u,d){var m=(0,a.useBackend)(d),c=m.act,v=m.data,b=v.message,C=v.announceAuth;return(0,e.createComponentVNode)(2,t.Section,{title:"Station-Wide Announcement",buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Back",icon:"arrow-left",onClick:function(){function h(){return c("setScreen",{setScreen:0})}return h}()}),children:[(0,e.createComponentVNode)(2,t.Button,{content:b||"Edit Message",icon:"edit",onClick:function(){function h(){return c("writeAnnouncement")}return h}()}),C?(0,e.createComponentVNode)(2,t.Box,{mt:1,color:"green",children:"ID verified. Authentication accepted."}):(0,e.createComponentVNode)(2,t.Box,{mt:1,children:"Swipe your ID card to authenticate yourself."}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,mt:1,textAlign:"center",content:"Send Announcement",icon:"bullhorn",disabled:!(C&&b),onClick:function(){function h(){return c("sendAnnouncement")}return h}()})]})},l=function(u,d){var m=(0,a.useBackend)(d),c=m.act,v=m.data,b=v.shipDest,C=v.msgVerified,h=v.ship_dept;return(0,e.createComponentVNode)(2,t.Section,{title:"Print Shipping Label",buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Back",icon:"arrow-left",onClick:function(){function g(){return c("setScreen",{setScreen:0})}return g}()}),children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Destination",children:b}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Validated by",children:C})]}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,mt:1,textAlign:"center",content:"Print Label",icon:"print",disabled:!(b&&C),onClick:function(){function g(){return c("printLabel")}return g}()}),(0,e.createComponentVNode)(2,t.Section,{title:"Destinations",mt:1,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:h.map(function(g){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:g,children:(0,e.createComponentVNode)(2,t.Button,{content:b===g?"Selected":"Select",selected:b===g,onClick:function(){function N(){return c("shipSelect",{shipSelect:g})}return N}()})},g)})})})]})}},29392:function(I,r,n){"use strict";r.__esModule=!0,r.RequestManager=void 0;var e=n(96524),a=n(78234),t=n(17899),o=n(24674),s=n(45493);/** * @file * @copyright 2021 bobbahbrown (https://github.com/bobbahbrown) * @coauthor 2022 BeebBeebBoob (https://github.com/BeebBeebBoob) @@ -335,7 +335,7 @@ * @file * @copyright 2021 Aleksej Komarov * @license MIT - */var t=r.BoxWithSampleText=function(){function o(s){return(0,e.normalizeProps)((0,e.createComponentVNode)(2,a.Box,Object.assign({},s,{children:[(0,e.createComponentVNode)(2,a.Box,{italic:!0,children:"Jackdaws love my big sphinx of quartz."}),(0,e.createComponentVNode)(2,a.Box,{mt:1,bold:!0,children:"The wide electrification of the southern provinces will give a powerful impetus to the growth of agriculture."})]})))}return o}()},47581:function(){},73785:function(){},62199:function(){},50571:function(){},25598:function(){},18223:function(){},42449:function(){},56191:function(){},57251:function(){},39215:function(){},15767:function(){},25473:function(){},62118:function(){},68303:function(){},6973:function(){},40451:function(){},89387:function(){},70752:function(I,r,n){var e={"./pai_advsecrecords.js":31130,"./pai_atmosphere.js":24704,"./pai_bioscan.js":4209,"./pai_camera_bug.js":98990,"./pai_directives.js":44430,"./pai_doorjack.js":3367,"./pai_encoder.js":59934,"./pai_gps_module.js":39913,"./pai_main_menu.js":73395,"./pai_manifest.js":37645,"./pai_medrecords.js":15836,"./pai_messenger.js":91737,"./pai_radio.js":94077,"./pai_sec_chem.js":14875,"./pai_secrecords.js":72621,"./pai_signaler.js":53483};function a(o){var s=t(o);return n(s)}function t(o){if(!n.o(e,o)){var s=new Error("Cannot find module '"+o+"'");throw s.code="MODULE_NOT_FOUND",s}return e[o]}a.keys=function(){return Object.keys(e)},a.resolve=t,I.exports=a,a.id=70752},59395:function(I,r,n){var e={"./pda_atmos_scan.js":21606,"./pda_janitor.js":12339,"./pda_main_menu.js":36615,"./pda_manifest.js":99737,"./pda_medical.js":61597,"./pda_messenger.js":30709,"./pda_mule.js":68053,"./pda_notes.js":29415,"./pda_power.js":52363,"./pda_secbot.js":23914,"./pda_security.js":68878,"./pda_signaler.js":95135,"./pda_status_display.js":20835,"./pda_supplyrecords.js":11741};function a(o){var s=t(o);return n(s)}function t(o){if(!n.o(e,o)){var s=new Error("Cannot find module '"+o+"'");throw s.code="MODULE_NOT_FOUND",s}return e[o]}a.keys=function(){return Object.keys(e)},a.resolve=t,I.exports=a,a.id=59395},32054:function(I,r,n){var e={"./AICard":29732,"./AICard.js":29732,"./AIFixer":78468,"./AIFixer.js":78468,"./APC":73544,"./APC.js":73544,"./ATM":79098,"./ATM.js":79098,"./AccountsUplinkTerminal":64613,"./AccountsUplinkTerminal.js":64613,"./AgentCard":34257,"./AgentCard.js":34257,"./AiAirlock":56839,"./AiAirlock.js":56839,"./AirAlarm":5565,"./AirAlarm.js":5565,"./AirlockAccessController":82915,"./AirlockAccessController.js":82915,"./AirlockElectronics":14962,"./AirlockElectronics.js":14962,"./AlertModal":99327,"./AlertModal.tsx":99327,"./AppearanceChanger":88642,"./AppearanceChanger.js":88642,"./AtmosAlertConsole":51731,"./AtmosAlertConsole.js":51731,"./AtmosControl":57467,"./AtmosControl.js":57467,"./AtmosFilter":41550,"./AtmosFilter.js":41550,"./AtmosMixer":70151,"./AtmosMixer.js":70151,"./AtmosPump":54090,"./AtmosPump.js":54090,"./Autolathe":85909,"./Autolathe.js":85909,"./Biogenerator":26215,"./Biogenerator.js":26215,"./BlueSpaceArtilleryControl":65483,"./BlueSpaceArtilleryControl.js":65483,"./BluespaceRiftScanner":37549,"./BluespaceRiftScanner.js":37549,"./BluespaceRiftServer":94780,"./BluespaceRiftServer.js":94780,"./BluespaceTap":69099,"./BluespaceTap.js":69099,"./BodyScanner":71736,"./BodyScanner.js":71736,"./BorgPanel":65052,"./BorgPanel.js":65052,"./BotClean":43506,"./BotClean.js":43506,"./BotSecurity":4249,"./BotSecurity.js":4249,"./BrigCells":27267,"./BrigCells.js":27267,"./BrigTimer":26623,"./BrigTimer.js":26623,"./CameraConsole":43542,"./CameraConsole.js":43542,"./Canister":95513,"./Canister.js":95513,"./CardComputer":60463,"./CardComputer.js":60463,"./CargoConsole":16377,"./CargoConsole.js":16377,"./Changelog":14372,"./Changelog.js":14372,"./ChemDispenser":71254,"./ChemDispenser.js":71254,"./ChemHeater":27004,"./ChemHeater.js":27004,"./ChemMaster":41099,"./ChemMaster.tsx":41099,"./CloningConsole":51327,"./CloningConsole.js":51327,"./CommunicationsComputer":22420,"./CommunicationsComputer.js":22420,"./Contractor":64707,"./Contractor.js":64707,"./ConveyorSwitch":52141,"./ConveyorSwitch.js":52141,"./CrewMonitor":94187,"./CrewMonitor.js":94187,"./Cryo":60561,"./Cryo.js":60561,"./CryopodConsole":27889,"./CryopodConsole.js":27889,"./DNAModifier":81434,"./DNAModifier.js":81434,"./DestinationTagger":21508,"./DestinationTagger.js":21508,"./DisposalBin":93430,"./DisposalBin.js":93430,"./DnaVault":31491,"./DnaVault.js":31491,"./EFTPOS":74781,"./EFTPOS.js":74781,"./ERTManager":30672,"./ERTManager.js":30672,"./Electropack":15543,"./Electropack.js":15543,"./EvolutionMenu":99012,"./EvolutionMenu.js":99012,"./ExosuitFabricator":37504,"./ExosuitFabricator.js":37504,"./ExternalAirlockController":77284,"./ExternalAirlockController.js":77284,"./FaxMachine":52516,"./FaxMachine.js":52516,"./FloorPainter":88361,"./FloorPainter.js":88361,"./GPS":70078,"./GPS.js":70078,"./GasAnalyzer":96961,"./GasAnalyzer.js":96961,"./GasFreezer":94572,"./GasFreezer.js":94572,"./GeneModder":92246,"./GeneModder.js":92246,"./GenericCrewManifest":27163,"./GenericCrewManifest.js":27163,"./GhostHudPanel":53808,"./GhostHudPanel.js":53808,"./GlandDispenser":32035,"./GlandDispenser.js":32035,"./HandheldChemDispenser":22480,"./HandheldChemDispenser.js":22480,"./ImplantPad":5876,"./ImplantPad.js":5876,"./Instrument":96729,"./Instrument.js":96729,"./ItemPixelShift":33679,"./ItemPixelShift.js":33679,"./KeyComboModal":240,"./KeyComboModal.tsx":240,"./KeycardAuth":53385,"./KeycardAuth.js":53385,"./LaborClaimConsole":87609,"./LaborClaimConsole.js":87609,"./LawManager":14047,"./LawManager.js":14047,"./ListInputModal":26133,"./ListInputModal.tsx":26133,"./MechBayConsole":95752,"./MechBayConsole.js":95752,"./MechaControlConsole":53668,"./MechaControlConsole.js":53668,"./MedicalRecords":96467,"./MedicalRecords.js":96467,"./MiniGamesMenu":96415,"./MiniGamesMenu.js":96415,"./MiningVendor":14162,"./MiningVendor.js":14162,"./Multitool":93705,"./Multitool.js":93705,"./Newscaster":17067,"./Newscaster.js":17067,"./NinjaBloodScan":65765,"./NinjaBloodScan.js":65765,"./NinjaMindScan":61095,"./NinjaMindScan.js":61095,"./NuclearBomb":46940,"./NuclearBomb.js":46940,"./NumberInputModal":35478,"./NumberInputModal.tsx":35478,"./OperatingComputer":98476,"./OperatingComputer.js":98476,"./Orbit":98702,"./Orbit.js":98702,"./OreRedemption":74015,"./OreRedemption.js":74015,"./PAI":48824,"./PAI.js":48824,"./PDA":41565,"./PDA.js":41565,"./PDAPainter":10890,"./PDAPainter.js":10890,"./Pacman":78704,"./Pacman.js":78704,"./PersonalCrafting":81378,"./PersonalCrafting.js":81378,"./Photocopier":58792,"./Photocopier.js":58792,"./PodTracking":43220,"./PodTracking.js":43220,"./PoolController":27902,"./PoolController.js":27902,"./PortablePump":52025,"./PortablePump.js":52025,"./PortableScrubber":57827,"./PortableScrubber.js":57827,"./PortableTurret":63825,"./PortableTurret.js":63825,"./PowerMonitor":70373,"./PowerMonitor.js":70373,"./PrisonerImplantManager":27262,"./PrisonerImplantManager.js":27262,"./QuestConsole":71647,"./QuestConsole.js":71647,"./RCD":87963,"./RCD.js":87963,"./RPD":84364,"./RPD.js":84364,"./Radio":14641,"./Radio.js":14641,"./RequestConsole":12326,"./RequestConsole.js":12326,"./RequestManager":29392,"./RequestManager.js":29392,"./RndConsole":89641,"./RndConsole.js":89641,"./RndConsoleComponents":3422,"./RndConsoleComponents/":3422,"./RndConsoleComponents/CurrentLevels":19348,"./RndConsoleComponents/CurrentLevels.js":19348,"./RndConsoleComponents/DataDiskMenu":338,"./RndConsoleComponents/DataDiskMenu.js":338,"./RndConsoleComponents/DeconstructionMenu":90785,"./RndConsoleComponents/DeconstructionMenu.js":90785,"./RndConsoleComponents/LatheCategory":34492,"./RndConsoleComponents/LatheCategory.js":34492,"./RndConsoleComponents/LatheChemicalStorage":84275,"./RndConsoleComponents/LatheChemicalStorage.js":84275,"./RndConsoleComponents/LatheMainMenu":12638,"./RndConsoleComponents/LatheMainMenu.js":12638,"./RndConsoleComponents/LatheMaterialStorage":89004,"./RndConsoleComponents/LatheMaterialStorage.js":89004,"./RndConsoleComponents/LatheMaterials":73856,"./RndConsoleComponents/LatheMaterials.js":73856,"./RndConsoleComponents/LatheMenu":75955,"./RndConsoleComponents/LatheMenu.js":75955,"./RndConsoleComponents/LatheSearch":72880,"./RndConsoleComponents/LatheSearch.js":72880,"./RndConsoleComponents/MainMenu":62306,"./RndConsoleComponents/MainMenu.js":62306,"./RndConsoleComponents/RndNavButton":99941,"./RndConsoleComponents/RndNavButton.js":99941,"./RndConsoleComponents/RndNavbar":24448,"./RndConsoleComponents/RndNavbar.js":24448,"./RndConsoleComponents/RndRoute":78345,"./RndConsoleComponents/RndRoute.js":78345,"./RndConsoleComponents/SettingsMenu":56454,"./RndConsoleComponents/SettingsMenu.js":56454,"./RndConsoleComponents/index":3422,"./RndConsoleComponents/index.js":3422,"./RobotSelfDiagnosis":71123,"./RobotSelfDiagnosis.js":71123,"./RoboticsControlConsole":98951,"./RoboticsControlConsole.js":98951,"./Safe":2289,"./Safe.js":2289,"./SatelliteControl":49334,"./SatelliteControl.js":49334,"./SecureStorage":54892,"./SecureStorage.js":54892,"./SecurityRecords":56798,"./SecurityRecords.js":56798,"./SeedExtractor":59981,"./SeedExtractor.js":59981,"./ShuttleConsole":33454,"./ShuttleConsole.js":33454,"./ShuttleManipulator":50451,"./ShuttleManipulator.js":50451,"./Sleeper":99050,"./Sleeper.js":99050,"./SlotMachine":37763,"./SlotMachine.js":37763,"./Smartfridge":26654,"./Smartfridge.js":26654,"./Smes":71124,"./Smes.js":71124,"./SolarControl":21786,"./SolarControl.js":21786,"./SpawnersMenu":31202,"./SpawnersMenu.js":31202,"./SpiderOS":54015,"./SpiderOS.js":54015,"./StationAlertConsole":46501,"./StationAlertConsole.js":46501,"./StripMenu":95147,"./StripMenu.tsx":95147,"./SuitStorage":61284,"./SuitStorage.js":61284,"./SupermatterMonitor":19796,"./SupermatterMonitor.js":19796,"./SyndicateComputerSimple":30047,"./SyndicateComputerSimple.js":30047,"./SyndieCargoConsole":92869,"./SyndieCargoConsole.js":92869,"./TTSSeedsExplorer":96606,"./TTSSeedsExplorer.js":96606,"./TachyonArray":39903,"./TachyonArray.js":39903,"./Tank":17068,"./Tank.js":17068,"./TankDispenser":69161,"./TankDispenser.js":69161,"./TcommsCore":87394,"./TcommsCore.js":87394,"./TcommsRelay":55684,"./TcommsRelay.js":55684,"./Teleporter":81088,"./Teleporter.js":81088,"./TextInputModal":95484,"./TextInputModal.tsx":95484,"./ThiefKit":16387,"./ThiefKit.js":16387,"./TransferValve":3365,"./TransferValve.js":3365,"./Uplink":22169,"./Uplink.js":22169,"./VampireSpecMenu":22732,"./VampireSpecMenu.js":22732,"./VampireTrophiesStatus":4644,"./VampireTrophiesStatus.js":4644,"./Vending":70547,"./Vending.js":70547,"./VolumeMixer":33045,"./VolumeMixer.js":33045,"./VotePanel":53792,"./VotePanel.js":53792,"./Wires":64860,"./Wires.js":64860,"./Workshop":49253,"./Workshop.js":49253,"./common/AccessList":57842,"./common/AccessList.js":57842,"./common/AtmosScan":79449,"./common/AtmosScan.js":79449,"./common/BeakerContents":1496,"./common/BeakerContents.js":1496,"./common/ComplexModal":99665,"./common/ComplexModal.js":99665,"./common/CrewManifest":98444,"./common/CrewManifest.js":98444,"./common/InputButtons":15113,"./common/InputButtons.tsx":15113,"./common/InterfaceLockNoticeBox":26893,"./common/InterfaceLockNoticeBox.js":26893,"./common/Loader":14299,"./common/Loader.tsx":14299,"./common/LoginInfo":68159,"./common/LoginInfo.js":68159,"./common/LoginScreen":27527,"./common/LoginScreen.js":27527,"./common/Operating":75201,"./common/Operating.js":75201,"./common/Signaler":65435,"./common/Signaler.js":65435,"./common/SimpleRecords":77534,"./common/SimpleRecords.js":77534,"./common/TemporaryNotice":84537,"./common/TemporaryNotice.js":84537,"./manually-routed/KitchenSink":31473,"./manually-routed/KitchenSink.js":31473,"./pai/pai_advsecrecords":31130,"./pai/pai_advsecrecords.js":31130,"./pai/pai_atmosphere":24704,"./pai/pai_atmosphere.js":24704,"./pai/pai_bioscan":4209,"./pai/pai_bioscan.js":4209,"./pai/pai_camera_bug":98990,"./pai/pai_camera_bug.js":98990,"./pai/pai_directives":44430,"./pai/pai_directives.js":44430,"./pai/pai_doorjack":3367,"./pai/pai_doorjack.js":3367,"./pai/pai_encoder":59934,"./pai/pai_encoder.js":59934,"./pai/pai_gps_module":39913,"./pai/pai_gps_module.js":39913,"./pai/pai_main_menu":73395,"./pai/pai_main_menu.js":73395,"./pai/pai_manifest":37645,"./pai/pai_manifest.js":37645,"./pai/pai_medrecords":15836,"./pai/pai_medrecords.js":15836,"./pai/pai_messenger":91737,"./pai/pai_messenger.js":91737,"./pai/pai_radio":94077,"./pai/pai_radio.js":94077,"./pai/pai_sec_chem":14875,"./pai/pai_sec_chem.js":14875,"./pai/pai_secrecords":72621,"./pai/pai_secrecords.js":72621,"./pai/pai_signaler":53483,"./pai/pai_signaler.js":53483,"./pda/pda_atmos_scan":21606,"./pda/pda_atmos_scan.js":21606,"./pda/pda_janitor":12339,"./pda/pda_janitor.js":12339,"./pda/pda_main_menu":36615,"./pda/pda_main_menu.js":36615,"./pda/pda_manifest":99737,"./pda/pda_manifest.js":99737,"./pda/pda_medical":61597,"./pda/pda_medical.js":61597,"./pda/pda_messenger":30709,"./pda/pda_messenger.js":30709,"./pda/pda_mule":68053,"./pda/pda_mule.js":68053,"./pda/pda_notes":29415,"./pda/pda_notes.js":29415,"./pda/pda_power":52363,"./pda/pda_power.js":52363,"./pda/pda_secbot":23914,"./pda/pda_secbot.js":23914,"./pda/pda_security":68878,"./pda/pda_security.js":68878,"./pda/pda_signaler":95135,"./pda/pda_signaler.js":95135,"./pda/pda_status_display":20835,"./pda/pda_status_display.js":20835,"./pda/pda_supplyrecords":11741,"./pda/pda_supplyrecords.js":11741};function a(o){var s=t(o);return n(s)}function t(o){if(!n.o(e,o)){var s=new Error("Cannot find module '"+o+"'");throw s.code="MODULE_NOT_FOUND",s}return e[o]}a.keys=function(){return Object.keys(e)},a.resolve=t,I.exports=a,a.id=32054},4085:function(I,r,n){var e={"./Blink.stories.js":61498,"./BlockQuote.stories.js":27431,"./Box.stories.js":6517,"./Button.stories.js":20648,"./ByondUi.stories.js":14906,"./Collapsible.stories.js":59948,"./Flex.stories.js":37227,"./ImageButton.stories.js":16189,"./Input.stories.js":32304,"./Popper.stories.js":50394,"./ProgressBar.stories.js":75096,"./Stack.stories.js":30268,"./Storage.stories.js":22645,"./Tabs.stories.js":42120,"./Themes.stories.js":80254,"./Tooltip.stories.js":90823};function a(o){var s=t(o);return n(s)}function t(o){if(!n.o(e,o)){var s=new Error("Cannot find module '"+o+"'");throw s.code="MODULE_NOT_FOUND",s}return e[o]}a.keys=function(){return Object.keys(e)},a.resolve=t,I.exports=a,a.id=4085},20986:function(I,r,n){"use strict";var e=n(8389),a=n(82823),t=TypeError;I.exports=function(o){if(e(o))return o;throw new t(a(o)+" is not a function")}},23788:function(I,r,n){"use strict";var e=n(86781),a=n(82823),t=TypeError;I.exports=function(o){if(e(o))return o;throw new t(a(o)+" is not a constructor")}},71442:function(I,r,n){"use strict";var e=n(30517),a=String,t=TypeError;I.exports=function(o){if(e(o))return o;throw new t("Can't set "+a(o)+" as a prototype")}},46677:function(I,r,n){"use strict";var e=n(92611),a=n(54792),t=n(3329).f,o=e("unscopables"),s=Array.prototype;s[o]===void 0&&t(s,o,{configurable:!0,value:a(null)}),I.exports=function(y){s[o][y]=!0}},87477:function(I,r,n){"use strict";var e=n(94567).charAt;I.exports=function(a,t,o){return t+(o?e(a,t).length:1)}},38567:function(I,r,n){"use strict";var e=n(88457),a=TypeError;I.exports=function(t,o){if(e(o,t))return t;throw new a("Incorrect invocation")}},91191:function(I,r,n){"use strict";var e=n(63762),a=String,t=TypeError;I.exports=function(o){if(e(o))return o;throw new t(a(o)+" is not an object")}},30627:function(I){"use strict";I.exports=typeof ArrayBuffer!="undefined"&&typeof DataView!="undefined"},12116:function(I,r,n){"use strict";var e=n(26735);I.exports=e(function(){if(typeof ArrayBuffer=="function"){var a=new ArrayBuffer(8);Object.isExtensible(a)&&Object.defineProperty(a,"a",{value:8})}})},94084:function(I,r,n){"use strict";var e=n(30627),a=n(47676),t=n(16203),o=n(8389),s=n(63762),y=n(3953),V=n(39851),k=n(82823),S=n(75387),p=n(73880),i=n(67242),l=n(88457),f=n(97139),u=n(19191),d=n(92611),m=n(91072),c=n(77341),v=c.enforce,b=c.get,C=t.Int8Array,h=C&&C.prototype,g=t.Uint8ClampedArray,N=g&&g.prototype,x=C&&f(C),B=h&&f(h),L=Object.prototype,w=t.TypeError,A=d("toStringTag"),T=m("TYPED_ARRAY_TAG"),E="TypedArrayConstructor",O=e&&!!u&&V(t.opera)!=="Opera",P=!1,R,F,j,U={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},_={BigInt64Array:8,BigUint64Array:8},K=function(){function be(xe){if(!s(xe))return!1;var Ie=V(xe);return Ie==="DataView"||y(U,Ie)||y(_,Ie)}return be}(),Y=function be(xe){var Ie=f(xe);if(s(Ie)){var Te=b(Ie);return Te&&y(Te,E)?Te[E]:be(Ie)}},G=function(xe){if(!s(xe))return!1;var Ie=V(xe);return y(U,Ie)||y(_,Ie)},ne=function(xe){if(G(xe))return xe;throw new w("Target is not a typed array")},$=function(xe){if(o(xe)&&(!u||l(x,xe)))return xe;throw new w(k(xe)+" is not a typed array constructor")},se=function(xe,Ie,Te,he){if(a){if(Te)for(var Q in U){var X=t[Q];if(X&&y(X.prototype,xe))try{delete X.prototype[xe]}catch(te){try{X.prototype[xe]=Ie}catch(q){}}}(!B[xe]||Te)&&p(B,xe,Te?Ie:O&&h[xe]||Ie,he)}},Ne=function(xe,Ie,Te){var he,Q;if(a){if(u){if(Te){for(he in U)if(Q=t[he],Q&&y(Q,xe))try{delete Q[xe]}catch(X){}}if(!x[xe]||Te)try{return p(x,xe,Te?Ie:O&&x[xe]||Ie)}catch(X){}else return}for(he in U)Q=t[he],Q&&(!Q[xe]||Te)&&p(Q,xe,Ie)}};for(R in U)F=t[R],j=F&&F.prototype,j?v(j)[E]=F:O=!1;for(R in _)F=t[R],j=F&&F.prototype,j&&(v(j)[E]=F);if((!O||!o(x)||x===Function.prototype)&&(x=function(){function be(){throw new w("Incorrect invocation")}return be}(),O))for(R in U)t[R]&&u(t[R],x);if((!O||!B||B===L)&&(B=x.prototype,O))for(R in U)t[R]&&u(t[R].prototype,B);if(O&&f(N)!==B&&u(N,B),a&&!y(B,A)){P=!0,i(B,A,{configurable:!0,get:function(){function be(){return s(this)?this[T]:void 0}return be}()});for(R in U)t[R]&&S(t[R],T,R)}I.exports={NATIVE_ARRAY_BUFFER_VIEWS:O,TYPED_ARRAY_TAG:P&&T,aTypedArray:ne,aTypedArrayConstructor:$,exportTypedArrayMethod:se,exportTypedArrayStaticMethod:Ne,getTypedArrayConstructor:Y,isView:K,isTypedArray:G,TypedArray:x,TypedArrayPrototype:B}},89050:function(I,r,n){"use strict";var e=n(16203),a=n(80576),t=n(47676),o=n(30627),s=n(97310),y=n(75387),V=n(67242),k=n(91783),S=n(26735),p=n(38567),i=n(38283),l=n(40046),f=n(38768),u=n(74033),d=n(31674),m=n(97139),c=n(19191),v=n(41733),b=n(7728),C=n(99695),h=n(81340),g=n(43087),N=n(77341),x=s.PROPER,B=s.CONFIGURABLE,L="ArrayBuffer",w="DataView",A="prototype",T="Wrong length",E="Wrong index",O=N.getterFor(L),P=N.getterFor(w),R=N.set,F=e[L],j=F,U=j&&j[A],_=e[w],K=_&&_[A],Y=Object.prototype,G=e.Array,ne=e.RangeError,$=a(v),se=a([].reverse),Ne=d.pack,be=d.unpack,xe=function(J){return[J&255]},Ie=function(J){return[J&255,J>>8&255]},Te=function(J){return[J&255,J>>8&255,J>>16&255,J>>24&255]},he=function(J){return J[3]<<24|J[2]<<16|J[1]<<8|J[0]},Q=function(J){return Ne(u(J),23,4)},X=function(J){return Ne(J,52,8)},te=function(J,re,ue){V(J[A],re,{configurable:!0,get:function(){function ie(){return ue(this)[re]}return ie}()})},q=function(J,re,ue,ie){var ge=P(J),Ce=f(ue),Ae=!!ie;if(Ce+re>ge.byteLength)throw new ne(E);var De=ge.bytes,Se=Ce+ge.byteOffset,me=b(De,Se,Se+re);return Ae?me:se(me)},ce=function(J,re,ue,ie,ge,Ce){var Ae=P(J),De=f(ue),Se=ie(+ge),me=!!Ce;if(De+re>Ae.byteLength)throw new ne(E);for(var de=Ae.bytes,Be=De+Ae.byteOffset,W=0;Wge)throw new ne("Wrong offset");if(ue=ue===void 0?ge-Ce:l(ue),Ce+ue>ge)throw new ne(T);R(this,{type:w,buffer:J,byteLength:ue,byteOffset:Ce,bytes:ie.bytes}),t||(this.buffer=J,this.byteLength=ue,this.byteOffset=Ce)}return M}(),K=_[A],t&&(te(j,"byteLength",O),te(_,"buffer",P),te(_,"byteLength",P),te(_,"byteOffset",P)),k(K,{getInt8:function(){function M(J){return q(this,1,J)[0]<<24>>24}return M}(),getUint8:function(){function M(J){return q(this,1,J)[0]}return M}(),getInt16:function(){function M(J){var re=q(this,2,J,arguments.length>1?arguments[1]:!1);return(re[1]<<8|re[0])<<16>>16}return M}(),getUint16:function(){function M(J){var re=q(this,2,J,arguments.length>1?arguments[1]:!1);return re[1]<<8|re[0]}return M}(),getInt32:function(){function M(J){return he(q(this,4,J,arguments.length>1?arguments[1]:!1))}return M}(),getUint32:function(){function M(J){return he(q(this,4,J,arguments.length>1?arguments[1]:!1))>>>0}return M}(),getFloat32:function(){function M(J){return be(q(this,4,J,arguments.length>1?arguments[1]:!1),23)}return M}(),getFloat64:function(){function M(J){return be(q(this,8,J,arguments.length>1?arguments[1]:!1),52)}return M}(),setInt8:function(){function M(J,re){ce(this,1,J,xe,re)}return M}(),setUint8:function(){function M(J,re){ce(this,1,J,xe,re)}return M}(),setInt16:function(){function M(J,re){ce(this,2,J,Ie,re,arguments.length>2?arguments[2]:!1)}return M}(),setUint16:function(){function M(J,re){ce(this,2,J,Ie,re,arguments.length>2?arguments[2]:!1)}return M}(),setInt32:function(){function M(J,re){ce(this,4,J,Te,re,arguments.length>2?arguments[2]:!1)}return M}(),setUint32:function(){function M(J,re){ce(this,4,J,Te,re,arguments.length>2?arguments[2]:!1)}return M}(),setFloat32:function(){function M(J,re){ce(this,4,J,Q,re,arguments.length>2?arguments[2]:!1)}return M}(),setFloat64:function(){function M(J,re){ce(this,8,J,X,re,arguments.length>2?arguments[2]:!1)}return M}()});else{var Ve=x&&F.name!==L;!S(function(){F(1)})||!S(function(){new F(-1)})||S(function(){return new F,new F(1.5),new F(NaN),F.length!==1||Ve&&!B})?(j=function(){function M(J){return p(this,U),C(new F(f(J)),this,j)}return M}(),j[A]=U,U.constructor=j,h(j,F)):Ve&&B&&y(F,"name",L),c&&m(K)!==Y&&c(K,Y);var fe=new _(new j(2)),we=a(K.setInt8);fe.setInt8(0,2147483648),fe.setInt8(1,2147483649),(fe.getInt8(0)||!fe.getInt8(1))&&k(K,{setInt8:function(){function M(J,re){we(this,J,re<<24>>24)}return M}(),setUint8:function(){function M(J,re){we(this,J,re<<24>>24)}return M}()},{unsafe:!0})}g(j,L),g(_,w),I.exports={ArrayBuffer:j,DataView:_}},77653:function(I,r,n){"use strict";var e=n(43269),a=n(44874),t=n(62022),o=n(25486),s=Math.min;I.exports=[].copyWithin||function(){function y(V,k){var S=e(this),p=t(S),i=a(V,p),l=a(k,p),f=arguments.length>2?arguments[2]:void 0,u=s((f===void 0?p:a(f,p))-l,p-i),d=1;for(l0;)l in S?S[i]=S[l]:o(S,i),i+=d,l+=d;return S}return y}()},41733:function(I,r,n){"use strict";var e=n(43269),a=n(44874),t=n(62022);I.exports=function(){function o(s){for(var y=e(this),V=t(y),k=arguments.length,S=a(k>1?arguments[1]:void 0,V),p=k>2?arguments[2]:void 0,i=p===void 0?V:a(p,V);i>S;)y[S++]=s;return y}return o}()},62571:function(I,r,n){"use strict";var e=n(30205).forEach,a=n(11766),t=a("forEach");I.exports=t?[].forEach:function(){function o(s){return e(this,s,arguments.length>1?arguments[1]:void 0)}return o}()},90106:function(I,r,n){"use strict";var e=n(62022);I.exports=function(a,t,o){for(var s=0,y=arguments.length>2?o:e(t),V=new a(y);y>s;)V[s]=t[s++];return V}},36332:function(I,r,n){"use strict";var e=n(41536),a=n(81037),t=n(43269),o=n(2671),s=n(73345),y=n(86781),V=n(62022),k=n(4160),S=n(19793),p=n(19155),i=Array;I.exports=function(){function l(f){var u=t(f),d=y(this),m=arguments.length,c=m>1?arguments[1]:void 0,v=c!==void 0;v&&(c=e(c,m>2?arguments[2]:void 0));var b=p(u),C=0,h,g,N,x,B,L;if(b&&!(this===i&&s(b)))for(g=d?new this:[],x=S(u,b),B=x.next;!(N=a(B,x)).done;C++)L=v?o(x,c,[N.value,C],!0):N.value,k(g,C,L);else for(h=V(u),g=d?new this(h):i(h);h>C;C++)L=v?c(u[C],C):u[C],k(g,C,L);return g.length=C,g}return l}()},54065:function(I,r,n){"use strict";var e=n(1381),a=n(44874),t=n(62022),o=function(y){return function(V,k,S){var p=e(V),i=t(p);if(i===0)return!y&&-1;var l=a(S,i),f;if(y&&k!==k){for(;i>l;)if(f=p[l++],f!==f)return!0}else for(;i>l;l++)if((y||l in p)&&p[l]===k)return y||l||0;return!y&&-1}};I.exports={includes:o(!0),indexOf:o(!1)}},30205:function(I,r,n){"use strict";var e=n(41536),a=n(80576),t=n(17759),o=n(43269),s=n(62022),y=n(48525),V=a([].push),k=function(p){var i=p===1,l=p===2,f=p===3,u=p===4,d=p===6,m=p===7,c=p===5||d;return function(v,b,C,h){for(var g=o(v),N=t(g),x=s(N),B=e(b,C),L=0,w=h||y,A=i?w(v,x):l||m?w(v,0):void 0,T,E;x>L;L++)if((c||L in N)&&(T=N[L],E=B(T,L,g),p))if(i)A[L]=E;else if(E)switch(p){case 3:return!0;case 5:return T;case 6:return L;case 2:V(A,T)}else switch(p){case 4:return!1;case 7:V(A,T)}return d?-1:f||u?u:A}};I.exports={forEach:k(0),map:k(1),filter:k(2),some:k(3),every:k(4),find:k(5),findIndex:k(6),filterReject:k(7)}},41931:function(I,r,n){"use strict";var e=n(81929),a=n(1381),t=n(38283),o=n(62022),s=n(11766),y=Math.min,V=[].lastIndexOf,k=!!V&&1/[1].lastIndexOf(1,-0)<0,S=s("lastIndexOf"),p=k||!S;I.exports=p?function(){function i(l){if(k)return e(V,this,arguments)||0;var f=a(this),u=o(f);if(u===0)return-1;var d=u-1;for(arguments.length>1&&(d=y(d,t(arguments[1]))),d<0&&(d=u+d);d>=0;d--)if(d in f&&f[d]===l)return d||0;return-1}return i}():V},56981:function(I,r,n){"use strict";var e=n(26735),a=n(92611),t=n(3484),o=a("species");I.exports=function(s){return t>=51||!e(function(){var y=[],V=y.constructor={};return V[o]=function(){return{foo:1}},y[s](Boolean).foo!==1})}},11766:function(I,r,n){"use strict";var e=n(26735);I.exports=function(a,t){var o=[][a];return!!o&&e(function(){o.call(null,t||function(){return 1},1)})}},83214:function(I,r,n){"use strict";var e=n(20986),a=n(43269),t=n(17759),o=n(62022),s=TypeError,y="Reduce of empty array with no initial value",V=function(S){return function(p,i,l,f){var u=a(p),d=t(u),m=o(u);if(e(i),m===0&&l<2)throw new s(y);var c=S?m-1:0,v=S?-1:1;if(l<2)for(;;){if(c in d){f=d[c],c+=v;break}if(c+=v,S?c<0:m<=c)throw new s(y)}for(;S?c>=0:m>c;c+=v)c in d&&(f=i(f,d[c],c,u));return f}};I.exports={left:V(!1),right:V(!0)}},16399:function(I,r,n){"use strict";var e=n(47676),a=n(28728),t=TypeError,o=Object.getOwnPropertyDescriptor,s=e&&!function(){if(this!==void 0)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(y){return y instanceof TypeError}}();I.exports=s?function(y,V){if(a(y)&&!o(y,"length").writable)throw new t("Cannot set read only .length");return y.length=V}:function(y,V){return y.length=V}},7728:function(I,r,n){"use strict";var e=n(80576);I.exports=e([].slice)},38120:function(I,r,n){"use strict";var e=n(7728),a=Math.floor,t=function o(s,y){var V=s.length;if(V<8)for(var k=1,S,p;k0;)s[p]=s[--p];p!==k++&&(s[p]=S)}else for(var i=a(V/2),l=o(e(s,0,i),y),f=o(e(s,i),y),u=l.length,d=f.length,m=0,c=0;m1?arguments[1]:void 0),E;E=E?E.next:A.first;)for(T(E.value,E.key,this);E&&E.removed;)E=E.previous}return L}(),has:function(){function L(w){return!!B(this,w)}return L}()}),t(g,b?{get:function(){function L(w){var A=B(this,w);return A&&A.value}return L}(),set:function(){function L(w,A){return x(this,w===0?0:w,A)}return L}()}:{add:function(){function L(w){return x(this,w=w===0?0:w,w)}return L}()}),i&&a(g,"size",{configurable:!0,get:function(){function L(){return N(this).size}return L}()}),h}return m}(),setStrong:function(){function m(c,v,b){var C=v+" Iterator",h=d(v),g=d(C);k(c,v,function(N,x){u(this,{type:C,target:N,state:h(N),kind:x,last:void 0})},function(){for(var N=g(this),x=N.kind,B=N.last;B&&B.removed;)B=B.previous;return!N.target||!(N.last=B=B?B.next:N.state.first)?(N.target=void 0,S(void 0,!0)):S(x==="keys"?B.key:x==="values"?B.value:[B.key,B.value],!1)},b?"entries":"values",!b,!0),p(v)}return m}()}},37081:function(I,r,n){"use strict";var e=n(80576),a=n(91783),t=n(62232).getWeakData,o=n(38567),s=n(91191),y=n(79237),V=n(63762),k=n(8828),S=n(30205),p=n(3953),i=n(77341),l=i.set,f=i.getterFor,u=S.find,d=S.findIndex,m=e([].splice),c=0,v=function(g){return g.frozen||(g.frozen=new b)},b=function(){this.entries=[]},C=function(g,N){return u(g.entries,function(x){return x[0]===N})};b.prototype={get:function(){function h(g){var N=C(this,g);if(N)return N[1]}return h}(),has:function(){function h(g){return!!C(this,g)}return h}(),set:function(){function h(g,N){var x=C(this,g);x?x[1]=N:this.entries.push([g,N])}return h}(),delete:function(){function h(g){var N=d(this.entries,function(x){return x[0]===g});return~N&&m(this.entries,N,1),!!~N}return h}()},I.exports={getConstructor:function(){function h(g,N,x,B){var L=g(function(E,O){o(E,w),l(E,{type:N,id:c++,frozen:void 0}),y(O)||k(O,E[B],{that:E,AS_ENTRIES:x})}),w=L.prototype,A=f(N),T=function(){function E(O,P,R){var F=A(O),j=t(s(P),!0);return j===!0?v(F).set(P,R):j[F.id]=R,O}return E}();return a(w,{delete:function(){function E(O){var P=A(this);if(!V(O))return!1;var R=t(O);return R===!0?v(P).delete(O):R&&p(R,P.id)&&delete R[P.id]}return E}(),has:function(){function E(O){var P=A(this);if(!V(O))return!1;var R=t(O);return R===!0?v(P).has(O):R&&p(R,P.id)}return E}()}),a(w,x?{get:function(){function E(O){var P=A(this);if(V(O)){var R=t(O);return R===!0?v(P).get(O):R?R[P.id]:void 0}}return E}(),set:function(){function E(O,P){return T(this,O,P)}return E}()}:{add:function(){function E(O){return T(this,O,!0)}return E}()}),L}return h}()}},25796:function(I,r,n){"use strict";var e=n(72134),a=n(16203),t=n(80576),o=n(89644),s=n(73880),y=n(62232),V=n(8828),k=n(38567),S=n(8389),p=n(79237),i=n(63762),l=n(26735),f=n(65372),u=n(43087),d=n(99695);I.exports=function(m,c,v){var b=m.indexOf("Map")!==-1,C=m.indexOf("Weak")!==-1,h=b?"set":"add",g=a[m],N=g&&g.prototype,x=g,B={},L=function(F){var j=t(N[F]);s(N,F,F==="add"?function(){function U(_){return j(this,_===0?0:_),this}return U}():F==="delete"?function(U){return C&&!i(U)?!1:j(this,U===0?0:U)}:F==="get"?function(){function U(_){return C&&!i(_)?void 0:j(this,_===0?0:_)}return U}():F==="has"?function(){function U(_){return C&&!i(_)?!1:j(this,_===0?0:_)}return U}():function(){function U(_,K){return j(this,_===0?0:_,K),this}return U}())},w=o(m,!S(g)||!(C||N.forEach&&!l(function(){new g().entries().next()})));if(w)x=v.getConstructor(c,m,b,h),y.enable();else if(o(m,!0)){var A=new x,T=A[h](C?{}:-0,1)!==A,E=l(function(){A.has(1)}),O=f(function(R){new g(R)}),P=!C&&l(function(){for(var R=new g,F=5;F--;)R[h](F,F);return!R.has(-0)});O||(x=c(function(R,F){k(R,N);var j=d(new g,R,x);return p(F)||V(F,j[h],{that:j,AS_ENTRIES:b}),j}),x.prototype=N,N.constructor=x),(E||P)&&(L("delete"),L("has"),b&&L("get")),(P||T)&&L(h),C&&N.clear&&delete N.clear}return B[m]=x,e({global:!0,constructor:!0,forced:x!==g},B),u(x,m),C||v.setStrong(x,m,b),x}},81340:function(I,r,n){"use strict";var e=n(3953),a=n(27623),t=n(9747),o=n(3329);I.exports=function(s,y,V){for(var k=a(y),S=o.f,p=t.f,i=0;i"+p+""}},53649:function(I){"use strict";I.exports=function(r,n){return{value:r,done:n}}},75387:function(I,r,n){"use strict";var e=n(47676),a=n(3329),t=n(276);I.exports=e?function(o,s,y){return a.f(o,s,t(1,y))}:function(o,s,y){return o[s]=y,o}},276:function(I){"use strict";I.exports=function(r,n){return{enumerable:!(r&1),configurable:!(r&2),writable:!(r&4),value:n}}},4160:function(I,r,n){"use strict";var e=n(47676),a=n(3329),t=n(276);I.exports=function(o,s,y){e?a.f(o,s,t(0,y)):o[s]=y}},10684:function(I,r,n){"use strict";var e=n(80576),a=n(26735),t=n(12805).start,o=RangeError,s=isFinite,y=Math.abs,V=Date.prototype,k=V.toISOString,S=e(V.getTime),p=e(V.getUTCDate),i=e(V.getUTCFullYear),l=e(V.getUTCHours),f=e(V.getUTCMilliseconds),u=e(V.getUTCMinutes),d=e(V.getUTCMonth),m=e(V.getUTCSeconds);I.exports=a(function(){return k.call(new Date(-50000000000001))!=="0385-07-25T07:06:39.999Z"})||!a(function(){k.call(new Date(NaN))})?function(){function c(){if(!s(S(this)))throw new o("Invalid time value");var v=this,b=i(v),C=f(v),h=b<0?"-":b>9999?"+":"";return h+t(y(b),h?6:4,0)+"-"+t(d(v)+1,2,0)+"-"+t(p(v),2,0)+"T"+t(l(v),2,0)+":"+t(u(v),2,0)+":"+t(m(v),2,0)+"."+t(C,3,0)+"Z"}return c}():k},22968:function(I,r,n){"use strict";var e=n(91191),a=n(1918),t=TypeError;I.exports=function(o){if(e(this),o==="string"||o==="default")o="string";else if(o!=="number")throw new t("Incorrect hint");return a(this,o)}},67242:function(I,r,n){"use strict";var e=n(82683),a=n(3329);I.exports=function(t,o,s){return s.get&&e(s.get,o,{getter:!0}),s.set&&e(s.set,o,{setter:!0}),a.f(t,o,s)}},73880:function(I,r,n){"use strict";var e=n(8389),a=n(3329),t=n(82683),o=n(51481);I.exports=function(s,y,V,k){k||(k={});var S=k.enumerable,p=k.name!==void 0?k.name:y;if(e(V)&&t(V,p,k),k.global)S?s[y]=V:o(y,V);else{try{k.unsafe?s[y]&&(S=!0):delete s[y]}catch(i){}S?s[y]=V:a.f(s,y,{value:V,enumerable:!1,configurable:!k.nonConfigurable,writable:!k.nonWritable})}return s}},91783:function(I,r,n){"use strict";var e=n(73880);I.exports=function(a,t,o){for(var s in t)e(a,s,t[s],o);return a}},51481:function(I,r,n){"use strict";var e=n(16203),a=Object.defineProperty;I.exports=function(t,o){try{a(e,t,{value:o,configurable:!0,writable:!0})}catch(s){e[t]=o}return o}},25486:function(I,r,n){"use strict";var e=n(82823),a=TypeError;I.exports=function(t,o){if(!delete t[o])throw new a("Cannot delete property "+e(o)+" of "+e(t))}},47676:function(I,r,n){"use strict";var e=n(26735);I.exports=!e(function(){return Object.defineProperty({},1,{get:function(){function a(){return 7}return a}()})[1]!==7})},33191:function(I,r,n){"use strict";var e=n(16203),a=n(63762),t=e.document,o=a(t)&&a(t.createElement);I.exports=function(s){return o?t.createElement(s):{}}},44789:function(I){"use strict";var r=TypeError,n=9007199254740991;I.exports=function(e){if(e>n)throw r("Maximum allowed index exceeded");return e}},10258:function(I,r,n){"use strict";var e=n(2416),a=e.match(/firefox\/(\d+)/i);I.exports=!!a&&+a[1]},86922:function(I,r,n){"use strict";var e=n(88292),a=n(71488);I.exports=!e&&!a&&typeof window=="object"&&typeof document=="object"},70203:function(I){"use strict";I.exports=typeof Bun=="function"&&Bun&&typeof Bun.version=="string"},88292:function(I){"use strict";I.exports=typeof Deno=="object"&&Deno&&typeof Deno.version=="object"},75154:function(I,r,n){"use strict";var e=n(2416);I.exports=/MSIE|Trident/.test(e)},74892:function(I,r,n){"use strict";var e=n(2416);I.exports=/ipad|iphone|ipod/i.test(e)&&typeof Pebble!="undefined"},25383:function(I,r,n){"use strict";var e=n(2416);I.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(e)},71488:function(I,r,n){"use strict";var e=n(16203),a=n(83376);I.exports=a(e.process)==="process"},7213:function(I,r,n){"use strict";var e=n(2416);I.exports=/web0s(?!.*chrome)/i.test(e)},2416:function(I){"use strict";I.exports=typeof navigator!="undefined"&&String(navigator.userAgent)||""},3484:function(I,r,n){"use strict";var e=n(16203),a=n(2416),t=e.process,o=e.Deno,s=t&&t.versions||o&&o.version,y=s&&s.v8,V,k;y&&(V=y.split("."),k=V[0]>0&&V[0]<4?1:+(V[0]+V[1])),!k&&a&&(V=a.match(/Edge\/(\d+)/),(!V||V[1]>=74)&&(V=a.match(/Chrome\/(\d+)/),V&&(k=+V[1]))),I.exports=k},40312:function(I,r,n){"use strict";var e=n(2416),a=e.match(/AppleWebKit\/(\d+)\./);I.exports=!!a&&+a[1]},56007:function(I){"use strict";I.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},72134:function(I,r,n){"use strict";var e=n(16203),a=n(9747).f,t=n(75387),o=n(73880),s=n(51481),y=n(81340),V=n(89644);I.exports=function(k,S){var p=k.target,i=k.global,l=k.stat,f,u,d,m,c,v;if(i?u=e:l?u=e[p]||s(p,{}):u=e[p]&&e[p].prototype,u)for(d in S){if(c=S[d],k.dontCallGetSet?(v=a(u,d),m=v&&v.value):m=u[d],f=V(i?d:p+(l?".":"#")+d,k.forced),!f&&m!==void 0){if(typeof c==typeof m)continue;y(c,m)}(k.sham||m&&m.sham)&&t(c,"sham",!0),o(u,d,c,k)}}},26735:function(I){"use strict";I.exports=function(r){try{return!!r()}catch(n){return!0}}},36124:function(I,r,n){"use strict";n(67383);var e=n(81037),a=n(73880),t=n(81019),o=n(26735),s=n(92611),y=n(75387),V=s("species"),k=RegExp.prototype;I.exports=function(S,p,i,l){var f=s(S),u=!o(function(){var v={};return v[f]=function(){return 7},""[S](v)!==7}),d=u&&!o(function(){var v=!1,b=/a/;return S==="split"&&(b={},b.constructor={},b.constructor[V]=function(){return b},b.flags="",b[f]=/./[f]),b.exec=function(){return v=!0,null},b[f](""),!v});if(!u||!d||i){var m=/./[f],c=p(f,""[S],function(v,b,C,h,g){var N=b.exec;return N===t||N===k.exec?u&&!g?{done:!0,value:e(m,b,C,h)}:{done:!0,value:e(v,C,b,h)}:{done:!1}});a(String.prototype,S,c[0]),a(k,f,c[1])}l&&y(k[f],"sham",!0)}},35043:function(I,r,n){"use strict";var e=n(28728),a=n(62022),t=n(44789),o=n(41536),s=function y(V,k,S,p,i,l,f,u){for(var d=i,m=0,c=f?o(f,u):!1,v,b;m0&&e(v)?(b=a(v),d=y(V,k,v,b,d,l-1)-1):(t(d+1),V[d]=v),d++),m++;return d};I.exports=s},58680:function(I,r,n){"use strict";var e=n(26735);I.exports=!e(function(){return Object.isExtensible(Object.preventExtensions({}))})},81929:function(I,r,n){"use strict";var e=n(33976),a=Function.prototype,t=a.apply,o=a.call;I.exports=typeof Reflect=="object"&&Reflect.apply||(e?o.bind(t):function(){return o.apply(t,arguments)})},41536:function(I,r,n){"use strict";var e=n(93636),a=n(20986),t=n(33976),o=e(e.bind);I.exports=function(s,y){return a(s),y===void 0?s:t?o(s,y):function(){return s.apply(y,arguments)}}},33976:function(I,r,n){"use strict";var e=n(26735);I.exports=!e(function(){var a=function(){}.bind();return typeof a!="function"||a.hasOwnProperty("prototype")})},15062:function(I,r,n){"use strict";var e=n(80576),a=n(20986),t=n(63762),o=n(3953),s=n(7728),y=n(33976),V=Function,k=e([].concat),S=e([].join),p={},i=function(f,u,d){if(!o(p,u)){for(var m=[],c=0;c]*>)/g,k=/\$([$&'`]|\d{1,2})/g;I.exports=function(S,p,i,l,f,u){var d=i+S.length,m=l.length,c=k;return f!==void 0&&(f=a(f),c=V),s(u,c,function(v,b){var C;switch(o(b,0)){case"$":return"$";case"&":return S;case"`":return y(p,0,i);case"'":return y(p,d);case"<":C=f[y(b,1,-1)];break;default:var h=+b;if(h===0)return v;if(h>m){var g=t(h/10);return g===0?v:g<=m?l[g-1]===void 0?o(b,1):l[g-1]+o(b,1):v}C=l[h-1]}return C===void 0?"":C})}},16203:function(I,r,n){"use strict";var e=function(t){return t&&t.Math===Math&&t};I.exports=e(typeof globalThis=="object"&&globalThis)||e(typeof window=="object"&&window)||e(typeof self=="object"&&self)||e(typeof n.g=="object"&&n.g)||e(!1)||function(){return this}()||Function("return this")()},3953:function(I,r,n){"use strict";var e=n(80576),a=n(43269),t=e({}.hasOwnProperty);I.exports=Object.hasOwn||function(){function o(s,y){return t(a(s),y)}return o}()},58469:function(I){"use strict";I.exports={}},62613:function(I){"use strict";I.exports=function(r,n){try{arguments.length}catch(e){}}},69917:function(I,r,n){"use strict";var e=n(70663);I.exports=e("document","documentElement")},86429:function(I,r,n){"use strict";var e=n(47676),a=n(26735),t=n(33191);I.exports=!e&&!a(function(){return Object.defineProperty(t("div"),"a",{get:function(){function o(){return 7}return o}()}).a!==7})},31674:function(I){"use strict";var r=Array,n=Math.abs,e=Math.pow,a=Math.floor,t=Math.log,o=Math.LN2,s=function(k,S,p){var i=r(p),l=p*8-S-1,f=(1<>1,d=S===23?e(2,-24)-e(2,-77):0,m=k<0||k===0&&1/k<0?1:0,c=0,v,b,C;for(k=n(k),k!==k||k===1/0?(b=k!==k?1:0,v=f):(v=a(t(k)/o),C=e(2,-v),k*C<1&&(v--,C*=2),v+u>=1?k+=d/C:k+=d*e(2,1-u),k*C>=2&&(v++,C/=2),v+u>=f?(b=0,v=f):v+u>=1?(b=(k*C-1)*e(2,S),v+=u):(b=k*e(2,u-1)*e(2,S),v=0));S>=8;)i[c++]=b&255,b/=256,S-=8;for(v=v<0;)i[c++]=v&255,v/=256,l-=8;return i[--c]|=m*128,i},y=function(k,S){var p=k.length,i=p*8-S-1,l=(1<>1,u=i-7,d=p-1,m=k[d--],c=m&127,v;for(m>>=7;u>0;)c=c*256+k[d--],u-=8;for(v=c&(1<<-u)-1,c>>=-u,u+=S;u>0;)v=v*256+k[d--],u-=8;if(c===0)c=1-f;else{if(c===l)return v?NaN:m?-1/0:1/0;v+=e(2,S),c-=f}return(m?-1:1)*v*e(2,c-S)};I.exports={pack:s,unpack:y}},17759:function(I,r,n){"use strict";var e=n(80576),a=n(26735),t=n(83376),o=Object,s=e("".split);I.exports=a(function(){return!o("z").propertyIsEnumerable(0)})?function(y){return t(y)==="String"?s(y,""):o(y)}:o},99695:function(I,r,n){"use strict";var e=n(8389),a=n(63762),t=n(19191);I.exports=function(o,s,y){var V,k;return t&&e(V=s.constructor)&&V!==y&&a(k=V.prototype)&&k!==y.prototype&&t(o,k),o}},60986:function(I,r,n){"use strict";var e=n(80576),a=n(8389),t=n(4845),o=e(Function.toString);a(t.inspectSource)||(t.inspectSource=function(s){return o(s)}),I.exports=t.inspectSource},62232:function(I,r,n){"use strict";var e=n(72134),a=n(80576),t=n(58469),o=n(63762),s=n(3953),y=n(3329).f,V=n(8288),k=n(64586),S=n(74428),p=n(91072),i=n(58680),l=!1,f=p("meta"),u=0,d=function(g){y(g,f,{value:{objectID:"O"+u++,weakData:{}}})},m=function(g,N){if(!o(g))return typeof g=="symbol"?g:(typeof g=="string"?"S":"P")+g;if(!s(g,f)){if(!S(g))return"F";if(!N)return"E";d(g)}return g[f].objectID},c=function(g,N){if(!s(g,f)){if(!S(g))return!0;if(!N)return!1;d(g)}return g[f].weakData},v=function(g){return i&&l&&S(g)&&!s(g,f)&&d(g),g},b=function(){C.enable=function(){},l=!0;var g=V.f,N=a([].splice),x={};x[f]=1,g(x).length&&(V.f=function(B){for(var L=g(B),w=0,A=L.length;wB;B++)if(w=O(u[B]),w&&V(f,w))return w;return new l(!1)}N=k(u,x)}for(A=b?u.next:N.next;!(T=a(A,N)).done;){try{w=O(T.value)}catch(P){p(N,"throw",P)}if(typeof w=="object"&&w&&V(f,w))return w}return new l(!1)}},70451:function(I,r,n){"use strict";var e=n(81037),a=n(91191),t=n(4270);I.exports=function(o,s,y){var V,k;a(o);try{if(V=t(o,"return"),!V){if(s==="throw")throw y;return y}V=e(V,o)}catch(S){k=!0,V=S}if(s==="throw")throw y;if(k)throw V;return a(V),y}},33082:function(I,r,n){"use strict";var e=n(51497).IteratorPrototype,a=n(54792),t=n(276),o=n(43087),s=n(44333),y=function(){return this};I.exports=function(V,k,S,p){var i=k+" Iterator";return V.prototype=a(e,{next:t(+!p,S)}),o(V,i,!1,!0),s[i]=y,V}},80160:function(I,r,n){"use strict";var e=n(72134),a=n(81037),t=n(61147),o=n(97310),s=n(8389),y=n(33082),V=n(97139),k=n(19191),S=n(43087),p=n(75387),i=n(73880),l=n(92611),f=n(44333),u=n(51497),d=o.PROPER,m=o.CONFIGURABLE,c=u.IteratorPrototype,v=u.BUGGY_SAFARI_ITERATORS,b=l("iterator"),C="keys",h="values",g="entries",N=function(){return this};I.exports=function(x,B,L,w,A,T,E){y(L,B,w);var O=function($){if($===A&&U)return U;if(!v&&$&&$ in F)return F[$];switch($){case C:return function(){function se(){return new L(this,$)}return se}();case h:return function(){function se(){return new L(this,$)}return se}();case g:return function(){function se(){return new L(this,$)}return se}()}return function(){return new L(this)}},P=B+" Iterator",R=!1,F=x.prototype,j=F[b]||F["@@iterator"]||A&&F[A],U=!v&&j||O(A),_=B==="Array"&&F.entries||j,K,Y,G;if(_&&(K=V(_.call(new x)),K!==Object.prototype&&K.next&&(!t&&V(K)!==c&&(k?k(K,c):s(K[b])||i(K,b,N)),S(K,P,!0,!0),t&&(f[P]=N))),d&&A===h&&j&&j.name!==h&&(!t&&m?p(F,"name",h):(R=!0,U=function(){function ne(){return a(j,this)}return ne}())),A)if(Y={values:O(h),keys:T?U:O(C),entries:O(g)},E)for(G in Y)(v||R||!(G in F))&&i(F,G,Y[G]);else e({target:B,proto:!0,forced:v||R},Y);return(!t||E)&&F[b]!==U&&i(F,b,U,{name:A}),f[B]=U,Y}},51497:function(I,r,n){"use strict";var e=n(26735),a=n(8389),t=n(63762),o=n(54792),s=n(97139),y=n(73880),V=n(92611),k=n(61147),S=V("iterator"),p=!1,i,l,f;[].keys&&(f=[].keys(),"next"in f?(l=s(s(f)),l!==Object.prototype&&(i=l)):p=!0);var u=!t(i)||e(function(){var d={};return i[S].call(d)!==d});u?i={}:k&&(i=o(i)),a(i[S])||y(i,S,function(){return this}),I.exports={IteratorPrototype:i,BUGGY_SAFARI_ITERATORS:p}},44333:function(I){"use strict";I.exports={}},62022:function(I,r,n){"use strict";var e=n(40046);I.exports=function(a){return e(a.length)}},82683:function(I,r,n){"use strict";var e=n(80576),a=n(26735),t=n(8389),o=n(3953),s=n(47676),y=n(97310).CONFIGURABLE,V=n(60986),k=n(77341),S=k.enforce,p=k.get,i=String,l=Object.defineProperty,f=e("".slice),u=e("".replace),d=e([].join),m=s&&!a(function(){return l(function(){},"length",{value:8}).length!==8}),c=String(String).split("String"),v=I.exports=function(b,C,h){f(i(C),0,7)==="Symbol("&&(C="["+u(i(C),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),h&&h.getter&&(C="get "+C),h&&h.setter&&(C="set "+C),(!o(b,"name")||y&&b.name!==C)&&(s?l(b,"name",{value:C,configurable:!0}):b.name=C),m&&h&&o(h,"arity")&&b.length!==h.arity&&l(b,"length",{value:h.arity});try{h&&o(h,"constructor")&&h.constructor?s&&l(b,"prototype",{writable:!1}):b.prototype&&(b.prototype=void 0)}catch(N){}var g=S(b);return o(g,"source")||(g.source=d(c,typeof C=="string"?C:"")),b};Function.prototype.toString=v(function(){function b(){return t(this)&&p(this).source||V(this)}return b}(),"toString")},85746:function(I){"use strict";var r=Math.expm1,n=Math.exp;I.exports=!r||r(10)>22025.465794806718||r(10)<22025.465794806718||r(-2e-17)!==-2e-17?function(){function e(a){var t=+a;return t===0?t:t>-1e-6&&t<1e-6?t+t*t/2:n(t)-1}return e}():r},2332:function(I,r,n){"use strict";var e=n(3686),a=Math.abs,t=2220446049250313e-31,o=1/t,s=function(V){return V+o-o};I.exports=function(y,V,k,S){var p=+y,i=a(p),l=e(p);if(ik||u!==u?l*(1/0):l*u}},74033:function(I,r,n){"use strict";var e=n(2332),a=11920928955078125e-23,t=34028234663852886e22,o=11754943508222875e-54;I.exports=Math.fround||function(){function s(y){return e(y,a,t,o)}return s}()},98124:function(I){"use strict";var r=Math.log,n=Math.LOG10E;I.exports=Math.log10||function(){function e(a){return r(a)*n}return e}()},39724:function(I){"use strict";var r=Math.log;I.exports=Math.log1p||function(){function n(e){var a=+e;return a>-1e-8&&a<1e-8?a-a*a/2:r(1+a)}return n}()},3686:function(I){"use strict";I.exports=Math.sign||function(){function r(n){var e=+n;return e===0||e!==e?e:e<0?-1:1}return r}()},20213:function(I){"use strict";var r=Math.ceil,n=Math.floor;I.exports=Math.trunc||function(){function e(a){var t=+a;return(t>0?n:r)(t)}return e}()},62083:function(I,r,n){"use strict";var e=n(16203),a=n(62397),t=n(41536),o=n(66825).set,s=n(26665),y=n(25383),V=n(74892),k=n(7213),S=n(71488),p=e.MutationObserver||e.WebKitMutationObserver,i=e.document,l=e.process,f=e.Promise,u=a("queueMicrotask"),d,m,c,v,b;if(!u){var C=new s,h=function(){var N,x;for(S&&(N=l.domain)&&N.exit();x=C.get();)try{x()}catch(B){throw C.head&&d(),B}N&&N.enter()};!y&&!S&&!k&&p&&i?(m=!0,c=i.createTextNode(""),new p(h).observe(c,{characterData:!0}),d=function(){c.data=m=!m}):!V&&f&&f.resolve?(v=f.resolve(void 0),v.constructor=f,b=t(v.then,v),d=function(){b(h)}):S?d=function(){l.nextTick(h)}:(o=t(o,e),d=function(){o(h)}),u=function(N){C.head||d(),C.add(N)}}I.exports=u},72347:function(I,r,n){"use strict";var e=n(20986),a=TypeError,t=function(s){var y,V;this.promise=new s(function(k,S){if(y!==void 0||V!==void 0)throw new a("Bad Promise constructor");y=k,V=S}),this.resolve=e(y),this.reject=e(V)};I.exports.f=function(o){return new t(o)}},4143:function(I,r,n){"use strict";var e=n(68196),a=TypeError;I.exports=function(t){if(e(t))throw new a("The method doesn't accept regular expressions");return t}},58728:function(I,r,n){"use strict";var e=n(16203),a=e.isFinite;I.exports=Number.isFinite||function(){function t(o){return typeof o=="number"&&a(o)}return t}()},8576:function(I,r,n){"use strict";var e=n(16203),a=n(26735),t=n(80576),o=n(64319),s=n(4042).trim,y=n(56364),V=t("".charAt),k=e.parseFloat,S=e.Symbol,p=S&&S.iterator,i=1/k(y+"-0")!==-1/0||p&&!a(function(){k(Object(p))});I.exports=i?function(){function l(f){var u=s(o(f)),d=k(u);return d===0&&V(u,0)==="-"?-0:d}return l}():k},38735:function(I,r,n){"use strict";var e=n(16203),a=n(26735),t=n(80576),o=n(64319),s=n(4042).trim,y=n(56364),V=e.parseInt,k=e.Symbol,S=k&&k.iterator,p=/^[+-]?0x/i,i=t(p.exec),l=V(y+"08")!==8||V(y+"0x16")!==22||S&&!a(function(){V(Object(S))});I.exports=l?function(){function f(u,d){var m=s(o(u));return V(m,d>>>0||(i(p,m)?16:10))}return f}():V},1925:function(I,r,n){"use strict";var e=n(47676),a=n(80576),t=n(81037),o=n(26735),s=n(57904),y=n(5797),V=n(85845),k=n(43269),S=n(17759),p=Object.assign,i=Object.defineProperty,l=a([].concat);I.exports=!p||o(function(){if(e&&p({b:1},p(i({},"a",{enumerable:!0,get:function(){function c(){i(this,"b",{value:3,enumerable:!1})}return c}()}),{b:2})).b!==1)return!0;var f={},u={},d=Symbol("assign detection"),m="abcdefghijklmnopqrst";return f[d]=7,m.split("").forEach(function(c){u[c]=c}),p({},f)[d]!==7||s(p({},u)).join("")!==m})?function(){function f(u,d){for(var m=k(u),c=arguments.length,v=1,b=y.f,C=V.f;c>v;)for(var h=S(arguments[v++]),g=b?l(s(h),b(h)):s(h),N=g.length,x=0,B;N>x;)B=g[x++],(!e||t(C,h,B))&&(m[B]=h[B]);return m}return f}():p},54792:function(I,r,n){"use strict";var e=n(91191),a=n(86513),t=n(56007),o=n(58469),s=n(69917),y=n(33191),V=n(10647),k=">",S="<",p="prototype",i="script",l=V("IE_PROTO"),f=function(){},u=function(C){return S+i+k+C+S+"/"+i+k},d=function(C){C.write(u("")),C.close();var h=C.parentWindow.Object;return C=null,h},m=function(){var C=y("iframe"),h="java"+i+":",g;return C.style.display="none",s.appendChild(C),C.src=String(h),g=C.contentWindow.document,g.open(),g.write(u("document.F=Object")),g.close(),g.F},c,v=function(){try{c=new ActiveXObject("htmlfile")}catch(h){}v=typeof document!="undefined"?document.domain&&c?d(c):m():d(c);for(var C=t.length;C--;)delete v[p][t[C]];return v()};o[l]=!0,I.exports=Object.create||function(){function b(C,h){var g;return C!==null?(f[p]=e(C),g=new f,f[p]=null,g[l]=C):g=v(),h===void 0?g:a.f(g,h)}return b}()},86513:function(I,r,n){"use strict";var e=n(47676),a=n(2142),t=n(3329),o=n(91191),s=n(1381),y=n(57904);r.f=e&&!a?Object.defineProperties:function(){function V(k,S){o(k);for(var p=s(S),i=y(S),l=i.length,f=0,u;l>f;)t.f(k,u=i[f++],p[u]);return k}return V}()},3329:function(I,r,n){"use strict";var e=n(47676),a=n(86429),t=n(2142),o=n(91191),s=n(38041),y=TypeError,V=Object.defineProperty,k=Object.getOwnPropertyDescriptor,S="enumerable",p="configurable",i="writable";r.f=e?t?function(){function l(f,u,d){if(o(f),u=s(u),o(d),typeof f=="function"&&u==="prototype"&&"value"in d&&i in d&&!d[i]){var m=k(f,u);m&&m[i]&&(f[u]=d.value,d={configurable:p in d?d[p]:m[p],enumerable:S in d?d[S]:m[S],writable:!1})}return V(f,u,d)}return l}():V:function(){function l(f,u,d){if(o(f),u=s(u),o(d),a)try{return V(f,u,d)}catch(m){}if("get"in d||"set"in d)throw new y("Accessors not supported");return"value"in d&&(f[u]=d.value),f}return l}()},9747:function(I,r,n){"use strict";var e=n(47676),a=n(81037),t=n(85845),o=n(276),s=n(1381),y=n(38041),V=n(3953),k=n(86429),S=Object.getOwnPropertyDescriptor;r.f=e?S:function(){function p(i,l){if(i=s(i),l=y(l),k)try{return S(i,l)}catch(f){}if(V(i,l))return o(!a(t.f,i,l),i[l])}return p}()},64586:function(I,r,n){"use strict";var e=n(83376),a=n(1381),t=n(8288).f,o=n(7728),s=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],y=function(k){try{return t(k)}catch(S){return o(s)}};I.exports.f=function(){function V(k){return s&&e(k)==="Window"?y(k):t(a(k))}return V}()},8288:function(I,r,n){"use strict";var e=n(57844),a=n(56007),t=a.concat("length","prototype");r.f=Object.getOwnPropertyNames||function(){function o(s){return e(s,t)}return o}()},5797:function(I,r){"use strict";r.f=Object.getOwnPropertySymbols},97139:function(I,r,n){"use strict";var e=n(3953),a=n(8389),t=n(43269),o=n(10647),s=n(85187),y=o("IE_PROTO"),V=Object,k=V.prototype;I.exports=s?V.getPrototypeOf:function(S){var p=t(S);if(e(p,y))return p[y];var i=p.constructor;return a(i)&&p instanceof i?i.prototype:p instanceof V?k:null}},74428:function(I,r,n){"use strict";var e=n(26735),a=n(63762),t=n(83376),o=n(12116),s=Object.isExtensible,y=e(function(){s(1)});I.exports=y||o?function(){function V(k){return!a(k)||o&&t(k)==="ArrayBuffer"?!1:s?s(k):!0}return V}():s},88457:function(I,r,n){"use strict";var e=n(80576);I.exports=e({}.isPrototypeOf)},57844:function(I,r,n){"use strict";var e=n(80576),a=n(3953),t=n(1381),o=n(54065).indexOf,s=n(58469),y=e([].push);I.exports=function(V,k){var S=t(V),p=0,i=[],l;for(l in S)!a(s,l)&&a(S,l)&&y(i,l);for(;k.length>p;)a(S,l=k[p++])&&(~o(i,l)||y(i,l));return i}},57904:function(I,r,n){"use strict";var e=n(57844),a=n(56007);I.exports=Object.keys||function(){function t(o){return e(o,a)}return t}()},85845:function(I,r){"use strict";var n={}.propertyIsEnumerable,e=Object.getOwnPropertyDescriptor,a=e&&!n.call({1:2},1);r.f=a?function(){function t(o){var s=e(this,o);return!!s&&s.enumerable}return t}():n},36807:function(I,r,n){"use strict";var e=n(61147),a=n(16203),t=n(26735),o=n(40312);I.exports=e||!t(function(){if(!(o&&o<535)){var s=Math.random();__defineSetter__.call(null,s,function(){}),delete a[s]}})},19191:function(I,r,n){"use strict";var e=n(30850),a=n(63762),t=n(76310),o=n(71442);I.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var s=!1,y={},V;try{V=e(Object.prototype,"__proto__","set"),V(y,[]),s=y instanceof Array}catch(k){}return function(){function k(S,p){return t(S),o(p),a(S)&&(s?V(S,p):S.__proto__=p),S}return k}()}():void 0)},61941:function(I,r,n){"use strict";var e=n(47676),a=n(26735),t=n(80576),o=n(97139),s=n(57904),y=n(1381),V=n(85845).f,k=t(V),S=t([].push),p=e&&a(function(){var l=Object.create(null);return l[2]=2,!k(l,2)}),i=function(f){return function(u){for(var d=y(u),m=s(d),c=p&&o(d)===null,v=m.length,b=0,C=[],h;v>b;)h=m[b++],(!e||(c?h in d:k(d,h)))&&S(C,f?[h,d[h]]:d[h]);return C}};I.exports={entries:i(!0),values:i(!1)}},37131:function(I,r,n){"use strict";var e=n(88476),a=n(39851);I.exports=e?{}.toString:function(){function t(){return"[object "+a(this)+"]"}return t}()},1918:function(I,r,n){"use strict";var e=n(81037),a=n(8389),t=n(63762),o=TypeError;I.exports=function(s,y){var V,k;if(y==="string"&&a(V=s.toString)&&!t(k=e(V,s))||a(V=s.valueOf)&&!t(k=e(V,s))||y!=="string"&&a(V=s.toString)&&!t(k=e(V,s)))return k;throw new o("Can't convert object to primitive value")}},27623:function(I,r,n){"use strict";var e=n(70663),a=n(80576),t=n(8288),o=n(5797),s=n(91191),y=a([].concat);I.exports=e("Reflect","ownKeys")||function(){function V(k){var S=t.f(s(k)),p=o.f;return p?y(S,p(k)):S}return V}()},25871:function(I,r,n){"use strict";var e=n(16203);I.exports=e},58175:function(I){"use strict";I.exports=function(r){try{return{error:!1,value:r()}}catch(n){return{error:!0,value:n}}}},20468:function(I,r,n){"use strict";var e=n(16203),a=n(70390),t=n(8389),o=n(89644),s=n(60986),y=n(92611),V=n(86922),k=n(88292),S=n(61147),p=n(3484),i=a&&a.prototype,l=y("species"),f=!1,u=t(e.PromiseRejectionEvent),d=o("Promise",function(){var m=s(a),c=m!==String(a);if(!c&&p===66||S&&!(i.catch&&i.finally))return!0;if(!p||p<51||!/native code/.test(m)){var v=new a(function(h){h(1)}),b=function(g){g(function(){},function(){})},C=v.constructor={};if(C[l]=b,f=v.then(function(){})instanceof b,!f)return!0}return!c&&(V||k)&&!u});I.exports={CONSTRUCTOR:d,REJECTION_EVENT:u,SUBCLASSING:f}},70390:function(I,r,n){"use strict";var e=n(16203);I.exports=e.Promise},25838:function(I,r,n){"use strict";var e=n(91191),a=n(63762),t=n(72347);I.exports=function(o,s){if(e(o),a(s)&&s.constructor===o)return s;var y=t.f(o),V=y.resolve;return V(s),y.promise}},91609:function(I,r,n){"use strict";var e=n(70390),a=n(65372),t=n(20468).CONSTRUCTOR;I.exports=t||!a(function(o){e.all(o).then(void 0,function(){})})},80384:function(I,r,n){"use strict";var e=n(3329).f;I.exports=function(a,t,o){o in a||e(a,o,{configurable:!0,get:function(){function s(){return t[o]}return s}(),set:function(){function s(y){t[o]=y}return s}()})}},26665:function(I){"use strict";var r=function(){this.head=null,this.tail=null};r.prototype={add:function(){function n(e){var a={item:e,next:null},t=this.tail;t?t.next=a:this.head=a,this.tail=a}return n}(),get:function(){function n(){var e=this.head;if(e){var a=this.head=e.next;return a===null&&(this.tail=null),e.item}}return n}()},I.exports=r},17530:function(I,r,n){"use strict";var e=n(81037),a=n(91191),t=n(8389),o=n(83376),s=n(81019),y=TypeError;I.exports=function(V,k){var S=V.exec;if(t(S)){var p=e(S,V,k);return p!==null&&a(p),p}if(o(V)==="RegExp")return e(s,V,k);throw new y("RegExp#exec called on incompatible receiver")}},81019:function(I,r,n){"use strict";var e=n(81037),a=n(80576),t=n(64319),o=n(2075),s=n(96109),y=n(31809),V=n(54792),k=n(77341).get,S=n(54243),p=n(93070),i=y("native-string-replace",String.prototype.replace),l=RegExp.prototype.exec,f=l,u=a("".charAt),d=a("".indexOf),m=a("".replace),c=a("".slice),v=function(){var g=/a/,N=/b*/g;return e(l,g,"a"),e(l,N,"a"),g.lastIndex!==0||N.lastIndex!==0}(),b=s.BROKEN_CARET,C=/()??/.exec("")[1]!==void 0,h=v||C||b||S||p;h&&(f=function(){function g(N){var x=this,B=k(x),L=t(N),w=B.raw,A,T,E,O,P,R,F;if(w)return w.lastIndex=x.lastIndex,A=e(f,w,L),x.lastIndex=w.lastIndex,A;var j=B.groups,U=b&&x.sticky,_=e(o,x),K=x.source,Y=0,G=L;if(U&&(_=m(_,"y",""),d(_,"g")===-1&&(_+="g"),G=c(L,x.lastIndex),x.lastIndex>0&&(!x.multiline||x.multiline&&u(L,x.lastIndex-1)!=="\n")&&(K="(?: "+K+")",G=" "+G,Y++),T=new RegExp("^(?:"+K+")",_)),C&&(T=new RegExp("^"+K+"$(?!\\s)",_)),v&&(E=x.lastIndex),O=e(l,U?T:x,G),U?O?(O.input=c(O.input,Y),O[0]=c(O[0],Y),O.index=x.lastIndex,x.lastIndex+=O[0].length):x.lastIndex=0:v&&O&&(x.lastIndex=x.global?O.index+O[0].length:E),C&&O&&O.length>1&&e(i,O[0],T,function(){for(P=1;Pb)","g");return o.exec("b").groups.a!=="b"||"b".replace(o,"$c")!=="bc"})},76310:function(I,r,n){"use strict";var e=n(79237),a=TypeError;I.exports=function(t){if(e(t))throw new a("Can't call method on "+t);return t}},62397:function(I,r,n){"use strict";var e=n(16203),a=n(47676),t=Object.getOwnPropertyDescriptor;I.exports=function(o){if(!a)return e[o];var s=t(e,o);return s&&s.value}},72926:function(I){"use strict";I.exports=Object.is||function(){function r(n,e){return n===e?n!==0||1/n===1/e:n!==n&&e!==e}return r}()},81779:function(I,r,n){"use strict";var e=n(16203),a=n(81929),t=n(8389),o=n(70203),s=n(2416),y=n(7728),V=n(66828),k=e.Function,S=/MSIE .\./.test(s)||o&&function(){var p=e.Bun.version.split(".");return p.length<3||p[0]==="0"&&(p[1]<3||p[1]==="3"&&p[2]==="0")}();I.exports=function(p,i){var l=i?2:1;return S?function(f,u){var d=V(arguments.length,1)>l,m=t(f)?f:k(f),c=d?y(arguments,l):[],v=d?function(){a(m,this,c)}:m;return i?p(v,u):p(v)}:p}},56417:function(I,r,n){"use strict";var e=n(70663),a=n(67242),t=n(92611),o=n(47676),s=t("species");I.exports=function(y){var V=e(y);o&&V&&!V[s]&&a(V,s,{configurable:!0,get:function(){function k(){return this}return k}()})}},43087:function(I,r,n){"use strict";var e=n(3329).f,a=n(3953),t=n(92611),o=t("toStringTag");I.exports=function(s,y,V){s&&!V&&(s=s.prototype),s&&!a(s,o)&&e(s,o,{configurable:!0,value:y})}},10647:function(I,r,n){"use strict";var e=n(31809),a=n(91072),t=e("keys");I.exports=function(o){return t[o]||(t[o]=a(o))}},4845:function(I,r,n){"use strict";var e=n(61147),a=n(16203),t=n(51481),o="__core-js_shared__",s=I.exports=a[o]||t(o,{});(s.versions||(s.versions=[])).push({version:"3.37.0",mode:e?"pure":"global",copyright:"\xA9 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.37.0/LICENSE",source:"https://github.com/zloirock/core-js"})},31809:function(I,r,n){"use strict";var e=n(4845);I.exports=function(a,t){return e[a]||(e[a]=t||{})}},23237:function(I,r,n){"use strict";var e=n(91191),a=n(23788),t=n(79237),o=n(92611),s=o("species");I.exports=function(y,V){var k=e(y).constructor,S;return k===void 0||t(S=e(k)[s])?V:a(S)}},19461:function(I,r,n){"use strict";var e=n(26735);I.exports=function(a){return e(function(){var t=""[a]('"');return t!==t.toLowerCase()||t.split('"').length>3})}},94567:function(I,r,n){"use strict";var e=n(80576),a=n(38283),t=n(64319),o=n(76310),s=e("".charAt),y=e("".charCodeAt),V=e("".slice),k=function(p){return function(i,l){var f=t(o(i)),u=a(l),d=f.length,m,c;return u<0||u>=d?p?"":void 0:(m=y(f,u),m<55296||m>56319||u+1===d||(c=y(f,u+1))<56320||c>57343?p?s(f,u):m:p?V(f,u,u+2):(m-55296<<10)+(c-56320)+65536)}};I.exports={codeAt:k(!1),charAt:k(!0)}},62311:function(I,r,n){"use strict";var e=n(2416);I.exports=/Version\/10(?:\.\d+){1,2}(?: [\w./]+)?(?: Mobile\/\w+)? Safari\//.test(e)},12805:function(I,r,n){"use strict";var e=n(80576),a=n(40046),t=n(64319),o=n(68861),s=n(76310),y=e(o),V=e("".slice),k=Math.ceil,S=function(i){return function(l,f,u){var d=t(s(l)),m=a(f),c=d.length,v=u===void 0?" ":t(u),b,C;return m<=c||v===""?d:(b=m-c,C=y(v,k(b/v.length)),C.length>b&&(C=V(C,0,b)),i?d+C:C+d)}};I.exports={start:S(!1),end:S(!0)}},68861:function(I,r,n){"use strict";var e=n(38283),a=n(64319),t=n(76310),o=RangeError;I.exports=function(){function s(y){var V=a(t(this)),k="",S=e(y);if(S<0||S===1/0)throw new o("Wrong number of repetitions");for(;S>0;(S>>>=1)&&(V+=V))S&1&&(k+=V);return k}return s}()},55810:function(I,r,n){"use strict";var e=n(4042).end,a=n(13458);I.exports=a("trimEnd")?function(){function t(){return e(this)}return t}():"".trimEnd},13458:function(I,r,n){"use strict";var e=n(97310).PROPER,a=n(26735),t=n(56364),o="\u200B\x85\u180E";I.exports=function(s){return a(function(){return!!t[s]()||o[s]()!==o||e&&t[s].name!==s})}},92287:function(I,r,n){"use strict";var e=n(4042).start,a=n(13458);I.exports=a("trimStart")?function(){function t(){return e(this)}return t}():"".trimStart},4042:function(I,r,n){"use strict";var e=n(80576),a=n(76310),t=n(64319),o=n(56364),s=e("".replace),y=RegExp("^["+o+"]+"),V=RegExp("(^|[^"+o+"])["+o+"]+$"),k=function(p){return function(i){var l=t(a(i));return p&1&&(l=s(l,y,"")),p&2&&(l=s(l,V,"$1")),l}};I.exports={start:k(1),end:k(2),trim:k(3)}},14943:function(I,r,n){"use strict";var e=n(3484),a=n(26735),t=n(16203),o=t.String;I.exports=!!Object.getOwnPropertySymbols&&!a(function(){var s=Symbol("symbol detection");return!o(s)||!(Object(s)instanceof Symbol)||!Symbol.sham&&e&&e<41})},67122:function(I,r,n){"use strict";var e=n(81037),a=n(70663),t=n(92611),o=n(73880);I.exports=function(){var s=a("Symbol"),y=s&&s.prototype,V=y&&y.valueOf,k=t("toPrimitive");y&&!y[k]&&o(y,k,function(S){return e(V,this)},{arity:1})}},75440:function(I,r,n){"use strict";var e=n(14943);I.exports=e&&!!Symbol.for&&!!Symbol.keyFor},66825:function(I,r,n){"use strict";var e=n(16203),a=n(81929),t=n(41536),o=n(8389),s=n(3953),y=n(26735),V=n(69917),k=n(7728),S=n(33191),p=n(66828),i=n(25383),l=n(71488),f=e.setImmediate,u=e.clearImmediate,d=e.process,m=e.Dispatch,c=e.Function,v=e.MessageChannel,b=e.String,C=0,h={},g="onreadystatechange",N,x,B,L;y(function(){N=e.location});var w=function(P){if(s(h,P)){var R=h[P];delete h[P],R()}},A=function(P){return function(){w(P)}},T=function(P){w(P.data)},E=function(P){e.postMessage(b(P),N.protocol+"//"+N.host)};(!f||!u)&&(f=function(){function O(P){p(arguments.length,1);var R=o(P)?P:c(P),F=k(arguments,1);return h[++C]=function(){a(R,void 0,F)},x(C),C}return O}(),u=function(){function O(P){delete h[P]}return O}(),l?x=function(P){d.nextTick(A(P))}:m&&m.now?x=function(P){m.now(A(P))}:v&&!i?(B=new v,L=B.port2,B.port1.onmessage=T,x=t(L.postMessage,L)):e.addEventListener&&o(e.postMessage)&&!e.importScripts&&N&&N.protocol!=="file:"&&!y(E)?(x=E,e.addEventListener("message",T,!1)):g in S("script")?x=function(P){V.appendChild(S("script"))[g]=function(){V.removeChild(this),w(P)}}:x=function(P){setTimeout(A(P),0)}),I.exports={set:f,clear:u}},54744:function(I,r,n){"use strict";var e=n(80576);I.exports=e(1 .valueOf)},44874:function(I,r,n){"use strict";var e=n(38283),a=Math.max,t=Math.min;I.exports=function(o,s){var y=e(o);return y<0?a(y+s,0):t(y,s)}},12382:function(I,r,n){"use strict";var e=n(39833),a=TypeError;I.exports=function(t){var o=e(t,"number");if(typeof o=="number")throw new a("Can't convert number to bigint");return BigInt(o)}},38768:function(I,r,n){"use strict";var e=n(38283),a=n(40046),t=RangeError;I.exports=function(o){if(o===void 0)return 0;var s=e(o),y=a(s);if(s!==y)throw new t("Wrong length or index");return y}},1381:function(I,r,n){"use strict";var e=n(17759),a=n(76310);I.exports=function(t){return e(a(t))}},38283:function(I,r,n){"use strict";var e=n(20213);I.exports=function(a){var t=+a;return t!==t||t===0?0:e(t)}},40046:function(I,r,n){"use strict";var e=n(38283),a=Math.min;I.exports=function(t){var o=e(t);return o>0?a(o,9007199254740991):0}},43269:function(I,r,n){"use strict";var e=n(76310),a=Object;I.exports=function(t){return a(e(t))}},50181:function(I,r,n){"use strict";var e=n(94646),a=RangeError;I.exports=function(t,o){var s=e(t);if(s%o)throw new a("Wrong offset");return s}},94646:function(I,r,n){"use strict";var e=n(38283),a=RangeError;I.exports=function(t){var o=e(t);if(o<0)throw new a("The argument can't be less than 0");return o}},39833:function(I,r,n){"use strict";var e=n(81037),a=n(63762),t=n(47541),o=n(4270),s=n(1918),y=n(92611),V=TypeError,k=y("toPrimitive");I.exports=function(S,p){if(!a(S)||t(S))return S;var i=o(S,k),l;if(i){if(p===void 0&&(p="default"),l=e(i,S,p),!a(l)||t(l))return l;throw new V("Can't convert object to primitive value")}return p===void 0&&(p="number"),s(S,p)}},38041:function(I,r,n){"use strict";var e=n(39833),a=n(47541);I.exports=function(t){var o=e(t,"string");return a(o)?o:o+""}},88476:function(I,r,n){"use strict";var e=n(92611),a=e("toStringTag"),t={};t[a]="z",I.exports=String(t)==="[object z]"},64319:function(I,r,n){"use strict";var e=n(39851),a=String;I.exports=function(t){if(e(t)==="Symbol")throw new TypeError("Cannot convert a Symbol value to a string");return a(t)}},57471:function(I){"use strict";var r=Math.round;I.exports=function(n){var e=r(n);return e<0?0:e>255?255:e&255}},82823:function(I){"use strict";var r=String;I.exports=function(n){try{return r(n)}catch(e){return"Object"}}},13471:function(I,r,n){"use strict";var e=n(72134),a=n(16203),t=n(81037),o=n(47676),s=n(43157),y=n(94084),V=n(89050),k=n(38567),S=n(276),p=n(75387),i=n(78839),l=n(40046),f=n(38768),u=n(50181),d=n(57471),m=n(38041),c=n(3953),v=n(39851),b=n(63762),C=n(47541),h=n(54792),g=n(88457),N=n(19191),x=n(8288).f,B=n(12323),L=n(30205).forEach,w=n(56417),A=n(67242),T=n(3329),E=n(9747),O=n(90106),P=n(77341),R=n(99695),F=P.get,j=P.set,U=P.enforce,_=T.f,K=E.f,Y=a.RangeError,G=V.ArrayBuffer,ne=G.prototype,$=V.DataView,se=y.NATIVE_ARRAY_BUFFER_VIEWS,Ne=y.TYPED_ARRAY_TAG,be=y.TypedArray,xe=y.TypedArrayPrototype,Ie=y.isTypedArray,Te="BYTES_PER_ELEMENT",he="Wrong length",Q=function(fe,we){A(fe,we,{configurable:!0,get:function(){function M(){return F(this)[we]}return M}()})},X=function(fe){var we;return g(ne,fe)||(we=v(fe))==="ArrayBuffer"||we==="SharedArrayBuffer"},te=function(fe,we){return Ie(fe)&&!C(we)&&we in fe&&i(+we)&&we>=0},q=function(){function Ve(fe,we){return we=m(we),te(fe,we)?S(2,fe[we]):K(fe,we)}return Ve}(),ce=function(){function Ve(fe,we,M){return we=m(we),te(fe,we)&&b(M)&&c(M,"value")&&!c(M,"get")&&!c(M,"set")&&!M.configurable&&(!c(M,"writable")||M.writable)&&(!c(M,"enumerable")||M.enumerable)?(fe[we]=M.value,fe):_(fe,we,M)}return Ve}();o?(se||(E.f=q,T.f=ce,Q(xe,"buffer"),Q(xe,"byteOffset"),Q(xe,"byteLength"),Q(xe,"length")),e({target:"Object",stat:!0,forced:!se},{getOwnPropertyDescriptor:q,defineProperty:ce}),I.exports=function(Ve,fe,we){var M=Ve.match(/\d+/)[0]/8,J=Ve+(we?"Clamped":"")+"Array",re="get"+Ve,ue="set"+Ve,ie=a[J],ge=ie,Ce=ge&&ge.prototype,Ae={},De=function(W,oe){var ve=F(W);return ve.view[re](oe*M+ve.byteOffset,!0)},Se=function(W,oe,ve){var ye=F(W);ye.view[ue](oe*M+ye.byteOffset,we?d(ve):ve,!0)},me=function(W,oe){_(W,oe,{get:function(){function ve(){return De(this,oe)}return ve}(),set:function(){function ve(ye){return Se(this,oe,ye)}return ve}(),enumerable:!0})};se?s&&(ge=fe(function(Be,W,oe,ve){return k(Be,Ce),R(function(){return b(W)?X(W)?ve!==void 0?new ie(W,u(oe,M),ve):oe!==void 0?new ie(W,u(oe,M)):new ie(W):Ie(W)?O(ge,W):t(B,ge,W):new ie(f(W))}(),Be,ge)}),N&&N(ge,be),L(x(ie),function(Be){Be in ge||p(ge,Be,ie[Be])}),ge.prototype=Ce):(ge=fe(function(Be,W,oe,ve){k(Be,Ce);var ye=0,Le=0,Ee,Oe,Me;if(!b(W))Me=f(W),Oe=Me*M,Ee=new G(Oe);else if(X(W)){Ee=W,Le=u(oe,M);var je=W.byteLength;if(ve===void 0){if(je%M)throw new Y(he);if(Oe=je-Le,Oe<0)throw new Y(he)}else if(Oe=l(ve)*M,Oe+Le>je)throw new Y(he);Me=Oe/M}else return Ie(W)?O(ge,W):t(B,ge,W);for(j(Be,{buffer:Ee,byteOffset:Le,byteLength:Oe,length:Me,view:new $(Ee)});ye1?arguments[1]:void 0,v=c!==void 0,b=V(d),C,h,g,N,x,B,L,w;if(b&&!k(b))for(L=y(d,b),w=L.next,d=[];!(B=a(w,L)).done;)d.push(B.value);for(v&&m>2&&(c=e(c,arguments[2])),h=s(d),g=new(p(u))(h),N=S(g),C=0;h>C;C++)x=v?c(d[C],C):d[C],g[C]=N?i(x):+x;return g}return l}()},46132:function(I,r,n){"use strict";var e=n(94084),a=n(23237),t=e.aTypedArrayConstructor,o=e.getTypedArrayConstructor;I.exports=function(s){return t(a(s,o(s)))}},91072:function(I,r,n){"use strict";var e=n(80576),a=0,t=Math.random(),o=e(1 .toString);I.exports=function(s){return"Symbol("+(s===void 0?"":s)+")_"+o(++a+t,36)}},66800:function(I,r,n){"use strict";var e=n(14943);I.exports=e&&!Symbol.sham&&typeof Symbol.iterator=="symbol"},2142:function(I,r,n){"use strict";var e=n(47676),a=n(26735);I.exports=e&&a(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42})},66828:function(I){"use strict";var r=TypeError;I.exports=function(n,e){if(n=51||!a(function(){var c=[];return c[f]=!1,c.concat()[0]!==c}),d=function(v){if(!o(v))return!1;var b=v[f];return b!==void 0?!!b:t(v)},m=!u||!p("concat");e({target:"Array",proto:!0,arity:1,forced:m},{concat:function(){function c(v){var b=s(this),C=S(b,0),h=0,g,N,x,B,L;for(g=-1,x=arguments.length;g1?arguments[1]:void 0)}return s}()})},42075:function(I,r,n){"use strict";var e=n(72134),a=n(41733),t=n(46677);e({target:"Array",proto:!0},{fill:a}),t("fill")},37672:function(I,r,n){"use strict";var e=n(72134),a=n(30205).filter,t=n(56981),o=t("filter");e({target:"Array",proto:!0,forced:!o},{filter:function(){function s(y){return a(this,y,arguments.length>1?arguments[1]:void 0)}return s}()})},91140:function(I,r,n){"use strict";var e=n(72134),a=n(30205).findIndex,t=n(46677),o="findIndex",s=!0;o in[]&&Array(1)[o](function(){s=!1}),e({target:"Array",proto:!0,forced:s},{findIndex:function(){function y(V){return a(this,V,arguments.length>1?arguments[1]:void 0)}return y}()}),t(o)},73297:function(I,r,n){"use strict";var e=n(72134),a=n(30205).find,t=n(46677),o="find",s=!0;o in[]&&Array(1)[o](function(){s=!1}),e({target:"Array",proto:!0,forced:s},{find:function(){function y(V){return a(this,V,arguments.length>1?arguments[1]:void 0)}return y}()}),t(o)},46494:function(I,r,n){"use strict";var e=n(72134),a=n(35043),t=n(20986),o=n(43269),s=n(62022),y=n(48525);e({target:"Array",proto:!0},{flatMap:function(){function V(k){var S=o(this),p=s(S),i;return t(k),i=y(S,0),i.length=a(i,S,S,p,0,1,k,arguments.length>1?arguments[1]:void 0),i}return V}()})},25710:function(I,r,n){"use strict";var e=n(72134),a=n(35043),t=n(43269),o=n(62022),s=n(38283),y=n(48525);e({target:"Array",proto:!0},{flat:function(){function V(){var k=arguments.length?arguments[0]:void 0,S=t(this),p=o(S),i=y(S,0);return i.length=a(i,S,S,p,0,k===void 0?1:s(k)),i}return V}()})},82013:function(I,r,n){"use strict";var e=n(72134),a=n(62571);e({target:"Array",proto:!0,forced:[].forEach!==a},{forEach:a})},20650:function(I,r,n){"use strict";var e=n(72134),a=n(36332),t=n(65372),o=!t(function(s){Array.from(s)});e({target:"Array",stat:!0,forced:o},{from:a})},78951:function(I,r,n){"use strict";var e=n(72134),a=n(54065).includes,t=n(26735),o=n(46677),s=t(function(){return!Array(1).includes()});e({target:"Array",proto:!0,forced:s},{includes:function(){function y(V){return a(this,V,arguments.length>1?arguments[1]:void 0)}return y}()}),o("includes")},2860:function(I,r,n){"use strict";var e=n(72134),a=n(93636),t=n(54065).indexOf,o=n(11766),s=a([].indexOf),y=!!s&&1/s([1],1,-0)<0,V=y||!o("indexOf");e({target:"Array",proto:!0,forced:V},{indexOf:function(){function k(S){var p=arguments.length>1?arguments[1]:void 0;return y?s(this,S,p)||0:t(this,S,p)}return k}()})},11050:function(I,r,n){"use strict";var e=n(72134),a=n(28728);e({target:"Array",stat:!0},{isArray:a})},66240:function(I,r,n){"use strict";var e=n(1381),a=n(46677),t=n(44333),o=n(77341),s=n(3329).f,y=n(80160),V=n(53649),k=n(61147),S=n(47676),p="Array Iterator",i=o.set,l=o.getterFor(p);I.exports=y(Array,"Array",function(u,d){i(this,{type:p,target:e(u),index:0,kind:d})},function(){var u=l(this),d=u.target,m=u.index++;if(!d||m>=d.length)return u.target=void 0,V(void 0,!0);switch(u.kind){case"keys":return V(m,!1);case"values":return V(d[m],!1)}return V([m,d[m]],!1)},"values");var f=t.Arguments=t.Array;if(a("keys"),a("values"),a("entries"),!k&&S&&f.name!=="values")try{s(f,"name",{value:"values"})}catch(u){}},11238:function(I,r,n){"use strict";var e=n(72134),a=n(80576),t=n(17759),o=n(1381),s=n(11766),y=a([].join),V=t!==Object,k=V||!s("join",",");e({target:"Array",proto:!0,forced:k},{join:function(){function S(p){return y(o(this),p===void 0?",":p)}return S}()})},1225:function(I,r,n){"use strict";var e=n(72134),a=n(41931);e({target:"Array",proto:!0,forced:a!==[].lastIndexOf},{lastIndexOf:a})},23742:function(I,r,n){"use strict";var e=n(72134),a=n(30205).map,t=n(56981),o=t("map");e({target:"Array",proto:!0,forced:!o},{map:function(){function s(y){return a(this,y,arguments.length>1?arguments[1]:void 0)}return s}()})},92059:function(I,r,n){"use strict";var e=n(72134),a=n(26735),t=n(86781),o=n(4160),s=Array,y=a(function(){function V(){}return!(s.of.call(V)instanceof V)});e({target:"Array",stat:!0,forced:y},{of:function(){function V(){for(var k=0,S=arguments.length,p=new(t(this)?this:s)(S);S>k;)o(p,k,arguments[k++]);return p.length=S,p}return V}()})},81631:function(I,r,n){"use strict";var e=n(72134),a=n(83214).right,t=n(11766),o=n(3484),s=n(71488),y=!s&&o>79&&o<83,V=y||!t("reduceRight");e({target:"Array",proto:!0,forced:V},{reduceRight:function(){function k(S){return a(this,S,arguments.length,arguments.length>1?arguments[1]:void 0)}return k}()})},5656:function(I,r,n){"use strict";var e=n(72134),a=n(83214).left,t=n(11766),o=n(3484),s=n(71488),y=!s&&o>79&&o<83,V=y||!t("reduce");e({target:"Array",proto:!0,forced:V},{reduce:function(){function k(S){var p=arguments.length;return a(this,S,p,p>1?arguments[1]:void 0)}return k}()})},74282:function(I,r,n){"use strict";var e=n(72134),a=n(80576),t=n(28728),o=a([].reverse),s=[1,2];e({target:"Array",proto:!0,forced:String(s)===String(s.reverse())},{reverse:function(){function y(){return t(this)&&(this.length=this.length),o(this)}return y}()})},33390:function(I,r,n){"use strict";var e=n(72134),a=n(28728),t=n(86781),o=n(63762),s=n(44874),y=n(62022),V=n(1381),k=n(4160),S=n(92611),p=n(56981),i=n(7728),l=p("slice"),f=S("species"),u=Array,d=Math.max;e({target:"Array",proto:!0,forced:!l},{slice:function(){function m(c,v){var b=V(this),C=y(b),h=s(c,C),g=s(v===void 0?C:v,C),N,x,B;if(a(b)&&(N=b.constructor,t(N)&&(N===u||a(N.prototype))?N=void 0:o(N)&&(N=N[f],N===null&&(N=void 0)),N===u||N===void 0))return i(b,h,g);for(x=new(N===void 0?u:N)(d(g-h,0)),B=0;h1?arguments[1]:void 0)}return s}()})},31822:function(I,r,n){"use strict";var e=n(72134),a=n(80576),t=n(20986),o=n(43269),s=n(62022),y=n(25486),V=n(64319),k=n(26735),S=n(38120),p=n(11766),i=n(10258),l=n(75154),f=n(3484),u=n(40312),d=[],m=a(d.sort),c=a(d.push),v=k(function(){d.sort(void 0)}),b=k(function(){d.sort(null)}),C=p("sort"),h=!k(function(){if(f)return f<70;if(!(i&&i>3)){if(l)return!0;if(u)return u<603;var x="",B,L,w,A;for(B=65;B<76;B++){switch(L=String.fromCharCode(B),B){case 66:case 69:case 70:case 72:w=3;break;case 68:case 71:w=4;break;default:w=2}for(A=0;A<47;A++)d.push({k:L+A,v:w})}for(d.sort(function(T,E){return E.v-T.v}),A=0;AV(w)?1:-1}};e({target:"Array",proto:!0,forced:g},{sort:function(){function x(B){B!==void 0&&t(B);var L=o(this);if(h)return B===void 0?m(L):m(L,B);var w=[],A=s(L),T,E;for(E=0;Eb-N+g;B--)p(v,B-1)}else if(g>N)for(B=b-N;B>C;B--)L=B+N-1,w=B+g-1,L in v?v[w]=v[L]:p(v,w);for(B=0;B9490626562425156e-8?o(p)+y:a(p-1+s(p-1)*s(p+1))}return k}()})},67110:function(I,r,n){"use strict";var e=n(72134),a=Math.asinh,t=Math.log,o=Math.sqrt;function s(V){var k=+V;return!isFinite(k)||k===0?k:k<0?-s(-k):t(k+o(k*k+1))}var y=!(a&&1/a(0)>0);e({target:"Math",stat:!0,forced:y},{asinh:s})},81365:function(I,r,n){"use strict";var e=n(72134),a=Math.atanh,t=Math.log,o=!(a&&1/a(-0)<0);e({target:"Math",stat:!0,forced:o},{atanh:function(){function s(y){var V=+y;return V===0?V:t((1+V)/(1-V))/2}return s}()})},94796:function(I,r,n){"use strict";var e=n(72134),a=n(3686),t=Math.abs,o=Math.pow;e({target:"Math",stat:!0},{cbrt:function(){function s(y){var V=+y;return a(V)*o(t(V),.3333333333333333)}return s}()})},30373:function(I,r,n){"use strict";var e=n(72134),a=Math.floor,t=Math.log,o=Math.LOG2E;e({target:"Math",stat:!0},{clz32:function(){function s(y){var V=y>>>0;return V?31-a(t(V+.5)*o):32}return s}()})},49426:function(I,r,n){"use strict";var e=n(72134),a=n(85746),t=Math.cosh,o=Math.abs,s=Math.E,y=!t||t(710)===1/0;e({target:"Math",stat:!0,forced:y},{cosh:function(){function V(k){var S=a(o(k)-1)+1;return(S+1/(S*s*s))*(s/2)}return V}()})},71614:function(I,r,n){"use strict";var e=n(72134),a=n(85746);e({target:"Math",stat:!0,forced:a!==Math.expm1},{expm1:a})},84781:function(I,r,n){"use strict";var e=n(72134),a=n(74033);e({target:"Math",stat:!0},{fround:a})},1149:function(I,r,n){"use strict";var e=n(72134),a=Math.hypot,t=Math.abs,o=Math.sqrt,s=!!a&&a(1/0,NaN)!==1/0;e({target:"Math",stat:!0,arity:2,forced:s},{hypot:function(){function y(V,k){for(var S=0,p=0,i=arguments.length,l=0,f,u;p0?(u=f/l,S+=u*u):S+=f;return l===1/0?1/0:l*o(S)}return y}()})},28520:function(I,r,n){"use strict";var e=n(72134),a=n(26735),t=Math.imul,o=a(function(){return t(4294967295,5)!==-5||t.length!==2});e({target:"Math",stat:!0,forced:o},{imul:function(){function s(y,V){var k=65535,S=+y,p=+V,i=k&S,l=k&p;return 0|i*l+((k&S>>>16)*l+i*(k&p>>>16)<<16>>>0)}return s}()})},87552:function(I,r,n){"use strict";var e=n(72134),a=n(98124);e({target:"Math",stat:!0},{log10:a})},29600:function(I,r,n){"use strict";var e=n(72134),a=n(39724);e({target:"Math",stat:!0},{log1p:a})},10679:function(I,r,n){"use strict";var e=n(72134),a=Math.log,t=Math.LN2;e({target:"Math",stat:!0},{log2:function(){function o(s){return a(s)/t}return o}()})},58794:function(I,r,n){"use strict";var e=n(72134),a=n(3686);e({target:"Math",stat:!0},{sign:a})},89353:function(I,r,n){"use strict";var e=n(72134),a=n(26735),t=n(85746),o=Math.abs,s=Math.exp,y=Math.E,V=a(function(){return Math.sinh(-2e-17)!==-2e-17});e({target:"Math",stat:!0,forced:V},{sinh:function(){function k(S){var p=+S;return o(p)<1?(t(p)-t(-p))/2:(s(p-1)-s(-p-1))*(y/2)}return k}()})},67634:function(I,r,n){"use strict";var e=n(72134),a=n(85746),t=Math.exp;e({target:"Math",stat:!0},{tanh:function(){function o(s){var y=+s,V=a(y),k=a(-y);return V===1/0?1:k===1/0?-1:(V-k)/(t(y)+t(-y))}return o}()})},90479:function(I,r,n){"use strict";var e=n(43087);e(Math,"Math",!0)},87385:function(I,r,n){"use strict";var e=n(72134),a=n(20213);e({target:"Math",stat:!0},{trunc:a})},81103:function(I,r,n){"use strict";var e=n(72134),a=n(61147),t=n(47676),o=n(16203),s=n(25871),y=n(80576),V=n(89644),k=n(3953),S=n(99695),p=n(88457),i=n(47541),l=n(39833),f=n(26735),u=n(8288).f,d=n(9747).f,m=n(3329).f,c=n(54744),v=n(4042).trim,b="Number",C=o[b],h=s[b],g=C.prototype,N=o.TypeError,x=y("".slice),B=y("".charCodeAt),L=function(R){var F=l(R,"number");return typeof F=="bigint"?F:w(F)},w=function(R){var F=l(R,"number"),j,U,_,K,Y,G,ne,$;if(i(F))throw new N("Cannot convert a Symbol value to a number");if(typeof F=="string"&&F.length>2){if(F=v(F),j=B(F,0),j===43||j===45){if(U=B(F,2),U===88||U===120)return NaN}else if(j===48){switch(B(F,1)){case 66:case 98:_=2,K=49;break;case 79:case 111:_=8,K=55;break;default:return+F}for(Y=x(F,2),G=Y.length,ne=0;neK)return NaN;return parseInt(Y,_)}}return+F},A=V(b,!C(" 0o1")||!C("0b1")||C("+0x1")),T=function(R){return p(g,R)&&f(function(){c(R)})},E=function(){function P(R){var F=arguments.length<1?0:C(L(R));return T(this)?S(Object(F),this,E):F}return P}();E.prototype=g,A&&!a&&(g.constructor=E),e({global:!0,constructor:!0,wrap:!0,forced:A},{Number:E});var O=function(R,F){for(var j=t?u(F):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),U=0,_;j.length>U;U++)k(F,_=j[U])&&!k(R,_)&&m(R,_,d(F,_))};a&&h&&O(s[b],h),(A||a)&&O(s[b],C)},49486:function(I,r,n){"use strict";var e=n(72134);e({target:"Number",stat:!0,nonConfigurable:!0,nonWritable:!0},{EPSILON:Math.pow(2,-52)})},88516:function(I,r,n){"use strict";var e=n(72134),a=n(58728);e({target:"Number",stat:!0},{isFinite:a})},1645:function(I,r,n){"use strict";var e=n(72134),a=n(78839);e({target:"Number",stat:!0},{isInteger:a})},24966:function(I,r,n){"use strict";var e=n(72134);e({target:"Number",stat:!0},{isNaN:function(){function a(t){return t!==t}return a}()})},83709:function(I,r,n){"use strict";var e=n(72134),a=n(78839),t=Math.abs;e({target:"Number",stat:!0},{isSafeInteger:function(){function o(s){return a(s)&&t(s)<=9007199254740991}return o}()})},2057:function(I,r,n){"use strict";var e=n(72134);e({target:"Number",stat:!0,nonConfigurable:!0,nonWritable:!0},{MAX_SAFE_INTEGER:9007199254740991})},579:function(I,r,n){"use strict";var e=n(72134);e({target:"Number",stat:!0,nonConfigurable:!0,nonWritable:!0},{MIN_SAFE_INTEGER:-9007199254740991})},45188:function(I,r,n){"use strict";var e=n(72134),a=n(8576);e({target:"Number",stat:!0,forced:Number.parseFloat!==a},{parseFloat:a})},99619:function(I,r,n){"use strict";var e=n(72134),a=n(38735);e({target:"Number",stat:!0,forced:Number.parseInt!==a},{parseInt:a})},46684:function(I,r,n){"use strict";var e=n(72134),a=n(80576),t=n(38283),o=n(54744),s=n(68861),y=n(26735),V=RangeError,k=String,S=Math.floor,p=a(s),i=a("".slice),l=a(1 .toFixed),f=function b(C,h,g){return h===0?g:h%2===1?b(C,h-1,g*C):b(C*C,h/2,g)},u=function(C){for(var h=0,g=C;g>=4096;)h+=12,g/=4096;for(;g>=2;)h+=1,g/=2;return h},d=function(C,h,g){for(var N=-1,x=g;++N<6;)x+=h*C[N],C[N]=x%1e7,x=S(x/1e7)},m=function(C,h){for(var g=6,N=0;--g>=0;)N+=C[g],C[g]=S(N/h),N=N%h*1e7},c=function(C){for(var h=6,g="";--h>=0;)if(g!==""||h===0||C[h]!==0){var N=k(C[h]);g=g===""?N:g+p("0",7-N.length)+N}return g},v=y(function(){return l(8e-5,3)!=="0.000"||l(.9,0)!=="1"||l(1.255,2)!=="1.25"||l(0xde0b6b3a7640080,0)!=="1000000000000000128"})||!y(function(){l({})});e({target:"Number",proto:!0,forced:v},{toFixed:function(){function b(C){var h=o(this),g=t(C),N=[0,0,0,0,0,0],x="",B="0",L,w,A,T;if(g<0||g>20)throw new V("Incorrect fraction digits");if(h!==h)return"NaN";if(h<=-1e21||h>=1e21)return k(h);if(h<0&&(x="-",h=-h),h>1e-21)if(L=u(h*f(2,69,1))-69,w=L<0?h*f(2,-L,1):h/f(2,L,1),w*=4503599627370496,L=52-L,L>0){for(d(N,0,w),A=g;A>=7;)d(N,1e7,0),A-=7;for(d(N,f(10,A,1),0),A=L-1;A>=23;)m(N,8388608),A-=23;m(N,1<0?(T=B.length,B=x+(T<=g?"0."+p("0",g-T)+B:i(B,0,T-g)+"."+i(B,T-g))):B=x+B,B}return b}()})},80070:function(I,r,n){"use strict";var e=n(72134),a=n(80576),t=n(26735),o=n(54744),s=a(1 .toPrecision),y=t(function(){return s(1,void 0)!=="1"})||!t(function(){s({})});e({target:"Number",proto:!0,forced:y},{toPrecision:function(){function V(k){return k===void 0?s(o(this)):s(o(this),k)}return V}()})},20461:function(I,r,n){"use strict";var e=n(72134),a=n(1925);e({target:"Object",stat:!0,arity:2,forced:Object.assign!==a},{assign:a})},4272:function(I,r,n){"use strict";var e=n(72134),a=n(47676),t=n(54792);e({target:"Object",stat:!0,sham:!a},{create:t})},32707:function(I,r,n){"use strict";var e=n(72134),a=n(47676),t=n(36807),o=n(20986),s=n(43269),y=n(3329);a&&e({target:"Object",proto:!0,forced:t},{__defineGetter__:function(){function V(k,S){y.f(s(this),k,{get:o(S),enumerable:!0,configurable:!0})}return V}()})},83161:function(I,r,n){"use strict";var e=n(72134),a=n(47676),t=n(86513).f;e({target:"Object",stat:!0,forced:Object.defineProperties!==t,sham:!a},{defineProperties:t})},76937:function(I,r,n){"use strict";var e=n(72134),a=n(47676),t=n(3329).f;e({target:"Object",stat:!0,forced:Object.defineProperty!==t,sham:!a},{defineProperty:t})},46247:function(I,r,n){"use strict";var e=n(72134),a=n(47676),t=n(36807),o=n(20986),s=n(43269),y=n(3329);a&&e({target:"Object",proto:!0,forced:t},{__defineSetter__:function(){function V(k,S){y.f(s(this),k,{set:o(S),enumerable:!0,configurable:!0})}return V}()})},36978:function(I,r,n){"use strict";var e=n(72134),a=n(61941).entries;e({target:"Object",stat:!0},{entries:function(){function t(o){return a(o)}return t}()})},90363:function(I,r,n){"use strict";var e=n(72134),a=n(58680),t=n(26735),o=n(63762),s=n(62232).onFreeze,y=Object.freeze,V=t(function(){y(1)});e({target:"Object",stat:!0,forced:V,sham:!a},{freeze:function(){function k(S){return y&&o(S)?y(s(S)):S}return k}()})},27281:function(I,r,n){"use strict";var e=n(72134),a=n(8828),t=n(4160);e({target:"Object",stat:!0},{fromEntries:function(){function o(s){var y={};return a(s,function(V,k){t(y,V,k)},{AS_ENTRIES:!0}),y}return o}()})},57659:function(I,r,n){"use strict";var e=n(72134),a=n(26735),t=n(1381),o=n(9747).f,s=n(47676),y=!s||a(function(){o(1)});e({target:"Object",stat:!0,forced:y,sham:!s},{getOwnPropertyDescriptor:function(){function V(k,S){return o(t(k),S)}return V}()})},65294:function(I,r,n){"use strict";var e=n(72134),a=n(47676),t=n(27623),o=n(1381),s=n(9747),y=n(4160);e({target:"Object",stat:!0,sham:!a},{getOwnPropertyDescriptors:function(){function V(k){for(var S=o(k),p=s.f,i=t(S),l={},f=0,u,d;i.length>f;)d=p(S,u=i[f++]),d!==void 0&&y(l,u,d);return l}return V}()})},66744:function(I,r,n){"use strict";var e=n(72134),a=n(26735),t=n(64586).f,o=a(function(){return!Object.getOwnPropertyNames(1)});e({target:"Object",stat:!0,forced:o},{getOwnPropertyNames:t})},69053:function(I,r,n){"use strict";var e=n(72134),a=n(14943),t=n(26735),o=n(5797),s=n(43269),y=!a||t(function(){o.f(1)});e({target:"Object",stat:!0,forced:y},{getOwnPropertySymbols:function(){function V(k){var S=o.f;return S?S(s(k)):[]}return V}()})},80347:function(I,r,n){"use strict";var e=n(72134),a=n(26735),t=n(43269),o=n(97139),s=n(85187),y=a(function(){o(1)});e({target:"Object",stat:!0,forced:y,sham:!s},{getPrototypeOf:function(){function V(k){return o(t(k))}return V}()})},67316:function(I,r,n){"use strict";var e=n(72134),a=n(74428);e({target:"Object",stat:!0,forced:Object.isExtensible!==a},{isExtensible:a})},1507:function(I,r,n){"use strict";var e=n(72134),a=n(26735),t=n(63762),o=n(83376),s=n(12116),y=Object.isFrozen,V=s||a(function(){y(1)});e({target:"Object",stat:!0,forced:V},{isFrozen:function(){function k(S){return!t(S)||s&&o(S)==="ArrayBuffer"?!0:y?y(S):!1}return k}()})},57805:function(I,r,n){"use strict";var e=n(72134),a=n(26735),t=n(63762),o=n(83376),s=n(12116),y=Object.isSealed,V=s||a(function(){y(1)});e({target:"Object",stat:!0,forced:V},{isSealed:function(){function k(S){return!t(S)||s&&o(S)==="ArrayBuffer"?!0:y?y(S):!1}return k}()})},56100:function(I,r,n){"use strict";var e=n(72134),a=n(72926);e({target:"Object",stat:!0},{is:a})},45432:function(I,r,n){"use strict";var e=n(72134),a=n(43269),t=n(57904),o=n(26735),s=o(function(){t(1)});e({target:"Object",stat:!0,forced:s},{keys:function(){function y(V){return t(a(V))}return y}()})},90356:function(I,r,n){"use strict";var e=n(72134),a=n(47676),t=n(36807),o=n(43269),s=n(38041),y=n(97139),V=n(9747).f;a&&e({target:"Object",proto:!0,forced:t},{__lookupGetter__:function(){function k(S){var p=o(this),i=s(S),l;do if(l=V(p,i))return l.get;while(p=y(p))}return k}()})},70640:function(I,r,n){"use strict";var e=n(72134),a=n(47676),t=n(36807),o=n(43269),s=n(38041),y=n(97139),V=n(9747).f;a&&e({target:"Object",proto:!0,forced:t},{__lookupSetter__:function(){function k(S){var p=o(this),i=s(S),l;do if(l=V(p,i))return l.set;while(p=y(p))}return k}()})},38047:function(I,r,n){"use strict";var e=n(72134),a=n(63762),t=n(62232).onFreeze,o=n(58680),s=n(26735),y=Object.preventExtensions,V=s(function(){y(1)});e({target:"Object",stat:!0,forced:V,sham:!o},{preventExtensions:function(){function k(S){return y&&a(S)?y(t(S)):S}return k}()})},90853:function(I,r,n){"use strict";var e=n(72134),a=n(63762),t=n(62232).onFreeze,o=n(58680),s=n(26735),y=Object.seal,V=s(function(){y(1)});e({target:"Object",stat:!0,forced:V,sham:!o},{seal:function(){function k(S){return y&&a(S)?y(t(S)):S}return k}()})},52159:function(I,r,n){"use strict";var e=n(72134),a=n(19191);e({target:"Object",stat:!0},{setPrototypeOf:a})},85411:function(I,r,n){"use strict";var e=n(88476),a=n(73880),t=n(37131);e||a(Object.prototype,"toString",t,{unsafe:!0})},82578:function(I,r,n){"use strict";var e=n(72134),a=n(61941).values;e({target:"Object",stat:!0},{values:function(){function t(o){return a(o)}return t}()})},11051:function(I,r,n){"use strict";var e=n(72134),a=n(8576);e({global:!0,forced:parseFloat!==a},{parseFloat:a})},90892:function(I,r,n){"use strict";var e=n(72134),a=n(38735);e({global:!0,forced:parseInt!==a},{parseInt:a})},78563:function(I,r,n){"use strict";var e=n(72134),a=n(81037),t=n(20986),o=n(72347),s=n(58175),y=n(8828),V=n(91609);e({target:"Promise",stat:!0,forced:V},{all:function(){function k(S){var p=this,i=o.f(p),l=i.resolve,f=i.reject,u=s(function(){var d=t(p.resolve),m=[],c=0,v=1;y(S,function(b){var C=c++,h=!1;v++,a(d,p,b).then(function(g){h||(h=!0,m[C]=g,--v||l(m))},f)}),--v||l(m)});return u.error&&f(u.value),i.promise}return k}()})},27491:function(I,r,n){"use strict";var e=n(72134),a=n(61147),t=n(20468).CONSTRUCTOR,o=n(70390),s=n(70663),y=n(8389),V=n(73880),k=o&&o.prototype;if(e({target:"Promise",proto:!0,forced:t,real:!0},{catch:function(){function p(i){return this.then(void 0,i)}return p}()}),!a&&y(o)){var S=s("Promise").prototype.catch;k.catch!==S&&V(k,"catch",S,{unsafe:!0})}},68276:function(I,r,n){"use strict";var e=n(72134),a=n(61147),t=n(71488),o=n(16203),s=n(81037),y=n(73880),V=n(19191),k=n(43087),S=n(56417),p=n(20986),i=n(8389),l=n(63762),f=n(38567),u=n(23237),d=n(66825).set,m=n(62083),c=n(62613),v=n(58175),b=n(26665),C=n(77341),h=n(70390),g=n(20468),N=n(72347),x="Promise",B=g.CONSTRUCTOR,L=g.REJECTION_EVENT,w=g.SUBCLASSING,A=C.getterFor(x),T=C.set,E=h&&h.prototype,O=h,P=E,R=o.TypeError,F=o.document,j=o.process,U=N.f,_=U,K=!!(F&&F.createEvent&&o.dispatchEvent),Y="unhandledrejection",G="rejectionhandled",ne=0,$=1,se=2,Ne=1,be=2,xe,Ie,Te,he,Q=function(ue){var ie;return l(ue)&&i(ie=ue.then)?ie:!1},X=function(ue,ie){var ge=ie.value,Ce=ie.state===$,Ae=Ce?ue.ok:ue.fail,De=ue.resolve,Se=ue.reject,me=ue.domain,de,Be,W;try{Ae?(Ce||(ie.rejection===be&&fe(ie),ie.rejection=Ne),Ae===!0?de=ge:(me&&me.enter(),de=Ae(ge),me&&(me.exit(),W=!0)),de===ue.promise?Se(new R("Promise-chain cycle")):(Be=Q(de))?s(Be,de,De,Se):De(de)):Se(ge)}catch(oe){me&&!W&&me.exit(),Se(oe)}},te=function(ue,ie){ue.notified||(ue.notified=!0,m(function(){for(var ge=ue.reactions,Ce;Ce=ge.get();)X(Ce,ue);ue.notified=!1,ie&&!ue.rejection&&ce(ue)}))},q=function(ue,ie,ge){var Ce,Ae;K?(Ce=F.createEvent("Event"),Ce.promise=ie,Ce.reason=ge,Ce.initEvent(ue,!1,!0),o.dispatchEvent(Ce)):Ce={promise:ie,reason:ge},!L&&(Ae=o["on"+ue])?Ae(Ce):ue===Y&&c("Unhandled promise rejection",ge)},ce=function(ue){s(d,o,function(){var ie=ue.facade,ge=ue.value,Ce=Ve(ue),Ae;if(Ce&&(Ae=v(function(){t?j.emit("unhandledRejection",ge,ie):q(Y,ie,ge)}),ue.rejection=t||Ve(ue)?be:Ne,Ae.error))throw Ae.value})},Ve=function(ue){return ue.rejection!==Ne&&!ue.parent},fe=function(ue){s(d,o,function(){var ie=ue.facade;t?j.emit("rejectionHandled",ie):q(G,ie,ue.value)})},we=function(ue,ie,ge){return function(Ce){ue(ie,Ce,ge)}},M=function(ue,ie,ge){ue.done||(ue.done=!0,ge&&(ue=ge),ue.value=ie,ue.state=se,te(ue,!0))},J=function re(ue,ie,ge){if(!ue.done){ue.done=!0,ge&&(ue=ge);try{if(ue.facade===ie)throw new R("Promise can't be resolved itself");var Ce=Q(ie);Ce?m(function(){var Ae={done:!1};try{s(Ce,ie,we(re,Ae,ue),we(M,Ae,ue))}catch(De){M(Ae,De,ue)}}):(ue.value=ie,ue.state=$,te(ue,!1))}catch(Ae){M({done:!1},Ae,ue)}}};if(B&&(O=function(){function re(ue){f(this,P),p(ue),s(xe,this);var ie=A(this);try{ue(we(J,ie),we(M,ie))}catch(ge){M(ie,ge)}}return re}(),P=O.prototype,xe=function(){function re(ue){T(this,{type:x,done:!1,notified:!1,parent:!1,reactions:new b,rejection:!1,state:ne,value:void 0})}return re}(),xe.prototype=y(P,"then",function(){function re(ue,ie){var ge=A(this),Ce=U(u(this,O));return ge.parent=!0,Ce.ok=i(ue)?ue:!0,Ce.fail=i(ie)&&ie,Ce.domain=t?j.domain:void 0,ge.state===ne?ge.reactions.add(Ce):m(function(){X(Ce,ge)}),Ce.promise}return re}()),Ie=function(){var ue=new xe,ie=A(ue);this.promise=ue,this.resolve=we(J,ie),this.reject=we(M,ie)},N.f=U=function(ue){return ue===O||ue===Te?new Ie(ue):_(ue)},!a&&i(h)&&E!==Object.prototype)){he=E.then,w||y(E,"then",function(){function re(ue,ie){var ge=this;return new O(function(Ce,Ae){s(he,ge,Ce,Ae)}).then(ue,ie)}return re}(),{unsafe:!0});try{delete E.constructor}catch(re){}V&&V(E,P)}e({global:!0,constructor:!0,wrap:!0,forced:B},{Promise:O}),k(O,x,!1,!0),S(x)},89375:function(I,r,n){"use strict";var e=n(72134),a=n(61147),t=n(70390),o=n(26735),s=n(70663),y=n(8389),V=n(23237),k=n(25838),S=n(73880),p=t&&t.prototype,i=!!t&&o(function(){p.finally.call({then:function(){function f(){}return f}()},function(){})});if(e({target:"Promise",proto:!0,real:!0,forced:i},{finally:function(){function f(u){var d=V(this,s("Promise")),m=y(u);return this.then(m?function(c){return k(d,u()).then(function(){return c})}:u,m?function(c){return k(d,u()).then(function(){throw c})}:u)}return f}()}),!a&&y(t)){var l=s("Promise").prototype.finally;p.finally!==l&&S(p,"finally",l,{unsafe:!0})}},97426:function(I,r,n){"use strict";n(68276),n(78563),n(27491),n(88175),n(22665),n(5480)},88175:function(I,r,n){"use strict";var e=n(72134),a=n(81037),t=n(20986),o=n(72347),s=n(58175),y=n(8828),V=n(91609);e({target:"Promise",stat:!0,forced:V},{race:function(){function k(S){var p=this,i=o.f(p),l=i.reject,f=s(function(){var u=t(p.resolve);y(S,function(d){a(u,p,d).then(i.resolve,l)})});return f.error&&l(f.value),i.promise}return k}()})},22665:function(I,r,n){"use strict";var e=n(72134),a=n(72347),t=n(20468).CONSTRUCTOR;e({target:"Promise",stat:!0,forced:t},{reject:function(){function o(s){var y=a.f(this),V=y.reject;return V(s),y.promise}return o}()})},5480:function(I,r,n){"use strict";var e=n(72134),a=n(70663),t=n(61147),o=n(70390),s=n(20468).CONSTRUCTOR,y=n(25838),V=a("Promise"),k=t&&!s;e({target:"Promise",stat:!0,forced:t||s},{resolve:function(){function S(p){return y(k&&this===V?o:this,p)}return S}()})},18660:function(I,r,n){"use strict";var e=n(72134),a=n(81929),t=n(20986),o=n(91191),s=n(26735),y=!s(function(){Reflect.apply(function(){})});e({target:"Reflect",stat:!0,forced:y},{apply:function(){function V(k,S,p){return a(t(k),S,o(p))}return V}()})},46185:function(I,r,n){"use strict";var e=n(72134),a=n(70663),t=n(81929),o=n(15062),s=n(23788),y=n(91191),V=n(63762),k=n(54792),S=n(26735),p=a("Reflect","construct"),i=Object.prototype,l=[].push,f=S(function(){function m(){}return!(p(function(){},[],m)instanceof m)}),u=!S(function(){p(function(){})}),d=f||u;e({target:"Reflect",stat:!0,forced:d,sham:d},{construct:function(){function m(c,v){s(c),y(v);var b=arguments.length<3?c:s(arguments[2]);if(u&&!f)return p(c,v,b);if(c===b){switch(v.length){case 0:return new c;case 1:return new c(v[0]);case 2:return new c(v[0],v[1]);case 3:return new c(v[0],v[1],v[2]);case 4:return new c(v[0],v[1],v[2],v[3])}var C=[null];return t(l,C,v),new(t(o,c,C))}var h=b.prototype,g=k(V(h)?h:i),N=t(c,g,v);return V(N)?N:g}return m}()})},94051:function(I,r,n){"use strict";var e=n(72134),a=n(47676),t=n(91191),o=n(38041),s=n(3329),y=n(26735),V=y(function(){Reflect.defineProperty(s.f({},1,{value:1}),1,{value:2})});e({target:"Reflect",stat:!0,forced:V,sham:!a},{defineProperty:function(){function k(S,p,i){t(S);var l=o(p);t(i);try{return s.f(S,l,i),!0}catch(f){return!1}}return k}()})},63115:function(I,r,n){"use strict";var e=n(72134),a=n(91191),t=n(9747).f;e({target:"Reflect",stat:!0},{deleteProperty:function(){function o(s,y){var V=t(a(s),y);return V&&!V.configurable?!1:delete s[y]}return o}()})},29561:function(I,r,n){"use strict";var e=n(72134),a=n(47676),t=n(91191),o=n(9747);e({target:"Reflect",stat:!0,sham:!a},{getOwnPropertyDescriptor:function(){function s(y,V){return o.f(t(y),V)}return s}()})},93589:function(I,r,n){"use strict";var e=n(72134),a=n(91191),t=n(97139),o=n(85187);e({target:"Reflect",stat:!0,sham:!o},{getPrototypeOf:function(){function s(y){return t(a(y))}return s}()})},81704:function(I,r,n){"use strict";var e=n(72134),a=n(81037),t=n(63762),o=n(91191),s=n(95791),y=n(9747),V=n(97139);function k(S,p){var i=arguments.length<3?S:arguments[2],l,f;if(o(S)===i)return S[p];if(l=y.f(S,p),l)return s(l)?l.value:l.get===void 0?void 0:a(l.get,i);if(t(f=V(S)))return k(f,p,i)}e({target:"Reflect",stat:!0},{get:k})},61692:function(I,r,n){"use strict";var e=n(72134);e({target:"Reflect",stat:!0},{has:function(){function a(t,o){return o in t}return a}()})},23114:function(I,r,n){"use strict";var e=n(72134),a=n(91191),t=n(74428);e({target:"Reflect",stat:!0},{isExtensible:function(){function o(s){return a(s),t(s)}return o}()})},33873:function(I,r,n){"use strict";var e=n(72134),a=n(27623);e({target:"Reflect",stat:!0},{ownKeys:a})},91449:function(I,r,n){"use strict";var e=n(72134),a=n(70663),t=n(91191),o=n(58680);e({target:"Reflect",stat:!0,sham:!o},{preventExtensions:function(){function s(y){t(y);try{var V=a("Object","preventExtensions");return V&&V(y),!0}catch(k){return!1}}return s}()})},89449:function(I,r,n){"use strict";var e=n(72134),a=n(91191),t=n(71442),o=n(19191);o&&e({target:"Reflect",stat:!0},{setPrototypeOf:function(){function s(y,V){a(y),t(V);try{return o(y,V),!0}catch(k){return!1}}return s}()})},93868:function(I,r,n){"use strict";var e=n(72134),a=n(81037),t=n(91191),o=n(63762),s=n(95791),y=n(26735),V=n(3329),k=n(9747),S=n(97139),p=n(276);function i(f,u,d){var m=arguments.length<4?f:arguments[3],c=k.f(t(f),u),v,b,C;if(!c){if(o(b=S(f)))return i(b,u,d,m);c=p(0)}if(s(c)){if(c.writable===!1||!o(m))return!1;if(v=k.f(m,u)){if(v.get||v.set||v.writable===!1)return!1;v.value=d,V.f(m,u,v)}else V.f(m,u,p(0,d))}else{if(C=c.set,C===void 0)return!1;a(C,m,d)}return!0}var l=y(function(){var f=function(){},u=V.f(new f,"a",{configurable:!0});return Reflect.set(f.prototype,"a",1,u)!==!1});e({target:"Reflect",stat:!0,forced:l},{set:i})},34064:function(I,r,n){"use strict";var e=n(47676),a=n(16203),t=n(80576),o=n(89644),s=n(99695),y=n(75387),V=n(54792),k=n(8288).f,S=n(88457),p=n(68196),i=n(64319),l=n(96890),f=n(96109),u=n(80384),d=n(73880),m=n(26735),c=n(3953),v=n(77341).enforce,b=n(56417),C=n(92611),h=n(54243),g=n(93070),N=C("match"),x=a.RegExp,B=x.prototype,L=a.SyntaxError,w=t(B.exec),A=t("".charAt),T=t("".replace),E=t("".indexOf),O=t("".slice),P=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,R=/a/g,F=/a/g,j=new x(R)!==R,U=f.MISSED_STICKY,_=f.UNSUPPORTED_Y,K=e&&(!j||U||h||g||m(function(){return F[N]=!1,x(R)!==R||x(F)===F||String(x(R,"i"))!=="/a/i"})),Y=function(be){for(var xe=be.length,Ie=0,Te="",he=!1,Q;Ie<=xe;Ie++){if(Q=A(be,Ie),Q==="\\"){Te+=Q+A(be,++Ie);continue}!he&&Q==="."?Te+="[\\s\\S]":(Q==="["?he=!0:Q==="]"&&(he=!1),Te+=Q)}return Te},G=function(be){for(var xe=be.length,Ie=0,Te="",he=[],Q=V(null),X=!1,te=!1,q=0,ce="",Ve;Ie<=xe;Ie++){if(Ve=A(be,Ie),Ve==="\\")Ve+=A(be,++Ie);else if(Ve==="]")X=!1;else if(!X)switch(!0){case Ve==="[":X=!0;break;case Ve==="(":w(P,O(be,Ie+1))&&(Ie+=2,te=!0),Te+=Ve,q++;continue;case(Ve===">"&&te):if(ce===""||c(Q,ce))throw new L("Invalid capture group name");Q[ce]=!0,he[he.length]=[ce,q],te=!1,ce="";continue}te?ce+=Ve:Te+=Ve}return[Te,he]};if(o("RegExp",K)){for(var ne=function(){function Ne(be,xe){var Ie=S(B,this),Te=p(be),he=xe===void 0,Q=[],X=be,te,q,ce,Ve,fe,we;if(!Ie&&Te&&he&&be.constructor===ne)return be;if((Te||S(B,be))&&(be=be.source,he&&(xe=l(X))),be=be===void 0?"":i(be),xe=xe===void 0?"":i(xe),X=be,h&&"dotAll"in R&&(q=!!xe&&E(xe,"s")>-1,q&&(xe=T(xe,/s/g,""))),te=xe,U&&"sticky"in R&&(ce=!!xe&&E(xe,"y")>-1,ce&&_&&(xe=T(xe,/y/g,""))),g&&(Ve=G(be),be=Ve[0],Q=Ve[1]),fe=s(x(be,xe),Ie?this:B,ne),(q||ce||Q.length)&&(we=v(fe),q&&(we.dotAll=!0,we.raw=ne(Y(be),te)),ce&&(we.sticky=!0),Q.length&&(we.groups=Q)),be!==X)try{y(fe,"source",X===""?"(?:)":X)}catch(M){}return fe}return Ne}(),$=k(x),se=0;$.length>se;)u(ne,x,$[se++]);B.constructor=ne,ne.prototype=B,d(a,"RegExp",ne,{constructor:!0})}b("RegExp")},67383:function(I,r,n){"use strict";var e=n(72134),a=n(81019);e({target:"RegExp",proto:!0,forced:/./.exec!==a},{exec:a})},51703:function(I,r,n){"use strict";var e=n(16203),a=n(47676),t=n(67242),o=n(2075),s=n(26735),y=e.RegExp,V=y.prototype,k=a&&s(function(){var S=!0;try{y(".","d")}catch(c){S=!1}var p={},i="",l=S?"dgimsy":"gimsy",f=function(v,b){Object.defineProperty(p,v,{get:function(){function C(){return i+=b,!0}return C}()})},u={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};S&&(u.hasIndices="d");for(var d in u)f(d,u[d]);var m=Object.getOwnPropertyDescriptor(V,"flags").get.call(p);return m!==l||i!==l});k&&t(V,"flags",{configurable:!0,get:o})},72333:function(I,r,n){"use strict";var e=n(97310).PROPER,a=n(73880),t=n(91191),o=n(64319),s=n(26735),y=n(96890),V="toString",k=RegExp.prototype,S=k[V],p=s(function(){return S.call({source:"a",flags:"b"})!=="/a/b"}),i=e&&S.name!==V;(p||i)&&a(k,V,function(){function l(){var f=t(this),u=o(f.source),d=o(y(f));return"/"+u+"/"+d}return l}(),{unsafe:!0})},55493:function(I,r,n){"use strict";var e=n(25796),a=n(3914);e("Set",function(t){return function(){function o(){return t(this,arguments.length?arguments[0]:void 0)}return o}()},a)},78388:function(I,r,n){"use strict";n(55493)},10211:function(I,r,n){"use strict";var e=n(72134),a=n(86088),t=n(19461);e({target:"String",proto:!0,forced:t("anchor")},{anchor:function(){function o(s){return a(this,"a","name",s)}return o}()})},96586:function(I,r,n){"use strict";var e=n(72134),a=n(86088),t=n(19461);e({target:"String",proto:!0,forced:t("big")},{big:function(){function o(){return a(this,"big","","")}return o}()})},59570:function(I,r,n){"use strict";var e=n(72134),a=n(86088),t=n(19461);e({target:"String",proto:!0,forced:t("blink")},{blink:function(){function o(){return a(this,"blink","","")}return o}()})},96449:function(I,r,n){"use strict";var e=n(72134),a=n(86088),t=n(19461);e({target:"String",proto:!0,forced:t("bold")},{bold:function(){function o(){return a(this,"b","","")}return o}()})},15876:function(I,r,n){"use strict";var e=n(72134),a=n(94567).codeAt;e({target:"String",proto:!0},{codePointAt:function(){function t(o){return a(this,o)}return t}()})},75241:function(I,r,n){"use strict";var e=n(72134),a=n(93636),t=n(9747).f,o=n(40046),s=n(64319),y=n(4143),V=n(76310),k=n(85580),S=n(61147),p=a("".slice),i=Math.min,l=k("endsWith"),f=!S&&!l&&!!function(){var u=t(String.prototype,"endsWith");return u&&!u.writable}();e({target:"String",proto:!0,forced:!f&&!l},{endsWith:function(){function u(d){var m=s(V(this));y(d);var c=arguments.length>1?arguments[1]:void 0,v=m.length,b=c===void 0?v:i(o(c),v),C=s(d);return p(m,b-C.length,b)===C}return u}()})},23754:function(I,r,n){"use strict";var e=n(72134),a=n(86088),t=n(19461);e({target:"String",proto:!0,forced:t("fixed")},{fixed:function(){function o(){return a(this,"tt","","")}return o}()})},48028:function(I,r,n){"use strict";var e=n(72134),a=n(86088),t=n(19461);e({target:"String",proto:!0,forced:t("fontcolor")},{fontcolor:function(){function o(s){return a(this,"font","color",s)}return o}()})},38874:function(I,r,n){"use strict";var e=n(72134),a=n(86088),t=n(19461);e({target:"String",proto:!0,forced:t("fontsize")},{fontsize:function(){function o(s){return a(this,"font","size",s)}return o}()})},80025:function(I,r,n){"use strict";var e=n(72134),a=n(80576),t=n(44874),o=RangeError,s=String.fromCharCode,y=String.fromCodePoint,V=a([].join),k=!!y&&y.length!==1;e({target:"String",stat:!0,arity:1,forced:k},{fromCodePoint:function(){function S(p){for(var i=[],l=arguments.length,f=0,u;l>f;){if(u=+arguments[f++],t(u,1114111)!==u)throw new o(u+" is not a valid code point");i[f]=u<65536?s(u):s(((u-=65536)>>10)+55296,u%1024+56320)}return V(i,"")}return S}()})},53651:function(I,r,n){"use strict";var e=n(72134),a=n(80576),t=n(4143),o=n(76310),s=n(64319),y=n(85580),V=a("".indexOf);e({target:"String",proto:!0,forced:!y("includes")},{includes:function(){function k(S){return!!~V(s(o(this)),s(t(S)),arguments.length>1?arguments[1]:void 0)}return k}()})},58909:function(I,r,n){"use strict";var e=n(72134),a=n(86088),t=n(19461);e({target:"String",proto:!0,forced:t("italics")},{italics:function(){function o(){return a(this,"i","","")}return o}()})},93220:function(I,r,n){"use strict";var e=n(94567).charAt,a=n(64319),t=n(77341),o=n(80160),s=n(53649),y="String Iterator",V=t.set,k=t.getterFor(y);o(String,"String",function(S){V(this,{type:y,string:a(S),index:0})},function(){function S(){var p=k(this),i=p.string,l=p.index,f;return l>=i.length?s(void 0,!0):(f=e(i,l),p.index+=f.length,s(f,!1))}return S}())},27402:function(I,r,n){"use strict";var e=n(72134),a=n(86088),t=n(19461);e({target:"String",proto:!0,forced:t("link")},{link:function(){function o(s){return a(this,"a","href",s)}return o}()})},1313:function(I,r,n){"use strict";var e=n(81037),a=n(36124),t=n(91191),o=n(79237),s=n(40046),y=n(64319),V=n(76310),k=n(4270),S=n(87477),p=n(17530);a("match",function(i,l,f){return[function(){function u(d){var m=V(this),c=o(d)?void 0:k(d,i);return c?e(c,d,m):new RegExp(d)[i](y(m))}return u}(),function(u){var d=t(this),m=y(u),c=f(l,d,m);if(c.done)return c.value;if(!d.global)return p(d,m);var v=d.unicode;d.lastIndex=0;for(var b=[],C=0,h;(h=p(d,m))!==null;){var g=y(h[0]);b[C]=g,g===""&&(d.lastIndex=S(m,s(d.lastIndex),v)),C++}return C===0?null:b}]})},69541:function(I,r,n){"use strict";var e=n(72134),a=n(12805).end,t=n(62311);e({target:"String",proto:!0,forced:t},{padEnd:function(){function o(s){return a(this,s,arguments.length>1?arguments[1]:void 0)}return o}()})},51660:function(I,r,n){"use strict";var e=n(72134),a=n(12805).start,t=n(62311);e({target:"String",proto:!0,forced:t},{padStart:function(){function o(s){return a(this,s,arguments.length>1?arguments[1]:void 0)}return o}()})},60578:function(I,r,n){"use strict";var e=n(72134),a=n(80576),t=n(1381),o=n(43269),s=n(64319),y=n(62022),V=a([].push),k=a([].join);e({target:"String",stat:!0},{raw:function(){function S(p){var i=t(o(p).raw),l=y(i);if(!l)return"";for(var f=arguments.length,u=[],d=0;;){if(V(u,s(i[d++])),d===l)return k(u,"");d")!=="7"});o("replace",function(T,E,O){var P=w?"$":"$0";return[function(){function R(F,j){var U=l(this),_=k(F)?void 0:u(F,v);return _?a(_,F,U,j):a(E,i(U),F,j)}return R}(),function(R,F){var j=y(this),U=i(R);if(typeof F=="string"&&N(F,P)===-1&&N(F,"$<")===-1){var _=O(E,j,U,F);if(_.done)return _.value}var K=V(F);K||(F=i(F));var Y=j.global,G;Y&&(G=j.unicode,j.lastIndex=0);for(var ne=[],$;$=m(j,U),!($===null||(g(ne,$),!Y));){var se=i($[0]);se===""&&(j.lastIndex=f(U,p(j.lastIndex),G))}for(var Ne="",be=0,xe=0;xe=be&&(Ne+=x(U,be,Te)+Q,be=Te+Ie.length)}return Ne+x(U,be)}]},!A||!L||w)},99362:function(I,r,n){"use strict";var e=n(81037),a=n(36124),t=n(91191),o=n(79237),s=n(76310),y=n(72926),V=n(64319),k=n(4270),S=n(17530);a("search",function(p,i,l){return[function(){function f(u){var d=s(this),m=o(u)?void 0:k(u,p);return m?e(m,u,d):new RegExp(u)[p](V(d))}return f}(),function(f){var u=t(this),d=V(f),m=l(i,u,d);if(m.done)return m.value;var c=u.lastIndex;y(c,0)||(u.lastIndex=0);var v=S(u,d);return y(u.lastIndex,c)||(u.lastIndex=c),v===null?-1:v.index}]})},10715:function(I,r,n){"use strict";var e=n(72134),a=n(86088),t=n(19461);e({target:"String",proto:!0,forced:t("small")},{small:function(){function o(){return a(this,"small","","")}return o}()})},18856:function(I,r,n){"use strict";var e=n(81037),a=n(80576),t=n(36124),o=n(91191),s=n(79237),y=n(76310),V=n(23237),k=n(87477),S=n(40046),p=n(64319),i=n(4270),l=n(17530),f=n(96109),u=n(26735),d=f.UNSUPPORTED_Y,m=4294967295,c=Math.min,v=a([].push),b=a("".slice),C=!u(function(){var g=/(?:)/,N=g.exec;g.exec=function(){return N.apply(this,arguments)};var x="ab".split(g);return x.length!==2||x[0]!=="a"||x[1]!=="b"}),h="abbc".split(/(b)*/)[1]==="c"||"test".split(/(?:)/,-1).length!==4||"ab".split(/(?:ab)*/).length!==2||".".split(/(.?)(.?)/).length!==4||".".split(/()()/).length>1||"".split(/.?/).length;t("split",function(g,N,x){var B="0".split(void 0,0).length?function(L,w){return L===void 0&&w===0?[]:e(N,this,L,w)}:N;return[function(){function L(w,A){var T=y(this),E=s(w)?void 0:i(w,g);return E?e(E,w,T,A):e(B,p(T),w,A)}return L}(),function(L,w){var A=o(this),T=p(L);if(!h){var E=x(B,A,T,w,B!==N);if(E.done)return E.value}var O=V(A,RegExp),P=A.unicode,R=(A.ignoreCase?"i":"")+(A.multiline?"m":"")+(A.unicode?"u":"")+(d?"g":"y"),F=new O(d?"^(?:"+A.source+")":A,R),j=w===void 0?m:w>>>0;if(j===0)return[];if(T.length===0)return l(F,T)===null?[T]:[];for(var U=0,_=0,K=[];_1?arguments[1]:void 0,m.length)),v=s(d);return p(m,c,c+v.length)===v}return u}()})},81140:function(I,r,n){"use strict";var e=n(72134),a=n(86088),t=n(19461);e({target:"String",proto:!0,forced:t("strike")},{strike:function(){function o(){return a(this,"strike","","")}return o}()})},56926:function(I,r,n){"use strict";var e=n(72134),a=n(86088),t=n(19461);e({target:"String",proto:!0,forced:t("sub")},{sub:function(){function o(){return a(this,"sub","","")}return o}()})},15012:function(I,r,n){"use strict";var e=n(72134),a=n(86088),t=n(19461);e({target:"String",proto:!0,forced:t("sup")},{sup:function(){function o(){return a(this,"sup","","")}return o}()})},13778:function(I,r,n){"use strict";n(6481);var e=n(72134),a=n(55810);e({target:"String",proto:!0,name:"trimEnd",forced:"".trimEnd!==a},{trimEnd:a})},15686:function(I,r,n){"use strict";var e=n(72134),a=n(92287);e({target:"String",proto:!0,name:"trimStart",forced:"".trimLeft!==a},{trimLeft:a})},6481:function(I,r,n){"use strict";var e=n(72134),a=n(55810);e({target:"String",proto:!0,name:"trimEnd",forced:"".trimRight!==a},{trimRight:a})},10223:function(I,r,n){"use strict";n(15686);var e=n(72134),a=n(92287);e({target:"String",proto:!0,name:"trimStart",forced:"".trimStart!==a},{trimStart:a})},62746:function(I,r,n){"use strict";var e=n(72134),a=n(4042).trim,t=n(13458);e({target:"String",proto:!0,forced:t("trim")},{trim:function(){function o(){return a(this)}return o}()})},25276:function(I,r,n){"use strict";var e=n(46303);e("asyncIterator")},89721:function(I,r,n){"use strict";var e=n(72134),a=n(16203),t=n(81037),o=n(80576),s=n(61147),y=n(47676),V=n(14943),k=n(26735),S=n(3953),p=n(88457),i=n(91191),l=n(1381),f=n(38041),u=n(64319),d=n(276),m=n(54792),c=n(57904),v=n(8288),b=n(64586),C=n(5797),h=n(9747),g=n(3329),N=n(86513),x=n(85845),B=n(73880),L=n(67242),w=n(31809),A=n(10647),T=n(58469),E=n(91072),O=n(92611),P=n(86095),R=n(46303),F=n(67122),j=n(43087),U=n(77341),_=n(30205).forEach,K=A("hidden"),Y="Symbol",G="prototype",ne=U.set,$=U.getterFor(Y),se=Object[G],Ne=a.Symbol,be=Ne&&Ne[G],xe=a.RangeError,Ie=a.TypeError,Te=a.QObject,he=h.f,Q=g.f,X=b.f,te=x.f,q=o([].push),ce=w("symbols"),Ve=w("op-symbols"),fe=w("wks"),we=!Te||!Te[G]||!Te[G].findChild,M=function(de,Be,W){var oe=he(se,Be);oe&&delete se[Be],Q(de,Be,W),oe&&de!==se&&Q(se,Be,oe)},J=y&&k(function(){return m(Q({},"a",{get:function(){function me(){return Q(this,"a",{value:7}).a}return me}()})).a!==7})?M:Q,re=function(de,Be){var W=ce[de]=m(be);return ne(W,{type:Y,tag:de,description:Be}),y||(W.description=Be),W},ue=function(){function me(de,Be,W){de===se&&ue(Ve,Be,W),i(de);var oe=f(Be);return i(W),S(ce,oe)?(W.enumerable?(S(de,K)&&de[K][oe]&&(de[K][oe]=!1),W=m(W,{enumerable:d(0,!1)})):(S(de,K)||Q(de,K,d(1,m(null))),de[K][oe]=!0),J(de,oe,W)):Q(de,oe,W)}return me}(),ie=function(){function me(de,Be){i(de);var W=l(Be),oe=c(W).concat(Se(W));return _(oe,function(ve){(!y||t(Ce,W,ve))&&ue(de,ve,W[ve])}),de}return me}(),ge=function(){function me(de,Be){return Be===void 0?m(de):ie(m(de),Be)}return me}(),Ce=function(){function me(de){var Be=f(de),W=t(te,this,Be);return this===se&&S(ce,Be)&&!S(Ve,Be)?!1:W||!S(this,Be)||!S(ce,Be)||S(this,K)&&this[K][Be]?W:!0}return me}(),Ae=function(){function me(de,Be){var W=l(de),oe=f(Be);if(!(W===se&&S(ce,oe)&&!S(Ve,oe))){var ve=he(W,oe);return ve&&S(ce,oe)&&!(S(W,K)&&W[K][oe])&&(ve.enumerable=!0),ve}}return me}(),De=function(){function me(de){var Be=X(l(de)),W=[];return _(Be,function(oe){!S(ce,oe)&&!S(T,oe)&&q(W,oe)}),W}return me}(),Se=function(de){var Be=de===se,W=X(Be?Ve:l(de)),oe=[];return _(W,function(ve){S(ce,ve)&&(!Be||S(se,ve))&&q(oe,ce[ve])}),oe};V||(Ne=function(){function me(){if(p(be,this))throw new Ie("Symbol is not a constructor");var de=!arguments.length||arguments[0]===void 0?void 0:u(arguments[0]),Be=E(de),W=function(){function oe(ve){var ye=this===void 0?a:this;ye===se&&t(oe,Ve,ve),S(ye,K)&&S(ye[K],Be)&&(ye[K][Be]=!1);var Le=d(1,ve);try{J(ye,Be,Le)}catch(Ee){if(!(Ee instanceof xe))throw Ee;M(ye,Be,Le)}}return oe}();return y&&we&&J(se,Be,{configurable:!0,set:W}),re(Be,de)}return me}(),be=Ne[G],B(be,"toString",function(){function me(){return $(this).tag}return me}()),B(Ne,"withoutSetter",function(me){return re(E(me),me)}),x.f=Ce,g.f=ue,N.f=ie,h.f=Ae,v.f=b.f=De,C.f=Se,P.f=function(me){return re(O(me),me)},y&&(L(be,"description",{configurable:!0,get:function(){function me(){return $(this).description}return me}()}),s||B(se,"propertyIsEnumerable",Ce,{unsafe:!0}))),e({global:!0,constructor:!0,wrap:!0,forced:!V,sham:!V},{Symbol:Ne}),_(c(fe),function(me){R(me)}),e({target:Y,stat:!0,forced:!V},{useSetter:function(){function me(){we=!0}return me}(),useSimple:function(){function me(){we=!1}return me}()}),e({target:"Object",stat:!0,forced:!V,sham:!y},{create:ge,defineProperty:ue,defineProperties:ie,getOwnPropertyDescriptor:Ae}),e({target:"Object",stat:!0,forced:!V},{getOwnPropertyNames:De}),F(),j(Ne,Y),T[K]=!0},74055:function(I,r,n){"use strict";var e=n(72134),a=n(47676),t=n(16203),o=n(80576),s=n(3953),y=n(8389),V=n(88457),k=n(64319),S=n(67242),p=n(81340),i=t.Symbol,l=i&&i.prototype;if(a&&y(i)&&(!("description"in l)||i().description!==void 0)){var f={},u=function(){function h(){var g=arguments.length<1||arguments[0]===void 0?void 0:k(arguments[0]),N=V(l,this)?new i(g):g===void 0?i():i(g);return g===""&&(f[N]=!0),N}return h}();p(u,i),u.prototype=l,l.constructor=u;var d=String(i("description detection"))==="Symbol(description detection)",m=o(l.valueOf),c=o(l.toString),v=/^Symbol\((.*)\)[^)]+$/,b=o("".replace),C=o("".slice);S(l,"description",{configurable:!0,get:function(){function h(){var g=m(this);if(s(f,g))return"";var N=c(g),x=d?C(N,7,-1):b(N,v,"$1");return x===""?void 0:x}return h}()}),e({global:!0,constructor:!0,forced:!0},{Symbol:u})}},790:function(I,r,n){"use strict";var e=n(72134),a=n(70663),t=n(3953),o=n(64319),s=n(31809),y=n(75440),V=s("string-to-symbol-registry"),k=s("symbol-to-string-registry");e({target:"Symbol",stat:!0,forced:!y},{for:function(){function S(p){var i=o(p);if(t(V,i))return V[i];var l=a("Symbol")(i);return V[i]=l,k[l]=i,l}return S}()})},7473:function(I,r,n){"use strict";var e=n(46303);e("hasInstance")},27416:function(I,r,n){"use strict";var e=n(46303);e("isConcatSpreadable")},79267:function(I,r,n){"use strict";var e=n(46303);e("iterator")},82547:function(I,r,n){"use strict";n(89721),n(790),n(33796),n(71782),n(69053)},33796:function(I,r,n){"use strict";var e=n(72134),a=n(3953),t=n(47541),o=n(82823),s=n(31809),y=n(75440),V=s("symbol-to-string-registry");e({target:"Symbol",stat:!0,forced:!y},{keyFor:function(){function k(S){if(!t(S))throw new TypeError(o(S)+" is not a symbol");if(a(V,S))return V[S]}return k}()})},53892:function(I,r,n){"use strict";var e=n(46303);e("match")},18837:function(I,r,n){"use strict";var e=n(46303);e("replace")},45785:function(I,r,n){"use strict";var e=n(46303);e("search")},3643:function(I,r,n){"use strict";var e=n(46303);e("species")},70833:function(I,r,n){"use strict";var e=n(46303);e("split")},93588:function(I,r,n){"use strict";var e=n(46303),a=n(67122);e("toPrimitive"),a()},92861:function(I,r,n){"use strict";var e=n(70663),a=n(46303),t=n(43087);a("toStringTag"),t(e("Symbol"),"Symbol")},22294:function(I,r,n){"use strict";var e=n(46303);e("unscopables")},70094:function(I,r,n){"use strict";var e=n(80576),a=n(94084),t=n(77653),o=e(t),s=a.aTypedArray,y=a.exportTypedArrayMethod;y("copyWithin",function(){function V(k,S){return o(s(this),k,S,arguments.length>2?arguments[2]:void 0)}return V}())},27898:function(I,r,n){"use strict";var e=n(94084),a=n(30205).every,t=e.aTypedArray,o=e.exportTypedArrayMethod;o("every",function(){function s(y){return a(t(this),y,arguments.length>1?arguments[1]:void 0)}return s}())},76404:function(I,r,n){"use strict";var e=n(94084),a=n(41733),t=n(12382),o=n(39851),s=n(81037),y=n(80576),V=n(26735),k=e.aTypedArray,S=e.exportTypedArrayMethod,p=y("".slice),i=V(function(){var l=0;return new Int8Array(2).fill({valueOf:function(){function f(){return l++}return f}()}),l!==1});S("fill",function(){function l(f){var u=arguments.length;k(this);var d=p(o(this),0,3)==="Big"?t(f):+f;return s(a,this,d,u>1?arguments[1]:void 0,u>2?arguments[2]:void 0)}return l}(),i)},88179:function(I,r,n){"use strict";var e=n(94084),a=n(30205).filter,t=n(98661),o=e.aTypedArray,s=e.exportTypedArrayMethod;s("filter",function(){function y(V){var k=a(o(this),V,arguments.length>1?arguments[1]:void 0);return t(this,k)}return y}())},56883:function(I,r,n){"use strict";var e=n(94084),a=n(30205).findIndex,t=e.aTypedArray,o=e.exportTypedArrayMethod;o("findIndex",function(){function s(y){return a(t(this),y,arguments.length>1?arguments[1]:void 0)}return s}())},48862:function(I,r,n){"use strict";var e=n(94084),a=n(30205).find,t=e.aTypedArray,o=e.exportTypedArrayMethod;o("find",function(){function s(y){return a(t(this),y,arguments.length>1?arguments[1]:void 0)}return s}())},41490:function(I,r,n){"use strict";var e=n(13471);e("Float32",function(a){return function(){function t(o,s,y){return a(this,o,s,y)}return t}()})},76569:function(I,r,n){"use strict";var e=n(13471);e("Float64",function(a){return function(){function t(o,s,y){return a(this,o,s,y)}return t}()})},85126:function(I,r,n){"use strict";var e=n(94084),a=n(30205).forEach,t=e.aTypedArray,o=e.exportTypedArrayMethod;o("forEach",function(){function s(y){a(t(this),y,arguments.length>1?arguments[1]:void 0)}return s}())},61705:function(I,r,n){"use strict";var e=n(43157),a=n(94084).exportTypedArrayStaticMethod,t=n(12323);a("from",t,e)},11968:function(I,r,n){"use strict";var e=n(94084),a=n(54065).includes,t=e.aTypedArray,o=e.exportTypedArrayMethod;o("includes",function(){function s(y){return a(t(this),y,arguments.length>1?arguments[1]:void 0)}return s}())},83787:function(I,r,n){"use strict";var e=n(94084),a=n(54065).indexOf,t=e.aTypedArray,o=e.exportTypedArrayMethod;o("indexOf",function(){function s(y){return a(t(this),y,arguments.length>1?arguments[1]:void 0)}return s}())},62875:function(I,r,n){"use strict";var e=n(13471);e("Int16",function(a){return function(){function t(o,s,y){return a(this,o,s,y)}return t}()})},69861:function(I,r,n){"use strict";var e=n(13471);e("Int32",function(a){return function(){function t(o,s,y){return a(this,o,s,y)}return t}()})},99922:function(I,r,n){"use strict";var e=n(13471);e("Int8",function(a){return function(){function t(o,s,y){return a(this,o,s,y)}return t}()})},20647:function(I,r,n){"use strict";var e=n(16203),a=n(26735),t=n(80576),o=n(94084),s=n(66240),y=n(92611),V=y("iterator"),k=e.Uint8Array,S=t(s.values),p=t(s.keys),i=t(s.entries),l=o.aTypedArray,f=o.exportTypedArrayMethod,u=k&&k.prototype,d=!a(function(){u[V].call([1])}),m=!!u&&u.values&&u[V]===u.values&&u.values.name==="values",c=function(){function v(){return S(l(this))}return v}();f("entries",function(){function v(){return i(l(this))}return v}(),d),f("keys",function(){function v(){return p(l(this))}return v}(),d),f("values",c,d||!m,{name:"values"}),f(V,c,d||!m,{name:"values"})},80857:function(I,r,n){"use strict";var e=n(94084),a=n(80576),t=e.aTypedArray,o=e.exportTypedArrayMethod,s=a([].join);o("join",function(){function y(V){return s(t(this),V)}return y}())},7564:function(I,r,n){"use strict";var e=n(94084),a=n(81929),t=n(41931),o=e.aTypedArray,s=e.exportTypedArrayMethod;s("lastIndexOf",function(){function y(V){var k=arguments.length;return a(t,o(this),k>1?[V,arguments[1]]:[V])}return y}())},1011:function(I,r,n){"use strict";var e=n(94084),a=n(30205).map,t=n(46132),o=e.aTypedArray,s=e.exportTypedArrayMethod;s("map",function(){function y(V){return a(o(this),V,arguments.length>1?arguments[1]:void 0,function(k,S){return new(t(k))(S)})}return y}())},96264:function(I,r,n){"use strict";var e=n(94084),a=n(43157),t=e.aTypedArrayConstructor,o=e.exportTypedArrayStaticMethod;o("of",function(){function s(){for(var y=0,V=arguments.length,k=new(t(this))(V);V>y;)k[y]=arguments[y++];return k}return s}(),a)},7448:function(I,r,n){"use strict";var e=n(94084),a=n(83214).right,t=e.aTypedArray,o=e.exportTypedArrayMethod;o("reduceRight",function(){function s(y){var V=arguments.length;return a(t(this),y,V,V>1?arguments[1]:void 0)}return s}())},72711:function(I,r,n){"use strict";var e=n(94084),a=n(83214).left,t=e.aTypedArray,o=e.exportTypedArrayMethod;o("reduce",function(){function s(y){var V=arguments.length;return a(t(this),y,V,V>1?arguments[1]:void 0)}return s}())},41723:function(I,r,n){"use strict";var e=n(94084),a=e.aTypedArray,t=e.exportTypedArrayMethod,o=Math.floor;t("reverse",function(){function s(){for(var y=this,V=a(y).length,k=o(V/2),S=0,p;S1?arguments[1]:void 0,1),b=y(c);if(u)return a(i,this,b,v);var C=this.length,h=o(b),g=0;if(h+v>C)throw new k("Wrong length");for(;gf;)d[f]=i[f++];return d}return k}(),V)},70309:function(I,r,n){"use strict";var e=n(94084),a=n(30205).some,t=e.aTypedArray,o=e.exportTypedArrayMethod;o("some",function(){function s(y){return a(t(this),y,arguments.length>1?arguments[1]:void 0)}return s}())},67237:function(I,r,n){"use strict";var e=n(16203),a=n(93636),t=n(26735),o=n(20986),s=n(38120),y=n(94084),V=n(10258),k=n(75154),S=n(3484),p=n(40312),i=y.aTypedArray,l=y.exportTypedArrayMethod,f=e.Uint16Array,u=f&&a(f.prototype.sort),d=!!u&&!(t(function(){u(new f(2),null)})&&t(function(){u(new f(2),{})})),m=!!u&&!t(function(){if(S)return S<74;if(V)return V<67;if(k)return!0;if(p)return p<602;var v=new f(516),b=Array(516),C,h;for(C=0;C<516;C++)h=C%4,v[C]=515-C,b[C]=C-2*h+3;for(u(v,function(g,N){return(g/4|0)-(N/4|0)}),C=0;C<516;C++)if(v[C]!==b[C])return!0}),c=function(b){return function(C,h){return b!==void 0?+b(C,h)||0:h!==h?-1:C!==C?1:C===0&&h===0?1/C>0&&1/h<0?1:-1:C>h}};l("sort",function(){function v(b){return b!==void 0&&o(b),m?u(this,b):s(i(this),c(b))}return v}(),!m||d)},25830:function(I,r,n){"use strict";var e=n(94084),a=n(40046),t=n(44874),o=n(46132),s=e.aTypedArray,y=e.exportTypedArrayMethod;y("subarray",function(){function V(k,S){var p=s(this),i=p.length,l=t(k,i),f=o(p);return new f(p.buffer,p.byteOffset+l*p.BYTES_PER_ELEMENT,a((S===void 0?i:t(S,i))-l))}return V}())},85293:function(I,r,n){"use strict";var e=n(16203),a=n(81929),t=n(94084),o=n(26735),s=n(7728),y=e.Int8Array,V=t.aTypedArray,k=t.exportTypedArrayMethod,S=[].toLocaleString,p=!!y&&o(function(){S.call(new y(1))}),i=o(function(){return[1,2].toLocaleString()!==new y([1,2]).toLocaleString()})||!o(function(){y.prototype.toLocaleString.call([1,2])});k("toLocaleString",function(){function l(){return a(S,p?s(V(this)):V(this),s(arguments))}return l}(),i)},24388:function(I,r,n){"use strict";var e=n(94084).exportTypedArrayMethod,a=n(26735),t=n(16203),o=n(80576),s=t.Uint8Array,y=s&&s.prototype||{},V=[].toString,k=o([].join);a(function(){V.call({})})&&(V=function(){function p(){return k(this)}return p}());var S=y.toString!==V;e("toString",V,S)},95386:function(I,r,n){"use strict";var e=n(13471);e("Uint16",function(a){return function(){function t(o,s,y){return a(this,o,s,y)}return t}()})},8412:function(I,r,n){"use strict";var e=n(13471);e("Uint32",function(a){return function(){function t(o,s,y){return a(this,o,s,y)}return t}()})},74721:function(I,r,n){"use strict";var e=n(13471);e("Uint8",function(a){return function(){function t(o,s,y){return a(this,o,s,y)}return t}()})},45382:function(I,r,n){"use strict";var e=n(13471);e("Uint8",function(a){return function(){function t(o,s,y){return a(this,o,s,y)}return t}()},!0)},5474:function(I,r,n){"use strict";var e=n(58680),a=n(16203),t=n(80576),o=n(91783),s=n(62232),y=n(25796),V=n(37081),k=n(63762),S=n(77341).enforce,p=n(26735),i=n(27374),l=Object,f=Array.isArray,u=l.isExtensible,d=l.isFrozen,m=l.isSealed,c=l.freeze,v=l.seal,b=!a.ActiveXObject&&"ActiveXObject"in a,C,h=function(E){return function(){function O(){return E(this,arguments.length?arguments[0]:void 0)}return O}()},g=y("WeakMap",h,V),N=g.prototype,x=t(N.set),B=function(){return e&&p(function(){var E=c([]);return x(new g,E,1),!d(E)})};if(i)if(b){C=V.getConstructor(h,"WeakMap",!0),s.enable();var L=t(N.delete),w=t(N.has),A=t(N.get);o(N,{delete:function(){function T(E){if(k(E)&&!u(E)){var O=S(this);return O.frozen||(O.frozen=new C),L(this,E)||O.frozen.delete(E)}return L(this,E)}return T}(),has:function(){function T(E){if(k(E)&&!u(E)){var O=S(this);return O.frozen||(O.frozen=new C),w(this,E)||O.frozen.has(E)}return w(this,E)}return T}(),get:function(){function T(E){if(k(E)&&!u(E)){var O=S(this);return O.frozen||(O.frozen=new C),w(this,E)?A(this,E):O.frozen.get(E)}return A(this,E)}return T}(),set:function(){function T(E,O){if(k(E)&&!u(E)){var P=S(this);P.frozen||(P.frozen=new C),w(this,E)?x(this,E,O):P.frozen.set(E,O)}else x(this,E,O);return this}return T}()})}else B()&&o(N,{set:function(){function T(E,O){var P;return f(E)&&(d(E)?P=c:m(E)&&(P=v)),x(this,E,O),P&&P(E),this}return T}()})},94460:function(I,r,n){"use strict";n(5474)},61928:function(I,r,n){"use strict";var e=n(25796),a=n(37081);e("WeakSet",function(t){return function(){function o(){return t(this,arguments.length?arguments[0]:void 0)}return o}()},a)},99710:function(I,r,n){"use strict";n(61928)},33488:function(I,r,n){"use strict";var e=n(72134),a=n(16203),t=n(66825).clear;e({global:!0,bind:!0,enumerable:!0,forced:a.clearImmediate!==t},{clearImmediate:t})},3224:function(I,r,n){"use strict";n(33488),n(40941)},44938:function(I,r,n){"use strict";var e=n(72134),a=n(16203),t=n(62083),o=n(20986),s=n(66828),y=n(26735),V=n(47676),k=y(function(){return V&&Object.getOwnPropertyDescriptor(a,"queueMicrotask").value.length!==1});e({global:!0,enumerable:!0,dontCallGetSet:!0,forced:k},{queueMicrotask:function(){function S(p){s(arguments.length,1),t(o(p))}return S}()})},40941:function(I,r,n){"use strict";var e=n(72134),a=n(16203),t=n(66825).set,o=n(81779),s=a.setImmediate?o(t,!1):t;e({global:!0,bind:!0,enumerable:!0,forced:a.setImmediate!==s},{setImmediate:s})},41895:function(I,r,n){"use strict";var e=n(72134),a=n(16203),t=n(81779),o=t(a.setInterval,!0);e({global:!0,bind:!0,forced:a.setInterval!==o},{setInterval:o})},58759:function(I,r,n){"use strict";var e=n(72134),a=n(16203),t=n(81779),o=t(a.setTimeout,!0);e({global:!0,bind:!0,forced:a.setTimeout!==o},{setTimeout:o})},83759:function(I,r,n){"use strict";n(41895),n(58759)},50719:function(I){"use strict";/** + */var t=r.BoxWithSampleText=function(){function o(s){return(0,e.normalizeProps)((0,e.createComponentVNode)(2,a.Box,Object.assign({},s,{children:[(0,e.createComponentVNode)(2,a.Box,{italic:!0,children:"Jackdaws love my big sphinx of quartz."}),(0,e.createComponentVNode)(2,a.Box,{mt:1,bold:!0,children:"The wide electrification of the southern provinces will give a powerful impetus to the growth of agriculture."})]})))}return o}()},47581:function(){},73785:function(){},62199:function(){},50571:function(){},25598:function(){},18223:function(){},42449:function(){},56191:function(){},57251:function(){},39215:function(){},15767:function(){},25473:function(){},62118:function(){},68303:function(){},6973:function(){},40451:function(){},89387:function(){},70752:function(I,r,n){var e={"./pai_advsecrecords.js":31130,"./pai_atmosphere.js":24704,"./pai_bioscan.js":4209,"./pai_camera_bug.js":98990,"./pai_directives.js":44430,"./pai_doorjack.js":3367,"./pai_encoder.js":59934,"./pai_gps_module.js":39913,"./pai_main_menu.js":73395,"./pai_manifest.js":37645,"./pai_medrecords.js":15836,"./pai_messenger.js":91737,"./pai_radio.js":94077,"./pai_sec_chem.js":14875,"./pai_secrecords.js":72621,"./pai_signaler.js":53483};function a(o){var s=t(o);return n(s)}function t(o){if(!n.o(e,o)){var s=new Error("Cannot find module '"+o+"'");throw s.code="MODULE_NOT_FOUND",s}return e[o]}a.keys=function(){return Object.keys(e)},a.resolve=t,I.exports=a,a.id=70752},59395:function(I,r,n){var e={"./pda_atmos_scan.js":21606,"./pda_janitor.js":12339,"./pda_main_menu.js":36615,"./pda_manifest.js":99737,"./pda_medical.js":61597,"./pda_messenger.js":30709,"./pda_mule.js":68053,"./pda_notes.js":29415,"./pda_power.js":52363,"./pda_secbot.js":23914,"./pda_security.js":68878,"./pda_signaler.js":95135,"./pda_status_display.js":20835,"./pda_supplyrecords.js":11741};function a(o){var s=t(o);return n(s)}function t(o){if(!n.o(e,o)){var s=new Error("Cannot find module '"+o+"'");throw s.code="MODULE_NOT_FOUND",s}return e[o]}a.keys=function(){return Object.keys(e)},a.resolve=t,I.exports=a,a.id=59395},32054:function(I,r,n){var e={"./AICard":29732,"./AICard.js":29732,"./AIFixer":78468,"./AIFixer.js":78468,"./APC":73544,"./APC.js":73544,"./ATM":79098,"./ATM.js":79098,"./AccountsUplinkTerminal":64613,"./AccountsUplinkTerminal.js":64613,"./AgentCard":34257,"./AgentCard.js":34257,"./AiAirlock":56839,"./AiAirlock.js":56839,"./AirAlarm":5565,"./AirAlarm.js":5565,"./AirlockAccessController":82915,"./AirlockAccessController.js":82915,"./AirlockElectronics":14962,"./AirlockElectronics.js":14962,"./AlertModal":99327,"./AlertModal.tsx":99327,"./AppearanceChanger":88642,"./AppearanceChanger.js":88642,"./AtmosAlertConsole":51731,"./AtmosAlertConsole.js":51731,"./AtmosControl":57467,"./AtmosControl.js":57467,"./AtmosFilter":41550,"./AtmosFilter.js":41550,"./AtmosMixer":70151,"./AtmosMixer.js":70151,"./AtmosPump":54090,"./AtmosPump.js":54090,"./Autolathe":85909,"./Autolathe.js":85909,"./Biogenerator":26215,"./Biogenerator.js":26215,"./BlueSpaceArtilleryControl":65483,"./BlueSpaceArtilleryControl.js":65483,"./BluespaceRiftScanner":37549,"./BluespaceRiftScanner.js":37549,"./BluespaceRiftServer":94780,"./BluespaceRiftServer.js":94780,"./BluespaceTap":69099,"./BluespaceTap.js":69099,"./BodyScanner":71736,"./BodyScanner.js":71736,"./BorgPanel":65052,"./BorgPanel.js":65052,"./BotClean":43506,"./BotClean.js":43506,"./BotSecurity":4249,"./BotSecurity.js":4249,"./BrigCells":27267,"./BrigCells.js":27267,"./BrigTimer":26623,"./BrigTimer.js":26623,"./CameraConsole":43542,"./CameraConsole.js":43542,"./Canister":95513,"./Canister.js":95513,"./CardComputer":60463,"./CardComputer.js":60463,"./CargoConsole":16377,"./CargoConsole.js":16377,"./Changelog":14372,"./Changelog.js":14372,"./ChemDispenser":71254,"./ChemDispenser.js":71254,"./ChemHeater":27004,"./ChemHeater.js":27004,"./ChemMaster":41099,"./ChemMaster.tsx":41099,"./CloningConsole":51327,"./CloningConsole.js":51327,"./CommunicationsComputer":22420,"./CommunicationsComputer.js":22420,"./Contractor":64707,"./Contractor.js":64707,"./ConveyorSwitch":52141,"./ConveyorSwitch.js":52141,"./CrewMonitor":94187,"./CrewMonitor.js":94187,"./Cryo":60561,"./Cryo.js":60561,"./CryopodConsole":27889,"./CryopodConsole.js":27889,"./DNAModifier":81434,"./DNAModifier.js":81434,"./DestinationTagger":21508,"./DestinationTagger.js":21508,"./DisposalBin":93430,"./DisposalBin.js":93430,"./DnaVault":31491,"./DnaVault.js":31491,"./EFTPOS":74781,"./EFTPOS.js":74781,"./ERTManager":30672,"./ERTManager.js":30672,"./Electropack":15543,"./Electropack.js":15543,"./EvolutionMenu":99012,"./EvolutionMenu.js":99012,"./ExosuitFabricator":37504,"./ExosuitFabricator.js":37504,"./ExternalAirlockController":77284,"./ExternalAirlockController.js":77284,"./FaxMachine":52516,"./FaxMachine.js":52516,"./FloorPainter":88361,"./FloorPainter.js":88361,"./GPS":70078,"./GPS.js":70078,"./GasAnalyzer":96961,"./GasAnalyzer.js":96961,"./GasFreezer":94572,"./GasFreezer.js":94572,"./GeneModder":92246,"./GeneModder.js":92246,"./GenericCrewManifest":27163,"./GenericCrewManifest.js":27163,"./GhostHudPanel":53808,"./GhostHudPanel.js":53808,"./GlandDispenser":32035,"./GlandDispenser.js":32035,"./HandheldChemDispenser":22480,"./HandheldChemDispenser.js":22480,"./ImplantPad":5876,"./ImplantPad.js":5876,"./Instrument":96729,"./Instrument.js":96729,"./ItemPixelShift":33679,"./ItemPixelShift.js":33679,"./KeyComboModal":240,"./KeyComboModal.tsx":240,"./KeycardAuth":53385,"./KeycardAuth.js":53385,"./LaborClaimConsole":87609,"./LaborClaimConsole.js":87609,"./LawManager":14047,"./LawManager.js":14047,"./ListInputModal":26133,"./ListInputModal.tsx":26133,"./MechBayConsole":95752,"./MechBayConsole.js":95752,"./MechaControlConsole":53668,"./MechaControlConsole.js":53668,"./MedicalRecords":96467,"./MedicalRecords.js":96467,"./Mimicking":81352,"./Mimicking.js":81352,"./MiniGamesMenu":96415,"./MiniGamesMenu.js":96415,"./MiningVendor":14162,"./MiningVendor.js":14162,"./Multitool":93705,"./Multitool.js":93705,"./Newscaster":17067,"./Newscaster.js":17067,"./NinjaBloodScan":65765,"./NinjaBloodScan.js":65765,"./NinjaMindScan":61095,"./NinjaMindScan.js":61095,"./NuclearBomb":46940,"./NuclearBomb.js":46940,"./NumberInputModal":35478,"./NumberInputModal.tsx":35478,"./OperatingComputer":98476,"./OperatingComputer.js":98476,"./Orbit":98702,"./Orbit.js":98702,"./OreRedemption":74015,"./OreRedemption.js":74015,"./PAI":48824,"./PAI.js":48824,"./PDA":41565,"./PDA.js":41565,"./PDAPainter":10890,"./PDAPainter.js":10890,"./Pacman":78704,"./Pacman.js":78704,"./PersonalCrafting":81378,"./PersonalCrafting.js":81378,"./Photocopier":58792,"./Photocopier.js":58792,"./PodTracking":43220,"./PodTracking.js":43220,"./PoolController":27902,"./PoolController.js":27902,"./PortablePump":52025,"./PortablePump.js":52025,"./PortableScrubber":57827,"./PortableScrubber.js":57827,"./PortableTurret":63825,"./PortableTurret.js":63825,"./PowerMonitor":70373,"./PowerMonitor.js":70373,"./PrisonerImplantManager":27262,"./PrisonerImplantManager.js":27262,"./QuestConsole":71647,"./QuestConsole.js":71647,"./RCD":87963,"./RCD.js":87963,"./RPD":84364,"./RPD.js":84364,"./Radio":14641,"./Radio.js":14641,"./RequestConsole":12326,"./RequestConsole.js":12326,"./RequestManager":29392,"./RequestManager.js":29392,"./RndConsole":89641,"./RndConsole.js":89641,"./RndConsoleComponents":3422,"./RndConsoleComponents/":3422,"./RndConsoleComponents/CurrentLevels":19348,"./RndConsoleComponents/CurrentLevels.js":19348,"./RndConsoleComponents/DataDiskMenu":338,"./RndConsoleComponents/DataDiskMenu.js":338,"./RndConsoleComponents/DeconstructionMenu":90785,"./RndConsoleComponents/DeconstructionMenu.js":90785,"./RndConsoleComponents/LatheCategory":34492,"./RndConsoleComponents/LatheCategory.js":34492,"./RndConsoleComponents/LatheChemicalStorage":84275,"./RndConsoleComponents/LatheChemicalStorage.js":84275,"./RndConsoleComponents/LatheMainMenu":12638,"./RndConsoleComponents/LatheMainMenu.js":12638,"./RndConsoleComponents/LatheMaterialStorage":89004,"./RndConsoleComponents/LatheMaterialStorage.js":89004,"./RndConsoleComponents/LatheMaterials":73856,"./RndConsoleComponents/LatheMaterials.js":73856,"./RndConsoleComponents/LatheMenu":75955,"./RndConsoleComponents/LatheMenu.js":75955,"./RndConsoleComponents/LatheSearch":72880,"./RndConsoleComponents/LatheSearch.js":72880,"./RndConsoleComponents/MainMenu":62306,"./RndConsoleComponents/MainMenu.js":62306,"./RndConsoleComponents/RndNavButton":99941,"./RndConsoleComponents/RndNavButton.js":99941,"./RndConsoleComponents/RndNavbar":24448,"./RndConsoleComponents/RndNavbar.js":24448,"./RndConsoleComponents/RndRoute":78345,"./RndConsoleComponents/RndRoute.js":78345,"./RndConsoleComponents/SettingsMenu":56454,"./RndConsoleComponents/SettingsMenu.js":56454,"./RndConsoleComponents/index":3422,"./RndConsoleComponents/index.js":3422,"./RobotSelfDiagnosis":71123,"./RobotSelfDiagnosis.js":71123,"./RoboticsControlConsole":98951,"./RoboticsControlConsole.js":98951,"./Safe":2289,"./Safe.js":2289,"./SatelliteControl":49334,"./SatelliteControl.js":49334,"./SecureStorage":54892,"./SecureStorage.js":54892,"./SecurityRecords":56798,"./SecurityRecords.js":56798,"./SeedExtractor":59981,"./SeedExtractor.js":59981,"./ShuttleConsole":33454,"./ShuttleConsole.js":33454,"./ShuttleManipulator":50451,"./ShuttleManipulator.js":50451,"./Sleeper":99050,"./Sleeper.js":99050,"./SlotMachine":37763,"./SlotMachine.js":37763,"./Smartfridge":26654,"./Smartfridge.js":26654,"./Smes":71124,"./Smes.js":71124,"./SolarControl":21786,"./SolarControl.js":21786,"./SpawnersMenu":31202,"./SpawnersMenu.js":31202,"./SpiderOS":54015,"./SpiderOS.js":54015,"./StationAlertConsole":46501,"./StationAlertConsole.js":46501,"./StripMenu":95147,"./StripMenu.tsx":95147,"./SuitStorage":61284,"./SuitStorage.js":61284,"./SupermatterMonitor":19796,"./SupermatterMonitor.js":19796,"./SyndicateComputerSimple":30047,"./SyndicateComputerSimple.js":30047,"./SyndieCargoConsole":92869,"./SyndieCargoConsole.js":92869,"./TTSSeedsExplorer":96606,"./TTSSeedsExplorer.js":96606,"./TachyonArray":39903,"./TachyonArray.js":39903,"./Tank":17068,"./Tank.js":17068,"./TankDispenser":69161,"./TankDispenser.js":69161,"./TcommsCore":87394,"./TcommsCore.js":87394,"./TcommsRelay":55684,"./TcommsRelay.js":55684,"./Teleporter":81088,"./Teleporter.js":81088,"./TextInputModal":95484,"./TextInputModal.tsx":95484,"./ThiefKit":16387,"./ThiefKit.js":16387,"./TransferValve":3365,"./TransferValve.js":3365,"./Uplink":22169,"./Uplink.js":22169,"./VampireSpecMenu":22732,"./VampireSpecMenu.js":22732,"./VampireTrophiesStatus":4644,"./VampireTrophiesStatus.js":4644,"./Vending":70547,"./Vending.js":70547,"./VolumeMixer":33045,"./VolumeMixer.js":33045,"./VotePanel":53792,"./VotePanel.js":53792,"./Wires":64860,"./Wires.js":64860,"./Workshop":49253,"./Workshop.js":49253,"./common/AccessList":57842,"./common/AccessList.js":57842,"./common/AtmosScan":79449,"./common/AtmosScan.js":79449,"./common/BeakerContents":1496,"./common/BeakerContents.js":1496,"./common/ComplexModal":99665,"./common/ComplexModal.js":99665,"./common/CrewManifest":98444,"./common/CrewManifest.js":98444,"./common/InputButtons":15113,"./common/InputButtons.tsx":15113,"./common/InterfaceLockNoticeBox":26893,"./common/InterfaceLockNoticeBox.js":26893,"./common/Loader":14299,"./common/Loader.tsx":14299,"./common/LoginInfo":68159,"./common/LoginInfo.js":68159,"./common/LoginScreen":27527,"./common/LoginScreen.js":27527,"./common/Operating":75201,"./common/Operating.js":75201,"./common/Signaler":65435,"./common/Signaler.js":65435,"./common/SimpleRecords":77534,"./common/SimpleRecords.js":77534,"./common/TemporaryNotice":84537,"./common/TemporaryNotice.js":84537,"./manually-routed/KitchenSink":31473,"./manually-routed/KitchenSink.js":31473,"./pai/pai_advsecrecords":31130,"./pai/pai_advsecrecords.js":31130,"./pai/pai_atmosphere":24704,"./pai/pai_atmosphere.js":24704,"./pai/pai_bioscan":4209,"./pai/pai_bioscan.js":4209,"./pai/pai_camera_bug":98990,"./pai/pai_camera_bug.js":98990,"./pai/pai_directives":44430,"./pai/pai_directives.js":44430,"./pai/pai_doorjack":3367,"./pai/pai_doorjack.js":3367,"./pai/pai_encoder":59934,"./pai/pai_encoder.js":59934,"./pai/pai_gps_module":39913,"./pai/pai_gps_module.js":39913,"./pai/pai_main_menu":73395,"./pai/pai_main_menu.js":73395,"./pai/pai_manifest":37645,"./pai/pai_manifest.js":37645,"./pai/pai_medrecords":15836,"./pai/pai_medrecords.js":15836,"./pai/pai_messenger":91737,"./pai/pai_messenger.js":91737,"./pai/pai_radio":94077,"./pai/pai_radio.js":94077,"./pai/pai_sec_chem":14875,"./pai/pai_sec_chem.js":14875,"./pai/pai_secrecords":72621,"./pai/pai_secrecords.js":72621,"./pai/pai_signaler":53483,"./pai/pai_signaler.js":53483,"./pda/pda_atmos_scan":21606,"./pda/pda_atmos_scan.js":21606,"./pda/pda_janitor":12339,"./pda/pda_janitor.js":12339,"./pda/pda_main_menu":36615,"./pda/pda_main_menu.js":36615,"./pda/pda_manifest":99737,"./pda/pda_manifest.js":99737,"./pda/pda_medical":61597,"./pda/pda_medical.js":61597,"./pda/pda_messenger":30709,"./pda/pda_messenger.js":30709,"./pda/pda_mule":68053,"./pda/pda_mule.js":68053,"./pda/pda_notes":29415,"./pda/pda_notes.js":29415,"./pda/pda_power":52363,"./pda/pda_power.js":52363,"./pda/pda_secbot":23914,"./pda/pda_secbot.js":23914,"./pda/pda_security":68878,"./pda/pda_security.js":68878,"./pda/pda_signaler":95135,"./pda/pda_signaler.js":95135,"./pda/pda_status_display":20835,"./pda/pda_status_display.js":20835,"./pda/pda_supplyrecords":11741,"./pda/pda_supplyrecords.js":11741};function a(o){var s=t(o);return n(s)}function t(o){if(!n.o(e,o)){var s=new Error("Cannot find module '"+o+"'");throw s.code="MODULE_NOT_FOUND",s}return e[o]}a.keys=function(){return Object.keys(e)},a.resolve=t,I.exports=a,a.id=32054},4085:function(I,r,n){var e={"./Blink.stories.js":61498,"./BlockQuote.stories.js":27431,"./Box.stories.js":6517,"./Button.stories.js":20648,"./ByondUi.stories.js":14906,"./Collapsible.stories.js":59948,"./Flex.stories.js":37227,"./ImageButton.stories.js":16189,"./Input.stories.js":32304,"./Popper.stories.js":50394,"./ProgressBar.stories.js":75096,"./Stack.stories.js":30268,"./Storage.stories.js":22645,"./Tabs.stories.js":42120,"./Themes.stories.js":80254,"./Tooltip.stories.js":90823};function a(o){var s=t(o);return n(s)}function t(o){if(!n.o(e,o)){var s=new Error("Cannot find module '"+o+"'");throw s.code="MODULE_NOT_FOUND",s}return e[o]}a.keys=function(){return Object.keys(e)},a.resolve=t,I.exports=a,a.id=4085},20986:function(I,r,n){"use strict";var e=n(8389),a=n(82823),t=TypeError;I.exports=function(o){if(e(o))return o;throw new t(a(o)+" is not a function")}},23788:function(I,r,n){"use strict";var e=n(86781),a=n(82823),t=TypeError;I.exports=function(o){if(e(o))return o;throw new t(a(o)+" is not a constructor")}},71442:function(I,r,n){"use strict";var e=n(30517),a=String,t=TypeError;I.exports=function(o){if(e(o))return o;throw new t("Can't set "+a(o)+" as a prototype")}},46677:function(I,r,n){"use strict";var e=n(92611),a=n(54792),t=n(3329).f,o=e("unscopables"),s=Array.prototype;s[o]===void 0&&t(s,o,{configurable:!0,value:a(null)}),I.exports=function(y){s[o][y]=!0}},87477:function(I,r,n){"use strict";var e=n(94567).charAt;I.exports=function(a,t,o){return t+(o?e(a,t).length:1)}},38567:function(I,r,n){"use strict";var e=n(88457),a=TypeError;I.exports=function(t,o){if(e(o,t))return t;throw new a("Incorrect invocation")}},91191:function(I,r,n){"use strict";var e=n(63762),a=String,t=TypeError;I.exports=function(o){if(e(o))return o;throw new t(a(o)+" is not an object")}},30627:function(I){"use strict";I.exports=typeof ArrayBuffer!="undefined"&&typeof DataView!="undefined"},12116:function(I,r,n){"use strict";var e=n(26735);I.exports=e(function(){if(typeof ArrayBuffer=="function"){var a=new ArrayBuffer(8);Object.isExtensible(a)&&Object.defineProperty(a,"a",{value:8})}})},94084:function(I,r,n){"use strict";var e=n(30627),a=n(47676),t=n(16203),o=n(8389),s=n(63762),y=n(3953),V=n(39851),k=n(82823),S=n(75387),p=n(73880),i=n(67242),l=n(88457),f=n(97139),u=n(19191),d=n(92611),m=n(91072),c=n(77341),v=c.enforce,b=c.get,C=t.Int8Array,h=C&&C.prototype,g=t.Uint8ClampedArray,N=g&&g.prototype,x=C&&f(C),B=h&&f(h),L=Object.prototype,w=t.TypeError,A=d("toStringTag"),T=m("TYPED_ARRAY_TAG"),E="TypedArrayConstructor",O=e&&!!u&&V(t.opera)!=="Opera",P=!1,R,F,j,U={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},_={BigInt64Array:8,BigUint64Array:8},K=function(){function be(xe){if(!s(xe))return!1;var Ie=V(xe);return Ie==="DataView"||y(U,Ie)||y(_,Ie)}return be}(),Y=function be(xe){var Ie=f(xe);if(s(Ie)){var Te=b(Ie);return Te&&y(Te,E)?Te[E]:be(Ie)}},G=function(xe){if(!s(xe))return!1;var Ie=V(xe);return y(U,Ie)||y(_,Ie)},ne=function(xe){if(G(xe))return xe;throw new w("Target is not a typed array")},$=function(xe){if(o(xe)&&(!u||l(x,xe)))return xe;throw new w(k(xe)+" is not a typed array constructor")},se=function(xe,Ie,Te,he){if(a){if(Te)for(var Q in U){var X=t[Q];if(X&&y(X.prototype,xe))try{delete X.prototype[xe]}catch(te){try{X.prototype[xe]=Ie}catch(q){}}}(!B[xe]||Te)&&p(B,xe,Te?Ie:O&&h[xe]||Ie,he)}},Ne=function(xe,Ie,Te){var he,Q;if(a){if(u){if(Te){for(he in U)if(Q=t[he],Q&&y(Q,xe))try{delete Q[xe]}catch(X){}}if(!x[xe]||Te)try{return p(x,xe,Te?Ie:O&&x[xe]||Ie)}catch(X){}else return}for(he in U)Q=t[he],Q&&(!Q[xe]||Te)&&p(Q,xe,Ie)}};for(R in U)F=t[R],j=F&&F.prototype,j?v(j)[E]=F:O=!1;for(R in _)F=t[R],j=F&&F.prototype,j&&(v(j)[E]=F);if((!O||!o(x)||x===Function.prototype)&&(x=function(){function be(){throw new w("Incorrect invocation")}return be}(),O))for(R in U)t[R]&&u(t[R],x);if((!O||!B||B===L)&&(B=x.prototype,O))for(R in U)t[R]&&u(t[R].prototype,B);if(O&&f(N)!==B&&u(N,B),a&&!y(B,A)){P=!0,i(B,A,{configurable:!0,get:function(){function be(){return s(this)?this[T]:void 0}return be}()});for(R in U)t[R]&&S(t[R],T,R)}I.exports={NATIVE_ARRAY_BUFFER_VIEWS:O,TYPED_ARRAY_TAG:P&&T,aTypedArray:ne,aTypedArrayConstructor:$,exportTypedArrayMethod:se,exportTypedArrayStaticMethod:Ne,getTypedArrayConstructor:Y,isView:K,isTypedArray:G,TypedArray:x,TypedArrayPrototype:B}},89050:function(I,r,n){"use strict";var e=n(16203),a=n(80576),t=n(47676),o=n(30627),s=n(97310),y=n(75387),V=n(67242),k=n(91783),S=n(26735),p=n(38567),i=n(38283),l=n(40046),f=n(38768),u=n(74033),d=n(31674),m=n(97139),c=n(19191),v=n(41733),b=n(7728),C=n(99695),h=n(81340),g=n(43087),N=n(77341),x=s.PROPER,B=s.CONFIGURABLE,L="ArrayBuffer",w="DataView",A="prototype",T="Wrong length",E="Wrong index",O=N.getterFor(L),P=N.getterFor(w),R=N.set,F=e[L],j=F,U=j&&j[A],_=e[w],K=_&&_[A],Y=Object.prototype,G=e.Array,ne=e.RangeError,$=a(v),se=a([].reverse),Ne=d.pack,be=d.unpack,xe=function(J){return[J&255]},Ie=function(J){return[J&255,J>>8&255]},Te=function(J){return[J&255,J>>8&255,J>>16&255,J>>24&255]},he=function(J){return J[3]<<24|J[2]<<16|J[1]<<8|J[0]},Q=function(J){return Ne(u(J),23,4)},X=function(J){return Ne(J,52,8)},te=function(J,re,ue){V(J[A],re,{configurable:!0,get:function(){function ie(){return ue(this)[re]}return ie}()})},q=function(J,re,ue,ie){var ge=P(J),Ce=f(ue),Ae=!!ie;if(Ce+re>ge.byteLength)throw new ne(E);var De=ge.bytes,Se=Ce+ge.byteOffset,me=b(De,Se,Se+re);return Ae?me:se(me)},ce=function(J,re,ue,ie,ge,Ce){var Ae=P(J),De=f(ue),Se=ie(+ge),me=!!Ce;if(De+re>Ae.byteLength)throw new ne(E);for(var de=Ae.bytes,Be=De+Ae.byteOffset,W=0;Wge)throw new ne("Wrong offset");if(ue=ue===void 0?ge-Ce:l(ue),Ce+ue>ge)throw new ne(T);R(this,{type:w,buffer:J,byteLength:ue,byteOffset:Ce,bytes:ie.bytes}),t||(this.buffer=J,this.byteLength=ue,this.byteOffset=Ce)}return M}(),K=_[A],t&&(te(j,"byteLength",O),te(_,"buffer",P),te(_,"byteLength",P),te(_,"byteOffset",P)),k(K,{getInt8:function(){function M(J){return q(this,1,J)[0]<<24>>24}return M}(),getUint8:function(){function M(J){return q(this,1,J)[0]}return M}(),getInt16:function(){function M(J){var re=q(this,2,J,arguments.length>1?arguments[1]:!1);return(re[1]<<8|re[0])<<16>>16}return M}(),getUint16:function(){function M(J){var re=q(this,2,J,arguments.length>1?arguments[1]:!1);return re[1]<<8|re[0]}return M}(),getInt32:function(){function M(J){return he(q(this,4,J,arguments.length>1?arguments[1]:!1))}return M}(),getUint32:function(){function M(J){return he(q(this,4,J,arguments.length>1?arguments[1]:!1))>>>0}return M}(),getFloat32:function(){function M(J){return be(q(this,4,J,arguments.length>1?arguments[1]:!1),23)}return M}(),getFloat64:function(){function M(J){return be(q(this,8,J,arguments.length>1?arguments[1]:!1),52)}return M}(),setInt8:function(){function M(J,re){ce(this,1,J,xe,re)}return M}(),setUint8:function(){function M(J,re){ce(this,1,J,xe,re)}return M}(),setInt16:function(){function M(J,re){ce(this,2,J,Ie,re,arguments.length>2?arguments[2]:!1)}return M}(),setUint16:function(){function M(J,re){ce(this,2,J,Ie,re,arguments.length>2?arguments[2]:!1)}return M}(),setInt32:function(){function M(J,re){ce(this,4,J,Te,re,arguments.length>2?arguments[2]:!1)}return M}(),setUint32:function(){function M(J,re){ce(this,4,J,Te,re,arguments.length>2?arguments[2]:!1)}return M}(),setFloat32:function(){function M(J,re){ce(this,4,J,Q,re,arguments.length>2?arguments[2]:!1)}return M}(),setFloat64:function(){function M(J,re){ce(this,8,J,X,re,arguments.length>2?arguments[2]:!1)}return M}()});else{var Ve=x&&F.name!==L;!S(function(){F(1)})||!S(function(){new F(-1)})||S(function(){return new F,new F(1.5),new F(NaN),F.length!==1||Ve&&!B})?(j=function(){function M(J){return p(this,U),C(new F(f(J)),this,j)}return M}(),j[A]=U,U.constructor=j,h(j,F)):Ve&&B&&y(F,"name",L),c&&m(K)!==Y&&c(K,Y);var fe=new _(new j(2)),we=a(K.setInt8);fe.setInt8(0,2147483648),fe.setInt8(1,2147483649),(fe.getInt8(0)||!fe.getInt8(1))&&k(K,{setInt8:function(){function M(J,re){we(this,J,re<<24>>24)}return M}(),setUint8:function(){function M(J,re){we(this,J,re<<24>>24)}return M}()},{unsafe:!0})}g(j,L),g(_,w),I.exports={ArrayBuffer:j,DataView:_}},77653:function(I,r,n){"use strict";var e=n(43269),a=n(44874),t=n(62022),o=n(25486),s=Math.min;I.exports=[].copyWithin||function(){function y(V,k){var S=e(this),p=t(S),i=a(V,p),l=a(k,p),f=arguments.length>2?arguments[2]:void 0,u=s((f===void 0?p:a(f,p))-l,p-i),d=1;for(l0;)l in S?S[i]=S[l]:o(S,i),i+=d,l+=d;return S}return y}()},41733:function(I,r,n){"use strict";var e=n(43269),a=n(44874),t=n(62022);I.exports=function(){function o(s){for(var y=e(this),V=t(y),k=arguments.length,S=a(k>1?arguments[1]:void 0,V),p=k>2?arguments[2]:void 0,i=p===void 0?V:a(p,V);i>S;)y[S++]=s;return y}return o}()},62571:function(I,r,n){"use strict";var e=n(30205).forEach,a=n(11766),t=a("forEach");I.exports=t?[].forEach:function(){function o(s){return e(this,s,arguments.length>1?arguments[1]:void 0)}return o}()},90106:function(I,r,n){"use strict";var e=n(62022);I.exports=function(a,t,o){for(var s=0,y=arguments.length>2?o:e(t),V=new a(y);y>s;)V[s]=t[s++];return V}},36332:function(I,r,n){"use strict";var e=n(41536),a=n(81037),t=n(43269),o=n(2671),s=n(73345),y=n(86781),V=n(62022),k=n(4160),S=n(19793),p=n(19155),i=Array;I.exports=function(){function l(f){var u=t(f),d=y(this),m=arguments.length,c=m>1?arguments[1]:void 0,v=c!==void 0;v&&(c=e(c,m>2?arguments[2]:void 0));var b=p(u),C=0,h,g,N,x,B,L;if(b&&!(this===i&&s(b)))for(g=d?new this:[],x=S(u,b),B=x.next;!(N=a(B,x)).done;C++)L=v?o(x,c,[N.value,C],!0):N.value,k(g,C,L);else for(h=V(u),g=d?new this(h):i(h);h>C;C++)L=v?c(u[C],C):u[C],k(g,C,L);return g.length=C,g}return l}()},54065:function(I,r,n){"use strict";var e=n(1381),a=n(44874),t=n(62022),o=function(y){return function(V,k,S){var p=e(V),i=t(p);if(i===0)return!y&&-1;var l=a(S,i),f;if(y&&k!==k){for(;i>l;)if(f=p[l++],f!==f)return!0}else for(;i>l;l++)if((y||l in p)&&p[l]===k)return y||l||0;return!y&&-1}};I.exports={includes:o(!0),indexOf:o(!1)}},30205:function(I,r,n){"use strict";var e=n(41536),a=n(80576),t=n(17759),o=n(43269),s=n(62022),y=n(48525),V=a([].push),k=function(p){var i=p===1,l=p===2,f=p===3,u=p===4,d=p===6,m=p===7,c=p===5||d;return function(v,b,C,h){for(var g=o(v),N=t(g),x=s(N),B=e(b,C),L=0,w=h||y,A=i?w(v,x):l||m?w(v,0):void 0,T,E;x>L;L++)if((c||L in N)&&(T=N[L],E=B(T,L,g),p))if(i)A[L]=E;else if(E)switch(p){case 3:return!0;case 5:return T;case 6:return L;case 2:V(A,T)}else switch(p){case 4:return!1;case 7:V(A,T)}return d?-1:f||u?u:A}};I.exports={forEach:k(0),map:k(1),filter:k(2),some:k(3),every:k(4),find:k(5),findIndex:k(6),filterReject:k(7)}},41931:function(I,r,n){"use strict";var e=n(81929),a=n(1381),t=n(38283),o=n(62022),s=n(11766),y=Math.min,V=[].lastIndexOf,k=!!V&&1/[1].lastIndexOf(1,-0)<0,S=s("lastIndexOf"),p=k||!S;I.exports=p?function(){function i(l){if(k)return e(V,this,arguments)||0;var f=a(this),u=o(f);if(u===0)return-1;var d=u-1;for(arguments.length>1&&(d=y(d,t(arguments[1]))),d<0&&(d=u+d);d>=0;d--)if(d in f&&f[d]===l)return d||0;return-1}return i}():V},56981:function(I,r,n){"use strict";var e=n(26735),a=n(92611),t=n(3484),o=a("species");I.exports=function(s){return t>=51||!e(function(){var y=[],V=y.constructor={};return V[o]=function(){return{foo:1}},y[s](Boolean).foo!==1})}},11766:function(I,r,n){"use strict";var e=n(26735);I.exports=function(a,t){var o=[][a];return!!o&&e(function(){o.call(null,t||function(){return 1},1)})}},83214:function(I,r,n){"use strict";var e=n(20986),a=n(43269),t=n(17759),o=n(62022),s=TypeError,y="Reduce of empty array with no initial value",V=function(S){return function(p,i,l,f){var u=a(p),d=t(u),m=o(u);if(e(i),m===0&&l<2)throw new s(y);var c=S?m-1:0,v=S?-1:1;if(l<2)for(;;){if(c in d){f=d[c],c+=v;break}if(c+=v,S?c<0:m<=c)throw new s(y)}for(;S?c>=0:m>c;c+=v)c in d&&(f=i(f,d[c],c,u));return f}};I.exports={left:V(!1),right:V(!0)}},16399:function(I,r,n){"use strict";var e=n(47676),a=n(28728),t=TypeError,o=Object.getOwnPropertyDescriptor,s=e&&!function(){if(this!==void 0)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(y){return y instanceof TypeError}}();I.exports=s?function(y,V){if(a(y)&&!o(y,"length").writable)throw new t("Cannot set read only .length");return y.length=V}:function(y,V){return y.length=V}},7728:function(I,r,n){"use strict";var e=n(80576);I.exports=e([].slice)},38120:function(I,r,n){"use strict";var e=n(7728),a=Math.floor,t=function o(s,y){var V=s.length;if(V<8)for(var k=1,S,p;k0;)s[p]=s[--p];p!==k++&&(s[p]=S)}else for(var i=a(V/2),l=o(e(s,0,i),y),f=o(e(s,i),y),u=l.length,d=f.length,m=0,c=0;m1?arguments[1]:void 0),E;E=E?E.next:A.first;)for(T(E.value,E.key,this);E&&E.removed;)E=E.previous}return L}(),has:function(){function L(w){return!!B(this,w)}return L}()}),t(g,b?{get:function(){function L(w){var A=B(this,w);return A&&A.value}return L}(),set:function(){function L(w,A){return x(this,w===0?0:w,A)}return L}()}:{add:function(){function L(w){return x(this,w=w===0?0:w,w)}return L}()}),i&&a(g,"size",{configurable:!0,get:function(){function L(){return N(this).size}return L}()}),h}return m}(),setStrong:function(){function m(c,v,b){var C=v+" Iterator",h=d(v),g=d(C);k(c,v,function(N,x){u(this,{type:C,target:N,state:h(N),kind:x,last:void 0})},function(){for(var N=g(this),x=N.kind,B=N.last;B&&B.removed;)B=B.previous;return!N.target||!(N.last=B=B?B.next:N.state.first)?(N.target=void 0,S(void 0,!0)):S(x==="keys"?B.key:x==="values"?B.value:[B.key,B.value],!1)},b?"entries":"values",!b,!0),p(v)}return m}()}},37081:function(I,r,n){"use strict";var e=n(80576),a=n(91783),t=n(62232).getWeakData,o=n(38567),s=n(91191),y=n(79237),V=n(63762),k=n(8828),S=n(30205),p=n(3953),i=n(77341),l=i.set,f=i.getterFor,u=S.find,d=S.findIndex,m=e([].splice),c=0,v=function(g){return g.frozen||(g.frozen=new b)},b=function(){this.entries=[]},C=function(g,N){return u(g.entries,function(x){return x[0]===N})};b.prototype={get:function(){function h(g){var N=C(this,g);if(N)return N[1]}return h}(),has:function(){function h(g){return!!C(this,g)}return h}(),set:function(){function h(g,N){var x=C(this,g);x?x[1]=N:this.entries.push([g,N])}return h}(),delete:function(){function h(g){var N=d(this.entries,function(x){return x[0]===g});return~N&&m(this.entries,N,1),!!~N}return h}()},I.exports={getConstructor:function(){function h(g,N,x,B){var L=g(function(E,O){o(E,w),l(E,{type:N,id:c++,frozen:void 0}),y(O)||k(O,E[B],{that:E,AS_ENTRIES:x})}),w=L.prototype,A=f(N),T=function(){function E(O,P,R){var F=A(O),j=t(s(P),!0);return j===!0?v(F).set(P,R):j[F.id]=R,O}return E}();return a(w,{delete:function(){function E(O){var P=A(this);if(!V(O))return!1;var R=t(O);return R===!0?v(P).delete(O):R&&p(R,P.id)&&delete R[P.id]}return E}(),has:function(){function E(O){var P=A(this);if(!V(O))return!1;var R=t(O);return R===!0?v(P).has(O):R&&p(R,P.id)}return E}()}),a(w,x?{get:function(){function E(O){var P=A(this);if(V(O)){var R=t(O);return R===!0?v(P).get(O):R?R[P.id]:void 0}}return E}(),set:function(){function E(O,P){return T(this,O,P)}return E}()}:{add:function(){function E(O){return T(this,O,!0)}return E}()}),L}return h}()}},25796:function(I,r,n){"use strict";var e=n(72134),a=n(16203),t=n(80576),o=n(89644),s=n(73880),y=n(62232),V=n(8828),k=n(38567),S=n(8389),p=n(79237),i=n(63762),l=n(26735),f=n(65372),u=n(43087),d=n(99695);I.exports=function(m,c,v){var b=m.indexOf("Map")!==-1,C=m.indexOf("Weak")!==-1,h=b?"set":"add",g=a[m],N=g&&g.prototype,x=g,B={},L=function(F){var j=t(N[F]);s(N,F,F==="add"?function(){function U(_){return j(this,_===0?0:_),this}return U}():F==="delete"?function(U){return C&&!i(U)?!1:j(this,U===0?0:U)}:F==="get"?function(){function U(_){return C&&!i(_)?void 0:j(this,_===0?0:_)}return U}():F==="has"?function(){function U(_){return C&&!i(_)?!1:j(this,_===0?0:_)}return U}():function(){function U(_,K){return j(this,_===0?0:_,K),this}return U}())},w=o(m,!S(g)||!(C||N.forEach&&!l(function(){new g().entries().next()})));if(w)x=v.getConstructor(c,m,b,h),y.enable();else if(o(m,!0)){var A=new x,T=A[h](C?{}:-0,1)!==A,E=l(function(){A.has(1)}),O=f(function(R){new g(R)}),P=!C&&l(function(){for(var R=new g,F=5;F--;)R[h](F,F);return!R.has(-0)});O||(x=c(function(R,F){k(R,N);var j=d(new g,R,x);return p(F)||V(F,j[h],{that:j,AS_ENTRIES:b}),j}),x.prototype=N,N.constructor=x),(E||P)&&(L("delete"),L("has"),b&&L("get")),(P||T)&&L(h),C&&N.clear&&delete N.clear}return B[m]=x,e({global:!0,constructor:!0,forced:x!==g},B),u(x,m),C||v.setStrong(x,m,b),x}},81340:function(I,r,n){"use strict";var e=n(3953),a=n(27623),t=n(9747),o=n(3329);I.exports=function(s,y,V){for(var k=a(y),S=o.f,p=t.f,i=0;i"+p+""}},53649:function(I){"use strict";I.exports=function(r,n){return{value:r,done:n}}},75387:function(I,r,n){"use strict";var e=n(47676),a=n(3329),t=n(276);I.exports=e?function(o,s,y){return a.f(o,s,t(1,y))}:function(o,s,y){return o[s]=y,o}},276:function(I){"use strict";I.exports=function(r,n){return{enumerable:!(r&1),configurable:!(r&2),writable:!(r&4),value:n}}},4160:function(I,r,n){"use strict";var e=n(47676),a=n(3329),t=n(276);I.exports=function(o,s,y){e?a.f(o,s,t(0,y)):o[s]=y}},10684:function(I,r,n){"use strict";var e=n(80576),a=n(26735),t=n(12805).start,o=RangeError,s=isFinite,y=Math.abs,V=Date.prototype,k=V.toISOString,S=e(V.getTime),p=e(V.getUTCDate),i=e(V.getUTCFullYear),l=e(V.getUTCHours),f=e(V.getUTCMilliseconds),u=e(V.getUTCMinutes),d=e(V.getUTCMonth),m=e(V.getUTCSeconds);I.exports=a(function(){return k.call(new Date(-50000000000001))!=="0385-07-25T07:06:39.999Z"})||!a(function(){k.call(new Date(NaN))})?function(){function c(){if(!s(S(this)))throw new o("Invalid time value");var v=this,b=i(v),C=f(v),h=b<0?"-":b>9999?"+":"";return h+t(y(b),h?6:4,0)+"-"+t(d(v)+1,2,0)+"-"+t(p(v),2,0)+"T"+t(l(v),2,0)+":"+t(u(v),2,0)+":"+t(m(v),2,0)+"."+t(C,3,0)+"Z"}return c}():k},22968:function(I,r,n){"use strict";var e=n(91191),a=n(1918),t=TypeError;I.exports=function(o){if(e(this),o==="string"||o==="default")o="string";else if(o!=="number")throw new t("Incorrect hint");return a(this,o)}},67242:function(I,r,n){"use strict";var e=n(82683),a=n(3329);I.exports=function(t,o,s){return s.get&&e(s.get,o,{getter:!0}),s.set&&e(s.set,o,{setter:!0}),a.f(t,o,s)}},73880:function(I,r,n){"use strict";var e=n(8389),a=n(3329),t=n(82683),o=n(51481);I.exports=function(s,y,V,k){k||(k={});var S=k.enumerable,p=k.name!==void 0?k.name:y;if(e(V)&&t(V,p,k),k.global)S?s[y]=V:o(y,V);else{try{k.unsafe?s[y]&&(S=!0):delete s[y]}catch(i){}S?s[y]=V:a.f(s,y,{value:V,enumerable:!1,configurable:!k.nonConfigurable,writable:!k.nonWritable})}return s}},91783:function(I,r,n){"use strict";var e=n(73880);I.exports=function(a,t,o){for(var s in t)e(a,s,t[s],o);return a}},51481:function(I,r,n){"use strict";var e=n(16203),a=Object.defineProperty;I.exports=function(t,o){try{a(e,t,{value:o,configurable:!0,writable:!0})}catch(s){e[t]=o}return o}},25486:function(I,r,n){"use strict";var e=n(82823),a=TypeError;I.exports=function(t,o){if(!delete t[o])throw new a("Cannot delete property "+e(o)+" of "+e(t))}},47676:function(I,r,n){"use strict";var e=n(26735);I.exports=!e(function(){return Object.defineProperty({},1,{get:function(){function a(){return 7}return a}()})[1]!==7})},33191:function(I,r,n){"use strict";var e=n(16203),a=n(63762),t=e.document,o=a(t)&&a(t.createElement);I.exports=function(s){return o?t.createElement(s):{}}},44789:function(I){"use strict";var r=TypeError,n=9007199254740991;I.exports=function(e){if(e>n)throw r("Maximum allowed index exceeded");return e}},10258:function(I,r,n){"use strict";var e=n(2416),a=e.match(/firefox\/(\d+)/i);I.exports=!!a&&+a[1]},86922:function(I,r,n){"use strict";var e=n(88292),a=n(71488);I.exports=!e&&!a&&typeof window=="object"&&typeof document=="object"},70203:function(I){"use strict";I.exports=typeof Bun=="function"&&Bun&&typeof Bun.version=="string"},88292:function(I){"use strict";I.exports=typeof Deno=="object"&&Deno&&typeof Deno.version=="object"},75154:function(I,r,n){"use strict";var e=n(2416);I.exports=/MSIE|Trident/.test(e)},74892:function(I,r,n){"use strict";var e=n(2416);I.exports=/ipad|iphone|ipod/i.test(e)&&typeof Pebble!="undefined"},25383:function(I,r,n){"use strict";var e=n(2416);I.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(e)},71488:function(I,r,n){"use strict";var e=n(16203),a=n(83376);I.exports=a(e.process)==="process"},7213:function(I,r,n){"use strict";var e=n(2416);I.exports=/web0s(?!.*chrome)/i.test(e)},2416:function(I){"use strict";I.exports=typeof navigator!="undefined"&&String(navigator.userAgent)||""},3484:function(I,r,n){"use strict";var e=n(16203),a=n(2416),t=e.process,o=e.Deno,s=t&&t.versions||o&&o.version,y=s&&s.v8,V,k;y&&(V=y.split("."),k=V[0]>0&&V[0]<4?1:+(V[0]+V[1])),!k&&a&&(V=a.match(/Edge\/(\d+)/),(!V||V[1]>=74)&&(V=a.match(/Chrome\/(\d+)/),V&&(k=+V[1]))),I.exports=k},40312:function(I,r,n){"use strict";var e=n(2416),a=e.match(/AppleWebKit\/(\d+)\./);I.exports=!!a&&+a[1]},56007:function(I){"use strict";I.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},72134:function(I,r,n){"use strict";var e=n(16203),a=n(9747).f,t=n(75387),o=n(73880),s=n(51481),y=n(81340),V=n(89644);I.exports=function(k,S){var p=k.target,i=k.global,l=k.stat,f,u,d,m,c,v;if(i?u=e:l?u=e[p]||s(p,{}):u=e[p]&&e[p].prototype,u)for(d in S){if(c=S[d],k.dontCallGetSet?(v=a(u,d),m=v&&v.value):m=u[d],f=V(i?d:p+(l?".":"#")+d,k.forced),!f&&m!==void 0){if(typeof c==typeof m)continue;y(c,m)}(k.sham||m&&m.sham)&&t(c,"sham",!0),o(u,d,c,k)}}},26735:function(I){"use strict";I.exports=function(r){try{return!!r()}catch(n){return!0}}},36124:function(I,r,n){"use strict";n(67383);var e=n(81037),a=n(73880),t=n(81019),o=n(26735),s=n(92611),y=n(75387),V=s("species"),k=RegExp.prototype;I.exports=function(S,p,i,l){var f=s(S),u=!o(function(){var v={};return v[f]=function(){return 7},""[S](v)!==7}),d=u&&!o(function(){var v=!1,b=/a/;return S==="split"&&(b={},b.constructor={},b.constructor[V]=function(){return b},b.flags="",b[f]=/./[f]),b.exec=function(){return v=!0,null},b[f](""),!v});if(!u||!d||i){var m=/./[f],c=p(f,""[S],function(v,b,C,h,g){var N=b.exec;return N===t||N===k.exec?u&&!g?{done:!0,value:e(m,b,C,h)}:{done:!0,value:e(v,C,b,h)}:{done:!1}});a(String.prototype,S,c[0]),a(k,f,c[1])}l&&y(k[f],"sham",!0)}},35043:function(I,r,n){"use strict";var e=n(28728),a=n(62022),t=n(44789),o=n(41536),s=function y(V,k,S,p,i,l,f,u){for(var d=i,m=0,c=f?o(f,u):!1,v,b;m0&&e(v)?(b=a(v),d=y(V,k,v,b,d,l-1)-1):(t(d+1),V[d]=v),d++),m++;return d};I.exports=s},58680:function(I,r,n){"use strict";var e=n(26735);I.exports=!e(function(){return Object.isExtensible(Object.preventExtensions({}))})},81929:function(I,r,n){"use strict";var e=n(33976),a=Function.prototype,t=a.apply,o=a.call;I.exports=typeof Reflect=="object"&&Reflect.apply||(e?o.bind(t):function(){return o.apply(t,arguments)})},41536:function(I,r,n){"use strict";var e=n(93636),a=n(20986),t=n(33976),o=e(e.bind);I.exports=function(s,y){return a(s),y===void 0?s:t?o(s,y):function(){return s.apply(y,arguments)}}},33976:function(I,r,n){"use strict";var e=n(26735);I.exports=!e(function(){var a=function(){}.bind();return typeof a!="function"||a.hasOwnProperty("prototype")})},15062:function(I,r,n){"use strict";var e=n(80576),a=n(20986),t=n(63762),o=n(3953),s=n(7728),y=n(33976),V=Function,k=e([].concat),S=e([].join),p={},i=function(f,u,d){if(!o(p,u)){for(var m=[],c=0;c]*>)/g,k=/\$([$&'`]|\d{1,2})/g;I.exports=function(S,p,i,l,f,u){var d=i+S.length,m=l.length,c=k;return f!==void 0&&(f=a(f),c=V),s(u,c,function(v,b){var C;switch(o(b,0)){case"$":return"$";case"&":return S;case"`":return y(p,0,i);case"'":return y(p,d);case"<":C=f[y(b,1,-1)];break;default:var h=+b;if(h===0)return v;if(h>m){var g=t(h/10);return g===0?v:g<=m?l[g-1]===void 0?o(b,1):l[g-1]+o(b,1):v}C=l[h-1]}return C===void 0?"":C})}},16203:function(I,r,n){"use strict";var e=function(t){return t&&t.Math===Math&&t};I.exports=e(typeof globalThis=="object"&&globalThis)||e(typeof window=="object"&&window)||e(typeof self=="object"&&self)||e(typeof n.g=="object"&&n.g)||e(!1)||function(){return this}()||Function("return this")()},3953:function(I,r,n){"use strict";var e=n(80576),a=n(43269),t=e({}.hasOwnProperty);I.exports=Object.hasOwn||function(){function o(s,y){return t(a(s),y)}return o}()},58469:function(I){"use strict";I.exports={}},62613:function(I){"use strict";I.exports=function(r,n){try{arguments.length}catch(e){}}},69917:function(I,r,n){"use strict";var e=n(70663);I.exports=e("document","documentElement")},86429:function(I,r,n){"use strict";var e=n(47676),a=n(26735),t=n(33191);I.exports=!e&&!a(function(){return Object.defineProperty(t("div"),"a",{get:function(){function o(){return 7}return o}()}).a!==7})},31674:function(I){"use strict";var r=Array,n=Math.abs,e=Math.pow,a=Math.floor,t=Math.log,o=Math.LN2,s=function(k,S,p){var i=r(p),l=p*8-S-1,f=(1<>1,d=S===23?e(2,-24)-e(2,-77):0,m=k<0||k===0&&1/k<0?1:0,c=0,v,b,C;for(k=n(k),k!==k||k===1/0?(b=k!==k?1:0,v=f):(v=a(t(k)/o),C=e(2,-v),k*C<1&&(v--,C*=2),v+u>=1?k+=d/C:k+=d*e(2,1-u),k*C>=2&&(v++,C/=2),v+u>=f?(b=0,v=f):v+u>=1?(b=(k*C-1)*e(2,S),v+=u):(b=k*e(2,u-1)*e(2,S),v=0));S>=8;)i[c++]=b&255,b/=256,S-=8;for(v=v<0;)i[c++]=v&255,v/=256,l-=8;return i[--c]|=m*128,i},y=function(k,S){var p=k.length,i=p*8-S-1,l=(1<>1,u=i-7,d=p-1,m=k[d--],c=m&127,v;for(m>>=7;u>0;)c=c*256+k[d--],u-=8;for(v=c&(1<<-u)-1,c>>=-u,u+=S;u>0;)v=v*256+k[d--],u-=8;if(c===0)c=1-f;else{if(c===l)return v?NaN:m?-1/0:1/0;v+=e(2,S),c-=f}return(m?-1:1)*v*e(2,c-S)};I.exports={pack:s,unpack:y}},17759:function(I,r,n){"use strict";var e=n(80576),a=n(26735),t=n(83376),o=Object,s=e("".split);I.exports=a(function(){return!o("z").propertyIsEnumerable(0)})?function(y){return t(y)==="String"?s(y,""):o(y)}:o},99695:function(I,r,n){"use strict";var e=n(8389),a=n(63762),t=n(19191);I.exports=function(o,s,y){var V,k;return t&&e(V=s.constructor)&&V!==y&&a(k=V.prototype)&&k!==y.prototype&&t(o,k),o}},60986:function(I,r,n){"use strict";var e=n(80576),a=n(8389),t=n(4845),o=e(Function.toString);a(t.inspectSource)||(t.inspectSource=function(s){return o(s)}),I.exports=t.inspectSource},62232:function(I,r,n){"use strict";var e=n(72134),a=n(80576),t=n(58469),o=n(63762),s=n(3953),y=n(3329).f,V=n(8288),k=n(64586),S=n(74428),p=n(91072),i=n(58680),l=!1,f=p("meta"),u=0,d=function(g){y(g,f,{value:{objectID:"O"+u++,weakData:{}}})},m=function(g,N){if(!o(g))return typeof g=="symbol"?g:(typeof g=="string"?"S":"P")+g;if(!s(g,f)){if(!S(g))return"F";if(!N)return"E";d(g)}return g[f].objectID},c=function(g,N){if(!s(g,f)){if(!S(g))return!0;if(!N)return!1;d(g)}return g[f].weakData},v=function(g){return i&&l&&S(g)&&!s(g,f)&&d(g),g},b=function(){C.enable=function(){},l=!0;var g=V.f,N=a([].splice),x={};x[f]=1,g(x).length&&(V.f=function(B){for(var L=g(B),w=0,A=L.length;wB;B++)if(w=O(u[B]),w&&V(f,w))return w;return new l(!1)}N=k(u,x)}for(A=b?u.next:N.next;!(T=a(A,N)).done;){try{w=O(T.value)}catch(P){p(N,"throw",P)}if(typeof w=="object"&&w&&V(f,w))return w}return new l(!1)}},70451:function(I,r,n){"use strict";var e=n(81037),a=n(91191),t=n(4270);I.exports=function(o,s,y){var V,k;a(o);try{if(V=t(o,"return"),!V){if(s==="throw")throw y;return y}V=e(V,o)}catch(S){k=!0,V=S}if(s==="throw")throw y;if(k)throw V;return a(V),y}},33082:function(I,r,n){"use strict";var e=n(51497).IteratorPrototype,a=n(54792),t=n(276),o=n(43087),s=n(44333),y=function(){return this};I.exports=function(V,k,S,p){var i=k+" Iterator";return V.prototype=a(e,{next:t(+!p,S)}),o(V,i,!1,!0),s[i]=y,V}},80160:function(I,r,n){"use strict";var e=n(72134),a=n(81037),t=n(61147),o=n(97310),s=n(8389),y=n(33082),V=n(97139),k=n(19191),S=n(43087),p=n(75387),i=n(73880),l=n(92611),f=n(44333),u=n(51497),d=o.PROPER,m=o.CONFIGURABLE,c=u.IteratorPrototype,v=u.BUGGY_SAFARI_ITERATORS,b=l("iterator"),C="keys",h="values",g="entries",N=function(){return this};I.exports=function(x,B,L,w,A,T,E){y(L,B,w);var O=function($){if($===A&&U)return U;if(!v&&$&&$ in F)return F[$];switch($){case C:return function(){function se(){return new L(this,$)}return se}();case h:return function(){function se(){return new L(this,$)}return se}();case g:return function(){function se(){return new L(this,$)}return se}()}return function(){return new L(this)}},P=B+" Iterator",R=!1,F=x.prototype,j=F[b]||F["@@iterator"]||A&&F[A],U=!v&&j||O(A),_=B==="Array"&&F.entries||j,K,Y,G;if(_&&(K=V(_.call(new x)),K!==Object.prototype&&K.next&&(!t&&V(K)!==c&&(k?k(K,c):s(K[b])||i(K,b,N)),S(K,P,!0,!0),t&&(f[P]=N))),d&&A===h&&j&&j.name!==h&&(!t&&m?p(F,"name",h):(R=!0,U=function(){function ne(){return a(j,this)}return ne}())),A)if(Y={values:O(h),keys:T?U:O(C),entries:O(g)},E)for(G in Y)(v||R||!(G in F))&&i(F,G,Y[G]);else e({target:B,proto:!0,forced:v||R},Y);return(!t||E)&&F[b]!==U&&i(F,b,U,{name:A}),f[B]=U,Y}},51497:function(I,r,n){"use strict";var e=n(26735),a=n(8389),t=n(63762),o=n(54792),s=n(97139),y=n(73880),V=n(92611),k=n(61147),S=V("iterator"),p=!1,i,l,f;[].keys&&(f=[].keys(),"next"in f?(l=s(s(f)),l!==Object.prototype&&(i=l)):p=!0);var u=!t(i)||e(function(){var d={};return i[S].call(d)!==d});u?i={}:k&&(i=o(i)),a(i[S])||y(i,S,function(){return this}),I.exports={IteratorPrototype:i,BUGGY_SAFARI_ITERATORS:p}},44333:function(I){"use strict";I.exports={}},62022:function(I,r,n){"use strict";var e=n(40046);I.exports=function(a){return e(a.length)}},82683:function(I,r,n){"use strict";var e=n(80576),a=n(26735),t=n(8389),o=n(3953),s=n(47676),y=n(97310).CONFIGURABLE,V=n(60986),k=n(77341),S=k.enforce,p=k.get,i=String,l=Object.defineProperty,f=e("".slice),u=e("".replace),d=e([].join),m=s&&!a(function(){return l(function(){},"length",{value:8}).length!==8}),c=String(String).split("String"),v=I.exports=function(b,C,h){f(i(C),0,7)==="Symbol("&&(C="["+u(i(C),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),h&&h.getter&&(C="get "+C),h&&h.setter&&(C="set "+C),(!o(b,"name")||y&&b.name!==C)&&(s?l(b,"name",{value:C,configurable:!0}):b.name=C),m&&h&&o(h,"arity")&&b.length!==h.arity&&l(b,"length",{value:h.arity});try{h&&o(h,"constructor")&&h.constructor?s&&l(b,"prototype",{writable:!1}):b.prototype&&(b.prototype=void 0)}catch(N){}var g=S(b);return o(g,"source")||(g.source=d(c,typeof C=="string"?C:"")),b};Function.prototype.toString=v(function(){function b(){return t(this)&&p(this).source||V(this)}return b}(),"toString")},85746:function(I){"use strict";var r=Math.expm1,n=Math.exp;I.exports=!r||r(10)>22025.465794806718||r(10)<22025.465794806718||r(-2e-17)!==-2e-17?function(){function e(a){var t=+a;return t===0?t:t>-1e-6&&t<1e-6?t+t*t/2:n(t)-1}return e}():r},2332:function(I,r,n){"use strict";var e=n(3686),a=Math.abs,t=2220446049250313e-31,o=1/t,s=function(V){return V+o-o};I.exports=function(y,V,k,S){var p=+y,i=a(p),l=e(p);if(ik||u!==u?l*(1/0):l*u}},74033:function(I,r,n){"use strict";var e=n(2332),a=11920928955078125e-23,t=34028234663852886e22,o=11754943508222875e-54;I.exports=Math.fround||function(){function s(y){return e(y,a,t,o)}return s}()},98124:function(I){"use strict";var r=Math.log,n=Math.LOG10E;I.exports=Math.log10||function(){function e(a){return r(a)*n}return e}()},39724:function(I){"use strict";var r=Math.log;I.exports=Math.log1p||function(){function n(e){var a=+e;return a>-1e-8&&a<1e-8?a-a*a/2:r(1+a)}return n}()},3686:function(I){"use strict";I.exports=Math.sign||function(){function r(n){var e=+n;return e===0||e!==e?e:e<0?-1:1}return r}()},20213:function(I){"use strict";var r=Math.ceil,n=Math.floor;I.exports=Math.trunc||function(){function e(a){var t=+a;return(t>0?n:r)(t)}return e}()},62083:function(I,r,n){"use strict";var e=n(16203),a=n(62397),t=n(41536),o=n(66825).set,s=n(26665),y=n(25383),V=n(74892),k=n(7213),S=n(71488),p=e.MutationObserver||e.WebKitMutationObserver,i=e.document,l=e.process,f=e.Promise,u=a("queueMicrotask"),d,m,c,v,b;if(!u){var C=new s,h=function(){var N,x;for(S&&(N=l.domain)&&N.exit();x=C.get();)try{x()}catch(B){throw C.head&&d(),B}N&&N.enter()};!y&&!S&&!k&&p&&i?(m=!0,c=i.createTextNode(""),new p(h).observe(c,{characterData:!0}),d=function(){c.data=m=!m}):!V&&f&&f.resolve?(v=f.resolve(void 0),v.constructor=f,b=t(v.then,v),d=function(){b(h)}):S?d=function(){l.nextTick(h)}:(o=t(o,e),d=function(){o(h)}),u=function(N){C.head||d(),C.add(N)}}I.exports=u},72347:function(I,r,n){"use strict";var e=n(20986),a=TypeError,t=function(s){var y,V;this.promise=new s(function(k,S){if(y!==void 0||V!==void 0)throw new a("Bad Promise constructor");y=k,V=S}),this.resolve=e(y),this.reject=e(V)};I.exports.f=function(o){return new t(o)}},4143:function(I,r,n){"use strict";var e=n(68196),a=TypeError;I.exports=function(t){if(e(t))throw new a("The method doesn't accept regular expressions");return t}},58728:function(I,r,n){"use strict";var e=n(16203),a=e.isFinite;I.exports=Number.isFinite||function(){function t(o){return typeof o=="number"&&a(o)}return t}()},8576:function(I,r,n){"use strict";var e=n(16203),a=n(26735),t=n(80576),o=n(64319),s=n(4042).trim,y=n(56364),V=t("".charAt),k=e.parseFloat,S=e.Symbol,p=S&&S.iterator,i=1/k(y+"-0")!==-1/0||p&&!a(function(){k(Object(p))});I.exports=i?function(){function l(f){var u=s(o(f)),d=k(u);return d===0&&V(u,0)==="-"?-0:d}return l}():k},38735:function(I,r,n){"use strict";var e=n(16203),a=n(26735),t=n(80576),o=n(64319),s=n(4042).trim,y=n(56364),V=e.parseInt,k=e.Symbol,S=k&&k.iterator,p=/^[+-]?0x/i,i=t(p.exec),l=V(y+"08")!==8||V(y+"0x16")!==22||S&&!a(function(){V(Object(S))});I.exports=l?function(){function f(u,d){var m=s(o(u));return V(m,d>>>0||(i(p,m)?16:10))}return f}():V},1925:function(I,r,n){"use strict";var e=n(47676),a=n(80576),t=n(81037),o=n(26735),s=n(57904),y=n(5797),V=n(85845),k=n(43269),S=n(17759),p=Object.assign,i=Object.defineProperty,l=a([].concat);I.exports=!p||o(function(){if(e&&p({b:1},p(i({},"a",{enumerable:!0,get:function(){function c(){i(this,"b",{value:3,enumerable:!1})}return c}()}),{b:2})).b!==1)return!0;var f={},u={},d=Symbol("assign detection"),m="abcdefghijklmnopqrst";return f[d]=7,m.split("").forEach(function(c){u[c]=c}),p({},f)[d]!==7||s(p({},u)).join("")!==m})?function(){function f(u,d){for(var m=k(u),c=arguments.length,v=1,b=y.f,C=V.f;c>v;)for(var h=S(arguments[v++]),g=b?l(s(h),b(h)):s(h),N=g.length,x=0,B;N>x;)B=g[x++],(!e||t(C,h,B))&&(m[B]=h[B]);return m}return f}():p},54792:function(I,r,n){"use strict";var e=n(91191),a=n(86513),t=n(56007),o=n(58469),s=n(69917),y=n(33191),V=n(10647),k=">",S="<",p="prototype",i="script",l=V("IE_PROTO"),f=function(){},u=function(C){return S+i+k+C+S+"/"+i+k},d=function(C){C.write(u("")),C.close();var h=C.parentWindow.Object;return C=null,h},m=function(){var C=y("iframe"),h="java"+i+":",g;return C.style.display="none",s.appendChild(C),C.src=String(h),g=C.contentWindow.document,g.open(),g.write(u("document.F=Object")),g.close(),g.F},c,v=function(){try{c=new ActiveXObject("htmlfile")}catch(h){}v=typeof document!="undefined"?document.domain&&c?d(c):m():d(c);for(var C=t.length;C--;)delete v[p][t[C]];return v()};o[l]=!0,I.exports=Object.create||function(){function b(C,h){var g;return C!==null?(f[p]=e(C),g=new f,f[p]=null,g[l]=C):g=v(),h===void 0?g:a.f(g,h)}return b}()},86513:function(I,r,n){"use strict";var e=n(47676),a=n(2142),t=n(3329),o=n(91191),s=n(1381),y=n(57904);r.f=e&&!a?Object.defineProperties:function(){function V(k,S){o(k);for(var p=s(S),i=y(S),l=i.length,f=0,u;l>f;)t.f(k,u=i[f++],p[u]);return k}return V}()},3329:function(I,r,n){"use strict";var e=n(47676),a=n(86429),t=n(2142),o=n(91191),s=n(38041),y=TypeError,V=Object.defineProperty,k=Object.getOwnPropertyDescriptor,S="enumerable",p="configurable",i="writable";r.f=e?t?function(){function l(f,u,d){if(o(f),u=s(u),o(d),typeof f=="function"&&u==="prototype"&&"value"in d&&i in d&&!d[i]){var m=k(f,u);m&&m[i]&&(f[u]=d.value,d={configurable:p in d?d[p]:m[p],enumerable:S in d?d[S]:m[S],writable:!1})}return V(f,u,d)}return l}():V:function(){function l(f,u,d){if(o(f),u=s(u),o(d),a)try{return V(f,u,d)}catch(m){}if("get"in d||"set"in d)throw new y("Accessors not supported");return"value"in d&&(f[u]=d.value),f}return l}()},9747:function(I,r,n){"use strict";var e=n(47676),a=n(81037),t=n(85845),o=n(276),s=n(1381),y=n(38041),V=n(3953),k=n(86429),S=Object.getOwnPropertyDescriptor;r.f=e?S:function(){function p(i,l){if(i=s(i),l=y(l),k)try{return S(i,l)}catch(f){}if(V(i,l))return o(!a(t.f,i,l),i[l])}return p}()},64586:function(I,r,n){"use strict";var e=n(83376),a=n(1381),t=n(8288).f,o=n(7728),s=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],y=function(k){try{return t(k)}catch(S){return o(s)}};I.exports.f=function(){function V(k){return s&&e(k)==="Window"?y(k):t(a(k))}return V}()},8288:function(I,r,n){"use strict";var e=n(57844),a=n(56007),t=a.concat("length","prototype");r.f=Object.getOwnPropertyNames||function(){function o(s){return e(s,t)}return o}()},5797:function(I,r){"use strict";r.f=Object.getOwnPropertySymbols},97139:function(I,r,n){"use strict";var e=n(3953),a=n(8389),t=n(43269),o=n(10647),s=n(85187),y=o("IE_PROTO"),V=Object,k=V.prototype;I.exports=s?V.getPrototypeOf:function(S){var p=t(S);if(e(p,y))return p[y];var i=p.constructor;return a(i)&&p instanceof i?i.prototype:p instanceof V?k:null}},74428:function(I,r,n){"use strict";var e=n(26735),a=n(63762),t=n(83376),o=n(12116),s=Object.isExtensible,y=e(function(){s(1)});I.exports=y||o?function(){function V(k){return!a(k)||o&&t(k)==="ArrayBuffer"?!1:s?s(k):!0}return V}():s},88457:function(I,r,n){"use strict";var e=n(80576);I.exports=e({}.isPrototypeOf)},57844:function(I,r,n){"use strict";var e=n(80576),a=n(3953),t=n(1381),o=n(54065).indexOf,s=n(58469),y=e([].push);I.exports=function(V,k){var S=t(V),p=0,i=[],l;for(l in S)!a(s,l)&&a(S,l)&&y(i,l);for(;k.length>p;)a(S,l=k[p++])&&(~o(i,l)||y(i,l));return i}},57904:function(I,r,n){"use strict";var e=n(57844),a=n(56007);I.exports=Object.keys||function(){function t(o){return e(o,a)}return t}()},85845:function(I,r){"use strict";var n={}.propertyIsEnumerable,e=Object.getOwnPropertyDescriptor,a=e&&!n.call({1:2},1);r.f=a?function(){function t(o){var s=e(this,o);return!!s&&s.enumerable}return t}():n},36807:function(I,r,n){"use strict";var e=n(61147),a=n(16203),t=n(26735),o=n(40312);I.exports=e||!t(function(){if(!(o&&o<535)){var s=Math.random();__defineSetter__.call(null,s,function(){}),delete a[s]}})},19191:function(I,r,n){"use strict";var e=n(30850),a=n(63762),t=n(76310),o=n(71442);I.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var s=!1,y={},V;try{V=e(Object.prototype,"__proto__","set"),V(y,[]),s=y instanceof Array}catch(k){}return function(){function k(S,p){return t(S),o(p),a(S)&&(s?V(S,p):S.__proto__=p),S}return k}()}():void 0)},61941:function(I,r,n){"use strict";var e=n(47676),a=n(26735),t=n(80576),o=n(97139),s=n(57904),y=n(1381),V=n(85845).f,k=t(V),S=t([].push),p=e&&a(function(){var l=Object.create(null);return l[2]=2,!k(l,2)}),i=function(f){return function(u){for(var d=y(u),m=s(d),c=p&&o(d)===null,v=m.length,b=0,C=[],h;v>b;)h=m[b++],(!e||(c?h in d:k(d,h)))&&S(C,f?[h,d[h]]:d[h]);return C}};I.exports={entries:i(!0),values:i(!1)}},37131:function(I,r,n){"use strict";var e=n(88476),a=n(39851);I.exports=e?{}.toString:function(){function t(){return"[object "+a(this)+"]"}return t}()},1918:function(I,r,n){"use strict";var e=n(81037),a=n(8389),t=n(63762),o=TypeError;I.exports=function(s,y){var V,k;if(y==="string"&&a(V=s.toString)&&!t(k=e(V,s))||a(V=s.valueOf)&&!t(k=e(V,s))||y!=="string"&&a(V=s.toString)&&!t(k=e(V,s)))return k;throw new o("Can't convert object to primitive value")}},27623:function(I,r,n){"use strict";var e=n(70663),a=n(80576),t=n(8288),o=n(5797),s=n(91191),y=a([].concat);I.exports=e("Reflect","ownKeys")||function(){function V(k){var S=t.f(s(k)),p=o.f;return p?y(S,p(k)):S}return V}()},25871:function(I,r,n){"use strict";var e=n(16203);I.exports=e},58175:function(I){"use strict";I.exports=function(r){try{return{error:!1,value:r()}}catch(n){return{error:!0,value:n}}}},20468:function(I,r,n){"use strict";var e=n(16203),a=n(70390),t=n(8389),o=n(89644),s=n(60986),y=n(92611),V=n(86922),k=n(88292),S=n(61147),p=n(3484),i=a&&a.prototype,l=y("species"),f=!1,u=t(e.PromiseRejectionEvent),d=o("Promise",function(){var m=s(a),c=m!==String(a);if(!c&&p===66||S&&!(i.catch&&i.finally))return!0;if(!p||p<51||!/native code/.test(m)){var v=new a(function(h){h(1)}),b=function(g){g(function(){},function(){})},C=v.constructor={};if(C[l]=b,f=v.then(function(){})instanceof b,!f)return!0}return!c&&(V||k)&&!u});I.exports={CONSTRUCTOR:d,REJECTION_EVENT:u,SUBCLASSING:f}},70390:function(I,r,n){"use strict";var e=n(16203);I.exports=e.Promise},25838:function(I,r,n){"use strict";var e=n(91191),a=n(63762),t=n(72347);I.exports=function(o,s){if(e(o),a(s)&&s.constructor===o)return s;var y=t.f(o),V=y.resolve;return V(s),y.promise}},91609:function(I,r,n){"use strict";var e=n(70390),a=n(65372),t=n(20468).CONSTRUCTOR;I.exports=t||!a(function(o){e.all(o).then(void 0,function(){})})},80384:function(I,r,n){"use strict";var e=n(3329).f;I.exports=function(a,t,o){o in a||e(a,o,{configurable:!0,get:function(){function s(){return t[o]}return s}(),set:function(){function s(y){t[o]=y}return s}()})}},26665:function(I){"use strict";var r=function(){this.head=null,this.tail=null};r.prototype={add:function(){function n(e){var a={item:e,next:null},t=this.tail;t?t.next=a:this.head=a,this.tail=a}return n}(),get:function(){function n(){var e=this.head;if(e){var a=this.head=e.next;return a===null&&(this.tail=null),e.item}}return n}()},I.exports=r},17530:function(I,r,n){"use strict";var e=n(81037),a=n(91191),t=n(8389),o=n(83376),s=n(81019),y=TypeError;I.exports=function(V,k){var S=V.exec;if(t(S)){var p=e(S,V,k);return p!==null&&a(p),p}if(o(V)==="RegExp")return e(s,V,k);throw new y("RegExp#exec called on incompatible receiver")}},81019:function(I,r,n){"use strict";var e=n(81037),a=n(80576),t=n(64319),o=n(2075),s=n(96109),y=n(31809),V=n(54792),k=n(77341).get,S=n(54243),p=n(93070),i=y("native-string-replace",String.prototype.replace),l=RegExp.prototype.exec,f=l,u=a("".charAt),d=a("".indexOf),m=a("".replace),c=a("".slice),v=function(){var g=/a/,N=/b*/g;return e(l,g,"a"),e(l,N,"a"),g.lastIndex!==0||N.lastIndex!==0}(),b=s.BROKEN_CARET,C=/()??/.exec("")[1]!==void 0,h=v||C||b||S||p;h&&(f=function(){function g(N){var x=this,B=k(x),L=t(N),w=B.raw,A,T,E,O,P,R,F;if(w)return w.lastIndex=x.lastIndex,A=e(f,w,L),x.lastIndex=w.lastIndex,A;var j=B.groups,U=b&&x.sticky,_=e(o,x),K=x.source,Y=0,G=L;if(U&&(_=m(_,"y",""),d(_,"g")===-1&&(_+="g"),G=c(L,x.lastIndex),x.lastIndex>0&&(!x.multiline||x.multiline&&u(L,x.lastIndex-1)!=="\n")&&(K="(?: "+K+")",G=" "+G,Y++),T=new RegExp("^(?:"+K+")",_)),C&&(T=new RegExp("^"+K+"$(?!\\s)",_)),v&&(E=x.lastIndex),O=e(l,U?T:x,G),U?O?(O.input=c(O.input,Y),O[0]=c(O[0],Y),O.index=x.lastIndex,x.lastIndex+=O[0].length):x.lastIndex=0:v&&O&&(x.lastIndex=x.global?O.index+O[0].length:E),C&&O&&O.length>1&&e(i,O[0],T,function(){for(P=1;Pb)","g");return o.exec("b").groups.a!=="b"||"b".replace(o,"$c")!=="bc"})},76310:function(I,r,n){"use strict";var e=n(79237),a=TypeError;I.exports=function(t){if(e(t))throw new a("Can't call method on "+t);return t}},62397:function(I,r,n){"use strict";var e=n(16203),a=n(47676),t=Object.getOwnPropertyDescriptor;I.exports=function(o){if(!a)return e[o];var s=t(e,o);return s&&s.value}},72926:function(I){"use strict";I.exports=Object.is||function(){function r(n,e){return n===e?n!==0||1/n===1/e:n!==n&&e!==e}return r}()},81779:function(I,r,n){"use strict";var e=n(16203),a=n(81929),t=n(8389),o=n(70203),s=n(2416),y=n(7728),V=n(66828),k=e.Function,S=/MSIE .\./.test(s)||o&&function(){var p=e.Bun.version.split(".");return p.length<3||p[0]==="0"&&(p[1]<3||p[1]==="3"&&p[2]==="0")}();I.exports=function(p,i){var l=i?2:1;return S?function(f,u){var d=V(arguments.length,1)>l,m=t(f)?f:k(f),c=d?y(arguments,l):[],v=d?function(){a(m,this,c)}:m;return i?p(v,u):p(v)}:p}},56417:function(I,r,n){"use strict";var e=n(70663),a=n(67242),t=n(92611),o=n(47676),s=t("species");I.exports=function(y){var V=e(y);o&&V&&!V[s]&&a(V,s,{configurable:!0,get:function(){function k(){return this}return k}()})}},43087:function(I,r,n){"use strict";var e=n(3329).f,a=n(3953),t=n(92611),o=t("toStringTag");I.exports=function(s,y,V){s&&!V&&(s=s.prototype),s&&!a(s,o)&&e(s,o,{configurable:!0,value:y})}},10647:function(I,r,n){"use strict";var e=n(31809),a=n(91072),t=e("keys");I.exports=function(o){return t[o]||(t[o]=a(o))}},4845:function(I,r,n){"use strict";var e=n(61147),a=n(16203),t=n(51481),o="__core-js_shared__",s=I.exports=a[o]||t(o,{});(s.versions||(s.versions=[])).push({version:"3.37.0",mode:e?"pure":"global",copyright:"\xA9 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.37.0/LICENSE",source:"https://github.com/zloirock/core-js"})},31809:function(I,r,n){"use strict";var e=n(4845);I.exports=function(a,t){return e[a]||(e[a]=t||{})}},23237:function(I,r,n){"use strict";var e=n(91191),a=n(23788),t=n(79237),o=n(92611),s=o("species");I.exports=function(y,V){var k=e(y).constructor,S;return k===void 0||t(S=e(k)[s])?V:a(S)}},19461:function(I,r,n){"use strict";var e=n(26735);I.exports=function(a){return e(function(){var t=""[a]('"');return t!==t.toLowerCase()||t.split('"').length>3})}},94567:function(I,r,n){"use strict";var e=n(80576),a=n(38283),t=n(64319),o=n(76310),s=e("".charAt),y=e("".charCodeAt),V=e("".slice),k=function(p){return function(i,l){var f=t(o(i)),u=a(l),d=f.length,m,c;return u<0||u>=d?p?"":void 0:(m=y(f,u),m<55296||m>56319||u+1===d||(c=y(f,u+1))<56320||c>57343?p?s(f,u):m:p?V(f,u,u+2):(m-55296<<10)+(c-56320)+65536)}};I.exports={codeAt:k(!1),charAt:k(!0)}},62311:function(I,r,n){"use strict";var e=n(2416);I.exports=/Version\/10(?:\.\d+){1,2}(?: [\w./]+)?(?: Mobile\/\w+)? Safari\//.test(e)},12805:function(I,r,n){"use strict";var e=n(80576),a=n(40046),t=n(64319),o=n(68861),s=n(76310),y=e(o),V=e("".slice),k=Math.ceil,S=function(i){return function(l,f,u){var d=t(s(l)),m=a(f),c=d.length,v=u===void 0?" ":t(u),b,C;return m<=c||v===""?d:(b=m-c,C=y(v,k(b/v.length)),C.length>b&&(C=V(C,0,b)),i?d+C:C+d)}};I.exports={start:S(!1),end:S(!0)}},68861:function(I,r,n){"use strict";var e=n(38283),a=n(64319),t=n(76310),o=RangeError;I.exports=function(){function s(y){var V=a(t(this)),k="",S=e(y);if(S<0||S===1/0)throw new o("Wrong number of repetitions");for(;S>0;(S>>>=1)&&(V+=V))S&1&&(k+=V);return k}return s}()},55810:function(I,r,n){"use strict";var e=n(4042).end,a=n(13458);I.exports=a("trimEnd")?function(){function t(){return e(this)}return t}():"".trimEnd},13458:function(I,r,n){"use strict";var e=n(97310).PROPER,a=n(26735),t=n(56364),o="\u200B\x85\u180E";I.exports=function(s){return a(function(){return!!t[s]()||o[s]()!==o||e&&t[s].name!==s})}},92287:function(I,r,n){"use strict";var e=n(4042).start,a=n(13458);I.exports=a("trimStart")?function(){function t(){return e(this)}return t}():"".trimStart},4042:function(I,r,n){"use strict";var e=n(80576),a=n(76310),t=n(64319),o=n(56364),s=e("".replace),y=RegExp("^["+o+"]+"),V=RegExp("(^|[^"+o+"])["+o+"]+$"),k=function(p){return function(i){var l=t(a(i));return p&1&&(l=s(l,y,"")),p&2&&(l=s(l,V,"$1")),l}};I.exports={start:k(1),end:k(2),trim:k(3)}},14943:function(I,r,n){"use strict";var e=n(3484),a=n(26735),t=n(16203),o=t.String;I.exports=!!Object.getOwnPropertySymbols&&!a(function(){var s=Symbol("symbol detection");return!o(s)||!(Object(s)instanceof Symbol)||!Symbol.sham&&e&&e<41})},67122:function(I,r,n){"use strict";var e=n(81037),a=n(70663),t=n(92611),o=n(73880);I.exports=function(){var s=a("Symbol"),y=s&&s.prototype,V=y&&y.valueOf,k=t("toPrimitive");y&&!y[k]&&o(y,k,function(S){return e(V,this)},{arity:1})}},75440:function(I,r,n){"use strict";var e=n(14943);I.exports=e&&!!Symbol.for&&!!Symbol.keyFor},66825:function(I,r,n){"use strict";var e=n(16203),a=n(81929),t=n(41536),o=n(8389),s=n(3953),y=n(26735),V=n(69917),k=n(7728),S=n(33191),p=n(66828),i=n(25383),l=n(71488),f=e.setImmediate,u=e.clearImmediate,d=e.process,m=e.Dispatch,c=e.Function,v=e.MessageChannel,b=e.String,C=0,h={},g="onreadystatechange",N,x,B,L;y(function(){N=e.location});var w=function(P){if(s(h,P)){var R=h[P];delete h[P],R()}},A=function(P){return function(){w(P)}},T=function(P){w(P.data)},E=function(P){e.postMessage(b(P),N.protocol+"//"+N.host)};(!f||!u)&&(f=function(){function O(P){p(arguments.length,1);var R=o(P)?P:c(P),F=k(arguments,1);return h[++C]=function(){a(R,void 0,F)},x(C),C}return O}(),u=function(){function O(P){delete h[P]}return O}(),l?x=function(P){d.nextTick(A(P))}:m&&m.now?x=function(P){m.now(A(P))}:v&&!i?(B=new v,L=B.port2,B.port1.onmessage=T,x=t(L.postMessage,L)):e.addEventListener&&o(e.postMessage)&&!e.importScripts&&N&&N.protocol!=="file:"&&!y(E)?(x=E,e.addEventListener("message",T,!1)):g in S("script")?x=function(P){V.appendChild(S("script"))[g]=function(){V.removeChild(this),w(P)}}:x=function(P){setTimeout(A(P),0)}),I.exports={set:f,clear:u}},54744:function(I,r,n){"use strict";var e=n(80576);I.exports=e(1 .valueOf)},44874:function(I,r,n){"use strict";var e=n(38283),a=Math.max,t=Math.min;I.exports=function(o,s){var y=e(o);return y<0?a(y+s,0):t(y,s)}},12382:function(I,r,n){"use strict";var e=n(39833),a=TypeError;I.exports=function(t){var o=e(t,"number");if(typeof o=="number")throw new a("Can't convert number to bigint");return BigInt(o)}},38768:function(I,r,n){"use strict";var e=n(38283),a=n(40046),t=RangeError;I.exports=function(o){if(o===void 0)return 0;var s=e(o),y=a(s);if(s!==y)throw new t("Wrong length or index");return y}},1381:function(I,r,n){"use strict";var e=n(17759),a=n(76310);I.exports=function(t){return e(a(t))}},38283:function(I,r,n){"use strict";var e=n(20213);I.exports=function(a){var t=+a;return t!==t||t===0?0:e(t)}},40046:function(I,r,n){"use strict";var e=n(38283),a=Math.min;I.exports=function(t){var o=e(t);return o>0?a(o,9007199254740991):0}},43269:function(I,r,n){"use strict";var e=n(76310),a=Object;I.exports=function(t){return a(e(t))}},50181:function(I,r,n){"use strict";var e=n(94646),a=RangeError;I.exports=function(t,o){var s=e(t);if(s%o)throw new a("Wrong offset");return s}},94646:function(I,r,n){"use strict";var e=n(38283),a=RangeError;I.exports=function(t){var o=e(t);if(o<0)throw new a("The argument can't be less than 0");return o}},39833:function(I,r,n){"use strict";var e=n(81037),a=n(63762),t=n(47541),o=n(4270),s=n(1918),y=n(92611),V=TypeError,k=y("toPrimitive");I.exports=function(S,p){if(!a(S)||t(S))return S;var i=o(S,k),l;if(i){if(p===void 0&&(p="default"),l=e(i,S,p),!a(l)||t(l))return l;throw new V("Can't convert object to primitive value")}return p===void 0&&(p="number"),s(S,p)}},38041:function(I,r,n){"use strict";var e=n(39833),a=n(47541);I.exports=function(t){var o=e(t,"string");return a(o)?o:o+""}},88476:function(I,r,n){"use strict";var e=n(92611),a=e("toStringTag"),t={};t[a]="z",I.exports=String(t)==="[object z]"},64319:function(I,r,n){"use strict";var e=n(39851),a=String;I.exports=function(t){if(e(t)==="Symbol")throw new TypeError("Cannot convert a Symbol value to a string");return a(t)}},57471:function(I){"use strict";var r=Math.round;I.exports=function(n){var e=r(n);return e<0?0:e>255?255:e&255}},82823:function(I){"use strict";var r=String;I.exports=function(n){try{return r(n)}catch(e){return"Object"}}},13471:function(I,r,n){"use strict";var e=n(72134),a=n(16203),t=n(81037),o=n(47676),s=n(43157),y=n(94084),V=n(89050),k=n(38567),S=n(276),p=n(75387),i=n(78839),l=n(40046),f=n(38768),u=n(50181),d=n(57471),m=n(38041),c=n(3953),v=n(39851),b=n(63762),C=n(47541),h=n(54792),g=n(88457),N=n(19191),x=n(8288).f,B=n(12323),L=n(30205).forEach,w=n(56417),A=n(67242),T=n(3329),E=n(9747),O=n(90106),P=n(77341),R=n(99695),F=P.get,j=P.set,U=P.enforce,_=T.f,K=E.f,Y=a.RangeError,G=V.ArrayBuffer,ne=G.prototype,$=V.DataView,se=y.NATIVE_ARRAY_BUFFER_VIEWS,Ne=y.TYPED_ARRAY_TAG,be=y.TypedArray,xe=y.TypedArrayPrototype,Ie=y.isTypedArray,Te="BYTES_PER_ELEMENT",he="Wrong length",Q=function(fe,we){A(fe,we,{configurable:!0,get:function(){function M(){return F(this)[we]}return M}()})},X=function(fe){var we;return g(ne,fe)||(we=v(fe))==="ArrayBuffer"||we==="SharedArrayBuffer"},te=function(fe,we){return Ie(fe)&&!C(we)&&we in fe&&i(+we)&&we>=0},q=function(){function Ve(fe,we){return we=m(we),te(fe,we)?S(2,fe[we]):K(fe,we)}return Ve}(),ce=function(){function Ve(fe,we,M){return we=m(we),te(fe,we)&&b(M)&&c(M,"value")&&!c(M,"get")&&!c(M,"set")&&!M.configurable&&(!c(M,"writable")||M.writable)&&(!c(M,"enumerable")||M.enumerable)?(fe[we]=M.value,fe):_(fe,we,M)}return Ve}();o?(se||(E.f=q,T.f=ce,Q(xe,"buffer"),Q(xe,"byteOffset"),Q(xe,"byteLength"),Q(xe,"length")),e({target:"Object",stat:!0,forced:!se},{getOwnPropertyDescriptor:q,defineProperty:ce}),I.exports=function(Ve,fe,we){var M=Ve.match(/\d+/)[0]/8,J=Ve+(we?"Clamped":"")+"Array",re="get"+Ve,ue="set"+Ve,ie=a[J],ge=ie,Ce=ge&&ge.prototype,Ae={},De=function(W,oe){var ve=F(W);return ve.view[re](oe*M+ve.byteOffset,!0)},Se=function(W,oe,ve){var ye=F(W);ye.view[ue](oe*M+ye.byteOffset,we?d(ve):ve,!0)},me=function(W,oe){_(W,oe,{get:function(){function ve(){return De(this,oe)}return ve}(),set:function(){function ve(ye){return Se(this,oe,ye)}return ve}(),enumerable:!0})};se?s&&(ge=fe(function(Be,W,oe,ve){return k(Be,Ce),R(function(){return b(W)?X(W)?ve!==void 0?new ie(W,u(oe,M),ve):oe!==void 0?new ie(W,u(oe,M)):new ie(W):Ie(W)?O(ge,W):t(B,ge,W):new ie(f(W))}(),Be,ge)}),N&&N(ge,be),L(x(ie),function(Be){Be in ge||p(ge,Be,ie[Be])}),ge.prototype=Ce):(ge=fe(function(Be,W,oe,ve){k(Be,Ce);var ye=0,Le=0,Ee,Oe,Me;if(!b(W))Me=f(W),Oe=Me*M,Ee=new G(Oe);else if(X(W)){Ee=W,Le=u(oe,M);var je=W.byteLength;if(ve===void 0){if(je%M)throw new Y(he);if(Oe=je-Le,Oe<0)throw new Y(he)}else if(Oe=l(ve)*M,Oe+Le>je)throw new Y(he);Me=Oe/M}else return Ie(W)?O(ge,W):t(B,ge,W);for(j(Be,{buffer:Ee,byteOffset:Le,byteLength:Oe,length:Me,view:new $(Ee)});ye1?arguments[1]:void 0,v=c!==void 0,b=V(d),C,h,g,N,x,B,L,w;if(b&&!k(b))for(L=y(d,b),w=L.next,d=[];!(B=a(w,L)).done;)d.push(B.value);for(v&&m>2&&(c=e(c,arguments[2])),h=s(d),g=new(p(u))(h),N=S(g),C=0;h>C;C++)x=v?c(d[C],C):d[C],g[C]=N?i(x):+x;return g}return l}()},46132:function(I,r,n){"use strict";var e=n(94084),a=n(23237),t=e.aTypedArrayConstructor,o=e.getTypedArrayConstructor;I.exports=function(s){return t(a(s,o(s)))}},91072:function(I,r,n){"use strict";var e=n(80576),a=0,t=Math.random(),o=e(1 .toString);I.exports=function(s){return"Symbol("+(s===void 0?"":s)+")_"+o(++a+t,36)}},66800:function(I,r,n){"use strict";var e=n(14943);I.exports=e&&!Symbol.sham&&typeof Symbol.iterator=="symbol"},2142:function(I,r,n){"use strict";var e=n(47676),a=n(26735);I.exports=e&&a(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42})},66828:function(I){"use strict";var r=TypeError;I.exports=function(n,e){if(n=51||!a(function(){var c=[];return c[f]=!1,c.concat()[0]!==c}),d=function(v){if(!o(v))return!1;var b=v[f];return b!==void 0?!!b:t(v)},m=!u||!p("concat");e({target:"Array",proto:!0,arity:1,forced:m},{concat:function(){function c(v){var b=s(this),C=S(b,0),h=0,g,N,x,B,L;for(g=-1,x=arguments.length;g1?arguments[1]:void 0)}return s}()})},42075:function(I,r,n){"use strict";var e=n(72134),a=n(41733),t=n(46677);e({target:"Array",proto:!0},{fill:a}),t("fill")},37672:function(I,r,n){"use strict";var e=n(72134),a=n(30205).filter,t=n(56981),o=t("filter");e({target:"Array",proto:!0,forced:!o},{filter:function(){function s(y){return a(this,y,arguments.length>1?arguments[1]:void 0)}return s}()})},91140:function(I,r,n){"use strict";var e=n(72134),a=n(30205).findIndex,t=n(46677),o="findIndex",s=!0;o in[]&&Array(1)[o](function(){s=!1}),e({target:"Array",proto:!0,forced:s},{findIndex:function(){function y(V){return a(this,V,arguments.length>1?arguments[1]:void 0)}return y}()}),t(o)},73297:function(I,r,n){"use strict";var e=n(72134),a=n(30205).find,t=n(46677),o="find",s=!0;o in[]&&Array(1)[o](function(){s=!1}),e({target:"Array",proto:!0,forced:s},{find:function(){function y(V){return a(this,V,arguments.length>1?arguments[1]:void 0)}return y}()}),t(o)},46494:function(I,r,n){"use strict";var e=n(72134),a=n(35043),t=n(20986),o=n(43269),s=n(62022),y=n(48525);e({target:"Array",proto:!0},{flatMap:function(){function V(k){var S=o(this),p=s(S),i;return t(k),i=y(S,0),i.length=a(i,S,S,p,0,1,k,arguments.length>1?arguments[1]:void 0),i}return V}()})},25710:function(I,r,n){"use strict";var e=n(72134),a=n(35043),t=n(43269),o=n(62022),s=n(38283),y=n(48525);e({target:"Array",proto:!0},{flat:function(){function V(){var k=arguments.length?arguments[0]:void 0,S=t(this),p=o(S),i=y(S,0);return i.length=a(i,S,S,p,0,k===void 0?1:s(k)),i}return V}()})},82013:function(I,r,n){"use strict";var e=n(72134),a=n(62571);e({target:"Array",proto:!0,forced:[].forEach!==a},{forEach:a})},20650:function(I,r,n){"use strict";var e=n(72134),a=n(36332),t=n(65372),o=!t(function(s){Array.from(s)});e({target:"Array",stat:!0,forced:o},{from:a})},78951:function(I,r,n){"use strict";var e=n(72134),a=n(54065).includes,t=n(26735),o=n(46677),s=t(function(){return!Array(1).includes()});e({target:"Array",proto:!0,forced:s},{includes:function(){function y(V){return a(this,V,arguments.length>1?arguments[1]:void 0)}return y}()}),o("includes")},2860:function(I,r,n){"use strict";var e=n(72134),a=n(93636),t=n(54065).indexOf,o=n(11766),s=a([].indexOf),y=!!s&&1/s([1],1,-0)<0,V=y||!o("indexOf");e({target:"Array",proto:!0,forced:V},{indexOf:function(){function k(S){var p=arguments.length>1?arguments[1]:void 0;return y?s(this,S,p)||0:t(this,S,p)}return k}()})},11050:function(I,r,n){"use strict";var e=n(72134),a=n(28728);e({target:"Array",stat:!0},{isArray:a})},66240:function(I,r,n){"use strict";var e=n(1381),a=n(46677),t=n(44333),o=n(77341),s=n(3329).f,y=n(80160),V=n(53649),k=n(61147),S=n(47676),p="Array Iterator",i=o.set,l=o.getterFor(p);I.exports=y(Array,"Array",function(u,d){i(this,{type:p,target:e(u),index:0,kind:d})},function(){var u=l(this),d=u.target,m=u.index++;if(!d||m>=d.length)return u.target=void 0,V(void 0,!0);switch(u.kind){case"keys":return V(m,!1);case"values":return V(d[m],!1)}return V([m,d[m]],!1)},"values");var f=t.Arguments=t.Array;if(a("keys"),a("values"),a("entries"),!k&&S&&f.name!=="values")try{s(f,"name",{value:"values"})}catch(u){}},11238:function(I,r,n){"use strict";var e=n(72134),a=n(80576),t=n(17759),o=n(1381),s=n(11766),y=a([].join),V=t!==Object,k=V||!s("join",",");e({target:"Array",proto:!0,forced:k},{join:function(){function S(p){return y(o(this),p===void 0?",":p)}return S}()})},1225:function(I,r,n){"use strict";var e=n(72134),a=n(41931);e({target:"Array",proto:!0,forced:a!==[].lastIndexOf},{lastIndexOf:a})},23742:function(I,r,n){"use strict";var e=n(72134),a=n(30205).map,t=n(56981),o=t("map");e({target:"Array",proto:!0,forced:!o},{map:function(){function s(y){return a(this,y,arguments.length>1?arguments[1]:void 0)}return s}()})},92059:function(I,r,n){"use strict";var e=n(72134),a=n(26735),t=n(86781),o=n(4160),s=Array,y=a(function(){function V(){}return!(s.of.call(V)instanceof V)});e({target:"Array",stat:!0,forced:y},{of:function(){function V(){for(var k=0,S=arguments.length,p=new(t(this)?this:s)(S);S>k;)o(p,k,arguments[k++]);return p.length=S,p}return V}()})},81631:function(I,r,n){"use strict";var e=n(72134),a=n(83214).right,t=n(11766),o=n(3484),s=n(71488),y=!s&&o>79&&o<83,V=y||!t("reduceRight");e({target:"Array",proto:!0,forced:V},{reduceRight:function(){function k(S){return a(this,S,arguments.length,arguments.length>1?arguments[1]:void 0)}return k}()})},5656:function(I,r,n){"use strict";var e=n(72134),a=n(83214).left,t=n(11766),o=n(3484),s=n(71488),y=!s&&o>79&&o<83,V=y||!t("reduce");e({target:"Array",proto:!0,forced:V},{reduce:function(){function k(S){var p=arguments.length;return a(this,S,p,p>1?arguments[1]:void 0)}return k}()})},74282:function(I,r,n){"use strict";var e=n(72134),a=n(80576),t=n(28728),o=a([].reverse),s=[1,2];e({target:"Array",proto:!0,forced:String(s)===String(s.reverse())},{reverse:function(){function y(){return t(this)&&(this.length=this.length),o(this)}return y}()})},33390:function(I,r,n){"use strict";var e=n(72134),a=n(28728),t=n(86781),o=n(63762),s=n(44874),y=n(62022),V=n(1381),k=n(4160),S=n(92611),p=n(56981),i=n(7728),l=p("slice"),f=S("species"),u=Array,d=Math.max;e({target:"Array",proto:!0,forced:!l},{slice:function(){function m(c,v){var b=V(this),C=y(b),h=s(c,C),g=s(v===void 0?C:v,C),N,x,B;if(a(b)&&(N=b.constructor,t(N)&&(N===u||a(N.prototype))?N=void 0:o(N)&&(N=N[f],N===null&&(N=void 0)),N===u||N===void 0))return i(b,h,g);for(x=new(N===void 0?u:N)(d(g-h,0)),B=0;h1?arguments[1]:void 0)}return s}()})},31822:function(I,r,n){"use strict";var e=n(72134),a=n(80576),t=n(20986),o=n(43269),s=n(62022),y=n(25486),V=n(64319),k=n(26735),S=n(38120),p=n(11766),i=n(10258),l=n(75154),f=n(3484),u=n(40312),d=[],m=a(d.sort),c=a(d.push),v=k(function(){d.sort(void 0)}),b=k(function(){d.sort(null)}),C=p("sort"),h=!k(function(){if(f)return f<70;if(!(i&&i>3)){if(l)return!0;if(u)return u<603;var x="",B,L,w,A;for(B=65;B<76;B++){switch(L=String.fromCharCode(B),B){case 66:case 69:case 70:case 72:w=3;break;case 68:case 71:w=4;break;default:w=2}for(A=0;A<47;A++)d.push({k:L+A,v:w})}for(d.sort(function(T,E){return E.v-T.v}),A=0;AV(w)?1:-1}};e({target:"Array",proto:!0,forced:g},{sort:function(){function x(B){B!==void 0&&t(B);var L=o(this);if(h)return B===void 0?m(L):m(L,B);var w=[],A=s(L),T,E;for(E=0;Eb-N+g;B--)p(v,B-1)}else if(g>N)for(B=b-N;B>C;B--)L=B+N-1,w=B+g-1,L in v?v[w]=v[L]:p(v,w);for(B=0;B9490626562425156e-8?o(p)+y:a(p-1+s(p-1)*s(p+1))}return k}()})},67110:function(I,r,n){"use strict";var e=n(72134),a=Math.asinh,t=Math.log,o=Math.sqrt;function s(V){var k=+V;return!isFinite(k)||k===0?k:k<0?-s(-k):t(k+o(k*k+1))}var y=!(a&&1/a(0)>0);e({target:"Math",stat:!0,forced:y},{asinh:s})},81365:function(I,r,n){"use strict";var e=n(72134),a=Math.atanh,t=Math.log,o=!(a&&1/a(-0)<0);e({target:"Math",stat:!0,forced:o},{atanh:function(){function s(y){var V=+y;return V===0?V:t((1+V)/(1-V))/2}return s}()})},94796:function(I,r,n){"use strict";var e=n(72134),a=n(3686),t=Math.abs,o=Math.pow;e({target:"Math",stat:!0},{cbrt:function(){function s(y){var V=+y;return a(V)*o(t(V),.3333333333333333)}return s}()})},30373:function(I,r,n){"use strict";var e=n(72134),a=Math.floor,t=Math.log,o=Math.LOG2E;e({target:"Math",stat:!0},{clz32:function(){function s(y){var V=y>>>0;return V?31-a(t(V+.5)*o):32}return s}()})},49426:function(I,r,n){"use strict";var e=n(72134),a=n(85746),t=Math.cosh,o=Math.abs,s=Math.E,y=!t||t(710)===1/0;e({target:"Math",stat:!0,forced:y},{cosh:function(){function V(k){var S=a(o(k)-1)+1;return(S+1/(S*s*s))*(s/2)}return V}()})},71614:function(I,r,n){"use strict";var e=n(72134),a=n(85746);e({target:"Math",stat:!0,forced:a!==Math.expm1},{expm1:a})},84781:function(I,r,n){"use strict";var e=n(72134),a=n(74033);e({target:"Math",stat:!0},{fround:a})},1149:function(I,r,n){"use strict";var e=n(72134),a=Math.hypot,t=Math.abs,o=Math.sqrt,s=!!a&&a(1/0,NaN)!==1/0;e({target:"Math",stat:!0,arity:2,forced:s},{hypot:function(){function y(V,k){for(var S=0,p=0,i=arguments.length,l=0,f,u;p0?(u=f/l,S+=u*u):S+=f;return l===1/0?1/0:l*o(S)}return y}()})},28520:function(I,r,n){"use strict";var e=n(72134),a=n(26735),t=Math.imul,o=a(function(){return t(4294967295,5)!==-5||t.length!==2});e({target:"Math",stat:!0,forced:o},{imul:function(){function s(y,V){var k=65535,S=+y,p=+V,i=k&S,l=k&p;return 0|i*l+((k&S>>>16)*l+i*(k&p>>>16)<<16>>>0)}return s}()})},87552:function(I,r,n){"use strict";var e=n(72134),a=n(98124);e({target:"Math",stat:!0},{log10:a})},29600:function(I,r,n){"use strict";var e=n(72134),a=n(39724);e({target:"Math",stat:!0},{log1p:a})},10679:function(I,r,n){"use strict";var e=n(72134),a=Math.log,t=Math.LN2;e({target:"Math",stat:!0},{log2:function(){function o(s){return a(s)/t}return o}()})},58794:function(I,r,n){"use strict";var e=n(72134),a=n(3686);e({target:"Math",stat:!0},{sign:a})},89353:function(I,r,n){"use strict";var e=n(72134),a=n(26735),t=n(85746),o=Math.abs,s=Math.exp,y=Math.E,V=a(function(){return Math.sinh(-2e-17)!==-2e-17});e({target:"Math",stat:!0,forced:V},{sinh:function(){function k(S){var p=+S;return o(p)<1?(t(p)-t(-p))/2:(s(p-1)-s(-p-1))*(y/2)}return k}()})},67634:function(I,r,n){"use strict";var e=n(72134),a=n(85746),t=Math.exp;e({target:"Math",stat:!0},{tanh:function(){function o(s){var y=+s,V=a(y),k=a(-y);return V===1/0?1:k===1/0?-1:(V-k)/(t(y)+t(-y))}return o}()})},90479:function(I,r,n){"use strict";var e=n(43087);e(Math,"Math",!0)},87385:function(I,r,n){"use strict";var e=n(72134),a=n(20213);e({target:"Math",stat:!0},{trunc:a})},81103:function(I,r,n){"use strict";var e=n(72134),a=n(61147),t=n(47676),o=n(16203),s=n(25871),y=n(80576),V=n(89644),k=n(3953),S=n(99695),p=n(88457),i=n(47541),l=n(39833),f=n(26735),u=n(8288).f,d=n(9747).f,m=n(3329).f,c=n(54744),v=n(4042).trim,b="Number",C=o[b],h=s[b],g=C.prototype,N=o.TypeError,x=y("".slice),B=y("".charCodeAt),L=function(R){var F=l(R,"number");return typeof F=="bigint"?F:w(F)},w=function(R){var F=l(R,"number"),j,U,_,K,Y,G,ne,$;if(i(F))throw new N("Cannot convert a Symbol value to a number");if(typeof F=="string"&&F.length>2){if(F=v(F),j=B(F,0),j===43||j===45){if(U=B(F,2),U===88||U===120)return NaN}else if(j===48){switch(B(F,1)){case 66:case 98:_=2,K=49;break;case 79:case 111:_=8,K=55;break;default:return+F}for(Y=x(F,2),G=Y.length,ne=0;neK)return NaN;return parseInt(Y,_)}}return+F},A=V(b,!C(" 0o1")||!C("0b1")||C("+0x1")),T=function(R){return p(g,R)&&f(function(){c(R)})},E=function(){function P(R){var F=arguments.length<1?0:C(L(R));return T(this)?S(Object(F),this,E):F}return P}();E.prototype=g,A&&!a&&(g.constructor=E),e({global:!0,constructor:!0,wrap:!0,forced:A},{Number:E});var O=function(R,F){for(var j=t?u(F):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),U=0,_;j.length>U;U++)k(F,_=j[U])&&!k(R,_)&&m(R,_,d(F,_))};a&&h&&O(s[b],h),(A||a)&&O(s[b],C)},49486:function(I,r,n){"use strict";var e=n(72134);e({target:"Number",stat:!0,nonConfigurable:!0,nonWritable:!0},{EPSILON:Math.pow(2,-52)})},88516:function(I,r,n){"use strict";var e=n(72134),a=n(58728);e({target:"Number",stat:!0},{isFinite:a})},1645:function(I,r,n){"use strict";var e=n(72134),a=n(78839);e({target:"Number",stat:!0},{isInteger:a})},24966:function(I,r,n){"use strict";var e=n(72134);e({target:"Number",stat:!0},{isNaN:function(){function a(t){return t!==t}return a}()})},83709:function(I,r,n){"use strict";var e=n(72134),a=n(78839),t=Math.abs;e({target:"Number",stat:!0},{isSafeInteger:function(){function o(s){return a(s)&&t(s)<=9007199254740991}return o}()})},2057:function(I,r,n){"use strict";var e=n(72134);e({target:"Number",stat:!0,nonConfigurable:!0,nonWritable:!0},{MAX_SAFE_INTEGER:9007199254740991})},579:function(I,r,n){"use strict";var e=n(72134);e({target:"Number",stat:!0,nonConfigurable:!0,nonWritable:!0},{MIN_SAFE_INTEGER:-9007199254740991})},45188:function(I,r,n){"use strict";var e=n(72134),a=n(8576);e({target:"Number",stat:!0,forced:Number.parseFloat!==a},{parseFloat:a})},99619:function(I,r,n){"use strict";var e=n(72134),a=n(38735);e({target:"Number",stat:!0,forced:Number.parseInt!==a},{parseInt:a})},46684:function(I,r,n){"use strict";var e=n(72134),a=n(80576),t=n(38283),o=n(54744),s=n(68861),y=n(26735),V=RangeError,k=String,S=Math.floor,p=a(s),i=a("".slice),l=a(1 .toFixed),f=function b(C,h,g){return h===0?g:h%2===1?b(C,h-1,g*C):b(C*C,h/2,g)},u=function(C){for(var h=0,g=C;g>=4096;)h+=12,g/=4096;for(;g>=2;)h+=1,g/=2;return h},d=function(C,h,g){for(var N=-1,x=g;++N<6;)x+=h*C[N],C[N]=x%1e7,x=S(x/1e7)},m=function(C,h){for(var g=6,N=0;--g>=0;)N+=C[g],C[g]=S(N/h),N=N%h*1e7},c=function(C){for(var h=6,g="";--h>=0;)if(g!==""||h===0||C[h]!==0){var N=k(C[h]);g=g===""?N:g+p("0",7-N.length)+N}return g},v=y(function(){return l(8e-5,3)!=="0.000"||l(.9,0)!=="1"||l(1.255,2)!=="1.25"||l(0xde0b6b3a7640080,0)!=="1000000000000000128"})||!y(function(){l({})});e({target:"Number",proto:!0,forced:v},{toFixed:function(){function b(C){var h=o(this),g=t(C),N=[0,0,0,0,0,0],x="",B="0",L,w,A,T;if(g<0||g>20)throw new V("Incorrect fraction digits");if(h!==h)return"NaN";if(h<=-1e21||h>=1e21)return k(h);if(h<0&&(x="-",h=-h),h>1e-21)if(L=u(h*f(2,69,1))-69,w=L<0?h*f(2,-L,1):h/f(2,L,1),w*=4503599627370496,L=52-L,L>0){for(d(N,0,w),A=g;A>=7;)d(N,1e7,0),A-=7;for(d(N,f(10,A,1),0),A=L-1;A>=23;)m(N,8388608),A-=23;m(N,1<0?(T=B.length,B=x+(T<=g?"0."+p("0",g-T)+B:i(B,0,T-g)+"."+i(B,T-g))):B=x+B,B}return b}()})},80070:function(I,r,n){"use strict";var e=n(72134),a=n(80576),t=n(26735),o=n(54744),s=a(1 .toPrecision),y=t(function(){return s(1,void 0)!=="1"})||!t(function(){s({})});e({target:"Number",proto:!0,forced:y},{toPrecision:function(){function V(k){return k===void 0?s(o(this)):s(o(this),k)}return V}()})},20461:function(I,r,n){"use strict";var e=n(72134),a=n(1925);e({target:"Object",stat:!0,arity:2,forced:Object.assign!==a},{assign:a})},4272:function(I,r,n){"use strict";var e=n(72134),a=n(47676),t=n(54792);e({target:"Object",stat:!0,sham:!a},{create:t})},32707:function(I,r,n){"use strict";var e=n(72134),a=n(47676),t=n(36807),o=n(20986),s=n(43269),y=n(3329);a&&e({target:"Object",proto:!0,forced:t},{__defineGetter__:function(){function V(k,S){y.f(s(this),k,{get:o(S),enumerable:!0,configurable:!0})}return V}()})},83161:function(I,r,n){"use strict";var e=n(72134),a=n(47676),t=n(86513).f;e({target:"Object",stat:!0,forced:Object.defineProperties!==t,sham:!a},{defineProperties:t})},76937:function(I,r,n){"use strict";var e=n(72134),a=n(47676),t=n(3329).f;e({target:"Object",stat:!0,forced:Object.defineProperty!==t,sham:!a},{defineProperty:t})},46247:function(I,r,n){"use strict";var e=n(72134),a=n(47676),t=n(36807),o=n(20986),s=n(43269),y=n(3329);a&&e({target:"Object",proto:!0,forced:t},{__defineSetter__:function(){function V(k,S){y.f(s(this),k,{set:o(S),enumerable:!0,configurable:!0})}return V}()})},36978:function(I,r,n){"use strict";var e=n(72134),a=n(61941).entries;e({target:"Object",stat:!0},{entries:function(){function t(o){return a(o)}return t}()})},90363:function(I,r,n){"use strict";var e=n(72134),a=n(58680),t=n(26735),o=n(63762),s=n(62232).onFreeze,y=Object.freeze,V=t(function(){y(1)});e({target:"Object",stat:!0,forced:V,sham:!a},{freeze:function(){function k(S){return y&&o(S)?y(s(S)):S}return k}()})},27281:function(I,r,n){"use strict";var e=n(72134),a=n(8828),t=n(4160);e({target:"Object",stat:!0},{fromEntries:function(){function o(s){var y={};return a(s,function(V,k){t(y,V,k)},{AS_ENTRIES:!0}),y}return o}()})},57659:function(I,r,n){"use strict";var e=n(72134),a=n(26735),t=n(1381),o=n(9747).f,s=n(47676),y=!s||a(function(){o(1)});e({target:"Object",stat:!0,forced:y,sham:!s},{getOwnPropertyDescriptor:function(){function V(k,S){return o(t(k),S)}return V}()})},65294:function(I,r,n){"use strict";var e=n(72134),a=n(47676),t=n(27623),o=n(1381),s=n(9747),y=n(4160);e({target:"Object",stat:!0,sham:!a},{getOwnPropertyDescriptors:function(){function V(k){for(var S=o(k),p=s.f,i=t(S),l={},f=0,u,d;i.length>f;)d=p(S,u=i[f++]),d!==void 0&&y(l,u,d);return l}return V}()})},66744:function(I,r,n){"use strict";var e=n(72134),a=n(26735),t=n(64586).f,o=a(function(){return!Object.getOwnPropertyNames(1)});e({target:"Object",stat:!0,forced:o},{getOwnPropertyNames:t})},69053:function(I,r,n){"use strict";var e=n(72134),a=n(14943),t=n(26735),o=n(5797),s=n(43269),y=!a||t(function(){o.f(1)});e({target:"Object",stat:!0,forced:y},{getOwnPropertySymbols:function(){function V(k){var S=o.f;return S?S(s(k)):[]}return V}()})},80347:function(I,r,n){"use strict";var e=n(72134),a=n(26735),t=n(43269),o=n(97139),s=n(85187),y=a(function(){o(1)});e({target:"Object",stat:!0,forced:y,sham:!s},{getPrototypeOf:function(){function V(k){return o(t(k))}return V}()})},67316:function(I,r,n){"use strict";var e=n(72134),a=n(74428);e({target:"Object",stat:!0,forced:Object.isExtensible!==a},{isExtensible:a})},1507:function(I,r,n){"use strict";var e=n(72134),a=n(26735),t=n(63762),o=n(83376),s=n(12116),y=Object.isFrozen,V=s||a(function(){y(1)});e({target:"Object",stat:!0,forced:V},{isFrozen:function(){function k(S){return!t(S)||s&&o(S)==="ArrayBuffer"?!0:y?y(S):!1}return k}()})},57805:function(I,r,n){"use strict";var e=n(72134),a=n(26735),t=n(63762),o=n(83376),s=n(12116),y=Object.isSealed,V=s||a(function(){y(1)});e({target:"Object",stat:!0,forced:V},{isSealed:function(){function k(S){return!t(S)||s&&o(S)==="ArrayBuffer"?!0:y?y(S):!1}return k}()})},56100:function(I,r,n){"use strict";var e=n(72134),a=n(72926);e({target:"Object",stat:!0},{is:a})},45432:function(I,r,n){"use strict";var e=n(72134),a=n(43269),t=n(57904),o=n(26735),s=o(function(){t(1)});e({target:"Object",stat:!0,forced:s},{keys:function(){function y(V){return t(a(V))}return y}()})},90356:function(I,r,n){"use strict";var e=n(72134),a=n(47676),t=n(36807),o=n(43269),s=n(38041),y=n(97139),V=n(9747).f;a&&e({target:"Object",proto:!0,forced:t},{__lookupGetter__:function(){function k(S){var p=o(this),i=s(S),l;do if(l=V(p,i))return l.get;while(p=y(p))}return k}()})},70640:function(I,r,n){"use strict";var e=n(72134),a=n(47676),t=n(36807),o=n(43269),s=n(38041),y=n(97139),V=n(9747).f;a&&e({target:"Object",proto:!0,forced:t},{__lookupSetter__:function(){function k(S){var p=o(this),i=s(S),l;do if(l=V(p,i))return l.set;while(p=y(p))}return k}()})},38047:function(I,r,n){"use strict";var e=n(72134),a=n(63762),t=n(62232).onFreeze,o=n(58680),s=n(26735),y=Object.preventExtensions,V=s(function(){y(1)});e({target:"Object",stat:!0,forced:V,sham:!o},{preventExtensions:function(){function k(S){return y&&a(S)?y(t(S)):S}return k}()})},90853:function(I,r,n){"use strict";var e=n(72134),a=n(63762),t=n(62232).onFreeze,o=n(58680),s=n(26735),y=Object.seal,V=s(function(){y(1)});e({target:"Object",stat:!0,forced:V,sham:!o},{seal:function(){function k(S){return y&&a(S)?y(t(S)):S}return k}()})},52159:function(I,r,n){"use strict";var e=n(72134),a=n(19191);e({target:"Object",stat:!0},{setPrototypeOf:a})},85411:function(I,r,n){"use strict";var e=n(88476),a=n(73880),t=n(37131);e||a(Object.prototype,"toString",t,{unsafe:!0})},82578:function(I,r,n){"use strict";var e=n(72134),a=n(61941).values;e({target:"Object",stat:!0},{values:function(){function t(o){return a(o)}return t}()})},11051:function(I,r,n){"use strict";var e=n(72134),a=n(8576);e({global:!0,forced:parseFloat!==a},{parseFloat:a})},90892:function(I,r,n){"use strict";var e=n(72134),a=n(38735);e({global:!0,forced:parseInt!==a},{parseInt:a})},78563:function(I,r,n){"use strict";var e=n(72134),a=n(81037),t=n(20986),o=n(72347),s=n(58175),y=n(8828),V=n(91609);e({target:"Promise",stat:!0,forced:V},{all:function(){function k(S){var p=this,i=o.f(p),l=i.resolve,f=i.reject,u=s(function(){var d=t(p.resolve),m=[],c=0,v=1;y(S,function(b){var C=c++,h=!1;v++,a(d,p,b).then(function(g){h||(h=!0,m[C]=g,--v||l(m))},f)}),--v||l(m)});return u.error&&f(u.value),i.promise}return k}()})},27491:function(I,r,n){"use strict";var e=n(72134),a=n(61147),t=n(20468).CONSTRUCTOR,o=n(70390),s=n(70663),y=n(8389),V=n(73880),k=o&&o.prototype;if(e({target:"Promise",proto:!0,forced:t,real:!0},{catch:function(){function p(i){return this.then(void 0,i)}return p}()}),!a&&y(o)){var S=s("Promise").prototype.catch;k.catch!==S&&V(k,"catch",S,{unsafe:!0})}},68276:function(I,r,n){"use strict";var e=n(72134),a=n(61147),t=n(71488),o=n(16203),s=n(81037),y=n(73880),V=n(19191),k=n(43087),S=n(56417),p=n(20986),i=n(8389),l=n(63762),f=n(38567),u=n(23237),d=n(66825).set,m=n(62083),c=n(62613),v=n(58175),b=n(26665),C=n(77341),h=n(70390),g=n(20468),N=n(72347),x="Promise",B=g.CONSTRUCTOR,L=g.REJECTION_EVENT,w=g.SUBCLASSING,A=C.getterFor(x),T=C.set,E=h&&h.prototype,O=h,P=E,R=o.TypeError,F=o.document,j=o.process,U=N.f,_=U,K=!!(F&&F.createEvent&&o.dispatchEvent),Y="unhandledrejection",G="rejectionhandled",ne=0,$=1,se=2,Ne=1,be=2,xe,Ie,Te,he,Q=function(ue){var ie;return l(ue)&&i(ie=ue.then)?ie:!1},X=function(ue,ie){var ge=ie.value,Ce=ie.state===$,Ae=Ce?ue.ok:ue.fail,De=ue.resolve,Se=ue.reject,me=ue.domain,de,Be,W;try{Ae?(Ce||(ie.rejection===be&&fe(ie),ie.rejection=Ne),Ae===!0?de=ge:(me&&me.enter(),de=Ae(ge),me&&(me.exit(),W=!0)),de===ue.promise?Se(new R("Promise-chain cycle")):(Be=Q(de))?s(Be,de,De,Se):De(de)):Se(ge)}catch(oe){me&&!W&&me.exit(),Se(oe)}},te=function(ue,ie){ue.notified||(ue.notified=!0,m(function(){for(var ge=ue.reactions,Ce;Ce=ge.get();)X(Ce,ue);ue.notified=!1,ie&&!ue.rejection&&ce(ue)}))},q=function(ue,ie,ge){var Ce,Ae;K?(Ce=F.createEvent("Event"),Ce.promise=ie,Ce.reason=ge,Ce.initEvent(ue,!1,!0),o.dispatchEvent(Ce)):Ce={promise:ie,reason:ge},!L&&(Ae=o["on"+ue])?Ae(Ce):ue===Y&&c("Unhandled promise rejection",ge)},ce=function(ue){s(d,o,function(){var ie=ue.facade,ge=ue.value,Ce=Ve(ue),Ae;if(Ce&&(Ae=v(function(){t?j.emit("unhandledRejection",ge,ie):q(Y,ie,ge)}),ue.rejection=t||Ve(ue)?be:Ne,Ae.error))throw Ae.value})},Ve=function(ue){return ue.rejection!==Ne&&!ue.parent},fe=function(ue){s(d,o,function(){var ie=ue.facade;t?j.emit("rejectionHandled",ie):q(G,ie,ue.value)})},we=function(ue,ie,ge){return function(Ce){ue(ie,Ce,ge)}},M=function(ue,ie,ge){ue.done||(ue.done=!0,ge&&(ue=ge),ue.value=ie,ue.state=se,te(ue,!0))},J=function re(ue,ie,ge){if(!ue.done){ue.done=!0,ge&&(ue=ge);try{if(ue.facade===ie)throw new R("Promise can't be resolved itself");var Ce=Q(ie);Ce?m(function(){var Ae={done:!1};try{s(Ce,ie,we(re,Ae,ue),we(M,Ae,ue))}catch(De){M(Ae,De,ue)}}):(ue.value=ie,ue.state=$,te(ue,!1))}catch(Ae){M({done:!1},Ae,ue)}}};if(B&&(O=function(){function re(ue){f(this,P),p(ue),s(xe,this);var ie=A(this);try{ue(we(J,ie),we(M,ie))}catch(ge){M(ie,ge)}}return re}(),P=O.prototype,xe=function(){function re(ue){T(this,{type:x,done:!1,notified:!1,parent:!1,reactions:new b,rejection:!1,state:ne,value:void 0})}return re}(),xe.prototype=y(P,"then",function(){function re(ue,ie){var ge=A(this),Ce=U(u(this,O));return ge.parent=!0,Ce.ok=i(ue)?ue:!0,Ce.fail=i(ie)&&ie,Ce.domain=t?j.domain:void 0,ge.state===ne?ge.reactions.add(Ce):m(function(){X(Ce,ge)}),Ce.promise}return re}()),Ie=function(){var ue=new xe,ie=A(ue);this.promise=ue,this.resolve=we(J,ie),this.reject=we(M,ie)},N.f=U=function(ue){return ue===O||ue===Te?new Ie(ue):_(ue)},!a&&i(h)&&E!==Object.prototype)){he=E.then,w||y(E,"then",function(){function re(ue,ie){var ge=this;return new O(function(Ce,Ae){s(he,ge,Ce,Ae)}).then(ue,ie)}return re}(),{unsafe:!0});try{delete E.constructor}catch(re){}V&&V(E,P)}e({global:!0,constructor:!0,wrap:!0,forced:B},{Promise:O}),k(O,x,!1,!0),S(x)},89375:function(I,r,n){"use strict";var e=n(72134),a=n(61147),t=n(70390),o=n(26735),s=n(70663),y=n(8389),V=n(23237),k=n(25838),S=n(73880),p=t&&t.prototype,i=!!t&&o(function(){p.finally.call({then:function(){function f(){}return f}()},function(){})});if(e({target:"Promise",proto:!0,real:!0,forced:i},{finally:function(){function f(u){var d=V(this,s("Promise")),m=y(u);return this.then(m?function(c){return k(d,u()).then(function(){return c})}:u,m?function(c){return k(d,u()).then(function(){throw c})}:u)}return f}()}),!a&&y(t)){var l=s("Promise").prototype.finally;p.finally!==l&&S(p,"finally",l,{unsafe:!0})}},97426:function(I,r,n){"use strict";n(68276),n(78563),n(27491),n(88175),n(22665),n(5480)},88175:function(I,r,n){"use strict";var e=n(72134),a=n(81037),t=n(20986),o=n(72347),s=n(58175),y=n(8828),V=n(91609);e({target:"Promise",stat:!0,forced:V},{race:function(){function k(S){var p=this,i=o.f(p),l=i.reject,f=s(function(){var u=t(p.resolve);y(S,function(d){a(u,p,d).then(i.resolve,l)})});return f.error&&l(f.value),i.promise}return k}()})},22665:function(I,r,n){"use strict";var e=n(72134),a=n(72347),t=n(20468).CONSTRUCTOR;e({target:"Promise",stat:!0,forced:t},{reject:function(){function o(s){var y=a.f(this),V=y.reject;return V(s),y.promise}return o}()})},5480:function(I,r,n){"use strict";var e=n(72134),a=n(70663),t=n(61147),o=n(70390),s=n(20468).CONSTRUCTOR,y=n(25838),V=a("Promise"),k=t&&!s;e({target:"Promise",stat:!0,forced:t||s},{resolve:function(){function S(p){return y(k&&this===V?o:this,p)}return S}()})},18660:function(I,r,n){"use strict";var e=n(72134),a=n(81929),t=n(20986),o=n(91191),s=n(26735),y=!s(function(){Reflect.apply(function(){})});e({target:"Reflect",stat:!0,forced:y},{apply:function(){function V(k,S,p){return a(t(k),S,o(p))}return V}()})},46185:function(I,r,n){"use strict";var e=n(72134),a=n(70663),t=n(81929),o=n(15062),s=n(23788),y=n(91191),V=n(63762),k=n(54792),S=n(26735),p=a("Reflect","construct"),i=Object.prototype,l=[].push,f=S(function(){function m(){}return!(p(function(){},[],m)instanceof m)}),u=!S(function(){p(function(){})}),d=f||u;e({target:"Reflect",stat:!0,forced:d,sham:d},{construct:function(){function m(c,v){s(c),y(v);var b=arguments.length<3?c:s(arguments[2]);if(u&&!f)return p(c,v,b);if(c===b){switch(v.length){case 0:return new c;case 1:return new c(v[0]);case 2:return new c(v[0],v[1]);case 3:return new c(v[0],v[1],v[2]);case 4:return new c(v[0],v[1],v[2],v[3])}var C=[null];return t(l,C,v),new(t(o,c,C))}var h=b.prototype,g=k(V(h)?h:i),N=t(c,g,v);return V(N)?N:g}return m}()})},94051:function(I,r,n){"use strict";var e=n(72134),a=n(47676),t=n(91191),o=n(38041),s=n(3329),y=n(26735),V=y(function(){Reflect.defineProperty(s.f({},1,{value:1}),1,{value:2})});e({target:"Reflect",stat:!0,forced:V,sham:!a},{defineProperty:function(){function k(S,p,i){t(S);var l=o(p);t(i);try{return s.f(S,l,i),!0}catch(f){return!1}}return k}()})},63115:function(I,r,n){"use strict";var e=n(72134),a=n(91191),t=n(9747).f;e({target:"Reflect",stat:!0},{deleteProperty:function(){function o(s,y){var V=t(a(s),y);return V&&!V.configurable?!1:delete s[y]}return o}()})},29561:function(I,r,n){"use strict";var e=n(72134),a=n(47676),t=n(91191),o=n(9747);e({target:"Reflect",stat:!0,sham:!a},{getOwnPropertyDescriptor:function(){function s(y,V){return o.f(t(y),V)}return s}()})},93589:function(I,r,n){"use strict";var e=n(72134),a=n(91191),t=n(97139),o=n(85187);e({target:"Reflect",stat:!0,sham:!o},{getPrototypeOf:function(){function s(y){return t(a(y))}return s}()})},81704:function(I,r,n){"use strict";var e=n(72134),a=n(81037),t=n(63762),o=n(91191),s=n(95791),y=n(9747),V=n(97139);function k(S,p){var i=arguments.length<3?S:arguments[2],l,f;if(o(S)===i)return S[p];if(l=y.f(S,p),l)return s(l)?l.value:l.get===void 0?void 0:a(l.get,i);if(t(f=V(S)))return k(f,p,i)}e({target:"Reflect",stat:!0},{get:k})},61692:function(I,r,n){"use strict";var e=n(72134);e({target:"Reflect",stat:!0},{has:function(){function a(t,o){return o in t}return a}()})},23114:function(I,r,n){"use strict";var e=n(72134),a=n(91191),t=n(74428);e({target:"Reflect",stat:!0},{isExtensible:function(){function o(s){return a(s),t(s)}return o}()})},33873:function(I,r,n){"use strict";var e=n(72134),a=n(27623);e({target:"Reflect",stat:!0},{ownKeys:a})},91449:function(I,r,n){"use strict";var e=n(72134),a=n(70663),t=n(91191),o=n(58680);e({target:"Reflect",stat:!0,sham:!o},{preventExtensions:function(){function s(y){t(y);try{var V=a("Object","preventExtensions");return V&&V(y),!0}catch(k){return!1}}return s}()})},89449:function(I,r,n){"use strict";var e=n(72134),a=n(91191),t=n(71442),o=n(19191);o&&e({target:"Reflect",stat:!0},{setPrototypeOf:function(){function s(y,V){a(y),t(V);try{return o(y,V),!0}catch(k){return!1}}return s}()})},93868:function(I,r,n){"use strict";var e=n(72134),a=n(81037),t=n(91191),o=n(63762),s=n(95791),y=n(26735),V=n(3329),k=n(9747),S=n(97139),p=n(276);function i(f,u,d){var m=arguments.length<4?f:arguments[3],c=k.f(t(f),u),v,b,C;if(!c){if(o(b=S(f)))return i(b,u,d,m);c=p(0)}if(s(c)){if(c.writable===!1||!o(m))return!1;if(v=k.f(m,u)){if(v.get||v.set||v.writable===!1)return!1;v.value=d,V.f(m,u,v)}else V.f(m,u,p(0,d))}else{if(C=c.set,C===void 0)return!1;a(C,m,d)}return!0}var l=y(function(){var f=function(){},u=V.f(new f,"a",{configurable:!0});return Reflect.set(f.prototype,"a",1,u)!==!1});e({target:"Reflect",stat:!0,forced:l},{set:i})},34064:function(I,r,n){"use strict";var e=n(47676),a=n(16203),t=n(80576),o=n(89644),s=n(99695),y=n(75387),V=n(54792),k=n(8288).f,S=n(88457),p=n(68196),i=n(64319),l=n(96890),f=n(96109),u=n(80384),d=n(73880),m=n(26735),c=n(3953),v=n(77341).enforce,b=n(56417),C=n(92611),h=n(54243),g=n(93070),N=C("match"),x=a.RegExp,B=x.prototype,L=a.SyntaxError,w=t(B.exec),A=t("".charAt),T=t("".replace),E=t("".indexOf),O=t("".slice),P=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,R=/a/g,F=/a/g,j=new x(R)!==R,U=f.MISSED_STICKY,_=f.UNSUPPORTED_Y,K=e&&(!j||U||h||g||m(function(){return F[N]=!1,x(R)!==R||x(F)===F||String(x(R,"i"))!=="/a/i"})),Y=function(be){for(var xe=be.length,Ie=0,Te="",he=!1,Q;Ie<=xe;Ie++){if(Q=A(be,Ie),Q==="\\"){Te+=Q+A(be,++Ie);continue}!he&&Q==="."?Te+="[\\s\\S]":(Q==="["?he=!0:Q==="]"&&(he=!1),Te+=Q)}return Te},G=function(be){for(var xe=be.length,Ie=0,Te="",he=[],Q=V(null),X=!1,te=!1,q=0,ce="",Ve;Ie<=xe;Ie++){if(Ve=A(be,Ie),Ve==="\\")Ve+=A(be,++Ie);else if(Ve==="]")X=!1;else if(!X)switch(!0){case Ve==="[":X=!0;break;case Ve==="(":w(P,O(be,Ie+1))&&(Ie+=2,te=!0),Te+=Ve,q++;continue;case(Ve===">"&&te):if(ce===""||c(Q,ce))throw new L("Invalid capture group name");Q[ce]=!0,he[he.length]=[ce,q],te=!1,ce="";continue}te?ce+=Ve:Te+=Ve}return[Te,he]};if(o("RegExp",K)){for(var ne=function(){function Ne(be,xe){var Ie=S(B,this),Te=p(be),he=xe===void 0,Q=[],X=be,te,q,ce,Ve,fe,we;if(!Ie&&Te&&he&&be.constructor===ne)return be;if((Te||S(B,be))&&(be=be.source,he&&(xe=l(X))),be=be===void 0?"":i(be),xe=xe===void 0?"":i(xe),X=be,h&&"dotAll"in R&&(q=!!xe&&E(xe,"s")>-1,q&&(xe=T(xe,/s/g,""))),te=xe,U&&"sticky"in R&&(ce=!!xe&&E(xe,"y")>-1,ce&&_&&(xe=T(xe,/y/g,""))),g&&(Ve=G(be),be=Ve[0],Q=Ve[1]),fe=s(x(be,xe),Ie?this:B,ne),(q||ce||Q.length)&&(we=v(fe),q&&(we.dotAll=!0,we.raw=ne(Y(be),te)),ce&&(we.sticky=!0),Q.length&&(we.groups=Q)),be!==X)try{y(fe,"source",X===""?"(?:)":X)}catch(M){}return fe}return Ne}(),$=k(x),se=0;$.length>se;)u(ne,x,$[se++]);B.constructor=ne,ne.prototype=B,d(a,"RegExp",ne,{constructor:!0})}b("RegExp")},67383:function(I,r,n){"use strict";var e=n(72134),a=n(81019);e({target:"RegExp",proto:!0,forced:/./.exec!==a},{exec:a})},51703:function(I,r,n){"use strict";var e=n(16203),a=n(47676),t=n(67242),o=n(2075),s=n(26735),y=e.RegExp,V=y.prototype,k=a&&s(function(){var S=!0;try{y(".","d")}catch(c){S=!1}var p={},i="",l=S?"dgimsy":"gimsy",f=function(v,b){Object.defineProperty(p,v,{get:function(){function C(){return i+=b,!0}return C}()})},u={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};S&&(u.hasIndices="d");for(var d in u)f(d,u[d]);var m=Object.getOwnPropertyDescriptor(V,"flags").get.call(p);return m!==l||i!==l});k&&t(V,"flags",{configurable:!0,get:o})},72333:function(I,r,n){"use strict";var e=n(97310).PROPER,a=n(73880),t=n(91191),o=n(64319),s=n(26735),y=n(96890),V="toString",k=RegExp.prototype,S=k[V],p=s(function(){return S.call({source:"a",flags:"b"})!=="/a/b"}),i=e&&S.name!==V;(p||i)&&a(k,V,function(){function l(){var f=t(this),u=o(f.source),d=o(y(f));return"/"+u+"/"+d}return l}(),{unsafe:!0})},55493:function(I,r,n){"use strict";var e=n(25796),a=n(3914);e("Set",function(t){return function(){function o(){return t(this,arguments.length?arguments[0]:void 0)}return o}()},a)},78388:function(I,r,n){"use strict";n(55493)},10211:function(I,r,n){"use strict";var e=n(72134),a=n(86088),t=n(19461);e({target:"String",proto:!0,forced:t("anchor")},{anchor:function(){function o(s){return a(this,"a","name",s)}return o}()})},96586:function(I,r,n){"use strict";var e=n(72134),a=n(86088),t=n(19461);e({target:"String",proto:!0,forced:t("big")},{big:function(){function o(){return a(this,"big","","")}return o}()})},59570:function(I,r,n){"use strict";var e=n(72134),a=n(86088),t=n(19461);e({target:"String",proto:!0,forced:t("blink")},{blink:function(){function o(){return a(this,"blink","","")}return o}()})},96449:function(I,r,n){"use strict";var e=n(72134),a=n(86088),t=n(19461);e({target:"String",proto:!0,forced:t("bold")},{bold:function(){function o(){return a(this,"b","","")}return o}()})},15876:function(I,r,n){"use strict";var e=n(72134),a=n(94567).codeAt;e({target:"String",proto:!0},{codePointAt:function(){function t(o){return a(this,o)}return t}()})},75241:function(I,r,n){"use strict";var e=n(72134),a=n(93636),t=n(9747).f,o=n(40046),s=n(64319),y=n(4143),V=n(76310),k=n(85580),S=n(61147),p=a("".slice),i=Math.min,l=k("endsWith"),f=!S&&!l&&!!function(){var u=t(String.prototype,"endsWith");return u&&!u.writable}();e({target:"String",proto:!0,forced:!f&&!l},{endsWith:function(){function u(d){var m=s(V(this));y(d);var c=arguments.length>1?arguments[1]:void 0,v=m.length,b=c===void 0?v:i(o(c),v),C=s(d);return p(m,b-C.length,b)===C}return u}()})},23754:function(I,r,n){"use strict";var e=n(72134),a=n(86088),t=n(19461);e({target:"String",proto:!0,forced:t("fixed")},{fixed:function(){function o(){return a(this,"tt","","")}return o}()})},48028:function(I,r,n){"use strict";var e=n(72134),a=n(86088),t=n(19461);e({target:"String",proto:!0,forced:t("fontcolor")},{fontcolor:function(){function o(s){return a(this,"font","color",s)}return o}()})},38874:function(I,r,n){"use strict";var e=n(72134),a=n(86088),t=n(19461);e({target:"String",proto:!0,forced:t("fontsize")},{fontsize:function(){function o(s){return a(this,"font","size",s)}return o}()})},80025:function(I,r,n){"use strict";var e=n(72134),a=n(80576),t=n(44874),o=RangeError,s=String.fromCharCode,y=String.fromCodePoint,V=a([].join),k=!!y&&y.length!==1;e({target:"String",stat:!0,arity:1,forced:k},{fromCodePoint:function(){function S(p){for(var i=[],l=arguments.length,f=0,u;l>f;){if(u=+arguments[f++],t(u,1114111)!==u)throw new o(u+" is not a valid code point");i[f]=u<65536?s(u):s(((u-=65536)>>10)+55296,u%1024+56320)}return V(i,"")}return S}()})},53651:function(I,r,n){"use strict";var e=n(72134),a=n(80576),t=n(4143),o=n(76310),s=n(64319),y=n(85580),V=a("".indexOf);e({target:"String",proto:!0,forced:!y("includes")},{includes:function(){function k(S){return!!~V(s(o(this)),s(t(S)),arguments.length>1?arguments[1]:void 0)}return k}()})},58909:function(I,r,n){"use strict";var e=n(72134),a=n(86088),t=n(19461);e({target:"String",proto:!0,forced:t("italics")},{italics:function(){function o(){return a(this,"i","","")}return o}()})},93220:function(I,r,n){"use strict";var e=n(94567).charAt,a=n(64319),t=n(77341),o=n(80160),s=n(53649),y="String Iterator",V=t.set,k=t.getterFor(y);o(String,"String",function(S){V(this,{type:y,string:a(S),index:0})},function(){function S(){var p=k(this),i=p.string,l=p.index,f;return l>=i.length?s(void 0,!0):(f=e(i,l),p.index+=f.length,s(f,!1))}return S}())},27402:function(I,r,n){"use strict";var e=n(72134),a=n(86088),t=n(19461);e({target:"String",proto:!0,forced:t("link")},{link:function(){function o(s){return a(this,"a","href",s)}return o}()})},1313:function(I,r,n){"use strict";var e=n(81037),a=n(36124),t=n(91191),o=n(79237),s=n(40046),y=n(64319),V=n(76310),k=n(4270),S=n(87477),p=n(17530);a("match",function(i,l,f){return[function(){function u(d){var m=V(this),c=o(d)?void 0:k(d,i);return c?e(c,d,m):new RegExp(d)[i](y(m))}return u}(),function(u){var d=t(this),m=y(u),c=f(l,d,m);if(c.done)return c.value;if(!d.global)return p(d,m);var v=d.unicode;d.lastIndex=0;for(var b=[],C=0,h;(h=p(d,m))!==null;){var g=y(h[0]);b[C]=g,g===""&&(d.lastIndex=S(m,s(d.lastIndex),v)),C++}return C===0?null:b}]})},69541:function(I,r,n){"use strict";var e=n(72134),a=n(12805).end,t=n(62311);e({target:"String",proto:!0,forced:t},{padEnd:function(){function o(s){return a(this,s,arguments.length>1?arguments[1]:void 0)}return o}()})},51660:function(I,r,n){"use strict";var e=n(72134),a=n(12805).start,t=n(62311);e({target:"String",proto:!0,forced:t},{padStart:function(){function o(s){return a(this,s,arguments.length>1?arguments[1]:void 0)}return o}()})},60578:function(I,r,n){"use strict";var e=n(72134),a=n(80576),t=n(1381),o=n(43269),s=n(64319),y=n(62022),V=a([].push),k=a([].join);e({target:"String",stat:!0},{raw:function(){function S(p){var i=t(o(p).raw),l=y(i);if(!l)return"";for(var f=arguments.length,u=[],d=0;;){if(V(u,s(i[d++])),d===l)return k(u,"");d")!=="7"});o("replace",function(T,E,O){var P=w?"$":"$0";return[function(){function R(F,j){var U=l(this),_=k(F)?void 0:u(F,v);return _?a(_,F,U,j):a(E,i(U),F,j)}return R}(),function(R,F){var j=y(this),U=i(R);if(typeof F=="string"&&N(F,P)===-1&&N(F,"$<")===-1){var _=O(E,j,U,F);if(_.done)return _.value}var K=V(F);K||(F=i(F));var Y=j.global,G;Y&&(G=j.unicode,j.lastIndex=0);for(var ne=[],$;$=m(j,U),!($===null||(g(ne,$),!Y));){var se=i($[0]);se===""&&(j.lastIndex=f(U,p(j.lastIndex),G))}for(var Ne="",be=0,xe=0;xe=be&&(Ne+=x(U,be,Te)+Q,be=Te+Ie.length)}return Ne+x(U,be)}]},!A||!L||w)},99362:function(I,r,n){"use strict";var e=n(81037),a=n(36124),t=n(91191),o=n(79237),s=n(76310),y=n(72926),V=n(64319),k=n(4270),S=n(17530);a("search",function(p,i,l){return[function(){function f(u){var d=s(this),m=o(u)?void 0:k(u,p);return m?e(m,u,d):new RegExp(u)[p](V(d))}return f}(),function(f){var u=t(this),d=V(f),m=l(i,u,d);if(m.done)return m.value;var c=u.lastIndex;y(c,0)||(u.lastIndex=0);var v=S(u,d);return y(u.lastIndex,c)||(u.lastIndex=c),v===null?-1:v.index}]})},10715:function(I,r,n){"use strict";var e=n(72134),a=n(86088),t=n(19461);e({target:"String",proto:!0,forced:t("small")},{small:function(){function o(){return a(this,"small","","")}return o}()})},18856:function(I,r,n){"use strict";var e=n(81037),a=n(80576),t=n(36124),o=n(91191),s=n(79237),y=n(76310),V=n(23237),k=n(87477),S=n(40046),p=n(64319),i=n(4270),l=n(17530),f=n(96109),u=n(26735),d=f.UNSUPPORTED_Y,m=4294967295,c=Math.min,v=a([].push),b=a("".slice),C=!u(function(){var g=/(?:)/,N=g.exec;g.exec=function(){return N.apply(this,arguments)};var x="ab".split(g);return x.length!==2||x[0]!=="a"||x[1]!=="b"}),h="abbc".split(/(b)*/)[1]==="c"||"test".split(/(?:)/,-1).length!==4||"ab".split(/(?:ab)*/).length!==2||".".split(/(.?)(.?)/).length!==4||".".split(/()()/).length>1||"".split(/.?/).length;t("split",function(g,N,x){var B="0".split(void 0,0).length?function(L,w){return L===void 0&&w===0?[]:e(N,this,L,w)}:N;return[function(){function L(w,A){var T=y(this),E=s(w)?void 0:i(w,g);return E?e(E,w,T,A):e(B,p(T),w,A)}return L}(),function(L,w){var A=o(this),T=p(L);if(!h){var E=x(B,A,T,w,B!==N);if(E.done)return E.value}var O=V(A,RegExp),P=A.unicode,R=(A.ignoreCase?"i":"")+(A.multiline?"m":"")+(A.unicode?"u":"")+(d?"g":"y"),F=new O(d?"^(?:"+A.source+")":A,R),j=w===void 0?m:w>>>0;if(j===0)return[];if(T.length===0)return l(F,T)===null?[T]:[];for(var U=0,_=0,K=[];_1?arguments[1]:void 0,m.length)),v=s(d);return p(m,c,c+v.length)===v}return u}()})},81140:function(I,r,n){"use strict";var e=n(72134),a=n(86088),t=n(19461);e({target:"String",proto:!0,forced:t("strike")},{strike:function(){function o(){return a(this,"strike","","")}return o}()})},56926:function(I,r,n){"use strict";var e=n(72134),a=n(86088),t=n(19461);e({target:"String",proto:!0,forced:t("sub")},{sub:function(){function o(){return a(this,"sub","","")}return o}()})},15012:function(I,r,n){"use strict";var e=n(72134),a=n(86088),t=n(19461);e({target:"String",proto:!0,forced:t("sup")},{sup:function(){function o(){return a(this,"sup","","")}return o}()})},13778:function(I,r,n){"use strict";n(6481);var e=n(72134),a=n(55810);e({target:"String",proto:!0,name:"trimEnd",forced:"".trimEnd!==a},{trimEnd:a})},15686:function(I,r,n){"use strict";var e=n(72134),a=n(92287);e({target:"String",proto:!0,name:"trimStart",forced:"".trimLeft!==a},{trimLeft:a})},6481:function(I,r,n){"use strict";var e=n(72134),a=n(55810);e({target:"String",proto:!0,name:"trimEnd",forced:"".trimRight!==a},{trimRight:a})},10223:function(I,r,n){"use strict";n(15686);var e=n(72134),a=n(92287);e({target:"String",proto:!0,name:"trimStart",forced:"".trimStart!==a},{trimStart:a})},62746:function(I,r,n){"use strict";var e=n(72134),a=n(4042).trim,t=n(13458);e({target:"String",proto:!0,forced:t("trim")},{trim:function(){function o(){return a(this)}return o}()})},25276:function(I,r,n){"use strict";var e=n(46303);e("asyncIterator")},89721:function(I,r,n){"use strict";var e=n(72134),a=n(16203),t=n(81037),o=n(80576),s=n(61147),y=n(47676),V=n(14943),k=n(26735),S=n(3953),p=n(88457),i=n(91191),l=n(1381),f=n(38041),u=n(64319),d=n(276),m=n(54792),c=n(57904),v=n(8288),b=n(64586),C=n(5797),h=n(9747),g=n(3329),N=n(86513),x=n(85845),B=n(73880),L=n(67242),w=n(31809),A=n(10647),T=n(58469),E=n(91072),O=n(92611),P=n(86095),R=n(46303),F=n(67122),j=n(43087),U=n(77341),_=n(30205).forEach,K=A("hidden"),Y="Symbol",G="prototype",ne=U.set,$=U.getterFor(Y),se=Object[G],Ne=a.Symbol,be=Ne&&Ne[G],xe=a.RangeError,Ie=a.TypeError,Te=a.QObject,he=h.f,Q=g.f,X=b.f,te=x.f,q=o([].push),ce=w("symbols"),Ve=w("op-symbols"),fe=w("wks"),we=!Te||!Te[G]||!Te[G].findChild,M=function(de,Be,W){var oe=he(se,Be);oe&&delete se[Be],Q(de,Be,W),oe&&de!==se&&Q(se,Be,oe)},J=y&&k(function(){return m(Q({},"a",{get:function(){function me(){return Q(this,"a",{value:7}).a}return me}()})).a!==7})?M:Q,re=function(de,Be){var W=ce[de]=m(be);return ne(W,{type:Y,tag:de,description:Be}),y||(W.description=Be),W},ue=function(){function me(de,Be,W){de===se&&ue(Ve,Be,W),i(de);var oe=f(Be);return i(W),S(ce,oe)?(W.enumerable?(S(de,K)&&de[K][oe]&&(de[K][oe]=!1),W=m(W,{enumerable:d(0,!1)})):(S(de,K)||Q(de,K,d(1,m(null))),de[K][oe]=!0),J(de,oe,W)):Q(de,oe,W)}return me}(),ie=function(){function me(de,Be){i(de);var W=l(Be),oe=c(W).concat(Se(W));return _(oe,function(ve){(!y||t(Ce,W,ve))&&ue(de,ve,W[ve])}),de}return me}(),ge=function(){function me(de,Be){return Be===void 0?m(de):ie(m(de),Be)}return me}(),Ce=function(){function me(de){var Be=f(de),W=t(te,this,Be);return this===se&&S(ce,Be)&&!S(Ve,Be)?!1:W||!S(this,Be)||!S(ce,Be)||S(this,K)&&this[K][Be]?W:!0}return me}(),Ae=function(){function me(de,Be){var W=l(de),oe=f(Be);if(!(W===se&&S(ce,oe)&&!S(Ve,oe))){var ve=he(W,oe);return ve&&S(ce,oe)&&!(S(W,K)&&W[K][oe])&&(ve.enumerable=!0),ve}}return me}(),De=function(){function me(de){var Be=X(l(de)),W=[];return _(Be,function(oe){!S(ce,oe)&&!S(T,oe)&&q(W,oe)}),W}return me}(),Se=function(de){var Be=de===se,W=X(Be?Ve:l(de)),oe=[];return _(W,function(ve){S(ce,ve)&&(!Be||S(se,ve))&&q(oe,ce[ve])}),oe};V||(Ne=function(){function me(){if(p(be,this))throw new Ie("Symbol is not a constructor");var de=!arguments.length||arguments[0]===void 0?void 0:u(arguments[0]),Be=E(de),W=function(){function oe(ve){var ye=this===void 0?a:this;ye===se&&t(oe,Ve,ve),S(ye,K)&&S(ye[K],Be)&&(ye[K][Be]=!1);var Le=d(1,ve);try{J(ye,Be,Le)}catch(Ee){if(!(Ee instanceof xe))throw Ee;M(ye,Be,Le)}}return oe}();return y&&we&&J(se,Be,{configurable:!0,set:W}),re(Be,de)}return me}(),be=Ne[G],B(be,"toString",function(){function me(){return $(this).tag}return me}()),B(Ne,"withoutSetter",function(me){return re(E(me),me)}),x.f=Ce,g.f=ue,N.f=ie,h.f=Ae,v.f=b.f=De,C.f=Se,P.f=function(me){return re(O(me),me)},y&&(L(be,"description",{configurable:!0,get:function(){function me(){return $(this).description}return me}()}),s||B(se,"propertyIsEnumerable",Ce,{unsafe:!0}))),e({global:!0,constructor:!0,wrap:!0,forced:!V,sham:!V},{Symbol:Ne}),_(c(fe),function(me){R(me)}),e({target:Y,stat:!0,forced:!V},{useSetter:function(){function me(){we=!0}return me}(),useSimple:function(){function me(){we=!1}return me}()}),e({target:"Object",stat:!0,forced:!V,sham:!y},{create:ge,defineProperty:ue,defineProperties:ie,getOwnPropertyDescriptor:Ae}),e({target:"Object",stat:!0,forced:!V},{getOwnPropertyNames:De}),F(),j(Ne,Y),T[K]=!0},74055:function(I,r,n){"use strict";var e=n(72134),a=n(47676),t=n(16203),o=n(80576),s=n(3953),y=n(8389),V=n(88457),k=n(64319),S=n(67242),p=n(81340),i=t.Symbol,l=i&&i.prototype;if(a&&y(i)&&(!("description"in l)||i().description!==void 0)){var f={},u=function(){function h(){var g=arguments.length<1||arguments[0]===void 0?void 0:k(arguments[0]),N=V(l,this)?new i(g):g===void 0?i():i(g);return g===""&&(f[N]=!0),N}return h}();p(u,i),u.prototype=l,l.constructor=u;var d=String(i("description detection"))==="Symbol(description detection)",m=o(l.valueOf),c=o(l.toString),v=/^Symbol\((.*)\)[^)]+$/,b=o("".replace),C=o("".slice);S(l,"description",{configurable:!0,get:function(){function h(){var g=m(this);if(s(f,g))return"";var N=c(g),x=d?C(N,7,-1):b(N,v,"$1");return x===""?void 0:x}return h}()}),e({global:!0,constructor:!0,forced:!0},{Symbol:u})}},790:function(I,r,n){"use strict";var e=n(72134),a=n(70663),t=n(3953),o=n(64319),s=n(31809),y=n(75440),V=s("string-to-symbol-registry"),k=s("symbol-to-string-registry");e({target:"Symbol",stat:!0,forced:!y},{for:function(){function S(p){var i=o(p);if(t(V,i))return V[i];var l=a("Symbol")(i);return V[i]=l,k[l]=i,l}return S}()})},7473:function(I,r,n){"use strict";var e=n(46303);e("hasInstance")},27416:function(I,r,n){"use strict";var e=n(46303);e("isConcatSpreadable")},79267:function(I,r,n){"use strict";var e=n(46303);e("iterator")},82547:function(I,r,n){"use strict";n(89721),n(790),n(33796),n(71782),n(69053)},33796:function(I,r,n){"use strict";var e=n(72134),a=n(3953),t=n(47541),o=n(82823),s=n(31809),y=n(75440),V=s("symbol-to-string-registry");e({target:"Symbol",stat:!0,forced:!y},{keyFor:function(){function k(S){if(!t(S))throw new TypeError(o(S)+" is not a symbol");if(a(V,S))return V[S]}return k}()})},53892:function(I,r,n){"use strict";var e=n(46303);e("match")},18837:function(I,r,n){"use strict";var e=n(46303);e("replace")},45785:function(I,r,n){"use strict";var e=n(46303);e("search")},3643:function(I,r,n){"use strict";var e=n(46303);e("species")},70833:function(I,r,n){"use strict";var e=n(46303);e("split")},93588:function(I,r,n){"use strict";var e=n(46303),a=n(67122);e("toPrimitive"),a()},92861:function(I,r,n){"use strict";var e=n(70663),a=n(46303),t=n(43087);a("toStringTag"),t(e("Symbol"),"Symbol")},22294:function(I,r,n){"use strict";var e=n(46303);e("unscopables")},70094:function(I,r,n){"use strict";var e=n(80576),a=n(94084),t=n(77653),o=e(t),s=a.aTypedArray,y=a.exportTypedArrayMethod;y("copyWithin",function(){function V(k,S){return o(s(this),k,S,arguments.length>2?arguments[2]:void 0)}return V}())},27898:function(I,r,n){"use strict";var e=n(94084),a=n(30205).every,t=e.aTypedArray,o=e.exportTypedArrayMethod;o("every",function(){function s(y){return a(t(this),y,arguments.length>1?arguments[1]:void 0)}return s}())},76404:function(I,r,n){"use strict";var e=n(94084),a=n(41733),t=n(12382),o=n(39851),s=n(81037),y=n(80576),V=n(26735),k=e.aTypedArray,S=e.exportTypedArrayMethod,p=y("".slice),i=V(function(){var l=0;return new Int8Array(2).fill({valueOf:function(){function f(){return l++}return f}()}),l!==1});S("fill",function(){function l(f){var u=arguments.length;k(this);var d=p(o(this),0,3)==="Big"?t(f):+f;return s(a,this,d,u>1?arguments[1]:void 0,u>2?arguments[2]:void 0)}return l}(),i)},88179:function(I,r,n){"use strict";var e=n(94084),a=n(30205).filter,t=n(98661),o=e.aTypedArray,s=e.exportTypedArrayMethod;s("filter",function(){function y(V){var k=a(o(this),V,arguments.length>1?arguments[1]:void 0);return t(this,k)}return y}())},56883:function(I,r,n){"use strict";var e=n(94084),a=n(30205).findIndex,t=e.aTypedArray,o=e.exportTypedArrayMethod;o("findIndex",function(){function s(y){return a(t(this),y,arguments.length>1?arguments[1]:void 0)}return s}())},48862:function(I,r,n){"use strict";var e=n(94084),a=n(30205).find,t=e.aTypedArray,o=e.exportTypedArrayMethod;o("find",function(){function s(y){return a(t(this),y,arguments.length>1?arguments[1]:void 0)}return s}())},41490:function(I,r,n){"use strict";var e=n(13471);e("Float32",function(a){return function(){function t(o,s,y){return a(this,o,s,y)}return t}()})},76569:function(I,r,n){"use strict";var e=n(13471);e("Float64",function(a){return function(){function t(o,s,y){return a(this,o,s,y)}return t}()})},85126:function(I,r,n){"use strict";var e=n(94084),a=n(30205).forEach,t=e.aTypedArray,o=e.exportTypedArrayMethod;o("forEach",function(){function s(y){a(t(this),y,arguments.length>1?arguments[1]:void 0)}return s}())},61705:function(I,r,n){"use strict";var e=n(43157),a=n(94084).exportTypedArrayStaticMethod,t=n(12323);a("from",t,e)},11968:function(I,r,n){"use strict";var e=n(94084),a=n(54065).includes,t=e.aTypedArray,o=e.exportTypedArrayMethod;o("includes",function(){function s(y){return a(t(this),y,arguments.length>1?arguments[1]:void 0)}return s}())},83787:function(I,r,n){"use strict";var e=n(94084),a=n(54065).indexOf,t=e.aTypedArray,o=e.exportTypedArrayMethod;o("indexOf",function(){function s(y){return a(t(this),y,arguments.length>1?arguments[1]:void 0)}return s}())},62875:function(I,r,n){"use strict";var e=n(13471);e("Int16",function(a){return function(){function t(o,s,y){return a(this,o,s,y)}return t}()})},69861:function(I,r,n){"use strict";var e=n(13471);e("Int32",function(a){return function(){function t(o,s,y){return a(this,o,s,y)}return t}()})},99922:function(I,r,n){"use strict";var e=n(13471);e("Int8",function(a){return function(){function t(o,s,y){return a(this,o,s,y)}return t}()})},20647:function(I,r,n){"use strict";var e=n(16203),a=n(26735),t=n(80576),o=n(94084),s=n(66240),y=n(92611),V=y("iterator"),k=e.Uint8Array,S=t(s.values),p=t(s.keys),i=t(s.entries),l=o.aTypedArray,f=o.exportTypedArrayMethod,u=k&&k.prototype,d=!a(function(){u[V].call([1])}),m=!!u&&u.values&&u[V]===u.values&&u.values.name==="values",c=function(){function v(){return S(l(this))}return v}();f("entries",function(){function v(){return i(l(this))}return v}(),d),f("keys",function(){function v(){return p(l(this))}return v}(),d),f("values",c,d||!m,{name:"values"}),f(V,c,d||!m,{name:"values"})},80857:function(I,r,n){"use strict";var e=n(94084),a=n(80576),t=e.aTypedArray,o=e.exportTypedArrayMethod,s=a([].join);o("join",function(){function y(V){return s(t(this),V)}return y}())},7564:function(I,r,n){"use strict";var e=n(94084),a=n(81929),t=n(41931),o=e.aTypedArray,s=e.exportTypedArrayMethod;s("lastIndexOf",function(){function y(V){var k=arguments.length;return a(t,o(this),k>1?[V,arguments[1]]:[V])}return y}())},1011:function(I,r,n){"use strict";var e=n(94084),a=n(30205).map,t=n(46132),o=e.aTypedArray,s=e.exportTypedArrayMethod;s("map",function(){function y(V){return a(o(this),V,arguments.length>1?arguments[1]:void 0,function(k,S){return new(t(k))(S)})}return y}())},96264:function(I,r,n){"use strict";var e=n(94084),a=n(43157),t=e.aTypedArrayConstructor,o=e.exportTypedArrayStaticMethod;o("of",function(){function s(){for(var y=0,V=arguments.length,k=new(t(this))(V);V>y;)k[y]=arguments[y++];return k}return s}(),a)},7448:function(I,r,n){"use strict";var e=n(94084),a=n(83214).right,t=e.aTypedArray,o=e.exportTypedArrayMethod;o("reduceRight",function(){function s(y){var V=arguments.length;return a(t(this),y,V,V>1?arguments[1]:void 0)}return s}())},72711:function(I,r,n){"use strict";var e=n(94084),a=n(83214).left,t=e.aTypedArray,o=e.exportTypedArrayMethod;o("reduce",function(){function s(y){var V=arguments.length;return a(t(this),y,V,V>1?arguments[1]:void 0)}return s}())},41723:function(I,r,n){"use strict";var e=n(94084),a=e.aTypedArray,t=e.exportTypedArrayMethod,o=Math.floor;t("reverse",function(){function s(){for(var y=this,V=a(y).length,k=o(V/2),S=0,p;S1?arguments[1]:void 0,1),b=y(c);if(u)return a(i,this,b,v);var C=this.length,h=o(b),g=0;if(h+v>C)throw new k("Wrong length");for(;gf;)d[f]=i[f++];return d}return k}(),V)},70309:function(I,r,n){"use strict";var e=n(94084),a=n(30205).some,t=e.aTypedArray,o=e.exportTypedArrayMethod;o("some",function(){function s(y){return a(t(this),y,arguments.length>1?arguments[1]:void 0)}return s}())},67237:function(I,r,n){"use strict";var e=n(16203),a=n(93636),t=n(26735),o=n(20986),s=n(38120),y=n(94084),V=n(10258),k=n(75154),S=n(3484),p=n(40312),i=y.aTypedArray,l=y.exportTypedArrayMethod,f=e.Uint16Array,u=f&&a(f.prototype.sort),d=!!u&&!(t(function(){u(new f(2),null)})&&t(function(){u(new f(2),{})})),m=!!u&&!t(function(){if(S)return S<74;if(V)return V<67;if(k)return!0;if(p)return p<602;var v=new f(516),b=Array(516),C,h;for(C=0;C<516;C++)h=C%4,v[C]=515-C,b[C]=C-2*h+3;for(u(v,function(g,N){return(g/4|0)-(N/4|0)}),C=0;C<516;C++)if(v[C]!==b[C])return!0}),c=function(b){return function(C,h){return b!==void 0?+b(C,h)||0:h!==h?-1:C!==C?1:C===0&&h===0?1/C>0&&1/h<0?1:-1:C>h}};l("sort",function(){function v(b){return b!==void 0&&o(b),m?u(this,b):s(i(this),c(b))}return v}(),!m||d)},25830:function(I,r,n){"use strict";var e=n(94084),a=n(40046),t=n(44874),o=n(46132),s=e.aTypedArray,y=e.exportTypedArrayMethod;y("subarray",function(){function V(k,S){var p=s(this),i=p.length,l=t(k,i),f=o(p);return new f(p.buffer,p.byteOffset+l*p.BYTES_PER_ELEMENT,a((S===void 0?i:t(S,i))-l))}return V}())},85293:function(I,r,n){"use strict";var e=n(16203),a=n(81929),t=n(94084),o=n(26735),s=n(7728),y=e.Int8Array,V=t.aTypedArray,k=t.exportTypedArrayMethod,S=[].toLocaleString,p=!!y&&o(function(){S.call(new y(1))}),i=o(function(){return[1,2].toLocaleString()!==new y([1,2]).toLocaleString()})||!o(function(){y.prototype.toLocaleString.call([1,2])});k("toLocaleString",function(){function l(){return a(S,p?s(V(this)):V(this),s(arguments))}return l}(),i)},24388:function(I,r,n){"use strict";var e=n(94084).exportTypedArrayMethod,a=n(26735),t=n(16203),o=n(80576),s=t.Uint8Array,y=s&&s.prototype||{},V=[].toString,k=o([].join);a(function(){V.call({})})&&(V=function(){function p(){return k(this)}return p}());var S=y.toString!==V;e("toString",V,S)},95386:function(I,r,n){"use strict";var e=n(13471);e("Uint16",function(a){return function(){function t(o,s,y){return a(this,o,s,y)}return t}()})},8412:function(I,r,n){"use strict";var e=n(13471);e("Uint32",function(a){return function(){function t(o,s,y){return a(this,o,s,y)}return t}()})},74721:function(I,r,n){"use strict";var e=n(13471);e("Uint8",function(a){return function(){function t(o,s,y){return a(this,o,s,y)}return t}()})},45382:function(I,r,n){"use strict";var e=n(13471);e("Uint8",function(a){return function(){function t(o,s,y){return a(this,o,s,y)}return t}()},!0)},5474:function(I,r,n){"use strict";var e=n(58680),a=n(16203),t=n(80576),o=n(91783),s=n(62232),y=n(25796),V=n(37081),k=n(63762),S=n(77341).enforce,p=n(26735),i=n(27374),l=Object,f=Array.isArray,u=l.isExtensible,d=l.isFrozen,m=l.isSealed,c=l.freeze,v=l.seal,b=!a.ActiveXObject&&"ActiveXObject"in a,C,h=function(E){return function(){function O(){return E(this,arguments.length?arguments[0]:void 0)}return O}()},g=y("WeakMap",h,V),N=g.prototype,x=t(N.set),B=function(){return e&&p(function(){var E=c([]);return x(new g,E,1),!d(E)})};if(i)if(b){C=V.getConstructor(h,"WeakMap",!0),s.enable();var L=t(N.delete),w=t(N.has),A=t(N.get);o(N,{delete:function(){function T(E){if(k(E)&&!u(E)){var O=S(this);return O.frozen||(O.frozen=new C),L(this,E)||O.frozen.delete(E)}return L(this,E)}return T}(),has:function(){function T(E){if(k(E)&&!u(E)){var O=S(this);return O.frozen||(O.frozen=new C),w(this,E)||O.frozen.has(E)}return w(this,E)}return T}(),get:function(){function T(E){if(k(E)&&!u(E)){var O=S(this);return O.frozen||(O.frozen=new C),w(this,E)?A(this,E):O.frozen.get(E)}return A(this,E)}return T}(),set:function(){function T(E,O){if(k(E)&&!u(E)){var P=S(this);P.frozen||(P.frozen=new C),w(this,E)?x(this,E,O):P.frozen.set(E,O)}else x(this,E,O);return this}return T}()})}else B()&&o(N,{set:function(){function T(E,O){var P;return f(E)&&(d(E)?P=c:m(E)&&(P=v)),x(this,E,O),P&&P(E),this}return T}()})},94460:function(I,r,n){"use strict";n(5474)},61928:function(I,r,n){"use strict";var e=n(25796),a=n(37081);e("WeakSet",function(t){return function(){function o(){return t(this,arguments.length?arguments[0]:void 0)}return o}()},a)},99710:function(I,r,n){"use strict";n(61928)},33488:function(I,r,n){"use strict";var e=n(72134),a=n(16203),t=n(66825).clear;e({global:!0,bind:!0,enumerable:!0,forced:a.clearImmediate!==t},{clearImmediate:t})},3224:function(I,r,n){"use strict";n(33488),n(40941)},44938:function(I,r,n){"use strict";var e=n(72134),a=n(16203),t=n(62083),o=n(20986),s=n(66828),y=n(26735),V=n(47676),k=y(function(){return V&&Object.getOwnPropertyDescriptor(a,"queueMicrotask").value.length!==1});e({global:!0,enumerable:!0,dontCallGetSet:!0,forced:k},{queueMicrotask:function(){function S(p){s(arguments.length,1),t(o(p))}return S}()})},40941:function(I,r,n){"use strict";var e=n(72134),a=n(16203),t=n(66825).set,o=n(81779),s=a.setImmediate?o(t,!1):t;e({global:!0,bind:!0,enumerable:!0,forced:a.setImmediate!==s},{setImmediate:s})},41895:function(I,r,n){"use strict";var e=n(72134),a=n(16203),t=n(81779),o=t(a.setInterval,!0);e({global:!0,bind:!0,forced:a.setInterval!==o},{setInterval:o})},58759:function(I,r,n){"use strict";var e=n(72134),a=n(16203),t=n(81779),o=t(a.setTimeout,!0);e({global:!0,bind:!0,forced:a.setTimeout!==o},{setTimeout:o})},83759:function(I,r,n){"use strict";n(41895),n(58759)},50719:function(I){"use strict";/** * @file * @copyright 2020 Aleksej Komarov * @license MIT