From 30a9b8d554821b561fb4dd30375333f0533d8927 Mon Sep 17 00:00:00 2001 From: Guti Date: Sun, 29 Sep 2024 11:15:44 +0200 Subject: [PATCH 1/2] TGUI Vote Panel --- code/__defines/misc.dm | 4 + code/controllers/autotransfer.dm | 4 +- code/controllers/subsystems/SSvote.dm | 16 ++ code/controllers/subsystems/ticker.dm | 10 +- code/controllers/subsystems/vote.dm | 2 + code/modules/mob/new_player/new_player.dm | 4 +- code/modules/vote/vote_datum.dm | 200 ++++++++++++++++++++ code/modules/vote/vote_presets.dm | 14 ++ code/modules/vote/vote_verb.dm | 56 ++++++ tgui/packages/tgui/interfaces/VotePanel.tsx | 44 +++++ tgui/public/tgui.bundle.js | 120 ++++++------ vorestation.dme | 4 + 12 files changed, 409 insertions(+), 69 deletions(-) create mode 100644 code/controllers/subsystems/SSvote.dm create mode 100644 code/modules/vote/vote_datum.dm create mode 100644 code/modules/vote/vote_presets.dm create mode 100644 code/modules/vote/vote_verb.dm create mode 100644 tgui/packages/tgui/interfaces/VotePanel.tsx diff --git a/code/__defines/misc.dm b/code/__defines/misc.dm index 38311fa289c..f3c4d792768 100644 --- a/code/__defines/misc.dm +++ b/code/__defines/misc.dm @@ -495,3 +495,7 @@ GLOBAL_LIST_INIT(all_volume_channels, list( #define SPECIES_SORT_WHITELISTED 2 #define SPECIES_SORT_RESTRICTED 3 #define SPECIES_SORT_CUSTOM 4 + +// Vote Types +#define VOTE_RESULT_TYPE_MAJORITY "Majority" +#define VOTE_RESULT_TYPE_SKEWED "Seventy" diff --git a/code/controllers/autotransfer.dm b/code/controllers/autotransfer.dm index 6cb875e93c4..5ba87753d80 100644 --- a/code/controllers/autotransfer.dm +++ b/code/controllers/autotransfer.dm @@ -17,7 +17,7 @@ var/datum/controller/transfer_controller/transfer_controller /datum/controller/transfer_controller/process() currenttick = currenttick + 1 //VOREStation Edit START - if (round_duration_in_ds >= shift_last_vote - 2 MINUTES) + if (round_duration_in_ds >= shift_last_vote - 2 MINUTES) shift_last_vote = 99999999 //Setting to a stupidly high number since it'll be not used again. to_world("Warning: You have one hour left in the shift. Wrap up your scenes in the next 60 minutes before the transfer is called.") //VOREStation Edit if (round_duration_in_ds >= shift_hard_end - 1 MINUTE) @@ -25,6 +25,6 @@ var/datum/controller/transfer_controller/transfer_controller shift_hard_end = timerbuffer + config.vote_autotransfer_interval //If shuttle somehow gets recalled, let's force it to call again next time a vote would occur. timerbuffer = timerbuffer + config.vote_autotransfer_interval //Just to make sure a vote doesn't occur immediately afterwords. else if (round_duration_in_ds >= timerbuffer - 1 MINUTE) - SSvote.autotransfer() + new /datum/vote/crew_transfer //VOREStation Edit END timerbuffer = timerbuffer + config.vote_autotransfer_interval diff --git a/code/controllers/subsystems/SSvote.dm b/code/controllers/subsystems/SSvote.dm new file mode 100644 index 00000000000..5ccaa7c5517 --- /dev/null +++ b/code/controllers/subsystems/SSvote.dm @@ -0,0 +1,16 @@ +SUBSYSTEM_DEF(vote) + name = "Vote" + wait = 10 + priority = FIRE_PRIORITY_VOTE + runlevels = RUNLEVEL_LOBBY | RUNLEVELS_DEFAULT + flags = SS_KEEP_TIMING | SS_NO_INIT + + var/datum/vote/active_vote + +/datum/controller/subsystem/vote/fire() + if(active_vote) + active_vote.tick() + +/datum/controller/subsystem/vote/proc/start_vote(datum/vote/V) + active_vote = V + active_vote.start() diff --git a/code/controllers/subsystems/ticker.dm b/code/controllers/subsystems/ticker.dm index b26bd701a61..8a4ef819c09 100644 --- a/code/controllers/subsystems/ticker.dm +++ b/code/controllers/subsystems/ticker.dm @@ -85,7 +85,7 @@ var/global/datum/controller/subsystem/ticker/ticker if(start_immediately) pregame_timeleft = 0 - else if(SSvote.time_remaining) + else if(SSvote.active_vote) return // vote still going, wait for it. // Time to start the game! @@ -96,15 +96,15 @@ var/global/datum/controller/subsystem/ticker/ticker fire() // Don't wait for next tick, do it now! return - if(pregame_timeleft <= config.vote_autogamemode_timeleft && !SSvote.gamemode_vote_called) - SSvote.autogamemode() // Start the game mode vote (if we haven't had one already) + //if(pregame_timeleft <= config.vote_autogamemode_timeleft && !SSvote.gamemode_vote_called) + //.autogamemode() // Start the game mode vote (if we haven't had one already) // Called during GAME_STATE_SETTING_UP (RUNLEVEL_SETUP) /datum/controller/subsystem/ticker/proc/setup_tick(resumed = FALSE) if(!setup_choose_gamemode()) // It failed, go back to lobby state and re-send the welcome message pregame_timeleft = config.pregame_time - SSvote.gamemode_vote_called = FALSE // Allow another autogamemode vote + // SSvote.gamemode_vote_called = FALSE // Allow another autogamemode vote current_state = GAME_STATE_PREGAME Master.SetRunLevel(RUNLEVEL_LOBBY) pregame_welcome() @@ -226,7 +226,7 @@ var/global/datum/controller/subsystem/ticker/ticker mode.cleanup() //call a transfer shuttle vote to_world("The round has ended!") - SSvote.autotransfer() + new /datum/vote/crew_transfer // Called during GAME_STATE_FINISHED (RUNLEVEL_POSTGAME) /datum/controller/subsystem/ticker/proc/post_game_tick() diff --git a/code/controllers/subsystems/vote.dm b/code/controllers/subsystems/vote.dm index c259c9ecd7e..712d62a625b 100644 --- a/code/controllers/subsystems/vote.dm +++ b/code/controllers/subsystems/vote.dm @@ -1,3 +1,4 @@ +/* SUBSYSTEM_DEF(vote) name = "Vote" wait = 10 @@ -396,3 +397,4 @@ SUBSYSTEM_DEF(vote) if(SSvote) src << browse(SSvote.interface(src), "window=vote;size=500x[300 + SSvote.choices.len * 25]") +*/ diff --git a/code/modules/mob/new_player/new_player.dm b/code/modules/mob/new_player/new_player.dm index 2221905e416..b2efe5b6cf0 100644 --- a/code/modules/mob/new_player/new_player.dm +++ b/code/modules/mob/new_player/new_player.dm @@ -117,8 +117,8 @@ if(statpanel("Lobby") && SSticker) stat("Game Mode:", SSticker.hide_mode ? "Secret" : "[config.mode_names[master_mode]]") - if(SSvote.mode) - stat("Vote: [capitalize(SSvote.mode)]", "Time Left: [SSvote.time_remaining] s") + // if(SSvote.mode) + // stat("Vote: [capitalize(SSvote.mode)]", "Time Left: [SSvote.time_remaining] s") if(SSticker.current_state == GAME_STATE_INIT) stat("Time To Start:", "Server Initializing") diff --git a/code/modules/vote/vote_datum.dm b/code/modules/vote/vote_datum.dm new file mode 100644 index 00000000000..87bc80e99ce --- /dev/null +++ b/code/modules/vote/vote_datum.dm @@ -0,0 +1,200 @@ +/datum/vote + // Person who started the vote + var/initiator = "the server" + // world.time the bote started at + var/started_time + // The question being asked + var/question + // Vote type text, for showing in UIs and stuff + var/vote_type_text = "unset" + // Do we want to show the vote count as it goes + var/show_counts = FALSE + // Vote result type. This determines how a winner is picked + var/vote_result_type = VOTE_RESULT_TYPE_MAJORITY + // Was this this vote custom started? + var/is_custom = FALSE + // Choices available in the vote + var/list/choices = list() + // Assoc list of [ckeys => choice] who have voted. We don't want to hold clients refs.___callbackvarset(list_or_datum, var_name, var_value) + var/list/voted = list() + // For how long will it be up + var/vote_time = 60 SECONDS + +/datum/vote/New(var/_initiator, var/_question, list/_choices, var/_is_custom = FALSE) + if(SSvote.active_vote) + CRASH("Attempted to start another vote with one already in progress!") + + if(_initiator) + initiator = _initiator + if(_question) + question = _question + if(_choices) + choices = _choices + + is_custom = _is_custom + + // If we have no choices, dynamically generate them + if(!length(choices)) + generate_choices() + +/datum/vote/proc/start() + var/text = "[capitalize(vote_type_text)] vote started by [initiator]." + if(is_custom) + vote_type_text = "custom" + text += "\n[question]" + if(usr) + log_admin("[capitalize(vote_type_text)] ([question]) vote started by [key_name(usr)].") + + else if(usr) + log_admin("[capitalize(vote_type_text)] vote started by [key_name(usr)].") + + log_vote(text) + started_time = world.time + announce(text) + +/datum/vote/proc/remaining() + return max(((started_time + vote_time - world.time)/10), 0) + +/datum/vote/proc/calculate_result() + if(!length(voted)) + to_chat(world, span_interface("No votes were cast. Do you all hate democracy?!")) + return null + + return calculate_vote_result(voted, choices, vote_result_type) + + +/datum/vote/proc/calculate_vote_result(var/list/voted, var/list/choices, var/vote_result_type) + var/list/results = list() + + for(var/ck in voted) + if(voted[ck] in results) + results[voted[ck]]++ + else + results[voted[ck]] = 1 + + var/maxvotes = 0 + for(var/res in results) + maxvotes = max(results[res], maxvotes) + + var/list/winning_options = list() + + for(var/res in results) + if(results[res] == maxvotes) + winning_options |= res + + for(var/res in results) + to_chat(world, span_interface("[res] - [results[res]] vote\s")) + + switch(vote_result_type) + if(VOTE_RESULT_TYPE_MAJORITY) + if(length(winning_options) == 1) + var/res = winning_options[1] + if(res in choices) + to_chat(world, span_interface("[res] won the vote!")) + return res + else + to_chat(world, span_interface("The winner of the vote ([sanitize(res)]) isn't a valid choice? What the heck?")) + stack_trace("Vote concluded with an invalid answer. Answer was [sanitize(res)], choices were [json_encode(choices)]") + return null + + to_chat(world, span_interface("No clear winner. The vote did not pass.")) + return null + + if(VOTE_RESULT_TYPE_SKEWED) + var/required_votes = ceil(length(voted) * 0.7) // 70% of total votes + if(maxvotes >= required_votes && length(winning_options) == 1) + var/res = winning_options[1] + if(res in choices) + to_chat(world, span_interface("[res] won the vote with a 70% majority!")) + return res + else + to_chat(world, span_interface("The winner of the vote ([sanitize(res)]) isn't a valid choice? What the heck?")) + stack_trace("Vote concluded with an invalid answer. Answer was [sanitize(res)], choices were [json_encode(choices)]") + return null + + to_chat(world, span_interface("No option received 70% of the votes. The vote did not pass.")) + return null + + return null + +/datum/vote/proc/announce(start_text, var/time = vote_time) + to_chat(world, span_lightpurple("Type vote or click here to place your vote. \ + You have [time] seconds to vote.")) + world << sound('sound/ambience/alarm4.ogg', repeat = 0, wait = 0, volume = 50, channel = 3) + +/datum/vote/Topic(href, list/href_list) + if(href_list["vote"] == "open") + if(src) + tgui_interact(usr) + else + to_chat(usr, "There is no active vote to participate in.") + +/datum/vote/proc/tick() + if(remaining() == 0) + var/result = calculate_result() + handle_result(result) + qdel(src) + +/datum/vote/Destroy(force) + if(SSvote.active_vote == src) + SSvote.active_vote = null + return ..() + +/datum/vote/proc/handle_result(result) + return + +/datum/vote/proc/generate_choices() + return + +/* + UI STUFFS +*/ + +/datum/vote/tgui_state(mob/user) + return GLOB.tgui_always_state + +/datum/vote/tgui_interact(mob/user, datum/tgui/ui = null) + ui = SStgui.try_update_ui(user, src, ui) + if(!ui) + ui = new(user, src, "VotePanel", "Vote Panel") + ui.open() + +/datum/vote/tgui_data(mob/user) + var/list/data = list() + data["remaining"] = remaining() + data["user_vote"] = null + if(user.ckey in voted) + data["user_vote"] = voted[user.ckey] + + data["question"] = question + data["choices"] = choices + + if(show_counts || check_rights(R_ADMIN, FALSE, user)) + data["show_counts"] = TRUE + + var/list/counts = list() + for(var/ck in voted) + if(voted[ck] in counts) + counts[voted[ck]]++ + else + counts[voted[ck]] = 1 + + data["counts"] = counts + else + data["show_counts"] = FALSE + data["counts"] = list() + + return data + +/datum/vote/tgui_act(action, list/params, datum/tgui/ui, datum/tgui_state/state) + if(..()) + return + + . = TRUE + + switch(action) + if("vote") + if(params["target"] in choices) + voted[usr.ckey] = params["target"] + else + message_admins(span_warning("User [key_name_admin(usr)] spoofed a vote in the vote panel!")) diff --git a/code/modules/vote/vote_presets.dm b/code/modules/vote/vote_presets.dm new file mode 100644 index 00000000000..a7a0829838b --- /dev/null +++ b/code/modules/vote/vote_presets.dm @@ -0,0 +1,14 @@ +/datum/vote/crew_transfer + question = "End the shift" + choices = list("Initiate Crew Transfer", "Extend The Shift") + vote_type_text = "crew transfer" + vote_result_type = VOTE_RESULT_TYPE_SKEWED + +/datum/vote/crew_transfer/New() + if(SSticker.current_state < GAME_STATE_PLAYING) + CRASH("Attempted to call a shutle vote before the game starts!") + ..() + +/datum/vote/crew_transfer/handle_result(result) + if(result == "Initiate Crew Transfer") + init_shift_change(null, TRUE) diff --git a/code/modules/vote/vote_verb.dm b/code/modules/vote/vote_verb.dm new file mode 100644 index 00000000000..3198a8fabd8 --- /dev/null +++ b/code/modules/vote/vote_verb.dm @@ -0,0 +1,56 @@ +/client/verb/vote() + set category = "OOC" + set name = "Vote" + + if(SSvote.active_vote) + SSvote.active_vote.tgui_interact(usr) + else + to_chat(usr, "There is no active vote") + +/client/proc/start_vote() + set category = "Admin" + set name = "Start Vote" + set desc = "Start a vote on the server" + + if(!is_admin()) + return + + if(SSvote.active_vote) + to_chat(usr, "A vote is already in progress") + return + + var/vote_types = subtypesof(/datum/vote) + vote_types |= "\[CUSTOM]" + + var/list/votemap = list() + for(var/vtype in vote_types) + votemap["[vtype]"] = vtype + + var/choice = tgui_input_list(usr, "Select a vote type", "Vote", vote_types) + + if(choice == null) + return + + if(choice != "\[CUSTOM]") + var/datum/votetype = votemap["[choice]"] + SSvote.start_vote(new votetype(usr.ckey)) + return + + var/question = tgui_input_text(usr, "What is the vote for?", "Create Vote", encode = FALSE) + if(isnull(question)) + return + + var/list/choices = list() + for(var/i in 1 to 10) + var/option = tgui_input_text(usr, "Please enter an option or hit cancel to finish", "Create Vote", encode = FALSE) + if(isnull(option) || !usr.client) + break + choices |= option + + var/c2 = tgui_alert(usr, "Show counts while vote is happening?", "Counts", list("Yes", "No")) + var/c3 = input(usr, "Select a result calculation type", "Vote", VOTE_RESULT_TYPE_MAJORITY) as anything in list(VOTE_RESULT_TYPE_MAJORITY) + + var/datum/vote/V = new /datum/vote(usr.ckey, question, choices, TRUE) + V.show_counts = (c2 == "Yes") + V.vote_result_type = c3 + SSvote.start_vote(V) diff --git a/tgui/packages/tgui/interfaces/VotePanel.tsx b/tgui/packages/tgui/interfaces/VotePanel.tsx new file mode 100644 index 00000000000..f3ef4ff118c --- /dev/null +++ b/tgui/packages/tgui/interfaces/VotePanel.tsx @@ -0,0 +1,44 @@ +import { useBackend } from '../backend'; +import { Box, Button, Section } from '../components'; +import { Window } from '../layouts'; + +type Data = { + remaining: number; + question: string; + choices: string[]; + user_vote: string | null; + counts: Record; + show_counts: boolean; +}; + +export const VotePanel = (props, context) => { + const { act, data } = useBackend(); + const { remaining, question, choices, user_vote, counts, show_counts } = data; + + return ( + + +
+ + Time remaining: {remaining.toFixed(0)}s + + {choices.map((choice, i) => ( + +
+
+
+ ); +}; diff --git a/tgui/public/tgui.bundle.js b/tgui/public/tgui.bundle.js index 7b9f1ffc4f9..d54beb54633 100644 --- a/tgui/public/tgui.bundle.js +++ b/tgui/public/tgui.bundle.js @@ -6,7 +6,7 @@ * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */function e(m,p){return p!=null&&typeof Symbol!="undefined"&&p[Symbol.hasInstance]?!!p[Symbol.hasInstance](m):m instanceof p}function o(m){"@swc/helpers - typeof";return m&&typeof Symbol!="undefined"&&m.constructor===Symbol?"symbol":typeof m}var t=n(61358),r=n(20686);function i(m){for(var p="https://reactjs.org/docs/error-decoder.html?invariant="+m,O=1;Op}return!1}function C(m,p,O,D,R,N,G){this.acceptsBooleans=p===2||p===3||p===4,this.attributeName=D,this.attributeNamespace=R,this.mustUseProperty=O,this.propertyName=m,this.type=p,this.sanitizeURL=N,this.removeEmptyString=G}var M={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(m){M[m]=new C(m,0,!1,m,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(m){var p=m[0];M[p]=new C(p,1,!1,m[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(m){M[m]=new C(m,2,!1,m.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(m){M[m]=new C(m,2,!1,m,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(m){M[m]=new C(m,3,!1,m.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(m){M[m]=new C(m,3,!0,m,null,!1,!1)}),["capture","download"].forEach(function(m){M[m]=new C(m,4,!1,m,null,!1,!1)}),["cols","rows","size","span"].forEach(function(m){M[m]=new C(m,6,!1,m,null,!1,!1)}),["rowSpan","start"].forEach(function(m){M[m]=new C(m,5,!1,m.toLowerCase(),null,!1,!1)});var P=/[\-:]([a-z])/g;function _(m){return m[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(m){var p=m.replace(P,_);M[p]=new C(p,1,!1,m,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(m){var p=m.replace(P,_);M[p]=new C(p,1,!1,m,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(m){var p=m.replace(P,_);M[p]=new C(p,1,!1,m,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(m){M[m]=new C(m,1,!1,m.toLowerCase(),null,!1,!1)}),M.xlinkHref=new C("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(m){M[m]=new C(m,1,!1,m.toLowerCase(),null,!0,!0)});function S(m,p,O,D){var R=M.hasOwnProperty(p)?M[p]:null;(R!==null?R.type!==0:D||!(2re||R[G]!==N[re]){var de="\n"+R[G].replace(" at new "," at ");return m.displayName&&de.includes("")&&(de=de.replace("",m.displayName)),de}while(1<=G&&0<=re);break}}}finally{ue=!1,Error.prepareStackTrace=O}return(m=m?m.displayName||m.name:"")?ie(m):""}function be(m){switch(m.tag){case 5:return ie(m.type);case 16:return ie("Lazy");case 13:return ie("Suspense");case 19:return ie("SuspenseList");case 0:case 2:case 15:return m=he(m.type,!1),m;case 11:return m=he(m.type.render,!1),m;case 1:return m=he(m.type,!0),m;default:return""}}function je(m){if(m==null)return null;if(typeof m=="function")return m.displayName||m.name||null;if(typeof m=="string")return m;switch(m){case W:return"Fragment";case L:return"Portal";case z:return"Profiler";case $:return"StrictMode";case H:return"Suspense";case Y:return"SuspenseList"}if(typeof m=="object")switch(m.$$typeof){case V:return(m.displayName||"Context")+".Consumer";case w:return(m._context.displayName||"Context")+".Provider";case k:var p=m.render;return m=m.displayName,m||(m=p.displayName||p.name||"",m=m!==""?"ForwardRef("+m+")":"ForwardRef"),m;case q:return p=m.displayName||null,p!==null?p:je(m.type)||"Memo";case Z:p=m._payload,m=m._init;try{return je(m(p))}catch(O){}}return null}function Ce(m){var p=m.type;switch(m.tag){case 24:return"Cache";case 9:return(p.displayName||"Context")+".Consumer";case 10:return(p._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return m=p.render,m=m.displayName||m.name||"",p.displayName||(m!==""?"ForwardRef("+m+")":"ForwardRef");case 7:return"Fragment";case 5:return p;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return je(p);case 8:return p===$?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof p=="function")return p.displayName||p.name||null;if(typeof p=="string")return p}return null}function Ne(m){switch(typeof m=="undefined"?"undefined":o(m)){case"boolean":case"number":case"string":case"undefined":return m;case"object":return m;default:return""}}function sn(m){var p=m.type;return(m=m.nodeName)&&m.toLowerCase()==="input"&&(p==="checkbox"||p==="radio")}function en(m){var p=sn(m)?"checked":"value",O=Object.getOwnPropertyDescriptor(m.constructor.prototype,p),D=""+m[p];if(!m.hasOwnProperty(p)&&typeof O!="undefined"&&typeof O.get=="function"&&typeof O.set=="function"){var R=O.get,N=O.set;return Object.defineProperty(m,p,{configurable:!0,get:function(){return R.call(this)},set:function(re){D=""+re,N.call(this,re)}}),Object.defineProperty(m,p,{enumerable:O.enumerable}),{getValue:function(){return D},setValue:function(re){D=""+re},stopTracking:function(){m._valueTracker=null,delete m[p]}}}}function De(m){m._valueTracker||(m._valueTracker=en(m))}function Qe(m){if(!m)return!1;var p=m._valueTracker;if(!p)return!0;var O=p.getValue(),D="";return m&&(D=sn(m)?m.checked?"true":"false":m.value),m=D,m!==O?(p.setValue(m),!0):!1}function Mn(m){if(m=m||(typeof document!="undefined"?document:void 0),typeof m=="undefined")return null;try{return m.activeElement||m.body}catch(p){return m.body}}function Pn(m,p){var O=p.checked;return ee({},p,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:O!=null?O:m._wrapperState.initialChecked})}function gn(m,p){var O=p.defaultValue==null?"":p.defaultValue,D=p.checked!=null?p.checked:p.defaultChecked;O=Ne(p.value!=null?p.value:O),m._wrapperState={initialChecked:D,initialValue:O,controlled:p.type==="checkbox"||p.type==="radio"?p.checked!=null:p.value!=null}}function An(m,p){p=p.checked,p!=null&&S(m,"checked",p,!1)}function xn(m,p){An(m,p);var O=Ne(p.value),D=p.type;if(O!=null)D==="number"?(O===0&&m.value===""||m.value!=O)&&(m.value=""+O):m.value!==""+O&&(m.value=""+O);else if(D==="submit"||D==="reset"){m.removeAttribute("value");return}p.hasOwnProperty("value")?Se(m,p.type,O):p.hasOwnProperty("defaultValue")&&Se(m,p.type,Ne(p.defaultValue)),p.checked==null&&p.defaultChecked!=null&&(m.defaultChecked=!!p.defaultChecked)}function cn(m,p,O){if(p.hasOwnProperty("value")||p.hasOwnProperty("defaultValue")){var D=p.type;if(!(D!=="submit"&&D!=="reset"||p.value!==void 0&&p.value!==null))return;p=""+m._wrapperState.initialValue,O||p===m.value||(m.value=p),m.defaultValue=p}O=m.name,O!==""&&(m.name=""),m.defaultChecked=!!m._wrapperState.initialChecked,O!==""&&(m.name=O)}function Se(m,p,O){(p!=="number"||Mn(m.ownerDocument)!==m)&&(O==null?m.defaultValue=""+m._wrapperState.initialValue:m.defaultValue!==""+O&&(m.defaultValue=""+O))}var ze=Array.isArray;function Oe(m,p,O,D){if(m=m.options,p){p={};for(var R=0;R"+p.valueOf().toString()+"",p=Rn.firstChild;m.firstChild;)m.removeChild(m.firstChild);for(;p.firstChild;)m.appendChild(p.firstChild)}});function on(m,p){if(p){var O=m.firstChild;if(O&&O===m.lastChild&&O.nodeType===3){O.nodeValue=p;return}}m.textContent=p}var Pe={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Re=["Webkit","ms","Moz","O"];Object.keys(Pe).forEach(function(m){Re.forEach(function(p){p=p+m.charAt(0).toUpperCase()+m.substring(1),Pe[p]=Pe[m]})});function ke(m,p,O){return p==null||typeof p=="boolean"||p===""?"":O||typeof p!="number"||p===0||Pe.hasOwnProperty(m)&&Pe[m]?(""+p).trim():p+"px"}function nn(m,p){m=m.style;for(var O in p)if(p.hasOwnProperty(O)){var D=O.indexOf("--")===0,R=ke(O,p[O],D);O==="float"&&(O="cssFloat"),D?m.setProperty(O,R):m[O]=R}}var _n=ee({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function In(m,p){if(p){if(_n[m]&&(p.children!=null||p.dangerouslySetInnerHTML!=null))throw Error(i(137,m));if(p.dangerouslySetInnerHTML!=null){if(p.children!=null)throw Error(i(60));if(typeof p.dangerouslySetInnerHTML!="object"||!("__html"in p.dangerouslySetInnerHTML))throw Error(i(61))}if(p.style!=null&&typeof p.style!="object")throw Error(i(62))}}function Wn(m,p){if(m.indexOf("-")===-1)return typeof p.is=="string";switch(m){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Kn=null;function wn(m){return m=m.target||m.srcElement||window,m.correspondingUseElement&&(m=m.correspondingUseElement),m.nodeType===3?m.parentNode:m}var at=null,jt=null,Bt=null;function gr(m){if(m=la(m)){if(typeof at!="function")throw Error(i(280));var p=m.stateNode;p&&(p=ca(p),at(m.stateNode,m.type,p))}}function Tr(m){jt?Bt?Bt.push(m):Bt=[m]:jt=m}function Rr(){if(jt){var m=jt,p=Bt;if(Bt=jt=null,gr(m),p)for(m=0;m>>=0,m===0?32:31-(Yi(m)/Ji|0)|0}var Ur=64,Oa=4194304;function wo(m){switch(m&-m){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return m&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return m&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return m}}function Ma(m,p){var O=m.pendingLanes;if(O===0)return 0;var D=0,R=m.suspendedLanes,N=m.pingedLanes,G=O&268435455;if(G!==0){var re=G&~R;re!==0?D=wo(re):(N&=G,N!==0&&(D=wo(N)))}else G=O&~R,G!==0?D=wo(G):N!==0&&(D=wo(N));if(D===0)return 0;if(p!==0&&p!==D&&!(p&R)&&(R=D&-D,N=p&-p,R>=N||R===16&&(N&4194240)!==0))return p;if(D&4&&(D|=O&16),p=m.entangledLanes,p!==0)for(m=m.entanglements,p&=D;0O;O++)p.push(m);return p}function zo(m,p,O){m.pendingLanes|=p,p!==536870912&&(m.suspendedLanes=0,m.pingedLanes=0),m=m.eventTimes,p=31-Qt(p),m[p]=O}function ol(m,p){var O=m.pendingLanes&~p;m.pendingLanes=p,m.suspendedLanes=0,m.pingedLanes=0,m.expiredLanes&=p,m.mutableReadLanes&=p,m.entangledLanes&=p,p=m.entanglements;var D=m.eventTimes;for(m=m.expirationTimes;0=Ra),pi=" ",Ei=!1;function fs(m,p){switch(m){case"keyup":return xl.indexOf(p.keyCode)!==-1;case"keydown":return p.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function hs(m){return m=m.detail,typeof m=="object"&&"data"in m?m.data:null}var Er=!1;function ms(m,p){switch(m){case"compositionend":return hs(p);case"keypress":return p.which!==32?null:(Ei=!0,pi);case"textInput":return m=p.data,m===pi&&Ei?null:m;default:return null}}function vs(m,p){if(Er)return m==="compositionend"||!xi&&fs(m,p)?(m=$r(),Da=si=zr=null,Er=!1,m):null;switch(m){case"paste":return null;case"keypress":if(!(p.ctrlKey||p.altKey||p.metaKey)||p.ctrlKey&&p.altKey){if(p.char&&1=p)return{node:O,offset:p-m};m=D}e:{for(;O;){if(O.nextSibling){O=O.nextSibling;break e}O=O.parentNode}O=void 0}O=xs(O)}}function qo(m,p){return m&&p?m===p?!0:m&&m.nodeType===3?!1:p&&p.nodeType===3?qo(m,p.parentNode):"contains"in m?m.contains(p):m.compareDocumentPosition?!!(m.compareDocumentPosition(p)&16):!1:!1}function Es(){for(var m=window,p=Mn();e(p,m.HTMLIFrameElement);){try{var O=typeof p.contentWindow.location.href=="string"}catch(D){O=!1}if(O)m=p.contentWindow;else break;p=Mn(m.document)}return p}function Mi(m){var p=m&&m.nodeName&&m.nodeName.toLowerCase();return p&&(p==="input"&&(m.type==="text"||m.type==="search"||m.type==="tel"||m.type==="url"||m.type==="password")||p==="textarea"||m.contentEditable==="true")}function Eo(m){var p=Es(),O=m.focusedElem,D=m.selectionRange;if(p!==O&&O&&O.ownerDocument&&qo(O.ownerDocument.documentElement,O)){if(D!==null&&Mi(O)){if(p=D.start,m=D.end,m===void 0&&(m=p),"selectionStart"in O)O.selectionStart=p,O.selectionEnd=Math.min(m,O.value.length);else if(m=(p=O.ownerDocument||document)&&p.defaultView||window,m.getSelection){m=m.getSelection();var R=O.textContent.length,N=Math.min(D.start,R);D=D.end===void 0?N:Math.min(D.end,R),!m.extend&&N>D&&(R=D,D=N,N=R),R=ps(O,N);var G=ps(O,D);R&&G&&(m.rangeCount!==1||m.anchorNode!==R.node||m.anchorOffset!==R.offset||m.focusNode!==G.node||m.focusOffset!==G.offset)&&(p=p.createRange(),p.setStart(R.node,R.offset),m.removeAllRanges(),N>D?(m.addRange(p),m.extend(G.node,G.offset)):(p.setEnd(G.node,G.offset),m.addRange(p)))}}for(p=[],m=O;m=m.parentNode;)m.nodeType===1&&p.push({element:m,left:m.scrollLeft,top:m.scrollTop});for(typeof O.focus=="function"&&O.focus(),O=0;O=document.documentMode,Vr=null,_i=null,ea=null,js=!1;function Ii(m,p,O){var D=O.window===O?O.document:O.nodeType===9?O:O.ownerDocument;js||Vr==null||Vr!==Mn(D)||(D=Vr,"selectionStart"in D&&Mi(D)?D={start:D.selectionStart,end:D.selectionEnd}:(D=(D.ownerDocument&&D.ownerDocument.defaultView||window).getSelection(),D={anchorNode:D.anchorNode,anchorOffset:D.anchorOffset,focusNode:D.focusNode,focusOffset:D.focusOffset}),ea&&Zo(ea,D)||(ea=D,D=oa(_i,"onSelect"),0Oo||(m.current=ua[Oo],ua[Oo]=null,Oo--)}function Gn(m,p){Oo++,ua[Oo]=m.current,m.current=p}var Pr={},yt=Mr(Pr),At=Mr(!1),oo=Pr;function Mo(m,p){var O=m.type.contextTypes;if(!O)return Pr;var D=m.stateNode;if(D&&D.__reactInternalMemoizedUnmaskedChildContext===p)return D.__reactInternalMemoizedMaskedChildContext;var R={},N;for(N in O)R[N]=p[N];return D&&(m=m.stateNode,m.__reactInternalMemoizedUnmaskedChildContext=p,m.__reactInternalMemoizedMaskedChildContext=R),R}function _t(m){return m=m.childContextTypes,m!=null}function ao(){Hn(At),Hn(yt)}function Is(m,p,O){if(yt.current!==Pr)throw Error(i(168));Gn(yt,p),Gn(At,O)}function Po(m,p,O){var D=m.stateNode;if(p=p.childContextTypes,typeof D.getChildContext!="function")return O;D=D.getChildContext();for(var R in D)if(!(R in p))throw Error(i(108,Ce(m)||"Unknown",R));return ee({},O,D)}function ka(m){return m=(m=m.stateNode)&&m.__reactInternalMemoizedMergedChildContext||Pr,oo=yt.current,Gn(yt,m),Gn(At,At.current),!0}function Tl(m,p,O){var D=m.stateNode;if(!D)throw Error(i(169));O?(m=Po(m,p,oo),D.__reactInternalMemoizedMergedChildContext=m,Hn(At),Hn(yt),Gn(yt,m)):Hn(At),Gn(At,O)}var cr=null,_o=!1,Wi=!1;function Ds(m){cr===null?cr=[m]:cr.push(m)}function wi(m){_o=!0,Ds(m)}function Gr(){if(!Wi&&cr!==null){Wi=!0;var m=0,p=Fn;try{var O=cr;for(Fn=1;m>=G,R-=G,ur=1<<32-Qt(p)+R|O<bn?(Pt=On,On=null):Pt=On.sibling;var $n=Ke(ve,On,Ee[bn],Ge);if($n===null){On===null&&(On=Pt);break}m&&On&&$n.alternate===null&&p(ve,On),fe=N($n,fe,bn),yn===null?vn=$n:yn.sibling=$n,yn=$n,On=Pt}if(bn===Ee.length)return O(ve,On),qn&&Io(ve,bn),vn;if(On===null){for(;bnbn?(Pt=On,On=null):Pt=On.sibling;var No=Ke(ve,On,$n.value,Ge);if(No===null){On===null&&(On=Pt);break}m&&On&&No.alternate===null&&p(ve,On),fe=N(No,fe,bn),yn===null?vn=No:yn.sibling=No,yn=No,On=Pt}if($n.done)return O(ve,On),qn&&Io(ve,bn),vn;if(On===null){for(;!$n.done;bn++,$n=Ee.next())$n=we(ve,$n.value,Ge),$n!==null&&(fe=N($n,fe,bn),yn===null?vn=$n:yn.sibling=$n,yn=$n);return qn&&Io(ve,bn),vn}for(On=D(ve,On);!$n.done;bn++,$n=Ee.next())$n=rn(On,ve,bn,$n.value,Ge),$n!==null&&(m&&$n.alternate!==null&&On.delete($n.key===null?bn:$n.key),fe=N($n,fe,bn),yn===null?vn=$n:yn.sibling=$n,yn=$n);return m&&On.forEach(function(vd){return p(ve,vd)}),qn&&Io(ve,bn),vn}function ft(ve,fe,Ee,Ge){if(typeof Ee=="object"&&Ee!==null&&Ee.type===W&&Ee.key===null&&(Ee=Ee.props.children),typeof Ee=="object"&&Ee!==null){switch(Ee.$$typeof){case b:e:{for(var vn=Ee.key,yn=fe;yn!==null;){if(yn.key===vn){if(vn=Ee.type,vn===W){if(yn.tag===7){O(ve,yn.sibling),fe=R(yn,Ee.props.children),fe.return=ve,ve=fe;break e}}else if(yn.elementType===vn||typeof vn=="object"&&vn!==null&&vn.$$typeof===Z&&oe(vn)===yn.type){O(ve,yn.sibling),fe=R(yn,Ee.props),fe.ref=ae(ve,yn,Ee),fe.return=ve,ve=fe;break e}O(ve,yn);break}else p(ve,yn);yn=yn.sibling}Ee.type===W?(fe=Ca(Ee.props.children,ve.mode,Ge,Ee.key),fe.return=ve,ve=fe):(Ge=Gs(Ee.type,Ee.key,Ee.props,null,ve.mode,Ge),Ge.ref=ae(ve,fe,Ee),Ge.return=ve,ve=Ge)}return G(ve);case L:e:{for(yn=Ee.key;fe!==null;){if(fe.key===yn)if(fe.tag===4&&fe.stateNode.containerInfo===Ee.containerInfo&&fe.stateNode.implementation===Ee.implementation){O(ve,fe.sibling),fe=R(fe,Ee.children||[]),fe.return=ve,ve=fe;break e}else{O(ve,fe);break}else p(ve,fe);fe=fe.sibling}fe=fc(Ee,ve.mode,Ge),fe.return=ve,ve=fe}return G(ve);case Z:return yn=Ee._init,ft(ve,fe,yn(Ee._payload),Ge)}if(ze(Ee))return dn(ve,fe,Ee,Ge);if(X(Ee))return mn(ve,fe,Ee,Ge);ce(ve,Ee)}return typeof Ee=="string"&&Ee!==""||typeof Ee=="number"?(Ee=""+Ee,fe!==null&&fe.tag===6?(O(ve,fe.sibling),fe=R(fe,Ee),fe.return=ve,ve=fe):(O(ve,fe),fe=dc(Ee,ve.mode,Ge),fe.return=ve,ve=fe),G(ve)):O(ve,fe)}return ft}var pe=le(!0),Ie=le(!1),ge=Mr(null),Ae=null,Le=null,He=null;function Ve(){He=Le=Ae=null}function tn(m){var p=ge.current;Hn(ge),m._currentValue=p}function fn(m,p,O){for(;m!==null;){var D=m.alternate;if((m.childLanes&p)!==p?(m.childLanes|=p,D!==null&&(D.childLanes|=p)):D!==null&&(D.childLanes&p)!==p&&(D.childLanes|=p),m===O)break;m=m.return}}function Te(m,p){Ae=m,He=Le=null,m=m.dependencies,m!==null&&m.firstContext!==null&&(m.lanes&p&&(Gt=!0),m.firstContext=null)}function Ye(m){var p=m._currentValue;if(He!==m)if(m={context:m,memoizedValue:p,next:null},Le===null){if(Ae===null)throw Error(i(308));Le=m,Ae.dependencies={lanes:0,firstContext:m}}else Le=Le.next=m;return p}var un=null;function Sn(m){un===null?un=[m]:un.push(m)}function jn(m,p,O,D){var R=p.interleaved;return R===null?(O.next=O,Sn(p)):(O.next=R.next,R.next=O),p.interleaved=O,Cn(m,D)}function Cn(m,p){m.lanes|=p;var O=m.alternate;for(O!==null&&(O.lanes|=p),O=m,m=m.return;m!==null;)m.childLanes|=p,O=m.alternate,O!==null&&(O.childLanes|=p),O=m,m=m.return;return O.tag===3?O.stateNode:null}var Fe=!1;function pn(m){m.updateQueue={baseState:m.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function hn(m,p){m=m.updateQueue,p.updateQueue===m&&(p.updateQueue={baseState:m.baseState,firstBaseUpdate:m.firstBaseUpdate,lastBaseUpdate:m.lastBaseUpdate,shared:m.shared,effects:m.effects})}function Tn(m,p){return{eventTime:m,lane:p,tag:0,payload:null,callback:null,next:null}}function Xn(m,p,O){var D=m.updateQueue;if(D===null)return null;if(D=D.shared,zn&2){var R=D.pending;return R===null?p.next=p:(p.next=R.next,R.next=p),D.pending=p,Cn(m,O)}return R=D.interleaved,R===null?(p.next=p,Sn(D)):(p.next=R.next,R.next=p),D.interleaved=p,Cn(m,O)}function Ot(m,p,O){if(p=p.updateQueue,p!==null&&(p=p.shared,(O&4194240)!==0)){var D=p.lanes;D&=m.pendingLanes,O|=D,p.lanes=O,ri(m,O)}}function Jn(m,p){var O=m.updateQueue,D=m.alternate;if(D!==null&&(D=D.updateQueue,O===D)){var R=null,N=null;if(O=O.firstBaseUpdate,O!==null){do{var G={eventTime:O.eventTime,lane:O.lane,tag:O.tag,payload:O.payload,callback:O.callback,next:null};N===null?R=N=G:N=N.next=G,O=O.next}while(O!==null);N===null?R=N=p:N=N.next=p}else R=N=p;O={baseState:D.baseState,firstBaseUpdate:R,lastBaseUpdate:N,shared:D.shared,effects:D.effects},m.updateQueue=O;return}m=O.lastBaseUpdate,m===null?O.firstBaseUpdate=p:m.next=p,O.lastBaseUpdate=p}function ut(m,p,O,D){var R=m.updateQueue;Fe=!1;var N=R.firstBaseUpdate,G=R.lastBaseUpdate,re=R.shared.pending;if(re!==null){R.shared.pending=null;var de=re,ye=de.next;de.next=null,G===null?N=ye:G.next=ye,G=de;var _e=m.alternate;_e!==null&&(_e=_e.updateQueue,re=_e.lastBaseUpdate,re!==G&&(re===null?_e.firstBaseUpdate=ye:re.next=ye,_e.lastBaseUpdate=de))}if(N!==null){var we=R.baseState;G=0,_e=ye=de=null,re=N;do{var Ke=re.lane,rn=re.eventTime;if((D&Ke)===Ke){_e!==null&&(_e=_e.next={eventTime:rn,lane:0,tag:re.tag,payload:re.payload,callback:re.callback,next:null});e:{var dn=m,mn=re;switch(Ke=p,rn=O,mn.tag){case 1:if(dn=mn.payload,typeof dn=="function"){we=dn.call(rn,we,Ke);break e}we=dn;break e;case 3:dn.flags=dn.flags&-65537|128;case 0:if(dn=mn.payload,Ke=typeof dn=="function"?dn.call(rn,we,Ke):dn,Ke==null)break e;we=ee({},we,Ke);break e;case 2:Fe=!0}}re.callback!==null&&re.lane!==0&&(m.flags|=64,Ke=R.effects,Ke===null?R.effects=[re]:Ke.push(re))}else rn={eventTime:rn,lane:Ke,tag:re.tag,payload:re.payload,callback:re.callback,next:null},_e===null?(ye=_e=rn,de=we):_e=_e.next=rn,G|=Ke;if(re=re.next,re===null){if(re=R.shared.pending,re===null)break;Ke=re,re=Ke.next,Ke.next=null,R.lastBaseUpdate=Ke,R.shared.pending=null}}while(!0);if(_e===null&&(de=we),R.baseState=de,R.firstBaseUpdate=ye,R.lastBaseUpdate=_e,p=R.shared.interleaved,p!==null){R=p;do G|=R.lane,R=R.next;while(R!==p)}else N===null&&(R.shared.lanes=0);xa|=G,m.lanes=G,m.memoizedState=we}}function fr(m,p,O){if(m=p.effects,p.effects=null,m!==null)for(p=0;pO?O:4,m(!0);var D=Ha.transition;Ha.transition={};try{m(!1),p()}finally{Fn=O,Ha.transition=D}}function Wc(){return Nt().memoizedState}function Wu(m,p,O){var D=Lo(m);if(O={lane:D,action:O,hasEagerState:!1,eagerState:null,next:null},wc(m))zc(p,O);else if(O=jn(m,p,O,D),O!==null){var R=wt();Ar(O,m,D,R),$c(O,p,D)}}function wu(m,p,O){var D=Lo(m),R={lane:D,action:O,hasEagerState:!1,eagerState:null,next:null};if(wc(m))zc(p,R);else{var N=m.alternate;if(m.lanes===0&&(N===null||N.lanes===0)&&(N=p.lastRenderedReducer,N!==null))try{var G=p.lastRenderedState,re=N(G,O);if(R.hasEagerState=!0,R.eagerState=re,kt(re,G)){var de=p.interleaved;de===null?(R.next=R,Sn(p)):(R.next=de.next,de.next=R),p.interleaved=R;return}}catch(ye){}finally{}O=jn(m,p,R,D),O!==null&&(R=wt(),Ar(O,m,D,R),$c(O,p,D))}}function wc(m){var p=m.alternate;return m===et||p!==null&&p===et}function zc(m,p){va=Ga=!0;var O=m.pending;O===null?p.next=p:(p.next=O.next,O.next=p),m.pending=p}function $c(m,p,O){if(O&4194240){var D=p.lanes;D&=m.pendingLanes,O|=D,p.lanes=O,ri(m,O)}}var Rs={readContext:Ye,useCallback:pt,useContext:pt,useEffect:pt,useImperativeHandle:pt,useInsertionEffect:pt,useLayoutEffect:pt,useMemo:pt,useReducer:pt,useRef:pt,useState:pt,useDebugValue:pt,useDeferredValue:pt,useTransition:pt,useMutableSource:pt,useSyncExternalStore:pt,useId:pt,unstable_isNewReconciler:!1},zu={readContext:Ye,useCallback:function(p,O){return rr().memoizedState=[p,O===void 0?null:O],p},useContext:Ye,useEffect:Ac,useImperativeHandle:function(p,O,D){return D=D!=null?D.concat([p]):null,As(4194308,4,Bc.bind(null,O,p),D)},useLayoutEffect:function(p,O){return As(4194308,4,p,O)},useInsertionEffect:function(p,O){return As(4,2,p,O)},useMemo:function(p,O){var D=rr();return O=O===void 0?null:O,p=p(),D.memoizedState=[p,O],p},useReducer:function(p,O,D){var R=rr();return O=D!==void 0?D(O):O,R.memoizedState=R.baseState=O,p={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:p,lastRenderedState:O},R.queue=p,p=p.dispatch=Wu.bind(null,et,p),[R.memoizedState,p]},useRef:function(p){var O=rr();return p={current:p},O.memoizedState=p},useState:Sc,useDebugValue:Nl,useDeferredValue:function(p){return rr().memoizedState=p},useTransition:function(){var p=Sc(!1),O=p[0];return p=Nu.bind(null,p[1]),rr().memoizedState=p,[O,p]},useMutableSource:function(){},useSyncExternalStore:function(p,O,D){var R=et,N=rr();if(qn){if(D===void 0)throw Error(i(407));D=D()}else{if(D=O(),Mt===null)throw Error(i(349));lo&30||Mc(R,O,D)}N.memoizedState=D;var G={value:D,getSnapshot:O};return N.queue=G,Ac(_c.bind(null,R,G,p),[p]),R.flags|=2048,$i(9,Pc.bind(null,R,G,D,O),void 0,null),D},useId:function(){var p=rr(),O=Mt.identifierPrefix;if(qn){var D=Ir,R=ur;D=(R&~(1<<32-Qt(R)-1)).toString(32)+D,O=":"+O+"R"+D,D=tr++,0<\/script>",m=m.removeChild(m.firstChild)):typeof D.is=="string"?m=G.createElement(O,{is:D.is}):(m=G.createElement(O),O==="select"&&(G=m,D.multiple?G.multiple=!0:D.size&&(G.size=D.size))):m=G.createElementNS(m,O),m[nr]=p,m[ro]=D,lu(m,p,!1,!1),p.stateNode=m;e:{switch(G=Wn(O,D),O){case"dialog":Yn("cancel",m),Yn("close",m),R=D;break;case"iframe":case"object":case"embed":Yn("load",m),R=D;break;case"video":case"audio":for(R=0;Rei&&(p.flags|=128,D=!0,ki(N,!1),p.lanes=4194304)}else{if(!D)if(m=bo(G),m!==null){if(p.flags|=128,D=!0,O=m.updateQueue,O!==null&&(p.updateQueue=O,p.flags|=4),ki(N,!0),N.tail===null&&N.tailMode==="hidden"&&!G.alternate&&!qn)return Tt(p),null}else 2*Bn()-N.renderingStartTime>ei&&O!==1073741824&&(p.flags|=128,D=!0,ki(N,!1),p.lanes=4194304);N.isBackwards?(G.sibling=p.child,p.child=G):(O=N.last,O!==null?O.sibling=G:p.child=G,N.last=G)}return N.tail!==null?(p=N.tail,N.rendering=p,N.tail=p.sibling,N.renderingStartTime=Bn(),p.sibling=null,O=Vn.current,Gn(Vn,D?O&1|2:O&1),p):(Tt(p),null);case 22:case 23:return lc(),D=p.memoizedState!==null,m!==null&&m.memoizedState!==null!==D&&(p.flags|=8192),D&&p.mode&1?or&1073741824&&(Tt(p),p.subtreeFlags&6&&(p.flags|=8192)):Tt(p),null;case 24:return null;case 25:return null}throw Error(i(156,p.tag))}function Yu(m,p){switch(Ss(p),p.tag){case 1:return _t(p.type)&&ao(),m=p.flags,m&65536?(p.flags=m&-65537|128,p):null;case 3:return Ut(),Hn(At),Hn(yt),ma(),m=p.flags,m&65536&&!(m&128)?(p.flags=m&-65537|128,p):null;case 5:return So(p),null;case 13:if(Hn(Vn),m=p.memoizedState,m!==null&&m.dehydrated!==null){if(p.alternate===null)throw Error(i(340));B()}return m=p.flags,m&65536?(p.flags=m&-65537|128,p):null;case 19:return Hn(Vn),null;case 4:return Ut(),null;case 10:return tn(p.type._context),null;case 22:case 23:return lc(),null;case 24:return null;default:return null}}var Us=!1,Rt=!1,Ju=typeof WeakSet=="function"?WeakSet:Set,ln=null;function Za(m,p){var O=m.ref;if(O!==null)if(typeof O=="function")try{O(null)}catch(D){lt(m,p,D)}else O.current=null}function Jl(m,p,O){try{O()}catch(D){lt(m,p,D)}}var du=!1;function Qu(m,p){if(Ti=Wr,m=Es(),Mi(m)){if("selectionStart"in m)var O={start:m.selectionStart,end:m.selectionEnd};else e:{O=(O=m.ownerDocument)&&O.defaultView||window;var D=O.getSelection&&O.getSelection();if(D&&D.rangeCount!==0){O=D.anchorNode;var R=D.anchorOffset,N=D.focusNode;D=D.focusOffset;try{O.nodeType,N.nodeType}catch(Ge){O=null;break e}var G=0,re=-1,de=-1,ye=0,_e=0,we=m,Ke=null;n:for(;;){for(var rn;we!==O||R!==0&&we.nodeType!==3||(re=G+R),we!==N||D!==0&&we.nodeType!==3||(de=G+D),we.nodeType===3&&(G+=we.nodeValue.length),(rn=we.firstChild)!==null;)Ke=we,we=rn;for(;;){if(we===m)break n;if(Ke===O&&++ye===R&&(re=G),Ke===N&&++_e===D&&(de=G),(rn=we.nextSibling)!==null)break;we=Ke,Ke=we.parentNode}we=rn}O=re===-1||de===-1?null:{start:re,end:de}}else O=null}O=O||{start:0,end:0}}else O=null;for(Ri={focusedElem:m,selectionRange:O},Wr=!1,ln=p;ln!==null;)if(p=ln,m=p.child,(p.subtreeFlags&1028)!==0&&m!==null)m.return=p,ln=m;else for(;ln!==null;){p=ln;try{var dn=p.alternate;if(p.flags&1024)switch(p.tag){case 0:case 11:case 15:break;case 1:if(dn!==null){var mn=dn.memoizedProps,ft=dn.memoizedState,ve=p.stateNode,fe=ve.getSnapshotBeforeUpdate(p.elementType===p.type?mn:Dr(p.type,mn),ft);ve.__reactInternalSnapshotBeforeUpdate=fe}break;case 3:var Ee=p.stateNode.containerInfo;Ee.nodeType===1?Ee.textContent="":Ee.nodeType===9&&Ee.documentElement&&Ee.removeChild(Ee.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(i(163))}}catch(Ge){lt(p,p.return,Ge)}if(m=p.sibling,m!==null){m.return=p.return,ln=m;break}ln=p.return}return dn=du,du=!1,dn}function Fi(m,p,O){var D=p.updateQueue;if(D=D!==null?D.lastEffect:null,D!==null){var R=D=D.next;do{if((R.tag&m)===m){var N=R.destroy;R.destroy=void 0,N!==void 0&&Jl(p,O,N)}R=R.next}while(R!==D)}}function Ns(m,p){if(p=p.updateQueue,p=p!==null?p.lastEffect:null,p!==null){var O=p=p.next;do{if((O.tag&m)===m){var D=O.create;O.destroy=D()}O=O.next}while(O!==p)}}function Ql(m){var p=m.ref;if(p!==null){var O=m.stateNode;switch(m.tag){case 5:m=O;break;default:m=O}typeof p=="function"?p(m):p.current=m}}function fu(m){var p=m.alternate;p!==null&&(m.alternate=null,fu(p)),m.child=null,m.deletions=null,m.sibling=null,m.tag===5&&(p=m.stateNode,p!==null&&(delete p[nr],delete p[ro],delete p[Ui],delete p[Ni],delete p[Al])),m.stateNode=null,m.return=null,m.dependencies=null,m.memoizedProps=null,m.memoizedState=null,m.pendingProps=null,m.stateNode=null,m.updateQueue=null}function hu(m){return m.tag===5||m.tag===3||m.tag===4}function mu(m){e:for(;;){for(;m.sibling===null;){if(m.return===null||hu(m.return))return null;m=m.return}for(m.sibling.return=m.return,m=m.sibling;m.tag!==5&&m.tag!==6&&m.tag!==18;){if(m.flags&2||m.child===null||m.tag===4)continue e;m.child.return=m,m=m.child}if(!(m.flags&2))return m.stateNode}}function Zl(m,p,O){var D=m.tag;if(D===5||D===6)m=m.stateNode,p?O.nodeType===8?O.parentNode.insertBefore(m,p):O.insertBefore(m,p):(O.nodeType===8?(p=O.parentNode,p.insertBefore(m,O)):(p=O,p.appendChild(m)),O=O._reactRootContainer,O!=null||p.onclick!==null||(p.onclick=za));else if(D!==4&&(m=m.child,m!==null))for(Zl(m,p,O),m=m.sibling;m!==null;)Zl(m,p,O),m=m.sibling}function ql(m,p,O){var D=m.tag;if(D===5||D===6)m=m.stateNode,p?O.insertBefore(m,p):O.appendChild(m);else if(D!==4&&(m=m.child,m!==null))for(ql(m,p,O),m=m.sibling;m!==null;)ql(m,p,O),m=m.sibling}var It=null,Sr=!1;function To(m,p,O){for(O=O.child;O!==null;)vu(m,p,O),O=O.sibling}function vu(m,p,O){if(Jt&&typeof Jt.onCommitFiberUnmount=="function")try{Jt.onCommitFiberUnmount(Kr,O)}catch(re){}switch(O.tag){case 5:Rt||Za(O,p);case 6:var D=It,R=Sr;It=null,To(m,p,O),It=D,Sr=R,It!==null&&(Sr?(m=It,O=O.stateNode,m.nodeType===8?m.parentNode.removeChild(O):m.removeChild(O)):It.removeChild(O.stateNode));break;case 18:It!==null&&(Sr?(m=It,O=O.stateNode,m.nodeType===8?sa(m.parentNode,O):m.nodeType===1&&sa(m,O),Vo(m)):sa(It,O.stateNode));break;case 4:D=It,R=Sr,It=O.stateNode.containerInfo,Sr=!0,To(m,p,O),It=D,Sr=R;break;case 0:case 11:case 14:case 15:if(!Rt&&(D=O.updateQueue,D!==null&&(D=D.lastEffect,D!==null))){R=D=D.next;do{var N=R,G=N.destroy;N=N.tag,G!==void 0&&(N&2||N&4)&&Jl(O,p,G),R=R.next}while(R!==D)}To(m,p,O);break;case 1:if(!Rt&&(Za(O,p),D=O.stateNode,typeof D.componentWillUnmount=="function"))try{D.props=O.memoizedProps,D.state=O.memoizedState,D.componentWillUnmount()}catch(re){lt(O,p,re)}To(m,p,O);break;case 21:To(m,p,O);break;case 22:O.mode&1?(Rt=(D=Rt)||O.memoizedState!==null,To(m,p,O),Rt=D):To(m,p,O);break;default:To(m,p,O)}}function gu(m){var p=m.updateQueue;if(p!==null){m.updateQueue=null;var O=m.stateNode;O===null&&(O=m.stateNode=new Ju),p.forEach(function(D){var R=id.bind(null,m,D);O.has(D)||(O.add(D),D.then(R,R))})}}function br(m,p){var O=p.deletions;if(O!==null)for(var D=0;DR&&(R=G),D&=~N}if(D=R,D=Bn()-D,D=(120>D?120:480>D?480:1080>D?1080:1920>D?1920:3e3>D?3e3:4320>D?4320:1960*qu(D/1960))-D,10m?16:m,Bo===null)var D=!1;else{if(m=Bo,Bo=null,ks=0,zn&6)throw Error(i(331));var R=zn;for(zn|=4,ln=m.current;ln!==null;){var N=ln,G=N.child;if(ln.flags&16){var re=N.deletions;if(re!==null){for(var de=0;deBn()-tc?Ea(m,0):nc|=O),Yt(m,p)}function Su(m,p){p===0&&(m.mode&1?(p=Oa,Oa<<=1,!(Oa&130023424)&&(Oa=4194304)):p=1);var O=wt();m=Cn(m,p),m!==null&&(zo(m,p,O),Yt(m,O))}function ad(m){var p=m.memoizedState,O=0;p!==null&&(O=p.retryLane),Su(m,O)}function id(m,p){var O=0;switch(m.tag){case 13:var D=m.stateNode,R=m.memoizedState;R!==null&&(O=R.retryLane);break;case 19:D=m.stateNode;break;default:throw Error(i(314))}D!==null&&D.delete(p),Su(m,O)}var bu;bu=function(p,O,D){if(p!==null)if(p.memoizedProps!==O.pendingProps||At.current)Gt=!0;else{if(!(p.lanes&D)&&!(O.flags&128))return Gt=!1,Gu(p,O,D);Gt=!!(p.flags&131072)}else Gt=!1,qn&&O.flags&1048576&&Rl(O,fa,O.index);switch(O.lanes=0,O.tag){case 2:var R=O.type;Ks(p,O),p=O.pendingProps;var N=Mo(O,yt.current);Te(O,D),N=ga(null,O,R,p,N,D);var G=Ja();return O.flags|=1,typeof N=="object"&&N!==null&&typeof N.render=="function"&&N.$$typeof===void 0?(O.tag=1,O.memoizedState=null,O.updateQueue=null,_t(R)?(G=!0,ka(O)):G=!1,O.memoizedState=N.state!==null&&N.state!==void 0?N.state:null,pn(O),N.updater=Bs,O.stateNode=N,N._reactInternals=O,wl(O,R,p,D),O=Fl(null,O,R,!0,G,D)):(O.tag=0,qn&&G&&ha(O),Wt(null,O,N,D),O=O.child),O;case 16:R=O.elementType;e:{switch(Ks(p,O),p=O.pendingProps,N=R._init,R=N(R._payload),O.type=R,N=O.tag=ld(R),p=Dr(R,p),N){case 0:O=kl(null,O,R,p,D);break e;case 1:O=tu(null,O,R,p,D);break e;case 11:O=Qc(null,O,R,p,D);break e;case 14:O=Zc(null,O,R,Dr(R.type,p),D);break e}throw Error(i(306,R,""))}return O;case 0:return R=O.type,N=O.pendingProps,N=O.elementType===R?N:Dr(R,N),kl(p,O,R,N,D);case 1:return R=O.type,N=O.pendingProps,N=O.elementType===R?N:Dr(R,N),tu(p,O,R,N,D);case 3:e:{if(ru(O),p===null)throw Error(i(387));R=O.pendingProps,G=O.memoizedState,N=G.element,hn(p,O),ut(O,R,null,D);var re=O.memoizedState;if(R=re.element,G.isDehydrated)if(G={element:R,isDehydrated:!1,cache:re.cache,pendingSuspenseBoundaries:re.pendingSuspenseBoundaries,transitions:re.transitions},O.updateQueue.baseState=G,O.memoizedState=G,O.flags&256){N=Qa(Error(i(423)),O),O=ou(p,O,R,D,N);break e}else if(R!==N){N=Qa(Error(i(424)),O),O=ou(p,O,R,D,N);break e}else for(Ht=er(O.stateNode.containerInfo.firstChild),Vt=O,qn=!0,dr=null,D=Ie(O,null,R,D),O.child=D;D;)D.flags=D.flags&-3|4096,D=D.sibling;else{if(B(),R===N){O=co(p,O,D);break e}Wt(p,O,R,D)}O=O.child}return O;case 5:return Do(O),p===null&&I(O),R=O.type,N=O.pendingProps,G=p!==null?p.memoizedProps:null,re=N.children,ia(R,N)?re=null:G!==null&&ia(R,G)&&(O.flags|=32),nu(p,O),Wt(p,O,re,D),O.child;case 6:return p===null&&I(O),null;case 13:return au(p,O,D);case 4:return Xr(O,O.stateNode.containerInfo),R=O.pendingProps,p===null?O.child=pe(O,null,R,D):Wt(p,O,R,D),O.child;case 11:return R=O.type,N=O.pendingProps,N=O.elementType===R?N:Dr(R,N),Qc(p,O,R,N,D);case 7:return Wt(p,O,O.pendingProps,D),O.child;case 8:return Wt(p,O,O.pendingProps.children,D),O.child;case 12:return Wt(p,O,O.pendingProps.children,D),O.child;case 10:e:{if(R=O.type._context,N=O.pendingProps,G=O.memoizedProps,re=N.value,Gn(ge,R._currentValue),R._currentValue=re,G!==null)if(kt(G.value,re)){if(G.children===N.children&&!At.current){O=co(p,O,D);break e}}else for(G=O.child,G!==null&&(G.return=O);G!==null;){var de=G.dependencies;if(de!==null){re=G.child;for(var ye=de.firstContext;ye!==null;){if(ye.context===R){if(G.tag===1){ye=Tn(-1,D&-D),ye.tag=2;var _e=G.updateQueue;if(_e!==null){_e=_e.shared;var we=_e.pending;we===null?ye.next=ye:(ye.next=we.next,we.next=ye),_e.pending=ye}}G.lanes|=D,ye=G.alternate,ye!==null&&(ye.lanes|=D),fn(G.return,D,O),de.lanes|=D;break}ye=ye.next}}else if(G.tag===10)re=G.type===O.type?null:G.child;else if(G.tag===18){if(re=G.return,re===null)throw Error(i(341));re.lanes|=D,de=re.alternate,de!==null&&(de.lanes|=D),fn(re,D,O),re=G.sibling}else re=G.child;if(re!==null)re.return=G;else for(re=G;re!==null;){if(re===O){re=null;break}if(G=re.sibling,G!==null){G.return=re.return,re=G;break}re=re.return}G=re}Wt(p,O,N.children,D),O=O.child}return O;case 9:return N=O.type,R=O.pendingProps.children,Te(O,D),N=Ye(N),R=R(N),O.flags|=1,Wt(p,O,R,D),O.child;case 14:return R=O.type,N=Dr(R,O.pendingProps),N=Dr(R.type,N),Zc(p,O,R,N,D);case 15:return qc(p,O,O.type,O.pendingProps,D);case 17:return R=O.type,N=O.pendingProps,N=O.elementType===R?N:Dr(R,N),Ks(p,O),O.tag=1,_t(R)?(p=!0,ka(O)):p=!1,Te(O,D),Fc(O,R,N),wl(O,R,N,D),Fl(null,O,R,!0,p,D);case 19:return su(p,O,D);case 22:return eu(p,O,D)}throw Error(i(156,O.tag))};function Au(m,p){return an(m,p)}function sd(m,p,O,D){this.tag=m,this.key=O,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=p,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=D,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function vr(m,p,O,D){return new sd(m,p,O,D)}function uc(m){return m=m.prototype,!(!m||!m.isReactComponent)}function ld(m){if(typeof m=="function")return uc(m)?1:0;if(m!=null){if(m=m.$$typeof,m===k)return 11;if(m===q)return 14}return 2}function Uo(m,p){var O=m.alternate;return O===null?(O=vr(m.tag,p,m.key,m.mode),O.elementType=m.elementType,O.type=m.type,O.stateNode=m.stateNode,O.alternate=m,m.alternate=O):(O.pendingProps=p,O.type=m.type,O.flags=0,O.subtreeFlags=0,O.deletions=null),O.flags=m.flags&14680064,O.childLanes=m.childLanes,O.lanes=m.lanes,O.child=m.child,O.memoizedProps=m.memoizedProps,O.memoizedState=m.memoizedState,O.updateQueue=m.updateQueue,p=m.dependencies,O.dependencies=p===null?null:{lanes:p.lanes,firstContext:p.firstContext},O.sibling=m.sibling,O.index=m.index,O.ref=m.ref,O}function Gs(m,p,O,D,R,N){var G=2;if(D=m,typeof m=="function")uc(m)&&(G=1);else if(typeof m=="string")G=5;else e:switch(m){case W:return Ca(O.children,R,N,p);case $:G=8,R|=8;break;case z:return m=vr(12,O,p,R|2),m.elementType=z,m.lanes=N,m;case H:return m=vr(13,O,p,R),m.elementType=H,m.lanes=N,m;case Y:return m=vr(19,O,p,R),m.elementType=Y,m.lanes=N,m;case Q:return Xs(O,R,N,p);default:if(typeof m=="object"&&m!==null)switch(m.$$typeof){case w:G=10;break e;case V:G=9;break e;case k:G=11;break e;case q:G=14;break e;case Z:G=16,D=null;break e}throw Error(i(130,m==null?m:typeof m=="undefined"?"undefined":o(m),""))}return p=vr(G,O,p,R),p.elementType=m,p.type=D,p.lanes=N,p}function Ca(m,p,O,D){return m=vr(7,m,D,p),m.lanes=O,m}function Xs(m,p,O,D){return m=vr(22,m,D,p),m.elementType=Q,m.lanes=O,m.stateNode={isHidden:!1},m}function dc(m,p,O){return m=vr(6,m,null,p),m.lanes=O,m}function fc(m,p,O){return p=vr(4,m.children!==null?m.children:[],m.key,p),p.lanes=O,p.stateNode={containerInfo:m.containerInfo,pendingChildren:null,implementation:m.implementation},p}function cd(m,p,O,D,R){this.tag=p,this.containerInfo=m,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=ti(0),this.expirationTimes=ti(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ti(0),this.identifierPrefix=D,this.onRecoverableError=R,this.mutableSourceEagerHydrationData=null}function hc(m,p,O,D,R,N,G,re,de){return m=new cd(m,p,O,re,de),p===1?(p=1,N===!0&&(p|=8)):p=0,N=vr(3,null,null,p),m.current=N,N.stateNode=m,N.memoizedState={element:D,isDehydrated:O,cache:null,transitions:null,pendingSuspenseBoundaries:null},pn(N),m}function ud(m,p,O){var D=3p}return!1}function C(m,p,O,D,R,W,G){this.acceptsBooleans=p===2||p===3||p===4,this.attributeName=D,this.attributeNamespace=R,this.mustUseProperty=O,this.propertyName=m,this.type=p,this.sanitizeURL=W,this.removeEmptyString=G}var M={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(m){M[m]=new C(m,0,!1,m,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(m){var p=m[0];M[p]=new C(p,1,!1,m[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(m){M[m]=new C(m,2,!1,m.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(m){M[m]=new C(m,2,!1,m,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(m){M[m]=new C(m,3,!1,m.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(m){M[m]=new C(m,3,!0,m,null,!1,!1)}),["capture","download"].forEach(function(m){M[m]=new C(m,4,!1,m,null,!1,!1)}),["cols","rows","size","span"].forEach(function(m){M[m]=new C(m,6,!1,m,null,!1,!1)}),["rowSpan","start"].forEach(function(m){M[m]=new C(m,5,!1,m.toLowerCase(),null,!1,!1)});var P=/[\-:]([a-z])/g;function _(m){return m[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(m){var p=m.replace(P,_);M[p]=new C(p,1,!1,m,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(m){var p=m.replace(P,_);M[p]=new C(p,1,!1,m,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(m){var p=m.replace(P,_);M[p]=new C(p,1,!1,m,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(m){M[m]=new C(m,1,!1,m.toLowerCase(),null,!1,!1)}),M.xlinkHref=new C("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(m){M[m]=new C(m,1,!1,m.toLowerCase(),null,!0,!0)});function S(m,p,O,D){var R=M.hasOwnProperty(p)?M[p]:null;(R!==null?R.type!==0:D||!(2re||R[G]!==W[re]){var ue="\n"+R[G].replace(" at new "," at ");return m.displayName&&ue.includes("")&&(ue=ue.replace("",m.displayName)),ue}while(1<=G&&0<=re);break}}}finally{fe=!1,Error.prepareStackTrace=O}return(m=m?m.displayName||m.name:"")?ie(m):""}function be(m){switch(m.tag){case 5:return ie(m.type);case 16:return ie("Lazy");case 13:return ie("Suspense");case 19:return ie("SuspenseList");case 0:case 2:case 15:return m=he(m.type,!1),m;case 11:return m=he(m.type.render,!1),m;case 1:return m=he(m.type,!0),m;default:return""}}function je(m){if(m==null)return null;if(typeof m=="function")return m.displayName||m.name||null;if(typeof m=="string")return m;switch(m){case N:return"Fragment";case L:return"Portal";case z:return"Profiler";case $:return"StrictMode";case H:return"Suspense";case Y:return"SuspenseList"}if(typeof m=="object")switch(m.$$typeof){case V:return(m.displayName||"Context")+".Consumer";case w:return(m._context.displayName||"Context")+".Provider";case k:var p=m.render;return m=m.displayName,m||(m=p.displayName||p.name||"",m=m!==""?"ForwardRef("+m+")":"ForwardRef"),m;case q:return p=m.displayName||null,p!==null?p:je(m.type)||"Memo";case Z:p=m._payload,m=m._init;try{return je(m(p))}catch(O){}}return null}function Ce(m){var p=m.type;switch(m.tag){case 24:return"Cache";case 9:return(p.displayName||"Context")+".Consumer";case 10:return(p._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return m=p.render,m=m.displayName||m.name||"",p.displayName||(m!==""?"ForwardRef("+m+")":"ForwardRef");case 7:return"Fragment";case 5:return p;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return je(p);case 8:return p===$?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof p=="function")return p.displayName||p.name||null;if(typeof p=="string")return p}return null}function Ne(m){switch(typeof m=="undefined"?"undefined":o(m)){case"boolean":case"number":case"string":case"undefined":return m;case"object":return m;default:return""}}function sn(m){var p=m.type;return(m=m.nodeName)&&m.toLowerCase()==="input"&&(p==="checkbox"||p==="radio")}function en(m){var p=sn(m)?"checked":"value",O=Object.getOwnPropertyDescriptor(m.constructor.prototype,p),D=""+m[p];if(!m.hasOwnProperty(p)&&typeof O!="undefined"&&typeof O.get=="function"&&typeof O.set=="function"){var R=O.get,W=O.set;return Object.defineProperty(m,p,{configurable:!0,get:function(){return R.call(this)},set:function(re){D=""+re,W.call(this,re)}}),Object.defineProperty(m,p,{enumerable:O.enumerable}),{getValue:function(){return D},setValue:function(re){D=""+re},stopTracking:function(){m._valueTracker=null,delete m[p]}}}}function De(m){m._valueTracker||(m._valueTracker=en(m))}function Qe(m){if(!m)return!1;var p=m._valueTracker;if(!p)return!0;var O=p.getValue(),D="";return m&&(D=sn(m)?m.checked?"true":"false":m.value),m=D,m!==O?(p.setValue(m),!0):!1}function Mn(m){if(m=m||(typeof document!="undefined"?document:void 0),typeof m=="undefined")return null;try{return m.activeElement||m.body}catch(p){return m.body}}function Pn(m,p){var O=p.checked;return ee({},p,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:O!=null?O:m._wrapperState.initialChecked})}function gn(m,p){var O=p.defaultValue==null?"":p.defaultValue,D=p.checked!=null?p.checked:p.defaultChecked;O=Ne(p.value!=null?p.value:O),m._wrapperState={initialChecked:D,initialValue:O,controlled:p.type==="checkbox"||p.type==="radio"?p.checked!=null:p.value!=null}}function An(m,p){p=p.checked,p!=null&&S(m,"checked",p,!1)}function xn(m,p){An(m,p);var O=Ne(p.value),D=p.type;if(O!=null)D==="number"?(O===0&&m.value===""||m.value!=O)&&(m.value=""+O):m.value!==""+O&&(m.value=""+O);else if(D==="submit"||D==="reset"){m.removeAttribute("value");return}p.hasOwnProperty("value")?Se(m,p.type,O):p.hasOwnProperty("defaultValue")&&Se(m,p.type,Ne(p.defaultValue)),p.checked==null&&p.defaultChecked!=null&&(m.defaultChecked=!!p.defaultChecked)}function cn(m,p,O){if(p.hasOwnProperty("value")||p.hasOwnProperty("defaultValue")){var D=p.type;if(!(D!=="submit"&&D!=="reset"||p.value!==void 0&&p.value!==null))return;p=""+m._wrapperState.initialValue,O||p===m.value||(m.value=p),m.defaultValue=p}O=m.name,O!==""&&(m.name=""),m.defaultChecked=!!m._wrapperState.initialChecked,O!==""&&(m.name=O)}function Se(m,p,O){(p!=="number"||Mn(m.ownerDocument)!==m)&&(O==null?m.defaultValue=""+m._wrapperState.initialValue:m.defaultValue!==""+O&&(m.defaultValue=""+O))}var ze=Array.isArray;function Oe(m,p,O,D){if(m=m.options,p){p={};for(var R=0;R"+p.valueOf().toString()+"",p=Rn.firstChild;m.firstChild;)m.removeChild(m.firstChild);for(;p.firstChild;)m.appendChild(p.firstChild)}});function on(m,p){if(p){var O=m.firstChild;if(O&&O===m.lastChild&&O.nodeType===3){O.nodeValue=p;return}}m.textContent=p}var Pe={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Re=["Webkit","ms","Moz","O"];Object.keys(Pe).forEach(function(m){Re.forEach(function(p){p=p+m.charAt(0).toUpperCase()+m.substring(1),Pe[p]=Pe[m]})});function ke(m,p,O){return p==null||typeof p=="boolean"||p===""?"":O||typeof p!="number"||p===0||Pe.hasOwnProperty(m)&&Pe[m]?(""+p).trim():p+"px"}function nn(m,p){m=m.style;for(var O in p)if(p.hasOwnProperty(O)){var D=O.indexOf("--")===0,R=ke(O,p[O],D);O==="float"&&(O="cssFloat"),D?m.setProperty(O,R):m[O]=R}}var _n=ee({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function In(m,p){if(p){if(_n[m]&&(p.children!=null||p.dangerouslySetInnerHTML!=null))throw Error(i(137,m));if(p.dangerouslySetInnerHTML!=null){if(p.children!=null)throw Error(i(60));if(typeof p.dangerouslySetInnerHTML!="object"||!("__html"in p.dangerouslySetInnerHTML))throw Error(i(61))}if(p.style!=null&&typeof p.style!="object")throw Error(i(62))}}function Wn(m,p){if(m.indexOf("-")===-1)return typeof p.is=="string";switch(m){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Kn=null;function wn(m){return m=m.target||m.srcElement||window,m.correspondingUseElement&&(m=m.correspondingUseElement),m.nodeType===3?m.parentNode:m}var at=null,jt=null,Bt=null;function gr(m){if(m=la(m)){if(typeof at!="function")throw Error(i(280));var p=m.stateNode;p&&(p=ca(p),at(m.stateNode,m.type,p))}}function Tr(m){jt?Bt?Bt.push(m):Bt=[m]:jt=m}function Rr(){if(jt){var m=jt,p=Bt;if(Bt=jt=null,gr(m),p)for(m=0;m>>=0,m===0?32:31-(Yi(m)/Ji|0)|0}var Ur=64,Oa=4194304;function wo(m){switch(m&-m){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return m&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return m&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return m}}function Ma(m,p){var O=m.pendingLanes;if(O===0)return 0;var D=0,R=m.suspendedLanes,W=m.pingedLanes,G=O&268435455;if(G!==0){var re=G&~R;re!==0?D=wo(re):(W&=G,W!==0&&(D=wo(W)))}else G=O&~R,G!==0?D=wo(G):W!==0&&(D=wo(W));if(D===0)return 0;if(p!==0&&p!==D&&!(p&R)&&(R=D&-D,W=p&-p,R>=W||R===16&&(W&4194240)!==0))return p;if(D&4&&(D|=O&16),p=m.entangledLanes,p!==0)for(m=m.entanglements,p&=D;0O;O++)p.push(m);return p}function zo(m,p,O){m.pendingLanes|=p,p!==536870912&&(m.suspendedLanes=0,m.pingedLanes=0),m=m.eventTimes,p=31-Qt(p),m[p]=O}function ol(m,p){var O=m.pendingLanes&~p;m.pendingLanes=p,m.suspendedLanes=0,m.pingedLanes=0,m.expiredLanes&=p,m.mutableReadLanes&=p,m.entangledLanes&=p,p=m.entanglements;var D=m.eventTimes;for(m=m.expirationTimes;0=Ra),pi=" ",Ei=!1;function fs(m,p){switch(m){case"keyup":return xl.indexOf(p.keyCode)!==-1;case"keydown":return p.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function hs(m){return m=m.detail,typeof m=="object"&&"data"in m?m.data:null}var Er=!1;function ms(m,p){switch(m){case"compositionend":return hs(p);case"keypress":return p.which!==32?null:(Ei=!0,pi);case"textInput":return m=p.data,m===pi&&Ei?null:m;default:return null}}function vs(m,p){if(Er)return m==="compositionend"||!xi&&fs(m,p)?(m=$r(),Da=si=zr=null,Er=!1,m):null;switch(m){case"paste":return null;case"keypress":if(!(p.ctrlKey||p.altKey||p.metaKey)||p.ctrlKey&&p.altKey){if(p.char&&1=p)return{node:O,offset:p-m};m=D}e:{for(;O;){if(O.nextSibling){O=O.nextSibling;break e}O=O.parentNode}O=void 0}O=xs(O)}}function qo(m,p){return m&&p?m===p?!0:m&&m.nodeType===3?!1:p&&p.nodeType===3?qo(m,p.parentNode):"contains"in m?m.contains(p):m.compareDocumentPosition?!!(m.compareDocumentPosition(p)&16):!1:!1}function Es(){for(var m=window,p=Mn();e(p,m.HTMLIFrameElement);){try{var O=typeof p.contentWindow.location.href=="string"}catch(D){O=!1}if(O)m=p.contentWindow;else break;p=Mn(m.document)}return p}function Mi(m){var p=m&&m.nodeName&&m.nodeName.toLowerCase();return p&&(p==="input"&&(m.type==="text"||m.type==="search"||m.type==="tel"||m.type==="url"||m.type==="password")||p==="textarea"||m.contentEditable==="true")}function Eo(m){var p=Es(),O=m.focusedElem,D=m.selectionRange;if(p!==O&&O&&O.ownerDocument&&qo(O.ownerDocument.documentElement,O)){if(D!==null&&Mi(O)){if(p=D.start,m=D.end,m===void 0&&(m=p),"selectionStart"in O)O.selectionStart=p,O.selectionEnd=Math.min(m,O.value.length);else if(m=(p=O.ownerDocument||document)&&p.defaultView||window,m.getSelection){m=m.getSelection();var R=O.textContent.length,W=Math.min(D.start,R);D=D.end===void 0?W:Math.min(D.end,R),!m.extend&&W>D&&(R=D,D=W,W=R),R=ps(O,W);var G=ps(O,D);R&&G&&(m.rangeCount!==1||m.anchorNode!==R.node||m.anchorOffset!==R.offset||m.focusNode!==G.node||m.focusOffset!==G.offset)&&(p=p.createRange(),p.setStart(R.node,R.offset),m.removeAllRanges(),W>D?(m.addRange(p),m.extend(G.node,G.offset)):(p.setEnd(G.node,G.offset),m.addRange(p)))}}for(p=[],m=O;m=m.parentNode;)m.nodeType===1&&p.push({element:m,left:m.scrollLeft,top:m.scrollTop});for(typeof O.focus=="function"&&O.focus(),O=0;O=document.documentMode,Vr=null,_i=null,ea=null,js=!1;function Ii(m,p,O){var D=O.window===O?O.document:O.nodeType===9?O:O.ownerDocument;js||Vr==null||Vr!==Mn(D)||(D=Vr,"selectionStart"in D&&Mi(D)?D={start:D.selectionStart,end:D.selectionEnd}:(D=(D.ownerDocument&&D.ownerDocument.defaultView||window).getSelection(),D={anchorNode:D.anchorNode,anchorOffset:D.anchorOffset,focusNode:D.focusNode,focusOffset:D.focusOffset}),ea&&Zo(ea,D)||(ea=D,D=oa(_i,"onSelect"),0Oo||(m.current=ua[Oo],ua[Oo]=null,Oo--)}function Gn(m,p){Oo++,ua[Oo]=m.current,m.current=p}var Pr={},yt=Mr(Pr),At=Mr(!1),oo=Pr;function Mo(m,p){var O=m.type.contextTypes;if(!O)return Pr;var D=m.stateNode;if(D&&D.__reactInternalMemoizedUnmaskedChildContext===p)return D.__reactInternalMemoizedMaskedChildContext;var R={},W;for(W in O)R[W]=p[W];return D&&(m=m.stateNode,m.__reactInternalMemoizedUnmaskedChildContext=p,m.__reactInternalMemoizedMaskedChildContext=R),R}function _t(m){return m=m.childContextTypes,m!=null}function ao(){Hn(At),Hn(yt)}function Is(m,p,O){if(yt.current!==Pr)throw Error(i(168));Gn(yt,p),Gn(At,O)}function Po(m,p,O){var D=m.stateNode;if(p=p.childContextTypes,typeof D.getChildContext!="function")return O;D=D.getChildContext();for(var R in D)if(!(R in p))throw Error(i(108,Ce(m)||"Unknown",R));return ee({},O,D)}function ka(m){return m=(m=m.stateNode)&&m.__reactInternalMemoizedMergedChildContext||Pr,oo=yt.current,Gn(yt,m),Gn(At,At.current),!0}function Tl(m,p,O){var D=m.stateNode;if(!D)throw Error(i(169));O?(m=Po(m,p,oo),D.__reactInternalMemoizedMergedChildContext=m,Hn(At),Hn(yt),Gn(yt,m)):Hn(At),Gn(At,O)}var cr=null,_o=!1,Wi=!1;function Ds(m){cr===null?cr=[m]:cr.push(m)}function wi(m){_o=!0,Ds(m)}function Gr(){if(!Wi&&cr!==null){Wi=!0;var m=0,p=Fn;try{var O=cr;for(Fn=1;m>=G,R-=G,ur=1<<32-Qt(p)+R|O<bn?(Pt=On,On=null):Pt=On.sibling;var $n=Ke(ve,On,Ee[bn],Ge);if($n===null){On===null&&(On=Pt);break}m&&On&&$n.alternate===null&&p(ve,On),de=W($n,de,bn),yn===null?vn=$n:yn.sibling=$n,yn=$n,On=Pt}if(bn===Ee.length)return O(ve,On),qn&&Io(ve,bn),vn;if(On===null){for(;bnbn?(Pt=On,On=null):Pt=On.sibling;var No=Ke(ve,On,$n.value,Ge);if(No===null){On===null&&(On=Pt);break}m&&On&&No.alternate===null&&p(ve,On),de=W(No,de,bn),yn===null?vn=No:yn.sibling=No,yn=No,On=Pt}if($n.done)return O(ve,On),qn&&Io(ve,bn),vn;if(On===null){for(;!$n.done;bn++,$n=Ee.next())$n=we(ve,$n.value,Ge),$n!==null&&(de=W($n,de,bn),yn===null?vn=$n:yn.sibling=$n,yn=$n);return qn&&Io(ve,bn),vn}for(On=D(ve,On);!$n.done;bn++,$n=Ee.next())$n=rn(On,ve,bn,$n.value,Ge),$n!==null&&(m&&$n.alternate!==null&&On.delete($n.key===null?bn:$n.key),de=W($n,de,bn),yn===null?vn=$n:yn.sibling=$n,yn=$n);return m&&On.forEach(function(vd){return p(ve,vd)}),qn&&Io(ve,bn),vn}function ft(ve,de,Ee,Ge){if(typeof Ee=="object"&&Ee!==null&&Ee.type===N&&Ee.key===null&&(Ee=Ee.props.children),typeof Ee=="object"&&Ee!==null){switch(Ee.$$typeof){case b:e:{for(var vn=Ee.key,yn=de;yn!==null;){if(yn.key===vn){if(vn=Ee.type,vn===N){if(yn.tag===7){O(ve,yn.sibling),de=R(yn,Ee.props.children),de.return=ve,ve=de;break e}}else if(yn.elementType===vn||typeof vn=="object"&&vn!==null&&vn.$$typeof===Z&&oe(vn)===yn.type){O(ve,yn.sibling),de=R(yn,Ee.props),de.ref=ae(ve,yn,Ee),de.return=ve,ve=de;break e}O(ve,yn);break}else p(ve,yn);yn=yn.sibling}Ee.type===N?(de=Ca(Ee.props.children,ve.mode,Ge,Ee.key),de.return=ve,ve=de):(Ge=Gs(Ee.type,Ee.key,Ee.props,null,ve.mode,Ge),Ge.ref=ae(ve,de,Ee),Ge.return=ve,ve=Ge)}return G(ve);case L:e:{for(yn=Ee.key;de!==null;){if(de.key===yn)if(de.tag===4&&de.stateNode.containerInfo===Ee.containerInfo&&de.stateNode.implementation===Ee.implementation){O(ve,de.sibling),de=R(de,Ee.children||[]),de.return=ve,ve=de;break e}else{O(ve,de);break}else p(ve,de);de=de.sibling}de=fc(Ee,ve.mode,Ge),de.return=ve,ve=de}return G(ve);case Z:return yn=Ee._init,ft(ve,de,yn(Ee._payload),Ge)}if(ze(Ee))return dn(ve,de,Ee,Ge);if(X(Ee))return mn(ve,de,Ee,Ge);ce(ve,Ee)}return typeof Ee=="string"&&Ee!==""||typeof Ee=="number"?(Ee=""+Ee,de!==null&&de.tag===6?(O(ve,de.sibling),de=R(de,Ee),de.return=ve,ve=de):(O(ve,de),de=dc(Ee,ve.mode,Ge),de.return=ve,ve=de),G(ve)):O(ve,de)}return ft}var pe=le(!0),Ie=le(!1),ge=Mr(null),Ae=null,Le=null,He=null;function Ve(){He=Le=Ae=null}function tn(m){var p=ge.current;Hn(ge),m._currentValue=p}function fn(m,p,O){for(;m!==null;){var D=m.alternate;if((m.childLanes&p)!==p?(m.childLanes|=p,D!==null&&(D.childLanes|=p)):D!==null&&(D.childLanes&p)!==p&&(D.childLanes|=p),m===O)break;m=m.return}}function Te(m,p){Ae=m,He=Le=null,m=m.dependencies,m!==null&&m.firstContext!==null&&(m.lanes&p&&(Gt=!0),m.firstContext=null)}function Ye(m){var p=m._currentValue;if(He!==m)if(m={context:m,memoizedValue:p,next:null},Le===null){if(Ae===null)throw Error(i(308));Le=m,Ae.dependencies={lanes:0,firstContext:m}}else Le=Le.next=m;return p}var un=null;function Sn(m){un===null?un=[m]:un.push(m)}function jn(m,p,O,D){var R=p.interleaved;return R===null?(O.next=O,Sn(p)):(O.next=R.next,R.next=O),p.interleaved=O,Cn(m,D)}function Cn(m,p){m.lanes|=p;var O=m.alternate;for(O!==null&&(O.lanes|=p),O=m,m=m.return;m!==null;)m.childLanes|=p,O=m.alternate,O!==null&&(O.childLanes|=p),O=m,m=m.return;return O.tag===3?O.stateNode:null}var Fe=!1;function pn(m){m.updateQueue={baseState:m.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function hn(m,p){m=m.updateQueue,p.updateQueue===m&&(p.updateQueue={baseState:m.baseState,firstBaseUpdate:m.firstBaseUpdate,lastBaseUpdate:m.lastBaseUpdate,shared:m.shared,effects:m.effects})}function Tn(m,p){return{eventTime:m,lane:p,tag:0,payload:null,callback:null,next:null}}function Xn(m,p,O){var D=m.updateQueue;if(D===null)return null;if(D=D.shared,zn&2){var R=D.pending;return R===null?p.next=p:(p.next=R.next,R.next=p),D.pending=p,Cn(m,O)}return R=D.interleaved,R===null?(p.next=p,Sn(D)):(p.next=R.next,R.next=p),D.interleaved=p,Cn(m,O)}function Ot(m,p,O){if(p=p.updateQueue,p!==null&&(p=p.shared,(O&4194240)!==0)){var D=p.lanes;D&=m.pendingLanes,O|=D,p.lanes=O,ri(m,O)}}function Jn(m,p){var O=m.updateQueue,D=m.alternate;if(D!==null&&(D=D.updateQueue,O===D)){var R=null,W=null;if(O=O.firstBaseUpdate,O!==null){do{var G={eventTime:O.eventTime,lane:O.lane,tag:O.tag,payload:O.payload,callback:O.callback,next:null};W===null?R=W=G:W=W.next=G,O=O.next}while(O!==null);W===null?R=W=p:W=W.next=p}else R=W=p;O={baseState:D.baseState,firstBaseUpdate:R,lastBaseUpdate:W,shared:D.shared,effects:D.effects},m.updateQueue=O;return}m=O.lastBaseUpdate,m===null?O.firstBaseUpdate=p:m.next=p,O.lastBaseUpdate=p}function ut(m,p,O,D){var R=m.updateQueue;Fe=!1;var W=R.firstBaseUpdate,G=R.lastBaseUpdate,re=R.shared.pending;if(re!==null){R.shared.pending=null;var ue=re,ye=ue.next;ue.next=null,G===null?W=ye:G.next=ye,G=ue;var _e=m.alternate;_e!==null&&(_e=_e.updateQueue,re=_e.lastBaseUpdate,re!==G&&(re===null?_e.firstBaseUpdate=ye:re.next=ye,_e.lastBaseUpdate=ue))}if(W!==null){var we=R.baseState;G=0,_e=ye=ue=null,re=W;do{var Ke=re.lane,rn=re.eventTime;if((D&Ke)===Ke){_e!==null&&(_e=_e.next={eventTime:rn,lane:0,tag:re.tag,payload:re.payload,callback:re.callback,next:null});e:{var dn=m,mn=re;switch(Ke=p,rn=O,mn.tag){case 1:if(dn=mn.payload,typeof dn=="function"){we=dn.call(rn,we,Ke);break e}we=dn;break e;case 3:dn.flags=dn.flags&-65537|128;case 0:if(dn=mn.payload,Ke=typeof dn=="function"?dn.call(rn,we,Ke):dn,Ke==null)break e;we=ee({},we,Ke);break e;case 2:Fe=!0}}re.callback!==null&&re.lane!==0&&(m.flags|=64,Ke=R.effects,Ke===null?R.effects=[re]:Ke.push(re))}else rn={eventTime:rn,lane:Ke,tag:re.tag,payload:re.payload,callback:re.callback,next:null},_e===null?(ye=_e=rn,ue=we):_e=_e.next=rn,G|=Ke;if(re=re.next,re===null){if(re=R.shared.pending,re===null)break;Ke=re,re=Ke.next,Ke.next=null,R.lastBaseUpdate=Ke,R.shared.pending=null}}while(!0);if(_e===null&&(ue=we),R.baseState=ue,R.firstBaseUpdate=ye,R.lastBaseUpdate=_e,p=R.shared.interleaved,p!==null){R=p;do G|=R.lane,R=R.next;while(R!==p)}else W===null&&(R.shared.lanes=0);xa|=G,m.lanes=G,m.memoizedState=we}}function fr(m,p,O){if(m=p.effects,p.effects=null,m!==null)for(p=0;pO?O:4,m(!0);var D=Ha.transition;Ha.transition={};try{m(!1),p()}finally{Fn=O,Ha.transition=D}}function Wc(){return Nt().memoizedState}function Wu(m,p,O){var D=Lo(m);if(O={lane:D,action:O,hasEagerState:!1,eagerState:null,next:null},wc(m))zc(p,O);else if(O=jn(m,p,O,D),O!==null){var R=wt();Ar(O,m,D,R),$c(O,p,D)}}function wu(m,p,O){var D=Lo(m),R={lane:D,action:O,hasEagerState:!1,eagerState:null,next:null};if(wc(m))zc(p,R);else{var W=m.alternate;if(m.lanes===0&&(W===null||W.lanes===0)&&(W=p.lastRenderedReducer,W!==null))try{var G=p.lastRenderedState,re=W(G,O);if(R.hasEagerState=!0,R.eagerState=re,kt(re,G)){var ue=p.interleaved;ue===null?(R.next=R,Sn(p)):(R.next=ue.next,ue.next=R),p.interleaved=R;return}}catch(ye){}finally{}O=jn(m,p,R,D),O!==null&&(R=wt(),Ar(O,m,D,R),$c(O,p,D))}}function wc(m){var p=m.alternate;return m===et||p!==null&&p===et}function zc(m,p){va=Ga=!0;var O=m.pending;O===null?p.next=p:(p.next=O.next,O.next=p),m.pending=p}function $c(m,p,O){if(O&4194240){var D=p.lanes;D&=m.pendingLanes,O|=D,p.lanes=O,ri(m,O)}}var Rs={readContext:Ye,useCallback:pt,useContext:pt,useEffect:pt,useImperativeHandle:pt,useInsertionEffect:pt,useLayoutEffect:pt,useMemo:pt,useReducer:pt,useRef:pt,useState:pt,useDebugValue:pt,useDeferredValue:pt,useTransition:pt,useMutableSource:pt,useSyncExternalStore:pt,useId:pt,unstable_isNewReconciler:!1},zu={readContext:Ye,useCallback:function(p,O){return rr().memoizedState=[p,O===void 0?null:O],p},useContext:Ye,useEffect:Ac,useImperativeHandle:function(p,O,D){return D=D!=null?D.concat([p]):null,As(4194308,4,Bc.bind(null,O,p),D)},useLayoutEffect:function(p,O){return As(4194308,4,p,O)},useInsertionEffect:function(p,O){return As(4,2,p,O)},useMemo:function(p,O){var D=rr();return O=O===void 0?null:O,p=p(),D.memoizedState=[p,O],p},useReducer:function(p,O,D){var R=rr();return O=D!==void 0?D(O):O,R.memoizedState=R.baseState=O,p={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:p,lastRenderedState:O},R.queue=p,p=p.dispatch=Wu.bind(null,et,p),[R.memoizedState,p]},useRef:function(p){var O=rr();return p={current:p},O.memoizedState=p},useState:Sc,useDebugValue:Nl,useDeferredValue:function(p){return rr().memoizedState=p},useTransition:function(){var p=Sc(!1),O=p[0];return p=Nu.bind(null,p[1]),rr().memoizedState=p,[O,p]},useMutableSource:function(){},useSyncExternalStore:function(p,O,D){var R=et,W=rr();if(qn){if(D===void 0)throw Error(i(407));D=D()}else{if(D=O(),Mt===null)throw Error(i(349));lo&30||Mc(R,O,D)}W.memoizedState=D;var G={value:D,getSnapshot:O};return W.queue=G,Ac(_c.bind(null,R,G,p),[p]),R.flags|=2048,$i(9,Pc.bind(null,R,G,D,O),void 0,null),D},useId:function(){var p=rr(),O=Mt.identifierPrefix;if(qn){var D=Ir,R=ur;D=(R&~(1<<32-Qt(R)-1)).toString(32)+D,O=":"+O+"R"+D,D=tr++,0<\/script>",m=m.removeChild(m.firstChild)):typeof D.is=="string"?m=G.createElement(O,{is:D.is}):(m=G.createElement(O),O==="select"&&(G=m,D.multiple?G.multiple=!0:D.size&&(G.size=D.size))):m=G.createElementNS(m,O),m[nr]=p,m[ro]=D,lu(m,p,!1,!1),p.stateNode=m;e:{switch(G=Wn(O,D),O){case"dialog":Yn("cancel",m),Yn("close",m),R=D;break;case"iframe":case"object":case"embed":Yn("load",m),R=D;break;case"video":case"audio":for(R=0;Rei&&(p.flags|=128,D=!0,ki(W,!1),p.lanes=4194304)}else{if(!D)if(m=bo(G),m!==null){if(p.flags|=128,D=!0,O=m.updateQueue,O!==null&&(p.updateQueue=O,p.flags|=4),ki(W,!0),W.tail===null&&W.tailMode==="hidden"&&!G.alternate&&!qn)return Tt(p),null}else 2*Bn()-W.renderingStartTime>ei&&O!==1073741824&&(p.flags|=128,D=!0,ki(W,!1),p.lanes=4194304);W.isBackwards?(G.sibling=p.child,p.child=G):(O=W.last,O!==null?O.sibling=G:p.child=G,W.last=G)}return W.tail!==null?(p=W.tail,W.rendering=p,W.tail=p.sibling,W.renderingStartTime=Bn(),p.sibling=null,O=Vn.current,Gn(Vn,D?O&1|2:O&1),p):(Tt(p),null);case 22:case 23:return lc(),D=p.memoizedState!==null,m!==null&&m.memoizedState!==null!==D&&(p.flags|=8192),D&&p.mode&1?or&1073741824&&(Tt(p),p.subtreeFlags&6&&(p.flags|=8192)):Tt(p),null;case 24:return null;case 25:return null}throw Error(i(156,p.tag))}function Yu(m,p){switch(Ss(p),p.tag){case 1:return _t(p.type)&&ao(),m=p.flags,m&65536?(p.flags=m&-65537|128,p):null;case 3:return Ut(),Hn(At),Hn(yt),ma(),m=p.flags,m&65536&&!(m&128)?(p.flags=m&-65537|128,p):null;case 5:return So(p),null;case 13:if(Hn(Vn),m=p.memoizedState,m!==null&&m.dehydrated!==null){if(p.alternate===null)throw Error(i(340));B()}return m=p.flags,m&65536?(p.flags=m&-65537|128,p):null;case 19:return Hn(Vn),null;case 4:return Ut(),null;case 10:return tn(p.type._context),null;case 22:case 23:return lc(),null;case 24:return null;default:return null}}var Us=!1,Rt=!1,Ju=typeof WeakSet=="function"?WeakSet:Set,ln=null;function Za(m,p){var O=m.ref;if(O!==null)if(typeof O=="function")try{O(null)}catch(D){lt(m,p,D)}else O.current=null}function Jl(m,p,O){try{O()}catch(D){lt(m,p,D)}}var du=!1;function Qu(m,p){if(Ti=Wr,m=Es(),Mi(m)){if("selectionStart"in m)var O={start:m.selectionStart,end:m.selectionEnd};else e:{O=(O=m.ownerDocument)&&O.defaultView||window;var D=O.getSelection&&O.getSelection();if(D&&D.rangeCount!==0){O=D.anchorNode;var R=D.anchorOffset,W=D.focusNode;D=D.focusOffset;try{O.nodeType,W.nodeType}catch(Ge){O=null;break e}var G=0,re=-1,ue=-1,ye=0,_e=0,we=m,Ke=null;n:for(;;){for(var rn;we!==O||R!==0&&we.nodeType!==3||(re=G+R),we!==W||D!==0&&we.nodeType!==3||(ue=G+D),we.nodeType===3&&(G+=we.nodeValue.length),(rn=we.firstChild)!==null;)Ke=we,we=rn;for(;;){if(we===m)break n;if(Ke===O&&++ye===R&&(re=G),Ke===W&&++_e===D&&(ue=G),(rn=we.nextSibling)!==null)break;we=Ke,Ke=we.parentNode}we=rn}O=re===-1||ue===-1?null:{start:re,end:ue}}else O=null}O=O||{start:0,end:0}}else O=null;for(Ri={focusedElem:m,selectionRange:O},Wr=!1,ln=p;ln!==null;)if(p=ln,m=p.child,(p.subtreeFlags&1028)!==0&&m!==null)m.return=p,ln=m;else for(;ln!==null;){p=ln;try{var dn=p.alternate;if(p.flags&1024)switch(p.tag){case 0:case 11:case 15:break;case 1:if(dn!==null){var mn=dn.memoizedProps,ft=dn.memoizedState,ve=p.stateNode,de=ve.getSnapshotBeforeUpdate(p.elementType===p.type?mn:Dr(p.type,mn),ft);ve.__reactInternalSnapshotBeforeUpdate=de}break;case 3:var Ee=p.stateNode.containerInfo;Ee.nodeType===1?Ee.textContent="":Ee.nodeType===9&&Ee.documentElement&&Ee.removeChild(Ee.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(i(163))}}catch(Ge){lt(p,p.return,Ge)}if(m=p.sibling,m!==null){m.return=p.return,ln=m;break}ln=p.return}return dn=du,du=!1,dn}function Fi(m,p,O){var D=p.updateQueue;if(D=D!==null?D.lastEffect:null,D!==null){var R=D=D.next;do{if((R.tag&m)===m){var W=R.destroy;R.destroy=void 0,W!==void 0&&Jl(p,O,W)}R=R.next}while(R!==D)}}function Ns(m,p){if(p=p.updateQueue,p=p!==null?p.lastEffect:null,p!==null){var O=p=p.next;do{if((O.tag&m)===m){var D=O.create;O.destroy=D()}O=O.next}while(O!==p)}}function Ql(m){var p=m.ref;if(p!==null){var O=m.stateNode;switch(m.tag){case 5:m=O;break;default:m=O}typeof p=="function"?p(m):p.current=m}}function fu(m){var p=m.alternate;p!==null&&(m.alternate=null,fu(p)),m.child=null,m.deletions=null,m.sibling=null,m.tag===5&&(p=m.stateNode,p!==null&&(delete p[nr],delete p[ro],delete p[Ui],delete p[Ni],delete p[Al])),m.stateNode=null,m.return=null,m.dependencies=null,m.memoizedProps=null,m.memoizedState=null,m.pendingProps=null,m.stateNode=null,m.updateQueue=null}function hu(m){return m.tag===5||m.tag===3||m.tag===4}function mu(m){e:for(;;){for(;m.sibling===null;){if(m.return===null||hu(m.return))return null;m=m.return}for(m.sibling.return=m.return,m=m.sibling;m.tag!==5&&m.tag!==6&&m.tag!==18;){if(m.flags&2||m.child===null||m.tag===4)continue e;m.child.return=m,m=m.child}if(!(m.flags&2))return m.stateNode}}function Zl(m,p,O){var D=m.tag;if(D===5||D===6)m=m.stateNode,p?O.nodeType===8?O.parentNode.insertBefore(m,p):O.insertBefore(m,p):(O.nodeType===8?(p=O.parentNode,p.insertBefore(m,O)):(p=O,p.appendChild(m)),O=O._reactRootContainer,O!=null||p.onclick!==null||(p.onclick=za));else if(D!==4&&(m=m.child,m!==null))for(Zl(m,p,O),m=m.sibling;m!==null;)Zl(m,p,O),m=m.sibling}function ql(m,p,O){var D=m.tag;if(D===5||D===6)m=m.stateNode,p?O.insertBefore(m,p):O.appendChild(m);else if(D!==4&&(m=m.child,m!==null))for(ql(m,p,O),m=m.sibling;m!==null;)ql(m,p,O),m=m.sibling}var It=null,Sr=!1;function To(m,p,O){for(O=O.child;O!==null;)vu(m,p,O),O=O.sibling}function vu(m,p,O){if(Jt&&typeof Jt.onCommitFiberUnmount=="function")try{Jt.onCommitFiberUnmount(Kr,O)}catch(re){}switch(O.tag){case 5:Rt||Za(O,p);case 6:var D=It,R=Sr;It=null,To(m,p,O),It=D,Sr=R,It!==null&&(Sr?(m=It,O=O.stateNode,m.nodeType===8?m.parentNode.removeChild(O):m.removeChild(O)):It.removeChild(O.stateNode));break;case 18:It!==null&&(Sr?(m=It,O=O.stateNode,m.nodeType===8?sa(m.parentNode,O):m.nodeType===1&&sa(m,O),Vo(m)):sa(It,O.stateNode));break;case 4:D=It,R=Sr,It=O.stateNode.containerInfo,Sr=!0,To(m,p,O),It=D,Sr=R;break;case 0:case 11:case 14:case 15:if(!Rt&&(D=O.updateQueue,D!==null&&(D=D.lastEffect,D!==null))){R=D=D.next;do{var W=R,G=W.destroy;W=W.tag,G!==void 0&&(W&2||W&4)&&Jl(O,p,G),R=R.next}while(R!==D)}To(m,p,O);break;case 1:if(!Rt&&(Za(O,p),D=O.stateNode,typeof D.componentWillUnmount=="function"))try{D.props=O.memoizedProps,D.state=O.memoizedState,D.componentWillUnmount()}catch(re){lt(O,p,re)}To(m,p,O);break;case 21:To(m,p,O);break;case 22:O.mode&1?(Rt=(D=Rt)||O.memoizedState!==null,To(m,p,O),Rt=D):To(m,p,O);break;default:To(m,p,O)}}function gu(m){var p=m.updateQueue;if(p!==null){m.updateQueue=null;var O=m.stateNode;O===null&&(O=m.stateNode=new Ju),p.forEach(function(D){var R=id.bind(null,m,D);O.has(D)||(O.add(D),D.then(R,R))})}}function br(m,p){var O=p.deletions;if(O!==null)for(var D=0;DR&&(R=G),D&=~W}if(D=R,D=Bn()-D,D=(120>D?120:480>D?480:1080>D?1080:1920>D?1920:3e3>D?3e3:4320>D?4320:1960*qu(D/1960))-D,10m?16:m,Bo===null)var D=!1;else{if(m=Bo,Bo=null,ks=0,zn&6)throw Error(i(331));var R=zn;for(zn|=4,ln=m.current;ln!==null;){var W=ln,G=W.child;if(ln.flags&16){var re=W.deletions;if(re!==null){for(var ue=0;ueBn()-tc?Ea(m,0):nc|=O),Yt(m,p)}function Su(m,p){p===0&&(m.mode&1?(p=Oa,Oa<<=1,!(Oa&130023424)&&(Oa=4194304)):p=1);var O=wt();m=Cn(m,p),m!==null&&(zo(m,p,O),Yt(m,O))}function ad(m){var p=m.memoizedState,O=0;p!==null&&(O=p.retryLane),Su(m,O)}function id(m,p){var O=0;switch(m.tag){case 13:var D=m.stateNode,R=m.memoizedState;R!==null&&(O=R.retryLane);break;case 19:D=m.stateNode;break;default:throw Error(i(314))}D!==null&&D.delete(p),Su(m,O)}var bu;bu=function(p,O,D){if(p!==null)if(p.memoizedProps!==O.pendingProps||At.current)Gt=!0;else{if(!(p.lanes&D)&&!(O.flags&128))return Gt=!1,Gu(p,O,D);Gt=!!(p.flags&131072)}else Gt=!1,qn&&O.flags&1048576&&Rl(O,fa,O.index);switch(O.lanes=0,O.tag){case 2:var R=O.type;Ks(p,O),p=O.pendingProps;var W=Mo(O,yt.current);Te(O,D),W=ga(null,O,R,p,W,D);var G=Ja();return O.flags|=1,typeof W=="object"&&W!==null&&typeof W.render=="function"&&W.$$typeof===void 0?(O.tag=1,O.memoizedState=null,O.updateQueue=null,_t(R)?(G=!0,ka(O)):G=!1,O.memoizedState=W.state!==null&&W.state!==void 0?W.state:null,pn(O),W.updater=Bs,O.stateNode=W,W._reactInternals=O,wl(O,R,p,D),O=Fl(null,O,R,!0,G,D)):(O.tag=0,qn&&G&&ha(O),Wt(null,O,W,D),O=O.child),O;case 16:R=O.elementType;e:{switch(Ks(p,O),p=O.pendingProps,W=R._init,R=W(R._payload),O.type=R,W=O.tag=ld(R),p=Dr(R,p),W){case 0:O=kl(null,O,R,p,D);break e;case 1:O=tu(null,O,R,p,D);break e;case 11:O=Qc(null,O,R,p,D);break e;case 14:O=Zc(null,O,R,Dr(R.type,p),D);break e}throw Error(i(306,R,""))}return O;case 0:return R=O.type,W=O.pendingProps,W=O.elementType===R?W:Dr(R,W),kl(p,O,R,W,D);case 1:return R=O.type,W=O.pendingProps,W=O.elementType===R?W:Dr(R,W),tu(p,O,R,W,D);case 3:e:{if(ru(O),p===null)throw Error(i(387));R=O.pendingProps,G=O.memoizedState,W=G.element,hn(p,O),ut(O,R,null,D);var re=O.memoizedState;if(R=re.element,G.isDehydrated)if(G={element:R,isDehydrated:!1,cache:re.cache,pendingSuspenseBoundaries:re.pendingSuspenseBoundaries,transitions:re.transitions},O.updateQueue.baseState=G,O.memoizedState=G,O.flags&256){W=Qa(Error(i(423)),O),O=ou(p,O,R,D,W);break e}else if(R!==W){W=Qa(Error(i(424)),O),O=ou(p,O,R,D,W);break e}else for(Ht=er(O.stateNode.containerInfo.firstChild),Vt=O,qn=!0,dr=null,D=Ie(O,null,R,D),O.child=D;D;)D.flags=D.flags&-3|4096,D=D.sibling;else{if(B(),R===W){O=co(p,O,D);break e}Wt(p,O,R,D)}O=O.child}return O;case 5:return Do(O),p===null&&I(O),R=O.type,W=O.pendingProps,G=p!==null?p.memoizedProps:null,re=W.children,ia(R,W)?re=null:G!==null&&ia(R,G)&&(O.flags|=32),nu(p,O),Wt(p,O,re,D),O.child;case 6:return p===null&&I(O),null;case 13:return au(p,O,D);case 4:return Xr(O,O.stateNode.containerInfo),R=O.pendingProps,p===null?O.child=pe(O,null,R,D):Wt(p,O,R,D),O.child;case 11:return R=O.type,W=O.pendingProps,W=O.elementType===R?W:Dr(R,W),Qc(p,O,R,W,D);case 7:return Wt(p,O,O.pendingProps,D),O.child;case 8:return Wt(p,O,O.pendingProps.children,D),O.child;case 12:return Wt(p,O,O.pendingProps.children,D),O.child;case 10:e:{if(R=O.type._context,W=O.pendingProps,G=O.memoizedProps,re=W.value,Gn(ge,R._currentValue),R._currentValue=re,G!==null)if(kt(G.value,re)){if(G.children===W.children&&!At.current){O=co(p,O,D);break e}}else for(G=O.child,G!==null&&(G.return=O);G!==null;){var ue=G.dependencies;if(ue!==null){re=G.child;for(var ye=ue.firstContext;ye!==null;){if(ye.context===R){if(G.tag===1){ye=Tn(-1,D&-D),ye.tag=2;var _e=G.updateQueue;if(_e!==null){_e=_e.shared;var we=_e.pending;we===null?ye.next=ye:(ye.next=we.next,we.next=ye),_e.pending=ye}}G.lanes|=D,ye=G.alternate,ye!==null&&(ye.lanes|=D),fn(G.return,D,O),ue.lanes|=D;break}ye=ye.next}}else if(G.tag===10)re=G.type===O.type?null:G.child;else if(G.tag===18){if(re=G.return,re===null)throw Error(i(341));re.lanes|=D,ue=re.alternate,ue!==null&&(ue.lanes|=D),fn(re,D,O),re=G.sibling}else re=G.child;if(re!==null)re.return=G;else for(re=G;re!==null;){if(re===O){re=null;break}if(G=re.sibling,G!==null){G.return=re.return,re=G;break}re=re.return}G=re}Wt(p,O,W.children,D),O=O.child}return O;case 9:return W=O.type,R=O.pendingProps.children,Te(O,D),W=Ye(W),R=R(W),O.flags|=1,Wt(p,O,R,D),O.child;case 14:return R=O.type,W=Dr(R,O.pendingProps),W=Dr(R.type,W),Zc(p,O,R,W,D);case 15:return qc(p,O,O.type,O.pendingProps,D);case 17:return R=O.type,W=O.pendingProps,W=O.elementType===R?W:Dr(R,W),Ks(p,O),O.tag=1,_t(R)?(p=!0,ka(O)):p=!1,Te(O,D),Fc(O,R,W),wl(O,R,W,D),Fl(null,O,R,!0,p,D);case 19:return su(p,O,D);case 22:return eu(p,O,D)}throw Error(i(156,O.tag))};function Au(m,p){return an(m,p)}function sd(m,p,O,D){this.tag=m,this.key=O,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=p,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=D,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function vr(m,p,O,D){return new sd(m,p,O,D)}function uc(m){return m=m.prototype,!(!m||!m.isReactComponent)}function ld(m){if(typeof m=="function")return uc(m)?1:0;if(m!=null){if(m=m.$$typeof,m===k)return 11;if(m===q)return 14}return 2}function Uo(m,p){var O=m.alternate;return O===null?(O=vr(m.tag,p,m.key,m.mode),O.elementType=m.elementType,O.type=m.type,O.stateNode=m.stateNode,O.alternate=m,m.alternate=O):(O.pendingProps=p,O.type=m.type,O.flags=0,O.subtreeFlags=0,O.deletions=null),O.flags=m.flags&14680064,O.childLanes=m.childLanes,O.lanes=m.lanes,O.child=m.child,O.memoizedProps=m.memoizedProps,O.memoizedState=m.memoizedState,O.updateQueue=m.updateQueue,p=m.dependencies,O.dependencies=p===null?null:{lanes:p.lanes,firstContext:p.firstContext},O.sibling=m.sibling,O.index=m.index,O.ref=m.ref,O}function Gs(m,p,O,D,R,W){var G=2;if(D=m,typeof m=="function")uc(m)&&(G=1);else if(typeof m=="string")G=5;else e:switch(m){case N:return Ca(O.children,R,W,p);case $:G=8,R|=8;break;case z:return m=vr(12,O,p,R|2),m.elementType=z,m.lanes=W,m;case H:return m=vr(13,O,p,R),m.elementType=H,m.lanes=W,m;case Y:return m=vr(19,O,p,R),m.elementType=Y,m.lanes=W,m;case J:return Xs(O,R,W,p);default:if(typeof m=="object"&&m!==null)switch(m.$$typeof){case w:G=10;break e;case V:G=9;break e;case k:G=11;break e;case q:G=14;break e;case Z:G=16,D=null;break e}throw Error(i(130,m==null?m:typeof m=="undefined"?"undefined":o(m),""))}return p=vr(G,O,p,R),p.elementType=m,p.type=D,p.lanes=W,p}function Ca(m,p,O,D){return m=vr(7,m,D,p),m.lanes=O,m}function Xs(m,p,O,D){return m=vr(22,m,D,p),m.elementType=J,m.lanes=O,m.stateNode={isHidden:!1},m}function dc(m,p,O){return m=vr(6,m,null,p),m.lanes=O,m}function fc(m,p,O){return p=vr(4,m.children!==null?m.children:[],m.key,p),p.lanes=O,p.stateNode={containerInfo:m.containerInfo,pendingChildren:null,implementation:m.implementation},p}function cd(m,p,O,D,R){this.tag=p,this.containerInfo=m,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=ti(0),this.expirationTimes=ti(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ti(0),this.identifierPrefix=D,this.onRecoverableError=R,this.mutableSourceEagerHydrationData=null}function hc(m,p,O,D,R,W,G,re,ue){return m=new cd(m,p,O,re,ue),p===1?(p=1,W===!0&&(p|=8)):p=0,W=vr(3,null,null,p),m.current=W,W.stateNode=m,W.memoizedState={element:D,isDehydrated:O,cache:null,transitions:null,pendingSuspenseBoundaries:null},pn(W),m}function ud(m,p,O){var D=3=0;--ee){var se=this.tryEntries[ee],ie=se.completion;if(se.tryLoc==="root")return X("end");if(se.tryLoc<=this.prev){var ue=r.call(se,"catchLoc"),he=r.call(se,"finallyLoc");if(ue&&he){if(this.prev=0;--X){var ee=this.tryEntries[X];if(ee.tryLoc<=this.prev&&r.call(ee,"finallyLoc")&&this.prev=0;--J){var X=this.tryEntries[J];if(X.finallyLoc===Q)return this.complete(X.completion,X.afterLoc),k(X),C}},catch:function(Z){for(var Q=this.tryEntries.length-1;Q>=0;--Q){var J=this.tryEntries[Q];if(J.tryLoc===Z){var X=J.completion;if(X.type==="throw"){var ee=X.arg;k(J)}return ee}}throw new Error("illegal catch attempt")},delegateYield:function(Q,J,X){return this.delegate={iterator:Y(Q),resultName:J,nextLoc:X},this.method==="next"&&(this.arg=h),C}},o}(y.exports);try{regeneratorRuntime=e}catch(o){typeof globalThis=="object"?globalThis.regeneratorRuntime=e:Function("r","regeneratorRuntime = r")(e)}},82039:function(y,u){"use strict";/** + */function n(X){"@swc/helpers - typeof";return X&&typeof Symbol!="undefined"&&X.constructor===Symbol?"symbol":typeof X}var e=Symbol.for("react.element"),o=Symbol.for("react.portal"),t=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),f=Symbol.for("react.provider"),g=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),a=Symbol.for("react.suspense"),l=Symbol.for("react.memo"),s=Symbol.for("react.lazy"),c=Symbol.iterator;function h(X){return X===null||typeof X!="object"?null:(X=c&&X[c]||X["@@iterator"],typeof X=="function"?X:null)}var v={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},x=Object.assign,E={};function j(X,ee,se){this.props=X,this.context=ee,this.refs=E,this.updater=se||v}j.prototype.isReactComponent={},j.prototype.setState=function(X,ee){if(typeof X!="object"&&typeof X!="function"&&X!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,X,ee,"setState")},j.prototype.forceUpdate=function(X){this.updater.enqueueForceUpdate(this,X,"forceUpdate")};function C(){}C.prototype=j.prototype;function M(X,ee,se){this.props=X,this.context=ee,this.refs=E,this.updater=se||v}var P=M.prototype=new C;P.constructor=M,x(P,j.prototype),P.isPureReactComponent=!0;var _=Array.isArray,S=Object.prototype.hasOwnProperty,T={current:null},b={key:!0,ref:!0,__self:!0,__source:!0};function L(X,ee,se){var ie,fe={},he=null,be=null;if(ee!=null)for(ie in ee.ref!==void 0&&(be=ee.ref),ee.key!==void 0&&(he=""+ee.key),ee)S.call(ee,ie)&&!b.hasOwnProperty(ie)&&(fe[ie]=ee[ie]);var je=arguments.length-2;if(je===1)fe.children=se;else if(1=0;--ee){var se=this.tryEntries[ee],ie=se.completion;if(se.tryLoc==="root")return X("end");if(se.tryLoc<=this.prev){var fe=r.call(se,"catchLoc"),he=r.call(se,"finallyLoc");if(fe&&he){if(this.prev=0;--X){var ee=this.tryEntries[X];if(ee.tryLoc<=this.prev&&r.call(ee,"finallyLoc")&&this.prev=0;--Q){var X=this.tryEntries[Q];if(X.finallyLoc===J)return this.complete(X.completion,X.afterLoc),k(X),C}},catch:function(Z){for(var J=this.tryEntries.length-1;J>=0;--J){var Q=this.tryEntries[J];if(Q.tryLoc===Z){var X=Q.completion;if(X.type==="throw"){var ee=X.arg;k(Q)}return ee}}throw new Error("illegal catch attempt")},delegateYield:function(J,Q,X){return this.delegate={iterator:Y(J),resultName:Q,nextLoc:X},this.method==="next"&&(this.arg=f),C}},o}(y.exports);try{regeneratorRuntime=e}catch(o){typeof globalThis=="object"?globalThis.regeneratorRuntime=e:Function("r","regeneratorRuntime = r")(e)}},82039:function(y,u){"use strict";/** * @license React * scheduler.production.min.js * @@ -30,29 +30,29 @@ * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */function n(Y,q){var Z=Y.length;Y.push(q);e:for(;0>>1,J=Y[Q];if(0>>1;Qt(se,Z))iet(ue,se)?(Y[Q]=ue,Y[ie]=Z,Q=ie):(Y[Q]=se,Y[ee]=Z,Q=ee);else if(iet(ue,Z))Y[Q]=ue,Y[ie]=Z,Q=ie;else break e}}return q}function t(Y,q){var Z=Y.sortIndex-q.sortIndex;return Z!==0?Z:Y.id-q.id}if(typeof performance=="object"&&typeof performance.now=="function"){var r=performance;u.unstable_now=function(){return r.now()}}else{var i=Date,h=i.now();u.unstable_now=function(){return i.now()-h}}var x=[],d=[],a=1,l=null,s=3,c=!1,f=!1,v=!1,g=typeof setTimeout=="function"?setTimeout:null,E=typeof clearTimeout=="function"?clearTimeout:null,j=typeof setImmediate!="undefined"?setImmediate:null;typeof navigator!="undefined"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function C(Y){for(var q=e(d);q!==null;){if(q.callback===null)o(d);else if(q.startTime<=Y)o(d),q.sortIndex=q.expirationTime,n(x,q);else break;q=e(d)}}function M(Y){if(v=!1,C(Y),!f)if(e(x)!==null)f=!0,k(P);else{var q=e(d);q!==null&&H(M,q.startTime-Y)}}function P(Y,q){f=!1,v&&(v=!1,E(T),T=-1),c=!0;var Z=s;try{for(C(q),l=e(x);l!==null&&(!(l.expirationTime>q)||Y&&!W());){var Q=l.callback;if(typeof Q=="function"){l.callback=null,s=l.priorityLevel;var J=Q(l.expirationTime<=q);q=u.unstable_now(),typeof J=="function"?l.callback=J:l===e(x)&&o(x),C(q)}else o(x);l=e(x)}if(l!==null)var X=!0;else{var ee=e(d);ee!==null&&H(M,ee.startTime-q),X=!1}return X}finally{l=null,s=Z,c=!1}}var _=!1,S=null,T=-1,b=5,L=-1;function W(){return!(u.unstable_now()-LY||125Q?(Y.sortIndex=Z,n(d,Y),e(x)===null&&Y===e(d)&&(v?(E(T),T=-1):v=!0,H(M,Z-Q))):(Y.sortIndex=J,n(x,Y),f||c||(f=!0,k(P))),Y},u.unstable_shouldYield=W,u.unstable_wrapCallback=function(Y){var q=s;return function(){var Z=s;s=q;try{return Y.apply(this,arguments)}finally{s=Z}}}},20686:function(y,u,n){"use strict";y.exports=n(82039)},73396:function(){self.fetch||(self.fetch=function(y,u){return u=u||{},new Promise(function(n,e){var o=new XMLHttpRequest,t=[],r={},i=function x(){return{ok:(o.status/100|0)==2,statusText:o.statusText,status:o.status,url:o.responseURL,text:function(){return Promise.resolve(o.responseText)},json:function(){return Promise.resolve(o.responseText).then(JSON.parse)},blob:function(){return Promise.resolve(new Blob([o.response]))},clone:x,headers:{keys:function(){return t},entries:function(){return t.map(function(a){return[a,o.getResponseHeader(a)]})},get:function(a){return o.getResponseHeader(a)},has:function(a){return o.getResponseHeader(a)!=null}}}};for(var h in o.open(u.method||"get",y,!0),o.onload=function(){o.getAllResponseHeaders().toLowerCase().replace(/^(.+?):/gm,function(x,d){r[d]||t.push(r[d]=d)}),n(i())},o.onerror=e,o.withCredentials=u.credentials=="include",u.headers)o.setRequestHeader(h,u.headers[h]);o.send(u.body||null)})})},7402:function(y,u,n){"use strict";n.d(u,{TS:function(){return s},Tj:function(){return h},Ul:function(){return d},V0:function(){return E},hS:function(){return c},pb:function(){return i},yU:function(){return v}});/** + */function n(Y,q){var Z=Y.length;Y.push(q);e:for(;0>>1,Q=Y[J];if(0>>1;Jt(se,Z))iet(fe,se)?(Y[J]=fe,Y[ie]=Z,J=ie):(Y[J]=se,Y[ee]=Z,J=ee);else if(iet(fe,Z))Y[J]=fe,Y[ie]=Z,J=ie;else break e}}return q}function t(Y,q){var Z=Y.sortIndex-q.sortIndex;return Z!==0?Z:Y.id-q.id}if(typeof performance=="object"&&typeof performance.now=="function"){var r=performance;u.unstable_now=function(){return r.now()}}else{var i=Date,f=i.now();u.unstable_now=function(){return i.now()-f}}var g=[],d=[],a=1,l=null,s=3,c=!1,h=!1,v=!1,x=typeof setTimeout=="function"?setTimeout:null,E=typeof clearTimeout=="function"?clearTimeout:null,j=typeof setImmediate!="undefined"?setImmediate:null;typeof navigator!="undefined"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function C(Y){for(var q=e(d);q!==null;){if(q.callback===null)o(d);else if(q.startTime<=Y)o(d),q.sortIndex=q.expirationTime,n(g,q);else break;q=e(d)}}function M(Y){if(v=!1,C(Y),!h)if(e(g)!==null)h=!0,k(P);else{var q=e(d);q!==null&&H(M,q.startTime-Y)}}function P(Y,q){h=!1,v&&(v=!1,E(T),T=-1),c=!0;var Z=s;try{for(C(q),l=e(g);l!==null&&(!(l.expirationTime>q)||Y&&!N());){var J=l.callback;if(typeof J=="function"){l.callback=null,s=l.priorityLevel;var Q=J(l.expirationTime<=q);q=u.unstable_now(),typeof Q=="function"?l.callback=Q:l===e(g)&&o(g),C(q)}else o(g);l=e(g)}if(l!==null)var X=!0;else{var ee=e(d);ee!==null&&H(M,ee.startTime-q),X=!1}return X}finally{l=null,s=Z,c=!1}}var _=!1,S=null,T=-1,b=5,L=-1;function N(){return!(u.unstable_now()-LY||125J?(Y.sortIndex=Z,n(d,Y),e(g)===null&&Y===e(d)&&(v?(E(T),T=-1):v=!0,H(M,Z-J))):(Y.sortIndex=Q,n(g,Y),h||c||(h=!0,k(P))),Y},u.unstable_shouldYield=N,u.unstable_wrapCallback=function(Y){var q=s;return function(){var Z=s;s=q;try{return Y.apply(this,arguments)}finally{s=Z}}}},20686:function(y,u,n){"use strict";y.exports=n(82039)},73396:function(){self.fetch||(self.fetch=function(y,u){return u=u||{},new Promise(function(n,e){var o=new XMLHttpRequest,t=[],r={},i=function g(){return{ok:(o.status/100|0)==2,statusText:o.statusText,status:o.status,url:o.responseURL,text:function(){return Promise.resolve(o.responseText)},json:function(){return Promise.resolve(o.responseText).then(JSON.parse)},blob:function(){return Promise.resolve(new Blob([o.response]))},clone:g,headers:{keys:function(){return t},entries:function(){return t.map(function(a){return[a,o.getResponseHeader(a)]})},get:function(a){return o.getResponseHeader(a)},has:function(a){return o.getResponseHeader(a)!=null}}}};for(var f in o.open(u.method||"get",y,!0),o.onload=function(){o.getAllResponseHeaders().toLowerCase().replace(/^(.+?):/gm,function(g,d){r[d]||t.push(r[d]=d)}),n(i())},o.onerror=e,o.withCredentials=u.credentials=="include",u.headers)o.setRequestHeader(f,u.headers[f]);o.send(u.body||null)})})},7402:function(y,u,n){"use strict";n.d(u,{TS:function(){return s},Tj:function(){return f},Ul:function(){return d},V0:function(){return E},hS:function(){return c},pb:function(){return i},yU:function(){return v}});/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */function e(P,_){(_==null||_>P.length)&&(_=P.length);for(var S=0,T=new Array(_);S<_;S++)T[S]=P[S];return T}function o(P){"@swc/helpers - typeof";return P&&typeof Symbol!="undefined"&&P.constructor===Symbol?"symbol":typeof P}function t(P,_){if(P){if(typeof P=="string")return e(P,_);var S=Object.prototype.toString.call(P).slice(8,-1);if(S==="Object"&&P.constructor&&(S=P.constructor.name),S==="Map"||S==="Set")return Array.from(S);if(S==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(S))return e(P,_)}}function r(P,_){var S=typeof Symbol!="undefined"&&P[Symbol.iterator]||P["@@iterator"];if(S)return(S=S.call(P)).next.bind(S);if(Array.isArray(P)||(S=t(P))||_&&P&&typeof P.length=="number"){S&&(P=S);var T=0;return function(){return T>=P.length?{done:!0}:{done:!1,value:P[T++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i=function(P,_){if(P==null)return P;if(Array.isArray(P)){for(var S=[],T=0;T$)return 1}return 0},d=function(P){for(var _=function(w){var V=P[w];W.push({criteria:T.map(function(k){return k(V)}),value:V})},S=arguments.length,T=new Array(S>1?S-1:0),b=1;b>1,$=P(_[z]),$T?z:z+1},E=function(P,_,S){var T=[].concat(P);return T.splice(g(S,P,_),0,_),T},j=function(P,_){for(var S=[],T=[],b=_,L=r(P),W;!(W=L()).done;){var $=W.value;T.push($),b--,b||(b=_,S.push(T),T=[])}return T.length&&S.push(T),S},C=function(P){return typeof P=="object"&&P!==null},M=function(){for(var P=arguments.length,_=new Array(P),S=0;SP.length)&&(_=P.length);for(var S=0,T=new Array(_);S<_;S++)T[S]=P[S];return T}function o(P){"@swc/helpers - typeof";return P&&typeof Symbol!="undefined"&&P.constructor===Symbol?"symbol":typeof P}function t(P,_){if(P){if(typeof P=="string")return e(P,_);var S=Object.prototype.toString.call(P).slice(8,-1);if(S==="Object"&&P.constructor&&(S=P.constructor.name),S==="Map"||S==="Set")return Array.from(S);if(S==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(S))return e(P,_)}}function r(P,_){var S=typeof Symbol!="undefined"&&P[Symbol.iterator]||P["@@iterator"];if(S)return(S=S.call(P)).next.bind(S);if(Array.isArray(P)||(S=t(P))||_&&P&&typeof P.length=="number"){S&&(P=S);var T=0;return function(){return T>=P.length?{done:!0}:{done:!1,value:P[T++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i=function(P,_){if(P==null)return P;if(Array.isArray(P)){for(var S=[],T=0;T$)return 1}return 0},d=function(P){for(var _=function(w){var V=P[w];N.push({criteria:T.map(function(k){return k(V)}),value:V})},S=arguments.length,T=new Array(S>1?S-1:0),b=1;b>1,$=P(_[z]),$T?z:z+1},E=function(P,_,S){var T=[].concat(P);return T.splice(x(S,P,_),0,_),T},j=function(P,_){for(var S=[],T=[],b=_,L=r(P),N;!(N=L()).done;){var $=N.value;T.push($),b--,b||(b=_,S.push(T),T=[])}return T.length&&S.push(T),S},C=function(P){return typeof P=="object"&&P!==null},M=function(){for(var P=arguments.length,_=new Array(P),S=0;S1?h-1:0),d=1;d1?f-1:0),d=1;dh.length)&&(x=h.length);for(var d=0,a=new Array(x);d=h.length?{done:!0}:{done:!1,value:h[a++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r=void 0,i=function(){for(var h=arguments.length,x=new Array(h),d=0;d1?s-1:0),f=1;ff.length)&&(g=f.length);for(var d=0,a=new Array(g);d=f.length?{done:!0}:{done:!1,value:f[a++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r=void 0,i=function(){for(var f=arguments.length,g=new Array(f),d=0;d1?s-1:0),h=1;hc.length)&&(f=c.length);for(var v=0,g=new Array(f);v=c.length?{done:!0}:{done:!1,value:c[g++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r=function(c,f,v){return cv?v:c},i=function(c){return c<0?0:c>1?1:c},h=function(c,f,v){return(c-f)/(v-f)},x=function(c,f){if(!c||isNaN(c))return c;var v,g,E,j;return f|=0,v=Math.pow(10,f),c*=v,j=+(c>0)|-(c<0),E=Math.abs(c%1)>=.4999999999854481,g=Math.floor(c),E&&(c=g+(j>0)),(E?c:Math.round(c))/v},d=function(c,f){return f===void 0&&(f=0),Number(c).toFixed(Math.max(f,0))},a=function(c,f){return f&&c>=f[0]&&c<=f[1]},l=function(c,f){for(var v=t(Object.keys(f)),g;!(g=v()).done;){var E=g.value,j=f[E];if(a(c,j))return E}},s=function(c){return Math.floor(c)!==c&&c.toString().split(".")[1].length||0}},56236:function(y,u,n){"use strict";n.d(u,{k:function(){return l}});/** + */function e(c,h){(h==null||h>c.length)&&(h=c.length);for(var v=0,x=new Array(h);v=c.length?{done:!0}:{done:!1,value:c[x++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r=function(c,h,v){return cv?v:c},i=function(c){return c<0?0:c>1?1:c},f=function(c,h,v){return(c-h)/(v-h)},g=function(c,h){if(!c||isNaN(c))return c;var v,x,E,j;return h|=0,v=Math.pow(10,h),c*=v,j=+(c>0)|-(c<0),E=Math.abs(c%1)>=.4999999999854481,x=Math.floor(c),E&&(c=x+(j>0)),(E?c:Math.round(c))/v},d=function(c,h){return h===void 0&&(h=0),Number(c).toFixed(Math.max(h,0))},a=function(c,h){return h&&c>=h[0]&&c<=h[1]},l=function(c,h){for(var v=t(Object.keys(h)),x;!(x=v()).done;){var E=x.value,j=h[E];if(a(c,j))return E}},s=function(c){return Math.floor(c)!==c&&c.toString().split(".")[1].length||0}},56236:function(y,u,n){"use strict";n.d(u,{k:function(){return l}});/** * Ghetto performance measurement tools. * * Uses NODE_ENV to remove itself from production builds. @@ -60,29 +60,29 @@ * @file * @copyright 2020 Aleksej Komarov * @license MIT - */var e,o=60,t=1e3/o,r=!!((e=window.performance)!=null&&e.now),i={},h={};function x(s,c){}function d(s,c){return;var f,v,g}function a(s){var c=s/t;return s.toFixed(s<10?1:0)+"ms ("+c.toFixed(2)+" frames)"}var l={mark:x,measure:d}},65380:function(y,u,n){"use strict";n.d(u,{Ly:function(){return e},a_:function(){return t},b5:function(){return r}});/** + */var e,o=60,t=1e3/o,r=!!((e=window.performance)!=null&&e.now),i={},f={};function g(s,c){}function d(s,c){return;var h,v,x}function a(s){var c=s/t;return s.toFixed(s<10?1:0)+"ms ("+c.toFixed(2)+" frames)"}var l={mark:g,measure:d}},65380:function(y,u,n){"use strict";n.d(u,{Ly:function(){return e},a_:function(){return t},b5:function(){return r}});/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */var e=function(i){for(var h="",x=0;xa.length)&&(l=a.length);for(var s=0,c=new Array(l);s=a.length?{done:!0}:{done:!1,value:a[c++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i=function(a,l){if(l)return l(i)(a);var s,c=[],f=function(){return s},v=function(E){c.push(E)},g=function(E){s=a(s,E);for(var j=0;j1?v-1:0),E=1;E1?S-1:0),b=1;b1?S-1:0),b=1;ba.length)&&(l=a.length);for(var s=0,c=new Array(l);s=a.length?{done:!0}:{done:!1,value:a[c++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i=function(a,l){if(l)return l(i)(a);var s,c=[],h=function(){return s},v=function(E){c.push(E)},x=function(E){s=a(s,E);for(var j=0;j1?v-1:0),E=1;E1?S-1:0),b=1;b1?S-1:0),b=1;b0&&b[b.length-1])&&(w[0]===6||w[0]===2)){W=0;continue}if(w[0]===3&&(!b||w[1]>b[0]&&w[1]0&&b[b.length-1])&&(w[0]===6||w[0]===2)){N=0;continue}if(w[0]===3&&(!b||w[1]>b[0]&&w[1]v.length)&&(g=v.length);for(var E=0,j=new Array(g);E=v.length?{done:!0}:{done:!1,value:v[j++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function r(v,g){g===void 0&&(g=function(j){return JSON.stringify(j)});var E=v.toLowerCase().trim();return function(j){if(!E)return!0;var C=g(j);return C?C.toLowerCase().includes(E):!1}}function i(v){return v.charAt(0).toUpperCase()+v.slice(1).toLowerCase()}function h(v){return v.replace(/(^\w{1})|(\s+\w{1})/g,function(g){return g.toUpperCase()})}function x(v){return v.replace(/^\w/,function(g){return g.toUpperCase()})}var d=["Id","Tv"],a=["A","An","And","As","At","But","By","For","For","From","In","Into","Near","Nor","Of","On","Onto","Or","The","To","With"];function l(v){if(!v)return v;for(var g=v.replace(/([^\W_]+[^\s-]*) */g,function(b){return i(b)}),E=t(a),j;!(j=E()).done;){var C=j.value,M=new RegExp("\\s"+C+"\\s","g");g=g.replace(M,function(b){return b.toLowerCase()})}for(var P=t(d),_;!(_=P()).done;){var S=_.value,T=new RegExp("\\b"+S+"\\b","g");g=g.replace(T,function(b){return b.toLowerCase()})}return g}var s=/&(nbsp|amp|quot|lt|gt|apos);/g,c={amp:"&",apos:"'",gt:">",lt:"<",nbsp:" ",quot:'"'};function f(v){return v&&v.replace(/
/gi,"\n").replace(/<\/?[a-z0-9-_]+[^>]*>/gi,"").replace(s,function(g,E){return c[E]}).replace(/&#?([0-9]+);/gi,function(g,E){var j=parseInt(E,10);return String.fromCharCode(j)}).replace(/&#x?([0-9a-f]+);/gi,function(g,E){var j=parseInt(E,16);return String.fromCharCode(j)})}},27482:function(y,u,n){"use strict";n.d(u,{sg:function(){return e}});/** + */function e(v,x){(x==null||x>v.length)&&(x=v.length);for(var E=0,j=new Array(x);E=v.length?{done:!0}:{done:!1,value:v[j++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function r(v,x){x===void 0&&(x=function(j){return JSON.stringify(j)});var E=v.toLowerCase().trim();return function(j){if(!E)return!0;var C=x(j);return C?C.toLowerCase().includes(E):!1}}function i(v){return v.charAt(0).toUpperCase()+v.slice(1).toLowerCase()}function f(v){return v.replace(/(^\w{1})|(\s+\w{1})/g,function(x){return x.toUpperCase()})}function g(v){return v.replace(/^\w/,function(x){return x.toUpperCase()})}var d=["Id","Tv"],a=["A","An","And","As","At","But","By","For","For","From","In","Into","Near","Nor","Of","On","Onto","Or","The","To","With"];function l(v){if(!v)return v;for(var x=v.replace(/([^\W_]+[^\s-]*) */g,function(b){return i(b)}),E=t(a),j;!(j=E()).done;){var C=j.value,M=new RegExp("\\s"+C+"\\s","g");x=x.replace(M,function(b){return b.toLowerCase()})}for(var P=t(d),_;!(_=P()).done;){var S=_.value,T=new RegExp("\\b"+S+"\\b","g");x=x.replace(T,function(b){return b.toLowerCase()})}return x}var s=/&(nbsp|amp|quot|lt|gt|apos);/g,c={amp:"&",apos:"'",gt:">",lt:"<",nbsp:" ",quot:'"'};function h(v){return v&&v.replace(/
/gi,"\n").replace(/<\/?[a-z0-9-_]+[^>]*>/gi,"").replace(s,function(x,E){return c[E]}).replace(/&#?([0-9]+);/gi,function(x,E){var j=parseInt(E,10);return String.fromCharCode(j)}).replace(/&#x?([0-9a-f]+);/gi,function(x,E){var j=parseInt(E,16);return String.fromCharCode(j)})}},27482:function(y,u,n){"use strict";n.d(u,{sg:function(){return e}});/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */var e=function(r,i,h){h===void 0&&(h=!1);var x;return function(){for(var d=arguments.length,a=new Array(d),l=0;l=i?(r.apply(null,l),h=c):x=setTimeout(function(){return d.apply(void 0,[].concat(l))},i-(c-(h!=null?h:0)))}},t=function(r){return new Promise(function(i){return setTimeout(i,r)})}},87760:function(y,u,n){"use strict";n.d(u,{CO:function(){return h},Jk:function(){return c},Xd:function(){return l},Z4:function(){return x},tk:function(){return d}});var e=n(7402);/** + */var e=function(r,i,f){f===void 0&&(f=!1);var g;return function(){for(var d=arguments.length,a=new Array(d),l=0;l=i?(r.apply(null,l),f=c):g=setTimeout(function(){return d.apply(void 0,[].concat(l))},i-(c-(f!=null?f:0)))}},t=function(r){return new Promise(function(i){return setTimeout(i,r)})}},87760:function(y,u,n){"use strict";n.d(u,{CO:function(){return f},Jk:function(){return c},Xd:function(){return l},Z4:function(){return g},tk:function(){return d}});var e=n(7402);/** * N-dimensional vector manipulation functions. * * Vectors are plain number arrays, i.e. [x, y, z]. @@ -90,11 +90,11 @@ * @file * @copyright 2020 Aleksej Komarov * @license MIT - */var o=function(v,g){return v+g},t=function(v,g){return v-g},r=function(v,g){return v*g},i=function(v,g){return v/g},h=function(){for(var v=arguments.length,g=new Array(v),E=0;Ed.length)&&(a=d.length);for(var l=0,s=new Array(a);l=d.length?{done:!0}:{done:!1,value:d[s++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r=[/v4shim/i],i={},h=function(d){return i[d]||d},x=function(d){return function(a){return function(l){var s=l.type,c=l.payload;if(s==="asset/stylesheet"){Byond.loadCss(c);return}if(s==="asset/mappings"){for(var f=function(){var E=g.value;if(r.some(function(M){return M.test(E)}))return"continue";var j=c[E],C=E.split(".").pop();i[E]=j,C==="css"&&Byond.loadCss(j),C==="js"&&Byond.loadJs(j)},v=t(Object.keys(c)),g;!(g=v()).done;)f();return}a(l)}}}},7081:function(y,u,n){"use strict";n.d(u,{H$:function(){return v},J3:function(){return f},JV:function(){return j},Oc:function(){return b},QY:function(){return W},d4:function(){return z},jB:function(){return P},pX:function(){return _}});var e=n(56236),o=n(74429),t=n(21547),r=n(37912),i=n(49945),h=n(92736),x=n(67278);/** + */function e(d,a){(a==null||a>d.length)&&(a=d.length);for(var l=0,s=new Array(a);l=d.length?{done:!0}:{done:!1,value:d[s++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r=[/v4shim/i],i={},f=function(d){return i[d]||d},g=function(d){return function(a){return function(l){var s=l.type,c=l.payload;if(s==="asset/stylesheet"){Byond.loadCss(c);return}if(s==="asset/mappings"){for(var h=function(){var E=x.value;if(r.some(function(M){return M.test(E)}))return"continue";var j=c[E],C=E.split(".").pop();i[E]=j,C==="css"&&Byond.loadCss(j),C==="js"&&Byond.loadJs(j)},v=t(Object.keys(c)),x;!(x=v()).done;)h();return}a(l)}}}},7081:function(y,u,n){"use strict";n.d(u,{H$:function(){return v},J3:function(){return h},JV:function(){return j},Oc:function(){return b},QY:function(){return N},d4:function(){return z},jB:function(){return P},pX:function(){return _}});var e=n(56236),o=n(74429),t=n(21547),r=n(37912),i=n(49945),f=n(92736),g=n(67278);/** * This file provides a clear separation layer between backend updates * and what state our React app sees. * @@ -105,19 +105,19 @@ * @file * @copyright 2020 Aleksej Komarov * @license MIT - */function d(w,V){(V==null||V>w.length)&&(V=w.length);for(var k=0,H=new Array(V);k=w.length?{done:!0}:{done:!1,value:w[H++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var c=(0,h.h)("backend"),f,v=function(w){f=w},g=(0,o.VP)("backend/update"),E=(0,o.VP)("backend/setSharedState"),j=(0,o.VP)("backend/suspendStart"),C=function(){return{type:"backend/suspendSuccess",payload:{timestamp:Date.now()}}},M={config:{},data:{},shared:{},suspended:Date.now(),suspending:!1},P=function(w,V){w===void 0&&(w=M);var k=V.type,H=V.payload;if(k==="backend/update"){var Y=a({},w.config,H.config),q=a({},w.data,H.static_data,H.data),Z=a({},w.shared);if(H.shared)for(var Q=s(Object.keys(H.shared)),J;!(J=Q()).done;){var X=J.value,ee=H.shared[X];ee===""?Z[X]=void 0:Z[X]=JSON.parse(ee)}return a({},w,{config:Y,data:q,shared:Z,suspended:!1})}if(k==="backend/setSharedState"){var se=H.key,ie=H.nextState,ue;return a({},w,{shared:a({},w.shared,(ue={},ue[se]=ie,ue))})}if(k==="byond/ctrldown"&&r.Nh.emit("byond/ctrldown"),k==="byond/ctrlup"&&r.Nh.emit("byond/ctrlup"),k==="backend/suspendStart")return a({},w,{suspending:!0});if(k==="backend/suspendSuccess"){var he=H.timestamp;return a({},w,{data:{},shared:{},config:a({},w.config,{title:"",status:1}),suspending:!1,suspended:he})}return w},_=function(w){var V,k;return function(H){return function(Y){var q=T(w.getState()).suspended,Z=Y.type,Q=Y.payload;if(Z==="update"){w.dispatch(g(Q));return}if(Z==="suspend"){w.dispatch(C());return}if(Z==="ping"){Byond.sendMessage("ping/reply");return}if(Z==="byond/mousedown"&&r.Nh.emit("byond/mousedown"),Z==="byond/mouseup"&&r.Nh.emit("byond/mouseup"),Z==="byond/ctrldown"&&r.Nh.emit("byond/ctrldown"),Z==="byond/ctrlup"&&r.Nh.emit("byond/ctrlup"),Z==="backend/suspendStart"&&!k){c.log("suspending ("+Byond.windowId+")");var J=function(){return Byond.sendMessage("suspend")};J(),k=setInterval(J,2e3)}if(Z==="backend/suspendSuccess"&&((0,x.Su)(),clearInterval(k),k=void 0,Byond.winset(Byond.windowId,{"is-visible":!1}),setTimeout(function(){return(0,i.$)()})),Z==="backend/update"){var X,ee,se=(ee=Q.config)==null||(X=ee.window)==null?void 0:X.fancy;V===void 0?V=se:V!==se&&(c.log("changing fancy mode to",se),V=se,Byond.winset(Byond.windowId,{titlebar:!se,"can-resize":!se}))}return Z==="backend/update"&&q&&(c.log("backend/update",Q),(0,x.P7)(),(0,t.MN)(),setTimeout(function(){e.k.mark("resume/start");var ie=T(w.getState()).suspended;ie||(Byond.winset(Byond.windowId,{"is-visible":!0}),e.k.mark("resume/finish"))})),H(Y)}}},S=function(w,V){V===void 0&&(V={});var k=typeof V=="object"&&V!==null&&!Array.isArray(V);if(!k){c.error("Payload for act() must be an object, got this:",V);return}Byond.sendMessage("act/"+w,V)},T=function(w){return w.backend||{}},b=function(){var w,V=f==null||(w=f.getState())==null?void 0:w.backend;return a({},V,{act:S})},L=function(w,V){var k,H=f==null||(k=f.getState())==null?void 0:k.backend,Y,q=(Y=H==null?void 0:H.shared)!=null?Y:{},Z=w in q?q[w]:V;return[Z,function(Q){f.dispatch(E({key:w,nextState:typeof Q=="function"?Q(Z):Q}))}]},W=function(w,V){var k,H=f==null||(k=f.getState())==null?void 0:k.backend,Y,q=(Y=H==null?void 0:H.shared)!=null?Y:{},Z=w in q?q[w]:V;return[Z,function(Q){Byond.sendMessage({type:"setSharedState",key:w,value:JSON.stringify(typeof Q=="function"?Q(Z):Q)||""})}]},$=function(){return f.dispatch},z=function(w){return w(f==null?void 0:f.getState())}},96781:function(y,u,n){"use strict";n.d(u,{Fl:function(){return _},WP:function(){return S},az:function(){return T},zA:function(){return l}});var e=n(65380),o=n(61358),t=n(79500),r=n(92736);/** + */function d(w,V){(V==null||V>w.length)&&(V=w.length);for(var k=0,H=new Array(V);k=w.length?{done:!0}:{done:!1,value:w[H++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var c=(0,f.h)("backend"),h,v=function(w){h=w},x=(0,o.VP)("backend/update"),E=(0,o.VP)("backend/setSharedState"),j=(0,o.VP)("backend/suspendStart"),C=function(){return{type:"backend/suspendSuccess",payload:{timestamp:Date.now()}}},M={config:{},data:{},shared:{},suspended:Date.now(),suspending:!1},P=function(w,V){w===void 0&&(w=M);var k=V.type,H=V.payload;if(k==="backend/update"){var Y=a({},w.config,H.config),q=a({},w.data,H.static_data,H.data),Z=a({},w.shared);if(H.shared)for(var J=s(Object.keys(H.shared)),Q;!(Q=J()).done;){var X=Q.value,ee=H.shared[X];ee===""?Z[X]=void 0:Z[X]=JSON.parse(ee)}return a({},w,{config:Y,data:q,shared:Z,suspended:!1})}if(k==="backend/setSharedState"){var se=H.key,ie=H.nextState,fe;return a({},w,{shared:a({},w.shared,(fe={},fe[se]=ie,fe))})}if(k==="byond/ctrldown"&&r.Nh.emit("byond/ctrldown"),k==="byond/ctrlup"&&r.Nh.emit("byond/ctrlup"),k==="backend/suspendStart")return a({},w,{suspending:!0});if(k==="backend/suspendSuccess"){var he=H.timestamp;return a({},w,{data:{},shared:{},config:a({},w.config,{title:"",status:1}),suspending:!1,suspended:he})}return w},_=function(w){var V,k;return function(H){return function(Y){var q=T(w.getState()).suspended,Z=Y.type,J=Y.payload;if(Z==="update"){w.dispatch(x(J));return}if(Z==="suspend"){w.dispatch(C());return}if(Z==="ping"){Byond.sendMessage("ping/reply");return}if(Z==="byond/mousedown"&&r.Nh.emit("byond/mousedown"),Z==="byond/mouseup"&&r.Nh.emit("byond/mouseup"),Z==="byond/ctrldown"&&r.Nh.emit("byond/ctrldown"),Z==="byond/ctrlup"&&r.Nh.emit("byond/ctrlup"),Z==="backend/suspendStart"&&!k){c.log("suspending ("+Byond.windowId+")");var Q=function(){return Byond.sendMessage("suspend")};Q(),k=setInterval(Q,2e3)}if(Z==="backend/suspendSuccess"&&((0,g.Su)(),clearInterval(k),k=void 0,Byond.winset(Byond.windowId,{"is-visible":!1}),setTimeout(function(){return(0,i.$)()})),Z==="backend/update"){var X,ee,se=(ee=J.config)==null||(X=ee.window)==null?void 0:X.fancy;V===void 0?V=se:V!==se&&(c.log("changing fancy mode to",se),V=se,Byond.winset(Byond.windowId,{titlebar:!se,"can-resize":!se}))}return Z==="backend/update"&&q&&(c.log("backend/update",J),(0,g.P7)(),(0,t.MN)(),setTimeout(function(){e.k.mark("resume/start");var ie=T(w.getState()).suspended;ie||(Byond.winset(Byond.windowId,{"is-visible":!0}),e.k.mark("resume/finish"))})),H(Y)}}},S=function(w,V){V===void 0&&(V={});var k=typeof V=="object"&&V!==null&&!Array.isArray(V);if(!k){c.error("Payload for act() must be an object, got this:",V);return}Byond.sendMessage("act/"+w,V)},T=function(w){return w.backend||{}},b=function(){var w,V=h==null||(w=h.getState())==null?void 0:w.backend;return a({},V,{act:S})},L=function(w,V){var k,H=h==null||(k=h.getState())==null?void 0:k.backend,Y,q=(Y=H==null?void 0:H.shared)!=null?Y:{},Z=w in q?q[w]:V;return[Z,function(J){h.dispatch(E({key:w,nextState:typeof J=="function"?J(Z):J}))}]},N=function(w,V){var k,H=h==null||(k=h.getState())==null?void 0:k.backend,Y,q=(Y=H==null?void 0:H.shared)!=null?Y:{},Z=w in q?q[w]:V;return[Z,function(J){Byond.sendMessage({type:"setSharedState",key:w,value:JSON.stringify(typeof J=="function"?J(Z):J)||""})}]},$=function(){return h.dispatch},z=function(w){return w(h==null?void 0:h.getState())}},96781:function(y,u,n){"use strict";n.d(u,{Fl:function(){return _},WP:function(){return S},az:function(){return T},zA:function(){return l}});var e=n(65380),o=n(61358),t=n(79500),r=n(92736);/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */function i(b,L){(L==null||L>b.length)&&(L=b.length);for(var W=0,$=new Array(L);W=0)&&(W[z]=b[z]);return W}function d(b,L){if(b){if(typeof b=="string")return i(b,L);var W=Object.prototype.toString.call(b).slice(8,-1);if(W==="Object"&&b.constructor&&(W=b.constructor.name),W==="Map"||W==="Set")return Array.from(W);if(W==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(W))return i(b,L)}}function a(b,L){var W=typeof Symbol!="undefined"&&b[Symbol.iterator]||b["@@iterator"];if(W)return(W=W.call(b)).next.bind(W);if(Array.isArray(b)||(W=d(b))||L&&b&&typeof b.length=="number"){W&&(b=W);var $=0;return function(){return $>=b.length?{done:!0}:{done:!1,value: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.")}var l=function(b){if(typeof b=="string")return b.endsWith("px")?parseFloat(b)/12+"rem":b;if(typeof b=="number")return b+"rem"},s=function(b){if(typeof b=="string")return l(b);if(typeof b=="number")return l(b*.5)},c=function(b){return!f(b)},f=function(b){return typeof b=="string"&&t.NE.includes(b)},v=function(b){return function(L,W){(typeof W=="number"||typeof W=="string")&&(L[b]=W)}},g=function(b,L){return function(W,$){(typeof $=="number"||typeof $=="string")&&(W[b]=L($))}},E=function(b,L){return function(W,$){$&&(W[b]=L)}},j=function(b,L,W){return function($,z){if(typeof z=="number"||typeof z=="string")for(var w=0;w=0)&&(l[c]=d[c]);return l}var h=5;function x(d){var a=d.fixBlur,l=a===void 0?!0:a,s=d.fixErrors,c=s===void 0?!1:s,f=d.objectFit,v=f===void 0?"fill":f,g=d.src,E=i(d,["fixBlur","fixErrors","objectFit","src"]),j=(0,o.useRef)(0),C=(0,t.Fl)(E);return C.style=r({},C.style,{"-ms-interpolation-mode":l?"nearest-neighbor":"auto",objectFit:v}),(0,e.jsx)("img",r({onError:function(M){if(c&&j.currentb.length)&&(L=b.length);for(var N=0,$=new Array(L);N=0)&&(N[z]=b[z]);return N}function d(b,L){if(b){if(typeof b=="string")return i(b,L);var N=Object.prototype.toString.call(b).slice(8,-1);if(N==="Object"&&b.constructor&&(N=b.constructor.name),N==="Map"||N==="Set")return Array.from(N);if(N==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(N))return i(b,L)}}function a(b,L){var N=typeof Symbol!="undefined"&&b[Symbol.iterator]||b["@@iterator"];if(N)return(N=N.call(b)).next.bind(N);if(Array.isArray(b)||(N=d(b))||L&&b&&typeof b.length=="number"){N&&(b=N);var $=0;return function(){return $>=b.length?{done:!0}:{done:!1,value: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.")}var l=function(b){if(typeof b=="string")return b.endsWith("px")?parseFloat(b)/12+"rem":b;if(typeof b=="number")return b+"rem"},s=function(b){if(typeof b=="string")return l(b);if(typeof b=="number")return l(b*.5)},c=function(b){return!h(b)},h=function(b){return typeof b=="string"&&t.NE.includes(b)},v=function(b){return function(L,N){(typeof N=="number"||typeof N=="string")&&(L[b]=N)}},x=function(b,L){return function(N,$){(typeof $=="number"||typeof $=="string")&&(N[b]=L($))}},E=function(b,L){return function(N,$){$&&(N[b]=L)}},j=function(b,L,N){return function($,z){if(typeof z=="number"||typeof z=="string")for(var w=0;w=0)&&(l[c]=d[c]);return l}var f=5;function g(d){var a=d.fixBlur,l=a===void 0?!0:a,s=d.fixErrors,c=s===void 0?!1:s,h=d.objectFit,v=h===void 0?"fill":h,x=d.src,E=i(d,["fixBlur","fixErrors","objectFit","src"]),j=(0,o.useRef)(0),C=(0,t.Fl)(E);return C.style=r({},C.style,{"-ms-interpolation-mode":l?"nearest-neighbor":"auto",objectFit:v}),(0,e.jsx)("img",r({onError:function(M){if(c&&j.current=0)&&(s[f]=a[f]);return s}var h=function(a){var l=a.className,s=a.collapsing,c=a.children,f=i(a,["className","collapsing","children"]);return(0,e.jsx)("table",r({className:(0,o.Ly)(["Table",s&&"Table--collapsing",l,(0,t.WP)(f)])},(0,t.Fl)(f),{children:(0,e.jsx)("tbody",{children:c})}))},x=function(a){var l=a.className,s=a.header,c=i(a,["className","header"]);return(0,e.jsx)("tr",r({className:(0,o.Ly)(["Table__row",s&&"Table__row--header",l,(0,t.WP)(a)])},(0,t.Fl)(c)))},d=function(a){var l=a.className,s=a.collapsing,c=a.header,f=i(a,["className","collapsing","header"]);return(0,e.jsx)("td",r({className:(0,o.Ly)(["Table__cell",s&&"Table__cell--collapsing",c&&"Table__cell--header",l,(0,t.WP)(a)])},(0,t.Fl)(f)))};h.Row=x,h.Cell=d},88569:function(y,u,n){"use strict";n.d(u,{zv:function(){return l},y5:function(){return s},Z8:function(){return E},Y0:function(){return _},az:function(){return C.az},$n:function(){return xt},D1:function(){return Da},t1:function(){return ci},Nt:function(){return ba},BK:function(){return cl},Rr:function(){return ss},cG:function(){return ls},Hx:function(){return Ta},ms:function(){return gs},so:function(){return jr},In:function(){return W},_V:function(){return dl._},pd:function(){return Hr},N6:function(){return Ps},Wx:function(){return Ua},Ki:function(){return lr},aF:function(){return Sl},tx:function(){return $a},IC:function(){return Ui},Q7:function(){return yo},ND:function(){return ms},z2:function(){return Mi},SM:function(){return Is},wn:function(){return Ds},Ap:function(){return io},BJ:function(){return Vr},XI:function(){return La.XI},tU:function(){return Kt},fs:function(){return Ir},m_:function(){return bt}});var e=n(20462),o=n(4089),t=n(61358);/** + */function r(){return r=Object.assign||function(a){for(var l=1;l=0)&&(s[h]=a[h]);return s}var f=function(a){var l=a.className,s=a.collapsing,c=a.children,h=i(a,["className","collapsing","children"]);return(0,e.jsx)("table",r({className:(0,o.Ly)(["Table",s&&"Table--collapsing",l,(0,t.WP)(h)])},(0,t.Fl)(h),{children:(0,e.jsx)("tbody",{children:c})}))},g=function(a){var l=a.className,s=a.header,c=i(a,["className","header"]);return(0,e.jsx)("tr",r({className:(0,o.Ly)(["Table__row",s&&"Table__row--header",l,(0,t.WP)(a)])},(0,t.Fl)(c)))},d=function(a){var l=a.className,s=a.collapsing,c=a.header,h=i(a,["className","collapsing","header"]);return(0,e.jsx)("td",r({className:(0,o.Ly)(["Table__cell",s&&"Table__cell--collapsing",c&&"Table__cell--header",l,(0,t.WP)(a)])},(0,t.Fl)(h)))};f.Row=g,f.Cell=d},88569:function(y,u,n){"use strict";n.d(u,{zv:function(){return l},y5:function(){return s},Z8:function(){return E},Y0:function(){return _},az:function(){return C.az},$n:function(){return xt},D1:function(){return Da},t1:function(){return ci},Nt:function(){return ba},BK:function(){return cl},Rr:function(){return ss},cG:function(){return ls},Hx:function(){return Ta},ms:function(){return gs},so:function(){return jr},In:function(){return N},_V:function(){return dl._},pd:function(){return Hr},N6:function(){return Ps},Wx:function(){return Ua},Ki:function(){return lr},aF:function(){return Sl},tx:function(){return $a},IC:function(){return Ui},Q7:function(){return yo},ND:function(){return ms},z2:function(){return Mi},SM:function(){return Is},wn:function(){return Ds},Ap:function(){return io},BJ:function(){return Vr},XI:function(){return La.XI},tU:function(){return Kt},fs:function(){return Ir},m_:function(){return bt}});var e=n(20462),o=n(4089),t=n(61358);/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */function r(I,A){if(typeof A!="function"&&A!==null)throw new TypeError("Super expression must either be null or a function");I.prototype=Object.create(A&&A.prototype,{constructor:{value:I,writable:!0,configurable:!0}}),A&&i(I,A)}function i(I,A){return i=Object.setPrototypeOf||function(U,B){return U.__proto__=B,U},i(I,A)}var h=function(I){return typeof I=="number"&&Number.isFinite(I)&&!Number.isNaN(I)},x=1e3/60,d=.8333,a=.001,l=function(I){"use strict";r(A,I);function A(U){var B;B=I.call(this,U)||this,B.ref=(0,t.createRef)(),B.currentValue=0;var F=U.initial,ne=U.value;return F!==void 0&&h(F)?B.currentValue=F:h(ne)&&(B.currentValue=ne),B}var K=A.prototype;return K.componentDidMount=function(){this.currentValue!==this.props.value&&this.startTicking()},K.componentWillUnmount=function(){this.stopTicking()},K.shouldComponentUpdate=function(B){return B.value!==this.props.value&&this.startTicking(),!1},K.startTicking=function(){var B=this;this.interval===void 0&&(this.interval=setInterval(function(){return B.tick()},x))},K.stopTicking=function(){this.interval!==void 0&&(clearInterval(this.interval),this.interval=void 0)},K.tick=function(){var B=this.currentValue,F=this.props.value;h(F)?this.currentValue=B*d+F*(1-d):this.stopTicking(),Math.abs(F-this.currentValue)=0)&&(K[B]=I[B]);return K}var L=/-o$/,W=function(I){var A=I.name,K=I.size,U=I.spin,B=I.className,F=I.rotation,ne=b(I,["name","size","spin","className","rotation"]),ae=ne.style||{};K&&(ae.fontSize=K*100+"%"),F&&(ae.transform="rotate("+F+"deg)"),ne.style=ae;var ce=(0,C.Fl)(ne),oe="";if(A.startsWith("tg-"))oe=A;else{var le=L.test(A),pe=A.replace(L,""),Ie=!pe.startsWith("fa-");oe=le?"far ":"fas ",Ie&&(oe+="fa-"),oe+=pe,U&&(oe+=" fa-spin")}return(0,e.jsx)("i",T({className:(0,j.Ly)(["Icon",oe,B,(0,C.WP)(ne)])},ce))},$=function(I){var A=I.className,K=I.children,U=b(I,["className","children"]);return(0,e.jsx)("span",T({className:(0,j.Ly)(["IconStack",A,(0,C.WP)(U)])},(0,C.Fl)(U),{children:K}))};W.Stack=$;function z(I){if(I==null)return window;if(I.toString()!=="[object Window]"){var A=I.ownerDocument;return A&&A.defaultView||window}return I}function w(I,A){return A!=null&&typeof Symbol!="undefined"&&A[Symbol.hasInstance]?!!A[Symbol.hasInstance](I):I instanceof A}function V(I){var A=z(I).Element;return w(I,A)||w(I,Element)}function k(I){var A=z(I).HTMLElement;return w(I,A)||w(I,HTMLElement)}function H(I){if(typeof ShadowRoot=="undefined")return!1;var A=z(I).ShadowRoot;return w(I,A)||w(I,ShadowRoot)}var Y=Math.max,q=Math.min,Z=Math.round;function Q(){var I=navigator.userAgentData;return I!=null&&I.brands&&Array.isArray(I.brands)?I.brands.map(function(A){return A.brand+"/"+A.version}).join(" "):navigator.userAgent}function J(){return!/^((?!chrome|android).)*safari/i.test(Q())}function X(I,A,K){A===void 0&&(A=!1),K===void 0&&(K=!1);var U=I.getBoundingClientRect(),B=1,F=1;A&&k(I)&&(B=I.offsetWidth>0&&Z(U.width)/I.offsetWidth||1,F=I.offsetHeight>0&&Z(U.height)/I.offsetHeight||1);var ne=V(I)?z(I):window,ae=ne.visualViewport,ce=!J()&&K,oe=(U.left+(ce&&ae?ae.offsetLeft:0))/B,le=(U.top+(ce&&ae?ae.offsetTop:0))/F,pe=U.width/B,Ie=U.height/F;return{width:pe,height:Ie,top:le,right:oe+pe,bottom:le+Ie,left:oe,x:oe,y:le}}function ee(I){var A=z(I),K=A.pageXOffset,U=A.pageYOffset;return{scrollLeft:K,scrollTop:U}}function se(I){return{scrollLeft:I.scrollLeft,scrollTop:I.scrollTop}}function ie(I){return I===z(I)||!k(I)?ee(I):se(I)}function ue(I){return I?(I.nodeName||"").toLowerCase():null}function he(I){return((V(I)?I.ownerDocument:I.document)||window.document).documentElement}function be(I){return X(he(I)).left+ee(I).scrollLeft}function je(I){return z(I).getComputedStyle(I)}function Ce(I){var A=je(I),K=A.overflow,U=A.overflowX,B=A.overflowY;return/auto|scroll|overlay|hidden/.test(K+B+U)}function Ne(I){var A=I.getBoundingClientRect(),K=Z(A.width)/I.offsetWidth||1,U=Z(A.height)/I.offsetHeight||1;return K!==1||U!==1}function sn(I,A,K){K===void 0&&(K=!1);var U=k(A),B=k(A)&&Ne(A),F=he(A),ne=X(I,B,K),ae={scrollLeft:0,scrollTop:0},ce={x:0,y:0};return(U||!U&&!K)&&((ue(A)!=="body"||Ce(F))&&(ae=ie(A)),k(A)?(ce=X(A,!0),ce.x+=A.clientLeft,ce.y+=A.clientTop):F&&(ce.x=be(F))),{x:ne.left+ae.scrollLeft-ce.x,y:ne.top+ae.scrollTop-ce.y,width:ne.width,height:ne.height}}function en(I){var A=X(I),K=I.offsetWidth,U=I.offsetHeight;return Math.abs(A.width-K)<=1&&(K=A.width),Math.abs(A.height-U)<=1&&(U=A.height),{x:I.offsetLeft,y:I.offsetTop,width:K,height:U}}function De(I){return ue(I)==="html"?I:I.assignedSlot||I.parentNode||(H(I)?I.host:null)||he(I)}function Qe(I){return["html","body","#document"].indexOf(ue(I))>=0?I.ownerDocument.body:k(I)&&Ce(I)?I:Qe(De(I))}function Mn(I,A){var K;A===void 0&&(A=[]);var U=Qe(I),B=U===((K=I.ownerDocument)==null?void 0:K.body),F=z(U),ne=B?[F].concat(F.visualViewport||[],Ce(U)?U:[]):U,ae=A.concat(ne);return B?ae:ae.concat(Mn(De(ne)))}function Pn(I){return["table","td","th"].indexOf(ue(I))>=0}function gn(I){return!k(I)||je(I).position==="fixed"?null:I.offsetParent}function An(I){var A=/firefox/i.test(Q()),K=/Trident/i.test(Q());if(K&&k(I)){var U=je(I);if(U.position==="fixed")return null}var B=De(I);for(H(B)&&(B=B.host);k(B)&&["html","body"].indexOf(ue(B))<0;){var F=je(B);if(F.transform!=="none"||F.perspective!=="none"||F.contain==="paint"||["transform","perspective"].indexOf(F.willChange)!==-1||A&&F.willChange==="filter"||A&&F.filter&&F.filter!=="none")return B;B=B.parentNode}return null}function xn(I){for(var A=z(I),K=gn(I);K&&Pn(K)&&je(K).position==="static";)K=gn(K);return K&&(ue(K)==="html"||ue(K)==="body"&&je(K).position==="static")?A:K||An(I)||A}var cn="top",Se="bottom",ze="right",Oe="left",Je="auto",Ze=[cn,Se,ze,Oe],Xe="start",qe="end",Un="clippingParents",kn="viewport",Rn="popper",En="reference",on=Ze.reduce(function(I,A){return I.concat([A+"-"+Xe,A+"-"+qe])},[]),Pe=[].concat(Ze,[Je]).reduce(function(I,A){return I.concat([A,A+"-"+Xe,A+"-"+qe])},[]),Re="beforeRead",ke="read",nn="afterRead",_n="beforeMain",In="main",Wn="afterMain",Kn="beforeWrite",wn="write",at="afterWrite",jt=[Re,ke,nn,_n,In,Wn,Kn,wn,at];function Bt(I){var A=new Map,K=new Set,U=[];I.forEach(function(F){A.set(F.name,F)});function B(F){K.add(F.name);var ne=[].concat(F.requires||[],F.requiresIfExists||[]);ne.forEach(function(ae){if(!K.has(ae)){var ce=A.get(ae);ce&&B(ce)}}),U.push(F)}return I.forEach(function(F){K.has(F.name)||B(F)}),U}function gr(I){var A=Bt(I);return jt.reduce(function(K,U){return K.concat(A.filter(function(B){return B.phase===U}))},[])}function Tr(I){var A;return function(){return A||(A=new Promise(function(K){Promise.resolve().then(function(){A=void 0,K(I())})})),A}}function Rr(I){var A=I.reduce(function(K,U){var B=K[U.name];return K[U.name]=B?Object.assign({},B,U,{options:Object.assign({},B.options,U.options),data:Object.assign({},B.data,U.data)}):U,K},{});return Object.keys(A).map(function(K){return A[K]})}var xr={placement:"bottom",modifiers:[],strategy:"absolute"};function pr(){for(var I=arguments.length,A=new Array(I),K=0;K=0?"x":"y"}function St(I){var A=I.reference,K=I.element,U=I.placement,B=U?it(U):null,F=U?nt(U):null,ne=A.x+A.width/2-K.width/2,ae=A.y+A.height/2-K.height/2,ce;switch(B){case cn:ce={x:ne,y:A.y-K.height};break;case Se:ce={x:ne,y:A.y+A.height};break;case ze:ce={x:A.x+A.width,y:ae};break;case Oe:ce={x:A.x-K.width,y:ae};break;default:ce={x:A.x,y:A.y}}var oe=B?zt(B):null;if(oe!=null){var le=oe==="y"?"height":"width";switch(F){case Xe:ce[oe]=ce[oe]-(A[le]/2-K[le]/2);break;case qe:ce[oe]=ce[oe]+(A[le]/2-K[le]/2);break;default:}}return ce}function rt(I){var A=I.state,K=I.name;A.modifiersData[K]=St({reference:A.rects.reference,element:A.rects.popper,strategy:"absolute",placement:A.placement})}var te={name:"popperOffsets",enabled:!0,phase:"read",fn:rt,data:{}},Ue={top:"auto",right:"auto",bottom:"auto",left:"auto"};function ya(I,A){var K=I.x,U=I.y,B=A.devicePixelRatio||1;return{x:Z(K*B)/B||0,y:Z(U*B)/B||0}}function xe(I){var A,K=I.popper,U=I.popperRect,B=I.placement,F=I.variation,ne=I.offsets,ae=I.position,ce=I.gpuAcceleration,oe=I.adaptive,le=I.roundOffsets,pe=I.isFixed,Ie=ne.x,ge=Ie===void 0?0:Ie,Ae=ne.y,Le=Ae===void 0?0:Ae,He=typeof le=="function"?le({x:ge,y:Le}):{x:ge,y:Le};ge=He.x,Le=He.y;var Ve=ne.hasOwnProperty("x"),tn=ne.hasOwnProperty("y"),fn=Oe,Te=cn,Ye=window;if(oe){var un=xn(K),Sn="clientHeight",jn="clientWidth";if(un===z(K)&&(un=he(K),je(un).position!=="static"&&ae==="absolute"&&(Sn="scrollHeight",jn="scrollWidth")),un=un,B===cn||(B===Oe||B===ze)&&F===qe){Te=Se;var Cn=pe&&un===Ye&&Ye.visualViewport?Ye.visualViewport.height:un[Sn];Le-=Cn-U.height,Le*=ce?1:-1}if(B===Oe||(B===cn||B===Se)&&F===qe){fn=ze;var Fe=pe&&un===Ye&&Ye.visualViewport?Ye.visualViewport.width:un[jn];ge-=Fe-U.width,ge*=ce?1:-1}}var pn=Object.assign({position:ae},oe&&Ue),hn=le===!0?ya({x:ge,y:Le},z(K)):{x:ge,y:Le};if(ge=hn.x,Le=hn.y,ce){var Tn;return Object.assign({},pn,(Tn={},Tn[Te]=tn?"0":"",Tn[fn]=Ve?"0":"",Tn.transform=(Ye.devicePixelRatio||1)<=1?"translate("+ge+"px, "+Le+"px)":"translate3d("+ge+"px, "+Le+"px, 0)",Tn))}return Object.assign({},pn,(A={},A[Te]=tn?Le+"px":"",A[fn]=Ve?ge+"px":"",A.transform="",A))}function We(I){var A=I.state,K=I.options,U=K.gpuAcceleration,B=U===void 0?!0:U,F=K.adaptive,ne=F===void 0?!0:F,ae=K.roundOffsets,ce=ae===void 0?!0:ae,oe={placement:it(A.placement),variation:nt(A.placement),popper:A.elements.popper,popperRect:A.rects.popper,gpuAcceleration:B,isFixed:A.options.strategy==="fixed"};A.modifiersData.popperOffsets!=null&&(A.styles.popper=Object.assign({},A.styles.popper,xe(Object.assign({},oe,{offsets:A.modifiersData.popperOffsets,position:A.options.strategy,adaptive:ne,roundOffsets:ce})))),A.modifiersData.arrow!=null&&(A.styles.arrow=Object.assign({},A.styles.arrow,xe(Object.assign({},oe,{offsets:A.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:ce})))),A.attributes.popper=Object.assign({},A.attributes.popper,{"data-popper-placement":A.placement})}var Me={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:We,data:{}};function me(I){var A=I.state;Object.keys(A.elements).forEach(function(K){var U=A.styles[K]||{},B=A.attributes[K]||{},F=A.elements[K];!k(F)||!ue(F)||(Object.assign(F.style,U),Object.keys(B).forEach(function(ne){var ae=B[ne];ae===!1?F.removeAttribute(ne):F.setAttribute(ne,ae===!0?"":ae)}))})}function Be(I){var A=I.state,K={popper:{position:A.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(A.elements.popper.style,K.popper),A.styles=K,A.elements.arrow&&Object.assign(A.elements.arrow.style,K.arrow),function(){Object.keys(A.elements).forEach(function(U){var B=A.elements[U],F=A.attributes[U]||{},ne=Object.keys(A.styles.hasOwnProperty(U)?A.styles[U]:K[U]),ae=ne.reduce(function(ce,oe){return ce[oe]="",ce},{});!k(B)||!ue(B)||(Object.assign(B.style,ae),Object.keys(F).forEach(function(ce){B.removeAttribute(ce)}))})}}var Dn={name:"applyStyles",enabled:!0,phase:"write",fn:me,effect:Be,requires:["computeStyles"]};function an(I,A,K){var U=it(I),B=[Oe,cn].indexOf(U)>=0?-1:1,F=typeof K=="function"?K(Object.assign({},A,{placement:I})):K,ne=F[0],ae=F[1];return ne=ne||0,ae=(ae||0)*B,[Oe,ze].indexOf(U)>=0?{x:ae,y:ne}:{x:ne,y:ae}}function Qn(I){var A=I.state,K=I.options,U=I.name,B=K.offset,F=B===void 0?[0,0]:B,ne=Pe.reduce(function(le,pe){return le[pe]=an(pe,A.rects,F),le},{}),ae=ne[A.placement],ce=ae.x,oe=ae.y;A.modifiersData.popperOffsets!=null&&(A.modifiersData.popperOffsets.x+=ce,A.modifiersData.popperOffsets.y+=oe),A.modifiersData[U]=ne}var ot={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Qn},ct={left:"right",right:"left",bottom:"top",top:"bottom"};function Bn(I){return I.replace(/left|right|bottom|top/g,function(A){return ct[A]})}var $e={start:"end",end:"start"};function Zn(I){return I.replace(/start|end/g,function(A){return $e[A]})}function $t(I,A){var K=z(I),U=he(I),B=K.visualViewport,F=U.clientWidth,ne=U.clientHeight,ae=0,ce=0;if(B){F=B.width,ne=B.height;var oe=J();(oe||!oe&&A==="fixed")&&(ae=B.offsetLeft,ce=B.offsetTop)}return{width:F,height:ne,x:ae+be(I),y:ce}}function Lr(I){var A,K=he(I),U=ee(I),B=(A=I.ownerDocument)==null?void 0:A.body,F=Y(K.scrollWidth,K.clientWidth,B?B.scrollWidth:0,B?B.clientWidth:0),ne=Y(K.scrollHeight,K.clientHeight,B?B.scrollHeight:0,B?B.clientHeight:0),ae=-U.scrollLeft+be(I),ce=-U.scrollTop;return je(B||K).direction==="rtl"&&(ae+=Y(K.clientWidth,B?B.clientWidth:0)-F),{width:F,height:ne,x:ae,y:ce}}function Wo(I,A){var K=A.getRootNode&&A.getRootNode();if(I.contains(A))return!0;if(K&&H(K)){var U=A;do{if(U&&I.isSameNode(U))return!0;U=U.parentNode||U.host}while(U)}return!1}function Qr(I){return Object.assign({},I,{left:I.x,top:I.y,right:I.x+I.width,bottom:I.y+I.height})}function Kr(I,A){var K=X(I,!1,A==="fixed");return K.top=K.top+I.clientTop,K.left=K.left+I.clientLeft,K.bottom=K.top+I.clientHeight,K.right=K.left+I.clientWidth,K.width=I.clientWidth,K.height=I.clientHeight,K.x=K.left,K.y=K.top,K}function Jt(I,A,K){return A===kn?Qr($t(I,K)):V(A)?Kr(A,K):Qr(Lr(he(I)))}function nl(I){var A=Mn(De(I)),K=["absolute","fixed"].indexOf(je(I).position)>=0,U=K&&k(I)?xn(I):I;return V(U)?A.filter(function(B){return V(B)&&Wo(B,U)&&ue(B)!=="body"}):[]}function Qt(I,A,K,U){var B=A==="clippingParents"?nl(I):[].concat(A),F=[].concat(B,[K]),ne=F[0],ae=F.reduce(function(ce,oe){var le=Jt(I,oe,U);return ce.top=Y(le.top,ce.top),ce.right=q(le.right,ce.right),ce.bottom=q(le.bottom,ce.bottom),ce.left=Y(le.left,ce.left),ce},Jt(I,ne,U));return ae.width=ae.right-ae.left,ae.height=ae.bottom-ae.top,ae.x=ae.left,ae.y=ae.top,ae}function Yi(){return{top:0,right:0,bottom:0,left:0}}function Ji(I){return Object.assign({},Yi(),I)}function Qi(I,A){return A.reduce(function(K,U){return K[U]=I,K},{})}function Ur(I,A){A===void 0&&(A={});var K=A,U=K.placement,B=U===void 0?I.placement:U,F=K.strategy,ne=F===void 0?I.strategy:F,ae=K.boundary,ce=ae===void 0?Un:ae,oe=K.rootBoundary,le=oe===void 0?kn:oe,pe=K.elementContext,Ie=pe===void 0?Rn:pe,ge=K.altBoundary,Ae=ge===void 0?!1:ge,Le=K.padding,He=Le===void 0?0:Le,Ve=Ji(typeof He!="number"?He:Qi(He,Ze)),tn=Ie===Rn?En:Rn,fn=I.rects.popper,Te=I.elements[Ae?tn:Ie],Ye=Qt(V(Te)?Te:Te.contextElement||he(I.elements.popper),ce,le,ne),un=X(I.elements.reference),Sn=St({reference:un,element:fn,strategy:"absolute",placement:B}),jn=Qr(Object.assign({},fn,Sn)),Cn=Ie===Rn?jn:un,Fe={top:Ye.top-Cn.top+Ve.top,bottom:Cn.bottom-Ye.bottom+Ve.bottom,left:Ye.left-Cn.left+Ve.left,right:Cn.right-Ye.right+Ve.right},pn=I.modifiersData.offset;if(Ie===Rn&&pn){var hn=pn[B];Object.keys(Fe).forEach(function(Tn){var Xn=[ze,Se].indexOf(Tn)>=0?1:-1,Ot=[cn,Se].indexOf(Tn)>=0?"y":"x";Fe[Tn]+=hn[Ot]*Xn})}return Fe}function Oa(I,A){A===void 0&&(A={});var K=A,U=K.placement,B=K.boundary,F=K.rootBoundary,ne=K.padding,ae=K.flipVariations,ce=K.allowedAutoPlacements,oe=ce===void 0?Pe:ce,le=nt(U),pe=le?ae?on:on.filter(function(Ae){return nt(Ae)===le}):Ze,Ie=pe.filter(function(Ae){return oe.indexOf(Ae)>=0});Ie.length===0&&(Ie=pe);var ge=Ie.reduce(function(Ae,Le){return Ae[Le]=Ur(I,{placement:Le,boundary:B,rootBoundary:F,padding:ne})[it(Le)],Ae},{});return Object.keys(ge).sort(function(Ae,Le){return ge[Ae]-ge[Le]})}function wo(I){if(it(I)===Je)return[];var A=Bn(I);return[Zn(I),A,Zn(A)]}function Ma(I){var A=I.state,K=I.options,U=I.name;if(!A.modifiersData[U]._skip){for(var B=K.mainAxis,F=B===void 0?!0:B,ne=K.altAxis,ae=ne===void 0?!0:ne,ce=K.fallbackPlacements,oe=K.padding,le=K.boundary,pe=K.rootBoundary,Ie=K.altBoundary,ge=K.flipVariations,Ae=ge===void 0?!0:ge,Le=K.allowedAutoPlacements,He=A.options.placement,Ve=it(He),tn=Ve===He,fn=ce||(tn||!Ae?[Bn(He)]:wo(He)),Te=[He].concat(fn).reduce(function(Xr,Ut){return Xr.concat(it(Ut)===Je?Oa(A,{placement:Ut,boundary:le,rootBoundary:pe,padding:oe,flipVariations:Ae,allowedAutoPlacements:Le}):Ut)},[]),Ye=A.rects.reference,un=A.rects.popper,Sn=new Map,jn=!0,Cn=Te[0],Fe=0;Fe=0,Ot=Xn?"width":"height",Jn=Ur(A,{placement:pn,boundary:le,rootBoundary:pe,altBoundary:Ie,padding:oe}),ut=Xn?Tn?ze:Oe:Tn?Se:cn;Ye[Ot]>un[Ot]&&(ut=Bn(ut));var fr=Bn(ut),Nn=[];if(F&&Nn.push(Jn[hn]<=0),ae&&Nn.push(Jn[ut]<=0,Jn[fr]<=0),Nn.every(function(Xr){return Xr})){Cn=pn,jn=!1;break}Sn.set(pn,Nn)}if(jn)for(var tt=Ae?3:1,ht=function(Ut){var Do=Te.find(function(So){var Vn=Sn.get(So);if(Vn)return Vn.slice(0,Ut).every(function(bo){return bo})});if(Do)return Cn=Do,"break"},mt=tt;mt>0;mt--){var hr=ht(mt);if(hr==="break")break}A.placement!==Cn&&(A.modifiersData[U]._skip=!0,A.placement=Cn,A.reset=!0)}}var tl={name:"flip",enabled:!0,phase:"main",fn:Ma,requiresIfExists:["offset"],data:{_skip:!1}};function rl(I){return I==="x"?"y":"x"}function Zr(I,A,K){return Y(I,q(A,K))}function Zi(I,A,K){var U=Zr(I,A,K);return U>K?K:U}function ti(I){var A=I.state,K=I.options,U=I.name,B=K.mainAxis,F=B===void 0?!0:B,ne=K.altAxis,ae=ne===void 0?!1:ne,ce=K.boundary,oe=K.rootBoundary,le=K.altBoundary,pe=K.padding,Ie=K.tether,ge=Ie===void 0?!0:Ie,Ae=K.tetherOffset,Le=Ae===void 0?0:Ae,He=Ur(A,{boundary:ce,rootBoundary:oe,padding:pe,altBoundary:le}),Ve=it(A.placement),tn=nt(A.placement),fn=!tn,Te=zt(Ve),Ye=rl(Te),un=A.modifiersData.popperOffsets,Sn=A.rects.reference,jn=A.rects.popper,Cn=typeof Le=="function"?Le(Object.assign({},A.rects,{placement:A.placement})):Le,Fe=typeof Cn=="number"?{mainAxis:Cn,altAxis:Cn}:Object.assign({mainAxis:0,altAxis:0},Cn),pn=A.modifiersData.offset?A.modifiersData.offset[A.placement]:null,hn={x:0,y:0};if(un){if(F){var Tn,Xn=Te==="y"?cn:Oe,Ot=Te==="y"?Se:ze,Jn=Te==="y"?"height":"width",ut=un[Te],fr=ut+He[Xn],Nn=ut-He[Ot],tt=ge?-jn[Jn]/2:0,ht=tn===Xe?Sn[Jn]:jn[Jn],mt=tn===Xe?-jn[Jn]:-Sn[Jn],hr=A.elements.arrow,Xr=ge&&hr?en(hr):{width:0,height:0},Ut=A.modifiersData["arrow#persistent"]?A.modifiersData["arrow#persistent"].padding:Yi(),Do=Ut[Xn],So=Ut[Ot],Vn=Zr(0,Sn[Jn],Xr[Jn]),bo=fn?Sn[Jn]/2-tt-Vn-Do-Fe.mainAxis:ht-Vn-Do-Fe.mainAxis,zi=fn?-Sn[Jn]/2+tt+Vn+So+Fe.mainAxis:mt+Vn+So+Fe.mainAxis,ma=A.elements.arrow&&xn(A.elements.arrow),Va=ma?Te==="y"?ma.clientTop||0:ma.clientLeft||0:0,Ha=(Tn=pn==null?void 0:pn[Te])!=null?Tn:0,lo=ut+bo-Ha-Va,et=ut+zi-Ha,st=Zr(ge?q(fr,lo):fr,ut,ge?Y(Nn,et):Nn);un[Te]=st,hn[Te]=st-ut}if(ae){var dt,Ga=Te==="x"?cn:Oe,va=Te==="x"?Se:ze,tr=un[Ye],Xa=Ye==="y"?"height":"width",pt=tr+He[Ga],Ya=tr-He[va],ga=[cn,Oe].indexOf(Ve)!==-1,Ja=(dt=pn==null?void 0:pn[Ye])!=null?dt:0,rr=ga?pt:tr-Sn[Xa]-jn[Xa]-Ja+Fe.altAxis,Nt=ga?tr+Sn[Xa]+jn[Xa]-Ja-Fe.altAxis:Ya,Ao=ge&&ga?Zi(rr,tr,Nt):Zr(ge?rr:pt,tr,ge?Nt:Ya);un[Ye]=Ao,hn[Ye]=Ao-tr}A.modifiersData[U]=hn}}var zo={name:"preventOverflow",enabled:!0,phase:"main",fn:ti,requiresIfExists:["offset"]},ol=function(A,K){return A=typeof A=="function"?A(Object.assign({},K.rects,{placement:K.placement})):A,Ji(typeof A!="number"?A:Qi(A,Ze))};function ri(I){var A,K=I.state,U=I.name,B=I.options,F=K.elements.arrow,ne=K.modifiersData.popperOffsets,ae=it(K.placement),ce=zt(ae),oe=[Oe,ze].indexOf(ae)>=0,le=oe?"height":"width";if(!(!F||!ne)){var pe=ol(B.padding,K),Ie=en(F),ge=ce==="y"?cn:Oe,Ae=ce==="y"?Se:ze,Le=K.rects.reference[le]+K.rects.reference[ce]-ne[ce]-K.rects.popper[le],He=ne[ce]-K.rects.reference[ce],Ve=xn(F),tn=Ve?ce==="y"?Ve.clientHeight||0:Ve.clientWidth||0:0,fn=Le/2-He/2,Te=pe[ge],Ye=tn-Ie[le]-pe[Ae],un=tn/2-Ie[le]/2+fn,Sn=Zr(Te,un,Ye),jn=ce;K.modifiersData[U]=(A={},A[jn]=Sn,A.centerOffset=Sn-un,A)}}function Fn(I){var A=I.state,K=I.options,U=K.element,B=U===void 0?"[data-popper-arrow]":U;B!=null&&(typeof B=="string"&&(B=A.elements.popper.querySelector(B),!B)||Wo(A.elements.popper,B)&&(A.elements.arrow=B))}var qi={name:"arrow",enabled:!0,phase:"main",fn:ri,effect:Fn,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function oi(I,A,K){return K===void 0&&(K={x:0,y:0}),{top:I.top-A.height-K.y,right:I.right-A.width+K.x,bottom:I.bottom-A.height+K.y,left:I.left-A.width-K.x}}function Pa(I){return[cn,ze,Se,Oe].some(function(A){return I[A]>=0})}function es(I){var A=I.state,K=I.name,U=A.rects.reference,B=A.rects.popper,F=A.modifiersData.preventOverflow,ne=Ur(A,{elementContext:"reference"}),ae=Ur(A,{altBoundary:!0}),ce=oi(ne,U),oe=oi(ae,B,F),le=Pa(ce),pe=Pa(oe);A.modifiersData[K]={referenceClippingOffsets:ce,popperEscapeOffsets:oe,isReferenceHidden:le,hasPopperEscaped:pe},A.attributes.popper=Object.assign({},A.attributes.popper,{"data-popper-reference-hidden":le,"data-popper-escaped":pe})}var ns={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:es},ts=[ar,te,Me,Dn,ot,tl,zo,qi,ns],_a=Br({defaultModifiers:ts}),fo=n(32394);function Zt(){return Zt=Object.assign||function(I){for(var A=1;A=0)&&(K[B]=I[B]);return K}var L=/-o$/,N=function(I){var A=I.name,K=I.size,U=I.spin,B=I.className,F=I.rotation,ne=b(I,["name","size","spin","className","rotation"]),ae=ne.style||{};K&&(ae.fontSize=K*100+"%"),F&&(ae.transform="rotate("+F+"deg)"),ne.style=ae;var ce=(0,C.Fl)(ne),oe="";if(A.startsWith("tg-"))oe=A;else{var le=L.test(A),pe=A.replace(L,""),Ie=!pe.startsWith("fa-");oe=le?"far ":"fas ",Ie&&(oe+="fa-"),oe+=pe,U&&(oe+=" fa-spin")}return(0,e.jsx)("i",T({className:(0,j.Ly)(["Icon",oe,B,(0,C.WP)(ne)])},ce))},$=function(I){var A=I.className,K=I.children,U=b(I,["className","children"]);return(0,e.jsx)("span",T({className:(0,j.Ly)(["IconStack",A,(0,C.WP)(U)])},(0,C.Fl)(U),{children:K}))};N.Stack=$;function z(I){if(I==null)return window;if(I.toString()!=="[object Window]"){var A=I.ownerDocument;return A&&A.defaultView||window}return I}function w(I,A){return A!=null&&typeof Symbol!="undefined"&&A[Symbol.hasInstance]?!!A[Symbol.hasInstance](I):I instanceof A}function V(I){var A=z(I).Element;return w(I,A)||w(I,Element)}function k(I){var A=z(I).HTMLElement;return w(I,A)||w(I,HTMLElement)}function H(I){if(typeof ShadowRoot=="undefined")return!1;var A=z(I).ShadowRoot;return w(I,A)||w(I,ShadowRoot)}var Y=Math.max,q=Math.min,Z=Math.round;function J(){var I=navigator.userAgentData;return I!=null&&I.brands&&Array.isArray(I.brands)?I.brands.map(function(A){return A.brand+"/"+A.version}).join(" "):navigator.userAgent}function Q(){return!/^((?!chrome|android).)*safari/i.test(J())}function X(I,A,K){A===void 0&&(A=!1),K===void 0&&(K=!1);var U=I.getBoundingClientRect(),B=1,F=1;A&&k(I)&&(B=I.offsetWidth>0&&Z(U.width)/I.offsetWidth||1,F=I.offsetHeight>0&&Z(U.height)/I.offsetHeight||1);var ne=V(I)?z(I):window,ae=ne.visualViewport,ce=!Q()&&K,oe=(U.left+(ce&&ae?ae.offsetLeft:0))/B,le=(U.top+(ce&&ae?ae.offsetTop:0))/F,pe=U.width/B,Ie=U.height/F;return{width:pe,height:Ie,top:le,right:oe+pe,bottom:le+Ie,left:oe,x:oe,y:le}}function ee(I){var A=z(I),K=A.pageXOffset,U=A.pageYOffset;return{scrollLeft:K,scrollTop:U}}function se(I){return{scrollLeft:I.scrollLeft,scrollTop:I.scrollTop}}function ie(I){return I===z(I)||!k(I)?ee(I):se(I)}function fe(I){return I?(I.nodeName||"").toLowerCase():null}function he(I){return((V(I)?I.ownerDocument:I.document)||window.document).documentElement}function be(I){return X(he(I)).left+ee(I).scrollLeft}function je(I){return z(I).getComputedStyle(I)}function Ce(I){var A=je(I),K=A.overflow,U=A.overflowX,B=A.overflowY;return/auto|scroll|overlay|hidden/.test(K+B+U)}function Ne(I){var A=I.getBoundingClientRect(),K=Z(A.width)/I.offsetWidth||1,U=Z(A.height)/I.offsetHeight||1;return K!==1||U!==1}function sn(I,A,K){K===void 0&&(K=!1);var U=k(A),B=k(A)&&Ne(A),F=he(A),ne=X(I,B,K),ae={scrollLeft:0,scrollTop:0},ce={x:0,y:0};return(U||!U&&!K)&&((fe(A)!=="body"||Ce(F))&&(ae=ie(A)),k(A)?(ce=X(A,!0),ce.x+=A.clientLeft,ce.y+=A.clientTop):F&&(ce.x=be(F))),{x:ne.left+ae.scrollLeft-ce.x,y:ne.top+ae.scrollTop-ce.y,width:ne.width,height:ne.height}}function en(I){var A=X(I),K=I.offsetWidth,U=I.offsetHeight;return Math.abs(A.width-K)<=1&&(K=A.width),Math.abs(A.height-U)<=1&&(U=A.height),{x:I.offsetLeft,y:I.offsetTop,width:K,height:U}}function De(I){return fe(I)==="html"?I:I.assignedSlot||I.parentNode||(H(I)?I.host:null)||he(I)}function Qe(I){return["html","body","#document"].indexOf(fe(I))>=0?I.ownerDocument.body:k(I)&&Ce(I)?I:Qe(De(I))}function Mn(I,A){var K;A===void 0&&(A=[]);var U=Qe(I),B=U===((K=I.ownerDocument)==null?void 0:K.body),F=z(U),ne=B?[F].concat(F.visualViewport||[],Ce(U)?U:[]):U,ae=A.concat(ne);return B?ae:ae.concat(Mn(De(ne)))}function Pn(I){return["table","td","th"].indexOf(fe(I))>=0}function gn(I){return!k(I)||je(I).position==="fixed"?null:I.offsetParent}function An(I){var A=/firefox/i.test(J()),K=/Trident/i.test(J());if(K&&k(I)){var U=je(I);if(U.position==="fixed")return null}var B=De(I);for(H(B)&&(B=B.host);k(B)&&["html","body"].indexOf(fe(B))<0;){var F=je(B);if(F.transform!=="none"||F.perspective!=="none"||F.contain==="paint"||["transform","perspective"].indexOf(F.willChange)!==-1||A&&F.willChange==="filter"||A&&F.filter&&F.filter!=="none")return B;B=B.parentNode}return null}function xn(I){for(var A=z(I),K=gn(I);K&&Pn(K)&&je(K).position==="static";)K=gn(K);return K&&(fe(K)==="html"||fe(K)==="body"&&je(K).position==="static")?A:K||An(I)||A}var cn="top",Se="bottom",ze="right",Oe="left",Je="auto",Ze=[cn,Se,ze,Oe],Xe="start",qe="end",Un="clippingParents",kn="viewport",Rn="popper",En="reference",on=Ze.reduce(function(I,A){return I.concat([A+"-"+Xe,A+"-"+qe])},[]),Pe=[].concat(Ze,[Je]).reduce(function(I,A){return I.concat([A,A+"-"+Xe,A+"-"+qe])},[]),Re="beforeRead",ke="read",nn="afterRead",_n="beforeMain",In="main",Wn="afterMain",Kn="beforeWrite",wn="write",at="afterWrite",jt=[Re,ke,nn,_n,In,Wn,Kn,wn,at];function Bt(I){var A=new Map,K=new Set,U=[];I.forEach(function(F){A.set(F.name,F)});function B(F){K.add(F.name);var ne=[].concat(F.requires||[],F.requiresIfExists||[]);ne.forEach(function(ae){if(!K.has(ae)){var ce=A.get(ae);ce&&B(ce)}}),U.push(F)}return I.forEach(function(F){K.has(F.name)||B(F)}),U}function gr(I){var A=Bt(I);return jt.reduce(function(K,U){return K.concat(A.filter(function(B){return B.phase===U}))},[])}function Tr(I){var A;return function(){return A||(A=new Promise(function(K){Promise.resolve().then(function(){A=void 0,K(I())})})),A}}function Rr(I){var A=I.reduce(function(K,U){var B=K[U.name];return K[U.name]=B?Object.assign({},B,U,{options:Object.assign({},B.options,U.options),data:Object.assign({},B.data,U.data)}):U,K},{});return Object.keys(A).map(function(K){return A[K]})}var xr={placement:"bottom",modifiers:[],strategy:"absolute"};function pr(){for(var I=arguments.length,A=new Array(I),K=0;K=0?"x":"y"}function St(I){var A=I.reference,K=I.element,U=I.placement,B=U?it(U):null,F=U?nt(U):null,ne=A.x+A.width/2-K.width/2,ae=A.y+A.height/2-K.height/2,ce;switch(B){case cn:ce={x:ne,y:A.y-K.height};break;case Se:ce={x:ne,y:A.y+A.height};break;case ze:ce={x:A.x+A.width,y:ae};break;case Oe:ce={x:A.x-K.width,y:ae};break;default:ce={x:A.x,y:A.y}}var oe=B?zt(B):null;if(oe!=null){var le=oe==="y"?"height":"width";switch(F){case Xe:ce[oe]=ce[oe]-(A[le]/2-K[le]/2);break;case qe:ce[oe]=ce[oe]+(A[le]/2-K[le]/2);break;default:}}return ce}function rt(I){var A=I.state,K=I.name;A.modifiersData[K]=St({reference:A.rects.reference,element:A.rects.popper,strategy:"absolute",placement:A.placement})}var te={name:"popperOffsets",enabled:!0,phase:"read",fn:rt,data:{}},Ue={top:"auto",right:"auto",bottom:"auto",left:"auto"};function ya(I,A){var K=I.x,U=I.y,B=A.devicePixelRatio||1;return{x:Z(K*B)/B||0,y:Z(U*B)/B||0}}function xe(I){var A,K=I.popper,U=I.popperRect,B=I.placement,F=I.variation,ne=I.offsets,ae=I.position,ce=I.gpuAcceleration,oe=I.adaptive,le=I.roundOffsets,pe=I.isFixed,Ie=ne.x,ge=Ie===void 0?0:Ie,Ae=ne.y,Le=Ae===void 0?0:Ae,He=typeof le=="function"?le({x:ge,y:Le}):{x:ge,y:Le};ge=He.x,Le=He.y;var Ve=ne.hasOwnProperty("x"),tn=ne.hasOwnProperty("y"),fn=Oe,Te=cn,Ye=window;if(oe){var un=xn(K),Sn="clientHeight",jn="clientWidth";if(un===z(K)&&(un=he(K),je(un).position!=="static"&&ae==="absolute"&&(Sn="scrollHeight",jn="scrollWidth")),un=un,B===cn||(B===Oe||B===ze)&&F===qe){Te=Se;var Cn=pe&&un===Ye&&Ye.visualViewport?Ye.visualViewport.height:un[Sn];Le-=Cn-U.height,Le*=ce?1:-1}if(B===Oe||(B===cn||B===Se)&&F===qe){fn=ze;var Fe=pe&&un===Ye&&Ye.visualViewport?Ye.visualViewport.width:un[jn];ge-=Fe-U.width,ge*=ce?1:-1}}var pn=Object.assign({position:ae},oe&&Ue),hn=le===!0?ya({x:ge,y:Le},z(K)):{x:ge,y:Le};if(ge=hn.x,Le=hn.y,ce){var Tn;return Object.assign({},pn,(Tn={},Tn[Te]=tn?"0":"",Tn[fn]=Ve?"0":"",Tn.transform=(Ye.devicePixelRatio||1)<=1?"translate("+ge+"px, "+Le+"px)":"translate3d("+ge+"px, "+Le+"px, 0)",Tn))}return Object.assign({},pn,(A={},A[Te]=tn?Le+"px":"",A[fn]=Ve?ge+"px":"",A.transform="",A))}function We(I){var A=I.state,K=I.options,U=K.gpuAcceleration,B=U===void 0?!0:U,F=K.adaptive,ne=F===void 0?!0:F,ae=K.roundOffsets,ce=ae===void 0?!0:ae,oe={placement:it(A.placement),variation:nt(A.placement),popper:A.elements.popper,popperRect:A.rects.popper,gpuAcceleration:B,isFixed:A.options.strategy==="fixed"};A.modifiersData.popperOffsets!=null&&(A.styles.popper=Object.assign({},A.styles.popper,xe(Object.assign({},oe,{offsets:A.modifiersData.popperOffsets,position:A.options.strategy,adaptive:ne,roundOffsets:ce})))),A.modifiersData.arrow!=null&&(A.styles.arrow=Object.assign({},A.styles.arrow,xe(Object.assign({},oe,{offsets:A.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:ce})))),A.attributes.popper=Object.assign({},A.attributes.popper,{"data-popper-placement":A.placement})}var Me={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:We,data:{}};function me(I){var A=I.state;Object.keys(A.elements).forEach(function(K){var U=A.styles[K]||{},B=A.attributes[K]||{},F=A.elements[K];!k(F)||!fe(F)||(Object.assign(F.style,U),Object.keys(B).forEach(function(ne){var ae=B[ne];ae===!1?F.removeAttribute(ne):F.setAttribute(ne,ae===!0?"":ae)}))})}function Be(I){var A=I.state,K={popper:{position:A.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(A.elements.popper.style,K.popper),A.styles=K,A.elements.arrow&&Object.assign(A.elements.arrow.style,K.arrow),function(){Object.keys(A.elements).forEach(function(U){var B=A.elements[U],F=A.attributes[U]||{},ne=Object.keys(A.styles.hasOwnProperty(U)?A.styles[U]:K[U]),ae=ne.reduce(function(ce,oe){return ce[oe]="",ce},{});!k(B)||!fe(B)||(Object.assign(B.style,ae),Object.keys(F).forEach(function(ce){B.removeAttribute(ce)}))})}}var Dn={name:"applyStyles",enabled:!0,phase:"write",fn:me,effect:Be,requires:["computeStyles"]};function an(I,A,K){var U=it(I),B=[Oe,cn].indexOf(U)>=0?-1:1,F=typeof K=="function"?K(Object.assign({},A,{placement:I})):K,ne=F[0],ae=F[1];return ne=ne||0,ae=(ae||0)*B,[Oe,ze].indexOf(U)>=0?{x:ae,y:ne}:{x:ne,y:ae}}function Qn(I){var A=I.state,K=I.options,U=I.name,B=K.offset,F=B===void 0?[0,0]:B,ne=Pe.reduce(function(le,pe){return le[pe]=an(pe,A.rects,F),le},{}),ae=ne[A.placement],ce=ae.x,oe=ae.y;A.modifiersData.popperOffsets!=null&&(A.modifiersData.popperOffsets.x+=ce,A.modifiersData.popperOffsets.y+=oe),A.modifiersData[U]=ne}var ot={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Qn},ct={left:"right",right:"left",bottom:"top",top:"bottom"};function Bn(I){return I.replace(/left|right|bottom|top/g,function(A){return ct[A]})}var $e={start:"end",end:"start"};function Zn(I){return I.replace(/start|end/g,function(A){return $e[A]})}function $t(I,A){var K=z(I),U=he(I),B=K.visualViewport,F=U.clientWidth,ne=U.clientHeight,ae=0,ce=0;if(B){F=B.width,ne=B.height;var oe=Q();(oe||!oe&&A==="fixed")&&(ae=B.offsetLeft,ce=B.offsetTop)}return{width:F,height:ne,x:ae+be(I),y:ce}}function Lr(I){var A,K=he(I),U=ee(I),B=(A=I.ownerDocument)==null?void 0:A.body,F=Y(K.scrollWidth,K.clientWidth,B?B.scrollWidth:0,B?B.clientWidth:0),ne=Y(K.scrollHeight,K.clientHeight,B?B.scrollHeight:0,B?B.clientHeight:0),ae=-U.scrollLeft+be(I),ce=-U.scrollTop;return je(B||K).direction==="rtl"&&(ae+=Y(K.clientWidth,B?B.clientWidth:0)-F),{width:F,height:ne,x:ae,y:ce}}function Wo(I,A){var K=A.getRootNode&&A.getRootNode();if(I.contains(A))return!0;if(K&&H(K)){var U=A;do{if(U&&I.isSameNode(U))return!0;U=U.parentNode||U.host}while(U)}return!1}function Qr(I){return Object.assign({},I,{left:I.x,top:I.y,right:I.x+I.width,bottom:I.y+I.height})}function Kr(I,A){var K=X(I,!1,A==="fixed");return K.top=K.top+I.clientTop,K.left=K.left+I.clientLeft,K.bottom=K.top+I.clientHeight,K.right=K.left+I.clientWidth,K.width=I.clientWidth,K.height=I.clientHeight,K.x=K.left,K.y=K.top,K}function Jt(I,A,K){return A===kn?Qr($t(I,K)):V(A)?Kr(A,K):Qr(Lr(he(I)))}function nl(I){var A=Mn(De(I)),K=["absolute","fixed"].indexOf(je(I).position)>=0,U=K&&k(I)?xn(I):I;return V(U)?A.filter(function(B){return V(B)&&Wo(B,U)&&fe(B)!=="body"}):[]}function Qt(I,A,K,U){var B=A==="clippingParents"?nl(I):[].concat(A),F=[].concat(B,[K]),ne=F[0],ae=F.reduce(function(ce,oe){var le=Jt(I,oe,U);return ce.top=Y(le.top,ce.top),ce.right=q(le.right,ce.right),ce.bottom=q(le.bottom,ce.bottom),ce.left=Y(le.left,ce.left),ce},Jt(I,ne,U));return ae.width=ae.right-ae.left,ae.height=ae.bottom-ae.top,ae.x=ae.left,ae.y=ae.top,ae}function Yi(){return{top:0,right:0,bottom:0,left:0}}function Ji(I){return Object.assign({},Yi(),I)}function Qi(I,A){return A.reduce(function(K,U){return K[U]=I,K},{})}function Ur(I,A){A===void 0&&(A={});var K=A,U=K.placement,B=U===void 0?I.placement:U,F=K.strategy,ne=F===void 0?I.strategy:F,ae=K.boundary,ce=ae===void 0?Un:ae,oe=K.rootBoundary,le=oe===void 0?kn:oe,pe=K.elementContext,Ie=pe===void 0?Rn:pe,ge=K.altBoundary,Ae=ge===void 0?!1:ge,Le=K.padding,He=Le===void 0?0:Le,Ve=Ji(typeof He!="number"?He:Qi(He,Ze)),tn=Ie===Rn?En:Rn,fn=I.rects.popper,Te=I.elements[Ae?tn:Ie],Ye=Qt(V(Te)?Te:Te.contextElement||he(I.elements.popper),ce,le,ne),un=X(I.elements.reference),Sn=St({reference:un,element:fn,strategy:"absolute",placement:B}),jn=Qr(Object.assign({},fn,Sn)),Cn=Ie===Rn?jn:un,Fe={top:Ye.top-Cn.top+Ve.top,bottom:Cn.bottom-Ye.bottom+Ve.bottom,left:Ye.left-Cn.left+Ve.left,right:Cn.right-Ye.right+Ve.right},pn=I.modifiersData.offset;if(Ie===Rn&&pn){var hn=pn[B];Object.keys(Fe).forEach(function(Tn){var Xn=[ze,Se].indexOf(Tn)>=0?1:-1,Ot=[cn,Se].indexOf(Tn)>=0?"y":"x";Fe[Tn]+=hn[Ot]*Xn})}return Fe}function Oa(I,A){A===void 0&&(A={});var K=A,U=K.placement,B=K.boundary,F=K.rootBoundary,ne=K.padding,ae=K.flipVariations,ce=K.allowedAutoPlacements,oe=ce===void 0?Pe:ce,le=nt(U),pe=le?ae?on:on.filter(function(Ae){return nt(Ae)===le}):Ze,Ie=pe.filter(function(Ae){return oe.indexOf(Ae)>=0});Ie.length===0&&(Ie=pe);var ge=Ie.reduce(function(Ae,Le){return Ae[Le]=Ur(I,{placement:Le,boundary:B,rootBoundary:F,padding:ne})[it(Le)],Ae},{});return Object.keys(ge).sort(function(Ae,Le){return ge[Ae]-ge[Le]})}function wo(I){if(it(I)===Je)return[];var A=Bn(I);return[Zn(I),A,Zn(A)]}function Ma(I){var A=I.state,K=I.options,U=I.name;if(!A.modifiersData[U]._skip){for(var B=K.mainAxis,F=B===void 0?!0:B,ne=K.altAxis,ae=ne===void 0?!0:ne,ce=K.fallbackPlacements,oe=K.padding,le=K.boundary,pe=K.rootBoundary,Ie=K.altBoundary,ge=K.flipVariations,Ae=ge===void 0?!0:ge,Le=K.allowedAutoPlacements,He=A.options.placement,Ve=it(He),tn=Ve===He,fn=ce||(tn||!Ae?[Bn(He)]:wo(He)),Te=[He].concat(fn).reduce(function(Xr,Ut){return Xr.concat(it(Ut)===Je?Oa(A,{placement:Ut,boundary:le,rootBoundary:pe,padding:oe,flipVariations:Ae,allowedAutoPlacements:Le}):Ut)},[]),Ye=A.rects.reference,un=A.rects.popper,Sn=new Map,jn=!0,Cn=Te[0],Fe=0;Fe=0,Ot=Xn?"width":"height",Jn=Ur(A,{placement:pn,boundary:le,rootBoundary:pe,altBoundary:Ie,padding:oe}),ut=Xn?Tn?ze:Oe:Tn?Se:cn;Ye[Ot]>un[Ot]&&(ut=Bn(ut));var fr=Bn(ut),Nn=[];if(F&&Nn.push(Jn[hn]<=0),ae&&Nn.push(Jn[ut]<=0,Jn[fr]<=0),Nn.every(function(Xr){return Xr})){Cn=pn,jn=!1;break}Sn.set(pn,Nn)}if(jn)for(var tt=Ae?3:1,ht=function(Ut){var Do=Te.find(function(So){var Vn=Sn.get(So);if(Vn)return Vn.slice(0,Ut).every(function(bo){return bo})});if(Do)return Cn=Do,"break"},mt=tt;mt>0;mt--){var hr=ht(mt);if(hr==="break")break}A.placement!==Cn&&(A.modifiersData[U]._skip=!0,A.placement=Cn,A.reset=!0)}}var tl={name:"flip",enabled:!0,phase:"main",fn:Ma,requiresIfExists:["offset"],data:{_skip:!1}};function rl(I){return I==="x"?"y":"x"}function Zr(I,A,K){return Y(I,q(A,K))}function Zi(I,A,K){var U=Zr(I,A,K);return U>K?K:U}function ti(I){var A=I.state,K=I.options,U=I.name,B=K.mainAxis,F=B===void 0?!0:B,ne=K.altAxis,ae=ne===void 0?!1:ne,ce=K.boundary,oe=K.rootBoundary,le=K.altBoundary,pe=K.padding,Ie=K.tether,ge=Ie===void 0?!0:Ie,Ae=K.tetherOffset,Le=Ae===void 0?0:Ae,He=Ur(A,{boundary:ce,rootBoundary:oe,padding:pe,altBoundary:le}),Ve=it(A.placement),tn=nt(A.placement),fn=!tn,Te=zt(Ve),Ye=rl(Te),un=A.modifiersData.popperOffsets,Sn=A.rects.reference,jn=A.rects.popper,Cn=typeof Le=="function"?Le(Object.assign({},A.rects,{placement:A.placement})):Le,Fe=typeof Cn=="number"?{mainAxis:Cn,altAxis:Cn}:Object.assign({mainAxis:0,altAxis:0},Cn),pn=A.modifiersData.offset?A.modifiersData.offset[A.placement]:null,hn={x:0,y:0};if(un){if(F){var Tn,Xn=Te==="y"?cn:Oe,Ot=Te==="y"?Se:ze,Jn=Te==="y"?"height":"width",ut=un[Te],fr=ut+He[Xn],Nn=ut-He[Ot],tt=ge?-jn[Jn]/2:0,ht=tn===Xe?Sn[Jn]:jn[Jn],mt=tn===Xe?-jn[Jn]:-Sn[Jn],hr=A.elements.arrow,Xr=ge&&hr?en(hr):{width:0,height:0},Ut=A.modifiersData["arrow#persistent"]?A.modifiersData["arrow#persistent"].padding:Yi(),Do=Ut[Xn],So=Ut[Ot],Vn=Zr(0,Sn[Jn],Xr[Jn]),bo=fn?Sn[Jn]/2-tt-Vn-Do-Fe.mainAxis:ht-Vn-Do-Fe.mainAxis,zi=fn?-Sn[Jn]/2+tt+Vn+So+Fe.mainAxis:mt+Vn+So+Fe.mainAxis,ma=A.elements.arrow&&xn(A.elements.arrow),Va=ma?Te==="y"?ma.clientTop||0:ma.clientLeft||0:0,Ha=(Tn=pn==null?void 0:pn[Te])!=null?Tn:0,lo=ut+bo-Ha-Va,et=ut+zi-Ha,st=Zr(ge?q(fr,lo):fr,ut,ge?Y(Nn,et):Nn);un[Te]=st,hn[Te]=st-ut}if(ae){var dt,Ga=Te==="x"?cn:Oe,va=Te==="x"?Se:ze,tr=un[Ye],Xa=Ye==="y"?"height":"width",pt=tr+He[Ga],Ya=tr-He[va],ga=[cn,Oe].indexOf(Ve)!==-1,Ja=(dt=pn==null?void 0:pn[Ye])!=null?dt:0,rr=ga?pt:tr-Sn[Xa]-jn[Xa]-Ja+Fe.altAxis,Nt=ga?tr+Sn[Xa]+jn[Xa]-Ja-Fe.altAxis:Ya,Ao=ge&&ga?Zi(rr,tr,Nt):Zr(ge?rr:pt,tr,ge?Nt:Ya);un[Ye]=Ao,hn[Ye]=Ao-tr}A.modifiersData[U]=hn}}var zo={name:"preventOverflow",enabled:!0,phase:"main",fn:ti,requiresIfExists:["offset"]},ol=function(A,K){return A=typeof A=="function"?A(Object.assign({},K.rects,{placement:K.placement})):A,Ji(typeof A!="number"?A:Qi(A,Ze))};function ri(I){var A,K=I.state,U=I.name,B=I.options,F=K.elements.arrow,ne=K.modifiersData.popperOffsets,ae=it(K.placement),ce=zt(ae),oe=[Oe,ze].indexOf(ae)>=0,le=oe?"height":"width";if(!(!F||!ne)){var pe=ol(B.padding,K),Ie=en(F),ge=ce==="y"?cn:Oe,Ae=ce==="y"?Se:ze,Le=K.rects.reference[le]+K.rects.reference[ce]-ne[ce]-K.rects.popper[le],He=ne[ce]-K.rects.reference[ce],Ve=xn(F),tn=Ve?ce==="y"?Ve.clientHeight||0:Ve.clientWidth||0:0,fn=Le/2-He/2,Te=pe[ge],Ye=tn-Ie[le]-pe[Ae],un=tn/2-Ie[le]/2+fn,Sn=Zr(Te,un,Ye),jn=ce;K.modifiersData[U]=(A={},A[jn]=Sn,A.centerOffset=Sn-un,A)}}function Fn(I){var A=I.state,K=I.options,U=K.element,B=U===void 0?"[data-popper-arrow]":U;B!=null&&(typeof B=="string"&&(B=A.elements.popper.querySelector(B),!B)||Wo(A.elements.popper,B)&&(A.elements.arrow=B))}var qi={name:"arrow",enabled:!0,phase:"main",fn:ri,effect:Fn,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function oi(I,A,K){return K===void 0&&(K={x:0,y:0}),{top:I.top-A.height-K.y,right:I.right-A.width+K.x,bottom:I.bottom-A.height+K.y,left:I.left-A.width-K.x}}function Pa(I){return[cn,ze,Se,Oe].some(function(A){return I[A]>=0})}function es(I){var A=I.state,K=I.name,U=A.rects.reference,B=A.rects.popper,F=A.modifiersData.preventOverflow,ne=Ur(A,{elementContext:"reference"}),ae=Ur(A,{altBoundary:!0}),ce=oi(ne,U),oe=oi(ae,B,F),le=Pa(ce),pe=Pa(oe);A.modifiersData[K]={referenceClippingOffsets:ce,popperEscapeOffsets:oe,isReferenceHidden:le,hasPopperEscaped:pe},A.attributes.popper=Object.assign({},A.attributes.popper,{"data-popper-reference-hidden":le,"data-popper-escaped":pe})}var ns={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:es},ts=[ar,te,Me,Dn,ot,tl,zo,qi,ns],_a=Br({defaultModifiers:ts}),fo=n(32394);function Zt(){return Zt=Object.assign||function(I){for(var A=1;A=0)&&(K[B]=I[B]);return K}function ii(I,A){var K,U,B,F,ne={label:0,sent:function(){if(B[0]&1)throw B[1];return B[1]},trys:[],ops:[]};return F={next:ae(0),throw:ae(1),return:ae(2)},typeof Symbol=="function"&&(F[Symbol.iterator]=function(){return this}),F;function ae(oe){return function(le){return ce([oe,le])}}function ce(oe){if(K)throw new TypeError("Generator is already executing.");for(;ne;)try{if(K=1,U&&(B=oe[0]&2?U.return:oe[0]?U.throw||((B=U.return)&&B.call(U),0):U.next)&&!(B=B.call(U,oe[1])).done)return B;switch(U=0,B&&(oe=[oe[0]&2,B.value]),oe[0]){case 0:case 1:B=oe;break;case 4:return ne.label++,{value:oe[1],done:!1};case 5:ne.label++,U=oe[1],oe=[0];continue;case 7:oe=ne.ops.pop(),ne.trys.pop();continue;default:if(B=ne.trys,!(B=B.length>0&&B[B.length-1])&&(oe[0]===6||oe[0]===2)){ne=0;continue}if(oe[0]===3&&(!B||oe[1]>B[0]&&oe[1]=0)&&(K[B]=I[B]);return K}function ii(I,A){var K,U,B,F,ne={label:0,sent:function(){if(B[0]&1)throw B[1];return B[1]},trys:[],ops:[]};return F={next:ae(0),throw:ae(1),return:ae(2)},typeof Symbol=="function"&&(F[Symbol.iterator]=function(){return this}),F;function ae(oe){return function(le){return ce([oe,le])}}function ce(oe){if(K)throw new TypeError("Generator is already executing.");for(;ne;)try{if(K=1,U&&(B=oe[0]&2?U.return:oe[0]?U.throw||((B=U.return)&&B.call(U),0):U.next)&&!(B=B.call(U,oe[1])).done)return B;switch(U=0,B&&(oe=[oe[0]&2,B.value]),oe[0]){case 0:case 1:B=oe;break;case 4:return ne.label++,{value:oe[1],done:!1};case 5:ne.label++,U=oe[1],oe=[0];continue;case 7:oe=ne.ops.pop(),ne.trys.pop();continue;default:if(B=ne.trys,!(B=B.length>0&&B[B.length-1])&&(oe[0]===6||oe[0]===2)){ne=0;continue}if(oe[0]===3&&(!B||oe[1]>B[0]&&oe[1]0&&(B.setState({suppressingFlicker:!0}),clearTimeout(B.flickerTimer),B.flickerTimer=setTimeout(function(){B.setState({suppressingFlicker:!1})},F))},B.handleDragStart=function(F){var ne=B.props,ae=ne.value,ce=ne.dragMatrix,oe=B.state.editing;oe||(document.body.style["pointer-events"]="none",B.ref=F.target,B.setState({dragging:!1,origin:gi(F,ce),value:ae,internalValue:ae}),B.timer=setTimeout(function(){B.setState({dragging:!0})},250),B.dragInterval=setInterval(function(){var le=B.state,pe=le.dragging,Ie=le.value,ge=B.props.onDrag;pe&&ge&&ge(F,Ie)},B.props.updateRate||gl),document.addEventListener("mousemove",B.handleDragMove),document.addEventListener("mouseup",B.handleDragEnd))},B.handleDragMove=function(F){var ne=B.props,ae=ne.minValue,ce=ne.maxValue,oe=ne.step,le=ne.stepPixelSize,pe=ne.dragMatrix;B.setState(function(Ie){var ge=mi({},Ie),Ae=gi(F,pe)-ge.origin;if(Ie.dragging){var Le=Number.isFinite(ae)?ae%oe:0;ge.internalValue=(0,o.qE)(ge.internalValue+Ae*oe/le,ae-oe,ce+oe),ge.value=(0,o.qE)(ge.internalValue-ge.internalValue%oe+Le,ae,ce),ge.origin=gi(F,pe)}else Math.abs(Ae)>4&&(ge.dragging=!0);return ge})},B.handleDragEnd=function(F){var ne=B.props,ae=ne.onChange,ce=ne.onDrag,oe=B.state,le=oe.dragging,pe=oe.value,Ie=oe.internalValue;if(document.body.style["pointer-events"]="auto",clearTimeout(B.timer),clearInterval(B.dragInterval),B.setState({dragging:!1,editing:!le,origin:null}),document.removeEventListener("mousemove",B.handleDragMove),document.removeEventListener("mouseup",B.handleDragEnd),le)B.suppressFlicker(),ae&&ae(F,pe),ce&&ce(F,pe);else if(B.inputRef){var ge=B.inputRef.current;ge.value=Ie,setTimeout(function(){ge.focus(),ge.select()},100)}},B}var K=A.prototype;return K.render=function(){var B=this,F=this.state,ne=F.dragging,ae=F.editing,ce=F.value,oe=F.suppressingFlicker,le=this.props,pe=le.animated,Ie=le.value,ge=le.unit,Ae=le.minValue,Le=le.maxValue,He=le.unclamped,Ve=le.format,tn=le.onChange,fn=le.onDrag,Te=le.children,Ye=le.height,un=le.lineHeight,Sn=le.fontSize,jn=Ie;(ne||oe)&&(jn=ce);var Cn=(0,e.jsxs)(e.Fragment,{children:[pe&&!ne&&!oe?(0,e.jsx)(l,{value:jn,format:Ve}):Ve?Ve(jn):jn,ge?" "+ge:""]}),Fe=(0,e.jsx)("input",{ref:this.inputRef,className:"NumberInput__input",style:{display:ae?void 0:"none",height:Ye,lineHeight:un,fontsize:Sn},onBlur:function(pn){if(ae){var hn;if(He?hn=parseFloat(pn.target.value):hn=(0,o.qE)(parseFloat(pn.target.value),Ae,Le),Number.isNaN(hn)){B.setState({editing:!1});return}B.setState({editing:!1,value:hn}),B.suppressFlicker(),tn&&tn(pn,hn),fn&&fn(pn,hn)}},onKeyDown:function(pn){if(pn.keyCode===13){var hn;if(He?hn=parseFloat(pn.target.value):hn=(0,o.qE)(parseFloat(pn.target.value),Ae,Le),Number.isNaN(hn)){B.setState({editing:!1});return}B.setState({editing:!1,value:hn}),B.suppressFlicker(),tn&&tn(pn,hn),fn&&fn(pn,hn);return}if(pn.keyCode===27){B.setState({editing:!1});return}}});return Te({dragging:ne,editing:ae,value:Ie,displayValue:jn,displayElement:Cn,inputElement:Fe,handleDragStart:this.handleDragStart})},A}(t.Component);Ta.defaultProps={minValue:-1/0,maxValue:1/0,step:1,stepPixelSize:1,suppressFlicker:50,dragMatrix:[1,0]};var xl=n(20878),xi=n.n(xl),Ra=function(A){return Array.isArray(A)?A[0]:A},pl=function(A){if(typeof A=="function"){for(var K=arguments.length,U=new Array(K>1?K-1:0),B=1;BTe.length-3?Te.length-1:Nn-2;var mt=(tt=Ot.current)==null?void 0:tt.children[ht];mt==null||mt.scrollIntoView({block:"nearest"})}function fr(Nn){if(!(Te.length<1||oe)){var tt=0,ht=Te.length-1,mt;Jn<0?mt=Nn==="next"?ht:tt:Nn==="next"?mt=Jn===ht?tt:Jn+1:mt=Jn===tt?ht:Jn-1,hn&&K&&ut(mt),tn==null||tn(Jo(Te[mt]))}}return(0,t.useEffect)(function(){var Nn;hn&&(K&&Jn!==jl&&ut(Jn),(Nn=Ot.current)==null||Nn.focus())},[hn]),(0,e.jsx)(ms,{isOpen:hn,onClickOutside:function(){return Tn(!1)},placement:Ye?"top-start":"bottom-start",content:(0,e.jsxs)("div",{className:"Layout Dropdown__menu",style:{minWidth:Le},ref:Ot,children:[Te.length===0&&(0,e.jsx)("div",{className:"Dropdown__menuentry",children:"No options"}),Te.map(function(Nn,tt){var ht=Jo(Nn);return(0,e.jsx)("div",{className:(0,j.Ly)(["Dropdown__menuentry",jn===ht&&"selected"]),onClick:function(){Tn(!1),tn==null||tn(ht)},children:typeof Nn=="string"?Nn:Nn.displayText},tt)})]}),children:(0,e.jsxs)("div",{className:"Dropdown",style:{width:(0,C.zA)(Fe)},children:[(0,e.jsxs)("div",{className:(0,j.Ly)(["Dropdown__control","Button","Button--dropdown","Button--color--"+ce,oe&&"Button--disabled",B]),onClick:function(Nn){oe&&!hn||(Tn(!hn),Ve==null||Ve(Nn))},children:[pe&&(0,e.jsx)(W,{mr:1,name:pe,rotation:Ie,spin:ge}),(0,e.jsx)("span",{className:"Dropdown__selected-text",style:{overflow:ne?"hidden":"visible"},children:le||jn&&Jo(jn)||Sn}),!He&&(0,e.jsx)("span",{className:"Dropdown__arrow-button",children:(0,e.jsx)(W,{name:Xn?"chevron-up":"chevron-down"})})]}),U&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(xt,{disabled:oe,height:1.8,icon:"chevron-left",onClick:function(){fr("previous")}}),(0,e.jsx)(xt,{disabled:oe,height:1.8,icon:"chevron-right",onClick:function(){fr("next")}})]})]})})}function Ba(I){if(I===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return I}function go(){return go=Object.assign||function(I){for(var A=1;A0&&(B.setState({suppressingFlicker:!0}),clearTimeout(B.flickerTimer),B.flickerTimer=setTimeout(function(){B.setState({suppressingFlicker:!1})},F))},B.handleDragStart=function(F){var ne=B.props,ae=ne.value,ce=ne.dragMatrix,oe=B.state.editing;oe||(document.body.style["pointer-events"]="none",B.ref=F.target,B.setState({dragging:!1,origin:gi(F,ce),value:ae,internalValue:ae}),B.timer=setTimeout(function(){B.setState({dragging:!0})},250),B.dragInterval=setInterval(function(){var le=B.state,pe=le.dragging,Ie=le.value,ge=B.props.onDrag;pe&&ge&&ge(F,Ie)},B.props.updateRate||gl),document.addEventListener("mousemove",B.handleDragMove),document.addEventListener("mouseup",B.handleDragEnd))},B.handleDragMove=function(F){var ne=B.props,ae=ne.minValue,ce=ne.maxValue,oe=ne.step,le=ne.stepPixelSize,pe=ne.dragMatrix;B.setState(function(Ie){var ge=mi({},Ie),Ae=gi(F,pe)-ge.origin;if(Ie.dragging){var Le=Number.isFinite(ae)?ae%oe:0;ge.internalValue=(0,o.qE)(ge.internalValue+Ae*oe/le,ae-oe,ce+oe),ge.value=(0,o.qE)(ge.internalValue-ge.internalValue%oe+Le,ae,ce),ge.origin=gi(F,pe)}else Math.abs(Ae)>4&&(ge.dragging=!0);return ge})},B.handleDragEnd=function(F){var ne=B.props,ae=ne.onChange,ce=ne.onDrag,oe=B.state,le=oe.dragging,pe=oe.value,Ie=oe.internalValue;if(document.body.style["pointer-events"]="auto",clearTimeout(B.timer),clearInterval(B.dragInterval),B.setState({dragging:!1,editing:!le,origin:null}),document.removeEventListener("mousemove",B.handleDragMove),document.removeEventListener("mouseup",B.handleDragEnd),le)B.suppressFlicker(),ae&&ae(F,pe),ce&&ce(F,pe);else if(B.inputRef){var ge=B.inputRef.current;ge.value=Ie,setTimeout(function(){ge.focus(),ge.select()},100)}},B}var K=A.prototype;return K.render=function(){var B=this,F=this.state,ne=F.dragging,ae=F.editing,ce=F.value,oe=F.suppressingFlicker,le=this.props,pe=le.animated,Ie=le.value,ge=le.unit,Ae=le.minValue,Le=le.maxValue,He=le.unclamped,Ve=le.format,tn=le.onChange,fn=le.onDrag,Te=le.children,Ye=le.height,un=le.lineHeight,Sn=le.fontSize,jn=Ie;(ne||oe)&&(jn=ce);var Cn=(0,e.jsxs)(e.Fragment,{children:[pe&&!ne&&!oe?(0,e.jsx)(l,{value:jn,format:Ve}):Ve?Ve(jn):jn,ge?" "+ge:""]}),Fe=(0,e.jsx)("input",{ref:this.inputRef,className:"NumberInput__input",style:{display:ae?void 0:"none",height:Ye,lineHeight:un,fontsize:Sn},onBlur:function(pn){if(ae){var hn;if(He?hn=parseFloat(pn.target.value):hn=(0,o.qE)(parseFloat(pn.target.value),Ae,Le),Number.isNaN(hn)){B.setState({editing:!1});return}B.setState({editing:!1,value:hn}),B.suppressFlicker(),tn&&tn(pn,hn),fn&&fn(pn,hn)}},onKeyDown:function(pn){if(pn.keyCode===13){var hn;if(He?hn=parseFloat(pn.target.value):hn=(0,o.qE)(parseFloat(pn.target.value),Ae,Le),Number.isNaN(hn)){B.setState({editing:!1});return}B.setState({editing:!1,value:hn}),B.suppressFlicker(),tn&&tn(pn,hn),fn&&fn(pn,hn);return}if(pn.keyCode===27){B.setState({editing:!1});return}}});return Te({dragging:ne,editing:ae,value:Ie,displayValue:jn,displayElement:Cn,inputElement:Fe,handleDragStart:this.handleDragStart})},A}(t.Component);Ta.defaultProps={minValue:-1/0,maxValue:1/0,step:1,stepPixelSize:1,suppressFlicker:50,dragMatrix:[1,0]};var xl=n(20878),xi=n.n(xl),Ra=function(A){return Array.isArray(A)?A[0]:A},pl=function(A){if(typeof A=="function"){for(var K=arguments.length,U=new Array(K>1?K-1:0),B=1;BTe.length-3?Te.length-1:Nn-2;var mt=(tt=Ot.current)==null?void 0:tt.children[ht];mt==null||mt.scrollIntoView({block:"nearest"})}function fr(Nn){if(!(Te.length<1||oe)){var tt=0,ht=Te.length-1,mt;Jn<0?mt=Nn==="next"?ht:tt:Nn==="next"?mt=Jn===ht?tt:Jn+1:mt=Jn===tt?ht:Jn-1,hn&&K&&ut(mt),tn==null||tn(Jo(Te[mt]))}}return(0,t.useEffect)(function(){var Nn;hn&&(K&&Jn!==jl&&ut(Jn),(Nn=Ot.current)==null||Nn.focus())},[hn]),(0,e.jsx)(ms,{isOpen:hn,onClickOutside:function(){return Tn(!1)},placement:Ye?"top-start":"bottom-start",content:(0,e.jsxs)("div",{className:"Layout Dropdown__menu",style:{minWidth:Le},ref:Ot,children:[Te.length===0&&(0,e.jsx)("div",{className:"Dropdown__menuentry",children:"No options"}),Te.map(function(Nn,tt){var ht=Jo(Nn);return(0,e.jsx)("div",{className:(0,j.Ly)(["Dropdown__menuentry",jn===ht&&"selected"]),onClick:function(){Tn(!1),tn==null||tn(ht)},children:typeof Nn=="string"?Nn:Nn.displayText},tt)})]}),children:(0,e.jsxs)("div",{className:"Dropdown",style:{width:(0,C.zA)(Fe)},children:[(0,e.jsxs)("div",{className:(0,j.Ly)(["Dropdown__control","Button","Button--dropdown","Button--color--"+ce,oe&&"Button--disabled",B]),onClick:function(Nn){oe&&!hn||(Tn(!hn),Ve==null||Ve(Nn))},children:[pe&&(0,e.jsx)(N,{mr:1,name:pe,rotation:Ie,spin:ge}),(0,e.jsx)("span",{className:"Dropdown__selected-text",style:{overflow:ne?"hidden":"visible"},children:le||jn&&Jo(jn)||Sn}),!He&&(0,e.jsx)("span",{className:"Dropdown__arrow-button",children:(0,e.jsx)(N,{name:Xn?"chevron-up":"chevron-down"})})]}),U&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(xt,{disabled:oe,height:1.8,icon:"chevron-left",onClick:function(){fr("previous")}}),(0,e.jsx)(xt,{disabled:oe,height:1.8,icon:"chevron-right",onClick:function(){fr("next")}})]})]})})}function Ba(I){if(I===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return I}function go(){return go=Object.assign||function(I){for(var A=1;A=0)&&(K[B]=I[B]);return K}function Wa(I,A){return Wa=Object.setPrototypeOf||function(U,B){return U.__proto__=B,U},Wa(I,A)}var Il=function(I){"use strict";oa(A,I);function A(U){var B;return B=I.call(this,U)||this,B.handleClick=function(F){if(!B.props.menuRef.current){Wr.v.log("Menu.handleClick(): No ref");return}B.props.menuRef.current.contains(F.target)?Wr.v.log("Menu.handleClick(): Inside"):(Wr.v.log("Menu.handleClick(): Outside"),B.props.onOutsideClick())},B}var K=A.prototype;return K.componentWillMount=function(){window.addEventListener("click",this.handleClick)},K.componentWillUnmount=function(){window.removeEventListener("click",this.handleClick)},K.render=function(){var B=this.props,F=B.width,ne=B.children;return(0,e.jsx)("div",{className:"MenuBar__menu",style:{width:F},children:ne})},A}(t.Component),Dl=function(I){"use strict";oa(A,I);function A(U){var B;return B=I.call(this,U)||this,B.menuRef=(0,t.createRef)(),B}var K=A.prototype;return K.render=function(){var B=this.props,F=B.open,ne=B.openWidth,ae=B.children,ce=B.disabled,oe=B.display,le=B.onMouseOver,pe=B.onClick,Ie=B.onOutsideClick,ge=to(B,["open","openWidth","children","disabled","display","onMouseOver","onClick","onOutsideClick"]),Ae=ge.className,Le=to(ge,["className"]);return(0,e.jsxs)("div",{ref:this.menuRef,children:[(0,e.jsx)(C.az,no({className:(0,j.Ly)(["MenuBar__MenuBarButton","MenuBar__font","MenuBar__hover",Ae])},Le,{onClick:ce?function(){return null}:pe,onMouseOver:le,children:(0,e.jsx)("span",{className:"MenuBar__MenuBarButton-text",children:oe})})),F&&(0,e.jsx)(Il,{width:ne,menuRef:this.menuRef,onOutsideClick:Ie,children:ae})]})},A}(t.Component),aa=function(I){var A=I.entry,K=I.children,U=I.openWidth,B=I.display,F=I.setOpenMenuBar,ne=I.openMenuBar,ae=I.setOpenOnHover,ce=I.openOnHover,oe=I.disabled,le=I.className;return(0,e.jsx)(Dl,{openWidth:U,display:B,disabled:oe,open:ne===A,className:le,onClick:function(){var pe=ne===A?null:A;F(pe),ae(!ce)},onOutsideClick:function(){F(null),ae(!1)},onMouseOver:function(){ce&&F(A)},children:K})},wa=function(I){var A=I.value,K=I.displayText,U=I.onClick,B=I.checked;return(0,e.jsxs)(C.az,{className:(0,j.Ly)(["MenuBar__font","MenuBar__MenuItem","MenuBar__MenuItemToggle","MenuBar__hover"]),onClick:function(){return U(A)},children:[(0,e.jsx)("div",{className:"MenuBar__MenuItemToggle__check",children:B&&(0,e.jsx)(W,{size:1.3,name:"check"})}),K]})};aa.MenuItemToggle=wa;var za=function(I){var A=I.value,K=I.displayText,U=I.onClick;return(0,e.jsx)(C.az,{className:(0,j.Ly)(["MenuBar__font","MenuBar__MenuItem","MenuBar__hover"]),onClick:function(){return U(A)},children:K})};aa.MenuItem=za;var Ti=function(){return(0,e.jsx)("div",{className:"MenuBar__Separator"})};aa.Separator=Ti;var Ri=function(I){var A=I.children;return(0,e.jsx)(C.az,{className:"MenuBar",children:A})};Ri.Dropdown=aa;/** + */function no(){return no=Object.assign||function(I){for(var A=1;A=0)&&(K[B]=I[B]);return K}function Wa(I,A){return Wa=Object.setPrototypeOf||function(U,B){return U.__proto__=B,U},Wa(I,A)}var Il=function(I){"use strict";oa(A,I);function A(U){var B;return B=I.call(this,U)||this,B.handleClick=function(F){if(!B.props.menuRef.current){Wr.v.log("Menu.handleClick(): No ref");return}B.props.menuRef.current.contains(F.target)?Wr.v.log("Menu.handleClick(): Inside"):(Wr.v.log("Menu.handleClick(): Outside"),B.props.onOutsideClick())},B}var K=A.prototype;return K.componentWillMount=function(){window.addEventListener("click",this.handleClick)},K.componentWillUnmount=function(){window.removeEventListener("click",this.handleClick)},K.render=function(){var B=this.props,F=B.width,ne=B.children;return(0,e.jsx)("div",{className:"MenuBar__menu",style:{width:F},children:ne})},A}(t.Component),Dl=function(I){"use strict";oa(A,I);function A(U){var B;return B=I.call(this,U)||this,B.menuRef=(0,t.createRef)(),B}var K=A.prototype;return K.render=function(){var B=this.props,F=B.open,ne=B.openWidth,ae=B.children,ce=B.disabled,oe=B.display,le=B.onMouseOver,pe=B.onClick,Ie=B.onOutsideClick,ge=to(B,["open","openWidth","children","disabled","display","onMouseOver","onClick","onOutsideClick"]),Ae=ge.className,Le=to(ge,["className"]);return(0,e.jsxs)("div",{ref:this.menuRef,children:[(0,e.jsx)(C.az,no({className:(0,j.Ly)(["MenuBar__MenuBarButton","MenuBar__font","MenuBar__hover",Ae])},Le,{onClick:ce?function(){return null}:pe,onMouseOver:le,children:(0,e.jsx)("span",{className:"MenuBar__MenuBarButton-text",children:oe})})),F&&(0,e.jsx)(Il,{width:ne,menuRef:this.menuRef,onOutsideClick:Ie,children:ae})]})},A}(t.Component),aa=function(I){var A=I.entry,K=I.children,U=I.openWidth,B=I.display,F=I.setOpenMenuBar,ne=I.openMenuBar,ae=I.setOpenOnHover,ce=I.openOnHover,oe=I.disabled,le=I.className;return(0,e.jsx)(Dl,{openWidth:U,display:B,disabled:oe,open:ne===A,className:le,onClick:function(){var pe=ne===A?null:A;F(pe),ae(!ce)},onOutsideClick:function(){F(null),ae(!1)},onMouseOver:function(){ce&&F(A)},children:K})},wa=function(I){var A=I.value,K=I.displayText,U=I.onClick,B=I.checked;return(0,e.jsxs)(C.az,{className:(0,j.Ly)(["MenuBar__font","MenuBar__MenuItem","MenuBar__MenuItemToggle","MenuBar__hover"]),onClick:function(){return U(A)},children:[(0,e.jsx)("div",{className:"MenuBar__MenuItemToggle__check",children:B&&(0,e.jsx)(N,{size:1.3,name:"check"})}),K]})};aa.MenuItemToggle=wa;var za=function(I){var A=I.value,K=I.displayText,U=I.onClick;return(0,e.jsx)(C.az,{className:(0,j.Ly)(["MenuBar__font","MenuBar__MenuItem","MenuBar__hover"]),onClick:function(){return U(A)},children:K})};aa.MenuItem=za;var Ti=function(){return(0,e.jsx)("div",{className:"MenuBar__Separator"})};aa.Separator=Ti;var Ri=function(I){var A=I.children;return(0,e.jsx)(C.az,{className:"MenuBar",children:A})};Ri.Dropdown=aa;/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */function ia(){return ia=Object.assign||function(I){for(var A=1;A=0)&&(K[B]=I[B]);return K}function Sl(I){var A=I.className,K=I.children,U=I.onEnter,B=Bi(I,["className","children","onEnter"]),F;return U&&(F=function(ne){ne.key===S._.Enter&&U(ne)}),(0,e.jsx)(ss,{onKeyDown:F,children:(0,e.jsx)("div",ia({className:(0,j.Ly)(["Modal",A,(0,C.WP)(B)])},(0,C.Fl)(B),{children:K}))})}var Li=n(7081);function Ki(){return Ki=Object.assign||function(I){for(var A=1;A500&&(Ie=500);var ge=oe.offsetY-256*pe;return ge<-200&&(ge=-200),ge>200&&(ge=200),oe.offsetX=Ie,oe.offsetY=ge,U.onZoom&&U.onZoom(oe.zoom),oe})},B}var K=A.prototype;return K.render=function(){var B=(0,Li.Oc)().config,F=this.state,ne=F.dragging,ae=F.offsetX,ce=F.offsetY,oe=F.zoom,le=oe===void 0?1:oe,pe=this.props.children,Ie=(0,cs.l)(B.map+"_nanomap_z"+B.mapZLevel+".png"),ge=this.props.zoomScale*le+"px",Ae={width:ge,height:ge,"margin-top":ce+"px","margin-left":ae+"px",overflow:"hidden",position:"relative","background-image":"url("+Ie+")","background-size":"cover","background-repeat":"no-repeat","text-align":"center",cursor:ne?"move":"auto"};return(0,e.jsxs)(C.az,{className:"NanoMap__container",children:[(0,e.jsx)(C.az,{style:Ae,textAlign:"center",onMouseDown:this.handleDragStart,onClick:this.handleOnClick,children:(0,e.jsx)(C.az,{children:pe})}),(0,e.jsx)(nr,{zoom:le,onZoom:this.handleZoom})]})},A}(t.Component),Co=function(I){var A=I.x,K=I.y,U=I.zoom,B=U===void 0?1:U,F=I.icon,ne=I.tooltip,ae=I.color,ce=I.onClick,oe=function(Ie){er(Ie),ce&&ce(Ie)},le=A*2*B-B-3,pe=K*2*B-B-3;return(0,e.jsx)("div",{children:(0,e.jsxs)(C.az,{position:"absolute",className:"NanoMap__marker",lineHeight:"0",bottom:pe+"px",left:le+"px",onMouseDown:oe,children:[(0,e.jsx)(W,{name:F,color:ae,fontSize:"6px"}),(0,e.jsx)(bt,{content:ne})]})})};$a.Marker=Co;var nr=function(I){var A=(0,Li.Oc)(),K=A.act,U=A.config,B=A.data;return(0,e.jsx)(C.az,{className:"NanoMap__zoomer",children:(0,e.jsxs)(lr,{children:[(0,e.jsx)(lr.Item,{label:"Zoom",children:(0,e.jsx)(io,{minValue:"1",maxValue:"8",stepPixelSize:"10",format:function(F){return F+"x"},value:I.zoom,onDrag:function(F,ne){return I.onZoom(F,ne)}})}),(0,e.jsx)(lr.Item,{label:"Z-Level",children:B.map_levels.sort(function(F,ne){return Number(F)-Number(ne)}).map(function(F){return(0,e.jsx)(xt,{selected:~~F===~~U.mapZLevel,onClick:function(){K("setZLevel",{mapZLevel:F})},children:F},F)})})]})})};$a.Zoomer=nr;/** + */function ia(){return ia=Object.assign||function(I){for(var A=1;A=0)&&(K[B]=I[B]);return K}function Sl(I){var A=I.className,K=I.children,U=I.onEnter,B=Bi(I,["className","children","onEnter"]),F;return U&&(F=function(ne){ne.key===S._.Enter&&U(ne)}),(0,e.jsx)(ss,{onKeyDown:F,children:(0,e.jsx)("div",ia({className:(0,j.Ly)(["Modal",A,(0,C.WP)(B)])},(0,C.Fl)(B),{children:K}))})}var Li=n(7081);function Ki(){return Ki=Object.assign||function(I){for(var A=1;A500&&(Ie=500);var ge=oe.offsetY-256*pe;return ge<-200&&(ge=-200),ge>200&&(ge=200),oe.offsetX=Ie,oe.offsetY=ge,U.onZoom&&U.onZoom(oe.zoom),oe})},B}var K=A.prototype;return K.render=function(){var B=(0,Li.Oc)().config,F=this.state,ne=F.dragging,ae=F.offsetX,ce=F.offsetY,oe=F.zoom,le=oe===void 0?1:oe,pe=this.props.children,Ie=(0,cs.l)(B.map+"_nanomap_z"+B.mapZLevel+".png"),ge=this.props.zoomScale*le+"px",Ae={width:ge,height:ge,"margin-top":ce+"px","margin-left":ae+"px",overflow:"hidden",position:"relative","background-image":"url("+Ie+")","background-size":"cover","background-repeat":"no-repeat","text-align":"center",cursor:ne?"move":"auto"};return(0,e.jsxs)(C.az,{className:"NanoMap__container",children:[(0,e.jsx)(C.az,{style:Ae,textAlign:"center",onMouseDown:this.handleDragStart,onClick:this.handleOnClick,children:(0,e.jsx)(C.az,{children:pe})}),(0,e.jsx)(nr,{zoom:le,onZoom:this.handleZoom})]})},A}(t.Component),Co=function(I){var A=I.x,K=I.y,U=I.zoom,B=U===void 0?1:U,F=I.icon,ne=I.tooltip,ae=I.color,ce=I.onClick,oe=function(Ie){er(Ie),ce&&ce(Ie)},le=A*2*B-B-3,pe=K*2*B-B-3;return(0,e.jsx)("div",{children:(0,e.jsxs)(C.az,{position:"absolute",className:"NanoMap__marker",lineHeight:"0",bottom:pe+"px",left:le+"px",onMouseDown:oe,children:[(0,e.jsx)(N,{name:F,color:ae,fontSize:"6px"}),(0,e.jsx)(bt,{content:ne})]})})};$a.Marker=Co;var nr=function(I){var A=(0,Li.Oc)(),K=A.act,U=A.config,B=A.data;return(0,e.jsx)(C.az,{className:"NanoMap__zoomer",children:(0,e.jsxs)(lr,{children:[(0,e.jsx)(lr.Item,{label:"Zoom",children:(0,e.jsx)(io,{minValue:"1",maxValue:"8",stepPixelSize:"10",format:function(F){return F+"x"},value:I.zoom,onDrag:function(F,ne){return I.onZoom(F,ne)}})}),(0,e.jsx)(lr.Item,{label:"Z-Level",children:B.map_levels.sort(function(F,ne){return Number(F)-Number(ne)}).map(function(F){return(0,e.jsx)(xt,{selected:~~F===~~U.mapZLevel,onClick:function(){K("setZLevel",{mapZLevel:F})},children:F},F)})})]})})};$a.Zoomer=nr;/** * @file * @copyright 2020 Aleksej Komarov * @license MIT @@ -227,7 +227,7 @@ * @file * @copyright 2020 Aleksej Komarov * @license MIT - */function so(){return so=Object.assign||function(I){for(var A=1;A=0)&&(K[B]=I[B]);return K}var Kt=function(I){var A=I.className,K=I.vertical,U=I.fill,B=I.fluid,F=I.children,ne=fa(I,["className","vertical","fill","fluid","children"]);return(0,e.jsx)("div",so({className:(0,j.Ly)(["Tabs",K?"Tabs--vertical":"Tabs--horizontal",U&&"Tabs--fill",B&&"Tabs--fluid",A,(0,C.WP)(ne)])},(0,C.Fl)(ne),{children:F}))},Ft=function(I){var A=I.className,K=I.selected,U=I.color,B=I.icon,F=I.iconSpin,ne=I.leftSlot,ae=I.rightSlot,ce=I.children,oe=I.onClick,le=fa(I,["className","selected","color","icon","iconSpin","leftSlot","rightSlot","children","onClick"]),pe=function(Ie){oe&&(oe(Ie),Ie.target.blur())};return(0,e.jsxs)("div",so({className:(0,j.Ly)(["Tab","Tabs__Tab","Tab--color--"+U,K&&"Tab--selected",A,(0,C.WP)(le)]),onClick:pe},(0,C.Fl)(le),{children:[(0,j.b5)(ne)&&(0,e.jsx)("div",{className:"Tab__left",children:ne})||!!B&&(0,e.jsx)("div",{className:"Tab__left",children:(0,e.jsx)(W,{name:B,spin:F})}),(0,e.jsx)("div",{className:"Tab__text",children:ce}),(0,j.b5)(ae)&&(0,e.jsx)("div",{className:"Tab__right",children:ae})]}))};Kt.Tab=Ft;/** + */function so(){return so=Object.assign||function(I){for(var A=1;A=0)&&(K[B]=I[B]);return K}var Kt=function(I){var A=I.className,K=I.vertical,U=I.fill,B=I.fluid,F=I.children,ne=fa(I,["className","vertical","fill","fluid","children"]);return(0,e.jsx)("div",so({className:(0,j.Ly)(["Tabs",K?"Tabs--vertical":"Tabs--horizontal",U&&"Tabs--fill",B&&"Tabs--fluid",A,(0,C.WP)(ne)])},(0,C.Fl)(ne),{children:F}))},Ft=function(I){var A=I.className,K=I.selected,U=I.color,B=I.icon,F=I.iconSpin,ne=I.leftSlot,ae=I.rightSlot,ce=I.children,oe=I.onClick,le=fa(I,["className","selected","color","icon","iconSpin","leftSlot","rightSlot","children","onClick"]),pe=function(Ie){oe&&(oe(Ie),Ie.target.blur())};return(0,e.jsxs)("div",so({className:(0,j.Ly)(["Tab","Tabs__Tab","Tab--color--"+U,K&&"Tab--selected",A,(0,C.WP)(le)]),onClick:pe},(0,C.Fl)(le),{children:[(0,j.b5)(ne)&&(0,e.jsx)("div",{className:"Tab__left",children:ne})||!!B&&(0,e.jsx)("div",{className:"Tab__left",children:(0,e.jsx)(N,{name:B,spin:F})}),(0,e.jsx)("div",{className:"Tab__text",children:ce}),(0,j.b5)(ae)&&(0,e.jsx)("div",{className:"Tab__right",children:ae})]}))};Kt.Tab=Ft;/** * @file * @copyright 2020 Aleksej Komarov * @author Warlockd @@ -236,15 +236,15 @@ * @file * @copyright 2020 Aleksej Komarov * @license MIT - */},79500:function(y,u,n){"use strict";n.d(u,{Ai:function(){return e},Fo:function(){return d},KA:function(){return o},KS:function(){return r},NE:function(){return x},b_:function(){return s},bz:function(){return t},lm:function(){return h},wM:function(){return l}});/** + */},79500:function(y,u,n){"use strict";n.d(u,{Ai:function(){return e},Fo:function(){return d},KA:function(){return o},KS:function(){return r},NE:function(){return g},b_:function(){return s},bz:function(){return t},lm:function(){return f},wM:function(){return l}});/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */var e=273.15,o=2,t=1,r=0,i=null,h={department:{captain:"#c06616",security:"#e74c3c",medbay:"#3498db",science:"#9b59b6",engineering:"#f1c40f",cargo:"#f39c12",centcom:"#00c100",other:"#c38312"},manifest:{command:"#3333FF",security:"#8e0000",medical:"#006600",engineering:"#b27300",science:"#a65ba6",cargo:"#bb9040",planetside:"#555555",civilian:"#a32800",miscellaneous:"#666666",silicon:"#222222"},damageType:{oxy:"#3498db",toxin:"#2ecc71",burn:"#e67e22",brute:"#e74c3c"},reagent:{acidicbuffer:"#fbc314",basicbuffer:"#3853a4"}},x=["black","white","red","orange","yellow","olive","green","teal","blue","violet","purple","pink","brown","grey","good","average","bad","label"],d=[{name:"Mercenary",freq:1213,color:"#6D3F40"},{name:"Raider",freq:1277,color:"#6D3F40"},{name:"Special Ops",freq:1341,color:"#5C5C8A"},{name:"AI Private",freq:1343,color:"#FF00FF"},{name:"Response Team",freq:1345,color:"#5C5C8A"},{name:"Supply",freq:1347,color:"#5F4519"},{name:"Service",freq:1349,color:"#6eaa2c"},{name:"Science",freq:1351,color:"#993399"},{name:"Command",freq:1353,color:"#193A7A"},{name:"Medical",freq:1355,color:"#008160"},{name:"Engineering",freq:1357,color:"#A66300"},{name:"Security",freq:1359,color:"#A30000"},{name:"Explorer",freq:1361,color:"#555555"},{name:"Talon",freq:1363,color:"#555555"},{name:"Common",freq:1459,color:"#008000"},{name:"Entertainment",freq:1461,color:"#339966"},{name:"Security(I)",freq:1475,color:"#008000"},{name:"Medical(I)",freq:1485,color:"#008000"}],a=[{id:"oxygen",name:"Oxygen",label:"O\u2082",color:"blue"},{id:"nitrogen",name:"Nitrogen",label:"N\u2082",color:"green"},{id:"carbon_dioxide",name:"Carbon Dioxide",label:"CO\u2082",color:"grey"},{id:"phoron",name:"Phoron",label:"Phoron",color:"pink"},{id:"volatile_fuel",name:"Volatile Fuel",label:"EXP",color:"teal"},{id:"nitrous_oxide",name:"Nitrous Oxide",label:"N\u2082O",color:"red"},{id:"other",name:"Other",label:"Other",color:"white"},{id:"pressure",name:"Pressure",label:"Pressure",color:"average"},{id:"temperature",name:"Temperature",label:"Temperature",color:"yellow"}],l=function(f,v){if(!f)return v||"None";for(var g=f.toLowerCase(),E=f.replace(/(^\w{1})|(\s+\w{1})/g,function(C){return C.toUpperCase()}),j=0;j0&&ie[ie.length-1])&&(Ce[0]===6||Ce[0]===2)){he=0;continue}if(Ce[0]===3&&(!ie||Ce[1]>ie[0]&&Ce[1]je&&(ie[he]=je-X[he],ue=!0)}return[ue,ie]},k=function(J){var X;x.log("drag start"),s=!0,g=(0,o.Z4)([J.screenX,J.screenY],P()),(X=J.target)==null||X.focus(),document.addEventListener("mousemove",Y),document.addEventListener("mouseup",H),Y(J)},H=function(J){x.log("drag end"),Y(J),document.removeEventListener("mousemove",Y),document.removeEventListener("mouseup",H),s=!1,$()},Y=function(J){s&&(J.preventDefault(),S((0,o.Z4)([J.screenX,J.screenY],g)))},q=function(J,X){return function(ee){var se;E=[J,X],x.log("resize start",E),c=!0,g=(0,o.Z4)([ee.screenX,ee.screenY],P()),j=_(),(se=ee.target)==null||se.focus(),document.addEventListener("mousemove",Q),document.addEventListener("mouseup",Z),Q(ee)}},Z=function(J){x.log("resize end",C),Q(J),document.removeEventListener("mousemove",Q),document.removeEventListener("mouseup",Z),c=!1,$()},Q=function(J){if(c){J.preventDefault();var X=(0,o.Z4)([J.screenX,J.screenY],P()),ee=(0,o.Z4)(X,g);C=(0,o.CO)(j,(0,o.tk)(E,ee),[1,1]),C[0]=Math.max(C[0],150*a),C[1]=Math.max(C[1],50*a),T(C)}}},37912:function(y,u,n){"use strict";n.d(u,{Nh:function(){return t},WK:function(){return j},tk:function(){return E},y4:function(){return i}});var e=n(47454),o=n(6544);/** + */function r(Q,X,ee,se,ie,fe,he){try{var be=Q[fe](he),je=be.value}catch(Ce){ee(Ce);return}be.done?X(je):Promise.resolve(je).then(se,ie)}function i(Q){return function(){var X=this,ee=arguments;return new Promise(function(se,ie){var fe=Q.apply(X,ee);function he(je){r(fe,se,ie,he,be,"next",je)}function be(je){r(fe,se,ie,he,be,"throw",je)}he(void 0)})}}function f(Q,X){var ee,se,ie,fe,he={label:0,sent:function(){if(ie[0]&1)throw ie[1];return ie[1]},trys:[],ops:[]};return fe={next:be(0),throw:be(1),return:be(2)},typeof Symbol=="function"&&(fe[Symbol.iterator]=function(){return this}),fe;function be(Ce){return function(Ne){return je([Ce,Ne])}}function je(Ce){if(ee)throw new TypeError("Generator is already executing.");for(;he;)try{if(ee=1,se&&(ie=Ce[0]&2?se.return:Ce[0]?se.throw||((ie=se.return)&&ie.call(se),0):se.next)&&!(ie=ie.call(se,Ce[1])).done)return ie;switch(se=0,ie&&(Ce=[Ce[0]&2,ie.value]),Ce[0]){case 0:case 1:ie=Ce;break;case 4:return he.label++,{value:Ce[1],done:!1};case 5:he.label++,se=Ce[1],Ce=[0];continue;case 7:Ce=he.ops.pop(),he.trys.pop();continue;default:if(ie=he.trys,!(ie=ie.length>0&&ie[ie.length-1])&&(Ce[0]===6||Ce[0]===2)){he=0;continue}if(Ce[0]===3&&(!ie||Ce[1]>ie[0]&&Ce[1]je&&(ie[he]=je-X[he],fe=!0)}return[fe,ie]},k=function(Q){var X;g.log("drag start"),s=!0,x=(0,o.Z4)([Q.screenX,Q.screenY],P()),(X=Q.target)==null||X.focus(),document.addEventListener("mousemove",Y),document.addEventListener("mouseup",H),Y(Q)},H=function(Q){g.log("drag end"),Y(Q),document.removeEventListener("mousemove",Y),document.removeEventListener("mouseup",H),s=!1,$()},Y=function(Q){s&&(Q.preventDefault(),S((0,o.Z4)([Q.screenX,Q.screenY],x)))},q=function(Q,X){return function(ee){var se;E=[Q,X],g.log("resize start",E),c=!0,x=(0,o.Z4)([ee.screenX,ee.screenY],P()),j=_(),(se=ee.target)==null||se.focus(),document.addEventListener("mousemove",J),document.addEventListener("mouseup",Z),J(ee)}},Z=function(Q){g.log("resize end",C),J(Q),document.removeEventListener("mousemove",J),document.removeEventListener("mouseup",Z),c=!1,$()},J=function(Q){if(c){Q.preventDefault();var X=(0,o.Z4)([Q.screenX,Q.screenY],P()),ee=(0,o.Z4)(X,x);C=(0,o.CO)(j,(0,o.tk)(E,ee),[1,1]),C[0]=Math.max(C[0],150*a),C[1]=Math.max(C[1],50*a),T(C)}}},37912:function(y,u,n){"use strict";n.d(u,{Nh:function(){return t},WK:function(){return j},tk:function(){return E},y4:function(){return i}});var e=n(47454),o=n(6544);/** * Normalized browser focus events and BYOND-specific focus helpers. * * @file * @copyright 2020 Aleksej Komarov * @license MIT - */var t=new e.b,r=!1,i=function(_){_===void 0&&(_={}),r=!!_.ignoreWindowFocus},h,x=!0,d=function(_,S){if(r){x=!0;return}if(h&&(clearTimeout(h),h=null),S){h=setTimeout(function(){return d(_)});return}x!==_&&(x=_,t.emit(_?"window-focus":"window-blur"),t.emit("window-focus-change",_))},a=null,l=function(_){var S=String(_.tagName).toLowerCase();return S==="input"||S==="textarea"},s=function(_){c(),a=_,a.addEventListener("blur",c)},c=function(){a&&(a.removeEventListener("blur",c),a=null)},f=null,v=null,g=[],E=function(_){g.push(_)},j=function(_){var S=g.indexOf(_);S>=0&&g.splice(S,1)},C=function(_){if(!(a||!x))for(var S=document.body;_&&_!==S;){if(g.includes(_)){if(_.contains(f))return;f=_,_.focus();return}_=_.parentElement}};window.addEventListener("mousemove",function(_){var S=_.target;S!==v&&g.length<2&&(v=S,C(S))}),window.addEventListener("click",function(_){var S=_.target;S!==v&&(v=S,C(S))}),window.addEventListener("focusin",function(_){v=null,f=_.target,d(!0),l(_.target)&&s(_.target)}),window.addEventListener("focusout",function(_){v=null,d(!1,!0)}),window.addEventListener("blur",function(_){v=null,d(!1,!0)}),window.addEventListener("beforeunload",function(_){d(!1)});var M={},P=function(){"use strict";function _(T,b,L){this.event=T,this.type=b,this.code=T.keyCode,this.ctrl=T.ctrlKey,this.shift=T.shiftKey,this.alt=T.altKey,this.repeat=!!L}var S=_.prototype;return S.hasModifierKeys=function(){return this.ctrl||this.alt||this.shift},S.isModifierKey=function(){return this.code===o.Ss||this.code===o.re||this.code===o.cH},S.isDown=function(){return this.type==="keydown"},S.isUp=function(){return this.type==="keyup"},S.toString=function(){return this._str?this._str:(this._str="",this.ctrl&&(this._str+="Ctrl+"),this.alt&&(this._str+="Alt+"),this.shift&&(this._str+="Shift+"),this.code>=48&&this.code<=90?this._str+=String.fromCharCode(this.code):this.code>=o.sV&&this.code<=o.Yw?this._str+="F"+(this.code-111):this._str+="["+this.code+"]",this._str)},_}();document.addEventListener("keydown",function(_){if(!l(_.target)){var S=_.keyCode,T=new P(_,"keydown",M[S]);t.emit("keydown",T),t.emit("key",T),M[S]=!0}}),document.addEventListener("keyup",function(_){if(!l(_.target)){var S=_.keyCode,T=new P(_,"keyup");t.emit("keyup",T),t.emit("key",T),M[S]=!1}})},49945:function(y,u,n){"use strict";n.d(u,{$:function(){return e}});/** + */var t=new e.b,r=!1,i=function(_){_===void 0&&(_={}),r=!!_.ignoreWindowFocus},f,g=!0,d=function(_,S){if(r){g=!0;return}if(f&&(clearTimeout(f),f=null),S){f=setTimeout(function(){return d(_)});return}g!==_&&(g=_,t.emit(_?"window-focus":"window-blur"),t.emit("window-focus-change",_))},a=null,l=function(_){var S=String(_.tagName).toLowerCase();return S==="input"||S==="textarea"},s=function(_){c(),a=_,a.addEventListener("blur",c)},c=function(){a&&(a.removeEventListener("blur",c),a=null)},h=null,v=null,x=[],E=function(_){x.push(_)},j=function(_){var S=x.indexOf(_);S>=0&&x.splice(S,1)},C=function(_){if(!(a||!g))for(var S=document.body;_&&_!==S;){if(x.includes(_)){if(_.contains(h))return;h=_,_.focus();return}_=_.parentElement}};window.addEventListener("mousemove",function(_){var S=_.target;S!==v&&x.length<2&&(v=S,C(S))}),window.addEventListener("click",function(_){var S=_.target;S!==v&&(v=S,C(S))}),window.addEventListener("focusin",function(_){v=null,h=_.target,d(!0),l(_.target)&&s(_.target)}),window.addEventListener("focusout",function(_){v=null,d(!1,!0)}),window.addEventListener("blur",function(_){v=null,d(!1,!0)}),window.addEventListener("beforeunload",function(_){d(!1)});var M={},P=function(){"use strict";function _(T,b,L){this.event=T,this.type=b,this.code=T.keyCode,this.ctrl=T.ctrlKey,this.shift=T.shiftKey,this.alt=T.altKey,this.repeat=!!L}var S=_.prototype;return S.hasModifierKeys=function(){return this.ctrl||this.alt||this.shift},S.isModifierKey=function(){return this.code===o.Ss||this.code===o.re||this.code===o.cH},S.isDown=function(){return this.type==="keydown"},S.isUp=function(){return this.type==="keyup"},S.toString=function(){return this._str?this._str:(this._str="",this.ctrl&&(this._str+="Ctrl+"),this.alt&&(this._str+="Alt+"),this.shift&&(this._str+="Shift+"),this.code>=48&&this.code<=90?this._str+=String.fromCharCode(this.code):this.code>=o.sV&&this.code<=o.Yw?this._str+="F"+(this.code-111):this._str+="["+this.code+"]",this._str)},_}();document.addEventListener("keydown",function(_){if(!l(_.target)){var S=_.keyCode,T=new P(_,"keydown",M[S]);t.emit("keydown",T),t.emit("key",T),M[S]=!0}}),document.addEventListener("keyup",function(_){if(!l(_.target)){var S=_.keyCode,T=new P(_,"keyup");t.emit("keyup",T),t.emit("key",T),M[S]=!1}})},49945:function(y,u,n){"use strict";n.d(u,{$:function(){return e}});/** * Various focus helpers. * * @file @@ -288,27 +288,27 @@ * @file * @copyright 2020 Aleksej Komarov * @license MIT - */var e=["f","p","n","\u03BC","m"," ","k","M","G","T","P","E","Z","Y","R","Q","F","N","H"],o=e.indexOf(" "),t=function(s,c,f){if(c===void 0&&(c=-o),f===void 0&&(f=""),!isFinite(s))return s.toString();var v=Math.floor(Math.log10(Math.abs(s))),g=Math.max(c*3,v),E=Math.floor(g/3),j=e[Math.min(E+o,e.length-1)],C=s/Math.pow(1e3,E),M=C.toFixed(2);return M.endsWith(".00")?M=M.slice(0,-3):M.endsWith(".0")&&(M=M.slice(0,-2)),(M+" "+j.trim()+f).trim()},r=function(s,c){return c===void 0&&(c=0),t(s,c,"W")},i=function(s,c){if(c===void 0&&(c=0),!Number.isFinite(s))return String(s);var f=Number(s.toFixed(c)),v=f<0,g=Math.abs(f),E=g.toString().split(".");E[0]=E[0].replace(/\B(?=(\d{3})+(?!\d))/g,"\u2009");var j=E.join(".");return v?"-"+j:j},h=function(s){var c=20*Math.log10(s),f=c>=0?"+":"-",v=Math.abs(c);return v===1/0?v="Inf":v=v.toFixed(2),""+f+v+" dB"},x=null,d=function(s,c,f){if(c===void 0&&(c=0),f===void 0&&(f=""),!isFinite(s))return"NaN";var v=Math.floor(Math.log10(s)),g=Math.max(c*3,v),E=Math.floor(g/3),j=x[E],C=s/Math.pow(1e3,E),M=Math.max(0,2-g%3),P=C.toFixed(M);return(P+" "+j+" "+f).trim()},a=function(s,c){c===void 0&&(c="default");var f=Math.floor(s/10),v=Math.floor(f/3600),g=Math.floor(f%3600/60),E=f%60;if(c==="short"){var j=v>0?""+v+"h":"",C=g>0?""+g+"m":"",M=E>0?""+E+"s":"";return""+j+C+M}var P=String(v).padStart(2,"0"),_=String(g).padStart(2,"0"),S=String(E).padStart(2,"0");return P+":"+_+":"+S},l=function(s){if(!Number.isFinite(s))return s;var c=s.toString().split(".");return c[0]=c[0].replace(/\B(?=(\d{3})+(?!\d))/g,","),c.join(".")}},52130:function(y,u,n){"use strict";n.d(u,{Bm:function(){return j}});var e=n(6544),o=n(37912),t=n(92736);/** + */var e=["f","p","n","\u03BC","m"," ","k","M","G","T","P","E","Z","Y","R","Q","F","N","H"],o=e.indexOf(" "),t=function(s,c,h){if(c===void 0&&(c=-o),h===void 0&&(h=""),!isFinite(s))return s.toString();var v=Math.floor(Math.log10(Math.abs(s))),x=Math.max(c*3,v),E=Math.floor(x/3),j=e[Math.min(E+o,e.length-1)],C=s/Math.pow(1e3,E),M=C.toFixed(2);return M.endsWith(".00")?M=M.slice(0,-3):M.endsWith(".0")&&(M=M.slice(0,-2)),(M+" "+j.trim()+h).trim()},r=function(s,c){return c===void 0&&(c=0),t(s,c,"W")},i=function(s,c){if(c===void 0&&(c=0),!Number.isFinite(s))return String(s);var h=Number(s.toFixed(c)),v=h<0,x=Math.abs(h),E=x.toString().split(".");E[0]=E[0].replace(/\B(?=(\d{3})+(?!\d))/g,"\u2009");var j=E.join(".");return v?"-"+j:j},f=function(s){var c=20*Math.log10(s),h=c>=0?"+":"-",v=Math.abs(c);return v===1/0?v="Inf":v=v.toFixed(2),""+h+v+" dB"},g=null,d=function(s,c,h){if(c===void 0&&(c=0),h===void 0&&(h=""),!isFinite(s))return"NaN";var v=Math.floor(Math.log10(s)),x=Math.max(c*3,v),E=Math.floor(x/3),j=g[E],C=s/Math.pow(1e3,E),M=Math.max(0,2-x%3),P=C.toFixed(M);return(P+" "+j+" "+h).trim()},a=function(s,c){c===void 0&&(c="default");var h=Math.floor(s/10),v=Math.floor(h/3600),x=Math.floor(h%3600/60),E=h%60;if(c==="short"){var j=v>0?""+v+"h":"",C=x>0?""+x+"m":"",M=E>0?""+E+"s":"";return""+j+C+M}var P=String(v).padStart(2,"0"),_=String(x).padStart(2,"0"),S=String(E).padStart(2,"0");return P+":"+_+":"+S},l=function(s){if(!Number.isFinite(s))return s;var c=s.toString().split(".");return c[0]=c[0].replace(/\B(?=(\d{3})+(?!\d))/g,","),c.join(".")}},52130:function(y,u,n){"use strict";n.d(u,{Bm:function(){return j}});var e=n(6544),o=n(37912),t=n(92736);/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */function r(M,P){(P==null||P>M.length)&&(P=M.length);for(var _=0,S=new Array(P);_=M.length?{done:!0}:{done:!1,value:M[S++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var x=(0,t.h)("hotkeys"),d={},a=[e.s6,e.Ri,e.iy,e.aW,e.Ss,e.re,e.gf,e.R,e.iU,e.zh,e.sP],l={},s=[],c=function(M){if(M===16)return"Shift";if(M===17)return"Ctrl";if(M===18)return"Alt";if(M===33)return"Northeast";if(M===34)return"Southeast";if(M===35)return"Southwest";if(M===36)return"Northwest";if(M===37)return"West";if(M===38)return"North";if(M===39)return"East";if(M===40)return"South";if(M===45)return"Insert";if(M===46)return"Delete";if(M>=48&&M<=57||M>=65&&M<=90)return String.fromCharCode(M);if(M>=96&&M<=105)return"Numpad"+(M-96);if(M>=112&&M<=123)return"F"+(M-111);if(M===188)return",";if(M===189)return"-";if(M===190)return"."},f=function(M){var P=String(M);if(P==="Ctrl+F5"||P==="Ctrl+R"){location.reload();return}if(P!=="Ctrl+F"&&!(M.event.defaultPrevented||M.isModifierKey()||a.includes(M.code))){var _=c(M.code);if(_){var S=d[_];if(S)return x.debug("macro",S),Byond.command(S);if(M.isDown()&&!l[_]){l[_]=!0;var T='TguiKeyDown "'+_+'"';return x.debug(T),Byond.command(T)}if(M.isUp()&&l[_]){l[_]=!1;var b='TguiKeyUp "'+_+'"';return x.debug(b),Byond.command(b)}}}},v=function(M){a.push(M)},g=function(M){var P=a.indexOf(M);P>=0&&a.splice(P,1)},E=function(){for(var M=h(Object.keys(l)),P;!(P=M()).done;){var _=P.value;l[_]&&(l[_]=!1,x.log('releasing key "'+_+'"'),Byond.command('TguiKeyUp "'+_+'"'))}},j=function(){Byond.winget("default.*").then(function(M){for(var P={},_=h(Object.keys(M)),S;!(S=_()).done;){var T=S.value,b=T.split("."),L=b[1],W=b[2];L&&W&&(P[L]||(P[L]={}),P[L][W]=M[T])}for(var $=/\\"/g,z=function(q){return q.substring(1,q.length-1).replace($,'"')},w=h(Object.keys(P)),V;!(V=w()).done;){var k=V.value,H=P[k],Y=z(H.name);d[Y]=z(H.command)}x.debug("loaded macros",d)}),o.Nh.on("window-blur",function(){E()}),o.Nh.on("key",function(M){for(var P=h(s),_;!(_=P()).done;){var S=_.value;S(M)}f(M)})},C=function(M){s.push(M);var P=!1;return function(){P||(P=!0,s.splice(s.indexOf(M),1))}}},30705:function(y,u,n){"use strict";n.d(u,{b:function(){return e}});var e=function(o,t,r){return r===void 0&&(r=1e3),fetch(o,t).catch(function(){return new Promise(function(i){setTimeout(function(){e(o,t,r).then(i)},r)})})}},20544:function(y,u,n){"use strict";n.r(u),n.d(u,{AICard:function(){return i}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),i=function(h){var x=(0,o.Oc)(),d=x.act,a=x.data,l=a.name,s=a.has_ai,c=a.integrity,f=a.backup_capacitor,v=a.flushing,g=a.has_laws,E=a.laws,j=a.wireless,C=a.radio;if(s){var M;c>=75?M="green":c>=25?M="yellow":M="red";var P;return f>=75&&(P="green"),f>=25?P="yellow":P="red",(0,e.jsx)(r.p8,{width:600,height:470,children:(0,e.jsxs)(r.p8.Content,{scrollable:!0,children:[(0,e.jsxs)(t.wn,{title:"Stored AI",children:[(0,e.jsx)(t.az,{bold:!0,inline:!0,children:(0,e.jsx)("h3",{children:l})}),(0,e.jsx)(t.az,{children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Integrity",children:(0,e.jsx)(t.z2,{color:M,value:c/100})}),(0,e.jsx)(t.Ki.Item,{label:"Power",children:(0,e.jsx)(t.z2,{color:P,value:f/100})})]})}),(0,e.jsx)(t.az,{color:"red",children:(0,e.jsx)("h2",{children:v===1?"Wipe of AI in progress...":""})})]}),(0,e.jsx)(t.wn,{title:"Laws",children:!!g&&(0,e.jsx)(t.az,{children:E.map(function(_,S){return(0,e.jsx)(t.az,{inline:!0,children:_},S)})})||(0,e.jsx)(t.az,{color:"red",children:(0,e.jsx)("h3",{children:"No laws detected."})})}),(0,e.jsx)(t.wn,{title:"Actions",children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Wireless Activity",children:(0,e.jsx)(t.$n,{icon:j?"check":"times",color:j?"green":"red",onClick:function(){return d("wireless")},children:j?"Enabled":"Disabled"})}),(0,e.jsx)(t.Ki.Item,{label:"Subspace Transceiver",children:(0,e.jsx)(t.$n,{icon:C?"check":"times",color:C?"green":"red",onClick:function(){return d("radio")},children:C?"Enabled":"Disabled"})}),(0,e.jsx)(t.Ki.Item,{label:"AI Power",children:(0,e.jsx)(t.$n.Confirm,{icon:"radiation",confirmIcon:"radiation",disabled:v||c===0,confirmColor:"red",onClick:function(){return d("wipe")},children:"Shutdown"})})]})})]})})}else return(0,e.jsx)(r.p8,{width:600,height:470,children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsx)(t.wn,{title:"Stored AI",children:(0,e.jsx)(t.az,{children:(0,e.jsx)("h3",{children:"No AI detected."})})})})})}},43252:function(y,u,n){"use strict";n.r(u),n.d(u,{APC:function(){return x}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),i=n(72859),h=n(98071),x=function(f){var v=(0,o.Oc)(),g=v.act,E=v.data,j=E.gridCheck,C=E.failTime,M=(0,e.jsx)(l,{});return j?M=(0,e.jsx)(s,{}):C&&(M=(0,e.jsx)(c,{})),(0,e.jsx)(r.p8,{width:450,height:475,children:(0,e.jsx)(r.p8.Content,{scrollable:!0,children:M})})},d={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"}},a={1:{icon:"terminal",content:"Override Programming",action:"hack"}},l=function(f){var v=(0,o.Oc)(),g=v.act,E=v.data,j=E.locked,C=E.siliconUser,M=E.externalPower,P=E.chargingStatus,_=E.powerChannels,S=E.powerCellStatus,T=E.emagged,b=E.isOperating,L=E.chargeMode,W=E.totalCharging,$=E.totalLoad,z=E.coverLocked,w=E.nightshiftSetting,V=E.emergencyLights,k=j&&!C,H=d[M]||d[0],Y=d[P]||d[0],q=_||[],Z=S/100;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(h.InterfaceLockNoticeBox,{deny:T,denialMessage:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.az,{color:"bad",fontSize:"1.5rem",children:"Fault in ID authenticator."}),(0,e.jsx)(t.az,{color:"bad",children:"Please contact maintenance for service."})]})}),(0,e.jsx)(t.wn,{title:"Power Status",children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsxs)(t.Ki.Item,{label:"Main Breaker",color:H.color,buttons:(0,e.jsx)(t.$n,{icon:b?"power-off":"times",selected:b&&!k,color:b?"":"bad",disabled:k,onClick:function(){return g("breaker")},children:b?"On":"Off"}),children:["[ ",H.externalPowerText," ]"]}),(0,e.jsx)(t.Ki.Item,{label:"Power Cell",children:(0,e.jsx)(t.z2,{color:"good",value:Z})}),(0,e.jsxs)(t.Ki.Item,{label:"Charge Mode",color:Y.color,buttons:(0,e.jsx)(t.$n,{icon:L?"sync":"times",selected:L,disabled:k,onClick:function(){return g("charge")},children:L?"Auto":"Off"}),children:["[ ",Y.chargingText," ]"]})]})}),(0,e.jsx)(t.wn,{title:"Power Channels",children:(0,e.jsxs)(t.Ki,{children:[q.map(function(Q){var J=Q.topicParams;return(0,e.jsxs)(t.Ki.Item,{label:Q.title,buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.az,{inline:!0,mx:2,color:Q.status>=2?"good":"bad",children:Q.status>=2?"On":"Off"}),(0,e.jsx)(t.$n,{icon:"sync",selected:!k&&(Q.status===1||Q.status===3),disabled:k,onClick:function(){return g("channel",J.auto)},children:"Auto"}),(0,e.jsx)(t.$n,{icon:"power-off",selected:!k&&Q.status===2,disabled:k,onClick:function(){return g("channel",J.on)},children:"On"}),(0,e.jsx)(t.$n,{icon:"times",selected:!k&&Q.status===0,disabled:k,onClick:function(){return g("channel",J.off)},children:"Off"})]}),children:[Q.powerLoad," W"]},Q.title)}),(0,e.jsx)(t.Ki.Item,{label:"Total Load",children:W?(0,e.jsxs)("b",{children:[$," W (+ ",W," W charging)"]}):(0,e.jsxs)("b",{children:[$," W"]})})]})}),(0,e.jsx)(t.wn,{title:"Misc",buttons:!!E.siliconUser&&(0,e.jsx)(t.$n,{icon:"lightbulb-o",onClick:function(){return g("overload")},children:"Overload"}),children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Cover Lock",buttons:(0,e.jsx)(t.$n,{icon:z?"lock":"unlock",selected:z,disabled:k,onClick:function(){return g("cover")},children:z?"Engaged":"Disengaged"})}),(0,e.jsx)(t.Ki.Item,{label:"Night Shift Lighting",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n,{icon:"lightbulb-o",selected:w===2,onClick:function(){return g("nightshift",{nightshift:2})},children:"Disabled"}),(0,e.jsx)(t.$n,{icon:"lightbulb-o",selected:w===1,onClick:function(){return g("nightshift",{nightshift:1})},children:"Automatic"}),(0,e.jsx)(t.$n,{icon:"lightbulb-o",selected:w===3,onClick:function(){return g("nightshift",{nightshift:3})},children:"Enabled"})]})}),(0,e.jsx)(t.Ki.Item,{label:"Emergency Lighting",buttons:(0,e.jsx)(t.$n,{icon:"lightbulb-o",selected:V,onClick:function(){return g("emergency_lighting")},children:V?"Enabled":"Disabled"})})]})})]})},s=function(f){return(0,e.jsxs)(i.FullscreenNotice,{title:"System Failure",children:[(0,e.jsx)(t.az,{fontSize:"1.5rem",bold:!0,children:(0,e.jsx)(t.In,{name:"exclamation-triangle",verticalAlign:"middle",size:3,mr:"1rem"})}),(0,e.jsx)(t.az,{fontSize:"1.5rem",bold:!0,children:"Power surge detected, grid check in effect..."})]})},c=function(f){var v=(0,o.Oc)(),g=v.data,E=v.act,j=g.locked,C=g.siliconUser,M=g.failTime,P=(0,e.jsx)(t.$n,{icon:"repeat",color:"good",onClick:function(){return E("reboot")},children:"Restart Now"});return j&&!C&&(P=(0,e.jsx)(t.az,{color:"bad",children:"Swipe an ID card for manual reboot."})),(0,e.jsxs)(t.Rr,{textAlign:"center",children:[(0,e.jsx)(t.az,{color:"bad",children:(0,e.jsx)("h1",{children:"SYSTEM FAILURE"})}),(0,e.jsx)(t.az,{color:"average",children:(0,e.jsx)("h2",{children:"I/O regulators malfunction detected! Waiting for system reboot..."})}),(0,e.jsxs)(t.az,{color:"good",children:["Automatic reboot in ",M," seconds..."]}),(0,e.jsx)(t.az,{mt:4,children:P})]})}},77056:function(y,u,n){"use strict";n.r(u),n.d(u,{AccountsTerminal:function(){return i}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),i=function(l){var s=(0,o.Oc)(),c=s.act,f=s.data,v=f.id_inserted,g=f.id_card,E=f.access_level,j=f.machine_id;return(0,e.jsx)(r.p8,{width:400,height:640,children:(0,e.jsxs)(r.p8.Content,{scrollable:!0,children:[(0,e.jsx)(t.wn,{children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Machine",color:"average",children:j}),(0,e.jsx)(t.Ki.Item,{label:"ID",children:(0,e.jsx)(t.$n,{icon:v?"eject":"sign-in-alt",fluid:!0,onClick:function(){return c("insert_card")},children:g})})]})}),E>0&&(0,e.jsx)(h,{})]})})},h=function(l){var s=(0,o.Oc)(),c=s.act,f=s.data,v=f.creating_new_account,g=f.detailed_account_view;return(0,e.jsxs)(t.wn,{title:"Menu",children:[(0,e.jsxs)(t.tU,{children:[(0,e.jsx)(t.tU.Tab,{selected:!v&&!g,icon:"home",onClick:function(){return c("view_accounts_list")},children:"Home"}),(0,e.jsx)(t.tU.Tab,{selected:!!v,icon:"cog",onClick:function(){return c("create_account")},children:"New Account"}),v?"":(0,e.jsx)(t.tU.Tab,{icon:"print",onClick:function(){return c("print")},children:"Print"})]}),v&&(0,e.jsx)(x,{})||g&&(0,e.jsx)(d,{})||(0,e.jsx)(a,{})]})},x=function(l){var s=(0,o.Oc)().act,c=(0,o.QY)("holder",""),f=c[0],v=c[1],g=(0,o.QY)("money",""),E=g[0],j=g[1];return(0,e.jsxs)(t.wn,{title:"Create Account",children:[(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Account Holder",children:(0,e.jsx)(t.pd,{value:f,fluid:!0,onInput:function(C,M){return v(M)}})}),(0,e.jsx)(t.Ki.Item,{label:"Initial Deposit",children:(0,e.jsx)(t.pd,{value:E,fluid:!0,onInput:function(C,M){return j(M)}})})]}),(0,e.jsx)(t.$n,{disabled:!f||!E,mt:1,fluid:!0,icon:"plus",onClick:function(){return s("finalise_create_account",{holder_name:f,starting_funds:E})},children:"Create"})]})},d=function(l){var s=(0,o.Oc)(),c=s.act,f=s.data,v=f.access_level,g=f.station_account_number,E=f.account_number,j=f.owner_name,C=f.money,M=f.suspended,P=f.transactions;return(0,e.jsxs)(t.wn,{title:"Account Details",buttons:(0,e.jsx)(t.$n,{icon:"ban",selected:M,onClick:function(){return c("toggle_suspension")},children:"Suspend"}),children:[(0,e.jsxs)(t.Ki,{children:[(0,e.jsxs)(t.Ki.Item,{label:"Account Number",children:["#",E]}),(0,e.jsx)(t.Ki.Item,{label:"Holder",children:j}),(0,e.jsxs)(t.Ki.Item,{label:"Balance",children:[C,"\u20AE"]}),(0,e.jsx)(t.Ki.Item,{label:"Status",color:M?"bad":"good",children:M?"SUSPENDED":"Active"})]}),(0,e.jsx)(t.wn,{title:"CentCom Administrator",mt:1,children:(0,e.jsx)(t.Ki,{children:(0,e.jsx)(t.Ki.Item,{label:"Payroll",children:(0,e.jsx)(t.$n.Confirm,{color:"bad",fluid:!0,icon:"ban",confirmIcon:"ban",confirmContent:"This cannot be undone.",disabled:E===g,onClick:function(){return c("revoke_payroll")},children:"Revoke"})})})}),v>=2&&(0,e.jsxs)(t.wn,{title:"Silent Funds Transfer",children:[(0,e.jsx)(t.$n,{icon:"plus",onClick:function(){return c("add_funds")},children:"Add Funds"}),(0,e.jsx)(t.$n,{icon:"plus",onClick:function(){return c("remove_funds")},children:"Remove Funds"})]}),(0,e.jsx)(t.wn,{title:"Transactions",mt:1,children:(0,e.jsxs)(t.XI,{children:[(0,e.jsxs)(t.XI.Row,{header:!0,children:[(0,e.jsx)(t.XI.Cell,{children:"Timestamp"}),(0,e.jsx)(t.XI.Cell,{children:"Target"}),(0,e.jsx)(t.XI.Cell,{children:"Reason"}),(0,e.jsx)(t.XI.Cell,{children:"Value"}),(0,e.jsx)(t.XI.Cell,{children:"Terminal"})]}),P.map(function(_,S){return(0,e.jsxs)(t.XI.Row,{children:[(0,e.jsxs)(t.XI.Cell,{children:[_.date," ",_.time]}),(0,e.jsx)(t.XI.Cell,{children:_.target_name}),(0,e.jsx)(t.XI.Cell,{children:_.purpose}),(0,e.jsxs)(t.XI.Cell,{children:[_.amount,"\u20AE"]}),(0,e.jsx)(t.XI.Cell,{children:_.source_terminal})]},S)})]})})]})},a=function(l){var s=(0,o.Oc)(),c=s.act,f=s.data,v=f.accounts;return(0,e.jsx)(t.wn,{title:"NanoTrasen Accounts",children:v.length&&(0,e.jsx)(t.Ki,{children:v.map(function(g){return(0,e.jsx)(t.Ki.Item,{label:g.owner_name+g.suspended,color:g.suspended?"bad":void 0,children:(0,e.jsx)(t.$n,{fluid:!0,onClick:function(){return c("view_account_detail",{account_index:g.account_index})},children:"#"+g.account_number})},g.account_index)})})||(0,e.jsx)(t.az,{color:"bad",children:"There are no accounts available."})})}},16980:function(y,u,n){"use strict";n.r(u),n.d(u,{AdminShuttleController:function(){return h},ShuttleList:function(){return x}});var e=n(20462),o=n(7402),t=n(7081),r=n(88569),i=n(15581),h=function(){return(0,e.jsx)(i.p8,{width:600,height:600,children:(0,e.jsx)(i.p8.Content,{scrollable:!0,children:(0,e.jsx)(x,{})})})},x=function(a){var l=(0,t.Oc)(),s=l.act,c=l.data,f=c.shuttles,v=c.overmap_ships;return(0,e.jsxs)(r.wn,{noTopPadding:!0,children:[(0,e.jsx)(r.wn,{title:"Classic Shuttles",children:(0,e.jsx)(r.XI,{children:(0,o.Ul)(f,function(g){return g.name}).map(function(g){return(0,e.jsxs)(r.XI.Row,{children:[(0,e.jsx)(r.XI.Cell,{collapsing:!0,children:(0,e.jsx)(r.$n,{m:0,onClick:function(){return s("adminobserve",{ref:g.ref})},children:"JMP"})}),(0,e.jsx)(r.XI.Cell,{collapsing:!0,children:(0,e.jsx)(r.$n,{m:0,onClick:function(){return s("classicmove",{ref:g.ref})},children:"Fly"})}),(0,e.jsx)(r.XI.Cell,{children:g.name}),(0,e.jsx)(r.XI.Cell,{children:g.current_location}),(0,e.jsx)(r.XI.Cell,{children:d(g.status)})]},g.ref)})})}),(0,e.jsx)(r.wn,{title:"Overmap Ships",children:(0,e.jsx)(r.XI,{children:(0,o.Ul)(v,function(g){var E;return((E=g.name)==null?void 0:E.toLowerCase())||g.name||g.ref}).map(function(g){return(0,e.jsxs)(r.XI.Row,{children:[(0,e.jsx)(r.XI.Cell,{collapsing:!0,children:(0,e.jsx)(r.$n,{onClick:function(){return s("adminobserve",{ref:g.ref})},children:"JMP"})}),(0,e.jsx)(r.XI.Cell,{collapsing:!0,children:(0,e.jsx)(r.$n,{onClick:function(){return s("overmap_control",{ref:g.ref})},children:"Control"})}),(0,e.jsx)(r.XI.Cell,{children:g.name})]},g.ref)})})})]})},d=function(a){switch(a){case 0:return"Idle";case 1:return"Warmup";case 2:return"Transit";default:return"UNK"}}},15301:function(y,u,n){"use strict";n.r(u),n.d(u,{AdminTicketPanel:function(){return x}});var e=n(20462),o=n(4089),t=n(7081),r=n(88569),i=n(15581),h={open:"Open",resolved:"Resolved",closed:"Closed",unknown:"Unknown"},x=function(d){var a=(0,t.Oc)(),l=a.act,s=a.data,c=s.id,f=s.title,v=s.name,g=s.state,E=s.opened_at,j=s.closed_at,C=s.opened_at_date,M=s.closed_at_date,P=s.actions,_=s.log;return(0,e.jsx)(i.p8,{width:900,height:600,children:(0,e.jsx)(i.p8.Content,{scrollable:!0,children:(0,e.jsx)(r.wn,{title:"Ticket #"+c,buttons:(0,e.jsxs)(r.az,{nowrap:!0,children:[(0,e.jsx)(r.$n,{icon:"pen",onClick:function(){return l("retitle")},children:"Rename Ticket"}),(0,e.jsx)(r.$n,{onClick:function(){return l("legacy")},children:"Legacy UI"})]}),children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsxs)(r.Ki.Item,{label:"Admin Help Ticket",children:["#",c,": ",(0,e.jsx)("div",{dangerouslySetInnerHTML:{__html:v}})]}),(0,e.jsx)(r.Ki.Item,{label:"State",children:h[g]}),h[g]===h.open?(0,e.jsx)(r.Ki.Item,{label:"Opened At",children:C+" ("+(0,o.Mg)((0,o.LI)(E/600*10,0)/10,1)+" minutes ago.)"}):(0,e.jsxs)(r.Ki.Item,{label:"Closed At",children:[M+" ("+(0,o.Mg)((0,o.LI)(j/600*10,0)/10,1)+" minutes ago.)",(0,e.jsx)(r.$n,{onClick:function(){return l("reopen")},children:"Reopen"})]}),(0,e.jsx)(r.Ki.Item,{label:"Actions",children:(0,e.jsx)("div",{dangerouslySetInnerHTML:{__html:P}})}),(0,e.jsx)(r.Ki.Item,{label:"Log",children:Object.keys(_).map(function(S,T){return(0,e.jsx)("div",{dangerouslySetInnerHTML:{__html:_[S]}},T)})})]})})})})}},14415:function(y,u,n){"use strict";n.r(u),n.d(u,{AgentCard:function(){return i}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),i=function(h){var x=(0,o.Oc)(),d=x.act,a=x.data,l=a.entries,s=a.electronic_warfare;return(0,e.jsx)(r.p8,{width:550,height:400,theme:"syndicate",children:(0,e.jsxs)(r.p8.Content,{children:[(0,e.jsx)(t.wn,{title:"Info",children:(0,e.jsx)(t.XI,{children:l.map(function(c){return(0,e.jsxs)(t.XI.Row,{children:[(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.$n,{onClick:function(){return d(c.name.toLowerCase().replace(/ /g,""))},icon:"cog"})}),(0,e.jsx)(t.XI.Cell,{children:c.name}),(0,e.jsx)(t.XI.Cell,{children:c.value})]},c.name)})})}),(0,e.jsx)(t.wn,{title:"Electronic Warfare",children:(0,e.jsx)(t.$n.Checkbox,{checked:s,onClick:function(){return d("electronic_warfare")},children:s?"Electronic warfare is enabled. This will prevent you from being tracked by the AI.":"Electronic warfare disabled."})})]})})}},40645:function(y,u,n){"use strict";n.r(u),n.d(u,{AiAirlock:function(){return h}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),i={2:{color:"good",localStatusText:"Optimal"},1:{color:"average",localStatusText:"Caution"},0:{color:"bad",localStatusText:"Offline"}},h=function(x){var d=(0,o.Oc)(),a=d.act,l=d.data,s=l.power,c=l.wires,f=l.shock,v=l.shock_timeleft,g=l.id_scanner,E=l.lights,j=l.locked,C=l.safe,M=l.speed,P=l.opened,_=l.welded,S=i[s.main]||i[0],T=i[s.backup]||i[0],b=i[f]||i[0];return(0,e.jsx)(r.p8,{width:500,height:390,children:(0,e.jsxs)(r.p8.Content,{children:[(0,e.jsx)(t.wn,{title:"Power Status",children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsxs)(t.Ki.Item,{label:"Main",color:S.color,buttons:(0,e.jsx)(t.$n,{icon:"lightbulb-o",disabled:!s.main,onClick:function(){return a("disrupt-main")},children:"Disrupt"}),children:[s.main?"Online":"Offline"," ",(!c.main_1||!c.main_2)&&"[Wires have been cut!]"||s.main_timeleft>0&&"["+s.main_timeleft+"s]"]}),(0,e.jsxs)(t.Ki.Item,{label:"Backup",color:T.color,buttons:(0,e.jsx)(t.$n,{icon:"lightbulb-o",disabled:!s.backup,onClick:function(){return a("disrupt-backup")},children:"Disrupt"}),children:[s.backup?"Online":"Offline"," ",(!c.backup_1||!c.backup_2)&&"[Wires have been cut!]"||s.backup_timeleft>0&&"["+s.backup_timeleft+"s]"]}),(0,e.jsxs)(t.Ki.Item,{label:"Electrify",color:b.color,buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n,{icon:"wrench",disabled:!(c.shock&&f===0),onClick:function(){return a("shock-restore")},children:"Restore"}),(0,e.jsx)(t.$n,{icon:"bolt",disabled:!c.shock,onClick:function(){return a("shock-temp")},children:"Temporary"}),(0,e.jsx)(t.$n,{icon:"bolt",disabled:!c.shock,onClick:function(){return a("shock-perm")},children:"Permanent"})]}),children:[f===2?"Safe":"Electrified"," ",!c.shock&&"[Wires have been cut!]"||v>0&&"["+v+"s]"||v===-1&&"[Permanent]"]})]})}),(0,e.jsx)(t.wn,{title:"Access and Door Control",children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"ID Scan",color:"bad",buttons:(0,e.jsx)(t.$n,{icon:g?"power-off":"times",selected:g,disabled:!c.id_scanner,onClick:function(){return a("idscan-toggle")},children:g?"Enabled":"Disabled"}),children:!c.id_scanner&&"[Wires have been cut!]"}),(0,e.jsx)(t.Ki.Divider,{}),(0,e.jsx)(t.Ki.Item,{label:"Door Bolts",color:"bad",buttons:(0,e.jsx)(t.$n,{icon:j?"lock":"unlock",selected:j,disabled:!c.bolts,onClick:function(){return a("bolt-toggle")},children:j?"Lowered":"Raised"}),children:!c.bolts&&"[Wires have been cut!]"}),(0,e.jsx)(t.Ki.Item,{label:"Door Bolt Lights",color:"bad",buttons:(0,e.jsx)(t.$n,{icon:E?"power-off":"times",selected:E,disabled:!c.lights,onClick:function(){return a("light-toggle")},children:E?"Enabled":"Disabled"}),children:!c.lights&&"[Wires have been cut!]"}),(0,e.jsx)(t.Ki.Item,{label:"Door Force Sensors",color:"bad",buttons:(0,e.jsx)(t.$n,{icon:C?"power-off":"times",selected:C,disabled:!c.safe,onClick:function(){return a("safe-toggle")},children:C?"Enabled":"Disabled"}),children:!c.safe&&"[Wires have been cut!]"}),(0,e.jsx)(t.Ki.Item,{label:"Door Timing Safety",color:"bad",buttons:(0,e.jsx)(t.$n,{icon:M?"power-off":"times",selected:M,disabled:!c.timing,onClick:function(){return a("speed-toggle")},children:M?"Enabled":"Disabled"}),children:!c.timing&&"[Wires have been cut!]"}),(0,e.jsx)(t.Ki.Divider,{}),(0,e.jsx)(t.Ki.Item,{label:"Door Control",color:"bad",buttons:(0,e.jsx)(t.$n,{icon:P?"sign-out-alt":"sign-in-alt",selected:P,disabled:j||_,onClick:function(){return a("open-close")},children:P?"Open":"Closed"}),children:!!(j||_)&&(0,e.jsxs)("span",{children:["[Door is ",j?"bolted":"",j&&_?" and ":"",_?"welded":"","!]"]})})]})})]})})}},89570:function(y,u,n){"use strict";n.r(u),n.d(u,{AiRestorer:function(){return i},AiRestorerContent:function(){return h}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),i=function(){return(0,e.jsx)(r.p8,{width:370,height:360,children:(0,e.jsx)(r.p8.Content,{scrollable:!0,children:(0,e.jsx)(h,{})})})},h=function(x){var d=(0,o.Oc)(),a=d.act,l=d.data,s=l.AI_present,c=l.error,f=l.name,v=l.laws,g=l.isDead,E=l.restoring,j=l.health,C=l.ejectable;return(0,e.jsxs)(e.Fragment,{children:[c&&(0,e.jsx)(t.IC,{textAlign:"center",children:c}),!!C&&(0,e.jsx)(t.$n,{fluid:!0,icon:"eject",disabled:!s,onClick:function(){return a("PRG_eject")},children:s?f:"----------"}),!!s&&(0,e.jsxs)(t.wn,{title:C?"System Status":f,buttons:(0,e.jsx)(t.az,{inline:!0,bold:!0,color:g?"bad":"good",children:g?"Nonfunctional":"Functional"}),children:[(0,e.jsx)(t.Ki,{children:(0,e.jsx)(t.Ki.Item,{label:"Integrity",children:(0,e.jsx)(t.z2,{value:j,minValue:0,maxValue:100,ranges:{good:[70,1/0],average:[50,70],bad:[-1/0,50]}})})}),!!E&&(0,e.jsx)(t.az,{bold:!0,textAlign:"center",fontSize:"20px",color:"good",mt:1,children:"RECONSTRUCTION IN PROGRESS"}),(0,e.jsx)(t.$n,{fluid:!0,icon:"plus",disabled:E,mt:1,onClick:function(){return a("PRG_beginReconstruction")},children:"Begin Reconstruction"}),(0,e.jsx)(t.wn,{title:"Laws",children:v.map(function(M){return(0,e.jsx)(t.az,{className:"candystripe",children:M},M)})})]})]})}},69622:function(y,u,n){"use strict";n.r(u),n.d(u,{AiSupermatter:function(){return h}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),i=n(72859),h=function(a){var l=(0,o.Oc)().data,s=l.detonating,c=(0,e.jsx)(d,{});return s&&(c=(0,e.jsx)(x,{})),(0,e.jsx)(r.p8,{width:500,height:300,children:(0,e.jsx)(r.p8.Content,{children:c})})},x=function(a){return(0,e.jsx)(i.FullscreenNotice,{title:"DETONATION IMMINENT",children:(0,e.jsxs)(t.az,{fontSize:"1.5rem",bold:!0,color:"bad",children:[(0,e.jsx)(t.In,{color:"bad",name:"exclamation-triangle",verticalAlign:"middle",size:3,mr:"1rem"}),(0,e.jsx)(t.az,{color:"bad",children:"CRYSTAL DELAMINATING"}),(0,e.jsx)(t.az,{color:"bad",children:"Evacuate area immediately"})]})})},d=function(a){var l=(0,o.Oc)().data,s=l.integrity_percentage,c=l.ambient_temp,f=l.ambient_pressure;return(0,e.jsx)(t.wn,{title:"Status",children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Crystal Integrity",children:(0,e.jsx)(t.z2,{value:s,maxValue:100,ranges:{good:[90,1/0],average:[25,90],bad:[-1/0,25]}})}),(0,e.jsx)(t.Ki.Item,{label:"Environment Temperature",children:(0,e.jsxs)(t.z2,{value:c,maxValue:1e4,ranges:{bad:[5e3,1/0],average:[4e3,5e3],good:[-1/0,4e3]},children:[c," K"]})}),(0,e.jsxs)(t.Ki.Item,{label:"Environment Pressure",children:[f," kPa"]})]})})}},15991:function(y,u,n){"use strict";n.r(u),n.d(u,{AirAlarm:function(){return l}});var e=n(20462),o=n(4089),t=n(61358),r=n(7081),i=n(88569),h=n(79500),x=n(15581),d=n(26634),a=n(98071),l=function(P){var _=function(Y){V(Y)},S=(0,r.Oc)(),T=S.act,b=S.data,L=b.locked,W=b.siliconUser,$=b.remoteUser,z=(0,t.useState)(""),w=z[0],V=z[1],k=L&&!W&&!$;return(0,e.jsx)(x.p8,{width:440,height:650,children:(0,e.jsxs)(x.p8.Content,{scrollable:!0,children:[(0,e.jsx)(a.InterfaceLockNoticeBox,{}),(0,e.jsx)(s,{}),(0,e.jsx)(c,{}),!k&&(0,e.jsx)(v,{screen:w,onScreen:_})]})})},s=function(P){var _=(0,r.Oc)().data,S=_.environment_data,T=_.atmos_alarm,b=_.fire_alarm,L=_.emagged,W=(S||[]).filter(function(w){return w.value>=.01}),$={0:{color:"good",localStatusText:"Optimal"},1:{color:"average",localStatusText:"Caution"},2:{color:"bad",localStatusText:"Danger (Internals Required)"}},z=$[_.danger_level]||$[0];return(0,e.jsx)(i.wn,{title:"Air Status",children:(0,e.jsxs)(i.Ki,{children:[W.length>0&&(0,e.jsxs)(e.Fragment,{children:[W.map(function(w){var V=$[w.danger_level]||$[0];return(0,e.jsxs)(i.Ki.Item,{label:(0,h.wM)(w.name),color:V.color,children:[(0,o.Mg)(w.value,2),w.unit]},w.name)}),(0,e.jsx)(i.Ki.Item,{label:"Local status",color:z.color,children:z.localStatusText}),(0,e.jsx)(i.Ki.Item,{label:"Area status",color:T||b?"bad":"good",children:T&&"Atmosphere Alarm"||b&&"Fire Alarm"||"Nominal"})]})||(0,e.jsx)(i.Ki.Item,{label:"Warning",color:"bad",children:"Cannot obtain air sample for analysis."}),!!L&&(0,e.jsx)(i.Ki.Item,{label:"Warning",color:"bad",children:"Safety measures offline. Device may exhibit abnormal behavior."})]})})},c=function(P){var _=(0,r.Oc)(),S=_.act,T=_.data,b=T.target_temperature,L=T.rcon;return(0,e.jsx)(i.wn,{title:"Comfort Settings",children:(0,e.jsxs)(i.Ki,{children:[(0,e.jsxs)(i.Ki.Item,{label:"Remote Control",children:[(0,e.jsx)(i.$n,{selected:L===1,onClick:function(){return S("rcon",{rcon:1})},children:"Off"}),(0,e.jsx)(i.$n,{selected:L===2,onClick:function(){return S("rcon",{rcon:2})},children:"Auto"}),(0,e.jsx)(i.$n,{selected:L===3,onClick:function(){return S("rcon",{rcon:3})},children:"On"})]}),(0,e.jsx)(i.Ki.Item,{label:"Thermostat",children:(0,e.jsx)(i.$n,{onClick:function(){return S("temperature")},children:b})})]})})},f={home:{title:"Air Controls",component:function(){return g}},vents:{title:"Vent Controls",component:function(){return E}},scrubbers:{title:"Scrubber Controls",component:function(){return j}},modes:{title:"Operating Mode",component:function(){return C}},thresholds:{title:"Alarm Thresholds",component:function(){return M}}},v=function(P){var _=f[P.screen]||f.home,S=_.component();return(0,e.jsx)(i.wn,{title:_.title,buttons:P.screen&&(0,e.jsx)(i.$n,{icon:"arrow-left",onClick:function(){return P.onScreen()},children:"Back"}),children:(0,e.jsx)(S,{onScreen:P.onScreen})})},g=function(P){var _=(0,r.Oc)(),S=_.act,T=_.data,b=T.mode,L=T.atmos_alarm;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(i.$n,{icon:L?"exclamation-triangle":"exclamation",color:L&&"caution",onClick:function(){return S(L?"reset":"alarm")},children:"Area Atmosphere Alarm"}),(0,e.jsx)(i.az,{mt:1}),(0,e.jsx)(i.$n,{icon:b===3?"exclamation-triangle":"exclamation",color:b===3&&"danger",onClick:function(){return S("mode",{mode:b===3?1:3})},children:"Panic Siphon"}),(0,e.jsx)(i.az,{mt:2}),(0,e.jsx)(i.$n,{icon:"sign-out-alt",onClick:function(){return P.onScreen("vents")},children:"Vent Controls"}),(0,e.jsx)(i.az,{mt:1}),(0,e.jsx)(i.$n,{icon:"filter",onClick:function(){return P.onScreen("scrubbers")},children:"Scrubber Controls"}),(0,e.jsx)(i.az,{mt:1}),(0,e.jsx)(i.$n,{icon:"cog",onClick:function(){return P.onScreen("modes")},children:"Operating Mode"}),(0,e.jsx)(i.az,{mt:1}),(0,e.jsx)(i.$n,{icon:"chart-bar",onClick:function(){return P.onScreen("thresholds")},children:"Alarm Thresholds"})]})},E=function(P){var _=(0,r.Oc)().data,S=_.vents;return!S||S.length===0?"Nothing to show":S.map(function(T){return(0,e.jsx)(d.Vent,{vent:T},T.id_tag)})},j=function(P){var _=(0,r.Oc)().data,S=_.scrubbers;return!S||S.length===0?"Nothing to show":S.map(function(T){return(0,e.jsx)(d.Scrubber,{scrubber:T},T.id_tag)})},C=function(P){var _=(0,r.Oc)(),S=_.act,T=_.data,b=T.modes;return!b||b.length===0?"Nothing to show":b.map(function(L){return(0,e.jsxs)(t.Fragment,{children:[(0,e.jsx)(i.$n,{icon:L.selected?"check-square-o":"square-o",selected:L.selected,color:L.selected&&L.danger&&"danger",onClick:function(){return S("mode",{mode:L.mode})},children:L.name}),(0,e.jsx)(i.az,{mt:1})]},L.mode)})},M=function(P){var _=(0,r.Oc)(),S=_.act,T=_.data,b=T.thresholds;return(0,e.jsxs)("table",{className:"LabeledList",style:{width:"100%"},children:[(0,e.jsx)("thead",{children:(0,e.jsxs)("tr",{children:[(0,e.jsx)("td",{}),(0,e.jsx)("td",{className:"color-bad",children:"min2"}),(0,e.jsx)("td",{className:"color-average",children:"min1"}),(0,e.jsx)("td",{className:"color-average",children:"max1"}),(0,e.jsx)("td",{className:"color-bad",children:"max2"})]})}),(0,e.jsx)("tbody",{children:b.map(function(L){return(0,e.jsxs)("tr",{children:[(0,e.jsx)("td",{className:"LabeledList__label",children:(0,e.jsx)("span",{className:"color-"+(0,h.b_)(L.name),children:(0,h.wM)(L.name)})}),L.settings.map(function(W){return(0,e.jsx)("td",{children:(0,e.jsx)(i.$n,{onClick:function(){return S("threshold",{env:W.env,var:W.val})},children:(0,o.Mg)(W.selected,2)})},W.val)})]},L.name)})})]})}},51225:function(y,u,n){"use strict";n.r(u),n.d(u,{AlertModal:function(){return l}});var e=n(20462),o=n(61358),t=n(6544),r=n(7081),i=n(88569),h=n(15581),x=n(44149),d=-1,a=1,l=function(f){var v=(0,r.Oc)(),g=v.act,E=v.data,j=E.autofocus,C=E.buttons,M=C===void 0?[]:C,P=E.large_buttons,_=E.message,S=_===void 0?"":_,T=E.timeout,b=E.title,L=(0,o.useState)(0),W=L[0],$=L[1],z=115+(S.length>30?Math.ceil(S.length/4):0)+(S.length&&P?5:0),w=325+(M.length>2?55:0),V=function(k){W===0&&k===d?$(M.length-1):W===M.length-1&&k===a?$(0):$(W+k)};return(0,e.jsxs)(h.p8,{height:z,title:b,width:w,children:[!!T&&(0,e.jsx)(x.Loader,{value:T}),(0,e.jsx)(h.p8.Content,{onKeyDown:function(k){var H=window.event?k.which:k.keyCode;H===t.iy||H===t.Ri?g("choose",{choice:M[W]}):H===t.s6?g("cancel"):H===t.iU?(k.preventDefault(),V(d)):(H===t.aW||H===t.zh)&&(k.preventDefault(),V(a))},children:(0,e.jsx)(i.wn,{fill:!0,children:(0,e.jsxs)(i.BJ,{fill:!0,vertical:!0,children:[(0,e.jsx)(i.BJ.Item,{grow:!0,m:1,children:(0,e.jsx)(i.az,{color:"label",overflow:"hidden",children:S})}),(0,e.jsxs)(i.BJ.Item,{children:[!!j&&(0,e.jsx)(i.y5,{}),(0,e.jsx)(s,{selected:W})]})]})})})]})},s=function(f){var v=(0,r.Oc)().data,g=v.buttons,E=g===void 0?[]:g,j=v.large_buttons,C=v.swapped_buttons,M=f.selected;return(0,e.jsx)(i.so,{align:"center",direction:C?"row":"row-reverse",fill:!0,justify:"space-around",wrap:!0,children:E==null?void 0:E.map(function(P,_){return j&&E.length<3?(0,e.jsx)(i.so.Item,{grow:!0,children:(0,e.jsx)(c,{button:P,id:_.toString(),selected:M===_})},_):(0,e.jsx)(i.so.Item,{children:(0,e.jsx)(c,{button:P,id:_.toString(),selected:M===_})},_)})})},c=function(f){var v=(0,r.Oc)(),g=v.act,E=v.data,j=E.large_buttons,C=f.button,M=f.selected,P=C.length>7?C.length:7;return(0,e.jsx)(i.$n,{fluid:!!j,height:!!j&&2,onClick:function(){return g("choose",{choice:C})},m:.5,pl:2,pr:2,pt:j?.33:0,selected:M,textAlign:"center",width:!j&&P,children:j?C.toUpperCase():C})}},20730:function(y,u,n){"use strict";n.r(u),n.d(u,{AlgaeFarm:function(){return h}});var e=n(20462),o=n(61282),t=n(7081),r=n(88569),i=n(15581),h=function(x){var d=(0,t.Oc)(),a=d.act,l=d.data,s=l.usePower,c=l.materials,f=l.last_flow_rate,v=l.last_power_draw,g=l.inputDir,E=l.outputDir,j=l.input,C=l.output,M=l.errorText;return(0,e.jsx)(i.p8,{width:500,height:300,children:(0,e.jsxs)(i.p8.Content,{children:[M&&(0,e.jsx)(r.IC,{warning:!0,children:(0,e.jsx)(r.az,{inline:!0,verticalAlign:"middle",children:M})}),(0,e.jsxs)(r.wn,{title:"Status",buttons:(0,e.jsx)(r.$n,{icon:"power-off",selected:s===2,onClick:function(){return a("toggle")},children:"Processing"}),children:[(0,e.jsxs)(r.Ki,{children:[(0,e.jsxs)(r.Ki.Item,{label:"Flow Rate",children:[f," L/s"]}),(0,e.jsxs)(r.Ki.Item,{label:"Power Draw",children:[v," W"]}),(0,e.jsx)(r.Ki.Divider,{size:1}),c.map(function(P){return(0,e.jsxs)(r.Ki.Item,{label:(0,o.ZH)(P.display),children:[(0,e.jsxs)(r.z2,{width:"80%",value:P.qty,maxValue:P.max,children:[P.qty,"/",P.max]}),(0,e.jsx)(r.$n,{ml:1,onClick:function(){return a("ejectMaterial",{mat:P.name})},children:"Eject"})]},P.name)})]}),(0,e.jsx)(r.XI,{mt:1,children:(0,e.jsxs)(r.XI.Row,{children:[(0,e.jsx)(r.XI.Cell,{children:(0,e.jsx)(r.wn,{title:"Gas Input ("+g+")",children:j?(0,e.jsxs)(r.Ki,{children:[(0,e.jsxs)(r.Ki.Item,{label:"Total Pressure",children:[j.pressure," kPa"]}),(0,e.jsxs)(r.Ki.Item,{label:j.name,children:[j.percent,"% (",j.moles," moles)"]})]}):(0,e.jsx)(r.az,{color:"bad",children:"No connection detected."})})}),(0,e.jsx)(r.XI.Cell,{children:(0,e.jsx)(r.wn,{title:"Gas Output ("+E+")",children:C?(0,e.jsxs)(r.Ki,{children:[(0,e.jsxs)(r.Ki.Item,{label:"Total Pressure",children:[C.pressure," kPa"]}),(0,e.jsxs)(r.Ki.Item,{label:C.name,children:[C.percent,"% (",C.moles," moles)"]})]}):(0,e.jsx)(r.az,{color:"bad",children:"No connection detected."})})})]})})]})]})})}},31607:function(y,u,n){"use strict";n.r(u),n.d(u,{AppearanceChangerEars:function(){return x},AppearanceChangerGender:function(){return h},AppearanceChangerSpecies:function(){return i},AppearanceChangerTails:function(){return d},AppearanceChangerWings:function(){return a}});var e=n(20462),o=n(7402),t=n(7081),r=n(88569),i=function(l){var s=(0,t.Oc)(),c=s.act,f=s.data,v=f.species,g=f.specimen,E=(0,o.Ul)(v||[],function(j){return j.specimen});return(0,e.jsx)(r.wn,{title:"Species",fill:!0,scrollable:!0,children:E.map(function(j){return(0,e.jsx)(r.$n,{selected:g===j.specimen,onClick:function(){return c("race",{race:j.specimen})},children:j.specimen},j.specimen)})})},h=function(l){var s=(0,t.Oc)(),c=s.act,f=s.data,v=f.gender,g=f.gender_id,E=f.genders,j=f.id_genders;return(0,e.jsx)(r.wn,{title:"Gender & Sex",fill:!0,scrollable:!0,children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Biological Sex",children:E.map(function(C){return(0,e.jsx)(r.$n,{selected:C.gender_key===v,onClick:function(){return c("gender",{gender:C.gender_key})},children:C.gender_name},C.gender_key)})}),(0,e.jsx)(r.Ki.Item,{label:"Gender Identity",children:j.map(function(C){return(0,e.jsx)(r.$n,{selected:C.gender_key===g,onClick:function(){return c("gender_id",{gender_id:C.gender_key})},children:C.gender_name},C.gender_key)})})]})})},x=function(l){var s=(0,t.Oc)(),c=s.act,f=s.data,v=f.ear_style,g=f.ear_styles;return(0,e.jsxs)(r.wn,{title:"Ears",fill:!0,scrollable:!0,children:[(0,e.jsx)(r.$n,{onClick:function(){return c("ear",{clear:!0})},selected:v===null,children:"-- Not Set --"}),(0,o.Ul)(g,function(E){return E.name.toLowerCase()}).map(function(E){return(0,e.jsx)(r.$n,{onClick:function(){return c("ear",{ref:E.instance})},selected:E.name===v,children:E.name},E.instance)})]})},d=function(l){var s=(0,t.Oc)(),c=s.act,f=s.data,v=f.tail_style,g=f.tail_styles;return(0,e.jsxs)(r.wn,{title:"Tails",fill:!0,scrollable:!0,children:[(0,e.jsx)(r.$n,{onClick:function(){return c("tail",{clear:!0})},selected:v===null,children:"-- Not Set --"}),(0,o.Ul)(g,function(E){return E.name.toLowerCase()}).map(function(E){return(0,e.jsx)(r.$n,{onClick:function(){return c("tail",{ref:E.instance})},selected:E.name===v,children:E.name},E.instance)})]})},a=function(l){var s=(0,t.Oc)(),c=s.act,f=s.data,v=f.wing_style,g=f.wing_styles;return(0,e.jsxs)(r.wn,{title:"Wings",fill:!0,scrollable:!0,children:[(0,e.jsx)(r.$n,{onClick:function(){return c("wing",{clear:!0})},selected:v===null,children:"-- Not Set --"}),(0,o.Ul)(g,function(E){return E.name.toLowerCase()}).map(function(E){return(0,e.jsx)(r.$n,{onClick:function(){return c("wing",{ref:E.instance})},selected:E.name===v,children:E.name},E.instance)})]})}},47565:function(y,u,n){"use strict";n.r(u),n.d(u,{AppearanceChangerColors:function(){return r},AppearanceChangerMarkings:function(){return i}});var e=n(20462),o=n(7081),t=n(88569),r=function(h){var x=(0,o.Oc)(),d=x.act,a=x.data,l=a.change_eye_color,s=a.change_skin_tone,c=a.change_skin_color,f=a.change_hair_color,v=a.change_facial_hair_color,g=a.eye_color,E=a.skin_color,j=a.hair_color,C=a.facial_hair_color,M=a.ears_color,P=a.ears2_color,_=a.tail_color,S=a.tail2_color,T=a.wing_color,b=a.wing2_color;return(0,e.jsxs)(t.wn,{title:"Colors",fill:!0,scrollable:!0,children:[l?(0,e.jsxs)(t.az,{children:[(0,e.jsx)(t.BK,{color:g,mr:1}),(0,e.jsx)(t.$n,{onClick:function(){return d("eye_color")},children:"Change Eye Color"})]}):"",s?(0,e.jsx)(t.az,{children:(0,e.jsx)(t.$n,{onClick:function(){return d("skin_tone")},children:"Change Skin Tone"})}):"",c?(0,e.jsxs)(t.az,{children:[(0,e.jsx)(t.BK,{color:E,mr:1}),(0,e.jsx)(t.$n,{onClick:function(){return d("skin_color")},children:"Change Skin Color"})]}):"",f?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(t.az,{children:[(0,e.jsx)(t.BK,{color:j,mr:1}),(0,e.jsx)(t.$n,{onClick:function(){return d("hair_color")},children:"Change Hair Color"})]}),(0,e.jsxs)(t.az,{children:[(0,e.jsx)(t.BK,{color:M,mr:1}),(0,e.jsx)(t.$n,{onClick:function(){return d("ears_color")},children:"Change Ears Color"})]}),(0,e.jsxs)(t.az,{children:[(0,e.jsx)(t.BK,{color:P,mr:1}),(0,e.jsx)(t.$n,{onClick:function(){return d("ears2_color")},children:"Change Secondary Ears Color"})]}),(0,e.jsxs)(t.az,{children:[(0,e.jsx)(t.BK,{color:_,mr:1}),(0,e.jsx)(t.$n,{onClick:function(){return d("tail_color")},children:"Change Tail Color"})]}),(0,e.jsxs)(t.az,{children:[(0,e.jsx)(t.BK,{color:S,mr:1}),(0,e.jsx)(t.$n,{onClick:function(){return d("tail2_color")},children:"Change Secondary Tail Color"})]}),(0,e.jsxs)(t.az,{children:[(0,e.jsx)(t.BK,{color:T,mr:1}),(0,e.jsx)(t.$n,{onClick:function(){return d("wing_color")},children:"Change Wing Color"})]}),(0,e.jsxs)(t.az,{children:[(0,e.jsx)(t.BK,{color:b,mr:1}),(0,e.jsx)(t.$n,{onClick:function(){return d("wing2_color")},children:"Change Secondary Wing Color"})]})]}):null,v?(0,e.jsxs)(t.az,{children:[(0,e.jsx)(t.BK,{color:C,mr:1}),(0,e.jsx)(t.$n,{onClick:function(){return d("facial_hair_color")},children:"Change Facial Hair Color"})]}):null]})},i=function(h){var x=(0,o.Oc)(),d=x.act,a=x.data,l=a.markings;return(0,e.jsxs)(t.wn,{title:"Markings",fill:!0,scrollable:!0,children:[(0,e.jsx)(t.az,{children:(0,e.jsx)(t.$n,{onClick:function(){return d("marking",{todo:1,name:"na"})},children:"Add Marking"})}),(0,e.jsx)(t.Ki,{children:l.map(function(s){return(0,e.jsxs)(t.Ki.Item,{label:s.marking_name,children:[(0,e.jsx)(t.BK,{color:s.marking_color,mr:1}),(0,e.jsx)(t.$n,{onClick:function(){return d("marking",{todo:4,name:s.marking_name})},children:"Change Color"}),(0,e.jsx)(t.$n,{onClick:function(){return d("marking",{todo:0,name:s.marking_name})},children:"-"}),(0,e.jsx)(t.$n,{onClick:function(){return d("marking",{todo:3,name:s.marking_name})},children:"Move down"}),(0,e.jsx)(t.$n,{onClick:function(){return d("marking",{todo:2,name:s.marking_name})},children:"Move up"})]},s.marking_name)})})]})}},70972:function(y,u,n){"use strict";n.r(u),n.d(u,{AppearanceChangerFacialHair:function(){return i},AppearanceChangerHair:function(){return r}});var e=n(20462),o=n(7081),t=n(88569),r=function(h){var x=(0,o.Oc)(),d=x.act,a=x.data,l=a.hair_style,s=a.hair_styles;return(0,e.jsx)(t.wn,{title:"Hair",fill:!0,scrollable:!0,children:s.map(function(c){return(0,e.jsx)(t.$n,{onClick:function(){return d("hair",{hair:c.hairstyle})},selected:c.hairstyle===l,children:c.hairstyle},c.hairstyle)})})},i=function(h){var x=(0,o.Oc)(),d=x.act,a=x.data,l=a.facial_hair_style,s=a.facial_hair_styles;return(0,e.jsx)(t.wn,{title:"Facial Hair",fill:!0,scrollable:!0,children:s.map(function(c){return(0,e.jsx)(t.$n,{onClick:function(){return d("facial_hair",{facial_hair:c.facialhairstyle})},selected:c.facialhairstyle===l,children:c.facialhairstyle},c.facialhairstyle)})})}},66779:function(y,u,n){"use strict";n.r(u),n.d(u,{AppearanceChanger:function(){return l},AppearanceChangerDefaultError:function(){return s}});var e=n(20462),o=n(61282),t=n(61358),r=n(7081),i=n(88569),h=n(15581),x=n(31607),d=n(47565),a=n(70972),l=function(c){var f=(0,r.Oc)(),v=f.act,g=f.config,E=f.data,j=E.name,C=E.specimen,M=E.gender,P=E.gender_id,_=E.hair_style,S=E.facial_hair_style,T=E.ear_style,b=E.tail_style,L=E.wing_style,W=E.change_race,$=E.change_gender,z=E.change_eye_color,w=E.change_skin_tone,V=E.change_skin_color,k=E.change_hair_color,H=E.change_facial_hair_color,Y=E.change_hair,q=E.change_facial_hair,Z=E.mapRef,Q=g.title,J=[],X=z||w||V||k||H,ee=(0,e.jsx)(i.az,{});J[-1]=(0,e.jsx)(s,{}),J[0]=W?(0,e.jsx)(x.AppearanceChangerSpecies,{}):(0,e.jsx)(s,{}),J[1]=$?(0,e.jsx)(x.AppearanceChangerGender,{}):(0,e.jsx)(s,{}),J[2]=X?(0,e.jsx)(d.AppearanceChangerColors,{}):(0,e.jsx)(s,{}),J[3]=Y?(0,e.jsx)(a.AppearanceChangerHair,{}):(0,e.jsx)(s,{}),J[4]=q?(0,e.jsx)(a.AppearanceChangerFacialHair,{}):(0,e.jsx)(s,{}),J[5]=Y?(0,e.jsx)(x.AppearanceChangerEars,{}):(0,e.jsx)(s,{}),J[6]=Y?(0,e.jsx)(x.AppearanceChangerTails,{}):(0,e.jsx)(s,{}),J[7]=Y?(0,e.jsx)(x.AppearanceChangerWings,{}):(0,e.jsx)(s,{}),J[8]=Y?(0,e.jsx)(d.AppearanceChangerMarkings,{}):(0,e.jsx)(s,{});var se=-1;W?se=0:$?se=1:X?se=2:Y?se=4:q&&(se=5);var ie=(0,t.useState)(se),ue=ie[0],he=ie[1];return(0,e.jsx)(h.p8,{width:700,height:650,title:(0,o.jT)(Q),children:(0,e.jsxs)(h.p8.Content,{children:[(0,e.jsx)(i.wn,{title:"Reflection",children:(0,e.jsxs)(i.so,{children:[(0,e.jsx)(i.so.Item,{grow:1,children:(0,e.jsxs)(i.Ki,{children:[(0,e.jsx)(i.Ki.Item,{label:"Name",children:j}),(0,e.jsx)(i.Ki.Item,{label:"Species",color:W?void 0:"grey",children:C}),(0,e.jsx)(i.Ki.Item,{label:"Biological Sex",color:$?void 0:"grey",children:M?(0,o.ZH)(M):"Not Set"}),(0,e.jsx)(i.Ki.Item,{label:"Gender Identity",color:X?void 0:"grey",children:P?(0,o.ZH)(P):"Not Set"}),(0,e.jsx)(i.Ki.Item,{label:"Hair Style",color:Y?void 0:"grey",children:_?(0,o.ZH)(_):"Not Set"}),(0,e.jsx)(i.Ki.Item,{label:"Facial Hair Style",color:q?void 0:"grey",children:S?(0,o.ZH)(S):"Not Set"}),(0,e.jsx)(i.Ki.Item,{label:"Ear Style",color:Y?void 0:"grey",children:T?(0,o.ZH)(T):"Not Set"}),(0,e.jsx)(i.Ki.Item,{label:"Tail Style",color:Y?void 0:"grey",children:b?(0,o.ZH)(b):"Not Set"}),(0,e.jsx)(i.Ki.Item,{label:"Wing Style",color:Y?void 0:"grey",children:L?(0,o.ZH)(L):"Not Set"})]})}),(0,e.jsx)(i.so.Item,{children:(0,e.jsx)(i.D1,{style:{width:"256px",height:"256px"},params:{id:Z,type:"map"}})})]})}),(0,e.jsxs)(i.tU,{children:[W?(0,e.jsx)(i.tU.Tab,{selected:ue===0,onClick:function(){return he(0)},children:"Race"}):null,$?(0,e.jsx)(i.tU.Tab,{selected:ue===1,onClick:function(){return he(1)},children:"Gender & Sex"}):null,X?(0,e.jsx)(i.tU.Tab,{selected:ue===2,onClick:function(){return he(2)},children:"Colors"}):null,Y?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(i.tU.Tab,{selected:ue===3,onClick:function(){return he(3)},children:"Hair"}),(0,e.jsx)(i.tU.Tab,{selected:ue===5,onClick:function(){return he(5)},children:"Ear"}),(0,e.jsx)(i.tU.Tab,{selected:ue===6,onClick:function(){return he(6)},children:"Tail"}),(0,e.jsx)(i.tU.Tab,{selected:ue===7,onClick:function(){return he(7)},children:"Wing"}),(0,e.jsx)(i.tU.Tab,{selected:ue===8,onClick:function(){return he(8)},children:"Markings"})]}):null,q?(0,e.jsx)(i.tU.Tab,{selected:ue===4,onClick:function(){return he(4)},children:"Facial Hair"}):null]}),(0,e.jsx)(i.az,{height:"43%",children:J[ue]})]})})},s=function(c){return(0,e.jsx)(i.az,{textColor:"red",children:"Disabled"})}},44212:function(y,u,n){"use strict";n.r(u)},8910:function(y,u,n){"use strict";n.r(u),n.d(u,{ArcadeBattle:function(){return i}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),i=function(h){var x=(0,o.Oc)(),d=x.act,a=x.data,l=a.temp,s=a.enemyAction,c=a.enemyName,f=a.playerHP,v=a.playerMP,g=a.enemyHP,E=a.gameOver;return(0,e.jsx)(r.p8,{width:400,height:240,children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsxs)(t.wn,{title:c,textAlign:"center",children:[(0,e.jsxs)(t.wn,{color:"label",children:[(0,e.jsx)(t.az,{children:l}),(0,e.jsx)(t.az,{children:!E&&s})]}),(0,e.jsxs)(t.so,{spacing:1,children:[(0,e.jsx)(t.so.Item,{children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Player Health",children:(0,e.jsxs)(t.z2,{value:f,minValue:0,maxValue:30,ranges:{olive:[31,1/0],good:[20,31],average:[10,20],bad:[-1/0,10]},children:[f,"HP"]})}),(0,e.jsx)(t.Ki.Item,{label:"Player Magic",children:(0,e.jsxs)(t.z2,{value:v,minValue:0,maxValue:10,ranges:{purple:[11,1/0],violet:[3,11],bad:[-1/0,3]},children:[v,"MP"]})})]})}),(0,e.jsx)(t.so.Item,{children:(0,e.jsx)(t.Ki,{children:(0,e.jsx)(t.Ki.Item,{label:"Enemy HP",children:(0,e.jsxs)(t.z2,{value:g,minValue:0,maxValue:45,ranges:{olive:[31,1/0],good:[20,31],average:[10,20],bad:[-1/0,10]},children:[g,"HP"]})})})})]}),E&&(0,e.jsx)(t.$n,{fluid:!0,mt:1,color:"green",onClick:function(){return d("newgame")},children:"New Game"})||(0,e.jsxs)(t.so,{mt:2,justify:"space-between",spacing:1,children:[(0,e.jsx)(t.so.Item,{grow:1,children:(0,e.jsx)(t.$n,{fluid:!0,icon:"fist-raised",tooltip:"Go in for the kill!",tooltipPosition:"top",onClick:function(){return d("attack")},children:"Attack!"})}),(0,e.jsx)(t.so.Item,{grow:1,children:(0,e.jsx)(t.$n,{fluid:!0,icon:"band-aid",tooltip:"Heal yourself!",tooltipPosition:"top",onClick:function(){return d("heal")},children:"Heal!"})}),(0,e.jsx)(t.so.Item,{grow:1,children:(0,e.jsx)(t.$n,{fluid:!0,icon:"magic",tooltip:"Recharge your magic!",tooltipPosition:"top",onClick:function(){return d("charge")},children:"Recharge!"})})]})]})})})}},61968:function(y,u,n){"use strict";n.r(u),n.d(u,{AreaScrubberControl:function(){return x}});var e=n(20462),o=n(61282),t=n(61358),r=n(7081),i=n(88569),h=n(15581),x=function(a){var l=(0,r.Oc)(),s=l.act,c=l.data,f=(0,t.useState)(!1),v=f[0],g=f[1],E=c.scrubbers;return E?(0,e.jsx)(h.p8,{width:600,height:400,children:(0,e.jsx)(h.p8.Content,{scrollable:!0,children:(0,e.jsxs)(i.wn,{children:[(0,e.jsxs)(i.so,{wrap:"wrap",children:[(0,e.jsx)(i.so.Item,{m:"2px",basis:"49%",children:(0,e.jsx)(i.$n,{textAlign:"center",fluid:!0,icon:"search",onClick:function(){return s("scan")},children:"Scan"})}),(0,e.jsx)(i.so.Item,{m:"2px",basis:"49%",grow:1,children:(0,e.jsx)(i.$n,{textAlign:"center",fluid:!0,icon:"layer-group",selected:v,onClick:function(){return g(!v)},children:"Show Areas"})}),(0,e.jsx)(i.so.Item,{m:"2px",basis:"49%",children:(0,e.jsx)(i.$n,{textAlign:"center",fluid:!0,icon:"toggle-on",onClick:function(){return s("allon")},children:"All On"})}),(0,e.jsx)(i.so.Item,{m:"2px",basis:"49%",grow:1,children:(0,e.jsx)(i.$n,{textAlign:"center",fluid:!0,icon:"toggle-off",onClick:function(){return s("alloff")},children:"All Off"})})]}),(0,e.jsx)(i.so,{wrap:"wrap",children:E.map(function(j){return(0,e.jsx)(i.so.Item,{m:"2px",basis:"32%",children:(0,e.jsx)(d,{scrubber:j,showArea:v})},j.id)})})]})})}):(0,e.jsxs)(i.wn,{title:"Error",children:[(0,e.jsx)(i.az,{color:"bad",children:"No Scrubbers Detected."}),(0,e.jsx)(i.$n,{fluid:!0,icon:"search",onClick:function(){return s("scan")},children:"Scan"})]})},d=function(a){var l=(0,r.Oc)().act,s=a.scrubber,c=a.showArea;return(0,e.jsxs)(i.wn,{title:s.name,children:[(0,e.jsx)(i.$n,{fluid:!0,icon:"power-off",selected:s.on,onClick:function(){return l("toggle",{id:s.id})},children:s.on?"Enabled":"Disabled"}),(0,e.jsxs)(i.Ki,{children:[(0,e.jsxs)(i.Ki.Item,{label:"Pressure",children:[s.pressure," kPa"]}),(0,e.jsxs)(i.Ki.Item,{label:"Flow Rate",children:[s.flow_rate," L/s"]}),(0,e.jsxs)(i.Ki.Item,{label:"Load",children:[s.load," W"]}),c&&(0,e.jsx)(i.Ki.Item,{label:"Area",children:(0,o.Sn)(s.area)})]})]})}},29615:function(y,u,n){"use strict";n.r(u),n.d(u,{AssemblyInfrared:function(){return i}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),i=function(h){var x=(0,o.Oc)(),d=x.act,a=x.data,l=a.on,s=a.visible;return(0,e.jsx)(r.p8,{children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsx)(t.wn,{title:"Infrared Unit",children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Laser",children:(0,e.jsx)(t.$n,{icon:"power-off",fluid:!0,selected:l,onClick:function(){return d("state")},children:l?"On":"Off"})}),(0,e.jsx)(t.Ki.Item,{label:"Visibility",children:(0,e.jsx)(t.$n,{icon:"eye",fluid:!0,selected:s,onClick:function(){return d("visible")},children:s?"Able to be seen":"Invisible"})})]})})})})}},95027:function(y,u,n){"use strict";n.r(u),n.d(u,{AssemblyProx:function(){return x}});var e=n(20462),o=n(4089),t=n(7081),r=n(88569),i=n(41242),h=n(15581),x=function(d){var a=(0,t.Oc)(),l=a.act,s=a.data,c=s.timing,f=s.time,v=s.range,g=s.maxRange,E=s.scanning;return(0,e.jsx)(h.p8,{children:(0,e.jsxs)(h.p8.Content,{children:[(0,e.jsx)(r.wn,{title:"Timing Unit",children:(0,e.jsx)(r.Ki,{children:(0,e.jsx)(r.Ki.Item,{label:"Timer",buttons:(0,e.jsx)(r.$n,{icon:"stopwatch",selected:c,onClick:function(){return l("timing")},children:c?"Counting Down":"Disabled"}),children:(0,e.jsx)(r.Q7,{animated:!0,fluid:!0,step:1,value:f,minValue:0,maxValue:600,format:function(j){return(0,i.fU)((0,o.LI)(j*10,0))},onDrag:function(j){return l("set_time",{time:j})}})})})}),(0,e.jsx)(r.wn,{title:"Prox Unit",children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Range",children:(0,e.jsx)(r.Q7,{step:1,minValue:1,value:v,maxValue:g,onDrag:function(j){return l("range",{range:j})}})}),(0,e.jsxs)(r.Ki.Item,{label:"Armed",children:[(0,e.jsx)(r.$n,{mr:1,icon:E?"lock":"lock-open",selected:E,onClick:function(){return l("scanning")},children:E?"ARMED":"Unarmed"}),"Movement sensor is active when armed!"]})]})})]})})}},18721:function(y,u,n){"use strict";n.r(u),n.d(u,{AssemblyTimer:function(){return d}});var e=n(20462),o=n(4089),t=n(7081),r=n(88569),i=n(41242),h=n(15581),x=n(46836),d=function(a){var l=(0,t.Oc)(),s=l.act,c=l.data,f=c.timing,v=c.time;return(0,e.jsx)(h.p8,{children:(0,e.jsx)(h.p8.Content,{children:(0,e.jsx)(r.wn,{title:"Timing Unit",children:(0,e.jsx)(r.Ki,{children:(0,e.jsx)(r.Ki.Item,{label:"Timer",buttons:(0,e.jsx)(r.$n,{icon:"stopwatch",selected:f,onClick:function(){return s("timing")},children:f?"Counting Down":"Disabled"}),children:(0,e.jsx)(x.NumberInputModal,{animated:!0,fluid:!0,step:1,value:v,minValue:0,maxValue:600,format:function(g){return(0,i.fU)((0,o.LI)(g*10,0))},onDrag:function(g){return s("set_time",{time:g})}})})})})})})}},16561:function(y,u,n){"use strict";n.r(u),n.d(u,{AtmosAlertConsole:function(){return i}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),i=function(h){var x=(0,o.Oc)(),d=x.act,a=x.data,l=a.priority_alarms,s=l===void 0?[]:l,c=a.minor_alarms,f=c===void 0?[]:c;return(0,e.jsx)(r.p8,{width:350,height:300,children:(0,e.jsx)(r.p8.Content,{scrollable:!0,children:(0,e.jsx)(t.wn,{title:"Alarms",children:(0,e.jsxs)("ul",{children:[s.length===0&&(0,e.jsx)("li",{className:"color-good",children:"No Priority Alerts"}),s.map(function(v){return(0,e.jsx)("li",{children:(0,e.jsx)(t.$n,{icon:"times",color:"bad",onClick:function(){return d("clear",{ref:v.ref})},children:v.name})},v.name)}),f.length===0&&(0,e.jsx)("li",{className:"color-good",children:"No Minor Alerts"}),f.map(function(v){return(0,e.jsx)("li",{children:(0,e.jsx)(t.$n,{icon:"times",color:"average",onClick:function(){return d("clear",{ref:v.ref})},children:v.name})},v.name)})]})})})})}},74737:function(y,u,n){"use strict";n.r(u),n.d(u,{AtmosControl:function(){return x},AtmosControlContent:function(){return d}});var e=n(20462),o=n(7402),t=n(61358),r=n(7081),i=n(88569),h=n(15581),x=function(a){return(0,e.jsx)(h.p8,{width:600,height:440,children:(0,e.jsx)(h.p8.Content,{scrollable:!0,children:(0,e.jsx)(d,{})})})},d=function(a){var l=(0,r.Oc)(),s=l.act,c=l.data,f=l.config,v=(0,o.Ul)(c.alarms||[],function(S){return S.name}),g=(0,t.useState)(0),E=g[0],j=g[1],C=(0,t.useState)(1),M=C[0],P=C[1],_;return E===0?_=(0,e.jsx)(i.wn,{title:"Alarms",children:v.map(function(S){return(0,e.jsx)(i.$n,{color:S.danger===2?"bad":S.danger===1?"average":"",onClick:function(){return s("alarm",{alarm:S.ref})},children:S.name},S.name)})}):E===1&&(_=(0,e.jsx)(i.az,{height:"526px",mb:"0.5rem",overflow:"hidden",children:(0,e.jsx)(i.tx,{zoomScale:c.zoomScale,onZoom:function(S){return P(S)},children:v.filter(function(S){return~~S.z===~~f.mapZLevel}).map(function(S){return(0,e.jsx)(i.tx.Marker,{x:S.x,y:S.y,zoom:M,icon:"bell",tooltip:S.name,color:S.danger?"red":"green",onClick:function(){return s("alarm",{alarm:S.ref})}},S.ref)})})})),(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(i.tU,{children:[(0,e.jsxs)(i.tU.Tab,{selected:E===0,onClick:function(){return j(0)},children:[(0,e.jsx)(i.In,{name:"table"})," Alarm View"]},"AlarmView"),(0,e.jsxs)(i.tU.Tab,{selected:E===1,onClick:function(){return j(1)},children:[(0,e.jsx)(i.In,{name:"map-marked-alt"})," Map View"]},"MapView")]}),(0,e.jsx)(i.az,{m:2,children:_})]})}},13238:function(y,u,n){"use strict";n.r(u),n.d(u,{AtmosFilter:function(){return i}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),i=function(h){var x=(0,o.Oc)(),d=x.act,a=x.data,l=a.on,s=a.rate,c=a.max_rate,f=a.last_flow_rate,v=a.filter_types,g=v===void 0?[]:v;return(0,e.jsx)(r.p8,{width:390,height:187,children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsx)(t.wn,{children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Power",children:(0,e.jsx)(t.$n,{icon:l?"power-off":"times",selected:l,onClick:function(){return d("power")},children:l?"On":"Off"})}),(0,e.jsxs)(t.Ki.Item,{label:"Transfer Rate",children:[(0,e.jsx)(t.az,{inline:!0,mr:1,children:(0,e.jsx)(t.zv,{value:f,format:function(E){return E+" L/s"}})}),(0,e.jsx)(t.Q7,{animated:!0,step:1,value:s,width:"63px",unit:"L/s",minValue:0,maxValue:200,onDrag:function(E){return d("rate",{rate:E})}}),(0,e.jsx)(t.$n,{ml:1,icon:"plus",disabled:s===c,onClick:function(){return d("rate",{rate:"max"})},children:"Max"})]}),(0,e.jsx)(t.Ki.Item,{label:"Filter",children:g.map(function(E){return(0,e.jsx)(t.$n,{selected:E.selected,onClick:function(){return d("filter",{filterset:E.f_type})},children:E.name},E.name)})})]})})})})}},68541:function(y,u,n){"use strict";n.r(u),n.d(u,{AtmosMixer:function(){return i}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),i=function(h){var x=(0,o.Oc)(),d=x.act,a=x.data,l=a.on,s=a.set_pressure,c=a.max_pressure,f=a.node1_concentration,v=a.node2_concentration,g=a.node1_dir,E=a.node2_dir;return(0,e.jsx)(r.p8,{width:370,height:195,children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsx)(t.wn,{children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Power",children:(0,e.jsx)(t.$n,{icon:l?"power-off":"times",selected:l,onClick:function(){return d("power")},children:l?"On":"Off"})}),(0,e.jsxs)(t.Ki.Item,{label:"Output Pressure",children:[(0,e.jsx)(t.Q7,{animated:!0,value:s,unit:"kPa",width:"75px",minValue:0,maxValue:c,step:10,onChange:function(j){return d("pressure",{pressure:j})}}),(0,e.jsx)(t.$n,{ml:1,icon:"plus",disabled:s===c,onClick:function(){return d("pressure",{pressure:"max"})},children:"Max"})]}),(0,e.jsx)(t.Ki.Divider,{size:1}),(0,e.jsx)(t.Ki.Item,{color:"label",children:(0,e.jsx)("u",{children:"Concentrations"})}),(0,e.jsx)(t.Ki.Item,{label:"Node 1 ("+g+")",children:(0,e.jsx)(t.Q7,{animated:!0,value:f,unit:"%",width:"60px",step:1,minValue:0,maxValue:100,stepPixelSize:2,onDrag:function(j){return d("node1",{concentration:j})}})}),(0,e.jsx)(t.Ki.Item,{label:"Node 2 ("+E+")",children:(0,e.jsx)(t.Q7,{animated:!0,value:v,unit:"%",width:"60px",step:1,minValue:0,maxValue:100,stepPixelSize:2,onDrag:function(j){return d("node2",{concentration:j})}})})]})})})})}},43855:function(y,u,n){"use strict";n.r(u),n.d(u,{Autolathe:function(){return v}});var e=n(20462),o=n(7402),t=n(15813),r=n(61282),i=n(7081),h=n(88569),x=n(15581),d=n(2858);function a(g,E){(E==null||E>g.length)&&(E=g.length);for(var j=0,C=new Array(E);j=g.length?{done:!0}:{done:!1,value:g[C++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var f=function(g,E,j){var C=function(){var T=_.value,b=E.find(function(L){return L.name===T});if(!b)return"continue";if(b.amount=0)&&(j[M]=g[M]);return j}var a={Alphabetical:function(g,E){return g.name>E.name},"By availability":function(g,E){return-(g.affordable-E.affordable)},"By price":function(g,E){return g.price-E.price}},l=function(g){var E=function(Z){$(Z)},j=function(Z){V(Z)},C=function(Z){Y(Z)},M=(0,r.Oc)(),P=M.act,_=M.data,S=_.processing,T=_.points,b=_.beaker,L=(0,t.useState)(""),W=L[0],$=L[1],z=(0,t.useState)("Alphabetical"),w=z[0],V=z[1],k=(0,t.useState)(!1),H=k[0],Y=k[1];return(0,e.jsx)(h.p8,{width:400,height:450,children:(0,e.jsx)(h.p8.Content,{className:"Layout__content--flexColumn",scrollable:!0,children:S&&(0,e.jsx)(i.wn,{title:"Processing",children:"The biogenerator is processing reagents!"})||(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(i.wn,{children:[T," points available.",(0,e.jsx)(i.$n,{ml:1,icon:"blender",onClick:function(){return P("activate")},children:"Activate"}),(0,e.jsx)(i.$n,{ml:1,icon:"eject",disabled:!b,onClick:function(){return P("detach")},children:"Eject Beaker"})]}),(0,e.jsx)(c,{searchText:W,sortOrder:w,descending:H,onSearchText:E,onSortOrder:j,onDescending:C}),(0,e.jsx)(s,{searchText:W,sortOrder:w,descending:H})]})})})},s=function(g){var E=(0,r.Oc)(),j=E.act,C=E.data,M=C.points,P=C.items,_=P===void 0?[]:P,S=C.build_eff,T=C.beaker,b=(0,o.XZ)(g.searchText,function($){return $[0]}),L=!1,W=Object.entries(_).map(function($){var z=Object.entries($[1]).filter(b).map(function(w){return w[1].affordable=+(M>=w[1].price/S),w[1]}).sort(a[g.sortOrder]);if(z.length!==0)return g.descending&&(z=z.reverse()),L=!0,(0,e.jsx)(v,{title:$[0],items:z,build_eff:S,beaker:T},$[0])});return(0,e.jsx)(i.so.Item,{grow:"1",overflow:"auto",children:(0,e.jsx)(i.wn,{children:L?W:(0,e.jsx)(i.az,{color:"label",children:"No items matching your criteria was found!"})})})},c=function(g){return(0,e.jsx)(i.az,{mb:"0.5rem",children:(0,e.jsxs)(i.so,{width:"100%",children:[(0,e.jsx)(i.so.Item,{grow:"1",mr:"0.5rem",children:(0,e.jsx)(i.pd,{placeholder:"Search by item name..",value:g.searchText,width:"100%",onInput:function(E,j){return g.onSearchText(j)}})}),(0,e.jsx)(i.so.Item,{basis:"30%",children:(0,e.jsx)(i.ms,{autoScroll:!1,selected:g.sortOrder,options:Object.keys(a),width:"100%",lineHeight:"19px",onSelected:function(E){return g.onSortOrder(E)}})}),(0,e.jsx)(i.so.Item,{children:(0,e.jsx)(i.$n,{icon:g.descending?"arrow-down":"arrow-up",height:"19px",tooltip:g.descending?"Descending order":"Ascending order",tooltipPosition:"bottom-end",ml:"0.5rem",onClick:function(){return g.onDescending(!g.descending)}})})]})})},f=function(g,E){return!(!g.affordable||g.reagent&&!E)},v=function(g){var E=(0,r.Oc)(),j=E.act,C=E.data,M=g.title,P=g.items,_=g.build_eff,S=g.beaker,T=d(g,["title","items","build_eff","beaker"]);return(0,e.jsx)(i.Nt,x({open:!0,title:M},T,{children:P.map(function(b){return(0,e.jsxs)(i.az,{children:[(0,e.jsx)(i.az,{inline:!0,verticalAlign:"middle",lineHeight:"20px",style:{float:"left"},children:b.name}),(0,e.jsx)(i.$n,{disabled:!f(b,S),width:"15%",textAlign:"center",style:{float:"right"},onClick:function(){return j("purchase",{cat:M,name:b.name})},children:(b.price/_).toLocaleString("en-US")}),(0,e.jsx)(i.az,{style:{clear:"both"}})]},b.name)})}))}},13469:function(y,u,n){"use strict";n.r(u),n.d(u,{BodyDesignerBodyRecords:function(){return r}});var e=n(20462),o=n(7081),t=n(88569),r=function(i){var h=(0,o.Oc)().act,x=i.bodyrecords;return(0,e.jsx)(t.wn,{title:"Body Records",buttons:(0,e.jsx)(t.$n,{icon:"arrow-left",onClick:function(){return h("menu",{menu:"Main"})},children:"Back"}),children:x?x.map(function(d){return(0,e.jsx)(t.$n,{icon:"eye",onClick:function(){return h("view_brec",{view_brec:d.recref})},children:d.name},d.name)}):""})}},17796:function(y,u,n){"use strict";n.r(u),n.d(u,{BodyDesignerMain:function(){return r}});var e=n(20462),o=n(7081),t=n(88569),r=function(i){var h=(0,o.Oc)().act;return(0,e.jsxs)(t.wn,{title:"Database Functions",children:[(0,e.jsx)(t.$n,{icon:"eye",onClick:function(){return h("menu",{menu:"Body Records"})},children:"View Individual Body Records"}),(0,e.jsx)(t.$n,{icon:"eye",onClick:function(){return h("menu",{menu:"Stock Records"})},children:"View Stock Body Records"})]})}},24983:function(y,u,n){"use strict";n.r(u),n.d(u,{BodyDesignerOOCNotes:function(){return r}});var e=n(20462),o=n(7081),t=n(88569),r=function(i){var h=(0,o.Oc)().act,x=i.activeBodyRecord;return(0,e.jsx)(t.wn,{title:"Body OOC Notes (This is OOC!)",height:"100%",scrollable:!0,buttons:(0,e.jsx)(t.$n,{icon:"arrow-left",onClick:function(){return h("menu",{menu:"Specific Record"})},children:"Back"}),style:{wordBreak:"break-all"},children:x&&x.booc||"ERROR: Body record not found!"})}},31687:function(y,u,n){"use strict";n.r(u),n.d(u,{BodyDesignerSpecificRecord:function(){return i}});var e=n(20462),o=n(61282),t=n(7081),r=n(88569),i=function(h){var x=(0,t.Oc)().act,d=h.activeBodyRecord,a=h.mapRef;return d?(0,e.jsxs)(r.so,{direction:"column",children:[(0,e.jsx)(r.so.Item,{basis:"165px",children:(0,e.jsx)(r.wn,{title:"Specific Record",buttons:(0,e.jsx)(r.$n,{icon:"arrow-left",onClick:function(){return x("menu",{menu:"Main"})},children:"Back"}),children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Name",children:d.real_name}),(0,e.jsx)(r.Ki.Item,{label:"Species",children:d.speciesname}),(0,e.jsx)(r.Ki.Item,{label:"Bio. Sex",children:(0,e.jsx)(r.$n,{icon:"pen",onClick:function(){return x("href_conversion",{target_href:"bio_gender",target_value:1})},children:(0,o.ZH)(d.gender)})}),(0,e.jsx)(r.Ki.Item,{label:"Synthetic",children:d.synthetic}),(0,e.jsxs)(r.Ki.Item,{label:"Mind Compat",children:[d.locked,(0,e.jsx)(r.$n,{ml:1,icon:"eye",disabled:!d.booc,onClick:function(){return x("boocnotes")},children:"View OOC Notes"})]})]})})}),(0,e.jsx)(r.so.Item,{basis:"130px",children:(0,e.jsx)(r.D1,{style:{width:"100%",height:"128px"},params:{id:a,type:"map"}})}),(0,e.jsx)(r.so.Item,{basis:"300px",children:(0,e.jsx)(r.wn,{title:"Customize",height:"300px",style:{overflow:"auto"},children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Scale",children:(0,e.jsx)(r.$n,{icon:"pen",onClick:function(){return x("href_conversion",{target_href:"size_multiplier",target_value:1})},children:d.scale})}),Object.keys(d.styles).map(function(l){var s=d.styles[l];return(0,e.jsxs)(r.Ki.Item,{label:l,children:[s.styleHref?(0,e.jsx)(r.$n,{icon:"pen",onClick:function(){return x("href_conversion",{target_href:s.styleHref,target_value:1})},children:s.style}):"",s.colorHref?(0,e.jsxs)(r.az,{children:[(0,e.jsx)(r.$n,{icon:"pen",onClick:function(){return x("href_conversion",{target_href:s.colorHref,target_value:1})},children:s.color}),(0,e.jsx)(r.BK,{verticalAlign:"top",width:"32px",height:"20px",color:s.color,style:{border:"1px solid #fff"}})]}):"",s.colorHref2?(0,e.jsxs)(r.az,{children:[(0,e.jsx)(r.$n,{icon:"pen",onClick:function(){return x("href_conversion",{target_href:s.colorHref2,target_value:1})},children:s.color2}),(0,e.jsx)(r.BK,{verticalAlign:"top",width:"32px",height:"20px",color:s.color2,style:{border:"1px solid #fff"}})]}):""]},l)}),(0,e.jsx)(r.Ki.Item,{label:"Digitigrade",children:(0,e.jsx)(r.$n,{icon:"pen",onClick:function(){return x("href_conversion",{target_href:"digitigrade",target_value:1})},children:d.digitigrade?"Yes":"No"})}),(0,e.jsxs)(r.Ki.Item,{label:"Body Markings",children:[(0,e.jsx)(r.$n,{icon:"plus",onClick:function(){return x("href_conversion",{target_href:"marking_style",target_value:1})},children:"Add Marking"}),(0,e.jsx)(r.so,{wrap:"wrap",justify:"center",align:"center",children:Object.keys(d.markings).map(function(l){var s=d.markings[l];return(0,e.jsx)(r.so.Item,{basis:"100%",children:(0,e.jsxs)(r.so,{children:[(0,e.jsx)(r.so.Item,{children:(0,e.jsx)(r.$n,{mr:.2,fluid:!0,icon:"times",color:"red",onClick:function(){return x("href_conversion",{target_href:"marking_remove",target_value:l})}})}),(0,e.jsx)(r.so.Item,{grow:1,children:(0,e.jsx)(r.$n,{fluid:!0,backgroundColor:s,onClick:function(){return x("href_conversion",{target_href:"marking_color",target_value:l})},children:l})})]})},l)})})]})]})})})]}):(0,e.jsx)(r.az,{color:"bad",children:"ERROR: Record Not Found!"})}},99123:function(y,u,n){"use strict";n.r(u),n.d(u,{BodyDesignerStockRecords:function(){return r}});var e=n(20462),o=n(7081),t=n(88569),r=function(i){var h=(0,o.Oc)().act,x=i.stock_bodyrecords;return(0,e.jsx)(t.wn,{title:"Stock Records",buttons:(0,e.jsx)(t.$n,{icon:"arrow-left",onClick:function(){return h("menu",{menu:"Main"})},children:"Back"}),children:x.map(function(d){return(0,e.jsx)(t.$n,{icon:"eye",onClick:function(){return h("view_stock_brec",{view_stock_brec:d})},children:d},d)})})}},87706:function(y,u,n){"use strict";n.r(u),n.d(u,{BodyDesigner:function(){return l}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),i=n(13469),h=n(17796),x=n(24983),d=n(31687),a=n(99123),l=function(s){var c=(0,o.Oc)(),f=c.act,v=c.data,g=v.menu,E=v.disk,j=v.diskStored,C=v.activeBodyRecord,M=v.stock_bodyrecords,P=v.bodyrecords,_=v.mapRef,S={Main:(0,e.jsx)(h.BodyDesignerMain,{}),"Body Records":(0,e.jsx)(i.BodyDesignerBodyRecords,{bodyrecords:P}),"Stock Records":(0,e.jsx)(a.BodyDesignerStockRecords,{stock_bodyrecords:M}),"Specific Record":(0,e.jsx)(d.BodyDesignerSpecificRecord,{activeBodyRecord:C,mapRef:_}),"OOC Notes":(0,e.jsx)(x.BodyDesignerOOCNotes,{activeBodyRecord:C})},T=S[g];return(0,e.jsx)(r.p8,{width:400,height:650,children:(0,e.jsxs)(r.p8.Content,{children:[E?(0,e.jsxs)(t.az,{children:[(0,e.jsx)(t.$n,{icon:"save",onClick:function(){return f("savetodisk")},disabled:!C,children:"Save To Disk"}),(0,e.jsx)(t.$n,{icon:"save",onClick:function(){return f("loadfromdisk")},disabled:!j,children:"Load From Disk"}),(0,e.jsx)(t.$n,{icon:"eject",onClick:function(){return f("ejectdisk")},children:"Eject"})]}):"",T]})})}},25375:function(y,u,n){"use strict";n.r(u)},85168:function(y,u,n){"use strict";n.r(u),n.d(u,{BodyScannerEmpty:function(){return t}});var e=n(20462),o=n(88569),t=function(){return(0,e.jsx)(o.wn,{textAlign:"center",flexGrow:!0,children:(0,e.jsx)(o.so,{height:"100%",children:(0,e.jsxs)(o.so.Item,{grow:"1",align:"center",color:"label",children:[(0,e.jsx)(o.In,{name:"user-slash",mb:"0.5rem",size:5}),(0,e.jsx)("br",{}),"No occupant detected."]})})})}},43780:function(y,u,n){"use strict";n.r(u),n.d(u,{BodyScannerMain:function(){return a}});var e=n(20462),o=n(88569),t=n(49354),r=n(53187),i=n(81417),h=n(32915),x=n(73457),d=n(70765),a=function(l){var s=l.occupant;return(0,e.jsxs)(o.az,{children:[(0,e.jsx)(i.BodyScannerMainOccupant,{occupant:s}),(0,e.jsx)(d.BodyScannerMainReagents,{occupant:s}),(0,e.jsx)(t.BodyScannerMainAbnormalities,{occupant:s}),(0,e.jsx)(r.BodyScannerMainDamage,{occupant:s}),(0,e.jsx)(h.BodyScannerMainOrgansExternal,{organs:s.extOrgan}),(0,e.jsx)(x.BodyScannerMainOrgansInternal,{organs:s.intOrgan})]})}},49354:function(y,u,n){"use strict";n.r(u),n.d(u,{BodyScannerMainAbnormalities:function(){return r}});var e=n(20462),o=n(88569),t=n(47710),r=function(i){var h=i.occupant,x=h.hasBorer||h.blind||h.colourblind||h.nearsighted||h.hasVirus||h.husked;return x=x||h.humanPrey||h.livingPrey||h.objectPrey,x?(0,e.jsx)(o.wn,{title:"Abnormalities",children:t.abnormalities.map(function(d,a){if(h[d[0]])return(0,e.jsx)(o.az,{color:d[1],bold:d[1]==="bad",children:d[2](h)},a)})}):(0,e.jsx)(o.wn,{title:"Abnormalities",children:(0,e.jsx)(o.az,{color:"label",children:"No abnormalities found."})})}},53187:function(y,u,n){"use strict";n.r(u),n.d(u,{BodyScannerMainDamage:function(){return h}});var e=n(20462),o=n(4089),t=n(88569),r=n(47710),i=n(65518),h=function(d){var a=d.occupant;return(0,e.jsx)(t.wn,{title:"Damage",children:(0,e.jsx)(t.XI,{children:(0,i.mapTwoByTwo)(r.damages,function(l,s,c){return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(t.XI.Row,{color:"label",children:[(0,e.jsxs)(t.XI.Cell,{children:[l[0],":"]}),(0,e.jsx)(t.XI.Cell,{children:!!s&&s[0]+":"})]}),(0,e.jsxs)(t.XI.Row,{children:[(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(x,{value:a[l[1]],marginBottom:c0&&"0.5rem",value:a.totalLoss/100,ranges:r.damageRange,children:[(0,e.jsxs)(t.az,{style:{float:"left"},inline:!0,children:[!!a.bruteLoss&&(0,e.jsxs)(t.az,{inline:!0,position:"relative",children:[(0,e.jsx)(t.In,{name:"bone"}),(0,o.Mg)(a.bruteLoss),"\xA0",(0,e.jsx)(t.m_,{position:"top",content:"Brute damage"})]}),!!a.fireLoss&&(0,e.jsxs)(t.az,{inline:!0,position:"relative",children:[(0,e.jsx)(t.In,{name:"fire"}),(0,o.Mg)(a.fireLoss),(0,e.jsx)(t.m_,{position:"top",content:"Burn damage"})]})]}),(0,e.jsx)(t.az,{inline:!0,children:(0,o.Mg)(a.totalLoss)})]})}),(0,e.jsxs)(t.XI.Cell,{textAlign:"right",width:"33%",children:[(0,e.jsx)(t.az,{color:"average",inline:!0,children:(0,i.reduceOrganStatus)([a.internalBleeding&&"Internal bleeding",!!a.status.bleeding&&"External bleeding",a.lungRuptured&&"Ruptured lung",a.status.destroyed&&"Destroyed",!!a.status.broken&&a.status.broken,(0,i.germStatus)(a.germ_level),!!a.open&&"Open incision"])}),(0,e.jsxs)(t.az,{inline:!0,children:[(0,i.reduceOrganStatus)([!!a.status.splinted&&"Splinted",!!a.status.robotic&&"Robotic",!!a.status.dead&&(0,e.jsx)(t.az,{color:"bad",children:"DEAD"})]),(0,i.reduceOrganStatus)(a.implants.map(function(s){return s.known?s.name:"Unknown object"}))]})]})]},l)})]})})}},73457:function(y,u,n){"use strict";n.r(u),n.d(u,{BodyScannerMainOrgansInternal:function(){return h}});var e=n(20462),o=n(4089),t=n(88569),r=n(47710),i=n(65518),h=function(x){var d=x.organs;return d.length===0?(0,e.jsx)(t.wn,{title:"Internal Organs",children:(0,e.jsx)(t.az,{color:"label",children:"N/A"})}):(0,e.jsx)(t.wn,{title:"Internal Organs",children:(0,e.jsxs)(t.XI,{children:[(0,e.jsxs)(t.XI.Row,{header:!0,children:[(0,e.jsx)(t.XI.Cell,{children:"Name"}),(0,e.jsx)(t.XI.Cell,{textAlign:"center",children:"Damage"}),(0,e.jsx)(t.XI.Cell,{textAlign:"right",children:"Injuries"})]}),d.map(function(a,l){return(0,e.jsxs)(t.XI.Row,{style:{textTransform:"capitalize"},children:[(0,e.jsx)(t.XI.Cell,{width:"33%",children:a.name}),(0,e.jsx)(t.XI.Cell,{textAlign:"center",children:(0,e.jsx)(t.z2,{minValue:0,maxValue:a.maxHealth/100,value:a.damage/100,mt:l>0&&"0.5rem",ranges:r.damageRange,children:(0,o.Mg)(a.damage)})}),(0,e.jsxs)(t.XI.Cell,{textAlign:"right",width:"33%",children:[(0,e.jsx)(t.az,{color:"average",inline:!0,children:(0,i.reduceOrganStatus)([(0,i.germStatus)(a.germ_level),!!a.inflamed&&"Appendicitis detected."])}),(0,e.jsx)(t.az,{inline:!0,children:(0,i.reduceOrganStatus)([a.robotic===1&&"Robotic",a.robotic===2&&"Assisted",!!a.dead&&(0,e.jsx)(t.az,{color:"bad",children:"DEAD"})])})]})]},l)})]})})}},70765:function(y,u,n){"use strict";n.r(u),n.d(u,{BodyScannerMainReagents:function(){return t}});var e=n(20462),o=n(88569),t=function(r){var i=r.occupant;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(o.wn,{title:"Blood Reagents",children:i.reagents?(0,e.jsxs)(o.XI,{children:[(0,e.jsxs)(o.XI.Row,{header:!0,children:[(0,e.jsx)(o.XI.Cell,{children:"Reagent"}),(0,e.jsx)(o.XI.Cell,{textAlign:"right",children:"Amount"})]}),i.reagents.map(function(h){return(0,e.jsxs)(o.XI.Row,{children:[(0,e.jsx)(o.XI.Cell,{children:h.name}),(0,e.jsxs)(o.XI.Cell,{textAlign:"right",children:[h.amount," Units"," ",h.overdose?(0,e.jsx)(o.az,{color:"bad",children:"OVERDOSING"}):null]})]},h.name)})]}):(0,e.jsx)(o.az,{color:"good",children:"No Blood Reagents Detected"})}),(0,e.jsx)(o.wn,{title:"Stomach Reagents",children:i.ingested?(0,e.jsxs)(o.XI,{children:[(0,e.jsxs)(o.XI.Row,{header:!0,children:[(0,e.jsx)(o.XI.Cell,{children:"Reagent"}),(0,e.jsx)(o.XI.Cell,{textAlign:"right",children:"Amount"})]}),i.ingested.map(function(h){return(0,e.jsxs)(o.XI.Row,{children:[(0,e.jsx)(o.XI.Cell,{children:h.name}),(0,e.jsxs)(o.XI.Cell,{textAlign:"right",children:[h.amount," Units"," ",h.overdose?(0,e.jsx)(o.az,{color:"bad",children:"OVERDOSING"}):null]})]},h.name)})]}):(0,e.jsx)(o.az,{color:"good",children:"No Stomach Reagents Detected"})})]})}},47710:function(y,u,n){"use strict";n.r(u),n.d(u,{abnormalities:function(){return o},damageRange:function(){return r},damages:function(){return t},stats:function(){return e}});var e=[["good","Alive"],["average","Unconscious"],["bad","DEAD"]],o=[["hasBorer","bad",function(i){return"Large growth detected in frontal lobe, possibly cancerous. Surgical removal is recommended."}],["hasVirus","bad",function(i){return"Viral pathogen detected in blood stream."}],["blind","average",function(i){return"Cataracts detected."}],["colourblind","average",function(i){return"Photoreceptor abnormalities detected."}],["nearsighted","average",function(i){return"Retinal misalignment detected."}],["humanPrey","average",function(i){return"Foreign Humanoid(s) detected: "+i.humanPrey}],["livingPrey","average",function(i){return"Foreign Creature(s) detected: "+i.livingPrey}],["objectPrey","average",function(i){return"Foreign Object(s) detected: "+i.objectPrey}],["husked","bad",function(i){return"Anatomical structure lost, resuscitation not possible!"}]],t=[["Respiratory","oxyLoss"],["Brain","brainLoss"],["Toxin","toxLoss"],["Radiation","radLoss"],["Brute","bruteLoss"],["Genetic","cloneLoss"],["Burn","fireLoss"],["Paralysis","paralysis"]],r={average:[.25,.5],bad:[.5,1/0]}},65518:function(y,u,n){"use strict";n.r(u),n.d(u,{germStatus:function(){return i},mapTwoByTwo:function(){return t},reduceOrganStatus:function(){return r}});var e=n(20462),o=n(88569);function t(h,x){for(var d=[],a=0;a0?h.reduce(function(x,d){return x===null?d:(0,e.jsxs)(e.Fragment,{children:[x,!!d&&(0,e.jsx)(o.az,{children:d})]})}):null}function i(h){if(h>100){if(h<300)return"mild infection";if(h<400)return"mild infection+";if(h<500)return"mild infection++";if(h<700)return"acute infection";if(h<800)return"acute infection+";if(h<900)return"acute infection++";if(h>=900)return"septic"}return""}},9665:function(y,u,n){"use strict";n.r(u),n.d(u,{BodyScanner:function(){return h}});var e=n(20462),o=n(7081),t=n(15581),r=n(85168),i=n(43780),h=function(x){var d=(0,o.Oc)().data,a=d.occupied,l=d.occupant,s=l===void 0?{}:l,c=a?(0,e.jsx)(i.BodyScannerMain,{occupant:s}):(0,e.jsx)(r.BodyScannerEmpty,{});return(0,e.jsx)(t.p8,{width:690,height:600,children:(0,e.jsx)(t.p8.Content,{scrollable:!0,className:"Layout__content--flexColumn",children:c})})}},78006:function(y,u,n){"use strict";n.r(u)},11265:function(y,u,n){"use strict";n.r(u),n.d(u,{BombTester:function(){return a}});var e=n(20462),o=n(61358),t=n(7081),r=n(88569),i=n(15581);function h(){return h=Object.assign||function(s){for(var c=1;c.5,P=Math.random()>.5;return g.state={x:M?E:0,y:P?j:0,reverseX:!1,reverseY:!1},g.process=setInterval(function(){g.setState(function(_){var S=h({},_);return S.reverseX?S.x-C<-5?(S.reverseX=!1,S.x+=C):S.x-=C:S.x+C>E?(S.reverseX=!0,S.x-=C):S.x+=C,S.reverseY?S.y-C<-20?(S.reverseY=!1,S.y+=C):S.y-=C:S.y+C>j?(S.reverseY=!0,S.y-=C):S.y+=C,S})},1),g}var f=c.prototype;return f.componentWillUnmount=function(){clearInterval(this.process)},f.render=function(){var g=this.state,E=g.x,j=g.y,C={position:"relative",left:E+"px",top:j+"px"};return(0,e.jsx)(r.wn,{title:"Simulation in progress!",fill:!0,children:(0,e.jsx)(r.az,{position:"absolute",style:{overflow:"hidden",width:"100%",height:"100%"},children:(0,e.jsx)(r.In,{style:C,name:"bomb",size:10,color:"red"})})})},c}(o.Component)},5536:function(y,u,n){"use strict";n.r(u),n.d(u,{BotanyEditor:function(){return i}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),i=function(h){var x=(0,o.Oc)(),d=x.act,a=x.data,l=a.activity,s=a.degradation,c=a.disk,f=a.sourceName,v=a.locus,g=a.loaded;return l?(0,e.jsx)(r.p8,{width:470,height:500,children:(0,e.jsx)(r.p8.Content,{scrollable:!0,children:(0,e.jsx)(t.IC,{info:!0,children:"Scanning..."})})}):(0,e.jsx)(r.p8,{width:470,height:500,children:(0,e.jsxs)(r.p8.Content,{scrollable:!0,children:[(0,e.jsx)(t.wn,{title:"Buffered Genetic Data",children:c&&(0,e.jsxs)(t.az,{children:[(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Source",children:f}),(0,e.jsxs)(t.Ki.Item,{label:"Gene Decay",children:[s,"%"]}),(0,e.jsx)(t.Ki.Item,{label:"Locus",children:v})]}),(0,e.jsx)(t.$n,{mt:1,icon:"eject",onClick:function(){return d("eject_disk")},children:"Eject Loaded Disk"})]})||(0,e.jsx)(t.IC,{warning:!0,children:"No disk loaded."})}),(0,e.jsx)(t.wn,{title:"Loaded Material",children:g&&(0,e.jsxs)(t.az,{children:[(0,e.jsx)(t.Ki,{children:(0,e.jsx)(t.Ki.Item,{label:"Target",children:g})}),(0,e.jsx)(t.$n,{mt:1,icon:"cog",onClick:function(){return d("apply_gene")},children:"Apply Gene Mods"}),(0,e.jsx)(t.$n,{mt:1,icon:"eject",onClick:function(){return d("eject_packet")},children:"Eject Target"})]})||(0,e.jsx)(t.IC,{warning:!0,children:"No target seed packet loaded."})})]})})}},68734:function(y,u,n){"use strict";n.r(u),n.d(u,{BotanyIsolator:function(){return i}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),i=function(h){var x=(0,o.Oc)(),d=x.act,a=x.data,l=a.geneMasks,s=a.activity,c=a.degradation,f=a.disk,v=a.loaded,g=a.hasGenetics,E=a.sourceName;return s?(0,e.jsx)(r.p8,{width:470,height:500,children:(0,e.jsx)(r.p8.Content,{scrollable:!0,children:(0,e.jsx)(t.IC,{info:!0,children:"Scanning..."})})}):(0,e.jsx)(r.p8,{width:470,height:500,children:(0,e.jsxs)(r.p8.Content,{scrollable:!0,children:[(0,e.jsx)(t.wn,{title:"Buffered Genetic Data",children:g&&(0,e.jsxs)(t.az,{children:[(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Source",children:E}),(0,e.jsxs)(t.Ki.Item,{label:"Gene decay",children:[c,"%"]}),f&&l.length&&l.map(function(j){return(0,e.jsx)(t.Ki.Item,{label:j.mask,children:(0,e.jsx)(t.$n,{mb:-1,icon:"download",onClick:function(){return d("get_gene",{get_gene:j.tag})},children:"Extract"})},j.mask)})||null]}),f&&(0,e.jsxs)(t.az,{mt:1,children:[(0,e.jsx)(t.$n,{icon:"eject",onClick:function(){return d("eject_disk")},children:"Eject Loaded Disk"}),(0,e.jsx)(t.$n,{icon:"trash",onClick:function(){return d("clear_buffer")},children:"Clear Genetic Buffer"})]})||(0,e.jsx)(t.IC,{mt:1,warning:!0,children:"No disk inserted."})]})||(0,e.jsxs)(t.az,{children:[(0,e.jsx)(t.IC,{warning:!0,children:"No Data Buffered."}),f&&(0,e.jsx)(t.$n,{icon:"eject",onClick:function(){return d("eject_disk")},children:"Eject Loaded Disk"})||(0,e.jsx)(t.IC,{mt:1,warning:!0,children:"No disk inserted."})]})}),(0,e.jsx)(t.wn,{title:"Loaded Material",children:v&&(0,e.jsxs)(t.az,{children:[(0,e.jsx)(t.Ki,{children:(0,e.jsx)(t.Ki.Item,{label:"Packet Loaded",children:v})}),(0,e.jsx)(t.$n,{mt:1,icon:"cog",onClick:function(){return d("scan_genome")},children:"Process Genome"}),(0,e.jsx)(t.$n,{icon:"eject",onClick:function(){return d("eject_packet")},children:"Eject Packet"})]})||(0,e.jsx)(t.IC,{warning:!0,children:"No packet loaded."})})]})})}},46141:function(y,u,n){"use strict";n.r(u),n.d(u,{BrigTimer:function(){return x}});var e=n(20462),o=n(4089),t=n(7081),r=n(88569),i=n(41242),h=n(15581),x=function(d){var a=(0,t.Oc)(),l=a.act,s=a.data,c=s.time_left,f=s.max_time_left,v=s.timing,g=s.flash_found,E=s.flash_charging,j=s.preset_short,C=s.preset_medium,M=s.preset_long;return(0,e.jsx)(h.p8,{width:400,height:138,children:(0,e.jsx)(h.p8.Content,{scrollable:!0,children:(0,e.jsxs)(r.wn,{title:"Cell Timer",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.$n,{icon:"clock-o",selected:v,onClick:function(){return l(v?"stop":"start")},children:v?"Stop":"Start"}),g&&(0,e.jsx)(r.$n,{icon:"lightbulb-o",disabled:E,onClick:function(){return l("flash")},children:E?"Recharging":"Flash"})||null]}),children:[(0,e.jsx)(r.Q7,{animated:!0,fluid:!0,step:1,value:c/10,minValue:0,maxValue:f/10,format:function(P){return(0,i.fU)((0,o.LI)(P*10,0))},onDrag:function(P){return l("time",{time:P})}}),(0,e.jsxs)(r.so,{mt:1,children:[(0,e.jsx)(r.so.Item,{grow:1,children:(0,e.jsx)(r.$n,{fluid:!0,icon:"hourglass-start",onClick:function(){return l("preset",{preset:"short"})},children:"Add "+(0,i.fU)(j)})}),(0,e.jsx)(r.so.Item,{grow:1,children:(0,e.jsx)(r.$n,{fluid:!0,icon:"hourglass-start",onClick:function(){return l("preset",{preset:"medium"})},children:"Add "+(0,i.fU)(C)})}),(0,e.jsx)(r.so.Item,{grow:1,children:(0,e.jsx)(r.$n,{fluid:!0,icon:"hourglass-start",onClick:function(){return l("preset",{preset:"long"})},children:"Add "+(0,i.fU)(M)})})]})]})})})}},18490:function(y,u,n){"use strict";n.r(u),n.d(u,{CameraConsole:function(){return f},CameraConsoleContent:function(){return v},prevNextCamera:function(){return l},selectCameras:function(){return c}});var e=n(20462),o=n(7402),t=n(15813),r=n(65380),i=n(61282),h=n(61358),x=n(7081),d=n(88569),a=n(15581),l=function(g,E){var j,C;if(!E)return[];var M=g.findIndex(function(P){return P.name===E.name});return[(j=g[M-1])==null?void 0:j.name,(C=g[M+1])==null?void 0:C.name]};function s(g){return g!=null}var c=function(g,E,j){E===void 0&&(E=""),j===void 0&&(j="");var C=(0,i.XZ)(E,function(M){return M.name});return(0,t.L)([function(M){return(0,o.pb)(M,function(P){return s(P==null?void 0:P.name)})},function(M){return E?(0,o.pb)(M,C):M},function(M){return j?(0,o.pb)(M,function(P){return P.networks.includes(j)}):M},function(M){return(0,o.Ul)(M,function(P){return P.name})}])(g)},f=function(g){var E=(0,x.Oc)(),j=E.act,C=E.data,M=C.mapRef,P=C.activeCamera,_=C.cameras,S=c(_),T=l(S,P),b=T[0],L=T[1];return(0,e.jsxs)(a.p8,{width:870,height:708,children:[(0,e.jsx)("div",{className:"CameraConsole__left",children:(0,e.jsx)(a.p8.Content,{scrollable:!0,children:(0,e.jsx)(v,{})})}),(0,e.jsxs)("div",{className:"CameraConsole__right",children:[(0,e.jsxs)("div",{className:"CameraConsole__toolbar",children:[(0,e.jsx)("b",{children:"Camera: "}),P&&P.name||"\u2014"]}),(0,e.jsxs)("div",{className:"CameraConsole__toolbarRight",children:["SEL:",(0,e.jsx)(d.$n,{icon:"chevron-left",disabled:!b,onClick:function(){return j("switch_camera",{name:b})}}),(0,e.jsx)(d.$n,{icon:"chevron-right",disabled:!L,onClick:function(){return j("switch_camera",{name:L})}}),"| PAN:",(0,e.jsx)(d.$n,{icon:"chevron-left",onClick:function(){return j("pan",{dir:8})}}),(0,e.jsx)(d.$n,{icon:"chevron-up",onClick:function(){return j("pan",{dir:1})}}),(0,e.jsx)(d.$n,{icon:"chevron-right",onClick:function(){return j("pan",{dir:4})}}),(0,e.jsx)(d.$n,{icon:"chevron-down",onClick:function(){return j("pan",{dir:2})}})]}),(0,e.jsx)(d.D1,{className:"CameraConsole__map",params:{id:M,type:"map"}})]})]})},v=function(g){var E=(0,x.Oc)(),j=E.act,C=E.data,M=(0,h.useState)(""),P=M[0],_=M[1],S=(0,h.useState)(""),T=S[0],b=S[1],L=C.activeCamera,W=C.allNetworks,$=C.cameras;W.sort();var z=c($,P,T);return(0,e.jsxs)(d.so,{direction:"column",height:"100%",children:[(0,e.jsx)(d.so.Item,{children:(0,e.jsx)(d.pd,{autoFocus:!0,fluid:!0,mt:1,placeholder:"Search for a camera",onInput:function(w,V){return _(V)}})}),(0,e.jsx)(d.so.Item,{children:(0,e.jsxs)(d.so,{children:[(0,e.jsx)(d.so.Item,{children:(0,e.jsx)(d.ms,{autoScroll:!1,mb:1,width:T?"155px":"177px",selected:T,displayText:T||"No Filter",options:W,onSelected:function(w){return b(w)}})}),T?(0,e.jsx)(d.so.Item,{children:(0,e.jsx)(d.$n,{width:"22px",icon:"undo",color:"red",onClick:function(){b("")}})}):""]})}),(0,e.jsx)(d.so.Item,{height:"100%",children:(0,e.jsx)(d.wn,{fill:!0,scrollable:!0,children:z.map(function(w){return(0,e.jsx)("div",{title:w.name,className:(0,r.Ly)(["Button","Button--fluid","Button--color--transparent","Button--ellipsis",L&&w.name===L.name&&"Button--selected"]),onClick:function(){return j("switch_camera",{name:w.name})},children:w.name},w.name)})})})]})}},82195:function(y,u,n){"use strict";n.r(u),n.d(u,{Canister:function(){return x}});var e=n(20462),o=n(4089),t=n(7081),r=n(88569),i=n(41242),h=n(15581),x=function(d){var a=(0,t.Oc)(),l=a.act,s=a.data,c=s.connected,f=s.can_relabel,v=s.pressure,g=s.releasePressure,E=s.defaultReleasePressure,j=s.minReleasePressure,C=s.maxReleasePressure,M=s.valveOpen,P=s.holding;return(0,e.jsx)(h.p8,{width:360,height:242,children:(0,e.jsxs)(h.p8.Content,{children:[(0,e.jsx)(r.wn,{title:"Canister",buttons:(0,e.jsx)(r.$n,{icon:"pencil-alt",disabled:!f,onClick:function(){return l("relabel")},children:"Relabel"}),children:(0,e.jsxs)(r.Wx,{children:[(0,e.jsx)(r.Wx.Item,{minWidth:"66px",label:"Tank Pressure",children:(0,e.jsx)(r.zv,{value:v,format:function(_){return _<1e4?(0,o.Mg)(_)+" kPa":(0,i.QL)(_*1e3,1,"Pa")}})}),(0,e.jsx)(r.Wx.Item,{label:"Regulator",children:(0,e.jsxs)(r.az,{position:"relative",left:"-8px",children:[(0,e.jsx)(r.N6,{width:"60px",size:1.25,color:!!M&&"yellow",value:g,unit:"kPa",minValue:j,maxValue:C,stepPixelSize:1,onDrag:function(_,S){return l("pressure",{pressure:S})}}),(0,e.jsx)(r.$n,{fluid:!0,position:"absolute",top:"-2px",right:"-20px",color:"transparent",icon:"fast-forward",onClick:function(){return l("pressure",{pressure:C})}}),(0,e.jsx)(r.$n,{fluid:!0,position:"absolute",top:"16px",right:"-20px",color:"transparent",icon:"undo",onClick:function(){return l("pressure",{pressure:E})}})]})}),(0,e.jsx)(r.Wx.Item,{label:"Valve",children:(0,e.jsx)(r.$n,{my:.5,width:"50px",lineHeight:2,fontSize:"11px",color:M?P?"caution":"danger":null,onClick:function(){return l("valve")},children:M?"Open":"Closed"})}),(0,e.jsx)(r.Wx.Item,{mr:1,label:"Port",children:(0,e.jsxs)(r.az,{position:"relative",children:[(0,e.jsx)(r.In,{size:1.25,name:c?"plug":"times",color:c?"good":"bad"}),(0,e.jsx)(r.m_,{content:c?"Connected":"Disconnected",position:"top"})]})})]})}),(0,e.jsxs)(r.wn,{title:"Holding Tank",buttons:!!P&&(0,e.jsx)(r.$n,{icon:"eject",color:M&&"danger",onClick:function(){return l("eject")},children:"Eject"}),children:[!!P&&(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Label",children:P.name}),(0,e.jsxs)(r.Ki.Item,{label:"Pressure",children:[(0,e.jsx)(r.zv,{value:P.pressure})," kPa"]})]}),!P&&(0,e.jsx)(r.az,{color:"average",children:"No Holding Tank"})]})]})})}},64808:function(y,u,n){"use strict";n.r(u),n.d(u,{Canvas:function(){return C}});var e=n(20462),o=n(4089),t=n(61358),r=n(7081),i=n(88569),h=n(15581);function x(M,P){(P==null||P>M.length)&&(P=M.length);for(var _=0,S=new Array(P);_=0)&&(_[T]=M[T]);return _}function s(M,P){return s=Object.setPrototypeOf||function(S,T){return S.__proto__=T,S},s(M,P)}function c(M,P){if(M){if(typeof M=="string")return x(M,P);var _=Object.prototype.toString.call(M).slice(8,-1);if(_==="Object"&&M.constructor&&(_=M.constructor.name),_==="Map"||_==="Set")return Array.from(_);if(_==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(_))return x(M,P)}}function f(M,P){var _=typeof Symbol!="undefined"&&M[Symbol.iterator]||M["@@iterator"];if(_)return(_=_.call(M)).next.bind(_);if(Array.isArray(M)||(_=c(M))||P&&M&&typeof M.length=="number"){_&&(M=_);var S=0;return function(){return S>=M.length?{done:!0}:{done:!1,value:M[S++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var v=24,g=function(M){"use strict";a(P,M);function P(S){var T;return T=M.call(this,S)||this,T.canvasRef=(0,t.createRef)(),T.onCVClick=S.onCanvasClick,T}var _=P.prototype;return _.componentDidMount=function(){this.drawCanvas(this.props)},_.componentDidUpdate=function(){this.drawCanvas(this.props)},_.getLinePixels=function(){if(!(!this.lineStart||!this.lastHovered)){var T=this.lineStart,b=T[0],L=T[1],W=this.lastHovered,$=W[0],z=W[1];b=b-1,$=$-1,L=L-1,z=z-1;for(var w=Math.abs($-b),V=b<$?1:-1,k=-Math.abs(z-L),H=L=k&&(Y=Y+k,b=b+V),Z<=w&&(Y=Y+w,L=L+H)}return q}},_.drawLine=function(T){var b=this.getLinePixels();if(b)for(var L=f(b),W;!(W=L()).done;){var $=W.value,z=$[0],w=$[1];z=T.length||X>=T[0].length?!1:T[J][X]===$},w=[];w.push([L,L,W,1]),w.push([L,L,W-1,-1]);for(var V=[];w.length;){var k=w.pop(),H=k[0],Y=k[1],q=k[2],Z=k[3],Q=H;if(z(Q,q)){for(;z(Q-1,q);)T[Q-1][q]="#000000",V.push([Q-1,q]),Q=Q-1;QQ&&w.push([Q,H-1,q+Z,Z]),H-1>Y&&w.push([Y+1,H-1,q-Z,-Z]),H=H+1;HL||(this.mouseIsDown&&this.props.tool===0?(this.onCVClick(b[0],b[1]),this.lastSuccessfulPaint=L):this.mouseIsDown&&this.props.tool===1?(this.drawCanvas(this.props),this.lastSuccessfulPaint=L):this.props.tool===2&&this.drawCanvas(this.props))}},_.render=function(){var T=this,b=this.props,L=b.res,W=L===void 0?1:L,$=b.value,z=b.dotsize,w=z===void 0?v:z,V=l(b,["res","value","dotsize"]),k=E($),H=k[0],Y=k[1];return(0,e.jsx)("canvas",d({ref:this.canvasRef,width:H*w||300,height:Y*w||300},V,{onMouseDown:function(q){return T.mouseDown(q)},onMouseMove:function(q){return T.mouseMove(q)},onMouseUp:function(q){return T.mouseUp(q)},children:"Canvas failed to render."}))},P}(t.Component),E=function(M){var P=M.length,_=P!==0?M[0].length:0;return[P,_]},j;(function(M){M[M.Paintbrush=0]="Paintbrush",M[M.Line=1]="Line",M[M.Fill=2]="Fill"})(j||(j={}));var C=function(M){var P=(0,r.Oc)(),_=P.act,S=P.data,T=(0,t.useState)(0),b=T[0],L=T[1],W=v,$=E(S.grid),z=$[0],w=$[1];return(0,e.jsx)(h.p8,{width:Math.min(700,z*W+72),height:Math.min(700,w*W+72),children:(0,e.jsxs)(h.p8.Content,{children:[(0,e.jsxs)(i.BJ,{children:[(0,e.jsx)(i.BJ.Item,{basis:"10%",children:(0,e.jsxs)(i.BJ,{vertical:!0,children:[(0,e.jsx)(i.BJ.Item,{children:(0,e.jsx)(i.$n,{icon:"paintbrush",fontSize:2,onClick:function(){return L(0)},selected:b===0,tooltip:"Paintbrush"})}),(0,e.jsx)(i.BJ.Item,{children:(0,e.jsx)(i.$n,{icon:"grip-lines",fontSize:2,iconRotation:-45,onClick:function(){return L(1)},selected:b===1,tooltip:"Line"})}),(0,e.jsx)(i.BJ.Item,{children:(0,e.jsx)(i.$n,{icon:"bucket",fontSize:2,onClick:function(){return L(2)},selected:b===2,tooltip:"Fill"})})]})}),(0,e.jsx)(i.BJ.Item,{grow:!0}),(0,e.jsx)(i.BJ.Item,{pr:1,children:(0,e.jsx)(g,{tool:b,value:S.grid,dotsize:W,onCanvasClick:function(V,k){return _("paint",{x:V,y:k})}})})]}),(0,e.jsxs)(i.az,{textAlign:"center",children:[!S.finalized&&(0,e.jsx)(i.$n.Confirm,{onClick:function(){return _("finalize")},children:"Finalize"}),"\xA0",S.name]})]})})}},35116:function(y,u,n){"use strict";n.r(u),n.d(u,{CasinoPrizeDispenser:function(){return l}});var e=n(20462),o=n(61282),t=n(61358),r=n(7081),i=n(88569),h=n(15581);function x(){return x=Object.assign||function(v){for(var g=1;g=0)&&(E[C]=v[C]);return E}var a={Alphabetical:function(v,g){return v.name>g.name},"By price":function(v,g){return v.price-g.price}},l=function(){var v=function($){M($)},g=function($){S($)},E=function($){L($)},j=(0,t.useState)(""),C=j[0],M=j[1],P=(0,t.useState)("Alphabetical"),_=P[0],S=P[1],T=(0,t.useState)(!1),b=T[0],L=T[1];return(0,e.jsx)(h.p8,{width:400,height:450,children:(0,e.jsx)(h.p8.Content,{className:"Layout__content--flexColumn",scrollable:!0,children:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(s,{sortOrder:_,descending:b,onSearchText:v,onSortOrder:g,onDescending:E}),(0,e.jsx)(c,{searchText:C,sortOrder:_,descending:b})]})})})},s=function(v){return(0,e.jsx)(i.az,{mb:"0.5rem",children:(0,e.jsxs)(i.so,{width:"100%",children:[(0,e.jsx)(i.so.Item,{grow:"1",mr:"0.5rem",children:(0,e.jsx)(i.pd,{placeholder:"Search by item name..",width:"100%",onInput:function(g,E){return v.onSearchText(E)}})}),(0,e.jsx)(i.so.Item,{basis:"30%",children:(0,e.jsx)(i.ms,{autoScroll:!1,selected:v.sortOrder,options:Object.keys(a),width:"100%",lineHeight:"19px",onSelected:function(g){return v.onSortOrder(g)}})}),(0,e.jsx)(i.so.Item,{children:(0,e.jsx)(i.$n,{icon:v.descending?"arrow-down":"arrow-up",height:"19px",tooltip:v.descending?"Descending order":"Ascending order",tooltipPosition:"bottom-end",ml:"0.5rem",onClick:function(){return v.onDescending(!v.descending)}})})]})})},c=function(v){var g=(0,r.Oc)(),E=g.act,j=g.data,C=j.items,M=(0,o.XZ)(v.searchText,function(S){return S[0]}),P=!1,_=Object.entries(C).map(function(S){var T=Object.entries(S[1]).filter(M).map(function(b){return b[1]}).sort(a[v.sortOrder]);if(T.length!==0)return v.descending&&(T=T.reverse()),P=!0,(0,e.jsx)(f,{title:S[0],items:T},S[0])});return(0,e.jsx)(i.so.Item,{grow:"1",overflow:"auto",children:(0,e.jsx)(i.wn,{children:P?_:(0,e.jsx)(i.az,{color:"label",children:"No items matching your criteria was found!"})})})},f=function(v){var g=(0,r.Oc)().act,E=v.title,j=v.items,C=d(v,["title","items"]);return(0,e.jsx)(i.Nt,x({open:!0,title:E},C,{children:j.map(function(M){return(0,e.jsxs)(i.az,{children:[(0,e.jsx)(i.az,{inline:!0,verticalAlign:"middle",lineHeight:"20px",style:{float:"left"},children:M.name}),(0,e.jsx)(i.$n,{width:"15%",textAlign:"center",style:{float:"right"},onClick:function(){return g("purchase",{cat:E,name:M.name,price:M.price,restriction:M.restriction})},children:M.price.toLocaleString("en-US")}),(0,e.jsx)(i.az,{style:{clear:"both"}})]},M.name)})}))}},43966:function(y,u,n){"use strict";n.r(u),n.d(u,{CharacterDirectory:function(){return x}});var e=n(20462),o=n(61358),t=n(7081),r=n(88569),i=n(15581),h=function(s){switch(s){case"Unset":return"label";case"Pred":return"red";case"Pred-Pref":return"orange";case"Prey":return"blue";case"Prey-Pref":return"green";case"Switch":return"yellow";case"Non-Vore":return"black"}},x=function(s){var c=function(W){_(W)},f=(0,t.Oc)(),v=f.act,g=f.data,E=g.personalVisibility,j=g.personalTag,C=g.personalErpTag,M=(0,o.useState)(null),P=M[0],_=M[1],S=(0,o.useState)(!1),T=S[0],b=S[1];return(0,e.jsx)(i.p8,{width:640,height:480,children:(0,e.jsx)(i.p8.Content,{scrollable:!0,children:P&&(0,e.jsx)(d,{overlay:P,onOverlay:c})||(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.wn,{title:"Controls",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.az,{color:"label",inline:!0,children:"Save to current preferences slot:\xA0"}),(0,e.jsx)(r.$n,{icon:T?"toggle-on":"toggle-off",selected:T,onClick:function(){return b(!T)},children:T?"On":"Off"})]}),children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Visibility",children:(0,e.jsx)(r.$n,{fluid:!0,onClick:function(){return v("setVisible",{overwrite_prefs:T})},children:E?"Shown":"Not Shown"})}),(0,e.jsx)(r.Ki.Item,{label:"Vore Tag",children:(0,e.jsx)(r.$n,{fluid:!0,onClick:function(){return v("setTag",{overwrite_prefs:T})},children:j})}),(0,e.jsx)(r.Ki.Item,{label:"ERP Tag",children:(0,e.jsx)(r.$n,{fluid:!0,onClick:function(){return v("setErpTag",{overwrite_prefs:T})},children:C})}),(0,e.jsx)(r.Ki.Item,{label:"Advertisement",children:(0,e.jsx)(r.$n,{fluid:!0,onClick:function(){return v("editAd",{overwrite_prefs:T})},children:"Edit Ad"})})]})}),(0,e.jsx)(a,{onOverlay:c})]})})})},d=function(s){return(0,e.jsxs)(r.wn,{title:s.overlay.name,buttons:(0,e.jsx)(r.$n,{icon:"arrow-left",onClick:function(){return s.onOverlay(null)},children:"Back"}),children:[(0,e.jsx)(r.wn,{title:"Species",children:(0,e.jsx)(r.az,{children:s.overlay.species})}),(0,e.jsx)(r.wn,{title:"Vore Tag",children:(0,e.jsx)(r.az,{p:1,backgroundColor:h(s.overlay.tag),children:s.overlay.tag})}),(0,e.jsx)(r.wn,{title:"ERP Tag",children:(0,e.jsx)(r.az,{children:s.overlay.erptag})}),(0,e.jsx)(r.wn,{title:"Character Ad",children:(0,e.jsx)(r.az,{style:{wordBreak:"break-all"},preserveWhitespace:!0,children:s.overlay.character_ad||"Unset."})}),(0,e.jsx)(r.wn,{title:"OOC Notes",children:(0,e.jsx)(r.az,{style:{wordBreak:"break-all"},preserveWhitespace:!0,children:s.overlay.ooc_notes||"Unset."})}),(0,e.jsx)(r.wn,{title:"Flavor Text",children:(0,e.jsx)(r.az,{style:{wordBreak:"break-all"},preserveWhitespace:!0,children:s.overlay.flavor_text||"Unset."})})]})},a=function(s){var c=function(L){P(L)},f=function(L){T(L)},v=(0,t.Oc)(),g=v.act,E=v.data,j=E.directory,C=(0,o.useState)("name"),M=C[0],P=C[1],_=(0,o.useState)("name"),S=_[0],T=_[1];return(0,e.jsx)(r.wn,{title:"Directory",buttons:(0,e.jsx)(r.$n,{icon:"sync",onClick:function(){return g("refresh")},children:"Refresh"}),children:(0,e.jsxs)(r.XI,{children:[(0,e.jsxs)(r.XI.Row,{bold:!0,children:[(0,e.jsx)(l,{id:"name",sortId:M,sortOrder:S,onSortId:c,onSortOrder:f,children:"Name"}),(0,e.jsx)(l,{id:"species",sortId:M,sortOrder:S,onSortId:c,onSortOrder:f,children:"Species"}),(0,e.jsx)(l,{id:"tag",sortId:M,sortOrder:S,onSortId:c,onSortOrder:f,children:"Vore Tag"}),(0,e.jsx)(l,{id:"erptag",sortId:M,sortOrder:S,onSortId:c,onSortOrder:f,children:"ERP Tag"}),(0,e.jsx)(r.XI.Cell,{collapsing:!0,textAlign:"right",children:"View"})]}),j.sort(function(b,L){var W=S?1:-1;return b[M].localeCompare(L[M])*W}).map(function(b,L){return(0,e.jsxs)(r.XI.Row,{backgroundColor:h(b.tag),children:[(0,e.jsx)(r.XI.Cell,{p:1,children:b.name}),(0,e.jsx)(r.XI.Cell,{children:b.species}),(0,e.jsx)(r.XI.Cell,{children:b.tag}),(0,e.jsx)(r.XI.Cell,{children:b.erptag}),(0,e.jsx)(r.XI.Cell,{collapsing:!0,textAlign:"right",children:(0,e.jsx)(r.$n,{onClick:function(){return s.onOverlay(b)},color:"transparent",icon:"sticky-note",mr:1,children:"View"})})]},L)})]})})},l=function(s){var c=s.id,f=s.children;return(0,e.jsx)(r.XI.Cell,{collapsing:!0,children:(0,e.jsxs)(r.$n,{width:"100%",color:s.sortId!==c&&"transparent",onClick:function(){s.sortId===c?s.onSortOrder(!s.sortOrder):(s.onSortId(c),s.onSortOrder(!0))},children:[f,s.sortId===c&&(0,e.jsx)(r.In,{name:s.sortOrder?"sort-up":"sort-down",ml:"0.25rem;"})]})})}},15559:function(y,u,n){"use strict";n.r(u),n.d(u,{CheckboxInput:function(){return l}});var e=n(20462),o=n(61282),t=n(61358),r=n(7081),i=n(88569),h=n(19996),x=n(15581),d=n(5335),a=n(44149),l=function(s){var c=(0,r.Oc)().data,f=c.items,v=f===void 0?[]:f,g=c.min_checked,E=c.max_checked,j=c.message,C=c.timeout,M=c.title,P=(0,t.useState)([]),_=P[0],S=P[1],T=(0,t.useState)(""),b=T[0],L=T[1],W=(0,o.XZ)(b,function(w){return w}),$=v.filter(W),z=function(w){var V=_.includes(w)?_.filter(function(k){return k!==w}):[].concat(_,[w]);S(V)};return(0,e.jsxs)(x.p8,{title:M,width:425,height:300,children:[!!C&&(0,e.jsx)(a.Loader,{value:C}),(0,e.jsx)(x.p8.Content,{children:(0,e.jsxs)(i.BJ,{fill:!0,vertical:!0,children:[(0,e.jsx)(i.BJ.Item,{children:(0,e.jsxs)(i.IC,{info:!0,textAlign:"center",children:[(0,o.jT)(j)," ",g>0&&" (Min: "+g+")",E<50&&" (Max: "+E+")"]})}),(0,e.jsx)(i.BJ.Item,{grow:!0,mt:0,children:(0,e.jsx)(i.wn,{fill:!0,scrollable:!0,children:(0,e.jsx)(i.XI,{children:$.map(function(w,V){return(0,e.jsx)(h.Hj,{className:"candystripe",children:(0,e.jsx)(h.nA,{children:(0,e.jsx)(i.$n.Checkbox,{checked:_.includes(w),disabled:_.length>=E&&!_.includes(w),fluid:!0,onClick:function(){return z(w)},children:w})})},V)})})})}),(0,e.jsxs)(i.BJ,{m:1,mb:0,children:[(0,e.jsx)(i.BJ.Item,{children:(0,e.jsx)(i.m_,{content:"Search",position:"bottom",children:(0,e.jsx)(i.In,{name:"search",mt:.5})})}),(0,e.jsx)(i.BJ.Item,{grow:!0,children:(0,e.jsx)(i.pd,{fluid:!0,value:b,onInput:function(w,V){return L(V)}})})]}),(0,e.jsx)(i.BJ.Item,{mt:.7,children:(0,e.jsx)(i.wn,{children:(0,e.jsx)(d.InputButtons,{input:_})})})]})})]})}},29361:function(y,u,n){"use strict";n.r(u),n.d(u,{ChemDispenserBeaker:function(){return h}});var e=n(20462),o=n(7081),t=n(88569),r=n(78924),i=n(58820),h=function(x){var d=(0,o.Oc)(),a=d.act,l=d.data,s=l.isBeakerLoaded,c=l.beakerCurrentVolume,f=l.beakerMaxVolume,v=l.beakerContents,g=v===void 0?[]:v,E=l.recipes,j=l.recordingRecipe,C=!!j,M=C&&j.map(function(P){return{id:P.id,name:P.id.replace(/_/," "),volume:P.amount}});return(0,e.jsx)(t.wn,{title:C?"Virtual Beaker":"Beaker",fill:!0,scrollable:!0,buttons:(0,e.jsxs)(t.az,{children:[!!s&&(0,e.jsxs)(t.az,{inline:!0,color:"label",mr:2,children:[c," / ",f," units"]}),(0,e.jsx)(t.$n,{icon:"eject",disabled:!s,onClick:function(){return a("ejectBeaker")},children:"Eject"})]}),children:(0,e.jsx)(r.BeakerContents,{beakerLoaded:M||s,beakerContents:M||g,buttons:function(P){return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n,{icon:"compress-arrows-alt",disabled:C,onClick:function(){return a("remove",{reagent:P.id,amount:-1})},children:"Isolate"}),i.removeAmounts.map(function(_,S){return(0,e.jsx)(t.$n,{disabled:C,onClick:function(){return a("remove",{reagent:P.id,amount:_})},children:_},S)}),(0,e.jsx)(t.$n,{disabled:C,onClick:function(){return a("remove",{reagent:P.id,amount:P.volume})},children:"ALL"})]})}})})}},64776:function(y,u,n){"use strict";n.r(u),n.d(u,{ChemDispenserChemicals:function(){return i}});var e=n(20462),o=n(61358),t=n(7081),r=n(88569),i=function(x){for(var d=(0,t.Oc)(),a=d.act,l=d.data,s=l.chemicals,c=s===void 0?[]:s,f=[],v=0;v<(c.length+1)%3;v++)f.push(!0);return(0,e.jsx)(r.wn,{title:l.glass?"Drink Dispenser":"Chemical Dispenser",flexGrow:!0,buttons:(0,e.jsx)(h,{}),children:(0,e.jsxs)(r.so,{direction:"row",wrap:"wrap",height:"100%",align:"flex-start",children:[c.map(function(g,E){return(0,e.jsx)(r.so.Item,{grow:"1",m:.2,basis:"40%",height:"20px",children:(0,e.jsx)(r.$n,{icon:"arrow-circle-down",width:"100%",height:"100%",align:"flex-start",onClick:function(){return a("dispense",{reagent:g.id})},children:g.name+" ("+g.volume+")"})},E)}),f.map(function(g,E){return(0,e.jsx)(r.so.Item,{grow:"1",basis:"25%",height:"20px"},E)})]})})},h=function(x){var d=(0,t.Oc)().data,a=!!d.recordingRecipe,l=(0,o.useState)(!1),s=l[0],c=l[1];return(0,o.useEffect)(function(){if(a){var f=setInterval(function(){c(function(v){return!v})},1e3);return function(){return clearInterval(f)}}},[a]),a?(0,e.jsx)(r.m_,{content:"Recording in progress",children:(0,e.jsx)(r.In,{mt:.7,color:"bad",name:s?"circle-o":"circle"})}):null}},92090:function(y,u,n){"use strict";n.r(u),n.d(u,{ChemDispenserRecipes:function(){return r}});var e=n(20462),o=n(7081),t=n(88569),r=function(i){var h=(0,o.Oc)(),x=h.act,d=h.data,a=d.recipes,l=d.recordingRecipe,s=!!l,c=Object.keys(a).sort();return(0,e.jsxs)(t.wn,{title:"Recipes",fill:!0,scrollable:!0,buttons:(0,e.jsxs)(e.Fragment,{children:[!s&&(0,e.jsx)(t.$n,{icon:"circle",onClick:function(){return x("record_recipe")},children:"Record"}),s&&(0,e.jsx)(t.$n,{icon:"ban",color:"bad",onClick:function(){return x("cancel_recording")},children:"Discard"}),s&&(0,e.jsx)(t.$n,{icon:"save",color:"green",onClick:function(){return x("save_recording")},children:"Save"}),!s&&(0,e.jsx)(t.$n.Confirm,{icon:"trash",confirmIcon:"trash",color:"bad",onClick:function(){return x("clear_recipes")},children:"Clear All"})]}),children:[s&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.az,{color:"green",fontSize:1.2,bold:!0,children:"Recording In Progress..."}),(0,e.jsxs)(t.az,{color:"label",children:["Press dispenser buttons in the order you wish for them to be repeated, then click"," ",(0,e.jsx)(t.az,{color:"good",inline:!0,children:"Save"}),"."]}),(0,e.jsxs)(t.az,{color:"average",mb:1,children:["Alternatively, if you mess up the recipe and want to discard this recording, click"," ",(0,e.jsx)(t.az,{color:"bad",inline:!0,children:"Discard"}),"."]})]}),c.length?c.map(function(f){return(0,e.jsxs)(t.so,{children:[(0,e.jsx)(t.so.Item,{grow:1,children:(0,e.jsx)(t.$n,{fluid:!0,icon:"flask",onClick:function(){return x("dispense_recipe",{recipe:f})},children:f})}),(0,e.jsx)(t.so.Item,{children:(0,e.jsx)(t.$n.Confirm,{icon:"trash",confirmIcon:"triangle-exclamation",confirmContent:"",color:"bad",onClick:function(){return x("remove_recipe",{recipe:f})}})})]},f)}):"No Recipes."]})}},38908:function(y,u,n){"use strict";n.r(u),n.d(u,{ChemDispenserSettings:function(){return i}});var e=n(20462),o=n(7081),t=n(88569),r=n(58820),i=function(h){var x=(0,o.Oc)(),d=x.act,a=x.data,l=a.amount;return(0,e.jsx)(t.wn,{title:"Settings",fill:!0,children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Dispense",verticalAlign:"middle",children:r.dispenseAmounts.map(function(s,c){return(0,e.jsx)(t.$n,{textAlign:"center",selected:l===s,m:"0",onClick:function(){return d("amount",{amount:s})},children:s+"u"},c)})}),(0,e.jsx)(t.Ki.Item,{label:"Custom Amount",children:(0,e.jsx)(t.Ap,{step:1,stepPixelSize:5,value:l,minValue:1,maxValue:120,onDrag:function(s,c){return d("amount",{amount:c})}})})]})})}},58820:function(y,u,n){"use strict";n.r(u),n.d(u,{dispenseAmounts:function(){return e},removeAmounts:function(){return o}});var e=[5,10,20,30,40,60],o=[1,5,10]},66119:function(y,u,n){"use strict";n.r(u),n.d(u,{ChemDispenser:function(){return a}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),i=n(29361),h=n(64776),x=n(92090),d=n(38908),a=function(l){var s=(0,o.Oc)().data;return(0,e.jsx)(r.p8,{width:680,height:540,children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsxs)(t.BJ,{vertical:!0,fill:!0,children:[(0,e.jsx)(t.BJ.Item,{children:(0,e.jsxs)(t.BJ,{children:[(0,e.jsx)(t.BJ.Item,{grow:!0,children:(0,e.jsxs)(t.BJ,{vertical:!0,fill:!0,children:[(0,e.jsx)(t.BJ.Item,{children:(0,e.jsx)(d.ChemDispenserSettings,{})}),(0,e.jsx)(t.BJ.Item,{grow:!0,children:(0,e.jsx)(x.ChemDispenserRecipes,{})})]})}),(0,e.jsx)(t.BJ.Item,{grow:!0,children:(0,e.jsx)(h.ChemDispenserChemicals,{})})]})}),(0,e.jsx)(t.BJ.Item,{grow:!0,children:(0,e.jsx)(i.ChemDispenserBeaker,{})})]})})})}},9136:function(y,u,n){"use strict";n.r(u)},16028:function(y,u,n){"use strict";n.r(u),n.d(u,{analyzeModalBodyOverride:function(){return r}});var e=n(20462),o=n(7081),t=n(88569),r=function(i){var h=(0,o.Oc)(),x=h.act,d=h.data,a=i.args.analysis;return(0,e.jsx)(t.wn,{m:"-1rem",pb:"1rem",title:d.condi?"Condiment Analysis":"Reagent Analysis",children:(0,e.jsx)(t.az,{mx:"0.5rem",children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Name",children:a.name}),(0,e.jsx)(t.Ki.Item,{label:"Description",children:(a.desc||"").length>0?a.desc:"N/A"}),a.blood_type&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.Ki.Item,{label:"Blood type",children:a.blood_type}),(0,e.jsx)(t.Ki.Item,{label:"Blood DNA",className:"LabeledList__breakContents",children:a.blood_dna})]}),!d.condi&&(0,e.jsx)(t.$n,{icon:d.printing?"spinner":"print",disabled:d.printing,iconSpin:!!d.printing,ml:"0.5rem",onClick:function(){return x("print",{idx:a.idx,beaker:i.args.beaker})},children:"Print"})]})})})}},88737:function(y,u,n){"use strict";n.r(u),n.d(u,{ChemMasterBeaker:function(){return x}});var e=n(20462),o=n(7081),t=n(88569),r=n(78924),i=n(86471),h=n(16793),x=function(d){var a=(0,o.Oc)().act,l=d.beaker,s=d.beakerReagents,c=d.bufferNonEmpty,f=c?(0,e.jsx)(t.$n.Confirm,{icon:"eject",disabled:!l,onClick:function(){return a("eject")},children:"Eject and Clear Buffer"}):(0,e.jsx)(t.$n,{icon:"eject",disabled:!l,onClick:function(){return a("eject")},children:"Eject and Clear Buffer"});return(0,e.jsx)(t.wn,{title:"Beaker",buttons:f,children:l?(0,e.jsx)(r.BeakerContents,{beakerLoaded:!0,beakerContents:s,buttons:function(v,g){return(0,e.jsxs)(t.az,{mb:g0?(0,e.jsx)(r.BeakerContents,{beakerLoaded:!0,beakerContents:c,buttons:function(f,v){return(0,e.jsxs)(t.az,{mb:v0}),(0,e.jsx)(x.ChemMasterBuffer,{mode:C,bufferReagents:j}),(0,e.jsx)(d.ChemMasterProduction,{isCondiment:c,bufferNonEmpty:j.length>0,loaded_pill_bottle:M,loaded_pill_bottle_name:P||"",loaded_pill_bottle_contents_len:_||0,loaded_pill_bottle_storage_slots:S||0,pillsprite:T,bottlesprite:b})]})]})};(0,r.modalRegisterBodyOverride)("analyze",i.analyzeModalBodyOverride)},25453:function(y,u,n){"use strict";n.r(u)},42918:function(y,u,n){"use strict";n.r(u),n.d(u,{ClawMachine:function(){return i}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),i=function(h){var x=(0,o.Oc)(),d=x.act,a=x.data,l=a.wintick,s=a.instructions,c=a.gameStatus,f=a.winscreen,v;return c==="CLAWMACHINE_NEW"?v=(0,e.jsxs)(t.az,{align:"center",children:[(0,e.jsx)("br",{})," ",(0,e.jsx)("hr",{}),(0,e.jsx)("b",{children:"Pay to Play!"})," ",(0,e.jsx)("br",{})," ",(0,e.jsx)("hr",{}),s,(0,e.jsx)("br",{})," ",(0,e.jsx)("hr",{})," ",(0,e.jsx)("br",{}),(0,e.jsx)(t.$n,{onClick:function(){return d("newgame")},children:"Start"})]}):c==="CLAWMACHINE_END"?v=(0,e.jsxs)(t.az,{align:"center",children:[(0,e.jsx)("br",{})," ",(0,e.jsx)("hr",{}),(0,e.jsx)("b",{children:"Thank you for playing!"})," ",(0,e.jsx)("br",{})," ",(0,e.jsx)("hr",{}),f,(0,e.jsx)("br",{})," ",(0,e.jsx)("hr",{})," ",(0,e.jsx)("br",{}),(0,e.jsx)(t.$n,{onClick:function(){return d("return")},children:"Close"})]}):c==="CLAWMACHINE_ON"&&(v=(0,e.jsxs)(r.p8.Content,{children:[(0,e.jsx)(t.Ki,{children:(0,e.jsx)(t.Ki.Item,{label:"Progress",children:(0,e.jsx)(t.z2,{ranges:{bad:[-1/0,0],average:[1,7],good:[8,1/0]},value:l,minValue:0,maxValue:10})})}),(0,e.jsxs)(t.az,{align:"center",children:[(0,e.jsx)("br",{})," ",(0,e.jsx)("hr",{})," ",(0,e.jsx)("br",{}),s,(0,e.jsx)("br",{})," ",(0,e.jsx)("br",{})," ",(0,e.jsx)("hr",{})," ",(0,e.jsx)("br",{})," ",(0,e.jsx)("br",{}),(0,e.jsx)(t.$n,{onClick:function(){return d("pointless")},children:"Up"}),(0,e.jsx)("br",{})," ",(0,e.jsx)("br",{}),(0,e.jsx)(t.$n,{onClick:function(){return d("pointless")},children:"Left"}),(0,e.jsx)(t.$n,{onClick:function(){return d("pointless")},children:"Right"}),(0,e.jsx)("br",{})," ",(0,e.jsx)("br",{}),(0,e.jsx)(t.$n,{onClick:function(){return d("pointless")},children:"Down"})]})]})),(0,e.jsx)(r.p8,{children:(0,e.jsx)("center",{children:v})})}},76914:function(y,u,n){"use strict";n.r(u),n.d(u,{Cleanbot:function(){return i}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),i=function(h){var x=(0,o.Oc)(),d=x.act,a=x.data,l=a.on,s=a.open,c=a.locked,f=a.version,v=a.blood,g=a.vocal,E=a.wet_floors,j=a.spray_blood,C=a.rgbpanel,M=a.red_switch,P=a.green_switch,_=a.blue_switch;return(0,e.jsx)(r.p8,{width:400,height:400,children:(0,e.jsxs)(r.p8.Content,{scrollable:!0,children:[(0,e.jsx)(t.wn,{title:"Automatic Station Cleaner "+f,buttons:(0,e.jsx)(t.$n,{icon:"power-off",selected:l,onClick:function(){return d("start")},children:l?"On":"Off"}),children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Maintenance Panel",color:s?"bad":"good",children:s?"Open":"Closed"}),(0,e.jsx)(t.Ki.Item,{label:"Behavior Controls",color:c?"good":"bad",children:c?"Locked":"Unlocked"})]})}),!c&&(0,e.jsx)(t.wn,{title:"Behavior Controls",children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Blood",children:(0,e.jsx)(t.$n,{fluid:!0,icon:v?"toggle-on":"toggle-off",selected:v,onClick:function(){return d("blood")},children:v?"Clean":"Ignore"})}),(0,e.jsx)(t.Ki.Item,{label:"Speaker",children:(0,e.jsx)(t.$n,{fluid:!0,icon:g?"toggle-on":"toggle-off",selected:g,onClick:function(){return d("vocal")},children:g?"On":"Off"})})]})})||null,!c&&s&&(0,e.jsx)(t.wn,{title:"Maintenance Panel",children:C&&(0,e.jsxs)(t.az,{children:[(0,e.jsx)(t.$n,{fontSize:5.39,icon:M?"toggle-on":"toggle-off",backgroundColor:M?"red":"maroon",onClick:function(){return d("red_switch")}}),(0,e.jsx)(t.$n,{fontSize:5.39,icon:P?"toggle-on":"toggle-off",backgroundColor:P?"green":"darkgreen",onClick:function(){return d("green_switch")}}),(0,e.jsx)(t.$n,{fontSize:5.39,icon:_?"toggle-on":"toggle-off",backgroundColor:_?"blue":"darkblue",onClick:function(){return d("blue_switch")}})]})||(0,e.jsx)(t.az,{children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Odd Looking Screw Twiddled",children:(0,e.jsx)(t.$n,{fluid:!0,selected:E,onClick:function(){return d("wet_floors")},icon:"screwdriver",children:E?"Yes":"No"})}),(0,e.jsx)(t.Ki.Item,{label:"Weird Button Pressed",children:(0,e.jsx)(t.$n,{fluid:!0,color:"brown",selected:j,onClick:function(){return d("spray_blood")},icon:"screwdriver",children:j?"Yes":"No"})})]})})})||null]})})}},90307:function(y,u,n){"use strict";n.r(u),n.d(u,{viewRecordModalBodyOverride:function(){return i}});var e=n(20462),o=n(7081),t=n(88569),r=n(79500),i=function(h){var x=(0,o.Oc)(),d=x.act,a=x.data,l=a.disk,s=a.podready,c=h.args,f=c.activerecord,v=c.realname,g=c.health,E=c.unidentity,j=c.strucenzymes,C=g.split(" - ");return(0,e.jsx)(t.wn,{m:"-1rem",pb:"1rem",title:"Records of "+v,children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Name",children:v}),(0,e.jsx)(t.Ki.Item,{label:"Damage",children:C.length>1?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.az,{color:r.lm.damageType.oxy,inline:!0,children:C[0]}),"\xA0|\xA0",(0,e.jsx)(t.az,{color:r.lm.damageType.toxin,inline:!0,children:C[2]}),"\xA0|\xA0",(0,e.jsx)(t.az,{color:r.lm.damageType.brute,inline:!0,children:C[3]}),"\xA0|\xA0",(0,e.jsx)(t.az,{color:r.lm.damageType.burn,inline:!0,children:C[1]})]}):(0,e.jsx)(t.az,{color:"bad",children:"Unknown"})}),(0,e.jsx)(t.Ki.Item,{label:"UI",className:"LabeledList__breakContents",children:E}),(0,e.jsx)(t.Ki.Item,{label:"SE",className:"LabeledList__breakContents",children:j}),(0,e.jsxs)(t.Ki.Item,{label:"Disk",children:[(0,e.jsx)(t.$n.Confirm,{disabled:!l,icon:"arrow-circle-down",onClick:function(){return d("disk",{option:"load"})},children:"Import"}),(0,e.jsx)(t.$n,{disabled:!l,icon:"arrow-circle-up",onClick:function(){return d("disk",{option:"save",savetype:"ui"})},children:"Export UI"}),(0,e.jsx)(t.$n,{disabled:!l,icon:"arrow-circle-up",onClick:function(){return d("disk",{option:"save",savetype:"ue"})},children:"Export UI and UE"}),(0,e.jsx)(t.$n,{disabled:!l,icon:"arrow-circle-up",onClick:function(){return d("disk",{option:"save",savetype:"se"})},children:"Export SE"})]}),(0,e.jsxs)(t.Ki.Item,{label:"Actions",children:[(0,e.jsx)(t.$n,{disabled:!s,icon:"user-plus",onClick:function(){return d("clone",{ref:f})},children:"Clone"}),(0,e.jsx)(t.$n,{icon:"trash",onClick:function(){return d("del_rec")},children:"Delete"})]})]})})}},57981:function(y,u,n){"use strict";n.r(u),n.d(u,{CloningConsoleNavigation:function(){return r}});var e=n(20462),o=n(7081),t=n(88569),r=function(i){var h=(0,o.Oc)(),x=h.act,d=h.data,a=d.menu;return(0,e.jsxs)(t.tU,{children:[(0,e.jsx)(t.tU.Tab,{selected:a===1,icon:"home",onClick:function(){return x("menu",{num:1})},children:"Main"}),(0,e.jsx)(t.tU.Tab,{selected:a===2,icon:"folder",onClick:function(){return x("menu",{num:2})},children:"Records"})]})}},16981:function(y,u,n){"use strict";n.r(u),n.d(u,{CloningConsoleStatus:function(){return h},CloningConsoleTemp:function(){return i}});var e=n(20462),o=n(7081),t=n(88569);function r(){return r=Object.assign||function(x){for(var d=1;d=150?"good":"bad",inline:!0,children:[(0,e.jsx)(i.In,{name:S.biomass>=150?"circle":"circle-o"}),"\xA0",S.biomass]}),b]},T)}):(0,e.jsx)(i.az,{color:"bad",children:"No pods detected. Unable to clone."})})]})},x=function(d){var a=(0,r.Oc)(),l=a.act,s=a.data,c=s.records;return c.length?(0,e.jsx)(i.az,{mt:"0.5rem",children:c.map(function(f,v){return(0,e.jsx)(i.$n,{icon:"user",mb:"0.5rem",onClick:function(){return l("view_rec",{ref:f.record})},children:f.realname},v)})}):(0,e.jsx)(i.so,{height:"100%",children:(0,e.jsxs)(i.so.Item,{grow:"1",align:"center",textAlign:"center",color:"label",children:[(0,e.jsx)(i.In,{name:"user-slash",mb:"0.5rem",size:5}),(0,e.jsx)("br",{}),"No records found."]})})}},57508:function(y,u,n){"use strict";n.r(u),n.d(u,{CloningConsole:function(){return l}});var e=n(20462),o=n(7081),t=n(88569),r=n(86471),i=n(15581),h=n(90307),x=n(57981),d=n(16981),a=n(37651),l=function(s){var c=(0,o.Oc)().data,f=c.menu,v=[];return v[1]=(0,e.jsx)(a.CloningConsoleMain,{}),v[2]=(0,e.jsx)(a.CloningConsoleRecords,{}),(0,r.modalRegisterBodyOverride)("view_rec",h.viewRecordModalBodyOverride),(0,e.jsxs)(i.p8,{children:[(0,e.jsx)(r.ComplexModal,{maxWidth:"75%",maxHeight:"75%"}),(0,e.jsxs)(i.p8.Content,{className:"Layout__content--flexColumn",children:[(0,e.jsx)(d.CloningConsoleTemp,{}),(0,e.jsx)(d.CloningConsoleStatus,{}),(0,e.jsx)(x.CloningConsoleNavigation,{}),(0,e.jsx)(t.wn,{noTopPadding:!0,flexGrow:!0,children:v[f]||(0,e.jsx)(t.az,{textColor:"red",children:"Error"})})]})]})}},25829:function(y,u,n){"use strict";n.r(u)},61942:function(y,u,n){"use strict";n.r(u),n.d(u,{ColorMateHSV:function(){return h},ColorMateTint:function(){return i}});var e=n(20462),o=n(4089),t=n(7081),r=n(88569),i=function(x){var d=(0,t.Oc)().act;return(0,e.jsx)(r.$n,{fluid:!0,icon:"paint-brush",onClick:function(){return d("choose_color")},children:"Select new color"})},h=function(x){var d=(0,t.Oc)(),a=d.act,l=d.data,s=l.buildhue,c=l.buildsat,f=l.buildval;return(0,e.jsxs)(r.XI,{children:[(0,e.jsxs)(r.XI.Row,{children:[(0,e.jsx)("center",{children:"Hue:"}),(0,e.jsx)(r.XI.Cell,{width:"85%",children:(0,e.jsx)(r.Ap,{minValue:0,maxValue:360,step:1,value:s,format:function(v){return(0,o.Mg)(v)},onDrag:function(v,g){return a("set_hue",{buildhue:g})}})})]}),(0,e.jsxs)(r.XI.Row,{children:[(0,e.jsx)("center",{children:"Saturation:"}),(0,e.jsx)(r.XI.Cell,{children:(0,e.jsx)(r.Ap,{minValue:-10,maxValue:10,step:.01,value:c,format:function(v){return(0,o.Mg)(v,2)},onDrag:function(v,g){return a("set_sat",{buildsat:g})}})})]}),(0,e.jsxs)(r.XI.Row,{children:[(0,e.jsx)("center",{children:"Value:"}),(0,e.jsx)(r.XI.Cell,{children:(0,e.jsx)(r.Ap,{minValue:-10,maxValue:10,step:.01,value:f,format:function(v){return(0,o.Mg)(v,2)},onDrag:function(v,g){return a("set_val",{buildval:g})}})})]})]})}},17852:function(y,u,n){"use strict";n.r(u),n.d(u,{ColorMateMatrix:function(){return i}});var e=n(20462),o=n(4089),t=n(7081),r=n(88569),i=function(h){var x=(0,t.Oc)(),d=x.act,a=x.data,l=a.matrixcolors;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(r.XI,{children:[(0,e.jsxs)(r.XI.Cell,{children:[(0,e.jsxs)(r.XI.Row,{children:["RR:",(0,e.jsx)(r.Q7,{width:"50px",minValue:-10,maxValue:10,step:.01,value:l.rr,format:function(s){return(0,o.Mg)(s,2)},onChange:function(s){return d("set_matrix_color",{color:1,value:s})}})]}),(0,e.jsxs)(r.XI.Row,{children:["GR:",(0,e.jsx)(r.Q7,{width:"50px",minValue:-10,maxValue:10,step:.01,value:l.gr,format:function(s){return(0,o.Mg)(s,2)},onChange:function(s){return d("set_matrix_color",{color:4,value:s})}})]}),(0,e.jsxs)(r.XI.Row,{children:["BR:",(0,e.jsx)(r.Q7,{width:"50px",minValue:-10,maxValue:10,step:.01,value:l.br,format:function(s){return(0,o.Mg)(s,2)},onChange:function(s){return d("set_matrix_color",{color:7,value:s})}})]})]}),(0,e.jsxs)(r.XI.Cell,{children:[(0,e.jsxs)(r.XI.Row,{children:["RG:",(0,e.jsx)(r.Q7,{width:"50px",minValue:-10,maxValue:10,step:.01,value:l.rg,format:function(s){return(0,o.Mg)(s,2)},onChange:function(s){return d("set_matrix_color",{color:2,value:s})}})]}),(0,e.jsxs)(r.XI.Row,{children:["GG:",(0,e.jsx)(r.Q7,{width:"50px",minValue:-10,maxValue:10,step:.01,value:l.gg,format:function(s){return(0,o.Mg)(s,2)},onChange:function(s){return d("set_matrix_color",{color:5,value:s})}})]}),(0,e.jsxs)(r.XI.Row,{children:["BG:",(0,e.jsx)(r.Q7,{width:"50px",minValue:-10,maxValue:10,step:.01,value:l.bg,format:function(s){return(0,o.Mg)(s,2)},onChange:function(s){return d("set_matrix_color",{color:8,value:s})}})]})]}),(0,e.jsxs)(r.XI.Cell,{children:[(0,e.jsxs)(r.XI.Row,{children:["RB:",(0,e.jsx)(r.Q7,{width:"50px",minValue:-10,maxValue:10,step:.01,value:l.rb,format:function(s){return(0,o.Mg)(s,2)},onChange:function(s){return d("set_matrix_color",{color:3,value:s})}})]}),(0,e.jsxs)(r.XI.Row,{children:["GB:",(0,e.jsx)(r.Q7,{width:"50px",minValue:-10,maxValue:10,step:.01,value:l.gb,format:function(s){return(0,o.Mg)(s,2)},onChange:function(s){return d("set_matrix_color",{color:6,value:s})}})]}),(0,e.jsxs)(r.XI.Row,{children:["BB:",(0,e.jsx)(r.Q7,{width:"50px",minValue:-10,maxValue:10,step:.01,value:l.bb,format:function(s){return(0,o.Mg)(s,2)},onChange:function(s){return d("set_matrix_color",{color:9,value:s})}})]})]}),(0,e.jsxs)(r.XI.Cell,{children:[(0,e.jsxs)(r.XI.Row,{children:["CR:",(0,e.jsx)(r.Q7,{width:"50px",minValue:-10,maxValue:10,step:.01,value:l.cr,format:function(s){return(0,o.Mg)(s,2)},onChange:function(s){return d("set_matrix_color",{color:10,value:s})}})]}),(0,e.jsxs)(r.XI.Row,{children:["CG:",(0,e.jsx)(r.Q7,{width:"50px",minValue:-10,maxValue:10,step:.01,value:l.cg,format:function(s){return(0,o.Mg)(s,2)},onChange:function(s){return d("set_matrix_color",{color:11,value:s})}})]}),(0,e.jsxs)(r.XI.Row,{children:["CB:",(0,e.jsx)(r.Q7,{width:"50px",minValue:-10,maxValue:10,step:.01,value:l.cb,format:function(s){return(0,o.Mg)(s,2)},onChange:function(s){return d("set_matrix_color",{color:12,value:s})}})]})]}),(0,e.jsxs)(r.XI.Cell,{width:"40%",children:[(0,e.jsx)(r.In,{name:"question-circle",color:"blue"})," RG means red will become this much green.",(0,e.jsx)("br",{}),(0,e.jsx)(r.In,{name:"question-circle",color:"blue"})," CR means this much red will be added."]})]}),(0,e.jsx)(r.az,{mt:3,children:(0,e.jsx)(r.Ki,{children:(0,e.jsx)(r.Ki.Item,{label:"Config",children:(0,e.jsx)(r.pd,{fluid:!0,value:Object.values(l).toString(),onChange:function(s,c){return d("set_matrix_string",{value:c})}})})})})]})}},11145:function(y,u,n){"use strict";n.r(u),n.d(u,{ColorMate:function(){return x}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),i=n(61942),h=n(17852),x=function(d){var a=(0,o.Oc)(),l=a.act,s=a.data,c=s.activemode,f=s.temp,v=s.item,g=[];return g[1]=(0,e.jsx)(i.ColorMateTint,{}),g[2]=(0,e.jsx)(i.ColorMateHSV,{}),g[3]=(0,e.jsx)(h.ColorMateMatrix,{}),(0,e.jsx)(r.p8,{width:980,height:720,children:(0,e.jsx)(r.p8.Content,{overflow:"auto",children:(0,e.jsxs)(t.wn,{children:[f?(0,e.jsx)(t.IC,{children:f}):null,v&&Object.keys(v).length?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(t.XI,{children:[(0,e.jsx)(t.XI.Cell,{width:"50%",children:(0,e.jsxs)(t.wn,{children:[(0,e.jsx)("center",{children:"Item:"}),(0,e.jsx)(t._V,{src:"data:image/jpeg;base64, "+v.sprite,style:{width:"100%",height:"100%"}})]})}),(0,e.jsx)(t.XI.Cell,{children:(0,e.jsxs)(t.wn,{children:[(0,e.jsx)("center",{children:"Preview:"}),(0,e.jsx)(t._V,{src:"data:image/jpeg;base64, "+v.preview,style:{width:"100%",height:"100%"}})]})})]}),(0,e.jsxs)(t.tU,{fluid:!0,children:[(0,e.jsx)(t.tU.Tab,{selected:c===1,onClick:function(){return l("switch_modes",{mode:1})},children:"Tint coloring (Simple)"},"1"),(0,e.jsx)(t.tU.Tab,{selected:c===2,onClick:function(){return l("switch_modes",{mode:2})},children:"HSV coloring (Normal)"},"2"),(0,e.jsx)(t.tU.Tab,{selected:c===3,onClick:function(){return l("switch_modes",{mode:3})},children:"Matrix coloring (Advanced)"},"3")]}),(0,e.jsxs)("center",{children:["Coloring: ",v.name]}),(0,e.jsxs)(t.XI,{mt:1,children:[(0,e.jsxs)(t.XI.Cell,{width:"33%",children:[(0,e.jsx)(t.$n,{fluid:!0,icon:"fill",onClick:function(){return l("paint")},children:"Paint"}),(0,e.jsx)(t.$n,{fluid:!0,icon:"eraser",onClick:function(){return l("clear")},children:"Clear"}),(0,e.jsx)(t.$n,{fluid:!0,icon:"eject",onClick:function(){return l("drop")},children:"Eject"})]}),(0,e.jsx)(t.XI.Cell,{width:"66%",children:g[c]||(0,e.jsx)(t.az,{textColor:"red",children:"Error"})})]})]}):(0,e.jsx)("center",{children:"No item inserted."})]})})})}},99390:function(y,u,n){"use strict";n.r(u)},57925:function(y,u,n){"use strict";n.r(u),n.d(u,{CommunicationsConsoleAuth:function(){return r}});var e=n(20462),o=n(7081),t=n(88569),r=function(i){var h=(0,o.Oc)(),x=h.act,d=h.data,a=d.authenticated,l=d.is_ai,s=d.esc_status,c=d.esc_callable,f=d.esc_recallable,v;return a?l?v="AI":a===1?v="Command":a===2?v="Site Director":v="ERROR: Report This Bug!":v="Not Logged In",(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.wn,{title:"Authentication",children:(0,e.jsx)(t.Ki,{children:l&&(0,e.jsx)(t.Ki.Item,{label:"Access Level",children:"AI"})||(0,e.jsx)(t.Ki.Item,{label:"Actions",children:(0,e.jsx)(t.$n,{icon:a?"sign-out-alt":"id-card",selected:a,onClick:function(){return x("auth")},children:a?"Log Out ("+v+")":"Log In"})})})}),(0,e.jsx)(t.wn,{title:"Escape Shuttle",children:(0,e.jsxs)(t.Ki,{children:[!!s&&(0,e.jsx)(t.Ki.Item,{label:"Status",children:s}),!!c&&(0,e.jsx)(t.Ki.Item,{label:"Options",children:(0,e.jsx)(t.$n,{icon:"rocket",disabled:!a,onClick:function(){return x("callshuttle")},children:"Call Shuttle"})}),!!f&&(0,e.jsx)(t.Ki.Item,{label:"Options",children:(0,e.jsx)(t.$n,{icon:"times",disabled:!a||l,onClick:function(){return x("cancelshuttle")},children:"Recall Shuttle"})})]})})]})}},34116:function(y,u,n){"use strict";n.r(u),n.d(u,{CommunicationsConsoleContent:function(){return d}});var e=n(20462),o=n(7081),t=n(88569),r=n(57925),i=n(73612),h=n(72298),x=n(19467),d=function(l){var s=(0,o.Oc)().data,c=s.menu_state,f=[];return f[1]=(0,e.jsx)(i.CommunicationsConsoleMain,{}),f[2]=(0,e.jsx)(x.CommunicationsConsoleStatusDisplay,{}),f[3]=(0,e.jsx)(h.CommunicationsConsoleMessage,{}),(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.CommunicationsConsoleAuth,{}),f[c]||(0,e.jsx)(a,{menu_state:c})]})},a=function(l){var s=l.menu_state;return(0,e.jsxs)(t.az,{color:"bad",children:["ERRROR. Unknown menu_state: ",s,"Please report this to NT Technical Support."]})}},73612:function(y,u,n){"use strict";n.r(u),n.d(u,{CommunicationsConsoleMain:function(){return r}});var e=n(20462),o=n(7081),t=n(88569),r=function(i){var h=(0,o.Oc)(),x=h.act,d=h.data,a=d.messages,l=d.msg_cooldown,s=d.emagged,c=d.cc_cooldown,f=d.str_security_level,v=d.levels,g=d.authmax,E=d.security_level,j=d.security_level_color,C=d.authenticated,M=d.atcsquelch,P=d.boss_short,_="View ("+a.length+")",S="Make Priority Announcement";l>0&&(S+=" ("+l+"s)");var T=s?"Message [UNKNOWN]":"Message "+P;c>0&&(T+=" ("+c+"s)");var b=f,L=v.map(function(W){return(0,e.jsx)(t.$n,{icon:W.icon,disabled:!C,selected:W.id===E,onClick:function(){return x("newalertlevel",{level:W.id})},children:W.name},W.name)});return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.wn,{title:"Site Manager-Only Actions",children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Announcement",children:(0,e.jsx)(t.$n,{icon:"bullhorn",disabled:!g||l>0,onClick:function(){return x("announce")},children:S})}),!!s&&(0,e.jsxs)(t.Ki.Item,{label:"Transmit",children:[(0,e.jsx)(t.$n,{icon:"broadcast-tower",color:"red",disabled:!g||c>0,onClick:function(){return x("MessageSyndicate")},children:T}),(0,e.jsx)(t.$n,{icon:"sync-alt",disabled:!g,onClick:function(){return x("RestoreBackup")},children:"Reset Relays"})]})||(0,e.jsx)(t.Ki.Item,{label:"Transmit",children:(0,e.jsx)(t.$n,{icon:"broadcast-tower",disabled:!g||c>0,onClick:function(){return x("MessageCentCom")},children:T})})]})}),(0,e.jsx)(t.wn,{title:"Command Staff Actions",children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Current Alert",color:j,children:b}),(0,e.jsx)(t.Ki.Item,{label:"Change Alert",children:L}),(0,e.jsx)(t.Ki.Item,{label:"Displays",children:(0,e.jsx)(t.$n,{icon:"tv",disabled:!C,onClick:function(){return x("status")},children:"Change Status Displays"})}),(0,e.jsx)(t.Ki.Item,{label:"Incoming Messages",children:(0,e.jsx)(t.$n,{icon:"folder-open",disabled:!C,onClick:function(){return x("messagelist")},children:_})}),(0,e.jsx)(t.Ki.Item,{label:"Misc",children:(0,e.jsx)(t.$n,{icon:"microphone",disabled:!C,selected:M,onClick:function(){return x("toggleatc")},children:M?"ATC Relay Disabled":"ATC Relay Enabled"})})]})})]})}},72298:function(y,u,n){"use strict";n.r(u),n.d(u,{CommunicationsConsoleMessage:function(){return r}});var e=n(20462),o=n(7081),t=n(88569),r=function(i){var h=(0,o.Oc)(),x=h.act,d=h.data,a=d.message_current,l=d.message_deletion_allowed,s=d.authenticated,c=d.messages;if(a)return(0,e.jsx)(t.wn,{title:a.title,buttons:(0,e.jsx)(t.$n,{icon:"times",disabled:!s,onClick:function(){return x("messagelist")},children:"Return To Message List"}),children:(0,e.jsx)(t.az,{children:a.contents})});var f=c.map(function(v){return(0,e.jsxs)(t.Ki.Item,{label:v.title,children:[(0,e.jsx)(t.$n,{icon:"eye",disabled:!s,onClick:function(){return x("messagelist",{msgid:v.id})},children:"View"}),(0,e.jsx)(t.$n,{icon:"times",disabled:!s||!l,onClick:function(){return x("delmessage",{msgid:v.id})},children:"Delete"})]},v.id)});return(0,e.jsx)(t.wn,{title:"Messages Received",buttons:(0,e.jsx)(t.$n,{icon:"arrow-circle-left",onClick:function(){return x("main")},children:"Back To Main Menu"}),children:(0,e.jsx)(t.Ki,{children:c.length&&f||(0,e.jsx)(t.Ki.Item,{label:"404",color:"bad",children:"No messages."})})})}},19467:function(y,u,n){"use strict";n.r(u),n.d(u,{CommunicationsConsoleStatusDisplay:function(){return r}});var e=n(20462),o=n(7081),t=n(88569),r=function(i){var h=(0,o.Oc)(),x=h.act,d=h.data,a=d.stat_display,l=d.authenticated,s=a.presets.map(function(c){return(0,e.jsx)(t.$n,{selected:c.name===a.type,disabled:!l,onClick:function(){return x("setstat",{statdisp:c.name})},children:c.label},c.name)});return(0,e.jsx)(t.wn,{title:"Modify Status Screens",buttons:(0,e.jsx)(t.$n,{icon:"arrow-circle-left",onClick:function(){return x("main")},children:"Back To Main Menu"}),children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Presets",children:s}),(0,e.jsx)(t.Ki.Item,{label:"Message Line 1",children:(0,e.jsx)(t.$n,{icon:"pencil-alt",disabled:!l,onClick:function(){return x("setmsg1")},children:a.line_1})}),(0,e.jsx)(t.Ki.Item,{label:"Message Line 2",children:(0,e.jsx)(t.$n,{icon:"pencil-alt",disabled:!l,onClick:function(){return x("setmsg2")},children:a.line_2})})]})})}},59421:function(y,u,n){"use strict";n.r(u),n.d(u,{CommunicationsConsole:function(){return r}});var e=n(20462),o=n(15581),t=n(34116),r=function(i){return(0,e.jsx)(o.p8,{width:400,height:600,children:(0,e.jsx)(o.p8.Content,{scrollable:!0,children:(0,e.jsx)(t.CommunicationsConsoleContent,{})})})}},52994:function(y,u,n){"use strict";n.r(u)},59546:function(y,u,n){"use strict";n.r(u),n.d(u,{CommunicatorContactTab:function(){return h}});var e=n(20462),o=n(61282),t=n(7081),r=n(88569),i=n(74293),h=function(x){var d=(0,t.Oc)(),a=d.act,l=d.data,s=l.knownDevices;return(0,e.jsx)(r.wn,{title:"Known Devices",children:s.length&&(0,e.jsx)(r.XI,{children:s.map(function(c){return(0,e.jsxs)(r.XI.Row,{children:[(0,e.jsx)(r.XI.Cell,{color:"label",style:{"word-break":"break-all"},children:(0,o.jT)(c.name)}),(0,e.jsxs)(r.XI.Cell,{children:[(0,e.jsx)(r.az,{children:c.address}),(0,e.jsxs)(r.az,{children:[(0,e.jsx)(r.$n,{icon:"pen",onClick:function(){a("copy",{copy:c.address}),a("switch_tab",{switch_tab:i.PHONTAB})},children:"Copy"}),(0,e.jsx)(r.$n,{icon:"phone",onClick:function(){a("dial",{dial:c.address}),a("copy",{copy:c.address}),a("switch_tab",{switch_tab:i.PHONTAB})},children:"Call"}),(0,e.jsx)(r.$n,{icon:"comment-alt",onClick:function(){a("copy",{copy:c.address}),a("copy_name",{copy_name:c.name}),a("switch_tab",{switch_tab:i.MESSSUBTAB})},children:"Msg"})]})]})]},c.address)})})||(0,e.jsx)(r.az,{children:"No devices detected on your local NTNet region."})})}},28215:function(y,u,n){"use strict";n.r(u),n.d(u,{CommunicatorFooter:function(){return d},CommunicatorHeader:function(){return x},TemplateError:function(){return h},VideoComm:function(){return a}});var e=n(20462),o=n(61282),t=n(7081),r=n(88569),i=n(74293),h=function(l){return(0,e.jsxs)(r.wn,{title:"Error!",children:["You tried to access tab #",l.currentTab,", but there was no template defined!"]})},x=function(l){var s=(0,t.Oc)(),c=s.act,f=s.data,v=f.time,g=f.connectionStatus,E=f.owner,j=f.occupation;return(0,e.jsx)(r.wn,{children:(0,e.jsxs)(r.so,{align:"center",justify:"space-between",children:[(0,e.jsx)(r.so.Item,{color:"average",children:v}),(0,e.jsx)(r.so.Item,{children:(0,e.jsx)(r.In,{color:g===1?"good":"bad",name:g===1?"signal":"exclamation-triangle"})}),(0,e.jsx)(r.so.Item,{color:"average",children:(0,o.jT)(E)}),(0,e.jsx)(r.so.Item,{color:"average",children:(0,o.jT)(j)})]})})},d=function(l){var s=(0,t.Oc)(),c=s.act,f=s.data,v=f.flashlight,g=l.videoSetting,E=l.setVideoSetting;return(0,e.jsxs)(r.so,{children:[(0,e.jsx)(r.so.Item,{basis:g===2?"60%":"80%",children:(0,e.jsx)(r.$n,{p:1,fluid:!0,icon:"home",iconSize:2,textAlign:"center",onClick:function(){return c("switch_tab",{switch_tab:i.HOMETAB})}})}),(0,e.jsx)(r.so.Item,{basis:"20%",children:(0,e.jsx)(r.$n,{icon:"lightbulb",iconSize:2,p:1,fluid:!0,textAlign:"center",selected:v,tooltip:"Flashlight",tooltipPosition:"top",onClick:function(){return c("Light")}})}),g===2&&(0,e.jsx)(r.so.Item,{basis:"20%",children:(0,e.jsx)(r.$n,{icon:"video",iconSize:2,p:1,fluid:!0,textAlign:"center",tooltip:"Open Video",tooltipPosition:"top",onClick:function(){return E(1)}})})]})},a=function(l){var s=(0,t.Oc)(),c=s.act,f=s.data,v=f.mapRef,g=l.videoSetting,E=l.setVideoSetting;return g===0?(0,e.jsxs)(r.az,{width:"100%",height:"100%",children:[(0,e.jsx)(r.D1,{width:"100%",height:"95%",params:{id:v,type:"map"}}),(0,e.jsxs)(r.so,{justify:"space-between",spacing:1,mt:.5,children:[(0,e.jsx)(r.so.Item,{grow:1,children:(0,e.jsx)(r.$n,{textAlign:"center",fluid:!0,fontSize:1.5,icon:"window-minimize",onClick:function(){return E(1)}})}),(0,e.jsx)(r.so.Item,{grow:1,children:(0,e.jsx)(r.$n,{textAlign:"center",fluid:!0,fontSize:1.5,color:"bad",icon:"video-slash",onClick:function(){return c("endvideo")}})}),(0,e.jsx)(r.so.Item,{grow:1,children:(0,e.jsx)(r.$n,{textAlign:"center",fluid:!0,fontSize:1.5,color:"bad",icon:"phone-slash",onClick:function(){return c("hang_up")}})})]})]}):g===1?(0,e.jsxs)(r.az,{style:{position:"absolute",right:"5px",bottom:"50px",zIndex:"1"},children:[(0,e.jsx)(r.wn,{p:0,m:0,children:(0,e.jsxs)(r.so,{justify:"space-between",spacing:1,children:[(0,e.jsx)(r.so.Item,{grow:1,children:(0,e.jsx)(r.$n,{textAlign:"center",fluid:!0,fontSize:1.5,icon:"window-minimize",onClick:function(){return E(2)}})}),(0,e.jsx)(r.so.Item,{grow:1,children:(0,e.jsx)(r.$n,{textAlign:"center",fluid:!0,fontSize:1.5,icon:"window-maximize",onClick:function(){return E(0)}})}),(0,e.jsx)(r.so.Item,{grow:1,children:(0,e.jsx)(r.$n,{textAlign:"center",fluid:!0,fontSize:1.5,color:"bad",icon:"video-slash",onClick:function(){return c("endvideo")}})}),(0,e.jsx)(r.so.Item,{grow:1,children:(0,e.jsx)(r.$n,{textAlign:"center",fluid:!0,fontSize:1.5,color:"bad",icon:"phone-slash",onClick:function(){return c("hang_up")}})})]})}),(0,e.jsx)(r.D1,{width:"200px",height:"200px",params:{id:v,type:"map"}})]}):null}},46873:function(y,u,n){"use strict";n.r(u),n.d(u,{CommunicatorHomeTab:function(){return r}});var e=n(20462),o=n(7081),t=n(88569),r=function(h){var x=(0,o.Oc)(),d=x.act,a=x.data,l=a.homeScreen;return(0,e.jsx)(t.so,{mt:2,wrap:"wrap",align:"center",justify:"center",children:l.map(function(s){return(0,e.jsxs)(t.so.Item,{basis:"25%",textAlign:"center",mb:2,children:[(0,e.jsx)(t.$n,{style:{borderRadius:"10%",border:"1px solid #000"},width:"64px",height:"64px",position:"relative",onClick:function(){return d("switch_tab",{switch_tab:s.number})},children:(0,e.jsx)(t.In,{spin:i(s.module),color:i(s.module)?"bad":null,name:s.icon,position:"absolute",size:3,top:"25%",left:"25%"})}),(0,e.jsx)(t.az,{children:s.module})]},s.number)})})},i=function(h){var x=(0,o.Oc)().data,d=x.voice_mobs,a=x.communicating,l=x.requestsReceived,s=x.invitesSent,c=x.video_comm;return!!(h==="Phone"&&(d.length||a.length||l.length||s.length||c))}},51445:function(y,u,n){"use strict";n.r(u),n.d(u,{CommunicatorMessageSubTab:function(){return i}});var e=n(20462),o=n(61282),t=n(7081),r=n(88569),i=function(a){var l=(0,t.Oc)(),s=l.act,c=l.data,f=a.clipboardMode,v=a.onClipboardMode,g=c.targetAddress,E=c.targetAddressName,j=c.imList;return f?(0,e.jsxs)(r.wn,{title:(0,e.jsx)(r.az,{inline:!0,style:{whiteSpace:"nowrap",overflowX:"hidden"},width:"90%",children:x("Conversation with ",(0,o.jT)(E),30)}),buttons:(0,e.jsx)(r.$n,{icon:"eye",selected:f,tooltip:"Exit Clipboard Mode",tooltipPosition:"bottom-end",onClick:function(){return v(!f)}}),height:"100%",stretchContents:!0,children:[(0,e.jsx)(r.wn,{style:{height:"95%",overflowY:"auto"},children:j.map(function(C,M){return(C.to_address===g||C.address===g)&&(0,e.jsxs)(r.az,{className:h(C,g)?"ClassicMessage_Sent":"ClassicMessage_Received",children:[h(C,g)?"You":"Them",": ",C.im]},M)})}),(0,e.jsx)(r.$n,{icon:"comment",onClick:function(){return s("message",{message:g})},children:"Message"})]}):(0,e.jsxs)(r.wn,{title:(0,e.jsx)(r.az,{inline:!0,style:{whiteSpace:"nowrap",overflowX:"hidden"},width:"100%",children:x("Conversation with ",(0,o.jT)(E),30)}),buttons:(0,e.jsx)(r.$n,{icon:"eye",selected:f,tooltip:"Enter Clipboard Mode",tooltipPosition:"bottom-end",onClick:function(){return v(!f)}}),height:"100%",stretchContents:!0,children:[(0,e.jsx)(r.wn,{style:{height:"95%",overflowY:"auto"},children:j.map(function(C,M,P){return(C.to_address===g||C.address===g)&&(0,e.jsx)(r.az,{textAlign:h(C,g)?"right":"left",mb:1,children:(0,e.jsx)(r.az,{maxWidth:"75%",className:d(C,g,M-1,P),inline:!0,children:(0,o.jT)(C.im)})},M)})}),(0,e.jsx)(r.$n,{icon:"comment",onClick:function(){return s("message",{message:g})},children:"Message"})]})},h=function(a,l){return a.address!==l},x=function(a,l,s){return(a+l).length>s?l.length>s?l.slice(0,s)+"...":l:a+l},d=function(a,l,s,c){if(s<0||s>c.length)return h(a,l)?"TinderMessage_First_Sent":"TinderMessage_First_Received";var f=h(a,l),v=h(c[s],l);return f&&v?"TinderMessage_Subsequent_Sent":!f&&!v?"TinderMessage_Subsequent_Received":f?"TinderMessage_First_Sent":"TinderMessage_First_Received"}},26217:function(y,u,n){"use strict";n.r(u),n.d(u,{CommunicatorMessageTab:function(){return h}});var e=n(20462),o=n(61282),t=n(7081),r=n(88569),i=n(74293),h=function(x){var d=(0,t.Oc)(),a=d.act,l=d.data,s=l.imContacts;return(0,e.jsx)(r.wn,{title:"Messaging",children:s.length&&(0,e.jsx)(r.XI,{children:s.map(function(c){return(0,e.jsxs)(r.XI.Row,{children:[(0,e.jsxs)(r.XI.Cell,{color:"label",style:{"word-break":"break-all"},children:[(0,o.jT)(c.name),":"]}),(0,e.jsxs)(r.XI.Cell,{children:[(0,e.jsx)(r.az,{children:c.address}),(0,e.jsx)(r.az,{children:(0,e.jsx)(r.$n,{icon:"comment",onClick:function(){a("copy",{copy:c.address}),a("copy_name",{copy_name:c.name}),a("switch_tab",{switch_tab:i.MESSSUBTAB})},children:"View Conversation"})})]})]},c.address)})})||(0,e.jsxs)(r.az,{children:["You haven't sent any messages yet.",(0,e.jsx)(r.$n,{fluid:!0,icon:"user",onClick:function(){return a("switch_tab",{switch_tab:i.CONTTAB})},children:"Contacts"})]})})}},28953:function(y,u,n){"use strict";n.r(u),n.d(u,{CommunicatorNewsTab:function(){return i}});var e=n(20462),o=n(61282),t=n(7081),r=n(88569),i=function(h){var x=(0,t.Oc)(),d=x.act,a=x.data,l=a.feeds,s=a.target_feed,c=a.latest_news;return(0,e.jsx)(r.wn,{title:"News",stretchContents:!0,height:"100%",children:!l.length&&(0,e.jsx)(r.az,{color:"bad",children:"Error: No newsfeeds available. Please try again later."})||s&&(0,e.jsx)(r.wn,{title:(0,o.jT)(s.name)+" by "+(0,o.jT)(s.author),buttons:(0,e.jsx)(r.$n,{icon:"chevron-up",onClick:function(){return d("newsfeed",{newsfeed:null})},children:"Back"}),children:s.messages.map(function(f){return(0,e.jsxs)(r.wn,{children:["- ",(0,o.jT)(f.body),!!f.img&&(0,e.jsxs)(r.az,{children:[(0,e.jsx)(r._V,{src:"data:image/png;base64,"+f.img}),(0,o.jT)(f.caption)||null]}),(0,e.jsxs)(r.az,{color:"grey",children:["[",f.message_type," by"," ",(0,o.jT)(f.author)," - ",f.time_stamp,"]"]})]},f.ref)})})||(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.wn,{title:"Recent News",children:(0,e.jsx)(r.wn,{children:c.map(function(f){return(0,e.jsxs)(r.az,{mb:2,children:[(0,e.jsxs)("h5",{children:[(0,o.jT)(f.channel),(0,e.jsx)(r.$n,{ml:1,icon:"chevron-up",onClick:function(){return d("newsfeed",{newsfeed:f.index})},children:"Go to"})]}),"- ",(0,o.jT)(f.body),!!f.img&&(0,e.jsxs)(r.az,{children:["[image omitted, view story for more details]",f.caption||null]}),(0,e.jsxs)(r.az,{fontSize:.9,children:["[",f.message_type," by"," ",(0,e.jsx)(r.az,{inline:!0,color:"average",children:f.author})," ","- ",f.time_stamp,"]"]})]},f.index)})})}),(0,e.jsx)(r.wn,{title:"News Feeds",children:l.map(function(f){return(0,e.jsx)(r.$n,{fluid:!0,icon:"chevron-up",onClick:function(){return d("newsfeed",{newsfeed:f.index})},children:f.name},f.index)})})]})})}},47106:function(y,u,n){"use strict";n.r(u),n.d(u,{CommunicatorNoteTab:function(){return r}});var e=n(20462),o=n(7081),t=n(88569),r=function(i){var h=(0,o.Oc)(),x=h.act,d=h.data,a=d.note;return(0,e.jsx)(t.wn,{title:"Note Keeper",height:"100%",stretchContents:!0,buttons:(0,e.jsx)(t.$n,{icon:"pen",onClick:function(){return x("edit")},children:"Edit Notes"}),children:(0,e.jsx)(t.wn,{color:"average",width:"100%",height:"100%",style:{wordBreak:"break-all",overflowY:"auto"},children:a})})}},10674:function(y,u,n){"use strict";n.r(u),n.d(u,{CommunicatorPhoneTab:function(){return h}});var e=n(20462),o=n(61282),t=n(7081),r=n(88569),i=n(74293),h=function(s){for(var c=(0,t.Oc)(),f=c.act,v=c.data,g=v.selfie_mode,E=v.targetAddress,j=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F"],C=j.map(function(_){return(0,e.jsx)(r.$n,{fontSize:2,fluid:!0,onClick:function(){return f("add_hex",{add_hex:_})},children:_},_)}),M=[],P=0;Ps?"average":d>c?"bad":"good"}},74293:function(y,u,n){"use strict";n.r(u),n.d(u,{CONTTAB:function(){return t},HOMETAB:function(){return e},MANITAB:function(){return a},MESSSUBTAB:function(){return i},MESSTAB:function(){return r},NEWSTAB:function(){return h},NOTETAB:function(){return x},PHONTAB:function(){return o},SETTTAB:function(){return l},WTHRTAB:function(){return d},notFound:function(){return c},tabs:function(){return s}});var e=1,o=2,t=3,r=4,i=40,h=5,x=6,d=7,a=8,l=9,s=[e,o,t,r,i,h,x,d,a,l];function c(f){return s.includes(f)}},42320:function(y,u,n){"use strict";n.r(u),n.d(u,{Communicator:function(){return C}});var e=n(20462),o=n(61358),t=n(7081),r=n(88569),i=n(15581),h=n(58044),x=n(59546),d=n(28215),a=n(46873),l=n(51445),s=n(26217),c=n(28953),f=n(47106),v=n(10674),g=n(4435),E=n(81450),j=n(74293),C=function(){var M=function(Y){k(Y)},P=(0,t.Oc)(),_=P.act,S=P.data,T=S.currentTab,b=S.video_comm,L=[],W=(0,o.useState)(0),$=W[0],z=W[1],w=(0,o.useState)(!1),V=w[0],k=w[1];return L[j.tabs[0]]=(0,e.jsx)(a.CommunicatorHomeTab,{}),L[j.tabs[1]]=(0,e.jsx)(v.CommunicatorPhoneTab,{}),L[j.tabs[2]]=(0,e.jsx)(x.CommunicatorContactTab,{}),L[j.tabs[3]]=(0,e.jsx)(s.CommunicatorMessageTab,{}),L[j.tabs[4]]=(0,e.jsx)(l.CommunicatorMessageSubTab,{clipboardMode:V,onClipboardMode:M}),L[j.tabs[5]]=(0,e.jsx)(c.CommunicatorNewsTab,{}),L[j.tabs[6]]=(0,e.jsx)(f.CommunicatorNoteTab,{}),L[j.tabs[7]]=(0,e.jsx)(E.CommunicatorWeatherTab,{}),L[j.tabs[8]]=(0,e.jsx)(h.CrewManifestContent,{}),L[j.tabs[9]]=(0,e.jsx)(g.CommunicatorSettingsTab,{}),(0,e.jsx)(i.p8,{width:475,height:700,children:(0,e.jsxs)(i.p8.Content,{children:[b&&(0,e.jsx)(d.VideoComm,{videoSetting:$,setVideoSetting:z}),(!b||$!==0)&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(d.CommunicatorHeader,{}),(0,e.jsx)(r.az,{height:"88%",mb:1,style:{overflowY:"auto"},children:L[T]||(0,j.notFound)(T)&&(0,e.jsx)(d.TemplateError,{currentTab:T})}),(0,e.jsx)(d.CommunicatorFooter,{videoSetting:$,setVideoSetting:z})]})]})})}},96273:function(y,u,n){"use strict";n.r(u)},62311:function(y,u,n){"use strict";n.r(u),n.d(u,{CfStep1:function(){return r}});var e=n(20462),o=n(7081),t=n(88569),r=function(i){var h=(0,o.Oc)().act;return(0,e.jsxs)(t.wn,{title:"Step 1",minHeight:"306px",children:[(0,e.jsx)(t.az,{mt:5,bold:!0,textAlign:"center",fontSize:"40px",children:"Choose your Device"}),(0,e.jsx)(t.az,{mt:3,children:(0,e.jsx)(t.XI,{width:"100%",children:(0,e.jsxs)(t.XI.Row,{children:[(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.$n,{fluid:!0,icon:"laptop",textAlign:"center",fontSize:"30px",lineHeight:2,onClick:function(){return h("pick_device",{pick:"1"})},children:"Laptop"})}),(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.$n,{fluid:!0,icon:"tablet-alt",textAlign:"center",fontSize:"30px",lineHeight:2,onClick:function(){return h("pick_device",{pick:"2"})},children:"Tablet"})})]})})})]})}},78820:function(y,u,n){"use strict";n.r(u),n.d(u,{CfStep2:function(){return r}});var e=n(20462),o=n(7081),t=n(88569),r=function(i){var h=(0,o.Oc)(),x=h.act,d=h.data,a=d.totalprice,l=d.hw_battery,s=d.hw_disk,c=d.hw_netcard,f=d.hw_nanoprint,v=d.hw_card,g=d.devtype,E=d.hw_cpu,j=d.hw_tesla;return(0,e.jsxs)(t.wn,{title:"Step 2: Customize your device",minHeight:"282px",buttons:(0,e.jsxs)(t.az,{bold:!0,color:"good",children:[a,"\u20AE"]}),children:[(0,e.jsxs)(t.XI,{children:[(0,e.jsxs)(t.XI.Row,{children:[(0,e.jsxs)(t.XI.Cell,{bold:!0,position:"relative",children:["Battery:",(0,e.jsx)(t.m_,{content:"\n Allows your device to operate without external utility power\n source. Advanced batteries increase battery life.\n ",position:"right"})]}),(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.$n,{selected:l===1,onClick:function(){return x("hw_battery",{battery:"1"})},children:"Standard"})}),(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.$n,{selected:l===2,onClick:function(){return x("hw_battery",{battery:"2"})},children:"Upgraded"})}),(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.$n,{selected:l===3,onClick:function(){return x("hw_battery",{battery:"3"})},children:"Advanced"})})]}),(0,e.jsxs)(t.XI.Row,{children:[(0,e.jsxs)(t.XI.Cell,{bold:!0,position:"relative",children:["Hard Drive:",(0,e.jsx)(t.m_,{content:"\n Stores file on your device. Advanced drives can store more\n files, but use more power, shortening battery life.\n ",position:"right"})]}),(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.$n,{selected:s===1,onClick:function(){return x("hw_disk",{disk:"1"})},children:"Standard"})}),(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.$n,{selected:s===2,onClick:function(){return x("hw_disk",{disk:"2"})},children:"Upgraded"})}),(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.$n,{selected:s===3,onClick:function(){return x("hw_disk",{disk:"3"})},children:"Advanced"})})]}),(0,e.jsxs)(t.XI.Row,{children:[(0,e.jsxs)(t.XI.Cell,{bold:!0,position:"relative",children:["Network Card:",(0,e.jsx)(t.m_,{content:"\n Allows your device to wirelessly connect to stationwide NTNet\n network. Basic cards are limited to on-station use, while\n advanced cards can operate anywhere near the station, which\n includes asteroid outposts\n ",position:"right"})]}),(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.$n,{selected:c===0,onClick:function(){return x("hw_netcard",{netcard:"0"})},children:"None"})}),(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.$n,{selected:c===1,onClick:function(){return x("hw_netcard",{netcard:"1"})},children:"Standard"})}),(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.$n,{selected:c===2,onClick:function(){return x("hw_netcard",{netcard:"2"})},children:"Advanced"})})]}),(0,e.jsxs)(t.XI.Row,{children:[(0,e.jsxs)(t.XI.Cell,{bold:!0,position:"relative",children:["Nano Printer:",(0,e.jsx)(t.m_,{content:"\n A device that allows for various paperwork manipulations,\n such as, scanning of documents or printing new ones.\n This device was certified EcoFriendlyPlus and is capable of\n recycling existing paper for printing purposes.\n ",position:"right"})]}),(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.$n,{selected:f===0,onClick:function(){return x("hw_nanoprint",{print:"0"})},children:"None"})}),(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.$n,{selected:f===1,onClick:function(){return x("hw_nanoprint",{print:"1"})},children:"Standard"})})]}),(0,e.jsxs)(t.XI.Row,{children:[(0,e.jsxs)(t.XI.Cell,{bold:!0,position:"relative",children:["Secondary Card Reader:",(0,e.jsx)(t.m_,{content:"\n Adds a secondary RFID card reader, for manipulating or\n reading from a second standard RFID card.\n Please note that a primary card reader is necessary to\n allow the device to read your identification, but one\n is included in the base price.\n ",position:"right"})]}),(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.$n,{selected:v===0,onClick:function(){return x("hw_card",{card:"0"})},children:"None"})}),(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.$n,{selected:v===1,onClick:function(){return x("hw_card",{card:"1"})},children:"Standard"})})]}),g!==2&&(0,e.jsxs)(t.XI.Row,{children:[(0,e.jsxs)(t.XI.Cell,{bold:!0,position:"relative",children:["Processor Unit:",(0,e.jsx)(t.m_,{content:"\n A component critical for your device's functionality.\n It allows you to run programs from your hard drive.\n Advanced CPUs use more power, but allow you to run\n more programs on background at once.\n ",position:"right"})]}),(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.$n,{selected:E===1,onClick:function(){return x("hw_cpu",{cpu:"1"})},children:"Standard"})}),(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.$n,{selected:E===2,onClick:function(){return x("hw_cpu",{cpu:"2"})},children:"Advanced"})})]}),(0,e.jsxs)(t.XI.Row,{children:[(0,e.jsxs)(t.XI.Cell,{bold:!0,position:"relative",children:["Tesla Relay:",(0,e.jsx)(t.m_,{content:"\n An advanced wireless power relay that allows your device\n to connect to nearby area power controller to provide\n alternative power source. This component is currently\n unavailable on tablet computers due to size restrictions.\n ",position:"right"})]}),(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.$n,{selected:j===0,onClick:function(){return x("hw_tesla",{tesla:"0"})},children:"None"})}),(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.$n,{selected:j===1,onClick:function(){return x("hw_tesla",{tesla:"1"})},children:"Standard"})})]})]}),(0,e.jsx)(t.$n,{fluid:!0,mt:3,color:"good",textAlign:"center",fontSize:"18px",lineHeight:2,onClick:function(){return x("confirm_order")},children:"Confirm Order"})]})}},3777:function(y,u,n){"use strict";n.r(u),n.d(u,{CfStep3:function(){return t}});var e=n(20462),o=n(88569),t=function(r){var i=r.totalprice;return(0,e.jsxs)(o.wn,{title:"Step 3: Payment",minHeight:"282px",children:[(0,e.jsx)(o.az,{italic:!0,textAlign:"center",fontSize:"20px",children:"Your device is ready for fabrication..."}),(0,e.jsxs)(o.az,{bold:!0,mt:2,textAlign:"center",fontSize:"16px",children:[(0,e.jsx)(o.az,{inline:!0,children:"Please swipe your ID now to authorize payment of:"}),"\xA0",(0,e.jsxs)(o.az,{inline:!0,color:"good",children:[i,"\u20AE"]})]})]})}},44430:function(y,u,n){"use strict";n.r(u),n.d(u,{CfStep4:function(){return t}});var e=n(20462),o=n(88569),t=function(r){return(0,e.jsxs)(o.wn,{minHeight:"282px",children:[(0,e.jsx)(o.az,{bold:!0,textAlign:"center",fontSize:"28px",mt:10,children:"Thank you for your purchase!"}),(0,e.jsx)(o.az,{italic:!0,mt:1,textAlign:"center",children:"If you experience any difficulties with your new device, please contact your local network administrator."})]})}},36229:function(y,u,n){"use strict";n.r(u),n.d(u,{ComputerFabricator:function(){return a}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),i=n(62311),h=n(78820),x=n(3777),d=n(44430),a=function(l){var s=(0,o.Oc)(),c=s.act,f=s.data,v=f.state,g=f.totalprice,E=[];return E[0]=(0,e.jsx)(i.CfStep1,{}),E[1]=(0,e.jsx)(h.CfStep2,{}),E[2]=(0,e.jsx)(x.CfStep3,{totalprice:g}),E[3]=(0,e.jsx)(d.CfStep4,{}),(0,e.jsx)(r.p8,{title:"Personal Computer Vendor",width:500,height:420,children:(0,e.jsxs)(r.p8.Content,{children:[(0,e.jsx)(t.wn,{italic:!0,fontSize:"20px",children:"Your perfect device, only three steps away..."}),v!==0&&(0,e.jsx)(t.$n,{fluid:!0,mb:1,icon:"circle",onClick:function(){return c("clean_order")},children:"Clear Order"}),E[v]]})})}},75050:function(y,u,n){"use strict";n.r(u)},31681:function(y,u,n){"use strict";n.r(u),n.d(u,{CookingAppliance:function(){return i}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),i=function(h){var x=(0,o.Oc)(),d=x.act,a=x.data,l=a.temperature,s=a.optimalTemp,c=a.temperatureEnough,f=a.efficiency,v=a.containersRemovable,g=a.our_contents;return(0,e.jsx)(r.p8,{width:600,height:600,children:(0,e.jsxs)(r.p8.Content,{scrollable:!0,children:[(0,e.jsx)(t.wn,{title:"Status",children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Temperature",children:(0,e.jsxs)(t.z2,{color:c?"good":"blue",value:l,maxValue:s,children:[(0,e.jsx)(t.zv,{value:l}),"\xB0C / ",s,"\xB0C"]})}),(0,e.jsxs)(t.Ki.Item,{label:"Efficiency",children:[(0,e.jsx)(t.zv,{value:f}),"%"]})]})}),(0,e.jsx)(t.wn,{title:"Containers",children:(0,e.jsx)(t.Ki,{children:g.map(function(E,j){return E.empty?(0,e.jsx)(t.Ki.Item,{label:"Slot #"+(j+1),children:(0,e.jsx)(t.$n,{onClick:function(){return d("slot",{slot:j+1})},children:"Empty"})},j):(0,e.jsx)(t.Ki.Item,{label:"Slot #"+(j+1),verticalAlign:"middle",children:(0,e.jsxs)(t.so,{spacing:1,children:[(0,e.jsx)(t.so.Item,{children:(0,e.jsx)(t.$n,{disabled:!v,onClick:function(){return d("slot",{slot:j+1})},children:E.container||"No Container"})}),(0,e.jsx)(t.so.Item,{grow:1,children:(0,e.jsx)(t.z2,{color:E.progressText[0],value:E.progress,maxValue:1,children:E.progressText[1]})})]})},j)})})})]})})}},58044:function(y,u,n){"use strict";n.r(u),n.d(u,{CrewManifest:function(){return x},CrewManifestContent:function(){return d}});var e=n(20462),o=n(61282),t=n(7081),r=n(88569),i=n(79500),h=n(15581),x=function(){return(0,e.jsx)(h.p8,{width:400,height:600,children:(0,e.jsx)(h.p8.Content,{scrollable:!0,children:(0,e.jsx)(d,{})})})},d=function(a){var l=(0,t.Oc)(),s=l.act,c=l.data,f=c.manifest;return(0,e.jsx)(r.wn,{title:"Crew Manifest",noTopPadding:!0,children:f.map(function(v){return!!v.elems.length&&(0,e.jsx)(r.wn,{title:(0,e.jsx)(r.az,{backgroundColor:i.lm.manifest[v.cat.toLowerCase()],m:-1,pt:1,pb:1,children:(0,e.jsx)(r.az,{ml:1,textAlign:"center",fontSize:1.4,children:v.cat})}),children:(0,e.jsxs)(r.XI,{children:[(0,e.jsxs)(r.XI.Row,{header:!0,color:"white",children:[(0,e.jsx)(r.XI.Cell,{children:"Name"}),(0,e.jsx)(r.XI.Cell,{children:"Rank"}),(0,e.jsx)(r.XI.Cell,{children:"Active"})]}),v.elems.map(function(g){return(0,e.jsxs)(r.XI.Row,{color:"average",children:[(0,e.jsx)(r.XI.Cell,{children:(0,o.jT)(g.name)}),(0,e.jsx)(r.XI.Cell,{children:g.rank}),(0,e.jsx)(r.XI.Cell,{children:g.active})]},g.name+g.rank)})]})},v.cat)})})}},70117:function(y,u,n){"use strict";n.r(u),n.d(u,{CrewMonitor:function(){return l},CrewMonitorContent:function(){return s}});var e=n(20462),o=n(7402),t=n(15813),r=n(61358),i=n(7081),h=n(88569),x=n(15581),d=function(v){return v.dead?"Deceased":v.stat===1?"Unconscious":"Living"},a=function(v){return v.dead?"red":v.stat===1?"orange":"green"},l=function(){var v=function(T){C(T)},g=function(T){_(T)},E=(0,r.useState)(0),j=E[0],C=E[1],M=(0,r.useState)(1),P=M[0],_=M[1];return(0,e.jsx)(x.p8,{width:800,height:600,children:(0,e.jsx)(x.p8.Content,{children:(0,e.jsx)(s,{tabIndex:j,zoom:P,onTabIndex:v,onZoom:g})})})},s=function(v){var g=(0,i.Oc)().data,E=g.crewmembers,j=E===void 0?[]:E,C=(0,t.L)([function(P){return(0,o.Ul)(P,function(_){return _.name})},function(P){return(0,o.Ul)(P,function(_){return _==null?void 0:_.x})},function(P){return(0,o.Ul)(P,function(_){return _==null?void 0:_.y})},function(P){return(0,o.Ul)(P,function(_){return _==null?void 0:_.realZ})}])(j),M=[];return M[0]=(0,e.jsx)(c,{crew:C}),M[1]=(0,e.jsx)(f,{zoom:v.zoom,onZoom:v.onZoom}),(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(h.tU,{children:[(0,e.jsxs)(h.tU.Tab,{selected:v.tabIndex===0,onClick:function(){return v.onTabIndex(0)},children:[(0,e.jsx)(h.In,{name:"table"})," Data View"]},"DataView"),(0,e.jsxs)(h.tU.Tab,{selected:v.tabIndex===1,onClick:function(){return v.onTabIndex(1)},children:[(0,e.jsx)(h.In,{name:"map-marked-alt"})," Map View"]},"MapView")]}),(0,e.jsx)(h.az,{m:2,children:M[v.tabIndex]||(0,e.jsx)(h.az,{textColor:"red",children:"ERROR"})})]})},c=function(v){var g=(0,i.Oc)(),E=g.act,j=g.data,C=v.crew,M=j.isAI;return(0,e.jsxs)(h.XI,{children:[(0,e.jsxs)(h.XI.Row,{header:!0,children:[(0,e.jsx)(h.XI.Cell,{children:"Name"}),(0,e.jsx)(h.XI.Cell,{children:"Status"}),(0,e.jsx)(h.XI.Cell,{children:"Location"})]}),C.map(function(P){return(0,e.jsxs)(h.XI.Row,{children:[(0,e.jsxs)(h.XI.Cell,{children:[P.name," (",P.assignment,")"]}),(0,e.jsxs)(h.XI.Cell,{children:[(0,e.jsx)(h.az,{inline:!0,color:a(P),children:d(P)}),P.sensor_type>=2?(0,e.jsxs)(h.az,{inline:!0,children:["(",(0,e.jsx)(h.az,{inline:!0,color:"red",children:P.brute}),"|",(0,e.jsx)(h.az,{inline:!0,color:"orange",children:P.fire}),"|",(0,e.jsx)(h.az,{inline:!0,color:"green",children:P.tox}),"|",(0,e.jsx)(h.az,{inline:!0,color:"blue",children:P.oxy}),")"]}):null]}),(0,e.jsx)(h.XI.Cell,{children:P.sensor_type===3?M?(0,e.jsx)(h.$n,{fluid:!0,icon:"location-arrow",onClick:function(){return E("track",{track:P.ref})},children:P.area+" ("+P.x+", "+P.y+")"}):P.area+" ("+P.x+", "+P.y+", "+P.z+")":"Not Available"})]},P.ref)})]})},f=function(v){var g=(0,i.Oc)(),E=g.config,j=g.data,C=j.zoomScale,M=j.crewmembers;return(0,e.jsx)(h.az,{height:"526px",mb:"0.5rem",overflow:"hidden",children:(0,e.jsx)(h.tx,{zoomScale:C,onZoom:function(P){return v.onZoom(P)},children:M.filter(function(P){return P.sensor_type===3&&~~P.realZ===~~E.mapZLevel}).map(function(P){return(0,e.jsx)(h.tx.Marker,{x:P.x,y:P.y,zoom:v.zoom,icon:"circle",tooltip:P.name+" ("+P.assignment+")",color:a(P)},P.ref)})})})}},67268:function(y,u,n){"use strict";n.r(u),n.d(u,{CryoStorage:function(){return h},CryoStorageCrew:function(){return x},CryoStorageDefaultError:function(){return a},CryoStorageItems:function(){return d}});var e=n(20462),o=n(61358),t=n(7081),r=n(88569),i=n(15581),h=function(l){var s=(0,t.Oc)().data,c=s.real_name,f=s.allow_items,v=(0,o.useState)(0),g=v[0],E=v[1],j=[];return j[0]=(0,e.jsx)(x,{}),j[1]=f?(0,e.jsx)(d,{}):(0,e.jsx)(a,{}),(0,e.jsx)(i.p8,{width:400,height:600,children:(0,e.jsxs)(i.p8.Content,{scrollable:!0,children:[(0,e.jsxs)(r.tU,{children:[(0,e.jsx)(r.tU.Tab,{selected:g===0,onClick:function(){return E(0)},children:"Crew"}),!!f&&(0,e.jsx)(r.tU.Tab,{selected:g===1,onClick:function(){return E(1)},children:"Items"})]}),(0,e.jsxs)(r.IC,{info:!0,children:["Welcome, ",c,"."]}),j[g]]})})},x=function(l){var s=(0,t.Oc)().data,c=s.crew;return(0,e.jsx)(r.wn,{title:"Stored Crew",children:c.length&&c.map(function(f){return(0,e.jsx)(r.az,{color:"label",children:f},f)})||(0,e.jsx)(r.az,{color:"good",children:"No crew currently stored."})})},d=function(l){var s=(0,t.Oc)().data,c=s.items;return(0,e.jsx)(r.wn,{title:"Stored Items",children:c.length&&c.map(function(f){return(0,e.jsx)(r.az,{color:"label",children:f},f)})||(0,e.jsx)(r.az,{color:"average",children:"No items stored."})})},a=function(l){return(0,e.jsx)(r.az,{textColor:"red",children:"Disabled"})}},41628:function(y,u,n){"use strict";n.r(u),n.d(u,{CryoContent:function(){return h}});var e=n(20462),o=n(4089),t=n(7081),r=n(88569),i=n(17639),h=function(d){var a=(0,t.Oc)(),l=a.act,s=a.data,c=s.isOperating,f=s.hasOccupant,v=s.occupant,g=s.cellTemperature,E=s.cellTemperatureStatus,j=s.isBeakerLoaded;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.wn,{title:"Occupant",flexGrow:!0,buttons:(0,e.jsx)(r.$n,{icon:"user-slash",onClick:function(){return l("ejectOccupant")},disabled:!f,children:"Eject"}),children:f?(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Occupant",children:v.name||"Unknown"}),(0,e.jsx)(r.Ki.Item,{label:"Health",children:(0,e.jsx)(r.z2,{minValue:0,maxValue:1,value:v.health/v.maxHealth,color:v.health>0?"good":"average",children:(0,e.jsx)(r.zv,{value:v.health,format:function(C){return(0,o.Mg)(C)}})})}),(0,e.jsx)(r.Ki.Item,{label:"Status",color:i.statNames[v.stat][0],children:i.statNames[v.stat][1]}),(0,e.jsx)(r.Ki.Item,{label:"Temperature",children:(0,e.jsx)(r.zv,{value:v.bodyTemperature,format:function(C){return(0,o.Mg)(C)+" K"}})}),(0,e.jsx)(r.Ki.Divider,{}),i.damageTypes.map(function(C,M){return(0,e.jsx)(r.Ki.Item,{label:C.label,children:(0,e.jsx)(r.z2,{value:v[C.type]/100,ranges:{bad:[.01,1/0]},children:(0,e.jsx)(r.zv,{value:v[C.type],format:function(P){return(0,o.Mg)(P)}})})},M)})]}):(0,e.jsx)(r.so,{height:"100%",textAlign:"center",children:(0,e.jsxs)(r.so.Item,{grow:"1",align:"center",color:"label",children:[(0,e.jsx)(r.In,{name:"user-slash",mb:"0.5rem",size:5}),(0,e.jsx)("br",{}),"No occupant detected."]})})}),(0,e.jsx)(r.wn,{title:"Cell",buttons:(0,e.jsx)(r.$n,{icon:"eject",onClick:function(){return l("ejectBeaker")},disabled:!j,children:"Eject Beaker"}),children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Power",children:(0,e.jsx)(r.$n,{icon:"power-off",onClick:function(){return l(c?"switchOff":"switchOn")},selected:c,children:c?"On":"Off"})}),(0,e.jsxs)(r.Ki.Item,{label:"Temperature",color:E,children:[(0,e.jsx)(r.zv,{value:g})," K"]}),(0,e.jsx)(r.Ki.Item,{label:"Beaker",children:(0,e.jsx)(x,{})})]})})]})},x=function(d){var a=(0,t.Oc)(),l=a.act,s=a.data,c=s.isBeakerLoaded,f=s.beakerLabel,v=s.beakerVolume;return c?(0,e.jsxs)(e.Fragment,{children:[f||(0,e.jsx)(r.az,{color:"average",children:"No label"}),(0,e.jsx)(r.az,{color:!v&&"bad",children:v?(0,e.jsx)(r.zv,{value:v,format:function(g){return(0,o.Mg)(g)+" units remaining"}}):"Beaker is empty"})]}):(0,e.jsx)(r.az,{color:"average",children:"No beaker loaded"})}},17639:function(y,u,n){"use strict";n.r(u),n.d(u,{damageTypes:function(){return e},statNames:function(){return o}});var e=[{label:"Resp.",type:"oxyLoss"},{label:"Toxin",type:"toxLoss"},{label:"Brute",type:"bruteLoss"},{label:"Burn",type:"fireLoss"}],o=[["good","Conscious"],["average","Unconscious"],["bad","DEAD"]]},85970:function(y,u,n){"use strict";n.r(u),n.d(u,{Cryo:function(){return r}});var e=n(20462),o=n(15581),t=n(41628),r=function(i){return(0,e.jsx)(o.p8,{width:520,height:470,children:(0,e.jsx)(o.p8.Content,{className:"Layout__content--flexColumn",children:(0,e.jsx)(t.CryoContent,{})})})}},40599:function(y,u,n){"use strict";n.r(u)},39699:function(y,u,n){"use strict";n.r(u),n.d(u,{DNAForensics:function(){return i}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),i=function(h){var x=(0,o.Oc)(),d=x.act,a=x.data,l=a.scan_progress,s=a.scanning,c=a.bloodsamp,f=a.bloodsamp_desc;return(0,e.jsx)(r.p8,{width:540,height:326,children:(0,e.jsxs)(r.p8.Content,{children:[(0,e.jsx)(t.wn,{title:"Status",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n,{selected:s,disabled:!c,icon:"power-off",onClick:function(){return d("scanItem")},children:s?"Halt Scan":"Begin Scan"}),(0,e.jsx)(t.$n,{disabled:!c,icon:"eject",onClick:function(){return d("ejectItem")},children:"Eject Bloodsample"})]}),children:(0,e.jsx)(t.Ki,{children:(0,e.jsx)(t.Ki.Item,{label:"Scan Progress",children:(0,e.jsx)(t.z2,{ranges:{good:[99,1/0],violet:[-1/0,99]},value:l,maxValue:100})})})}),(0,e.jsx)(t.wn,{title:"Blood Sample",children:c&&(0,e.jsxs)(t.az,{children:[c,(0,e.jsx)(t.az,{color:"label",children:f})]})||(0,e.jsx)(t.az,{color:"bad",children:"No blood sample inserted."})})]})})}},63501:function(y,u,n){"use strict";n.r(u),n.d(u,{DNAModifierBlocks:function(){return r}});var e=n(20462),o=n(7081),t=n(88569),r=function(i){for(var h=function(E){for(var j=function(_){var S=_+1;M.push((0,e.jsx)(t.$n,{selected:a===C&&l===S,mb:"0",onClick:function(){return x(c,{block:C,subblock:S})},children:f[E+_]}))},C=E/s+1,M=[],P=0;Pj,icon:"syringe",onClick:function(){return v("injectRejuvenators",{amount:M})},children:M},P)}),(0,e.jsx)(t.$n,{disabled:j<=0,icon:"syringe",onClick:function(){return v("injectRejuvenators",{amount:j})},children:"All"})]}),(0,e.jsxs)(t.Ki.Item,{label:"Beaker",children:[(0,e.jsx)(t.az,{mb:"0.5rem",children:C||"No label"}),j?(0,e.jsxs)(t.az,{color:"good",children:[j," unit",j===1?"":"s"," remaining"]}):(0,e.jsx)(t.az,{color:"bad",children:"Empty"})]})]}):(0,e.jsxs)(t.az,{color:"label",textAlign:"center",my:"25%",children:[(0,e.jsx)(t.In,{name:"exclamation-triangle",size:4}),(0,e.jsx)("br",{}),"No beaker loaded."]})})}},25475:function(y,u,n){"use strict";n.r(u),n.d(u,{DNAModifierMainBuffers:function(){return r}});var e=n(20462),o=n(7081),t=n(88569),r=function(x){var d=(0,o.Oc)().data,a=d.buffers,l=a.map(function(s,c){return(0,e.jsx)(i,{id:c+1,name:"Buffer "+(c+1),buffer:s},c)});return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.wn,{title:"Buffers",children:l}),(0,e.jsx)(h,{})]})},i=function(x){var d=(0,o.Oc)(),a=d.act,l=d.data,s=x.id,c=x.name,f=x.buffer,v=l.isInjectorReady,g=c+(f.data?" - "+f.label:"");return(0,e.jsx)(t.az,{backgroundColor:"rgba(0, 0, 0, 0.33)",mb:"0.5rem",children:(0,e.jsxs)(t.wn,{title:g,mx:"0",lineHeight:"18px",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n.Confirm,{disabled:!f.data,icon:"trash",onClick:function(){return a("bufferOption",{option:"clear",id:s})},children:"Clear"}),(0,e.jsx)(t.$n,{disabled:!f.data,icon:"pen",onClick:function(){return a("bufferOption",{option:"changeLabel",id:s})},children:"Rename"}),(0,e.jsx)(t.$n,{disabled:!f.data||!l.hasDisk,icon:"save",tooltip:"Exports this buffer to the currently loaded data disk.",tooltipPosition:"bottom-end",onClick:function(){return a("bufferOption",{option:"saveDisk",id:s})},children:"Export"})]}),children:[(0,e.jsxs)(t.Ki,{children:[(0,e.jsxs)(t.Ki.Item,{label:"Write",children:[(0,e.jsx)(t.$n,{icon:"arrow-circle-down",mb:"0",onClick:function(){return a("bufferOption",{option:"saveUI",id:s})},children:"Subject U.I"}),(0,e.jsx)(t.$n,{icon:"arrow-circle-down",mb:"0",onClick:function(){return a("bufferOption",{option:"saveUIAndUE",id:s})},children:"Subject U.I and U.E."}),(0,e.jsx)(t.$n,{icon:"arrow-circle-down",mb:"0",onClick:function(){return a("bufferOption",{option:"saveSE",id:s})},children:"Subject S.E."}),(0,e.jsx)(t.$n,{disabled:!l.hasDisk||!l.disk.data,icon:"arrow-circle-down",mb:"0",onClick:function(){return a("bufferOption",{option:"loadDisk",id:s})},children:"From Disk"})]}),!!f.data&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.Ki.Item,{label:"Subject",children:f.owner||(0,e.jsx)(t.az,{color:"average",children:"Unknown"})}),(0,e.jsxs)(t.Ki.Item,{label:"Data Type",children:[f.type==="ui"?"Unique Identifiers":"Structural Enzymes",!!f.ue&&" and Unique Enzymes"]}),(0,e.jsxs)(t.Ki.Item,{label:"Transfer to",children:[(0,e.jsx)(t.$n,{disabled:!v,icon:v?"syringe":"spinner",iconSpin:!v,mb:"0",onClick:function(){return a("bufferOption",{option:"createInjector",id:s})},children:"Injector"}),(0,e.jsx)(t.$n,{disabled:!v,icon:v?"syringe":"spinner",iconSpin:!v,mb:"0",onClick:function(){return a("bufferOption",{option:"createInjector",id:s,block:1})},children:"Block Injector"}),(0,e.jsx)(t.$n,{icon:"user",mb:"0",onClick:function(){return a("bufferOption",{option:"transfer",id:s})},children:"Subject"})]})]})]}),!f.data&&(0,e.jsx)(t.az,{color:"label",mt:"0.5rem",children:"This buffer is empty."})]})})},h=function(x){var d=(0,o.Oc)(),a=d.act,l=d.data,s=l.hasDisk,c=l.disk;return(0,e.jsx)(t.wn,{title:"Data Disk",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n.Confirm,{disabled:!s||!c.data,icon:"trash",onClick:function(){return a("wipeDisk")},children:"Wipe"}),(0,e.jsx)(t.$n,{disabled:!s,icon:"eject",onClick:function(){return a("ejectDisk")},children:"Eject"})]}),children:s?c.data?(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Label",children:c.label?c.label:"No label"}),(0,e.jsx)(t.Ki.Item,{label:"Subject",children:c.owner?c.owner:(0,e.jsx)(t.az,{color:"average",children:"Unknown"})}),(0,e.jsxs)(t.Ki.Item,{label:"Data Type",children:[c.type==="ui"?"Unique Identifiers":"Structural Enzymes",!!c.ue&&" and Unique Enzymes"]})]}):(0,e.jsx)(t.az,{color:"label",children:"Disk is blank."}):(0,e.jsxs)(t.az,{color:"label",textAlign:"center",my:"1rem",children:[(0,e.jsx)(t.In,{name:"save-o",size:4}),(0,e.jsx)("br",{}),"No disk inserted."]})})}},76282:function(y,u,n){"use strict";n.r(u),n.d(u,{DNAModifierOccupant:function(){return i}});var e=n(20462),o=n(7081),t=n(88569),r=n(22724),i=function(h){var x=(0,o.Oc)(),d=x.act,a=x.data,l=a.locked,s=a.hasOccupant,c=a.occupant;return(0,e.jsx)(t.wn,{title:"Occupant",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.az,{color:"label",inline:!0,mr:"0.5rem",children:"Door Lock:"}),(0,e.jsx)(t.$n,{disabled:!s,selected:l,icon:l?"toggle-on":"toggle-off",onClick:function(){return d("toggleLock")},children:l?"Engaged":"Disengaged"}),(0,e.jsx)(t.$n,{disabled:!s||l,icon:"user-slash",onClick:function(){return d("ejectOccupant")},children:"Eject"})]}),children:s?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.az,{children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Name",children:c.name}),(0,e.jsx)(t.Ki.Item,{label:"Health",children:(0,e.jsx)(t.z2,{minValue:0,maxValue:1,value:c.health/c.maxHealth,ranges:{good:[.5,1/0],average:[0,.5],bad:[-1/0,0]}})}),(0,e.jsx)(t.Ki.Item,{label:"Status",color:r.stats[c.stat][0],children:r.stats[c.stat][1]}),(0,e.jsx)(t.Ki.Divider,{})]})}),h.isDNAInvalid?(0,e.jsxs)(t.az,{color:"bad",children:[(0,e.jsx)(t.In,{name:"exclamation-circle"}),"\xA0 The occupant's DNA structure is ruined beyond recognition, please insert a subject with an intact DNA structure."]}):(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Radiation",children:(0,e.jsx)(t.z2,{minValue:0,maxValue:1,value:c.radiationLevel/100,color:"average"})}),(0,e.jsx)(t.Ki.Item,{label:"Unique Enzymes",children:a.occupant.uniqueEnzymes?a.occupant.uniqueEnzymes:(0,e.jsxs)(t.az,{color:"bad",children:[(0,e.jsx)(t.In,{name:"exclamation-circle"}),"\xA0 Unknown"]})})]})]}):(0,e.jsx)(t.az,{color:"label",children:"Cell unoccupied."})})}},22724:function(y,u,n){"use strict";n.r(u),n.d(u,{operations:function(){return o},rejuvenatorsDoses:function(){return t},stats:function(){return e}});var e=[["good","Alive"],["average","Unconscious"],["bad","DEAD"]],o=[["ui","Modify U.I.","dna"],["se","Modify S.E.","dna"],["buffer","Transfer Buffers","syringe"],["rejuvenators","Rejuvenators","flask"]],t=[5,10,20,30,50]},62343:function(y,u,n){"use strict";n.r(u),n.d(u,{DNAModifier:function(){return d}});var e=n(20462),o=n(7081),t=n(15581),r=n(86471),i=n(11619),h=n(89100),x=n(76282),d=function(a){var l=(0,o.Oc)().data,s=l.irradiating,c=l.occupant,f=!c.isViableSubject||!c.uniqueIdentity||!c.structuralEnzymes;return(0,e.jsxs)(t.p8,{width:660,height:870,children:[(0,e.jsx)(r.ComplexModal,{}),s&&(0,e.jsx)(i.DNAModifierIrradiating,{duration:s}),(0,e.jsxs)(t.p8.Content,{className:"Layout__content--flexColumn",children:[(0,e.jsx)(x.DNAModifierOccupant,{isDNAInvalid:f}),(0,e.jsx)(h.DNAModifierMain,{isDNAInvalid:f})]})]})}},14512:function(y,u,n){"use strict";n.r(u)},80603:function(y,u,n){"use strict";n.r(u),n.d(u,{DestinationTagger:function(){return i}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),i=function(h){var x=(0,o.Oc)(),d=x.act,a=x.data,l=a.currTag,s=a.taggerLevels,c=s===void 0?[]:s,f=a.taggerLocs,v=c.filter(function(g,E){return E===c.findIndex(function(j){return g.location===j.location})});return(0,e.jsx)(r.p8,{width:450,height:310,children:(0,e.jsx)(r.p8.Content,{scrollable:!0,children:(0,e.jsx)(t.wn,{title:"Tagger Locations",children:v.map(function(g){return(0,e.jsx)(t.wn,{title:g.location,children:(0,e.jsx)(t.so,{wrap:"wrap",spacing:1,justify:"center",children:f.map(function(E){return g.z===E.level&&(0,e.jsx)(t.so.Item,{children:(0,e.jsx)(t.$n,{icon:l===E.tag?"check-square-o":"square-o",selected:l===E.tag,onClick:function(){return d("set_tag",{tag:E.tag})},children:E.tag})},E.tag)})})},g.location)})})})})}},17956:function(y,u,n){"use strict";n.r(u),n.d(u,{DiseaseSplicer:function(){return i}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),i=function(d){var a=(0,o.Oc)(),l=a.act,s=a.data,c=s.busy;return(0,e.jsx)(r.p8,{width:400,height:600,children:(0,e.jsx)(r.p8.Content,{scrollable:!0,children:c?(0,e.jsx)(t.wn,{title:"The Splicer is currently busy.",color:"bad",children:(0,e.jsx)("center",{children:(0,e.jsx)(t.az,{color:"bad",children:c})})}):(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(h,{}),(0,e.jsx)(x,{})]})})})},h=function(d){var a=(0,o.Oc)(),l=a.act,s=a.data,c=s.dish_inserted,f=s.effects,v=f===void 0?[]:f,g=s.info,E=s.growth,j=s.affected_species;return(0,e.jsxs)(t.wn,{title:"Virus Dish",buttons:(0,e.jsx)(t.$n,{icon:"eject",disabled:!c,onClick:function(){return l("eject")},children:"Eject Dish"}),children:[(0,e.jsx)(t.Ki,{children:(0,e.jsx)(t.Ki.Item,{label:"Growth Density",children:(0,e.jsx)(t.z2,{minValue:0,maxValue:100,ranges:{good:[50,1/0],average:[25,50],bad:[-1/0,25]},value:E})})}),g?(0,e.jsx)(t.wn,{children:(0,e.jsx)(t.az,{color:"bad",children:g})}):(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.wn,{title:"Symptoms",children:v.length>0?v.map(function(C){return(0,e.jsxs)(t.az,{color:"label",children:["(",C.stage,") ",C.name," ",C.badness>1?"Dangerous!":null]},C.stage)}):(0,e.jsx)(t.az,{children:"No virus sample loaded."})}),(0,e.jsx)(t.wn,{title:"Affected Species",color:"label",children:!j||!j.length?"None":j.sort().join(", ")}),(0,e.jsxs)(t.wn,{title:"Reverse Engineering",children:[(0,e.jsx)(t.az,{color:"bad",mb:1,children:(0,e.jsx)("i",{children:"CAUTION: Reverse engineering will destroy the viral sample."})}),!!v.length&&v.map(function(C){return(0,e.jsx)(t.$n,{icon:"exchange-alt",onClick:function(){return l("grab",{grab:C.reference})},children:C.stage},C.stage)}),(0,e.jsx)(t.$n,{icon:"exchange-alt",onClick:function(){return l("affected_species")},children:"Species"})]})]})]})},x=function(d){var a=(0,o.Oc)(),l=a.act,s=a.data,c=s.buffer,f=s.species_buffer,v=s.info;return(0,e.jsxs)(t.wn,{title:"Storage",children:[(0,e.jsx)(t.Ki,{children:(0,e.jsx)(t.Ki.Item,{label:"Memory Buffer",children:c?(0,e.jsxs)(t.az,{children:[c.name," (",c.stage,")"]}):f?(0,e.jsx)(t.az,{children:f}):"Empty"})}),(0,e.jsx)(t.$n,{mt:1,icon:"save",disabled:!c&&!f,onClick:function(){return l("disk")},children:"Save To Disk"}),c?(0,e.jsxs)(t.az,{children:[(0,e.jsx)(t.$n,{icon:"pen",disabled:c.stage>1,onClick:function(){return l("splice",{splice:1})},children:"Splice #1"}),(0,e.jsx)(t.$n,{icon:"pen",disabled:c.stage>2,onClick:function(){return l("splice",{splice:2})},children:"Splice #2"}),(0,e.jsx)(t.$n,{icon:"pen",disabled:c.stage>3,onClick:function(){return l("splice",{splice:3})},children:"Splice #3"}),(0,e.jsx)(t.$n,{icon:"pen",disabled:c.stage>4,onClick:function(){return l("splice",{splice:4})},children:"Splice #4"})]}):f?(0,e.jsx)(t.az,{children:(0,e.jsx)(t.$n,{icon:"pen",disabled:!f||!!v,onClick:function(){return l("splice",{splice:5})},children:"Splice Species"})}):null]})}},4843:function(y,u,n){"use strict";n.r(u),n.d(u,{DishIncubator:function(){return h}});var e=n(20462),o=n(7081),t=n(88569),r=n(41242),i=n(15581),h=function(x){var d=(0,o.Oc)(),a=d.act,l=d.data,s=l.on,c=l.system_in_use,f=l.food_supply,v=l.radiation,g=l.growth,E=l.toxins,j=l.chemicals_inserted,C=l.can_breed_virus,M=l.chemical_volume,P=l.max_chemical_volume,_=l.dish_inserted,S=l.blood_already_infected,T=l.virus,b=l.analysed,L=l.infection_rate;return(0,e.jsx)(i.p8,{width:400,height:600,children:(0,e.jsxs)(i.p8.Content,{scrollable:!0,children:[(0,e.jsxs)(t.wn,{title:"Environmental Conditions",buttons:(0,e.jsx)(t.$n,{icon:"power-off",selected:s,onClick:function(){return a("power")},children:s?"On":"Off"}),children:[(0,e.jsxs)(t.so,{spacing:1,mb:1,children:[(0,e.jsx)(t.so.Item,{grow:1,children:(0,e.jsx)(t.$n,{fluid:!0,icon:"radiation",onClick:function(){return a("rad")},children:"Add Radiation"})}),(0,e.jsx)(t.so.Item,{grow:1,children:(0,e.jsx)(t.$n.Confirm,{fluid:!0,color:"red",icon:"trash",confirmIcon:"trash",disabled:!c,onClick:function(){return a("flush")},children:"Flush System"})})]}),(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Virus Food",children:(0,e.jsx)(t.z2,{minValue:0,maxValue:100,ranges:{good:[40,1/0],average:[20,40],bad:[-1/0,20]},value:f})}),(0,e.jsx)(t.Ki.Item,{label:"Radiation Level",children:(0,e.jsxs)(t.z2,{minValue:0,maxValue:100,color:v>=50?"bad":g>=25?"average":"good",value:v,children:[(0,r.qQ)(v*1e4)," \xB5Sv"]})}),(0,e.jsx)(t.Ki.Item,{label:"Toxicity",children:(0,e.jsx)(t.z2,{minValue:0,maxValue:100,ranges:{bad:[50,1/0],average:[25,50],good:[-1/0,25]},value:E})})]})]}),(0,e.jsx)(t.wn,{title:C?"Vial":"Chemicals",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n,{icon:"eject",disabled:!j,onClick:function(){return a("ejectchem")},children:"Eject "+(C?"Vial":"Chemicals")}),(0,e.jsx)(t.$n,{icon:"virus",disabled:!C,onClick:function(){return a("virus")},children:"Breed Virus"})]}),children:j&&(0,e.jsx)(t.az,{children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Volume",children:(0,e.jsxs)(t.z2,{minValue:0,maxValue:P,value:M,children:[M,"/",P]})}),(0,e.jsxs)(t.Ki.Item,{label:"Breeding Environment",color:C?"good":"average",children:[_?C?"Suitable":"No hemolytic samples detected":"N/A",S?(0,e.jsx)(t.az,{color:"bad",children:"CAUTION: Viral infection detected in blood sample."}):null]})]})})||(0,e.jsx)(t.az,{color:"average",children:"No chemicals inserted."})}),(0,e.jsx)(t.wn,{title:"Virus Dish",buttons:(0,e.jsx)(t.$n,{icon:"eject",disabled:!_,onClick:function(){return a("ejectdish")},children:"Eject Dish"}),children:_?T?(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Growth Density",children:(0,e.jsx)(t.z2,{minValue:0,maxValue:100,ranges:{good:[50,1/0],average:[25,50],bad:[-1/0,25]},value:g})}),(0,e.jsx)(t.Ki.Item,{label:"Infection Rate",children:b?L:"Unknown."})]}):(0,e.jsx)(t.az,{color:"bad",children:"No virus detected."}):(0,e.jsx)(t.az,{color:"average",children:"No dish loaded."})})]})})}},43978:function(y,u,n){"use strict";n.r(u),n.d(u,{DisposalBin:function(){return i}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),i=function(h){var x=(0,o.Oc)(),d=x.act,a=x.data,l=a.mode,s=a.pressure,c=a.isAI,f=a.panel_open,v=a.flushing,g,E;return l===2?(g="good",E="Ready"):l<=0?(g="bad",E="N/A"):l===1?(g="average",E="Pressurizing"):(g="average",E="Idle"),(0,e.jsx)(r.p8,{width:300,height:250,children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsxs)(t.wn,{children:[(0,e.jsx)(t.az,{bold:!0,m:1,children:"Status"}),(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"State",color:g,children:E}),(0,e.jsx)(t.Ki.Item,{label:"Pressure",children:(0,e.jsx)(t.z2,{ranges:{bad:[-1/0,0],average:[0,99],good:[99,1/0]},value:s,minValue:0,maxValue:100})})]}),(0,e.jsx)(t.az,{bold:!0,m:1,children:"Controls"}),(0,e.jsxs)(t.Ki,{children:[(0,e.jsxs)(t.Ki.Item,{label:"Handle",children:[(0,e.jsx)(t.$n,{icon:"toggle-off",disabled:c||f,selected:v?null:!0,onClick:function(){return d("disengageHandle")},children:"Disengaged"}),(0,e.jsx)(t.$n,{icon:"toggle-on",disabled:c||f,selected:v?!0:null,onClick:function(){return d("engageHandle")},children:"Engaged"})]}),(0,e.jsxs)(t.Ki.Item,{label:"Power",children:[(0,e.jsx)(t.$n,{icon:"toggle-off",disabled:l===-1,selected:l?null:!0,onClick:function(){return d("pumpOff")},children:"Off"}),(0,e.jsx)(t.$n,{icon:"toggle-on",disabled:l===-1,selected:l?!0:null,onClick:function(){return d("pumpOn")},children:"On"})]}),(0,e.jsx)(t.Ki.Item,{label:"Eject",children:(0,e.jsx)(t.$n,{icon:"sign-out-alt",disabled:c,onClick:function(){return d("eject")},children:"Eject Contents"})})]})]})})})}},16381:function(y,u,n){"use strict";n.r(u),n.d(u,{DroneConsole:function(){return i}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),i=function(h){var x=(0,o.Oc)(),d=x.act,a=x.data,l=a.drones,s=a.areas,c=a.selected_area,f=a.fabricator,v=a.fabPower;return(0,e.jsx)(r.p8,{width:600,height:350,children:(0,e.jsxs)(r.p8.Content,{scrollable:!0,children:[(0,e.jsx)(t.wn,{title:"Drone Fabricator",buttons:(0,e.jsx)(t.$n,{disabled:!f,selected:v,icon:"power-off",onClick:function(){return d("toggle_fab")},children:v?"Enabled":"Disabled"}),children:f?(0,e.jsx)(t.az,{color:"good",children:"Linked."}):(0,e.jsxs)(t.az,{color:"bad",children:["Fabricator not detected.",(0,e.jsx)(t.$n,{icon:"sync",onClick:function(){return d("search_fab")},children:"Search for Fabricator"})]})}),(0,e.jsxs)(t.wn,{title:"Request Drone",children:[(0,e.jsx)(t.ms,{autoScroll:!1,options:s?s.sort():[],selected:c,width:"100%",onSelected:function(g){return d("set_dcall_area",{area:g})}}),(0,e.jsx)(t.$n,{icon:"share-square",onClick:function(){return d("ping")},children:"Send Ping"})]}),(0,e.jsx)(t.wn,{title:"Maintenance Units",children:l&&l.length?(0,e.jsx)(t.Ki,{children:l.map(function(g){return(0,e.jsx)(t.Ki.Item,{label:g.name,buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n,{icon:"sync",onClick:function(){return d("resync",{ref:g.ref})},children:"Resync"}),(0,e.jsx)(t.$n.Confirm,{icon:"exclamation-triangle",color:"red",onClick:function(){return d("shutdown",{ref:g.ref})},children:"Shutdown"})]}),children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Location",children:g.loc}),(0,e.jsxs)(t.Ki.Item,{label:"Charge",children:[g.charge," / ",g.maxCharge]}),(0,e.jsx)(t.Ki.Item,{label:"Active",children:g.active?"Yes":"No"})]})},g.name)})}):(0,e.jsx)(t.az,{color:"bad",children:"No drones detected."})})]})})}},27133:function(y,u,n){"use strict";n.r(u),n.d(u,{AirlockConsoleAdvanced:function(){return i}});var e=n(20462),o=n(7081),t=n(88569),r=n(64894),i=function(h){var x=function(C){return C<80||C>120?"bad":C<95||C>110?"average":"good"},d=(0,o.Oc)(),a=d.act,l=d.data,s=l.external_pressure,c=l.chamber_pressure,f=l.internal_pressure,v=l.processing,g={external_pressure:s,internal_pressure:f,chamber_pressure:c},E=[{minValue:0,maxValue:202,value:s,label:"External Pressure",textValue:s+" kPa",color:x},{minValue:0,maxValue:202,value:c,label:"Chamber Pressure",textValue:c+" kPa",color:x},{minValue:0,maxValue:202,value:f,label:"Internal Pressure",textValue:f+" kPa",color:x}];return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.StatusDisplay,{bars:E}),(0,e.jsxs)(t.wn,{title:"Controls",children:[(0,e.jsx)(r.StandardControls,{pressure_range:g}),(0,e.jsxs)(t.az,{children:[(0,e.jsx)(t.$n,{icon:"sync",onClick:function(){return a("purge")},children:"Purge"}),(0,e.jsx)(t.$n,{icon:"lock-open",onClick:function(){return a("secure")},children:"Secure"})]}),(0,e.jsx)(t.az,{children:(0,e.jsx)(t.$n,{disabled:!v,icon:"ban",color:"bad",onClick:function(){return a("abort")},children:"Abort"})})]})]})}},34012:function(y,u,n){"use strict";n.r(u),n.d(u,{AirlockConsoleDocking:function(){return i}});var e=n(20462),o=n(7081),t=n(88569),r=n(64894),i=function(h){var x=(0,o.Oc)(),d=x.act,a=x.data,l=a.interior_status,s=a.exterior_status,c=a.chamber_pressure,f=a.airlock_disabled,v=a.override_enabled,g=a.docking_status,E=a.processing,j={interior_status:l,exterior_status:s},C=[{minValue:0,maxValue:202,value:c,label:"Chamber Pressure",textValue:c+" kPa",color:function(M){return M<80||M>120?"bad":M<95||M>110?"average":"good"}}];return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.wn,{title:"Dock",buttons:f||v?(0,e.jsx)(t.$n,{icon:"exclamation-triangle",color:v?"red":"",onClick:function(){return d("toggle_override")},children:"Override"}):null,children:(0,e.jsx)(r.DockStatus,{docking_status:g,override_enabled:v})}),(0,e.jsx)(r.StatusDisplay,{bars:C}),(0,e.jsxs)(t.wn,{title:"Controls",children:[(0,e.jsx)(r.StandardControls,{status_range:j}),(0,e.jsx)(t.az,{children:(0,e.jsx)(t.$n,{disabled:!E,icon:"ban",color:"bad",onClick:function(){return d("abort")},children:"Abort"})})]})]})}},29935:function(y,u,n){"use strict";n.r(u),n.d(u,{AirlockConsolePhoron:function(){return i}});var e=n(20462),o=n(7081),t=n(88569),r=n(64894),i=function(h){var x=(0,o.Oc)(),d=x.act,a=x.data,l=a.chamber_pressure,s=a.chamber_phoron,c=a.interior_status,f=a.exterior_status,v=a.processing,g={interior_status:c,exterior_status:f},E=[{minValue:0,maxValue:202,value:l,label:"Chamber Pressure",textValue:l+" kPa",color:function(j){return j<80||j>120?"bad":j<95||j>110?"average":"good"}},{minValue:0,maxValue:100,value:s,label:"Chamber Phoron",textValue:s+" mol",color:function(j){return j>5?"bad":j>.5?"average":"good"}}];return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.StatusDisplay,{bars:E}),(0,e.jsxs)(t.wn,{title:"Controls",children:[(0,e.jsx)(r.StandardControls,{status_range:g}),(0,e.jsx)(t.az,{children:(0,e.jsx)(t.$n,{disabled:!v,icon:"ban",color:"bad",onClick:function(){return d("abort")},children:"Abort"})})]})]})}},32965:function(y,u,n){"use strict";n.r(u),n.d(u,{AirlockConsoleSimple:function(){return i}});var e=n(20462),o=n(7081),t=n(88569),r=n(64894),i=function(h){var x=(0,o.Oc)(),d=x.act,a=x.data,l=a.exterior_status,s=a.chamber_pressure,c=a.processing,f=a.interior_status,v={interior_status:f,exterior_status:l},g=[{minValue:0,maxValue:202,value:s,label:"Chamber Pressure",textValue:s+" kPa",color:function(E){return E<80||E>120?"bad":E<95||E>110?"average":"good"}}];return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.StatusDisplay,{bars:g}),(0,e.jsxs)(t.wn,{title:"Controls",children:[(0,e.jsx)(r.StandardControls,{status_range:v}),(0,e.jsx)(t.az,{children:(0,e.jsx)(t.$n,{disabled:!c,icon:"ban",color:"bad",onClick:function(){return d("abort")},children:"Abort"})})]})]})}},74390:function(y,u,n){"use strict";n.r(u),n.d(u,{DockingConsoleMulti:function(){return i}});var e=n(20462),o=n(7081),t=n(88569),r=n(64894),i=function(h){var x=(0,o.Oc)().data,d=x.docking_status;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.wn,{title:"Docking Status",children:(0,e.jsx)(r.DockStatus,{docking_status:d,override_enabled:!1})}),(0,e.jsx)(t.wn,{title:"Airlocks",children:x.airlocks.length?(0,e.jsx)(t.Ki,{children:x.airlocks.map(function(a){return(0,e.jsx)(t.Ki.Item,{color:a.override_enabled?"bad":"good",label:a.name,children:a.override_enabled?"OVERRIDE ENABLED":"STATUS OK"},a.name)})}):(0,e.jsx)(t.so,{height:"100%",mt:"0.5em",children:(0,e.jsxs)(t.so.Item,{grow:"1",align:"center",textAlign:"center",color:"bad",children:[(0,e.jsx)(t.In,{name:"door-closed",mb:"0.5rem",size:5}),(0,e.jsx)("br",{}),"No airlocks found."]})})})]})}},75355:function(y,u,n){"use strict";n.r(u),n.d(u,{DockingConsoleSimple:function(){return i}});var e=n(20462),o=n(7081),t=n(88569),r=n(64894),i=function(h){var x=(0,o.Oc)(),d=x.act,a=x.data,l=a.exterior_status,s=a.override_enabled,c=a.docking_status;return(0,e.jsx)(t.wn,{title:"Status",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n,{icon:"exclamation-triangle",disabled:!s,onClick:function(){return d("force_door")},children:"Force exterior door"}),(0,e.jsx)(t.$n,{icon:"exclamation-triangle",color:s?"red":"",onClick:function(){return d("toggle_override")},children:"Override"})]}),children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Dock Status",children:(0,e.jsx)(r.DockStatus,{docking_status:c,override_enabled:s})}),(0,e.jsx)(r.DockingStatus,{state:l.state})]})})}},77506:function(y,u,n){"use strict";n.r(u),n.d(u,{DoorAccessConsole:function(){return r}});var e=n(20462),o=n(7081),t=n(88569),r=function(i){var h=(0,o.Oc)(),x=h.act,d=h.data,a=d.interior_status,l=d.exterior_status,s=a.state==="open"||l.state==="closed",c=l.state==="open"||a.state==="closed";return(0,e.jsx)(t.wn,{title:"Status",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n,{icon:s?"arrow-left":"exclamation-triangle",onClick:function(){x(s?"cycle_ext_door":"force_ext")},children:s?"Cycle To Exterior":"Lock Exterior Door"}),(0,e.jsx)(t.$n,{icon:c?"arrow-right":"exclamation-triangle",onClick:function(){x(c?"cycle_int_door":"force_int")},children:c?"Cycle To Interior":"Lock Interior Door"})]}),children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Exterior Door Status",children:l.state==="closed"?"Locked":"Open"}),(0,e.jsx)(t.Ki.Item,{label:"Interior Door Status",children:a.state==="closed"?"Locked":"Open"})]})})}},64894:function(y,u,n){"use strict";n.r(u),n.d(u,{DockStatus:function(){return l},DockingStatus:function(){return x},EscapePodControls:function(){return a},EscapePodStatus:function(){return h},StandardControls:function(){return i},StatusDisplay:function(){return r}});var e=n(20462),o=n(7081),t=n(88569),r=function(s){var c=s.bars;return(0,e.jsx)(t.wn,{title:"Status",children:(0,e.jsx)(t.Ki,{children:c.map(function(f){return(0,e.jsx)(t.Ki.Item,{label:f.label,children:(0,e.jsx)(t.z2,{color:f.color(f.value),minValue:f.minValue,maxValue:f.maxValue,value:f.value,children:f.textValue})},f.label)})})})},i=function(s){var c=(0,o.Oc)().act,f=s.status_range,v=s.pressure_range,g=s.airlock_disabled,E=f||{},j=E.interior_status,C=E.exterior_status,M=v||{},P=M.external_pressure,_=M.internal_pressure,S=M.chamber_pressure,T=!0;j&&j.state==="open"?T=!1:P&&S&&(T=!(Math.abs(P-S)>5));var b=!0;return C&&C.state==="open"?b=!1:_&&S&&(b=!(Math.abs(_-S)>5)),(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(t.az,{children:[(0,e.jsx)(t.$n,{disabled:g,icon:"arrow-left",onClick:function(){return c("cycle_ext")},children:"Cycle to Exterior"}),(0,e.jsx)(t.$n,{disabled:g,icon:"arrow-right",onClick:function(){return c("cycle_int")},children:"Cycle to Interior"})]}),(0,e.jsxs)(t.az,{children:[(0,e.jsx)(t.$n.Confirm,{disabled:g,color:T?"":"bad",icon:"exclamation-triangle",confirmIcon:"exclamation-triangle",onClick:function(){return c("force_ext")},children:"Force Exterior Door"}),(0,e.jsx)(t.$n.Confirm,{disabled:g,color:b?"":"bad",icon:"exclamation-triangle",confirmIcon:"exclamation-triangle",onClick:function(){return c("force_int")},children:"Force Interior Door"})]})]})},h=function(s){var c=s.exterior_status,f=s.docking_status,v=s.armed,g={docked:(0,e.jsx)(d,{armed:v}),undocking:(0,e.jsx)(t.az,{color:"average",children:"EJECTING-STAND CLEAR!"}),undocked:(0,e.jsx)(t.az,{color:"grey",children:"POD EJECTED"}),docking:(0,e.jsx)(t.az,{color:"good",children:"INITIALIZING..."})};return(0,e.jsx)(t.wn,{children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Escape Pod Status",children:g[f]}),(0,e.jsx)(x,{state:c.state})]})})},x=function(s){var c=s.state,f=[];return f.open=(0,e.jsx)(t.az,{color:"average",children:"OPEN"}),f.unlocked=(0,e.jsx)(t.az,{color:"average",children:"UNSECURED"}),f.locked=(0,e.jsx)(t.az,{color:"good",children:"SECURED"}),(0,e.jsx)(t.Ki.Item,{label:"Docking Hatch",children:f[c]||(0,e.jsx)(t.az,{color:"bad",children:"ERROR"})})},d=function(s){var c=s.armed;return c?(0,e.jsx)(t.az,{color:"average",children:"ARMED"}):(0,e.jsx)(t.az,{color:"good",children:"SYSTEMS OK"})},a=function(s){var c=(0,o.Oc)().act,f=s.docking_status,v=s.override_enabled;return(0,e.jsxs)(t.az,{children:[(0,e.jsx)(t.$n,{disabled:!v,icon:"exclamation-triangle",color:f!=="docked"?"bad":"",onClick:function(){return c("force_door")},children:"Force Exterior Door"}),(0,e.jsx)(t.$n,{selected:v,color:f!=="docked"?"bad":"average",icon:"exclamation-triangle",onClick:function(){return c("toggle_override")},children:"Override"})]})},l=function(s){var c=s.docking_status,f=s.override_enabled,v={docked:(0,e.jsx)(t.az,{color:"good",children:"DOCKED"}),docking:(0,e.jsx)(t.az,{color:"average",children:"DOCKING"}),undocking:(0,e.jsx)(t.az,{color:"average",children:"UNDOCKING"}),undocked:(0,e.jsx)(t.az,{color:"grey",children:"NOT IN USE"})},g=v[c];return f&&(g=(0,e.jsxs)(t.az,{color:"bad",children:[c.toUpperCase(),"-OVERRIDE ENABLED"]})),g}},83783:function(y,u,n){"use strict";n.r(u),n.d(u,{EscapePodBerthConsole:function(){return i}});var e=n(20462),o=n(7081),t=n(88569),r=n(64894),i=function(h){var x=(0,o.Oc)().data,d=x.exterior_status,a=x.docking_status,l=x.armed,s=x.override_enabled;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.EscapePodStatus,{exterior_status:d,docking_status:a,armed:l}),(0,e.jsx)(t.wn,{title:"Controls",children:(0,e.jsx)(r.EscapePodControls,{docking_status:a,override_enabled:s})})]})}},13802:function(y,u,n){"use strict";n.r(u),n.d(u,{EscapePodConsole:function(){return i}});var e=n(20462),o=n(7081),t=n(88569),r=n(64894),i=function(h){var x=(0,o.Oc)(),d=x.act,a=x.data,l=a.exterior_status,s=a.docking_status,c=a.override_enabled,f=a.armed,v=a.can_force;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.EscapePodStatus,{exterior_status:l,docking_status:s,armed:f}),(0,e.jsxs)(t.wn,{title:"Controls",children:[(0,e.jsx)(r.EscapePodControls,{docking_status:s,override_enabled:c}),(0,e.jsxs)(t.az,{children:[(0,e.jsx)(t.$n,{icon:"exclamation-triangle",disabled:f,color:f?"bad":"average",onClick:function(){return d("manual_arm")},children:"ARM"}),(0,e.jsx)(t.$n,{icon:"exclamation-triangle",disabled:!v,color:"bad",onClick:function(){return d("force_launch")},children:"MANUAL EJECT"})]})]})]})}},84323:function(y,u,n){"use strict";n.r(u),n.d(u,{EmbeddedController:function(){return f}});var e=n(20462),o=n(7081),t=n(15581),r=n(27133),i=n(34012),h=n(29935),x=n(32965),d=n(74390),a=n(75355),l=n(77506),s=n(83783),c=n(13802),f=function(v){var g=(0,o.Oc)().data,E=g.internalTemplateName,j={};j.AirlockConsoleAdvanced=(0,e.jsx)(r.AirlockConsoleAdvanced,{}),j.AirlockConsoleSimple=(0,e.jsx)(x.AirlockConsoleSimple,{}),j.AirlockConsolePhoron=(0,e.jsx)(h.AirlockConsolePhoron,{}),j.AirlockConsoleDocking=(0,e.jsx)(i.AirlockConsoleDocking,{}),j.DockingConsoleSimple=(0,e.jsx)(a.DockingConsoleSimple,{}),j.DockingConsoleMulti=(0,e.jsx)(d.DockingConsoleMulti,{}),j.DoorAccessConsole=(0,e.jsx)(l.DoorAccessConsole,{}),j.EscapePodConsole=(0,e.jsx)(c.EscapePodConsole,{}),j.EscapePodBerthConsole=(0,e.jsx)(s.EscapePodBerthConsole,{});var C=j[E];if(!C)throw Error("Unable to find Component for template name: "+E);return(0,e.jsx)(t.p8,{width:450,height:340,children:(0,e.jsx)(t.p8.Content,{children:C})})}},2076:function(y,u,n){"use strict";n.r(u)},26356:function(y,u,n){"use strict";n.r(u),n.d(u,{DisplayDetails:function(){return d},EntityNarrate:function(){return h},EntitySelection:function(){return x},ModeSelector:function(){return a},NarrationInput:function(){return l}});var e=n(20462),o=n(61358),t=n(7081),r=n(88569),i=n(15581),h=function(s){var c=(0,t.Oc)(),f=c.act,v=c.data;return(0,e.jsx)(i.p8,{width:800,height:470,theme:"abstract",children:(0,e.jsx)(i.p8.Content,{scrollable:!0,children:(0,e.jsx)(r.wn,{children:(0,e.jsxs)(r.so,{children:[(0,e.jsx)(r.so.Item,{scrollable:!0,grow:2,fill:!0,children:(0,e.jsx)(r.wn,{scrollable:!0,children:(0,e.jsx)(x,{})})}),(0,e.jsx)(r.so.Item,{grow:.25,fill:!0,children:(0,e.jsx)(r.cG,{vertical:!0})}),(0,e.jsx)(r.so.Item,{grow:6.75,fill:!0,children:(0,e.jsx)(r.wn,{children:(0,e.jsxs)(r.so,{direction:"column",justify:"space-between",children:[(0,e.jsx)(r.so.Item,{Flex:!0,children:(0,e.jsx)(r.wn,{title:"Details",children:(0,e.jsx)(d,{})})}),(0,e.jsx)(r.so.Item,{Flex:!0,children:(0,e.jsx)(r.wn,{title:"Select Behaviour",children:(0,e.jsx)(a,{})})}),(0,e.jsx)(r.so.Item,{Flex:!0,children:(0,e.jsx)(l,{})})]})})})]})})})})},x=function(s){var c=(0,t.Oc)(),f=c.act,v=c.data,g=v.selection_mode,E=v.multi_id_selection,j=v.entity_names;return(0,e.jsx)(r.so,{direction:"column",grow:!0,children:(0,e.jsx)(r.so.Item,{children:(0,e.jsx)(r.wn,{title:"Choose!",buttons:(0,e.jsx)(r.$n,{selected:g,onClick:function(){return f("change_mode_multi")},children:"Multi-Selection"}),children:(0,e.jsx)(r.tU,{vertical:!0,children:j.map(function(C){return(0,e.jsx)(r.tU.Tab,{selected:E.includes(C),onClick:function(){return f("select_entity",{id_selected:C})},children:(0,e.jsx)(r.az,{inline:!0,children:C})},C)})})})})})},d=function(s){var c=(0,t.Oc)(),f=c.act,v=c.data,g=v.selection_mode,E=v.number_mob_selected,j=v.selected_id,C=v.selected_name,M=v.selected_type;return g?(0,e.jsxs)(r.az,{children:[(0,e.jsx)("b",{children:"Number of entities selected:"})," ",E]}):(0,e.jsxs)(r.az,{children:[(0,e.jsx)("b",{children:"Selected ID:"})," ",j," ",(0,e.jsx)("br",{}),(0,e.jsx)("b",{children:"Selected Name:"})," ",C," ",(0,e.jsx)("br",{}),(0,e.jsx)("b",{children:"Selected Type:"})," ",M," ",(0,e.jsx)("br",{})]})},a=function(s){var c=(0,t.Oc)(),f=c.act,v=c.data,g=v.privacy_select,E=v.mode_select;return(0,e.jsxs)(r.so,{direction:"row",children:[(0,e.jsx)(r.so.Item,{grow:!0,children:(0,e.jsx)(r.$n,{onClick:function(){return f("change_mode_privacy")},selected:g,fluid:!0,tooltip:"This button changes whether your narration is loud (any who see/hear) or subtle (range of 1 tile) "+(g?"Click here to disable subtle mode":"Click here to enable subtle mode"),children:g?"Currently: Subtle":"Currently: Loud"})}),(0,e.jsx)(r.so.Item,{grow:!0,children:(0,e.jsx)(r.$n,{onClick:function(){return f("change_mode_narration")},selected:E,fluid:!0,tooltip:"This button sets your narration to talk audiably or emote visibly "+(E?"Click here to emote visibly.":"Click here to talk audiably."),children:E?"Currently: Emoting":"Currently: Talking"})})]})},l=function(s){var c=(0,t.Oc)(),f=c.act,v=c.data,g=(0,o.useState)(""),E=g[0],j=g[1];return(0,e.jsx)(r.wn,{title:"Narration Text",buttons:(0,e.jsx)(r.$n,{onClick:function(){return f("narrate",{message:E})},children:"Send Narration"}),children:(0,e.jsx)(r.so,{children:(0,e.jsx)(r.so.Item,{width:"85%",children:(0,e.jsx)(r.fs,{height:"18rem",onChange:function(C,M){return j(M)},value:E||""})})})})}},63183:function(y,u,n){"use strict";n.r(u),n.d(u,{ExonetNode:function(){return i}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),i=function(h){var x=(0,o.Oc)(),d=x.act,a=x.data,l=a.on,s=a.allowPDAs,c=a.allowCommunicators,f=a.allowNewscasters,v=a.logs;return(0,e.jsx)(r.p8,{width:400,height:400,children:(0,e.jsxs)(r.p8.Content,{scrollable:!0,children:[(0,e.jsx)(t.wn,{title:"Status",buttons:(0,e.jsx)(t.$n,{icon:"power-off",selected:l,onClick:function(){return d("toggle_power")},children:"Power "+(l?"On":"Off")}),children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Incoming PDA Messages",children:(0,e.jsx)(t.$n,{icon:"power-off",selected:s,onClick:function(){return d("toggle_PDA_port")},children:s?"Open":"Closed"})}),(0,e.jsx)(t.Ki.Item,{label:"Incoming Communicators",children:(0,e.jsx)(t.$n,{icon:"power-off",selected:c,onClick:function(){return d("toggle_communicator_port")},children:c?"Open":"Closed"})}),(0,e.jsx)(t.Ki.Item,{label:"Incoming Newscaster Content",children:(0,e.jsx)(t.$n,{icon:"power-off",selected:f,onClick:function(){return d("toggle_newscaster_port")},children:f?"Open":"Closed"})})]})}),(0,e.jsx)(t.wn,{title:"Logging",children:(0,e.jsxs)(t.so,{wrap:"wrap",children:[v.map(function(g,E){return(0,e.jsx)(t.so.Item,{m:"2px",basis:"49%",grow:E%2,children:g},E)}),!v||v.length===0?(0,e.jsx)(t.az,{color:"average",children:"No logs found."}):null]})})]})})}},2858:function(y,u,n){"use strict";n.r(u),n.d(u,{MaterialAmount:function(){return s},Materials:function(){return l}});var e=n(20462),o=n(4089),t=n(65380),r=n(61282),i=n(7081),h=n(88569),x=n(41242),d=n(51890),a=function(c){var f=(0,i.Oc)().act,v=c.material,g=v.name,E=v.removable,j=v.sheets,C=(0,i.QY)("remove_mats_"+g,1),M=C[0],P=C[1];return M>1&&j0});return M.length===0?(0,e.jsxs)(h.az,{textAlign:"center",children:[(0,e.jsx)(h.In,{textAlign:"center",size:5,name:"inbox"}),(0,e.jsx)("br",{}),(0,e.jsx)("b",{children:"No Materials Loaded."})]}):(0,e.jsx)(h.so,{wrap:"wrap",children:M.map(function(P){return(0,e.jsxs)(h.so.Item,{width:"80px",children:[(0,e.jsx)(s,{name:P.name,amount:P.amount,formatsi:!0}),!E&&(0,e.jsx)(h.az,{mt:1,style:{textAlign:"center"},children:(0,e.jsx)(a,{material:P})})]},P.name)||""})})},s=function(c){var f=c.name,v=c.amount,g=c.formatsi,E=c.formatmoney,j=c.color,C=c.style,M="0";return v<1&&v>0?M=(0,o.Mg)(v,2):g?M=(0,x.QL)(v,0):E?M=(0,x.up)(v):M=v.toString(),(0,e.jsxs)(h.so,{direction:"column",align:"center",children:[(0,e.jsx)(h.so.Item,{children:(0,e.jsx)(h.m_,{position:"bottom",content:(0,r.Sn)(f),children:(0,e.jsx)(h.az,{className:(0,t.Ly)(["sheetmaterials32x32",d.MATERIAL_KEYS[f]]),position:"relative",style:C})})}),(0,e.jsx)(h.so.Item,{children:(0,e.jsx)(h.az,{textColor:j,style:{textAlign:"center"},children:M})})]})}},61763:function(y,u,n){"use strict";n.r(u),n.d(u,{PartLists:function(){return a},PartSets:function(){return d}});var e=n(20462),o=n(61358),t=n(7081),r=n(88569),i=n(51890),h=n(42878),x=n(2858),d=function(s){var c=(0,t.Oc)().data,f=c.partSets,v=f===void 0?[]:f,g=c.buildableParts,E=g===void 0?[]:g,j=(0,t.QY)("part_tab",v.length?E[0]:""),C=j[0],M=j[1];return(0,e.jsx)(r.tU,{vertical:!0,children:v.map(function(P){return!!E[P]&&(0,e.jsx)(r.tU.Tab,{selected:P===C,onClick:function(){return M(P)},children:P},P)})})},a=function(s){var c=(0,t.Oc)().data,f=c.partSets,v=f===void 0?[]:f,g=c.buildableParts,E=g===void 0?[]:g,j=s.queueMaterials,C=s.materials,M=(0,t.QY)("part_tab",(0,h.getFirstValidPartSet)(v,E)),P=M[0],_=M[1],S=(0,t.QY)("search_text",""),T=S[0],b=S[1];if(!P||!E[P]){var L=(0,h.getFirstValidPartSet)(v,E);if(L)_(L);else return}var W={Parts:[]},$=[];return T?(0,h.searchFilter)(T,E).forEach(function(z){z.format=(0,h.partCondFormat)(C,j,z),$.push(z)}):(W={Parts:[]},E[P].forEach(function(z){if(z.format=(0,h.partCondFormat)(C,j,z),!z.subCategory){W.Parts.push(z);return}z.subCategory in W||(W[z.subCategory]=[]),W[z.subCategory].push(z)})),(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.wn,{children:(0,e.jsxs)(r.so,{children:[(0,e.jsx)(r.so.Item,{mr:1,children:(0,e.jsx)(r.In,{name:"search"})}),(0,e.jsx)(r.so.Item,{grow:1,children:(0,e.jsx)(r.pd,{fluid:!0,placeholder:"Search for...",value:T,onInput:function(z,w){return b(w)}})})]})}),!!T&&(0,e.jsx)(l,{name:"Search Results",parts:$,forceShow:!0,placeholder:"No matching results..."})||Object.keys(W).map(function(z){return(0,e.jsx)(l,{name:z,parts:W[z]},z)})]})},l=function(s){var c=(0,t.Oc)(),f=c.act,v=c.data,g=v.buildingPart,E=s.parts,j=s.name,C=s.forceShow,M=s.placeholder,P=(0,t.QY)("display_mats",!1),_=P[0];return(!!E.length||C)&&(0,e.jsxs)(r.wn,{title:j,buttons:(0,e.jsx)(r.$n,{disabled:!E.length,color:"good",icon:"plus-circle",onClick:function(){return f("add_queue_set",{part_list:E.map(function(S){return S.id})})},children:"Queue All"}),children:[!E.length&&M,E.map(function(S){return(0,e.jsxs)(o.Fragment,{children:[(0,e.jsxs)(r.so,{align:"center",children:[(0,e.jsx)(r.so.Item,{children:(0,e.jsx)(r.$n,{disabled:!!g||S.format.textColor===i.COLOR_BAD,color:"good",height:"20px",mr:1,icon:"play",onClick:function(){return f("build_part",{id:S.id})}})}),(0,e.jsx)(r.so.Item,{children:(0,e.jsx)(r.$n,{color:"average",height:"20px",mr:1,icon:"plus-circle",onClick:function(){return f("add_queue_part",{id:S.id})}})}),(0,e.jsx)(r.so.Item,{children:(0,e.jsx)(r.az,{inline:!0,textColor:i.COLOR_KEYS[S.format.textColor],children:S.name})}),(0,e.jsx)(r.so.Item,{grow:1}),(0,e.jsx)(r.so.Item,{children:(0,e.jsx)(r.$n,{icon:"question-circle",color:"transparent",height:"20px",tooltip:"Build Time: "+S.printTime+"s. "+(S.desc||""),tooltipPosition:"left"})})]}),_&&(0,e.jsx)(r.so,{mb:2,children:Object.keys(S.cost).map(function(T){return(0,e.jsx)(r.so.Item,{width:"50px",color:i.COLOR_KEYS[S.format[T].color],children:(0,e.jsx)(x.MaterialAmount,{formatmoney:!0,style:{transform:"scale(0.75) translate(0%, 10%)"},name:T,amount:S.cost[T]})},T)})})]},S.name)})]})}},46372:function(y,u,n){"use strict";n.r(u),n.d(u,{Queue:function(){return x}});var e=n(20462),o=n(7081),t=n(88569),r=n(41242),i=n(51890),h=n(2858),x=function(s){var c=(0,o.Oc)(),f=c.act,v=c.data,g=v.isProcessingQueue,E=v.queue,j=E===void 0?[]:E,C=s.queueMaterials,M=s.missingMaterials,P=s.textColors,_=!j||!j.length;return(0,e.jsxs)(t.so,{height:"100%",width:"100%",direction:"column",children:[(0,e.jsx)(t.so.Item,{height:0,grow:1,children:(0,e.jsx)(t.wn,{height:"100%",title:"Queue",overflowY:"auto",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n.Confirm,{disabled:_,color:"bad",icon:"minus-circle",onClick:function(){return f("clear_queue")},children:"Clear Queue"}),!!g&&(0,e.jsx)(t.$n,{disabled:_,icon:"stop",onClick:function(){return f("stop_queue")},children:"Stop"})||(0,e.jsx)(t.$n,{disabled:_,icon:"play",onClick:function(){return f("build_queue")},children:"Build Queue"})]}),children:(0,e.jsxs)(t.so,{direction:"column",height:"100%",children:[(0,e.jsx)(t.so.Item,{children:(0,e.jsx)(l,{})}),(0,e.jsx)(t.so.Item,{children:(0,e.jsx)(a,{textColors:P})})]})})}),!_&&(0,e.jsx)(t.so.Item,{mt:1,children:(0,e.jsx)(t.wn,{title:"Material Cost",children:(0,e.jsx)(d,{queueMaterials:C,missingMaterials:M})})})]})},d=function(s){var c=s.queueMaterials,f=s.missingMaterials;return(0,e.jsx)(t.so,{wrap:"wrap",children:Object.keys(c).map(function(v){return(0,e.jsxs)(t.so.Item,{width:"12%",children:[(0,e.jsx)(h.MaterialAmount,{formatmoney:!0,name:v,amount:c[v]}),!!f[v]&&(0,e.jsx)(t.az,{textColor:"bad",style:{textAlign:"center"},children:(0,r.up)(f[v])})]},v)})})},a=function(s){var c=(0,o.Oc)(),f=c.act,v=c.data,g=s.textColors,E=v.queue,j=E===void 0?[]:E;return!j||!j.length?(0,e.jsx)(e.Fragment,{children:"No parts in queue."}):j.map(function(C,M){return(0,e.jsx)(t.az,{children:(0,e.jsxs)(t.so,{mb:.5,direction:"column",justify:"center",wrap:"wrap",height:"20px",inline:!0,children:[(0,e.jsx)(t.so.Item,{basis:"content",children:(0,e.jsx)(t.$n,{height:"20px",mr:1,icon:"minus-circle",color:"bad",onClick:function(){return f("del_queue_part",{index:M+1})}})}),(0,e.jsx)(t.so.Item,{children:(0,e.jsx)(t.az,{inline:!0,textColor:i.COLOR_KEYS[g[M]],children:C.name})})]})},C.name)})},l=function(s){var c=(0,o.Oc)().data,f=c.buildingPart,v=c.storedPart;if(v)return(0,e.jsx)(t.az,{children:(0,e.jsx)(t.z2,{minValue:0,maxValue:1,value:1,color:"average",children:(0,e.jsxs)(t.so,{children:[(0,e.jsx)(t.so.Item,{children:v}),(0,e.jsx)(t.so.Item,{grow:1}),(0,e.jsx)(t.so.Item,{children:"Fabricator outlet obstructed..."})]})})});if(f){var g=f.name,E=f.duration,j=f.printTime,C=Math.ceil(E/10);return(0,e.jsx)(t.az,{children:(0,e.jsx)(t.z2,{minValue:0,maxValue:j,value:E,children:(0,e.jsxs)(t.so,{children:[(0,e.jsx)(t.so.Item,{children:g}),(0,e.jsx)(t.so.Item,{grow:1}),(0,e.jsx)(t.so.Item,{children:C>=0&&C+"s"||"Dispensing..."})]})})})}}},51890:function(y,u,n){"use strict";n.r(u),n.d(u,{COLOR_AVERAGE:function(){return t},COLOR_BAD:function(){return r},COLOR_KEYS:function(){return h},COLOR_NONE:function(){return o},MATERIAL_KEYS:function(){return e}});var e={steel:"sheet-metal_3",glass:"sheet-glass_3",silver:"sheet-silver_3",graphite:"sheet-puck_3",plasteel:"sheet-plasteel_3",durasteel:"sheet-durasteel_3",verdantium:"sheet-wavy_3",morphium:"sheet-wavy_3",mhydrogen:"sheet-mythril_3",gold:"sheet-gold_3",diamond:"sheet-diamond",supermatter:"sheet-super_3",osmium:"sheet-silver_3",phoron:"sheet-phoron_3",uranium:"sheet-uranium_3",titanium:"sheet-titanium_3",lead:"sheet-adamantine_3",platinum:"sheet-adamantine_3",plastic:"sheet-plastic_3"},o=0,t=1,r=2,i,h=(i={},i[o]=void 0,i[t]="average",i[r]="bad",i)},42878:function(y,u,n){"use strict";n.r(u),n.d(u,{getFirstValidPartSet:function(){return c},materialArrayToObj:function(){return x},partBuildColor:function(){return d},partCondFormat:function(){return a},queueCondFormat:function(){return l},searchFilter:function(){return s}});var e=n(7402),o=n(61282),t=n(51890);function r(f,v){(v==null||v>f.length)&&(v=f.length);for(var g=0,E=new Array(v);g=f.length?{done:!0}:{done:!1,value:f[E++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function x(f){var v={};return f.forEach(function(g){v[g.name]=g.amount}),v}function d(f,v,g){return f>g?{color:t.COLOR_BAD,deficit:f-g}:v>g?{color:t.COLOR_AVERAGE,deficit:f}:f+v>g?{color:t.COLOR_AVERAGE,deficit:f+v-g}:{color:t.COLOR_NONE,deficit:0}}function a(f,v,g){var E={textColor:t.COLOR_NONE};return Object.keys(g.cost).forEach(function(j){E[j]=d(g.cost[j],v[j],f[j]),E[j].color>E.textColor&&(E.textColor=E[j].color)}),E}function l(f,v){var g={},E={},j={},C={};return v&&v.forEach(function(M,P){C[P]=t.COLOR_NONE,Object.keys(M.cost).forEach(function(_){g[_]=g[_]||0,j[_]=j[_]||0,E[_]=d(M.cost[_],g[_],f[_]),E[_].color!==t.COLOR_NONE?C[P]=100?c="Running":!l&&s>0&&(c="DISCHARGING"),(0,e.jsx)(r.p8,{width:500,height:400,children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsx)(t.wn,{title:"Status",buttons:(0,e.jsx)(t.$n.Confirm,{icon:"exclamation-triangle",confirmIcon:"exclamation-triangle",color:"red",confirmContent:l?"This will disable gravity!":"This will enable gravity!",onClick:function(){return d("gentoggle")},children:"Toggle Breaker"}),children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Breaker Setting",children:l?"Generator Enabled":"Generator Disabled"}),(0,e.jsxs)(t.Ki.Item,{label:"Charge Mode",children:["Generator ",c]}),(0,e.jsxs)(t.Ki.Item,{label:"Charge Status",children:[s,"%"]})]})})})})}},88941:function(y,u,n){"use strict";n.r(u),n.d(u,{GuestPass:function(){return h}});var e=n(20462),o=n(7402),t=n(7081),r=n(88569),i=n(15581),h=function(x){var d=(0,t.Oc)(),a=d.act,l=d.data,s=l.area,c=l.giver,f=l.giveName,v=l.reason,g=l.duration,E=l.mode,j=l.log,C=l.uid;return(0,e.jsx)(i.p8,{width:500,height:520,children:(0,e.jsx)(i.p8.Content,{scrollable:!0,children:E===1&&(0,e.jsxs)(r.wn,{title:"Activity Log",buttons:(0,e.jsx)(r.$n,{icon:"scroll",selected:!0,onClick:function(){return a("mode",{mode:0})},children:"Activity Log"}),children:[(0,e.jsx)(r.$n,{icon:"print",onClick:function(){return a("print")},fluid:!0,mb:1,children:"Print"}),(0,e.jsx)(r.wn,{title:"Logs",children:j.length&&j.map(function(M){return(0,e.jsx)("div",{dangerouslySetInnerHTML:{__html:M}},M)})||(0,e.jsx)(r.az,{children:"No logs."})})]})||(0,e.jsxs)(r.wn,{title:"Guest pass terminal #"+C,buttons:(0,e.jsx)(r.$n,{icon:"scroll",onClick:function(){return a("mode",{mode:1})},children:"Activity Log"}),children:[(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Issuing ID",children:(0,e.jsx)(r.$n,{onClick:function(){return a("id")},children:c||"Insert ID"})}),(0,e.jsx)(r.Ki.Item,{label:"Issued To",children:(0,e.jsx)(r.$n,{onClick:function(){return a("giv_name")},children:f})}),(0,e.jsx)(r.Ki.Item,{label:"Reason",children:(0,e.jsx)(r.$n,{onClick:function(){return a("reason")},children:v})}),(0,e.jsx)(r.Ki.Item,{label:"Duration (minutes)",children:(0,e.jsx)(r.$n,{onClick:function(){return a("duration")},children:g})})]}),(0,e.jsx)(r.$n.Confirm,{icon:"check",fluid:!0,onClick:function(){return a("issue")},children:"Issue Pass"}),(0,e.jsx)(r.wn,{title:"Access",children:(0,o.Ul)(s,function(M){return M.area_name}).map(function(M){return(0,e.jsx)(r.$n.Checkbox,{checked:M.on,onClick:function(){return a("access",{access:M.area})},children:M.area_name},M.area)})})]})})})}},52149:function(y,u,n){"use strict";n.r(u),n.d(u,{GyrotronControl:function(){return i},GyrotronControlContent:function(){return h}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),i=function(){return(0,e.jsx)(r.p8,{width:627,height:700,children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsx)(h,{})})})},h=function(x){var d=(0,o.Oc)(),a=d.act,l=d.data,s=l.gyros;return(0,e.jsx)(t.wn,{title:"Gyrotrons",buttons:(0,e.jsx)(t.$n,{icon:"pencil-alt",onClick:function(){return a("set_tag")},children:"Set Tag"}),children:(0,e.jsxs)(t.XI,{children:[(0,e.jsxs)(t.XI.Row,{header:!0,children:[(0,e.jsx)(t.XI.Cell,{children:"Name"}),(0,e.jsx)(t.XI.Cell,{children:"Position"}),(0,e.jsx)(t.XI.Cell,{children:"Status"}),(0,e.jsx)(t.XI.Cell,{children:"Fire Delay"}),(0,e.jsx)(t.XI.Cell,{children:"Strength"})]}),s.map(function(c){return(0,e.jsxs)(t.XI.Row,{children:[(0,e.jsx)(t.XI.Cell,{children:c.name}),(0,e.jsxs)(t.XI.Cell,{children:[c.x,", ",c.y,", ",c.z]}),(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.$n,{icon:"power-off",selected:c.active,disabled:!c.deployed,onClick:function(){return a("toggle_active",{gyro:c.ref})},children:c.active?"Online":"Offline"})}),(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.N6,{width:"60px",size:1.25,color:!!c.active&&"yellow",value:c.fire_delay,unit:"decisecond(s)",minValue:1,maxValue:60,stepPixelSize:1,onDrag:function(f,v){return a("set_rate",{gyro:c.ref,rate:v})}})}),(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.N6,{width:"60px",size:1.25,color:!!c.active&&"yellow",value:c.strength,unit:"penta-dakw",minValue:1,maxValue:50,stepPixelSize:1,onDrag:function(f,v){return a("set_str",{gyro:c.ref,str:v})}})})]},c.name)})]})})}},44791:function(y,u,n){"use strict";n.r(u),n.d(u,{Holodeck:function(){return i}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),i=function(h){var x=(0,o.Oc)(),d=x.act,a=x.data,l=a.supportedPrograms,s=a.restrictedPrograms,c=a.currentProgram,f=a.isSilicon,v=a.safetyDisabled,g=a.emagged,E=a.gravity,j=l;return v&&(j=j.concat(s)),(0,e.jsx)(r.p8,{width:400,height:610,children:(0,e.jsxs)(r.p8.Content,{scrollable:!0,children:[(0,e.jsx)(t.wn,{title:"Programs",children:j.map(function(C){return(0,e.jsx)(t.$n,{color:s.indexOf(C)!==-1?"bad":null,icon:"eye",selected:c===C,fluid:!0,onClick:function(){return d("program",{program:C})},children:C},C)})}),!!f&&(0,e.jsx)(t.wn,{title:"Override",children:(0,e.jsxs)(t.$n,{icon:"exclamation-triangle",fluid:!0,disabled:g,color:v?"good":"bad",onClick:function(){return d("AIoverride")},children:[!!g&&"Error, unable to control. ",v?"Enable Safeties":"Disable Safeties"]})}),(0,e.jsx)(t.wn,{title:"Controls",children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Safeties",children:v?(0,e.jsx)(t.az,{color:"bad",children:"DISABLED"}):(0,e.jsx)(t.az,{color:"good",children:"ENABLED"})}),(0,e.jsx)(t.Ki.Item,{label:"Gravity",children:(0,e.jsx)(t.$n,{icon:"user-astronaut",selected:E,onClick:function(){return d("gravity")},children:E?"Enabled":"Disabled"})})]})})]})})}},83860:function(y,u,n){"use strict";n.r(u),n.d(u,{ICAssembly:function(){return x}});var e=n(20462),o=n(4089),t=n(7081),r=n(88569),i=n(41242),h=n(15581),x=function(a){var l=(0,t.Oc)().data,s=l.total_parts,c=l.max_components,f=l.total_complexity,v=l.max_complexity,g=l.battery_charge,E=l.battery_max,j=l.net_power,C=l.unremovable_circuits,M=l.removable_circuits;return(0,e.jsx)(h.p8,{width:600,height:380,children:(0,e.jsxs)(h.p8.Content,{scrollable:!0,children:[(0,e.jsx)(r.wn,{title:"Status",children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Space in Assembly",children:(0,e.jsx)(r.z2,{ranges:{good:[0,.25],average:[.5,.75],bad:[.75,1]},value:s/c,maxValue:1,children:s+" / "+c+" ("+(0,o.Mg)(s/c*100,1)+"%)"})}),(0,e.jsx)(r.Ki.Item,{label:"Complexity",children:(0,e.jsx)(r.z2,{ranges:{good:[0,.25],average:[.5,.75],bad:[.75,1]},value:f/v,maxValue:1,children:f+" / "+v+" ("+(0,o.Mg)(f/v*100,1)+"%)"})}),(0,e.jsx)(r.Ki.Item,{label:"Cell Charge",children:g&&(0,e.jsx)(r.z2,{ranges:{bad:[0,.25],average:[.5,.75],good:[.75,1]},value:g/E,maxValue:1,children:g+" / "+E+" ("+(0,o.Mg)(g/E*100,1)+"%)"})||(0,e.jsx)(r.az,{color:"bad",children:"No cell detected."})}),(0,e.jsx)(r.Ki.Item,{label:"Net Energy",children:j===0&&"0 W/s"||(0,e.jsx)(r.zv,{value:j,format:function(P){return"-"+(0,i.d5)(Math.abs(P))+"/s"}})})]})}),C.length&&(0,e.jsx)(d,{title:"Built-in Components",circuits:C})||null,M.length&&(0,e.jsx)(d,{title:"Removable Components",circuits:M})||null]})})},d=function(a){var l=(0,t.Oc)().act,s=a.title,c=a.circuits;return(0,e.jsx)(r.wn,{title:s,children:(0,e.jsx)(r.Ki,{children:c.map(function(f){return(0,e.jsxs)(r.Ki.Item,{label:f.name,children:[(0,e.jsx)(r.$n,{icon:"eye",onClick:function(){return l("open_circuit",{ref:f.ref})},children:"View"}),(0,e.jsx)(r.$n,{icon:"eye",onClick:function(){return l("rename_circuit",{ref:f.ref})},children:"Rename"}),(0,e.jsx)(r.$n,{icon:"eye",onClick:function(){return l("scan_circuit",{ref:f.ref})},children:"Debugger Scan"}),(0,e.jsx)(r.$n,{icon:"eye",onClick:function(){return l("remove_circuit",{ref:f.ref})},children:"Remove"}),(0,e.jsx)(r.$n,{icon:"eye",onClick:function(){return l("bottom_circuit",{ref:f.ref})},children:"Move to Bottom"})]},f.ref)})})})}},23343:function(y,u,n){"use strict";n.r(u),n.d(u,{ICCircuit:function(){return x}});var e=n(20462),o=n(61282),t=n(7081),r=n(88569),i=n(41242),h=n(15581),x=function(l){var s=(0,t.Oc)(),c=s.act,f=s.data,v=f.desc,g=f.displayed_name,E=f.complexity,j=f.power_draw_idle,C=f.power_draw_per_use,M=f.extended_desc,P=f.inputs,_=f.outputs,S=f.activators;return(0,e.jsx)(h.p8,{width:600,height:400,title:g,children:(0,e.jsxs)(h.p8.Content,{scrollable:!0,children:[(0,e.jsxs)(r.wn,{title:"Stats",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.$n,{onClick:function(){return c("rename")},children:"Rename"}),(0,e.jsx)(r.$n,{onClick:function(){return c("scan")},children:"Scan with Device"}),(0,e.jsx)(r.$n,{onClick:function(){return c("remove")},children:"Remove"})]}),children:[(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Complexity",children:E}),j&&(0,e.jsx)(r.Ki.Item,{label:"Power Draw (Idle)",children:(0,i.d5)(j)})||null,C&&(0,e.jsx)(r.Ki.Item,{label:"Power Draw (Active)",children:(0,i.d5)(C)})||null]}),M]}),(0,e.jsxs)(r.wn,{title:"Circuit",children:[(0,e.jsxs)(r.so,{textAlign:"center",spacing:1,children:[P.length&&(0,e.jsx)(r.so.Item,{grow:1,children:(0,e.jsx)(r.wn,{title:"Inputs",children:(0,e.jsx)(d,{list:P})})})||null,(0,e.jsx)(r.so.Item,{basis:P.length&&_.length?"33%":P.length||_.length?"45%":"100%",children:(0,e.jsx)(r.wn,{title:g,mb:1,children:(0,e.jsx)(r.az,{children:v})})}),_.length&&(0,e.jsx)(r.so.Item,{grow:1,children:(0,e.jsx)(r.wn,{title:"Outputs",children:(0,e.jsx)(d,{list:_})})})||null]}),(0,e.jsx)(r.wn,{title:"Triggers",children:S.map(function(T){return(0,e.jsxs)(r.Ki.Item,{label:T.name,children:[(0,e.jsx)(r.$n,{onClick:function(){return c("pin_name",{pin:T.ref})},children:T.pulse_out?"":""}),(0,e.jsx)(a,{pin:T})]},T.name)})})]})]})})},d=function(l){var s=(0,t.Oc)().act,c=l.list;return c.map(function(f){return(0,e.jsxs)(r.az,{children:[(0,e.jsxs)(r.$n,{onClick:function(){return s("pin_name",{pin:f.ref})},children:[(0,o.jT)(f.type),": ",f.name]}),(0,e.jsx)(r.$n,{onClick:function(){return s("pin_data",{pin:f.ref})},children:f.data}),(0,e.jsx)(a,{pin:f})]},f.ref)})},a=function(l){var s=(0,t.Oc)().act,c=l.pin;return c.linked.map(function(f){return(0,e.jsxs)(r.az,{inline:!0,children:[(0,e.jsx)(r.$n,{onClick:function(){return s("pin_unwire",{pin:c.ref,link:f.ref})},children:f.name}),"@\xA0",(0,e.jsx)(r.$n,{onClick:function(){return s("examine",{ref:f.holder_ref})},children:f.holder_name})]},f.ref)})}},87134:function(y,u,n){"use strict";n.r(u),n.d(u,{ICDetailer:function(){return h}});var e=n(20462),o=n(61282),t=n(7081),r=n(88569),i=n(15581),h=function(x){var d=(0,t.Oc)(),a=d.act,l=d.data,s=l.detail_color,c=l.color_list;return(0,e.jsx)(i.p8,{width:420,height:254,children:(0,e.jsx)(i.p8.Content,{children:(0,e.jsx)(r.wn,{children:Object.keys(c).map(function(f,v){return(0,e.jsx)(r.$n,{ml:0,mr:0,mb:-.4,mt:0,tooltip:(0,o.Sn)(f),tooltipPosition:v%6===5?"left":"right",height:"64px",width:"64px",onClick:function(){return a("change_color",{color:f})},style:c[f]===s?{border:"4px solid black",borderRadius:"0"}:{borderRadius:"0"},backgroundColor:c[f]},f)})})})})}},92306:function(y,u,n){"use strict";n.r(u),n.d(u,{ICPrinter:function(){return h}});var e=n(20462),o=n(7402),t=n(7081),r=n(88569),i=n(15581),h=function(a){var l=(0,t.Oc)().data,s=l.metal,c=l.max_metal,f=l.metal_per_sheet,v=l.upgraded,g=l.can_clone;return(0,e.jsx)(i.p8,{width:600,height:630,children:(0,e.jsxs)(i.p8.Content,{scrollable:!0,children:[(0,e.jsxs)(r.wn,{title:"Status",children:[(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Metal",children:(0,e.jsxs)(r.z2,{value:s,maxValue:c,children:[s/f," / ",c/f," sheets"]})}),(0,e.jsx)(r.Ki.Item,{label:"Circuits Available",children:v?"Advanced":"Regular"}),(0,e.jsx)(r.Ki.Item,{label:"Assembly Cloning",children:g?"Available":"Unavailable"})]}),(0,e.jsx)(r.az,{mt:1,children:"Note: A red component name means that the printer must be upgraded to create that component."})]}),(0,e.jsx)(d,{})]})})};function x(a,l){return!(!a.can_build||a.cost>l.metal)}var d=function(a){var l=(0,t.Oc)(),s=l.act,c=l.data,f=c.categories,v=(0,t.QY)("categoryTarget",""),g=v[0],E=v[1],j=(0,o.pb)(f,function(C){return C.name===g})[0];return(0,e.jsx)(r.wn,{title:"Circuits",children:(0,e.jsxs)(r.BJ,{fill:!0,children:[(0,e.jsx)(r.BJ.Item,{mr:2,children:(0,e.jsx)(r.tU,{vertical:!0,children:(0,o.Ul)(f,function(C){return C.name}).map(function(C){return(0,e.jsx)(r.tU.Tab,{selected:g===C.name,onClick:function(){return E(C.name)},children:C.name},C.name)})})}),(0,e.jsx)(r.BJ.Item,{children:j?(0,e.jsx)(r.wn,{children:(0,e.jsx)(r.Ki,{children:(0,o.Ul)(j.items,function(C){return C.name}).map(function(C){return(0,e.jsx)(r.Ki.Item,{label:C.name,labelColor:C.can_build?"good":"bad",buttons:(0,e.jsx)(r.$n,{disabled:!x(C,c),icon:"print",onClick:function(){return s("build",{build:C.path})},children:"Print"}),children:C.desc},C.name)})})}):(0,e.jsx)(r.az,{children:"No category selected."})})]})})}},98309:function(y,u,n){"use strict";n.r(u),n.d(u,{IDCard:function(){return h}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),i=n(10921),h=function(x){var d=(0,o.Oc)().data,a=d.registered_name,l=d.sex,s=d.species,c=d.age,f=d.assignment,v=d.fingerprint_hash,g=d.blood_type,E=d.dna_hash,j=d.photo_front,C=[{name:"Sex",val:l},{name:"Species",val:s},{name:"Age",val:c},{name:"Blood Type",val:g},{name:"Fingerprint",val:v},{name:"DNA Hash",val:E}];return(0,e.jsx)(r.p8,{width:470,height:250,children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsxs)(t.wn,{children:[(0,e.jsxs)(t.so,{children:[(0,e.jsx)(t.so.Item,{basis:"25%",textAlign:"left",children:(0,e.jsx)(t.az,{inline:!0,style:{width:"101px",height:"120px",overflow:"hidden",outline:"2px solid #4972a1"},children:j&&(0,e.jsx)(t._V,{src:j.substring(1,j.length-1),style:{width:"300px",marginLeft:"-94px"}})||(0,e.jsx)(t.In,{name:"user",size:8,ml:1.5,mt:2.5})})}),(0,e.jsx)(t.so.Item,{basis:0,grow:1,children:(0,e.jsx)(t.Ki,{children:C.map(function(M){return(0,e.jsx)(t.Ki.Item,{label:M.name,children:M.val},M.name)})})})]}),(0,e.jsxs)(t.so,{className:"IDCard__NamePlate",align:"center",justify:"space-around",children:[(0,e.jsx)(t.so.Item,{children:(0,e.jsx)(t.az,{textAlign:"center",children:a})}),(0,e.jsx)(t.so.Item,{children:(0,e.jsx)(t.az,{textAlign:"center",children:(0,e.jsx)(i.RankIcon,{color:"",rank:f})})}),(0,e.jsx)(t.so.Item,{children:(0,e.jsx)(t.az,{textAlign:"center",children:f})})]})]})})})}},39841:function(y,u,n){"use strict";n.r(u),n.d(u,{IdentificationComputer:function(){return a},IdentificationComputerAccessModification:function(){return c},IdentificationComputerContent:function(){return l},IdentificationComputerPrinting:function(){return s},IdentificationComputerRegions:function(){return f}});var e=n(20462),o=n(7402),t=n(61282),r=n(61358),i=n(7081),h=n(88569),x=n(15581),d=n(58044),a=function(){return(0,e.jsx)(x.p8,{width:600,height:700,children:(0,e.jsx)(x.p8.Content,{children:(0,e.jsx)(l,{})})})},l=function(v){var g=(0,i.Oc)(),E=g.act,j=g.data,C=v.ntos,M=j.mode,P=j.has_modify,_=j.printing,S=j.have_id_slot,T=j.have_printer,b=(0,e.jsx)(c,{ntos:C});return C&&!S?b=(0,e.jsx)(d.CrewManifestContent,{}):_?b=(0,e.jsx)(s,{}):M===1&&(b=(0,e.jsx)(d.CrewManifestContent,{})),(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(h.tU,{children:[(!C||!!S)&&(0,e.jsx)(h.tU.Tab,{icon:"home",selected:M===0,onClick:function(){return E("mode",{mode_target:0})},children:"Access Modification"}),(0,e.jsx)(h.tU.Tab,{icon:"home",selected:M===1,onClick:function(){return E("mode",{mode_target:1})},children:"Crew Manifest"}),!C||!!T&&(0,e.jsx)(h.tU.Tab,{style:{float:"right"},icon:"print",onClick:function(){return(M||P)&&E("print")},color:!M&&!P?"transparent":"",children:"Print"})]}),b]})},s=function(v){return(0,e.jsx)(h.wn,{title:"Printing",children:"Please wait..."})},c=function(v){var g=(0,i.Oc)(),E=g.act,j=g.data,C=v.ntos,M=j.station_name,P=j.target_name,_=j.target_owner,S=_===void 0?"":_,T=j.scan_name,b=j.authenticated,L=j.has_modify,W=j.account_number,$=W===void 0?"":W,z=j.centcom_access,w=j.all_centcom_access,V=j.id_rank,k=j.departments;return(0,e.jsxs)(h.wn,{title:"Access Modification",children:[!b&&(0,e.jsx)(h.az,{italic:!0,mb:1,children:"Please insert the IDs into the terminal to proceed."}),(0,e.jsxs)(h.Ki,{children:[(0,e.jsx)(h.Ki.Item,{label:"Target Identitity",children:(0,e.jsx)(h.$n,{icon:"eject",fluid:!0,onClick:function(){return E("modify")},children:P})}),!C&&(0,e.jsx)(h.Ki.Item,{label:"Authorized Identitity",children:(0,e.jsx)(h.$n,{icon:"eject",fluid:!0,onClick:function(){return E("scan")},children:T})})]}),!!b&&!!L&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(h.wn,{title:"Details",children:(0,e.jsxs)(h.Ki,{children:[(0,e.jsx)(h.Ki.Item,{label:"Registered Name",children:(0,e.jsx)(h.pd,{value:S,fluid:!0,onInput:function(H,Y){return E("reg",{reg:Y})}})}),(0,e.jsx)(h.Ki.Item,{label:"Account Number",children:(0,e.jsx)(h.pd,{value:$,fluid:!0,onInput:function(H,Y){return E("account",{account:Y})}})}),(0,e.jsx)(h.Ki.Item,{label:"Dismissals",children:(0,e.jsx)(h.$n.Confirm,{color:"bad",icon:"exclamation-triangle",confirmIcon:"fire",fluid:!0,confirmContent:"You are dismissing "+S+", confirm?",onClick:function(){return E("terminate")},children:"Dismiss "+S})})]})}),(0,e.jsx)(h.wn,{title:"Assignment",children:(0,e.jsxs)(h.XI,{children:[k.map(function(H){return(0,e.jsxs)(r.Fragment,{children:[(0,e.jsxs)(h.XI.Row,{children:[(0,e.jsx)(h.XI.Cell,{header:!0,verticalAlign:"middle",children:H.department_name}),(0,e.jsx)(h.XI.Cell,{children:H.jobs.map(function(Y){return(0,e.jsx)(h.$n,{selected:Y.job===V,onClick:function(){return E("assign",{assign_target:Y.job})},children:(0,t.jT)(Y.display_name)},Y.job)})})]}),(0,e.jsx)(h.az,{mt:-1,children:"\xA0"})," "]},H.department_name)}),(0,e.jsxs)(h.XI.Row,{children:[(0,e.jsx)(h.XI.Cell,{header:!0,verticalAlign:"middle",children:"Special"}),(0,e.jsx)(h.XI.Cell,{children:(0,e.jsx)(h.$n,{onClick:function(){return E("assign",{assign_target:"Custom"})},children:"Custom"})})]})]})}),!!z&&(0,e.jsx)(h.wn,{title:"Central Command",children:w.map(function(H){return(0,e.jsx)(h.az,{children:(0,e.jsx)(h.$n,{fluid:!0,selected:H.allowed,onClick:function(){return E("access",{access_target:H.ref,allowed:H.allowed})},children:(0,t.jT)(H.desc)})},H.ref)})})||(0,e.jsx)(h.wn,{title:M,children:(0,e.jsx)(f,{actName:"access"})})]})]})},f=function(v){var g=(0,i.Oc)(),E=g.act,j=g.data,C=v.actName,M=j.regions;return(0,e.jsx)(h.so,{wrap:"wrap",spacing:1,children:M&&(0,o.Ul)(M,function(P){return P.name}).map(function(P){return(0,e.jsx)(h.so.Item,{mb:1,basis:"content",grow:1,children:(0,e.jsx)(h.wn,{title:P.name,height:"100%",children:(0,o.Ul)(P.accesses,function(_){return _.desc}).map(function(_){return(0,e.jsx)(h.az,{children:(0,e.jsx)(h.$n,{fluid:!0,selected:_.allowed,onClick:function(){return E(C,{access_target:_.ref,allowed:_.allowed})},children:(0,t.jT)(_.desc)})},_.ref)})})},P.name)})})}},15450:function(y,u,n){"use strict";n.r(u),n.d(u,{InventoryPanel:function(){return i}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),i=function(h){var x=(0,o.Oc)(),d=x.act,a=x.data,l=a.slots,s=a.internalsValid;return(0,e.jsx)(r.p8,{width:400,height:200,children:(0,e.jsxs)(r.p8.Content,{scrollable:!0,children:[(0,e.jsx)(t.wn,{children:(0,e.jsx)(t.Ki,{children:l&&l.length&&l.map(function(c){return(0,e.jsx)(t.Ki.Item,{label:c.name,children:(0,e.jsx)(t.$n,{mb:-1,icon:c.item?"hand-paper":"gift",onClick:function(){return d(c.act)},children:c.item||"Nothing"})},c.name)})})}),s&&(0,e.jsx)(t.wn,{title:"Actions",children:s&&(0,e.jsx)(t.$n,{fluid:!0,icon:"lungs",onClick:function(){return d("internals")},children:"Set Internals"})||null})||null]})})}},66855:function(y,u,n){"use strict";n.r(u),n.d(u,{InventoryPanelHuman:function(){return i}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),i=function(h){var x=(0,o.Oc)(),d=x.act,a=x.data,l=a.slots,s=a.specialSlots,c=a.internalsValid,f=a.sensors,v=a.handcuffed,g=a.handcuffedParams,E=a.legcuffed,j=a.legcuffedParams,C=a.accessory;return(0,e.jsx)(r.p8,{width:400,height:600,children:(0,e.jsxs)(r.p8.Content,{scrollable:!0,children:[(0,e.jsx)(t.wn,{children:(0,e.jsxs)(t.Ki,{children:[l&&l.length&&l.map(function(M){return(0,e.jsx)(t.Ki.Item,{label:M.name,children:(0,e.jsx)(t.$n,{mb:-1,icon:M.item?"hand-paper":"gift",onClick:function(){return d(M.act,M.params)},children:M.item||"Nothing"})},M.name)}),(0,e.jsx)(t.Ki.Divider,{}),s&&s.length&&s.map(function(M){return(0,e.jsx)(t.Ki.Item,{label:M.name,children:(0,e.jsx)(t.$n,{mb:-1,icon:M.item?"hand-paper":"gift",onClick:function(){return d(M.act,M.params)},children:M.item||"Nothing"})},M.name)})]})}),(0,e.jsxs)(t.wn,{title:"Actions",children:[(0,e.jsx)(t.$n,{fluid:!0,icon:"running",onClick:function(){return d("targetSlot",{slot:"splints"})},children:"Remove Splints"}),(0,e.jsx)(t.$n,{fluid:!0,icon:"hand-paper",onClick:function(){return d("targetSlot",{slot:"pockets"})},children:"Empty Pockets"}),(0,e.jsx)(t.$n,{fluid:!0,icon:"socks",onClick:function(){return d("targetSlot",{slot:"underwear"})},children:"Remove or Replace Underwear"}),c&&(0,e.jsx)(t.$n,{fluid:!0,icon:"lungs",onClick:function(){return d("targetSlot",{slot:"internals"})},children:"Set Internals"})||null,f&&(0,e.jsx)(t.$n,{fluid:!0,icon:"book-medical",onClick:function(){return d("targetSlot",{slot:"sensors"})},children:"Set Sensors"})||null,v&&(0,e.jsx)(t.$n,{fluid:!0,color:"bad",icon:"unlink",onClick:function(){return d("targetSlot",g)},children:"Handcuffed"})||null,E&&(0,e.jsx)(t.$n,{fluid:!0,color:"bad",icon:"unlink",onClick:function(){return d("targetSlot",j)},children:"Legcuffed"})||null,C&&(0,e.jsx)(t.$n,{fluid:!0,color:"bad",icon:"unlink",onClick:function(){return d("targetSlot",{slot:"tie"})},children:"Remove Accessory"})||null]})]})})}},42592:function(y,u,n){"use strict";n.r(u),n.d(u,{IsolationCentrifuge:function(){return i}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),i=function(h){var x=(0,o.Oc)(),d=x.act,a=x.data,l=a.busy,s=a.antibodies,c=a.pathogens,f=a.is_antibody_sample,v=a.sample_inserted,g=(0,e.jsx)(t.az,{color:"average",children:"No vial detected."});return v&&(!s&&!c?g=(0,e.jsx)(t.az,{color:"average",children:"No antibodies or viral strains detected."}):g=(0,e.jsxs)(e.Fragment,{children:[s?(0,e.jsx)(t.wn,{title:"Antibodies",children:s}):"",c.length?(0,e.jsx)(t.wn,{title:"Pathogens",children:(0,e.jsx)(t.Ki,{children:c.map(function(E){return(0,e.jsx)(t.Ki.Item,{label:E.name,children:E.spread_type},E.name)})})}):""]})),(0,e.jsx)(r.p8,{width:400,height:500,children:(0,e.jsx)(r.p8.Content,{scrollable:!0,children:l?(0,e.jsx)(t.wn,{title:"The Centrifuge is currently busy.",color:"bad",children:(0,e.jsx)("center",{children:(0,e.jsx)(t.az,{color:"bad",children:l})})}):(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(t.wn,{title:f?"Antibody Sample":"Blood Sample",children:[(0,e.jsxs)(t.so,{spacing:1,mb:1,children:[(0,e.jsx)(t.so.Item,{grow:1,children:(0,e.jsx)(t.$n,{fluid:!0,icon:"print",disabled:!s&&!c.length,onClick:function(){return d("print")},children:"Print"})}),(0,e.jsx)(t.so.Item,{grow:1,children:(0,e.jsx)(t.$n,{fluid:!0,icon:"eject",disabled:!v,onClick:function(){return d("sample")},children:"Eject Vial"})})]}),g]}),s&&!f||c.length?(0,e.jsx)(t.wn,{title:"Controls",children:(0,e.jsxs)(t.Ki,{children:[s&&!f?(0,e.jsx)(t.Ki.Item,{label:"Isolate Antibodies",children:(0,e.jsx)(t.$n,{icon:"pen",onClick:function(){return d("antibody")},children:s})}):"",c.length?(0,e.jsx)(t.Ki.Item,{label:"Isolate Strain",children:c.map(function(E){return(0,e.jsx)(t.$n,{icon:"pen",onClick:function(){return d("isolate",{isolate:E.reference})},children:E.name},E.name)})}):""]})}):""]})})})}},40939:function(y,u,n){"use strict";n.r(u),n.d(u,{JanitorCart:function(){return i}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),i=function(d){var a=(0,o.Oc)(),l=a.act,s=a.data,c=s.mybag,f=s.mybucket,v=s.mymop,g=s.myspray,E=s.myreplacer,j=s.signs;return(0,e.jsx)(r.p8,{width:210,height:180,children:(0,e.jsxs)(r.p8.Content,{children:[(0,e.jsx)(t.$n,{width:"64px",height:"64px",position:"relative",tooltip:c||"Garbage Bag Slot",tooltipPosition:"bottom-end",color:c?"grey":"transparent",style:{border:c?void 0:"2px solid grey"},onClick:function(){return l("bag")},children:(0,e.jsx)(x,{iconkey:"mybag"})}),(0,e.jsx)(t.$n,{width:"64px",height:"64px",position:"relative",tooltip:f||"Bucket Slot",tooltipPosition:"bottom",color:f?"grey":"transparent",style:{border:f?void 0:"2px solid grey"},onClick:function(){return l("bucket")},children:(0,e.jsx)(x,{iconkey:"mybucket"})}),(0,e.jsx)(t.$n,{width:"64px",height:"64px",position:"relative",tooltip:v||"Mop Slot",tooltipPosition:"bottom-end",color:v?"grey":"transparent",style:{border:v?void 0:"2px solid grey"},onClick:function(){return l("mop")},children:(0,e.jsx)(x,{iconkey:"mymop"})}),(0,e.jsx)(t.$n,{width:"64px",height:"64px",position:"relative",tooltip:g||"Spray Slot",tooltipPosition:"top-end",color:g?"grey":"transparent",style:{border:g?void 0:"2px solid grey"},onClick:function(){return l("spray")},children:(0,e.jsx)(x,{iconkey:"myspray"})}),(0,e.jsx)(t.$n,{width:"64px",height:"64px",position:"relative",tooltip:E||"Light Replacer Slot",tooltipPosition:"top",color:E?"grey":"transparent",style:{border:E?void 0:"2px solid grey"},onClick:function(){return l("replacer")},children:(0,e.jsx)(x,{iconkey:"myreplacer"})}),(0,e.jsx)(t.$n,{width:"64px",height:"64px",position:"relative",tooltip:j||"Signs Slot",tooltipPosition:"top-start",color:j?"grey":"transparent",style:{border:j?void 0:"2px solid grey"},onClick:function(){return l("sign")},children:(0,e.jsx)(x,{iconkey:"signs"})})]})})},h={mybag:"trash",mybucket:"fill",mymop:"broom",myspray:"spray-can",myreplacer:"lightbulb",signs:"sign"},x=function(d){var a=(0,o.Oc)().data,l=d.iconkey,s=a.icons;return l in s?(0,e.jsx)(t._V,{src:s[l].substr(1,s[l].length-1),style:{position:"absolute",left:"0",right:"0",top:"0",bottom:"0",width:"64px",height:"64px"}}):(0,e.jsx)(t.In,{style:{position:"absolute",left:"4px",right:"0",top:"20px",bottom:"0",width:"64px",height:"64px"},fontSize:2,name:h[l]})}},25244:function(y,u,n){"use strict";n.r(u),n.d(u,{Jukebox:function(){return a}});var e=n(20462),o=n(4089),t=n(61282),r=n(61358),i=n(7081),h=n(88569),x=n(41242),d=n(15581),a=function(l){var s=function(){sn&&se("Admin"),en(!sn)},c=(0,i.Oc)(),f=c.act,v=c.data,g=v.playing,E=v.loop_mode,j=v.volume,C=v.current_track_ref,M=v.current_track,P=v.current_genre,_=v.percent,S=v.tracks,T=v.admin,b=S.length&&S.reduce(function(De,Qe){var Mn=Qe.genre||"Uncategorized";return De[Mn]||(De[Mn]=[]),De[Mn].push(Qe),De},{}),L=g&&(P||"Uncategorized"),W=(0,r.useState)("Unknown"),$=W[0],z=W[1],w=(0,r.useState)(""),V=w[0],k=w[1],H=(0,r.useState)(0),Y=H[0],q=H[1],Z=(0,r.useState)("Unknown"),Q=Z[0],J=Z[1],X=(0,r.useState)("Admin"),ee=X[0],se=X[1],ie=(0,r.useState)(!1),ue=ie[0],he=ie[1],be=(0,r.useState)(!1),je=be[0],Ce=be[1],Ne=(0,r.useState)(!1),sn=Ne[0],en=Ne[1];return(0,e.jsx)(d.p8,{width:450,height:600,children:(0,e.jsxs)(d.p8.Content,{scrollable:!0,children:[(0,e.jsx)(h.wn,{title:"Currently Playing",children:(0,e.jsxs)(h.Ki,{children:[(0,e.jsx)(h.Ki.Item,{label:"Title",children:g&&M&&(0,e.jsxs)(h.az,{children:[M.title," by ",M.artist||"Unkown"]})||(0,e.jsx)(h.az,{children:"Stopped"})}),(0,e.jsxs)(h.Ki.Item,{label:"Controls",children:[(0,e.jsx)(h.$n,{icon:"play",disabled:g,onClick:function(){return f("play")},children:"Play"}),(0,e.jsx)(h.$n,{icon:"stop",disabled:!g,onClick:function(){return f("stop")},children:"Stop"})]}),(0,e.jsxs)(h.Ki.Item,{label:"Loop Mode",children:[(0,e.jsx)(h.$n,{icon:"play",onClick:function(){return f("loopmode",{loopmode:1})},selected:E===1,children:"Next"}),(0,e.jsx)(h.$n,{icon:"random",onClick:function(){return f("loopmode",{loopmode:2})},selected:E===2,children:"Shuffle"}),(0,e.jsx)(h.$n,{icon:"redo",onClick:function(){return f("loopmode",{loopmode:3})},selected:E===3,children:"Repeat"}),(0,e.jsx)(h.$n,{icon:"step-forward",onClick:function(){return f("loopmode",{loopmode:4})},selected:E===4,children:"Once"})]}),(0,e.jsx)(h.Ki.Item,{label:"Progress",children:(0,e.jsx)(h.z2,{value:_,maxValue:1,color:"good"})}),(0,e.jsx)(h.Ki.Item,{label:"Volume",children:(0,e.jsx)(h.Ap,{minValue:0,step:1,value:j*100,maxValue:100,ranges:{good:[75,1/0],average:[25,75],bad:[0,25]},format:function(De){return(0,o.Mg)(De,1)+"%"},onChange:function(De,Qe){return f("volume",{val:(0,o.LI)(Qe/100,2)})}})})]})}),(0,e.jsx)(h.wn,{title:"Available Tracks",children:S.length&&Object.keys(b).sort().map(function(De){return(0,t.ZH)(De)!=="Admin"&&(0,e.jsx)(h.Nt,{title:De,color:L===De?"green":"default",child_mt:0,children:(0,e.jsx)("div",{style:{marginLeft:"1em"},children:b[De].map(function(Qe){return(0,e.jsx)(h.$n,{fluid:!0,icon:"play",selected:C===Qe.ref,onClick:function(){return f("change_track",{change_track:Qe.ref})},children:Qe.title},Qe.ref)})})},De)})||(0,e.jsx)(h.az,{color:"bad",children:"Error: No songs loaded."})}),T&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(h.wn,{title:"Admin Tracks",children:S.length&&Object.keys(b).sort().map(function(De){return(0,t.ZH)(De)==="Admin"&&(0,e.jsx)(h.Nt,{title:De,color:L===De?"green":"default",child_mt:0,children:(0,e.jsx)("div",{style:{marginLeft:"1em"},children:b[De].map(function(Qe){return(0,e.jsxs)(h.so,{children:[(0,e.jsx)(h.so.Item,{grow:1,children:(0,e.jsx)(h.$n,{fluid:!0,icon:"play",selected:C===Qe.ref,onClick:function(){return f("change_track",{change_track:Qe.ref})},children:Qe.title},Qe.ref)}),(0,e.jsx)(h.so.Item,{children:(0,e.jsx)(h.$n.Confirm,{icon:"trash",onClick:function(){return f("remove_new_track",{ref:Qe.ref})}})})]},Qe.ref)})})},De)})||(0,e.jsx)(h.az,{color:"bad",children:"Error: No songs added."})}),(0,e.jsx)(h.wn,{title:"Admin Options",children:(0,e.jsxs)(h.Nt,{title:"Add Track",children:[(0,e.jsxs)(h.Ki,{children:[(0,e.jsx)(h.Ki.Item,{label:"Title",children:(0,e.jsx)(h.pd,{width:"100%",value:$,onChange:function(De,Qe){return z(Qe)}})}),(0,e.jsx)(h.Ki.Item,{label:"URL",children:(0,e.jsx)(h.pd,{width:"100%",value:V,onChange:function(De,Qe){return k(Qe)}})}),(0,e.jsx)(h.Ki.Item,{label:"Playtime",children:(0,e.jsx)(h.Q7,{step:1,value:Y,minValue:0,maxValue:3600,onChange:function(De){return q(De)},format:function(De){return(0,x.fU)((0,o.LI)(De*10,0))}})}),(0,e.jsx)(h.Ki.Item,{label:"Artist",children:(0,e.jsx)(h.pd,{width:"100%",value:Q,onChange:function(De,Qe){return J(Qe)}})}),(0,e.jsx)(h.Ki.Item,{label:"Genre",children:(0,e.jsxs)(h.so,{children:[(0,e.jsx)(h.so.Item,{grow:1,children:sn?(0,e.jsx)(h.pd,{width:"100%",value:ee,onChange:function(De,Qe){return se(Qe)}}):(0,e.jsx)(h.az,{children:ee})}),(0,e.jsx)(h.so.Item,{children:(0,e.jsx)(h.$n.Checkbox,{icon:sn?"lock-open":"lock",color:sn?"good":"bad",onClick:function(){return s()}})})]})}),(0,e.jsx)(h.Ki.Item,{label:"Secret",children:(0,e.jsx)(h.$n.Checkbox,{checked:ue,onClick:function(){return he(!ue)}})}),(0,e.jsx)(h.Ki.Item,{label:"Lobby",children:(0,e.jsx)(h.$n.Checkbox,{checked:je,onClick:function(){return Ce(!je)}})})]}),(0,e.jsx)(h.cG,{}),(0,e.jsx)(h.$n,{disabled:!($&&V&&Y&&Q&&ee),onClick:function(){return f("add_new_track",{title:$,url:V,duration:Y,artist:Q,genre:ee,secret:ue,lobby:je})},children:"Add new Track"})]})})]})]})})}},7881:function(y,u,n){"use strict";n.r(u),n.d(u,{LawManager:function(){return l},LawManagerLawSets:function(){return v},LawManagerLaws:function(){return c}});var e=n(20462),o=n(7402),t=n(15813),r=n(61282),i=n(7081),h=n(88569),x=n(15581);function d(){return d=Object.assign||function(E){for(var j=1;j=0)&&(C[P]=E[P]);return C}var l=function(E){var j=(0,i.Oc)().data,C=j.isSlaved;return(0,e.jsx)(x.p8,{width:800,height:600,children:(0,e.jsxs)(x.p8.Content,{scrollable:!0,children:[C?(0,e.jsxs)(h.IC,{info:!0,children:["Law-synced to ",C]}):"",(0,e.jsx)(s,{})]})})},s=function(E){var j=(0,i.Oc)().data,C=(0,i.QY)("lawsTabIndex",0),M=C[0],P=C[1],_=(0,i.QY)("searchLawName",""),S=_[0],T=_[1],b=j.ion_law_nr,L=j.ion_law,W=j.zeroth_law,$=j.inherent_law,z=j.supplied_law,w=j.supplied_law_position,V=j.zeroth_laws,k=j.has_zeroth_laws,H=j.ion_laws,Y=j.has_ion_laws,q=j.inherent_laws,Z=j.has_inherent_laws,Q=j.supplied_laws,J=j.has_supplied_laws,X=j.isAI,ee=j.isMalf,se=j.isAdmin,ie=j.channel,ue=j.channels,he=j.law_sets,be=[];return be[0]=(0,e.jsx)(c,{ion_law_nr:b,ion_law:L,zeroth_law:W,inherent_law:$,supplied_law:z,supplied_law_position:w,zeroth_laws:V,has_zeroth_laws:k,ion_laws:H,has_ion_laws:Y,inherent_laws:q,has_inherent_laws:Z,supplied_laws:Q,has_supplied_laws:J,isAI:X,isMalf:ee,isAdmin:se,channel:ie,channels:ue}),be[1]=(0,e.jsx)(v,{isMalf:ee,isAdmin:se,law_sets:he,ion_law_nr:b,searchLawName:S,onSearchLawName:T}),(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(h.tU,{children:[(0,e.jsx)(h.tU.Tab,{selected:M===0,onClick:function(){return P(0)},children:"Law Management"}),(0,e.jsx)(h.tU.Tab,{selected:M===1,onClick:function(){return P(1)},children:"Law Sets"})]}),be[M]]})},c=function(E){var j=(0,i.Oc)().act,C=E.ion_law_nr,M=E.ion_law,P=E.zeroth_law,_=E.inherent_law,S=E.supplied_law,T=E.supplied_law_position,b=E.zeroth_laws,L=E.has_zeroth_laws,W=E.ion_laws,$=E.has_ion_laws,z=E.inherent_laws,w=E.has_inherent_laws,V=E.supplied_laws,k=E.has_supplied_laws,H=E.isAI,Y=E.isMalf,q=E.isAdmin,Z=E.channel,Q=E.channels,J=E.hasScroll,X=E.sectionHeight,ee=b.map(function(se){return se.zero=!0,se}).concat(z);return(0,e.jsxs)(h.wn,{scrollable:J,fill:J,height:X,children:[$?(0,e.jsx)(f,{laws:W,title:C+" Laws:",isAdmin:q,isMalf:Y,mt:-2}):"",L||w?(0,e.jsx)(f,{laws:ee,title:"Inherent Laws",isAdmin:q,isMalf:Y,mt:-2}):"",k?(0,e.jsx)(f,{laws:V,title:"Supplied Laws",isAdmin:q,isMalf:Y,mt:-2}):"",(0,e.jsx)(h.wn,{title:"Controls",mt:-2,children:(0,e.jsxs)(h.Ki,{children:[(0,e.jsx)(h.Ki.Item,{label:"Statement Channel",children:Q.map(function(se){return(0,e.jsx)(h.$n,{selected:Z===se.channel,onClick:function(){return j("law_channel",{law_channel:se.channel})},children:se.channel},se.channel)})}),(0,e.jsx)(h.Ki.Item,{label:"State Laws",children:(0,e.jsx)(h.$n,{icon:"volume-up",onClick:function(){return j("state_laws")},children:"State Laws"})}),H?(0,e.jsx)(h.Ki.Item,{label:"Law Notification",children:(0,e.jsx)(h.$n,{icon:"exclamation",onClick:function(){return j("notify_laws")},children:"Notify"})}):""]})}),Y?(0,e.jsx)(h.wn,{title:"Add Laws",mt:-2,children:(0,e.jsxs)(h.XI,{children:[(0,e.jsxs)(h.XI.Row,{header:!0,children:[(0,e.jsx)(h.XI.Cell,{collapsing:!0,children:"Type"}),(0,e.jsx)(h.XI.Cell,{children:"Law"}),(0,e.jsx)(h.XI.Cell,{collapsing:!0,children:"Index"}),(0,e.jsx)(h.XI.Cell,{collapsing:!0,children:"Add"})]}),q&&!L?(0,e.jsxs)(h.XI.Row,{children:[(0,e.jsx)(h.XI.Cell,{collapsing:!0,children:"Zero"}),(0,e.jsx)(h.XI.Cell,{children:(0,e.jsx)(h.pd,{value:P,fluid:!0,onChange:function(se,ie){return j("change_zeroth_law",{val:ie})}})}),(0,e.jsx)(h.XI.Cell,{children:"N/A"}),(0,e.jsx)(h.XI.Cell,{collapsing:!0,children:(0,e.jsx)(h.$n,{icon:"plus",onClick:function(){return j("add_zeroth_law")},children:"Add"})})]}):"",(0,e.jsxs)(h.XI.Row,{children:[(0,e.jsx)(h.XI.Cell,{collapsing:!0,children:"Ion"}),(0,e.jsx)(h.XI.Cell,{children:(0,e.jsx)(h.pd,{value:M,fluid:!0,onChange:function(se,ie){return j("change_ion_law",{val:ie})}})}),(0,e.jsx)(h.XI.Cell,{children:"N/A"}),(0,e.jsx)(h.XI.Cell,{collapsing:!0,children:(0,e.jsx)(h.$n,{icon:"plus",onClick:function(){return j("add_ion_law")},children:"Add"})})]}),(0,e.jsxs)(h.XI.Row,{children:[(0,e.jsx)(h.XI.Cell,{children:"Inherent"}),(0,e.jsx)(h.XI.Cell,{children:(0,e.jsx)(h.pd,{value:_,fluid:!0,onChange:function(se,ie){return j("change_inherent_law",{val:ie})}})}),(0,e.jsx)(h.XI.Cell,{children:"N/A"}),(0,e.jsx)(h.XI.Cell,{children:(0,e.jsx)(h.$n,{icon:"plus",onClick:function(){return j("add_inherent_law")},children:"Add"})})]}),(0,e.jsxs)(h.XI.Row,{children:[(0,e.jsx)(h.XI.Cell,{children:"Supplied"}),(0,e.jsx)(h.XI.Cell,{children:(0,e.jsx)(h.pd,{value:S,fluid:!0,onChange:function(se,ie){return j("change_supplied_law",{val:ie})}})}),(0,e.jsx)(h.XI.Cell,{children:(0,e.jsx)(h.$n,{icon:"pen",onClick:function(){return j("change_supplied_law_position")},children:T})}),(0,e.jsx)(h.XI.Cell,{children:(0,e.jsx)(h.$n,{icon:"plus",onClick:function(){return j("add_supplied_law")},children:"Add"})})]})]})}):""]})},f=function(E){var j=(0,i.Oc)().act,C=E.laws,M=E.title,P=E.noButtons,_=E.isMalf,S=E.isAdmin,T=a(E,["laws","title","noButtons","isMalf","isAdmin"]);return(0,e.jsx)(h.wn,d({title:M},T,{children:(0,e.jsxs)(h.XI,{children:[(0,e.jsxs)(h.XI.Row,{header:!0,children:[(0,e.jsx)(h.XI.Cell,{collapsing:!0,children:"Index"}),(0,e.jsx)(h.XI.Cell,{children:"Law"}),P?"":(0,e.jsx)(h.XI.Cell,{collapsing:!0,children:"State"}),_&&!P?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(h.XI.Cell,{collapsing:!0,children:"Edit"}),(0,e.jsx)(h.XI.Cell,{collapsing:!0,children:"Delete"})]}):""]}),C.map(function(b){return(0,e.jsxs)(h.XI.Row,{children:[(0,e.jsxs)(h.XI.Cell,{collapsing:!0,children:[b.index,"."]}),(0,e.jsx)(h.XI.Cell,{color:b.zero?"bad":void 0,children:b.law}),P?"":(0,e.jsx)(h.XI.Cell,{collapsing:!0,children:(0,e.jsx)(h.$n,{fluid:!0,icon:"volume-up",selected:b.state,onClick:function(){return j("state_law",{ref:b.ref,state_law:!b.state})},children:b.state?"Yes":"No"})}),_&&!P?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(h.XI.Cell,{collapsing:!0,children:(0,e.jsx)(h.$n,{disabled:b.zero&&!S,icon:"pen",onClick:function(){return j("edit_law",{edit_law:b.ref})},children:"Edit"})}),(0,e.jsx)(h.XI.Cell,{collapsing:!0,children:(0,e.jsx)(h.$n,{disabled:b.zero&&!S,color:"bad",icon:"trash",onClick:function(){return j("delete_law",{delete_law:b.ref})},children:"Delete"})})]}):""]},b.index)})]})}))},v=function(E){var j=(0,i.Oc)().act,C=E.law_sets,M=E.ion_law_nr,P=E.searchLawName,_=E.onSearchLawName,S=E.isMalf,T=E.isAdmin;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(h.IC,{children:"Remember: Stating laws other than those currently loaded may be grounds for decommissioning! - NanoTrasen"}),(0,e.jsx)(h.pd,{fluid:!0,value:P,placeholder:"Search for laws...",onInput:function(b,L){return _(L)}}),C.length?g(C,P).map(function(b){return(0,e.jsxs)(h.wn,{title:b.name,buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(h.$n,{disabled:!S,icon:"sync",onClick:function(){return j("transfer_laws",{transfer_laws:b.ref})},children:"Load Laws"}),(0,e.jsx)(h.$n,{icon:"volume-up",onClick:function(){return j("state_law_set",{state_law_set:b.ref})},children:"State Laws"})]}),children:[b.laws.has_ion_laws?(0,e.jsx)(f,{noButtons:!0,laws:b.laws.ion_laws,title:M+" Laws:",isAdmin:T,isMalf:S}):"",b.laws.has_zeroth_laws||b.laws.has_inherent_laws?(0,e.jsx)(f,{noButtons:!0,laws:b.laws.zeroth_laws.concat(b.laws.inherent_laws),title:b.header,isAdmin:T,isMalf:S}):"",b.laws.has_supplied_laws?(0,e.jsx)(f,{noButtons:!0,laws:b.laws.supplied_laws,title:"Supplied Laws",isAdmin:T,isMalf:S}):""]},b.name)}):""]})},g=function(E,j){j===void 0&&(j="");var C=(0,r.XZ)(j,function(M){return M.name+M.header});return(0,t.L)([function(M){return j?(0,o.pb)(M,C):M}])(E)}},94979:function(y,u,n){"use strict";n.r(u),n.d(u,{ListInputModal:function(){return a}});var e=n(20462),o=n(61358),t=n(6544),r=n(7081),i=n(88569),h=n(15581),x=n(5335),d=n(44149),a=function(c){var f=(0,r.Oc)(),v=f.act,g=f.data,E=g.items,j=E===void 0?[]:E,C=g.message,M=C===void 0?"":C,P=g.init_value,_=g.large_buttons,S=g.timeout,T=g.title,b=(0,o.useState)(j.indexOf(P)),L=b[0],W=b[1],$=(0,o.useState)(j.length>9),z=$[0],w=$[1],V=(0,o.useState)(""),k=V[0],H=V[1],Y=function(ie){var ue=ee.length-1;if(ie===t.R)if(L===null||L===ue){var he;W(0),(he=document.getElementById("0"))==null||he.scrollIntoView()}else{var be;W(L+1),(be=document.getElementById((L+1).toString()))==null||be.scrollIntoView()}else if(ie===t.gf)if(L===null||L===0){var je;W(ue),(je=document.getElementById(ue.toString()))==null||je.scrollIntoView()}else{var Ce;W(L-1),(Ce=document.getElementById((L-1).toString()))==null||Ce.scrollIntoView()}},q=function(ie){ie!==L&&W(ie)},Z=function(){w(!1),w(!0)},Q=function(ie){var ue=String.fromCharCode(ie),he=j.find(function(Ce){return Ce==null?void 0:Ce.toLowerCase().startsWith(ue==null?void 0:ue.toLowerCase())});if(he){var be,je=j.indexOf(he);W(je),(be=document.getElementById(je.toString()))==null||be.scrollIntoView()}},J=function(ie){var ue;ie!==k&&(H(ie),W(0),(ue=document.getElementById("0"))==null||ue.scrollIntoView())},X=function(){w(!z),H("")},ee=j.filter(function(ie){return ie==null?void 0:ie.toLowerCase().includes(k.toLowerCase())}),se=325+Math.ceil(M.length/3)+(_?5:0);return z||setTimeout(function(){var ie;return(ie=document.getElementById(L.toString()))==null?void 0:ie.focus()},1),(0,e.jsxs)(h.p8,{title:T,width:325,height:se,children:[S&&(0,e.jsx)(d.Loader,{value:S}),(0,e.jsx)(h.p8.Content,{onKeyDown:function(ie){var ue=window.event?ie.which:ie.keyCode;(ue===t.R||ue===t.gf)&&(ie.preventDefault(),Y(ue)),ue===t.Ri&&(ie.preventDefault(),v("submit",{entry:ee[L]})),!z&&ue>=t.W8&&ue<=t.bh&&(ie.preventDefault(),Q(ue)),ue===t.s6&&(ie.preventDefault(),v("cancel"))},children:(0,e.jsx)(i.wn,{buttons:(0,e.jsx)(i.$n,{compact:!0,icon:z?"search":"font",selected:!0,tooltip:z?"Search Mode. Type to search or use arrow keys to select manually.":"Hotkey Mode. Type a letter to jump to the first match. Enter to select.",tooltipPosition:"left",onClick:function(){return X()}}),className:"ListInput__Section",fill:!0,title:M,children:(0,e.jsxs)(i.BJ,{fill:!0,vertical:!0,children:[(0,e.jsx)(i.BJ.Item,{grow:!0,children:(0,e.jsx)(l,{filteredItems:ee,onClick:q,onFocusSearch:Z,searchBarVisible:z,selected:L})}),z&&(0,e.jsx)(s,{filteredItems:ee,onSearch:J,searchQuery:k,selected:L}),(0,e.jsx)(i.BJ.Item,{children:(0,e.jsx)(x.InputButtons,{input:ee[L]})})]})})})]})},l=function(c){var f=(0,r.Oc)().act,v=c.filteredItems,g=c.onClick,E=c.onFocusSearch,j=c.searchBarVisible,C=c.selected;return(0,e.jsxs)(i.wn,{fill:!0,scrollable:!0,children:[(0,e.jsx)(i.y5,{}),v.map(function(M,P){return(0,e.jsx)(i.$n,{color:"transparent",fluid:!0,onClick:function(){return g(P)},onDoubleClick:function(_){_.preventDefault(),f("submit",{entry:v[C]})},onKeyDown:function(_){var S=window.event?_.which:_.keyCode;j&&S>=t.W8&&S<=t.bh&&(_.preventDefault(),E())},selected:P===C,style:{animation:"none",transition:"none"},children:M.replace(/^\w/,function(_){return _.toUpperCase()})},P)})]})},s=function(c){var f=(0,r.Oc)().act,v=c.filteredItems,g=c.onSearch,E=c.searchQuery,j=c.selected;return(0,e.jsx)(i.pd,{autoFocus:!0,autoSelect:!0,fluid:!0,onEnter:function(C){C.preventDefault(),f("submit",{entry:v[j]})},onInput:function(C,M){return g(M)},placeholder:"Search...",value:E})}},30373:function(y,u,n){"use strict";n.r(u),n.d(u,{LookingGlass:function(){return i}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),i=function(h){var x=(0,o.Oc)(),d=x.act,a=x.data,l=a.supportedPrograms,s=a.currentProgram,c=a.immersion,f=a.gravity,v=Math.min(180+l.length*23,600);return(0,e.jsx)(r.p8,{width:300,height:v,children:(0,e.jsxs)(r.p8.Content,{scrollable:!0,children:[(0,e.jsx)(t.wn,{title:"Programs",children:l.map(function(g){return(0,e.jsx)(t.$n,{fluid:!0,icon:"eye",selected:g===s,onClick:function(){return d("program",{program:g})},children:g},g)})}),(0,e.jsx)(t.wn,{title:"Controls",children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Gravity",children:(0,e.jsx)(t.$n,{fluid:!0,icon:"user-astronaut",selected:f,onClick:function(){return d("gravity")},children:f?"Enabled":"Disabled"})}),(0,e.jsx)(t.Ki.Item,{label:"Full Immersion",children:(0,e.jsx)(t.$n,{mt:-1,fluid:!0,icon:"eye",selected:c,onClick:function(){return d("immersion")},children:c?"Enabled":"Disabled"})})]})})]})})}},88504:function(y,u,n){"use strict";n.r(u),n.d(u,{MechaControlConsole:function(){return h}});var e=n(20462),o=n(61282),t=n(7081),r=n(88569),i=n(15581),h=function(x){var d=(0,t.Oc)(),a=d.act,l=d.data,s=l.beacons,c=s===void 0?[]:s,f=l.stored_data,v=f===void 0?[]:f;return(0,e.jsx)(i.p8,{width:600,height:600,children:(0,e.jsxs)(i.p8.Content,{scrollable:!0,children:[v.length?(0,e.jsx)(r.aF,{children:(0,e.jsx)(r.wn,{height:"400px",style:{overflowY:"auto"},title:"Log",buttons:(0,e.jsx)(r.$n,{icon:"window-close",onClick:function(){return a("clear_log")}}),children:v.map(function(g){return(0,e.jsxs)(r.az,{children:[(0,e.jsxs)(r.az,{color:"label",children:["(",g.time,") (",g.year,")"]}),(0,e.jsx)(r.az,{children:(0,o.jT)(g.message)})]},g.time)})})}):"",c.length&&c.map(function(g){return(0,e.jsx)(r.wn,{title:g.name,buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.$n,{icon:"comment",onClick:function(){return a("send_message",{mt:g.ref})},children:"Message"}),(0,e.jsx)(r.$n,{icon:"eye",onClick:function(){return a("get_log",{mt:g.ref})},children:"View Log"}),(0,e.jsx)(r.$n.Confirm,{color:"red",icon:"bomb",onClick:function(){return a("shock",{mt:g.ref})},children:"EMP"})]}),children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Health",children:(0,e.jsx)(r.z2,{ranges:{good:[g.maxHealth*.75,1/0],average:[g.maxHealth*.5,g.maxHealth*.75],bad:[-1/0,g.maxHealth*.5]},value:g.health,maxValue:g.maxHealth})}),(0,e.jsx)(r.Ki.Item,{label:"Cell Charge",children:g.cell&&(0,e.jsx)(r.z2,{ranges:{good:[g.cellMaxCharge*.75,1/0],average:[g.cellMaxCharge*.5,g.cellMaxCharge*.75],bad:[-1/0,g.cellMaxCharge*.5]},value:g.cellCharge,maxValue:g.cellMaxCharge})||(0,e.jsx)(r.IC,{children:"No Cell Installed"})}),(0,e.jsxs)(r.Ki.Item,{label:"Air Tank",children:[g.airtank,"kPa"]}),(0,e.jsx)(r.Ki.Item,{label:"Pilot",children:g.pilot||"Unoccupied"}),(0,e.jsx)(r.Ki.Item,{label:"Location",children:(0,o.Sn)(g.location)||"Unknown"}),(0,e.jsx)(r.Ki.Item,{label:"Active Equipment",children:g.active||"None"}),g.cargoMax?(0,e.jsx)(r.Ki.Item,{label:"Cargo Space",children:(0,e.jsx)(r.z2,{ranges:{bad:[g.cargoMax*.75,1/0],average:[g.cargoMax*.5,g.cargoMax*.75],good:[-1/0,g.cargoMax*.5]},value:g.cargoUsed,maxValue:g.cargoMax})}):""]})},g.name)})||(0,e.jsx)(r.IC,{children:"No mecha beacons found."})]})})}},94921:function(y,u,n){"use strict";n.r(u),n.d(u,{Medbot:function(){return i}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),i=function(h){var x=(0,o.Oc)(),d=x.act,a=x.data,l=a.on,s=a.open,c=a.beaker,f=a.beaker_total,v=a.beaker_max,g=a.locked,E=a.heal_threshold,j=a.heal_threshold_max,C=a.injection_amount_min,M=a.injection_amount,P=a.injection_amount_max,_=a.use_beaker,S=a.declare_treatment,T=a.vocal;return(0,e.jsx)(r.p8,{width:400,height:600,children:(0,e.jsxs)(r.p8.Content,{scrollable:!0,children:[(0,e.jsx)(t.wn,{title:"Automatic Medical Unit v2.0",buttons:(0,e.jsx)(t.$n,{icon:"power-off",selected:l,onClick:function(){return d("power")},children:l?"On":"Off"}),children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Maintenance Panel",color:s?"bad":"good",children:s?"Open":"Closed"}),(0,e.jsx)(t.Ki.Item,{label:"Beaker",buttons:(0,e.jsx)(t.$n,{disabled:!c,icon:"eject",onClick:function(){return d("eject")},children:"Eject"}),children:c&&(0,e.jsxs)(t.z2,{value:f,maxValue:v,children:[f," / ",v]})||(0,e.jsx)(t.az,{color:"average",children:"No beaker loaded."})}),(0,e.jsx)(t.Ki.Item,{label:"Behavior Controls",color:g?"good":"bad",children:g?"Locked":"Unlocked"})]})}),!g&&(0,e.jsx)(t.wn,{title:"Behavioral Controls",children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Healing Threshold",children:(0,e.jsx)(t.Q7,{fluid:!0,step:1,minValue:0,maxValue:j,value:E,onDrag:function(b){return d("adj_threshold",{val:b})}})}),(0,e.jsx)(t.Ki.Item,{label:"Injection Amount",children:(0,e.jsx)(t.Q7,{fluid:!0,step:1,minValue:C,maxValue:P,value:M,onDrag:function(b){return d("adj_inject",{val:b})}})}),(0,e.jsx)(t.Ki.Item,{label:"Reagent Source",children:(0,e.jsx)(t.$n,{fluid:!0,icon:_?"toggle-on":"toggle-off",selected:_,onClick:function(){return d("use_beaker")},children:_?"Loaded Beaker (When available)":"Internal Synthesizer"})}),(0,e.jsx)(t.Ki.Item,{label:"Treatment Report",children:(0,e.jsx)(t.$n,{fluid:!0,icon:S?"toggle-on":"toggle-off",selected:S,onClick:function(){return d("declaretreatment")},children:S?"On":"Off"})}),(0,e.jsx)(t.Ki.Item,{label:"Speaker",children:(0,e.jsx)(t.$n,{fluid:!0,icon:T?"toggle-on":"toggle-off",selected:T,onClick:function(){return d("togglevoice")},children:T?"On":"Off"})})]})})||null]})})}},47407:function(y,u,n){"use strict";n.r(u),n.d(u,{MedicalRecordsList:function(){return r}});var e=n(20462),o=n(7081),t=n(88569),r=function(i){var h=(0,o.Oc)(),x=h.act,d=h.data,a=d.records;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.pd,{fluid:!0,placeholder:"Search by Name, DNA, or ID",onChange:function(l,s){return x("search",{t1:s})}}),(0,e.jsx)(t.az,{mt:"0.5rem",children:a.map(function(l,s){return(0,e.jsx)(t.$n,{icon:"user",mb:"0.5rem",onClick:function(){return x("d_rec",{d_rec:l.ref})},children:l.id+": "+l.name},s)})})]})}},43131:function(y,u,n){"use strict";n.r(u),n.d(u,{MedicalRecordsMedbots:function(){return r}});var e=n(20462),o=n(7081),t=n(88569),r=function(i){var h=(0,o.Oc)().data,x=h.medbots;return!x||x.length===0?(0,e.jsx)(t.az,{color:"label",children:"There are no Medbots."}):x.map(function(d,a){return(0,e.jsx)(t.Nt,{open:!0,title:d.name,children:(0,e.jsx)(t.az,{px:"0.5rem",children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsxs)(t.Ki.Item,{label:"Location",children:[d.area||"Unknown"," (",d.x,", ",d.y,")"]}),(0,e.jsx)(t.Ki.Item,{label:"Status",children:d.on?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.az,{color:"good",children:"Online"}),(0,e.jsx)(t.az,{mt:"0.5rem",children:d.use_beaker?"Reservoir: "+d.total_volume+"/"+d.maximum_volume:"Using internal synthesizer."})]}):(0,e.jsx)(t.az,{color:"average",children:"Offline"})})]})})},a)})}},70734:function(y,u,n){"use strict";n.r(u),n.d(u,{MedicalRecordsMaintenance:function(){return h},MedicalRecordsNavigation:function(){return d},MedicalRecordsView:function(){return x}});var e=n(20462),o=n(7081),t=n(88569),r=n(72886),i=n(8615),h=function(a){var l=(0,o.Oc)().act;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n,{icon:"download",disabled:!0,children:"Backup to Disk"}),(0,e.jsx)("br",{}),(0,e.jsx)(t.$n,{icon:"upload",my:"0.5rem",disabled:!0,children:"Upload from Disk"}),(0,e.jsx)("br",{}),(0,e.jsx)(t.$n.Confirm,{icon:"trash",onClick:function(){return l("del_all")},children:"Delete All Medical Records"})]})},x=function(a){var l=(0,o.Oc)(),s=l.act,c=l.data,f=c.medical,v=c.printing;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.wn,{title:"General Data",mt:"-6px",children:(0,e.jsx)(r.MedicalRecordsViewGeneral,{})}),(0,e.jsx)(t.wn,{title:"Medical Data",children:(0,e.jsx)(i.MedicalRecordsViewMedical,{})}),(0,e.jsxs)(t.wn,{title:"Actions",children:[(0,e.jsx)(t.$n.Confirm,{icon:"trash",disabled:!!f.empty,color:"bad",onClick:function(){return s("del_r")},children:"Delete Medical Record"}),(0,e.jsx)(t.$n,{icon:v?"spinner":"print",disabled:v,iconSpin:!!v,ml:"0.5rem",onClick:function(){return s("print_p")},children:"Print Entry"}),(0,e.jsx)("br",{}),(0,e.jsx)(t.$n,{icon:"arrow-left",mt:"0.5rem",onClick:function(){return s("screen",{screen:2})},children:"Back"})]})]})},d=function(a){var l=(0,o.Oc)(),s=l.act,c=l.data,f=c.screen;return(0,e.jsxs)(t.tU,{children:[(0,e.jsxs)(t.tU.Tab,{selected:f===2,onClick:function(){return s("screen",{screen:2})},children:[(0,e.jsx)(t.In,{name:"list"}),"List Records"]}),(0,e.jsxs)(t.tU.Tab,{selected:f===5,onClick:function(){return s("screen",{screen:5})},children:[(0,e.jsx)(t.In,{name:"database"}),"Virus Database"]}),(0,e.jsxs)(t.tU.Tab,{selected:f===6,onClick:function(){return s("screen",{screen:6})},children:[(0,e.jsx)(t.In,{name:"plus-square"}),"Medbot Tracking"]}),(0,e.jsxs)(t.tU.Tab,{selected:f===3,onClick:function(){return s("screen",{screen:3})},children:[(0,e.jsx)(t.In,{name:"wrench"}),"Record Maintenance"]})]})}},72886:function(y,u,n){"use strict";n.r(u),n.d(u,{MedicalRecordsViewGeneral:function(){return i}});var e=n(20462),o=n(7081),t=n(88569),r=n(80724),i=function(h){var x=(0,o.Oc)().data,d=x.general;return!d||!d.fields?(0,e.jsx)(t.az,{color:"bad",children:"General records lost!"}):(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.az,{width:"50%",style:{float:"left"},children:(0,e.jsx)(t.Ki,{children:d.fields.map(function(a,l){return(0,e.jsx)(t.Ki.Item,{label:a.field,children:(0,e.jsxs)(t.az,{height:"20px",inline:!0,preserveWhitespace:!0,children:[a.value,!!a.edit&&(0,e.jsx)(t.$n,{icon:"pen",ml:"0.5rem",onClick:function(){return(0,r.doEdit)(a)}})]})},l)})})}),(0,e.jsx)(t.az,{width:"50%",style:{float:"right"},textAlign:"right",children:!!d.has_photos&&d.photos.map(function(a,l){return(0,e.jsxs)(t.az,{inline:!0,textAlign:"center",color:"label",children:[(0,e.jsx)(t._V,{src:a.substring(1,a.length-1),style:{width:"96px",marginBottom:"0.5rem"}}),(0,e.jsx)("br",{}),"Photo #",l+1]},l)})})]})}},8615:function(y,u,n){"use strict";n.r(u),n.d(u,{MedicalRecordsViewMedical:function(){return h}});var e=n(20462),o=n(7081),t=n(88569),r=n(86471),i=n(80724),h=function(x){var d=(0,o.Oc)(),a=d.act,l=d.data,s=l.medical;return!s||!s.fields?(0,e.jsxs)(t.az,{color:"bad",children:["Medical records lost!",(0,e.jsx)(t.$n,{icon:"pen",ml:"0.5rem",onClick:function(){return a("new")},children:"New Record"})]}):(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.Ki,{children:s.fields.map(function(c,f){return(0,e.jsx)(t.Ki.Item,{label:c.field,children:(0,e.jsxs)(t.az,{preserveWhitespace:!0,children:[c.value,(0,e.jsx)(t.$n,{icon:"pen",ml:"0.5rem",onClick:function(){return(0,i.doEdit)(c)}})]})},f)})}),(0,e.jsxs)(t.wn,{title:"Comments/Log",children:[s.comments&&s.comments.length===0?(0,e.jsx)(t.az,{color:"label",children:"No comments found."}):s.comments&&s.comments.map(function(c,f){return(0,e.jsxs)(t.az,{children:[(0,e.jsx)(t.az,{color:"label",inline:!0,children:c.header}),(0,e.jsx)("br",{}),c.text,(0,e.jsx)(t.$n,{icon:"comment-slash",color:"bad",ml:"0.5rem",onClick:function(){return a("del_c",{del_c:f+1})}})]},f)}),(0,e.jsx)(t.$n,{icon:"comment-medical",color:"good",mt:"0.5rem",mb:"0",onClick:function(){return(0,r.modalOpen)("add_c")},children:"Add Entry"})]})]})}},3748:function(y,u,n){"use strict";n.r(u),n.d(u,{MedicalRecordsViruses:function(){return i}});var e=n(20462),o=n(61358),t=n(7081),r=n(88569),i=function(h){var x=(0,t.Oc)(),d=x.act,a=x.data,l=a.virus;return l&&l.sort(function(s,c){return s.name>c.name?1:-1}),l&&l.map(function(s,c){return(0,e.jsxs)(o.Fragment,{children:[(0,e.jsx)(r.$n,{icon:"flask",mb:"0.5rem",onClick:function(){return d("vir",{vir:s.D})},children:s.name}),(0,e.jsx)("br",{})]},c)})}},46069:function(y,u,n){"use strict";n.r(u),n.d(u,{severities:function(){return e}});var e={Minor:"good",Medium:"average","Dangerous!":"bad",Harmful:"bad","BIOHAZARD THREAT!":"bad"}},65456:function(y,u,n){"use strict";n.r(u),n.d(u,{MedicalRecords:function(){return v}});var e=n(20462),o=n(7081),t=n(88569),r=n(86471),i=n(15581),h=n(35069),x=n(97049),d=n(3751),a=n(47407),l=n(43131),s=n(70734),c=n(3748),f=n(4492),v=function(g){var E=(0,o.Oc)().data,j=E.authenticated,C=E.screen;if(!j)return(0,e.jsx)(i.p8,{width:800,height:380,children:(0,e.jsx)(i.p8.Content,{children:(0,e.jsx)(x.LoginScreen,{})})});var M=[];return M[2]=(0,e.jsx)(a.MedicalRecordsList,{}),M[3]=(0,e.jsx)(s.MedicalRecordsMaintenance,{}),M[4]=(0,e.jsx)(s.MedicalRecordsView,{}),M[5]=(0,e.jsx)(c.MedicalRecordsViruses,{}),M[6]=(0,e.jsx)(l.MedicalRecordsMedbots,{}),(0,e.jsxs)(i.p8,{width:800,height:380,children:[(0,e.jsx)(r.ComplexModal,{maxHeight:"100%",maxWidth:"80%"}),(0,e.jsxs)(i.p8.Content,{className:"Layout__content--flexColumn",scrollable:!0,children:[(0,e.jsx)(h.LoginInfo,{}),(0,e.jsx)(d.TemporaryNotice,{}),(0,e.jsx)(s.MedicalRecordsNavigation,{}),(0,e.jsx)(t.wn,{height:"calc(100% - 5rem)",flexGrow:!0,children:C&&M[C]||""})]})]})};(0,r.modalRegisterBodyOverride)("virus",f.virusModalBodyOverride)},86097:function(y,u,n){"use strict";n.r(u)},4492:function(y,u,n){"use strict";n.r(u),n.d(u,{virusModalBodyOverride:function(){return r}});var e=n(20462),o=n(7081),t=n(88569),r=function(i){var h=(0,o.Oc)().act,x=i.args;return(0,e.jsx)(t.wn,{m:"-1rem",title:x.name||"Virus",buttons:(0,e.jsx)(t.$n,{icon:"times",color:"red",onClick:function(){return h("modal_close")}}),children:(0,e.jsx)(t.az,{mx:"0.5rem",children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsxs)(t.Ki.Item,{label:"Spread",children:[x.spreadtype," Transmission"]}),(0,e.jsx)(t.Ki.Item,{label:"Possible cure",children:x.antigen}),(0,e.jsx)(t.Ki.Item,{label:"Rate of Progression",children:x.rate}),(0,e.jsxs)(t.Ki.Item,{label:"Antibiotic Resistance",children:[x.resistance,"%"]}),(0,e.jsx)(t.Ki.Item,{label:"Species Affected",children:x.species}),(0,e.jsx)(t.Ki.Item,{label:"Symptoms",children:(0,e.jsx)(t.Ki,{children:x.symptoms.map(function(d){return(0,e.jsxs)(t.Ki.Item,{label:d.stage+". "+d.name,children:[(0,e.jsx)(t.az,{inline:!0,color:"label",children:"Strength:"})," ",d.strength,"\xA0",(0,e.jsx)(t.az,{inline:!0,color:"label",children:"Aggressiveness:"})," ",d.aggressiveness]},d.stage)})})})]})})})}},4477:function(y,u,n){"use strict";n.r(u),n.d(u,{MentorTicketPanel:function(){return x}});var e=n(20462),o=n(4089),t=n(7081),r=n(88569),i=n(15581),h={open:"Open",resolved:"Resolved",unknown:"Unknown"},x=function(d){var a=(0,t.Oc)(),l=a.act,s=a.data,c=s.id,f=s.name,v=s.state,g=s.opened_at,E=s.closed_at,j=s.opened_at_date,C=s.closed_at_date,M=s.actions,P=s.log;return(0,e.jsx)(i.p8,{width:900,height:600,children:(0,e.jsx)(i.p8.Content,{scrollable:!0,children:(0,e.jsx)(r.wn,{title:"Ticket #"+c,buttons:(0,e.jsxs)(r.az,{nowrap:!0,children:[(0,e.jsx)(r.$n,{icon:"arrow-up",onClick:function(){return l("escalate")},children:"Escalate"}),(0,e.jsx)(r.$n,{onClick:function(){return l("legacy")},children:"Legacy UI"})]}),children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsxs)(r.Ki.Item,{label:"Mentor Help Ticket",children:["#",c,": ",(0,e.jsx)("div",{dangerouslySetInnerHTML:{__html:f}})]}),(0,e.jsx)(r.Ki.Item,{label:"State",children:h[v]}),h[v]===h.open?(0,e.jsx)(r.Ki.Item,{label:"Opened At",children:j+" ("+(0,o.Mg)((0,o.LI)(g/600*10,0)/10,1)+" minutes ago.)"}):(0,e.jsxs)(r.Ki.Item,{label:"Closed At",children:[C+" ("+(0,o.Mg)((0,o.LI)(E/600*10,0)/10,1)+" minutes ago.)",(0,e.jsx)(r.$n,{onClick:function(){return l("reopen")},children:"Reopen"})]}),(0,e.jsx)(r.Ki.Item,{label:"Actions",children:(0,e.jsx)("div",{dangerouslySetInnerHTML:{__html:M}})}),(0,e.jsx)(r.Ki.Item,{label:"Log",children:Object.keys(P).map(function(_,S){return(0,e.jsx)("div",{dangerouslySetInnerHTML:{__html:P[_]}},S)})})]})})})})}},26948:function(y,u,n){"use strict";n.r(u),n.d(u,{MessageMonitorContent:function(){return h}});var e=n(20462),o=n(61358),t=n(7081),r=n(88569),i=n(5871),h=function(x){var d=(0,t.Oc)(),a=d.act,l=d.data,s=l.linkedServer,c=(0,o.useState)(0),f=c[0],v=c[1],g=[];return g[0]=(0,e.jsx)(i.MessageMonitorMain,{}),g[1]=(0,e.jsx)(i.MessageMonitorLogs,{logs:s.pda_msgs,pda:!0}),g[2]=(0,e.jsx)(i.MessageMonitorLogs,{logs:s.rc_msgs,rc:!0}),g[3]=(0,e.jsx)(i.MessageMonitorAdmin,{}),g[4]=(0,e.jsx)(i.MessageMonitorSpamFilter,{}),(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(r.tU,{children:[(0,e.jsxs)(r.tU.Tab,{selected:f===0,onClick:function(){return v(0)},children:[(0,e.jsx)(r.In,{name:"bars"})," Main Menu"]},"Main"),(0,e.jsxs)(r.tU.Tab,{selected:f===1,onClick:function(){return v(1)},children:[(0,e.jsx)(r.In,{name:"font"})," Message Logs"]},"MessageLogs"),(0,e.jsxs)(r.tU.Tab,{selected:f===2,onClick:function(){return v(2)},children:[(0,e.jsx)(r.In,{name:"bold"})," Request Logs"]},"RequestLogs"),(0,e.jsxs)(r.tU.Tab,{selected:f===3,onClick:function(){return v(3)},children:[(0,e.jsx)(r.In,{name:"comment-alt"})," Admin Messaging"]},"AdminMessage"),(0,e.jsxs)(r.tU.Tab,{selected:f===4,onClick:function(){return v(4)},children:[(0,e.jsx)(r.In,{name:"comment-slash"})," Spam Filter"]},"SpamFilter"),(0,e.jsxs)(r.tU.Tab,{color:"red",onClick:function(){return a("deauth")},children:[(0,e.jsx)(r.In,{name:"sign-out-alt"})," Log Out"]},"Logout")]}),(0,e.jsx)(r.az,{m:2,children:g[f]})]})}},9760:function(y,u,n){"use strict";n.r(u),n.d(u,{MessageMonitorHack:function(){return i}});var e=n(20462),o=n(7081),t=n(88569),r=n(72859),i=function(h){var x=(0,o.Oc)().data,d=x.isMalfAI;return(0,e.jsx)(r.FullscreenNotice,{title:"ERROR",children:d?(0,e.jsx)(t.az,{children:"Brute-forcing for server key. It will take 20 seconds for every character that the password has."}):(0,e.jsxs)(t.az,{children:["01000010011100100111010101110100011001010010110",(0,e.jsx)("br",{}),"10110011001101111011100100110001101101001011011100110011",(0,e.jsx)("br",{}),"10010000001100110011011110111001000100000011100110110010",(0,e.jsx)("br",{}),"10111001001110110011001010111001000100000011010110110010",(0,e.jsx)("br",{}),"10111100100101110001000000100100101110100001000000111011",(0,e.jsx)("br",{}),"10110100101101100011011000010000001110100011000010110101",(0,e.jsx)("br",{}),"10110010100100000001100100011000000100000011100110110010",(0,e.jsx)("br",{}),"10110001101101111011011100110010001110011001000000110011",(0,e.jsx)("br",{}),"00110111101110010001000000110010101110110011001010111001",(0,e.jsx)("br",{}),"00111100100100000011000110110100001100001011100100110000",(0,e.jsx)("br",{}),"10110001101110100011001010111001000100000011101000110100",(0,e.jsx)("br",{}),"00110000101110100001000000111010001101000011001010010000",(0,e.jsx)("br",{}),"00111000001100001011100110111001101110111011011110111001",(0,e.jsx)("br",{}),"00110010000100000011010000110000101110011001011100010000",(0,e.jsx)("br",{}),"00100100101101110001000000111010001101000011001010010000",(0,e.jsx)("br",{}),"00110110101100101011000010110111001110100011010010110110",(0,e.jsx)("br",{}),"10110010100101100001000000111010001101000011010010111001",(0,e.jsx)("br",{}),"10010000001100011011011110110111001110011011011110110110",(0,e.jsx)("br",{}),"00110010100100000011000110110000101101110001000000111001",(0,e.jsx)("br",{}),"00110010101110110011001010110000101101100001000000111100",(0,e.jsx)("br",{}),"10110111101110101011100100010000001110100011100100111010",(0,e.jsx)("br",{}),"10110010100100000011010010110111001110100011001010110111",(0,e.jsx)("br",{}),"00111010001101001011011110110111001110011001000000110100",(0,e.jsx)("br",{}),"10110011000100000011110010110111101110101001000000110110",(0,e.jsx)("br",{}),"00110010101110100001000000111001101101111011011010110010",(0,e.jsx)("br",{}),"10110111101101110011001010010000001100001011000110110001",(0,e.jsx)("br",{}),"10110010101110011011100110010000001101001011101000010111",(0,e.jsx)("br",{}),"00010000001001101011000010110101101100101001000000111001",(0,e.jsx)("br",{}),"10111010101110010011001010010000001101110011011110010000",(0,e.jsx)("br",{}),"00110100001110101011011010110000101101110011100110010000",(0,e.jsx)("br",{}),"00110010101101110011101000110010101110010001000000111010",(0,e.jsx)("br",{}),"00110100001100101001000000111001001101111011011110110110",(0,e.jsx)("br",{}),"10010000001100100011101010111001001101001011011100110011",(0,e.jsx)("br",{}),"10010000001110100011010000110000101110100001000000111010",(0,e.jsx)("br",{}),"001101001011011010110010100101110"]})})}},38860:function(y,u,n){"use strict";n.r(u),n.d(u,{MessageMonitorLogin:function(){return i}});var e=n(20462),o=n(7081),t=n(88569),r=n(72859),i=function(h){var x=(0,o.Oc)(),d=x.act,a=x.data,l=a.isMalfAI;return(0,e.jsxs)(r.FullscreenNotice,{title:"Welcome",children:[(0,e.jsxs)(t.az,{fontSize:"1.5rem",bold:!0,children:[(0,e.jsx)(t.In,{name:"exclamation-triangle",verticalAlign:"middle",size:3,mr:"1rem"}),"Unauthorized"]}),(0,e.jsxs)(t.az,{color:"label",my:"1rem",children:["Decryption Key:",(0,e.jsx)(t.pd,{placeholder:"Decryption Key",ml:"0.5rem",onChange:function(s,c){return d("auth",{key:c})}})]}),!!l&&(0,e.jsx)(t.$n,{icon:"terminal",onClick:function(){return d("hack")},children:"Hack"}),(0,e.jsx)(t.az,{color:"label",children:"Please authenticate with the server in order to show additional options."})]})}},5871:function(y,u,n){"use strict";n.r(u),n.d(u,{MessageMonitorAdmin:function(){return x},MessageMonitorLogs:function(){return h},MessageMonitorMain:function(){return i},MessageMonitorSpamFilter:function(){return d}});var e=n(20462),o=n(61282),t=n(7081),r=n(88569),i=function(a){var l=(0,t.Oc)(),s=l.act,c=l.data,f=c.linkedServer;return(0,e.jsxs)(r.wn,{title:"Main Menu",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.$n,{icon:"link",onClick:function(){return s("find")},children:"Server Link"}),(0,e.jsx)(r.$n,{icon:"power-off",selected:f.active,onClick:function(){return s("active")},children:"Server "+(f.active?"Enabled":"Disabled")})]}),children:[(0,e.jsx)(r.Ki,{children:(0,e.jsx)(r.Ki.Item,{label:"Server Status",children:(0,e.jsx)(r.az,{color:"good",children:"Good"})})}),(0,e.jsx)(r.$n,{mt:1,icon:"key",onClick:function(){return s("pass")},children:"Set Custom Key"}),(0,e.jsx)(r.$n.Confirm,{color:"red",confirmIcon:"exclamation-triangle",icon:"exclamation-triangle",children:"Clear Message Logs"}),(0,e.jsx)(r.$n.Confirm,{color:"red",confirmIcon:"exclamation-triangle",icon:"exclamation-triangle",children:"Clear Request Logs"})]})},h=function(a){var l=(0,t.Oc)().act,s=a.logs,c=a.pda,f=a.rc;return(0,e.jsx)(r.wn,{title:c?"PDA Logs":f?"Request Logs":"Logs",buttons:(0,e.jsx)(r.$n.Confirm,{color:"red",icon:"trash",confirmIcon:"trash",onClick:function(){return l(c?"del_pda":"del_rc")},children:"Delete All"}),children:(0,e.jsx)(r.so,{wrap:"wrap",children:s.map(function(v,g){return(0,e.jsx)(r.so.Item,{m:"2px",basis:"49%",grow:g%2,children:(0,e.jsx)(r.wn,{title:v.sender+" -> "+v.recipient,buttons:(0,e.jsx)(r.$n.Confirm,{confirmContent:"Delete Log?",color:"bad",icon:"trash",confirmIcon:"trash",onClick:function(){return l("delete",{id:v.ref,type:f?"rc":"pda"})}}),children:f?(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Message",children:v.message}),(0,e.jsx)(r.Ki.Item,{label:"Verification",color:v.id_auth==="Unauthenticated"?"bad":"good",children:!!v.id_auth&&(0,o.jT)(v.id_auth)}),(0,e.jsx)(r.Ki.Item,{label:"Stamp",children:v.stamp})]}):v.message})},v.ref)})})})},x=function(a){var l=(0,t.Oc)(),s=l.act,c=l.data,f=c.possibleRecipients,v=c.customsender,g=c.customrecepient,E=c.customjob,j=c.custommessage,C=Object.keys(f);return(0,e.jsxs)(r.wn,{title:"Admin Messaging",children:[(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Sender",children:(0,e.jsx)(r.pd,{fluid:!0,value:v,onChange:function(M,P){return s("set_sender",{val:P})}})}),(0,e.jsx)(r.Ki.Item,{label:"Sender's Job",children:(0,e.jsx)(r.pd,{fluid:!0,value:E,onChange:function(M,P){return s("set_sender_job",{val:P})}})}),(0,e.jsx)(r.Ki.Item,{label:"Recipient",children:(0,e.jsx)(r.ms,{autoScroll:!1,selected:g,options:C,width:"100%",mb:-.7,onSelected:function(M){return s("set_recipient",{val:f[M]})}})}),(0,e.jsx)(r.Ki.Item,{label:"Message",verticalAlign:"top",children:(0,e.jsx)(r.pd,{fluid:!0,mb:.5,value:j,onChange:function(M,P){return s("set_message",{val:P})}})})]}),(0,e.jsx)(r.$n,{fluid:!0,icon:"comment",onClick:function(){return s("send_message")},children:"Send Message"})]})},d=function(a){var l=(0,t.Oc)(),s=l.act,c=l.data,f=c.linkedServer;return(0,e.jsxs)(r.wn,{title:"Spam Filtering",children:[(0,e.jsx)(r.Ki,{children:f.spamFilter.map(function(v){return(0,e.jsx)(r.Ki.Item,{label:v.index,buttons:(0,e.jsx)(r.$n,{icon:"trash",color:"bad",onClick:function(){return s("deltoken",{deltoken:v.index})},children:"Delete"}),children:v.token},v.index)})}),(0,e.jsx)(r.$n,{icon:"plus",onClick:function(){return s("addtoken")},children:"Add New Entry"})]})}},34692:function(y,u,n){"use strict";n.r(u),n.d(u,{MessageMonitor:function(){return a}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),i=n(3751),h=n(26948),x=n(9760),d=n(38860),a=function(l){var s=(0,o.Oc)().data,c=s.auth,f=s.linkedServer,v=s.hacking,g=s.emag,E;return v||g?E=(0,e.jsx)(x.MessageMonitorHack,{}):c?f?E=(0,e.jsx)(h.MessageMonitorContent,{}):E=(0,e.jsx)(t.az,{color:"bad",children:"ERROR"}):E=(0,e.jsx)(d.MessageMonitorLogin,{}),(0,e.jsx)(r.p8,{width:670,height:450,children:(0,e.jsxs)(r.p8.Content,{scrollable:!0,children:[(0,e.jsx)(i.TemporaryNotice,{}),E]})})}},25029:function(y,u,n){"use strict";n.r(u)},41785:function(y,u,n){"use strict";n.r(u),n.d(u,{Microwave:function(){return i}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),i=function(h){var x=(0,o.Oc)(),d=x.act,a=x.config,l=x.data,s=l.broken,c=l.operating,f=l.dirty,v=l.items;return(0,e.jsx)(r.p8,{width:400,height:500,children:(0,e.jsx)(r.p8.Content,{scrollable:!0,children:s&&(0,e.jsx)(t.wn,{children:(0,e.jsx)(t.az,{color:"bad",children:"Bzzzzttttt!!"})})||c&&(0,e.jsx)(t.wn,{children:(0,e.jsxs)(t.az,{color:"good",children:["Microwaving in progress!",(0,e.jsx)("br",{}),"Please wait...!"]})})||f&&(0,e.jsx)(t.wn,{children:(0,e.jsxs)(t.az,{color:"bad",children:["This microwave is dirty!",(0,e.jsx)("br",{}),"Please clean it before use!"]})})||v.length&&(0,e.jsx)(t.wn,{title:"Ingredients",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n,{icon:"radiation",onClick:function(){return d("cook")},children:"Microwave"}),(0,e.jsx)(t.$n,{icon:"eject",onClick:function(){return d("dispose")},children:"Eject"})]}),children:(0,e.jsx)(t.Ki,{children:v.map(function(g){return(0,e.jsxs)(t.Ki.Item,{label:g.name,children:[g.amt," ",g.extra]},g.name)})})})||(0,e.jsx)(t.wn,{children:(0,e.jsxs)(t.az,{color:"bad",children:[a.title," is empty."]})})})})}},10844:function(y,u,n){"use strict";n.r(u),n.d(u,{MiningOreProcessingConsole:function(){return x}});var e=n(20462),o=n(61282),t=n(7081),r=n(88569),i=n(15581),h=n(22588),x=function(c){var f=(0,t.Oc)(),v=f.act,g=f.data,E=g.unclaimedPoints,j=g.power,C=g.speed;return(0,e.jsx)(i.p8,{width:400,height:500,children:(0,e.jsxs)(i.p8.Content,{children:[(0,e.jsx)(h.MiningUser,{insertIdText:(0,e.jsxs)(r.az,{children:[(0,e.jsx)(r.$n,{icon:"arrow-right",mr:1,onClick:function(){return v("insert")},children:"Insert ID"}),"in order to claim points."]})}),(0,e.jsx)(r.wn,{title:"Status",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.$n,{icon:"bolt",selected:C,onClick:function(){return v("speed_toggle")},children:C?"High-Speed Active":"High-Speed Inactive"}),(0,e.jsx)(r.$n,{icon:"power-off",selected:j,onClick:function(){return v("power")},children:j?"Smelting":"Not Smelting"})]}),children:(0,e.jsx)(r.Ki,{children:(0,e.jsx)(r.Ki.Item,{label:"Current unclaimed points",buttons:(0,e.jsx)(r.$n,{disabled:E<1,icon:"download",onClick:function(){return v("claim")},children:"Claim"}),children:(0,e.jsx)(r.zv,{value:E})})})}),(0,e.jsx)(s,{})]})})},d=["Not Processing","Smelting","Compressing","Alloying"],a=["verdantium","mhydrogen","diamond","platinum","uranium","gold","silver","rutile","phoron","marble","lead","sand","carbon","hematite"],l=function(c,f){return a.indexOf(c.ore)===-1||a.indexOf(f.ore)===-1?c.ore-f.ore:a.indexOf(f.ore)-a.indexOf(c.ore)},s=function(c){var f=(0,t.Oc)(),v=f.act,g=f.data,E=g.ores,j=g.showAllOres;return(0,e.jsx)(r.wn,{title:"Ore Processing Controls",buttons:(0,e.jsx)(r.$n,{icon:j?"toggle-on":"toggle-off",selected:j,onClick:function(){return v("showAllOres")},children:j?"All Ores":"Ores in Machine"}),children:(0,e.jsx)(r.Ki,{children:E.length&&E.sort(l).map(function(C){return(0,e.jsx)(r.Ki.Item,{label:(0,o.Sn)(C.name),buttons:(0,e.jsx)(r.ms,{autoScroll:!1,width:"120px",color:C.processing===0&&"red"||C.processing===1&&"green"||C.processing===2&&"blue"||C.processing===3&&"yellow"||void 0,options:d,selected:d[C.processing],onSelected:function(M){return v("toggleSmelting",{ore:C.ore,set:d.indexOf(M)})}}),children:(0,e.jsx)(r.az,{inline:!0,children:(0,e.jsx)(r.zv,{value:C.amount})})},C.ore)})||(0,e.jsx)(r.az,{color:"bad",textAlign:"center",children:"No ores in machine."})})})}},71297:function(y,u,n){"use strict";n.r(u),n.d(u,{MiningStackingConsole:function(){return h}});var e=n(20462),o=n(61282),t=n(7081),r=n(88569),i=n(15581),h=function(x){var d=(0,t.Oc)(),a=d.act,l=d.data,s=l.stacktypes,c=l.stackingAmt;return(0,e.jsx)(i.p8,{width:400,height:500,children:(0,e.jsx)(i.p8.Content,{children:(0,e.jsx)(r.wn,{title:"Stacker Controls",children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Stacking",children:(0,e.jsx)(r.Q7,{fluid:!0,step:1,value:c,minValue:1,maxValue:50,stepPixelSize:5,onChange:function(f){return a("change_stack",{amt:f})}})}),(0,e.jsx)(r.Ki.Divider,{}),s.length&&s.sort().map(function(f){return(0,e.jsx)(r.Ki.Item,{label:(0,o.Sn)(f.type),buttons:(0,e.jsx)(r.$n,{icon:"eject",onClick:function(){return a("release_stack",{stack:f.type})},children:"Eject"}),children:(0,e.jsx)(r.zv,{value:f.amt})},f.type)})||(0,e.jsx)(r.Ki.Item,{label:"Empty",color:"average",children:"No stacks in machine."})]})})})})}},602:function(y,u,n){"use strict";n.r(u),n.d(u,{MiningVendor:function(){return s}});var e=n(20462),o=n(61282),t=n(61358),r=n(7081),i=n(88569),h=n(15581),x=n(22588);function d(){return d=Object.assign||function(g){for(var E=1;E=0)&&(j[M]=g[M]);return j}var l={Alphabetical:function(g,E){return g.name>E.name},"By availability":function(g,E){return-(g.affordable-E.affordable)},"By price":function(g,E){return g.price-E.price}},s=function(g){var E=function(w){_(w)},j=function(w){b(w)},C=function(w){$(w)},M=(0,t.useState)(""),P=M[0],_=M[1],S=(0,t.useState)("Alphabetical"),T=S[0],b=S[1],L=(0,t.useState)(!1),W=L[0],$=L[1];return(0,e.jsx)(h.p8,{width:400,height:450,children:(0,e.jsxs)(h.p8.Content,{className:"Layout__content--flexColumn",scrollable:!0,children:[(0,e.jsx)(x.MiningUser,{insertIdText:"Please insert an ID in order to make purchases."}),(0,e.jsx)(f,{searchText:P,sortOrder:T,descending:W,onSearchText:E,onSortOrder:j,onDescending:C}),(0,e.jsx)(c,{searchText:P,sortOrder:T,descending:W})]})})},c=function(g){var E=(0,r.Oc)(),j=E.act,C=E.data,M=C.has_id,P=C.id,_=C.items,S=(0,o.XZ)(g.searchText,function(L){return L[0]}),T=!1,b=Object.entries(_).map(function(L,W){var $=Object.entries(L[1]).filter(S).map(function(z){return z[1].affordable=+(M&&P.points>=z[1].price),z[1]}).sort(l[g.sortOrder]);if($.length!==0)return g.descending&&($=$.reverse()),T=!0,(0,e.jsx)(v,{title:L[0],items:$},L[0])});return(0,e.jsx)(i.so.Item,{grow:"1",overflow:"auto",children:(0,e.jsx)(i.wn,{children:T?b:(0,e.jsx)(i.az,{color:"label",children:"No items matching your criteria was found!"})})})},f=function(g){return(0,e.jsx)(i.az,{mb:"0.5rem",children:(0,e.jsxs)(i.so,{width:"100%",children:[(0,e.jsx)(i.so.Item,{grow:"1",mr:"0.5rem",children:(0,e.jsx)(i.pd,{placeholder:"Search by item name..",value:g.searchText,width:"100%",onInput:function(E,j){return g.onSearchText(j)}})}),(0,e.jsx)(i.so.Item,{basis:"30%",children:(0,e.jsx)(i.ms,{autoScroll:!1,selected:g.sortOrder,options:Object.keys(l),width:"100%",lineHeight:"19px",onSelected:function(E){return g.onSortOrder(E)}})}),(0,e.jsx)(i.so.Item,{children:(0,e.jsx)(i.$n,{icon:g.descending?"arrow-down":"arrow-up",height:"19px",tooltip:g.descending?"Descending order":"Ascending order",tooltipPosition:"bottom-end",ml:"0.5rem",onClick:function(){return g.onDescending(!g.descending)}})})]})})},v=function(g){var E=(0,r.Oc)(),j=E.act,C=E.data,M=C.has_id,P=C.id,_=g.title,S=g.items,T=a(g,["title","items"]);return(0,e.jsx)(i.Nt,d({open:!0,title:_},T,{children:S.map(function(b){return(0,e.jsxs)(i.az,{children:[(0,e.jsx)(i.az,{inline:!0,verticalAlign:"middle",lineHeight:"20px",style:{float:"left"},children:b.name}),(0,e.jsx)(i.$n,{disabled:!M||P.points=v.max_damage?"Component destroyed!":s(v,g,E,j)?"Disabled due to fully intact component!":"";case"rem_component":return v.exists?"":"Disabled due to missing component!"}return""}function f(v,g){switch(g){case"add_component":return v.brute_damage+v.electronics_damage>=v.max_damage||v.installed!==1||!v.exists?"black":(v.brute_damage+v.electronics_damage)/v.max_damage>.66?"red":(v.brute_damage+v.electronics_damage)/v.max_damage>.33?"orange":(v.brute_damage+v.electronics_damage)/v.max_damage>0?"yellow":void 0;case"rem_component":return}return""}},87193:function(y,u,n){"use strict";n.r(u),n.d(u,{ModifyRobotModules:function(){return d}});var e=n(20462),o=n(61282),t=n(61358),r=n(7081),i=n(88569),h=n(68333),x=n(17374),d=function(l){var s=l.target,c=l.source,f=l.model_options,v=(0,r.Oc)().act,g=(0,t.useState)(""),E=g[0],j=g[1],C=(0,t.useState)(""),M=C[0],P=C[1];return(0,e.jsxs)(e.Fragment,{children:[!s.active&&(0,e.jsx)(h.NoSpriteWarning,{name:s.name}),(0,e.jsxs)(i.so,{height:s.active?"80%":"75%",children:[(0,e.jsx)(i.so.Item,{width:"40%",fill:!0,children:(0,e.jsxs)(i.wn,{title:"Source Module",scrollable:!0,fill:!0,children:[(0,e.jsx)(i.az,{children:"Robot to salvage"}),(0,e.jsx)(i.ms,{width:"100%",selected:c?c.model:"",options:f,onSelected:function(_){return v("select_source",{new_source:_})}}),!!c&&(0,e.jsx)(a,{previewImage:c.front,searchText:E,onSearchText:j,action:"add_module",buttonIcon:"arrow-right-to-bracket",buttonColor:"green",modules:c.modules})]})}),(0,e.jsx)(i.so.Item,{grow:!0}),(0,e.jsx)(i.so.Item,{children:(0,e.jsxs)(i.BJ,{vertical:!0,children:[(0,e.jsx)(i.BJ.Item,{children:(0,e.jsx)(i.$n.Confirm,{width:"50px",height:"50px",disabled:!c,tooltip:"Swaps the source and destination module types.",icon:"arrows-rotate",iconSize:4,onClick:function(){return v("swap_module")}})}),(0,e.jsx)(i.BJ.Item,{children:(0,e.jsx)(i.$n.Confirm,{width:"50px",height:"50px",mt:40,textAlign:"center",tooltip:(s.crisis_override?"Disable":"Enable")+" ERT module access and reset the robot!",color:s.crisis_override?"green":"yellow",icon:"circle-radiation",iconSize:4,onClick:function(){return v("ert_toggle")}})})]})}),(0,e.jsx)(i.so.Item,{grow:!0}),(0,e.jsx)(i.so.Item,{width:"40%",fill:!0,children:(0,e.jsxs)(i.wn,{title:"Destination Module",scrollable:!0,fill:!0,children:[(0,e.jsx)(i.az,{children:s?s.module:""}),(0,e.jsx)(i.$n.Confirm,{fluid:!0,icon:"arrow-rotate-left",confirmColor:"red",confirmIcon:"triangle-exclamation",onClick:function(){return v("reset_module")},tooltip:"Allows to reset the module back to default.",children:"Reset Module"}),(0,e.jsx)(i.cG,{}),(0,e.jsx)(a,{previewImage:s.front,searchText:M,onSearchText:P,action:"rem_module",buttonIcon:"trash",buttonColor:"red",modules:s.modules})]})})]})]})},a=function(l){var s=(0,r.Oc)().act,c=l.previewImage,f=l.searchText,v=l.onSearchText,g=l.action,E=l.modules,j=l.buttonIcon,C=l.buttonColor;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(i.cG,{}),(0,e.jsx)(i._V,{src:"data:image/jpeg;base64, "+c,style:{display:"block",marginLeft:"auto",marginRight:"auto",height:"200px"}}),(0,e.jsx)(i.cG,{}),(0,e.jsx)(i.pd,{fluid:!0,value:f,placeholder:"Search for modules...",onInput:function(M,P){return v(P)}}),(0,e.jsx)(i.cG,{}),(0,e.jsx)(i.BJ,{children:(0,e.jsx)(i.BJ.Item,{width:"100%",children:(0,x.prepareSearch)(E,f).map(function(M,P){return(0,e.jsx)(i.$n,{fluid:!0,tooltip:M.desc,onClick:function(){return s(g,{module:M.ref})},children:(0,e.jsxs)(i.so,{varticalAlign:"center",children:[(0,e.jsx)(i.so.Item,{children:(0,e.jsx)(i._V,{src:M.icon})}),(0,e.jsx)(i.so.Item,{ml:"10px",children:(0,o.ZH)(M.name)}),(0,e.jsx)(i.so.Item,{grow:!0}),(0,e.jsx)(i.so.Item,{children:(0,e.jsx)(i.In,{name:j,backgroundColor:C,size:1.5})})]})},P)})})})]})}},60442:function(y,u,n){"use strict";n.r(u),n.d(u,{ModifyRobotPKA:function(){return d}});var e=n(20462),o=n(61282),t=n(61358),r=n(7081),i=n(88569),h=n(68333),x=n(17374),d=function(a){var l=(0,r.Oc)().act,s=a.target,c=(0,t.useState)(""),f=c[0],v=c[1],g=(0,t.useState)(""),E=g[0],j=g[1];return(0,e.jsxs)(e.Fragment,{children:[!s.active&&(0,e.jsx)(h.NoSpriteWarning,{name:s.name}),s.pka?(0,e.jsxs)(i.so,{height:s.active?"80%":"75%",children:[(0,e.jsxs)(i.so.Item,{width:"35%",fill:!0,children:[(0,e.jsx)(i.cG,{}),(0,e.jsxs)(i.az,{children:["Remaining Capacity: ",s.pka.capacity]}),(0,e.jsx)(i.cG,{}),(0,e.jsx)(i.pd,{fluid:!0,value:f,placeholder:"Search for modkits...",onInput:function(C,M){return v(M)}}),(0,e.jsx)(i.cG,{}),(0,x.prepareSearch)(s.pka.modkits,f).map(function(C,M){return(0,e.jsxs)(i.$n,{fluid:!0,disabled:C.denied,color:"green",tooltip:C.denied_by?"Modul incompatible with: "+C.denied_by:"",onClick:function(){return l("install_modkit",{modkit:C.path})},children:[(0,o.ZH)(C.name)," ",C.costs]},M)})]}),(0,e.jsx)(i.so.Item,{grow:!0}),(0,e.jsx)(i.so.Item,{children:(0,e.jsx)(i._V,{src:(0,x.getModuleIcon)(s.modules,s.pka.name),width:"150px"})}),(0,e.jsx)(i.so.Item,{grow:!0}),(0,e.jsxs)(i.so.Item,{width:"35%",fill:!0,children:[(0,e.jsx)(i.cG,{}),(0,e.jsxs)(i.az,{children:["Used Capacity: ",s.pka.max_capacity-s.pka.capacity]}),(0,e.jsx)(i.cG,{}),(0,e.jsx)(i.pd,{fluid:!0,value:E,placeholder:"Search for modkits...",onInput:function(C,M){return j(M)}}),(0,e.jsx)(i.cG,{}),(0,x.prepareSearch)(s.pka.installed_modkits,E).map(function(C,M){return(0,e.jsxs)(i.$n,{fluid:!0,color:"red",onClick:function(){return l("remove_modkit",{modkit:C.ref})},children:[(0,o.ZH)(C.name)," ",C.costs]},M)})]})]}):(0,e.jsxs)(i.IC,{danger:!0,children:[s.name," has no PKA installed."]})]})}},62975:function(y,u,n){"use strict";n.r(u),n.d(u,{ModifyRobotRadio:function(){return d}});var e=n(20462),o=n(61282),t=n(61358),r=n(7081),i=n(88569),h=n(68333),x=n(17374),d=function(l){var s=l.target,c=(0,t.useState)(""),f=c[0],v=c[1],g=(0,t.useState)(""),E=g[0],j=g[1];return(0,e.jsxs)(e.Fragment,{children:[!s.active&&(0,e.jsx)(h.NoSpriteWarning,{name:s.name}),(0,e.jsxs)(i.so,{height:s.active?"80%":"75%",children:[(0,e.jsx)(i.so.Item,{width:"30%",fill:!0,children:(0,e.jsx)(a,{title:"Add Radio Channel",searchText:f,onSearchText:v,channels:s.availalbe_channels,action:"add_channel",buttonColor:"green",buttonIcon:"arrow-right-to-bracket"})}),(0,e.jsx)(i.so.Item,{width:"40%",children:(0,e.jsx)(i._V,{src:"data:image/jpeg;base64, "+s.back,style:{display:"block",marginLeft:"auto",marginRight:"auto",width:"200px"}})}),(0,e.jsx)(i.so.Item,{width:"30%",fill:!0,children:(0,e.jsx)(a,{title:"Remove Radio Channel",searchText:E,onSearchText:j,channels:s.radio_channels,action:"rem_channel",buttonColor:"red",buttonIcon:"trash"})})]})]})},a=function(l){var s=(0,r.Oc)().act,c=l.title,f=l.searchText,v=l.onSearchText,g=l.channels,E=l.action,j=l.buttonColor,C=l.buttonIcon;return(0,e.jsxs)(i.wn,{title:c,fill:!0,scrollable:!0,children:[(0,e.jsx)(i.pd,{fluid:!0,value:f,placeholder:"Search for channels...",onInput:function(M,P){return v(P)}}),(0,e.jsx)(i.cG,{}),(0,e.jsx)(i.BJ,{children:(0,e.jsx)(i.BJ.Item,{width:"100%",children:(0,x.prepareSearch)(g,f).map(function(M,P){return(0,e.jsx)(i.$n,{fluid:!0,onClick:function(){return s(E,{channel:M})},children:(0,e.jsxs)(i.so,{varticalAlign:"center",children:[(0,e.jsx)(i.so.Item,{children:(0,o.ZH)(M)}),(0,e.jsx)(i.so.Item,{grow:!0}),(0,e.jsx)(i.so.Item,{children:(0,e.jsx)(i.In,{name:C,backgroundColor:j,size:1.5})})]})},P)})})})]})}},85015:function(y,u,n){"use strict";n.r(u),n.d(u,{ModifyRobotUpgrades:function(){return a}});var e=n(20462),o=n(61282),t=n(61358),r=n(7081),i=n(88569),h=n(68333),x=n(46834),d=n(17374),a=function(s){var c=s.target,f=(0,t.useState)(""),v=f[0],g=f[1],E=(0,t.useState)(""),j=E[0],C=E[1],M=(0,t.useState)(""),P=M[0],_=M[1],S=(0,t.useState)(""),T=S[0],b=S[1],L=(0,t.useState)(""),W=L[0],$=L[1],z=(0,t.useState)(""),w=z[0],V=z[1];return(0,e.jsxs)(e.Fragment,{children:[!c.active&&(0,e.jsx)(h.NoSpriteWarning,{name:c.name}),(0,e.jsxs)(i.so,{height:"35%",children:[(0,e.jsx)(i.so.Item,{width:"30%",fill:!0,children:(0,e.jsx)(l,{title:"Add Compatibility",searchText:v,onSearchText:g,upgrades:c.whitelisted_upgrades,action:"add_compatibility"})}),(0,e.jsx)(i.so.Item,{width:"40%",children:(0,e.jsx)(i._V,{src:"data:image/jpeg;base64, "+c.side,style:{display:"block",marginLeft:"auto",marginRight:"auto",width:"200px"}})}),(0,e.jsx)(i.so.Item,{width:"30%",fill:!0,children:(0,e.jsx)(l,{title:"Remove Compatibility",searchText:j,onSearchText:C,upgrades:c.blacklisted_upgrades,action:"rem_compatibility"})})]}),(0,e.jsxs)(i.so,{height:c.active?"45%":"40%",children:[(0,e.jsx)(i.so.Item,{width:"25%",fill:!0,children:(0,e.jsx)(l,{title:"Utility Upgrade",searchText:P,onSearchText:_,upgrades:c.utility_upgrades,action:"add_upgrade"})}),(0,e.jsx)(i.so.Item,{width:"25%",fill:!0,children:(0,e.jsx)(l,{title:"Basic Upgrade",searchText:T,onSearchText:b,upgrades:c.basic_upgrades,action:"add_upgrade"})}),(0,e.jsx)(i.so.Item,{width:"25%",fill:!0,children:(0,e.jsx)(l,{title:"Advanced Upgrade",searchText:W,onSearchText:$,upgrades:c.advanced_upgrades,action:"add_upgrade"})}),(0,e.jsx)(i.so.Item,{width:"25%",fill:!0,children:(0,e.jsx)(l,{title:"Restricted Upgrade",searchText:w,onSearchText:V,upgrades:c.restricted_upgrades,action:"add_upgrade"})})]})]})},l=function(s){var c=(0,r.Oc)().act,f=s.title,v=s.searchText,g=s.onSearchText,E=s.upgrades,j=s.action;return(0,e.jsxs)(i.wn,{title:f,fill:!0,scrollable:!0,scrollableHorizontal:!0,children:[(0,e.jsx)(i.pd,{fluid:!0,value:v,placeholder:"Search for upgrades...",onInput:function(C,M){return g(M)}}),(0,e.jsx)(i.cG,{}),(0,e.jsx)(i.BJ,{children:(0,e.jsx)(i.BJ.Item,{width:"100%",children:(0,d.prepareSearch)(E,v).map(function(C,M){return(0,e.jsx)(i.$n,{fluid:!0,color:C.installed!==void 0?x.install2col[C.installed]:void 0,onClick:function(){return c(j,{upgrade:C.path})},children:(0,o.ZH)(C.name)},M)})})})]})}},68333:function(y,u,n){"use strict";n.r(u),n.d(u,{NoSpriteWarning:function(){return t}});var e=n(20462),o=n(88569),t=function(r){var i=r.name;return(0,e.jsxs)(o.IC,{warning:!0,children:["Warning, ",i," has not yet chosen a sprite. Functionality might be limited."]})}},46834:function(y,u,n){"use strict";n.r(u),n.d(u,{install2col:function(){return e}});var e={undefined:"",0:"red",1:"green",2:"grey"}},17374:function(y,u,n){"use strict";n.r(u),n.d(u,{getModuleIcon:function(){return i},prepareSearch:function(){return r}});var e=n(7402),o=n(15813),t=n(61282);function r(h,x){x===void 0&&(x="");var d=(0,t.XZ)(x,function(a){return typeof a=="string"?a:a.name});return(0,o.L)([function(a){return x?(0,e.pb)(a,d):a}])(h)}function i(h,x){if(h){var d=h.filter(function(a){return a.name===x});if(d.length>0)return d[0].icon}return""}},97021:function(y,u,n){"use strict";n.r(u),n.d(u,{ModifyRobot:function(){return v}});var e=n(20462),o=n(61358),t=n(7081),r=n(88569),i=n(15581),h=n(7881),x=n(81926),d=n(67462),a=n(61123),l=n(87193),s=n(60442),c=n(62975),f=n(85015),v=function(g){var E=(0,t.Oc)(),j=E.act,C=E.data,M=C.target,P=C.all_robots,_=C.source,S=C.model_options,T=C.cell,b=C.cell_options,L=C.id_icon,W=C.access_options,$=C.ion_law_nr,z=C.ion_law,w=C.zeroth_law,V=C.inherent_law,k=C.supplied_law,H=C.supplied_law_position,Y=C.zeroth_laws,q=C.ion_laws,Z=C.inherent_laws,Q=C.supplied_laws,J=C.has_zeroth_laws,X=C.has_ion_laws,ee=C.has_inherent_laws,se=C.has_supplied_laws,ie=C.isAI,ue=C.isMalf,he=C.isSlaved,be=C.active_ais,je=C.selected_ai,Ce=C.channel,Ne=C.channels,sn=C.law_sets,en=(0,o.useState)(0),De=en[0],Qe=en[1],Mn=(0,o.useState)(M?M.name:""),Pn=Mn[0],gn=Mn[1],An=(0,o.useState)(""),xn=An[0],cn=An[1];(0,o.useEffect)(function(){M!=null&&M.name&&gn(M.name)},[M==null?void 0:M.name]);var Se=[];return Se[0]=(0,e.jsx)(l.ModifyRobotModules,{target:M,source:_,model_options:S}),Se[1]=(0,e.jsx)(f.ModifyRobotUpgrades,{target:M}),Se[2]=(0,e.jsx)(s.ModifyRobotPKA,{target:M}),Se[3]=(0,e.jsx)(c.ModifyRobotRadio,{target:M}),Se[4]=(0,e.jsx)(a.ModifyRobotComponent,{target:M,cell:T,cells:b}),Se[5]=(0,e.jsx)(d.ModifyRobotAccess,{target:M,tab_icon:L,all_access:W}),Se[6]=(0,e.jsx)(h.LawManagerLaws,{isAdmin:!0,hasScroll:!0,sectionHeight:"80%",ion_law_nr:$,ion_law:z,zeroth_law:w,inherent_law:V,supplied_law:k,supplied_law_position:H,zeroth_laws:Y,ion_laws:q,inherent_laws:Z,supplied_laws:Q,has_zeroth_laws:J,has_ion_laws:X,has_inherent_laws:ee,has_supplied_laws:se,isAI:ie,isMalf:ue,channel:Ce,channels:Ne}),Se[7]=(0,e.jsx)(r.wn,{scrollable:!0,fill:!0,height:"80%",children:(0,e.jsx)(h.LawManagerLawSets,{isAdmin:!0,isMalf:ue,law_sets:sn,ion_law_nr:$,searchLawName:xn,onSearchLawName:cn})}),(0,e.jsx)(i.p8,{width:M!=null&&M.module?900:400,height:700,children:(0,e.jsxs)(i.p8.Content,{children:[M?(0,e.jsxs)(r.IC,{info:!0,children:[M.name,!!M.ckey&&" played by "+M.ckey,"."]}):(0,e.jsx)(r.IC,{danger:!0,children:"No target selected. Please pick one."}),(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Player Selection",children:(0,e.jsxs)(r.BJ,{inline:!0,align:"baseline",children:[(0,e.jsx)(r.BJ.Item,{children:(0,e.jsx)(r.ms,{selected:M?M.name:"",options:P,onSelected:function(ze){return j("select_target",{new_target:ze})}})}),!!(M!=null&&M.module)&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.BJ.Item,{children:(0,e.jsx)(r.pd,{width:"200px",value:Pn,onChange:function(ze,Oe){return gn(Oe)}})}),(0,e.jsx)(r.BJ.Item,{children:(0,e.jsx)(r.$n,{disabled:Pn.length<3,onClick:function(){return j("rename",{new_name:Pn})},children:"Rename"})}),(0,e.jsx)(r.BJ.Item,{grow:!0}),(0,e.jsx)(r.BJ.Item,{children:(0,e.jsx)(r.$n,{icon:M.emagged?"sd-card":"bolt",color:M.emagged?"green":"red",onClick:function(){return j("toggle_emag")},tooltip:(M.emagged?"Disables":"Enables")+" hacked state",children:"EMAG"})})]})]})}),(0,e.jsx)(r.Ki.Item,{label:"AI Selection",children:!!(M!=null&&M.module)&&(0,e.jsxs)(r.BJ,{inline:!0,align:"baseline",children:[(0,e.jsx)(r.BJ.Item,{children:(0,e.jsx)(r.ms,{selected:je||"",options:be,onSelected:function(ze){return j("select_ai",{new_ai:ze})}})}),(0,e.jsx)(r.BJ.Item,{children:(0,e.jsx)(r.$n,{icon:"plug",disabled:je===he,color:"green",tooltip:"Connect the robot to an AI",onClick:function(){return j("swap_sync")},children:he||"Connect AI"})}),(0,e.jsx)(r.BJ.Item,{children:(0,e.jsx)(r.$n,{icon:"plug-circle-minus",disabled:!he,color:"red",tooltip:"Disconnects the robot from the AI",onClick:function(){return j("disconnect_ai")},children:"DC"})})]})})]}),(0,e.jsx)(r.cG,{}),!!M&&(M.module?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(r.tU,{children:[(0,e.jsx)(r.tU.Tab,{selected:De===0,onClick:function(){return Qe(0)},children:"Module Manager"}),(0,e.jsx)(r.tU.Tab,{selected:De===1,onClick:function(){return Qe(1)},children:"Upgrade Manager"}),(0,e.jsx)(r.tU.Tab,{selected:De===2,onClick:function(){return Qe(2)},children:"PKA"}),(0,e.jsx)(r.tU.Tab,{selected:De===3,onClick:function(){return Qe(3)},children:"Radio Manager"}),(0,e.jsx)(r.tU.Tab,{selected:De===4,onClick:function(){return Qe(4)},children:"Component Manager"}),(0,e.jsx)(r.tU.Tab,{selected:De===5,onClick:function(){return Qe(5)},children:"Access Manager"}),(0,e.jsx)(r.tU.Tab,{selected:De===6,onClick:function(){return Qe(6)},children:"Law Manager"}),(0,e.jsx)(r.tU.Tab,{selected:De===7,onClick:function(){return Qe(7)},children:"Law Sets"})]}),Se[De]]}):(0,e.jsx)(x.ModifyRobotNoModule,{target:M}))]})})}},62114:function(y,u,n){"use strict";n.r(u)},97144:function(y,u,n){"use strict";n.r(u),n.d(u,{MuleBot:function(){return i}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),i=function(d){var a=(0,o.Oc)(),l=a.act,s=a.data,c=s.suffix,f=s.load,v=s.hatch;return(0,e.jsx)(r.p8,{width:350,height:500,children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsxs)(t.wn,{title:"Multiple Utility Load Effector Mk. III",children:[(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"ID",children:c}),(0,e.jsx)(t.Ki.Item,{label:"Current Load",buttons:(0,e.jsx)(t.$n,{icon:"eject",disabled:!f,onClick:function(){return l("unload")},children:"Unload Now"}),children:f||"None."})]}),v?(0,e.jsx)(x,{}):(0,e.jsx)(h,{})]})})})},h=function(d){var a=(0,o.Oc)(),l=a.act,s=a.data,c=s.power,f=s.locked,v=s.issilicon,g=s.auto_return,E=s.crates_only;return(0,e.jsx)(t.wn,{title:"Controls",buttons:(0,e.jsx)(t.$n,{icon:"power-off",selected:c,disabled:f&&!v,onClick:function(){return l("power")},children:c?"On":"Off"}),children:f&&!v?(0,e.jsx)(t.az,{color:"bad",children:"This interface is currently locked."}):(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n,{fluid:!0,icon:"stop",onClick:function(){return l("stop")},children:"Stop"}),(0,e.jsx)(t.$n,{fluid:!0,icon:"truck-monster",onClick:function(){return l("go")},children:"Proceed"}),(0,e.jsx)(t.$n,{fluid:!0,icon:"home",onClick:function(){return l("home")},children:"Return Home"}),(0,e.jsx)(t.$n,{fluid:!0,icon:"map-marker-alt",onClick:function(){return l("destination")},children:"Set Destination"}),(0,e.jsx)(t.$n,{fluid:!0,icon:"cog",onClick:function(){return l("sethome")},children:"Set Home"}),(0,e.jsx)(t.$n,{fluid:!0,icon:"home",selected:g,onClick:function(){return l("autoret")},children:"Auto Return Home: "+(g?"Enabled":"Disabled")}),(0,e.jsx)(t.$n,{fluid:!0,icon:"biking",selected:!E,onClick:function(){return l("cargotypes")},children:"Non-standard Cargo: "+(E?"Disabled":"Enabled")})]})})},x=function(d){var a=(0,o.Oc)(),l=a.act,s=a.data,c=s.safety;return(0,e.jsx)(t.wn,{title:"Maintenance Panel",children:(0,e.jsx)(t.$n,{fluid:!0,icon:"skull-crossbones",color:c?"green":"red",onClick:function(){return l("safety")},children:"Safety: "+(c?"Engaged":"Disengaged (DANGER)")})})}},7428:function(y,u,n){"use strict";n.r(u),n.d(u,{NIFMain:function(){return i}});var e=n(20462),o=n(7081),t=n(88569),r=n(17229),i=function(h){var x=(0,o.Oc)(),d=x.act,a=x.data,l=a.nif_percent,s=a.nif_stat,c=a.nutrition,f=a.isSynthetic,v=a.modules,g=h.setViewing;return(0,e.jsxs)(t.az,{children:[(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"NIF Condition",children:(0,e.jsxs)(t.z2,{value:l,minValue:0,maxValue:100,ranges:{good:[50,1/0],average:[25,50],bad:[-1/0,0]},children:[(0,r.getNifCondition)(s,l)," (",(0,e.jsx)(t.zv,{value:l}),"%)"]})}),(0,e.jsx)(t.Ki.Item,{label:"NIF Power",children:(0,e.jsx)(t.z2,{value:c,minValue:0,maxValue:700,ranges:{good:[250,1/0],average:[150,250],bad:[0,150]},children:(0,r.getNutritionText)(c,f)})})]}),(0,e.jsx)(t.wn,{title:"NIFSoft Modules",mt:1,children:(0,e.jsx)(t.Ki,{children:v.map(function(E){return(0,e.jsx)(t.Ki.Item,{label:E.name,buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n.Confirm,{icon:"trash",color:"bad",confirmContent:"UNINSTALL?",confirmIcon:"trash",tooltip:"Uninstall Module",tooltipPosition:"left",onClick:function(){return d("uninstall",{module:E.ref})}}),(0,e.jsx)(t.$n,{icon:"search",onClick:function(){return g(E)},tooltip:"View Information",tooltipPosition:"left"})]}),children:E.activates&&(0,e.jsx)(t.$n,{fluid:!0,selected:E.active,onClick:function(){return d("toggle_module",{module:E.ref})},children:E.stat_text})||(0,e.jsx)(t.az,{children:E.stat_text})},E.ref)})})})]})}},84772:function(y,u,n){"use strict";n.r(u),n.d(u,{NIFSettings:function(){return r}});var e=n(20462),o=n(7081),t=n(88569),r=function(i){var h=(0,o.Oc)(),x=h.act,d=h.data,a=d.valid_themes,l=d.theme;return(0,e.jsx)(t.Ki,{children:(0,e.jsx)(t.Ki.Item,{label:"NIF Theme",verticalAlign:"top",children:(0,e.jsxs)(t.so,{children:[(0,e.jsx)(t.so.Item,{grow:1,children:(0,e.jsx)(t.ms,{autoScroll:!1,width:"100%",selected:l||"default",options:a,onSelected:function(s){return x("setTheme",{theme:s})}})}),l?(0,e.jsx)(t.so.Item,{children:(0,e.jsx)(t.$n,{width:"22px",icon:"undo",color:"red",onClick:function(){x("setTheme",{theme:null})}})}):""]})})})}},68529:function(y,u,n){"use strict";n.r(u),n.d(u,{NIF_INSTALLING:function(){return r},NIF_POWFAIL:function(){return o},NIF_PREINSTALL:function(){return i},NIF_TEMPFAIL:function(){return t},NIF_WORKING:function(){return e}});var e=0,o=1,t=2,r=3,i=4},17229:function(y,u,n){"use strict";n.r(u),n.d(u,{getNifCondition:function(){return o},getNutritionText:function(){return t}});var e=n(68529);function o(r,i){switch(r){case e.NIF_WORKING:return i<25?"Service Needed Soon":"Operating Normally";case e.NIF_POWFAIL:return"Insufficient Energy!";case e.NIF_TEMPFAIL:return"System Failure!";case e.NIF_INSTALLING:return"Adapting To User"}return"Unknown"}function t(r,i){return i?r>=450?"Overcharged":r>=250?"Good Charge":"Low Charge":r>=250?"NIF Power Requirement met.":r>=150?"Fluctuations in available power.":"Power failure imminent."}},63300:function(y,u,n){"use strict";n.r(u),n.d(u,{NIF:function(){return d}});var e=n(20462),o=n(61358),t=n(7081),r=n(88569),i=n(15581),h=n(7428),x=n(84772),d=function(a){var l=(0,t.Oc)(),s=l.act,c=l.config,f=l.data,v=f.theme,g=f.last_notification,E=(0,o.useState)(!1),j=E[0],C=E[1],M=(0,o.useState)(null),P=M[0],_=M[1];return(0,e.jsx)(i.p8,{theme:v,width:500,height:400,children:(0,e.jsxs)(i.p8.Content,{scrollable:!0,children:[!!g&&(0,e.jsx)(r.IC,{info:!0,children:(0,e.jsx)(r.XI,{verticalAlign:"middle",children:(0,e.jsxs)(r.XI.Row,{verticalAlign:"middle",children:[(0,e.jsx)(r.XI.Cell,{verticalAlign:"middle",children:g}),(0,e.jsx)(r.XI.Cell,{verticalAlign:"middle",collapsing:!0,children:(0,e.jsx)(r.$n,{color:"red",icon:"times",tooltip:"Dismiss",tooltipPosition:"left",onClick:function(){return s("dismissNotification")}})})]})})}),!!P&&(0,e.jsx)(r.aF,{m:1,p:0,color:"label",children:(0,e.jsxs)(r.wn,{m:0,title:P.name,buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.$n.Confirm,{icon:"ban",color:"bad",confirmIcon:"ban",confirmContent:"Uninstall "+P.name+"?",onClick:function(){s("uninstall",{module:P.ref}),_(null)},children:"Uninstall"}),(0,e.jsx)(r.$n,{icon:"window-close",onClick:function(){return _(null)}})]}),children:[(0,e.jsx)(r.az,{children:P.desc}),(0,e.jsxs)(r.az,{children:["It consumes",(0,e.jsx)(r.az,{color:"good",inline:!0,children:P.p_drain}),"energy units while installed, and",(0,e.jsx)(r.az,{color:"average",inline:!0,children:P.a_drain}),"additionally while active."]}),(0,e.jsxs)(r.az,{color:P.illegal?"bad":"good",children:["It is ",P.illegal?"NOT ":"","a legal software package."]}),(0,e.jsxs)(r.az,{children:["The MSRP of the package is",(0,e.jsxs)(r.az,{color:"good",inline:!0,children:[P.cost,"\u20AE."]})]}),(0,e.jsxs)(r.az,{children:["The difficulty to construct the associated implant is\xA0",(0,e.jsxs)(r.az,{color:"good",inline:!0,children:["Rating ",P.wear]}),"."]})]})}),(0,e.jsx)(r.wn,{title:"Welcome to your NIF, "+c.user.name,buttons:(0,e.jsx)(r.$n,{icon:"cogs",tooltip:"Settings",tooltipPosition:"bottom-end",selected:j,onClick:function(){return C(!j)}}),children:j&&(0,e.jsx)(x.NIFSettings,{})||(0,e.jsx)(h.NIFMain,{setViewing:_})})]})})}},11045:function(y,u,n){"use strict";n.r(u)},14910:function(y,u,n){"use strict";n.r(u),n.d(u,{NTNetRelay:function(){return h}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),i=n(72859),h=function(a){var l=(0,o.Oc)().data,s=l.dos_crashed,c=(0,e.jsx)(x,{});return s&&(c=(0,e.jsx)(d,{})),(0,e.jsx)(r.p8,{width:s?700:500,height:s?600:300,children:(0,e.jsx)(r.p8.Content,{scrollable:!0,children:c})})},x=function(a){var l=(0,o.Oc)(),s=l.act,c=l.data,f=c.enabled,v=c.dos_overload,g=c.dos_capacity;return(0,e.jsx)(t.wn,{title:"Status",buttons:(0,e.jsx)(t.$n,{icon:"power-off",selected:f,onClick:function(){return s("toggle")},children:"Relay "+(f?"On":"Off")}),children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsxs)(t.Ki.Item,{label:"Network Buffer Status",children:[v," / ",g," GQ"]}),(0,e.jsx)(t.Ki.Item,{label:"Options",children:(0,e.jsx)(t.$n,{icon:"exclamation-triangle",onClick:function(){return s("purge")},children:"Purge network blacklist"})})]})})},d=function(a){var l=(0,o.Oc)().act;return(0,e.jsxs)(i.FullscreenNotice,{title:"ERROR",children:[(0,e.jsxs)(t.az,{fontSize:"1.5rem",bold:!0,color:"bad",children:[(0,e.jsx)(t.In,{name:"exclamation-triangle",verticalAlign:"middle",size:3,mr:"1rem"}),(0,e.jsx)("h2",{children:"NETWORK BUFFERS OVERLOADED"}),(0,e.jsx)("h3",{children:"Overload Recovery Mode"}),(0,e.jsx)("i",{children:"This system is suffering temporary outage due to overflow of traffic buffers. Until buffered traffic is processed, all further requests will be dropped. Frequent occurences of this error may indicate insufficient hardware capacity of your network. Please contact your network planning department for instructions on how to resolve this issue."}),(0,e.jsx)("h3",{children:"ADMINISTRATIVE OVERRIDE"}),(0,e.jsx)("b",{children:" CAUTION - Data loss may occur "})]}),(0,e.jsx)(t.az,{children:(0,e.jsx)(t.$n,{icon:"exclamation-triangle",onClick:function(){return l("restart")},children:"Purge buffered traffic"})})]})}},3949:function(y,u,n){"use strict";n.r(u),n.d(u,{NewscasterMainMenu:function(){return i}});var e=n(20462),o=n(7081),t=n(88569),r=n(42501),i=function(h){var x=(0,o.Oc)().data,d=x.securityCaster,a=x.wanted_issue,l=h.setScreen;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(t.wn,{title:"Main Menu",children:[a&&(0,e.jsx)(t.$n,{fluid:!0,icon:"eye",onClick:function(){return l(r.NEWSCASTER_SCREEN_VIEWWANTED)},color:"bad",children:"Read WANTED Issue"}),(0,e.jsx)(t.$n,{fluid:!0,icon:"eye",onClick:function(){return l(r.NEWSCASTER_SCREEN_VIEWLIST)},children:"View Feed Channels"}),(0,e.jsx)(t.$n,{fluid:!0,icon:"plus",onClick:function(){return l(r.NEWSCASTER_SCREEN_NEWCHANNEL)},children:"Create Feed Channel"}),(0,e.jsx)(t.$n,{fluid:!0,icon:"plus",onClick:function(){return l(r.NEWSCASTER_SCREEN_NEWSTORY)},children:"Create Feed Message"}),(0,e.jsx)(t.$n,{fluid:!0,icon:"print",onClick:function(){return l(r.NEWSCASTER_SCREEN_PRINT)},children:"Print Newspaper"})]}),!!d&&(0,e.jsx)(t.wn,{title:"Feed Security Functions",children:(0,e.jsx)(t.$n,{fluid:!0,icon:"plus",onClick:function(){return l(r.NEWSCASTER_SCREEN_NEWWANTED)},children:'Manage "Wanted" Issue'})})]})}},71588:function(y,u,n){"use strict";n.r(u),n.d(u,{NewscasterNewChannel:function(){return h}});var e=n(20462),o=n(61282),t=n(7081),r=n(88569),i=n(42501),h=function(x){var d=(0,t.Oc)(),a=d.act,l=d.data,s=l.channel_name,c=l.c_locked,f=l.user,v=x.setScreen;return(0,e.jsxs)(r.wn,{title:"Creating new Feed Channel",buttons:(0,e.jsx)(r.$n,{icon:"undo",onClick:function(){return v(i.NEWSCASTER_SCREEN_MAIN)},children:"Back"}),children:[(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Channel Name",children:(0,e.jsx)(r.pd,{fluid:!0,value:(0,o.jT)(s),onInput:function(g,E){return a("set_channel_name",{val:E})}})}),(0,e.jsx)(r.Ki.Item,{label:"Channel Author",color:"good",children:f}),(0,e.jsx)(r.Ki.Item,{label:"Accept Public Feeds",children:(0,e.jsx)(r.$n,{icon:c?"lock":"lock-open",selected:!c,onClick:function(){return a("set_channel_lock")},children:c?"No":"Yes"})})]}),(0,e.jsx)(r.$n,{fluid:!0,color:"good",icon:"plus",onClick:function(){return a("submit_new_channel")},children:"Submit Channel"}),(0,e.jsx)(r.$n,{fluid:!0,color:"bad",icon:"undo",onClick:function(){return v(i.NEWSCASTER_SCREEN_MAIN)},children:"Cancel"})]})}},85578:function(y,u,n){"use strict";n.r(u),n.d(u,{NewscasterNewStory:function(){return i}});var e=n(20462),o=n(7081),t=n(88569),r=n(42501),i=function(h){var x=(0,o.Oc)(),d=x.act,a=x.data,l=a.channel_name,s=a.user,c=a.title,f=a.msg,v=a.photo_data,g=h.setScreen;return(0,e.jsxs)(t.wn,{title:"Creating new Feed Message...",buttons:(0,e.jsx)(t.$n,{icon:"undo",onClick:function(){return g(r.NEWSCASTER_SCREEN_MAIN)},children:"Back"}),children:[(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Receiving Channel",children:(0,e.jsx)(t.$n,{fluid:!0,onClick:function(){return d("set_channel_receiving")},children:l||"Unset"})}),(0,e.jsx)(t.Ki.Item,{label:"Message Author",color:"good",children:s}),(0,e.jsx)(t.Ki.Item,{label:"Message Title",verticalAlign:"top",children:(0,e.jsxs)(t.so,{children:[(0,e.jsx)(t.so.Item,{grow:1,children:(0,e.jsx)(t.wn,{width:"99%",inline:!0,children:c||"(no title yet)"})}),(0,e.jsx)(t.so.Item,{children:(0,e.jsx)(t.$n,{verticalAlign:"top",onClick:function(){return d("set_new_title")},icon:"pen",tooltip:"Edit Title",tooltipPosition:"left"})})]})}),(0,e.jsx)(t.Ki.Item,{label:"Message Body",verticalAlign:"top",children:(0,e.jsxs)(t.so,{children:[(0,e.jsx)(t.so.Item,{grow:1,children:(0,e.jsx)(t.wn,{width:"99%",inline:!0,children:f||"(no message yet)"})}),(0,e.jsx)(t.so.Item,{children:(0,e.jsx)(t.$n,{verticalAlign:"top",onClick:function(){return d("set_new_message")},icon:"pen",tooltip:"Edit Message",tooltipPosition:"left"})})]})}),(0,e.jsx)(t.Ki.Item,{label:"Attach Photo",children:(0,e.jsx)(t.$n,{fluid:!0,icon:"image",onClick:function(){return d("set_attachment")},children:v?"Photo Attached":"No Photo"})})]}),(0,e.jsx)(t.$n,{fluid:!0,color:"good",icon:"plus",onClick:function(){return d("submit_new_message")},children:"Submit Message"}),(0,e.jsx)(t.$n,{fluid:!0,color:"bad",icon:"undo",onClick:function(){return g(r.NEWSCASTER_SCREEN_MAIN)},children:"Cancel"})]})}},92432:function(y,u,n){"use strict";n.r(u),n.d(u,{NewscasterNewWanted:function(){return h}});var e=n(20462),o=n(61282),t=n(7081),r=n(88569),i=n(42501),h=function(x){var d=(0,t.Oc)(),a=d.act,l=d.data,s=l.channel_name,c=l.msg,f=l.photo_data,v=l.user,g=l.wanted_issue,E=x.setScreen;return(0,e.jsxs)(r.wn,{title:"Wanted Issue Handler",buttons:(0,e.jsx)(r.$n,{icon:"undo",onClick:function(){return E(i.NEWSCASTER_SCREEN_MAIN)},children:"Back"}),children:[(0,e.jsxs)(r.Ki,{children:[!!g&&(0,e.jsx)(r.Ki.Item,{label:"Already In Circulation",children:"A wanted issue is already in circulation. You can edit or cancel it below."}),(0,e.jsx)(r.Ki.Item,{label:"Criminal Name",children:(0,e.jsx)(r.pd,{fluid:!0,value:(0,o.jT)(s),onInput:function(j,C){return a("set_channel_name",{val:C})}})}),(0,e.jsx)(r.Ki.Item,{label:"Description",children:(0,e.jsx)(r.pd,{fluid:!0,value:(0,o.jT)(c),onInput:function(j,C){return a("set_wanted_desc",{val:C})}})}),(0,e.jsx)(r.Ki.Item,{label:"Attach Photo",children:(0,e.jsx)(r.$n,{fluid:!0,icon:"image",onClick:function(){return a("set_attachment")},children:f?"Photo Attached":"No Photo"})}),(0,e.jsx)(r.Ki.Item,{label:"Prosecutor",color:"good",children:v})]}),(0,e.jsx)(r.$n,{mt:1,fluid:!0,color:"good",icon:"plus",onClick:function(){return a("submit_wanted")},children:"Submit Wanted Issue"}),!!g&&(0,e.jsx)(r.$n,{fluid:!0,color:"average",icon:"minus",onClick:function(){return a("cancel_wanted")},children:"Take Down Issue"}),(0,e.jsx)(r.$n,{fluid:!0,color:"bad",icon:"undo",onClick:function(){return E(i.NEWSCASTER_SCREEN_MAIN)},children:"Cancel"})]})}},7662:function(y,u,n){"use strict";n.r(u),n.d(u,{NewscasterPrint:function(){return i}});var e=n(20462),o=n(7081),t=n(88569),r=n(42501),i=function(h){var x=(0,o.Oc)(),d=x.act,a=x.data,l=a.total_num,s=a.active_num,c=a.message_num,f=a.paper_remaining,v=h.setScreen;return(0,e.jsxs)(t.wn,{title:"Printing",buttons:(0,e.jsx)(t.$n,{icon:"undo",onClick:function(){return v(r.NEWSCASTER_SCREEN_MAIN)},children:"Back"}),children:[(0,e.jsxs)(t.az,{color:"label",mb:1,children:["Newscaster currently serves a total of ",l," Feed channels,"," ",s," of which are active, and a total of ",c," Feed stories."]}),(0,e.jsx)(t.Ki,{children:(0,e.jsxs)(t.Ki.Item,{label:"Liquid Paper remaining",children:[f*100," cm\xB3"]})}),(0,e.jsx)(t.$n,{mt:1,fluid:!0,color:"good",icon:"plus",onClick:function(){return d("print_paper")},children:"Print Paper"}),(0,e.jsx)(t.$n,{fluid:!0,color:"bad",icon:"undo",onClick:function(){return v(r.NEWSCASTER_SCREEN_MAIN)},children:"Cancel"})]})}},12512:function(y,u,n){"use strict";n.r(u),n.d(u,{NewscasterViewList:function(){return h}});var e=n(20462),o=n(61282),t=n(7081),r=n(88569),i=n(42501),h=function(x){var d=(0,t.Oc)(),a=d.act,l=d.data,s=l.channels,c=x.setScreen;return(0,e.jsx)(r.wn,{title:"Station Feed Channels",buttons:(0,e.jsx)(r.$n,{icon:"undo",onClick:function(){return c(i.NEWSCASTER_SCREEN_MAIN)},children:"Back"}),children:s.map(function(f){return(0,e.jsx)(r.$n,{fluid:!0,icon:"eye",color:f.admin?"good":f.censored?"bad":"",onClick:function(){a("show_channel",{show_channel:f.ref}),c(i.NEWSCASTER_SCREEN_SELECTEDCHANNEL)},children:(0,o.jT)(f.name)},f.name)})})}},96935:function(y,u,n){"use strict";n.r(u),n.d(u,{NewscasterViewSelected:function(){return h}});var e=n(20462),o=n(61282),t=n(7081),r=n(88569),i=n(42501),h=function(x){var d=(0,t.Oc)(),a=d.act,l=d.data,s=l.viewing_channel,c=l.securityCaster,f=l.company,v=x.setScreen;return s?(0,e.jsxs)(r.wn,{title:(0,o.jT)(s.name),buttons:(0,e.jsxs)(e.Fragment,{children:[!!c&&(0,e.jsx)(r.$n.Confirm,{color:"bad",icon:"ban",confirmIcon:"ban",onClick:function(){return a("toggle_d_notice",{ref:s.ref})},children:"Issue D-Notice"}),(0,e.jsx)(r.$n,{icon:"undo",onClick:function(){return v(i.NEWSCASTER_SCREEN_VIEWLIST)},children:"Back"})]}),children:[(0,e.jsx)(r.Ki,{children:(0,e.jsx)(r.Ki.Item,{label:"Channel Created By",children:c&&(0,e.jsx)(r.$n.Confirm,{color:"bad",icon:"strikethrough",confirmIcon:"strikethrough",tooltip:"Censor?",confirmContent:"Censor Author",onClick:function(){return a("censor_channel_author",{ref:s.ref})},children:(0,o.jT)(s.author)})||(0,e.jsx)(r.az,{children:(0,o.jT)(s.author)})})}),!!s.censored&&(0,e.jsxs)(r.az,{color:"bad",children:["ATTENTION: This channel has been deemed as threatening to the welfare of the station, and marked with a ",f," D-Notice. No further feed story additions are allowed while the D-Notice is in effect."]}),!!s.messages.length&&s.messages.map(function(g){return(0,e.jsxs)(r.wn,{children:["- ",(0,o.jT)(g.body),!!g.img&&(0,e.jsxs)(r.az,{children:[(0,e.jsx)(r._V,{src:"data:image/png;base64,"+g.img}),!!g.caption&&(0,o.jT)(g.caption)||null]}),(0,e.jsxs)(r.az,{color:"grey",children:["[Story by ",(0,o.jT)(g.author)," -"," ",g.timestamp,"]"]}),!!c&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.$n.Confirm,{mt:1,color:"bad",icon:"strikethrough",confirmIcon:"strikethrough",onClick:function(){return a("censor_channel_story_body",{ref:g.ref})},children:"Censor Story"}),(0,e.jsx)(r.$n.Confirm,{color:"bad",icon:"strikethrough",confirmIcon:"strikethrough",onClick:function(){return a("censor_channel_story_author",{ref:g.ref})},children:"Censor Author"})]})]},g.ref)})||!s.censored&&(0,e.jsx)(r.az,{color:"average",children:"No feed messages found in channel."})]}):(0,e.jsx)(r.wn,{title:"Channel Not Found",buttons:(0,e.jsx)(r.$n,{icon:"undo",onClick:function(){return v(i.NEWSCASTER_SCREEN_VIEWLIST)},children:"Back"}),children:"The channel you were looking for no longer exists."})}},28189:function(y,u,n){"use strict";n.r(u),n.d(u,{NewscasterViewWanted:function(){return h}});var e=n(20462),o=n(61282),t=n(7081),r=n(88569),i=n(42501),h=function(x){var d=(0,t.Oc)().data,a=d.wanted_issue,l=x.setScreen;return a?(0,e.jsx)(r.wn,{title:"--STATIONWIDE WANTED ISSUE--",color:"bad",buttons:(0,e.jsx)(r.$n,{icon:"undo",onClick:function(){return l(i.NEWSCASTER_SCREEN_MAIN)},children:"Back"}),children:(0,e.jsx)(r.az,{color:"white",children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Submitted by",color:"good",children:(0,o.jT)(a.author)}),(0,e.jsx)(r.Ki.Divider,{}),(0,e.jsx)(r.Ki.Item,{label:"Criminal",children:(0,o.jT)(a.criminal)}),(0,e.jsx)(r.Ki.Item,{label:"Description",children:(0,o.jT)(a.desc)}),(0,e.jsx)(r.Ki.Item,{label:"Photo",children:a.img&&(0,e.jsx)(r._V,{src:a.img})||"None"})]})})}):(0,e.jsx)(r.wn,{title:"No Outstanding Wanted Issues",buttons:(0,e.jsx)(r.$n,{icon:"undo",onClick:function(){return l(i.NEWSCASTER_SCREEN_MAIN)},children:"Back"}),children:"There are no wanted issues currently outstanding."})}},42501:function(y,u,n){"use strict";n.r(u),n.d(u,{NEWSCASTER_SCREEN_MAIN:function(){return e},NEWSCASTER_SCREEN_NEWCHANNEL:function(){return o},NEWSCASTER_SCREEN_NEWSTORY:function(){return r},NEWSCASTER_SCREEN_NEWWANTED:function(){return h},NEWSCASTER_SCREEN_PRINT:function(){return i},NEWSCASTER_SCREEN_SELECTEDCHANNEL:function(){return d},NEWSCASTER_SCREEN_VIEWLIST:function(){return t},NEWSCASTER_SCREEN_VIEWWANTED:function(){return x}});var e="Main Menu",o="New Channel",t="View List",r="New Story",i="Print",h="New Wanted",x="View Wanted",d="View Selected Channel"},93856:function(y,u,n){"use strict";n.r(u),n.d(u,{Newscaster:function(){return g}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),i=n(3751),h=n(42501),x=n(3949),d=n(71588),a=n(85578),l=n(92432),s=n(7662),c=n(12512),f=n(96935),v=n(28189),g=function(j){return(0,e.jsx)(r.p8,{width:600,height:600,children:(0,e.jsxs)(r.p8.Content,{scrollable:!0,children:[(0,e.jsx)(i.TemporaryNotice,{decode:!0}),(0,e.jsx)(E,{})]})})},E=function(j){var C=(0,o.QY)("screen",h.NEWSCASTER_SCREEN_MAIN),M=C[0],P=C[1],_=[];return _[h.NEWSCASTER_SCREEN_MAIN]=(0,e.jsx)(x.NewscasterMainMenu,{setScreen:P}),_[h.NEWSCASTER_SCREEN_NEWCHANNEL]=(0,e.jsx)(d.NewscasterNewChannel,{setScreen:P}),_[h.NEWSCASTER_SCREEN_VIEWLIST]=(0,e.jsx)(c.NewscasterViewList,{setScreen:P}),_[h.NEWSCASTER_SCREEN_NEWSTORY]=(0,e.jsx)(a.NewscasterNewStory,{setScreen:P}),_[h.NEWSCASTER_SCREEN_PRINT]=(0,e.jsx)(s.NewscasterPrint,{setScreen:P}),_[h.NEWSCASTER_SCREEN_NEWWANTED]=(0,e.jsx)(l.NewscasterNewWanted,{setScreen:P}),_[h.NEWSCASTER_SCREEN_VIEWWANTED]=(0,e.jsx)(v.NewscasterViewWanted,{setScreen:P}),_[h.NEWSCASTER_SCREEN_SELECTEDCHANNEL]=(0,e.jsx)(f.NewscasterViewSelected,{setScreen:P}),(0,e.jsx)(t.az,{children:_[M]})}},5537:function(y,u,n){"use strict";n.r(u)},4418:function(y,u,n){"use strict";n.r(u),n.d(u,{NoticeBoard:function(){return i}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),i=function(h){var x=(0,o.Oc)(),d=x.act,a=x.data,l=a.notices;return(0,e.jsx)(r.p8,{width:330,height:300,children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsx)(t.wn,{children:l.length?(0,e.jsx)(t.Ki,{children:l.map(function(s,c){return(0,e.jsxs)(t.Ki.Item,{label:s.name,children:[s.isphoto&&(0,e.jsx)(t.$n,{icon:"image",onClick:function(){return d("look",{ref:s.ref})},children:"Look"})||s.ispaper&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n,{icon:"sticky-note",onClick:function(){return d("read",{ref:s.ref})},children:"Read"}),(0,e.jsx)(t.$n,{icon:"pen",onClick:function(){return d("write",{ref:s.ref})},children:"Write"})]})||"Unknown Entity",(0,e.jsx)(t.$n,{icon:"minus-circle",onClick:function(){return d("remove",{ref:s.ref})},children:"Remove"})]},c)})}):(0,e.jsx)(t.az,{color:"average",children:"No notices posted here."})})})})}},78610:function(y,u,n){"use strict";n.r(u),n.d(u,{NtosAccessDecrypter:function(){return h}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),i=n(39841),h=function(x){var d=(0,o.Oc)(),a=d.act,l=d.data,s=l.message,c=l.running,f=l.rate,v=l.factor,g=l.regions,E=function(C){for(var M="";M.lengthv?M+="0":M+="1";return M},j=45;return(0,e.jsx)(r.Zm,{width:600,height:600,theme:"syndicate",children:(0,e.jsx)(r.Zm.Content,{children:s&&(0,e.jsx)(t.IC,{children:s})||c&&(0,e.jsxs)(t.wn,{children:["Attempting to decrypt network access codes. Please wait. Rate:"," ",f," PHash/s",(0,e.jsx)(t.az,{children:E(j)}),(0,e.jsx)(t.az,{children:E(j)}),(0,e.jsx)(t.az,{children:E(j)}),(0,e.jsx)(t.az,{children:E(j)}),(0,e.jsx)(t.az,{children:E(j)}),(0,e.jsx)(t.$n,{fluid:!0,icon:"ban",onClick:function(){return a("PRG_reset")},children:"Abort"})]})||(0,e.jsx)(t.wn,{title:"Pick access code to decrypt",children:g.length&&(0,e.jsx)(i.IdentificationComputerRegions,{actName:"PRG_execute"})||(0,e.jsx)(t.az,{children:"Please insert ID card."})})})})}},25316:function(y,u,n){"use strict";n.r(u),n.d(u,{NtosArcade:function(){return h}});var e=n(20462),o=n(31200),t=n(7081),r=n(88569),i=n(15581),h=function(x){var d=(0,t.Oc)(),a=d.act,l=d.data,s=l.PlayerHitpoints,c=l.PlayerMP,f=l.PauseState,v=l.Status,g=l.Hitpoints,E=l.BossID,j=l.GameActive,C=l.TicketCount;return(0,e.jsx)(i.Zm,{width:450,height:350,children:(0,e.jsx)(i.Zm.Content,{children:(0,e.jsxs)(r.wn,{title:"Outbomb Cuban Pete Ultra",textAlign:"center",children:[(0,e.jsxs)(r.az,{children:[(0,e.jsx)(r.XI,{children:(0,e.jsxs)(r.XI.Row,{children:[(0,e.jsxs)(r.XI.Cell,{size:2,children:[(0,e.jsx)(r.az,{m:1}),(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Player Health",children:(0,e.jsxs)(r.z2,{value:s,minValue:0,maxValue:30,ranges:{olive:[31,1/0],good:[20,31],average:[10,20],bad:[-1/0,10]},children:[s,"HP"]})}),(0,e.jsx)(r.Ki.Item,{label:"Player Magic",children:(0,e.jsxs)(r.z2,{value:c,minValue:0,maxValue:10,ranges:{purple:[11,1/0],violet:[3,11],bad:[-1/0,3]},children:[c,"MP"]})})]}),(0,e.jsx)(r.az,{my:1,mx:4}),(0,e.jsx)(r.wn,{backgroundColor:f===1?"#1b3622":"#471915",children:v})]}),(0,e.jsxs)(r.XI.Cell,{children:[(0,e.jsxs)(r.z2,{value:g,minValue:0,maxValue:45,ranges:{good:[30,1/0],average:[5,30],bad:[-1/0,5]},children:[(0,e.jsx)(r.zv,{value:g}),"HP"]}),(0,e.jsx)(r.az,{m:1}),(0,e.jsx)(r.wn,{inline:!0,width:"156px",textAlign:"center",children:(0,e.jsx)(r._V,{src:(0,o.l)(E)})})]})]})}),(0,e.jsx)(r.az,{my:1,mx:4}),(0,e.jsx)(r.$n,{icon:"fist-raised",tooltip:"Go in for the kill!",tooltipPosition:"top",disabled:j===0||f===1,onClick:function(){return a("Attack")},children:"Attack!"}),(0,e.jsx)(r.$n,{icon:"band-aid",tooltip:"Heal yourself!",tooltipPosition:"top",disabled:j===0||f===1,onClick:function(){return a("Heal")},children:"Heal!"}),(0,e.jsx)(r.$n,{icon:"magic",tooltip:"Recharge your magic!",tooltipPosition:"top",disabled:j===0||f===1,onClick:function(){return a("Recharge_Power")},children:"Recharge!"})]}),(0,e.jsxs)(r.az,{children:[(0,e.jsx)(r.$n,{icon:"sync-alt",tooltip:"One more game couldn't hurt.",tooltipPosition:"top",disabled:j===1,onClick:function(){return a("Start_Game")},children:"Begin Game"}),(0,e.jsx)(r.$n,{icon:"ticket-alt",tooltip:"Claim at your local Arcade Computer for Prizes!",tooltipPosition:"top",disabled:j===1,onClick:function(){return a("Dispense_Tickets")},children:"Claim Tickets"})]}),(0,e.jsxs)(r.az,{color:C>=1?"good":"normal",children:["Earned Tickets: ",C]})]})})})}},98669:function(y,u,n){"use strict";n.r(u),n.d(u,{NtosAtmosControl:function(){return r}});var e=n(20462),o=n(15581),t=n(74737),r=function(){return(0,e.jsx)(o.Zm,{width:870,height:708,children:(0,e.jsx)(o.Zm.Content,{children:(0,e.jsx)(t.AtmosControlContent,{})})})}},34470:function(y,u,n){"use strict";n.r(u),n.d(u,{NtosCameraConsole:function(){return h}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),i=n(18490),h=function(x){var d=(0,o.Oc)(),a=d.act,l=d.data,s=l.mapRef,c=l.activeCamera,f=l.cameras,v=(0,i.selectCameras)(f),g=(0,i.prevNextCamera)(v,c),E=g[0],j=g[1];return(0,e.jsx)(r.Zm,{width:870,height:708,children:(0,e.jsxs)(r.Zm.Content,{children:[(0,e.jsx)("div",{className:"CameraConsole__left",children:(0,e.jsx)(i.CameraConsoleContent,{})}),(0,e.jsxs)("div",{className:"CameraConsole__right",children:[(0,e.jsxs)("div",{className:"CameraConsole__toolbar",children:[(0,e.jsx)("b",{children:"Camera: "}),c&&c.name||"\u2014"]}),(0,e.jsxs)("div",{className:"CameraConsole__toolbarRight",children:["SEL:",(0,e.jsx)(t.$n,{icon:"chevron-left",disabled:!E,onClick:function(){return a("switch_camera",{name:E})}}),(0,e.jsx)(t.$n,{icon:"chevron-right",disabled:!j,onClick:function(){return a("switch_camera",{name:j})}}),"| PAN:",(0,e.jsx)(t.$n,{icon:"chevron-left",onClick:function(){return a("pan",{dir:8})}}),(0,e.jsx)(t.$n,{icon:"chevron-up",onClick:function(){return a("pan",{dir:1})}}),(0,e.jsx)(t.$n,{icon:"chevron-right",onClick:function(){return a("pan",{dir:4})}}),(0,e.jsx)(t.$n,{icon:"chevron-down",onClick:function(){return a("pan",{dir:2})}})]}),(0,e.jsx)(t.D1,{className:"CameraConsole__map",params:{id:s,type:"map"}})]})]})})}},77580:function(y,u,n){"use strict";n.r(u),n.d(u,{NtosCommunicationsConsole:function(){return r}});var e=n(20462),o=n(15581),t=n(34116),r=function(){return(0,e.jsx)(o.Zm,{width:400,height:600,children:(0,e.jsx)(o.Zm.Content,{scrollable:!0,children:(0,e.jsx)(t.CommunicationsConsoleContent,{})})})}},35300:function(y,u,n){"use strict";n.r(u),n.d(u,{NtosConfiguration:function(){return i}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),i=function(h){var x=(0,o.Oc)(),d=x.act,a=x.data,l=a.PC_device_theme,s=a.power_usage,c=a.battery_exists,f=a.battery,v=f===void 0?{}:f,g=a.disk_size,E=a.disk_used,j=a.hardware,C=j===void 0?[]:j;return(0,e.jsx)(r.Zm,{theme:l,width:520,height:630,children:(0,e.jsxs)(r.Zm.Content,{scrollable:!0,children:[(0,e.jsx)(t.wn,{title:"Power Supply",buttons:(0,e.jsxs)(t.az,{inline:!0,bold:!0,mr:1,children:["Power Draw: ",s,"W"]}),children:(0,e.jsx)(t.Ki,{children:(0,e.jsx)(t.Ki.Item,{label:"Battery Status",color:!c&&"average"||void 0,children:c?(0,e.jsxs)(t.z2,{value:v.charge,minValue:0,maxValue:v.max,ranges:{good:[v.max/2,1/0],average:[v.max/4,v.max/2],bad:[-1/0,v.max/4]},children:[v.charge," / ",v.max]}):"Not Available"})})}),(0,e.jsx)(t.wn,{title:"File System",children:(0,e.jsxs)(t.z2,{value:E,minValue:0,maxValue:g,color:"good",children:[E," GQ / ",g," GQ"]})}),(0,e.jsx)(t.wn,{title:"Hardware Components",children:C.map(function(M){return(0,e.jsx)(t.wn,{title:M.name,buttons:(0,e.jsxs)(e.Fragment,{children:[!M.critical&&(0,e.jsx)(t.$n.Checkbox,{checked:M.enabled,mr:1,onClick:function(){return d("PC_toggle_component",{name:M.name})},children:"Enabled"}),(0,e.jsxs)(t.az,{inline:!0,bold:!0,mr:1,children:["Power Usage: ",M.powerusage,"W"]})]}),children:M.desc},M.name)})})]})})}},23984:function(y,u,n){"use strict";n.r(u),n.d(u,{NtosCrewManifest:function(){return r}});var e=n(20462),o=n(15581),t=n(58044),r=function(){return(0,e.jsx)(o.Zm,{width:800,height:600,children:(0,e.jsx)(o.Zm.Content,{children:(0,e.jsx)(t.CrewManifestContent,{})})})}},69233:function(y,u,n){"use strict";n.r(u),n.d(u,{NtosCrewMonitor:function(){return i}});var e=n(20462),o=n(61358),t=n(15581),r=n(70117),i=function(){var h=function(g){l(g)},x=function(g){f(g)},d=(0,o.useState)(0),a=d[0],l=d[1],s=(0,o.useState)(1),c=s[0],f=s[1];return(0,e.jsx)(t.Zm,{width:800,height:600,children:(0,e.jsx)(t.Zm.Content,{children:(0,e.jsx)(r.CrewMonitorContent,{tabIndex:a,zoom:c,onTabIndex:h,onZoom:x})})})}},6303:function(y,u,n){"use strict";n.r(u),n.d(u,{NtosDigitalWarrant:function(){return h}});var e=n(20462),o=n(7402),t=n(7081),r=n(88569),i=n(15581),h=function(l){var s=(0,t.Oc)().data,c=s.warrantauth,f=(0,e.jsx)(x,{});return c&&(f=(0,e.jsx)(a,{})),(0,e.jsx)(i.Zm,{width:500,height:350,children:(0,e.jsx)(i.Zm.Content,{scrollable:!0,children:f})})},x=function(l){var s=(0,t.Oc)().act;return(0,e.jsxs)(r.wn,{title:"Warrants",children:[(0,e.jsx)(r.$n,{icon:"plus",fluid:!0,onClick:function(){return s("addwarrant")},children:"Create New Warrant"}),(0,e.jsx)(r.wn,{title:"Arrest Warrants",children:(0,e.jsx)(d,{type:"arrest"})}),(0,e.jsx)(r.wn,{title:"Search Warrants",children:(0,e.jsx)(d,{type:"search"})})]})},d=function(l){var s=(0,t.Oc)(),c=s.act,f=s.data,v=l.type,g=f.allwarrants,E=g===void 0?[]:g,j=(0,o.pb)(E,function(C){return C.arrestsearch===v});return(0,e.jsxs)(r.XI,{children:[(0,e.jsxs)(r.XI.Row,{header:!0,children:[(0,e.jsx)(r.XI.Cell,{children:v==="arrest"?"Name":"Location"}),(0,e.jsx)(r.XI.Cell,{children:v==="arrest"?"Charges":"Reason"}),(0,e.jsx)(r.XI.Cell,{children:"Authorized By"}),(0,e.jsx)(r.XI.Cell,{collapsing:!0,children:"Edit"})]}),j.length&&j.map(function(C){return(0,e.jsxs)(r.XI.Row,{children:[(0,e.jsx)(r.XI.Cell,{children:C.warrantname}),(0,e.jsx)(r.XI.Cell,{children:C.charges}),(0,e.jsx)(r.XI.Cell,{children:C.auth}),(0,e.jsx)(r.XI.Cell,{collapsing:!0,children:(0,e.jsx)(r.$n,{icon:"pen",onClick:function(){return c("editwarrant",{id:C.id})}})})]},C.id)})||(0,e.jsx)(r.XI.Row,{children:(0,e.jsxs)(r.XI.Cell,{colspan:"3",color:"bad",children:["No ",v," warrants found."]})})]})},a=function(l){var s=(0,t.Oc)(),c=s.act,f=s.data,v=f.warrantname,g=f.warrantcharges,E=f.warrantauth,j=f.type,C=j==="arrest",M=j==="arrest"?"Name":"Location",P=j==="arrest"?"Charges":"Reason";return(0,e.jsx)(r.wn,{title:C?"Editing Arrest Warrant":"Editing Search Warrant",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.$n,{icon:"save",onClick:function(){return c("savewarrant")},children:"Save"}),(0,e.jsx)(r.$n,{color:"bad",icon:"trash",onClick:function(){return c("deletewarrant")},children:"Delete"}),(0,e.jsx)(r.$n,{icon:"undo",onClick:function(){return c("back")},children:"Back"})]}),children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:M,buttons:C&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.$n,{icon:"search",onClick:function(){return c("editwarrantname")}}),(0,e.jsx)(r.$n,{icon:"pen",onClick:function(){return c("editwarrantnamecustom")}})]})||(0,e.jsx)(r.$n,{icon:"pen",onClick:function(){return c("editwarrantnamecustom")}}),children:v}),(0,e.jsx)(r.Ki.Item,{label:P,buttons:(0,e.jsx)(r.$n,{icon:"pen",onClick:function(){return c("editwarrantcharges")}}),children:g}),(0,e.jsx)(r.Ki.Item,{label:"Authorized By",buttons:(0,e.jsx)(r.$n,{icon:"balance-scale",onClick:function(){return c("editwarrantauth")}}),children:E})]})})}},27896:function(y,u,n){"use strict";n.r(u),n.d(u,{NtosEmailAdministration:function(){return h}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),i=n(94151),h=function(s){var c=(0,o.Oc)().data,f=c.error,v=c.cur_title,g=c.current_account,E=c.accounts,j=(0,e.jsx)(x,{accounts:E});return f?j=(0,e.jsx)(d,{error:f}):v?j=(0,e.jsx)(a,{}):g&&(j=(0,e.jsx)(l,{})),(0,e.jsx)(r.Zm,{width:600,height:450,children:(0,e.jsx)(r.Zm.Content,{scrollable:!0,children:j})})},x=function(s){var c=(0,o.Oc)().act,f=s.accounts;return(0,e.jsxs)(t.wn,{title:"Welcome to the NTNet Email Administration System",children:[(0,e.jsx)(t.az,{italic:!0,mb:1,children:"SECURE SYSTEM - Have your identification ready"}),(0,e.jsx)(t.$n,{fluid:!0,icon:"plus",onClick:function(){return c("newaccount")},children:"Create New Account"}),(0,e.jsx)(t.az,{bold:!0,mt:1,mb:1,children:"Select account to administrate"}),f.map(function(v){return(0,e.jsx)(t.$n,{fluid:!0,icon:"eye",onClick:function(){return c("viewaccount",{viewaccount:v.uid})},children:v.login},v.uid)})]})},d=function(s){var c=(0,o.Oc)().act,f=s.error;return(0,e.jsx)(t.wn,{title:"Message",buttons:(0,e.jsx)(t.$n,{icon:"undo",onClick:function(){return c("back")},children:"Back"}),children:f})},a=function(s){return(0,e.jsx)(t.wn,{children:(0,e.jsx)(i.NtosEmailClientViewMessage,{administrator:!0})})},l=function(s){var c=(0,o.Oc)(),f=c.act,v=c.data,g=v.current_account,E=v.cur_suspended,j=v.messages,C=j===void 0?[]:j;return(0,e.jsxs)(t.wn,{title:"Viewing "+g+" in admin mode",buttons:(0,e.jsx)(t.$n,{icon:"undo",onClick:function(){return f("back")},children:"Back"}),children:[(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Account Status",children:(0,e.jsx)(t.$n,{color:E?"bad":"",icon:"ban",tooltip:(E?"Uns":"S")+"uspend Account?",onClick:function(){return f("ban")},children:E?"Suspended":"Normal"})}),(0,e.jsx)(t.Ki.Item,{label:"Actions",children:(0,e.jsx)(t.$n,{icon:"key",onClick:function(){return f("changepass")},children:"Change Password"})})]}),(0,e.jsx)(t.wn,{title:"Messages",children:C.length&&(0,e.jsxs)(t.XI,{children:[(0,e.jsxs)(t.XI.Row,{header:!0,children:[(0,e.jsx)(t.XI.Cell,{children:"Source"}),(0,e.jsx)(t.XI.Cell,{children:"Title"}),(0,e.jsx)(t.XI.Cell,{children:"Received at"}),(0,e.jsx)(t.XI.Cell,{children:"Actions"})]}),C.map(function(M){return(0,e.jsxs)(t.XI.Row,{children:[(0,e.jsx)(t.XI.Cell,{children:M.source}),(0,e.jsx)(t.XI.Cell,{children:M.title}),(0,e.jsx)(t.XI.Cell,{children:M.timestamp}),(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.$n,{icon:"eye",onClick:function(){return f("viewmail",{viewmail:M.uid})},children:"View"})})]},M.uid)})]})||(0,e.jsx)(t.az,{color:"average",children:"No messages found in selected account."})})]})}},94151:function(y,u,n){"use strict";n.r(u),n.d(u,{NtosEmailClient:function(){return h},NtosEmailClientViewMessage:function(){return l}});var e=n(20462),o=n(4089),t=n(7081),r=n(88569),i=n(15581),h=function(g){var E=(0,t.Oc)().data,j=E.PC_device_theme,C=E.error,M=E.downloading,P=E.current_account,_=(0,e.jsx)(v,{});return C?_=(0,e.jsx)(f,{error:C}):M?_=(0,e.jsx)(x,{}):P&&(_=(0,e.jsx)(d,{})),(0,e.jsx)(i.Zm,{resizable:!0,theme:j,children:(0,e.jsx)(i.Zm.Content,{scrollable:!0,children:_})})},x=function(g){var E=(0,t.Oc)().data,j=E.down_filename,C=E.down_progress,M=E.down_size,P=E.down_speed;return(0,e.jsx)(r.wn,{title:"Downloading...",children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsxs)(r.Ki.Item,{label:"File",children:[j," (",M," GQ)"]}),(0,e.jsxs)(r.Ki.Item,{label:"Speed",children:[(0,e.jsx)(r.zv,{value:P})," GQ/s"]}),(0,e.jsx)(r.Ki.Item,{label:"Progress",children:(0,e.jsx)(r.z2,{color:"good",value:C,maxValue:M,children:C+"/"+M+" ("+(0,o.Mg)(C/M*100,1)+"%)"})})]})})},d=function(g){var E=(0,t.Oc)(),j=E.act,C=E.data,M=C.current_account,P=C.addressbook,_=C.new_message,S=C.cur_title,T=C.accounts,b=(0,e.jsx)(a,{});return P?b=(0,e.jsx)(s,{accounts:T}):_?b=(0,e.jsx)(c,{}):S&&(b=(0,e.jsx)(l,{})),(0,e.jsx)(r.wn,{title:"Logged in as: "+M,buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.$n,{icon:"plus",tooltip:"New Message",tooltipPosition:"left",onClick:function(){return j("new_message")}}),(0,e.jsx)(r.$n,{icon:"cogs",tooltip:"Change Password",tooltipPosition:"left",onClick:function(){return j("changepassword")}}),(0,e.jsx)(r.$n,{icon:"sign-out-alt",tooltip:"Log Out",tooltipPosition:"left",onClick:function(){return j("logout")}})]}),children:b})},a=function(g){var E=(0,t.Oc)(),j=E.act,C=E.data,M=C.folder,P=C.messagecount,_=C.messages;return(0,e.jsxs)(r.wn,{noTopPadding:!0,children:[(0,e.jsxs)(r.tU,{children:[(0,e.jsx)(r.tU.Tab,{selected:M==="Inbox",onClick:function(){return j("set_folder",{set_folder:"Inbox"})},children:"Inbox"}),(0,e.jsx)(r.tU.Tab,{selected:M==="Spam",onClick:function(){return j("set_folder",{set_folder:"Spam"})},children:"Spam"}),(0,e.jsx)(r.tU.Tab,{selected:M==="Deleted",onClick:function(){return j("set_folder",{set_folder:"Deleted"})},children:"Deleted"})]}),P&&(0,e.jsx)(r.wn,{children:(0,e.jsxs)(r.XI,{children:[(0,e.jsxs)(r.XI.Row,{header:!0,children:[(0,e.jsx)(r.XI.Cell,{children:"Source"}),(0,e.jsx)(r.XI.Cell,{children:"Title"}),(0,e.jsx)(r.XI.Cell,{children:"Received At"}),(0,e.jsx)(r.XI.Cell,{children:"Actions"})]}),_.map(function(S){return(0,e.jsxs)(r.XI.Row,{children:[(0,e.jsx)(r.XI.Cell,{children:S.source}),(0,e.jsx)(r.XI.Cell,{children:S.title}),(0,e.jsx)(r.XI.Cell,{children:S.timestamp}),(0,e.jsxs)(r.XI.Cell,{children:[(0,e.jsx)(r.$n,{icon:"eye",onClick:function(){return j("view",{view:S.uid})},tooltip:"View"}),(0,e.jsx)(r.$n,{icon:"share",onClick:function(){return j("reply",{reply:S.uid})},tooltip:"Reply"}),(0,e.jsx)(r.$n,{color:"bad",icon:"trash",onClick:function(){return j("delete",{delete:S.uid})},tooltip:"Delete"})]})]},S.timestamp+S.title)})]})})||(0,e.jsxs)(r.az,{color:"bad",children:["No emails found in ",M,"."]})]})},l=function(g){var E=(0,t.Oc)(),j=E.act,C=E.data,M=g.administrator,P=C.cur_title,_=C.cur_source,S=C.cur_timestamp,T=C.cur_body,b=C.cur_hasattachment,L=C.cur_attachment_filename,W=C.cur_attachment_size,$=C.cur_uid;return(0,e.jsx)(r.wn,{title:P,buttons:M?(0,e.jsx)(r.$n,{icon:"times",onClick:function(){return j("back")}}):(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.$n,{icon:"share",tooltip:"Reply",tooltipPosition:"left",onClick:function(){return j("reply",{reply:$})}}),(0,e.jsx)(r.$n,{color:"bad",icon:"trash",tooltip:"Delete",tooltipPosition:"left",onClick:function(){return j("delete",{delete:$})}}),(0,e.jsx)(r.$n,{icon:"save",tooltip:"Save To Disk",tooltipPosition:"left",onClick:function(){return j("save",{save:$})}}),b&&(0,e.jsx)(r.$n,{icon:"paperclip",tooltip:"Save Attachment",tooltipPosition:"left",onClick:function(){return j("downloadattachment")}})||null,(0,e.jsx)(r.$n,{icon:"times",tooltip:"Close",tooltipPosition:"left",onClick:function(){return j("cancel",{cancel:$})}})]}),children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"From",children:_}),(0,e.jsx)(r.Ki.Item,{label:"At",children:S}),b&&!M&&(0,e.jsxs)(r.Ki.Item,{label:"Attachment",color:"average",children:[L," (",W,"GQ)"]})||"",(0,e.jsx)(r.Ki.Item,{label:"Message",verticalAlign:"top",children:(0,e.jsx)(r.wn,{children:(0,e.jsx)("div",{dangerouslySetInnerHTML:{__html:T}})})})]})})},s=function(g){var E=(0,t.Oc)().act,j=g.accounts;return(0,e.jsx)(r.wn,{title:"Address Book",buttons:(0,e.jsx)(r.$n,{color:"bad",icon:"times",onClick:function(){return E("set_recipient",{set_recipient:null})}}),children:j.map(function(C){return(0,e.jsx)(r.$n,{fluid:!0,onClick:function(){return E("set_recipient",{set_recipient:C.login})},children:C.login},C.login)})})},c=function(g){var E=(0,t.Oc)(),j=E.act,C=E.data,M=C.msg_title,P=M===void 0?"":M,_=C.msg_recipient,S=_===void 0?"":_,T=C.msg_body,b=C.msg_hasattachment,L=C.msg_attachment_filename,W=C.msg_attachment_size;return(0,e.jsx)(r.wn,{title:"New Message",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.$n,{icon:"share",onClick:function(){return j("send")},children:"Send Message"}),(0,e.jsx)(r.$n,{color:"bad",icon:"times",onClick:function(){return j("cancel")}})]}),children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Title",children:(0,e.jsx)(r.pd,{fluid:!0,value:P,onInput:function($,z){return j("edit_title",{val:z})}})}),(0,e.jsx)(r.Ki.Item,{label:"Recipient",verticalAlign:"top",children:(0,e.jsxs)(r.so,{children:[(0,e.jsx)(r.so.Item,{grow:1,children:(0,e.jsx)(r.pd,{fluid:!0,value:S,onInput:function($,z){return j("edit_recipient",{val:z})}})}),(0,e.jsx)(r.so.Item,{children:(0,e.jsx)(r.$n,{icon:"address-book",onClick:function(){return j("addressbook")},tooltip:"Find Receipients",tooltipPosition:"left"})})]})}),(0,e.jsx)(r.Ki.Item,{label:"Attachments",buttons:b&&(0,e.jsx)(r.$n,{color:"bad",icon:"times",onClick:function(){return j("remove_attachment")},children:"Remove Attachment"})||(0,e.jsx)(r.$n,{icon:"plus",onClick:function(){return j("addattachment")},children:"Add Attachment"}),children:b&&(0,e.jsxs)(r.az,{inline:!0,children:[L," (",W,"GQ)"]})||null}),(0,e.jsx)(r.Ki.Item,{label:"Message",verticalAlign:"top",children:(0,e.jsxs)(r.so,{children:[(0,e.jsx)(r.so.Item,{grow:1,children:(0,e.jsx)(r.wn,{width:"99%",inline:!0,children:(0,e.jsx)("div",{dangerouslySetInnerHTML:{__html:T}})})}),(0,e.jsx)(r.so.Item,{children:(0,e.jsx)(r.$n,{verticalAlign:"top",onClick:function(){return j("edit_body")},icon:"pen",tooltip:"Edit Message",tooltipPosition:"left"})})]})})]})})},f=function(g){var E=(0,t.Oc)().act,j=g.error;return(0,e.jsx)(r.wn,{title:"Notification",buttons:(0,e.jsx)(r.$n,{icon:"arrow-left",onClick:function(){return E("reset")},children:"Return"}),children:(0,e.jsx)(r.az,{color:"bad",children:j})})},v=function(g){var E=(0,t.Oc)(),j=E.act,C=E.data,M=C.stored_login,P=M===void 0?"":M,_=C.stored_password,S=_===void 0?"":_;return(0,e.jsxs)(r.wn,{title:"Please Log In",children:[(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Email address",children:(0,e.jsx)(r.pd,{fluid:!0,value:P,onInput:function(T,b){return j("edit_login",{val:b})}})}),(0,e.jsx)(r.Ki.Item,{label:"Password",children:(0,e.jsx)(r.pd,{fluid:!0,value:S,onInput:function(T,b){return j("edit_password",{val:b})}})})]}),(0,e.jsx)(r.$n,{icon:"sign-in-alt",onClick:function(){return j("login")},children:"Log In"})]})}},12813:function(y,u,n){"use strict";n.r(u),n.d(u,{NtosFileManager:function(){return i}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),i=function(x){var d=(0,o.Oc)(),a=d.act,l=d.data,s=l.PC_device_theme,c=l.usbconnected,f=l.filename,v=l.filedata,g=l.error,E=l.files,j=E===void 0?[]:E,C=l.usbfiles,M=C===void 0?[]:C;return(0,e.jsx)(r.Zm,{resizable:!0,theme:s,children:(0,e.jsxs)(r.Zm.Content,{scrollable:!0,children:[f&&(0,e.jsx)(t.wn,{title:"Viewing File "+f,buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n,{icon:"pen",onClick:function(){return a("PRG_edit")},children:"Edit"}),(0,e.jsx)(t.$n,{icon:"print",onClick:function(){return a("PRG_printfile")},children:"Print"}),(0,e.jsx)(t.$n,{icon:"times",onClick:function(){return a("PRG_closefile")},children:"Close"})]}),children:v&&(0,e.jsx)("div",{dangerouslySetInnerHTML:{__html:v}})})||(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.wn,{children:(0,e.jsx)(h,{files:j,usbconnected:c,onUpload:function(P){return a("PRG_copytousb",{uid:P})},onDelete:function(P){return a("PRG_deletefile",{uid:P})},onOpen:function(P){return a("PRG_openfile",{uid:P})},onRename:function(P,_){return a("PRG_rename",{uid:P,new_name:_})},onDuplicate:function(P){return a("PRG_clone",{uid:P})}})}),c&&(0,e.jsx)(t.wn,{title:"Data Disk",children:(0,e.jsx)(h,{usbmode:!0,files:M,usbconnected:c,onUpload:function(P){return a("PRG_copyfromusb",{uid:P})},onDelete:function(P){return a("PRG_deletefile",{uid:P})},onOpen:function(P){return a("PRG_openfile",{uid:P})},onRename:function(P,_){return a("PRG_rename",{uid:P,new_name:_})},onDuplicate:function(P){return a("PRG_clone",{uid:P})}})})||null,(0,e.jsx)(t.wn,{children:(0,e.jsx)(t.$n,{icon:"plus",onClick:function(){return a("PRG_newtextfile")},children:"New Text File"})})]}),g&&(0,e.jsxs)(t.so,{wrap:"wrap",position:"fixed",bottom:"5px",children:[(0,e.jsx)(t.so.Item,{children:(0,e.jsx)(t.wn,{children:(0,e.jsx)(t.$n,{bottom:"0",left:"0",icon:"ban",onClick:function(){return a("PRG_clearerror")}})})}),(0,e.jsx)(t.wn,{children:(0,e.jsx)(t.so.Item,{grow:!0,children:g})})]})]})})},h=function(x){var d=x.files,a=d===void 0?[]:d,l=x.usbconnected,s=x.usbmode,c=x.onUpload,f=x.onDelete,v=x.onRename,g=x.onOpen,E=x.onDuplicate;return(0,e.jsxs)(t.XI,{children:[(0,e.jsxs)(t.XI.Row,{header:!0,children:[(0,e.jsx)(t.XI.Cell,{children:"File"}),(0,e.jsx)(t.XI.Cell,{collapsing:!0,children:"Type"}),(0,e.jsx)(t.XI.Cell,{collapsing:!0,children:"Size"})]}),a.map(function(j){return(0,e.jsxs)(t.XI.Row,{className:"candystripe",children:[(0,e.jsx)(t.XI.Cell,{children:j.undeletable?j.name:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n.Input,{width:"80%",currentValue:j.name,tooltip:"Rename",onCommit:function(C,M){return v(j.uid,M)},children:j.name}),(0,e.jsx)(t.$n,{onClick:function(){return g(j.uid)},children:"Open"})]})}),(0,e.jsx)(t.XI.Cell,{children:j.type}),(0,e.jsx)(t.XI.Cell,{children:j.size}),(0,e.jsx)(t.XI.Cell,{collapsing:!0,children:!j.undeletable&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n.Confirm,{icon:"trash",confirmIcon:"times",confirmContent:"",tooltip:"Delete",onClick:function(){return f(j.uid)}}),!!l&&(s?(0,e.jsx)(t.$n,{icon:"download",tooltip:"Download",onClick:function(){return c(j.uid)}}):(0,e.jsx)(t.$n,{icon:"upload",tooltip:"Upload",onClick:function(){return c(j.uid)}}))]})})]},j.name)})]})}},39925:function(y,u,n){"use strict";n.r(u),n.d(u,{NtosIdentificationComputer:function(){return r}});var e=n(20462),o=n(15581),t=n(39841),r=function(){return(0,e.jsx)(o.Zm,{width:600,height:700,children:(0,e.jsx)(o.Zm.Content,{scrollable:!0,children:(0,e.jsx)(t.IdentificationComputerContent,{ntos:!0})})})}},45319:function(y,u,n){"use strict";n.r(u),n.d(u,{NtosMain:function(){return h}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),i={compconfig:"cog",ntndownloader:"download",filemanager:"folder",smmonitor:"radiation",alarmmonitor:"bell",cardmod:"id-card",arcade:"gamepad",ntnrc_client:"comment-alt",nttransfer:"exchange-alt",powermonitor:"plug",job_manage:"address-book",crewmani:"clipboard-list",robocontrol:"robot",atmosscan:"thermometer-half",shipping:"tags"},h=function(x){var d=(0,o.Oc)(),a=d.act,l=d.data,s=l.device_theme,c=l.programs,f=c===void 0?[]:c,v=l.has_light,g=l.light_on,E=l.comp_light_color,j=l.removable_media,C=j===void 0?[]:j,M=l.login,P=M===void 0?{}:M;return(0,e.jsx)(r.Zm,{title:s==="syndicate"&&"Syndix Main Menu"||"NtOS Main Menu",theme:s,width:400,height:500,children:(0,e.jsxs)(r.Zm.Content,{scrollable:!0,children:[!!v&&(0,e.jsxs)(t.wn,{children:[(0,e.jsxs)(t.$n,{width:"144px",icon:"lightbulb",selected:g,onClick:function(){return a("PC_toggle_light")},children:["Flashlight: ",g?"ON":"OFF"]}),(0,e.jsxs)(t.$n,{ml:1,onClick:function(){return a("PC_light_color")},children:["Color:",(0,e.jsx)(t.BK,{ml:1,color:E})]})]}),(0,e.jsx)(t.wn,{title:"User Login",buttons:(0,e.jsx)(t.$n,{icon:"eject",disabled:!P.IDName,onClick:function(){return a("PC_Eject_Disk",{name:"ID"})},children:"Eject ID"}),children:(0,e.jsxs)(t.XI,{children:[(0,e.jsxs)(t.XI.Row,{children:["ID Name: ",P.IDName]}),(0,e.jsxs)(t.XI.Row,{children:["Assignment: ",P.IDJob]})]})}),!!C.length&&(0,e.jsx)(t.wn,{title:"Media Eject",children:(0,e.jsx)(t.XI,{children:C.map(function(_){return(0,e.jsx)(t.XI.Row,{children:(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.$n,{fluid:!0,color:"transparent",icon:"eject",onClick:function(){return a("PC_Eject_Disk",{name:_})},children:_})})},_)})})}),(0,e.jsx)(t.wn,{title:"Programs",children:(0,e.jsx)(t.XI,{children:f.map(function(_){return(0,e.jsxs)(t.XI.Row,{children:[(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.$n,{fluid:!0,color:"transparent",icon:i[_.name]||"window-maximize-o",onClick:function(){return a("PC_runprogram",{name:_.name})},children:_.desc})}),(0,e.jsx)(t.XI.Cell,{collapsing:!0,width:"18px",children:!!_.running&&(0,e.jsx)(t.$n,{color:"transparent",icon:"times",tooltip:"Close program",tooltipPosition:"left",onClick:function(){return a("PC_killprogram",{name:_.name})}})}),(0,e.jsx)(t.XI.Cell,{collapsing:!0,width:"18px",children:(0,e.jsx)(t.$n,{color:"transparent",tooltip:"Set Autorun",tooltipPosition:"left",selected:_.autorun,onClick:function(){return a("PC_setautorun",{name:_.name})},children:"AR"})})]},_.name)})})})]})})}},9785:function(y,u,n){"use strict";n.r(u),n.d(u,{NtosNetChat:function(){return i}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),i=function(h){var x=(0,o.Oc)(),d=x.act,a=x.data,l=a.can_admin,s=a.adminmode,c=a.authed,f=a.username,v=a.active_channel,g=a.is_operator,E=a.all_channels,j=E===void 0?[]:E,C=a.clients,M=C===void 0?[]:C,P=a.messages,_=P===void 0?[]:P,S=v!==null,T=c||s;return(0,e.jsx)(r.Zm,{width:900,height:675,children:(0,e.jsx)(r.Zm.Content,{children:(0,e.jsx)(t.wn,{height:"600px",children:(0,e.jsx)(t.XI,{height:"580px",children:(0,e.jsxs)(t.XI.Row,{children:[(0,e.jsxs)(t.XI.Cell,{verticalAlign:"top",style:{width:"200px"},children:[(0,e.jsxs)(t.az,{height:"560px",overflowY:"scroll",children:[(0,e.jsx)(t.$n.Input,{fluid:!0,onCommit:function(b,L){return d("PRG_newchannel",{new_channel_name:L})},children:"New Channel..."}),j.map(function(b){return(0,e.jsx)(t.$n,{fluid:!0,selected:b.id===v,color:"transparent",onClick:function(){return d("PRG_joinchannel",{id:b.id})},children:b.chan},b.chan)})]}),(0,e.jsx)(t.$n.Input,{fluid:!0,mt:1,currentValue:f,onCommit:function(b,L){return d("PRG_changename",{new_name:L})},children:f+"..."}),!!l&&(0,e.jsx)(t.$n,{fluid:!0,bold:!0,color:s?"bad":"good",onClick:function(){return d("PRG_toggleadmin")},children:"ADMIN MODE: "+(s?"ON":"OFF")})]}),(0,e.jsxs)(t.XI.Cell,{children:[(0,e.jsx)(t.az,{height:"560px",overflowY:"scroll",children:S&&(T?_.map(function(b){return(0,e.jsx)(t.az,{children:b.msg},b.msg)}):(0,e.jsxs)(t.az,{textAlign:"center",children:[(0,e.jsx)(t.In,{name:"exclamation-triangle",mt:4,fontSize:"40px"}),(0,e.jsx)(t.az,{mt:1,bold:!0,fontSize:"18px",children:"THIS CHANNEL IS PASSWORD PROTECTED"}),(0,e.jsx)(t.az,{mt:1,children:"INPUT PASSWORD TO ACCESS"})]}))}),(0,e.jsx)(t.pd,{fluid:!0,selfClear:!0,mt:1,onEnter:function(b,L){return d("PRG_speak",{message:L})}})]}),(0,e.jsxs)(t.XI.Cell,{verticalAlign:"top",style:{width:"150px"},children:[(0,e.jsx)(t.az,{height:"465px",overflowY:"scroll",children:M.map(function(b){return(0,e.jsx)(t.az,{children:b.name},b.name)})}),S&&T&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n.Input,{fluid:!0,defaultValue:"new_log",onCommit:function(b,L){return d("PRG_savelog",{log_name:L})},children:"Save log..."}),(0,e.jsx)(t.$n.Confirm,{fluid:!0,onClick:function(){return d("PRG_leavechannel")},children:"Leave Channel"})]}),!!g&&c&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n.Confirm,{fluid:!0,onClick:function(){return d("PRG_deletechannel")},children:"Delete Channel"}),(0,e.jsx)(t.$n.Input,{fluid:!0,onCommit:function(b,L){return d("PRG_renamechannel",{new_name:L})},children:"Rename Channel..."}),(0,e.jsx)(t.$n.Input,{fluid:!0,onCommit:function(b,L){return d("PRG_setpassword",{new_password:L})},children:"Set Password..."})]})]})]})})})})})}},82193:function(y,u,n){"use strict";n.r(u),n.d(u,{NtosNetDos:function(){return i},NtosNetDosContent:function(){return h}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),i=function(){return(0,e.jsx)(r.Zm,{width:400,height:250,theme:"syndicate",children:(0,e.jsx)(r.Zm.Content,{children:(0,e.jsx)(h,{})})})},h=function(x){var d=(0,o.Oc)(),a=d.act,l=d.data,s=l.relays,c=s===void 0?[]:s,f=l.focus,v=l.target,g=l.speed,E=l.overload,j=l.capacity,C=l.error;if(C)return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.IC,{children:C}),(0,e.jsx)(t.$n,{fluid:!0,textAlign:"center",onClick:function(){return a("PRG_reset")},children:"Reset"})]});var M=function(_){for(var S="",T=E/j;S.length<_;)Math.random()>T?S+="0":S+="1";return S},P=45;return v?(0,e.jsxs)(t.wn,{fontFamily:"monospace",textAlign:"center",children:[(0,e.jsxs)(t.az,{children:["CURRENT SPEED: ",g," GQ/s"]}),(0,e.jsx)(t.az,{children:M(P)}),(0,e.jsx)(t.az,{children:M(P)}),(0,e.jsx)(t.az,{children:M(P)}),(0,e.jsx)(t.az,{children:M(P)}),(0,e.jsx)(t.az,{children:M(P)})]}):(0,e.jsxs)(t.wn,{children:[(0,e.jsx)(t.Ki,{children:(0,e.jsx)(t.Ki.Item,{label:"Target",children:c.map(function(_){return(0,e.jsx)(t.$n,{selected:f===_.id,onClick:function(){return a("PRG_target_relay",{targid:_.id})},children:_.id},_.id)})})}),(0,e.jsx)(t.$n,{fluid:!0,bold:!0,color:"bad",textAlign:"center",disabled:!f,mt:1,onClick:function(){return a("PRG_execute")},children:"EXECUTE"})]})}},43726:function(y,u,n){"use strict";n.r(u),n.d(u,{NtosNetDownloader:function(){return h}});var e=n(20462),o=n(4089),t=n(7081),r=n(88569),i=n(15581),h=function(d){var a=(0,t.Oc)(),l=a.act,s=a.data,c=s.PC_device_theme,f=s.disk_size,v=s.disk_used,g=s.downloadable_programs,E=g===void 0?[]:g,j=s.error,C=s.hacked_programs,M=C===void 0?[]:C,P=s.hackedavailable;return(0,e.jsx)(i.Zm,{theme:c,width:480,height:735,children:(0,e.jsxs)(i.Zm.Content,{scrollable:!0,children:[!!j&&(0,e.jsxs)(r.IC,{children:[(0,e.jsx)(r.az,{mb:1,children:j}),(0,e.jsx)(r.$n,{onClick:function(){return l("PRG_reseterror")},children:"Reset"})]}),(0,e.jsx)(r.wn,{children:(0,e.jsx)(r.Ki,{children:(0,e.jsx)(r.Ki.Item,{label:"Disk usage",children:(0,e.jsx)(r.z2,{value:v,minValue:0,maxValue:f,children:v+" GQ / "+f+" GQ"})})})}),(0,e.jsx)(r.wn,{children:E.map(function(_){return(0,e.jsx)(x,{program:_},_.filename)})}),!!P&&(0,e.jsxs)(r.wn,{title:"UNKNOWN Software Repository",children:[(0,e.jsx)(r.IC,{mb:1,children:"Please note that Nanotrasen does not recommend download of software from non-official servers."}),M.map(function(_){return(0,e.jsx)(x,{program:_},_.filename)})]})]})})},x=function(d){var a=d.program,l=(0,t.Oc)(),s=l.act,c=l.data,f=c.disk_size,v=c.disk_used,g=c.downloadcompletion,E=c.downloadname,j=c.downloadsize,C=c.downloadspeed,M=c.downloads_queue,P=f-v;return(0,e.jsxs)(r.az,{mb:3,children:[(0,e.jsxs)(r.so,{align:"baseline",children:[(0,e.jsx)(r.so.Item,{bold:!0,grow:1,children:a.filedesc}),(0,e.jsxs)(r.so.Item,{color:"label",nowrap:!0,children:[a.size," GQ"]}),(0,e.jsx)(r.so.Item,{ml:2,width:"110px",textAlign:"center",children:a.filename===E&&(0,e.jsxs)(r.z2,{color:"green",minValue:0,maxValue:j,value:g,children:[(0,o.Mg)(g/j*100,1),"%\xA0","("+C+"GQ/s)"]})||M.indexOf(a.filename)!==-1&&(0,e.jsx)(r.$n,{icon:"ban",color:"bad",onClick:function(){return s("PRG_removequeued",{filename:a.filename})},children:"Queued..."})||(0,e.jsx)(r.$n,{fluid:!0,icon:"download",disabled:a.size>P,onClick:function(){return s("PRG_downloadfile",{filename:a.filename})},children:"Download"})})]}),a.compatibility!=="Compatible"&&(0,e.jsxs)(r.az,{mt:1,italic:!0,fontSize:"12px",position:"relative",children:[(0,e.jsx)(r.In,{mx:1,color:"red",name:"times"}),"Incompatible!"]}),a.size>P&&(0,e.jsxs)(r.az,{mt:1,italic:!0,fontSize:"12px",position:"relative",children:[(0,e.jsx)(r.In,{mx:1,color:"red",name:"times"}),"Not enough disk space!"]}),(0,e.jsx)(r.az,{mt:1,italic:!0,color:"label",fontSize:"12px",children:a.fileinfo})]})}},30817:function(y,u,n){"use strict";n.r(u),n.d(u,{NtosNetMonitor:function(){return i}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),i=function(h){var x=(0,o.Oc)(),d=x.act,a=x.data,l=a.ntnetrelays,s=a.ntnetstatus,c=a.config_softwaredownload,f=a.config_peertopeer,v=a.config_communication,g=a.config_systemcontrol,E=a.idsalarm,j=a.idsstatus,C=a.ntnetmaxlogs,M=a.maxlogs,P=a.minlogs,_=a.banned_nids,S=a.ntnetlogs,T=S===void 0?[]:S;return(0,e.jsx)(r.Zm,{children:(0,e.jsxs)(r.Zm.Content,{scrollable:!0,children:[(0,e.jsx)(t.IC,{children:"WARNING: Disabling wireless transmitters when using a wireless device may prevent you from reenabling them!"}),(0,e.jsx)(t.wn,{title:"Wireless Connectivity",buttons:(0,e.jsx)(t.$n.Confirm,{icon:s?"power-off":"times",selected:s,onClick:function(){return d("toggleWireless")},children:s?"ENABLED":"DISABLED"}),children:l?(0,e.jsx)(t.Ki,{children:(0,e.jsx)(t.Ki.Item,{label:"Active NTNet Relays",children:l})}):"No Relays Connected"}),(0,e.jsx)(t.wn,{title:"Firewall Configuration",children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Software Downloads",buttons:(0,e.jsx)(t.$n,{icon:c?"power-off":"times",selected:c,onClick:function(){return d("toggle_function",{id:"1"})},children:c?"ENABLED":"DISABLED"})}),(0,e.jsx)(t.Ki.Item,{label:"Peer to Peer Traffic",buttons:(0,e.jsx)(t.$n,{icon:f?"power-off":"times",selected:f,onClick:function(){return d("toggle_function",{id:"2"})},children:f?"ENABLED":"DISABLED"})}),(0,e.jsx)(t.Ki.Item,{label:"Communication Systems",buttons:(0,e.jsx)(t.$n,{icon:v?"power-off":"times",selected:v,onClick:function(){return d("toggle_function",{id:"3"})},children:v?"ENABLED":"DISABLED"})}),(0,e.jsx)(t.Ki.Item,{label:"Remote System Control",buttons:(0,e.jsx)(t.$n,{icon:g?"power-off":"times",selected:g,onClick:function(){return d("toggle_function",{id:"4"})},children:g?"ENABLED":"DISABLED"})})]})}),(0,e.jsxs)(t.wn,{title:"Security Systems",children:[!!E&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.IC,{children:"NETWORK INCURSION DETECTED"}),(0,e.jsx)(t.az,{italic:!0,children:"Abnormal activity has been detected in the network. Check system logs for more information"})]}),(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Banned NIDs",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n,{icon:"ban",onClick:function(){return d("ban_nid")},children:"Ban NID"}),(0,e.jsx)(t.$n,{icon:"balance-scale",onClick:function(){return d("unban_nid")},children:"Unban NID"})]}),children:_.join(", ")||"None"}),(0,e.jsx)(t.Ki.Item,{label:"IDS Status",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n,{icon:j?"power-off":"times",selected:j,onClick:function(){return d("toggleIDS")},children:j?"ENABLED":"DISABLED"}),(0,e.jsx)(t.$n,{icon:"sync",color:"bad",onClick:function(){return d("resetIDS")},children:"Reset"})]})}),(0,e.jsx)(t.Ki.Item,{label:"Max Log Count",buttons:(0,e.jsx)(t.Q7,{step:1,value:C,minValue:P,maxValue:M,width:"39px",onChange:function(b){return d("updatemaxlogs",{new_number:b})}})})]}),(0,e.jsx)(t.wn,{title:"System Log",buttons:(0,e.jsx)(t.$n.Confirm,{icon:"trash",onClick:function(){return d("purgelogs")},children:"Clear Logs"}),children:T.map(function(b){return(0,e.jsx)(t.az,{className:"candystripe",children:b.entry},b.entry)})})]})]})})}},49106:function(y,u,n){"use strict";n.r(u),n.d(u,{NtosNetTransfer:function(){return i}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),i=function(s){var c=(0,o.Oc)().data,f=c.error,v=c.downloading,g=c.uploading,E=c.upload_filelist,j=(0,e.jsx)(l,{});return f?j=(0,e.jsx)(h,{}):v?j=(0,e.jsx)(x,{}):g?j=(0,e.jsx)(d,{}):E.length&&(j=(0,e.jsx)(a,{})),(0,e.jsx)(r.Zm,{width:575,height:700,children:(0,e.jsx)(r.Zm.Content,{scrollable:!0,children:j})})},h=function(s){var c=(0,o.Oc)(),f=c.act,v=c.data,g=v.error;return(0,e.jsxs)(t.wn,{title:"An error has occured during operation.",buttons:(0,e.jsx)(t.$n,{icon:"undo",onClick:function(){return f("PRG_reset")},children:"Reset"}),children:["Additional Information: ",g]})},x=function(s){var c=(0,o.Oc)(),f=c.act,v=c.data,g=v.download_name,E=v.download_progress,j=v.download_size,C=v.download_netspeed;return(0,e.jsx)(t.wn,{title:"Download in progress",children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Downloaded File",children:g}),(0,e.jsx)(t.Ki.Item,{label:"Progress",children:(0,e.jsxs)(t.z2,{value:E,maxValue:j,children:[E," / ",j," GQ"]})}),(0,e.jsxs)(t.Ki.Item,{label:"Transfer Speed",children:[C," GQ/s"]}),(0,e.jsx)(t.Ki.Item,{label:"Controls",children:(0,e.jsx)(t.$n,{icon:"ban",onClick:function(){return f("PRG_reset")},children:"Cancel Download"})})]})})},d=function(s){var c=(0,o.Oc)(),f=c.act,v=c.data,g=v.upload_clients,E=v.upload_filename,j=v.upload_haspassword;return(0,e.jsx)(t.wn,{title:"Server enabled",children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Clients Connected",children:g}),(0,e.jsx)(t.Ki.Item,{label:"Provided file",children:E}),(0,e.jsx)(t.Ki.Item,{label:"Server Password",children:j?"Enabled":"Disabled"}),(0,e.jsxs)(t.Ki.Item,{label:"Commands",children:[(0,e.jsx)(t.$n,{icon:"lock",onClick:function(){return f("PRG_setpassword")},children:"Set Password"}),(0,e.jsx)(t.$n,{icon:"ban",onClick:function(){return f("PRG_reset")},children:"Cancel Upload"})]})]})})},a=function(s){var c=(0,o.Oc)(),f=c.act,v=c.data,g=v.upload_filelist;return(0,e.jsxs)(t.wn,{title:"File transfer server ready.",buttons:(0,e.jsx)(t.$n,{icon:"undo",onClick:function(){return f("PRG_reset")},children:"Cancel"}),children:[(0,e.jsx)(t.$n,{fluid:!0,icon:"lock",onClick:function(){return f("PRG_setpassword")},children:"Set Password"}),(0,e.jsx)(t.wn,{title:"Pick file to serve.",children:g.map(function(E){return(0,e.jsxs)(t.$n,{fluid:!0,icon:"upload",onClick:function(){return f("PRG_uploadfile",{uid:E.uid})},children:[E.filename," (",E.size,"GQ)"]},E.uid)})})]})},l=function(s){var c=(0,o.Oc)(),f=c.act,v=c.data,g=v.servers;return(0,e.jsx)(t.wn,{title:"Available Files",buttons:(0,e.jsx)(t.$n,{icon:"upload",onClick:function(){return f("PRG_uploadmenu")},children:"Send File"}),children:g.length&&(0,e.jsx)(t.Ki,{children:g.map(function(E){return(0,e.jsxs)(t.Ki.Item,{label:E.uid,children:[!!E.haspassword&&(0,e.jsx)(t.In,{name:"lock",mr:1}),E.filename,"\xA0 (",E.size,"GQ)\xA0",(0,e.jsx)(t.$n,{icon:"download",onClick:function(){return f("PRG_downloadfile",{uid:E.uid})},children:"Download"})]},E.uid)})})||(0,e.jsx)(t.az,{children:"No upload servers found."})})}},50653:function(y,u,n){"use strict";n.r(u),n.d(u,{NtosNewsBrowser:function(){return h}});var e=n(20462),o=n(31200),t=n(7081),r=n(88569),i=n(15581),h=function(l){var s=(0,t.Oc)(),c=s.act,f=s.data,v=f.article,g=f.download,E=f.message,j=(0,e.jsx)(d,{});return v?j=(0,e.jsx)(x,{}):g&&(j=(0,e.jsx)(a,{})),(0,e.jsx)(i.Zm,{width:575,height:750,children:(0,e.jsxs)(i.Zm.Content,{scrollable:!0,children:[!!E&&(0,e.jsxs)(r.IC,{children:[E," ",(0,e.jsx)(r.$n,{icon:"times",onClick:function(){return c("PRG_clearmessage")}})]}),j]})})},x=function(l){var s=(0,t.Oc)(),c=s.act,f=s.data,v=f.article;if(!v)return(0,e.jsx)(r.wn,{children:"Error: Article not found."});var g=v.title,E=v.cover,j=v.content;return(0,e.jsxs)(r.wn,{title:"Viewing: "+g,buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.$n,{icon:"save",onClick:function(){return c("PRG_savearticle")},children:"Save"}),(0,e.jsx)(r.$n,{icon:"times",onClick:function(){return c("PRG_reset")},children:"Close"})]}),children:[!!E&&(0,e.jsx)(r._V,{src:(0,o.l)(E)}),(0,e.jsx)("div",{dangerouslySetInnerHTML:{__html:j}})]})},d=function(l){var s=(0,t.Oc)(),c=s.act,f=s.data,v=f.showing_archived,g=f.all_articles;return(0,e.jsx)(r.wn,{title:"Articles List",buttons:(0,e.jsx)(r.$n.Checkbox,{onClick:function(){return c("PRG_toggle_archived")},checked:v,children:"Show Archived"}),children:(0,e.jsx)(r.Ki,{children:g.length&&g.map(function(E){return(0,e.jsxs)(r.Ki.Item,{label:E.name,buttons:(0,e.jsx)(r.$n,{icon:"download",onClick:function(){return c("PRG_openarticle",{uid:E.uid})}}),children:[E.size," GQ"]},E.uid)})||(0,e.jsx)(r.Ki.Item,{label:"Error",children:"There appear to be no outstanding news articles on NTNet today."})})})},a=function(l){var s=(0,t.Oc)(),c=s.act,f=s.data,v=f.download,g=v.download_progress,E=v.download_maxprogress,j=v.download_rate;return(0,e.jsx)(r.wn,{title:"Downloading...",children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Progress",children:(0,e.jsxs)(r.z2,{color:"good",minValue:0,value:g,maxValue:E,children:[g," / ",E," GQ"]})}),(0,e.jsxs)(r.Ki.Item,{label:"Download Speed",children:[j," GQ/s"]}),(0,e.jsx)(r.Ki.Item,{label:"Controls",children:(0,e.jsx)(r.$n,{icon:"ban",fluid:!0,onClick:function(){return c("PRG_reset")},children:"Abort Download"})})]})})}},95436:function(y,u,n){"use strict";n.r(u),n.d(u,{NtosOvermapNavigation:function(){return r}});var e=n(20462),o=n(15581),t=n(65912),r=function(){return(0,e.jsx)(o.Zm,{width:380,height:530,children:(0,e.jsx)(o.Zm.Content,{scrollable:!0,children:(0,e.jsx)(t.OvermapNavigationContent,{})})})}},75655:function(y,u,n){"use strict";n.r(u),n.d(u,{NtosPowerMonitor:function(){return r}});var e=n(20462),o=n(15581),t=n(91276),r=function(){return(0,e.jsx)(o.Zm,{width:550,height:700,children:(0,e.jsx)(o.Zm.Content,{scrollable:!0,children:(0,e.jsx)(t.PowerMonitorContent,{})})})}},81986:function(y,u,n){"use strict";n.r(u),n.d(u,{NtosRCON:function(){return r}});var e=n(20462),o=n(15581),t=n(72778),r=function(){return(0,e.jsx)(o.Zm,{width:630,height:440,children:(0,e.jsx)(o.Zm.Content,{scrollable:!0,children:(0,e.jsx)(t.RCONContent,{})})})}},35399:function(y,u,n){"use strict";n.r(u),n.d(u,{NtosRevelation:function(){return i}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),i=function(h){var x=(0,o.Oc)(),d=x.act,a=x.data,l=a.armed;return(0,e.jsx)(r.Zm,{width:400,height:250,theme:"syndicate",children:(0,e.jsx)(r.Zm.Content,{children:(0,e.jsxs)(t.wn,{children:[(0,e.jsx)(t.$n.Input,{fluid:!0,onCommit:function(s,c){return d("PRG_obfuscate",{new_name:c})},mb:1,children:"Obfuscate Name..."}),(0,e.jsx)(t.Ki,{children:(0,e.jsx)(t.Ki.Item,{label:"Payload Status",buttons:(0,e.jsx)(t.$n,{color:l?"bad":"average",onClick:function(){return d("PRG_arm")},children:l?"ARMED":"DISARMED"})})}),(0,e.jsx)(t.$n,{fluid:!0,bold:!0,textAlign:"center",color:"bad",disabled:!l,children:"ACTIVATE"})]})})})}},79389:function(y,u,n){"use strict";n.r(u),n.d(u,{NtosShutoffMonitor:function(){return r}});var e=n(20462),o=n(15581),t=n(67889),r=function(){return(0,e.jsx)(o.Zm,{width:627,height:700,children:(0,e.jsx)(o.Zm.Content,{children:(0,e.jsx)(t.ShutoffMonitorContent,{})})})}},98011:function(y,u,n){"use strict";n.r(u),n.d(u,{NtosStationAlertConsole:function(){return r}});var e=n(20462),o=n(15581),t=n(68679),r=function(){return(0,e.jsx)(o.Zm,{width:315,height:500,children:(0,e.jsx)(o.Zm.Content,{scrollable:!0,children:(0,e.jsx)(t.StationAlertConsoleContent,{})})})}},57488:function(y,u,n){"use strict";n.r(u),n.d(u,{NtosSupermatterMonitor:function(){return r}});var e=n(20462),o=n(15581),t=n(50028),r=function(){return(0,e.jsx)(o.Zm,{width:600,height:400,children:(0,e.jsx)(o.Zm.Content,{scrollable:!0,children:(0,e.jsx)(t.SupermatterMonitorContent,{})})})}},10774:function(y,u,n){"use strict";n.r(u),n.d(u,{NtosUAV:function(){return i}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),i=function(h){var x=(0,o.Oc)(),d=x.act,a=x.data,l=a.current_uav,s=a.signal_strength,c=a.in_use,f=a.paired_uavs;return(0,e.jsx)(r.Zm,{width:600,height:500,children:(0,e.jsxs)(r.Zm.Content,{children:[(0,e.jsx)(t.wn,{title:"Selected UAV",children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"UAV",children:l&&l.status||"[Not Connected]"}),(0,e.jsx)(t.Ki.Item,{label:"Signal",children:l&&s||"[Not Connected]"}),(0,e.jsx)(t.Ki.Item,{label:"Power",children:l&&(0,e.jsx)(t.$n,{icon:"power-off",selected:l.power,onClick:function(){return d("power_uav")},children:l.power?"Online":"Offline"})||"[Not Connected]"}),(0,e.jsx)(t.Ki.Item,{label:"Camera",children:l&&(0,e.jsx)(t.$n,{icon:"power-off",selected:c,disabled:!l.power,onClick:function(){return d("view_uav")},children:l.power?"Available":"Unavailable"})||"[Not Connected]"})]})}),(0,e.jsx)(t.wn,{title:"Paired UAVs",children:f.length&&f.map(function(v){return(0,e.jsxs)(t.so,{spacing:1,children:[(0,e.jsx)(t.so.Item,{grow:1,children:(0,e.jsx)(t.$n,{fluid:!0,icon:"quidditch",onClick:function(){return d("switch_uav",{switch_uav:v.uavref})},children:v.name})}),(0,e.jsx)(t.so.Item,{children:(0,e.jsx)(t.$n,{color:"bad",icon:"times",onClick:function(){return d("del_uav",{del_uav:v.uavref})}})})]},v.uavref)})||(0,e.jsx)(t.az,{color:"average",children:"No UAVs Paired."})})]})})}},69062:function(y,u,n){"use strict";n.r(u),n.d(u,{NtosWordProcessor:function(){return i}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),i=function(h){var x=(0,o.Oc)(),d=x.act,a=x.data,l=a.PC_device_theme,s=a.error,c=a.browsing,f=a.files,v=a.filename,g=a.filedata;return(0,e.jsx)(r.Zm,{resizable:!0,theme:l,children:(0,e.jsx)(r.Zm.Content,{scrollable:!0,children:s&&(0,e.jsxs)(t.az,{color:"bad",children:[(0,e.jsx)("h2",{children:"An Error has occured:"}),"Additional Information: ",s,"Please try again. If the problem persists, contact your system administrator for assistance.",(0,e.jsx)(t.$n,{icon:"arrow-left",onClick:function(){return d("PRG_backtomenu")},children:"Back to menu"})]})||c&&(0,e.jsx)(t.wn,{title:"File Browser",buttons:(0,e.jsx)(t.$n,{icon:"arrow-left",onClick:function(){return d("PRG_closebrowser")},children:"Back to editor"}),children:(0,e.jsx)(t.wn,{title:"Available documents (local)",children:(0,e.jsxs)(t.XI,{children:[(0,e.jsxs)(t.XI.Row,{header:!0,children:[(0,e.jsx)(t.XI.Cell,{children:"Name"}),(0,e.jsx)(t.XI.Cell,{children:"Size (GQ)"}),(0,e.jsx)(t.XI.Cell,{collapsing:!0})]}),f.map(function(E,j){return(0,e.jsxs)(t.XI.Row,{children:[(0,e.jsx)(t.XI.Cell,{children:E.name}),(0,e.jsx)(t.XI.Cell,{children:E.size}),(0,e.jsx)(t.XI.Cell,{collapsing:!0,children:(0,e.jsx)(t.$n,{icon:"file-word",onClick:function(){return d("PRG_openfile",{PRG_openfile:E.name})},children:"Open"})})]},j)})]})})})||(0,e.jsxs)(t.wn,{title:"Document: "+v,children:[(0,e.jsxs)(t.az,{children:[(0,e.jsx)(t.$n,{onClick:function(){return d("PRG_newfile")},children:"New"}),(0,e.jsx)(t.$n,{onClick:function(){return d("PRG_loadmenu")},children:"Load"}),(0,e.jsx)(t.$n,{onClick:function(){return d("PRG_savefile")},children:"Save"}),(0,e.jsx)(t.$n,{onClick:function(){return d("PRG_saveasfile")},children:"Save As"})]}),(0,e.jsxs)(t.az,{children:[(0,e.jsx)(t.$n,{onClick:function(){return d("PRG_editfile")},children:"Edit"}),(0,e.jsx)(t.$n,{onClick:function(){return d("PRG_txtrpeview")},children:"Preview"}),(0,e.jsx)(t.$n,{onClick:function(){return d("PRG_taghelp")},children:"Formatting Help"}),(0,e.jsx)(t.$n,{disabled:!g,onClick:function(){return d("PRG_printfile")},children:"Print"})]}),(0,e.jsx)(t.wn,{mt:1,children:(0,e.jsx)("div",{dangerouslySetInnerHTML:{__html:g}})})]})})})}},46836:function(y,u,n){"use strict";n.r(u),n.d(u,{NumberInputModal:function(){return a}});var e=n(20462),o=n(87239),t=n(61358),r=n(7081),i=n(88569),h=n(15581),x=n(5335),d=n(44149),a=function(s){var c=(0,r.Oc)(),f=c.act,v=c.data,g=v.init_value,E=v.large_buttons,j=v.message,C=j===void 0?"":j,M=v.timeout,P=v.title,_=(0,t.useState)(g),S=_[0],T=_[1],b=function(W){W!==S&&T(W)},L=140+(C.length>30?Math.ceil(C.length/3):0)+(C.length&&E?5:0);return(0,e.jsxs)(h.p8,{title:P,width:270,height:L,children:[M&&(0,e.jsx)(d.Loader,{value:M}),(0,e.jsx)(h.p8.Content,{onKeyDown:function(W){W.key===o._.Enter&&f("submit",{entry:S}),(0,o.K)(W.key)&&f("cancel")},children:(0,e.jsx)(i.wn,{fill:!0,children:(0,e.jsxs)(i.BJ,{fill:!0,vertical:!0,children:[(0,e.jsx)(i.BJ.Item,{grow:!0,children:(0,e.jsx)(i.az,{color:"label",children:C})}),(0,e.jsx)(i.BJ.Item,{children:(0,e.jsx)(l,{input:S,onClick:b,onChange:b,onBlur:b})}),(0,e.jsx)(i.BJ.Item,{children:(0,e.jsx)(x.InputButtons,{input:S})})]})})})]})},l=function(s){var c=(0,r.Oc)(),f=c.act,v=c.data,g=v.min_value,E=v.max_value,j=v.init_value,C=v.round_value,M=s.input,P=s.onClick,_=s.onChange,S=s.onBlur;return(0,e.jsxs)(i.BJ,{fill:!0,children:[(0,e.jsx)(i.BJ.Item,{children:(0,e.jsx)(i.$n,{disabled:M===g,icon:"angle-double-left",onClick:function(){return P(g)},tooltip:g?"Min ("+g+")":"Min"})}),(0,e.jsx)(i.BJ.Item,{grow:!0,children:(0,e.jsx)(i.SM,{autoFocus:!0,autoSelect:!0,fluid:!0,allowFloats:!C,minValue:g,maxValue:E,onChange:function(T,b){return _(b)},onBlur:function(T,b){return S(b)},onEnter:function(T,b){return f("submit",{entry:b})},value:M})}),(0,e.jsx)(i.BJ.Item,{children:(0,e.jsx)(i.$n,{disabled:M===E,icon:"angle-double-right",onClick:function(){return P(E)},tooltip:E?"Max ("+E+")":"Max"})}),(0,e.jsx)(i.BJ.Item,{children:(0,e.jsx)(i.$n,{disabled:M===j,icon:"redo",onClick:function(){return P(j)},tooltip:j?"Reset ("+j+")":"Reset"})})]})}},12333:function(y,u,n){"use strict";n.r(u),n.d(u,{OmniFilter:function(){return h}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),i=function(x){return x.input?"Input":x.output?"Output":x.f_type?x.f_type:"Disabled"},h=function(x){var d=(0,o.Oc)(),a=d.act,l=d.data,s=l.power,c=l.config,f=l.ports,v=l.set_flow_rate,g=l.last_flow_rate;return(0,e.jsx)(r.p8,{width:360,height:330,children:(0,e.jsxs)(r.p8.Content,{children:[(0,e.jsx)(t.wn,{title:c?"Configuration":"Status",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n,{icon:"power-off",selected:s,disabled:c,onClick:function(){return a("power")},children:s?"On":"Off"}),(0,e.jsx)(t.$n,{icon:"wrench",selected:c,onClick:function(){return a("configure")}})]}),children:(0,e.jsx)(t.Ki,{children:f?f.map(function(E){return(0,e.jsx)(t.Ki.Item,{label:E.dir+" Port",children:c?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n,{selected:E.input,icon:"compress-arrows-alt",onClick:function(){return a("switch_mode",{mode:"in",dir:E.dir})},children:"IN"}),(0,e.jsx)(t.$n,{selected:E.output,icon:"expand-arrows-alt",onClick:function(){return a("switch_mode",{mode:"out",dir:E.dir})},children:"OUT"}),(0,e.jsx)(t.$n,{icon:"wrench",disabled:E.input||E.output,onClick:function(){return a("switch_filter",{mode:E.f_type,dir:E.dir})},children:E.f_type||"None"})]}):i(E)},E.dir)}):(0,e.jsx)(t.az,{color:"bad",children:"No Ports Detected"})})}),(0,e.jsx)(t.wn,{title:"Flow Rate",children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsxs)(t.Ki.Item,{label:"Current Flow Rate",children:[g," L/s"]}),(0,e.jsx)(t.Ki.Item,{label:"Flow Rate Limit",children:c?(0,e.jsx)(t.$n,{icon:"wrench",onClick:function(){return a("set_flow_rate")},children:v+" L/s"}):v+" L/s"})]})})]})})}},60780:function(y,u,n){"use strict";n.r(u),n.d(u,{OmniMixer:function(){return h}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),i=function(d){return d.input?"Input":d.output?"Output":d.f_type?d.f_type:"Disabled"},h=function(d){var a=(0,o.Oc)(),l=a.act,s=a.data,c=s.power,f=s.config,v=s.ports,g=s.set_flow_rate,E=s.last_flow_rate;return(0,e.jsx)(r.p8,{width:390,height:330,children:(0,e.jsxs)(r.p8.Content,{children:[(0,e.jsx)(t.wn,{title:f?"Configuration":"Status",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n,{icon:"power-off",selected:c,disabled:f,onClick:function(){return l("power")},children:c?"On":"Off"}),(0,e.jsx)(t.$n,{icon:"wrench",selected:f,onClick:function(){return l("configure")}})]}),children:(0,e.jsxs)(t.XI,{children:[(0,e.jsxs)(t.XI.Row,{header:!0,children:[(0,e.jsx)(t.XI.Cell,{textAlign:"center",children:"Port"}),f?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.XI.Cell,{textAlign:"center",children:"Input"}),(0,e.jsx)(t.XI.Cell,{textAlign:"center",children:"Output"})]}):(0,e.jsx)(t.XI.Cell,{textAlign:"center",children:"Mode"}),(0,e.jsx)(t.XI.Cell,{textAlign:"center",children:"Concentration"}),f?(0,e.jsx)(t.XI.Cell,{textAlign:"center",children:"Lock"}):null]}),v?v.map(function(j){return(0,e.jsx)(x,{port:j,config:f},j.dir)}):(0,e.jsx)(t.az,{color:"bad",children:"No Ports Detected"})]})}),(0,e.jsx)(t.wn,{title:"Flow Rate",children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsxs)(t.Ki.Item,{label:"Current Flow Rate",children:[E," L/s"]}),(0,e.jsx)(t.Ki.Item,{label:"Flow Rate Limit",children:f?(0,e.jsx)(t.$n,{icon:"wrench",onClick:function(){return l("set_flow_rate")},children:g+" L/s"}):g+" L/s"})]})})]})})},x=function(d){var a=(0,o.Oc)().act,l=d.port,s=d.config;return(0,e.jsxs)(t.XI.Row,{children:[(0,e.jsx)(t.XI.Cell,{textAlign:"center",children:l.dir+" Port"}),(0,e.jsx)(t.XI.Cell,{textAlign:"center",children:s?(0,e.jsx)(t.$n,{selected:l.input,disabled:l.output,icon:"compress-arrows-alt",onClick:function(){return a("switch_mode",{mode:l.input?"none":"in",dir:l.dir})},children:"IN"}):i(l)}),(0,e.jsx)(t.XI.Cell,{textAlign:"center",children:s?(0,e.jsx)(t.$n,{selected:l.output,icon:"expand-arrows-alt",onClick:function(){return a("switch_mode",{mode:"out",dir:l.dir})},children:"OUT"}):l.concentration*100+"%"}),s?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.XI.Cell,{textAlign:"center",width:"20%",children:(0,e.jsx)(t.$n,{width:"100%",icon:"wrench",disabled:!l.input,onClick:function(){return a("switch_con",{dir:l.dir})},children:l.input?l.concentration*100+" %":"-"})}),(0,e.jsx)(t.XI.Cell,{textAlign:"center",children:(0,e.jsx)(t.$n,{icon:l.con_lock?"lock":"lock-open",disabled:!l.input,selected:l.con_lock,onClick:function(){return a("switch_conlock",{dir:l.dir})},children:l.f_type||"None"})})]}):null]})}},43213:function(y,u,n){"use strict";n.r(u),n.d(u,{OperatingComputerOptions:function(){return r}});var e=n(20462),o=n(7081),t=n(88569),r=function(i){var h=(0,o.Oc)(),x=h.act,d=h.data,a=d.verbose,l=d.health,s=d.healthAlarm,c=d.oxy,f=d.oxyAlarm,v=d.crit;return(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Loudspeaker",children:(0,e.jsx)(t.$n,{selected:a,icon:a?"toggle-on":"toggle-off",onClick:function(){return x(a?"verboseOff":"verboseOn")},children:a?"On":"Off"})}),(0,e.jsx)(t.Ki.Item,{label:"Health Announcer",children:(0,e.jsx)(t.$n,{selected:l,icon:l?"toggle-on":"toggle-off",onClick:function(){return x(l?"healthOff":"healthOn")},children:l?"On":"Off"})}),(0,e.jsx)(t.Ki.Item,{label:"Health Announcer Threshold",children:(0,e.jsx)(t.N6,{bipolar:!0,minValue:-100,maxValue:100,value:s,stepPixelSize:5,ml:"0",format:function(g){return g+"%"},onChange:function(g,E){return x("health_adj",{new:E})}})}),(0,e.jsx)(t.Ki.Item,{label:"Oxygen Alarm",children:(0,e.jsx)(t.$n,{selected:c,icon:c?"toggle-on":"toggle-off",onClick:function(){return x(c?"oxyOff":"oxyOn")},children:c?"On":"Off"})}),(0,e.jsx)(t.Ki.Item,{label:"Oxygen Alarm Threshold",children:(0,e.jsx)(t.N6,{bipolar:!0,minValue:-100,maxValue:100,value:f,stepPixelSize:5,ml:"0",onChange:function(g,E){return x("oxy_adj",{new:E})}})}),(0,e.jsx)(t.Ki.Item,{label:"Critical Alert",children:(0,e.jsx)(t.$n,{selected:v,icon:v?"toggle-on":"toggle-off",onClick:function(){return x(v?"critOff":"critOn")},children:v?"On":"Off"})})]})}},88424:function(y,u,n){"use strict";n.r(u),n.d(u,{OperatingComputerPatient:function(){return i}});var e=n(20462),o=n(4089),t=n(88569),r=n(6050),i=function(h){var x=h.occupant;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.wn,{title:"Patient",children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Name",children:x.name}),(0,e.jsx)(t.Ki.Item,{label:"Status",color:r.stats[x.stat][0],children:r.stats[x.stat][1]}),(0,e.jsx)(t.Ki.Item,{label:"Health",children:(0,e.jsx)(t.z2,{minValue:0,maxValue:1,value:x.health/x.maxHealth,ranges:{good:[.5,1/0],average:[0,.5],bad:[-1/0,0]}})}),r.damages.map(function(d,a){return(0,e.jsx)(t.Ki.Item,{label:d[0]+" Damage",children:(0,e.jsx)(t.z2,{minValue:0,maxValue:1,value:x[d[1]]/100,ranges:r.damageRange,children:(0,o.Mg)(x[d[1]])},a)},a)}),(0,e.jsx)(t.Ki.Item,{label:"Temperature",children:(0,e.jsxs)(t.z2,{minValue:0,maxValue:1,value:x.bodyTemperature/x.maxTemp,color:r.tempColors[x.temperatureSuitability+3],children:[(0,o.Mg)(x.btCelsius),"\xB0C, ",(0,o.Mg)(x.btFaren),"\xB0F"]})}),!!x.hasBlood&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.Ki.Item,{label:"Blood Level",children:(0,e.jsxs)(t.z2,{minValue:0,maxValue:1,value:x.bloodLevel/x.bloodMax,ranges:{bad:[-1/0,.6],average:[.6,.9],good:[.6,1/0]},children:[x.bloodPercent,"%, ",x.bloodLevel,"cl"]})}),(0,e.jsxs)(t.Ki.Item,{label:"Pulse",children:[x.pulse," BPM"]})]})]})}),(0,e.jsx)(t.wn,{title:"Current Procedure",children:x.surgery&&x.surgery.length?(0,e.jsx)(t.Ki,{children:x.surgery.map(function(d){return(0,e.jsx)(t.Ki.Item,{label:d.name,children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Current State",children:d.currentStage}),(0,e.jsx)(t.Ki.Item,{label:"Possible Next Steps",children:d.nextSteps.map(function(a){return(0,e.jsx)("div",{children:a},a)})})]})},d.name)})}):(0,e.jsx)(t.az,{color:"label",children:"No procedure ongoing."})})]})}},13846:function(y,u,n){"use strict";n.r(u),n.d(u,{OperatingComputerUnoccupied:function(){return t}});var e=n(20462),o=n(88569),t=function(r){return(0,e.jsx)(o.so,{textAlign:"center",height:"100%",children:(0,e.jsxs)(o.so.Item,{grow:"1",align:"center",color:"label",children:[(0,e.jsx)(o.In,{name:"user-slash",mb:"0.5rem",size:5}),(0,e.jsx)("br",{}),"No patient detected."]})})}},6050:function(y,u,n){"use strict";n.r(u),n.d(u,{damageRange:function(){return t},damages:function(){return o},stats:function(){return e},tempColors:function(){return r}});var e=[["good","Conscious"],["average","Unconscious"],["bad","DEAD"]],o=[["Resp.","oxyLoss"],["Toxin","toxLoss"],["Brute","bruteLoss"],["Burn","fireLoss"]],t={average:[.25,.5],bad:[.5,1/0]},r=["bad","average","average","good","average","average","bad"]},70509:function(y,u,n){"use strict";n.r(u),n.d(u,{OperatingComputer:function(){return d}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),i=n(43213),h=n(88424),x=n(13846),d=function(a){var l=(0,o.Oc)(),s=l.act,c=l.data,f=c.hasOccupant,v=c.choice,g=c.occupant,E;return v?E=(0,e.jsx)(i.OperatingComputerOptions,{}):E=f?(0,e.jsx)(h.OperatingComputerPatient,{occupant:g}):(0,e.jsx)(x.OperatingComputerUnoccupied,{}),(0,e.jsx)(r.p8,{width:650,height:455,children:(0,e.jsxs)(r.p8.Content,{children:[(0,e.jsxs)(t.tU,{children:[(0,e.jsx)(t.tU.Tab,{selected:!v,icon:"user",onClick:function(){return s("choiceOff")},children:"Patient"}),(0,e.jsx)(t.tU.Tab,{selected:!!v,icon:"cog",onClick:function(){return s("choiceOn")},children:"Options"})]}),(0,e.jsx)(t.wn,{flexGrow:!0,children:E})]})})}},36882:function(y,u,n){"use strict";n.r(u)},81105:function(y,u,n){"use strict";n.r(u),n.d(u,{OvermapDisperser:function(){return h}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),i=n(91198),h=function(d){return(0,e.jsx)(r.p8,{width:400,height:550,children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsx)(x,{})})})},x=function(d){var a=(0,o.Oc)(),l=a.act,s=a.data,c=s.faillink,f=s.calibration,v=s.overmapdir,g=s.cal_accuracy,E=s.strength,j=s.range,C=s.next_shot,M=s.nopower,P=s.chargeload;return c?(0,e.jsx)(t.wn,{title:"Error",children:"Machine is incomplete, out of range, or misaligned!"}):(0,e.jsxs)(t.so,{wrap:"wrap",spacing:1,children:[(0,e.jsx)(t.so.Item,{basis:"22%",children:(0,e.jsx)(t.wn,{title:"Targeting",textAlign:"center",children:(0,e.jsx)(i.OvermapPanControls,{actToDo:"choose",selected:function(_){return _===v}})})}),(0,e.jsx)(t.so.Item,{basis:"74%",grow:1,children:(0,e.jsx)(t.wn,{title:"Charge",children:(0,e.jsxs)(t.Ki,{children:[M&&(0,e.jsx)(t.Ki.Item,{label:"Error",children:"At least one part of the machine is unpowered."})||"",(0,e.jsx)(t.Ki.Item,{label:"Charge Load Type",children:P}),(0,e.jsx)(t.Ki.Item,{label:"Cooldown",children:C===0&&(0,e.jsx)(t.az,{color:"good",children:"Ready"})||C>1&&(0,e.jsxs)(t.az,{color:"average",children:[(0,e.jsx)(t.zv,{value:C})," Seconds",(0,e.jsx)(t.az,{color:"bad",children:"Warning: Do not fire during cooldown."})]})||""})]})})}),(0,e.jsx)(t.so.Item,{basis:"50%",mt:1,children:(0,e.jsxs)(t.wn,{title:"Calibration",children:[(0,e.jsx)(t.zv,{value:g}),"%",(0,e.jsx)(t.$n,{ml:1,icon:"exchange-alt",onClick:function(){return l("skill_calibration")},children:"Pre-Calibration"}),(0,e.jsx)(t.az,{mt:1,children:f.map(function(_,S){return(0,e.jsxs)(t.az,{children:["Cal #",S,":",(0,e.jsx)(t.$n,{ml:1,icon:"random",onClick:function(){return l("calibration",{calibration:S})},children:_.toString()})]},S)})})]})}),(0,e.jsx)(t.so.Item,{basis:"45%",grow:1,mt:1,children:(0,e.jsx)(t.wn,{title:"Setup",children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Strength",children:(0,e.jsx)(t.$n,{fluid:!0,icon:"fist-raised",onClick:function(){return l("strength")},children:E})}),(0,e.jsx)(t.Ki.Item,{label:"Radius",children:(0,e.jsx)(t.$n,{fluid:!0,icon:"expand-arrows-alt",onClick:function(){return l("range")},children:j})})]})})}),(0,e.jsx)(t.so.Item,{grow:1,mt:1,children:(0,e.jsx)(t.$n,{fluid:!0,color:"red",icon:"bomb",onClick:function(){return l("fire")},children:"Fire ORB"})})]})}},22813:function(y,u,n){"use strict";n.r(u),n.d(u,{OvermapEngines:function(){return i},OvermapEnginesContent:function(){return h}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),i=function(x){return(0,e.jsx)(r.p8,{width:390,height:530,children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsx)(h,{})})})},h=function(x){var d=(0,o.Oc)(),a=d.act,l=d.data,s=l.global_state,c=l.global_limit,f=l.engines_info,v=l.total_thrust;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.wn,{title:"Status",children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Engines",children:(0,e.jsx)(t.$n,{icon:"power-off",selected:s,onClick:function(){return a("global_toggle")},children:s?"Shut All Engines Down":"Start All Engines"})}),(0,e.jsxs)(t.Ki.Item,{label:"Volume Limit",children:[(0,e.jsx)(t.$n,{onClick:function(){return a("global_limit",{global_limit:-.1})},icon:"minus"}),(0,e.jsxs)(t.$n,{onClick:function(){return a("set_global_limit")},children:[c,"%"]}),(0,e.jsx)(t.$n,{onClick:function(){return a("global_limit",{global_limit:.1})},icon:"plus"})]}),(0,e.jsx)(t.Ki.Item,{label:"Total Thrust",children:(0,e.jsx)(t.zv,{value:v})})]})}),(0,e.jsx)(t.wn,{title:"Engines",height:"340px",style:{overflowY:"auto"},children:f.map(function(g,E){return(0,e.jsxs)(t.so,{spacing:1,mt:E!==0&&-1,children:[(0,e.jsx)(t.so.Item,{basis:"80%",children:(0,e.jsx)(t.Nt,{title:(0,e.jsxs)(t.az,{inline:!0,children:["Engine #",E+1," | Thrust:"," ",(0,e.jsx)(t.zv,{value:g.eng_thrust})," | Limit:"," ",(0,e.jsx)(t.zv,{value:g.eng_thrust_limiter,format:function(j){return j+"%"}})]}),children:(0,e.jsx)(t.wn,{width:"127%",children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Type",children:g.eng_type}),(0,e.jsxs)(t.Ki.Item,{label:"Status",children:[(0,e.jsx)(t.az,{color:g.eng_on?g.eng_on===1?"good":"average":"bad",children:g.eng_on?g.eng_on===1?"Online":"Booting":"Offline"}),g.eng_status.map(function(j,C){return Array.isArray(j)?(0,e.jsx)(t.az,{color:j[1],children:j[0]},C):(0,e.jsx)(t.az,{children:j},C)})]}),(0,e.jsx)(t.Ki.Item,{label:"Current Thrust",children:g.eng_thrust}),(0,e.jsxs)(t.Ki.Item,{label:"Volume Limit",children:[(0,e.jsx)(t.$n,{onClick:function(){return a("limit",{limit:-.1,engine:g.eng_reference})},icon:"minus"}),(0,e.jsxs)(t.$n,{onClick:function(){return a("set_limit",{engine:g.eng_reference})},children:[g.eng_thrust_limiter,"%"]}),(0,e.jsx)(t.$n,{onClick:function(){return a("limit",{limit:.1,engine:g.eng_reference})},icon:"plus"})]})]})})})}),(0,e.jsx)(t.so.Item,{basis:"20%",children:(0,e.jsx)(t.$n,{fluid:!0,iconSpin:g.eng_on===-1,color:g.eng_on===-1?"purple":void 0,selected:g.eng_on===1,icon:"power-off",onClick:function(){return a("toggle_engine",{engine:g.eng_reference})},children:g.eng_on?g.eng_on===1?"Shutoff":"Booting":"Startup"})})]},E)})})]})}},61321:function(y,u,n){"use strict";n.r(u),n.d(u,{OvermapFull:function(){return d}});var e=n(20462),o=n(61358),t=n(88569),r=n(15581),i=n(22813),h=n(7558),x=n(97275),d=function(a){var l=(0,o.useState)(0),s=l[0],c=l[1];return(0,e.jsx)(r.p8,{width:800,height:800,children:(0,e.jsxs)(r.p8.Content,{scrollable:!0,children:[(0,e.jsxs)(t.tU,{children:[(0,e.jsx)(t.tU.Tab,{selected:s===0,onClick:function(){return c(0)},children:"Engines"}),(0,e.jsx)(t.tU.Tab,{selected:s===1,onClick:function(){return c(1)},children:"Helm"}),(0,e.jsx)(t.tU.Tab,{selected:s===2,onClick:function(){return c(2)},children:"Sensors"})]}),s===0&&(0,e.jsx)(i.OvermapEnginesContent,{}),s===1&&(0,e.jsx)(h.OvermapHelmContent,{}),s===2&&(0,e.jsx)(x.OvermapShipSensorsContent,{})]})})}},7558:function(y,u,n){"use strict";n.r(u),n.d(u,{OvermapFlightDataWrap:function(){return d},OvermapHelm:function(){return h},OvermapHelmContent:function(){return x}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),i=n(91198),h=function(c){return(0,e.jsx)(r.p8,{width:565,height:545,children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsx)(x,{})})})},x=function(c){return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(t.so,{children:[(0,e.jsx)(t.so.Item,{basis:"40%",height:"180px",children:(0,e.jsx)(d,{})}),(0,e.jsx)(t.so.Item,{basis:"25%",height:"180px",children:(0,e.jsx)(a,{})}),(0,e.jsx)(t.so.Item,{basis:"35%",height:"180px",children:(0,e.jsx)(l,{})})]}),(0,e.jsx)(s,{})]})},d=function(c){return(0,e.jsxs)("fieldset",{style:{height:"100%",border:"1px solid #4972a1",margin:"none"},className:"Section",children:[(0,e.jsx)("legend",{children:"Flight Data"}),(0,e.jsx)(i.OvermapFlightData,{})]})},a=function(c){var f=(0,o.Oc)(),v=f.act,g=f.data,E=g.canburn,j=g.manual_control;return(0,e.jsxs)("fieldset",{style:{height:"100%",border:"1px solid #4972a1"},className:"Section",children:[(0,e.jsx)("legend",{children:"Manual Control"}),(0,e.jsx)(t.so,{align:"center",justify:"center",children:(0,e.jsx)(t.so.Item,{children:(0,e.jsx)(i.OvermapPanControls,{disabled:!E,actToDo:"move"})})}),(0,e.jsxs)(t.az,{textAlign:"center",mt:1,children:[(0,e.jsx)(t.az,{bold:!0,underline:!0,children:"Direct Control"}),(0,e.jsx)(t.$n,{selected:j,onClick:function(){return v("manual")},icon:"compass",children:j?"Enabled":"Disabled"})]})]})},l=function(c){var f=(0,o.Oc)(),v=f.act,g=f.data,E=g.dest,j=g.d_x,C=g.d_y,M=g.speedlimit,P=g.autopilot,_=g.autopilot_disabled;return _?(0,e.jsxs)("fieldset",{style:{height:"100%",border:"1px solid #4972a1"},className:"Section",children:[(0,e.jsx)("legend",{children:"Autopilot"}),(0,e.jsx)(t.az,{textAlign:"center",color:"bad",fontSize:1.2,children:"AUTOPILOT DISABLED"}),(0,e.jsx)(t.az,{textAlign:"center",color:"average",children:"Warning: This vessel is equipped with a class I autopilot. Class I autopilots are unable to do anything but fly in a straight line directly towards the target, and may result in collisions."}),(0,e.jsx)(t.az,{textAlign:"center",children:(0,e.jsx)(t.$n.Confirm,{mt:1,color:"bad",confirmContent:"ACCEPT RISKS?",icon:"exclamation-triangle",confirmIcon:"exclamation-triangle",onClick:function(){return v("apilot_lock")},children:"Unlock Autopilot"})})]}):(0,e.jsxs)("fieldset",{style:{height:"100%",border:"1px solid #4972a1"},className:"Section",children:[(0,e.jsx)("legend",{children:"Autopilot"}),(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Target",children:E&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n,{onClick:function(){return v("setcoord",{setx:!0})},children:j}),(0,e.jsx)(t.$n,{onClick:function(){return v("setcoord",{sety:!0})},children:C})]})||(0,e.jsx)(t.$n,{icon:"pen",onClick:function(){return v("setcoord",{setx:!0,sety:!0})},children:"None"})}),(0,e.jsx)(t.Ki.Item,{label:"Speed Limit",children:(0,e.jsxs)(t.$n,{icon:"tachometer-alt",onClick:function(){return v("speedlimit")},children:[M," Gm/h"]})})]}),(0,e.jsx)(t.$n,{mt:1,fluid:!0,selected:P,disabled:!E,icon:"robot",onClick:function(){return v("apilot")},children:P?"Engaged":"Disengaged"}),(0,e.jsx)(t.$n,{fluid:!0,color:"good",icon:"exclamation-triangle",onClick:function(){return v("apilot_lock")},children:"Lock Autopilot"})]})},s=function(c){var f=(0,o.Oc)(),v=f.act,g=f.data,E=g.sector,j=g.s_x,C=g.s_y,M=g.sector_info,P=g.landed,_=g.locations;return(0,e.jsxs)(t.wn,{title:"Navigation Data",m:.3,mt:1,children:[(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Location",children:E}),(0,e.jsxs)(t.Ki.Item,{label:"Coordinates",children:[j," : ",C]}),(0,e.jsx)(t.Ki.Item,{label:"Scan Data",children:M}),(0,e.jsx)(t.Ki.Item,{label:"Status",children:P})]}),(0,e.jsxs)(t.so,{mt:1,align:"center",justify:"center",spacing:1,children:[(0,e.jsx)(t.so.Item,{basis:"50%",children:(0,e.jsx)(t.$n,{fluid:!0,icon:"save",onClick:function(){return v("add",{add:"current"})},children:"Save Current Position"})}),(0,e.jsx)(t.so.Item,{basis:"50%",children:(0,e.jsx)(t.$n,{fluid:!0,icon:"sticky-note",onClick:function(){return v("add",{add:"new"})},children:"Add New Entry"})})]}),(0,e.jsx)(t.wn,{mt:1,scrollable:!0,fill:!0,height:"130px",children:(0,e.jsxs)(t.XI,{children:[(0,e.jsxs)(t.XI.Row,{header:!0,children:[(0,e.jsx)(t.XI.Cell,{children:"Name"}),(0,e.jsx)(t.XI.Cell,{children:"Coordinates"}),(0,e.jsx)(t.XI.Cell,{children:"Actions"})]}),_.map(function(S){return(0,e.jsxs)(t.XI.Row,{children:[(0,e.jsx)(t.XI.Cell,{children:S.name}),(0,e.jsxs)(t.XI.Cell,{children:[S.x," : ",S.y]}),(0,e.jsxs)(t.XI.Cell,{collapsing:!0,children:[(0,e.jsx)(t.$n,{icon:"rocket",onClick:function(){return v("setds",{x:S.x,y:S.y})},children:"Plot Course"}),(0,e.jsx)(t.$n,{icon:"trash",onClick:function(){return v("remove",{remove:S.reference})},children:"Remove"})]})]},S.name)})]})})]})}},65912:function(y,u,n){"use strict";n.r(u),n.d(u,{OvermapNavigation:function(){return h},OvermapNavigationContent:function(){return x}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),i=n(91198),h=function(){return(0,e.jsx)(r.p8,{width:380,height:530,children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsx)(x,{})})})},x=function(d){var a=(0,o.Oc)(),l=a.act,s=a.data,c=s.sector,f=s.s_x,v=s.s_y,g=s.sector_info,E=s.viewing;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.wn,{title:"Current Location",buttons:(0,e.jsx)(t.$n,{icon:"eye",selected:E,onClick:function(){return l("viewing")},children:"Map View"}),children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Current Location",children:c}),(0,e.jsxs)(t.Ki.Item,{label:"Coordinates",children:[f," : ",v]}),(0,e.jsx)(t.Ki.Item,{label:"Additional Information",children:g})]})}),(0,e.jsx)(t.wn,{title:"Flight Data",children:(0,e.jsx)(i.OvermapFlightData,{disableLimiterControls:!0})})]})}},30766:function(y,u,n){"use strict";n.r(u),n.d(u,{OvermapShieldGenerator:function(){return i}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),i=function(a){return(0,e.jsx)(r.p8,{width:500,height:760,children:(0,e.jsx)(r.p8.Content,{scrollable:!0,children:(0,e.jsx)(h,{})})})},h=function(a){var l=(0,o.Oc)(),s=l.act,c=l.data,f=c.modes,v=c.offline_for;return v?(0,e.jsxs)(t.wn,{title:"EMERGENCY SHUTDOWN",color:"bad",children:["An emergency shutdown has been initiated - generator cooling down. Please wait until the generator cools down before resuming operation. Estimated time left: ",v," seconds."]}):(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(x,{}),(0,e.jsx)(d,{}),(0,e.jsx)(t.wn,{title:"Field Calibration",children:f.map(function(g){return(0,e.jsxs)(t.wn,{title:g.name,buttons:(0,e.jsx)(t.$n,{icon:"power-off",selected:g.status,onClick:function(){return s("toggle_mode",{toggle_mode:g.flag})},children:g.status?"Enabled":"Disabled"}),children:[(0,e.jsx)(t.az,{color:"label",children:g.desc}),(0,e.jsxs)(t.az,{mt:.5,children:["Multiplier: ",g.multiplier]})]},g.name)})})]})},x=function(a){var l=(0,o.Oc)().data,s=l.running,c=l.overloaded,f=l.mitigation_max,v=l.mitigation_physical,g=l.mitigation_em,E=l.mitigation_heat,j=l.field_integrity,C=l.max_energy,M=l.current_energy,P=l.percentage_energy,_=l.total_segments,S=l.functional_segments,T=l.field_radius,b=l.target_radius,L=l.input_cap_kw,W=l.upkeep_power_usage,$=l.power_usage,z=l.spinup_counter,w=[];return w[1]=(0,e.jsx)(t.az,{color:"average",children:"Shutting Down"}),w[2]=(0,e.jsx)(t.az,{color:"bad",children:"Overloaded"}),w[3]=(0,e.jsx)(t.az,{color:"average",children:"Inactive"}),w[4]=(0,e.jsxs)(t.az,{color:"blue",children:["Spinning Up\xA0",b!==T&&(0,e.jsx)(t.az,{inline:!0,children:"(Adjusting Radius)"})||(0,e.jsxs)(t.az,{inline:!0,children:[z*2,"s"]})]}),(0,e.jsx)(t.wn,{title:"System Status",children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Generator is",children:w[s]||(0,e.jsx)(t.az,{color:"bad",children:"Offline"})}),(0,e.jsx)(t.Ki.Item,{label:"Energy Storage",children:(0,e.jsxs)(t.z2,{value:M,maxValue:C,children:[M," / ",C," MJ (",P,"%)"]})}),(0,e.jsxs)(t.Ki.Item,{label:"Shield Integrity",children:[(0,e.jsx)(t.zv,{value:j}),"%"]}),(0,e.jsxs)(t.Ki.Item,{label:"Mitigation",children:[g,"% EM / ",v,"% PH / ",E,"% HE / ",f,"% MAX"]}),(0,e.jsxs)(t.Ki.Item,{label:"Upkeep Energy Use",children:[(0,e.jsx)(t.zv,{value:W})," kW"]}),(0,e.jsx)(t.Ki.Item,{label:"Total Energy Use",children:L&&(0,e.jsx)(t.az,{children:(0,e.jsxs)(t.z2,{value:$,maxValue:L,children:[$," / ",L," kW"]})})||(0,e.jsxs)(t.az,{children:[(0,e.jsx)(t.zv,{value:$})," kW (No Limit)"]})}),(0,e.jsxs)(t.Ki.Item,{label:"Field Size",children:[(0,e.jsx)(t.zv,{value:S}),"\xA0/\xA0",(0,e.jsx)(t.zv,{value:_})," m\xB2 (radius"," ",(0,e.jsx)(t.zv,{value:T}),", target"," ",(0,e.jsx)(t.zv,{value:b}),")"]})]})})},d=function(a){var l=(0,o.Oc)(),s=l.act,c=l.data,f=c.running,v=c.hacked,g=c.idle_multiplier,E=c.idle_valid_values;return(0,e.jsxs)(t.wn,{title:"Controls",buttons:(0,e.jsxs)(e.Fragment,{children:[f>=2&&(0,e.jsxs)(t.az,{children:[(0,e.jsx)(t.$n,{icon:"power-off",onClick:function(){return s("begin_shutdown")},selected:!0,children:"Turn off"}),f===3&&(0,e.jsx)(t.$n,{icon:"power-off",onClick:function(){return s("toggle_idle",{toggle_idle:0})},children:"Activate"})||(0,e.jsx)(t.$n,{icon:"power-off",onClick:function(){return s("toggle_idle",{toggle_idle:1})},selected:!0,children:"Deactivate"})]})||(0,e.jsx)(t.$n,{icon:"power-off",onClick:function(){return s("start_generator")},children:"Turn on"}),f&&v&&(0,e.jsx)(t.$n,{icon:"exclamation-triangle",onClick:function(){return s("emergency_shutdown")},color:"bad",children:"EMERGENCY SHUTDOWN"})||""]}),children:[(0,e.jsx)(t.$n,{icon:"expand-arrows-alt",onClick:function(){return s("set_range")},children:"Set Field Range"}),(0,e.jsx)(t.$n,{icon:"bolt",onClick:function(){return s("set_input_cap")},children:"Set Input Cap"}),(0,e.jsx)(t.Ki,{children:(0,e.jsx)(t.Ki.Item,{label:"Set inactive power use intensity",children:E.map(function(j){return(0,e.jsx)(t.$n,{selected:j===g,disabled:f===4,onClick:function(){return s("switch_idle",{switch_idle:j})},children:j},j)})})})]})}},97275:function(y,u,n){"use strict";n.r(u),n.d(u,{OvermapShipSensors:function(){return i},OvermapShipSensorsContent:function(){return h}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),i=function(x){return(0,e.jsx)(r.p8,{width:375,height:545,children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsx)(h,{})})})},h=function(x){var d=(0,o.Oc)(),a=d.act,l=d.data,s=l.viewing,c=l.on,f=l.range,v=l.health,g=l.max_health,E=l.heat,j=l.critical_heat,C=l.status,M=l.contacts;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.wn,{title:"Status",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n,{icon:"eye",selected:s,onClick:function(){return a("viewing")},children:"Map View"}),(0,e.jsx)(t.$n,{icon:"power-off",selected:c,onClick:function(){return a("toggle_sensor")},children:c?"Sensors Enabled":"Sensors Disabled"})]}),children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Status",children:C}),(0,e.jsx)(t.Ki.Item,{label:"Range",children:(0,e.jsx)(t.$n,{icon:"signal",onClick:function(){return a("range")},children:f})}),(0,e.jsx)(t.Ki.Item,{label:"Integrity",children:(0,e.jsxs)(t.z2,{ranges:{good:[g*.75,1/0],average:[g*.25,g*.75],bad:[-1/0,g*.25]},value:v,maxValue:g,children:[v," / ",g]})}),(0,e.jsx)(t.Ki.Item,{label:"Temperature",children:(0,e.jsx)(t.z2,{ranges:{bad:[j*.75,1/0],average:[j*.5,j*.75],good:[-1/0,j*.5]},value:E,maxValue:j,children:E0||!g)&&(0,e.jsx)(r.$n,{ml:1,icon:"times",onClick:function(){return l("cancel",{cancel:P+1})},children:"Cancel"})||""]},M)})||(0,e.jsx)(r.IC,{info:!0,children:"Queue Empty"})}),(0,e.jsx)(r.wn,{title:"Recipes",children:C.length&&C.map(function(M){return(0,e.jsx)(r.az,{children:(0,e.jsx)(r.$n,{icon:"wrench",onClick:function(){return l("queue",{queue:M.type})},children:(0,o.Sn)(M.name)})},M.name)})})]})})}},71675:function(y,u,n){"use strict";n.r(u),n.d(u,{PathogenicIsolator:function(){return d}});var e=n(20462),o=n(61358),t=n(7081),r=n(88569),i=n(15581),h=n(86471),x=function(s){var c=(0,t.Oc)(),f=c.act,v=c.data,g=v.can_print,E=s.args;return(0,e.jsx)(r.wn,{m:"-1rem",title:E.name||"Virus",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.$n,{disabled:!g,icon:"print",onClick:function(){return f("print",{type:"virus_record",vir:E.record})},children:"Print"}),(0,e.jsx)(r.$n,{icon:"times",color:"red",onClick:function(){return f("modal_close")}})]}),children:(0,e.jsx)(r.az,{mx:"0.5rem",children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsxs)(r.Ki.Item,{label:"Spread",children:[E.spreadtype," Transmission"]}),(0,e.jsx)(r.Ki.Item,{label:"Possible cure",children:E.antigen}),(0,e.jsx)(r.Ki.Item,{label:"Rate of Progression",children:E.rate}),(0,e.jsxs)(r.Ki.Item,{label:"Antibiotic Resistance",children:[E.resistance,"%"]}),(0,e.jsx)(r.Ki.Item,{label:"Species Affected",children:E.species}),(0,e.jsx)(r.Ki.Item,{label:"Symptoms",children:(0,e.jsx)(r.Ki,{children:E.symptoms.map(function(j){return(0,e.jsxs)(r.Ki.Item,{label:j.stage+". "+j.name,children:[(0,e.jsxs)(r.az,{inline:!0,children:[(0,e.jsx)(r.az,{inline:!0,color:"label",children:"Strength:"})," ",j.strength,"\xA0"]}),(0,e.jsxs)(r.az,{inline:!0,children:[(0,e.jsx)(r.az,{inline:!0,color:"label",children:"Aggressiveness:"})," ",j.aggressiveness]})]},j.stage)})})})]})})})},d=function(s){var c=(0,t.Oc)().data,f=c.isolating,v=(0,o.useState)(0),g=v[0],E=v[1],j=[];return j[0]=(0,e.jsx)(a,{}),j[1]=(0,e.jsx)(l,{}),(0,h.modalRegisterBodyOverride)("virus",x),(0,e.jsxs)(i.p8,{height:500,width:520,children:[(0,e.jsx)(h.ComplexModal,{maxHeight:"100%",maxWidth:"95%"}),(0,e.jsxs)(i.p8.Content,{scrollable:!0,children:[f&&(0,e.jsx)(r.IC,{warning:!0,children:"The Isolator is currently isolating..."})||"",(0,e.jsxs)(r.tU,{children:[(0,e.jsx)(r.tU.Tab,{selected:g===0,onClick:function(){return E(0)},children:"Home"}),(0,e.jsx)(r.tU.Tab,{selected:g===1,onClick:function(){return E(1)},children:"Database"})]}),j[g]||""]})]})},a=function(s){var c=(0,t.Oc)(),f=c.act,v=c.data,g=v.syringe_inserted,E=v.pathogen_pool,j=v.can_print;return(0,e.jsx)(r.wn,{title:"Pathogens",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.$n,{icon:"print",disabled:!j,onClick:function(){return f("print",{type:"patient_diagnosis"})},children:"Print"}),(0,e.jsx)(r.$n,{icon:"eject",disabled:!g,onClick:function(){return f("eject")},children:"Eject Syringe"})]}),children:E.length&&E.map(function(C){return(0,e.jsxs)(r.wn,{children:[(0,e.jsx)(r.az,{color:"label",children:(0,e.jsxs)(r.so,{align:"center",children:[(0,e.jsxs)(r.so.Item,{grow:1,children:[(0,e.jsxs)("u",{children:["Stamm #",C.unique_id]}),C.is_in_database?" (Analyzed)":" (Not Analyzed)"]}),(0,e.jsxs)(r.so.Item,{children:[(0,e.jsx)(r.$n,{icon:"virus",onClick:function(){return f("isolate",{isolate:C.reference})},children:"Isolate"}),(0,e.jsx)(r.$n,{icon:"search",disabled:!C.is_in_database,onClick:function(){return f("view_entry",{vir:C.record})},children:"Database"})]})]})}),(0,e.jsxs)(r.az,{children:[(0,e.jsx)(r.az,{color:"average",mb:1,children:C.name}),C.dna]})]},C.unique_id)})||(g?(0,e.jsx)(r.az,{color:"average",children:"No samples detected."}):(0,e.jsx)(r.az,{color:"average",children:"No syringe inserted."}))})},l=function(s){var c=(0,t.Oc)(),f=c.act,v=c.data,g=v.database,E=v.can_print;return(0,e.jsx)(r.wn,{title:"Database",buttons:(0,e.jsx)(r.$n,{icon:"print",disabled:!E,onClick:function(){return f("print",{type:"virus_list"})},children:"Print"}),children:g.length&&g.map(function(j){return(0,e.jsx)(r.$n,{fluid:!0,icon:"search",onClick:function(){return f("view_entry",{vir:j.record})},children:j.name},j.name)})||(0,e.jsx)(r.az,{color:"average",children:"The viral database is empty."})})}},50350:function(y,u,n){"use strict";n.r(u),n.d(u,{Pda:function(){return a}});var e=n(20462),o=n(61358),t=n(7081),r=n(88569),i=n(15581),h=n(15857),x=n(75091);function d(f){var v;try{v=x("./"+f+".tsx")}catch(E){if(E.code==="MODULE_NOT_FOUND")return(0,h.z)("notFound",f);throw E}var g=v[f];return g||(0,h.z)("missingExport",f)}var a=function(f){var v=function(b){S(b)},g=(0,t.Oc)().data,E=g.app,j=g.owner,C=g.useRetro;if(!j)return(0,e.jsx)(i.p8,{children:(0,e.jsx)(i.p8.Content,{children:(0,e.jsx)(r.wn,{stretchContents:!0,children:"Warning: No ID information found! Please swipe ID!"})})});var M=d(E.template),P=(0,o.useState)(!1),_=P[0],S=P[1];return(0,e.jsx)(i.p8,{width:580,height:670,theme:C?"pda-retro":void 0,children:(0,e.jsxs)(i.p8.Content,{scrollable:!0,children:[(0,e.jsx)(l,{settingsMode:_,onSettingsMode:v}),_&&(0,e.jsx)(s,{})||(0,e.jsx)(r.wn,{title:(0,e.jsxs)(r.az,{children:[(0,e.jsx)(r.In,{name:E.icon,mr:1}),E.name]}),p:1,children:(0,e.jsx)(M,{})}),(0,e.jsx)(r.az,{mb:8}),(0,e.jsx)(c,{onSettingsMode:v})]})})},l=function(f){var v=(0,t.Oc)(),g=v.act,E=v.data,j=E.idInserted,C=E.idLink,M=E.stationTime;return(0,e.jsx)(r.az,{mb:1,children:(0,e.jsxs)(r.so,{align:"center",justify:"space-between",children:[!!j&&(0,e.jsx)(r.so.Item,{children:(0,e.jsx)(r.$n,{icon:"eject",color:"transparent",onClick:function(){return g("Authenticate")},children:C})}),(0,e.jsx)(r.so.Item,{grow:1,textAlign:"center",bold:!0,children:M}),(0,e.jsxs)(r.so.Item,{children:[(0,e.jsx)(r.$n,{selected:f.settingsMode,onClick:function(){return f.onSettingsMode(!f.settingsMode)},icon:"cog"}),(0,e.jsx)(r.$n,{onClick:function(){return g("Retro")},icon:"adjust"})]})]})})},s=function(f){var v=(0,t.Oc)(),g=v.act,E=v.data,j=E.idInserted,C=E.idLink,M=E.cartridge_name,P=E.touch_silent;return(0,e.jsx)(r.wn,{title:"Settings",children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"R.E.T.R.O Mode",children:(0,e.jsx)(r.$n,{icon:"cog",onClick:function(){return g("Retro")},children:"Retro Theme"})}),(0,e.jsx)(r.Ki.Item,{label:"Touch Sounds",children:(0,e.jsx)(r.$n,{icon:"cog",selected:!P,onClick:function(){return g("TouchSounds")},children:P?"Disabled":"Enabled"})}),!!M&&(0,e.jsx)(r.Ki.Item,{label:"Cartridge",children:(0,e.jsx)(r.$n,{icon:"eject",onClick:function(){return g("Eject")},children:M})}),!!j&&(0,e.jsx)(r.Ki.Item,{label:"ID Card",children:(0,e.jsx)(r.$n,{icon:"eject",onClick:function(){return g("Authenticate")},children:C})})]})})},c=function(f){var v=(0,t.Oc)(),g=v.act,E=v.data,j=E.app,C=E.useRetro;return(0,e.jsx)(r.az,{position:"fixed",bottom:"0%",left:"0%",right:"0%",backgroundColor:C?"#6f7961":"#1b1b1b",children:(0,e.jsxs)(r.so,{children:[(0,e.jsx)(r.so.Item,{basis:"33%",children:(0,e.jsx)(r.$n,{fluid:!0,color:"transparent",iconColor:j.has_back?"white":"disabled",textAlign:"center",icon:"undo",mb:0,fontSize:1.7,onClick:function(){return g("Back")}})}),(0,e.jsx)(r.so.Item,{basis:"33%",children:(0,e.jsx)(r.$n,{fluid:!0,color:"transparent",iconColor:j.is_home?"disabled":"white",textAlign:"center",icon:"home",mb:0,fontSize:1.7,onClick:function(){f.onSettingsMode(!1),g("Home")}})})]})})}},46184:function(y,u,n){"use strict";n.r(u),n.d(u,{pda_atmos_scan:function(){return x}});var e=n(20462),o=n(7402),t=n(61282),r=n(7081),i=n(88569),h=function(d,a,l,s,c){return ds?"average":d>c?"bad":"good"},x=function(d){var a=(0,r.Oc)(),l=a.act,s=a.data,c=s.aircontents;return(0,e.jsx)(i.az,{children:(0,e.jsx)(i.Ki,{children:(0,o.pb)(c,function(f){return f.val!=="0"||f.entry==="Pressure"||f.entry==="Temperature"}).map(function(f){return(0,e.jsxs)(i.Ki.Item,{label:f.entry,color:h(f.val,f.bad_low,f.poor_low,f.poor_high,f.bad_high),children:[f.val,(0,t.jT)(f.units)]},f.entry)})})})}},16091:function(y,u,n){"use strict";n.r(u),n.d(u,{pda_janitor:function(){return r}});var e=n(20462),o=n(7081),t=n(88569),r=function(i){var h=(0,o.Oc)(),x=h.act,d=h.data,a=d.janitor;return(0,e.jsxs)(t.az,{children:[(0,e.jsx)(t.Ki,{children:(0,e.jsx)(t.Ki.Item,{label:"Current Location",children:a.user_loc.x===0&&(0,e.jsx)(t.az,{color:"bad",children:"Unknown"})||(0,e.jsxs)(t.az,{children:[a.user_loc.x," / ",a.user_loc.y]})})}),(0,e.jsx)(t.wn,{title:"Mop Locations",children:a.mops&&(0,e.jsx)("ul",{children:a.mops.map(function(l,s){return(0,e.jsxs)("li",{children:[l.x," / ",l.y," - ",l.dir," - Status: ",l.status]},s)})})||(0,e.jsx)(t.az,{color:"bad",children:"No mops detected nearby."})}),(0,e.jsx)(t.wn,{title:"Mop Bucket Locations",children:a.buckets&&(0,e.jsx)("ul",{children:a.buckets.map(function(l,s){return(0,e.jsxs)("li",{children:[l.x," / ",l.y," - ",l.dir," - Capacity:"," ",l.volume,"/",l.max_volume]},s)})})||(0,e.jsx)(t.az,{color:"bad",children:"No buckets detected nearby."})}),(0,e.jsx)(t.wn,{title:"Cleanbot Locations",children:a.cleanbots&&(0,e.jsx)("ul",{children:a.cleanbots.map(function(l,s){return(0,e.jsxs)("li",{children:[l.x," / ",l.y," - ",l.dir," - Status:"," ",l.status]},s)})})||(0,e.jsx)(t.az,{color:"bad",children:"No cleanbots detected nearby."})}),(0,e.jsx)(t.wn,{title:"Janitorial Cart Locations",children:a.carts&&(0,e.jsx)("ul",{children:a.carts.map(function(l,s){return(0,e.jsxs)("li",{children:[l.x," / ",l.y," - ",l.dir," - Water Level: ",l.volume,"/",l.max_volume]},s)})})||(0,e.jsx)(t.az,{color:"bad",children:"No janitorial carts detected nearby."})})]})}},83743:function(y,u,n){"use strict";n.r(u),n.d(u,{pda_main_menu:function(){return h}});var e=n(20462),o=n(61358),t=n(7081),r=n(88569),i={"Enable Flashlight":"#0f0","Disable Flashlight":"#f00"},h=function(x){var d=(0,t.Oc)(),a=d.act,l=d.data,s=(0,o.useState)(""),c=s[0],f=s[1],v=function(S){if(S.name.startsWith("Enable")||S.name.startsWith("Disable")){a("StartProgram",{program:S.ref});return}f(S.icon),setTimeout(function(){f(""),a("StartProgram",{program:S.ref})},200)},g=l.owner,E=l.ownjob,j=l.idInserted,C=l.categories,M=l.pai,P=l.notifying,_=l.apps;return(0,e.jsxs)(e.Fragment,{children:[c&&(0,e.jsx)(r.az,{className:"Pda__Transition",children:(0,e.jsx)(r.In,{name:c,size:4})}),(0,e.jsx)(r.az,{children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsxs)(r.Ki.Item,{label:"Owner",color:"average",children:[g,", ",E]}),(0,e.jsx)(r.Ki.Item,{label:"ID",children:(0,e.jsx)(r.$n,{icon:"sync",disabled:!j,onClick:function(){return a("UpdateInfo")},children:"Update PDA Info"})})]})}),(0,e.jsx)(r.wn,{title:"Functions",children:(0,e.jsx)(r.Ki,{children:C.map(function(S){var T=_[S];return!T||!T.length?null:(0,e.jsx)(r.Ki.Item,{label:S,children:T.map(function(b){return(0,e.jsx)(r.$n,{icon:b.ref in P?b.notify_icon:b.icon,iconSpin:b.ref in P,iconColor:b.name in i?i[b.name]:null,color:b.ref in P?"red":"transparent",onClick:function(){return v(b)},children:b.name},b.ref)})},S)})})}),!!M&&(0,e.jsxs)(r.wn,{title:"pAI",children:[(0,e.jsx)(r.$n,{fluid:!0,icon:"cog",onClick:function(){return a("pai",{option:1})},children:"Configuration"}),(0,e.jsx)(r.$n,{fluid:!0,icon:"eject",onClick:function(){return a("pai",{option:2})},children:"Eject pAI"})]})]})}},29961:function(y,u,n){"use strict";n.r(u),n.d(u,{pda_manifest:function(){return i}});var e=n(20462),o=n(7081),t=n(88569),r=n(58044),i=function(h){var x=(0,o.Oc)(),d=x.act,a=x.data;return(0,e.jsx)(t.az,{color:"white",children:(0,e.jsx)(r.CrewManifestContent,{})})}},34029:function(y,u,n){"use strict";n.r(u),n.d(u,{pda_medical:function(){return r}});var e=n(20462),o=n(7081),t=n(88569),r=function(i){var h=(0,o.Oc)(),x=h.act,d=h.data,a=d.recordsList,l=d.records;if(l){var s=l.general,c=l.medical;return(0,e.jsxs)(t.az,{children:[(0,e.jsx)(t.wn,{title:"General Data",children:s&&(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Name",children:s.name}),(0,e.jsx)(t.Ki.Item,{label:"Sex",children:s.sex}),(0,e.jsx)(t.Ki.Item,{label:"Species",children:s.species}),(0,e.jsx)(t.Ki.Item,{label:"Age",children:s.age}),(0,e.jsx)(t.Ki.Item,{label:"Rank",children:s.rank}),(0,e.jsx)(t.Ki.Item,{label:"Fingerprint",children:s.fingerprint}),(0,e.jsx)(t.Ki.Item,{label:"Physical Status",children:s.p_stat}),(0,e.jsx)(t.Ki.Item,{label:"Mental Status",children:s.m_stat})]})||(0,e.jsx)(t.az,{color:"bad",children:"General record lost!"})}),(0,e.jsx)(t.wn,{title:"Medical Data",children:c&&(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Blood Type",children:c.b_type}),(0,e.jsx)(t.Ki.Item,{label:"Minor Disabilities",children:c.mi_dis}),(0,e.jsx)(t.Ki.Item,{label:"Details",children:c.mi_dis_d}),(0,e.jsx)(t.Ki.Item,{label:"Major Disabilities",children:c.ma_dis}),(0,e.jsx)(t.Ki.Item,{label:"Details",children:c.ma_dis_d}),(0,e.jsx)(t.Ki.Item,{label:"Allergies",children:c.alg}),(0,e.jsx)(t.Ki.Item,{label:"Details",children:c.alg_d}),(0,e.jsx)(t.Ki.Item,{label:"Current Disease",children:c.cdi}),(0,e.jsx)(t.Ki.Item,{label:"Details",children:c.cdi_d}),(0,e.jsx)(t.Ki.Item,{label:"Important Notes",children:(0,e.jsx)(t.az,{preserveWhitespace:!0,children:c.notes})})]})||(0,e.jsx)(t.az,{color:"bad",children:"Medical record lost!"})})]})}return(0,e.jsx)(t.wn,{title:"Select a record",children:a.map(function(f){return(0,e.jsx)(t.$n,{icon:"eye",fluid:!0,onClick:function(){return x("Records",{target:f.ref})},children:f.name},f.ref)})})}},2949:function(y,u,n){"use strict";n.r(u),n.d(u,{pda_messenger:function(){return E}});var e=n(20462),o=n(7402),t=n(61282),r=n(61358),i=n(7081),h=n(88569),x=n(30705);function d(z,w){(w==null||w>z.length)&&(w=z.length);for(var V=0,k=new Array(w);V=z.length?{done:!0}:{done:!1,value:z[k++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function f(z,w){var V,k,H,Y,q={label:0,sent:function(){if(H[0]&1)throw H[1];return H[1]},trys:[],ops:[]};return Y={next:Z(0),throw:Z(1),return:Z(2)},typeof Symbol=="function"&&(Y[Symbol.iterator]=function(){return this}),Y;function Z(J){return function(X){return Q([J,X])}}function Q(J){if(V)throw new TypeError("Generator is already executing.");for(;q;)try{if(V=1,k&&(H=J[0]&2?k.return:J[0]?k.throw||((H=k.return)&&H.call(k),0):k.next)&&!(H=H.call(k,J[1])).done)return H;switch(k=0,H&&(J=[J[0]&2,H.value]),J[0]){case 0:case 1:H=J;break;case 4:return q.label++,{value:J[1],done:!1};case 5:q.label++,k=J[1],J=[0];continue;case 7:J=q.ops.pop(),q.trys.pop();continue;default:if(H=q.trys,!(H=H.length>0&&H[H.length-1])&&(J[0]===6||J[0]===2)){q=0;continue}if(J[0]===3&&(!H||J[1]>H[0]&&J[1]V.length)return z.sent?"TinderMessage_First_Sent":"TinderMessage_First_Received";var k=V[w].sent;return z.sent&&k?"TinderMessage_Subsequent_Sent":!z.sent&&!k?"TinderMessage_Subsequent_Received":z.sent?"TinderMessage_First_Sent":"TinderMessage_First_Received"},T=function(z){var w=z.messages,V=z.active_conversation;return(0,e.jsx)(h.az,{children:w.filter(function(k){return k.target===V}).map(function(k,H,Y){return(0,e.jsx)(b,{im:k,className:S(k,H-1,Y)},H)})})},b=function(z){var w=(0,i.Oc)().data,V=w.enable_message_embeds,k=z.im,H=z.className;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(h.az,{textAlign:k.sent?"right":"left",mb:1,children:(0,e.jsx)(h.az,{maxWidth:"75%",className:H,inline:!0,children:(0,t.jT)(k.message)})}),!!V&&(0,e.jsx)(W,{im:k,className:H})]})},L=["cdn.discordapp.com","i.imgur.com","imgur.com"],W=function(z){var w=z.im,V=z.className,k=(0,r.useState)(null),H=k[0],Y=k[1];return(0,r.useEffect)(function(){var q=function(ee){return J.apply(this,arguments)},Z=(0,t.jT)(w.message.trim());if(!Z.startsWith("https://")||Z.includes(" "))return;var Q;try{Q=new URL(Z)}catch(X){return}if(!L.includes(Q.hostname))return;function J(){return J=l(function(X){var ee,se,ie;return f(this,function(ue){switch(ue.label){case 0:return ee={Accept:"image/jpeg, image/png, image/gif","User-Agent":"SS13-Virgo-ImageEmbeds/1.0"},[4,(0,x.b)(X.toString(),{headers:ee})];case 1:return se=ue.sent(),se.ok?(ie=se.headers.get("Content-Type"),ie==="image/jpeg"||ie==="image/png"||ie==="image/gif"?[2,X.toString()]:[2,null]):[2,null]}})}),J.apply(this,arguments)}q(Q).then(function(X){X&&Y((0,e.jsx)($,{im:w,className:V,img:X}))})},[]),H},$=function(z){var w=(0,r.useState)(!1),V=w[0],k=w[1],H=z.im,Y=z.className,q=z.img;return(0,e.jsx)(h.az,{textAlign:H.sent?"right":"left",mb:1,children:(0,e.jsxs)(h.az,{maxWidth:"75%",className:Y,inline:!0,children:[(0,e.jsx)(h.az,{fontSize:.9,children:"Embed"}),V?(0,e.jsx)(h._V,{fixBlur:!1,src:q,maxWidth:30,maxHeight:30}):(0,e.jsxs)(h.$n,{width:30,height:20,onClick:function(){return k(!0)},color:"black",textAlign:"center",verticalAlignContent:"middle",fontSize:3,children:["Click to",(0,e.jsx)("br",{}),"Show"]})]})})}},25039:function(y,u,n){"use strict";n.r(u),n.d(u,{pda_news:function(){return i}});var e=n(20462),o=n(61282),t=n(7081),r=n(88569),i=function(d){var a=(0,t.Oc)(),l=a.act,s=a.data,c=s.feeds,f=s.target_feed;return(0,e.jsx)(r.az,{children:!c.length&&(0,e.jsx)(r.az,{color:"bad",children:"Error: No newsfeeds available. Please try again later."})||f&&(0,e.jsx)(h,{target_feed:f})||(0,e.jsx)(x,{})})},h=function(d){var a=(0,t.Oc)().act,l=d.target_feed;return(0,e.jsx)(r.wn,{title:(0,o.jT)(l.name)+" by "+(0,o.jT)(l.author),buttons:(0,e.jsx)(r.$n,{icon:"chevron-up",onClick:function(){return a("newsfeed",{newsfeed:null})},children:"Back"}),children:l.messages.length&&l.messages.map(function(s){return(0,e.jsxs)(r.wn,{children:["- ",(0,o.jT)(s.body),!!s.img&&(0,e.jsxs)(r.az,{children:[(0,e.jsx)(r._V,{src:"data:image/png;base64,"+s.img}),(0,o.jT)(s.caption)||null]}),(0,e.jsxs)(r.az,{color:"grey",children:["[",s.message_type," by ",(0,o.jT)(s.author)," -"," ",s.time_stamp,"]"]})]},s.index)})||(0,e.jsxs)(r.az,{children:["No stories found in ",l.name,"."]})})},x=function(d){var a=(0,t.Oc)(),l=a.act,s=a.data,c=s.feeds,f=s.latest_news;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.wn,{title:"Recent News",children:f.length&&(0,e.jsx)(r.wn,{children:f.map(function(v){return(0,e.jsxs)(r.az,{mb:2,children:[(0,e.jsxs)("h5",{children:[(0,o.jT)(v.channel),(0,e.jsx)(r.$n,{ml:1,icon:"chevron-up",onClick:function(){return l("newsfeed",{newsfeed:v.index})},children:"Go to"})]}),"- ",(0,o.jT)(v.body),!!v.has_image&&(0,e.jsxs)(r.az,{children:["[image omitted, view story for more details]",v.caption||null]}),(0,e.jsxs)(r.az,{fontSize:.9,children:["[",v.message_type," by"," ",(0,e.jsx)(r.az,{inline:!0,color:"average",children:v.author})," ","- ",v.time_stamp,"]"]})]},v.index)})})||(0,e.jsx)(r.az,{children:"No recent stories found."})}),(0,e.jsx)(r.wn,{title:"News Feeds",children:c.map(function(v){return(0,e.jsx)(r.$n,{fluid:!0,icon:"chevron-up",onClick:function(){return l("newsfeed",{newsfeed:v.index})},children:v.name},v.index)})})]})}},33312:function(y,u,n){"use strict";n.r(u),n.d(u,{pda_notekeeper:function(){return r}});var e=n(20462),o=n(7081),t=n(88569),r=function(i){var h=(0,o.Oc)(),x=h.act,d=h.data,a=d.note,l=d.notename;return(0,e.jsxs)(t.az,{children:[(0,e.jsx)(t.wn,{children:(0,e.jsxs)(t.XI,{children:[(0,e.jsxs)(t.XI.Row,{header:!0,children:[(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.$n,{icon:"sticky-note-o",onClick:function(){return x("Note1")},children:"Note A"})}),(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.$n,{icon:"sticky-note-o",onClick:function(){return x("Note2")},children:"Note B"})}),(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.$n,{icon:"sticky-note-o",onClick:function(){return x("Note3")},children:"Note C"})}),(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.$n,{icon:"sticky-note-o",onClick:function(){return x("Note4")},children:"Note D"})}),(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.$n,{icon:"sticky-note-o",onClick:function(){return x("Note5")},children:"Note E"})}),(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.$n,{icon:"sticky-note-o",onClick:function(){return x("Note6")},children:"Note F"})})]}),(0,e.jsxs)(t.XI.Row,{header:!0,children:[(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.$n,{icon:"sticky-note-o",onClick:function(){return x("Note7")},children:"Note G"})}),(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.$n,{icon:"sticky-note-o",onClick:function(){return x("Note8")},children:"Note H"})}),(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.$n,{icon:"sticky-note-o",onClick:function(){return x("Note9")},children:"Note I"})}),(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.$n,{icon:"sticky-note-o",onClick:function(){return x("Note10")},children:"Note J"})}),(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.$n,{icon:"sticky-note-o",onClick:function(){return x("Note11")},children:"Note K"})}),(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.$n,{icon:"sticky-note-o",onClick:function(){return x("Note12")},children:"Note L"})})]})]})}),(0,e.jsxs)(t.wn,{title:l,children:[(0,e.jsx)(t.$n,{icon:"pen",onClick:function(){return x("Edit")},children:"Edit Note"}),(0,e.jsx)(t.$n,{icon:"file-word",onClick:function(){return x("Titleset")},children:"Edit Title"}),(0,e.jsx)(t.$n,{icon:"sticky-note-o",onClick:function(){return x("Print")},children:"Print Note"})]}),(0,e.jsx)(t.wn,{children:(0,e.jsx)("div",{dangerouslySetInnerHTML:{__html:a}})})]})}},6835:function(y,u,n){"use strict";n.r(u),n.d(u,{pda_power:function(){return t}});var e=n(20462),o=n(91276),t=function(r){return(0,e.jsx)(o.PowerMonitorContent,{})}},70272:function(y,u,n){"use strict";n.r(u),n.d(u,{pda_security:function(){return r}});var e=n(20462),o=n(7081),t=n(88569),r=function(i){var h=(0,o.Oc)(),x=h.act,d=h.data,a=d.recordsList,l=d.records;if(l){var s=l.general,c=l.security;return(0,e.jsxs)(t.az,{children:[(0,e.jsx)(t.wn,{title:"General Data",children:s&&(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Name",children:s.name}),(0,e.jsx)(t.Ki.Item,{label:"Sex",children:s.sex}),(0,e.jsx)(t.Ki.Item,{label:"Species",children:s.species}),(0,e.jsx)(t.Ki.Item,{label:"Age",children:s.age}),(0,e.jsx)(t.Ki.Item,{label:"Rank",children:s.rank}),(0,e.jsx)(t.Ki.Item,{label:"Fingerprint",children:s.fingerprint}),(0,e.jsx)(t.Ki.Item,{label:"Physical Status",children:s.p_stat}),(0,e.jsx)(t.Ki.Item,{label:"Mental Status",children:s.m_stat})]})||(0,e.jsx)(t.az,{color:"bad",children:"General record lost!"})}),(0,e.jsx)(t.wn,{title:"Security Data",children:c&&(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Criminal Status",children:c.criminal}),(0,e.jsx)(t.Ki.Item,{label:"Minor Crimes",children:c.mi_crim}),(0,e.jsx)(t.Ki.Item,{label:"Details",children:c.mi_crim_d}),(0,e.jsx)(t.Ki.Item,{label:"Major Crimes",children:c.ma_crim}),(0,e.jsx)(t.Ki.Item,{label:"Details",children:c.ma_crim_d}),(0,e.jsx)(t.Ki.Item,{label:"Important Notes:",children:(0,e.jsx)(t.az,{preserveWhitespace:!0,children:c.notes||"No data found."})})]})||(0,e.jsx)(t.az,{color:"bad",children:"Security record lost!"})})]})}return(0,e.jsx)(t.wn,{title:"Select a record",children:a.map(function(f){return(0,e.jsx)(t.$n,{icon:"eye",fluid:!0,onClick:function(){return x("Records",{target:f.ref})},children:f.name},f.ref)})})}},56473:function(y,u,n){"use strict";n.r(u),n.d(u,{pda_signaller:function(){return t}});var e=n(20462),o=n(46321),t=function(r){return(0,e.jsx)(o.SignalerContent,{})}},41659:function(y,u,n){"use strict";n.r(u),n.d(u,{pda_status_display:function(){return r}});var e=n(20462),o=n(7081),t=n(88569),r=function(i){var h=(0,o.Oc)(),x=h.act,d=h.data,a=d.records;return(0,e.jsx)(t.az,{children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsxs)(t.Ki.Item,{label:"Code",children:[(0,e.jsx)(t.$n,{color:"transparent",icon:"trash",onClick:function(){return x("Status",{statdisp:"blank"})},children:"Clear"}),(0,e.jsx)(t.$n,{color:"transparent",icon:"cog",onClick:function(){return x("Status",{statdisp:"shuttle"})},children:"Evac ETA"}),(0,e.jsx)(t.$n,{color:"transparent",icon:"cog",onClick:function(){return x("Status",{statdisp:"message"})},children:"Message"}),(0,e.jsx)(t.$n,{color:"transparent",icon:"exclamation-triangle",onClick:function(){return x("Status",{statdisp:"alert"})},children:"ALERT"})]}),(0,e.jsx)(t.Ki.Item,{label:"Message line 1",children:(0,e.jsx)(t.$n,{icon:"pen",onClick:function(){return x("Status",{statdisp:"setmsg1"})},children:a&&a.message1+" (set)"})}),(0,e.jsx)(t.Ki.Item,{label:"Message line 2",children:(0,e.jsx)(t.$n,{icon:"pen",onClick:function(){return x("Status",{statdisp:"setmsg2"})},children:a&&a.message2+" (set)"})})]})})}},94431:function(y,u,n){"use strict";n.r(u),n.d(u,{pda_supply:function(){return r}});var e=n(20462),o=n(7081),t=n(88569),r=function(i){var h=(0,o.Oc)(),x=h.act,d=h.data,a=d.supply;return(0,e.jsxs)(t.az,{children:[(0,e.jsx)(t.Ki,{children:(0,e.jsx)(t.Ki.Item,{label:"Location",children:a.shuttle_moving?"Moving to station "+a.shuttle_eta:"Shuttle at "+a.shuttle_loc})}),(0,e.jsxs)(t.wn,{children:[(0,e.jsx)(t.az,{color:"good",bold:!0,children:"Current Approved Orders"}),a.approved.length&&a.approved.map(function(l){return(0,e.jsxs)(t.az,{color:"average",children:["#",l.Number," - ",l.Name," approved by ",l.ApprovedBy,(0,e.jsx)("br",{}),l.Comment]},l.Number)})||(0,e.jsx)(t.az,{children:"None!"}),(0,e.jsx)(t.az,{color:"good",bold:!0,children:"Current Requested Orders"}),a.requests.length&&a.requests.map(function(l){return(0,e.jsxs)(t.az,{color:"average",children:["#",l.Number," - ",l.Name," requested by ",l.OrderedBy,(0,e.jsx)("br",{}),l.Comment]},l.Number)})||(0,e.jsx)(t.az,{children:"None!"})]})]})}},11115:function(y,u,n){"use strict";n.r(u)},75418:function(y,u,n){"use strict";n.r(u),n.d(u,{PersonalCrafting:function(){return l}});var e=n(20462),o=n(61358),t=n(7081),r=n(88569),i=n(15581);function h(c,f){(f==null||f>c.length)&&(f=c.length);for(var v=0,g=new Array(f);v=c.length?{done:!0}:{done:!1,value:c[g++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var l=function(c){for(var f,v=(0,t.Oc)(),g=v.act,E=v.data,j=E.busy,C=E.display_craftable_only,M=E.display_compact,P=E.crafting_recipes||{},_=[],S=[],T=a(Object.keys(P)),b;!(b=T()).done;){var L=b.value,W=P[L];if("has_subcats"in W){for(var $=a(Object.keys(W)),z;!(z=$()).done;){var w=z.value;if(w!=="has_subcats"){_.push({name:w,category:L,subcategory:w});for(var V=W[w],k=a(V),H;!(H=k()).done;){var Y=H.value;S.push(x({},Y,{category:w}))}}}continue}_.push({name:L,category:L});for(var q=P[L],Z=a(q),Q;!(Q=Z()).done;){var J=Q.value;S.push(x({},J,{category:L}))}}var X=(0,o.useState)((f=_[0])==null?void 0:f.name),ee=X[0],se=X[1],ie=S.filter(function(ue){return ue.category===ee});return(0,e.jsx)(i.p8,{title:"Crafting Menu",width:700,height:800,children:(0,e.jsxs)(i.p8.Content,{scrollable:!0,children:[!!j&&(0,e.jsxs)(r.Rr,{fontSize:"32px",children:[(0,e.jsx)(r.In,{name:"cog",spin:1})," Crafting..."]}),(0,e.jsx)(r.wn,{title:"Personal Crafting",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.$n.Checkbox,{checked:M,onClick:function(){return g("toggle_compact")},children:"Compact"}),(0,e.jsx)(r.$n.Checkbox,{checked:C,onClick:function(){return g("toggle_recipes")},children:"Craftable Only"})]}),children:(0,e.jsxs)(r.so,{children:[(0,e.jsx)(r.so.Item,{children:(0,e.jsx)(r.tU,{vertical:!0,children:_.map(function(ue){return(0,e.jsx)(r.tU.Tab,{selected:ue.name===ee,onClick:function(){se(ue.name),g("set_category",{category:ue.category,subcategory:ue.subcategory})},children:ue.name},ue.name)})})}),(0,e.jsx)(r.so.Item,{grow:1,basis:0,children:(0,e.jsx)(s,{craftables:ie})})]})})]})})},s=function(c){var f=c.craftables,v=f===void 0?[]:f,g=(0,t.Oc)(),E=g.act,j=g.data,C=j.craftability,M=C===void 0?{}:C,P=j.display_compact,_=j.display_craftable_only;return v.map(function(S){return _&&!M[S.ref]?null:P?(0,e.jsx)(r.Ki.Item,{label:S.name,className:"candystripe",buttons:(0,e.jsx)(r.$n,{icon:"cog",disabled:!M[S.ref],tooltip:S.tool_text&&"Tools needed: "+S.tool_text,tooltipPosition:"left",onClick:function(){return E("make",{recipe:S.ref})},children:"Craft"}),children:S.req_text},S.name):(0,e.jsx)(r.wn,{title:S.name,buttons:(0,e.jsx)(r.$n,{icon:"cog",disabled:!M[S.ref],onClick:function(){return E("make",{recipe:S.ref})},children:"Craft"}),children:(0,e.jsxs)(r.Ki,{children:[!!S.req_text&&(0,e.jsx)(r.Ki.Item,{label:"Required",children:S.req_text}),!!S.catalyst_text&&(0,e.jsx)(r.Ki.Item,{label:"Catalyst",children:S.catalyst_text}),!!S.tool_text&&(0,e.jsx)(r.Ki.Item,{label:"Tools",children:S.tool_text})]})},S.name)})}},6924:function(y,u,n){"use strict";n.r(u),n.d(u,{Photocopier:function(){return i}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),i=function(a){var l=(0,o.Oc)().data,s=l.isAI,c=l.has_toner,f=l.has_item;return(0,e.jsx)(r.p8,{title:"Photocopier",width:240,height:s?309:234,children:(0,e.jsxs)(r.p8.Content,{children:[c?(0,e.jsx)(h,{}):(0,e.jsx)(t.wn,{title:"Toner",children:(0,e.jsx)(t.az,{color:"average",children:"No inserted toner cartridge."})}),f?(0,e.jsx)(x,{}):(0,e.jsx)(t.wn,{title:"Options",children:(0,e.jsx)(t.az,{color:"average",children:"No inserted item."})}),!!s&&(0,e.jsx)(d,{})]})})},h=function(a){var l=(0,o.Oc)().data,s=l.max_toner,c=l.current_toner,f=s*.66,v=s*.33;return(0,e.jsx)(t.wn,{title:"Toner",children:(0,e.jsx)(t.z2,{ranges:{good:[f,s],average:[v,f],bad:[0,v]},value:c,minValue:0,maxValue:s})})},x=function(a){var l=(0,o.Oc)(),s=l.act,c=l.data,f=c.num_copies;return(0,e.jsxs)(t.wn,{title:"Options",children:[(0,e.jsxs)(t.so,{children:[(0,e.jsx)(t.so.Item,{mt:.4,width:11,color:"label",children:"Make copies:"}),(0,e.jsx)(t.so.Item,{children:(0,e.jsx)(t.Q7,{animated:!0,width:"2.6",height:"1.65",step:1,stepPixelSize:8,minValue:1,maxValue:10,value:f,onDrag:function(v){return s("set_copies",{num_copies:v})}})}),(0,e.jsx)(t.so.Item,{children:(0,e.jsx)(t.$n,{ml:.2,icon:"copy",textAlign:"center",onClick:function(){return s("make_copy")},children:"Copy"})})]}),(0,e.jsx)(t.$n,{mt:.5,textAlign:"center",icon:"reply",fluid:!0,onClick:function(){return s("remove")},children:"Remove item"})]})},d=function(a){var l=(0,o.Oc)(),s=l.act,c=l.data,f=c.can_AI_print;return(0,e.jsx)(t.wn,{title:"AI Options",children:(0,e.jsx)(t.az,{children:(0,e.jsx)(t.$n,{fluid:!0,icon:"images",textAlign:"center",disabled:!f,onClick:function(){return s("ai_photo")},children:"Print photo from database"})})})}},11727:function(y,u,n){"use strict";n.r(u),n.d(u,{PipeDispenser:function(){return x}});var e=n(20462),o=n(61358),t=n(7081),r=n(88569),i=n(15581),h=n(66947),x=function(d){var a=(0,t.Oc)(),l=a.act,s=a.data,c=s.disposals,f=s.p_layer,v=s.pipe_layers,g=s.categories,E=g===void 0?[]:g,j=(0,o.useState)("categoryName"),C=j[0],M=j[1],P=E.find(function(_){return _.cat_name===C})||E[0];return(0,e.jsx)(i.p8,{width:425,height:515,children:(0,e.jsxs)(i.p8.Content,{scrollable:!0,children:[!c&&(0,e.jsx)(r.wn,{title:"Layer",children:(0,e.jsx)(r.az,{children:Object.keys(v).map(function(_){return(0,e.jsx)(r.$n.Checkbox,{fluid:!0,checked:v[_]===f,onClick:function(){return l("p_layer",{p_layer:v[_]})},children:_},_)})})}),(0,e.jsxs)(r.wn,{title:"Pipes",children:[(0,e.jsx)(r.tU,{children:E.map(function(_){return(0,e.jsx)(r.tU.Tab,{icon:h.ICON_BY_CATEGORY_NAME[_.cat_name],selected:_.cat_name===P.cat_name,onClick:function(){return M(_.cat_name)},children:_.cat_name},_.cat_name)})}),P==null?void 0:P.recipes.map(function(_){return(0,e.jsx)(r.$n,{fluid:!0,ellipsis:!0,onClick:function(){return l("dispense_pipe",{ref:_.ref,bent:_.bent,category:P.cat_name})},children:_.pipe_name},_.pipe_name)})]})]})})}},28291:function(y,u,n){"use strict";n.r(u),n.d(u,{PlantAnalyzer:function(){return i}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),i=function(x){var d=(0,o.Oc)().data,a=d.seed,l=d.reagents,s=250;return a&&(s+=18*a.trait_info.length),l&&l.length&&(s+=55,s+=20*l.length),(0,e.jsx)(r.p8,{width:400,height:s,children:(0,e.jsx)(r.p8.Content,{scrollable:!0,children:(0,e.jsx)(h,{})})})},h=function(x){var d=(0,o.Oc)(),a=d.act,l=d.data,s=l.no_seed,c=l.seed,f=l.reagents;return s?(0,e.jsx)(t.wn,{title:"Analyzer Unused",children:"You should go scan a plant! There is no data currently loaded."}):(0,e.jsxs)(t.wn,{title:"Plant Information",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n,{icon:"print",onClick:function(){return a("print")},children:"Print Report"}),(0,e.jsx)(t.$n,{icon:"window-close",color:"red",onClick:function(){return a("close")}})]}),children:[(0,e.jsxs)(t.Ki,{children:[(0,e.jsxs)(t.Ki.Item,{label:"Plant Name",children:[c.name,"#",c.uid]}),(0,e.jsx)(t.Ki.Item,{label:"Endurance",children:c.endurance}),(0,e.jsx)(t.Ki.Item,{label:"Yield",children:c.yield}),(0,e.jsx)(t.Ki.Item,{label:"Maturation Time",children:c.maturation_time}),(0,e.jsx)(t.Ki.Item,{label:"Production Time",children:c.production_time}),(0,e.jsx)(t.Ki.Item,{label:"Potency",children:c.potency})]}),f.length&&(0,e.jsx)(t.wn,{title:"Plant Reagents",children:(0,e.jsx)(t.Ki,{children:f.map(function(v){return(0,e.jsxs)(t.Ki.Item,{label:v.name,children:[v.volume," unit(s)."]},v.name)})})})||null,(0,e.jsx)(t.wn,{title:"Other Data",children:c.trait_info.map(function(v){return(0,e.jsx)(t.az,{color:"label",mb:.4,children:v},v)})})]})}},45371:function(y,u,n){"use strict";n.r(u),n.d(u,{ControlAbilities:function(){return r}});var e=n(20462),o=n(7081),t=n(88569),r=function(i){var h=(0,o.Oc)().act;return(0,e.jsxs)(t.wn,{title:"Grant Abilities",children:[(0,e.jsx)(t.$n,{fluid:!0,onClick:function(){return h("vent_crawl")},children:"Vent Crawl"}),(0,e.jsx)(t.$n,{fluid:!0,onClick:function(){return h("darksight")},children:"Set Darksight"}),(0,e.jsx)(t.$n,{fluid:!0,onClick:function(){return h("cocoon")},children:"Give Cocoon Transformation"}),(0,e.jsx)(t.$n,{fluid:!0,onClick:function(){return h("transformation")},children:"Give TF verbs"}),(0,e.jsx)(t.$n,{fluid:!0,onClick:function(){return h("set_size")},children:"Give Set Size"}),(0,e.jsx)(t.$n,{fluid:!0,onClick:function(){return h("lleill_energy")},children:"Set Lleill Energy Levels"}),(0,e.jsx)(t.$n,{fluid:!0,onClick:function(){return h("lleill_invisibility")},children:"Give Lleill Invisibility"}),(0,e.jsx)(t.$n,{fluid:!0,onClick:function(){return h("beast_form")},children:"Give Leill Beast Form"}),(0,e.jsx)(t.$n,{fluid:!0,onClick:function(){return h("lleill_transmute")},children:"Give Leill Transmutation"}),(0,e.jsx)(t.$n,{fluid:!0,onClick:function(){return h("lleill_alchemy")},children:"Give Leill Alchemy"}),(0,e.jsx)(t.$n,{fluid:!0,onClick:function(){return h("lleill_drain")},children:"Give Lleill Drain"}),(0,e.jsx)(t.$n,{fluid:!0,onClick:function(){return h("brutal_pred")},children:"Give Brutal Predation"}),(0,e.jsx)(t.$n,{fluid:!0,onClick:function(){return h("trash_eater")},children:"Give Trash Eater"})]})}},27484:function(y,u,n){"use strict";n.r(u),n.d(u,{ControlAdmin:function(){return r}});var e=n(20462),o=n(7081),t=n(88569),r=function(i){var h=(0,o.Oc)().act;return(0,e.jsxs)(t.wn,{title:"Admin Controls",children:[(0,e.jsx)(t.$n,{fluid:!0,onClick:function(){return h("quick_nif")},children:"Quick NIF"}),(0,e.jsx)(t.$n,{fluid:!0,onClick:function(){return h("resize")},children:"Resize"}),(0,e.jsx)(t.$n,{fluid:!0,onClick:function(){return h("teleport")},children:"Teleport"}),(0,e.jsx)(t.$n,{fluid:!0,onClick:function(){return h("gib")},children:"Gib"}),(0,e.jsx)(t.$n,{fluid:!0,onClick:function(){return h("dust")},children:"Dust"}),(0,e.jsx)(t.$n,{fluid:!0,onClick:function(){return h("paralyse")},children:"Paralyse"}),(0,e.jsx)(t.$n,{fluid:!0,onClick:function(){return h("subtle_message")},children:"Subtle Message"}),(0,e.jsx)(t.$n,{fluid:!0,onClick:function(){return h("direct_narrate")},children:"Direct Narrate"}),(0,e.jsx)(t.$n,{fluid:!0,onClick:function(){return h("player_panel")},children:"Open Player Panel"}),(0,e.jsx)(t.$n,{fluid:!0,onClick:function(){return h("view_variables")},children:"Open View Variables"}),(0,e.jsx)(t.$n,{fluid:!0,onClick:function(){return h("ai")},children:"Enable/Modify AI"}),(0,e.jsx)(t.$n,{fluid:!0,onClick:function(){return h("orbit")},children:"Make Marked Datum Orbit"})]})}},18316:function(y,u,n){"use strict";n.r(u),n.d(u,{ControlFixes:function(){return r}});var e=n(20462),o=n(7081),t=n(88569),r=function(i){var h=(0,o.Oc)().act;return(0,e.jsxs)(t.wn,{title:"Bug Fixes",children:[(0,e.jsx)(t.$n,{fluid:!0,onClick:function(){return h("rejuvenate")},children:"Rejuvenate"}),(0,e.jsx)(t.$n,{fluid:!0,onClick:function(){return h("popup-box")},children:"Send Message Box"}),(0,e.jsx)(t.$n,{fluid:!0,onClick:function(){return h("stop-orbits")},children:"Clear All Orbiters"})]})}},46809:function(y,u,n){"use strict";n.r(u),n.d(u,{ControlInventory:function(){return r}});var e=n(20462),o=n(7081),t=n(88569),r=function(i){var h=(0,o.Oc)().act;return(0,e.jsxs)(t.wn,{title:"Inventory Controls",children:[(0,e.jsx)(t.$n,{fluid:!0,onClick:function(){return h("drop_all")},children:"Drop Everything"}),(0,e.jsx)(t.$n,{fluid:!0,onClick:function(){return h("drop_specific")},children:"Drop Specific Item"}),(0,e.jsx)(t.$n,{fluid:!0,onClick:function(){return h("drop_held")},children:"Drop Held Items"}),(0,e.jsx)(t.$n,{fluid:!0,onClick:function(){return h("list_all")},children:"List All Items"}),(0,e.jsx)(t.$n,{fluid:!0,onClick:function(){return h("give_item")},children:"Add Marked Item To Hands"}),(0,e.jsx)(t.$n,{fluid:!0,onClick:function(){return h("equip_item")},children:"Equip Marked Item To Inventory"})]})}},7556:function(y,u,n){"use strict";n.r(u),n.d(u,{ControlMedical:function(){return r}});var e=n(20462),o=n(7081),t=n(88569),r=function(i){var h=(0,o.Oc)().act;return(0,e.jsxs)(t.wn,{title:"Medical Effects",children:[(0,e.jsx)(t.$n,{fluid:!0,onClick:function(){return h("appendicitis")},children:"Appendicitis"}),(0,e.jsx)(t.$n,{fluid:!0,onClick:function(){return h("repair_organ")},children:"Repair Organ"}),(0,e.jsx)(t.$n,{fluid:!0,onClick:function(){return h("damage_organ")},children:"Damage Organ/Limb"}),(0,e.jsx)(t.$n,{fluid:!0,onClick:function(){return h("break_bone")},children:"Break Bone"}),(0,e.jsx)(t.$n,{fluid:!0,onClick:function(){return h("drop_organ")},children:"Drop Organ/Limb"}),(0,e.jsx)(t.$n,{fluid:!0,onClick:function(){return h("assist_organ")},children:"Make Organ Assisted"}),(0,e.jsx)(t.$n,{fluid:!0,onClick:function(){return h("robot_organ")},children:"Make Organ Robotic"}),(0,e.jsx)(t.$n,{fluid:!0,onClick:function(){return h("rejuvenate")},children:"Rejuvenate"}),(0,e.jsx)(t.$n,{fluid:!0,onClick:function(){return h("stasis")},children:"Toggle Stasis"})]})}},45502:function(y,u,n){"use strict";n.r(u),n.d(u,{ControlSmites:function(){return r}});var e=n(20462),o=n(7081),t=n(88569),r=function(i){var h=(0,o.Oc)().act;return(0,e.jsxs)(t.wn,{title:"Smites",children:[(0,e.jsx)(t.$n,{fluid:!0,onClick:function(){return h("break_legs")},children:"Break Legs"}),(0,e.jsx)(t.$n,{fluid:!0,onClick:function(){return h("bluespace_artillery")},children:"Bluespace Artillery"}),(0,e.jsx)(t.$n,{fluid:!0,onClick:function(){return h("spont_combustion")},children:"Spontaneous Combustion"}),(0,e.jsx)(t.$n,{fluid:!0,onClick:function(){return h("lightning_strike")},children:"Lightning Bolt"}),(0,e.jsx)(t.$n,{fluid:!0,onClick:function(){return h("shadekin_attack")},children:"Shadekin Attack"}),(0,e.jsx)(t.$n,{fluid:!0,onClick:function(){return h("shadekin_vore")},children:"Shadekin Vore"}),(0,e.jsx)(t.$n,{fluid:!0,onClick:function(){return h("redspace_abduct")},children:"Redspace Abduction"}),(0,e.jsx)(t.$n,{fluid:!0,onClick:function(){return h("autosave")},children:"Autosave"}),(0,e.jsx)(t.$n,{fluid:!0,onClick:function(){return h("autosave2")},children:"Autosave AOE"}),(0,e.jsx)(t.$n,{fluid:!0,onClick:function(){return h("adspam")},children:"Ad Spam"}),(0,e.jsx)(t.$n,{fluid:!0,onClick:function(){return h("peppernade")},children:"Peppernade"}),(0,e.jsx)(t.$n,{fluid:!0,onClick:function(){return h("spicerequest")},children:"Spawn Spice"}),(0,e.jsx)(t.$n,{fluid:!0,onClick:function(){return h("terror")},children:"Terrify"}),(0,e.jsx)(t.$n,{fluid:!0,onClick:function(){return h("terror_aoe")},children:"Terrify AOE"}),(0,e.jsx)(t.$n,{fluid:!0,onClick:function(){return h("spin")},children:"Spin"}),(0,e.jsx)(t.$n,{fluid:!0,onClick:function(){return h("squish")},children:"Squish"}),(0,e.jsx)(t.$n,{fluid:!0,onClick:function(){return h("pie_splat")},children:"Pie Splat"}),(0,e.jsx)(t.$n,{fluid:!0,onClick:function(){return h("spicy_air")},children:"Spicy Air"}),(0,e.jsx)(t.$n,{fluid:!0,onClick:function(){return h("hot_dog")},children:"Hot Dog"})]})}},5880:function(y,u,n){"use strict";n.r(u),n.d(u,{PlayerEffects:function(){return c}});var e=n(20462),o=n(61358),t=n(7081),r=n(88569),i=n(15581),h=n(45371),x=n(27484),d=n(18316),a=n(46809),l=n(7556),s=n(45502),c=function(f){var v=(0,t.Oc)().data,g=v.real_name,E=v.player_ckey,j=(0,o.useState)(0),C=j[0],M=j[1],P=[];return P[0]=(0,e.jsx)(s.ControlSmites,{}),P[1]=(0,e.jsx)(l.ControlMedical,{}),P[2]=(0,e.jsx)(h.ControlAbilities,{}),P[3]=(0,e.jsx)(a.ControlInventory,{}),P[4]=(0,e.jsx)(x.ControlAdmin,{}),P[5]=(0,e.jsx)(d.ControlFixes,{}),(0,e.jsx)(i.p8,{width:400,height:600,children:(0,e.jsxs)(i.p8.Content,{scrollable:!0,children:[(0,e.jsxs)(r.tU,{children:[(0,e.jsx)(r.tU.Tab,{selected:C===0,onClick:function(){return M(0)},children:"Smites"}),(0,e.jsx)(r.tU.Tab,{selected:C===1,onClick:function(){return M(1)},children:"Medical"}),(0,e.jsx)(r.tU.Tab,{selected:C===2,onClick:function(){return M(2)},children:"Abilities"}),(0,e.jsx)(r.tU.Tab,{selected:C===3,onClick:function(){return M(3)},children:"Inventory"}),(0,e.jsx)(r.tU.Tab,{selected:C===4,onClick:function(){return M(4)},children:"Admin"}),(0,e.jsx)(r.tU.Tab,{selected:C===5,onClick:function(){return M(5)},children:"Fixes"})]}),(0,e.jsxs)(r.IC,{info:!0,children:[g," played by ",E,"."]}),P[C]]})})}},25721:function(y,u,n){"use strict";n.r(u)},12588:function(y,u,n){"use strict";n.r(u),n.d(u,{PlayerNotes:function(){return i}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),i=function(h){var x=(0,o.Oc)(),d=x.act,a=x.data,l=a.device_theme,s=a.filter,c=a.pages,f=a.ckeys,v=function(g){return g()};return(0,e.jsx)(r.p8,{title:"Player Notes",theme:l,width:400,height:500,children:(0,e.jsx)(r.p8.Content,{scrollable:!0,children:(0,e.jsxs)(t.wn,{title:"Player notes",children:[(0,e.jsx)(t.$n,{icon:"filter",onClick:function(){return d("filter_player_notes")},children:"Apply Filter"}),(0,e.jsx)(t.$n,{icon:"sidebar",onClick:function(){return d("open_legacy_ui")},children:"Open Legacy UI"}),(0,e.jsx)(t.cG,{}),(0,e.jsx)(t.$n.Input,{onCommit:function(g,E){return d("show_player_info",{name:E})},children:"CKEY to Open"}),(0,e.jsx)(t.cG,{vertical:!0}),(0,e.jsx)(t.$n,{color:"green",onClick:function(){return d("clear_player_info_filter")},children:s}),(0,e.jsx)(t.cG,{}),(0,e.jsx)(t.XI,{children:f.map(function(g){return(0,e.jsx)(t.XI.Row,{children:(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.$n,{fluid:!0,color:"transparent",icon:"user",onClick:function(){return d("show_player_info",{name:g.name})},children:g.name})})},g.name)})}),(0,e.jsx)(t.cG,{}),v(function(){for(var g=function(C){E.push((0,e.jsx)(t.$n,{onClick:function(){return d("set_page",{index:C})},children:C},C))},E=[],j=1;j=.5&&"good"||W>.15&&"average"||"bad";return(0,e.jsx)(i.p8,{width:450,height:340,children:(0,e.jsxs)(i.p8.Content,{scrollable:!0,children:[!f&&(0,e.jsx)(r.IC,{children:"Generator not anchored."}),(0,e.jsx)(r.wn,{title:"Status",children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Power switch",children:(0,e.jsx)(r.$n,{icon:v?"power-off":"times",onClick:function(){return a("toggle_power")},selected:v,disabled:!g,children:v?"On":"Off"})}),(0,e.jsx)(r.Ki.Item,{label:"Fuel Type",buttons:s>=1&&(0,e.jsx)(r.$n,{ml:1,icon:"eject",disabled:v,onClick:function(){return a("eject")},children:"Eject"}),children:(0,e.jsxs)(r.az,{color:$,children:[s,"cm\xB3 ",E]})}),(0,e.jsx)(r.Ki.Item,{label:"Current fuel level",children:(0,e.jsxs)(r.z2,{value:s/c,ranges:{good:[.5,1/0],average:[.15,.5],bad:[-1/0,.15]},children:[s,"cm\xB3 / ",c,"cm\xB3"]})}),(0,e.jsxs)(r.Ki.Item,{label:"Fuel Usage",children:[j," cm\xB3/s"]}),(0,e.jsx)(r.Ki.Item,{label:"Temperature",children:(0,e.jsxs)(r.z2,{value:C,maxValue:M+30,color:P?"bad":"good",children:[(0,o.Mg)(C),"\xB0C"]})})]})}),(0,e.jsx)(r.wn,{title:"Output",children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Current output",color:_?"bad":void 0,children:S}),(0,e.jsxs)(r.Ki.Item,{label:"Adjust output",children:[(0,e.jsx)(r.$n,{icon:"minus",onClick:function(){return a("lower_power")},children:T}),(0,e.jsx)(r.$n,{icon:"plus",onClick:function(){return a("higher_power")},children:T})]}),(0,e.jsx)(r.Ki.Item,{label:"Power available",children:(0,e.jsx)(r.az,{inline:!0,color:!b&&"bad",children:b?L:"Unconnected"})})]})})]})})}},31991:function(y,u,n){"use strict";n.r(u),n.d(u,{PortablePump:function(){return h}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),i=n(95823),h=function(x){var d=(0,o.Oc)(),a=d.act,l=d.data,s=l.direction,c=l.target_pressure,f=l.default_pressure,v=l.min_pressure,g=l.max_pressure;return(0,e.jsx)(r.p8,{width:330,height:375,children:(0,e.jsxs)(r.p8.Content,{scrollable:!0,children:[(0,e.jsx)(i.PortableBasicInfo,{}),(0,e.jsx)(t.wn,{title:"Pump",buttons:(0,e.jsx)(t.$n,{icon:s?"sign-in-alt":"sign-out-alt",selected:s,onClick:function(){return a("direction")},children:s?"In":"Out"}),children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Output",children:(0,e.jsx)(t.Ap,{mt:"0.4em",animated:!0,minValue:v,maxValue:g,value:c,unit:"kPa",stepPixelSize:.3,onChange:function(E,j){return a("pressure",{pressure:j})}})}),(0,e.jsxs)(t.Ki.Item,{label:"Presets",children:[(0,e.jsx)(t.$n,{icon:"minus",disabled:c===v,onClick:function(){return a("pressure",{pressure:"min"})}}),(0,e.jsx)(t.$n,{icon:"sync",disabled:c===f,onClick:function(){return a("pressure",{pressure:"reset"})}}),(0,e.jsx)(t.$n,{icon:"plus",disabled:c===g,onClick:function(){return a("pressure",{pressure:"max"})}})]})]})})]})})}},33353:function(y,u,n){"use strict";n.r(u),n.d(u,{PortableScrubber:function(){return h}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),i=n(95823),h=function(x){var d=(0,o.Oc)(),a=d.act,l=d.data,s=l.rate,c=l.minrate,f=l.maxrate;return(0,e.jsx)(r.p8,{width:320,height:350,children:(0,e.jsxs)(r.p8.Content,{children:[(0,e.jsx)(i.PortableBasicInfo,{}),(0,e.jsx)(t.wn,{title:"Power Regulator",children:(0,e.jsx)(t.Ki,{children:(0,e.jsx)(t.Ki.Item,{label:"Volume Rate",children:(0,e.jsx)(t.Ap,{mt:"0.4em",animated:!0,minValue:c,maxValue:f,value:s,unit:"L/s",onChange:function(v,g){return a("volume_adj",{vol:g})}})})})})]})})}},96527:function(y,u,n){"use strict";n.r(u),n.d(u,{PortableTurret:function(){return i}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),i=function(h){var x=(0,o.Oc)(),d=x.act,a=x.data,l=a.locked,s=a.on,c=a.lethal,f=a.lethal_is_configurable,v=a.targetting_is_configurable,g=a.check_weapons,E=a.neutralize_noaccess,j=a.neutralize_norecord,C=a.neutralize_criminals,M=a.neutralize_all,P=a.neutralize_nonsynth,_=a.neutralize_unidentified,S=a.neutralize_down;return(0,e.jsx)(r.p8,{width:500,height:400,children:(0,e.jsxs)(r.p8.Content,{scrollable:!0,children:[(0,e.jsxs)(t.IC,{children:["Swipe an ID card to ",l?"unlock":"lock"," this interface."]}),(0,e.jsx)(t.wn,{children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Status",children:(0,e.jsx)(t.$n,{icon:s?"power-off":"times",selected:s,disabled:l,onClick:function(){return d("power")},children:s?"On":"Off"})}),!!f&&(0,e.jsx)(t.Ki.Item,{label:"Lethals",children:(0,e.jsx)(t.$n,{icon:c?"exclamation-triangle":"times",color:c?"bad":"",disabled:l,onClick:function(){return d("lethal")},children:c?"On":"Off"})})]})}),!!v&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(t.wn,{title:"Humanoid Targets",children:[(0,e.jsx)(t.$n.Checkbox,{fluid:!0,checked:C,disabled:l,onClick:function(){return d("autharrest")},children:"Wanted Criminals"}),(0,e.jsx)(t.$n.Checkbox,{fluid:!0,checked:j,disabled:l,onClick:function(){return d("authnorecord")},children:"No Sec Record"}),(0,e.jsx)(t.$n.Checkbox,{fluid:!0,checked:g,disabled:l,onClick:function(){return d("authweapon")},children:"Unauthorized Weapons"}),(0,e.jsx)(t.$n.Checkbox,{fluid:!0,checked:E,disabled:l,onClick:function(){return d("authaccess")},children:"Unauthorized Access"})]}),(0,e.jsxs)(t.wn,{title:"Other Targets",children:[(0,e.jsx)(t.$n.Checkbox,{fluid:!0,checked:_,disabled:l,onClick:function(){return d("authxeno")},children:"Unidentified Lifesigns (Xenos, Animals, Etc)"}),(0,e.jsx)(t.$n.Checkbox,{fluid:!0,checked:P,disabled:l,onClick:function(){return d("authsynth")},children:"All Non-Synthetics"}),(0,e.jsx)(t.$n.Checkbox,{fluid:!0,checked:S,disabled:l,onClick:function(){return d("authdown")},children:"Downed Targets"}),(0,e.jsx)(t.$n.Checkbox,{fluid:!0,checked:M,disabled:l,onClick:function(){return d("authall")},children:"All Entities"})]})]})]})})}},91276:function(y,u,n){"use strict";n.r(u),n.d(u,{PowerMonitorContent:function(){return i}});var e=n(20462),o=n(7081),t=n(88569),r=n(27971),i=function(h){var x=(0,o.Oc)(),d=x.act,a=x.data,l=a.all_sensors,s=a.focus;if(s)return(0,e.jsx)(r.PowerMonitorFocus,{focus:s});var c=(0,e.jsx)(t.az,{color:"bad",children:"No sensors detected"});return l&&(c=(0,e.jsx)(t.XI,{children:l.map(function(f){return(0,e.jsx)(t.XI.Row,{children:(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.$n,{icon:f.alarm?"bell":"sign-in-alt",onClick:function(){return d("setsensor",{id:f.name})},children:f.name})})},f.name)})})),(0,e.jsx)(t.wn,{title:"No active sensor. Listing all.",buttons:(0,e.jsx)(t.$n,{icon:"undo",onClick:function(){return d("refresh")},children:"Scan For Sensors"}),children:c})}},27971:function(y,u,n){"use strict";n.r(u),n.d(u,{PowerMonitorFocus:function(){return c}});var e=n(20462),o=n(7402),t=n(15813),r=n(4089),i=n(61358),h=n(7081),x=n(88569),d=n(92595),a=n(69788),l=n(88040);function s(){return s=Object.assign||function(f){for(var v=1;v50?"battery-half":"battery-quarter")||x===1&&"bolt"||x===2&&"battery-full"||"",color:x===0&&(d>50?"yellow":"red")||x===1&&"yellow"||x===2&&"green"}),(0,e.jsx)(t.az,{inline:!0,width:"36px",textAlign:"right",children:(0,o.Mg)(d)+"%"})]})},i=function(h){var x=h.status,d=!!(x&2),a=!!(x&1),l=(d?"On":"Off")+(" ["+(a?"auto":"manual")+"]");return(0,e.jsx)(t.m_,{content:l,children:(0,e.jsx)(t.BK,{color:d?"good":"bad",content:a?void 0:"M"})})}},92595:function(y,u,n){"use strict";n.r(u),n.d(u,{PEAK_DRAW:function(){return e}});var e=5e5},69788:function(y,u,n){"use strict";n.r(u),n.d(u,{powerRank:function(){return e}});function e(o){var t=String(o.split(" ")[1]).toLowerCase();return["w","kw","mw","gw"].indexOf(t)}},53414:function(y,u,n){"use strict";n.r(u),n.d(u,{PowerMonitor:function(){return r}});var e=n(20462),o=n(15581),t=n(91276),r=function(){return(0,e.jsx)(o.p8,{width:550,height:700,children:(0,e.jsx)(o.p8.Content,{scrollable:!0,children:(0,e.jsx)(t.PowerMonitorContent,{})})})}},77243:function(y,u,n){"use strict";n.r(u)},14827:function(y,u,n){"use strict";n.r(u),n.d(u,{GamePreferenceWindow:function(){return d}});var e=n(20462),o=n(61358),t=n(7081),r=n(88569),i=n(15581),h=n(19870),x=n(69901),d=function(a){var l=(0,t.Oc)(),s=l.act,c=l.data,f,v=(0,o.useState)((f=a.startingPage)!=null?f:h.GamePreferencesSelectedPage.Settings),g=v[0],E=v[1],j;switch(g){case h.GamePreferencesSelectedPage.Settings:j=(0,e.jsx)(x.GamePreferencesPage,{});break}return(0,e.jsx)(i.p8,{title:"Game Preferences",width:920,height:770,children:(0,e.jsx)(i.p8.Content,{children:(0,e.jsx)(r.BJ,{vertical:!0,fill:!0,children:(0,e.jsx)(r.BJ.Item,{grow:!0,shrink:!0,basis:"1px",children:j})})})})}},69901:function(y,u,n){"use strict";n.r(u),n.d(u,{GamePreferencesPage:function(){return v}});var e=n(20462),o=n(7402),t=n(61358),r=n(7081),i=n(88569),h=n(16945),x=n(72736),d=n(49049);function a(g,E){(E==null||E>g.length)&&(E=g.length);for(var j=0,C=new Array(E);j=g.length?{done:!0}:{done:!1,value:g[C++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var c=function(g,E){return(0,o.V0)(g,E,function(j){return j.name})},f=function(g){return(0,o.Ul)(g,function(E){var j=E[0];return j})},v=function(g){for(var E=(0,r.Oc)(),j=E.act,C=E.data,M={},P=s(Object.entries(C.character_preferences.game_preferences)),_;!(_=P()).done;){var S=_.value,T=S[0],b=S[1],L=h.default[T],W=(L==null?void 0:L.name)||T;L!=null&&L.description&&(W=(0,e.jsx)(i.az,{as:"span",style:{borderBottom:"2px dotted rgba(255, 255, 255, 0.8)"},children:W}));var $=(0,e.jsx)(i.so.Item,{grow:1,pr:2,basis:0,ml:2,children:W});L!=null&&L.description&&($=(0,e.jsx)(i.m_,{content:L.description,position:"bottom-start",children:$}));var z=(0,e.jsxs)(i.so,{align:"center",pb:2,children:[$,(0,e.jsx)(i.so.Item,{grow:1,basis:0,children:L&&(0,e.jsx)(x.FeatureValueInput,{feature:L,featureId:T,value:b,act:j})||(0,e.jsx)(i.az,{as:"b",color:"red",children:"...is not filled out properly!!!"})})]},T),w={name:(L==null?void 0:L.name)||T,children:z},V=(L==null?void 0:L.category)||"ERROR";M[V]=c(M[V]||[],w)}var k=(0,t.useState)(""),H=k[0],Y=k[1],q=(0,t.useState)(!1),Z=q[0],Q=q[1],J=f(Object.entries(M)).map(function(X){var ee=X[0],se=X[1];return[ee,se.filter(function(ie){return!H||ie.name.toLowerCase().includes(H.toLowerCase())}).map(function(ie){return ie.children})]}).filter(function(X){var ee=X[0],se=X[1];return se.length!==0});return(0,e.jsxs)(e.Fragment,{children:[!J.length&&(0,e.jsx)(i.wn,{title:"No Results",children:"No results found."}),(0,e.jsxs)(i.az,{position:"absolute",right:4,top:4,style:{zIndex:"100"},children:[Z&&(0,e.jsx)(i.pd,{width:16,value:H,onInput:function(X,ee){return Y(ee)},onChange:function(X,ee){return Y(ee)}}),(0,e.jsx)(i.$n,{selected:Z,icon:"magnifying-glass",tooltip:"Search",tooltipPosition:"bottom",onClick:function(){Q(!Z),Y("")}})]}),(0,e.jsx)(d.TabbedMenu,{categoryEntries:J,contentProps:{fontSize:1.5}})]})}},95387:function(y,u,n){"use strict";n.r(u),n.d(u,{PageButton:function(){return t}});var e=n(20462),o=n(88569),t=function(r){var i=r.currentPage===r.page||r.otherActivePages&&r.otherActivePages.indexOf(r.currentPage)!==-1;return(0,e.jsx)(o.$n,{align:"center",fontSize:"1.2em",fluid:!0,selected:i,onClick:function(){return r.setPage(r.page)},children:r.children})}},97364:function(y,u,n){"use strict";n.r(u),n.d(u,{ServerPreferencesFetcher:function(){return l}});var e=n(61358),o=n(31200),t=n(30705);function r(s,c,f,v,g,E,j){try{var C=s[E](j),M=C.value}catch(P){f(P);return}C.done?c(M):Promise.resolve(M).then(v,g)}function i(s){return function(){var c=this,f=arguments;return new Promise(function(v,g){var E=s.apply(c,f);function j(M){r(E,v,g,j,C,"next",M)}function C(M){r(E,v,g,j,C,"throw",M)}j(void 0)})}}function h(s,c){if(typeof c!="function"&&c!==null)throw new TypeError("Super expression must either be null or a function");s.prototype=Object.create(c&&c.prototype,{constructor:{value:s,writable:!0,configurable:!0}}),c&&x(s,c)}function x(s,c){return x=Object.setPrototypeOf||function(v,g){return v.__proto__=g,v},x(s,c)}function d(s,c){var f,v,g,E,j={label:0,sent:function(){if(g[0]&1)throw g[1];return g[1]},trys:[],ops:[]};return E={next:C(0),throw:C(1),return:C(2)},typeof Symbol=="function"&&(E[Symbol.iterator]=function(){return this}),E;function C(P){return function(_){return M([P,_])}}function M(P){if(f)throw new TypeError("Generator is already executing.");for(;j;)try{if(f=1,v&&(g=P[0]&2?v.return:P[0]?v.throw||((g=v.return)&&g.call(v),0):v.next)&&!(g=g.call(v,P[1])).done)return g;switch(v=0,g&&(P=[P[0]&2,g.value]),P[0]){case 0:case 1:g=P;break;case 4:return j.label++,{value:P[1],done:!1};case 5:j.label++,v=P[1],P=[0];continue;case 7:P=j.ops.pop(),j.trys.pop();continue;default:if(g=j.trys,!(g=g.length>0&&g[g.length-1])&&(P[0]===6||P[0]===2)){j=0;continue}if(P[0]===3&&(!g||P[1]>g[0]&&P[1]