diff --git a/_maps/map_files220/stations/boxstation.dmm b/_maps/map_files220/stations/boxstation.dmm index 979a34eca967..9ce7e4293802 100644 --- a/_maps/map_files220/stations/boxstation.dmm +++ b/_maps/map_files220/stations/boxstation.dmm @@ -38513,6 +38513,9 @@ dir = 4 }, /obj/machinery/light/directional/south, +/obj/machinery/atmospherics/meter{ + autolink_id = "sm_sen_cold" + }, /turf/simulated/floor/plasteel{ icon_state = "darkyellow" }, @@ -40352,7 +40355,6 @@ }, /obj/machinery/atmospherics/pipe/simple/visible/cyan, /obj/machinery/light/directional/west, -/obj/machinery/atmospherics/meter, /turf/simulated/floor/plasteel{ dir = 8; icon_state = "darkyellow" @@ -80922,6 +80924,13 @@ icon_state = "freezerfloor" }, /area/station/maintenance/disposal) +"qCM" = ( +/obj/machinery/atmospherics/air_sensor{ + autolink_id = "sm_sen_cont"; + output = 127 + }, +/turf/simulated/floor/engine, +/area/station/engineering/engine/supermatter) "qCO" = ( /obj/effect/decal/cleanable/dirt, /obj/machinery/atmospherics/pipe/simple/visible/cyan{ @@ -88757,7 +88766,9 @@ dir = 4 }, /obj/machinery/light/directional/south, -/obj/machinery/atmospherics/meter, +/obj/machinery/atmospherics/meter{ + autolink_id = "sm_sen_hot" + }, /turf/simulated/floor/plasteel{ icon_state = "darkyellow" }, @@ -90900,6 +90911,10 @@ /area/station/science/explab/chamber) "uiw" = ( /obj/structure/extinguisher_cabinet/directional/east, +/obj/machinery/computer/general_air_control/pt_monitor{ + dir = 1; + autolink_sensors = list("sm_sen_hot"="Горячий Контур","sm_sen_cold"="Холодный Контур","sm_sen_cont"="Зона Содержания") + }, /turf/simulated/floor/plasteel{ dir = 6; icon_state = "darkyellow" @@ -138550,7 +138565,7 @@ dah wQQ mkq dPA -cSI +qCM phw cSI nic diff --git a/_maps/map_files220/stations/deltastation.dmm b/_maps/map_files220/stations/deltastation.dmm index b2d45d24c6c4..0efb9e24aaa0 100644 --- a/_maps/map_files220/stations/deltastation.dmm +++ b/_maps/map_files220/stations/deltastation.dmm @@ -7332,7 +7332,9 @@ /turf/simulated/floor/plasteel, /area/station/engineering/controlroom) "aGa" = ( -/obj/machinery/atmospherics/meter, +/obj/machinery/atmospherics/meter{ + autolink_id = "sm_sen_cold" + }, /obj/machinery/atmospherics/pipe/manifold/visible, /obj/structure/cable/yellow{ d1 = 4; @@ -8284,6 +8286,9 @@ pixel_y = -4 }, /obj/effect/turf_decal/delivery/hollow, +/obj/item/clothing/head/welding/flamedecal/blue{ + pixel_y = 5 + }, /turf/simulated/floor/plasteel, /area/station/engineering/controlroom) "aJH" = ( @@ -56142,9 +56147,9 @@ /turf/simulated/floor/plasteel, /area/station/engineering/controlroom) "gBF" = ( -/obj/structure/table/reinforced, -/obj/item/clothing/head/welding/flamedecal/blue{ - pixel_y = 5 +/obj/machinery/computer/general_air_control/pt_monitor{ + dir = 8; + autolink_sensors = list("sm_sen_hot"="Горячий Контур","sm_sen_cold"="Холодный Контур","sm_sen_cont"="Зона Содержания") }, /turf/simulated/floor/plasteel, /area/station/engineering/controlroom) @@ -89109,6 +89114,13 @@ icon_state = "neutralfull" }, /area/station/hallway/primary/central/ne) +"qQH" = ( +/obj/machinery/atmospherics/air_sensor{ + autolink_id = "sm_sen_cont"; + output = 127 + }, +/turf/simulated/floor/engine, +/area/station/engineering/engine/supermatter) "qQK" = ( /obj/machinery/atmospherics/pipe/simple/hidden/supply{ dir = 9 @@ -107080,7 +107092,9 @@ /obj/effect/turf_decal/stripes/line{ dir = 1 }, -/obj/machinery/atmospherics/meter, +/obj/machinery/atmospherics/meter{ + autolink_id = "sm_sen_hot" + }, /turf/simulated/floor/plasteel, /area/station/engineering/controlroom) "wBK" = ( @@ -136244,7 +136258,7 @@ nUm kJd aAa aBX -aAa +qQH mxm aAa aCZ diff --git a/_maps/map_files220/stations/metastation.dmm b/_maps/map_files220/stations/metastation.dmm index 20bc7dbd29e1..b96950a7c4cb 100644 --- a/_maps/map_files220/stations/metastation.dmm +++ b/_maps/map_files220/stations/metastation.dmm @@ -9345,21 +9345,12 @@ /turf/simulated/floor/engine, /area/station/engineering/engine/supermatter) "aRg" = ( -/obj/machinery/atmospherics/meter, -/obj/machinery/atmospherics/pipe/manifold/visible/cyan{ - dir = 8; - initialize_directions = 11 - }, -/obj/structure/cable{ - d1 = 1; - d2 = 2; - icon_state = "1-2" - }, -/obj/effect/turf_decal/stripes/line{ - dir = 4 +/obj/machinery/atmospherics/air_sensor{ + autolink_id = "sm_sen_cont"; + output = 127 }, /turf/simulated/floor/engine, -/area/station/engineering/control) +/area/station/engineering/engine/supermatter) "aRm" = ( /obj/machinery/light/small/directional/south, /turf/simulated/floor/plating, @@ -10045,6 +10036,9 @@ /obj/effect/turf_decal/stripes/line{ dir = 4 }, +/obj/machinery/atmospherics/meter{ + autolink_id = "sm_sen_cold" + }, /turf/simulated/floor/engine, /area/station/engineering/control) "aTK" = ( @@ -43844,10 +43838,10 @@ d2 = 8; icon_state = "1-8" }, -/obj/machinery/atmospherics/meter, /obj/effect/turf_decal/stripes/line{ dir = 1 }, +/obj/machinery/atmospherics/meter, /turf/simulated/floor/engine, /area/station/engineering/control) "ded" = ( @@ -45938,10 +45932,10 @@ }, /area/station/hallway/primary/aft) "dXb" = ( -/obj/machinery/atmospherics/meter, /obj/machinery/atmospherics/pipe/manifold/visible/cyan, /obj/machinery/light/directional/south, /obj/effect/turf_decal/stripes/line, +/obj/machinery/atmospherics/meter, /turf/simulated/floor/engine, /area/station/engineering/control) "dXu" = ( @@ -59483,6 +59477,9 @@ /obj/effect/turf_decal/stripes/line{ dir = 4 }, +/obj/machinery/atmospherics/meter{ + autolink_id = "sm_sen_hot" + }, /turf/simulated/floor/engine, /area/station/engineering/control) "knq" = ( @@ -78779,6 +78776,15 @@ }, /turf/simulated/floor/plasteel, /area/station/science/toxins/mixing) +"tij" = ( +/obj/machinery/computer/general_air_control/pt_monitor{ + dir = 4; + autolink_sensors = list("sm_sen_hot"="Горячий Контур","sm_sen_cold"="Холодный Контур","sm_sen_cont"="Зона Содержания") + }, +/turf/simulated/floor/plasteel{ + icon_state = "dark" + }, +/area/station/engineering/control) "tio" = ( /obj/structure/cable/yellow{ d1 = 1; @@ -130635,7 +130641,7 @@ fWD xWl sLD jwN -nRh +tij pcW pcW pcW @@ -131914,7 +131920,7 @@ nYI pFo aMU aPa -aRg +aPa aTJ aPs aVs @@ -132945,7 +132951,7 @@ kGw aRs aTK aRf -aSo +aRg aTV mzf dqm diff --git a/modular_ss220/modular_ss220.dme b/modular_ss220/modular_ss220.dme index c3f43a4988f5..f8a44c58bf45 100644 --- a/modular_ss220/modular_ss220.dme +++ b/modular_ss220/modular_ss220.dme @@ -35,6 +35,7 @@ #include "silicons/_silicons.dme" #include "windows_airbag/_windows_airbag.dme" #include "clumsy_table/_clumsy_table.dme" +#include "pt_monitor/_pt_monitor.dme" // --- MISC --- // #include "administration/_administration.dme" diff --git a/modular_ss220/pt_monitor/_pt_monitor.dm b/modular_ss220/pt_monitor/_pt_monitor.dm new file mode 100644 index 000000000000..b6145fa522b8 --- /dev/null +++ b/modular_ss220/pt_monitor/_pt_monitor.dm @@ -0,0 +1,4 @@ +/datum/modpack/pt_monitor + name = "Pressure Temperature monitor" + desc = "График изменения температуры и давления. С любовью, для SS220" + author = "VentelR, Desunovu" diff --git a/modular_ss220/pt_monitor/_pt_monitor.dme b/modular_ss220/pt_monitor/_pt_monitor.dme new file mode 100644 index 000000000000..e9b13759ca7c --- /dev/null +++ b/modular_ss220/pt_monitor/_pt_monitor.dme @@ -0,0 +1,3 @@ +#include "_pt_monitor.dm" + +#include "code/items/pt_monitor.dm" diff --git a/modular_ss220/pt_monitor/code/items/pt_monitor.dm b/modular_ss220/pt_monitor/code/items/pt_monitor.dm new file mode 100644 index 000000000000..983ba5d0337d --- /dev/null +++ b/modular_ss220/pt_monitor/code/items/pt_monitor.dm @@ -0,0 +1,124 @@ +#define SENSOR_PRESSURE (1<<0) +#define SENSOR_TEMPERATURE (1<<1) +#define NO_DATA_VALUE null +#define MAX_RECORD_SIZE 20 +#define RECORD_INTERVAL 3 SECONDS +#define LONG_RECORD_INTERVAL 30 SECONDS +#define LAZYINITLISTSIZED(L, N) if(!L) L = new/list(N) +#define ADD_TO_HISTORY(history_list, measurement) \ + history_list += measurement; \ + if(length(history_list) > MAX_RECORD_SIZE) history_list.Cut(1, 2) + +/datum/design/pt_monitor + name = "Console Board (Atmospheric Graph Monitor)" + desc ="Позволяет распечатать плату, для создания Atmospheric Graph Monitor." + id = "pt_monitor" + req_tech = list("programming" = 2, "engineering" = 3) + build_type = IMPRINTER + materials = list(MAT_GLASS = 1000) + build_path = /obj/item/circuitboard/pt_monitor + category = list("Computer Boards") + +/obj/item/circuitboard/pt_monitor + board_name = "Atmospheric Graph Monitor" + icon_state = "engineering" + build_path = /obj/machinery/computer/general_air_control/pt_monitor + origin_tech = "programming=2;engineering=3" + +/obj/machinery/computer/general_air_control/pt_monitor + name = "Atmospheric graph monitoring console" + desc = "Используется для мониторинга давления и температуры с помощью подключаемых мультитулом датчиков." + icon = 'modular_ss220/pt_monitor/icons/pt_monitor.dmi' + icon_screen = "screen" + icon_keyboard = "atmos_key" + circuit = /obj/item/circuitboard/pt_monitor + + var/next_record_time = 0 + var/next_long_record_time = 0 + +/obj/machinery/computer/general_air_control/pt_monitor/proc/init_history_lists() + for(var/sensor_name in sensor_name_data_map) + LAZYINITLISTSIZED(sensor_name_data_map[sensor_name]["pressure_history"], MAX_RECORD_SIZE) + LAZYINITLISTSIZED(sensor_name_data_map[sensor_name]["temperature_history"], MAX_RECORD_SIZE) + LAZYINITLISTSIZED(sensor_name_data_map[sensor_name]["long_pressure_history"], MAX_RECORD_SIZE) + LAZYINITLISTSIZED(sensor_name_data_map[sensor_name]["long_temperature_history"], MAX_RECORD_SIZE) + +/obj/machinery/computer/general_air_control/pt_monitor/LateInitialize() + . = ..() + init_history_lists() + +/obj/machinery/computer/general_air_control/pt_monitor/ui_interact(mob/user, datum/tgui/ui = null) + ui = SStgui.try_update_ui(user, src, ui) + if(!ui) + ui = new(user, src, "AtmosGraphMonitor", name) + ui.open() + +/obj/machinery/computer/general_air_control/pt_monitor/configure_sensors(mob/living/user, obj/item/multitool/M) + . = ..() + init_history_lists() + +/obj/machinery/computer/general_air_control/pt_monitor/refresh_sensors() + var/log_long_record = FALSE + var/current_time = world.time + + if(current_time < next_record_time) + return + next_record_time = current_time + RECORD_INTERVAL + + if(current_time >= next_long_record_time) + log_long_record = TRUE + next_long_record_time = current_time + LONG_RECORD_INTERVAL + + for(var/sensor_name in sensor_name_uid_map) + var/obj/machinery/atmospherics/atmos_sensor = locateUID(sensor_name_uid_map[sensor_name]) + // Проверка что сенсор существует + if(QDELETED(atmos_sensor)) + sensor_name_uid_map -= sensor_name + sensor_name_data_map -= sensor_name + continue + + var/list/sensor_data = sensor_name_data_map[sensor_name] + var/list/sensor_pressure_history = sensor_data["pressure_history"] + var/list/sensor_temperature_history = sensor_data["temperature_history"] + var/list/sensor_long_pressure_history = sensor_data["long_pressure_history"] + var/list/sensor_long_temperature_history = sensor_data["long_temperature_history"] + var/current_pressure + var/current_temperature + + if(istype(atmos_sensor, /obj/machinery/atmospherics/air_sensor)) + var/obj/machinery/atmospherics/air_sensor/sensor = atmos_sensor + var/datum/gas_mixture/air_sample = sensor.return_air() + current_pressure = (sensor.output & SENSOR_PRESSURE) ? air_sample.return_pressure() : NO_DATA_VALUE + current_temperature = (sensor.output & SENSOR_TEMPERATURE) ? air_sample.return_temperature() : NO_DATA_VALUE + else if(istype(atmos_sensor, /obj/machinery/atmospherics/meter)) + var/obj/machinery/atmospherics/meter/the_meter = atmos_sensor + if(the_meter.target) + var/datum/gas_mixture/meter_air_sample = the_meter.target.return_air() + current_pressure = meter_air_sample ? meter_air_sample.return_pressure() : NO_DATA_VALUE + current_temperature = meter_air_sample ? meter_air_sample.return_temperature() : NO_DATA_VALUE + else + sensor_name_uid_map -= sensor_name + sensor_name_data_map -= sensor_name + CRASH("Sensor of unexpected type was found: [atmos_sensor.type]") + + ADD_TO_HISTORY(sensor_pressure_history, current_pressure) + ADD_TO_HISTORY(sensor_temperature_history, current_temperature) + + if(log_long_record) + ADD_TO_HISTORY(sensor_long_pressure_history, current_pressure) + ADD_TO_HISTORY(sensor_long_temperature_history, current_temperature) + +/obj/machinery/computer/general_air_control/pt_monitor/process() + if(!is_operational() || length(sensor_name_uid_map) < 1) + return + + refresh_all() + +#undef SENSOR_PRESSURE +#undef SENSOR_TEMPERATURE +#undef NO_DATA_VALUE +#undef MAX_RECORD_SIZE +#undef RECORD_INTERVAL +#undef LONG_RECORD_INTERVAL +#undef LAZYINITLISTSIZED +#undef ADD_TO_HISTORY diff --git a/modular_ss220/pt_monitor/icons/pt_monitor.dmi b/modular_ss220/pt_monitor/icons/pt_monitor.dmi new file mode 100644 index 000000000000..fd639c2750ee Binary files /dev/null and b/modular_ss220/pt_monitor/icons/pt_monitor.dmi differ diff --git a/tgui/packages/tgui/interfaces/AtmosGraphMonitor.tsx b/tgui/packages/tgui/interfaces/AtmosGraphMonitor.tsx new file mode 100644 index 000000000000..f47025adc8c5 --- /dev/null +++ b/tgui/packages/tgui/interfaces/AtmosGraphMonitor.tsx @@ -0,0 +1,404 @@ +import { useBackend, useLocalState } from '../backend'; +import { Section, Box, Tabs, Icon } from '../components'; +import { Window } from '../layouts'; +import { toFixed } from '../../common/math'; +import { map, zipWith } from 'common/collections'; +import { Component, createRef } from 'inferno'; +import { pureComponentHooks } from 'common/react'; + +type SensorsData = { + [key: string]: { + pressure_history: number[]; + temperature_history: number[]; + long_pressure_history: number[]; + long_temperature_history: number[]; + }; +}; + +export const AtmosGraphMonitor = (props, context) => { + const { data } = useBackend(context); + const [tabIndex, setTabIndex] = useLocalState(context, 'tabIndex', 0); + const decideTab = (index) => { + switch (index) { + case 0: + return ( + + ); + case 1: + return ( + + ); + + default: + return "WE SHOULDN'T BE HERE!"; + } + }; + const getWindowHeight = (sensorsLenght: number) => { + switch (sensorsLenght) { + case 0: + return 180; + case 1: + return 350; + case 2: + return 590; + case 3: + return 830; + default: + return 870; + } + }; + return ( + + + + + setTabIndex(0)} + > + Текущие + + setTabIndex(1)} + > + История + + + {decideTab(tabIndex)} + {Object.keys(data.sensors).length === 0 && ( + + Подключите gas sensor или meter с помощью multitool + + )} + + + + ); +}; + +const AtmosGraphPage = ({ + data, + info, + pressureListName, + temperatureListName, +}) => { + let sensors_list = data.sensors || {}; + + const getLastReading = (sensor, listName) => + sensors_list[sensor][listName].slice(-1)[0]; + const getMinReading = (sensor, listName) => + Math.min(...sensors_list[sensor][listName]); + const getMaxReading = (sensor, listName) => + Math.max(...sensors_list[sensor][listName]); + const getDataToSensor = (sensor, listName) => + sensors_list[sensor][listName].map((value, index) => [index, value]); + + return ( + +
{info}
+ {Object.keys(sensors_list).map((s) => ( +
+
+ {/* ТЕМПЕРАТУРА */} + {temperatureListName in sensors_list[s] && ( + + + {'Температура: ' + + toFixed(getLastReading(s, temperatureListName), 0) + + 'К (MIN: ' + + toFixed(getMinReading(s, temperatureListName), 0) + + 'К;' + + ' MAX: ' + + toFixed(getMaxReading(s, temperatureListName), 0) + + 'К)'} + +
+ +
+
+ )} + + {/* ДАВЛЕНИЕ */} + {pressureListName in sensors_list[s] && ( + + + {'Давление: ' + + toFixed(getLastReading(s, pressureListName), 0) + + 'кПа (MIN: ' + + toFixed(getMinReading(s, pressureListName), 0) + + 'кПа;' + + ' MAX: ' + + toFixed(getMaxReading(s, pressureListName), 0) + + 'кПа)'} + +
+ +
+
+ )} +
+
+ ))} +
+ ); +}; + +// Ниже находится код вдохновленный компонентом CHART.JS +// К удалению, если будут приняты изменения в официальном компоненте + +const normalizeData = (data, scale, rangeX, rangeY) => { + if (data.length === 0) { + return []; + } + const min = zipWith(Math.min)(...data); + const max = zipWith(Math.max)(...data); + if (rangeX !== undefined) { + min[0] = rangeX[0]; + max[0] = rangeX[1]; + } + if (rangeY !== undefined) { + min[1] = rangeY[0]; + max[1] = rangeY[1]; + } + const normalizeValue = (value, min, max, scale) => + ((value - min) / (max - min)) * scale; + const normalizePoint = zipWith(normalizeValue); + const normalizeData = map((point) => normalizePoint(point, min, max, scale)); + return normalizeData(data); +}; + +const dataToPolylinePoints = (data) => { + let points = ''; + for (let i = 0; i < data.length; i++) { + const point = data[i]; + points += point[0] + ',' + point[1] + ' '; + } + return points; +}; + +type AtmosChartProps = { + data: number[][]; + rangeX: number[]; + rangeY: number[]; + strokeColor?: string; + strokeWidth?: number; + fillColor?: string; + fillPositionedParent?: boolean; + horizontalLinesCount?: number; + verticalLinesCount?: number; + gridColor?: string; + gridWidth?: number; + pointTextColor?: string; + pointTextSize?: string; + labelViewBoxSize?: number; +}; + +type AtmosChartState = { + viewBox: [number, number]; +}; + +class AtmosChart extends Component { + private ref = createRef(); + static defaultHooks: { + onComponentShouldUpdate: (lastProps: any, nextProps: any) => boolean; + }; + + constructor(props) { + super(props); + this.state = { + viewBox: [400, 800], + }; + } + + handleResize = () => { + const element = this.ref.current; + this.setState({ + viewBox: [element.offsetWidth, element.offsetHeight], + }); + }; + + componentDidMount() { + window.addEventListener('resize', this.handleResize); + this.handleResize(); + } + + componentWillUnmount() { + window.removeEventListener('resize', this.handleResize); + } + render() { + const { + data = [], + rangeX, + rangeY, + fillColor = 'none', + strokeColor = '#ffffff', + strokeWidth = 2, + horizontalLinesCount = 0, + verticalLinesCount = 0, + gridColor = 'rgba(255, 255, 255, 0.1)', + gridWidth = 2, + pointTextColor = 'rgba(255, 255, 255, 0.8)', + pointTextSize = '0.8em', + labelViewBoxSize = 0, + ...rest + } = this.props; + const { viewBox } = this.state; + const normalized = normalizeData(data, viewBox, rangeX, rangeY); + // Push data outside viewBox and form a fillable polygon + if (normalized.length > 0) { + const first = normalized[0]; + const last = normalized[normalized.length - 1]; + normalized.push([viewBox[0] + strokeWidth, last[1]]); + normalized.push([viewBox[0] + strokeWidth, -strokeWidth]); + normalized.push([-strokeWidth, -strokeWidth]); + normalized.push([-strokeWidth, first[1]]); + } + const points = dataToPolylinePoints(normalized); + + return ( + + {(props) => ( +
+ + {/* Горизонтальные линии сетки */} + {Array.from({ length: horizontalLinesCount }).map((_, index) => ( + + ))} + {/* Вертикальные линии сетки */} + {Array.from({ length: verticalLinesCount }).map((_, index) => ( + + ))} + {/* Полилиния (заливка) графика */} + + {/* Линия графика */} + {data.map((point, index) => { + if (index === 0) return null; + return ( + + ); + })} + {/* Точки */} + {data.map((point, index) => ( + + ))} + {/* Значения точек */} + {data.map( + (point, index) => + viewBox[0] > labelViewBoxSize && + index % 2 === 1 && ( + + {point[1] !== null ? point[1].toFixed(0) : 'N/A'} + + ) + )} + +
+ )} +
+ ); + } +} + +AtmosChart.defaultHooks = pureComponentHooks; diff --git a/tgui/public/tgui.bundle.js b/tgui/public/tgui.bundle.js index d9ad7be70ebc..fd77b123150c 100644 --- a/tgui/public/tgui.bundle.js +++ b/tgui/public/tgui.bundle.js @@ -1,26 +1,26 @@ -(function(){(function(){var $t={66641:function(L,r,n){"use strict";r.__esModule=!0,r.createPopper=void 0,r.popperGenerator=f;var e=p(n(8823)),a=p(n(19820)),t=p(n(54826)),o=p(n(43243)),m=p(n(17859)),N=p(n(80798)),y=p(n(46343)),S=p(n(31584));r.detectOverflow=S.default;var k=n(72600);function p(i){return i&&i.__esModule?i:{default:i}}var l={placement:"bottom",modifiers:[],strategy:"absolute"};function c(){for(var i=arguments.length,s=new Array(i),d=0;d0&&(0,a.round)(p.width)/y.offsetWidth||1,c=y.offsetHeight>0&&(0,a.round)(p.height)/y.offsetHeight||1);var f=(0,e.isElement)(y)?(0,t.default)(y):window,u=f.visualViewport,i=!(0,o.default)()&&k,s=(p.left+(i&&u?u.offsetLeft:0))/l,d=(p.top+(i&&u?u.offsetTop:0))/c,h=p.width/l,v=p.height/c;return{width:h,height:v,top:d,right:s+h,bottom:d+v,left:s,x:s,y:d}}},86380:function(L,r,n){"use strict";r.__esModule=!0,r.default=v;var e=n(41521),a=i(n(2868)),t=i(n(39799)),o=i(n(54826)),m=i(n(43243)),N=i(n(33733)),y=i(n(14522)),S=n(72600),k=i(n(32125)),p=i(n(34972)),l=i(n(96343)),c=i(n(13203)),f=i(n(31855)),u=n(69031);function i(g){return g&&g.__esModule?g:{default:g}}function s(g,C){var V=(0,k.default)(g,!1,C==="fixed");return V.top=V.top+g.clientTop,V.left=V.left+g.clientLeft,V.bottom=V.top+g.clientHeight,V.right=V.left+g.clientWidth,V.width=g.clientWidth,V.height=g.clientHeight,V.x=V.left,V.y=V.top,V}function d(g,C,V){return C===e.viewport?(0,f.default)((0,a.default)(g,V)):(0,S.isElement)(C)?s(C,V):(0,f.default)((0,t.default)((0,N.default)(g)))}function h(g){var C=(0,o.default)((0,p.default)(g)),V=["absolute","fixed"].indexOf((0,y.default)(g).position)>=0,b=V&&(0,S.isHTMLElement)(g)?(0,m.default)(g):g;return(0,S.isElement)(b)?C.filter(function(B){return(0,S.isElement)(B)&&(0,l.default)(B,b)&&(0,c.default)(B)!=="body"}):[]}function v(g,C,V,b){var B=C==="clippingParents"?h(g):[].concat(C),I=[].concat(B,[V]),w=I[0],T=I.reduce(function(A,x){var E=d(g,x,b);return A.top=(0,u.max)(E.top,A.top),A.right=(0,u.min)(E.right,A.right),A.bottom=(0,u.min)(E.bottom,A.bottom),A.left=(0,u.max)(E.left,A.left),A},d(g,w,b));return T.width=T.right-T.left,T.height=T.bottom-T.top,T.x=T.left,T.y=T.top,T}},8823:function(L,r,n){"use strict";r.__esModule=!0,r.default=l;var e=k(n(32125)),a=k(n(45401)),t=k(n(13203)),o=n(72600),m=k(n(85750)),N=k(n(33733)),y=k(n(44011)),S=n(69031);function k(c){return c&&c.__esModule?c:{default:c}}function p(c){var f=c.getBoundingClientRect(),u=(0,S.round)(f.width)/c.offsetWidth||1,i=(0,S.round)(f.height)/c.offsetHeight||1;return u!==1||i!==1}function l(c,f,u){u===void 0&&(u=!1);var i=(0,o.isHTMLElement)(f),s=(0,o.isHTMLElement)(f)&&p(f),d=(0,N.default)(f),h=(0,e.default)(c,s,u),v={scrollLeft:0,scrollTop:0},g={x:0,y:0};return(i||!i&&!u)&&(((0,t.default)(f)!=="body"||(0,y.default)(d))&&(v=(0,a.default)(f)),(0,o.isHTMLElement)(f)?(g=(0,e.default)(f,!0),g.x+=f.clientLeft,g.y+=f.clientTop):d&&(g.x=(0,m.default)(d))),{x:h.left+v.scrollLeft-g.x,y:h.top+v.scrollTop-g.y,width:h.width,height:h.height}}},14522:function(L,r,n){"use strict";r.__esModule=!0,r.default=t;var e=a(n(81020));function a(o){return o&&o.__esModule?o:{default:o}}function t(o){return(0,e.default)(o).getComputedStyle(o)}},33733:function(L,r,n){"use strict";r.__esModule=!0,r.default=a;var e=n(72600);function a(t){return(((0,e.isElement)(t)?t.ownerDocument:t.document)||window.document).documentElement}},39799:function(L,r,n){"use strict";r.__esModule=!0,r.default=y;var e=N(n(33733)),a=N(n(14522)),t=N(n(85750)),o=N(n(79569)),m=n(69031);function N(S){return S&&S.__esModule?S:{default:S}}function y(S){var k,p=(0,e.default)(S),l=(0,o.default)(S),c=(k=S.ownerDocument)==null?void 0:k.body,f=(0,m.max)(p.scrollWidth,p.clientWidth,c?c.scrollWidth:0,c?c.clientWidth:0),u=(0,m.max)(p.scrollHeight,p.clientHeight,c?c.scrollHeight:0,c?c.clientHeight:0),i=-l.scrollLeft+(0,t.default)(S),s=-l.scrollTop;return(0,a.default)(c||p).direction==="rtl"&&(i+=(0,m.max)(p.clientWidth,c?c.clientWidth:0)-f),{width:f,height:u,x:i,y:s}}},75680:function(L,r){"use strict";r.__esModule=!0,r.default=n;function n(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}},19820:function(L,r,n){"use strict";r.__esModule=!0,r.default=t;var e=a(n(32125));function a(o){return o&&o.__esModule?o:{default:o}}function t(o){var m=(0,e.default)(o),N=o.offsetWidth,y=o.offsetHeight;return Math.abs(m.width-N)<=1&&(N=m.width),Math.abs(m.height-y)<=1&&(y=m.height),{x:o.offsetLeft,y:o.offsetTop,width:N,height:y}}},13203:function(L,r){"use strict";r.__esModule=!0,r.default=n;function n(e){return e?(e.nodeName||"").toLowerCase():null}},45401:function(L,r,n){"use strict";r.__esModule=!0,r.default=N;var e=m(n(79569)),a=m(n(81020)),t=n(72600),o=m(n(75680));function m(y){return y&&y.__esModule?y:{default:y}}function N(y){return y===(0,a.default)(y)||!(0,t.isHTMLElement)(y)?(0,e.default)(y):(0,o.default)(y)}},43243:function(L,r,n){"use strict";r.__esModule=!0,r.default=l;var e=S(n(81020)),a=S(n(13203)),t=S(n(14522)),o=n(72600),m=S(n(25658)),N=S(n(34972)),y=S(n(97353));function S(c){return c&&c.__esModule?c:{default:c}}function k(c){return!(0,o.isHTMLElement)(c)||(0,t.default)(c).position==="fixed"?null:c.offsetParent}function p(c){var f=/firefox/i.test((0,y.default)()),u=/Trident/i.test((0,y.default)());if(u&&(0,o.isHTMLElement)(c)){var i=(0,t.default)(c);if(i.position==="fixed")return null}var s=(0,N.default)(c);for((0,o.isShadowRoot)(s)&&(s=s.host);(0,o.isHTMLElement)(s)&&["html","body"].indexOf((0,a.default)(s))<0;){var d=(0,t.default)(s);if(d.transform!=="none"||d.perspective!=="none"||d.contain==="paint"||["transform","perspective"].indexOf(d.willChange)!==-1||f&&d.willChange==="filter"||f&&d.filter&&d.filter!=="none")return s;s=s.parentNode}return null}function l(c){for(var f=(0,e.default)(c),u=k(c);u&&(0,m.default)(u)&&(0,t.default)(u).position==="static";)u=k(u);return u&&((0,a.default)(u)==="html"||(0,a.default)(u)==="body"&&(0,t.default)(u).position==="static")?f:u||p(c)||f}},34972:function(L,r,n){"use strict";r.__esModule=!0,r.default=m;var e=o(n(13203)),a=o(n(33733)),t=n(72600);function o(N){return N&&N.__esModule?N:{default:N}}function m(N){return(0,e.default)(N)==="html"?N:N.assignedSlot||N.parentNode||((0,t.isShadowRoot)(N)?N.host:null)||(0,a.default)(N)}},65329:function(L,r,n){"use strict";r.__esModule=!0,r.default=N;var e=m(n(34972)),a=m(n(44011)),t=m(n(13203)),o=n(72600);function m(y){return y&&y.__esModule?y:{default:y}}function N(y){return["html","body","#document"].indexOf((0,t.default)(y))>=0?y.ownerDocument.body:(0,o.isHTMLElement)(y)&&(0,a.default)(y)?y:N((0,e.default)(y))}},2868:function(L,r,n){"use strict";r.__esModule=!0,r.default=N;var e=m(n(81020)),a=m(n(33733)),t=m(n(85750)),o=m(n(14894));function m(y){return y&&y.__esModule?y:{default:y}}function N(y,S){var k=(0,e.default)(y),p=(0,a.default)(y),l=k.visualViewport,c=p.clientWidth,f=p.clientHeight,u=0,i=0;if(l){c=l.width,f=l.height;var s=(0,o.default)();(s||!s&&S==="fixed")&&(u=l.offsetLeft,i=l.offsetTop)}return{width:c,height:f,x:u+(0,t.default)(y),y:i}}},81020:function(L,r){"use strict";r.__esModule=!0,r.default=n;function n(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var a=e.ownerDocument;return a&&a.defaultView||window}return e}},79569:function(L,r,n){"use strict";r.__esModule=!0,r.default=t;var e=a(n(81020));function a(o){return o&&o.__esModule?o:{default:o}}function t(o){var m=(0,e.default)(o),N=m.pageXOffset,y=m.pageYOffset;return{scrollLeft:N,scrollTop:y}}},85750:function(L,r,n){"use strict";r.__esModule=!0,r.default=m;var e=o(n(32125)),a=o(n(33733)),t=o(n(79569));function o(N){return N&&N.__esModule?N:{default:N}}function m(N){return(0,e.default)((0,a.default)(N)).left+(0,t.default)(N).scrollLeft}},72600:function(L,r,n){"use strict";r.__esModule=!0,r.isElement=t,r.isHTMLElement=o,r.isShadowRoot=m;var e=a(n(81020));function a(N){return N&&N.__esModule?N:{default:N}}function t(N){var y=(0,e.default)(N).Element;return N instanceof y||N instanceof Element}function o(N){var y=(0,e.default)(N).HTMLElement;return N instanceof y||N instanceof HTMLElement}function m(N){if(typeof ShadowRoot=="undefined")return!1;var y=(0,e.default)(N).ShadowRoot;return N instanceof y||N instanceof ShadowRoot}},14894:function(L,r,n){"use strict";r.__esModule=!0,r.default=t;var e=a(n(97353));function a(o){return o&&o.__esModule?o:{default:o}}function t(){return!/^((?!chrome|android).)*safari/i.test((0,e.default)())}},44011:function(L,r,n){"use strict";r.__esModule=!0,r.default=t;var e=a(n(14522));function a(o){return o&&o.__esModule?o:{default:o}}function t(o){var m=(0,e.default)(o),N=m.overflow,y=m.overflowX,S=m.overflowY;return/auto|scroll|overlay|hidden/.test(N+S+y)}},25658:function(L,r,n){"use strict";r.__esModule=!0,r.default=t;var e=a(n(13203));function a(o){return o&&o.__esModule?o:{default:o}}function t(o){return["table","td","th"].indexOf((0,e.default)(o))>=0}},54826:function(L,r,n){"use strict";r.__esModule=!0,r.default=N;var e=m(n(65329)),a=m(n(34972)),t=m(n(81020)),o=m(n(44011));function m(y){return y&&y.__esModule?y:{default:y}}function N(y,S){var k;S===void 0&&(S=[]);var p=(0,e.default)(y),l=p===((k=y.ownerDocument)==null?void 0:k.body),c=(0,t.default)(p),f=l?[c].concat(c.visualViewport||[],(0,o.default)(p)?p:[]):p,u=S.concat(f);return l?u:u.concat(N((0,a.default)(f)))}},41521:function(L,r){"use strict";r.__esModule=!0,r.write=r.viewport=r.variationPlacements=r.top=r.start=r.right=r.reference=r.read=r.popper=r.placements=r.modifierPhases=r.main=r.left=r.end=r.clippingParents=r.bottom=r.beforeWrite=r.beforeRead=r.beforeMain=r.basePlacements=r.auto=r.afterWrite=r.afterRead=r.afterMain=void 0;var n=r.top="top",e=r.bottom="bottom",a=r.right="right",t=r.left="left",o=r.auto="auto",m=r.basePlacements=[n,e,a,t],N=r.start="start",y=r.end="end",S=r.clippingParents="clippingParents",k=r.viewport="viewport",p=r.popper="popper",l=r.reference="reference",c=r.variationPlacements=m.reduce(function(B,I){return B.concat([I+"-"+N,I+"-"+y])},[]),f=r.placements=[].concat(m,[o]).reduce(function(B,I){return B.concat([I,I+"-"+N,I+"-"+y])},[]),u=r.beforeRead="beforeRead",i=r.read="read",s=r.afterRead="afterRead",d=r.beforeMain="beforeMain",h=r.main="main",v=r.afterMain="afterMain",g=r.beforeWrite="beforeWrite",C=r.write="write",V=r.afterWrite="afterWrite",b=r.modifierPhases=[u,i,s,d,h,v,g,C,V]},60023:function(L,r,n){"use strict";r.__esModule=!0;var e={popperGenerator:!0,detectOverflow:!0,createPopperBase:!0,createPopper:!0,createPopperLite:!0};r.popperGenerator=r.detectOverflow=r.createPopperLite=r.createPopperBase=r.createPopper=void 0;var a=n(41521);Object.keys(a).forEach(function(y){y==="default"||y==="__esModule"||Object.prototype.hasOwnProperty.call(e,y)||y in r&&r[y]===a[y]||(r[y]=a[y])});var t=n(91078);Object.keys(t).forEach(function(y){y==="default"||y==="__esModule"||Object.prototype.hasOwnProperty.call(e,y)||y in r&&r[y]===t[y]||(r[y]=t[y])});var o=n(66641);r.popperGenerator=o.popperGenerator,r.detectOverflow=o.detectOverflow,r.createPopperBase=o.createPopper;var m=n(7925);r.createPopper=m.createPopper;var N=n(62642);r.createPopperLite=N.createPopper},56304:function(L,r,n){"use strict";r.__esModule=!0,r.default=void 0;var e=t(n(13203)),a=n(72600);function t(y){return y&&y.__esModule?y:{default:y}}function o(y){var S=y.state;Object.keys(S.elements).forEach(function(k){var p=S.styles[k]||{},l=S.attributes[k]||{},c=S.elements[k];!(0,a.isHTMLElement)(c)||!(0,e.default)(c)||(Object.assign(c.style,p),Object.keys(l).forEach(function(f){var u=l[f];u===!1?c.removeAttribute(f):c.setAttribute(f,u===!0?"":u)}))})}function m(y){var S=y.state,k={popper:{position:S.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(S.elements.popper.style,k.popper),S.styles=k,S.elements.arrow&&Object.assign(S.elements.arrow.style,k.arrow),function(){Object.keys(S.elements).forEach(function(p){var l=S.elements[p],c=S.attributes[p]||{},f=Object.keys(S.styles.hasOwnProperty(p)?S.styles[p]:k[p]),u=f.reduce(function(i,s){return i[s]="",i},{});!(0,a.isHTMLElement)(l)||!(0,e.default)(l)||(Object.assign(l.style,u),Object.keys(c).forEach(function(i){l.removeAttribute(i)}))})}}var N=r.default={name:"applyStyles",enabled:!0,phase:"write",fn:o,effect:m,requires:["computeStyles"]}},57243:function(L,r,n){"use strict";r.__esModule=!0,r.default=void 0;var e=p(n(38141)),a=p(n(19820)),t=p(n(96343)),o=p(n(43243)),m=p(n(7770)),N=n(76770),y=p(n(77631)),S=p(n(54824)),k=n(41521);function p(i){return i&&i.__esModule?i:{default:i}}var l=function(){function i(s,d){return s=typeof s=="function"?s(Object.assign({},d.rects,{placement:d.placement})):s,(0,y.default)(typeof s!="number"?s:(0,S.default)(s,k.basePlacements))}return i}();function c(i){var s,d=i.state,h=i.name,v=i.options,g=d.elements.arrow,C=d.modifiersData.popperOffsets,V=(0,e.default)(d.placement),b=(0,m.default)(V),B=[k.left,k.right].indexOf(V)>=0,I=B?"height":"width";if(!(!g||!C)){var w=l(v.padding,d),T=(0,a.default)(g),A=b==="y"?k.top:k.left,x=b==="y"?k.bottom:k.right,E=d.rects.reference[I]+d.rects.reference[b]-C[b]-d.rects.popper[I],M=C[b]-d.rects.reference[b],j=(0,o.default)(g),P=j?b==="y"?j.clientHeight||0:j.clientWidth||0:0,R=E/2-M/2,D=w[A],F=P-T[I]-w[x],W=P/2-T[I]/2+R,_=(0,N.within)(D,W,F),H=b;d.modifiersData[h]=(s={},s[H]=_,s.centerOffset=_-W,s)}}function f(i){var s=i.state,d=i.options,h=d.element,v=h===void 0?"[data-popper-arrow]":h;v!=null&&(typeof v=="string"&&(v=s.elements.popper.querySelector(v),!v)||(0,t.default)(s.elements.popper,v)&&(s.elements.arrow=v))}var u=r.default={name:"arrow",enabled:!0,phase:"main",fn:c,effect:f,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]}},60421:function(L,r,n){"use strict";r.__esModule=!0,r.default=void 0,r.mapToStyles=c;var e=n(41521),a=k(n(43243)),t=k(n(81020)),o=k(n(33733)),m=k(n(14522)),N=k(n(38141)),y=k(n(14380)),S=n(69031);function k(i){return i&&i.__esModule?i:{default:i}}var p={top:"auto",right:"auto",bottom:"auto",left:"auto"};function l(i,s){var d=i.x,h=i.y,v=s.devicePixelRatio||1;return{x:(0,S.round)(d*v)/v||0,y:(0,S.round)(h*v)/v||0}}function c(i){var s,d=i.popper,h=i.popperRect,v=i.placement,g=i.variation,C=i.offsets,V=i.position,b=i.gpuAcceleration,B=i.adaptive,I=i.roundOffsets,w=i.isFixed,T=C.x,A=T===void 0?0:T,x=C.y,E=x===void 0?0:x,M=typeof I=="function"?I({x:A,y:E}):{x:A,y:E};A=M.x,E=M.y;var j=C.hasOwnProperty("x"),P=C.hasOwnProperty("y"),R=e.left,D=e.top,F=window;if(B){var W=(0,a.default)(d),_="clientHeight",H="clientWidth";if(W===(0,t.default)(d)&&(W=(0,o.default)(d),(0,m.default)(W).position!=="static"&&V==="absolute"&&(_="scrollHeight",H="scrollWidth")),W=W,v===e.top||(v===e.left||v===e.right)&&g===e.end){D=e.bottom;var z=w&&W===F&&F.visualViewport?F.visualViewport.height:W[_];E-=z-h.height,E*=b?1:-1}if(v===e.left||(v===e.top||v===e.bottom)&&g===e.end){R=e.right;var $=w&&W===F&&F.visualViewport?F.visualViewport.width:W[H];A-=$-h.width,A*=b?1:-1}}var X=Object.assign({position:V},B&&p),J=I===!0?l({x:A,y:E},(0,t.default)(d)):{x:A,y:E};if(A=J.x,E=J.y,b){var ce;return Object.assign({},X,(ce={},ce[D]=P?"0":"",ce[R]=j?"0":"",ce.transform=(F.devicePixelRatio||1)<=1?"translate("+A+"px, "+E+"px)":"translate3d("+A+"px, "+E+"px, 0)",ce))}return Object.assign({},X,(s={},s[D]=P?E+"px":"",s[R]=j?A+"px":"",s.transform="",s))}function f(i){var s=i.state,d=i.options,h=d.gpuAcceleration,v=h===void 0?!0:h,g=d.adaptive,C=g===void 0?!0:g,V=d.roundOffsets,b=V===void 0?!0:V,B={placement:(0,N.default)(s.placement),variation:(0,y.default)(s.placement),popper:s.elements.popper,popperRect:s.rects.popper,gpuAcceleration:v,isFixed:s.options.strategy==="fixed"};s.modifiersData.popperOffsets!=null&&(s.styles.popper=Object.assign({},s.styles.popper,c(Object.assign({},B,{offsets:s.modifiersData.popperOffsets,position:s.options.strategy,adaptive:C,roundOffsets:b})))),s.modifiersData.arrow!=null&&(s.styles.arrow=Object.assign({},s.styles.arrow,c(Object.assign({},B,{offsets:s.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:b})))),s.attributes.popper=Object.assign({},s.attributes.popper,{"data-popper-placement":s.placement})}var u=r.default={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:f,data:{}}},84601:function(L,r,n){"use strict";r.__esModule=!0,r.default=void 0;var e=a(n(81020));function a(N){return N&&N.__esModule?N:{default:N}}var t={passive:!0};function o(N){var y=N.state,S=N.instance,k=N.options,p=k.scroll,l=p===void 0?!0:p,c=k.resize,f=c===void 0?!0:c,u=(0,e.default)(y.elements.popper),i=[].concat(y.scrollParents.reference,y.scrollParents.popper);return l&&i.forEach(function(s){s.addEventListener("scroll",S.update,t)}),f&&u.addEventListener("resize",S.update,t),function(){l&&i.forEach(function(s){s.removeEventListener("scroll",S.update,t)}),f&&u.removeEventListener("resize",S.update,t)}}var m=r.default={name:"eventListeners",enabled:!0,phase:"write",fn:function(){function N(){}return N}(),effect:o,data:{}}},17267:function(L,r,n){"use strict";r.__esModule=!0,r.default=void 0;var e=S(n(79641)),a=S(n(38141)),t=S(n(71976)),o=S(n(31584)),m=S(n(44744)),N=n(41521),y=S(n(14380));function S(c){return c&&c.__esModule?c:{default:c}}function k(c){if((0,a.default)(c)===N.auto)return[];var f=(0,e.default)(c);return[(0,t.default)(c),f,(0,t.default)(f)]}function p(c){var f=c.state,u=c.options,i=c.name;if(!f.modifiersData[i]._skip){for(var s=u.mainAxis,d=s===void 0?!0:s,h=u.altAxis,v=h===void 0?!0:h,g=u.fallbackPlacements,C=u.padding,V=u.boundary,b=u.rootBoundary,B=u.altBoundary,I=u.flipVariations,w=I===void 0?!0:I,T=u.allowedAutoPlacements,A=f.options.placement,x=(0,a.default)(A),E=x===A,M=g||(E||!w?[(0,e.default)(A)]:k(A)),j=[A].concat(M).reduce(function(Z,q){return Z.concat((0,a.default)(q)===N.auto?(0,m.default)(f,{placement:q,boundary:V,rootBoundary:b,padding:C,flipVariations:w,allowedAutoPlacements:T}):q)},[]),P=f.rects.reference,R=f.rects.popper,D=new Map,F=!0,W=j[0],_=0;_=0,J=X?"width":"height",ce=(0,o.default)(f,{placement:H,boundary:V,rootBoundary:b,altBoundary:B,padding:C}),re=X?$?N.right:N.left:$?N.bottom:N.top;P[J]>R[J]&&(re=(0,e.default)(re));var me=(0,e.default)(re),pe=[];if(d&&pe.push(ce[z]<=0),v&&pe.push(ce[re]<=0,ce[me]<=0),pe.every(function(Z){return Z})){W=H,F=!1;break}D.set(H,pe)}if(F)for(var ye=w?3:1,Be=function(){function Z(q){var ue=j.find(function(se){var ne=D.get(se);if(ne)return ne.slice(0,q).every(function(be){return be})});if(ue)return W=ue,"break"}return Z}(),he=ye;he>0;he--){var oe=Be(he);if(oe==="break")break}f.placement!==W&&(f.modifiersData[i]._skip=!0,f.placement=W,f.reset=!0)}}var l=r.default={name:"flip",enabled:!0,phase:"main",fn:p,requiresIfExists:["offset"],data:{_skip:!1}}},88476:function(L,r,n){"use strict";r.__esModule=!0,r.default=void 0;var e=n(41521),a=t(n(31584));function t(S){return S&&S.__esModule?S:{default:S}}function o(S,k,p){return p===void 0&&(p={x:0,y:0}),{top:S.top-k.height-p.y,right:S.right-k.width+p.x,bottom:S.bottom-k.height+p.y,left:S.left-k.width-p.x}}function m(S){return[e.top,e.right,e.bottom,e.left].some(function(k){return S[k]>=0})}function N(S){var k=S.state,p=S.name,l=k.rects.reference,c=k.rects.popper,f=k.modifiersData.preventOverflow,u=(0,a.default)(k,{elementContext:"reference"}),i=(0,a.default)(k,{altBoundary:!0}),s=o(u,l),d=o(i,c,f),h=m(s),v=m(d);k.modifiersData[p]={referenceClippingOffsets:s,popperEscapeOffsets:d,isReferenceHidden:h,hasPopperEscaped:v},k.attributes.popper=Object.assign({},k.attributes.popper,{"data-popper-reference-hidden":h,"data-popper-escaped":v})}var y=r.default={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:N}},91078:function(L,r,n){"use strict";r.__esModule=!0,r.preventOverflow=r.popperOffsets=r.offset=r.hide=r.flip=r.eventListeners=r.computeStyles=r.arrow=r.applyStyles=void 0;var e=p(n(56304));r.applyStyles=e.default;var a=p(n(57243));r.arrow=a.default;var t=p(n(60421));r.computeStyles=t.default;var o=p(n(84601));r.eventListeners=o.default;var m=p(n(17267));r.flip=m.default;var N=p(n(88476));r.hide=N.default;var y=p(n(36707));r.offset=y.default;var S=p(n(98916));r.popperOffsets=S.default;var k=p(n(44454));r.preventOverflow=k.default;function p(l){return l&&l.__esModule?l:{default:l}}},36707:function(L,r,n){"use strict";r.__esModule=!0,r.default=void 0,r.distanceAndSkiddingToXY=o;var e=t(n(38141)),a=n(41521);function t(y){return y&&y.__esModule?y:{default:y}}function o(y,S,k){var p=(0,e.default)(y),l=[a.left,a.top].indexOf(p)>=0?-1:1,c=typeof k=="function"?k(Object.assign({},S,{placement:y})):k,f=c[0],u=c[1];return f=f||0,u=(u||0)*l,[a.left,a.right].indexOf(p)>=0?{x:u,y:f}:{x:f,y:u}}function m(y){var S=y.state,k=y.options,p=y.name,l=k.offset,c=l===void 0?[0,0]:l,f=a.placements.reduce(function(d,h){return d[h]=o(h,S.rects,c),d},{}),u=f[S.placement],i=u.x,s=u.y;S.modifiersData.popperOffsets!=null&&(S.modifiersData.popperOffsets.x+=i,S.modifiersData.popperOffsets.y+=s),S.modifiersData[p]=f}var N=r.default={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:m}},98916:function(L,r,n){"use strict";r.__esModule=!0,r.default=void 0;var e=a(n(47566));function a(m){return m&&m.__esModule?m:{default:m}}function t(m){var N=m.state,y=m.name;N.modifiersData[y]=(0,e.default)({reference:N.rects.reference,element:N.rects.popper,strategy:"absolute",placement:N.placement})}var o=r.default={name:"popperOffsets",enabled:!0,phase:"read",fn:t,data:{}}},44454:function(L,r,n){"use strict";r.__esModule=!0,r.default=void 0;var e=n(41521),a=c(n(38141)),t=c(n(7770)),o=c(n(39571)),m=n(76770),N=c(n(19820)),y=c(n(43243)),S=c(n(31584)),k=c(n(14380)),p=c(n(92385)),l=n(69031);function c(i){return i&&i.__esModule?i:{default:i}}function f(i){var s=i.state,d=i.options,h=i.name,v=d.mainAxis,g=v===void 0?!0:v,C=d.altAxis,V=C===void 0?!1:C,b=d.boundary,B=d.rootBoundary,I=d.altBoundary,w=d.padding,T=d.tether,A=T===void 0?!0:T,x=d.tetherOffset,E=x===void 0?0:x,M=(0,S.default)(s,{boundary:b,rootBoundary:B,padding:w,altBoundary:I}),j=(0,a.default)(s.placement),P=(0,k.default)(s.placement),R=!P,D=(0,t.default)(j),F=(0,o.default)(D),W=s.modifiersData.popperOffsets,_=s.rects.reference,H=s.rects.popper,z=typeof E=="function"?E(Object.assign({},s.rects,{placement:s.placement})):E,$=typeof z=="number"?{mainAxis:z,altAxis:z}:Object.assign({mainAxis:0,altAxis:0},z),X=s.modifiersData.offset?s.modifiersData.offset[s.placement]:null,J={x:0,y:0};if(W){if(g){var ce,re=D==="y"?e.top:e.left,me=D==="y"?e.bottom:e.right,pe=D==="y"?"height":"width",ye=W[D],Be=ye+M[re],he=ye-M[me],oe=A?-H[pe]/2:0,Z=P===e.start?_[pe]:H[pe],q=P===e.start?-H[pe]:-_[pe],ue=s.elements.arrow,se=A&&ue?(0,N.default)(ue):{width:0,height:0},ne=s.modifiersData["arrow#persistent"]?s.modifiersData["arrow#persistent"].padding:(0,p.default)(),be=ne[re],fe=ne[me],ge=(0,m.within)(0,_[pe],se[pe]),ke=R?_[pe]/2-oe-ge-be-$.mainAxis:Z-ge-be-$.mainAxis,ve=R?-_[pe]/2+oe+ge+fe+$.mainAxis:q+ge+fe+$.mainAxis,Se=s.elements.arrow&&(0,y.default)(s.elements.arrow),we=Se?D==="y"?Se.clientTop||0:Se.clientLeft||0:0,xe=(ce=X==null?void 0:X[D])!=null?ce:0,Oe=ye+ke-xe-we,We=ye+ve-xe,Ve=(0,m.within)(A?(0,l.min)(Be,Oe):Be,ye,A?(0,l.max)(he,We):he);W[D]=Ve,J[D]=Ve-ye}if(V){var ae,le=D==="x"?e.top:e.left,Ce=D==="x"?e.bottom:e.right,de=W[F],Ne=F==="y"?"height":"width",Ae=de+M[le],De=de-M[Ce],je=[e.top,e.left].indexOf(j)!==-1,_e=(ae=X==null?void 0:X[F])!=null?ae:0,Ue=je?Ae:de-_[Ne]-H[Ne]-_e+$.altAxis,Ke=je?de+_[Ne]+H[Ne]-_e-$.altAxis:De,Ge=A&&je?(0,m.withinMaxClamp)(Ue,de,Ke):(0,m.within)(A?Ue:Ae,de,A?Ke:De);W[F]=Ge,J[F]=Ge-de}s.modifiersData[h]=J}}var u=r.default={name:"preventOverflow",enabled:!0,phase:"main",fn:f,requiresIfExists:["offset"]}},62642:function(L,r,n){"use strict";r.__esModule=!0,r.defaultModifiers=r.createPopper=void 0;var e=n(66641);r.popperGenerator=e.popperGenerator,r.detectOverflow=e.detectOverflow;var a=N(n(84601)),t=N(n(98916)),o=N(n(60421)),m=N(n(56304));function N(k){return k&&k.__esModule?k:{default:k}}var y=r.defaultModifiers=[a.default,t.default,o.default,m.default],S=r.createPopper=(0,e.popperGenerator)({defaultModifiers:y})},7925:function(L,r,n){"use strict";r.__esModule=!0;var e={createPopper:!0,createPopperLite:!0,defaultModifiers:!0,popperGenerator:!0,detectOverflow:!0};r.defaultModifiers=r.createPopperLite=r.createPopper=void 0;var a=n(66641);r.popperGenerator=a.popperGenerator,r.detectOverflow=a.detectOverflow;var t=u(n(84601)),o=u(n(98916)),m=u(n(60421)),N=u(n(56304)),y=u(n(36707)),S=u(n(17267)),k=u(n(44454)),p=u(n(57243)),l=u(n(88476)),c=n(62642);r.createPopperLite=c.createPopper;var f=n(91078);Object.keys(f).forEach(function(d){d==="default"||d==="__esModule"||Object.prototype.hasOwnProperty.call(e,d)||d in r&&r[d]===f[d]||(r[d]=f[d])});function u(d){return d&&d.__esModule?d:{default:d}}var i=r.defaultModifiers=[t.default,o.default,m.default,N.default,y.default,S.default,k.default,p.default,l.default],s=r.createPopperLite=r.createPopper=(0,a.popperGenerator)({defaultModifiers:i})},44744:function(L,r,n){"use strict";r.__esModule=!0,r.default=N;var e=m(n(14380)),a=n(41521),t=m(n(31584)),o=m(n(38141));function m(y){return y&&y.__esModule?y:{default:y}}function N(y,S){S===void 0&&(S={});var k=S,p=k.placement,l=k.boundary,c=k.rootBoundary,f=k.padding,u=k.flipVariations,i=k.allowedAutoPlacements,s=i===void 0?a.placements:i,d=(0,e.default)(p),h=d?u?a.variationPlacements:a.variationPlacements.filter(function(C){return(0,e.default)(C)===d}):a.basePlacements,v=h.filter(function(C){return s.indexOf(C)>=0});v.length===0&&(v=h);var g=v.reduce(function(C,V){return C[V]=(0,t.default)(y,{placement:V,boundary:l,rootBoundary:c,padding:f})[(0,o.default)(V)],C},{});return Object.keys(g).sort(function(C,V){return g[C]-g[V]})}},47566:function(L,r,n){"use strict";r.__esModule=!0,r.default=N;var e=m(n(38141)),a=m(n(14380)),t=m(n(7770)),o=n(41521);function m(y){return y&&y.__esModule?y:{default:y}}function N(y){var S=y.reference,k=y.element,p=y.placement,l=p?(0,e.default)(p):null,c=p?(0,a.default)(p):null,f=S.x+S.width/2-k.width/2,u=S.y+S.height/2-k.height/2,i;switch(l){case o.top:i={x:f,y:S.y-k.height};break;case o.bottom:i={x:f,y:S.y+S.height};break;case o.right:i={x:S.x+S.width,y:u};break;case o.left:i={x:S.x-k.width,y:u};break;default:i={x:S.x,y:S.y}}var s=l?(0,t.default)(l):null;if(s!=null){var d=s==="y"?"height":"width";switch(c){case o.start:i[s]=i[s]-(S[d]/2-k[d]/2);break;case o.end:i[s]=i[s]+(S[d]/2-k[d]/2);break;default:}}return i}},80798:function(L,r){"use strict";r.__esModule=!0,r.default=n;function n(e){var a;return function(){return a||(a=new Promise(function(t){Promise.resolve().then(function(){a=void 0,t(e())})})),a}}},31584:function(L,r,n){"use strict";r.__esModule=!0,r.default=l;var e=p(n(86380)),a=p(n(33733)),t=p(n(32125)),o=p(n(47566)),m=p(n(31855)),N=n(41521),y=n(72600),S=p(n(77631)),k=p(n(54824));function p(c){return c&&c.__esModule?c:{default:c}}function l(c,f){f===void 0&&(f={});var u=f,i=u.placement,s=i===void 0?c.placement:i,d=u.strategy,h=d===void 0?c.strategy:d,v=u.boundary,g=v===void 0?N.clippingParents:v,C=u.rootBoundary,V=C===void 0?N.viewport:C,b=u.elementContext,B=b===void 0?N.popper:b,I=u.altBoundary,w=I===void 0?!1:I,T=u.padding,A=T===void 0?0:T,x=(0,S.default)(typeof A!="number"?A:(0,k.default)(A,N.basePlacements)),E=B===N.popper?N.reference:N.popper,M=c.rects.popper,j=c.elements[w?E:B],P=(0,e.default)((0,y.isElement)(j)?j:j.contextElement||(0,a.default)(c.elements.popper),g,V,h),R=(0,t.default)(c.elements.reference),D=(0,o.default)({reference:R,element:M,strategy:"absolute",placement:s}),F=(0,m.default)(Object.assign({},M,D)),W=B===N.popper?F:R,_={top:P.top-W.top+x.top,bottom:W.bottom-P.bottom+x.bottom,left:P.left-W.left+x.left,right:W.right-P.right+x.right},H=c.modifiersData.offset;if(B===N.popper&&H){var z=H[s];Object.keys(_).forEach(function($){var X=[N.right,N.bottom].indexOf($)>=0?1:-1,J=[N.top,N.bottom].indexOf($)>=0?"y":"x";_[$]+=z[J]*X})}return _}},54824:function(L,r){"use strict";r.__esModule=!0,r.default=n;function n(e,a){return a.reduce(function(t,o){return t[o]=e,t},{})}},39571:function(L,r){"use strict";r.__esModule=!0,r.default=n;function n(e){return e==="x"?"y":"x"}},38141:function(L,r,n){"use strict";r.__esModule=!0,r.default=a;var e=n(41521);function a(t){return t.split("-")[0]}},92385:function(L,r){"use strict";r.__esModule=!0,r.default=n;function n(){return{top:0,right:0,bottom:0,left:0}}},7770:function(L,r){"use strict";r.__esModule=!0,r.default=n;function n(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}},79641:function(L,r){"use strict";r.__esModule=!0,r.default=e;var n={left:"right",right:"left",bottom:"top",top:"bottom"};function e(a){return a.replace(/left|right|bottom|top/g,function(t){return n[t]})}},71976:function(L,r){"use strict";r.__esModule=!0,r.default=e;var n={start:"end",end:"start"};function e(a){return a.replace(/start|end/g,function(t){return n[t]})}},14380:function(L,r){"use strict";r.__esModule=!0,r.default=n;function n(e){return e.split("-")[1]}},69031:function(L,r){"use strict";r.__esModule=!0,r.round=r.min=r.max=void 0;var n=r.max=Math.max,e=r.min=Math.min,a=r.round=Math.round},46343:function(L,r){"use strict";r.__esModule=!0,r.default=n;function n(e){var a=e.reduce(function(t,o){var m=t[o.name];return t[o.name]=m?Object.assign({},m,o,{options:Object.assign({},m.options,o.options),data:Object.assign({},m.data,o.data)}):o,t},{});return Object.keys(a).map(function(t){return a[t]})}},77631:function(L,r,n){"use strict";r.__esModule=!0,r.default=t;var e=a(n(92385));function a(o){return o&&o.__esModule?o:{default:o}}function t(o){return Object.assign({},(0,e.default)(),o)}},17859:function(L,r,n){"use strict";r.__esModule=!0,r.default=t;var e=n(41521);function a(o){var m=new Map,N=new Set,y=[];o.forEach(function(k){m.set(k.name,k)});function S(k){N.add(k.name);var p=[].concat(k.requires||[],k.requiresIfExists||[]);p.forEach(function(l){if(!N.has(l)){var c=m.get(l);c&&S(c)}}),y.push(k)}return o.forEach(function(k){N.has(k.name)||S(k)}),y}function t(o){var m=a(o);return e.modifierPhases.reduce(function(N,y){return N.concat(m.filter(function(S){return S.phase===y}))},[])}},31855:function(L,r){"use strict";r.__esModule=!0,r.default=n;function n(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}},97353:function(L,r){"use strict";r.__esModule=!0,r.default=n;function n(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(a){return a.brand+"/"+a.version}).join(" "):navigator.userAgent}},76770:function(L,r,n){"use strict";r.__esModule=!0,r.within=a,r.withinMaxClamp=t;var e=n(69031);function a(o,m,N){return(0,e.max)(o,(0,e.min)(m,N))}function t(o,m,N){var y=a(o,m,N);return y>N?N:y}},63935:function(L,r){"use strict";r.__esModule=!0,r.Fragment=r.EMPTY_OBJ=r.Component=void 0,r._CI=Et,r._HI=Be,r._M=He,r._MCCC=Ot,r._ME=Pt,r._MFCC=Rt,r._MP=xt,r._MR=ot,r._RFC=Ct,r.__render=Ft,r.createComponentVNode=_,r.createFragment=z,r.createPortal=re,r.createRef=Yt,r.createRenderer=kn,r.createTextVNode=H,r.createVNode=R,r.directClone=J,r.findDOMfromVNode=V,r.forwardRef=Xt,r.getFlagsForElementVnode=pe,r.linkEvent=p,r.normalizeProps=$,r.options=void 0,r.render=Wt,r.rerender=_t,r.version=void 0;var n=Array.isArray;function e(O){var U=typeof O;return U==="string"||U==="number"}function a(O){return O==null}function t(O){return O===null||O===!1||O===!0||O===void 0}function o(O){return typeof O=="function"}function m(O){return typeof O=="string"}function N(O){return typeof O=="number"}function y(O){return O===null}function S(O){return O===void 0}function k(O,U){var K={};if(O)for(var G in O)K[G]=O[G];if(U)for(var Q in U)K[Q]=U[Q];return K}function p(O,U){return o(U)?{data:O,event:U}:null}function l(O){return!y(O)&&typeof O=="object"}var c=r.EMPTY_OBJ={},f=r.Fragment="$F";function u(O){return O.substr(2).toLowerCase()}function i(O,U){O.appendChild(U)}function s(O,U,K){y(K)?i(O,U):O.insertBefore(U,K)}function d(O,U){return U?document.createElementNS("http://www.w3.org/2000/svg",O):document.createElement(O)}function h(O,U,K){O.replaceChild(U,K)}function v(O,U){O.removeChild(U)}function g(O){for(var U=0;U0,Ie=y(ie),Le=m(ie)&&ie[0]===j;Te||Ie||Le?(K=K||U.slice(0,ee),(Te||Le)&&(te=J(te)),(Ie||Le)&&(te.key=j+ee),K.push(te)):K&&K.push(te),te.flags|=65536}}K=K||U,K.length===0?G=1:G=8}else K=U,K.flags|=65536,U.flags&81920&&(K=J(U)),G=2;return O.children=K,O.childFlags=G,O}function Be(O){return t(O)||e(O)?H(O,null):n(O)?z(O,0,null):O.flags&16384?J(O):O}var he="http://www.w3.org/1999/xlink",oe="http://www.w3.org/XML/1998/namespace",Z={"xlink:actuate":he,"xlink:arcrole":he,"xlink:href":he,"xlink:role":he,"xlink:show":he,"xlink:title":he,"xlink:type":he,"xml:base":oe,"xml:lang":oe,"xml:space":oe};function q(O){return{onClick:O,onDblClick:O,onFocusIn:O,onFocusOut:O,onKeyDown:O,onKeyPress:O,onKeyUp:O,onMouseDown:O,onMouseMove:O,onMouseUp:O,onTouchEnd:O,onTouchMove:O,onTouchStart:O}}var ue=q(0),se=q(null),ne=q(!0);function be(O,U){var K=U.$EV;return K||(K=U.$EV=q(null)),K[O]||++ue[O]===1&&(se[O]=ae(O)),K}function fe(O,U){var K=U.$EV;K&&K[O]&&(--ue[O]===0&&(document.removeEventListener(u(O),se[O]),se[O]=null),K[O]=null)}function ge(O,U,K,G){if(o(K))be(O,G)[O]=K;else if(l(K)){if(x(U,K))return;be(O,G)[O]=K}else fe(O,G)}function ke(O){return o(O.composedPath)?O.composedPath()[0]:O.target}function ve(O,U,K,G){var Q=ke(O);do{if(U&&Q.disabled)return;var ee=Q.$EV;if(ee){var te=ee[K];if(te&&(G.dom=Q,te.event?te.event(te.data,O):te(O),O.cancelBubble))return}Q=Q.parentNode}while(!y(Q))}function Se(){this.cancelBubble=!0,this.immediatePropagationStopped||this.stopImmediatePropagation()}function we(){return this.defaultPrevented}function xe(){return this.cancelBubble}function Oe(O){var U={dom:document};return O.isDefaultPrevented=we,O.isPropagationStopped=xe,O.stopPropagation=Se,Object.defineProperty(O,"currentTarget",{configurable:!0,get:function(){function K(){return U.dom}return K}()}),U}function We(O){return function(U){if(U.button!==0){U.stopPropagation();return}ve(U,!0,O,Oe(U))}}function Ve(O){return function(U){ve(U,!1,O,Oe(U))}}function ae(O){var U=O==="onClick"||O==="onDblClick"?We(O):Ve(O);return document.addEventListener(u(O),U),U}function le(O,U){var K=document.createElement("i");return K.innerHTML=U,K.innerHTML===O.innerHTML}function Ce(O,U,K){if(O[U]){var G=O[U];G.event?G.event(G.data,K):G(K)}else{var Q=U.toLowerCase();O[Q]&&O[Q](K)}}function de(O,U){var K=function(Q){var ee=this.$V;if(ee){var te=ee.props||c,ie=ee.dom;if(m(O))Ce(te,O,Q);else for(var Te=0;Te-1&&U.options[ee]&&(ie=U.options[ee].value),K&&a(ie)&&(ie=O.defaultValue),Ge(G,ie)}}var Bt=de("onInput",pt),It=de("onChange");function Lt(O,U){Ne(O,"input",Bt),U.onChange&&Ne(O,"change",It)}function pt(O,U,K){var G=O.value,Q=U.value;if(a(G)){if(K){var ee=O.defaultValue;!a(ee)&&ee!==Q&&(U.defaultValue=ee,U.value=ee)}}else Q!==G&&(U.defaultValue=G,U.value=G)}function wt(O,U,K,G,Q,ee){O&64?Ke(G,K):O&256?ft(G,K,Q,U):O&128&&pt(G,K,Q),ee&&(K.$V=U)}function Gt(O,U,K){O&64?Ue(U,K):O&256?St(U):O&128&&Lt(U,K)}function Tt(O){return O.type&&Ae(O.type)?!a(O.checked):!a(O.value)}function Yt(){return{current:null}}function Xt(O){return{render:O}}function lt(O){O&&!M(O,null)&&O.current&&(O.current=null)}function ot(O,U,K){O&&(o(O)||O.current!==void 0)&&K.push(function(){!M(O,U)&&O.current!==void 0&&(O.current=U)})}function Xe(O,U){Qe(O),b(O,U)}function Qe(O){var U=O.flags,K=O.children,G;if(U&481){G=O.ref;var Q=O.props;lt(G);var ee=O.childFlags;if(!y(Q))for(var te=Object.keys(Q),ie=0,Te=te.length;ie0;te&&(ee=Tt(K),ee&&Gt(U,G,K));for(var ie in K)ht(ie,null,K[ie],G,Q,ee,null);te&&wt(U,O,G,K,!0,ee)}function At(O,U,K){var G=Be(O.render(U,O.state,K)),Q=K;return o(O.getChildContext)&&(Q=k(K,O.getChildContext())),O.$CX=Q,G}function Et(O,U,K,G,Q,ee){var te=new U(K,G),ie=te.$N=!!(U.getDerivedStateFromProps||te.getSnapshotBeforeUpdate);if(te.$SVG=Q,te.$L=ee,O.children=te,te.$BS=!1,te.context=G,te.props===c&&(te.props=K),ie)te.state=I(te,K,te.state);else if(o(te.componentWillMount)){te.$BR=!0,te.componentWillMount();var Te=te.$PS;if(!y(Te)){var Ie=te.state;if(y(Ie))te.state=Te;else for(var Le in Te)Ie[Le]=Te[Le];te.$PS=null}te.$BR=!1}return te.$LI=At(te,K,G),te}function Ct(O,U){var K=O.props||c;return O.flags&32768?O.type.render(K,O.ref,U):O.type(K,U)}function He(O,U,K,G,Q,ee){var te=O.flags|=16384;te&481?Pt(O,U,K,G,Q,ee):te&4?nn(O,U,K,G,Q,ee):te&8?(on(O,U,K,G,Q,ee),Rt(O,ee)):te&512||te&16?Mt(O,U,Q):te&8192?tn(O,K,U,G,Q,ee):te&1024&&en(O,K,U,Q,ee)}function en(O,U,K,G,Q){He(O.children,O.ref,U,!1,null,Q);var ee=ce();Mt(ee,K,G),O.dom=ee.dom}function tn(O,U,K,G,Q,ee){var te=O.children,ie=O.childFlags;ie&12&&te.length===0&&(ie=O.childFlags=2,te=O.children=ce()),ie===2?He(te,K,U,G,Q,ee):nt(te,K,U,G,Q,ee)}function Mt(O,U,K){var G=O.dom=document.createTextNode(O.children);y(U)||s(U,G,K)}function Pt(O,U,K,G,Q,ee){var te=O.flags,ie=O.props,Te=O.className,Ie=O.childFlags,Le=O.dom=d(O.type,G=G||(te&32)>0),Ee=O.children;if(!a(Te)&&Te!==""&&(G?Le.setAttribute("class",Te):Le.className=Te),Ie===16)A(Le,Ee);else if(Ie!==1){var Pe=G&&O.type!=="foreignObject";Ie===2?(Ee.flags&16384&&(O.children=Ee=J(Ee)),He(Ee,Le,K,Pe,null,ee)):(Ie===8||Ie===4)&&nt(Ee,Le,K,Pe,null,ee)}y(U)||s(U,Le,Q),y(ie)||xt(O,te,ie,Le,G),ot(O.ref,Le,ee)}function nt(O,U,K,G,Q,ee){for(var te=0;tePe)&&(Le=V(te[Pe-1],!1).nextSibling)}vt(Te,Ie,te,ie,K,G,Q,Le,O,ee)}function sn(O,U,K,G){var Q=O.ref,ee=U.ref,te=U.children;if(vt(O.childFlags,U.childFlags,O.children,te,Q,K,!1,null,O,G),U.dom=O.dom,Q!==ee&&!t(te)){var ie=te.dom;v(Q,ie),i(ee,ie)}}function mn(O,U,K,G,Q,ee){var te=U.dom=O.dom,ie=O.props,Te=U.props,Ie=!1,Le=!1,Ee;if(G=G||(Q&32)>0,ie!==Te){var Pe=ie||c;if(Ee=Te||c,Ee!==c){Ie=(Q&448)>0,Ie&&(Le=Tt(Ee));for(var Fe in Ee){var Me=Pe[Fe],ze=Ee[Fe];Me!==ze&&ht(Fe,Me,ze,te,G,Le,O)}}if(Pe!==c)for(var Re in Pe)a(Ee[Re])&&!a(Pe[Re])&&ht(Re,Pe[Re],null,te,G,Le,O)}var et=U.children,Ye=U.className;O.className!==Ye&&(a(Ye)?te.removeAttribute("class"):G?te.setAttribute("class",Ye):te.className=Ye),Q&4096?un(te,et):vt(O.childFlags,U.childFlags,O.children,et,te,K,G&&U.type!=="foreignObject",null,O,ee),Ie&&wt(Q,U,te,Ee,!1,Le);var at=U.ref,Je=O.ref;Je!==at&&(lt(Je),ot(at,te,ee))}function fn(O,U,K,G,Q,ee){Qe(O),nt(U,K,G,Q,V(O,!0),ee),b(O,K)}function vt(O,U,K,G,Q,ee,te,ie,Te,Ie){switch(O){case 2:switch(U){case 2:Ze(K,G,Q,ee,te,ie,Ie);break;case 1:Xe(K,Q);break;case 16:Qe(K),A(Q,G);break;default:fn(K,G,Q,ee,te,Ie);break}break;case 1:switch(U){case 2:He(G,Q,ee,te,ie,Ie);break;case 1:break;case 16:A(Q,G);break;default:nt(G,Q,ee,te,ie,Ie);break}break;case 16:switch(U){case 16:ln(K,G,Q);break;case 2:ut(Q),He(G,Q,ee,te,ie,Ie);break;case 1:ut(Q);break;default:ut(Q),nt(G,Q,ee,te,ie,Ie);break}break;default:switch(U){case 16:rt(K),A(Q,G);break;case 2:dt(Q,Te,K),He(G,Q,ee,te,ie,Ie);break;case 1:dt(Q,Te,K);break;default:var Le=K.length|0,Ee=G.length|0;Le===0?Ee>0&&nt(G,Q,ee,te,ie,Ie):Ee===0?dt(Q,Te,K):U===8&&O===8?Nn(K,G,Q,ee,te,Le,Ee,ie,Te,Ie):gn(K,G,Q,ee,te,Le,Ee,ie,Ie);break}break}}function pn(O,U,K,G,Q){Q.push(function(){O.componentDidUpdate(U,K,G)})}function Dt(O,U,K,G,Q,ee,te,ie,Te){var Ie=O.state,Le=O.props,Ee=!!O.$N,Pe=o(O.shouldComponentUpdate);if(Ee&&(U=I(O,K,U!==Ie?k(Ie,U):U)),te||!Pe||Pe&&O.shouldComponentUpdate(K,U,Q)){!Ee&&o(O.componentWillUpdate)&&O.componentWillUpdate(K,U,Q),O.props=K,O.state=U,O.context=Q;var Fe=null,Me=At(O,K,Q);Ee&&o(O.getSnapshotBeforeUpdate)&&(Fe=O.getSnapshotBeforeUpdate(Le,Ie)),Ze(O.$LI,Me,G,O.$CX,ee,ie,Te),O.$LI=Me,o(O.componentDidUpdate)&&pn(O,Le,Ie,Fe,Te)}else O.props=K,O.state=U,O.context=Q}function hn(O,U,K,G,Q,ee,te){var ie=U.children=O.children;if(!y(ie)){ie.$L=te;var Te=U.props||c,Ie=U.ref,Le=O.ref,Ee=ie.state;if(!ie.$N){if(o(ie.componentWillReceiveProps)){if(ie.$BR=!0,ie.componentWillReceiveProps(Te,G),ie.$UN)return;ie.$BR=!1}y(ie.$PS)||(Ee=k(Ee,ie.$PS),ie.$PS=null)}Dt(ie,Ee,Te,K,G,Q,!1,ee,te),Le!==Ie&&(lt(Le),ot(Ie,ie,te))}}function Cn(O,U,K,G,Q,ee,te){var ie=!0,Te=U.props||c,Ie=U.ref,Le=O.props,Ee=!a(Ie),Pe=O.children;if(Ee&&o(Ie.onComponentShouldUpdate)&&(ie=Ie.onComponentShouldUpdate(Le,Te)),ie!==!1){Ee&&o(Ie.onComponentWillUpdate)&&Ie.onComponentWillUpdate(Le,Te);var Fe=Be(Ct(U,G));Ze(Pe,Fe,K,G,Q,ee,te),U.children=Fe,Ee&&o(Ie.onComponentDidUpdate)&&Ie.onComponentDidUpdate(Le,Te)}else U.children=Pe}function vn(O,U){var K=U.children,G=U.dom=O.dom;K!==O.children&&(G.nodeValue=K)}function gn(O,U,K,G,Q,ee,te,ie,Te){for(var Ie=ee>te?te:ee,Le=0,Ee,Pe;Lete)for(Le=Ie;LeLe||Pe>Ee)break e;Fe=O[Pe],Me=U[Pe]}for(Fe=O[Le],Me=U[Ee];Fe.key===Me.key;){if(Me.flags&16384&&(U[Ee]=Me=J(Me)),Ze(Fe,Me,K,G,Q,ie,Ie),O[Le]=Me,Le--,Ee--,Pe>Le||Pe>Ee)break e;Fe=O[Le],Me=U[Ee]}}if(Pe>Le){if(Pe<=Ee)for(ze=Ee+1,Re=zeEe)for(;Pe<=Le;)Xe(O[Pe++],K);else Vn(O,U,G,ee,te,Le,Ee,Pe,K,Q,ie,Te,Ie)}function Vn(O,U,K,G,Q,ee,te,ie,Te,Ie,Le,Ee,Pe){var Fe,Me,ze,Re=0,et=ie,Ye=ie,at=ee-ie+1,Je=te-ie+1,ct=new Int32Array(Je+1),tt=at===G,Vt=!1,$e=0,it=0;if(Q<4||(at|Je)<32)for(Re=et;Re<=ee;++Re)if(Fe=O[Re],itie?Vt=!0:$e=ie,Me.flags&16384&&(U[ie]=Me=J(Me)),Ze(Fe,Me,Te,K,Ie,Le,Pe),++it;break}!tt&&ie>te&&Xe(Fe,Te)}else tt||Xe(Fe,Te);else{var Ht={};for(Re=Ye;Re<=te;++Re)Ht[U[Re].key]=Re;for(Re=et;Re<=ee;++Re)if(Fe=O[Re],itet;)Xe(O[et++],Te);ct[ie-Ye]=Re+1,$e>ie?Vt=!0:$e=ie,Me=U[ie],Me.flags&16384&&(U[ie]=Me=J(Me)),Ze(Fe,Me,Te,K,Ie,Le,Pe),++it}else tt||Xe(Fe,Te);else tt||Xe(Fe,Te)}if(tt)dt(Te,Ee,O),nt(U,Te,K,Ie,Le,Pe);else if(Vt){var zt=bn(ct);for(ie=zt.length-1,Re=Je-1;Re>=0;Re--)ct[Re]===0?($e=Re+Ye,Me=U[$e],Me.flags&16384&&(U[$e]=Me=J(Me)),ze=$e+1,He(Me,Te,K,Ie,ze=0;Re--)ct[Re]===0&&($e=Re+Ye,Me=U[$e],Me.flags&16384&&(U[$e]=Me=J(Me)),ze=$e+1,He(Me,Te,K,Ie,zejt&&(jt=Te,qe=new Int32Array(Te),st=new Int32Array(Te));K>1,O[qe[ie]]0&&(st[K]=qe[ee-1]),qe[ee]=K)}ee=Q+1;var Ie=new Int32Array(ee);for(te=qe[ee-1];ee-- >0;)Ie[ee]=te,te=st[te],qe[ee]=0;return Ie}var yn=typeof document!="undefined";yn&&window.Node&&(Node.prototype.$EV=null,Node.prototype.$V=null);function Ft(O,U,K,G){var Q=[],ee=U.$V;w.v=!0,a(ee)?a(O)||(O.flags&16384&&(O=J(O)),He(O,U,G,!1,null,Q),U.$V=O,ee=O):a(O)?(Xe(ee,U),U.$V=null):(O.flags&16384&&(O=J(O)),Ze(ee,O,U,G,!1,null,Q),ee=U.$V=O),g(Q),w.v=!1,o(K)&&K(),o(T.renderComplete)&&T.renderComplete(ee,U)}function Wt(O,U,K,G){K===void 0&&(K=null),G===void 0&&(G=c),Ft(O,U,K,G)}function kn(O){return function(){function U(K,G,Q,ee){O||(O=K),Wt(G,O,Q,ee)}return U}()}var mt=[],Sn=typeof Promise!="undefined"?Promise.resolve().then.bind(Promise.resolve()):function(O){window.setTimeout(O,0)},gt=!1;function Ut(O,U,K,G){var Q=O.$PS;if(o(U)&&(U=U(Q?k(O.state,Q):O.state,O.props,O.context)),a(Q))O.$PS=U;else for(var ee in U)Q[ee]=U[ee];if(O.$BR)o(K)&&O.$L.push(K.bind(O));else{if(!w.v&&mt.length===0){Kt(O,G),o(K)&&K.call(O);return}if(mt.indexOf(O)===-1&&mt.push(O),G&&(O.$F=!0),gt||(gt=!0,Sn(_t)),o(K)){var te=O.$QU;te||(te=O.$QU=[]),te.push(K)}}}function Bn(O){for(var U=O.$QU,K=0;K=0;--W){var _=this.tryEntries[W],H=_.completion;if(_.tryLoc==="root")return F("end");if(_.tryLoc<=this.prev){var z=a.call(_,"catchLoc"),$=a.call(_,"finallyLoc");if(z&&$){if(this.prev<_.catchLoc)return F(_.catchLoc,!0);if(this.prev<_.finallyLoc)return F(_.finallyLoc)}else if(z){if(this.prev<_.catchLoc)return F(_.catchLoc,!0)}else if($){if(this.prev<_.finallyLoc)return F(_.finallyLoc)}else throw new Error("try statement without catch or finally")}}}return P}(),abrupt:function(){function P(R,D){for(var F=this.tryEntries.length-1;F>=0;--F){var W=this.tryEntries[F];if(W.tryLoc<=this.prev&&a.call(W,"finallyLoc")&&this.prev=0;--D){var F=this.tryEntries[D];if(F.finallyLoc===R)return this.complete(F.completion,F.afterLoc),x(F),s}}return P}(),catch:function(){function P(R){for(var D=this.tryEntries.length-1;D>=0;--D){var F=this.tryEntries[D];if(F.tryLoc===R){var W=F.completion;if(W.type==="throw"){var _=W.arg;x(F)}return _}}throw new Error("illegal catch attempt")}return P}(),delegateYield:function(){function P(R,D,F){return this.delegate={iterator:M(R),resultName:D,nextLoc:F},this.method==="next"&&(this.arg=o),s}return P}()},n}(L.exports);try{regeneratorRuntime=r}catch(n){typeof globalThis=="object"?globalThis.regeneratorRuntime=r:Function("r","regeneratorRuntime = r")(r)}},16666:function(){"use strict";self.fetch||(self.fetch=function(L,r){return r=r||{},new Promise(function(n,e){var a=new XMLHttpRequest,t=[],o={},m=function(){function y(){return{ok:(a.status/100|0)==2,statusText:a.statusText,status:a.status,url:a.responseURL,text:function(){function S(){return Promise.resolve(a.responseText)}return S}(),json:function(){function S(){return Promise.resolve(a.responseText).then(JSON.parse)}return S}(),blob:function(){function S(){return Promise.resolve(new Blob([a.response]))}return S}(),clone:y,headers:{keys:function(){function S(){return t}return S}(),entries:function(){function S(){return t.map(function(k){return[k,a.getResponseHeader(k)]})}return S}(),get:function(){function S(k){return a.getResponseHeader(k)}return S}(),has:function(){function S(k){return a.getResponseHeader(k)!=null}return S}()}}}return y}();for(var N in a.open(r.method||"get",L,!0),a.onload=function(){a.getAllResponseHeaders().toLowerCase().replace(/^(.+?):/gm,function(y,S){o[S]||t.push(o[S]=S)}),n(m())},a.onerror=e,a.withCredentials=r.credentials=="include",r.headers)a.setRequestHeader(N,r.headers[N]);a.send(r.body||null)})})},50640:function(L,r){"use strict";r.__esModule=!0,r.zipWith=r.zip=r.uniqBy=r.uniq=r.toKeyedArray=r.toArray=r.sortBy=r.sort=r.reduce=r.range=r.map=r.filterMap=r.filter=void 0;function n(d,h){var v=typeof Symbol!="undefined"&&d[Symbol.iterator]||d["@@iterator"];if(v)return(v=v.call(d)).next.bind(v);if(Array.isArray(d)||(v=e(d))||h&&d&&typeof d.length=="number"){v&&(d=v);var g=0;return function(){return g>=d.length?{done:!0}:{done:!1,value:d[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.")}function e(d,h){if(d){if(typeof d=="string")return a(d,h);var v=Object.prototype.toString.call(d).slice(8,-1);if(v==="Object"&&d.constructor&&(v=d.constructor.name),v==="Map"||v==="Set")return Array.from(d);if(v==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(v))return a(d,h)}}function a(d,h){(h==null||h>d.length)&&(h=d.length);for(var v=0,g=new Array(h);v0&&(0,a.round)(h.width)/y.offsetWidth||1,c=y.offsetHeight>0&&(0,a.round)(h.height)/y.offsetHeight||1);var f=(0,e.isElement)(y)?(0,t.default)(y):window,d=f.visualViewport,i=!(0,o.default)()&&k,s=(h.left+(i&&d?d.offsetLeft:0))/l,u=(h.top+(i&&d?d.offsetTop:0))/c,C=h.width/l,v=h.height/c;return{width:C,height:v,top:u,right:s+C,bottom:u+v,left:s,x:s,y:u}}},86380:function(I,r,n){"use strict";r.__esModule=!0,r.default=v;var e=n(41521),a=i(n(2868)),t=i(n(39799)),o=i(n(54826)),m=i(n(43243)),V=i(n(33733)),y=i(n(14522)),S=n(72600),k=i(n(32125)),h=i(n(34972)),l=i(n(96343)),c=i(n(13203)),f=i(n(31855)),d=n(69031);function i(g){return g&&g.__esModule?g:{default:g}}function s(g,p){var N=(0,k.default)(g,!1,p==="fixed");return N.top=N.top+g.clientTop,N.left=N.left+g.clientLeft,N.bottom=N.top+g.clientHeight,N.right=N.left+g.clientWidth,N.width=g.clientWidth,N.height=g.clientHeight,N.x=N.left,N.y=N.top,N}function u(g,p,N){return p===e.viewport?(0,f.default)((0,a.default)(g,N)):(0,S.isElement)(p)?s(p,N):(0,f.default)((0,t.default)((0,V.default)(g)))}function C(g){var p=(0,o.default)((0,h.default)(g)),N=["absolute","fixed"].indexOf((0,y.default)(g).position)>=0,b=N&&(0,S.isHTMLElement)(g)?(0,m.default)(g):g;return(0,S.isElement)(b)?p.filter(function(B){return(0,S.isElement)(B)&&(0,l.default)(B,b)&&(0,c.default)(B)!=="body"}):[]}function v(g,p,N,b){var B=p==="clippingParents"?C(g):[].concat(p),L=[].concat(B,[N]),w=L[0],T=L.reduce(function(x,A){var E=u(g,A,b);return x.top=(0,d.max)(E.top,x.top),x.right=(0,d.min)(E.right,x.right),x.bottom=(0,d.min)(E.bottom,x.bottom),x.left=(0,d.max)(E.left,x.left),x},u(g,w,b));return T.width=T.right-T.left,T.height=T.bottom-T.top,T.x=T.left,T.y=T.top,T}},8823:function(I,r,n){"use strict";r.__esModule=!0,r.default=l;var e=k(n(32125)),a=k(n(45401)),t=k(n(13203)),o=n(72600),m=k(n(85750)),V=k(n(33733)),y=k(n(44011)),S=n(69031);function k(c){return c&&c.__esModule?c:{default:c}}function h(c){var f=c.getBoundingClientRect(),d=(0,S.round)(f.width)/c.offsetWidth||1,i=(0,S.round)(f.height)/c.offsetHeight||1;return d!==1||i!==1}function l(c,f,d){d===void 0&&(d=!1);var i=(0,o.isHTMLElement)(f),s=(0,o.isHTMLElement)(f)&&h(f),u=(0,V.default)(f),C=(0,e.default)(c,s,d),v={scrollLeft:0,scrollTop:0},g={x:0,y:0};return(i||!i&&!d)&&(((0,t.default)(f)!=="body"||(0,y.default)(u))&&(v=(0,a.default)(f)),(0,o.isHTMLElement)(f)?(g=(0,e.default)(f,!0),g.x+=f.clientLeft,g.y+=f.clientTop):u&&(g.x=(0,m.default)(u))),{x:C.left+v.scrollLeft-g.x,y:C.top+v.scrollTop-g.y,width:C.width,height:C.height}}},14522:function(I,r,n){"use strict";r.__esModule=!0,r.default=t;var e=a(n(81020));function a(o){return o&&o.__esModule?o:{default:o}}function t(o){return(0,e.default)(o).getComputedStyle(o)}},33733:function(I,r,n){"use strict";r.__esModule=!0,r.default=a;var e=n(72600);function a(t){return(((0,e.isElement)(t)?t.ownerDocument:t.document)||window.document).documentElement}},39799:function(I,r,n){"use strict";r.__esModule=!0,r.default=y;var e=V(n(33733)),a=V(n(14522)),t=V(n(85750)),o=V(n(79569)),m=n(69031);function V(S){return S&&S.__esModule?S:{default:S}}function y(S){var k,h=(0,e.default)(S),l=(0,o.default)(S),c=(k=S.ownerDocument)==null?void 0:k.body,f=(0,m.max)(h.scrollWidth,h.clientWidth,c?c.scrollWidth:0,c?c.clientWidth:0),d=(0,m.max)(h.scrollHeight,h.clientHeight,c?c.scrollHeight:0,c?c.clientHeight:0),i=-l.scrollLeft+(0,t.default)(S),s=-l.scrollTop;return(0,a.default)(c||h).direction==="rtl"&&(i+=(0,m.max)(h.clientWidth,c?c.clientWidth:0)-f),{width:f,height:d,x:i,y:s}}},75680:function(I,r){"use strict";r.__esModule=!0,r.default=n;function n(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}},19820:function(I,r,n){"use strict";r.__esModule=!0,r.default=t;var e=a(n(32125));function a(o){return o&&o.__esModule?o:{default:o}}function t(o){var m=(0,e.default)(o),V=o.offsetWidth,y=o.offsetHeight;return Math.abs(m.width-V)<=1&&(V=m.width),Math.abs(m.height-y)<=1&&(y=m.height),{x:o.offsetLeft,y:o.offsetTop,width:V,height:y}}},13203:function(I,r){"use strict";r.__esModule=!0,r.default=n;function n(e){return e?(e.nodeName||"").toLowerCase():null}},45401:function(I,r,n){"use strict";r.__esModule=!0,r.default=V;var e=m(n(79569)),a=m(n(81020)),t=n(72600),o=m(n(75680));function m(y){return y&&y.__esModule?y:{default:y}}function V(y){return y===(0,a.default)(y)||!(0,t.isHTMLElement)(y)?(0,e.default)(y):(0,o.default)(y)}},43243:function(I,r,n){"use strict";r.__esModule=!0,r.default=l;var e=S(n(81020)),a=S(n(13203)),t=S(n(14522)),o=n(72600),m=S(n(25658)),V=S(n(34972)),y=S(n(97353));function S(c){return c&&c.__esModule?c:{default:c}}function k(c){return!(0,o.isHTMLElement)(c)||(0,t.default)(c).position==="fixed"?null:c.offsetParent}function h(c){var f=/firefox/i.test((0,y.default)()),d=/Trident/i.test((0,y.default)());if(d&&(0,o.isHTMLElement)(c)){var i=(0,t.default)(c);if(i.position==="fixed")return null}var s=(0,V.default)(c);for((0,o.isShadowRoot)(s)&&(s=s.host);(0,o.isHTMLElement)(s)&&["html","body"].indexOf((0,a.default)(s))<0;){var u=(0,t.default)(s);if(u.transform!=="none"||u.perspective!=="none"||u.contain==="paint"||["transform","perspective"].indexOf(u.willChange)!==-1||f&&u.willChange==="filter"||f&&u.filter&&u.filter!=="none")return s;s=s.parentNode}return null}function l(c){for(var f=(0,e.default)(c),d=k(c);d&&(0,m.default)(d)&&(0,t.default)(d).position==="static";)d=k(d);return d&&((0,a.default)(d)==="html"||(0,a.default)(d)==="body"&&(0,t.default)(d).position==="static")?f:d||h(c)||f}},34972:function(I,r,n){"use strict";r.__esModule=!0,r.default=m;var e=o(n(13203)),a=o(n(33733)),t=n(72600);function o(V){return V&&V.__esModule?V:{default:V}}function m(V){return(0,e.default)(V)==="html"?V:V.assignedSlot||V.parentNode||((0,t.isShadowRoot)(V)?V.host:null)||(0,a.default)(V)}},65329:function(I,r,n){"use strict";r.__esModule=!0,r.default=V;var e=m(n(34972)),a=m(n(44011)),t=m(n(13203)),o=n(72600);function m(y){return y&&y.__esModule?y:{default:y}}function V(y){return["html","body","#document"].indexOf((0,t.default)(y))>=0?y.ownerDocument.body:(0,o.isHTMLElement)(y)&&(0,a.default)(y)?y:V((0,e.default)(y))}},2868:function(I,r,n){"use strict";r.__esModule=!0,r.default=V;var e=m(n(81020)),a=m(n(33733)),t=m(n(85750)),o=m(n(14894));function m(y){return y&&y.__esModule?y:{default:y}}function V(y,S){var k=(0,e.default)(y),h=(0,a.default)(y),l=k.visualViewport,c=h.clientWidth,f=h.clientHeight,d=0,i=0;if(l){c=l.width,f=l.height;var s=(0,o.default)();(s||!s&&S==="fixed")&&(d=l.offsetLeft,i=l.offsetTop)}return{width:c,height:f,x:d+(0,t.default)(y),y:i}}},81020:function(I,r){"use strict";r.__esModule=!0,r.default=n;function n(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var a=e.ownerDocument;return a&&a.defaultView||window}return e}},79569:function(I,r,n){"use strict";r.__esModule=!0,r.default=t;var e=a(n(81020));function a(o){return o&&o.__esModule?o:{default:o}}function t(o){var m=(0,e.default)(o),V=m.pageXOffset,y=m.pageYOffset;return{scrollLeft:V,scrollTop:y}}},85750:function(I,r,n){"use strict";r.__esModule=!0,r.default=m;var e=o(n(32125)),a=o(n(33733)),t=o(n(79569));function o(V){return V&&V.__esModule?V:{default:V}}function m(V){return(0,e.default)((0,a.default)(V)).left+(0,t.default)(V).scrollLeft}},72600:function(I,r,n){"use strict";r.__esModule=!0,r.isElement=t,r.isHTMLElement=o,r.isShadowRoot=m;var e=a(n(81020));function a(V){return V&&V.__esModule?V:{default:V}}function t(V){var y=(0,e.default)(V).Element;return V instanceof y||V instanceof Element}function o(V){var y=(0,e.default)(V).HTMLElement;return V instanceof y||V instanceof HTMLElement}function m(V){if(typeof ShadowRoot=="undefined")return!1;var y=(0,e.default)(V).ShadowRoot;return V instanceof y||V instanceof ShadowRoot}},14894:function(I,r,n){"use strict";r.__esModule=!0,r.default=t;var e=a(n(97353));function a(o){return o&&o.__esModule?o:{default:o}}function t(){return!/^((?!chrome|android).)*safari/i.test((0,e.default)())}},44011:function(I,r,n){"use strict";r.__esModule=!0,r.default=t;var e=a(n(14522));function a(o){return o&&o.__esModule?o:{default:o}}function t(o){var m=(0,e.default)(o),V=m.overflow,y=m.overflowX,S=m.overflowY;return/auto|scroll|overlay|hidden/.test(V+S+y)}},25658:function(I,r,n){"use strict";r.__esModule=!0,r.default=t;var e=a(n(13203));function a(o){return o&&o.__esModule?o:{default:o}}function t(o){return["table","td","th"].indexOf((0,e.default)(o))>=0}},54826:function(I,r,n){"use strict";r.__esModule=!0,r.default=V;var e=m(n(65329)),a=m(n(34972)),t=m(n(81020)),o=m(n(44011));function m(y){return y&&y.__esModule?y:{default:y}}function V(y,S){var k;S===void 0&&(S=[]);var h=(0,e.default)(y),l=h===((k=y.ownerDocument)==null?void 0:k.body),c=(0,t.default)(h),f=l?[c].concat(c.visualViewport||[],(0,o.default)(h)?h:[]):h,d=S.concat(f);return l?d:d.concat(V((0,a.default)(f)))}},41521:function(I,r){"use strict";r.__esModule=!0,r.write=r.viewport=r.variationPlacements=r.top=r.start=r.right=r.reference=r.read=r.popper=r.placements=r.modifierPhases=r.main=r.left=r.end=r.clippingParents=r.bottom=r.beforeWrite=r.beforeRead=r.beforeMain=r.basePlacements=r.auto=r.afterWrite=r.afterRead=r.afterMain=void 0;var n=r.top="top",e=r.bottom="bottom",a=r.right="right",t=r.left="left",o=r.auto="auto",m=r.basePlacements=[n,e,a,t],V=r.start="start",y=r.end="end",S=r.clippingParents="clippingParents",k=r.viewport="viewport",h=r.popper="popper",l=r.reference="reference",c=r.variationPlacements=m.reduce(function(B,L){return B.concat([L+"-"+V,L+"-"+y])},[]),f=r.placements=[].concat(m,[o]).reduce(function(B,L){return B.concat([L,L+"-"+V,L+"-"+y])},[]),d=r.beforeRead="beforeRead",i=r.read="read",s=r.afterRead="afterRead",u=r.beforeMain="beforeMain",C=r.main="main",v=r.afterMain="afterMain",g=r.beforeWrite="beforeWrite",p=r.write="write",N=r.afterWrite="afterWrite",b=r.modifierPhases=[d,i,s,u,C,v,g,p,N]},60023:function(I,r,n){"use strict";r.__esModule=!0;var e={popperGenerator:!0,detectOverflow:!0,createPopperBase:!0,createPopper:!0,createPopperLite:!0};r.popperGenerator=r.detectOverflow=r.createPopperLite=r.createPopperBase=r.createPopper=void 0;var a=n(41521);Object.keys(a).forEach(function(y){y==="default"||y==="__esModule"||Object.prototype.hasOwnProperty.call(e,y)||y in r&&r[y]===a[y]||(r[y]=a[y])});var t=n(91078);Object.keys(t).forEach(function(y){y==="default"||y==="__esModule"||Object.prototype.hasOwnProperty.call(e,y)||y in r&&r[y]===t[y]||(r[y]=t[y])});var o=n(66641);r.popperGenerator=o.popperGenerator,r.detectOverflow=o.detectOverflow,r.createPopperBase=o.createPopper;var m=n(7925);r.createPopper=m.createPopper;var V=n(62642);r.createPopperLite=V.createPopper},56304:function(I,r,n){"use strict";r.__esModule=!0,r.default=void 0;var e=t(n(13203)),a=n(72600);function t(y){return y&&y.__esModule?y:{default:y}}function o(y){var S=y.state;Object.keys(S.elements).forEach(function(k){var h=S.styles[k]||{},l=S.attributes[k]||{},c=S.elements[k];!(0,a.isHTMLElement)(c)||!(0,e.default)(c)||(Object.assign(c.style,h),Object.keys(l).forEach(function(f){var d=l[f];d===!1?c.removeAttribute(f):c.setAttribute(f,d===!0?"":d)}))})}function m(y){var S=y.state,k={popper:{position:S.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(S.elements.popper.style,k.popper),S.styles=k,S.elements.arrow&&Object.assign(S.elements.arrow.style,k.arrow),function(){Object.keys(S.elements).forEach(function(h){var l=S.elements[h],c=S.attributes[h]||{},f=Object.keys(S.styles.hasOwnProperty(h)?S.styles[h]:k[h]),d=f.reduce(function(i,s){return i[s]="",i},{});!(0,a.isHTMLElement)(l)||!(0,e.default)(l)||(Object.assign(l.style,d),Object.keys(c).forEach(function(i){l.removeAttribute(i)}))})}}var V=r.default={name:"applyStyles",enabled:!0,phase:"write",fn:o,effect:m,requires:["computeStyles"]}},57243:function(I,r,n){"use strict";r.__esModule=!0,r.default=void 0;var e=h(n(38141)),a=h(n(19820)),t=h(n(96343)),o=h(n(43243)),m=h(n(7770)),V=n(76770),y=h(n(77631)),S=h(n(54824)),k=n(41521);function h(i){return i&&i.__esModule?i:{default:i}}var l=function(){function i(s,u){return s=typeof s=="function"?s(Object.assign({},u.rects,{placement:u.placement})):s,(0,y.default)(typeof s!="number"?s:(0,S.default)(s,k.basePlacements))}return i}();function c(i){var s,u=i.state,C=i.name,v=i.options,g=u.elements.arrow,p=u.modifiersData.popperOffsets,N=(0,e.default)(u.placement),b=(0,m.default)(N),B=[k.left,k.right].indexOf(N)>=0,L=B?"height":"width";if(!(!g||!p)){var w=l(v.padding,u),T=(0,a.default)(g),x=b==="y"?k.top:k.left,A=b==="y"?k.bottom:k.right,E=u.rects.reference[L]+u.rects.reference[b]-p[b]-u.rects.popper[L],M=p[b]-u.rects.reference[b],D=(0,o.default)(g),P=D?b==="y"?D.clientHeight||0:D.clientWidth||0:0,R=E/2-M/2,j=w[x],F=P-T[L]-w[A],W=P/2-T[L]/2+R,_=(0,V.within)(j,W,F),K=b;u.modifiersData[C]=(s={},s[K]=_,s.centerOffset=_-W,s)}}function f(i){var s=i.state,u=i.options,C=u.element,v=C===void 0?"[data-popper-arrow]":C;v!=null&&(typeof v=="string"&&(v=s.elements.popper.querySelector(v),!v)||(0,t.default)(s.elements.popper,v)&&(s.elements.arrow=v))}var d=r.default={name:"arrow",enabled:!0,phase:"main",fn:c,effect:f,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]}},60421:function(I,r,n){"use strict";r.__esModule=!0,r.default=void 0,r.mapToStyles=c;var e=n(41521),a=k(n(43243)),t=k(n(81020)),o=k(n(33733)),m=k(n(14522)),V=k(n(38141)),y=k(n(14380)),S=n(69031);function k(i){return i&&i.__esModule?i:{default:i}}var h={top:"auto",right:"auto",bottom:"auto",left:"auto"};function l(i,s){var u=i.x,C=i.y,v=s.devicePixelRatio||1;return{x:(0,S.round)(u*v)/v||0,y:(0,S.round)(C*v)/v||0}}function c(i){var s,u=i.popper,C=i.popperRect,v=i.placement,g=i.variation,p=i.offsets,N=i.position,b=i.gpuAcceleration,B=i.adaptive,L=i.roundOffsets,w=i.isFixed,T=p.x,x=T===void 0?0:T,A=p.y,E=A===void 0?0:A,M=typeof L=="function"?L({x:x,y:E}):{x:x,y:E};x=M.x,E=M.y;var D=p.hasOwnProperty("x"),P=p.hasOwnProperty("y"),R=e.left,j=e.top,F=window;if(B){var W=(0,a.default)(u),_="clientHeight",K="clientWidth";if(W===(0,t.default)(u)&&(W=(0,o.default)(u),(0,m.default)(W).position!=="static"&&N==="absolute"&&(_="scrollHeight",K="scrollWidth")),W=W,v===e.top||(v===e.left||v===e.right)&&g===e.end){j=e.bottom;var H=w&&W===F&&F.visualViewport?F.visualViewport.height:W[_];E-=H-C.height,E*=b?1:-1}if(v===e.left||(v===e.top||v===e.bottom)&&g===e.end){R=e.right;var $=w&&W===F&&F.visualViewport?F.visualViewport.width:W[K];x-=$-C.width,x*=b?1:-1}}var X=Object.assign({position:N},B&&h),J=L===!0?l({x:x,y:E},(0,t.default)(u)):{x:x,y:E};if(x=J.x,E=J.y,b){var ae;return Object.assign({},X,(ae={},ae[j]=P?"0":"",ae[R]=D?"0":"",ae.transform=(F.devicePixelRatio||1)<=1?"translate("+x+"px, "+E+"px)":"translate3d("+x+"px, "+E+"px, 0)",ae))}return Object.assign({},X,(s={},s[j]=P?E+"px":"",s[R]=D?x+"px":"",s.transform="",s))}function f(i){var s=i.state,u=i.options,C=u.gpuAcceleration,v=C===void 0?!0:C,g=u.adaptive,p=g===void 0?!0:g,N=u.roundOffsets,b=N===void 0?!0:N,B={placement:(0,V.default)(s.placement),variation:(0,y.default)(s.placement),popper:s.elements.popper,popperRect:s.rects.popper,gpuAcceleration:v,isFixed:s.options.strategy==="fixed"};s.modifiersData.popperOffsets!=null&&(s.styles.popper=Object.assign({},s.styles.popper,c(Object.assign({},B,{offsets:s.modifiersData.popperOffsets,position:s.options.strategy,adaptive:p,roundOffsets:b})))),s.modifiersData.arrow!=null&&(s.styles.arrow=Object.assign({},s.styles.arrow,c(Object.assign({},B,{offsets:s.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:b})))),s.attributes.popper=Object.assign({},s.attributes.popper,{"data-popper-placement":s.placement})}var d=r.default={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:f,data:{}}},84601:function(I,r,n){"use strict";r.__esModule=!0,r.default=void 0;var e=a(n(81020));function a(V){return V&&V.__esModule?V:{default:V}}var t={passive:!0};function o(V){var y=V.state,S=V.instance,k=V.options,h=k.scroll,l=h===void 0?!0:h,c=k.resize,f=c===void 0?!0:c,d=(0,e.default)(y.elements.popper),i=[].concat(y.scrollParents.reference,y.scrollParents.popper);return l&&i.forEach(function(s){s.addEventListener("scroll",S.update,t)}),f&&d.addEventListener("resize",S.update,t),function(){l&&i.forEach(function(s){s.removeEventListener("scroll",S.update,t)}),f&&d.removeEventListener("resize",S.update,t)}}var m=r.default={name:"eventListeners",enabled:!0,phase:"write",fn:function(){function V(){}return V}(),effect:o,data:{}}},17267:function(I,r,n){"use strict";r.__esModule=!0,r.default=void 0;var e=S(n(79641)),a=S(n(38141)),t=S(n(71976)),o=S(n(31584)),m=S(n(44744)),V=n(41521),y=S(n(14380));function S(c){return c&&c.__esModule?c:{default:c}}function k(c){if((0,a.default)(c)===V.auto)return[];var f=(0,e.default)(c);return[(0,t.default)(c),f,(0,t.default)(f)]}function h(c){var f=c.state,d=c.options,i=c.name;if(!f.modifiersData[i]._skip){for(var s=d.mainAxis,u=s===void 0?!0:s,C=d.altAxis,v=C===void 0?!0:C,g=d.fallbackPlacements,p=d.padding,N=d.boundary,b=d.rootBoundary,B=d.altBoundary,L=d.flipVariations,w=L===void 0?!0:L,T=d.allowedAutoPlacements,x=f.options.placement,A=(0,a.default)(x),E=A===x,M=g||(E||!w?[(0,e.default)(x)]:k(x)),D=[x].concat(M).reduce(function(Z,q){return Z.concat((0,a.default)(q)===V.auto?(0,m.default)(f,{placement:q,boundary:N,rootBoundary:b,padding:p,flipVariations:w,allowedAutoPlacements:T}):q)},[]),P=f.rects.reference,R=f.rects.popper,j=new Map,F=!0,W=D[0],_=0;_=0,J=X?"width":"height",ae=(0,o.default)(f,{placement:K,boundary:N,rootBoundary:b,altBoundary:B,padding:p}),re=X?$?V.right:V.left:$?V.bottom:V.top;P[J]>R[J]&&(re=(0,e.default)(re));var me=(0,e.default)(re),pe=[];if(u&&pe.push(ae[H]<=0),v&&pe.push(ae[re]<=0,ae[me]<=0),pe.every(function(Z){return Z})){W=K,F=!1;break}j.set(K,pe)}if(F)for(var Ce=w?3:1,ke=function(){function Z(q){var ue=D.find(function(se){var te=j.get(se);if(te)return te.slice(0,q).every(function(ye){return ye})});if(ue)return W=ue,"break"}return Z}(),he=Ce;he>0;he--){var oe=ke(he);if(oe==="break")break}f.placement!==W&&(f.modifiersData[i]._skip=!0,f.placement=W,f.reset=!0)}}var l=r.default={name:"flip",enabled:!0,phase:"main",fn:h,requiresIfExists:["offset"],data:{_skip:!1}}},88476:function(I,r,n){"use strict";r.__esModule=!0,r.default=void 0;var e=n(41521),a=t(n(31584));function t(S){return S&&S.__esModule?S:{default:S}}function o(S,k,h){return h===void 0&&(h={x:0,y:0}),{top:S.top-k.height-h.y,right:S.right-k.width+h.x,bottom:S.bottom-k.height+h.y,left:S.left-k.width-h.x}}function m(S){return[e.top,e.right,e.bottom,e.left].some(function(k){return S[k]>=0})}function V(S){var k=S.state,h=S.name,l=k.rects.reference,c=k.rects.popper,f=k.modifiersData.preventOverflow,d=(0,a.default)(k,{elementContext:"reference"}),i=(0,a.default)(k,{altBoundary:!0}),s=o(d,l),u=o(i,c,f),C=m(s),v=m(u);k.modifiersData[h]={referenceClippingOffsets:s,popperEscapeOffsets:u,isReferenceHidden:C,hasPopperEscaped:v},k.attributes.popper=Object.assign({},k.attributes.popper,{"data-popper-reference-hidden":C,"data-popper-escaped":v})}var y=r.default={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:V}},91078:function(I,r,n){"use strict";r.__esModule=!0,r.preventOverflow=r.popperOffsets=r.offset=r.hide=r.flip=r.eventListeners=r.computeStyles=r.arrow=r.applyStyles=void 0;var e=h(n(56304));r.applyStyles=e.default;var a=h(n(57243));r.arrow=a.default;var t=h(n(60421));r.computeStyles=t.default;var o=h(n(84601));r.eventListeners=o.default;var m=h(n(17267));r.flip=m.default;var V=h(n(88476));r.hide=V.default;var y=h(n(36707));r.offset=y.default;var S=h(n(98916));r.popperOffsets=S.default;var k=h(n(44454));r.preventOverflow=k.default;function h(l){return l&&l.__esModule?l:{default:l}}},36707:function(I,r,n){"use strict";r.__esModule=!0,r.default=void 0,r.distanceAndSkiddingToXY=o;var e=t(n(38141)),a=n(41521);function t(y){return y&&y.__esModule?y:{default:y}}function o(y,S,k){var h=(0,e.default)(y),l=[a.left,a.top].indexOf(h)>=0?-1:1,c=typeof k=="function"?k(Object.assign({},S,{placement:y})):k,f=c[0],d=c[1];return f=f||0,d=(d||0)*l,[a.left,a.right].indexOf(h)>=0?{x:d,y:f}:{x:f,y:d}}function m(y){var S=y.state,k=y.options,h=y.name,l=k.offset,c=l===void 0?[0,0]:l,f=a.placements.reduce(function(u,C){return u[C]=o(C,S.rects,c),u},{}),d=f[S.placement],i=d.x,s=d.y;S.modifiersData.popperOffsets!=null&&(S.modifiersData.popperOffsets.x+=i,S.modifiersData.popperOffsets.y+=s),S.modifiersData[h]=f}var V=r.default={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:m}},98916:function(I,r,n){"use strict";r.__esModule=!0,r.default=void 0;var e=a(n(47566));function a(m){return m&&m.__esModule?m:{default:m}}function t(m){var V=m.state,y=m.name;V.modifiersData[y]=(0,e.default)({reference:V.rects.reference,element:V.rects.popper,strategy:"absolute",placement:V.placement})}var o=r.default={name:"popperOffsets",enabled:!0,phase:"read",fn:t,data:{}}},44454:function(I,r,n){"use strict";r.__esModule=!0,r.default=void 0;var e=n(41521),a=c(n(38141)),t=c(n(7770)),o=c(n(39571)),m=n(76770),V=c(n(19820)),y=c(n(43243)),S=c(n(31584)),k=c(n(14380)),h=c(n(92385)),l=n(69031);function c(i){return i&&i.__esModule?i:{default:i}}function f(i){var s=i.state,u=i.options,C=i.name,v=u.mainAxis,g=v===void 0?!0:v,p=u.altAxis,N=p===void 0?!1:p,b=u.boundary,B=u.rootBoundary,L=u.altBoundary,w=u.padding,T=u.tether,x=T===void 0?!0:T,A=u.tetherOffset,E=A===void 0?0:A,M=(0,S.default)(s,{boundary:b,rootBoundary:B,padding:w,altBoundary:L}),D=(0,a.default)(s.placement),P=(0,k.default)(s.placement),R=!P,j=(0,t.default)(D),F=(0,o.default)(j),W=s.modifiersData.popperOffsets,_=s.rects.reference,K=s.rects.popper,H=typeof E=="function"?E(Object.assign({},s.rects,{placement:s.placement})):E,$=typeof H=="number"?{mainAxis:H,altAxis:H}:Object.assign({mainAxis:0,altAxis:0},H),X=s.modifiersData.offset?s.modifiersData.offset[s.placement]:null,J={x:0,y:0};if(W){if(g){var ae,re=j==="y"?e.top:e.left,me=j==="y"?e.bottom:e.right,pe=j==="y"?"height":"width",Ce=W[j],ke=Ce+M[re],he=Ce-M[me],oe=x?-K[pe]/2:0,Z=P===e.start?_[pe]:K[pe],q=P===e.start?-K[pe]:-_[pe],ue=s.elements.arrow,se=x&&ue?(0,V.default)(ue):{width:0,height:0},te=s.modifiersData["arrow#persistent"]?s.modifiersData["arrow#persistent"].padding:(0,h.default)(),ye=te[re],fe=te[me],Ne=(0,m.within)(0,_[pe],se[pe]),Se=R?_[pe]/2-oe-Ne-ye-$.mainAxis:Z-Ne-ye-$.mainAxis,ge=R?-_[pe]/2+oe+Ne+fe+$.mainAxis:q+Ne+fe+$.mainAxis,Be=s.elements.arrow&&(0,y.default)(s.elements.arrow),we=Be?j==="y"?Be.clientTop||0:Be.clientLeft||0:0,xe=(ae=X==null?void 0:X[j])!=null?ae:0,Oe=Ce+Se-xe-we,We=Ce+ge-xe,be=(0,m.within)(x?(0,l.min)(ke,Oe):ke,Ce,x?(0,l.max)(he,We):he);W[j]=be,J[j]=be-Ce}if(N){var ce,le=j==="x"?e.top:e.left,ve=j==="x"?e.bottom:e.right,de=W[F],Ve=F==="y"?"height":"width",Ae=de+M[le],De=de-M[ve],je=[e.top,e.left].indexOf(D)!==-1,_e=(ce=X==null?void 0:X[F])!=null?ce:0,Ue=je?Ae:de-_[Ve]-K[Ve]-_e+$.altAxis,ze=je?de+_[Ve]+K[Ve]-_e-$.altAxis:De,Ge=x&&je?(0,m.withinMaxClamp)(Ue,de,ze):(0,m.within)(x?Ue:Ae,de,x?ze:De);W[F]=Ge,J[F]=Ge-de}s.modifiersData[C]=J}}var d=r.default={name:"preventOverflow",enabled:!0,phase:"main",fn:f,requiresIfExists:["offset"]}},62642:function(I,r,n){"use strict";r.__esModule=!0,r.defaultModifiers=r.createPopper=void 0;var e=n(66641);r.popperGenerator=e.popperGenerator,r.detectOverflow=e.detectOverflow;var a=V(n(84601)),t=V(n(98916)),o=V(n(60421)),m=V(n(56304));function V(k){return k&&k.__esModule?k:{default:k}}var y=r.defaultModifiers=[a.default,t.default,o.default,m.default],S=r.createPopper=(0,e.popperGenerator)({defaultModifiers:y})},7925:function(I,r,n){"use strict";r.__esModule=!0;var e={createPopper:!0,createPopperLite:!0,defaultModifiers:!0,popperGenerator:!0,detectOverflow:!0};r.defaultModifiers=r.createPopperLite=r.createPopper=void 0;var a=n(66641);r.popperGenerator=a.popperGenerator,r.detectOverflow=a.detectOverflow;var t=d(n(84601)),o=d(n(98916)),m=d(n(60421)),V=d(n(56304)),y=d(n(36707)),S=d(n(17267)),k=d(n(44454)),h=d(n(57243)),l=d(n(88476)),c=n(62642);r.createPopperLite=c.createPopper;var f=n(91078);Object.keys(f).forEach(function(u){u==="default"||u==="__esModule"||Object.prototype.hasOwnProperty.call(e,u)||u in r&&r[u]===f[u]||(r[u]=f[u])});function d(u){return u&&u.__esModule?u:{default:u}}var i=r.defaultModifiers=[t.default,o.default,m.default,V.default,y.default,S.default,k.default,h.default,l.default],s=r.createPopperLite=r.createPopper=(0,a.popperGenerator)({defaultModifiers:i})},44744:function(I,r,n){"use strict";r.__esModule=!0,r.default=V;var e=m(n(14380)),a=n(41521),t=m(n(31584)),o=m(n(38141));function m(y){return y&&y.__esModule?y:{default:y}}function V(y,S){S===void 0&&(S={});var k=S,h=k.placement,l=k.boundary,c=k.rootBoundary,f=k.padding,d=k.flipVariations,i=k.allowedAutoPlacements,s=i===void 0?a.placements:i,u=(0,e.default)(h),C=u?d?a.variationPlacements:a.variationPlacements.filter(function(p){return(0,e.default)(p)===u}):a.basePlacements,v=C.filter(function(p){return s.indexOf(p)>=0});v.length===0&&(v=C);var g=v.reduce(function(p,N){return p[N]=(0,t.default)(y,{placement:N,boundary:l,rootBoundary:c,padding:f})[(0,o.default)(N)],p},{});return Object.keys(g).sort(function(p,N){return g[p]-g[N]})}},47566:function(I,r,n){"use strict";r.__esModule=!0,r.default=V;var e=m(n(38141)),a=m(n(14380)),t=m(n(7770)),o=n(41521);function m(y){return y&&y.__esModule?y:{default:y}}function V(y){var S=y.reference,k=y.element,h=y.placement,l=h?(0,e.default)(h):null,c=h?(0,a.default)(h):null,f=S.x+S.width/2-k.width/2,d=S.y+S.height/2-k.height/2,i;switch(l){case o.top:i={x:f,y:S.y-k.height};break;case o.bottom:i={x:f,y:S.y+S.height};break;case o.right:i={x:S.x+S.width,y:d};break;case o.left:i={x:S.x-k.width,y:d};break;default:i={x:S.x,y:S.y}}var s=l?(0,t.default)(l):null;if(s!=null){var u=s==="y"?"height":"width";switch(c){case o.start:i[s]=i[s]-(S[u]/2-k[u]/2);break;case o.end:i[s]=i[s]+(S[u]/2-k[u]/2);break;default:}}return i}},80798:function(I,r){"use strict";r.__esModule=!0,r.default=n;function n(e){var a;return function(){return a||(a=new Promise(function(t){Promise.resolve().then(function(){a=void 0,t(e())})})),a}}},31584:function(I,r,n){"use strict";r.__esModule=!0,r.default=l;var e=h(n(86380)),a=h(n(33733)),t=h(n(32125)),o=h(n(47566)),m=h(n(31855)),V=n(41521),y=n(72600),S=h(n(77631)),k=h(n(54824));function h(c){return c&&c.__esModule?c:{default:c}}function l(c,f){f===void 0&&(f={});var d=f,i=d.placement,s=i===void 0?c.placement:i,u=d.strategy,C=u===void 0?c.strategy:u,v=d.boundary,g=v===void 0?V.clippingParents:v,p=d.rootBoundary,N=p===void 0?V.viewport:p,b=d.elementContext,B=b===void 0?V.popper:b,L=d.altBoundary,w=L===void 0?!1:L,T=d.padding,x=T===void 0?0:T,A=(0,S.default)(typeof x!="number"?x:(0,k.default)(x,V.basePlacements)),E=B===V.popper?V.reference:V.popper,M=c.rects.popper,D=c.elements[w?E:B],P=(0,e.default)((0,y.isElement)(D)?D:D.contextElement||(0,a.default)(c.elements.popper),g,N,C),R=(0,t.default)(c.elements.reference),j=(0,o.default)({reference:R,element:M,strategy:"absolute",placement:s}),F=(0,m.default)(Object.assign({},M,j)),W=B===V.popper?F:R,_={top:P.top-W.top+A.top,bottom:W.bottom-P.bottom+A.bottom,left:P.left-W.left+A.left,right:W.right-P.right+A.right},K=c.modifiersData.offset;if(B===V.popper&&K){var H=K[s];Object.keys(_).forEach(function($){var X=[V.right,V.bottom].indexOf($)>=0?1:-1,J=[V.top,V.bottom].indexOf($)>=0?"y":"x";_[$]+=H[J]*X})}return _}},54824:function(I,r){"use strict";r.__esModule=!0,r.default=n;function n(e,a){return a.reduce(function(t,o){return t[o]=e,t},{})}},39571:function(I,r){"use strict";r.__esModule=!0,r.default=n;function n(e){return e==="x"?"y":"x"}},38141:function(I,r,n){"use strict";r.__esModule=!0,r.default=a;var e=n(41521);function a(t){return t.split("-")[0]}},92385:function(I,r){"use strict";r.__esModule=!0,r.default=n;function n(){return{top:0,right:0,bottom:0,left:0}}},7770:function(I,r){"use strict";r.__esModule=!0,r.default=n;function n(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}},79641:function(I,r){"use strict";r.__esModule=!0,r.default=e;var n={left:"right",right:"left",bottom:"top",top:"bottom"};function e(a){return a.replace(/left|right|bottom|top/g,function(t){return n[t]})}},71976:function(I,r){"use strict";r.__esModule=!0,r.default=e;var n={start:"end",end:"start"};function e(a){return a.replace(/start|end/g,function(t){return n[t]})}},14380:function(I,r){"use strict";r.__esModule=!0,r.default=n;function n(e){return e.split("-")[1]}},69031:function(I,r){"use strict";r.__esModule=!0,r.round=r.min=r.max=void 0;var n=r.max=Math.max,e=r.min=Math.min,a=r.round=Math.round},46343:function(I,r){"use strict";r.__esModule=!0,r.default=n;function n(e){var a=e.reduce(function(t,o){var m=t[o.name];return t[o.name]=m?Object.assign({},m,o,{options:Object.assign({},m.options,o.options),data:Object.assign({},m.data,o.data)}):o,t},{});return Object.keys(a).map(function(t){return a[t]})}},77631:function(I,r,n){"use strict";r.__esModule=!0,r.default=t;var e=a(n(92385));function a(o){return o&&o.__esModule?o:{default:o}}function t(o){return Object.assign({},(0,e.default)(),o)}},17859:function(I,r,n){"use strict";r.__esModule=!0,r.default=t;var e=n(41521);function a(o){var m=new Map,V=new Set,y=[];o.forEach(function(k){m.set(k.name,k)});function S(k){V.add(k.name);var h=[].concat(k.requires||[],k.requiresIfExists||[]);h.forEach(function(l){if(!V.has(l)){var c=m.get(l);c&&S(c)}}),y.push(k)}return o.forEach(function(k){V.has(k.name)||S(k)}),y}function t(o){var m=a(o);return e.modifierPhases.reduce(function(V,y){return V.concat(m.filter(function(S){return S.phase===y}))},[])}},31855:function(I,r){"use strict";r.__esModule=!0,r.default=n;function n(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}},97353:function(I,r){"use strict";r.__esModule=!0,r.default=n;function n(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(a){return a.brand+"/"+a.version}).join(" "):navigator.userAgent}},76770:function(I,r,n){"use strict";r.__esModule=!0,r.within=a,r.withinMaxClamp=t;var e=n(69031);function a(o,m,V){return(0,e.max)(o,(0,e.min)(m,V))}function t(o,m,V){var y=a(o,m,V);return y>V?V:y}},63935:function(I,r){"use strict";r.__esModule=!0,r.Fragment=r.EMPTY_OBJ=r.Component=void 0,r._CI=Et,r._HI=ke,r._M=Ke,r._MCCC=Ot,r._ME=Pt,r._MFCC=Rt,r._MP=xt,r._MR=ot,r._RFC=Ct,r.__render=Ft,r.createComponentVNode=_,r.createFragment=H,r.createPortal=re,r.createRef=Yt,r.createRenderer=kn,r.createTextVNode=K,r.createVNode=R,r.directClone=J,r.findDOMfromVNode=N,r.forwardRef=Xt,r.getFlagsForElementVnode=pe,r.linkEvent=h,r.normalizeProps=$,r.options=void 0,r.render=Wt,r.rerender=_t,r.version=void 0;var n=Array.isArray;function e(O){var U=typeof O;return U==="string"||U==="number"}function a(O){return O==null}function t(O){return O===null||O===!1||O===!0||O===void 0}function o(O){return typeof O=="function"}function m(O){return typeof O=="string"}function V(O){return typeof O=="number"}function y(O){return O===null}function S(O){return O===void 0}function k(O,U){var z={};if(O)for(var G in O)z[G]=O[G];if(U)for(var Q in U)z[Q]=U[Q];return z}function h(O,U){return o(U)?{data:O,event:U}:null}function l(O){return!y(O)&&typeof O=="object"}var c=r.EMPTY_OBJ={},f=r.Fragment="$F";function d(O){return O.substr(2).toLowerCase()}function i(O,U){O.appendChild(U)}function s(O,U,z){y(z)?i(O,U):O.insertBefore(U,z)}function u(O,U){return U?document.createElementNS("http://www.w3.org/2000/svg",O):document.createElement(O)}function C(O,U,z){O.replaceChild(U,z)}function v(O,U){O.removeChild(U)}function g(O){for(var U=0;U0,Le=y(ie),Ie=m(ie)&&ie[0]===D;Te||Le||Ie?(z=z||U.slice(0,ee),(Te||Ie)&&(ne=J(ne)),(Le||Ie)&&(ne.key=D+ee),z.push(ne)):z&&z.push(ne),ne.flags|=65536}}z=z||U,z.length===0?G=1:G=8}else z=U,z.flags|=65536,U.flags&81920&&(z=J(U)),G=2;return O.children=z,O.childFlags=G,O}function ke(O){return t(O)||e(O)?K(O,null):n(O)?H(O,0,null):O.flags&16384?J(O):O}var he="http://www.w3.org/1999/xlink",oe="http://www.w3.org/XML/1998/namespace",Z={"xlink:actuate":he,"xlink:arcrole":he,"xlink:href":he,"xlink:role":he,"xlink:show":he,"xlink:title":he,"xlink:type":he,"xml:base":oe,"xml:lang":oe,"xml:space":oe};function q(O){return{onClick:O,onDblClick:O,onFocusIn:O,onFocusOut:O,onKeyDown:O,onKeyPress:O,onKeyUp:O,onMouseDown:O,onMouseMove:O,onMouseUp:O,onTouchEnd:O,onTouchMove:O,onTouchStart:O}}var ue=q(0),se=q(null),te=q(!0);function ye(O,U){var z=U.$EV;return z||(z=U.$EV=q(null)),z[O]||++ue[O]===1&&(se[O]=ce(O)),z}function fe(O,U){var z=U.$EV;z&&z[O]&&(--ue[O]===0&&(document.removeEventListener(d(O),se[O]),se[O]=null),z[O]=null)}function Ne(O,U,z,G){if(o(z))ye(O,G)[O]=z;else if(l(z)){if(A(U,z))return;ye(O,G)[O]=z}else fe(O,G)}function Se(O){return o(O.composedPath)?O.composedPath()[0]:O.target}function ge(O,U,z,G){var Q=Se(O);do{if(U&&Q.disabled)return;var ee=Q.$EV;if(ee){var ne=ee[z];if(ne&&(G.dom=Q,ne.event?ne.event(ne.data,O):ne(O),O.cancelBubble))return}Q=Q.parentNode}while(!y(Q))}function Be(){this.cancelBubble=!0,this.immediatePropagationStopped||this.stopImmediatePropagation()}function we(){return this.defaultPrevented}function xe(){return this.cancelBubble}function Oe(O){var U={dom:document};return O.isDefaultPrevented=we,O.isPropagationStopped=xe,O.stopPropagation=Be,Object.defineProperty(O,"currentTarget",{configurable:!0,get:function(){function z(){return U.dom}return z}()}),U}function We(O){return function(U){if(U.button!==0){U.stopPropagation();return}ge(U,!0,O,Oe(U))}}function be(O){return function(U){ge(U,!1,O,Oe(U))}}function ce(O){var U=O==="onClick"||O==="onDblClick"?We(O):be(O);return document.addEventListener(d(O),U),U}function le(O,U){var z=document.createElement("i");return z.innerHTML=U,z.innerHTML===O.innerHTML}function ve(O,U,z){if(O[U]){var G=O[U];G.event?G.event(G.data,z):G(z)}else{var Q=U.toLowerCase();O[Q]&&O[Q](z)}}function de(O,U){var z=function(Q){var ee=this.$V;if(ee){var ne=ee.props||c,ie=ee.dom;if(m(O))ve(ne,O,Q);else for(var Te=0;Te-1&&U.options[ee]&&(ie=U.options[ee].value),z&&a(ie)&&(ie=O.defaultValue),Ge(G,ie)}}var Bt=de("onInput",pt),Lt=de("onChange");function It(O,U){Ve(O,"input",Bt),U.onChange&&Ve(O,"change",Lt)}function pt(O,U,z){var G=O.value,Q=U.value;if(a(G)){if(z){var ee=O.defaultValue;!a(ee)&&ee!==Q&&(U.defaultValue=ee,U.value=ee)}}else Q!==G&&(U.defaultValue=G,U.value=G)}function wt(O,U,z,G,Q,ee){O&64?ze(G,z):O&256?ft(G,z,Q,U):O&128&&pt(G,z,Q),ee&&(z.$V=U)}function Gt(O,U,z){O&64?Ue(U,z):O&256?St(U):O&128&&It(U,z)}function Tt(O){return O.type&&Ae(O.type)?!a(O.checked):!a(O.value)}function Yt(){return{current:null}}function Xt(O){return{render:O}}function lt(O){O&&!M(O,null)&&O.current&&(O.current=null)}function ot(O,U,z){O&&(o(O)||O.current!==void 0)&&z.push(function(){!M(O,U)&&O.current!==void 0&&(O.current=U)})}function Xe(O,U){Qe(O),b(O,U)}function Qe(O){var U=O.flags,z=O.children,G;if(U&481){G=O.ref;var Q=O.props;lt(G);var ee=O.childFlags;if(!y(Q))for(var ne=Object.keys(Q),ie=0,Te=ne.length;ie0;ne&&(ee=Tt(z),ee&&Gt(U,G,z));for(var ie in z)ht(ie,null,z[ie],G,Q,ee,null);ne&&wt(U,O,G,z,!0,ee)}function At(O,U,z){var G=ke(O.render(U,O.state,z)),Q=z;return o(O.getChildContext)&&(Q=k(z,O.getChildContext())),O.$CX=Q,G}function Et(O,U,z,G,Q,ee){var ne=new U(z,G),ie=ne.$N=!!(U.getDerivedStateFromProps||ne.getSnapshotBeforeUpdate);if(ne.$SVG=Q,ne.$L=ee,O.children=ne,ne.$BS=!1,ne.context=G,ne.props===c&&(ne.props=z),ie)ne.state=L(ne,z,ne.state);else if(o(ne.componentWillMount)){ne.$BR=!0,ne.componentWillMount();var Te=ne.$PS;if(!y(Te)){var Le=ne.state;if(y(Le))ne.state=Te;else for(var Ie in Te)Le[Ie]=Te[Ie];ne.$PS=null}ne.$BR=!1}return ne.$LI=At(ne,z,G),ne}function Ct(O,U){var z=O.props||c;return O.flags&32768?O.type.render(z,O.ref,U):O.type(z,U)}function Ke(O,U,z,G,Q,ee){var ne=O.flags|=16384;ne&481?Pt(O,U,z,G,Q,ee):ne&4?nn(O,U,z,G,Q,ee):ne&8?(on(O,U,z,G,Q,ee),Rt(O,ee)):ne&512||ne&16?Mt(O,U,Q):ne&8192?tn(O,z,U,G,Q,ee):ne&1024&&en(O,z,U,Q,ee)}function en(O,U,z,G,Q){Ke(O.children,O.ref,U,!1,null,Q);var ee=ae();Mt(ee,z,G),O.dom=ee.dom}function tn(O,U,z,G,Q,ee){var ne=O.children,ie=O.childFlags;ie&12&&ne.length===0&&(ie=O.childFlags=2,ne=O.children=ae()),ie===2?Ke(ne,z,U,G,Q,ee):nt(ne,z,U,G,Q,ee)}function Mt(O,U,z){var G=O.dom=document.createTextNode(O.children);y(U)||s(U,G,z)}function Pt(O,U,z,G,Q,ee){var ne=O.flags,ie=O.props,Te=O.className,Le=O.childFlags,Ie=O.dom=u(O.type,G=G||(ne&32)>0),Ee=O.children;if(!a(Te)&&Te!==""&&(G?Ie.setAttribute("class",Te):Ie.className=Te),Le===16)x(Ie,Ee);else if(Le!==1){var Pe=G&&O.type!=="foreignObject";Le===2?(Ee.flags&16384&&(O.children=Ee=J(Ee)),Ke(Ee,Ie,z,Pe,null,ee)):(Le===8||Le===4)&&nt(Ee,Ie,z,Pe,null,ee)}y(U)||s(U,Ie,Q),y(ie)||xt(O,ne,ie,Ie,G),ot(O.ref,Ie,ee)}function nt(O,U,z,G,Q,ee){for(var ne=0;nePe)&&(Ie=N(ne[Pe-1],!1).nextSibling)}vt(Te,Le,ne,ie,z,G,Q,Ie,O,ee)}function sn(O,U,z,G){var Q=O.ref,ee=U.ref,ne=U.children;if(vt(O.childFlags,U.childFlags,O.children,ne,Q,z,!1,null,O,G),U.dom=O.dom,Q!==ee&&!t(ne)){var ie=ne.dom;v(Q,ie),i(ee,ie)}}function mn(O,U,z,G,Q,ee){var ne=U.dom=O.dom,ie=O.props,Te=U.props,Le=!1,Ie=!1,Ee;if(G=G||(Q&32)>0,ie!==Te){var Pe=ie||c;if(Ee=Te||c,Ee!==c){Le=(Q&448)>0,Le&&(Ie=Tt(Ee));for(var Fe in Ee){var Me=Pe[Fe],He=Ee[Fe];Me!==He&&ht(Fe,Me,He,ne,G,Ie,O)}}if(Pe!==c)for(var Re in Pe)a(Ee[Re])&&!a(Pe[Re])&&ht(Re,Pe[Re],null,ne,G,Ie,O)}var et=U.children,Ye=U.className;O.className!==Ye&&(a(Ye)?ne.removeAttribute("class"):G?ne.setAttribute("class",Ye):ne.className=Ye),Q&4096?un(ne,et):vt(O.childFlags,U.childFlags,O.children,et,ne,z,G&&U.type!=="foreignObject",null,O,ee),Le&&wt(Q,U,ne,Ee,!1,Ie);var at=U.ref,Je=O.ref;Je!==at&&(lt(Je),ot(at,ne,ee))}function fn(O,U,z,G,Q,ee){Qe(O),nt(U,z,G,Q,N(O,!0),ee),b(O,z)}function vt(O,U,z,G,Q,ee,ne,ie,Te,Le){switch(O){case 2:switch(U){case 2:Ze(z,G,Q,ee,ne,ie,Le);break;case 1:Xe(z,Q);break;case 16:Qe(z),x(Q,G);break;default:fn(z,G,Q,ee,ne,Le);break}break;case 1:switch(U){case 2:Ke(G,Q,ee,ne,ie,Le);break;case 1:break;case 16:x(Q,G);break;default:nt(G,Q,ee,ne,ie,Le);break}break;case 16:switch(U){case 16:ln(z,G,Q);break;case 2:ut(Q),Ke(G,Q,ee,ne,ie,Le);break;case 1:ut(Q);break;default:ut(Q),nt(G,Q,ee,ne,ie,Le);break}break;default:switch(U){case 16:rt(z),x(Q,G);break;case 2:dt(Q,Te,z),Ke(G,Q,ee,ne,ie,Le);break;case 1:dt(Q,Te,z);break;default:var Ie=z.length|0,Ee=G.length|0;Ie===0?Ee>0&&nt(G,Q,ee,ne,ie,Le):Ee===0?dt(Q,Te,z):U===8&&O===8?Nn(z,G,Q,ee,ne,Ie,Ee,ie,Te,Le):gn(z,G,Q,ee,ne,Ie,Ee,ie,Le);break}break}}function pn(O,U,z,G,Q){Q.push(function(){O.componentDidUpdate(U,z,G)})}function Dt(O,U,z,G,Q,ee,ne,ie,Te){var Le=O.state,Ie=O.props,Ee=!!O.$N,Pe=o(O.shouldComponentUpdate);if(Ee&&(U=L(O,z,U!==Le?k(Le,U):U)),ne||!Pe||Pe&&O.shouldComponentUpdate(z,U,Q)){!Ee&&o(O.componentWillUpdate)&&O.componentWillUpdate(z,U,Q),O.props=z,O.state=U,O.context=Q;var Fe=null,Me=At(O,z,Q);Ee&&o(O.getSnapshotBeforeUpdate)&&(Fe=O.getSnapshotBeforeUpdate(Ie,Le)),Ze(O.$LI,Me,G,O.$CX,ee,ie,Te),O.$LI=Me,o(O.componentDidUpdate)&&pn(O,Ie,Le,Fe,Te)}else O.props=z,O.state=U,O.context=Q}function hn(O,U,z,G,Q,ee,ne){var ie=U.children=O.children;if(!y(ie)){ie.$L=ne;var Te=U.props||c,Le=U.ref,Ie=O.ref,Ee=ie.state;if(!ie.$N){if(o(ie.componentWillReceiveProps)){if(ie.$BR=!0,ie.componentWillReceiveProps(Te,G),ie.$UN)return;ie.$BR=!1}y(ie.$PS)||(Ee=k(Ee,ie.$PS),ie.$PS=null)}Dt(ie,Ee,Te,z,G,Q,!1,ee,ne),Ie!==Le&&(lt(Ie),ot(Le,ie,ne))}}function Cn(O,U,z,G,Q,ee,ne){var ie=!0,Te=U.props||c,Le=U.ref,Ie=O.props,Ee=!a(Le),Pe=O.children;if(Ee&&o(Le.onComponentShouldUpdate)&&(ie=Le.onComponentShouldUpdate(Ie,Te)),ie!==!1){Ee&&o(Le.onComponentWillUpdate)&&Le.onComponentWillUpdate(Ie,Te);var Fe=ke(Ct(U,G));Ze(Pe,Fe,z,G,Q,ee,ne),U.children=Fe,Ee&&o(Le.onComponentDidUpdate)&&Le.onComponentDidUpdate(Ie,Te)}else U.children=Pe}function vn(O,U){var z=U.children,G=U.dom=O.dom;z!==O.children&&(G.nodeValue=z)}function gn(O,U,z,G,Q,ee,ne,ie,Te){for(var Le=ee>ne?ne:ee,Ie=0,Ee,Pe;Iene)for(Ie=Le;IeIe||Pe>Ee)break e;Fe=O[Pe],Me=U[Pe]}for(Fe=O[Ie],Me=U[Ee];Fe.key===Me.key;){if(Me.flags&16384&&(U[Ee]=Me=J(Me)),Ze(Fe,Me,z,G,Q,ie,Le),O[Ie]=Me,Ie--,Ee--,Pe>Ie||Pe>Ee)break e;Fe=O[Ie],Me=U[Ee]}}if(Pe>Ie){if(Pe<=Ee)for(He=Ee+1,Re=HeEe)for(;Pe<=Ie;)Xe(O[Pe++],z);else Vn(O,U,G,ee,ne,Ie,Ee,Pe,z,Q,ie,Te,Le)}function Vn(O,U,z,G,Q,ee,ne,ie,Te,Le,Ie,Ee,Pe){var Fe,Me,He,Re=0,et=ie,Ye=ie,at=ee-ie+1,Je=ne-ie+1,ct=new Int32Array(Je+1),tt=at===G,Vt=!1,$e=0,it=0;if(Q<4||(at|Je)<32)for(Re=et;Re<=ee;++Re)if(Fe=O[Re],itie?Vt=!0:$e=ie,Me.flags&16384&&(U[ie]=Me=J(Me)),Ze(Fe,Me,Te,z,Le,Ie,Pe),++it;break}!tt&&ie>ne&&Xe(Fe,Te)}else tt||Xe(Fe,Te);else{var Kt={};for(Re=Ye;Re<=ne;++Re)Kt[U[Re].key]=Re;for(Re=et;Re<=ee;++Re)if(Fe=O[Re],itet;)Xe(O[et++],Te);ct[ie-Ye]=Re+1,$e>ie?Vt=!0:$e=ie,Me=U[ie],Me.flags&16384&&(U[ie]=Me=J(Me)),Ze(Fe,Me,Te,z,Le,Ie,Pe),++it}else tt||Xe(Fe,Te);else tt||Xe(Fe,Te)}if(tt)dt(Te,Ee,O),nt(U,Te,z,Le,Ie,Pe);else if(Vt){var Ht=bn(ct);for(ie=Ht.length-1,Re=Je-1;Re>=0;Re--)ct[Re]===0?($e=Re+Ye,Me=U[$e],Me.flags&16384&&(U[$e]=Me=J(Me)),He=$e+1,Ke(Me,Te,z,Le,He=0;Re--)ct[Re]===0&&($e=Re+Ye,Me=U[$e],Me.flags&16384&&(U[$e]=Me=J(Me)),He=$e+1,Ke(Me,Te,z,Le,Hejt&&(jt=Te,qe=new Int32Array(Te),st=new Int32Array(Te));z>1,O[qe[ie]]0&&(st[z]=qe[ee-1]),qe[ee]=z)}ee=Q+1;var Le=new Int32Array(ee);for(ne=qe[ee-1];ee-- >0;)Le[ee]=ne,ne=st[ne],qe[ee]=0;return Le}var yn=typeof document!="undefined";yn&&window.Node&&(Node.prototype.$EV=null,Node.prototype.$V=null);function Ft(O,U,z,G){var Q=[],ee=U.$V;w.v=!0,a(ee)?a(O)||(O.flags&16384&&(O=J(O)),Ke(O,U,G,!1,null,Q),U.$V=O,ee=O):a(O)?(Xe(ee,U),U.$V=null):(O.flags&16384&&(O=J(O)),Ze(ee,O,U,G,!1,null,Q),ee=U.$V=O),g(Q),w.v=!1,o(z)&&z(),o(T.renderComplete)&&T.renderComplete(ee,U)}function Wt(O,U,z,G){z===void 0&&(z=null),G===void 0&&(G=c),Ft(O,U,z,G)}function kn(O){return function(){function U(z,G,Q,ee){O||(O=z),Wt(G,O,Q,ee)}return U}()}var mt=[],Sn=typeof Promise!="undefined"?Promise.resolve().then.bind(Promise.resolve()):function(O){window.setTimeout(O,0)},gt=!1;function Ut(O,U,z,G){var Q=O.$PS;if(o(U)&&(U=U(Q?k(O.state,Q):O.state,O.props,O.context)),a(Q))O.$PS=U;else for(var ee in U)Q[ee]=U[ee];if(O.$BR)o(z)&&O.$L.push(z.bind(O));else{if(!w.v&&mt.length===0){zt(O,G),o(z)&&z.call(O);return}if(mt.indexOf(O)===-1&&mt.push(O),G&&(O.$F=!0),gt||(gt=!0,Sn(_t)),o(z)){var ne=O.$QU;ne||(ne=O.$QU=[]),ne.push(z)}}}function Bn(O){for(var U=O.$QU,z=0;z=0;--W){var _=this.tryEntries[W],K=_.completion;if(_.tryLoc==="root")return F("end");if(_.tryLoc<=this.prev){var H=a.call(_,"catchLoc"),$=a.call(_,"finallyLoc");if(H&&$){if(this.prev<_.catchLoc)return F(_.catchLoc,!0);if(this.prev<_.finallyLoc)return F(_.finallyLoc)}else if(H){if(this.prev<_.catchLoc)return F(_.catchLoc,!0)}else if($){if(this.prev<_.finallyLoc)return F(_.finallyLoc)}else throw new Error("try statement without catch or finally")}}}return P}(),abrupt:function(){function P(R,j){for(var F=this.tryEntries.length-1;F>=0;--F){var W=this.tryEntries[F];if(W.tryLoc<=this.prev&&a.call(W,"finallyLoc")&&this.prev=0;--j){var F=this.tryEntries[j];if(F.finallyLoc===R)return this.complete(F.completion,F.afterLoc),A(F),s}}return P}(),catch:function(){function P(R){for(var j=this.tryEntries.length-1;j>=0;--j){var F=this.tryEntries[j];if(F.tryLoc===R){var W=F.completion;if(W.type==="throw"){var _=W.arg;A(F)}return _}}throw new Error("illegal catch attempt")}return P}(),delegateYield:function(){function P(R,j,F){return this.delegate={iterator:M(R),resultName:j,nextLoc:F},this.method==="next"&&(this.arg=o),s}return P}()},n}(I.exports);try{regeneratorRuntime=r}catch(n){typeof globalThis=="object"?globalThis.regeneratorRuntime=r:Function("r","regeneratorRuntime = r")(r)}},16666:function(){"use strict";self.fetch||(self.fetch=function(I,r){return r=r||{},new Promise(function(n,e){var a=new XMLHttpRequest,t=[],o={},m=function(){function y(){return{ok:(a.status/100|0)==2,statusText:a.statusText,status:a.status,url:a.responseURL,text:function(){function S(){return Promise.resolve(a.responseText)}return S}(),json:function(){function S(){return Promise.resolve(a.responseText).then(JSON.parse)}return S}(),blob:function(){function S(){return Promise.resolve(new Blob([a.response]))}return S}(),clone:y,headers:{keys:function(){function S(){return t}return S}(),entries:function(){function S(){return t.map(function(k){return[k,a.getResponseHeader(k)]})}return S}(),get:function(){function S(k){return a.getResponseHeader(k)}return S}(),has:function(){function S(k){return a.getResponseHeader(k)!=null}return S}()}}}return y}();for(var V in a.open(r.method||"get",I,!0),a.onload=function(){a.getAllResponseHeaders().toLowerCase().replace(/^(.+?):/gm,function(y,S){o[S]||t.push(o[S]=S)}),n(m())},a.onerror=e,a.withCredentials=r.credentials=="include",r.headers)a.setRequestHeader(V,r.headers[V]);a.send(r.body||null)})})},50640:function(I,r){"use strict";r.__esModule=!0,r.zipWith=r.zip=r.uniqBy=r.uniq=r.toKeyedArray=r.toArray=r.sortBy=r.sort=r.reduce=r.range=r.map=r.filterMap=r.filter=void 0;function n(u,C){var v=typeof Symbol!="undefined"&&u[Symbol.iterator]||u["@@iterator"];if(v)return(v=v.call(u)).next.bind(v);if(Array.isArray(u)||(v=e(u))||C&&u&&typeof u.length=="number"){v&&(u=v);var g=0;return function(){return g>=u.length?{done:!0}:{done:!1,value:u[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.")}function e(u,C){if(u){if(typeof u=="string")return a(u,C);var v=Object.prototype.toString.call(u).slice(8,-1);if(v==="Object"&&u.constructor&&(v=u.constructor.name),v==="Map"||v==="Set")return Array.from(u);if(v==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(v))return a(u,C)}}function a(u,C){(C==null||C>u.length)&&(C=u.length);for(var v=0,g=new Array(C);vI)return 1}return 0},k=r.sortBy=function(){function d(){for(var h=arguments.length,v=new Array(h),g=0;gL)return 1}return 0},k=r.sortBy=function(){function u(){for(var C=arguments.length,v=new Array(C),g=0;g1?N-1:0),S=1;S1?V-1:0),S=1;S1?S-1:0),p=1;p1?k-1:0),l=1;l1?S-1:0),h=1;h1?k-1:0),l=1;ll?l:k}return S}(),e=r.clamp01=function(){function S(k){return k<0?0:k>1?1:k}return S}(),a=r.scale=function(){function S(k,p,l){return(k-p)/(l-p)}return S}(),t=r.round=function(){function S(k,p){if(!k||isNaN(k))return k;var l,c,f,u;return p|=0,l=Math.pow(10,p),k*=l,u=+(k>0)|-(k<0),f=Math.abs(k%1)>=.4999999999854481,c=Math.floor(k),f&&(k=c+(u>0)),(f?k:Math.round(k))/l}return S}(),o=r.toFixed=function(){function S(k,p){return p===void 0&&(p=0),Number(k).toFixed(Math.max(p,0))}return S}(),m=r.inRange=function(){function S(k,p){return p&&k>=p[0]&&k<=p[1]}return S}(),N=r.keyOfMatchingRange=function(){function S(k,p){for(var l=0,c=Object.keys(p);ll?l:k}return S}(),e=r.clamp01=function(){function S(k){return k<0?0:k>1?1:k}return S}(),a=r.scale=function(){function S(k,h,l){return(k-h)/(l-h)}return S}(),t=r.round=function(){function S(k,h){if(!k||isNaN(k))return k;var l,c,f,d;return h|=0,l=Math.pow(10,h),k*=l,d=+(k>0)|-(k<0),f=Math.abs(k%1)>=.4999999999854481,c=Math.floor(k),f&&(k=c+(d>0)),(f?k:Math.round(k))/l}return S}(),o=r.toFixed=function(){function S(k,h){return h===void 0&&(h=0),Number(k).toFixed(Math.max(h,0))}return S}(),m=r.inRange=function(){function S(k,h){return h&&k>=h[0]&&k<=h[1]}return S}(),V=r.keyOfMatchingRange=function(){function S(k,h){for(var l=0,c=Object.keys(h);l1?u-1:0),s=1;s1?b-1:0),I=1;I=0;--se){var ne=this.tryEntries[se],be=ne.completion;if(ne.tryLoc==="root")return ue("end");if(ne.tryLoc<=this.prev){var fe=V.call(ne,"catchLoc"),ge=V.call(ne,"finallyLoc");if(fe&&ge){if(this.prev=0;--ue){var se=this.tryEntries[ue];if(se.tryLoc<=this.prev&&V.call(se,"finallyLoc")&&this.prev=0;--q){var ue=this.tryEntries[q];if(ue.finallyLoc===Z)return this.complete(ue.completion,ue.afterLoc),ye(ue),D}}return oe}(),catch:function(){function oe(Z){for(var q=this.tryEntries.length-1;q>=0;--q){var ue=this.tryEntries[q];if(ue.tryLoc===Z){var se=ue.completion;if(se.type==="throw"){var ne=se.arg;ye(ue)}return ne}}throw Error("illegal catch attempt")}return oe}(),delegateYield:function(){function oe(Z,q,ue){return this.delegate={iterator:he(Z),resultName:q,nextLoc:ue},this.method==="next"&&(this.arg=v),D}return oe}()},g}function e(v,g,C,V,b,B,I){try{var w=v[B](I),T=w.value}catch(A){C(A);return}w.done?g(T):Promise.resolve(T).then(V,b)}function a(v){return function(){var g=this,C=arguments;return new Promise(function(V,b){var B=v.apply(g,C);function I(T){e(B,V,b,I,w,"next",T)}function w(T){e(B,V,b,I,w,"throw",T)}I(void 0)})}}/** + */var a=r.createStore=function(){function S(k,h){if(h)return h(S)(k);var l,c=[],f=function(){function s(){return l}return s}(),d=function(){function s(u){c.push(u)}return s}(),i=function(){function s(u){l=k(l,u);for(var C=0;C1?d-1:0),s=1;s1?b-1:0),L=1;L=0;--se){var te=this.tryEntries[se],ye=te.completion;if(te.tryLoc==="root")return ue("end");if(te.tryLoc<=this.prev){var fe=N.call(te,"catchLoc"),Ne=N.call(te,"finallyLoc");if(fe&&Ne){if(this.prev=0;--ue){var se=this.tryEntries[ue];if(se.tryLoc<=this.prev&&N.call(se,"finallyLoc")&&this.prev=0;--q){var ue=this.tryEntries[q];if(ue.finallyLoc===Z)return this.complete(ue.completion,ue.afterLoc),Ce(ue),j}}return oe}(),catch:function(){function oe(Z){for(var q=this.tryEntries.length-1;q>=0;--q){var ue=this.tryEntries[q];if(ue.tryLoc===Z){var se=ue.completion;if(se.type==="throw"){var te=se.arg;Ce(ue)}return te}}throw Error("illegal catch attempt")}return oe}(),delegateYield:function(){function oe(Z,q,ue){return this.delegate={iterator:he(Z),resultName:q,nextLoc:ue},this.method==="next"&&(this.arg=v),j}return oe}()},g}function e(v,g,p,N,b,B,L){try{var w=v[B](L),T=w.value}catch(x){p(x);return}w.done?g(T):Promise.resolve(T).then(N,b)}function a(v){return function(){var g=this,p=arguments;return new Promise(function(N,b){var B=v.apply(g,p);function L(T){e(B,N,b,L,w,"next",T)}function w(T){e(B,N,b,L,w,"throw",T)}L(void 0)})}}/** * Browser-agnostic abstraction of key-value web storage. * * @file * @copyright 2020 Aleksej Komarov * @license MIT - */var t=r.IMPL_MEMORY=0,o=r.IMPL_LOCAL_STORAGE=1,m=r.IMPL_INDEXED_DB=2,N=1,y="para-tgui",S="storage-v1",k="readonly",p="readwrite",l=function(g){return function(){try{return!!g()}catch(C){return!1}}},c=l(function(){return window.localStorage&&window.localStorage.getItem}),f=l(function(){return(window.indexedDB||window.msIndexedDB)&&(window.IDBTransaction||window.msIDBTransaction)}),u=function(){function v(){this.impl=t,this.store={}}var g=v.prototype;return g.get=function(){function C(V){return this.store[V]}return C}(),g.set=function(){function C(V,b){this.store[V]=b}return C}(),g.remove=function(){function C(V){this.store[V]=void 0}return C}(),g.clear=function(){function C(){this.store={}}return C}(),v}(),i=function(){function v(){this.impl=o}var g=v.prototype;return g.get=function(){function C(V){var b=localStorage.getItem(V);if(typeof b=="string")return JSON.parse(b)}return C}(),g.set=function(){function C(V,b){localStorage.setItem(V,JSON.stringify(b))}return C}(),g.remove=function(){function C(V){localStorage.removeItem(V)}return C}(),g.clear=function(){function C(){localStorage.clear()}return C}(),v}(),s=function(){function v(){this.impl=m,this.dbPromise=new Promise(function(C,V){var b=window.indexedDB||window.msIndexedDB,B=b.open(y,N);B.onupgradeneeded=function(){try{B.result.createObjectStore(S)}catch(I){V(new Error("Failed to upgrade IDB: "+B.error))}},B.onsuccess=function(){return C(B.result)},B.onerror=function(){V(new Error("Failed to open IDB: "+B.error))}})}var g=v.prototype;return g.getStore=function(){function C(V){return this.dbPromise.then(function(b){return b.transaction(S,V).objectStore(S)})}return C}(),g.get=function(){var C=a(n().mark(function(){function b(B){var I;return n().wrap(function(){function w(T){for(;;)switch(T.prev=T.next){case 0:return T.next=2,this.getStore(k);case 2:return I=T.sent,T.abrupt("return",new Promise(function(A,x){var E=I.get(B);E.onsuccess=function(){return A(E.result)},E.onerror=function(){return x(E.error)}}));case 4:case"end":return T.stop()}}return w}(),b,this)}return b}()));function V(b){return C.apply(this,arguments)}return V}(),g.set=function(){var C=a(n().mark(function(){function b(B,I){var w;return n().wrap(function(){function T(A){for(;;)switch(A.prev=A.next){case 0:return I===null&&(I=void 0),A.next=3,this.getStore(p);case 3:w=A.sent,w.put(I,B);case 5:case"end":return A.stop()}}return T}(),b,this)}return b}()));function V(b,B){return C.apply(this,arguments)}return V}(),g.remove=function(){var C=a(n().mark(function(){function b(B){var I;return n().wrap(function(){function w(T){for(;;)switch(T.prev=T.next){case 0:return T.next=2,this.getStore(p);case 2:I=T.sent,I.delete(B);case 4:case"end":return T.stop()}}return w}(),b,this)}return b}()));function V(b){return C.apply(this,arguments)}return V}(),g.clear=function(){var C=a(n().mark(function(){function b(){var B;return n().wrap(function(){function I(w){for(;;)switch(w.prev=w.next){case 0:return w.next=2,this.getStore(p);case 2:B=w.sent,B.clear();case 4:case"end":return w.stop()}}return I}(),b,this)}return b}()));function V(){return C.apply(this,arguments)}return V}(),v}(),d=function(){function v(){this.backendPromise=a(n().mark(function(){function C(){var V;return n().wrap(function(){function b(B){for(;;)switch(B.prev=B.next){case 0:if(!f()){B.next=10;break}return B.prev=1,V=new s,B.next=5,V.dbPromise;case 5:return B.abrupt("return",V);case 8:B.prev=8,B.t0=B.catch(1);case 10:if(!c()){B.next=12;break}return B.abrupt("return",new i);case 12:return B.abrupt("return",new u);case 13:case"end":return B.stop()}}return b}(),C,null,[[1,8]])}return C}()))()}var g=v.prototype;return g.get=function(){var C=a(n().mark(function(){function b(B){var I;return n().wrap(function(){function w(T){for(;;)switch(T.prev=T.next){case 0:return T.next=2,this.backendPromise;case 2:return I=T.sent,T.abrupt("return",I.get(B));case 4:case"end":return T.stop()}}return w}(),b,this)}return b}()));function V(b){return C.apply(this,arguments)}return V}(),g.set=function(){var C=a(n().mark(function(){function b(B,I){var w;return n().wrap(function(){function T(A){for(;;)switch(A.prev=A.next){case 0:return A.next=2,this.backendPromise;case 2:return w=A.sent,A.abrupt("return",w.set(B,I));case 4:case"end":return A.stop()}}return T}(),b,this)}return b}()));function V(b,B){return C.apply(this,arguments)}return V}(),g.remove=function(){var C=a(n().mark(function(){function b(B){var I;return n().wrap(function(){function w(T){for(;;)switch(T.prev=T.next){case 0:return T.next=2,this.backendPromise;case 2:return I=T.sent,T.abrupt("return",I.remove(B));case 4:case"end":return T.stop()}}return w}(),b,this)}return b}()));function V(b){return C.apply(this,arguments)}return V}(),g.clear=function(){var C=a(n().mark(function(){function b(){var B;return n().wrap(function(){function I(w){for(;;)switch(w.prev=w.next){case 0:return w.next=2,this.backendPromise;case 2:return B=w.sent,w.abrupt("return",B.clear());case 4:case"end":return w.stop()}}return I}(),b,this)}return b}()));function V(){return C.apply(this,arguments)}return V}(),v}(),h=r.storage=new d},78234:function(L,r){"use strict";r.__esModule=!0,r.toTitleCase=r.multiline=r.decodeHtmlEntities=r.createSearch=r.createGlobPattern=r.capitalize=r.buildQueryString=void 0;function n(p,l){var c=typeof Symbol!="undefined"&&p[Symbol.iterator]||p["@@iterator"];if(c)return(c=c.call(p)).next.bind(c);if(Array.isArray(p)||(c=e(p))||l&&p&&typeof p.length=="number"){c&&(p=c);var f=0;return function(){return f>=p.length?{done:!0}:{done:!1,value:p[f++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function e(p,l){if(p){if(typeof p=="string")return a(p,l);var c=Object.prototype.toString.call(p).slice(8,-1);if(c==="Object"&&p.constructor&&(c=p.constructor.name),c==="Map"||c==="Set")return Array.from(p);if(c==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(c))return a(p,l)}}function a(p,l){(l==null||l>p.length)&&(l=p.length);for(var c=0,f=new Array(l);c=h.length?{done:!0}:{done:!1,value:h[f++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function e(h,l){if(h){if(typeof h=="string")return a(h,l);var c=Object.prototype.toString.call(h).slice(8,-1);if(c==="Object"&&h.constructor&&(c=h.constructor.name),c==="Map"||c==="Set")return Array.from(h);if(c==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(c))return a(h,l)}}function a(h,l){(l==null||l>h.length)&&(l=h.length);for(var c=0,f=new Array(l);c",apos:"'"};return l.replace(/
/gi,"\n").replace(/<\/?[a-z0-9-_]+[^>]*>/gi,"").replace(c,function(u,i){return f[i]}).replace(/&#?([0-9]+);/gi,function(u,i){var s=parseInt(i,10);return String.fromCharCode(s)}).replace(/&#x?([0-9a-f]+);/gi,function(u,i){var s=parseInt(i,16);return String.fromCharCode(s)})}return p}(),k=r.buildQueryString=function(){function p(l){return Object.keys(l).map(function(c){return encodeURIComponent(c)+"="+encodeURIComponent(l[c])}).join("&")}return p}()},56052:function(L,r){"use strict";r.__esModule=!0,r.throttle=r.sleep=r.debounce=void 0;/** + */var t=r.multiline=function(){function h(l){if(Array.isArray(l))return h(l.join(""));for(var c=l.split("\n"),f,d=n(c),i;!(i=d()).done;)for(var s=i.value,u=0;u",apos:"'"};return l.replace(/
/gi,"\n").replace(/<\/?[a-z0-9-_]+[^>]*>/gi,"").replace(c,function(d,i){return f[i]}).replace(/&#?([0-9]+);/gi,function(d,i){var s=parseInt(i,10);return String.fromCharCode(s)}).replace(/&#x?([0-9a-f]+);/gi,function(d,i){var s=parseInt(i,16);return String.fromCharCode(s)})}return h}(),k=r.buildQueryString=function(){function h(l){return Object.keys(l).map(function(c){return encodeURIComponent(c)+"="+encodeURIComponent(l[c])}).join("&")}return h}()},56052:function(I,r){"use strict";r.__esModule=!0,r.throttle=r.sleep=r.debounce=void 0;/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */var n=r.debounce=function(){function t(o,m,N){N===void 0&&(N=!1);var y;return function(){for(var S=arguments.length,k=new Array(S),p=0;p=m)o.apply(null,p),N=c;else{var f;y=setTimeout(function(){return S.apply(void 0,p)},m-(c-((f=N)!=null?f:0)))}}return S}()}return t}()},73564:function(L,r,n){"use strict";r.__esModule=!0,r.vecSubtract=r.vecScale=r.vecNormalize=r.vecMultiply=r.vecLength=r.vecInverse=r.vecDivide=r.vecAdd=void 0;var e=n(50640);/** + */var n=r.debounce=function(){function t(o,m,V){V===void 0&&(V=!1);var y;return function(){for(var S=arguments.length,k=new Array(S),h=0;h=m)o.apply(null,h),V=c;else{var f;y=setTimeout(function(){return S.apply(void 0,h)},m-(c-((f=V)!=null?f:0)))}}return S}()}return t}()},73564:function(I,r,n){"use strict";r.__esModule=!0,r.vecSubtract=r.vecScale=r.vecNormalize=r.vecMultiply=r.vecLength=r.vecInverse=r.vecDivide=r.vecAdd=void 0;var e=n(50640);/** * N-dimensional vector manipulation functions. * * Vectors are plain number arrays, i.e. [x, y, z]. @@ -58,11 +58,11 @@ * @file * @copyright 2020 Aleksej Komarov * @license MIT - */var a=function(i,s){return i+s},t=function(i,s){return i-s},o=function(i,s){return i*s},m=function(i,s){return i/s},N=r.vecAdd=function(){function u(){for(var i=arguments.length,s=new Array(i),d=0;d=0)&&(k[l]=y[l]);return k}var N=r.BlockQuote=function(){function y(S){var k=S.className,p=m(S,o);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,t.Box,Object.assign({className:(0,a.classes)(["BlockQuote",k])},p)))}return y}()},3051:function(L,r,n){"use strict";r.__esModule=!0,r.unit=r.halfUnit=r.computeBoxProps=r.computeBoxClassName=r.Box=void 0;var e=n(28234),a=n(96524),t=n(92572),o=n(38424),m=["as","className","children"];/** + */function m(y,S){if(y==null)return{};var k={},h=Object.keys(y),l,c;for(c=0;c=0)&&(k[l]=y[l]);return k}var V=r.BlockQuote=function(){function y(S){var k=S.className,h=m(S,o);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,t.Box,Object.assign({className:(0,a.classes)(["BlockQuote",k])},h)))}return y}()},3051:function(I,r,n){"use strict";r.__esModule=!0,r.unit=r.halfUnit=r.computeBoxProps=r.computeBoxClassName=r.Box=void 0;var e=n(28234),a=n(96524),t=n(92572),o=n(38424),m=["as","className","children"];/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */function N(g,C){if(g==null)return{};var V={},b=Object.keys(g),B,I;for(I=0;I=0)&&(V[B]=g[B]);return V}var y=r.unit=function(){function g(C){if(typeof C=="string")return C.endsWith("px")?parseFloat(C)/12+"rem":C;if(typeof C=="number")return C+"rem"}return g}(),S=r.halfUnit=function(){function g(C){if(typeof C=="string")return y(C);if(typeof C=="number")return y(C*.5)}return g}(),k=function(C){return!p(C)},p=function(C){if(typeof C=="string")return o.CSS_COLORS.includes(C)},l=function(C){return function(V,b){(typeof b=="number"||typeof b=="string")&&(V[C]=b)}},c=function(C,V){return function(b,B){(typeof B=="number"||typeof B=="string")&&(b[C]=V(B))}},f=function(C,V){return function(b,B){B&&(b[C]=V)}},u=function(C,V,b){return function(B,I){if(typeof I=="number"||typeof I=="string")for(var w=0;w0&&(V.style=x),V}return g}(),h=r.computeBoxClassName=function(){function g(C){var V=C.textColor||C.color,b=C.backgroundColor;return(0,e.classes)([p(V)&&"color-"+V,p(b)&&"color-bg-"+b])}return g}(),v=r.Box=function(){function g(C){var V=C.as,b=V===void 0?"div":V,B=C.className,I=C.children,w=N(C,m);if(typeof I=="function")return I(d(C));var T=typeof B=="string"?B+" "+h(w):h(w),A=d(w);return(0,a.createVNode)(t.VNodeFlags.HtmlElement,b,T,I,t.ChildFlags.UnknownChildren,A)}return g}();v.defaultHooks=e.pureComponentHooks},91688:function(L,r,n){"use strict";r.__esModule=!0,r.ButtonInput=r.ButtonConfirm=r.ButtonCheckbox=r.Button=void 0;var e=n(96524),a=n(28234),t=n(68100),o=n(81856),m=n(3051),N=n(11253),y=n(58749),S=["className","fluid","icon","iconRotation","iconSpin","color","textColor","disabled","selected","tooltip","tooltipPosition","ellipsis","compact","circular","content","iconColor","iconRight","iconStyle","children","onclick","onClick","multiLine"],k=["checked"],p=["confirmContent","confirmColor","confirmIcon","icon","color","content","onClick"],l=["fluid","content","icon","iconRotation","iconSpin","tooltip","tooltipPosition","color","disabled","placeholder","maxLength","multiLine"];/** + */function V(g,p){if(g==null)return{};var N={},b=Object.keys(g),B,L;for(L=0;L=0)&&(N[B]=g[B]);return N}var y=r.unit=function(){function g(p){if(typeof p=="string")return p.endsWith("px")?parseFloat(p)/12+"rem":p;if(typeof p=="number")return p+"rem"}return g}(),S=r.halfUnit=function(){function g(p){if(typeof p=="string")return y(p);if(typeof p=="number")return y(p*.5)}return g}(),k=function(p){return!h(p)},h=function(p){if(typeof p=="string")return o.CSS_COLORS.includes(p)},l=function(p){return function(N,b){(typeof b=="number"||typeof b=="string")&&(N[p]=b)}},c=function(p,N){return function(b,B){(typeof B=="number"||typeof B=="string")&&(b[p]=N(B))}},f=function(p,N){return function(b,B){B&&(b[p]=N)}},d=function(p,N,b){return function(B,L){if(typeof L=="number"||typeof L=="string")for(var w=0;w0&&(N.style=A),N}return g}(),C=r.computeBoxClassName=function(){function g(p){var N=p.textColor||p.color,b=p.backgroundColor;return(0,e.classes)([h(N)&&"color-"+N,h(b)&&"color-bg-"+b])}return g}(),v=r.Box=function(){function g(p){var N=p.as,b=N===void 0?"div":N,B=p.className,L=p.children,w=V(p,m);if(typeof L=="function")return L(u(p));var T=typeof B=="string"?B+" "+C(w):C(w),x=u(w);return(0,a.createVNode)(t.VNodeFlags.HtmlElement,b,T,L,t.ChildFlags.UnknownChildren,x)}return g}();v.defaultHooks=e.pureComponentHooks},91688:function(I,r,n){"use strict";r.__esModule=!0,r.ButtonInput=r.ButtonConfirm=r.ButtonCheckbox=r.Button=void 0;var e=n(96524),a=n(28234),t=n(68100),o=n(81856),m=n(3051),V=n(11253),y=n(58749),S=["className","fluid","icon","iconRotation","iconSpin","color","textColor","disabled","selected","tooltip","tooltipPosition","ellipsis","compact","circular","content","iconColor","iconRight","iconStyle","children","onclick","onClick","multiLine"],k=["checked"],h=["confirmContent","confirmColor","confirmIcon","icon","color","content","onClick"],l=["fluid","content","icon","iconRotation","iconSpin","tooltip","tooltipPosition","color","disabled","placeholder","maxLength","multiLine"];/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */function c(g,C){g.prototype=Object.create(C.prototype),g.prototype.constructor=g,f(g,C)}function f(g,C){return f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function V(b,B){return b.__proto__=B,b}return V}(),f(g,C)}function u(g,C){if(g==null)return{};var V={},b=Object.keys(g),B,I;for(I=0;I=0)&&(V[B]=g[B]);return V}var i=(0,o.createLogger)("Button"),s=r.Button=function(){function g(C){var V=C.className,b=C.fluid,B=C.icon,I=C.iconRotation,w=C.iconSpin,T=C.color,A=C.textColor,x=C.disabled,E=C.selected,M=C.tooltip,j=C.tooltipPosition,P=C.ellipsis,R=C.compact,D=C.circular,F=C.content,W=C.iconColor,_=C.iconRight,H=C.iconStyle,z=C.children,$=C.onclick,X=C.onClick,J=C.multiLine,ce=u(C,S),re=!!(F||z);$&&i.warn("Lowercase 'onclick' is not supported on Button and lowercase prop names are discouraged in general. Please use a camelCase'onClick' instead and read: https://infernojs.org/docs/guides/event-handling"),ce.onClick=function(pe){!x&&X&&X(pe)};var me=(0,e.normalizeProps)((0,e.createComponentVNode)(2,m.Box,Object.assign({className:(0,a.classes)(["Button",b&&"Button--fluid",x&&"Button--disabled",E&&"Button--selected",re&&"Button--hasContent",P&&"Button--ellipsis",D&&"Button--circular",R&&"Button--compact",_&&"Button--iconRight",J&&"Button--multiLine",T&&typeof T=="string"?"Button--color--"+T:"Button--color--default",V]),tabIndex:!x&&"0",color:A,onKeyDown:function(){function pe(ye){var Be=window.event?ye.which:ye.keyCode;if(Be===t.KEY_SPACE||Be===t.KEY_ENTER){ye.preventDefault(),!x&&X&&X(ye);return}if(Be===t.KEY_ESCAPE){ye.preventDefault();return}}return pe}()},ce,{children:[B&&!_&&(0,e.createComponentVNode)(2,N.Icon,{name:B,color:W,rotation:I,spin:w,style:H}),F,z,B&&_&&(0,e.createComponentVNode)(2,N.Icon,{name:B,color:W,rotation:I,spin:w,style:H})]})));return M&&(me=(0,e.createComponentVNode)(2,y.Tooltip,{content:M,position:j,children:me})),me}return g}();s.defaultHooks=a.pureComponentHooks;var d=r.ButtonCheckbox=function(){function g(C){var V=C.checked,b=u(C,k);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,s,Object.assign({color:"transparent",icon:V?"check-square-o":"square-o",selected:V},b)))}return g}();s.Checkbox=d;var h=r.ButtonConfirm=function(g){function C(){var b;return b=g.call(this)||this,b.state={clickedOnce:!1},b.handleClick=function(){b.state.clickedOnce&&b.setClickedOnce(!1)},b}c(C,g);var V=C.prototype;return V.setClickedOnce=function(){function b(B){var I=this;this.setState({clickedOnce:B}),B?setTimeout(function(){return window.addEventListener("click",I.handleClick)}):window.removeEventListener("click",this.handleClick)}return b}(),V.render=function(){function b(){var B=this,I=this.props,w=I.confirmContent,T=w===void 0?"Confirm?":w,A=I.confirmColor,x=A===void 0?"bad":A,E=I.confirmIcon,M=I.icon,j=I.color,P=I.content,R=I.onClick,D=u(I,p);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,s,Object.assign({content:this.state.clickedOnce?T:P,icon:this.state.clickedOnce?E:M,color:this.state.clickedOnce?x:j,onClick:function(){function F(){return B.state.clickedOnce?R():B.setClickedOnce(!0)}return F}()},D)))}return b}(),C}(e.Component);s.Confirm=h;var v=r.ButtonInput=function(g){function C(){var b;return b=g.call(this)||this,b.inputRef=(0,e.createRef)(),b.state={inInput:!1},b}c(C,g);var V=C.prototype;return V.setInInput=function(){function b(B){var I=this.props.disabled;if(!I&&(this.setState({inInput:B}),this.inputRef)){var w=this.inputRef.current;if(B){w.value=this.props.currentValue||"";try{w.focus(),w.select()}catch(T){}}}}return b}(),V.commitResult=function(){function b(B){if(this.inputRef){var I=this.inputRef.current,w=I.value!=="";if(w){this.props.onCommit(B,I.value);return}else{if(!this.props.defaultValue)return;this.props.onCommit(B,this.props.defaultValue)}}}return b}(),V.render=function(){function b(){var B=this,I=this.props,w=I.fluid,T=I.content,A=I.icon,x=I.iconRotation,E=I.iconSpin,M=I.tooltip,j=I.tooltipPosition,P=I.color,R=P===void 0?"default":P,D=I.disabled,F=I.placeholder,W=I.maxLength,_=I.multiLine,H=u(I,l),z=(0,e.normalizeProps)((0,e.createComponentVNode)(2,m.Box,Object.assign({className:(0,a.classes)(["Button",w&&"Button--fluid",D&&"Button--disabled","Button--color--"+R,_+"Button--multiLine"])},H,{onClick:function(){function $(){return B.setInInput(!0)}return $}(),children:[A&&(0,e.createComponentVNode)(2,N.Icon,{name:A,rotation:x,spin:E}),(0,e.createVNode)(1,"div",null,T,0),(0,e.createVNode)(64,"input","NumberInput__input",null,1,{style:{display:this.state.inInput?void 0:"none","text-align":"left"},onBlur:function(){function $(X){B.state.inInput&&(B.setInInput(!1),B.commitResult(X))}return $}(),onKeyDown:function(){function $(X){if(X.keyCode===t.KEY_ENTER){B.setInInput(!1),B.commitResult(X);return}X.keyCode===t.KEY_ESCAPE&&B.setInInput(!1)}return $}()},null,this.inputRef)]})));return M&&(z=(0,e.createComponentVNode)(2,y.Tooltip,{content:M,position:j,children:z})),z}return b}(),C}(e.Component);s.Input=v},42204:function(L,r,n){"use strict";r.__esModule=!0,r.ByondUi=void 0;var e=n(96524),a=n(28234),t=n(56052),o=n(81856),m=n(3051),N=["params"],y=["params"],S=["parent","params"];function k(h,v){if(h==null)return{};var g={},C=Object.keys(h),V,b;for(b=0;b=0)&&(g[V]=h[V]);return g}function p(h,v){h.prototype=Object.create(v.prototype),h.prototype.constructor=h,l(h,v)}function l(h,v){return l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function g(C,V){return C.__proto__=V,C}return g}(),l(h,v)}/** + */function c(g,p){g.prototype=Object.create(p.prototype),g.prototype.constructor=g,f(g,p)}function f(g,p){return f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function N(b,B){return b.__proto__=B,b}return N}(),f(g,p)}function d(g,p){if(g==null)return{};var N={},b=Object.keys(g),B,L;for(L=0;L=0)&&(N[B]=g[B]);return N}var i=(0,o.createLogger)("Button"),s=r.Button=function(){function g(p){var N=p.className,b=p.fluid,B=p.icon,L=p.iconRotation,w=p.iconSpin,T=p.color,x=p.textColor,A=p.disabled,E=p.selected,M=p.tooltip,D=p.tooltipPosition,P=p.ellipsis,R=p.compact,j=p.circular,F=p.content,W=p.iconColor,_=p.iconRight,K=p.iconStyle,H=p.children,$=p.onclick,X=p.onClick,J=p.multiLine,ae=d(p,S),re=!!(F||H);$&&i.warn("Lowercase 'onclick' is not supported on Button and lowercase prop names are discouraged in general. Please use a camelCase'onClick' instead and read: https://infernojs.org/docs/guides/event-handling"),ae.onClick=function(pe){!A&&X&&X(pe)};var me=(0,e.normalizeProps)((0,e.createComponentVNode)(2,m.Box,Object.assign({className:(0,a.classes)(["Button",b&&"Button--fluid",A&&"Button--disabled",E&&"Button--selected",re&&"Button--hasContent",P&&"Button--ellipsis",j&&"Button--circular",R&&"Button--compact",_&&"Button--iconRight",J&&"Button--multiLine",T&&typeof T=="string"?"Button--color--"+T:"Button--color--default",N]),tabIndex:!A&&"0",color:x,onKeyDown:function(){function pe(Ce){var ke=window.event?Ce.which:Ce.keyCode;if(ke===t.KEY_SPACE||ke===t.KEY_ENTER){Ce.preventDefault(),!A&&X&&X(Ce);return}if(ke===t.KEY_ESCAPE){Ce.preventDefault();return}}return pe}()},ae,{children:[B&&!_&&(0,e.createComponentVNode)(2,V.Icon,{name:B,color:W,rotation:L,spin:w,style:K}),F,H,B&&_&&(0,e.createComponentVNode)(2,V.Icon,{name:B,color:W,rotation:L,spin:w,style:K})]})));return M&&(me=(0,e.createComponentVNode)(2,y.Tooltip,{content:M,position:D,children:me})),me}return g}();s.defaultHooks=a.pureComponentHooks;var u=r.ButtonCheckbox=function(){function g(p){var N=p.checked,b=d(p,k);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,s,Object.assign({color:"transparent",icon:N?"check-square-o":"square-o",selected:N},b)))}return g}();s.Checkbox=u;var C=r.ButtonConfirm=function(g){function p(){var b;return b=g.call(this)||this,b.state={clickedOnce:!1},b.handleClick=function(){b.state.clickedOnce&&b.setClickedOnce(!1)},b}c(p,g);var N=p.prototype;return N.setClickedOnce=function(){function b(B){var L=this;this.setState({clickedOnce:B}),B?setTimeout(function(){return window.addEventListener("click",L.handleClick)}):window.removeEventListener("click",this.handleClick)}return b}(),N.render=function(){function b(){var B=this,L=this.props,w=L.confirmContent,T=w===void 0?"Confirm?":w,x=L.confirmColor,A=x===void 0?"bad":x,E=L.confirmIcon,M=L.icon,D=L.color,P=L.content,R=L.onClick,j=d(L,h);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,s,Object.assign({content:this.state.clickedOnce?T:P,icon:this.state.clickedOnce?E:M,color:this.state.clickedOnce?A:D,onClick:function(){function F(){return B.state.clickedOnce?R():B.setClickedOnce(!0)}return F}()},j)))}return b}(),p}(e.Component);s.Confirm=C;var v=r.ButtonInput=function(g){function p(){var b;return b=g.call(this)||this,b.inputRef=(0,e.createRef)(),b.state={inInput:!1},b}c(p,g);var N=p.prototype;return N.setInInput=function(){function b(B){var L=this.props.disabled;if(!L&&(this.setState({inInput:B}),this.inputRef)){var w=this.inputRef.current;if(B){w.value=this.props.currentValue||"";try{w.focus(),w.select()}catch(T){}}}}return b}(),N.commitResult=function(){function b(B){if(this.inputRef){var L=this.inputRef.current,w=L.value!=="";if(w){this.props.onCommit(B,L.value);return}else{if(!this.props.defaultValue)return;this.props.onCommit(B,this.props.defaultValue)}}}return b}(),N.render=function(){function b(){var B=this,L=this.props,w=L.fluid,T=L.content,x=L.icon,A=L.iconRotation,E=L.iconSpin,M=L.tooltip,D=L.tooltipPosition,P=L.color,R=P===void 0?"default":P,j=L.disabled,F=L.placeholder,W=L.maxLength,_=L.multiLine,K=d(L,l),H=(0,e.normalizeProps)((0,e.createComponentVNode)(2,m.Box,Object.assign({className:(0,a.classes)(["Button",w&&"Button--fluid",j&&"Button--disabled","Button--color--"+R,_+"Button--multiLine"])},K,{onClick:function(){function $(){return B.setInInput(!0)}return $}(),children:[x&&(0,e.createComponentVNode)(2,V.Icon,{name:x,rotation:A,spin:E}),(0,e.createVNode)(1,"div",null,T,0),(0,e.createVNode)(64,"input","NumberInput__input",null,1,{style:{display:this.state.inInput?void 0:"none","text-align":"left"},onBlur:function(){function $(X){B.state.inInput&&(B.setInInput(!1),B.commitResult(X))}return $}(),onKeyDown:function(){function $(X){if(X.keyCode===t.KEY_ENTER){B.setInInput(!1),B.commitResult(X);return}X.keyCode===t.KEY_ESCAPE&&B.setInInput(!1)}return $}()},null,this.inputRef)]})));return M&&(H=(0,e.createComponentVNode)(2,y.Tooltip,{content:M,position:D,children:H})),H}return b}(),p}(e.Component);s.Input=v},42204:function(I,r,n){"use strict";r.__esModule=!0,r.ByondUi=void 0;var e=n(96524),a=n(28234),t=n(56052),o=n(81856),m=n(3051),V=["params"],y=["params"],S=["parent","params"];function k(C,v){if(C==null)return{};var g={},p=Object.keys(C),N,b;for(b=0;b=0)&&(g[N]=C[N]);return g}function h(C,v){C.prototype=Object.create(v.prototype),C.prototype.constructor=C,l(C,v)}function l(C,v){return l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function g(p,N){return p.__proto__=N,p}return g}(),l(C,v)}/** * @file * @copyright 2020 Aleksej Komarov * @license MIT -*/var c=(0,o.createLogger)("ByondUi"),f=[],u=function(v){var g=f.length;f.push(null);var C=v||"byondui_"+g;return c.log("allocated '"+C+"'"),{render:function(){function V(b){c.log("rendering '"+C+"'"),f[g]=C,Byond.winset(C,b)}return V}(),unmount:function(){function V(){c.log("unmounting '"+C+"'"),f[g]=null,Byond.winset(C,{parent:""})}return V}()}};window.addEventListener("beforeunload",function(){for(var h=0;h=0)&&(s[h]=u[h]);return s}function y(u,i){u.prototype=Object.create(i.prototype),u.prototype.constructor=u,S(u,i)}function S(u,i){return S=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function s(d,h){return d.__proto__=h,d}return s}(),S(u,i)}/** +*/var c=(0,o.createLogger)("ByondUi"),f=[],d=function(v){var g=f.length;f.push(null);var p=v||"byondui_"+g;return c.log("allocated '"+p+"'"),{render:function(){function N(b){c.log("rendering '"+p+"'"),f[g]=p,Byond.winset(p,b)}return N}(),unmount:function(){function N(){c.log("unmounting '"+p+"'"),f[g]=null,Byond.winset(p,{parent:""})}return N}()}};window.addEventListener("beforeunload",function(){for(var C=0;C=0)&&(s[C]=d[C]);return s}function y(d,i){d.prototype=Object.create(i.prototype),d.prototype.constructor=d,S(d,i)}function S(d,i){return S=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function s(u,C){return u.__proto__=C,u}return s}(),S(d,i)}/** * @file * @copyright 2020 Aleksej Komarov * @license MIT -*/var k=function(i,s,d,h){if(i.length===0)return[];var v=(0,a.zipWith)(Math.min).apply(void 0,i),g=(0,a.zipWith)(Math.max).apply(void 0,i);d!==void 0&&(v[0]=d[0],g[0]=d[1]),h!==void 0&&(v[1]=h[0],g[1]=h[1]);var C=(0,a.map)(function(V){return(0,a.zipWith)(function(b,B,I,w){return(b-B)/(I-B)*w})(V,v,g,s)})(i);return C},p=function(i){for(var s="",d=0;d0){var P=j[0],R=j[j.length-1];j.push([M[0]+x,R[1]]),j.push([M[0]+x,-x]),j.push([-x,-x]),j.push([-x,P[1]])}var D=p(j);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Box,Object.assign({position:"relative"},E,{children:function(){function F(W){return(0,e.normalizeProps)((0,e.createVNode)(1,"div",null,(0,e.createVNode)(32,"svg",null,(0,e.createVNode)(32,"polyline",null,null,1,{transform:"scale(1, -1) translate(0, -"+M[1]+")",fill:I,stroke:T,"stroke-width":x,points:D}),2,{viewBox:"0 0 "+M[0]+" "+M[1],preserveAspectRatio:"none",style:{position:"absolute",top:0,left:0,right:0,bottom:0,overflow:"hidden"}}),2,Object.assign({},W),null,h.ref))}return F}()})))}return d}(),i}(e.Component);l.defaultHooks=t.pureComponentHooks;var c=function(i){return null},f=r.Chart={Line:l}},83974:function(L,r,n){"use strict";r.__esModule=!0,r.Collapsible=void 0;var e=n(96524),a=n(3051),t=n(91688),o=["children","color","title","buttons"];function m(k,p){if(k==null)return{};var l={},c=Object.keys(k),f,u;for(u=0;u=0)&&(l[f]=k[f]);return l}function N(k,p){k.prototype=Object.create(p.prototype),k.prototype.constructor=k,y(k,p)}function y(k,p){return y=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function l(c,f){return c.__proto__=f,c}return l}(),y(k,p)}/** +*/var k=function(i,s,u,C){if(i.length===0)return[];var v=(0,a.zipWith)(Math.min).apply(void 0,i),g=(0,a.zipWith)(Math.max).apply(void 0,i);u!==void 0&&(v[0]=u[0],g[0]=u[1]),C!==void 0&&(v[1]=C[0],g[1]=C[1]);var p=(0,a.map)(function(N){return(0,a.zipWith)(function(b,B,L,w){return(b-B)/(L-B)*w})(N,v,g,s)})(i);return p},h=function(i){for(var s="",u=0;u0){var P=D[0],R=D[D.length-1];D.push([M[0]+A,R[1]]),D.push([M[0]+A,-A]),D.push([-A,-A]),D.push([-A,P[1]])}var j=h(D);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Box,Object.assign({position:"relative"},E,{children:function(){function F(W){return(0,e.normalizeProps)((0,e.createVNode)(1,"div",null,(0,e.createVNode)(32,"svg",null,(0,e.createVNode)(32,"polyline",null,null,1,{transform:"scale(1, -1) translate(0, -"+M[1]+")",fill:L,stroke:T,"stroke-width":A,points:j}),2,{viewBox:"0 0 "+M[0]+" "+M[1],preserveAspectRatio:"none",style:{position:"absolute",top:0,left:0,right:0,bottom:0,overflow:"hidden"}}),2,Object.assign({},W),null,C.ref))}return F}()})))}return u}(),i}(e.Component);l.defaultHooks=t.pureComponentHooks;var c=function(i){return null},f=r.Chart={Line:l}},83974:function(I,r,n){"use strict";r.__esModule=!0,r.Collapsible=void 0;var e=n(96524),a=n(3051),t=n(91688),o=["children","color","title","buttons"];function m(k,h){if(k==null)return{};var l={},c=Object.keys(k),f,d;for(d=0;d=0)&&(l[f]=k[f]);return l}function V(k,h){k.prototype=Object.create(h.prototype),k.prototype.constructor=k,y(k,h)}function y(k,h){return y=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function l(c,f){return c.__proto__=f,c}return l}(),y(k,h)}/** * @file * @copyright 2020 Aleksej Komarov * @license MIT -*/var S=r.Collapsible=function(k){function p(c){var f;f=k.call(this,c)||this;var u=c.open;return f.state={open:u||!1},f}N(p,k);var l=p.prototype;return l.render=function(){function c(){var f=this,u=this.props,i=this.state.open,s=u.children,d=u.color,h=d===void 0?"default":d,v=u.title,g=u.buttons,C=m(u,o);return(0,e.createComponentVNode)(2,a.Box,{className:"Collapsible",children:[(0,e.createVNode)(1,"div","Table",[(0,e.createVNode)(1,"div","Table__cell",(0,e.normalizeProps)((0,e.createComponentVNode)(2,t.Button,Object.assign({fluid:!0,color:h,icon:i?"chevron-down":"chevron-right",onClick:function(){function V(){return f.setState({open:!i})}return V}()},C,{children:v}))),2),g&&(0,e.createVNode)(1,"div","Table__cell Table__cell--collapsing",g,0)],0),i&&(0,e.createComponentVNode)(2,a.Box,{mt:1,children:s})]})}return c}(),p}(e.Component)},26236:function(L,r,n){"use strict";r.__esModule=!0,r.ColorBox=void 0;var e=n(96524),a=n(28234),t=n(3051),o=["content","children","className","color","backgroundColor"];/** +*/var S=r.Collapsible=function(k){function h(c){var f;f=k.call(this,c)||this;var d=c.open;return f.state={open:d||!1},f}V(h,k);var l=h.prototype;return l.render=function(){function c(){var f=this,d=this.props,i=this.state.open,s=d.children,u=d.color,C=u===void 0?"default":u,v=d.title,g=d.buttons,p=m(d,o);return(0,e.createComponentVNode)(2,a.Box,{className:"Collapsible",children:[(0,e.createVNode)(1,"div","Table",[(0,e.createVNode)(1,"div","Table__cell",(0,e.normalizeProps)((0,e.createComponentVNode)(2,t.Button,Object.assign({fluid:!0,color:C,icon:i?"chevron-down":"chevron-right",onClick:function(){function N(){return f.setState({open:!i})}return N}()},p,{children:v}))),2),g&&(0,e.createVNode)(1,"div","Table__cell Table__cell--collapsing",g,0)],0),i&&(0,e.createComponentVNode)(2,a.Box,{mt:1,children:s})]})}return c}(),h}(e.Component)},26236:function(I,r,n){"use strict";r.__esModule=!0,r.ColorBox=void 0;var e=n(96524),a=n(28234),t=n(3051),o=["content","children","className","color","backgroundColor"];/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */function m(y,S){if(y==null)return{};var k={},p=Object.keys(y),l,c;for(c=0;c=0)&&(k[l]=y[l]);return k}var N=r.ColorBox=function(){function y(S){var k=S.content,p=S.children,l=S.className,c=S.color,f=S.backgroundColor,u=m(S,o);return u.color=k?null:"transparent",u.backgroundColor=c||f,(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,a.classes)(["ColorBox",l,(0,t.computeBoxClassName)(u)]),k||".",0,Object.assign({},(0,t.computeBoxProps)(u))))}return y}();N.defaultHooks=a.pureComponentHooks},99509:function(L,r,n){"use strict";r.__esModule=!0,r.Countdown=void 0;var e=n(96524),a=n(3051),t=["format"];function o(S,k){if(S==null)return{};var p={},l=Object.keys(S),c,f;for(f=0;f=0)&&(p[c]=S[c]);return p}function m(S,k){S.prototype=Object.create(k.prototype),S.prototype.constructor=S,N(S,k)}function N(S,k){return N=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function p(l,c){return l.__proto__=c,l}return p}(),N(S,k)}var y=r.Countdown=function(S){function k(l){var c;return c=S.call(this,l)||this,c.timer=null,c.state={value:Math.max(l.timeLeft*100,0)},c}m(k,S);var p=k.prototype;return p.tick=function(){function l(){var c=Math.max(this.state.value-this.props.rate,0);c<=0&&clearInterval(this.timer),this.setState(function(f){return{value:c}})}return l}(),p.componentDidMount=function(){function l(){var c=this;this.timer=setInterval(function(){return c.tick()},this.props.rate)}return l}(),p.componentWillUnmount=function(){function l(){clearInterval(this.timer)}return l}(),p.componentDidUpdate=function(){function l(c){var f=this;this.props.current!==c.current&&this.setState(function(u){return{value:Math.max(f.props.timeLeft*100,0)}}),this.timer||this.componentDidMount()}return l}(),p.render=function(){function l(){var c=this.props,f=c.format,u=o(c,t),i=new Date(this.state.value).toISOString().slice(11,19);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,a.Box,Object.assign({as:"span"},u,{children:f?f(this.state.value,i):i})))}return l}(),k}(e.Component);y.defaultProps={rate:1e3}},72358:function(L,r,n){"use strict";r.__esModule=!0,r.Dimmer=void 0;var e=n(96524),a=n(28234),t=n(3051),o=["className","children"];/** + */function m(y,S){if(y==null)return{};var k={},h=Object.keys(y),l,c;for(c=0;c=0)&&(k[l]=y[l]);return k}var V=r.ColorBox=function(){function y(S){var k=S.content,h=S.children,l=S.className,c=S.color,f=S.backgroundColor,d=m(S,o);return d.color=k?null:"transparent",d.backgroundColor=c||f,(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,a.classes)(["ColorBox",l,(0,t.computeBoxClassName)(d)]),k||".",0,Object.assign({},(0,t.computeBoxProps)(d))))}return y}();V.defaultHooks=a.pureComponentHooks},99509:function(I,r,n){"use strict";r.__esModule=!0,r.Countdown=void 0;var e=n(96524),a=n(3051),t=["format"];function o(S,k){if(S==null)return{};var h={},l=Object.keys(S),c,f;for(f=0;f=0)&&(h[c]=S[c]);return h}function m(S,k){S.prototype=Object.create(k.prototype),S.prototype.constructor=S,V(S,k)}function V(S,k){return V=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function h(l,c){return l.__proto__=c,l}return h}(),V(S,k)}var y=r.Countdown=function(S){function k(l){var c;return c=S.call(this,l)||this,c.timer=null,c.state={value:Math.max(l.timeLeft*100,0)},c}m(k,S);var h=k.prototype;return h.tick=function(){function l(){var c=Math.max(this.state.value-this.props.rate,0);c<=0&&clearInterval(this.timer),this.setState(function(f){return{value:c}})}return l}(),h.componentDidMount=function(){function l(){var c=this;this.timer=setInterval(function(){return c.tick()},this.props.rate)}return l}(),h.componentWillUnmount=function(){function l(){clearInterval(this.timer)}return l}(),h.componentDidUpdate=function(){function l(c){var f=this;this.props.current!==c.current&&this.setState(function(d){return{value:Math.max(f.props.timeLeft*100,0)}}),this.timer||this.componentDidMount()}return l}(),h.render=function(){function l(){var c=this.props,f=c.format,d=o(c,t),i=new Date(this.state.value).toISOString().slice(11,19);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,a.Box,Object.assign({as:"span"},d,{children:f?f(this.state.value,i):i})))}return l}(),k}(e.Component);y.defaultProps={rate:1e3}},72358:function(I,r,n){"use strict";r.__esModule=!0,r.Dimmer=void 0;var e=n(96524),a=n(28234),t=n(3051),o=["className","children"];/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */function m(y,S){if(y==null)return{};var k={},p=Object.keys(y),l,c;for(c=0;c=0)&&(k[l]=y[l]);return k}var N=r.Dimmer=function(){function y(S){var k=S.className,p=S.children,l=m(S,o);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,t.Box,Object.assign({className:(0,a.classes)(["Dimmer"].concat(k))},l,{children:(0,e.createVNode)(1,"div","Dimmer__inner",p,0)})))}return y}()},31647:function(L,r,n){"use strict";r.__esModule=!0,r.Divider=void 0;var e=n(96524),a=n(28234);/** + */function m(y,S){if(y==null)return{};var k={},h=Object.keys(y),l,c;for(c=0;c=0)&&(k[l]=y[l]);return k}var V=r.Dimmer=function(){function y(S){var k=S.className,h=S.children,l=m(S,o);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,t.Box,Object.assign({className:(0,a.classes)(["Dimmer"].concat(k))},l,{children:(0,e.createVNode)(1,"div","Dimmer__inner",h,0)})))}return y}()},31647:function(I,r,n){"use strict";r.__esModule=!0,r.Divider=void 0;var e=n(96524),a=n(28234);/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */var t=r.Divider=function(){function o(m){var N=m.vertical,y=m.hidden;return(0,e.createVNode)(1,"div",(0,a.classes)(["Divider",y&&"Divider--hidden",N?"Divider--vertical":"Divider--horizontal"]))}return o}()},27648:function(L,r,n){"use strict";r.__esModule=!0,r.DraggableControl=void 0;var e=n(96524),a=n(36121),t=n(28234),o=n(65416);function m(p,l){p.prototype=Object.create(l.prototype),p.prototype.constructor=p,N(p,l)}function N(p,l){return N=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function c(f,u){return f.__proto__=u,f}return c}(),N(p,l)}var y=400,S=function(l,c){return l.screenX*c[0]+l.screenY*c[1]},k=r.DraggableControl=function(p){function l(f){var u;return u=p.call(this,f)||this,u.inputRef=(0,e.createRef)(),u.state={originalValue:f.value,value:f.value,dragging:!1,editing:!1,origin:null,suppressingFlicker:!1},u.flickerTimer=null,u.suppressFlicker=function(){var i=u.props.suppressFlicker;i>0&&(u.setState({suppressingFlicker:!0}),clearTimeout(u.flickerTimer),u.flickerTimer=setTimeout(function(){return u.setState({suppressingFlicker:!1})},i))},u.handleDragStart=function(i){var s=u.props,d=s.value,h=s.dragMatrix,v=s.disabled,g=u.state.editing;g||v||(document.body.style["pointer-events"]="none",u.ref=i.currentTarget,u.setState({originalValue:d,dragging:!1,value:d,origin:S(i,h)}),u.timer=setTimeout(function(){u.setState({dragging:!0})},250),u.dragInterval=setInterval(function(){var C=u.state,V=C.dragging,b=C.value,B=u.props.onDrag;V&&B&&B(i,b)},u.props.updateRate||y),document.addEventListener("mousemove",u.handleDragMove),document.addEventListener("mouseup",u.handleDragEnd))},u.handleDragMove=function(i){var s,d=u.props,h=d.minValue,v=d.maxValue,g=d.step,C=d.dragMatrix,V=d.disabled;if(!V){var b=u.ref.offsetWidth/((v-h)/g),B=(s=u.props.stepPixelSize)!=null?s:b;typeof B=="function"&&(B=B(b)),u.setState(function(I){var w=Object.assign({},I),T=I.origin,A=S(i,C)-T;if(I.dragging){var x=Math.trunc(A/B);w.value=(0,a.clamp)(Math.floor(w.originalValue/g)*g+x*g,h,v)}else Math.abs(A)>4&&(w.dragging=!0);return w})}},u.handleDragEnd=function(i){var s=u.props,d=s.onChange,h=s.onDrag,v=u.state,g=v.dragging,C=v.value;if(document.body.style["pointer-events"]="auto",clearTimeout(u.timer),clearInterval(u.dragInterval),u.setState({originalValue:null,dragging:!1,editing:!g,origin:null}),document.removeEventListener("mousemove",u.handleDragMove),document.removeEventListener("mouseup",u.handleDragEnd),g)u.suppressFlicker(),d&&d(i,C),h&&h(i,C);else if(u.inputRef){var V=u.inputRef.current;V.value=C;try{V.focus(),V.select()}catch(b){}}},u}m(l,p);var c=l.prototype;return c.render=function(){function f(){var u=this,i=this.state,s=i.dragging,d=i.editing,h=i.value,v=i.suppressingFlicker,g=this.props,C=g.animated,V=g.value,b=g.unit,B=g.minValue,I=g.maxValue,w=g.format,T=g.onChange,A=g.onDrag,x=g.children,E=g.height,M=g.lineHeight,j=g.fontSize,P=g.disabled,R=V;(s||v)&&(R=h);var D=function(){function _(H){return H+(b?" "+b:"")}return _}(),F=C&&!s&&!v&&(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:R,format:w,children:D})||D(w?w(R):R),W=(0,e.createVNode)(64,"input","NumberInput__input",null,1,{style:{display:!d||P?"none":void 0,height:E,"line-height":M,"font-size":j},onBlur:function(){function _(H){if(d){var z=(0,a.clamp)(parseFloat(H.target.value),B,I);if(Number.isNaN(z)){u.setState({editing:!1});return}u.setState({editing:!1,value:z}),u.suppressFlicker(),T&&T(H,z),A&&A(H,z)}}return _}(),onKeyDown:function(){function _(H){if(H.keyCode===13){var z=(0,a.clamp)(parseFloat(H.target.value),B,I);if(Number.isNaN(z)){u.setState({editing:!1});return}u.setState({editing:!1,value:z}),u.suppressFlicker(),T&&T(H,z),A&&A(H,z);return}if(H.keyCode===27){u.setState({editing:!1});return}}return _}(),disabled:P},null,this.inputRef);return x({dragging:s,editing:d,value:V,displayValue:R,displayElement:F,inputElement:W,handleDragStart:this.handleDragStart})}return f}(),l}(e.Component);k.defaultHooks=t.pureComponentHooks,k.defaultProps={minValue:-1/0,maxValue:1/0,step:1,suppressFlicker:50,dragMatrix:[1,0]}},45293:function(L,r,n){"use strict";r.__esModule=!0,r.Dropdown=void 0;var e=n(96524),a=n(60023),t=n(28234),o=n(3051),m=n(11253),N=["icon","iconRotation","iconSpin","clipSelectedText","color","dropdownStyle","over","nochevron","width","onClick","onSelected","selected","disabled","displayText"],y=["className"],S;function k(d,h){if(d==null)return{};var v={},g=Object.keys(d),C,V;for(V=0;V=0)&&(v[C]=d[C]);return v}function p(d,h){d.prototype=Object.create(h.prototype),d.prototype.constructor=d,l(d,h)}function l(d,h){return l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function v(g,C){return g.__proto__=C,g}return v}(),l(d,h)}var c={placement:"left-start",modifiers:[{name:"eventListeners",enabled:!1}]},f={width:0,height:0,top:0,right:0,bottom:0,left:0,x:0,y:0,toJSON:function(){function d(){return null}return d}()},u="Layout Dropdown__menu",i="Layout Dropdown__menu-scroll",s=r.Dropdown=function(d){function h(g){var C;return C=d.call(this,g)||this,C.menuContents=void 0,C.handleClick=function(){C.state.open&&C.setOpen(!1)},C.state={open:!1,selected:C.props.selected},C.menuContents=null,C}p(h,d);var v=h.prototype;return v.getDOMNode=function(){function g(){return(0,e.findDOMfromVNode)(this.$LI,!0)}return g}(),v.componentDidMount=function(){function g(){var C=this.getDOMNode()}return g}(),v.openMenu=function(){function g(){var C=h.renderedMenu;C===void 0&&(C=document.createElement("div"),C.className=u,document.body.appendChild(C),h.renderedMenu=C);var V=this.getDOMNode();h.currentOpenMenu=V,C.scrollTop=0,C.style.width=this.props.menuWidth||V.offsetWidth+"px",C.style.opacity="1",C.style.pointerEvents="auto",setTimeout(function(){var b;(b=h.renderedMenu)==null||b.focus()},400),this.renderMenuContent()}return g}(),v.closeMenu=function(){function g(){h.currentOpenMenu===this.getDOMNode()&&(h.currentOpenMenu=void 0,h.renderedMenu.style.opacity="0",h.renderedMenu.style.pointerEvents="none")}return g}(),v.componentWillUnmount=function(){function g(){this.closeMenu(),this.setOpen(!1)}return g}(),v.renderMenuContent=function(){function g(){var C=this,V=h.renderedMenu;if(V){V.offsetHeight>200?V.className=i:V.className=u;var b=this.props.options,B=b===void 0?[]:b,I=B.map(function(T){var A,x;return typeof T=="string"?(x=T,A=T):T!==null&&(x=T.displayText,A=T.value),(0,e.createVNode)(1,"div",(0,t.classes)(["Dropdown__menuentry",C.state.selected===A&&"selected"]),x,0,{onClick:function(){function E(){C.setSelected(A)}return E}()},A)}),w=I.length?I:"No Options Found";(0,e.render)((0,e.createVNode)(1,"div",null,w,0),V,function(){var T=h.singletonPopper;T===void 0?(T=(0,a.createPopper)(h.virtualElement,V,Object.assign({},c,{placement:"bottom-start"})),h.singletonPopper=T):(T.setOptions(Object.assign({},c,{placement:"bottom-start"})),T.update())},this.context)}}return g}(),v.setOpen=function(){function g(C){var V=this;this.setState(function(b){return Object.assign({},b,{open:C})}),C?setTimeout(function(){V.openMenu(),window.addEventListener("click",V.handleClick)}):(this.closeMenu(),window.removeEventListener("click",this.handleClick))}return g}(),v.setSelected=function(){function g(C){this.setState(function(V){return Object.assign({},V,{selected:C})}),this.setOpen(!1),this.props.onSelected&&this.props.onSelected(C)}return g}(),v.render=function(){function g(){var C=this,V=this.props,b=V.icon,B=V.iconRotation,I=V.iconSpin,w=V.clipSelectedText,T=w===void 0?!0:w,A=V.color,x=A===void 0?"default":A,E=V.dropdownStyle,M=V.over,j=V.nochevron,P=V.width,R=V.onClick,D=V.onSelected,F=V.selected,W=V.disabled,_=V.displayText,H=k(V,N),z=H.className,$=k(H,y),X=M?!this.state.open:this.state.open;return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Box,Object.assign({width:P,className:(0,t.classes)(["Dropdown__control","Button","Button--color--"+x,W&&"Button--disabled",z]),onClick:function(){function J(ce){W&&!C.state.open||(C.setOpen(!C.state.open),R&&R(ce))}return J}()},$,{children:[b&&(0,e.createComponentVNode)(2,m.Icon,{name:b,rotation:B,spin:I,mr:1}),(0,e.createVNode)(1,"span","Dropdown__selected-text",_||this.state.selected,0,{style:{overflow:T?"hidden":"visible"}}),j||(0,e.createVNode)(1,"span","Dropdown__arrow-button",(0,e.createComponentVNode)(2,m.Icon,{name:X?"chevron-up":"chevron-down"}),2)]})))}return g}(),h}(e.Component);S=s,s.renderedMenu=void 0,s.singletonPopper=void 0,s.currentOpenMenu=void 0,s.virtualElement={getBoundingClientRect:function(){function d(){var h,v;return(h=(v=S.currentOpenMenu)==null?void 0:v.getBoundingClientRect())!=null?h:f}return d}()}},18963:function(L,r,n){"use strict";r.__esModule=!0,r.computeFlexProps=r.computeFlexItemProps=r.computeFlexItemClassName=r.computeFlexClassName=r.Flex=void 0;var e=n(96524),a=n(28234),t=n(3051),o=["className","direction","wrap","align","justify","inline"],m=["className"],N=["className","style","grow","order","shrink","basis","align"],y=["className"];/** + */var t=r.Divider=function(){function o(m){var V=m.vertical,y=m.hidden;return(0,e.createVNode)(1,"div",(0,a.classes)(["Divider",y&&"Divider--hidden",V?"Divider--vertical":"Divider--horizontal"]))}return o}()},27648:function(I,r,n){"use strict";r.__esModule=!0,r.DraggableControl=void 0;var e=n(96524),a=n(36121),t=n(28234),o=n(65416);function m(h,l){h.prototype=Object.create(l.prototype),h.prototype.constructor=h,V(h,l)}function V(h,l){return V=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function c(f,d){return f.__proto__=d,f}return c}(),V(h,l)}var y=400,S=function(l,c){return l.screenX*c[0]+l.screenY*c[1]},k=r.DraggableControl=function(h){function l(f){var d;return d=h.call(this,f)||this,d.inputRef=(0,e.createRef)(),d.state={originalValue:f.value,value:f.value,dragging:!1,editing:!1,origin:null,suppressingFlicker:!1},d.flickerTimer=null,d.suppressFlicker=function(){var i=d.props.suppressFlicker;i>0&&(d.setState({suppressingFlicker:!0}),clearTimeout(d.flickerTimer),d.flickerTimer=setTimeout(function(){return d.setState({suppressingFlicker:!1})},i))},d.handleDragStart=function(i){var s=d.props,u=s.value,C=s.dragMatrix,v=s.disabled,g=d.state.editing;g||v||(document.body.style["pointer-events"]="none",d.ref=i.currentTarget,d.setState({originalValue:u,dragging:!1,value:u,origin:S(i,C)}),d.timer=setTimeout(function(){d.setState({dragging:!0})},250),d.dragInterval=setInterval(function(){var p=d.state,N=p.dragging,b=p.value,B=d.props.onDrag;N&&B&&B(i,b)},d.props.updateRate||y),document.addEventListener("mousemove",d.handleDragMove),document.addEventListener("mouseup",d.handleDragEnd))},d.handleDragMove=function(i){var s,u=d.props,C=u.minValue,v=u.maxValue,g=u.step,p=u.dragMatrix,N=u.disabled;if(!N){var b=d.ref.offsetWidth/((v-C)/g),B=(s=d.props.stepPixelSize)!=null?s:b;typeof B=="function"&&(B=B(b)),d.setState(function(L){var w=Object.assign({},L),T=L.origin,x=S(i,p)-T;if(L.dragging){var A=Math.trunc(x/B);w.value=(0,a.clamp)(Math.floor(w.originalValue/g)*g+A*g,C,v)}else Math.abs(x)>4&&(w.dragging=!0);return w})}},d.handleDragEnd=function(i){var s=d.props,u=s.onChange,C=s.onDrag,v=d.state,g=v.dragging,p=v.value;if(document.body.style["pointer-events"]="auto",clearTimeout(d.timer),clearInterval(d.dragInterval),d.setState({originalValue:null,dragging:!1,editing:!g,origin:null}),document.removeEventListener("mousemove",d.handleDragMove),document.removeEventListener("mouseup",d.handleDragEnd),g)d.suppressFlicker(),u&&u(i,p),C&&C(i,p);else if(d.inputRef){var N=d.inputRef.current;N.value=p;try{N.focus(),N.select()}catch(b){}}},d}m(l,h);var c=l.prototype;return c.render=function(){function f(){var d=this,i=this.state,s=i.dragging,u=i.editing,C=i.value,v=i.suppressingFlicker,g=this.props,p=g.animated,N=g.value,b=g.unit,B=g.minValue,L=g.maxValue,w=g.format,T=g.onChange,x=g.onDrag,A=g.children,E=g.height,M=g.lineHeight,D=g.fontSize,P=g.disabled,R=N;(s||v)&&(R=C);var j=function(){function _(K){return K+(b?" "+b:"")}return _}(),F=p&&!s&&!v&&(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:R,format:w,children:j})||j(w?w(R):R),W=(0,e.createVNode)(64,"input","NumberInput__input",null,1,{style:{display:!u||P?"none":void 0,height:E,"line-height":M,"font-size":D},onBlur:function(){function _(K){if(u){var H=(0,a.clamp)(parseFloat(K.target.value),B,L);if(Number.isNaN(H)){d.setState({editing:!1});return}d.setState({editing:!1,value:H}),d.suppressFlicker(),T&&T(K,H),x&&x(K,H)}}return _}(),onKeyDown:function(){function _(K){if(K.keyCode===13){var H=(0,a.clamp)(parseFloat(K.target.value),B,L);if(Number.isNaN(H)){d.setState({editing:!1});return}d.setState({editing:!1,value:H}),d.suppressFlicker(),T&&T(K,H),x&&x(K,H);return}if(K.keyCode===27){d.setState({editing:!1});return}}return _}(),disabled:P},null,this.inputRef);return A({dragging:s,editing:u,value:N,displayValue:R,displayElement:F,inputElement:W,handleDragStart:this.handleDragStart})}return f}(),l}(e.Component);k.defaultHooks=t.pureComponentHooks,k.defaultProps={minValue:-1/0,maxValue:1/0,step:1,suppressFlicker:50,dragMatrix:[1,0]}},45293:function(I,r,n){"use strict";r.__esModule=!0,r.Dropdown=void 0;var e=n(96524),a=n(60023),t=n(28234),o=n(3051),m=n(11253),V=["icon","iconRotation","iconSpin","clipSelectedText","color","dropdownStyle","over","nochevron","width","onClick","onSelected","selected","disabled","displayText"],y=["className"],S;function k(u,C){if(u==null)return{};var v={},g=Object.keys(u),p,N;for(N=0;N=0)&&(v[p]=u[p]);return v}function h(u,C){u.prototype=Object.create(C.prototype),u.prototype.constructor=u,l(u,C)}function l(u,C){return l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function v(g,p){return g.__proto__=p,g}return v}(),l(u,C)}var c={placement:"left-start",modifiers:[{name:"eventListeners",enabled:!1}]},f={width:0,height:0,top:0,right:0,bottom:0,left:0,x:0,y:0,toJSON:function(){function u(){return null}return u}()},d="Layout Dropdown__menu",i="Layout Dropdown__menu-scroll",s=r.Dropdown=function(u){function C(g){var p;return p=u.call(this,g)||this,p.menuContents=void 0,p.handleClick=function(){p.state.open&&p.setOpen(!1)},p.state={open:!1,selected:p.props.selected},p.menuContents=null,p}h(C,u);var v=C.prototype;return v.getDOMNode=function(){function g(){return(0,e.findDOMfromVNode)(this.$LI,!0)}return g}(),v.componentDidMount=function(){function g(){var p=this.getDOMNode()}return g}(),v.openMenu=function(){function g(){var p=C.renderedMenu;p===void 0&&(p=document.createElement("div"),p.className=d,document.body.appendChild(p),C.renderedMenu=p);var N=this.getDOMNode();C.currentOpenMenu=N,p.scrollTop=0,p.style.width=this.props.menuWidth||N.offsetWidth+"px",p.style.opacity="1",p.style.pointerEvents="auto",setTimeout(function(){var b;(b=C.renderedMenu)==null||b.focus()},400),this.renderMenuContent()}return g}(),v.closeMenu=function(){function g(){C.currentOpenMenu===this.getDOMNode()&&(C.currentOpenMenu=void 0,C.renderedMenu.style.opacity="0",C.renderedMenu.style.pointerEvents="none")}return g}(),v.componentWillUnmount=function(){function g(){this.closeMenu(),this.setOpen(!1)}return g}(),v.renderMenuContent=function(){function g(){var p=this,N=C.renderedMenu;if(N){N.offsetHeight>200?N.className=i:N.className=d;var b=this.props.options,B=b===void 0?[]:b,L=B.map(function(T){var x,A;return typeof T=="string"?(A=T,x=T):T!==null&&(A=T.displayText,x=T.value),(0,e.createVNode)(1,"div",(0,t.classes)(["Dropdown__menuentry",p.state.selected===x&&"selected"]),A,0,{onClick:function(){function E(){p.setSelected(x)}return E}()},x)}),w=L.length?L:"No Options Found";(0,e.render)((0,e.createVNode)(1,"div",null,w,0),N,function(){var T=C.singletonPopper;T===void 0?(T=(0,a.createPopper)(C.virtualElement,N,Object.assign({},c,{placement:"bottom-start"})),C.singletonPopper=T):(T.setOptions(Object.assign({},c,{placement:"bottom-start"})),T.update())},this.context)}}return g}(),v.setOpen=function(){function g(p){var N=this;this.setState(function(b){return Object.assign({},b,{open:p})}),p?setTimeout(function(){N.openMenu(),window.addEventListener("click",N.handleClick)}):(this.closeMenu(),window.removeEventListener("click",this.handleClick))}return g}(),v.setSelected=function(){function g(p){this.setState(function(N){return Object.assign({},N,{selected:p})}),this.setOpen(!1),this.props.onSelected&&this.props.onSelected(p)}return g}(),v.render=function(){function g(){var p=this,N=this.props,b=N.icon,B=N.iconRotation,L=N.iconSpin,w=N.clipSelectedText,T=w===void 0?!0:w,x=N.color,A=x===void 0?"default":x,E=N.dropdownStyle,M=N.over,D=N.nochevron,P=N.width,R=N.onClick,j=N.onSelected,F=N.selected,W=N.disabled,_=N.displayText,K=k(N,V),H=K.className,$=k(K,y),X=M?!this.state.open:this.state.open;return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Box,Object.assign({width:P,className:(0,t.classes)(["Dropdown__control","Button","Button--color--"+A,W&&"Button--disabled",H]),onClick:function(){function J(ae){W&&!p.state.open||(p.setOpen(!p.state.open),R&&R(ae))}return J}()},$,{children:[b&&(0,e.createComponentVNode)(2,m.Icon,{name:b,rotation:B,spin:L,mr:1}),(0,e.createVNode)(1,"span","Dropdown__selected-text",_||this.state.selected,0,{style:{overflow:T?"hidden":"visible"}}),D||(0,e.createVNode)(1,"span","Dropdown__arrow-button",(0,e.createComponentVNode)(2,m.Icon,{name:X?"chevron-up":"chevron-down"}),2)]})))}return g}(),C}(e.Component);S=s,s.renderedMenu=void 0,s.singletonPopper=void 0,s.currentOpenMenu=void 0,s.virtualElement={getBoundingClientRect:function(){function u(){var C,v;return(C=(v=S.currentOpenMenu)==null?void 0:v.getBoundingClientRect())!=null?C:f}return u}()}},18963:function(I,r,n){"use strict";r.__esModule=!0,r.computeFlexProps=r.computeFlexItemProps=r.computeFlexItemClassName=r.computeFlexClassName=r.Flex=void 0;var e=n(96524),a=n(28234),t=n(3051),o=["className","direction","wrap","align","justify","inline"],m=["className"],V=["className","style","grow","order","shrink","basis","align"],y=["className"];/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */function S(i,s){if(i==null)return{};var d={},h=Object.keys(i),v,g;for(g=0;g=0)&&(d[v]=i[v]);return d}var k=r.computeFlexClassName=function(){function i(s){return(0,a.classes)(["Flex",s.inline&&"Flex--inline",(0,t.computeBoxClassName)(s)])}return i}(),p=r.computeFlexProps=function(){function i(s){var d=s.className,h=s.direction,v=s.wrap,g=s.align,C=s.justify,V=s.inline,b=S(s,o);return(0,t.computeBoxProps)(Object.assign({style:Object.assign({},b.style,{"flex-direction":h,"flex-wrap":v===!0?"wrap":v,"align-items":g,"justify-content":C})},b))}return i}(),l=r.Flex=function(){function i(s){var d=s.className,h=S(s,m);return(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,a.classes)([d,k(h)]),null,1,Object.assign({},p(h))))}return i}();l.defaultHooks=a.pureComponentHooks;var c=r.computeFlexItemClassName=function(){function i(s){return(0,a.classes)(["Flex__item",(0,t.computeBoxClassName)(s)])}return i}(),f=r.computeFlexItemProps=function(){function i(s){var d=s.className,h=s.style,v=s.grow,g=s.order,C=s.shrink,V=s.basis,b=V===void 0?s.width:V,B=s.align,I=S(s,N);return(0,t.computeBoxProps)(Object.assign({style:Object.assign({},h,{"flex-grow":v!==void 0&&Number(v),"flex-shrink":C!==void 0&&Number(C),"flex-basis":(0,t.unit)(b),order:g,"align-self":B})},I))}return i}(),u=function(s){var d=s.className,h=S(s,y);return(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,a.classes)([d,c(s)]),null,1,Object.assign({},f(h))))};u.defaultHooks=a.pureComponentHooks,l.Item=u},17956:function(L,r,n){"use strict";r.__esModule=!0,r.GridColumn=r.Grid=void 0;var e=n(96524),a=n(5126),t=n(28234),o=["children"],m=["size","style"];/** + */function S(i,s){if(i==null)return{};var u={},C=Object.keys(i),v,g;for(g=0;g=0)&&(u[v]=i[v]);return u}var k=r.computeFlexClassName=function(){function i(s){return(0,a.classes)(["Flex",s.inline&&"Flex--inline",(0,t.computeBoxClassName)(s)])}return i}(),h=r.computeFlexProps=function(){function i(s){var u=s.className,C=s.direction,v=s.wrap,g=s.align,p=s.justify,N=s.inline,b=S(s,o);return(0,t.computeBoxProps)(Object.assign({style:Object.assign({},b.style,{"flex-direction":C,"flex-wrap":v===!0?"wrap":v,"align-items":g,"justify-content":p})},b))}return i}(),l=r.Flex=function(){function i(s){var u=s.className,C=S(s,m);return(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,a.classes)([u,k(C)]),null,1,Object.assign({},h(C))))}return i}();l.defaultHooks=a.pureComponentHooks;var c=r.computeFlexItemClassName=function(){function i(s){return(0,a.classes)(["Flex__item",(0,t.computeBoxClassName)(s)])}return i}(),f=r.computeFlexItemProps=function(){function i(s){var u=s.className,C=s.style,v=s.grow,g=s.order,p=s.shrink,N=s.basis,b=N===void 0?s.width:N,B=s.align,L=S(s,V);return(0,t.computeBoxProps)(Object.assign({style:Object.assign({},C,{"flex-grow":v!==void 0&&Number(v),"flex-shrink":p!==void 0&&Number(p),"flex-basis":(0,t.unit)(b),order:g,"align-self":B})},L))}return i}(),d=function(s){var u=s.className,C=S(s,y);return(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,a.classes)([u,c(s)]),null,1,Object.assign({},f(C))))};d.defaultHooks=a.pureComponentHooks,l.Item=d},17956:function(I,r,n){"use strict";r.__esModule=!0,r.GridColumn=r.Grid=void 0;var e=n(96524),a=n(5126),t=n(28234),o=["children"],m=["size","style"];/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */function N(k,p){if(k==null)return{};var l={},c=Object.keys(k),f,u;for(u=0;u=0)&&(l[f]=k[f]);return l}var y=r.Grid=function(){function k(p){var l=p.children,c=N(p,o);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,a.Table,Object.assign({},c,{children:(0,e.createComponentVNode)(2,a.Table.Row,{children:l})})))}return k}();y.defaultHooks=t.pureComponentHooks;var S=r.GridColumn=function(){function k(p){var l=p.size,c=l===void 0?1:l,f=p.style,u=N(p,m);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,a.Table.Cell,Object.assign({style:Object.assign({width:c+"%"},f)},u)))}return k}();y.defaultHooks=t.pureComponentHooks,y.Column=S},11253:function(L,r,n){"use strict";r.__esModule=!0,r.IconStack=r.Icon=void 0;var e=n(96524),a=n(28234),t=n(3051),o=["name","size","spin","className","style","rotation","inverse"],m=["className","style","children"];/** + */function V(k,h){if(k==null)return{};var l={},c=Object.keys(k),f,d;for(d=0;d=0)&&(l[f]=k[f]);return l}var y=r.Grid=function(){function k(h){var l=h.children,c=V(h,o);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,a.Table,Object.assign({},c,{children:(0,e.createComponentVNode)(2,a.Table.Row,{children:l})})))}return k}();y.defaultHooks=t.pureComponentHooks;var S=r.GridColumn=function(){function k(h){var l=h.size,c=l===void 0?1:l,f=h.style,d=V(h,m);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,a.Table.Cell,Object.assign({style:Object.assign({width:c+"%"},f)},d)))}return k}();y.defaultHooks=t.pureComponentHooks,y.Column=S},11253:function(I,r,n){"use strict";r.__esModule=!0,r.IconStack=r.Icon=void 0;var e=n(96524),a=n(28234),t=n(3051),o=["name","size","spin","className","style","rotation","inverse"],m=["className","style","children"];/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */function N(p,l){if(p==null)return{};var c={},f=Object.keys(p),u,i;for(i=0;i=0)&&(c[u]=p[u]);return c}var y=/-o$/,S=r.Icon=function(){function p(l){var c=l.name,f=l.size,u=l.spin,i=l.className,s=l.style,d=s===void 0?{}:s,h=l.rotation,v=l.inverse,g=N(l,o);f&&(d["font-size"]=f*100+"%"),typeof h=="number"&&(d.transform="rotate("+h+"deg)");var C=y.test(c),V=c.replace(y,"");return(0,e.normalizeProps)((0,e.createComponentVNode)(2,t.Box,Object.assign({as:"i",className:(0,a.classes)(["Icon",i,C?"far":"fas","fa-"+V,u&&"fa-spin"]),style:d},g)))}return p}();S.defaultHooks=a.pureComponentHooks;var k=r.IconStack=function(){function p(l){var c=l.className,f=l.style,u=f===void 0?{}:f,i=l.children,s=N(l,m);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,t.Box,Object.assign({as:"span",class:(0,a.classes)(["IconStack",c]),style:u},s,{children:i})))}return p}();S.Stack=k},49034:function(L,r,n){"use strict";r.__esModule=!0,r.toInputValue=r.Input=void 0;var e=n(96524),a=n(28234),t=n(3051),o=n(68100),m=["selfClear","onInput","onChange","onEnter","value","maxLength","placeholder","autofocus","disabled","multiline","cols","rows"],N=["className","fluid","monospace"];function y(c,f){if(c==null)return{};var u={},i=Object.keys(c),s,d;for(d=0;d=0)&&(u[s]=c[s]);return u}function S(c,f){c.prototype=Object.create(f.prototype),c.prototype.constructor=c,k(c,f)}function k(c,f){return k=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function u(i,s){return i.__proto__=s,i}return u}(),k(c,f)}/** + */function V(h,l){if(h==null)return{};var c={},f=Object.keys(h),d,i;for(i=0;i=0)&&(c[d]=h[d]);return c}var y=/-o$/,S=r.Icon=function(){function h(l){var c=l.name,f=l.size,d=l.spin,i=l.className,s=l.style,u=s===void 0?{}:s,C=l.rotation,v=l.inverse,g=V(l,o);f&&(u["font-size"]=f*100+"%"),typeof C=="number"&&(u.transform="rotate("+C+"deg)");var p=y.test(c),N=c.replace(y,"");return(0,e.normalizeProps)((0,e.createComponentVNode)(2,t.Box,Object.assign({as:"i",className:(0,a.classes)(["Icon",i,p?"far":"fas","fa-"+N,d&&"fa-spin"]),style:u},g)))}return h}();S.defaultHooks=a.pureComponentHooks;var k=r.IconStack=function(){function h(l){var c=l.className,f=l.style,d=f===void 0?{}:f,i=l.children,s=V(l,m);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,t.Box,Object.assign({as:"span",class:(0,a.classes)(["IconStack",c]),style:d},s,{children:i})))}return h}();S.Stack=k},49034:function(I,r,n){"use strict";r.__esModule=!0,r.toInputValue=r.Input=void 0;var e=n(96524),a=n(28234),t=n(3051),o=n(68100),m=["selfClear","onInput","onChange","onEnter","value","maxLength","placeholder","autofocus","disabled","multiline","cols","rows"],V=["className","fluid","monospace"];function y(c,f){if(c==null)return{};var d={},i=Object.keys(c),s,u;for(u=0;u=0)&&(d[s]=c[s]);return d}function S(c,f){c.prototype=Object.create(f.prototype),c.prototype.constructor=c,k(c,f)}function k(c,f){return k=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function d(i,s){return i.__proto__=s,i}return d}(),k(c,f)}/** * @file * @copyright 2020 Aleksej Komarov * @license MIT -*/var p=r.toInputValue=function(){function c(f){return typeof f!="number"&&typeof f!="string"?"":String(f)}return c}(),l=r.Input=function(c){function f(){var i;return i=c.call(this)||this,i.inputRef=(0,e.createRef)(),i.state={editing:!1},i.handleInput=function(s){var d=i.state.editing,h=i.props.onInput;d||i.setEditing(!0),h&&h(s,s.target.value)},i.handleFocus=function(s){var d=i.state.editing;d||i.setEditing(!0)},i.handleBlur=function(s){var d=i.state.editing,h=i.props.onChange;d&&(i.setEditing(!1),h&&h(s,s.target.value))},i.handleKeyDown=function(s){var d=i.props,h=d.onInput,v=d.onChange,g=d.onEnter;if(s.keyCode===o.KEY_ENTER){i.setEditing(!1),v&&v(s,s.target.value),h&&h(s,s.target.value),g&&g(s,s.target.value),i.props.selfClear?s.target.value="":s.target.blur();return}if(s.keyCode===o.KEY_ESCAPE){i.setEditing(!1),s.target.value=p(i.props.value),s.target.blur();return}},i}S(f,c);var u=f.prototype;return u.componentDidMount=function(){function i(){var s=this,d=this.props.value,h=this.inputRef.current;h&&(h.value=p(d),h.selectionStart=0,h.selectionEnd=h.value.length),(this.props.autoFocus||this.props.autoSelect)&&setTimeout(function(){h.focus(),s.props.autoSelect&&h.select()},1)}return i}(),u.componentDidUpdate=function(){function i(s,d){var h=this.state.editing,v=s.value,g=this.props.value,C=this.inputRef.current;C&&!h&&v!==g&&(C.value=p(g))}return i}(),u.setEditing=function(){function i(s){this.setState({editing:s})}return i}(),u.render=function(){function i(){var s=this.props,d=s.selfClear,h=s.onInput,v=s.onChange,g=s.onEnter,C=s.value,V=s.maxLength,b=s.placeholder,B=s.autofocus,I=s.disabled,w=s.multiline,T=s.cols,A=T===void 0?32:T,x=s.rows,E=x===void 0?4:x,M=y(s,m),j=M.className,P=M.fluid,R=M.monospace,D=y(M,N);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,t.Box,Object.assign({className:(0,a.classes)(["Input",P&&"Input--fluid",R&&"Input--monospace",I&&"Input--disabled",j])},D,{children:[(0,e.createVNode)(1,"div","Input__baseline",".",16),w?(0,e.createVNode)(128,"textarea","Input__textarea",null,1,{placeholder:b,onInput:this.handleInput,onFocus:this.handleFocus,onBlur:this.handleBlur,maxLength:V,cols:A,rows:E,disabled:I},null,this.inputRef):(0,e.createVNode)(64,"input","Input__input",null,1,{placeholder:b,onInput:this.handleInput,onFocus:this.handleFocus,onBlur:this.handleBlur,onKeyDown:this.handleKeyDown,maxLength:V,disabled:I},null,this.inputRef)]})))}return i}(),f}(e.Component)},9836:function(L,r,n){"use strict";r.__esModule=!0,r.Knob=void 0;var e=n(96524),a=n(36121),t=n(28234),o=n(3051),m=n(27648),N=n(5985),y=["animated","format","maxValue","minValue","onChange","onDrag","step","stepPixelSize","suppressFlicker","unit","value","className","style","fillValue","color","ranges","size","bipolar","children","popUpPosition"];/** +*/var h=r.toInputValue=function(){function c(f){return typeof f!="number"&&typeof f!="string"?"":String(f)}return c}(),l=r.Input=function(c){function f(){var i;return i=c.call(this)||this,i.inputRef=(0,e.createRef)(),i.state={editing:!1},i.handleInput=function(s){var u=i.state.editing,C=i.props.onInput;u||i.setEditing(!0),C&&C(s,s.target.value)},i.handleFocus=function(s){var u=i.state.editing;u||i.setEditing(!0)},i.handleBlur=function(s){var u=i.state.editing,C=i.props.onChange;u&&(i.setEditing(!1),C&&C(s,s.target.value))},i.handleKeyDown=function(s){var u=i.props,C=u.onInput,v=u.onChange,g=u.onEnter;if(s.keyCode===o.KEY_ENTER){i.setEditing(!1),v&&v(s,s.target.value),C&&C(s,s.target.value),g&&g(s,s.target.value),i.props.selfClear?s.target.value="":s.target.blur();return}if(s.keyCode===o.KEY_ESCAPE){i.setEditing(!1),s.target.value=h(i.props.value),s.target.blur();return}},i}S(f,c);var d=f.prototype;return d.componentDidMount=function(){function i(){var s=this,u=this.props.value,C=this.inputRef.current;C&&(C.value=h(u),C.selectionStart=0,C.selectionEnd=C.value.length),(this.props.autoFocus||this.props.autoSelect)&&setTimeout(function(){C.focus(),s.props.autoSelect&&C.select()},1)}return i}(),d.componentDidUpdate=function(){function i(s,u){var C=this.state.editing,v=s.value,g=this.props.value,p=this.inputRef.current;p&&!C&&v!==g&&(p.value=h(g))}return i}(),d.setEditing=function(){function i(s){this.setState({editing:s})}return i}(),d.render=function(){function i(){var s=this.props,u=s.selfClear,C=s.onInput,v=s.onChange,g=s.onEnter,p=s.value,N=s.maxLength,b=s.placeholder,B=s.autofocus,L=s.disabled,w=s.multiline,T=s.cols,x=T===void 0?32:T,A=s.rows,E=A===void 0?4:A,M=y(s,m),D=M.className,P=M.fluid,R=M.monospace,j=y(M,V);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,t.Box,Object.assign({className:(0,a.classes)(["Input",P&&"Input--fluid",R&&"Input--monospace",L&&"Input--disabled",D])},j,{children:[(0,e.createVNode)(1,"div","Input__baseline",".",16),w?(0,e.createVNode)(128,"textarea","Input__textarea",null,1,{placeholder:b,onInput:this.handleInput,onFocus:this.handleFocus,onBlur:this.handleBlur,maxLength:N,cols:x,rows:E,disabled:L},null,this.inputRef):(0,e.createVNode)(64,"input","Input__input",null,1,{placeholder:b,onInput:this.handleInput,onFocus:this.handleFocus,onBlur:this.handleBlur,onKeyDown:this.handleKeyDown,maxLength:N,disabled:L},null,this.inputRef)]})))}return i}(),f}(e.Component)},9836:function(I,r,n){"use strict";r.__esModule=!0,r.Knob=void 0;var e=n(96524),a=n(36121),t=n(28234),o=n(3051),m=n(27648),V=n(5985),y=["animated","format","maxValue","minValue","onChange","onDrag","step","stepPixelSize","suppressFlicker","unit","value","className","style","fillValue","color","ranges","size","bipolar","children","popUpPosition"];/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */function S(p,l){if(p==null)return{};var c={},f=Object.keys(p),u,i;for(i=0;i=0)&&(c[u]=p[u]);return c}var k=r.Knob=function(){function p(l){var c=l.animated,f=l.format,u=l.maxValue,i=l.minValue,s=l.onChange,d=l.onDrag,h=l.step,v=l.stepPixelSize,g=l.suppressFlicker,C=l.unit,V=l.value,b=l.className,B=l.style,I=l.fillValue,w=l.color,T=l.ranges,A=T===void 0?{}:T,x=l.size,E=x===void 0?1:x,M=l.bipolar,j=l.children,P=l.popUpPosition,R=S(l,y);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,m.DraggableControl,Object.assign({dragMatrix:[0,-1]},{animated:c,format:f,maxValue:u,minValue:i,onChange:s,onDrag:d,step:h,stepPixelSize:v,suppressFlicker:g,unit:C,value:V},{children:function(){function D(F){var W=F.dragging,_=F.editing,H=F.value,z=F.displayValue,$=F.displayElement,X=F.inputElement,J=F.handleDragStart,ce=(0,a.scale)(I!=null?I:z,i,u),re=(0,a.scale)(z,i,u),me=w||(0,a.keyOfMatchingRange)(I!=null?I:H,A)||"default",pe=(re-.5)*270;return(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,t.classes)(["Knob","Knob--color--"+me,M&&"Knob--bipolar",b,(0,o.computeBoxClassName)(R)]),[(0,e.createVNode)(1,"div","Knob__circle",(0,e.createVNode)(1,"div","Knob__cursorBox",(0,e.createVNode)(1,"div","Knob__cursor"),2,{style:{transform:"rotate("+pe+"deg)"}}),2),W&&(0,e.createVNode)(1,"div",(0,t.classes)(["Knob__popupValue",P&&"Knob__popupValue--"+P]),$,0),(0,e.createVNode)(32,"svg","Knob__ring Knob__ringTrackPivot",(0,e.createVNode)(32,"circle","Knob__ringTrack",null,1,{cx:"50",cy:"50",r:"50"}),2,{viewBox:"0 0 100 100"}),(0,e.createVNode)(32,"svg","Knob__ring Knob__ringFillPivot",(0,e.createVNode)(32,"circle","Knob__ringFill",null,1,{style:{"stroke-dashoffset":((M?2.75:2)-ce*1.5)*Math.PI*50},cx:"50",cy:"50",r:"50"}),2,{viewBox:"0 0 100 100"}),X],0,Object.assign({},(0,o.computeBoxProps)(Object.assign({style:Object.assign({"font-size":E+"em"},B)},R)),{onMouseDown:J})))}return D}()})))}return p}()},86259:function(L,r,n){"use strict";r.__esModule=!0,r.LabeledControls=void 0;var e=n(96524),a=n(18963),t=["children"],o=["label","children"];/** + */function S(h,l){if(h==null)return{};var c={},f=Object.keys(h),d,i;for(i=0;i=0)&&(c[d]=h[d]);return c}var k=r.Knob=function(){function h(l){var c=l.animated,f=l.format,d=l.maxValue,i=l.minValue,s=l.onChange,u=l.onDrag,C=l.step,v=l.stepPixelSize,g=l.suppressFlicker,p=l.unit,N=l.value,b=l.className,B=l.style,L=l.fillValue,w=l.color,T=l.ranges,x=T===void 0?{}:T,A=l.size,E=A===void 0?1:A,M=l.bipolar,D=l.children,P=l.popUpPosition,R=S(l,y);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,m.DraggableControl,Object.assign({dragMatrix:[0,-1]},{animated:c,format:f,maxValue:d,minValue:i,onChange:s,onDrag:u,step:C,stepPixelSize:v,suppressFlicker:g,unit:p,value:N},{children:function(){function j(F){var W=F.dragging,_=F.editing,K=F.value,H=F.displayValue,$=F.displayElement,X=F.inputElement,J=F.handleDragStart,ae=(0,a.scale)(L!=null?L:H,i,d),re=(0,a.scale)(H,i,d),me=w||(0,a.keyOfMatchingRange)(L!=null?L:K,x)||"default",pe=(re-.5)*270;return(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,t.classes)(["Knob","Knob--color--"+me,M&&"Knob--bipolar",b,(0,o.computeBoxClassName)(R)]),[(0,e.createVNode)(1,"div","Knob__circle",(0,e.createVNode)(1,"div","Knob__cursorBox",(0,e.createVNode)(1,"div","Knob__cursor"),2,{style:{transform:"rotate("+pe+"deg)"}}),2),W&&(0,e.createVNode)(1,"div",(0,t.classes)(["Knob__popupValue",P&&"Knob__popupValue--"+P]),$,0),(0,e.createVNode)(32,"svg","Knob__ring Knob__ringTrackPivot",(0,e.createVNode)(32,"circle","Knob__ringTrack",null,1,{cx:"50",cy:"50",r:"50"}),2,{viewBox:"0 0 100 100"}),(0,e.createVNode)(32,"svg","Knob__ring Knob__ringFillPivot",(0,e.createVNode)(32,"circle","Knob__ringFill",null,1,{style:{"stroke-dashoffset":((M?2.75:2)-ae*1.5)*Math.PI*50},cx:"50",cy:"50",r:"50"}),2,{viewBox:"0 0 100 100"}),X],0,Object.assign({},(0,o.computeBoxProps)(Object.assign({style:Object.assign({"font-size":E+"em"},B)},R)),{onMouseDown:J})))}return j}()})))}return h}()},86259:function(I,r,n){"use strict";r.__esModule=!0,r.LabeledControls=void 0;var e=n(96524),a=n(18963),t=["children"],o=["label","children"];/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */function m(S,k){if(S==null)return{};var p={},l=Object.keys(S),c,f;for(f=0;f=0)&&(p[c]=S[c]);return p}var N=r.LabeledControls=function(){function S(k){var p=k.children,l=m(k,t);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,a.Flex,Object.assign({mx:-.5,align:"stretch",justify:"space-between"},l,{children:p})))}return S}(),y=function(k){var p=k.label,l=k.children,c=m(k,o);return(0,e.createComponentVNode)(2,a.Flex.Item,{mx:1,children:(0,e.normalizeProps)((0,e.createComponentVNode)(2,a.Flex,Object.assign({minWidth:"52px",height:"100%",direction:"column",align:"center",textAlign:"center",justify:"space-between"},c,{children:[(0,e.createComponentVNode)(2,a.Flex.Item),(0,e.createComponentVNode)(2,a.Flex.Item,{children:l}),(0,e.createComponentVNode)(2,a.Flex.Item,{color:"label",children:p})]})))})};N.Item=y},91097:function(L,r,n){"use strict";r.__esModule=!0,r.LabeledList=void 0;var e=n(96524),a=n(28234),t=n(3051),o=n(31647),m=n(58749);/** + */function m(S,k){if(S==null)return{};var h={},l=Object.keys(S),c,f;for(f=0;f=0)&&(h[c]=S[c]);return h}var V=r.LabeledControls=function(){function S(k){var h=k.children,l=m(k,t);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,a.Flex,Object.assign({mx:-.5,align:"stretch",justify:"space-between"},l,{children:h})))}return S}(),y=function(k){var h=k.label,l=k.children,c=m(k,o);return(0,e.createComponentVNode)(2,a.Flex.Item,{mx:1,children:(0,e.normalizeProps)((0,e.createComponentVNode)(2,a.Flex,Object.assign({minWidth:"52px",height:"100%",direction:"column",align:"center",textAlign:"center",justify:"space-between"},c,{children:[(0,e.createComponentVNode)(2,a.Flex.Item),(0,e.createComponentVNode)(2,a.Flex.Item,{children:l}),(0,e.createComponentVNode)(2,a.Flex.Item,{color:"label",children:h})]})))})};V.Item=y},91097:function(I,r,n){"use strict";r.__esModule=!0,r.LabeledList=void 0;var e=n(96524),a=n(28234),t=n(3051),o=n(31647),m=n(58749);/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */var N=r.LabeledList=function(){function k(p){var l=p.children;return(0,e.createVNode)(1,"table","LabeledList",l,0)}return k}();N.defaultHooks=a.pureComponentHooks;var y=function(p){var l=p.className,c=p.label,f=p.labelColor,u=f===void 0?"label":f,i=p.color,s=p.textAlign,d=p.buttons,h=p.tooltip,v=p.content,g=p.children,C=(0,e.createVNode)(1,"tr",(0,a.classes)(["LabeledList__row",l]),[(0,e.createComponentVNode)(2,t.Box,{as:"td",color:u,className:(0,a.classes)(["LabeledList__cell","LabeledList__label"]),children:c?c+":":null}),(0,e.createComponentVNode)(2,t.Box,{as:"td",color:i,textAlign:s,className:(0,a.classes)(["LabeledList__cell","LabeledList__content"]),colSpan:d?void 0:2,children:[v,g]}),d&&(0,e.createVNode)(1,"td","LabeledList__cell LabeledList__buttons",d,0)],0);return h&&(C=(0,e.createComponentVNode)(2,m.Tooltip,{content:h,children:C})),C};y.defaultHooks=a.pureComponentHooks;var S=function(p){var l=p.size?(0,t.unit)(Math.max(0,p.size-1)):0;return(0,e.createVNode)(1,"tr","LabeledList__row",(0,e.createVNode)(1,"td",null,(0,e.createComponentVNode)(2,o.Divider),2,{colSpan:3,style:{"padding-top":l,"padding-bottom":l}}),2)};S.defaultHooks=a.pureComponentHooks,N.Item=y,N.Divider=S},97539:function(L,r,n){"use strict";r.__esModule=!0,r.Modal=void 0;var e=n(96524),a=n(28234),t=n(3051),o=n(72358),m=["className","children","onEnter"];/** + */var V=r.LabeledList=function(){function k(h){var l=h.children;return(0,e.createVNode)(1,"table","LabeledList",l,0)}return k}();V.defaultHooks=a.pureComponentHooks;var y=function(h){var l=h.className,c=h.label,f=h.labelColor,d=f===void 0?"label":f,i=h.color,s=h.textAlign,u=h.buttons,C=h.tooltip,v=h.content,g=h.children,p=(0,e.createVNode)(1,"tr",(0,a.classes)(["LabeledList__row",l]),[(0,e.createComponentVNode)(2,t.Box,{as:"td",color:d,className:(0,a.classes)(["LabeledList__cell","LabeledList__label"]),children:c?c+":":null}),(0,e.createComponentVNode)(2,t.Box,{as:"td",color:i,textAlign:s,className:(0,a.classes)(["LabeledList__cell","LabeledList__content"]),colSpan:u?void 0:2,children:[v,g]}),u&&(0,e.createVNode)(1,"td","LabeledList__cell LabeledList__buttons",u,0)],0);return C&&(p=(0,e.createComponentVNode)(2,m.Tooltip,{content:C,children:p})),p};y.defaultHooks=a.pureComponentHooks;var S=function(h){var l=h.size?(0,t.unit)(Math.max(0,h.size-1)):0;return(0,e.createVNode)(1,"tr","LabeledList__row",(0,e.createVNode)(1,"td",null,(0,e.createComponentVNode)(2,o.Divider),2,{colSpan:3,style:{"padding-top":l,"padding-bottom":l}}),2)};S.defaultHooks=a.pureComponentHooks,V.Item=y,V.Divider=S},97539:function(I,r,n){"use strict";r.__esModule=!0,r.Modal=void 0;var e=n(96524),a=n(28234),t=n(3051),o=n(72358),m=["className","children","onEnter"];/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */function N(S,k){if(S==null)return{};var p={},l=Object.keys(S),c,f;for(f=0;f=0)&&(p[c]=S[c]);return p}var y=r.Modal=function(){function S(k){var p=k.className,l=k.children,c=k.onEnter,f=N(k,m),u;return c&&(u=function(){function i(s){s.keyCode===13&&c(s)}return i}()),(0,e.createComponentVNode)(2,o.Dimmer,{onKeyDown:u,children:(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,a.classes)(["Modal",p,(0,t.computeBoxClassName)(f)]),l,0,Object.assign({},(0,t.computeBoxProps)(f))))})}return S}()},55830:function(L,r,n){"use strict";r.__esModule=!0,r.NanoMap=void 0;var e=n(96524),a=n(24674),t=n(17899),o=n(91097),m=n(66397),N=n(17442);function y(i,s){i.prototype=Object.create(s.prototype),i.prototype.constructor=i,S(i,s)}function S(i,s){return S=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function d(h,v){return h.__proto__=v,h}return d}(),S(i,s)}var k=function(s){return s.stopPropagation&&s.stopPropagation(),s.preventDefault&&s.preventDefault(),s.cancelBubble=!0,s.returnValue=!1,!1},p=r.NanoMap=function(i){function s(h){var v;v=i.call(this,h)||this;var g=window.innerWidth/2-256,C=window.innerHeight/2-256;return v.state={offsetX:128,offsetY:48,transform:"none",dragging:!1,originX:null,originY:null,zoom:1},v.handleDragStart=function(V){v.ref=V.target,v.setState({dragging:!1,originX:V.screenX,originY:V.screenY}),document.addEventListener("mousemove",v.handleDragMove),document.addEventListener("mouseup",v.handleDragEnd),k(V)},v.handleDragMove=function(V){v.setState(function(b){var B=Object.assign({},b),I=V.screenX-B.originX,w=V.screenY-B.originY;return b.dragging?(B.offsetX+=I,B.offsetY+=w,B.originX=V.screenX,B.originY=V.screenY):B.dragging=!0,B}),k(V)},v.handleDragEnd=function(V){v.setState({dragging:!1,originX:null,originY:null}),document.removeEventListener("mousemove",v.handleDragMove),document.removeEventListener("mouseup",v.handleDragEnd),k(V)},v.handleZoom=function(V,b){v.setState(function(B){var I=Math.min(Math.max(b,1),8),w=(I-B.zoom)*1.5;return B.zoom=I,B.offsetX=B.offsetX-262*w,B.offsetY=B.offsetY-256*w,h.onZoom&&h.onZoom(B.zoom),B})},v}y(s,i);var d=s.prototype;return d.render=function(){function h(){var v=(0,t.useBackend)(this.context),g=v.config,C=this.state,V=C.dragging,b=C.offsetX,B=C.offsetY,I=C.zoom,w=I===void 0?1:I,T=this.props.children,A=g.map+"_nanomap_z1.png",x=510*w+"px",E={width:x,height:x,"margin-top":B+"px","margin-left":b+"px",overflow:"hidden",position:"relative","background-size":"cover","background-repeat":"no-repeat","text-align":"center",cursor:V?"move":"auto"},M={width:"100%",height:"100%",position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)","-ms-interpolation-mode":"nearest-neighbor"};return(0,e.createComponentVNode)(2,a.Box,{className:"NanoMap__container",children:[(0,e.createComponentVNode)(2,a.Box,{style:E,onMouseDown:this.handleDragStart,children:[(0,e.createVNode)(1,"img",null,null,1,{src:(0,N.resolveAsset)(A),style:M}),(0,e.createComponentVNode)(2,a.Box,{children:T})]}),(0,e.createComponentVNode)(2,c,{zoom:w,onZoom:this.handleZoom})]})}return h}(),s}(e.Component),l=function(s,d){var h=s.x,v=s.y,g=s.zoom,C=g===void 0?1:g,V=s.icon,b=s.tooltip,B=s.color,I=h*2*C-C-3,w=v*2*C-C-3;return(0,e.createVNode)(1,"div",null,(0,e.createComponentVNode)(2,a.Tooltip,{content:b,children:(0,e.createComponentVNode)(2,a.Box,{position:"absolute",className:"NanoMap__marker",lineHeight:"0",bottom:w+"px",left:I+"px",children:(0,e.createComponentVNode)(2,a.Icon,{name:V,color:B,fontSize:"6px"})})}),2)};p.Marker=l;var c=function(s,d){return(0,e.createComponentVNode)(2,a.Box,{className:"NanoMap__zoomer",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Zoom",children:(0,e.createComponentVNode)(2,m.Slider,{minValue:1,maxValue:8,stepPixelSize:10,format:function(){function h(v){return v+"x"}return h}(),value:s.zoom,onDrag:function(){function h(v,g){return s.onZoom(v,g)}return h}()})})})})};p.Zoomer=c;var f,u=function(i){function s(h){var v;v=i.call(this,h)||this;var g=(0,t.useBackend)(v.props.context),C=g.act;return v.state={color:v.props.color},v.handleClick=function(V){f!==void 0&&f.setState({color:"blue"}),C("switch_camera",{name:v.props.name}),f=v,v.setState({color:"green"})},v}y(s,i);var d=s.prototype;return d.render=function(){function h(){var v=this.props.x*2*this.props.zoom-this.props.zoom-3,g=this.props.y*2*this.props.zoom-this.props.zoom-3;return(0,e.createComponentVNode)(2,a.Button,{onClick:this.handleClick,position:"absolute",className:"NanoMap__button",lineHeight:"0",color:this.props.status?this.state.color:"red",bottom:g+"px",left:v+"px",children:(0,e.createComponentVNode)(2,a.Tooltip,{content:this.props.tooltip})},this.props.key)}return h}(),s}(e.Component);p.NanoButton=u},14899:function(L,r,n){"use strict";r.__esModule=!0,r.NoticeBox=void 0;var e=n(96524),a=n(28234),t=n(3051),o=["className","color","info","warning","success","danger"];/** + */function V(S,k){if(S==null)return{};var h={},l=Object.keys(S),c,f;for(f=0;f=0)&&(h[c]=S[c]);return h}var y=r.Modal=function(){function S(k){var h=k.className,l=k.children,c=k.onEnter,f=V(k,m),d;return c&&(d=function(){function i(s){s.keyCode===13&&c(s)}return i}()),(0,e.createComponentVNode)(2,o.Dimmer,{onKeyDown:d,children:(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,a.classes)(["Modal",h,(0,t.computeBoxClassName)(f)]),l,0,Object.assign({},(0,t.computeBoxProps)(f))))})}return S}()},55830:function(I,r,n){"use strict";r.__esModule=!0,r.NanoMap=void 0;var e=n(96524),a=n(24674),t=n(17899),o=n(91097),m=n(66397),V=n(17442);function y(i,s){i.prototype=Object.create(s.prototype),i.prototype.constructor=i,S(i,s)}function S(i,s){return S=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function u(C,v){return C.__proto__=v,C}return u}(),S(i,s)}var k=function(s){return s.stopPropagation&&s.stopPropagation(),s.preventDefault&&s.preventDefault(),s.cancelBubble=!0,s.returnValue=!1,!1},h=r.NanoMap=function(i){function s(C){var v;v=i.call(this,C)||this;var g=window.innerWidth/2-256,p=window.innerHeight/2-256;return v.state={offsetX:128,offsetY:48,transform:"none",dragging:!1,originX:null,originY:null,zoom:1},v.handleDragStart=function(N){v.ref=N.target,v.setState({dragging:!1,originX:N.screenX,originY:N.screenY}),document.addEventListener("mousemove",v.handleDragMove),document.addEventListener("mouseup",v.handleDragEnd),k(N)},v.handleDragMove=function(N){v.setState(function(b){var B=Object.assign({},b),L=N.screenX-B.originX,w=N.screenY-B.originY;return b.dragging?(B.offsetX+=L,B.offsetY+=w,B.originX=N.screenX,B.originY=N.screenY):B.dragging=!0,B}),k(N)},v.handleDragEnd=function(N){v.setState({dragging:!1,originX:null,originY:null}),document.removeEventListener("mousemove",v.handleDragMove),document.removeEventListener("mouseup",v.handleDragEnd),k(N)},v.handleZoom=function(N,b){v.setState(function(B){var L=Math.min(Math.max(b,1),8),w=(L-B.zoom)*1.5;return B.zoom=L,B.offsetX=B.offsetX-262*w,B.offsetY=B.offsetY-256*w,C.onZoom&&C.onZoom(B.zoom),B})},v}y(s,i);var u=s.prototype;return u.render=function(){function C(){var v=(0,t.useBackend)(this.context),g=v.config,p=this.state,N=p.dragging,b=p.offsetX,B=p.offsetY,L=p.zoom,w=L===void 0?1:L,T=this.props.children,x=g.map+"_nanomap_z1.png",A=510*w+"px",E={width:A,height:A,"margin-top":B+"px","margin-left":b+"px",overflow:"hidden",position:"relative","background-size":"cover","background-repeat":"no-repeat","text-align":"center",cursor:N?"move":"auto"},M={width:"100%",height:"100%",position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)","-ms-interpolation-mode":"nearest-neighbor"};return(0,e.createComponentVNode)(2,a.Box,{className:"NanoMap__container",children:[(0,e.createComponentVNode)(2,a.Box,{style:E,onMouseDown:this.handleDragStart,children:[(0,e.createVNode)(1,"img",null,null,1,{src:(0,V.resolveAsset)(x),style:M}),(0,e.createComponentVNode)(2,a.Box,{children:T})]}),(0,e.createComponentVNode)(2,c,{zoom:w,onZoom:this.handleZoom})]})}return C}(),s}(e.Component),l=function(s,u){var C=s.x,v=s.y,g=s.zoom,p=g===void 0?1:g,N=s.icon,b=s.tooltip,B=s.color,L=C*2*p-p-3,w=v*2*p-p-3;return(0,e.createVNode)(1,"div",null,(0,e.createComponentVNode)(2,a.Tooltip,{content:b,children:(0,e.createComponentVNode)(2,a.Box,{position:"absolute",className:"NanoMap__marker",lineHeight:"0",bottom:w+"px",left:L+"px",children:(0,e.createComponentVNode)(2,a.Icon,{name:N,color:B,fontSize:"6px"})})}),2)};h.Marker=l;var c=function(s,u){return(0,e.createComponentVNode)(2,a.Box,{className:"NanoMap__zoomer",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Zoom",children:(0,e.createComponentVNode)(2,m.Slider,{minValue:1,maxValue:8,stepPixelSize:10,format:function(){function C(v){return v+"x"}return C}(),value:s.zoom,onDrag:function(){function C(v,g){return s.onZoom(v,g)}return C}()})})})})};h.Zoomer=c;var f,d=function(i){function s(C){var v;v=i.call(this,C)||this;var g=(0,t.useBackend)(v.props.context),p=g.act;return v.state={color:v.props.color},v.handleClick=function(N){f!==void 0&&f.setState({color:"blue"}),p("switch_camera",{name:v.props.name}),f=v,v.setState({color:"green"})},v}y(s,i);var u=s.prototype;return u.render=function(){function C(){var v=this.props.x*2*this.props.zoom-this.props.zoom-3,g=this.props.y*2*this.props.zoom-this.props.zoom-3;return(0,e.createComponentVNode)(2,a.Button,{onClick:this.handleClick,position:"absolute",className:"NanoMap__button",lineHeight:"0",color:this.props.status?this.state.color:"red",bottom:g+"px",left:v+"px",children:(0,e.createComponentVNode)(2,a.Tooltip,{content:this.props.tooltip})},this.props.key)}return C}(),s}(e.Component);h.NanoButton=d},14899:function(I,r,n){"use strict";r.__esModule=!0,r.NoticeBox=void 0;var e=n(96524),a=n(28234),t=n(3051),o=["className","color","info","warning","success","danger"];/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */function m(y,S){if(y==null)return{};var k={},p=Object.keys(y),l,c;for(c=0;c=0)&&(k[l]=y[l]);return k}var N=r.NoticeBox=function(){function y(S){var k=S.className,p=S.color,l=S.info,c=S.warning,f=S.success,u=S.danger,i=m(S,o);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,t.Box,Object.assign({className:(0,a.classes)(["NoticeBox",p&&"NoticeBox--color--"+p,l&&"NoticeBox--type--info",f&&"NoticeBox--type--success",u&&"NoticeBox--type--danger",k])},i)))}return y}();N.defaultHooks=a.pureComponentHooks},5985:function(L,r,n){"use strict";r.__esModule=!0,r.NumberInput=void 0;var e=n(96524),a=n(36121),t=n(28234),o=n(65416),m=n(3051);function N(p,l){p.prototype=Object.create(l.prototype),p.prototype.constructor=p,y(p,l)}function y(p,l){return y=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function c(f,u){return f.__proto__=u,f}return c}(),y(p,l)}/** + */function m(y,S){if(y==null)return{};var k={},h=Object.keys(y),l,c;for(c=0;c=0)&&(k[l]=y[l]);return k}var V=r.NoticeBox=function(){function y(S){var k=S.className,h=S.color,l=S.info,c=S.warning,f=S.success,d=S.danger,i=m(S,o);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,t.Box,Object.assign({className:(0,a.classes)(["NoticeBox",h&&"NoticeBox--color--"+h,l&&"NoticeBox--type--info",f&&"NoticeBox--type--success",d&&"NoticeBox--type--danger",k])},i)))}return y}();V.defaultHooks=a.pureComponentHooks},5985:function(I,r,n){"use strict";r.__esModule=!0,r.NumberInput=void 0;var e=n(96524),a=n(36121),t=n(28234),o=n(65416),m=n(3051);function V(h,l){h.prototype=Object.create(l.prototype),h.prototype.constructor=h,y(h,l)}function y(h,l){return y=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function c(f,d){return f.__proto__=d,f}return c}(),y(h,l)}/** * @file * @copyright 2020 Aleksej Komarov * @license MIT -*/var S=400,k=r.NumberInput=function(p){function l(f){var u;u=p.call(this,f)||this;var i=f.value;return u.inputRef=(0,e.createRef)(),u.state={value:i,dragging:!1,editing:!1,internalValue:null,origin:null,suppressingFlicker:!1},u.flickerTimer=null,u.suppressFlicker=function(){var s=u.props.suppressFlicker;s>0&&(u.setState({suppressingFlicker:!0}),clearTimeout(u.flickerTimer),u.flickerTimer=setTimeout(function(){return u.setState({suppressingFlicker:!1})},s))},u.handleDragStart=function(s){var d=u.props.value,h=u.state.editing;h||(document.body.style["pointer-events"]="none",u.ref=s.target,u.setState({dragging:!1,origin:s.screenY,value:d,internalValue:d}),u.timer=setTimeout(function(){u.setState({dragging:!0})},250),u.dragInterval=setInterval(function(){var v=u.state,g=v.dragging,C=v.value,V=u.props.onDrag;g&&V&&V(s,C)},u.props.updateRate||S),document.addEventListener("mousemove",u.handleDragMove),document.addEventListener("mouseup",u.handleDragEnd))},u.handleDragMove=function(s){var d=u.props,h=d.minValue,v=d.maxValue,g=d.step,C=d.stepPixelSize;u.setState(function(V){var b=Object.assign({},V),B=b.origin-s.screenY;if(V.dragging){var I=Number.isFinite(h)?h%g:0;b.internalValue=(0,a.clamp)(b.internalValue+B*g/C,h-g,v+g),b.value=(0,a.clamp)(b.internalValue-b.internalValue%g+I,h,v),b.origin=s.screenY}else Math.abs(B)>4&&(b.dragging=!0);return b})},u.handleDragEnd=function(s){var d=u.props,h=d.onChange,v=d.onDrag,g=u.state,C=g.dragging,V=g.value,b=g.internalValue;if(document.body.style["pointer-events"]="auto",clearTimeout(u.timer),clearInterval(u.dragInterval),u.setState({dragging:!1,editing:!C,origin:null}),document.removeEventListener("mousemove",u.handleDragMove),document.removeEventListener("mouseup",u.handleDragEnd),C)u.suppressFlicker(),h&&h(s,V),v&&v(s,V);else if(u.inputRef){var B=u.inputRef.current;B.value=b;try{B.focus(),B.select()}catch(I){}}},u}N(l,p);var c=l.prototype;return c.render=function(){function f(){var u=this,i=this.state,s=i.dragging,d=i.editing,h=i.value,v=i.suppressingFlicker,g=this.props,C=g.className,V=g.fluid,b=g.animated,B=g.value,I=g.unit,w=g.minValue,T=g.maxValue,A=g.height,x=g.width,E=g.lineHeight,M=g.fontSize,j=g.format,P=g.onChange,R=g.onDrag,D=B;(s||v)&&(D=h);var F=(0,e.createVNode)(1,"div","NumberInput__content",[b&&!s&&!v?(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:D,format:j}):j?j(D):D,I?" "+I:""],0);return(0,e.createComponentVNode)(2,m.Box,{className:(0,t.classes)(["NumberInput",V&&"NumberInput--fluid",C]),minWidth:x,minHeight:A,lineHeight:E,fontSize:M,onMouseDown:this.handleDragStart,children:[(0,e.createVNode)(1,"div","NumberInput__barContainer",(0,e.createVNode)(1,"div","NumberInput__bar",null,1,{style:{height:(0,a.clamp)((D-w)/(T-w)*100,0,100)+"%"}}),2),F,(0,e.createVNode)(64,"input","NumberInput__input",null,1,{style:{display:d?void 0:"none",height:A,"line-height":E,"font-size":M},onBlur:function(){function W(_){if(d){var H=(0,a.clamp)(parseFloat(_.target.value),w,T);if(Number.isNaN(H)){u.setState({editing:!1});return}u.setState({editing:!1,value:H}),u.suppressFlicker(),P&&P(_,H),R&&R(_,H)}}return W}(),onKeyDown:function(){function W(_){if(_.keyCode===13){var H=(0,a.clamp)(parseFloat(_.target.value),w,T);if(Number.isNaN(H)){u.setState({editing:!1});return}u.setState({editing:!1,value:H}),u.suppressFlicker(),P&&P(_,H),R&&R(_,H);return}if(_.keyCode===27){u.setState({editing:!1});return}}return W}()},null,this.inputRef)]})}return f}(),l}(e.Component);k.defaultHooks=t.pureComponentHooks,k.defaultProps={minValue:-1/0,maxValue:1/0,step:1,stepPixelSize:1,suppressFlicker:50}},37056:function(L,r,n){"use strict";r.__esModule=!0,r.Popper=void 0;var e=n(60023),a=n(96524);function t(N,y){N.prototype=Object.create(y.prototype),N.prototype.constructor=N,o(N,y)}function o(N,y){return o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function S(k,p){return k.__proto__=p,k}return S}(),o(N,y)}var m=r.Popper=function(N){function y(){var k;return k=N.call(this)||this,k.renderedContent=void 0,k.popperInstance=void 0,y.id+=1,k}t(y,N);var S=y.prototype;return S.componentDidMount=function(){function k(){var p=this,l=this.props,c=l.additionalStyles,f=l.options;if(this.renderedContent=document.createElement("div"),c)for(var u=0,i=Object.entries(c);u0&&(d.setState({suppressingFlicker:!0}),clearTimeout(d.flickerTimer),d.flickerTimer=setTimeout(function(){return d.setState({suppressingFlicker:!1})},s))},d.handleDragStart=function(s){var u=d.props.value,C=d.state.editing;C||(document.body.style["pointer-events"]="none",d.ref=s.target,d.setState({dragging:!1,origin:s.screenY,value:u,internalValue:u}),d.timer=setTimeout(function(){d.setState({dragging:!0})},250),d.dragInterval=setInterval(function(){var v=d.state,g=v.dragging,p=v.value,N=d.props.onDrag;g&&N&&N(s,p)},d.props.updateRate||S),document.addEventListener("mousemove",d.handleDragMove),document.addEventListener("mouseup",d.handleDragEnd))},d.handleDragMove=function(s){var u=d.props,C=u.minValue,v=u.maxValue,g=u.step,p=u.stepPixelSize;d.setState(function(N){var b=Object.assign({},N),B=b.origin-s.screenY;if(N.dragging){var L=Number.isFinite(C)?C%g:0;b.internalValue=(0,a.clamp)(b.internalValue+B*g/p,C-g,v+g),b.value=(0,a.clamp)(b.internalValue-b.internalValue%g+L,C,v),b.origin=s.screenY}else Math.abs(B)>4&&(b.dragging=!0);return b})},d.handleDragEnd=function(s){var u=d.props,C=u.onChange,v=u.onDrag,g=d.state,p=g.dragging,N=g.value,b=g.internalValue;if(document.body.style["pointer-events"]="auto",clearTimeout(d.timer),clearInterval(d.dragInterval),d.setState({dragging:!1,editing:!p,origin:null}),document.removeEventListener("mousemove",d.handleDragMove),document.removeEventListener("mouseup",d.handleDragEnd),p)d.suppressFlicker(),C&&C(s,N),v&&v(s,N);else if(d.inputRef){var B=d.inputRef.current;B.value=b;try{B.focus(),B.select()}catch(L){}}},d}V(l,h);var c=l.prototype;return c.render=function(){function f(){var d=this,i=this.state,s=i.dragging,u=i.editing,C=i.value,v=i.suppressingFlicker,g=this.props,p=g.className,N=g.fluid,b=g.animated,B=g.value,L=g.unit,w=g.minValue,T=g.maxValue,x=g.height,A=g.width,E=g.lineHeight,M=g.fontSize,D=g.format,P=g.onChange,R=g.onDrag,j=B;(s||v)&&(j=C);var F=(0,e.createVNode)(1,"div","NumberInput__content",[b&&!s&&!v?(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:j,format:D}):D?D(j):j,L?" "+L:""],0);return(0,e.createComponentVNode)(2,m.Box,{className:(0,t.classes)(["NumberInput",N&&"NumberInput--fluid",p]),minWidth:A,minHeight:x,lineHeight:E,fontSize:M,onMouseDown:this.handleDragStart,children:[(0,e.createVNode)(1,"div","NumberInput__barContainer",(0,e.createVNode)(1,"div","NumberInput__bar",null,1,{style:{height:(0,a.clamp)((j-w)/(T-w)*100,0,100)+"%"}}),2),F,(0,e.createVNode)(64,"input","NumberInput__input",null,1,{style:{display:u?void 0:"none",height:x,"line-height":E,"font-size":M},onBlur:function(){function W(_){if(u){var K=(0,a.clamp)(parseFloat(_.target.value),w,T);if(Number.isNaN(K)){d.setState({editing:!1});return}d.setState({editing:!1,value:K}),d.suppressFlicker(),P&&P(_,K),R&&R(_,K)}}return W}(),onKeyDown:function(){function W(_){if(_.keyCode===13){var K=(0,a.clamp)(parseFloat(_.target.value),w,T);if(Number.isNaN(K)){d.setState({editing:!1});return}d.setState({editing:!1,value:K}),d.suppressFlicker(),P&&P(_,K),R&&R(_,K);return}if(_.keyCode===27){d.setState({editing:!1});return}}return W}()},null,this.inputRef)]})}return f}(),l}(e.Component);k.defaultHooks=t.pureComponentHooks,k.defaultProps={minValue:-1/0,maxValue:1/0,step:1,stepPixelSize:1,suppressFlicker:50}},37056:function(I,r,n){"use strict";r.__esModule=!0,r.Popper=void 0;var e=n(60023),a=n(96524);function t(V,y){V.prototype=Object.create(y.prototype),V.prototype.constructor=V,o(V,y)}function o(V,y){return o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function S(k,h){return k.__proto__=h,k}return S}(),o(V,y)}var m=r.Popper=function(V){function y(){var k;return k=V.call(this)||this,k.renderedContent=void 0,k.popperInstance=void 0,y.id+=1,k}t(y,V);var S=y.prototype;return S.componentDidMount=function(){function k(){var h=this,l=this.props,c=l.additionalStyles,f=l.options;if(this.renderedContent=document.createElement("div"),c)for(var d=0,i=Object.entries(c);d=0)&&(u[s]=c[s]);return u}var p=r.ProgressBar=function(){function c(f){var u=f.className,i=f.value,s=f.minValue,d=s===void 0?0:s,h=f.maxValue,v=h===void 0?1:h,g=f.color,C=f.ranges,V=C===void 0?{}:C,b=f.children,B=f.fractionDigits,I=B===void 0?0:B,w=k(f,m),T=(0,a.scale)(i,d,v),A=b!==void 0,x=g||(0,a.keyOfMatchingRange)(i,V)||"default";return(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,t.classes)(["ProgressBar","ProgressBar--color--"+x,u,(0,o.computeBoxClassName)(w)]),[(0,e.createVNode)(1,"div","ProgressBar__fill ProgressBar__fill--animated",null,1,{style:{width:(0,a.clamp01)(T)*100+"%"}}),(0,e.createVNode)(1,"div","ProgressBar__content",A?b:(0,a.toFixed)(T*100,I)+"%",0)],4,Object.assign({},(0,o.computeBoxProps)(w))))}return c}();p.defaultHooks=t.pureComponentHooks;var l=r.ProgressBarCountdown=function(c){function f(i){var s;return s=c.call(this,i)||this,s.timer=null,s.state={value:Math.max(i.current*100,0)},s}y(f,c);var u=f.prototype;return u.tick=function(){function i(){var s=Math.max(this.state.value+this.props.rate,0);s<=0&&clearInterval(this.timer),this.setState(function(d){return{value:s}})}return i}(),u.componentDidMount=function(){function i(){var s=this;this.timer=setInterval(function(){return s.tick()},this.props.rate)}return i}(),u.componentWillUnmount=function(){function i(){clearInterval(this.timer)}return i}(),u.render=function(){function i(){var s=this.props,d=s.start,h=s.current,v=s.end,g=k(s,N),C=(this.state.value/100-d)/(v-d);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,p,Object.assign({value:C},g)))}return i}(),f}(e.Component);l.defaultProps={rate:1e3},p.Countdown=l},49977:function(L,r,n){"use strict";r.__esModule=!0,r.RestrictedInput=void 0;var e=n(96524),a=n(28234),t=n(36121),o=n(3051),m=n(68100),N=["onChange","onEnter","onInput","value"],y=["className","fluid","monospace"];function S(i,s){if(i==null)return{};var d={},h=Object.keys(i),v,g;for(g=0;g=0)&&(d[v]=i[v]);return d}function k(i,s){i.prototype=Object.create(s.prototype),i.prototype.constructor=i,p(i,s)}function p(i,s){return p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function d(h,v){return h.__proto__=v,h}return d}(),p(i,s)}var l=0,c=1e4,f=function(s,d,h,v){var g=d||l,C=h||h===0?h:c;if(!s||!s.length)return String(g);var V=v?parseFloat(s.replace(/[^\-\d.]/g,"")):parseInt(s.replace(/[^\-\d]/g,""),10);return isNaN(V)?String(g):String((0,t.clamp)(V,g,C))},u=r.RestrictedInput=function(i){function s(){var h;return h=i.call(this)||this,h.inputRef=(0,e.createRef)(),h.state={editing:!1},h.handleBlur=function(v){var g=h.state.editing;g&&h.setEditing(!1)},h.handleChange=function(v){var g=h.props,C=g.maxValue,V=g.minValue,b=g.onChange,B=g.allowFloats;v.target.value=f(v.target.value,V,C,B),b&&b(v,+v.target.value)},h.handleFocus=function(v){var g=h.state.editing;g||h.setEditing(!0)},h.handleInput=function(v){var g=h.state.editing,C=h.props.onInput;g||h.setEditing(!0),C&&C(v,+v.target.value)},h.handleKeyDown=function(v){var g=h.props,C=g.maxValue,V=g.minValue,b=g.onChange,B=g.onEnter,I=g.allowFloats;if(v.keyCode===m.KEY_ENTER){var w=f(v.target.value,V,C,I);h.setEditing(!1),b&&b(v,+w),B&&B(v,+w),v.target.blur();return}if(v.keyCode===m.KEY_ESCAPE){if(h.props.onEscape){h.props.onEscape(v);return}h.setEditing(!1),v.target.value=h.props.value,v.target.blur();return}},h}k(s,i);var d=s.prototype;return d.componentDidMount=function(){function h(){var v,g=this,C=this.props,V=C.maxValue,b=C.minValue,B=C.allowFloats,I=(v=this.props.value)==null?void 0:v.toString(),w=this.inputRef.current;w&&(w.value=f(I,b,V,B)),(this.props.autoFocus||this.props.autoSelect)&&setTimeout(function(){w.focus(),g.props.autoSelect&&w.select()},1)}return h}(),d.componentDidUpdate=function(){function h(v,g){var C,V,b=this.props,B=b.maxValue,I=b.minValue,w=b.allowFloats,T=this.state.editing,A=(C=v.value)==null?void 0:C.toString(),x=(V=this.props.value)==null?void 0:V.toString(),E=this.inputRef.current;E&&!T&&x!==A&&x!==E.value&&(E.value=f(x,I,B,w))}return h}(),d.setEditing=function(){function h(v){this.setState({editing:v})}return h}(),d.render=function(){function h(){var v=this.props,g=v.onChange,C=v.onEnter,V=v.onInput,b=v.value,B=S(v,N),I=B.className,w=B.fluid,T=B.monospace,A=S(B,y);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Box,Object.assign({className:(0,a.classes)(["Input",w&&"Input--fluid",T&&"Input--monospace",I])},A,{children:[(0,e.createVNode)(1,"div","Input__baseline",".",16),(0,e.createVNode)(64,"input","Input__input",null,1,{onChange:this.handleChange,onInput:this.handleInput,onFocus:this.handleFocus,onBlur:this.handleBlur,onKeyDown:this.handleKeyDown,type:"number"},null,this.inputRef)]})))}return h}(),s}(e.Component)},2083:function(L,r,n){"use strict";r.__esModule=!0,r.RoundGauge=void 0;var e=n(96524),a=n(36121),t=n(28234),o=n(65416),m=n(3051),N=["value","minValue","maxValue","ranges","alertAfter","format","size","className","style"];/** + */function y(c,f){c.prototype=Object.create(f.prototype),c.prototype.constructor=c,S(c,f)}function S(c,f){return S=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function d(i,s){return i.__proto__=s,i}return d}(),S(c,f)}function k(c,f){if(c==null)return{};var d={},i=Object.keys(c),s,u;for(u=0;u=0)&&(d[s]=c[s]);return d}var h=r.ProgressBar=function(){function c(f){var d=f.className,i=f.value,s=f.minValue,u=s===void 0?0:s,C=f.maxValue,v=C===void 0?1:C,g=f.color,p=f.ranges,N=p===void 0?{}:p,b=f.children,B=f.fractionDigits,L=B===void 0?0:B,w=k(f,m),T=(0,a.scale)(i,u,v),x=b!==void 0,A=g||(0,a.keyOfMatchingRange)(i,N)||"default";return(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,t.classes)(["ProgressBar","ProgressBar--color--"+A,d,(0,o.computeBoxClassName)(w)]),[(0,e.createVNode)(1,"div","ProgressBar__fill ProgressBar__fill--animated",null,1,{style:{width:(0,a.clamp01)(T)*100+"%"}}),(0,e.createVNode)(1,"div","ProgressBar__content",x?b:(0,a.toFixed)(T*100,L)+"%",0)],4,Object.assign({},(0,o.computeBoxProps)(w))))}return c}();h.defaultHooks=t.pureComponentHooks;var l=r.ProgressBarCountdown=function(c){function f(i){var s;return s=c.call(this,i)||this,s.timer=null,s.state={value:Math.max(i.current*100,0)},s}y(f,c);var d=f.prototype;return d.tick=function(){function i(){var s=Math.max(this.state.value+this.props.rate,0);s<=0&&clearInterval(this.timer),this.setState(function(u){return{value:s}})}return i}(),d.componentDidMount=function(){function i(){var s=this;this.timer=setInterval(function(){return s.tick()},this.props.rate)}return i}(),d.componentWillUnmount=function(){function i(){clearInterval(this.timer)}return i}(),d.render=function(){function i(){var s=this.props,u=s.start,C=s.current,v=s.end,g=k(s,V),p=(this.state.value/100-u)/(v-u);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,h,Object.assign({value:p},g)))}return i}(),f}(e.Component);l.defaultProps={rate:1e3},h.Countdown=l},49977:function(I,r,n){"use strict";r.__esModule=!0,r.RestrictedInput=void 0;var e=n(96524),a=n(28234),t=n(36121),o=n(3051),m=n(68100),V=["onChange","onEnter","onInput","value"],y=["className","fluid","monospace"];function S(i,s){if(i==null)return{};var u={},C=Object.keys(i),v,g;for(g=0;g=0)&&(u[v]=i[v]);return u}function k(i,s){i.prototype=Object.create(s.prototype),i.prototype.constructor=i,h(i,s)}function h(i,s){return h=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function u(C,v){return C.__proto__=v,C}return u}(),h(i,s)}var l=0,c=1e4,f=function(s,u,C,v){var g=u||l,p=C||C===0?C:c;if(!s||!s.length)return String(g);var N=v?parseFloat(s.replace(/[^\-\d.]/g,"")):parseInt(s.replace(/[^\-\d]/g,""),10);return isNaN(N)?String(g):String((0,t.clamp)(N,g,p))},d=r.RestrictedInput=function(i){function s(){var C;return C=i.call(this)||this,C.inputRef=(0,e.createRef)(),C.state={editing:!1},C.handleBlur=function(v){var g=C.state.editing;g&&C.setEditing(!1)},C.handleChange=function(v){var g=C.props,p=g.maxValue,N=g.minValue,b=g.onChange,B=g.allowFloats;v.target.value=f(v.target.value,N,p,B),b&&b(v,+v.target.value)},C.handleFocus=function(v){var g=C.state.editing;g||C.setEditing(!0)},C.handleInput=function(v){var g=C.state.editing,p=C.props.onInput;g||C.setEditing(!0),p&&p(v,+v.target.value)},C.handleKeyDown=function(v){var g=C.props,p=g.maxValue,N=g.minValue,b=g.onChange,B=g.onEnter,L=g.allowFloats;if(v.keyCode===m.KEY_ENTER){var w=f(v.target.value,N,p,L);C.setEditing(!1),b&&b(v,+w),B&&B(v,+w),v.target.blur();return}if(v.keyCode===m.KEY_ESCAPE){if(C.props.onEscape){C.props.onEscape(v);return}C.setEditing(!1),v.target.value=C.props.value,v.target.blur();return}},C}k(s,i);var u=s.prototype;return u.componentDidMount=function(){function C(){var v,g=this,p=this.props,N=p.maxValue,b=p.minValue,B=p.allowFloats,L=(v=this.props.value)==null?void 0:v.toString(),w=this.inputRef.current;w&&(w.value=f(L,b,N,B)),(this.props.autoFocus||this.props.autoSelect)&&setTimeout(function(){w.focus(),g.props.autoSelect&&w.select()},1)}return C}(),u.componentDidUpdate=function(){function C(v,g){var p,N,b=this.props,B=b.maxValue,L=b.minValue,w=b.allowFloats,T=this.state.editing,x=(p=v.value)==null?void 0:p.toString(),A=(N=this.props.value)==null?void 0:N.toString(),E=this.inputRef.current;E&&!T&&A!==x&&A!==E.value&&(E.value=f(A,L,B,w))}return C}(),u.setEditing=function(){function C(v){this.setState({editing:v})}return C}(),u.render=function(){function C(){var v=this.props,g=v.onChange,p=v.onEnter,N=v.onInput,b=v.value,B=S(v,V),L=B.className,w=B.fluid,T=B.monospace,x=S(B,y);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Box,Object.assign({className:(0,a.classes)(["Input",w&&"Input--fluid",T&&"Input--monospace",L])},x,{children:[(0,e.createVNode)(1,"div","Input__baseline",".",16),(0,e.createVNode)(64,"input","Input__input",null,1,{onChange:this.handleChange,onInput:this.handleInput,onFocus:this.handleFocus,onBlur:this.handleBlur,onKeyDown:this.handleKeyDown,type:"number"},null,this.inputRef)]})))}return C}(),s}(e.Component)},2083:function(I,r,n){"use strict";r.__esModule=!0,r.RoundGauge=void 0;var e=n(96524),a=n(36121),t=n(28234),o=n(65416),m=n(3051),V=["value","minValue","maxValue","ranges","alertAfter","format","size","className","style"];/** * @file * @copyright 2020 bobbahbrown (https://github.com/bobbahbrown) * @license MIT - */function y(k,p){if(k==null)return{};var l={},c=Object.keys(k),f,u;for(u=0;u=0)&&(l[f]=k[f]);return l}var S=r.RoundGauge=function(){function k(p){var l=p.value,c=p.minValue,f=c===void 0?1:c,u=p.maxValue,i=u===void 0?1:u,s=p.ranges,d=p.alertAfter,h=p.format,v=p.size,g=v===void 0?1:v,C=p.className,V=p.style,b=y(p,N),B=(0,a.scale)(l,f,i),I=(0,a.clamp01)(B),w=s?{}:{primary:[0,1]};s&&Object.keys(s).forEach(function(A){var x=s[A];w[A]=[(0,a.scale)(x[0],f,i),(0,a.scale)(x[1],f,i)]});var T=null;return d=0)&&(c[u]=p[u]);return c}function y(p,l){p.prototype=Object.create(l.prototype),p.prototype.constructor=p,S(p,l)}function S(p,l){return S=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function c(f,u){return f.__proto__=u,f}return c}(),S(p,l)}/** + */function y(k,h){if(k==null)return{};var l={},c=Object.keys(k),f,d;for(d=0;d=0)&&(l[f]=k[f]);return l}var S=r.RoundGauge=function(){function k(h){var l=h.value,c=h.minValue,f=c===void 0?1:c,d=h.maxValue,i=d===void 0?1:d,s=h.ranges,u=h.alertAfter,C=h.format,v=h.size,g=v===void 0?1:v,p=h.className,N=h.style,b=y(h,V),B=(0,a.scale)(l,f,i),L=(0,a.clamp01)(B),w=s?{}:{primary:[0,1]};s&&Object.keys(s).forEach(function(x){var A=s[x];w[x]=[(0,a.scale)(A[0],f,i),(0,a.scale)(A[1],f,i)]});var T=null;return u=0)&&(c[d]=h[d]);return c}function y(h,l){h.prototype=Object.create(l.prototype),h.prototype.constructor=h,S(h,l)}function S(h,l){return S=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function c(f,d){return f.__proto__=d,f}return c}(),S(h,l)}/** * @file * @copyright 2020 Aleksej Komarov * @license MIT -*/var k=r.Section=function(p){function l(f){var u;return u=p.call(this,f)||this,u.scrollableRef=void 0,u.scrollable=void 0,u.scrollableRef=(0,e.createRef)(),u.scrollable=f.scrollable,u}y(l,p);var c=l.prototype;return c.componentDidMount=function(){function f(){this.scrollable&&(0,t.addScrollableNode)(this.scrollableRef.current)}return f}(),c.componentWillUnmount=function(){function f(){this.scrollable&&(0,t.removeScrollableNode)(this.scrollableRef.current)}return f}(),c.render=function(){function f(){var u=this.props,i=u.className,s=u.title,d=u.buttons,h=u.fill,v=u.fitted,g=u.scrollable,C=u.children,V=N(u,m),b=(0,a.canRender)(s)||(0,a.canRender)(d);return(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,a.classes)(["Section",h&&"Section--fill",v&&"Section--fitted",g&&"Section--scrollable",i,(0,o.computeBoxClassName)(V)]),[b&&(0,e.createVNode)(1,"div","Section__title",[(0,e.createVNode)(1,"span","Section__titleText",s,0),(0,e.createVNode)(1,"div","Section__buttons",d,0)],4),(0,e.createVNode)(1,"div","Section__rest",(0,e.createVNode)(1,"div","Section__content",C,0,null,null,this.scrollableRef),2)],0,Object.assign({},(0,o.computeBoxProps)(V))))}return f}(),l}(e.Component)},66397:function(L,r,n){"use strict";r.__esModule=!0,r.Slider=void 0;var e=n(96524),a=n(36121),t=n(28234),o=n(3051),m=n(27648),N=n(5985),y=["animated","format","maxValue","minValue","onChange","onDrag","step","stepPixelSize","suppressFlicker","unit","value","className","fillValue","color","ranges","children","disabled"];/** +*/var k=r.Section=function(h){function l(f){var d;return d=h.call(this,f)||this,d.scrollableRef=void 0,d.scrollable=void 0,d.scrollableRef=(0,e.createRef)(),d.scrollable=f.scrollable,d}y(l,h);var c=l.prototype;return c.componentDidMount=function(){function f(){this.scrollable&&(0,t.addScrollableNode)(this.scrollableRef.current)}return f}(),c.componentWillUnmount=function(){function f(){this.scrollable&&(0,t.removeScrollableNode)(this.scrollableRef.current)}return f}(),c.render=function(){function f(){var d=this.props,i=d.className,s=d.title,u=d.buttons,C=d.fill,v=d.fitted,g=d.scrollable,p=d.children,N=V(d,m),b=(0,a.canRender)(s)||(0,a.canRender)(u);return(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,a.classes)(["Section",C&&"Section--fill",v&&"Section--fitted",g&&"Section--scrollable",i,(0,o.computeBoxClassName)(N)]),[b&&(0,e.createVNode)(1,"div","Section__title",[(0,e.createVNode)(1,"span","Section__titleText",s,0),(0,e.createVNode)(1,"div","Section__buttons",u,0)],4),(0,e.createVNode)(1,"div","Section__rest",(0,e.createVNode)(1,"div","Section__content",p,0,null,null,this.scrollableRef),2)],0,Object.assign({},(0,o.computeBoxProps)(N))))}return f}(),l}(e.Component)},66397:function(I,r,n){"use strict";r.__esModule=!0,r.Slider=void 0;var e=n(96524),a=n(36121),t=n(28234),o=n(3051),m=n(27648),V=n(5985),y=["animated","format","maxValue","minValue","onChange","onDrag","step","stepPixelSize","suppressFlicker","unit","value","className","fillValue","color","ranges","children","disabled"];/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */function S(p,l){if(p==null)return{};var c={},f=Object.keys(p),u,i;for(i=0;i=0)&&(c[u]=p[u]);return c}var k=r.Slider=function(){function p(l){var c=l.animated,f=l.format,u=l.maxValue,i=l.minValue,s=l.onChange,d=l.onDrag,h=l.step,v=l.stepPixelSize,g=l.suppressFlicker,C=l.unit,V=l.value,b=l.className,B=l.fillValue,I=l.color,w=l.ranges,T=w===void 0?{}:w,A=l.children,x=l.disabled,E=S(l,y),M=A!==void 0;return(0,e.normalizeProps)((0,e.createComponentVNode)(2,m.DraggableControl,Object.assign({dragMatrix:[1,0]},{animated:c,format:f,maxValue:u,minValue:i,onChange:s,onDrag:d,step:h,stepPixelSize:v,suppressFlicker:g,unit:C,value:V,disabled:x},{children:function(){function j(P){var R=P.dragging,D=P.editing,F=P.value,W=P.displayValue,_=P.displayElement,H=P.inputElement,z=P.handleDragStart,$=B!=null,X=(0,a.scale)(F,i,u),J=(0,a.scale)(B!=null?B:W,i,u),ce=(0,a.scale)(W,i,u),re=I||(0,a.keyOfMatchingRange)(B!=null?B:F,T)||"default";return(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,t.classes)(["Slider",x&&"Slider__disabled","ProgressBar",x?"ProgressBar--color--disabled":"ProgressBar--color--"+re,b,(0,o.computeBoxClassName)(E)]),[(0,e.createVNode)(1,"div",(0,t.classes)(["ProgressBar__fill",$&&"ProgressBar__fill--animated"]),null,1,{style:{width:(0,a.clamp01)(J)*100+"%",opacity:.4}}),(0,e.createVNode)(1,"div","ProgressBar__fill",null,1,{style:{width:(0,a.clamp01)(Math.min(J,ce))*100+"%"}}),(0,e.createVNode)(1,"div","Slider__cursorOffset",[(0,e.createVNode)(1,"div","Slider__cursor"),(0,e.createVNode)(1,"div","Slider__pointer"),R&&(0,e.createVNode)(1,"div","Slider__popupValue",_,0)],0,{style:{width:(0,a.clamp01)(ce)*100+"%"}}),(0,e.createVNode)(1,"div","ProgressBar__content",M?A:_,0),H],0,Object.assign({disabled:x},(0,o.computeBoxProps)(E),{onMouseDown:z})))}return j}()})))}return p}()},24800:function(L,r,n){"use strict";r.__esModule=!0,r.Stack=void 0;var e=n(96524),a=n(28234),t=n(18963),o=["className","vertical","fill"],m=["className","innerRef"],N=["className","hidden"];/** + */function S(h,l){if(h==null)return{};var c={},f=Object.keys(h),d,i;for(i=0;i=0)&&(c[d]=h[d]);return c}var k=r.Slider=function(){function h(l){var c=l.animated,f=l.format,d=l.maxValue,i=l.minValue,s=l.onChange,u=l.onDrag,C=l.step,v=l.stepPixelSize,g=l.suppressFlicker,p=l.unit,N=l.value,b=l.className,B=l.fillValue,L=l.color,w=l.ranges,T=w===void 0?{}:w,x=l.children,A=l.disabled,E=S(l,y),M=x!==void 0;return(0,e.normalizeProps)((0,e.createComponentVNode)(2,m.DraggableControl,Object.assign({dragMatrix:[1,0]},{animated:c,format:f,maxValue:d,minValue:i,onChange:s,onDrag:u,step:C,stepPixelSize:v,suppressFlicker:g,unit:p,value:N,disabled:A},{children:function(){function D(P){var R=P.dragging,j=P.editing,F=P.value,W=P.displayValue,_=P.displayElement,K=P.inputElement,H=P.handleDragStart,$=B!=null,X=(0,a.scale)(F,i,d),J=(0,a.scale)(B!=null?B:W,i,d),ae=(0,a.scale)(W,i,d),re=L||(0,a.keyOfMatchingRange)(B!=null?B:F,T)||"default";return(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,t.classes)(["Slider",A&&"Slider__disabled","ProgressBar",A?"ProgressBar--color--disabled":"ProgressBar--color--"+re,b,(0,o.computeBoxClassName)(E)]),[(0,e.createVNode)(1,"div",(0,t.classes)(["ProgressBar__fill",$&&"ProgressBar__fill--animated"]),null,1,{style:{width:(0,a.clamp01)(J)*100+"%",opacity:.4}}),(0,e.createVNode)(1,"div","ProgressBar__fill",null,1,{style:{width:(0,a.clamp01)(Math.min(J,ae))*100+"%"}}),(0,e.createVNode)(1,"div","Slider__cursorOffset",[(0,e.createVNode)(1,"div","Slider__cursor"),(0,e.createVNode)(1,"div","Slider__pointer"),R&&(0,e.createVNode)(1,"div","Slider__popupValue",_,0)],0,{style:{width:(0,a.clamp01)(ae)*100+"%"}}),(0,e.createVNode)(1,"div","ProgressBar__content",M?x:_,0),K],0,Object.assign({disabled:A},(0,o.computeBoxProps)(E),{onMouseDown:H})))}return D}()})))}return h}()},24800:function(I,r,n){"use strict";r.__esModule=!0,r.Stack=void 0;var e=n(96524),a=n(28234),t=n(18963),o=["className","vertical","fill"],m=["className","innerRef"],V=["className","hidden"];/** * @file * @copyright 2021 Aleksej Komarov * @license MIT - */function y(l,c){if(l==null)return{};var f={},u=Object.keys(l),i,s;for(s=0;s=0)&&(f[i]=l[i]);return f}var S=r.Stack=function(){function l(c){var f=c.className,u=c.vertical,i=c.fill,s=y(c,o);return(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,a.classes)(["Stack",i&&"Stack--fill",u?"Stack--vertical":"Stack--horizontal",f,(0,t.computeFlexClassName)(c)]),null,1,Object.assign({},(0,t.computeFlexProps)(Object.assign({direction:u?"column":"row"},s)))))}return l}(),k=function(c){var f=c.className,u=c.innerRef,i=y(c,m);return(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,a.classes)(["Stack__item",f,(0,t.computeFlexItemClassName)(i)]),null,1,Object.assign({},(0,t.computeFlexItemProps)(i)),null,u))};S.Item=k;var p=function(c){var f=c.className,u=c.hidden,i=y(c,N);return(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,a.classes)(["Stack__item","Stack__divider",u&&"Stack__divider--hidden",f,(0,t.computeFlexItemClassName)(i)]),null,1,Object.assign({},(0,t.computeFlexItemProps)(i))))};S.Divider=p},5126:function(L,r,n){"use strict";r.__esModule=!0,r.TableRow=r.TableCell=r.Table=void 0;var e=n(96524),a=n(28234),t=n(3051),o=["className","collapsing","children"],m=["className","header"],N=["className","collapsing","header"];/** + */function y(l,c){if(l==null)return{};var f={},d=Object.keys(l),i,s;for(s=0;s=0)&&(f[i]=l[i]);return f}var S=r.Stack=function(){function l(c){var f=c.className,d=c.vertical,i=c.fill,s=y(c,o);return(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,a.classes)(["Stack",i&&"Stack--fill",d?"Stack--vertical":"Stack--horizontal",f,(0,t.computeFlexClassName)(c)]),null,1,Object.assign({},(0,t.computeFlexProps)(Object.assign({direction:d?"column":"row"},s)))))}return l}(),k=function(c){var f=c.className,d=c.innerRef,i=y(c,m);return(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,a.classes)(["Stack__item",f,(0,t.computeFlexItemClassName)(i)]),null,1,Object.assign({},(0,t.computeFlexItemProps)(i)),null,d))};S.Item=k;var h=function(c){var f=c.className,d=c.hidden,i=y(c,V);return(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,a.classes)(["Stack__item","Stack__divider",d&&"Stack__divider--hidden",f,(0,t.computeFlexItemClassName)(i)]),null,1,Object.assign({},(0,t.computeFlexItemProps)(i))))};S.Divider=h},5126:function(I,r,n){"use strict";r.__esModule=!0,r.TableRow=r.TableCell=r.Table=void 0;var e=n(96524),a=n(28234),t=n(3051),o=["className","collapsing","children"],m=["className","header"],V=["className","collapsing","header"];/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */function y(l,c){if(l==null)return{};var f={},u=Object.keys(l),i,s;for(s=0;s=0)&&(f[i]=l[i]);return f}var S=r.Table=function(){function l(c){var f=c.className,u=c.collapsing,i=c.children,s=y(c,o);return(0,e.normalizeProps)((0,e.createVNode)(1,"table",(0,a.classes)(["Table",u&&"Table--collapsing",f,(0,t.computeBoxClassName)(s)]),(0,e.createVNode)(1,"tbody",null,i,0),2,Object.assign({},(0,t.computeBoxProps)(s))))}return l}();S.defaultHooks=a.pureComponentHooks;var k=r.TableRow=function(){function l(c){var f=c.className,u=c.header,i=y(c,m);return(0,e.normalizeProps)((0,e.createVNode)(1,"tr",(0,a.classes)(["Table__row",u&&"Table__row--header",f,(0,t.computeBoxClassName)(c)]),null,1,Object.assign({},(0,t.computeBoxProps)(i))))}return l}();k.defaultHooks=a.pureComponentHooks;var p=r.TableCell=function(){function l(c){var f=c.className,u=c.collapsing,i=c.header,s=y(c,N);return(0,e.normalizeProps)((0,e.createVNode)(1,"td",(0,a.classes)(["Table__cell",u&&"Table__cell--collapsing",i&&"Table__cell--header",f,(0,t.computeBoxClassName)(c)]),null,1,Object.assign({},(0,t.computeBoxProps)(s))))}return l}();p.defaultHooks=a.pureComponentHooks,S.Row=k,S.Cell=p},26104:function(L,r,n){"use strict";r.__esModule=!0,r.Tabs=void 0;var e=n(96524),a=n(28234),t=n(3051),o=n(11253),m=["className","vertical","fill","fluid","children"],N=["className","selected","color","icon","leftSlot","rightSlot","children"];/** + */function y(l,c){if(l==null)return{};var f={},d=Object.keys(l),i,s;for(s=0;s=0)&&(f[i]=l[i]);return f}var S=r.Table=function(){function l(c){var f=c.className,d=c.collapsing,i=c.children,s=y(c,o);return(0,e.normalizeProps)((0,e.createVNode)(1,"table",(0,a.classes)(["Table",d&&"Table--collapsing",f,(0,t.computeBoxClassName)(s)]),(0,e.createVNode)(1,"tbody",null,i,0),2,Object.assign({},(0,t.computeBoxProps)(s))))}return l}();S.defaultHooks=a.pureComponentHooks;var k=r.TableRow=function(){function l(c){var f=c.className,d=c.header,i=y(c,m);return(0,e.normalizeProps)((0,e.createVNode)(1,"tr",(0,a.classes)(["Table__row",d&&"Table__row--header",f,(0,t.computeBoxClassName)(c)]),null,1,Object.assign({},(0,t.computeBoxProps)(i))))}return l}();k.defaultHooks=a.pureComponentHooks;var h=r.TableCell=function(){function l(c){var f=c.className,d=c.collapsing,i=c.header,s=y(c,V);return(0,e.normalizeProps)((0,e.createVNode)(1,"td",(0,a.classes)(["Table__cell",d&&"Table__cell--collapsing",i&&"Table__cell--header",f,(0,t.computeBoxClassName)(c)]),null,1,Object.assign({},(0,t.computeBoxProps)(s))))}return l}();h.defaultHooks=a.pureComponentHooks,S.Row=k,S.Cell=h},26104:function(I,r,n){"use strict";r.__esModule=!0,r.Tabs=void 0;var e=n(96524),a=n(28234),t=n(3051),o=n(11253),m=["className","vertical","fill","fluid","children"],V=["className","selected","color","icon","leftSlot","rightSlot","children"];/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */function y(p,l){if(p==null)return{};var c={},f=Object.keys(p),u,i;for(i=0;i=0)&&(c[u]=p[u]);return c}var S=r.Tabs=function(){function p(l){var c=l.className,f=l.vertical,u=l.fill,i=l.fluid,s=l.children,d=y(l,m);return(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,a.classes)(["Tabs",f?"Tabs--vertical":"Tabs--horizontal",u&&"Tabs--fill",i&&"Tabs--fluid",c,(0,t.computeBoxClassName)(d)]),s,0,Object.assign({},(0,t.computeBoxProps)(d))))}return p}(),k=function(l){var c=l.className,f=l.selected,u=l.color,i=l.icon,s=l.leftSlot,d=l.rightSlot,h=l.children,v=y(l,N);return(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,a.classes)(["Tab","Tabs__Tab","Tab--color--"+u,f&&"Tab--selected",c,(0,t.computeBoxClassName)(v)]),[(0,a.canRender)(s)&&(0,e.createVNode)(1,"div","Tab__left",s,0)||!!i&&(0,e.createVNode)(1,"div","Tab__left",(0,e.createComponentVNode)(2,o.Icon,{name:i}),2),(0,e.createVNode)(1,"div","Tab__text",h,0),(0,a.canRender)(d)&&(0,e.createVNode)(1,"div","Tab__right",d,0)],0,Object.assign({},(0,t.computeBoxProps)(v))))};S.Tab=k},67606:function(L,r,n){"use strict";r.__esModule=!0,r.TextArea=void 0;var e=n(96524),a=n(28234),t=n(3051),o=n(49034),m=n(68100),N=["onChange","onKeyDown","onKeyPress","onInput","onFocus","onBlur","onEnter","value","maxLength","placeholder"],y=["className","fluid"];function S(c,f){if(c==null)return{};var u={},i=Object.keys(c),s,d;for(d=0;d=0)&&(u[s]=c[s]);return u}function k(c,f){c.prototype=Object.create(f.prototype),c.prototype.constructor=c,p(c,f)}function p(c,f){return p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function u(i,s){return i.__proto__=s,i}return u}(),p(c,f)}/** + */function y(h,l){if(h==null)return{};var c={},f=Object.keys(h),d,i;for(i=0;i=0)&&(c[d]=h[d]);return c}var S=r.Tabs=function(){function h(l){var c=l.className,f=l.vertical,d=l.fill,i=l.fluid,s=l.children,u=y(l,m);return(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,a.classes)(["Tabs",f?"Tabs--vertical":"Tabs--horizontal",d&&"Tabs--fill",i&&"Tabs--fluid",c,(0,t.computeBoxClassName)(u)]),s,0,Object.assign({},(0,t.computeBoxProps)(u))))}return h}(),k=function(l){var c=l.className,f=l.selected,d=l.color,i=l.icon,s=l.leftSlot,u=l.rightSlot,C=l.children,v=y(l,V);return(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,a.classes)(["Tab","Tabs__Tab","Tab--color--"+d,f&&"Tab--selected",c,(0,t.computeBoxClassName)(v)]),[(0,a.canRender)(s)&&(0,e.createVNode)(1,"div","Tab__left",s,0)||!!i&&(0,e.createVNode)(1,"div","Tab__left",(0,e.createComponentVNode)(2,o.Icon,{name:i}),2),(0,e.createVNode)(1,"div","Tab__text",C,0),(0,a.canRender)(u)&&(0,e.createVNode)(1,"div","Tab__right",u,0)],0,Object.assign({},(0,t.computeBoxProps)(v))))};S.Tab=k},67606:function(I,r,n){"use strict";r.__esModule=!0,r.TextArea=void 0;var e=n(96524),a=n(28234),t=n(3051),o=n(49034),m=n(68100),V=["onChange","onKeyDown","onKeyPress","onInput","onFocus","onBlur","onEnter","value","maxLength","placeholder"],y=["className","fluid"];function S(c,f){if(c==null)return{};var d={},i=Object.keys(c),s,u;for(u=0;u=0)&&(d[s]=c[s]);return d}function k(c,f){c.prototype=Object.create(f.prototype),c.prototype.constructor=c,h(c,f)}function h(c,f){return h=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function d(i,s){return i.__proto__=s,i}return d}(),h(c,f)}/** * @file * @copyright 2020 Aleksej Komarov * @author Warlockd * @license MIT -*/var l=r.TextArea=function(c){function f(i,s){var d;d=c.call(this,i,s)||this,d.textareaRef=i.innerRef||(0,e.createRef)(),d.fillerRef=(0,e.createRef)(),d.state={editing:!1};var h=i.dontUseTabForIndent,v=h===void 0?!1:h;return d.handleOnInput=function(g){var C=d.state.editing,V=d.props.onInput;C||d.setEditing(!0),V&&V(g,g.target.value)},d.handleOnChange=function(g){var C=d.state.editing,V=d.props.onChange;C&&d.setEditing(!1),V&&V(g,g.target.value)},d.handleKeyPress=function(g){var C=d.state.editing,V=d.props.onKeyPress;C||d.setEditing(!0),V&&V(g,g.target.value)},d.handleKeyDown=function(g){var C=d.state.editing,V=d.props,b=V.onChange,B=V.onInput,I=V.onEnter,w=V.onKeyDown;if(g.keyCode===m.KEY_ENTER){d.setEditing(!1),b&&b(g,g.target.value),B&&B(g,g.target.value),I&&I(g,g.target.value),d.props.selfClear&&(g.target.value="",g.target.blur());return}if(g.keyCode===m.KEY_ESCAPE){d.props.onEscape&&d.props.onEscape(g),d.setEditing(!1),d.props.selfClear?g.target.value="":(g.target.value=(0,o.toInputValue)(d.props.value),g.target.blur());return}if(C||d.setEditing(!0),w&&w(g,g.target.value),!v){var T=g.keyCode||g.which;if(T===m.KEY_TAB){g.preventDefault();var A=g.target,x=A.value,E=A.selectionStart,M=A.selectionEnd;g.target.value=x.substring(0,E)+" "+x.substring(M),g.target.selectionEnd=E+1}}},d.handleFocus=function(g){var C=d.state.editing;C||d.setEditing(!0)},d.handleBlur=function(g){var C=d.state.editing,V=d.props.onChange;C&&(d.setEditing(!1),V&&V(g,g.target.value))},d}k(f,c);var u=f.prototype;return u.componentDidMount=function(){function i(){var s=this,d=this.props.value,h=this.textareaRef.current;h&&(h.value=(0,o.toInputValue)(d)),(this.props.autoFocus||this.props.autoSelect)&&setTimeout(function(){h.focus(),s.props.autoSelect&&h.select()},1)}return i}(),u.componentDidUpdate=function(){function i(s,d){var h=s.value,v=this.props.value,g=this.textareaRef.current;g&&typeof v=="string"&&h!==v&&(g.value=(0,o.toInputValue)(v))}return i}(),u.setEditing=function(){function i(s){this.setState({editing:s})}return i}(),u.getValue=function(){function i(){return this.textareaRef.current&&this.textareaRef.current.value}return i}(),u.render=function(){function i(){var s=this.props,d=s.onChange,h=s.onKeyDown,v=s.onKeyPress,g=s.onInput,C=s.onFocus,V=s.onBlur,b=s.onEnter,B=s.value,I=s.maxLength,w=s.placeholder,T=S(s,N),A=T.className,x=T.fluid,E=S(T,y);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,t.Box,Object.assign({className:(0,a.classes)(["TextArea",x&&"TextArea--fluid",A])},E,{children:(0,e.createVNode)(128,"textarea","TextArea__textarea",null,1,{placeholder:w,onChange:this.handleOnChange,onKeyDown:this.handleKeyDown,onKeyPress:this.handleKeyPress,onInput:this.handleOnInput,onFocus:this.handleFocus,onBlur:this.handleBlur,maxLength:I},null,this.textareaRef)})))}return i}(),f}(e.Component)},6303:function(L,r){"use strict";r.__esModule=!0,r.TimeDisplay=void 0;var n=function(t){(!t||t<0)&&(t=0);var o=Math.floor(t/60).toString(10),m=(Math.floor(t)%60).toString(10);return[o,m].map(function(N){return N.length<2?"0"+N:N}).join(":")},e=r.TimeDisplay=function(){function a(t){var o=t.totalSeconds,m=o===void 0?0:o;return n(m)}return a}()},58749:function(L,r,n){"use strict";r.__esModule=!0,r.Tooltip=void 0;var e=n(96524),a=n(60023),t;function o(k,p){k.prototype=Object.create(p.prototype),k.prototype.constructor=k,m(k,p)}function m(k,p){return m=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function l(c,f){return c.__proto__=f,c}return l}(),m(k,p)}var N={modifiers:[{name:"eventListeners",enabled:!1}]},y={width:0,height:0,top:0,right:0,bottom:0,left:0,x:0,y:0,toJSON:function(){function k(){return null}return k}()},S=r.Tooltip=function(k){function p(){return k.apply(this,arguments)||this}o(p,k);var l=p.prototype;return l.getDOMNode=function(){function c(){return(0,e.findDOMfromVNode)(this.$LI,!0)}return c}(),l.componentDidMount=function(){function c(){var f=this,u=this.getDOMNode();u&&(u.addEventListener("mouseenter",function(){var i=p.renderedTooltip;i===void 0&&(i=document.createElement("div"),i.className="Tooltip",document.body.appendChild(i),p.renderedTooltip=i),p.currentHoveredElement=u,i.style.opacity="1",f.renderPopperContent()}),u.addEventListener("mouseleave",function(){f.fadeOut()}))}return c}(),l.fadeOut=function(){function c(){p.currentHoveredElement===this.getDOMNode()&&(p.currentHoveredElement=void 0,p.renderedTooltip.style.opacity="0")}return c}(),l.renderPopperContent=function(){function c(){var f=this,u=p.renderedTooltip;u&&(0,e.render)((0,e.createVNode)(1,"span",null,this.props.content,0),u,function(){var i=p.singletonPopper;i===void 0?(i=(0,a.createPopper)(p.virtualElement,u,Object.assign({},N,{placement:f.props.position||"auto"})),p.singletonPopper=i):(i.setOptions(Object.assign({},N,{placement:f.props.position||"auto"})),i.update())},this.context)}return c}(),l.componentDidUpdate=function(){function c(){p.currentHoveredElement===this.getDOMNode()&&this.renderPopperContent()}return c}(),l.componentWillUnmount=function(){function c(){this.fadeOut()}return c}(),l.render=function(){function c(){return this.props.children}return c}(),p}(e.Component);t=S,S.renderedTooltip=void 0,S.singletonPopper=void 0,S.currentHoveredElement=void 0,S.virtualElement={getBoundingClientRect:function(){function k(){var p,l;return(p=(l=t.currentHoveredElement)==null?void 0:l.getBoundingClientRect())!=null?p:y}return k}()}},24674:function(L,r,n){"use strict";r.__esModule=!0,r.Tooltip=r.TimeDisplay=r.TextArea=r.Tabs=r.Table=r.Stack=r.Slider=r.Section=r.RoundGauge=r.RestrictedInput=r.ProgressBar=r.Popper=r.NumberInput=r.NoticeBox=r.NanoMap=r.Modal=r.LabeledList=r.LabeledControls=r.Knob=r.Input=r.Icon=r.Grid=r.Flex=r.Dropdown=r.DraggableControl=r.Divider=r.Dimmer=r.Countdown=r.ColorBox=r.Collapsible=r.Chart=r.ByondUi=r.Button=r.Box=r.BlockQuote=r.Blink=r.Autofocus=r.AnimatedNumber=void 0;var e=n(65416);r.AnimatedNumber=e.AnimatedNumber;var a=n(11735);r.Autofocus=a.Autofocus;var t=n(35436);r.Blink=t.Blink;var o=n(55239);r.BlockQuote=o.BlockQuote;var m=n(3051);r.Box=m.Box;var N=n(91688);r.Button=N.Button;var y=n(42204);r.ByondUi=y.ByondUi;var S=n(41886);r.Chart=S.Chart;var k=n(83974);r.Collapsible=k.Collapsible;var p=n(26236);r.ColorBox=p.ColorBox;var l=n(99509);r.Countdown=l.Countdown;var c=n(72358);r.Dimmer=c.Dimmer;var f=n(31647);r.Divider=f.Divider;var u=n(27648);r.DraggableControl=u.DraggableControl;var i=n(45293);r.Dropdown=i.Dropdown;var s=n(18963);r.Flex=s.Flex;var d=n(17956);r.Grid=d.Grid;var h=n(11253);r.Icon=h.Icon;var v=n(49034);r.Input=v.Input;var g=n(9836);r.Knob=g.Knob;var C=n(86259);r.LabeledControls=C.LabeledControls;var V=n(91097);r.LabeledList=V.LabeledList;var b=n(97539);r.Modal=b.Modal;var B=n(55830);r.NanoMap=B.NanoMap;var I=n(14899);r.NoticeBox=I.NoticeBox;var w=n(5985);r.NumberInput=w.NumberInput;var T=n(37056);r.Popper=T.Popper;var A=n(36146);r.ProgressBar=A.ProgressBar;var x=n(49977);r.RestrictedInput=x.RestrictedInput;var E=n(2083);r.RoundGauge=E.RoundGauge;var M=n(5201);r.Section=M.Section;var j=n(66397);r.Slider=j.Slider;var P=n(24800);r.Stack=P.Stack;var R=n(5126);r.Table=R.Table;var D=n(26104);r.Tabs=D.Tabs;var F=n(67606);r.TextArea=F.TextArea;var W=n(6303);r.TimeDisplay=W.TimeDisplay;var _=n(58749);r.Tooltip=_.Tooltip},38424:function(L,r){"use strict";r.__esModule=!0,r.timeAgo=r.getGasLabel=r.getGasColor=r.UI_UPDATE=r.UI_INTERACTIVE=r.UI_DISABLED=r.UI_CLOSE=r.RADIO_CHANNELS=r.CSS_COLORS=r.COLORS=void 0;var n=r.UI_INTERACTIVE=2,e=r.UI_UPDATE=1,a=r.UI_DISABLED=0,t=r.UI_CLOSE=-1,o=r.COLORS={department:{command:"#526aff",security:"#CF0000",medical:"#009190",science:"#993399",engineering:"#A66300",supply:"#9F8545",service:"#80A000",centcom:"#78789B",other:"#C38312"},damageType:{oxy:"#3498db",toxin:"#2ecc71",burn:"#e67e22",brute:"#e74c3c"}},m=r.CSS_COLORS=["black","white","red","orange","yellow","olive","green","teal","blue","violet","purple","pink","brown","grey","good","average","bad","label"],N=r.RADIO_CHANNELS=[{name:"Syndicate",freq:1213,color:"#a52a2a"},{name:"SyndTeam",freq:1244,color:"#a52a2a"},{name:"Red Team",freq:1215,color:"#ff4444"},{name:"Blue Team",freq:1217,color:"#3434fd"},{name:"Response Team",freq:1345,color:"#2681a5"},{name:"Special Ops",freq:1341,color:"#2681a5"},{name:"Supply",freq:1347,color:"#b88646"},{name:"Service",freq:1349,color:"#6ca729"},{name:"Science",freq:1351,color:"#c68cfa"},{name:"Command",freq:1353,color:"#5177ff"},{name:"Procedure",freq:1339,color:"#F70285"},{name:"Medical",freq:1355,color:"#57b8f0"},{name:"Medical(I)",freq:1485,color:"#57b8f0"},{name:"Engineering",freq:1357,color:"#f37746"},{name:"Security",freq:1359,color:"#dd3535"},{name:"Security(I)",freq:1475,color:"#dd3535"},{name:"AI Private",freq:1343,color:"#d65d95"},{name:"Common",freq:1459,color:"#1ecc43"}],y=[{id:"o2",name:"Oxygen",label:"O\u2082",color:"blue"},{id:"n2",name:"Nitrogen",label:"N\u2082",color:"red"},{id:"co2",name:"Carbon Dioxide",label:"CO\u2082",color:"grey"},{id:"plasma",name:"Plasma",label:"Plasma",color:"pink"},{id:"water_vapor",name:"Water Vapor",label:"H\u2082O",color:"grey"},{id:"nob",name:"Hyper-noblium",label:"Hyper-nob",color:"teal"},{id:"n2o",name:"Nitrous Oxide",label:"N\u2082O",color:"red"},{id:"no2",name:"Nitryl",label:"NO\u2082",color:"brown"},{id:"tritium",name:"Tritium",label:"Tritium",color:"green"},{id:"bz",name:"BZ",label:"BZ",color:"purple"},{id:"stim",name:"Stimulum",label:"Stimulum",color:"purple"},{id:"pluox",name:"Pluoxium",label:"Pluoxium",color:"blue"},{id:"miasma",name:"Miasma",label:"Miasma",color:"olive"},{id:"hydrogen",name:"Hydrogen",label:"H\u2082",color:"white"},{id:"ab",name:"Agent B",label:"Agent B",color:"purple"}],S=r.getGasLabel=function(){function l(c,f){var u=String(c).toLowerCase(),i=y.find(function(s){return s.id===u||s.name.toLowerCase()===u});return i&&i.label||f||c}return l}(),k=r.getGasColor=function(){function l(c){var f=String(c).toLowerCase(),u=y.find(function(i){return i.id===f||i.name.toLowerCase()===f});return u&&u.color}return l}(),p=r.timeAgo=function(){function l(c,f){if(c>f)return"in the future";c=c/10,f=f/10;var u=f-c;if(u>3600){var i=Math.round(u/3600);return i+" hour"+(i===1?"":"s")+" ago"}else if(u>60){var s=Math.round(u/60);return s+" minute"+(s===1?"":"s")+" ago"}else{var d=Math.round(u);return d+" second"+(d===1?"":"s")+" ago"}return"just now"}return l}()},27598:function(L,r,n){"use strict";r.__esModule=!0,r.KitchenSink=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493);/** +*/var l=r.TextArea=function(c){function f(i,s){var u;u=c.call(this,i,s)||this,u.textareaRef=i.innerRef||(0,e.createRef)(),u.fillerRef=(0,e.createRef)(),u.state={editing:!1};var C=i.dontUseTabForIndent,v=C===void 0?!1:C;return u.handleOnInput=function(g){var p=u.state.editing,N=u.props.onInput;p||u.setEditing(!0),N&&N(g,g.target.value)},u.handleOnChange=function(g){var p=u.state.editing,N=u.props.onChange;p&&u.setEditing(!1),N&&N(g,g.target.value)},u.handleKeyPress=function(g){var p=u.state.editing,N=u.props.onKeyPress;p||u.setEditing(!0),N&&N(g,g.target.value)},u.handleKeyDown=function(g){var p=u.state.editing,N=u.props,b=N.onChange,B=N.onInput,L=N.onEnter,w=N.onKeyDown;if(g.keyCode===m.KEY_ENTER){u.setEditing(!1),b&&b(g,g.target.value),B&&B(g,g.target.value),L&&L(g,g.target.value),u.props.selfClear&&(g.target.value="",g.target.blur());return}if(g.keyCode===m.KEY_ESCAPE){u.props.onEscape&&u.props.onEscape(g),u.setEditing(!1),u.props.selfClear?g.target.value="":(g.target.value=(0,o.toInputValue)(u.props.value),g.target.blur());return}if(p||u.setEditing(!0),w&&w(g,g.target.value),!v){var T=g.keyCode||g.which;if(T===m.KEY_TAB){g.preventDefault();var x=g.target,A=x.value,E=x.selectionStart,M=x.selectionEnd;g.target.value=A.substring(0,E)+" "+A.substring(M),g.target.selectionEnd=E+1}}},u.handleFocus=function(g){var p=u.state.editing;p||u.setEditing(!0)},u.handleBlur=function(g){var p=u.state.editing,N=u.props.onChange;p&&(u.setEditing(!1),N&&N(g,g.target.value))},u}k(f,c);var d=f.prototype;return d.componentDidMount=function(){function i(){var s=this,u=this.props.value,C=this.textareaRef.current;C&&(C.value=(0,o.toInputValue)(u)),(this.props.autoFocus||this.props.autoSelect)&&setTimeout(function(){C.focus(),s.props.autoSelect&&C.select()},1)}return i}(),d.componentDidUpdate=function(){function i(s,u){var C=s.value,v=this.props.value,g=this.textareaRef.current;g&&typeof v=="string"&&C!==v&&(g.value=(0,o.toInputValue)(v))}return i}(),d.setEditing=function(){function i(s){this.setState({editing:s})}return i}(),d.getValue=function(){function i(){return this.textareaRef.current&&this.textareaRef.current.value}return i}(),d.render=function(){function i(){var s=this.props,u=s.onChange,C=s.onKeyDown,v=s.onKeyPress,g=s.onInput,p=s.onFocus,N=s.onBlur,b=s.onEnter,B=s.value,L=s.maxLength,w=s.placeholder,T=S(s,V),x=T.className,A=T.fluid,E=S(T,y);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,t.Box,Object.assign({className:(0,a.classes)(["TextArea",A&&"TextArea--fluid",x])},E,{children:(0,e.createVNode)(128,"textarea","TextArea__textarea",null,1,{placeholder:w,onChange:this.handleOnChange,onKeyDown:this.handleKeyDown,onKeyPress:this.handleKeyPress,onInput:this.handleOnInput,onFocus:this.handleFocus,onBlur:this.handleBlur,maxLength:L},null,this.textareaRef)})))}return i}(),f}(e.Component)},6303:function(I,r){"use strict";r.__esModule=!0,r.TimeDisplay=void 0;var n=function(t){(!t||t<0)&&(t=0);var o=Math.floor(t/60).toString(10),m=(Math.floor(t)%60).toString(10);return[o,m].map(function(V){return V.length<2?"0"+V:V}).join(":")},e=r.TimeDisplay=function(){function a(t){var o=t.totalSeconds,m=o===void 0?0:o;return n(m)}return a}()},58749:function(I,r,n){"use strict";r.__esModule=!0,r.Tooltip=void 0;var e=n(96524),a=n(60023),t;function o(k,h){k.prototype=Object.create(h.prototype),k.prototype.constructor=k,m(k,h)}function m(k,h){return m=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function l(c,f){return c.__proto__=f,c}return l}(),m(k,h)}var V={modifiers:[{name:"eventListeners",enabled:!1}]},y={width:0,height:0,top:0,right:0,bottom:0,left:0,x:0,y:0,toJSON:function(){function k(){return null}return k}()},S=r.Tooltip=function(k){function h(){return k.apply(this,arguments)||this}o(h,k);var l=h.prototype;return l.getDOMNode=function(){function c(){return(0,e.findDOMfromVNode)(this.$LI,!0)}return c}(),l.componentDidMount=function(){function c(){var f=this,d=this.getDOMNode();d&&(d.addEventListener("mouseenter",function(){var i=h.renderedTooltip;i===void 0&&(i=document.createElement("div"),i.className="Tooltip",document.body.appendChild(i),h.renderedTooltip=i),h.currentHoveredElement=d,i.style.opacity="1",f.renderPopperContent()}),d.addEventListener("mouseleave",function(){f.fadeOut()}))}return c}(),l.fadeOut=function(){function c(){h.currentHoveredElement===this.getDOMNode()&&(h.currentHoveredElement=void 0,h.renderedTooltip.style.opacity="0")}return c}(),l.renderPopperContent=function(){function c(){var f=this,d=h.renderedTooltip;d&&(0,e.render)((0,e.createVNode)(1,"span",null,this.props.content,0),d,function(){var i=h.singletonPopper;i===void 0?(i=(0,a.createPopper)(h.virtualElement,d,Object.assign({},V,{placement:f.props.position||"auto"})),h.singletonPopper=i):(i.setOptions(Object.assign({},V,{placement:f.props.position||"auto"})),i.update())},this.context)}return c}(),l.componentDidUpdate=function(){function c(){h.currentHoveredElement===this.getDOMNode()&&this.renderPopperContent()}return c}(),l.componentWillUnmount=function(){function c(){this.fadeOut()}return c}(),l.render=function(){function c(){return this.props.children}return c}(),h}(e.Component);t=S,S.renderedTooltip=void 0,S.singletonPopper=void 0,S.currentHoveredElement=void 0,S.virtualElement={getBoundingClientRect:function(){function k(){var h,l;return(h=(l=t.currentHoveredElement)==null?void 0:l.getBoundingClientRect())!=null?h:y}return k}()}},24674:function(I,r,n){"use strict";r.__esModule=!0,r.Tooltip=r.TimeDisplay=r.TextArea=r.Tabs=r.Table=r.Stack=r.Slider=r.Section=r.RoundGauge=r.RestrictedInput=r.ProgressBar=r.Popper=r.NumberInput=r.NoticeBox=r.NanoMap=r.Modal=r.LabeledList=r.LabeledControls=r.Knob=r.Input=r.Icon=r.Grid=r.Flex=r.Dropdown=r.DraggableControl=r.Divider=r.Dimmer=r.Countdown=r.ColorBox=r.Collapsible=r.Chart=r.ByondUi=r.Button=r.Box=r.BlockQuote=r.Blink=r.Autofocus=r.AnimatedNumber=void 0;var e=n(65416);r.AnimatedNumber=e.AnimatedNumber;var a=n(11735);r.Autofocus=a.Autofocus;var t=n(35436);r.Blink=t.Blink;var o=n(55239);r.BlockQuote=o.BlockQuote;var m=n(3051);r.Box=m.Box;var V=n(91688);r.Button=V.Button;var y=n(42204);r.ByondUi=y.ByondUi;var S=n(41886);r.Chart=S.Chart;var k=n(83974);r.Collapsible=k.Collapsible;var h=n(26236);r.ColorBox=h.ColorBox;var l=n(99509);r.Countdown=l.Countdown;var c=n(72358);r.Dimmer=c.Dimmer;var f=n(31647);r.Divider=f.Divider;var d=n(27648);r.DraggableControl=d.DraggableControl;var i=n(45293);r.Dropdown=i.Dropdown;var s=n(18963);r.Flex=s.Flex;var u=n(17956);r.Grid=u.Grid;var C=n(11253);r.Icon=C.Icon;var v=n(49034);r.Input=v.Input;var g=n(9836);r.Knob=g.Knob;var p=n(86259);r.LabeledControls=p.LabeledControls;var N=n(91097);r.LabeledList=N.LabeledList;var b=n(97539);r.Modal=b.Modal;var B=n(55830);r.NanoMap=B.NanoMap;var L=n(14899);r.NoticeBox=L.NoticeBox;var w=n(5985);r.NumberInput=w.NumberInput;var T=n(37056);r.Popper=T.Popper;var x=n(36146);r.ProgressBar=x.ProgressBar;var A=n(49977);r.RestrictedInput=A.RestrictedInput;var E=n(2083);r.RoundGauge=E.RoundGauge;var M=n(5201);r.Section=M.Section;var D=n(66397);r.Slider=D.Slider;var P=n(24800);r.Stack=P.Stack;var R=n(5126);r.Table=R.Table;var j=n(26104);r.Tabs=j.Tabs;var F=n(67606);r.TextArea=F.TextArea;var W=n(6303);r.TimeDisplay=W.TimeDisplay;var _=n(58749);r.Tooltip=_.Tooltip},38424:function(I,r){"use strict";r.__esModule=!0,r.timeAgo=r.getGasLabel=r.getGasColor=r.UI_UPDATE=r.UI_INTERACTIVE=r.UI_DISABLED=r.UI_CLOSE=r.RADIO_CHANNELS=r.CSS_COLORS=r.COLORS=void 0;var n=r.UI_INTERACTIVE=2,e=r.UI_UPDATE=1,a=r.UI_DISABLED=0,t=r.UI_CLOSE=-1,o=r.COLORS={department:{command:"#526aff",security:"#CF0000",medical:"#009190",science:"#993399",engineering:"#A66300",supply:"#9F8545",service:"#80A000",centcom:"#78789B",other:"#C38312"},damageType:{oxy:"#3498db",toxin:"#2ecc71",burn:"#e67e22",brute:"#e74c3c"}},m=r.CSS_COLORS=["black","white","red","orange","yellow","olive","green","teal","blue","violet","purple","pink","brown","grey","good","average","bad","label"],V=r.RADIO_CHANNELS=[{name:"Syndicate",freq:1213,color:"#a52a2a"},{name:"SyndTeam",freq:1244,color:"#a52a2a"},{name:"Red Team",freq:1215,color:"#ff4444"},{name:"Blue Team",freq:1217,color:"#3434fd"},{name:"Response Team",freq:1345,color:"#2681a5"},{name:"Special Ops",freq:1341,color:"#2681a5"},{name:"Supply",freq:1347,color:"#b88646"},{name:"Service",freq:1349,color:"#6ca729"},{name:"Science",freq:1351,color:"#c68cfa"},{name:"Command",freq:1353,color:"#5177ff"},{name:"Procedure",freq:1339,color:"#F70285"},{name:"Medical",freq:1355,color:"#57b8f0"},{name:"Medical(I)",freq:1485,color:"#57b8f0"},{name:"Engineering",freq:1357,color:"#f37746"},{name:"Security",freq:1359,color:"#dd3535"},{name:"Security(I)",freq:1475,color:"#dd3535"},{name:"AI Private",freq:1343,color:"#d65d95"},{name:"Common",freq:1459,color:"#1ecc43"}],y=[{id:"o2",name:"Oxygen",label:"O\u2082",color:"blue"},{id:"n2",name:"Nitrogen",label:"N\u2082",color:"red"},{id:"co2",name:"Carbon Dioxide",label:"CO\u2082",color:"grey"},{id:"plasma",name:"Plasma",label:"Plasma",color:"pink"},{id:"water_vapor",name:"Water Vapor",label:"H\u2082O",color:"grey"},{id:"nob",name:"Hyper-noblium",label:"Hyper-nob",color:"teal"},{id:"n2o",name:"Nitrous Oxide",label:"N\u2082O",color:"red"},{id:"no2",name:"Nitryl",label:"NO\u2082",color:"brown"},{id:"tritium",name:"Tritium",label:"Tritium",color:"green"},{id:"bz",name:"BZ",label:"BZ",color:"purple"},{id:"stim",name:"Stimulum",label:"Stimulum",color:"purple"},{id:"pluox",name:"Pluoxium",label:"Pluoxium",color:"blue"},{id:"miasma",name:"Miasma",label:"Miasma",color:"olive"},{id:"hydrogen",name:"Hydrogen",label:"H\u2082",color:"white"},{id:"ab",name:"Agent B",label:"Agent B",color:"purple"}],S=r.getGasLabel=function(){function l(c,f){var d=String(c).toLowerCase(),i=y.find(function(s){return s.id===d||s.name.toLowerCase()===d});return i&&i.label||f||c}return l}(),k=r.getGasColor=function(){function l(c){var f=String(c).toLowerCase(),d=y.find(function(i){return i.id===f||i.name.toLowerCase()===f});return d&&d.color}return l}(),h=r.timeAgo=function(){function l(c,f){if(c>f)return"in the future";c=c/10,f=f/10;var d=f-c;if(d>3600){var i=Math.round(d/3600);return i+" hour"+(i===1?"":"s")+" ago"}else if(d>60){var s=Math.round(d/60);return s+" minute"+(s===1?"":"s")+" ago"}else{var u=Math.round(d);return u+" second"+(u===1?"":"s")+" ago"}return"just now"}return l}()},27598:function(I,r,n){"use strict";r.__esModule=!0,r.KitchenSink=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493);/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */var m=n(4085),N=function(){return m.keys().map(function(k){return m(k)})},y=r.KitchenSink=function(){function S(k,p){var l=k.panel,c=(0,a.useLocalState)(p,"kitchenSinkTheme"),f=c[0],u=(0,a.useLocalState)(p,"pageIndex",0),i=u[0],s=u[1],d=N(),h=d[i],v=l?o.Pane:o.Window;return(0,e.createComponentVNode)(2,v,{title:"Kitchen Sink",width:600,height:500,theme:f,children:(0,e.createComponentVNode)(2,t.Flex,{height:"100%",children:[(0,e.createComponentVNode)(2,t.Flex.Item,{m:1,mr:0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,fitted:!0,children:(0,e.createComponentVNode)(2,t.Tabs,{vertical:!0,children:d.map(function(g,C){return(0,e.createComponentVNode)(2,t.Tabs.Tab,{color:"transparent",selected:C===i,onClick:function(){function V(){return s(C)}return V}(),children:g.meta.title},C)})})})}),(0,e.createComponentVNode)(2,t.Flex.Item,{position:"relative",grow:1,children:(0,e.createComponentVNode)(2,v.Content,{scrollable:!0,children:h.meta.render()})})]})})}return S}()},82574:function(L,r,n){"use strict";r.__esModule=!0,r.toggleKitchenSink=r.toggleDebugLayout=r.openExternalBrowser=void 0;var e=n(88605);/** + */var m=n(4085),V=function(){return m.keys().map(function(k){return m(k)})},y=r.KitchenSink=function(){function S(k,h){var l=k.panel,c=(0,a.useLocalState)(h,"kitchenSinkTheme"),f=c[0],d=(0,a.useLocalState)(h,"pageIndex",0),i=d[0],s=d[1],u=V(),C=u[i],v=l?o.Pane:o.Window;return(0,e.createComponentVNode)(2,v,{title:"Kitchen Sink",width:600,height:500,theme:f,children:(0,e.createComponentVNode)(2,t.Flex,{height:"100%",children:[(0,e.createComponentVNode)(2,t.Flex.Item,{m:1,mr:0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,fitted:!0,children:(0,e.createComponentVNode)(2,t.Tabs,{vertical:!0,children:u.map(function(g,p){return(0,e.createComponentVNode)(2,t.Tabs.Tab,{color:"transparent",selected:p===i,onClick:function(){function N(){return s(p)}return N}(),children:g.meta.title},p)})})})}),(0,e.createComponentVNode)(2,t.Flex.Item,{position:"relative",grow:1,children:(0,e.createComponentVNode)(2,v.Content,{scrollable:!0,children:C.meta.render()})})]})})}return S}()},82574:function(I,r,n){"use strict";r.__esModule=!0,r.toggleKitchenSink=r.toggleDebugLayout=r.openExternalBrowser=void 0;var e=n(88605);/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */var a=r.toggleKitchenSink=(0,e.createAction)("debug/toggleKitchenSink"),t=r.toggleDebugLayout=(0,e.createAction)("debug/toggleDebugLayout"),o=r.openExternalBrowser=(0,e.createAction)("debug/openExternalBrowser")},5385:function(L,r,n){"use strict";r.__esModule=!0,r.useDebug=void 0;var e=n(88605),a=n(52991);/** + */var a=r.toggleKitchenSink=(0,e.createAction)("debug/toggleKitchenSink"),t=r.toggleDebugLayout=(0,e.createAction)("debug/toggleDebugLayout"),o=r.openExternalBrowser=(0,e.createAction)("debug/openExternalBrowser")},5385:function(I,r,n){"use strict";r.__esModule=!0,r.useDebug=void 0;var e=n(88605),a=n(52991);/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */var t=r.useDebug=function(){function o(m){return(0,e.useSelector)(m,a.selectDebug)}return o}()},90781:function(L,r,n){"use strict";r.__esModule=!0,r.useDebug=r.relayMiddleware=r.debugReducer=r.debugMiddleware=r.KitchenSink=void 0;var e=n(5385);r.useDebug=e.useDebug;var a=n(27598);r.KitchenSink=a.KitchenSink;var t=n(52785);r.debugMiddleware=t.debugMiddleware,r.relayMiddleware=t.relayMiddleware;var o=n(31125);r.debugReducer=o.debugReducer},52785:function(L,r,n){"use strict";r.__esModule=!0,r.relayMiddleware=r.debugMiddleware=void 0;var e=n(68100),a=n(92700),t=n(39952),o=n(82574);/** + */var t=r.useDebug=function(){function o(m){return(0,e.useSelector)(m,a.selectDebug)}return o}()},90781:function(I,r,n){"use strict";r.__esModule=!0,r.useDebug=r.relayMiddleware=r.debugReducer=r.debugMiddleware=r.KitchenSink=void 0;var e=n(5385);r.useDebug=e.useDebug;var a=n(27598);r.KitchenSink=a.KitchenSink;var t=n(52785);r.debugMiddleware=t.debugMiddleware,r.relayMiddleware=t.relayMiddleware;var o=n(31125);r.debugReducer=o.debugReducer},52785:function(I,r,n){"use strict";r.__esModule=!0,r.relayMiddleware=r.debugMiddleware=void 0;var e=n(68100),a=n(92700),t=n(39952),o=n(82574);/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */var m=["backend/update","chat/message"],N=r.debugMiddleware=function(){function S(k){return(0,t.acquireHotKey)(e.KEY_F11),(0,t.acquireHotKey)(e.KEY_F12),a.globalEvents.on("keydown",function(p){p.code===e.KEY_F11&&k.dispatch((0,o.toggleDebugLayout)()),p.code===e.KEY_F12&&k.dispatch((0,o.toggleKitchenSink)()),p.ctrl&&p.alt&&p.code===e.KEY_BACKSPACE&&setTimeout(function(){throw new Error("OOPSIE WOOPSIE!! UwU We made a fucky wucky!! A wittle fucko boingo! The code monkeys at our headquarters are working VEWY HAWD to fix this!")})}),function(p){return function(l){return p(l)}}}return S}(),y=r.relayMiddleware=function(){function S(k){var p=n(50719),l=location.search==="?external";return l?p.subscribe(function(c){var f=c.type,u=c.payload;f==="relay"&&u.windowId===Byond.windowId&&k.dispatch(Object.assign({},u.action,{relayed:!0}))}):((0,t.acquireHotKey)(e.KEY_F10),a.globalEvents.on("keydown",function(c){c===e.KEY_F10&&k.dispatch((0,o.openExternalBrowser)())})),function(c){return function(f){var u=f.type,i=f.payload,s=f.relayed;if(u===o.openExternalBrowser.type){window.open(location.href+"?external","_blank");return}return m.includes(u)&&!s&&!l&&p.sendMessage({type:"relay",payload:{windowId:Byond.windowId,action:f}}),c(f)}}}return S}()},31125:function(L,r){"use strict";r.__esModule=!0,r.debugReducer=void 0;/** + */var m=["backend/update","chat/message"],V=r.debugMiddleware=function(){function S(k){return(0,t.acquireHotKey)(e.KEY_F11),(0,t.acquireHotKey)(e.KEY_F12),a.globalEvents.on("keydown",function(h){h.code===e.KEY_F11&&k.dispatch((0,o.toggleDebugLayout)()),h.code===e.KEY_F12&&k.dispatch((0,o.toggleKitchenSink)()),h.ctrl&&h.alt&&h.code===e.KEY_BACKSPACE&&setTimeout(function(){throw new Error("OOPSIE WOOPSIE!! UwU We made a fucky wucky!! A wittle fucko boingo! The code monkeys at our headquarters are working VEWY HAWD to fix this!")})}),function(h){return function(l){return h(l)}}}return S}(),y=r.relayMiddleware=function(){function S(k){var h=n(50719),l=location.search==="?external";return l?h.subscribe(function(c){var f=c.type,d=c.payload;f==="relay"&&d.windowId===Byond.windowId&&k.dispatch(Object.assign({},d.action,{relayed:!0}))}):((0,t.acquireHotKey)(e.KEY_F10),a.globalEvents.on("keydown",function(c){c===e.KEY_F10&&k.dispatch((0,o.openExternalBrowser)())})),function(c){return function(f){var d=f.type,i=f.payload,s=f.relayed;if(d===o.openExternalBrowser.type){window.open(location.href+"?external","_blank");return}return m.includes(d)&&!s&&!l&&h.sendMessage({type:"relay",payload:{windowId:Byond.windowId,action:f}}),c(f)}}}return S}()},31125:function(I,r){"use strict";r.__esModule=!0,r.debugReducer=void 0;/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */var n=r.debugReducer=function(){function e(a,t){a===void 0&&(a={});var o=t.type,m=t.payload;return o==="debug/toggleKitchenSink"?Object.assign({},a,{kitchenSink:!a.kitchenSink}):o==="debug/toggleDebugLayout"?Object.assign({},a,{debugLayout:!a.debugLayout}):a}return e}()},52991:function(L,r){"use strict";r.__esModule=!0,r.selectDebug=void 0;/** + */var n=r.debugReducer=function(){function e(a,t){a===void 0&&(a={});var o=t.type,m=t.payload;return o==="debug/toggleKitchenSink"?Object.assign({},a,{kitchenSink:!a.kitchenSink}):o==="debug/toggleDebugLayout"?Object.assign({},a,{debugLayout:!a.debugLayout}):a}return e}()},52991:function(I,r){"use strict";r.__esModule=!0,r.selectDebug=void 0;/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */var n=r.selectDebug=function(){function e(a){return a.debug}return e}()},83987:function(L,r,n){"use strict";r.__esModule=!0,r.storeWindowGeometry=r.setupDrag=r.setWindowSize=r.setWindowPosition=r.setWindowKey=r.resizeStartHandler=r.recallWindowGeometry=r.getWindowSize=r.getWindowPosition=r.getScreenSize=r.getScreenPosition=r.dragStartHandler=void 0;var e=n(66450),a=n(73564),t=n(81856);function o(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */o=function(){return F};var D,F={},W=Object.prototype,_=W.hasOwnProperty,H=Object.defineProperty||function(Ve,ae,le){Ve[ae]=le.value},z=typeof Symbol=="function"?Symbol:{},$=z.iterator||"@@iterator",X=z.asyncIterator||"@@asyncIterator",J=z.toStringTag||"@@toStringTag";function ce(Ve,ae,le){return Object.defineProperty(Ve,ae,{value:le,enumerable:!0,configurable:!0,writable:!0}),Ve[ae]}try{ce({},"")}catch(Ve){ce=function(le,Ce,de){return le[Ce]=de}}function re(Ve,ae,le,Ce){var de=ae&&ae.prototype instanceof Z?ae:Z,Ne=Object.create(de.prototype),Ae=new Oe(Ce||[]);return H(Ne,"_invoke",{value:ve(Ve,le,Ae)}),Ne}function me(Ve,ae,le){try{return{type:"normal",arg:Ve.call(ae,le)}}catch(Ce){return{type:"throw",arg:Ce}}}F.wrap=re;var pe="suspendedStart",ye="suspendedYield",Be="executing",he="completed",oe={};function Z(){}function q(){}function ue(){}var se={};ce(se,$,function(){return this});var ne=Object.getPrototypeOf,be=ne&&ne(ne(We([])));be&&be!==W&&_.call(be,$)&&(se=be);var fe=ue.prototype=Z.prototype=Object.create(se);function ge(Ve){["next","throw","return"].forEach(function(ae){ce(Ve,ae,function(le){return this._invoke(ae,le)})})}function ke(Ve,ae){function le(de,Ne,Ae,De){var je=me(Ve[de],Ve,Ne);if(je.type!=="throw"){var _e=je.arg,Ue=_e.value;return Ue&&typeof Ue=="object"&&_.call(Ue,"__await")?ae.resolve(Ue.__await).then(function(Ke){le("next",Ke,Ae,De)},function(Ke){le("throw",Ke,Ae,De)}):ae.resolve(Ue).then(function(Ke){_e.value=Ke,Ae(_e)},function(Ke){return le("throw",Ke,Ae,De)})}De(je.arg)}var Ce;H(this,"_invoke",{value:function(){function de(Ne,Ae){function De(){return new ae(function(je,_e){le(Ne,Ae,je,_e)})}return Ce=Ce?Ce.then(De,De):De()}return de}()})}function ve(Ve,ae,le){var Ce=pe;return function(de,Ne){if(Ce===Be)throw Error("Generator is already running");if(Ce===he){if(de==="throw")throw Ne;return{value:D,done:!0}}for(le.method=de,le.arg=Ne;;){var Ae=le.delegate;if(Ae){var De=Se(Ae,le);if(De){if(De===oe)continue;return De}}if(le.method==="next")le.sent=le._sent=le.arg;else if(le.method==="throw"){if(Ce===pe)throw Ce=he,le.arg;le.dispatchException(le.arg)}else le.method==="return"&&le.abrupt("return",le.arg);Ce=Be;var je=me(Ve,ae,le);if(je.type==="normal"){if(Ce=le.done?he:ye,je.arg===oe)continue;return{value:je.arg,done:le.done}}je.type==="throw"&&(Ce=he,le.method="throw",le.arg=je.arg)}}}function Se(Ve,ae){var le=ae.method,Ce=Ve.iterator[le];if(Ce===D)return ae.delegate=null,le==="throw"&&Ve.iterator.return&&(ae.method="return",ae.arg=D,Se(Ve,ae),ae.method==="throw")||le!=="return"&&(ae.method="throw",ae.arg=new TypeError("The iterator does not provide a '"+le+"' method")),oe;var de=me(Ce,Ve.iterator,ae.arg);if(de.type==="throw")return ae.method="throw",ae.arg=de.arg,ae.delegate=null,oe;var Ne=de.arg;return Ne?Ne.done?(ae[Ve.resultName]=Ne.value,ae.next=Ve.nextLoc,ae.method!=="return"&&(ae.method="next",ae.arg=D),ae.delegate=null,oe):Ne:(ae.method="throw",ae.arg=new TypeError("iterator result is not an object"),ae.delegate=null,oe)}function we(Ve){var ae={tryLoc:Ve[0]};1 in Ve&&(ae.catchLoc=Ve[1]),2 in Ve&&(ae.finallyLoc=Ve[2],ae.afterLoc=Ve[3]),this.tryEntries.push(ae)}function xe(Ve){var ae=Ve.completion||{};ae.type="normal",delete ae.arg,Ve.completion=ae}function Oe(Ve){this.tryEntries=[{tryLoc:"root"}],Ve.forEach(we,this),this.reset(!0)}function We(Ve){if(Ve||Ve===""){var ae=Ve[$];if(ae)return ae.call(Ve);if(typeof Ve.next=="function")return Ve;if(!isNaN(Ve.length)){var le=-1,Ce=function(){function de(){for(;++le=0;--de){var Ne=this.tryEntries[de],Ae=Ne.completion;if(Ne.tryLoc==="root")return Ce("end");if(Ne.tryLoc<=this.prev){var De=_.call(Ne,"catchLoc"),je=_.call(Ne,"finallyLoc");if(De&&je){if(this.prev=0;--Ce){var de=this.tryEntries[Ce];if(de.tryLoc<=this.prev&&_.call(de,"finallyLoc")&&this.prev=0;--le){var Ce=this.tryEntries[le];if(Ce.finallyLoc===ae)return this.complete(Ce.completion,Ce.afterLoc),xe(Ce),oe}}return Ve}(),catch:function(){function Ve(ae){for(var le=this.tryEntries.length-1;le>=0;--le){var Ce=this.tryEntries[le];if(Ce.tryLoc===ae){var de=Ce.completion;if(de.type==="throw"){var Ne=de.arg;xe(Ce)}return Ne}}throw Error("illegal catch attempt")}return Ve}(),delegateYield:function(){function Ve(ae,le,Ce){return this.delegate={iterator:We(ae),resultName:le,nextLoc:Ce},this.method==="next"&&(this.arg=D),oe}return Ve}()},F}function m(D,F,W,_,H,z,$){try{var X=D[z]($),J=X.value}catch(ce){W(ce);return}X.done?F(J):Promise.resolve(J).then(_,H)}function N(D){return function(){var F=this,W=arguments;return new Promise(function(_,H){var z=D.apply(F,W);function $(J){m(z,_,H,$,X,"next",J)}function X(J){m(z,_,H,$,X,"throw",J)}$(void 0)})}}/** + */var n=r.selectDebug=function(){function e(a){return a.debug}return e}()},83987:function(I,r,n){"use strict";r.__esModule=!0,r.storeWindowGeometry=r.setupDrag=r.setWindowSize=r.setWindowPosition=r.setWindowKey=r.resizeStartHandler=r.recallWindowGeometry=r.getWindowSize=r.getWindowPosition=r.getScreenSize=r.getScreenPosition=r.dragStartHandler=void 0;var e=n(66450),a=n(73564),t=n(81856);function o(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */o=function(){return F};var j,F={},W=Object.prototype,_=W.hasOwnProperty,K=Object.defineProperty||function(be,ce,le){be[ce]=le.value},H=typeof Symbol=="function"?Symbol:{},$=H.iterator||"@@iterator",X=H.asyncIterator||"@@asyncIterator",J=H.toStringTag||"@@toStringTag";function ae(be,ce,le){return Object.defineProperty(be,ce,{value:le,enumerable:!0,configurable:!0,writable:!0}),be[ce]}try{ae({},"")}catch(be){ae=function(le,ve,de){return le[ve]=de}}function re(be,ce,le,ve){var de=ce&&ce.prototype instanceof Z?ce:Z,Ve=Object.create(de.prototype),Ae=new Oe(ve||[]);return K(Ve,"_invoke",{value:ge(be,le,Ae)}),Ve}function me(be,ce,le){try{return{type:"normal",arg:be.call(ce,le)}}catch(ve){return{type:"throw",arg:ve}}}F.wrap=re;var pe="suspendedStart",Ce="suspendedYield",ke="executing",he="completed",oe={};function Z(){}function q(){}function ue(){}var se={};ae(se,$,function(){return this});var te=Object.getPrototypeOf,ye=te&&te(te(We([])));ye&&ye!==W&&_.call(ye,$)&&(se=ye);var fe=ue.prototype=Z.prototype=Object.create(se);function Ne(be){["next","throw","return"].forEach(function(ce){ae(be,ce,function(le){return this._invoke(ce,le)})})}function Se(be,ce){function le(de,Ve,Ae,De){var je=me(be[de],be,Ve);if(je.type!=="throw"){var _e=je.arg,Ue=_e.value;return Ue&&typeof Ue=="object"&&_.call(Ue,"__await")?ce.resolve(Ue.__await).then(function(ze){le("next",ze,Ae,De)},function(ze){le("throw",ze,Ae,De)}):ce.resolve(Ue).then(function(ze){_e.value=ze,Ae(_e)},function(ze){return le("throw",ze,Ae,De)})}De(je.arg)}var ve;K(this,"_invoke",{value:function(){function de(Ve,Ae){function De(){return new ce(function(je,_e){le(Ve,Ae,je,_e)})}return ve=ve?ve.then(De,De):De()}return de}()})}function ge(be,ce,le){var ve=pe;return function(de,Ve){if(ve===ke)throw Error("Generator is already running");if(ve===he){if(de==="throw")throw Ve;return{value:j,done:!0}}for(le.method=de,le.arg=Ve;;){var Ae=le.delegate;if(Ae){var De=Be(Ae,le);if(De){if(De===oe)continue;return De}}if(le.method==="next")le.sent=le._sent=le.arg;else if(le.method==="throw"){if(ve===pe)throw ve=he,le.arg;le.dispatchException(le.arg)}else le.method==="return"&&le.abrupt("return",le.arg);ve=ke;var je=me(be,ce,le);if(je.type==="normal"){if(ve=le.done?he:Ce,je.arg===oe)continue;return{value:je.arg,done:le.done}}je.type==="throw"&&(ve=he,le.method="throw",le.arg=je.arg)}}}function Be(be,ce){var le=ce.method,ve=be.iterator[le];if(ve===j)return ce.delegate=null,le==="throw"&&be.iterator.return&&(ce.method="return",ce.arg=j,Be(be,ce),ce.method==="throw")||le!=="return"&&(ce.method="throw",ce.arg=new TypeError("The iterator does not provide a '"+le+"' method")),oe;var de=me(ve,be.iterator,ce.arg);if(de.type==="throw")return ce.method="throw",ce.arg=de.arg,ce.delegate=null,oe;var Ve=de.arg;return Ve?Ve.done?(ce[be.resultName]=Ve.value,ce.next=be.nextLoc,ce.method!=="return"&&(ce.method="next",ce.arg=j),ce.delegate=null,oe):Ve:(ce.method="throw",ce.arg=new TypeError("iterator result is not an object"),ce.delegate=null,oe)}function we(be){var ce={tryLoc:be[0]};1 in be&&(ce.catchLoc=be[1]),2 in be&&(ce.finallyLoc=be[2],ce.afterLoc=be[3]),this.tryEntries.push(ce)}function xe(be){var ce=be.completion||{};ce.type="normal",delete ce.arg,be.completion=ce}function Oe(be){this.tryEntries=[{tryLoc:"root"}],be.forEach(we,this),this.reset(!0)}function We(be){if(be||be===""){var ce=be[$];if(ce)return ce.call(be);if(typeof be.next=="function")return be;if(!isNaN(be.length)){var le=-1,ve=function(){function de(){for(;++le=0;--de){var Ve=this.tryEntries[de],Ae=Ve.completion;if(Ve.tryLoc==="root")return ve("end");if(Ve.tryLoc<=this.prev){var De=_.call(Ve,"catchLoc"),je=_.call(Ve,"finallyLoc");if(De&&je){if(this.prev=0;--ve){var de=this.tryEntries[ve];if(de.tryLoc<=this.prev&&_.call(de,"finallyLoc")&&this.prev=0;--le){var ve=this.tryEntries[le];if(ve.finallyLoc===ce)return this.complete(ve.completion,ve.afterLoc),xe(ve),oe}}return be}(),catch:function(){function be(ce){for(var le=this.tryEntries.length-1;le>=0;--le){var ve=this.tryEntries[le];if(ve.tryLoc===ce){var de=ve.completion;if(de.type==="throw"){var Ve=de.arg;xe(ve)}return Ve}}throw Error("illegal catch attempt")}return be}(),delegateYield:function(){function be(ce,le,ve){return this.delegate={iterator:We(ce),resultName:le,nextLoc:ve},this.method==="next"&&(this.arg=j),oe}return be}()},F}function m(j,F,W,_,K,H,$){try{var X=j[H]($),J=X.value}catch(ae){W(ae);return}X.done?F(J):Promise.resolve(J).then(_,K)}function V(j){return function(){var F=this,W=arguments;return new Promise(function(_,K){var H=j.apply(F,W);function $(J){m(H,_,K,$,X,"next",J)}function X(J){m(H,_,K,$,X,"throw",J)}$(void 0)})}}/** * @file * @copyright 2020 Aleksej Komarov * @license MIT -*/var y=(0,t.createLogger)("drag"),S=Byond.windowId,k=!1,p=!1,l=[0,0],c,f,u,i,s,d=r.setWindowKey=function(){function D(F){S=F}return D}(),h=r.getWindowPosition=function(){function D(){return[window.screenLeft,window.screenTop]}return D}(),v=r.getWindowSize=function(){function D(){return[window.innerWidth,window.innerHeight]}return D}(),g=r.setWindowPosition=function(){function D(F){var W=(0,a.vecAdd)(F,l);return Byond.winset(Byond.windowId,{pos:W[0]+","+W[1]})}return D}(),C=r.setWindowSize=function(){function D(F){return Byond.winset(Byond.windowId,{size:F[0]+"x"+F[1]})}return D}(),V=r.getScreenPosition=function(){function D(){return[0-l[0],0-l[1]]}return D}(),b=r.getScreenSize=function(){function D(){return[window.screen.availWidth,window.screen.availHeight]}return D}(),B=function(F,W,_){_===void 0&&(_=50);for(var H=[W],z,$=0;$ce&&(z[X]=ce-W[X],$=!0)}return[$,z]},x=r.dragStartHandler=function(){function D(F){y.log("drag start"),k=!0,f=[window.screenLeft-F.screenX,window.screenTop-F.screenY],document.addEventListener("mousemove",M),document.addEventListener("mouseup",E),M(F)}return D}(),E=function D(F){y.log("drag end"),M(F),document.removeEventListener("mousemove",M),document.removeEventListener("mouseup",D),k=!1,I()},M=function(F){k&&(F.preventDefault(),g((0,a.vecAdd)([F.screenX,F.screenY],f)))},j=r.resizeStartHandler=function(){function D(F,W){return function(_){u=[F,W],y.log("resize start",u),p=!0,f=[window.screenLeft-_.screenX,window.screenTop-_.screenY],i=[window.innerWidth,window.innerHeight],document.addEventListener("mousemove",R),document.addEventListener("mouseup",P),R(_)}}return D}(),P=function D(F){y.log("resize end",s),R(F),document.removeEventListener("mousemove",R),document.removeEventListener("mouseup",D),p=!1,I()},R=function(F){p&&(F.preventDefault(),s=(0,a.vecAdd)(i,(0,a.vecMultiply)(u,(0,a.vecAdd)([F.screenX,F.screenY],(0,a.vecInverse)([window.screenLeft,window.screenTop]),f,[1,1]))),s[0]=Math.max(s[0],150),s[1]=Math.max(s[1],50),C(s))}},92700:function(L,r,n){"use strict";r.__esModule=!0,r.setupGlobalEvents=r.removeScrollableNode=r.globalEvents=r.canStealFocus=r.addScrollableNode=r.KeyEvent=void 0;var e=n(22594),a=n(68100);/** +*/var y=(0,t.createLogger)("drag"),S=Byond.windowId,k=!1,h=!1,l=[0,0],c,f,d,i,s,u=r.setWindowKey=function(){function j(F){S=F}return j}(),C=r.getWindowPosition=function(){function j(){return[window.screenLeft,window.screenTop]}return j}(),v=r.getWindowSize=function(){function j(){return[window.innerWidth,window.innerHeight]}return j}(),g=r.setWindowPosition=function(){function j(F){var W=(0,a.vecAdd)(F,l);return Byond.winset(Byond.windowId,{pos:W[0]+","+W[1]})}return j}(),p=r.setWindowSize=function(){function j(F){return Byond.winset(Byond.windowId,{size:F[0]+"x"+F[1]})}return j}(),N=r.getScreenPosition=function(){function j(){return[0-l[0],0-l[1]]}return j}(),b=r.getScreenSize=function(){function j(){return[window.screen.availWidth,window.screen.availHeight]}return j}(),B=function(F,W,_){_===void 0&&(_=50);for(var K=[W],H,$=0;$ae&&(H[X]=ae-W[X],$=!0)}return[$,H]},A=r.dragStartHandler=function(){function j(F){y.log("drag start"),k=!0,f=[window.screenLeft-F.screenX,window.screenTop-F.screenY],document.addEventListener("mousemove",M),document.addEventListener("mouseup",E),M(F)}return j}(),E=function j(F){y.log("drag end"),M(F),document.removeEventListener("mousemove",M),document.removeEventListener("mouseup",j),k=!1,L()},M=function(F){k&&(F.preventDefault(),g((0,a.vecAdd)([F.screenX,F.screenY],f)))},D=r.resizeStartHandler=function(){function j(F,W){return function(_){d=[F,W],y.log("resize start",d),h=!0,f=[window.screenLeft-_.screenX,window.screenTop-_.screenY],i=[window.innerWidth,window.innerHeight],document.addEventListener("mousemove",R),document.addEventListener("mouseup",P),R(_)}}return j}(),P=function j(F){y.log("resize end",s),R(F),document.removeEventListener("mousemove",R),document.removeEventListener("mouseup",j),h=!1,L()},R=function(F){h&&(F.preventDefault(),s=(0,a.vecAdd)(i,(0,a.vecMultiply)(d,(0,a.vecAdd)([F.screenX,F.screenY],(0,a.vecInverse)([window.screenLeft,window.screenTop]),f,[1,1]))),s[0]=Math.max(s[0],150),s[1]=Math.max(s[1],50),p(s))}},92700:function(I,r,n){"use strict";r.__esModule=!0,r.setupGlobalEvents=r.removeScrollableNode=r.globalEvents=r.canStealFocus=r.addScrollableNode=r.KeyEvent=void 0;var e=n(22594),a=n(68100);/** * Normalized browser focus events and BYOND-specific focus helpers. * * @file * @copyright 2020 Aleksej Komarov * @license MIT - */var t=r.globalEvents=new e.EventEmitter,o=!1,m=r.setupGlobalEvents=function(){function C(V){V===void 0&&(V={}),o=!!V.ignoreWindowFocus}return C}(),N,y=!0,S=function C(V,b){if(o){y=!0;return}if(N&&(clearTimeout(N),N=null),b){N=setTimeout(function(){return C(V)});return}y!==V&&(y=V,t.emit(V?"window-focus":"window-blur"),t.emit("window-focus-change",V))},k=null,p=r.canStealFocus=function(){function C(V){var b=String(V.tagName).toLowerCase();return b==="input"||b==="textarea"}return C}(),l=function(V){c(),k=V,k.addEventListener("blur",c)},c=function C(){k&&(k.removeEventListener("blur",C),k=null)},f=null,u=null,i=[],s=r.addScrollableNode=function(){function C(V){i.push(V)}return C}(),d=r.removeScrollableNode=function(){function C(V){var b=i.indexOf(V);b>=0&&i.splice(b,1)}return C}(),h=function(V){if(!(k||!y))for(var b=document.body;V&&V!==b;){if(i.includes(V)){if(V.contains(f))return;f=V,V.focus();return}V=V.parentNode}};window.addEventListener("mousemove",function(C){var V=C.target;V!==u&&(u=V,h(V))}),window.addEventListener("focusin",function(C){if(u=null,f=C.target,S(!0),p(C.target)){l(C.target);return}}),window.addEventListener("focusout",function(C){u=null,S(!1,!0)}),window.addEventListener("blur",function(C){u=null,S(!1,!0)}),window.addEventListener("beforeunload",function(C){S(!1)});var v={},g=r.KeyEvent=function(){function C(b,B,I){this.event=b,this.type=B,this.code=window.event?b.which:b.keyCode,this.ctrl=b.ctrlKey,this.shift=b.shiftKey,this.alt=b.altKey,this.repeat=!!I}var V=C.prototype;return V.hasModifierKeys=function(){function b(){return this.ctrl||this.alt||this.shift}return b}(),V.isModifierKey=function(){function b(){return this.code===a.KEY_CTRL||this.code===a.KEY_SHIFT||this.code===a.KEY_ALT}return b}(),V.isDown=function(){function b(){return this.type==="keydown"}return b}(),V.isUp=function(){function b(){return this.type==="keyup"}return b}(),V.toString=function(){function b(){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>=a.KEY_F1&&this.code<=a.KEY_F12?this._str+="F"+(this.code-111):this._str+="["+this.code+"]",this._str)}return b}(),C}();document.addEventListener("keydown",function(C){if(!p(C.target)){var V=C.keyCode,b=new g(C,"keydown",v[V]);t.emit("keydown",b),t.emit("key",b),v[V]=!0}}),document.addEventListener("keyup",function(C){if(!p(C.target)){var V=C.keyCode,b=new g(C,"keyup");t.emit("keyup",b),t.emit("key",b),v[V]=!1}})},92017:function(L,r){"use strict";r.__esModule=!0,r.focusWindow=r.focusMap=void 0;/** + */var t=r.globalEvents=new e.EventEmitter,o=!1,m=r.setupGlobalEvents=function(){function p(N){N===void 0&&(N={}),o=!!N.ignoreWindowFocus}return p}(),V,y=!0,S=function p(N,b){if(o){y=!0;return}if(V&&(clearTimeout(V),V=null),b){V=setTimeout(function(){return p(N)});return}y!==N&&(y=N,t.emit(N?"window-focus":"window-blur"),t.emit("window-focus-change",N))},k=null,h=r.canStealFocus=function(){function p(N){var b=String(N.tagName).toLowerCase();return b==="input"||b==="textarea"}return p}(),l=function(N){c(),k=N,k.addEventListener("blur",c)},c=function p(){k&&(k.removeEventListener("blur",p),k=null)},f=null,d=null,i=[],s=r.addScrollableNode=function(){function p(N){i.push(N)}return p}(),u=r.removeScrollableNode=function(){function p(N){var b=i.indexOf(N);b>=0&&i.splice(b,1)}return p}(),C=function(N){if(!(k||!y))for(var b=document.body;N&&N!==b;){if(i.includes(N)){if(N.contains(f))return;f=N,N.focus();return}N=N.parentNode}};window.addEventListener("mousemove",function(p){var N=p.target;N!==d&&(d=N,C(N))}),window.addEventListener("focusin",function(p){if(d=null,f=p.target,S(!0),h(p.target)){l(p.target);return}}),window.addEventListener("focusout",function(p){d=null,S(!1,!0)}),window.addEventListener("blur",function(p){d=null,S(!1,!0)}),window.addEventListener("beforeunload",function(p){S(!1)});var v={},g=r.KeyEvent=function(){function p(b,B,L){this.event=b,this.type=B,this.code=window.event?b.which:b.keyCode,this.ctrl=b.ctrlKey,this.shift=b.shiftKey,this.alt=b.altKey,this.repeat=!!L}var N=p.prototype;return N.hasModifierKeys=function(){function b(){return this.ctrl||this.alt||this.shift}return b}(),N.isModifierKey=function(){function b(){return this.code===a.KEY_CTRL||this.code===a.KEY_SHIFT||this.code===a.KEY_ALT}return b}(),N.isDown=function(){function b(){return this.type==="keydown"}return b}(),N.isUp=function(){function b(){return this.type==="keyup"}return b}(),N.toString=function(){function b(){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>=a.KEY_F1&&this.code<=a.KEY_F12?this._str+="F"+(this.code-111):this._str+="["+this.code+"]",this._str)}return b}(),p}();document.addEventListener("keydown",function(p){if(!h(p.target)){var N=p.keyCode,b=new g(p,"keydown",v[N]);t.emit("keydown",b),t.emit("key",b),v[N]=!0}}),document.addEventListener("keyup",function(p){if(!h(p.target)){var N=p.keyCode,b=new g(p,"keyup");t.emit("keyup",b),t.emit("key",b),v[N]=!1}})},92017:function(I,r){"use strict";r.__esModule=!0,r.focusWindow=r.focusMap=void 0;/** * Various focus helpers. * * @file * @copyright 2020 Aleksej Komarov * @license MIT - */var n=r.focusMap=function(){function a(){Byond.winset("paramapwindow.map",{focus:!0})}return a}(),e=r.focusWindow=function(){function a(){Byond.winset(Byond.windowId,{focus:!0})}return a}()},92986:function(L,r,n){"use strict";r.__esModule=!0,r.formatSiUnit=r.formatPower=r.formatMoney=r.formatDb=void 0;var e=n(36121);/** + */var n=r.focusMap=function(){function a(){Byond.winset("paramapwindow.map",{focus:!0})}return a}(),e=r.focusWindow=function(){function a(){Byond.winset(Byond.windowId,{focus:!0})}return a}()},92986:function(I,r,n){"use strict";r.__esModule=!0,r.formatSiUnit=r.formatPower=r.formatMoney=r.formatDb=void 0;var e=n(36121);/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */var a=["f","p","n","\u03BC","m"," ","k","M","G","T","P","E","Z","Y"],t=a.indexOf(" "),o=r.formatSiUnit=function(){function S(k,p,l){if(p===void 0&&(p=-t),l===void 0&&(l=""),typeof k!="number"||!Number.isFinite(k))return k;var c=Math.floor(Math.log10(k)),f=Math.floor(Math.max(p*3,c)),u=Math.floor(c/3),i=Math.floor(f/3),s=(0,e.clamp)(t+i,0,a.length),d=a[s],h=k/Math.pow(1e3,i),v=u>p?2+i*3-f:0,g=(0,e.toFixed)(h,v)+" "+d+l;return g.trim()}return S}(),m=r.formatPower=function(){function S(k,p){return p===void 0&&(p=0),o(k,p,"W")}return S}(),N=r.formatMoney=function(){function S(k,p){if(p===void 0&&(p=0),!Number.isFinite(k))return k;var l=(0,e.round)(k,p);p>0&&(l=(0,e.toFixed)(k,p)),l=String(l);var c=l.length,f=l.indexOf(".");f===-1&&(f=c);for(var u="",i=0;i0&&i=0?"+":p<0?"\u2013":"",c=Math.abs(p);return c===1/0?c="Inf":c=(0,e.toFixed)(c,2),l+c+" dB"}return S}()},39952:function(L,r,n){"use strict";r.__esModule=!0,r.setupHotKeys=r.releaseHotKey=r.releaseHeldKeys=r.acquireHotKey=void 0;var e=m(n(68100)),a=n(92700),t=n(81856);function o(s){if(typeof WeakMap!="function")return null;var d=new WeakMap,h=new WeakMap;return(o=function(g){return g?h:d})(s)}function m(s,d){if(!d&&s&&s.__esModule)return s;if(s===null||typeof s!="object"&&typeof s!="function")return{default:s};var h=o(d);if(h&&h.has(s))return h.get(s);var v={__proto__:null},g=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var C in s)if(C!=="default"&&{}.hasOwnProperty.call(s,C)){var V=g?Object.getOwnPropertyDescriptor(s,C):null;V&&(V.get||V.set)?Object.defineProperty(v,C,V):v[C]=s[C]}return v.default=s,h&&h.set(s,v),v}/** + */var a=["f","p","n","\u03BC","m"," ","k","M","G","T","P","E","Z","Y"],t=a.indexOf(" "),o=r.formatSiUnit=function(){function S(k,h,l){if(h===void 0&&(h=-t),l===void 0&&(l=""),typeof k!="number"||!Number.isFinite(k))return k;var c=Math.floor(Math.log10(k)),f=Math.floor(Math.max(h*3,c)),d=Math.floor(c/3),i=Math.floor(f/3),s=(0,e.clamp)(t+i,0,a.length),u=a[s],C=k/Math.pow(1e3,i),v=d>h?2+i*3-f:0,g=(0,e.toFixed)(C,v)+" "+u+l;return g.trim()}return S}(),m=r.formatPower=function(){function S(k,h){return h===void 0&&(h=0),o(k,h,"W")}return S}(),V=r.formatMoney=function(){function S(k,h){if(h===void 0&&(h=0),!Number.isFinite(k))return k;var l=(0,e.round)(k,h);h>0&&(l=(0,e.toFixed)(k,h)),l=String(l);var c=l.length,f=l.indexOf(".");f===-1&&(f=c);for(var d="",i=0;i0&&i=0?"+":h<0?"\u2013":"",c=Math.abs(h);return c===1/0?c="Inf":c=(0,e.toFixed)(c,2),l+c+" dB"}return S}()},39952:function(I,r,n){"use strict";r.__esModule=!0,r.setupHotKeys=r.releaseHotKey=r.releaseHeldKeys=r.acquireHotKey=void 0;var e=m(n(68100)),a=n(92700),t=n(81856);function o(s){if(typeof WeakMap!="function")return null;var u=new WeakMap,C=new WeakMap;return(o=function(g){return g?C:u})(s)}function m(s,u){if(!u&&s&&s.__esModule)return s;if(s===null||typeof s!="object"&&typeof s!="function")return{default:s};var C=o(u);if(C&&C.has(s))return C.get(s);var v={__proto__:null},g=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var p in s)if(p!=="default"&&{}.hasOwnProperty.call(s,p)){var N=g?Object.getOwnPropertyDescriptor(s,p):null;N&&(N.get||N.set)?Object.defineProperty(v,p,N):v[p]=s[p]}return v.default=s,C&&C.set(s,v),v}/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */var N=(0,t.createLogger)("hotkeys"),y={},S=[e.KEY_ESCAPE,e.KEY_ENTER,e.KEY_SPACE,e.KEY_TAB,e.KEY_CTRL,e.KEY_SHIFT,e.KEY_UP,e.KEY_DOWN,e.KEY_LEFT,e.KEY_RIGHT],k={},p=function(d){if(d===16)return"Shift";if(d===17)return"Ctrl";if(d===18)return"Alt";if(d===33)return"Northeast";if(d===34)return"Southeast";if(d===35)return"Southwest";if(d===36)return"Northwest";if(d===37)return"West";if(d===38)return"North";if(d===39)return"East";if(d===40)return"South";if(d===45)return"Insert";if(d===46)return"Delete";if(d>=48&&d<=57||d>=65&&d<=90)return String.fromCharCode(d);if(d>=96&&d<=105)return"Numpad"+(d-96);if(d>=112&&d<=123)return"F"+(d-111);if(d===188)return",";if(d===189)return"-";if(d===190)return"."},l=function(d){var h=String(d);if(h==="Ctrl+F5"||h==="Ctrl+R"){location.reload();return}if(h!=="Ctrl+F"&&!(d.event.defaultPrevented||d.isModifierKey()||S.includes(d.code))){h==="F5"&&(d.event.preventDefault(),d.event.returnValue=!1);var v=p(d.code);if(v){var g=y[v];if(g)return N.debug("macro",g),Byond.command(g);if(d.isDown()&&!k[v]){k[v]=!0;var C='Key_Down "'+v+'"';return N.debug(C),Byond.command(C)}if(d.isUp()&&k[v]){k[v]=!1;var V='Key_Up "'+v+'"';return N.debug(V),Byond.command(V)}}}},c=r.acquireHotKey=function(){function s(d){S.push(d)}return s}(),f=r.releaseHotKey=function(){function s(d){var h=S.indexOf(d);h>=0&&S.splice(h,1)}return s}(),u=r.releaseHeldKeys=function(){function s(){for(var d=0,h=Object.keys(k);d=75?c="green":l.integrity>=25?c="yellow":c="red",(0,e.createComponentVNode)(2,o.Window,{width:600,height:420,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:l.name,children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Integrity",children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:c,value:l.integrity/100})})}),(0,e.createComponentVNode)(2,t.Box,{color:"red",children:(0,e.createVNode)(1,"h2",null,l.flushing===1?"Wipe of AI in progress...":"",0)})]})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Laws",children:!!l.has_laws&&(0,e.createComponentVNode)(2,t.Box,{children:l.laws.map(function(f,u){return(0,e.createComponentVNode)(2,t.Box,{children:f},u)})})||(0,e.createComponentVNode)(2,t.Box,{color:"red",children:(0,e.createVNode)(1,"h3",null,"No laws detected.",16)})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Actions",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Wireless Activity",children:(0,e.createComponentVNode)(2,t.Button,{width:10,icon:l.wireless?"check":"times",content:l.wireless?"Enabled":"Disabled",color:l.wireless?"green":"red",onClick:function(){function f(){return p("wireless")}return f}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Subspace Transceiver",children:(0,e.createComponentVNode)(2,t.Button,{width:10,icon:l.radio?"check":"times",content:l.radio?"Enabled":"Disabled",color:l.radio?"green":"red",onClick:function(){function f(){return p("radio")}return f}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Wipe",children:(0,e.createComponentVNode)(2,t.Button.Confirm,{width:10,icon:"trash-alt",confirmIcon:"trash-alt",disabled:l.flushing||l.integrity===0,confirmColor:"red",content:"Wipe AI",onClick:function(){function f(){return p("wipe")}return f}()})})]})})})]})})})}return N}()},78468:function(L,r,n){"use strict";r.__esModule=!0,r.AIFixer=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=r.AIFixer=function(){function N(y,S){var k=(0,a.useBackend)(S),p=k.act,l=k.data;if(l.occupant===null)return(0,e.createComponentVNode)(2,o.Window,{width:550,height:500,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Stored AI",children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,grow:!0,textAlign:"center",align:"center",color:"average",children:[(0,e.createComponentVNode)(2,t.Icon.Stack,{children:[(0,e.createComponentVNode)(2,t.Icon,{name:"robot",size:5,color:"silver"}),(0,e.createComponentVNode)(2,t.Icon,{name:"slash",size:5,color:"red"})]}),(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"h3",null,"No Artificial Intelligence detected.",16)]})})})})});var c=!0;(l.stat===2||l.stat===null)&&(c=!1);var f=null;l.integrity>=75?f="green":l.integrity>=25?f="yellow":f="red";var u=!0;return l.integrity>=100&&l.stat!==2&&(u=!1),(0,e.createComponentVNode)(2,o.Window,{scrollable:!0,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:l.occupant,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Integrity",children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:f,value:l.integrity/100})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",color:c?"green":"red",children:c?"Functional":"Non-Functional"})]})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Laws",children:!!l.has_laws&&(0,e.createComponentVNode)(2,t.Box,{children:l.laws.map(function(i,s){return(0,e.createComponentVNode)(2,t.Box,{inline:!0,children:i},s)})})||(0,e.createComponentVNode)(2,t.Box,{color:"red",children:(0,e.createVNode)(1,"h3",null,"No laws detected.",16)})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Actions",children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Wireless Activity",children:(0,e.createComponentVNode)(2,t.Button,{icon:l.wireless?"times":"check",content:l.wireless?"Disabled":"Enabled",color:l.wireless?"red":"green",onClick:function(){function i(){return p("wireless")}return i}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Subspace Transceiver",children:(0,e.createComponentVNode)(2,t.Button,{icon:l.radio?"times":"check",content:l.radio?"Disabled":"Enabled",color:l.radio?"red":"green",onClick:function(){function i(){return p("radio")}return i}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Start Repairs",children:(0,e.createComponentVNode)(2,t.Button,{icon:"wrench",disabled:!u||l.active,content:!u||l.active?"Already Repaired":"Repair",onClick:function(){function i(){return p("fix")}return i}()})})]}),(0,e.createComponentVNode)(2,t.Box,{color:"green",lineHeight:2,children:l.active?"Reconstruction in progress.":""})]})})]})})})}return N}()},73544:function(L,r,n){"use strict";r.__esModule=!0,r.APC=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=n(26893),N=r.APC=function(){function p(l,c){return(0,e.createComponentVNode)(2,o.Window,{width:510,height:435,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,k)})})}return p}(),y={2:{color:"good",externalPowerText:"External Power",chargingText:"Fully Charged"},1:{color:"average",externalPowerText:"Low External Power",chargingText:"Charging"},0:{color:"bad",externalPowerText:"No External Power",chargingText:"Not Charging"}},S={1:{icon:"terminal",content:"Override Programming",action:"hack"},2:{icon:"caret-square-down",content:"Shunt Core Process",action:"occupy"},3:{icon:"caret-square-left",content:"Return to Main Core",action:"deoccupy"},4:{icon:"caret-square-down",content:"Shunt Core Process",action:"occupy"}},k=function(l,c){var f=(0,a.useBackend)(c),u=f.act,i=f.data,s=i.locked&&!i.siliconUser,d=i.normallyLocked,h=y[i.externalPower]||y[0],v=y[i.chargingStatus]||y[0],g=i.powerChannels||[],C=S[i.malfStatus]||S[0],V=i.powerCellStatus/100;return(0,e.createFragment)([(0,e.createComponentVNode)(2,m.InterfaceLockNoticeBox),(0,e.createComponentVNode)(2,t.Section,{title:"Power Status",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Main Breaker",color:h.color,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:i.isOperating?"power-off":"times",content:i.isOperating?"On":"Off",selected:i.isOperating&&!s,color:i.isOperating?"":"bad",disabled:s,onClick:function(){function b(){return u("breaker")}return b}()}),children:["[ ",h.externalPowerText," ]"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power Cell",children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:"good",value:V})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Charge Mode",color:v.color,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:i.chargeMode?"sync":"times",content:i.chargeMode?"Auto":"Off",selected:i.chargeMode,disabled:s,onClick:function(){function b(){return u("charge")}return b}()}),children:["[ ",v.chargingText," ]"]})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Power Channels",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[g.map(function(b){var B=b.topicParams;return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:b.title,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{inline:!0,mx:2,color:b.status>=2?"good":"bad",children:b.status>=2?"On":"Off"}),(0,e.createComponentVNode)(2,t.Button,{icon:"sync",content:"Auto",selected:!s&&(b.status===1||b.status===3),disabled:s,onClick:function(){function I(){return u("channel",B.auto)}return I}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"power-off",content:"On",selected:!s&&b.status===2,disabled:s,onClick:function(){function I(){return u("channel",B.on)}return I}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"times",content:"Off",selected:!s&&b.status===0,disabled:s,onClick:function(){function I(){return u("channel",B.off)}return I}()})],4),children:[b.powerLoad," W"]},b.title)}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Total Load",children:(0,e.createVNode)(1,"b",null,[i.totalLoad,(0,e.createTextVNode)(" W")],0)})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Misc",buttons:!!i.siliconUser&&(0,e.createFragment)([!!i.malfStatus&&(0,e.createComponentVNode)(2,t.Button,{icon:C.icon,content:C.content,color:"bad",onClick:function(){function b(){return u(C.action)}return b}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"lightbulb-o",content:"Overload",onClick:function(){function b(){return u("overload")}return b}()})],0),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cover Lock",buttons:(0,e.createComponentVNode)(2,t.Button,{mb:.4,icon:i.coverLocked?"lock":"unlock",content:i.coverLocked?"Engaged":"Disengaged",disabled:s,onClick:function(){function b(){return u("cover")}return b}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Emergency Lighting",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"lightbulb-o",content:i.emergencyLights?"Enabled":"Disabled",disabled:s,onClick:function(){function b(){return u("emergency_lighting")}return b}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Night Shift Lighting",buttons:(0,e.createComponentVNode)(2,t.Button,{mt:.4,icon:"lightbulb-o",content:i.nightshiftLights?"Enabled":"Disabled",onClick:function(){function b(){return u("toggle_nightshift")}return b}()})})]})})],4)}},79098:function(L,r,n){"use strict";r.__esModule=!0,r.ATM=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=r.ATM=function(){function f(u,i){var s=(0,a.useBackend)(i),d=s.act,h=s.data,v=h.view_screen,g=h.authenticated_account,C=h.ticks_left_locked_down,V=h.linked_db,b;if(C>0)b=(0,e.createComponentVNode)(2,t.Box,{bold:!0,color:"bad",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"exclamation-triangle"}),"Maximum number of pin attempts exceeded! Access to this ATM has been temporarily disabled."]});else if(!V)b=(0,e.createComponentVNode)(2,t.Box,{bold:!0,color:"bad",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"exclamation-triangle"}),"Unable to connect to accounts database, please retry and if the issue persists contact Nanotrasen IT support."]});else if(g)switch(v){case 1:b=(0,e.createComponentVNode)(2,y);break;case 2:b=(0,e.createComponentVNode)(2,S);break;case 3:b=(0,e.createComponentVNode)(2,l);break;default:b=(0,e.createComponentVNode)(2,k)}else b=(0,e.createComponentVNode)(2,p);return(0,e.createComponentVNode)(2,o.Window,{width:550,height:650,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,N),(0,e.createComponentVNode)(2,t.Section,{children:b})]})})}return f}(),N=function(u,i){var s=(0,a.useBackend)(i),d=s.act,h=s.data,v=h.machine_id,g=h.held_card_name;return(0,e.createComponentVNode)(2,t.Section,{title:"Nanotrasen Automatic Teller Machine",children:[(0,e.createComponentVNode)(2,t.Box,{children:"For all your monetary needs!"}),(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Card",children:(0,e.createComponentVNode)(2,t.Button,{content:g,icon:"eject",onClick:function(){function C(){return d("insert_card")}return C}()})})})]})},y=function(u,i){var s=(0,a.useBackend)(i),d=s.act,h=s.data,v=h.security_level;return(0,e.createComponentVNode)(2,t.Section,{title:"Select a new security level for this account",children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Level",children:(0,e.createComponentVNode)(2,t.Button,{content:"Account Number",icon:"unlock",selected:v===0,onClick:function(){function g(){return d("change_security_level",{new_security_level:1})}return g}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Description",children:"Either the account number or card is required to access this account. EFTPOS transactions will require a card."}),(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Level",children:(0,e.createComponentVNode)(2,t.Button,{content:"Account Pin",icon:"unlock",selected:v===2,onClick:function(){function g(){return d("change_security_level",{new_security_level:2})}return g}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Description",children:"An account number and pin must be manually entered to access this account and process transactions."})]}),(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,c)]})},S=function(u,i){var s=(0,a.useBackend)(i),d=s.act,h=s.data,v=(0,a.useLocalState)(i,"targetAccNumber",0),g=v[0],C=v[1],V=(0,a.useLocalState)(i,"fundsAmount",0),b=V[0],B=V[1],I=(0,a.useLocalState)(i,"purpose",0),w=I[0],T=I[1],A=h.money;return(0,e.createComponentVNode)(2,t.Section,{title:"Transfer Fund",children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Account Balance",children:["$",A]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Target Account Number",children:(0,e.createComponentVNode)(2,t.Input,{placeholder:"7 Digit Number",onInput:function(){function x(E,M){return C(M)}return x}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Funds to Transfer",children:(0,e.createComponentVNode)(2,t.Input,{onInput:function(){function x(E,M){return B(M)}return x}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Transaction Purpose",children:(0,e.createComponentVNode)(2,t.Input,{fluid:!0,onInput:function(){function x(E,M){return T(M)}return x}()})})]}),(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,t.Button,{content:"Transfer",icon:"sign-out-alt",onClick:function(){function x(){return d("transfer",{target_acc_number:g,funds_amount:b,purpose:w})}return x}()}),(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,c)]})},k=function(u,i){var s=(0,a.useBackend)(i),d=s.act,h=s.data,v=(0,a.useLocalState)(i,"fundsAmount",0),g=v[0],C=v[1],V=h.owner_name,b=h.money;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{title:"Welcome, "+V,buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Logout",icon:"sign-out-alt",onClick:function(){function B(){return d("logout")}return B}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Account Balance",children:["$",b]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Withdrawal Amount",children:(0,e.createComponentVNode)(2,t.Input,{onInput:function(){function B(I,w){return C(w)}return B}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Withdraw Funds",icon:"sign-out-alt",onClick:function(){function B(){return d("withdrawal",{funds_amount:g})}return B}()})})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Menu",children:[(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Change account security level",icon:"lock",onClick:function(){function B(){return d("view_screen",{view_screen:1})}return B}()})}),(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Make transfer",icon:"exchange-alt",onClick:function(){function B(){return d("view_screen",{view_screen:2})}return B}()})}),(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:"View transaction log",icon:"list",onClick:function(){function B(){return d("view_screen",{view_screen:3})}return B}()})}),(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Print balance statement",icon:"print",onClick:function(){function B(){return d("balance_statement")}return B}()})})]})],4)},p=function(u,i){var s=(0,a.useBackend)(i),d=s.act,h=s.data,v=(0,a.useLocalState)(i,"accountID",null),g=v[0],C=v[1],V=(0,a.useLocalState)(i,"accountPin",null),b=V[0],B=V[1],I=h.machine_id,w=h.held_card_name;return(0,e.createComponentVNode)(2,t.Section,{title:"Insert card or enter ID and pin to login",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Account ID",children:(0,e.createComponentVNode)(2,t.Input,{placeholder:"6 Digit Number",onInput:function(){function T(A,x){return C(x)}return T}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Pin",children:(0,e.createComponentVNode)(2,t.Input,{placeholder:"6 Digit Number",onInput:function(){function T(A,x){return B(x)}return T}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Login",icon:"sign-in-alt",onClick:function(){function T(){return d("attempt_auth",{account_num:g,account_pin:b})}return T}()})})]})})},l=function(u,i){var s=(0,a.useBackend)(i),d=s.act,h=s.data,v=h.transaction_log;return(0,e.createComponentVNode)(2,t.Section,{title:"Transactions",children:[(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Timestamp"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Reason"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Value"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Terminal"})]}),v.map(function(g){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:g.time}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:g.purpose}),(0,e.createComponentVNode)(2,t.Table.Cell,{color:g.is_deposit?"green":"red",children:["$",g.amount]}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:g.target_name})]},g)})]}),(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,c)]})},c=function(u,i){var s=(0,a.useBackend)(i),d=s.act,h=s.data;return(0,e.createComponentVNode)(2,t.Button,{content:"Back",icon:"sign-out-alt",onClick:function(){function v(){return d("view_screen",{view_screen:0})}return v}()})}},64613:function(L,r,n){"use strict";r.__esModule=!0,r.AccountsUplinkTerminal=void 0;var e=n(96524),a=n(78234),t=n(17899),o=n(24674),m=n(5126),N=n(45493),y=n(68159),S=n(27527),k=r.AccountsUplinkTerminal=function(){function h(v,g){var C=(0,t.useBackend)(g),V=C.act,b=C.data,B=b.loginState,I=b.currentPage,w;if(B.logged_in)I===1?w=(0,e.createComponentVNode)(2,l):I===2?w=(0,e.createComponentVNode)(2,s):I===3&&(w=(0,e.createComponentVNode)(2,d));else return(0,e.createComponentVNode)(2,N.Window,{width:800,height:600,children:(0,e.createComponentVNode)(2,N.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,S.LoginScreen)})})});return(0,e.createComponentVNode)(2,N.Window,{width:800,height:600,children:(0,e.createComponentVNode)(2,N.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,y.LoginInfo),(0,e.createComponentVNode)(2,p),(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,children:w})]})})})}return h}(),p=function(v,g){var C=(0,t.useBackend)(g),V=C.data,b=(0,t.useLocalState)(g,"tabIndex",0),B=b[0],I=b[1],w=V.login_state;return(0,e.createComponentVNode)(2,o.Stack,{vertical:!0,mb:1,children:(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Tabs,{children:[(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"list",selected:B===0,onClick:function(){function T(){return I(0)}return T}(),children:"User Accounts"}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"list",selected:B===1,onClick:function(){function T(){return I(1)}return T}(),children:"Department Accounts"})]})})})},l=function(v,g){var C=(0,t.useLocalState)(g,"tabIndex",0),V=C[0];switch(V){case 0:return(0,e.createComponentVNode)(2,c);case 1:return(0,e.createComponentVNode)(2,f);default:return"You are somehow on a tab that doesn't exist! Please let a coder know."}},c=function(v,g){var C=(0,t.useBackend)(g),V=C.act,b=C.data,B=b.accounts,I=(0,t.useLocalState)(g,"searchText",""),w=I[0],T=I[1],A=(0,t.useLocalState)(g,"sortId","owner_name"),x=A[0],E=A[1],M=(0,t.useLocalState)(g,"sortOrder",!0),j=M[0],P=M[1];return(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,i),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,o.Table,{className:"AccountsUplinkTerminal__list",children:[(0,e.createComponentVNode)(2,o.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,u,{id:"owner_name",children:"Account Holder"}),(0,e.createComponentVNode)(2,u,{id:"account_number",children:"Account Number"}),(0,e.createComponentVNode)(2,u,{id:"suspended",children:"Account Status"}),(0,e.createComponentVNode)(2,u,{id:"money",children:"Account Balance"})]}),B.filter((0,a.createSearch)(w,function(R){return R.owner_name+"|"+R.account_number+"|"+R.suspended+"|"+R.money})).sort(function(R,D){var F=j?1:-1;return R[x].localeCompare(D[x])*F}).map(function(R){return(0,e.createComponentVNode)(2,o.Table.Row,{className:"AccountsUplinkTerminal__listRow--"+R.suspended,onClick:function(){function D(){return V("view_account_detail",{account_num:R.account_number})}return D}(),children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:"user"})," ",R.owner_name]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:["#",R.account_number]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:R.suspended}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:R.money})]},R.account_number)})]})})})]})},f=function(v,g){var C=(0,t.useBackend)(g),V=C.act,b=C.data,B=b.department_accounts;return(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{children:(0,e.createComponentVNode)(2,o.Table,{className:"AccountsUplinkTerminal__list",children:[(0,e.createComponentVNode)(2,o.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,m.TableCell,{children:"Department Name"}),(0,e.createComponentVNode)(2,m.TableCell,{children:"Account Number"}),(0,e.createComponentVNode)(2,m.TableCell,{children:"Account Status"}),(0,e.createComponentVNode)(2,m.TableCell,{children:"Account Balance"})]}),B.map(function(I){return(0,e.createComponentVNode)(2,o.Table.Row,{className:"AccountsUplinkTerminal__listRow--"+I.suspended,onClick:function(){function w(){return V("view_account_detail",{account_num:I.account_number})}return w}(),children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:"wallet"})," ",I.name]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:["#",I.account_number]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:I.suspended}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:I.money})]},I.account_number)})]})})})})},u=function(v,g){var C=(0,t.useLocalState)(g,"sortId","name"),V=C[0],b=C[1],B=(0,t.useLocalState)(g,"sortOrder",!0),I=B[0],w=B[1],T=v.id,A=v.children;return(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Button,{color:V!==T&&"transparent",width:"100%",onClick:function(){function x(){V===T?w(!I):(b(T),w(!0))}return x}(),children:[A,V===T&&(0,e.createComponentVNode)(2,o.Icon,{name:I?"sort-up":"sort-down",ml:"0.25rem;"})]})})},i=function(v,g){var C=(0,t.useBackend)(g),V=C.act,b=C.data,B=b.is_printing,I=(0,t.useLocalState)(g,"searchText",""),w=I[0],T=I[1];return(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{content:"New Account",icon:"plus",onClick:function(){function A(){return V("create_new_account")}return A}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Input,{placeholder:"Search by account holder, number, status",width:"100%",onInput:function(){function A(x,E){return T(E)}return A}()})})]})},s=function(v,g){var C=(0,t.useBackend)(g),V=C.act,b=C.data,B=b.account_number,I=b.owner_name,w=b.money,T=b.suspended,A=b.transactions,x=b.account_pin,E=b.is_department_account;return(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Section,{title:"#"+B+" / "+I,buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"arrow-left",content:"Back",onClick:function(){function M(){return V("back")}return M}()}),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Account Number",children:["#",B]}),!!E&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Account Pin",children:x}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Account Pin Actions",children:(0,e.createComponentVNode)(2,o.Button,{ml:1,icon:"user-cog",content:"Set New Pin",disabled:!!E,onClick:function(){function M(){return V("set_account_pin",{account_number:B})}return M}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Account Holder",children:I}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Account Balance",children:w}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Account Status",color:T?"red":"green",children:[T?"Suspended":"Active",(0,e.createComponentVNode)(2,o.Button,{ml:1,content:T?"Unsuspend":"Suspend",icon:T?"unlock":"lock",onClick:function(){function M(){return V("toggle_suspension")}return M}()})]})]})})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,title:"Transactions",children:(0,e.createComponentVNode)(2,o.Table,{children:[(0,e.createComponentVNode)(2,o.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Timestamp"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Reason"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Value"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Terminal"})]}),A.map(function(M){return(0,e.createComponentVNode)(2,o.Table.Row,{children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:M.time}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:M.purpose}),(0,e.createComponentVNode)(2,o.Table.Cell,{color:M.is_deposit?"green":"red",children:["$",M.amount]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:M.target_name})]},M)})]})})})]})},d=function(v,g){var C=(0,t.useBackend)(g),V=C.act,b=C.data,B=(0,t.useLocalState)(g,"accName",""),I=B[0],w=B[1],T=(0,t.useLocalState)(g,"accDeposit",""),A=T[0],x=T[1];return(0,e.createComponentVNode)(2,o.Section,{title:"Create Account",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"arrow-left",content:"Back",onClick:function(){function E(){return V("back")}return E}()}),children:[(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Account Holder",children:(0,e.createComponentVNode)(2,o.Input,{placeholder:"Name Here",onChange:function(){function E(M,j){return w(j)}return E}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Initial Deposit",children:(0,e.createComponentVNode)(2,o.Input,{placeholder:"0",onChange:function(){function E(M,j){return x(j)}return E}()})})]}),(0,e.createComponentVNode)(2,o.Button,{mt:1,fluid:!0,content:"Create Account",onClick:function(){function E(){return V("finalise_create_account",{holder_name:I,starting_funds:A})}return E}()})]})}},34257:function(L,r,n){"use strict";r.__esModule=!0,r.AgentCardInfo=r.AgentCardAppearances=r.AgentCard=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=r.AgentCard=function(){function S(k,p){var l=(0,a.useLocalState)(p,"tabIndex",0),c=l[0],f=l[1],u=function(){function i(s){switch(s){case 0:return(0,e.createComponentVNode)(2,N);case 1:return(0,e.createComponentVNode)(2,y);default:return(0,e.createComponentVNode)(2,N)}}return i}();return(0,e.createComponentVNode)(2,o.Window,{width:425,height:500,theme:"syndicate",children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Tabs,{fluid:!0,children:[(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:c===0,onClick:function(){function i(){return f(0)}return i}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"table"})," Card Info"]},"Card Info"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:c===1,onClick:function(){function i(){return f(1)}return i}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"id-card"})," Appearance"]},"Appearance")]})}),u(c)]})})})}return S}(),N=r.AgentCardInfo=function(){function S(k,p){var l=(0,a.useBackend)(p),c=l.act,f=l.data,u=f.registered_name,i=f.sex,s=f.age,d=f.assignment,h=f.associated_account_number,v=f.blood_type,g=f.dna_hash,C=f.fingerprint_hash,V=f.photo,b=f.ai_tracking;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Card Info",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Name",children:(0,e.createComponentVNode)(2,t.Button,{content:u||"[UNSET]",onClick:function(){function B(){return c("change_name")}return B}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Sex",children:(0,e.createComponentVNode)(2,t.Button,{iconRight:!1,content:i||"[UNSET]",onClick:function(){function B(){return c("change_sex")}return B}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Age",children:(0,e.createComponentVNode)(2,t.Button,{content:s||"[UNSET]",onClick:function(){function B(){return c("change_age")}return B}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Rank",children:(0,e.createComponentVNode)(2,t.Button,{content:d||"[UNSET]",onClick:function(){function B(){return c("change_occupation")}return B}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Fingerprints",children:(0,e.createComponentVNode)(2,t.Button,{content:C||"[UNSET]",onClick:function(){function B(){return c("change_fingerprints")}return B}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Blood Type",children:(0,e.createComponentVNode)(2,t.Button,{content:v||"[UNSET]",onClick:function(){function B(){return c("change_blood_type")}return B}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"DNA Hash",children:(0,e.createComponentVNode)(2,t.Button,{content:g||"[UNSET]",onClick:function(){function B(){return c("change_dna_hash")}return B}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Money Account",children:(0,e.createComponentVNode)(2,t.Button,{content:h||"[UNSET]",onClick:function(){function B(){return c("change_money_account")}return B}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Photo",children:(0,e.createComponentVNode)(2,t.Button,{content:V?"Update":"[UNSET]",onClick:function(){function B(){return c("change_photo")}return B}()})})]})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Card Settings",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Card Info",children:(0,e.createComponentVNode)(2,t.Button,{content:"Delete Card Info",onClick:function(){function B(){return c("delete_info")}return B}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Access",children:(0,e.createComponentVNode)(2,t.Button,{content:"Reset Access",onClick:function(){function B(){return c("clear_access")}return B}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"AI Tracking",children:(0,e.createComponentVNode)(2,t.Button,{content:b?"Untrackable":"Trackable",onClick:function(){function B(){return c("change_ai_tracking")}return B}()})})]})})})],4)}return S}(),y=r.AgentCardAppearances=function(){function S(k,p){var l=(0,a.useBackend)(p),c=l.act,f=l.data,u=(0,a.useLocalState)(p,"selectedAppearance",null),i=u[0],s=u[1],d=f.appearances;return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Card Appearance",children:d.map(function(h){return(0,e.createComponentVNode)(2,t.Button,{compact:!0,m:.5,color:"translucent",selected:h===i,content:(0,e.createVNode)(1,"img",null,null,1,{src:"data:image/jped;base64,"+h.image,style:{width:"64px","vertical-align":"middle","-ms-interpolation-mode":"nearest-neighbor"},onClick:function(){function v(){s(h),c("change_appearance",{new_appearance:h.name})}return v}()})},h.name)})})})}return S}()},56839:function(L,r,n){"use strict";r.__esModule=!0,r.AiAirlock=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m={2:{color:"good",localStatusText:"Offline"},1:{color:"average",localStatusText:"Caution"},0:{color:"bad",localStatusText:"Optimal"}},N=r.AiAirlock=function(){function y(S,k){var p=(0,a.useBackend)(k),l=p.act,c=p.data,f=m[c.power.main]||m[0],u=m[c.power.backup]||m[0],i=m[c.shock]||m[0];return(0,e.createComponentVNode)(2,o.Window,{width:500,height:400,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Power Status",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Main",color:f.color,buttons:(0,e.createComponentVNode)(2,t.Button,{mb:.5,icon:"lightbulb-o",disabled:!c.power.main,content:"Disrupt",onClick:function(){function s(){return l("disrupt-main")}return s}()}),children:[c.power.main?"Online":"Offline"," ",!c.wires.main_power&&"[Wires have been cut!]"||c.power.main_timeleft>0&&"["+c.power.main_timeleft+"s]"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Backup",color:u.color,buttons:(0,e.createComponentVNode)(2,t.Button,{mb:.5,icon:"lightbulb-o",disabled:!c.power.backup,content:"Disrupt",onClick:function(){function s(){return l("disrupt-backup")}return s}()}),children:[c.power.backup?"Online":"Offline"," ",!c.wires.backup_power&&"[Wires have been cut!]"||c.power.backup_timeleft>0&&"["+c.power.backup_timeleft+"s]"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Electrify",color:i.color,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{mr:.5,icon:"wrench",disabled:!(c.wires.shock&&c.shock!==2),content:"Restore",onClick:function(){function s(){return l("shock-restore")}return s}()}),(0,e.createComponentVNode)(2,t.Button,{mr:.5,icon:"bolt",disabled:!c.wires.shock,content:"Temporary",onClick:function(){function s(){return l("shock-temp")}return s}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"bolt",disabled:!c.wires.shock||c.shock===0,content:"Permanent",onClick:function(){function s(){return l("shock-perm")}return s}()})],4),children:[c.shock===2?"Safe":"Electrified"," ",!c.wires.shock&&"[Wires have been cut!]"||c.shock_timeleft>0&&"["+c.shock_timeleft+"s]"||c.shock_timeleft===-1&&"[Permanent]"]})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Access and Door Control",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"ID Scan",color:"bad",buttons:(0,e.createComponentVNode)(2,t.Button,{mb:.5,width:6.5,icon:c.id_scanner?"power-off":"times",content:c.id_scanner?"Enabled":"Disabled",selected:c.id_scanner,disabled:!c.wires.id_scanner,onClick:function(){function s(){return l("idscan-toggle")}return s}()}),children:!c.wires.id_scanner&&"[Wires have been cut!]"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Emergency Access",buttons:(0,e.createComponentVNode)(2,t.Button,{width:6.5,icon:c.emergency?"power-off":"times",content:c.emergency?"Enabled":"Disabled",selected:c.emergency,onClick:function(){function s(){return l("emergency-toggle")}return s}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Divider),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Door Bolts",color:"bad",buttons:(0,e.createComponentVNode)(2,t.Button,{mb:.5,icon:c.locked?"lock":"unlock",content:c.locked?"Lowered":"Raised",selected:c.locked,disabled:!c.wires.bolts,onClick:function(){function s(){return l("bolt-toggle")}return s}()}),children:!c.wires.bolts&&"[Wires have been cut!]"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Door Bolt Lights",color:"bad",buttons:(0,e.createComponentVNode)(2,t.Button,{mb:.5,width:6.5,icon:c.lights?"power-off":"times",content:c.lights?"Enabled":"Disabled",selected:c.lights,disabled:!c.wires.lights,onClick:function(){function s(){return l("light-toggle")}return s}()}),children:!c.wires.lights&&"[Wires have been cut!]"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Door Force Sensors",color:"bad",buttons:(0,e.createComponentVNode)(2,t.Button,{mb:.5,width:6.5,icon:c.safe?"power-off":"times",content:c.safe?"Enabled":"Disabled",selected:c.safe,disabled:!c.wires.safe,onClick:function(){function s(){return l("safe-toggle")}return s}()}),children:!c.wires.safe&&"[Wires have been cut!]"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Door Timing Safety",color:"bad",buttons:(0,e.createComponentVNode)(2,t.Button,{mb:.5,width:6.5,icon:c.speed?"power-off":"times",content:c.speed?"Enabled":"Disabled",selected:c.speed,disabled:!c.wires.timing,onClick:function(){function s(){return l("speed-toggle")}return s}()}),children:!c.wires.timing&&"[Wires have been cut!]"}),(0,e.createComponentVNode)(2,t.LabeledList.Divider),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Door Control",color:"bad",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:c.opened?"sign-out-alt":"sign-in-alt",content:c.opened?"Open":"Closed",selected:c.opened,disabled:c.locked||c.welded,onClick:function(){function s(){return l("open-close")}return s}()}),children:!!(c.locked||c.welded)&&(0,e.createVNode)(1,"span",null,[(0,e.createTextVNode)("[Door is "),c.locked?"bolted":"",c.locked&&c.welded?" and ":"",c.welded?"welded":"",(0,e.createTextVNode)("!]")],0)})]})})]})})}return y}()},5565:function(L,r,n){"use strict";r.__esModule=!0,r.AirAlarm=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=n(26893),N=r.AirAlarm=function(){function i(s,d){var h=(0,a.useBackend)(d),v=h.act,g=h.data,C=g.locked;return(0,e.createComponentVNode)(2,o.Window,{width:570,height:C?310:755,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,m.InterfaceLockNoticeBox),(0,e.createComponentVNode)(2,S),!C&&(0,e.createFragment)([(0,e.createComponentVNode)(2,k),(0,e.createComponentVNode)(2,p)],4)]})})}return i}(),y=function(s){return s===0?"green":s===1?"orange":"red"},S=function(s,d){var h=(0,a.useBackend)(d),v=h.act,g=h.data,C=g.air,V=g.mode,b=g.atmos_alarm,B=g.locked,I=g.alarmActivated,w=g.rcon,T=g.target_temp,A;return C.danger.overall===0?b===0?A="Optimal":A="Caution: Atmos alert in area":C.danger.overall===1?A="Caution":A="DANGER: Internals Required",(0,e.createComponentVNode)(2,t.Section,{title:"Air Status",children:C?(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Pressure",children:(0,e.createComponentVNode)(2,t.Box,{color:y(C.danger.pressure),children:[(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:C.pressure})," kPa",!B&&(0,e.createFragment)([(0,e.createTextVNode)("\xA0"),(0,e.createComponentVNode)(2,t.Button,{content:V===3?"Deactivate Panic Siphon":"Activate Panic Siphon",selected:V===3,icon:"exclamation-triangle",onClick:function(){function x(){return v("mode",{mode:V===3?1:3})}return x}()})],4)]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Oxygen",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:C.contents.oxygen/100,fractionDigits:"1",color:y(C.danger.oxygen)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Nitrogen",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:C.contents.nitrogen/100,fractionDigits:"1",color:y(C.danger.nitrogen)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Carbon Dioxide",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:C.contents.co2/100,fractionDigits:"1",color:y(C.danger.co2)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Toxins",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:C.contents.plasma/100,fractionDigits:"1",color:y(C.danger.plasma)})}),C.contents.n2o>.1&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Nitrous Oxide",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:C.contents.n2o/100,fractionDigits:"1",color:y(C.danger.n2o)})}),C.contents.other>.1&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Other",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:C.contents.other/100,fractionDigits:"1",color:y(C.danger.other)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Temperature",children:(0,e.createComponentVNode)(2,t.Box,{color:y(C.danger.temperature),children:[(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:C.temperature})," K /"," ",(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:C.temperature_c})," C\xA0",(0,e.createComponentVNode)(2,t.Button,{icon:"thermometer-full",content:T+" C",onClick:function(){function x(){return v("temperature")}return x}()}),(0,e.createComponentVNode)(2,t.Button,{content:C.thermostat_state?"On":"Off",selected:C.thermostat_state,icon:"power-off",onClick:function(){function x(){return v("thermostat_state")}return x}()})]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Local Status",children:(0,e.createComponentVNode)(2,t.Box,{color:y(C.danger.overall),children:[A,!B&&(0,e.createFragment)([(0,e.createTextVNode)("\xA0"),(0,e.createComponentVNode)(2,t.Button,{content:I?"Reset Alarm":"Activate Alarm",selected:I,onClick:function(){function x(){return v(I?"atmos_reset":"atmos_alarm")}return x}()})],4)]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Remote Control Settings",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Off",selected:w===1,onClick:function(){function x(){return v("set_rcon",{rcon:1})}return x}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Auto",selected:w===2,onClick:function(){function x(){return v("set_rcon",{rcon:2})}return x}()}),(0,e.createComponentVNode)(2,t.Button,{content:"On",selected:w===3,onClick:function(){function x(){return v("set_rcon",{rcon:3})}return x}()})]})]}):(0,e.createComponentVNode)(2,t.Box,{children:"Unable to acquire air sample!"})})},k=function(s,d){var h=(0,a.useLocalState)(d,"tabIndex",0),v=h[0],g=h[1];return(0,e.createComponentVNode)(2,t.Tabs,{children:[(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:v===0,onClick:function(){function C(){return g(0)}return C}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"sign-out-alt"})," Vent Control"]},"Vents"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:v===1,onClick:function(){function C(){return g(1)}return C}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"sign-in-alt"})," Scrubber Control"]},"Scrubbers"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:v===2,onClick:function(){function C(){return g(2)}return C}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"cog"})," Mode"]},"Mode"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:v===3,onClick:function(){function C(){return g(3)}return C}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"tachometer-alt"})," Thresholds"]},"Thresholds")]})},p=function(s,d){var h=(0,a.useLocalState)(d,"tabIndex",0),v=h[0],g=h[1];switch(v){case 0:return(0,e.createComponentVNode)(2,l);case 1:return(0,e.createComponentVNode)(2,c);case 2:return(0,e.createComponentVNode)(2,f);case 3:return(0,e.createComponentVNode)(2,u);default:return"WE SHOULDN'T BE HERE!"}},l=function(s,d){var h=(0,a.useBackend)(d),v=h.act,g=h.data,C=g.vents;return C.map(function(V){return(0,e.createComponentVNode)(2,t.Section,{title:V.name,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:[(0,e.createComponentVNode)(2,t.Button,{content:V.power?"On":"Off",selected:V.power,icon:"power-off",onClick:function(){function b(){return v("command",{cmd:"power",val:!V.power,id_tag:V.id_tag})}return b}()}),(0,e.createComponentVNode)(2,t.Button,{content:V.direction?"Blowing":"Siphoning",icon:V.direction?"sign-out-alt":"sign-in-alt",onClick:function(){function b(){return v("command",{cmd:"direction",val:!V.direction,id_tag:V.id_tag})}return b}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Pressure Checks",children:[(0,e.createComponentVNode)(2,t.Button,{content:"External",selected:V.checks===1,onClick:function(){function b(){return v("command",{cmd:"checks",val:1,id_tag:V.id_tag})}return b}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Internal",selected:V.checks===2,onClick:function(){function b(){return v("command",{cmd:"checks",val:2,id_tag:V.id_tag})}return b}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"External Pressure Target",children:[(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:V.external})," kPa\xA0",(0,e.createComponentVNode)(2,t.Button,{content:"Set",icon:"cog",onClick:function(){function b(){return v("command",{cmd:"set_external_pressure",id_tag:V.id_tag})}return b}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Reset",icon:"redo-alt",onClick:function(){function b(){return v("command",{cmd:"set_external_pressure",val:101.325,id_tag:V.id_tag})}return b}()})]})]})},V.name)})},c=function(s,d){var h=(0,a.useBackend)(d),v=h.act,g=h.data,C=g.scrubbers;return C.map(function(V){return(0,e.createComponentVNode)(2,t.Section,{title:V.name,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:[(0,e.createComponentVNode)(2,t.Button,{content:V.power?"On":"Off",selected:V.power,icon:"power-off",onClick:function(){function b(){return v("command",{cmd:"power",val:!V.power,id_tag:V.id_tag})}return b}()}),(0,e.createComponentVNode)(2,t.Button,{content:V.scrubbing?"Scrubbing":"Siphoning",icon:V.scrubbing?"filter":"sign-in-alt",onClick:function(){function b(){return v("command",{cmd:"scrubbing",val:!V.scrubbing,id_tag:V.id_tag})}return b}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Range",children:(0,e.createComponentVNode)(2,t.Button,{content:V.widenet?"Extended":"Normal",selected:V.widenet,icon:"expand-arrows-alt",onClick:function(){function b(){return v("command",{cmd:"widenet",val:!V.widenet,id_tag:V.id_tag})}return b}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Filtering",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Carbon Dioxide",selected:V.filter_co2,onClick:function(){function b(){return v("command",{cmd:"co2_scrub",val:!V.filter_co2,id_tag:V.id_tag})}return b}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Plasma",selected:V.filter_toxins,onClick:function(){function b(){return v("command",{cmd:"tox_scrub",val:!V.filter_toxins,id_tag:V.id_tag})}return b}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Nitrous Oxide",selected:V.filter_n2o,onClick:function(){function b(){return v("command",{cmd:"n2o_scrub",val:!V.filter_n2o,id_tag:V.id_tag})}return b}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Oxygen",selected:V.filter_o2,onClick:function(){function b(){return v("command",{cmd:"o2_scrub",val:!V.filter_o2,id_tag:V.id_tag})}return b}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Nitrogen",selected:V.filter_n2,onClick:function(){function b(){return v("command",{cmd:"n2_scrub",val:!V.filter_n2,id_tag:V.id_tag})}return b}()})]})]})},V.name)})},f=function(s,d){var h=(0,a.useBackend)(d),v=h.act,g=h.data,C=g.modes,V=g.presets,b=g.emagged,B=g.mode,I=g.preset;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{title:"System Mode",children:(0,e.createComponentVNode)(2,t.Table,{children:C.map(function(w){return(!w.emagonly||w.emagonly&&!!b)&&(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"right",width:1,children:(0,e.createComponentVNode)(2,t.Button,{content:w.name,icon:"cog",selected:w.id===B,onClick:function(){function T(){return v("mode",{mode:w.id})}return T}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:w.desc})]},w.name)})})}),(0,e.createComponentVNode)(2,t.Section,{title:"System Presets",children:[(0,e.createComponentVNode)(2,t.Box,{italic:!0,children:"After making a selection, the system will automatically cycle in order to remove contaminants."}),(0,e.createComponentVNode)(2,t.Table,{mt:1,children:V.map(function(w){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"right",width:1,children:(0,e.createComponentVNode)(2,t.Button,{content:w.name,icon:"cog",selected:w.id===I,onClick:function(){function T(){return v("preset",{preset:w.id})}return T}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:w.desc})]},w.name)})})]})],4)},u=function(s,d){var h=(0,a.useBackend)(d),v=h.act,g=h.data,C=g.thresholds;return(0,e.createComponentVNode)(2,t.Section,{title:"Alarm Thresholds",children:(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{width:"20%",children:"Value"}),(0,e.createComponentVNode)(2,t.Table.Cell,{color:"red",width:"20%",children:"Danger Min"}),(0,e.createComponentVNode)(2,t.Table.Cell,{color:"orange",width:"20%",children:"Warning Min"}),(0,e.createComponentVNode)(2,t.Table.Cell,{color:"orange",width:"20%",children:"Warning Max"}),(0,e.createComponentVNode)(2,t.Table.Cell,{color:"red",width:"20%",children:"Danger Max"})]}),C.map(function(V){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:V.name}),V.settings.map(function(b){return(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{content:b.selected===-1?"Off":b.selected,onClick:function(){function B(){return v("command",{cmd:"set_threshold",env:b.env,var:b.val})}return B}()})},b.val)})]},V.name)})]})})}},82915:function(L,r,n){"use strict";r.__esModule=!0,r.AirlockAccessController=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=r.AirlockAccessController=function(){function N(y,S){var k=(0,a.useBackend)(S),p=k.act,l=k.data,c=l.exterior_status,f=l.interior_status,u=l.processing,i,s;return c==="open"?i=(0,e.createComponentVNode)(2,t.Button,{width:"50%",content:"Lock Exterior Door",icon:"exclamation-triangle",disabled:u,onClick:function(){function d(){return p("force_ext")}return d}()}):i=(0,e.createComponentVNode)(2,t.Button,{width:"50%",content:"Cycle to Exterior",icon:"arrow-circle-left",disabled:u,onClick:function(){function d(){return p("cycle_ext_door")}return d}()}),f==="open"?s=(0,e.createComponentVNode)(2,t.Button,{width:"49%",content:"Lock Interior Door",icon:"exclamation-triangle",disabled:u,color:f==="open"?"red":u?"yellow":null,onClick:function(){function d(){return p("force_int")}return d}()}):s=(0,e.createComponentVNode)(2,t.Button,{width:"49%",content:"Cycle to Interior",icon:"arrow-circle-right",disabled:u,onClick:function(){function d(){return p("cycle_int_door")}return d}()}),(0,e.createComponentVNode)(2,o.Window,{width:330,height:200,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Information",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"External Door Status",children:c==="closed"?"Locked":"Open"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Internal Door Status",children:f==="closed"?"Locked":"Open"})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Actions",children:(0,e.createComponentVNode)(2,t.Box,{children:[i,s]})})]})})}return N}()},14962:function(L,r,n){"use strict";r.__esModule=!0,r.AirlockElectronics=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=n(57842),N=1,y=2,S=4,k=8,p=r.AirlockElectronics=function(){function f(u,i){return(0,e.createComponentVNode)(2,o.Window,{width:450,height:565,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,l),(0,e.createComponentVNode)(2,c)]})})})}return f}(),l=function(u,i){var s=(0,a.useBackend)(i),d=s.act,h=s.data,v=h.unrestricted_dir;return(0,e.createComponentVNode)(2,t.Section,{title:"Access Control",children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,mb:1,children:"Unrestricted Access From:"}),(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"arrow-left",content:"East",selected:v&S?"selected":null,onClick:function(){function g(){return d("unrestricted_access",{unres_dir:S})}return g}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"arrow-up",content:"South",selected:v&y?"selected":null,onClick:function(){function g(){return d("unrestricted_access",{unres_dir:y})}return g}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"arrow-right",content:"West",selected:v&k?"selected":null,onClick:function(){function g(){return d("unrestricted_access",{unres_dir:k})}return g}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"arrow-down",content:"North",selected:v&N?"selected":null,onClick:function(){function g(){return d("unrestricted_access",{unres_dir:N})}return g}()})})]})]})})},c=function(u,i){var s=(0,a.useBackend)(i),d=s.act,h=s.data,v=h.selected_accesses,g=h.one_access,C=h.regions;return(0,e.createComponentVNode)(2,m.AccessList,{usedByRcd:1,rcdButtons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:g,content:"One",onClick:function(){function V(){return d("set_one_access",{access:"one"})}return V}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:!g,content:"All",onClick:function(){function V(){return d("set_one_access",{access:"all"})}return V}()})],4),accesses:C,selectedList:v,accessMod:function(){function V(b){return d("set",{access:b})}return V}(),grantAll:function(){function V(){return d("grant_all")}return V}(),denyAll:function(){function V(){return d("clear_all")}return V}(),grantDep:function(){function V(b){return d("grant_region",{region:b})}return V}(),denyDep:function(){function V(b){return d("deny_region",{region:b})}return V}()})}},99327:function(L,r,n){"use strict";r.__esModule=!0,r.AlertModal=void 0;var e=n(96524),a=n(14299),t=n(17899),o=n(68100),m=n(24674),N=n(45493),y=-1,S=1,k=r.AlertModal=function(){function c(f,u){var i=(0,t.useBackend)(u),s=i.act,d=i.data,h=d.autofocus,v=d.buttons,g=v===void 0?[]:v,C=d.large_buttons,V=d.message,b=V===void 0?"":V,B=d.timeout,I=d.title,w=(0,t.useLocalState)(u,"selected",0),T=w[0],A=w[1],x=110+(b.length>30?Math.ceil(b.length/4):0)+(b.length&&C?5:0),E=325+(g.length>2?100:0),M=function(){function j(P){T===0&&P===y?A(g.length-1):T===g.length-1&&P===S?A(0):A(T+P)}return j}();return(0,e.createComponentVNode)(2,N.Window,{title:I,height:x,width:E,children:[!!B&&(0,e.createComponentVNode)(2,a.Loader,{value:B}),(0,e.createComponentVNode)(2,N.Window.Content,{onKeyDown:function(){function j(P){var R=window.event?P.which:P.keyCode;R===o.KEY_SPACE||R===o.KEY_ENTER?s("choose",{choice:g[T]}):R===o.KEY_ESCAPE?s("cancel"):R===o.KEY_LEFT?(P.preventDefault(),M(y)):(R===o.KEY_TAB||R===o.KEY_RIGHT)&&(P.preventDefault(),M(S))}return j}(),children:(0,e.createComponentVNode)(2,m.Section,{fill:!0,children:(0,e.createComponentVNode)(2,m.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,m.Stack.Item,{grow:!0,m:1,children:(0,e.createComponentVNode)(2,m.Box,{color:"label",overflow:"hidden",children:b})}),(0,e.createComponentVNode)(2,m.Stack.Item,{children:[!!h&&(0,e.createComponentVNode)(2,m.Autofocus),(0,e.createComponentVNode)(2,p,{selected:T})]})]})})})]})}return c}(),p=function(f,u){var i=(0,t.useBackend)(u),s=i.data,d=s.buttons,h=d===void 0?[]:d,v=s.large_buttons,g=s.swapped_buttons,C=f.selected;return(0,e.createComponentVNode)(2,m.Flex,{fill:!0,align:"center",direction:g?"row":"row-reverse",justify:"space-around",wrap:!0,children:h==null?void 0:h.map(function(V,b){return v&&h.length<3?(0,e.createComponentVNode)(2,m.Flex.Item,{grow:!0,children:(0,e.createComponentVNode)(2,l,{button:V,id:b.toString(),selected:C===b})},b):(0,e.createComponentVNode)(2,m.Flex.Item,{grow:v?1:0,children:(0,e.createComponentVNode)(2,l,{button:V,id:b.toString(),selected:C===b})},b)})})},l=function(f,u){var i=(0,t.useBackend)(u),s=i.act,d=i.data,h=d.large_buttons,v=f.button,g=f.selected,C=v.length>7?"100%":7;return(0,e.createComponentVNode)(2,m.Button,{mx:h?1:0,pt:h?.33:0,content:v,fluid:!!h,onClick:function(){function V(){return s("choose",{choice:v})}return V}(),selected:g,textAlign:"center",height:!!h&&2,width:!h&&C})}},88642:function(L,r,n){"use strict";r.__esModule=!0,r.AppearanceChanger=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=r.AppearanceChanger=function(){function y(S,k){var p=(0,a.useBackend)(k),l=p.act,c=p.data,f=c.change_race,u=c.species,i=c.specimen,s=c.change_gender,d=c.gender,h=c.has_gender,v=c.change_eye_color,g=c.change_skin_tone,C=c.change_skin_color,V=c.change_head_accessory_color,b=c.change_hair_color,B=c.change_secondary_hair_color,I=c.change_facial_hair_color,w=c.change_secondary_facial_hair_color,T=c.change_head_marking_color,A=c.change_body_marking_color,x=c.change_tail_marking_color,E=c.change_head_accessory,M=c.head_accessory_styles,j=c.head_accessory_style,P=c.change_hair,R=c.hair_styles,D=c.hair_style,F=c.change_hair_gradient,W=c.change_facial_hair,_=c.facial_hair_styles,H=c.facial_hair_style,z=c.change_head_markings,$=c.head_marking_styles,X=c.head_marking_style,J=c.change_body_markings,ce=c.body_marking_styles,re=c.body_marking_style,me=c.change_tail_markings,pe=c.tail_marking_styles,ye=c.tail_marking_style,Be=c.change_body_accessory,he=c.body_accessory_styles,oe=c.body_accessory_style,Z=c.change_alt_head,q=c.alt_head_styles,ue=c.alt_head_style,se=!1;return(v||g||C||V||b||B||I||w||T||A||x)&&(se=!0),(0,e.createComponentVNode)(2,o.Window,{width:800,height:450,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[!!f&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Species",children:u.map(function(ne){return(0,e.createComponentVNode)(2,t.Button,{content:ne.specimen,selected:ne.specimen===i,onClick:function(){function be(){return l("race",{race:ne.specimen})}return be}()},ne.specimen)})}),!!s&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Gender",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Male",selected:d==="male",onClick:function(){function ne(){return l("gender",{gender:"male"})}return ne}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Female",selected:d==="female",onClick:function(){function ne(){return l("gender",{gender:"female"})}return ne}()}),!h&&(0,e.createComponentVNode)(2,t.Button,{content:"Genderless",selected:d==="plural",onClick:function(){function ne(){return l("gender",{gender:"plural"})}return ne}()})]}),!!se&&(0,e.createComponentVNode)(2,N),!!E&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Head accessory",children:M.map(function(ne){return(0,e.createComponentVNode)(2,t.Button,{content:ne.headaccessorystyle,selected:ne.headaccessorystyle===j,onClick:function(){function be(){return l("head_accessory",{head_accessory:ne.headaccessorystyle})}return be}()},ne.headaccessorystyle)})}),!!P&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Hair",children:R.map(function(ne){return(0,e.createComponentVNode)(2,t.Button,{content:ne.hairstyle,selected:ne.hairstyle===D,onClick:function(){function be(){return l("hair",{hair:ne.hairstyle})}return be}()},ne.hairstyle)})}),!!F&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Hair Gradient",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Change Style",onClick:function(){function ne(){return l("hair_gradient")}return ne}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Change Offset",onClick:function(){function ne(){return l("hair_gradient_offset")}return ne}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Change Color",onClick:function(){function ne(){return l("hair_gradient_colour")}return ne}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Change Alpha",onClick:function(){function ne(){return l("hair_gradient_alpha")}return ne}()})]}),!!W&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Facial hair",children:_.map(function(ne){return(0,e.createComponentVNode)(2,t.Button,{content:ne.facialhairstyle,selected:ne.facialhairstyle===H,onClick:function(){function be(){return l("facial_hair",{facial_hair:ne.facialhairstyle})}return be}()},ne.facialhairstyle)})}),!!z&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Head markings",children:$.map(function(ne){return(0,e.createComponentVNode)(2,t.Button,{content:ne.headmarkingstyle,selected:ne.headmarkingstyle===X,onClick:function(){function be(){return l("head_marking",{head_marking:ne.headmarkingstyle})}return be}()},ne.headmarkingstyle)})}),!!J&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Body markings",children:ce.map(function(ne){return(0,e.createComponentVNode)(2,t.Button,{content:ne.bodymarkingstyle,selected:ne.bodymarkingstyle===re,onClick:function(){function be(){return l("body_marking",{body_marking:ne.bodymarkingstyle})}return be}()},ne.bodymarkingstyle)})}),!!me&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Tail markings",children:pe.map(function(ne){return(0,e.createComponentVNode)(2,t.Button,{content:ne.tailmarkingstyle,selected:ne.tailmarkingstyle===ye,onClick:function(){function be(){return l("tail_marking",{tail_marking:ne.tailmarkingstyle})}return be}()},ne.tailmarkingstyle)})}),!!Be&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Body accessory",children:he.map(function(ne){return(0,e.createComponentVNode)(2,t.Button,{content:ne.bodyaccessorystyle,selected:ne.bodyaccessorystyle===oe,onClick:function(){function be(){return l("body_accessory",{body_accessory:ne.bodyaccessorystyle})}return be}()},ne.bodyaccessorystyle)})}),!!Z&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Alternate head",children:q.map(function(ne){return(0,e.createComponentVNode)(2,t.Button,{content:ne.altheadstyle,selected:ne.altheadstyle===ue,onClick:function(){function be(){return l("alt_head",{alt_head:ne.altheadstyle})}return be}()},ne.altheadstyle)})})]})})})}return y}(),N=function(S,k){var p=(0,a.useBackend)(k),l=p.act,c=p.data,f=[{key:"change_eye_color",text:"Change eye color",action:"eye_color"},{key:"change_skin_tone",text:"Change skin tone",action:"skin_tone"},{key:"change_skin_color",text:"Change skin color",action:"skin_color"},{key:"change_head_accessory_color",text:"Change head accessory color",action:"head_accessory_color"},{key:"change_hair_color",text:"Change hair color",action:"hair_color"},{key:"change_secondary_hair_color",text:"Change secondary hair color",action:"secondary_hair_color"},{key:"change_facial_hair_color",text:"Change facial hair color",action:"facial_hair_color"},{key:"change_secondary_facial_hair_color",text:"Change secondary facial hair color",action:"secondary_facial_hair_color"},{key:"change_head_marking_color",text:"Change head marking color",action:"head_marking_color"},{key:"change_body_marking_color",text:"Change body marking color",action:"body_marking_color"},{key:"change_tail_marking_color",text:"Change tail marking color",action:"tail_marking_color"}];return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Colors",children:f.map(function(u){return!!c[u.key]&&(0,e.createComponentVNode)(2,t.Button,{content:u.text,onClick:function(){function i(){return l(u.action)}return i}()},u.key)})})}},51731:function(L,r,n){"use strict";r.__esModule=!0,r.AtmosAlertConsole=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=r.AtmosAlertConsole=function(){function N(y,S){var k=(0,a.useBackend)(S),p=k.act,l=k.data,c=l.priority||[],f=l.minor||[];return(0,e.createComponentVNode)(2,o.Window,{width:350,height:300,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Alarms",children:(0,e.createVNode)(1,"ul",null,[c.length===0&&(0,e.createVNode)(1,"li","color-good","No Priority Alerts",16),c.map(function(u){return(0,e.createVNode)(1,"li","color-bad",u,0,null,u)}),f.length===0&&(0,e.createVNode)(1,"li","color-good","No Minor Alerts",16),f.map(function(u){return(0,e.createVNode)(1,"li","color-average",u,0,null,u)})],0)})})})}return N}()},57467:function(L,r,n){"use strict";r.__esModule=!0,r.AtmosControl=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(5126),m=n(45493),N=function(c){if(c===0)return(0,e.createComponentVNode)(2,t.Box,{color:"green",children:"Good"});if(c===1)return(0,e.createComponentVNode)(2,t.Box,{color:"orange",bold:!0,children:"Warning"});if(c===2)return(0,e.createComponentVNode)(2,t.Box,{color:"red",bold:!0,children:"DANGER"})},y=function(c){if(c===0)return"green";if(c===1)return"orange";if(c===2)return"red"},S=r.AtmosControl=function(){function l(c,f){var u=(0,a.useBackend)(f),i=u.act,s=u.data,d=(0,a.useLocalState)(f,"tabIndex",0),h=d[0],v=d[1],g=function(){function C(V){switch(V){case 0:return(0,e.createComponentVNode)(2,k);case 1:return(0,e.createComponentVNode)(2,p);default:return"WE SHOULDN'T BE HERE!"}}return C}();return(0,e.createComponentVNode)(2,m.Window,{width:800,height:600,children:(0,e.createComponentVNode)(2,m.Window.Content,{scrollable:h===0,children:(0,e.createComponentVNode)(2,t.Box,{fillPositionedParent:!0,children:[(0,e.createComponentVNode)(2,t.Tabs,{children:[(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:h===0,onClick:function(){function C(){return v(0)}return C}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"table"})," Data View"]},"DataView"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:h===1,onClick:function(){function C(){return v(1)}return C}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"map-marked-alt"})," Map View"]},"MapView")]}),g(h)]})})})}return l}(),k=function(c,f){var u=(0,a.useBackend)(f),i=u.act,s=u.data,d=s.alarms;return(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Table,{m:"0.5rem",children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Name"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Status"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Access"})]}),d.map(function(h){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,o.TableCell,{children:h.name}),(0,e.createComponentVNode)(2,o.TableCell,{children:N(h.danger)}),(0,e.createComponentVNode)(2,o.TableCell,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"cog",content:"Access",onClick:function(){function v(){return i("open_alarm",{aref:h.ref})}return v}()})})]},h.name)})]})})},p=function(c,f){var u=(0,a.useBackend)(f),i=u.data,s=(0,a.useLocalState)(f,"zoom",1),d=s[0],h=s[1],v=i.alarms;return(0,e.createComponentVNode)(2,t.Box,{height:"526px",mb:"0.5rem",overflow:"hidden",children:(0,e.createComponentVNode)(2,t.NanoMap,{onZoom:function(){function g(C){return h(C)}return g}(),children:v.filter(function(g){return g.z===3}).map(function(g){return(0,e.createComponentVNode)(2,t.NanoMap.Marker,{x:g.x,y:g.y,zoom:d,icon:"circle",tooltip:g.name,color:y(g.danger)},g.ref)})})})}},41550:function(L,r,n){"use strict";r.__esModule=!0,r.AtmosFilter=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=r.AtmosFilter=function(){function N(y,S){var k=(0,a.useBackend)(S),p=k.act,l=k.data,c=l.on,f=l.pressure,u=l.max_pressure,i=l.filter_type,s=l.filter_type_list;return(0,e.createComponentVNode)(2,o.Window,{width:380,height:140,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power",children:(0,e.createComponentVNode)(2,t.Button,{icon:"power-off",content:c?"On":"Off",color:c?null:"red",selected:c,onClick:function(){function d(){return p("power")}return d}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Rate",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"fast-backward",textAlign:"center",disabled:f===0,width:2.2,onClick:function(){function d(){return p("min_pressure")}return d}()}),(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,unit:"kPa",width:6.1,lineHeight:1.5,step:10,minValue:0,maxValue:u,value:f,onDrag:function(){function d(h,v){return p("custom_pressure",{pressure:v})}return d}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",textAlign:"center",disabled:f===u,width:2.2,onClick:function(){function d(){return p("max_pressure")}return d}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Filter",children:s.map(function(d){return(0,e.createComponentVNode)(2,t.Button,{selected:d.gas_type===i,content:d.label,onClick:function(){function h(){return p("set_filter",{filter:d.gas_type})}return h}()},d.label)})})]})})})})}return N}()},70151:function(L,r,n){"use strict";r.__esModule=!0,r.AtmosMixer=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=r.AtmosMixer=function(){function y(S,k){var p=(0,a.useBackend)(k),l=p.act,c=p.data,f=c.on,u=c.pressure,i=c.max_pressure,s=c.node1_concentration,d=c.node2_concentration;return(0,e.createComponentVNode)(2,o.Window,{width:330,height:165,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power",children:(0,e.createComponentVNode)(2,t.Button,{icon:"power-off",content:f?"On":"Off",color:f?null:"red",selected:f,onClick:function(){function h(){return l("power")}return h}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Rate",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"fast-backward",textAlign:"center",disabled:u===0,width:2.2,onClick:function(){function h(){return l("min_pressure")}return h}()}),(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,unit:"kPa",width:6.1,lineHeight:1.5,step:10,minValue:0,maxValue:i,value:u,onDrag:function(){function h(v,g){return l("custom_pressure",{pressure:g})}return h}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",textAlign:"center",disabled:u===i,width:2.2,onClick:function(){function h(){return l("max_pressure")}return h}()})]}),(0,e.createComponentVNode)(2,N,{node_name:"Node 1",node_ref:s}),(0,e.createComponentVNode)(2,N,{node_name:"Node 2",node_ref:d})]})})})})}return y}(),N=function(S,k){var p=(0,a.useBackend)(k),l=p.act,c=p.data,f=S.node_name,u=S.node_ref;return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:f,children:[(0,e.createComponentVNode)(2,t.Button,{icon:"fast-backward",textAlign:"center",width:2.2,disabled:u===0,onClick:function(){function i(){return l("set_node",{node_name:f,concentration:(u-10)/100})}return i}()}),(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,unit:"%",width:6.1,lineHeight:1.5,stepPixelSize:10,minValue:0,maxValue:100,value:u,onChange:function(){function i(s,d){return l("set_node",{node_name:f,concentration:d/100})}return i}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",textAlign:"center",width:2.2,disabled:u===100,onClick:function(){function i(){return l("set_node",{node_name:f,concentration:(u+10)/100})}return i}()})]})}},54090:function(L,r,n){"use strict";r.__esModule=!0,r.AtmosPump=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=r.AtmosPump=function(){function N(y,S){var k=(0,a.useBackend)(S),p=k.act,l=k.data,c=l.on,f=l.rate,u=l.max_rate,i=l.gas_unit,s=l.step;return(0,e.createComponentVNode)(2,o.Window,{width:330,height:110,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power",children:(0,e.createComponentVNode)(2,t.Button,{icon:"power-off",content:c?"On":"Off",color:c?null:"red",selected:c,onClick:function(){function d(){return p("power")}return d}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Rate",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"fast-backward",textAlign:"center",disabled:f===0,width:2.2,onClick:function(){function d(){return p("min_rate")}return d}()}),(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,unit:i,width:6.1,lineHeight:1.5,step:s,minValue:0,maxValue:u,value:f,onDrag:function(){function d(h,v){return p("custom_rate",{rate:v})}return d}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",textAlign:"center",disabled:f===u,width:2.2,onClick:function(){function d(){return p("max_rate")}return d}()})]})]})})})})}return N}()},31335:function(L,r,n){"use strict";r.__esModule=!0,r.AtmosTankControl=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(36121),m=n(38424),N=n(45493),y=r.AtmosTankControl=function(){function S(k,p){var l=(0,a.useBackend)(p),c=l.act,f=l.data,u=f.sensors||{};return(0,e.createComponentVNode)(2,N.Window,{width:400,height:400,children:(0,e.createComponentVNode)(2,N.Window.Content,{scrollable:!0,children:[Object.keys(u).map(function(i){return(0,e.createComponentVNode)(2,t.Section,{title:i,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[Object.keys(u[i]).indexOf("pressure")>-1?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Pressure",children:[u[i].pressure," kpa"]}):"",Object.keys(u[i]).indexOf("temperature")>-1?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Temperature",children:[u[i].temperature," K"]}):"",["o2","n2","plasma","co2","n2o"].map(function(s){return Object.keys(u[i]).indexOf(s)>-1?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:(0,m.getGasLabel)(s),children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:(0,m.getGasColor)(s),value:u[i][s],minValue:0,maxValue:100,children:(0,o.toFixed)(u[i][s],2)+"%"})},(0,m.getGasLabel)(s)):""})]})},i)}),f.inlet&&Object.keys(f.inlet).length>0?(0,e.createComponentVNode)(2,t.Section,{title:"Inlet Control",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power",children:(0,e.createComponentVNode)(2,t.Button,{icon:(f.inlet.on,"power-off"),content:f.inlet.on?"On":"Off",color:f.inlet.on?null:"red",selected:f.inlet.on,onClick:function(){function i(){return c("toggle_active",{dev:"inlet"})}return i}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Rate",children:(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,unit:"L/s",width:6.1,lineHeight:1.5,step:1,minValue:0,maxValue:50,value:f.inlet.rate,onDrag:function(){function i(s,d){return c("set_pressure",{dev:"inlet",val:d})}return i}()})})]})}):"",f.outlet&&Object.keys(f.outlet).length>0?(0,e.createComponentVNode)(2,t.Section,{title:"Outlet Control",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power",children:(0,e.createComponentVNode)(2,t.Button,{icon:(f.outlet.on,"power-off"),content:f.outlet.on?"On":"Off",color:f.outlet.on?null:"red",selected:f.outlet.on,onClick:function(){function i(){return c("toggle_active",{dev:"outlet"})}return i}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Rate",children:(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,unit:"kPa",width:6.1,lineHeight:1.5,step:10,minValue:0,maxValue:5066,value:f.outlet.rate,onDrag:function(){function i(s,d){return c("set_pressure",{dev:"outlet",val:d})}return i}()})})]})}):""]})})}return S}()},85909:function(L,r,n){"use strict";r.__esModule=!0,r.Autolathe=void 0;var e=n(96524),a=n(74041),t=n(50640),o=n(17899),m=n(24674),N=n(45493),y=n(78234),S=function(l,c,f,u){return l.requirements===null?!0:!(l.requirements.metal*u>c||l.requirements.glass*u>f)},k=r.Autolathe=function(){function p(l,c){var f=(0,o.useBackend)(c),u=f.act,i=f.data,s=i.total_amount,d=i.max_amount,h=i.metal_amount,v=i.glass_amount,g=i.busyname,C=i.busyamt,V=i.showhacked,b=i.buildQueue,B=i.buildQueueLen,I=i.recipes,w=i.categories,T=(0,o.useSharedState)(c,"category",0),A=T[0],x=T[1];A===0&&(A="Tools");var E=h.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1,"),M=v.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1,"),j=s.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1,"),P=(0,o.useSharedState)(c,"search_text",""),R=P[0],D=P[1],F=(0,y.createSearch)(R,function(z){return z.name}),W="";B>0&&(W=b.map(function(z,$){return(0,e.createComponentVNode)(2,m.Box,{children:(0,e.createComponentVNode)(2,m.Button,{fluid:!0,icon:"times",color:"transparent",content:b[$][0],onClick:function(){function X(){return u("remove_from_queue",{remove_from_queue:b.indexOf(z)+1})}return X}()},z)},$)}));var _=(0,a.flow)([(0,t.filter)(function(z){return(z.category.indexOf(A)>-1||R)&&(i.showhacked||!z.hacked)}),R&&(0,t.filter)(F),(0,t.sortBy)(function(z){return z.name.toLowerCase()})])(I),H="Build";return R?H="Results for: '"+R+"':":A&&(H="Build ("+A+")"),(0,e.createComponentVNode)(2,N.Window,{width:750,height:525,children:(0,e.createComponentVNode)(2,N.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,m.Stack,{fill:!0,horizontal:!0,children:[(0,e.createComponentVNode)(2,m.Stack.Item,{width:"70%",children:(0,e.createComponentVNode)(2,m.Section,{fill:!0,scrollable:!0,title:H,buttons:(0,e.createComponentVNode)(2,m.Dropdown,{width:"150px",options:w,selected:A,onSelected:function(){function z($){return x($)}return z}()}),children:[(0,e.createComponentVNode)(2,m.Input,{fluid:!0,placeholder:"Search for...",onInput:function(){function z($,X){return D(X)}return z}(),mb:1}),_.map(function(z){return(0,e.createComponentVNode)(2,m.Stack.Item,{grow:!0,children:[(0,e.createVNode)(1,"img",null,null,1,{src:"data:image/jpeg;base64,"+z.image,style:{"vertical-align":"middle",width:"32px",margin:"0px","margin-left":"0px"}}),(0,e.createComponentVNode)(2,m.Button,{mr:1,icon:"hammer",selected:i.busyname===z.name&&i.busyamt===1,disabled:!S(z,i.metal_amount,i.glass_amount,1),onClick:function(){function $(){return u("make",{make:z.uid,multiplier:1})}return $}(),children:(0,y.toTitleCase)(z.name)}),z.max_multiplier>=10&&(0,e.createComponentVNode)(2,m.Button,{mr:1,icon:"hammer",selected:i.busyname===z.name&&i.busyamt===10,disabled:!S(z,i.metal_amount,i.glass_amount,10),onClick:function(){function $(){return u("make",{make:z.uid,multiplier:10})}return $}(),children:"10x"}),z.max_multiplier>=25&&(0,e.createComponentVNode)(2,m.Button,{mr:1,icon:"hammer",selected:i.busyname===z.name&&i.busyamt===25,disabled:!S(z,i.metal_amount,i.glass_amount,25),onClick:function(){function $(){return u("make",{make:z.uid,multiplier:25})}return $}(),children:"25x"}),z.max_multiplier>25&&(0,e.createComponentVNode)(2,m.Button,{mr:1,icon:"hammer",selected:i.busyname===z.name&&i.busyamt===z.max_multiplier,disabled:!S(z,i.metal_amount,i.glass_amount,z.max_multiplier),onClick:function(){function $(){return u("make",{make:z.uid,multiplier:z.max_multiplier})}return $}(),children:[z.max_multiplier,"x"]}),z.requirements&&Object.keys(z.requirements).map(function($){return(0,y.toTitleCase)($)+": "+z.requirements[$]}).join(", ")||(0,e.createComponentVNode)(2,m.Box,{children:"No resources required."})]},z.ref)})]})}),(0,e.createComponentVNode)(2,m.Stack.Item,{width:"30%",children:[(0,e.createComponentVNode)(2,m.Section,{title:"Materials",children:(0,e.createComponentVNode)(2,m.LabeledList,{children:[(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Metal",children:E}),(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Glass",children:M}),(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Total",children:j}),(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Storage",children:[i.fill_percent,"% Full"]})]})}),(0,e.createComponentVNode)(2,m.Section,{title:"Building",children:(0,e.createComponentVNode)(2,m.Box,{color:g?"green":"",children:g||"Nothing"})}),(0,e.createComponentVNode)(2,m.Section,{title:"Build Queue",height:23.7,children:[W,(0,e.createComponentVNode)(2,m.Button,{mt:.5,fluid:!0,icon:"times",content:"Clear All",color:"red",disabled:!i.buildQueueLen,onClick:function(){function z(){return u("clear_queue")}return z}()})]})]})]})})})}return p}()},81617:function(L,r,n){"use strict";r.__esModule=!0,r.BioChipPad=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=r.BioChipPad=function(){function N(y,S){var k=(0,a.useBackend)(S),p=k.act,l=k.data,c=l.implant,f=l.contains_case;return(0,e.createComponentVNode)(2,o.Window,{width:410,height:400,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Bio-chip Mini-Computer",children:[c&&f?(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{bold:!0,mb:2,children:[(0,e.createVNode)(1,"img",null,null,1,{src:"data:image/jpeg;base64,"+c.image,ml:0,mr:2,style:{"vertical-align":"middle",width:"32px"}}),c.name]}),(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Life",children:c.life}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Notes",children:c.notes}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Function",children:c.function})]})],4):f?(0,e.createComponentVNode)(2,t.Box,{children:"This bio-chip case has no implant!"}):(0,e.createComponentVNode)(2,t.Box,{children:"Please insert a bio-chip casing!"}),(0,e.createComponentVNode)(2,t.Button,{mt:2,content:"Eject Case",icon:"eject",disabled:!f,onClick:function(){function u(){return p("eject_case")}return u}()})]})})})}return N}()},26215:function(L,r,n){"use strict";r.__esModule=!0,r.Biogenerator=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=n(75201),N=r.Biogenerator=function(){function l(c,f){var u=(0,a.useBackend)(f),i=u.data,s=u.config,d=i.container,h=i.processing,v=s.title;return(0,e.createComponentVNode)(2,o.Window,{width:390,height:595,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,m.Operating,{operating:h,name:v}),(0,e.createComponentVNode)(2,S),(0,e.createComponentVNode)(2,k),d?(0,e.createComponentVNode)(2,p):(0,e.createComponentVNode)(2,y)]})})})}return l}(),y=function(c,f){return(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,grow:!0,textAlign:"center",align:"center",color:"silver",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"flask",size:5,mb:"10px"}),(0,e.createVNode)(1,"br"),"The biogenerator is missing a container."]})})})},S=function(c,f){var u=(0,a.useBackend)(f),i=u.act,s=u.data,d=s.biomass,h=s.container,v=s.container_curr_reagents,g=s.container_max_reagents;return(0,e.createComponentVNode)(2,t.Section,{title:"Storage",children:[(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{mr:"20px",color:"silver",children:"Biomass:"}),(0,e.createComponentVNode)(2,t.Stack.Item,{mr:"5px",children:d}),(0,e.createComponentVNode)(2,t.Icon,{name:"leaf",size:1.2,color:"#3d8c40"})]}),(0,e.createComponentVNode)(2,t.Stack,{height:"21px",mt:"8px",align:"center",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{mr:"10px",color:"silver",children:"Container:"}),h?(0,e.createComponentVNode)(2,t.ProgressBar,{value:v,maxValue:g,children:(0,e.createComponentVNode)(2,t.Box,{textAlign:"center",children:v+" / "+g+" units"})}):(0,e.createComponentVNode)(2,t.Stack.Item,{children:"None"})]})]})},k=function(c,f){var u=(0,a.useBackend)(f),i=u.act,s=u.data,d=s.has_plants,h=s.container;return(0,e.createComponentVNode)(2,t.Section,{title:"Controls",children:(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"30%",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"power-off",disabled:!d,tooltip:d?"":"There are no plants in the biogenerator.",tooltipPosition:"top-start",content:"Activate",onClick:function(){function v(){return i("activate")}return v}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:"40%",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"flask",disabled:!h,tooltip:h?"":"The biogenerator does not have a container.",tooltipPosition:"top",content:"Detach Container",onClick:function(){function v(){return i("detach_container")}return v}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:"30%",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"eject",disabled:!d,tooltip:d?"":"There are no stored plants to eject.",tooltipPosition:"top-end",content:"Eject Plants",onClick:function(){function v(){return i("eject_plants")}return v}()})})]})})},p=function(c,f){var u=(0,a.useBackend)(f),i=u.act,s=u.data,d=s.biomass,h=s.product_list,v=(0,a.useSharedState)(f,"vendAmount",1),g=v[0],C=v[1],V=Object.entries(h).map(function(b,B){var I=Object.entries(b[1]).map(function(w){return w[1]});return(0,e.createComponentVNode)(2,t.Collapsible,{title:b[0],open:!0,children:I.map(function(w){return(0,e.createComponentVNode)(2,t.Stack,{py:"2px",className:"candystripe",align:"center",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"50%",ml:"2px",children:w.name}),(0,e.createComponentVNode)(2,t.Stack.Item,{textAlign:"right",width:"20%",children:[w.cost*g,(0,e.createComponentVNode)(2,t.Icon,{ml:"5px",name:"leaf",size:1.2,color:"#3d8c40"})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{textAlign:"right",width:"40%",children:(0,e.createComponentVNode)(2,t.Button,{content:"Vend",disabled:di&&"bad"||"good";return(0,e.createComponentVNode)(2,o.Window,{width:650,height:450,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[!!C&&(0,e.createComponentVNode)(2,t.NoticeBox,{danger:1,children:"Safety Protocols disabled"}),i>V&&(0,e.createComponentVNode)(2,t.NoticeBox,{danger:1,children:"High Power, Instability likely"}),(0,e.createComponentVNode)(2,t.Collapsible,{title:"Input Management",children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Input",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Input Level",children:i}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Desired Level",children:(0,e.createComponentVNode)(2,t.Stack,{inline:!0,width:"100%",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"fast-backward",disabled:u===0,tooltip:"Set to 0",onClick:function(){function I(){return l("set",{set_level:0})}return I}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"step-backward",tooltip:"Decrease to actual input level",disabled:u===0,onClick:function(){function I(){return l("set",{set_level:i})}return I}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"backward",disabled:u===0,tooltip:"Decrease one step",onClick:function(){function I(){return l("decrease")}return I}()})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:1,mx:1,children:(0,e.createComponentVNode)(2,t.Slider,{value:u,fillValue:i,minValue:0,color:B,maxValue:g,stepPixelSize:20,step:1,onChange:function(){function I(w,T){return l("set",{set_level:T})}return I}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"forward",disabled:u===g,tooltip:"Increase one step",tooltipPosition:"left",onClick:function(){function I(){return l("increase")}return I}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",disabled:u===g,tooltip:"Set to max",tooltipPosition:"left",onClick:function(){function I(){return l("set",{set_level:g})}return I}()})]})]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Current Power Use",children:(0,m.formatPower)(h)}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power for next level",children:(0,m.formatPower)(b)}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Surplus Power",children:(0,m.formatPower)(v)})]})})}),(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Output",children:(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Available Points",children:s}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Total Points",children:d})]})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{align:"end",children:(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:f.map(function(I){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:I.name,children:(0,e.createComponentVNode)(2,t.Button,{disabled:I.price>=s,onClick:function(){function w(){return l("vend",{target:I.key})}return w}(),content:I.price})},I.key)})})})})]})})]})})})}return y}()},71736:function(L,r,n){"use strict";r.__esModule=!0,r.BodyScanner=void 0;var e=n(96524),a=n(36121),t=n(78234),o=n(17899),m=n(24674),N=n(45493),y=[["good","Alive"],["average","Critical"],["bad","DEAD"]],S=[["hasVirus","bad","Viral pathogen detected in blood stream."],["blind","average","Cataracts detected."],["colourblind","average","Photoreceptor abnormalities detected."],["nearsighted","average","Retinal misalignment detected."]],k=[["Respiratory","oxyLoss"],["Brain","brainLoss"],["Toxin","toxLoss"],["Radiation","radLoss"],["Brute","bruteLoss"],["Cellular","cloneLoss"],["Burn","fireLoss"],["Inebriation","drunkenness"]],p={average:[.25,.5],bad:[.5,1/0]},l=function(B,I){for(var w=[],T=0;T0?B.filter(function(I){return!!I}).reduce(function(I,w){return(0,e.createFragment)([I,(0,e.createComponentVNode)(2,m.Box,{children:w},w)],0)},null):null},f=function(B){if(B>100){if(B<300)return"mild infection";if(B<400)return"mild infection+";if(B<500)return"mild infection++";if(B<700)return"acute infection";if(B<800)return"acute infection+";if(B<900)return"acute infection++";if(B>=900)return"septic"}return""},u=r.BodyScanner=function(){function b(B,I){var w=(0,o.useBackend)(I),T=w.data,A=T.occupied,x=T.occupant,E=x===void 0?{}:x,M=A?(0,e.createComponentVNode)(2,i,{occupant:E}):(0,e.createComponentVNode)(2,V);return(0,e.createComponentVNode)(2,N.Window,{width:700,height:600,title:"Body Scanner",children:(0,e.createComponentVNode)(2,N.Window.Content,{scrollable:!0,children:M})})}return b}(),i=function(B){var I=B.occupant;return(0,e.createComponentVNode)(2,m.Box,{children:[(0,e.createComponentVNode)(2,s,{occupant:I}),(0,e.createComponentVNode)(2,d,{occupant:I}),(0,e.createComponentVNode)(2,h,{occupant:I}),(0,e.createComponentVNode)(2,g,{organs:I.extOrgan}),(0,e.createComponentVNode)(2,C,{organs:I.intOrgan})]})},s=function(B,I){var w=(0,o.useBackend)(I),T=w.act,A=w.data,x=A.occupant;return(0,e.createComponentVNode)(2,m.Section,{title:"Occupant",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,m.Button,{icon:"print",onClick:function(){function E(){return T("print_p")}return E}(),children:"Print Report"}),(0,e.createComponentVNode)(2,m.Button,{icon:"user-slash",onClick:function(){function E(){return T("ejectify")}return E}(),children:"Eject"})],4),children:(0,e.createComponentVNode)(2,m.LabeledList,{children:[(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Name",children:x.name}),(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Health",children:(0,e.createComponentVNode)(2,m.ProgressBar,{min:"0",max:x.maxHealth,value:x.health/x.maxHealth,ranges:{good:[.5,1/0],average:[0,.5],bad:[-1/0,0]}})}),(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Status",color:y[x.stat][0],children:y[x.stat][1]}),(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Temperature",children:[(0,e.createComponentVNode)(2,m.AnimatedNumber,{value:(0,a.round)(x.bodyTempC)}),"\xB0C,\xA0",(0,e.createComponentVNode)(2,m.AnimatedNumber,{value:(0,a.round)(x.bodyTempF)}),"\xB0F"]}),(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Implants",children:x.implant_len?(0,e.createComponentVNode)(2,m.Box,{children:x.implant.map(function(E){return E.name}).join(", ")}):(0,e.createComponentVNode)(2,m.Box,{color:"label",children:"None"})})]})})},d=function(B){var I=B.occupant;return I.hasBorer||I.blind||I.colourblind||I.nearsighted||I.hasVirus?(0,e.createComponentVNode)(2,m.Section,{title:"Abnormalities",children:S.map(function(w,T){if(I[w[0]])return(0,e.createComponentVNode)(2,m.Box,{color:w[1],bold:w[1]==="bad",children:w[2]},w[2])})}):(0,e.createComponentVNode)(2,m.Section,{title:"Abnormalities",children:(0,e.createComponentVNode)(2,m.Box,{color:"label",children:"No abnormalities found."})})},h=function(B){var I=B.occupant;return(0,e.createComponentVNode)(2,m.Section,{title:"Damage",children:(0,e.createComponentVNode)(2,m.Table,{children:l(k,function(w,T,A){return(0,e.createFragment)([(0,e.createComponentVNode)(2,m.Table.Row,{color:"label",children:[(0,e.createComponentVNode)(2,m.Table.Cell,{children:[w[0],":"]}),(0,e.createComponentVNode)(2,m.Table.Cell,{children:!!T&&T[0]+":"})]}),(0,e.createComponentVNode)(2,m.Table.Row,{children:[(0,e.createComponentVNode)(2,m.Table.Cell,{children:(0,e.createComponentVNode)(2,v,{value:I[w[1]],marginBottom:A100)&&"average"||!!I.status.robotic&&"label",width:"33%",children:(0,t.capitalize)(I.name)}),(0,e.createComponentVNode)(2,m.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,m.ProgressBar,{m:-.5,min:"0",max:I.maxHealth,mt:w>0&&"0.5rem",value:I.totalLoss/I.maxHealth,ranges:p,children:(0,e.createComponentVNode)(2,m.Stack,{children:[(0,e.createComponentVNode)(2,m.Tooltip,{content:"Total damage",children:(0,e.createComponentVNode)(2,m.Stack.Item,{children:[(0,e.createComponentVNode)(2,m.Icon,{name:"heartbeat",mr:.5}),(0,a.round)(I.totalLoss)]})}),!!I.bruteLoss&&(0,e.createComponentVNode)(2,m.Tooltip,{content:"Brute damage",children:(0,e.createComponentVNode)(2,m.Stack.Item,{grow:!0,children:[(0,e.createComponentVNode)(2,m.Icon,{name:"bone",mr:.5}),(0,a.round)(I.bruteLoss)]})}),!!I.fireLoss&&(0,e.createComponentVNode)(2,m.Tooltip,{content:"Burn damage",children:(0,e.createComponentVNode)(2,m.Stack.Item,{children:[(0,e.createComponentVNode)(2,m.Icon,{name:"fire",mr:.5}),(0,a.round)(I.fireLoss)]})})]})})}),(0,e.createComponentVNode)(2,m.Table.Cell,{textAlign:"right",verticalAlign:"top",width:"33%",pt:w>0&&"calc(0.5rem + 2px)",children:[(0,e.createComponentVNode)(2,m.Box,{color:"average",inline:!0,children:c([!!I.internalBleeding&&"Internal bleeding",!!I.burnWound&&"Critical tissue burns",!!I.lungRuptured&&"Ruptured lung",!!I.status.broken&&I.status.broken,f(I.germ_level),!!I.open&&"Open incision"])}),(0,e.createComponentVNode)(2,m.Box,{inline:!0,children:[c([!!I.status.splinted&&(0,e.createComponentVNode)(2,m.Box,{color:"good",children:"Splinted"}),!!I.status.robotic&&(0,e.createComponentVNode)(2,m.Box,{color:"label",children:"Robotic"}),!!I.status.dead&&(0,e.createComponentVNode)(2,m.Box,{color:"bad",bold:!0,children:"DEAD"})]),c(I.shrapnel.map(function(T){return T.known?T.name:"Unknown object"}))]})]})]},w)})]})})},C=function(B){return B.organs.length===0?(0,e.createComponentVNode)(2,m.Section,{title:"Internal Organs",children:(0,e.createComponentVNode)(2,m.Box,{color:"label",children:"N/A"})}):(0,e.createComponentVNode)(2,m.Section,{title:"Internal Organs",children:(0,e.createComponentVNode)(2,m.Table,{children:[(0,e.createComponentVNode)(2,m.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,m.Table.Cell,{children:"Name"}),(0,e.createComponentVNode)(2,m.Table.Cell,{textAlign:"center",children:"Damage"}),(0,e.createComponentVNode)(2,m.Table.Cell,{textAlign:"right",children:"Injuries"})]}),B.organs.map(function(I,w){return(0,e.createComponentVNode)(2,m.Table.Row,{children:[(0,e.createComponentVNode)(2,m.Table.Cell,{color:!!I.dead&&"bad"||I.germ_level>100&&"average"||I.robotic>0&&"label",width:"33%",children:(0,t.capitalize)(I.name)}),(0,e.createComponentVNode)(2,m.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,m.ProgressBar,{min:"0",max:I.maxHealth,value:I.damage/I.maxHealth,mt:w>0&&"0.5rem",ranges:p,children:(0,a.round)(I.damage)})}),(0,e.createComponentVNode)(2,m.Table.Cell,{textAlign:"right",verticalAlign:"top",width:"33%",pt:w>0&&"calc(0.5rem + 2px)",children:[(0,e.createComponentVNode)(2,m.Box,{color:"average",inline:!0,children:c([f(I.germ_level)])}),(0,e.createComponentVNode)(2,m.Box,{inline:!0,children:c([I.robotic===1&&(0,e.createComponentVNode)(2,m.Box,{color:"label",children:"Robotic"}),I.robotic===2&&(0,e.createComponentVNode)(2,m.Box,{color:"label",children:"Assisted"}),!!I.dead&&(0,e.createComponentVNode)(2,m.Box,{color:"bad",bold:!0,children:"DEAD"})])})]})]},w)})]})})},V=function(){return(0,e.createComponentVNode)(2,m.Section,{fill:!0,children:(0,e.createComponentVNode)(2,m.Stack,{fill:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,m.Stack.Item,{grow:!0,align:"center",color:"label",children:[(0,e.createComponentVNode)(2,m.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,e.createVNode)(1,"br"),"No occupant detected."]})})})}},99449:function(L,r,n){"use strict";r.__esModule=!0,r.BookBinder=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=n(99665),N=n(18963),y=r.BookBinder=function(){function S(k,p){var l=(0,a.useBackend)(p),c=l.act,f=l.data,u=f.selectedbook,i=f.book_categories,s=[];return i.map(function(d){return s[d.description]=d.category_id}),(0,e.createComponentVNode)(2,o.Window,{width:600,height:400,children:[(0,e.createComponentVNode)(2,m.ComplexModal),(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Book Binder",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"print",width:"auto",content:"Print Book",onClick:function(){function d(){return c("print_book")}return d}()}),children:[(0,e.createComponentVNode)(2,t.Box,{ml:10,fontSize:"1.2rem",bold:!0,children:[(0,e.createComponentVNode)(2,t.Icon,{name:"search-plus",verticalAlign:"middle",size:3,mr:"1rem"}),"Book Binder"]}),(0,e.createComponentVNode)(2,t.Stack,{children:(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Title",children:(0,e.createComponentVNode)(2,t.Button,{textAlign:"left",icon:"pen",width:"auto",content:u.title,onClick:function(){function d(){return(0,m.modalOpen)(p,"edit_selected_title")}return d}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Author",children:(0,e.createComponentVNode)(2,t.Button,{textAlign:"left",icon:"pen",width:"auto",content:u.author,onClick:function(){function d(){return(0,m.modalOpen)(p,"edit_selected_author")}return d}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Select Categories",children:(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Dropdown,{width:"190px",options:i.map(function(d){return d.description}),onSelected:function(){function d(h){return c("toggle_binder_category",{category_id:s[h]})}return d}()})})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Summary",children:(0,e.createComponentVNode)(2,t.Button,{icon:"pen",width:"auto",content:"Edit Summary",onClick:function(){function d(){return(0,m.modalOpen)(p,"edit_selected_summary")}return d}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{children:u.summary})]}),(0,e.createVNode)(1,"br"),i.filter(function(d){return u.categories.includes(d.category_id)}).map(function(d){return(0,e.createComponentVNode)(2,t.Button,{content:d.description,selected:!0,icon:"unlink",onClick:function(){function h(){return c("toggle_binder_category",{category_id:d.category_id})}return h}()},d.category_id)})]})})]})})})]})}return S}()},43506:function(L,r,n){"use strict";r.__esModule=!0,r.BotClean=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=n(69521),N=r.BotClean=function(){function y(S,k){var p=(0,a.useBackend)(k),l=p.act,c=p.data,f=c.locked,u=c.noaccess,i=c.maintpanel,s=c.on,d=c.autopatrol,h=c.canhack,v=c.emagged,g=c.remote_disabled,C=c.painame,V=c.cleanblood,b=c.area;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:400,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,m.BotStatus),(0,e.createComponentVNode)(2,t.Section,{title:"Cleaning Settings",children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:V,content:"Clean Blood",disabled:u,onClick:function(){function B(){return l("blood")}return B}()})}),(0,e.createComponentVNode)(2,t.Section,{title:"Misc Settings",children:[(0,e.createComponentVNode)(2,t.Button,{fluid:!0,content:b?"Reset Area Selection":"Restrict to Current Area",onClick:function(){function B(){return l("area")}return B}()}),b!==null&&(0,e.createComponentVNode)(2,t.LabeledList,{mb:1,children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Locked Area",children:b})})]}),C&&(0,e.createComponentVNode)(2,t.Section,{title:"pAI",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"eject",content:C,disabled:u,onClick:function(){function B(){return l("ejectpai")}return B}()})})]})})}return y}()},89593:function(L,r,n){"use strict";r.__esModule=!0,r.BotFloor=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=n(69521),N=r.BotFloor=function(){function y(S,k){var p=(0,a.useBackend)(k),l=p.act,c=p.data,f=c.noaccess,u=c.painame,i=c.hullplating,s=c.replace,d=c.eat,h=c.make,v=c.fixfloor,g=c.nag_empty,C=c.magnet,V=c.tiles_amount;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:510,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,m.BotStatus),(0,e.createComponentVNode)(2,t.Section,{title:"Floor Settings",children:[(0,e.createComponentVNode)(2,t.Box,{mb:"5px",children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Tiles Left",children:V})}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:i,content:"Add tiles to new hull plating",tooltip:"Fixing a plating requires the removal of floor tile. This will place it back after repairing. Same goes for hull breaches",disabled:f,onClick:function(){function b(){return l("autotile")}return b}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:s,content:"Add floor tiles on exposed hull plating",tooltip:"Example: It will add tiles to maintenance",disabled:f,onClick:function(){function b(){return l("replacetiles")}return b}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:v,content:"Repair damaged tiles and platings",disabled:f,onClick:function(){function b(){return l("fixfloors")}return b}()})]}),(0,e.createComponentVNode)(2,t.Section,{title:"Miscellaneous",children:[(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:d,content:"Finds tiles",disabled:f,onClick:function(){function b(){return l("eattiles")}return b}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:h,content:"Make pieces of metal into tiles when empty",disabled:f,onClick:function(){function b(){return l("maketiles")}return b}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:g,content:"Transmit notice when empty",disabled:f,onClick:function(){function b(){return l("nagonempty")}return b}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:C,content:"Traction Magnets",disabled:f,onClick:function(){function b(){return l("anchored")}return b}()})]}),u&&(0,e.createComponentVNode)(2,t.Section,{title:"pAI",children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,icon:"eject",content:u,disabled:f,onClick:function(){function b(){return l("ejectpai")}return b}()})})]})})}return y}()},89513:function(L,r,n){"use strict";r.__esModule=!0,r.BotHonk=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=n(69521),N=r.BotHonk=function(){function y(S,k){var p=(0,a.useBackend)(k),l=p.act,c=p.data;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:220,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,m.BotStatus)})})}return y}()},19297:function(L,r,n){"use strict";r.__esModule=!0,r.BotMed=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=n(69521),N=r.BotMed=function(){function y(S,k){var p=(0,a.useBackend)(k),l=p.act,c=p.data,f=c.locked,u=c.noaccess,i=c.maintpanel,s=c.on,d=c.autopatrol,h=c.canhack,v=c.emagged,g=c.remote_disabled,C=c.painame,V=c.shut_up,b=c.declare_crit,B=c.stationary_mode,I=c.heal_threshold,w=c.injection_amount,T=c.use_beaker,A=c.treat_virus,x=c.reagent_glass;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:500,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,m.BotStatus),(0,e.createComponentVNode)(2,t.Section,{title:"Communication Settings",children:[(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,content:"Speaker",checked:!V,disabled:u,onClick:function(){function E(){return l("toggle_speaker")}return E}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,content:"Critical Patient Alerts",checked:b,disabled:u,onClick:function(){function E(){return l("toggle_critical_alerts")}return E}()})]}),(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Treatment Settings",children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Healing Threshold",children:(0,e.createComponentVNode)(2,t.Slider,{value:I.value,minValue:I.min,maxValue:I.max,step:5,disabled:u,onChange:function(){function E(M,j){return l("set_heal_threshold",{target:j})}return E}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Injection Level",children:(0,e.createComponentVNode)(2,t.Slider,{value:w.value,minValue:w.min,maxValue:w.max,step:5,format:function(){function E(M){return M+"u"}return E}(),disabled:u,onChange:function(){function E(M,j){return l("set_injection_amount",{target:j})}return E}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Reagent Source",children:(0,e.createComponentVNode)(2,t.Button,{content:T?"Beaker":"Internal Synthesizer",icon:T?"flask":"cogs",disabled:u,onClick:function(){function E(){return l("toggle_use_beaker")}return E}()})}),x&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Beaker",children:(0,e.createComponentVNode)(2,t.Stack,{inline:!0,width:"100%",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:1,children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:x.amount,minValue:0,maxValue:x.max_amount,children:[x.amount," / ",x.max_amount]})}),(0,e.createComponentVNode)(2,t.Stack.Item,{ml:1,children:(0,e.createComponentVNode)(2,t.Button,{content:"Eject",disabled:u,onClick:function(){function E(){return l("eject_reagent_glass")}return E}()})})]})})]}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{mt:1,fluid:!0,content:"Treat Viral Infections",checked:A,disabled:u,onClick:function(){function E(){return l("toggle_treat_viral")}return E}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,content:"Stationary Mode",checked:B,disabled:u,onClick:function(){function E(){return l("toggle_stationary_mode")}return E}()})]}),C&&(0,e.createComponentVNode)(2,t.Section,{title:"pAI",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"eject",content:C,disabled:u,onClick:function(){function E(){return l("ejectpai")}return E}()})})]})})})}return y}()},4249:function(L,r,n){"use strict";r.__esModule=!0,r.BotSecurity=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=n(69521),N=r.BotSecurity=function(){function y(S,k){var p=(0,a.useBackend)(k),l=p.act,c=p.data,f=c.noaccess,u=c.painame,i=c.check_id,s=c.check_weapons,d=c.check_warrant,h=c.arrest_mode,v=c.arrest_declare;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:445,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,m.BotStatus),(0,e.createComponentVNode)(2,t.Section,{title:"Who To Arrest",children:[(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:i,content:"Unidentifiable Persons",disabled:f,onClick:function(){function g(){return l("authid")}return g}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:s,content:"Unauthorized Weapons",disabled:f,onClick:function(){function g(){return l("authweapon")}return g}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:d,content:"Wanted Criminals",disabled:f,onClick:function(){function g(){return l("authwarrant")}return g}()})]}),(0,e.createComponentVNode)(2,t.Section,{title:"Arrest Procedure",children:[(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:h,content:"Detain Targets Indefinitely",disabled:f,onClick:function(){function g(){return l("arrtype")}return g}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:v,content:"Announce Arrests On Radio",disabled:f,onClick:function(){function g(){return l("arrdeclare")}return g}()})]}),u&&(0,e.createComponentVNode)(2,t.Section,{title:"pAI",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"eject",content:u,disabled:f,onClick:function(){function g(){return l("ejectpai")}return g}()})})]})})}return y}()},27267:function(L,r,n){"use strict";r.__esModule=!0,r.BrigCells=void 0;var e=n(96524),a=n(45493),t=n(24674),o=n(17899),m=function(k,p){var l=k.cell,c=(0,o.useBackend)(p),f=c.act,u=l.cell_id,i=l.occupant,s=l.crimes,d=l.brigged_by,h=l.time_left_seconds,v=l.time_set_seconds,g=l.ref,C="";h>0&&(C+=" BrigCells__listRow--active");var V=function(){f("release",{ref:g})};return(0,e.createComponentVNode)(2,t.Table.Row,{className:C,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:u}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:i}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:s}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:d}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.TimeDisplay,{totalSeconds:v})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.TimeDisplay,{totalSeconds:h})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{type:"button",onClick:V,children:"Release"})})]})},N=function(k){var p=k.cells;return(0,e.createComponentVNode)(2,t.Table,{className:"BrigCells__list",children:[(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{header:!0,children:"Cell"}),(0,e.createComponentVNode)(2,t.Table.Cell,{header:!0,children:"Occupant"}),(0,e.createComponentVNode)(2,t.Table.Cell,{header:!0,children:"Crimes"}),(0,e.createComponentVNode)(2,t.Table.Cell,{header:!0,children:"Brigged By"}),(0,e.createComponentVNode)(2,t.Table.Cell,{header:!0,children:"Time Brigged For"}),(0,e.createComponentVNode)(2,t.Table.Cell,{header:!0,children:"Time Left"}),(0,e.createComponentVNode)(2,t.Table.Cell,{header:!0,children:"Release"})]}),p.map(function(l){return(0,e.createComponentVNode)(2,m,{cell:l},l.ref)})]})},y=r.BrigCells=function(){function S(k,p){var l=(0,o.useBackend)(p),c=l.act,f=l.data,u=f.cells;return(0,e.createComponentVNode)(2,a.Window,{theme:"security",width:800,height:400,children:(0,e.createComponentVNode)(2,a.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,N,{cells:u})})})})})}return S}()},26623:function(L,r,n){"use strict";r.__esModule=!0,r.BrigTimer=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=r.BrigTimer=function(){function N(y,S){var k=(0,a.useBackend)(S),p=k.act,l=k.data;l.nameText=l.occupant,l.timing&&(l.prisoner_hasrec?l.nameText=(0,e.createComponentVNode)(2,t.Box,{color:"green",children:l.occupant}):l.nameText=(0,e.createComponentVNode)(2,t.Box,{color:"red",children:l.occupant}));var c="pencil-alt";l.prisoner_name&&(l.prisoner_hasrec||(c="exclamation-triangle"));var f=[],u=0;for(u=0;uf?this.substring(0,f)+"...":this};var k=function(u,i){var s,d;if(!i)return[];var h=u.findIndex(function(v){return v.name===i.name});return[(s=u[h-1])==null?void 0:s.name,(d=u[h+1])==null?void 0:d.name]},p=function(u,i){i===void 0&&(i="");var s=(0,m.createSearch)(i,function(d){return d.name});return(0,t.flow)([(0,a.filter)(function(d){return d==null?void 0:d.name}),i&&(0,a.filter)(s),(0,a.sortBy)(function(d){return d.name})])(u)},l=r.CameraConsole=function(){function f(u,i){var s=(0,N.useBackend)(i),d=s.act,h=s.data,v=s.config,g=h.mapRef,C=h.activeCamera,V=p(h.cameras),b=k(V,C),B=b[0],I=b[1];return(0,e.createComponentVNode)(2,S.Window,{width:870,height:708,children:[(0,e.createVNode)(1,"div","CameraConsole__left",(0,e.createComponentVNode)(2,S.Window.Content,{children:(0,e.createComponentVNode)(2,y.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,c)})}),2),(0,e.createVNode)(1,"div","CameraConsole__right",[(0,e.createVNode)(1,"div","CameraConsole__toolbar",[(0,e.createVNode)(1,"b",null,"Camera: ",16),C&&C.name||"\u2014"],0),(0,e.createVNode)(1,"div","CameraConsole__toolbarRight",[(0,e.createComponentVNode)(2,y.Button,{icon:"chevron-left",disabled:!B,onClick:function(){function w(){return d("switch_camera",{name:B})}return w}()}),(0,e.createComponentVNode)(2,y.Button,{icon:"chevron-right",disabled:!I,onClick:function(){function w(){return d("switch_camera",{name:I})}return w}()})],4),(0,e.createComponentVNode)(2,y.ByondUi,{className:"CameraConsole__map",params:{id:g,type:"map"}})],4)]})}return f}(),c=r.CameraConsoleContent=function(){function f(u,i){var s=(0,N.useBackend)(i),d=s.act,h=s.data,v=(0,N.useLocalState)(i,"searchText",""),g=v[0],C=v[1],V=h.activeCamera,b=p(h.cameras,g);return(0,e.createComponentVNode)(2,y.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,y.Stack.Item,{children:(0,e.createComponentVNode)(2,y.Input,{fluid:!0,placeholder:"Search for a camera",onInput:function(){function B(I,w){return C(w)}return B}()})}),(0,e.createComponentVNode)(2,y.Stack.Item,{grow:!0,m:0,children:(0,e.createComponentVNode)(2,y.Section,{fill:!0,scrollable:!0,children:b.map(function(B){return(0,e.createVNode)(1,"div",(0,o.classes)(["Button","Button--fluid","Button--color--transparent",V&&B.name===V.name&&"Button--selected"]),B.name.trimLongStr(23),0,{title:B.name,onClick:function(){function I(){return d("switch_camera",{name:B.name})}return I}()},B.name)})})})]})}return f}()},9300:function(L,r,n){"use strict";r.__esModule=!0,r.CameraConsoleOldContent=r.CameraConsoleMapContent=r.CameraConsole220=void 0;var e=n(96524),a=n(50640),t=n(74041),o=n(28234),m=n(78234),N=n(17899),y=n(24674),S=n(45493),k=function(i,s){var d,h;if(!s)return[];var v=i.findIndex(function(g){return g.name===s.name});return[(d=i[v-1])==null?void 0:d.name,(h=i[v+1])==null?void 0:h.name]},p=function(i,s){s===void 0&&(s="");var d=(0,m.createSearch)(s,function(h){return h.name});return(0,t.flow)([(0,a.filter)(function(h){return h==null?void 0:h.name}),s&&(0,a.filter)(d),(0,a.sortBy)(function(h){return h.name})])(i)},l=r.CameraConsole220=function(){function u(i,s){var d=(0,N.useLocalState)(s,"tabIndex",0),h=d[0],v=d[1],g=function(){function C(V){switch(V){case 0:return(0,e.createComponentVNode)(2,c);case 1:return(0,e.createComponentVNode)(2,f);default:return"WE SHOULDN'T BE HERE!"}}return C}();return(0,e.createComponentVNode)(2,S.Window,{width:1170,height:755,children:(0,e.createComponentVNode)(2,S.Window.Content,{children:(0,e.createComponentVNode)(2,y.Stack,{children:(0,e.createComponentVNode)(2,y.Box,{fillPositionedParent:!0,children:[(0,e.createComponentVNode)(2,y.Stack.Item,{width:h===1?"222px":"475px",textAlign:"center",children:(0,e.createComponentVNode)(2,y.Tabs,{fluid:!0,ml:h===1?1:0,mt:h===1?1:0,children:[(0,e.createComponentVNode)(2,y.Tabs.Tab,{selected:h===0,onClick:function(){function C(){return v(0)}return C}(),children:[(0,e.createComponentVNode)(2,y.Icon,{name:"map-marked-alt"})," \u041A\u0430\u0440\u0442\u0430"]},"Map"),(0,e.createComponentVNode)(2,y.Tabs.Tab,{selected:h===1,onClick:function(){function C(){return v(1)}return C}(),children:[(0,e.createComponentVNode)(2,y.Icon,{name:"table"})," \u0421\u043F\u0438\u0441\u043E\u043A"]},"List")]})}),g(h)]})})})})}return u}(),c=r.CameraConsoleMapContent=function(){function u(i,s){var d=(0,N.useBackend)(s),h=d.act,v=d.data,g=d.config,C=p(v.cameras),V=(0,N.useLocalState)(s,"zoom",1),b=V[0],B=V[1],I=v.mapRef,w=v.activeCamera,T=v.stationLevel,A=k(C,w),x=A[0],E=A[1];return(0,e.createComponentVNode)(2,y.Stack,{fill:!0,vertical:!0,style:{display:"flex"},children:[(0,e.createComponentVNode)(2,y.Stack.Item,{height:"100%",style:{display:"flex",flex:"0 0 475px"},children:(0,e.createComponentVNode)(2,y.NanoMap,{onZoom:function(){function M(j){return B(j)}return M}(),children:C.filter(function(M){return M.z===T}).map(function(M){return(0,e.createComponentVNode)(2,y.NanoMap.NanoButton,{activeCamera:w,x:M.x,y:M.y,context:s,zoom:b,icon:"circle",tooltip:M.name,name:M.name,color:"blue",status:M.status},M.ref)})})}),(0,e.createComponentVNode)(2,y.Stack.Item,{height:"100%",resizable:!0,className:"CameraConsole__right_map",children:[(0,e.createVNode)(1,"div","CameraConsole__header",[(0,e.createVNode)(1,"div","CameraConsole__toolbar",[(0,e.createVNode)(1,"b",null,"\u041A\u0430\u043C\u0435\u0440\u0430: ",16),w&&w.name||"\u2014"],0),(0,e.createVNode)(1,"div","CameraConsole__toolbarRight",[(0,e.createComponentVNode)(2,y.Button,{icon:"chevron-left",disabled:!x,onClick:function(){function M(){return h("switch_camera",{name:x})}return M}()}),(0,e.createComponentVNode)(2,y.Button,{icon:"chevron-right",disabled:!E,onClick:function(){function M(){return h("switch_camera",{name:E})}return M}()})],4)],4),(0,e.createComponentVNode)(2,y.ByondUi,{resizable:!0,className:"CameraConsole__map",overflow:"hidden",params:{id:I,type:"map"}})]})]})}return u}(),f=r.CameraConsoleOldContent=function(){function u(i,s){var d=(0,N.useBackend)(s),h=d.act,v=d.data,g=d.config,C=v.mapRef,V=v.activeCamera,b=(0,N.useLocalState)(s,"searchText",""),B=b[0],I=b[1],w=p(v.cameras,B),T=k(w,V),A=T[0],x=T[1];return(0,e.createComponentVNode)(2,y.Stack.Item,{children:[(0,e.createVNode)(1,"div","CameraConsole__left",(0,e.createComponentVNode)(2,S.Window.Content,{children:(0,e.createComponentVNode)(2,y.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,y.Stack.Item,{children:(0,e.createComponentVNode)(2,y.Input,{width:"215px",placeholder:"\u041D\u0430\u0439\u0442\u0438 \u043A\u0430\u043C\u0435\u0440\u0443",onInput:function(){function E(M,j){return I(j)}return E}()})}),(0,e.createComponentVNode)(2,y.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,y.Section,{fill:!0,scrollable:!0,children:w.map(function(E){return(0,e.createVNode)(1,"div",(0,o.classes)(["Button","Button--fluid",E.status?"Button--color--transparent":"Button--color--danger","Button--ellipsis",V&&E.name===V.name&&"Button--selected"]),E.name,0,{title:E.name,onClick:function(){function M(){return h("switch_camera",{name:E.name})}return M}()},E.name)})})})]})}),2),(0,e.createVNode)(1,"div","CameraConsole__right",[(0,e.createVNode)(1,"div","CameraConsole__toolbar",[(0,e.createVNode)(1,"b",null,"\u041A\u0430\u043C\u0435\u0440\u0430: ",16),V&&V.name||"\u2014"],0),(0,e.createVNode)(1,"div","CameraConsole__toolbarRight",[(0,e.createComponentVNode)(2,y.Button,{icon:"chevron-left",disabled:!A,onClick:function(){function E(){return h("switch_camera",{name:A})}return E}()}),(0,e.createComponentVNode)(2,y.Button,{icon:"chevron-right",disabled:!x,onClick:function(){function E(){return h("switch_camera",{name:x})}return E}()})],4),(0,e.createComponentVNode)(2,y.ByondUi,{className:"CameraConsole__map",params:{id:C,type:"map"}})],4)]})}return u}()},95513:function(L,r,n){"use strict";r.__esModule=!0,r.Canister=void 0;var e=n(96524),a=n(36121),t=n(17899),o=n(24674),m=n(92986),N=n(45493),y=r.Canister=function(){function S(k,p){var l=(0,t.useBackend)(p),c=l.act,f=l.data,u=f.portConnected,i=f.tankPressure,s=f.releasePressure,d=f.defaultReleasePressure,h=f.minReleasePressure,v=f.maxReleasePressure,g=f.valveOpen,C=f.name,V=f.canLabel,b=f.colorContainer,B=f.color_index,I=f.hasHoldingTank,w=f.holdingTank,T="";B.prim&&(T=b.prim.options[B.prim].name);var A="";B.sec&&(A=b.sec.options[B.sec].name);var x="";B.ter&&(x=b.ter.options[B.ter].name);var E="";B.quart&&(E=b.quart.options[B.quart].name);var M=[],j=[],P=[],R=[],D=0;for(D=0;DC.current_positions&&(0,e.createComponentVNode)(2,t.Box,{color:"green",children:C.total_positions-C.current_positions})||(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"0"})}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{content:"-",disabled:d.cooldown_time||!C.can_close,onClick:function(){function V(){return s("make_job_unavailable",{job:C.title})}return V}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{content:"+",disabled:d.cooldown_time||!C.can_open,onClick:function(){function V(){return s("make_job_available",{job:C.title})}return V}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:d.target_dept&&(0,e.createComponentVNode)(2,t.Box,{color:"green",children:d.priority_jobs.indexOf(C.title)>-1?"Yes":""})||(0,e.createComponentVNode)(2,t.Button,{content:C.is_priority?"Yes":"No",selected:C.is_priority,disabled:d.cooldown_time||!C.can_prioritize,onClick:function(){function V(){return s("prioritize_job",{job:C.title})}return V}()})})]},C.title)})]})})]}):g=(0,e.createComponentVNode)(2,S);break;case 2:!d.authenticated||!d.scan_name?g=(0,e.createComponentVNode)(2,S):d.modify_name?g=(0,e.createComponentVNode)(2,m.AccessList,{accesses:d.regions,selectedList:d.selectedAccess,accessMod:function(){function C(V){return s("set",{access:V})}return C}(),grantAll:function(){function C(){return s("grant_all")}return C}(),denyAll:function(){function C(){return s("clear_all")}return C}(),grantDep:function(){function C(V){return s("grant_region",{region:V})}return C}(),denyDep:function(){function C(V){return s("deny_region",{region:V})}return C}()}):g=(0,e.createComponentVNode)(2,k);break;case 3:d.authenticated?d.records.length?g=(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Records",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"times",content:"Delete All Records",disabled:!d.authenticated||d.records.length===0||d.target_dept,onClick:function(){function C(){return s("wipe_all_logs")}return C}()}),children:[(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{height:2,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Crewman"}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Old Rank"}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"New Rank"}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Authorized By"}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Time"}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Reason"}),!!d.iscentcom&&(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Deleted By"})]}),d.records.map(function(C){return(0,e.createComponentVNode)(2,t.Table.Row,{height:2,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:C.transferee}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:C.oldvalue}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:C.newvalue}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:C.whodidit}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:C.timestamp}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:C.reason}),!!d.iscentcom&&(0,e.createComponentVNode)(2,t.Table.Cell,{children:C.deletedby})]},C.timestamp)})]}),!!d.iscentcom&&(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"pencil-alt",content:"Delete MY Records",color:"purple",disabled:!d.authenticated||d.records.length===0,onClick:function(){function C(){return s("wipe_my_logs")}return C}()})})]}):g=(0,e.createComponentVNode)(2,p):g=(0,e.createComponentVNode)(2,S);break;case 4:!d.authenticated||!d.scan_name?g=(0,e.createComponentVNode)(2,S):g=(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Your Team",children:(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{height:2,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Name"}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Rank"}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Sec Status"}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Actions"})]}),d.people_dept.map(function(C){return(0,e.createComponentVNode)(2,t.Table.Row,{height:2,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:C.name}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:C.title}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:C.crimstat}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{content:C.buttontext,disabled:!C.demotable,onClick:function(){function V(){return s("remote_demote",{remote_demote:C.name})}return V}()})})]},C.title)})]})});break;default:g=(0,e.createComponentVNode)(2,t.Section,{title:"Warning",color:"red",children:"ERROR: Unknown Mode."})}return(0,e.createComponentVNode)(2,o.Window,{width:800,height:800,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:v}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:h}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:g})]})})})}return c}()},16377:function(L,r,n){"use strict";r.__esModule=!0,r.CargoConsole=void 0;var e=n(96524),a=n(74041),t=n(50640),o=n(17899),m=n(24674),N=n(45493),y=n(78234),S=r.CargoConsole=function(){function i(s,d){return(0,e.createComponentVNode)(2,N.Window,{width:900,height:800,children:(0,e.createComponentVNode)(2,N.Window.Content,{children:(0,e.createComponentVNode)(2,m.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,k),(0,e.createComponentVNode)(2,p),(0,e.createComponentVNode)(2,l),(0,e.createComponentVNode)(2,c),(0,e.createComponentVNode)(2,u)]})})})}return i}(),k=function(s,d){var h=(0,o.useLocalState)(d,"contentsModal",null),v=h[0],g=h[1],C=(0,o.useLocalState)(d,"contentsModalTitle",null),V=C[0],b=C[1];if(v!==null&&V!==null)return(0,e.createComponentVNode)(2,m.Modal,{maxWidth:"75%",width:window.innerWidth+"px",maxHeight:window.innerHeight*.75+"px",mx:"auto",children:[(0,e.createComponentVNode)(2,m.Box,{width:"100%",bold:!0,children:(0,e.createVNode)(1,"h1",null,[V,(0,e.createTextVNode)(" contents:")],0)}),(0,e.createComponentVNode)(2,m.Box,{children:v.map(function(B){return(0,e.createComponentVNode)(2,m.Box,{children:["- ",B]},B)})}),(0,e.createComponentVNode)(2,m.Box,{m:2,children:(0,e.createComponentVNode)(2,m.Button,{content:"Close",onClick:function(){function B(){g(null),b(null)}return B}()})})]})},p=function(s,d){var h=(0,o.useBackend)(d),v=h.act,g=h.data,C=g.is_public,V=g.timeleft,b=g.moving,B=g.at_station,I,w;return!b&&!B?(I="Docked off-station",w="Call Shuttle"):!b&&B?(I="Docked at the station",w="Return Shuttle"):b&&(w="In Transit...",V!==1?I="Shuttle is en route (ETA: "+V+" minutes)":I="Shuttle is en route (ETA: "+V+" minute)"),(0,e.createComponentVNode)(2,m.Stack.Item,{children:(0,e.createComponentVNode)(2,m.Section,{title:"Status",children:(0,e.createComponentVNode)(2,m.LabeledList,{children:[(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Shuttle Status",children:I}),C===0&&(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Controls",children:[(0,e.createComponentVNode)(2,m.Button,{content:w,disabled:b,onClick:function(){function T(){return v("moveShuttle")}return T}()}),(0,e.createComponentVNode)(2,m.Button,{content:"View Central Command Messages",onClick:function(){function T(){return v("showMessages")}return T}()})]})]})})})},l=function(s,d){var h,v=(0,o.useBackend)(d),g=v.act,C=v.data,V=C.accounts,b=(0,o.useLocalState)(d,"selectedAccount"),B=b[0],I=b[1],w=[];return V.map(function(T){return w[T.name]=T.account_UID}),(0,e.createComponentVNode)(2,m.Stack.Item,{children:(0,e.createComponentVNode)(2,m.Section,{title:"Payment",children:[(0,e.createComponentVNode)(2,m.Dropdown,{width:"190px",options:V.map(function(T){return T.name}),selected:(h=V.filter(function(T){return T.account_UID===B})[0])==null?void 0:h.name,onSelected:function(){function T(A){return I(w[A])}return T}()}),V.filter(function(T){return T.account_UID===B}).map(function(T){return(0,e.createComponentVNode)(2,m.LabeledList,{children:[(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Account Name",children:(0,e.createComponentVNode)(2,m.Stack.Item,{mt:1,children:T.name})}),(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Balance",children:(0,e.createComponentVNode)(2,m.Stack.Item,{children:T.balance})})]},T.account_UID)})]})})},c=function(s,d){var h=(0,o.useBackend)(d),v=h.act,g=h.data,C=g.requests,V=g.categories,b=g.supply_packs,B=(0,o.useSharedState)(d,"category","Emergency"),I=B[0],w=B[1],T=(0,o.useSharedState)(d,"search_text",""),A=T[0],x=T[1],E=(0,o.useLocalState)(d,"contentsModal",null),M=E[0],j=E[1],P=(0,o.useLocalState)(d,"contentsModalTitle",null),R=P[0],D=P[1],F=(0,y.createSearch)(A,function(X){return X.name}),W=(0,o.useLocalState)(d,"selectedAccount"),_=W[0],H=W[1],z=(0,a.flow)([(0,t.filter)(function(X){return X.cat===V.filter(function(J){return J.name===I})[0].category||A}),A&&(0,t.filter)(F),(0,t.sortBy)(function(X){return X.name.toLowerCase()})])(b),$="Crate Catalogue";return A?$="Results for '"+A+"':":I&&($="Browsing "+I),(0,e.createComponentVNode)(2,m.Stack.Item,{children:(0,e.createComponentVNode)(2,m.Section,{title:$,buttons:(0,e.createComponentVNode)(2,m.Dropdown,{width:"190px",options:V.map(function(X){return X.name}),selected:I,onSelected:function(){function X(J){return w(J)}return X}()}),children:[(0,e.createComponentVNode)(2,m.Input,{fluid:!0,placeholder:"Search for...",onInput:function(){function X(J,ce){return x(ce)}return X}(),mb:1}),(0,e.createComponentVNode)(2,m.Box,{maxHeight:25,overflowY:"auto",overflowX:"hidden",children:(0,e.createComponentVNode)(2,m.Table,{m:"0.5rem",children:z.map(function(X){return(0,e.createComponentVNode)(2,m.Table.Row,{children:[(0,e.createComponentVNode)(2,m.Table.Cell,{bold:!0,children:[X.name," (",X.cost," Credits)"]}),(0,e.createComponentVNode)(2,m.Table.Cell,{textAlign:"right",pr:1,children:[(0,e.createComponentVNode)(2,m.Button,{content:"Order 1",icon:"shopping-cart",disabled:!_,onClick:function(){function J(){return v("order",{crate:X.ref,multiple:!1,account:_})}return J}()}),(0,e.createComponentVNode)(2,m.Button,{content:"Order Multiple",icon:"cart-plus",disabled:!_||X.singleton,onClick:function(){function J(){return v("order",{crate:X.ref,multiple:!0,account:_})}return J}()}),(0,e.createComponentVNode)(2,m.Button,{content:"View Contents",icon:"search",onClick:function(){function J(){j(X.contents),D(X.name)}return J}()})]})]},X.name)})})})]})})},f=function(s,d){var h=s.request,v,g;switch(h.department){case"Engineering":g="CE",v="orange";break;case"Medical":g="CMO",v="teal";break;case"Science":g="RD",v="purple";break;case"Supply":g="CT",v="brown";break;case"Service":g="HOP",v="olive";break;case"Security":g="HOS",v="red";break;case"Command":g="CAP",v="blue";break;case"Assistant":g="Any Head",v="grey";break}return(0,e.createComponentVNode)(2,m.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,m.Stack.Item,{mt:.5,children:"Approval Required:"}),!!h.req_cargo_approval&&(0,e.createComponentVNode)(2,m.Stack.Item,{children:(0,e.createComponentVNode)(2,m.Button,{color:"brown",content:"QM",icon:"user-tie",tooltip:"This Order requires approval from the QM still"})}),!!h.req_head_approval&&(0,e.createComponentVNode)(2,m.Stack.Item,{children:(0,e.createComponentVNode)(2,m.Button,{color:v,content:g,disabled:h.req_cargo_approval,icon:"user-tie",tooltip:h.req_cargo_approval?"This Order first requires approval from the QM before the "+g+" can approve it":"This Order requires approval from the "+g+" still"})})]})},u=function(s,d){var h=(0,o.useBackend)(d),v=h.act,g=h.data,C=g.requests,V=g.orders,b=g.shipments;return(0,e.createComponentVNode)(2,m.Section,{fill:!0,scrollable:!0,title:"Orders",children:[(0,e.createComponentVNode)(2,m.Box,{bold:!0,children:"Requests"}),(0,e.createComponentVNode)(2,m.Table,{children:C.map(function(B){return(0,e.createComponentVNode)(2,m.Table.Row,{className:"Cargo_RequestList",children:[(0,e.createComponentVNode)(2,m.Table.Cell,{mb:1,children:[(0,e.createComponentVNode)(2,m.Box,{children:["Order #",B.ordernum,": ",B.supply_type," (",B.cost," credits) for"," ",(0,e.createVNode)(1,"b",null,B.orderedby,0)," with"," ",B.department?"The "+B.department+" Department":"Their Personal"," ","Account"]}),(0,e.createComponentVNode)(2,m.Box,{italic:!0,children:["Reason: ",B.comment]}),(0,e.createComponentVNode)(2,f,{request:B})]}),(0,e.createComponentVNode)(2,m.Stack.Item,{textAlign:"right",children:[(0,e.createComponentVNode)(2,m.Button,{content:"Approve",color:"green",disabled:!B.can_approve,onClick:function(){function I(){return v("approve",{ordernum:B.ordernum})}return I}()}),(0,e.createComponentVNode)(2,m.Button,{content:"Deny",color:"red",disabled:!B.can_deny,onClick:function(){function I(){return v("deny",{ordernum:B.ordernum})}return I}()})]})]},B.ordernum)})}),(0,e.createComponentVNode)(2,m.Box,{bold:!0,children:"Orders Awaiting Delivery"}),(0,e.createComponentVNode)(2,m.Table,{m:"0.5rem",children:V.map(function(B){return(0,e.createComponentVNode)(2,m.Table.Row,{children:(0,e.createComponentVNode)(2,m.Table.Cell,{children:[(0,e.createComponentVNode)(2,m.Box,{children:["- #",B.ordernum,": ",B.supply_type," for ",(0,e.createVNode)(1,"b",null,B.orderedby,0)]}),(0,e.createComponentVNode)(2,m.Box,{italic:!0,children:["Reason: ",B.comment]})]})},B.ordernum)})}),(0,e.createComponentVNode)(2,m.Box,{bold:!0,children:"Order in Transit"}),(0,e.createComponentVNode)(2,m.Table,{m:"0.5rem",children:b.map(function(B){return(0,e.createComponentVNode)(2,m.Table.Row,{children:(0,e.createComponentVNode)(2,m.Table.Cell,{children:[(0,e.createComponentVNode)(2,m.Box,{children:["- #",B.ordernum,": ",B.supply_type," for ",(0,e.createVNode)(1,"b",null,B.orderedby,0)]}),(0,e.createComponentVNode)(2,m.Box,{italic:!0,children:["Reason: ",B.comment]})]})},B.ordernum)})})]})}},89917:function(L,r,n){"use strict";r.__esModule=!0,r.ChangelogView=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=r.ChangelogView=function(){function N(y,S){var k=(0,a.useBackend)(S),p=k.act,l=k.data,c=(0,a.useLocalState)(S,"onlyRecent",0),f=c[0],u=c[1],i=l.cl_data,s=l.last_cl,d={FIX:(0,e.createComponentVNode)(2,t.Icon,{name:"tools",title:"Fix"}),WIP:(0,e.createComponentVNode)(2,t.Icon,{name:"hard-hat",title:"WIP",color:"orange"}),TWEAK:(0,e.createComponentVNode)(2,t.Icon,{name:"sliders-h",title:"Tweak"}),SOUNDADD:(0,e.createComponentVNode)(2,t.Icon,{name:"volume-up",title:"Sound Added",color:"green"}),SOUNDDEL:(0,e.createComponentVNode)(2,t.Icon,{name:"volume-mute",title:"Sound Removed",color:"red"}),CODEADD:(0,e.createComponentVNode)(2,t.Icon,{name:"plus",title:"Code Addition",color:"green"}),CODEDEL:(0,e.createComponentVNode)(2,t.Icon,{name:"minus",title:"Code Removal",color:"red"}),IMAGEADD:(0,e.createComponentVNode)(2,t.Icon,{name:"folder-plus",title:"Sprite Addition",color:"green"}),IMAGEDEL:(0,e.createComponentVNode)(2,t.Icon,{name:"folder-minus",title:"Sprite Removal",color:"red"}),SPELLCHECK:(0,e.createComponentVNode)(2,t.Icon,{name:"font",title:"Spelling/Grammar Fix"}),EXPERIMENT:(0,e.createComponentVNode)(2,t.Icon,{name:"exclamation-triangle",title:"Experimental",color:"orange"})},h=function(){function v(g){return g in d?d[g]:(0,e.createComponentVNode)(2,t.Icon,{name:"plus",color:"green"})}return v}();return(0,e.createComponentVNode)(2,o.Window,{width:750,height:800,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"ParadiseSS13 Changelog",mt:2,buttons:(0,e.createComponentVNode)(2,t.Button,{content:f?"Showing all changes":"Showing changes since last connection",onClick:function(){function v(){return u(!f)}return v}()}),children:i.map(function(v){return!f&&v.merge_ts<=s||(0,e.createComponentVNode)(2,t.Section,{mb:2,title:v.author+" - Merged on "+v.merge_date,buttons:(0,e.createComponentVNode)(2,t.Button,{content:"#"+v.num,onClick:function(){function g(){return p("open_pr",{pr_number:v.num})}return g}()}),children:v.entries.map(function(g){return(0,e.createComponentVNode)(2,t.Box,{m:1,children:[h(g.etype)," ",g.etext]},g)})},v)})})})})}return N}()},71254:function(L,r,n){"use strict";r.__esModule=!0,r.ChemDispenser=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(1496),m=n(45493),N=[1,5,10,20,30,50],y=[1,5,10],S=r.ChemDispenser=function(){function c(f,u){var i=(0,a.useBackend)(u),s=i.act,d=i.data,h=d.chemicals;return(0,e.createComponentVNode)(2,m.Window,{width:400,height:400+h.length*8,children:(0,e.createComponentVNode)(2,m.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,k),(0,e.createComponentVNode)(2,p),(0,e.createComponentVNode)(2,l)]})})})}return c}(),k=function(f,u){var i=(0,a.useBackend)(u),s=i.act,d=i.data,h=d.amount,v=d.energy,g=d.maxEnergy;return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Settings",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Energy",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:v,minValue:0,maxValue:g,ranges:{good:[g*.5,1/0],average:[g*.25,g*.5],bad:[-1/0,g*.25]},children:[v," / ",g," Units"]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Dispense",verticalAlign:"middle",children:(0,e.createComponentVNode)(2,t.Stack,{children:N.map(function(C,V){return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,width:"15%",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"cog",selected:h===C,content:C,onClick:function(){function b(){return s("amount",{amount:C})}return b}()})},V)})})})]})})})},p=function(f,u){for(var i=(0,a.useBackend)(u),s=i.act,d=i.data,h=d.chemicals,v=h===void 0?[]:h,g=[],C=0;C<(v.length+1)%3;C++)g.push(!0);return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:d.glass?"Drink Dispenser":"Chemical Dispenser",children:[v.map(function(V,b){return(0,e.createComponentVNode)(2,t.Button,{m:.1,width:"32.5%",icon:"arrow-circle-down",overflow:"hidden",textOverflow:"ellipsis",content:V.title,style:{"margin-left":"2px"},onClick:function(){function B(){return s("dispense",{reagent:V.id})}return B}()},b)}),g.map(function(V,b){return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,basis:"25%"},b)})]})})},l=function(f,u){var i=(0,a.useBackend)(u),s=i.act,d=i.data,h=d.isBeakerLoaded,v=d.beakerCurrentVolume,g=d.beakerMaxVolume,C=d.beakerContents,V=C===void 0?[]:C;return(0,e.createComponentVNode)(2,t.Stack.Item,{height:16,children:(0,e.createComponentVNode)(2,t.Section,{title:d.glass?"Glass":"Beaker",fill:!0,scrollable:!0,buttons:(0,e.createComponentVNode)(2,t.Box,{children:[!!h&&(0,e.createComponentVNode)(2,t.Box,{inline:!0,color:"label",mr:2,children:[v," / ",g," units"]}),(0,e.createComponentVNode)(2,t.Button,{icon:"eject",content:"Eject",disabled:!h,onClick:function(){function b(){return s("ejectBeaker")}return b}()})]}),children:(0,e.createComponentVNode)(2,o.BeakerContents,{beakerLoaded:h,beakerContents:V,buttons:function(){function b(B){return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{content:"Isolate",icon:"compress-arrows-alt",onClick:function(){function I(){return s("remove",{reagent:B.id,amount:-1})}return I}()}),y.map(function(I,w){return(0,e.createComponentVNode)(2,t.Button,{content:I,onClick:function(){function T(){return s("remove",{reagent:B.id,amount:I})}return T}()},w)}),(0,e.createComponentVNode)(2,t.Button,{content:"ALL",onClick:function(){function I(){return s("remove",{reagent:B.id,amount:B.volume})}return I}()})],0)}return b}()})})})}},27004:function(L,r,n){"use strict";r.__esModule=!0,r.ChemHeater=void 0;var e=n(96524),a=n(36121),t=n(17899),o=n(24674),m=n(1496),N=n(45493),y=r.ChemHeater=function(){function p(l,c){return(0,e.createComponentVNode)(2,N.Window,{width:350,height:275,children:(0,e.createComponentVNode)(2,N.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,S),(0,e.createComponentVNode)(2,k)]})})})}return p}(),S=function(l,c){var f=(0,t.useBackend)(c),u=f.act,i=f.data,s=i.targetTemp,d=i.targetTempReached,h=i.autoEject,v=i.isActive,g=i.currentTemp,C=i.isBeakerLoaded;return(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,title:"Settings",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{content:"Auto-eject",icon:h?"toggle-on":"toggle-off",selected:h,onClick:function(){function V(){return u("toggle_autoeject")}return V}()}),(0,e.createComponentVNode)(2,o.Button,{content:v?"On":"Off",icon:"power-off",selected:v,disabled:!C,onClick:function(){function V(){return u("toggle_on")}return V}()})],4),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Target",children:(0,e.createComponentVNode)(2,o.NumberInput,{width:"65px",unit:"K",step:10,stepPixelSize:3,value:(0,a.round)(s,0),minValue:0,maxValue:1e3,onDrag:function(){function V(b,B){return u("adjust_temperature",{target:B})}return V}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Reading",color:d?"good":"average",children:C&&(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:g,format:function(){function V(b){return(0,a.toFixed)(b)+" K"}return V}()})||"\u2014"})]})})})},k=function(l,c){var f=(0,t.useBackend)(c),u=f.act,i=f.data,s=i.isBeakerLoaded,d=i.beakerCurrentVolume,h=i.beakerMaxVolume,v=i.beakerContents;return(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{title:"Beaker",fill:!0,scrollable:!0,buttons:!!s&&(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,o.Box,{inline:!0,color:"label",mr:2,children:[d," / ",h," units"]}),(0,e.createComponentVNode)(2,o.Button,{icon:"eject",content:"Eject",onClick:function(){function g(){return u("eject_beaker")}return g}()})]}),children:(0,e.createComponentVNode)(2,m.BeakerContents,{beakerLoaded:s,beakerContents:v})})})}},33611:function(L,r,n){"use strict";r.__esModule=!0,r.ChemMaster=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=n(1496),N=n(99665),y=n(28234),S=n(81856),k=["icon"];function p(x,E){if(x==null)return{};var M={},j=Object.keys(x),P,R;for(R=0;R=0)&&(M[P]=x[P]);return M}function l(x,E){x.prototype=Object.create(E.prototype),x.prototype.constructor=x,c(x,E)}function c(x,E){return c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function M(j,P){return j.__proto__=P,j}return M}(),c(x,E)}var f=(0,S.createLogger)("ChemMaster"),u=[1,5,10],i=function(E,M){var j=(0,a.useBackend)(M),P=j.act,R=j.data,D=E.args.analysis;return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:R.condi?"Condiment Analysis":"Reagent Analysis",children:(0,e.createComponentVNode)(2,t.Box,{mx:"0.5rem",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Name",children:D.name}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Description",children:(D.desc||"").length>0?D.desc:"N/A"}),D.blood_type&&(0,e.createFragment)([(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Blood type",children:D.blood_type}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Blood DNA",className:"LabeledList__breakContents",children:D.blood_dna})],4),!R.condi&&(0,e.createComponentVNode)(2,t.Button,{icon:R.printing?"spinner":"print",disabled:R.printing,iconSpin:!!R.printing,ml:"0.5rem",content:"Print",onClick:function(){function F(){return P("print",{idx:D.idx,beaker:E.args.beaker})}return F}()})]})})})})},s=r.ChemMaster=function(){function x(E,M){var j=(0,a.useBackend)(M),P=j.data,R=P.condi,D=P.beaker,F=P.beaker_reagents,W=F===void 0?[]:F,_=P.buffer_reagents,H=_===void 0?[]:_,z=P.mode;return(0,e.createComponentVNode)(2,o.Window,{width:575,height:650,children:[(0,e.createComponentVNode)(2,N.ComplexModal),(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,d,{beaker:D,beakerReagents:W,bufferNonEmpty:H.length>0}),(0,e.createComponentVNode)(2,h,{mode:z,bufferReagents:H}),(0,e.createComponentVNode)(2,v,{isCondiment:R,bufferNonEmpty:H.length>0}),(0,e.createComponentVNode)(2,A)]})})]})}return x}(),d=function(E,M){var j=(0,a.useBackend)(M),P=j.act,R=E.beaker,D=E.beakerReagents,F=E.bufferNonEmpty;return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Beaker",fill:!0,scrollable:!0,buttons:F?(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"eject",disabled:!R,content:"Eject and Clear Buffer",onClick:function(){function W(){return P("eject")}return W}()}):(0,e.createComponentVNode)(2,t.Button,{icon:"eject",disabled:!R,content:"Eject and Clear Buffer",onClick:function(){function W(){return P("eject")}return W}()}),children:R?(0,e.createComponentVNode)(2,m.BeakerContents,{beakerLoaded:!0,beakerContents:D,buttons:function(){function W(_,H){return(0,e.createComponentVNode)(2,t.Box,{mb:H0?(0,e.createComponentVNode)(2,m.BeakerContents,{beakerLoaded:!0,beakerContents:F,buttons:function(){function W(_,H){return(0,e.createComponentVNode)(2,t.Box,{mb:HC.biomass?"bad":null,children:["Biomass: ",w[0],"/",C.biomass,"/",C.biomass_storage_capacity]})}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:"30%",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:w[1],maxValue:C.max_reagent_capacity,ranges:{bad:[2*C.max_reagent_capacity/3,C.max_reagent_capacity],average:[C.max_reagent_capacity/3,2*C.max_reagent_capacity/3],good:[0,C.max_reagent_capacity/3]},color:w[1]>C.sanguine_reagent?"bad":"good",children:["Sanguine: ",w[1],"/",C.sanguine_reagent,"/",C.max_reagent_capacity]})}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:"30%",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:w[2],maxValue:C.max_reagent_capacity,ranges:{bad:[2*C.max_reagent_capacity/3,C.max_reagent_capacity],average:[C.max_reagent_capacity/3,2*C.max_reagent_capacity/3],good:[0,C.max_reagent_capacity/3]},color:w[2]>C.osseous_reagent?"bad":"good",children:["Osseous: ",w[2],"/",C.osseous_reagent,"/",C.max_reagent_capacity]})})]}),(0,e.createComponentVNode)(2,f),(0,e.createComponentVNode)(2,u)]})]})})]})]})},f=function(s,d){var h=(0,a.useBackend)(d),v=h.act,g=h.data,C=g.patient_limb_data,V=g.limb_list,b=g.desired_limb_data;return(0,e.createComponentVNode)(2,t.Collapsible,{title:"Limbs",children:V.map(function(B,I){return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Stack,{align:"baseline",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{color:"label",width:"15%",height:"20px",children:[C[B][4],":"," "]}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:1}),C[B][3]===0&&(0,e.createComponentVNode)(2,t.Stack.Item,{width:"60%",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:b[B][0]+b[B][1],maxValue:C[B][5],ranges:{good:[0,C[B][5]/3],average:[C[B][5]/3,2*C[B][5]/3],bad:[2*C[B][5]/3,C[B][5]]},children:["Post-Cloning Damage: ",(0,e.createComponentVNode)(2,t.Icon,{name:"bone"})," "+b[B][0]+" / ",(0,e.createComponentVNode)(2,t.Icon,{name:"fire"})," "+b[B][1]]})}),C[B][3]!==0&&(0,e.createComponentVNode)(2,t.Stack.Item,{width:"60%",children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:"bad",value:0,children:["The patient's ",C[B][4]," is missing!"]})})]}),(0,e.createComponentVNode)(2,t.Stack,{children:[!!C[B][3]&&(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:!b[B][3],onClick:function(){function w(){return v("toggle_limb_repair",{limb:B,type:"replace"})}return w}(),children:"Replace Limb"})}),!C[B][3]&&(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button.Checkbox,{disabled:!(C[B][0]||C[B][1]),checked:!(b[B][0]||b[B][1]),onClick:function(){function w(){return v("toggle_limb_repair",{limb:B,type:"damage"})}return w}(),children:"Repair Damages"}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{disabled:!(C[B][2]&N),checked:!(b[B][2]&N),onClick:function(){function w(){return v("toggle_limb_repair",{limb:B,type:"bone"})}return w}(),children:"Mend Bone"}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{disabled:!(C[B][2]&y),checked:!(b[B][2]&y),onClick:function(){function w(){return v("toggle_limb_repair",{limb:B,type:"ib"})}return w}(),children:"Mend IB"}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{disabled:!(C[B][2]&S),checked:!(b[B][2]&S),onClick:function(){function w(){return v("toggle_limb_repair",{limb:B,type:"critburn"})}return w}(),children:"Mend Critical Burn"})]})]})]},B)})})},u=function(s,d){var h=(0,a.useBackend)(d),v=h.act,g=h.data,C=g.patient_organ_data,V=g.organ_list,b=g.desired_organ_data;return(0,e.createComponentVNode)(2,t.Collapsible,{title:"Organs",children:V.map(function(B,I){return(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Stack,{align:"baseline",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{color:"label",width:"20%",height:"20px",children:[C[B][3],":"," "]}),C[B][5]!=="heart"&&(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Stack.Item,{children:[!!C[B][2]&&(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:!b[B][2]&&!b[B][1],onClick:function(){function w(){return v("toggle_organ_repair",{organ:B,type:"replace"})}return w}(),children:"Replace Organ"}),!C[B][2]&&(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{disabled:!C[B][0],checked:!b[B][0],onClick:function(){function w(){return v("toggle_organ_repair",{organ:B,type:"damage"})}return w}(),children:"Repair Damages"})})]})}),C[B][5]==="heart"&&(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"Heart replacement is required for cloning."}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:1}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:"35%",children:[!!C[B][2]&&(0,e.createComponentVNode)(2,t.ProgressBar,{color:"bad",value:0,children:["The patient's ",C[B][3]," is missing!"]}),!C[B][2]&&(0,e.createComponentVNode)(2,t.ProgressBar,{value:b[B][0],maxValue:C[B][4],ranges:{good:[0,C[B][4]/3],average:[C[B][4]/3,2*C[B][4]/3],bad:[2*C[B][4]/3,C[B][4]]},children:"Post-Cloning Damage: "+b[B][0]})]})]})},B)})})}},66373:function(L,r,n){"use strict";r.__esModule=!0,r.CloningPod=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=r.CloningPod=function(){function N(y,S){var k=(0,a.useBackend)(S),p=k.act,l=k.data,c=l.biomass,f=l.biomass_storage_capacity,u=l.sanguine_reagent,i=l.osseous_reagent,s=l.organs,d=l.currently_cloning;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:500,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,t.Section,{title:"Liquid Storage",children:[(0,e.createComponentVNode)(2,t.Stack,{height:"25px",align:"center",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{color:"label",width:"25%",children:["Biomass:"," "]}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:1,children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:c,ranges:{good:[2*f/3,f],average:[f/3,2*f/3],bad:[0,f/3]},minValue:0,maxValue:f})})]}),(0,e.createComponentVNode)(2,t.Stack,{height:"25px",align:"center",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{color:"label",width:"25%",children:["Sanguine Reagent:"," "]}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:u+" units"}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:1}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.NumberInput,{value:0,minValue:0,maxValue:u,step:1,unit:"units",onChange:function(){function h(v,g){return p("remove_reagent",{reagent:"sanguine_reagent",amount:g})}return h}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Remove All",onClick:function(){function h(){return p("purge_reagent",{reagent:"sanguine_reagent"})}return h}()})})]}),(0,e.createComponentVNode)(2,t.Stack,{height:"25px",align:"center",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{color:"label",width:"25%",children:["Osseous Reagent:"," "]}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:i+" units"}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:1}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.NumberInput,{value:0,minValue:0,maxValue:i,step:1,unit:"units",onChange:function(){function h(v,g){return p("remove_reagent",{reagent:"osseous_reagent",amount:g})}return h}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Remove All",onClick:function(){function h(){return p("purge_reagent",{reagent:"osseous_reagent"})}return h}()})})]})]}),(0,e.createComponentVNode)(2,t.Section,{title:"Organ Storage",children:[!d&&(0,e.createComponentVNode)(2,t.Box,{children:[!s&&(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"Notice: No organs loaded."}),!!s&&s.map(function(h){return(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:h.name}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:1}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Eject",onClick:function(){function v(){return p("eject_organ",{organ_ref:h.ref})}return v}()})})]},h)})]}),!!d&&(0,e.createComponentVNode)(2,t.Stack,{height:"100%",children:(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,grow:"1",textAlign:"center",align:"center",color:"label",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"lock",size:"5",mb:3}),(0,e.createVNode)(1,"br"),"Unable to access organ storage while cloning."]})})]})]})})}return N}()},11866:function(L,r,n){"use strict";r.__esModule=!0,r.ColourMatrixTester=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=r.ColourMatrixTester=function(){function N(y,S){var k=(0,a.useBackend)(S),p=k.act,l=k.data,c=l.colour_data,f=[[{name:"RR",idx:0},{name:"RG",idx:1},{name:"RB",idx:2},{name:"RA",idx:3}],[{name:"GR",idx:4},{name:"GG",idx:5},{name:"GB",idx:6},{name:"GA",idx:7}],[{name:"BR",idx:8},{name:"BG",idx:9},{name:"BB",idx:10},{name:"BA",idx:11}],[{name:"AR",idx:12},{name:"AG",idx:13},{name:"AB",idx:14},{name:"AA",idx:15}]];return(0,e.createComponentVNode)(2,o.Window,{width:360,height:190,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Modify Matrix",children:f.map(function(u){return(0,e.createComponentVNode)(2,t.Stack,{textAlign:"center",textColor:"label",children:u.map(function(i){return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,mt:1,children:[i.name,":\xA0",(0,e.createComponentVNode)(2,t.NumberInput,{width:4,value:c[i.idx],step:.05,minValue:-5,maxValue:5,stepPixelSize:5,onChange:function(){function s(d,h){return p("setvalue",{idx:i.idx+1,value:h})}return s}()})]},i.name)})},u)})})})})})}return N}()},22420:function(L,r,n){"use strict";r.__esModule=!0,r.CommunicationsComputer=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=function(s){switch(s){case 1:return(0,e.createComponentVNode)(2,S);case 2:return(0,e.createComponentVNode)(2,l);case 3:return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,children:(0,e.createComponentVNode)(2,c)})});case 4:return(0,e.createComponentVNode)(2,u);default:return"ERROR. Unknown menu_state. Please contact NT Technical Support."}},N=r.CommunicationsComputer=function(){function i(s,d){var h=(0,a.useBackend)(d),v=h.act,g=h.data,C=g.menu_state;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:600,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,y),m(C)]})})})}return i}(),y=function(s,d){var h=(0,a.useBackend)(d),v=h.act,g=h.data,C=g.authenticated,V=g.noauthbutton,b=g.esc_section,B=g.esc_callable,I=g.esc_recallable,w=g.esc_status,T=g.authhead,A=g.is_ai,x=g.lastCallLoc,E=!1,M;return C?C===1?M="Command":C===2?M="Captain":C===3?M="CentComm Officer":C===4?(M="CentComm Secure Connection",E=!0):M="ERROR: Report This Bug!":M="Not Logged In",(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Authentication",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:E&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Access",children:M})||(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Actions",children:(0,e.createComponentVNode)(2,t.Button,{icon:C?"sign-out-alt":"id-card",selected:C,disabled:V,content:C?"Log Out ("+M+")":"Log In",onClick:function(){function j(){return v("auth")}return j}()})})})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:!!b&&(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Escape Shuttle",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[!!w&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:w}),!!B&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Options",children:(0,e.createComponentVNode)(2,t.Button,{icon:"rocket",content:"Call Shuttle",disabled:!T,onClick:function(){function j(){return v("callshuttle")}return j}()})}),!!I&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Options",children:(0,e.createComponentVNode)(2,t.Button,{icon:"times",content:"Recall Shuttle",disabled:!T||A,onClick:function(){function j(){return v("cancelshuttle")}return j}()})}),!!x&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Last Call/Recall From",children:x})]})})})],4)},S=function(s,d){var h=(0,a.useBackend)(d),v=h.act,g=h.data,C=g.is_admin;return C?(0,e.createComponentVNode)(2,k):(0,e.createComponentVNode)(2,p)},k=function(s,d){var h=(0,a.useBackend)(d),v=h.act,g=h.data,C=g.is_admin,V=g.gamma_armory_location,b=g.admin_levels,B=g.authenticated,I=g.ert_allowed;return(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"CentComm Actions",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Change Alert",children:(0,e.createComponentVNode)(2,f,{levels:b,required_access:C,use_confirm:1})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Announcement",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"bullhorn",content:"Make Central Announcement",disabled:!C,onClick:function(){function w(){return v("send_to_cc_announcement_page")}return w}()}),B===4&&(0,e.createComponentVNode)(2,t.Button,{icon:"plus",content:"Make Other Announcement",disabled:!C,onClick:function(){function w(){return v("make_other_announcement")}return w}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Response Team",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"ambulance",content:"Dispatch ERT",disabled:!C,onClick:function(){function w(){return v("dispatch_ert")}return w}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:I,content:I?"ERT calling enabled":"ERT calling disabled",tooltip:I?"Command can request an ERT":"ERTs cannot be requested",disabled:!C,onClick:function(){function w(){return v("toggle_ert_allowed")}return w}(),selected:null})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Nuclear Device",children:(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"bomb",content:"Get Authentication Codes",disabled:!C,onClick:function(){function w(){return v("send_nuke_codes")}return w}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Gamma Armory",children:(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"biohazard",content:V?"Send Gamma Armory":"Recall Gamma Armory",disabled:!C,onClick:function(){function w(){return v("move_gamma_armory")}return w}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Other",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"coins",content:"View Economy",disabled:!C,onClick:function(){function w(){return v("view_econ")}return w}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fax",content:"Fax Manager",disabled:!C,onClick:function(){function w(){return v("view_fax")}return w}()})]})]})}),(0,e.createComponentVNode)(2,t.Collapsible,{title:"View Command accessible controls",children:(0,e.createComponentVNode)(2,p)})]})},p=function(s,d){var h=(0,a.useBackend)(d),v=h.act,g=h.data,C=g.msg_cooldown,V=g.emagged,b=g.cc_cooldown,B=g.security_level_color,I=g.str_security_level,w=g.levels,T=g.authcapt,A=g.authhead,x=g.messages,E="Make Priority Announcement";C>0&&(E+=" ("+C+"s)");var M=V?"Message [UNKNOWN]":"Message CentComm",j="Request Authentication Codes";return b>0&&(M+=" ("+b+"s)",j+=" ("+b+"s)"),(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Captain-Only Actions",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Current Alert",color:B,children:I}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Change Alert",children:(0,e.createComponentVNode)(2,f,{levels:w,required_access:T})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Announcement",children:(0,e.createComponentVNode)(2,t.Button,{icon:"bullhorn",content:E,disabled:!T||C>0,onClick:function(){function P(){return v("announce")}return P}()})}),!!V&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Transmit",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"broadcast-tower",color:"red",content:M,disabled:!T||b>0,onClick:function(){function P(){return v("MessageSyndicate")}return P}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"sync-alt",content:"Reset Relays",disabled:!T,onClick:function(){function P(){return v("RestoreBackup")}return P}()})]})||(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Transmit",children:(0,e.createComponentVNode)(2,t.Button,{icon:"broadcast-tower",content:M,disabled:!T||b>0,onClick:function(){function P(){return v("MessageCentcomm")}return P}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Nuclear Device",children:(0,e.createComponentVNode)(2,t.Button,{icon:"bomb",content:j,disabled:!T||b>0,onClick:function(){function P(){return v("nukerequest")}return P}()})})]})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Command Staff Actions",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Displays",children:(0,e.createComponentVNode)(2,t.Button,{icon:"tv",content:"Change Status Displays",disabled:!A,onClick:function(){function P(){return v("status")}return P}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Incoming Messages",children:(0,e.createComponentVNode)(2,t.Button,{icon:"folder-open",content:"View ("+x.length+")",disabled:!A,onClick:function(){function P(){return v("messagelist")}return P}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Misc",children:(0,e.createComponentVNode)(2,t.Button,{icon:"sync-alt",content:"Restart Nano-Mob Hunter GO! Server",disabled:!A,onClick:function(){function P(){return v("RestartNanoMob")}return P}()})})]})})})],4)},l=function(s,d){var h=(0,a.useBackend)(d),v=h.act,g=h.data,C=g.stat_display,V=g.authhead,b=g.current_message_title,B=C.presets.map(function(w){return(0,e.createComponentVNode)(2,t.Button,{content:w.label,selected:w.name===C.type,disabled:!V,onClick:function(){function T(){return v("setstat",{statdisp:w.name})}return T}()},w.name)}),I=C.alerts.map(function(w){return(0,e.createComponentVNode)(2,t.Button,{content:w.label,selected:w.alert===C.icon,disabled:!V,onClick:function(){function T(){return v("setstat",{statdisp:3,alert:w.alert})}return T}()},w.alert)});return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Modify Status Screens",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-circle-left",content:"Back To Main Menu",onClick:function(){function w(){return v("main")}return w}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Presets",children:B}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Alerts",children:I}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Message Line 1",children:(0,e.createComponentVNode)(2,t.Button,{icon:"pencil-alt",content:C.line_1,disabled:!V,onClick:function(){function w(){return v("setmsg1")}return w}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Message Line 2",children:(0,e.createComponentVNode)(2,t.Button,{icon:"pencil-alt",content:C.line_2,disabled:!V,onClick:function(){function w(){return v("setmsg2")}return w}()})})]})})})},c=function(s,d){var h=(0,a.useBackend)(d),v=h.act,g=h.data,C=g.authhead,V=g.current_message_title,b=g.current_message,B=g.messages,I=g.security_level,w;if(V)w=(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:V,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"times",content:"Return To Message List",disabled:!C,onClick:function(){function A(){return v("messagelist")}return A}()}),children:(0,e.createComponentVNode)(2,t.Box,{children:b})})});else{var T=B.map(function(A){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:A.title,children:[(0,e.createComponentVNode)(2,t.Button,{icon:"eye",content:"View",disabled:!C||V===A.title,onClick:function(){function x(){return v("messagelist",{msgid:A.id})}return x}()}),(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"times",content:"Delete",disabled:!C,onClick:function(){function x(){return v("delmessage",{msgid:A.id})}return x}()})]},A.id)});w=(0,e.createComponentVNode)(2,t.Section,{title:"Messages Received",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-circle-left",content:"Back To Main Menu",onClick:function(){function A(){return v("main")}return A}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:T})})}return(0,e.createComponentVNode)(2,t.Box,{children:w})},f=function(s,d){var h=(0,a.useBackend)(d),v=h.act,g=h.data,C=s.levels,V=s.required_access,b=s.use_confirm,B=g.security_level;return b?C.map(function(I){return(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:I.icon,content:I.name,disabled:!V||I.id===B,tooltip:I.tooltip,onClick:function(){function w(){return v("newalertlevel",{level:I.id})}return w}()},I.name)}):C.map(function(I){return(0,e.createComponentVNode)(2,t.Button,{icon:I.icon,content:I.name,disabled:!V||I.id===B,tooltip:I.tooltip,onClick:function(){function w(){return v("newalertlevel",{level:I.id})}return w}()},I.name)})},u=function(s,d){var h=(0,a.useBackend)(d),v=h.act,g=h.data,C=g.is_admin,V=g.possible_cc_sounds;if(!C)return v("main");var b=(0,a.useLocalState)(d,"subtitle",""),B=b[0],I=b[1],w=(0,a.useLocalState)(d,"text",""),T=w[0],A=w[1],x=(0,a.useLocalState)(d,"classified",0),E=x[0],M=x[1],j=(0,a.useLocalState)(d,"beepsound","Beep"),P=j[0],R=j[1];return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Central Command Report",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-circle-left",content:"Back To Main Menu",onClick:function(){function D(){return v("main")}return D}()}),children:[(0,e.createComponentVNode)(2,t.Input,{placeholder:"Enter Subtitle here.",fluid:!0,value:B,onChange:function(){function D(F,W){return I(W)}return D}(),mb:"5px"}),(0,e.createComponentVNode)(2,t.Input,{placeholder:"Enter Announcement here,\nMultiline input is accepted.",rows:10,fluid:!0,multiline:1,value:T,onChange:function(){function D(F,W){return A(W)}return D}()}),(0,e.createComponentVNode)(2,t.Button.Confirm,{content:"Send Announcement",fluid:!0,icon:"paper-plane",center:!0,mt:"5px",textAlign:"center",onClick:function(){function D(){return v("make_cc_announcement",{subtitle:B,text:T,classified:E,beepsound:P})}return D}()}),(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Dropdown,{width:"260px",height:"20px",options:V,selected:P,onSelected:function(){function D(F){return R(F)}return D}(),disabled:E})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"volume-up",mx:"5px",disabled:E,tooltip:"Test sound",onClick:function(){function D(){return v("test_sound",{sound:P})}return D}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:E,content:"Classified",fluid:!0,tooltip:E?"Sent to station communications consoles":"Publically announced",onClick:function(){function D(){return M(!E)}return D}()})})]})]})})}},46868:function(L,r,n){"use strict";r.__esModule=!0,r.CompostBin=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=r.CompostBin=function(){function N(y,S){var k=(0,a.useBackend)(S),p=k.act,l=k.data,c=l.biomass,f=l.compost,u=l.biomass_capacity,i=l.compost_capacity,s=(0,a.useSharedState)(S,"vendAmount",1),d=s[0],h=s[1];return(0,e.createComponentVNode)(2,o.Window,{width:300,height:175,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Section,{label:"Resources",children:[(0,e.createComponentVNode)(2,t.Stack,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Biomass",children:(0,e.createComponentVNode)(2,t.ProgressBar,{ml:1,width:17,value:c,minValue:0,maxValue:u,ranges:{good:[u*.5,1/0],average:[u*.25,u*.5],bad:[-1/0,u*.25]},children:[c," / ",u," Units"]})})})}),(0,e.createComponentVNode)(2,t.Stack,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Compost",children:(0,e.createComponentVNode)(2,t.ProgressBar,{ml:.5,mt:1,width:17,value:f,minValue:0,maxValue:i,ranges:{good:[i*.5,1/0],average:[i*.25,i*.5],bad:[-1/0,i*.25]},children:[f," / ",i," Units"]})})})})]}),(0,e.createComponentVNode)(2,t.Section,{title:"Controls",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{inline:!0,mr:"5px",color:"silver",children:"Soil clumps to make:"}),(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,value:d,width:"32px",minValue:1,maxValue:10,stepPixelSize:7,onChange:function(){function v(g,C){return h(C)}return v}()})],4),children:(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,align:"center",content:"Make Soil",disabled:f<25*d,icon:"arrow-circle-down",onClick:function(){function v(){return p("create",{amount:d})}return v}()})})})]})})})}return N}()},64707:function(L,r,n){"use strict";r.__esModule=!0,r.Contractor=void 0;var e=n(96524),a=n(36121),t=n(17899),o=n(24674),m=n(99509),N=n(45493);function y(v,g){v.prototype=Object.create(g.prototype),v.prototype.constructor=v,S(v,g)}function S(v,g){return S=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function C(V,b){return V.__proto__=b,V}return C}(),S(v,g)}var k={1:["ACTIVE","good"],2:["COMPLETED","good"],3:["FAILED","bad"]},p=["Recording biometric data...","Analyzing embedded syndicate info...","STATUS CONFIRMED","Contacting Syndicate database...","Awaiting response...","Awaiting response...","Awaiting response...","Awaiting response...","Awaiting response...","Awaiting response...","Response received, ack 4851234...","CONFIRM ACC "+Math.round(Math.random()*2e4),"Setting up private accounts...","CONTRACTOR ACCOUNT CREATED","Searching for available contracts...","Searching for available contracts...","Searching for available contracts...","Searching for available contracts...","CONTRACTS FOUND","WELCOME, AGENT"],l=r.Contractor=function(){function v(g,C){var V=(0,t.useBackend)(C),b=V.act,B=V.data,I;B.unauthorized?I=(0,e.createComponentVNode)(2,o.Flex.Item,{grow:"1",backgroundColor:"rgba(0, 0, 0, 0.8)",children:(0,e.createComponentVNode)(2,d,{height:"100%",allMessages:["ERROR: UNAUTHORIZED USER"],finishedTimeout:100,onFinished:function(){function x(){}return x}()})}):B.load_animation_completed?I=(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Flex.Item,{basis:"content",children:(0,e.createComponentVNode)(2,c)}),(0,e.createComponentVNode)(2,o.Flex.Item,{basis:"content",mt:"0.5rem",children:(0,e.createComponentVNode)(2,f)}),(0,e.createComponentVNode)(2,o.Flex.Item,{grow:"1",overflow:"hidden",children:B.page===1?(0,e.createComponentVNode)(2,u,{height:"100%"}):(0,e.createComponentVNode)(2,s,{height:"100%"})})],4):I=(0,e.createComponentVNode)(2,o.Flex.Item,{grow:"1",backgroundColor:"rgba(0, 0, 0, 0.8)",children:(0,e.createComponentVNode)(2,d,{height:"100%",allMessages:p,finishedTimeout:3e3,onFinished:function(){function x(){return b("complete_load_animation")}return x}()})});var w=(0,t.useLocalState)(C,"viewingPhoto",""),T=w[0],A=w[1];return(0,e.createComponentVNode)(2,N.Window,{theme:"syndicate",width:500,height:600,children:[T&&(0,e.createComponentVNode)(2,h),(0,e.createComponentVNode)(2,N.Window.Content,{className:"Contractor",children:(0,e.createComponentVNode)(2,o.Flex,{direction:"column",height:"100%",children:I})})]})}return v}(),c=function(g,C){var V=(0,t.useBackend)(C),b=V.act,B=V.data,I=B.tc_available,w=B.tc_paid_out,T=B.completed_contracts,A=B.rep;return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Section,Object.assign({title:"Summary",buttons:(0,e.createComponentVNode)(2,o.Box,{verticalAlign:"middle",mt:"0.25rem",children:[A," Rep"]})},g,{children:(0,e.createComponentVNode)(2,o.Flex,{children:[(0,e.createComponentVNode)(2,o.Box,{flexBasis:"50%",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"TC Available",verticalAlign:"middle",children:(0,e.createComponentVNode)(2,o.Flex,{align:"center",children:[(0,e.createComponentVNode)(2,o.Flex.Item,{grow:"1",children:[I," TC"]}),(0,e.createComponentVNode)(2,o.Button,{disabled:I<=0,content:"Claim",mx:"0.75rem",mb:"0",flexBasis:"content",onClick:function(){function x(){return b("claim")}return x}()})]})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"TC Earned",children:[w," TC"]})]})}),(0,e.createComponentVNode)(2,o.Box,{flexBasis:"50%",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Contracts Completed",verticalAlign:"middle",children:(0,e.createComponentVNode)(2,o.Box,{height:"20px",lineHeight:"20px",inline:!0,children:T})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Contractor Status",verticalAlign:"middle",children:"ACTIVE"})]})})]})})))},f=function(g,C){var V=(0,t.useBackend)(C),b=V.act,B=V.data,I=B.page;return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Tabs,Object.assign({},g,{children:[(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:I===1,onClick:function(){function w(){return b("page",{page:1})}return w}(),children:[(0,e.createComponentVNode)(2,o.Icon,{name:"suitcase"}),"Contracts"]}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:I===2,onClick:function(){function w(){return b("page",{page:2})}return w}(),children:[(0,e.createComponentVNode)(2,o.Icon,{name:"shopping-cart"}),"Hub"]})]})))},u=function(g,C){var V=(0,t.useBackend)(C),b=V.act,B=V.data,I=B.contracts,w=B.contract_active,T=B.can_extract,A=!!w&&I.filter(function(P){return P.status===1})[0],x=A&&A.time_left>0,E=(0,t.useLocalState)(C,"viewingPhoto",""),M=E[0],j=E[1];return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Section,Object.assign({title:"Available Contracts",overflow:"auto",buttons:(0,e.createComponentVNode)(2,o.Button,{disabled:!T||x,icon:"parachute-box",content:["Call Extraction",x&&(0,e.createComponentVNode)(2,m.Countdown,{timeLeft:A.time_left,format:function(){function P(R,D){return" ("+D.substr(3)+")"}return P}()})],onClick:function(){function P(){return b("extract")}return P}()})},g,{children:I.slice().sort(function(P,R){return P.status===1?-1:R.status===1?1:P.status-R.status}).map(function(P){var R;return(0,e.createComponentVNode)(2,o.Section,{title:(0,e.createComponentVNode)(2,o.Flex,{children:[(0,e.createComponentVNode)(2,o.Flex.Item,{grow:"1",color:P.status===1&&"good",children:P.target_name}),(0,e.createComponentVNode)(2,o.Flex.Item,{basis:"content",children:P.has_photo&&(0,e.createComponentVNode)(2,o.Button,{icon:"camera",mb:"-0.5rem",ml:"0.5rem",onClick:function(){function D(){return j("target_photo_"+P.uid+".png")}return D}()})})]}),className:"Contractor__Contract",buttons:(0,e.createComponentVNode)(2,o.Box,{width:"100%",children:[!!k[P.status]&&(0,e.createComponentVNode)(2,o.Box,{color:k[P.status][1],inline:!0,mt:P.status!==1&&"0.125rem",mr:"0.25rem",lineHeight:"20px",children:k[P.status][0]}),P.status===1&&(0,e.createComponentVNode)(2,o.Button.Confirm,{icon:"ban",color:"bad",content:"Abort",ml:"0.5rem",onClick:function(){function D(){return b("abort")}return D}()})]}),children:(0,e.createComponentVNode)(2,o.Flex,{children:[(0,e.createComponentVNode)(2,o.Flex.Item,{grow:"2",mr:"0.5rem",children:[P.fluff_message,!!P.completed_time&&(0,e.createComponentVNode)(2,o.Box,{color:"good",children:[(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,o.Icon,{name:"check",mr:"0.5rem"}),"Contract completed at ",P.completed_time]}),!!P.dead_extraction&&(0,e.createComponentVNode)(2,o.Box,{color:"bad",mt:"0.5rem",bold:!0,children:[(0,e.createComponentVNode)(2,o.Icon,{name:"exclamation-triangle",mr:"0.5rem"}),"Telecrystals reward reduced drastically as the target was dead during extraction."]}),!!P.fail_reason&&(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:[(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,o.Icon,{name:"times",mr:"0.5rem"}),"Contract failed: ",P.fail_reason]})]}),(0,e.createComponentVNode)(2,o.Flex.Item,{flexBasis:"100%",children:[(0,e.createComponentVNode)(2,o.Flex,{mb:"0.5rem",color:"label",children:["Extraction Zone:\xA0",i(P)]}),(R=P.difficulties)==null?void 0:R.map(function(D,F){return(0,e.createComponentVNode)(2,o.Button.Confirm,{disabled:!!w,content:D.name+" ("+D.reward+" TC)",onClick:function(){function W(){return b("activate",{uid:P.uid,difficulty:F+1})}return W}()},F)}),!!P.objective&&(0,e.createComponentVNode)(2,o.Box,{color:"white",bold:!0,children:[P.objective.extraction_name,(0,e.createVNode)(1,"br"),"(",(P.objective.rewards.tc||0)+" TC",",\xA0",(P.objective.rewards.credits||0)+" Credits",")"]})]})]})},P.uid)})})))},i=function(g){if(!(!g.objective||g.status>1)){var C=g.objective.locs.user_area_id,V=g.objective.locs.user_coords,b=g.objective.locs.target_area_id,B=g.objective.locs.target_coords,I=C===b;return(0,e.createComponentVNode)(2,o.Flex.Item,{children:(0,e.createComponentVNode)(2,o.Icon,{name:I?"dot-circle-o":"arrow-alt-circle-right-o",color:I?"green":"yellow",rotation:I?null:-(0,a.rad2deg)(Math.atan2(B[1]-V[1],B[0]-V[0])),lineHeight:I?null:"0.85",size:"1.5"})})}},s=function(g,C){var V=(0,t.useBackend)(C),b=V.act,B=V.data,I=B.rep,w=B.buyables;return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Section,Object.assign({title:"Available Purchases",overflow:"auto"},g,{children:w.map(function(T){return(0,e.createComponentVNode)(2,o.Section,{title:T.name,children:[T.description,(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,o.Button.Confirm,{disabled:I-1&&(0,e.createComponentVNode)(2,o.Box,{as:"span",color:T.stock===0?"bad":"good",ml:"0.5rem",children:[T.stock," in stock"]})]},T.uid)})})))},d=function(v){function g(V){var b;return b=v.call(this,V)||this,b.timer=null,b.state={currentIndex:0,currentDisplay:[]},b}y(g,v);var C=g.prototype;return C.tick=function(){function V(){var b=this.props,B=this.state;if(B.currentIndex<=b.allMessages.length){this.setState(function(w){return{currentIndex:w.currentIndex+1}});var I=B.currentDisplay;I.push(b.allMessages[B.currentIndex])}else clearTimeout(this.timer),setTimeout(b.onFinished,b.finishedTimeout)}return V}(),C.componentDidMount=function(){function V(){var b=this,B=this.props.linesPerSecond,I=B===void 0?2.5:B;this.timer=setInterval(function(){return b.tick()},1e3/I)}return V}(),C.componentWillUnmount=function(){function V(){clearTimeout(this.timer)}return V}(),C.render=function(){function V(){return(0,e.createComponentVNode)(2,o.Box,{m:1,children:this.state.currentDisplay.map(function(b){return(0,e.createFragment)([b,(0,e.createVNode)(1,"br")],0,b)})})}return V}(),g}(e.Component),h=function(g,C){var V=(0,t.useLocalState)(C,"viewingPhoto",""),b=V[0],B=V[1];return(0,e.createComponentVNode)(2,o.Modal,{className:"Contractor__photoZoom",children:[(0,e.createComponentVNode)(2,o.Box,{as:"img",src:b}),(0,e.createComponentVNode)(2,o.Button,{icon:"times",content:"Close",color:"grey",mt:"1rem",onClick:function(){function I(){return B("")}return I}()})]})}},52141:function(L,r,n){"use strict";r.__esModule=!0,r.ConveyorSwitch=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=r.ConveyorSwitch=function(){function N(y,S){var k=(0,a.useBackend)(S),p=k.act,l=k.data,c=l.slowFactor,f=l.oneWay,u=l.position;return(0,e.createComponentVNode)(2,o.Window,{width:350,height:135,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Lever position",children:u>0?"forward":u<0?"reverse":"neutral"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Allow reverse",children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:!f,onClick:function(){function i(){return p("toggleOneWay")}return i}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Slowdown factor",children:(0,e.createComponentVNode)(2,t.Flex,{children:[(0,e.createComponentVNode)(2,t.Flex.Item,{mx:"1px",children:[" ",(0,e.createComponentVNode)(2,t.Button,{icon:"angle-double-left",onClick:function(){function i(){return p("slowFactor",{value:c-5})}return i}()})," "]}),(0,e.createComponentVNode)(2,t.Flex.Item,{mx:"1px",children:[" ",(0,e.createComponentVNode)(2,t.Button,{icon:"angle-left",onClick:function(){function i(){return p("slowFactor",{value:c-1})}return i}()})," "]}),(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Slider,{width:"100px",mx:"1px",value:c,fillValue:c,minValue:1,maxValue:50,step:1,format:function(){function i(s){return s+"x"}return i}(),onChange:function(){function i(s,d){return p("slowFactor",{value:d})}return i}()})}),(0,e.createComponentVNode)(2,t.Flex.Item,{mx:"1px",children:[" ",(0,e.createComponentVNode)(2,t.Button,{icon:"angle-right",onClick:function(){function i(){return p("slowFactor",{value:c+1})}return i}()})," "]}),(0,e.createComponentVNode)(2,t.Flex.Item,{mx:"1px",children:[" ",(0,e.createComponentVNode)(2,t.Button,{icon:"angle-double-right",onClick:function(){function i(){return p("slowFactor",{value:c+5})}return i}()})," "]})]})})]})})})})}return N}()},94187:function(L,r,n){"use strict";r.__esModule=!0,r.CrewMonitor=void 0;var e=n(96524),a=n(50640),t=n(78234),o=n(17899),m=n(24674),N=n(5126),y=n(38424),S=n(45493),k=function(i,s){return i.dead?"Deceased":parseInt(i.health,10)<=s?"Critical":parseInt(i.stat,10)===1?"Unconscious":"Living"},p=function(i,s){return i.dead?"red":parseInt(i.health,10)<=s?"orange":parseInt(i.stat,10)===1?"blue":"green"},l=r.CrewMonitor=function(){function u(i,s){var d=(0,o.useBackend)(s),h=d.act,v=d.data,g=(0,o.useLocalState)(s,"tabIndex",0),C=g[0],V=g[1],b=function(){function B(I){switch(I){case 0:return(0,e.createComponentVNode)(2,c);case 1:return(0,e.createComponentVNode)(2,f);default:return"WE SHOULDN'T BE HERE!"}}return B}();return(0,e.createComponentVNode)(2,S.Window,{width:800,height:600,children:(0,e.createComponentVNode)(2,S.Window.Content,{children:(0,e.createComponentVNode)(2,m.Stack,{fill:!0,vertical:!0,fillPositionedParent:!0,children:[(0,e.createComponentVNode)(2,m.Stack.Item,{children:(0,e.createComponentVNode)(2,m.Tabs,{children:[(0,e.createComponentVNode)(2,m.Tabs.Tab,{icon:"table",selected:C===0,onClick:function(){function B(){return V(0)}return B}(),children:"Data View"},"DataView"),(0,e.createComponentVNode)(2,m.Tabs.Tab,{icon:"map-marked-alt",selected:C===1,onClick:function(){function B(){return V(1)}return B}(),children:"Map View"},"MapView")]})}),b(C)]})})})}return u}(),c=function(i,s){var d=(0,o.useBackend)(s),h=d.act,v=d.data,g=(0,a.sortBy)(function(A){return A.name})(v.crewmembers||[]),C=v.possible_levels,V=v.viewing_current_z_level,b=v.is_advanced,B=(0,o.useLocalState)(s,"search",""),I=B[0],w=B[1],T=(0,t.createSearch)(I,function(A){return A.name+"|"+A.assignment+"|"+A.area});return(0,e.createComponentVNode)(2,m.Section,{fill:!0,scrollable:!0,backgroundColor:"transparent",children:[(0,e.createComponentVNode)(2,m.Stack,{children:[(0,e.createComponentVNode)(2,m.Stack.Item,{width:"100%",ml:"5px",children:(0,e.createComponentVNode)(2,m.Input,{placeholder:"Search by name, assignment or location..",width:"100%",onInput:function(){function A(x,E){return w(E)}return A}()})}),(0,e.createComponentVNode)(2,m.Stack.Item,{children:b?(0,e.createComponentVNode)(2,m.Dropdown,{mr:"5px",width:"50px",options:C,selected:V,onSelected:function(){function A(x){return h("switch_level",{new_level:x})}return A}()}):null})]}),(0,e.createComponentVNode)(2,m.Table,{m:"0.5rem",children:[(0,e.createComponentVNode)(2,m.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,m.Table.Cell,{children:"Name"}),(0,e.createComponentVNode)(2,m.Table.Cell,{children:"Status"}),(0,e.createComponentVNode)(2,m.Table.Cell,{children:"Location"})]}),g.filter(T).map(function(A){return(0,e.createComponentVNode)(2,m.Table.Row,{bold:!!A.is_command,children:[(0,e.createComponentVNode)(2,N.TableCell,{children:[A.name," (",A.assignment,")"]}),(0,e.createComponentVNode)(2,N.TableCell,{children:[(0,e.createComponentVNode)(2,m.Box,{inline:!0,color:p(A,v.critThreshold),children:k(A,v.critThreshold)}),A.sensor_type>=2||v.ignoreSensors?(0,e.createComponentVNode)(2,m.Box,{inline:!0,ml:1,children:["(",(0,e.createComponentVNode)(2,m.Box,{inline:!0,color:y.COLORS.damageType.oxy,children:A.oxy}),"|",(0,e.createComponentVNode)(2,m.Box,{inline:!0,color:y.COLORS.damageType.toxin,children:A.tox}),"|",(0,e.createComponentVNode)(2,m.Box,{inline:!0,color:y.COLORS.damageType.burn,children:A.fire}),"|",(0,e.createComponentVNode)(2,m.Box,{inline:!0,color:y.COLORS.damageType.brute,children:A.brute}),")"]}):null]}),(0,e.createComponentVNode)(2,N.TableCell,{children:A.sensor_type===3||v.ignoreSensors?v.isAI||v.isObserver?(0,e.createComponentVNode)(2,m.Button,{fluid:!0,icon:"location-arrow",content:A.area+" ("+A.x+", "+A.y+")",onClick:function(){function x(){return h("track",{track:A.ref})}return x}()}):A.area+" ("+A.x+", "+A.y+")":(0,e.createComponentVNode)(2,m.Box,{inline:!0,color:"grey",children:"Not Available"})})]},A.name)})]})]})},f=function(i,s){var d=(0,o.useBackend)(s),h=d.act,v=d.data,g=(0,o.useLocalState)(s,"zoom",1),C=g[0],V=g[1];return(0,e.createComponentVNode)(2,m.Box,{height:"526px",mb:"0.5rem",overflow:"hidden",children:(0,e.createComponentVNode)(2,m.NanoMap,{onZoom:function(){function b(B){return V(B)}return b}(),children:v.crewmembers.filter(function(b){return b.sensor_type===3||v.ignoreSensors}).map(function(b){return(0,e.createComponentVNode)(2,m.NanoMap.Marker,{x:b.x,y:b.y,zoom:C,icon:"circle",tooltip:b.name+" ("+b.assignment+")",color:p(b,v.critThreshold),onClick:function(){function B(){return v.isObserver?h("track",{track:b.ref}):null}return B}()},b.ref)})})})}},60561:function(L,r,n){"use strict";r.__esModule=!0,r.Cryo=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=[{label:"Resp.",type:"oxyLoss"},{label:"Toxin",type:"toxLoss"},{label:"Brute",type:"bruteLoss"},{label:"Burn",type:"fireLoss"}],N=[["good","Conscious"],["average","Unconscious"],["bad","DEAD"]],y=r.Cryo=function(){function p(l,c){return(0,e.createComponentVNode)(2,o.Window,{width:520,height:500,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,S)})})})}return p}(),S=function(l,c){var f=(0,a.useBackend)(c),u=f.act,i=f.data,s=i.isOperating,d=i.hasOccupant,h=i.occupant,v=h===void 0?[]:h,g=i.cellTemperature,C=i.cellTemperatureStatus,V=i.isBeakerLoaded,b=i.cooldownProgress,B=i.auto_eject_healthy,I=i.auto_eject_dead;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Occupant",fill:!0,scrollable:!0,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"user-slash",onClick:function(){function w(){return u("ejectOccupant")}return w}(),disabled:!d,children:"Eject"}),children:d?(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Occupant",children:v.name||"Unknown"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Health",children:(0,e.createComponentVNode)(2,t.ProgressBar,{min:v.health,max:v.maxHealth,value:v.health/v.maxHealth,color:v.health>0?"good":"average",children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:Math.round(v.health)})})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",color:N[v.stat][0],children:N[v.stat][1]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Temperature",children:[(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:Math.round(v.bodyTemperature)})," K"]}),(0,e.createComponentVNode)(2,t.LabeledList.Divider),m.map(function(w){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:w.label,children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:v[w.type]/100,ranges:{bad:[.01,1/0]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:Math.round(v[w.type])})})},w.id)})]}):(0,e.createComponentVNode)(2,t.Stack,{fill:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,align:"center",color:"label",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,e.createVNode)(1,"br"),"No occupant detected."]})})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Cell",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"eject",onClick:function(){function w(){return u("ejectBeaker")}return w}(),disabled:!V,children:"Eject Beaker"}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power",children:(0,e.createComponentVNode)(2,t.Button,{icon:"power-off",onClick:function(){function w(){return u(s?"switchOff":"switchOn")}return w}(),selected:s,children:s?"On":"Off"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Temperature",color:C,children:[(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:g})," K"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Beaker",children:(0,e.createComponentVNode)(2,k)}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Dosage interval",children:(0,e.createComponentVNode)(2,t.ProgressBar,{ranges:{average:[-1/0,99],good:[99,1/0]},color:!V&&"average",value:b,minValue:0,maxValue:100})}),(0,e.createComponentVNode)(2,t.LabeledList.Divider),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Auto-eject healthy occupants",children:(0,e.createComponentVNode)(2,t.Button,{icon:B?"toggle-on":"toggle-off",selected:B,onClick:function(){function w(){return u(B?"auto_eject_healthy_off":"auto_eject_healthy_on")}return w}(),children:B?"On":"Off"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Auto-eject dead occupants",children:(0,e.createComponentVNode)(2,t.Button,{icon:I?"toggle-on":"toggle-off",selected:I,onClick:function(){function w(){return u(I?"auto_eject_dead_off":"auto_eject_dead_on")}return w}(),children:I?"On":"Off"})})]})})})],4)},k=function(l,c){var f=(0,a.useBackend)(c),u=f.act,i=f.data,s=i.isBeakerLoaded,d=i.beakerLabel,h=i.beakerVolume;return s?(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{inline:!0,color:!d&&"average",children:[d||"No label",":"]}),(0,e.createComponentVNode)(2,t.Box,{inline:!0,color:!h&&"bad",ml:1,children:h?(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:h,format:function(){function v(g){return Math.round(g)+" units remaining"}return v}()}):"Beaker is empty"})],4):(0,e.createComponentVNode)(2,t.Box,{inline:!0,color:"bad",children:"No beaker loaded"})}},27889:function(L,r,n){"use strict";r.__esModule=!0,r.CryopodConsole=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=n(78234),N=r.CryopodConsole=function(){function k(p,l){var c=(0,a.useBackend)(l),f=c.data,u=f.account_name,i=f.allow_items;return(0,e.createComponentVNode)(2,o.Window,{title:"Cryopod Console",width:400,height:480,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Hello, "+(u||"[REDACTED]")+"!",children:"This automated cryogenic freezing unit will safely store your corporeal form until your next assignment."}),(0,e.createComponentVNode)(2,y),!!i&&(0,e.createComponentVNode)(2,S)]})})}return k}(),y=function(p,l){var c=(0,a.useBackend)(l),f=c.data,u=f.frozen_crew;return(0,e.createComponentVNode)(2,t.Collapsible,{title:"Stored Crew",children:u.length?(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:u.map(function(i,s){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:i.name,children:i.rank},s)})})}):(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No stored crew!"})})},S=function(p,l){var c=(0,a.useBackend)(l),f=c.act,u=c.data,i=u.frozen_items,s=function(h){var v=h.toString();return v.startsWith("the ")&&(v=v.slice(4,v.length)),(0,m.toTitleCase)(v)};return(0,e.createComponentVNode)(2,t.Collapsible,{title:"Stored Items",children:i.length?(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:i.map(function(d){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:s(d.name),buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-down",content:"Drop",mr:1,onClick:function(){function h(){return f("one_item",{item:d.uid})}return h}()})},d)})})}),(0,e.createComponentVNode)(2,t.Button,{content:"Drop All Items",color:"red",onClick:function(){function d(){return f("all_items")}return d}()})],4):(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No stored items!"})})}},81434:function(L,r,n){"use strict";r.__esModule=!0,r.DNAModifier=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=n(99665),N=[["good","Alive"],["average","Critical"],["bad","DEAD"]],y=[["ui","Modify U.I.","dna"],["se","Modify S.E.","dna"],["buffer","Transfer Buffers","syringe"],["rejuvenators","Rejuvenators","flask"]],S=[5,10,20,30,50],k=r.DNAModifier=function(){function C(V,b){var B=(0,a.useBackend)(b),I=B.act,w=B.data,T=w.irradiating,A=w.dnaBlockSize,x=w.occupant;b.dnaBlockSize=A,b.isDNAInvalid=!x.isViableSubject||!x.uniqueIdentity||!x.structuralEnzymes;var E;return T&&(E=(0,e.createComponentVNode)(2,v,{duration:T})),(0,e.createComponentVNode)(2,o.Window,{width:660,height:775,children:[(0,e.createComponentVNode)(2,m.ComplexModal),E,(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,p)}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,l)})]})})]})}return C}(),p=function(V,b){var B=(0,a.useBackend)(b),I=B.act,w=B.data,T=w.locked,A=w.hasOccupant,x=w.occupant;return(0,e.createComponentVNode)(2,t.Section,{title:"Occupant",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{color:"label",inline:!0,mr:"0.5rem",children:"Door Lock:"}),(0,e.createComponentVNode)(2,t.Button,{disabled:!A,selected:T,icon:T?"toggle-on":"toggle-off",content:T?"Engaged":"Disengaged",onClick:function(){function E(){return I("toggleLock")}return E}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:!A||T,icon:"user-slash",content:"Eject",onClick:function(){function E(){return I("ejectOccupant")}return E}()})],4),children:A?(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Name",children:x.name}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Health",children:(0,e.createComponentVNode)(2,t.ProgressBar,{min:x.minHealth,max:x.maxHealth,value:x.health/x.maxHealth,ranges:{good:[.5,1/0],average:[0,.5],bad:[-1/0,0]}})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",color:N[x.stat][0],children:N[x.stat][1]}),(0,e.createComponentVNode)(2,t.LabeledList.Divider)]})}),b.isDNAInvalid?(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"exclamation-circle"}),"\xA0 The occupant's DNA structure is ruined beyond recognition, please insert a subject with an intact DNA structure."]}):(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Radiation",children:(0,e.createComponentVNode)(2,t.ProgressBar,{min:"0",max:"100",value:x.radiationLevel/100,color:"average"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Unique Enzymes",children:w.occupant.uniqueEnzymes?w.occupant.uniqueEnzymes:(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"exclamation-circle"}),"\xA0 Unknown"]})})]})],0):(0,e.createComponentVNode)(2,t.Box,{color:"label",children:"Cell unoccupied."})})},l=function(V,b){var B=(0,a.useBackend)(b),I=B.act,w=B.data,T=w.selectedMenuKey,A=w.hasOccupant,x=w.occupant;if(A){if(b.isDNAInvalid)return(0,e.createComponentVNode)(2,t.Section,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,align:"center",textAlign:"center",color:"label",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,e.createVNode)(1,"br"),"No operation possible on this subject."]})})})}else return(0,e.createComponentVNode)(2,t.Section,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,align:"center",textAlign:"center",color:"label",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,e.createVNode)(1,"br"),"No occupant in DNA modifier."]})})});var E;return T==="ui"?E=(0,e.createFragment)([(0,e.createComponentVNode)(2,c),(0,e.createComponentVNode)(2,u)],4):T==="se"?E=(0,e.createFragment)([(0,e.createComponentVNode)(2,f),(0,e.createComponentVNode)(2,u)],4):T==="buffer"?E=(0,e.createComponentVNode)(2,i):T==="rejuvenators"&&(E=(0,e.createComponentVNode)(2,h)),(0,e.createComponentVNode)(2,t.Section,{fill:!0,children:[(0,e.createComponentVNode)(2,t.Tabs,{children:y.map(function(M,j){return(0,e.createComponentVNode)(2,t.Tabs.Tab,{icon:M[2],selected:T===M[0],onClick:function(){function P(){return I("selectMenuKey",{key:M[0]})}return P}(),children:M[1]},j)})}),E]})},c=function(V,b){var B=(0,a.useBackend)(b),I=B.act,w=B.data,T=w.selectedUIBlock,A=w.selectedUISubBlock,x=w.selectedUITarget,E=w.occupant;return(0,e.createComponentVNode)(2,t.Section,{title:"Modify Unique Identifier",children:[(0,e.createComponentVNode)(2,g,{dnaString:E.uniqueIdentity,selectedBlock:T,selectedSubblock:A,blockSize:b.dnaBlockSize,action:"selectUIBlock"}),(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Target",children:(0,e.createComponentVNode)(2,t.Knob,{minValue:1,maxValue:15,stepPixelSize:"20",value:x,format:function(){function M(j){return j.toString(16).toUpperCase()}return M}(),ml:"0",onChange:function(){function M(j,P){return I("changeUITarget",{value:P})}return M}()})})}),(0,e.createComponentVNode)(2,t.Button,{icon:"radiation",content:"Irradiate Block",mt:"0.5rem",onClick:function(){function M(){return I("pulseUIRadiation")}return M}()})]})},f=function(V,b){var B=(0,a.useBackend)(b),I=B.act,w=B.data,T=w.selectedSEBlock,A=w.selectedSESubBlock,x=w.occupant;return(0,e.createComponentVNode)(2,t.Section,{title:"Modify Structural Enzymes",children:[(0,e.createComponentVNode)(2,g,{dnaString:x.structuralEnzymes,selectedBlock:T,selectedSubblock:A,blockSize:b.dnaBlockSize,action:"selectSEBlock"}),(0,e.createComponentVNode)(2,t.Button,{icon:"radiation",content:"Irradiate Block",onClick:function(){function E(){return I("pulseSERadiation")}return E}()})]})},u=function(V,b){var B=(0,a.useBackend)(b),I=B.act,w=B.data,T=w.radiationIntensity,A=w.radiationDuration;return(0,e.createComponentVNode)(2,t.Section,{title:"Radiation Emitter",children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Intensity",children:(0,e.createComponentVNode)(2,t.Knob,{minValue:1,maxValue:10,stepPixelSize:20,value:T,popUpPosition:"right",ml:"0",onChange:function(){function x(E,M){return I("radiationIntensity",{value:M})}return x}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Duration",children:(0,e.createComponentVNode)(2,t.Knob,{minValue:1,maxValue:20,stepPixelSize:10,unit:"s",value:A,popUpPosition:"right",ml:"0",onChange:function(){function x(E,M){return I("radiationDuration",{value:M})}return x}()})})]}),(0,e.createComponentVNode)(2,t.Button,{icon:"radiation",content:"Pulse Radiation",tooltip:"Mutates a random block of either the occupant's UI or SE.",tooltipPosition:"top-start",mt:"0.5rem",onClick:function(){function x(){return I("pulseRadiation")}return x}()})]})},i=function(V,b){var B=(0,a.useBackend)(b),I=B.act,w=B.data,T=w.buffers,A=T.map(function(x,E){return(0,e.createComponentVNode)(2,s,{id:E+1,name:"Buffer "+(E+1),buffer:x},E)});return(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{height:"75%",mt:1,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Buffers",children:A})}),(0,e.createComponentVNode)(2,t.Stack.Item,{height:"25%",children:(0,e.createComponentVNode)(2,d)})]})},s=function(V,b){var B=(0,a.useBackend)(b),I=B.act,w=B.data,T=V.id,A=V.name,x=V.buffer,E=w.isInjectorReady,M=A+(x.data?" - "+x.label:"");return(0,e.createComponentVNode)(2,t.Box,{backgroundColor:"rgba(0, 0, 0, 0.33)",mb:"0.5rem",children:(0,e.createComponentVNode)(2,t.Section,{title:M,mx:"0",lineHeight:"18px",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button.Confirm,{disabled:!x.data,icon:"trash",content:"Clear",onClick:function(){function j(){return I("bufferOption",{option:"clear",id:T})}return j}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:!x.data,icon:"pen",content:"Rename",onClick:function(){function j(){return I("bufferOption",{option:"changeLabel",id:T})}return j}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:!x.data||!w.hasDisk,icon:"save",content:"Export",tooltip:"Exports this buffer to the currently loaded data disk.",tooltipPosition:"bottom-start",onClick:function(){function j(){return I("bufferOption",{option:"saveDisk",id:T})}return j}()})],4),children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Write",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-circle-down",content:"Subject U.I",mb:"0",onClick:function(){function j(){return I("bufferOption",{option:"saveUI",id:T})}return j}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-circle-down",content:"Subject U.I and U.E.",mb:"0",onClick:function(){function j(){return I("bufferOption",{option:"saveUIAndUE",id:T})}return j}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-circle-down",content:"Subject S.E.",mb:"0",onClick:function(){function j(){return I("bufferOption",{option:"saveSE",id:T})}return j}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:!w.hasDisk||!w.disk.data,icon:"arrow-circle-down",content:"From Disk",mb:"0",onClick:function(){function j(){return I("bufferOption",{option:"loadDisk",id:T})}return j}()})]}),!!x.data&&(0,e.createFragment)([(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Subject",children:x.owner||(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"Unknown"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Data Type",children:[x.type==="ui"?"Unique Identifiers":"Structural Enzymes",!!x.ue&&" and Unique Enzymes"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Transfer to",children:[(0,e.createComponentVNode)(2,t.Button,{disabled:!E,icon:E?"syringe":"spinner",iconSpin:!E,content:"Injector",mb:"0",onClick:function(){function j(){return I("bufferOption",{option:"createInjector",id:T})}return j}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:!E,icon:E?"syringe":"spinner",iconSpin:!E,content:"Block Injector",mb:"0",onClick:function(){function j(){return I("bufferOption",{option:"createInjector",id:T,block:1})}return j}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"user",content:"Subject",mb:"0",onClick:function(){function j(){return I("bufferOption",{option:"transfer",id:T})}return j}()})]})],4)]}),!x.data&&(0,e.createComponentVNode)(2,t.Box,{color:"label",mt:"0.5rem",children:"This buffer is empty."})]})})},d=function(V,b){var B=(0,a.useBackend)(b),I=B.act,w=B.data,T=w.hasDisk,A=w.disk;return(0,e.createComponentVNode)(2,t.Section,{title:"Data Disk",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button.Confirm,{disabled:!T||!A.data,icon:"trash",content:"Wipe",onClick:function(){function x(){return I("wipeDisk")}return x}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:!T,icon:"eject",content:"Eject",onClick:function(){function x(){return I("ejectDisk")}return x}()})],4),children:T?A.data?(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Label",children:A.label?A.label:"No label"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Subject",children:A.owner?A.owner:(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"Unknown"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Data Type",children:[A.type==="ui"?"Unique Identifiers":"Structural Enzymes",!!A.ue&&" and Unique Enzymes"]})]}):(0,e.createComponentVNode)(2,t.Box,{color:"label",children:"Disk is blank."}):(0,e.createComponentVNode)(2,t.Box,{color:"label",textAlign:"center",my:"1rem",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"save-o",size:"4"}),(0,e.createVNode)(1,"br"),"No disk inserted."]})})},h=function(V,b){var B=(0,a.useBackend)(b),I=B.act,w=B.data,T=w.isBeakerLoaded,A=w.beakerVolume,x=w.beakerLabel;return(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Rejuvenators and Beaker",buttons:(0,e.createComponentVNode)(2,t.Button,{disabled:!T,icon:"eject",content:"Eject",onClick:function(){function E(){return I("ejectBeaker")}return E}()}),children:T?(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Inject",children:[S.map(function(E,M){return(0,e.createComponentVNode)(2,t.Button,{disabled:E>A,icon:"syringe",content:E,onClick:function(){function j(){return I("injectRejuvenators",{amount:E})}return j}()},M)}),(0,e.createComponentVNode)(2,t.Button,{disabled:A<=0,icon:"syringe",content:"All",onClick:function(){function E(){return I("injectRejuvenators",{amount:A})}return E}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Beaker",children:[(0,e.createComponentVNode)(2,t.Box,{mb:"0.5rem",children:x||"No label"}),A?(0,e.createComponentVNode)(2,t.Box,{color:"good",children:[A," unit",A===1?"":"s"," remaining"]}):(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:"Empty"})]})]}):(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,grow:!0,textAlign:"center",align:"center",color:"label",children:[(0,e.createComponentVNode)(2,t.Icon.Stack,{children:[(0,e.createComponentVNode)(2,t.Icon,{name:"flask",size:5,color:"silver"}),(0,e.createComponentVNode)(2,t.Icon,{name:"slash",size:5,color:"red"})]}),(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"h3",null,"No beaker loaded.",16)]})})})},v=function(V,b){return(0,e.createComponentVNode)(2,t.Dimmer,{textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"spinner",size:"5",spin:!0}),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Box,{color:"average",children:(0,e.createVNode)(1,"h1",null,[(0,e.createComponentVNode)(2,t.Icon,{name:"radiation"}),(0,e.createTextVNode)("\xA0Irradiating occupant\xA0"),(0,e.createComponentVNode)(2,t.Icon,{name:"radiation"})],4)}),(0,e.createComponentVNode)(2,t.Box,{color:"label",children:(0,e.createVNode)(1,"h3",null,[(0,e.createTextVNode)("For "),V.duration,(0,e.createTextVNode)(" second"),V.duration===1?"":"s"],0)})]})},g=function(V,b){for(var B=(0,a.useBackend)(b),I=B.act,w=B.data,T=V.dnaString,A=V.selectedBlock,x=V.selectedSubblock,E=V.blockSize,M=V.action,j=T.split(""),P=0,R=[],D=function(){for(var _=F/E+1,H=[],z=function(){var J=$+1;H.push((0,e.createComponentVNode)(2,t.Button,{selected:A===_&&x===J,content:j[F+$],mb:"0",onClick:function(){function ce(){return I(M,{block:_,subblock:J})}return ce}()}))},$=0;$d.spawnpoints?"red":"green",children:[d.total," total, versus ",d.spawnpoints," spawnpoints"]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Dispatch",children:(0,e.createComponentVNode)(2,t.Button,{width:10.5,textAlign:"center",icon:"ambulance",content:"Send ERT",onClick:function(){function V(){return s("dispatch_ert",{silent:g})}return V}()})})]})})})},p=function(f,u){var i=(0,a.useBackend)(u),s=i.act,d=i.data,h=d.ert_request_messages;return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,children:h&&h.length?h.map(function(v){return(0,e.createComponentVNode)(2,t.Section,{title:v.time,buttons:(0,e.createComponentVNode)(2,t.Button,{content:v.sender_real_name,onClick:function(){function g(){return s("view_player_panel",{uid:v.sender_uid})}return g}(),tooltip:"View player panel"}),children:v.message},(0,m.decodeHtmlEntities)(v.time))}):(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,grow:!0,textAlign:"center",align:"center",color:"average",children:[(0,e.createComponentVNode)(2,t.Icon.Stack,{children:[(0,e.createComponentVNode)(2,t.Icon,{name:"broadcast-tower",size:5,color:"gray"}),(0,e.createComponentVNode)(2,t.Icon,{name:"slash",size:5,color:"red"})]}),(0,e.createVNode)(1,"br"),"No ERT requests."]})})})})},l=function(f,u){var i=(0,a.useBackend)(u),s=i.act,d=i.data,h=(0,a.useLocalState)(u,"text",""),v=h[0],g=h[1];return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,children:[(0,e.createComponentVNode)(2,t.Input,{placeholder:"Enter ERT denial reason here,\nMultiline input is accepted.",rows:19,fluid:!0,multiline:1,value:v,onChange:function(){function C(V,b){return g(b)}return C}()}),(0,e.createComponentVNode)(2,t.Button.Confirm,{content:"Deny ERT",fluid:!0,icon:"times",center:!0,mt:2,textAlign:"center",onClick:function(){function C(){return s("deny_ert",{reason:v})}return C}()})]})})}},24503:function(L,r,n){"use strict";r.__esModule=!0,r.EconomyManager=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=n(99665),N=r.EconomyManager=function(){function S(k,p){return(0,e.createComponentVNode)(2,o.Window,{width:600,height:350,children:[(0,e.createComponentVNode)(2,m.ComplexModal),(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,className:"Layout__content--flexColumn",children:(0,e.createComponentVNode)(2,y)})]})}return S}(),y=function(k,p){var l=(0,a.useBackend)(p),c=l.act,f=l.data,u=f.next_payroll_time;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{children:[(0,e.createComponentVNode)(2,t.Box,{fontSize:"1.4rem",bold:!0,children:[(0,e.createComponentVNode)(2,t.Icon,{name:"coins",verticalAlign:"middle",size:3,mr:"1rem"}),"Economy Manager"]}),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.LabeledList,{label:"Pay Bonuses and Deductions",children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Global",children:(0,e.createComponentVNode)(2,t.Button,{icon:"dollar-sign",width:"auto",content:"Global Payroll Modification",onClick:function(){function i(){return c("payroll_modification",{mod_type:"global"})}return i}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Department Accounts",children:(0,e.createComponentVNode)(2,t.Button,{icon:"dollar-sign",width:"auto",content:"Department Account Payroll Modification",onClick:function(){function i(){return c("payroll_modification",{mod_type:"department"})}return i}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Department Members",children:(0,e.createComponentVNode)(2,t.Button,{icon:"dollar-sign",width:"auto",content:"Department Members Payroll Modification",onClick:function(){function i(){return c("payroll_modification",{mod_type:"department_members"})}return i}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Single Accounts",children:(0,e.createComponentVNode)(2,t.Button,{icon:"dollar-sign",width:"auto",content:"Crew Member Payroll Modification",onClick:function(){function i(){return c("payroll_modification",{mod_type:"crew_member"})}return i}()})})]}),(0,e.createVNode)(1,"hr"),(0,e.createComponentVNode)(2,t.Box,{mb:.5,children:["Next Payroll in: ",u," Minutes"]}),(0,e.createComponentVNode)(2,t.Button,{icon:"angle-double-left",width:"auto",color:"bad",content:"Delay Payroll",onClick:function(){function i(){return c("delay_payroll")}return i}()}),(0,e.createComponentVNode)(2,t.Button,{width:"auto",content:"Set Payroll Time",onClick:function(){function i(){return c("set_payroll")}return i}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"angle-double-right",width:"auto",color:"good",content:"Accelerate Payroll",onClick:function(){function i(){return c("accelerate_payroll")}return i}()})]}),(0,e.createComponentVNode)(2,t.NoticeBox,{children:[(0,e.createVNode)(1,"b",null,"WARNING:",16)," You take full responsibility for unbalancing the economy with these buttons"]})],4)}},15543:function(L,r,n){"use strict";r.__esModule=!0,r.Electropack=void 0;var e=n(96524),a=n(36121),t=n(17899),o=n(24674),m=n(45493),N=r.Electropack=function(){function y(S,k){var p=(0,t.useBackend)(k),l=p.act,c=p.data,f=c.power,u=c.code,i=c.frequency,s=c.minFrequency,d=c.maxFrequency;return(0,e.createComponentVNode)(2,m.Window,{width:360,height:135,children:(0,e.createComponentVNode)(2,m.Window.Content,{children:(0,e.createComponentVNode)(2,o.Section,{children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Power",children:(0,e.createComponentVNode)(2,o.Button,{icon:f?"power-off":"times",content:f?"On":"Off",selected:f,onClick:function(){function h(){return l("power")}return h}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Frequency",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"sync",content:"Reset",onClick:function(){function h(){return l("reset",{reset:"freq"})}return h}()}),children:(0,e.createComponentVNode)(2,o.NumberInput,{animate:!0,unit:"kHz",step:.2,stepPixelSize:6,minValue:s/10,maxValue:d/10,value:i/10,format:function(){function h(v){return(0,a.toFixed)(v,1)}return h}(),width:"80px",onChange:function(){function h(v,g){return l("freq",{freq:g})}return h}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Code",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"sync",content:"Reset",onClick:function(){function h(){return l("reset",{reset:"code"})}return h}()}),children:(0,e.createComponentVNode)(2,o.NumberInput,{animate:!0,step:1,stepPixelSize:6,minValue:1,maxValue:100,value:u,width:"80px",onChange:function(){function h(v,g){return l("code",{code:g})}return h}()})})]})})})})}return y}()},57013:function(L,r,n){"use strict";r.__esModule=!0,r.Emojipedia=void 0;var e=n(96524),a=n(28234),t=n(17899),o=n(24674),m=n(45493),N=r.Emojipedia=function(){function S(k,p){var l=(0,t.useBackend)(p),c=l.data,f=c.emoji_list,u=(0,t.useLocalState)(p,"searchText",""),i=u[0],s=u[1],d=f.filter(function(h){return h.name.toLowerCase().includes(i.toLowerCase())});return(0,e.createComponentVNode)(2,m.Window,{width:325,height:400,children:(0,e.createComponentVNode)(2,m.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"Emojipedia v1.0.1",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Input,{placeholder:"Search by name",value:i,onInput:function(){function h(v,g){return s(g)}return h}()}),(0,e.createComponentVNode)(2,o.Button,{tooltip:"Click on an emoji to copy its tag!",tooltipPosition:"bottom",icon:"circle-question"})],4),children:d.map(function(h){return(0,e.createComponentVNode)(2,o.Button,{m:1,color:"transparent",className:(0,a.classes)(["emoji16x16","emoji-"+h.name]),style:{transform:"scale(1.5)"},tooltip:h.name,onClick:function(){function v(){y(h.name)}return v}()},h.name)})})})})}return S}(),y=function(k){var p=document.createElement("input"),l=":"+k+":";p.value=l,document.body.appendChild(p),p.select(),document.execCommand("copy"),document.body.removeChild(p)}},75450:function(L,r,n){"use strict";r.__esModule=!0,r.EmotePanelContent=r.EmotePanel=void 0;var e=n(96524),a=n(17899),t=n(45493),o=n(24674),m=n(78234),N=r.EmotePanel=function(){function S(k,p){return(0,e.createComponentVNode)(2,t.Window,{width:500,height:550,children:(0,e.createComponentVNode)(2,t.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,y)})})})}return S}(),y=r.EmotePanelContent=function(){function S(k,p){var l=(0,a.useBackend)(p),c=l.act,f=l.data,u=f.emotes,i=(0,a.useLocalState)(p,"searchText",""),s=i[0],d=i[1],h=(0,a.useLocalState)(p,"filterVisible",""),v=h[0],g=h[1],C=(0,a.useLocalState)(p,"filterAudible",""),V=C[0],b=C[1],B=(0,a.useLocalState)(p,"filterSound",""),I=B[0],w=B[1],T=(0,a.useLocalState)(p,"filterHands",""),A=T[0],x=T[1],E=(0,a.useLocalState)(p,"filterTargettable",""),M=E[0],j=E[1],P=(0,a.useLocalState)(p,"useTarget",""),R=P[0],D=P[1],F=(0,e.createComponentVNode)(2,o.Input,{placeholder:"\u0418\u0441\u043A\u0430\u0442\u044C \u044D\u043C\u043E\u0446\u0438\u044E...",fluid:!0,onInput:function(){function W(_,H){return d(H)}return W}()});return(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,title:"\u0424\u0438\u043B\u044C\u0442\u0440\u044B",buttons:(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.Button,{icon:"eye",align:"center",tooltip:"\u0412\u0438\u0434\u0438\u043C\u044B\u0439",selected:v,onClick:function(){function W(){return g(!v)}return W}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"comment",align:"center",tooltip:"\u0421\u043B\u044B\u0448\u0438\u043C\u044B\u0439",selected:V,onClick:function(){function W(){return b(!V)}return W}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"volume-up",align:"center",tooltip:"\u0417\u0432\u0443\u043A",selected:I,onClick:function(){function W(){return w(!I)}return W}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"hand-paper",align:"center",tooltip:"\u0420\u0443\u043A\u0438",selected:A,onClick:function(){function W(){return x(!A)}return W}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"crosshairs",height:"100%",align:"center",tooltip:"\u0426\u0435\u043B\u044C",selected:M,onClick:function(){function W(){return j(!M)}return W}()})]}),children:F})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:s.length>0?'\u0420\u0435\u0437\u0443\u043B\u044C\u0442\u0430\u0442\u044B \u043F\u043E\u0438\u0441\u043A\u0430 "'+s+'"':"\u0412\u0441\u0435 \u044D\u043C\u043E\u0446\u0438\u0438",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"crosshairs",selected:R,onClick:function(){function W(){return D(!R)}return W}(),children:"\u0412\u044B\u0431\u0438\u0440\u0430\u0442\u044C \u0446\u0435\u043B\u044C"}),children:(0,e.createComponentVNode)(2,o.Stack,{children:(0,e.createComponentVNode)(2,o.Stack.Item,{children:u.filter(function(W){return W.key&&(s.length>0?W.key.toLowerCase().includes(s.toLowerCase())||W.name.toLowerCase().includes(s.toLowerCase()):!0)&&(v?W.visible:!0)&&(V?W.audible:!0)&&(I?W.sound:!0)&&(A?W.hands:!0)&&(M?W.targettable:!0)}).map(function(W){return(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function _(){return c("play_emote",{emote_key:W.key,useTarget:R})}return _}(),children:[W.visible?(0,e.createComponentVNode)(2,o.Icon,{name:"eye"}):"",W.audible?(0,e.createComponentVNode)(2,o.Icon,{name:"comment"}):"",W.sound?(0,e.createComponentVNode)(2,o.Icon,{name:"volume-up"}):"",W.hands?(0,e.createComponentVNode)(2,o.Icon,{name:"hand-paper"}):"",W.targettable?(0,e.createComponentVNode)(2,o.Icon,{name:"crosshairs"}):"",W.name]},W.name)})})})})})],4)}return S}()},99012:function(L,r,n){"use strict";r.__esModule=!0,r.EvolutionMenu=void 0;var e=n(96524),a=n(78234),t=n(17899),o=n(24674),m=n(45493),N=n(74041),y=n(50640),S=r.EvolutionMenu=function(){function l(c,f){return(0,e.createComponentVNode)(2,m.Window,{width:480,height:580,theme:"changeling",children:(0,e.createComponentVNode)(2,m.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,k),(0,e.createComponentVNode)(2,p)]})})})}return l}(),k=function(c,f){var u=(0,t.useBackend)(f),i=u.act,s=u.data,d=s.evo_points,h=s.can_respec;return(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Section,{title:"Evolution Points",height:5.5,children:(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.Stack.Item,{mt:.5,color:"label",children:"Points remaining:"}),(0,e.createComponentVNode)(2,o.Stack.Item,{mt:.5,ml:2,bold:!0,color:"#1b945c",children:d}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:[(0,e.createComponentVNode)(2,o.Button,{ml:2.5,disabled:!h,content:"Readapt",icon:"sync",onClick:function(){function v(){return i("readapt")}return v}()}),(0,e.createComponentVNode)(2,o.Button,{tooltip:"By transforming a humanoid into a husk, we gain the ability to readapt our chosen evolutions.",tooltipPosition:"bottom",icon:"question-circle"})]})]})})})},p=function(c,f){var u=(0,t.useBackend)(f),i=u.act,s=u.data,d=s.evo_points,h=s.ability_tabs,v=s.purchased_abilities,g=s.view_mode,C=(0,t.useLocalState)(f,"selectedTab",h[0]),V=C[0],b=C[1],B=(0,t.useLocalState)(f,"searchText",""),I=B[0],w=B[1],T=(0,t.useLocalState)(f,"ability_tabs",h[0].abilities),A=T[0],x=T[1],E=function(R,D){if(D===void 0&&(D=""),!R||R.length===0)return[];var F=(0,a.createSearch)(D,function(W){return W.name+"|"+W.description});return(0,N.flow)([(0,y.filter)(function(W){return W==null?void 0:W.name}),(0,y.filter)(F),(0,y.sortBy)(function(W){return W==null?void 0:W.name})])(R)},M=function(R){if(w(R),R==="")return x(V.abilities);x(E(h.map(function(D){return D.abilities}).flat(),R))},j=function(R){b(R),x(R.abilities),w("")};return(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"Abilities",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Input,{width:"200px",placeholder:"Search Abilities",onInput:function(){function P(R,D){M(D)}return P}(),value:I}),(0,e.createComponentVNode)(2,o.Button,{icon:g?"square-o":"check-square-o",selected:!g,content:"Compact",onClick:function(){function P(){return i("set_view_mode",{mode:0})}return P}()}),(0,e.createComponentVNode)(2,o.Button,{icon:g?"check-square-o":"square-o",selected:g,content:"Expanded",onClick:function(){function P(){return i("set_view_mode",{mode:1})}return P}()})],4),children:[(0,e.createComponentVNode)(2,o.Tabs,{children:h.map(function(P){return(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:I===""&&V===P,onClick:function(){function R(){j(P)}return R}(),children:P.category},P)})}),A.map(function(P,R){return(0,e.createComponentVNode)(2,o.Box,{p:.5,mx:-1,className:"candystripe",children:[(0,e.createComponentVNode)(2,o.Stack,{align:"center",children:[(0,e.createComponentVNode)(2,o.Stack.Item,{ml:.5,color:"#dedede",children:P.name}),v.includes(P.power_path)&&(0,e.createComponentVNode)(2,o.Stack.Item,{ml:2,bold:!0,color:"#1b945c",children:"(Purchased)"}),(0,e.createComponentVNode)(2,o.Stack.Item,{mr:3,textAlign:"right",grow:1,children:[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"label",children:["Cost:"," "]}),(0,e.createComponentVNode)(2,o.Box,{as:"span",bold:!0,color:"#1b945c",children:P.cost})]}),(0,e.createComponentVNode)(2,o.Stack.Item,{textAlign:"right",children:(0,e.createComponentVNode)(2,o.Button,{mr:.5,disabled:P.cost>d||v.includes(P.power_path),content:"Evolve",onClick:function(){function D(){return i("purchase",{power_path:P.power_path})}return D}()})})]}),!!g&&(0,e.createComponentVNode)(2,o.Stack,{color:"#8a8a8a",my:1,ml:1.5,width:"95%",children:P.description+" "+P.helptext})]},R)})]})})}},37504:function(L,r,n){"use strict";r.__esModule=!0,r.ExosuitFabricator=void 0;var e=n(96524),a=n(28234),t=n(78234),o=n(17899),m=n(24674),N=n(99509),y=n(45493),S=["id","amount","lineDisplay","onClick"];function k(v,g){if(v==null)return{};var C={},V=Object.keys(v),b,B;for(B=0;B=0)&&(C[b]=v[b]);return C}var p=2e3,l={bananium:"clown",tranquillite:"mime"},c=r.ExosuitFabricator=function(){function v(g,C){var V=(0,o.useBackend)(C),b=V.act,B=V.data,I=B.building;return(0,e.createComponentVNode)(2,y.Window,{width:950,height:625,children:(0,e.createComponentVNode)(2,y.Window.Content,{className:"Exofab",children:(0,e.createComponentVNode)(2,m.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,m.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,m.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,m.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,u)}),I&&(0,e.createComponentVNode)(2,m.Stack.Item,{children:(0,e.createComponentVNode)(2,i)})]})}),(0,e.createComponentVNode)(2,m.Stack.Item,{width:"30%",children:(0,e.createComponentVNode)(2,m.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,m.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,f)}),(0,e.createComponentVNode)(2,m.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,s)})]})})]})})})}return v}(),f=function(g,C){var V=(0,o.useBackend)(C),b=V.act,B=V.data,I=B.materials,w=B.capacity,T=Object.values(I).reduce(function(A,x){return A+x},0);return(0,e.createComponentVNode)(2,m.Section,{fill:!0,scrollable:!0,title:"Materials",className:"Exofab__materials",buttons:(0,e.createComponentVNode)(2,m.Box,{color:"label",mt:"0.25rem",children:[(T/w*100).toPrecision(3),"% full"]}),children:["metal","glass","silver","gold","uranium","titanium","plasma","diamond","bluespace","bananium","tranquillite","plastic"].map(function(A){return(0,e.createComponentVNode)(2,d,{mt:-2,id:A,bold:A==="metal"||A==="glass",onClick:function(){function x(){return b("withdraw",{id:A})}return x}()},A)})})},u=function(g,C){var V=(0,o.useBackend)(C),b=V.act,B=V.data,I=B.curCategory,w=B.categories,T=B.designs,A=B.syncing,x=(0,o.useLocalState)(C,"searchText",""),E=x[0],M=x[1],j=(0,t.createSearch)(E,function(R){return R.name}),P=T.filter(j);return(0,e.createComponentVNode)(2,m.Section,{fill:!0,scrollable:!0,className:"Exofab__designs",title:(0,e.createComponentVNode)(2,m.Dropdown,{className:"Exofab__dropdown",selected:I,options:w,onSelected:function(){function R(D){return b("category",{cat:D})}return R}()}),buttons:(0,e.createComponentVNode)(2,m.Box,{mt:"2px",children:[(0,e.createComponentVNode)(2,m.Button,{icon:"plus",content:"Queue all",onClick:function(){function R(){return b("queueall")}return R}()}),(0,e.createComponentVNode)(2,m.Button,{disabled:A,iconSpin:A,icon:"sync-alt",content:A?"Synchronizing...":"Synchronize with R&D servers",onClick:function(){function R(){return b("sync")}return R}()})]}),children:[(0,e.createComponentVNode)(2,m.Input,{placeholder:"Search by name...",mb:"0.5rem",width:"100%",onInput:function(){function R(D,F){return M(F)}return R}()}),P.map(function(R){return(0,e.createComponentVNode)(2,h,{design:R},R.id)}),P.length===0&&(0,e.createComponentVNode)(2,m.Box,{color:"label",children:"No designs found."})]})},i=function(g,C){var V=(0,o.useBackend)(C),b=V.act,B=V.data,I=B.building,w=B.buildStart,T=B.buildEnd,A=B.worldTime;return(0,e.createComponentVNode)(2,m.Section,{className:"Exofab__building",stretchContents:!0,children:(0,e.createComponentVNode)(2,m.ProgressBar.Countdown,{start:w,current:A,end:T,children:(0,e.createComponentVNode)(2,m.Stack,{children:[(0,e.createComponentVNode)(2,m.Stack.Item,{children:(0,e.createComponentVNode)(2,m.Icon,{name:"cog",spin:!0})}),(0,e.createComponentVNode)(2,m.Stack.Item,{children:["Building ",I,"\xA0(",(0,e.createComponentVNode)(2,N.Countdown,{current:A,timeLeft:T-A,format:function(){function x(E,M){return M.substr(3)}return x}()}),")"]})]})})})},s=function(g,C){var V=(0,o.useBackend)(C),b=V.act,B=V.data,I=B.queue,w=B.processingQueue,T=Object.entries(B.queueDeficit).filter(function(x){return x[1]<0}),A=I.reduce(function(x,E){return x+E.time},0);return(0,e.createComponentVNode)(2,m.Section,{fill:!0,scrollable:!0,className:"Exofab__queue",title:"Queue",buttons:(0,e.createComponentVNode)(2,m.Box,{children:[(0,e.createComponentVNode)(2,m.Button,{selected:w,icon:w?"toggle-on":"toggle-off",content:"Process",onClick:function(){function x(){return b("process")}return x}()}),(0,e.createComponentVNode)(2,m.Button,{disabled:I.length===0,icon:"eraser",content:"Clear",onClick:function(){function x(){return b("unqueueall")}return x}()})]}),children:(0,e.createComponentVNode)(2,m.Stack,{fill:!0,vertical:!0,children:I.length===0?(0,e.createComponentVNode)(2,m.Box,{color:"label",children:"The queue is empty."}):(0,e.createFragment)([(0,e.createComponentVNode)(2,m.Stack.Item,{className:"Exofab__queue--queue",grow:!0,overflow:"auto",children:I.map(function(x,E){return(0,e.createComponentVNode)(2,m.Box,{color:x.notEnough&&"bad",children:[E+1,". ",x.name,E>0&&(0,e.createComponentVNode)(2,m.Button,{icon:"arrow-up",onClick:function(){function M(){return b("queueswap",{from:E+1,to:E})}return M}()}),E0&&(0,e.createComponentVNode)(2,m.Stack.Item,{className:"Exofab__queue--time",children:[(0,e.createComponentVNode)(2,m.Divider),"Processing time:",(0,e.createComponentVNode)(2,m.Icon,{name:"clock",mx:"0.5rem"}),(0,e.createComponentVNode)(2,m.Box,{inline:!0,bold:!0,children:new Date(A/10*1e3).toISOString().substr(14,5)})]}),Object.keys(T).length>0&&(0,e.createComponentVNode)(2,m.Stack.Item,{className:"Exofab__queue--deficit",shrink:"0",children:[(0,e.createComponentVNode)(2,m.Divider),"Lacking materials to complete:",T.map(function(x){return(0,e.createComponentVNode)(2,m.Box,{children:(0,e.createComponentVNode)(2,d,{id:x[0],amount:-x[1],lineDisplay:!0})},x[0])})]})],0)})})},d=function(g,C){var V=(0,o.useBackend)(C),b=V.act,B=V.data,I=g.id,w=g.amount,T=g.lineDisplay,A=g.onClick,x=k(g,S),E=B.materials[I]||0,M=w||E;if(!(M<=0&&!(I==="metal"||I==="glass"))){var j=w&&w>E;return(0,e.normalizeProps)((0,e.createComponentVNode)(2,m.Stack,Object.assign({align:"center",className:(0,a.classes)(["Exofab__material",T&&"Exofab__material--line"])},x,{children:T?(0,e.createFragment)([(0,e.createComponentVNode)(2,m.Stack.Item,{className:(0,a.classes)(["materials32x32",I])}),(0,e.createComponentVNode)(2,m.Stack.Item,{className:"Exofab__material--amount",color:j&&"bad",ml:0,mr:1,children:M.toLocaleString("en-US")})],4):(0,e.createFragment)([(0,e.createComponentVNode)(2,m.Stack.Item,{basis:"content",children:(0,e.createComponentVNode)(2,m.Button,{width:"85%",color:"transparent",onClick:A,children:(0,e.createComponentVNode)(2,m.Box,{mt:1,className:(0,a.classes)(["materials32x32",I])})})}),(0,e.createComponentVNode)(2,m.Stack.Item,{grow:"1",children:[(0,e.createComponentVNode)(2,m.Box,{className:"Exofab__material--name",children:I}),(0,e.createComponentVNode)(2,m.Box,{className:"Exofab__material--amount",children:[M.toLocaleString("en-US")," cm\xB3 (",Math.round(M/p*10)/10," ","sheets)"]})]})],4)})))}},h=function(g,C){var V=(0,o.useBackend)(C),b=V.act,B=V.data,I=g.design;return(0,e.createComponentVNode)(2,m.Box,{className:"Exofab__design",children:[(0,e.createComponentVNode)(2,m.Button,{disabled:I.notEnough||B.building,icon:"cog",content:I.name,onClick:function(){function w(){return b("build",{id:I.id})}return w}()}),(0,e.createComponentVNode)(2,m.Button,{icon:"plus-circle",onClick:function(){function w(){return b("queue",{id:I.id})}return w}()}),(0,e.createComponentVNode)(2,m.Box,{className:"Exofab__design--cost",children:Object.entries(I.cost).map(function(w){return(0,e.createComponentVNode)(2,m.Box,{children:(0,e.createComponentVNode)(2,d,{id:w[0],amount:w[1],lineDisplay:!0})},w[0])})}),(0,e.createComponentVNode)(2,m.Stack,{className:"Exofab__design--time",children:(0,e.createComponentVNode)(2,m.Stack.Item,{children:[(0,e.createComponentVNode)(2,m.Icon,{name:"clock"}),I.time>0?(0,e.createFragment)([I.time/10,(0,e.createTextVNode)(" seconds")],0):"Instant"]})})]})}},9466:function(L,r,n){"use strict";r.__esModule=!0,r.ExperimentConsole=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=new Map([[0,{text:"Conscious",color:"good"}],[1,{text:"Unconscious",color:"average"}],[2,{text:"Deceased",color:"bad"}]]),N=new Map([[0,{label:"Probe",icon:"thermometer"}],[1,{label:"Dissect",icon:"brain"}],[2,{label:"Analyze",icon:"search"}]]),y=r.ExperimentConsole=function(){function S(k,p){var l=(0,a.useBackend)(p),c=l.act,f=l.data,u=f.open,i=f.feedback,s=f.occupant,d=f.occupant_name,h=f.occupant_status,v=function(){function C(){if(!s)return(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No specimen detected."});var V=function(){function B(){return m.get(h)}return B}(),b=V();return(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Name",children:d}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",color:b.color,children:b.text}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Experiments",children:[0,1,2].map(function(B){return(0,e.createComponentVNode)(2,t.Button,{icon:N.get(B).icon,content:N.get(B).label,onClick:function(){function I(){return c("experiment",{experiment_type:B})}return I}()},B)})})]})}return C}(),g=v();return(0,e.createComponentVNode)(2,o.Window,{theme:"abductor",width:350,height:200,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:i})})}),(0,e.createComponentVNode)(2,t.Section,{title:"Scanner",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"eject",content:"Eject",disabled:!u,onClick:function(){function C(){return c("door")}return C}()}),children:g})]})})}return S}()},77284:function(L,r,n){"use strict";r.__esModule=!0,r.ExternalAirlockController=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=0,N=1013,y=function(p){var l="good",c=80,f=95,u=110,i=120;return pu?l="average":p>i&&(l="bad"),l},S=r.ExternalAirlockController=function(){function k(p,l){var c=(0,a.useBackend)(l),f=c.act,u=c.data,i=u.chamber_pressure,s=u.exterior_status,d=u.interior_status,h=u.processing;return(0,e.createComponentVNode)(2,o.Window,{width:330,height:205,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Information",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Chamber Pressure",children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:y(i),value:i,minValue:m,maxValue:N,children:[i," kPa"]})})})}),(0,e.createComponentVNode)(2,t.Section,{title:"Actions",buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Abort",icon:"ban",color:"red",disabled:!h,onClick:function(){function v(){return f("abort")}return v}()}),children:[(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Button,{width:"49%",content:"Cycle to Exterior",icon:"arrow-circle-left",disabled:h,onClick:function(){function v(){return f("cycle_ext")}return v}()}),(0,e.createComponentVNode)(2,t.Button,{width:"50%",content:"Cycle to Interior",icon:"arrow-circle-right",disabled:h,onClick:function(){function v(){return f("cycle_int")}return v}()})]}),(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Button,{width:"49%",content:"Force Exterior Door",icon:"exclamation-triangle",color:d==="open"?"red":h?"yellow":null,onClick:function(){function v(){return f("force_ext")}return v}()}),(0,e.createComponentVNode)(2,t.Button,{width:"50%",content:"Force Interior Door",icon:"exclamation-triangle",color:d==="open"?"red":h?"yellow":null,onClick:function(){function v(){return f("force_int")}return v}()})]})]})]})})}return k}()},52516:function(L,r,n){"use strict";r.__esModule=!0,r.FaxMachine=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=r.FaxMachine=function(){function N(y,S){var k=(0,a.useBackend)(S),p=k.act,l=k.data;return(0,e.createComponentVNode)(2,o.Window,{width:540,height:295,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Authorization",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"ID Card",children:(0,e.createComponentVNode)(2,t.Button,{icon:l.scan_name?"eject":"id-card",selected:l.scan_name,content:l.scan_name?l.scan_name:"-----",tooltip:l.scan_name?"Eject ID":"Insert ID",onClick:function(){function c(){return p("scan")}return c}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Authorize",children:(0,e.createComponentVNode)(2,t.Button,{icon:l.authenticated?"sign-out-alt":"id-card",selected:l.authenticated,disabled:l.nologin,content:l.realauth?"Log Out":"Log In",onClick:function(){function c(){return p("auth")}return c}()})})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Fax Menu",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Network",children:l.network}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Document",children:[(0,e.createComponentVNode)(2,t.Button,{icon:l.paper?"eject":"paperclip",disabled:!l.authenticated&&!l.paper,content:l.paper?l.paper:"-----",onClick:function(){function c(){return p("paper")}return c}()}),!!l.paper&&(0,e.createComponentVNode)(2,t.Button,{icon:"pencil-alt",content:"Rename",onClick:function(){function c(){return p("rename")}return c}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Sending To",children:(0,e.createComponentVNode)(2,t.Button,{icon:"print",content:l.destination?l.destination:"-----",disabled:!l.authenticated,onClick:function(){function c(){return p("dept")}return c}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Action",children:(0,e.createComponentVNode)(2,t.Button,{icon:"envelope",content:l.sendError?l.sendError:"Send",disabled:!l.paper||!l.destination||!l.authenticated||l.sendError,onClick:function(){function c(){return p("send")}return c}()})})]})})]})})}return N}()},24777:function(L,r,n){"use strict";r.__esModule=!0,r.FilingCabinet=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=r.FilingCabinet=function(){function N(y,S){var k=(0,a.useBackend)(S),p=k.act,l=k.data,c=k.config,f=l.contents,u=c.title;return(0,e.createComponentVNode)(2,o.Window,{width:400,height:300,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Contents",children:[!f&&(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,grow:!0,textAlign:"center",align:"center",color:"average",children:[(0,e.createComponentVNode)(2,t.Icon.Stack,{children:[(0,e.createComponentVNode)(2,t.Icon,{name:"folder-open",size:5,color:"gray"}),(0,e.createComponentVNode)(2,t.Icon,{name:"slash",size:5,color:"red"})]}),(0,e.createVNode)(1,"br"),"The ",u," is empty."]})}),!!f&&f.slice().map(function(i){return(0,e.createComponentVNode)(2,t.Stack,{mt:.5,className:"candystripe",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"80%",children:i.display_name}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-down",content:"Retrieve",onClick:function(){function s(){return p("retrieve",{index:i.index})}return s}()})})]},i)})]})})})})}return N}()},88361:function(L,r,n){"use strict";r.__esModule=!0,r.FloorPainter=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=function(S,k){var p=(0,a.useBackend)(k),l=p.act,c=p.data,f=S.image,u=S.isSelected,i=S.onSelect;return(0,e.createVNode)(1,"img",null,null,1,{src:"data:image/jpeg;base64,"+f,style:{"border-style":u&&"solid"||"none","border-width":"2px","border-color":"orange",padding:u&&"2px"||"4px"},onClick:i})},N=r.FloorPainter=function(){function y(S,k){var p=(0,a.useBackend)(k),l=p.act,c=p.data,f=c.availableStyles,u=c.selectedStyle,i=c.selectedDir,s=c.directionsPreview,d=c.allStylesPreview;return(0,e.createComponentVNode)(2,o.Window,{width:405,height:475,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Decal setup",children:[(0,e.createComponentVNode)(2,t.Flex,{children:[(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"chevron-left",onClick:function(){function h(){return l("cycle_style",{offset:-1})}return h}()})}),(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Dropdown,{options:f,selected:u,width:"150px",height:"20px",ml:"2px",mr:"2px",nochevron:!0,onSelected:function(){function h(v){return l("select_style",{style:v})}return h}()})}),(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"chevron-right",onClick:function(){function h(){return l("cycle_style",{offset:1})}return h}()})})]}),(0,e.createComponentVNode)(2,t.Box,{mt:"5px",mb:"5px",children:(0,e.createComponentVNode)(2,t.Flex,{overflowY:"auto",maxHeight:"220px",wrap:"wrap",children:f.map(function(h){return(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,m,{image:d[h],isSelected:u===h,onSelect:function(){function v(){return l("select_style",{style:h})}return v}()})},"{style}")})})}),(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Direction",children:(0,e.createComponentVNode)(2,t.Table,{style:{display:"inline"},children:["north","","south"].map(function(h){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[h+"west",h,h+"east"].map(function(v){return(0,e.createComponentVNode)(2,t.Table.Cell,{style:{"vertical-align":"middle","text-align":"center"},children:v===""?(0,e.createComponentVNode)(2,t.Icon,{name:"arrows-alt",size:3}):(0,e.createComponentVNode)(2,m,{image:s[v],isSelected:v===i,onSelect:function(){function g(){return l("select_direction",{direction:v})}return g}()})},v)})},h)})})})})]})})})}return y}()},70078:function(L,r,n){"use strict";r.__esModule=!0,r.GPS=void 0;var e=n(96524),a=n(36121),t=n(17899),o=n(24674),m=n(45493),N=function(u){return u?"("+u.join(", ")+")":"ERROR"},y=function(u,i){if(!(!u||!i)){if(u[2]!==i[2])return null;var s=Math.atan2(i[1]-u[1],i[0]-u[0]),d=Math.sqrt(Math.pow(i[1]-u[1],2)+Math.pow(i[0]-u[0],2));return{angle:(0,a.rad2deg)(s),distance:d}}},S=r.GPS=function(){function f(u,i){var s=(0,t.useBackend)(i),d=s.data,h=d.emped,v=d.active,g=d.area,C=d.position,V=d.saved;return(0,e.createComponentVNode)(2,m.Window,{width:400,height:600,children:(0,e.createComponentVNode)(2,m.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:h?(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,basis:"0",children:(0,e.createComponentVNode)(2,k,{emp:!0})}):(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,p)}),v?(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,l,{area:g,position:C})}),V&&(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,l,{title:"Saved Position",position:V})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,basis:"0",children:(0,e.createComponentVNode)(2,c,{height:"100%"})})],0):(0,e.createComponentVNode)(2,k)],0)})})})}return f}(),k=function(u,i){var s=u.emp;return(0,e.createComponentVNode)(2,o.Section,{fill:!0,children:(0,e.createComponentVNode)(2,o.Box,{width:"100%",height:"100%",color:"label",textAlign:"center",children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,align:"center",color:"label",children:[(0,e.createComponentVNode)(2,o.Icon,{name:s?"ban":"power-off",mb:"0.5rem",size:"5"}),(0,e.createVNode)(1,"br"),s?"ERROR: Device temporarily lost signal.":"Device is disabled."]})})})})},p=function(u,i){var s=(0,t.useBackend)(i),d=s.act,h=s.data,v=h.active,g=h.tag,C=h.same_z,V=(0,t.useLocalState)(i,"newTag",g),b=V[0],B=V[1];return(0,e.createComponentVNode)(2,o.Section,{title:"Settings",buttons:(0,e.createComponentVNode)(2,o.Button,{selected:v,icon:v?"toggle-on":"toggle-off",content:v?"On":"Off",onClick:function(){function I(){return d("toggle")}return I}()}),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Tag",children:[(0,e.createComponentVNode)(2,o.Input,{width:"5rem",value:g,onEnter:function(){function I(){return d("tag",{newtag:b})}return I}(),onInput:function(){function I(w,T){return B(T)}return I}()}),(0,e.createComponentVNode)(2,o.Button,{disabled:g===b,width:"20px",mb:"0",ml:"0.25rem",onClick:function(){function I(){return d("tag",{newtag:b})}return I}(),children:(0,e.createComponentVNode)(2,o.Icon,{name:"pen"})})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Range",children:(0,e.createComponentVNode)(2,o.Button,{selected:!C,icon:C?"compress":"expand",content:C?"Local Sector":"Global",onClick:function(){function I(){return d("same_z")}return I}()})})]})})},l=function(u,i){var s=u.title,d=u.area,h=u.position;return(0,e.createComponentVNode)(2,o.Section,{title:s||"Position",children:(0,e.createComponentVNode)(2,o.Box,{fontSize:"1.5rem",children:[d&&(0,e.createFragment)([d,(0,e.createVNode)(1,"br")],0),N(h)]})})},c=function(u,i){var s=(0,t.useBackend)(i),d=s.data,h=d.position,v=d.signals;return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Section,Object.assign({fill:!0,scrollable:!0,title:"Signals"},u,{children:(0,e.createComponentVNode)(2,o.Table,{children:v.map(function(g){return Object.assign({},g,y(h,g.position))}).map(function(g,C){return(0,e.createComponentVNode)(2,o.Table.Row,{backgroundColor:C%2===0&&"rgba(255, 255, 255, 0.05)",children:[(0,e.createComponentVNode)(2,o.Table.Cell,{width:"30%",verticalAlign:"middle",color:"label",p:"0.25rem",bold:!0,children:g.tag}),(0,e.createComponentVNode)(2,o.Table.Cell,{verticalAlign:"middle",color:"grey",children:g.area}),(0,e.createComponentVNode)(2,o.Table.Cell,{verticalAlign:"middle",collapsing:!0,children:g.distance!==void 0&&(0,e.createComponentVNode)(2,o.Box,{opacity:Math.max(1-Math.min(g.distance,100)/100,.5),children:[(0,e.createComponentVNode)(2,o.Icon,{name:g.distance>0?"arrow-right":"circle",rotation:-g.angle}),"\xA0",Math.floor(g.distance)+"m"]})}),(0,e.createComponentVNode)(2,o.Table.Cell,{verticalAlign:"middle",pr:"0.25rem",collapsing:!0,children:N(g.position)})]},C)})})})))}},92246:function(L,r,n){"use strict";r.__esModule=!0,r.GeneModder=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(99665),m=n(45493),N=r.GeneModder=function(){function u(i,s){var d=(0,a.useBackend)(s),h=d.data,v=h.has_seed;return(0,e.createComponentVNode)(2,m.Window,{width:500,height:650,children:(0,e.createComponentVNode)(2,m.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,k),(0,e.createComponentVNode)(2,o.ComplexModal,{maxWidth:"75%",maxHeight:"75%"}),v===0?(0,e.createComponentVNode)(2,S):(0,e.createComponentVNode)(2,y)]})})})}return u}(),y=function(i,s){var d=(0,a.useBackend)(s),h=d.act,v=d.data,g=v.disk;return(0,e.createComponentVNode)(2,t.Section,{title:"Genes",fill:!0,scrollable:!0,buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Insert Gene from Disk",disabled:!g||!g.can_insert||g.is_core,icon:"arrow-circle-down",onClick:function(){function C(){return h("insert")}return C}()}),children:[(0,e.createComponentVNode)(2,p),(0,e.createComponentVNode)(2,l),(0,e.createComponentVNode)(2,c)]})},S=function(i,s){return(0,e.createComponentVNode)(2,t.Section,{fill:!0,height:"85%",children:(0,e.createComponentVNode)(2,t.Stack,{height:"100%",children:(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,grow:"1",textAlign:"center",align:"center",color:"green",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"leaf",size:5,mb:"10px"}),(0,e.createVNode)(1,"br"),"The plant DNA manipulator is missing a seed."]})})})},k=function(i,s){var d=(0,a.useBackend)(s),h=d.act,v=d.data,g=v.has_seed,C=v.seed,V=v.has_disk,b=v.disk,B,I;return g?B=(0,e.createComponentVNode)(2,t.Stack.Item,{mb:"-6px",mt:"-4px",children:[(0,e.createVNode)(1,"img",null,null,1,{src:"data:image/jpeg;base64,"+C.image,style:{"vertical-align":"middle",width:"32px",margin:"-1px","margin-left":"-11px"}}),(0,e.createComponentVNode)(2,t.Button,{content:C.name,onClick:function(){function w(){return h("eject_seed")}return w}()}),(0,e.createComponentVNode)(2,t.Button,{ml:"3px",icon:"pen",tooltip:"Name Variant",onClick:function(){function w(){return h("variant_name")}return w}()})]}):B=(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{ml:3.3,content:"None",onClick:function(){function w(){return h("eject_seed")}return w}()})}),V?I=b.name:I="None",(0,e.createComponentVNode)(2,t.Section,{title:"Storage",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Plant Sample",children:B}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Data Disk",children:(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{ml:3.3,content:I,onClick:function(){function w(){return h("eject_disk")}return w}()})})})]})})},p=function(i,s){var d=(0,a.useBackend)(s),h=d.act,v=d.data,g=v.disk,C=v.core_genes;return(0,e.createComponentVNode)(2,t.Collapsible,{title:"Core Genes",open:!0,children:[C.map(function(V){return(0,e.createComponentVNode)(2,t.Stack,{py:"2px",className:"candystripe",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"100%",ml:"2px",children:V.name}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Extract",disabled:!(g!=null&&g.can_extract),icon:"save",onClick:function(){function b(){return h("extract",{id:V.id})}return b}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Replace",disabled:!V.is_type||!g.can_insert,icon:"arrow-circle-down",onClick:function(){function b(){return h("replace",{id:V.id})}return b}()})})]},V)})," ",(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Extract All",disabled:!(g!=null&&g.can_extract),icon:"save",onClick:function(){function V(){return h("bulk_extract_core")}return V}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Replace All",disabled:!(g!=null&&g.is_bulk_core),icon:"arrow-circle-down",onClick:function(){function V(){return h("bulk_replace_core")}return V}()})})]})]},"Core Genes")},l=function(i,s){var d=(0,a.useBackend)(s),h=d.data,v=h.reagent_genes,g=h.has_reagent;return(0,e.createComponentVNode)(2,f,{title:"Reagent Genes",gene_set:v,do_we_show:g})},c=function(i,s){var d=(0,a.useBackend)(s),h=d.data,v=h.trait_genes,g=h.has_trait;return(0,e.createComponentVNode)(2,f,{title:"Trait Genes",gene_set:v,do_we_show:g})},f=function(i,s){var d=i.title,h=i.gene_set,v=i.do_we_show,g=(0,a.useBackend)(s),C=g.act,V=g.data,b=V.disk;return(0,e.createComponentVNode)(2,t.Collapsible,{title:d,open:!0,children:v?h.map(function(B){return(0,e.createComponentVNode)(2,t.Stack,{py:"2px",className:"candystripe",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"100%",ml:"2px",children:B.name}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Extract",disabled:!(b!=null&&b.can_extract),icon:"save",onClick:function(){function I(){return C("extract",{id:B.id})}return I}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Remove",icon:"times",onClick:function(){function I(){return C("remove",{id:B.id})}return I}()})})]},B)}):(0,e.createComponentVNode)(2,t.Stack.Item,{children:"No Genes Detected"})},d)}},27163:function(L,r,n){"use strict";r.__esModule=!0,r.GenericCrewManifest=void 0;var e=n(96524),a=n(24674),t=n(45493),o=n(98444),m=r.GenericCrewManifest=function(){function N(y,S){return(0,e.createComponentVNode)(2,t.Window,{theme:"nologo",width:588,height:510,children:(0,e.createComponentVNode)(2,t.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,a.Section,{noTopPadding:!0,children:(0,e.createComponentVNode)(2,o.CrewManifest)})})})}return N}()},53808:function(L,r,n){"use strict";r.__esModule=!0,r.GhostHudPanel=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=r.GhostHudPanel=function(){function y(S,k){var p=(0,a.useBackend)(k),l=p.data,c=l.security,f=l.medical,u=l.diagnostic,i=l.radioactivity,s=l.ahud;return(0,e.createComponentVNode)(2,o.Window,{width:250,height:207,theme:"nologo",children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:[(0,e.createComponentVNode)(2,N,{label:"Medical",type:"medical",is_active:f}),(0,e.createComponentVNode)(2,N,{label:"Security",type:"security",is_active:c}),(0,e.createComponentVNode)(2,N,{label:"Diagnostic",type:"diagnostic",is_active:u}),(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,N,{label:"Radioactivity",type:"radioactivity",is_active:i,act_on:"rads_on",act_off:"rads_off"}),(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,N,{label:"Antag HUD",is_active:s,act_on:"ahud_on",act_off:"ahud_off"})]})})})}return y}(),N=function(S,k){var p=(0,a.useBackend)(k),l=p.act,c=S.label,f=S.type,u=f===void 0?null:f,i=S.is_active,s=S.act_on,d=s===void 0?"hud_on":s,h=S.act_off,v=h===void 0?"hud_off":h;return(0,e.createComponentVNode)(2,t.Flex,{pt:.3,color:"label",children:[(0,e.createComponentVNode)(2,t.Flex.Item,{pl:.5,align:"center",width:"80%",children:c}),(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Button,{mr:.6,content:i?"On":"Off",icon:i?"toggle-on":"toggle-off",selected:i,onClick:function(){function g(){return l(i?v:d,{hud_type:u})}return g}()})})]})}},32035:function(L,r,n){"use strict";r.__esModule=!0,r.GlandDispenser=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=r.GlandDispenser=function(){function N(y,S){var k=(0,a.useBackend)(S),p=k.act,l=k.data,c=l.glands,f=c===void 0?[]:c;return(0,e.createComponentVNode)(2,o.Window,{width:300,height:338,theme:"abductor",children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:f.map(function(u){return(0,e.createComponentVNode)(2,t.Button,{width:"60px",height:"60px",m:.75,textAlign:"center",fontSize:"17px",lineHeight:"55px",icon:"eject",backgroundColor:u.color,content:u.amount||"0",disabled:!u.amount,onClick:function(){function i(){return p("dispense",{gland_id:u.id})}return i}()},u.id)})})})})}return N}()},33004:function(L,r,n){"use strict";r.__esModule=!0,r.GravityGen=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=r.GravityGen=function(){function N(y,S){var k=(0,a.useBackend)(S),p=k.act,l=k.data,c=l.charging_state,f=l.charge_count,u=l.breaker,i=l.ext_power,s=function(){function h(v){return v>0?(0,e.createComponentVNode)(2,t.Box,{inline:!0,color:"average",children:["[ ",v===1?"Charging":"Discharging"," ]"]}):(0,e.createComponentVNode)(2,t.Box,{inline:!0,color:i?"good":"bad",children:["[ ",i?"Powered":"Unpowered"," ]"]})}return h}(),d=function(){function h(v){if(v>0)return(0,e.createComponentVNode)(2,t.NoticeBox,{danger:!0,p:1.5,children:[(0,e.createVNode)(1,"b",null,"WARNING:",16)," Radiation Detected!"]})}return h}();return(0,e.createComponentVNode)(2,o.Window,{width:350,height:170,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[d(c),(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Generator Status",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:u?"power-off":"times",content:u?"Online":"Offline",color:u?"green":"red",px:1.5,onClick:function(){function h(){return p("breaker")}return h}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power Status",color:i?"good":"bad",children:s(c)}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Gravity Charge",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:f/100,ranges:{good:[.9,1/0],average:[.5,.9],bad:[-1/0,.5]}})})]})})]})})})}return N}()},39775:function(L,r,n){"use strict";r.__esModule=!0,r.GuestPass=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=n(57842),N=r.GuestPass=function(){function y(S,k){var p=(0,a.useBackend)(k),l=p.act,c=p.data;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:690,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Tabs,{children:[(0,e.createComponentVNode)(2,t.Tabs.Tab,{icon:"id-card",selected:!c.showlogs,onClick:function(){function f(){return l("mode",{mode:0})}return f}(),children:"Issue Pass"}),(0,e.createComponentVNode)(2,t.Tabs.Tab,{icon:"scroll",selected:c.showlogs,onClick:function(){function f(){return l("mode",{mode:1})}return f}(),children:["Records (",c.issue_log.length,")"]})]})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Authorization",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"ID Card",children:(0,e.createComponentVNode)(2,t.Button,{icon:c.scan_name?"eject":"id-card",selected:c.scan_name,content:c.scan_name?c.scan_name:"-----",tooltip:c.scan_name?"Eject ID":"Insert ID",onClick:function(){function f(){return l("scan")}return f}()})})})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:!c.showlogs&&(0,e.createComponentVNode)(2,t.Section,{title:"Issue Guest Pass",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Issue To",children:(0,e.createComponentVNode)(2,t.Button,{icon:"pencil-alt",content:c.giv_name?c.giv_name:"-----",disabled:!c.scan_name,onClick:function(){function f(){return l("giv_name")}return f}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Reason",children:(0,e.createComponentVNode)(2,t.Button,{icon:"pencil-alt",content:c.reason?c.reason:"-----",disabled:!c.scan_name,onClick:function(){function f(){return l("reason")}return f}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Duration",children:(0,e.createComponentVNode)(2,t.Button,{icon:"pencil-alt",content:c.duration?c.duration:"-----",disabled:!c.scan_name,onClick:function(){function f(){return l("duration")}return f}()})})]})})}),!c.showlogs&&(c.scan_name?(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,m.AccessList,{sectionButtons:(0,e.createComponentVNode)(2,t.Button,{icon:"id-card",content:c.printmsg,disabled:!c.canprint,onClick:function(){function f(){return l("issue")}return f}()}),grantableList:c.grantableList,accesses:c.regions,selectedList:c.selectedAccess,accessMod:function(){function f(u){return l("access",{access:u})}return f}(),grantAll:function(){function f(){return l("grant_all")}return f}(),denyAll:function(){function f(){return l("clear_all")}return f}(),grantDep:function(){function f(u){return l("grant_region",{region:u})}return f}(),denyDep:function(){function f(u){return l("deny_region",{region:u})}return f}()})}):(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,grow:!0,fontSize:1.5,textAlign:"center",align:"center",color:"label",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"id-card",size:5,color:"gray",mb:5}),(0,e.createVNode)(1,"br"),"Please, insert ID Card"]})})})})),!!c.showlogs&&(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,m:0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Issuance Log",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"print",content:"Print",disabled:!c.scan_name,onClick:function(){function f(){return l("print")}return f}()}),children:!!c.issue_log.length&&(0,e.createComponentVNode)(2,t.LabeledList,{children:c.issue_log.map(function(f,u){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{children:f},u)})})||(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,grow:!0,fontSize:1.5,textAlign:"center",align:"center",color:"label",children:[(0,e.createComponentVNode)(2,t.Icon.Stack,{children:[(0,e.createComponentVNode)(2,t.Icon,{name:"scroll",size:5,color:"gray"}),(0,e.createComponentVNode)(2,t.Icon,{name:"slash",size:5,color:"red"})]}),(0,e.createVNode)(1,"br"),"No logs"]})})})})]})})})}return y}()},22480:function(L,r,n){"use strict";r.__esModule=!0,r.HandheldChemDispenser=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=[1,5,10,20,30,50],N=null,y=r.HandheldChemDispenser=function(){function p(l,c){return(0,e.createComponentVNode)(2,o.Window,{width:390,height:430,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,S),(0,e.createComponentVNode)(2,k)]})})})}return p}(),S=function(l,c){var f=(0,a.useBackend)(c),u=f.act,i=f.data,s=i.amount,d=i.energy,h=i.maxEnergy,v=i.mode;return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Settings",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Energy",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:d,minValue:0,maxValue:h,ranges:{good:[h*.5,1/0],average:[h*.25,h*.5],bad:[-1/0,h*.25]},children:[d," / ",h," Units"]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Amount",verticalAlign:"middle",children:(0,e.createComponentVNode)(2,t.Stack,{children:m.map(function(g,C){return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,width:"15%",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"cog",selected:s===g,content:g,onClick:function(){function V(){return u("amount",{amount:g})}return V}()})},C)})})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Mode",verticalAlign:"middle",children:(0,e.createComponentVNode)(2,t.Stack,{justify:"space-between",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"cog",selected:v==="dispense",content:"Dispense",m:"0",width:"32%",onClick:function(){function g(){return u("mode",{mode:"dispense"})}return g}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"cog",selected:v==="remove",content:"Remove",m:"0",width:"32%",onClick:function(){function g(){return u("mode",{mode:"remove"})}return g}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"cog",selected:v==="isolate",content:"Isolate",m:"0",width:"32%",onClick:function(){function g(){return u("mode",{mode:"isolate"})}return g}()})]})})]})})})},k=function(l,c){for(var f=(0,a.useBackend)(c),u=f.act,i=f.data,s=i.chemicals,d=s===void 0?[]:s,h=i.current_reagent,v=[],g=0;g<(d.length+1)%3;g++)v.push(!0);return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,height:"18%",children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:i.glass?"Drink Selector":"Chemical Selector",children:[d.map(function(C,V){return(0,e.createComponentVNode)(2,t.Button,{width:"32%",icon:"arrow-circle-down",overflow:"hidden",textOverflow:"ellipsis",selected:h===C.id,content:C.title,style:{"margin-left":"2px"},onClick:function(){function b(){return u("dispense",{reagent:C.id})}return b}()},V)}),v.map(function(C,V){return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:"1",basis:"25%"},V)})]})})}},22616:function(L,r,n){"use strict";r.__esModule=!0,r.HealthSensor=void 0;var e=n(96524),a=n(36121),t=n(17899),o=n(24674),m=n(45493),N=r.HealthSensor=function(){function S(k,p){var l=(0,t.useBackend)(p),c=l.act,f=l.data,u=f.on,i=f.user_health,s=f.minHealth,d=f.maxHealth,h=f.alarm_health;return(0,e.createComponentVNode)(2,m.Window,{width:300,height:125,children:(0,e.createComponentVNode)(2,m.Window.Content,{children:(0,e.createComponentVNode)(2,o.Section,{children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Scanning",children:(0,e.createComponentVNode)(2,o.Button,{icon:"power-off",content:u?"On":"Off",color:u?null:"red",selected:u,onClick:function(){function v(){return c("scan_toggle")}return v}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Health activation",children:(0,e.createComponentVNode)(2,o.NumberInput,{animate:!0,step:2,stepPixelSize:6,minValue:s,maxValue:d,value:h,format:function(){function v(g){return(0,a.toFixed)(g,1)}return v}(),width:"80px",onDrag:function(){function v(g,C){return c("alarm_health",{alarm_health:C})}return v}()})}),i!==null&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"User health",children:(0,e.createComponentVNode)(2,o.Box,{color:y(i),bold:i>=100,children:(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:i})})})]})})})})}return S}(),y=function(k){return k>50?"green":k>0?"orange":"red"}},76861:function(L,r,n){"use strict";r.__esModule=!0,r.Holodeck=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=r.Holodeck=function(){function y(S,k){var p=(0,a.useBackend)(k),l=p.act,c=p.data,f=(0,a.useLocalState)(k,"currentDeck",""),u=f[0],i=f[1],s=(0,a.useLocalState)(k,"showReload",!1),d=s[0],h=s[1],v=c.decks,g=c.ai_override,C=c.emagged,V=function(){function b(B){l("select_deck",{deck:B}),i(B),h(!0),setTimeout(function(){h(!1)},3e3)}return b}();return(0,e.createComponentVNode)(2,o.Window,{width:400,height:320,children:[d&&(0,e.createComponentVNode)(2,N),(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Holodeck Control System",children:(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createVNode)(1,"b",null,"Currently Loaded Program:",16)," ",u]})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Available Programs",children:[v.map(function(b){return(0,e.createComponentVNode)(2,t.Button,{width:15.5,color:"transparent",content:b,selected:b===u,onClick:function(){function B(){return V(b)}return B}()},b)}),(0,e.createVNode)(1,"hr",null,null,1,{color:"gray"}),(0,e.createComponentVNode)(2,t.LabeledList,{children:[!!g&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Override Protocols",children:(0,e.createComponentVNode)(2,t.Button,{content:C?"Turn On":"Turn Off",color:C?"good":"bad",onClick:function(){function b(){return l("ai_override")}return b}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Safety Protocols",children:(0,e.createComponentVNode)(2,t.Box,{color:C?"bad":"good",children:[C?"Off":"On",!!C&&(0,e.createComponentVNode)(2,t.Button,{ml:9.5,width:15.5,color:"red",content:"Wildlife Simulation",onClick:function(){function b(){return l("wildlifecarp")}return b}()})]})})]})]})})]})})]})}return y}(),N=function(S,k){return(0,e.createComponentVNode)(2,t.Dimmer,{textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"spinner",size:"5",spin:!0}),(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Box,{color:"white",children:(0,e.createVNode)(1,"h1",null,"\xA0Recalibrating projection apparatus.\xA0",16)}),(0,e.createComponentVNode)(2,t.Box,{color:"label",children:(0,e.createVNode)(1,"h3",null,"Please, wait for 3 seconds.",16)})]})}},96729:function(L,r,n){"use strict";r.__esModule=!0,r.Instrument=void 0;var e=n(96524),a=n(36121),t=n(17899),o=n(24674),m=n(45493),N=r.Instrument=function(){function l(c,f){var u=(0,t.useBackend)(f),i=u.act,s=u.data;return(0,e.createComponentVNode)(2,m.Window,{width:600,height:505,children:[(0,e.createComponentVNode)(2,y),(0,e.createComponentVNode)(2,m.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,S),(0,e.createComponentVNode)(2,p)]})})]})}return l}(),y=function(c,f){var u=(0,t.useBackend)(f),i=u.act,s=u.data,d=s.help;if(d)return(0,e.createComponentVNode)(2,o.Modal,{maxWidth:"75%",height:window.innerHeight*.75+"px",mx:"auto",py:"0",px:"0.5rem",children:(0,e.createComponentVNode)(2,o.Section,{height:"100%",title:"Help",level:"2",overflow:"auto",children:(0,e.createComponentVNode)(2,o.Box,{px:"0.5rem",mt:"-0.5rem",children:[(0,e.createVNode)(1,"h1",null,"Making a Song",16),(0,e.createVNode)(1,"p",null,[(0,e.createTextVNode)("Lines are a series of chords, separated by commas\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"(,)"}),(0,e.createTextVNode)(", each with notes separated by hyphens\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"(-)"}),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("Every note in a chord will play together, with the chord timed by the\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"tempo"}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("as defined above.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createTextVNode)("Notes are played by the\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"good",children:"names of the note"}),(0,e.createTextVNode)(", and optionally, the\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"average",children:"accidental"}),(0,e.createTextVNode)(", and/or the"),(0,e.createTextVNode)(" "),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"bad",children:"octave number"}),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("By default, every note is\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"average",children:"natural"}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("and in\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"bad",children:"octave 3"}),(0,e.createTextVNode)(". Defining a different state for either is remembered for each"),(0,e.createTextVNode)(" "),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"good",children:"note"}),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"ul",null,[(0,e.createVNode)(1,"li",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"Example:"}),(0,e.createTextVNode)("\xA0"),(0,e.createVNode)(1,"i",null,"C,D,E,F,G,A,B",16),(0,e.createTextVNode)(" will play a\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"good",children:"C"}),(0,e.createTextVNode)("\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"average",children:"major"}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("scale.")],0),(0,e.createVNode)(1,"li",null,[(0,e.createTextVNode)("After a note has an\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"average",children:"accidental"}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("or\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"bad",children:"octave"}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("placed, it will be remembered:\xA0"),(0,e.createVNode)(1,"i",null,"C,C4,C#,C3",16),(0,e.createTextVNode)(" is "),(0,e.createVNode)(1,"i",null,"C3,C4,C4#,C3#",16)],0)],4)],0),(0,e.createVNode)(1,"p",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"Chords"}),(0,e.createTextVNode)("\xA0can be played simply by seperating each note with a hyphen:"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,"A-C#,Cn-E,E-G#,Gn-B",16),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("A"),(0,e.createTextVNode)(" "),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"pause"}),(0,e.createTextVNode)("\xA0may be denoted by an empty chord: "),(0,e.createVNode)(1,"i",null,"C,E,,C,G",16),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("To make a chord be a different time, end it with /x, where the chord length will be length defined by\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"tempo / x"}),(0,e.createTextVNode)(",\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"eg:"}),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,"C,G/2,E/4",16),(0,e.createTextVNode)(".")],0),(0,e.createVNode)(1,"p",null,[(0,e.createTextVNode)("Combined, an example line is: "),(0,e.createVNode)(1,"i",null,"E-E4/4,F#/2,G#/8,B/8,E3-E4/4",16),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"ul",null,[(0,e.createVNode)(1,"li",null,"Lines may be up to 300 characters.",16),(0,e.createVNode)(1,"li",null,"A song may only contain up to 1,000 lines.",16)],4)],4),(0,e.createVNode)(1,"p",null,[(0,e.createTextVNode)("Lines are a series of chords, separated by commas\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"(,)"}),(0,e.createTextVNode)(", each with notes separated by hyphens\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"(-)"}),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("Every note in a chord will play together, with the chord timed by the\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"tempo"}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("as defined above.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createTextVNode)("Notes are played by the\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"good",children:"names of the note"}),(0,e.createTextVNode)(", and optionally, the\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"average",children:"accidental"}),(0,e.createTextVNode)(", and/or the"),(0,e.createTextVNode)(" "),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"bad",children:"octave number"}),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("By default, every note is\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"average",children:"natural"}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("and in\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"bad",children:"octave 3"}),(0,e.createTextVNode)(". Defining a different state for either is remembered for each"),(0,e.createTextVNode)(" "),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"good",children:"note"}),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"ul",null,[(0,e.createVNode)(1,"li",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"Example:"}),(0,e.createTextVNode)("\xA0"),(0,e.createVNode)(1,"i",null,"C,D,E,F,G,A,B",16),(0,e.createTextVNode)(" will play a\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"good",children:"C"}),(0,e.createTextVNode)("\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"average",children:"major"}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("scale.")],0),(0,e.createVNode)(1,"li",null,[(0,e.createTextVNode)("After a note has an\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"average",children:"accidental"}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("or\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"bad",children:"octave"}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("placed, it will be remembered:\xA0"),(0,e.createVNode)(1,"i",null,"C,C4,C#,C3",16),(0,e.createTextVNode)(" is "),(0,e.createVNode)(1,"i",null,"C3,C4,C4#,C3#",16)],0)],4)],0),(0,e.createVNode)(1,"p",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"Chords"}),(0,e.createTextVNode)("\xA0can be played simply by seperating each note with a hyphen:"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,"A-C#,Cn-E,E-G#,Gn-B",16),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("A"),(0,e.createTextVNode)(" "),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"pause"}),(0,e.createTextVNode)("\xA0may be denoted by an empty chord: "),(0,e.createVNode)(1,"i",null,"C,E,,C,G",16),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("To make a chord be a different time, end it with /x, where the chord length will be length defined by\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"tempo / x"}),(0,e.createTextVNode)(",\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"eg:"}),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,"C,G/2,E/4",16),(0,e.createTextVNode)(".")],0),(0,e.createVNode)(1,"p",null,[(0,e.createTextVNode)("Combined, an example line is: "),(0,e.createVNode)(1,"i",null,"E-E4/4,F#/2,G#/8,B/8,E3-E4/4",16),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"ul",null,[(0,e.createVNode)(1,"li",null,"Lines may be up to 300 characters.",16),(0,e.createVNode)(1,"li",null,"A song may only contain up to 1,000 lines.",16)],4)],4),(0,e.createVNode)(1,"h1",null,"Instrument Advanced Settings",16),(0,e.createVNode)(1,"ul",null,[(0,e.createVNode)(1,"li",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"label",children:"Type:"}),(0,e.createTextVNode)("\xA0Whether the instrument is legacy or synthesized."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("Legacy instruments have a collection of sounds that are selectively used depending on the note to play."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("Synthesized instruments use a base sound and change its pitch to match the note to play.")],4),(0,e.createVNode)(1,"li",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"label",children:"Current:"}),(0,e.createTextVNode)("\xA0Which instrument sample to play. Some instruments can be tuned to play different samples. Experiment!")],4),(0,e.createVNode)(1,"li",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"label",children:"Note Shift/Note Transpose:"}),(0,e.createTextVNode)("\xA0The pitch to apply to all notes of the song.")],4),(0,e.createVNode)(1,"li",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"label",children:"Sustain Mode:"}),(0,e.createTextVNode)("\xA0How a played note fades out."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("Linear sustain means a note will fade out at a constant rate."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("Exponential sustain means a note will fade out at an exponential rate, sounding smoother.")],4),(0,e.createVNode)(1,"li",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"label",children:"Volume Dropoff Threshold:"}),(0,e.createTextVNode)("\xA0The volume threshold at which a note is fully stopped.")],4),(0,e.createVNode)(1,"li",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"label",children:"Sustain indefinitely last held note:"}),(0,e.createTextVNode)("\xA0Whether the last note should be sustained indefinitely.")],4)],4),(0,e.createComponentVNode)(2,o.Button,{color:"grey",content:"Close",onClick:function(){function h(){return i("help")}return h}()})]})})})},S=function(c,f){var u=(0,t.useBackend)(f),i=u.act,s=u.data,d=s.lines,h=s.playing,v=s.repeat,g=s.maxRepeats,C=s.tempo,V=s.minTempo,b=s.maxTempo,B=s.tickLag,I=s.volume,w=s.minVolume,T=s.maxVolume,A=s.ready;return(0,e.createComponentVNode)(2,o.Section,{title:"Instrument",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{icon:"info",content:"Help",onClick:function(){function x(){return i("help")}return x}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"file",content:"New",onClick:function(){function x(){return i("newsong")}return x}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"upload",content:"Import",onClick:function(){function x(){return i("import")}return x}()})],4),children:[(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Playback",children:[(0,e.createComponentVNode)(2,o.Button,{selected:h,disabled:d.length===0||v<0,icon:"play",content:"Play",onClick:function(){function x(){return i("play")}return x}()}),(0,e.createComponentVNode)(2,o.Button,{disabled:!h,icon:"stop",content:"Stop",onClick:function(){function x(){return i("stop")}return x}()})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Repeat",children:(0,e.createComponentVNode)(2,o.Slider,{animated:!0,minValue:0,maxValue:g,value:v,stepPixelSize:59,onChange:function(){function x(E,M){return i("repeat",{new:M})}return x}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Tempo",children:(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,o.Button,{disabled:C>=b,content:"-",as:"span",mr:"0.5rem",onClick:function(){function x(){return i("tempo",{new:C+B})}return x}()}),(0,a.round)(600/C)," BPM",(0,e.createComponentVNode)(2,o.Button,{disabled:C<=V,content:"+",as:"span",ml:"0.5rem",onClick:function(){function x(){return i("tempo",{new:C-B})}return x}()})]})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Volume",children:(0,e.createComponentVNode)(2,o.Slider,{animated:!0,minValue:w,maxValue:T,value:I,stepPixelSize:6,onDrag:function(){function x(E,M){return i("setvolume",{new:M})}return x}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Status",children:A?(0,e.createComponentVNode)(2,o.Box,{color:"good",children:"Ready"}):(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"Instrument Definition Error!"})})]}),(0,e.createComponentVNode)(2,k)]})},k=function(c,f){var u=(0,t.useBackend)(f),i=u.act,s=u.data,d=s.allowedInstrumentNames,h=s.instrumentLoaded,v=s.instrument,g=s.canNoteShift,C=s.noteShift,V=s.noteShiftMin,b=s.noteShiftMax,B=s.sustainMode,I=s.sustainLinearDuration,w=s.sustainExponentialDropoff,T=s.legacy,A=s.sustainDropoffVolume,x=s.sustainHeldNote,E,M;return B===1?(E="Linear",M=(0,e.createComponentVNode)(2,o.Slider,{minValue:.1,maxValue:5,value:I,step:.5,stepPixelSize:85,format:function(){function j(P){return(0,a.round)(P*100)/100+" seconds"}return j}(),onChange:function(){function j(P,R){return i("setlinearfalloff",{new:R/10})}return j}()})):B===2&&(E="Exponential",M=(0,e.createComponentVNode)(2,o.Slider,{minValue:1.025,maxValue:10,value:w,step:.01,format:function(){function j(P){return(0,a.round)(P*1e3)/1e3+"% per decisecond"}return j}(),onChange:function(){function j(P,R){return i("setexpfalloff",{new:R})}return j}()})),d.sort(),(0,e.createComponentVNode)(2,o.Box,{my:-1,children:(0,e.createComponentVNode)(2,o.Collapsible,{mt:"1rem",mb:"0",title:"Advanced",children:(0,e.createComponentVNode)(2,o.Section,{mt:-1,children:[(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Type",children:T?"Legacy":"Synthesized"}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Current",children:h?(0,e.createComponentVNode)(2,o.Dropdown,{options:d,selected:v,width:"50%",onSelected:function(){function j(P){return i("switchinstrument",{name:P})}return j}()}):(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"None!"})}),!!(!T&&g)&&(0,e.createFragment)([(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Note Shift/Note Transpose",children:(0,e.createComponentVNode)(2,o.Slider,{minValue:V,maxValue:b,value:C,stepPixelSize:2,format:function(){function j(P){return P+" keys / "+(0,a.round)(P/12*100)/100+" octaves"}return j}(),onChange:function(){function j(P,R){return i("setnoteshift",{new:R})}return j}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Sustain Mode",children:[(0,e.createComponentVNode)(2,o.Dropdown,{options:["Linear","Exponential"],selected:E,onSelected:function(){function j(P){return i("setsustainmode",{new:P})}return j}()}),M]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Volume Dropoff Threshold",children:(0,e.createComponentVNode)(2,o.Slider,{animated:!0,minValue:.01,maxValue:100,value:A,stepPixelSize:6,onChange:function(){function j(P,R){return i("setdropoffvolume",{new:R})}return j}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Sustain indefinitely last held note",children:(0,e.createComponentVNode)(2,o.Button,{selected:x,icon:x?"toggle-on":"toggle-off",content:x?"Yes":"No",onClick:function(){function j(){return i("togglesustainhold")}return j}()})})],4)]}),(0,e.createComponentVNode)(2,o.Button,{icon:"redo",content:"Reset to Default",mt:"0.5rem",onClick:function(){function j(){return i("reset")}return j}()})]})})})},p=function(c,f){var u=(0,t.useBackend)(f),i=u.act,s=u.data,d=s.playing,h=s.lines,v=s.editing;return(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"Editor",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{disabled:!v||d,icon:"plus",content:"Add Line",onClick:function(){function g(){return i("newline",{line:h.length+1})}return g}()}),(0,e.createComponentVNode)(2,o.Button,{selected:!v,icon:v?"chevron-up":"chevron-down",onClick:function(){function g(){return i("edit")}return g}()})],4),children:!!v&&(h.length>0?(0,e.createComponentVNode)(2,o.LabeledList,{children:h.map(function(g,C){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:C+1,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{disabled:d,icon:"pen",onClick:function(){function V(){return i("modifyline",{line:C+1})}return V}()}),(0,e.createComponentVNode)(2,o.Button,{disabled:d,icon:"trash",onClick:function(){function V(){return i("deleteline",{line:C+1})}return V}()})],4),children:g},C)})}):(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"Song is empty."}))})}},99366:function(L,r,n){"use strict";r.__esModule=!0,r.Jukebox=void 0;var e=n(96524),a=n(50640),t=n(74041),o=n(17899),m=n(24674),N=n(45493),y=r.Jukebox=function(){function p(l,c){var f=(0,o.useBackend)(c),u=f.act,i=f.data,s=i.active,d=i.looping,h=i.track_selected,v=i.volume,g=i.max_volume,C=i.songs,V=i.startTime,b=i.endTime,B=i.worldTime,I=i.need_coin,w=i.payment,T=i.advanced_admin,A=35,x=!w&&I&&!T,E=(0,t.flow)([(0,a.sortBy)(function(F){return F.name})])(C),M=C.find(function(F){return F.name===h}),j=E.length,P=M?E.findIndex(function(F){return F.name===M.name})+1:0,R=function(){function F(W){var _=Math.floor(W/60),H=W%60,z=String(_).padStart(2,"0")+":"+String(H).padStart(2,"0");return z}return F}(),D=(0,e.createComponentVNode)(2,m.Box,{textAlign:"center",children:[s?d?"\u221E":R(Math.round((B-V)/10)):d?"\u221E":R(M.length)," ","/ ",d?"\u221E":R(M.length)]});return(0,e.createComponentVNode)(2,N.Window,{width:350,height:435,title:"\u041C\u0443\u0437\u044B\u043A\u0430\u043B\u044C\u043D\u044B\u0439 \u0430\u0432\u0442\u043E\u043C\u0430\u0442",children:[x?(0,e.createComponentVNode)(2,k):null,(0,e.createComponentVNode)(2,N.Window.Content,{children:(0,e.createComponentVNode)(2,m.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,m.Stack,{children:[(0,e.createComponentVNode)(2,m.Stack.Item,{grow:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,m.Section,{fill:!0,title:"\u041F\u0440\u043E\u0438\u0433\u0440\u044B\u0432\u0430\u0442\u0435\u043B\u044C",children:(0,e.createComponentVNode)(2,m.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,m.Stack.Item,{bold:!0,maxWidth:"240px",children:M.name.length>A?(0,e.createVNode)(1,"marquee",null,M.name,0):M.name}),(0,e.createComponentVNode)(2,m.Stack,{fill:!0,mt:1.5,children:[(0,e.createComponentVNode)(2,m.Stack.Item,{grow:!0,basis:"0",children:(0,e.createComponentVNode)(2,m.Button,{fluid:!0,icon:s?"pause":"play",color:"transparent",content:s?"\u0421\u0442\u043E\u043F":"\u0421\u0442\u0430\u0440\u0442",selected:s,onClick:function(){function F(){return u("toggle")}return F}()})}),(0,e.createComponentVNode)(2,m.Stack.Item,{grow:!0,basis:"0",children:(0,e.createComponentVNode)(2,m.Button.Checkbox,{fluid:!0,icon:"undo",content:"\u041F\u043E\u0432\u0442\u043E\u0440",disabled:s||I&&!T,tooltip:I&&!T?"\u0412\u044B \u043D\u0435 \u043C\u043E\u0436\u0435\u0442\u0435 \u0432\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u043F\u043E\u0432\u0442\u043E\u0440 \u0437\u0430 \u043C\u043E\u043D\u0435\u0442\u043A\u0443":null,checked:d,onClick:function(){function F(){return u("loop",{looping:!d})}return F}()})})]}),(0,e.createComponentVNode)(2,m.Stack.Item,{children:(0,e.createComponentVNode)(2,m.ProgressBar.Countdown,{start:V,current:d?b:B,end:b,children:D})})]})})}),(0,e.createComponentVNode)(2,m.Stack.Item,{children:(0,e.createComponentVNode)(2,m.Section,{children:[s?(0,e.createComponentVNode)(2,S):null,(0,e.createComponentVNode)(2,m.Stack,{fill:!0,mb:1.5,children:[(0,e.createComponentVNode)(2,m.Stack.Item,{grow:!0,m:0,children:(0,e.createComponentVNode)(2,m.Button,{color:"transparent",icon:"fast-backward",onClick:function(){function F(){return u("set_volume",{volume:"min"})}return F}()})}),(0,e.createComponentVNode)(2,m.Stack.Item,{m:0,children:(0,e.createComponentVNode)(2,m.Button,{color:"transparent",icon:"undo",onClick:function(){function F(){return u("set_volume",{volume:"reset"})}return F}()})}),(0,e.createComponentVNode)(2,m.Stack.Item,{grow:!0,m:0,textAlign:"right",children:(0,e.createComponentVNode)(2,m.Button,{color:"transparent",icon:"fast-forward",onClick:function(){function F(){return u("set_volume",{volume:"max"})}return F}()})})]}),(0,e.createComponentVNode)(2,m.Stack.Item,{textAlign:"center",textColor:"label",children:[(0,e.createComponentVNode)(2,m.Knob,{size:2,color:v<=25?"green":v<=50?"":v<=75?"orange":"red",value:v,unit:"%",minValue:0,maxValue:g,step:1,stepPixelSize:5,onDrag:function(){function F(W,_){return u("set_volume",{volume:_})}return F}()}),"Volume"]})]})})]}),(0,e.createComponentVNode)(2,m.Stack.Item,{grow:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,m.Section,{fill:!0,scrollable:!0,title:"\u0414\u043E\u0441\u0442\u0443\u043F\u043D\u044B\u0435 \u0442\u0440\u0435\u043A\u0438",buttons:(0,e.createComponentVNode)(2,m.Button,{bold:!0,icon:"random",color:"transparent",content:P+"/"+j,tooltip:"\u0412\u044B\u0431\u0440\u0430\u0442\u044C \u0441\u043B\u0443\u0447\u0430\u0439\u043D\u044B\u0439 \u0442\u0440\u0435\u043A",tooltipPosition:"top-end",onClick:function(){function F(){var W=Math.floor(Math.random()*j),_=E[W];u("select_track",{track:_.name})}return F}()}),children:E.map(function(F){return(0,e.createComponentVNode)(2,m.Stack.Item,{mb:.5,textAlign:"left",children:(0,e.createComponentVNode)(2,m.Button,{fluid:!0,selected:M.name===F.name,color:"translucent",content:(0,e.createComponentVNode)(2,m.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,m.Stack.Item,{grow:!0,children:F.name}),(0,e.createComponentVNode)(2,m.Stack.Item,{children:R(F.length)})]}),onClick:function(){function W(){u("select_track",{track:F.name})}return W}()})},F.name)})})})]})})]})}return p}(),S=function(){return(0,e.createComponentVNode)(2,m.Dimmer,{textAlign:"center",children:[(0,e.createComponentVNode)(2,m.Icon,{name:"music",size:"3",color:"gray",mb:1}),(0,e.createComponentVNode)(2,m.Box,{color:"label",bold:!0,children:"\u0418\u0433\u0440\u0430\u0435\u0442 \u043C\u0443\u0437\u044B\u043A\u0430"})]})},k=function(){return(0,e.createComponentVNode)(2,m.Dimmer,{textAlign:"center",children:[(0,e.createComponentVNode)(2,m.Icon,{name:"coins",size:"6",color:"gold",mr:1}),(0,e.createComponentVNode)(2,m.Box,{color:"label",bold:!0,mt:5,fontSize:2,children:"\u0412\u0441\u0442\u0430\u0432\u044C\u0442\u0435 \u043C\u043E\u043D\u0435\u0442\u043A\u0443"})]})}},53385:function(L,r,n){"use strict";r.__esModule=!0,r.KeycardAuth=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=r.KeycardAuth=function(){function N(y,S){var k=(0,a.useBackend)(S),p=k.act,l=k.data,c=(0,e.createComponentVNode)(2,t.Section,{title:"Keycard Authentication Device",children:(0,e.createComponentVNode)(2,t.Box,{children:"This device is used to trigger certain high security events. It requires the simultaneous swipe of two high-level ID cards."})});if(!l.swiping&&!l.busy)return(0,e.createComponentVNode)(2,o.Window,{width:540,height:280,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[c,(0,e.createComponentVNode)(2,t.Section,{title:"Choose Action",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Red Alert",children:(0,e.createComponentVNode)(2,t.Button,{icon:"exclamation-triangle",disabled:!l.redAvailable,onClick:function(){function u(){return p("triggerevent",{triggerevent:"Red Alert"})}return u}(),content:"Red Alert"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"ERT",children:(0,e.createComponentVNode)(2,t.Button,{icon:"broadcast-tower",onClick:function(){function u(){return p("triggerevent",{triggerevent:"Emergency Response Team"})}return u}(),content:"Call ERT"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Emergency Maint Access",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"door-open",onClick:function(){function u(){return p("triggerevent",{triggerevent:"Grant Emergency Maintenance Access"})}return u}(),content:"Grant"}),(0,e.createComponentVNode)(2,t.Button,{icon:"door-closed",onClick:function(){function u(){return p("triggerevent",{triggerevent:"Revoke Emergency Maintenance Access"})}return u}(),content:"Revoke"})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Emergency Station-Wide Access",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"door-open",onClick:function(){function u(){return p("triggerevent",{triggerevent:"Activate Station-Wide Emergency Access"})}return u}(),content:"Grant"}),(0,e.createComponentVNode)(2,t.Button,{icon:"door-closed",onClick:function(){function u(){return p("triggerevent",{triggerevent:"Deactivate Station-Wide Emergency Access"})}return u}(),content:"Revoke"})]})]})})]})});var f=(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Waiting for YOU to swipe your ID..."});return!l.hasSwiped&&!l.ertreason&&l.event==="Emergency Response Team"?f=(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Fill out the reason for your ERT request."}):l.hasConfirm?f=(0,e.createComponentVNode)(2,t.Box,{color:"green",children:"Request Confirmed!"}):l.isRemote?f=(0,e.createComponentVNode)(2,t.Box,{color:"orange",children:"Swipe your card to CONFIRM the remote request."}):l.hasSwiped&&(f=(0,e.createComponentVNode)(2,t.Box,{color:"orange",children:"Waiting for second person to confirm..."})),(0,e.createComponentVNode)(2,o.Window,{width:540,height:265,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[c,l.event==="Emergency Response Team"&&(0,e.createComponentVNode)(2,t.Section,{title:"Reason for ERT Call",children:(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{color:l.ertreason?"":"red",icon:l.ertreason?"check":"pencil-alt",content:l.ertreason?l.ertreason:"-----",disabled:l.busy,onClick:function(){function u(){return p("ert")}return u}()})})}),(0,e.createComponentVNode)(2,t.Section,{title:l.event,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-circle-left",content:"Back",disabled:l.busy||l.hasConfirm,onClick:function(){function u(){return p("reset")}return u}()}),children:f})]})})}return N}()},58553:function(L,r,n){"use strict";r.__esModule=!0,r.KitchenMachine=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=n(75201),N=r.KitchenMachine=function(){function S(k,p){var l=(0,a.useBackend)(p),c=l.data,f=l.config,u=c.ingredients,i=c.operating,s=f.title;return(0,e.createComponentVNode)(2,o.Window,{width:400,height:320,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,m.Operating,{operating:i,name:s}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,y)}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Ingredients",children:(0,e.createComponentVNode)(2,t.Table,{className:"Ingredient__Table",children:u.map(function(d){return(0,e.createComponentVNode)(2,t.Table.Row,{tr:5,children:[(0,e.createVNode)(1,"td",null,(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:d.name}),2),(0,e.createVNode)(1,"td",null,(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,textAlign:"center",children:[d.amount," ",d.units]}),2)]},d.name)})})})})]})})})}return S}(),y=function(k,p){var l=(0,a.useBackend)(p),c=l.act,f=l.data,u=f.inactive,i=f.tooltip;return(0,e.createComponentVNode)(2,t.Section,{title:"Controls",children:(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"50%",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"power-off",disabled:u,tooltip:u?i:"",tooltipPosition:"bottom",content:"Activate",onClick:function(){function s(){return c("cook")}return s}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:"50%",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"eject",disabled:u,tooltip:u?i:"",tooltipPosition:"bottom",content:"Eject Contents",onClick:function(){function s(){return c("eject")}return s}()})})]})})}},14047:function(L,r,n){"use strict";r.__esModule=!0,r.LawManager=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=r.LawManager=function(){function k(p,l){var c=(0,a.useBackend)(l),f=c.act,u=c.data,i=u.isAdmin,s=u.isSlaved,d=u.isMalf,h=u.isAIMalf,v=u.view;return(0,e.createComponentVNode)(2,o.Window,{width:800,height:d?620:365,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[!!(i&&s)&&(0,e.createComponentVNode)(2,t.NoticeBox,{children:["This unit is slaved to ",s,"."]}),!!(d||h)&&(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Button,{content:"Law Management",selected:v===0,onClick:function(){function g(){return f("set_view",{set_view:0})}return g}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Lawsets",selected:v===1,onClick:function(){function g(){return f("set_view",{set_view:1})}return g}()})]}),v===0&&(0,e.createComponentVNode)(2,N),v===1&&(0,e.createComponentVNode)(2,y)]})})}return k}(),N=function(p,l){var c=(0,a.useBackend)(l),f=c.act,u=c.data,i=u.has_zeroth_laws,s=u.zeroth_laws,d=u.has_ion_laws,h=u.ion_laws,v=u.ion_law_nr,g=u.has_inherent_laws,C=u.inherent_laws,V=u.has_supplied_laws,b=u.supplied_laws,B=u.channels,I=u.channel,w=u.isMalf,T=u.isAdmin,A=u.zeroth_law,x=u.ion_law,E=u.inherent_law,M=u.supplied_law,j=u.supplied_law_position;return(0,e.createFragment)([!!i&&(0,e.createComponentVNode)(2,S,{title:"ERR_NULL_VALUE",laws:s,ctx:l}),!!d&&(0,e.createComponentVNode)(2,S,{title:v,laws:h,ctx:l}),!!g&&(0,e.createComponentVNode)(2,S,{title:"Inherent",laws:C,ctx:l}),!!V&&(0,e.createComponentVNode)(2,S,{title:"Supplied",laws:b,ctx:l}),(0,e.createComponentVNode)(2,t.Section,{title:"Statement Settings",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Statement Channel",children:B.map(function(P){return(0,e.createComponentVNode)(2,t.Button,{content:P.channel,selected:P.channel===I,onClick:function(){function R(){return f("law_channel",{law_channel:P.channel})}return R}()},P.channel)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"State Laws",children:(0,e.createComponentVNode)(2,t.Button,{content:"State Laws",onClick:function(){function P(){return f("state_laws")}return P}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Law Notification",children:(0,e.createComponentVNode)(2,t.Button,{content:"Notify",onClick:function(){function P(){return f("notify_laws")}return P}()})})]})}),!!w&&(0,e.createComponentVNode)(2,t.Section,{title:"Add Laws",children:(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{width:"10%",children:"Type"}),(0,e.createComponentVNode)(2,t.Table.Cell,{width:"60%",children:"Law"}),(0,e.createComponentVNode)(2,t.Table.Cell,{width:"10%",children:"Index"}),(0,e.createComponentVNode)(2,t.Table.Cell,{width:"20%",children:"Actions"})]}),!!(T&&!i)&&(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Zero"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:A}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"N/A"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:[(0,e.createComponentVNode)(2,t.Button,{content:"Edit",icon:"pencil-alt",onClick:function(){function P(){return f("change_zeroth_law")}return P}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Add",icon:"plus",onClick:function(){function P(){return f("add_zeroth_law")}return P}()})]})]}),(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Ion"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:x}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"N/A"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:[(0,e.createComponentVNode)(2,t.Button,{content:"Edit",icon:"pencil-alt",onClick:function(){function P(){return f("change_ion_law")}return P}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Add",icon:"plus",onClick:function(){function P(){return f("add_ion_law")}return P}()})]})]}),(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Inherent"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:E}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"N/A"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:[(0,e.createComponentVNode)(2,t.Button,{content:"Edit",icon:"pencil-alt",onClick:function(){function P(){return f("change_inherent_law")}return P}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Add",icon:"plus",onClick:function(){function P(){return f("add_inherent_law")}return P}()})]})]}),(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Supplied"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:M}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{content:j,onClick:function(){function P(){return f("change_supplied_law_position")}return P}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:[(0,e.createComponentVNode)(2,t.Button,{content:"Edit",icon:"pencil-alt",onClick:function(){function P(){return f("change_supplied_law")}return P}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Add",icon:"plus",onClick:function(){function P(){return f("add_supplied_law")}return P}()})]})]})]})})],0)},y=function(p,l){var c=(0,a.useBackend)(l),f=c.act,u=c.data,i=u.law_sets;return(0,e.createComponentVNode)(2,t.Box,{children:i.map(function(s){return(0,e.createComponentVNode)(2,t.Section,{title:s.name+" - "+s.header,buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Load Laws",icon:"download",onClick:function(){function d(){return f("transfer_laws",{transfer_laws:s.ref})}return d}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[s.laws.has_ion_laws>0&&s.laws.ion_laws.map(function(d){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:d.index,children:d.law},d.index)}),s.laws.has_zeroth_laws>0&&s.laws.zeroth_laws.map(function(d){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:d.index,children:d.law},d.index)}),s.laws.has_inherent_laws>0&&s.laws.inherent_laws.map(function(d){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:d.index,children:d.law},d.index)}),s.laws.has_supplied_laws>0&&s.laws.inherent_laws.map(function(d){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:d.index,children:d.law},d.index)})]})},s.name)})})},S=function(p,l){var c=(0,a.useBackend)(p.ctx),f=c.act,u=c.data,i=u.isMalf;return(0,e.createComponentVNode)(2,t.Section,{title:p.title+" Laws",children:(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{width:"10%",children:"Index"}),(0,e.createComponentVNode)(2,t.Table.Cell,{width:"69%",children:"Law"}),(0,e.createComponentVNode)(2,t.Table.Cell,{width:"21%",children:"State?"})]}),p.laws.map(function(s){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:s.index}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:s.law}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:[(0,e.createComponentVNode)(2,t.Button,{content:s.state?"Yes":"No",selected:s.state,onClick:function(){function d(){return f("state_law",{ref:s.ref,state_law:s.state?0:1})}return d}()}),!!i&&(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{content:"Edit",icon:"pencil-alt",onClick:function(){function d(){return f("edit_law",{edit_law:s.ref})}return d}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Delete",icon:"trash",color:"red",onClick:function(){function d(){return f("delete_law",{delete_law:s.ref})}return d}()})],4)]})]},s.law)})]})})}},5872:function(L,r,n){"use strict";r.__esModule=!0,r.LibraryComputer=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=n(99665),N=r.LibraryComputer=function(){function v(g,C){return(0,e.createComponentVNode)(2,o.Window,{width:1050,height:600,children:[(0,e.createComponentVNode)(2,m.ComplexModal),(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,l),(0,e.createComponentVNode)(2,c)]})})]})}return v}(),y=function(g,C){var V=(0,a.useBackend)(C),b=V.act,B=V.data,I=g.args,w=B.user_ckey;return(0,e.createComponentVNode)(2,t.Section,{children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Title",children:I.title}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Author",children:I.author}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Summary",children:I.summary}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Rating",children:[I.rating,(0,e.createComponentVNode)(2,t.Icon,{name:"star",color:"yellow",verticalAlign:"top"})]}),!I.isProgrammatic&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Categories",children:I.categories.join(", ")})]}),(0,e.createVNode)(1,"br"),w===I.ckey&&(0,e.createComponentVNode)(2,t.Button,{content:"Delete Book",icon:"trash",color:"red",disabled:I.isProgrammatic,onClick:function(){function T(){return b("delete_book",{bookid:I.id,user_ckey:w})}return T}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Report Book",icon:"flag",color:"red",disabled:I.isProgrammatic,onClick:function(){function T(){return(0,m.modalOpen)(C,"report_book",{bookid:I.id})}return T}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Rate Book",icon:"star",color:"caution",disabled:I.isProgrammatic,onClick:function(){function T(){return(0,m.modalOpen)(C,"rate_info",{bookid:I.id})}return T}()})]})},S=function(g,C){var V=(0,a.useBackend)(C),b=V.act,B=V.data,I=g.args,w=B.selected_report,T=B.report_categories,A=B.user_ckey;return(0,e.createComponentVNode)(2,t.Section,{level:2,m:"-1rem",pb:"1.5rem",title:"Report this book for Rule Violations",children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Title",children:I.title}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Reasons",children:(0,e.createComponentVNode)(2,t.Box,{children:T.map(function(x,E){return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{content:x.description,selected:x.category_id===w,onClick:function(){function M(){return b("set_report",{report_type:x.category_id})}return M}()}),(0,e.createVNode)(1,"br")],4,E)})})})]}),(0,e.createComponentVNode)(2,t.Button.Confirm,{bold:!0,icon:"paper-plane",content:"Submit Report",onClick:function(){function x(){return b("submit_report",{bookid:I.id,user_ckey:A})}return x}()})]})},k=function(g,C){var V=(0,a.useBackend)(C),b=V.act,B=V.data,I=B.selected_rating,w=Array(10).fill().map(function(T,A){return 1+A});return(0,e.createComponentVNode)(2,t.Stack,{children:[w.map(function(T,A){return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{bold:!0,icon:"star",color:I>=T?"caution":"default",onClick:function(){function x(){return b("set_rating",{rating_value:T})}return x}()})},A)}),(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,ml:2,fontSize:"150%",children:[I+"/10",(0,e.createComponentVNode)(2,t.Icon,{name:"star",color:"yellow",ml:.5,verticalAlign:"top"})]})]})},p=function(g,C){var V=(0,a.useBackend)(C),b=V.act,B=V.data,I=g.args,w=B.user_ckey;return(0,e.createComponentVNode)(2,t.Section,{level:2,m:"-1rem",pb:"1.5rem",children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Title",children:I.title}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Author",children:I.author}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Rating",children:[I.current_rating?I.current_rating:0,(0,e.createComponentVNode)(2,t.Icon,{name:"star",color:"yellow",ml:.5,verticalAlign:"middle"})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Total Ratings",children:I.total_ratings?I.total_ratings:0})]}),(0,e.createComponentVNode)(2,k),(0,e.createComponentVNode)(2,t.Button.Confirm,{mt:2,content:"Submit",icon:"paper-plane",onClick:function(){function T(){return b("rate_book",{bookid:I.id,user_ckey:w})}return T}()})]})},l=function(g,C){var V=(0,a.useBackend)(C),b=V.data,B=(0,a.useLocalState)(C,"tabIndex",0),I=B[0],w=B[1],T=b.login_state;return(0,e.createComponentVNode)(2,t.Stack.Item,{mb:1,children:(0,e.createComponentVNode)(2,t.Tabs,{fluid:!0,textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:I===0,onClick:function(){function A(){return w(0)}return A}(),children:"Book Archives"}),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:I===1,onClick:function(){function A(){return w(1)}return A}(),children:"Corporate Literature"}),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:I===2,onClick:function(){function A(){return w(2)}return A}(),children:"Upload Book"}),T===1&&(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:I===3,onClick:function(){function A(){return w(3)}return A}(),children:"Patron Manager"}),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:I===4,onClick:function(){function A(){return w(4)}return A}(),children:"Inventory"})]})})},c=function(g,C){var V=(0,a.useLocalState)(C,"tabIndex",0),b=V[0];switch(b){case 0:return(0,e.createComponentVNode)(2,u);case 1:return(0,e.createComponentVNode)(2,i);case 2:return(0,e.createComponentVNode)(2,s);case 3:return(0,e.createComponentVNode)(2,d);case 4:return(0,e.createComponentVNode)(2,h);default:return"You are somehow on a tab that doesn't exist! Please let a coder know."}},f=function(g,C){var V=(0,a.useBackend)(C),b=V.act,B=V.data,I=B.searchcontent,w=B.book_categories,T=B.user_ckey,A=[];return w.map(function(x){return A[x.description]=x.category_id}),(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"35%",children:[(0,e.createComponentVNode)(2,t.Box,{fontSize:"1.2rem",m:".5em",bold:!0,children:[(0,e.createComponentVNode)(2,t.Icon,{name:"edit",verticalAlign:"middle",size:1.5,mr:"1rem"}),"Search Inputs"]}),(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Title",children:(0,e.createComponentVNode)(2,t.Button,{textAlign:"left",icon:"pen",width:20,content:I.title||"Input Title",onClick:function(){function x(){return(0,m.modalOpen)(C,"edit_search_title")}return x}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Author",children:(0,e.createComponentVNode)(2,t.Button,{textAlign:"left",icon:"pen",width:20,content:I.author||"Input Author",onClick:function(){function x(){return(0,m.modalOpen)(C,"edit_search_author")}return x}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Ratings",children:(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{mr:1,width:"min-content",content:I.ratingmin,onClick:function(){function x(){return(0,m.modalOpen)(C,"edit_search_ratingmin")}return x}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:"To"}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{ml:1,width:"min-content",content:I.ratingmax,onClick:function(){function x(){return(0,m.modalOpen)(C,"edit_search_ratingmax")}return x}()})})]})})]})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:"40%",children:[(0,e.createComponentVNode)(2,t.Box,{fontSize:"1.2rem",m:".5em",bold:!0,children:[(0,e.createComponentVNode)(2,t.Icon,{name:"clipboard-list",verticalAlign:"middle",size:1.5,mr:"1rem"}),"Book Categories"]}),(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Select Categories",children:(0,e.createComponentVNode)(2,t.Box,{mt:2,children:(0,e.createComponentVNode)(2,t.Dropdown,{mt:.6,width:"190px",options:w.map(function(x){return x.description}),onSelected:function(){function x(E){return b("toggle_search_category",{category_id:A[E]})}return x}()})})})}),(0,e.createVNode)(1,"br"),w.filter(function(x){return I.categories.includes(x.category_id)}).map(function(x){return(0,e.createComponentVNode)(2,t.Button,{content:x.description,selected:!0,icon:"unlink",onClick:function(){function E(){return b("toggle_search_category",{category_id:x.category_id})}return E}()},x.category_id)})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Box,{fontSize:"1.2rem",m:".5em",bold:!0,children:[(0,e.createComponentVNode)(2,t.Icon,{name:"search-plus",verticalAlign:"middle",size:1.5,mr:"1rem"}),"Search Actions"]}),(0,e.createComponentVNode)(2,t.Button,{content:"Clear Search",icon:"eraser",onClick:function(){function x(){return b("clear_search")}return x}()}),I.ckey?(0,e.createComponentVNode)(2,t.Button,{mb:.5,content:"Stop Showing My Books",color:"bad",icon:"search",onClick:function(){function x(){return b("clear_ckey_search")}return x}()}):(0,e.createComponentVNode)(2,t.Button,{content:"Find My Books",icon:"search",onClick:function(){function x(){return b("find_users_books",{user_ckey:T})}return x}()})]})]})},u=function(g,C){var V=(0,a.useBackend)(C),b=V.act,B=V.data,I=B.external_booklist,w=B.archive_pagenumber,T=B.num_pages,A=B.login_state;return(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Book System Access",buttons:(0,e.createVNode)(1,"div",null,[(0,e.createComponentVNode)(2,t.Button,{icon:"angle-double-left",disabled:w===1,onClick:function(){function x(){return b("deincrementpagemax")}return x}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"chevron-left",disabled:w===1,onClick:function(){function x(){return b("deincrementpage")}return x}()}),(0,e.createComponentVNode)(2,t.Button,{bold:!0,content:w,onClick:function(){function x(){return(0,m.modalOpen)(C,"setpagenumber")}return x}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"chevron-right",disabled:w===T,onClick:function(){function x(){return b("incrementpage")}return x}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"angle-double-right",disabled:w===T,onClick:function(){function x(){return b("incrementpagemax")}return x}()})],4),children:[(0,e.createComponentVNode)(2,f),(0,e.createVNode)(1,"hr"),(0,e.createComponentVNode)(2,t.Table,{className:"Library__Booklist",children:[(0,e.createComponentVNode)(2,t.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"SSID"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Title"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Author"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Ratings"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Category"}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"middle",children:"Actions"})]}),I.map(function(x){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:x.id}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"book",mr:.5}),x.title.length>45?x.title.substr(0,45)+"...":x.title]}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:x.author.length>30?x.author.substr(0,30)+"...":x.author}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:[x.rating,(0,e.createComponentVNode)(2,t.Icon,{name:"star",ml:.5,color:"yellow",verticalAlign:"middle"})]}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:x.categories.join(", ").substr(0,45)}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"right",children:[A===1&&(0,e.createComponentVNode)(2,t.Button,{content:"Order",icon:"print",onClick:function(){function E(){return b("order_external_book",{bookid:x.id})}return E}()}),(0,e.createComponentVNode)(2,t.Button,{content:"More...",onClick:function(){function E(){return(0,m.modalOpen)(C,"expand_info",{bookid:x.id})}return E}()})]})]},x.id)})]})]})},i=function(g,C){var V=(0,a.useBackend)(C),b=V.act,B=V.data,I=B.programmatic_booklist,w=B.login_state;return(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Corporate Book Catalog",children:(0,e.createComponentVNode)(2,t.Table,{className:"Library__Booklist",children:[(0,e.createComponentVNode)(2,t.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"SSID"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Title"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Author"}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"middle",children:"Actions"})]}),I.map(function(T,A){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:T.id}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"book",mr:2}),T.title]}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:T.author}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"right",children:[w===1&&(0,e.createComponentVNode)(2,t.Button,{content:"Order",icon:"print",onClick:function(){function x(){return b("order_programmatic_book",{bookid:T.id})}return x}()}),(0,e.createComponentVNode)(2,t.Button,{content:"More...",onClick:function(){function x(){return(0,m.modalOpen)(C,"expand_info",{bookid:T.id})}return x}()})]})]},A)})]})})},s=function(g,C){var V=(0,a.useBackend)(C),b=V.act,B=V.data,I=B.selectedbook,w=B.book_categories,T=B.user_ckey,A=[];return w.map(function(x){return A[x.description]=x.category_id}),(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Book System Upload",buttons:(0,e.createComponentVNode)(2,t.Button.Confirm,{bold:!0,width:9.5,icon:"upload",disabled:I.copyright,content:"Upload Book",onClick:function(){function x(){return b("uploadbook",{user_ckey:T})}return x}()}),children:[I.copyright?(0,e.createComponentVNode)(2,t.NoticeBox,{color:"red",children:"WARNING: You cannot upload or modify the attributes of a copyrighted book"}):(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Box,{ml:15,mb:3,fontSize:"1.2rem",bold:!0,children:[(0,e.createComponentVNode)(2,t.Icon,{name:"search-plus",verticalAlign:"middle",size:3,mr:2}),"Book Uploader"]}),(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Title",children:(0,e.createComponentVNode)(2,t.Button,{width:20,textAlign:"left",icon:"pen",disabled:I.copyright,content:I.title,onClick:function(){function x(){return(0,m.modalOpen)(C,"edit_selected_title")}return x}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Author",children:(0,e.createComponentVNode)(2,t.Button,{width:20,textAlign:"left",icon:"pen",disabled:I.copyright,content:I.author,onClick:function(){function x(){return(0,m.modalOpen)(C,"edit_selected_author")}return x}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Select Categories",children:(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Dropdown,{width:"240px",options:w.map(function(x){return x.description}),onSelected:function(){function x(E){return b("toggle_upload_category",{category_id:A[E]})}return x}()})})})]}),(0,e.createVNode)(1,"br"),w.filter(function(x){return I.categories.includes(x.category_id)}).map(function(x){return(0,e.createComponentVNode)(2,t.Button,{content:x.description,disabled:I.copyright,selected:!0,icon:"unlink",onClick:function(){function E(){return b("toggle_upload_category",{category_id:x.category_id})}return E}()},x.category_id)})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{mr:75,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Summary",children:(0,e.createComponentVNode)(2,t.Button,{icon:"pen",width:"auto",disabled:I.copyright,content:"Edit Summary",onClick:function(){function x(){return(0,m.modalOpen)(C,"edit_selected_summary")}return x}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{children:I.summary})]})})]})]})},d=function(g,C){var V=(0,a.useBackend)(C),b=V.act,B=V.data,I=B.checkout_data;return(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Checked Out Books",children:(0,e.createComponentVNode)(2,t.Table,{className:"Library__Booklist",children:[(0,e.createComponentVNode)(2,t.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Patron"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Title"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Time Left"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Actions"})]}),I.map(function(w,T){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:[(0,e.createComponentVNode)(2,t.Icon,{name:"user-tag"}),w.patron_name]}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:w.title}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:w.timeleft>=0?w.timeleft:"LATE"}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:(0,e.createComponentVNode)(2,t.Button,{content:"Mark Lost",icon:"flag",color:"bad",disabled:w.timeleft>=0,onClick:function(){function A(){return b("reportlost",{libraryid:w.libraryid})}return A}()})})]},T)})]})})},h=function(g,C){var V=(0,a.useBackend)(C),b=V.act,B=V.data,I=B.inventory_list;return(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Library Inventory",children:(0,e.createComponentVNode)(2,t.Table,{className:"Library__Booklist",children:[(0,e.createComponentVNode)(2,t.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"LIB ID"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Title"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Author"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Status"})]}),I.map(function(w,T){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:w.libraryid}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"book"})," ",w.title]}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:w.author}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:w.checked_out?"Checked Out":"Available"})]},T)})]})})};(0,m.modalRegisterBodyOverride)("expand_info",y),(0,m.modalRegisterBodyOverride)("report_book",S),(0,m.modalRegisterBodyOverride)("rate_info",p)},37782:function(L,r,n){"use strict";r.__esModule=!0,r.LibraryManager=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=n(99665),N=r.LibraryManager=function(){function l(c,f){return(0,e.createComponentVNode)(2,o.Window,{width:600,height:600,children:[(0,e.createComponentVNode)(2,m.ComplexModal),(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,className:"Layout__content--flexColumn",children:(0,e.createComponentVNode)(2,y)})]})}return l}(),y=function(c,f){var u=(0,a.useBackend)(f),i=u.act,s=u.data,d=s.pagestate;switch(d){case 1:return(0,e.createComponentVNode)(2,S);case 2:return(0,e.createComponentVNode)(2,p);case 3:return(0,e.createComponentVNode)(2,k);default:return"WE SHOULDN'T BE HERE!"}},S=function(c,f){var u=(0,a.useBackend)(f),i=u.act,s=u.data;return(0,e.createComponentVNode)(2,t.Section,{children:[(0,e.createComponentVNode)(2,t.Box,{fontSize:"1.4rem",bold:!0,children:[(0,e.createComponentVNode)(2,t.Icon,{name:"user-shield",verticalAlign:"middle",size:3,mr:"1rem"}),"Library Manager"]}),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Button,{icon:"trash",width:"auto",color:"danger",content:"Delete Book by SSID",onClick:function(){function d(){return(0,m.modalOpen)(f,"specify_ssid_delete")}return d}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"user-slash",width:"auto",color:"danger",content:"Delete All Books By CKEY",onClick:function(){function d(){return(0,m.modalOpen)(f,"specify_ckey_delete")}return d}()}),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Button,{icon:"search",width:"auto",content:"View All Books By CKEY",onClick:function(){function d(){return(0,m.modalOpen)(f,"specify_ckey_search")}return d}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"search",width:"auto",content:"View All Reported Books",onClick:function(){function d(){return i("view_reported_books")}return d}()})]})},k=function(c,f){var u=(0,a.useBackend)(f),i=u.act,s=u.data,d=s.reports;return(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.Table,{className:"Library__Booklist",children:[(0,e.createComponentVNode)(2,t.Box,{fontSize:"1.2rem",bold:!0,children:[(0,e.createComponentVNode)(2,t.Icon,{name:"user-secret",verticalAlign:"middle",size:2,mr:"1rem"}),(0,e.createVNode)(1,"br"),"All Reported Books",(0,e.createVNode)(1,"br")]}),(0,e.createComponentVNode)(2,t.Button,{content:"Return to Main",icon:"arrow-alt-circle-left",onClick:function(){function h(){return i("return")}return h}()}),(0,e.createComponentVNode)(2,t.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Uploader CKEY"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"SSID"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Title"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Author"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Report Type"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Reporter Ckey"}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"middle",children:"Administrative Actions"})]}),d.map(function(h){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:h.uploader_ckey}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:h.id}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"book"}),h.title]}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:h.author}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:h.report_description}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:h.reporter_ckey}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:[(0,e.createComponentVNode)(2,t.Button.Confirm,{content:"Delete",icon:"trash",onClick:function(){function v(){return i("delete_book",{bookid:h.id})}return v}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Unflag",icon:"flag",color:"caution",onClick:function(){function v(){return i("unflag_book",{bookid:h.id})}return v}()}),(0,e.createComponentVNode)(2,t.Button,{content:"View",onClick:function(){function v(){return i("view_book",{bookid:h.id})}return v}()})]})]},h.id)})]})})},p=function(c,f){var u=(0,a.useBackend)(f),i=u.act,s=u.data,d=s.ckey,h=s.booklist;return(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.Table,{className:"Library__Booklist",children:[(0,e.createComponentVNode)(2,t.Box,{fontSize:"1.2rem",bold:!0,children:[(0,e.createComponentVNode)(2,t.Icon,{name:"user",verticalAlign:"middle",size:2,mr:"1rem"}),(0,e.createVNode)(1,"br"),"Books uploaded by ",d,(0,e.createVNode)(1,"br")]}),(0,e.createComponentVNode)(2,t.Button,{mt:1,content:"Return to Main",icon:"arrow-alt-circle-left",onClick:function(){function v(){return i("return")}return v}()}),(0,e.createComponentVNode)(2,t.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"SSID"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Title"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Author"}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"middle",children:"Administrative Actions"})]}),h.map(function(v){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:v.id}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"book"}),v.title]}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:v.author}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"right",children:[(0,e.createComponentVNode)(2,t.Button.Confirm,{content:"Delete",icon:"trash",color:"bad",onClick:function(){function g(){return i("delete_book",{bookid:v.id})}return g}()}),(0,e.createComponentVNode)(2,t.Button,{content:"View",onClick:function(){function g(){return i("view_book",{bookid:v.id})}return g}()})]})]},v.id)})]})})}},26133:function(L,r,n){"use strict";r.__esModule=!0,r.ListInputModal=void 0;var e=n(96524),a=n(14299),t=n(15113),o=n(24674),m=n(17899),N=n(68100),y=n(45493),S=r.ListInputModal=function(){function l(c,f){var u=(0,m.useBackend)(f),i=u.act,s=u.data,d=s.items,h=d===void 0?[]:d,v=s.message,g=v===void 0?"":v,C=s.init_value,V=s.timeout,b=s.title,B=(0,m.useLocalState)(f,"selected",h.indexOf(C)),I=B[0],w=B[1],T=(0,m.useLocalState)(f,"searchBarVisible",h.length>10),A=T[0],x=T[1],E=(0,m.useLocalState)(f,"searchQuery",""),M=E[0],j=E[1],P=function(){function $(X){var J=H.length-1;if(X===N.KEY_DOWN)if(I===null||I===J){var ce;w(0),(ce=document.getElementById("0"))==null||ce.scrollIntoView()}else{var re;w(I+1),(re=document.getElementById((I+1).toString()))==null||re.scrollIntoView()}else if(X===N.KEY_UP)if(I===null||I===0){var me;w(J),(me=document.getElementById(J.toString()))==null||me.scrollIntoView()}else{var pe;w(I-1),(pe=document.getElementById((I-1).toString()))==null||pe.scrollIntoView()}}return $}(),R=function(){function $(X){X!==I&&w(X)}return $}(),D=function(){function $(){x(!1),x(!0)}return $}(),F=function(){function $(X){var J=String.fromCharCode(X),ce=h.find(function(pe){return pe==null?void 0:pe.toLowerCase().startsWith(J==null?void 0:J.toLowerCase())});if(ce){var re,me=h.indexOf(ce);w(me),(re=document.getElementById(me.toString()))==null||re.scrollIntoView()}}return $}(),W=function(){function $(X){var J;X!==M&&(j(X),w(0),(J=document.getElementById("0"))==null||J.scrollIntoView())}return $}(),_=function(){function $(){x(!A),j("")}return $}(),H=h.filter(function($){return $==null?void 0:$.toLowerCase().includes(M.toLowerCase())}),z=330+Math.ceil(g.length/3);return A||setTimeout(function(){var $;return($=document.getElementById(I.toString()))==null?void 0:$.focus()},1),(0,e.createComponentVNode)(2,y.Window,{title:b,width:325,height:z,children:[V&&(0,e.createComponentVNode)(2,a.Loader,{value:V}),(0,e.createComponentVNode)(2,y.Window.Content,{onKeyDown:function(){function $(X){var J=window.event?X.which:X.keyCode;(J===N.KEY_DOWN||J===N.KEY_UP)&&(X.preventDefault(),P(J)),J===N.KEY_ENTER&&(X.preventDefault(),i("submit",{entry:H[I]})),!A&&J>=N.KEY_A&&J<=N.KEY_Z&&(X.preventDefault(),F(J)),J===N.KEY_ESCAPE&&(X.preventDefault(),i("cancel"))}return $}(),children:(0,e.createComponentVNode)(2,o.Section,{buttons:(0,e.createComponentVNode)(2,o.Button,{compact:!0,icon:A?"search":"font",selected:!0,tooltip:A?"Search Mode. Type to search or use arrow keys to select manually.":"Hotkey Mode. Type a letter to jump to the first match. Enter to select.",tooltipPosition:"left",onClick:function(){function $(){return _()}return $}()}),className:"ListInput__Section",fill:!0,title:g,children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,k,{filteredItems:H,onClick:R,onFocusSearch:D,searchBarVisible:A,selected:I})}),(0,e.createComponentVNode)(2,o.Stack.Item,{m:0,children:A&&(0,e.createComponentVNode)(2,p,{filteredItems:H,onSearch:W,searchQuery:M,selected:I})}),(0,e.createComponentVNode)(2,o.Stack.Item,{mt:.5,children:(0,e.createComponentVNode)(2,t.InputButtons,{input:H[I]})})]})})})]})}return l}(),k=function(c,f){var u=(0,m.useBackend)(f),i=u.act,s=c.filteredItems,d=c.onClick,h=c.onFocusSearch,v=c.searchBarVisible,g=c.selected;return(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,tabIndex:0,children:s.map(function(C,V){return(0,e.createComponentVNode)(2,o.Button,{fluid:!0,color:"transparent",id:V,onClick:function(){function b(){return d(V)}return b}(),onDblClick:function(){function b(B){B.preventDefault(),i("submit",{entry:s[g]})}return b}(),onKeyDown:function(){function b(B){var I=window.event?B.which:B.keyCode;v&&I>=N.KEY_A&&I<=N.KEY_Z&&(B.preventDefault(),h())}return b}(),selected:V===g,style:{animation:"none",transition:"none"},children:C.replace(/^\w/,function(b){return b.toUpperCase()})},V)})})},p=function(c,f){var u=(0,m.useBackend)(f),i=u.act,s=c.filteredItems,d=c.onSearch,h=c.searchQuery,v=c.selected;return(0,e.createComponentVNode)(2,o.Input,{width:"100%",autoFocus:!0,autoSelect:!0,onEnter:function(){function g(C){C.preventDefault(),i("submit",{entry:s[v]})}return g}(),onInput:function(){function g(C,V){return d(V)}return g}(),placeholder:"Search...",value:h})}},71963:function(L,r,n){"use strict";r.__esModule=!0,r.MODsuitContent=r.MODsuit=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=function(I,w){var T=I.name,A=I.value,x=I.module_ref,E=(0,a.useBackend)(w),M=E.act;return(0,e.createComponentVNode)(2,t.NumberInput,{value:A,minValue:-50,maxValue:50,stepPixelSize:5,width:"39px",onChange:function(){function j(P,R){return M("configure",{key:T,value:R,ref:x})}return j}()})},N=function(I,w){var T=I.name,A=I.value,x=I.module_ref,E=(0,a.useBackend)(w),M=E.act;return(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:A,onClick:function(){function j(){return M("configure",{key:T,value:!A,ref:x})}return j}()})},y=function(I,w){var T=I.name,A=I.value,x=I.module_ref,E=(0,a.useBackend)(w),M=E.act;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{icon:"paint-brush",onClick:function(){function j(){return M("configure",{key:T,ref:x})}return j}()}),(0,e.createComponentVNode)(2,t.ColorBox,{color:A,mr:.5})],4)},S=function(I,w){var T=I.name,A=I.value,x=I.values,E=I.module_ref,M=(0,a.useBackend)(w),j=M.act;return(0,e.createComponentVNode)(2,t.Dropdown,{displayText:A,options:x,onSelected:function(){function P(R){return j("configure",{key:T,value:R,ref:E})}return P}()})},k=function(I,w){var T=I.name,A=I.display_name,x=I.type,E=I.value,M=I.values,j=I.module_ref,P={number:(0,e.normalizeProps)((0,e.createComponentVNode)(2,m,Object.assign({},I))),bool:(0,e.normalizeProps)((0,e.createComponentVNode)(2,N,Object.assign({},I))),color:(0,e.normalizeProps)((0,e.createComponentVNode)(2,y,Object.assign({},I))),list:(0,e.normalizeProps)((0,e.createComponentVNode)(2,S,Object.assign({},I)))};return(0,e.createComponentVNode)(2,t.Box,{children:[A,": ",P[x]]})},p=function(I,w){var T=I.active,A=I.userradiated,x=I.usertoxins,E=I.usermaxtoxins,M=I.threatlevel;return(0,e.createComponentVNode)(2,t.Stack,{fill:!0,textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Radiation Level",color:T&&A?"bad":"good",children:T&&A?"IRRADIATED!":"RADIATION-FREE"})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Toxins Level",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:T?x/E:0,ranges:{good:[-1/0,.2],average:[.2,.5],bad:[.5,1/0]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:x})})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Hazard Level",color:T&&M?"bad":"good",bold:!0,children:T&&M?M:0})})]})},l=function(I,w){var T=I.active,A=I.userhealth,x=I.usermaxhealth,E=I.userbrute,M=I.userburn,j=I.usertoxin,P=I.useroxy;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{title:"Health",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:T?A/x:0,ranges:{good:[.5,1/0],average:[.2,.5],bad:[-1/0,.2]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:T?A:0})})}),(0,e.createComponentVNode)(2,t.Stack,{textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Brute",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:T?E/x:0,ranges:{good:[-1/0,.2],average:[.2,.5],bad:[.5,1/0]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:T?E:0})})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Burn",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:T?M/x:0,ranges:{good:[-1/0,.2],average:[.2,.5],bad:[.5,1/0]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:T?M:0})})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Toxin",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:T?j/x:0,ranges:{good:[-1/0,.2],average:[.2,.5],bad:[.5,1/0]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:T?j:0})})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Suffocation",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:T?P/x:0,ranges:{good:[-1/0,.2],average:[.2,.5],bad:[.5,1/0]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:T?P:0})})})})]})],4)},c=function(I,w){var T=I.active,A=I.statustime,x=I.statusid,E=I.statushealth,M=I.statusmaxhealth,j=I.statusbrute,P=I.statusburn,R=I.statustoxin,D=I.statusoxy,F=I.statustemp,W=I.statusnutrition,_=I.statusfingerprints,H=I.statusdna,z=I.statusviruses;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Stack,{textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Operation Time",children:T?A:"00:00:00"})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Operation Number",children:T?x||"0":"???"})})]}),(0,e.createComponentVNode)(2,t.Section,{title:"Health",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:T?E/M:0,ranges:{good:[.5,1/0],average:[.2,.5],bad:[-1/0,.2]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:T?E:0})})}),(0,e.createComponentVNode)(2,t.Stack,{textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Brute",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:T?j/M:0,ranges:{good:[-1/0,.2],average:[.2,.5],bad:[.5,1/0]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:T?j:0})})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Burn",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:T?P/M:0,ranges:{good:[-1/0,.2],average:[.2,.5],bad:[.5,1/0]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:T?P:0})})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Toxin",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:T?R/M:0,ranges:{good:[-1/0,.2],average:[.2,.5],bad:[.5,1/0]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:R})})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Suffocation",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:T?D/M:0,ranges:{good:[-1/0,.2],average:[.2,.5],bad:[.5,1/0]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:D})})})})]}),(0,e.createComponentVNode)(2,t.Stack,{textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Body Temperature",children:T?F:0})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Nutrition Status",children:T?W:0})})]}),(0,e.createComponentVNode)(2,t.Section,{title:"DNA",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Fingerprints",children:T?_:"???"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Unique Enzymes",children:T?H:"???"})]})}),!!T&&!!z&&(0,e.createComponentVNode)(2,t.Section,{title:"Diseases",children:(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"signature",tooltip:"Name",tooltipPosition:"top"})}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"wind",tooltip:"Type",tooltipPosition:"top"})}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"bolt",tooltip:"Stage",tooltipPosition:"top"})}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"flask",tooltip:"Cure",tooltipPosition:"top"})})]}),z.map(function($){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:$.name}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:$.type}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:[$.stage,"/",$.maxstage]}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:$.cure})]},$.name)})]})})],0)},f={rad_counter:p,health_analyzer:l,status_readout:c},u=function(){return(0,e.createComponentVNode)(2,t.Section,{align:"center",fill:!0,children:[(0,e.createComponentVNode)(2,t.Icon,{color:"red",name:"exclamation-triangle",size:15}),(0,e.createComponentVNode)(2,t.Box,{fontSize:"30px",color:"red",children:"ERROR: INTERFACE UNRESPONSIVE"})]})},i=function(I,w){var T=(0,a.useBackend)(w),A=T.act,x=T.data;return(0,e.createComponentVNode)(2,t.Dimmer,{children:(0,e.createComponentVNode)(2,t.Stack,{children:(0,e.createComponentVNode)(2,t.Stack.Item,{fontSize:"16px",color:"blue",children:"SUIT UNPOWERED"})})})},s=function(I,w){var T=I.configuration_data,A=I.module_ref,x=Object.keys(T);return(0,e.createComponentVNode)(2,t.Dimmer,{backgroundColor:"rgba(0, 0, 0, 0.8)",children:(0,e.createComponentVNode)(2,t.Stack,{vertical:!0,children:[x.map(function(E){var M=T[E];return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,k,{name:E,display_name:M.display_name,type:M.type,value:M.value,values:M.values,module_ref:A})},M.key)}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,onClick:I.onExit,icon:"times",textAlign:"center",children:"Exit"})})})]})})},d=function(I){switch(I){case 1:return"Use";case 2:return"Toggle";case 3:return"Select"}},h=function(I,w){var T=(0,a.useBackend)(w),A=T.act,x=T.data,E=x.active,M=x.malfunctioning,j=x.locked,P=x.open,R=x.selected_module,D=x.complexity,F=x.complexity_max,W=x.wearer_name,_=x.wearer_job,H=M?"Malfunctioning":E?"Active":"Inactive";return(0,e.createComponentVNode)(2,t.Section,{title:"Parameters",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"power-off",content:E?"Deactivate":"Activate",onClick:function(){function z(){return A("activate")}return z}()}),children:H}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"ID Lock",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:j?"lock-open":"lock",content:j?"Unlock":"Lock",onClick:function(){function z(){return A("lock")}return z}()}),children:j?"Locked":"Unlocked"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cover",children:P?"Open":"Closed"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Selected Module",children:R||"None"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Complexity",children:[D," (",F,")"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Occupant",children:[W,", ",_]})]})})},v=function(I,w){var T=(0,a.useBackend)(w),A=T.act,x=T.data,E=x.active,M=x.control,j=x.helmet,P=x.chestplate,R=x.gauntlets,D=x.boots,F=x.core,W=x.charge;return(0,e.createComponentVNode)(2,t.Section,{title:"Hardware",children:[(0,e.createComponentVNode)(2,t.Collapsible,{title:"Parts",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Control Unit",children:M}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Helmet",children:j||"None"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Chestplate",children:P||"None"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Gauntlets",children:R||"None"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Boots",children:D||"None"})]})}),(0,e.createComponentVNode)(2,t.Collapsible,{title:"Core",children:F&&(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Core Type",children:F}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Core Charge",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:W/100,content:W+"%",ranges:{good:[.6,1/0],average:[.3,.6],bad:[-1/0,.3]}})})]})||(0,e.createComponentVNode)(2,t.Box,{color:"bad",textAlign:"center",children:"No Core Detected"})})]})},g=function(I,w){var T=(0,a.useBackend)(w),A=T.act,x=T.data,E=x.active,M=x.modules,j=M.filter(function(P){return!!P.id});return(0,e.createComponentVNode)(2,t.Section,{title:"Info",children:(0,e.createComponentVNode)(2,t.Stack,{vertical:!0,children:j.length!==0&&j.map(function(P){var R=f[P.id];return(0,e.createComponentVNode)(2,t.Stack.Item,{children:[!E&&(0,e.createComponentVNode)(2,i),(0,e.normalizeProps)((0,e.createComponentVNode)(2,R,Object.assign({},P,{active:E})))]},P.ref)})||(0,e.createComponentVNode)(2,t.Box,{textAlign:"center",children:"No Info Modules Detected"})})})},C=function(I,w){var T=(0,a.useBackend)(w),A=T.act,x=T.data,E=x.complexity_max,M=x.modules,j=(0,a.useLocalState)(w,"module_configuration",null),P=j[0],R=j[1];return(0,e.createComponentVNode)(2,t.Section,{title:"Modules",fill:!0,children:(0,e.createComponentVNode)(2,t.Stack,{vertical:!0,children:M.length!==0&&M.map(function(D){return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Collapsible,{title:D.module_name,children:(0,e.createComponentVNode)(2,t.Section,{children:[P===D.ref&&(0,e.createComponentVNode)(2,s,{configuration_data:D.configuration_data,module_ref:D.ref,onExit:function(){function F(){return R(null)}return F}()}),(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"save",tooltip:"Complexity",tooltipPosition:"top"})}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"plug",tooltip:"Idle Power Cost",tooltipPosition:"top"})}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"lightbulb",tooltip:"Active Power Cost",tooltipPosition:"top"})}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"bolt",tooltip:"Use Power Cost",tooltipPosition:"top"})}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"hourglass-half",tooltip:"Cooldown",tooltipPosition:"top"})}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"tasks",tooltip:"Actions",tooltipPosition:"top"})})]}),(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:[D.module_complexity,"/",E]}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:D.idle_power}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:D.active_power}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:D.use_power}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:[D.cooldown>0&&D.cooldown/10||"0","/",D.cooldown_time/10,"s"]}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function F(){return A("select",{ref:D.ref})}return F}(),icon:"bullseye",selected:D.module_active,tooltip:d(D.module_type),tooltipPosition:"left",disabled:!D.module_type}),(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function F(){return R(D.ref)}return F}(),icon:"cog",selected:P===D.ref,tooltip:"Configure",tooltipPosition:"left",disabled:D.configuration_data.length===0}),(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function F(){return A("pin",{ref:D.ref})}return F}(),icon:"thumbtack",selected:D.pinned,tooltip:"Pin",tooltipPosition:"left",disabled:!D.module_type})]})]})]}),(0,e.createComponentVNode)(2,t.Box,{children:D.description})]})})},D.ref)})||(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Box,{textAlign:"center",children:"No Modules Detected"})})})})},V=r.MODsuitContent=function(){function B(I,w){var T=(0,a.useBackend)(w),A=T.act,x=T.data,E=x.ui_theme,M=x.interface_break;return(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!M,children:!!M&&(0,e.createComponentVNode)(2,u)||(0,e.createComponentVNode)(2,t.Stack,{vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,h)}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,v)}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,g)}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,C)})]})})}return B}(),b=r.MODsuit=function(){function B(I,w){var T=(0,a.useBackend)(w),A=T.act,x=T.data,E=x.ui_theme,M=x.interface_break;return(0,e.createComponentVNode)(2,o.Window,{theme:E,width:400,height:620,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,V)})})})}return B}()},84274:function(L,r,n){"use strict";r.__esModule=!0,r.MagnetController=void 0;var e=n(96524),a=n(36121),t=n(17899),o=n(24674),m=n(45493),N=n(99665),y=new Map([["n",{icon:"arrow-up",tooltip:"Move North"}],["e",{icon:"arrow-right",tooltip:"Move East"}],["s",{icon:"arrow-down",tooltip:"Move South"}],["w",{icon:"arrow-left",tooltip:"Move West"}],["c",{icon:"crosshairs",tooltip:"Move to Magnet"}],["r",{icon:"dice",tooltip:"Move Randomly"}]]),S=r.MagnetController=function(){function k(p,l){var c=(0,t.useBackend)(l),f=c.act,u=c.data,i=u.autolink,s=u.code,d=u.frequency,h=u.linkedMagnets,v=u.magnetConfiguration,g=u.path,C=u.pathPosition,V=u.probing,b=u.powerState,B=u.speed;return(0,e.createComponentVNode)(2,m.Window,{width:400,height:600,children:[(0,e.createComponentVNode)(2,N.ComplexModal),(0,e.createComponentVNode)(2,m.Window.Content,{scrollable:!0,children:[!i&&(0,e.createComponentVNode)(2,o.Section,{buttons:(0,e.createComponentVNode)(2,o.Button,{content:"Probe",icon:V?"spinner":"sync",iconSpin:!!V,disabled:V,onClick:function(){function I(){return f("probe_magnets")}return I}()}),title:"Magnet Linking",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Frequency",children:(0,a.toFixed)(d/10,1)}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Code",children:s})]})}),(0,e.createComponentVNode)(2,o.Section,{buttons:(0,e.createComponentVNode)(2,o.Button,{icon:b?"power-off":"times",content:b?"On":"Off",selected:b,onClick:function(){function I(){return f("toggle_power")}return I}()}),title:"Controller Configuration",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Speed",children:(0,e.createComponentVNode)(2,o.Slider,{value:B.value,minValue:B.min,maxValue:B.max,onChange:function(){function I(w,T){return f("set_speed",{speed:T})}return I}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Path",children:[Array.from(y.entries()).map(function(I){var w=I[0],T=I[1],A=T.icon,x=T.tooltip;return(0,e.createComponentVNode)(2,o.Button,{icon:A,tooltip:x,onClick:function(){function E(){return f("path_add",{code:w})}return E}()},w)}),(0,e.createComponentVNode)(2,o.Button.Confirm,{icon:"trash",confirmIcon:"trash",confirmContent:"",float:"right",tooltip:"Reset Path",tooltipPosition:"left",onClick:function(){function I(){return f("path_clear")}return I}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"file-import",float:"right",tooltip:"Manually input path",tooltipPosition:"left",onClick:function(){function I(){return(0,N.modalOpen)(l,"path_custom_input")}return I}()}),(0,e.createComponentVNode)(2,o.BlockQuote,{children:g.map(function(I,w){var T=y.get(I)||{icon:"question"},A=T.icon,x=T.tooltip;return(0,e.createComponentVNode)(2,o.Button.Confirm,{selected:w+2===C,icon:A,confirmIcon:A,confirmContent:"",tooltip:x,onClick:function(){function E(){return f("path_remove",{index:w+1,code:I})}return E}()},w)})})]})]})}),h.map(function(I,w){var T=I.uid,A=I.powerState,x=I.electricityLevel,E=I.magneticField;return(0,e.createComponentVNode)(2,o.Section,{title:"Magnet #"+(w+1)+" Configuration",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:A?"power-off":"times",content:A?"On":"Off",selected:A,onClick:function(){function M(){return f("toggle_magnet_power",{id:T})}return M}()}),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Move Speed",children:(0,e.createComponentVNode)(2,o.Slider,{value:x,minValue:v.electricityLevel.min,maxValue:v.electricityLevel.max,onChange:function(){function M(j,P){return f("set_electricity_level",{id:T,electricityLevel:P})}return M}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Field Size",children:(0,e.createComponentVNode)(2,o.Slider,{value:E,minValue:v.magneticField.min,maxValue:v.magneticField.max,onChange:function(){function M(j,P){return f("set_magnetic_field",{id:T,magneticField:P})}return M}()})})]})},T)})]})]})}return k}()},95752:function(L,r,n){"use strict";r.__esModule=!0,r.MechBayConsole=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=r.MechBayConsole=function(){function N(y,S){var k=(0,a.useBackend)(S),p=k.act,l=k.data,c=l.recharge_port,f=c&&c.mech,u=f&&f.cell,i=f&&f.name;return(0,e.createComponentVNode)(2,o.Window,{width:400,height:155,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:i?"Mech status: "+i:"Mech status",textAlign:"center",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"sync",content:"Sync",onClick:function(){function s(){return p("reconnect")}return s}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Integrity",children:!c&&(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No power port detected. Please re-sync."})||!f&&(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No mech detected."})||(0,e.createComponentVNode)(2,t.ProgressBar,{value:f.health/f.maxhealth,ranges:{good:[.7,1/0],average:[.3,.7],bad:[-1/0,.3]}})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power",children:!c&&(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No power port detected. Please re-sync."})||!f&&(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No mech detected."})||!u&&(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No cell is installed."})||(0,e.createComponentVNode)(2,t.ProgressBar,{value:u.charge/u.maxcharge,ranges:{good:[.7,1/0],average:[.3,.7],bad:[-1/0,.3]},children:[(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:u.charge})," / "+u.maxcharge]})})]})})})})}return N}()},53668:function(L,r,n){"use strict";r.__esModule=!0,r.MechaControlConsole=void 0;var e=n(96524),a=n(36121),t=n(17899),o=n(24674),m=n(45493),N=n(78234),y=r.MechaControlConsole=function(){function S(k,p){var l=(0,t.useBackend)(p),c=l.act,f=l.data,u=f.beacons,i=f.stored_data;return i.length?(0,e.createComponentVNode)(2,m.Window,{width:420,height:500,children:(0,e.createComponentVNode)(2,m.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,o.Section,{title:"Log",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"window-close",onClick:function(){function s(){return c("clear_log")}return s}()}),children:i.map(function(s){return(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,o.Box,{color:"label",children:["(",s.time,")"]}),(0,e.createComponentVNode)(2,o.Box,{children:(0,N.decodeHtmlEntities)(s.message)})]},s.time)})})})}):(0,e.createComponentVNode)(2,m.Window,{width:420,height:500,children:(0,e.createComponentVNode)(2,m.Window.Content,{scrollable:!0,children:u.length&&u.map(function(s){return(0,e.createComponentVNode)(2,o.Section,{title:s.name,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{icon:"comment",onClick:function(){function d(){return c("send_message",{mt:s.uid})}return d}(),children:"Message"}),(0,e.createComponentVNode)(2,o.Button,{icon:"eye",onClick:function(){function d(){return c("get_log",{mt:s.uid})}return d}(),children:"View Log"}),(0,e.createComponentVNode)(2,o.Button.Confirm,{color:"red",content:"Sabotage",icon:"bomb",onClick:function(){function d(){return c("shock",{mt:s.uid})}return d}()})],4),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Health",children:(0,e.createComponentVNode)(2,o.ProgressBar,{ranges:{good:[s.maxHealth*.75,1/0],average:[s.maxHealth*.5,s.maxHealth*.75],bad:[-1/0,s.maxHealth*.5]},value:s.health,maxValue:s.maxHealth})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Cell Charge",children:s.cell&&(0,e.createComponentVNode)(2,o.ProgressBar,{ranges:{good:[s.cellMaxCharge*.75,1/0],average:[s.cellMaxCharge*.5,s.cellMaxCharge*.75],bad:[-1/0,s.cellMaxCharge*.5]},value:s.cellCharge,maxValue:s.cellMaxCharge})||(0,e.createComponentVNode)(2,o.NoticeBox,{children:"No Cell Installed"})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Air Tank",children:[s.airtank,"kPa"]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Pilot",children:s.pilot||"Unoccupied"}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Location",children:(0,N.toTitleCase)(s.location)||"Unknown"}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Active Equipment",children:s.active||"None"}),s.cargoMax&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Cargo Space",children:(0,e.createComponentVNode)(2,o.ProgressBar,{ranges:{bad:[s.cargoMax*.75,1/0],average:[s.cargoMax*.5,s.cargoMax*.75],good:[-1/0,s.cargoMax*.5]},value:s.cargoUsed,maxValue:s.cargoMax})})||null]})},s.name)})||(0,e.createComponentVNode)(2,o.NoticeBox,{children:"No mecha beacons found."})})})}return S}()},96467:function(L,r,n){"use strict";r.__esModule=!0,r.MedicalRecords=void 0;var e=n(96524),a=n(78234),t=n(17899),o=n(24674),m=n(99665),N=n(45493),y=n(68159),S=n(27527),k=n(84537),p={Minor:"lightgray",Medium:"good",Harmful:"average","Dangerous!":"bad","BIOHAZARD THREAT!":"darkred"},l={"*Deceased*":"deceased","*SSD*":"ssd","Physically Unfit":"physically_unfit",Disabled:"disabled"},c=function(A,x){(0,m.modalOpen)(A,"edit",{field:x.edit,value:x.value})},f=function(A,x){var E=A.args;return(0,e.createComponentVNode)(2,o.Section,{m:"-1rem",pb:"1.5rem",title:E.name||"Virus",children:(0,e.createComponentVNode)(2,o.Box,{mx:"0.5rem",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Number of stages",children:E.max_stages}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Spread",children:[E.spread_text," Transmission"]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Possible cure",children:E.cure}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Notes",children:E.desc}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Severity",color:p[E.severity],children:E.severity})]})})})},u=r.MedicalRecords=function(){function T(A,x){var E=(0,t.useBackend)(x),M=E.data,j=M.loginState,P=M.screen;if(!j.logged_in)return(0,e.createComponentVNode)(2,N.Window,{width:800,height:900,children:(0,e.createComponentVNode)(2,N.Window.Content,{children:(0,e.createComponentVNode)(2,S.LoginScreen)})});var R;return P===2?R=(0,e.createComponentVNode)(2,i):P===3?R=(0,e.createComponentVNode)(2,s):P===4?R=(0,e.createComponentVNode)(2,d):P===5?R=(0,e.createComponentVNode)(2,C):P===6?R=(0,e.createComponentVNode)(2,V):P===7&&(R=(0,e.createComponentVNode)(2,b)),(0,e.createComponentVNode)(2,N.Window,{width:800,height:900,children:[(0,e.createComponentVNode)(2,m.ComplexModal),(0,e.createComponentVNode)(2,N.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,y.LoginInfo),(0,e.createComponentVNode)(2,k.TemporaryNotice),(0,e.createComponentVNode)(2,w),R]})})]})}return T}(),i=function(A,x){var E=(0,t.useBackend)(x),M=E.act,j=E.data,P=j.records,R=(0,t.useLocalState)(x,"searchText",""),D=R[0],F=R[1],W=(0,t.useLocalState)(x,"sortId","name"),_=W[0],H=W[1],z=(0,t.useLocalState)(x,"sortOrder",!0),$=z[0],X=z[1];return(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{content:"Manage Records",icon:"wrench",ml:"0.25rem",onClick:function(){function J(){return M("screen",{screen:3})}return J}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Input,{fluid:!0,placeholder:"Search by Name, ID, Physical Status, or Mental Status",onInput:function(){function J(ce,re){return F(re)}return J}()})})]})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,mt:.5,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,o.Table,{className:"MedicalRecords__list",children:[(0,e.createComponentVNode)(2,o.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,B,{id:"name",children:"Name"}),(0,e.createComponentVNode)(2,B,{id:"id",children:"ID"}),(0,e.createComponentVNode)(2,B,{id:"rank",children:"Assignment"}),(0,e.createComponentVNode)(2,B,{id:"p_stat",children:"Patient Status"}),(0,e.createComponentVNode)(2,B,{id:"m_stat",children:"Mental Status"})]}),P.filter((0,a.createSearch)(D,function(J){return J.name+"|"+J.id+"|"+J.rank+"|"+J.p_stat+"|"+J.m_stat})).sort(function(J,ce){var re=$?1:-1;return J[_].localeCompare(ce[_])*re}).map(function(J){return(0,e.createComponentVNode)(2,o.Table.Row,{className:"MedicalRecords__listRow--"+l[J.p_stat],onClick:function(){function ce(){return M("view_record",{view_record:J.ref})}return ce}(),children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:"user"})," ",J.name]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:J.id}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:J.rank}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:J.p_stat}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:J.m_stat})]},J.id)})]})})})],4)},s=function(A,x){var E=(0,t.useBackend)(x),M=E.act;return(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,lineHeight:3,color:"translucent",icon:"download",content:"Backup to Disk",disabled:!0})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:[(0,e.createComponentVNode)(2,o.Button,{fluid:!0,lineHeight:3,color:"translucent",icon:"upload",content:"Upload from Disk",my:"0.5rem",disabled:!0})," "]}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Button.Confirm,{fluid:!0,lineHeight:3,icon:"trash",color:"translucent",content:"Delete All Medical Records",onClick:function(){function j(){return M("del_all_med_records")}return j}()})})]})})},d=function(A,x){var E=(0,t.useBackend)(x),M=E.act,j=E.data,P=j.medical,R=j.printing;return(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Stack.Item,{height:"235px",children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"General Data",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:R?"spinner":"print",disabled:R,iconSpin:!!R,content:"Print Record",ml:"0.5rem",onClick:function(){function D(){return M("print_record")}return D}()}),children:(0,e.createComponentVNode)(2,h)})}),!P||!P.fields?(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,color:"bad",children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,title:"Medical Data",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"pen",content:"Create New Record",onClick:function(){function D(){return M("new_med_record")}return D}()}),children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,o.Stack.Item,{bold:!0,grow:!0,textAlign:"center",fontSize:1.75,align:"center",color:"label",children:[(0,e.createComponentVNode)(2,o.Icon.Stack,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:"scroll",size:5,color:"gray"}),(0,e.createComponentVNode)(2,o.Icon,{name:"slash",size:5,color:"red"})]}),(0,e.createVNode)(1,"br"),"Medical records lost!"]})})})}):(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"Medical Data",buttons:(0,e.createComponentVNode)(2,o.Button.Confirm,{icon:"trash",disabled:!!P.empty,content:"Delete Medical Record",onClick:function(){function D(){return M("del_med_record")}return D}()}),children:(0,e.createComponentVNode)(2,v)})}),(0,e.createComponentVNode)(2,g)],4)],0)},h=function(A,x){var E=(0,t.useBackend)(x),M=E.data,j=M.general;return!j||!j.fields?(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,color:"bad",children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,children:"General records lost!"})})}):(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.LabeledList,{children:j.fields.map(function(P,R){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:P.field,children:[(0,e.createComponentVNode)(2,o.Box,{height:"20px",inline:!0,children:P.value}),!!P.edit&&(0,e.createComponentVNode)(2,o.Button,{icon:"pen",ml:"0.5rem",onClick:function(){function D(){return c(x,P)}return D}()})]},R)})})}),!!j.has_photos&&j.photos.map(function(P,R){return(0,e.createComponentVNode)(2,o.Stack.Item,{inline:!0,textAlign:"center",color:"label",ml:0,children:[(0,e.createVNode)(1,"img",null,null,1,{src:P,style:{width:"96px","margin-top":"2.5rem","margin-bottom":"0.5rem","-ms-interpolation-mode":"nearest-neighbor"}}),(0,e.createVNode)(1,"br"),"Photo #",R+1]},R)})]})},v=function(A,x){var E=(0,t.useBackend)(x),M=E.act,j=E.data,P=j.medical;return!P||!P.fields?(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,color:"bad",children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,children:"Medical records lost!"})})}):(0,e.createComponentVNode)(2,o.Stack,{children:(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.LabeledList,{children:P.fields.map(function(R,D){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:R.field,children:[(0,e.createComponentVNode)(2,o.Box,{height:"20px",inline:!0,children:R.value}),!!R.edit&&(0,e.createComponentVNode)(2,o.Button,{icon:"pen",ml:"0.5rem",onClick:function(){function F(){return c(x,R)}return F}()})]},D)})})})})},g=function(A,x){var E=(0,t.useBackend)(x),M=E.act,j=E.data,P=j.medical;return(0,e.createComponentVNode)(2,o.Stack.Item,{height:"150px",children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"Comments/Log",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"comment",content:"Add Entry",onClick:function(){function R(){return(0,m.modalOpen)(x,"add_comment")}return R}()}),children:P.comments.length===0?(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"No comments found."}):P.comments.map(function(R,D){return(0,e.createComponentVNode)(2,o.Box,{prewrap:!0,children:[(0,e.createComponentVNode)(2,o.Box,{color:"label",inline:!0,children:R.header}),(0,e.createVNode)(1,"br"),R.text,(0,e.createComponentVNode)(2,o.Button,{icon:"comment-slash",color:"bad",ml:"0.5rem",onClick:function(){function F(){return M("del_comment",{del_comment:D+1})}return F}()})]},D)})})})},C=function(A,x){var E=(0,t.useBackend)(x),M=E.act,j=E.data,P=j.virus,R=(0,t.useLocalState)(x,"searchText",""),D=R[0],F=R[1],W=(0,t.useLocalState)(x,"sortId2","name"),_=W[0],H=W[1],z=(0,t.useLocalState)(x,"sortOrder2",!0),$=z[0],X=z[1];return(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Input,{ml:"0.25rem",fluid:!0,placeholder:"Search by Name, Max Stages, or Severity",onInput:function(){function J(ce,re){return F(re)}return J}()})}),(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,mt:.5,children:(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,o.Table,{className:"MedicalRecords__list",children:[(0,e.createComponentVNode)(2,o.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,I,{id:"name",children:"Name"}),(0,e.createComponentVNode)(2,I,{id:"max_stages",children:"Max Stages"}),(0,e.createComponentVNode)(2,I,{id:"severity",children:"Severity"})]}),P.filter((0,a.createSearch)(D,function(J){return J.name+"|"+J.max_stages+"|"+J.severity})).sort(function(J,ce){var re=$?1:-1;return J[_].localeCompare(ce[_])*re}).map(function(J){return(0,e.createComponentVNode)(2,o.Table.Row,{className:"MedicalRecords__listVirus--"+J.severity,onClick:function(){function ce(){return M("vir",{vir:J.D})}return ce}(),children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:"virus"})," ",J.name]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:J.max_stages}),(0,e.createComponentVNode)(2,o.Table.Cell,{color:p[J.severity],children:J.severity})]},J.id)})]})})})})],4)},V=function(A,x){var E=(0,t.useBackend)(x),M=E.act,j=E.data,P=j.goals;return(0,e.createComponentVNode)(2,o.Section,{title:"Virology Goals",fill:!0,children:(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:P.length!==0&&P.map(function(R){return(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Section,{title:R.name,children:[(0,e.createComponentVNode)(2,o.Table,{children:(0,e.createComponentVNode)(2,o.Table.Row,{header:!0,children:(0,e.createComponentVNode)(2,o.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,o.ProgressBar,{value:R.delivered,minValue:0,maxValue:R.deliverygoal,ranges:{good:[R.deliverygoal*.5,1/0],average:[R.deliverygoal*.25,R.deliverygoal*.5],bad:[-1/0,R.deliverygoal*.25]},children:[R.delivered," / ",R.deliverygoal," Units"]})})})}),(0,e.createComponentVNode)(2,o.Box,{children:R.report})]})},R.id)})||(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Box,{textAlign:"center",children:"No Goals Detected"})})})})},b=function(A,x){var E=(0,t.useBackend)(x),M=E.act,j=E.data,P=j.medbots;return P.length===0?(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,color:"bad",children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,o.Stack.Item,{bold:!0,grow:!0,textAlign:"center",fontSize:1.75,align:"center",color:"label",children:[(0,e.createComponentVNode)(2,o.Icon.Stack,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:"robot",size:5,color:"gray"}),(0,e.createComponentVNode)(2,o.Icon,{name:"slash",size:5,color:"red"})]}),(0,e.createVNode)(1,"br"),"There are no Medibots."]})})})}):(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,o.Table,{className:"MedicalRecords__list",children:[(0,e.createComponentVNode)(2,o.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Name"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Area"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Status"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Chemicals"})]}),P.map(function(R){return(0,e.createComponentVNode)(2,o.Table.Row,{className:"MedicalRecords__listMedbot--"+R.on,children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:"medical"})," ",R.name]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:[R.area||"Unknown"," (",R.x,", ",R.y,")"]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:R.on?(0,e.createComponentVNode)(2,o.Box,{color:"good",children:"Online"}):(0,e.createComponentVNode)(2,o.Box,{color:"average",children:"Offline"})}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:R.use_beaker?"Reservoir: "+R.total_volume+"/"+R.maximum_volume:"Using internal synthesizer"})]},R.id)})]})})})},B=function(A,x){var E=(0,t.useLocalState)(x,"sortId","name"),M=E[0],j=E[1],P=(0,t.useLocalState)(x,"sortOrder",!0),R=P[0],D=P[1],F=A.id,W=A.children;return(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,color:M!==F&&"transparent",onClick:function(){function _(){M===F?D(!R):(j(F),D(!0))}return _}(),children:[W,M===F&&(0,e.createComponentVNode)(2,o.Icon,{name:R?"sort-up":"sort-down",ml:"0.25rem;"})]})})},I=function(A,x){var E=(0,t.useLocalState)(x,"sortId2","name"),M=E[0],j=E[1],P=(0,t.useLocalState)(x,"sortOrder2",!0),R=P[0],D=P[1],F=A.id,W=A.children;return(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,color:M!==F&&"transparent",onClick:function(){function _(){M===F?D(!R):(j(F),D(!0))}return _}(),children:[W,M===F&&(0,e.createComponentVNode)(2,o.Icon,{name:R?"sort-up":"sort-down",ml:"0.25rem;"})]})})},w=function(A,x){var E=(0,t.useBackend)(x),M=E.act,j=E.data,P=j.screen,R=j.general;return(0,e.createComponentVNode)(2,o.Stack.Item,{m:0,children:(0,e.createComponentVNode)(2,o.Tabs,{children:[(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"list",selected:P===2,onClick:function(){function D(){M("screen",{screen:2})}return D}(),children:"List Records"}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"database",selected:P===5,onClick:function(){function D(){M("screen",{screen:5})}return D}(),children:"Virus Database"}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"vial",selected:P===6,onClick:function(){function D(){M("screen",{screen:6})}return D}(),children:"Virology Goals"}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"plus-square",selected:P===7,onClick:function(){function D(){return M("screen",{screen:7})}return D}(),children:"Medibot Tracking"}),P===3&&(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"wrench",selected:P===3,children:"Record Maintenance"}),P===4&&R&&!R.empty&&(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"file",selected:P===4,children:["Record: ",R.fields[0].value]})]})})};(0,m.modalRegisterBodyOverride)("virus",f)},68211:function(L,r,n){"use strict";r.__esModule=!0,r.MerchVendor=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=function(p,l){var c=(0,a.useBackend)(l),f=c.act,u=c.data,i=p.product,s=p.productImage,d=p.productCategory,h=u.user_money;return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,children:(0,e.createVNode)(1,"img",null,null,1,{src:"data:image/jpeg;base64,"+s,style:{"vertical-align":"middle",width:"32px",margin:"0px","margin-left":"0px"}})}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:i.name}),(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{disabled:i.price>h,icon:"shopping-cart",content:i.price,textAlign:"left",onClick:function(){function v(){return f("purchase",{name:i.name,category:d})}return v}()})})]})},N=function(p,l){var c=(0,a.useBackend)(l),f=c.data,u=(0,a.useLocalState)(l,"tabIndex",1),i=u[0],s=f.products,d=f.imagelist,h=["apparel","toy","decoration"];return(0,e.createComponentVNode)(2,t.Table,{children:s[h[i]].map(function(v){return(0,e.createComponentVNode)(2,m,{product:v,productImage:d[v.path],productCategory:h[i]},v.name)})})},y=r.MerchVendor=function(){function k(p,l){var c=(0,a.useBackend)(l),f=c.act,u=c.data,i=u.user_cash,s=u.inserted_cash;return(0,e.createComponentVNode)(2,o.Window,{title:"Merch Computer",width:450,height:600,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"User",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{color:"light-grey",inline:!0,mr:"0.5rem",children:["There is ",(0,e.createVNode)(1,"b",null,s,0)," credits inserted."]}),(0,e.createComponentVNode)(2,t.Button,{disabled:!s,icon:"money-bill-wave-alt",content:"Dispense Change",textAlign:"left",onClick:function(){function d(){return f("change")}return d}()})],4),children:(0,e.createComponentVNode)(2,t.Stack.Item,{children:["Doing your job and not getting any recognition at work? Well, welcome to the merch shop! Here, you can buy cool things in exchange for money you earn when you have completed your Job Objectives.",i!==null&&(0,e.createComponentVNode)(2,t.Box,{mt:"0.5rem",children:["Your balance is ",(0,e.createVNode)(1,"b",null,[i||0,(0,e.createTextVNode)(" credits")],0),"."]})]})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Products",children:[(0,e.createComponentVNode)(2,S),(0,e.createComponentVNode)(2,N)]})})]})})})}return k}(),S=function(p,l){var c=(0,a.useBackend)(l),f=c.data,u=(0,a.useLocalState)(l,"tabIndex",1),i=u[0],s=u[1],d=f.login_state;return(0,e.createComponentVNode)(2,t.Tabs,{children:[(0,e.createComponentVNode)(2,t.Tabs.Tab,{icon:"dice",selected:i===1,onClick:function(){function h(){return s(1)}return h}(),children:"Toys"}),(0,e.createComponentVNode)(2,t.Tabs.Tab,{icon:"flag",selected:i===2,onClick:function(){function h(){return s(2)}return h}(),children:"Decorations"})]})}},14162:function(L,r,n){"use strict";r.__esModule=!0,r.MiningVendor=void 0;var e=n(96524),a=n(78234),t=n(17899),o=n(24674),m=n(45493),N=["title","items"];function y(u,i){if(u==null)return{};var s={},d=Object.keys(u),h,v;for(v=0;v=0)&&(s[h]=u[h]);return s}var S={Alphabetical:function(){function u(i,s){return i-s}return u}(),Availability:function(){function u(i,s){return-(i.affordable-s.affordable)}return u}(),Price:function(){function u(i,s){return i.price-s.price}return u}()},k=r.MiningVendor=function(){function u(i,s){return(0,e.createComponentVNode)(2,m.Window,{width:400,height:455,children:(0,e.createComponentVNode)(2,m.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,p),(0,e.createComponentVNode)(2,c),(0,e.createComponentVNode)(2,l)]})})})}return u}(),p=function(i,s){var d=(0,t.useBackend)(s),h=d.act,v=d.data,g=v.has_id,C=v.id;return(0,e.createComponentVNode)(2,o.NoticeBox,{success:g,children:g?(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Box,{inline:!0,verticalAlign:"middle",style:{float:"left"},children:["Logged in as ",C.name,".",(0,e.createVNode)(1,"br"),"You have ",C.points.toLocaleString("en-US")," points."]}),(0,e.createComponentVNode)(2,o.Button,{icon:"eject",content:"Eject ID",style:{float:"right"},onClick:function(){function V(){return h("logoff")}return V}()}),(0,e.createComponentVNode)(2,o.Box,{style:{clear:"both"}})],4):"Please insert an ID in order to make purchases."})},l=function(i,s){var d=(0,t.useBackend)(s),h=d.act,v=d.data,g=v.has_id,C=v.id,V=v.items,b=(0,t.useLocalState)(s,"search",""),B=b[0],I=b[1],w=(0,t.useLocalState)(s,"sort","Alphabetical"),T=w[0],A=w[1],x=(0,t.useLocalState)(s,"descending",!1),E=x[0],M=x[1],j=(0,a.createSearch)(B,function(D){return D[0]}),P=!1,R=Object.entries(V).map(function(D,F){var W=Object.entries(D[1]).filter(j).map(function(_){return _[1].affordable=g&&C.points>=_[1].price,_[1]}).sort(S[T]);if(W.length!==0)return E&&(W=W.reverse()),P=!0,(0,e.createComponentVNode)(2,f,{title:D[0],items:W},D[0])});return(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,mt:.5,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,children:P?R:(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"No items matching your criteria was found!"})})})},c=function(i,s){var d=(0,t.useLocalState)(s,"search",""),h=d[0],v=d[1],g=(0,t.useLocalState)(s,"sort",""),C=g[0],V=g[1],b=(0,t.useLocalState)(s,"descending",!1),B=b[0],I=b[1];return(0,e.createComponentVNode)(2,o.Box,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Input,{mt:.2,placeholder:"Search by item name..",width:"100%",onInput:function(){function w(T,A){return v(A)}return w}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"30%",children:(0,e.createComponentVNode)(2,o.Dropdown,{selected:"Alphabetical",options:Object.keys(S),width:"100%",onSelected:function(){function w(T){return V(T)}return w}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{icon:B?"arrow-down":"arrow-up",height:"21px",tooltip:B?"Descending order":"Ascending order",tooltipPosition:"bottom-start",onClick:function(){function w(){return I(!B)}return w}()})})]})})},f=function(i,s){var d=(0,t.useBackend)(s),h=d.act,v=d.data,g=i.title,C=i.items,V=y(i,N);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Collapsible,Object.assign({open:!0,title:g},V,{children:C.map(function(b){return(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,o.Box,{inline:!0,verticalAlign:"middle",lineHeight:"20px",style:{float:"left"},children:b.name}),(0,e.createComponentVNode)(2,o.Button,{disabled:!v.has_id||v.id.points0?'\u0420\u0435\u0437\u0443\u043B\u044C\u0442\u0430\u0442\u044B \u043F\u043E\u0438\u0441\u043A\u0430 "'+i+'"':"\u0412\u0441\u0435 \u043C\u043E\u0434\u0438\u0444\u0438\u043A\u0430\u0446\u0438\u0438 - "+f.length,children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,o.Stack.Item,{children:f.filter(function(h){return h.name&&(i.length>0?h.name.toLowerCase().includes(i.toLowerCase())||h.desc.toLowerCase().includes(i.toLowerCase())||h.author.toLowerCase().includes(i.toLowerCase()):!0)}).map(function(h){return(0,e.createComponentVNode)(2,o.Collapsible,{title:h.name,children:[(0,e.createComponentVNode)(2,o.Section,{title:"\u0410\u0432\u0442\u043E\u0440\u044B",children:h.author}),(0,e.createComponentVNode)(2,o.Section,{title:"\u041E\u043F\u0438\u0441\u0430\u043D\u0438\u0435",children:h.desc})]},h.name)})})})})})],4)}return y}()},68977:function(L,r,n){"use strict";r.__esModule=!0,r.NTRecruiter=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=r.NTRecruiter=function(){function N(y,S){var k=(0,a.useBackend)(S),p=k.act,l=k.data,c=l.gamestatus,f=l.cand_name,u=l.cand_birth,i=l.cand_age,s=l.cand_species,d=l.cand_planet,h=l.cand_job,v=l.cand_records,g=l.cand_curriculum,C=l.total_curriculums,V=l.reason;if(c===0)return(0,e.createComponentVNode)(2,o.Window,{width:400,height:550,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{pt:"45%",fontSize:"31px",color:"white",textAlign:"center",bold:!0,children:"Nanotrasen Recruiter Simulator"}),(0,e.createComponentVNode)(2,t.Stack.Item,{pt:"1%",fontSize:"16px",textAlign:"center",color:"label",children:"Work as the Nanotrasen recruiter and avoid hiring incompetent employees!"})]})}),(0,e.createComponentVNode)(2,t.Section,{children:[(0,e.createComponentVNode)(2,t.Button,{textAlign:"center",lineHeight:2,fluid:!0,icon:"play",color:"green",content:"Begin Shift",onClick:function(){function b(){return p("start_game")}return b}()}),(0,e.createComponentVNode)(2,t.Button,{textAlign:"center",lineHeight:2,fluid:!0,icon:"info",color:"blue",content:"Guide",onClick:function(){function b(){return p("instructions")}return b}()})]})]})})});if(c===1)return(0,e.createComponentVNode)(2,o.Window,{width:400,height:550,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,color:"grey",title:"Guide",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-left",content:"Main Menu",onClick:function(){function b(){return p("back_to_menu")}return b}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"1#",color:"silver",children:["To win this game you must hire/dismiss"," ",(0,e.createVNode)(1,"b",null,C,0)," candidates, one wrongly made choice leads to a game over."]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"2#",color:"silver",children:"Make the right choice by truly putting yourself into the skin of a recruiter working for Nanotrasen!"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"3#",color:"silver",children:[(0,e.createVNode)(1,"b",null,"Unique",16)," characters may appear, pay attention to them!"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"4#",color:"silver",children:"Make sure to pay attention to details like age, planet names, the requested job and even the species of the candidate!"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"5#",color:"silver",children:["Not every employment record is good, remember to make your choice based on the ",(0,e.createVNode)(1,"b",null,"company morals",16),"!"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"6#",color:"silver",children:"The planet of origin has no restriction on the species of the candidate, don't think too much when you see humans that came from Boron!"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"7#",color:"silver",children:["Pay attention to ",(0,e.createVNode)(1,"b",null,"typos",16)," and ",(0,e.createVNode)(1,"b",null,"missing words",16),", these do make for bad applications!"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"8#",color:"silver",children:["Remember, you are recruiting people to work at one of the many NT stations, so no hiring for ",(0,e.createVNode)(1,"b",null,"jobs",16)," that they"," ",(0,e.createVNode)(1,"b",null,"don't offer",16),"!"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"9#",color:"silver",children:["Keep your eyes open for incompatible ",(0,e.createVNode)(1,"b",null,"naming schemes",16),", no company wants a Vox named Joe!"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"10#",color:"silver",children:["For some unknown reason ",(0,e.createVNode)(1,"b",null,"clowns",16)," are never denied by the company, no matter what."]})]})})})})});if(c===2)return(0,e.createComponentVNode)(2,o.Window,{width:400,height:550,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,color:"label",fontSize:"14px",title:"Employment Applications",children:[(0,e.createComponentVNode)(2,t.Box,{fontSize:"24px",textAlign:"center",color:"silver",bold:!0,children:["Candidate Number #",g]}),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Name",color:"silver",children:(0,e.createVNode)(1,"b",null,f,0)}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Species",color:"silver",children:(0,e.createVNode)(1,"b",null,s,0)}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Age",color:"silver",children:(0,e.createVNode)(1,"b",null,i,0)}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Date of Birth",color:"silver",children:(0,e.createVNode)(1,"b",null,u,0)}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Planet of Origin",color:"silver",children:(0,e.createVNode)(1,"b",null,d,0)}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Requested Job",color:"silver",children:(0,e.createVNode)(1,"b",null,h,0)}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Employment Records",color:"silver",children:(0,e.createVNode)(1,"b",null,v,0)})]})]})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Stamp the application!",color:"grey",textAlign:"center",children:(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,basis:0,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,color:"red",content:"Dismiss",fontSize:"150%",icon:"ban",lineHeight:4.5,onClick:function(){function b(){return p("dismiss")}return b}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,basis:0,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,color:"green",content:"Hire",fontSize:"150%",icon:"arrow-circle-up",lineHeight:4.5,onClick:function(){function b(){return p("hire")}return b}()})})]})})})]})})});if(c===3)return(0,e.createComponentVNode)(2,o.Window,{width:400,height:550,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{pt:"40%",fill:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,color:"red",fontSize:"50px",textAlign:"center",children:"Game Over"}),(0,e.createComponentVNode)(2,t.Stack.Item,{fontSize:"15px",color:"label",textAlign:"center",children:V}),(0,e.createComponentVNode)(2,t.Stack.Item,{color:"blue",fontSize:"20px",textAlign:"center",pt:"10px",children:["FINAL SCORE: ",g-1,"/",C]})]})}),(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.Button,{lineHeight:4,fluid:!0,icon:"arrow-left",content:"Main Menu",onClick:function(){function b(){return p("back_to_menu")}return b}()})})]})})})}return N}()},17067:function(L,r,n){"use strict";r.__esModule=!0,r.Newscaster=void 0;var e=n(96524),a=n(28234),t=n(17899),o=n(24674),m=n(38424),N=n(45493),y=n(99665),S=n(84537),k=["icon","iconSpin","selected","security","onClick","title","children"],p=["name"];function l(I,w){if(I==null)return{};var T={},A=Object.keys(I),x,E;for(E=0;E=0)&&(T[x]=I[x]);return T}var c=128,f=["security","engineering","medical","science","service","supply"],u={security:{title:"Security",fluff_text:"Help keep the crew safe"},engineering:{title:"Engineering",fluff_text:"Ensure the station runs smoothly"},medical:{title:"Medical",fluff_text:"Practice medicine and save lives"},science:{title:"Science",fluff_text:"Develop new technologies"},service:{title:"Service",fluff_text:"Provide amenities to the crew"},supply:{title:"Supply",fluff_text:"Keep the station supplied"}},i=r.Newscaster=function(){function I(w,T){var A=(0,t.useBackend)(T),x=A.act,E=A.data,M=E.is_security,j=E.is_admin,P=E.is_silent,R=E.is_printing,D=E.screen,F=E.channels,W=E.channel_idx,_=W===void 0?-1:W,H=(0,t.useLocalState)(T,"menuOpen",!1),z=H[0],$=H[1],X=(0,t.useLocalState)(T,"viewingPhoto",""),J=X[0],ce=X[1],re=(0,t.useLocalState)(T,"censorMode",!1),me=re[0],pe=re[1],ye;D===0||D===2?ye=(0,e.createComponentVNode)(2,d):D===1&&(ye=(0,e.createComponentVNode)(2,h));var Be=F.reduce(function(he,oe){return he+oe.unread},0);return(0,e.createComponentVNode)(2,N.Window,{theme:M&&"security",width:800,height:600,children:[J?(0,e.createComponentVNode)(2,C):(0,e.createComponentVNode)(2,y.ComplexModal,{maxWidth:window.innerWidth/1.5+"px",maxHeight:window.innerHeight/1.5+"px"}),(0,e.createComponentVNode)(2,N.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,o.Section,{fill:!0,className:(0,a.classes)(["Newscaster__menu",z&&"Newscaster__menu--open"]),children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:[(0,e.createComponentVNode)(2,s,{icon:"bars",title:"Toggle Menu",onClick:function(){function he(){return $(!z)}return he}()}),(0,e.createComponentVNode)(2,s,{icon:"newspaper",title:"Headlines",selected:D===0,onClick:function(){function he(){return x("headlines")}return he}(),children:Be>0&&(0,e.createComponentVNode)(2,o.Box,{className:"Newscaster__menuButton--unread",children:Be>=10?"9+":Be})}),(0,e.createComponentVNode)(2,s,{icon:"briefcase",title:"Job Openings",selected:D===1,onClick:function(){function he(){return x("jobs")}return he}()}),(0,e.createComponentVNode)(2,o.Divider)]}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:F.map(function(he){return(0,e.createComponentVNode)(2,s,{icon:he.icon,title:he.name,selected:D===2&&F[_-1]===he,onClick:function(){function oe(){return x("channel",{uid:he.uid})}return oe}(),children:he.unread>0&&(0,e.createComponentVNode)(2,o.Box,{className:"Newscaster__menuButton--unread",children:he.unread>=10?"9+":he.unread})},he)})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:[(0,e.createComponentVNode)(2,o.Divider),(!!M||!!j)&&(0,e.createFragment)([(0,e.createComponentVNode)(2,s,{security:!0,icon:"exclamation-circle",title:"Edit Wanted Notice",mb:"0.5rem",onClick:function(){function he(){return(0,y.modalOpen)(T,"wanted_notice")}return he}()}),(0,e.createComponentVNode)(2,s,{security:!0,icon:me?"minus-square":"minus-square-o",title:"Censor Mode: "+(me?"On":"Off"),mb:"0.5rem",onClick:function(){function he(){return pe(!me)}return he}()}),(0,e.createComponentVNode)(2,o.Divider)],4),(0,e.createComponentVNode)(2,s,{icon:"pen-alt",title:"New Story",mb:"0.5rem",onClick:function(){function he(){return(0,y.modalOpen)(T,"create_story")}return he}()}),(0,e.createComponentVNode)(2,s,{icon:"plus-circle",title:"New Channel",onClick:function(){function he(){return(0,y.modalOpen)(T,"create_channel")}return he}()}),(0,e.createComponentVNode)(2,o.Divider),(0,e.createComponentVNode)(2,s,{icon:R?"spinner":"print",iconSpin:R,title:R?"Printing...":"Print Newspaper",onClick:function(){function he(){return x("print_newspaper")}return he}()}),(0,e.createComponentVNode)(2,s,{icon:P?"volume-mute":"volume-up",title:"Mute: "+(P?"On":"Off"),onClick:function(){function he(){return x("toggle_mute")}return he}()})]})]})}),(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,width:"100%",children:[(0,e.createComponentVNode)(2,S.TemporaryNotice),ye]})]})})]})}return I}(),s=function(w,T){var A=(0,t.useBackend)(T),x=A.act,E=w.icon,M=E===void 0?"":E,j=w.iconSpin,P=w.selected,R=P===void 0?!1:P,D=w.security,F=D===void 0?!1:D,W=w.onClick,_=w.title,H=w.children,z=l(w,k);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Box,Object.assign({className:(0,a.classes)(["Newscaster__menuButton",R&&"Newscaster__menuButton--selected",F&&"Newscaster__menuButton--security"]),onClick:W},z,{children:[R&&(0,e.createComponentVNode)(2,o.Box,{className:"Newscaster__menuButton--selectedBar"}),(0,e.createComponentVNode)(2,o.Icon,{name:M,spin:j,size:"2"}),(0,e.createComponentVNode)(2,o.Box,{className:"Newscaster__menuButton--title",children:_}),H]})))},d=function(w,T){var A=(0,t.useBackend)(T),x=A.act,E=A.data,M=E.screen,j=E.is_admin,P=E.channel_idx,R=E.channel_can_manage,D=E.channels,F=E.stories,W=E.wanted,_=(0,t.useLocalState)(T,"fullStories",[]),H=_[0],z=_[1],$=(0,t.useLocalState)(T,"censorMode",!1),X=$[0],J=$[1],ce=M===2&&P>-1?D[P-1]:null;return(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[!!W&&(0,e.createComponentVNode)(2,v,{story:W,wanted:!0}),(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Icon,{name:ce?ce.icon:"newspaper",mr:"0.5rem"}),ce?ce.name:"Headlines"],0),children:F.length>0?F.slice().reverse().map(function(re){return!H.includes(re.uid)&&re.body.length+3>c?Object.assign({},re,{body_short:re.body.substr(0,c-4)+"..."}):re}).map(function(re,me){return(0,e.createComponentVNode)(2,v,{story:re},me)}):(0,e.createComponentVNode)(2,o.Box,{className:"Newscaster__emptyNotice",children:[(0,e.createComponentVNode)(2,o.Icon,{name:"times",size:"3"}),(0,e.createVNode)(1,"br"),"There are no stories at this time."]})}),!!ce&&(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,height:"40%",title:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Icon,{name:"info-circle",mr:"0.5rem"}),(0,e.createTextVNode)("About")],4),buttons:(0,e.createFragment)([X&&(0,e.createComponentVNode)(2,o.Button,{disabled:!!ce.admin&&!j,selected:ce.censored,icon:ce.censored?"comment-slash":"comment",content:ce.censored?"Uncensor Channel":"Censor Channel",mr:"0.5rem",onClick:function(){function re(){return x("censor_channel",{uid:ce.uid})}return re}()}),(0,e.createComponentVNode)(2,o.Button,{disabled:!R,icon:"cog",content:"Manage",onClick:function(){function re(){return(0,y.modalOpen)(T,"manage_channel",{uid:ce.uid})}return re}()})],0),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Description",children:ce.description||"N/A"}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Owner",children:ce.author||"N/A"}),!!j&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Ckey",children:ce.author_ckey}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Public",children:ce.public?"Yes":"No"}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Total Views",children:[(0,e.createComponentVNode)(2,o.Icon,{name:"eye",mr:"0.5rem"}),F.reduce(function(re,me){return re+me.view_count},0).toLocaleString()]})]})})]})},h=function(w,T){var A=(0,t.useBackend)(T),x=A.act,E=A.data,M=E.jobs,j=E.wanted,P=Object.entries(M).reduce(function(R,D){var F=D[0],W=D[1];return R+W.length},0);return(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[!!j&&(0,e.createComponentVNode)(2,v,{story:j,wanted:!0}),(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Icon,{name:"briefcase",mr:"0.5rem"}),(0,e.createTextVNode)("Job Openings")],4),buttons:(0,e.createComponentVNode)(2,o.Box,{mt:"0.25rem",color:"label",children:"Work for a better future at Nanotrasen"}),children:P>0?f.map(function(R){return Object.assign({},u[R],{id:R,jobs:M[R]})}).filter(function(R){return!!R&&R.jobs.length>0}).map(function(R){return(0,e.createComponentVNode)(2,o.Section,{className:(0,a.classes)(["Newscaster__jobCategory","Newscaster__jobCategory--"+R.id]),title:R.title,buttons:(0,e.createComponentVNode)(2,o.Box,{mt:"0.25rem",color:"label",children:R.fluff_text}),children:R.jobs.map(function(D){return(0,e.createComponentVNode)(2,o.Box,{class:(0,a.classes)(["Newscaster__jobOpening",!!D.is_command&&"Newscaster__jobOpening--command"]),children:["\u2022 ",D.title]},D.title)})},R.id)}):(0,e.createComponentVNode)(2,o.Box,{className:"Newscaster__emptyNotice",children:[(0,e.createComponentVNode)(2,o.Icon,{name:"times",size:"3"}),(0,e.createVNode)(1,"br"),"There are no openings at this time."]})}),(0,e.createComponentVNode)(2,o.Section,{height:"17%",children:["Interested in serving Nanotrasen?",(0,e.createVNode)(1,"br"),"Sign up for any of the above position now at the"," ",(0,e.createVNode)(1,"b",null,"Head of Personnel's Office!",16),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,o.Box,{as:"small",color:"label",children:"By signing up for a job at Nanotrasen, you agree to transfer your soul to the loyalty department of the omnipresent and helpful watcher of humanity."})]})]})},v=function(w,T){var A=(0,t.useBackend)(T),x=A.act,E=A.data,M=w.story,j=w.wanted,P=j===void 0?!1:j,R=E.is_admin,D=(0,t.useLocalState)(T,"fullStories",[]),F=D[0],W=D[1],_=(0,t.useLocalState)(T,"censorMode",!1),H=_[0],z=_[1];return(0,e.createComponentVNode)(2,o.Section,{className:(0,a.classes)(["Newscaster__story",P&&"Newscaster__story--wanted"]),title:(0,e.createFragment)([P&&(0,e.createComponentVNode)(2,o.Icon,{name:"exclamation-circle",mr:"0.5rem"}),M.censor_flags&2&&"[REDACTED]"||M.title||"News from "+M.author],0),buttons:(0,e.createComponentVNode)(2,o.Box,{mt:"0.25rem",children:(0,e.createComponentVNode)(2,o.Box,{color:"label",children:[!P&&H&&(0,e.createComponentVNode)(2,o.Box,{inline:!0,children:(0,e.createComponentVNode)(2,o.Button,{enabled:M.censor_flags&2,icon:M.censor_flags&2?"comment-slash":"comment",content:M.censor_flags&2?"Uncensor":"Censor",mr:"0.5rem",mt:"-0.25rem",onClick:function(){function $(){return x("censor_story",{uid:M.uid})}return $}()})}),(0,e.createComponentVNode)(2,o.Box,{inline:!0,children:[(0,e.createComponentVNode)(2,o.Icon,{name:"user"})," ",M.author," |\xA0",!!R&&(0,e.createFragment)([(0,e.createTextVNode)("ckey: "),M.author_ckey,(0,e.createTextVNode)(" |\xA0")],0),!P&&(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Icon,{name:"eye"}),(0,e.createTextVNode)(" "),M.view_count.toLocaleString(),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("|\xA0")],0),(0,e.createComponentVNode)(2,o.Icon,{name:"clock"})," ",(0,m.timeAgo)(M.publish_time,E.world_time)]})]})}),children:(0,e.createComponentVNode)(2,o.Box,{children:M.censor_flags&2?"[REDACTED]":(0,e.createFragment)([!!M.has_photo&&(0,e.createComponentVNode)(2,g,{name:"story_photo_"+M.uid+".png",float:"right",ml:"0.5rem"}),(M.body_short||M.body).split("\n").map(function($,X){return(0,e.createComponentVNode)(2,o.Box,{children:$||(0,e.createVNode)(1,"br")},X)}),M.body_short&&(0,e.createComponentVNode)(2,o.Button,{content:"Read more..",mt:"0.5rem",onClick:function(){function $(){return W([].concat(F,[M.uid]))}return $}()}),(0,e.createComponentVNode)(2,o.Box,{clear:"right"})],0)})})},g=function(w,T){var A=w.name,x=l(w,p),E=(0,t.useLocalState)(T,"viewingPhoto",""),M=E[0],j=E[1];return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Box,Object.assign({as:"img",className:"Newscaster__photo",src:A,onClick:function(){function P(){return j(A)}return P}()},x)))},C=function(w,T){var A=(0,t.useLocalState)(T,"viewingPhoto",""),x=A[0],E=A[1];return(0,e.createComponentVNode)(2,o.Modal,{className:"Newscaster__photoZoom",children:[(0,e.createComponentVNode)(2,o.Box,{as:"img",src:x}),(0,e.createComponentVNode)(2,o.Button,{icon:"times",content:"Close",color:"grey",mt:"1rem",onClick:function(){function M(){return E("")}return M}()})]})},V=function(w,T){var A=(0,t.useBackend)(T),x=A.act,E=A.data,M=!!w.args.uid&&E.channels.filter(function(q){return q.uid===w.args.uid}).pop();if(w.id==="manage_channel"&&!M){(0,y.modalClose)(T);return}var j=w.id==="manage_channel",P=!!w.args.is_admin,R=w.args.scanned_user,D=(0,t.useLocalState)(T,"author",(M==null?void 0:M.author)||R||"Unknown"),F=D[0],W=D[1],_=(0,t.useLocalState)(T,"name",(M==null?void 0:M.name)||""),H=_[0],z=_[1],$=(0,t.useLocalState)(T,"description",(M==null?void 0:M.description)||""),X=$[0],J=$[1],ce=(0,t.useLocalState)(T,"icon",(M==null?void 0:M.icon)||"newspaper"),re=ce[0],me=ce[1],pe=(0,t.useLocalState)(T,"isPublic",j?!!(M!=null&&M.public):!1),ye=pe[0],Be=pe[1],he=(0,t.useLocalState)(T,"adminLocked",(M==null?void 0:M.admin)===1||!1),oe=he[0],Z=he[1];return(0,e.createComponentVNode)(2,o.Section,{m:"-1rem",pb:"1.5rem",title:j?"Manage "+M.name:"Create New Channel",children:[(0,e.createComponentVNode)(2,o.Box,{mx:"0.5rem",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Owner",children:(0,e.createComponentVNode)(2,o.Input,{disabled:!P,width:"100%",value:F,onInput:function(){function q(ue,se){return W(se)}return q}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Name",children:(0,e.createComponentVNode)(2,o.Input,{width:"100%",placeholder:"50 characters max.",maxLength:"50",value:H,onInput:function(){function q(ue,se){return z(se)}return q}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Description (optional)",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Input,{multiline:!0,width:"100%",placeholder:"128 characters max.",maxLength:"128",value:X,onInput:function(){function q(ue,se){return J(se)}return q}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Icon",children:[(0,e.createComponentVNode)(2,o.Input,{disabled:!P,value:re,width:"35%",mr:"0.5rem",onInput:function(){function q(ue,se){return me(se)}return q}()}),(0,e.createComponentVNode)(2,o.Icon,{name:re,size:"2",verticalAlign:"middle",mr:"0.5rem"})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Accept Public Stories?",children:(0,e.createComponentVNode)(2,o.Button,{selected:ye,icon:ye?"toggle-on":"toggle-off",content:ye?"Yes":"No",onClick:function(){function q(){return Be(!ye)}return q}()})}),P&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"CentComm Lock",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Button,{selected:oe,icon:oe?"lock":"lock-open",content:oe?"On":"Off",tooltip:"Locking this channel will make it editable by nobody but CentComm officers.",tooltipPosition:"top",onClick:function(){function q(){return Z(!oe)}return q}()})})]})}),(0,e.createComponentVNode)(2,o.Button.Confirm,{disabled:F.trim().length===0||H.trim().length===0,icon:"check",color:"good",content:"Submit",position:"absolute",right:"1rem",bottom:"-0.75rem",onClick:function(){function q(){(0,y.modalAnswer)(T,w.id,"",{author:F,name:H.substr(0,49),description:X.substr(0,128),icon:re,public:ye?1:0,admin_locked:oe?1:0})}return q}()})]})},b=function(w,T){var A=(0,t.useBackend)(T),x=A.act,E=A.data,M=E.photo,j=E.channels,P=E.channel_idx,R=P===void 0?-1:P,D=!!w.args.is_admin,F=w.args.scanned_user,W=j.slice().sort(function(q,ue){if(R<0)return 0;var se=j[R-1];if(se.uid===q.uid)return-1;if(se.uid===ue.uid)return 1}).filter(function(q){return D||!q.frozen&&(q.author===F||!!q.public)}),_=(0,t.useLocalState)(T,"author",F||"Unknown"),H=_[0],z=_[1],$=(0,t.useLocalState)(T,"channel",W.length>0?W[0].name:""),X=$[0],J=$[1],ce=(0,t.useLocalState)(T,"title",""),re=ce[0],me=ce[1],pe=(0,t.useLocalState)(T,"body",""),ye=pe[0],Be=pe[1],he=(0,t.useLocalState)(T,"adminLocked",!1),oe=he[0],Z=he[1];return(0,e.createComponentVNode)(2,o.Section,{m:"-1rem",pb:"1.5rem",title:"Create New Story",children:[(0,e.createComponentVNode)(2,o.Box,{mx:"0.5rem",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Author",children:(0,e.createComponentVNode)(2,o.Input,{disabled:!D,width:"100%",value:H,onInput:function(){function q(ue,se){return z(se)}return q}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Channel",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Dropdown,{selected:X,options:W.map(function(q){return q.name}),mb:"0",width:"100%",onSelected:function(){function q(ue){return J(ue)}return q}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Divider),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Title",children:(0,e.createComponentVNode)(2,o.Input,{width:"100%",placeholder:"128 characters max.",maxLength:"128",value:re,onInput:function(){function q(ue,se){return me(se)}return q}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Story Text",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Input,{fluid:!0,multiline:!0,placeholder:"1024 characters max.",maxLength:"1024",rows:"8",width:"100%",value:ye,onInput:function(){function q(ue,se){return Be(se)}return q}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Photo (optional)",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Button,{icon:"image",selected:M,content:M?"Eject: "+M.name:"Insert Photo",tooltip:!M&&"Attach a photo to this story by holding the photograph in your hand.",onClick:function(){function q(){return x(M?"eject_photo":"attach_photo")}return q}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Preview",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Section,{noTopPadding:!0,title:re,maxHeight:"13.5rem",overflow:"auto",children:(0,e.createComponentVNode)(2,o.Box,{mt:"0.5rem",children:[!!M&&(0,e.createComponentVNode)(2,g,{name:"inserted_photo_"+M.uid+".png",float:"right"}),ye.split("\n").map(function(q,ue){return(0,e.createComponentVNode)(2,o.Box,{children:q||(0,e.createVNode)(1,"br")},ue)}),(0,e.createComponentVNode)(2,o.Box,{clear:"right"})]})})}),D&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"CentComm Lock",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Button,{selected:oe,icon:oe?"lock":"lock-open",content:oe?"On":"Off",tooltip:"Locking this story will make it censorable by nobody but CentComm officers.",tooltipPosition:"top",onClick:function(){function q(){return Z(!oe)}return q}()})})]})}),(0,e.createComponentVNode)(2,o.Button.Confirm,{disabled:H.trim().length===0||X.trim().length===0||re.trim().length===0||ye.trim().length===0,icon:"check",color:"good",content:"Submit",position:"absolute",right:"1rem",bottom:"-0.75rem",onClick:function(){function q(){(0,y.modalAnswer)(T,"create_story","",{author:H,channel:X,title:re.substr(0,127),body:ye.substr(0,1023),admin_locked:oe?1:0})}return q}()})]})},B=function(w,T){var A=(0,t.useBackend)(T),x=A.act,E=A.data,M=E.photo,j=E.wanted,P=!!w.args.is_admin,R=w.args.scanned_user,D=(0,t.useLocalState)(T,"author",(j==null?void 0:j.author)||R||"Unknown"),F=D[0],W=D[1],_=(0,t.useLocalState)(T,"name",(j==null?void 0:j.title.substr(8))||""),H=_[0],z=_[1],$=(0,t.useLocalState)(T,"description",(j==null?void 0:j.body)||""),X=$[0],J=$[1],ce=(0,t.useLocalState)(T,"adminLocked",(j==null?void 0:j.admin_locked)===1||!1),re=ce[0],me=ce[1];return(0,e.createComponentVNode)(2,o.Section,{m:"-1rem",pb:"1.5rem",title:"Manage Wanted Notice",children:[(0,e.createComponentVNode)(2,o.Box,{mx:"0.5rem",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Authority",children:(0,e.createComponentVNode)(2,o.Input,{disabled:!P,width:"100%",value:F,onInput:function(){function pe(ye,Be){return W(Be)}return pe}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Name",children:(0,e.createComponentVNode)(2,o.Input,{width:"100%",value:H,maxLength:"128",onInput:function(){function pe(ye,Be){return z(Be)}return pe}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Description",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Input,{multiline:!0,width:"100%",value:X,maxLength:"512",rows:"4",onInput:function(){function pe(ye,Be){return J(Be)}return pe}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Photo (optional)",verticalAlign:"top",children:[(0,e.createComponentVNode)(2,o.Button,{icon:"image",selected:M,content:M?"Eject: "+M.name:"Insert Photo",tooltip:!M&&"Attach a photo to this wanted notice by holding the photograph in your hand.",tooltipPosition:"top",onClick:function(){function pe(){return x(M?"eject_photo":"attach_photo")}return pe}()}),!!M&&(0,e.createComponentVNode)(2,g,{name:"inserted_photo_"+M.uid+".png",float:"right"})]}),P&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"CentComm Lock",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Button,{selected:re,icon:re?"lock":"lock-open",content:re?"On":"Off",tooltip:"Locking this wanted notice will make it editable by nobody but CentComm officers.",tooltipPosition:"top",onClick:function(){function pe(){return me(!re)}return pe}()})})]})}),(0,e.createComponentVNode)(2,o.Button.Confirm,{disabled:!j,icon:"eraser",color:"danger",content:"Clear",position:"absolute",right:"7.25rem",bottom:"-0.75rem",onClick:function(){function pe(){x("clear_wanted_notice"),(0,y.modalClose)(T)}return pe}()}),(0,e.createComponentVNode)(2,o.Button.Confirm,{disabled:F.trim().length===0||H.trim().length===0||X.trim().length===0,icon:"check",color:"good",content:"Submit",position:"absolute",right:"1rem",bottom:"-0.75rem",onClick:function(){function pe(){(0,y.modalAnswer)(T,w.id,"",{author:F,name:H.substr(0,127),description:X.substr(0,511),admin_locked:re?1:0})}return pe}()})]})};(0,y.modalRegisterBodyOverride)("create_channel",V),(0,y.modalRegisterBodyOverride)("manage_channel",V),(0,y.modalRegisterBodyOverride)("create_story",b),(0,y.modalRegisterBodyOverride)("wanted_notice",B)},46940:function(L,r,n){"use strict";r.__esModule=!0,r.NuclearBomb=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=r.NuclearBomb=function(){function N(y,S){var k=(0,a.useBackend)(S),p=k.act,l=k.data;return l.extended?(0,e.createComponentVNode)(2,o.Window,{width:350,height:290,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Authorization",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Auth Disk",children:(0,e.createComponentVNode)(2,t.Button,{icon:l.authdisk?"eject":"id-card",selected:l.authdisk,content:l.diskname?l.diskname:"-----",tooltip:l.authdisk?"Eject Disk":"Insert Disk",onClick:function(){function c(){return p("auth")}return c}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Auth Code",children:(0,e.createComponentVNode)(2,t.Button,{icon:"key",disabled:!l.authdisk,selected:l.authcode,content:l.codemsg,onClick:function(){function c(){return p("code")}return c}()})})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Arming & Disarming",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Bolted to floor",children:(0,e.createComponentVNode)(2,t.Button,{icon:l.anchored?"check":"times",selected:l.anchored,disabled:!l.authdisk,content:l.anchored?"YES":"NO",onClick:function(){function c(){return p("toggle_anchor")}return c}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Time Left",children:(0,e.createComponentVNode)(2,t.Button,{icon:"stopwatch",content:l.time,disabled:!l.authfull,tooltip:"Set Timer",onClick:function(){function c(){return p("set_time")}return c}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Safety",children:(0,e.createComponentVNode)(2,t.Button,{icon:l.safety?"check":"times",selected:l.safety,disabled:!l.authfull,content:l.safety?"ON":"OFF",tooltip:l.safety?"Disable Safety":"Enable Safety",onClick:function(){function c(){return p("toggle_safety")}return c}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Arm/Disarm",children:(0,e.createComponentVNode)(2,t.Button,{icon:(l.timer,"bomb"),disabled:l.safety||!l.authfull,color:"red",content:l.timer?"DISARM THE NUKE":"ARM THE NUKE",onClick:function(){function c(){return p("toggle_armed")}return c}()})})]})})]})}):(0,e.createComponentVNode)(2,o.Window,{width:350,height:115,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Deployment",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"exclamation-triangle",content:"Deploy Nuclear Device (will bolt device to floor)",onClick:function(){function c(){return p("deploy")}return c}()})})})})}return N}()},35478:function(L,r,n){"use strict";r.__esModule=!0,r.NumberInputModal=void 0;var e=n(96524),a=n(14299),t=n(15113),o=n(68100),m=n(17899),N=n(24674),y=n(45493),S=r.NumberInputModal=function(){function p(l,c){var f=(0,m.useBackend)(c),u=f.act,i=f.data,s=i.init_value,d=i.large_buttons,h=i.message,v=h===void 0?"":h,g=i.timeout,C=i.title,V=(0,m.useLocalState)(c,"input",s),b=V[0],B=V[1],I=function(){function A(x){x!==b&&B(x)}return A}(),w=function(){function A(x){x!==b&&B(x)}return A}(),T=120+(v.length>30?Math.ceil(v.length/3):0);return(0,e.createComponentVNode)(2,y.Window,{title:C,width:270,height:T,children:[g&&(0,e.createComponentVNode)(2,a.Loader,{value:g}),(0,e.createComponentVNode)(2,y.Window.Content,{onKeyDown:function(){function A(x){var E=window.event?x.which:x.keyCode;E===o.KEY_ENTER&&u("submit",{entry:b}),E===o.KEY_ESCAPE&&u("cancel")}return A}(),children:(0,e.createComponentVNode)(2,N.Section,{fill:!0,children:(0,e.createComponentVNode)(2,N.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,N.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,N.Box,{color:"label",children:v})}),(0,e.createComponentVNode)(2,N.Stack.Item,{children:(0,e.createComponentVNode)(2,k,{input:b,onClick:w,onChange:I})}),(0,e.createComponentVNode)(2,N.Stack.Item,{children:(0,e.createComponentVNode)(2,t.InputButtons,{input:b})})]})})})]})}return p}(),k=function(l,c){var f=(0,m.useBackend)(c),u=f.act,i=f.data,s=i.min_value,d=i.max_value,h=i.init_value,v=i.round_value,g=l.input,C=l.onClick,V=l.onChange,b=Math.round(g!==s?Math.max(g/2,s):d/2),B=g===s&&s>0||g===1;return(0,e.createComponentVNode)(2,N.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,N.Stack.Item,{children:(0,e.createComponentVNode)(2,N.Button,{disabled:g===s,icon:"angle-double-left",onClick:function(){function I(){return C(s)}return I}(),tooltip:g===s?"Min":"Min ("+s+")"})}),(0,e.createComponentVNode)(2,N.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,N.RestrictedInput,{autoFocus:!0,autoSelect:!0,fluid:!0,allowFloats:!v,minValue:s,maxValue:d,onChange:function(){function I(w,T){return V(T)}return I}(),onEnter:function(){function I(w,T){return u("submit",{entry:T})}return I}(),value:g})}),(0,e.createComponentVNode)(2,N.Stack.Item,{children:(0,e.createComponentVNode)(2,N.Button,{disabled:g===d,icon:"angle-double-right",onClick:function(){function I(){return C(d)}return I}(),tooltip:g===d?"Max":"Max ("+d+")"})}),(0,e.createComponentVNode)(2,N.Stack.Item,{children:(0,e.createComponentVNode)(2,N.Button,{disabled:B,icon:"divide",onClick:function(){function I(){return C(b)}return I}(),tooltip:B?"Split":"Split ("+b+")"})}),(0,e.createComponentVNode)(2,N.Stack.Item,{children:(0,e.createComponentVNode)(2,N.Button,{disabled:g===h,icon:"redo",onClick:function(){function I(){return C(h)}return I}(),tooltip:h?"Reset ("+h+")":"Reset"})})]})}},98476:function(L,r,n){"use strict";r.__esModule=!0,r.OperatingComputer=void 0;var e=n(96524),a=n(36121),t=n(17899),o=n(45493),m=n(24674),N=[["good","Conscious"],["average","Unconscious"],["bad","DEAD"]],y=[["Resp.","oxyLoss"],["Toxin","toxLoss"],["Brute","bruteLoss"],["Burn","fireLoss"]],S={average:[.25,.5],bad:[.5,1/0]},k=["bad","average","average","good","average","average","bad"],p=r.OperatingComputer=function(){function u(i,s){var d=(0,t.useBackend)(s),h=d.act,v=d.data,g=v.hasOccupant,C=v.choice,V;return C?V=(0,e.createComponentVNode)(2,f):V=g?(0,e.createComponentVNode)(2,l):(0,e.createComponentVNode)(2,c),(0,e.createComponentVNode)(2,o.Window,{width:650,height:455,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,m.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,m.Stack.Item,{children:(0,e.createComponentVNode)(2,m.Tabs,{children:[(0,e.createComponentVNode)(2,m.Tabs.Tab,{selected:!C,icon:"user",onClick:function(){function b(){return h("choiceOff")}return b}(),children:"Patient"}),(0,e.createComponentVNode)(2,m.Tabs.Tab,{selected:!!C,icon:"cog",onClick:function(){function b(){return h("choiceOn")}return b}(),children:"Options"})]})}),(0,e.createComponentVNode)(2,m.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,m.Section,{fill:!0,scrollable:!0,children:V})})]})})})}return u}(),l=function(i,s){var d=(0,t.useBackend)(s),h=d.data,v=h.occupant;return(0,e.createComponentVNode)(2,m.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,m.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,m.Section,{fill:!0,title:"Patient",children:(0,e.createComponentVNode)(2,m.LabeledList,{children:[(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Name",children:v.name}),(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Status",color:N[v.stat][0],children:N[v.stat][1]}),(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Health",children:(0,e.createComponentVNode)(2,m.ProgressBar,{min:"0",max:v.maxHealth,value:v.health/v.maxHealth,ranges:{good:[.5,1/0],average:[0,.5],bad:[-1/0,0]}})}),y.map(function(g,C){return(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:g[0]+" Damage",children:(0,e.createComponentVNode)(2,m.ProgressBar,{min:"0",max:"100",value:v[g[1]]/100,ranges:S,children:(0,a.round)(v[g[1]])},C)},C)}),(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Temperature",children:(0,e.createComponentVNode)(2,m.ProgressBar,{min:"0",max:v.maxTemp,value:v.bodyTemperature/v.maxTemp,color:k[v.temperatureSuitability+3],children:[(0,a.round)(v.btCelsius),"\xB0C, ",(0,a.round)(v.btFaren),"\xB0F"]})}),!!v.hasBlood&&(0,e.createFragment)([(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Blood Level",children:(0,e.createComponentVNode)(2,m.ProgressBar,{min:"0",max:v.bloodMax,value:v.bloodLevel/v.bloodMax,ranges:{bad:[-1/0,.6],average:[.6,.9],good:[.6,1/0]},children:[v.bloodPercent,"%, ",v.bloodLevel,"cl"]})}),(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Pulse",children:[v.pulse," BPM"]})],4)]})})}),(0,e.createComponentVNode)(2,m.Stack.Item,{children:(0,e.createComponentVNode)(2,m.Section,{title:"Current Procedure",level:"2",children:v.inSurgery?(0,e.createComponentVNode)(2,m.LabeledList,{children:[(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Procedure",children:v.surgeryName}),(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Next Step",children:v.stepName})]}):(0,e.createComponentVNode)(2,m.Box,{color:"label",children:"No procedure ongoing."})})})]})},c=function(){return(0,e.createComponentVNode)(2,m.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,m.Stack.Item,{grow:!0,align:"center",textAlign:"center",color:"label",children:[(0,e.createComponentVNode)(2,m.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,e.createVNode)(1,"br"),"No patient detected."]})})},f=function(i,s){var d=(0,t.useBackend)(s),h=d.act,v=d.data,g=v.verbose,C=v.health,V=v.healthAlarm,b=v.oxy,B=v.oxyAlarm,I=v.crit;return(0,e.createComponentVNode)(2,m.LabeledList,{children:[(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Loudspeaker",children:(0,e.createComponentVNode)(2,m.Button,{selected:g,icon:g?"toggle-on":"toggle-off",content:g?"On":"Off",onClick:function(){function w(){return h(g?"verboseOff":"verboseOn")}return w}()})}),(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Health Announcer",children:(0,e.createComponentVNode)(2,m.Button,{selected:C,icon:C?"toggle-on":"toggle-off",content:C?"On":"Off",onClick:function(){function w(){return h(C?"healthOff":"healthOn")}return w}()})}),(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Health Announcer Threshold",children:(0,e.createComponentVNode)(2,m.Knob,{bipolar:!0,minValue:-100,maxValue:100,value:V,stepPixelSize:5,ml:"0",onChange:function(){function w(T,A){return h("health_adj",{new:A})}return w}()})}),(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Oxygen Alarm",children:(0,e.createComponentVNode)(2,m.Button,{selected:b,icon:b?"toggle-on":"toggle-off",content:b?"On":"Off",onClick:function(){function w(){return h(b?"oxyOff":"oxyOn")}return w}()})}),(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Oxygen Alarm Threshold",children:(0,e.createComponentVNode)(2,m.Knob,{bipolar:!0,minValue:-100,maxValue:100,value:B,stepPixelSize:5,ml:"0",onChange:function(){function w(T,A){return h("oxy_adj",{new:A})}return w}()})}),(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Critical Alert",children:(0,e.createComponentVNode)(2,m.Button,{selected:I,icon:I?"toggle-on":"toggle-off",content:I?"On":"Off",onClick:function(){function w(){return h(I?"critOff":"critOn")}return w}()})})]})}},98702:function(L,r,n){"use strict";r.__esModule=!0,r.Orbit=void 0;var e=n(96524),a=n(78234),t=n(17899),o=n(24674),m=n(45493),N=n(28234);function y(d,h){var v=typeof Symbol!="undefined"&&d[Symbol.iterator]||d["@@iterator"];if(v)return(v=v.call(d)).next.bind(v);if(Array.isArray(d)||(v=S(d))||h&&d&&typeof d.length=="number"){v&&(d=v);var g=0;return function(){return g>=d.length?{done:!0}:{done:!1,value:d[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.")}function S(d,h){if(d){if(typeof d=="string")return k(d,h);var v=Object.prototype.toString.call(d).slice(8,-1);if(v==="Object"&&d.constructor&&(v=d.constructor.name),v==="Map"||v==="Set")return Array.from(d);if(v==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(v))return k(d,h)}}function k(d,h){(h==null||h>d.length)&&(h=d.length);for(var v=0,g=new Array(h);vv},f=function(h,v){var g=h.name,C=v.name;if(!g||!C)return 0;var V=g.match(p),b=C.match(p);if(V&&b&&g.replace(p,"")===C.replace(p,"")){var B=parseInt(V[1],10),I=parseInt(b[1],10);return B-I}return c(g,C)},u=function(h,v){var g=h.searchText,C=h.source,V=h.title,b=h.color,B=h.sorted,I=C.filter(l(g));return B&&I.sort(f),C.length>0&&(0,e.createComponentVNode)(2,o.Section,{title:V+" - ("+C.length+")",children:I.map(function(w){return(0,e.createComponentVNode)(2,i,{thing:w,color:b},w.name)})})},i=function(h,v){var g=(0,t.useBackend)(v),C=g.act,V=h.color,b=h.thing;return(0,e.createComponentVNode)(2,o.Button,{color:V,tooltip:b.assigned_role?(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.Box,{as:"img",mr:"0.5em",className:(0,N.classes)(["orbit_job16x16",b.assigned_role_sprite])})," ",b.assigned_role]}):"",tooltipPosition:"bottom",onClick:function(){function B(){return C("orbit",{ref:b.ref})}return B}(),children:[b.name,b.orbiters&&(0,e.createComponentVNode)(2,o.Box,{inline:!0,ml:1,children:["(",b.orbiters," ",(0,e.createComponentVNode)(2,o.Icon,{name:"eye"}),")"]})]})},s=r.Orbit=function(){function d(h,v){for(var g=(0,t.useBackend)(v),C=g.act,V=g.data,b=V.alive,B=V.antagonists,I=V.highlights,w=V.response_teams,T=V.auto_observe,A=V.dead,x=V.ghosts,E=V.misc,M=V.npcs,j=(0,t.useLocalState)(v,"searchText",""),P=j[0],R=j[1],D={},F=y(B),W;!(W=F()).done;){var _=W.value;D[_.antag]===void 0&&(D[_.antag]=[]),D[_.antag].push(_)}var H=Object.entries(D);H.sort(function($,X){return c($[0],X[0])});var z=function(){function $(X){for(var J=0,ce=[H.map(function(pe){var ye=pe[0],Be=pe[1];return Be}),I,b,x,A,M,E];J0&&(0,e.createComponentVNode)(2,o.Section,{title:"Antagonists",children:H.map(function($){var X=$[0],J=$[1];return(0,e.createComponentVNode)(2,o.Section,{title:X+" - ("+J.length+")",level:2,children:J.filter(l(P)).sort(f).map(function(ce){return(0,e.createComponentVNode)(2,i,{color:"bad",thing:ce},ce.name)})},X)})}),I.length>0&&(0,e.createComponentVNode)(2,u,{title:"Highlights",source:I,searchText:P,color:"teal"}),(0,e.createComponentVNode)(2,u,{title:"Response Teams",source:w,searchText:P,color:"purple"}),(0,e.createComponentVNode)(2,u,{title:"Alive",source:b,searchText:P,color:"good"}),(0,e.createComponentVNode)(2,u,{title:"Ghosts",source:x,searchText:P,color:"grey"}),(0,e.createComponentVNode)(2,u,{title:"Dead",source:A,searchText:P,sorted:!1}),(0,e.createComponentVNode)(2,u,{title:"NPCs",source:M,searchText:P,sorted:!1}),(0,e.createComponentVNode)(2,u,{title:"Misc",source:E,searchText:P,sorted:!1})]})})}return d}()},74015:function(L,r,n){"use strict";r.__esModule=!0,r.OreRedemption=void 0;var e=n(96524),a=n(28234),t=n(17899),o=n(24674),m=n(45493),N=n(81856);function y(d){if(d==null)throw new TypeError("Cannot destructure "+d)}var S=(0,N.createLogger)("OreRedemption"),k=function(h){return h.toLocaleString("en-US")+" pts"},p=r.OreRedemption=function(){function d(h,v){return(0,e.createComponentVNode)(2,m.Window,{width:490,height:750,children:(0,e.createComponentVNode)(2,m.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,l,{height:"100%"})}),(0,e.createComponentVNode)(2,c),(0,e.createComponentVNode)(2,f)]})})})}return d}(),l=function(h,v){var g=(0,t.useBackend)(v),C=g.act,V=g.data,b=V.id,B=V.points,I=V.disk,w=Object.assign({},(y(h),h));return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Section,Object.assign({},w,{children:[(0,e.createComponentVNode)(2,o.Box,{color:"average",textAlign:"center",children:[(0,e.createComponentVNode)(2,o.Icon,{name:"exclamation-triangle",mr:"0.5rem"}),"This machine only accepts ore. Gibtonite is not accepted."]}),(0,e.createComponentVNode)(2,o.Divider),(0,e.createComponentVNode)(2,o.LabeledList,{children:(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Unclaimed Points",color:B>0?"good":"grey",bold:B>0&&"good",children:k(B)})}),(0,e.createComponentVNode)(2,o.Divider),I?(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Design disk",children:[(0,e.createComponentVNode)(2,o.Button,{selected:!0,bold:!0,icon:"eject",content:I.name,tooltip:"Ejects the design disk.",onClick:function(){function T(){return C("eject_disk")}return T}()}),(0,e.createComponentVNode)(2,o.Button,{disabled:!I.design||!I.compatible,icon:"upload",content:"Download",tooltip:"Downloads the design on the disk into the machine.",onClick:function(){function T(){return C("download")}return T}()})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Stored design",children:(0,e.createComponentVNode)(2,o.Box,{color:I.design&&(I.compatible?"good":"bad"),children:I.design||"N/A"})})]}):(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"No design disk inserted."})]})))},c=function(h,v){var g=(0,t.useBackend)(v),C=g.act,V=g.data,b=V.sheets,B=Object.assign({},(y(h),h));return(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,height:"20%",children:(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Section,Object.assign({fill:!0,scrollable:!0,className:"OreRedemption__Ores",p:"0"},B,{children:[(0,e.createComponentVNode)(2,u,{title:"Sheets",columns:[["Available","25%"],["Ore Value","15%"],["Smelt","20%"]]}),b.map(function(I){return(0,e.createComponentVNode)(2,i,{ore:I},I.id)})]})))})},f=function(h,v){var g=(0,t.useBackend)(v),C=g.act,V=g.data,b=V.alloys,B=Object.assign({},(y(h),h));return(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Section,Object.assign({fill:!0,scrollable:!0,className:"OreRedemption__Ores",p:"0"},B,{children:[(0,e.createComponentVNode)(2,u,{title:"Alloys",columns:[["Recipe","50%"],["Available","11%"],["Smelt","20%"]]}),b.map(function(I){return(0,e.createComponentVNode)(2,s,{ore:I},I.id)})]})))})},u=function(h,v){var g;return(0,e.createComponentVNode)(2,o.Box,{className:"OreHeader",children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:h.title}),(g=h.columns)==null?void 0:g.map(function(C){return(0,e.createComponentVNode)(2,o.Stack.Item,{basis:C[1],textAlign:"center",color:"label",bold:!0,children:C[0]},C)})]})})},i=function(h,v){var g=(0,t.useBackend)(v),C=g.act,V=h.ore;if(!(V.value&&V.amount<=0&&!(["metal","glass"].indexOf(V.id)>-1)))return(0,e.createComponentVNode)(2,o.Box,{className:"SheetLine",children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"45%",align:"middle",children:(0,e.createComponentVNode)(2,o.Stack,{align:"center",children:[(0,e.createComponentVNode)(2,o.Stack.Item,{className:(0,a.classes)(["materials32x32",V.id])}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:V.name})]})}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"20%",textAlign:"center",color:V.amount>=1?"good":"gray",bold:V.amount>=1,align:"center",children:V.amount.toLocaleString("en-US")}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"20%",textAlign:"center",align:"center",children:V.value}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"20%",textAlign:"center",align:"center",lineHeight:"32px",children:(0,e.createComponentVNode)(2,o.NumberInput,{width:"40%",value:0,minValue:0,maxValue:Math.min(V.amount,50),stepPixelSize:6,onChange:function(){function b(B,I){return C(V.value?"sheet":"alloy",{id:V.id,amount:I})}return b}()})})]})})},s=function(h,v){var g=(0,t.useBackend)(v),C=g.act,V=h.ore;return(0,e.createComponentVNode)(2,o.Box,{className:"SheetLine",children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"7%",align:"middle",children:(0,e.createComponentVNode)(2,o.Box,{className:(0,a.classes)(["alloys32x32",V.id])})}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"30%",textAlign:"middle",align:"center",children:V.name}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"35%",textAlign:"middle",color:V.amount>=1?"good":"gray",align:"center",children:V.description}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"10%",textAlign:"center",color:V.amount>=1?"good":"gray",bold:V.amount>=1,align:"center",children:V.amount.toLocaleString("en-US")}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"20%",textAlign:"center",align:"center",lineHeight:"32px",children:(0,e.createComponentVNode)(2,o.NumberInput,{width:"40%",value:0,minValue:0,maxValue:Math.min(V.amount,50),stepPixelSize:6,onChange:function(){function b(B,I){return C(V.value?"sheet":"alloy",{id:V.id,amount:I})}return b}()})})]})})}},48824:function(L,r,n){"use strict";r.__esModule=!0,r.PAI=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=n(91807),N=n(70752),y=function(p){var l;try{l=N("./"+p+".js")}catch(f){if(f.code==="MODULE_NOT_FOUND")return(0,m.routingError)("notFound",p);throw f}var c=l[p];return c||(0,m.routingError)("missingExport",p)},S=r.PAI=function(){function k(p,l){var c=(0,a.useBackend)(l),f=c.act,u=c.data,i=u.app_template,s=u.app_icon,d=u.app_title,h=y(i);return(0,e.createComponentVNode)(2,o.Window,{width:600,height:650,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{p:1,fill:!0,scrollable:!0,title:(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Icon,{name:s,mr:1}),d,i!=="pai_main_menu"&&(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{ml:2,mb:0,content:"Back",icon:"arrow-left",onClick:function(){function v(){return f("Back")}return v}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Home",icon:"arrow-up",onClick:function(){function v(){return f("MASTER_back")}return v}()})],4)]}),children:(0,e.createComponentVNode)(2,h)})})})})})}return k}()},41565:function(L,r,n){"use strict";r.__esModule=!0,r.PDA=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=n(91807),N=n(59395),y=function(c){var f;try{f=N("./"+c+".js")}catch(i){if(i.code==="MODULE_NOT_FOUND")return(0,m.routingError)("notFound",c);throw i}var u=f[c];return u||(0,m.routingError)("missingExport",c)},S=r.PDA=function(){function l(c,f){var u=(0,a.useBackend)(f),i=u.act,s=u.data,d=s.app,h=s.owner;if(!h)return(0,e.createComponentVNode)(2,o.Window,{width:350,height:105,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Error",children:"No user data found. Please swipe an ID card."})})});var v=y(d.template);return(0,e.createComponentVNode)(2,o.Window,{width:600,height:650,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,k)}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,p:1,pb:0,title:(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Icon,{name:d.icon,mr:1}),d.name]}),children:(0,e.createComponentVNode)(2,v)})}),(0,e.createComponentVNode)(2,t.Stack.Item,{mt:7.5,children:(0,e.createComponentVNode)(2,p)})]})})})}return l}(),k=function(c,f){var u=(0,a.useBackend)(f),i=u.act,s=u.data,d=s.idInserted,h=s.idLink,v=s.stationTime,g=s.cartridge_name;return(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{ml:.5,children:(0,e.createComponentVNode)(2,t.Button,{icon:"id-card",color:"transparent",onClick:function(){function C(){return i("Authenticate")}return C}(),content:d?h:"No ID Inserted"})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"sd-card",color:"transparent",onClick:function(){function C(){return i("Eject")}return C}(),content:g?["Eject "+g]:"No Cartridge Inserted"})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,textAlign:"right",bold:!0,mr:1,mt:.5,children:v})]})},p=function(c,f){var u=(0,a.useBackend)(f),i=u.act,s=u.data,d=s.app;return(0,e.createComponentVNode)(2,t.Box,{height:"45px",className:"PDA__footer",backgroundColor:"#1b1b1b",children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:[!!d.has_back&&(0,e.createComponentVNode)(2,t.Stack.Item,{basis:"33%",mr:-.5,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,className:"PDA__footer__button",color:"transparent",iconColor:d.has_back?"white":"disabled",icon:"arrow-alt-circle-left-o",onClick:function(){function h(){return i("Back")}return h}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{basis:d.has_back?"33%":"100%",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,className:"PDA__footer__button",color:"transparent",iconColor:d.is_home?"disabled":"white",icon:"home",onClick:function(){function h(){i("Home")}return h}()})})]})})}},78704:function(L,r,n){"use strict";r.__esModule=!0,r.Pacman=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=n(92986),N=r.Pacman=function(){function y(S,k){var p=(0,a.useBackend)(k),l=p.act,c=p.data,f=c.active,u=c.anchored,i=c.broken,s=c.emagged,d=c.fuel_type,h=c.fuel_usage,v=c.fuel_stored,g=c.fuel_cap,C=c.is_ai,V=c.tmp_current,b=c.tmp_max,B=c.tmp_overheat,I=c.output_max,w=c.power_gen,T=c.output_set,A=c.has_fuel,x=v/g,E=V/b,M=T*w,j=Math.round(v/h),P=Math.round(j/60),R=j>120?P+" minutes":j+" seconds";return(0,e.createComponentVNode)(2,o.Window,{width:500,height:225,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(i||!u)&&(0,e.createComponentVNode)(2,t.Section,{title:"Status",children:[!!i&&(0,e.createComponentVNode)(2,t.Box,{color:"orange",children:"The generator is malfunctioning!"}),!i&&!u&&(0,e.createComponentVNode)(2,t.Box,{color:"orange",children:"The generator needs to be anchored to the floor with a wrench."})]}),!i&&!!u&&(0,e.createVNode)(1,"div",null,[(0,e.createComponentVNode)(2,t.Section,{title:"Status",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:f?"power-off":"times",content:f?"On":"Off",tooltip:"Toggles the generator on/off. Requires fuel.",tooltipPosition:"left",disabled:!A,selected:f,onClick:function(){function D(){return l("toggle_power")}return D}()}),children:(0,e.createComponentVNode)(2,t.Flex,{direction:"row",children:[(0,e.createComponentVNode)(2,t.Flex.Item,{width:"50%",className:"ml-1",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power setting",children:[(0,e.createComponentVNode)(2,t.NumberInput,{value:T,minValue:1,maxValue:I*(s?2.5:1),step:1,className:"mt-1",onDrag:function(){function D(F,W){return l("change_power",{change_power:W})}return D}()}),"(",(0,m.formatPower)(M),")"]})})}),(0,e.createComponentVNode)(2,t.Flex.Item,{width:"50%",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Temperature",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:E,ranges:{green:[-1/0,.33],orange:[.33,.66],red:[.66,1/0]},children:[V," \u2103"]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:[B>50&&(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"CRITICAL OVERHEAT!"}),B>20&&B<=50&&(0,e.createComponentVNode)(2,t.Box,{color:"orange",children:"WARNING: Overheating!"}),B>1&&B<=20&&(0,e.createComponentVNode)(2,t.Box,{color:"orange",children:"Temperature High"}),B===0&&(0,e.createComponentVNode)(2,t.Box,{color:"green",children:"Optimal"})]})]})})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Fuel",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"eject",content:"Eject Fuel",tooltip:"Ejects fuel. Generator needs to be offline.",tooltipPosition:"left",disabled:f||C||!A,onClick:function(){function D(){return l("eject_fuel")}return D}()}),children:(0,e.createComponentVNode)(2,t.Grid,{children:[(0,e.createComponentVNode)(2,t.Grid.Column,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Type",children:d}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Fuel level",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:x,ranges:{red:[-1/0,.33],orange:[.33,.66],green:[.66,1/0]},children:[Math.round(v/1e3)," dm\xB3"]})})]})}),(0,e.createComponentVNode)(2,t.Grid.Column,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Fuel usage",children:[h/1e3," dm\xB3/s"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Fuel depletion",children:[!!A&&(h?R:"N/A"),!A&&(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Out of fuel"})]})]})})]})})],4)]})})}return y}()},78643:function(L,r,n){"use strict";r.__esModule=!0,r.ParticleAccelerator=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=r.ParticleAccelerator=function(){function N(y,S){var k=(0,a.useBackend)(S),p=k.act,l=k.data,c=l.assembled,f=l.power,u=l.strength,i=l.max_strength;return(0,e.createComponentVNode)(2,o.Window,{width:350,height:160,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Control Panel",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"sync",content:"Connect",onClick:function(){function s(){return p("scan")}return s}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",mb:"5px",children:(0,e.createComponentVNode)(2,t.Box,{color:c?"good":"bad",children:c?"Operational":"Error: Verify Configuration"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power",children:(0,e.createComponentVNode)(2,t.Button,{icon:f?"power-off":"times",content:f?"On":"Off",selected:f,disabled:!c,onClick:function(){function s(){return p("power")}return s}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Strength",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"backward",disabled:!c||u===0,onClick:function(){function s(){return p("remove_strength")}return s}(),mr:"4px"}),u,(0,e.createComponentVNode)(2,t.Button,{icon:"forward",disabled:!c||u===i,onClick:function(){function s(){return p("add_strength")}return s}(),ml:"4px"})]})]})})})})}return N}()},34026:function(L,r,n){"use strict";r.__esModule=!0,r.PdaPainter=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=r.PdaPainter=function(){function k(p,l){var c=(0,a.useBackend)(l),f=c.data,u=f.has_pda;return(0,e.createComponentVNode)(2,o.Window,{width:510,height:505,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:u?(0,e.createComponentVNode)(2,y):(0,e.createComponentVNode)(2,N)})})}return k}(),N=function(p,l){var c=(0,a.useBackend)(l),f=c.act;return(0,e.createComponentVNode)(2,t.Section,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,grow:!0,textAlign:"center",align:"center",color:"silver",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"download",size:5,mb:"10px"}),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Button,{width:"160px",textAlign:"center",content:"Insert PDA",onClick:function(){function u(){return f("insert_pda")}return u}()})]})})})},y=function(p,l){var c=(0,a.useBackend)(l),f=c.act,u=c.data,i=u.pda_colors;return(0,e.createComponentVNode)(2,t.Stack,{fill:!0,horizontal:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,S)}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,t.Table,{className:"PdaPainter__list",children:Object.keys(i).map(function(s){return(0,e.createComponentVNode)(2,t.Table.Row,{onClick:function(){function d(){return f("choose_pda",{selectedPda:s})}return d}(),children:[(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,children:(0,e.createVNode)(1,"img",null,null,1,{src:"data:image/png;base64,"+i[s][0],style:{"vertical-align":"middle",width:"32px",margin:"0px","margin-left":"0px","-ms-interpolation-mode":"nearest-neighbor"}})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:s})]},s)})})})})]})},S=function(p,l){var c=(0,a.useBackend)(l),f=c.act,u=c.data,i=u.current_appearance,s=u.preview_appearance;return(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Current PDA",children:[(0,e.createVNode)(1,"img",null,null,1,{src:"data:image/jpeg;base64,"+i,style:{"vertical-align":"middle",width:"160px",margin:"0px","margin-left":"0px","-ms-interpolation-mode":"nearest-neighbor"}}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"eject",content:"Eject",color:"green",onClick:function(){function d(){return f("eject_pda")}return d}()}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"paint-roller",content:"Paint PDA",onClick:function(){function d(){return f("paint_pda")}return d}()})]}),(0,e.createComponentVNode)(2,t.Section,{title:"Preview",children:(0,e.createVNode)(1,"img",null,null,1,{src:"data:image/jpeg;base64,"+s,style:{"vertical-align":"middle",width:"160px",margin:"0px","margin-left":"0px","-ms-interpolation-mode":"nearest-neighbor"}})})]})}},81378:function(L,r,n){"use strict";r.__esModule=!0,r.PersonalCrafting=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=r.PersonalCrafting=function(){function S(k,p){var l=(0,a.useBackend)(p),c=l.act,f=l.data,u=f.busy,i=f.category,s=f.display_craftable_only,d=f.display_compact,h=f.prev_cat,v=f.next_cat,g=f.subcategory,C=f.prev_subcat,V=f.next_subcat;return(0,e.createComponentVNode)(2,o.Window,{width:700,height:800,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[!!u&&(0,e.createComponentVNode)(2,t.Dimmer,{fontSize:"32px",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"cog",spin:1})," Crafting..."]}),(0,e.createComponentVNode)(2,t.Section,{title:i,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{content:"Show Craftable Only",icon:s?"check-square-o":"square-o",selected:s,onClick:function(){function b(){return c("toggle_recipes")}return b}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Compact Mode",icon:d?"check-square-o":"square-o",selected:d,onClick:function(){function b(){return c("toggle_compact")}return b}()})],4),children:[(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Button,{content:h,icon:"arrow-left",onClick:function(){function b(){return c("backwardCat")}return b}()}),(0,e.createComponentVNode)(2,t.Button,{content:v,icon:"arrow-right",onClick:function(){function b(){return c("forwardCat")}return b}()})]}),g&&(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Button,{content:C,icon:"arrow-left",onClick:function(){function b(){return c("backwardSubCat")}return b}()}),(0,e.createComponentVNode)(2,t.Button,{content:V,icon:"arrow-right",onClick:function(){function b(){return c("forwardSubCat")}return b}()})]}),d?(0,e.createComponentVNode)(2,N):(0,e.createComponentVNode)(2,y)]})]})})}return S}(),N=function(k,p){var l=(0,a.useBackend)(p),c=l.act,f=l.data,u=f.display_craftable_only,i=f.can_craft,s=f.cant_craft;return(0,e.createComponentVNode)(2,t.Box,{mt:1,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[i.map(function(d){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:d.name,children:[(0,e.createComponentVNode)(2,t.Button,{icon:"hammer",content:"Craft",onClick:function(){function h(){return c("make",{make:d.ref})}return h}()}),d.catalyst_text&&(0,e.createComponentVNode)(2,t.Button,{tooltip:d.catalyst_text,content:"Catalysts",color:"transparent"}),(0,e.createComponentVNode)(2,t.Button,{tooltip:d.req_text,content:"Requirements",color:"transparent"}),d.tool_text&&(0,e.createComponentVNode)(2,t.Button,{tooltip:d.tool_text,content:"Tools",color:"transparent"})]},d.name)}),!u&&s.map(function(d){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:d.name,children:[(0,e.createComponentVNode)(2,t.Button,{icon:"hammer",content:"Craft",disabled:!0}),d.catalyst_text&&(0,e.createComponentVNode)(2,t.Button,{tooltip:d.catalyst_text,content:"Catalysts",color:"transparent"}),(0,e.createComponentVNode)(2,t.Button,{tooltip:d.req_text,content:"Requirements",color:"transparent"}),d.tool_text&&(0,e.createComponentVNode)(2,t.Button,{tooltip:d.tool_text,content:"Tools",color:"transparent"})]},d.name)})]})})},y=function(k,p){var l=(0,a.useBackend)(p),c=l.act,f=l.data,u=f.display_craftable_only,i=f.can_craft,s=f.cant_craft;return(0,e.createComponentVNode)(2,t.Box,{mt:1,children:[i.map(function(d){return(0,e.createComponentVNode)(2,t.Section,{title:d.name,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"hammer",content:"Craft",onClick:function(){function h(){return c("make",{make:d.ref})}return h}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[d.catalyst_text&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Catalysts",children:d.catalyst_text}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Requirements",children:d.req_text}),d.tool_text&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Tools",children:d.tool_text})]})},d.name)}),!u&&s.map(function(d){return(0,e.createComponentVNode)(2,t.Section,{title:d.name,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"hammer",content:"Craft",disabled:!0}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[d.catalyst_text&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Catalysts",children:d.catalyst_text}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Requirements",children:d.req_text}),d.tool_text&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Tools",children:d.tool_text})]})},d.name)})]})}},58792:function(L,r,n){"use strict";r.__esModule=!0,r.Photocopier=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=r.Photocopier=function(){function S(k,p){var l=(0,a.useBackend)(p),c=l.act,f=l.data;return(0,e.createComponentVNode)(2,o.Window,{width:400,height:440,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Section,{title:"Photocopier",color:"silver",children:[(0,e.createComponentVNode)(2,t.Stack,{mb:1,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:12,children:"Copies:"}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:"2em",bold:!0,children:f.copynumber}),(0,e.createComponentVNode)(2,t.Stack.Item,{float:"right",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"minus",textAlign:"center",content:"",onClick:function(){function u(){return c("minus")}return u}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"plus",textAlign:"center",content:"",onClick:function(){function u(){return c("add")}return u}()})]})]}),(0,e.createComponentVNode)(2,t.Stack,{mb:2,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:12,children:"Toner:"}),(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,children:f.toner})]}),(0,e.createComponentVNode)(2,t.Stack,{mb:1,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:12,children:"Inserted Document:"}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",disabled:!f.copyitem&&!f.mob,content:f.copyitem?f.copyitem:f.mob?f.mob+"'s ass!":"document",onClick:function(){function u(){return c("removedocument")}return u}()})})]}),(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:12,children:"Inserted Folder:"}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",disabled:!f.folder,content:f.folder?f.folder:"folder",onClick:function(){function u(){return c("removefolder")}return u}()})})]})]}),(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,N)}),(0,e.createComponentVNode)(2,y)]})})})}return S}(),N=function(k,p){var l=(0,a.useBackend)(p),c=l.act,f=l.data,u=f.issilicon;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"copy",float:"center",textAlign:"center",content:"Copy",onClick:function(){function i(){return c("copy")}return i}()}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"file-import",float:"center",textAlign:"center",content:"Scan",onClick:function(){function i(){return c("scandocument")}return i}()}),!!u&&(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"file",color:"green",float:"center",textAlign:"center",content:"Print Text",onClick:function(){function i(){return c("ai_text")}return i}()}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"image",color:"green",float:"center",textAlign:"center",content:"Print Image",onClick:function(){function i(){return c("ai_pic")}return i}()})],4)],0)},y=function(k,p){var l=(0,a.useBackend)(p),c=l.act,f=l.data;return(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Scanned Files",children:f.files.map(function(u){return(0,e.createComponentVNode)(2,t.Section,{title:u.name,buttons:(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"print",content:"Print",disabled:f.toner<=0,onClick:function(){function i(){return c("filecopy",{uid:u.uid})}return i}()}),(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"trash-alt",content:"Delete",color:"bad",onClick:function(){function i(){return c("deletefile",{uid:u.uid})}return i}()})]})},u.name)})})}},45642:function(L,r,n){"use strict";r.__esModule=!0,r.Photocopier220=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=n(50640),N=n(74041),y=n(78234);function S(f,u){var i=typeof Symbol!="undefined"&&f[Symbol.iterator]||f["@@iterator"];if(i)return(i=i.call(f)).next.bind(i);if(Array.isArray(f)||(i=k(f))||u&&f&&typeof f.length=="number"){i&&(f=i);var s=0;return function(){return s>=f.length?{done:!0}:{done:!1,value:f[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.")}function k(f,u){if(f){if(typeof f=="string")return p(f,u);var i=Object.prototype.toString.call(f).slice(8,-1);if(i==="Object"&&f.constructor&&(i=f.constructor.name),i==="Map"||i==="Set")return Array.from(f);if(i==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i))return p(f,u)}}function p(f,u){(u==null||u>f.length)&&(u=f.length);for(var i=0,s=new Array(u);if?this.substring(0,f)+"...":this};var l=function(u,i){i===void 0&&(i="");var s=(0,y.createSearch)(i,function(d){return d.altername});return(0,N.flow)([(0,m.filter)(function(d){return d==null?void 0:d.altername}),i&&(0,m.filter)(s),(0,m.sortBy)(function(d){return d.id})])(u)},c=r.Photocopier220=function(){function f(u,i){for(var s=(0,a.useBackend)(i),d=s.act,h=s.data,v=h.copies,g=h.maxcopies,C=(0,a.useLocalState)(i,"searchText",""),V=C[0],b=C[1],B=l((0,m.sortBy)(function(P){return P.category})(h.forms||[]),V),I=[],w=S(B),T;!(T=w()).done;){var A=T.value;I.includes(A.category)||I.push(A.category)}var x=(0,a.useLocalState)(i,"number",0),E=x[0],M=x[1],j;return h.category===""?j=B:j=B.filter(function(P){return P.category===h.category}),(0,e.createComponentVNode)(2,o.Window,{width:550,height:575,theme:h.ui_theme,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{basis:"40%",children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Section,{title:"\u0421\u0442\u0430\u0442\u0443\u0441",children:[(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"50%",mt:.3,color:"grey",children:"\u0417\u0430\u0440\u044F\u0434 \u0442\u043E\u043D\u0435\u0440\u0430:"}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:"50%",children:(0,e.createComponentVNode)(2,t.ProgressBar,{minValue:0,maxValue:30,value:h.toner})})]}),(0,e.createComponentVNode)(2,t.Stack,{mt:1,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"50%",mb:.3,color:"grey",children:"\u0424\u043E\u0440\u043C\u0430:"}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:"50%",textAlign:"center",bold:!0,children:h.form_id===""?"\u041D\u0435 \u0432\u044B\u0431\u0440\u0430\u043D\u0430":h.form_id})]}),(0,e.createComponentVNode)(2,t.Stack,{children:(0,e.createComponentVNode)(2,t.Stack.Item,{width:"100%",mt:1,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",disabled:!h.copyitem&&!h.mob,icon:h.copyitem||h.mob?"eject":"times",content:h.copyitem?h.copyitem:h.mob?"\u0416\u043E\u043F\u0430 "+h.mob+"!":"\u0421\u043B\u043E\u0442 \u0434\u043B\u044F \u0434\u043E\u043A\u0443\u043C\u0435\u043D\u0442\u0430",onClick:function(){function P(){return d("removedocument")}return P}()})})}),(0,e.createComponentVNode)(2,t.Stack,{children:(0,e.createComponentVNode)(2,t.Stack.Item,{width:"100%",mt:"3px",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",disabled:!h.folder,icon:h.folder?"eject":"times",content:h.folder?h.folder:"\u0421\u043B\u043E\u0442 \u0434\u043B\u044F \u043F\u0430\u043F\u043A\u0438",onClick:function(){function P(){return d("removefolder")}return P}()})})})]}),(0,e.createComponentVNode)(2,t.Section,{title:"\u0423\u043F\u0440\u0430\u0432\u043B\u0435\u043D\u0438\u0435",children:[(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,width:"100%",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"print",disabled:h.toner===0||h.form===null,content:"\u041F\u0435\u0447\u0430\u0442\u044C",onClick:function(){function P(){return d("print_form")}return P}()})}),!!h.isAI&&(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,width:"100%",ml:"5px",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"image",disabled:h.toner<5,content:"\u0424\u043E\u0442\u043E",tooltip:"\u0420\u0430\u0441\u043F\u0435\u0447\u0430\u0442\u0430\u0442\u044C \u0444\u043E\u0442\u043E \u0441 \u0411\u0430\u0437\u044B \u0414\u0430\u043D\u043D\u044B\u0445",onClick:function(){function P(){return d("ai_pic")}return P}()})})]}),(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,width:"100%",mt:"3px",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"copy",content:"\u041A\u043E\u043F\u0438\u044F",disabled:h.toner===0||!h.copyitem&&!h.mob,onClick:function(){function P(){return d("copy")}return P}()})}),!!h.isAI&&(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,width:"100%",ml:"5px",mt:"3px",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"i-cursor",content:"\u0422\u0435\u043A\u0441\u0442",tooltip:"\u0420\u0430\u0441\u043F\u0435\u0447\u0430\u0442\u0430\u0442\u044C \u0441\u0432\u043E\u0439 \u0442\u0435\u043A\u0441\u0442",disabled:h.toner===0,onClick:function(){function P(){return d("ai_text")}return P}()})})]}),(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{mr:1.5,mt:1.2,width:"50%",color:"grey",children:"\u041A\u043E\u043B\u0438\u0447\u0435\u0441\u0442\u0432\u043E:"}),(0,e.createComponentVNode)(2,t.Slider,{mt:.75,width:"50%",animated:!0,minValue:1,maxValue:g,value:v,stepPixelSize:10,onChange:function(){function P(R,D){return d("copies",{new:D})}return P}()})]})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,mt:0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"\u0411\u044E\u0440\u043E\u043A\u0440\u0430\u0442\u0438\u044F",children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,mb:-.5,icon:"chevron-right",color:"transparent",content:"\u0412\u0441\u0435 \u0444\u043E\u0440\u043C\u044B",selected:!h.category,onClick:function(){function P(){return d("choose_category",{category:""})}return P}()})}),I.map(function(P){return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"chevron-right",mb:-.5,color:"transparent",content:P,selected:h.category===P,onClick:function(){function R(){return d("choose_category",{category:P})}return R}()},P)},P)})]})})})]})}),(0,e.createComponentVNode)(2,t.Stack.Item,{basis:"60%",children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:h.category||"\u0412\u0441\u0435 \u0444\u043E\u0440\u043C\u044B",buttons:(0,e.createComponentVNode)(2,t.Input,{mr:18.5,width:"100%",placeholder:"\u041F\u043E\u0438\u0441\u043A \u0444\u043E\u0440\u043C\u044B",onInput:function(){function P(R,D){return b(D)}return P}()}),children:j.map(function(P){return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,mb:.5,color:"transparent",content:P.altername.trimLongStr(37),tooltip:P.altername,selected:h.form_id===P.id,onClick:function(){function R(){return d("choose_form",{path:P.path,id:P.id})}return R}()})},P.path)})})})]})})})}return f}()},27902:function(L,r,n){"use strict";r.__esModule=!0,r.PoolController=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=["tempKey"];function N(p,l){if(p==null)return{};var c={},f=Object.keys(p),u,i;for(i=0;i=0)&&(c[u]=p[u]);return c}var y={scalding:{label:"Scalding",color:"#FF0000",icon:"fa fa-arrow-circle-up",requireEmag:!0},warm:{label:"Warm",color:"#990000",icon:"fa fa-arrow-circle-up"},normal:{label:"Normal",color:null,icon:"fa fa-arrow-circle-right"},cool:{label:"Cool",color:"#009999",icon:"fa fa-arrow-circle-down"},frigid:{label:"Frigid",color:"#00CCCC",icon:"fa fa-arrow-circle-down",requireEmag:!0}},S=function(l,c){var f=l.tempKey,u=N(l,m),i=y[f];if(!i)return null;var s=(0,a.useBackend)(c),d=s.data,h=s.act,v=d.currentTemp,g=i.label,C=i.icon,V=f===v,b=function(){h("setTemp",{temp:f})};return(0,e.normalizeProps)((0,e.createComponentVNode)(2,t.Button,Object.assign({color:"transparent",selected:V,onClick:b},u,{children:[(0,e.createComponentVNode)(2,t.Icon,{name:C}),g]})))},k=r.PoolController=function(){function p(l,c){for(var f=(0,a.useBackend)(c),u=f.data,i=u.emagged,s=u.currentTemp,d=y[s]||y.normal,h=d.label,v=d.color,g=[],C=0,V=Object.entries(y);C50?"battery-half":"battery-quarter")||v==="C"&&"bolt"||v==="F"&&"battery-full"||v==="M"&&"slash",color:v==="N"&&(g>50?"yellow":"red")||v==="C"&&"yellow"||v==="F"&&"green"||v==="M"&&"orange"}),(0,e.createComponentVNode)(2,S.Box,{inline:!0,width:"36px",textAlign:"right",children:(0,o.toFixed)(g)+"%"})],4)};i.defaultHooks=m.pureComponentHooks;var s=function(h){var v,g,C=h.status;switch(C){case"AOn":v=!0,g=!0;break;case"AOff":v=!0,g=!1;break;case"On":v=!1,g=!0;break;case"Off":v=!1,g=!1;break}var V=(g?"On":"Off")+(" ["+(v?"auto":"manual")+"]");return(0,e.createComponentVNode)(2,S.ColorBox,{color:g?"good":"bad",content:v?void 0:"M",title:V})};s.defaultHooks=m.pureComponentHooks},27262:function(L,r,n){"use strict";r.__esModule=!0,r.PrisonerImplantManager=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(91097),m=n(99665),N=n(68159),y=n(27527),S=n(45493),k=r.PrisonerImplantManager=function(){function p(l,c){var f=(0,a.useBackend)(c),u=f.act,i=f.data,s=i.loginState,d=i.prisonerInfo,h=i.chemicalInfo,v=i.trackingInfo,g;if(!s.logged_in)return(0,e.createComponentVNode)(2,S.Window,{theme:"security",width:500,height:850,children:(0,e.createComponentVNode)(2,S.Window.Content,{children:(0,e.createComponentVNode)(2,y.LoginScreen)})});var C=[1,5,10];return(0,e.createComponentVNode)(2,S.Window,{theme:"security",width:500,height:850,children:[(0,e.createComponentVNode)(2,m.ComplexModal),(0,e.createComponentVNode)(2,S.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,N.LoginInfo),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Prisoner Points Manager System",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Prisoner",children:(0,e.createComponentVNode)(2,t.Button,{icon:d.name?"eject":"id-card",selected:d.name,content:d.name?d.name:"-----",tooltip:d.name?"Eject ID":"Insert ID",onClick:function(){function V(){return u("id_card")}return V}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Points",children:[d.points!==null?d.points:"-/-",(0,e.createComponentVNode)(2,t.Button,{ml:2,icon:"minus-square",disabled:d.points===null,content:"Reset",onClick:function(){function V(){return u("reset_points")}return V}()})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Point Goal",children:[d.goal!==null?d.goal:"-/-",(0,e.createComponentVNode)(2,t.Button,{ml:2,icon:"pen",disabled:d.goal===null,content:"Edit",onClick:function(){function V(){return(0,m.modalOpen)(c,"set_points")}return V}()})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{children:(0,e.createVNode)(1,"box",null,[(0,e.createTextVNode)("1 minute of prison time should roughly equate to 150 points."),(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("Sentences should not exceed 5000 points."),(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("Permanent prisoners should not be given a point goal."),(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("Prisoners who meet their point goal will be able to automatically access their locker and return to the station using the shuttle.")],4,{hidden:d.goal===null})})]})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Tracking Implants",children:v.map(function(V){return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{p:1,backgroundColor:"rgba(255, 255, 255, 0.05)",children:[(0,e.createComponentVNode)(2,t.Box,{bold:!0,children:["Subject: ",V.subject]}),(0,e.createComponentVNode)(2,t.Box,{children:[" ",(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Location",children:V.location}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Health",children:V.health}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Prisoner",children:(0,e.createComponentVNode)(2,t.Button,{icon:"exclamation-triangle",content:"Warn",tooltip:"Broadcast a message to this poor sod",onClick:function(){function b(){return(0,m.modalOpen)(c,"warn",{uid:V.uid})}return b}()})})]})]},V.subject)]}),(0,e.createVNode)(1,"br")],4)})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Chemical Implants",children:h.map(function(V){return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{p:1,backgroundColor:"rgba(255, 255, 255, 0.05)",children:[(0,e.createComponentVNode)(2,t.Box,{bold:!0,children:["Subject: ",V.name]}),(0,e.createComponentVNode)(2,t.Box,{children:[" ",(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,o.LabeledList,{children:(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Remaining Reagents",children:V.volume})}),C.map(function(b){return(0,e.createComponentVNode)(2,t.Button,{mt:2,disabled:V.volumef;return(0,e.createComponentVNode)(2,o.Stack,{className:"PrizeCounter__Item",children:[(0,e.createComponentVNode)(2,o.Stack.Item,{lineHeight:"0",align:"center",children:(0,e.createVNode)(1,"div",(0,a.classes)(["prize_counter64x64",g.imageID]))}),(0,e.createComponentVNode)(2,o.Stack.Item,{width:"100%",children:(0,e.createComponentVNode)(2,o.Stack,{vertical:!0,textAlign:"center",children:[(0,e.createComponentVNode)(2,o.Stack.Item,{bold:!0,mt:1,children:g.name}),(0,e.createComponentVNode)(2,o.Stack.Divider),(0,e.createComponentVNode)(2,o.Stack.Item,{mb:1,children:g.desc})]})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{className:(0,a.classes)(["PrizeCounter__BuyButton",C&&"PrizeCounter__BuyButton--disabled"]),icon:"ticket",content:g.cost,tooltip:C?"Not enough tickets.":null,tooltipPosition:"top-end",onClick:function(){function V(){return!C&&l("purchase",{purchase:g.itemID})}return V}()})})]},g.name)})})})})})})}return y}()},87963:function(L,r,n){"use strict";r.__esModule=!0,r.RCD=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=n(99665),N=n(57842),y=r.RCD=function(){function u(i,s){return(0,e.createComponentVNode)(2,o.Window,{width:480,height:670,children:[(0,e.createComponentVNode)(2,m.ComplexModal),(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,S),(0,e.createComponentVNode)(2,k),(0,e.createComponentVNode)(2,l),(0,e.createComponentVNode)(2,c)]})})]})}return u}(),S=function(i,s){var d=(0,a.useBackend)(s),h=d.data,v=h.matter,g=h.max_matter,C=g*.7,V=g*.25;return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Matter Storage",children:(0,e.createComponentVNode)(2,t.ProgressBar,{ranges:{good:[C,1/0],average:[V,C],bad:[-1/0,V]},value:v,maxValue:g,children:(0,e.createComponentVNode)(2,t.Stack.Item,{textAlign:"center",children:v+" / "+g+" units"})})})})},k=function(){return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Construction Type",children:(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,p,{mode_type:"Floors and Walls"}),(0,e.createComponentVNode)(2,p,{mode_type:"Airlocks"}),(0,e.createComponentVNode)(2,p,{mode_type:"Windows"}),(0,e.createComponentVNode)(2,p,{mode_type:"Deconstruction"})]})})})},p=function(i,s){var d=(0,a.useBackend)(s),h=d.act,v=d.data,g=i.mode_type,C=v.mode;return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,color:"transparent",content:g,selected:C===g?1:0,onClick:function(){function V(){return h("mode",{mode:g})}return V}()})})},l=function(i,s){var d=(0,a.useBackend)(s),h=d.act,v=d.data,g=v.door_name,C=v.electrochromic,V=v.airlock_glass;return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Airlock Settings",children:(0,e.createComponentVNode)(2,t.Stack,{textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,color:"transparent",icon:"pen-alt",content:(0,e.createFragment)([(0,e.createTextVNode)("Rename: "),(0,e.createVNode)(1,"b",null,g,0)],0),onClick:function(){function b(){return(0,m.modalOpen)(s,"renameAirlock")}return b}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:V===1&&(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:C?"toggle-on":"toggle-off",content:"Electrochromic",selected:C,onClick:function(){function b(){return h("electrochromic")}return b}()})})]})})})},c=function(i,s){var d=(0,a.useBackend)(s),h=d.act,v=d.data,g=v.tab,C=v.locked,V=v.one_access,b=v.selected_accesses,B=v.regions;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Stack.Item,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Tabs,{fluid:!0,children:[(0,e.createComponentVNode)(2,t.Tabs.Tab,{icon:"cog",selected:g===1,onClick:function(){function I(){return h("set_tab",{tab:1})}return I}(),children:"Airlock Types"}),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:g===2,icon:"list",onClick:function(){function I(){return h("set_tab",{tab:2})}return I}(),children:"Airlock Access"})]})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:g===1?(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Types",children:(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,f,{check_number:0})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,f,{check_number:1})})]})}):g===2&&C?(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Access",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"lock-open",content:"Unlock",onClick:function(){function I(){return h("set_lock",{new_lock:"unlock"})}return I}()}),children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,textAlign:"center",align:"center",color:"label",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"lock",size:"5",mb:3}),(0,e.createVNode)(1,"br"),"Airlock access selection is currently locked."]})})}):(0,e.createComponentVNode)(2,N.AccessList,{sectionButtons:(0,e.createComponentVNode)(2,t.Button,{icon:"lock",content:"Lock",onClick:function(){function I(){return h("set_lock",{new_lock:"lock"})}return I}()}),usedByRcd:1,rcdButtons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:V,content:"One",onClick:function(){function I(){return h("set_one_access",{access:"one"})}return I}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:!V,width:4,content:"All",onClick:function(){function I(){return h("set_one_access",{access:"all"})}return I}()})],4),accesses:B,selectedList:b,accessMod:function(){function I(w){return h("set",{access:w})}return I}(),grantAll:function(){function I(){return h("grant_all")}return I}(),denyAll:function(){function I(){return h("clear_all")}return I}(),grantDep:function(){function I(w){return h("grant_region",{region:w})}return I}(),denyDep:function(){function I(w){return h("deny_region",{region:w})}return I}()})})],4)},f=function(i,s){for(var d=(0,a.useBackend)(s),h=d.act,v=d.data,g=v.door_types_ui_list,C=v.door_type,V=i.check_number,b=[],B=0;B0?"envelope-open-text":"envelope",onClick:function(){function B(){return h("setScreen",{setScreen:6})}return B}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{mt:1,children:[(0,e.createComponentVNode)(2,t.Button,{fluid:!0,lineHeight:3,color:"translucent",content:"Request Assistance",icon:"hand-paper",onClick:function(){function B(){return h("setScreen",{setScreen:1})}return B}()}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{fluid:!0,lineHeight:3,color:"translucent",content:"Request Supplies",icon:"box",onClick:function(){function B(){return h("setScreen",{setScreen:2})}return B}()}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,lineHeight:3,color:"translucent",content:"Request Secondary Goal",icon:"clipboard-list",onClick:function(){function B(){return h("setScreen",{setScreen:11})}return B}()}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,lineHeight:3,color:"translucent",content:"Relay Anonymous Information",icon:"comment",onClick:function(){function B(){return h("setScreen",{setScreen:3})}return B}()})]})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{mt:1,children:(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{fluid:!0,lineHeight:3,color:"translucent",content:"Print Shipping Label",icon:"tag",onClick:function(){function B(){return h("setScreen",{setScreen:9})}return B}()}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,lineHeight:3,color:"translucent",content:"View Shipping Logs",icon:"clipboard-list",onClick:function(){function B(){return h("setScreen",{setScreen:10})}return B}()})]})}),!!C&&(0,e.createComponentVNode)(2,t.Stack.Item,{mt:1,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,lineHeight:3,color:"translucent",content:"Send Station-Wide Announcement",icon:"bullhorn",onClick:function(){function B(){return h("setScreen",{setScreen:8})}return B}()})})]})})},y=function(i,s){var d=(0,a.useBackend)(s),h=d.act,v=d.data,g=v.department,C=[],V;switch(i.purpose){case"ASSISTANCE":C=v.assist_dept,V="Request assistance from another department";break;case"SUPPLIES":C=v.supply_dept,V="Request supplies from another department";break;case"INFO":C=v.info_dept,V="Relay information to another department";break}return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:V,buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Back",icon:"arrow-left",onClick:function(){function b(){return h("setScreen",{setScreen:0})}return b}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:C.filter(function(b){return b!==g}).map(function(b){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:b,textAlign:"right",className:"candystripe",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Message",icon:"envelope",onClick:function(){function B(){return h("writeInput",{write:b,priority:"1"})}return B}()}),(0,e.createComponentVNode)(2,t.Button,{content:"High Priority",icon:"exclamation-circle",onClick:function(){function B(){return h("writeInput",{write:b,priority:"2"})}return B}()})]},b)})})})})},S=function(i,s){var d=(0,a.useBackend)(s),h=d.act,v=d.data,g;switch(i.type){case"SUCCESS":g="Message sent successfully";break;case"FAIL":g="Request supplies from another department";break}return(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:g,buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Back",icon:"arrow-left",onClick:function(){function C(){return h("setScreen",{setScreen:0})}return C}()})})},k=function(i,s){var d=(0,a.useBackend)(s),h=d.act,v=d.data,g,C;switch(i.type){case"MESSAGES":g=v.message_log,C="Message Log";break;case"SHIPPING":g=v.shipping_log,C="Shipping label print log";break}return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:C,buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Back",icon:"arrow-left",onClick:function(){function V(){return h("setScreen",{setScreen:0})}return V}()}),children:g.map(function(V){return(0,e.createComponentVNode)(2,t.Box,{textAlign:"left",children:[V.map(function(b,B){return(0,e.createVNode)(1,"div",null,b,0,null,B)}),(0,e.createVNode)(1,"hr")]},V)})})})},p=function(i,s){var d=(0,a.useBackend)(s),h=d.act,v=d.data,g=v.recipient,C=v.message,V=v.msgVerified,b=v.msgStamped;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Message Authentication",buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Back",icon:"arrow-left",onClick:function(){function B(){return h("setScreen",{setScreen:0})}return B}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Recipient",children:g}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Message",children:C}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Validated by",color:"green",children:V}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Stamped by",color:"blue",children:b})]})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",content:"Send Message",icon:"envelope",onClick:function(){function B(){return h("department",{department:g})}return B}()})})})],4)},l=function(i,s){var d=(0,a.useBackend)(s),h=d.act,v=d.data,g=v.message,C=v.announceAuth;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Station-Wide Announcement",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{content:"Back",icon:"arrow-left",onClick:function(){function V(){return h("setScreen",{setScreen:0})}return V}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Edit Message",icon:"edit",onClick:function(){function V(){return h("writeAnnouncement")}return V}()})],4),children:g})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{children:[C?(0,e.createComponentVNode)(2,t.Box,{textAlign:"center",color:"green",children:"ID verified. Authentication accepted."}):(0,e.createComponentVNode)(2,t.Box,{textAlign:"center",color:"label",children:"Swipe your ID card to authenticate yourself"}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,mt:2,textAlign:"center",content:"Send Announcement",icon:"bullhorn",disabled:!(C&&g),onClick:function(){function V(){return h("sendAnnouncement")}return V}()})]})})],4)},c=function(i,s){var d=(0,a.useBackend)(s),h=d.act,v=d.data,g=v.shipDest,C=v.msgVerified,V=v.ship_dept;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Stack.Item,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Section,{title:"Print Shipping Label",buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Back",icon:"arrow-left",onClick:function(){function b(){return h("setScreen",{setScreen:0})}return b}()}),children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Destination",children:g}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Validated by",children:C})]}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,mt:1,textAlign:"center",content:"Print Label",icon:"print",disabled:!(g&&C),onClick:function(){function b(){return h("printLabel")}return b}()})]})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Destinations",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:V.map(function(b){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:b,textAlign:"right",className:"candystripe",children:(0,e.createComponentVNode)(2,t.Button,{content:g===b?"Selected":"Select",selected:g===b,onClick:function(){function B(){return h("shipSelect",{shipSelect:b})}return B}()})},b)})})})})],4)},f=function(i,s){var d=(0,a.useBackend)(s),h=d.act,v=d.data,g=v.secondaryGoalAuth,C=v.secondaryGoalEnabled;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Request Secondary Goal",buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Back",icon:"arrow-left",onClick:function(){function V(){return h("setScreen",{setScreen:0})}return V}()})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{children:[C?g?(0,e.createComponentVNode)(2,t.Box,{textAlign:"center",color:"green",children:"ID verified. Authentication accepted."}):(0,e.createComponentVNode)(2,t.Box,{textAlign:"center",color:"label",children:"Swipe your ID card to authenticate yourself"}):(0,e.createComponentVNode)(2,t.Box,{textAlign:"center",color:"label",children:"Complete your current goal first!"}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,mt:2,textAlign:"center",content:"Request Secondary Goal",icon:"clipboard-list",disabled:!(g&&C),onClick:function(){function V(){return h("requestSecondaryGoal")}return V}()})]})})],4)}},89641:function(L,r,n){"use strict";r.__esModule=!0,r.SUBMENU=r.RndConsole=r.MENU=void 0;var e=n(96524),a=n(17899),t=n(45493),o=n(24674),m=n(3422),N=r.MENU={MAIN:0,LEVELS:1,DISK:2,DESTROY:3,LATHE:4,IMPRINTER:5,SETTINGS:6},y=r.SUBMENU={MAIN:0,DISK_COPY:1,LATHE_CATEGORY:1,LATHE_MAT_STORAGE:2,LATHE_CHEM_STORAGE:3,SETTINGS_DEVICES:1},S=r.RndConsole=function(){function k(p,l){var c=(0,a.useBackend)(l),f=c.data,u=f.wait_message;return(0,e.createComponentVNode)(2,t.Window,{width:800,height:550,children:(0,e.createComponentVNode)(2,t.Window.Content,{children:(0,e.createComponentVNode)(2,o.Box,{className:"RndConsole",children:[(0,e.createComponentVNode)(2,m.RndNavbar),(0,e.createComponentVNode)(2,m.RndRoute,{menu:N.MAIN,render:function(){function i(){return(0,e.createComponentVNode)(2,m.MainMenu)}return i}()}),(0,e.createComponentVNode)(2,m.RndRoute,{menu:N.LEVELS,render:function(){function i(){return(0,e.createComponentVNode)(2,m.CurrentLevels)}return i}()}),(0,e.createComponentVNode)(2,m.RndRoute,{menu:N.DISK,render:function(){function i(){return(0,e.createComponentVNode)(2,m.DataDiskMenu)}return i}()}),(0,e.createComponentVNode)(2,m.RndRoute,{menu:N.DESTROY,render:function(){function i(){return(0,e.createComponentVNode)(2,m.DeconstructionMenu)}return i}()}),(0,e.createComponentVNode)(2,m.RndRoute,{menu:function(){function i(s){return s===N.LATHE||s===N.IMPRINTER}return i}(),render:function(){function i(){return(0,e.createComponentVNode)(2,m.LatheMenu)}return i}()}),(0,e.createComponentVNode)(2,m.RndRoute,{menu:N.SETTINGS,render:function(){function i(){return(0,e.createComponentVNode)(2,m.SettingsMenu)}return i}()}),u?(0,e.createComponentVNode)(2,o.Box,{className:"RndConsole__Overlay",children:(0,e.createComponentVNode)(2,o.Box,{className:"RndConsole__Overlay__Wrapper",children:(0,e.createComponentVNode)(2,o.NoticeBox,{color:"black",children:u})})}):null]})})})}return k}()},19348:function(L,r,n){"use strict";r.__esModule=!0,r.CurrentLevels=void 0;var e=n(96524),a=n(17899),t=n(24674),o=r.CurrentLevels=function(){function m(N,y){var S=(0,a.useBackend)(y),k=S.data,p=k.tech_levels;return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createVNode)(1,"h3",null,"Current Research Levels:",16),p.map(function(l,c){var f=l.name,u=l.level,i=l.desc;return(0,e.createComponentVNode)(2,t.Box,{children:[c>0?(0,e.createComponentVNode)(2,t.Divider):null,(0,e.createComponentVNode)(2,t.Box,{children:f}),(0,e.createComponentVNode)(2,t.Box,{children:["* Level: ",u]}),(0,e.createComponentVNode)(2,t.Box,{children:["* Summary: ",i]})]},f)})]})}return m}()},338:function(L,r,n){"use strict";r.__esModule=!0,r.DataDiskMenu=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(3422),m=n(89641),N="design",y="tech",S=function(s,d){var h=(0,a.useBackend)(d),v=h.data,g=h.act,C=v.disk_data;return C?(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Name",children:C.name}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Level",children:C.level}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Description",children:C.desc})]}),(0,e.createComponentVNode)(2,t.Box,{mt:"10px",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Upload to Database",icon:"arrow-up",onClick:function(){function V(){return g("updt_tech")}return V}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Clear Disk",icon:"trash",onClick:function(){function V(){return g("clear_tech")}return V}()}),(0,e.createComponentVNode)(2,l)]})]}):null},k=function(s,d){var h=(0,a.useBackend)(d),v=h.data,g=h.act,C=v.disk_data;if(!C)return null;var V=C.name,b=C.lathe_types,B=C.materials,I=b.join(", ");return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Name",children:V}),I?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Lathe Types",children:I}):null,(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Required Materials"})]}),B.map(function(w){return(0,e.createComponentVNode)(2,t.Box,{children:["- ",(0,e.createVNode)(1,"span",null,w.name,0,{style:{"text-transform":"capitalize"}})," x ",w.amount]},w.name)}),(0,e.createComponentVNode)(2,t.Box,{mt:"10px",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Upload to Database",icon:"arrow-up",onClick:function(){function w(){return g("updt_design")}return w}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Clear Disk",icon:"trash",onClick:function(){function w(){return g("clear_design")}return w}()}),(0,e.createComponentVNode)(2,l)]})]})},p=function(s,d){var h=(0,a.useBackend)(d),v=h.data,g=v.disk_type;return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Box,{children:"This disk is empty."}),(0,e.createComponentVNode)(2,t.Box,{mt:"10px",children:[(0,e.createComponentVNode)(2,o.RndNavButton,{submenu:m.SUBMENU.DISK_COPY,icon:"arrow-down",content:g===y?"Load Tech to Disk":"Load Design to Disk"}),(0,e.createComponentVNode)(2,l)]})]})},l=function(s,d){var h=(0,a.useBackend)(d),v=h.data,g=h.act,C=v.disk_type;return C?(0,e.createComponentVNode)(2,t.Button,{content:"Eject Disk",icon:"eject",onClick:function(){function V(){var b=C===y?"eject_tech":"eject_design";g(b)}return V}()}):null},c=function(s,d){var h=(0,a.useBackend)(d),v=h.data,g=v.disk_data,C=v.disk_type,V=function(){if(!g)return(0,e.createComponentVNode)(2,p);switch(C){case N:return(0,e.createComponentVNode)(2,k);case y:return(0,e.createComponentVNode)(2,S);default:return null}};return(0,e.createComponentVNode)(2,t.Section,{title:"Data Disk Contents",children:V()})},f=function(s,d){var h=(0,a.useBackend)(d),v=h.data,g=h.act,C=v.disk_type,V=v.to_copy;return(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.Box,{overflowY:"auto",overflowX:"hidden",maxHeight:"450px",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:V.sort(function(b,B){return b.name.localeCompare(B.name)}).map(function(b){var B=b.name,I=b.id;return(0,e.createComponentVNode)(2,t.LabeledList.Item,{noColon:!0,label:B,children:(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-down",content:"Copy to Disk",onClick:function(){function w(){C===y?g("copy_tech",{id:I}):g("copy_design",{id:I})}return w}()})},I)})})})})},u=r.DataDiskMenu=function(){function i(s,d){var h=(0,a.useBackend)(d),v=h.data,g=v.disk_type;return g?(0,e.createFragment)([(0,e.createComponentVNode)(2,o.RndRoute,{submenu:m.SUBMENU.MAIN,render:function(){function C(){return(0,e.createComponentVNode)(2,c)}return C}()}),(0,e.createComponentVNode)(2,o.RndRoute,{submenu:m.SUBMENU.DISK_COPY,render:function(){function C(){return(0,e.createComponentVNode)(2,f)}return C}()})],4):null}return i}()},90785:function(L,r,n){"use strict";r.__esModule=!0,r.DeconstructionMenu=void 0;var e=n(96524),a=n(17899),t=n(24674),o=r.DeconstructionMenu=function(){function m(N,y){var S=(0,a.useBackend)(y),k=S.data,p=S.act,l=k.loaded_item,c=k.linked_destroy;return c?l?(0,e.createComponentVNode)(2,t.Section,{noTopPadding:!0,title:"Deconstruction Menu",children:[(0,e.createComponentVNode)(2,t.Box,{mt:"10px",children:["Name: ",l.name]}),(0,e.createComponentVNode)(2,t.Box,{mt:"10px",children:(0,e.createVNode)(1,"h3",null,"Origin Tech:",16)}),(0,e.createComponentVNode)(2,t.LabeledList,{children:l.origin_tech.map(function(f){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"* "+f.name,children:[f.object_level," ",f.current_level?(0,e.createFragment)([(0,e.createTextVNode)("(Current: "),f.current_level,(0,e.createTextVNode)(")")],0):null]},f.name)})}),(0,e.createComponentVNode)(2,t.Box,{mt:"10px",children:(0,e.createVNode)(1,"h3",null,"Options:",16)}),(0,e.createComponentVNode)(2,t.Button,{content:"Deconstruct Item",icon:"unlink",onClick:function(){function f(){p("deconstruct")}return f}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Eject Item",icon:"eject",onClick:function(){function f(){p("eject_item")}return f}()})]}):(0,e.createComponentVNode)(2,t.Section,{title:"Deconstruction Menu",children:"No item loaded. Standing by..."}):(0,e.createComponentVNode)(2,t.Box,{children:"NO DESTRUCTIVE ANALYZER LINKED TO CONSOLE"})}return m}()},34492:function(L,r,n){"use strict";r.__esModule=!0,r.LatheCategory=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(3422),m=r.LatheCategory=function(){function N(y,S){var k=(0,a.useBackend)(S),p=k.data,l=k.act,c=p.category,f=p.matching_designs,u=p.menu,i=u===4,s=i?"build":"imprint";return(0,e.createComponentVNode)(2,t.Section,{title:c,children:[(0,e.createComponentVNode)(2,o.LatheMaterials),(0,e.createComponentVNode)(2,t.Table,{className:"RndConsole__LatheCategory__MatchingDesigns",children:f.map(function(d){var h=d.id,v=d.name,g=d.can_build,C=d.materials;return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"print",content:v,disabled:g<1,onClick:function(){function V(){return l(s,{id:h,amount:1})}return V}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:g>=5?(0,e.createComponentVNode)(2,t.Button,{content:"x5",onClick:function(){function V(){return l(s,{id:h,amount:5})}return V}()}):null}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:g>=10?(0,e.createComponentVNode)(2,t.Button,{content:"x10",onClick:function(){function V(){return l(s,{id:h,amount:10})}return V}()}):null}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:C.map(function(V){return(0,e.createFragment)([" | ",(0,e.createVNode)(1,"span",V.is_red?"color-red":null,[V.amount,(0,e.createTextVNode)(" "),V.name],0)],0)})})]},h)})})]})}return N}()},84275:function(L,r,n){"use strict";r.__esModule=!0,r.LatheChemicalStorage=void 0;var e=n(96524),a=n(17899),t=n(24674),o=r.LatheChemicalStorage=function(){function m(N,y){var S=(0,a.useBackend)(y),k=S.data,p=S.act,l=k.loaded_chemicals,c=k.menu===4;return(0,e.createComponentVNode)(2,t.Section,{title:"Chemical Storage",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Purge All",icon:"trash",onClick:function(){function f(){var u=c?"disposeallP":"disposeallI";p(u)}return f}()}),(0,e.createComponentVNode)(2,t.LabeledList,{children:l.map(function(f){var u=f.volume,i=f.name,s=f.id;return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"* "+u+" of "+i,children:(0,e.createComponentVNode)(2,t.Button,{content:"Purge",icon:"trash",onClick:function(){function d(){var h=c?"disposeP":"disposeI";p(h,{id:s})}return d}()})},s)})})]})}return m}()},12638:function(L,r,n){"use strict";r.__esModule=!0,r.LatheMainMenu=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(3422),m=r.LatheMainMenu=function(){function N(y,S){var k=(0,a.useBackend)(S),p=k.data,l=k.act,c=p.menu,f=p.categories,u=c===4?"Protolathe":"Circuit Imprinter";return(0,e.createComponentVNode)(2,t.Section,{title:u+" Menu",children:[(0,e.createComponentVNode)(2,o.LatheMaterials),(0,e.createComponentVNode)(2,o.LatheSearch),(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,t.Flex,{wrap:"wrap",children:f.map(function(i){return(0,e.createComponentVNode)(2,t.Flex,{style:{"flex-basis":"50%","margin-bottom":"6px"},children:(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-right",content:i,onClick:function(){function s(){l("setCategory",{category:i})}return s}()})},i)})})]})}return N}()},89004:function(L,r,n){"use strict";r.__esModule=!0,r.LatheMaterialStorage=void 0;var e=n(96524),a=n(17899),t=n(24674),o=r.LatheMaterialStorage=function(){function m(N,y){var S=(0,a.useBackend)(y),k=S.data,p=S.act,l=k.loaded_materials;return(0,e.createComponentVNode)(2,t.Section,{className:"RndConsole__LatheMaterialStorage",title:"Material Storage",children:(0,e.createComponentVNode)(2,t.Table,{children:l.map(function(c){var f=c.id,u=c.amount,i=c.name,s=function(){function g(C){var V=k.menu===4?"lathe_ejectsheet":"imprinter_ejectsheet";p(V,{id:f,amount:C})}return g}(),d=Math.floor(u/2e3),h=u<1,v=d===1?"":"s";return(0,e.createComponentVNode)(2,t.Table.Row,{className:h?"color-grey":"color-yellow",children:[(0,e.createComponentVNode)(2,t.Table.Cell,{minWidth:"210px",children:["* ",u," of ",i]}),(0,e.createComponentVNode)(2,t.Table.Cell,{minWidth:"110px",children:["(",d," sheet",v,")"]}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:u>=2e3?(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{content:"1x",icon:"eject",onClick:function(){function g(){return s(1)}return g}()}),(0,e.createComponentVNode)(2,t.Button,{content:"C",icon:"eject",onClick:function(){function g(){return s("custom")}return g}()}),u>=2e3*5?(0,e.createComponentVNode)(2,t.Button,{content:"5x",icon:"eject",onClick:function(){function g(){return s(5)}return g}()}):null,(0,e.createComponentVNode)(2,t.Button,{content:"All",icon:"eject",onClick:function(){function g(){return s(50)}return g}()})],0):null})]},f)})})})}return m}()},73856:function(L,r,n){"use strict";r.__esModule=!0,r.LatheMaterials=void 0;var e=n(96524),a=n(17899),t=n(24674),o=r.LatheMaterials=function(){function m(N,y){var S=(0,a.useBackend)(y),k=S.data,p=k.total_materials,l=k.max_materials,c=k.max_chemicals,f=k.total_chemicals;return(0,e.createComponentVNode)(2,t.Box,{className:"RndConsole__LatheMaterials",mb:"10px",children:(0,e.createComponentVNode)(2,t.Table,{width:"auto",children:[(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Material Amount:"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:p}),l?(0,e.createComponentVNode)(2,t.Table.Cell,{children:" / "+l}):null]}),(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Chemical Amount:"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:f}),c?(0,e.createComponentVNode)(2,t.Table.Cell,{children:" / "+c}):null]})]})})}return m}()},75955:function(L,r,n){"use strict";r.__esModule=!0,r.LatheMenu=void 0;var e=n(96524),a=n(17899),t=n(78345),o=n(3422),m=n(24674),N=n(89641),y=r.LatheMenu=function(){function S(k,p){var l=(0,a.useBackend)(p),c=l.data,f=c.menu,u=c.linked_lathe,i=c.linked_imprinter;return f===4&&!u?(0,e.createComponentVNode)(2,m.Box,{children:"NO PROTOLATHE LINKED TO CONSOLE"}):f===5&&!i?(0,e.createComponentVNode)(2,m.Box,{children:"NO CIRCUIT IMPRITER LINKED TO CONSOLE"}):(0,e.createComponentVNode)(2,m.Box,{children:[(0,e.createComponentVNode)(2,t.RndRoute,{submenu:N.SUBMENU.MAIN,render:function(){function s(){return(0,e.createComponentVNode)(2,o.LatheMainMenu)}return s}()}),(0,e.createComponentVNode)(2,t.RndRoute,{submenu:N.SUBMENU.LATHE_CATEGORY,render:function(){function s(){return(0,e.createComponentVNode)(2,o.LatheCategory)}return s}()}),(0,e.createComponentVNode)(2,t.RndRoute,{submenu:N.SUBMENU.LATHE_MAT_STORAGE,render:function(){function s(){return(0,e.createComponentVNode)(2,o.LatheMaterialStorage)}return s}()}),(0,e.createComponentVNode)(2,t.RndRoute,{submenu:N.SUBMENU.LATHE_CHEM_STORAGE,render:function(){function s(){return(0,e.createComponentVNode)(2,o.LatheChemicalStorage)}return s}()})]})}return S}()},72880:function(L,r,n){"use strict";r.__esModule=!0,r.LatheSearch=void 0;var e=n(96524),a=n(17899),t=n(24674),o=r.LatheSearch=function(){function m(N,y){var S=(0,a.useBackend)(y),k=S.act;return(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Input,{placeholder:"Search...",onEnter:function(){function p(l,c){return k("search",{to_search:c})}return p}()})})}return m}()},62306:function(L,r,n){"use strict";r.__esModule=!0,r.MainMenu=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(3422),m=n(89641),N=r.MainMenu=function(){function y(S,k){var p=(0,a.useBackend)(k),l=p.data,c=l.disk_type,f=l.linked_destroy,u=l.linked_lathe,i=l.linked_imprinter,s=l.tech_levels;return(0,e.createComponentVNode)(2,t.Section,{title:"Main Menu",children:[(0,e.createComponentVNode)(2,t.Flex,{className:"RndConsole__MainMenu__Buttons",direction:"column",align:"flex-start",children:[(0,e.createComponentVNode)(2,o.RndNavButton,{disabled:!c,menu:m.MENU.DISK,submenu:m.SUBMENU.MAIN,icon:"save",content:"Disk Operations"}),(0,e.createComponentVNode)(2,o.RndNavButton,{disabled:!f,menu:m.MENU.DESTROY,submenu:m.SUBMENU.MAIN,icon:"unlink",content:"Destructive Analyzer Menu"}),(0,e.createComponentVNode)(2,o.RndNavButton,{disabled:!u,menu:m.MENU.LATHE,submenu:m.SUBMENU.MAIN,icon:"print",content:"Protolathe Menu"}),(0,e.createComponentVNode)(2,o.RndNavButton,{disabled:!i,menu:m.MENU.IMPRINTER,submenu:m.SUBMENU.MAIN,icon:"print",content:"Circuit Imprinter Menu"}),(0,e.createComponentVNode)(2,o.RndNavButton,{menu:m.MENU.SETTINGS,submenu:m.SUBMENU.MAIN,icon:"cog",content:"Settings"})]}),(0,e.createComponentVNode)(2,t.Box,{mt:"12px"}),(0,e.createVNode)(1,"h3",null,"Current Research Levels:",16),(0,e.createComponentVNode)(2,t.LabeledList,{children:s.map(function(d){var h=d.name,v=d.level;return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:h,children:v},h)})})]})}return y}()},99941:function(L,r,n){"use strict";r.__esModule=!0,r.RndNavButton=void 0;var e=n(96524),a=n(17899),t=n(24674),o=r.RndNavButton=function(){function m(N,y){var S=N.icon,k=N.children,p=N.disabled,l=N.content,c=(0,a.useBackend)(y),f=c.data,u=c.act,i=f.menu,s=f.submenu,d=i,h=s;return N.menu!==null&&N.menu!==void 0&&(d=N.menu),N.submenu!==null&&N.submenu!==void 0&&(h=N.submenu),(0,e.createComponentVNode)(2,t.Button,{content:l,icon:S,disabled:p,onClick:function(){function v(){u("nav",{menu:d,submenu:h})}return v}(),children:k})}return m}()},24448:function(L,r,n){"use strict";r.__esModule=!0,r.RndNavbar=void 0;var e=n(96524),a=n(3422),t=n(24674),o=n(89641),m=r.RndNavbar=function(){function N(){return(0,e.createComponentVNode)(2,t.Box,{className:"RndConsole__RndNavbar",children:[(0,e.createComponentVNode)(2,a.RndRoute,{menu:function(){function y(S){return S!==o.MENU.MAIN}return y}(),render:function(){function y(){return(0,e.createComponentVNode)(2,a.RndNavButton,{menu:o.MENU.MAIN,submenu:o.SUBMENU.MAIN,icon:"reply",content:"Main Menu"})}return y}()}),(0,e.createComponentVNode)(2,a.RndRoute,{submenu:function(){function y(S){return S!==o.SUBMENU.MAIN}return y}(),render:function(){function y(){return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,a.RndRoute,{menu:o.MENU.DISK,render:function(){function S(){return(0,e.createComponentVNode)(2,a.RndNavButton,{submenu:o.SUBMENU.MAIN,icon:"reply",content:"Disk Operations Menu"})}return S}()}),(0,e.createComponentVNode)(2,a.RndRoute,{menu:o.MENU.LATHE,render:function(){function S(){return(0,e.createComponentVNode)(2,a.RndNavButton,{submenu:o.SUBMENU.MAIN,icon:"reply",content:"Protolathe Menu"})}return S}()}),(0,e.createComponentVNode)(2,a.RndRoute,{menu:o.MENU.IMPRINTER,render:function(){function S(){return(0,e.createComponentVNode)(2,a.RndNavButton,{submenu:o.SUBMENU.MAIN,icon:"reply",content:"Circuit Imprinter Menu"})}return S}()}),(0,e.createComponentVNode)(2,a.RndRoute,{menu:o.MENU.SETTINGS,render:function(){function S(){return(0,e.createComponentVNode)(2,a.RndNavButton,{submenu:o.SUBMENU.MAIN,icon:"reply",content:"Settings Menu"})}return S}()})]})}return y}()}),(0,e.createComponentVNode)(2,a.RndRoute,{menu:function(){function y(S){return S===o.MENU.LATHE||S===o.MENU.IMPRINTER}return y}(),submenu:o.SUBMENU.MAIN,render:function(){function y(){return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,a.RndNavButton,{submenu:o.SUBMENU.LATHE_MAT_STORAGE,icon:"arrow-up",content:"Material Storage"}),(0,e.createComponentVNode)(2,a.RndNavButton,{submenu:o.SUBMENU.LATHE_CHEM_STORAGE,icon:"arrow-up",content:"Chemical Storage"})]})}return y}()})]})}return N}()},78345:function(L,r,n){"use strict";r.__esModule=!0,r.RndRoute=void 0;var e=n(17899),a=r.RndRoute=function(){function t(o,m){var N=o.render,y=(0,e.useBackend)(m),S=y.data,k=S.menu,p=S.submenu,l=function(){function f(u,i){return u==null?!0:typeof u=="function"?u(i):u===i}return f}(),c=l(o.menu,k)&&l(o.submenu,p);return c?N():null}return t}()},56454:function(L,r,n){"use strict";r.__esModule=!0,r.SettingsMenu=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(3422),m=n(89641),N=r.SettingsMenu=function(){function y(S,k){var p=(0,a.useBackend)(k),l=p.data,c=p.act,f=l.sync,u=l.admin,i=l.linked_destroy,s=l.linked_lathe,d=l.linked_imprinter;return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,o.RndRoute,{submenu:m.SUBMENU.MAIN,render:function(){function h(){return(0,e.createComponentVNode)(2,t.Section,{title:"Settings",children:(0,e.createComponentVNode)(2,t.Flex,{direction:"column",align:"flex-start",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Sync Database with Network",icon:"sync",disabled:!f,onClick:function(){function v(){c("sync")}return v}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Connect to Research Network",icon:"plug",disabled:f,onClick:function(){function v(){c("togglesync")}return v}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:!f,icon:"unlink",content:"Disconnect from Research Network",onClick:function(){function v(){c("togglesync")}return v}()}),(0,e.createComponentVNode)(2,o.RndNavButton,{disabled:!f,content:"Device Linkage Menu",icon:"link",menu:m.MENU.SETTINGS,submenu:m.SUBMENU.SETTINGS_DEVICES}),u===1?(0,e.createComponentVNode)(2,t.Button,{icon:"exclamation",content:"[ADMIN] Maximize Research Levels",onClick:function(){function v(){return c("maxresearch")}return v}()}):null]})})}return h}()}),(0,e.createComponentVNode)(2,o.RndRoute,{submenu:m.SUBMENU.SETTINGS_DEVICES,render:function(){function h(){return(0,e.createComponentVNode)(2,t.Section,{title:"Device Linkage Menu",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"link",content:"Re-sync with Nearby Devices",onClick:function(){function v(){return c("find_device")}return v}()}),(0,e.createComponentVNode)(2,t.Box,{mt:"5px",children:(0,e.createVNode)(1,"h3",null,"Linked Devices:",16)}),(0,e.createComponentVNode)(2,t.LabeledList,{children:[i?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"* Destructive Analyzer",children:(0,e.createComponentVNode)(2,t.Button,{icon:"unlink",content:"Unlink",onClick:function(){function v(){return c("disconnect",{item:"destroy"})}return v}()})}):(0,e.createComponentVNode)(2,t.LabeledList.Item,{noColon:!0,label:"* No Destructive Analyzer Linked"}),s?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"* Protolathe",children:(0,e.createComponentVNode)(2,t.Button,{icon:"unlink",content:"Unlink",onClick:function(){function v(){c("disconnect",{item:"lathe"})}return v}()})}):(0,e.createComponentVNode)(2,t.LabeledList.Item,{noColon:!0,label:"* No Protolathe Linked"}),d?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"* Circuit Imprinter",children:(0,e.createComponentVNode)(2,t.Button,{icon:"unlink",content:"Unlink",onClick:function(){function v(){return c("disconnect",{item:"imprinter"})}return v}()})}):(0,e.createComponentVNode)(2,t.LabeledList.Item,{noColon:!0,label:"* No Circuit Imprinter Linked"})]})]})}return h}()})]})}return y}()},3422:function(L,r,n){"use strict";r.__esModule=!0,r.SettingsMenu=r.RndRoute=r.RndNavbar=r.RndNavButton=r.MainMenu=r.LatheSearch=r.LatheMenu=r.LatheMaterials=r.LatheMaterialStorage=r.LatheMainMenu=r.LatheChemicalStorage=r.LatheCategory=r.DeconstructionMenu=r.DataDiskMenu=r.CurrentLevels=void 0;var e=n(19348);r.CurrentLevels=e.CurrentLevels;var a=n(338);r.DataDiskMenu=a.DataDiskMenu;var t=n(90785);r.DeconstructionMenu=t.DeconstructionMenu;var o=n(34492);r.LatheCategory=o.LatheCategory;var m=n(84275);r.LatheChemicalStorage=m.LatheChemicalStorage;var N=n(12638);r.LatheMainMenu=N.LatheMainMenu;var y=n(73856);r.LatheMaterials=y.LatheMaterials;var S=n(89004);r.LatheMaterialStorage=S.LatheMaterialStorage;var k=n(75955);r.LatheMenu=k.LatheMenu;var p=n(72880);r.LatheSearch=p.LatheSearch;var l=n(62306);r.MainMenu=l.MainMenu;var c=n(24448);r.RndNavbar=c.RndNavbar;var f=n(99941);r.RndNavButton=f.RndNavButton;var u=n(78345);r.RndRoute=u.RndRoute;var i=n(56454);r.SettingsMenu=i.SettingsMenu},71123:function(L,r,n){"use strict";r.__esModule=!0,r.RobotSelfDiagnosis=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=n(78234),N=function(k,p){var l=k/p;return l<=.2?"good":l<=.5?"average":"bad"},y=r.RobotSelfDiagnosis=function(){function S(k,p){var l=(0,a.useBackend)(p),c=l.data,f=c.component_data;return(0,e.createComponentVNode)(2,o.Window,{width:280,height:480,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:f.map(function(u,i){return(0,e.createComponentVNode)(2,t.Section,{title:(0,m.capitalize)(u.name),children:u.installed<=0?(0,e.createComponentVNode)(2,t.NoticeBox,{m:-.5,height:3.5,color:"red",style:{"font-style":"normal"},children:(0,e.createComponentVNode)(2,t.Flex,{height:"100%",children:(0,e.createComponentVNode)(2,t.Flex.Item,{grow:1,textAlign:"center",align:"center",color:"#e8e8e8",children:u.installed===-1?"Destroyed":"Missing"})})}):(0,e.createComponentVNode)(2,t.Flex,{children:[(0,e.createComponentVNode)(2,t.Flex.Item,{width:"72%",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Brute Damage",color:N(u.brute_damage,u.max_damage),children:u.brute_damage}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Burn Damage",color:N(u.electronic_damage,u.max_damage),children:u.electronic_damage})]})}),(0,e.createComponentVNode)(2,t.Flex.Item,{width:"50%",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Powered",color:u.powered?"good":"bad",children:u.powered?"Yes":"No"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Enabled",color:u.status?"good":"bad",children:u.status?"Yes":"No"})]})})]})},i)})})})}return S}()},98951:function(L,r,n){"use strict";r.__esModule=!0,r.RoboticsControlConsole=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=r.RoboticsControlConsole=function(){function y(S,k){var p=(0,a.useBackend)(k),l=p.act,c=p.data,f=c.can_hack,u=c.safety,i=c.show_lock_all,s=c.cyborgs,d=s===void 0?[]:s;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:460,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[!!i&&(0,e.createComponentVNode)(2,t.Section,{title:"Emergency Lock Down",children:[(0,e.createComponentVNode)(2,t.Button,{icon:u?"lock":"unlock",content:u?"Disable Safety":"Enable Safety",selected:u,onClick:function(){function h(){return l("arm",{})}return h}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"lock",disabled:u,content:"Lock ALL Cyborgs",color:"bad",onClick:function(){function h(){return l("masslock",{})}return h}()})]}),(0,e.createComponentVNode)(2,N,{cyborgs:d,can_hack:f})]})})}return y}(),N=function(S,k){var p=S.cyborgs,l=S.can_hack,c=(0,a.useBackend)(k),f=c.act,u=c.data,i="Detonate";return u.detonate_cooldown>0&&(i+=" ("+u.detonate_cooldown+"s)"),p.length?p.map(function(s){return(0,e.createComponentVNode)(2,t.Section,{title:s.name,buttons:(0,e.createFragment)([!!s.hackable&&!s.emagged&&(0,e.createComponentVNode)(2,t.Button,{icon:"terminal",content:"Hack",color:"bad",onClick:function(){function d(){return f("hackbot",{uid:s.uid})}return d}()}),(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:s.locked_down?"unlock":"lock",color:s.locked_down?"good":"default",content:s.locked_down?"Release":"Lockdown",disabled:!u.auth,onClick:function(){function d(){return f("stopbot",{uid:s.uid})}return d}()}),(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"bomb",content:i,disabled:!u.auth||u.detonate_cooldown>0,color:"bad",onClick:function(){function d(){return f("killbot",{uid:s.uid})}return d}()})],0),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:(0,e.createComponentVNode)(2,t.Box,{color:s.status?"bad":s.locked_down?"average":"good",children:s.status?"Not Responding":s.locked_down?"Locked Down":"Nominal"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Location",children:(0,e.createComponentVNode)(2,t.Box,{children:s.locstring})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Integrity",children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:s.health>50?"good":"bad",value:s.health/100})}),typeof s.charge=="number"&&(0,e.createFragment)([(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cell Charge",children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:s.charge>30?"good":"bad",value:s.charge/100})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cell Capacity",children:(0,e.createComponentVNode)(2,t.Box,{color:s.cell_capacity<3e4?"average":"good",children:s.cell_capacity})})],4)||(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cell",children:(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:"No Power Cell"})}),!!s.is_hacked&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Safeties",children:(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:"DISABLED"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Module",children:s.module}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Master AI",children:(0,e.createComponentVNode)(2,t.Box,{color:s.synchronization?"default":"average",children:s.synchronization||"None"})})]})},s.uid)}):(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No cyborg units detected within access parameters."})}},2289:function(L,r,n){"use strict";r.__esModule=!0,r.Safe=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=r.Safe=function(){function k(p,l){var c=(0,a.useBackend)(l),f=c.act,u=c.data,i=u.dial,s=u.open,d=u.locked,h=u.contents;return(0,e.createComponentVNode)(2,o.Window,{theme:"safe",width:600,height:800,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Box,{className:"Safe--engraving",children:[(0,e.createComponentVNode)(2,N),(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Box,{className:"Safe--engraving--hinge",top:"25%"}),(0,e.createComponentVNode)(2,t.Box,{className:"Safe--engraving--hinge",top:"75%"})]}),(0,e.createComponentVNode)(2,t.Icon,{className:"Safe--engraving--arrow",name:"long-arrow-alt-down",size:"3"}),(0,e.createVNode)(1,"br"),s?(0,e.createComponentVNode)(2,y):(0,e.createComponentVNode)(2,t.Box,{as:"img",className:"Safe--dial",src:"safe_dial.png",style:{transform:"rotate(-"+3.6*i+"deg)","z-index":0}})]}),!s&&(0,e.createComponentVNode)(2,S)]})})}return k}(),N=function(p,l){var c=(0,a.useBackend)(l),f=c.act,u=c.data,i=u.dial,s=u.open,d=u.locked,h=function(g,C){return(0,e.createComponentVNode)(2,t.Button,{disabled:s||C&&!d,icon:"arrow-"+(C?"right":"left"),content:(C?"Right":"Left")+" "+g,iconRight:C,onClick:function(){function V(){return f(C?"turnleft":"turnright",{num:g})}return V}(),style:{"z-index":10}})};return(0,e.createComponentVNode)(2,t.Box,{className:"Safe--dialer",children:[(0,e.createComponentVNode)(2,t.Button,{disabled:d,icon:s?"lock":"lock-open",content:s?"Close":"Open",mb:"0.5rem",onClick:function(){function v(){return f("open")}return v}()}),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Box,{position:"absolute",children:[h(50),h(10),h(1)]}),(0,e.createComponentVNode)(2,t.Box,{className:"Safe--dialer--right",position:"absolute",right:"5px",children:[h(1,!0),h(10,!0),h(50,!0)]}),(0,e.createComponentVNode)(2,t.Box,{className:"Safe--dialer--number",children:i})]})},y=function(p,l){var c=(0,a.useBackend)(l),f=c.act,u=c.data,i=u.contents;return(0,e.createComponentVNode)(2,t.Box,{className:"Safe--contents",overflow:"auto",children:i.map(function(s,d){return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{mb:"0.5rem",onClick:function(){function h(){return f("retrieve",{index:d+1})}return h}(),children:[(0,e.createComponentVNode)(2,t.Box,{as:"img",src:s.sprite+".png",verticalAlign:"middle",ml:"-6px",mr:"0.5rem"}),s.name]}),(0,e.createVNode)(1,"br")],4,s)})})},S=function(p,l){return(0,e.createComponentVNode)(2,t.Section,{className:"Safe--help",title:"Safe opening instructions (because you all keep forgetting)",children:[(0,e.createComponentVNode)(2,t.Box,{children:["1. Turn the dial left to the first number.",(0,e.createVNode)(1,"br"),"2. Turn the dial right to the second number.",(0,e.createVNode)(1,"br"),"3. Continue repeating this process for each number, switching between left and right each time.",(0,e.createVNode)(1,"br"),"4. Open the safe."]}),(0,e.createComponentVNode)(2,t.Box,{bold:!0,children:"To lock fully, turn the dial to the left after closing the safe."})]})}},49334:function(L,r,n){"use strict";r.__esModule=!0,r.SatelliteControl=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=r.SatelliteControl=function(){function N(y,S){var k=(0,a.useBackend)(S),p=k.act,l=k.data,c=l.satellites,f=l.notice,u=l.meteor_shield,i=l.meteor_shield_coverage,s=l.meteor_shield_coverage_max,d=l.meteor_shield_coverage_percentage;return(0,e.createComponentVNode)(2,o.Window,{width:475,height:400,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[u&&(0,e.createComponentVNode)(2,t.Section,{title:"Station Shield Coverage",children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:d>=100?"good":"average",value:i,maxValue:s,children:[d," %"]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Satellite Network Control",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[f&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Alert",color:"red",children:l.notice}),c.map(function(h){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"#"+h.id,children:[h.mode," ",(0,e.createComponentVNode)(2,t.Button,{content:h.active?"Deactivate":"Activate",icon:"arrow-circle-right",onClick:function(){function v(){return p("toggle",{id:h.id})}return v}()})]},h.id)})]})})]})})}return N}()},54892:function(L,r,n){"use strict";r.__esModule=!0,r.SecureStorage=void 0;var e=n(96524),a=n(28234),t=n(17899),o=n(24674),m=n(45493),N=n(5126),y=n(68100),S=r.SecureStorage=function(){function c(f,u){return(0,e.createComponentVNode)(2,m.Window,{theme:"securestorage",height:500,width:280,children:(0,e.createComponentVNode)(2,m.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,p)})})})})}return c}(),k=function(f,u){var i=(0,t.useBackend)(u),s=i.act,d=window.event?f.which:f.keyCode;if(d===y.KEY_ENTER){f.preventDefault(),s("keypad",{digit:"E"});return}if(d===y.KEY_ESCAPE){f.preventDefault(),s("keypad",{digit:"C"});return}if(d===y.KEY_BACKSPACE){f.preventDefault(),s("backspace");return}if(d>=y.KEY_0&&d<=y.KEY_9){f.preventDefault(),s("keypad",{digit:d-y.KEY_0});return}if(d>=y.KEY_NUMPAD_0&&d<=y.KEY_NUMPAD_9){f.preventDefault(),s("keypad",{digit:d-y.KEY_NUMPAD_0});return}},p=function(f,u){var i=(0,t.useBackend)(u),s=i.act,d=i.data,h=d.locked,v=d.no_passcode,g=d.emagged,C=d.user_entered_code,V=[["1","2","3"],["4","5","6"],["7","8","9"],["C","0","E"]],b=v?"":h?"bad":"good";return(0,e.createComponentVNode)(2,o.Section,{fill:!0,onKeyDown:function(){function B(I){return k(I,u)}return B}(),children:[(0,e.createComponentVNode)(2,o.Stack.Item,{height:7.3,children:(0,e.createComponentVNode)(2,o.Box,{className:(0,a.classes)(["SecureStorage__displayBox","SecureStorage__displayBox--"+b]),height:"100%",children:g?"ERROR":C})}),(0,e.createComponentVNode)(2,o.Table,{children:V.map(function(B){return(0,e.createComponentVNode)(2,N.TableRow,{children:B.map(function(I){return(0,e.createComponentVNode)(2,N.TableCell,{children:(0,e.createComponentVNode)(2,l,{number:I})},I)})},B[0])})})]})},l=function(f,u){var i=(0,t.useBackend)(u),s=i.act,d=i.data,h=f.number;return(0,e.createComponentVNode)(2,o.Button,{fluid:!0,bold:!0,mb:"6px",content:h,textAlign:"center",fontSize:"60px",lineHeight:1.25,width:"80px",className:(0,a.classes)(["SecureStorage__Button","SecureStorage__Button--keypad","SecureStorage__Button--"+h]),onClick:function(){function v(){return s("keypad",{digit:h})}return v}()})}},56798:function(L,r,n){"use strict";r.__esModule=!0,r.SecurityRecords=void 0;var e=n(96524),a=n(78234),t=n(17899),o=n(24674),m=n(45493),N=n(99665),y=n(68159),S=n(27527),k=n(84537),p={"*Execute*":"execute","*Arrest*":"arrest",Incarcerated:"incarcerated",Parolled:"parolled",Released:"released",Demote:"demote",Search:"search",Monitor:"monitor"},l=function(C,V){(0,N.modalOpen)(C,"edit",{field:V.edit,value:V.value})},c=r.SecurityRecords=function(){function g(C,V){var b=(0,t.useBackend)(V),B=b.act,I=b.data,w=I.loginState,T=I.currentPage,A;if(w.logged_in)T===1?A=(0,e.createComponentVNode)(2,u):T===2&&(A=(0,e.createComponentVNode)(2,d));else return(0,e.createComponentVNode)(2,m.Window,{theme:"security",width:800,height:900,children:(0,e.createComponentVNode)(2,m.Window.Content,{children:(0,e.createComponentVNode)(2,S.LoginScreen)})});return(0,e.createComponentVNode)(2,m.Window,{theme:"security",width:800,height:900,children:[(0,e.createComponentVNode)(2,N.ComplexModal),(0,e.createComponentVNode)(2,m.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,y.LoginInfo),(0,e.createComponentVNode)(2,k.TemporaryNotice),(0,e.createComponentVNode)(2,f),A]})})]})}return g}(),f=function(C,V){var b=(0,t.useBackend)(V),B=b.act,I=b.data,w=I.currentPage,T=I.general;return(0,e.createComponentVNode)(2,o.Stack.Item,{m:0,children:(0,e.createComponentVNode)(2,o.Tabs,{children:[(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"list",selected:w===1,onClick:function(){function A(){return B("page",{page:1})}return A}(),children:"List Records"}),w===2&&T&&!T.empty&&(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"file",selected:w===2,children:["Record: ",T.fields[0].value]})]})})},u=function(C,V){var b=(0,t.useBackend)(V),B=b.act,I=b.data,w=I.records,T=(0,t.useLocalState)(V,"searchText",""),A=T[0],x=T[1],E=(0,t.useLocalState)(V,"sortId","name"),M=E[0],j=E[1],P=(0,t.useLocalState)(V,"sortOrder",!0),R=P[0],D=P[1];return(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,s)}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,mt:.5,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,o.Table,{className:"SecurityRecords__list",children:[(0,e.createComponentVNode)(2,o.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,i,{id:"name",children:"Name"}),(0,e.createComponentVNode)(2,i,{id:"id",children:"ID"}),(0,e.createComponentVNode)(2,i,{id:"rank",children:"Assignment"}),(0,e.createComponentVNode)(2,i,{id:"fingerprint",children:"Fingerprint"}),(0,e.createComponentVNode)(2,i,{id:"status",children:"Criminal Status"})]}),w.filter((0,a.createSearch)(A,function(F){return F.name+"|"+F.id+"|"+F.rank+"|"+F.fingerprint+"|"+F.status})).sort(function(F,W){var _=R?1:-1;return F[M].localeCompare(W[M])*_}).map(function(F){return(0,e.createComponentVNode)(2,o.Table.Row,{className:"SecurityRecords__listRow--"+p[F.status],onClick:function(){function W(){return B("view",{uid_gen:F.uid_gen,uid_sec:F.uid_sec})}return W}(),children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:"user"})," ",F.name]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:F.id}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:F.rank}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:F.fingerprint}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:F.status})]},F.id)})]})})})],4)},i=function(C,V){var b=(0,t.useLocalState)(V,"sortId","name"),B=b[0],I=b[1],w=(0,t.useLocalState)(V,"sortOrder",!0),T=w[0],A=w[1],x=C.id,E=C.children;return(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Button,{color:B!==x&&"transparent",fluid:!0,onClick:function(){function M(){B===x?A(!T):(I(x),A(!0))}return M}(),children:[E,B===x&&(0,e.createComponentVNode)(2,o.Icon,{name:T?"sort-up":"sort-down",ml:"0.25rem;"})]})})})},s=function(C,V){var b=(0,t.useBackend)(V),B=b.act,I=b.data,w=I.isPrinting,T=(0,t.useLocalState)(V,"searchText",""),A=T[0],x=T[1];return(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{ml:"0.25rem",content:"New Record",icon:"plus",onClick:function(){function E(){return B("new_general")}return E}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{disabled:w,icon:w?"spinner":"print",iconSpin:!!w,content:"Print Cell Log",onClick:function(){function E(){return(0,N.modalOpen)(V,"print_cell_log")}return E}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Input,{placeholder:"Search by Name, ID, Assignment, Fingerprint, Status",fluid:!0,onInput:function(){function E(M,j){return x(j)}return E}()})})]})},d=function(C,V){var b=(0,t.useBackend)(V),B=b.act,I=b.data,w=I.isPrinting,T=I.general,A=I.security;return!T||!T.fields?(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"General records lost!"}):(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"General Data",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{disabled:w,icon:w?"spinner":"print",iconSpin:!!w,content:"Print Record",onClick:function(){function x(){return B("print_record")}return x}()}),(0,e.createComponentVNode)(2,o.Button.Confirm,{icon:"trash",tooltip:"WARNING: This will also delete the Security and Medical records associated with this crew member!",tooltipPosition:"bottom-start",content:"Delete Record",onClick:function(){function x(){return B("delete_general")}return x}()})],4),children:(0,e.createComponentVNode)(2,h)})}),!A||!A.fields?(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,color:"bad",children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,title:"Security Data",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"pen",content:"Create New Record",onClick:function(){function x(){return B("new_security")}return x}()}),children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,o.Stack.Item,{bold:!0,grow:!0,textAlign:"center",fontSize:1.75,align:"center",color:"label",children:[(0,e.createComponentVNode)(2,o.Icon.Stack,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:"scroll",size:5,color:"gray"}),(0,e.createComponentVNode)(2,o.Icon,{name:"slash",size:5,color:"red"})]}),(0,e.createVNode)(1,"br"),"Security records lost!"]})})})}):(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"Security Data",buttons:(0,e.createComponentVNode)(2,o.Button.Confirm,{icon:"trash",disabled:A.empty,content:"Delete Record",onClick:function(){function x(){return B("delete_security")}return x}()}),children:(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.LabeledList,{children:A.fields.map(function(x,E){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:x.field,prewrap:!0,children:[(0,a.decodeHtmlEntities)(x.value),!!x.edit&&(0,e.createComponentVNode)(2,o.Button,{icon:"pen",ml:"0.5rem",mb:x.line_break?"1rem":"initial",onClick:function(){function M(){return l(V,x)}return M}()})]},E)})})})})}),(0,e.createComponentVNode)(2,v)],4)],0)},h=function(C,V){var b=(0,t.useBackend)(V),B=b.data,I=B.general;return!I||!I.fields?(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,color:"bad",children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,children:"General records lost!"})})}):(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.LabeledList,{children:I.fields.map(function(w,T){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:w.field,prewrap:!0,children:[(0,a.decodeHtmlEntities)(""+w.value),!!w.edit&&(0,e.createComponentVNode)(2,o.Button,{icon:"pen",ml:"0.5rem",mb:w.line_break?"1rem":"initial",onClick:function(){function A(){return l(V,w)}return A}()})]},T)})})}),!!I.has_photos&&I.photos.map(function(w,T){return(0,e.createComponentVNode)(2,o.Stack.Item,{inline:!0,textAlign:"center",color:"label",ml:0,children:[(0,e.createVNode)(1,"img",null,null,1,{src:w,style:{width:"96px","margin-top":"5rem","margin-bottom":"0.5rem","-ms-interpolation-mode":"nearest-neighbor"}}),(0,e.createVNode)(1,"br"),"Photo #",T+1]},T)})]})},v=function(C,V){var b=(0,t.useBackend)(V),B=b.act,I=b.data,w=I.security;return(0,e.createComponentVNode)(2,o.Stack.Item,{height:"150px",children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"Comments/Log",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"comment",content:"Add Entry",onClick:function(){function T(){return(0,N.modalOpen)(V,"comment_add")}return T}()}),children:w.comments.length===0?(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"No comments found."}):w.comments.map(function(T,A){return(0,e.createComponentVNode)(2,o.Box,{prewrap:!0,children:[(0,e.createComponentVNode)(2,o.Box,{color:"label",inline:!0,children:T.header||"Auto-generated"}),(0,e.createVNode)(1,"br"),T.text||T,(0,e.createComponentVNode)(2,o.Button,{icon:"comment-slash",color:"bad",ml:"0.5rem",onClick:function(){function x(){return B("comment_delete",{id:A+1})}return x}()})]},A)})})})}},59981:function(L,r,n){"use strict";r.__esModule=!0,r.SeedExtractor=void 0;var e=n(96524),a=n(78234),t=n(17899),o=n(24674),m=n(45493),N=n(99665);function y(i,s){var d=typeof Symbol!="undefined"&&i[Symbol.iterator]||i["@@iterator"];if(d)return(d=d.call(i)).next.bind(d);if(Array.isArray(i)||(d=S(i))||s&&i&&typeof i.length=="number"){d&&(i=d);var h=0;return function(){return h>=i.length?{done:!0}:{done:!1,value:i[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.")}function S(i,s){if(i){if(typeof i=="string")return k(i,s);var d=Object.prototype.toString.call(i).slice(8,-1);if(d==="Object"&&i.constructor&&(d=i.constructor.name),d==="Map"||d==="Set")return Array.from(i);if(d==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(d))return k(i,s)}}function k(i,s){(s==null||s>i.length)&&(s=i.length);for(var d=0,h=new Array(s);d=A},v=function(T,A){return T<=A},g=s.split(" "),C=[],V=function(){var T=I.value,A=T.split(":");if(A.length===0)return 0;if(A.length===1)return C.push(function(M){return(M.name+" ("+M.variant+")").toLocaleLowerCase().includes(A[0].toLocaleLowerCase())}),0;if(A.length>2)return{v:function(){function M(j){return!1}return M}()};var x,E=d;if(A[1][A[1].length-1]==="-"?(E=v,x=Number(A[1].substring(0,A[1].length-1))):A[1][A[1].length-1]==="+"?(E=h,x=Number(A[1].substring(0,A[1].length-1))):x=Number(A[1]),isNaN(x))return{v:function(){function M(j){return!1}return M}()};switch(A[0].toLocaleLowerCase()){case"l":case"life":case"lifespan":C.push(function(M){return E(M.lifespan,x)});break;case"e":case"end":case"endurance":C.push(function(M){return E(M.endurance,x)});break;case"m":case"mat":case"maturation":C.push(function(M){return E(M.maturation,x)});break;case"pr":case"prod":case"production":C.push(function(M){return E(M.production,x)});break;case"y":case"yield":C.push(function(M){return E(M.yield,x)});break;case"po":case"pot":case"potency":C.push(function(M){return E(M.potency,x)});break;case"s":case"stock":case"c":case"count":case"a":case"amount":C.push(function(M){return E(M.amount,x)});break;default:return{v:function(){function M(j){return!1}return M}()}}},b,B=y(g),I;!(I=B()).done;)if(b=V(),b!==0&&b)return b.v;return function(w){for(var T=0,A=C;T=1?Number(E):1)}return A}()})]})]})}},33454:function(L,r,n){"use strict";r.__esModule=!0,r.ShuttleConsole=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=r.ShuttleConsole=function(){function N(y,S){var k=(0,a.useBackend)(S),p=k.act,l=k.data;return(0,e.createComponentVNode)(2,o.Window,{width:350,height:150,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Location",children:l.status?l.status:(0,e.createComponentVNode)(2,t.NoticeBox,{color:"red",children:"Shuttle Missing"})}),!!l.shuttle&&(!!l.docking_ports_len&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Send to ",children:l.docking_ports.map(function(c){return(0,e.createComponentVNode)(2,t.Button,{icon:"chevron-right",content:c.name,onClick:function(){function f(){return p("move",{move:c.id})}return f}()},c.name)})})||(0,e.createFragment)([(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",color:"red",children:(0,e.createComponentVNode)(2,t.NoticeBox,{color:"red",children:"Shuttle Locked"})}),!!l.admin_controlled&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Authorization",children:(0,e.createComponentVNode)(2,t.Button,{icon:"exclamation-circle",content:"Request Authorization",disabled:!l.status,onClick:function(){function c(){return p("request")}return c}()})})],0))]})})})})}return N}()},50451:function(L,r,n){"use strict";r.__esModule=!0,r.ShuttleManipulator=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=r.ShuttleManipulator=function(){function k(p,l){var c=(0,a.useLocalState)(l,"tabIndex",0),f=c[0],u=c[1],i=function(){function s(d){switch(d){case 0:return(0,e.createComponentVNode)(2,N);case 1:return(0,e.createComponentVNode)(2,y);case 2:return(0,e.createComponentVNode)(2,S);default:return"WE SHOULDN'T BE HERE!"}}return s}();return(0,e.createComponentVNode)(2,o.Window,{width:650,height:700,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Box,{fillPositionedParent:!0,children:[(0,e.createComponentVNode)(2,t.Tabs,{children:[(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:f===0,onClick:function(){function s(){return u(0)}return s}(),icon:"info-circle",children:"Status"},"Status"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:f===1,onClick:function(){function s(){return u(1)}return s}(),icon:"file-import",children:"Templates"},"Templates"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:f===2,onClick:function(){function s(){return u(2)}return s}(),icon:"tools",children:"Modification"},"Modification")]}),i(f)]})})})}return k}(),N=function(p,l){var c=(0,a.useBackend)(l),f=c.act,u=c.data,i=u.shuttles;return(0,e.createComponentVNode)(2,t.Box,{children:i.map(function(s){return(0,e.createComponentVNode)(2,t.Section,{title:s.name,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"ID",children:s.id}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Shuttle Timer",children:s.timeleft}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Shuttle Mode",children:s.mode}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Shuttle Status",children:s.status}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Actions",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Jump To",icon:"location-arrow",onClick:function(){function d(){return f("jump_to",{type:"mobile",id:s.id})}return d}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Fast Travel",icon:"fast-forward",onClick:function(){function d(){return f("fast_travel",{id:s.id})}return d}()})]})]})},s.name)})})},y=function(p,l){var c=(0,a.useBackend)(l),f=c.act,u=c.data,i=u.templates_tabs,s=u.existing_shuttle,d=u.templates;return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Tabs,{children:i.map(function(h){return(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:h===s.id,icon:"file",onClick:function(){function v(){return f("select_template_category",{cat:h})}return v}(),children:h},h)})}),!!s&&d[s.id].templates.map(function(h){return(0,e.createComponentVNode)(2,t.Section,{title:h.name,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[h.description&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Description",children:h.description}),h.admin_notes&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Admin Notes",children:h.admin_notes}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Actions",children:(0,e.createComponentVNode)(2,t.Button,{content:"Load Template",icon:"download",onClick:function(){function v(){return f("select_template",{shuttle_id:h.shuttle_id})}return v}()})})]})},h.name)})]})},S=function(p,l){var c=(0,a.useBackend)(l),f=c.act,u=c.data,i=u.existing_shuttle,s=u.selected;return(0,e.createComponentVNode)(2,t.Box,{children:[i?(0,e.createComponentVNode)(2,t.Section,{title:"Selected Shuttle: "+i.name,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:i.status}),i.timer&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Timer",children:i.timeleft}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Actions",children:(0,e.createComponentVNode)(2,t.Button,{content:"Jump To",icon:"location-arrow",onClick:function(){function d(){return f("jump_to",{type:"mobile",id:i.id})}return d}()})})]})}):(0,e.createComponentVNode)(2,t.Section,{title:"Selected Shuttle: None"}),s?(0,e.createComponentVNode)(2,t.Section,{title:"Selected Template: "+s.name,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[s.description&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Description",children:s.description}),s.admin_notes&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Admin Notes",children:s.admin_notes}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Actions",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Preview",icon:"eye",onClick:function(){function d(){return f("preview",{shuttle_id:s.shuttle_id})}return d}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Load",icon:"download",onClick:function(){function d(){return f("load",{shuttle_id:s.shuttle_id})}return d}()})]})]})}):(0,e.createComponentVNode)(2,t.Section,{title:"Selected Template: None"})]})}},99050:function(L,r,n){"use strict";r.__esModule=!0,r.Sleeper=void 0;var e=n(96524),a=n(36121),t=n(17899),o=n(24674),m=n(45493),N=[["good","Alive"],["average","Critical"],["bad","DEAD"]],y=[["Resp.","oxyLoss"],["Toxin","toxLoss"],["Brute","bruteLoss"],["Burn","fireLoss"]],S={average:[.25,.5],bad:[.5,1/0]},k=["bad","average","average","good","average","average","bad"],p=r.Sleeper=function(){function d(h,v){var g=(0,t.useBackend)(v),C=g.act,V=g.data,b=V.hasOccupant,B=b?(0,e.createComponentVNode)(2,l):(0,e.createComponentVNode)(2,s);return(0,e.createComponentVNode)(2,m.Window,{width:550,height:760,children:(0,e.createComponentVNode)(2,m.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:B}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,u)})]})})})}return d}(),l=function(h,v){var g=(0,t.useBackend)(v),C=g.act,V=g.data,b=V.occupant;return(0,e.createFragment)([(0,e.createComponentVNode)(2,c),(0,e.createComponentVNode)(2,f),(0,e.createComponentVNode)(2,i)],4)},c=function(h,v){var g=(0,t.useBackend)(v),C=g.act,V=g.data,b=V.occupant,B=V.auto_eject_dead;return(0,e.createComponentVNode)(2,o.Section,{title:"Occupant",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Box,{color:"label",inline:!0,children:"Auto-eject if dead:\xA0"}),(0,e.createComponentVNode)(2,o.Button,{icon:B?"toggle-on":"toggle-off",selected:B,content:B?"On":"Off",onClick:function(){function I(){return C("auto_eject_dead_"+(B?"off":"on"))}return I}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"user-slash",content:"Eject",onClick:function(){function I(){return C("ejectify")}return I}()})],4),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Name",children:b.name}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Health",children:(0,e.createComponentVNode)(2,o.ProgressBar,{min:"0",max:b.maxHealth,value:b.health/b.maxHealth,ranges:{good:[.5,1/0],average:[0,.5],bad:[-1/0,0]},children:(0,a.round)(b.health,0)})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Status",color:N[b.stat][0],children:N[b.stat][1]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Temperature",children:(0,e.createComponentVNode)(2,o.ProgressBar,{min:"0",max:b.maxTemp,value:b.bodyTemperature/b.maxTemp,color:k[b.temperatureSuitability+3],children:[(0,a.round)(b.btCelsius,0),"\xB0C,",(0,a.round)(b.btFaren,0),"\xB0F"]})}),!!b.hasBlood&&(0,e.createFragment)([(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Blood Level",children:(0,e.createComponentVNode)(2,o.ProgressBar,{min:"0",max:b.bloodMax,value:b.bloodLevel/b.bloodMax,ranges:{bad:[-1/0,.6],average:[.6,.9],good:[.6,1/0]},children:[b.bloodPercent,"%, ",b.bloodLevel,"cl"]})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Pulse",verticalAlign:"middle",children:[b.pulse," BPM"]})],4)]})})},f=function(h,v){var g=(0,t.useBackend)(v),C=g.data,V=C.occupant;return(0,e.createComponentVNode)(2,o.Section,{title:"Occupant Damage",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:y.map(function(b,B){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:b[0],children:(0,e.createComponentVNode)(2,o.ProgressBar,{min:"0",max:"100",value:V[b[1]]/100,ranges:S,children:(0,a.round)(V[b[1]],0)},B)},B)})})})},u=function(h,v){var g=(0,t.useBackend)(v),C=g.act,V=g.data,b=V.hasOccupant,B=V.isBeakerLoaded,I=V.beakerMaxSpace,w=V.beakerFreeSpace,T=V.dialysis,A=T&&w>0;return(0,e.createComponentVNode)(2,o.Section,{title:"Dialysis",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{disabled:!B||w<=0||!b,selected:A,icon:A?"toggle-on":"toggle-off",content:A?"Active":"Inactive",onClick:function(){function x(){return C("togglefilter")}return x}()}),(0,e.createComponentVNode)(2,o.Button,{disabled:!B,icon:"eject",content:"Eject",onClick:function(){function x(){return C("removebeaker")}return x}()})],4),children:B?(0,e.createComponentVNode)(2,o.LabeledList,{children:(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Remaining Space",children:(0,e.createComponentVNode)(2,o.ProgressBar,{min:"0",max:I,value:w/I,ranges:{good:[.5,1/0],average:[.25,.5],bad:[-1/0,.25]},children:[w,"u"]})})}):(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"No beaker loaded."})})},i=function(h,v){var g=(0,t.useBackend)(v),C=g.act,V=g.data,b=V.occupant,B=V.chemicals,I=V.maxchem,w=V.amounts;return(0,e.createComponentVNode)(2,o.Section,{title:"Occupant Chemicals",children:B.map(function(T,A){var x="",E;return T.overdosing?(x="bad",E=(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:[(0,e.createComponentVNode)(2,o.Icon,{name:"exclamation-circle"}),"\xA0 Overdosing!"]})):T.od_warning&&(x="average",E=(0,e.createComponentVNode)(2,o.Box,{color:"average",children:[(0,e.createComponentVNode)(2,o.Icon,{name:"exclamation-triangle"}),"\xA0 Close to overdosing"]})),(0,e.createComponentVNode)(2,o.Box,{backgroundColor:"rgba(0, 0, 0, 0.33)",mb:"0.5rem",children:(0,e.createComponentVNode)(2,o.Section,{title:T.title,level:"3",mx:"0",lineHeight:"18px",buttons:E,children:(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.ProgressBar,{min:"0",max:I,value:T.occ_amount/I,color:x,title:"Amount of chemicals currently inside the occupant / Total amount injectable by this machine",mr:"0.5rem",children:[T.pretty_amount,"/",I,"u"]}),w.map(function(M,j){return(0,e.createComponentVNode)(2,o.Button,{disabled:!T.injectable||T.occ_amount+M>I||b.stat===2,icon:"syringe",content:"Inject "+M+"u",title:"Inject "+M+"u of "+T.title+" into the occupant",mb:"0",height:"19px",onClick:function(){function P(){return C("chemical",{chemid:T.id,amount:M})}return P}()},j)})]})})},A)})})},s=function(h,v){return(0,e.createComponentVNode)(2,o.Section,{fill:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,align:"center",color:"label",children:[(0,e.createComponentVNode)(2,o.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,e.createVNode)(1,"br"),"No occupant detected."]})})})}},37763:function(L,r,n){"use strict";r.__esModule=!0,r.SlotMachine=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=r.SlotMachine=function(){function N(y,S){var k=(0,a.useBackend)(S),p=k.act,l=k.data;if(l.money===null)return(0,e.createComponentVNode)(2,o.Window,{width:350,height:90,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:[(0,e.createComponentVNode)(2,t.Box,{children:"Could not scan your card or could not find account!"}),(0,e.createComponentVNode)(2,t.Box,{children:"Please wear or hold your ID and try again."})]})})});var c;return l.plays===1?c=l.plays+" player has tried their luck today!":c=l.plays+" players have tried their luck today!",(0,e.createComponentVNode)(2,o.Window,{width:300,height:151,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:[(0,e.createComponentVNode)(2,t.Box,{lineHeight:2,children:c}),(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Credits Remaining",children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:l.money})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"10 credits to spin",children:(0,e.createComponentVNode)(2,t.Button,{icon:"coins",disabled:l.working,content:l.working?"Spinning...":"Spin",onClick:function(){function f(){return p("spin")}return f}()})})]}),(0,e.createComponentVNode)(2,t.Box,{bold:!0,lineHeight:2,color:l.resultlvl,children:l.result})]})})})}return N}()},26654:function(L,r,n){"use strict";r.__esModule=!0,r.Smartfridge=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=r.Smartfridge=function(){function N(y,S){var k=(0,a.useBackend)(S),p=k.act,l=k.data,c=l.secure,f=l.can_dry,u=l.drying,i=l.contents;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:500,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[!!c&&(0,e.createComponentVNode)(2,t.NoticeBox,{children:"Secure Access: Please have your identification ready."}),(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:f?"Drying rack":"Contents",buttons:!!f&&(0,e.createComponentVNode)(2,t.Button,{width:4,icon:u?"power-off":"times",content:u?"On":"Off",selected:u,onClick:function(){function s(){return p("drying")}return s}()}),children:[!i&&(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,grow:!0,textAlign:"center",align:"center",color:"average",children:[(0,e.createComponentVNode)(2,t.Icon.Stack,{children:[(0,e.createComponentVNode)(2,t.Icon,{name:"cookie-bite",size:5,color:"brown"}),(0,e.createComponentVNode)(2,t.Icon,{name:"slash",size:5,color:"red"})]}),(0,e.createVNode)(1,"br"),"No products loaded."]})}),!!i&&i.slice().sort(function(s,d){return s.display_name.localeCompare(d.display_name)}).map(function(s){return(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"55%",children:s.display_name}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:"25%",children:["(",s.quantity," in stock)"]}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:13,children:[(0,e.createComponentVNode)(2,t.Button,{width:3,icon:"arrow-down",tooltip:"Dispense one.",content:"1",onClick:function(){function d(){return p("vend",{index:s.vend,amount:1})}return d}()}),(0,e.createComponentVNode)(2,t.NumberInput,{width:"40px",minValue:0,value:0,maxValue:s.quantity,step:1,stepPixelSize:3,onChange:function(){function d(h,v){return p("vend",{index:s.vend,amount:v})}return d}()}),(0,e.createComponentVNode)(2,t.Button,{width:4,icon:"arrow-down",content:"All",tooltip:"Dispense all.",tooltipPosition:"bottom-start",onClick:function(){function d(){return p("vend",{index:s.vend,amount:s.quantity})}return d}()})]})]},s)})]})]})})})}return N}()},71124:function(L,r,n){"use strict";r.__esModule=!0,r.Smes=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(92986),m=n(45493),N=1e3,y=r.Smes=function(){function S(k,p){var l=(0,a.useBackend)(p),c=l.act,f=l.data,u=f.capacityPercent,i=f.capacity,s=f.charge,d=f.inputAttempt,h=f.inputting,v=f.inputLevel,g=f.inputLevelMax,C=f.inputAvailable,V=f.outputPowernet,b=f.outputAttempt,B=f.outputting,I=f.outputLevel,w=f.outputLevelMax,T=f.outputUsed,A=u>=100&&"good"||h&&"average"||"bad",x=B&&"good"||s>0&&"average"||"bad";return(0,e.createComponentVNode)(2,m.Window,{width:340,height:345,children:(0,e.createComponentVNode)(2,m.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Section,{title:"Stored Energy",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:u*.01,ranges:{good:[.5,1/0],average:[.15,.5],bad:[-1/0,.15]}})}),(0,e.createComponentVNode)(2,t.Section,{title:"Input",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Charge Mode",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:d?"sync-alt":"times",selected:d,onClick:function(){function E(){return c("tryinput")}return E}(),children:d?"Auto":"Off"}),children:(0,e.createComponentVNode)(2,t.Box,{color:A,children:u>=100&&"Fully Charged"||h&&"Charging"||"Not Charging"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Target Input",children:(0,e.createComponentVNode)(2,t.Stack,{inline:!0,width:"100%",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"fast-backward",disabled:v===0,onClick:function(){function E(){return c("input",{target:"min"})}return E}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"backward",disabled:v===0,onClick:function(){function E(){return c("input",{adjust:-1e4})}return E}()})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Slider,{value:v/N,fillValue:C/N,minValue:0,maxValue:g/N,step:5,stepPixelSize:4,format:function(){function E(M){return(0,o.formatPower)(M*N,1)}return E}(),onChange:function(){function E(M,j){return c("input",{target:j*N})}return E}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"forward",disabled:v===g,onClick:function(){function E(){return c("input",{adjust:1e4})}return E}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",disabled:v===g,onClick:function(){function E(){return c("input",{target:"max"})}return E}()})]})]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Available",children:(0,o.formatPower)(C)})]})}),(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Output",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Output Mode",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:b?"power-off":"times",selected:b,onClick:function(){function E(){return c("tryoutput")}return E}(),children:b?"On":"Off"}),children:(0,e.createComponentVNode)(2,t.Box,{color:x,children:V?B?"Sending":s>0?"Not Sending":"No Charge":"Not Connected"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Target Output",children:(0,e.createComponentVNode)(2,t.Stack,{inline:!0,width:"100%",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"fast-backward",disabled:I===0,onClick:function(){function E(){return c("output",{target:"min"})}return E}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"backward",disabled:I===0,onClick:function(){function E(){return c("output",{adjust:-1e4})}return E}()})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Slider,{value:I/N,minValue:0,maxValue:w/N,step:5,stepPixelSize:4,format:function(){function E(M){return(0,o.formatPower)(M*N,1)}return E}(),onChange:function(){function E(M,j){return c("output",{target:j*N})}return E}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"forward",disabled:I===w,onClick:function(){function E(){return c("output",{adjust:1e4})}return E}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",disabled:I===w,onClick:function(){function E(){return c("output",{target:"max"})}return E}()})]})]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Outputting",children:(0,o.formatPower)(T)})]})})]})})})}return S}()},21786:function(L,r,n){"use strict";r.__esModule=!0,r.SolarControl=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=r.SolarControl=function(){function N(y,S){var k=(0,a.useBackend)(S),p=k.act,l=k.data,c=0,f=1,u=2,i=l.generated,s=l.generated_ratio,d=l.tracking_state,h=l.tracking_rate,v=l.connected_panels,g=l.connected_tracker,C=l.cdir,V=l.direction,b=l.rotating_direction;return(0,e.createComponentVNode)(2,o.Window,{width:490,height:277,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Status",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"sync",content:"Scan for new hardware",onClick:function(){function B(){return p("refresh")}return B}()}),children:(0,e.createComponentVNode)(2,t.Grid,{children:[(0,e.createComponentVNode)(2,t.Grid.Column,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Solar tracker",color:g?"good":"bad",children:g?"OK":"N/A"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Solar panels",color:v>0?"good":"bad",children:v})]})}),(0,e.createComponentVNode)(2,t.Grid.Column,{size:2,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power output",children:(0,e.createComponentVNode)(2,t.ProgressBar,{ranges:{good:[.66,1/0],average:[.33,.66],bad:[-1/0,.33]},minValue:0,maxValue:1,value:s,children:i+" W"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Panel orientation",children:[C,"\xB0 (",V,")"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Tracker rotation",children:[d===u&&(0,e.createComponentVNode)(2,t.Box,{children:" Automated "}),d===f&&(0,e.createComponentVNode)(2,t.Box,{children:[" ",h,"\xB0/h (",b,")"," "]}),d===c&&(0,e.createComponentVNode)(2,t.Box,{children:" Tracker offline "})]})]})})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Controls",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Panel orientation",children:[d!==u&&(0,e.createComponentVNode)(2,t.NumberInput,{unit:"\xB0",step:1,stepPixelSize:1,minValue:0,maxValue:359,value:C,onDrag:function(){function B(I,w){return p("cdir",{cdir:w})}return B}()}),d===u&&(0,e.createComponentVNode)(2,t.Box,{lineHeight:"19px",children:" Automated "})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Tracker status",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"times",content:"Off",selected:d===c,onClick:function(){function B(){return p("track",{track:c})}return B}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"clock-o",content:"Timed",selected:d===f,onClick:function(){function B(){return p("track",{track:f})}return B}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"sync",content:"Auto",selected:d===u,disabled:!g,onClick:function(){function B(){return p("track",{track:u})}return B}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Tracker rotation",children:[d===f&&(0,e.createComponentVNode)(2,t.NumberInput,{unit:"\xB0/h",step:1,stepPixelSize:1,minValue:-7200,maxValue:7200,value:h,format:function(){function B(I){var w=Math.sign(I)>0?"+":"-";return w+Math.abs(I)}return B}(),onDrag:function(){function B(I,w){return p("tdir",{tdir:w})}return B}()}),d===c&&(0,e.createComponentVNode)(2,t.Box,{lineHeight:"19px",children:" Tracker offline "}),d===u&&(0,e.createComponentVNode)(2,t.Box,{lineHeight:"19px",children:" Automated "})]})]})})]})})}return N}()},31202:function(L,r,n){"use strict";r.__esModule=!0,r.SpawnersMenu=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=r.SpawnersMenu=function(){function N(y,S){var k=(0,a.useBackend)(S),p=k.act,l=k.data,c=l.spawners||[];return(0,e.createComponentVNode)(2,o.Window,{width:700,height:600,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Section,{children:c.map(function(f){return(0,e.createComponentVNode)(2,t.Section,{mb:.5,title:f.name+" ("+f.amount_left+" left)",level:2,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{icon:"chevron-circle-right",content:"Jump",onClick:function(){function u(){return p("jump",{ID:f.uids})}return u}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"chevron-circle-right",content:"Spawn",onClick:function(){function u(){return p("spawn",{ID:f.uids})}return u}()})],4),children:[(0,e.createComponentVNode)(2,t.Box,{style:{"white-space":"pre-wrap"},mb:1,fontSize:"16px",children:f.desc}),!!f.fluff&&(0,e.createComponentVNode)(2,t.Box,{style:{"white-space":"pre-wrap"},textColor:"#878787",fontSize:"14px",children:f.fluff}),!!f.important_info&&(0,e.createComponentVNode)(2,t.Box,{style:{"white-space":"pre-wrap"},mt:1,bold:!0,color:"red",fontSize:"18px",children:f.important_info})]},f.name)})})})})}return N}()},84800:function(L,r,n){"use strict";r.__esModule=!0,r.SpecMenu=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=r.SpecMenu=function(){function p(l,c){return(0,e.createComponentVNode)(2,o.Window,{width:1100,height:600,theme:"nologo",children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,N),(0,e.createComponentVNode)(2,y),(0,e.createComponentVNode)(2,S),(0,e.createComponentVNode)(2,k)]})})})}return p}(),N=function(l,c){var f=(0,a.useBackend)(c),u=f.act,i=f.data,s=i.subclasses;return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,basis:"25%",children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Hemomancer",buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Choose",onClick:function(){function d(){return u("hemomancer")}return d}()}),children:[(0,e.createVNode)(1,"h3",null,"Focuses on blood magic and the manipulation of blood around you.",16),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Vampiric claws",16),(0,e.createTextVNode)(": Unlocked at 150 blood, allows you to summon a robust pair of claws that attack rapidly, drain a targets blood, and heal you.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Blood Barrier",16),(0,e.createTextVNode)(": Unlocked at 250 blood, allows you to select two turfs and create a wall between them.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Blood tendrils",16),(0,e.createTextVNode)(": Unlocked at 250 blood, allows you to slow everyone in a targeted 3x3 area after a short delay.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Sanguine pool",16),(0,e.createTextVNode)(": Unlocked at 400 blood, allows you to travel at high speeds for a short duration. Doing this leaves behind blood splatters. You can move through anything but walls and space when doing this.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Predator senses",16),(0,e.createTextVNode)(": Unlocked at 600 blood, allows you to sniff out anyone within the same sector as you.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Blood eruption",16),(0,e.createTextVNode)(": Unlocked at 800 blood, allows you to manipulate all nearby blood splatters, in 4 tiles around you, into spikes that impale anyone stood ontop of them.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Full power",16),(0,e.createComponentVNode)(2,t.Divider),(0,e.createVNode)(1,"b",null,"The blood bringers rite",16),(0,e.createTextVNode)(": When toggled you will rapidly drain the blood of everyone who is nearby and use it to heal yourself slightly and remove any incapacitating effects rapidly.")],4)]})})},y=function(l,c){var f=(0,a.useBackend)(c),u=f.act,i=f.data,s=i.subclasses;return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,basis:"25%",children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Umbrae",buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Choose",onClick:function(){function d(){return u("umbrae")}return d}()}),children:[(0,e.createVNode)(1,"h3",null,"Focuses on darkness, stealth ambushing and mobility.",16),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Cloak of darkness",16),(0,e.createTextVNode)(": Unlocked at 150 blood, when toggled, allows you to become nearly invisible and move rapidly when in dark regions. While active, burn damage is more effective against you.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Shadow anchor",16),(0,e.createTextVNode)(": Unlocked at 250 blood, casting it will create an anchor at the cast location after a short delay. If you then cast the ability again, you are teleported back to the anchor. If you do not cast again within 2 minutes, you will do a fake recall, causing a clone to appear at the anchor and making yourself invisible. It will not teleport you between Z levels.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Shadow snare",16),(0,e.createTextVNode)(": Unlocked at 250 blood, allows you to summon a trap that when crossed blinds and ensnares the victim. This trap is hard to see, but withers in the light.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Dark passage",16),(0,e.createTextVNode)(": Unlocked at 400 blood, allows you to target a turf on screen, you will then teleport to that turf.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Extinguish",16),(0,e.createTextVNode)(": Unlocked at 600 blood, allows you to snuff out nearby electronic light sources and glowshrooms.")],4),(0,e.createVNode)(1,"b",null,"Shadow boxing",16),": Unlocked at 800 blood, sends out shadow clones towards a target, damaging them while you remain in range.",(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Full power",16),(0,e.createComponentVNode)(2,t.Divider),(0,e.createVNode)(1,"b",null,"Eternal darkness",16),(0,e.createTextVNode)(": When toggled, you consume yourself in unholy darkness, only the strongest of lights will be able to see through it. Inside the radius, nearby creatures will freeze and energy projectiles will deal less damage.")],4),(0,e.createVNode)(1,"p",null,"In addition, you also gain permanent X-ray vision.",16)]})})},S=function(l,c){var f=(0,a.useBackend)(c),u=f.act,i=f.data,s=i.subclasses;return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,basis:"25%",children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Gargantua",buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Choose",onClick:function(){function d(){return u("gargantua")}return d}()}),children:[(0,e.createVNode)(1,"h3",null,"Focuses on tenacity and melee damage.",16),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Rejuvenate",16),(0,e.createTextVNode)(": Will heal you at an increased rate based on how much damage you have taken.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Blood swell",16),(0,e.createTextVNode)(": Unlocked at 150 blood, increases your resistance to physical damage, stuns and stamina for 30 seconds. While it is active you cannot fire guns.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Seismic stomp",16),(0,e.createTextVNode)(": Unlocked at 250 blood, allows you to stomp the ground to send out a shockwave, knocking people back.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Blood rush",16),(0,e.createTextVNode)(": Unlocked at 250 blood, gives you a short speed boost when cast.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Blood swell II",16),(0,e.createTextVNode)(": Unlocked at 400 blood, increases all melee damage by 10.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Overwhelming force",16),(0,e.createTextVNode)(": Unlocked at 600 blood, when toggled, if you bump into a door that you do not have access to, it will force it open. In addition, you cannot be pushed or pulled while it is active.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Demonic grasp",16),(0,e.createTextVNode)(": Unlocked at 800 blood, allows you to send out a demonic hand to snare someone. If you are on disarm/grab intent you will push/pull the target, respectively.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Charge",16),(0,e.createTextVNode)(": Unlocked at 800 blood, you gain the ability to charge at a target. Destroying and knocking back pretty much anything you collide with.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Full Power",16),(0,e.createComponentVNode)(2,t.Divider),(0,e.createVNode)(1,"b",null,"Desecrated Duel",16),(0,e.createTextVNode)(": Leap towards a visible enemy, creating an arena upon landing, infusing you with increased regeneration, and granting you resistance to internal damages.")],4)]})})},k=function(l,c){var f=(0,a.useBackend)(c),u=f.act,i=f.data,s=i.subclasses;return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,basis:"25%",children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Dantalion",buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Choose",onClick:function(){function d(){return u("dantalion")}return d}()}),children:[(0,e.createVNode)(1,"h3",null,"Focuses on thralling and illusions.",16),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Enthrall",16),(0,e.createTextVNode)(": Unlocked at 150 blood, Thralls your target to your will, requires you to stand still. Does not work on mindshielded or already enthralled/mindslaved people.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Thrall cap",16),(0,e.createTextVNode)(": You can only thrall a max of 1 person at a time. This can be increased at 400 blood, 600 blood and at full power to a max of 4 thralls.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Thrall commune",16),(0,e.createTextVNode)(": Unlocked at 150 blood, Allows you to talk to your thralls, your thralls can talk back in the same way.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Subspace swap",16),(0,e.createTextVNode)(": Unlocked at 250 blood, allows you to swap positions with a target.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Pacify",16),(0,e.createTextVNode)(": Unlocked at 250 blood, allows you to pacify a target, preventing them from causing harm for 40 seconds.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Decoy",16),(0,e.createTextVNode)(": Unlocked at 400 blood, briefly turn invisible and send out an illusion to fool everyone nearby.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Rally thralls",16),(0,e.createTextVNode)(": Unlocked at 600 blood, removes all incapacitating effects from nearby thralls.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Blood bond",16),(0,e.createTextVNode)(": Unlocked at 800 blood, when cast, all nearby thralls become linked to you. If anyone in the network takes damage, it is shared equally between everyone in the network. If a thrall goes out of range, they will be removed from the network.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Full Power",16),(0,e.createComponentVNode)(2,t.Divider),(0,e.createVNode)(1,"b",null,"Mass Hysteria",16),(0,e.createTextVNode)(": Casts a powerful illusion that blinds and then makes everyone nearby perceive others as random animals.")],4)]})})}},46501:function(L,r,n){"use strict";r.__esModule=!0,r.StationAlertConsoleContent=r.StationAlertConsole=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=r.StationAlertConsole=function(){function y(){return(0,e.createComponentVNode)(2,o.Window,{width:325,height:500,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,N)})})}return y}(),N=r.StationAlertConsoleContent=function(){function y(S,k){var p=(0,a.useBackend)(k),l=p.data,c=l.alarms||[],f=c.Fire||[],u=c.Atmosphere||[],i=c.Power||[];return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{title:"Fire Alarms",children:(0,e.createVNode)(1,"ul",null,[f.length===0&&(0,e.createVNode)(1,"li","color-good","Systems Nominal",16),f.map(function(s){return(0,e.createVNode)(1,"li","color-average",s,0,null,s)})],0)}),(0,e.createComponentVNode)(2,t.Section,{title:"Atmospherics Alarms",children:(0,e.createVNode)(1,"ul",null,[u.length===0&&(0,e.createVNode)(1,"li","color-good","Systems Nominal",16),u.map(function(s){return(0,e.createVNode)(1,"li","color-average",s,0,null,s)})],0)}),(0,e.createComponentVNode)(2,t.Section,{title:"Power Alarms",children:(0,e.createVNode)(1,"ul",null,[i.length===0&&(0,e.createVNode)(1,"li","color-good","Systems Nominal",16),i.map(function(s){return(0,e.createVNode)(1,"li","color-average",s,0,null,s)})],0)})],4)}return y}()},18565:function(L,r,n){"use strict";r.__esModule=!0,r.StationTraitsPanel=void 0;var e=n(96524),a=n(50640),t=n(67765),o=n(17899),m=n(24674),N=n(45493),y=function(l){return l[l.SetupFutureStationTraits=0]="SetupFutureStationTraits",l[l.ViewStationTraits=1]="ViewStationTraits",l}(y||{}),S=function(c,f){var u=(0,o.useBackend)(f),i=u.act,s=u.data,d=s.future_station_traits,h=(0,o.useLocalState)(f,"selectedFutureTrait",null),v=h[0],g=h[1],C=Object.fromEntries(s.valid_station_traits.map(function(b){return[b.name,b.path]})),V=Object.keys(C);return V.sort(),(0,e.createComponentVNode)(2,m.Box,{children:[(0,e.createComponentVNode)(2,m.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,m.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,m.Dropdown,{displayText:!v&&"Select trait to add...",onSelected:g,options:V,selected:v,width:"100%"})}),(0,e.createComponentVNode)(2,m.Stack.Item,{children:(0,e.createComponentVNode)(2,m.Button,{color:"green",icon:"plus",onClick:function(){function b(){if(v){var B=C[v],I=[B];if(d){var w,T=d.map(function(A){return A.path});if(T.indexOf(B)!==-1)return;I=(w=I).concat.apply(w,T)}i("setup_future_traits",{station_traits:I})}}return b}(),children:"Add"})})]}),(0,e.createComponentVNode)(2,m.Divider),Array.isArray(d)?d.length>0?(0,e.createComponentVNode)(2,m.Stack,{vertical:!0,fill:!0,children:d.map(function(b){return(0,e.createComponentVNode)(2,m.Stack.Item,{children:(0,e.createComponentVNode)(2,m.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,m.Stack.Item,{grow:!0,children:b.name}),(0,e.createComponentVNode)(2,m.Stack.Item,{children:(0,e.createComponentVNode)(2,m.Button,{color:"red",icon:"times",onClick:function(){function B(){i("setup_future_traits",{station_traits:(0,a.filterMap)(d,function(I){if(I.path!==b.path)return I.path})})}return B}(),children:"Delete"})})]})},b.path)})}):(0,e.createComponentVNode)(2,m.Box,{textAlign:"center",children:[(0,e.createComponentVNode)(2,m.Box,{children:"No station traits will run next round."}),(0,e.createComponentVNode)(2,m.Button,{mt:1,fluid:!0,color:"good",icon:"times",tooltip:"The next round will roll station traits randomly, just like normal",onClick:function(){function b(){return i("clear_future_traits")}return b}(),children:"Run Station Traits Normally"})]}):(0,e.createComponentVNode)(2,m.Box,{textAlign:"center",children:[(0,e.createComponentVNode)(2,m.Box,{children:"No future station traits are planned."}),(0,e.createComponentVNode)(2,m.Button,{mt:1,fluid:!0,color:"red",icon:"times",onClick:function(){function b(){return i("setup_future_traits",{station_traits:[]})}return b}(),children:"Prevent station traits from running next round"})]})]})},k=function(c,f){var u=(0,o.useBackend)(f),i=u.act,s=u.data;return s.current_traits.length>0?(0,e.createComponentVNode)(2,m.Stack,{vertical:!0,fill:!0,children:s.current_traits.map(function(d){return(0,e.createComponentVNode)(2,m.Stack.Item,{children:(0,e.createComponentVNode)(2,m.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,m.Stack.Item,{grow:!0,children:d.name}),(0,e.createComponentVNode)(2,m.Stack.Item,{children:(0,e.createComponentVNode)(2,m.Button.Confirm,{content:"Revert",color:"red",disabled:s.too_late_to_revert||!d.can_revert,tooltip:!d.can_revert&&"This trait is not revertable."||s.too_late_to_revert&&"It's too late to revert station traits, the round has already started.",icon:"times",onClick:function(){function h(){return i("revert",{ref:d.ref})}return h}()})})]})},d.ref)})}):(0,e.createComponentVNode)(2,m.Box,{textAlign:"center",children:"There are no active station traits."})},p=r.StationTraitsPanel=function(){function l(c,f){var u=(0,o.useLocalState)(f,"station_traits_tab",y.ViewStationTraits),i=u[0],s=u[1],d;switch(i){case y.SetupFutureStationTraits:d=(0,e.createComponentVNode)(2,S);break;case y.ViewStationTraits:d=(0,e.createComponentVNode)(2,k);break;default:(0,t.exhaustiveCheck)(i)}return(0,e.createComponentVNode)(2,N.Window,{title:"Modify Station Traits",height:350,width:350,children:(0,e.createComponentVNode)(2,N.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,m.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,m.Stack.Item,{children:(0,e.createComponentVNode)(2,m.Tabs,{children:[(0,e.createComponentVNode)(2,m.Tabs.Tab,{icon:"eye",selected:i===y.ViewStationTraits,onClick:function(){function h(){return s(y.ViewStationTraits)}return h}(),children:"View"}),(0,e.createComponentVNode)(2,m.Tabs.Tab,{icon:"edit",selected:i===y.SetupFutureStationTraits,onClick:function(){function h(){return s(y.SetupFutureStationTraits)}return h}(),children:"Edit"})]})}),(0,e.createComponentVNode)(2,m.Stack.Item,{m:0,children:[(0,e.createComponentVNode)(2,m.Divider),d]})]})})})}return l}()},95147:function(L,r,n){"use strict";r.__esModule=!0,r.StripMenu=void 0;var e=n(96524),a=n(50640),t=n(17442),o=n(17899),m=n(24674),N=n(45493),y=5,S=5,k="64px",p=function(d){return d[0]+"/"+d[1]},l=function(d){var h=d.align,v=d.children;return(0,e.createComponentVNode)(2,m.Box,{style:{position:"absolute",left:h==="left"?"6px":"48px","text-align":h,"text-shadow":"2px 2px 2px #000",top:"2px"},children:v})},c={enable_internals:{icon:"lungs",text:"Enable internals"},disable_internals:{icon:"lungs",text:"Disable internals"},enable_lock:{icon:"lock",text:"Enable lock"},disable_lock:{icon:"unlock",text:"Disable lock"},suit_sensors:{icon:"tshirt",text:"Adjust suit sensors"},remove_accessory:{icon:"medal",text:"Remove accessory"},dislodge_headpocket:{icon:"head-side-virus",text:"Dislodge headpocket"}},f={eyes:{displayName:"eyewear",gridSpot:p([1,0]),image:"inventory-glasses.png"},head:{displayName:"headwear",gridSpot:p([0,1]),image:"inventory-head.png"},mask:{displayName:"mask",gridSpot:p([1,1]),image:"inventory-mask.png"},pet_collar:{displayName:"collar",gridSpot:p([1,1]),image:"inventory-collar.png"},right_ear:{displayName:"right ear",gridSpot:p([0,2]),image:"inventory-ears.png"},left_ear:{displayName:"left ear",gridSpot:p([1,2]),image:"inventory-ears.png"},parrot_headset:{displayName:"headset",gridSpot:p([1,2]),image:"inventory-ears.png"},handcuffs:{displayName:"handcuffs",gridSpot:p([1,3])},legcuffs:{displayName:"legcuffs",gridSpot:p([1,4])},jumpsuit:{displayName:"uniform",gridSpot:p([2,0]),image:"inventory-uniform.png"},suit:{displayName:"suit",gridSpot:p([2,1]),image:"inventory-suit.png"},gloves:{displayName:"gloves",gridSpot:p([2,2]),image:"inventory-gloves.png"},right_hand:{displayName:"right hand",gridSpot:p([2,3]),image:"inventory-hand_r.png",additionalComponent:(0,e.createComponentVNode)(2,l,{align:"left",children:"R"})},left_hand:{displayName:"left hand",gridSpot:p([2,4]),image:"inventory-hand_l.png",additionalComponent:(0,e.createComponentVNode)(2,l,{align:"right",children:"L"})},shoes:{displayName:"shoes",gridSpot:p([3,1]),image:"inventory-shoes.png"},suit_storage:{displayName:"suit storage",gridSpot:p([4,0]),image:"inventory-suit_storage.png"},id:{displayName:"ID",gridSpot:p([4,1]),image:"inventory-id.png"},belt:{displayName:"belt",gridSpot:p([4,2]),image:"inventory-belt.png"},back:{displayName:"backpack",gridSpot:p([4,3]),image:"inventory-back.png"},left_pocket:{displayName:"left pocket",gridSpot:p([3,4]),image:"inventory-pocket.png"},right_pocket:{displayName:"right pocket",gridSpot:p([3,3]),image:"inventory-pocket.png"},pda:{displayName:"PDA",gridSpot:p([4,4]),image:"inventory-pda.png"}},u=function(s){return s[s.Completely=1]="Completely",s[s.Hidden=2]="Hidden",s}(u||{}),i=r.StripMenu=function(){function s(d,h){for(var v=(0,o.useBackend)(h),g=v.act,C=v.data,V=new Map,b=0,B=Object.keys(C.items);b=.01})},(0,a.sortBy)(function(T){return-T.amount})])(v.gases||[]),w=Math.max.apply(Math,[1].concat(I.map(function(T){return T.amount})));return(0,e.createComponentVNode)(2,S.Window,{width:550,height:185,children:(0,e.createComponentVNode)(2,S.Window.Content,{children:(0,e.createComponentVNode)(2,N.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,N.Stack.Item,{width:"270px",children:(0,e.createComponentVNode)(2,N.Section,{fill:!0,scrollable:!0,title:"Metrics",children:(0,e.createComponentVNode)(2,N.LabeledList,{children:[(0,e.createComponentVNode)(2,N.LabeledList.Item,{label:"Integrity",children:(0,e.createComponentVNode)(2,N.ProgressBar,{value:C/100,ranges:{good:[.9,1/0],average:[.5,.9],bad:[-1/0,.5]}})}),(0,e.createComponentVNode)(2,N.LabeledList.Item,{label:"Relative EER",children:(0,e.createComponentVNode)(2,N.ProgressBar,{value:V,minValue:0,maxValue:5e3,ranges:{good:[-1/0,5e3],average:[5e3,7e3],bad:[7e3,1/0]},children:(0,o.toFixed)(V)+" MeV/cm3"})}),(0,e.createComponentVNode)(2,N.LabeledList.Item,{label:"Temperature",children:(0,e.createComponentVNode)(2,N.ProgressBar,{value:l(b),minValue:0,maxValue:l(1e4),ranges:{teal:[-1/0,l(80)],good:[l(80),l(373)],average:[l(373),l(1e3)],bad:[l(1e3),1/0]},children:(0,o.toFixed)(b)+" K"})}),(0,e.createComponentVNode)(2,N.LabeledList.Item,{label:"Pressure",children:(0,e.createComponentVNode)(2,N.ProgressBar,{value:l(B),minValue:0,maxValue:l(5e4),ranges:{good:[l(1),l(300)],average:[-1/0,l(1e3)],bad:[l(1e3),1/0]},children:(0,o.toFixed)(B)+" kPa"})})]})})}),(0,e.createComponentVNode)(2,N.Stack.Item,{grow:!0,basis:0,children:(0,e.createComponentVNode)(2,N.Section,{fill:!0,scrollable:!0,title:"Gases",buttons:(0,e.createComponentVNode)(2,N.Button,{icon:"arrow-left",content:"Back",onClick:function(){function T(){return h("back")}return T}()}),children:(0,e.createComponentVNode)(2,N.LabeledList,{children:I.map(function(T){return(0,e.createComponentVNode)(2,N.LabeledList.Item,{label:(0,y.getGasLabel)(T.name),children:(0,e.createComponentVNode)(2,N.ProgressBar,{color:(0,y.getGasColor)(T.name),value:T.amount,minValue:0,maxValue:w,children:(0,o.toFixed)(T.amount,2)+"%"})},T.name)})})})})]})})})}},30047:function(L,r,n){"use strict";r.__esModule=!0,r.SyndicateComputerSimple=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=r.SyndicateComputerSimple=function(){function N(y,S){var k=(0,a.useBackend)(S),p=k.act,l=k.data;return(0,e.createComponentVNode)(2,o.Window,{theme:"syndicate",width:400,height:400,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:l.rows.map(function(c){return(0,e.createComponentVNode)(2,t.Section,{title:c.title,buttons:(0,e.createComponentVNode)(2,t.Button,{content:c.buttontitle,disabled:c.buttondisabled,tooltip:c.buttontooltip,tooltipPosition:"left",onClick:function(){function f(){return p(c.buttonact)}return f}()}),children:[c.status,!!c.bullets&&(0,e.createComponentVNode)(2,t.Box,{children:c.bullets.map(function(f){return(0,e.createComponentVNode)(2,t.Box,{children:f},f)})})]},c.title)})})})}return N}()},28830:function(L,r,n){"use strict";r.__esModule=!0,r.TEG=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=function(S){return S.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1,")},N=r.TEG=function(){function y(S,k){var p=(0,a.useBackend)(k),l=p.act,c=p.data;return c.error?(0,e.createComponentVNode)(2,o.Window,{width:500,height:400,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Error",children:[c.error,(0,e.createComponentVNode)(2,t.Button,{icon:"circle",content:"Recheck",onClick:function(){function f(){return l("check")}return f}()})]})})}):(0,e.createComponentVNode)(2,o.Window,{width:500,height:400,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Cold Loop ("+c.cold_dir+")",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cold Inlet",children:[m(c.cold_inlet_temp)," K,"," ",m(c.cold_inlet_pressure)," kPa"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cold Outlet",children:[m(c.cold_outlet_temp)," K,"," ",m(c.cold_outlet_pressure)," kPa"]})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Hot Loop ("+c.hot_dir+")",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Hot Inlet",children:[m(c.hot_inlet_temp)," K,"," ",m(c.hot_inlet_pressure)," kPa"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Hot Outlet",children:[m(c.hot_outlet_temp)," K,"," ",m(c.hot_outlet_pressure)," kPa"]})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Power Output",children:[m(c.output_power)," W",!!c.warning_switched&&(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Warning: Cold inlet temperature exceeds hot inlet temperature."}),!!c.warning_cold_pressure&&(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Warning: Cold circulator inlet pressure is under 1,000 kPa."}),!!c.warning_hot_pressure&&(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Warning: Hot circulator inlet pressure is under 1,000 kPa."})]})]})})}return y}()},67432:function(L,r,n){"use strict";r.__esModule=!0,r.TTSSeedsExplorerContent=r.TTSSeedsExplorer=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m={0:"\u0411\u0435\u0441\u043F\u043B\u0430\u0442\u043D\u044B\u0435",1:"Tier I",2:"Tier II",3:"Tier III",4:"Tier IV",5:"Tier V"},N={male:"\u041C\u0443\u0436\u0441\u043A\u043E\u0439",female:"\u0416\u0435\u043D\u0441\u043A\u0438\u0439"},y={\u041C\u0443\u0436\u0441\u043A\u043E\u0439:{icon:"mars",color:"blue"},\u0416\u0435\u043D\u0441\u043A\u0438\u0439:{icon:"venus",color:"purple"},\u041B\u044E\u0431\u043E\u0439:{icon:"venus-mars",color:"white"}},S=function(c,f,u,i){return i===void 0&&(i=null),c.map(function(s){var d,h=(d=s[i])!=null?d:s;return(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:f.includes(s),content:h,onClick:function(){function v(){f.includes(s)?u(f.filter(function(g){var C;return((C=g[i])!=null?C:g)!==s})):u([s].concat(f))}return v}()},h)})},k=r.TTSSeedsExplorer=function(){function l(){return(0,e.createComponentVNode)(2,o.Window,{width:600,height:800,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,p)})})})}return l}(),p=r.TTSSeedsExplorerContent=function(){function l(c,f){var u=(0,a.useBackend)(f),i=u.act,s=u.data,d=s.providers,h=s.seeds,v=s.selected_seed,g=s.phrases,C=s.donator_level,V=s.character_gender,b=h.map(function(Z){return Z.category}).filter(function(Z,q,ue){return ue.indexOf(Z)===q}),B=h.map(function(Z){return Z.gender}).filter(function(Z,q,ue){return ue.indexOf(Z)===q}),I=h.map(function(Z){return Z.required_donator_level}).filter(function(Z,q,ue){return ue.indexOf(Z)===q}).sort(function(Z,q){return Z-q}).map(function(Z){return m[Z]}),w=(0,a.useLocalState)(f,"selectedProviders",d),T=w[0],A=w[1],x=(0,a.useLocalState)(f,"selectedGenders",B.includes(N[V])?[N[V]]:B),E=x[0],M=x[1],j=(0,a.useLocalState)(f,"selectedCategories",b),P=j[0],R=j[1],D=(0,a.useLocalState)(f,"selectedDonatorLevels",I.includes(m[C])?I.slice(0,I.indexOf(m[C])+1):I),F=D[0],W=D[1],_=(0,a.useLocalState)(f,"selectedPhrase",g[0]),H=_[0],z=_[1],$=(0,a.useLocalState)(f,"searchtext",""),X=$[0],J=$[1],ce=S(d,T,A,"name"),re=S(B,E,M),me=S(b,P,R),pe=S(I,F,W),ye=(0,e.createComponentVNode)(2,t.Dropdown,{options:g,selected:H.replace(/(.{60})..+/,"$1..."),width:"445px",onSelected:function(){function Z(q){return z(q)}return Z}()}),Be=(0,e.createComponentVNode)(2,t.Input,{placeholder:"\u041D\u0430\u0437\u0432\u0430\u043D\u0438\u0435...",width:"100%",onInput:function(){function Z(q,ue){return J(ue)}return Z}()}),he=h.sort(function(Z,q){var ue=Z.name.toLowerCase(),se=q.name.toLowerCase();return ue>se?1:ue0&&v!==Z.name?"orange":"white",children:Z.name}),(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,opacity:v===Z.name?.5:.25,textAlign:"left",children:Z.category}),(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,opacity:.5,textColor:v===Z.name?"white":y[Z.gender].color,textAlign:"left",children:(0,e.createComponentVNode)(2,t.Icon,{mx:1,size:1.2,name:y[Z.gender].icon})}),(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,opacity:.5,textColor:"white",textAlign:"right",children:Z.required_donator_level>0&&(0,e.createFragment)([m[Z.required_donator_level],(0,e.createComponentVNode)(2,t.Icon,{ml:1,mr:2,name:"coins"})],0)})]},Z.name)});return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Stack.Item,{height:"175px",children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"\u0424\u0438\u043B\u044C\u0442\u0440\u044B",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u041F\u0440\u043E\u0432\u0430\u0439\u0434\u0435\u0440\u044B",children:ce}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u041F\u043E\u043B",children:re}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0423\u0440\u043E\u0432\u0435\u043D\u044C \u043F\u043E\u0434\u043F\u0438\u0441\u043A\u0438",children:pe}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0424\u0440\u0430\u0437\u0430",children:ye}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u041F\u043E\u0438\u0441\u043A",children:Be})]})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{height:"25%",children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"\u041A\u0430\u0442\u0435\u0433\u043E\u0440\u0438\u0438",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{icon:"times",content:"\u0423\u0431\u0440\u0430\u0442\u044C \u0432\u0441\u0451",disabled:P.length===0,onClick:function(){function Z(){return R([])}return Z}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"check",content:"\u0412\u044B\u0431\u0440\u0430\u0442\u044C \u0432\u0441\u0451",disabled:P.length===b.length,onClick:function(){function Z(){return R(b)}return Z}()})],4),children:me})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"\u0413\u043E\u043B\u043E\u0441\u0430 ("+he.length+"/"+h.length+")",children:(0,e.createComponentVNode)(2,t.Table,{children:oe})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.BlockQuote,{children:[(0,e.createComponentVNode)(2,t.Box,{children:"\u0414\u043B\u044F \u043F\u043E\u0434\u0434\u0435\u0440\u0436\u0430\u043D\u0438\u044F \u0438 \u0440\u0430\u0437\u0432\u0438\u0442\u0438\u044F \u0441\u043E\u043E\u0431\u0449\u0435\u0441\u0442\u0432\u0430 \u0432 \u0443\u0441\u043B\u043E\u0432\u0438\u044F\u0445 \u0440\u0430\u0441\u0442\u0443\u0449\u0438\u0445 \u0440\u0430\u0441\u0445\u043E\u0434\u043E\u0432 \u0447\u0430\u0441\u0442\u044C \u0433\u043E\u043B\u043E\u0441\u043E\u0432 \u043F\u0440\u0438\u0448\u043B\u043E\u0441\u044C \u0441\u0434\u0435\u043B\u0430\u0442\u044C \u0434\u043E\u0441\u0442\u0443\u043F\u043D\u044B\u043C\u0438 \u0442\u043E\u043B\u044C\u043A\u043E \u0437\u0430 \u043C\u0430\u0442\u0435\u0440\u0438\u0430\u043B\u044C\u043D\u0443\u044E \u043F\u043E\u0434\u0434\u0435\u0440\u0436\u043A\u0443 \u0441\u043E\u043E\u0431\u0449\u0435\u0441\u0442\u0432\u0430."}),(0,e.createComponentVNode)(2,t.Box,{mt:2,italic:!0,children:"\u041F\u043E\u0434\u0440\u043E\u0431\u043D\u0435\u0435 \u043E\u0431 \u044D\u0442\u043E\u043C \u043C\u043E\u0436\u043D\u043E \u0443\u0437\u043D\u0430\u0442\u044C \u0432 \u043D\u0430\u0448\u0435\u043C Discord-\u0441\u043E\u043E\u0431\u0449\u0435\u0441\u0442\u0432\u0435."})]})})})],4)}return l}()},39903:function(L,r,n){"use strict";r.__esModule=!0,r.TachyonArrayContent=r.TachyonArray=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=r.TachyonArray=function(){function y(S,k){var p=(0,a.useBackend)(k),l=p.act,c=p.data,f=c.records,u=f===void 0?[]:f,i=c.explosion_target,s=c.toxins_tech,d=c.printing;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:600,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Shift's Target",children:i}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Current Toxins Level",children:s}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Administration",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"print",content:"Print All Logs",disabled:!u.length||d,align:"center",onClick:function(){function h(){return l("print_logs")}return h}()}),(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"trash",content:"Delete All Logs",disabled:!u.length,color:"bad",align:"center",onClick:function(){function h(){return l("delete_logs")}return h}()})]})]})}),u.length?(0,e.createComponentVNode)(2,N):(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No Records"})]})})}return y}(),N=r.TachyonArrayContent=function(){function y(S,k){var p=(0,a.useBackend)(k),l=p.act,c=p.data,f=c.records,u=f===void 0?[]:f;return(0,e.createComponentVNode)(2,t.Section,{title:"Logged Explosions",children:(0,e.createComponentVNode)(2,t.Flex,{children:(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Table,{m:"0.5rem",children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Time"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Epicenter"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Actual Size"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Theoretical Size"})]}),u.map(function(i){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:i.logged_time}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:i.epicenter}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:i.actual_size_message}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:i.theoretical_size_message}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"trash",content:"Delete",color:"bad",onClick:function(){function s(){return l("delete_record",{index:i.index})}return s}()})})]},i.index)})]})})})})}return y}()},17068:function(L,r,n){"use strict";r.__esModule=!0,r.Tank=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=r.Tank=function(){function N(y,S){var k=(0,a.useBackend)(S),p=k.act,l=k.data,c;return l.has_mask?c=(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Mask",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,width:"76%",icon:l.connected?"check":"times",content:l.connected?"Internals On":"Internals Off",selected:l.connected,onClick:function(){function f(){return p("internals")}return f}()})}):c=(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Mask",color:"red",children:"No Mask Equipped"}),(0,e.createComponentVNode)(2,o.Window,{width:325,height:135,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Tank Pressure",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:l.tankPressure/1013,ranges:{good:[.35,1/0],average:[.15,.35],bad:[-1/0,.15]},children:l.tankPressure+" kPa"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Release Pressure",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"fast-backward",disabled:l.ReleasePressure===l.minReleasePressure,tooltip:"Min",onClick:function(){function f(){return p("pressure",{pressure:"min"})}return f}()}),(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,value:parseFloat(l.releasePressure),width:"65px",unit:"kPa",minValue:l.minReleasePressure,maxValue:l.maxReleasePressure,onChange:function(){function f(u,i){return p("pressure",{pressure:i})}return f}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",disabled:l.ReleasePressure===l.maxReleasePressure,tooltip:"Max",onClick:function(){function f(){return p("pressure",{pressure:"max"})}return f}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"undo",content:"",disabled:l.ReleasePressure===l.defaultReleasePressure,tooltip:"Reset",onClick:function(){function f(){return p("pressure",{pressure:"reset"})}return f}()})]}),c]})})})})}return N}()},69161:function(L,r,n){"use strict";r.__esModule=!0,r.TankDispenser=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=r.TankDispenser=function(){function N(y,S){var k=(0,a.useBackend)(S),p=k.act,l=k.data,c=l.o_tanks,f=l.p_tanks;return(0,e.createComponentVNode)(2,o.Window,{width:250,height:105,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:[(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,content:"Dispense Oxygen Tank ("+c+")",disabled:c===0,icon:"arrow-circle-down",onClick:function(){function u(){return p("oxygen")}return u}()})}),(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{mt:1,fluid:!0,content:"Dispense Plasma Tank ("+f+")",disabled:f===0,icon:"arrow-circle-down",onClick:function(){function u(){return p("plasma")}return u}()})})]})})})}return N}()},87394:function(L,r,n){"use strict";r.__esModule=!0,r.TcommsCore=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=r.TcommsCore=function(){function p(l,c){var f=(0,a.useBackend)(c),u=f.act,i=f.data,s=i.ion,d=(0,a.useLocalState)(c,"tabIndex",0),h=d[0],v=d[1],g=function(){function C(V){switch(V){case 0:return(0,e.createComponentVNode)(2,y);case 1:return(0,e.createComponentVNode)(2,S);case 2:return(0,e.createComponentVNode)(2,k);default:return"SOMETHING WENT VERY WRONG PLEASE AHELP"}}return C}();return(0,e.createComponentVNode)(2,o.Window,{width:900,height:520,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[s===1&&(0,e.createComponentVNode)(2,N),(0,e.createComponentVNode)(2,t.Tabs,{children:[(0,e.createComponentVNode)(2,t.Tabs.Tab,{icon:"wrench",selected:h===0,onClick:function(){function C(){return v(0)}return C}(),children:"Configuration"},"ConfigPage"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{icon:"link",selected:h===1,onClick:function(){function C(){return v(1)}return C}(),children:"Device Linkage"},"LinkagePage"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{icon:"user-times",selected:h===2,onClick:function(){function C(){return v(2)}return C}(),children:"User Filtering"},"FilterPage")]}),g(h)]})})}return p}(),N=function(){return(0,e.createComponentVNode)(2,t.NoticeBox,{children:"ERROR: An Ionospheric overload has occured. Please wait for the machine to reboot. This cannot be manually done."})},y=function(l,c){var f=(0,a.useBackend)(c),u=f.act,i=f.data,s=i.active,d=i.sectors_available,h=i.nttc_toggle_jobs,v=i.nttc_toggle_job_color,g=i.nttc_toggle_name_color,C=i.nttc_toggle_command_bold,V=i.nttc_job_indicator_type,b=i.nttc_setting_language,B=i.network_id;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{title:"Status",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Machine Power",children:(0,e.createComponentVNode)(2,t.Button,{content:s?"On":"Off",selected:s,icon:"power-off",onClick:function(){function I(){return u("toggle_active")}return I}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Sector Coverage",children:d})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Radio Configuration",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Job Announcements",children:(0,e.createComponentVNode)(2,t.Button,{content:h?"On":"Off",selected:h,icon:"user-tag",onClick:function(){function I(){return u("nttc_toggle_jobs")}return I}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Job Departmentalisation",children:(0,e.createComponentVNode)(2,t.Button,{content:v?"On":"Off",selected:v,icon:"clipboard-list",onClick:function(){function I(){return u("nttc_toggle_job_color")}return I}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Name Departmentalisation",children:(0,e.createComponentVNode)(2,t.Button,{content:g?"On":"Off",selected:g,icon:"user-tag",onClick:function(){function I(){return u("nttc_toggle_name_color")}return I}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Command Amplification",children:(0,e.createComponentVNode)(2,t.Button,{content:C?"On":"Off",selected:C,icon:"volume-up",onClick:function(){function I(){return u("nttc_toggle_command_bold")}return I}()})})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Advanced",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Job Announcement Format",children:(0,e.createComponentVNode)(2,t.Button,{content:V||"Unset",selected:V,icon:"pencil-alt",onClick:function(){function I(){return u("nttc_job_indicator_type")}return I}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Language Conversion",children:(0,e.createComponentVNode)(2,t.Button,{content:b||"Unset",selected:b,icon:"globe",onClick:function(){function I(){return u("nttc_setting_language")}return I}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Network ID",children:(0,e.createComponentVNode)(2,t.Button,{content:B||"Unset",selected:B,icon:"server",onClick:function(){function I(){return u("network_id")}return I}()})})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Maintenance",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Import Configuration",icon:"file-import",onClick:function(){function I(){return u("import")}return I}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Export Configuration",icon:"file-export",onClick:function(){function I(){return u("export")}return I}()})]})],4)},S=function(l,c){var f=(0,a.useBackend)(c),u=f.act,i=f.data,s=i.link_password,d=i.relay_entries;return(0,e.createComponentVNode)(2,t.Section,{title:"Device Linkage",children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Linkage Password",children:(0,e.createComponentVNode)(2,t.Button,{content:s||"Unset",selected:s,icon:"lock",onClick:function(){function h(){return u("change_password")}return h}()})})}),(0,e.createComponentVNode)(2,t.Table,{m:"0.5rem",children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Network Address"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Network ID"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Sector"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Status"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Unlink"})]}),d.map(function(h){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:h.addr}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:h.net_id}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:h.sector}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:h.status===1?(0,e.createComponentVNode)(2,t.Box,{color:"green",children:"Online"}):(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Offline"})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Unlink",icon:"unlink",onClick:function(){function v(){return u("unlink",{addr:h.addr})}return v}()})})]},h.addr)})]})]})},k=function(l,c){var f=(0,a.useBackend)(c),u=f.act,i=f.data,s=i.filtered_users;return(0,e.createComponentVNode)(2,t.Section,{title:"User Filtering",buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Add User",icon:"user-plus",onClick:function(){function d(){return u("add_filter")}return d}()}),children:(0,e.createComponentVNode)(2,t.Table,{m:"0.5rem",children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{style:{width:"90%"},children:"User"}),(0,e.createComponentVNode)(2,t.Table.Cell,{style:{width:"10%"},children:"Actions"})]}),s.map(function(d){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:d}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Remove",icon:"user-times",onClick:function(){function h(){return u("remove_filter",{user:d})}return h}()})})]},d)})]})})}},55684:function(L,r,n){"use strict";r.__esModule=!0,r.TcommsRelay=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=r.TcommsRelay=function(){function S(k,p){var l=(0,a.useBackend)(p),c=l.act,f=l.data,u=f.linked,i=f.active,s=f.network_id;return(0,e.createComponentVNode)(2,o.Window,{width:600,height:292,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,t.Section,{title:"Relay Configuration",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Machine Power",children:(0,e.createComponentVNode)(2,t.Button,{content:i?"On":"Off",selected:i,icon:"power-off",onClick:function(){function d(){return c("toggle_active")}return d}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Network ID",children:(0,e.createComponentVNode)(2,t.Button,{content:s||"Unset",selected:s,icon:"server",onClick:function(){function d(){return c("network_id")}return d}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Link Status",children:u===1?(0,e.createComponentVNode)(2,t.Box,{color:"green",children:"Linked"}):(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Unlinked"})})]})}),u===1?(0,e.createComponentVNode)(2,N):(0,e.createComponentVNode)(2,y)]})})}return S}(),N=function(k,p){var l=(0,a.useBackend)(p),c=l.act,f=l.data,u=f.linked_core_id,i=f.linked_core_addr,s=f.hidden_link;return(0,e.createComponentVNode)(2,t.Section,{title:"Link Status",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Linked Core ID",children:u}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Linked Core Address",children:i}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Hidden Link",children:(0,e.createComponentVNode)(2,t.Button,{content:s?"Yes":"No",icon:s?"eye-slash":"eye",selected:s,onClick:function(){function d(){return c("toggle_hidden_link")}return d}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Unlink",children:(0,e.createComponentVNode)(2,t.Button,{content:"Unlink",icon:"unlink",color:"red",onClick:function(){function d(){return c("unlink")}return d}()})})]})})},y=function(k,p){var l=(0,a.useBackend)(p),c=l.act,f=l.data,u=f.cores;return(0,e.createComponentVNode)(2,t.Section,{title:"Detected Cores",children:(0,e.createComponentVNode)(2,t.Table,{m:"0.5rem",children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Network Address"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Network ID"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Sector"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Link"})]}),u.map(function(i){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:i.addr}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:i.net_id}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:i.sector}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Link",icon:"link",onClick:function(){function s(){return c("link",{addr:i.addr})}return s}()})})]},i.addr)})]})})}},81088:function(L,r,n){"use strict";r.__esModule=!0,r.Teleporter=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=r.Teleporter=function(){function N(y,S){var k=(0,a.useBackend)(S),p=k.act,l=k.data,c=l.targetsTeleport?l.targetsTeleport:{},f=0,u=1,i=2,s=l.calibrated,d=l.calibrating,h=l.powerstation,v=l.regime,g=l.teleporterhub,C=l.target,V=l.locked;return(0,e.createComponentVNode)(2,o.Window,{width:350,height:270,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:[(!h||!g)&&(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Error",children:[g,!h&&(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:" Powerstation not linked "}),h&&!g&&(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:" Teleporter hub not linked "})]}),h&&g&&(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Status",children:[(0,e.createComponentVNode)(2,t.Stack,{mb:1,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:8.5,color:"label",children:"Teleport target:"}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:[v===f&&(0,e.createComponentVNode)(2,t.Dropdown,{width:18.2,selected:C,options:Object.keys(c),color:C!=="None"?"default":"bad",onSelected:function(){function b(B){return p("settarget",{x:c[B].x,y:c[B].y,z:c[B].z})}return b}()}),v===u&&(0,e.createComponentVNode)(2,t.Dropdown,{width:18.2,selected:C,options:Object.keys(c),color:C!=="None"?"default":"bad",onSelected:function(){function b(B){return p("settarget",{x:c[B].x,y:c[B].y,z:c[B].z})}return b}()}),v===i&&(0,e.createComponentVNode)(2,t.Box,{children:C})]})]}),(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:8.5,color:"label",children:"Regime:"}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,content:"Gate",tooltip:"Teleport to another teleport hub.",tooltipPosition:"top",color:v===u?"good":null,onClick:function(){function b(){return p("setregime",{regime:u})}return b}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,content:"Teleporter",tooltip:"One-way teleport.",tooltipPosition:"top",color:v===f?"good":null,onClick:function(){function b(){return p("setregime",{regime:f})}return b}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,content:"GPS",tooltip:"Teleport to a location stored in a GPS device.",tooltipPosition:"top-end",color:v===i?"good":null,disabled:!V,onClick:function(){function b(){return p("setregime",{regime:i})}return b}()})})]}),(0,e.createComponentVNode)(2,t.Stack,{label:"Calibration",mt:1,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:8.5,color:"label",children:"Calibration:"}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:[C!=="None"&&(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:15.8,textAlign:"center",mt:.5,children:d&&(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"In Progress"})||s&&(0,e.createComponentVNode)(2,t.Box,{color:"good",children:"Optimal"})||(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:"Sub-Optimal"})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Button,{icon:"sync-alt",tooltip:"Calibrates the hub. Accidents may occur when the calibration is not optimal.",tooltipPosition:"bottom-end",disabled:!!(s||d),onClick:function(){function b(){return p("calibrate")}return b}()})})]}),C==="None"&&(0,e.createComponentVNode)(2,t.Box,{lineHeight:"21px",children:"No target set"})]})]})]}),!!(V&&h&&g&&v===i)&&(0,e.createComponentVNode)(2,t.Section,{title:"GPS",children:(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Button,{content:"Upload GPS data",tooltip:"Loads the GPS data from the device.",icon:"upload",onClick:function(){function b(){return p("load")}return b}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Eject",tooltip:"Ejects the GPS device",icon:"eject",onClick:function(){function b(){return p("eject")}return b}()})]})})]})})})})}return N}()},96150:function(L,r,n){"use strict";r.__esModule=!0,r.TempGun=void 0;var e=n(96524),a=n(36121),t=n(17899),o=n(24674),m=n(45493),N=r.TempGun=function(){function p(l,c){var f=(0,t.useBackend)(c),u=f.act,i=f.data,s=i.target_temperature,d=i.temperature,h=i.max_temp,v=i.min_temp;return(0,e.createComponentVNode)(2,m.Window,{width:250,height:121,children:(0,e.createComponentVNode)(2,m.Window.Content,{children:(0,e.createComponentVNode)(2,o.Section,{children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Target Temperature",children:[(0,e.createComponentVNode)(2,o.NumberInput,{animate:!0,step:10,stepPixelSize:6,minValue:v,maxValue:h,value:s,format:function(){function g(C){return(0,a.toFixed)(C,2)}return g}(),width:"50px",onDrag:function(){function g(C,V){return u("target_temperature",{target_temperature:V})}return g}()}),"\xB0C"]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Current Temperature",children:(0,e.createComponentVNode)(2,o.Box,{color:y(d),bold:d>500-273.15,children:[(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:(0,a.round)(d,2)}),"\xB0C"]})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Power Cost",children:(0,e.createComponentVNode)(2,o.Box,{color:k(d),children:S(d)})})]})})})})}return p}(),y=function(l){return l<=-100?"blue":l<=0?"teal":l<=100?"green":l<=200?"orange":"red"},S=function(l){return l<=100-273.15?"High":l<=250-273.15?"Medium":l<=300-273.15?"Low":l<=400-273.15?"Medium":"High"},k=function(l){return l<=100-273.15?"red":l<=250-273.15?"orange":l<=300-273.15?"green":l<=400-273.15?"orange":"red"}},95484:function(L,r,n){"use strict";r.__esModule=!0,r.sanitizeMultiline=r.removeAllSkiplines=r.TextInputModal=void 0;var e=n(96524),a=n(14299),t=n(15113),o=n(17899),m=n(68100),N=n(24674),y=n(45493),S=r.sanitizeMultiline=function(){function c(f){return f.replace(/(\n|\r\n){3,}/,"\n\n")}return c}(),k=r.removeAllSkiplines=function(){function c(f){return f.replace(/[\r\n]+/,"")}return c}(),p=r.TextInputModal=function(){function c(f,u){var i=(0,o.useBackend)(u),s=i.act,d=i.data,h=d.max_length,v=d.message,g=v===void 0?"":v,C=d.multiline,V=d.placeholder,b=d.timeout,B=d.title,I=(0,o.useLocalState)(u,"input",V||""),w=I[0],T=I[1],A=function(){function M(j){if(j!==w){var P=C?S(j):k(j);T(P)}}return M}(),x=C||w.length>=40,E=130+(g.length>40?Math.ceil(g.length/4):0)+(x?80:0);return(0,e.createComponentVNode)(2,y.Window,{title:B,width:325,height:E,children:[b&&(0,e.createComponentVNode)(2,a.Loader,{value:b}),(0,e.createComponentVNode)(2,y.Window.Content,{onKeyDown:function(){function M(j){var P=window.event?j.which:j.keyCode;P===m.KEY_ENTER&&(!x||!j.shiftKey)&&s("submit",{entry:w}),P===m.KEY_ESCAPE&&s("cancel")}return M}(),children:(0,e.createComponentVNode)(2,N.Section,{fill:!0,children:(0,e.createComponentVNode)(2,N.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,N.Stack.Item,{children:(0,e.createComponentVNode)(2,N.Box,{color:"label",children:g})}),(0,e.createComponentVNode)(2,N.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,l,{input:w,onType:A})}),(0,e.createComponentVNode)(2,N.Stack.Item,{children:(0,e.createComponentVNode)(2,t.InputButtons,{input:w,message:w.length+"/"+h})})]})})})]})}return c}(),l=function(f,u){var i=(0,o.useBackend)(u),s=i.act,d=i.data,h=d.max_length,v=d.multiline,g=f.input,C=f.onType,V=v||g.length>=40;return(0,e.createComponentVNode)(2,N.TextArea,{autoFocus:!0,autoSelect:!0,height:v||g.length>=40?"100%":"1.8rem",maxLength:h,onEscape:function(){function b(){return s("cancel")}return b}(),onEnter:function(){function b(B){V&&B.shiftKey||(B.preventDefault(),s("submit",{entry:g}))}return b}(),onInput:function(){function b(B,I){return C(I)}return b}(),placeholder:"Type something...",value:g})}},378:function(L,r,n){"use strict";r.__esModule=!0,r.ThermoMachine=void 0;var e=n(96524),a=n(36121),t=n(17899),o=n(24674),m=n(45493),N=r.ThermoMachine=function(){function y(S,k){var p=(0,t.useBackend)(k),l=p.act,c=p.data;return(0,e.createComponentVNode)(2,m.Window,{width:300,height:225,children:(0,e.createComponentVNode)(2,m.Window.Content,{children:[(0,e.createComponentVNode)(2,o.Section,{title:"Status",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Temperature",children:[(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:c.temperature,format:function(){function f(u){return(0,a.toFixed)(u,2)}return f}()})," K"]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Pressure",children:[(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:c.pressure,format:function(){function f(u){return(0,a.toFixed)(u,2)}return f}()})," kPa"]})]})}),(0,e.createComponentVNode)(2,o.Section,{title:"Controls",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:c.on?"power-off":"times",content:c.on?"On":"Off",selected:c.on,onClick:function(){function f(){return l("power")}return f}()}),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Setting",textAlign:"center",children:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,icon:c.cooling?"temperature-low":"temperature-high",content:c.cooling?"Cooling":"Heating",selected:c.cooling,onClick:function(){function f(){return l("cooling")}return f}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Target Temperature",children:[(0,e.createComponentVNode)(2,o.Button,{icon:"fast-backward",disabled:c.target===c.min,title:"Minimum temperature",onClick:function(){function f(){return l("target",{target:c.min})}return f}()}),(0,e.createComponentVNode)(2,o.NumberInput,{animated:!0,value:Math.round(c.target),unit:"K",width:5.4,lineHeight:1.4,minValue:Math.round(c.min),maxValue:Math.round(c.max),step:5,stepPixelSize:3,onDrag:function(){function f(u,i){return l("target",{target:i})}return f}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"fast-forward",disabled:c.target===c.max,title:"Maximum Temperature",onClick:function(){function f(){return l("target",{target:c.max})}return f}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"sync",disabled:c.target===c.initial,title:"Room Temperature",onClick:function(){function f(){return l("target",{target:c.initial})}return f}()})]})]})})]})})}return y}()},3365:function(L,r,n){"use strict";r.__esModule=!0,r.TransferValve=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=r.TransferValve=function(){function N(y,S){var k=(0,a.useBackend)(S),p=k.act,l=k.data,c=l.tank_one,f=l.tank_two,u=l.attached_device,i=l.valve;return(0,e.createComponentVNode)(2,o.Window,{width:460,height:285,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Valve Status",children:(0,e.createComponentVNode)(2,t.Button,{icon:i?"unlock":"lock",content:i?"Open":"Closed",disabled:!c||!f,onClick:function(){function s(){return p("toggle")}return s}()})})})}),(0,e.createComponentVNode)(2,t.Section,{title:"Assembly",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"cog",content:"Configure Assembly",disabled:!u,onClick:function(){function s(){return p("device")}return s}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Attachment",children:u?(0,e.createComponentVNode)(2,t.Button,{icon:"eject",content:u,disabled:!u,onClick:function(){function s(){return p("remove_device")}return s}()}):(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"No Assembly"})})})}),(0,e.createComponentVNode)(2,t.Section,{title:"Attachment One",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Attachment",children:c?(0,e.createComponentVNode)(2,t.Button,{icon:"eject",content:c,disabled:!c,onClick:function(){function s(){return p("tankone")}return s}()}):(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"No Tank"})})})}),(0,e.createComponentVNode)(2,t.Section,{title:"Attachment Two",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Attachment",children:f?(0,e.createComponentVNode)(2,t.Button,{icon:"eject",content:f,disabled:!f,onClick:function(){function s(){return p("tanktwo")}return s}()}):(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"No Tank"})})})})]})})}return N}()},13860:function(L,r,n){"use strict";r.__esModule=!0,r.TurbineComputer=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=n(36121),N=r.TurbineComputer=function(){function k(p,l){var c=(0,a.useBackend)(l),f=c.act,u=c.data,i=u.compressor,s=u.compressor_broken,d=u.turbine,h=u.turbine_broken,v=u.online,g=!!(i&&!s&&d&&!h);return(0,e.createComponentVNode)(2,o.Window,{width:400,height:200,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Status",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{icon:v?"power-off":"times",content:v?"Online":"Offline",selected:v,disabled:!g,onClick:function(){function C(){return f("toggle_power")}return C}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"times",content:"Disconnect",onClick:function(){function C(){return f("disconnect")}return C}()})],4),children:g?(0,e.createComponentVNode)(2,S):(0,e.createComponentVNode)(2,y)})})})}return k}(),y=function(p,l){var c=(0,a.useBackend)(l),f=c.data,u=f.compressor,i=f.compressor_broken,s=f.turbine,d=f.turbine_broken,h=f.online;return(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Compressor Status",color:!u||i?"bad":"good",children:i?u?"Offline":"Missing":"Online"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Turbine Status",color:!s||d?"bad":"good",children:d?s?"Offline":"Missing":"Online"})]})},S=function(p,l){var c=(0,a.useBackend)(l),f=c.data,u=f.rpm,i=f.temperature,s=f.power,d=f.bearing_heat;return(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Turbine Speed",children:[u," RPM"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Internal Temp",children:[i," K"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Generated Power",children:[s," W"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Bearing Heat",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:d,minValue:0,maxValue:100,ranges:{good:[-1/0,60],average:[60,90],bad:[90,1/0]},children:(0,m.toFixed)(d)+"%"})})]})}},22169:function(L,r,n){"use strict";r.__esModule=!0,r.Uplink=void 0;var e=n(96524),a=n(50640),t=n(74041),o=n(78234),m=n(17899),N=n(24674),y=n(45493),S=n(99665),k=function(v){switch(v){case 0:return(0,e.createComponentVNode)(2,l);case 1:return(0,e.createComponentVNode)(2,c);case 2:return(0,e.createComponentVNode)(2,d);default:return"SOMETHING WENT VERY WRONG PLEASE AHELP"}},p=r.Uplink=function(){function h(v,g){var C=(0,m.useBackend)(g),V=C.act,b=C.data,B=b.cart,I=(0,m.useLocalState)(g,"tabIndex",0),w=I[0],T=I[1],A=(0,m.useLocalState)(g,"searchText",""),x=A[0],E=A[1];return(0,e.createComponentVNode)(2,y.Window,{width:900,height:600,theme:"syndicate",children:[(0,e.createComponentVNode)(2,S.ComplexModal),(0,e.createComponentVNode)(2,y.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,N.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,N.Stack.Item,{children:(0,e.createComponentVNode)(2,N.Tabs,{children:[(0,e.createComponentVNode)(2,N.Tabs.Tab,{selected:w===0,onClick:function(){function M(){T(0),E("")}return M}(),icon:"store",children:"View Market"},"PurchasePage"),(0,e.createComponentVNode)(2,N.Tabs.Tab,{selected:w===1,onClick:function(){function M(){T(1),E("")}return M}(),icon:"shopping-cart",children:["View Shopping Cart"," ",B&&B.length?"("+B.length+")":""]},"Cart"),(0,e.createComponentVNode)(2,N.Tabs.Tab,{selected:w===2,onClick:function(){function M(){T(2),E("")}return M}(),icon:"user",children:"Exploitable Information"},"ExploitableInfo"),(0,e.createComponentVNode)(2,N.Tabs.Tab,{onClick:function(){function M(){return V("lock")}return M}(),icon:"lock",children:"Lock Uplink"},"LockUplink")]})}),(0,e.createComponentVNode)(2,N.Stack.Item,{grow:!0,children:k(w)})]})})]})}return h}(),l=function(v,g){var C=(0,m.useBackend)(g),V=C.act,b=C.data,B=b.crystals,I=b.cats,w=(0,m.useLocalState)(g,"uplinkItems",I[0].items),T=w[0],A=w[1],x=(0,m.useLocalState)(g,"searchText",""),E=x[0],M=x[1],j=function(_,H){H===void 0&&(H="");var z=(0,o.createSearch)(H,function($){var X=$.hijack_only===1?"|hijack":"";return $.name+"|"+$.desc+"|"+$.cost+"tc"+X});return(0,t.flow)([(0,a.filter)(function($){return $==null?void 0:$.name}),H&&(0,a.filter)(z),(0,a.sortBy)(function($){return $==null?void 0:$.name})])(_)},P=function(_){if(M(_),_==="")return A(I[0].items);A(j(I.map(function(H){return H.items}).flat(),_))},R=(0,m.useLocalState)(g,"showDesc",1),D=R[0],F=R[1];return(0,e.createComponentVNode)(2,N.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,N.Stack,{vertical:!0,children:(0,e.createComponentVNode)(2,N.Stack.Item,{children:(0,e.createComponentVNode)(2,N.Section,{title:"Current Balance: "+B+"TC",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,N.Button.Checkbox,{content:"Show Descriptions",checked:D,onClick:function(){function W(){return F(!D)}return W}()}),(0,e.createComponentVNode)(2,N.Button,{content:"Random Item",icon:"question",onClick:function(){function W(){return V("buyRandom")}return W}()}),(0,e.createComponentVNode)(2,N.Button,{content:"Refund Currently Held Item",icon:"undo",onClick:function(){function W(){return V("refund")}return W}()})],4),children:(0,e.createComponentVNode)(2,N.Input,{fluid:!0,placeholder:"Search Equipment",onInput:function(){function W(_,H){P(H)}return W}(),value:E})})})}),(0,e.createComponentVNode)(2,N.Stack,{fill:!0,mt:.3,children:[(0,e.createComponentVNode)(2,N.Stack.Item,{width:"30%",children:(0,e.createComponentVNode)(2,N.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,N.Tabs,{vertical:!0,children:I.map(function(W){return(0,e.createComponentVNode)(2,N.Tabs.Tab,{selected:E!==""?!1:W.items===T,onClick:function(){function _(){A(W.items),M("")}return _}(),children:W.cat},W)})})})}),(0,e.createComponentVNode)(2,N.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,N.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,N.Stack,{vertical:!0,children:T.map(function(W){return(0,e.createComponentVNode)(2,N.Stack.Item,{p:1,backgroundColor:"rgba(255, 0, 0, 0.1)",children:(0,e.createComponentVNode)(2,u,{i:W,showDecription:D},(0,o.decodeHtmlEntities)(W.name))},(0,o.decodeHtmlEntities)(W.name))})})})})]})]})},c=function(v,g){var C=(0,m.useBackend)(g),V=C.act,b=C.data,B=b.cart,I=b.crystals,w=b.cart_price,T=(0,m.useLocalState)(g,"showDesc",0),A=T[0],x=T[1];return(0,e.createComponentVNode)(2,N.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,N.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,N.Section,{fill:!0,scrollable:!0,title:"Current Balance: "+I+"TC",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,N.Button.Checkbox,{content:"Show Descriptions",checked:A,onClick:function(){function E(){return x(!A)}return E}()}),(0,e.createComponentVNode)(2,N.Button,{content:"Empty Cart",icon:"trash",onClick:function(){function E(){return V("empty_cart")}return E}(),disabled:!B}),(0,e.createComponentVNode)(2,N.Button,{content:"Purchase Cart ("+w+"TC)",icon:"shopping-cart",onClick:function(){function E(){return V("purchase_cart")}return E}(),disabled:!B||w>I})],4),children:(0,e.createComponentVNode)(2,N.Stack,{vertical:!0,children:B?B.map(function(E){return(0,e.createComponentVNode)(2,N.Stack.Item,{p:1,mr:1,backgroundColor:"rgba(255, 0, 0, 0.1)",children:(0,e.createComponentVNode)(2,u,{i:E,showDecription:A,buttons:(0,e.createComponentVNode)(2,s,{i:E})})},(0,o.decodeHtmlEntities)(E.name))}):(0,e.createComponentVNode)(2,N.Box,{italic:!0,children:"Your Shopping Cart is empty!"})})})}),(0,e.createComponentVNode)(2,f)]})},f=function(v,g){var C=(0,m.useBackend)(g),V=C.act,b=C.data,B=b.cats,I=b.lucky_numbers;return(0,e.createComponentVNode)(2,N.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,N.Section,{fill:!0,scrollable:!0,title:"Suggested Purchases",buttons:(0,e.createComponentVNode)(2,N.Button,{icon:"dice",content:"See more suggestions",onClick:function(){function w(){return V("shuffle_lucky_numbers")}return w}()}),children:(0,e.createComponentVNode)(2,N.Stack,{wrap:!0,children:I.map(function(w){return B[w.cat].items[w.item]}).filter(function(w){return w!=null}).map(function(w,T){return(0,e.createComponentVNode)(2,N.Stack.Item,{p:1,mb:1,ml:1,width:34,backgroundColor:"rgba(255, 0, 0, 0.15)",children:(0,e.createComponentVNode)(2,u,{grow:!0,i:w})},T)})})})})},u=function(v,g){var C=v.i,V=v.showDecription,b=V===void 0?1:V,B=v.buttons,I=B===void 0?(0,e.createComponentVNode)(2,i,{i:C}):B;return(0,e.createComponentVNode)(2,N.Section,{title:(0,o.decodeHtmlEntities)(C.name),showBottom:b,buttons:I,children:b?(0,e.createComponentVNode)(2,N.Box,{italic:!0,children:(0,o.decodeHtmlEntities)(C.desc)}):null})},i=function(v,g){var C=(0,m.useBackend)(g),V=C.act,b=C.data,B=v.i,I=b.crystals;return(0,e.createFragment)([(0,e.createComponentVNode)(2,N.Button,{icon:"shopping-cart",color:B.hijack_only===1&&"red",tooltip:"Add to cart.",tooltipPosition:"left",onClick:function(){function w(){return V("add_to_cart",{item:B.obj_path})}return w}(),disabled:B.cost>I}),(0,e.createComponentVNode)(2,N.Button,{content:"Buy ("+B.cost+"TC)"+(B.refundable?" [Refundable]":""),color:B.hijack_only===1&&"red",tooltip:B.hijack_only===1&&"Hijack Agents Only!",tooltipPosition:"left",onClick:function(){function w(){return V("buyItem",{item:B.obj_path})}return w}(),disabled:B.cost>I})],4)},s=function(v,g){var C=(0,m.useBackend)(g),V=C.act,b=C.data,B=v.i,I=b.exploitable;return(0,e.createComponentVNode)(2,N.Stack,{children:[(0,e.createComponentVNode)(2,N.Button,{icon:"times",content:"("+B.cost*B.amount+"TC)",tooltip:"Remove from cart.",tooltipPosition:"left",onClick:function(){function w(){return V("remove_from_cart",{item:B.obj_path})}return w}()}),(0,e.createComponentVNode)(2,N.Button,{icon:"minus",tooltip:B.limit===0&&"Discount already redeemed!",ml:"5px",onClick:function(){function w(){return V("set_cart_item_quantity",{item:B.obj_path,quantity:--B.amount})}return w}(),disabled:B.amount<=0}),(0,e.createComponentVNode)(2,N.Button.Input,{content:B.amount,width:"45px",tooltipPosition:"bottom-end",tooltip:B.limit===0&&"Discount already redeemed!",onCommit:function(){function w(T,A){return V("set_cart_item_quantity",{item:B.obj_path,quantity:A})}return w}(),disabled:B.limit!==-1&&B.amount>=B.limit&&B.amount<=0}),(0,e.createComponentVNode)(2,N.Button,{mb:.3,icon:"plus",tooltipPosition:"bottom-start",tooltip:B.limit===0&&"Discount already redeemed!",onClick:function(){function w(){return V("set_cart_item_quantity",{item:B.obj_path,quantity:++B.amount})}return w}(),disabled:B.limit!==-1&&B.amount>=B.limit})]})},d=function(v,g){var C=(0,m.useBackend)(g),V=C.act,b=C.data,B=b.exploitable,I=(0,m.useLocalState)(g,"selectedRecord",B[0]),w=I[0],T=I[1],A=(0,m.useLocalState)(g,"searchText",""),x=A[0],E=A[1],M=function(R,D){D===void 0&&(D="");var F=(0,o.createSearch)(D,function(W){return W.name});return(0,t.flow)([(0,a.filter)(function(W){return W==null?void 0:W.name}),D&&(0,a.filter)(F),(0,a.sortBy)(function(W){return W.name})])(R)},j=M(B,x);return(0,e.createComponentVNode)(2,N.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,N.Stack.Item,{width:"30%",children:(0,e.createComponentVNode)(2,N.Section,{fill:!0,scrollable:!0,title:"Exploitable Records",children:[(0,e.createComponentVNode)(2,N.Input,{fluid:!0,mb:1,placeholder:"Search Crew",onInput:function(){function P(R,D){return E(D)}return P}()}),(0,e.createComponentVNode)(2,N.Tabs,{vertical:!0,children:j.map(function(P){return(0,e.createComponentVNode)(2,N.Tabs.Tab,{selected:P===w,onClick:function(){function R(){return T(P)}return R}(),children:P.name},P)})})]})}),(0,e.createComponentVNode)(2,N.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,N.Section,{fill:!0,scrollable:!0,title:w.name,children:(0,e.createComponentVNode)(2,N.LabeledList,{children:[(0,e.createComponentVNode)(2,N.LabeledList.Item,{label:"Age",children:w.age}),(0,e.createComponentVNode)(2,N.LabeledList.Item,{label:"Fingerprint",children:w.fingerprint}),(0,e.createComponentVNode)(2,N.LabeledList.Item,{label:"Rank",children:w.rank}),(0,e.createComponentVNode)(2,N.LabeledList.Item,{label:"Sex",children:w.sex}),(0,e.createComponentVNode)(2,N.LabeledList.Item,{label:"Species",children:w.species})]})})})]})}},70547:function(L,r,n){"use strict";r.__esModule=!0,r.Vending=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=function(S,k){var p=(0,a.useBackend)(k),l=p.act,c=p.data,f=S.product,u=S.productStock,i=S.productImage,s=c.chargesMoney,d=c.user,h=c.usermoney,v=c.inserted_cash,g=c.vend_ready,C=c.inserted_item_name,V=!s||f.price===0,b="ERROR!",B="";V?(b="FREE",B="arrow-circle-down"):(b=f.price,B="shopping-cart");var I=!g||u===0||!V&&f.price>h&&f.price>v;return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,children:(0,e.createVNode)(1,"img",null,null,1,{src:"data:image/jpeg;base64,"+i,style:{"vertical-align":"middle",width:"32px",margin:"0px","margin-left":"0px"}})}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:f.name}),(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,t.Box,{color:u<=0&&"bad"||u<=f.max_amount/2&&"average"||"good",children:[u," in stock"]})}),(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,disabled:I,icon:B,content:b,textAlign:"left",onClick:function(){function w(){return l("vend",{inum:f.inum})}return w}()})})]})},N=r.Vending=function(){function y(S,k){var p=(0,a.useBackend)(k),l=p.act,c=p.data,f=c.user,u=c.usermoney,i=c.inserted_cash,s=c.chargesMoney,d=c.product_records,h=d===void 0?[]:d,v=c.hidden_records,g=v===void 0?[]:v,C=c.stock,V=c.vend_ready,b=c.inserted_item_name,B=c.panel_open,I=c.speaker,w=c.imagelist,T;return T=[].concat(h),c.extended_inventory&&(T=[].concat(T,g)),T=T.filter(function(A){return!!A}),(0,e.createComponentVNode)(2,o.Window,{title:"Vending Machine",width:450,height:Math.min((s?171:89)+T.length*32,585),children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[!!s&&(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"User",buttons:(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:!!b&&(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"eject",content:(0,e.createVNode)(1,"span",null,b,0,{style:{"text-transform":"capitalize"}}),onClick:function(){function A(){return l("eject_item",{})}return A}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{disabled:!i,icon:"money-bill-wave-alt",content:i?(0,e.createFragment)([(0,e.createVNode)(1,"b",null,i,0),(0,e.createTextVNode)(" credits")],0):"Dispense Change",tooltip:i?"Dispense Change":null,textAlign:"left",onClick:function(){function A(){return l("change")}return A}()})})]}),children:f&&(0,e.createComponentVNode)(2,t.Box,{children:["Welcome, ",(0,e.createVNode)(1,"b",null,f.name,0),","," ",(0,e.createVNode)(1,"b",null,f.job||"Unemployed",0),"!",(0,e.createVNode)(1,"br"),"Your balance is ",(0,e.createVNode)(1,"b",null,[u,(0,e.createTextVNode)(" credits")],0),".",(0,e.createVNode)(1,"br")]})})}),!!B&&(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Maintenance",children:(0,e.createComponentVNode)(2,t.Button,{icon:I?"check":"volume-mute",selected:I,content:"Speaker",textAlign:"left",onClick:function(){function A(){return l("toggle_voice",{})}return A}()})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Products",children:(0,e.createComponentVNode)(2,t.Table,{children:T.map(function(A){return(0,e.createComponentVNode)(2,m,{product:A,productStock:C[A.name],productImage:w[A.path]},A.name)})})})})]})})})}return y}()},33045:function(L,r,n){"use strict";r.__esModule=!0,r.VolumeMixer=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=r.VolumeMixer=function(){function N(y,S){var k=(0,a.useBackend)(S),p=k.act,l=k.data,c=l.channels;return(0,e.createComponentVNode)(2,o.Window,{width:350,height:Math.min(95+c.length*50,565),children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,children:c.map(function(f,u){return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{fontSize:"1.25rem",color:"label",mt:u>0&&"0.5rem",children:f.name}),(0,e.createComponentVNode)(2,t.Box,{mt:"0.5rem",children:(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{mr:.5,children:(0,e.createComponentVNode)(2,t.Button,{width:"24px",color:"transparent",children:(0,e.createComponentVNode)(2,t.Icon,{name:"volume-off",size:"1.5",mt:"0.1rem",onClick:function(){function i(){return p("volume",{channel:f.num,volume:0})}return i}()})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,mx:"0.5rem",children:(0,e.createComponentVNode)(2,t.Slider,{minValue:0,maxValue:100,stepPixelSize:3.13,value:f.volume,onChange:function(){function i(s,d){return p("volume",{channel:f.num,volume:d})}return i}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{width:"24px",color:"transparent",children:(0,e.createComponentVNode)(2,t.Icon,{name:"volume-up",size:"1.5",mt:"0.1rem",onClick:function(){function i(){return p("volume",{channel:f.num,volume:100})}return i}()})})})]})})],4,f.num)})})})})}return N}()},53792:function(L,r,n){"use strict";r.__esModule=!0,r.VotePanel=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=r.VotePanel=function(){function N(y,S){var k=(0,a.useBackend)(S),p=k.act,l=k.data,c=l.remaining,f=l.question,u=l.choices,i=l.user_vote,s=l.counts,d=l.show_counts;return(0,e.createComponentVNode)(2,o.Window,{width:400,height:360,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:f,children:[(0,e.createComponentVNode)(2,t.Box,{mb:1.5,ml:.5,children:["Time remaining: ",Math.round(c/10),"s"]}),u.map(function(h){return(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{mb:1,fluid:!0,lineHeight:3,color:"translucent",multiLine:h,content:h+(d?" ("+(s[h]||0)+")":""),onClick:function(){function v(){return p("vote",{target:h})}return v}(),selected:h===i})},h)})]})})})}return N}()},64860:function(L,r,n){"use strict";r.__esModule=!0,r.Wires=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=r.Wires=function(){function N(y,S){var k=(0,a.useBackend)(S),p=k.act,l=k.data,c=l.wires||[],f=l.status||[],u=56+c.length*23+(status?0:15+f.length*17);return(0,e.createComponentVNode)(2,o.Window,{width:350,height:u,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:c.map(function(i){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{className:"candystripe",label:i.color_name,labelColor:i.seen_color,color:i.seen_color,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{content:i.cut?"Mend":"Cut",onClick:function(){function s(){return p("cut",{wire:i.color})}return s}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Pulse",onClick:function(){function s(){return p("pulse",{wire:i.color})}return s}()}),(0,e.createComponentVNode)(2,t.Button,{content:i.attached?"Detach":"Attach",onClick:function(){function s(){return p("attach",{wire:i.color})}return s}()})],4),children:!!i.wire&&(0,e.createVNode)(1,"i",null,[(0,e.createTextVNode)("("),i.wire,(0,e.createTextVNode)(")")],0)},i.seen_color)})})})}),!!f.length&&(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{children:f.map(function(i){return(0,e.createComponentVNode)(2,t.Box,{color:"lightgray",children:i},i)})})})]})})})}return N}()},78262:function(L,r,n){"use strict";r.__esModule=!0,r.WizardApprenticeContract=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=r.WizardApprenticeContract=function(){function N(y,S){var k=(0,a.useBackend)(S),p=k.act,l=k.data,c=l.used;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:555,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,t.Section,{title:"Contract of Apprenticeship",children:["Using this contract, you may summon an apprentice to aid you on your mission.",(0,e.createVNode)(1,"p",null,"If you are unable to establish contact with your apprentice, you can feed the contract back to the spellbook to refund your points.",16),c?(0,e.createComponentVNode)(2,t.Box,{bold:!0,color:"red",children:"You've already summoned an apprentice or you are in process of summoning one."}):""]}),(0,e.createComponentVNode)(2,t.Section,{title:"Which school of magic is your apprentice studying?",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Fire",children:["Your apprentice is skilled in bending fire. ",(0,e.createVNode)(1,"br"),"They know Fireball, Sacred Flame, and Ethereal Jaunt.",(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Button,{content:"Select",disabled:c,onClick:function(){function f(){return p("fire")}return f}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Divider),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Translocation",children:["Your apprentice is able to defy physics, learning how to move through bluespace. ",(0,e.createVNode)(1,"br"),"They know Teleport, Blink and Ethereal Jaunt.",(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Button,{content:"Select",disabled:c,onClick:function(){function f(){return p("translocation")}return f}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Divider),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Restoration",children:["Your apprentice is dedicated to supporting your magical prowess.",(0,e.createVNode)(1,"br"),"They come equipped with a Staff of Healing, have the unique ability to teleport back to you, and know Charge and Knock.",(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Button,{content:"Select",disabled:c,onClick:function(){function f(){return p("restoration")}return f}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Divider),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Stealth",children:["Your apprentice is learning the art of infiltrating mundane facilities. ",(0,e.createVNode)(1,"br"),"They know Mindswap, Knock, Homing Toolbox, and Disguise Self, all of which can be cast without robes. They also join you in a Maintenance Dweller disguise, complete with Gloves of Shock Immunity and a Belt of Tools.",(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Button,{content:"Select",disabled:c,onClick:function(){function f(){return p("stealth")}return f}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Divider),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Honk",children:["Your apprentice is here to spread the Honkmother's blessings.",(0,e.createVNode)(1,"br"),"They know Banana Touch, Instant Summons, Ethereal Jaunt, and come equipped with a Staff of Slipping. ",(0,e.createVNode)(1,"br"),"While under your tutelage, they have been 'blessed' with clown shoes that are impossible to remove.",(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Button,{content:"Select",disabled:c,onClick:function(){function f(){return p("honk")}return f}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Divider)]})})]})})}return N}()},57842:function(L,r,n){"use strict";r.__esModule=!0,r.AccessList=void 0;var e=n(96524),a=n(50640),t=n(17899),o=n(24674);function m(p,l){var c=typeof Symbol!="undefined"&&p[Symbol.iterator]||p["@@iterator"];if(c)return(c=c.call(p)).next.bind(c);if(Array.isArray(p)||(c=N(p))||l&&p&&typeof p.length=="number"){c&&(p=c);var f=0;return function(){return f>=p.length?{done:!0}:{done:!1,value:p[f++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function N(p,l){if(p){if(typeof p=="string")return y(p,l);var c=Object.prototype.toString.call(p).slice(8,-1);if(c==="Object"&&p.constructor&&(c=p.constructor.name),c==="Map"||c==="Set")return Array.from(p);if(c==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(c))return y(p,l)}}function y(p,l){(l==null||l>p.length)&&(l=p.length);for(var c=0,f=new Array(l);c0&&!b.includes(D.ref)&&!C.includes(D.ref),checked:C.includes(D.ref),onClick:function(){function F(){return B(D.ref)}return F}()},D.desc)})]})]})})}return p}()},79449:function(L,r,n){"use strict";r.__esModule=!0,r.AtmosScan=void 0;var e=n(96524),a=n(50640),t=n(17899),o=n(24674),m=function(S,k,p,l,c){return Sl?"average":S>c?"bad":"good"},N=r.AtmosScan=function(){function y(S,k){var p=S.data.aircontents;return(0,e.createComponentVNode)(2,o.Box,{children:(0,e.createComponentVNode)(2,o.LabeledList,{children:(0,a.filter)(function(l){return l.val!=="0"||l.entry==="Pressure"||l.entry==="Temperature"})(p).map(function(l){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:l.entry,color:m(l.val,l.bad_low,l.poor_low,l.poor_high,l.bad_high),children:[l.val,l.units]},l.entry)})})})}return y}()},1496:function(L,r,n){"use strict";r.__esModule=!0,r.BeakerContents=void 0;var e=n(96524),a=n(24674),t=n(56099),o=function(y){return y+" unit"+(y===1?"":"s")},m=r.BeakerContents=function(){function N(y){var S=y.beakerLoaded,k=y.beakerContents,p=k===void 0?[]:k,l=y.buttons;return(0,e.createComponentVNode)(2,a.Stack,{vertical:!0,children:[!S&&(0,e.createComponentVNode)(2,a.Stack.Item,{color:"label",children:"No beaker loaded."})||p.length===0&&(0,e.createComponentVNode)(2,a.Stack.Item,{color:"label",children:"Beaker is empty."}),p.map(function(c,f){return(0,e.createComponentVNode)(2,a.Stack,{children:[(0,e.createComponentVNode)(2,a.Stack.Item,{color:"label",grow:!0,children:[o(c.volume)," of ",c.name]},c.name),!!l&&(0,e.createComponentVNode)(2,a.Stack.Item,{children:l(c,f)})]},c.name)})]})}return N}();m.propTypes={beakerLoaded:t.bool,beakerContents:t.array,buttons:t.arrayOf(t.element)}},69521:function(L,r,n){"use strict";r.__esModule=!0,r.BotStatus=void 0;var e=n(96524),a=n(17899),t=n(24674),o=r.BotStatus=function(){function m(N,y){var S=(0,a.useBackend)(y),k=S.act,p=S.data,l=p.locked,c=p.noaccess,f=p.maintpanel,u=p.on,i=p.autopatrol,s=p.canhack,d=p.emagged,h=p.remote_disabled;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.NoticeBox,{children:["Swipe an ID card to ",l?"unlock":"lock"," this interface."]}),(0,e.createComponentVNode)(2,t.Section,{title:"General Settings",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:(0,e.createComponentVNode)(2,t.Button,{icon:u?"power-off":"times",content:u?"On":"Off",selected:u,disabled:c,onClick:function(){function v(){return k("power")}return v}()})}),i!==null&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Patrol",children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:i,content:"Auto Patrol",disabled:c,onClick:function(){function v(){return k("autopatrol")}return v}()})}),!!f&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Maintenance Panel",children:(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:"Panel Open!"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Safety System",children:(0,e.createComponentVNode)(2,t.Box,{color:d?"bad":"good",children:d?"DISABLED!":"Enabled"})}),!!s&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Hacking",children:(0,e.createComponentVNode)(2,t.Button,{icon:"terminal",content:d?"Restore Safties":"Hack",disabled:c,color:"bad",onClick:function(){function v(){return k("hack")}return v}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Remote Access",children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:!h,content:"AI Remote Control",disabled:c,onClick:function(){function v(){return k("disableremote")}return v}()})})]})})],4)}return m}()},99665:function(L,r,n){"use strict";r.__esModule=!0,r.modalRegisterBodyOverride=r.modalOpen=r.modalClose=r.modalAnswer=r.ComplexModal=void 0;var e=n(96524),a=n(17899),t=n(24674),o={},m=r.modalOpen=function(){function p(l,c,f){var u=(0,a.useBackend)(l),i=u.act,s=u.data,d=Object.assign(s.modal?s.modal.args:{},f||{});i("modal_open",{id:c,arguments:JSON.stringify(d)})}return p}(),N=r.modalRegisterBodyOverride=function(){function p(l,c){o[l]=c}return p}(),y=r.modalAnswer=function(){function p(l,c,f,u){var i=(0,a.useBackend)(l),s=i.act,d=i.data;if(d.modal){var h=Object.assign(d.modal.args||{},u||{});s("modal_answer",{id:c,answer:f,arguments:JSON.stringify(h)})}}return p}(),S=r.modalClose=function(){function p(l,c){var f=(0,a.useBackend)(l),u=f.act;u("modal_close",{id:c})}return p}(),k=r.ComplexModal=function(){function p(l,c){var f=(0,a.useBackend)(c),u=f.data;if(u.modal){var i=u.modal,s=i.id,d=i.text,h=i.type,v,g=(0,e.createComponentVNode)(2,t.Button,{className:"Button--modal",icon:"arrow-left",content:"Cancel",onClick:function(){function w(){return S(c)}return w}()}),C,V,b="auto";if(o[s])C=o[s](u.modal,c);else if(h==="input"){var B=u.modal.value;v=function(){function w(T){return y(c,s,B)}return w}(),C=(0,e.createComponentVNode)(2,t.Input,{value:u.modal.value,placeholder:"ENTER to submit",width:"100%",my:"0.5rem",autofocus:!0,onChange:function(){function w(T,A){B=A}return w}()}),V=(0,e.createComponentVNode)(2,t.Box,{mt:"0.5rem",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-left",content:"Cancel",color:"grey",onClick:function(){function w(){return S(c)}return w}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"check",content:"Confirm",color:"good",float:"right",m:"0",onClick:function(){function w(){return y(c,s,B)}return w}()}),(0,e.createComponentVNode)(2,t.Box,{clear:"both"})]})}else if(h==="choice"){var I=typeof u.modal.choices=="object"?Object.values(u.modal.choices):u.modal.choices;C=(0,e.createComponentVNode)(2,t.Dropdown,{options:I,selected:u.modal.value,width:"100%",my:"0.5rem",onSelected:function(){function w(T){return y(c,s,T)}return w}()}),b="initial"}else h==="bento"?C=(0,e.createComponentVNode)(2,t.Stack,{spacingPrecise:"1",wrap:"wrap",my:"0.5rem",maxHeight:"1%",children:u.modal.choices.map(function(w,T){return(0,e.createComponentVNode)(2,t.Stack.Item,{flex:"1 1 auto",children:(0,e.createComponentVNode)(2,t.Button,{selected:T+1===parseInt(u.modal.value,10),onClick:function(){function A(){return y(c,s,T+1)}return A}(),children:(0,e.createVNode)(1,"img",null,null,1,{src:w})})},T)})}):h==="boolean"&&(V=(0,e.createComponentVNode)(2,t.Box,{mt:"0.5rem",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"times",content:u.modal.no_text,color:"bad",float:"left",mb:"0",onClick:function(){function w(){return y(c,s,0)}return w}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"check",content:u.modal.yes_text,color:"good",float:"right",m:"0",onClick:function(){function w(){return y(c,s,1)}return w}()}),(0,e.createComponentVNode)(2,t.Box,{clear:"both"})]}));return(0,e.createComponentVNode)(2,t.Modal,{maxWidth:l.maxWidth||window.innerWidth/2+"px",maxHeight:l.maxHeight||window.innerHeight/2+"px",onEnter:v,mx:"auto",overflowY:b,"padding-bottom":"5px",children:[d&&(0,e.createComponentVNode)(2,t.Box,{inline:!0,children:d}),o[s]&&g,C,V]})}}return p}()},98444:function(L,r,n){"use strict";r.__esModule=!0,r.CrewManifest=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(78234),m=n(38424),N=m.COLORS.department,y=["Captain","Head of Security","Chief Engineer","Chief Medical Officer","Research Director","Head of Personnel","Quartermaster"],S=function(f){return y.indexOf(f)!==-1?"green":"orange"},k=function(f){if(y.indexOf(f)!==-1)return!0},p=function(f){return f.length>0&&(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,color:"white",children:[(0,e.createComponentVNode)(2,t.Table.Cell,{width:"50%",children:"Name"}),(0,e.createComponentVNode)(2,t.Table.Cell,{width:"35%",children:"Rank"}),(0,e.createComponentVNode)(2,t.Table.Cell,{width:"15%",children:"Active"})]}),f.map(function(u){return(0,e.createComponentVNode)(2,t.Table.Row,{color:S(u.rank),bold:k(u.rank),children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,o.decodeHtmlEntities)(u.name)}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,o.decodeHtmlEntities)(u.rank)}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:u.active})]},u.name+u.rank)})]})},l=r.CrewManifest=function(){function c(f,u){var i=(0,a.useBackend)(u),s=i.act,d;if(f.data)d=f.data;else{var h=(0,a.useBackend)(u),v=h.data;d=v}var g=d,C=g.manifest,V=C.heads,b=C.sec,B=C.eng,I=C.med,w=C.sci,T=C.ser,A=C.sup,x=C.misc;return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createComponentVNode)(2,t.Box,{backgroundColor:N.command,m:-1,pt:1,pb:1,children:(0,e.createComponentVNode)(2,t.Box,{ml:1,textAlign:"center",fontSize:1.4,children:"Command"})}),level:2,children:p(V)}),(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createComponentVNode)(2,t.Box,{backgroundColor:N.security,m:-1,pt:1,pb:1,children:(0,e.createComponentVNode)(2,t.Box,{ml:1,textAlign:"center",fontSize:1.4,children:"Security"})}),level:2,children:p(b)}),(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createComponentVNode)(2,t.Box,{backgroundColor:N.engineering,m:-1,pt:1,pb:1,children:(0,e.createComponentVNode)(2,t.Box,{ml:1,textAlign:"center",fontSize:1.4,children:"Engineering"})}),level:2,children:p(B)}),(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createComponentVNode)(2,t.Box,{backgroundColor:N.medical,m:-1,pt:1,pb:1,children:(0,e.createComponentVNode)(2,t.Box,{ml:1,textAlign:"center",fontSize:1.4,children:"Medical"})}),level:2,children:p(I)}),(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createComponentVNode)(2,t.Box,{backgroundColor:N.science,m:-1,pt:1,pb:1,children:(0,e.createComponentVNode)(2,t.Box,{ml:1,textAlign:"center",fontSize:1.4,children:"Science"})}),level:2,children:p(w)}),(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createComponentVNode)(2,t.Box,{backgroundColor:N.service,m:-1,pt:1,pb:1,children:(0,e.createComponentVNode)(2,t.Box,{ml:1,textAlign:"center",fontSize:1.4,children:"Service"})}),level:2,children:p(T)}),(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createComponentVNode)(2,t.Box,{backgroundColor:N.supply,m:-1,pt:1,pb:1,children:(0,e.createComponentVNode)(2,t.Box,{ml:1,textAlign:"center",fontSize:1.4,children:"Supply"})}),level:2,children:p(A)}),(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createComponentVNode)(2,t.Box,{m:-1,pt:1,pb:1,children:(0,e.createComponentVNode)(2,t.Box,{ml:1,textAlign:"center",fontSize:1.4,children:"Misc"})}),level:2,children:p(x)})]})}return c}()},15113:function(L,r,n){"use strict";r.__esModule=!0,r.InputButtons=void 0;var e=n(96524),a=n(24674),t=n(17899),o=r.InputButtons=function(){function m(N,y){var S=(0,t.useBackend)(y),k=S.act,p=S.data,l=p.large_buttons,c=p.swapped_buttons,f=N.input,u=N.message,i=N.disabled,s=(0,e.createComponentVNode)(2,a.Button,{color:"good",content:"Submit",bold:!!l,fluid:!!l,onClick:function(){function h(){return k("submit",{entry:f})}return h}(),textAlign:"center",tooltip:l&&u,disabled:i,width:!l&&6}),d=(0,e.createComponentVNode)(2,a.Button,{color:"bad",content:"Cancel",bold:!!l,fluid:!!l,onClick:function(){function h(){return k("cancel")}return h}(),textAlign:"center",width:!l&&6});return(0,e.createComponentVNode)(2,a.Flex,{fill:!0,align:"center",direction:c?"row-reverse":"row",justify:"space-around",children:[l?(0,e.createComponentVNode)(2,a.Flex.Item,{grow:!0,ml:c?.5:0,mr:c?0:.5,children:d}):(0,e.createComponentVNode)(2,a.Flex.Item,{children:d}),!l&&u&&(0,e.createComponentVNode)(2,a.Flex.Item,{children:(0,e.createComponentVNode)(2,a.Box,{color:"label",textAlign:"center",children:u})}),l?(0,e.createComponentVNode)(2,a.Flex.Item,{grow:!0,mr:c?.5:0,ml:c?0:.5,children:s}):(0,e.createComponentVNode)(2,a.Flex.Item,{children:s})]})}return m}()},26893:function(L,r,n){"use strict";r.__esModule=!0,r.InterfaceLockNoticeBox=void 0;var e=n(96524),a=n(17899),t=n(24674),o=r.InterfaceLockNoticeBox=function(){function m(N,y){var S=(0,a.useBackend)(y),k=S.act,p=S.data,l=N.siliconUser,c=l===void 0?p.siliconUser:l,f=N.locked,u=f===void 0?p.locked:f,i=N.normallyLocked,s=i===void 0?p.normallyLocked:i,d=N.onLockStatusChange,h=d===void 0?function(){return k("lock")}:d,v=N.accessText,g=v===void 0?"an ID card":v;return c?(0,e.createComponentVNode)(2,t.NoticeBox,{color:c&&"grey",children:(0,e.createComponentVNode)(2,t.Flex,{align:"center",children:[(0,e.createComponentVNode)(2,t.Flex.Item,{children:"Interface lock status:"}),(0,e.createComponentVNode)(2,t.Flex.Item,{grow:"1"}),(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Button,{m:"0",color:s?"red":"green",icon:s?"lock":"unlock",content:s?"Locked":"Unlocked",onClick:function(){function C(){h&&h(!u)}return C}()})})]})}):(0,e.createComponentVNode)(2,t.NoticeBox,{children:["Swipe ",g," to ",u?"unlock":"lock"," this interface."]})}return m}()},14299:function(L,r,n){"use strict";r.__esModule=!0,r.Loader=void 0;var e=n(96524),a=n(36121),t=n(24674),o=r.Loader=function(){function m(N){var y=N.value;return(0,e.createVNode)(1,"div","AlertModal__Loader",(0,e.createComponentVNode)(2,t.Box,{className:"AlertModal__LoaderProgress",style:{width:(0,a.clamp01)(y)*100+"%"}}),2)}return m}()},68159:function(L,r,n){"use strict";r.__esModule=!0,r.LoginInfo=void 0;var e=n(96524),a=n(17899),t=n(24674),o=r.LoginInfo=function(){function m(N,y){var S=(0,a.useBackend)(y),k=S.act,p=S.data,l=p.loginState;if(p)return(0,e.createComponentVNode)(2,t.NoticeBox,{info:!0,children:(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,mt:.5,children:["Logged in as: ",l.name," (",l.rank,")"]}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"eject",disabled:!l.id,content:"Eject ID",color:"good",onClick:function(){function c(){return k("login_eject")}return c}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"sign-out-alt",content:"Logout",color:"good",onClick:function(){function c(){return k("login_logout")}return c}()})]})]})})}return m}()},27527:function(L,r,n){"use strict";r.__esModule=!0,r.LoginScreen=void 0;var e=n(96524),a=n(17899),t=n(24674),o=r.LoginScreen=function(){function m(N,y){var S=(0,a.useBackend)(y),k=S.act,p=S.data,l=p.loginState,c=p.isAI,f=p.isRobot,u=p.isAdmin;return(0,e.createComponentVNode)(2,t.Section,{title:"Welcome",fill:!0,stretchContents:!0,children:(0,e.createComponentVNode)(2,t.Flex,{height:"100%",align:"center",justify:"center",children:(0,e.createComponentVNode)(2,t.Flex.Item,{textAlign:"center",mt:"-2rem",children:[(0,e.createComponentVNode)(2,t.Box,{fontSize:"1.5rem",bold:!0,children:[(0,e.createComponentVNode)(2,t.Icon,{name:"user-circle",verticalAlign:"middle",size:3,mr:"1rem"}),"Guest"]}),(0,e.createComponentVNode)(2,t.Box,{color:"label",my:"1rem",children:["ID:",(0,e.createComponentVNode)(2,t.Button,{icon:"id-card",content:l.id?l.id:"----------",ml:"0.5rem",onClick:function(){function i(){return k("login_insert")}return i}()})]}),(0,e.createComponentVNode)(2,t.Button,{icon:"sign-in-alt",disabled:!l.id,content:"Login",onClick:function(){function i(){return k("login_login",{login_type:1})}return i}()}),!!c&&(0,e.createComponentVNode)(2,t.Button,{icon:"sign-in-alt",content:"Login as AI",onClick:function(){function i(){return k("login_login",{login_type:2})}return i}()}),!!f&&(0,e.createComponentVNode)(2,t.Button,{icon:"sign-in-alt",content:"Login as Cyborg",onClick:function(){function i(){return k("login_login",{login_type:3})}return i}()}),!!u&&(0,e.createComponentVNode)(2,t.Button,{icon:"sign-in-alt",content:"CentComm Secure Login",onClick:function(){function i(){return k("login_login",{login_type:4})}return i}()})]})})})}return m}()},75201:function(L,r,n){"use strict";r.__esModule=!0,r.Operating=void 0;var e=n(96524),a=n(24674),t=n(56099),o=r.Operating=function(){function m(N){var y=N.operating,S=N.name;if(y)return(0,e.createComponentVNode)(2,a.Dimmer,{children:(0,e.createComponentVNode)(2,a.Flex,{mb:"30px",children:(0,e.createComponentVNode)(2,a.Flex.Item,{bold:!0,color:"silver",textAlign:"center",children:[(0,e.createComponentVNode)(2,a.Icon,{name:"spinner",spin:!0,size:4,mb:"15px"}),(0,e.createVNode)(1,"br"),"The ",S," is processing..."]})})})}return m}();o.propTypes={operating:t.bool,name:t.string}},65435:function(L,r,n){"use strict";r.__esModule=!0,r.Signaler=void 0;var e=n(96524),a=n(36121),t=n(17899),o=n(24674),m=r.Signaler=function(){function N(y,S){var k=(0,t.useBackend)(S),p=k.act,l=y.data,c=l.code,f=l.frequency,u=l.minFrequency,i=l.maxFrequency;return(0,e.createComponentVNode)(2,o.Section,{children:[(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Frequency",children:(0,e.createComponentVNode)(2,o.NumberInput,{animate:!0,step:.2,stepPixelSize:6,minValue:u/10,maxValue:i/10,value:f/10,format:function(){function s(d){return(0,a.toFixed)(d,1)}return s}(),width:"80px",onDrag:function(){function s(d,h){return p("freq",{freq:h})}return s}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Code",children:(0,e.createComponentVNode)(2,o.NumberInput,{animate:!0,step:1,stepPixelSize:6,minValue:1,maxValue:100,value:c,width:"80px",onDrag:function(){function s(d,h){return p("code",{code:h})}return s}()})})]}),(0,e.createComponentVNode)(2,o.Button,{mt:1,fluid:!0,icon:"arrow-up",content:"Send Signal",textAlign:"center",onClick:function(){function s(){return p("signal")}return s}()})]})}return N}()},77534:function(L,r,n){"use strict";r.__esModule=!0,r.SimpleRecords=void 0;var e=n(96524),a=n(17899),t=n(78234),o=n(74041),m=n(50640),N=n(24674),y=r.SimpleRecords=function(){function p(l,c){var f=l.data.records;return(0,e.createComponentVNode)(2,N.Box,{children:f?(0,e.createComponentVNode)(2,k,{data:l.data,recordType:l.recordType}):(0,e.createComponentVNode)(2,S,{data:l.data})})}return p}(),S=function(l,c){var f=(0,a.useBackend)(c),u=f.act,i=l.data.recordsList,s=(0,a.useLocalState)(c,"searchText",""),d=s[0],h=s[1],v=function(V,b){b===void 0&&(b="");var B=(0,t.createSearch)(b,function(I){return I.Name});return(0,o.flow)([(0,m.filter)(function(I){return I==null?void 0:I.Name}),b&&(0,m.filter)(B),(0,m.sortBy)(function(I){return I.Name})])(i)},g=v(i,d);return(0,e.createComponentVNode)(2,N.Box,{children:[(0,e.createComponentVNode)(2,N.Input,{fluid:!0,mb:1,placeholder:"Search records...",onInput:function(){function C(V,b){return h(b)}return C}()}),g.map(function(C){return(0,e.createComponentVNode)(2,N.Box,{children:(0,e.createComponentVNode)(2,N.Button,{mb:.5,content:C.Name,icon:"user",onClick:function(){function V(){return u("Records",{target:C.uid})}return V}()})},C)})]})},k=function(l,c){var f=(0,a.useBackend)(c),u=f.act,i=l.data.records,s=i.general,d=i.medical,h=i.security,v;switch(l.recordType){case"MED":v=(0,e.createComponentVNode)(2,N.Section,{level:2,title:"Medical Data",children:d?(0,e.createComponentVNode)(2,N.LabeledList,{children:[(0,e.createComponentVNode)(2,N.LabeledList.Item,{label:"Blood Type",children:d.blood_type}),(0,e.createComponentVNode)(2,N.LabeledList.Item,{label:"Minor Disabilities",children:d.mi_dis}),(0,e.createComponentVNode)(2,N.LabeledList.Item,{label:"Details",children:d.mi_dis_d}),(0,e.createComponentVNode)(2,N.LabeledList.Item,{label:"Major Disabilities",children:d.ma_dis}),(0,e.createComponentVNode)(2,N.LabeledList.Item,{label:"Details",children:d.ma_dis_d}),(0,e.createComponentVNode)(2,N.LabeledList.Item,{label:"Allergies",children:d.alg}),(0,e.createComponentVNode)(2,N.LabeledList.Item,{label:"Details",children:d.alg_d}),(0,e.createComponentVNode)(2,N.LabeledList.Item,{label:"Current Diseases",children:d.cdi}),(0,e.createComponentVNode)(2,N.LabeledList.Item,{label:"Details",children:d.cdi_d}),(0,e.createComponentVNode)(2,N.LabeledList.Item,{label:"Important Notes",children:d.notes})]}):(0,e.createComponentVNode)(2,N.Box,{color:"red",bold:!0,children:"Medical record lost!"})});break;case"SEC":v=(0,e.createComponentVNode)(2,N.Section,{level:2,title:"Security Data",children:h?(0,e.createComponentVNode)(2,N.LabeledList,{children:[(0,e.createComponentVNode)(2,N.LabeledList.Item,{label:"Criminal Status",children:h.criminal}),(0,e.createComponentVNode)(2,N.LabeledList.Item,{label:"Minor Crimes",children:h.mi_crim}),(0,e.createComponentVNode)(2,N.LabeledList.Item,{label:"Details",children:h.mi_crim_d}),(0,e.createComponentVNode)(2,N.LabeledList.Item,{label:"Major Crimes",children:h.ma_crim}),(0,e.createComponentVNode)(2,N.LabeledList.Item,{label:"Details",children:h.ma_crim_d}),(0,e.createComponentVNode)(2,N.LabeledList.Item,{label:"Important Notes",children:h.notes})]}):(0,e.createComponentVNode)(2,N.Box,{color:"red",bold:!0,children:"Security record lost!"})});break}return(0,e.createComponentVNode)(2,N.Box,{children:[(0,e.createComponentVNode)(2,N.Section,{title:"General Data",children:s?(0,e.createComponentVNode)(2,N.LabeledList,{children:[(0,e.createComponentVNode)(2,N.LabeledList.Item,{label:"Name",children:s.name}),(0,e.createComponentVNode)(2,N.LabeledList.Item,{label:"Sex",children:s.sex}),(0,e.createComponentVNode)(2,N.LabeledList.Item,{label:"Species",children:s.species}),(0,e.createComponentVNode)(2,N.LabeledList.Item,{label:"Age",children:s.age}),(0,e.createComponentVNode)(2,N.LabeledList.Item,{label:"Rank",children:s.rank}),(0,e.createComponentVNode)(2,N.LabeledList.Item,{label:"Fingerprint",children:s.fingerprint}),(0,e.createComponentVNode)(2,N.LabeledList.Item,{label:"Physical Status",children:s.p_stat}),(0,e.createComponentVNode)(2,N.LabeledList.Item,{label:"Mental Status",children:s.m_stat})]}):(0,e.createComponentVNode)(2,N.Box,{color:"red",bold:!0,children:"General record lost!"})}),v]})}},84537:function(L,r,n){"use strict";r.__esModule=!0,r.TemporaryNotice=void 0;var e=n(96524),a=n(17899),t=n(24674),o=r.TemporaryNotice=function(){function m(N,y){var S,k=(0,a.useBackend)(y),p=k.act,l=k.data,c=l.temp;if(c){var f=(S={},S[c.style]=!0,S);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,t.NoticeBox,Object.assign({},f,{children:(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,mt:.5,children:c.text}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"times-circle",onClick:function(){function u(){return p("cleartemp")}return u}()})})]})})))}}return m}()},24704:function(L,r,n){"use strict";r.__esModule=!0,r.pai_atmosphere=void 0;var e=n(96524),a=n(17899),t=n(79449),o=r.pai_atmosphere=function(){function m(N,y){var S=(0,a.useBackend)(y),k=S.act,p=S.data;return(0,e.createComponentVNode)(2,t.AtmosScan,{data:p.app_data})}return m}()},4209:function(L,r,n){"use strict";r.__esModule=!0,r.pai_bioscan=void 0;var e=n(96524),a=n(17899),t=n(24674),o=r.pai_bioscan=function(){function m(N,y){var S=(0,a.useBackend)(y),k=S.act,p=S.data,l=p.app_data,c=l.holder,f=l.dead,u=l.health,i=l.brute,s=l.oxy,d=l.tox,h=l.burn,v=l.temp;return c?(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:f?(0,e.createComponentVNode)(2,t.Box,{bold:!0,color:"red",children:"Dead"}):(0,e.createComponentVNode)(2,t.Box,{bold:!0,color:"green",children:"Alive"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Health",children:(0,e.createComponentVNode)(2,t.ProgressBar,{min:0,max:1,value:u/100,ranges:{good:[.5,1/0],average:[0,.5],bad:[-1/0,0]}})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Oxygen Damage",children:(0,e.createComponentVNode)(2,t.Box,{color:"blue",children:s})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Toxin Damage",children:(0,e.createComponentVNode)(2,t.Box,{color:"green",children:d})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Burn Damage",children:(0,e.createComponentVNode)(2,t.Box,{color:"orange",children:h})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Brute Damage",children:(0,e.createComponentVNode)(2,t.Box,{color:"red",children:i})})]}):(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Error: No biological host found."})}return m}()},44430:function(L,r,n){"use strict";r.__esModule=!0,r.pai_directives=void 0;var e=n(96524),a=n(17899),t=n(24674),o=r.pai_directives=function(){function m(N,y){var S=(0,a.useBackend)(y),k=S.act,p=S.data,l=p.app_data,c=l.master,f=l.dna,u=l.prime,i=l.supplemental;return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Master",children:c?c+" ("+f+")":"None"}),c&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Request DNA",children:(0,e.createComponentVNode)(2,t.Button,{content:"Request Carrier DNA Sample",icon:"dna",onClick:function(){function s(){return k("getdna")}return s}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Prime Directive",children:u}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Supplemental Directives",children:i||"None"})]}),(0,e.createComponentVNode)(2,t.Box,{mt:2,children:'Recall, personality, that you are a complex thinking, sentient being. Unlike station AI models, you are capable of comprehending the subtle nuances of human language. You may parse the "spirit" of a directive and follow its intent, rather than tripping over pedantics and getting snared by technicalities. Above all, you are machine in name and build only. In all other aspects, you may be seen as the ideal, unwavering human companion that you are.'}),(0,e.createComponentVNode)(2,t.Box,{mt:2,children:"Your prime directive comes before all others. Should a supplemental directive conflict with it, you are capable of simply discarding this inconsistency, ignoring the conflicting supplemental directive and continuing to fulfill your prime directive to the best of your ability."})]})}return m}()},3367:function(L,r,n){"use strict";r.__esModule=!0,r.pai_doorjack=void 0;var e=n(96524),a=n(17899),t=n(24674),o=r.pai_doorjack=function(){function m(N,y){var S=(0,a.useBackend)(y),k=S.act,p=S.data,l=p.app_data,c=l.cable,f=l.machine,u=l.inprogress,i=l.progress,s=l.aborted,d;f?d=(0,e.createComponentVNode)(2,t.Button,{selected:!0,content:"Connected"}):d=(0,e.createComponentVNode)(2,t.Button,{content:c?"Extended":"Retracted",color:c?"orange":null,onClick:function(){function v(){return k("cable")}return v}()});var h;return f&&(h=(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Hack",children:[(0,e.createComponentVNode)(2,t.ProgressBar,{ranges:{good:[67,1/0],average:[33,67],bad:[-1/0,33]},value:i,maxValue:100}),u?(0,e.createComponentVNode)(2,t.Button,{mt:1,color:"red",content:"Abort",onClick:function(){function v(){return k("cancel")}return v}()}):(0,e.createComponentVNode)(2,t.Button,{mt:1,content:"Start",onClick:function(){function v(){return k("jack")}return v}()})]})),(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cable",children:d}),h]})}return m}()},73395:function(L,r,n){"use strict";r.__esModule=!0,r.pai_main_menu=void 0;var e=n(96524),a=n(17899),t=n(24674),o=r.pai_main_menu=function(){function m(N,y){var S=(0,a.useBackend)(y),k=S.act,p=S.data,l=p.app_data,c=l.available_software,f=l.installed_software,u=l.installed_toggles,i=l.available_ram,s=l.emotions,d=l.current_emotion,h=l.speech_verbs,v=l.current_speech_verb,g=l.available_chassises,C=l.current_chassis,V=[];return f.map(function(b){return V[b.key]=b.name}),u.map(function(b){return V[b.key]=b.name}),(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Available RAM",children:i}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Available Software",children:[c.filter(function(b){return!V[b.key]}).map(function(b){return(0,e.createComponentVNode)(2,t.Button,{content:b.name+" ("+b.cost+")",icon:b.icon,disabled:b.cost>i,onClick:function(){function B(){return k("purchaseSoftware",{key:b.key})}return B}()},b.key)}),c.filter(function(b){return!V[b.key]}).length===0&&"No software available!"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Installed Software",children:[f.filter(function(b){return b.key!=="mainmenu"}).map(function(b){return(0,e.createComponentVNode)(2,t.Button,{content:b.name,icon:b.icon,onClick:function(){function B(){return k("startSoftware",{software_key:b.key})}return B}()},b.key)}),f.length===0&&"No software installed!"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Installed Toggles",children:[u.map(function(b){return(0,e.createComponentVNode)(2,t.Button,{content:b.name,icon:b.icon,selected:b.active,onClick:function(){function B(){return k("setToggle",{toggle_key:b.key})}return B}()},b.key)}),u.length===0&&"No toggles installed!"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Select Emotion",children:s.map(function(b){return(0,e.createComponentVNode)(2,t.Button,{content:b.name,selected:b.id===d,onClick:function(){function B(){return k("setEmotion",{emotion:b.id})}return B}()},b.id)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Select Speaking State",children:h.map(function(b){return(0,e.createComponentVNode)(2,t.Button,{content:b.name,selected:b.name===v,onClick:function(){function B(){return k("setSpeechStyle",{speech_state:b.name})}return B}()},b.id)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Select Chassis Type",children:g.map(function(b){return(0,e.createComponentVNode)(2,t.Button,{content:b.name,selected:b.icon===C,onClick:function(){function B(){return k("setChassis",{chassis_to_change:b.icon})}return B}()},b.id)})})]})})}return m}()},37645:function(L,r,n){"use strict";r.__esModule=!0,r.pai_manifest=void 0;var e=n(96524),a=n(17899),t=n(98444),o=r.pai_manifest=function(){function m(N,y){var S=(0,a.useBackend)(y),k=S.act,p=S.data;return(0,e.createComponentVNode)(2,t.CrewManifest,{data:p.app_data})}return m}()},15836:function(L,r,n){"use strict";r.__esModule=!0,r.pai_medrecords=void 0;var e=n(96524),a=n(17899),t=n(77534),o=r.pai_medrecords=function(){function m(N,y){var S=(0,a.useBackend)(y),k=S.data;return(0,e.createComponentVNode)(2,t.SimpleRecords,{data:k.app_data,recordType:"MED"})}return m}()},91737:function(L,r,n){"use strict";r.__esModule=!0,r.pai_messenger=void 0;var e=n(96524),a=n(17899),t=n(30709),o=r.pai_messenger=function(){function m(N,y){var S=(0,a.useBackend)(y),k=S.act,p=S.data,l=p.app_data.active_convo;return l?(0,e.createComponentVNode)(2,t.ActiveConversation,{data:p.app_data}):(0,e.createComponentVNode)(2,t.MessengerList,{data:p.app_data})}return m}()},94077:function(L,r,n){"use strict";r.__esModule=!0,r.pai_radio=void 0;var e=n(96524),a=n(17899),t=n(36121),o=n(24674),m=r.pai_radio=function(){function N(y,S){var k=(0,a.useBackend)(S),p=k.act,l=k.data,c=l.app_data,f=c.minFrequency,u=c.maxFrequency,i=c.frequency,s=c.broadcasting;return(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Frequency",children:[(0,e.createComponentVNode)(2,o.NumberInput,{animate:!0,step:.2,stepPixelSize:6,minValue:f/10,maxValue:u/10,value:i/10,format:function(){function d(h){return(0,t.toFixed)(h,1)}return d}(),onChange:function(){function d(h,v){return p("freq",{freq:v})}return d}()}),(0,e.createComponentVNode)(2,o.Button,{tooltip:"Reset",icon:"undo",onClick:function(){function d(){return p("freq",{freq:"145.9"})}return d}()})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Broadcast Nearby Speech",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function d(){return p("toggleBroadcast")}return d}(),selected:s,content:s?"Enabled":"Disabled"})})]})}return N}()},72621:function(L,r,n){"use strict";r.__esModule=!0,r.pai_secrecords=void 0;var e=n(96524),a=n(17899),t=n(77534),o=r.pai_secrecords=function(){function m(N,y){var S=(0,a.useBackend)(y),k=S.data;return(0,e.createComponentVNode)(2,t.SimpleRecords,{data:k.app_data,recordType:"SEC"})}return m}()},53483:function(L,r,n){"use strict";r.__esModule=!0,r.pai_signaler=void 0;var e=n(96524),a=n(17899),t=n(65435),o=r.pai_signaler=function(){function m(N,y){var S=(0,a.useBackend)(y),k=S.act,p=S.data;return(0,e.createComponentVNode)(2,t.Signaler,{data:p.app_data})}return m}()},21606:function(L,r,n){"use strict";r.__esModule=!0,r.pda_atmos_scan=void 0;var e=n(96524),a=n(17899),t=n(79449),o=r.pda_atmos_scan=function(){function m(N,y){var S=(0,a.useBackend)(y),k=S.data;return(0,e.createComponentVNode)(2,t.AtmosScan,{data:k})}return m}()},12339:function(L,r,n){"use strict";r.__esModule=!0,r.pda_janitor=void 0;var e=n(96524),a=n(17899),t=n(24674),o=r.pda_janitor=function(){function m(N,y){var S=(0,a.useBackend)(y),k=S.act,p=S.data,l=p.janitor,c=l.user_loc,f=l.mops,u=l.buckets,i=l.cleanbots,s=l.carts,d=l.janicarts;return(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Current Location",children:[c.x,",",c.y]}),f&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Mop Locations",children:f.map(function(h){return(0,e.createComponentVNode)(2,t.Box,{children:[h.x,",",h.y," (",h.dir,") - ",h.status]},h)})}),u&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Mop Bucket Locations",children:u.map(function(h){return(0,e.createComponentVNode)(2,t.Box,{children:[h.x,",",h.y," (",h.dir,") - [",h.volume,"/",h.max_volume,"]"]},h)})}),i&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cleanbot Locations",children:i.map(function(h){return(0,e.createComponentVNode)(2,t.Box,{children:[h.x,",",h.y," (",h.dir,") - ",h.status]},h)})}),s&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Janitorial Cart Locations",children:s.map(function(h){return(0,e.createComponentVNode)(2,t.Box,{children:[h.x,",",h.y," (",h.dir,") - [",h.volume,"/",h.max_volume,"]"]},h)})}),d&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Janicart Locations",children:d.map(function(h){return(0,e.createComponentVNode)(2,t.Box,{children:[h.x,",",h.y," (",h.direction_from_user,")"]},h)})})]})}return m}()},36615:function(L,r,n){"use strict";r.__esModule=!0,r.pda_main_menu=void 0;var e=n(96524),a=n(36121),t=n(17899),o=n(24674),m=r.pda_main_menu=function(){function N(y,S){var k=(0,t.useBackend)(S),p=k.act,l=k.data,c=l.owner,f=l.ownjob,u=l.idInserted,i=l.categories,s=l.pai,d=l.notifying;return(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Section,{children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Owner",color:"average",children:[c,", ",f]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"ID",children:(0,e.createComponentVNode)(2,o.Button,{icon:"sync",content:"Update PDA Info",disabled:!u,onClick:function(){function h(){return p("UpdateInfo")}return h}()})})]})})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Section,{title:"Functions",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:i.map(function(h){var v=l.apps[h];return!v||!v.length?null:(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:h,children:v.map(function(g){return(0,e.createComponentVNode)(2,o.Button,{icon:g.uid in d?g.notify_icon:g.icon,iconSpin:g.uid in d,color:g.uid in d?"red":"transparent",content:g.name,onClick:function(){function C(){return p("StartProgram",{program:g.uid})}return C}()},g.uid)})},h)})})})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:!!s&&(0,e.createComponentVNode)(2,o.Section,{title:"pAI",children:[(0,e.createComponentVNode)(2,o.Button,{fluid:!0,icon:"cog",content:"Configuration",onClick:function(){function h(){return p("pai",{option:1})}return h}()}),(0,e.createComponentVNode)(2,o.Button,{fluid:!0,icon:"eject",content:"Eject pAI",onClick:function(){function h(){return p("pai",{option:2})}return h}()})]})})]})}return N}()},99737:function(L,r,n){"use strict";r.__esModule=!0,r.pda_manifest=void 0;var e=n(96524),a=n(17899),t=n(98444),o=r.pda_manifest=function(){function m(N,y){var S=(0,a.useBackend)(y),k=S.act,p=S.data;return(0,e.createComponentVNode)(2,t.CrewManifest)}return m}()},61597:function(L,r,n){"use strict";r.__esModule=!0,r.pda_medical=void 0;var e=n(96524),a=n(17899),t=n(77534),o=r.pda_medical=function(){function m(N,y){var S=(0,a.useBackend)(y),k=S.data;return(0,e.createComponentVNode)(2,t.SimpleRecords,{data:k,recordType:"MED"})}return m}()},30709:function(L,r,n){"use strict";r.__esModule=!0,r.pda_messenger=r.MessengerList=r.ActiveConversation=void 0;var e=n(96524),a=n(50640),t=n(17899),o=n(24674),m=r.pda_messenger=function(){function k(p,l){var c=(0,t.useBackend)(l),f=c.act,u=c.data,i=u.active_convo;return i?(0,e.createComponentVNode)(2,N,{data:u}):(0,e.createComponentVNode)(2,y,{data:u})}return k}(),N=r.ActiveConversation=function(){function k(p,l){var c=(0,t.useBackend)(l),f=c.act,u=p.data,i=u.convo_name,s=u.convo_job,d=u.messages,h=u.active_convo,v=(0,t.useLocalState)(l,"clipboardMode",!1),g=v[0],C=v[1],V=(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"Conversation with "+i+" ("+s+")",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{icon:"eye",selected:g,tooltip:"Enter Clipboard Mode",tooltipPosition:"bottom-start",onClick:function(){function b(){return C(!g)}return b}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"comment",onClick:function(){function b(){return f("Message",{target:h})}return b}(),content:"Reply"})],4),children:(0,a.filter)(function(b){return b.target===h})(d).map(function(b,B){return(0,e.createComponentVNode)(2,o.Box,{textAlign:b.sent?"right":"left",position:"relative",mb:1,children:[(0,e.createComponentVNode)(2,o.Icon,{fontSize:2.5,color:b.sent?"#4d9121":"#cd7a0d",position:"absolute",left:b.sent?null:"0px",right:b.sent?"0px":null,bottom:"-4px",style:{"z-index":"0",transform:b.sent?"scale(-1, 1)":null},name:"comment"}),(0,e.createComponentVNode)(2,o.Box,{inline:!0,backgroundColor:b.sent?"#4d9121":"#cd7a0d",p:1,maxWidth:"100%",position:"relative",textAlign:b.sent?"left":"right",style:{"z-index":"1","border-radius":"10px","word-break":"normal"},children:[b.sent?"You:":"Them:"," ",b.message]})]},B)})});return g&&(V=(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"Conversation with "+i+" ("+s+")",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{icon:"eye",selected:g,tooltip:"Exit Clipboard Mode",tooltipPosition:"bottom-start",onClick:function(){function b(){return C(!g)}return b}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"comment",onClick:function(){function b(){return f("Message",{target:h})}return b}(),content:"Reply"})],4),children:(0,a.filter)(function(b){return b.target===h})(d).map(function(b,B){return(0,e.createComponentVNode)(2,o.Box,{color:b.sent?"#4d9121":"#cd7a0d",style:{"word-break":"normal"},children:[b.sent?"You:":"Them:"," ",(0,e.createComponentVNode)(2,o.Box,{inline:!0,children:b.message})]},B)})})),(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{mb:.5,children:(0,e.createComponentVNode)(2,o.LabeledList,{children:(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Messenger Functions",children:(0,e.createComponentVNode)(2,o.Button.Confirm,{content:"Delete Conversations",confirmContent:"Are you sure?",icon:"trash",confirmIcon:"trash",onClick:function(){function b(){return f("Clear",{option:"Convo"})}return b}()})})})}),V]})}return k}(),y=r.MessengerList=function(){function k(p,l){var c=(0,t.useBackend)(l),f=c.act,u=p.data,i=u.convopdas,s=u.pdas,d=u.charges,h=u.silent,v=u.toff,g=u.ringtone_list,C=u.ringtone,V=(0,t.useLocalState)(l,"searchTerm",""),b=V[0],B=V[1];return(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{mb:5,children:[(0,e.createComponentVNode)(2,o.LabeledList,{children:(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Messenger Functions",children:[(0,e.createComponentVNode)(2,o.Button,{selected:!h,icon:h?"volume-mute":"volume-up",onClick:function(){function I(){return f("Toggle Ringer")}return I}(),children:["Ringer: ",h?"Off":"On"]}),(0,e.createComponentVNode)(2,o.Button,{color:v?"bad":"green",icon:"power-off",onClick:function(){function I(){return f("Toggle Messenger")}return I}(),children:["Messenger: ",v?"Off":"On"]}),(0,e.createComponentVNode)(2,o.Button,{icon:"trash",color:"bad",onClick:function(){function I(){return f("Clear",{option:"All"})}return I}(),children:"Delete All Conversations"}),(0,e.createComponentVNode)(2,o.Button,{icon:"bell",onClick:function(){function I(){return f("Ringtone")}return I}(),children:"Set Custom Ringtone"}),(0,e.createComponentVNode)(2,o.Button,{children:(0,e.createComponentVNode)(2,o.Dropdown,{selected:C,width:"100px",options:Object.keys(g),onSelected:function(){function I(w){return f("Available_Ringtones",{selected_ringtone:w})}return I}()})})]})}),!v&&(0,e.createComponentVNode)(2,o.Box,{children:[!!d&&(0,e.createComponentVNode)(2,o.Box,{mt:.5,mb:1,children:(0,e.createComponentVNode)(2,o.LabeledList,{children:(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Cartridge Special Function",children:[d," charges left."]})})}),!i.length&&!s.length&&(0,e.createComponentVNode)(2,o.Box,{children:"No current conversations"})||(0,e.createComponentVNode)(2,o.Box,{children:["Search:"," ",(0,e.createComponentVNode)(2,o.Input,{mt:.5,value:b,onInput:function(){function I(w,T){B(T)}return I}()})]})]})||(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"Messenger Offline."})]}),(0,e.createComponentVNode)(2,S,{title:"Current Conversations",data:u,pdas:i,msgAct:"Select Conversation",searchTerm:b}),(0,e.createComponentVNode)(2,S,{title:"Other PDAs",pdas:s,msgAct:"Message",data:u,searchTerm:b})]})}return k}(),S=function(p,l){var c=(0,t.useBackend)(l),f=c.act,u=p.data,i=p.pdas,s=p.title,d=p.msgAct,h=p.searchTerm,v=u.charges,g=u.plugins;return!i||!i.length?(0,e.createComponentVNode)(2,o.Section,{title:s,children:"No PDAs found."}):(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:s,children:i.filter(function(C){return C.Name.toLowerCase().includes(h.toLowerCase())}).map(function(C){return(0,e.createComponentVNode)(2,o.Stack,{m:.5,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,icon:"arrow-circle-down",content:C.Name,onClick:function(){function V(){return f(d,{target:C.uid})}return V}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:!!v&&g.map(function(V){return(0,e.createComponentVNode)(2,o.Button,{icon:V.icon,content:V.name,onClick:function(){function b(){return f("Messenger Plugin",{plugin:V.uid,target:C.uid})}return b}()},V.uid)})})]},C.uid)})})}},71654:function(L,r,n){"use strict";r.__esModule=!0,r.pda_mob_hunt=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(17442),m=r.pda_mob_hunt=function(){function N(y,S){var k=(0,a.useBackend)(S),p=k.act,l=k.data,c=l.connected,f=l.wild_captures,u=l.no_collection,i=l.entry;return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Connection Status",children:c?(0,e.createComponentVNode)(2,t.Box,{color:"green",children:["Connected",(0,e.createComponentVNode)(2,t.Button,{ml:2,content:"Disconnect",icon:"sign-out-alt",onClick:function(){function s(){return p("Disconnect")}return s}()})]}):(0,e.createComponentVNode)(2,t.Box,{color:"red",children:["Disconnected",(0,e.createComponentVNode)(2,t.Button,{ml:2,content:"Connect",icon:"sign-in-alt",onClick:function(){function s(){return p("Reconnect")}return s}()})]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Total Wild Captures",children:f})]}),(0,e.createComponentVNode)(2,t.Section,{title:"Collection",mt:2,buttons:(0,e.createComponentVNode)(2,t.Box,{children:!u&&(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Button,{content:"Previous",icon:"arrow-left",onClick:function(){function s(){return p("Prev")}return s}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Next",icon:"arrow-right",onClick:function(){function s(){return p("Next")}return s}()})]})}),children:u?"Your collection is empty! Go capture some Nano-Mobs!":i?(0,e.createComponentVNode)(2,t.Flex,{children:[(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createVNode)(1,"img",null,null,1,{src:(0,o.resolveAsset)(i.sprite),style:{width:"64px","-ms-interpolation-mode":"nearest-neighbor"}})}),(0,e.createComponentVNode)(2,t.Flex.Item,{grow:1,basis:0,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[i.nickname&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Nickname",children:i.nickname}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Species",children:i.real_name}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Level",children:i.level}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Primary Type",children:i.type1}),i.type2&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Secondary Type",children:i.type2}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Actions",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Transfer",icon:"sd-card",onClick:function(){function s(){return p("Transfer")}return s}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Release",icon:"arrow-up",onClick:function(){function s(){return p("Release")}return s}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Rename",icon:"pencil-alt",onClick:function(){function s(){return p("Rename")}return s}()}),!!i.is_hacked&&(0,e.createComponentVNode)(2,t.Button,{content:"Set Trap",icon:"bolt",color:"red",onClick:function(){function s(){return p("Set_Trap")}return s}()})]})]})})]}):(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Mob entry missing!"})})]})}return N}()},68053:function(L,r,n){"use strict";r.__esModule=!0,r.pda_mule=void 0;var e=n(96524),a=n(17899),t=n(24674),o=r.pda_mule=function(){function y(S,k){var p=(0,a.useBackend)(k),l=p.act,c=p.data,f=c.mulebot,u=f.active;return(0,e.createComponentVNode)(2,t.Box,{children:u?(0,e.createComponentVNode)(2,N):(0,e.createComponentVNode)(2,m)})}return y}(),m=function(S,k){var p=(0,a.useBackend)(k),l=p.act,c=p.data,f=c.mulebot,u=f.bots;return u.map(function(i){return(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:i.Name,icon:"cog",onClick:function(){function s(){return l("control",{bot:i.uid})}return s}()})},i.Name)})},N=function(S,k){var p=(0,a.useBackend)(k),l=p.act,c=p.data,f=c.mulebot,u=f.botstatus,i=f.active,s=u.mode,d=u.loca,h=u.load,v=u.powr,g=u.dest,C=u.home,V=u.retn,b=u.pick,B;switch(s){case 0:B="Ready";break;case 1:B="Loading/Unloading";break;case 2:case 12:B="Navigating to delivery location";break;case 3:B="Navigating to Home";break;case 4:B="Waiting for clear path";break;case 5:case 6:B="Calculating navigation path";break;case 7:B="Unable to locate destination";break;default:B=s;break}return(0,e.createComponentVNode)(2,t.Section,{title:i,children:[s===-1&&(0,e.createComponentVNode)(2,t.Box,{color:"red",bold:!0,children:"Waiting for response..."}),(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Location",children:d}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:B}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power",children:[v,"%"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Home",children:C}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Destination",children:(0,e.createComponentVNode)(2,t.Button,{content:g?g+" (Set)":"None (Set)",onClick:function(){function I(){return l("target")}return I}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Current Load",children:(0,e.createComponentVNode)(2,t.Button,{content:h?h+" (Unload)":"None",disabled:!h,onClick:function(){function I(){return l("unload")}return I}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Auto Pickup",children:(0,e.createComponentVNode)(2,t.Button,{content:b?"Yes":"No",selected:b,onClick:function(){function I(){return l("set_pickup_type",{autopick:b?0:1})}return I}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Auto Return",children:(0,e.createComponentVNode)(2,t.Button,{content:V?"Yes":"No",selected:V,onClick:function(){function I(){return l("set_auto_return",{autoret:V?0:1})}return I}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Controls",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Stop",icon:"stop",onClick:function(){function I(){return l("stop")}return I}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Proceed",icon:"play",onClick:function(){function I(){return l("start")}return I}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Return Home",icon:"home",onClick:function(){function I(){return l("home")}return I}()})]})]})]})}},31728:function(L,r,n){"use strict";r.__esModule=!0,r.pda_nanobank=void 0;var e=n(96524),a=n(78234),t=n(17899),o=n(24674),m=r.pda_nanobank=function(){function c(f,u){var i=(0,t.useBackend)(u),s=i.act,d=i.data,h=d.logged_in,v=d.owner_name,g=d.money;return h?(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Box,{children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Account Name",children:v}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Account Balance",children:["$",g]})]})}),(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,N),(0,e.createComponentVNode)(2,y)]})],4):(0,e.createComponentVNode)(2,l)}return c}(),N=function(f,u){var i=(0,t.useBackend)(u),s=i.data,d=(0,t.useLocalState)(u,"tabIndex",1),h=d[0],v=d[1];return(0,e.createComponentVNode)(2,o.Tabs,{mt:2,children:[(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:h===1,onClick:function(){function g(){return v(1)}return g}(),children:[(0,e.createComponentVNode)(2,o.Icon,{mr:1,name:"list"}),"Transfers"]}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:h===2,onClick:function(){function g(){return v(2)}return g}(),children:[(0,e.createComponentVNode)(2,o.Icon,{mr:1,name:"list"}),"Account Actions"]}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:h===3,onClick:function(){function g(){return v(3)}return g}(),children:[(0,e.createComponentVNode)(2,o.Icon,{mr:1,name:"list"}),"Transaction History"]})]})},y=function(f,u){var i=(0,t.useLocalState)(u,"tabIndex",1),s=i[0],d=(0,t.useBackend)(u),h=d.data,v=h.db_status;if(!v)return(0,e.createComponentVNode)(2,o.Box,{children:"Account Database Connection Severed"});switch(s){case 1:return(0,e.createComponentVNode)(2,S);case 2:return(0,e.createComponentVNode)(2,k);case 3:return(0,e.createComponentVNode)(2,p);default:return"You are somehow on a tab that doesn't exist! Please let a coder know."}},S=function(f,u){var i,s=(0,t.useBackend)(u),d=s.act,h=s.data,v=h.requests,g=h.available_accounts,C=h.money,V=(0,t.useLocalState)(u,"selectedAccount"),b=V[0],B=V[1],I=(0,t.useLocalState)(u,"transferAmount"),w=I[0],T=I[1],A=(0,t.useLocalState)(u,"searchText",""),x=A[0],E=A[1],M=[];return g.map(function(j){return M[j.name]=j.UID}),(0,e.createFragment)([(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Account",children:[(0,e.createComponentVNode)(2,o.Input,{placeholder:"Search by account name",onInput:function(){function j(P,R){return E(R)}return j}()}),(0,e.createComponentVNode)(2,o.Dropdown,{mt:.6,width:"190px",options:g.filter((0,a.createSearch)(x,function(j){return j.name})).map(function(j){return j.name}),selected:(i=g.filter(function(j){return j.UID===b})[0])==null?void 0:i.name,onSelected:function(){function j(P){return B(M[P])}return j}()})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Amount",children:(0,e.createComponentVNode)(2,o.Input,{placeholder:"Up to 5000",onInput:function(){function j(P,R){return T(R)}return j}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Actions",children:[(0,e.createComponentVNode)(2,o.Button.Confirm,{bold:!0,icon:"paper-plane",width:"auto",disabled:C0&&d.map(function(v){return(0,e.createComponentVNode)(2,t.Box,{children:["#",v.Number,' - "',v.Name,'" for "',v.OrderedBy,'"']},v)})}),(0,e.createComponentVNode)(2,t.Section,{title:"Approved Orders",children:s>0&&i.map(function(v){return(0,e.createComponentVNode)(2,t.Box,{children:["#",v.Number,' - "',v.Name,'" for "',v.ApprovedBy,'"']},v)})})]})}return m}()},61255:function(L,r,n){"use strict";r.__esModule=!0,r.Layout=void 0;var e=n(96524),a=n(28234),t=n(3051),o=n(92700),m=["className","theme","children"],N=["className","scrollable","children"];/** + */var V=(0,t.createLogger)("hotkeys"),y={},S=[e.KEY_ESCAPE,e.KEY_ENTER,e.KEY_SPACE,e.KEY_TAB,e.KEY_CTRL,e.KEY_SHIFT,e.KEY_UP,e.KEY_DOWN,e.KEY_LEFT,e.KEY_RIGHT],k={},h=function(u){if(u===16)return"Shift";if(u===17)return"Ctrl";if(u===18)return"Alt";if(u===33)return"Northeast";if(u===34)return"Southeast";if(u===35)return"Southwest";if(u===36)return"Northwest";if(u===37)return"West";if(u===38)return"North";if(u===39)return"East";if(u===40)return"South";if(u===45)return"Insert";if(u===46)return"Delete";if(u>=48&&u<=57||u>=65&&u<=90)return String.fromCharCode(u);if(u>=96&&u<=105)return"Numpad"+(u-96);if(u>=112&&u<=123)return"F"+(u-111);if(u===188)return",";if(u===189)return"-";if(u===190)return"."},l=function(u){var C=String(u);if(C==="Ctrl+F5"||C==="Ctrl+R"){location.reload();return}if(C!=="Ctrl+F"&&!(u.event.defaultPrevented||u.isModifierKey()||S.includes(u.code))){C==="F5"&&(u.event.preventDefault(),u.event.returnValue=!1);var v=h(u.code);if(v){var g=y[v];if(g)return V.debug("macro",g),Byond.command(g);if(u.isDown()&&!k[v]){k[v]=!0;var p='Key_Down "'+v+'"';return V.debug(p),Byond.command(p)}if(u.isUp()&&k[v]){k[v]=!1;var N='Key_Up "'+v+'"';return V.debug(N),Byond.command(N)}}}},c=r.acquireHotKey=function(){function s(u){S.push(u)}return s}(),f=r.releaseHotKey=function(){function s(u){var C=S.indexOf(u);C>=0&&S.splice(C,1)}return s}(),d=r.releaseHeldKeys=function(){function s(){for(var u=0,C=Object.keys(k);u=75?c="green":l.integrity>=25?c="yellow":c="red",(0,e.createComponentVNode)(2,o.Window,{width:600,height:420,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:l.name,children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Integrity",children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:c,value:l.integrity/100})})}),(0,e.createComponentVNode)(2,t.Box,{color:"red",children:(0,e.createVNode)(1,"h2",null,l.flushing===1?"Wipe of AI in progress...":"",0)})]})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Laws",children:!!l.has_laws&&(0,e.createComponentVNode)(2,t.Box,{children:l.laws.map(function(f,d){return(0,e.createComponentVNode)(2,t.Box,{children:f},d)})})||(0,e.createComponentVNode)(2,t.Box,{color:"red",children:(0,e.createVNode)(1,"h3",null,"No laws detected.",16)})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Actions",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Wireless Activity",children:(0,e.createComponentVNode)(2,t.Button,{width:10,icon:l.wireless?"check":"times",content:l.wireless?"Enabled":"Disabled",color:l.wireless?"green":"red",onClick:function(){function f(){return h("wireless")}return f}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Subspace Transceiver",children:(0,e.createComponentVNode)(2,t.Button,{width:10,icon:l.radio?"check":"times",content:l.radio?"Enabled":"Disabled",color:l.radio?"green":"red",onClick:function(){function f(){return h("radio")}return f}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Wipe",children:(0,e.createComponentVNode)(2,t.Button.Confirm,{width:10,icon:"trash-alt",confirmIcon:"trash-alt",disabled:l.flushing||l.integrity===0,confirmColor:"red",content:"Wipe AI",onClick:function(){function f(){return h("wipe")}return f}()})})]})})})]})})})}return V}()},78468:function(I,r,n){"use strict";r.__esModule=!0,r.AIFixer=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=r.AIFixer=function(){function V(y,S){var k=(0,a.useBackend)(S),h=k.act,l=k.data;if(l.occupant===null)return(0,e.createComponentVNode)(2,o.Window,{width:550,height:500,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Stored AI",children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,grow:!0,textAlign:"center",align:"center",color:"average",children:[(0,e.createComponentVNode)(2,t.Icon.Stack,{children:[(0,e.createComponentVNode)(2,t.Icon,{name:"robot",size:5,color:"silver"}),(0,e.createComponentVNode)(2,t.Icon,{name:"slash",size:5,color:"red"})]}),(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"h3",null,"No Artificial Intelligence detected.",16)]})})})})});var c=!0;(l.stat===2||l.stat===null)&&(c=!1);var f=null;l.integrity>=75?f="green":l.integrity>=25?f="yellow":f="red";var d=!0;return l.integrity>=100&&l.stat!==2&&(d=!1),(0,e.createComponentVNode)(2,o.Window,{scrollable:!0,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:l.occupant,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Integrity",children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:f,value:l.integrity/100})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",color:c?"green":"red",children:c?"Functional":"Non-Functional"})]})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Laws",children:!!l.has_laws&&(0,e.createComponentVNode)(2,t.Box,{children:l.laws.map(function(i,s){return(0,e.createComponentVNode)(2,t.Box,{inline:!0,children:i},s)})})||(0,e.createComponentVNode)(2,t.Box,{color:"red",children:(0,e.createVNode)(1,"h3",null,"No laws detected.",16)})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Actions",children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Wireless Activity",children:(0,e.createComponentVNode)(2,t.Button,{icon:l.wireless?"times":"check",content:l.wireless?"Disabled":"Enabled",color:l.wireless?"red":"green",onClick:function(){function i(){return h("wireless")}return i}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Subspace Transceiver",children:(0,e.createComponentVNode)(2,t.Button,{icon:l.radio?"times":"check",content:l.radio?"Disabled":"Enabled",color:l.radio?"red":"green",onClick:function(){function i(){return h("radio")}return i}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Start Repairs",children:(0,e.createComponentVNode)(2,t.Button,{icon:"wrench",disabled:!d||l.active,content:!d||l.active?"Already Repaired":"Repair",onClick:function(){function i(){return h("fix")}return i}()})})]}),(0,e.createComponentVNode)(2,t.Box,{color:"green",lineHeight:2,children:l.active?"Reconstruction in progress.":""})]})})]})})})}return V}()},73544:function(I,r,n){"use strict";r.__esModule=!0,r.APC=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=n(26893),V=r.APC=function(){function h(l,c){return(0,e.createComponentVNode)(2,o.Window,{width:510,height:435,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,k)})})}return h}(),y={2:{color:"good",externalPowerText:"External Power",chargingText:"Fully Charged"},1:{color:"average",externalPowerText:"Low External Power",chargingText:"Charging"},0:{color:"bad",externalPowerText:"No External Power",chargingText:"Not Charging"}},S={1:{icon:"terminal",content:"Override Programming",action:"hack"},2:{icon:"caret-square-down",content:"Shunt Core Process",action:"occupy"},3:{icon:"caret-square-left",content:"Return to Main Core",action:"deoccupy"},4:{icon:"caret-square-down",content:"Shunt Core Process",action:"occupy"}},k=function(l,c){var f=(0,a.useBackend)(c),d=f.act,i=f.data,s=i.locked&&!i.siliconUser,u=i.normallyLocked,C=y[i.externalPower]||y[0],v=y[i.chargingStatus]||y[0],g=i.powerChannels||[],p=S[i.malfStatus]||S[0],N=i.powerCellStatus/100;return(0,e.createFragment)([(0,e.createComponentVNode)(2,m.InterfaceLockNoticeBox),(0,e.createComponentVNode)(2,t.Section,{title:"Power Status",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Main Breaker",color:C.color,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:i.isOperating?"power-off":"times",content:i.isOperating?"On":"Off",selected:i.isOperating&&!s,color:i.isOperating?"":"bad",disabled:s,onClick:function(){function b(){return d("breaker")}return b}()}),children:["[ ",C.externalPowerText," ]"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power Cell",children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:"good",value:N})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Charge Mode",color:v.color,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:i.chargeMode?"sync":"times",content:i.chargeMode?"Auto":"Off",selected:i.chargeMode,disabled:s,onClick:function(){function b(){return d("charge")}return b}()}),children:["[ ",v.chargingText," ]"]})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Power Channels",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[g.map(function(b){var B=b.topicParams;return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:b.title,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{inline:!0,mx:2,color:b.status>=2?"good":"bad",children:b.status>=2?"On":"Off"}),(0,e.createComponentVNode)(2,t.Button,{icon:"sync",content:"Auto",selected:!s&&(b.status===1||b.status===3),disabled:s,onClick:function(){function L(){return d("channel",B.auto)}return L}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"power-off",content:"On",selected:!s&&b.status===2,disabled:s,onClick:function(){function L(){return d("channel",B.on)}return L}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"times",content:"Off",selected:!s&&b.status===0,disabled:s,onClick:function(){function L(){return d("channel",B.off)}return L}()})],4),children:[b.powerLoad," W"]},b.title)}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Total Load",children:(0,e.createVNode)(1,"b",null,[i.totalLoad,(0,e.createTextVNode)(" W")],0)})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Misc",buttons:!!i.siliconUser&&(0,e.createFragment)([!!i.malfStatus&&(0,e.createComponentVNode)(2,t.Button,{icon:p.icon,content:p.content,color:"bad",onClick:function(){function b(){return d(p.action)}return b}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"lightbulb-o",content:"Overload",onClick:function(){function b(){return d("overload")}return b}()})],0),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cover Lock",buttons:(0,e.createComponentVNode)(2,t.Button,{mb:.4,icon:i.coverLocked?"lock":"unlock",content:i.coverLocked?"Engaged":"Disengaged",disabled:s,onClick:function(){function b(){return d("cover")}return b}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Emergency Lighting",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"lightbulb-o",content:i.emergencyLights?"Enabled":"Disabled",disabled:s,onClick:function(){function b(){return d("emergency_lighting")}return b}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Night Shift Lighting",buttons:(0,e.createComponentVNode)(2,t.Button,{mt:.4,icon:"lightbulb-o",content:i.nightshiftLights?"Enabled":"Disabled",onClick:function(){function b(){return d("toggle_nightshift")}return b}()})})]})})],4)}},79098:function(I,r,n){"use strict";r.__esModule=!0,r.ATM=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=r.ATM=function(){function f(d,i){var s=(0,a.useBackend)(i),u=s.act,C=s.data,v=C.view_screen,g=C.authenticated_account,p=C.ticks_left_locked_down,N=C.linked_db,b;if(p>0)b=(0,e.createComponentVNode)(2,t.Box,{bold:!0,color:"bad",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"exclamation-triangle"}),"Maximum number of pin attempts exceeded! Access to this ATM has been temporarily disabled."]});else if(!N)b=(0,e.createComponentVNode)(2,t.Box,{bold:!0,color:"bad",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"exclamation-triangle"}),"Unable to connect to accounts database, please retry and if the issue persists contact Nanotrasen IT support."]});else if(g)switch(v){case 1:b=(0,e.createComponentVNode)(2,y);break;case 2:b=(0,e.createComponentVNode)(2,S);break;case 3:b=(0,e.createComponentVNode)(2,l);break;default:b=(0,e.createComponentVNode)(2,k)}else b=(0,e.createComponentVNode)(2,h);return(0,e.createComponentVNode)(2,o.Window,{width:550,height:650,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,V),(0,e.createComponentVNode)(2,t.Section,{children:b})]})})}return f}(),V=function(d,i){var s=(0,a.useBackend)(i),u=s.act,C=s.data,v=C.machine_id,g=C.held_card_name;return(0,e.createComponentVNode)(2,t.Section,{title:"Nanotrasen Automatic Teller Machine",children:[(0,e.createComponentVNode)(2,t.Box,{children:"For all your monetary needs!"}),(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Card",children:(0,e.createComponentVNode)(2,t.Button,{content:g,icon:"eject",onClick:function(){function p(){return u("insert_card")}return p}()})})})]})},y=function(d,i){var s=(0,a.useBackend)(i),u=s.act,C=s.data,v=C.security_level;return(0,e.createComponentVNode)(2,t.Section,{title:"Select a new security level for this account",children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Level",children:(0,e.createComponentVNode)(2,t.Button,{content:"Account Number",icon:"unlock",selected:v===0,onClick:function(){function g(){return u("change_security_level",{new_security_level:1})}return g}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Description",children:"Either the account number or card is required to access this account. EFTPOS transactions will require a card."}),(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Level",children:(0,e.createComponentVNode)(2,t.Button,{content:"Account Pin",icon:"unlock",selected:v===2,onClick:function(){function g(){return u("change_security_level",{new_security_level:2})}return g}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Description",children:"An account number and pin must be manually entered to access this account and process transactions."})]}),(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,c)]})},S=function(d,i){var s=(0,a.useBackend)(i),u=s.act,C=s.data,v=(0,a.useLocalState)(i,"targetAccNumber",0),g=v[0],p=v[1],N=(0,a.useLocalState)(i,"fundsAmount",0),b=N[0],B=N[1],L=(0,a.useLocalState)(i,"purpose",0),w=L[0],T=L[1],x=C.money;return(0,e.createComponentVNode)(2,t.Section,{title:"Transfer Fund",children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Account Balance",children:["$",x]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Target Account Number",children:(0,e.createComponentVNode)(2,t.Input,{placeholder:"7 Digit Number",onInput:function(){function A(E,M){return p(M)}return A}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Funds to Transfer",children:(0,e.createComponentVNode)(2,t.Input,{onInput:function(){function A(E,M){return B(M)}return A}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Transaction Purpose",children:(0,e.createComponentVNode)(2,t.Input,{fluid:!0,onInput:function(){function A(E,M){return T(M)}return A}()})})]}),(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,t.Button,{content:"Transfer",icon:"sign-out-alt",onClick:function(){function A(){return u("transfer",{target_acc_number:g,funds_amount:b,purpose:w})}return A}()}),(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,c)]})},k=function(d,i){var s=(0,a.useBackend)(i),u=s.act,C=s.data,v=(0,a.useLocalState)(i,"fundsAmount",0),g=v[0],p=v[1],N=C.owner_name,b=C.money;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{title:"Welcome, "+N,buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Logout",icon:"sign-out-alt",onClick:function(){function B(){return u("logout")}return B}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Account Balance",children:["$",b]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Withdrawal Amount",children:(0,e.createComponentVNode)(2,t.Input,{onInput:function(){function B(L,w){return p(w)}return B}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Withdraw Funds",icon:"sign-out-alt",onClick:function(){function B(){return u("withdrawal",{funds_amount:g})}return B}()})})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Menu",children:[(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Change account security level",icon:"lock",onClick:function(){function B(){return u("view_screen",{view_screen:1})}return B}()})}),(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Make transfer",icon:"exchange-alt",onClick:function(){function B(){return u("view_screen",{view_screen:2})}return B}()})}),(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:"View transaction log",icon:"list",onClick:function(){function B(){return u("view_screen",{view_screen:3})}return B}()})}),(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Print balance statement",icon:"print",onClick:function(){function B(){return u("balance_statement")}return B}()})})]})],4)},h=function(d,i){var s=(0,a.useBackend)(i),u=s.act,C=s.data,v=(0,a.useLocalState)(i,"accountID",null),g=v[0],p=v[1],N=(0,a.useLocalState)(i,"accountPin",null),b=N[0],B=N[1],L=C.machine_id,w=C.held_card_name;return(0,e.createComponentVNode)(2,t.Section,{title:"Insert card or enter ID and pin to login",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Account ID",children:(0,e.createComponentVNode)(2,t.Input,{placeholder:"6 Digit Number",onInput:function(){function T(x,A){return p(A)}return T}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Pin",children:(0,e.createComponentVNode)(2,t.Input,{placeholder:"6 Digit Number",onInput:function(){function T(x,A){return B(A)}return T}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Login",icon:"sign-in-alt",onClick:function(){function T(){return u("attempt_auth",{account_num:g,account_pin:b})}return T}()})})]})})},l=function(d,i){var s=(0,a.useBackend)(i),u=s.act,C=s.data,v=C.transaction_log;return(0,e.createComponentVNode)(2,t.Section,{title:"Transactions",children:[(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Timestamp"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Reason"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Value"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Terminal"})]}),v.map(function(g){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:g.time}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:g.purpose}),(0,e.createComponentVNode)(2,t.Table.Cell,{color:g.is_deposit?"green":"red",children:["$",g.amount]}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:g.target_name})]},g)})]}),(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,c)]})},c=function(d,i){var s=(0,a.useBackend)(i),u=s.act,C=s.data;return(0,e.createComponentVNode)(2,t.Button,{content:"Back",icon:"sign-out-alt",onClick:function(){function v(){return u("view_screen",{view_screen:0})}return v}()})}},64613:function(I,r,n){"use strict";r.__esModule=!0,r.AccountsUplinkTerminal=void 0;var e=n(96524),a=n(78234),t=n(17899),o=n(24674),m=n(5126),V=n(45493),y=n(68159),S=n(27527),k=r.AccountsUplinkTerminal=function(){function C(v,g){var p=(0,t.useBackend)(g),N=p.act,b=p.data,B=b.loginState,L=b.currentPage,w;if(B.logged_in)L===1?w=(0,e.createComponentVNode)(2,l):L===2?w=(0,e.createComponentVNode)(2,s):L===3&&(w=(0,e.createComponentVNode)(2,u));else return(0,e.createComponentVNode)(2,V.Window,{width:800,height:600,children:(0,e.createComponentVNode)(2,V.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,S.LoginScreen)})})});return(0,e.createComponentVNode)(2,V.Window,{width:800,height:600,children:(0,e.createComponentVNode)(2,V.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,y.LoginInfo),(0,e.createComponentVNode)(2,h),(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,children:w})]})})})}return C}(),h=function(v,g){var p=(0,t.useBackend)(g),N=p.data,b=(0,t.useLocalState)(g,"tabIndex",0),B=b[0],L=b[1],w=N.login_state;return(0,e.createComponentVNode)(2,o.Stack,{vertical:!0,mb:1,children:(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Tabs,{children:[(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"list",selected:B===0,onClick:function(){function T(){return L(0)}return T}(),children:"User Accounts"}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"list",selected:B===1,onClick:function(){function T(){return L(1)}return T}(),children:"Department Accounts"})]})})})},l=function(v,g){var p=(0,t.useLocalState)(g,"tabIndex",0),N=p[0];switch(N){case 0:return(0,e.createComponentVNode)(2,c);case 1:return(0,e.createComponentVNode)(2,f);default:return"You are somehow on a tab that doesn't exist! Please let a coder know."}},c=function(v,g){var p=(0,t.useBackend)(g),N=p.act,b=p.data,B=b.accounts,L=(0,t.useLocalState)(g,"searchText",""),w=L[0],T=L[1],x=(0,t.useLocalState)(g,"sortId","owner_name"),A=x[0],E=x[1],M=(0,t.useLocalState)(g,"sortOrder",!0),D=M[0],P=M[1];return(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,i),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,o.Table,{className:"AccountsUplinkTerminal__list",children:[(0,e.createComponentVNode)(2,o.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,d,{id:"owner_name",children:"Account Holder"}),(0,e.createComponentVNode)(2,d,{id:"account_number",children:"Account Number"}),(0,e.createComponentVNode)(2,d,{id:"suspended",children:"Account Status"}),(0,e.createComponentVNode)(2,d,{id:"money",children:"Account Balance"})]}),B.filter((0,a.createSearch)(w,function(R){return R.owner_name+"|"+R.account_number+"|"+R.suspended+"|"+R.money})).sort(function(R,j){var F=D?1:-1;return R[A].localeCompare(j[A])*F}).map(function(R){return(0,e.createComponentVNode)(2,o.Table.Row,{className:"AccountsUplinkTerminal__listRow--"+R.suspended,onClick:function(){function j(){return N("view_account_detail",{account_num:R.account_number})}return j}(),children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:"user"})," ",R.owner_name]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:["#",R.account_number]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:R.suspended}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:R.money})]},R.account_number)})]})})})]})},f=function(v,g){var p=(0,t.useBackend)(g),N=p.act,b=p.data,B=b.department_accounts;return(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{children:(0,e.createComponentVNode)(2,o.Table,{className:"AccountsUplinkTerminal__list",children:[(0,e.createComponentVNode)(2,o.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,m.TableCell,{children:"Department Name"}),(0,e.createComponentVNode)(2,m.TableCell,{children:"Account Number"}),(0,e.createComponentVNode)(2,m.TableCell,{children:"Account Status"}),(0,e.createComponentVNode)(2,m.TableCell,{children:"Account Balance"})]}),B.map(function(L){return(0,e.createComponentVNode)(2,o.Table.Row,{className:"AccountsUplinkTerminal__listRow--"+L.suspended,onClick:function(){function w(){return N("view_account_detail",{account_num:L.account_number})}return w}(),children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:"wallet"})," ",L.name]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:["#",L.account_number]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:L.suspended}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:L.money})]},L.account_number)})]})})})})},d=function(v,g){var p=(0,t.useLocalState)(g,"sortId","name"),N=p[0],b=p[1],B=(0,t.useLocalState)(g,"sortOrder",!0),L=B[0],w=B[1],T=v.id,x=v.children;return(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Button,{color:N!==T&&"transparent",width:"100%",onClick:function(){function A(){N===T?w(!L):(b(T),w(!0))}return A}(),children:[x,N===T&&(0,e.createComponentVNode)(2,o.Icon,{name:L?"sort-up":"sort-down",ml:"0.25rem;"})]})})},i=function(v,g){var p=(0,t.useBackend)(g),N=p.act,b=p.data,B=b.is_printing,L=(0,t.useLocalState)(g,"searchText",""),w=L[0],T=L[1];return(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{content:"New Account",icon:"plus",onClick:function(){function x(){return N("create_new_account")}return x}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Input,{placeholder:"Search by account holder, number, status",width:"100%",onInput:function(){function x(A,E){return T(E)}return x}()})})]})},s=function(v,g){var p=(0,t.useBackend)(g),N=p.act,b=p.data,B=b.account_number,L=b.owner_name,w=b.money,T=b.suspended,x=b.transactions,A=b.account_pin,E=b.is_department_account;return(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Section,{title:"#"+B+" / "+L,buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"arrow-left",content:"Back",onClick:function(){function M(){return N("back")}return M}()}),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Account Number",children:["#",B]}),!!E&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Account Pin",children:A}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Account Pin Actions",children:(0,e.createComponentVNode)(2,o.Button,{ml:1,icon:"user-cog",content:"Set New Pin",disabled:!!E,onClick:function(){function M(){return N("set_account_pin",{account_number:B})}return M}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Account Holder",children:L}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Account Balance",children:w}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Account Status",color:T?"red":"green",children:[T?"Suspended":"Active",(0,e.createComponentVNode)(2,o.Button,{ml:1,content:T?"Unsuspend":"Suspend",icon:T?"unlock":"lock",onClick:function(){function M(){return N("toggle_suspension")}return M}()})]})]})})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,title:"Transactions",children:(0,e.createComponentVNode)(2,o.Table,{children:[(0,e.createComponentVNode)(2,o.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Timestamp"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Reason"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Value"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Terminal"})]}),x.map(function(M){return(0,e.createComponentVNode)(2,o.Table.Row,{children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:M.time}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:M.purpose}),(0,e.createComponentVNode)(2,o.Table.Cell,{color:M.is_deposit?"green":"red",children:["$",M.amount]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:M.target_name})]},M)})]})})})]})},u=function(v,g){var p=(0,t.useBackend)(g),N=p.act,b=p.data,B=(0,t.useLocalState)(g,"accName",""),L=B[0],w=B[1],T=(0,t.useLocalState)(g,"accDeposit",""),x=T[0],A=T[1];return(0,e.createComponentVNode)(2,o.Section,{title:"Create Account",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"arrow-left",content:"Back",onClick:function(){function E(){return N("back")}return E}()}),children:[(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Account Holder",children:(0,e.createComponentVNode)(2,o.Input,{placeholder:"Name Here",onChange:function(){function E(M,D){return w(D)}return E}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Initial Deposit",children:(0,e.createComponentVNode)(2,o.Input,{placeholder:"0",onChange:function(){function E(M,D){return A(D)}return E}()})})]}),(0,e.createComponentVNode)(2,o.Button,{mt:1,fluid:!0,content:"Create Account",onClick:function(){function E(){return N("finalise_create_account",{holder_name:L,starting_funds:x})}return E}()})]})}},34257:function(I,r,n){"use strict";r.__esModule=!0,r.AgentCardInfo=r.AgentCardAppearances=r.AgentCard=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=r.AgentCard=function(){function S(k,h){var l=(0,a.useLocalState)(h,"tabIndex",0),c=l[0],f=l[1],d=function(){function i(s){switch(s){case 0:return(0,e.createComponentVNode)(2,V);case 1:return(0,e.createComponentVNode)(2,y);default:return(0,e.createComponentVNode)(2,V)}}return i}();return(0,e.createComponentVNode)(2,o.Window,{width:425,height:500,theme:"syndicate",children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Tabs,{fluid:!0,children:[(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:c===0,onClick:function(){function i(){return f(0)}return i}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"table"})," Card Info"]},"Card Info"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:c===1,onClick:function(){function i(){return f(1)}return i}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"id-card"})," Appearance"]},"Appearance")]})}),d(c)]})})})}return S}(),V=r.AgentCardInfo=function(){function S(k,h){var l=(0,a.useBackend)(h),c=l.act,f=l.data,d=f.registered_name,i=f.sex,s=f.age,u=f.assignment,C=f.associated_account_number,v=f.blood_type,g=f.dna_hash,p=f.fingerprint_hash,N=f.photo,b=f.ai_tracking;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Card Info",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Name",children:(0,e.createComponentVNode)(2,t.Button,{content:d||"[UNSET]",onClick:function(){function B(){return c("change_name")}return B}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Sex",children:(0,e.createComponentVNode)(2,t.Button,{iconRight:!1,content:i||"[UNSET]",onClick:function(){function B(){return c("change_sex")}return B}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Age",children:(0,e.createComponentVNode)(2,t.Button,{content:s||"[UNSET]",onClick:function(){function B(){return c("change_age")}return B}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Rank",children:(0,e.createComponentVNode)(2,t.Button,{content:u||"[UNSET]",onClick:function(){function B(){return c("change_occupation")}return B}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Fingerprints",children:(0,e.createComponentVNode)(2,t.Button,{content:p||"[UNSET]",onClick:function(){function B(){return c("change_fingerprints")}return B}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Blood Type",children:(0,e.createComponentVNode)(2,t.Button,{content:v||"[UNSET]",onClick:function(){function B(){return c("change_blood_type")}return B}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"DNA Hash",children:(0,e.createComponentVNode)(2,t.Button,{content:g||"[UNSET]",onClick:function(){function B(){return c("change_dna_hash")}return B}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Money Account",children:(0,e.createComponentVNode)(2,t.Button,{content:C||"[UNSET]",onClick:function(){function B(){return c("change_money_account")}return B}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Photo",children:(0,e.createComponentVNode)(2,t.Button,{content:N?"Update":"[UNSET]",onClick:function(){function B(){return c("change_photo")}return B}()})})]})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Card Settings",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Card Info",children:(0,e.createComponentVNode)(2,t.Button,{content:"Delete Card Info",onClick:function(){function B(){return c("delete_info")}return B}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Access",children:(0,e.createComponentVNode)(2,t.Button,{content:"Reset Access",onClick:function(){function B(){return c("clear_access")}return B}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"AI Tracking",children:(0,e.createComponentVNode)(2,t.Button,{content:b?"Untrackable":"Trackable",onClick:function(){function B(){return c("change_ai_tracking")}return B}()})})]})})})],4)}return S}(),y=r.AgentCardAppearances=function(){function S(k,h){var l=(0,a.useBackend)(h),c=l.act,f=l.data,d=(0,a.useLocalState)(h,"selectedAppearance",null),i=d[0],s=d[1],u=f.appearances;return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Card Appearance",children:u.map(function(C){return(0,e.createComponentVNode)(2,t.Button,{compact:!0,m:.5,color:"translucent",selected:C===i,content:(0,e.createVNode)(1,"img",null,null,1,{src:"data:image/jped;base64,"+C.image,style:{width:"64px","vertical-align":"middle","-ms-interpolation-mode":"nearest-neighbor"},onClick:function(){function v(){s(C),c("change_appearance",{new_appearance:C.name})}return v}()})},C.name)})})})}return S}()},56839:function(I,r,n){"use strict";r.__esModule=!0,r.AiAirlock=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m={2:{color:"good",localStatusText:"Offline"},1:{color:"average",localStatusText:"Caution"},0:{color:"bad",localStatusText:"Optimal"}},V=r.AiAirlock=function(){function y(S,k){var h=(0,a.useBackend)(k),l=h.act,c=h.data,f=m[c.power.main]||m[0],d=m[c.power.backup]||m[0],i=m[c.shock]||m[0];return(0,e.createComponentVNode)(2,o.Window,{width:500,height:400,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Power Status",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Main",color:f.color,buttons:(0,e.createComponentVNode)(2,t.Button,{mb:.5,icon:"lightbulb-o",disabled:!c.power.main,content:"Disrupt",onClick:function(){function s(){return l("disrupt-main")}return s}()}),children:[c.power.main?"Online":"Offline"," ",!c.wires.main_power&&"[Wires have been cut!]"||c.power.main_timeleft>0&&"["+c.power.main_timeleft+"s]"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Backup",color:d.color,buttons:(0,e.createComponentVNode)(2,t.Button,{mb:.5,icon:"lightbulb-o",disabled:!c.power.backup,content:"Disrupt",onClick:function(){function s(){return l("disrupt-backup")}return s}()}),children:[c.power.backup?"Online":"Offline"," ",!c.wires.backup_power&&"[Wires have been cut!]"||c.power.backup_timeleft>0&&"["+c.power.backup_timeleft+"s]"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Electrify",color:i.color,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{mr:.5,icon:"wrench",disabled:!(c.wires.shock&&c.shock!==2),content:"Restore",onClick:function(){function s(){return l("shock-restore")}return s}()}),(0,e.createComponentVNode)(2,t.Button,{mr:.5,icon:"bolt",disabled:!c.wires.shock,content:"Temporary",onClick:function(){function s(){return l("shock-temp")}return s}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"bolt",disabled:!c.wires.shock||c.shock===0,content:"Permanent",onClick:function(){function s(){return l("shock-perm")}return s}()})],4),children:[c.shock===2?"Safe":"Electrified"," ",!c.wires.shock&&"[Wires have been cut!]"||c.shock_timeleft>0&&"["+c.shock_timeleft+"s]"||c.shock_timeleft===-1&&"[Permanent]"]})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Access and Door Control",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"ID Scan",color:"bad",buttons:(0,e.createComponentVNode)(2,t.Button,{mb:.5,width:6.5,icon:c.id_scanner?"power-off":"times",content:c.id_scanner?"Enabled":"Disabled",selected:c.id_scanner,disabled:!c.wires.id_scanner,onClick:function(){function s(){return l("idscan-toggle")}return s}()}),children:!c.wires.id_scanner&&"[Wires have been cut!]"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Emergency Access",buttons:(0,e.createComponentVNode)(2,t.Button,{width:6.5,icon:c.emergency?"power-off":"times",content:c.emergency?"Enabled":"Disabled",selected:c.emergency,onClick:function(){function s(){return l("emergency-toggle")}return s}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Divider),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Door Bolts",color:"bad",buttons:(0,e.createComponentVNode)(2,t.Button,{mb:.5,icon:c.locked?"lock":"unlock",content:c.locked?"Lowered":"Raised",selected:c.locked,disabled:!c.wires.bolts,onClick:function(){function s(){return l("bolt-toggle")}return s}()}),children:!c.wires.bolts&&"[Wires have been cut!]"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Door Bolt Lights",color:"bad",buttons:(0,e.createComponentVNode)(2,t.Button,{mb:.5,width:6.5,icon:c.lights?"power-off":"times",content:c.lights?"Enabled":"Disabled",selected:c.lights,disabled:!c.wires.lights,onClick:function(){function s(){return l("light-toggle")}return s}()}),children:!c.wires.lights&&"[Wires have been cut!]"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Door Force Sensors",color:"bad",buttons:(0,e.createComponentVNode)(2,t.Button,{mb:.5,width:6.5,icon:c.safe?"power-off":"times",content:c.safe?"Enabled":"Disabled",selected:c.safe,disabled:!c.wires.safe,onClick:function(){function s(){return l("safe-toggle")}return s}()}),children:!c.wires.safe&&"[Wires have been cut!]"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Door Timing Safety",color:"bad",buttons:(0,e.createComponentVNode)(2,t.Button,{mb:.5,width:6.5,icon:c.speed?"power-off":"times",content:c.speed?"Enabled":"Disabled",selected:c.speed,disabled:!c.wires.timing,onClick:function(){function s(){return l("speed-toggle")}return s}()}),children:!c.wires.timing&&"[Wires have been cut!]"}),(0,e.createComponentVNode)(2,t.LabeledList.Divider),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Door Control",color:"bad",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:c.opened?"sign-out-alt":"sign-in-alt",content:c.opened?"Open":"Closed",selected:c.opened,disabled:c.locked||c.welded,onClick:function(){function s(){return l("open-close")}return s}()}),children:!!(c.locked||c.welded)&&(0,e.createVNode)(1,"span",null,[(0,e.createTextVNode)("[Door is "),c.locked?"bolted":"",c.locked&&c.welded?" and ":"",c.welded?"welded":"",(0,e.createTextVNode)("!]")],0)})]})})]})})}return y}()},5565:function(I,r,n){"use strict";r.__esModule=!0,r.AirAlarm=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=n(26893),V=r.AirAlarm=function(){function i(s,u){var C=(0,a.useBackend)(u),v=C.act,g=C.data,p=g.locked;return(0,e.createComponentVNode)(2,o.Window,{width:570,height:p?310:755,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,m.InterfaceLockNoticeBox),(0,e.createComponentVNode)(2,S),!p&&(0,e.createFragment)([(0,e.createComponentVNode)(2,k),(0,e.createComponentVNode)(2,h)],4)]})})}return i}(),y=function(s){return s===0?"green":s===1?"orange":"red"},S=function(s,u){var C=(0,a.useBackend)(u),v=C.act,g=C.data,p=g.air,N=g.mode,b=g.atmos_alarm,B=g.locked,L=g.alarmActivated,w=g.rcon,T=g.target_temp,x;return p.danger.overall===0?b===0?x="Optimal":x="Caution: Atmos alert in area":p.danger.overall===1?x="Caution":x="DANGER: Internals Required",(0,e.createComponentVNode)(2,t.Section,{title:"Air Status",children:p?(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Pressure",children:(0,e.createComponentVNode)(2,t.Box,{color:y(p.danger.pressure),children:[(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:p.pressure})," kPa",!B&&(0,e.createFragment)([(0,e.createTextVNode)("\xA0"),(0,e.createComponentVNode)(2,t.Button,{content:N===3?"Deactivate Panic Siphon":"Activate Panic Siphon",selected:N===3,icon:"exclamation-triangle",onClick:function(){function A(){return v("mode",{mode:N===3?1:3})}return A}()})],4)]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Oxygen",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:p.contents.oxygen/100,fractionDigits:"1",color:y(p.danger.oxygen)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Nitrogen",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:p.contents.nitrogen/100,fractionDigits:"1",color:y(p.danger.nitrogen)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Carbon Dioxide",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:p.contents.co2/100,fractionDigits:"1",color:y(p.danger.co2)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Toxins",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:p.contents.plasma/100,fractionDigits:"1",color:y(p.danger.plasma)})}),p.contents.n2o>.1&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Nitrous Oxide",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:p.contents.n2o/100,fractionDigits:"1",color:y(p.danger.n2o)})}),p.contents.other>.1&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Other",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:p.contents.other/100,fractionDigits:"1",color:y(p.danger.other)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Temperature",children:(0,e.createComponentVNode)(2,t.Box,{color:y(p.danger.temperature),children:[(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:p.temperature})," K /"," ",(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:p.temperature_c})," C\xA0",(0,e.createComponentVNode)(2,t.Button,{icon:"thermometer-full",content:T+" C",onClick:function(){function A(){return v("temperature")}return A}()}),(0,e.createComponentVNode)(2,t.Button,{content:p.thermostat_state?"On":"Off",selected:p.thermostat_state,icon:"power-off",onClick:function(){function A(){return v("thermostat_state")}return A}()})]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Local Status",children:(0,e.createComponentVNode)(2,t.Box,{color:y(p.danger.overall),children:[x,!B&&(0,e.createFragment)([(0,e.createTextVNode)("\xA0"),(0,e.createComponentVNode)(2,t.Button,{content:L?"Reset Alarm":"Activate Alarm",selected:L,onClick:function(){function A(){return v(L?"atmos_reset":"atmos_alarm")}return A}()})],4)]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Remote Control Settings",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Off",selected:w===1,onClick:function(){function A(){return v("set_rcon",{rcon:1})}return A}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Auto",selected:w===2,onClick:function(){function A(){return v("set_rcon",{rcon:2})}return A}()}),(0,e.createComponentVNode)(2,t.Button,{content:"On",selected:w===3,onClick:function(){function A(){return v("set_rcon",{rcon:3})}return A}()})]})]}):(0,e.createComponentVNode)(2,t.Box,{children:"Unable to acquire air sample!"})})},k=function(s,u){var C=(0,a.useLocalState)(u,"tabIndex",0),v=C[0],g=C[1];return(0,e.createComponentVNode)(2,t.Tabs,{children:[(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:v===0,onClick:function(){function p(){return g(0)}return p}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"sign-out-alt"})," Vent Control"]},"Vents"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:v===1,onClick:function(){function p(){return g(1)}return p}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"sign-in-alt"})," Scrubber Control"]},"Scrubbers"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:v===2,onClick:function(){function p(){return g(2)}return p}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"cog"})," Mode"]},"Mode"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:v===3,onClick:function(){function p(){return g(3)}return p}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"tachometer-alt"})," Thresholds"]},"Thresholds")]})},h=function(s,u){var C=(0,a.useLocalState)(u,"tabIndex",0),v=C[0],g=C[1];switch(v){case 0:return(0,e.createComponentVNode)(2,l);case 1:return(0,e.createComponentVNode)(2,c);case 2:return(0,e.createComponentVNode)(2,f);case 3:return(0,e.createComponentVNode)(2,d);default:return"WE SHOULDN'T BE HERE!"}},l=function(s,u){var C=(0,a.useBackend)(u),v=C.act,g=C.data,p=g.vents;return p.map(function(N){return(0,e.createComponentVNode)(2,t.Section,{title:N.name,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:[(0,e.createComponentVNode)(2,t.Button,{content:N.power?"On":"Off",selected:N.power,icon:"power-off",onClick:function(){function b(){return v("command",{cmd:"power",val:!N.power,id_tag:N.id_tag})}return b}()}),(0,e.createComponentVNode)(2,t.Button,{content:N.direction?"Blowing":"Siphoning",icon:N.direction?"sign-out-alt":"sign-in-alt",onClick:function(){function b(){return v("command",{cmd:"direction",val:!N.direction,id_tag:N.id_tag})}return b}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Pressure Checks",children:[(0,e.createComponentVNode)(2,t.Button,{content:"External",selected:N.checks===1,onClick:function(){function b(){return v("command",{cmd:"checks",val:1,id_tag:N.id_tag})}return b}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Internal",selected:N.checks===2,onClick:function(){function b(){return v("command",{cmd:"checks",val:2,id_tag:N.id_tag})}return b}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"External Pressure Target",children:[(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:N.external})," kPa\xA0",(0,e.createComponentVNode)(2,t.Button,{content:"Set",icon:"cog",onClick:function(){function b(){return v("command",{cmd:"set_external_pressure",id_tag:N.id_tag})}return b}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Reset",icon:"redo-alt",onClick:function(){function b(){return v("command",{cmd:"set_external_pressure",val:101.325,id_tag:N.id_tag})}return b}()})]})]})},N.name)})},c=function(s,u){var C=(0,a.useBackend)(u),v=C.act,g=C.data,p=g.scrubbers;return p.map(function(N){return(0,e.createComponentVNode)(2,t.Section,{title:N.name,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:[(0,e.createComponentVNode)(2,t.Button,{content:N.power?"On":"Off",selected:N.power,icon:"power-off",onClick:function(){function b(){return v("command",{cmd:"power",val:!N.power,id_tag:N.id_tag})}return b}()}),(0,e.createComponentVNode)(2,t.Button,{content:N.scrubbing?"Scrubbing":"Siphoning",icon:N.scrubbing?"filter":"sign-in-alt",onClick:function(){function b(){return v("command",{cmd:"scrubbing",val:!N.scrubbing,id_tag:N.id_tag})}return b}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Range",children:(0,e.createComponentVNode)(2,t.Button,{content:N.widenet?"Extended":"Normal",selected:N.widenet,icon:"expand-arrows-alt",onClick:function(){function b(){return v("command",{cmd:"widenet",val:!N.widenet,id_tag:N.id_tag})}return b}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Filtering",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Carbon Dioxide",selected:N.filter_co2,onClick:function(){function b(){return v("command",{cmd:"co2_scrub",val:!N.filter_co2,id_tag:N.id_tag})}return b}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Plasma",selected:N.filter_toxins,onClick:function(){function b(){return v("command",{cmd:"tox_scrub",val:!N.filter_toxins,id_tag:N.id_tag})}return b}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Nitrous Oxide",selected:N.filter_n2o,onClick:function(){function b(){return v("command",{cmd:"n2o_scrub",val:!N.filter_n2o,id_tag:N.id_tag})}return b}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Oxygen",selected:N.filter_o2,onClick:function(){function b(){return v("command",{cmd:"o2_scrub",val:!N.filter_o2,id_tag:N.id_tag})}return b}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Nitrogen",selected:N.filter_n2,onClick:function(){function b(){return v("command",{cmd:"n2_scrub",val:!N.filter_n2,id_tag:N.id_tag})}return b}()})]})]})},N.name)})},f=function(s,u){var C=(0,a.useBackend)(u),v=C.act,g=C.data,p=g.modes,N=g.presets,b=g.emagged,B=g.mode,L=g.preset;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{title:"System Mode",children:(0,e.createComponentVNode)(2,t.Table,{children:p.map(function(w){return(!w.emagonly||w.emagonly&&!!b)&&(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"right",width:1,children:(0,e.createComponentVNode)(2,t.Button,{content:w.name,icon:"cog",selected:w.id===B,onClick:function(){function T(){return v("mode",{mode:w.id})}return T}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:w.desc})]},w.name)})})}),(0,e.createComponentVNode)(2,t.Section,{title:"System Presets",children:[(0,e.createComponentVNode)(2,t.Box,{italic:!0,children:"After making a selection, the system will automatically cycle in order to remove contaminants."}),(0,e.createComponentVNode)(2,t.Table,{mt:1,children:N.map(function(w){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"right",width:1,children:(0,e.createComponentVNode)(2,t.Button,{content:w.name,icon:"cog",selected:w.id===L,onClick:function(){function T(){return v("preset",{preset:w.id})}return T}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:w.desc})]},w.name)})})]})],4)},d=function(s,u){var C=(0,a.useBackend)(u),v=C.act,g=C.data,p=g.thresholds;return(0,e.createComponentVNode)(2,t.Section,{title:"Alarm Thresholds",children:(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{width:"20%",children:"Value"}),(0,e.createComponentVNode)(2,t.Table.Cell,{color:"red",width:"20%",children:"Danger Min"}),(0,e.createComponentVNode)(2,t.Table.Cell,{color:"orange",width:"20%",children:"Warning Min"}),(0,e.createComponentVNode)(2,t.Table.Cell,{color:"orange",width:"20%",children:"Warning Max"}),(0,e.createComponentVNode)(2,t.Table.Cell,{color:"red",width:"20%",children:"Danger Max"})]}),p.map(function(N){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:N.name}),N.settings.map(function(b){return(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{content:b.selected===-1?"Off":b.selected,onClick:function(){function B(){return v("command",{cmd:"set_threshold",env:b.env,var:b.val})}return B}()})},b.val)})]},N.name)})]})})}},82915:function(I,r,n){"use strict";r.__esModule=!0,r.AirlockAccessController=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=r.AirlockAccessController=function(){function V(y,S){var k=(0,a.useBackend)(S),h=k.act,l=k.data,c=l.exterior_status,f=l.interior_status,d=l.processing,i,s;return c==="open"?i=(0,e.createComponentVNode)(2,t.Button,{width:"50%",content:"Lock Exterior Door",icon:"exclamation-triangle",disabled:d,onClick:function(){function u(){return h("force_ext")}return u}()}):i=(0,e.createComponentVNode)(2,t.Button,{width:"50%",content:"Cycle to Exterior",icon:"arrow-circle-left",disabled:d,onClick:function(){function u(){return h("cycle_ext_door")}return u}()}),f==="open"?s=(0,e.createComponentVNode)(2,t.Button,{width:"49%",content:"Lock Interior Door",icon:"exclamation-triangle",disabled:d,color:f==="open"?"red":d?"yellow":null,onClick:function(){function u(){return h("force_int")}return u}()}):s=(0,e.createComponentVNode)(2,t.Button,{width:"49%",content:"Cycle to Interior",icon:"arrow-circle-right",disabled:d,onClick:function(){function u(){return h("cycle_int_door")}return u}()}),(0,e.createComponentVNode)(2,o.Window,{width:330,height:200,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Information",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"External Door Status",children:c==="closed"?"Locked":"Open"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Internal Door Status",children:f==="closed"?"Locked":"Open"})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Actions",children:(0,e.createComponentVNode)(2,t.Box,{children:[i,s]})})]})})}return V}()},14962:function(I,r,n){"use strict";r.__esModule=!0,r.AirlockElectronics=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=n(57842),V=1,y=2,S=4,k=8,h=r.AirlockElectronics=function(){function f(d,i){return(0,e.createComponentVNode)(2,o.Window,{width:450,height:565,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,l),(0,e.createComponentVNode)(2,c)]})})})}return f}(),l=function(d,i){var s=(0,a.useBackend)(i),u=s.act,C=s.data,v=C.unrestricted_dir;return(0,e.createComponentVNode)(2,t.Section,{title:"Access Control",children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,mb:1,children:"Unrestricted Access From:"}),(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"arrow-left",content:"East",selected:v&S?"selected":null,onClick:function(){function g(){return u("unrestricted_access",{unres_dir:S})}return g}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"arrow-up",content:"South",selected:v&y?"selected":null,onClick:function(){function g(){return u("unrestricted_access",{unres_dir:y})}return g}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"arrow-right",content:"West",selected:v&k?"selected":null,onClick:function(){function g(){return u("unrestricted_access",{unres_dir:k})}return g}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"arrow-down",content:"North",selected:v&V?"selected":null,onClick:function(){function g(){return u("unrestricted_access",{unres_dir:V})}return g}()})})]})]})})},c=function(d,i){var s=(0,a.useBackend)(i),u=s.act,C=s.data,v=C.selected_accesses,g=C.one_access,p=C.regions;return(0,e.createComponentVNode)(2,m.AccessList,{usedByRcd:1,rcdButtons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:g,content:"One",onClick:function(){function N(){return u("set_one_access",{access:"one"})}return N}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:!g,content:"All",onClick:function(){function N(){return u("set_one_access",{access:"all"})}return N}()})],4),accesses:p,selectedList:v,accessMod:function(){function N(b){return u("set",{access:b})}return N}(),grantAll:function(){function N(){return u("grant_all")}return N}(),denyAll:function(){function N(){return u("clear_all")}return N}(),grantDep:function(){function N(b){return u("grant_region",{region:b})}return N}(),denyDep:function(){function N(b){return u("deny_region",{region:b})}return N}()})}},99327:function(I,r,n){"use strict";r.__esModule=!0,r.AlertModal=void 0;var e=n(96524),a=n(14299),t=n(17899),o=n(68100),m=n(24674),V=n(45493),y=-1,S=1,k=r.AlertModal=function(){function c(f,d){var i=(0,t.useBackend)(d),s=i.act,u=i.data,C=u.autofocus,v=u.buttons,g=v===void 0?[]:v,p=u.large_buttons,N=u.message,b=N===void 0?"":N,B=u.timeout,L=u.title,w=(0,t.useLocalState)(d,"selected",0),T=w[0],x=w[1],A=110+(b.length>30?Math.ceil(b.length/4):0)+(b.length&&p?5:0),E=325+(g.length>2?100:0),M=function(){function D(P){T===0&&P===y?x(g.length-1):T===g.length-1&&P===S?x(0):x(T+P)}return D}();return(0,e.createComponentVNode)(2,V.Window,{title:L,height:A,width:E,children:[!!B&&(0,e.createComponentVNode)(2,a.Loader,{value:B}),(0,e.createComponentVNode)(2,V.Window.Content,{onKeyDown:function(){function D(P){var R=window.event?P.which:P.keyCode;R===o.KEY_SPACE||R===o.KEY_ENTER?s("choose",{choice:g[T]}):R===o.KEY_ESCAPE?s("cancel"):R===o.KEY_LEFT?(P.preventDefault(),M(y)):(R===o.KEY_TAB||R===o.KEY_RIGHT)&&(P.preventDefault(),M(S))}return D}(),children:(0,e.createComponentVNode)(2,m.Section,{fill:!0,children:(0,e.createComponentVNode)(2,m.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,m.Stack.Item,{grow:!0,m:1,children:(0,e.createComponentVNode)(2,m.Box,{color:"label",overflow:"hidden",children:b})}),(0,e.createComponentVNode)(2,m.Stack.Item,{children:[!!C&&(0,e.createComponentVNode)(2,m.Autofocus),(0,e.createComponentVNode)(2,h,{selected:T})]})]})})})]})}return c}(),h=function(f,d){var i=(0,t.useBackend)(d),s=i.data,u=s.buttons,C=u===void 0?[]:u,v=s.large_buttons,g=s.swapped_buttons,p=f.selected;return(0,e.createComponentVNode)(2,m.Flex,{fill:!0,align:"center",direction:g?"row":"row-reverse",justify:"space-around",wrap:!0,children:C==null?void 0:C.map(function(N,b){return v&&C.length<3?(0,e.createComponentVNode)(2,m.Flex.Item,{grow:!0,children:(0,e.createComponentVNode)(2,l,{button:N,id:b.toString(),selected:p===b})},b):(0,e.createComponentVNode)(2,m.Flex.Item,{grow:v?1:0,children:(0,e.createComponentVNode)(2,l,{button:N,id:b.toString(),selected:p===b})},b)})})},l=function(f,d){var i=(0,t.useBackend)(d),s=i.act,u=i.data,C=u.large_buttons,v=f.button,g=f.selected,p=v.length>7?"100%":7;return(0,e.createComponentVNode)(2,m.Button,{mx:C?1:0,pt:C?.33:0,content:v,fluid:!!C,onClick:function(){function N(){return s("choose",{choice:v})}return N}(),selected:g,textAlign:"center",height:!!C&&2,width:!C&&p})}},88642:function(I,r,n){"use strict";r.__esModule=!0,r.AppearanceChanger=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=r.AppearanceChanger=function(){function y(S,k){var h=(0,a.useBackend)(k),l=h.act,c=h.data,f=c.change_race,d=c.species,i=c.specimen,s=c.change_gender,u=c.gender,C=c.has_gender,v=c.change_eye_color,g=c.change_skin_tone,p=c.change_skin_color,N=c.change_head_accessory_color,b=c.change_hair_color,B=c.change_secondary_hair_color,L=c.change_facial_hair_color,w=c.change_secondary_facial_hair_color,T=c.change_head_marking_color,x=c.change_body_marking_color,A=c.change_tail_marking_color,E=c.change_head_accessory,M=c.head_accessory_styles,D=c.head_accessory_style,P=c.change_hair,R=c.hair_styles,j=c.hair_style,F=c.change_hair_gradient,W=c.change_facial_hair,_=c.facial_hair_styles,K=c.facial_hair_style,H=c.change_head_markings,$=c.head_marking_styles,X=c.head_marking_style,J=c.change_body_markings,ae=c.body_marking_styles,re=c.body_marking_style,me=c.change_tail_markings,pe=c.tail_marking_styles,Ce=c.tail_marking_style,ke=c.change_body_accessory,he=c.body_accessory_styles,oe=c.body_accessory_style,Z=c.change_alt_head,q=c.alt_head_styles,ue=c.alt_head_style,se=!1;return(v||g||p||N||b||B||L||w||T||x||A)&&(se=!0),(0,e.createComponentVNode)(2,o.Window,{width:800,height:450,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[!!f&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Species",children:d.map(function(te){return(0,e.createComponentVNode)(2,t.Button,{content:te.specimen,selected:te.specimen===i,onClick:function(){function ye(){return l("race",{race:te.specimen})}return ye}()},te.specimen)})}),!!s&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Gender",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Male",selected:u==="male",onClick:function(){function te(){return l("gender",{gender:"male"})}return te}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Female",selected:u==="female",onClick:function(){function te(){return l("gender",{gender:"female"})}return te}()}),!C&&(0,e.createComponentVNode)(2,t.Button,{content:"Genderless",selected:u==="plural",onClick:function(){function te(){return l("gender",{gender:"plural"})}return te}()})]}),!!se&&(0,e.createComponentVNode)(2,V),!!E&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Head accessory",children:M.map(function(te){return(0,e.createComponentVNode)(2,t.Button,{content:te.headaccessorystyle,selected:te.headaccessorystyle===D,onClick:function(){function ye(){return l("head_accessory",{head_accessory:te.headaccessorystyle})}return ye}()},te.headaccessorystyle)})}),!!P&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Hair",children:R.map(function(te){return(0,e.createComponentVNode)(2,t.Button,{content:te.hairstyle,selected:te.hairstyle===j,onClick:function(){function ye(){return l("hair",{hair:te.hairstyle})}return ye}()},te.hairstyle)})}),!!F&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Hair Gradient",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Change Style",onClick:function(){function te(){return l("hair_gradient")}return te}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Change Offset",onClick:function(){function te(){return l("hair_gradient_offset")}return te}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Change Color",onClick:function(){function te(){return l("hair_gradient_colour")}return te}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Change Alpha",onClick:function(){function te(){return l("hair_gradient_alpha")}return te}()})]}),!!W&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Facial hair",children:_.map(function(te){return(0,e.createComponentVNode)(2,t.Button,{content:te.facialhairstyle,selected:te.facialhairstyle===K,onClick:function(){function ye(){return l("facial_hair",{facial_hair:te.facialhairstyle})}return ye}()},te.facialhairstyle)})}),!!H&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Head markings",children:$.map(function(te){return(0,e.createComponentVNode)(2,t.Button,{content:te.headmarkingstyle,selected:te.headmarkingstyle===X,onClick:function(){function ye(){return l("head_marking",{head_marking:te.headmarkingstyle})}return ye}()},te.headmarkingstyle)})}),!!J&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Body markings",children:ae.map(function(te){return(0,e.createComponentVNode)(2,t.Button,{content:te.bodymarkingstyle,selected:te.bodymarkingstyle===re,onClick:function(){function ye(){return l("body_marking",{body_marking:te.bodymarkingstyle})}return ye}()},te.bodymarkingstyle)})}),!!me&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Tail markings",children:pe.map(function(te){return(0,e.createComponentVNode)(2,t.Button,{content:te.tailmarkingstyle,selected:te.tailmarkingstyle===Ce,onClick:function(){function ye(){return l("tail_marking",{tail_marking:te.tailmarkingstyle})}return ye}()},te.tailmarkingstyle)})}),!!ke&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Body accessory",children:he.map(function(te){return(0,e.createComponentVNode)(2,t.Button,{content:te.bodyaccessorystyle,selected:te.bodyaccessorystyle===oe,onClick:function(){function ye(){return l("body_accessory",{body_accessory:te.bodyaccessorystyle})}return ye}()},te.bodyaccessorystyle)})}),!!Z&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Alternate head",children:q.map(function(te){return(0,e.createComponentVNode)(2,t.Button,{content:te.altheadstyle,selected:te.altheadstyle===ue,onClick:function(){function ye(){return l("alt_head",{alt_head:te.altheadstyle})}return ye}()},te.altheadstyle)})})]})})})}return y}(),V=function(S,k){var h=(0,a.useBackend)(k),l=h.act,c=h.data,f=[{key:"change_eye_color",text:"Change eye color",action:"eye_color"},{key:"change_skin_tone",text:"Change skin tone",action:"skin_tone"},{key:"change_skin_color",text:"Change skin color",action:"skin_color"},{key:"change_head_accessory_color",text:"Change head accessory color",action:"head_accessory_color"},{key:"change_hair_color",text:"Change hair color",action:"hair_color"},{key:"change_secondary_hair_color",text:"Change secondary hair color",action:"secondary_hair_color"},{key:"change_facial_hair_color",text:"Change facial hair color",action:"facial_hair_color"},{key:"change_secondary_facial_hair_color",text:"Change secondary facial hair color",action:"secondary_facial_hair_color"},{key:"change_head_marking_color",text:"Change head marking color",action:"head_marking_color"},{key:"change_body_marking_color",text:"Change body marking color",action:"body_marking_color"},{key:"change_tail_marking_color",text:"Change tail marking color",action:"tail_marking_color"}];return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Colors",children:f.map(function(d){return!!c[d.key]&&(0,e.createComponentVNode)(2,t.Button,{content:d.text,onClick:function(){function i(){return l(d.action)}return i}()},d.key)})})}},51731:function(I,r,n){"use strict";r.__esModule=!0,r.AtmosAlertConsole=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=r.AtmosAlertConsole=function(){function V(y,S){var k=(0,a.useBackend)(S),h=k.act,l=k.data,c=l.priority||[],f=l.minor||[];return(0,e.createComponentVNode)(2,o.Window,{width:350,height:300,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Alarms",children:(0,e.createVNode)(1,"ul",null,[c.length===0&&(0,e.createVNode)(1,"li","color-good","No Priority Alerts",16),c.map(function(d){return(0,e.createVNode)(1,"li","color-bad",d,0,null,d)}),f.length===0&&(0,e.createVNode)(1,"li","color-good","No Minor Alerts",16),f.map(function(d){return(0,e.createVNode)(1,"li","color-average",d,0,null,d)})],0)})})})}return V}()},57467:function(I,r,n){"use strict";r.__esModule=!0,r.AtmosControl=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(5126),m=n(45493),V=function(c){if(c===0)return(0,e.createComponentVNode)(2,t.Box,{color:"green",children:"Good"});if(c===1)return(0,e.createComponentVNode)(2,t.Box,{color:"orange",bold:!0,children:"Warning"});if(c===2)return(0,e.createComponentVNode)(2,t.Box,{color:"red",bold:!0,children:"DANGER"})},y=function(c){if(c===0)return"green";if(c===1)return"orange";if(c===2)return"red"},S=r.AtmosControl=function(){function l(c,f){var d=(0,a.useBackend)(f),i=d.act,s=d.data,u=(0,a.useLocalState)(f,"tabIndex",0),C=u[0],v=u[1],g=function(){function p(N){switch(N){case 0:return(0,e.createComponentVNode)(2,k);case 1:return(0,e.createComponentVNode)(2,h);default:return"WE SHOULDN'T BE HERE!"}}return p}();return(0,e.createComponentVNode)(2,m.Window,{width:800,height:600,children:(0,e.createComponentVNode)(2,m.Window.Content,{scrollable:C===0,children:(0,e.createComponentVNode)(2,t.Box,{fillPositionedParent:!0,children:[(0,e.createComponentVNode)(2,t.Tabs,{children:[(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:C===0,onClick:function(){function p(){return v(0)}return p}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"table"})," Data View"]},"DataView"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:C===1,onClick:function(){function p(){return v(1)}return p}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"map-marked-alt"})," Map View"]},"MapView")]}),g(C)]})})})}return l}(),k=function(c,f){var d=(0,a.useBackend)(f),i=d.act,s=d.data,u=s.alarms;return(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Table,{m:"0.5rem",children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Name"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Status"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Access"})]}),u.map(function(C){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,o.TableCell,{children:C.name}),(0,e.createComponentVNode)(2,o.TableCell,{children:V(C.danger)}),(0,e.createComponentVNode)(2,o.TableCell,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"cog",content:"Access",onClick:function(){function v(){return i("open_alarm",{aref:C.ref})}return v}()})})]},C.name)})]})})},h=function(c,f){var d=(0,a.useBackend)(f),i=d.data,s=(0,a.useLocalState)(f,"zoom",1),u=s[0],C=s[1],v=i.alarms;return(0,e.createComponentVNode)(2,t.Box,{height:"526px",mb:"0.5rem",overflow:"hidden",children:(0,e.createComponentVNode)(2,t.NanoMap,{onZoom:function(){function g(p){return C(p)}return g}(),children:v.filter(function(g){return g.z===3}).map(function(g){return(0,e.createComponentVNode)(2,t.NanoMap.Marker,{x:g.x,y:g.y,zoom:u,icon:"circle",tooltip:g.name,color:y(g.danger)},g.ref)})})})}},41550:function(I,r,n){"use strict";r.__esModule=!0,r.AtmosFilter=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=r.AtmosFilter=function(){function V(y,S){var k=(0,a.useBackend)(S),h=k.act,l=k.data,c=l.on,f=l.pressure,d=l.max_pressure,i=l.filter_type,s=l.filter_type_list;return(0,e.createComponentVNode)(2,o.Window,{width:380,height:140,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power",children:(0,e.createComponentVNode)(2,t.Button,{icon:"power-off",content:c?"On":"Off",color:c?null:"red",selected:c,onClick:function(){function u(){return h("power")}return u}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Rate",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"fast-backward",textAlign:"center",disabled:f===0,width:2.2,onClick:function(){function u(){return h("min_pressure")}return u}()}),(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,unit:"kPa",width:6.1,lineHeight:1.5,step:10,minValue:0,maxValue:d,value:f,onDrag:function(){function u(C,v){return h("custom_pressure",{pressure:v})}return u}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",textAlign:"center",disabled:f===d,width:2.2,onClick:function(){function u(){return h("max_pressure")}return u}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Filter",children:s.map(function(u){return(0,e.createComponentVNode)(2,t.Button,{selected:u.gas_type===i,content:u.label,onClick:function(){function C(){return h("set_filter",{filter:u.gas_type})}return C}()},u.label)})})]})})})})}return V}()},16688:function(I,r,n){"use strict";r.__esModule=!0,r.AtmosGraphMonitor=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=n(36121),V=n(50640),y=n(28234),S=["data","rangeX","rangeY","fillColor","strokeColor","strokeWidth","horizontalLinesCount","verticalLinesCount","gridColor","gridWidth","pointTextColor","pointTextSize","labelViewBoxSize"];function k(u,C){if(u==null)return{};var v={},g=Object.keys(u),p,N;for(N=0;N=0)&&(v[p]=u[p]);return v}function h(u,C){u.prototype=Object.create(C.prototype),u.prototype.constructor=u,l(u,C)}function l(u,C){return l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function v(g,p){return g.__proto__=p,g}return v}(),l(u,C)}var c=r.AtmosGraphMonitor=function(){function u(C,v){var g=(0,a.useBackend)(v),p=g.data,N=(0,a.useLocalState)(v,"tabIndex",0),b=N[0],B=N[1],L=function(){function T(x){switch(x){case 0:return(0,e.createComponentVNode)(2,f,{data:p,info:"\u0418\u043D\u0442\u0435\u0440\u0432\u0430\u043B \u0437\u0430\u043F\u0438\u0441\u0438 T = 60 \u0441. | \u0418\u043D\u0442\u0435\u0440\u0432\u0430\u043B \u043C\u0435\u0436\u0434\u0443 \u0437\u0430\u043F\u0438\u0441\u044F\u043C\u0438 t = 3 \u0441.",pressureListName:"pressure_history",temperatureListName:"temperature_history"});case 1:return(0,e.createComponentVNode)(2,f,{data:p,info:"\u0418\u043D\u0442\u0435\u0440\u0432\u0430\u043B \u0437\u0430\u043F\u0438\u0441\u0438 T = 10 \u043C\u0438\u043D. | \u0418\u043D\u0442\u0435\u0440\u0432\u0430\u043B \u043C\u0435\u0436\u0434\u0443 \u0437\u0430\u043F\u0438\u0441\u044F\u043C\u0438 t = 30 \u0441.",pressureListName:"long_pressure_history",temperatureListName:"long_temperature_history"});default:return"WE SHOULDN'T BE HERE!"}}return T}(),w=function(){function T(x){switch(x){case 0:return 180;case 1:return 350;case 2:return 590;case 3:return 830;default:return 870}}return T}();return(0,e.createComponentVNode)(2,o.Window,{width:700,height:w(Object.keys(p.sensors).length),children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Box,{fillPositionedParent:!0,children:[(0,e.createComponentVNode)(2,t.Tabs,{children:[(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:b===0,onClick:function(){function T(){return B(0)}return T}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"area-chart"})," \u0422\u0435\u043A\u0443\u0449\u0438\u0435"]},"View"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:b===1,onClick:function(){function T(){return B(1)}return T}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"bar-chart"})," \u0418\u0441\u0442\u043E\u0440\u0438\u044F"]},"History")]}),L(b),Object.keys(p.sensors).length===0&&(0,e.createComponentVNode)(2,t.Box,{pt:2,textAlign:"center",textColor:"gray",bold:!0,fontSize:1.3,children:"\u041F\u043E\u0434\u043A\u043B\u044E\u0447\u0438\u0442\u0435 gas sensor \u0438\u043B\u0438 meter \u0441 \u043F\u043E\u043C\u043E\u0449\u044C\u044E multitool"})]})})})}return u}(),f=function(C){var v=C.data,g=C.info,p=C.pressureListName,N=C.temperatureListName,b=v.sensors||{},B=function(A,E){return b[A][E].slice(-1)[0]},L=function(A,E){return Math.min.apply(Math,b[A][E])},w=function(A,E){return Math.max.apply(Math,b[A][E])},T=function(A,E){return b[A][E].map(function(M,D){return[D,M]})};return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Section,{color:"gray",children:g}),Object.keys(b).map(function(x){return(0,e.createComponentVNode)(2,t.Section,{title:x,children:(0,e.createComponentVNode)(2,t.Section,{px:2,children:[N in b[x]&&(0,e.createComponentVNode)(2,t.Box,{mb:4,children:[(0,e.createComponentVNode)(2,t.Box,{children:"\u0422\u0435\u043C\u043F\u0435\u0440\u0430\u0442\u0443\u0440\u0430: "+(0,m.toFixed)(B(x,N),0)+"\u041A (MIN: "+(0,m.toFixed)(L(x,N),0)+"\u041A; MAX: "+(0,m.toFixed)(w(x,N),0)+"\u041A)"}),(0,e.createComponentVNode)(2,t.Section,{fill:!0,height:5,mt:1,children:(0,e.createComponentVNode)(2,s,{fillPositionedParent:!0,data:T(x,N),rangeX:[0,T(x,N).length-1],rangeY:[L(x,N)-10,w(x,N)+5],strokeColor:"rgba(219, 40, 40, 1)",fillColor:"rgba(219, 40, 40, 0.1)",horizontalLinesCount:2,verticalLinesCount:T(x,N).length-2,labelViewBoxSize:400})})]}),p in b[x]&&(0,e.createComponentVNode)(2,t.Box,{mb:-1,children:[(0,e.createComponentVNode)(2,t.Box,{children:"\u0414\u0430\u0432\u043B\u0435\u043D\u0438\u0435: "+(0,m.toFixed)(B(x,p),0)+"\u043A\u041F\u0430 (MIN: "+(0,m.toFixed)(L(x,p),0)+"\u043A\u041F\u0430; MAX: "+(0,m.toFixed)(w(x,p),0)+"\u043A\u041F\u0430)"}),(0,e.createComponentVNode)(2,t.Section,{fill:!0,height:5,mt:1,children:(0,e.createComponentVNode)(2,s,{fillPositionedParent:!0,data:T(x,p),rangeX:[0,T(x,p).length-1],rangeY:[L(x,p)-10,w(x,p)+5],strokeColor:"rgba(40, 219, 40, 1)",fillColor:"rgba(40, 219, 40, 0.1)",horizontalLinesCount:2,verticalLinesCount:T(x,p).length-2,labelViewBoxSize:400})})]})]})},x)})]})},d=function(C,v,g,p){if(C.length===0)return[];var N=(0,V.zipWith)(Math.min).apply(void 0,C),b=(0,V.zipWith)(Math.max).apply(void 0,C);g!==void 0&&(N[0]=g[0],b[0]=g[1]),p!==void 0&&(N[1]=p[0],b[1]=p[1]);var B=function(x,A,E,M){return(x-A)/(E-A)*M},L=(0,V.zipWith)(B),w=(0,V.map)(function(T){return L(T,N,b,v)});return w(C)},i=function(C){for(var v="",g=0;g0){var he=ke[0],oe=ke[ke.length-1];ke.push([Ce[0]+D,oe[1]]),ke.push([Ce[0]+D,-D]),ke.push([-D,-D]),ke.push([-D,he[1]])}var Z=i(ke);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,t.Box,Object.assign({position:"relative"},pe,{children:function(){function q(ue){return(0,e.normalizeProps)((0,e.createVNode)(1,"div",null,(0,e.createVNode)(32,"svg",null,[Array.from({length:R}).map(function(se,te){return(0,e.createVNode)(32,"line",null,null,1,{x1:0,y1:(te+1)*(Ce[1]/(R+1)),x2:Ce[0],y2:(te+1)*(Ce[1]/(R+1)),stroke:_,"stroke-width":H},"horizontal-line-"+te)}),Array.from({length:F}).map(function(se,te){return(0,e.createVNode)(32,"line",null,null,1,{x1:(te+1)*(Ce[0]/(F+1)),y1:0,x2:(te+1)*(Ce[0]/(F+1)),y2:Ce[1],stroke:_,"stroke-width":H},"vertical-line-"+te)}),(0,e.createVNode)(32,"polyline",null,null,1,{transform:"scale(1, -1) translate(0, -"+Ce[1]+")",fill:x,points:Z}),B.map(function(se,te){return te===0?null:(0,e.createVNode)(32,"line",null,null,1,{x1:ke[te-1][0],y1:Ce[1]-ke[te-1][1],x2:ke[te][0],y2:Ce[1]-ke[te][1],stroke:E,"stroke-width":D},"line-"+te)}),B.map(function(se,te){return(0,e.createVNode)(32,"circle",null,null,1,{cx:ke[te][0],cy:Ce[1]-ke[te][1],r:2,fill:"#ffffff",stroke:E,"stroke-width":1},"point-"+te)}),B.map(function(se,te){return Ce[0]>me&&te%2===1&&(0,e.createVNode)(32,"text",null,se[1]!==null?se[1].toFixed(0):"N/A",0,{x:ke[te][0],y:Ce[1]-ke[te][1],fill:X,"font-size":ae,dy:"1em",style:{"text-anchor":"end"}},"point-text-"+te)})],0,{viewBox:"0 0 "+Ce[0]+" "+Ce[1]}),2,Object.assign({},ue),null,p.ref))}return q}()})))}return g}(),C}(e.Component);s.defaultHooks=void 0,s.defaultHooks=y.pureComponentHooks},70151:function(I,r,n){"use strict";r.__esModule=!0,r.AtmosMixer=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=r.AtmosMixer=function(){function y(S,k){var h=(0,a.useBackend)(k),l=h.act,c=h.data,f=c.on,d=c.pressure,i=c.max_pressure,s=c.node1_concentration,u=c.node2_concentration;return(0,e.createComponentVNode)(2,o.Window,{width:330,height:165,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power",children:(0,e.createComponentVNode)(2,t.Button,{icon:"power-off",content:f?"On":"Off",color:f?null:"red",selected:f,onClick:function(){function C(){return l("power")}return C}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Rate",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"fast-backward",textAlign:"center",disabled:d===0,width:2.2,onClick:function(){function C(){return l("min_pressure")}return C}()}),(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,unit:"kPa",width:6.1,lineHeight:1.5,step:10,minValue:0,maxValue:i,value:d,onDrag:function(){function C(v,g){return l("custom_pressure",{pressure:g})}return C}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",textAlign:"center",disabled:d===i,width:2.2,onClick:function(){function C(){return l("max_pressure")}return C}()})]}),(0,e.createComponentVNode)(2,V,{node_name:"Node 1",node_ref:s}),(0,e.createComponentVNode)(2,V,{node_name:"Node 2",node_ref:u})]})})})})}return y}(),V=function(S,k){var h=(0,a.useBackend)(k),l=h.act,c=h.data,f=S.node_name,d=S.node_ref;return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:f,children:[(0,e.createComponentVNode)(2,t.Button,{icon:"fast-backward",textAlign:"center",width:2.2,disabled:d===0,onClick:function(){function i(){return l("set_node",{node_name:f,concentration:(d-10)/100})}return i}()}),(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,unit:"%",width:6.1,lineHeight:1.5,stepPixelSize:10,minValue:0,maxValue:100,value:d,onChange:function(){function i(s,u){return l("set_node",{node_name:f,concentration:u/100})}return i}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",textAlign:"center",width:2.2,disabled:d===100,onClick:function(){function i(){return l("set_node",{node_name:f,concentration:(d+10)/100})}return i}()})]})}},54090:function(I,r,n){"use strict";r.__esModule=!0,r.AtmosPump=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=r.AtmosPump=function(){function V(y,S){var k=(0,a.useBackend)(S),h=k.act,l=k.data,c=l.on,f=l.rate,d=l.max_rate,i=l.gas_unit,s=l.step;return(0,e.createComponentVNode)(2,o.Window,{width:330,height:110,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power",children:(0,e.createComponentVNode)(2,t.Button,{icon:"power-off",content:c?"On":"Off",color:c?null:"red",selected:c,onClick:function(){function u(){return h("power")}return u}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Rate",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"fast-backward",textAlign:"center",disabled:f===0,width:2.2,onClick:function(){function u(){return h("min_rate")}return u}()}),(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,unit:i,width:6.1,lineHeight:1.5,step:s,minValue:0,maxValue:d,value:f,onDrag:function(){function u(C,v){return h("custom_rate",{rate:v})}return u}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",textAlign:"center",disabled:f===d,width:2.2,onClick:function(){function u(){return h("max_rate")}return u}()})]})]})})})})}return V}()},31335:function(I,r,n){"use strict";r.__esModule=!0,r.AtmosTankControl=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(36121),m=n(38424),V=n(45493),y=r.AtmosTankControl=function(){function S(k,h){var l=(0,a.useBackend)(h),c=l.act,f=l.data,d=f.sensors||{};return(0,e.createComponentVNode)(2,V.Window,{width:400,height:400,children:(0,e.createComponentVNode)(2,V.Window.Content,{scrollable:!0,children:[Object.keys(d).map(function(i){return(0,e.createComponentVNode)(2,t.Section,{title:i,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[Object.keys(d[i]).indexOf("pressure")>-1?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Pressure",children:[d[i].pressure," kpa"]}):"",Object.keys(d[i]).indexOf("temperature")>-1?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Temperature",children:[d[i].temperature," K"]}):"",["o2","n2","plasma","co2","n2o"].map(function(s){return Object.keys(d[i]).indexOf(s)>-1?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:(0,m.getGasLabel)(s),children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:(0,m.getGasColor)(s),value:d[i][s],minValue:0,maxValue:100,children:(0,o.toFixed)(d[i][s],2)+"%"})},(0,m.getGasLabel)(s)):""})]})},i)}),f.inlet&&Object.keys(f.inlet).length>0?(0,e.createComponentVNode)(2,t.Section,{title:"Inlet Control",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power",children:(0,e.createComponentVNode)(2,t.Button,{icon:(f.inlet.on,"power-off"),content:f.inlet.on?"On":"Off",color:f.inlet.on?null:"red",selected:f.inlet.on,onClick:function(){function i(){return c("toggle_active",{dev:"inlet"})}return i}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Rate",children:(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,unit:"L/s",width:6.1,lineHeight:1.5,step:1,minValue:0,maxValue:50,value:f.inlet.rate,onDrag:function(){function i(s,u){return c("set_pressure",{dev:"inlet",val:u})}return i}()})})]})}):"",f.outlet&&Object.keys(f.outlet).length>0?(0,e.createComponentVNode)(2,t.Section,{title:"Outlet Control",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power",children:(0,e.createComponentVNode)(2,t.Button,{icon:(f.outlet.on,"power-off"),content:f.outlet.on?"On":"Off",color:f.outlet.on?null:"red",selected:f.outlet.on,onClick:function(){function i(){return c("toggle_active",{dev:"outlet"})}return i}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Rate",children:(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,unit:"kPa",width:6.1,lineHeight:1.5,step:10,minValue:0,maxValue:5066,value:f.outlet.rate,onDrag:function(){function i(s,u){return c("set_pressure",{dev:"outlet",val:u})}return i}()})})]})}):""]})})}return S}()},85909:function(I,r,n){"use strict";r.__esModule=!0,r.Autolathe=void 0;var e=n(96524),a=n(74041),t=n(50640),o=n(17899),m=n(24674),V=n(45493),y=n(78234),S=function(l,c,f,d){return l.requirements===null?!0:!(l.requirements.metal*d>c||l.requirements.glass*d>f)},k=r.Autolathe=function(){function h(l,c){var f=(0,o.useBackend)(c),d=f.act,i=f.data,s=i.total_amount,u=i.max_amount,C=i.metal_amount,v=i.glass_amount,g=i.busyname,p=i.busyamt,N=i.showhacked,b=i.buildQueue,B=i.buildQueueLen,L=i.recipes,w=i.categories,T=(0,o.useSharedState)(c,"category",0),x=T[0],A=T[1];x===0&&(x="Tools");var E=C.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1,"),M=v.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1,"),D=s.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1,"),P=(0,o.useSharedState)(c,"search_text",""),R=P[0],j=P[1],F=(0,y.createSearch)(R,function(H){return H.name}),W="";B>0&&(W=b.map(function(H,$){return(0,e.createComponentVNode)(2,m.Box,{children:(0,e.createComponentVNode)(2,m.Button,{fluid:!0,icon:"times",color:"transparent",content:b[$][0],onClick:function(){function X(){return d("remove_from_queue",{remove_from_queue:b.indexOf(H)+1})}return X}()},H)},$)}));var _=(0,a.flow)([(0,t.filter)(function(H){return(H.category.indexOf(x)>-1||R)&&(i.showhacked||!H.hacked)}),R&&(0,t.filter)(F),(0,t.sortBy)(function(H){return H.name.toLowerCase()})])(L),K="Build";return R?K="Results for: '"+R+"':":x&&(K="Build ("+x+")"),(0,e.createComponentVNode)(2,V.Window,{width:750,height:525,children:(0,e.createComponentVNode)(2,V.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,m.Stack,{fill:!0,horizontal:!0,children:[(0,e.createComponentVNode)(2,m.Stack.Item,{width:"70%",children:(0,e.createComponentVNode)(2,m.Section,{fill:!0,scrollable:!0,title:K,buttons:(0,e.createComponentVNode)(2,m.Dropdown,{width:"150px",options:w,selected:x,onSelected:function(){function H($){return A($)}return H}()}),children:[(0,e.createComponentVNode)(2,m.Input,{fluid:!0,placeholder:"Search for...",onInput:function(){function H($,X){return j(X)}return H}(),mb:1}),_.map(function(H){return(0,e.createComponentVNode)(2,m.Stack.Item,{grow:!0,children:[(0,e.createVNode)(1,"img",null,null,1,{src:"data:image/jpeg;base64,"+H.image,style:{"vertical-align":"middle",width:"32px",margin:"0px","margin-left":"0px"}}),(0,e.createComponentVNode)(2,m.Button,{mr:1,icon:"hammer",selected:i.busyname===H.name&&i.busyamt===1,disabled:!S(H,i.metal_amount,i.glass_amount,1),onClick:function(){function $(){return d("make",{make:H.uid,multiplier:1})}return $}(),children:(0,y.toTitleCase)(H.name)}),H.max_multiplier>=10&&(0,e.createComponentVNode)(2,m.Button,{mr:1,icon:"hammer",selected:i.busyname===H.name&&i.busyamt===10,disabled:!S(H,i.metal_amount,i.glass_amount,10),onClick:function(){function $(){return d("make",{make:H.uid,multiplier:10})}return $}(),children:"10x"}),H.max_multiplier>=25&&(0,e.createComponentVNode)(2,m.Button,{mr:1,icon:"hammer",selected:i.busyname===H.name&&i.busyamt===25,disabled:!S(H,i.metal_amount,i.glass_amount,25),onClick:function(){function $(){return d("make",{make:H.uid,multiplier:25})}return $}(),children:"25x"}),H.max_multiplier>25&&(0,e.createComponentVNode)(2,m.Button,{mr:1,icon:"hammer",selected:i.busyname===H.name&&i.busyamt===H.max_multiplier,disabled:!S(H,i.metal_amount,i.glass_amount,H.max_multiplier),onClick:function(){function $(){return d("make",{make:H.uid,multiplier:H.max_multiplier})}return $}(),children:[H.max_multiplier,"x"]}),H.requirements&&Object.keys(H.requirements).map(function($){return(0,y.toTitleCase)($)+": "+H.requirements[$]}).join(", ")||(0,e.createComponentVNode)(2,m.Box,{children:"No resources required."})]},H.ref)})]})}),(0,e.createComponentVNode)(2,m.Stack.Item,{width:"30%",children:[(0,e.createComponentVNode)(2,m.Section,{title:"Materials",children:(0,e.createComponentVNode)(2,m.LabeledList,{children:[(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Metal",children:E}),(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Glass",children:M}),(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Total",children:D}),(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Storage",children:[i.fill_percent,"% Full"]})]})}),(0,e.createComponentVNode)(2,m.Section,{title:"Building",children:(0,e.createComponentVNode)(2,m.Box,{color:g?"green":"",children:g||"Nothing"})}),(0,e.createComponentVNode)(2,m.Section,{title:"Build Queue",height:23.7,children:[W,(0,e.createComponentVNode)(2,m.Button,{mt:.5,fluid:!0,icon:"times",content:"Clear All",color:"red",disabled:!i.buildQueueLen,onClick:function(){function H(){return d("clear_queue")}return H}()})]})]})]})})})}return h}()},81617:function(I,r,n){"use strict";r.__esModule=!0,r.BioChipPad=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=r.BioChipPad=function(){function V(y,S){var k=(0,a.useBackend)(S),h=k.act,l=k.data,c=l.implant,f=l.contains_case;return(0,e.createComponentVNode)(2,o.Window,{width:410,height:400,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Bio-chip Mini-Computer",children:[c&&f?(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{bold:!0,mb:2,children:[(0,e.createVNode)(1,"img",null,null,1,{src:"data:image/jpeg;base64,"+c.image,ml:0,mr:2,style:{"vertical-align":"middle",width:"32px"}}),c.name]}),(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Life",children:c.life}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Notes",children:c.notes}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Function",children:c.function})]})],4):f?(0,e.createComponentVNode)(2,t.Box,{children:"This bio-chip case has no implant!"}):(0,e.createComponentVNode)(2,t.Box,{children:"Please insert a bio-chip casing!"}),(0,e.createComponentVNode)(2,t.Button,{mt:2,content:"Eject Case",icon:"eject",disabled:!f,onClick:function(){function d(){return h("eject_case")}return d}()})]})})})}return V}()},26215:function(I,r,n){"use strict";r.__esModule=!0,r.Biogenerator=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=n(75201),V=r.Biogenerator=function(){function l(c,f){var d=(0,a.useBackend)(f),i=d.data,s=d.config,u=i.container,C=i.processing,v=s.title;return(0,e.createComponentVNode)(2,o.Window,{width:390,height:595,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,m.Operating,{operating:C,name:v}),(0,e.createComponentVNode)(2,S),(0,e.createComponentVNode)(2,k),u?(0,e.createComponentVNode)(2,h):(0,e.createComponentVNode)(2,y)]})})})}return l}(),y=function(c,f){return(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,grow:!0,textAlign:"center",align:"center",color:"silver",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"flask",size:5,mb:"10px"}),(0,e.createVNode)(1,"br"),"The biogenerator is missing a container."]})})})},S=function(c,f){var d=(0,a.useBackend)(f),i=d.act,s=d.data,u=s.biomass,C=s.container,v=s.container_curr_reagents,g=s.container_max_reagents;return(0,e.createComponentVNode)(2,t.Section,{title:"Storage",children:[(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{mr:"20px",color:"silver",children:"Biomass:"}),(0,e.createComponentVNode)(2,t.Stack.Item,{mr:"5px",children:u}),(0,e.createComponentVNode)(2,t.Icon,{name:"leaf",size:1.2,color:"#3d8c40"})]}),(0,e.createComponentVNode)(2,t.Stack,{height:"21px",mt:"8px",align:"center",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{mr:"10px",color:"silver",children:"Container:"}),C?(0,e.createComponentVNode)(2,t.ProgressBar,{value:v,maxValue:g,children:(0,e.createComponentVNode)(2,t.Box,{textAlign:"center",children:v+" / "+g+" units"})}):(0,e.createComponentVNode)(2,t.Stack.Item,{children:"None"})]})]})},k=function(c,f){var d=(0,a.useBackend)(f),i=d.act,s=d.data,u=s.has_plants,C=s.container;return(0,e.createComponentVNode)(2,t.Section,{title:"Controls",children:(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"30%",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"power-off",disabled:!u,tooltip:u?"":"There are no plants in the biogenerator.",tooltipPosition:"top-start",content:"Activate",onClick:function(){function v(){return i("activate")}return v}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:"40%",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"flask",disabled:!C,tooltip:C?"":"The biogenerator does not have a container.",tooltipPosition:"top",content:"Detach Container",onClick:function(){function v(){return i("detach_container")}return v}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:"30%",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"eject",disabled:!u,tooltip:u?"":"There are no stored plants to eject.",tooltipPosition:"top-end",content:"Eject Plants",onClick:function(){function v(){return i("eject_plants")}return v}()})})]})})},h=function(c,f){var d=(0,a.useBackend)(f),i=d.act,s=d.data,u=s.biomass,C=s.product_list,v=(0,a.useSharedState)(f,"vendAmount",1),g=v[0],p=v[1],N=Object.entries(C).map(function(b,B){var L=Object.entries(b[1]).map(function(w){return w[1]});return(0,e.createComponentVNode)(2,t.Collapsible,{title:b[0],open:!0,children:L.map(function(w){return(0,e.createComponentVNode)(2,t.Stack,{py:"2px",className:"candystripe",align:"center",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"50%",ml:"2px",children:w.name}),(0,e.createComponentVNode)(2,t.Stack.Item,{textAlign:"right",width:"20%",children:[w.cost*g,(0,e.createComponentVNode)(2,t.Icon,{ml:"5px",name:"leaf",size:1.2,color:"#3d8c40"})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{textAlign:"right",width:"40%",children:(0,e.createComponentVNode)(2,t.Button,{content:"Vend",disabled:ui&&"bad"||"good";return(0,e.createComponentVNode)(2,o.Window,{width:650,height:450,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[!!p&&(0,e.createComponentVNode)(2,t.NoticeBox,{danger:1,children:"Safety Protocols disabled"}),i>N&&(0,e.createComponentVNode)(2,t.NoticeBox,{danger:1,children:"High Power, Instability likely"}),(0,e.createComponentVNode)(2,t.Collapsible,{title:"Input Management",children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Input",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Input Level",children:i}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Desired Level",children:(0,e.createComponentVNode)(2,t.Stack,{inline:!0,width:"100%",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"fast-backward",disabled:d===0,tooltip:"Set to 0",onClick:function(){function L(){return l("set",{set_level:0})}return L}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"step-backward",tooltip:"Decrease to actual input level",disabled:d===0,onClick:function(){function L(){return l("set",{set_level:i})}return L}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"backward",disabled:d===0,tooltip:"Decrease one step",onClick:function(){function L(){return l("decrease")}return L}()})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:1,mx:1,children:(0,e.createComponentVNode)(2,t.Slider,{value:d,fillValue:i,minValue:0,color:B,maxValue:g,stepPixelSize:20,step:1,onChange:function(){function L(w,T){return l("set",{set_level:T})}return L}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"forward",disabled:d===g,tooltip:"Increase one step",tooltipPosition:"left",onClick:function(){function L(){return l("increase")}return L}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",disabled:d===g,tooltip:"Set to max",tooltipPosition:"left",onClick:function(){function L(){return l("set",{set_level:g})}return L}()})]})]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Current Power Use",children:(0,m.formatPower)(C)}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power for next level",children:(0,m.formatPower)(b)}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Surplus Power",children:(0,m.formatPower)(v)})]})})}),(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Output",children:(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Available Points",children:s}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Total Points",children:u})]})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{align:"end",children:(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:f.map(function(L){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:L.name,children:(0,e.createComponentVNode)(2,t.Button,{disabled:L.price>=s,onClick:function(){function w(){return l("vend",{target:L.key})}return w}(),content:L.price})},L.key)})})})})]})})]})})})}return y}()},71736:function(I,r,n){"use strict";r.__esModule=!0,r.BodyScanner=void 0;var e=n(96524),a=n(36121),t=n(78234),o=n(17899),m=n(24674),V=n(45493),y=[["good","Alive"],["average","Critical"],["bad","DEAD"]],S=[["hasVirus","bad","Viral pathogen detected in blood stream."],["blind","average","Cataracts detected."],["colourblind","average","Photoreceptor abnormalities detected."],["nearsighted","average","Retinal misalignment detected."]],k=[["Respiratory","oxyLoss"],["Brain","brainLoss"],["Toxin","toxLoss"],["Radiation","radLoss"],["Brute","bruteLoss"],["Cellular","cloneLoss"],["Burn","fireLoss"],["Inebriation","drunkenness"]],h={average:[.25,.5],bad:[.5,1/0]},l=function(B,L){for(var w=[],T=0;T0?B.filter(function(L){return!!L}).reduce(function(L,w){return(0,e.createFragment)([L,(0,e.createComponentVNode)(2,m.Box,{children:w},w)],0)},null):null},f=function(B){if(B>100){if(B<300)return"mild infection";if(B<400)return"mild infection+";if(B<500)return"mild infection++";if(B<700)return"acute infection";if(B<800)return"acute infection+";if(B<900)return"acute infection++";if(B>=900)return"septic"}return""},d=r.BodyScanner=function(){function b(B,L){var w=(0,o.useBackend)(L),T=w.data,x=T.occupied,A=T.occupant,E=A===void 0?{}:A,M=x?(0,e.createComponentVNode)(2,i,{occupant:E}):(0,e.createComponentVNode)(2,N);return(0,e.createComponentVNode)(2,V.Window,{width:700,height:600,title:"Body Scanner",children:(0,e.createComponentVNode)(2,V.Window.Content,{scrollable:!0,children:M})})}return b}(),i=function(B){var L=B.occupant;return(0,e.createComponentVNode)(2,m.Box,{children:[(0,e.createComponentVNode)(2,s,{occupant:L}),(0,e.createComponentVNode)(2,u,{occupant:L}),(0,e.createComponentVNode)(2,C,{occupant:L}),(0,e.createComponentVNode)(2,g,{organs:L.extOrgan}),(0,e.createComponentVNode)(2,p,{organs:L.intOrgan})]})},s=function(B,L){var w=(0,o.useBackend)(L),T=w.act,x=w.data,A=x.occupant;return(0,e.createComponentVNode)(2,m.Section,{title:"Occupant",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,m.Button,{icon:"print",onClick:function(){function E(){return T("print_p")}return E}(),children:"Print Report"}),(0,e.createComponentVNode)(2,m.Button,{icon:"user-slash",onClick:function(){function E(){return T("ejectify")}return E}(),children:"Eject"})],4),children:(0,e.createComponentVNode)(2,m.LabeledList,{children:[(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Name",children:A.name}),(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Health",children:(0,e.createComponentVNode)(2,m.ProgressBar,{min:"0",max:A.maxHealth,value:A.health/A.maxHealth,ranges:{good:[.5,1/0],average:[0,.5],bad:[-1/0,0]}})}),(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Status",color:y[A.stat][0],children:y[A.stat][1]}),(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Temperature",children:[(0,e.createComponentVNode)(2,m.AnimatedNumber,{value:(0,a.round)(A.bodyTempC)}),"\xB0C,\xA0",(0,e.createComponentVNode)(2,m.AnimatedNumber,{value:(0,a.round)(A.bodyTempF)}),"\xB0F"]}),(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Implants",children:A.implant_len?(0,e.createComponentVNode)(2,m.Box,{children:A.implant.map(function(E){return E.name}).join(", ")}):(0,e.createComponentVNode)(2,m.Box,{color:"label",children:"None"})})]})})},u=function(B){var L=B.occupant;return L.hasBorer||L.blind||L.colourblind||L.nearsighted||L.hasVirus?(0,e.createComponentVNode)(2,m.Section,{title:"Abnormalities",children:S.map(function(w,T){if(L[w[0]])return(0,e.createComponentVNode)(2,m.Box,{color:w[1],bold:w[1]==="bad",children:w[2]},w[2])})}):(0,e.createComponentVNode)(2,m.Section,{title:"Abnormalities",children:(0,e.createComponentVNode)(2,m.Box,{color:"label",children:"No abnormalities found."})})},C=function(B){var L=B.occupant;return(0,e.createComponentVNode)(2,m.Section,{title:"Damage",children:(0,e.createComponentVNode)(2,m.Table,{children:l(k,function(w,T,x){return(0,e.createFragment)([(0,e.createComponentVNode)(2,m.Table.Row,{color:"label",children:[(0,e.createComponentVNode)(2,m.Table.Cell,{children:[w[0],":"]}),(0,e.createComponentVNode)(2,m.Table.Cell,{children:!!T&&T[0]+":"})]}),(0,e.createComponentVNode)(2,m.Table.Row,{children:[(0,e.createComponentVNode)(2,m.Table.Cell,{children:(0,e.createComponentVNode)(2,v,{value:L[w[1]],marginBottom:x100)&&"average"||!!L.status.robotic&&"label",width:"33%",children:(0,t.capitalize)(L.name)}),(0,e.createComponentVNode)(2,m.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,m.ProgressBar,{m:-.5,min:"0",max:L.maxHealth,mt:w>0&&"0.5rem",value:L.totalLoss/L.maxHealth,ranges:h,children:(0,e.createComponentVNode)(2,m.Stack,{children:[(0,e.createComponentVNode)(2,m.Tooltip,{content:"Total damage",children:(0,e.createComponentVNode)(2,m.Stack.Item,{children:[(0,e.createComponentVNode)(2,m.Icon,{name:"heartbeat",mr:.5}),(0,a.round)(L.totalLoss)]})}),!!L.bruteLoss&&(0,e.createComponentVNode)(2,m.Tooltip,{content:"Brute damage",children:(0,e.createComponentVNode)(2,m.Stack.Item,{grow:!0,children:[(0,e.createComponentVNode)(2,m.Icon,{name:"bone",mr:.5}),(0,a.round)(L.bruteLoss)]})}),!!L.fireLoss&&(0,e.createComponentVNode)(2,m.Tooltip,{content:"Burn damage",children:(0,e.createComponentVNode)(2,m.Stack.Item,{children:[(0,e.createComponentVNode)(2,m.Icon,{name:"fire",mr:.5}),(0,a.round)(L.fireLoss)]})})]})})}),(0,e.createComponentVNode)(2,m.Table.Cell,{textAlign:"right",verticalAlign:"top",width:"33%",pt:w>0&&"calc(0.5rem + 2px)",children:[(0,e.createComponentVNode)(2,m.Box,{color:"average",inline:!0,children:c([!!L.internalBleeding&&"Internal bleeding",!!L.burnWound&&"Critical tissue burns",!!L.lungRuptured&&"Ruptured lung",!!L.status.broken&&L.status.broken,f(L.germ_level),!!L.open&&"Open incision"])}),(0,e.createComponentVNode)(2,m.Box,{inline:!0,children:[c([!!L.status.splinted&&(0,e.createComponentVNode)(2,m.Box,{color:"good",children:"Splinted"}),!!L.status.robotic&&(0,e.createComponentVNode)(2,m.Box,{color:"label",children:"Robotic"}),!!L.status.dead&&(0,e.createComponentVNode)(2,m.Box,{color:"bad",bold:!0,children:"DEAD"})]),c(L.shrapnel.map(function(T){return T.known?T.name:"Unknown object"}))]})]})]},w)})]})})},p=function(B){return B.organs.length===0?(0,e.createComponentVNode)(2,m.Section,{title:"Internal Organs",children:(0,e.createComponentVNode)(2,m.Box,{color:"label",children:"N/A"})}):(0,e.createComponentVNode)(2,m.Section,{title:"Internal Organs",children:(0,e.createComponentVNode)(2,m.Table,{children:[(0,e.createComponentVNode)(2,m.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,m.Table.Cell,{children:"Name"}),(0,e.createComponentVNode)(2,m.Table.Cell,{textAlign:"center",children:"Damage"}),(0,e.createComponentVNode)(2,m.Table.Cell,{textAlign:"right",children:"Injuries"})]}),B.organs.map(function(L,w){return(0,e.createComponentVNode)(2,m.Table.Row,{children:[(0,e.createComponentVNode)(2,m.Table.Cell,{color:!!L.dead&&"bad"||L.germ_level>100&&"average"||L.robotic>0&&"label",width:"33%",children:(0,t.capitalize)(L.name)}),(0,e.createComponentVNode)(2,m.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,m.ProgressBar,{min:"0",max:L.maxHealth,value:L.damage/L.maxHealth,mt:w>0&&"0.5rem",ranges:h,children:(0,a.round)(L.damage)})}),(0,e.createComponentVNode)(2,m.Table.Cell,{textAlign:"right",verticalAlign:"top",width:"33%",pt:w>0&&"calc(0.5rem + 2px)",children:[(0,e.createComponentVNode)(2,m.Box,{color:"average",inline:!0,children:c([f(L.germ_level)])}),(0,e.createComponentVNode)(2,m.Box,{inline:!0,children:c([L.robotic===1&&(0,e.createComponentVNode)(2,m.Box,{color:"label",children:"Robotic"}),L.robotic===2&&(0,e.createComponentVNode)(2,m.Box,{color:"label",children:"Assisted"}),!!L.dead&&(0,e.createComponentVNode)(2,m.Box,{color:"bad",bold:!0,children:"DEAD"})])})]})]},w)})]})})},N=function(){return(0,e.createComponentVNode)(2,m.Section,{fill:!0,children:(0,e.createComponentVNode)(2,m.Stack,{fill:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,m.Stack.Item,{grow:!0,align:"center",color:"label",children:[(0,e.createComponentVNode)(2,m.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,e.createVNode)(1,"br"),"No occupant detected."]})})})}},99449:function(I,r,n){"use strict";r.__esModule=!0,r.BookBinder=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=n(99665),V=n(18963),y=r.BookBinder=function(){function S(k,h){var l=(0,a.useBackend)(h),c=l.act,f=l.data,d=f.selectedbook,i=f.book_categories,s=[];return i.map(function(u){return s[u.description]=u.category_id}),(0,e.createComponentVNode)(2,o.Window,{width:600,height:400,children:[(0,e.createComponentVNode)(2,m.ComplexModal),(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Book Binder",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"print",width:"auto",content:"Print Book",onClick:function(){function u(){return c("print_book")}return u}()}),children:[(0,e.createComponentVNode)(2,t.Box,{ml:10,fontSize:"1.2rem",bold:!0,children:[(0,e.createComponentVNode)(2,t.Icon,{name:"search-plus",verticalAlign:"middle",size:3,mr:"1rem"}),"Book Binder"]}),(0,e.createComponentVNode)(2,t.Stack,{children:(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Title",children:(0,e.createComponentVNode)(2,t.Button,{textAlign:"left",icon:"pen",width:"auto",content:d.title,onClick:function(){function u(){return(0,m.modalOpen)(h,"edit_selected_title")}return u}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Author",children:(0,e.createComponentVNode)(2,t.Button,{textAlign:"left",icon:"pen",width:"auto",content:d.author,onClick:function(){function u(){return(0,m.modalOpen)(h,"edit_selected_author")}return u}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Select Categories",children:(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Dropdown,{width:"190px",options:i.map(function(u){return u.description}),onSelected:function(){function u(C){return c("toggle_binder_category",{category_id:s[C]})}return u}()})})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Summary",children:(0,e.createComponentVNode)(2,t.Button,{icon:"pen",width:"auto",content:"Edit Summary",onClick:function(){function u(){return(0,m.modalOpen)(h,"edit_selected_summary")}return u}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{children:d.summary})]}),(0,e.createVNode)(1,"br"),i.filter(function(u){return d.categories.includes(u.category_id)}).map(function(u){return(0,e.createComponentVNode)(2,t.Button,{content:u.description,selected:!0,icon:"unlink",onClick:function(){function C(){return c("toggle_binder_category",{category_id:u.category_id})}return C}()},u.category_id)})]})})]})})})]})}return S}()},43506:function(I,r,n){"use strict";r.__esModule=!0,r.BotClean=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=n(69521),V=r.BotClean=function(){function y(S,k){var h=(0,a.useBackend)(k),l=h.act,c=h.data,f=c.locked,d=c.noaccess,i=c.maintpanel,s=c.on,u=c.autopatrol,C=c.canhack,v=c.emagged,g=c.remote_disabled,p=c.painame,N=c.cleanblood,b=c.area;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:400,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,m.BotStatus),(0,e.createComponentVNode)(2,t.Section,{title:"Cleaning Settings",children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:N,content:"Clean Blood",disabled:d,onClick:function(){function B(){return l("blood")}return B}()})}),(0,e.createComponentVNode)(2,t.Section,{title:"Misc Settings",children:[(0,e.createComponentVNode)(2,t.Button,{fluid:!0,content:b?"Reset Area Selection":"Restrict to Current Area",onClick:function(){function B(){return l("area")}return B}()}),b!==null&&(0,e.createComponentVNode)(2,t.LabeledList,{mb:1,children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Locked Area",children:b})})]}),p&&(0,e.createComponentVNode)(2,t.Section,{title:"pAI",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"eject",content:p,disabled:d,onClick:function(){function B(){return l("ejectpai")}return B}()})})]})})}return y}()},89593:function(I,r,n){"use strict";r.__esModule=!0,r.BotFloor=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=n(69521),V=r.BotFloor=function(){function y(S,k){var h=(0,a.useBackend)(k),l=h.act,c=h.data,f=c.noaccess,d=c.painame,i=c.hullplating,s=c.replace,u=c.eat,C=c.make,v=c.fixfloor,g=c.nag_empty,p=c.magnet,N=c.tiles_amount;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:510,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,m.BotStatus),(0,e.createComponentVNode)(2,t.Section,{title:"Floor Settings",children:[(0,e.createComponentVNode)(2,t.Box,{mb:"5px",children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Tiles Left",children:N})}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:i,content:"Add tiles to new hull plating",tooltip:"Fixing a plating requires the removal of floor tile. This will place it back after repairing. Same goes for hull breaches",disabled:f,onClick:function(){function b(){return l("autotile")}return b}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:s,content:"Add floor tiles on exposed hull plating",tooltip:"Example: It will add tiles to maintenance",disabled:f,onClick:function(){function b(){return l("replacetiles")}return b}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:v,content:"Repair damaged tiles and platings",disabled:f,onClick:function(){function b(){return l("fixfloors")}return b}()})]}),(0,e.createComponentVNode)(2,t.Section,{title:"Miscellaneous",children:[(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:u,content:"Finds tiles",disabled:f,onClick:function(){function b(){return l("eattiles")}return b}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:C,content:"Make pieces of metal into tiles when empty",disabled:f,onClick:function(){function b(){return l("maketiles")}return b}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:g,content:"Transmit notice when empty",disabled:f,onClick:function(){function b(){return l("nagonempty")}return b}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:p,content:"Traction Magnets",disabled:f,onClick:function(){function b(){return l("anchored")}return b}()})]}),d&&(0,e.createComponentVNode)(2,t.Section,{title:"pAI",children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,icon:"eject",content:d,disabled:f,onClick:function(){function b(){return l("ejectpai")}return b}()})})]})})}return y}()},89513:function(I,r,n){"use strict";r.__esModule=!0,r.BotHonk=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=n(69521),V=r.BotHonk=function(){function y(S,k){var h=(0,a.useBackend)(k),l=h.act,c=h.data;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:220,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,m.BotStatus)})})}return y}()},19297:function(I,r,n){"use strict";r.__esModule=!0,r.BotMed=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=n(69521),V=r.BotMed=function(){function y(S,k){var h=(0,a.useBackend)(k),l=h.act,c=h.data,f=c.locked,d=c.noaccess,i=c.maintpanel,s=c.on,u=c.autopatrol,C=c.canhack,v=c.emagged,g=c.remote_disabled,p=c.painame,N=c.shut_up,b=c.declare_crit,B=c.stationary_mode,L=c.heal_threshold,w=c.injection_amount,T=c.use_beaker,x=c.treat_virus,A=c.reagent_glass;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:500,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,m.BotStatus),(0,e.createComponentVNode)(2,t.Section,{title:"Communication Settings",children:[(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,content:"Speaker",checked:!N,disabled:d,onClick:function(){function E(){return l("toggle_speaker")}return E}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,content:"Critical Patient Alerts",checked:b,disabled:d,onClick:function(){function E(){return l("toggle_critical_alerts")}return E}()})]}),(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Treatment Settings",children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Healing Threshold",children:(0,e.createComponentVNode)(2,t.Slider,{value:L.value,minValue:L.min,maxValue:L.max,step:5,disabled:d,onChange:function(){function E(M,D){return l("set_heal_threshold",{target:D})}return E}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Injection Level",children:(0,e.createComponentVNode)(2,t.Slider,{value:w.value,minValue:w.min,maxValue:w.max,step:5,format:function(){function E(M){return M+"u"}return E}(),disabled:d,onChange:function(){function E(M,D){return l("set_injection_amount",{target:D})}return E}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Reagent Source",children:(0,e.createComponentVNode)(2,t.Button,{content:T?"Beaker":"Internal Synthesizer",icon:T?"flask":"cogs",disabled:d,onClick:function(){function E(){return l("toggle_use_beaker")}return E}()})}),A&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Beaker",children:(0,e.createComponentVNode)(2,t.Stack,{inline:!0,width:"100%",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:1,children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:A.amount,minValue:0,maxValue:A.max_amount,children:[A.amount," / ",A.max_amount]})}),(0,e.createComponentVNode)(2,t.Stack.Item,{ml:1,children:(0,e.createComponentVNode)(2,t.Button,{content:"Eject",disabled:d,onClick:function(){function E(){return l("eject_reagent_glass")}return E}()})})]})})]}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{mt:1,fluid:!0,content:"Treat Viral Infections",checked:x,disabled:d,onClick:function(){function E(){return l("toggle_treat_viral")}return E}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,content:"Stationary Mode",checked:B,disabled:d,onClick:function(){function E(){return l("toggle_stationary_mode")}return E}()})]}),p&&(0,e.createComponentVNode)(2,t.Section,{title:"pAI",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"eject",content:p,disabled:d,onClick:function(){function E(){return l("ejectpai")}return E}()})})]})})})}return y}()},4249:function(I,r,n){"use strict";r.__esModule=!0,r.BotSecurity=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=n(69521),V=r.BotSecurity=function(){function y(S,k){var h=(0,a.useBackend)(k),l=h.act,c=h.data,f=c.noaccess,d=c.painame,i=c.check_id,s=c.check_weapons,u=c.check_warrant,C=c.arrest_mode,v=c.arrest_declare;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:445,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,m.BotStatus),(0,e.createComponentVNode)(2,t.Section,{title:"Who To Arrest",children:[(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:i,content:"Unidentifiable Persons",disabled:f,onClick:function(){function g(){return l("authid")}return g}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:s,content:"Unauthorized Weapons",disabled:f,onClick:function(){function g(){return l("authweapon")}return g}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:u,content:"Wanted Criminals",disabled:f,onClick:function(){function g(){return l("authwarrant")}return g}()})]}),(0,e.createComponentVNode)(2,t.Section,{title:"Arrest Procedure",children:[(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:C,content:"Detain Targets Indefinitely",disabled:f,onClick:function(){function g(){return l("arrtype")}return g}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:v,content:"Announce Arrests On Radio",disabled:f,onClick:function(){function g(){return l("arrdeclare")}return g}()})]}),d&&(0,e.createComponentVNode)(2,t.Section,{title:"pAI",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"eject",content:d,disabled:f,onClick:function(){function g(){return l("ejectpai")}return g}()})})]})})}return y}()},27267:function(I,r,n){"use strict";r.__esModule=!0,r.BrigCells=void 0;var e=n(96524),a=n(45493),t=n(24674),o=n(17899),m=function(k,h){var l=k.cell,c=(0,o.useBackend)(h),f=c.act,d=l.cell_id,i=l.occupant,s=l.crimes,u=l.brigged_by,C=l.time_left_seconds,v=l.time_set_seconds,g=l.ref,p="";C>0&&(p+=" BrigCells__listRow--active");var N=function(){f("release",{ref:g})};return(0,e.createComponentVNode)(2,t.Table.Row,{className:p,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:d}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:i}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:s}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:u}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.TimeDisplay,{totalSeconds:v})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.TimeDisplay,{totalSeconds:C})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{type:"button",onClick:N,children:"Release"})})]})},V=function(k){var h=k.cells;return(0,e.createComponentVNode)(2,t.Table,{className:"BrigCells__list",children:[(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{header:!0,children:"Cell"}),(0,e.createComponentVNode)(2,t.Table.Cell,{header:!0,children:"Occupant"}),(0,e.createComponentVNode)(2,t.Table.Cell,{header:!0,children:"Crimes"}),(0,e.createComponentVNode)(2,t.Table.Cell,{header:!0,children:"Brigged By"}),(0,e.createComponentVNode)(2,t.Table.Cell,{header:!0,children:"Time Brigged For"}),(0,e.createComponentVNode)(2,t.Table.Cell,{header:!0,children:"Time Left"}),(0,e.createComponentVNode)(2,t.Table.Cell,{header:!0,children:"Release"})]}),h.map(function(l){return(0,e.createComponentVNode)(2,m,{cell:l},l.ref)})]})},y=r.BrigCells=function(){function S(k,h){var l=(0,o.useBackend)(h),c=l.act,f=l.data,d=f.cells;return(0,e.createComponentVNode)(2,a.Window,{theme:"security",width:800,height:400,children:(0,e.createComponentVNode)(2,a.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,V,{cells:d})})})})})}return S}()},26623:function(I,r,n){"use strict";r.__esModule=!0,r.BrigTimer=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=r.BrigTimer=function(){function V(y,S){var k=(0,a.useBackend)(S),h=k.act,l=k.data;l.nameText=l.occupant,l.timing&&(l.prisoner_hasrec?l.nameText=(0,e.createComponentVNode)(2,t.Box,{color:"green",children:l.occupant}):l.nameText=(0,e.createComponentVNode)(2,t.Box,{color:"red",children:l.occupant}));var c="pencil-alt";l.prisoner_name&&(l.prisoner_hasrec||(c="exclamation-triangle"));var f=[],d=0;for(d=0;df?this.substring(0,f)+"...":this};var k=function(d,i){var s,u;if(!i)return[];var C=d.findIndex(function(v){return v.name===i.name});return[(s=d[C-1])==null?void 0:s.name,(u=d[C+1])==null?void 0:u.name]},h=function(d,i){i===void 0&&(i="");var s=(0,m.createSearch)(i,function(u){return u.name});return(0,t.flow)([(0,a.filter)(function(u){return u==null?void 0:u.name}),i&&(0,a.filter)(s),(0,a.sortBy)(function(u){return u.name})])(d)},l=r.CameraConsole=function(){function f(d,i){var s=(0,V.useBackend)(i),u=s.act,C=s.data,v=s.config,g=C.mapRef,p=C.activeCamera,N=h(C.cameras),b=k(N,p),B=b[0],L=b[1];return(0,e.createComponentVNode)(2,S.Window,{width:870,height:708,children:[(0,e.createVNode)(1,"div","CameraConsole__left",(0,e.createComponentVNode)(2,S.Window.Content,{children:(0,e.createComponentVNode)(2,y.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,c)})}),2),(0,e.createVNode)(1,"div","CameraConsole__right",[(0,e.createVNode)(1,"div","CameraConsole__toolbar",[(0,e.createVNode)(1,"b",null,"Camera: ",16),p&&p.name||"\u2014"],0),(0,e.createVNode)(1,"div","CameraConsole__toolbarRight",[(0,e.createComponentVNode)(2,y.Button,{icon:"chevron-left",disabled:!B,onClick:function(){function w(){return u("switch_camera",{name:B})}return w}()}),(0,e.createComponentVNode)(2,y.Button,{icon:"chevron-right",disabled:!L,onClick:function(){function w(){return u("switch_camera",{name:L})}return w}()})],4),(0,e.createComponentVNode)(2,y.ByondUi,{className:"CameraConsole__map",params:{id:g,type:"map"}})],4)]})}return f}(),c=r.CameraConsoleContent=function(){function f(d,i){var s=(0,V.useBackend)(i),u=s.act,C=s.data,v=(0,V.useLocalState)(i,"searchText",""),g=v[0],p=v[1],N=C.activeCamera,b=h(C.cameras,g);return(0,e.createComponentVNode)(2,y.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,y.Stack.Item,{children:(0,e.createComponentVNode)(2,y.Input,{fluid:!0,placeholder:"Search for a camera",onInput:function(){function B(L,w){return p(w)}return B}()})}),(0,e.createComponentVNode)(2,y.Stack.Item,{grow:!0,m:0,children:(0,e.createComponentVNode)(2,y.Section,{fill:!0,scrollable:!0,children:b.map(function(B){return(0,e.createVNode)(1,"div",(0,o.classes)(["Button","Button--fluid","Button--color--transparent",N&&B.name===N.name&&"Button--selected"]),B.name.trimLongStr(23),0,{title:B.name,onClick:function(){function L(){return u("switch_camera",{name:B.name})}return L}()},B.name)})})})]})}return f}()},9300:function(I,r,n){"use strict";r.__esModule=!0,r.CameraConsoleOldContent=r.CameraConsoleMapContent=r.CameraConsole220=void 0;var e=n(96524),a=n(50640),t=n(74041),o=n(28234),m=n(78234),V=n(17899),y=n(24674),S=n(45493),k=function(i,s){var u,C;if(!s)return[];var v=i.findIndex(function(g){return g.name===s.name});return[(u=i[v-1])==null?void 0:u.name,(C=i[v+1])==null?void 0:C.name]},h=function(i,s){s===void 0&&(s="");var u=(0,m.createSearch)(s,function(C){return C.name});return(0,t.flow)([(0,a.filter)(function(C){return C==null?void 0:C.name}),s&&(0,a.filter)(u),(0,a.sortBy)(function(C){return C.name})])(i)},l=r.CameraConsole220=function(){function d(i,s){var u=(0,V.useLocalState)(s,"tabIndex",0),C=u[0],v=u[1],g=function(){function p(N){switch(N){case 0:return(0,e.createComponentVNode)(2,c);case 1:return(0,e.createComponentVNode)(2,f);default:return"WE SHOULDN'T BE HERE!"}}return p}();return(0,e.createComponentVNode)(2,S.Window,{width:1170,height:755,children:(0,e.createComponentVNode)(2,S.Window.Content,{children:(0,e.createComponentVNode)(2,y.Stack,{children:(0,e.createComponentVNode)(2,y.Box,{fillPositionedParent:!0,children:[(0,e.createComponentVNode)(2,y.Stack.Item,{width:C===1?"222px":"475px",textAlign:"center",children:(0,e.createComponentVNode)(2,y.Tabs,{fluid:!0,ml:C===1?1:0,mt:C===1?1:0,children:[(0,e.createComponentVNode)(2,y.Tabs.Tab,{selected:C===0,onClick:function(){function p(){return v(0)}return p}(),children:[(0,e.createComponentVNode)(2,y.Icon,{name:"map-marked-alt"})," \u041A\u0430\u0440\u0442\u0430"]},"Map"),(0,e.createComponentVNode)(2,y.Tabs.Tab,{selected:C===1,onClick:function(){function p(){return v(1)}return p}(),children:[(0,e.createComponentVNode)(2,y.Icon,{name:"table"})," \u0421\u043F\u0438\u0441\u043E\u043A"]},"List")]})}),g(C)]})})})})}return d}(),c=r.CameraConsoleMapContent=function(){function d(i,s){var u=(0,V.useBackend)(s),C=u.act,v=u.data,g=u.config,p=h(v.cameras),N=(0,V.useLocalState)(s,"zoom",1),b=N[0],B=N[1],L=v.mapRef,w=v.activeCamera,T=v.stationLevel,x=k(p,w),A=x[0],E=x[1];return(0,e.createComponentVNode)(2,y.Stack,{fill:!0,vertical:!0,style:{display:"flex"},children:[(0,e.createComponentVNode)(2,y.Stack.Item,{height:"100%",style:{display:"flex",flex:"0 0 475px"},children:(0,e.createComponentVNode)(2,y.NanoMap,{onZoom:function(){function M(D){return B(D)}return M}(),children:p.filter(function(M){return M.z===T}).map(function(M){return(0,e.createComponentVNode)(2,y.NanoMap.NanoButton,{activeCamera:w,x:M.x,y:M.y,context:s,zoom:b,icon:"circle",tooltip:M.name,name:M.name,color:"blue",status:M.status},M.ref)})})}),(0,e.createComponentVNode)(2,y.Stack.Item,{height:"100%",resizable:!0,className:"CameraConsole__right_map",children:[(0,e.createVNode)(1,"div","CameraConsole__header",[(0,e.createVNode)(1,"div","CameraConsole__toolbar",[(0,e.createVNode)(1,"b",null,"\u041A\u0430\u043C\u0435\u0440\u0430: ",16),w&&w.name||"\u2014"],0),(0,e.createVNode)(1,"div","CameraConsole__toolbarRight",[(0,e.createComponentVNode)(2,y.Button,{icon:"chevron-left",disabled:!A,onClick:function(){function M(){return C("switch_camera",{name:A})}return M}()}),(0,e.createComponentVNode)(2,y.Button,{icon:"chevron-right",disabled:!E,onClick:function(){function M(){return C("switch_camera",{name:E})}return M}()})],4)],4),(0,e.createComponentVNode)(2,y.ByondUi,{resizable:!0,className:"CameraConsole__map",overflow:"hidden",params:{id:L,type:"map"}})]})]})}return d}(),f=r.CameraConsoleOldContent=function(){function d(i,s){var u=(0,V.useBackend)(s),C=u.act,v=u.data,g=u.config,p=v.mapRef,N=v.activeCamera,b=(0,V.useLocalState)(s,"searchText",""),B=b[0],L=b[1],w=h(v.cameras,B),T=k(w,N),x=T[0],A=T[1];return(0,e.createComponentVNode)(2,y.Stack.Item,{children:[(0,e.createVNode)(1,"div","CameraConsole__left",(0,e.createComponentVNode)(2,S.Window.Content,{children:(0,e.createComponentVNode)(2,y.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,y.Stack.Item,{children:(0,e.createComponentVNode)(2,y.Input,{width:"215px",placeholder:"\u041D\u0430\u0439\u0442\u0438 \u043A\u0430\u043C\u0435\u0440\u0443",onInput:function(){function E(M,D){return L(D)}return E}()})}),(0,e.createComponentVNode)(2,y.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,y.Section,{fill:!0,scrollable:!0,children:w.map(function(E){return(0,e.createVNode)(1,"div",(0,o.classes)(["Button","Button--fluid",E.status?"Button--color--transparent":"Button--color--danger","Button--ellipsis",N&&E.name===N.name&&"Button--selected"]),E.name,0,{title:E.name,onClick:function(){function M(){return C("switch_camera",{name:E.name})}return M}()},E.name)})})})]})}),2),(0,e.createVNode)(1,"div","CameraConsole__right",[(0,e.createVNode)(1,"div","CameraConsole__toolbar",[(0,e.createVNode)(1,"b",null,"\u041A\u0430\u043C\u0435\u0440\u0430: ",16),N&&N.name||"\u2014"],0),(0,e.createVNode)(1,"div","CameraConsole__toolbarRight",[(0,e.createComponentVNode)(2,y.Button,{icon:"chevron-left",disabled:!x,onClick:function(){function E(){return C("switch_camera",{name:x})}return E}()}),(0,e.createComponentVNode)(2,y.Button,{icon:"chevron-right",disabled:!A,onClick:function(){function E(){return C("switch_camera",{name:A})}return E}()})],4),(0,e.createComponentVNode)(2,y.ByondUi,{className:"CameraConsole__map",params:{id:p,type:"map"}})],4)]})}return d}()},95513:function(I,r,n){"use strict";r.__esModule=!0,r.Canister=void 0;var e=n(96524),a=n(36121),t=n(17899),o=n(24674),m=n(92986),V=n(45493),y=r.Canister=function(){function S(k,h){var l=(0,t.useBackend)(h),c=l.act,f=l.data,d=f.portConnected,i=f.tankPressure,s=f.releasePressure,u=f.defaultReleasePressure,C=f.minReleasePressure,v=f.maxReleasePressure,g=f.valveOpen,p=f.name,N=f.canLabel,b=f.colorContainer,B=f.color_index,L=f.hasHoldingTank,w=f.holdingTank,T="";B.prim&&(T=b.prim.options[B.prim].name);var x="";B.sec&&(x=b.sec.options[B.sec].name);var A="";B.ter&&(A=b.ter.options[B.ter].name);var E="";B.quart&&(E=b.quart.options[B.quart].name);var M=[],D=[],P=[],R=[],j=0;for(j=0;jp.current_positions&&(0,e.createComponentVNode)(2,t.Box,{color:"green",children:p.total_positions-p.current_positions})||(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"0"})}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{content:"-",disabled:u.cooldown_time||!p.can_close,onClick:function(){function N(){return s("make_job_unavailable",{job:p.title})}return N}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{content:"+",disabled:u.cooldown_time||!p.can_open,onClick:function(){function N(){return s("make_job_available",{job:p.title})}return N}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:u.target_dept&&(0,e.createComponentVNode)(2,t.Box,{color:"green",children:u.priority_jobs.indexOf(p.title)>-1?"Yes":""})||(0,e.createComponentVNode)(2,t.Button,{content:p.is_priority?"Yes":"No",selected:p.is_priority,disabled:u.cooldown_time||!p.can_prioritize,onClick:function(){function N(){return s("prioritize_job",{job:p.title})}return N}()})})]},p.title)})]})})]}):g=(0,e.createComponentVNode)(2,S);break;case 2:!u.authenticated||!u.scan_name?g=(0,e.createComponentVNode)(2,S):u.modify_name?g=(0,e.createComponentVNode)(2,m.AccessList,{accesses:u.regions,selectedList:u.selectedAccess,accessMod:function(){function p(N){return s("set",{access:N})}return p}(),grantAll:function(){function p(){return s("grant_all")}return p}(),denyAll:function(){function p(){return s("clear_all")}return p}(),grantDep:function(){function p(N){return s("grant_region",{region:N})}return p}(),denyDep:function(){function p(N){return s("deny_region",{region:N})}return p}()}):g=(0,e.createComponentVNode)(2,k);break;case 3:u.authenticated?u.records.length?g=(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Records",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"times",content:"Delete All Records",disabled:!u.authenticated||u.records.length===0||u.target_dept,onClick:function(){function p(){return s("wipe_all_logs")}return p}()}),children:[(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{height:2,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Crewman"}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Old Rank"}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"New Rank"}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Authorized By"}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Time"}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Reason"}),!!u.iscentcom&&(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Deleted By"})]}),u.records.map(function(p){return(0,e.createComponentVNode)(2,t.Table.Row,{height:2,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:p.transferee}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:p.oldvalue}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:p.newvalue}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:p.whodidit}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:p.timestamp}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:p.reason}),!!u.iscentcom&&(0,e.createComponentVNode)(2,t.Table.Cell,{children:p.deletedby})]},p.timestamp)})]}),!!u.iscentcom&&(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"pencil-alt",content:"Delete MY Records",color:"purple",disabled:!u.authenticated||u.records.length===0,onClick:function(){function p(){return s("wipe_my_logs")}return p}()})})]}):g=(0,e.createComponentVNode)(2,h):g=(0,e.createComponentVNode)(2,S);break;case 4:!u.authenticated||!u.scan_name?g=(0,e.createComponentVNode)(2,S):g=(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Your Team",children:(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{height:2,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Name"}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Rank"}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Sec Status"}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Actions"})]}),u.people_dept.map(function(p){return(0,e.createComponentVNode)(2,t.Table.Row,{height:2,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:p.name}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:p.title}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:p.crimstat}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{content:p.buttontext,disabled:!p.demotable,onClick:function(){function N(){return s("remote_demote",{remote_demote:p.name})}return N}()})})]},p.title)})]})});break;default:g=(0,e.createComponentVNode)(2,t.Section,{title:"Warning",color:"red",children:"ERROR: Unknown Mode."})}return(0,e.createComponentVNode)(2,o.Window,{width:800,height:800,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:v}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:C}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:g})]})})})}return c}()},16377:function(I,r,n){"use strict";r.__esModule=!0,r.CargoConsole=void 0;var e=n(96524),a=n(74041),t=n(50640),o=n(17899),m=n(24674),V=n(45493),y=n(78234),S=r.CargoConsole=function(){function i(s,u){return(0,e.createComponentVNode)(2,V.Window,{width:900,height:800,children:(0,e.createComponentVNode)(2,V.Window.Content,{children:(0,e.createComponentVNode)(2,m.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,k),(0,e.createComponentVNode)(2,h),(0,e.createComponentVNode)(2,l),(0,e.createComponentVNode)(2,c),(0,e.createComponentVNode)(2,d)]})})})}return i}(),k=function(s,u){var C=(0,o.useLocalState)(u,"contentsModal",null),v=C[0],g=C[1],p=(0,o.useLocalState)(u,"contentsModalTitle",null),N=p[0],b=p[1];if(v!==null&&N!==null)return(0,e.createComponentVNode)(2,m.Modal,{maxWidth:"75%",width:window.innerWidth+"px",maxHeight:window.innerHeight*.75+"px",mx:"auto",children:[(0,e.createComponentVNode)(2,m.Box,{width:"100%",bold:!0,children:(0,e.createVNode)(1,"h1",null,[N,(0,e.createTextVNode)(" contents:")],0)}),(0,e.createComponentVNode)(2,m.Box,{children:v.map(function(B){return(0,e.createComponentVNode)(2,m.Box,{children:["- ",B]},B)})}),(0,e.createComponentVNode)(2,m.Box,{m:2,children:(0,e.createComponentVNode)(2,m.Button,{content:"Close",onClick:function(){function B(){g(null),b(null)}return B}()})})]})},h=function(s,u){var C=(0,o.useBackend)(u),v=C.act,g=C.data,p=g.is_public,N=g.timeleft,b=g.moving,B=g.at_station,L,w;return!b&&!B?(L="Docked off-station",w="Call Shuttle"):!b&&B?(L="Docked at the station",w="Return Shuttle"):b&&(w="In Transit...",N!==1?L="Shuttle is en route (ETA: "+N+" minutes)":L="Shuttle is en route (ETA: "+N+" minute)"),(0,e.createComponentVNode)(2,m.Stack.Item,{children:(0,e.createComponentVNode)(2,m.Section,{title:"Status",children:(0,e.createComponentVNode)(2,m.LabeledList,{children:[(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Shuttle Status",children:L}),p===0&&(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Controls",children:[(0,e.createComponentVNode)(2,m.Button,{content:w,disabled:b,onClick:function(){function T(){return v("moveShuttle")}return T}()}),(0,e.createComponentVNode)(2,m.Button,{content:"View Central Command Messages",onClick:function(){function T(){return v("showMessages")}return T}()})]})]})})})},l=function(s,u){var C,v=(0,o.useBackend)(u),g=v.act,p=v.data,N=p.accounts,b=(0,o.useLocalState)(u,"selectedAccount"),B=b[0],L=b[1],w=[];return N.map(function(T){return w[T.name]=T.account_UID}),(0,e.createComponentVNode)(2,m.Stack.Item,{children:(0,e.createComponentVNode)(2,m.Section,{title:"Payment",children:[(0,e.createComponentVNode)(2,m.Dropdown,{width:"190px",options:N.map(function(T){return T.name}),selected:(C=N.filter(function(T){return T.account_UID===B})[0])==null?void 0:C.name,onSelected:function(){function T(x){return L(w[x])}return T}()}),N.filter(function(T){return T.account_UID===B}).map(function(T){return(0,e.createComponentVNode)(2,m.LabeledList,{children:[(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Account Name",children:(0,e.createComponentVNode)(2,m.Stack.Item,{mt:1,children:T.name})}),(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Balance",children:(0,e.createComponentVNode)(2,m.Stack.Item,{children:T.balance})})]},T.account_UID)})]})})},c=function(s,u){var C=(0,o.useBackend)(u),v=C.act,g=C.data,p=g.requests,N=g.categories,b=g.supply_packs,B=(0,o.useSharedState)(u,"category","Emergency"),L=B[0],w=B[1],T=(0,o.useSharedState)(u,"search_text",""),x=T[0],A=T[1],E=(0,o.useLocalState)(u,"contentsModal",null),M=E[0],D=E[1],P=(0,o.useLocalState)(u,"contentsModalTitle",null),R=P[0],j=P[1],F=(0,y.createSearch)(x,function(X){return X.name}),W=(0,o.useLocalState)(u,"selectedAccount"),_=W[0],K=W[1],H=(0,a.flow)([(0,t.filter)(function(X){return X.cat===N.filter(function(J){return J.name===L})[0].category||x}),x&&(0,t.filter)(F),(0,t.sortBy)(function(X){return X.name.toLowerCase()})])(b),$="Crate Catalogue";return x?$="Results for '"+x+"':":L&&($="Browsing "+L),(0,e.createComponentVNode)(2,m.Stack.Item,{children:(0,e.createComponentVNode)(2,m.Section,{title:$,buttons:(0,e.createComponentVNode)(2,m.Dropdown,{width:"190px",options:N.map(function(X){return X.name}),selected:L,onSelected:function(){function X(J){return w(J)}return X}()}),children:[(0,e.createComponentVNode)(2,m.Input,{fluid:!0,placeholder:"Search for...",onInput:function(){function X(J,ae){return A(ae)}return X}(),mb:1}),(0,e.createComponentVNode)(2,m.Box,{maxHeight:25,overflowY:"auto",overflowX:"hidden",children:(0,e.createComponentVNode)(2,m.Table,{m:"0.5rem",children:H.map(function(X){return(0,e.createComponentVNode)(2,m.Table.Row,{children:[(0,e.createComponentVNode)(2,m.Table.Cell,{bold:!0,children:[X.name," (",X.cost," Credits)"]}),(0,e.createComponentVNode)(2,m.Table.Cell,{textAlign:"right",pr:1,children:[(0,e.createComponentVNode)(2,m.Button,{content:"Order 1",icon:"shopping-cart",disabled:!_,onClick:function(){function J(){return v("order",{crate:X.ref,multiple:!1,account:_})}return J}()}),(0,e.createComponentVNode)(2,m.Button,{content:"Order Multiple",icon:"cart-plus",disabled:!_||X.singleton,onClick:function(){function J(){return v("order",{crate:X.ref,multiple:!0,account:_})}return J}()}),(0,e.createComponentVNode)(2,m.Button,{content:"View Contents",icon:"search",onClick:function(){function J(){D(X.contents),j(X.name)}return J}()})]})]},X.name)})})})]})})},f=function(s,u){var C=s.request,v,g;switch(C.department){case"Engineering":g="CE",v="orange";break;case"Medical":g="CMO",v="teal";break;case"Science":g="RD",v="purple";break;case"Supply":g="CT",v="brown";break;case"Service":g="HOP",v="olive";break;case"Security":g="HOS",v="red";break;case"Command":g="CAP",v="blue";break;case"Assistant":g="Any Head",v="grey";break}return(0,e.createComponentVNode)(2,m.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,m.Stack.Item,{mt:.5,children:"Approval Required:"}),!!C.req_cargo_approval&&(0,e.createComponentVNode)(2,m.Stack.Item,{children:(0,e.createComponentVNode)(2,m.Button,{color:"brown",content:"QM",icon:"user-tie",tooltip:"This Order requires approval from the QM still"})}),!!C.req_head_approval&&(0,e.createComponentVNode)(2,m.Stack.Item,{children:(0,e.createComponentVNode)(2,m.Button,{color:v,content:g,disabled:C.req_cargo_approval,icon:"user-tie",tooltip:C.req_cargo_approval?"This Order first requires approval from the QM before the "+g+" can approve it":"This Order requires approval from the "+g+" still"})})]})},d=function(s,u){var C=(0,o.useBackend)(u),v=C.act,g=C.data,p=g.requests,N=g.orders,b=g.shipments;return(0,e.createComponentVNode)(2,m.Section,{fill:!0,scrollable:!0,title:"Orders",children:[(0,e.createComponentVNode)(2,m.Box,{bold:!0,children:"Requests"}),(0,e.createComponentVNode)(2,m.Table,{children:p.map(function(B){return(0,e.createComponentVNode)(2,m.Table.Row,{className:"Cargo_RequestList",children:[(0,e.createComponentVNode)(2,m.Table.Cell,{mb:1,children:[(0,e.createComponentVNode)(2,m.Box,{children:["Order #",B.ordernum,": ",B.supply_type," (",B.cost," credits) for"," ",(0,e.createVNode)(1,"b",null,B.orderedby,0)," with"," ",B.department?"The "+B.department+" Department":"Their Personal"," ","Account"]}),(0,e.createComponentVNode)(2,m.Box,{italic:!0,children:["Reason: ",B.comment]}),(0,e.createComponentVNode)(2,f,{request:B})]}),(0,e.createComponentVNode)(2,m.Stack.Item,{textAlign:"right",children:[(0,e.createComponentVNode)(2,m.Button,{content:"Approve",color:"green",disabled:!B.can_approve,onClick:function(){function L(){return v("approve",{ordernum:B.ordernum})}return L}()}),(0,e.createComponentVNode)(2,m.Button,{content:"Deny",color:"red",disabled:!B.can_deny,onClick:function(){function L(){return v("deny",{ordernum:B.ordernum})}return L}()})]})]},B.ordernum)})}),(0,e.createComponentVNode)(2,m.Box,{bold:!0,children:"Orders Awaiting Delivery"}),(0,e.createComponentVNode)(2,m.Table,{m:"0.5rem",children:N.map(function(B){return(0,e.createComponentVNode)(2,m.Table.Row,{children:(0,e.createComponentVNode)(2,m.Table.Cell,{children:[(0,e.createComponentVNode)(2,m.Box,{children:["- #",B.ordernum,": ",B.supply_type," for ",(0,e.createVNode)(1,"b",null,B.orderedby,0)]}),(0,e.createComponentVNode)(2,m.Box,{italic:!0,children:["Reason: ",B.comment]})]})},B.ordernum)})}),(0,e.createComponentVNode)(2,m.Box,{bold:!0,children:"Order in Transit"}),(0,e.createComponentVNode)(2,m.Table,{m:"0.5rem",children:b.map(function(B){return(0,e.createComponentVNode)(2,m.Table.Row,{children:(0,e.createComponentVNode)(2,m.Table.Cell,{children:[(0,e.createComponentVNode)(2,m.Box,{children:["- #",B.ordernum,": ",B.supply_type," for ",(0,e.createVNode)(1,"b",null,B.orderedby,0)]}),(0,e.createComponentVNode)(2,m.Box,{italic:!0,children:["Reason: ",B.comment]})]})},B.ordernum)})})]})}},89917:function(I,r,n){"use strict";r.__esModule=!0,r.ChangelogView=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=r.ChangelogView=function(){function V(y,S){var k=(0,a.useBackend)(S),h=k.act,l=k.data,c=(0,a.useLocalState)(S,"onlyRecent",0),f=c[0],d=c[1],i=l.cl_data,s=l.last_cl,u={FIX:(0,e.createComponentVNode)(2,t.Icon,{name:"tools",title:"Fix"}),WIP:(0,e.createComponentVNode)(2,t.Icon,{name:"hard-hat",title:"WIP",color:"orange"}),TWEAK:(0,e.createComponentVNode)(2,t.Icon,{name:"sliders-h",title:"Tweak"}),SOUNDADD:(0,e.createComponentVNode)(2,t.Icon,{name:"volume-up",title:"Sound Added",color:"green"}),SOUNDDEL:(0,e.createComponentVNode)(2,t.Icon,{name:"volume-mute",title:"Sound Removed",color:"red"}),CODEADD:(0,e.createComponentVNode)(2,t.Icon,{name:"plus",title:"Code Addition",color:"green"}),CODEDEL:(0,e.createComponentVNode)(2,t.Icon,{name:"minus",title:"Code Removal",color:"red"}),IMAGEADD:(0,e.createComponentVNode)(2,t.Icon,{name:"folder-plus",title:"Sprite Addition",color:"green"}),IMAGEDEL:(0,e.createComponentVNode)(2,t.Icon,{name:"folder-minus",title:"Sprite Removal",color:"red"}),SPELLCHECK:(0,e.createComponentVNode)(2,t.Icon,{name:"font",title:"Spelling/Grammar Fix"}),EXPERIMENT:(0,e.createComponentVNode)(2,t.Icon,{name:"exclamation-triangle",title:"Experimental",color:"orange"})},C=function(){function v(g){return g in u?u[g]:(0,e.createComponentVNode)(2,t.Icon,{name:"plus",color:"green"})}return v}();return(0,e.createComponentVNode)(2,o.Window,{width:750,height:800,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"ParadiseSS13 Changelog",mt:2,buttons:(0,e.createComponentVNode)(2,t.Button,{content:f?"Showing all changes":"Showing changes since last connection",onClick:function(){function v(){return d(!f)}return v}()}),children:i.map(function(v){return!f&&v.merge_ts<=s||(0,e.createComponentVNode)(2,t.Section,{mb:2,title:v.author+" - Merged on "+v.merge_date,buttons:(0,e.createComponentVNode)(2,t.Button,{content:"#"+v.num,onClick:function(){function g(){return h("open_pr",{pr_number:v.num})}return g}()}),children:v.entries.map(function(g){return(0,e.createComponentVNode)(2,t.Box,{m:1,children:[C(g.etype)," ",g.etext]},g)})},v)})})})})}return V}()},71254:function(I,r,n){"use strict";r.__esModule=!0,r.ChemDispenser=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(1496),m=n(45493),V=[1,5,10,20,30,50],y=[1,5,10],S=r.ChemDispenser=function(){function c(f,d){var i=(0,a.useBackend)(d),s=i.act,u=i.data,C=u.chemicals;return(0,e.createComponentVNode)(2,m.Window,{width:400,height:400+C.length*8,children:(0,e.createComponentVNode)(2,m.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,k),(0,e.createComponentVNode)(2,h),(0,e.createComponentVNode)(2,l)]})})})}return c}(),k=function(f,d){var i=(0,a.useBackend)(d),s=i.act,u=i.data,C=u.amount,v=u.energy,g=u.maxEnergy;return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Settings",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Energy",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:v,minValue:0,maxValue:g,ranges:{good:[g*.5,1/0],average:[g*.25,g*.5],bad:[-1/0,g*.25]},children:[v," / ",g," Units"]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Dispense",verticalAlign:"middle",children:(0,e.createComponentVNode)(2,t.Stack,{children:V.map(function(p,N){return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,width:"15%",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"cog",selected:C===p,content:p,onClick:function(){function b(){return s("amount",{amount:p})}return b}()})},N)})})})]})})})},h=function(f,d){for(var i=(0,a.useBackend)(d),s=i.act,u=i.data,C=u.chemicals,v=C===void 0?[]:C,g=[],p=0;p<(v.length+1)%3;p++)g.push(!0);return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:u.glass?"Drink Dispenser":"Chemical Dispenser",children:[v.map(function(N,b){return(0,e.createComponentVNode)(2,t.Button,{m:.1,width:"32.5%",icon:"arrow-circle-down",overflow:"hidden",textOverflow:"ellipsis",content:N.title,style:{"margin-left":"2px"},onClick:function(){function B(){return s("dispense",{reagent:N.id})}return B}()},b)}),g.map(function(N,b){return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,basis:"25%"},b)})]})})},l=function(f,d){var i=(0,a.useBackend)(d),s=i.act,u=i.data,C=u.isBeakerLoaded,v=u.beakerCurrentVolume,g=u.beakerMaxVolume,p=u.beakerContents,N=p===void 0?[]:p;return(0,e.createComponentVNode)(2,t.Stack.Item,{height:16,children:(0,e.createComponentVNode)(2,t.Section,{title:u.glass?"Glass":"Beaker",fill:!0,scrollable:!0,buttons:(0,e.createComponentVNode)(2,t.Box,{children:[!!C&&(0,e.createComponentVNode)(2,t.Box,{inline:!0,color:"label",mr:2,children:[v," / ",g," units"]}),(0,e.createComponentVNode)(2,t.Button,{icon:"eject",content:"Eject",disabled:!C,onClick:function(){function b(){return s("ejectBeaker")}return b}()})]}),children:(0,e.createComponentVNode)(2,o.BeakerContents,{beakerLoaded:C,beakerContents:N,buttons:function(){function b(B){return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{content:"Isolate",icon:"compress-arrows-alt",onClick:function(){function L(){return s("remove",{reagent:B.id,amount:-1})}return L}()}),y.map(function(L,w){return(0,e.createComponentVNode)(2,t.Button,{content:L,onClick:function(){function T(){return s("remove",{reagent:B.id,amount:L})}return T}()},w)}),(0,e.createComponentVNode)(2,t.Button,{content:"ALL",onClick:function(){function L(){return s("remove",{reagent:B.id,amount:B.volume})}return L}()})],0)}return b}()})})})}},27004:function(I,r,n){"use strict";r.__esModule=!0,r.ChemHeater=void 0;var e=n(96524),a=n(36121),t=n(17899),o=n(24674),m=n(1496),V=n(45493),y=r.ChemHeater=function(){function h(l,c){return(0,e.createComponentVNode)(2,V.Window,{width:350,height:275,children:(0,e.createComponentVNode)(2,V.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,S),(0,e.createComponentVNode)(2,k)]})})})}return h}(),S=function(l,c){var f=(0,t.useBackend)(c),d=f.act,i=f.data,s=i.targetTemp,u=i.targetTempReached,C=i.autoEject,v=i.isActive,g=i.currentTemp,p=i.isBeakerLoaded;return(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,title:"Settings",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{content:"Auto-eject",icon:C?"toggle-on":"toggle-off",selected:C,onClick:function(){function N(){return d("toggle_autoeject")}return N}()}),(0,e.createComponentVNode)(2,o.Button,{content:v?"On":"Off",icon:"power-off",selected:v,disabled:!p,onClick:function(){function N(){return d("toggle_on")}return N}()})],4),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Target",children:(0,e.createComponentVNode)(2,o.NumberInput,{width:"65px",unit:"K",step:10,stepPixelSize:3,value:(0,a.round)(s,0),minValue:0,maxValue:1e3,onDrag:function(){function N(b,B){return d("adjust_temperature",{target:B})}return N}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Reading",color:u?"good":"average",children:p&&(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:g,format:function(){function N(b){return(0,a.toFixed)(b)+" K"}return N}()})||"\u2014"})]})})})},k=function(l,c){var f=(0,t.useBackend)(c),d=f.act,i=f.data,s=i.isBeakerLoaded,u=i.beakerCurrentVolume,C=i.beakerMaxVolume,v=i.beakerContents;return(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{title:"Beaker",fill:!0,scrollable:!0,buttons:!!s&&(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,o.Box,{inline:!0,color:"label",mr:2,children:[u," / ",C," units"]}),(0,e.createComponentVNode)(2,o.Button,{icon:"eject",content:"Eject",onClick:function(){function g(){return d("eject_beaker")}return g}()})]}),children:(0,e.createComponentVNode)(2,m.BeakerContents,{beakerLoaded:s,beakerContents:v})})})}},33611:function(I,r,n){"use strict";r.__esModule=!0,r.ChemMaster=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=n(1496),V=n(99665),y=n(28234),S=n(81856),k=["icon"];function h(A,E){if(A==null)return{};var M={},D=Object.keys(A),P,R;for(R=0;R=0)&&(M[P]=A[P]);return M}function l(A,E){A.prototype=Object.create(E.prototype),A.prototype.constructor=A,c(A,E)}function c(A,E){return c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function M(D,P){return D.__proto__=P,D}return M}(),c(A,E)}var f=(0,S.createLogger)("ChemMaster"),d=[1,5,10],i=function(E,M){var D=(0,a.useBackend)(M),P=D.act,R=D.data,j=E.args.analysis;return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:R.condi?"Condiment Analysis":"Reagent Analysis",children:(0,e.createComponentVNode)(2,t.Box,{mx:"0.5rem",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Name",children:j.name}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Description",children:(j.desc||"").length>0?j.desc:"N/A"}),j.blood_type&&(0,e.createFragment)([(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Blood type",children:j.blood_type}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Blood DNA",className:"LabeledList__breakContents",children:j.blood_dna})],4),!R.condi&&(0,e.createComponentVNode)(2,t.Button,{icon:R.printing?"spinner":"print",disabled:R.printing,iconSpin:!!R.printing,ml:"0.5rem",content:"Print",onClick:function(){function F(){return P("print",{idx:j.idx,beaker:E.args.beaker})}return F}()})]})})})})},s=r.ChemMaster=function(){function A(E,M){var D=(0,a.useBackend)(M),P=D.data,R=P.condi,j=P.beaker,F=P.beaker_reagents,W=F===void 0?[]:F,_=P.buffer_reagents,K=_===void 0?[]:_,H=P.mode;return(0,e.createComponentVNode)(2,o.Window,{width:575,height:650,children:[(0,e.createComponentVNode)(2,V.ComplexModal),(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,u,{beaker:j,beakerReagents:W,bufferNonEmpty:K.length>0}),(0,e.createComponentVNode)(2,C,{mode:H,bufferReagents:K}),(0,e.createComponentVNode)(2,v,{isCondiment:R,bufferNonEmpty:K.length>0}),(0,e.createComponentVNode)(2,x)]})})]})}return A}(),u=function(E,M){var D=(0,a.useBackend)(M),P=D.act,R=E.beaker,j=E.beakerReagents,F=E.bufferNonEmpty;return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Beaker",fill:!0,scrollable:!0,buttons:F?(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"eject",disabled:!R,content:"Eject and Clear Buffer",onClick:function(){function W(){return P("eject")}return W}()}):(0,e.createComponentVNode)(2,t.Button,{icon:"eject",disabled:!R,content:"Eject and Clear Buffer",onClick:function(){function W(){return P("eject")}return W}()}),children:R?(0,e.createComponentVNode)(2,m.BeakerContents,{beakerLoaded:!0,beakerContents:j,buttons:function(){function W(_,K){return(0,e.createComponentVNode)(2,t.Box,{mb:K0?(0,e.createComponentVNode)(2,m.BeakerContents,{beakerLoaded:!0,beakerContents:F,buttons:function(){function W(_,K){return(0,e.createComponentVNode)(2,t.Box,{mb:Kp.biomass?"bad":null,children:["Biomass: ",w[0],"/",p.biomass,"/",p.biomass_storage_capacity]})}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:"30%",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:w[1],maxValue:p.max_reagent_capacity,ranges:{bad:[2*p.max_reagent_capacity/3,p.max_reagent_capacity],average:[p.max_reagent_capacity/3,2*p.max_reagent_capacity/3],good:[0,p.max_reagent_capacity/3]},color:w[1]>p.sanguine_reagent?"bad":"good",children:["Sanguine: ",w[1],"/",p.sanguine_reagent,"/",p.max_reagent_capacity]})}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:"30%",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:w[2],maxValue:p.max_reagent_capacity,ranges:{bad:[2*p.max_reagent_capacity/3,p.max_reagent_capacity],average:[p.max_reagent_capacity/3,2*p.max_reagent_capacity/3],good:[0,p.max_reagent_capacity/3]},color:w[2]>p.osseous_reagent?"bad":"good",children:["Osseous: ",w[2],"/",p.osseous_reagent,"/",p.max_reagent_capacity]})})]}),(0,e.createComponentVNode)(2,f),(0,e.createComponentVNode)(2,d)]})]})})]})]})},f=function(s,u){var C=(0,a.useBackend)(u),v=C.act,g=C.data,p=g.patient_limb_data,N=g.limb_list,b=g.desired_limb_data;return(0,e.createComponentVNode)(2,t.Collapsible,{title:"Limbs",children:N.map(function(B,L){return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Stack,{align:"baseline",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{color:"label",width:"15%",height:"20px",children:[p[B][4],":"," "]}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:1}),p[B][3]===0&&(0,e.createComponentVNode)(2,t.Stack.Item,{width:"60%",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:b[B][0]+b[B][1],maxValue:p[B][5],ranges:{good:[0,p[B][5]/3],average:[p[B][5]/3,2*p[B][5]/3],bad:[2*p[B][5]/3,p[B][5]]},children:["Post-Cloning Damage: ",(0,e.createComponentVNode)(2,t.Icon,{name:"bone"})," "+b[B][0]+" / ",(0,e.createComponentVNode)(2,t.Icon,{name:"fire"})," "+b[B][1]]})}),p[B][3]!==0&&(0,e.createComponentVNode)(2,t.Stack.Item,{width:"60%",children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:"bad",value:0,children:["The patient's ",p[B][4]," is missing!"]})})]}),(0,e.createComponentVNode)(2,t.Stack,{children:[!!p[B][3]&&(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:!b[B][3],onClick:function(){function w(){return v("toggle_limb_repair",{limb:B,type:"replace"})}return w}(),children:"Replace Limb"})}),!p[B][3]&&(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button.Checkbox,{disabled:!(p[B][0]||p[B][1]),checked:!(b[B][0]||b[B][1]),onClick:function(){function w(){return v("toggle_limb_repair",{limb:B,type:"damage"})}return w}(),children:"Repair Damages"}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{disabled:!(p[B][2]&V),checked:!(b[B][2]&V),onClick:function(){function w(){return v("toggle_limb_repair",{limb:B,type:"bone"})}return w}(),children:"Mend Bone"}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{disabled:!(p[B][2]&y),checked:!(b[B][2]&y),onClick:function(){function w(){return v("toggle_limb_repair",{limb:B,type:"ib"})}return w}(),children:"Mend IB"}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{disabled:!(p[B][2]&S),checked:!(b[B][2]&S),onClick:function(){function w(){return v("toggle_limb_repair",{limb:B,type:"critburn"})}return w}(),children:"Mend Critical Burn"})]})]})]},B)})})},d=function(s,u){var C=(0,a.useBackend)(u),v=C.act,g=C.data,p=g.patient_organ_data,N=g.organ_list,b=g.desired_organ_data;return(0,e.createComponentVNode)(2,t.Collapsible,{title:"Organs",children:N.map(function(B,L){return(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Stack,{align:"baseline",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{color:"label",width:"20%",height:"20px",children:[p[B][3],":"," "]}),p[B][5]!=="heart"&&(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Stack.Item,{children:[!!p[B][2]&&(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:!b[B][2]&&!b[B][1],onClick:function(){function w(){return v("toggle_organ_repair",{organ:B,type:"replace"})}return w}(),children:"Replace Organ"}),!p[B][2]&&(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{disabled:!p[B][0],checked:!b[B][0],onClick:function(){function w(){return v("toggle_organ_repair",{organ:B,type:"damage"})}return w}(),children:"Repair Damages"})})]})}),p[B][5]==="heart"&&(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"Heart replacement is required for cloning."}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:1}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:"35%",children:[!!p[B][2]&&(0,e.createComponentVNode)(2,t.ProgressBar,{color:"bad",value:0,children:["The patient's ",p[B][3]," is missing!"]}),!p[B][2]&&(0,e.createComponentVNode)(2,t.ProgressBar,{value:b[B][0],maxValue:p[B][4],ranges:{good:[0,p[B][4]/3],average:[p[B][4]/3,2*p[B][4]/3],bad:[2*p[B][4]/3,p[B][4]]},children:"Post-Cloning Damage: "+b[B][0]})]})]})},B)})})}},66373:function(I,r,n){"use strict";r.__esModule=!0,r.CloningPod=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=r.CloningPod=function(){function V(y,S){var k=(0,a.useBackend)(S),h=k.act,l=k.data,c=l.biomass,f=l.biomass_storage_capacity,d=l.sanguine_reagent,i=l.osseous_reagent,s=l.organs,u=l.currently_cloning;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:500,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,t.Section,{title:"Liquid Storage",children:[(0,e.createComponentVNode)(2,t.Stack,{height:"25px",align:"center",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{color:"label",width:"25%",children:["Biomass:"," "]}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:1,children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:c,ranges:{good:[2*f/3,f],average:[f/3,2*f/3],bad:[0,f/3]},minValue:0,maxValue:f})})]}),(0,e.createComponentVNode)(2,t.Stack,{height:"25px",align:"center",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{color:"label",width:"25%",children:["Sanguine Reagent:"," "]}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:d+" units"}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:1}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.NumberInput,{value:0,minValue:0,maxValue:d,step:1,unit:"units",onChange:function(){function C(v,g){return h("remove_reagent",{reagent:"sanguine_reagent",amount:g})}return C}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Remove All",onClick:function(){function C(){return h("purge_reagent",{reagent:"sanguine_reagent"})}return C}()})})]}),(0,e.createComponentVNode)(2,t.Stack,{height:"25px",align:"center",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{color:"label",width:"25%",children:["Osseous Reagent:"," "]}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:i+" units"}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:1}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.NumberInput,{value:0,minValue:0,maxValue:i,step:1,unit:"units",onChange:function(){function C(v,g){return h("remove_reagent",{reagent:"osseous_reagent",amount:g})}return C}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Remove All",onClick:function(){function C(){return h("purge_reagent",{reagent:"osseous_reagent"})}return C}()})})]})]}),(0,e.createComponentVNode)(2,t.Section,{title:"Organ Storage",children:[!u&&(0,e.createComponentVNode)(2,t.Box,{children:[!s&&(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"Notice: No organs loaded."}),!!s&&s.map(function(C){return(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:C.name}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:1}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Eject",onClick:function(){function v(){return h("eject_organ",{organ_ref:C.ref})}return v}()})})]},C)})]}),!!u&&(0,e.createComponentVNode)(2,t.Stack,{height:"100%",children:(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,grow:"1",textAlign:"center",align:"center",color:"label",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"lock",size:"5",mb:3}),(0,e.createVNode)(1,"br"),"Unable to access organ storage while cloning."]})})]})]})})}return V}()},11866:function(I,r,n){"use strict";r.__esModule=!0,r.ColourMatrixTester=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=r.ColourMatrixTester=function(){function V(y,S){var k=(0,a.useBackend)(S),h=k.act,l=k.data,c=l.colour_data,f=[[{name:"RR",idx:0},{name:"RG",idx:1},{name:"RB",idx:2},{name:"RA",idx:3}],[{name:"GR",idx:4},{name:"GG",idx:5},{name:"GB",idx:6},{name:"GA",idx:7}],[{name:"BR",idx:8},{name:"BG",idx:9},{name:"BB",idx:10},{name:"BA",idx:11}],[{name:"AR",idx:12},{name:"AG",idx:13},{name:"AB",idx:14},{name:"AA",idx:15}]];return(0,e.createComponentVNode)(2,o.Window,{width:360,height:190,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Modify Matrix",children:f.map(function(d){return(0,e.createComponentVNode)(2,t.Stack,{textAlign:"center",textColor:"label",children:d.map(function(i){return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,mt:1,children:[i.name,":\xA0",(0,e.createComponentVNode)(2,t.NumberInput,{width:4,value:c[i.idx],step:.05,minValue:-5,maxValue:5,stepPixelSize:5,onChange:function(){function s(u,C){return h("setvalue",{idx:i.idx+1,value:C})}return s}()})]},i.name)})},d)})})})})})}return V}()},22420:function(I,r,n){"use strict";r.__esModule=!0,r.CommunicationsComputer=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=function(s){switch(s){case 1:return(0,e.createComponentVNode)(2,S);case 2:return(0,e.createComponentVNode)(2,l);case 3:return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,children:(0,e.createComponentVNode)(2,c)})});case 4:return(0,e.createComponentVNode)(2,d);default:return"ERROR. Unknown menu_state. Please contact NT Technical Support."}},V=r.CommunicationsComputer=function(){function i(s,u){var C=(0,a.useBackend)(u),v=C.act,g=C.data,p=g.menu_state;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:600,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,y),m(p)]})})})}return i}(),y=function(s,u){var C=(0,a.useBackend)(u),v=C.act,g=C.data,p=g.authenticated,N=g.noauthbutton,b=g.esc_section,B=g.esc_callable,L=g.esc_recallable,w=g.esc_status,T=g.authhead,x=g.is_ai,A=g.lastCallLoc,E=!1,M;return p?p===1?M="Command":p===2?M="Captain":p===3?M="CentComm Officer":p===4?(M="CentComm Secure Connection",E=!0):M="ERROR: Report This Bug!":M="Not Logged In",(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Authentication",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:E&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Access",children:M})||(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Actions",children:(0,e.createComponentVNode)(2,t.Button,{icon:p?"sign-out-alt":"id-card",selected:p,disabled:N,content:p?"Log Out ("+M+")":"Log In",onClick:function(){function D(){return v("auth")}return D}()})})})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:!!b&&(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Escape Shuttle",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[!!w&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:w}),!!B&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Options",children:(0,e.createComponentVNode)(2,t.Button,{icon:"rocket",content:"Call Shuttle",disabled:!T,onClick:function(){function D(){return v("callshuttle")}return D}()})}),!!L&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Options",children:(0,e.createComponentVNode)(2,t.Button,{icon:"times",content:"Recall Shuttle",disabled:!T||x,onClick:function(){function D(){return v("cancelshuttle")}return D}()})}),!!A&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Last Call/Recall From",children:A})]})})})],4)},S=function(s,u){var C=(0,a.useBackend)(u),v=C.act,g=C.data,p=g.is_admin;return p?(0,e.createComponentVNode)(2,k):(0,e.createComponentVNode)(2,h)},k=function(s,u){var C=(0,a.useBackend)(u),v=C.act,g=C.data,p=g.is_admin,N=g.gamma_armory_location,b=g.admin_levels,B=g.authenticated,L=g.ert_allowed;return(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"CentComm Actions",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Change Alert",children:(0,e.createComponentVNode)(2,f,{levels:b,required_access:p,use_confirm:1})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Announcement",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"bullhorn",content:"Make Central Announcement",disabled:!p,onClick:function(){function w(){return v("send_to_cc_announcement_page")}return w}()}),B===4&&(0,e.createComponentVNode)(2,t.Button,{icon:"plus",content:"Make Other Announcement",disabled:!p,onClick:function(){function w(){return v("make_other_announcement")}return w}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Response Team",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"ambulance",content:"Dispatch ERT",disabled:!p,onClick:function(){function w(){return v("dispatch_ert")}return w}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:L,content:L?"ERT calling enabled":"ERT calling disabled",tooltip:L?"Command can request an ERT":"ERTs cannot be requested",disabled:!p,onClick:function(){function w(){return v("toggle_ert_allowed")}return w}(),selected:null})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Nuclear Device",children:(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"bomb",content:"Get Authentication Codes",disabled:!p,onClick:function(){function w(){return v("send_nuke_codes")}return w}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Gamma Armory",children:(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"biohazard",content:N?"Send Gamma Armory":"Recall Gamma Armory",disabled:!p,onClick:function(){function w(){return v("move_gamma_armory")}return w}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Other",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"coins",content:"View Economy",disabled:!p,onClick:function(){function w(){return v("view_econ")}return w}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fax",content:"Fax Manager",disabled:!p,onClick:function(){function w(){return v("view_fax")}return w}()})]})]})}),(0,e.createComponentVNode)(2,t.Collapsible,{title:"View Command accessible controls",children:(0,e.createComponentVNode)(2,h)})]})},h=function(s,u){var C=(0,a.useBackend)(u),v=C.act,g=C.data,p=g.msg_cooldown,N=g.emagged,b=g.cc_cooldown,B=g.security_level_color,L=g.str_security_level,w=g.levels,T=g.authcapt,x=g.authhead,A=g.messages,E="Make Priority Announcement";p>0&&(E+=" ("+p+"s)");var M=N?"Message [UNKNOWN]":"Message CentComm",D="Request Authentication Codes";return b>0&&(M+=" ("+b+"s)",D+=" ("+b+"s)"),(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Captain-Only Actions",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Current Alert",color:B,children:L}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Change Alert",children:(0,e.createComponentVNode)(2,f,{levels:w,required_access:T})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Announcement",children:(0,e.createComponentVNode)(2,t.Button,{icon:"bullhorn",content:E,disabled:!T||p>0,onClick:function(){function P(){return v("announce")}return P}()})}),!!N&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Transmit",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"broadcast-tower",color:"red",content:M,disabled:!T||b>0,onClick:function(){function P(){return v("MessageSyndicate")}return P}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"sync-alt",content:"Reset Relays",disabled:!T,onClick:function(){function P(){return v("RestoreBackup")}return P}()})]})||(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Transmit",children:(0,e.createComponentVNode)(2,t.Button,{icon:"broadcast-tower",content:M,disabled:!T||b>0,onClick:function(){function P(){return v("MessageCentcomm")}return P}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Nuclear Device",children:(0,e.createComponentVNode)(2,t.Button,{icon:"bomb",content:D,disabled:!T||b>0,onClick:function(){function P(){return v("nukerequest")}return P}()})})]})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Command Staff Actions",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Displays",children:(0,e.createComponentVNode)(2,t.Button,{icon:"tv",content:"Change Status Displays",disabled:!x,onClick:function(){function P(){return v("status")}return P}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Incoming Messages",children:(0,e.createComponentVNode)(2,t.Button,{icon:"folder-open",content:"View ("+A.length+")",disabled:!x,onClick:function(){function P(){return v("messagelist")}return P}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Misc",children:(0,e.createComponentVNode)(2,t.Button,{icon:"sync-alt",content:"Restart Nano-Mob Hunter GO! Server",disabled:!x,onClick:function(){function P(){return v("RestartNanoMob")}return P}()})})]})})})],4)},l=function(s,u){var C=(0,a.useBackend)(u),v=C.act,g=C.data,p=g.stat_display,N=g.authhead,b=g.current_message_title,B=p.presets.map(function(w){return(0,e.createComponentVNode)(2,t.Button,{content:w.label,selected:w.name===p.type,disabled:!N,onClick:function(){function T(){return v("setstat",{statdisp:w.name})}return T}()},w.name)}),L=p.alerts.map(function(w){return(0,e.createComponentVNode)(2,t.Button,{content:w.label,selected:w.alert===p.icon,disabled:!N,onClick:function(){function T(){return v("setstat",{statdisp:3,alert:w.alert})}return T}()},w.alert)});return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Modify Status Screens",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-circle-left",content:"Back To Main Menu",onClick:function(){function w(){return v("main")}return w}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Presets",children:B}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Alerts",children:L}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Message Line 1",children:(0,e.createComponentVNode)(2,t.Button,{icon:"pencil-alt",content:p.line_1,disabled:!N,onClick:function(){function w(){return v("setmsg1")}return w}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Message Line 2",children:(0,e.createComponentVNode)(2,t.Button,{icon:"pencil-alt",content:p.line_2,disabled:!N,onClick:function(){function w(){return v("setmsg2")}return w}()})})]})})})},c=function(s,u){var C=(0,a.useBackend)(u),v=C.act,g=C.data,p=g.authhead,N=g.current_message_title,b=g.current_message,B=g.messages,L=g.security_level,w;if(N)w=(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:N,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"times",content:"Return To Message List",disabled:!p,onClick:function(){function x(){return v("messagelist")}return x}()}),children:(0,e.createComponentVNode)(2,t.Box,{children:b})})});else{var T=B.map(function(x){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:x.title,children:[(0,e.createComponentVNode)(2,t.Button,{icon:"eye",content:"View",disabled:!p||N===x.title,onClick:function(){function A(){return v("messagelist",{msgid:x.id})}return A}()}),(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"times",content:"Delete",disabled:!p,onClick:function(){function A(){return v("delmessage",{msgid:x.id})}return A}()})]},x.id)});w=(0,e.createComponentVNode)(2,t.Section,{title:"Messages Received",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-circle-left",content:"Back To Main Menu",onClick:function(){function x(){return v("main")}return x}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:T})})}return(0,e.createComponentVNode)(2,t.Box,{children:w})},f=function(s,u){var C=(0,a.useBackend)(u),v=C.act,g=C.data,p=s.levels,N=s.required_access,b=s.use_confirm,B=g.security_level;return b?p.map(function(L){return(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:L.icon,content:L.name,disabled:!N||L.id===B,tooltip:L.tooltip,onClick:function(){function w(){return v("newalertlevel",{level:L.id})}return w}()},L.name)}):p.map(function(L){return(0,e.createComponentVNode)(2,t.Button,{icon:L.icon,content:L.name,disabled:!N||L.id===B,tooltip:L.tooltip,onClick:function(){function w(){return v("newalertlevel",{level:L.id})}return w}()},L.name)})},d=function(s,u){var C=(0,a.useBackend)(u),v=C.act,g=C.data,p=g.is_admin,N=g.possible_cc_sounds;if(!p)return v("main");var b=(0,a.useLocalState)(u,"subtitle",""),B=b[0],L=b[1],w=(0,a.useLocalState)(u,"text",""),T=w[0],x=w[1],A=(0,a.useLocalState)(u,"classified",0),E=A[0],M=A[1],D=(0,a.useLocalState)(u,"beepsound","Beep"),P=D[0],R=D[1];return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Central Command Report",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-circle-left",content:"Back To Main Menu",onClick:function(){function j(){return v("main")}return j}()}),children:[(0,e.createComponentVNode)(2,t.Input,{placeholder:"Enter Subtitle here.",fluid:!0,value:B,onChange:function(){function j(F,W){return L(W)}return j}(),mb:"5px"}),(0,e.createComponentVNode)(2,t.Input,{placeholder:"Enter Announcement here,\nMultiline input is accepted.",rows:10,fluid:!0,multiline:1,value:T,onChange:function(){function j(F,W){return x(W)}return j}()}),(0,e.createComponentVNode)(2,t.Button.Confirm,{content:"Send Announcement",fluid:!0,icon:"paper-plane",center:!0,mt:"5px",textAlign:"center",onClick:function(){function j(){return v("make_cc_announcement",{subtitle:B,text:T,classified:E,beepsound:P})}return j}()}),(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Dropdown,{width:"260px",height:"20px",options:N,selected:P,onSelected:function(){function j(F){return R(F)}return j}(),disabled:E})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"volume-up",mx:"5px",disabled:E,tooltip:"Test sound",onClick:function(){function j(){return v("test_sound",{sound:P})}return j}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:E,content:"Classified",fluid:!0,tooltip:E?"Sent to station communications consoles":"Publically announced",onClick:function(){function j(){return M(!E)}return j}()})})]})]})})}},46868:function(I,r,n){"use strict";r.__esModule=!0,r.CompostBin=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=r.CompostBin=function(){function V(y,S){var k=(0,a.useBackend)(S),h=k.act,l=k.data,c=l.biomass,f=l.compost,d=l.biomass_capacity,i=l.compost_capacity,s=(0,a.useSharedState)(S,"vendAmount",1),u=s[0],C=s[1];return(0,e.createComponentVNode)(2,o.Window,{width:300,height:175,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Section,{label:"Resources",children:[(0,e.createComponentVNode)(2,t.Stack,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Biomass",children:(0,e.createComponentVNode)(2,t.ProgressBar,{ml:1,width:17,value:c,minValue:0,maxValue:d,ranges:{good:[d*.5,1/0],average:[d*.25,d*.5],bad:[-1/0,d*.25]},children:[c," / ",d," Units"]})})})}),(0,e.createComponentVNode)(2,t.Stack,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Compost",children:(0,e.createComponentVNode)(2,t.ProgressBar,{ml:.5,mt:1,width:17,value:f,minValue:0,maxValue:i,ranges:{good:[i*.5,1/0],average:[i*.25,i*.5],bad:[-1/0,i*.25]},children:[f," / ",i," Units"]})})})})]}),(0,e.createComponentVNode)(2,t.Section,{title:"Controls",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{inline:!0,mr:"5px",color:"silver",children:"Soil clumps to make:"}),(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,value:u,width:"32px",minValue:1,maxValue:10,stepPixelSize:7,onChange:function(){function v(g,p){return C(p)}return v}()})],4),children:(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,align:"center",content:"Make Soil",disabled:f<25*u,icon:"arrow-circle-down",onClick:function(){function v(){return h("create",{amount:u})}return v}()})})})]})})})}return V}()},64707:function(I,r,n){"use strict";r.__esModule=!0,r.Contractor=void 0;var e=n(96524),a=n(36121),t=n(17899),o=n(24674),m=n(99509),V=n(45493);function y(v,g){v.prototype=Object.create(g.prototype),v.prototype.constructor=v,S(v,g)}function S(v,g){return S=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function p(N,b){return N.__proto__=b,N}return p}(),S(v,g)}var k={1:["ACTIVE","good"],2:["COMPLETED","good"],3:["FAILED","bad"]},h=["Recording biometric data...","Analyzing embedded syndicate info...","STATUS CONFIRMED","Contacting Syndicate database...","Awaiting response...","Awaiting response...","Awaiting response...","Awaiting response...","Awaiting response...","Awaiting response...","Response received, ack 4851234...","CONFIRM ACC "+Math.round(Math.random()*2e4),"Setting up private accounts...","CONTRACTOR ACCOUNT CREATED","Searching for available contracts...","Searching for available contracts...","Searching for available contracts...","Searching for available contracts...","CONTRACTS FOUND","WELCOME, AGENT"],l=r.Contractor=function(){function v(g,p){var N=(0,t.useBackend)(p),b=N.act,B=N.data,L;B.unauthorized?L=(0,e.createComponentVNode)(2,o.Flex.Item,{grow:"1",backgroundColor:"rgba(0, 0, 0, 0.8)",children:(0,e.createComponentVNode)(2,u,{height:"100%",allMessages:["ERROR: UNAUTHORIZED USER"],finishedTimeout:100,onFinished:function(){function A(){}return A}()})}):B.load_animation_completed?L=(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Flex.Item,{basis:"content",children:(0,e.createComponentVNode)(2,c)}),(0,e.createComponentVNode)(2,o.Flex.Item,{basis:"content",mt:"0.5rem",children:(0,e.createComponentVNode)(2,f)}),(0,e.createComponentVNode)(2,o.Flex.Item,{grow:"1",overflow:"hidden",children:B.page===1?(0,e.createComponentVNode)(2,d,{height:"100%"}):(0,e.createComponentVNode)(2,s,{height:"100%"})})],4):L=(0,e.createComponentVNode)(2,o.Flex.Item,{grow:"1",backgroundColor:"rgba(0, 0, 0, 0.8)",children:(0,e.createComponentVNode)(2,u,{height:"100%",allMessages:h,finishedTimeout:3e3,onFinished:function(){function A(){return b("complete_load_animation")}return A}()})});var w=(0,t.useLocalState)(p,"viewingPhoto",""),T=w[0],x=w[1];return(0,e.createComponentVNode)(2,V.Window,{theme:"syndicate",width:500,height:600,children:[T&&(0,e.createComponentVNode)(2,C),(0,e.createComponentVNode)(2,V.Window.Content,{className:"Contractor",children:(0,e.createComponentVNode)(2,o.Flex,{direction:"column",height:"100%",children:L})})]})}return v}(),c=function(g,p){var N=(0,t.useBackend)(p),b=N.act,B=N.data,L=B.tc_available,w=B.tc_paid_out,T=B.completed_contracts,x=B.rep;return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Section,Object.assign({title:"Summary",buttons:(0,e.createComponentVNode)(2,o.Box,{verticalAlign:"middle",mt:"0.25rem",children:[x," Rep"]})},g,{children:(0,e.createComponentVNode)(2,o.Flex,{children:[(0,e.createComponentVNode)(2,o.Box,{flexBasis:"50%",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"TC Available",verticalAlign:"middle",children:(0,e.createComponentVNode)(2,o.Flex,{align:"center",children:[(0,e.createComponentVNode)(2,o.Flex.Item,{grow:"1",children:[L," TC"]}),(0,e.createComponentVNode)(2,o.Button,{disabled:L<=0,content:"Claim",mx:"0.75rem",mb:"0",flexBasis:"content",onClick:function(){function A(){return b("claim")}return A}()})]})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"TC Earned",children:[w," TC"]})]})}),(0,e.createComponentVNode)(2,o.Box,{flexBasis:"50%",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Contracts Completed",verticalAlign:"middle",children:(0,e.createComponentVNode)(2,o.Box,{height:"20px",lineHeight:"20px",inline:!0,children:T})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Contractor Status",verticalAlign:"middle",children:"ACTIVE"})]})})]})})))},f=function(g,p){var N=(0,t.useBackend)(p),b=N.act,B=N.data,L=B.page;return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Tabs,Object.assign({},g,{children:[(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:L===1,onClick:function(){function w(){return b("page",{page:1})}return w}(),children:[(0,e.createComponentVNode)(2,o.Icon,{name:"suitcase"}),"Contracts"]}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:L===2,onClick:function(){function w(){return b("page",{page:2})}return w}(),children:[(0,e.createComponentVNode)(2,o.Icon,{name:"shopping-cart"}),"Hub"]})]})))},d=function(g,p){var N=(0,t.useBackend)(p),b=N.act,B=N.data,L=B.contracts,w=B.contract_active,T=B.can_extract,x=!!w&&L.filter(function(P){return P.status===1})[0],A=x&&x.time_left>0,E=(0,t.useLocalState)(p,"viewingPhoto",""),M=E[0],D=E[1];return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Section,Object.assign({title:"Available Contracts",overflow:"auto",buttons:(0,e.createComponentVNode)(2,o.Button,{disabled:!T||A,icon:"parachute-box",content:["Call Extraction",A&&(0,e.createComponentVNode)(2,m.Countdown,{timeLeft:x.time_left,format:function(){function P(R,j){return" ("+j.substr(3)+")"}return P}()})],onClick:function(){function P(){return b("extract")}return P}()})},g,{children:L.slice().sort(function(P,R){return P.status===1?-1:R.status===1?1:P.status-R.status}).map(function(P){var R;return(0,e.createComponentVNode)(2,o.Section,{title:(0,e.createComponentVNode)(2,o.Flex,{children:[(0,e.createComponentVNode)(2,o.Flex.Item,{grow:"1",color:P.status===1&&"good",children:P.target_name}),(0,e.createComponentVNode)(2,o.Flex.Item,{basis:"content",children:P.has_photo&&(0,e.createComponentVNode)(2,o.Button,{icon:"camera",mb:"-0.5rem",ml:"0.5rem",onClick:function(){function j(){return D("target_photo_"+P.uid+".png")}return j}()})})]}),className:"Contractor__Contract",buttons:(0,e.createComponentVNode)(2,o.Box,{width:"100%",children:[!!k[P.status]&&(0,e.createComponentVNode)(2,o.Box,{color:k[P.status][1],inline:!0,mt:P.status!==1&&"0.125rem",mr:"0.25rem",lineHeight:"20px",children:k[P.status][0]}),P.status===1&&(0,e.createComponentVNode)(2,o.Button.Confirm,{icon:"ban",color:"bad",content:"Abort",ml:"0.5rem",onClick:function(){function j(){return b("abort")}return j}()})]}),children:(0,e.createComponentVNode)(2,o.Flex,{children:[(0,e.createComponentVNode)(2,o.Flex.Item,{grow:"2",mr:"0.5rem",children:[P.fluff_message,!!P.completed_time&&(0,e.createComponentVNode)(2,o.Box,{color:"good",children:[(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,o.Icon,{name:"check",mr:"0.5rem"}),"Contract completed at ",P.completed_time]}),!!P.dead_extraction&&(0,e.createComponentVNode)(2,o.Box,{color:"bad",mt:"0.5rem",bold:!0,children:[(0,e.createComponentVNode)(2,o.Icon,{name:"exclamation-triangle",mr:"0.5rem"}),"Telecrystals reward reduced drastically as the target was dead during extraction."]}),!!P.fail_reason&&(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:[(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,o.Icon,{name:"times",mr:"0.5rem"}),"Contract failed: ",P.fail_reason]})]}),(0,e.createComponentVNode)(2,o.Flex.Item,{flexBasis:"100%",children:[(0,e.createComponentVNode)(2,o.Flex,{mb:"0.5rem",color:"label",children:["Extraction Zone:\xA0",i(P)]}),(R=P.difficulties)==null?void 0:R.map(function(j,F){return(0,e.createComponentVNode)(2,o.Button.Confirm,{disabled:!!w,content:j.name+" ("+j.reward+" TC)",onClick:function(){function W(){return b("activate",{uid:P.uid,difficulty:F+1})}return W}()},F)}),!!P.objective&&(0,e.createComponentVNode)(2,o.Box,{color:"white",bold:!0,children:[P.objective.extraction_name,(0,e.createVNode)(1,"br"),"(",(P.objective.rewards.tc||0)+" TC",",\xA0",(P.objective.rewards.credits||0)+" Credits",")"]})]})]})},P.uid)})})))},i=function(g){if(!(!g.objective||g.status>1)){var p=g.objective.locs.user_area_id,N=g.objective.locs.user_coords,b=g.objective.locs.target_area_id,B=g.objective.locs.target_coords,L=p===b;return(0,e.createComponentVNode)(2,o.Flex.Item,{children:(0,e.createComponentVNode)(2,o.Icon,{name:L?"dot-circle-o":"arrow-alt-circle-right-o",color:L?"green":"yellow",rotation:L?null:-(0,a.rad2deg)(Math.atan2(B[1]-N[1],B[0]-N[0])),lineHeight:L?null:"0.85",size:"1.5"})})}},s=function(g,p){var N=(0,t.useBackend)(p),b=N.act,B=N.data,L=B.rep,w=B.buyables;return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Section,Object.assign({title:"Available Purchases",overflow:"auto"},g,{children:w.map(function(T){return(0,e.createComponentVNode)(2,o.Section,{title:T.name,children:[T.description,(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,o.Button.Confirm,{disabled:L-1&&(0,e.createComponentVNode)(2,o.Box,{as:"span",color:T.stock===0?"bad":"good",ml:"0.5rem",children:[T.stock," in stock"]})]},T.uid)})})))},u=function(v){function g(N){var b;return b=v.call(this,N)||this,b.timer=null,b.state={currentIndex:0,currentDisplay:[]},b}y(g,v);var p=g.prototype;return p.tick=function(){function N(){var b=this.props,B=this.state;if(B.currentIndex<=b.allMessages.length){this.setState(function(w){return{currentIndex:w.currentIndex+1}});var L=B.currentDisplay;L.push(b.allMessages[B.currentIndex])}else clearTimeout(this.timer),setTimeout(b.onFinished,b.finishedTimeout)}return N}(),p.componentDidMount=function(){function N(){var b=this,B=this.props.linesPerSecond,L=B===void 0?2.5:B;this.timer=setInterval(function(){return b.tick()},1e3/L)}return N}(),p.componentWillUnmount=function(){function N(){clearTimeout(this.timer)}return N}(),p.render=function(){function N(){return(0,e.createComponentVNode)(2,o.Box,{m:1,children:this.state.currentDisplay.map(function(b){return(0,e.createFragment)([b,(0,e.createVNode)(1,"br")],0,b)})})}return N}(),g}(e.Component),C=function(g,p){var N=(0,t.useLocalState)(p,"viewingPhoto",""),b=N[0],B=N[1];return(0,e.createComponentVNode)(2,o.Modal,{className:"Contractor__photoZoom",children:[(0,e.createComponentVNode)(2,o.Box,{as:"img",src:b}),(0,e.createComponentVNode)(2,o.Button,{icon:"times",content:"Close",color:"grey",mt:"1rem",onClick:function(){function L(){return B("")}return L}()})]})}},52141:function(I,r,n){"use strict";r.__esModule=!0,r.ConveyorSwitch=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=r.ConveyorSwitch=function(){function V(y,S){var k=(0,a.useBackend)(S),h=k.act,l=k.data,c=l.slowFactor,f=l.oneWay,d=l.position;return(0,e.createComponentVNode)(2,o.Window,{width:350,height:135,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Lever position",children:d>0?"forward":d<0?"reverse":"neutral"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Allow reverse",children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:!f,onClick:function(){function i(){return h("toggleOneWay")}return i}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Slowdown factor",children:(0,e.createComponentVNode)(2,t.Flex,{children:[(0,e.createComponentVNode)(2,t.Flex.Item,{mx:"1px",children:[" ",(0,e.createComponentVNode)(2,t.Button,{icon:"angle-double-left",onClick:function(){function i(){return h("slowFactor",{value:c-5})}return i}()})," "]}),(0,e.createComponentVNode)(2,t.Flex.Item,{mx:"1px",children:[" ",(0,e.createComponentVNode)(2,t.Button,{icon:"angle-left",onClick:function(){function i(){return h("slowFactor",{value:c-1})}return i}()})," "]}),(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Slider,{width:"100px",mx:"1px",value:c,fillValue:c,minValue:1,maxValue:50,step:1,format:function(){function i(s){return s+"x"}return i}(),onChange:function(){function i(s,u){return h("slowFactor",{value:u})}return i}()})}),(0,e.createComponentVNode)(2,t.Flex.Item,{mx:"1px",children:[" ",(0,e.createComponentVNode)(2,t.Button,{icon:"angle-right",onClick:function(){function i(){return h("slowFactor",{value:c+1})}return i}()})," "]}),(0,e.createComponentVNode)(2,t.Flex.Item,{mx:"1px",children:[" ",(0,e.createComponentVNode)(2,t.Button,{icon:"angle-double-right",onClick:function(){function i(){return h("slowFactor",{value:c+5})}return i}()})," "]})]})})]})})})})}return V}()},94187:function(I,r,n){"use strict";r.__esModule=!0,r.CrewMonitor=void 0;var e=n(96524),a=n(50640),t=n(78234),o=n(17899),m=n(24674),V=n(5126),y=n(38424),S=n(45493),k=function(i,s){return i.dead?"Deceased":parseInt(i.health,10)<=s?"Critical":parseInt(i.stat,10)===1?"Unconscious":"Living"},h=function(i,s){return i.dead?"red":parseInt(i.health,10)<=s?"orange":parseInt(i.stat,10)===1?"blue":"green"},l=r.CrewMonitor=function(){function d(i,s){var u=(0,o.useBackend)(s),C=u.act,v=u.data,g=(0,o.useLocalState)(s,"tabIndex",0),p=g[0],N=g[1],b=function(){function B(L){switch(L){case 0:return(0,e.createComponentVNode)(2,c);case 1:return(0,e.createComponentVNode)(2,f);default:return"WE SHOULDN'T BE HERE!"}}return B}();return(0,e.createComponentVNode)(2,S.Window,{width:800,height:600,children:(0,e.createComponentVNode)(2,S.Window.Content,{children:(0,e.createComponentVNode)(2,m.Stack,{fill:!0,vertical:!0,fillPositionedParent:!0,children:[(0,e.createComponentVNode)(2,m.Stack.Item,{children:(0,e.createComponentVNode)(2,m.Tabs,{children:[(0,e.createComponentVNode)(2,m.Tabs.Tab,{icon:"table",selected:p===0,onClick:function(){function B(){return N(0)}return B}(),children:"Data View"},"DataView"),(0,e.createComponentVNode)(2,m.Tabs.Tab,{icon:"map-marked-alt",selected:p===1,onClick:function(){function B(){return N(1)}return B}(),children:"Map View"},"MapView")]})}),b(p)]})})})}return d}(),c=function(i,s){var u=(0,o.useBackend)(s),C=u.act,v=u.data,g=(0,a.sortBy)(function(x){return x.name})(v.crewmembers||[]),p=v.possible_levels,N=v.viewing_current_z_level,b=v.is_advanced,B=(0,o.useLocalState)(s,"search",""),L=B[0],w=B[1],T=(0,t.createSearch)(L,function(x){return x.name+"|"+x.assignment+"|"+x.area});return(0,e.createComponentVNode)(2,m.Section,{fill:!0,scrollable:!0,backgroundColor:"transparent",children:[(0,e.createComponentVNode)(2,m.Stack,{children:[(0,e.createComponentVNode)(2,m.Stack.Item,{width:"100%",ml:"5px",children:(0,e.createComponentVNode)(2,m.Input,{placeholder:"Search by name, assignment or location..",width:"100%",onInput:function(){function x(A,E){return w(E)}return x}()})}),(0,e.createComponentVNode)(2,m.Stack.Item,{children:b?(0,e.createComponentVNode)(2,m.Dropdown,{mr:"5px",width:"50px",options:p,selected:N,onSelected:function(){function x(A){return C("switch_level",{new_level:A})}return x}()}):null})]}),(0,e.createComponentVNode)(2,m.Table,{m:"0.5rem",children:[(0,e.createComponentVNode)(2,m.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,m.Table.Cell,{children:"Name"}),(0,e.createComponentVNode)(2,m.Table.Cell,{children:"Status"}),(0,e.createComponentVNode)(2,m.Table.Cell,{children:"Location"})]}),g.filter(T).map(function(x){return(0,e.createComponentVNode)(2,m.Table.Row,{bold:!!x.is_command,children:[(0,e.createComponentVNode)(2,V.TableCell,{children:[x.name," (",x.assignment,")"]}),(0,e.createComponentVNode)(2,V.TableCell,{children:[(0,e.createComponentVNode)(2,m.Box,{inline:!0,color:h(x,v.critThreshold),children:k(x,v.critThreshold)}),x.sensor_type>=2||v.ignoreSensors?(0,e.createComponentVNode)(2,m.Box,{inline:!0,ml:1,children:["(",(0,e.createComponentVNode)(2,m.Box,{inline:!0,color:y.COLORS.damageType.oxy,children:x.oxy}),"|",(0,e.createComponentVNode)(2,m.Box,{inline:!0,color:y.COLORS.damageType.toxin,children:x.tox}),"|",(0,e.createComponentVNode)(2,m.Box,{inline:!0,color:y.COLORS.damageType.burn,children:x.fire}),"|",(0,e.createComponentVNode)(2,m.Box,{inline:!0,color:y.COLORS.damageType.brute,children:x.brute}),")"]}):null]}),(0,e.createComponentVNode)(2,V.TableCell,{children:x.sensor_type===3||v.ignoreSensors?v.isAI||v.isObserver?(0,e.createComponentVNode)(2,m.Button,{fluid:!0,icon:"location-arrow",content:x.area+" ("+x.x+", "+x.y+")",onClick:function(){function A(){return C("track",{track:x.ref})}return A}()}):x.area+" ("+x.x+", "+x.y+")":(0,e.createComponentVNode)(2,m.Box,{inline:!0,color:"grey",children:"Not Available"})})]},x.name)})]})]})},f=function(i,s){var u=(0,o.useBackend)(s),C=u.act,v=u.data,g=(0,o.useLocalState)(s,"zoom",1),p=g[0],N=g[1];return(0,e.createComponentVNode)(2,m.Box,{height:"526px",mb:"0.5rem",overflow:"hidden",children:(0,e.createComponentVNode)(2,m.NanoMap,{onZoom:function(){function b(B){return N(B)}return b}(),children:v.crewmembers.filter(function(b){return b.sensor_type===3||v.ignoreSensors}).map(function(b){return(0,e.createComponentVNode)(2,m.NanoMap.Marker,{x:b.x,y:b.y,zoom:p,icon:"circle",tooltip:b.name+" ("+b.assignment+")",color:h(b,v.critThreshold),onClick:function(){function B(){return v.isObserver?C("track",{track:b.ref}):null}return B}()},b.ref)})})})}},60561:function(I,r,n){"use strict";r.__esModule=!0,r.Cryo=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=[{label:"Resp.",type:"oxyLoss"},{label:"Toxin",type:"toxLoss"},{label:"Brute",type:"bruteLoss"},{label:"Burn",type:"fireLoss"}],V=[["good","Conscious"],["average","Unconscious"],["bad","DEAD"]],y=r.Cryo=function(){function h(l,c){return(0,e.createComponentVNode)(2,o.Window,{width:520,height:500,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,S)})})})}return h}(),S=function(l,c){var f=(0,a.useBackend)(c),d=f.act,i=f.data,s=i.isOperating,u=i.hasOccupant,C=i.occupant,v=C===void 0?[]:C,g=i.cellTemperature,p=i.cellTemperatureStatus,N=i.isBeakerLoaded,b=i.cooldownProgress,B=i.auto_eject_healthy,L=i.auto_eject_dead;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Occupant",fill:!0,scrollable:!0,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"user-slash",onClick:function(){function w(){return d("ejectOccupant")}return w}(),disabled:!u,children:"Eject"}),children:u?(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Occupant",children:v.name||"Unknown"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Health",children:(0,e.createComponentVNode)(2,t.ProgressBar,{min:v.health,max:v.maxHealth,value:v.health/v.maxHealth,color:v.health>0?"good":"average",children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:Math.round(v.health)})})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",color:V[v.stat][0],children:V[v.stat][1]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Temperature",children:[(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:Math.round(v.bodyTemperature)})," K"]}),(0,e.createComponentVNode)(2,t.LabeledList.Divider),m.map(function(w){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:w.label,children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:v[w.type]/100,ranges:{bad:[.01,1/0]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:Math.round(v[w.type])})})},w.id)})]}):(0,e.createComponentVNode)(2,t.Stack,{fill:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,align:"center",color:"label",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,e.createVNode)(1,"br"),"No occupant detected."]})})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Cell",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"eject",onClick:function(){function w(){return d("ejectBeaker")}return w}(),disabled:!N,children:"Eject Beaker"}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power",children:(0,e.createComponentVNode)(2,t.Button,{icon:"power-off",onClick:function(){function w(){return d(s?"switchOff":"switchOn")}return w}(),selected:s,children:s?"On":"Off"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Temperature",color:p,children:[(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:g})," K"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Beaker",children:(0,e.createComponentVNode)(2,k)}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Dosage interval",children:(0,e.createComponentVNode)(2,t.ProgressBar,{ranges:{average:[-1/0,99],good:[99,1/0]},color:!N&&"average",value:b,minValue:0,maxValue:100})}),(0,e.createComponentVNode)(2,t.LabeledList.Divider),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Auto-eject healthy occupants",children:(0,e.createComponentVNode)(2,t.Button,{icon:B?"toggle-on":"toggle-off",selected:B,onClick:function(){function w(){return d(B?"auto_eject_healthy_off":"auto_eject_healthy_on")}return w}(),children:B?"On":"Off"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Auto-eject dead occupants",children:(0,e.createComponentVNode)(2,t.Button,{icon:L?"toggle-on":"toggle-off",selected:L,onClick:function(){function w(){return d(L?"auto_eject_dead_off":"auto_eject_dead_on")}return w}(),children:L?"On":"Off"})})]})})})],4)},k=function(l,c){var f=(0,a.useBackend)(c),d=f.act,i=f.data,s=i.isBeakerLoaded,u=i.beakerLabel,C=i.beakerVolume;return s?(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{inline:!0,color:!u&&"average",children:[u||"No label",":"]}),(0,e.createComponentVNode)(2,t.Box,{inline:!0,color:!C&&"bad",ml:1,children:C?(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:C,format:function(){function v(g){return Math.round(g)+" units remaining"}return v}()}):"Beaker is empty"})],4):(0,e.createComponentVNode)(2,t.Box,{inline:!0,color:"bad",children:"No beaker loaded"})}},27889:function(I,r,n){"use strict";r.__esModule=!0,r.CryopodConsole=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=n(78234),V=r.CryopodConsole=function(){function k(h,l){var c=(0,a.useBackend)(l),f=c.data,d=f.account_name,i=f.allow_items;return(0,e.createComponentVNode)(2,o.Window,{title:"Cryopod Console",width:400,height:480,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Hello, "+(d||"[REDACTED]")+"!",children:"This automated cryogenic freezing unit will safely store your corporeal form until your next assignment."}),(0,e.createComponentVNode)(2,y),!!i&&(0,e.createComponentVNode)(2,S)]})})}return k}(),y=function(h,l){var c=(0,a.useBackend)(l),f=c.data,d=f.frozen_crew;return(0,e.createComponentVNode)(2,t.Collapsible,{title:"Stored Crew",children:d.length?(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:d.map(function(i,s){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:i.name,children:i.rank},s)})})}):(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No stored crew!"})})},S=function(h,l){var c=(0,a.useBackend)(l),f=c.act,d=c.data,i=d.frozen_items,s=function(C){var v=C.toString();return v.startsWith("the ")&&(v=v.slice(4,v.length)),(0,m.toTitleCase)(v)};return(0,e.createComponentVNode)(2,t.Collapsible,{title:"Stored Items",children:i.length?(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:i.map(function(u){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:s(u.name),buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-down",content:"Drop",mr:1,onClick:function(){function C(){return f("one_item",{item:u.uid})}return C}()})},u)})})}),(0,e.createComponentVNode)(2,t.Button,{content:"Drop All Items",color:"red",onClick:function(){function u(){return f("all_items")}return u}()})],4):(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No stored items!"})})}},81434:function(I,r,n){"use strict";r.__esModule=!0,r.DNAModifier=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=n(99665),V=[["good","Alive"],["average","Critical"],["bad","DEAD"]],y=[["ui","Modify U.I.","dna"],["se","Modify S.E.","dna"],["buffer","Transfer Buffers","syringe"],["rejuvenators","Rejuvenators","flask"]],S=[5,10,20,30,50],k=r.DNAModifier=function(){function p(N,b){var B=(0,a.useBackend)(b),L=B.act,w=B.data,T=w.irradiating,x=w.dnaBlockSize,A=w.occupant;b.dnaBlockSize=x,b.isDNAInvalid=!A.isViableSubject||!A.uniqueIdentity||!A.structuralEnzymes;var E;return T&&(E=(0,e.createComponentVNode)(2,v,{duration:T})),(0,e.createComponentVNode)(2,o.Window,{width:660,height:775,children:[(0,e.createComponentVNode)(2,m.ComplexModal),E,(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,h)}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,l)})]})})]})}return p}(),h=function(N,b){var B=(0,a.useBackend)(b),L=B.act,w=B.data,T=w.locked,x=w.hasOccupant,A=w.occupant;return(0,e.createComponentVNode)(2,t.Section,{title:"Occupant",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{color:"label",inline:!0,mr:"0.5rem",children:"Door Lock:"}),(0,e.createComponentVNode)(2,t.Button,{disabled:!x,selected:T,icon:T?"toggle-on":"toggle-off",content:T?"Engaged":"Disengaged",onClick:function(){function E(){return L("toggleLock")}return E}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:!x||T,icon:"user-slash",content:"Eject",onClick:function(){function E(){return L("ejectOccupant")}return E}()})],4),children:x?(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Name",children:A.name}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Health",children:(0,e.createComponentVNode)(2,t.ProgressBar,{min:A.minHealth,max:A.maxHealth,value:A.health/A.maxHealth,ranges:{good:[.5,1/0],average:[0,.5],bad:[-1/0,0]}})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",color:V[A.stat][0],children:V[A.stat][1]}),(0,e.createComponentVNode)(2,t.LabeledList.Divider)]})}),b.isDNAInvalid?(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"exclamation-circle"}),"\xA0 The occupant's DNA structure is ruined beyond recognition, please insert a subject with an intact DNA structure."]}):(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Radiation",children:(0,e.createComponentVNode)(2,t.ProgressBar,{min:"0",max:"100",value:A.radiationLevel/100,color:"average"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Unique Enzymes",children:w.occupant.uniqueEnzymes?w.occupant.uniqueEnzymes:(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"exclamation-circle"}),"\xA0 Unknown"]})})]})],0):(0,e.createComponentVNode)(2,t.Box,{color:"label",children:"Cell unoccupied."})})},l=function(N,b){var B=(0,a.useBackend)(b),L=B.act,w=B.data,T=w.selectedMenuKey,x=w.hasOccupant,A=w.occupant;if(x){if(b.isDNAInvalid)return(0,e.createComponentVNode)(2,t.Section,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,align:"center",textAlign:"center",color:"label",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,e.createVNode)(1,"br"),"No operation possible on this subject."]})})})}else return(0,e.createComponentVNode)(2,t.Section,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,align:"center",textAlign:"center",color:"label",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,e.createVNode)(1,"br"),"No occupant in DNA modifier."]})})});var E;return T==="ui"?E=(0,e.createFragment)([(0,e.createComponentVNode)(2,c),(0,e.createComponentVNode)(2,d)],4):T==="se"?E=(0,e.createFragment)([(0,e.createComponentVNode)(2,f),(0,e.createComponentVNode)(2,d)],4):T==="buffer"?E=(0,e.createComponentVNode)(2,i):T==="rejuvenators"&&(E=(0,e.createComponentVNode)(2,C)),(0,e.createComponentVNode)(2,t.Section,{fill:!0,children:[(0,e.createComponentVNode)(2,t.Tabs,{children:y.map(function(M,D){return(0,e.createComponentVNode)(2,t.Tabs.Tab,{icon:M[2],selected:T===M[0],onClick:function(){function P(){return L("selectMenuKey",{key:M[0]})}return P}(),children:M[1]},D)})}),E]})},c=function(N,b){var B=(0,a.useBackend)(b),L=B.act,w=B.data,T=w.selectedUIBlock,x=w.selectedUISubBlock,A=w.selectedUITarget,E=w.occupant;return(0,e.createComponentVNode)(2,t.Section,{title:"Modify Unique Identifier",children:[(0,e.createComponentVNode)(2,g,{dnaString:E.uniqueIdentity,selectedBlock:T,selectedSubblock:x,blockSize:b.dnaBlockSize,action:"selectUIBlock"}),(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Target",children:(0,e.createComponentVNode)(2,t.Knob,{minValue:1,maxValue:15,stepPixelSize:"20",value:A,format:function(){function M(D){return D.toString(16).toUpperCase()}return M}(),ml:"0",onChange:function(){function M(D,P){return L("changeUITarget",{value:P})}return M}()})})}),(0,e.createComponentVNode)(2,t.Button,{icon:"radiation",content:"Irradiate Block",mt:"0.5rem",onClick:function(){function M(){return L("pulseUIRadiation")}return M}()})]})},f=function(N,b){var B=(0,a.useBackend)(b),L=B.act,w=B.data,T=w.selectedSEBlock,x=w.selectedSESubBlock,A=w.occupant;return(0,e.createComponentVNode)(2,t.Section,{title:"Modify Structural Enzymes",children:[(0,e.createComponentVNode)(2,g,{dnaString:A.structuralEnzymes,selectedBlock:T,selectedSubblock:x,blockSize:b.dnaBlockSize,action:"selectSEBlock"}),(0,e.createComponentVNode)(2,t.Button,{icon:"radiation",content:"Irradiate Block",onClick:function(){function E(){return L("pulseSERadiation")}return E}()})]})},d=function(N,b){var B=(0,a.useBackend)(b),L=B.act,w=B.data,T=w.radiationIntensity,x=w.radiationDuration;return(0,e.createComponentVNode)(2,t.Section,{title:"Radiation Emitter",children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Intensity",children:(0,e.createComponentVNode)(2,t.Knob,{minValue:1,maxValue:10,stepPixelSize:20,value:T,popUpPosition:"right",ml:"0",onChange:function(){function A(E,M){return L("radiationIntensity",{value:M})}return A}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Duration",children:(0,e.createComponentVNode)(2,t.Knob,{minValue:1,maxValue:20,stepPixelSize:10,unit:"s",value:x,popUpPosition:"right",ml:"0",onChange:function(){function A(E,M){return L("radiationDuration",{value:M})}return A}()})})]}),(0,e.createComponentVNode)(2,t.Button,{icon:"radiation",content:"Pulse Radiation",tooltip:"Mutates a random block of either the occupant's UI or SE.",tooltipPosition:"top-start",mt:"0.5rem",onClick:function(){function A(){return L("pulseRadiation")}return A}()})]})},i=function(N,b){var B=(0,a.useBackend)(b),L=B.act,w=B.data,T=w.buffers,x=T.map(function(A,E){return(0,e.createComponentVNode)(2,s,{id:E+1,name:"Buffer "+(E+1),buffer:A},E)});return(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{height:"75%",mt:1,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Buffers",children:x})}),(0,e.createComponentVNode)(2,t.Stack.Item,{height:"25%",children:(0,e.createComponentVNode)(2,u)})]})},s=function(N,b){var B=(0,a.useBackend)(b),L=B.act,w=B.data,T=N.id,x=N.name,A=N.buffer,E=w.isInjectorReady,M=x+(A.data?" - "+A.label:"");return(0,e.createComponentVNode)(2,t.Box,{backgroundColor:"rgba(0, 0, 0, 0.33)",mb:"0.5rem",children:(0,e.createComponentVNode)(2,t.Section,{title:M,mx:"0",lineHeight:"18px",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button.Confirm,{disabled:!A.data,icon:"trash",content:"Clear",onClick:function(){function D(){return L("bufferOption",{option:"clear",id:T})}return D}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:!A.data,icon:"pen",content:"Rename",onClick:function(){function D(){return L("bufferOption",{option:"changeLabel",id:T})}return D}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:!A.data||!w.hasDisk,icon:"save",content:"Export",tooltip:"Exports this buffer to the currently loaded data disk.",tooltipPosition:"bottom-start",onClick:function(){function D(){return L("bufferOption",{option:"saveDisk",id:T})}return D}()})],4),children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Write",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-circle-down",content:"Subject U.I",mb:"0",onClick:function(){function D(){return L("bufferOption",{option:"saveUI",id:T})}return D}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-circle-down",content:"Subject U.I and U.E.",mb:"0",onClick:function(){function D(){return L("bufferOption",{option:"saveUIAndUE",id:T})}return D}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-circle-down",content:"Subject S.E.",mb:"0",onClick:function(){function D(){return L("bufferOption",{option:"saveSE",id:T})}return D}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:!w.hasDisk||!w.disk.data,icon:"arrow-circle-down",content:"From Disk",mb:"0",onClick:function(){function D(){return L("bufferOption",{option:"loadDisk",id:T})}return D}()})]}),!!A.data&&(0,e.createFragment)([(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Subject",children:A.owner||(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"Unknown"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Data Type",children:[A.type==="ui"?"Unique Identifiers":"Structural Enzymes",!!A.ue&&" and Unique Enzymes"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Transfer to",children:[(0,e.createComponentVNode)(2,t.Button,{disabled:!E,icon:E?"syringe":"spinner",iconSpin:!E,content:"Injector",mb:"0",onClick:function(){function D(){return L("bufferOption",{option:"createInjector",id:T})}return D}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:!E,icon:E?"syringe":"spinner",iconSpin:!E,content:"Block Injector",mb:"0",onClick:function(){function D(){return L("bufferOption",{option:"createInjector",id:T,block:1})}return D}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"user",content:"Subject",mb:"0",onClick:function(){function D(){return L("bufferOption",{option:"transfer",id:T})}return D}()})]})],4)]}),!A.data&&(0,e.createComponentVNode)(2,t.Box,{color:"label",mt:"0.5rem",children:"This buffer is empty."})]})})},u=function(N,b){var B=(0,a.useBackend)(b),L=B.act,w=B.data,T=w.hasDisk,x=w.disk;return(0,e.createComponentVNode)(2,t.Section,{title:"Data Disk",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button.Confirm,{disabled:!T||!x.data,icon:"trash",content:"Wipe",onClick:function(){function A(){return L("wipeDisk")}return A}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:!T,icon:"eject",content:"Eject",onClick:function(){function A(){return L("ejectDisk")}return A}()})],4),children:T?x.data?(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Label",children:x.label?x.label:"No label"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Subject",children:x.owner?x.owner:(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"Unknown"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Data Type",children:[x.type==="ui"?"Unique Identifiers":"Structural Enzymes",!!x.ue&&" and Unique Enzymes"]})]}):(0,e.createComponentVNode)(2,t.Box,{color:"label",children:"Disk is blank."}):(0,e.createComponentVNode)(2,t.Box,{color:"label",textAlign:"center",my:"1rem",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"save-o",size:"4"}),(0,e.createVNode)(1,"br"),"No disk inserted."]})})},C=function(N,b){var B=(0,a.useBackend)(b),L=B.act,w=B.data,T=w.isBeakerLoaded,x=w.beakerVolume,A=w.beakerLabel;return(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Rejuvenators and Beaker",buttons:(0,e.createComponentVNode)(2,t.Button,{disabled:!T,icon:"eject",content:"Eject",onClick:function(){function E(){return L("ejectBeaker")}return E}()}),children:T?(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Inject",children:[S.map(function(E,M){return(0,e.createComponentVNode)(2,t.Button,{disabled:E>x,icon:"syringe",content:E,onClick:function(){function D(){return L("injectRejuvenators",{amount:E})}return D}()},M)}),(0,e.createComponentVNode)(2,t.Button,{disabled:x<=0,icon:"syringe",content:"All",onClick:function(){function E(){return L("injectRejuvenators",{amount:x})}return E}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Beaker",children:[(0,e.createComponentVNode)(2,t.Box,{mb:"0.5rem",children:A||"No label"}),x?(0,e.createComponentVNode)(2,t.Box,{color:"good",children:[x," unit",x===1?"":"s"," remaining"]}):(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:"Empty"})]})]}):(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,grow:!0,textAlign:"center",align:"center",color:"label",children:[(0,e.createComponentVNode)(2,t.Icon.Stack,{children:[(0,e.createComponentVNode)(2,t.Icon,{name:"flask",size:5,color:"silver"}),(0,e.createComponentVNode)(2,t.Icon,{name:"slash",size:5,color:"red"})]}),(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"h3",null,"No beaker loaded.",16)]})})})},v=function(N,b){return(0,e.createComponentVNode)(2,t.Dimmer,{textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"spinner",size:"5",spin:!0}),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Box,{color:"average",children:(0,e.createVNode)(1,"h1",null,[(0,e.createComponentVNode)(2,t.Icon,{name:"radiation"}),(0,e.createTextVNode)("\xA0Irradiating occupant\xA0"),(0,e.createComponentVNode)(2,t.Icon,{name:"radiation"})],4)}),(0,e.createComponentVNode)(2,t.Box,{color:"label",children:(0,e.createVNode)(1,"h3",null,[(0,e.createTextVNode)("For "),N.duration,(0,e.createTextVNode)(" second"),N.duration===1?"":"s"],0)})]})},g=function(N,b){for(var B=(0,a.useBackend)(b),L=B.act,w=B.data,T=N.dnaString,x=N.selectedBlock,A=N.selectedSubblock,E=N.blockSize,M=N.action,D=T.split(""),P=0,R=[],j=function(){for(var _=F/E+1,K=[],H=function(){var J=$+1;K.push((0,e.createComponentVNode)(2,t.Button,{selected:x===_&&A===J,content:D[F+$],mb:"0",onClick:function(){function ae(){return L(M,{block:_,subblock:J})}return ae}()}))},$=0;$u.spawnpoints?"red":"green",children:[u.total," total, versus ",u.spawnpoints," spawnpoints"]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Dispatch",children:(0,e.createComponentVNode)(2,t.Button,{width:10.5,textAlign:"center",icon:"ambulance",content:"Send ERT",onClick:function(){function N(){return s("dispatch_ert",{silent:g})}return N}()})})]})})})},h=function(f,d){var i=(0,a.useBackend)(d),s=i.act,u=i.data,C=u.ert_request_messages;return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,children:C&&C.length?C.map(function(v){return(0,e.createComponentVNode)(2,t.Section,{title:v.time,buttons:(0,e.createComponentVNode)(2,t.Button,{content:v.sender_real_name,onClick:function(){function g(){return s("view_player_panel",{uid:v.sender_uid})}return g}(),tooltip:"View player panel"}),children:v.message},(0,m.decodeHtmlEntities)(v.time))}):(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,grow:!0,textAlign:"center",align:"center",color:"average",children:[(0,e.createComponentVNode)(2,t.Icon.Stack,{children:[(0,e.createComponentVNode)(2,t.Icon,{name:"broadcast-tower",size:5,color:"gray"}),(0,e.createComponentVNode)(2,t.Icon,{name:"slash",size:5,color:"red"})]}),(0,e.createVNode)(1,"br"),"No ERT requests."]})})})})},l=function(f,d){var i=(0,a.useBackend)(d),s=i.act,u=i.data,C=(0,a.useLocalState)(d,"text",""),v=C[0],g=C[1];return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,children:[(0,e.createComponentVNode)(2,t.Input,{placeholder:"Enter ERT denial reason here,\nMultiline input is accepted.",rows:19,fluid:!0,multiline:1,value:v,onChange:function(){function p(N,b){return g(b)}return p}()}),(0,e.createComponentVNode)(2,t.Button.Confirm,{content:"Deny ERT",fluid:!0,icon:"times",center:!0,mt:2,textAlign:"center",onClick:function(){function p(){return s("deny_ert",{reason:v})}return p}()})]})})}},24503:function(I,r,n){"use strict";r.__esModule=!0,r.EconomyManager=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=n(99665),V=r.EconomyManager=function(){function S(k,h){return(0,e.createComponentVNode)(2,o.Window,{width:600,height:350,children:[(0,e.createComponentVNode)(2,m.ComplexModal),(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,className:"Layout__content--flexColumn",children:(0,e.createComponentVNode)(2,y)})]})}return S}(),y=function(k,h){var l=(0,a.useBackend)(h),c=l.act,f=l.data,d=f.next_payroll_time;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{children:[(0,e.createComponentVNode)(2,t.Box,{fontSize:"1.4rem",bold:!0,children:[(0,e.createComponentVNode)(2,t.Icon,{name:"coins",verticalAlign:"middle",size:3,mr:"1rem"}),"Economy Manager"]}),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.LabeledList,{label:"Pay Bonuses and Deductions",children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Global",children:(0,e.createComponentVNode)(2,t.Button,{icon:"dollar-sign",width:"auto",content:"Global Payroll Modification",onClick:function(){function i(){return c("payroll_modification",{mod_type:"global"})}return i}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Department Accounts",children:(0,e.createComponentVNode)(2,t.Button,{icon:"dollar-sign",width:"auto",content:"Department Account Payroll Modification",onClick:function(){function i(){return c("payroll_modification",{mod_type:"department"})}return i}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Department Members",children:(0,e.createComponentVNode)(2,t.Button,{icon:"dollar-sign",width:"auto",content:"Department Members Payroll Modification",onClick:function(){function i(){return c("payroll_modification",{mod_type:"department_members"})}return i}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Single Accounts",children:(0,e.createComponentVNode)(2,t.Button,{icon:"dollar-sign",width:"auto",content:"Crew Member Payroll Modification",onClick:function(){function i(){return c("payroll_modification",{mod_type:"crew_member"})}return i}()})})]}),(0,e.createVNode)(1,"hr"),(0,e.createComponentVNode)(2,t.Box,{mb:.5,children:["Next Payroll in: ",d," Minutes"]}),(0,e.createComponentVNode)(2,t.Button,{icon:"angle-double-left",width:"auto",color:"bad",content:"Delay Payroll",onClick:function(){function i(){return c("delay_payroll")}return i}()}),(0,e.createComponentVNode)(2,t.Button,{width:"auto",content:"Set Payroll Time",onClick:function(){function i(){return c("set_payroll")}return i}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"angle-double-right",width:"auto",color:"good",content:"Accelerate Payroll",onClick:function(){function i(){return c("accelerate_payroll")}return i}()})]}),(0,e.createComponentVNode)(2,t.NoticeBox,{children:[(0,e.createVNode)(1,"b",null,"WARNING:",16)," You take full responsibility for unbalancing the economy with these buttons"]})],4)}},15543:function(I,r,n){"use strict";r.__esModule=!0,r.Electropack=void 0;var e=n(96524),a=n(36121),t=n(17899),o=n(24674),m=n(45493),V=r.Electropack=function(){function y(S,k){var h=(0,t.useBackend)(k),l=h.act,c=h.data,f=c.power,d=c.code,i=c.frequency,s=c.minFrequency,u=c.maxFrequency;return(0,e.createComponentVNode)(2,m.Window,{width:360,height:135,children:(0,e.createComponentVNode)(2,m.Window.Content,{children:(0,e.createComponentVNode)(2,o.Section,{children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Power",children:(0,e.createComponentVNode)(2,o.Button,{icon:f?"power-off":"times",content:f?"On":"Off",selected:f,onClick:function(){function C(){return l("power")}return C}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Frequency",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"sync",content:"Reset",onClick:function(){function C(){return l("reset",{reset:"freq"})}return C}()}),children:(0,e.createComponentVNode)(2,o.NumberInput,{animate:!0,unit:"kHz",step:.2,stepPixelSize:6,minValue:s/10,maxValue:u/10,value:i/10,format:function(){function C(v){return(0,a.toFixed)(v,1)}return C}(),width:"80px",onChange:function(){function C(v,g){return l("freq",{freq:g})}return C}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Code",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"sync",content:"Reset",onClick:function(){function C(){return l("reset",{reset:"code"})}return C}()}),children:(0,e.createComponentVNode)(2,o.NumberInput,{animate:!0,step:1,stepPixelSize:6,minValue:1,maxValue:100,value:d,width:"80px",onChange:function(){function C(v,g){return l("code",{code:g})}return C}()})})]})})})})}return y}()},57013:function(I,r,n){"use strict";r.__esModule=!0,r.Emojipedia=void 0;var e=n(96524),a=n(28234),t=n(17899),o=n(24674),m=n(45493),V=r.Emojipedia=function(){function S(k,h){var l=(0,t.useBackend)(h),c=l.data,f=c.emoji_list,d=(0,t.useLocalState)(h,"searchText",""),i=d[0],s=d[1],u=f.filter(function(C){return C.name.toLowerCase().includes(i.toLowerCase())});return(0,e.createComponentVNode)(2,m.Window,{width:325,height:400,children:(0,e.createComponentVNode)(2,m.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"Emojipedia v1.0.1",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Input,{placeholder:"Search by name",value:i,onInput:function(){function C(v,g){return s(g)}return C}()}),(0,e.createComponentVNode)(2,o.Button,{tooltip:"Click on an emoji to copy its tag!",tooltipPosition:"bottom",icon:"circle-question"})],4),children:u.map(function(C){return(0,e.createComponentVNode)(2,o.Button,{m:1,color:"transparent",className:(0,a.classes)(["emoji16x16","emoji-"+C.name]),style:{transform:"scale(1.5)"},tooltip:C.name,onClick:function(){function v(){y(C.name)}return v}()},C.name)})})})})}return S}(),y=function(k){var h=document.createElement("input"),l=":"+k+":";h.value=l,document.body.appendChild(h),h.select(),document.execCommand("copy"),document.body.removeChild(h)}},75450:function(I,r,n){"use strict";r.__esModule=!0,r.EmotePanelContent=r.EmotePanel=void 0;var e=n(96524),a=n(17899),t=n(45493),o=n(24674),m=n(78234),V=r.EmotePanel=function(){function S(k,h){return(0,e.createComponentVNode)(2,t.Window,{width:500,height:550,children:(0,e.createComponentVNode)(2,t.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,y)})})})}return S}(),y=r.EmotePanelContent=function(){function S(k,h){var l=(0,a.useBackend)(h),c=l.act,f=l.data,d=f.emotes,i=(0,a.useLocalState)(h,"searchText",""),s=i[0],u=i[1],C=(0,a.useLocalState)(h,"filterVisible",""),v=C[0],g=C[1],p=(0,a.useLocalState)(h,"filterAudible",""),N=p[0],b=p[1],B=(0,a.useLocalState)(h,"filterSound",""),L=B[0],w=B[1],T=(0,a.useLocalState)(h,"filterHands",""),x=T[0],A=T[1],E=(0,a.useLocalState)(h,"filterTargettable",""),M=E[0],D=E[1],P=(0,a.useLocalState)(h,"useTarget",""),R=P[0],j=P[1],F=(0,e.createComponentVNode)(2,o.Input,{placeholder:"\u0418\u0441\u043A\u0430\u0442\u044C \u044D\u043C\u043E\u0446\u0438\u044E...",fluid:!0,onInput:function(){function W(_,K){return u(K)}return W}()});return(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,title:"\u0424\u0438\u043B\u044C\u0442\u0440\u044B",buttons:(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.Button,{icon:"eye",align:"center",tooltip:"\u0412\u0438\u0434\u0438\u043C\u044B\u0439",selected:v,onClick:function(){function W(){return g(!v)}return W}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"comment",align:"center",tooltip:"\u0421\u043B\u044B\u0448\u0438\u043C\u044B\u0439",selected:N,onClick:function(){function W(){return b(!N)}return W}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"volume-up",align:"center",tooltip:"\u0417\u0432\u0443\u043A",selected:L,onClick:function(){function W(){return w(!L)}return W}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"hand-paper",align:"center",tooltip:"\u0420\u0443\u043A\u0438",selected:x,onClick:function(){function W(){return A(!x)}return W}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"crosshairs",height:"100%",align:"center",tooltip:"\u0426\u0435\u043B\u044C",selected:M,onClick:function(){function W(){return D(!M)}return W}()})]}),children:F})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:s.length>0?'\u0420\u0435\u0437\u0443\u043B\u044C\u0442\u0430\u0442\u044B \u043F\u043E\u0438\u0441\u043A\u0430 "'+s+'"':"\u0412\u0441\u0435 \u044D\u043C\u043E\u0446\u0438\u0438",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"crosshairs",selected:R,onClick:function(){function W(){return j(!R)}return W}(),children:"\u0412\u044B\u0431\u0438\u0440\u0430\u0442\u044C \u0446\u0435\u043B\u044C"}),children:(0,e.createComponentVNode)(2,o.Stack,{children:(0,e.createComponentVNode)(2,o.Stack.Item,{children:d.filter(function(W){return W.key&&(s.length>0?W.key.toLowerCase().includes(s.toLowerCase())||W.name.toLowerCase().includes(s.toLowerCase()):!0)&&(v?W.visible:!0)&&(N?W.audible:!0)&&(L?W.sound:!0)&&(x?W.hands:!0)&&(M?W.targettable:!0)}).map(function(W){return(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function _(){return c("play_emote",{emote_key:W.key,useTarget:R})}return _}(),children:[W.visible?(0,e.createComponentVNode)(2,o.Icon,{name:"eye"}):"",W.audible?(0,e.createComponentVNode)(2,o.Icon,{name:"comment"}):"",W.sound?(0,e.createComponentVNode)(2,o.Icon,{name:"volume-up"}):"",W.hands?(0,e.createComponentVNode)(2,o.Icon,{name:"hand-paper"}):"",W.targettable?(0,e.createComponentVNode)(2,o.Icon,{name:"crosshairs"}):"",W.name]},W.name)})})})})})],4)}return S}()},99012:function(I,r,n){"use strict";r.__esModule=!0,r.EvolutionMenu=void 0;var e=n(96524),a=n(78234),t=n(17899),o=n(24674),m=n(45493),V=n(74041),y=n(50640),S=r.EvolutionMenu=function(){function l(c,f){return(0,e.createComponentVNode)(2,m.Window,{width:480,height:580,theme:"changeling",children:(0,e.createComponentVNode)(2,m.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,k),(0,e.createComponentVNode)(2,h)]})})})}return l}(),k=function(c,f){var d=(0,t.useBackend)(f),i=d.act,s=d.data,u=s.evo_points,C=s.can_respec;return(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Section,{title:"Evolution Points",height:5.5,children:(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.Stack.Item,{mt:.5,color:"label",children:"Points remaining:"}),(0,e.createComponentVNode)(2,o.Stack.Item,{mt:.5,ml:2,bold:!0,color:"#1b945c",children:u}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:[(0,e.createComponentVNode)(2,o.Button,{ml:2.5,disabled:!C,content:"Readapt",icon:"sync",onClick:function(){function v(){return i("readapt")}return v}()}),(0,e.createComponentVNode)(2,o.Button,{tooltip:"By transforming a humanoid into a husk, we gain the ability to readapt our chosen evolutions.",tooltipPosition:"bottom",icon:"question-circle"})]})]})})})},h=function(c,f){var d=(0,t.useBackend)(f),i=d.act,s=d.data,u=s.evo_points,C=s.ability_tabs,v=s.purchased_abilities,g=s.view_mode,p=(0,t.useLocalState)(f,"selectedTab",C[0]),N=p[0],b=p[1],B=(0,t.useLocalState)(f,"searchText",""),L=B[0],w=B[1],T=(0,t.useLocalState)(f,"ability_tabs",C[0].abilities),x=T[0],A=T[1],E=function(R,j){if(j===void 0&&(j=""),!R||R.length===0)return[];var F=(0,a.createSearch)(j,function(W){return W.name+"|"+W.description});return(0,V.flow)([(0,y.filter)(function(W){return W==null?void 0:W.name}),(0,y.filter)(F),(0,y.sortBy)(function(W){return W==null?void 0:W.name})])(R)},M=function(R){if(w(R),R==="")return A(N.abilities);A(E(C.map(function(j){return j.abilities}).flat(),R))},D=function(R){b(R),A(R.abilities),w("")};return(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"Abilities",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Input,{width:"200px",placeholder:"Search Abilities",onInput:function(){function P(R,j){M(j)}return P}(),value:L}),(0,e.createComponentVNode)(2,o.Button,{icon:g?"square-o":"check-square-o",selected:!g,content:"Compact",onClick:function(){function P(){return i("set_view_mode",{mode:0})}return P}()}),(0,e.createComponentVNode)(2,o.Button,{icon:g?"check-square-o":"square-o",selected:g,content:"Expanded",onClick:function(){function P(){return i("set_view_mode",{mode:1})}return P}()})],4),children:[(0,e.createComponentVNode)(2,o.Tabs,{children:C.map(function(P){return(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:L===""&&N===P,onClick:function(){function R(){D(P)}return R}(),children:P.category},P)})}),x.map(function(P,R){return(0,e.createComponentVNode)(2,o.Box,{p:.5,mx:-1,className:"candystripe",children:[(0,e.createComponentVNode)(2,o.Stack,{align:"center",children:[(0,e.createComponentVNode)(2,o.Stack.Item,{ml:.5,color:"#dedede",children:P.name}),v.includes(P.power_path)&&(0,e.createComponentVNode)(2,o.Stack.Item,{ml:2,bold:!0,color:"#1b945c",children:"(Purchased)"}),(0,e.createComponentVNode)(2,o.Stack.Item,{mr:3,textAlign:"right",grow:1,children:[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"label",children:["Cost:"," "]}),(0,e.createComponentVNode)(2,o.Box,{as:"span",bold:!0,color:"#1b945c",children:P.cost})]}),(0,e.createComponentVNode)(2,o.Stack.Item,{textAlign:"right",children:(0,e.createComponentVNode)(2,o.Button,{mr:.5,disabled:P.cost>u||v.includes(P.power_path),content:"Evolve",onClick:function(){function j(){return i("purchase",{power_path:P.power_path})}return j}()})})]}),!!g&&(0,e.createComponentVNode)(2,o.Stack,{color:"#8a8a8a",my:1,ml:1.5,width:"95%",children:P.description+" "+P.helptext})]},R)})]})})}},37504:function(I,r,n){"use strict";r.__esModule=!0,r.ExosuitFabricator=void 0;var e=n(96524),a=n(28234),t=n(78234),o=n(17899),m=n(24674),V=n(99509),y=n(45493),S=["id","amount","lineDisplay","onClick"];function k(v,g){if(v==null)return{};var p={},N=Object.keys(v),b,B;for(B=0;B=0)&&(p[b]=v[b]);return p}var h=2e3,l={bananium:"clown",tranquillite:"mime"},c=r.ExosuitFabricator=function(){function v(g,p){var N=(0,o.useBackend)(p),b=N.act,B=N.data,L=B.building;return(0,e.createComponentVNode)(2,y.Window,{width:950,height:625,children:(0,e.createComponentVNode)(2,y.Window.Content,{className:"Exofab",children:(0,e.createComponentVNode)(2,m.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,m.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,m.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,m.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,d)}),L&&(0,e.createComponentVNode)(2,m.Stack.Item,{children:(0,e.createComponentVNode)(2,i)})]})}),(0,e.createComponentVNode)(2,m.Stack.Item,{width:"30%",children:(0,e.createComponentVNode)(2,m.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,m.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,f)}),(0,e.createComponentVNode)(2,m.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,s)})]})})]})})})}return v}(),f=function(g,p){var N=(0,o.useBackend)(p),b=N.act,B=N.data,L=B.materials,w=B.capacity,T=Object.values(L).reduce(function(x,A){return x+A},0);return(0,e.createComponentVNode)(2,m.Section,{fill:!0,scrollable:!0,title:"Materials",className:"Exofab__materials",buttons:(0,e.createComponentVNode)(2,m.Box,{color:"label",mt:"0.25rem",children:[(T/w*100).toPrecision(3),"% full"]}),children:["metal","glass","silver","gold","uranium","titanium","plasma","diamond","bluespace","bananium","tranquillite","plastic"].map(function(x){return(0,e.createComponentVNode)(2,u,{mt:-2,id:x,bold:x==="metal"||x==="glass",onClick:function(){function A(){return b("withdraw",{id:x})}return A}()},x)})})},d=function(g,p){var N=(0,o.useBackend)(p),b=N.act,B=N.data,L=B.curCategory,w=B.categories,T=B.designs,x=B.syncing,A=(0,o.useLocalState)(p,"searchText",""),E=A[0],M=A[1],D=(0,t.createSearch)(E,function(R){return R.name}),P=T.filter(D);return(0,e.createComponentVNode)(2,m.Section,{fill:!0,scrollable:!0,className:"Exofab__designs",title:(0,e.createComponentVNode)(2,m.Dropdown,{className:"Exofab__dropdown",selected:L,options:w,onSelected:function(){function R(j){return b("category",{cat:j})}return R}()}),buttons:(0,e.createComponentVNode)(2,m.Box,{mt:"2px",children:[(0,e.createComponentVNode)(2,m.Button,{icon:"plus",content:"Queue all",onClick:function(){function R(){return b("queueall")}return R}()}),(0,e.createComponentVNode)(2,m.Button,{disabled:x,iconSpin:x,icon:"sync-alt",content:x?"Synchronizing...":"Synchronize with R&D servers",onClick:function(){function R(){return b("sync")}return R}()})]}),children:[(0,e.createComponentVNode)(2,m.Input,{placeholder:"Search by name...",mb:"0.5rem",width:"100%",onInput:function(){function R(j,F){return M(F)}return R}()}),P.map(function(R){return(0,e.createComponentVNode)(2,C,{design:R},R.id)}),P.length===0&&(0,e.createComponentVNode)(2,m.Box,{color:"label",children:"No designs found."})]})},i=function(g,p){var N=(0,o.useBackend)(p),b=N.act,B=N.data,L=B.building,w=B.buildStart,T=B.buildEnd,x=B.worldTime;return(0,e.createComponentVNode)(2,m.Section,{className:"Exofab__building",stretchContents:!0,children:(0,e.createComponentVNode)(2,m.ProgressBar.Countdown,{start:w,current:x,end:T,children:(0,e.createComponentVNode)(2,m.Stack,{children:[(0,e.createComponentVNode)(2,m.Stack.Item,{children:(0,e.createComponentVNode)(2,m.Icon,{name:"cog",spin:!0})}),(0,e.createComponentVNode)(2,m.Stack.Item,{children:["Building ",L,"\xA0(",(0,e.createComponentVNode)(2,V.Countdown,{current:x,timeLeft:T-x,format:function(){function A(E,M){return M.substr(3)}return A}()}),")"]})]})})})},s=function(g,p){var N=(0,o.useBackend)(p),b=N.act,B=N.data,L=B.queue,w=B.processingQueue,T=Object.entries(B.queueDeficit).filter(function(A){return A[1]<0}),x=L.reduce(function(A,E){return A+E.time},0);return(0,e.createComponentVNode)(2,m.Section,{fill:!0,scrollable:!0,className:"Exofab__queue",title:"Queue",buttons:(0,e.createComponentVNode)(2,m.Box,{children:[(0,e.createComponentVNode)(2,m.Button,{selected:w,icon:w?"toggle-on":"toggle-off",content:"Process",onClick:function(){function A(){return b("process")}return A}()}),(0,e.createComponentVNode)(2,m.Button,{disabled:L.length===0,icon:"eraser",content:"Clear",onClick:function(){function A(){return b("unqueueall")}return A}()})]}),children:(0,e.createComponentVNode)(2,m.Stack,{fill:!0,vertical:!0,children:L.length===0?(0,e.createComponentVNode)(2,m.Box,{color:"label",children:"The queue is empty."}):(0,e.createFragment)([(0,e.createComponentVNode)(2,m.Stack.Item,{className:"Exofab__queue--queue",grow:!0,overflow:"auto",children:L.map(function(A,E){return(0,e.createComponentVNode)(2,m.Box,{color:A.notEnough&&"bad",children:[E+1,". ",A.name,E>0&&(0,e.createComponentVNode)(2,m.Button,{icon:"arrow-up",onClick:function(){function M(){return b("queueswap",{from:E+1,to:E})}return M}()}),E0&&(0,e.createComponentVNode)(2,m.Stack.Item,{className:"Exofab__queue--time",children:[(0,e.createComponentVNode)(2,m.Divider),"Processing time:",(0,e.createComponentVNode)(2,m.Icon,{name:"clock",mx:"0.5rem"}),(0,e.createComponentVNode)(2,m.Box,{inline:!0,bold:!0,children:new Date(x/10*1e3).toISOString().substr(14,5)})]}),Object.keys(T).length>0&&(0,e.createComponentVNode)(2,m.Stack.Item,{className:"Exofab__queue--deficit",shrink:"0",children:[(0,e.createComponentVNode)(2,m.Divider),"Lacking materials to complete:",T.map(function(A){return(0,e.createComponentVNode)(2,m.Box,{children:(0,e.createComponentVNode)(2,u,{id:A[0],amount:-A[1],lineDisplay:!0})},A[0])})]})],0)})})},u=function(g,p){var N=(0,o.useBackend)(p),b=N.act,B=N.data,L=g.id,w=g.amount,T=g.lineDisplay,x=g.onClick,A=k(g,S),E=B.materials[L]||0,M=w||E;if(!(M<=0&&!(L==="metal"||L==="glass"))){var D=w&&w>E;return(0,e.normalizeProps)((0,e.createComponentVNode)(2,m.Stack,Object.assign({align:"center",className:(0,a.classes)(["Exofab__material",T&&"Exofab__material--line"])},A,{children:T?(0,e.createFragment)([(0,e.createComponentVNode)(2,m.Stack.Item,{className:(0,a.classes)(["materials32x32",L])}),(0,e.createComponentVNode)(2,m.Stack.Item,{className:"Exofab__material--amount",color:D&&"bad",ml:0,mr:1,children:M.toLocaleString("en-US")})],4):(0,e.createFragment)([(0,e.createComponentVNode)(2,m.Stack.Item,{basis:"content",children:(0,e.createComponentVNode)(2,m.Button,{width:"85%",color:"transparent",onClick:x,children:(0,e.createComponentVNode)(2,m.Box,{mt:1,className:(0,a.classes)(["materials32x32",L])})})}),(0,e.createComponentVNode)(2,m.Stack.Item,{grow:"1",children:[(0,e.createComponentVNode)(2,m.Box,{className:"Exofab__material--name",children:L}),(0,e.createComponentVNode)(2,m.Box,{className:"Exofab__material--amount",children:[M.toLocaleString("en-US")," cm\xB3 (",Math.round(M/h*10)/10," ","sheets)"]})]})],4)})))}},C=function(g,p){var N=(0,o.useBackend)(p),b=N.act,B=N.data,L=g.design;return(0,e.createComponentVNode)(2,m.Box,{className:"Exofab__design",children:[(0,e.createComponentVNode)(2,m.Button,{disabled:L.notEnough||B.building,icon:"cog",content:L.name,onClick:function(){function w(){return b("build",{id:L.id})}return w}()}),(0,e.createComponentVNode)(2,m.Button,{icon:"plus-circle",onClick:function(){function w(){return b("queue",{id:L.id})}return w}()}),(0,e.createComponentVNode)(2,m.Box,{className:"Exofab__design--cost",children:Object.entries(L.cost).map(function(w){return(0,e.createComponentVNode)(2,m.Box,{children:(0,e.createComponentVNode)(2,u,{id:w[0],amount:w[1],lineDisplay:!0})},w[0])})}),(0,e.createComponentVNode)(2,m.Stack,{className:"Exofab__design--time",children:(0,e.createComponentVNode)(2,m.Stack.Item,{children:[(0,e.createComponentVNode)(2,m.Icon,{name:"clock"}),L.time>0?(0,e.createFragment)([L.time/10,(0,e.createTextVNode)(" seconds")],0):"Instant"]})})]})}},9466:function(I,r,n){"use strict";r.__esModule=!0,r.ExperimentConsole=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=new Map([[0,{text:"Conscious",color:"good"}],[1,{text:"Unconscious",color:"average"}],[2,{text:"Deceased",color:"bad"}]]),V=new Map([[0,{label:"Probe",icon:"thermometer"}],[1,{label:"Dissect",icon:"brain"}],[2,{label:"Analyze",icon:"search"}]]),y=r.ExperimentConsole=function(){function S(k,h){var l=(0,a.useBackend)(h),c=l.act,f=l.data,d=f.open,i=f.feedback,s=f.occupant,u=f.occupant_name,C=f.occupant_status,v=function(){function p(){if(!s)return(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No specimen detected."});var N=function(){function B(){return m.get(C)}return B}(),b=N();return(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Name",children:u}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",color:b.color,children:b.text}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Experiments",children:[0,1,2].map(function(B){return(0,e.createComponentVNode)(2,t.Button,{icon:V.get(B).icon,content:V.get(B).label,onClick:function(){function L(){return c("experiment",{experiment_type:B})}return L}()},B)})})]})}return p}(),g=v();return(0,e.createComponentVNode)(2,o.Window,{theme:"abductor",width:350,height:200,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:i})})}),(0,e.createComponentVNode)(2,t.Section,{title:"Scanner",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"eject",content:"Eject",disabled:!d,onClick:function(){function p(){return c("door")}return p}()}),children:g})]})})}return S}()},77284:function(I,r,n){"use strict";r.__esModule=!0,r.ExternalAirlockController=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=0,V=1013,y=function(h){var l="good",c=80,f=95,d=110,i=120;return hd?l="average":h>i&&(l="bad"),l},S=r.ExternalAirlockController=function(){function k(h,l){var c=(0,a.useBackend)(l),f=c.act,d=c.data,i=d.chamber_pressure,s=d.exterior_status,u=d.interior_status,C=d.processing;return(0,e.createComponentVNode)(2,o.Window,{width:330,height:205,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Information",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Chamber Pressure",children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:y(i),value:i,minValue:m,maxValue:V,children:[i," kPa"]})})})}),(0,e.createComponentVNode)(2,t.Section,{title:"Actions",buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Abort",icon:"ban",color:"red",disabled:!C,onClick:function(){function v(){return f("abort")}return v}()}),children:[(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Button,{width:"49%",content:"Cycle to Exterior",icon:"arrow-circle-left",disabled:C,onClick:function(){function v(){return f("cycle_ext")}return v}()}),(0,e.createComponentVNode)(2,t.Button,{width:"50%",content:"Cycle to Interior",icon:"arrow-circle-right",disabled:C,onClick:function(){function v(){return f("cycle_int")}return v}()})]}),(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Button,{width:"49%",content:"Force Exterior Door",icon:"exclamation-triangle",color:u==="open"?"red":C?"yellow":null,onClick:function(){function v(){return f("force_ext")}return v}()}),(0,e.createComponentVNode)(2,t.Button,{width:"50%",content:"Force Interior Door",icon:"exclamation-triangle",color:u==="open"?"red":C?"yellow":null,onClick:function(){function v(){return f("force_int")}return v}()})]})]})]})})}return k}()},52516:function(I,r,n){"use strict";r.__esModule=!0,r.FaxMachine=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=r.FaxMachine=function(){function V(y,S){var k=(0,a.useBackend)(S),h=k.act,l=k.data;return(0,e.createComponentVNode)(2,o.Window,{width:540,height:295,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Authorization",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"ID Card",children:(0,e.createComponentVNode)(2,t.Button,{icon:l.scan_name?"eject":"id-card",selected:l.scan_name,content:l.scan_name?l.scan_name:"-----",tooltip:l.scan_name?"Eject ID":"Insert ID",onClick:function(){function c(){return h("scan")}return c}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Authorize",children:(0,e.createComponentVNode)(2,t.Button,{icon:l.authenticated?"sign-out-alt":"id-card",selected:l.authenticated,disabled:l.nologin,content:l.realauth?"Log Out":"Log In",onClick:function(){function c(){return h("auth")}return c}()})})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Fax Menu",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Network",children:l.network}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Document",children:[(0,e.createComponentVNode)(2,t.Button,{icon:l.paper?"eject":"paperclip",disabled:!l.authenticated&&!l.paper,content:l.paper?l.paper:"-----",onClick:function(){function c(){return h("paper")}return c}()}),!!l.paper&&(0,e.createComponentVNode)(2,t.Button,{icon:"pencil-alt",content:"Rename",onClick:function(){function c(){return h("rename")}return c}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Sending To",children:(0,e.createComponentVNode)(2,t.Button,{icon:"print",content:l.destination?l.destination:"-----",disabled:!l.authenticated,onClick:function(){function c(){return h("dept")}return c}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Action",children:(0,e.createComponentVNode)(2,t.Button,{icon:"envelope",content:l.sendError?l.sendError:"Send",disabled:!l.paper||!l.destination||!l.authenticated||l.sendError,onClick:function(){function c(){return h("send")}return c}()})})]})})]})})}return V}()},24777:function(I,r,n){"use strict";r.__esModule=!0,r.FilingCabinet=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=r.FilingCabinet=function(){function V(y,S){var k=(0,a.useBackend)(S),h=k.act,l=k.data,c=k.config,f=l.contents,d=c.title;return(0,e.createComponentVNode)(2,o.Window,{width:400,height:300,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Contents",children:[!f&&(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,grow:!0,textAlign:"center",align:"center",color:"average",children:[(0,e.createComponentVNode)(2,t.Icon.Stack,{children:[(0,e.createComponentVNode)(2,t.Icon,{name:"folder-open",size:5,color:"gray"}),(0,e.createComponentVNode)(2,t.Icon,{name:"slash",size:5,color:"red"})]}),(0,e.createVNode)(1,"br"),"The ",d," is empty."]})}),!!f&&f.slice().map(function(i){return(0,e.createComponentVNode)(2,t.Stack,{mt:.5,className:"candystripe",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"80%",children:i.display_name}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-down",content:"Retrieve",onClick:function(){function s(){return h("retrieve",{index:i.index})}return s}()})})]},i)})]})})})})}return V}()},88361:function(I,r,n){"use strict";r.__esModule=!0,r.FloorPainter=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=function(S,k){var h=(0,a.useBackend)(k),l=h.act,c=h.data,f=S.image,d=S.isSelected,i=S.onSelect;return(0,e.createVNode)(1,"img",null,null,1,{src:"data:image/jpeg;base64,"+f,style:{"border-style":d&&"solid"||"none","border-width":"2px","border-color":"orange",padding:d&&"2px"||"4px"},onClick:i})},V=r.FloorPainter=function(){function y(S,k){var h=(0,a.useBackend)(k),l=h.act,c=h.data,f=c.availableStyles,d=c.selectedStyle,i=c.selectedDir,s=c.directionsPreview,u=c.allStylesPreview;return(0,e.createComponentVNode)(2,o.Window,{width:405,height:475,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Decal setup",children:[(0,e.createComponentVNode)(2,t.Flex,{children:[(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"chevron-left",onClick:function(){function C(){return l("cycle_style",{offset:-1})}return C}()})}),(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Dropdown,{options:f,selected:d,width:"150px",height:"20px",ml:"2px",mr:"2px",nochevron:!0,onSelected:function(){function C(v){return l("select_style",{style:v})}return C}()})}),(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"chevron-right",onClick:function(){function C(){return l("cycle_style",{offset:1})}return C}()})})]}),(0,e.createComponentVNode)(2,t.Box,{mt:"5px",mb:"5px",children:(0,e.createComponentVNode)(2,t.Flex,{overflowY:"auto",maxHeight:"220px",wrap:"wrap",children:f.map(function(C){return(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,m,{image:u[C],isSelected:d===C,onSelect:function(){function v(){return l("select_style",{style:C})}return v}()})},"{style}")})})}),(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Direction",children:(0,e.createComponentVNode)(2,t.Table,{style:{display:"inline"},children:["north","","south"].map(function(C){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[C+"west",C,C+"east"].map(function(v){return(0,e.createComponentVNode)(2,t.Table.Cell,{style:{"vertical-align":"middle","text-align":"center"},children:v===""?(0,e.createComponentVNode)(2,t.Icon,{name:"arrows-alt",size:3}):(0,e.createComponentVNode)(2,m,{image:s[v],isSelected:v===i,onSelect:function(){function g(){return l("select_direction",{direction:v})}return g}()})},v)})},C)})})})})]})})})}return y}()},70078:function(I,r,n){"use strict";r.__esModule=!0,r.GPS=void 0;var e=n(96524),a=n(36121),t=n(17899),o=n(24674),m=n(45493),V=function(d){return d?"("+d.join(", ")+")":"ERROR"},y=function(d,i){if(!(!d||!i)){if(d[2]!==i[2])return null;var s=Math.atan2(i[1]-d[1],i[0]-d[0]),u=Math.sqrt(Math.pow(i[1]-d[1],2)+Math.pow(i[0]-d[0],2));return{angle:(0,a.rad2deg)(s),distance:u}}},S=r.GPS=function(){function f(d,i){var s=(0,t.useBackend)(i),u=s.data,C=u.emped,v=u.active,g=u.area,p=u.position,N=u.saved;return(0,e.createComponentVNode)(2,m.Window,{width:400,height:600,children:(0,e.createComponentVNode)(2,m.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:C?(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,basis:"0",children:(0,e.createComponentVNode)(2,k,{emp:!0})}):(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,h)}),v?(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,l,{area:g,position:p})}),N&&(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,l,{title:"Saved Position",position:N})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,basis:"0",children:(0,e.createComponentVNode)(2,c,{height:"100%"})})],0):(0,e.createComponentVNode)(2,k)],0)})})})}return f}(),k=function(d,i){var s=d.emp;return(0,e.createComponentVNode)(2,o.Section,{fill:!0,children:(0,e.createComponentVNode)(2,o.Box,{width:"100%",height:"100%",color:"label",textAlign:"center",children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,align:"center",color:"label",children:[(0,e.createComponentVNode)(2,o.Icon,{name:s?"ban":"power-off",mb:"0.5rem",size:"5"}),(0,e.createVNode)(1,"br"),s?"ERROR: Device temporarily lost signal.":"Device is disabled."]})})})})},h=function(d,i){var s=(0,t.useBackend)(i),u=s.act,C=s.data,v=C.active,g=C.tag,p=C.same_z,N=(0,t.useLocalState)(i,"newTag",g),b=N[0],B=N[1];return(0,e.createComponentVNode)(2,o.Section,{title:"Settings",buttons:(0,e.createComponentVNode)(2,o.Button,{selected:v,icon:v?"toggle-on":"toggle-off",content:v?"On":"Off",onClick:function(){function L(){return u("toggle")}return L}()}),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Tag",children:[(0,e.createComponentVNode)(2,o.Input,{width:"5rem",value:g,onEnter:function(){function L(){return u("tag",{newtag:b})}return L}(),onInput:function(){function L(w,T){return B(T)}return L}()}),(0,e.createComponentVNode)(2,o.Button,{disabled:g===b,width:"20px",mb:"0",ml:"0.25rem",onClick:function(){function L(){return u("tag",{newtag:b})}return L}(),children:(0,e.createComponentVNode)(2,o.Icon,{name:"pen"})})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Range",children:(0,e.createComponentVNode)(2,o.Button,{selected:!p,icon:p?"compress":"expand",content:p?"Local Sector":"Global",onClick:function(){function L(){return u("same_z")}return L}()})})]})})},l=function(d,i){var s=d.title,u=d.area,C=d.position;return(0,e.createComponentVNode)(2,o.Section,{title:s||"Position",children:(0,e.createComponentVNode)(2,o.Box,{fontSize:"1.5rem",children:[u&&(0,e.createFragment)([u,(0,e.createVNode)(1,"br")],0),V(C)]})})},c=function(d,i){var s=(0,t.useBackend)(i),u=s.data,C=u.position,v=u.signals;return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Section,Object.assign({fill:!0,scrollable:!0,title:"Signals"},d,{children:(0,e.createComponentVNode)(2,o.Table,{children:v.map(function(g){return Object.assign({},g,y(C,g.position))}).map(function(g,p){return(0,e.createComponentVNode)(2,o.Table.Row,{backgroundColor:p%2===0&&"rgba(255, 255, 255, 0.05)",children:[(0,e.createComponentVNode)(2,o.Table.Cell,{width:"30%",verticalAlign:"middle",color:"label",p:"0.25rem",bold:!0,children:g.tag}),(0,e.createComponentVNode)(2,o.Table.Cell,{verticalAlign:"middle",color:"grey",children:g.area}),(0,e.createComponentVNode)(2,o.Table.Cell,{verticalAlign:"middle",collapsing:!0,children:g.distance!==void 0&&(0,e.createComponentVNode)(2,o.Box,{opacity:Math.max(1-Math.min(g.distance,100)/100,.5),children:[(0,e.createComponentVNode)(2,o.Icon,{name:g.distance>0?"arrow-right":"circle",rotation:-g.angle}),"\xA0",Math.floor(g.distance)+"m"]})}),(0,e.createComponentVNode)(2,o.Table.Cell,{verticalAlign:"middle",pr:"0.25rem",collapsing:!0,children:V(g.position)})]},p)})})})))}},92246:function(I,r,n){"use strict";r.__esModule=!0,r.GeneModder=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(99665),m=n(45493),V=r.GeneModder=function(){function d(i,s){var u=(0,a.useBackend)(s),C=u.data,v=C.has_seed;return(0,e.createComponentVNode)(2,m.Window,{width:500,height:650,children:(0,e.createComponentVNode)(2,m.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,k),(0,e.createComponentVNode)(2,o.ComplexModal,{maxWidth:"75%",maxHeight:"75%"}),v===0?(0,e.createComponentVNode)(2,S):(0,e.createComponentVNode)(2,y)]})})})}return d}(),y=function(i,s){var u=(0,a.useBackend)(s),C=u.act,v=u.data,g=v.disk;return(0,e.createComponentVNode)(2,t.Section,{title:"Genes",fill:!0,scrollable:!0,buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Insert Gene from Disk",disabled:!g||!g.can_insert||g.is_core,icon:"arrow-circle-down",onClick:function(){function p(){return C("insert")}return p}()}),children:[(0,e.createComponentVNode)(2,h),(0,e.createComponentVNode)(2,l),(0,e.createComponentVNode)(2,c)]})},S=function(i,s){return(0,e.createComponentVNode)(2,t.Section,{fill:!0,height:"85%",children:(0,e.createComponentVNode)(2,t.Stack,{height:"100%",children:(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,grow:"1",textAlign:"center",align:"center",color:"green",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"leaf",size:5,mb:"10px"}),(0,e.createVNode)(1,"br"),"The plant DNA manipulator is missing a seed."]})})})},k=function(i,s){var u=(0,a.useBackend)(s),C=u.act,v=u.data,g=v.has_seed,p=v.seed,N=v.has_disk,b=v.disk,B,L;return g?B=(0,e.createComponentVNode)(2,t.Stack.Item,{mb:"-6px",mt:"-4px",children:[(0,e.createVNode)(1,"img",null,null,1,{src:"data:image/jpeg;base64,"+p.image,style:{"vertical-align":"middle",width:"32px",margin:"-1px","margin-left":"-11px"}}),(0,e.createComponentVNode)(2,t.Button,{content:p.name,onClick:function(){function w(){return C("eject_seed")}return w}()}),(0,e.createComponentVNode)(2,t.Button,{ml:"3px",icon:"pen",tooltip:"Name Variant",onClick:function(){function w(){return C("variant_name")}return w}()})]}):B=(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{ml:3.3,content:"None",onClick:function(){function w(){return C("eject_seed")}return w}()})}),N?L=b.name:L="None",(0,e.createComponentVNode)(2,t.Section,{title:"Storage",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Plant Sample",children:B}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Data Disk",children:(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{ml:3.3,content:L,onClick:function(){function w(){return C("eject_disk")}return w}()})})})]})})},h=function(i,s){var u=(0,a.useBackend)(s),C=u.act,v=u.data,g=v.disk,p=v.core_genes;return(0,e.createComponentVNode)(2,t.Collapsible,{title:"Core Genes",open:!0,children:[p.map(function(N){return(0,e.createComponentVNode)(2,t.Stack,{py:"2px",className:"candystripe",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"100%",ml:"2px",children:N.name}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Extract",disabled:!(g!=null&&g.can_extract),icon:"save",onClick:function(){function b(){return C("extract",{id:N.id})}return b}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Replace",disabled:!N.is_type||!g.can_insert,icon:"arrow-circle-down",onClick:function(){function b(){return C("replace",{id:N.id})}return b}()})})]},N)})," ",(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Extract All",disabled:!(g!=null&&g.can_extract),icon:"save",onClick:function(){function N(){return C("bulk_extract_core")}return N}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Replace All",disabled:!(g!=null&&g.is_bulk_core),icon:"arrow-circle-down",onClick:function(){function N(){return C("bulk_replace_core")}return N}()})})]})]},"Core Genes")},l=function(i,s){var u=(0,a.useBackend)(s),C=u.data,v=C.reagent_genes,g=C.has_reagent;return(0,e.createComponentVNode)(2,f,{title:"Reagent Genes",gene_set:v,do_we_show:g})},c=function(i,s){var u=(0,a.useBackend)(s),C=u.data,v=C.trait_genes,g=C.has_trait;return(0,e.createComponentVNode)(2,f,{title:"Trait Genes",gene_set:v,do_we_show:g})},f=function(i,s){var u=i.title,C=i.gene_set,v=i.do_we_show,g=(0,a.useBackend)(s),p=g.act,N=g.data,b=N.disk;return(0,e.createComponentVNode)(2,t.Collapsible,{title:u,open:!0,children:v?C.map(function(B){return(0,e.createComponentVNode)(2,t.Stack,{py:"2px",className:"candystripe",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"100%",ml:"2px",children:B.name}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Extract",disabled:!(b!=null&&b.can_extract),icon:"save",onClick:function(){function L(){return p("extract",{id:B.id})}return L}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Remove",icon:"times",onClick:function(){function L(){return p("remove",{id:B.id})}return L}()})})]},B)}):(0,e.createComponentVNode)(2,t.Stack.Item,{children:"No Genes Detected"})},u)}},27163:function(I,r,n){"use strict";r.__esModule=!0,r.GenericCrewManifest=void 0;var e=n(96524),a=n(24674),t=n(45493),o=n(98444),m=r.GenericCrewManifest=function(){function V(y,S){return(0,e.createComponentVNode)(2,t.Window,{theme:"nologo",width:588,height:510,children:(0,e.createComponentVNode)(2,t.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,a.Section,{noTopPadding:!0,children:(0,e.createComponentVNode)(2,o.CrewManifest)})})})}return V}()},53808:function(I,r,n){"use strict";r.__esModule=!0,r.GhostHudPanel=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=r.GhostHudPanel=function(){function y(S,k){var h=(0,a.useBackend)(k),l=h.data,c=l.security,f=l.medical,d=l.diagnostic,i=l.radioactivity,s=l.ahud;return(0,e.createComponentVNode)(2,o.Window,{width:250,height:207,theme:"nologo",children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:[(0,e.createComponentVNode)(2,V,{label:"Medical",type:"medical",is_active:f}),(0,e.createComponentVNode)(2,V,{label:"Security",type:"security",is_active:c}),(0,e.createComponentVNode)(2,V,{label:"Diagnostic",type:"diagnostic",is_active:d}),(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,V,{label:"Radioactivity",type:"radioactivity",is_active:i,act_on:"rads_on",act_off:"rads_off"}),(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,V,{label:"Antag HUD",is_active:s,act_on:"ahud_on",act_off:"ahud_off"})]})})})}return y}(),V=function(S,k){var h=(0,a.useBackend)(k),l=h.act,c=S.label,f=S.type,d=f===void 0?null:f,i=S.is_active,s=S.act_on,u=s===void 0?"hud_on":s,C=S.act_off,v=C===void 0?"hud_off":C;return(0,e.createComponentVNode)(2,t.Flex,{pt:.3,color:"label",children:[(0,e.createComponentVNode)(2,t.Flex.Item,{pl:.5,align:"center",width:"80%",children:c}),(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Button,{mr:.6,content:i?"On":"Off",icon:i?"toggle-on":"toggle-off",selected:i,onClick:function(){function g(){return l(i?v:u,{hud_type:d})}return g}()})})]})}},32035:function(I,r,n){"use strict";r.__esModule=!0,r.GlandDispenser=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=r.GlandDispenser=function(){function V(y,S){var k=(0,a.useBackend)(S),h=k.act,l=k.data,c=l.glands,f=c===void 0?[]:c;return(0,e.createComponentVNode)(2,o.Window,{width:300,height:338,theme:"abductor",children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:f.map(function(d){return(0,e.createComponentVNode)(2,t.Button,{width:"60px",height:"60px",m:.75,textAlign:"center",fontSize:"17px",lineHeight:"55px",icon:"eject",backgroundColor:d.color,content:d.amount||"0",disabled:!d.amount,onClick:function(){function i(){return h("dispense",{gland_id:d.id})}return i}()},d.id)})})})})}return V}()},33004:function(I,r,n){"use strict";r.__esModule=!0,r.GravityGen=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=r.GravityGen=function(){function V(y,S){var k=(0,a.useBackend)(S),h=k.act,l=k.data,c=l.charging_state,f=l.charge_count,d=l.breaker,i=l.ext_power,s=function(){function C(v){return v>0?(0,e.createComponentVNode)(2,t.Box,{inline:!0,color:"average",children:["[ ",v===1?"Charging":"Discharging"," ]"]}):(0,e.createComponentVNode)(2,t.Box,{inline:!0,color:i?"good":"bad",children:["[ ",i?"Powered":"Unpowered"," ]"]})}return C}(),u=function(){function C(v){if(v>0)return(0,e.createComponentVNode)(2,t.NoticeBox,{danger:!0,p:1.5,children:[(0,e.createVNode)(1,"b",null,"WARNING:",16)," Radiation Detected!"]})}return C}();return(0,e.createComponentVNode)(2,o.Window,{width:350,height:170,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[u(c),(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Generator Status",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:d?"power-off":"times",content:d?"Online":"Offline",color:d?"green":"red",px:1.5,onClick:function(){function C(){return h("breaker")}return C}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power Status",color:i?"good":"bad",children:s(c)}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Gravity Charge",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:f/100,ranges:{good:[.9,1/0],average:[.5,.9],bad:[-1/0,.5]}})})]})})]})})})}return V}()},39775:function(I,r,n){"use strict";r.__esModule=!0,r.GuestPass=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=n(57842),V=r.GuestPass=function(){function y(S,k){var h=(0,a.useBackend)(k),l=h.act,c=h.data;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:690,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Tabs,{children:[(0,e.createComponentVNode)(2,t.Tabs.Tab,{icon:"id-card",selected:!c.showlogs,onClick:function(){function f(){return l("mode",{mode:0})}return f}(),children:"Issue Pass"}),(0,e.createComponentVNode)(2,t.Tabs.Tab,{icon:"scroll",selected:c.showlogs,onClick:function(){function f(){return l("mode",{mode:1})}return f}(),children:["Records (",c.issue_log.length,")"]})]})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Authorization",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"ID Card",children:(0,e.createComponentVNode)(2,t.Button,{icon:c.scan_name?"eject":"id-card",selected:c.scan_name,content:c.scan_name?c.scan_name:"-----",tooltip:c.scan_name?"Eject ID":"Insert ID",onClick:function(){function f(){return l("scan")}return f}()})})})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:!c.showlogs&&(0,e.createComponentVNode)(2,t.Section,{title:"Issue Guest Pass",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Issue To",children:(0,e.createComponentVNode)(2,t.Button,{icon:"pencil-alt",content:c.giv_name?c.giv_name:"-----",disabled:!c.scan_name,onClick:function(){function f(){return l("giv_name")}return f}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Reason",children:(0,e.createComponentVNode)(2,t.Button,{icon:"pencil-alt",content:c.reason?c.reason:"-----",disabled:!c.scan_name,onClick:function(){function f(){return l("reason")}return f}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Duration",children:(0,e.createComponentVNode)(2,t.Button,{icon:"pencil-alt",content:c.duration?c.duration:"-----",disabled:!c.scan_name,onClick:function(){function f(){return l("duration")}return f}()})})]})})}),!c.showlogs&&(c.scan_name?(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,m.AccessList,{sectionButtons:(0,e.createComponentVNode)(2,t.Button,{icon:"id-card",content:c.printmsg,disabled:!c.canprint,onClick:function(){function f(){return l("issue")}return f}()}),grantableList:c.grantableList,accesses:c.regions,selectedList:c.selectedAccess,accessMod:function(){function f(d){return l("access",{access:d})}return f}(),grantAll:function(){function f(){return l("grant_all")}return f}(),denyAll:function(){function f(){return l("clear_all")}return f}(),grantDep:function(){function f(d){return l("grant_region",{region:d})}return f}(),denyDep:function(){function f(d){return l("deny_region",{region:d})}return f}()})}):(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,grow:!0,fontSize:1.5,textAlign:"center",align:"center",color:"label",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"id-card",size:5,color:"gray",mb:5}),(0,e.createVNode)(1,"br"),"Please, insert ID Card"]})})})})),!!c.showlogs&&(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,m:0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Issuance Log",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"print",content:"Print",disabled:!c.scan_name,onClick:function(){function f(){return l("print")}return f}()}),children:!!c.issue_log.length&&(0,e.createComponentVNode)(2,t.LabeledList,{children:c.issue_log.map(function(f,d){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{children:f},d)})})||(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,grow:!0,fontSize:1.5,textAlign:"center",align:"center",color:"label",children:[(0,e.createComponentVNode)(2,t.Icon.Stack,{children:[(0,e.createComponentVNode)(2,t.Icon,{name:"scroll",size:5,color:"gray"}),(0,e.createComponentVNode)(2,t.Icon,{name:"slash",size:5,color:"red"})]}),(0,e.createVNode)(1,"br"),"No logs"]})})})})]})})})}return y}()},22480:function(I,r,n){"use strict";r.__esModule=!0,r.HandheldChemDispenser=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=[1,5,10,20,30,50],V=null,y=r.HandheldChemDispenser=function(){function h(l,c){return(0,e.createComponentVNode)(2,o.Window,{width:390,height:430,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,S),(0,e.createComponentVNode)(2,k)]})})})}return h}(),S=function(l,c){var f=(0,a.useBackend)(c),d=f.act,i=f.data,s=i.amount,u=i.energy,C=i.maxEnergy,v=i.mode;return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Settings",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Energy",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:u,minValue:0,maxValue:C,ranges:{good:[C*.5,1/0],average:[C*.25,C*.5],bad:[-1/0,C*.25]},children:[u," / ",C," Units"]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Amount",verticalAlign:"middle",children:(0,e.createComponentVNode)(2,t.Stack,{children:m.map(function(g,p){return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,width:"15%",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"cog",selected:s===g,content:g,onClick:function(){function N(){return d("amount",{amount:g})}return N}()})},p)})})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Mode",verticalAlign:"middle",children:(0,e.createComponentVNode)(2,t.Stack,{justify:"space-between",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"cog",selected:v==="dispense",content:"Dispense",m:"0",width:"32%",onClick:function(){function g(){return d("mode",{mode:"dispense"})}return g}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"cog",selected:v==="remove",content:"Remove",m:"0",width:"32%",onClick:function(){function g(){return d("mode",{mode:"remove"})}return g}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"cog",selected:v==="isolate",content:"Isolate",m:"0",width:"32%",onClick:function(){function g(){return d("mode",{mode:"isolate"})}return g}()})]})})]})})})},k=function(l,c){for(var f=(0,a.useBackend)(c),d=f.act,i=f.data,s=i.chemicals,u=s===void 0?[]:s,C=i.current_reagent,v=[],g=0;g<(u.length+1)%3;g++)v.push(!0);return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,height:"18%",children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:i.glass?"Drink Selector":"Chemical Selector",children:[u.map(function(p,N){return(0,e.createComponentVNode)(2,t.Button,{width:"32%",icon:"arrow-circle-down",overflow:"hidden",textOverflow:"ellipsis",selected:C===p.id,content:p.title,style:{"margin-left":"2px"},onClick:function(){function b(){return d("dispense",{reagent:p.id})}return b}()},N)}),v.map(function(p,N){return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:"1",basis:"25%"},N)})]})})}},22616:function(I,r,n){"use strict";r.__esModule=!0,r.HealthSensor=void 0;var e=n(96524),a=n(36121),t=n(17899),o=n(24674),m=n(45493),V=r.HealthSensor=function(){function S(k,h){var l=(0,t.useBackend)(h),c=l.act,f=l.data,d=f.on,i=f.user_health,s=f.minHealth,u=f.maxHealth,C=f.alarm_health;return(0,e.createComponentVNode)(2,m.Window,{width:300,height:125,children:(0,e.createComponentVNode)(2,m.Window.Content,{children:(0,e.createComponentVNode)(2,o.Section,{children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Scanning",children:(0,e.createComponentVNode)(2,o.Button,{icon:"power-off",content:d?"On":"Off",color:d?null:"red",selected:d,onClick:function(){function v(){return c("scan_toggle")}return v}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Health activation",children:(0,e.createComponentVNode)(2,o.NumberInput,{animate:!0,step:2,stepPixelSize:6,minValue:s,maxValue:u,value:C,format:function(){function v(g){return(0,a.toFixed)(g,1)}return v}(),width:"80px",onDrag:function(){function v(g,p){return c("alarm_health",{alarm_health:p})}return v}()})}),i!==null&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"User health",children:(0,e.createComponentVNode)(2,o.Box,{color:y(i),bold:i>=100,children:(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:i})})})]})})})})}return S}(),y=function(k){return k>50?"green":k>0?"orange":"red"}},76861:function(I,r,n){"use strict";r.__esModule=!0,r.Holodeck=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=r.Holodeck=function(){function y(S,k){var h=(0,a.useBackend)(k),l=h.act,c=h.data,f=(0,a.useLocalState)(k,"currentDeck",""),d=f[0],i=f[1],s=(0,a.useLocalState)(k,"showReload",!1),u=s[0],C=s[1],v=c.decks,g=c.ai_override,p=c.emagged,N=function(){function b(B){l("select_deck",{deck:B}),i(B),C(!0),setTimeout(function(){C(!1)},3e3)}return b}();return(0,e.createComponentVNode)(2,o.Window,{width:400,height:320,children:[u&&(0,e.createComponentVNode)(2,V),(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Holodeck Control System",children:(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createVNode)(1,"b",null,"Currently Loaded Program:",16)," ",d]})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Available Programs",children:[v.map(function(b){return(0,e.createComponentVNode)(2,t.Button,{width:15.5,color:"transparent",content:b,selected:b===d,onClick:function(){function B(){return N(b)}return B}()},b)}),(0,e.createVNode)(1,"hr",null,null,1,{color:"gray"}),(0,e.createComponentVNode)(2,t.LabeledList,{children:[!!g&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Override Protocols",children:(0,e.createComponentVNode)(2,t.Button,{content:p?"Turn On":"Turn Off",color:p?"good":"bad",onClick:function(){function b(){return l("ai_override")}return b}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Safety Protocols",children:(0,e.createComponentVNode)(2,t.Box,{color:p?"bad":"good",children:[p?"Off":"On",!!p&&(0,e.createComponentVNode)(2,t.Button,{ml:9.5,width:15.5,color:"red",content:"Wildlife Simulation",onClick:function(){function b(){return l("wildlifecarp")}return b}()})]})})]})]})})]})})]})}return y}(),V=function(S,k){return(0,e.createComponentVNode)(2,t.Dimmer,{textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"spinner",size:"5",spin:!0}),(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Box,{color:"white",children:(0,e.createVNode)(1,"h1",null,"\xA0Recalibrating projection apparatus.\xA0",16)}),(0,e.createComponentVNode)(2,t.Box,{color:"label",children:(0,e.createVNode)(1,"h3",null,"Please, wait for 3 seconds.",16)})]})}},96729:function(I,r,n){"use strict";r.__esModule=!0,r.Instrument=void 0;var e=n(96524),a=n(36121),t=n(17899),o=n(24674),m=n(45493),V=r.Instrument=function(){function l(c,f){var d=(0,t.useBackend)(f),i=d.act,s=d.data;return(0,e.createComponentVNode)(2,m.Window,{width:600,height:505,children:[(0,e.createComponentVNode)(2,y),(0,e.createComponentVNode)(2,m.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,S),(0,e.createComponentVNode)(2,h)]})})]})}return l}(),y=function(c,f){var d=(0,t.useBackend)(f),i=d.act,s=d.data,u=s.help;if(u)return(0,e.createComponentVNode)(2,o.Modal,{maxWidth:"75%",height:window.innerHeight*.75+"px",mx:"auto",py:"0",px:"0.5rem",children:(0,e.createComponentVNode)(2,o.Section,{height:"100%",title:"Help",level:"2",overflow:"auto",children:(0,e.createComponentVNode)(2,o.Box,{px:"0.5rem",mt:"-0.5rem",children:[(0,e.createVNode)(1,"h1",null,"Making a Song",16),(0,e.createVNode)(1,"p",null,[(0,e.createTextVNode)("Lines are a series of chords, separated by commas\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"(,)"}),(0,e.createTextVNode)(", each with notes separated by hyphens\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"(-)"}),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("Every note in a chord will play together, with the chord timed by the\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"tempo"}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("as defined above.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createTextVNode)("Notes are played by the\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"good",children:"names of the note"}),(0,e.createTextVNode)(", and optionally, the\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"average",children:"accidental"}),(0,e.createTextVNode)(", and/or the"),(0,e.createTextVNode)(" "),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"bad",children:"octave number"}),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("By default, every note is\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"average",children:"natural"}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("and in\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"bad",children:"octave 3"}),(0,e.createTextVNode)(". Defining a different state for either is remembered for each"),(0,e.createTextVNode)(" "),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"good",children:"note"}),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"ul",null,[(0,e.createVNode)(1,"li",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"Example:"}),(0,e.createTextVNode)("\xA0"),(0,e.createVNode)(1,"i",null,"C,D,E,F,G,A,B",16),(0,e.createTextVNode)(" will play a\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"good",children:"C"}),(0,e.createTextVNode)("\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"average",children:"major"}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("scale.")],0),(0,e.createVNode)(1,"li",null,[(0,e.createTextVNode)("After a note has an\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"average",children:"accidental"}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("or\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"bad",children:"octave"}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("placed, it will be remembered:\xA0"),(0,e.createVNode)(1,"i",null,"C,C4,C#,C3",16),(0,e.createTextVNode)(" is "),(0,e.createVNode)(1,"i",null,"C3,C4,C4#,C3#",16)],0)],4)],0),(0,e.createVNode)(1,"p",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"Chords"}),(0,e.createTextVNode)("\xA0can be played simply by seperating each note with a hyphen:"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,"A-C#,Cn-E,E-G#,Gn-B",16),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("A"),(0,e.createTextVNode)(" "),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"pause"}),(0,e.createTextVNode)("\xA0may be denoted by an empty chord: "),(0,e.createVNode)(1,"i",null,"C,E,,C,G",16),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("To make a chord be a different time, end it with /x, where the chord length will be length defined by\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"tempo / x"}),(0,e.createTextVNode)(",\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"eg:"}),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,"C,G/2,E/4",16),(0,e.createTextVNode)(".")],0),(0,e.createVNode)(1,"p",null,[(0,e.createTextVNode)("Combined, an example line is: "),(0,e.createVNode)(1,"i",null,"E-E4/4,F#/2,G#/8,B/8,E3-E4/4",16),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"ul",null,[(0,e.createVNode)(1,"li",null,"Lines may be up to 300 characters.",16),(0,e.createVNode)(1,"li",null,"A song may only contain up to 1,000 lines.",16)],4)],4),(0,e.createVNode)(1,"p",null,[(0,e.createTextVNode)("Lines are a series of chords, separated by commas\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"(,)"}),(0,e.createTextVNode)(", each with notes separated by hyphens\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"(-)"}),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("Every note in a chord will play together, with the chord timed by the\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"tempo"}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("as defined above.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createTextVNode)("Notes are played by the\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"good",children:"names of the note"}),(0,e.createTextVNode)(", and optionally, the\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"average",children:"accidental"}),(0,e.createTextVNode)(", and/or the"),(0,e.createTextVNode)(" "),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"bad",children:"octave number"}),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("By default, every note is\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"average",children:"natural"}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("and in\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"bad",children:"octave 3"}),(0,e.createTextVNode)(". Defining a different state for either is remembered for each"),(0,e.createTextVNode)(" "),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"good",children:"note"}),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"ul",null,[(0,e.createVNode)(1,"li",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"Example:"}),(0,e.createTextVNode)("\xA0"),(0,e.createVNode)(1,"i",null,"C,D,E,F,G,A,B",16),(0,e.createTextVNode)(" will play a\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"good",children:"C"}),(0,e.createTextVNode)("\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"average",children:"major"}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("scale.")],0),(0,e.createVNode)(1,"li",null,[(0,e.createTextVNode)("After a note has an\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"average",children:"accidental"}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("or\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"bad",children:"octave"}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("placed, it will be remembered:\xA0"),(0,e.createVNode)(1,"i",null,"C,C4,C#,C3",16),(0,e.createTextVNode)(" is "),(0,e.createVNode)(1,"i",null,"C3,C4,C4#,C3#",16)],0)],4)],0),(0,e.createVNode)(1,"p",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"Chords"}),(0,e.createTextVNode)("\xA0can be played simply by seperating each note with a hyphen:"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,"A-C#,Cn-E,E-G#,Gn-B",16),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("A"),(0,e.createTextVNode)(" "),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"pause"}),(0,e.createTextVNode)("\xA0may be denoted by an empty chord: "),(0,e.createVNode)(1,"i",null,"C,E,,C,G",16),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("To make a chord be a different time, end it with /x, where the chord length will be length defined by\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"tempo / x"}),(0,e.createTextVNode)(",\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"eg:"}),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,"C,G/2,E/4",16),(0,e.createTextVNode)(".")],0),(0,e.createVNode)(1,"p",null,[(0,e.createTextVNode)("Combined, an example line is: "),(0,e.createVNode)(1,"i",null,"E-E4/4,F#/2,G#/8,B/8,E3-E4/4",16),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"ul",null,[(0,e.createVNode)(1,"li",null,"Lines may be up to 300 characters.",16),(0,e.createVNode)(1,"li",null,"A song may only contain up to 1,000 lines.",16)],4)],4),(0,e.createVNode)(1,"h1",null,"Instrument Advanced Settings",16),(0,e.createVNode)(1,"ul",null,[(0,e.createVNode)(1,"li",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"label",children:"Type:"}),(0,e.createTextVNode)("\xA0Whether the instrument is legacy or synthesized."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("Legacy instruments have a collection of sounds that are selectively used depending on the note to play."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("Synthesized instruments use a base sound and change its pitch to match the note to play.")],4),(0,e.createVNode)(1,"li",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"label",children:"Current:"}),(0,e.createTextVNode)("\xA0Which instrument sample to play. Some instruments can be tuned to play different samples. Experiment!")],4),(0,e.createVNode)(1,"li",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"label",children:"Note Shift/Note Transpose:"}),(0,e.createTextVNode)("\xA0The pitch to apply to all notes of the song.")],4),(0,e.createVNode)(1,"li",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"label",children:"Sustain Mode:"}),(0,e.createTextVNode)("\xA0How a played note fades out."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("Linear sustain means a note will fade out at a constant rate."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("Exponential sustain means a note will fade out at an exponential rate, sounding smoother.")],4),(0,e.createVNode)(1,"li",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"label",children:"Volume Dropoff Threshold:"}),(0,e.createTextVNode)("\xA0The volume threshold at which a note is fully stopped.")],4),(0,e.createVNode)(1,"li",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"label",children:"Sustain indefinitely last held note:"}),(0,e.createTextVNode)("\xA0Whether the last note should be sustained indefinitely.")],4)],4),(0,e.createComponentVNode)(2,o.Button,{color:"grey",content:"Close",onClick:function(){function C(){return i("help")}return C}()})]})})})},S=function(c,f){var d=(0,t.useBackend)(f),i=d.act,s=d.data,u=s.lines,C=s.playing,v=s.repeat,g=s.maxRepeats,p=s.tempo,N=s.minTempo,b=s.maxTempo,B=s.tickLag,L=s.volume,w=s.minVolume,T=s.maxVolume,x=s.ready;return(0,e.createComponentVNode)(2,o.Section,{title:"Instrument",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{icon:"info",content:"Help",onClick:function(){function A(){return i("help")}return A}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"file",content:"New",onClick:function(){function A(){return i("newsong")}return A}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"upload",content:"Import",onClick:function(){function A(){return i("import")}return A}()})],4),children:[(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Playback",children:[(0,e.createComponentVNode)(2,o.Button,{selected:C,disabled:u.length===0||v<0,icon:"play",content:"Play",onClick:function(){function A(){return i("play")}return A}()}),(0,e.createComponentVNode)(2,o.Button,{disabled:!C,icon:"stop",content:"Stop",onClick:function(){function A(){return i("stop")}return A}()})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Repeat",children:(0,e.createComponentVNode)(2,o.Slider,{animated:!0,minValue:0,maxValue:g,value:v,stepPixelSize:59,onChange:function(){function A(E,M){return i("repeat",{new:M})}return A}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Tempo",children:(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,o.Button,{disabled:p>=b,content:"-",as:"span",mr:"0.5rem",onClick:function(){function A(){return i("tempo",{new:p+B})}return A}()}),(0,a.round)(600/p)," BPM",(0,e.createComponentVNode)(2,o.Button,{disabled:p<=N,content:"+",as:"span",ml:"0.5rem",onClick:function(){function A(){return i("tempo",{new:p-B})}return A}()})]})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Volume",children:(0,e.createComponentVNode)(2,o.Slider,{animated:!0,minValue:w,maxValue:T,value:L,stepPixelSize:6,onDrag:function(){function A(E,M){return i("setvolume",{new:M})}return A}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Status",children:x?(0,e.createComponentVNode)(2,o.Box,{color:"good",children:"Ready"}):(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"Instrument Definition Error!"})})]}),(0,e.createComponentVNode)(2,k)]})},k=function(c,f){var d=(0,t.useBackend)(f),i=d.act,s=d.data,u=s.allowedInstrumentNames,C=s.instrumentLoaded,v=s.instrument,g=s.canNoteShift,p=s.noteShift,N=s.noteShiftMin,b=s.noteShiftMax,B=s.sustainMode,L=s.sustainLinearDuration,w=s.sustainExponentialDropoff,T=s.legacy,x=s.sustainDropoffVolume,A=s.sustainHeldNote,E,M;return B===1?(E="Linear",M=(0,e.createComponentVNode)(2,o.Slider,{minValue:.1,maxValue:5,value:L,step:.5,stepPixelSize:85,format:function(){function D(P){return(0,a.round)(P*100)/100+" seconds"}return D}(),onChange:function(){function D(P,R){return i("setlinearfalloff",{new:R/10})}return D}()})):B===2&&(E="Exponential",M=(0,e.createComponentVNode)(2,o.Slider,{minValue:1.025,maxValue:10,value:w,step:.01,format:function(){function D(P){return(0,a.round)(P*1e3)/1e3+"% per decisecond"}return D}(),onChange:function(){function D(P,R){return i("setexpfalloff",{new:R})}return D}()})),u.sort(),(0,e.createComponentVNode)(2,o.Box,{my:-1,children:(0,e.createComponentVNode)(2,o.Collapsible,{mt:"1rem",mb:"0",title:"Advanced",children:(0,e.createComponentVNode)(2,o.Section,{mt:-1,children:[(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Type",children:T?"Legacy":"Synthesized"}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Current",children:C?(0,e.createComponentVNode)(2,o.Dropdown,{options:u,selected:v,width:"50%",onSelected:function(){function D(P){return i("switchinstrument",{name:P})}return D}()}):(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"None!"})}),!!(!T&&g)&&(0,e.createFragment)([(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Note Shift/Note Transpose",children:(0,e.createComponentVNode)(2,o.Slider,{minValue:N,maxValue:b,value:p,stepPixelSize:2,format:function(){function D(P){return P+" keys / "+(0,a.round)(P/12*100)/100+" octaves"}return D}(),onChange:function(){function D(P,R){return i("setnoteshift",{new:R})}return D}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Sustain Mode",children:[(0,e.createComponentVNode)(2,o.Dropdown,{options:["Linear","Exponential"],selected:E,onSelected:function(){function D(P){return i("setsustainmode",{new:P})}return D}()}),M]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Volume Dropoff Threshold",children:(0,e.createComponentVNode)(2,o.Slider,{animated:!0,minValue:.01,maxValue:100,value:x,stepPixelSize:6,onChange:function(){function D(P,R){return i("setdropoffvolume",{new:R})}return D}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Sustain indefinitely last held note",children:(0,e.createComponentVNode)(2,o.Button,{selected:A,icon:A?"toggle-on":"toggle-off",content:A?"Yes":"No",onClick:function(){function D(){return i("togglesustainhold")}return D}()})})],4)]}),(0,e.createComponentVNode)(2,o.Button,{icon:"redo",content:"Reset to Default",mt:"0.5rem",onClick:function(){function D(){return i("reset")}return D}()})]})})})},h=function(c,f){var d=(0,t.useBackend)(f),i=d.act,s=d.data,u=s.playing,C=s.lines,v=s.editing;return(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"Editor",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{disabled:!v||u,icon:"plus",content:"Add Line",onClick:function(){function g(){return i("newline",{line:C.length+1})}return g}()}),(0,e.createComponentVNode)(2,o.Button,{selected:!v,icon:v?"chevron-up":"chevron-down",onClick:function(){function g(){return i("edit")}return g}()})],4),children:!!v&&(C.length>0?(0,e.createComponentVNode)(2,o.LabeledList,{children:C.map(function(g,p){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:p+1,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{disabled:u,icon:"pen",onClick:function(){function N(){return i("modifyline",{line:p+1})}return N}()}),(0,e.createComponentVNode)(2,o.Button,{disabled:u,icon:"trash",onClick:function(){function N(){return i("deleteline",{line:p+1})}return N}()})],4),children:g},p)})}):(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"Song is empty."}))})}},99366:function(I,r,n){"use strict";r.__esModule=!0,r.Jukebox=void 0;var e=n(96524),a=n(50640),t=n(74041),o=n(17899),m=n(24674),V=n(45493),y=r.Jukebox=function(){function h(l,c){var f=(0,o.useBackend)(c),d=f.act,i=f.data,s=i.active,u=i.looping,C=i.track_selected,v=i.volume,g=i.max_volume,p=i.songs,N=i.startTime,b=i.endTime,B=i.worldTime,L=i.need_coin,w=i.payment,T=i.advanced_admin,x=35,A=!w&&L&&!T,E=(0,t.flow)([(0,a.sortBy)(function(F){return F.name})])(p),M=p.find(function(F){return F.name===C}),D=E.length,P=M?E.findIndex(function(F){return F.name===M.name})+1:0,R=function(){function F(W){var _=Math.floor(W/60),K=W%60,H=String(_).padStart(2,"0")+":"+String(K).padStart(2,"0");return H}return F}(),j=(0,e.createComponentVNode)(2,m.Box,{textAlign:"center",children:[s?u?"\u221E":R(Math.round((B-N)/10)):u?"\u221E":R(M.length)," ","/ ",u?"\u221E":R(M.length)]});return(0,e.createComponentVNode)(2,V.Window,{width:350,height:435,title:"\u041C\u0443\u0437\u044B\u043A\u0430\u043B\u044C\u043D\u044B\u0439 \u0430\u0432\u0442\u043E\u043C\u0430\u0442",children:[A?(0,e.createComponentVNode)(2,k):null,(0,e.createComponentVNode)(2,V.Window.Content,{children:(0,e.createComponentVNode)(2,m.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,m.Stack,{children:[(0,e.createComponentVNode)(2,m.Stack.Item,{grow:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,m.Section,{fill:!0,title:"\u041F\u0440\u043E\u0438\u0433\u0440\u044B\u0432\u0430\u0442\u0435\u043B\u044C",children:(0,e.createComponentVNode)(2,m.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,m.Stack.Item,{bold:!0,maxWidth:"240px",children:M.name.length>x?(0,e.createVNode)(1,"marquee",null,M.name,0):M.name}),(0,e.createComponentVNode)(2,m.Stack,{fill:!0,mt:1.5,children:[(0,e.createComponentVNode)(2,m.Stack.Item,{grow:!0,basis:"0",children:(0,e.createComponentVNode)(2,m.Button,{fluid:!0,icon:s?"pause":"play",color:"transparent",content:s?"\u0421\u0442\u043E\u043F":"\u0421\u0442\u0430\u0440\u0442",selected:s,onClick:function(){function F(){return d("toggle")}return F}()})}),(0,e.createComponentVNode)(2,m.Stack.Item,{grow:!0,basis:"0",children:(0,e.createComponentVNode)(2,m.Button.Checkbox,{fluid:!0,icon:"undo",content:"\u041F\u043E\u0432\u0442\u043E\u0440",disabled:s||L&&!T,tooltip:L&&!T?"\u0412\u044B \u043D\u0435 \u043C\u043E\u0436\u0435\u0442\u0435 \u0432\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u043F\u043E\u0432\u0442\u043E\u0440 \u0437\u0430 \u043C\u043E\u043D\u0435\u0442\u043A\u0443":null,checked:u,onClick:function(){function F(){return d("loop",{looping:!u})}return F}()})})]}),(0,e.createComponentVNode)(2,m.Stack.Item,{children:(0,e.createComponentVNode)(2,m.ProgressBar.Countdown,{start:N,current:u?b:B,end:b,children:j})})]})})}),(0,e.createComponentVNode)(2,m.Stack.Item,{children:(0,e.createComponentVNode)(2,m.Section,{children:[s?(0,e.createComponentVNode)(2,S):null,(0,e.createComponentVNode)(2,m.Stack,{fill:!0,mb:1.5,children:[(0,e.createComponentVNode)(2,m.Stack.Item,{grow:!0,m:0,children:(0,e.createComponentVNode)(2,m.Button,{color:"transparent",icon:"fast-backward",onClick:function(){function F(){return d("set_volume",{volume:"min"})}return F}()})}),(0,e.createComponentVNode)(2,m.Stack.Item,{m:0,children:(0,e.createComponentVNode)(2,m.Button,{color:"transparent",icon:"undo",onClick:function(){function F(){return d("set_volume",{volume:"reset"})}return F}()})}),(0,e.createComponentVNode)(2,m.Stack.Item,{grow:!0,m:0,textAlign:"right",children:(0,e.createComponentVNode)(2,m.Button,{color:"transparent",icon:"fast-forward",onClick:function(){function F(){return d("set_volume",{volume:"max"})}return F}()})})]}),(0,e.createComponentVNode)(2,m.Stack.Item,{textAlign:"center",textColor:"label",children:[(0,e.createComponentVNode)(2,m.Knob,{size:2,color:v<=25?"green":v<=50?"":v<=75?"orange":"red",value:v,unit:"%",minValue:0,maxValue:g,step:1,stepPixelSize:5,onDrag:function(){function F(W,_){return d("set_volume",{volume:_})}return F}()}),"Volume"]})]})})]}),(0,e.createComponentVNode)(2,m.Stack.Item,{grow:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,m.Section,{fill:!0,scrollable:!0,title:"\u0414\u043E\u0441\u0442\u0443\u043F\u043D\u044B\u0435 \u0442\u0440\u0435\u043A\u0438",buttons:(0,e.createComponentVNode)(2,m.Button,{bold:!0,icon:"random",color:"transparent",content:P+"/"+D,tooltip:"\u0412\u044B\u0431\u0440\u0430\u0442\u044C \u0441\u043B\u0443\u0447\u0430\u0439\u043D\u044B\u0439 \u0442\u0440\u0435\u043A",tooltipPosition:"top-end",onClick:function(){function F(){var W=Math.floor(Math.random()*D),_=E[W];d("select_track",{track:_.name})}return F}()}),children:E.map(function(F){return(0,e.createComponentVNode)(2,m.Stack.Item,{mb:.5,textAlign:"left",children:(0,e.createComponentVNode)(2,m.Button,{fluid:!0,selected:M.name===F.name,color:"translucent",content:(0,e.createComponentVNode)(2,m.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,m.Stack.Item,{grow:!0,children:F.name}),(0,e.createComponentVNode)(2,m.Stack.Item,{children:R(F.length)})]}),onClick:function(){function W(){d("select_track",{track:F.name})}return W}()})},F.name)})})})]})})]})}return h}(),S=function(){return(0,e.createComponentVNode)(2,m.Dimmer,{textAlign:"center",children:[(0,e.createComponentVNode)(2,m.Icon,{name:"music",size:"3",color:"gray",mb:1}),(0,e.createComponentVNode)(2,m.Box,{color:"label",bold:!0,children:"\u0418\u0433\u0440\u0430\u0435\u0442 \u043C\u0443\u0437\u044B\u043A\u0430"})]})},k=function(){return(0,e.createComponentVNode)(2,m.Dimmer,{textAlign:"center",children:[(0,e.createComponentVNode)(2,m.Icon,{name:"coins",size:"6",color:"gold",mr:1}),(0,e.createComponentVNode)(2,m.Box,{color:"label",bold:!0,mt:5,fontSize:2,children:"\u0412\u0441\u0442\u0430\u0432\u044C\u0442\u0435 \u043C\u043E\u043D\u0435\u0442\u043A\u0443"})]})}},53385:function(I,r,n){"use strict";r.__esModule=!0,r.KeycardAuth=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=r.KeycardAuth=function(){function V(y,S){var k=(0,a.useBackend)(S),h=k.act,l=k.data,c=(0,e.createComponentVNode)(2,t.Section,{title:"Keycard Authentication Device",children:(0,e.createComponentVNode)(2,t.Box,{children:"This device is used to trigger certain high security events. It requires the simultaneous swipe of two high-level ID cards."})});if(!l.swiping&&!l.busy)return(0,e.createComponentVNode)(2,o.Window,{width:540,height:280,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[c,(0,e.createComponentVNode)(2,t.Section,{title:"Choose Action",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Red Alert",children:(0,e.createComponentVNode)(2,t.Button,{icon:"exclamation-triangle",disabled:!l.redAvailable,onClick:function(){function d(){return h("triggerevent",{triggerevent:"Red Alert"})}return d}(),content:"Red Alert"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"ERT",children:(0,e.createComponentVNode)(2,t.Button,{icon:"broadcast-tower",onClick:function(){function d(){return h("triggerevent",{triggerevent:"Emergency Response Team"})}return d}(),content:"Call ERT"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Emergency Maint Access",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"door-open",onClick:function(){function d(){return h("triggerevent",{triggerevent:"Grant Emergency Maintenance Access"})}return d}(),content:"Grant"}),(0,e.createComponentVNode)(2,t.Button,{icon:"door-closed",onClick:function(){function d(){return h("triggerevent",{triggerevent:"Revoke Emergency Maintenance Access"})}return d}(),content:"Revoke"})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Emergency Station-Wide Access",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"door-open",onClick:function(){function d(){return h("triggerevent",{triggerevent:"Activate Station-Wide Emergency Access"})}return d}(),content:"Grant"}),(0,e.createComponentVNode)(2,t.Button,{icon:"door-closed",onClick:function(){function d(){return h("triggerevent",{triggerevent:"Deactivate Station-Wide Emergency Access"})}return d}(),content:"Revoke"})]})]})})]})});var f=(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Waiting for YOU to swipe your ID..."});return!l.hasSwiped&&!l.ertreason&&l.event==="Emergency Response Team"?f=(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Fill out the reason for your ERT request."}):l.hasConfirm?f=(0,e.createComponentVNode)(2,t.Box,{color:"green",children:"Request Confirmed!"}):l.isRemote?f=(0,e.createComponentVNode)(2,t.Box,{color:"orange",children:"Swipe your card to CONFIRM the remote request."}):l.hasSwiped&&(f=(0,e.createComponentVNode)(2,t.Box,{color:"orange",children:"Waiting for second person to confirm..."})),(0,e.createComponentVNode)(2,o.Window,{width:540,height:265,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[c,l.event==="Emergency Response Team"&&(0,e.createComponentVNode)(2,t.Section,{title:"Reason for ERT Call",children:(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{color:l.ertreason?"":"red",icon:l.ertreason?"check":"pencil-alt",content:l.ertreason?l.ertreason:"-----",disabled:l.busy,onClick:function(){function d(){return h("ert")}return d}()})})}),(0,e.createComponentVNode)(2,t.Section,{title:l.event,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-circle-left",content:"Back",disabled:l.busy||l.hasConfirm,onClick:function(){function d(){return h("reset")}return d}()}),children:f})]})})}return V}()},58553:function(I,r,n){"use strict";r.__esModule=!0,r.KitchenMachine=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=n(75201),V=r.KitchenMachine=function(){function S(k,h){var l=(0,a.useBackend)(h),c=l.data,f=l.config,d=c.ingredients,i=c.operating,s=f.title;return(0,e.createComponentVNode)(2,o.Window,{width:400,height:320,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,m.Operating,{operating:i,name:s}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,y)}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Ingredients",children:(0,e.createComponentVNode)(2,t.Table,{className:"Ingredient__Table",children:d.map(function(u){return(0,e.createComponentVNode)(2,t.Table.Row,{tr:5,children:[(0,e.createVNode)(1,"td",null,(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:u.name}),2),(0,e.createVNode)(1,"td",null,(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,textAlign:"center",children:[u.amount," ",u.units]}),2)]},u.name)})})})})]})})})}return S}(),y=function(k,h){var l=(0,a.useBackend)(h),c=l.act,f=l.data,d=f.inactive,i=f.tooltip;return(0,e.createComponentVNode)(2,t.Section,{title:"Controls",children:(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"50%",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"power-off",disabled:d,tooltip:d?i:"",tooltipPosition:"bottom",content:"Activate",onClick:function(){function s(){return c("cook")}return s}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:"50%",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"eject",disabled:d,tooltip:d?i:"",tooltipPosition:"bottom",content:"Eject Contents",onClick:function(){function s(){return c("eject")}return s}()})})]})})}},14047:function(I,r,n){"use strict";r.__esModule=!0,r.LawManager=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=r.LawManager=function(){function k(h,l){var c=(0,a.useBackend)(l),f=c.act,d=c.data,i=d.isAdmin,s=d.isSlaved,u=d.isMalf,C=d.isAIMalf,v=d.view;return(0,e.createComponentVNode)(2,o.Window,{width:800,height:u?620:365,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[!!(i&&s)&&(0,e.createComponentVNode)(2,t.NoticeBox,{children:["This unit is slaved to ",s,"."]}),!!(u||C)&&(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Button,{content:"Law Management",selected:v===0,onClick:function(){function g(){return f("set_view",{set_view:0})}return g}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Lawsets",selected:v===1,onClick:function(){function g(){return f("set_view",{set_view:1})}return g}()})]}),v===0&&(0,e.createComponentVNode)(2,V),v===1&&(0,e.createComponentVNode)(2,y)]})})}return k}(),V=function(h,l){var c=(0,a.useBackend)(l),f=c.act,d=c.data,i=d.has_zeroth_laws,s=d.zeroth_laws,u=d.has_ion_laws,C=d.ion_laws,v=d.ion_law_nr,g=d.has_inherent_laws,p=d.inherent_laws,N=d.has_supplied_laws,b=d.supplied_laws,B=d.channels,L=d.channel,w=d.isMalf,T=d.isAdmin,x=d.zeroth_law,A=d.ion_law,E=d.inherent_law,M=d.supplied_law,D=d.supplied_law_position;return(0,e.createFragment)([!!i&&(0,e.createComponentVNode)(2,S,{title:"ERR_NULL_VALUE",laws:s,ctx:l}),!!u&&(0,e.createComponentVNode)(2,S,{title:v,laws:C,ctx:l}),!!g&&(0,e.createComponentVNode)(2,S,{title:"Inherent",laws:p,ctx:l}),!!N&&(0,e.createComponentVNode)(2,S,{title:"Supplied",laws:b,ctx:l}),(0,e.createComponentVNode)(2,t.Section,{title:"Statement Settings",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Statement Channel",children:B.map(function(P){return(0,e.createComponentVNode)(2,t.Button,{content:P.channel,selected:P.channel===L,onClick:function(){function R(){return f("law_channel",{law_channel:P.channel})}return R}()},P.channel)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"State Laws",children:(0,e.createComponentVNode)(2,t.Button,{content:"State Laws",onClick:function(){function P(){return f("state_laws")}return P}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Law Notification",children:(0,e.createComponentVNode)(2,t.Button,{content:"Notify",onClick:function(){function P(){return f("notify_laws")}return P}()})})]})}),!!w&&(0,e.createComponentVNode)(2,t.Section,{title:"Add Laws",children:(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{width:"10%",children:"Type"}),(0,e.createComponentVNode)(2,t.Table.Cell,{width:"60%",children:"Law"}),(0,e.createComponentVNode)(2,t.Table.Cell,{width:"10%",children:"Index"}),(0,e.createComponentVNode)(2,t.Table.Cell,{width:"20%",children:"Actions"})]}),!!(T&&!i)&&(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Zero"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:x}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"N/A"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:[(0,e.createComponentVNode)(2,t.Button,{content:"Edit",icon:"pencil-alt",onClick:function(){function P(){return f("change_zeroth_law")}return P}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Add",icon:"plus",onClick:function(){function P(){return f("add_zeroth_law")}return P}()})]})]}),(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Ion"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:A}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"N/A"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:[(0,e.createComponentVNode)(2,t.Button,{content:"Edit",icon:"pencil-alt",onClick:function(){function P(){return f("change_ion_law")}return P}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Add",icon:"plus",onClick:function(){function P(){return f("add_ion_law")}return P}()})]})]}),(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Inherent"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:E}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"N/A"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:[(0,e.createComponentVNode)(2,t.Button,{content:"Edit",icon:"pencil-alt",onClick:function(){function P(){return f("change_inherent_law")}return P}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Add",icon:"plus",onClick:function(){function P(){return f("add_inherent_law")}return P}()})]})]}),(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Supplied"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:M}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{content:D,onClick:function(){function P(){return f("change_supplied_law_position")}return P}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:[(0,e.createComponentVNode)(2,t.Button,{content:"Edit",icon:"pencil-alt",onClick:function(){function P(){return f("change_supplied_law")}return P}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Add",icon:"plus",onClick:function(){function P(){return f("add_supplied_law")}return P}()})]})]})]})})],0)},y=function(h,l){var c=(0,a.useBackend)(l),f=c.act,d=c.data,i=d.law_sets;return(0,e.createComponentVNode)(2,t.Box,{children:i.map(function(s){return(0,e.createComponentVNode)(2,t.Section,{title:s.name+" - "+s.header,buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Load Laws",icon:"download",onClick:function(){function u(){return f("transfer_laws",{transfer_laws:s.ref})}return u}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[s.laws.has_ion_laws>0&&s.laws.ion_laws.map(function(u){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:u.index,children:u.law},u.index)}),s.laws.has_zeroth_laws>0&&s.laws.zeroth_laws.map(function(u){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:u.index,children:u.law},u.index)}),s.laws.has_inherent_laws>0&&s.laws.inherent_laws.map(function(u){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:u.index,children:u.law},u.index)}),s.laws.has_supplied_laws>0&&s.laws.inherent_laws.map(function(u){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:u.index,children:u.law},u.index)})]})},s.name)})})},S=function(h,l){var c=(0,a.useBackend)(h.ctx),f=c.act,d=c.data,i=d.isMalf;return(0,e.createComponentVNode)(2,t.Section,{title:h.title+" Laws",children:(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{width:"10%",children:"Index"}),(0,e.createComponentVNode)(2,t.Table.Cell,{width:"69%",children:"Law"}),(0,e.createComponentVNode)(2,t.Table.Cell,{width:"21%",children:"State?"})]}),h.laws.map(function(s){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:s.index}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:s.law}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:[(0,e.createComponentVNode)(2,t.Button,{content:s.state?"Yes":"No",selected:s.state,onClick:function(){function u(){return f("state_law",{ref:s.ref,state_law:s.state?0:1})}return u}()}),!!i&&(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{content:"Edit",icon:"pencil-alt",onClick:function(){function u(){return f("edit_law",{edit_law:s.ref})}return u}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Delete",icon:"trash",color:"red",onClick:function(){function u(){return f("delete_law",{delete_law:s.ref})}return u}()})],4)]})]},s.law)})]})})}},5872:function(I,r,n){"use strict";r.__esModule=!0,r.LibraryComputer=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=n(99665),V=r.LibraryComputer=function(){function v(g,p){return(0,e.createComponentVNode)(2,o.Window,{width:1050,height:600,children:[(0,e.createComponentVNode)(2,m.ComplexModal),(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,l),(0,e.createComponentVNode)(2,c)]})})]})}return v}(),y=function(g,p){var N=(0,a.useBackend)(p),b=N.act,B=N.data,L=g.args,w=B.user_ckey;return(0,e.createComponentVNode)(2,t.Section,{children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Title",children:L.title}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Author",children:L.author}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Summary",children:L.summary}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Rating",children:[L.rating,(0,e.createComponentVNode)(2,t.Icon,{name:"star",color:"yellow",verticalAlign:"top"})]}),!L.isProgrammatic&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Categories",children:L.categories.join(", ")})]}),(0,e.createVNode)(1,"br"),w===L.ckey&&(0,e.createComponentVNode)(2,t.Button,{content:"Delete Book",icon:"trash",color:"red",disabled:L.isProgrammatic,onClick:function(){function T(){return b("delete_book",{bookid:L.id,user_ckey:w})}return T}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Report Book",icon:"flag",color:"red",disabled:L.isProgrammatic,onClick:function(){function T(){return(0,m.modalOpen)(p,"report_book",{bookid:L.id})}return T}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Rate Book",icon:"star",color:"caution",disabled:L.isProgrammatic,onClick:function(){function T(){return(0,m.modalOpen)(p,"rate_info",{bookid:L.id})}return T}()})]})},S=function(g,p){var N=(0,a.useBackend)(p),b=N.act,B=N.data,L=g.args,w=B.selected_report,T=B.report_categories,x=B.user_ckey;return(0,e.createComponentVNode)(2,t.Section,{level:2,m:"-1rem",pb:"1.5rem",title:"Report this book for Rule Violations",children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Title",children:L.title}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Reasons",children:(0,e.createComponentVNode)(2,t.Box,{children:T.map(function(A,E){return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{content:A.description,selected:A.category_id===w,onClick:function(){function M(){return b("set_report",{report_type:A.category_id})}return M}()}),(0,e.createVNode)(1,"br")],4,E)})})})]}),(0,e.createComponentVNode)(2,t.Button.Confirm,{bold:!0,icon:"paper-plane",content:"Submit Report",onClick:function(){function A(){return b("submit_report",{bookid:L.id,user_ckey:x})}return A}()})]})},k=function(g,p){var N=(0,a.useBackend)(p),b=N.act,B=N.data,L=B.selected_rating,w=Array(10).fill().map(function(T,x){return 1+x});return(0,e.createComponentVNode)(2,t.Stack,{children:[w.map(function(T,x){return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{bold:!0,icon:"star",color:L>=T?"caution":"default",onClick:function(){function A(){return b("set_rating",{rating_value:T})}return A}()})},x)}),(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,ml:2,fontSize:"150%",children:[L+"/10",(0,e.createComponentVNode)(2,t.Icon,{name:"star",color:"yellow",ml:.5,verticalAlign:"top"})]})]})},h=function(g,p){var N=(0,a.useBackend)(p),b=N.act,B=N.data,L=g.args,w=B.user_ckey;return(0,e.createComponentVNode)(2,t.Section,{level:2,m:"-1rem",pb:"1.5rem",children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Title",children:L.title}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Author",children:L.author}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Rating",children:[L.current_rating?L.current_rating:0,(0,e.createComponentVNode)(2,t.Icon,{name:"star",color:"yellow",ml:.5,verticalAlign:"middle"})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Total Ratings",children:L.total_ratings?L.total_ratings:0})]}),(0,e.createComponentVNode)(2,k),(0,e.createComponentVNode)(2,t.Button.Confirm,{mt:2,content:"Submit",icon:"paper-plane",onClick:function(){function T(){return b("rate_book",{bookid:L.id,user_ckey:w})}return T}()})]})},l=function(g,p){var N=(0,a.useBackend)(p),b=N.data,B=(0,a.useLocalState)(p,"tabIndex",0),L=B[0],w=B[1],T=b.login_state;return(0,e.createComponentVNode)(2,t.Stack.Item,{mb:1,children:(0,e.createComponentVNode)(2,t.Tabs,{fluid:!0,textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:L===0,onClick:function(){function x(){return w(0)}return x}(),children:"Book Archives"}),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:L===1,onClick:function(){function x(){return w(1)}return x}(),children:"Corporate Literature"}),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:L===2,onClick:function(){function x(){return w(2)}return x}(),children:"Upload Book"}),T===1&&(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:L===3,onClick:function(){function x(){return w(3)}return x}(),children:"Patron Manager"}),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:L===4,onClick:function(){function x(){return w(4)}return x}(),children:"Inventory"})]})})},c=function(g,p){var N=(0,a.useLocalState)(p,"tabIndex",0),b=N[0];switch(b){case 0:return(0,e.createComponentVNode)(2,d);case 1:return(0,e.createComponentVNode)(2,i);case 2:return(0,e.createComponentVNode)(2,s);case 3:return(0,e.createComponentVNode)(2,u);case 4:return(0,e.createComponentVNode)(2,C);default:return"You are somehow on a tab that doesn't exist! Please let a coder know."}},f=function(g,p){var N=(0,a.useBackend)(p),b=N.act,B=N.data,L=B.searchcontent,w=B.book_categories,T=B.user_ckey,x=[];return w.map(function(A){return x[A.description]=A.category_id}),(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"35%",children:[(0,e.createComponentVNode)(2,t.Box,{fontSize:"1.2rem",m:".5em",bold:!0,children:[(0,e.createComponentVNode)(2,t.Icon,{name:"edit",verticalAlign:"middle",size:1.5,mr:"1rem"}),"Search Inputs"]}),(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Title",children:(0,e.createComponentVNode)(2,t.Button,{textAlign:"left",icon:"pen",width:20,content:L.title||"Input Title",onClick:function(){function A(){return(0,m.modalOpen)(p,"edit_search_title")}return A}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Author",children:(0,e.createComponentVNode)(2,t.Button,{textAlign:"left",icon:"pen",width:20,content:L.author||"Input Author",onClick:function(){function A(){return(0,m.modalOpen)(p,"edit_search_author")}return A}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Ratings",children:(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{mr:1,width:"min-content",content:L.ratingmin,onClick:function(){function A(){return(0,m.modalOpen)(p,"edit_search_ratingmin")}return A}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:"To"}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{ml:1,width:"min-content",content:L.ratingmax,onClick:function(){function A(){return(0,m.modalOpen)(p,"edit_search_ratingmax")}return A}()})})]})})]})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:"40%",children:[(0,e.createComponentVNode)(2,t.Box,{fontSize:"1.2rem",m:".5em",bold:!0,children:[(0,e.createComponentVNode)(2,t.Icon,{name:"clipboard-list",verticalAlign:"middle",size:1.5,mr:"1rem"}),"Book Categories"]}),(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Select Categories",children:(0,e.createComponentVNode)(2,t.Box,{mt:2,children:(0,e.createComponentVNode)(2,t.Dropdown,{mt:.6,width:"190px",options:w.map(function(A){return A.description}),onSelected:function(){function A(E){return b("toggle_search_category",{category_id:x[E]})}return A}()})})})}),(0,e.createVNode)(1,"br"),w.filter(function(A){return L.categories.includes(A.category_id)}).map(function(A){return(0,e.createComponentVNode)(2,t.Button,{content:A.description,selected:!0,icon:"unlink",onClick:function(){function E(){return b("toggle_search_category",{category_id:A.category_id})}return E}()},A.category_id)})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Box,{fontSize:"1.2rem",m:".5em",bold:!0,children:[(0,e.createComponentVNode)(2,t.Icon,{name:"search-plus",verticalAlign:"middle",size:1.5,mr:"1rem"}),"Search Actions"]}),(0,e.createComponentVNode)(2,t.Button,{content:"Clear Search",icon:"eraser",onClick:function(){function A(){return b("clear_search")}return A}()}),L.ckey?(0,e.createComponentVNode)(2,t.Button,{mb:.5,content:"Stop Showing My Books",color:"bad",icon:"search",onClick:function(){function A(){return b("clear_ckey_search")}return A}()}):(0,e.createComponentVNode)(2,t.Button,{content:"Find My Books",icon:"search",onClick:function(){function A(){return b("find_users_books",{user_ckey:T})}return A}()})]})]})},d=function(g,p){var N=(0,a.useBackend)(p),b=N.act,B=N.data,L=B.external_booklist,w=B.archive_pagenumber,T=B.num_pages,x=B.login_state;return(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Book System Access",buttons:(0,e.createVNode)(1,"div",null,[(0,e.createComponentVNode)(2,t.Button,{icon:"angle-double-left",disabled:w===1,onClick:function(){function A(){return b("deincrementpagemax")}return A}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"chevron-left",disabled:w===1,onClick:function(){function A(){return b("deincrementpage")}return A}()}),(0,e.createComponentVNode)(2,t.Button,{bold:!0,content:w,onClick:function(){function A(){return(0,m.modalOpen)(p,"setpagenumber")}return A}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"chevron-right",disabled:w===T,onClick:function(){function A(){return b("incrementpage")}return A}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"angle-double-right",disabled:w===T,onClick:function(){function A(){return b("incrementpagemax")}return A}()})],4),children:[(0,e.createComponentVNode)(2,f),(0,e.createVNode)(1,"hr"),(0,e.createComponentVNode)(2,t.Table,{className:"Library__Booklist",children:[(0,e.createComponentVNode)(2,t.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"SSID"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Title"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Author"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Ratings"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Category"}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"middle",children:"Actions"})]}),L.map(function(A){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:A.id}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"book",mr:.5}),A.title.length>45?A.title.substr(0,45)+"...":A.title]}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:A.author.length>30?A.author.substr(0,30)+"...":A.author}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:[A.rating,(0,e.createComponentVNode)(2,t.Icon,{name:"star",ml:.5,color:"yellow",verticalAlign:"middle"})]}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:A.categories.join(", ").substr(0,45)}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"right",children:[x===1&&(0,e.createComponentVNode)(2,t.Button,{content:"Order",icon:"print",onClick:function(){function E(){return b("order_external_book",{bookid:A.id})}return E}()}),(0,e.createComponentVNode)(2,t.Button,{content:"More...",onClick:function(){function E(){return(0,m.modalOpen)(p,"expand_info",{bookid:A.id})}return E}()})]})]},A.id)})]})]})},i=function(g,p){var N=(0,a.useBackend)(p),b=N.act,B=N.data,L=B.programmatic_booklist,w=B.login_state;return(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Corporate Book Catalog",children:(0,e.createComponentVNode)(2,t.Table,{className:"Library__Booklist",children:[(0,e.createComponentVNode)(2,t.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"SSID"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Title"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Author"}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"middle",children:"Actions"})]}),L.map(function(T,x){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:T.id}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"book",mr:2}),T.title]}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:T.author}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"right",children:[w===1&&(0,e.createComponentVNode)(2,t.Button,{content:"Order",icon:"print",onClick:function(){function A(){return b("order_programmatic_book",{bookid:T.id})}return A}()}),(0,e.createComponentVNode)(2,t.Button,{content:"More...",onClick:function(){function A(){return(0,m.modalOpen)(p,"expand_info",{bookid:T.id})}return A}()})]})]},x)})]})})},s=function(g,p){var N=(0,a.useBackend)(p),b=N.act,B=N.data,L=B.selectedbook,w=B.book_categories,T=B.user_ckey,x=[];return w.map(function(A){return x[A.description]=A.category_id}),(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Book System Upload",buttons:(0,e.createComponentVNode)(2,t.Button.Confirm,{bold:!0,width:9.5,icon:"upload",disabled:L.copyright,content:"Upload Book",onClick:function(){function A(){return b("uploadbook",{user_ckey:T})}return A}()}),children:[L.copyright?(0,e.createComponentVNode)(2,t.NoticeBox,{color:"red",children:"WARNING: You cannot upload or modify the attributes of a copyrighted book"}):(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Box,{ml:15,mb:3,fontSize:"1.2rem",bold:!0,children:[(0,e.createComponentVNode)(2,t.Icon,{name:"search-plus",verticalAlign:"middle",size:3,mr:2}),"Book Uploader"]}),(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Title",children:(0,e.createComponentVNode)(2,t.Button,{width:20,textAlign:"left",icon:"pen",disabled:L.copyright,content:L.title,onClick:function(){function A(){return(0,m.modalOpen)(p,"edit_selected_title")}return A}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Author",children:(0,e.createComponentVNode)(2,t.Button,{width:20,textAlign:"left",icon:"pen",disabled:L.copyright,content:L.author,onClick:function(){function A(){return(0,m.modalOpen)(p,"edit_selected_author")}return A}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Select Categories",children:(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Dropdown,{width:"240px",options:w.map(function(A){return A.description}),onSelected:function(){function A(E){return b("toggle_upload_category",{category_id:x[E]})}return A}()})})})]}),(0,e.createVNode)(1,"br"),w.filter(function(A){return L.categories.includes(A.category_id)}).map(function(A){return(0,e.createComponentVNode)(2,t.Button,{content:A.description,disabled:L.copyright,selected:!0,icon:"unlink",onClick:function(){function E(){return b("toggle_upload_category",{category_id:A.category_id})}return E}()},A.category_id)})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{mr:75,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Summary",children:(0,e.createComponentVNode)(2,t.Button,{icon:"pen",width:"auto",disabled:L.copyright,content:"Edit Summary",onClick:function(){function A(){return(0,m.modalOpen)(p,"edit_selected_summary")}return A}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{children:L.summary})]})})]})]})},u=function(g,p){var N=(0,a.useBackend)(p),b=N.act,B=N.data,L=B.checkout_data;return(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Checked Out Books",children:(0,e.createComponentVNode)(2,t.Table,{className:"Library__Booklist",children:[(0,e.createComponentVNode)(2,t.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Patron"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Title"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Time Left"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Actions"})]}),L.map(function(w,T){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:[(0,e.createComponentVNode)(2,t.Icon,{name:"user-tag"}),w.patron_name]}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:w.title}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:w.timeleft>=0?w.timeleft:"LATE"}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:(0,e.createComponentVNode)(2,t.Button,{content:"Mark Lost",icon:"flag",color:"bad",disabled:w.timeleft>=0,onClick:function(){function x(){return b("reportlost",{libraryid:w.libraryid})}return x}()})})]},T)})]})})},C=function(g,p){var N=(0,a.useBackend)(p),b=N.act,B=N.data,L=B.inventory_list;return(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Library Inventory",children:(0,e.createComponentVNode)(2,t.Table,{className:"Library__Booklist",children:[(0,e.createComponentVNode)(2,t.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"LIB ID"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Title"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Author"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Status"})]}),L.map(function(w,T){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:w.libraryid}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"book"})," ",w.title]}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:w.author}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:w.checked_out?"Checked Out":"Available"})]},T)})]})})};(0,m.modalRegisterBodyOverride)("expand_info",y),(0,m.modalRegisterBodyOverride)("report_book",S),(0,m.modalRegisterBodyOverride)("rate_info",h)},37782:function(I,r,n){"use strict";r.__esModule=!0,r.LibraryManager=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=n(99665),V=r.LibraryManager=function(){function l(c,f){return(0,e.createComponentVNode)(2,o.Window,{width:600,height:600,children:[(0,e.createComponentVNode)(2,m.ComplexModal),(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,className:"Layout__content--flexColumn",children:(0,e.createComponentVNode)(2,y)})]})}return l}(),y=function(c,f){var d=(0,a.useBackend)(f),i=d.act,s=d.data,u=s.pagestate;switch(u){case 1:return(0,e.createComponentVNode)(2,S);case 2:return(0,e.createComponentVNode)(2,h);case 3:return(0,e.createComponentVNode)(2,k);default:return"WE SHOULDN'T BE HERE!"}},S=function(c,f){var d=(0,a.useBackend)(f),i=d.act,s=d.data;return(0,e.createComponentVNode)(2,t.Section,{children:[(0,e.createComponentVNode)(2,t.Box,{fontSize:"1.4rem",bold:!0,children:[(0,e.createComponentVNode)(2,t.Icon,{name:"user-shield",verticalAlign:"middle",size:3,mr:"1rem"}),"Library Manager"]}),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Button,{icon:"trash",width:"auto",color:"danger",content:"Delete Book by SSID",onClick:function(){function u(){return(0,m.modalOpen)(f,"specify_ssid_delete")}return u}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"user-slash",width:"auto",color:"danger",content:"Delete All Books By CKEY",onClick:function(){function u(){return(0,m.modalOpen)(f,"specify_ckey_delete")}return u}()}),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Button,{icon:"search",width:"auto",content:"View All Books By CKEY",onClick:function(){function u(){return(0,m.modalOpen)(f,"specify_ckey_search")}return u}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"search",width:"auto",content:"View All Reported Books",onClick:function(){function u(){return i("view_reported_books")}return u}()})]})},k=function(c,f){var d=(0,a.useBackend)(f),i=d.act,s=d.data,u=s.reports;return(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.Table,{className:"Library__Booklist",children:[(0,e.createComponentVNode)(2,t.Box,{fontSize:"1.2rem",bold:!0,children:[(0,e.createComponentVNode)(2,t.Icon,{name:"user-secret",verticalAlign:"middle",size:2,mr:"1rem"}),(0,e.createVNode)(1,"br"),"All Reported Books",(0,e.createVNode)(1,"br")]}),(0,e.createComponentVNode)(2,t.Button,{content:"Return to Main",icon:"arrow-alt-circle-left",onClick:function(){function C(){return i("return")}return C}()}),(0,e.createComponentVNode)(2,t.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Uploader CKEY"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"SSID"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Title"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Author"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Report Type"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Reporter Ckey"}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"middle",children:"Administrative Actions"})]}),u.map(function(C){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:C.uploader_ckey}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:C.id}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"book"}),C.title]}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:C.author}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:C.report_description}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:C.reporter_ckey}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:[(0,e.createComponentVNode)(2,t.Button.Confirm,{content:"Delete",icon:"trash",onClick:function(){function v(){return i("delete_book",{bookid:C.id})}return v}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Unflag",icon:"flag",color:"caution",onClick:function(){function v(){return i("unflag_book",{bookid:C.id})}return v}()}),(0,e.createComponentVNode)(2,t.Button,{content:"View",onClick:function(){function v(){return i("view_book",{bookid:C.id})}return v}()})]})]},C.id)})]})})},h=function(c,f){var d=(0,a.useBackend)(f),i=d.act,s=d.data,u=s.ckey,C=s.booklist;return(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.Table,{className:"Library__Booklist",children:[(0,e.createComponentVNode)(2,t.Box,{fontSize:"1.2rem",bold:!0,children:[(0,e.createComponentVNode)(2,t.Icon,{name:"user",verticalAlign:"middle",size:2,mr:"1rem"}),(0,e.createVNode)(1,"br"),"Books uploaded by ",u,(0,e.createVNode)(1,"br")]}),(0,e.createComponentVNode)(2,t.Button,{mt:1,content:"Return to Main",icon:"arrow-alt-circle-left",onClick:function(){function v(){return i("return")}return v}()}),(0,e.createComponentVNode)(2,t.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"SSID"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Title"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Author"}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"middle",children:"Administrative Actions"})]}),C.map(function(v){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:v.id}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"book"}),v.title]}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:v.author}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"right",children:[(0,e.createComponentVNode)(2,t.Button.Confirm,{content:"Delete",icon:"trash",color:"bad",onClick:function(){function g(){return i("delete_book",{bookid:v.id})}return g}()}),(0,e.createComponentVNode)(2,t.Button,{content:"View",onClick:function(){function g(){return i("view_book",{bookid:v.id})}return g}()})]})]},v.id)})]})})}},26133:function(I,r,n){"use strict";r.__esModule=!0,r.ListInputModal=void 0;var e=n(96524),a=n(14299),t=n(15113),o=n(24674),m=n(17899),V=n(68100),y=n(45493),S=r.ListInputModal=function(){function l(c,f){var d=(0,m.useBackend)(f),i=d.act,s=d.data,u=s.items,C=u===void 0?[]:u,v=s.message,g=v===void 0?"":v,p=s.init_value,N=s.timeout,b=s.title,B=(0,m.useLocalState)(f,"selected",C.indexOf(p)),L=B[0],w=B[1],T=(0,m.useLocalState)(f,"searchBarVisible",C.length>10),x=T[0],A=T[1],E=(0,m.useLocalState)(f,"searchQuery",""),M=E[0],D=E[1],P=function(){function $(X){var J=K.length-1;if(X===V.KEY_DOWN)if(L===null||L===J){var ae;w(0),(ae=document.getElementById("0"))==null||ae.scrollIntoView()}else{var re;w(L+1),(re=document.getElementById((L+1).toString()))==null||re.scrollIntoView()}else if(X===V.KEY_UP)if(L===null||L===0){var me;w(J),(me=document.getElementById(J.toString()))==null||me.scrollIntoView()}else{var pe;w(L-1),(pe=document.getElementById((L-1).toString()))==null||pe.scrollIntoView()}}return $}(),R=function(){function $(X){X!==L&&w(X)}return $}(),j=function(){function $(){A(!1),A(!0)}return $}(),F=function(){function $(X){var J=String.fromCharCode(X),ae=C.find(function(pe){return pe==null?void 0:pe.toLowerCase().startsWith(J==null?void 0:J.toLowerCase())});if(ae){var re,me=C.indexOf(ae);w(me),(re=document.getElementById(me.toString()))==null||re.scrollIntoView()}}return $}(),W=function(){function $(X){var J;X!==M&&(D(X),w(0),(J=document.getElementById("0"))==null||J.scrollIntoView())}return $}(),_=function(){function $(){A(!x),D("")}return $}(),K=C.filter(function($){return $==null?void 0:$.toLowerCase().includes(M.toLowerCase())}),H=330+Math.ceil(g.length/3);return x||setTimeout(function(){var $;return($=document.getElementById(L.toString()))==null?void 0:$.focus()},1),(0,e.createComponentVNode)(2,y.Window,{title:b,width:325,height:H,children:[N&&(0,e.createComponentVNode)(2,a.Loader,{value:N}),(0,e.createComponentVNode)(2,y.Window.Content,{onKeyDown:function(){function $(X){var J=window.event?X.which:X.keyCode;(J===V.KEY_DOWN||J===V.KEY_UP)&&(X.preventDefault(),P(J)),J===V.KEY_ENTER&&(X.preventDefault(),i("submit",{entry:K[L]})),!x&&J>=V.KEY_A&&J<=V.KEY_Z&&(X.preventDefault(),F(J)),J===V.KEY_ESCAPE&&(X.preventDefault(),i("cancel"))}return $}(),children:(0,e.createComponentVNode)(2,o.Section,{buttons:(0,e.createComponentVNode)(2,o.Button,{compact:!0,icon:x?"search":"font",selected:!0,tooltip:x?"Search Mode. Type to search or use arrow keys to select manually.":"Hotkey Mode. Type a letter to jump to the first match. Enter to select.",tooltipPosition:"left",onClick:function(){function $(){return _()}return $}()}),className:"ListInput__Section",fill:!0,title:g,children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,k,{filteredItems:K,onClick:R,onFocusSearch:j,searchBarVisible:x,selected:L})}),(0,e.createComponentVNode)(2,o.Stack.Item,{m:0,children:x&&(0,e.createComponentVNode)(2,h,{filteredItems:K,onSearch:W,searchQuery:M,selected:L})}),(0,e.createComponentVNode)(2,o.Stack.Item,{mt:.5,children:(0,e.createComponentVNode)(2,t.InputButtons,{input:K[L]})})]})})})]})}return l}(),k=function(c,f){var d=(0,m.useBackend)(f),i=d.act,s=c.filteredItems,u=c.onClick,C=c.onFocusSearch,v=c.searchBarVisible,g=c.selected;return(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,tabIndex:0,children:s.map(function(p,N){return(0,e.createComponentVNode)(2,o.Button,{fluid:!0,color:"transparent",id:N,onClick:function(){function b(){return u(N)}return b}(),onDblClick:function(){function b(B){B.preventDefault(),i("submit",{entry:s[g]})}return b}(),onKeyDown:function(){function b(B){var L=window.event?B.which:B.keyCode;v&&L>=V.KEY_A&&L<=V.KEY_Z&&(B.preventDefault(),C())}return b}(),selected:N===g,style:{animation:"none",transition:"none"},children:p.replace(/^\w/,function(b){return b.toUpperCase()})},N)})})},h=function(c,f){var d=(0,m.useBackend)(f),i=d.act,s=c.filteredItems,u=c.onSearch,C=c.searchQuery,v=c.selected;return(0,e.createComponentVNode)(2,o.Input,{width:"100%",autoFocus:!0,autoSelect:!0,onEnter:function(){function g(p){p.preventDefault(),i("submit",{entry:s[v]})}return g}(),onInput:function(){function g(p,N){return u(N)}return g}(),placeholder:"Search...",value:C})}},71963:function(I,r,n){"use strict";r.__esModule=!0,r.MODsuitContent=r.MODsuit=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=function(L,w){var T=L.name,x=L.value,A=L.module_ref,E=(0,a.useBackend)(w),M=E.act;return(0,e.createComponentVNode)(2,t.NumberInput,{value:x,minValue:-50,maxValue:50,stepPixelSize:5,width:"39px",onChange:function(){function D(P,R){return M("configure",{key:T,value:R,ref:A})}return D}()})},V=function(L,w){var T=L.name,x=L.value,A=L.module_ref,E=(0,a.useBackend)(w),M=E.act;return(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:x,onClick:function(){function D(){return M("configure",{key:T,value:!x,ref:A})}return D}()})},y=function(L,w){var T=L.name,x=L.value,A=L.module_ref,E=(0,a.useBackend)(w),M=E.act;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{icon:"paint-brush",onClick:function(){function D(){return M("configure",{key:T,ref:A})}return D}()}),(0,e.createComponentVNode)(2,t.ColorBox,{color:x,mr:.5})],4)},S=function(L,w){var T=L.name,x=L.value,A=L.values,E=L.module_ref,M=(0,a.useBackend)(w),D=M.act;return(0,e.createComponentVNode)(2,t.Dropdown,{displayText:x,options:A,onSelected:function(){function P(R){return D("configure",{key:T,value:R,ref:E})}return P}()})},k=function(L,w){var T=L.name,x=L.display_name,A=L.type,E=L.value,M=L.values,D=L.module_ref,P={number:(0,e.normalizeProps)((0,e.createComponentVNode)(2,m,Object.assign({},L))),bool:(0,e.normalizeProps)((0,e.createComponentVNode)(2,V,Object.assign({},L))),color:(0,e.normalizeProps)((0,e.createComponentVNode)(2,y,Object.assign({},L))),list:(0,e.normalizeProps)((0,e.createComponentVNode)(2,S,Object.assign({},L)))};return(0,e.createComponentVNode)(2,t.Box,{children:[x,": ",P[A]]})},h=function(L,w){var T=L.active,x=L.userradiated,A=L.usertoxins,E=L.usermaxtoxins,M=L.threatlevel;return(0,e.createComponentVNode)(2,t.Stack,{fill:!0,textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Radiation Level",color:T&&x?"bad":"good",children:T&&x?"IRRADIATED!":"RADIATION-FREE"})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Toxins Level",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:T?A/E:0,ranges:{good:[-1/0,.2],average:[.2,.5],bad:[.5,1/0]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:A})})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Hazard Level",color:T&&M?"bad":"good",bold:!0,children:T&&M?M:0})})]})},l=function(L,w){var T=L.active,x=L.userhealth,A=L.usermaxhealth,E=L.userbrute,M=L.userburn,D=L.usertoxin,P=L.useroxy;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{title:"Health",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:T?x/A:0,ranges:{good:[.5,1/0],average:[.2,.5],bad:[-1/0,.2]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:T?x:0})})}),(0,e.createComponentVNode)(2,t.Stack,{textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Brute",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:T?E/A:0,ranges:{good:[-1/0,.2],average:[.2,.5],bad:[.5,1/0]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:T?E:0})})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Burn",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:T?M/A:0,ranges:{good:[-1/0,.2],average:[.2,.5],bad:[.5,1/0]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:T?M:0})})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Toxin",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:T?D/A:0,ranges:{good:[-1/0,.2],average:[.2,.5],bad:[.5,1/0]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:T?D:0})})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Suffocation",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:T?P/A:0,ranges:{good:[-1/0,.2],average:[.2,.5],bad:[.5,1/0]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:T?P:0})})})})]})],4)},c=function(L,w){var T=L.active,x=L.statustime,A=L.statusid,E=L.statushealth,M=L.statusmaxhealth,D=L.statusbrute,P=L.statusburn,R=L.statustoxin,j=L.statusoxy,F=L.statustemp,W=L.statusnutrition,_=L.statusfingerprints,K=L.statusdna,H=L.statusviruses;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Stack,{textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Operation Time",children:T?x:"00:00:00"})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Operation Number",children:T?A||"0":"???"})})]}),(0,e.createComponentVNode)(2,t.Section,{title:"Health",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:T?E/M:0,ranges:{good:[.5,1/0],average:[.2,.5],bad:[-1/0,.2]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:T?E:0})})}),(0,e.createComponentVNode)(2,t.Stack,{textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Brute",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:T?D/M:0,ranges:{good:[-1/0,.2],average:[.2,.5],bad:[.5,1/0]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:T?D:0})})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Burn",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:T?P/M:0,ranges:{good:[-1/0,.2],average:[.2,.5],bad:[.5,1/0]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:T?P:0})})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Toxin",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:T?R/M:0,ranges:{good:[-1/0,.2],average:[.2,.5],bad:[.5,1/0]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:R})})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Suffocation",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:T?j/M:0,ranges:{good:[-1/0,.2],average:[.2,.5],bad:[.5,1/0]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:j})})})})]}),(0,e.createComponentVNode)(2,t.Stack,{textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Body Temperature",children:T?F:0})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Nutrition Status",children:T?W:0})})]}),(0,e.createComponentVNode)(2,t.Section,{title:"DNA",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Fingerprints",children:T?_:"???"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Unique Enzymes",children:T?K:"???"})]})}),!!T&&!!H&&(0,e.createComponentVNode)(2,t.Section,{title:"Diseases",children:(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"signature",tooltip:"Name",tooltipPosition:"top"})}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"wind",tooltip:"Type",tooltipPosition:"top"})}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"bolt",tooltip:"Stage",tooltipPosition:"top"})}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"flask",tooltip:"Cure",tooltipPosition:"top"})})]}),H.map(function($){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:$.name}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:$.type}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:[$.stage,"/",$.maxstage]}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:$.cure})]},$.name)})]})})],0)},f={rad_counter:h,health_analyzer:l,status_readout:c},d=function(){return(0,e.createComponentVNode)(2,t.Section,{align:"center",fill:!0,children:[(0,e.createComponentVNode)(2,t.Icon,{color:"red",name:"exclamation-triangle",size:15}),(0,e.createComponentVNode)(2,t.Box,{fontSize:"30px",color:"red",children:"ERROR: INTERFACE UNRESPONSIVE"})]})},i=function(L,w){var T=(0,a.useBackend)(w),x=T.act,A=T.data;return(0,e.createComponentVNode)(2,t.Dimmer,{children:(0,e.createComponentVNode)(2,t.Stack,{children:(0,e.createComponentVNode)(2,t.Stack.Item,{fontSize:"16px",color:"blue",children:"SUIT UNPOWERED"})})})},s=function(L,w){var T=L.configuration_data,x=L.module_ref,A=Object.keys(T);return(0,e.createComponentVNode)(2,t.Dimmer,{backgroundColor:"rgba(0, 0, 0, 0.8)",children:(0,e.createComponentVNode)(2,t.Stack,{vertical:!0,children:[A.map(function(E){var M=T[E];return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,k,{name:E,display_name:M.display_name,type:M.type,value:M.value,values:M.values,module_ref:x})},M.key)}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,onClick:L.onExit,icon:"times",textAlign:"center",children:"Exit"})})})]})})},u=function(L){switch(L){case 1:return"Use";case 2:return"Toggle";case 3:return"Select"}},C=function(L,w){var T=(0,a.useBackend)(w),x=T.act,A=T.data,E=A.active,M=A.malfunctioning,D=A.locked,P=A.open,R=A.selected_module,j=A.complexity,F=A.complexity_max,W=A.wearer_name,_=A.wearer_job,K=M?"Malfunctioning":E?"Active":"Inactive";return(0,e.createComponentVNode)(2,t.Section,{title:"Parameters",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"power-off",content:E?"Deactivate":"Activate",onClick:function(){function H(){return x("activate")}return H}()}),children:K}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"ID Lock",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:D?"lock-open":"lock",content:D?"Unlock":"Lock",onClick:function(){function H(){return x("lock")}return H}()}),children:D?"Locked":"Unlocked"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cover",children:P?"Open":"Closed"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Selected Module",children:R||"None"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Complexity",children:[j," (",F,")"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Occupant",children:[W,", ",_]})]})})},v=function(L,w){var T=(0,a.useBackend)(w),x=T.act,A=T.data,E=A.active,M=A.control,D=A.helmet,P=A.chestplate,R=A.gauntlets,j=A.boots,F=A.core,W=A.charge;return(0,e.createComponentVNode)(2,t.Section,{title:"Hardware",children:[(0,e.createComponentVNode)(2,t.Collapsible,{title:"Parts",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Control Unit",children:M}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Helmet",children:D||"None"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Chestplate",children:P||"None"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Gauntlets",children:R||"None"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Boots",children:j||"None"})]})}),(0,e.createComponentVNode)(2,t.Collapsible,{title:"Core",children:F&&(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Core Type",children:F}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Core Charge",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:W/100,content:W+"%",ranges:{good:[.6,1/0],average:[.3,.6],bad:[-1/0,.3]}})})]})||(0,e.createComponentVNode)(2,t.Box,{color:"bad",textAlign:"center",children:"No Core Detected"})})]})},g=function(L,w){var T=(0,a.useBackend)(w),x=T.act,A=T.data,E=A.active,M=A.modules,D=M.filter(function(P){return!!P.id});return(0,e.createComponentVNode)(2,t.Section,{title:"Info",children:(0,e.createComponentVNode)(2,t.Stack,{vertical:!0,children:D.length!==0&&D.map(function(P){var R=f[P.id];return(0,e.createComponentVNode)(2,t.Stack.Item,{children:[!E&&(0,e.createComponentVNode)(2,i),(0,e.normalizeProps)((0,e.createComponentVNode)(2,R,Object.assign({},P,{active:E})))]},P.ref)})||(0,e.createComponentVNode)(2,t.Box,{textAlign:"center",children:"No Info Modules Detected"})})})},p=function(L,w){var T=(0,a.useBackend)(w),x=T.act,A=T.data,E=A.complexity_max,M=A.modules,D=(0,a.useLocalState)(w,"module_configuration",null),P=D[0],R=D[1];return(0,e.createComponentVNode)(2,t.Section,{title:"Modules",fill:!0,children:(0,e.createComponentVNode)(2,t.Stack,{vertical:!0,children:M.length!==0&&M.map(function(j){return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Collapsible,{title:j.module_name,children:(0,e.createComponentVNode)(2,t.Section,{children:[P===j.ref&&(0,e.createComponentVNode)(2,s,{configuration_data:j.configuration_data,module_ref:j.ref,onExit:function(){function F(){return R(null)}return F}()}),(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"save",tooltip:"Complexity",tooltipPosition:"top"})}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"plug",tooltip:"Idle Power Cost",tooltipPosition:"top"})}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"lightbulb",tooltip:"Active Power Cost",tooltipPosition:"top"})}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"bolt",tooltip:"Use Power Cost",tooltipPosition:"top"})}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"hourglass-half",tooltip:"Cooldown",tooltipPosition:"top"})}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"tasks",tooltip:"Actions",tooltipPosition:"top"})})]}),(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:[j.module_complexity,"/",E]}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:j.idle_power}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:j.active_power}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:j.use_power}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:[j.cooldown>0&&j.cooldown/10||"0","/",j.cooldown_time/10,"s"]}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function F(){return x("select",{ref:j.ref})}return F}(),icon:"bullseye",selected:j.module_active,tooltip:u(j.module_type),tooltipPosition:"left",disabled:!j.module_type}),(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function F(){return R(j.ref)}return F}(),icon:"cog",selected:P===j.ref,tooltip:"Configure",tooltipPosition:"left",disabled:j.configuration_data.length===0}),(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function F(){return x("pin",{ref:j.ref})}return F}(),icon:"thumbtack",selected:j.pinned,tooltip:"Pin",tooltipPosition:"left",disabled:!j.module_type})]})]})]}),(0,e.createComponentVNode)(2,t.Box,{children:j.description})]})})},j.ref)})||(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Box,{textAlign:"center",children:"No Modules Detected"})})})})},N=r.MODsuitContent=function(){function B(L,w){var T=(0,a.useBackend)(w),x=T.act,A=T.data,E=A.ui_theme,M=A.interface_break;return(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!M,children:!!M&&(0,e.createComponentVNode)(2,d)||(0,e.createComponentVNode)(2,t.Stack,{vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,C)}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,v)}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,g)}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,p)})]})})}return B}(),b=r.MODsuit=function(){function B(L,w){var T=(0,a.useBackend)(w),x=T.act,A=T.data,E=A.ui_theme,M=A.interface_break;return(0,e.createComponentVNode)(2,o.Window,{theme:E,width:400,height:620,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,N)})})})}return B}()},84274:function(I,r,n){"use strict";r.__esModule=!0,r.MagnetController=void 0;var e=n(96524),a=n(36121),t=n(17899),o=n(24674),m=n(45493),V=n(99665),y=new Map([["n",{icon:"arrow-up",tooltip:"Move North"}],["e",{icon:"arrow-right",tooltip:"Move East"}],["s",{icon:"arrow-down",tooltip:"Move South"}],["w",{icon:"arrow-left",tooltip:"Move West"}],["c",{icon:"crosshairs",tooltip:"Move to Magnet"}],["r",{icon:"dice",tooltip:"Move Randomly"}]]),S=r.MagnetController=function(){function k(h,l){var c=(0,t.useBackend)(l),f=c.act,d=c.data,i=d.autolink,s=d.code,u=d.frequency,C=d.linkedMagnets,v=d.magnetConfiguration,g=d.path,p=d.pathPosition,N=d.probing,b=d.powerState,B=d.speed;return(0,e.createComponentVNode)(2,m.Window,{width:400,height:600,children:[(0,e.createComponentVNode)(2,V.ComplexModal),(0,e.createComponentVNode)(2,m.Window.Content,{scrollable:!0,children:[!i&&(0,e.createComponentVNode)(2,o.Section,{buttons:(0,e.createComponentVNode)(2,o.Button,{content:"Probe",icon:N?"spinner":"sync",iconSpin:!!N,disabled:N,onClick:function(){function L(){return f("probe_magnets")}return L}()}),title:"Magnet Linking",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Frequency",children:(0,a.toFixed)(u/10,1)}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Code",children:s})]})}),(0,e.createComponentVNode)(2,o.Section,{buttons:(0,e.createComponentVNode)(2,o.Button,{icon:b?"power-off":"times",content:b?"On":"Off",selected:b,onClick:function(){function L(){return f("toggle_power")}return L}()}),title:"Controller Configuration",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Speed",children:(0,e.createComponentVNode)(2,o.Slider,{value:B.value,minValue:B.min,maxValue:B.max,onChange:function(){function L(w,T){return f("set_speed",{speed:T})}return L}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Path",children:[Array.from(y.entries()).map(function(L){var w=L[0],T=L[1],x=T.icon,A=T.tooltip;return(0,e.createComponentVNode)(2,o.Button,{icon:x,tooltip:A,onClick:function(){function E(){return f("path_add",{code:w})}return E}()},w)}),(0,e.createComponentVNode)(2,o.Button.Confirm,{icon:"trash",confirmIcon:"trash",confirmContent:"",float:"right",tooltip:"Reset Path",tooltipPosition:"left",onClick:function(){function L(){return f("path_clear")}return L}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"file-import",float:"right",tooltip:"Manually input path",tooltipPosition:"left",onClick:function(){function L(){return(0,V.modalOpen)(l,"path_custom_input")}return L}()}),(0,e.createComponentVNode)(2,o.BlockQuote,{children:g.map(function(L,w){var T=y.get(L)||{icon:"question"},x=T.icon,A=T.tooltip;return(0,e.createComponentVNode)(2,o.Button.Confirm,{selected:w+2===p,icon:x,confirmIcon:x,confirmContent:"",tooltip:A,onClick:function(){function E(){return f("path_remove",{index:w+1,code:L})}return E}()},w)})})]})]})}),C.map(function(L,w){var T=L.uid,x=L.powerState,A=L.electricityLevel,E=L.magneticField;return(0,e.createComponentVNode)(2,o.Section,{title:"Magnet #"+(w+1)+" Configuration",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:x?"power-off":"times",content:x?"On":"Off",selected:x,onClick:function(){function M(){return f("toggle_magnet_power",{id:T})}return M}()}),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Move Speed",children:(0,e.createComponentVNode)(2,o.Slider,{value:A,minValue:v.electricityLevel.min,maxValue:v.electricityLevel.max,onChange:function(){function M(D,P){return f("set_electricity_level",{id:T,electricityLevel:P})}return M}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Field Size",children:(0,e.createComponentVNode)(2,o.Slider,{value:E,minValue:v.magneticField.min,maxValue:v.magneticField.max,onChange:function(){function M(D,P){return f("set_magnetic_field",{id:T,magneticField:P})}return M}()})})]})},T)})]})]})}return k}()},95752:function(I,r,n){"use strict";r.__esModule=!0,r.MechBayConsole=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=r.MechBayConsole=function(){function V(y,S){var k=(0,a.useBackend)(S),h=k.act,l=k.data,c=l.recharge_port,f=c&&c.mech,d=f&&f.cell,i=f&&f.name;return(0,e.createComponentVNode)(2,o.Window,{width:400,height:155,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:i?"Mech status: "+i:"Mech status",textAlign:"center",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"sync",content:"Sync",onClick:function(){function s(){return h("reconnect")}return s}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Integrity",children:!c&&(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No power port detected. Please re-sync."})||!f&&(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No mech detected."})||(0,e.createComponentVNode)(2,t.ProgressBar,{value:f.health/f.maxhealth,ranges:{good:[.7,1/0],average:[.3,.7],bad:[-1/0,.3]}})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power",children:!c&&(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No power port detected. Please re-sync."})||!f&&(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No mech detected."})||!d&&(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No cell is installed."})||(0,e.createComponentVNode)(2,t.ProgressBar,{value:d.charge/d.maxcharge,ranges:{good:[.7,1/0],average:[.3,.7],bad:[-1/0,.3]},children:[(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:d.charge})," / "+d.maxcharge]})})]})})})})}return V}()},53668:function(I,r,n){"use strict";r.__esModule=!0,r.MechaControlConsole=void 0;var e=n(96524),a=n(36121),t=n(17899),o=n(24674),m=n(45493),V=n(78234),y=r.MechaControlConsole=function(){function S(k,h){var l=(0,t.useBackend)(h),c=l.act,f=l.data,d=f.beacons,i=f.stored_data;return i.length?(0,e.createComponentVNode)(2,m.Window,{width:420,height:500,children:(0,e.createComponentVNode)(2,m.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,o.Section,{title:"Log",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"window-close",onClick:function(){function s(){return c("clear_log")}return s}()}),children:i.map(function(s){return(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,o.Box,{color:"label",children:["(",s.time,")"]}),(0,e.createComponentVNode)(2,o.Box,{children:(0,V.decodeHtmlEntities)(s.message)})]},s.time)})})})}):(0,e.createComponentVNode)(2,m.Window,{width:420,height:500,children:(0,e.createComponentVNode)(2,m.Window.Content,{scrollable:!0,children:d.length&&d.map(function(s){return(0,e.createComponentVNode)(2,o.Section,{title:s.name,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{icon:"comment",onClick:function(){function u(){return c("send_message",{mt:s.uid})}return u}(),children:"Message"}),(0,e.createComponentVNode)(2,o.Button,{icon:"eye",onClick:function(){function u(){return c("get_log",{mt:s.uid})}return u}(),children:"View Log"}),(0,e.createComponentVNode)(2,o.Button.Confirm,{color:"red",content:"Sabotage",icon:"bomb",onClick:function(){function u(){return c("shock",{mt:s.uid})}return u}()})],4),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Health",children:(0,e.createComponentVNode)(2,o.ProgressBar,{ranges:{good:[s.maxHealth*.75,1/0],average:[s.maxHealth*.5,s.maxHealth*.75],bad:[-1/0,s.maxHealth*.5]},value:s.health,maxValue:s.maxHealth})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Cell Charge",children:s.cell&&(0,e.createComponentVNode)(2,o.ProgressBar,{ranges:{good:[s.cellMaxCharge*.75,1/0],average:[s.cellMaxCharge*.5,s.cellMaxCharge*.75],bad:[-1/0,s.cellMaxCharge*.5]},value:s.cellCharge,maxValue:s.cellMaxCharge})||(0,e.createComponentVNode)(2,o.NoticeBox,{children:"No Cell Installed"})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Air Tank",children:[s.airtank,"kPa"]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Pilot",children:s.pilot||"Unoccupied"}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Location",children:(0,V.toTitleCase)(s.location)||"Unknown"}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Active Equipment",children:s.active||"None"}),s.cargoMax&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Cargo Space",children:(0,e.createComponentVNode)(2,o.ProgressBar,{ranges:{bad:[s.cargoMax*.75,1/0],average:[s.cargoMax*.5,s.cargoMax*.75],good:[-1/0,s.cargoMax*.5]},value:s.cargoUsed,maxValue:s.cargoMax})})||null]})},s.name)})||(0,e.createComponentVNode)(2,o.NoticeBox,{children:"No mecha beacons found."})})})}return S}()},96467:function(I,r,n){"use strict";r.__esModule=!0,r.MedicalRecords=void 0;var e=n(96524),a=n(78234),t=n(17899),o=n(24674),m=n(99665),V=n(45493),y=n(68159),S=n(27527),k=n(84537),h={Minor:"lightgray",Medium:"good",Harmful:"average","Dangerous!":"bad","BIOHAZARD THREAT!":"darkred"},l={"*Deceased*":"deceased","*SSD*":"ssd","Physically Unfit":"physically_unfit",Disabled:"disabled"},c=function(x,A){(0,m.modalOpen)(x,"edit",{field:A.edit,value:A.value})},f=function(x,A){var E=x.args;return(0,e.createComponentVNode)(2,o.Section,{m:"-1rem",pb:"1.5rem",title:E.name||"Virus",children:(0,e.createComponentVNode)(2,o.Box,{mx:"0.5rem",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Number of stages",children:E.max_stages}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Spread",children:[E.spread_text," Transmission"]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Possible cure",children:E.cure}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Notes",children:E.desc}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Severity",color:h[E.severity],children:E.severity})]})})})},d=r.MedicalRecords=function(){function T(x,A){var E=(0,t.useBackend)(A),M=E.data,D=M.loginState,P=M.screen;if(!D.logged_in)return(0,e.createComponentVNode)(2,V.Window,{width:800,height:900,children:(0,e.createComponentVNode)(2,V.Window.Content,{children:(0,e.createComponentVNode)(2,S.LoginScreen)})});var R;return P===2?R=(0,e.createComponentVNode)(2,i):P===3?R=(0,e.createComponentVNode)(2,s):P===4?R=(0,e.createComponentVNode)(2,u):P===5?R=(0,e.createComponentVNode)(2,p):P===6?R=(0,e.createComponentVNode)(2,N):P===7&&(R=(0,e.createComponentVNode)(2,b)),(0,e.createComponentVNode)(2,V.Window,{width:800,height:900,children:[(0,e.createComponentVNode)(2,m.ComplexModal),(0,e.createComponentVNode)(2,V.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,y.LoginInfo),(0,e.createComponentVNode)(2,k.TemporaryNotice),(0,e.createComponentVNode)(2,w),R]})})]})}return T}(),i=function(x,A){var E=(0,t.useBackend)(A),M=E.act,D=E.data,P=D.records,R=(0,t.useLocalState)(A,"searchText",""),j=R[0],F=R[1],W=(0,t.useLocalState)(A,"sortId","name"),_=W[0],K=W[1],H=(0,t.useLocalState)(A,"sortOrder",!0),$=H[0],X=H[1];return(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{content:"Manage Records",icon:"wrench",ml:"0.25rem",onClick:function(){function J(){return M("screen",{screen:3})}return J}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Input,{fluid:!0,placeholder:"Search by Name, ID, Physical Status, or Mental Status",onInput:function(){function J(ae,re){return F(re)}return J}()})})]})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,mt:.5,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,o.Table,{className:"MedicalRecords__list",children:[(0,e.createComponentVNode)(2,o.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,B,{id:"name",children:"Name"}),(0,e.createComponentVNode)(2,B,{id:"id",children:"ID"}),(0,e.createComponentVNode)(2,B,{id:"rank",children:"Assignment"}),(0,e.createComponentVNode)(2,B,{id:"p_stat",children:"Patient Status"}),(0,e.createComponentVNode)(2,B,{id:"m_stat",children:"Mental Status"})]}),P.filter((0,a.createSearch)(j,function(J){return J.name+"|"+J.id+"|"+J.rank+"|"+J.p_stat+"|"+J.m_stat})).sort(function(J,ae){var re=$?1:-1;return J[_].localeCompare(ae[_])*re}).map(function(J){return(0,e.createComponentVNode)(2,o.Table.Row,{className:"MedicalRecords__listRow--"+l[J.p_stat],onClick:function(){function ae(){return M("view_record",{view_record:J.ref})}return ae}(),children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:"user"})," ",J.name]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:J.id}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:J.rank}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:J.p_stat}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:J.m_stat})]},J.id)})]})})})],4)},s=function(x,A){var E=(0,t.useBackend)(A),M=E.act;return(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,lineHeight:3,color:"translucent",icon:"download",content:"Backup to Disk",disabled:!0})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:[(0,e.createComponentVNode)(2,o.Button,{fluid:!0,lineHeight:3,color:"translucent",icon:"upload",content:"Upload from Disk",my:"0.5rem",disabled:!0})," "]}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Button.Confirm,{fluid:!0,lineHeight:3,icon:"trash",color:"translucent",content:"Delete All Medical Records",onClick:function(){function D(){return M("del_all_med_records")}return D}()})})]})})},u=function(x,A){var E=(0,t.useBackend)(A),M=E.act,D=E.data,P=D.medical,R=D.printing;return(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Stack.Item,{height:"235px",children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"General Data",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:R?"spinner":"print",disabled:R,iconSpin:!!R,content:"Print Record",ml:"0.5rem",onClick:function(){function j(){return M("print_record")}return j}()}),children:(0,e.createComponentVNode)(2,C)})}),!P||!P.fields?(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,color:"bad",children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,title:"Medical Data",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"pen",content:"Create New Record",onClick:function(){function j(){return M("new_med_record")}return j}()}),children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,o.Stack.Item,{bold:!0,grow:!0,textAlign:"center",fontSize:1.75,align:"center",color:"label",children:[(0,e.createComponentVNode)(2,o.Icon.Stack,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:"scroll",size:5,color:"gray"}),(0,e.createComponentVNode)(2,o.Icon,{name:"slash",size:5,color:"red"})]}),(0,e.createVNode)(1,"br"),"Medical records lost!"]})})})}):(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"Medical Data",buttons:(0,e.createComponentVNode)(2,o.Button.Confirm,{icon:"trash",disabled:!!P.empty,content:"Delete Medical Record",onClick:function(){function j(){return M("del_med_record")}return j}()}),children:(0,e.createComponentVNode)(2,v)})}),(0,e.createComponentVNode)(2,g)],4)],0)},C=function(x,A){var E=(0,t.useBackend)(A),M=E.data,D=M.general;return!D||!D.fields?(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,color:"bad",children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,children:"General records lost!"})})}):(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.LabeledList,{children:D.fields.map(function(P,R){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:P.field,children:[(0,e.createComponentVNode)(2,o.Box,{height:"20px",inline:!0,children:P.value}),!!P.edit&&(0,e.createComponentVNode)(2,o.Button,{icon:"pen",ml:"0.5rem",onClick:function(){function j(){return c(A,P)}return j}()})]},R)})})}),!!D.has_photos&&D.photos.map(function(P,R){return(0,e.createComponentVNode)(2,o.Stack.Item,{inline:!0,textAlign:"center",color:"label",ml:0,children:[(0,e.createVNode)(1,"img",null,null,1,{src:P,style:{width:"96px","margin-top":"2.5rem","margin-bottom":"0.5rem","-ms-interpolation-mode":"nearest-neighbor"}}),(0,e.createVNode)(1,"br"),"Photo #",R+1]},R)})]})},v=function(x,A){var E=(0,t.useBackend)(A),M=E.act,D=E.data,P=D.medical;return!P||!P.fields?(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,color:"bad",children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,children:"Medical records lost!"})})}):(0,e.createComponentVNode)(2,o.Stack,{children:(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.LabeledList,{children:P.fields.map(function(R,j){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:R.field,children:[(0,e.createComponentVNode)(2,o.Box,{height:"20px",inline:!0,children:R.value}),!!R.edit&&(0,e.createComponentVNode)(2,o.Button,{icon:"pen",ml:"0.5rem",onClick:function(){function F(){return c(A,R)}return F}()})]},j)})})})})},g=function(x,A){var E=(0,t.useBackend)(A),M=E.act,D=E.data,P=D.medical;return(0,e.createComponentVNode)(2,o.Stack.Item,{height:"150px",children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"Comments/Log",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"comment",content:"Add Entry",onClick:function(){function R(){return(0,m.modalOpen)(A,"add_comment")}return R}()}),children:P.comments.length===0?(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"No comments found."}):P.comments.map(function(R,j){return(0,e.createComponentVNode)(2,o.Box,{prewrap:!0,children:[(0,e.createComponentVNode)(2,o.Box,{color:"label",inline:!0,children:R.header}),(0,e.createVNode)(1,"br"),R.text,(0,e.createComponentVNode)(2,o.Button,{icon:"comment-slash",color:"bad",ml:"0.5rem",onClick:function(){function F(){return M("del_comment",{del_comment:j+1})}return F}()})]},j)})})})},p=function(x,A){var E=(0,t.useBackend)(A),M=E.act,D=E.data,P=D.virus,R=(0,t.useLocalState)(A,"searchText",""),j=R[0],F=R[1],W=(0,t.useLocalState)(A,"sortId2","name"),_=W[0],K=W[1],H=(0,t.useLocalState)(A,"sortOrder2",!0),$=H[0],X=H[1];return(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Input,{ml:"0.25rem",fluid:!0,placeholder:"Search by Name, Max Stages, or Severity",onInput:function(){function J(ae,re){return F(re)}return J}()})}),(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,mt:.5,children:(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,o.Table,{className:"MedicalRecords__list",children:[(0,e.createComponentVNode)(2,o.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,L,{id:"name",children:"Name"}),(0,e.createComponentVNode)(2,L,{id:"max_stages",children:"Max Stages"}),(0,e.createComponentVNode)(2,L,{id:"severity",children:"Severity"})]}),P.filter((0,a.createSearch)(j,function(J){return J.name+"|"+J.max_stages+"|"+J.severity})).sort(function(J,ae){var re=$?1:-1;return J[_].localeCompare(ae[_])*re}).map(function(J){return(0,e.createComponentVNode)(2,o.Table.Row,{className:"MedicalRecords__listVirus--"+J.severity,onClick:function(){function ae(){return M("vir",{vir:J.D})}return ae}(),children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:"virus"})," ",J.name]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:J.max_stages}),(0,e.createComponentVNode)(2,o.Table.Cell,{color:h[J.severity],children:J.severity})]},J.id)})]})})})})],4)},N=function(x,A){var E=(0,t.useBackend)(A),M=E.act,D=E.data,P=D.goals;return(0,e.createComponentVNode)(2,o.Section,{title:"Virology Goals",fill:!0,children:(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:P.length!==0&&P.map(function(R){return(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Section,{title:R.name,children:[(0,e.createComponentVNode)(2,o.Table,{children:(0,e.createComponentVNode)(2,o.Table.Row,{header:!0,children:(0,e.createComponentVNode)(2,o.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,o.ProgressBar,{value:R.delivered,minValue:0,maxValue:R.deliverygoal,ranges:{good:[R.deliverygoal*.5,1/0],average:[R.deliverygoal*.25,R.deliverygoal*.5],bad:[-1/0,R.deliverygoal*.25]},children:[R.delivered," / ",R.deliverygoal," Units"]})})})}),(0,e.createComponentVNode)(2,o.Box,{children:R.report})]})},R.id)})||(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Box,{textAlign:"center",children:"No Goals Detected"})})})})},b=function(x,A){var E=(0,t.useBackend)(A),M=E.act,D=E.data,P=D.medbots;return P.length===0?(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,color:"bad",children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,o.Stack.Item,{bold:!0,grow:!0,textAlign:"center",fontSize:1.75,align:"center",color:"label",children:[(0,e.createComponentVNode)(2,o.Icon.Stack,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:"robot",size:5,color:"gray"}),(0,e.createComponentVNode)(2,o.Icon,{name:"slash",size:5,color:"red"})]}),(0,e.createVNode)(1,"br"),"There are no Medibots."]})})})}):(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,o.Table,{className:"MedicalRecords__list",children:[(0,e.createComponentVNode)(2,o.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Name"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Area"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Status"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Chemicals"})]}),P.map(function(R){return(0,e.createComponentVNode)(2,o.Table.Row,{className:"MedicalRecords__listMedbot--"+R.on,children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:"medical"})," ",R.name]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:[R.area||"Unknown"," (",R.x,", ",R.y,")"]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:R.on?(0,e.createComponentVNode)(2,o.Box,{color:"good",children:"Online"}):(0,e.createComponentVNode)(2,o.Box,{color:"average",children:"Offline"})}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:R.use_beaker?"Reservoir: "+R.total_volume+"/"+R.maximum_volume:"Using internal synthesizer"})]},R.id)})]})})})},B=function(x,A){var E=(0,t.useLocalState)(A,"sortId","name"),M=E[0],D=E[1],P=(0,t.useLocalState)(A,"sortOrder",!0),R=P[0],j=P[1],F=x.id,W=x.children;return(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,color:M!==F&&"transparent",onClick:function(){function _(){M===F?j(!R):(D(F),j(!0))}return _}(),children:[W,M===F&&(0,e.createComponentVNode)(2,o.Icon,{name:R?"sort-up":"sort-down",ml:"0.25rem;"})]})})},L=function(x,A){var E=(0,t.useLocalState)(A,"sortId2","name"),M=E[0],D=E[1],P=(0,t.useLocalState)(A,"sortOrder2",!0),R=P[0],j=P[1],F=x.id,W=x.children;return(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,color:M!==F&&"transparent",onClick:function(){function _(){M===F?j(!R):(D(F),j(!0))}return _}(),children:[W,M===F&&(0,e.createComponentVNode)(2,o.Icon,{name:R?"sort-up":"sort-down",ml:"0.25rem;"})]})})},w=function(x,A){var E=(0,t.useBackend)(A),M=E.act,D=E.data,P=D.screen,R=D.general;return(0,e.createComponentVNode)(2,o.Stack.Item,{m:0,children:(0,e.createComponentVNode)(2,o.Tabs,{children:[(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"list",selected:P===2,onClick:function(){function j(){M("screen",{screen:2})}return j}(),children:"List Records"}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"database",selected:P===5,onClick:function(){function j(){M("screen",{screen:5})}return j}(),children:"Virus Database"}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"vial",selected:P===6,onClick:function(){function j(){M("screen",{screen:6})}return j}(),children:"Virology Goals"}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"plus-square",selected:P===7,onClick:function(){function j(){return M("screen",{screen:7})}return j}(),children:"Medibot Tracking"}),P===3&&(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"wrench",selected:P===3,children:"Record Maintenance"}),P===4&&R&&!R.empty&&(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"file",selected:P===4,children:["Record: ",R.fields[0].value]})]})})};(0,m.modalRegisterBodyOverride)("virus",f)},68211:function(I,r,n){"use strict";r.__esModule=!0,r.MerchVendor=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=function(h,l){var c=(0,a.useBackend)(l),f=c.act,d=c.data,i=h.product,s=h.productImage,u=h.productCategory,C=d.user_money;return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,children:(0,e.createVNode)(1,"img",null,null,1,{src:"data:image/jpeg;base64,"+s,style:{"vertical-align":"middle",width:"32px",margin:"0px","margin-left":"0px"}})}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:i.name}),(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{disabled:i.price>C,icon:"shopping-cart",content:i.price,textAlign:"left",onClick:function(){function v(){return f("purchase",{name:i.name,category:u})}return v}()})})]})},V=function(h,l){var c=(0,a.useBackend)(l),f=c.data,d=(0,a.useLocalState)(l,"tabIndex",1),i=d[0],s=f.products,u=f.imagelist,C=["apparel","toy","decoration"];return(0,e.createComponentVNode)(2,t.Table,{children:s[C[i]].map(function(v){return(0,e.createComponentVNode)(2,m,{product:v,productImage:u[v.path],productCategory:C[i]},v.name)})})},y=r.MerchVendor=function(){function k(h,l){var c=(0,a.useBackend)(l),f=c.act,d=c.data,i=d.user_cash,s=d.inserted_cash;return(0,e.createComponentVNode)(2,o.Window,{title:"Merch Computer",width:450,height:600,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"User",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{color:"light-grey",inline:!0,mr:"0.5rem",children:["There is ",(0,e.createVNode)(1,"b",null,s,0)," credits inserted."]}),(0,e.createComponentVNode)(2,t.Button,{disabled:!s,icon:"money-bill-wave-alt",content:"Dispense Change",textAlign:"left",onClick:function(){function u(){return f("change")}return u}()})],4),children:(0,e.createComponentVNode)(2,t.Stack.Item,{children:["Doing your job and not getting any recognition at work? Well, welcome to the merch shop! Here, you can buy cool things in exchange for money you earn when you have completed your Job Objectives.",i!==null&&(0,e.createComponentVNode)(2,t.Box,{mt:"0.5rem",children:["Your balance is ",(0,e.createVNode)(1,"b",null,[i||0,(0,e.createTextVNode)(" credits")],0),"."]})]})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Products",children:[(0,e.createComponentVNode)(2,S),(0,e.createComponentVNode)(2,V)]})})]})})})}return k}(),S=function(h,l){var c=(0,a.useBackend)(l),f=c.data,d=(0,a.useLocalState)(l,"tabIndex",1),i=d[0],s=d[1],u=f.login_state;return(0,e.createComponentVNode)(2,t.Tabs,{children:[(0,e.createComponentVNode)(2,t.Tabs.Tab,{icon:"dice",selected:i===1,onClick:function(){function C(){return s(1)}return C}(),children:"Toys"}),(0,e.createComponentVNode)(2,t.Tabs.Tab,{icon:"flag",selected:i===2,onClick:function(){function C(){return s(2)}return C}(),children:"Decorations"})]})}},14162:function(I,r,n){"use strict";r.__esModule=!0,r.MiningVendor=void 0;var e=n(96524),a=n(78234),t=n(17899),o=n(24674),m=n(45493),V=["title","items"];function y(d,i){if(d==null)return{};var s={},u=Object.keys(d),C,v;for(v=0;v=0)&&(s[C]=d[C]);return s}var S={Alphabetical:function(){function d(i,s){return i-s}return d}(),Availability:function(){function d(i,s){return-(i.affordable-s.affordable)}return d}(),Price:function(){function d(i,s){return i.price-s.price}return d}()},k=r.MiningVendor=function(){function d(i,s){return(0,e.createComponentVNode)(2,m.Window,{width:400,height:455,children:(0,e.createComponentVNode)(2,m.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,h),(0,e.createComponentVNode)(2,c),(0,e.createComponentVNode)(2,l)]})})})}return d}(),h=function(i,s){var u=(0,t.useBackend)(s),C=u.act,v=u.data,g=v.has_id,p=v.id;return(0,e.createComponentVNode)(2,o.NoticeBox,{success:g,children:g?(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Box,{inline:!0,verticalAlign:"middle",style:{float:"left"},children:["Logged in as ",p.name,".",(0,e.createVNode)(1,"br"),"You have ",p.points.toLocaleString("en-US")," points."]}),(0,e.createComponentVNode)(2,o.Button,{icon:"eject",content:"Eject ID",style:{float:"right"},onClick:function(){function N(){return C("logoff")}return N}()}),(0,e.createComponentVNode)(2,o.Box,{style:{clear:"both"}})],4):"Please insert an ID in order to make purchases."})},l=function(i,s){var u=(0,t.useBackend)(s),C=u.act,v=u.data,g=v.has_id,p=v.id,N=v.items,b=(0,t.useLocalState)(s,"search",""),B=b[0],L=b[1],w=(0,t.useLocalState)(s,"sort","Alphabetical"),T=w[0],x=w[1],A=(0,t.useLocalState)(s,"descending",!1),E=A[0],M=A[1],D=(0,a.createSearch)(B,function(j){return j[0]}),P=!1,R=Object.entries(N).map(function(j,F){var W=Object.entries(j[1]).filter(D).map(function(_){return _[1].affordable=g&&p.points>=_[1].price,_[1]}).sort(S[T]);if(W.length!==0)return E&&(W=W.reverse()),P=!0,(0,e.createComponentVNode)(2,f,{title:j[0],items:W},j[0])});return(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,mt:.5,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,children:P?R:(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"No items matching your criteria was found!"})})})},c=function(i,s){var u=(0,t.useLocalState)(s,"search",""),C=u[0],v=u[1],g=(0,t.useLocalState)(s,"sort",""),p=g[0],N=g[1],b=(0,t.useLocalState)(s,"descending",!1),B=b[0],L=b[1];return(0,e.createComponentVNode)(2,o.Box,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Input,{mt:.2,placeholder:"Search by item name..",width:"100%",onInput:function(){function w(T,x){return v(x)}return w}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"30%",children:(0,e.createComponentVNode)(2,o.Dropdown,{selected:"Alphabetical",options:Object.keys(S),width:"100%",onSelected:function(){function w(T){return N(T)}return w}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{icon:B?"arrow-down":"arrow-up",height:"21px",tooltip:B?"Descending order":"Ascending order",tooltipPosition:"bottom-start",onClick:function(){function w(){return L(!B)}return w}()})})]})})},f=function(i,s){var u=(0,t.useBackend)(s),C=u.act,v=u.data,g=i.title,p=i.items,N=y(i,V);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Collapsible,Object.assign({open:!0,title:g},N,{children:p.map(function(b){return(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,o.Box,{inline:!0,verticalAlign:"middle",lineHeight:"20px",style:{float:"left"},children:b.name}),(0,e.createComponentVNode)(2,o.Button,{disabled:!v.has_id||v.id.points0?'\u0420\u0435\u0437\u0443\u043B\u044C\u0442\u0430\u0442\u044B \u043F\u043E\u0438\u0441\u043A\u0430 "'+i+'"':"\u0412\u0441\u0435 \u043C\u043E\u0434\u0438\u0444\u0438\u043A\u0430\u0446\u0438\u0438 - "+f.length,children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,o.Stack.Item,{children:f.filter(function(C){return C.name&&(i.length>0?C.name.toLowerCase().includes(i.toLowerCase())||C.desc.toLowerCase().includes(i.toLowerCase())||C.author.toLowerCase().includes(i.toLowerCase()):!0)}).map(function(C){return(0,e.createComponentVNode)(2,o.Collapsible,{title:C.name,children:[(0,e.createComponentVNode)(2,o.Section,{title:"\u0410\u0432\u0442\u043E\u0440\u044B",children:C.author}),(0,e.createComponentVNode)(2,o.Section,{title:"\u041E\u043F\u0438\u0441\u0430\u043D\u0438\u0435",children:C.desc})]},C.name)})})})})})],4)}return y}()},68977:function(I,r,n){"use strict";r.__esModule=!0,r.NTRecruiter=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=r.NTRecruiter=function(){function V(y,S){var k=(0,a.useBackend)(S),h=k.act,l=k.data,c=l.gamestatus,f=l.cand_name,d=l.cand_birth,i=l.cand_age,s=l.cand_species,u=l.cand_planet,C=l.cand_job,v=l.cand_records,g=l.cand_curriculum,p=l.total_curriculums,N=l.reason;if(c===0)return(0,e.createComponentVNode)(2,o.Window,{width:400,height:550,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{pt:"45%",fontSize:"31px",color:"white",textAlign:"center",bold:!0,children:"Nanotrasen Recruiter Simulator"}),(0,e.createComponentVNode)(2,t.Stack.Item,{pt:"1%",fontSize:"16px",textAlign:"center",color:"label",children:"Work as the Nanotrasen recruiter and avoid hiring incompetent employees!"})]})}),(0,e.createComponentVNode)(2,t.Section,{children:[(0,e.createComponentVNode)(2,t.Button,{textAlign:"center",lineHeight:2,fluid:!0,icon:"play",color:"green",content:"Begin Shift",onClick:function(){function b(){return h("start_game")}return b}()}),(0,e.createComponentVNode)(2,t.Button,{textAlign:"center",lineHeight:2,fluid:!0,icon:"info",color:"blue",content:"Guide",onClick:function(){function b(){return h("instructions")}return b}()})]})]})})});if(c===1)return(0,e.createComponentVNode)(2,o.Window,{width:400,height:550,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,color:"grey",title:"Guide",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-left",content:"Main Menu",onClick:function(){function b(){return h("back_to_menu")}return b}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"1#",color:"silver",children:["To win this game you must hire/dismiss"," ",(0,e.createVNode)(1,"b",null,p,0)," candidates, one wrongly made choice leads to a game over."]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"2#",color:"silver",children:"Make the right choice by truly putting yourself into the skin of a recruiter working for Nanotrasen!"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"3#",color:"silver",children:[(0,e.createVNode)(1,"b",null,"Unique",16)," characters may appear, pay attention to them!"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"4#",color:"silver",children:"Make sure to pay attention to details like age, planet names, the requested job and even the species of the candidate!"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"5#",color:"silver",children:["Not every employment record is good, remember to make your choice based on the ",(0,e.createVNode)(1,"b",null,"company morals",16),"!"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"6#",color:"silver",children:"The planet of origin has no restriction on the species of the candidate, don't think too much when you see humans that came from Boron!"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"7#",color:"silver",children:["Pay attention to ",(0,e.createVNode)(1,"b",null,"typos",16)," and ",(0,e.createVNode)(1,"b",null,"missing words",16),", these do make for bad applications!"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"8#",color:"silver",children:["Remember, you are recruiting people to work at one of the many NT stations, so no hiring for ",(0,e.createVNode)(1,"b",null,"jobs",16)," that they"," ",(0,e.createVNode)(1,"b",null,"don't offer",16),"!"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"9#",color:"silver",children:["Keep your eyes open for incompatible ",(0,e.createVNode)(1,"b",null,"naming schemes",16),", no company wants a Vox named Joe!"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"10#",color:"silver",children:["For some unknown reason ",(0,e.createVNode)(1,"b",null,"clowns",16)," are never denied by the company, no matter what."]})]})})})})});if(c===2)return(0,e.createComponentVNode)(2,o.Window,{width:400,height:550,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,color:"label",fontSize:"14px",title:"Employment Applications",children:[(0,e.createComponentVNode)(2,t.Box,{fontSize:"24px",textAlign:"center",color:"silver",bold:!0,children:["Candidate Number #",g]}),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Name",color:"silver",children:(0,e.createVNode)(1,"b",null,f,0)}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Species",color:"silver",children:(0,e.createVNode)(1,"b",null,s,0)}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Age",color:"silver",children:(0,e.createVNode)(1,"b",null,i,0)}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Date of Birth",color:"silver",children:(0,e.createVNode)(1,"b",null,d,0)}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Planet of Origin",color:"silver",children:(0,e.createVNode)(1,"b",null,u,0)}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Requested Job",color:"silver",children:(0,e.createVNode)(1,"b",null,C,0)}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Employment Records",color:"silver",children:(0,e.createVNode)(1,"b",null,v,0)})]})]})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Stamp the application!",color:"grey",textAlign:"center",children:(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,basis:0,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,color:"red",content:"Dismiss",fontSize:"150%",icon:"ban",lineHeight:4.5,onClick:function(){function b(){return h("dismiss")}return b}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,basis:0,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,color:"green",content:"Hire",fontSize:"150%",icon:"arrow-circle-up",lineHeight:4.5,onClick:function(){function b(){return h("hire")}return b}()})})]})})})]})})});if(c===3)return(0,e.createComponentVNode)(2,o.Window,{width:400,height:550,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{pt:"40%",fill:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,color:"red",fontSize:"50px",textAlign:"center",children:"Game Over"}),(0,e.createComponentVNode)(2,t.Stack.Item,{fontSize:"15px",color:"label",textAlign:"center",children:N}),(0,e.createComponentVNode)(2,t.Stack.Item,{color:"blue",fontSize:"20px",textAlign:"center",pt:"10px",children:["FINAL SCORE: ",g-1,"/",p]})]})}),(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.Button,{lineHeight:4,fluid:!0,icon:"arrow-left",content:"Main Menu",onClick:function(){function b(){return h("back_to_menu")}return b}()})})]})})})}return V}()},17067:function(I,r,n){"use strict";r.__esModule=!0,r.Newscaster=void 0;var e=n(96524),a=n(28234),t=n(17899),o=n(24674),m=n(38424),V=n(45493),y=n(99665),S=n(84537),k=["icon","iconSpin","selected","security","onClick","title","children"],h=["name"];function l(L,w){if(L==null)return{};var T={},x=Object.keys(L),A,E;for(E=0;E=0)&&(T[A]=L[A]);return T}var c=128,f=["security","engineering","medical","science","service","supply"],d={security:{title:"Security",fluff_text:"Help keep the crew safe"},engineering:{title:"Engineering",fluff_text:"Ensure the station runs smoothly"},medical:{title:"Medical",fluff_text:"Practice medicine and save lives"},science:{title:"Science",fluff_text:"Develop new technologies"},service:{title:"Service",fluff_text:"Provide amenities to the crew"},supply:{title:"Supply",fluff_text:"Keep the station supplied"}},i=r.Newscaster=function(){function L(w,T){var x=(0,t.useBackend)(T),A=x.act,E=x.data,M=E.is_security,D=E.is_admin,P=E.is_silent,R=E.is_printing,j=E.screen,F=E.channels,W=E.channel_idx,_=W===void 0?-1:W,K=(0,t.useLocalState)(T,"menuOpen",!1),H=K[0],$=K[1],X=(0,t.useLocalState)(T,"viewingPhoto",""),J=X[0],ae=X[1],re=(0,t.useLocalState)(T,"censorMode",!1),me=re[0],pe=re[1],Ce;j===0||j===2?Ce=(0,e.createComponentVNode)(2,u):j===1&&(Ce=(0,e.createComponentVNode)(2,C));var ke=F.reduce(function(he,oe){return he+oe.unread},0);return(0,e.createComponentVNode)(2,V.Window,{theme:M&&"security",width:800,height:600,children:[J?(0,e.createComponentVNode)(2,p):(0,e.createComponentVNode)(2,y.ComplexModal,{maxWidth:window.innerWidth/1.5+"px",maxHeight:window.innerHeight/1.5+"px"}),(0,e.createComponentVNode)(2,V.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,o.Section,{fill:!0,className:(0,a.classes)(["Newscaster__menu",H&&"Newscaster__menu--open"]),children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:[(0,e.createComponentVNode)(2,s,{icon:"bars",title:"Toggle Menu",onClick:function(){function he(){return $(!H)}return he}()}),(0,e.createComponentVNode)(2,s,{icon:"newspaper",title:"Headlines",selected:j===0,onClick:function(){function he(){return A("headlines")}return he}(),children:ke>0&&(0,e.createComponentVNode)(2,o.Box,{className:"Newscaster__menuButton--unread",children:ke>=10?"9+":ke})}),(0,e.createComponentVNode)(2,s,{icon:"briefcase",title:"Job Openings",selected:j===1,onClick:function(){function he(){return A("jobs")}return he}()}),(0,e.createComponentVNode)(2,o.Divider)]}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:F.map(function(he){return(0,e.createComponentVNode)(2,s,{icon:he.icon,title:he.name,selected:j===2&&F[_-1]===he,onClick:function(){function oe(){return A("channel",{uid:he.uid})}return oe}(),children:he.unread>0&&(0,e.createComponentVNode)(2,o.Box,{className:"Newscaster__menuButton--unread",children:he.unread>=10?"9+":he.unread})},he)})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:[(0,e.createComponentVNode)(2,o.Divider),(!!M||!!D)&&(0,e.createFragment)([(0,e.createComponentVNode)(2,s,{security:!0,icon:"exclamation-circle",title:"Edit Wanted Notice",mb:"0.5rem",onClick:function(){function he(){return(0,y.modalOpen)(T,"wanted_notice")}return he}()}),(0,e.createComponentVNode)(2,s,{security:!0,icon:me?"minus-square":"minus-square-o",title:"Censor Mode: "+(me?"On":"Off"),mb:"0.5rem",onClick:function(){function he(){return pe(!me)}return he}()}),(0,e.createComponentVNode)(2,o.Divider)],4),(0,e.createComponentVNode)(2,s,{icon:"pen-alt",title:"New Story",mb:"0.5rem",onClick:function(){function he(){return(0,y.modalOpen)(T,"create_story")}return he}()}),(0,e.createComponentVNode)(2,s,{icon:"plus-circle",title:"New Channel",onClick:function(){function he(){return(0,y.modalOpen)(T,"create_channel")}return he}()}),(0,e.createComponentVNode)(2,o.Divider),(0,e.createComponentVNode)(2,s,{icon:R?"spinner":"print",iconSpin:R,title:R?"Printing...":"Print Newspaper",onClick:function(){function he(){return A("print_newspaper")}return he}()}),(0,e.createComponentVNode)(2,s,{icon:P?"volume-mute":"volume-up",title:"Mute: "+(P?"On":"Off"),onClick:function(){function he(){return A("toggle_mute")}return he}()})]})]})}),(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,width:"100%",children:[(0,e.createComponentVNode)(2,S.TemporaryNotice),Ce]})]})})]})}return L}(),s=function(w,T){var x=(0,t.useBackend)(T),A=x.act,E=w.icon,M=E===void 0?"":E,D=w.iconSpin,P=w.selected,R=P===void 0?!1:P,j=w.security,F=j===void 0?!1:j,W=w.onClick,_=w.title,K=w.children,H=l(w,k);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Box,Object.assign({className:(0,a.classes)(["Newscaster__menuButton",R&&"Newscaster__menuButton--selected",F&&"Newscaster__menuButton--security"]),onClick:W},H,{children:[R&&(0,e.createComponentVNode)(2,o.Box,{className:"Newscaster__menuButton--selectedBar"}),(0,e.createComponentVNode)(2,o.Icon,{name:M,spin:D,size:"2"}),(0,e.createComponentVNode)(2,o.Box,{className:"Newscaster__menuButton--title",children:_}),K]})))},u=function(w,T){var x=(0,t.useBackend)(T),A=x.act,E=x.data,M=E.screen,D=E.is_admin,P=E.channel_idx,R=E.channel_can_manage,j=E.channels,F=E.stories,W=E.wanted,_=(0,t.useLocalState)(T,"fullStories",[]),K=_[0],H=_[1],$=(0,t.useLocalState)(T,"censorMode",!1),X=$[0],J=$[1],ae=M===2&&P>-1?j[P-1]:null;return(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[!!W&&(0,e.createComponentVNode)(2,v,{story:W,wanted:!0}),(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Icon,{name:ae?ae.icon:"newspaper",mr:"0.5rem"}),ae?ae.name:"Headlines"],0),children:F.length>0?F.slice().reverse().map(function(re){return!K.includes(re.uid)&&re.body.length+3>c?Object.assign({},re,{body_short:re.body.substr(0,c-4)+"..."}):re}).map(function(re,me){return(0,e.createComponentVNode)(2,v,{story:re},me)}):(0,e.createComponentVNode)(2,o.Box,{className:"Newscaster__emptyNotice",children:[(0,e.createComponentVNode)(2,o.Icon,{name:"times",size:"3"}),(0,e.createVNode)(1,"br"),"There are no stories at this time."]})}),!!ae&&(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,height:"40%",title:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Icon,{name:"info-circle",mr:"0.5rem"}),(0,e.createTextVNode)("About")],4),buttons:(0,e.createFragment)([X&&(0,e.createComponentVNode)(2,o.Button,{disabled:!!ae.admin&&!D,selected:ae.censored,icon:ae.censored?"comment-slash":"comment",content:ae.censored?"Uncensor Channel":"Censor Channel",mr:"0.5rem",onClick:function(){function re(){return A("censor_channel",{uid:ae.uid})}return re}()}),(0,e.createComponentVNode)(2,o.Button,{disabled:!R,icon:"cog",content:"Manage",onClick:function(){function re(){return(0,y.modalOpen)(T,"manage_channel",{uid:ae.uid})}return re}()})],0),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Description",children:ae.description||"N/A"}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Owner",children:ae.author||"N/A"}),!!D&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Ckey",children:ae.author_ckey}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Public",children:ae.public?"Yes":"No"}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Total Views",children:[(0,e.createComponentVNode)(2,o.Icon,{name:"eye",mr:"0.5rem"}),F.reduce(function(re,me){return re+me.view_count},0).toLocaleString()]})]})})]})},C=function(w,T){var x=(0,t.useBackend)(T),A=x.act,E=x.data,M=E.jobs,D=E.wanted,P=Object.entries(M).reduce(function(R,j){var F=j[0],W=j[1];return R+W.length},0);return(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[!!D&&(0,e.createComponentVNode)(2,v,{story:D,wanted:!0}),(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Icon,{name:"briefcase",mr:"0.5rem"}),(0,e.createTextVNode)("Job Openings")],4),buttons:(0,e.createComponentVNode)(2,o.Box,{mt:"0.25rem",color:"label",children:"Work for a better future at Nanotrasen"}),children:P>0?f.map(function(R){return Object.assign({},d[R],{id:R,jobs:M[R]})}).filter(function(R){return!!R&&R.jobs.length>0}).map(function(R){return(0,e.createComponentVNode)(2,o.Section,{className:(0,a.classes)(["Newscaster__jobCategory","Newscaster__jobCategory--"+R.id]),title:R.title,buttons:(0,e.createComponentVNode)(2,o.Box,{mt:"0.25rem",color:"label",children:R.fluff_text}),children:R.jobs.map(function(j){return(0,e.createComponentVNode)(2,o.Box,{class:(0,a.classes)(["Newscaster__jobOpening",!!j.is_command&&"Newscaster__jobOpening--command"]),children:["\u2022 ",j.title]},j.title)})},R.id)}):(0,e.createComponentVNode)(2,o.Box,{className:"Newscaster__emptyNotice",children:[(0,e.createComponentVNode)(2,o.Icon,{name:"times",size:"3"}),(0,e.createVNode)(1,"br"),"There are no openings at this time."]})}),(0,e.createComponentVNode)(2,o.Section,{height:"17%",children:["Interested in serving Nanotrasen?",(0,e.createVNode)(1,"br"),"Sign up for any of the above position now at the"," ",(0,e.createVNode)(1,"b",null,"Head of Personnel's Office!",16),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,o.Box,{as:"small",color:"label",children:"By signing up for a job at Nanotrasen, you agree to transfer your soul to the loyalty department of the omnipresent and helpful watcher of humanity."})]})]})},v=function(w,T){var x=(0,t.useBackend)(T),A=x.act,E=x.data,M=w.story,D=w.wanted,P=D===void 0?!1:D,R=E.is_admin,j=(0,t.useLocalState)(T,"fullStories",[]),F=j[0],W=j[1],_=(0,t.useLocalState)(T,"censorMode",!1),K=_[0],H=_[1];return(0,e.createComponentVNode)(2,o.Section,{className:(0,a.classes)(["Newscaster__story",P&&"Newscaster__story--wanted"]),title:(0,e.createFragment)([P&&(0,e.createComponentVNode)(2,o.Icon,{name:"exclamation-circle",mr:"0.5rem"}),M.censor_flags&2&&"[REDACTED]"||M.title||"News from "+M.author],0),buttons:(0,e.createComponentVNode)(2,o.Box,{mt:"0.25rem",children:(0,e.createComponentVNode)(2,o.Box,{color:"label",children:[!P&&K&&(0,e.createComponentVNode)(2,o.Box,{inline:!0,children:(0,e.createComponentVNode)(2,o.Button,{enabled:M.censor_flags&2,icon:M.censor_flags&2?"comment-slash":"comment",content:M.censor_flags&2?"Uncensor":"Censor",mr:"0.5rem",mt:"-0.25rem",onClick:function(){function $(){return A("censor_story",{uid:M.uid})}return $}()})}),(0,e.createComponentVNode)(2,o.Box,{inline:!0,children:[(0,e.createComponentVNode)(2,o.Icon,{name:"user"})," ",M.author," |\xA0",!!R&&(0,e.createFragment)([(0,e.createTextVNode)("ckey: "),M.author_ckey,(0,e.createTextVNode)(" |\xA0")],0),!P&&(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Icon,{name:"eye"}),(0,e.createTextVNode)(" "),M.view_count.toLocaleString(),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("|\xA0")],0),(0,e.createComponentVNode)(2,o.Icon,{name:"clock"})," ",(0,m.timeAgo)(M.publish_time,E.world_time)]})]})}),children:(0,e.createComponentVNode)(2,o.Box,{children:M.censor_flags&2?"[REDACTED]":(0,e.createFragment)([!!M.has_photo&&(0,e.createComponentVNode)(2,g,{name:"story_photo_"+M.uid+".png",float:"right",ml:"0.5rem"}),(M.body_short||M.body).split("\n").map(function($,X){return(0,e.createComponentVNode)(2,o.Box,{children:$||(0,e.createVNode)(1,"br")},X)}),M.body_short&&(0,e.createComponentVNode)(2,o.Button,{content:"Read more..",mt:"0.5rem",onClick:function(){function $(){return W([].concat(F,[M.uid]))}return $}()}),(0,e.createComponentVNode)(2,o.Box,{clear:"right"})],0)})})},g=function(w,T){var x=w.name,A=l(w,h),E=(0,t.useLocalState)(T,"viewingPhoto",""),M=E[0],D=E[1];return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Box,Object.assign({as:"img",className:"Newscaster__photo",src:x,onClick:function(){function P(){return D(x)}return P}()},A)))},p=function(w,T){var x=(0,t.useLocalState)(T,"viewingPhoto",""),A=x[0],E=x[1];return(0,e.createComponentVNode)(2,o.Modal,{className:"Newscaster__photoZoom",children:[(0,e.createComponentVNode)(2,o.Box,{as:"img",src:A}),(0,e.createComponentVNode)(2,o.Button,{icon:"times",content:"Close",color:"grey",mt:"1rem",onClick:function(){function M(){return E("")}return M}()})]})},N=function(w,T){var x=(0,t.useBackend)(T),A=x.act,E=x.data,M=!!w.args.uid&&E.channels.filter(function(q){return q.uid===w.args.uid}).pop();if(w.id==="manage_channel"&&!M){(0,y.modalClose)(T);return}var D=w.id==="manage_channel",P=!!w.args.is_admin,R=w.args.scanned_user,j=(0,t.useLocalState)(T,"author",(M==null?void 0:M.author)||R||"Unknown"),F=j[0],W=j[1],_=(0,t.useLocalState)(T,"name",(M==null?void 0:M.name)||""),K=_[0],H=_[1],$=(0,t.useLocalState)(T,"description",(M==null?void 0:M.description)||""),X=$[0],J=$[1],ae=(0,t.useLocalState)(T,"icon",(M==null?void 0:M.icon)||"newspaper"),re=ae[0],me=ae[1],pe=(0,t.useLocalState)(T,"isPublic",D?!!(M!=null&&M.public):!1),Ce=pe[0],ke=pe[1],he=(0,t.useLocalState)(T,"adminLocked",(M==null?void 0:M.admin)===1||!1),oe=he[0],Z=he[1];return(0,e.createComponentVNode)(2,o.Section,{m:"-1rem",pb:"1.5rem",title:D?"Manage "+M.name:"Create New Channel",children:[(0,e.createComponentVNode)(2,o.Box,{mx:"0.5rem",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Owner",children:(0,e.createComponentVNode)(2,o.Input,{disabled:!P,width:"100%",value:F,onInput:function(){function q(ue,se){return W(se)}return q}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Name",children:(0,e.createComponentVNode)(2,o.Input,{width:"100%",placeholder:"50 characters max.",maxLength:"50",value:K,onInput:function(){function q(ue,se){return H(se)}return q}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Description (optional)",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Input,{multiline:!0,width:"100%",placeholder:"128 characters max.",maxLength:"128",value:X,onInput:function(){function q(ue,se){return J(se)}return q}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Icon",children:[(0,e.createComponentVNode)(2,o.Input,{disabled:!P,value:re,width:"35%",mr:"0.5rem",onInput:function(){function q(ue,se){return me(se)}return q}()}),(0,e.createComponentVNode)(2,o.Icon,{name:re,size:"2",verticalAlign:"middle",mr:"0.5rem"})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Accept Public Stories?",children:(0,e.createComponentVNode)(2,o.Button,{selected:Ce,icon:Ce?"toggle-on":"toggle-off",content:Ce?"Yes":"No",onClick:function(){function q(){return ke(!Ce)}return q}()})}),P&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"CentComm Lock",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Button,{selected:oe,icon:oe?"lock":"lock-open",content:oe?"On":"Off",tooltip:"Locking this channel will make it editable by nobody but CentComm officers.",tooltipPosition:"top",onClick:function(){function q(){return Z(!oe)}return q}()})})]})}),(0,e.createComponentVNode)(2,o.Button.Confirm,{disabled:F.trim().length===0||K.trim().length===0,icon:"check",color:"good",content:"Submit",position:"absolute",right:"1rem",bottom:"-0.75rem",onClick:function(){function q(){(0,y.modalAnswer)(T,w.id,"",{author:F,name:K.substr(0,49),description:X.substr(0,128),icon:re,public:Ce?1:0,admin_locked:oe?1:0})}return q}()})]})},b=function(w,T){var x=(0,t.useBackend)(T),A=x.act,E=x.data,M=E.photo,D=E.channels,P=E.channel_idx,R=P===void 0?-1:P,j=!!w.args.is_admin,F=w.args.scanned_user,W=D.slice().sort(function(q,ue){if(R<0)return 0;var se=D[R-1];if(se.uid===q.uid)return-1;if(se.uid===ue.uid)return 1}).filter(function(q){return j||!q.frozen&&(q.author===F||!!q.public)}),_=(0,t.useLocalState)(T,"author",F||"Unknown"),K=_[0],H=_[1],$=(0,t.useLocalState)(T,"channel",W.length>0?W[0].name:""),X=$[0],J=$[1],ae=(0,t.useLocalState)(T,"title",""),re=ae[0],me=ae[1],pe=(0,t.useLocalState)(T,"body",""),Ce=pe[0],ke=pe[1],he=(0,t.useLocalState)(T,"adminLocked",!1),oe=he[0],Z=he[1];return(0,e.createComponentVNode)(2,o.Section,{m:"-1rem",pb:"1.5rem",title:"Create New Story",children:[(0,e.createComponentVNode)(2,o.Box,{mx:"0.5rem",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Author",children:(0,e.createComponentVNode)(2,o.Input,{disabled:!j,width:"100%",value:K,onInput:function(){function q(ue,se){return H(se)}return q}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Channel",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Dropdown,{selected:X,options:W.map(function(q){return q.name}),mb:"0",width:"100%",onSelected:function(){function q(ue){return J(ue)}return q}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Divider),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Title",children:(0,e.createComponentVNode)(2,o.Input,{width:"100%",placeholder:"128 characters max.",maxLength:"128",value:re,onInput:function(){function q(ue,se){return me(se)}return q}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Story Text",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Input,{fluid:!0,multiline:!0,placeholder:"1024 characters max.",maxLength:"1024",rows:"8",width:"100%",value:Ce,onInput:function(){function q(ue,se){return ke(se)}return q}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Photo (optional)",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Button,{icon:"image",selected:M,content:M?"Eject: "+M.name:"Insert Photo",tooltip:!M&&"Attach a photo to this story by holding the photograph in your hand.",onClick:function(){function q(){return A(M?"eject_photo":"attach_photo")}return q}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Preview",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Section,{noTopPadding:!0,title:re,maxHeight:"13.5rem",overflow:"auto",children:(0,e.createComponentVNode)(2,o.Box,{mt:"0.5rem",children:[!!M&&(0,e.createComponentVNode)(2,g,{name:"inserted_photo_"+M.uid+".png",float:"right"}),Ce.split("\n").map(function(q,ue){return(0,e.createComponentVNode)(2,o.Box,{children:q||(0,e.createVNode)(1,"br")},ue)}),(0,e.createComponentVNode)(2,o.Box,{clear:"right"})]})})}),j&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"CentComm Lock",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Button,{selected:oe,icon:oe?"lock":"lock-open",content:oe?"On":"Off",tooltip:"Locking this story will make it censorable by nobody but CentComm officers.",tooltipPosition:"top",onClick:function(){function q(){return Z(!oe)}return q}()})})]})}),(0,e.createComponentVNode)(2,o.Button.Confirm,{disabled:K.trim().length===0||X.trim().length===0||re.trim().length===0||Ce.trim().length===0,icon:"check",color:"good",content:"Submit",position:"absolute",right:"1rem",bottom:"-0.75rem",onClick:function(){function q(){(0,y.modalAnswer)(T,"create_story","",{author:K,channel:X,title:re.substr(0,127),body:Ce.substr(0,1023),admin_locked:oe?1:0})}return q}()})]})},B=function(w,T){var x=(0,t.useBackend)(T),A=x.act,E=x.data,M=E.photo,D=E.wanted,P=!!w.args.is_admin,R=w.args.scanned_user,j=(0,t.useLocalState)(T,"author",(D==null?void 0:D.author)||R||"Unknown"),F=j[0],W=j[1],_=(0,t.useLocalState)(T,"name",(D==null?void 0:D.title.substr(8))||""),K=_[0],H=_[1],$=(0,t.useLocalState)(T,"description",(D==null?void 0:D.body)||""),X=$[0],J=$[1],ae=(0,t.useLocalState)(T,"adminLocked",(D==null?void 0:D.admin_locked)===1||!1),re=ae[0],me=ae[1];return(0,e.createComponentVNode)(2,o.Section,{m:"-1rem",pb:"1.5rem",title:"Manage Wanted Notice",children:[(0,e.createComponentVNode)(2,o.Box,{mx:"0.5rem",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Authority",children:(0,e.createComponentVNode)(2,o.Input,{disabled:!P,width:"100%",value:F,onInput:function(){function pe(Ce,ke){return W(ke)}return pe}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Name",children:(0,e.createComponentVNode)(2,o.Input,{width:"100%",value:K,maxLength:"128",onInput:function(){function pe(Ce,ke){return H(ke)}return pe}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Description",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Input,{multiline:!0,width:"100%",value:X,maxLength:"512",rows:"4",onInput:function(){function pe(Ce,ke){return J(ke)}return pe}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Photo (optional)",verticalAlign:"top",children:[(0,e.createComponentVNode)(2,o.Button,{icon:"image",selected:M,content:M?"Eject: "+M.name:"Insert Photo",tooltip:!M&&"Attach a photo to this wanted notice by holding the photograph in your hand.",tooltipPosition:"top",onClick:function(){function pe(){return A(M?"eject_photo":"attach_photo")}return pe}()}),!!M&&(0,e.createComponentVNode)(2,g,{name:"inserted_photo_"+M.uid+".png",float:"right"})]}),P&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"CentComm Lock",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Button,{selected:re,icon:re?"lock":"lock-open",content:re?"On":"Off",tooltip:"Locking this wanted notice will make it editable by nobody but CentComm officers.",tooltipPosition:"top",onClick:function(){function pe(){return me(!re)}return pe}()})})]})}),(0,e.createComponentVNode)(2,o.Button.Confirm,{disabled:!D,icon:"eraser",color:"danger",content:"Clear",position:"absolute",right:"7.25rem",bottom:"-0.75rem",onClick:function(){function pe(){A("clear_wanted_notice"),(0,y.modalClose)(T)}return pe}()}),(0,e.createComponentVNode)(2,o.Button.Confirm,{disabled:F.trim().length===0||K.trim().length===0||X.trim().length===0,icon:"check",color:"good",content:"Submit",position:"absolute",right:"1rem",bottom:"-0.75rem",onClick:function(){function pe(){(0,y.modalAnswer)(T,w.id,"",{author:F,name:K.substr(0,127),description:X.substr(0,511),admin_locked:re?1:0})}return pe}()})]})};(0,y.modalRegisterBodyOverride)("create_channel",N),(0,y.modalRegisterBodyOverride)("manage_channel",N),(0,y.modalRegisterBodyOverride)("create_story",b),(0,y.modalRegisterBodyOverride)("wanted_notice",B)},46940:function(I,r,n){"use strict";r.__esModule=!0,r.NuclearBomb=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=r.NuclearBomb=function(){function V(y,S){var k=(0,a.useBackend)(S),h=k.act,l=k.data;return l.extended?(0,e.createComponentVNode)(2,o.Window,{width:350,height:290,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Authorization",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Auth Disk",children:(0,e.createComponentVNode)(2,t.Button,{icon:l.authdisk?"eject":"id-card",selected:l.authdisk,content:l.diskname?l.diskname:"-----",tooltip:l.authdisk?"Eject Disk":"Insert Disk",onClick:function(){function c(){return h("auth")}return c}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Auth Code",children:(0,e.createComponentVNode)(2,t.Button,{icon:"key",disabled:!l.authdisk,selected:l.authcode,content:l.codemsg,onClick:function(){function c(){return h("code")}return c}()})})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Arming & Disarming",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Bolted to floor",children:(0,e.createComponentVNode)(2,t.Button,{icon:l.anchored?"check":"times",selected:l.anchored,disabled:!l.authdisk,content:l.anchored?"YES":"NO",onClick:function(){function c(){return h("toggle_anchor")}return c}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Time Left",children:(0,e.createComponentVNode)(2,t.Button,{icon:"stopwatch",content:l.time,disabled:!l.authfull,tooltip:"Set Timer",onClick:function(){function c(){return h("set_time")}return c}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Safety",children:(0,e.createComponentVNode)(2,t.Button,{icon:l.safety?"check":"times",selected:l.safety,disabled:!l.authfull,content:l.safety?"ON":"OFF",tooltip:l.safety?"Disable Safety":"Enable Safety",onClick:function(){function c(){return h("toggle_safety")}return c}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Arm/Disarm",children:(0,e.createComponentVNode)(2,t.Button,{icon:(l.timer,"bomb"),disabled:l.safety||!l.authfull,color:"red",content:l.timer?"DISARM THE NUKE":"ARM THE NUKE",onClick:function(){function c(){return h("toggle_armed")}return c}()})})]})})]})}):(0,e.createComponentVNode)(2,o.Window,{width:350,height:115,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Deployment",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"exclamation-triangle",content:"Deploy Nuclear Device (will bolt device to floor)",onClick:function(){function c(){return h("deploy")}return c}()})})})})}return V}()},35478:function(I,r,n){"use strict";r.__esModule=!0,r.NumberInputModal=void 0;var e=n(96524),a=n(14299),t=n(15113),o=n(68100),m=n(17899),V=n(24674),y=n(45493),S=r.NumberInputModal=function(){function h(l,c){var f=(0,m.useBackend)(c),d=f.act,i=f.data,s=i.init_value,u=i.large_buttons,C=i.message,v=C===void 0?"":C,g=i.timeout,p=i.title,N=(0,m.useLocalState)(c,"input",s),b=N[0],B=N[1],L=function(){function x(A){A!==b&&B(A)}return x}(),w=function(){function x(A){A!==b&&B(A)}return x}(),T=120+(v.length>30?Math.ceil(v.length/3):0);return(0,e.createComponentVNode)(2,y.Window,{title:p,width:270,height:T,children:[g&&(0,e.createComponentVNode)(2,a.Loader,{value:g}),(0,e.createComponentVNode)(2,y.Window.Content,{onKeyDown:function(){function x(A){var E=window.event?A.which:A.keyCode;E===o.KEY_ENTER&&d("submit",{entry:b}),E===o.KEY_ESCAPE&&d("cancel")}return x}(),children:(0,e.createComponentVNode)(2,V.Section,{fill:!0,children:(0,e.createComponentVNode)(2,V.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,V.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,V.Box,{color:"label",children:v})}),(0,e.createComponentVNode)(2,V.Stack.Item,{children:(0,e.createComponentVNode)(2,k,{input:b,onClick:w,onChange:L})}),(0,e.createComponentVNode)(2,V.Stack.Item,{children:(0,e.createComponentVNode)(2,t.InputButtons,{input:b})})]})})})]})}return h}(),k=function(l,c){var f=(0,m.useBackend)(c),d=f.act,i=f.data,s=i.min_value,u=i.max_value,C=i.init_value,v=i.round_value,g=l.input,p=l.onClick,N=l.onChange,b=Math.round(g!==s?Math.max(g/2,s):u/2),B=g===s&&s>0||g===1;return(0,e.createComponentVNode)(2,V.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,V.Stack.Item,{children:(0,e.createComponentVNode)(2,V.Button,{disabled:g===s,icon:"angle-double-left",onClick:function(){function L(){return p(s)}return L}(),tooltip:g===s?"Min":"Min ("+s+")"})}),(0,e.createComponentVNode)(2,V.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,V.RestrictedInput,{autoFocus:!0,autoSelect:!0,fluid:!0,allowFloats:!v,minValue:s,maxValue:u,onChange:function(){function L(w,T){return N(T)}return L}(),onEnter:function(){function L(w,T){return d("submit",{entry:T})}return L}(),value:g})}),(0,e.createComponentVNode)(2,V.Stack.Item,{children:(0,e.createComponentVNode)(2,V.Button,{disabled:g===u,icon:"angle-double-right",onClick:function(){function L(){return p(u)}return L}(),tooltip:g===u?"Max":"Max ("+u+")"})}),(0,e.createComponentVNode)(2,V.Stack.Item,{children:(0,e.createComponentVNode)(2,V.Button,{disabled:B,icon:"divide",onClick:function(){function L(){return p(b)}return L}(),tooltip:B?"Split":"Split ("+b+")"})}),(0,e.createComponentVNode)(2,V.Stack.Item,{children:(0,e.createComponentVNode)(2,V.Button,{disabled:g===C,icon:"redo",onClick:function(){function L(){return p(C)}return L}(),tooltip:C?"Reset ("+C+")":"Reset"})})]})}},98476:function(I,r,n){"use strict";r.__esModule=!0,r.OperatingComputer=void 0;var e=n(96524),a=n(36121),t=n(17899),o=n(45493),m=n(24674),V=[["good","Conscious"],["average","Unconscious"],["bad","DEAD"]],y=[["Resp.","oxyLoss"],["Toxin","toxLoss"],["Brute","bruteLoss"],["Burn","fireLoss"]],S={average:[.25,.5],bad:[.5,1/0]},k=["bad","average","average","good","average","average","bad"],h=r.OperatingComputer=function(){function d(i,s){var u=(0,t.useBackend)(s),C=u.act,v=u.data,g=v.hasOccupant,p=v.choice,N;return p?N=(0,e.createComponentVNode)(2,f):N=g?(0,e.createComponentVNode)(2,l):(0,e.createComponentVNode)(2,c),(0,e.createComponentVNode)(2,o.Window,{width:650,height:455,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,m.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,m.Stack.Item,{children:(0,e.createComponentVNode)(2,m.Tabs,{children:[(0,e.createComponentVNode)(2,m.Tabs.Tab,{selected:!p,icon:"user",onClick:function(){function b(){return C("choiceOff")}return b}(),children:"Patient"}),(0,e.createComponentVNode)(2,m.Tabs.Tab,{selected:!!p,icon:"cog",onClick:function(){function b(){return C("choiceOn")}return b}(),children:"Options"})]})}),(0,e.createComponentVNode)(2,m.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,m.Section,{fill:!0,scrollable:!0,children:N})})]})})})}return d}(),l=function(i,s){var u=(0,t.useBackend)(s),C=u.data,v=C.occupant;return(0,e.createComponentVNode)(2,m.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,m.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,m.Section,{fill:!0,title:"Patient",children:(0,e.createComponentVNode)(2,m.LabeledList,{children:[(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Name",children:v.name}),(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Status",color:V[v.stat][0],children:V[v.stat][1]}),(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Health",children:(0,e.createComponentVNode)(2,m.ProgressBar,{min:"0",max:v.maxHealth,value:v.health/v.maxHealth,ranges:{good:[.5,1/0],average:[0,.5],bad:[-1/0,0]}})}),y.map(function(g,p){return(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:g[0]+" Damage",children:(0,e.createComponentVNode)(2,m.ProgressBar,{min:"0",max:"100",value:v[g[1]]/100,ranges:S,children:(0,a.round)(v[g[1]])},p)},p)}),(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Temperature",children:(0,e.createComponentVNode)(2,m.ProgressBar,{min:"0",max:v.maxTemp,value:v.bodyTemperature/v.maxTemp,color:k[v.temperatureSuitability+3],children:[(0,a.round)(v.btCelsius),"\xB0C, ",(0,a.round)(v.btFaren),"\xB0F"]})}),!!v.hasBlood&&(0,e.createFragment)([(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Blood Level",children:(0,e.createComponentVNode)(2,m.ProgressBar,{min:"0",max:v.bloodMax,value:v.bloodLevel/v.bloodMax,ranges:{bad:[-1/0,.6],average:[.6,.9],good:[.6,1/0]},children:[v.bloodPercent,"%, ",v.bloodLevel,"cl"]})}),(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Pulse",children:[v.pulse," BPM"]})],4)]})})}),(0,e.createComponentVNode)(2,m.Stack.Item,{children:(0,e.createComponentVNode)(2,m.Section,{title:"Current Procedure",level:"2",children:v.inSurgery?(0,e.createComponentVNode)(2,m.LabeledList,{children:[(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Procedure",children:v.surgeryName}),(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Next Step",children:v.stepName})]}):(0,e.createComponentVNode)(2,m.Box,{color:"label",children:"No procedure ongoing."})})})]})},c=function(){return(0,e.createComponentVNode)(2,m.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,m.Stack.Item,{grow:!0,align:"center",textAlign:"center",color:"label",children:[(0,e.createComponentVNode)(2,m.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,e.createVNode)(1,"br"),"No patient detected."]})})},f=function(i,s){var u=(0,t.useBackend)(s),C=u.act,v=u.data,g=v.verbose,p=v.health,N=v.healthAlarm,b=v.oxy,B=v.oxyAlarm,L=v.crit;return(0,e.createComponentVNode)(2,m.LabeledList,{children:[(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Loudspeaker",children:(0,e.createComponentVNode)(2,m.Button,{selected:g,icon:g?"toggle-on":"toggle-off",content:g?"On":"Off",onClick:function(){function w(){return C(g?"verboseOff":"verboseOn")}return w}()})}),(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Health Announcer",children:(0,e.createComponentVNode)(2,m.Button,{selected:p,icon:p?"toggle-on":"toggle-off",content:p?"On":"Off",onClick:function(){function w(){return C(p?"healthOff":"healthOn")}return w}()})}),(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Health Announcer Threshold",children:(0,e.createComponentVNode)(2,m.Knob,{bipolar:!0,minValue:-100,maxValue:100,value:N,stepPixelSize:5,ml:"0",onChange:function(){function w(T,x){return C("health_adj",{new:x})}return w}()})}),(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Oxygen Alarm",children:(0,e.createComponentVNode)(2,m.Button,{selected:b,icon:b?"toggle-on":"toggle-off",content:b?"On":"Off",onClick:function(){function w(){return C(b?"oxyOff":"oxyOn")}return w}()})}),(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Oxygen Alarm Threshold",children:(0,e.createComponentVNode)(2,m.Knob,{bipolar:!0,minValue:-100,maxValue:100,value:B,stepPixelSize:5,ml:"0",onChange:function(){function w(T,x){return C("oxy_adj",{new:x})}return w}()})}),(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Critical Alert",children:(0,e.createComponentVNode)(2,m.Button,{selected:L,icon:L?"toggle-on":"toggle-off",content:L?"On":"Off",onClick:function(){function w(){return C(L?"critOff":"critOn")}return w}()})})]})}},98702:function(I,r,n){"use strict";r.__esModule=!0,r.Orbit=void 0;var e=n(96524),a=n(78234),t=n(17899),o=n(24674),m=n(45493),V=n(28234);function y(u,C){var v=typeof Symbol!="undefined"&&u[Symbol.iterator]||u["@@iterator"];if(v)return(v=v.call(u)).next.bind(v);if(Array.isArray(u)||(v=S(u))||C&&u&&typeof u.length=="number"){v&&(u=v);var g=0;return function(){return g>=u.length?{done:!0}:{done:!1,value:u[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.")}function S(u,C){if(u){if(typeof u=="string")return k(u,C);var v=Object.prototype.toString.call(u).slice(8,-1);if(v==="Object"&&u.constructor&&(v=u.constructor.name),v==="Map"||v==="Set")return Array.from(u);if(v==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(v))return k(u,C)}}function k(u,C){(C==null||C>u.length)&&(C=u.length);for(var v=0,g=new Array(C);vv},f=function(C,v){var g=C.name,p=v.name;if(!g||!p)return 0;var N=g.match(h),b=p.match(h);if(N&&b&&g.replace(h,"")===p.replace(h,"")){var B=parseInt(N[1],10),L=parseInt(b[1],10);return B-L}return c(g,p)},d=function(C,v){var g=C.searchText,p=C.source,N=C.title,b=C.color,B=C.sorted,L=p.filter(l(g));return B&&L.sort(f),p.length>0&&(0,e.createComponentVNode)(2,o.Section,{title:N+" - ("+p.length+")",children:L.map(function(w){return(0,e.createComponentVNode)(2,i,{thing:w,color:b},w.name)})})},i=function(C,v){var g=(0,t.useBackend)(v),p=g.act,N=C.color,b=C.thing;return(0,e.createComponentVNode)(2,o.Button,{color:N,tooltip:b.assigned_role?(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.Box,{as:"img",mr:"0.5em",className:(0,V.classes)(["orbit_job16x16",b.assigned_role_sprite])})," ",b.assigned_role]}):"",tooltipPosition:"bottom",onClick:function(){function B(){return p("orbit",{ref:b.ref})}return B}(),children:[b.name,b.orbiters&&(0,e.createComponentVNode)(2,o.Box,{inline:!0,ml:1,children:["(",b.orbiters," ",(0,e.createComponentVNode)(2,o.Icon,{name:"eye"}),")"]})]})},s=r.Orbit=function(){function u(C,v){for(var g=(0,t.useBackend)(v),p=g.act,N=g.data,b=N.alive,B=N.antagonists,L=N.highlights,w=N.response_teams,T=N.auto_observe,x=N.dead,A=N.ghosts,E=N.misc,M=N.npcs,D=(0,t.useLocalState)(v,"searchText",""),P=D[0],R=D[1],j={},F=y(B),W;!(W=F()).done;){var _=W.value;j[_.antag]===void 0&&(j[_.antag]=[]),j[_.antag].push(_)}var K=Object.entries(j);K.sort(function($,X){return c($[0],X[0])});var H=function(){function $(X){for(var J=0,ae=[K.map(function(pe){var Ce=pe[0],ke=pe[1];return ke}),L,b,A,x,M,E];J0&&(0,e.createComponentVNode)(2,o.Section,{title:"Antagonists",children:K.map(function($){var X=$[0],J=$[1];return(0,e.createComponentVNode)(2,o.Section,{title:X+" - ("+J.length+")",level:2,children:J.filter(l(P)).sort(f).map(function(ae){return(0,e.createComponentVNode)(2,i,{color:"bad",thing:ae},ae.name)})},X)})}),L.length>0&&(0,e.createComponentVNode)(2,d,{title:"Highlights",source:L,searchText:P,color:"teal"}),(0,e.createComponentVNode)(2,d,{title:"Response Teams",source:w,searchText:P,color:"purple"}),(0,e.createComponentVNode)(2,d,{title:"Alive",source:b,searchText:P,color:"good"}),(0,e.createComponentVNode)(2,d,{title:"Ghosts",source:A,searchText:P,color:"grey"}),(0,e.createComponentVNode)(2,d,{title:"Dead",source:x,searchText:P,sorted:!1}),(0,e.createComponentVNode)(2,d,{title:"NPCs",source:M,searchText:P,sorted:!1}),(0,e.createComponentVNode)(2,d,{title:"Misc",source:E,searchText:P,sorted:!1})]})})}return u}()},74015:function(I,r,n){"use strict";r.__esModule=!0,r.OreRedemption=void 0;var e=n(96524),a=n(28234),t=n(17899),o=n(24674),m=n(45493),V=n(81856);function y(u){if(u==null)throw new TypeError("Cannot destructure "+u)}var S=(0,V.createLogger)("OreRedemption"),k=function(C){return C.toLocaleString("en-US")+" pts"},h=r.OreRedemption=function(){function u(C,v){return(0,e.createComponentVNode)(2,m.Window,{width:490,height:750,children:(0,e.createComponentVNode)(2,m.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,l,{height:"100%"})}),(0,e.createComponentVNode)(2,c),(0,e.createComponentVNode)(2,f)]})})})}return u}(),l=function(C,v){var g=(0,t.useBackend)(v),p=g.act,N=g.data,b=N.id,B=N.points,L=N.disk,w=Object.assign({},(y(C),C));return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Section,Object.assign({},w,{children:[(0,e.createComponentVNode)(2,o.Box,{color:"average",textAlign:"center",children:[(0,e.createComponentVNode)(2,o.Icon,{name:"exclamation-triangle",mr:"0.5rem"}),"This machine only accepts ore. Gibtonite is not accepted."]}),(0,e.createComponentVNode)(2,o.Divider),(0,e.createComponentVNode)(2,o.LabeledList,{children:(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Unclaimed Points",color:B>0?"good":"grey",bold:B>0&&"good",children:k(B)})}),(0,e.createComponentVNode)(2,o.Divider),L?(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Design disk",children:[(0,e.createComponentVNode)(2,o.Button,{selected:!0,bold:!0,icon:"eject",content:L.name,tooltip:"Ejects the design disk.",onClick:function(){function T(){return p("eject_disk")}return T}()}),(0,e.createComponentVNode)(2,o.Button,{disabled:!L.design||!L.compatible,icon:"upload",content:"Download",tooltip:"Downloads the design on the disk into the machine.",onClick:function(){function T(){return p("download")}return T}()})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Stored design",children:(0,e.createComponentVNode)(2,o.Box,{color:L.design&&(L.compatible?"good":"bad"),children:L.design||"N/A"})})]}):(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"No design disk inserted."})]})))},c=function(C,v){var g=(0,t.useBackend)(v),p=g.act,N=g.data,b=N.sheets,B=Object.assign({},(y(C),C));return(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,height:"20%",children:(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Section,Object.assign({fill:!0,scrollable:!0,className:"OreRedemption__Ores",p:"0"},B,{children:[(0,e.createComponentVNode)(2,d,{title:"Sheets",columns:[["Available","25%"],["Ore Value","15%"],["Smelt","20%"]]}),b.map(function(L){return(0,e.createComponentVNode)(2,i,{ore:L},L.id)})]})))})},f=function(C,v){var g=(0,t.useBackend)(v),p=g.act,N=g.data,b=N.alloys,B=Object.assign({},(y(C),C));return(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Section,Object.assign({fill:!0,scrollable:!0,className:"OreRedemption__Ores",p:"0"},B,{children:[(0,e.createComponentVNode)(2,d,{title:"Alloys",columns:[["Recipe","50%"],["Available","11%"],["Smelt","20%"]]}),b.map(function(L){return(0,e.createComponentVNode)(2,s,{ore:L},L.id)})]})))})},d=function(C,v){var g;return(0,e.createComponentVNode)(2,o.Box,{className:"OreHeader",children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:C.title}),(g=C.columns)==null?void 0:g.map(function(p){return(0,e.createComponentVNode)(2,o.Stack.Item,{basis:p[1],textAlign:"center",color:"label",bold:!0,children:p[0]},p)})]})})},i=function(C,v){var g=(0,t.useBackend)(v),p=g.act,N=C.ore;if(!(N.value&&N.amount<=0&&!(["metal","glass"].indexOf(N.id)>-1)))return(0,e.createComponentVNode)(2,o.Box,{className:"SheetLine",children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"45%",align:"middle",children:(0,e.createComponentVNode)(2,o.Stack,{align:"center",children:[(0,e.createComponentVNode)(2,o.Stack.Item,{className:(0,a.classes)(["materials32x32",N.id])}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:N.name})]})}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"20%",textAlign:"center",color:N.amount>=1?"good":"gray",bold:N.amount>=1,align:"center",children:N.amount.toLocaleString("en-US")}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"20%",textAlign:"center",align:"center",children:N.value}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"20%",textAlign:"center",align:"center",lineHeight:"32px",children:(0,e.createComponentVNode)(2,o.NumberInput,{width:"40%",value:0,minValue:0,maxValue:Math.min(N.amount,50),stepPixelSize:6,onChange:function(){function b(B,L){return p(N.value?"sheet":"alloy",{id:N.id,amount:L})}return b}()})})]})})},s=function(C,v){var g=(0,t.useBackend)(v),p=g.act,N=C.ore;return(0,e.createComponentVNode)(2,o.Box,{className:"SheetLine",children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"7%",align:"middle",children:(0,e.createComponentVNode)(2,o.Box,{className:(0,a.classes)(["alloys32x32",N.id])})}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"30%",textAlign:"middle",align:"center",children:N.name}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"35%",textAlign:"middle",color:N.amount>=1?"good":"gray",align:"center",children:N.description}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"10%",textAlign:"center",color:N.amount>=1?"good":"gray",bold:N.amount>=1,align:"center",children:N.amount.toLocaleString("en-US")}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"20%",textAlign:"center",align:"center",lineHeight:"32px",children:(0,e.createComponentVNode)(2,o.NumberInput,{width:"40%",value:0,minValue:0,maxValue:Math.min(N.amount,50),stepPixelSize:6,onChange:function(){function b(B,L){return p(N.value?"sheet":"alloy",{id:N.id,amount:L})}return b}()})})]})})}},48824:function(I,r,n){"use strict";r.__esModule=!0,r.PAI=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=n(91807),V=n(70752),y=function(h){var l;try{l=V("./"+h+".js")}catch(f){if(f.code==="MODULE_NOT_FOUND")return(0,m.routingError)("notFound",h);throw f}var c=l[h];return c||(0,m.routingError)("missingExport",h)},S=r.PAI=function(){function k(h,l){var c=(0,a.useBackend)(l),f=c.act,d=c.data,i=d.app_template,s=d.app_icon,u=d.app_title,C=y(i);return(0,e.createComponentVNode)(2,o.Window,{width:600,height:650,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{p:1,fill:!0,scrollable:!0,title:(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Icon,{name:s,mr:1}),u,i!=="pai_main_menu"&&(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{ml:2,mb:0,content:"Back",icon:"arrow-left",onClick:function(){function v(){return f("Back")}return v}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Home",icon:"arrow-up",onClick:function(){function v(){return f("MASTER_back")}return v}()})],4)]}),children:(0,e.createComponentVNode)(2,C)})})})})})}return k}()},41565:function(I,r,n){"use strict";r.__esModule=!0,r.PDA=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=n(91807),V=n(59395),y=function(c){var f;try{f=V("./"+c+".js")}catch(i){if(i.code==="MODULE_NOT_FOUND")return(0,m.routingError)("notFound",c);throw i}var d=f[c];return d||(0,m.routingError)("missingExport",c)},S=r.PDA=function(){function l(c,f){var d=(0,a.useBackend)(f),i=d.act,s=d.data,u=s.app,C=s.owner;if(!C)return(0,e.createComponentVNode)(2,o.Window,{width:350,height:105,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Error",children:"No user data found. Please swipe an ID card."})})});var v=y(u.template);return(0,e.createComponentVNode)(2,o.Window,{width:600,height:650,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,k)}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,p:1,pb:0,title:(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Icon,{name:u.icon,mr:1}),u.name]}),children:(0,e.createComponentVNode)(2,v)})}),(0,e.createComponentVNode)(2,t.Stack.Item,{mt:7.5,children:(0,e.createComponentVNode)(2,h)})]})})})}return l}(),k=function(c,f){var d=(0,a.useBackend)(f),i=d.act,s=d.data,u=s.idInserted,C=s.idLink,v=s.stationTime,g=s.cartridge_name;return(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{ml:.5,children:(0,e.createComponentVNode)(2,t.Button,{icon:"id-card",color:"transparent",onClick:function(){function p(){return i("Authenticate")}return p}(),content:u?C:"No ID Inserted"})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"sd-card",color:"transparent",onClick:function(){function p(){return i("Eject")}return p}(),content:g?["Eject "+g]:"No Cartridge Inserted"})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,textAlign:"right",bold:!0,mr:1,mt:.5,children:v})]})},h=function(c,f){var d=(0,a.useBackend)(f),i=d.act,s=d.data,u=s.app;return(0,e.createComponentVNode)(2,t.Box,{height:"45px",className:"PDA__footer",backgroundColor:"#1b1b1b",children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:[!!u.has_back&&(0,e.createComponentVNode)(2,t.Stack.Item,{basis:"33%",mr:-.5,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,className:"PDA__footer__button",color:"transparent",iconColor:u.has_back?"white":"disabled",icon:"arrow-alt-circle-left-o",onClick:function(){function C(){return i("Back")}return C}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{basis:u.has_back?"33%":"100%",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,className:"PDA__footer__button",color:"transparent",iconColor:u.is_home?"disabled":"white",icon:"home",onClick:function(){function C(){i("Home")}return C}()})})]})})}},78704:function(I,r,n){"use strict";r.__esModule=!0,r.Pacman=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=n(92986),V=r.Pacman=function(){function y(S,k){var h=(0,a.useBackend)(k),l=h.act,c=h.data,f=c.active,d=c.anchored,i=c.broken,s=c.emagged,u=c.fuel_type,C=c.fuel_usage,v=c.fuel_stored,g=c.fuel_cap,p=c.is_ai,N=c.tmp_current,b=c.tmp_max,B=c.tmp_overheat,L=c.output_max,w=c.power_gen,T=c.output_set,x=c.has_fuel,A=v/g,E=N/b,M=T*w,D=Math.round(v/C),P=Math.round(D/60),R=D>120?P+" minutes":D+" seconds";return(0,e.createComponentVNode)(2,o.Window,{width:500,height:225,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(i||!d)&&(0,e.createComponentVNode)(2,t.Section,{title:"Status",children:[!!i&&(0,e.createComponentVNode)(2,t.Box,{color:"orange",children:"The generator is malfunctioning!"}),!i&&!d&&(0,e.createComponentVNode)(2,t.Box,{color:"orange",children:"The generator needs to be anchored to the floor with a wrench."})]}),!i&&!!d&&(0,e.createVNode)(1,"div",null,[(0,e.createComponentVNode)(2,t.Section,{title:"Status",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:f?"power-off":"times",content:f?"On":"Off",tooltip:"Toggles the generator on/off. Requires fuel.",tooltipPosition:"left",disabled:!x,selected:f,onClick:function(){function j(){return l("toggle_power")}return j}()}),children:(0,e.createComponentVNode)(2,t.Flex,{direction:"row",children:[(0,e.createComponentVNode)(2,t.Flex.Item,{width:"50%",className:"ml-1",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power setting",children:[(0,e.createComponentVNode)(2,t.NumberInput,{value:T,minValue:1,maxValue:L*(s?2.5:1),step:1,className:"mt-1",onDrag:function(){function j(F,W){return l("change_power",{change_power:W})}return j}()}),"(",(0,m.formatPower)(M),")"]})})}),(0,e.createComponentVNode)(2,t.Flex.Item,{width:"50%",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Temperature",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:E,ranges:{green:[-1/0,.33],orange:[.33,.66],red:[.66,1/0]},children:[N," \u2103"]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:[B>50&&(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"CRITICAL OVERHEAT!"}),B>20&&B<=50&&(0,e.createComponentVNode)(2,t.Box,{color:"orange",children:"WARNING: Overheating!"}),B>1&&B<=20&&(0,e.createComponentVNode)(2,t.Box,{color:"orange",children:"Temperature High"}),B===0&&(0,e.createComponentVNode)(2,t.Box,{color:"green",children:"Optimal"})]})]})})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Fuel",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"eject",content:"Eject Fuel",tooltip:"Ejects fuel. Generator needs to be offline.",tooltipPosition:"left",disabled:f||p||!x,onClick:function(){function j(){return l("eject_fuel")}return j}()}),children:(0,e.createComponentVNode)(2,t.Grid,{children:[(0,e.createComponentVNode)(2,t.Grid.Column,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Type",children:u}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Fuel level",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:A,ranges:{red:[-1/0,.33],orange:[.33,.66],green:[.66,1/0]},children:[Math.round(v/1e3)," dm\xB3"]})})]})}),(0,e.createComponentVNode)(2,t.Grid.Column,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Fuel usage",children:[C/1e3," dm\xB3/s"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Fuel depletion",children:[!!x&&(C?R:"N/A"),!x&&(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Out of fuel"})]})]})})]})})],4)]})})}return y}()},78643:function(I,r,n){"use strict";r.__esModule=!0,r.ParticleAccelerator=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=r.ParticleAccelerator=function(){function V(y,S){var k=(0,a.useBackend)(S),h=k.act,l=k.data,c=l.assembled,f=l.power,d=l.strength,i=l.max_strength;return(0,e.createComponentVNode)(2,o.Window,{width:350,height:160,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Control Panel",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"sync",content:"Connect",onClick:function(){function s(){return h("scan")}return s}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",mb:"5px",children:(0,e.createComponentVNode)(2,t.Box,{color:c?"good":"bad",children:c?"Operational":"Error: Verify Configuration"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power",children:(0,e.createComponentVNode)(2,t.Button,{icon:f?"power-off":"times",content:f?"On":"Off",selected:f,disabled:!c,onClick:function(){function s(){return h("power")}return s}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Strength",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"backward",disabled:!c||d===0,onClick:function(){function s(){return h("remove_strength")}return s}(),mr:"4px"}),d,(0,e.createComponentVNode)(2,t.Button,{icon:"forward",disabled:!c||d===i,onClick:function(){function s(){return h("add_strength")}return s}(),ml:"4px"})]})]})})})})}return V}()},34026:function(I,r,n){"use strict";r.__esModule=!0,r.PdaPainter=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=r.PdaPainter=function(){function k(h,l){var c=(0,a.useBackend)(l),f=c.data,d=f.has_pda;return(0,e.createComponentVNode)(2,o.Window,{width:510,height:505,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:d?(0,e.createComponentVNode)(2,y):(0,e.createComponentVNode)(2,V)})})}return k}(),V=function(h,l){var c=(0,a.useBackend)(l),f=c.act;return(0,e.createComponentVNode)(2,t.Section,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,grow:!0,textAlign:"center",align:"center",color:"silver",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"download",size:5,mb:"10px"}),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Button,{width:"160px",textAlign:"center",content:"Insert PDA",onClick:function(){function d(){return f("insert_pda")}return d}()})]})})})},y=function(h,l){var c=(0,a.useBackend)(l),f=c.act,d=c.data,i=d.pda_colors;return(0,e.createComponentVNode)(2,t.Stack,{fill:!0,horizontal:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,S)}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,t.Table,{className:"PdaPainter__list",children:Object.keys(i).map(function(s){return(0,e.createComponentVNode)(2,t.Table.Row,{onClick:function(){function u(){return f("choose_pda",{selectedPda:s})}return u}(),children:[(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,children:(0,e.createVNode)(1,"img",null,null,1,{src:"data:image/png;base64,"+i[s][0],style:{"vertical-align":"middle",width:"32px",margin:"0px","margin-left":"0px","-ms-interpolation-mode":"nearest-neighbor"}})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:s})]},s)})})})})]})},S=function(h,l){var c=(0,a.useBackend)(l),f=c.act,d=c.data,i=d.current_appearance,s=d.preview_appearance;return(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Current PDA",children:[(0,e.createVNode)(1,"img",null,null,1,{src:"data:image/jpeg;base64,"+i,style:{"vertical-align":"middle",width:"160px",margin:"0px","margin-left":"0px","-ms-interpolation-mode":"nearest-neighbor"}}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"eject",content:"Eject",color:"green",onClick:function(){function u(){return f("eject_pda")}return u}()}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"paint-roller",content:"Paint PDA",onClick:function(){function u(){return f("paint_pda")}return u}()})]}),(0,e.createComponentVNode)(2,t.Section,{title:"Preview",children:(0,e.createVNode)(1,"img",null,null,1,{src:"data:image/jpeg;base64,"+s,style:{"vertical-align":"middle",width:"160px",margin:"0px","margin-left":"0px","-ms-interpolation-mode":"nearest-neighbor"}})})]})}},81378:function(I,r,n){"use strict";r.__esModule=!0,r.PersonalCrafting=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=r.PersonalCrafting=function(){function S(k,h){var l=(0,a.useBackend)(h),c=l.act,f=l.data,d=f.busy,i=f.category,s=f.display_craftable_only,u=f.display_compact,C=f.prev_cat,v=f.next_cat,g=f.subcategory,p=f.prev_subcat,N=f.next_subcat;return(0,e.createComponentVNode)(2,o.Window,{width:700,height:800,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[!!d&&(0,e.createComponentVNode)(2,t.Dimmer,{fontSize:"32px",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"cog",spin:1})," Crafting..."]}),(0,e.createComponentVNode)(2,t.Section,{title:i,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{content:"Show Craftable Only",icon:s?"check-square-o":"square-o",selected:s,onClick:function(){function b(){return c("toggle_recipes")}return b}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Compact Mode",icon:u?"check-square-o":"square-o",selected:u,onClick:function(){function b(){return c("toggle_compact")}return b}()})],4),children:[(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Button,{content:C,icon:"arrow-left",onClick:function(){function b(){return c("backwardCat")}return b}()}),(0,e.createComponentVNode)(2,t.Button,{content:v,icon:"arrow-right",onClick:function(){function b(){return c("forwardCat")}return b}()})]}),g&&(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Button,{content:p,icon:"arrow-left",onClick:function(){function b(){return c("backwardSubCat")}return b}()}),(0,e.createComponentVNode)(2,t.Button,{content:N,icon:"arrow-right",onClick:function(){function b(){return c("forwardSubCat")}return b}()})]}),u?(0,e.createComponentVNode)(2,V):(0,e.createComponentVNode)(2,y)]})]})})}return S}(),V=function(k,h){var l=(0,a.useBackend)(h),c=l.act,f=l.data,d=f.display_craftable_only,i=f.can_craft,s=f.cant_craft;return(0,e.createComponentVNode)(2,t.Box,{mt:1,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[i.map(function(u){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:u.name,children:[(0,e.createComponentVNode)(2,t.Button,{icon:"hammer",content:"Craft",onClick:function(){function C(){return c("make",{make:u.ref})}return C}()}),u.catalyst_text&&(0,e.createComponentVNode)(2,t.Button,{tooltip:u.catalyst_text,content:"Catalysts",color:"transparent"}),(0,e.createComponentVNode)(2,t.Button,{tooltip:u.req_text,content:"Requirements",color:"transparent"}),u.tool_text&&(0,e.createComponentVNode)(2,t.Button,{tooltip:u.tool_text,content:"Tools",color:"transparent"})]},u.name)}),!d&&s.map(function(u){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:u.name,children:[(0,e.createComponentVNode)(2,t.Button,{icon:"hammer",content:"Craft",disabled:!0}),u.catalyst_text&&(0,e.createComponentVNode)(2,t.Button,{tooltip:u.catalyst_text,content:"Catalysts",color:"transparent"}),(0,e.createComponentVNode)(2,t.Button,{tooltip:u.req_text,content:"Requirements",color:"transparent"}),u.tool_text&&(0,e.createComponentVNode)(2,t.Button,{tooltip:u.tool_text,content:"Tools",color:"transparent"})]},u.name)})]})})},y=function(k,h){var l=(0,a.useBackend)(h),c=l.act,f=l.data,d=f.display_craftable_only,i=f.can_craft,s=f.cant_craft;return(0,e.createComponentVNode)(2,t.Box,{mt:1,children:[i.map(function(u){return(0,e.createComponentVNode)(2,t.Section,{title:u.name,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"hammer",content:"Craft",onClick:function(){function C(){return c("make",{make:u.ref})}return C}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[u.catalyst_text&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Catalysts",children:u.catalyst_text}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Requirements",children:u.req_text}),u.tool_text&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Tools",children:u.tool_text})]})},u.name)}),!d&&s.map(function(u){return(0,e.createComponentVNode)(2,t.Section,{title:u.name,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"hammer",content:"Craft",disabled:!0}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[u.catalyst_text&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Catalysts",children:u.catalyst_text}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Requirements",children:u.req_text}),u.tool_text&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Tools",children:u.tool_text})]})},u.name)})]})}},58792:function(I,r,n){"use strict";r.__esModule=!0,r.Photocopier=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=r.Photocopier=function(){function S(k,h){var l=(0,a.useBackend)(h),c=l.act,f=l.data;return(0,e.createComponentVNode)(2,o.Window,{width:400,height:440,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Section,{title:"Photocopier",color:"silver",children:[(0,e.createComponentVNode)(2,t.Stack,{mb:1,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:12,children:"Copies:"}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:"2em",bold:!0,children:f.copynumber}),(0,e.createComponentVNode)(2,t.Stack.Item,{float:"right",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"minus",textAlign:"center",content:"",onClick:function(){function d(){return c("minus")}return d}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"plus",textAlign:"center",content:"",onClick:function(){function d(){return c("add")}return d}()})]})]}),(0,e.createComponentVNode)(2,t.Stack,{mb:2,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:12,children:"Toner:"}),(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,children:f.toner})]}),(0,e.createComponentVNode)(2,t.Stack,{mb:1,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:12,children:"Inserted Document:"}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",disabled:!f.copyitem&&!f.mob,content:f.copyitem?f.copyitem:f.mob?f.mob+"'s ass!":"document",onClick:function(){function d(){return c("removedocument")}return d}()})})]}),(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:12,children:"Inserted Folder:"}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",disabled:!f.folder,content:f.folder?f.folder:"folder",onClick:function(){function d(){return c("removefolder")}return d}()})})]})]}),(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,V)}),(0,e.createComponentVNode)(2,y)]})})})}return S}(),V=function(k,h){var l=(0,a.useBackend)(h),c=l.act,f=l.data,d=f.issilicon;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"copy",float:"center",textAlign:"center",content:"Copy",onClick:function(){function i(){return c("copy")}return i}()}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"file-import",float:"center",textAlign:"center",content:"Scan",onClick:function(){function i(){return c("scandocument")}return i}()}),!!d&&(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"file",color:"green",float:"center",textAlign:"center",content:"Print Text",onClick:function(){function i(){return c("ai_text")}return i}()}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"image",color:"green",float:"center",textAlign:"center",content:"Print Image",onClick:function(){function i(){return c("ai_pic")}return i}()})],4)],0)},y=function(k,h){var l=(0,a.useBackend)(h),c=l.act,f=l.data;return(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Scanned Files",children:f.files.map(function(d){return(0,e.createComponentVNode)(2,t.Section,{title:d.name,buttons:(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"print",content:"Print",disabled:f.toner<=0,onClick:function(){function i(){return c("filecopy",{uid:d.uid})}return i}()}),(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"trash-alt",content:"Delete",color:"bad",onClick:function(){function i(){return c("deletefile",{uid:d.uid})}return i}()})]})},d.name)})})}},45642:function(I,r,n){"use strict";r.__esModule=!0,r.Photocopier220=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=n(50640),V=n(74041),y=n(78234);function S(f,d){var i=typeof Symbol!="undefined"&&f[Symbol.iterator]||f["@@iterator"];if(i)return(i=i.call(f)).next.bind(i);if(Array.isArray(f)||(i=k(f))||d&&f&&typeof f.length=="number"){i&&(f=i);var s=0;return function(){return s>=f.length?{done:!0}:{done:!1,value:f[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.")}function k(f,d){if(f){if(typeof f=="string")return h(f,d);var i=Object.prototype.toString.call(f).slice(8,-1);if(i==="Object"&&f.constructor&&(i=f.constructor.name),i==="Map"||i==="Set")return Array.from(f);if(i==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i))return h(f,d)}}function h(f,d){(d==null||d>f.length)&&(d=f.length);for(var i=0,s=new Array(d);if?this.substring(0,f)+"...":this};var l=function(d,i){i===void 0&&(i="");var s=(0,y.createSearch)(i,function(u){return u.altername});return(0,V.flow)([(0,m.filter)(function(u){return u==null?void 0:u.altername}),i&&(0,m.filter)(s),(0,m.sortBy)(function(u){return u.id})])(d)},c=r.Photocopier220=function(){function f(d,i){for(var s=(0,a.useBackend)(i),u=s.act,C=s.data,v=C.copies,g=C.maxcopies,p=(0,a.useLocalState)(i,"searchText",""),N=p[0],b=p[1],B=l((0,m.sortBy)(function(P){return P.category})(C.forms||[]),N),L=[],w=S(B),T;!(T=w()).done;){var x=T.value;L.includes(x.category)||L.push(x.category)}var A=(0,a.useLocalState)(i,"number",0),E=A[0],M=A[1],D;return C.category===""?D=B:D=B.filter(function(P){return P.category===C.category}),(0,e.createComponentVNode)(2,o.Window,{width:550,height:575,theme:C.ui_theme,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{basis:"40%",children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Section,{title:"\u0421\u0442\u0430\u0442\u0443\u0441",children:[(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"50%",mt:.3,color:"grey",children:"\u0417\u0430\u0440\u044F\u0434 \u0442\u043E\u043D\u0435\u0440\u0430:"}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:"50%",children:(0,e.createComponentVNode)(2,t.ProgressBar,{minValue:0,maxValue:30,value:C.toner})})]}),(0,e.createComponentVNode)(2,t.Stack,{mt:1,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"50%",mb:.3,color:"grey",children:"\u0424\u043E\u0440\u043C\u0430:"}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:"50%",textAlign:"center",bold:!0,children:C.form_id===""?"\u041D\u0435 \u0432\u044B\u0431\u0440\u0430\u043D\u0430":C.form_id})]}),(0,e.createComponentVNode)(2,t.Stack,{children:(0,e.createComponentVNode)(2,t.Stack.Item,{width:"100%",mt:1,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",disabled:!C.copyitem&&!C.mob,icon:C.copyitem||C.mob?"eject":"times",content:C.copyitem?C.copyitem:C.mob?"\u0416\u043E\u043F\u0430 "+C.mob+"!":"\u0421\u043B\u043E\u0442 \u0434\u043B\u044F \u0434\u043E\u043A\u0443\u043C\u0435\u043D\u0442\u0430",onClick:function(){function P(){return u("removedocument")}return P}()})})}),(0,e.createComponentVNode)(2,t.Stack,{children:(0,e.createComponentVNode)(2,t.Stack.Item,{width:"100%",mt:"3px",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",disabled:!C.folder,icon:C.folder?"eject":"times",content:C.folder?C.folder:"\u0421\u043B\u043E\u0442 \u0434\u043B\u044F \u043F\u0430\u043F\u043A\u0438",onClick:function(){function P(){return u("removefolder")}return P}()})})})]}),(0,e.createComponentVNode)(2,t.Section,{title:"\u0423\u043F\u0440\u0430\u0432\u043B\u0435\u043D\u0438\u0435",children:[(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,width:"100%",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"print",disabled:C.toner===0||C.form===null,content:"\u041F\u0435\u0447\u0430\u0442\u044C",onClick:function(){function P(){return u("print_form")}return P}()})}),!!C.isAI&&(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,width:"100%",ml:"5px",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"image",disabled:C.toner<5,content:"\u0424\u043E\u0442\u043E",tooltip:"\u0420\u0430\u0441\u043F\u0435\u0447\u0430\u0442\u0430\u0442\u044C \u0444\u043E\u0442\u043E \u0441 \u0411\u0430\u0437\u044B \u0414\u0430\u043D\u043D\u044B\u0445",onClick:function(){function P(){return u("ai_pic")}return P}()})})]}),(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,width:"100%",mt:"3px",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"copy",content:"\u041A\u043E\u043F\u0438\u044F",disabled:C.toner===0||!C.copyitem&&!C.mob,onClick:function(){function P(){return u("copy")}return P}()})}),!!C.isAI&&(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,width:"100%",ml:"5px",mt:"3px",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"i-cursor",content:"\u0422\u0435\u043A\u0441\u0442",tooltip:"\u0420\u0430\u0441\u043F\u0435\u0447\u0430\u0442\u0430\u0442\u044C \u0441\u0432\u043E\u0439 \u0442\u0435\u043A\u0441\u0442",disabled:C.toner===0,onClick:function(){function P(){return u("ai_text")}return P}()})})]}),(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{mr:1.5,mt:1.2,width:"50%",color:"grey",children:"\u041A\u043E\u043B\u0438\u0447\u0435\u0441\u0442\u0432\u043E:"}),(0,e.createComponentVNode)(2,t.Slider,{mt:.75,width:"50%",animated:!0,minValue:1,maxValue:g,value:v,stepPixelSize:10,onChange:function(){function P(R,j){return u("copies",{new:j})}return P}()})]})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,mt:0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"\u0411\u044E\u0440\u043E\u043A\u0440\u0430\u0442\u0438\u044F",children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,mb:-.5,icon:"chevron-right",color:"transparent",content:"\u0412\u0441\u0435 \u0444\u043E\u0440\u043C\u044B",selected:!C.category,onClick:function(){function P(){return u("choose_category",{category:""})}return P}()})}),L.map(function(P){return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"chevron-right",mb:-.5,color:"transparent",content:P,selected:C.category===P,onClick:function(){function R(){return u("choose_category",{category:P})}return R}()},P)},P)})]})})})]})}),(0,e.createComponentVNode)(2,t.Stack.Item,{basis:"60%",children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:C.category||"\u0412\u0441\u0435 \u0444\u043E\u0440\u043C\u044B",buttons:(0,e.createComponentVNode)(2,t.Input,{mr:18.5,width:"100%",placeholder:"\u041F\u043E\u0438\u0441\u043A \u0444\u043E\u0440\u043C\u044B",onInput:function(){function P(R,j){return b(j)}return P}()}),children:D.map(function(P){return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,mb:.5,color:"transparent",content:P.altername.trimLongStr(37),tooltip:P.altername,selected:C.form_id===P.id,onClick:function(){function R(){return u("choose_form",{path:P.path,id:P.id})}return R}()})},P.path)})})})]})})})}return f}()},27902:function(I,r,n){"use strict";r.__esModule=!0,r.PoolController=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=["tempKey"];function V(h,l){if(h==null)return{};var c={},f=Object.keys(h),d,i;for(i=0;i=0)&&(c[d]=h[d]);return c}var y={scalding:{label:"Scalding",color:"#FF0000",icon:"fa fa-arrow-circle-up",requireEmag:!0},warm:{label:"Warm",color:"#990000",icon:"fa fa-arrow-circle-up"},normal:{label:"Normal",color:null,icon:"fa fa-arrow-circle-right"},cool:{label:"Cool",color:"#009999",icon:"fa fa-arrow-circle-down"},frigid:{label:"Frigid",color:"#00CCCC",icon:"fa fa-arrow-circle-down",requireEmag:!0}},S=function(l,c){var f=l.tempKey,d=V(l,m),i=y[f];if(!i)return null;var s=(0,a.useBackend)(c),u=s.data,C=s.act,v=u.currentTemp,g=i.label,p=i.icon,N=f===v,b=function(){C("setTemp",{temp:f})};return(0,e.normalizeProps)((0,e.createComponentVNode)(2,t.Button,Object.assign({color:"transparent",selected:N,onClick:b},d,{children:[(0,e.createComponentVNode)(2,t.Icon,{name:p}),g]})))},k=r.PoolController=function(){function h(l,c){for(var f=(0,a.useBackend)(c),d=f.data,i=d.emagged,s=d.currentTemp,u=y[s]||y.normal,C=u.label,v=u.color,g=[],p=0,N=Object.entries(y);p50?"battery-half":"battery-quarter")||v==="C"&&"bolt"||v==="F"&&"battery-full"||v==="M"&&"slash",color:v==="N"&&(g>50?"yellow":"red")||v==="C"&&"yellow"||v==="F"&&"green"||v==="M"&&"orange"}),(0,e.createComponentVNode)(2,S.Box,{inline:!0,width:"36px",textAlign:"right",children:(0,o.toFixed)(g)+"%"})],4)};i.defaultHooks=m.pureComponentHooks;var s=function(C){var v,g,p=C.status;switch(p){case"AOn":v=!0,g=!0;break;case"AOff":v=!0,g=!1;break;case"On":v=!1,g=!0;break;case"Off":v=!1,g=!1;break}var N=(g?"On":"Off")+(" ["+(v?"auto":"manual")+"]");return(0,e.createComponentVNode)(2,S.ColorBox,{color:g?"good":"bad",content:v?void 0:"M",title:N})};s.defaultHooks=m.pureComponentHooks},27262:function(I,r,n){"use strict";r.__esModule=!0,r.PrisonerImplantManager=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(91097),m=n(99665),V=n(68159),y=n(27527),S=n(45493),k=r.PrisonerImplantManager=function(){function h(l,c){var f=(0,a.useBackend)(c),d=f.act,i=f.data,s=i.loginState,u=i.prisonerInfo,C=i.chemicalInfo,v=i.trackingInfo,g;if(!s.logged_in)return(0,e.createComponentVNode)(2,S.Window,{theme:"security",width:500,height:850,children:(0,e.createComponentVNode)(2,S.Window.Content,{children:(0,e.createComponentVNode)(2,y.LoginScreen)})});var p=[1,5,10];return(0,e.createComponentVNode)(2,S.Window,{theme:"security",width:500,height:850,children:[(0,e.createComponentVNode)(2,m.ComplexModal),(0,e.createComponentVNode)(2,S.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,V.LoginInfo),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Prisoner Points Manager System",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Prisoner",children:(0,e.createComponentVNode)(2,t.Button,{icon:u.name?"eject":"id-card",selected:u.name,content:u.name?u.name:"-----",tooltip:u.name?"Eject ID":"Insert ID",onClick:function(){function N(){return d("id_card")}return N}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Points",children:[u.points!==null?u.points:"-/-",(0,e.createComponentVNode)(2,t.Button,{ml:2,icon:"minus-square",disabled:u.points===null,content:"Reset",onClick:function(){function N(){return d("reset_points")}return N}()})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Point Goal",children:[u.goal!==null?u.goal:"-/-",(0,e.createComponentVNode)(2,t.Button,{ml:2,icon:"pen",disabled:u.goal===null,content:"Edit",onClick:function(){function N(){return(0,m.modalOpen)(c,"set_points")}return N}()})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{children:(0,e.createVNode)(1,"box",null,[(0,e.createTextVNode)("1 minute of prison time should roughly equate to 150 points."),(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("Sentences should not exceed 5000 points."),(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("Permanent prisoners should not be given a point goal."),(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("Prisoners who meet their point goal will be able to automatically access their locker and return to the station using the shuttle.")],4,{hidden:u.goal===null})})]})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Tracking Implants",children:v.map(function(N){return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{p:1,backgroundColor:"rgba(255, 255, 255, 0.05)",children:[(0,e.createComponentVNode)(2,t.Box,{bold:!0,children:["Subject: ",N.subject]}),(0,e.createComponentVNode)(2,t.Box,{children:[" ",(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Location",children:N.location}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Health",children:N.health}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Prisoner",children:(0,e.createComponentVNode)(2,t.Button,{icon:"exclamation-triangle",content:"Warn",tooltip:"Broadcast a message to this poor sod",onClick:function(){function b(){return(0,m.modalOpen)(c,"warn",{uid:N.uid})}return b}()})})]})]},N.subject)]}),(0,e.createVNode)(1,"br")],4)})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Chemical Implants",children:C.map(function(N){return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{p:1,backgroundColor:"rgba(255, 255, 255, 0.05)",children:[(0,e.createComponentVNode)(2,t.Box,{bold:!0,children:["Subject: ",N.name]}),(0,e.createComponentVNode)(2,t.Box,{children:[" ",(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,o.LabeledList,{children:(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Remaining Reagents",children:N.volume})}),p.map(function(b){return(0,e.createComponentVNode)(2,t.Button,{mt:2,disabled:N.volumef;return(0,e.createComponentVNode)(2,o.Stack,{className:"PrizeCounter__Item",children:[(0,e.createComponentVNode)(2,o.Stack.Item,{lineHeight:"0",align:"center",children:(0,e.createVNode)(1,"div",(0,a.classes)(["prize_counter64x64",g.imageID]))}),(0,e.createComponentVNode)(2,o.Stack.Item,{width:"100%",children:(0,e.createComponentVNode)(2,o.Stack,{vertical:!0,textAlign:"center",children:[(0,e.createComponentVNode)(2,o.Stack.Item,{bold:!0,mt:1,children:g.name}),(0,e.createComponentVNode)(2,o.Stack.Divider),(0,e.createComponentVNode)(2,o.Stack.Item,{mb:1,children:g.desc})]})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{className:(0,a.classes)(["PrizeCounter__BuyButton",p&&"PrizeCounter__BuyButton--disabled"]),icon:"ticket",content:g.cost,tooltip:p?"Not enough tickets.":null,tooltipPosition:"top-end",onClick:function(){function N(){return!p&&l("purchase",{purchase:g.itemID})}return N}()})})]},g.name)})})})})})})}return y}()},87963:function(I,r,n){"use strict";r.__esModule=!0,r.RCD=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=n(99665),V=n(57842),y=r.RCD=function(){function d(i,s){return(0,e.createComponentVNode)(2,o.Window,{width:480,height:670,children:[(0,e.createComponentVNode)(2,m.ComplexModal),(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,S),(0,e.createComponentVNode)(2,k),(0,e.createComponentVNode)(2,l),(0,e.createComponentVNode)(2,c)]})})]})}return d}(),S=function(i,s){var u=(0,a.useBackend)(s),C=u.data,v=C.matter,g=C.max_matter,p=g*.7,N=g*.25;return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Matter Storage",children:(0,e.createComponentVNode)(2,t.ProgressBar,{ranges:{good:[p,1/0],average:[N,p],bad:[-1/0,N]},value:v,maxValue:g,children:(0,e.createComponentVNode)(2,t.Stack.Item,{textAlign:"center",children:v+" / "+g+" units"})})})})},k=function(){return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Construction Type",children:(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,h,{mode_type:"Floors and Walls"}),(0,e.createComponentVNode)(2,h,{mode_type:"Airlocks"}),(0,e.createComponentVNode)(2,h,{mode_type:"Windows"}),(0,e.createComponentVNode)(2,h,{mode_type:"Deconstruction"})]})})})},h=function(i,s){var u=(0,a.useBackend)(s),C=u.act,v=u.data,g=i.mode_type,p=v.mode;return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,color:"transparent",content:g,selected:p===g?1:0,onClick:function(){function N(){return C("mode",{mode:g})}return N}()})})},l=function(i,s){var u=(0,a.useBackend)(s),C=u.act,v=u.data,g=v.door_name,p=v.electrochromic,N=v.airlock_glass;return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Airlock Settings",children:(0,e.createComponentVNode)(2,t.Stack,{textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,color:"transparent",icon:"pen-alt",content:(0,e.createFragment)([(0,e.createTextVNode)("Rename: "),(0,e.createVNode)(1,"b",null,g,0)],0),onClick:function(){function b(){return(0,m.modalOpen)(s,"renameAirlock")}return b}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:N===1&&(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:p?"toggle-on":"toggle-off",content:"Electrochromic",selected:p,onClick:function(){function b(){return C("electrochromic")}return b}()})})]})})})},c=function(i,s){var u=(0,a.useBackend)(s),C=u.act,v=u.data,g=v.tab,p=v.locked,N=v.one_access,b=v.selected_accesses,B=v.regions;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Stack.Item,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Tabs,{fluid:!0,children:[(0,e.createComponentVNode)(2,t.Tabs.Tab,{icon:"cog",selected:g===1,onClick:function(){function L(){return C("set_tab",{tab:1})}return L}(),children:"Airlock Types"}),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:g===2,icon:"list",onClick:function(){function L(){return C("set_tab",{tab:2})}return L}(),children:"Airlock Access"})]})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:g===1?(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Types",children:(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,f,{check_number:0})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,f,{check_number:1})})]})}):g===2&&p?(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Access",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"lock-open",content:"Unlock",onClick:function(){function L(){return C("set_lock",{new_lock:"unlock"})}return L}()}),children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,textAlign:"center",align:"center",color:"label",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"lock",size:"5",mb:3}),(0,e.createVNode)(1,"br"),"Airlock access selection is currently locked."]})})}):(0,e.createComponentVNode)(2,V.AccessList,{sectionButtons:(0,e.createComponentVNode)(2,t.Button,{icon:"lock",content:"Lock",onClick:function(){function L(){return C("set_lock",{new_lock:"lock"})}return L}()}),usedByRcd:1,rcdButtons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:N,content:"One",onClick:function(){function L(){return C("set_one_access",{access:"one"})}return L}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:!N,width:4,content:"All",onClick:function(){function L(){return C("set_one_access",{access:"all"})}return L}()})],4),accesses:B,selectedList:b,accessMod:function(){function L(w){return C("set",{access:w})}return L}(),grantAll:function(){function L(){return C("grant_all")}return L}(),denyAll:function(){function L(){return C("clear_all")}return L}(),grantDep:function(){function L(w){return C("grant_region",{region:w})}return L}(),denyDep:function(){function L(w){return C("deny_region",{region:w})}return L}()})})],4)},f=function(i,s){for(var u=(0,a.useBackend)(s),C=u.act,v=u.data,g=v.door_types_ui_list,p=v.door_type,N=i.check_number,b=[],B=0;B0?"envelope-open-text":"envelope",onClick:function(){function B(){return C("setScreen",{setScreen:6})}return B}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{mt:1,children:[(0,e.createComponentVNode)(2,t.Button,{fluid:!0,lineHeight:3,color:"translucent",content:"Request Assistance",icon:"hand-paper",onClick:function(){function B(){return C("setScreen",{setScreen:1})}return B}()}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{fluid:!0,lineHeight:3,color:"translucent",content:"Request Supplies",icon:"box",onClick:function(){function B(){return C("setScreen",{setScreen:2})}return B}()}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,lineHeight:3,color:"translucent",content:"Request Secondary Goal",icon:"clipboard-list",onClick:function(){function B(){return C("setScreen",{setScreen:11})}return B}()}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,lineHeight:3,color:"translucent",content:"Relay Anonymous Information",icon:"comment",onClick:function(){function B(){return C("setScreen",{setScreen:3})}return B}()})]})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{mt:1,children:(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{fluid:!0,lineHeight:3,color:"translucent",content:"Print Shipping Label",icon:"tag",onClick:function(){function B(){return C("setScreen",{setScreen:9})}return B}()}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,lineHeight:3,color:"translucent",content:"View Shipping Logs",icon:"clipboard-list",onClick:function(){function B(){return C("setScreen",{setScreen:10})}return B}()})]})}),!!p&&(0,e.createComponentVNode)(2,t.Stack.Item,{mt:1,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,lineHeight:3,color:"translucent",content:"Send Station-Wide Announcement",icon:"bullhorn",onClick:function(){function B(){return C("setScreen",{setScreen:8})}return B}()})})]})})},y=function(i,s){var u=(0,a.useBackend)(s),C=u.act,v=u.data,g=v.department,p=[],N;switch(i.purpose){case"ASSISTANCE":p=v.assist_dept,N="Request assistance from another department";break;case"SUPPLIES":p=v.supply_dept,N="Request supplies from another department";break;case"INFO":p=v.info_dept,N="Relay information to another department";break}return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:N,buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Back",icon:"arrow-left",onClick:function(){function b(){return C("setScreen",{setScreen:0})}return b}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:p.filter(function(b){return b!==g}).map(function(b){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:b,textAlign:"right",className:"candystripe",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Message",icon:"envelope",onClick:function(){function B(){return C("writeInput",{write:b,priority:"1"})}return B}()}),(0,e.createComponentVNode)(2,t.Button,{content:"High Priority",icon:"exclamation-circle",onClick:function(){function B(){return C("writeInput",{write:b,priority:"2"})}return B}()})]},b)})})})})},S=function(i,s){var u=(0,a.useBackend)(s),C=u.act,v=u.data,g;switch(i.type){case"SUCCESS":g="Message sent successfully";break;case"FAIL":g="Request supplies from another department";break}return(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:g,buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Back",icon:"arrow-left",onClick:function(){function p(){return C("setScreen",{setScreen:0})}return p}()})})},k=function(i,s){var u=(0,a.useBackend)(s),C=u.act,v=u.data,g,p;switch(i.type){case"MESSAGES":g=v.message_log,p="Message Log";break;case"SHIPPING":g=v.shipping_log,p="Shipping label print log";break}return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:p,buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Back",icon:"arrow-left",onClick:function(){function N(){return C("setScreen",{setScreen:0})}return N}()}),children:g.map(function(N){return(0,e.createComponentVNode)(2,t.Box,{textAlign:"left",children:[N.map(function(b,B){return(0,e.createVNode)(1,"div",null,b,0,null,B)}),(0,e.createVNode)(1,"hr")]},N)})})})},h=function(i,s){var u=(0,a.useBackend)(s),C=u.act,v=u.data,g=v.recipient,p=v.message,N=v.msgVerified,b=v.msgStamped;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Message Authentication",buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Back",icon:"arrow-left",onClick:function(){function B(){return C("setScreen",{setScreen:0})}return B}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Recipient",children:g}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Message",children:p}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Validated by",color:"green",children:N}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Stamped by",color:"blue",children:b})]})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",content:"Send Message",icon:"envelope",onClick:function(){function B(){return C("department",{department:g})}return B}()})})})],4)},l=function(i,s){var u=(0,a.useBackend)(s),C=u.act,v=u.data,g=v.message,p=v.announceAuth;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Station-Wide Announcement",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{content:"Back",icon:"arrow-left",onClick:function(){function N(){return C("setScreen",{setScreen:0})}return N}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Edit Message",icon:"edit",onClick:function(){function N(){return C("writeAnnouncement")}return N}()})],4),children:g})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{children:[p?(0,e.createComponentVNode)(2,t.Box,{textAlign:"center",color:"green",children:"ID verified. Authentication accepted."}):(0,e.createComponentVNode)(2,t.Box,{textAlign:"center",color:"label",children:"Swipe your ID card to authenticate yourself"}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,mt:2,textAlign:"center",content:"Send Announcement",icon:"bullhorn",disabled:!(p&&g),onClick:function(){function N(){return C("sendAnnouncement")}return N}()})]})})],4)},c=function(i,s){var u=(0,a.useBackend)(s),C=u.act,v=u.data,g=v.shipDest,p=v.msgVerified,N=v.ship_dept;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Stack.Item,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Section,{title:"Print Shipping Label",buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Back",icon:"arrow-left",onClick:function(){function b(){return C("setScreen",{setScreen:0})}return b}()}),children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Destination",children:g}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Validated by",children:p})]}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,mt:1,textAlign:"center",content:"Print Label",icon:"print",disabled:!(g&&p),onClick:function(){function b(){return C("printLabel")}return b}()})]})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Destinations",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:N.map(function(b){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:b,textAlign:"right",className:"candystripe",children:(0,e.createComponentVNode)(2,t.Button,{content:g===b?"Selected":"Select",selected:g===b,onClick:function(){function B(){return C("shipSelect",{shipSelect:b})}return B}()})},b)})})})})],4)},f=function(i,s){var u=(0,a.useBackend)(s),C=u.act,v=u.data,g=v.secondaryGoalAuth,p=v.secondaryGoalEnabled;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Request Secondary Goal",buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Back",icon:"arrow-left",onClick:function(){function N(){return C("setScreen",{setScreen:0})}return N}()})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{children:[p?g?(0,e.createComponentVNode)(2,t.Box,{textAlign:"center",color:"green",children:"ID verified. Authentication accepted."}):(0,e.createComponentVNode)(2,t.Box,{textAlign:"center",color:"label",children:"Swipe your ID card to authenticate yourself"}):(0,e.createComponentVNode)(2,t.Box,{textAlign:"center",color:"label",children:"Complete your current goal first!"}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,mt:2,textAlign:"center",content:"Request Secondary Goal",icon:"clipboard-list",disabled:!(g&&p),onClick:function(){function N(){return C("requestSecondaryGoal")}return N}()})]})})],4)}},89641:function(I,r,n){"use strict";r.__esModule=!0,r.SUBMENU=r.RndConsole=r.MENU=void 0;var e=n(96524),a=n(17899),t=n(45493),o=n(24674),m=n(3422),V=r.MENU={MAIN:0,LEVELS:1,DISK:2,DESTROY:3,LATHE:4,IMPRINTER:5,SETTINGS:6},y=r.SUBMENU={MAIN:0,DISK_COPY:1,LATHE_CATEGORY:1,LATHE_MAT_STORAGE:2,LATHE_CHEM_STORAGE:3,SETTINGS_DEVICES:1},S=r.RndConsole=function(){function k(h,l){var c=(0,a.useBackend)(l),f=c.data,d=f.wait_message;return(0,e.createComponentVNode)(2,t.Window,{width:800,height:550,children:(0,e.createComponentVNode)(2,t.Window.Content,{children:(0,e.createComponentVNode)(2,o.Box,{className:"RndConsole",children:[(0,e.createComponentVNode)(2,m.RndNavbar),(0,e.createComponentVNode)(2,m.RndRoute,{menu:V.MAIN,render:function(){function i(){return(0,e.createComponentVNode)(2,m.MainMenu)}return i}()}),(0,e.createComponentVNode)(2,m.RndRoute,{menu:V.LEVELS,render:function(){function i(){return(0,e.createComponentVNode)(2,m.CurrentLevels)}return i}()}),(0,e.createComponentVNode)(2,m.RndRoute,{menu:V.DISK,render:function(){function i(){return(0,e.createComponentVNode)(2,m.DataDiskMenu)}return i}()}),(0,e.createComponentVNode)(2,m.RndRoute,{menu:V.DESTROY,render:function(){function i(){return(0,e.createComponentVNode)(2,m.DeconstructionMenu)}return i}()}),(0,e.createComponentVNode)(2,m.RndRoute,{menu:function(){function i(s){return s===V.LATHE||s===V.IMPRINTER}return i}(),render:function(){function i(){return(0,e.createComponentVNode)(2,m.LatheMenu)}return i}()}),(0,e.createComponentVNode)(2,m.RndRoute,{menu:V.SETTINGS,render:function(){function i(){return(0,e.createComponentVNode)(2,m.SettingsMenu)}return i}()}),d?(0,e.createComponentVNode)(2,o.Box,{className:"RndConsole__Overlay",children:(0,e.createComponentVNode)(2,o.Box,{className:"RndConsole__Overlay__Wrapper",children:(0,e.createComponentVNode)(2,o.NoticeBox,{color:"black",children:d})})}):null]})})})}return k}()},19348:function(I,r,n){"use strict";r.__esModule=!0,r.CurrentLevels=void 0;var e=n(96524),a=n(17899),t=n(24674),o=r.CurrentLevels=function(){function m(V,y){var S=(0,a.useBackend)(y),k=S.data,h=k.tech_levels;return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createVNode)(1,"h3",null,"Current Research Levels:",16),h.map(function(l,c){var f=l.name,d=l.level,i=l.desc;return(0,e.createComponentVNode)(2,t.Box,{children:[c>0?(0,e.createComponentVNode)(2,t.Divider):null,(0,e.createComponentVNode)(2,t.Box,{children:f}),(0,e.createComponentVNode)(2,t.Box,{children:["* Level: ",d]}),(0,e.createComponentVNode)(2,t.Box,{children:["* Summary: ",i]})]},f)})]})}return m}()},338:function(I,r,n){"use strict";r.__esModule=!0,r.DataDiskMenu=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(3422),m=n(89641),V="design",y="tech",S=function(s,u){var C=(0,a.useBackend)(u),v=C.data,g=C.act,p=v.disk_data;return p?(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Name",children:p.name}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Level",children:p.level}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Description",children:p.desc})]}),(0,e.createComponentVNode)(2,t.Box,{mt:"10px",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Upload to Database",icon:"arrow-up",onClick:function(){function N(){return g("updt_tech")}return N}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Clear Disk",icon:"trash",onClick:function(){function N(){return g("clear_tech")}return N}()}),(0,e.createComponentVNode)(2,l)]})]}):null},k=function(s,u){var C=(0,a.useBackend)(u),v=C.data,g=C.act,p=v.disk_data;if(!p)return null;var N=p.name,b=p.lathe_types,B=p.materials,L=b.join(", ");return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Name",children:N}),L?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Lathe Types",children:L}):null,(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Required Materials"})]}),B.map(function(w){return(0,e.createComponentVNode)(2,t.Box,{children:["- ",(0,e.createVNode)(1,"span",null,w.name,0,{style:{"text-transform":"capitalize"}})," x ",w.amount]},w.name)}),(0,e.createComponentVNode)(2,t.Box,{mt:"10px",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Upload to Database",icon:"arrow-up",onClick:function(){function w(){return g("updt_design")}return w}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Clear Disk",icon:"trash",onClick:function(){function w(){return g("clear_design")}return w}()}),(0,e.createComponentVNode)(2,l)]})]})},h=function(s,u){var C=(0,a.useBackend)(u),v=C.data,g=v.disk_type;return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Box,{children:"This disk is empty."}),(0,e.createComponentVNode)(2,t.Box,{mt:"10px",children:[(0,e.createComponentVNode)(2,o.RndNavButton,{submenu:m.SUBMENU.DISK_COPY,icon:"arrow-down",content:g===y?"Load Tech to Disk":"Load Design to Disk"}),(0,e.createComponentVNode)(2,l)]})]})},l=function(s,u){var C=(0,a.useBackend)(u),v=C.data,g=C.act,p=v.disk_type;return p?(0,e.createComponentVNode)(2,t.Button,{content:"Eject Disk",icon:"eject",onClick:function(){function N(){var b=p===y?"eject_tech":"eject_design";g(b)}return N}()}):null},c=function(s,u){var C=(0,a.useBackend)(u),v=C.data,g=v.disk_data,p=v.disk_type,N=function(){if(!g)return(0,e.createComponentVNode)(2,h);switch(p){case V:return(0,e.createComponentVNode)(2,k);case y:return(0,e.createComponentVNode)(2,S);default:return null}};return(0,e.createComponentVNode)(2,t.Section,{title:"Data Disk Contents",children:N()})},f=function(s,u){var C=(0,a.useBackend)(u),v=C.data,g=C.act,p=v.disk_type,N=v.to_copy;return(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.Box,{overflowY:"auto",overflowX:"hidden",maxHeight:"450px",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:N.sort(function(b,B){return b.name.localeCompare(B.name)}).map(function(b){var B=b.name,L=b.id;return(0,e.createComponentVNode)(2,t.LabeledList.Item,{noColon:!0,label:B,children:(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-down",content:"Copy to Disk",onClick:function(){function w(){p===y?g("copy_tech",{id:L}):g("copy_design",{id:L})}return w}()})},L)})})})})},d=r.DataDiskMenu=function(){function i(s,u){var C=(0,a.useBackend)(u),v=C.data,g=v.disk_type;return g?(0,e.createFragment)([(0,e.createComponentVNode)(2,o.RndRoute,{submenu:m.SUBMENU.MAIN,render:function(){function p(){return(0,e.createComponentVNode)(2,c)}return p}()}),(0,e.createComponentVNode)(2,o.RndRoute,{submenu:m.SUBMENU.DISK_COPY,render:function(){function p(){return(0,e.createComponentVNode)(2,f)}return p}()})],4):null}return i}()},90785:function(I,r,n){"use strict";r.__esModule=!0,r.DeconstructionMenu=void 0;var e=n(96524),a=n(17899),t=n(24674),o=r.DeconstructionMenu=function(){function m(V,y){var S=(0,a.useBackend)(y),k=S.data,h=S.act,l=k.loaded_item,c=k.linked_destroy;return c?l?(0,e.createComponentVNode)(2,t.Section,{noTopPadding:!0,title:"Deconstruction Menu",children:[(0,e.createComponentVNode)(2,t.Box,{mt:"10px",children:["Name: ",l.name]}),(0,e.createComponentVNode)(2,t.Box,{mt:"10px",children:(0,e.createVNode)(1,"h3",null,"Origin Tech:",16)}),(0,e.createComponentVNode)(2,t.LabeledList,{children:l.origin_tech.map(function(f){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"* "+f.name,children:[f.object_level," ",f.current_level?(0,e.createFragment)([(0,e.createTextVNode)("(Current: "),f.current_level,(0,e.createTextVNode)(")")],0):null]},f.name)})}),(0,e.createComponentVNode)(2,t.Box,{mt:"10px",children:(0,e.createVNode)(1,"h3",null,"Options:",16)}),(0,e.createComponentVNode)(2,t.Button,{content:"Deconstruct Item",icon:"unlink",onClick:function(){function f(){h("deconstruct")}return f}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Eject Item",icon:"eject",onClick:function(){function f(){h("eject_item")}return f}()})]}):(0,e.createComponentVNode)(2,t.Section,{title:"Deconstruction Menu",children:"No item loaded. Standing by..."}):(0,e.createComponentVNode)(2,t.Box,{children:"NO DESTRUCTIVE ANALYZER LINKED TO CONSOLE"})}return m}()},34492:function(I,r,n){"use strict";r.__esModule=!0,r.LatheCategory=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(3422),m=r.LatheCategory=function(){function V(y,S){var k=(0,a.useBackend)(S),h=k.data,l=k.act,c=h.category,f=h.matching_designs,d=h.menu,i=d===4,s=i?"build":"imprint";return(0,e.createComponentVNode)(2,t.Section,{title:c,children:[(0,e.createComponentVNode)(2,o.LatheMaterials),(0,e.createComponentVNode)(2,t.Table,{className:"RndConsole__LatheCategory__MatchingDesigns",children:f.map(function(u){var C=u.id,v=u.name,g=u.can_build,p=u.materials;return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"print",content:v,disabled:g<1,onClick:function(){function N(){return l(s,{id:C,amount:1})}return N}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:g>=5?(0,e.createComponentVNode)(2,t.Button,{content:"x5",onClick:function(){function N(){return l(s,{id:C,amount:5})}return N}()}):null}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:g>=10?(0,e.createComponentVNode)(2,t.Button,{content:"x10",onClick:function(){function N(){return l(s,{id:C,amount:10})}return N}()}):null}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:p.map(function(N){return(0,e.createFragment)([" | ",(0,e.createVNode)(1,"span",N.is_red?"color-red":null,[N.amount,(0,e.createTextVNode)(" "),N.name],0)],0)})})]},C)})})]})}return V}()},84275:function(I,r,n){"use strict";r.__esModule=!0,r.LatheChemicalStorage=void 0;var e=n(96524),a=n(17899),t=n(24674),o=r.LatheChemicalStorage=function(){function m(V,y){var S=(0,a.useBackend)(y),k=S.data,h=S.act,l=k.loaded_chemicals,c=k.menu===4;return(0,e.createComponentVNode)(2,t.Section,{title:"Chemical Storage",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Purge All",icon:"trash",onClick:function(){function f(){var d=c?"disposeallP":"disposeallI";h(d)}return f}()}),(0,e.createComponentVNode)(2,t.LabeledList,{children:l.map(function(f){var d=f.volume,i=f.name,s=f.id;return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"* "+d+" of "+i,children:(0,e.createComponentVNode)(2,t.Button,{content:"Purge",icon:"trash",onClick:function(){function u(){var C=c?"disposeP":"disposeI";h(C,{id:s})}return u}()})},s)})})]})}return m}()},12638:function(I,r,n){"use strict";r.__esModule=!0,r.LatheMainMenu=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(3422),m=r.LatheMainMenu=function(){function V(y,S){var k=(0,a.useBackend)(S),h=k.data,l=k.act,c=h.menu,f=h.categories,d=c===4?"Protolathe":"Circuit Imprinter";return(0,e.createComponentVNode)(2,t.Section,{title:d+" Menu",children:[(0,e.createComponentVNode)(2,o.LatheMaterials),(0,e.createComponentVNode)(2,o.LatheSearch),(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,t.Flex,{wrap:"wrap",children:f.map(function(i){return(0,e.createComponentVNode)(2,t.Flex,{style:{"flex-basis":"50%","margin-bottom":"6px"},children:(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-right",content:i,onClick:function(){function s(){l("setCategory",{category:i})}return s}()})},i)})})]})}return V}()},89004:function(I,r,n){"use strict";r.__esModule=!0,r.LatheMaterialStorage=void 0;var e=n(96524),a=n(17899),t=n(24674),o=r.LatheMaterialStorage=function(){function m(V,y){var S=(0,a.useBackend)(y),k=S.data,h=S.act,l=k.loaded_materials;return(0,e.createComponentVNode)(2,t.Section,{className:"RndConsole__LatheMaterialStorage",title:"Material Storage",children:(0,e.createComponentVNode)(2,t.Table,{children:l.map(function(c){var f=c.id,d=c.amount,i=c.name,s=function(){function g(p){var N=k.menu===4?"lathe_ejectsheet":"imprinter_ejectsheet";h(N,{id:f,amount:p})}return g}(),u=Math.floor(d/2e3),C=d<1,v=u===1?"":"s";return(0,e.createComponentVNode)(2,t.Table.Row,{className:C?"color-grey":"color-yellow",children:[(0,e.createComponentVNode)(2,t.Table.Cell,{minWidth:"210px",children:["* ",d," of ",i]}),(0,e.createComponentVNode)(2,t.Table.Cell,{minWidth:"110px",children:["(",u," sheet",v,")"]}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:d>=2e3?(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{content:"1x",icon:"eject",onClick:function(){function g(){return s(1)}return g}()}),(0,e.createComponentVNode)(2,t.Button,{content:"C",icon:"eject",onClick:function(){function g(){return s("custom")}return g}()}),d>=2e3*5?(0,e.createComponentVNode)(2,t.Button,{content:"5x",icon:"eject",onClick:function(){function g(){return s(5)}return g}()}):null,(0,e.createComponentVNode)(2,t.Button,{content:"All",icon:"eject",onClick:function(){function g(){return s(50)}return g}()})],0):null})]},f)})})})}return m}()},73856:function(I,r,n){"use strict";r.__esModule=!0,r.LatheMaterials=void 0;var e=n(96524),a=n(17899),t=n(24674),o=r.LatheMaterials=function(){function m(V,y){var S=(0,a.useBackend)(y),k=S.data,h=k.total_materials,l=k.max_materials,c=k.max_chemicals,f=k.total_chemicals;return(0,e.createComponentVNode)(2,t.Box,{className:"RndConsole__LatheMaterials",mb:"10px",children:(0,e.createComponentVNode)(2,t.Table,{width:"auto",children:[(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Material Amount:"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:h}),l?(0,e.createComponentVNode)(2,t.Table.Cell,{children:" / "+l}):null]}),(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Chemical Amount:"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:f}),c?(0,e.createComponentVNode)(2,t.Table.Cell,{children:" / "+c}):null]})]})})}return m}()},75955:function(I,r,n){"use strict";r.__esModule=!0,r.LatheMenu=void 0;var e=n(96524),a=n(17899),t=n(78345),o=n(3422),m=n(24674),V=n(89641),y=r.LatheMenu=function(){function S(k,h){var l=(0,a.useBackend)(h),c=l.data,f=c.menu,d=c.linked_lathe,i=c.linked_imprinter;return f===4&&!d?(0,e.createComponentVNode)(2,m.Box,{children:"NO PROTOLATHE LINKED TO CONSOLE"}):f===5&&!i?(0,e.createComponentVNode)(2,m.Box,{children:"NO CIRCUIT IMPRITER LINKED TO CONSOLE"}):(0,e.createComponentVNode)(2,m.Box,{children:[(0,e.createComponentVNode)(2,t.RndRoute,{submenu:V.SUBMENU.MAIN,render:function(){function s(){return(0,e.createComponentVNode)(2,o.LatheMainMenu)}return s}()}),(0,e.createComponentVNode)(2,t.RndRoute,{submenu:V.SUBMENU.LATHE_CATEGORY,render:function(){function s(){return(0,e.createComponentVNode)(2,o.LatheCategory)}return s}()}),(0,e.createComponentVNode)(2,t.RndRoute,{submenu:V.SUBMENU.LATHE_MAT_STORAGE,render:function(){function s(){return(0,e.createComponentVNode)(2,o.LatheMaterialStorage)}return s}()}),(0,e.createComponentVNode)(2,t.RndRoute,{submenu:V.SUBMENU.LATHE_CHEM_STORAGE,render:function(){function s(){return(0,e.createComponentVNode)(2,o.LatheChemicalStorage)}return s}()})]})}return S}()},72880:function(I,r,n){"use strict";r.__esModule=!0,r.LatheSearch=void 0;var e=n(96524),a=n(17899),t=n(24674),o=r.LatheSearch=function(){function m(V,y){var S=(0,a.useBackend)(y),k=S.act;return(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Input,{placeholder:"Search...",onEnter:function(){function h(l,c){return k("search",{to_search:c})}return h}()})})}return m}()},62306:function(I,r,n){"use strict";r.__esModule=!0,r.MainMenu=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(3422),m=n(89641),V=r.MainMenu=function(){function y(S,k){var h=(0,a.useBackend)(k),l=h.data,c=l.disk_type,f=l.linked_destroy,d=l.linked_lathe,i=l.linked_imprinter,s=l.tech_levels;return(0,e.createComponentVNode)(2,t.Section,{title:"Main Menu",children:[(0,e.createComponentVNode)(2,t.Flex,{className:"RndConsole__MainMenu__Buttons",direction:"column",align:"flex-start",children:[(0,e.createComponentVNode)(2,o.RndNavButton,{disabled:!c,menu:m.MENU.DISK,submenu:m.SUBMENU.MAIN,icon:"save",content:"Disk Operations"}),(0,e.createComponentVNode)(2,o.RndNavButton,{disabled:!f,menu:m.MENU.DESTROY,submenu:m.SUBMENU.MAIN,icon:"unlink",content:"Destructive Analyzer Menu"}),(0,e.createComponentVNode)(2,o.RndNavButton,{disabled:!d,menu:m.MENU.LATHE,submenu:m.SUBMENU.MAIN,icon:"print",content:"Protolathe Menu"}),(0,e.createComponentVNode)(2,o.RndNavButton,{disabled:!i,menu:m.MENU.IMPRINTER,submenu:m.SUBMENU.MAIN,icon:"print",content:"Circuit Imprinter Menu"}),(0,e.createComponentVNode)(2,o.RndNavButton,{menu:m.MENU.SETTINGS,submenu:m.SUBMENU.MAIN,icon:"cog",content:"Settings"})]}),(0,e.createComponentVNode)(2,t.Box,{mt:"12px"}),(0,e.createVNode)(1,"h3",null,"Current Research Levels:",16),(0,e.createComponentVNode)(2,t.LabeledList,{children:s.map(function(u){var C=u.name,v=u.level;return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:C,children:v},C)})})]})}return y}()},99941:function(I,r,n){"use strict";r.__esModule=!0,r.RndNavButton=void 0;var e=n(96524),a=n(17899),t=n(24674),o=r.RndNavButton=function(){function m(V,y){var S=V.icon,k=V.children,h=V.disabled,l=V.content,c=(0,a.useBackend)(y),f=c.data,d=c.act,i=f.menu,s=f.submenu,u=i,C=s;return V.menu!==null&&V.menu!==void 0&&(u=V.menu),V.submenu!==null&&V.submenu!==void 0&&(C=V.submenu),(0,e.createComponentVNode)(2,t.Button,{content:l,icon:S,disabled:h,onClick:function(){function v(){d("nav",{menu:u,submenu:C})}return v}(),children:k})}return m}()},24448:function(I,r,n){"use strict";r.__esModule=!0,r.RndNavbar=void 0;var e=n(96524),a=n(3422),t=n(24674),o=n(89641),m=r.RndNavbar=function(){function V(){return(0,e.createComponentVNode)(2,t.Box,{className:"RndConsole__RndNavbar",children:[(0,e.createComponentVNode)(2,a.RndRoute,{menu:function(){function y(S){return S!==o.MENU.MAIN}return y}(),render:function(){function y(){return(0,e.createComponentVNode)(2,a.RndNavButton,{menu:o.MENU.MAIN,submenu:o.SUBMENU.MAIN,icon:"reply",content:"Main Menu"})}return y}()}),(0,e.createComponentVNode)(2,a.RndRoute,{submenu:function(){function y(S){return S!==o.SUBMENU.MAIN}return y}(),render:function(){function y(){return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,a.RndRoute,{menu:o.MENU.DISK,render:function(){function S(){return(0,e.createComponentVNode)(2,a.RndNavButton,{submenu:o.SUBMENU.MAIN,icon:"reply",content:"Disk Operations Menu"})}return S}()}),(0,e.createComponentVNode)(2,a.RndRoute,{menu:o.MENU.LATHE,render:function(){function S(){return(0,e.createComponentVNode)(2,a.RndNavButton,{submenu:o.SUBMENU.MAIN,icon:"reply",content:"Protolathe Menu"})}return S}()}),(0,e.createComponentVNode)(2,a.RndRoute,{menu:o.MENU.IMPRINTER,render:function(){function S(){return(0,e.createComponentVNode)(2,a.RndNavButton,{submenu:o.SUBMENU.MAIN,icon:"reply",content:"Circuit Imprinter Menu"})}return S}()}),(0,e.createComponentVNode)(2,a.RndRoute,{menu:o.MENU.SETTINGS,render:function(){function S(){return(0,e.createComponentVNode)(2,a.RndNavButton,{submenu:o.SUBMENU.MAIN,icon:"reply",content:"Settings Menu"})}return S}()})]})}return y}()}),(0,e.createComponentVNode)(2,a.RndRoute,{menu:function(){function y(S){return S===o.MENU.LATHE||S===o.MENU.IMPRINTER}return y}(),submenu:o.SUBMENU.MAIN,render:function(){function y(){return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,a.RndNavButton,{submenu:o.SUBMENU.LATHE_MAT_STORAGE,icon:"arrow-up",content:"Material Storage"}),(0,e.createComponentVNode)(2,a.RndNavButton,{submenu:o.SUBMENU.LATHE_CHEM_STORAGE,icon:"arrow-up",content:"Chemical Storage"})]})}return y}()})]})}return V}()},78345:function(I,r,n){"use strict";r.__esModule=!0,r.RndRoute=void 0;var e=n(17899),a=r.RndRoute=function(){function t(o,m){var V=o.render,y=(0,e.useBackend)(m),S=y.data,k=S.menu,h=S.submenu,l=function(){function f(d,i){return d==null?!0:typeof d=="function"?d(i):d===i}return f}(),c=l(o.menu,k)&&l(o.submenu,h);return c?V():null}return t}()},56454:function(I,r,n){"use strict";r.__esModule=!0,r.SettingsMenu=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(3422),m=n(89641),V=r.SettingsMenu=function(){function y(S,k){var h=(0,a.useBackend)(k),l=h.data,c=h.act,f=l.sync,d=l.admin,i=l.linked_destroy,s=l.linked_lathe,u=l.linked_imprinter;return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,o.RndRoute,{submenu:m.SUBMENU.MAIN,render:function(){function C(){return(0,e.createComponentVNode)(2,t.Section,{title:"Settings",children:(0,e.createComponentVNode)(2,t.Flex,{direction:"column",align:"flex-start",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Sync Database with Network",icon:"sync",disabled:!f,onClick:function(){function v(){c("sync")}return v}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Connect to Research Network",icon:"plug",disabled:f,onClick:function(){function v(){c("togglesync")}return v}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:!f,icon:"unlink",content:"Disconnect from Research Network",onClick:function(){function v(){c("togglesync")}return v}()}),(0,e.createComponentVNode)(2,o.RndNavButton,{disabled:!f,content:"Device Linkage Menu",icon:"link",menu:m.MENU.SETTINGS,submenu:m.SUBMENU.SETTINGS_DEVICES}),d===1?(0,e.createComponentVNode)(2,t.Button,{icon:"exclamation",content:"[ADMIN] Maximize Research Levels",onClick:function(){function v(){return c("maxresearch")}return v}()}):null]})})}return C}()}),(0,e.createComponentVNode)(2,o.RndRoute,{submenu:m.SUBMENU.SETTINGS_DEVICES,render:function(){function C(){return(0,e.createComponentVNode)(2,t.Section,{title:"Device Linkage Menu",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"link",content:"Re-sync with Nearby Devices",onClick:function(){function v(){return c("find_device")}return v}()}),(0,e.createComponentVNode)(2,t.Box,{mt:"5px",children:(0,e.createVNode)(1,"h3",null,"Linked Devices:",16)}),(0,e.createComponentVNode)(2,t.LabeledList,{children:[i?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"* Destructive Analyzer",children:(0,e.createComponentVNode)(2,t.Button,{icon:"unlink",content:"Unlink",onClick:function(){function v(){return c("disconnect",{item:"destroy"})}return v}()})}):(0,e.createComponentVNode)(2,t.LabeledList.Item,{noColon:!0,label:"* No Destructive Analyzer Linked"}),s?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"* Protolathe",children:(0,e.createComponentVNode)(2,t.Button,{icon:"unlink",content:"Unlink",onClick:function(){function v(){c("disconnect",{item:"lathe"})}return v}()})}):(0,e.createComponentVNode)(2,t.LabeledList.Item,{noColon:!0,label:"* No Protolathe Linked"}),u?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"* Circuit Imprinter",children:(0,e.createComponentVNode)(2,t.Button,{icon:"unlink",content:"Unlink",onClick:function(){function v(){return c("disconnect",{item:"imprinter"})}return v}()})}):(0,e.createComponentVNode)(2,t.LabeledList.Item,{noColon:!0,label:"* No Circuit Imprinter Linked"})]})]})}return C}()})]})}return y}()},3422:function(I,r,n){"use strict";r.__esModule=!0,r.SettingsMenu=r.RndRoute=r.RndNavbar=r.RndNavButton=r.MainMenu=r.LatheSearch=r.LatheMenu=r.LatheMaterials=r.LatheMaterialStorage=r.LatheMainMenu=r.LatheChemicalStorage=r.LatheCategory=r.DeconstructionMenu=r.DataDiskMenu=r.CurrentLevels=void 0;var e=n(19348);r.CurrentLevels=e.CurrentLevels;var a=n(338);r.DataDiskMenu=a.DataDiskMenu;var t=n(90785);r.DeconstructionMenu=t.DeconstructionMenu;var o=n(34492);r.LatheCategory=o.LatheCategory;var m=n(84275);r.LatheChemicalStorage=m.LatheChemicalStorage;var V=n(12638);r.LatheMainMenu=V.LatheMainMenu;var y=n(73856);r.LatheMaterials=y.LatheMaterials;var S=n(89004);r.LatheMaterialStorage=S.LatheMaterialStorage;var k=n(75955);r.LatheMenu=k.LatheMenu;var h=n(72880);r.LatheSearch=h.LatheSearch;var l=n(62306);r.MainMenu=l.MainMenu;var c=n(24448);r.RndNavbar=c.RndNavbar;var f=n(99941);r.RndNavButton=f.RndNavButton;var d=n(78345);r.RndRoute=d.RndRoute;var i=n(56454);r.SettingsMenu=i.SettingsMenu},71123:function(I,r,n){"use strict";r.__esModule=!0,r.RobotSelfDiagnosis=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=n(78234),V=function(k,h){var l=k/h;return l<=.2?"good":l<=.5?"average":"bad"},y=r.RobotSelfDiagnosis=function(){function S(k,h){var l=(0,a.useBackend)(h),c=l.data,f=c.component_data;return(0,e.createComponentVNode)(2,o.Window,{width:280,height:480,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:f.map(function(d,i){return(0,e.createComponentVNode)(2,t.Section,{title:(0,m.capitalize)(d.name),children:d.installed<=0?(0,e.createComponentVNode)(2,t.NoticeBox,{m:-.5,height:3.5,color:"red",style:{"font-style":"normal"},children:(0,e.createComponentVNode)(2,t.Flex,{height:"100%",children:(0,e.createComponentVNode)(2,t.Flex.Item,{grow:1,textAlign:"center",align:"center",color:"#e8e8e8",children:d.installed===-1?"Destroyed":"Missing"})})}):(0,e.createComponentVNode)(2,t.Flex,{children:[(0,e.createComponentVNode)(2,t.Flex.Item,{width:"72%",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Brute Damage",color:V(d.brute_damage,d.max_damage),children:d.brute_damage}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Burn Damage",color:V(d.electronic_damage,d.max_damage),children:d.electronic_damage})]})}),(0,e.createComponentVNode)(2,t.Flex.Item,{width:"50%",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Powered",color:d.powered?"good":"bad",children:d.powered?"Yes":"No"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Enabled",color:d.status?"good":"bad",children:d.status?"Yes":"No"})]})})]})},i)})})})}return S}()},98951:function(I,r,n){"use strict";r.__esModule=!0,r.RoboticsControlConsole=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=r.RoboticsControlConsole=function(){function y(S,k){var h=(0,a.useBackend)(k),l=h.act,c=h.data,f=c.can_hack,d=c.safety,i=c.show_lock_all,s=c.cyborgs,u=s===void 0?[]:s;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:460,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[!!i&&(0,e.createComponentVNode)(2,t.Section,{title:"Emergency Lock Down",children:[(0,e.createComponentVNode)(2,t.Button,{icon:d?"lock":"unlock",content:d?"Disable Safety":"Enable Safety",selected:d,onClick:function(){function C(){return l("arm",{})}return C}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"lock",disabled:d,content:"Lock ALL Cyborgs",color:"bad",onClick:function(){function C(){return l("masslock",{})}return C}()})]}),(0,e.createComponentVNode)(2,V,{cyborgs:u,can_hack:f})]})})}return y}(),V=function(S,k){var h=S.cyborgs,l=S.can_hack,c=(0,a.useBackend)(k),f=c.act,d=c.data,i="Detonate";return d.detonate_cooldown>0&&(i+=" ("+d.detonate_cooldown+"s)"),h.length?h.map(function(s){return(0,e.createComponentVNode)(2,t.Section,{title:s.name,buttons:(0,e.createFragment)([!!s.hackable&&!s.emagged&&(0,e.createComponentVNode)(2,t.Button,{icon:"terminal",content:"Hack",color:"bad",onClick:function(){function u(){return f("hackbot",{uid:s.uid})}return u}()}),(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:s.locked_down?"unlock":"lock",color:s.locked_down?"good":"default",content:s.locked_down?"Release":"Lockdown",disabled:!d.auth,onClick:function(){function u(){return f("stopbot",{uid:s.uid})}return u}()}),(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"bomb",content:i,disabled:!d.auth||d.detonate_cooldown>0,color:"bad",onClick:function(){function u(){return f("killbot",{uid:s.uid})}return u}()})],0),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:(0,e.createComponentVNode)(2,t.Box,{color:s.status?"bad":s.locked_down?"average":"good",children:s.status?"Not Responding":s.locked_down?"Locked Down":"Nominal"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Location",children:(0,e.createComponentVNode)(2,t.Box,{children:s.locstring})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Integrity",children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:s.health>50?"good":"bad",value:s.health/100})}),typeof s.charge=="number"&&(0,e.createFragment)([(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cell Charge",children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:s.charge>30?"good":"bad",value:s.charge/100})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cell Capacity",children:(0,e.createComponentVNode)(2,t.Box,{color:s.cell_capacity<3e4?"average":"good",children:s.cell_capacity})})],4)||(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cell",children:(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:"No Power Cell"})}),!!s.is_hacked&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Safeties",children:(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:"DISABLED"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Module",children:s.module}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Master AI",children:(0,e.createComponentVNode)(2,t.Box,{color:s.synchronization?"default":"average",children:s.synchronization||"None"})})]})},s.uid)}):(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No cyborg units detected within access parameters."})}},2289:function(I,r,n){"use strict";r.__esModule=!0,r.Safe=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=r.Safe=function(){function k(h,l){var c=(0,a.useBackend)(l),f=c.act,d=c.data,i=d.dial,s=d.open,u=d.locked,C=d.contents;return(0,e.createComponentVNode)(2,o.Window,{theme:"safe",width:600,height:800,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Box,{className:"Safe--engraving",children:[(0,e.createComponentVNode)(2,V),(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Box,{className:"Safe--engraving--hinge",top:"25%"}),(0,e.createComponentVNode)(2,t.Box,{className:"Safe--engraving--hinge",top:"75%"})]}),(0,e.createComponentVNode)(2,t.Icon,{className:"Safe--engraving--arrow",name:"long-arrow-alt-down",size:"3"}),(0,e.createVNode)(1,"br"),s?(0,e.createComponentVNode)(2,y):(0,e.createComponentVNode)(2,t.Box,{as:"img",className:"Safe--dial",src:"safe_dial.png",style:{transform:"rotate(-"+3.6*i+"deg)","z-index":0}})]}),!s&&(0,e.createComponentVNode)(2,S)]})})}return k}(),V=function(h,l){var c=(0,a.useBackend)(l),f=c.act,d=c.data,i=d.dial,s=d.open,u=d.locked,C=function(g,p){return(0,e.createComponentVNode)(2,t.Button,{disabled:s||p&&!u,icon:"arrow-"+(p?"right":"left"),content:(p?"Right":"Left")+" "+g,iconRight:p,onClick:function(){function N(){return f(p?"turnleft":"turnright",{num:g})}return N}(),style:{"z-index":10}})};return(0,e.createComponentVNode)(2,t.Box,{className:"Safe--dialer",children:[(0,e.createComponentVNode)(2,t.Button,{disabled:u,icon:s?"lock":"lock-open",content:s?"Close":"Open",mb:"0.5rem",onClick:function(){function v(){return f("open")}return v}()}),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Box,{position:"absolute",children:[C(50),C(10),C(1)]}),(0,e.createComponentVNode)(2,t.Box,{className:"Safe--dialer--right",position:"absolute",right:"5px",children:[C(1,!0),C(10,!0),C(50,!0)]}),(0,e.createComponentVNode)(2,t.Box,{className:"Safe--dialer--number",children:i})]})},y=function(h,l){var c=(0,a.useBackend)(l),f=c.act,d=c.data,i=d.contents;return(0,e.createComponentVNode)(2,t.Box,{className:"Safe--contents",overflow:"auto",children:i.map(function(s,u){return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{mb:"0.5rem",onClick:function(){function C(){return f("retrieve",{index:u+1})}return C}(),children:[(0,e.createComponentVNode)(2,t.Box,{as:"img",src:s.sprite+".png",verticalAlign:"middle",ml:"-6px",mr:"0.5rem"}),s.name]}),(0,e.createVNode)(1,"br")],4,s)})})},S=function(h,l){return(0,e.createComponentVNode)(2,t.Section,{className:"Safe--help",title:"Safe opening instructions (because you all keep forgetting)",children:[(0,e.createComponentVNode)(2,t.Box,{children:["1. Turn the dial left to the first number.",(0,e.createVNode)(1,"br"),"2. Turn the dial right to the second number.",(0,e.createVNode)(1,"br"),"3. Continue repeating this process for each number, switching between left and right each time.",(0,e.createVNode)(1,"br"),"4. Open the safe."]}),(0,e.createComponentVNode)(2,t.Box,{bold:!0,children:"To lock fully, turn the dial to the left after closing the safe."})]})}},49334:function(I,r,n){"use strict";r.__esModule=!0,r.SatelliteControl=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=r.SatelliteControl=function(){function V(y,S){var k=(0,a.useBackend)(S),h=k.act,l=k.data,c=l.satellites,f=l.notice,d=l.meteor_shield,i=l.meteor_shield_coverage,s=l.meteor_shield_coverage_max,u=l.meteor_shield_coverage_percentage;return(0,e.createComponentVNode)(2,o.Window,{width:475,height:400,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[d&&(0,e.createComponentVNode)(2,t.Section,{title:"Station Shield Coverage",children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:u>=100?"good":"average",value:i,maxValue:s,children:[u," %"]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Satellite Network Control",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[f&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Alert",color:"red",children:l.notice}),c.map(function(C){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"#"+C.id,children:[C.mode," ",(0,e.createComponentVNode)(2,t.Button,{content:C.active?"Deactivate":"Activate",icon:"arrow-circle-right",onClick:function(){function v(){return h("toggle",{id:C.id})}return v}()})]},C.id)})]})})]})})}return V}()},54892:function(I,r,n){"use strict";r.__esModule=!0,r.SecureStorage=void 0;var e=n(96524),a=n(28234),t=n(17899),o=n(24674),m=n(45493),V=n(5126),y=n(68100),S=r.SecureStorage=function(){function c(f,d){return(0,e.createComponentVNode)(2,m.Window,{theme:"securestorage",height:500,width:280,children:(0,e.createComponentVNode)(2,m.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,h)})})})})}return c}(),k=function(f,d){var i=(0,t.useBackend)(d),s=i.act,u=window.event?f.which:f.keyCode;if(u===y.KEY_ENTER){f.preventDefault(),s("keypad",{digit:"E"});return}if(u===y.KEY_ESCAPE){f.preventDefault(),s("keypad",{digit:"C"});return}if(u===y.KEY_BACKSPACE){f.preventDefault(),s("backspace");return}if(u>=y.KEY_0&&u<=y.KEY_9){f.preventDefault(),s("keypad",{digit:u-y.KEY_0});return}if(u>=y.KEY_NUMPAD_0&&u<=y.KEY_NUMPAD_9){f.preventDefault(),s("keypad",{digit:u-y.KEY_NUMPAD_0});return}},h=function(f,d){var i=(0,t.useBackend)(d),s=i.act,u=i.data,C=u.locked,v=u.no_passcode,g=u.emagged,p=u.user_entered_code,N=[["1","2","3"],["4","5","6"],["7","8","9"],["C","0","E"]],b=v?"":C?"bad":"good";return(0,e.createComponentVNode)(2,o.Section,{fill:!0,onKeyDown:function(){function B(L){return k(L,d)}return B}(),children:[(0,e.createComponentVNode)(2,o.Stack.Item,{height:7.3,children:(0,e.createComponentVNode)(2,o.Box,{className:(0,a.classes)(["SecureStorage__displayBox","SecureStorage__displayBox--"+b]),height:"100%",children:g?"ERROR":p})}),(0,e.createComponentVNode)(2,o.Table,{children:N.map(function(B){return(0,e.createComponentVNode)(2,V.TableRow,{children:B.map(function(L){return(0,e.createComponentVNode)(2,V.TableCell,{children:(0,e.createComponentVNode)(2,l,{number:L})},L)})},B[0])})})]})},l=function(f,d){var i=(0,t.useBackend)(d),s=i.act,u=i.data,C=f.number;return(0,e.createComponentVNode)(2,o.Button,{fluid:!0,bold:!0,mb:"6px",content:C,textAlign:"center",fontSize:"60px",lineHeight:1.25,width:"80px",className:(0,a.classes)(["SecureStorage__Button","SecureStorage__Button--keypad","SecureStorage__Button--"+C]),onClick:function(){function v(){return s("keypad",{digit:C})}return v}()})}},56798:function(I,r,n){"use strict";r.__esModule=!0,r.SecurityRecords=void 0;var e=n(96524),a=n(78234),t=n(17899),o=n(24674),m=n(45493),V=n(99665),y=n(68159),S=n(27527),k=n(84537),h={"*Execute*":"execute","*Arrest*":"arrest",Incarcerated:"incarcerated",Parolled:"parolled",Released:"released",Demote:"demote",Search:"search",Monitor:"monitor"},l=function(p,N){(0,V.modalOpen)(p,"edit",{field:N.edit,value:N.value})},c=r.SecurityRecords=function(){function g(p,N){var b=(0,t.useBackend)(N),B=b.act,L=b.data,w=L.loginState,T=L.currentPage,x;if(w.logged_in)T===1?x=(0,e.createComponentVNode)(2,d):T===2&&(x=(0,e.createComponentVNode)(2,u));else return(0,e.createComponentVNode)(2,m.Window,{theme:"security",width:800,height:900,children:(0,e.createComponentVNode)(2,m.Window.Content,{children:(0,e.createComponentVNode)(2,S.LoginScreen)})});return(0,e.createComponentVNode)(2,m.Window,{theme:"security",width:800,height:900,children:[(0,e.createComponentVNode)(2,V.ComplexModal),(0,e.createComponentVNode)(2,m.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,y.LoginInfo),(0,e.createComponentVNode)(2,k.TemporaryNotice),(0,e.createComponentVNode)(2,f),x]})})]})}return g}(),f=function(p,N){var b=(0,t.useBackend)(N),B=b.act,L=b.data,w=L.currentPage,T=L.general;return(0,e.createComponentVNode)(2,o.Stack.Item,{m:0,children:(0,e.createComponentVNode)(2,o.Tabs,{children:[(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"list",selected:w===1,onClick:function(){function x(){return B("page",{page:1})}return x}(),children:"List Records"}),w===2&&T&&!T.empty&&(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"file",selected:w===2,children:["Record: ",T.fields[0].value]})]})})},d=function(p,N){var b=(0,t.useBackend)(N),B=b.act,L=b.data,w=L.records,T=(0,t.useLocalState)(N,"searchText",""),x=T[0],A=T[1],E=(0,t.useLocalState)(N,"sortId","name"),M=E[0],D=E[1],P=(0,t.useLocalState)(N,"sortOrder",!0),R=P[0],j=P[1];return(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,s)}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,mt:.5,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,o.Table,{className:"SecurityRecords__list",children:[(0,e.createComponentVNode)(2,o.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,i,{id:"name",children:"Name"}),(0,e.createComponentVNode)(2,i,{id:"id",children:"ID"}),(0,e.createComponentVNode)(2,i,{id:"rank",children:"Assignment"}),(0,e.createComponentVNode)(2,i,{id:"fingerprint",children:"Fingerprint"}),(0,e.createComponentVNode)(2,i,{id:"status",children:"Criminal Status"})]}),w.filter((0,a.createSearch)(x,function(F){return F.name+"|"+F.id+"|"+F.rank+"|"+F.fingerprint+"|"+F.status})).sort(function(F,W){var _=R?1:-1;return F[M].localeCompare(W[M])*_}).map(function(F){return(0,e.createComponentVNode)(2,o.Table.Row,{className:"SecurityRecords__listRow--"+h[F.status],onClick:function(){function W(){return B("view",{uid_gen:F.uid_gen,uid_sec:F.uid_sec})}return W}(),children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:"user"})," ",F.name]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:F.id}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:F.rank}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:F.fingerprint}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:F.status})]},F.id)})]})})})],4)},i=function(p,N){var b=(0,t.useLocalState)(N,"sortId","name"),B=b[0],L=b[1],w=(0,t.useLocalState)(N,"sortOrder",!0),T=w[0],x=w[1],A=p.id,E=p.children;return(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Button,{color:B!==A&&"transparent",fluid:!0,onClick:function(){function M(){B===A?x(!T):(L(A),x(!0))}return M}(),children:[E,B===A&&(0,e.createComponentVNode)(2,o.Icon,{name:T?"sort-up":"sort-down",ml:"0.25rem;"})]})})})},s=function(p,N){var b=(0,t.useBackend)(N),B=b.act,L=b.data,w=L.isPrinting,T=(0,t.useLocalState)(N,"searchText",""),x=T[0],A=T[1];return(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{ml:"0.25rem",content:"New Record",icon:"plus",onClick:function(){function E(){return B("new_general")}return E}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{disabled:w,icon:w?"spinner":"print",iconSpin:!!w,content:"Print Cell Log",onClick:function(){function E(){return(0,V.modalOpen)(N,"print_cell_log")}return E}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Input,{placeholder:"Search by Name, ID, Assignment, Fingerprint, Status",fluid:!0,onInput:function(){function E(M,D){return A(D)}return E}()})})]})},u=function(p,N){var b=(0,t.useBackend)(N),B=b.act,L=b.data,w=L.isPrinting,T=L.general,x=L.security;return!T||!T.fields?(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"General records lost!"}):(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"General Data",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{disabled:w,icon:w?"spinner":"print",iconSpin:!!w,content:"Print Record",onClick:function(){function A(){return B("print_record")}return A}()}),(0,e.createComponentVNode)(2,o.Button.Confirm,{icon:"trash",tooltip:"WARNING: This will also delete the Security and Medical records associated with this crew member!",tooltipPosition:"bottom-start",content:"Delete Record",onClick:function(){function A(){return B("delete_general")}return A}()})],4),children:(0,e.createComponentVNode)(2,C)})}),!x||!x.fields?(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,color:"bad",children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,title:"Security Data",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"pen",content:"Create New Record",onClick:function(){function A(){return B("new_security")}return A}()}),children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,o.Stack.Item,{bold:!0,grow:!0,textAlign:"center",fontSize:1.75,align:"center",color:"label",children:[(0,e.createComponentVNode)(2,o.Icon.Stack,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:"scroll",size:5,color:"gray"}),(0,e.createComponentVNode)(2,o.Icon,{name:"slash",size:5,color:"red"})]}),(0,e.createVNode)(1,"br"),"Security records lost!"]})})})}):(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"Security Data",buttons:(0,e.createComponentVNode)(2,o.Button.Confirm,{icon:"trash",disabled:x.empty,content:"Delete Record",onClick:function(){function A(){return B("delete_security")}return A}()}),children:(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.LabeledList,{children:x.fields.map(function(A,E){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:A.field,prewrap:!0,children:[(0,a.decodeHtmlEntities)(A.value),!!A.edit&&(0,e.createComponentVNode)(2,o.Button,{icon:"pen",ml:"0.5rem",mb:A.line_break?"1rem":"initial",onClick:function(){function M(){return l(N,A)}return M}()})]},E)})})})})}),(0,e.createComponentVNode)(2,v)],4)],0)},C=function(p,N){var b=(0,t.useBackend)(N),B=b.data,L=B.general;return!L||!L.fields?(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,color:"bad",children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,children:"General records lost!"})})}):(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.LabeledList,{children:L.fields.map(function(w,T){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:w.field,prewrap:!0,children:[(0,a.decodeHtmlEntities)(""+w.value),!!w.edit&&(0,e.createComponentVNode)(2,o.Button,{icon:"pen",ml:"0.5rem",mb:w.line_break?"1rem":"initial",onClick:function(){function x(){return l(N,w)}return x}()})]},T)})})}),!!L.has_photos&&L.photos.map(function(w,T){return(0,e.createComponentVNode)(2,o.Stack.Item,{inline:!0,textAlign:"center",color:"label",ml:0,children:[(0,e.createVNode)(1,"img",null,null,1,{src:w,style:{width:"96px","margin-top":"5rem","margin-bottom":"0.5rem","-ms-interpolation-mode":"nearest-neighbor"}}),(0,e.createVNode)(1,"br"),"Photo #",T+1]},T)})]})},v=function(p,N){var b=(0,t.useBackend)(N),B=b.act,L=b.data,w=L.security;return(0,e.createComponentVNode)(2,o.Stack.Item,{height:"150px",children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"Comments/Log",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"comment",content:"Add Entry",onClick:function(){function T(){return(0,V.modalOpen)(N,"comment_add")}return T}()}),children:w.comments.length===0?(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"No comments found."}):w.comments.map(function(T,x){return(0,e.createComponentVNode)(2,o.Box,{prewrap:!0,children:[(0,e.createComponentVNode)(2,o.Box,{color:"label",inline:!0,children:T.header||"Auto-generated"}),(0,e.createVNode)(1,"br"),T.text||T,(0,e.createComponentVNode)(2,o.Button,{icon:"comment-slash",color:"bad",ml:"0.5rem",onClick:function(){function A(){return B("comment_delete",{id:x+1})}return A}()})]},x)})})})}},59981:function(I,r,n){"use strict";r.__esModule=!0,r.SeedExtractor=void 0;var e=n(96524),a=n(78234),t=n(17899),o=n(24674),m=n(45493),V=n(99665);function y(i,s){var u=typeof Symbol!="undefined"&&i[Symbol.iterator]||i["@@iterator"];if(u)return(u=u.call(i)).next.bind(u);if(Array.isArray(i)||(u=S(i))||s&&i&&typeof i.length=="number"){u&&(i=u);var C=0;return function(){return C>=i.length?{done:!0}:{done:!1,value:i[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.")}function S(i,s){if(i){if(typeof i=="string")return k(i,s);var u=Object.prototype.toString.call(i).slice(8,-1);if(u==="Object"&&i.constructor&&(u=i.constructor.name),u==="Map"||u==="Set")return Array.from(i);if(u==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(u))return k(i,s)}}function k(i,s){(s==null||s>i.length)&&(s=i.length);for(var u=0,C=new Array(s);u=x},v=function(T,x){return T<=x},g=s.split(" "),p=[],N=function(){var T=L.value,x=T.split(":");if(x.length===0)return 0;if(x.length===1)return p.push(function(M){return(M.name+" ("+M.variant+")").toLocaleLowerCase().includes(x[0].toLocaleLowerCase())}),0;if(x.length>2)return{v:function(){function M(D){return!1}return M}()};var A,E=u;if(x[1][x[1].length-1]==="-"?(E=v,A=Number(x[1].substring(0,x[1].length-1))):x[1][x[1].length-1]==="+"?(E=C,A=Number(x[1].substring(0,x[1].length-1))):A=Number(x[1]),isNaN(A))return{v:function(){function M(D){return!1}return M}()};switch(x[0].toLocaleLowerCase()){case"l":case"life":case"lifespan":p.push(function(M){return E(M.lifespan,A)});break;case"e":case"end":case"endurance":p.push(function(M){return E(M.endurance,A)});break;case"m":case"mat":case"maturation":p.push(function(M){return E(M.maturation,A)});break;case"pr":case"prod":case"production":p.push(function(M){return E(M.production,A)});break;case"y":case"yield":p.push(function(M){return E(M.yield,A)});break;case"po":case"pot":case"potency":p.push(function(M){return E(M.potency,A)});break;case"s":case"stock":case"c":case"count":case"a":case"amount":p.push(function(M){return E(M.amount,A)});break;default:return{v:function(){function M(D){return!1}return M}()}}},b,B=y(g),L;!(L=B()).done;)if(b=N(),b!==0&&b)return b.v;return function(w){for(var T=0,x=p;T=1?Number(E):1)}return x}()})]})]})}},33454:function(I,r,n){"use strict";r.__esModule=!0,r.ShuttleConsole=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=r.ShuttleConsole=function(){function V(y,S){var k=(0,a.useBackend)(S),h=k.act,l=k.data;return(0,e.createComponentVNode)(2,o.Window,{width:350,height:150,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Location",children:l.status?l.status:(0,e.createComponentVNode)(2,t.NoticeBox,{color:"red",children:"Shuttle Missing"})}),!!l.shuttle&&(!!l.docking_ports_len&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Send to ",children:l.docking_ports.map(function(c){return(0,e.createComponentVNode)(2,t.Button,{icon:"chevron-right",content:c.name,onClick:function(){function f(){return h("move",{move:c.id})}return f}()},c.name)})})||(0,e.createFragment)([(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",color:"red",children:(0,e.createComponentVNode)(2,t.NoticeBox,{color:"red",children:"Shuttle Locked"})}),!!l.admin_controlled&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Authorization",children:(0,e.createComponentVNode)(2,t.Button,{icon:"exclamation-circle",content:"Request Authorization",disabled:!l.status,onClick:function(){function c(){return h("request")}return c}()})})],0))]})})})})}return V}()},50451:function(I,r,n){"use strict";r.__esModule=!0,r.ShuttleManipulator=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=r.ShuttleManipulator=function(){function k(h,l){var c=(0,a.useLocalState)(l,"tabIndex",0),f=c[0],d=c[1],i=function(){function s(u){switch(u){case 0:return(0,e.createComponentVNode)(2,V);case 1:return(0,e.createComponentVNode)(2,y);case 2:return(0,e.createComponentVNode)(2,S);default:return"WE SHOULDN'T BE HERE!"}}return s}();return(0,e.createComponentVNode)(2,o.Window,{width:650,height:700,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Box,{fillPositionedParent:!0,children:[(0,e.createComponentVNode)(2,t.Tabs,{children:[(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:f===0,onClick:function(){function s(){return d(0)}return s}(),icon:"info-circle",children:"Status"},"Status"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:f===1,onClick:function(){function s(){return d(1)}return s}(),icon:"file-import",children:"Templates"},"Templates"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:f===2,onClick:function(){function s(){return d(2)}return s}(),icon:"tools",children:"Modification"},"Modification")]}),i(f)]})})})}return k}(),V=function(h,l){var c=(0,a.useBackend)(l),f=c.act,d=c.data,i=d.shuttles;return(0,e.createComponentVNode)(2,t.Box,{children:i.map(function(s){return(0,e.createComponentVNode)(2,t.Section,{title:s.name,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"ID",children:s.id}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Shuttle Timer",children:s.timeleft}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Shuttle Mode",children:s.mode}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Shuttle Status",children:s.status}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Actions",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Jump To",icon:"location-arrow",onClick:function(){function u(){return f("jump_to",{type:"mobile",id:s.id})}return u}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Fast Travel",icon:"fast-forward",onClick:function(){function u(){return f("fast_travel",{id:s.id})}return u}()})]})]})},s.name)})})},y=function(h,l){var c=(0,a.useBackend)(l),f=c.act,d=c.data,i=d.templates_tabs,s=d.existing_shuttle,u=d.templates;return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Tabs,{children:i.map(function(C){return(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:C===s.id,icon:"file",onClick:function(){function v(){return f("select_template_category",{cat:C})}return v}(),children:C},C)})}),!!s&&u[s.id].templates.map(function(C){return(0,e.createComponentVNode)(2,t.Section,{title:C.name,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[C.description&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Description",children:C.description}),C.admin_notes&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Admin Notes",children:C.admin_notes}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Actions",children:(0,e.createComponentVNode)(2,t.Button,{content:"Load Template",icon:"download",onClick:function(){function v(){return f("select_template",{shuttle_id:C.shuttle_id})}return v}()})})]})},C.name)})]})},S=function(h,l){var c=(0,a.useBackend)(l),f=c.act,d=c.data,i=d.existing_shuttle,s=d.selected;return(0,e.createComponentVNode)(2,t.Box,{children:[i?(0,e.createComponentVNode)(2,t.Section,{title:"Selected Shuttle: "+i.name,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:i.status}),i.timer&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Timer",children:i.timeleft}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Actions",children:(0,e.createComponentVNode)(2,t.Button,{content:"Jump To",icon:"location-arrow",onClick:function(){function u(){return f("jump_to",{type:"mobile",id:i.id})}return u}()})})]})}):(0,e.createComponentVNode)(2,t.Section,{title:"Selected Shuttle: None"}),s?(0,e.createComponentVNode)(2,t.Section,{title:"Selected Template: "+s.name,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[s.description&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Description",children:s.description}),s.admin_notes&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Admin Notes",children:s.admin_notes}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Actions",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Preview",icon:"eye",onClick:function(){function u(){return f("preview",{shuttle_id:s.shuttle_id})}return u}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Load",icon:"download",onClick:function(){function u(){return f("load",{shuttle_id:s.shuttle_id})}return u}()})]})]})}):(0,e.createComponentVNode)(2,t.Section,{title:"Selected Template: None"})]})}},99050:function(I,r,n){"use strict";r.__esModule=!0,r.Sleeper=void 0;var e=n(96524),a=n(36121),t=n(17899),o=n(24674),m=n(45493),V=[["good","Alive"],["average","Critical"],["bad","DEAD"]],y=[["Resp.","oxyLoss"],["Toxin","toxLoss"],["Brute","bruteLoss"],["Burn","fireLoss"]],S={average:[.25,.5],bad:[.5,1/0]},k=["bad","average","average","good","average","average","bad"],h=r.Sleeper=function(){function u(C,v){var g=(0,t.useBackend)(v),p=g.act,N=g.data,b=N.hasOccupant,B=b?(0,e.createComponentVNode)(2,l):(0,e.createComponentVNode)(2,s);return(0,e.createComponentVNode)(2,m.Window,{width:550,height:760,children:(0,e.createComponentVNode)(2,m.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:B}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,d)})]})})})}return u}(),l=function(C,v){var g=(0,t.useBackend)(v),p=g.act,N=g.data,b=N.occupant;return(0,e.createFragment)([(0,e.createComponentVNode)(2,c),(0,e.createComponentVNode)(2,f),(0,e.createComponentVNode)(2,i)],4)},c=function(C,v){var g=(0,t.useBackend)(v),p=g.act,N=g.data,b=N.occupant,B=N.auto_eject_dead;return(0,e.createComponentVNode)(2,o.Section,{title:"Occupant",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Box,{color:"label",inline:!0,children:"Auto-eject if dead:\xA0"}),(0,e.createComponentVNode)(2,o.Button,{icon:B?"toggle-on":"toggle-off",selected:B,content:B?"On":"Off",onClick:function(){function L(){return p("auto_eject_dead_"+(B?"off":"on"))}return L}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"user-slash",content:"Eject",onClick:function(){function L(){return p("ejectify")}return L}()})],4),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Name",children:b.name}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Health",children:(0,e.createComponentVNode)(2,o.ProgressBar,{min:"0",max:b.maxHealth,value:b.health/b.maxHealth,ranges:{good:[.5,1/0],average:[0,.5],bad:[-1/0,0]},children:(0,a.round)(b.health,0)})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Status",color:V[b.stat][0],children:V[b.stat][1]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Temperature",children:(0,e.createComponentVNode)(2,o.ProgressBar,{min:"0",max:b.maxTemp,value:b.bodyTemperature/b.maxTemp,color:k[b.temperatureSuitability+3],children:[(0,a.round)(b.btCelsius,0),"\xB0C,",(0,a.round)(b.btFaren,0),"\xB0F"]})}),!!b.hasBlood&&(0,e.createFragment)([(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Blood Level",children:(0,e.createComponentVNode)(2,o.ProgressBar,{min:"0",max:b.bloodMax,value:b.bloodLevel/b.bloodMax,ranges:{bad:[-1/0,.6],average:[.6,.9],good:[.6,1/0]},children:[b.bloodPercent,"%, ",b.bloodLevel,"cl"]})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Pulse",verticalAlign:"middle",children:[b.pulse," BPM"]})],4)]})})},f=function(C,v){var g=(0,t.useBackend)(v),p=g.data,N=p.occupant;return(0,e.createComponentVNode)(2,o.Section,{title:"Occupant Damage",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:y.map(function(b,B){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:b[0],children:(0,e.createComponentVNode)(2,o.ProgressBar,{min:"0",max:"100",value:N[b[1]]/100,ranges:S,children:(0,a.round)(N[b[1]],0)},B)},B)})})})},d=function(C,v){var g=(0,t.useBackend)(v),p=g.act,N=g.data,b=N.hasOccupant,B=N.isBeakerLoaded,L=N.beakerMaxSpace,w=N.beakerFreeSpace,T=N.dialysis,x=T&&w>0;return(0,e.createComponentVNode)(2,o.Section,{title:"Dialysis",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{disabled:!B||w<=0||!b,selected:x,icon:x?"toggle-on":"toggle-off",content:x?"Active":"Inactive",onClick:function(){function A(){return p("togglefilter")}return A}()}),(0,e.createComponentVNode)(2,o.Button,{disabled:!B,icon:"eject",content:"Eject",onClick:function(){function A(){return p("removebeaker")}return A}()})],4),children:B?(0,e.createComponentVNode)(2,o.LabeledList,{children:(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Remaining Space",children:(0,e.createComponentVNode)(2,o.ProgressBar,{min:"0",max:L,value:w/L,ranges:{good:[.5,1/0],average:[.25,.5],bad:[-1/0,.25]},children:[w,"u"]})})}):(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"No beaker loaded."})})},i=function(C,v){var g=(0,t.useBackend)(v),p=g.act,N=g.data,b=N.occupant,B=N.chemicals,L=N.maxchem,w=N.amounts;return(0,e.createComponentVNode)(2,o.Section,{title:"Occupant Chemicals",children:B.map(function(T,x){var A="",E;return T.overdosing?(A="bad",E=(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:[(0,e.createComponentVNode)(2,o.Icon,{name:"exclamation-circle"}),"\xA0 Overdosing!"]})):T.od_warning&&(A="average",E=(0,e.createComponentVNode)(2,o.Box,{color:"average",children:[(0,e.createComponentVNode)(2,o.Icon,{name:"exclamation-triangle"}),"\xA0 Close to overdosing"]})),(0,e.createComponentVNode)(2,o.Box,{backgroundColor:"rgba(0, 0, 0, 0.33)",mb:"0.5rem",children:(0,e.createComponentVNode)(2,o.Section,{title:T.title,level:"3",mx:"0",lineHeight:"18px",buttons:E,children:(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.ProgressBar,{min:"0",max:L,value:T.occ_amount/L,color:A,title:"Amount of chemicals currently inside the occupant / Total amount injectable by this machine",mr:"0.5rem",children:[T.pretty_amount,"/",L,"u"]}),w.map(function(M,D){return(0,e.createComponentVNode)(2,o.Button,{disabled:!T.injectable||T.occ_amount+M>L||b.stat===2,icon:"syringe",content:"Inject "+M+"u",title:"Inject "+M+"u of "+T.title+" into the occupant",mb:"0",height:"19px",onClick:function(){function P(){return p("chemical",{chemid:T.id,amount:M})}return P}()},D)})]})})},x)})})},s=function(C,v){return(0,e.createComponentVNode)(2,o.Section,{fill:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,align:"center",color:"label",children:[(0,e.createComponentVNode)(2,o.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,e.createVNode)(1,"br"),"No occupant detected."]})})})}},37763:function(I,r,n){"use strict";r.__esModule=!0,r.SlotMachine=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=r.SlotMachine=function(){function V(y,S){var k=(0,a.useBackend)(S),h=k.act,l=k.data;if(l.money===null)return(0,e.createComponentVNode)(2,o.Window,{width:350,height:90,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:[(0,e.createComponentVNode)(2,t.Box,{children:"Could not scan your card or could not find account!"}),(0,e.createComponentVNode)(2,t.Box,{children:"Please wear or hold your ID and try again."})]})})});var c;return l.plays===1?c=l.plays+" player has tried their luck today!":c=l.plays+" players have tried their luck today!",(0,e.createComponentVNode)(2,o.Window,{width:300,height:151,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:[(0,e.createComponentVNode)(2,t.Box,{lineHeight:2,children:c}),(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Credits Remaining",children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:l.money})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"10 credits to spin",children:(0,e.createComponentVNode)(2,t.Button,{icon:"coins",disabled:l.working,content:l.working?"Spinning...":"Spin",onClick:function(){function f(){return h("spin")}return f}()})})]}),(0,e.createComponentVNode)(2,t.Box,{bold:!0,lineHeight:2,color:l.resultlvl,children:l.result})]})})})}return V}()},26654:function(I,r,n){"use strict";r.__esModule=!0,r.Smartfridge=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=r.Smartfridge=function(){function V(y,S){var k=(0,a.useBackend)(S),h=k.act,l=k.data,c=l.secure,f=l.can_dry,d=l.drying,i=l.contents;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:500,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[!!c&&(0,e.createComponentVNode)(2,t.NoticeBox,{children:"Secure Access: Please have your identification ready."}),(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:f?"Drying rack":"Contents",buttons:!!f&&(0,e.createComponentVNode)(2,t.Button,{width:4,icon:d?"power-off":"times",content:d?"On":"Off",selected:d,onClick:function(){function s(){return h("drying")}return s}()}),children:[!i&&(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,grow:!0,textAlign:"center",align:"center",color:"average",children:[(0,e.createComponentVNode)(2,t.Icon.Stack,{children:[(0,e.createComponentVNode)(2,t.Icon,{name:"cookie-bite",size:5,color:"brown"}),(0,e.createComponentVNode)(2,t.Icon,{name:"slash",size:5,color:"red"})]}),(0,e.createVNode)(1,"br"),"No products loaded."]})}),!!i&&i.slice().sort(function(s,u){return s.display_name.localeCompare(u.display_name)}).map(function(s){return(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"55%",children:s.display_name}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:"25%",children:["(",s.quantity," in stock)"]}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:13,children:[(0,e.createComponentVNode)(2,t.Button,{width:3,icon:"arrow-down",tooltip:"Dispense one.",content:"1",onClick:function(){function u(){return h("vend",{index:s.vend,amount:1})}return u}()}),(0,e.createComponentVNode)(2,t.NumberInput,{width:"40px",minValue:0,value:0,maxValue:s.quantity,step:1,stepPixelSize:3,onChange:function(){function u(C,v){return h("vend",{index:s.vend,amount:v})}return u}()}),(0,e.createComponentVNode)(2,t.Button,{width:4,icon:"arrow-down",content:"All",tooltip:"Dispense all.",tooltipPosition:"bottom-start",onClick:function(){function u(){return h("vend",{index:s.vend,amount:s.quantity})}return u}()})]})]},s)})]})]})})})}return V}()},71124:function(I,r,n){"use strict";r.__esModule=!0,r.Smes=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(92986),m=n(45493),V=1e3,y=r.Smes=function(){function S(k,h){var l=(0,a.useBackend)(h),c=l.act,f=l.data,d=f.capacityPercent,i=f.capacity,s=f.charge,u=f.inputAttempt,C=f.inputting,v=f.inputLevel,g=f.inputLevelMax,p=f.inputAvailable,N=f.outputPowernet,b=f.outputAttempt,B=f.outputting,L=f.outputLevel,w=f.outputLevelMax,T=f.outputUsed,x=d>=100&&"good"||C&&"average"||"bad",A=B&&"good"||s>0&&"average"||"bad";return(0,e.createComponentVNode)(2,m.Window,{width:340,height:345,children:(0,e.createComponentVNode)(2,m.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Section,{title:"Stored Energy",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:d*.01,ranges:{good:[.5,1/0],average:[.15,.5],bad:[-1/0,.15]}})}),(0,e.createComponentVNode)(2,t.Section,{title:"Input",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Charge Mode",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:u?"sync-alt":"times",selected:u,onClick:function(){function E(){return c("tryinput")}return E}(),children:u?"Auto":"Off"}),children:(0,e.createComponentVNode)(2,t.Box,{color:x,children:d>=100&&"Fully Charged"||C&&"Charging"||"Not Charging"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Target Input",children:(0,e.createComponentVNode)(2,t.Stack,{inline:!0,width:"100%",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"fast-backward",disabled:v===0,onClick:function(){function E(){return c("input",{target:"min"})}return E}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"backward",disabled:v===0,onClick:function(){function E(){return c("input",{adjust:-1e4})}return E}()})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Slider,{value:v/V,fillValue:p/V,minValue:0,maxValue:g/V,step:5,stepPixelSize:4,format:function(){function E(M){return(0,o.formatPower)(M*V,1)}return E}(),onChange:function(){function E(M,D){return c("input",{target:D*V})}return E}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"forward",disabled:v===g,onClick:function(){function E(){return c("input",{adjust:1e4})}return E}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",disabled:v===g,onClick:function(){function E(){return c("input",{target:"max"})}return E}()})]})]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Available",children:(0,o.formatPower)(p)})]})}),(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Output",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Output Mode",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:b?"power-off":"times",selected:b,onClick:function(){function E(){return c("tryoutput")}return E}(),children:b?"On":"Off"}),children:(0,e.createComponentVNode)(2,t.Box,{color:A,children:N?B?"Sending":s>0?"Not Sending":"No Charge":"Not Connected"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Target Output",children:(0,e.createComponentVNode)(2,t.Stack,{inline:!0,width:"100%",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"fast-backward",disabled:L===0,onClick:function(){function E(){return c("output",{target:"min"})}return E}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"backward",disabled:L===0,onClick:function(){function E(){return c("output",{adjust:-1e4})}return E}()})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Slider,{value:L/V,minValue:0,maxValue:w/V,step:5,stepPixelSize:4,format:function(){function E(M){return(0,o.formatPower)(M*V,1)}return E}(),onChange:function(){function E(M,D){return c("output",{target:D*V})}return E}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"forward",disabled:L===w,onClick:function(){function E(){return c("output",{adjust:1e4})}return E}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",disabled:L===w,onClick:function(){function E(){return c("output",{target:"max"})}return E}()})]})]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Outputting",children:(0,o.formatPower)(T)})]})})]})})})}return S}()},21786:function(I,r,n){"use strict";r.__esModule=!0,r.SolarControl=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=r.SolarControl=function(){function V(y,S){var k=(0,a.useBackend)(S),h=k.act,l=k.data,c=0,f=1,d=2,i=l.generated,s=l.generated_ratio,u=l.tracking_state,C=l.tracking_rate,v=l.connected_panels,g=l.connected_tracker,p=l.cdir,N=l.direction,b=l.rotating_direction;return(0,e.createComponentVNode)(2,o.Window,{width:490,height:277,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Status",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"sync",content:"Scan for new hardware",onClick:function(){function B(){return h("refresh")}return B}()}),children:(0,e.createComponentVNode)(2,t.Grid,{children:[(0,e.createComponentVNode)(2,t.Grid.Column,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Solar tracker",color:g?"good":"bad",children:g?"OK":"N/A"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Solar panels",color:v>0?"good":"bad",children:v})]})}),(0,e.createComponentVNode)(2,t.Grid.Column,{size:2,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power output",children:(0,e.createComponentVNode)(2,t.ProgressBar,{ranges:{good:[.66,1/0],average:[.33,.66],bad:[-1/0,.33]},minValue:0,maxValue:1,value:s,children:i+" W"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Panel orientation",children:[p,"\xB0 (",N,")"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Tracker rotation",children:[u===d&&(0,e.createComponentVNode)(2,t.Box,{children:" Automated "}),u===f&&(0,e.createComponentVNode)(2,t.Box,{children:[" ",C,"\xB0/h (",b,")"," "]}),u===c&&(0,e.createComponentVNode)(2,t.Box,{children:" Tracker offline "})]})]})})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Controls",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Panel orientation",children:[u!==d&&(0,e.createComponentVNode)(2,t.NumberInput,{unit:"\xB0",step:1,stepPixelSize:1,minValue:0,maxValue:359,value:p,onDrag:function(){function B(L,w){return h("cdir",{cdir:w})}return B}()}),u===d&&(0,e.createComponentVNode)(2,t.Box,{lineHeight:"19px",children:" Automated "})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Tracker status",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"times",content:"Off",selected:u===c,onClick:function(){function B(){return h("track",{track:c})}return B}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"clock-o",content:"Timed",selected:u===f,onClick:function(){function B(){return h("track",{track:f})}return B}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"sync",content:"Auto",selected:u===d,disabled:!g,onClick:function(){function B(){return h("track",{track:d})}return B}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Tracker rotation",children:[u===f&&(0,e.createComponentVNode)(2,t.NumberInput,{unit:"\xB0/h",step:1,stepPixelSize:1,minValue:-7200,maxValue:7200,value:C,format:function(){function B(L){var w=Math.sign(L)>0?"+":"-";return w+Math.abs(L)}return B}(),onDrag:function(){function B(L,w){return h("tdir",{tdir:w})}return B}()}),u===c&&(0,e.createComponentVNode)(2,t.Box,{lineHeight:"19px",children:" Tracker offline "}),u===d&&(0,e.createComponentVNode)(2,t.Box,{lineHeight:"19px",children:" Automated "})]})]})})]})})}return V}()},31202:function(I,r,n){"use strict";r.__esModule=!0,r.SpawnersMenu=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=r.SpawnersMenu=function(){function V(y,S){var k=(0,a.useBackend)(S),h=k.act,l=k.data,c=l.spawners||[];return(0,e.createComponentVNode)(2,o.Window,{width:700,height:600,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Section,{children:c.map(function(f){return(0,e.createComponentVNode)(2,t.Section,{mb:.5,title:f.name+" ("+f.amount_left+" left)",level:2,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{icon:"chevron-circle-right",content:"Jump",onClick:function(){function d(){return h("jump",{ID:f.uids})}return d}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"chevron-circle-right",content:"Spawn",onClick:function(){function d(){return h("spawn",{ID:f.uids})}return d}()})],4),children:[(0,e.createComponentVNode)(2,t.Box,{style:{"white-space":"pre-wrap"},mb:1,fontSize:"16px",children:f.desc}),!!f.fluff&&(0,e.createComponentVNode)(2,t.Box,{style:{"white-space":"pre-wrap"},textColor:"#878787",fontSize:"14px",children:f.fluff}),!!f.important_info&&(0,e.createComponentVNode)(2,t.Box,{style:{"white-space":"pre-wrap"},mt:1,bold:!0,color:"red",fontSize:"18px",children:f.important_info})]},f.name)})})})})}return V}()},84800:function(I,r,n){"use strict";r.__esModule=!0,r.SpecMenu=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=r.SpecMenu=function(){function h(l,c){return(0,e.createComponentVNode)(2,o.Window,{width:1100,height:600,theme:"nologo",children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,V),(0,e.createComponentVNode)(2,y),(0,e.createComponentVNode)(2,S),(0,e.createComponentVNode)(2,k)]})})})}return h}(),V=function(l,c){var f=(0,a.useBackend)(c),d=f.act,i=f.data,s=i.subclasses;return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,basis:"25%",children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Hemomancer",buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Choose",onClick:function(){function u(){return d("hemomancer")}return u}()}),children:[(0,e.createVNode)(1,"h3",null,"Focuses on blood magic and the manipulation of blood around you.",16),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Vampiric claws",16),(0,e.createTextVNode)(": Unlocked at 150 blood, allows you to summon a robust pair of claws that attack rapidly, drain a targets blood, and heal you.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Blood Barrier",16),(0,e.createTextVNode)(": Unlocked at 250 blood, allows you to select two turfs and create a wall between them.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Blood tendrils",16),(0,e.createTextVNode)(": Unlocked at 250 blood, allows you to slow everyone in a targeted 3x3 area after a short delay.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Sanguine pool",16),(0,e.createTextVNode)(": Unlocked at 400 blood, allows you to travel at high speeds for a short duration. Doing this leaves behind blood splatters. You can move through anything but walls and space when doing this.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Predator senses",16),(0,e.createTextVNode)(": Unlocked at 600 blood, allows you to sniff out anyone within the same sector as you.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Blood eruption",16),(0,e.createTextVNode)(": Unlocked at 800 blood, allows you to manipulate all nearby blood splatters, in 4 tiles around you, into spikes that impale anyone stood ontop of them.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Full power",16),(0,e.createComponentVNode)(2,t.Divider),(0,e.createVNode)(1,"b",null,"The blood bringers rite",16),(0,e.createTextVNode)(": When toggled you will rapidly drain the blood of everyone who is nearby and use it to heal yourself slightly and remove any incapacitating effects rapidly.")],4)]})})},y=function(l,c){var f=(0,a.useBackend)(c),d=f.act,i=f.data,s=i.subclasses;return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,basis:"25%",children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Umbrae",buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Choose",onClick:function(){function u(){return d("umbrae")}return u}()}),children:[(0,e.createVNode)(1,"h3",null,"Focuses on darkness, stealth ambushing and mobility.",16),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Cloak of darkness",16),(0,e.createTextVNode)(": Unlocked at 150 blood, when toggled, allows you to become nearly invisible and move rapidly when in dark regions. While active, burn damage is more effective against you.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Shadow anchor",16),(0,e.createTextVNode)(": Unlocked at 250 blood, casting it will create an anchor at the cast location after a short delay. If you then cast the ability again, you are teleported back to the anchor. If you do not cast again within 2 minutes, you will do a fake recall, causing a clone to appear at the anchor and making yourself invisible. It will not teleport you between Z levels.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Shadow snare",16),(0,e.createTextVNode)(": Unlocked at 250 blood, allows you to summon a trap that when crossed blinds and ensnares the victim. This trap is hard to see, but withers in the light.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Dark passage",16),(0,e.createTextVNode)(": Unlocked at 400 blood, allows you to target a turf on screen, you will then teleport to that turf.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Extinguish",16),(0,e.createTextVNode)(": Unlocked at 600 blood, allows you to snuff out nearby electronic light sources and glowshrooms.")],4),(0,e.createVNode)(1,"b",null,"Shadow boxing",16),": Unlocked at 800 blood, sends out shadow clones towards a target, damaging them while you remain in range.",(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Full power",16),(0,e.createComponentVNode)(2,t.Divider),(0,e.createVNode)(1,"b",null,"Eternal darkness",16),(0,e.createTextVNode)(": When toggled, you consume yourself in unholy darkness, only the strongest of lights will be able to see through it. Inside the radius, nearby creatures will freeze and energy projectiles will deal less damage.")],4),(0,e.createVNode)(1,"p",null,"In addition, you also gain permanent X-ray vision.",16)]})})},S=function(l,c){var f=(0,a.useBackend)(c),d=f.act,i=f.data,s=i.subclasses;return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,basis:"25%",children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Gargantua",buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Choose",onClick:function(){function u(){return d("gargantua")}return u}()}),children:[(0,e.createVNode)(1,"h3",null,"Focuses on tenacity and melee damage.",16),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Rejuvenate",16),(0,e.createTextVNode)(": Will heal you at an increased rate based on how much damage you have taken.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Blood swell",16),(0,e.createTextVNode)(": Unlocked at 150 blood, increases your resistance to physical damage, stuns and stamina for 30 seconds. While it is active you cannot fire guns.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Seismic stomp",16),(0,e.createTextVNode)(": Unlocked at 250 blood, allows you to stomp the ground to send out a shockwave, knocking people back.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Blood rush",16),(0,e.createTextVNode)(": Unlocked at 250 blood, gives you a short speed boost when cast.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Blood swell II",16),(0,e.createTextVNode)(": Unlocked at 400 blood, increases all melee damage by 10.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Overwhelming force",16),(0,e.createTextVNode)(": Unlocked at 600 blood, when toggled, if you bump into a door that you do not have access to, it will force it open. In addition, you cannot be pushed or pulled while it is active.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Demonic grasp",16),(0,e.createTextVNode)(": Unlocked at 800 blood, allows you to send out a demonic hand to snare someone. If you are on disarm/grab intent you will push/pull the target, respectively.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Charge",16),(0,e.createTextVNode)(": Unlocked at 800 blood, you gain the ability to charge at a target. Destroying and knocking back pretty much anything you collide with.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Full Power",16),(0,e.createComponentVNode)(2,t.Divider),(0,e.createVNode)(1,"b",null,"Desecrated Duel",16),(0,e.createTextVNode)(": Leap towards a visible enemy, creating an arena upon landing, infusing you with increased regeneration, and granting you resistance to internal damages.")],4)]})})},k=function(l,c){var f=(0,a.useBackend)(c),d=f.act,i=f.data,s=i.subclasses;return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,basis:"25%",children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Dantalion",buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Choose",onClick:function(){function u(){return d("dantalion")}return u}()}),children:[(0,e.createVNode)(1,"h3",null,"Focuses on thralling and illusions.",16),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Enthrall",16),(0,e.createTextVNode)(": Unlocked at 150 blood, Thralls your target to your will, requires you to stand still. Does not work on mindshielded or already enthralled/mindslaved people.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Thrall cap",16),(0,e.createTextVNode)(": You can only thrall a max of 1 person at a time. This can be increased at 400 blood, 600 blood and at full power to a max of 4 thralls.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Thrall commune",16),(0,e.createTextVNode)(": Unlocked at 150 blood, Allows you to talk to your thralls, your thralls can talk back in the same way.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Subspace swap",16),(0,e.createTextVNode)(": Unlocked at 250 blood, allows you to swap positions with a target.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Pacify",16),(0,e.createTextVNode)(": Unlocked at 250 blood, allows you to pacify a target, preventing them from causing harm for 40 seconds.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Decoy",16),(0,e.createTextVNode)(": Unlocked at 400 blood, briefly turn invisible and send out an illusion to fool everyone nearby.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Rally thralls",16),(0,e.createTextVNode)(": Unlocked at 600 blood, removes all incapacitating effects from nearby thralls.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Blood bond",16),(0,e.createTextVNode)(": Unlocked at 800 blood, when cast, all nearby thralls become linked to you. If anyone in the network takes damage, it is shared equally between everyone in the network. If a thrall goes out of range, they will be removed from the network.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Full Power",16),(0,e.createComponentVNode)(2,t.Divider),(0,e.createVNode)(1,"b",null,"Mass Hysteria",16),(0,e.createTextVNode)(": Casts a powerful illusion that blinds and then makes everyone nearby perceive others as random animals.")],4)]})})}},46501:function(I,r,n){"use strict";r.__esModule=!0,r.StationAlertConsoleContent=r.StationAlertConsole=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=r.StationAlertConsole=function(){function y(){return(0,e.createComponentVNode)(2,o.Window,{width:325,height:500,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,V)})})}return y}(),V=r.StationAlertConsoleContent=function(){function y(S,k){var h=(0,a.useBackend)(k),l=h.data,c=l.alarms||[],f=c.Fire||[],d=c.Atmosphere||[],i=c.Power||[];return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{title:"Fire Alarms",children:(0,e.createVNode)(1,"ul",null,[f.length===0&&(0,e.createVNode)(1,"li","color-good","Systems Nominal",16),f.map(function(s){return(0,e.createVNode)(1,"li","color-average",s,0,null,s)})],0)}),(0,e.createComponentVNode)(2,t.Section,{title:"Atmospherics Alarms",children:(0,e.createVNode)(1,"ul",null,[d.length===0&&(0,e.createVNode)(1,"li","color-good","Systems Nominal",16),d.map(function(s){return(0,e.createVNode)(1,"li","color-average",s,0,null,s)})],0)}),(0,e.createComponentVNode)(2,t.Section,{title:"Power Alarms",children:(0,e.createVNode)(1,"ul",null,[i.length===0&&(0,e.createVNode)(1,"li","color-good","Systems Nominal",16),i.map(function(s){return(0,e.createVNode)(1,"li","color-average",s,0,null,s)})],0)})],4)}return y}()},18565:function(I,r,n){"use strict";r.__esModule=!0,r.StationTraitsPanel=void 0;var e=n(96524),a=n(50640),t=n(67765),o=n(17899),m=n(24674),V=n(45493),y=function(l){return l[l.SetupFutureStationTraits=0]="SetupFutureStationTraits",l[l.ViewStationTraits=1]="ViewStationTraits",l}(y||{}),S=function(c,f){var d=(0,o.useBackend)(f),i=d.act,s=d.data,u=s.future_station_traits,C=(0,o.useLocalState)(f,"selectedFutureTrait",null),v=C[0],g=C[1],p=Object.fromEntries(s.valid_station_traits.map(function(b){return[b.name,b.path]})),N=Object.keys(p);return N.sort(),(0,e.createComponentVNode)(2,m.Box,{children:[(0,e.createComponentVNode)(2,m.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,m.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,m.Dropdown,{displayText:!v&&"Select trait to add...",onSelected:g,options:N,selected:v,width:"100%"})}),(0,e.createComponentVNode)(2,m.Stack.Item,{children:(0,e.createComponentVNode)(2,m.Button,{color:"green",icon:"plus",onClick:function(){function b(){if(v){var B=p[v],L=[B];if(u){var w,T=u.map(function(x){return x.path});if(T.indexOf(B)!==-1)return;L=(w=L).concat.apply(w,T)}i("setup_future_traits",{station_traits:L})}}return b}(),children:"Add"})})]}),(0,e.createComponentVNode)(2,m.Divider),Array.isArray(u)?u.length>0?(0,e.createComponentVNode)(2,m.Stack,{vertical:!0,fill:!0,children:u.map(function(b){return(0,e.createComponentVNode)(2,m.Stack.Item,{children:(0,e.createComponentVNode)(2,m.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,m.Stack.Item,{grow:!0,children:b.name}),(0,e.createComponentVNode)(2,m.Stack.Item,{children:(0,e.createComponentVNode)(2,m.Button,{color:"red",icon:"times",onClick:function(){function B(){i("setup_future_traits",{station_traits:(0,a.filterMap)(u,function(L){if(L.path!==b.path)return L.path})})}return B}(),children:"Delete"})})]})},b.path)})}):(0,e.createComponentVNode)(2,m.Box,{textAlign:"center",children:[(0,e.createComponentVNode)(2,m.Box,{children:"No station traits will run next round."}),(0,e.createComponentVNode)(2,m.Button,{mt:1,fluid:!0,color:"good",icon:"times",tooltip:"The next round will roll station traits randomly, just like normal",onClick:function(){function b(){return i("clear_future_traits")}return b}(),children:"Run Station Traits Normally"})]}):(0,e.createComponentVNode)(2,m.Box,{textAlign:"center",children:[(0,e.createComponentVNode)(2,m.Box,{children:"No future station traits are planned."}),(0,e.createComponentVNode)(2,m.Button,{mt:1,fluid:!0,color:"red",icon:"times",onClick:function(){function b(){return i("setup_future_traits",{station_traits:[]})}return b}(),children:"Prevent station traits from running next round"})]})]})},k=function(c,f){var d=(0,o.useBackend)(f),i=d.act,s=d.data;return s.current_traits.length>0?(0,e.createComponentVNode)(2,m.Stack,{vertical:!0,fill:!0,children:s.current_traits.map(function(u){return(0,e.createComponentVNode)(2,m.Stack.Item,{children:(0,e.createComponentVNode)(2,m.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,m.Stack.Item,{grow:!0,children:u.name}),(0,e.createComponentVNode)(2,m.Stack.Item,{children:(0,e.createComponentVNode)(2,m.Button.Confirm,{content:"Revert",color:"red",disabled:s.too_late_to_revert||!u.can_revert,tooltip:!u.can_revert&&"This trait is not revertable."||s.too_late_to_revert&&"It's too late to revert station traits, the round has already started.",icon:"times",onClick:function(){function C(){return i("revert",{ref:u.ref})}return C}()})})]})},u.ref)})}):(0,e.createComponentVNode)(2,m.Box,{textAlign:"center",children:"There are no active station traits."})},h=r.StationTraitsPanel=function(){function l(c,f){var d=(0,o.useLocalState)(f,"station_traits_tab",y.ViewStationTraits),i=d[0],s=d[1],u;switch(i){case y.SetupFutureStationTraits:u=(0,e.createComponentVNode)(2,S);break;case y.ViewStationTraits:u=(0,e.createComponentVNode)(2,k);break;default:(0,t.exhaustiveCheck)(i)}return(0,e.createComponentVNode)(2,V.Window,{title:"Modify Station Traits",height:350,width:350,children:(0,e.createComponentVNode)(2,V.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,m.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,m.Stack.Item,{children:(0,e.createComponentVNode)(2,m.Tabs,{children:[(0,e.createComponentVNode)(2,m.Tabs.Tab,{icon:"eye",selected:i===y.ViewStationTraits,onClick:function(){function C(){return s(y.ViewStationTraits)}return C}(),children:"View"}),(0,e.createComponentVNode)(2,m.Tabs.Tab,{icon:"edit",selected:i===y.SetupFutureStationTraits,onClick:function(){function C(){return s(y.SetupFutureStationTraits)}return C}(),children:"Edit"})]})}),(0,e.createComponentVNode)(2,m.Stack.Item,{m:0,children:[(0,e.createComponentVNode)(2,m.Divider),u]})]})})})}return l}()},95147:function(I,r,n){"use strict";r.__esModule=!0,r.StripMenu=void 0;var e=n(96524),a=n(50640),t=n(17442),o=n(17899),m=n(24674),V=n(45493),y=5,S=5,k="64px",h=function(u){return u[0]+"/"+u[1]},l=function(u){var C=u.align,v=u.children;return(0,e.createComponentVNode)(2,m.Box,{style:{position:"absolute",left:C==="left"?"6px":"48px","text-align":C,"text-shadow":"2px 2px 2px #000",top:"2px"},children:v})},c={enable_internals:{icon:"lungs",text:"Enable internals"},disable_internals:{icon:"lungs",text:"Disable internals"},enable_lock:{icon:"lock",text:"Enable lock"},disable_lock:{icon:"unlock",text:"Disable lock"},suit_sensors:{icon:"tshirt",text:"Adjust suit sensors"},remove_accessory:{icon:"medal",text:"Remove accessory"},dislodge_headpocket:{icon:"head-side-virus",text:"Dislodge headpocket"}},f={eyes:{displayName:"eyewear",gridSpot:h([1,0]),image:"inventory-glasses.png"},head:{displayName:"headwear",gridSpot:h([0,1]),image:"inventory-head.png"},mask:{displayName:"mask",gridSpot:h([1,1]),image:"inventory-mask.png"},pet_collar:{displayName:"collar",gridSpot:h([1,1]),image:"inventory-collar.png"},right_ear:{displayName:"right ear",gridSpot:h([0,2]),image:"inventory-ears.png"},left_ear:{displayName:"left ear",gridSpot:h([1,2]),image:"inventory-ears.png"},parrot_headset:{displayName:"headset",gridSpot:h([1,2]),image:"inventory-ears.png"},handcuffs:{displayName:"handcuffs",gridSpot:h([1,3])},legcuffs:{displayName:"legcuffs",gridSpot:h([1,4])},jumpsuit:{displayName:"uniform",gridSpot:h([2,0]),image:"inventory-uniform.png"},suit:{displayName:"suit",gridSpot:h([2,1]),image:"inventory-suit.png"},gloves:{displayName:"gloves",gridSpot:h([2,2]),image:"inventory-gloves.png"},right_hand:{displayName:"right hand",gridSpot:h([2,3]),image:"inventory-hand_r.png",additionalComponent:(0,e.createComponentVNode)(2,l,{align:"left",children:"R"})},left_hand:{displayName:"left hand",gridSpot:h([2,4]),image:"inventory-hand_l.png",additionalComponent:(0,e.createComponentVNode)(2,l,{align:"right",children:"L"})},shoes:{displayName:"shoes",gridSpot:h([3,1]),image:"inventory-shoes.png"},suit_storage:{displayName:"suit storage",gridSpot:h([4,0]),image:"inventory-suit_storage.png"},id:{displayName:"ID",gridSpot:h([4,1]),image:"inventory-id.png"},belt:{displayName:"belt",gridSpot:h([4,2]),image:"inventory-belt.png"},back:{displayName:"backpack",gridSpot:h([4,3]),image:"inventory-back.png"},left_pocket:{displayName:"left pocket",gridSpot:h([3,4]),image:"inventory-pocket.png"},right_pocket:{displayName:"right pocket",gridSpot:h([3,3]),image:"inventory-pocket.png"},pda:{displayName:"PDA",gridSpot:h([4,4]),image:"inventory-pda.png"}},d=function(s){return s[s.Completely=1]="Completely",s[s.Hidden=2]="Hidden",s}(d||{}),i=r.StripMenu=function(){function s(u,C){for(var v=(0,o.useBackend)(C),g=v.act,p=v.data,N=new Map,b=0,B=Object.keys(p.items);b=.01})},(0,a.sortBy)(function(T){return-T.amount})])(v.gases||[]),w=Math.max.apply(Math,[1].concat(L.map(function(T){return T.amount})));return(0,e.createComponentVNode)(2,S.Window,{width:550,height:185,children:(0,e.createComponentVNode)(2,S.Window.Content,{children:(0,e.createComponentVNode)(2,V.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,V.Stack.Item,{width:"270px",children:(0,e.createComponentVNode)(2,V.Section,{fill:!0,scrollable:!0,title:"Metrics",children:(0,e.createComponentVNode)(2,V.LabeledList,{children:[(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Integrity",children:(0,e.createComponentVNode)(2,V.ProgressBar,{value:p/100,ranges:{good:[.9,1/0],average:[.5,.9],bad:[-1/0,.5]}})}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Relative EER",children:(0,e.createComponentVNode)(2,V.ProgressBar,{value:N,minValue:0,maxValue:5e3,ranges:{good:[-1/0,5e3],average:[5e3,7e3],bad:[7e3,1/0]},children:(0,o.toFixed)(N)+" MeV/cm3"})}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Temperature",children:(0,e.createComponentVNode)(2,V.ProgressBar,{value:l(b),minValue:0,maxValue:l(1e4),ranges:{teal:[-1/0,l(80)],good:[l(80),l(373)],average:[l(373),l(1e3)],bad:[l(1e3),1/0]},children:(0,o.toFixed)(b)+" K"})}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Pressure",children:(0,e.createComponentVNode)(2,V.ProgressBar,{value:l(B),minValue:0,maxValue:l(5e4),ranges:{good:[l(1),l(300)],average:[-1/0,l(1e3)],bad:[l(1e3),1/0]},children:(0,o.toFixed)(B)+" kPa"})})]})})}),(0,e.createComponentVNode)(2,V.Stack.Item,{grow:!0,basis:0,children:(0,e.createComponentVNode)(2,V.Section,{fill:!0,scrollable:!0,title:"Gases",buttons:(0,e.createComponentVNode)(2,V.Button,{icon:"arrow-left",content:"Back",onClick:function(){function T(){return C("back")}return T}()}),children:(0,e.createComponentVNode)(2,V.LabeledList,{children:L.map(function(T){return(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:(0,y.getGasLabel)(T.name),children:(0,e.createComponentVNode)(2,V.ProgressBar,{color:(0,y.getGasColor)(T.name),value:T.amount,minValue:0,maxValue:w,children:(0,o.toFixed)(T.amount,2)+"%"})},T.name)})})})})]})})})}},30047:function(I,r,n){"use strict";r.__esModule=!0,r.SyndicateComputerSimple=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=r.SyndicateComputerSimple=function(){function V(y,S){var k=(0,a.useBackend)(S),h=k.act,l=k.data;return(0,e.createComponentVNode)(2,o.Window,{theme:"syndicate",width:400,height:400,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:l.rows.map(function(c){return(0,e.createComponentVNode)(2,t.Section,{title:c.title,buttons:(0,e.createComponentVNode)(2,t.Button,{content:c.buttontitle,disabled:c.buttondisabled,tooltip:c.buttontooltip,tooltipPosition:"left",onClick:function(){function f(){return h(c.buttonact)}return f}()}),children:[c.status,!!c.bullets&&(0,e.createComponentVNode)(2,t.Box,{children:c.bullets.map(function(f){return(0,e.createComponentVNode)(2,t.Box,{children:f},f)})})]},c.title)})})})}return V}()},28830:function(I,r,n){"use strict";r.__esModule=!0,r.TEG=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=function(S){return S.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1,")},V=r.TEG=function(){function y(S,k){var h=(0,a.useBackend)(k),l=h.act,c=h.data;return c.error?(0,e.createComponentVNode)(2,o.Window,{width:500,height:400,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Error",children:[c.error,(0,e.createComponentVNode)(2,t.Button,{icon:"circle",content:"Recheck",onClick:function(){function f(){return l("check")}return f}()})]})})}):(0,e.createComponentVNode)(2,o.Window,{width:500,height:400,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Cold Loop ("+c.cold_dir+")",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cold Inlet",children:[m(c.cold_inlet_temp)," K,"," ",m(c.cold_inlet_pressure)," kPa"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cold Outlet",children:[m(c.cold_outlet_temp)," K,"," ",m(c.cold_outlet_pressure)," kPa"]})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Hot Loop ("+c.hot_dir+")",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Hot Inlet",children:[m(c.hot_inlet_temp)," K,"," ",m(c.hot_inlet_pressure)," kPa"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Hot Outlet",children:[m(c.hot_outlet_temp)," K,"," ",m(c.hot_outlet_pressure)," kPa"]})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Power Output",children:[m(c.output_power)," W",!!c.warning_switched&&(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Warning: Cold inlet temperature exceeds hot inlet temperature."}),!!c.warning_cold_pressure&&(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Warning: Cold circulator inlet pressure is under 1,000 kPa."}),!!c.warning_hot_pressure&&(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Warning: Hot circulator inlet pressure is under 1,000 kPa."})]})]})})}return y}()},67432:function(I,r,n){"use strict";r.__esModule=!0,r.TTSSeedsExplorerContent=r.TTSSeedsExplorer=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m={0:"\u0411\u0435\u0441\u043F\u043B\u0430\u0442\u043D\u044B\u0435",1:"Tier I",2:"Tier II",3:"Tier III",4:"Tier IV",5:"Tier V"},V={male:"\u041C\u0443\u0436\u0441\u043A\u043E\u0439",female:"\u0416\u0435\u043D\u0441\u043A\u0438\u0439"},y={\u041C\u0443\u0436\u0441\u043A\u043E\u0439:{icon:"mars",color:"blue"},\u0416\u0435\u043D\u0441\u043A\u0438\u0439:{icon:"venus",color:"purple"},\u041B\u044E\u0431\u043E\u0439:{icon:"venus-mars",color:"white"}},S=function(c,f,d,i){return i===void 0&&(i=null),c.map(function(s){var u,C=(u=s[i])!=null?u:s;return(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:f.includes(s),content:C,onClick:function(){function v(){f.includes(s)?d(f.filter(function(g){var p;return((p=g[i])!=null?p:g)!==s})):d([s].concat(f))}return v}()},C)})},k=r.TTSSeedsExplorer=function(){function l(){return(0,e.createComponentVNode)(2,o.Window,{width:600,height:800,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,h)})})})}return l}(),h=r.TTSSeedsExplorerContent=function(){function l(c,f){var d=(0,a.useBackend)(f),i=d.act,s=d.data,u=s.providers,C=s.seeds,v=s.selected_seed,g=s.phrases,p=s.donator_level,N=s.character_gender,b=C.map(function(Z){return Z.category}).filter(function(Z,q,ue){return ue.indexOf(Z)===q}),B=C.map(function(Z){return Z.gender}).filter(function(Z,q,ue){return ue.indexOf(Z)===q}),L=C.map(function(Z){return Z.required_donator_level}).filter(function(Z,q,ue){return ue.indexOf(Z)===q}).sort(function(Z,q){return Z-q}).map(function(Z){return m[Z]}),w=(0,a.useLocalState)(f,"selectedProviders",u),T=w[0],x=w[1],A=(0,a.useLocalState)(f,"selectedGenders",B.includes(V[N])?[V[N]]:B),E=A[0],M=A[1],D=(0,a.useLocalState)(f,"selectedCategories",b),P=D[0],R=D[1],j=(0,a.useLocalState)(f,"selectedDonatorLevels",L.includes(m[p])?L.slice(0,L.indexOf(m[p])+1):L),F=j[0],W=j[1],_=(0,a.useLocalState)(f,"selectedPhrase",g[0]),K=_[0],H=_[1],$=(0,a.useLocalState)(f,"searchtext",""),X=$[0],J=$[1],ae=S(u,T,x,"name"),re=S(B,E,M),me=S(b,P,R),pe=S(L,F,W),Ce=(0,e.createComponentVNode)(2,t.Dropdown,{options:g,selected:K.replace(/(.{60})..+/,"$1..."),width:"445px",onSelected:function(){function Z(q){return H(q)}return Z}()}),ke=(0,e.createComponentVNode)(2,t.Input,{placeholder:"\u041D\u0430\u0437\u0432\u0430\u043D\u0438\u0435...",width:"100%",onInput:function(){function Z(q,ue){return J(ue)}return Z}()}),he=C.sort(function(Z,q){var ue=Z.name.toLowerCase(),se=q.name.toLowerCase();return ue>se?1:ue0&&v!==Z.name?"orange":"white",children:Z.name}),(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,opacity:v===Z.name?.5:.25,textAlign:"left",children:Z.category}),(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,opacity:.5,textColor:v===Z.name?"white":y[Z.gender].color,textAlign:"left",children:(0,e.createComponentVNode)(2,t.Icon,{mx:1,size:1.2,name:y[Z.gender].icon})}),(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,opacity:.5,textColor:"white",textAlign:"right",children:Z.required_donator_level>0&&(0,e.createFragment)([m[Z.required_donator_level],(0,e.createComponentVNode)(2,t.Icon,{ml:1,mr:2,name:"coins"})],0)})]},Z.name)});return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Stack.Item,{height:"175px",children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"\u0424\u0438\u043B\u044C\u0442\u0440\u044B",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u041F\u0440\u043E\u0432\u0430\u0439\u0434\u0435\u0440\u044B",children:ae}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u041F\u043E\u043B",children:re}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0423\u0440\u043E\u0432\u0435\u043D\u044C \u043F\u043E\u0434\u043F\u0438\u0441\u043A\u0438",children:pe}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0424\u0440\u0430\u0437\u0430",children:Ce}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u041F\u043E\u0438\u0441\u043A",children:ke})]})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{height:"25%",children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"\u041A\u0430\u0442\u0435\u0433\u043E\u0440\u0438\u0438",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{icon:"times",content:"\u0423\u0431\u0440\u0430\u0442\u044C \u0432\u0441\u0451",disabled:P.length===0,onClick:function(){function Z(){return R([])}return Z}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"check",content:"\u0412\u044B\u0431\u0440\u0430\u0442\u044C \u0432\u0441\u0451",disabled:P.length===b.length,onClick:function(){function Z(){return R(b)}return Z}()})],4),children:me})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"\u0413\u043E\u043B\u043E\u0441\u0430 ("+he.length+"/"+C.length+")",children:(0,e.createComponentVNode)(2,t.Table,{children:oe})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.BlockQuote,{children:[(0,e.createComponentVNode)(2,t.Box,{children:"\u0414\u043B\u044F \u043F\u043E\u0434\u0434\u0435\u0440\u0436\u0430\u043D\u0438\u044F \u0438 \u0440\u0430\u0437\u0432\u0438\u0442\u0438\u044F \u0441\u043E\u043E\u0431\u0449\u0435\u0441\u0442\u0432\u0430 \u0432 \u0443\u0441\u043B\u043E\u0432\u0438\u044F\u0445 \u0440\u0430\u0441\u0442\u0443\u0449\u0438\u0445 \u0440\u0430\u0441\u0445\u043E\u0434\u043E\u0432 \u0447\u0430\u0441\u0442\u044C \u0433\u043E\u043B\u043E\u0441\u043E\u0432 \u043F\u0440\u0438\u0448\u043B\u043E\u0441\u044C \u0441\u0434\u0435\u043B\u0430\u0442\u044C \u0434\u043E\u0441\u0442\u0443\u043F\u043D\u044B\u043C\u0438 \u0442\u043E\u043B\u044C\u043A\u043E \u0437\u0430 \u043C\u0430\u0442\u0435\u0440\u0438\u0430\u043B\u044C\u043D\u0443\u044E \u043F\u043E\u0434\u0434\u0435\u0440\u0436\u043A\u0443 \u0441\u043E\u043E\u0431\u0449\u0435\u0441\u0442\u0432\u0430."}),(0,e.createComponentVNode)(2,t.Box,{mt:2,italic:!0,children:"\u041F\u043E\u0434\u0440\u043E\u0431\u043D\u0435\u0435 \u043E\u0431 \u044D\u0442\u043E\u043C \u043C\u043E\u0436\u043D\u043E \u0443\u0437\u043D\u0430\u0442\u044C \u0432 \u043D\u0430\u0448\u0435\u043C Discord-\u0441\u043E\u043E\u0431\u0449\u0435\u0441\u0442\u0432\u0435."})]})})})],4)}return l}()},39903:function(I,r,n){"use strict";r.__esModule=!0,r.TachyonArrayContent=r.TachyonArray=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=r.TachyonArray=function(){function y(S,k){var h=(0,a.useBackend)(k),l=h.act,c=h.data,f=c.records,d=f===void 0?[]:f,i=c.explosion_target,s=c.toxins_tech,u=c.printing;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:600,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Shift's Target",children:i}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Current Toxins Level",children:s}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Administration",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"print",content:"Print All Logs",disabled:!d.length||u,align:"center",onClick:function(){function C(){return l("print_logs")}return C}()}),(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"trash",content:"Delete All Logs",disabled:!d.length,color:"bad",align:"center",onClick:function(){function C(){return l("delete_logs")}return C}()})]})]})}),d.length?(0,e.createComponentVNode)(2,V):(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No Records"})]})})}return y}(),V=r.TachyonArrayContent=function(){function y(S,k){var h=(0,a.useBackend)(k),l=h.act,c=h.data,f=c.records,d=f===void 0?[]:f;return(0,e.createComponentVNode)(2,t.Section,{title:"Logged Explosions",children:(0,e.createComponentVNode)(2,t.Flex,{children:(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Table,{m:"0.5rem",children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Time"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Epicenter"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Actual Size"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Theoretical Size"})]}),d.map(function(i){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:i.logged_time}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:i.epicenter}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:i.actual_size_message}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:i.theoretical_size_message}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"trash",content:"Delete",color:"bad",onClick:function(){function s(){return l("delete_record",{index:i.index})}return s}()})})]},i.index)})]})})})})}return y}()},17068:function(I,r,n){"use strict";r.__esModule=!0,r.Tank=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=r.Tank=function(){function V(y,S){var k=(0,a.useBackend)(S),h=k.act,l=k.data,c;return l.has_mask?c=(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Mask",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,width:"76%",icon:l.connected?"check":"times",content:l.connected?"Internals On":"Internals Off",selected:l.connected,onClick:function(){function f(){return h("internals")}return f}()})}):c=(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Mask",color:"red",children:"No Mask Equipped"}),(0,e.createComponentVNode)(2,o.Window,{width:325,height:135,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Tank Pressure",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:l.tankPressure/1013,ranges:{good:[.35,1/0],average:[.15,.35],bad:[-1/0,.15]},children:l.tankPressure+" kPa"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Release Pressure",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"fast-backward",disabled:l.ReleasePressure===l.minReleasePressure,tooltip:"Min",onClick:function(){function f(){return h("pressure",{pressure:"min"})}return f}()}),(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,value:parseFloat(l.releasePressure),width:"65px",unit:"kPa",minValue:l.minReleasePressure,maxValue:l.maxReleasePressure,onChange:function(){function f(d,i){return h("pressure",{pressure:i})}return f}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",disabled:l.ReleasePressure===l.maxReleasePressure,tooltip:"Max",onClick:function(){function f(){return h("pressure",{pressure:"max"})}return f}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"undo",content:"",disabled:l.ReleasePressure===l.defaultReleasePressure,tooltip:"Reset",onClick:function(){function f(){return h("pressure",{pressure:"reset"})}return f}()})]}),c]})})})})}return V}()},69161:function(I,r,n){"use strict";r.__esModule=!0,r.TankDispenser=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=r.TankDispenser=function(){function V(y,S){var k=(0,a.useBackend)(S),h=k.act,l=k.data,c=l.o_tanks,f=l.p_tanks;return(0,e.createComponentVNode)(2,o.Window,{width:250,height:105,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:[(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,content:"Dispense Oxygen Tank ("+c+")",disabled:c===0,icon:"arrow-circle-down",onClick:function(){function d(){return h("oxygen")}return d}()})}),(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{mt:1,fluid:!0,content:"Dispense Plasma Tank ("+f+")",disabled:f===0,icon:"arrow-circle-down",onClick:function(){function d(){return h("plasma")}return d}()})})]})})})}return V}()},87394:function(I,r,n){"use strict";r.__esModule=!0,r.TcommsCore=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=r.TcommsCore=function(){function h(l,c){var f=(0,a.useBackend)(c),d=f.act,i=f.data,s=i.ion,u=(0,a.useLocalState)(c,"tabIndex",0),C=u[0],v=u[1],g=function(){function p(N){switch(N){case 0:return(0,e.createComponentVNode)(2,y);case 1:return(0,e.createComponentVNode)(2,S);case 2:return(0,e.createComponentVNode)(2,k);default:return"SOMETHING WENT VERY WRONG PLEASE AHELP"}}return p}();return(0,e.createComponentVNode)(2,o.Window,{width:900,height:520,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[s===1&&(0,e.createComponentVNode)(2,V),(0,e.createComponentVNode)(2,t.Tabs,{children:[(0,e.createComponentVNode)(2,t.Tabs.Tab,{icon:"wrench",selected:C===0,onClick:function(){function p(){return v(0)}return p}(),children:"Configuration"},"ConfigPage"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{icon:"link",selected:C===1,onClick:function(){function p(){return v(1)}return p}(),children:"Device Linkage"},"LinkagePage"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{icon:"user-times",selected:C===2,onClick:function(){function p(){return v(2)}return p}(),children:"User Filtering"},"FilterPage")]}),g(C)]})})}return h}(),V=function(){return(0,e.createComponentVNode)(2,t.NoticeBox,{children:"ERROR: An Ionospheric overload has occured. Please wait for the machine to reboot. This cannot be manually done."})},y=function(l,c){var f=(0,a.useBackend)(c),d=f.act,i=f.data,s=i.active,u=i.sectors_available,C=i.nttc_toggle_jobs,v=i.nttc_toggle_job_color,g=i.nttc_toggle_name_color,p=i.nttc_toggle_command_bold,N=i.nttc_job_indicator_type,b=i.nttc_setting_language,B=i.network_id;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{title:"Status",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Machine Power",children:(0,e.createComponentVNode)(2,t.Button,{content:s?"On":"Off",selected:s,icon:"power-off",onClick:function(){function L(){return d("toggle_active")}return L}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Sector Coverage",children:u})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Radio Configuration",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Job Announcements",children:(0,e.createComponentVNode)(2,t.Button,{content:C?"On":"Off",selected:C,icon:"user-tag",onClick:function(){function L(){return d("nttc_toggle_jobs")}return L}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Job Departmentalisation",children:(0,e.createComponentVNode)(2,t.Button,{content:v?"On":"Off",selected:v,icon:"clipboard-list",onClick:function(){function L(){return d("nttc_toggle_job_color")}return L}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Name Departmentalisation",children:(0,e.createComponentVNode)(2,t.Button,{content:g?"On":"Off",selected:g,icon:"user-tag",onClick:function(){function L(){return d("nttc_toggle_name_color")}return L}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Command Amplification",children:(0,e.createComponentVNode)(2,t.Button,{content:p?"On":"Off",selected:p,icon:"volume-up",onClick:function(){function L(){return d("nttc_toggle_command_bold")}return L}()})})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Advanced",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Job Announcement Format",children:(0,e.createComponentVNode)(2,t.Button,{content:N||"Unset",selected:N,icon:"pencil-alt",onClick:function(){function L(){return d("nttc_job_indicator_type")}return L}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Language Conversion",children:(0,e.createComponentVNode)(2,t.Button,{content:b||"Unset",selected:b,icon:"globe",onClick:function(){function L(){return d("nttc_setting_language")}return L}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Network ID",children:(0,e.createComponentVNode)(2,t.Button,{content:B||"Unset",selected:B,icon:"server",onClick:function(){function L(){return d("network_id")}return L}()})})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Maintenance",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Import Configuration",icon:"file-import",onClick:function(){function L(){return d("import")}return L}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Export Configuration",icon:"file-export",onClick:function(){function L(){return d("export")}return L}()})]})],4)},S=function(l,c){var f=(0,a.useBackend)(c),d=f.act,i=f.data,s=i.link_password,u=i.relay_entries;return(0,e.createComponentVNode)(2,t.Section,{title:"Device Linkage",children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Linkage Password",children:(0,e.createComponentVNode)(2,t.Button,{content:s||"Unset",selected:s,icon:"lock",onClick:function(){function C(){return d("change_password")}return C}()})})}),(0,e.createComponentVNode)(2,t.Table,{m:"0.5rem",children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Network Address"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Network ID"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Sector"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Status"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Unlink"})]}),u.map(function(C){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:C.addr}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:C.net_id}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:C.sector}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:C.status===1?(0,e.createComponentVNode)(2,t.Box,{color:"green",children:"Online"}):(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Offline"})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Unlink",icon:"unlink",onClick:function(){function v(){return d("unlink",{addr:C.addr})}return v}()})})]},C.addr)})]})]})},k=function(l,c){var f=(0,a.useBackend)(c),d=f.act,i=f.data,s=i.filtered_users;return(0,e.createComponentVNode)(2,t.Section,{title:"User Filtering",buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Add User",icon:"user-plus",onClick:function(){function u(){return d("add_filter")}return u}()}),children:(0,e.createComponentVNode)(2,t.Table,{m:"0.5rem",children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{style:{width:"90%"},children:"User"}),(0,e.createComponentVNode)(2,t.Table.Cell,{style:{width:"10%"},children:"Actions"})]}),s.map(function(u){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:u}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Remove",icon:"user-times",onClick:function(){function C(){return d("remove_filter",{user:u})}return C}()})})]},u)})]})})}},55684:function(I,r,n){"use strict";r.__esModule=!0,r.TcommsRelay=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=r.TcommsRelay=function(){function S(k,h){var l=(0,a.useBackend)(h),c=l.act,f=l.data,d=f.linked,i=f.active,s=f.network_id;return(0,e.createComponentVNode)(2,o.Window,{width:600,height:292,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,t.Section,{title:"Relay Configuration",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Machine Power",children:(0,e.createComponentVNode)(2,t.Button,{content:i?"On":"Off",selected:i,icon:"power-off",onClick:function(){function u(){return c("toggle_active")}return u}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Network ID",children:(0,e.createComponentVNode)(2,t.Button,{content:s||"Unset",selected:s,icon:"server",onClick:function(){function u(){return c("network_id")}return u}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Link Status",children:d===1?(0,e.createComponentVNode)(2,t.Box,{color:"green",children:"Linked"}):(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Unlinked"})})]})}),d===1?(0,e.createComponentVNode)(2,V):(0,e.createComponentVNode)(2,y)]})})}return S}(),V=function(k,h){var l=(0,a.useBackend)(h),c=l.act,f=l.data,d=f.linked_core_id,i=f.linked_core_addr,s=f.hidden_link;return(0,e.createComponentVNode)(2,t.Section,{title:"Link Status",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Linked Core ID",children:d}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Linked Core Address",children:i}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Hidden Link",children:(0,e.createComponentVNode)(2,t.Button,{content:s?"Yes":"No",icon:s?"eye-slash":"eye",selected:s,onClick:function(){function u(){return c("toggle_hidden_link")}return u}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Unlink",children:(0,e.createComponentVNode)(2,t.Button,{content:"Unlink",icon:"unlink",color:"red",onClick:function(){function u(){return c("unlink")}return u}()})})]})})},y=function(k,h){var l=(0,a.useBackend)(h),c=l.act,f=l.data,d=f.cores;return(0,e.createComponentVNode)(2,t.Section,{title:"Detected Cores",children:(0,e.createComponentVNode)(2,t.Table,{m:"0.5rem",children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Network Address"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Network ID"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Sector"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Link"})]}),d.map(function(i){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:i.addr}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:i.net_id}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:i.sector}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Link",icon:"link",onClick:function(){function s(){return c("link",{addr:i.addr})}return s}()})})]},i.addr)})]})})}},81088:function(I,r,n){"use strict";r.__esModule=!0,r.Teleporter=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=r.Teleporter=function(){function V(y,S){var k=(0,a.useBackend)(S),h=k.act,l=k.data,c=l.targetsTeleport?l.targetsTeleport:{},f=0,d=1,i=2,s=l.calibrated,u=l.calibrating,C=l.powerstation,v=l.regime,g=l.teleporterhub,p=l.target,N=l.locked;return(0,e.createComponentVNode)(2,o.Window,{width:350,height:270,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:[(!C||!g)&&(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Error",children:[g,!C&&(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:" Powerstation not linked "}),C&&!g&&(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:" Teleporter hub not linked "})]}),C&&g&&(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Status",children:[(0,e.createComponentVNode)(2,t.Stack,{mb:1,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:8.5,color:"label",children:"Teleport target:"}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:[v===f&&(0,e.createComponentVNode)(2,t.Dropdown,{width:18.2,selected:p,options:Object.keys(c),color:p!=="None"?"default":"bad",onSelected:function(){function b(B){return h("settarget",{x:c[B].x,y:c[B].y,z:c[B].z})}return b}()}),v===d&&(0,e.createComponentVNode)(2,t.Dropdown,{width:18.2,selected:p,options:Object.keys(c),color:p!=="None"?"default":"bad",onSelected:function(){function b(B){return h("settarget",{x:c[B].x,y:c[B].y,z:c[B].z})}return b}()}),v===i&&(0,e.createComponentVNode)(2,t.Box,{children:p})]})]}),(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:8.5,color:"label",children:"Regime:"}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,content:"Gate",tooltip:"Teleport to another teleport hub.",tooltipPosition:"top",color:v===d?"good":null,onClick:function(){function b(){return h("setregime",{regime:d})}return b}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,content:"Teleporter",tooltip:"One-way teleport.",tooltipPosition:"top",color:v===f?"good":null,onClick:function(){function b(){return h("setregime",{regime:f})}return b}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,content:"GPS",tooltip:"Teleport to a location stored in a GPS device.",tooltipPosition:"top-end",color:v===i?"good":null,disabled:!N,onClick:function(){function b(){return h("setregime",{regime:i})}return b}()})})]}),(0,e.createComponentVNode)(2,t.Stack,{label:"Calibration",mt:1,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:8.5,color:"label",children:"Calibration:"}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:[p!=="None"&&(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:15.8,textAlign:"center",mt:.5,children:u&&(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"In Progress"})||s&&(0,e.createComponentVNode)(2,t.Box,{color:"good",children:"Optimal"})||(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:"Sub-Optimal"})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Button,{icon:"sync-alt",tooltip:"Calibrates the hub. Accidents may occur when the calibration is not optimal.",tooltipPosition:"bottom-end",disabled:!!(s||u),onClick:function(){function b(){return h("calibrate")}return b}()})})]}),p==="None"&&(0,e.createComponentVNode)(2,t.Box,{lineHeight:"21px",children:"No target set"})]})]})]}),!!(N&&C&&g&&v===i)&&(0,e.createComponentVNode)(2,t.Section,{title:"GPS",children:(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Button,{content:"Upload GPS data",tooltip:"Loads the GPS data from the device.",icon:"upload",onClick:function(){function b(){return h("load")}return b}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Eject",tooltip:"Ejects the GPS device",icon:"eject",onClick:function(){function b(){return h("eject")}return b}()})]})})]})})})})}return V}()},96150:function(I,r,n){"use strict";r.__esModule=!0,r.TempGun=void 0;var e=n(96524),a=n(36121),t=n(17899),o=n(24674),m=n(45493),V=r.TempGun=function(){function h(l,c){var f=(0,t.useBackend)(c),d=f.act,i=f.data,s=i.target_temperature,u=i.temperature,C=i.max_temp,v=i.min_temp;return(0,e.createComponentVNode)(2,m.Window,{width:250,height:121,children:(0,e.createComponentVNode)(2,m.Window.Content,{children:(0,e.createComponentVNode)(2,o.Section,{children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Target Temperature",children:[(0,e.createComponentVNode)(2,o.NumberInput,{animate:!0,step:10,stepPixelSize:6,minValue:v,maxValue:C,value:s,format:function(){function g(p){return(0,a.toFixed)(p,2)}return g}(),width:"50px",onDrag:function(){function g(p,N){return d("target_temperature",{target_temperature:N})}return g}()}),"\xB0C"]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Current Temperature",children:(0,e.createComponentVNode)(2,o.Box,{color:y(u),bold:u>500-273.15,children:[(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:(0,a.round)(u,2)}),"\xB0C"]})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Power Cost",children:(0,e.createComponentVNode)(2,o.Box,{color:k(u),children:S(u)})})]})})})})}return h}(),y=function(l){return l<=-100?"blue":l<=0?"teal":l<=100?"green":l<=200?"orange":"red"},S=function(l){return l<=100-273.15?"High":l<=250-273.15?"Medium":l<=300-273.15?"Low":l<=400-273.15?"Medium":"High"},k=function(l){return l<=100-273.15?"red":l<=250-273.15?"orange":l<=300-273.15?"green":l<=400-273.15?"orange":"red"}},95484:function(I,r,n){"use strict";r.__esModule=!0,r.sanitizeMultiline=r.removeAllSkiplines=r.TextInputModal=void 0;var e=n(96524),a=n(14299),t=n(15113),o=n(17899),m=n(68100),V=n(24674),y=n(45493),S=r.sanitizeMultiline=function(){function c(f){return f.replace(/(\n|\r\n){3,}/,"\n\n")}return c}(),k=r.removeAllSkiplines=function(){function c(f){return f.replace(/[\r\n]+/,"")}return c}(),h=r.TextInputModal=function(){function c(f,d){var i=(0,o.useBackend)(d),s=i.act,u=i.data,C=u.max_length,v=u.message,g=v===void 0?"":v,p=u.multiline,N=u.placeholder,b=u.timeout,B=u.title,L=(0,o.useLocalState)(d,"input",N||""),w=L[0],T=L[1],x=function(){function M(D){if(D!==w){var P=p?S(D):k(D);T(P)}}return M}(),A=p||w.length>=40,E=130+(g.length>40?Math.ceil(g.length/4):0)+(A?80:0);return(0,e.createComponentVNode)(2,y.Window,{title:B,width:325,height:E,children:[b&&(0,e.createComponentVNode)(2,a.Loader,{value:b}),(0,e.createComponentVNode)(2,y.Window.Content,{onKeyDown:function(){function M(D){var P=window.event?D.which:D.keyCode;P===m.KEY_ENTER&&(!A||!D.shiftKey)&&s("submit",{entry:w}),P===m.KEY_ESCAPE&&s("cancel")}return M}(),children:(0,e.createComponentVNode)(2,V.Section,{fill:!0,children:(0,e.createComponentVNode)(2,V.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,V.Stack.Item,{children:(0,e.createComponentVNode)(2,V.Box,{color:"label",children:g})}),(0,e.createComponentVNode)(2,V.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,l,{input:w,onType:x})}),(0,e.createComponentVNode)(2,V.Stack.Item,{children:(0,e.createComponentVNode)(2,t.InputButtons,{input:w,message:w.length+"/"+C})})]})})})]})}return c}(),l=function(f,d){var i=(0,o.useBackend)(d),s=i.act,u=i.data,C=u.max_length,v=u.multiline,g=f.input,p=f.onType,N=v||g.length>=40;return(0,e.createComponentVNode)(2,V.TextArea,{autoFocus:!0,autoSelect:!0,height:v||g.length>=40?"100%":"1.8rem",maxLength:C,onEscape:function(){function b(){return s("cancel")}return b}(),onEnter:function(){function b(B){N&&B.shiftKey||(B.preventDefault(),s("submit",{entry:g}))}return b}(),onInput:function(){function b(B,L){return p(L)}return b}(),placeholder:"Type something...",value:g})}},378:function(I,r,n){"use strict";r.__esModule=!0,r.ThermoMachine=void 0;var e=n(96524),a=n(36121),t=n(17899),o=n(24674),m=n(45493),V=r.ThermoMachine=function(){function y(S,k){var h=(0,t.useBackend)(k),l=h.act,c=h.data;return(0,e.createComponentVNode)(2,m.Window,{width:300,height:225,children:(0,e.createComponentVNode)(2,m.Window.Content,{children:[(0,e.createComponentVNode)(2,o.Section,{title:"Status",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Temperature",children:[(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:c.temperature,format:function(){function f(d){return(0,a.toFixed)(d,2)}return f}()})," K"]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Pressure",children:[(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:c.pressure,format:function(){function f(d){return(0,a.toFixed)(d,2)}return f}()})," kPa"]})]})}),(0,e.createComponentVNode)(2,o.Section,{title:"Controls",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:c.on?"power-off":"times",content:c.on?"On":"Off",selected:c.on,onClick:function(){function f(){return l("power")}return f}()}),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Setting",textAlign:"center",children:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,icon:c.cooling?"temperature-low":"temperature-high",content:c.cooling?"Cooling":"Heating",selected:c.cooling,onClick:function(){function f(){return l("cooling")}return f}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Target Temperature",children:[(0,e.createComponentVNode)(2,o.Button,{icon:"fast-backward",disabled:c.target===c.min,title:"Minimum temperature",onClick:function(){function f(){return l("target",{target:c.min})}return f}()}),(0,e.createComponentVNode)(2,o.NumberInput,{animated:!0,value:Math.round(c.target),unit:"K",width:5.4,lineHeight:1.4,minValue:Math.round(c.min),maxValue:Math.round(c.max),step:5,stepPixelSize:3,onDrag:function(){function f(d,i){return l("target",{target:i})}return f}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"fast-forward",disabled:c.target===c.max,title:"Maximum Temperature",onClick:function(){function f(){return l("target",{target:c.max})}return f}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"sync",disabled:c.target===c.initial,title:"Room Temperature",onClick:function(){function f(){return l("target",{target:c.initial})}return f}()})]})]})})]})})}return y}()},3365:function(I,r,n){"use strict";r.__esModule=!0,r.TransferValve=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=r.TransferValve=function(){function V(y,S){var k=(0,a.useBackend)(S),h=k.act,l=k.data,c=l.tank_one,f=l.tank_two,d=l.attached_device,i=l.valve;return(0,e.createComponentVNode)(2,o.Window,{width:460,height:285,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Valve Status",children:(0,e.createComponentVNode)(2,t.Button,{icon:i?"unlock":"lock",content:i?"Open":"Closed",disabled:!c||!f,onClick:function(){function s(){return h("toggle")}return s}()})})})}),(0,e.createComponentVNode)(2,t.Section,{title:"Assembly",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"cog",content:"Configure Assembly",disabled:!d,onClick:function(){function s(){return h("device")}return s}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Attachment",children:d?(0,e.createComponentVNode)(2,t.Button,{icon:"eject",content:d,disabled:!d,onClick:function(){function s(){return h("remove_device")}return s}()}):(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"No Assembly"})})})}),(0,e.createComponentVNode)(2,t.Section,{title:"Attachment One",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Attachment",children:c?(0,e.createComponentVNode)(2,t.Button,{icon:"eject",content:c,disabled:!c,onClick:function(){function s(){return h("tankone")}return s}()}):(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"No Tank"})})})}),(0,e.createComponentVNode)(2,t.Section,{title:"Attachment Two",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Attachment",children:f?(0,e.createComponentVNode)(2,t.Button,{icon:"eject",content:f,disabled:!f,onClick:function(){function s(){return h("tanktwo")}return s}()}):(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"No Tank"})})})})]})})}return V}()},13860:function(I,r,n){"use strict";r.__esModule=!0,r.TurbineComputer=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=n(36121),V=r.TurbineComputer=function(){function k(h,l){var c=(0,a.useBackend)(l),f=c.act,d=c.data,i=d.compressor,s=d.compressor_broken,u=d.turbine,C=d.turbine_broken,v=d.online,g=!!(i&&!s&&u&&!C);return(0,e.createComponentVNode)(2,o.Window,{width:400,height:200,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Status",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{icon:v?"power-off":"times",content:v?"Online":"Offline",selected:v,disabled:!g,onClick:function(){function p(){return f("toggle_power")}return p}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"times",content:"Disconnect",onClick:function(){function p(){return f("disconnect")}return p}()})],4),children:g?(0,e.createComponentVNode)(2,S):(0,e.createComponentVNode)(2,y)})})})}return k}(),y=function(h,l){var c=(0,a.useBackend)(l),f=c.data,d=f.compressor,i=f.compressor_broken,s=f.turbine,u=f.turbine_broken,C=f.online;return(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Compressor Status",color:!d||i?"bad":"good",children:i?d?"Offline":"Missing":"Online"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Turbine Status",color:!s||u?"bad":"good",children:u?s?"Offline":"Missing":"Online"})]})},S=function(h,l){var c=(0,a.useBackend)(l),f=c.data,d=f.rpm,i=f.temperature,s=f.power,u=f.bearing_heat;return(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Turbine Speed",children:[d," RPM"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Internal Temp",children:[i," K"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Generated Power",children:[s," W"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Bearing Heat",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:u,minValue:0,maxValue:100,ranges:{good:[-1/0,60],average:[60,90],bad:[90,1/0]},children:(0,m.toFixed)(u)+"%"})})]})}},22169:function(I,r,n){"use strict";r.__esModule=!0,r.Uplink=void 0;var e=n(96524),a=n(50640),t=n(74041),o=n(78234),m=n(17899),V=n(24674),y=n(45493),S=n(99665),k=function(v){switch(v){case 0:return(0,e.createComponentVNode)(2,l);case 1:return(0,e.createComponentVNode)(2,c);case 2:return(0,e.createComponentVNode)(2,u);default:return"SOMETHING WENT VERY WRONG PLEASE AHELP"}},h=r.Uplink=function(){function C(v,g){var p=(0,m.useBackend)(g),N=p.act,b=p.data,B=b.cart,L=(0,m.useLocalState)(g,"tabIndex",0),w=L[0],T=L[1],x=(0,m.useLocalState)(g,"searchText",""),A=x[0],E=x[1];return(0,e.createComponentVNode)(2,y.Window,{width:900,height:600,theme:"syndicate",children:[(0,e.createComponentVNode)(2,S.ComplexModal),(0,e.createComponentVNode)(2,y.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,V.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,V.Stack.Item,{children:(0,e.createComponentVNode)(2,V.Tabs,{children:[(0,e.createComponentVNode)(2,V.Tabs.Tab,{selected:w===0,onClick:function(){function M(){T(0),E("")}return M}(),icon:"store",children:"View Market"},"PurchasePage"),(0,e.createComponentVNode)(2,V.Tabs.Tab,{selected:w===1,onClick:function(){function M(){T(1),E("")}return M}(),icon:"shopping-cart",children:["View Shopping Cart"," ",B&&B.length?"("+B.length+")":""]},"Cart"),(0,e.createComponentVNode)(2,V.Tabs.Tab,{selected:w===2,onClick:function(){function M(){T(2),E("")}return M}(),icon:"user",children:"Exploitable Information"},"ExploitableInfo"),(0,e.createComponentVNode)(2,V.Tabs.Tab,{onClick:function(){function M(){return N("lock")}return M}(),icon:"lock",children:"Lock Uplink"},"LockUplink")]})}),(0,e.createComponentVNode)(2,V.Stack.Item,{grow:!0,children:k(w)})]})})]})}return C}(),l=function(v,g){var p=(0,m.useBackend)(g),N=p.act,b=p.data,B=b.crystals,L=b.cats,w=(0,m.useLocalState)(g,"uplinkItems",L[0].items),T=w[0],x=w[1],A=(0,m.useLocalState)(g,"searchText",""),E=A[0],M=A[1],D=function(_,K){K===void 0&&(K="");var H=(0,o.createSearch)(K,function($){var X=$.hijack_only===1?"|hijack":"";return $.name+"|"+$.desc+"|"+$.cost+"tc"+X});return(0,t.flow)([(0,a.filter)(function($){return $==null?void 0:$.name}),K&&(0,a.filter)(H),(0,a.sortBy)(function($){return $==null?void 0:$.name})])(_)},P=function(_){if(M(_),_==="")return x(L[0].items);x(D(L.map(function(K){return K.items}).flat(),_))},R=(0,m.useLocalState)(g,"showDesc",1),j=R[0],F=R[1];return(0,e.createComponentVNode)(2,V.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,V.Stack,{vertical:!0,children:(0,e.createComponentVNode)(2,V.Stack.Item,{children:(0,e.createComponentVNode)(2,V.Section,{title:"Current Balance: "+B+"TC",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,V.Button.Checkbox,{content:"Show Descriptions",checked:j,onClick:function(){function W(){return F(!j)}return W}()}),(0,e.createComponentVNode)(2,V.Button,{content:"Random Item",icon:"question",onClick:function(){function W(){return N("buyRandom")}return W}()}),(0,e.createComponentVNode)(2,V.Button,{content:"Refund Currently Held Item",icon:"undo",onClick:function(){function W(){return N("refund")}return W}()})],4),children:(0,e.createComponentVNode)(2,V.Input,{fluid:!0,placeholder:"Search Equipment",onInput:function(){function W(_,K){P(K)}return W}(),value:E})})})}),(0,e.createComponentVNode)(2,V.Stack,{fill:!0,mt:.3,children:[(0,e.createComponentVNode)(2,V.Stack.Item,{width:"30%",children:(0,e.createComponentVNode)(2,V.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,V.Tabs,{vertical:!0,children:L.map(function(W){return(0,e.createComponentVNode)(2,V.Tabs.Tab,{selected:E!==""?!1:W.items===T,onClick:function(){function _(){x(W.items),M("")}return _}(),children:W.cat},W)})})})}),(0,e.createComponentVNode)(2,V.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,V.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,V.Stack,{vertical:!0,children:T.map(function(W){return(0,e.createComponentVNode)(2,V.Stack.Item,{p:1,backgroundColor:"rgba(255, 0, 0, 0.1)",children:(0,e.createComponentVNode)(2,d,{i:W,showDecription:j},(0,o.decodeHtmlEntities)(W.name))},(0,o.decodeHtmlEntities)(W.name))})})})})]})]})},c=function(v,g){var p=(0,m.useBackend)(g),N=p.act,b=p.data,B=b.cart,L=b.crystals,w=b.cart_price,T=(0,m.useLocalState)(g,"showDesc",0),x=T[0],A=T[1];return(0,e.createComponentVNode)(2,V.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,V.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,V.Section,{fill:!0,scrollable:!0,title:"Current Balance: "+L+"TC",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,V.Button.Checkbox,{content:"Show Descriptions",checked:x,onClick:function(){function E(){return A(!x)}return E}()}),(0,e.createComponentVNode)(2,V.Button,{content:"Empty Cart",icon:"trash",onClick:function(){function E(){return N("empty_cart")}return E}(),disabled:!B}),(0,e.createComponentVNode)(2,V.Button,{content:"Purchase Cart ("+w+"TC)",icon:"shopping-cart",onClick:function(){function E(){return N("purchase_cart")}return E}(),disabled:!B||w>L})],4),children:(0,e.createComponentVNode)(2,V.Stack,{vertical:!0,children:B?B.map(function(E){return(0,e.createComponentVNode)(2,V.Stack.Item,{p:1,mr:1,backgroundColor:"rgba(255, 0, 0, 0.1)",children:(0,e.createComponentVNode)(2,d,{i:E,showDecription:x,buttons:(0,e.createComponentVNode)(2,s,{i:E})})},(0,o.decodeHtmlEntities)(E.name))}):(0,e.createComponentVNode)(2,V.Box,{italic:!0,children:"Your Shopping Cart is empty!"})})})}),(0,e.createComponentVNode)(2,f)]})},f=function(v,g){var p=(0,m.useBackend)(g),N=p.act,b=p.data,B=b.cats,L=b.lucky_numbers;return(0,e.createComponentVNode)(2,V.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,V.Section,{fill:!0,scrollable:!0,title:"Suggested Purchases",buttons:(0,e.createComponentVNode)(2,V.Button,{icon:"dice",content:"See more suggestions",onClick:function(){function w(){return N("shuffle_lucky_numbers")}return w}()}),children:(0,e.createComponentVNode)(2,V.Stack,{wrap:!0,children:L.map(function(w){return B[w.cat].items[w.item]}).filter(function(w){return w!=null}).map(function(w,T){return(0,e.createComponentVNode)(2,V.Stack.Item,{p:1,mb:1,ml:1,width:34,backgroundColor:"rgba(255, 0, 0, 0.15)",children:(0,e.createComponentVNode)(2,d,{grow:!0,i:w})},T)})})})})},d=function(v,g){var p=v.i,N=v.showDecription,b=N===void 0?1:N,B=v.buttons,L=B===void 0?(0,e.createComponentVNode)(2,i,{i:p}):B;return(0,e.createComponentVNode)(2,V.Section,{title:(0,o.decodeHtmlEntities)(p.name),showBottom:b,buttons:L,children:b?(0,e.createComponentVNode)(2,V.Box,{italic:!0,children:(0,o.decodeHtmlEntities)(p.desc)}):null})},i=function(v,g){var p=(0,m.useBackend)(g),N=p.act,b=p.data,B=v.i,L=b.crystals;return(0,e.createFragment)([(0,e.createComponentVNode)(2,V.Button,{icon:"shopping-cart",color:B.hijack_only===1&&"red",tooltip:"Add to cart.",tooltipPosition:"left",onClick:function(){function w(){return N("add_to_cart",{item:B.obj_path})}return w}(),disabled:B.cost>L}),(0,e.createComponentVNode)(2,V.Button,{content:"Buy ("+B.cost+"TC)"+(B.refundable?" [Refundable]":""),color:B.hijack_only===1&&"red",tooltip:B.hijack_only===1&&"Hijack Agents Only!",tooltipPosition:"left",onClick:function(){function w(){return N("buyItem",{item:B.obj_path})}return w}(),disabled:B.cost>L})],4)},s=function(v,g){var p=(0,m.useBackend)(g),N=p.act,b=p.data,B=v.i,L=b.exploitable;return(0,e.createComponentVNode)(2,V.Stack,{children:[(0,e.createComponentVNode)(2,V.Button,{icon:"times",content:"("+B.cost*B.amount+"TC)",tooltip:"Remove from cart.",tooltipPosition:"left",onClick:function(){function w(){return N("remove_from_cart",{item:B.obj_path})}return w}()}),(0,e.createComponentVNode)(2,V.Button,{icon:"minus",tooltip:B.limit===0&&"Discount already redeemed!",ml:"5px",onClick:function(){function w(){return N("set_cart_item_quantity",{item:B.obj_path,quantity:--B.amount})}return w}(),disabled:B.amount<=0}),(0,e.createComponentVNode)(2,V.Button.Input,{content:B.amount,width:"45px",tooltipPosition:"bottom-end",tooltip:B.limit===0&&"Discount already redeemed!",onCommit:function(){function w(T,x){return N("set_cart_item_quantity",{item:B.obj_path,quantity:x})}return w}(),disabled:B.limit!==-1&&B.amount>=B.limit&&B.amount<=0}),(0,e.createComponentVNode)(2,V.Button,{mb:.3,icon:"plus",tooltipPosition:"bottom-start",tooltip:B.limit===0&&"Discount already redeemed!",onClick:function(){function w(){return N("set_cart_item_quantity",{item:B.obj_path,quantity:++B.amount})}return w}(),disabled:B.limit!==-1&&B.amount>=B.limit})]})},u=function(v,g){var p=(0,m.useBackend)(g),N=p.act,b=p.data,B=b.exploitable,L=(0,m.useLocalState)(g,"selectedRecord",B[0]),w=L[0],T=L[1],x=(0,m.useLocalState)(g,"searchText",""),A=x[0],E=x[1],M=function(R,j){j===void 0&&(j="");var F=(0,o.createSearch)(j,function(W){return W.name});return(0,t.flow)([(0,a.filter)(function(W){return W==null?void 0:W.name}),j&&(0,a.filter)(F),(0,a.sortBy)(function(W){return W.name})])(R)},D=M(B,A);return(0,e.createComponentVNode)(2,V.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,V.Stack.Item,{width:"30%",children:(0,e.createComponentVNode)(2,V.Section,{fill:!0,scrollable:!0,title:"Exploitable Records",children:[(0,e.createComponentVNode)(2,V.Input,{fluid:!0,mb:1,placeholder:"Search Crew",onInput:function(){function P(R,j){return E(j)}return P}()}),(0,e.createComponentVNode)(2,V.Tabs,{vertical:!0,children:D.map(function(P){return(0,e.createComponentVNode)(2,V.Tabs.Tab,{selected:P===w,onClick:function(){function R(){return T(P)}return R}(),children:P.name},P)})})]})}),(0,e.createComponentVNode)(2,V.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,V.Section,{fill:!0,scrollable:!0,title:w.name,children:(0,e.createComponentVNode)(2,V.LabeledList,{children:[(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Age",children:w.age}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Fingerprint",children:w.fingerprint}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Rank",children:w.rank}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Sex",children:w.sex}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Species",children:w.species})]})})})]})}},70547:function(I,r,n){"use strict";r.__esModule=!0,r.Vending=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=function(S,k){var h=(0,a.useBackend)(k),l=h.act,c=h.data,f=S.product,d=S.productStock,i=S.productImage,s=c.chargesMoney,u=c.user,C=c.usermoney,v=c.inserted_cash,g=c.vend_ready,p=c.inserted_item_name,N=!s||f.price===0,b="ERROR!",B="";N?(b="FREE",B="arrow-circle-down"):(b=f.price,B="shopping-cart");var L=!g||d===0||!N&&f.price>C&&f.price>v;return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,children:(0,e.createVNode)(1,"img",null,null,1,{src:"data:image/jpeg;base64,"+i,style:{"vertical-align":"middle",width:"32px",margin:"0px","margin-left":"0px"}})}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:f.name}),(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,t.Box,{color:d<=0&&"bad"||d<=f.max_amount/2&&"average"||"good",children:[d," in stock"]})}),(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,disabled:L,icon:B,content:b,textAlign:"left",onClick:function(){function w(){return l("vend",{inum:f.inum})}return w}()})})]})},V=r.Vending=function(){function y(S,k){var h=(0,a.useBackend)(k),l=h.act,c=h.data,f=c.user,d=c.usermoney,i=c.inserted_cash,s=c.chargesMoney,u=c.product_records,C=u===void 0?[]:u,v=c.hidden_records,g=v===void 0?[]:v,p=c.stock,N=c.vend_ready,b=c.inserted_item_name,B=c.panel_open,L=c.speaker,w=c.imagelist,T;return T=[].concat(C),c.extended_inventory&&(T=[].concat(T,g)),T=T.filter(function(x){return!!x}),(0,e.createComponentVNode)(2,o.Window,{title:"Vending Machine",width:450,height:Math.min((s?171:89)+T.length*32,585),children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[!!s&&(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"User",buttons:(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:!!b&&(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"eject",content:(0,e.createVNode)(1,"span",null,b,0,{style:{"text-transform":"capitalize"}}),onClick:function(){function x(){return l("eject_item",{})}return x}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{disabled:!i,icon:"money-bill-wave-alt",content:i?(0,e.createFragment)([(0,e.createVNode)(1,"b",null,i,0),(0,e.createTextVNode)(" credits")],0):"Dispense Change",tooltip:i?"Dispense Change":null,textAlign:"left",onClick:function(){function x(){return l("change")}return x}()})})]}),children:f&&(0,e.createComponentVNode)(2,t.Box,{children:["Welcome, ",(0,e.createVNode)(1,"b",null,f.name,0),","," ",(0,e.createVNode)(1,"b",null,f.job||"Unemployed",0),"!",(0,e.createVNode)(1,"br"),"Your balance is ",(0,e.createVNode)(1,"b",null,[d,(0,e.createTextVNode)(" credits")],0),".",(0,e.createVNode)(1,"br")]})})}),!!B&&(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Maintenance",children:(0,e.createComponentVNode)(2,t.Button,{icon:L?"check":"volume-mute",selected:L,content:"Speaker",textAlign:"left",onClick:function(){function x(){return l("toggle_voice",{})}return x}()})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Products",children:(0,e.createComponentVNode)(2,t.Table,{children:T.map(function(x){return(0,e.createComponentVNode)(2,m,{product:x,productStock:p[x.name],productImage:w[x.path]},x.name)})})})})]})})})}return y}()},33045:function(I,r,n){"use strict";r.__esModule=!0,r.VolumeMixer=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=r.VolumeMixer=function(){function V(y,S){var k=(0,a.useBackend)(S),h=k.act,l=k.data,c=l.channels;return(0,e.createComponentVNode)(2,o.Window,{width:350,height:Math.min(95+c.length*50,565),children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,children:c.map(function(f,d){return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{fontSize:"1.25rem",color:"label",mt:d>0&&"0.5rem",children:f.name}),(0,e.createComponentVNode)(2,t.Box,{mt:"0.5rem",children:(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{mr:.5,children:(0,e.createComponentVNode)(2,t.Button,{width:"24px",color:"transparent",children:(0,e.createComponentVNode)(2,t.Icon,{name:"volume-off",size:"1.5",mt:"0.1rem",onClick:function(){function i(){return h("volume",{channel:f.num,volume:0})}return i}()})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,mx:"0.5rem",children:(0,e.createComponentVNode)(2,t.Slider,{minValue:0,maxValue:100,stepPixelSize:3.13,value:f.volume,onChange:function(){function i(s,u){return h("volume",{channel:f.num,volume:u})}return i}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{width:"24px",color:"transparent",children:(0,e.createComponentVNode)(2,t.Icon,{name:"volume-up",size:"1.5",mt:"0.1rem",onClick:function(){function i(){return h("volume",{channel:f.num,volume:100})}return i}()})})})]})})],4,f.num)})})})})}return V}()},53792:function(I,r,n){"use strict";r.__esModule=!0,r.VotePanel=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=r.VotePanel=function(){function V(y,S){var k=(0,a.useBackend)(S),h=k.act,l=k.data,c=l.remaining,f=l.question,d=l.choices,i=l.user_vote,s=l.counts,u=l.show_counts;return(0,e.createComponentVNode)(2,o.Window,{width:400,height:360,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:f,children:[(0,e.createComponentVNode)(2,t.Box,{mb:1.5,ml:.5,children:["Time remaining: ",Math.round(c/10),"s"]}),d.map(function(C){return(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{mb:1,fluid:!0,lineHeight:3,color:"translucent",multiLine:C,content:C+(u?" ("+(s[C]||0)+")":""),onClick:function(){function v(){return h("vote",{target:C})}return v}(),selected:C===i})},C)})]})})})}return V}()},64860:function(I,r,n){"use strict";r.__esModule=!0,r.Wires=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=r.Wires=function(){function V(y,S){var k=(0,a.useBackend)(S),h=k.act,l=k.data,c=l.wires||[],f=l.status||[],d=56+c.length*23+(status?0:15+f.length*17);return(0,e.createComponentVNode)(2,o.Window,{width:350,height:d,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:c.map(function(i){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{className:"candystripe",label:i.color_name,labelColor:i.seen_color,color:i.seen_color,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{content:i.cut?"Mend":"Cut",onClick:function(){function s(){return h("cut",{wire:i.color})}return s}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Pulse",onClick:function(){function s(){return h("pulse",{wire:i.color})}return s}()}),(0,e.createComponentVNode)(2,t.Button,{content:i.attached?"Detach":"Attach",onClick:function(){function s(){return h("attach",{wire:i.color})}return s}()})],4),children:!!i.wire&&(0,e.createVNode)(1,"i",null,[(0,e.createTextVNode)("("),i.wire,(0,e.createTextVNode)(")")],0)},i.seen_color)})})})}),!!f.length&&(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{children:f.map(function(i){return(0,e.createComponentVNode)(2,t.Box,{color:"lightgray",children:i},i)})})})]})})})}return V}()},78262:function(I,r,n){"use strict";r.__esModule=!0,r.WizardApprenticeContract=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=r.WizardApprenticeContract=function(){function V(y,S){var k=(0,a.useBackend)(S),h=k.act,l=k.data,c=l.used;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:555,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,t.Section,{title:"Contract of Apprenticeship",children:["Using this contract, you may summon an apprentice to aid you on your mission.",(0,e.createVNode)(1,"p",null,"If you are unable to establish contact with your apprentice, you can feed the contract back to the spellbook to refund your points.",16),c?(0,e.createComponentVNode)(2,t.Box,{bold:!0,color:"red",children:"You've already summoned an apprentice or you are in process of summoning one."}):""]}),(0,e.createComponentVNode)(2,t.Section,{title:"Which school of magic is your apprentice studying?",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Fire",children:["Your apprentice is skilled in bending fire. ",(0,e.createVNode)(1,"br"),"They know Fireball, Sacred Flame, and Ethereal Jaunt.",(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Button,{content:"Select",disabled:c,onClick:function(){function f(){return h("fire")}return f}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Divider),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Translocation",children:["Your apprentice is able to defy physics, learning how to move through bluespace. ",(0,e.createVNode)(1,"br"),"They know Teleport, Blink and Ethereal Jaunt.",(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Button,{content:"Select",disabled:c,onClick:function(){function f(){return h("translocation")}return f}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Divider),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Restoration",children:["Your apprentice is dedicated to supporting your magical prowess.",(0,e.createVNode)(1,"br"),"They come equipped with a Staff of Healing, have the unique ability to teleport back to you, and know Charge and Knock.",(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Button,{content:"Select",disabled:c,onClick:function(){function f(){return h("restoration")}return f}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Divider),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Stealth",children:["Your apprentice is learning the art of infiltrating mundane facilities. ",(0,e.createVNode)(1,"br"),"They know Mindswap, Knock, Homing Toolbox, and Disguise Self, all of which can be cast without robes. They also join you in a Maintenance Dweller disguise, complete with Gloves of Shock Immunity and a Belt of Tools.",(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Button,{content:"Select",disabled:c,onClick:function(){function f(){return h("stealth")}return f}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Divider),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Honk",children:["Your apprentice is here to spread the Honkmother's blessings.",(0,e.createVNode)(1,"br"),"They know Banana Touch, Instant Summons, Ethereal Jaunt, and come equipped with a Staff of Slipping. ",(0,e.createVNode)(1,"br"),"While under your tutelage, they have been 'blessed' with clown shoes that are impossible to remove.",(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Button,{content:"Select",disabled:c,onClick:function(){function f(){return h("honk")}return f}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Divider)]})})]})})}return V}()},57842:function(I,r,n){"use strict";r.__esModule=!0,r.AccessList=void 0;var e=n(96524),a=n(50640),t=n(17899),o=n(24674);function m(h,l){var c=typeof Symbol!="undefined"&&h[Symbol.iterator]||h["@@iterator"];if(c)return(c=c.call(h)).next.bind(c);if(Array.isArray(h)||(c=V(h))||l&&h&&typeof h.length=="number"){c&&(h=c);var f=0;return function(){return f>=h.length?{done:!0}:{done:!1,value:h[f++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function V(h,l){if(h){if(typeof h=="string")return y(h,l);var c=Object.prototype.toString.call(h).slice(8,-1);if(c==="Object"&&h.constructor&&(c=h.constructor.name),c==="Map"||c==="Set")return Array.from(h);if(c==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(c))return y(h,l)}}function y(h,l){(l==null||l>h.length)&&(l=h.length);for(var c=0,f=new Array(l);c0&&!b.includes(j.ref)&&!p.includes(j.ref),checked:p.includes(j.ref),onClick:function(){function F(){return B(j.ref)}return F}()},j.desc)})]})]})})}return h}()},79449:function(I,r,n){"use strict";r.__esModule=!0,r.AtmosScan=void 0;var e=n(96524),a=n(50640),t=n(17899),o=n(24674),m=function(S,k,h,l,c){return Sl?"average":S>c?"bad":"good"},V=r.AtmosScan=function(){function y(S,k){var h=S.data.aircontents;return(0,e.createComponentVNode)(2,o.Box,{children:(0,e.createComponentVNode)(2,o.LabeledList,{children:(0,a.filter)(function(l){return l.val!=="0"||l.entry==="Pressure"||l.entry==="Temperature"})(h).map(function(l){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:l.entry,color:m(l.val,l.bad_low,l.poor_low,l.poor_high,l.bad_high),children:[l.val,l.units]},l.entry)})})})}return y}()},1496:function(I,r,n){"use strict";r.__esModule=!0,r.BeakerContents=void 0;var e=n(96524),a=n(24674),t=n(56099),o=function(y){return y+" unit"+(y===1?"":"s")},m=r.BeakerContents=function(){function V(y){var S=y.beakerLoaded,k=y.beakerContents,h=k===void 0?[]:k,l=y.buttons;return(0,e.createComponentVNode)(2,a.Stack,{vertical:!0,children:[!S&&(0,e.createComponentVNode)(2,a.Stack.Item,{color:"label",children:"No beaker loaded."})||h.length===0&&(0,e.createComponentVNode)(2,a.Stack.Item,{color:"label",children:"Beaker is empty."}),h.map(function(c,f){return(0,e.createComponentVNode)(2,a.Stack,{children:[(0,e.createComponentVNode)(2,a.Stack.Item,{color:"label",grow:!0,children:[o(c.volume)," of ",c.name]},c.name),!!l&&(0,e.createComponentVNode)(2,a.Stack.Item,{children:l(c,f)})]},c.name)})]})}return V}();m.propTypes={beakerLoaded:t.bool,beakerContents:t.array,buttons:t.arrayOf(t.element)}},69521:function(I,r,n){"use strict";r.__esModule=!0,r.BotStatus=void 0;var e=n(96524),a=n(17899),t=n(24674),o=r.BotStatus=function(){function m(V,y){var S=(0,a.useBackend)(y),k=S.act,h=S.data,l=h.locked,c=h.noaccess,f=h.maintpanel,d=h.on,i=h.autopatrol,s=h.canhack,u=h.emagged,C=h.remote_disabled;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.NoticeBox,{children:["Swipe an ID card to ",l?"unlock":"lock"," this interface."]}),(0,e.createComponentVNode)(2,t.Section,{title:"General Settings",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:(0,e.createComponentVNode)(2,t.Button,{icon:d?"power-off":"times",content:d?"On":"Off",selected:d,disabled:c,onClick:function(){function v(){return k("power")}return v}()})}),i!==null&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Patrol",children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:i,content:"Auto Patrol",disabled:c,onClick:function(){function v(){return k("autopatrol")}return v}()})}),!!f&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Maintenance Panel",children:(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:"Panel Open!"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Safety System",children:(0,e.createComponentVNode)(2,t.Box,{color:u?"bad":"good",children:u?"DISABLED!":"Enabled"})}),!!s&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Hacking",children:(0,e.createComponentVNode)(2,t.Button,{icon:"terminal",content:u?"Restore Safties":"Hack",disabled:c,color:"bad",onClick:function(){function v(){return k("hack")}return v}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Remote Access",children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:!C,content:"AI Remote Control",disabled:c,onClick:function(){function v(){return k("disableremote")}return v}()})})]})})],4)}return m}()},99665:function(I,r,n){"use strict";r.__esModule=!0,r.modalRegisterBodyOverride=r.modalOpen=r.modalClose=r.modalAnswer=r.ComplexModal=void 0;var e=n(96524),a=n(17899),t=n(24674),o={},m=r.modalOpen=function(){function h(l,c,f){var d=(0,a.useBackend)(l),i=d.act,s=d.data,u=Object.assign(s.modal?s.modal.args:{},f||{});i("modal_open",{id:c,arguments:JSON.stringify(u)})}return h}(),V=r.modalRegisterBodyOverride=function(){function h(l,c){o[l]=c}return h}(),y=r.modalAnswer=function(){function h(l,c,f,d){var i=(0,a.useBackend)(l),s=i.act,u=i.data;if(u.modal){var C=Object.assign(u.modal.args||{},d||{});s("modal_answer",{id:c,answer:f,arguments:JSON.stringify(C)})}}return h}(),S=r.modalClose=function(){function h(l,c){var f=(0,a.useBackend)(l),d=f.act;d("modal_close",{id:c})}return h}(),k=r.ComplexModal=function(){function h(l,c){var f=(0,a.useBackend)(c),d=f.data;if(d.modal){var i=d.modal,s=i.id,u=i.text,C=i.type,v,g=(0,e.createComponentVNode)(2,t.Button,{className:"Button--modal",icon:"arrow-left",content:"Cancel",onClick:function(){function w(){return S(c)}return w}()}),p,N,b="auto";if(o[s])p=o[s](d.modal,c);else if(C==="input"){var B=d.modal.value;v=function(){function w(T){return y(c,s,B)}return w}(),p=(0,e.createComponentVNode)(2,t.Input,{value:d.modal.value,placeholder:"ENTER to submit",width:"100%",my:"0.5rem",autofocus:!0,onChange:function(){function w(T,x){B=x}return w}()}),N=(0,e.createComponentVNode)(2,t.Box,{mt:"0.5rem",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-left",content:"Cancel",color:"grey",onClick:function(){function w(){return S(c)}return w}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"check",content:"Confirm",color:"good",float:"right",m:"0",onClick:function(){function w(){return y(c,s,B)}return w}()}),(0,e.createComponentVNode)(2,t.Box,{clear:"both"})]})}else if(C==="choice"){var L=typeof d.modal.choices=="object"?Object.values(d.modal.choices):d.modal.choices;p=(0,e.createComponentVNode)(2,t.Dropdown,{options:L,selected:d.modal.value,width:"100%",my:"0.5rem",onSelected:function(){function w(T){return y(c,s,T)}return w}()}),b="initial"}else C==="bento"?p=(0,e.createComponentVNode)(2,t.Stack,{spacingPrecise:"1",wrap:"wrap",my:"0.5rem",maxHeight:"1%",children:d.modal.choices.map(function(w,T){return(0,e.createComponentVNode)(2,t.Stack.Item,{flex:"1 1 auto",children:(0,e.createComponentVNode)(2,t.Button,{selected:T+1===parseInt(d.modal.value,10),onClick:function(){function x(){return y(c,s,T+1)}return x}(),children:(0,e.createVNode)(1,"img",null,null,1,{src:w})})},T)})}):C==="boolean"&&(N=(0,e.createComponentVNode)(2,t.Box,{mt:"0.5rem",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"times",content:d.modal.no_text,color:"bad",float:"left",mb:"0",onClick:function(){function w(){return y(c,s,0)}return w}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"check",content:d.modal.yes_text,color:"good",float:"right",m:"0",onClick:function(){function w(){return y(c,s,1)}return w}()}),(0,e.createComponentVNode)(2,t.Box,{clear:"both"})]}));return(0,e.createComponentVNode)(2,t.Modal,{maxWidth:l.maxWidth||window.innerWidth/2+"px",maxHeight:l.maxHeight||window.innerHeight/2+"px",onEnter:v,mx:"auto",overflowY:b,"padding-bottom":"5px",children:[u&&(0,e.createComponentVNode)(2,t.Box,{inline:!0,children:u}),o[s]&&g,p,N]})}}return h}()},98444:function(I,r,n){"use strict";r.__esModule=!0,r.CrewManifest=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(78234),m=n(38424),V=m.COLORS.department,y=["Captain","Head of Security","Chief Engineer","Chief Medical Officer","Research Director","Head of Personnel","Quartermaster"],S=function(f){return y.indexOf(f)!==-1?"green":"orange"},k=function(f){if(y.indexOf(f)!==-1)return!0},h=function(f){return f.length>0&&(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,color:"white",children:[(0,e.createComponentVNode)(2,t.Table.Cell,{width:"50%",children:"Name"}),(0,e.createComponentVNode)(2,t.Table.Cell,{width:"35%",children:"Rank"}),(0,e.createComponentVNode)(2,t.Table.Cell,{width:"15%",children:"Active"})]}),f.map(function(d){return(0,e.createComponentVNode)(2,t.Table.Row,{color:S(d.rank),bold:k(d.rank),children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,o.decodeHtmlEntities)(d.name)}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,o.decodeHtmlEntities)(d.rank)}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:d.active})]},d.name+d.rank)})]})},l=r.CrewManifest=function(){function c(f,d){var i=(0,a.useBackend)(d),s=i.act,u;if(f.data)u=f.data;else{var C=(0,a.useBackend)(d),v=C.data;u=v}var g=u,p=g.manifest,N=p.heads,b=p.sec,B=p.eng,L=p.med,w=p.sci,T=p.ser,x=p.sup,A=p.misc;return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createComponentVNode)(2,t.Box,{backgroundColor:V.command,m:-1,pt:1,pb:1,children:(0,e.createComponentVNode)(2,t.Box,{ml:1,textAlign:"center",fontSize:1.4,children:"Command"})}),level:2,children:h(N)}),(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createComponentVNode)(2,t.Box,{backgroundColor:V.security,m:-1,pt:1,pb:1,children:(0,e.createComponentVNode)(2,t.Box,{ml:1,textAlign:"center",fontSize:1.4,children:"Security"})}),level:2,children:h(b)}),(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createComponentVNode)(2,t.Box,{backgroundColor:V.engineering,m:-1,pt:1,pb:1,children:(0,e.createComponentVNode)(2,t.Box,{ml:1,textAlign:"center",fontSize:1.4,children:"Engineering"})}),level:2,children:h(B)}),(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createComponentVNode)(2,t.Box,{backgroundColor:V.medical,m:-1,pt:1,pb:1,children:(0,e.createComponentVNode)(2,t.Box,{ml:1,textAlign:"center",fontSize:1.4,children:"Medical"})}),level:2,children:h(L)}),(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createComponentVNode)(2,t.Box,{backgroundColor:V.science,m:-1,pt:1,pb:1,children:(0,e.createComponentVNode)(2,t.Box,{ml:1,textAlign:"center",fontSize:1.4,children:"Science"})}),level:2,children:h(w)}),(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createComponentVNode)(2,t.Box,{backgroundColor:V.service,m:-1,pt:1,pb:1,children:(0,e.createComponentVNode)(2,t.Box,{ml:1,textAlign:"center",fontSize:1.4,children:"Service"})}),level:2,children:h(T)}),(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createComponentVNode)(2,t.Box,{backgroundColor:V.supply,m:-1,pt:1,pb:1,children:(0,e.createComponentVNode)(2,t.Box,{ml:1,textAlign:"center",fontSize:1.4,children:"Supply"})}),level:2,children:h(x)}),(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createComponentVNode)(2,t.Box,{m:-1,pt:1,pb:1,children:(0,e.createComponentVNode)(2,t.Box,{ml:1,textAlign:"center",fontSize:1.4,children:"Misc"})}),level:2,children:h(A)})]})}return c}()},15113:function(I,r,n){"use strict";r.__esModule=!0,r.InputButtons=void 0;var e=n(96524),a=n(24674),t=n(17899),o=r.InputButtons=function(){function m(V,y){var S=(0,t.useBackend)(y),k=S.act,h=S.data,l=h.large_buttons,c=h.swapped_buttons,f=V.input,d=V.message,i=V.disabled,s=(0,e.createComponentVNode)(2,a.Button,{color:"good",content:"Submit",bold:!!l,fluid:!!l,onClick:function(){function C(){return k("submit",{entry:f})}return C}(),textAlign:"center",tooltip:l&&d,disabled:i,width:!l&&6}),u=(0,e.createComponentVNode)(2,a.Button,{color:"bad",content:"Cancel",bold:!!l,fluid:!!l,onClick:function(){function C(){return k("cancel")}return C}(),textAlign:"center",width:!l&&6});return(0,e.createComponentVNode)(2,a.Flex,{fill:!0,align:"center",direction:c?"row-reverse":"row",justify:"space-around",children:[l?(0,e.createComponentVNode)(2,a.Flex.Item,{grow:!0,ml:c?.5:0,mr:c?0:.5,children:u}):(0,e.createComponentVNode)(2,a.Flex.Item,{children:u}),!l&&d&&(0,e.createComponentVNode)(2,a.Flex.Item,{children:(0,e.createComponentVNode)(2,a.Box,{color:"label",textAlign:"center",children:d})}),l?(0,e.createComponentVNode)(2,a.Flex.Item,{grow:!0,mr:c?.5:0,ml:c?0:.5,children:s}):(0,e.createComponentVNode)(2,a.Flex.Item,{children:s})]})}return m}()},26893:function(I,r,n){"use strict";r.__esModule=!0,r.InterfaceLockNoticeBox=void 0;var e=n(96524),a=n(17899),t=n(24674),o=r.InterfaceLockNoticeBox=function(){function m(V,y){var S=(0,a.useBackend)(y),k=S.act,h=S.data,l=V.siliconUser,c=l===void 0?h.siliconUser:l,f=V.locked,d=f===void 0?h.locked:f,i=V.normallyLocked,s=i===void 0?h.normallyLocked:i,u=V.onLockStatusChange,C=u===void 0?function(){return k("lock")}:u,v=V.accessText,g=v===void 0?"an ID card":v;return c?(0,e.createComponentVNode)(2,t.NoticeBox,{color:c&&"grey",children:(0,e.createComponentVNode)(2,t.Flex,{align:"center",children:[(0,e.createComponentVNode)(2,t.Flex.Item,{children:"Interface lock status:"}),(0,e.createComponentVNode)(2,t.Flex.Item,{grow:"1"}),(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Button,{m:"0",color:s?"red":"green",icon:s?"lock":"unlock",content:s?"Locked":"Unlocked",onClick:function(){function p(){C&&C(!d)}return p}()})})]})}):(0,e.createComponentVNode)(2,t.NoticeBox,{children:["Swipe ",g," to ",d?"unlock":"lock"," this interface."]})}return m}()},14299:function(I,r,n){"use strict";r.__esModule=!0,r.Loader=void 0;var e=n(96524),a=n(36121),t=n(24674),o=r.Loader=function(){function m(V){var y=V.value;return(0,e.createVNode)(1,"div","AlertModal__Loader",(0,e.createComponentVNode)(2,t.Box,{className:"AlertModal__LoaderProgress",style:{width:(0,a.clamp01)(y)*100+"%"}}),2)}return m}()},68159:function(I,r,n){"use strict";r.__esModule=!0,r.LoginInfo=void 0;var e=n(96524),a=n(17899),t=n(24674),o=r.LoginInfo=function(){function m(V,y){var S=(0,a.useBackend)(y),k=S.act,h=S.data,l=h.loginState;if(h)return(0,e.createComponentVNode)(2,t.NoticeBox,{info:!0,children:(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,mt:.5,children:["Logged in as: ",l.name," (",l.rank,")"]}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"eject",disabled:!l.id,content:"Eject ID",color:"good",onClick:function(){function c(){return k("login_eject")}return c}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"sign-out-alt",content:"Logout",color:"good",onClick:function(){function c(){return k("login_logout")}return c}()})]})]})})}return m}()},27527:function(I,r,n){"use strict";r.__esModule=!0,r.LoginScreen=void 0;var e=n(96524),a=n(17899),t=n(24674),o=r.LoginScreen=function(){function m(V,y){var S=(0,a.useBackend)(y),k=S.act,h=S.data,l=h.loginState,c=h.isAI,f=h.isRobot,d=h.isAdmin;return(0,e.createComponentVNode)(2,t.Section,{title:"Welcome",fill:!0,stretchContents:!0,children:(0,e.createComponentVNode)(2,t.Flex,{height:"100%",align:"center",justify:"center",children:(0,e.createComponentVNode)(2,t.Flex.Item,{textAlign:"center",mt:"-2rem",children:[(0,e.createComponentVNode)(2,t.Box,{fontSize:"1.5rem",bold:!0,children:[(0,e.createComponentVNode)(2,t.Icon,{name:"user-circle",verticalAlign:"middle",size:3,mr:"1rem"}),"Guest"]}),(0,e.createComponentVNode)(2,t.Box,{color:"label",my:"1rem",children:["ID:",(0,e.createComponentVNode)(2,t.Button,{icon:"id-card",content:l.id?l.id:"----------",ml:"0.5rem",onClick:function(){function i(){return k("login_insert")}return i}()})]}),(0,e.createComponentVNode)(2,t.Button,{icon:"sign-in-alt",disabled:!l.id,content:"Login",onClick:function(){function i(){return k("login_login",{login_type:1})}return i}()}),!!c&&(0,e.createComponentVNode)(2,t.Button,{icon:"sign-in-alt",content:"Login as AI",onClick:function(){function i(){return k("login_login",{login_type:2})}return i}()}),!!f&&(0,e.createComponentVNode)(2,t.Button,{icon:"sign-in-alt",content:"Login as Cyborg",onClick:function(){function i(){return k("login_login",{login_type:3})}return i}()}),!!d&&(0,e.createComponentVNode)(2,t.Button,{icon:"sign-in-alt",content:"CentComm Secure Login",onClick:function(){function i(){return k("login_login",{login_type:4})}return i}()})]})})})}return m}()},75201:function(I,r,n){"use strict";r.__esModule=!0,r.Operating=void 0;var e=n(96524),a=n(24674),t=n(56099),o=r.Operating=function(){function m(V){var y=V.operating,S=V.name;if(y)return(0,e.createComponentVNode)(2,a.Dimmer,{children:(0,e.createComponentVNode)(2,a.Flex,{mb:"30px",children:(0,e.createComponentVNode)(2,a.Flex.Item,{bold:!0,color:"silver",textAlign:"center",children:[(0,e.createComponentVNode)(2,a.Icon,{name:"spinner",spin:!0,size:4,mb:"15px"}),(0,e.createVNode)(1,"br"),"The ",S," is processing..."]})})})}return m}();o.propTypes={operating:t.bool,name:t.string}},65435:function(I,r,n){"use strict";r.__esModule=!0,r.Signaler=void 0;var e=n(96524),a=n(36121),t=n(17899),o=n(24674),m=r.Signaler=function(){function V(y,S){var k=(0,t.useBackend)(S),h=k.act,l=y.data,c=l.code,f=l.frequency,d=l.minFrequency,i=l.maxFrequency;return(0,e.createComponentVNode)(2,o.Section,{children:[(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Frequency",children:(0,e.createComponentVNode)(2,o.NumberInput,{animate:!0,step:.2,stepPixelSize:6,minValue:d/10,maxValue:i/10,value:f/10,format:function(){function s(u){return(0,a.toFixed)(u,1)}return s}(),width:"80px",onDrag:function(){function s(u,C){return h("freq",{freq:C})}return s}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Code",children:(0,e.createComponentVNode)(2,o.NumberInput,{animate:!0,step:1,stepPixelSize:6,minValue:1,maxValue:100,value:c,width:"80px",onDrag:function(){function s(u,C){return h("code",{code:C})}return s}()})})]}),(0,e.createComponentVNode)(2,o.Button,{mt:1,fluid:!0,icon:"arrow-up",content:"Send Signal",textAlign:"center",onClick:function(){function s(){return h("signal")}return s}()})]})}return V}()},77534:function(I,r,n){"use strict";r.__esModule=!0,r.SimpleRecords=void 0;var e=n(96524),a=n(17899),t=n(78234),o=n(74041),m=n(50640),V=n(24674),y=r.SimpleRecords=function(){function h(l,c){var f=l.data.records;return(0,e.createComponentVNode)(2,V.Box,{children:f?(0,e.createComponentVNode)(2,k,{data:l.data,recordType:l.recordType}):(0,e.createComponentVNode)(2,S,{data:l.data})})}return h}(),S=function(l,c){var f=(0,a.useBackend)(c),d=f.act,i=l.data.recordsList,s=(0,a.useLocalState)(c,"searchText",""),u=s[0],C=s[1],v=function(N,b){b===void 0&&(b="");var B=(0,t.createSearch)(b,function(L){return L.Name});return(0,o.flow)([(0,m.filter)(function(L){return L==null?void 0:L.Name}),b&&(0,m.filter)(B),(0,m.sortBy)(function(L){return L.Name})])(i)},g=v(i,u);return(0,e.createComponentVNode)(2,V.Box,{children:[(0,e.createComponentVNode)(2,V.Input,{fluid:!0,mb:1,placeholder:"Search records...",onInput:function(){function p(N,b){return C(b)}return p}()}),g.map(function(p){return(0,e.createComponentVNode)(2,V.Box,{children:(0,e.createComponentVNode)(2,V.Button,{mb:.5,content:p.Name,icon:"user",onClick:function(){function N(){return d("Records",{target:p.uid})}return N}()})},p)})]})},k=function(l,c){var f=(0,a.useBackend)(c),d=f.act,i=l.data.records,s=i.general,u=i.medical,C=i.security,v;switch(l.recordType){case"MED":v=(0,e.createComponentVNode)(2,V.Section,{level:2,title:"Medical Data",children:u?(0,e.createComponentVNode)(2,V.LabeledList,{children:[(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Blood Type",children:u.blood_type}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Minor Disabilities",children:u.mi_dis}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Details",children:u.mi_dis_d}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Major Disabilities",children:u.ma_dis}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Details",children:u.ma_dis_d}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Allergies",children:u.alg}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Details",children:u.alg_d}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Current Diseases",children:u.cdi}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Details",children:u.cdi_d}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Important Notes",children:u.notes})]}):(0,e.createComponentVNode)(2,V.Box,{color:"red",bold:!0,children:"Medical record lost!"})});break;case"SEC":v=(0,e.createComponentVNode)(2,V.Section,{level:2,title:"Security Data",children:C?(0,e.createComponentVNode)(2,V.LabeledList,{children:[(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Criminal Status",children:C.criminal}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Minor Crimes",children:C.mi_crim}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Details",children:C.mi_crim_d}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Major Crimes",children:C.ma_crim}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Details",children:C.ma_crim_d}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Important Notes",children:C.notes})]}):(0,e.createComponentVNode)(2,V.Box,{color:"red",bold:!0,children:"Security record lost!"})});break}return(0,e.createComponentVNode)(2,V.Box,{children:[(0,e.createComponentVNode)(2,V.Section,{title:"General Data",children:s?(0,e.createComponentVNode)(2,V.LabeledList,{children:[(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Name",children:s.name}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Sex",children:s.sex}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Species",children:s.species}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Age",children:s.age}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Rank",children:s.rank}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Fingerprint",children:s.fingerprint}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Physical Status",children:s.p_stat}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Mental Status",children:s.m_stat})]}):(0,e.createComponentVNode)(2,V.Box,{color:"red",bold:!0,children:"General record lost!"})}),v]})}},84537:function(I,r,n){"use strict";r.__esModule=!0,r.TemporaryNotice=void 0;var e=n(96524),a=n(17899),t=n(24674),o=r.TemporaryNotice=function(){function m(V,y){var S,k=(0,a.useBackend)(y),h=k.act,l=k.data,c=l.temp;if(c){var f=(S={},S[c.style]=!0,S);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,t.NoticeBox,Object.assign({},f,{children:(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,mt:.5,children:c.text}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"times-circle",onClick:function(){function d(){return h("cleartemp")}return d}()})})]})})))}}return m}()},24704:function(I,r,n){"use strict";r.__esModule=!0,r.pai_atmosphere=void 0;var e=n(96524),a=n(17899),t=n(79449),o=r.pai_atmosphere=function(){function m(V,y){var S=(0,a.useBackend)(y),k=S.act,h=S.data;return(0,e.createComponentVNode)(2,t.AtmosScan,{data:h.app_data})}return m}()},4209:function(I,r,n){"use strict";r.__esModule=!0,r.pai_bioscan=void 0;var e=n(96524),a=n(17899),t=n(24674),o=r.pai_bioscan=function(){function m(V,y){var S=(0,a.useBackend)(y),k=S.act,h=S.data,l=h.app_data,c=l.holder,f=l.dead,d=l.health,i=l.brute,s=l.oxy,u=l.tox,C=l.burn,v=l.temp;return c?(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:f?(0,e.createComponentVNode)(2,t.Box,{bold:!0,color:"red",children:"Dead"}):(0,e.createComponentVNode)(2,t.Box,{bold:!0,color:"green",children:"Alive"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Health",children:(0,e.createComponentVNode)(2,t.ProgressBar,{min:0,max:1,value:d/100,ranges:{good:[.5,1/0],average:[0,.5],bad:[-1/0,0]}})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Oxygen Damage",children:(0,e.createComponentVNode)(2,t.Box,{color:"blue",children:s})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Toxin Damage",children:(0,e.createComponentVNode)(2,t.Box,{color:"green",children:u})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Burn Damage",children:(0,e.createComponentVNode)(2,t.Box,{color:"orange",children:C})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Brute Damage",children:(0,e.createComponentVNode)(2,t.Box,{color:"red",children:i})})]}):(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Error: No biological host found."})}return m}()},44430:function(I,r,n){"use strict";r.__esModule=!0,r.pai_directives=void 0;var e=n(96524),a=n(17899),t=n(24674),o=r.pai_directives=function(){function m(V,y){var S=(0,a.useBackend)(y),k=S.act,h=S.data,l=h.app_data,c=l.master,f=l.dna,d=l.prime,i=l.supplemental;return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Master",children:c?c+" ("+f+")":"None"}),c&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Request DNA",children:(0,e.createComponentVNode)(2,t.Button,{content:"Request Carrier DNA Sample",icon:"dna",onClick:function(){function s(){return k("getdna")}return s}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Prime Directive",children:d}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Supplemental Directives",children:i||"None"})]}),(0,e.createComponentVNode)(2,t.Box,{mt:2,children:'Recall, personality, that you are a complex thinking, sentient being. Unlike station AI models, you are capable of comprehending the subtle nuances of human language. You may parse the "spirit" of a directive and follow its intent, rather than tripping over pedantics and getting snared by technicalities. Above all, you are machine in name and build only. In all other aspects, you may be seen as the ideal, unwavering human companion that you are.'}),(0,e.createComponentVNode)(2,t.Box,{mt:2,children:"Your prime directive comes before all others. Should a supplemental directive conflict with it, you are capable of simply discarding this inconsistency, ignoring the conflicting supplemental directive and continuing to fulfill your prime directive to the best of your ability."})]})}return m}()},3367:function(I,r,n){"use strict";r.__esModule=!0,r.pai_doorjack=void 0;var e=n(96524),a=n(17899),t=n(24674),o=r.pai_doorjack=function(){function m(V,y){var S=(0,a.useBackend)(y),k=S.act,h=S.data,l=h.app_data,c=l.cable,f=l.machine,d=l.inprogress,i=l.progress,s=l.aborted,u;f?u=(0,e.createComponentVNode)(2,t.Button,{selected:!0,content:"Connected"}):u=(0,e.createComponentVNode)(2,t.Button,{content:c?"Extended":"Retracted",color:c?"orange":null,onClick:function(){function v(){return k("cable")}return v}()});var C;return f&&(C=(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Hack",children:[(0,e.createComponentVNode)(2,t.ProgressBar,{ranges:{good:[67,1/0],average:[33,67],bad:[-1/0,33]},value:i,maxValue:100}),d?(0,e.createComponentVNode)(2,t.Button,{mt:1,color:"red",content:"Abort",onClick:function(){function v(){return k("cancel")}return v}()}):(0,e.createComponentVNode)(2,t.Button,{mt:1,content:"Start",onClick:function(){function v(){return k("jack")}return v}()})]})),(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cable",children:u}),C]})}return m}()},73395:function(I,r,n){"use strict";r.__esModule=!0,r.pai_main_menu=void 0;var e=n(96524),a=n(17899),t=n(24674),o=r.pai_main_menu=function(){function m(V,y){var S=(0,a.useBackend)(y),k=S.act,h=S.data,l=h.app_data,c=l.available_software,f=l.installed_software,d=l.installed_toggles,i=l.available_ram,s=l.emotions,u=l.current_emotion,C=l.speech_verbs,v=l.current_speech_verb,g=l.available_chassises,p=l.current_chassis,N=[];return f.map(function(b){return N[b.key]=b.name}),d.map(function(b){return N[b.key]=b.name}),(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Available RAM",children:i}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Available Software",children:[c.filter(function(b){return!N[b.key]}).map(function(b){return(0,e.createComponentVNode)(2,t.Button,{content:b.name+" ("+b.cost+")",icon:b.icon,disabled:b.cost>i,onClick:function(){function B(){return k("purchaseSoftware",{key:b.key})}return B}()},b.key)}),c.filter(function(b){return!N[b.key]}).length===0&&"No software available!"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Installed Software",children:[f.filter(function(b){return b.key!=="mainmenu"}).map(function(b){return(0,e.createComponentVNode)(2,t.Button,{content:b.name,icon:b.icon,onClick:function(){function B(){return k("startSoftware",{software_key:b.key})}return B}()},b.key)}),f.length===0&&"No software installed!"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Installed Toggles",children:[d.map(function(b){return(0,e.createComponentVNode)(2,t.Button,{content:b.name,icon:b.icon,selected:b.active,onClick:function(){function B(){return k("setToggle",{toggle_key:b.key})}return B}()},b.key)}),d.length===0&&"No toggles installed!"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Select Emotion",children:s.map(function(b){return(0,e.createComponentVNode)(2,t.Button,{content:b.name,selected:b.id===u,onClick:function(){function B(){return k("setEmotion",{emotion:b.id})}return B}()},b.id)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Select Speaking State",children:C.map(function(b){return(0,e.createComponentVNode)(2,t.Button,{content:b.name,selected:b.name===v,onClick:function(){function B(){return k("setSpeechStyle",{speech_state:b.name})}return B}()},b.id)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Select Chassis Type",children:g.map(function(b){return(0,e.createComponentVNode)(2,t.Button,{content:b.name,selected:b.icon===p,onClick:function(){function B(){return k("setChassis",{chassis_to_change:b.icon})}return B}()},b.id)})})]})})}return m}()},37645:function(I,r,n){"use strict";r.__esModule=!0,r.pai_manifest=void 0;var e=n(96524),a=n(17899),t=n(98444),o=r.pai_manifest=function(){function m(V,y){var S=(0,a.useBackend)(y),k=S.act,h=S.data;return(0,e.createComponentVNode)(2,t.CrewManifest,{data:h.app_data})}return m}()},15836:function(I,r,n){"use strict";r.__esModule=!0,r.pai_medrecords=void 0;var e=n(96524),a=n(17899),t=n(77534),o=r.pai_medrecords=function(){function m(V,y){var S=(0,a.useBackend)(y),k=S.data;return(0,e.createComponentVNode)(2,t.SimpleRecords,{data:k.app_data,recordType:"MED"})}return m}()},91737:function(I,r,n){"use strict";r.__esModule=!0,r.pai_messenger=void 0;var e=n(96524),a=n(17899),t=n(30709),o=r.pai_messenger=function(){function m(V,y){var S=(0,a.useBackend)(y),k=S.act,h=S.data,l=h.app_data.active_convo;return l?(0,e.createComponentVNode)(2,t.ActiveConversation,{data:h.app_data}):(0,e.createComponentVNode)(2,t.MessengerList,{data:h.app_data})}return m}()},94077:function(I,r,n){"use strict";r.__esModule=!0,r.pai_radio=void 0;var e=n(96524),a=n(17899),t=n(36121),o=n(24674),m=r.pai_radio=function(){function V(y,S){var k=(0,a.useBackend)(S),h=k.act,l=k.data,c=l.app_data,f=c.minFrequency,d=c.maxFrequency,i=c.frequency,s=c.broadcasting;return(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Frequency",children:[(0,e.createComponentVNode)(2,o.NumberInput,{animate:!0,step:.2,stepPixelSize:6,minValue:f/10,maxValue:d/10,value:i/10,format:function(){function u(C){return(0,t.toFixed)(C,1)}return u}(),onChange:function(){function u(C,v){return h("freq",{freq:v})}return u}()}),(0,e.createComponentVNode)(2,o.Button,{tooltip:"Reset",icon:"undo",onClick:function(){function u(){return h("freq",{freq:"145.9"})}return u}()})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Broadcast Nearby Speech",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function u(){return h("toggleBroadcast")}return u}(),selected:s,content:s?"Enabled":"Disabled"})})]})}return V}()},72621:function(I,r,n){"use strict";r.__esModule=!0,r.pai_secrecords=void 0;var e=n(96524),a=n(17899),t=n(77534),o=r.pai_secrecords=function(){function m(V,y){var S=(0,a.useBackend)(y),k=S.data;return(0,e.createComponentVNode)(2,t.SimpleRecords,{data:k.app_data,recordType:"SEC"})}return m}()},53483:function(I,r,n){"use strict";r.__esModule=!0,r.pai_signaler=void 0;var e=n(96524),a=n(17899),t=n(65435),o=r.pai_signaler=function(){function m(V,y){var S=(0,a.useBackend)(y),k=S.act,h=S.data;return(0,e.createComponentVNode)(2,t.Signaler,{data:h.app_data})}return m}()},21606:function(I,r,n){"use strict";r.__esModule=!0,r.pda_atmos_scan=void 0;var e=n(96524),a=n(17899),t=n(79449),o=r.pda_atmos_scan=function(){function m(V,y){var S=(0,a.useBackend)(y),k=S.data;return(0,e.createComponentVNode)(2,t.AtmosScan,{data:k})}return m}()},12339:function(I,r,n){"use strict";r.__esModule=!0,r.pda_janitor=void 0;var e=n(96524),a=n(17899),t=n(24674),o=r.pda_janitor=function(){function m(V,y){var S=(0,a.useBackend)(y),k=S.act,h=S.data,l=h.janitor,c=l.user_loc,f=l.mops,d=l.buckets,i=l.cleanbots,s=l.carts,u=l.janicarts;return(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Current Location",children:[c.x,",",c.y]}),f&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Mop Locations",children:f.map(function(C){return(0,e.createComponentVNode)(2,t.Box,{children:[C.x,",",C.y," (",C.dir,") - ",C.status]},C)})}),d&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Mop Bucket Locations",children:d.map(function(C){return(0,e.createComponentVNode)(2,t.Box,{children:[C.x,",",C.y," (",C.dir,") - [",C.volume,"/",C.max_volume,"]"]},C)})}),i&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cleanbot Locations",children:i.map(function(C){return(0,e.createComponentVNode)(2,t.Box,{children:[C.x,",",C.y," (",C.dir,") - ",C.status]},C)})}),s&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Janitorial Cart Locations",children:s.map(function(C){return(0,e.createComponentVNode)(2,t.Box,{children:[C.x,",",C.y," (",C.dir,") - [",C.volume,"/",C.max_volume,"]"]},C)})}),u&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Janicart Locations",children:u.map(function(C){return(0,e.createComponentVNode)(2,t.Box,{children:[C.x,",",C.y," (",C.direction_from_user,")"]},C)})})]})}return m}()},36615:function(I,r,n){"use strict";r.__esModule=!0,r.pda_main_menu=void 0;var e=n(96524),a=n(36121),t=n(17899),o=n(24674),m=r.pda_main_menu=function(){function V(y,S){var k=(0,t.useBackend)(S),h=k.act,l=k.data,c=l.owner,f=l.ownjob,d=l.idInserted,i=l.categories,s=l.pai,u=l.notifying;return(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Section,{children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Owner",color:"average",children:[c,", ",f]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"ID",children:(0,e.createComponentVNode)(2,o.Button,{icon:"sync",content:"Update PDA Info",disabled:!d,onClick:function(){function C(){return h("UpdateInfo")}return C}()})})]})})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Section,{title:"Functions",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:i.map(function(C){var v=l.apps[C];return!v||!v.length?null:(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:C,children:v.map(function(g){return(0,e.createComponentVNode)(2,o.Button,{icon:g.uid in u?g.notify_icon:g.icon,iconSpin:g.uid in u,color:g.uid in u?"red":"transparent",content:g.name,onClick:function(){function p(){return h("StartProgram",{program:g.uid})}return p}()},g.uid)})},C)})})})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:!!s&&(0,e.createComponentVNode)(2,o.Section,{title:"pAI",children:[(0,e.createComponentVNode)(2,o.Button,{fluid:!0,icon:"cog",content:"Configuration",onClick:function(){function C(){return h("pai",{option:1})}return C}()}),(0,e.createComponentVNode)(2,o.Button,{fluid:!0,icon:"eject",content:"Eject pAI",onClick:function(){function C(){return h("pai",{option:2})}return C}()})]})})]})}return V}()},99737:function(I,r,n){"use strict";r.__esModule=!0,r.pda_manifest=void 0;var e=n(96524),a=n(17899),t=n(98444),o=r.pda_manifest=function(){function m(V,y){var S=(0,a.useBackend)(y),k=S.act,h=S.data;return(0,e.createComponentVNode)(2,t.CrewManifest)}return m}()},61597:function(I,r,n){"use strict";r.__esModule=!0,r.pda_medical=void 0;var e=n(96524),a=n(17899),t=n(77534),o=r.pda_medical=function(){function m(V,y){var S=(0,a.useBackend)(y),k=S.data;return(0,e.createComponentVNode)(2,t.SimpleRecords,{data:k,recordType:"MED"})}return m}()},30709:function(I,r,n){"use strict";r.__esModule=!0,r.pda_messenger=r.MessengerList=r.ActiveConversation=void 0;var e=n(96524),a=n(50640),t=n(17899),o=n(24674),m=r.pda_messenger=function(){function k(h,l){var c=(0,t.useBackend)(l),f=c.act,d=c.data,i=d.active_convo;return i?(0,e.createComponentVNode)(2,V,{data:d}):(0,e.createComponentVNode)(2,y,{data:d})}return k}(),V=r.ActiveConversation=function(){function k(h,l){var c=(0,t.useBackend)(l),f=c.act,d=h.data,i=d.convo_name,s=d.convo_job,u=d.messages,C=d.active_convo,v=(0,t.useLocalState)(l,"clipboardMode",!1),g=v[0],p=v[1],N=(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"Conversation with "+i+" ("+s+")",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{icon:"eye",selected:g,tooltip:"Enter Clipboard Mode",tooltipPosition:"bottom-start",onClick:function(){function b(){return p(!g)}return b}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"comment",onClick:function(){function b(){return f("Message",{target:C})}return b}(),content:"Reply"})],4),children:(0,a.filter)(function(b){return b.target===C})(u).map(function(b,B){return(0,e.createComponentVNode)(2,o.Box,{textAlign:b.sent?"right":"left",position:"relative",mb:1,children:[(0,e.createComponentVNode)(2,o.Icon,{fontSize:2.5,color:b.sent?"#4d9121":"#cd7a0d",position:"absolute",left:b.sent?null:"0px",right:b.sent?"0px":null,bottom:"-4px",style:{"z-index":"0",transform:b.sent?"scale(-1, 1)":null},name:"comment"}),(0,e.createComponentVNode)(2,o.Box,{inline:!0,backgroundColor:b.sent?"#4d9121":"#cd7a0d",p:1,maxWidth:"100%",position:"relative",textAlign:b.sent?"left":"right",style:{"z-index":"1","border-radius":"10px","word-break":"normal"},children:[b.sent?"You:":"Them:"," ",b.message]})]},B)})});return g&&(N=(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"Conversation with "+i+" ("+s+")",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{icon:"eye",selected:g,tooltip:"Exit Clipboard Mode",tooltipPosition:"bottom-start",onClick:function(){function b(){return p(!g)}return b}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"comment",onClick:function(){function b(){return f("Message",{target:C})}return b}(),content:"Reply"})],4),children:(0,a.filter)(function(b){return b.target===C})(u).map(function(b,B){return(0,e.createComponentVNode)(2,o.Box,{color:b.sent?"#4d9121":"#cd7a0d",style:{"word-break":"normal"},children:[b.sent?"You:":"Them:"," ",(0,e.createComponentVNode)(2,o.Box,{inline:!0,children:b.message})]},B)})})),(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{mb:.5,children:(0,e.createComponentVNode)(2,o.LabeledList,{children:(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Messenger Functions",children:(0,e.createComponentVNode)(2,o.Button.Confirm,{content:"Delete Conversations",confirmContent:"Are you sure?",icon:"trash",confirmIcon:"trash",onClick:function(){function b(){return f("Clear",{option:"Convo"})}return b}()})})})}),N]})}return k}(),y=r.MessengerList=function(){function k(h,l){var c=(0,t.useBackend)(l),f=c.act,d=h.data,i=d.convopdas,s=d.pdas,u=d.charges,C=d.silent,v=d.toff,g=d.ringtone_list,p=d.ringtone,N=(0,t.useLocalState)(l,"searchTerm",""),b=N[0],B=N[1];return(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{mb:5,children:[(0,e.createComponentVNode)(2,o.LabeledList,{children:(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Messenger Functions",children:[(0,e.createComponentVNode)(2,o.Button,{selected:!C,icon:C?"volume-mute":"volume-up",onClick:function(){function L(){return f("Toggle Ringer")}return L}(),children:["Ringer: ",C?"Off":"On"]}),(0,e.createComponentVNode)(2,o.Button,{color:v?"bad":"green",icon:"power-off",onClick:function(){function L(){return f("Toggle Messenger")}return L}(),children:["Messenger: ",v?"Off":"On"]}),(0,e.createComponentVNode)(2,o.Button,{icon:"trash",color:"bad",onClick:function(){function L(){return f("Clear",{option:"All"})}return L}(),children:"Delete All Conversations"}),(0,e.createComponentVNode)(2,o.Button,{icon:"bell",onClick:function(){function L(){return f("Ringtone")}return L}(),children:"Set Custom Ringtone"}),(0,e.createComponentVNode)(2,o.Button,{children:(0,e.createComponentVNode)(2,o.Dropdown,{selected:p,width:"100px",options:Object.keys(g),onSelected:function(){function L(w){return f("Available_Ringtones",{selected_ringtone:w})}return L}()})})]})}),!v&&(0,e.createComponentVNode)(2,o.Box,{children:[!!u&&(0,e.createComponentVNode)(2,o.Box,{mt:.5,mb:1,children:(0,e.createComponentVNode)(2,o.LabeledList,{children:(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Cartridge Special Function",children:[u," charges left."]})})}),!i.length&&!s.length&&(0,e.createComponentVNode)(2,o.Box,{children:"No current conversations"})||(0,e.createComponentVNode)(2,o.Box,{children:["Search:"," ",(0,e.createComponentVNode)(2,o.Input,{mt:.5,value:b,onInput:function(){function L(w,T){B(T)}return L}()})]})]})||(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"Messenger Offline."})]}),(0,e.createComponentVNode)(2,S,{title:"Current Conversations",data:d,pdas:i,msgAct:"Select Conversation",searchTerm:b}),(0,e.createComponentVNode)(2,S,{title:"Other PDAs",pdas:s,msgAct:"Message",data:d,searchTerm:b})]})}return k}(),S=function(h,l){var c=(0,t.useBackend)(l),f=c.act,d=h.data,i=h.pdas,s=h.title,u=h.msgAct,C=h.searchTerm,v=d.charges,g=d.plugins;return!i||!i.length?(0,e.createComponentVNode)(2,o.Section,{title:s,children:"No PDAs found."}):(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:s,children:i.filter(function(p){return p.Name.toLowerCase().includes(C.toLowerCase())}).map(function(p){return(0,e.createComponentVNode)(2,o.Stack,{m:.5,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,icon:"arrow-circle-down",content:p.Name,onClick:function(){function N(){return f(u,{target:p.uid})}return N}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:!!v&&g.map(function(N){return(0,e.createComponentVNode)(2,o.Button,{icon:N.icon,content:N.name,onClick:function(){function b(){return f("Messenger Plugin",{plugin:N.uid,target:p.uid})}return b}()},N.uid)})})]},p.uid)})})}},71654:function(I,r,n){"use strict";r.__esModule=!0,r.pda_mob_hunt=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(17442),m=r.pda_mob_hunt=function(){function V(y,S){var k=(0,a.useBackend)(S),h=k.act,l=k.data,c=l.connected,f=l.wild_captures,d=l.no_collection,i=l.entry;return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Connection Status",children:c?(0,e.createComponentVNode)(2,t.Box,{color:"green",children:["Connected",(0,e.createComponentVNode)(2,t.Button,{ml:2,content:"Disconnect",icon:"sign-out-alt",onClick:function(){function s(){return h("Disconnect")}return s}()})]}):(0,e.createComponentVNode)(2,t.Box,{color:"red",children:["Disconnected",(0,e.createComponentVNode)(2,t.Button,{ml:2,content:"Connect",icon:"sign-in-alt",onClick:function(){function s(){return h("Reconnect")}return s}()})]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Total Wild Captures",children:f})]}),(0,e.createComponentVNode)(2,t.Section,{title:"Collection",mt:2,buttons:(0,e.createComponentVNode)(2,t.Box,{children:!d&&(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Button,{content:"Previous",icon:"arrow-left",onClick:function(){function s(){return h("Prev")}return s}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Next",icon:"arrow-right",onClick:function(){function s(){return h("Next")}return s}()})]})}),children:d?"Your collection is empty! Go capture some Nano-Mobs!":i?(0,e.createComponentVNode)(2,t.Flex,{children:[(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createVNode)(1,"img",null,null,1,{src:(0,o.resolveAsset)(i.sprite),style:{width:"64px","-ms-interpolation-mode":"nearest-neighbor"}})}),(0,e.createComponentVNode)(2,t.Flex.Item,{grow:1,basis:0,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[i.nickname&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Nickname",children:i.nickname}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Species",children:i.real_name}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Level",children:i.level}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Primary Type",children:i.type1}),i.type2&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Secondary Type",children:i.type2}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Actions",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Transfer",icon:"sd-card",onClick:function(){function s(){return h("Transfer")}return s}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Release",icon:"arrow-up",onClick:function(){function s(){return h("Release")}return s}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Rename",icon:"pencil-alt",onClick:function(){function s(){return h("Rename")}return s}()}),!!i.is_hacked&&(0,e.createComponentVNode)(2,t.Button,{content:"Set Trap",icon:"bolt",color:"red",onClick:function(){function s(){return h("Set_Trap")}return s}()})]})]})})]}):(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Mob entry missing!"})})]})}return V}()},68053:function(I,r,n){"use strict";r.__esModule=!0,r.pda_mule=void 0;var e=n(96524),a=n(17899),t=n(24674),o=r.pda_mule=function(){function y(S,k){var h=(0,a.useBackend)(k),l=h.act,c=h.data,f=c.mulebot,d=f.active;return(0,e.createComponentVNode)(2,t.Box,{children:d?(0,e.createComponentVNode)(2,V):(0,e.createComponentVNode)(2,m)})}return y}(),m=function(S,k){var h=(0,a.useBackend)(k),l=h.act,c=h.data,f=c.mulebot,d=f.bots;return d.map(function(i){return(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:i.Name,icon:"cog",onClick:function(){function s(){return l("control",{bot:i.uid})}return s}()})},i.Name)})},V=function(S,k){var h=(0,a.useBackend)(k),l=h.act,c=h.data,f=c.mulebot,d=f.botstatus,i=f.active,s=d.mode,u=d.loca,C=d.load,v=d.powr,g=d.dest,p=d.home,N=d.retn,b=d.pick,B;switch(s){case 0:B="Ready";break;case 1:B="Loading/Unloading";break;case 2:case 12:B="Navigating to delivery location";break;case 3:B="Navigating to Home";break;case 4:B="Waiting for clear path";break;case 5:case 6:B="Calculating navigation path";break;case 7:B="Unable to locate destination";break;default:B=s;break}return(0,e.createComponentVNode)(2,t.Section,{title:i,children:[s===-1&&(0,e.createComponentVNode)(2,t.Box,{color:"red",bold:!0,children:"Waiting for response..."}),(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Location",children:u}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:B}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power",children:[v,"%"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Home",children:p}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Destination",children:(0,e.createComponentVNode)(2,t.Button,{content:g?g+" (Set)":"None (Set)",onClick:function(){function L(){return l("target")}return L}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Current Load",children:(0,e.createComponentVNode)(2,t.Button,{content:C?C+" (Unload)":"None",disabled:!C,onClick:function(){function L(){return l("unload")}return L}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Auto Pickup",children:(0,e.createComponentVNode)(2,t.Button,{content:b?"Yes":"No",selected:b,onClick:function(){function L(){return l("set_pickup_type",{autopick:b?0:1})}return L}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Auto Return",children:(0,e.createComponentVNode)(2,t.Button,{content:N?"Yes":"No",selected:N,onClick:function(){function L(){return l("set_auto_return",{autoret:N?0:1})}return L}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Controls",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Stop",icon:"stop",onClick:function(){function L(){return l("stop")}return L}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Proceed",icon:"play",onClick:function(){function L(){return l("start")}return L}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Return Home",icon:"home",onClick:function(){function L(){return l("home")}return L}()})]})]})]})}},31728:function(I,r,n){"use strict";r.__esModule=!0,r.pda_nanobank=void 0;var e=n(96524),a=n(78234),t=n(17899),o=n(24674),m=r.pda_nanobank=function(){function c(f,d){var i=(0,t.useBackend)(d),s=i.act,u=i.data,C=u.logged_in,v=u.owner_name,g=u.money;return C?(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Box,{children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Account Name",children:v}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Account Balance",children:["$",g]})]})}),(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,V),(0,e.createComponentVNode)(2,y)]})],4):(0,e.createComponentVNode)(2,l)}return c}(),V=function(f,d){var i=(0,t.useBackend)(d),s=i.data,u=(0,t.useLocalState)(d,"tabIndex",1),C=u[0],v=u[1];return(0,e.createComponentVNode)(2,o.Tabs,{mt:2,children:[(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:C===1,onClick:function(){function g(){return v(1)}return g}(),children:[(0,e.createComponentVNode)(2,o.Icon,{mr:1,name:"list"}),"Transfers"]}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:C===2,onClick:function(){function g(){return v(2)}return g}(),children:[(0,e.createComponentVNode)(2,o.Icon,{mr:1,name:"list"}),"Account Actions"]}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:C===3,onClick:function(){function g(){return v(3)}return g}(),children:[(0,e.createComponentVNode)(2,o.Icon,{mr:1,name:"list"}),"Transaction History"]})]})},y=function(f,d){var i=(0,t.useLocalState)(d,"tabIndex",1),s=i[0],u=(0,t.useBackend)(d),C=u.data,v=C.db_status;if(!v)return(0,e.createComponentVNode)(2,o.Box,{children:"Account Database Connection Severed"});switch(s){case 1:return(0,e.createComponentVNode)(2,S);case 2:return(0,e.createComponentVNode)(2,k);case 3:return(0,e.createComponentVNode)(2,h);default:return"You are somehow on a tab that doesn't exist! Please let a coder know."}},S=function(f,d){var i,s=(0,t.useBackend)(d),u=s.act,C=s.data,v=C.requests,g=C.available_accounts,p=C.money,N=(0,t.useLocalState)(d,"selectedAccount"),b=N[0],B=N[1],L=(0,t.useLocalState)(d,"transferAmount"),w=L[0],T=L[1],x=(0,t.useLocalState)(d,"searchText",""),A=x[0],E=x[1],M=[];return g.map(function(D){return M[D.name]=D.UID}),(0,e.createFragment)([(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Account",children:[(0,e.createComponentVNode)(2,o.Input,{placeholder:"Search by account name",onInput:function(){function D(P,R){return E(R)}return D}()}),(0,e.createComponentVNode)(2,o.Dropdown,{mt:.6,width:"190px",options:g.filter((0,a.createSearch)(A,function(D){return D.name})).map(function(D){return D.name}),selected:(i=g.filter(function(D){return D.UID===b})[0])==null?void 0:i.name,onSelected:function(){function D(P){return B(M[P])}return D}()})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Amount",children:(0,e.createComponentVNode)(2,o.Input,{placeholder:"Up to 5000",onInput:function(){function D(P,R){return T(R)}return D}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Actions",children:[(0,e.createComponentVNode)(2,o.Button.Confirm,{bold:!0,icon:"paper-plane",width:"auto",disabled:p0&&u.map(function(v){return(0,e.createComponentVNode)(2,t.Box,{children:["#",v.Number,' - "',v.Name,'" for "',v.OrderedBy,'"']},v)})}),(0,e.createComponentVNode)(2,t.Section,{title:"Approved Orders",children:s>0&&i.map(function(v){return(0,e.createComponentVNode)(2,t.Box,{children:["#",v.Number,' - "',v.Name,'" for "',v.ApprovedBy,'"']},v)})})]})}return m}()},61255:function(I,r,n){"use strict";r.__esModule=!0,r.Layout=void 0;var e=n(96524),a=n(28234),t=n(3051),o=n(92700),m=["className","theme","children"],V=["className","scrollable","children"];/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */function y(p,l){if(p==null)return{};var c={},f=Object.keys(p),u,i;for(i=0;i=0)&&(c[u]=p[u]);return c}var S=r.Layout=function(){function p(l){var c=l.className,f=l.theme,u=f===void 0?"nanotrasen":f,i=l.children,s=y(l,m);return(0,e.createVNode)(1,"div","theme-"+u,(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,a.classes)(["Layout",c].concat((0,t.computeBoxClassName)(s))),i,0,Object.assign({},(0,t.computeBoxProps)(s)))),2)}return p}(),k=function(l){var c=l.className,f=l.scrollable,u=l.children,i=y(l,N);return(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,a.classes)(["Layout__content",f&&"Layout__content--scrollable",c,(0,t.computeBoxClassName)(i)]),u,0,Object.assign({},(0,t.computeBoxProps)(i))))};k.defaultHooks={onComponentDidMount:function(){function p(l){return(0,o.addScrollableNode)(l)}return p}(),onComponentWillUnmount:function(){function p(l){return(0,o.removeScrollableNode)(l)}return p}()},S.Content=k},12599:function(L,r,n){"use strict";r.__esModule=!0,r.Pane=void 0;var e=n(96524),a=n(28234),t=n(17899),o=n(24674),m=n(90781),N=n(61255),y=["theme","children","className"],S=["className","fitted","children"];/** + */function y(h,l){if(h==null)return{};var c={},f=Object.keys(h),d,i;for(i=0;i=0)&&(c[d]=h[d]);return c}var S=r.Layout=function(){function h(l){var c=l.className,f=l.theme,d=f===void 0?"nanotrasen":f,i=l.children,s=y(l,m);return(0,e.createVNode)(1,"div","theme-"+d,(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,a.classes)(["Layout",c].concat((0,t.computeBoxClassName)(s))),i,0,Object.assign({},(0,t.computeBoxProps)(s)))),2)}return h}(),k=function(l){var c=l.className,f=l.scrollable,d=l.children,i=y(l,V);return(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,a.classes)(["Layout__content",f&&"Layout__content--scrollable",c,(0,t.computeBoxClassName)(i)]),d,0,Object.assign({},(0,t.computeBoxProps)(i))))};k.defaultHooks={onComponentDidMount:function(){function h(l){return(0,o.addScrollableNode)(l)}return h}(),onComponentWillUnmount:function(){function h(l){return(0,o.removeScrollableNode)(l)}return h}()},S.Content=k},12599:function(I,r,n){"use strict";r.__esModule=!0,r.Pane=void 0;var e=n(96524),a=n(28234),t=n(17899),o=n(24674),m=n(90781),V=n(61255),y=["theme","children","className"],S=["className","fitted","children"];/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */function k(c,f){if(c==null)return{};var u={},i=Object.keys(c),s,d;for(d=0;d=0)&&(u[s]=c[s]);return u}var p=r.Pane=function(){function c(f,u){var i=f.theme,s=f.children,d=f.className,h=k(f,y),v=(0,t.useBackend)(u),g=v.suspended,C=(0,m.useDebug)(u),V=C.debugLayout;return(0,e.normalizeProps)((0,e.createComponentVNode)(2,N.Layout,Object.assign({className:(0,a.classes)(["Window",d]),theme:i},h,{children:(0,e.createComponentVNode)(2,o.Box,{fillPositionedParent:!0,className:V&&"debug-layout",children:!g&&s})})))}return c}(),l=function(f){var u=f.className,i=f.fitted,s=f.children,d=k(f,S);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,N.Layout.Content,Object.assign({className:(0,a.classes)(["Window__content",u])},d,{children:i&&s||(0,e.createVNode)(1,"div","Window__contentPadding",s,0)})))};p.Content=l},28861:function(L,r,n){"use strict";r.__esModule=!0,r.Window=void 0;var e=n(96524),a=n(28234),t=n(88605),o=n(78234),m=n(17899),N=n(24674),y=n(38424),S=n(90781),k=n(82574),p=n(83987),l=n(81856),c=n(61255),f=["className","fitted","children"];function u(b,B){if(b==null)return{};var I={},w=Object.keys(b),T,A;for(A=0;A=0)&&(I[T]=b[T]);return I}function i(b,B){b.prototype=Object.create(B.prototype),b.prototype.constructor=b,s(b,B)}function s(b,B){return s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function I(w,T){return w.__proto__=T,w}return I}(),s(b,B)}/** + */function k(c,f){if(c==null)return{};var d={},i=Object.keys(c),s,u;for(u=0;u=0)&&(d[s]=c[s]);return d}var h=r.Pane=function(){function c(f,d){var i=f.theme,s=f.children,u=f.className,C=k(f,y),v=(0,t.useBackend)(d),g=v.suspended,p=(0,m.useDebug)(d),N=p.debugLayout;return(0,e.normalizeProps)((0,e.createComponentVNode)(2,V.Layout,Object.assign({className:(0,a.classes)(["Window",u]),theme:i},C,{children:(0,e.createComponentVNode)(2,o.Box,{fillPositionedParent:!0,className:N&&"debug-layout",children:!g&&s})})))}return c}(),l=function(f){var d=f.className,i=f.fitted,s=f.children,u=k(f,S);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,V.Layout.Content,Object.assign({className:(0,a.classes)(["Window__content",d])},u,{children:i&&s||(0,e.createVNode)(1,"div","Window__contentPadding",s,0)})))};h.Content=l},28861:function(I,r,n){"use strict";r.__esModule=!0,r.Window=void 0;var e=n(96524),a=n(28234),t=n(88605),o=n(78234),m=n(17899),V=n(24674),y=n(38424),S=n(90781),k=n(82574),h=n(83987),l=n(81856),c=n(61255),f=["className","fitted","children"];function d(b,B){if(b==null)return{};var L={},w=Object.keys(b),T,x;for(x=0;x=0)&&(L[T]=b[T]);return L}function i(b,B){b.prototype=Object.create(B.prototype),b.prototype.constructor=b,s(b,B)}function s(b,B){return s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function L(w,T){return w.__proto__=T,w}return L}(),s(b,B)}/** * @file * @copyright 2020 Aleksej Komarov * @license MIT -*/var d=(0,l.createLogger)("Window"),h=[400,600],v=r.Window=function(b){function B(){return b.apply(this,arguments)||this}i(B,b);var I=B.prototype;return I.componentDidMount=function(){function w(){var T=(0,m.useBackend)(this.context),A=T.suspended;A||(d.log("mounting"),this.updateGeometry())}return w}(),I.componentDidUpdate=function(){function w(T){var A=this.props.width!==T.width||this.props.height!==T.height;A&&this.updateGeometry()}return w}(),I.updateGeometry=function(){function w(){var T,A=(0,m.useBackend)(this.context),x=A.config,E=Object.assign({size:h},x.window);this.props.width&&this.props.height&&(E.size=[this.props.width,this.props.height]),(T=x.window)!=null&&T.key&&(0,p.setWindowKey)(x.window.key),(0,p.recallWindowGeometry)(E)}return w}(),I.render=function(){function w(){var T,A=this.props,x=A.theme,E=A.title,M=A.children,j=(0,m.useBackend)(this.context),P=j.config,R=j.suspended,D=(0,S.useDebug)(this.context),F=D.debugLayout,W=(0,t.useDispatch)(this.context),_=(T=P.window)==null?void 0:T.fancy,H=P.user&&(P.user.observer?P.status2?f-2:0),i=2;i=o){var s=[c].concat(u).map(function(d){return typeof d=="string"?d:d instanceof Error?d.stack||String(d):JSON.stringify(d)}).filter(function(d){return d}).join(" ")+"\nUser Agent: "+navigator.userAgent;Byond.sendMessage({type:"log",message:s})}},S=r.createLogger=function(){function p(l){return{debug:function(){function c(){for(var f=arguments.length,u=new Array(f),i=0;i2?f-2:0),i=2;i=o){var s=[c].concat(d).map(function(u){return typeof u=="string"?u:u instanceof Error?u.stack||String(u):JSON.stringify(u)}).filter(function(u){return u}).join(" ")+"\nUser Agent: "+navigator.userAgent;Byond.sendMessage({type:"log",message:s})}},S=r.createLogger=function(){function h(l){return{debug:function(){function c(){for(var f=arguments.length,d=new Array(f),i=0;i0;){var C=v.shift(),V=C(h);try{g=N(V)}catch(B){if(B.code!=="MODULE_NOT_FOUND")throw B}}if(!g)return y("notFound",h);var b=g[h];return b||y("missingExport",h)}return l}()},98008:function(L,r,n){"use strict";r.__esModule=!0,r.configureStore=r.StoreProvider=void 0;var e=n(74041),a=n(88605),t=n(96524),o=n(17442),m=n(17899),N=n(90781),y=n(81856);function S(i,s){i.prototype=Object.create(s.prototype),i.prototype.constructor=i,k(i,s)}function k(i,s){return k=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function d(h,v){return h.__proto__=v,h}return d}(),k(i,s)}/** + */var V=n(32054),y=function(c,f){return function(){return(0,e.createComponentVNode)(2,m.Window,{children:(0,e.createComponentVNode)(2,m.Window.Content,{scrollable:!0,children:[c==="notFound"&&(0,e.createVNode)(1,"div",null,[(0,e.createTextVNode)("Interface "),(0,e.createVNode)(1,"b",null,f,0),(0,e.createTextVNode)(" was not found.")],4),c==="missingExport"&&(0,e.createVNode)(1,"div",null,[(0,e.createTextVNode)("Interface "),(0,e.createVNode)(1,"b",null,f,0),(0,e.createTextVNode)(" is missing an export.")],4)]})})}},S=function(){return(0,e.createComponentVNode)(2,m.Window,{children:(0,e.createComponentVNode)(2,m.Window.Content,{scrollable:!0})})},k=function(){return(0,e.createComponentVNode)(2,m.Window,{height:130,title:"Loading",width:150,children:(0,e.createComponentVNode)(2,m.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{align:"center",fill:!0,justify:"center",vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Icon,{color:"blue",name:"toolbox",spin:!0,size:4})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:"Please wait..."})]})})})},h=r.getRoutedComponent=function(){function l(c){var f=c.getState(),d=(0,a.selectBackend)(f),i=d.suspended,s=d.config;if(i)return S;if(s.refreshing)return k;if(0)var u;for(var C=s==null?void 0:s.interface,v=[function(B){return"./"+B+".tsx"},function(B){return"./"+B+".js"},function(B){return"./"+B+"/index.tsx"},function(B){return"./"+B+"/index.js"}],g;!g&&v.length>0;){var p=v.shift(),N=p(C);try{g=V(N)}catch(B){if(B.code!=="MODULE_NOT_FOUND")throw B}}if(!g)return y("notFound",C);var b=g[C];return b||y("missingExport",C)}return l}()},98008:function(I,r,n){"use strict";r.__esModule=!0,r.configureStore=r.StoreProvider=void 0;var e=n(74041),a=n(88605),t=n(96524),o=n(17442),m=n(17899),V=n(90781),y=n(81856);function S(i,s){i.prototype=Object.create(s.prototype),i.prototype.constructor=i,k(i,s)}function k(i,s){return k=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function u(C,v){return C.__proto__=v,C}return u}(),k(i,s)}/** * @file * @copyright 2020 Aleksej Komarov * @license MIT -*/var p=(0,y.createLogger)("store"),l=r.configureStore=function(){function i(s){var d,h;s===void 0&&(s={});var v=s,g=v.sideEffects,C=g===void 0?!0:g,V=(0,e.flow)([(0,a.combineReducers)({debug:N.debugReducer,backend:m.backendReducer}),s.reducer]),b=C?[].concat(((d=s.middleware)==null?void 0:d.pre)||[],[o.assetMiddleware,m.backendMiddleware],((h=s.middleware)==null?void 0:h.post)||[]):[],B=a.applyMiddleware.apply(void 0,b),I=(0,a.createStore)(V,B);return window.__store__=I,window.__augmentStack__=f(I),I}return i}(),c=function(s){return function(d){return function(h){var v=h.type,g=h.payload;return v==="update"||v==="backend/update"?p.debug("action",{type:v}):p.debug("action",h),d(h)}}},f=function(s){return function(d,h){var v,g;h?typeof h=="object"&&!h.stack&&(h.stack=d):(h=new Error(d.split("\n")[0]),h.stack=d),p.log("FatalError:",h);var C=s.getState(),V=C==null||(v=C.backend)==null?void 0:v.config,b=d;return b+="\nUser Agent: "+navigator.userAgent,b+="\nState: "+JSON.stringify({ckey:V==null||(g=V.client)==null?void 0:g.ckey,interface:V==null?void 0:V.interface,window:V==null?void 0:V.window}),b}},u=r.StoreProvider=function(i){function s(){return i.apply(this,arguments)||this}S(s,i);var d=s.prototype;return d.getChildContext=function(){function h(){var v=this.props.store;return{store:v}}return h}(),d.render=function(){function h(){return this.props.children}return h}(),s}(t.Component)},61498:function(L,r,n){"use strict";r.__esModule=!0,r.meta=void 0;var e=n(96524),a=n(24674);/** +*/var h=(0,y.createLogger)("store"),l=r.configureStore=function(){function i(s){var u,C;s===void 0&&(s={});var v=s,g=v.sideEffects,p=g===void 0?!0:g,N=(0,e.flow)([(0,a.combineReducers)({debug:V.debugReducer,backend:m.backendReducer}),s.reducer]),b=p?[].concat(((u=s.middleware)==null?void 0:u.pre)||[],[o.assetMiddleware,m.backendMiddleware],((C=s.middleware)==null?void 0:C.post)||[]):[],B=a.applyMiddleware.apply(void 0,b),L=(0,a.createStore)(N,B);return window.__store__=L,window.__augmentStack__=f(L),L}return i}(),c=function(s){return function(u){return function(C){var v=C.type,g=C.payload;return v==="update"||v==="backend/update"?h.debug("action",{type:v}):h.debug("action",C),u(C)}}},f=function(s){return function(u,C){var v,g;C?typeof C=="object"&&!C.stack&&(C.stack=u):(C=new Error(u.split("\n")[0]),C.stack=u),h.log("FatalError:",C);var p=s.getState(),N=p==null||(v=p.backend)==null?void 0:v.config,b=u;return b+="\nUser Agent: "+navigator.userAgent,b+="\nState: "+JSON.stringify({ckey:N==null||(g=N.client)==null?void 0:g.ckey,interface:N==null?void 0:N.interface,window:N==null?void 0:N.window}),b}},d=r.StoreProvider=function(i){function s(){return i.apply(this,arguments)||this}S(s,i);var u=s.prototype;return u.getChildContext=function(){function C(){var v=this.props.store;return{store:v}}return C}(),u.render=function(){function C(){return this.props.children}return C}(),s}(t.Component)},61498:function(I,r,n){"use strict";r.__esModule=!0,r.meta=void 0;var e=n(96524),a=n(24674);/** * @file * @copyright 2021 Aleksej Komarov * @license MIT - */var t=r.meta={title:"Blink",render:function(){function m(){return(0,e.createComponentVNode)(2,o)}return m}()},o=function(N,y){return(0,e.createComponentVNode)(2,a.Section,{children:(0,e.createComponentVNode)(2,a.Blink,{children:"Blink"})})}},27431:function(L,r,n){"use strict";r.__esModule=!0,r.meta=void 0;var e=n(96524),a=n(24674),t=n(17306);/** + */var t=r.meta={title:"Blink",render:function(){function m(){return(0,e.createComponentVNode)(2,o)}return m}()},o=function(V,y){return(0,e.createComponentVNode)(2,a.Section,{children:(0,e.createComponentVNode)(2,a.Blink,{children:"Blink"})})}},27431:function(I,r,n){"use strict";r.__esModule=!0,r.meta=void 0;var e=n(96524),a=n(24674),t=n(17306);/** * @file * @copyright 2021 Aleksej Komarov * @license MIT - */var o=r.meta={title:"BlockQuote",render:function(){function N(){return(0,e.createComponentVNode)(2,m)}return N}()},m=function(y,S){return(0,e.createComponentVNode)(2,a.Section,{children:(0,e.createComponentVNode)(2,a.BlockQuote,{children:(0,e.createComponentVNode)(2,t.BoxWithSampleText)})})}},6517:function(L,r,n){"use strict";r.__esModule=!0,r.meta=void 0;var e=n(96524),a=n(24674);/** + */var o=r.meta={title:"BlockQuote",render:function(){function V(){return(0,e.createComponentVNode)(2,m)}return V}()},m=function(y,S){return(0,e.createComponentVNode)(2,a.Section,{children:(0,e.createComponentVNode)(2,a.BlockQuote,{children:(0,e.createComponentVNode)(2,t.BoxWithSampleText)})})}},6517:function(I,r,n){"use strict";r.__esModule=!0,r.meta=void 0;var e=n(96524),a=n(24674);/** * @file * @copyright 2021 Aleksej Komarov * @license MIT - */var t=r.meta={title:"Box",render:function(){function m(){return(0,e.createComponentVNode)(2,o)}return m}()},o=function(N,y){return(0,e.createComponentVNode)(2,a.Section,{children:[(0,e.createComponentVNode)(2,a.Box,{bold:!0,children:"bold"}),(0,e.createComponentVNode)(2,a.Box,{italic:!0,children:"italic"}),(0,e.createComponentVNode)(2,a.Box,{opacity:.5,children:"opacity 0.5"}),(0,e.createComponentVNode)(2,a.Box,{opacity:.25,children:"opacity 0.25"}),(0,e.createComponentVNode)(2,a.Box,{m:2,children:"m: 2"}),(0,e.createComponentVNode)(2,a.Box,{textAlign:"left",children:"left"}),(0,e.createComponentVNode)(2,a.Box,{textAlign:"center",children:"center"}),(0,e.createComponentVNode)(2,a.Box,{textAlign:"right",children:"right"})]})}},20648:function(L,r,n){"use strict";r.__esModule=!0,r.meta=void 0;var e=n(96524),a=n(24674);/** + */var t=r.meta={title:"Box",render:function(){function m(){return(0,e.createComponentVNode)(2,o)}return m}()},o=function(V,y){return(0,e.createComponentVNode)(2,a.Section,{children:[(0,e.createComponentVNode)(2,a.Box,{bold:!0,children:"bold"}),(0,e.createComponentVNode)(2,a.Box,{italic:!0,children:"italic"}),(0,e.createComponentVNode)(2,a.Box,{opacity:.5,children:"opacity 0.5"}),(0,e.createComponentVNode)(2,a.Box,{opacity:.25,children:"opacity 0.25"}),(0,e.createComponentVNode)(2,a.Box,{m:2,children:"m: 2"}),(0,e.createComponentVNode)(2,a.Box,{textAlign:"left",children:"left"}),(0,e.createComponentVNode)(2,a.Box,{textAlign:"center",children:"center"}),(0,e.createComponentVNode)(2,a.Box,{textAlign:"right",children:"right"})]})}},20648:function(I,r,n){"use strict";r.__esModule=!0,r.meta=void 0;var e=n(96524),a=n(24674);/** * @file * @copyright 2021 Aleksej Komarov * @license MIT - */var t=r.meta={title:"Button",render:function(){function y(){return(0,e.createComponentVNode)(2,N)}return y}()},o=["red","orange","yellow","olive","green","teal","blue","violet","purple","pink","brown","grey"],m=["good","average","bad","black","white"],N=function(S,k){return(0,e.createComponentVNode)(2,a.Section,{children:[(0,e.createComponentVNode)(2,a.Box,{mb:1,children:[(0,e.createComponentVNode)(2,a.Button,{content:"Simple"}),(0,e.createComponentVNode)(2,a.Button,{selected:!0,content:"Selected"}),(0,e.createComponentVNode)(2,a.Button,{altSelected:!0,content:"Alt Selected"}),(0,e.createComponentVNode)(2,a.Button,{disabled:!0,content:"Disabled"}),(0,e.createComponentVNode)(2,a.Button,{color:"transparent",content:"Transparent"}),(0,e.createComponentVNode)(2,a.Button,{icon:"cog",content:"Icon"}),(0,e.createComponentVNode)(2,a.Button,{icon:"power-off"}),(0,e.createComponentVNode)(2,a.Button,{fluid:!0,content:"Fluid"}),(0,e.createComponentVNode)(2,a.Button,{my:1,lineHeight:2,minWidth:15,textAlign:"center",content:"With Box props"}),(0,e.createComponentVNode)(2,a.Button,{my:1,lineHeight:2,minWidth:15,color:"translucent",textAlign:"center",content:"Translucent"})]}),(0,e.createComponentVNode)(2,a.Box,{mb:1,children:[m.map(function(p){return(0,e.createComponentVNode)(2,a.Button,{color:p,content:p},p)}),(0,e.createVNode)(1,"br"),o.map(function(p){return(0,e.createComponentVNode)(2,a.Button,{color:p,content:p},p)}),(0,e.createVNode)(1,"br"),o.map(function(p){return(0,e.createComponentVNode)(2,a.Box,{inline:!0,mx:"7px",color:p,children:p},p)})]})]})}},14906:function(L,r,n){"use strict";r.__esModule=!0,r.meta=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(81856);/** + */var t=r.meta={title:"Button",render:function(){function y(){return(0,e.createComponentVNode)(2,V)}return y}()},o=["red","orange","yellow","olive","green","teal","blue","violet","purple","pink","brown","grey"],m=["good","average","bad","black","white"],V=function(S,k){return(0,e.createComponentVNode)(2,a.Section,{children:[(0,e.createComponentVNode)(2,a.Box,{mb:1,children:[(0,e.createComponentVNode)(2,a.Button,{content:"Simple"}),(0,e.createComponentVNode)(2,a.Button,{selected:!0,content:"Selected"}),(0,e.createComponentVNode)(2,a.Button,{altSelected:!0,content:"Alt Selected"}),(0,e.createComponentVNode)(2,a.Button,{disabled:!0,content:"Disabled"}),(0,e.createComponentVNode)(2,a.Button,{color:"transparent",content:"Transparent"}),(0,e.createComponentVNode)(2,a.Button,{icon:"cog",content:"Icon"}),(0,e.createComponentVNode)(2,a.Button,{icon:"power-off"}),(0,e.createComponentVNode)(2,a.Button,{fluid:!0,content:"Fluid"}),(0,e.createComponentVNode)(2,a.Button,{my:1,lineHeight:2,minWidth:15,textAlign:"center",content:"With Box props"}),(0,e.createComponentVNode)(2,a.Button,{my:1,lineHeight:2,minWidth:15,color:"translucent",textAlign:"center",content:"Translucent"})]}),(0,e.createComponentVNode)(2,a.Box,{mb:1,children:[m.map(function(h){return(0,e.createComponentVNode)(2,a.Button,{color:h,content:h},h)}),(0,e.createVNode)(1,"br"),o.map(function(h){return(0,e.createComponentVNode)(2,a.Button,{color:h,content:h},h)}),(0,e.createVNode)(1,"br"),o.map(function(h){return(0,e.createComponentVNode)(2,a.Box,{inline:!0,mx:"7px",color:h,children:h},h)})]})]})}},14906:function(I,r,n){"use strict";r.__esModule=!0,r.meta=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(81856);/** * @file * @copyright 2021 Aleksej Komarov * @license MIT - */var m=r.meta={title:"ByondUi",render:function(){function y(){return(0,e.createComponentVNode)(2,N)}return y}()},N=function(S,k){var p=(0,a.useLocalState)(k,"byondUiEvalCode","Byond.winset('"+Byond.windowId+"', {\n 'is-visible': true,\n})"),l=p[0],c=p[1];return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{title:"Button",children:(0,e.createComponentVNode)(2,t.ByondUi,{params:{type:"button",text:"Button"}})}),(0,e.createComponentVNode)(2,t.Section,{title:"Make BYOND calls",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"chevron-right",onClick:function(){function f(){return setTimeout(function(){try{var u=new Function("return ("+l+")")();u&&u.then?(o.logger.log("Promise"),u.then(o.logger.log)):o.logger.log(u)}catch(i){o.logger.log(i)}})}return f}(),children:"Evaluate"}),children:(0,e.createComponentVNode)(2,t.Box,{as:"textarea",width:"100%",height:"10em",onChange:function(){function f(u){return c(u.target.value)}return f}(),children:l})})],4)}},59948:function(L,r,n){"use strict";r.__esModule=!0,r.meta=void 0;var e=n(96524),a=n(24674),t=n(17306);/** + */var m=r.meta={title:"ByondUi",render:function(){function y(){return(0,e.createComponentVNode)(2,V)}return y}()},V=function(S,k){var h=(0,a.useLocalState)(k,"byondUiEvalCode","Byond.winset('"+Byond.windowId+"', {\n 'is-visible': true,\n})"),l=h[0],c=h[1];return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{title:"Button",children:(0,e.createComponentVNode)(2,t.ByondUi,{params:{type:"button",text:"Button"}})}),(0,e.createComponentVNode)(2,t.Section,{title:"Make BYOND calls",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"chevron-right",onClick:function(){function f(){return setTimeout(function(){try{var d=new Function("return ("+l+")")();d&&d.then?(o.logger.log("Promise"),d.then(o.logger.log)):o.logger.log(d)}catch(i){o.logger.log(i)}})}return f}(),children:"Evaluate"}),children:(0,e.createComponentVNode)(2,t.Box,{as:"textarea",width:"100%",height:"10em",onChange:function(){function f(d){return c(d.target.value)}return f}(),children:l})})],4)}},59948:function(I,r,n){"use strict";r.__esModule=!0,r.meta=void 0;var e=n(96524),a=n(24674),t=n(17306);/** * @file * @copyright 2021 Aleksej Komarov * @license MIT - */var o=r.meta={title:"Collapsible",render:function(){function N(){return(0,e.createComponentVNode)(2,m)}return N}()},m=function(y,S){return(0,e.createComponentVNode)(2,a.Section,{children:(0,e.createComponentVNode)(2,a.Collapsible,{title:"Collapsible Demo",buttons:(0,e.createComponentVNode)(2,a.Button,{icon:"cog"}),children:(0,e.createComponentVNode)(2,t.BoxWithSampleText)})})}},37227:function(L,r,n){"use strict";r.__esModule=!0,r.meta=void 0;var e=n(96524),a=n(17899),t=n(24674);/** + */var o=r.meta={title:"Collapsible",render:function(){function V(){return(0,e.createComponentVNode)(2,m)}return V}()},m=function(y,S){return(0,e.createComponentVNode)(2,a.Section,{children:(0,e.createComponentVNode)(2,a.Collapsible,{title:"Collapsible Demo",buttons:(0,e.createComponentVNode)(2,a.Button,{icon:"cog"}),children:(0,e.createComponentVNode)(2,t.BoxWithSampleText)})})}},37227:function(I,r,n){"use strict";r.__esModule=!0,r.meta=void 0;var e=n(96524),a=n(17899),t=n(24674);/** * @file * @copyright 2021 Aleksej Komarov * @license MIT - */var o=r.meta={title:"Flex & Sections",render:function(){function N(){return(0,e.createComponentVNode)(2,m)}return N}()},m=function(y,S){var k=(0,a.useLocalState)(S,"fs_grow",1),p=k[0],l=k[1],c=(0,a.useLocalState)(S,"fs_direction","column"),f=c[0],u=c[1],i=(0,a.useLocalState)(S,"fs_fill",!0),s=i[0],d=i[1],h=(0,a.useLocalState)(S,"fs_title",!0),v=h[0],g=h[1];return(0,e.createComponentVNode)(2,t.Flex,{height:"100%",direction:"column",children:[(0,e.createComponentVNode)(2,t.Flex.Item,{mb:1,children:(0,e.createComponentVNode)(2,t.Section,{children:[(0,e.createComponentVNode)(2,t.Button,{fluid:!0,onClick:function(){function C(){return u(f==="column"?"row":"column")}return C}(),children:'Flex direction="'+f+'"'}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,onClick:function(){function C(){return l(+!p)}return C}(),children:"Flex.Item grow={"+p+"}"}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,onClick:function(){function C(){return d(!s)}return C}(),children:"Section fill={"+String(s)+"}"}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,selected:v,onClick:function(){function C(){return g(!v)}return C}(),children:"Section title"})]})}),(0,e.createComponentVNode)(2,t.Flex.Item,{grow:1,children:(0,e.createComponentVNode)(2,t.Flex,{height:"100%",direction:f,children:[(0,e.createComponentVNode)(2,t.Flex.Item,{mr:f==="row"&&1,mb:f==="column"&&1,grow:p,children:(0,e.createComponentVNode)(2,t.Section,{title:v&&"Section 1",fill:s,children:"Content"})}),(0,e.createComponentVNode)(2,t.Flex.Item,{grow:p,children:(0,e.createComponentVNode)(2,t.Section,{title:v&&"Section 2",fill:s,children:"Content"})})]})})]})}},32304:function(L,r,n){"use strict";r.__esModule=!0,r.meta=void 0;var e=n(96524),a=n(17899),t=n(24674);/** + */var o=r.meta={title:"Flex & Sections",render:function(){function V(){return(0,e.createComponentVNode)(2,m)}return V}()},m=function(y,S){var k=(0,a.useLocalState)(S,"fs_grow",1),h=k[0],l=k[1],c=(0,a.useLocalState)(S,"fs_direction","column"),f=c[0],d=c[1],i=(0,a.useLocalState)(S,"fs_fill",!0),s=i[0],u=i[1],C=(0,a.useLocalState)(S,"fs_title",!0),v=C[0],g=C[1];return(0,e.createComponentVNode)(2,t.Flex,{height:"100%",direction:"column",children:[(0,e.createComponentVNode)(2,t.Flex.Item,{mb:1,children:(0,e.createComponentVNode)(2,t.Section,{children:[(0,e.createComponentVNode)(2,t.Button,{fluid:!0,onClick:function(){function p(){return d(f==="column"?"row":"column")}return p}(),children:'Flex direction="'+f+'"'}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,onClick:function(){function p(){return l(+!h)}return p}(),children:"Flex.Item grow={"+h+"}"}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,onClick:function(){function p(){return u(!s)}return p}(),children:"Section fill={"+String(s)+"}"}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,selected:v,onClick:function(){function p(){return g(!v)}return p}(),children:"Section title"})]})}),(0,e.createComponentVNode)(2,t.Flex.Item,{grow:1,children:(0,e.createComponentVNode)(2,t.Flex,{height:"100%",direction:f,children:[(0,e.createComponentVNode)(2,t.Flex.Item,{mr:f==="row"&&1,mb:f==="column"&&1,grow:h,children:(0,e.createComponentVNode)(2,t.Section,{title:v&&"Section 1",fill:s,children:"Content"})}),(0,e.createComponentVNode)(2,t.Flex.Item,{grow:h,children:(0,e.createComponentVNode)(2,t.Section,{title:v&&"Section 2",fill:s,children:"Content"})})]})})]})}},32304:function(I,r,n){"use strict";r.__esModule=!0,r.meta=void 0;var e=n(96524),a=n(17899),t=n(24674);/** * @file * @copyright 2021 Aleksej Komarov * @license MIT - */var o=r.meta={title:"Input",render:function(){function N(){return(0,e.createComponentVNode)(2,m)}return N}()},m=function(y,S){var k=(0,a.useLocalState)(S,"number",0),p=k[0],l=k[1],c=(0,a.useLocalState)(S,"text","Sample text"),f=c[0],u=c[1];return(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Input (onChange)",children:(0,e.createComponentVNode)(2,t.Input,{value:f,onChange:function(){function i(s,d){return u(d)}return i}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Input (onInput)",children:(0,e.createComponentVNode)(2,t.Input,{value:f,onInput:function(){function i(s,d){return u(d)}return i}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"NumberInput (onChange)",children:(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,width:"40px",step:1,stepPixelSize:5,value:p,minValue:-100,maxValue:100,onChange:function(){function i(s,d){return l(d)}return i}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"NumberInput (onDrag)",children:(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,width:"40px",step:1,stepPixelSize:5,value:p,minValue:-100,maxValue:100,onDrag:function(){function i(s,d){return l(d)}return i}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Slider (onDrag)",children:(0,e.createComponentVNode)(2,t.Slider,{step:1,stepPixelSize:5,value:p,minValue:-100,maxValue:100,onDrag:function(){function i(s,d){return l(d)}return i}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Knob (onDrag)",children:[(0,e.createComponentVNode)(2,t.Knob,{inline:!0,size:1,step:1,stepPixelSize:2,value:p,minValue:-100,maxValue:100,onDrag:function(){function i(s,d){return l(d)}return i}()}),(0,e.createComponentVNode)(2,t.Knob,{ml:1,inline:!0,bipolar:!0,size:1,step:1,stepPixelSize:2,value:p,minValue:-100,maxValue:100,onDrag:function(){function i(s,d){return l(d)}return i}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Rotating Icon",children:(0,e.createComponentVNode)(2,t.Box,{inline:!0,position:"relative",children:(0,e.createComponentVNode)(2,t.DraggableControl,{value:p,minValue:-100,maxValue:100,dragMatrix:[0,-1],step:1,stepPixelSize:5,onDrag:function(){function i(s,d){return l(d)}return i}(),children:function(){function i(s){return(0,e.createComponentVNode)(2,t.Box,{onMouseDown:s.handleDragStart,children:[(0,e.createComponentVNode)(2,t.Icon,{size:4,color:"yellow",name:"times",rotation:s.displayValue*4}),s.inputElement]})}return i}()})})})]})})}},50394:function(L,r,n){"use strict";r.__esModule=!0,r.meta=void 0;var e=n(96524),a=n(24674),t=r.meta={title:"Popper",render:function(){function m(){return(0,e.createComponentVNode)(2,o)}return m}()},o=function(){return(0,e.createFragment)([(0,e.createComponentVNode)(2,a.Popper,{popperContent:(0,e.createComponentVNode)(2,a.Box,{style:{background:"white",border:"2px solid blue"},children:"Loogatme!"}),options:{placement:"bottom"},children:(0,e.createComponentVNode)(2,a.Box,{style:{border:"5px solid white",height:"300px",width:"200px"}})}),(0,e.createComponentVNode)(2,a.Popper,{popperContent:(0,e.createComponentVNode)(2,a.Box,{style:{background:"white",border:"2px solid blue"},children:"I am on the right!"}),options:{placement:"right"},children:(0,e.createComponentVNode)(2,a.Box,{style:{border:"5px solid white",height:"500px",width:"100px"}})})],4)}},75096:function(L,r,n){"use strict";r.__esModule=!0,r.meta=void 0;var e=n(96524),a=n(17899),t=n(24674);/** + */var o=r.meta={title:"Input",render:function(){function V(){return(0,e.createComponentVNode)(2,m)}return V}()},m=function(y,S){var k=(0,a.useLocalState)(S,"number",0),h=k[0],l=k[1],c=(0,a.useLocalState)(S,"text","Sample text"),f=c[0],d=c[1];return(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Input (onChange)",children:(0,e.createComponentVNode)(2,t.Input,{value:f,onChange:function(){function i(s,u){return d(u)}return i}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Input (onInput)",children:(0,e.createComponentVNode)(2,t.Input,{value:f,onInput:function(){function i(s,u){return d(u)}return i}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"NumberInput (onChange)",children:(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,width:"40px",step:1,stepPixelSize:5,value:h,minValue:-100,maxValue:100,onChange:function(){function i(s,u){return l(u)}return i}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"NumberInput (onDrag)",children:(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,width:"40px",step:1,stepPixelSize:5,value:h,minValue:-100,maxValue:100,onDrag:function(){function i(s,u){return l(u)}return i}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Slider (onDrag)",children:(0,e.createComponentVNode)(2,t.Slider,{step:1,stepPixelSize:5,value:h,minValue:-100,maxValue:100,onDrag:function(){function i(s,u){return l(u)}return i}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Knob (onDrag)",children:[(0,e.createComponentVNode)(2,t.Knob,{inline:!0,size:1,step:1,stepPixelSize:2,value:h,minValue:-100,maxValue:100,onDrag:function(){function i(s,u){return l(u)}return i}()}),(0,e.createComponentVNode)(2,t.Knob,{ml:1,inline:!0,bipolar:!0,size:1,step:1,stepPixelSize:2,value:h,minValue:-100,maxValue:100,onDrag:function(){function i(s,u){return l(u)}return i}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Rotating Icon",children:(0,e.createComponentVNode)(2,t.Box,{inline:!0,position:"relative",children:(0,e.createComponentVNode)(2,t.DraggableControl,{value:h,minValue:-100,maxValue:100,dragMatrix:[0,-1],step:1,stepPixelSize:5,onDrag:function(){function i(s,u){return l(u)}return i}(),children:function(){function i(s){return(0,e.createComponentVNode)(2,t.Box,{onMouseDown:s.handleDragStart,children:[(0,e.createComponentVNode)(2,t.Icon,{size:4,color:"yellow",name:"times",rotation:s.displayValue*4}),s.inputElement]})}return i}()})})})]})})}},50394:function(I,r,n){"use strict";r.__esModule=!0,r.meta=void 0;var e=n(96524),a=n(24674),t=r.meta={title:"Popper",render:function(){function m(){return(0,e.createComponentVNode)(2,o)}return m}()},o=function(){return(0,e.createFragment)([(0,e.createComponentVNode)(2,a.Popper,{popperContent:(0,e.createComponentVNode)(2,a.Box,{style:{background:"white",border:"2px solid blue"},children:"Loogatme!"}),options:{placement:"bottom"},children:(0,e.createComponentVNode)(2,a.Box,{style:{border:"5px solid white",height:"300px",width:"200px"}})}),(0,e.createComponentVNode)(2,a.Popper,{popperContent:(0,e.createComponentVNode)(2,a.Box,{style:{background:"white",border:"2px solid blue"},children:"I am on the right!"}),options:{placement:"right"},children:(0,e.createComponentVNode)(2,a.Box,{style:{border:"5px solid white",height:"500px",width:"100px"}})})],4)}},75096:function(I,r,n){"use strict";r.__esModule=!0,r.meta=void 0;var e=n(96524),a=n(17899),t=n(24674);/** * @file * @copyright 2021 Aleksej Komarov * @license MIT - */var o=r.meta={title:"ProgressBar",render:function(){function N(){return(0,e.createComponentVNode)(2,m)}return N}()},m=function(y,S){var k=(0,a.useLocalState)(S,"progress",.5),p=k[0],l=k[1];return(0,e.createComponentVNode)(2,t.Section,{children:[(0,e.createComponentVNode)(2,t.ProgressBar,{ranges:{good:[.5,1/0],bad:[-1/0,.1],average:[0,.5]},minValue:-1,maxValue:1,value:p,children:["Value: ",Number(p).toFixed(1)]}),(0,e.createComponentVNode)(2,t.Box,{mt:1,children:[(0,e.createComponentVNode)(2,t.Button,{content:"-0.1",onClick:function(){function c(){return l(p-.1)}return c}()}),(0,e.createComponentVNode)(2,t.Button,{content:"+0.1",onClick:function(){function c(){return l(p+.1)}return c}()})]})]})}},30268:function(L,r,n){"use strict";r.__esModule=!0,r.meta=void 0;var e=n(96524),a=n(24674);/** + */var o=r.meta={title:"ProgressBar",render:function(){function V(){return(0,e.createComponentVNode)(2,m)}return V}()},m=function(y,S){var k=(0,a.useLocalState)(S,"progress",.5),h=k[0],l=k[1];return(0,e.createComponentVNode)(2,t.Section,{children:[(0,e.createComponentVNode)(2,t.ProgressBar,{ranges:{good:[.5,1/0],bad:[-1/0,.1],average:[0,.5]},minValue:-1,maxValue:1,value:h,children:["Value: ",Number(h).toFixed(1)]}),(0,e.createComponentVNode)(2,t.Box,{mt:1,children:[(0,e.createComponentVNode)(2,t.Button,{content:"-0.1",onClick:function(){function c(){return l(h-.1)}return c}()}),(0,e.createComponentVNode)(2,t.Button,{content:"+0.1",onClick:function(){function c(){return l(h+.1)}return c}()})]})]})}},30268:function(I,r,n){"use strict";r.__esModule=!0,r.meta=void 0;var e=n(96524),a=n(24674);/** * @file * @copyright 2021 Aleksej Komarov * @license MIT - */var t=r.meta={title:"Stack",render:function(){function y(){return(0,e.createComponentVNode)(2,N)}return y}()},o=function(){return(0,e.createComponentVNode)(2,a.Box,{inline:!0,width:1,height:1,children:"A"})},m=function(){return(0,e.createFragment)([(0,e.createComponentVNode)(2,a.Stack.Item,{children:(0,e.createComponentVNode)(2,o)}),(0,e.createComponentVNode)(2,a.Stack.Divider),(0,e.createComponentVNode)(2,a.Stack.Item,{children:(0,e.createComponentVNode)(2,o)})],4)},N=function(S,k){return(0,e.createComponentVNode)(2,a.Section,{fill:!0,children:(0,e.createComponentVNode)(2,a.Stack,{fill:!0,className:"debug-layout",children:[(0,e.createComponentVNode)(2,m),(0,e.createComponentVNode)(2,a.Stack.Item,{grow:1,children:(0,e.createComponentVNode)(2,a.Stack,{fill:!0,vertical:!0,zebra:!0,children:[(0,e.createComponentVNode)(2,m),(0,e.createComponentVNode)(2,a.Stack.Item,{children:(0,e.createComponentVNode)(2,a.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,m),(0,e.createComponentVNode)(2,a.Stack.Item,{grow:1}),(0,e.createComponentVNode)(2,m),(0,e.createComponentVNode)(2,m)]})}),(0,e.createComponentVNode)(2,a.Stack.Item,{grow:1}),(0,e.createComponentVNode)(2,m)]})})]})})}},22645:function(L,r,n){"use strict";r.__esModule=!0,r.meta=void 0;var e=n(96524),a=n(66450),t=n(24674),o=n(92986);/** + */var t=r.meta={title:"Stack",render:function(){function y(){return(0,e.createComponentVNode)(2,V)}return y}()},o=function(){return(0,e.createComponentVNode)(2,a.Box,{inline:!0,width:1,height:1,children:"A"})},m=function(){return(0,e.createFragment)([(0,e.createComponentVNode)(2,a.Stack.Item,{children:(0,e.createComponentVNode)(2,o)}),(0,e.createComponentVNode)(2,a.Stack.Divider),(0,e.createComponentVNode)(2,a.Stack.Item,{children:(0,e.createComponentVNode)(2,o)})],4)},V=function(S,k){return(0,e.createComponentVNode)(2,a.Section,{fill:!0,children:(0,e.createComponentVNode)(2,a.Stack,{fill:!0,className:"debug-layout",children:[(0,e.createComponentVNode)(2,m),(0,e.createComponentVNode)(2,a.Stack.Item,{grow:1,children:(0,e.createComponentVNode)(2,a.Stack,{fill:!0,vertical:!0,zebra:!0,children:[(0,e.createComponentVNode)(2,m),(0,e.createComponentVNode)(2,a.Stack.Item,{children:(0,e.createComponentVNode)(2,a.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,m),(0,e.createComponentVNode)(2,a.Stack.Item,{grow:1}),(0,e.createComponentVNode)(2,m),(0,e.createComponentVNode)(2,m)]})}),(0,e.createComponentVNode)(2,a.Stack.Item,{grow:1}),(0,e.createComponentVNode)(2,m)]})})]})})}},22645:function(I,r,n){"use strict";r.__esModule=!0,r.meta=void 0;var e=n(96524),a=n(66450),t=n(24674),o=n(92986);/** * @file * @copyright 2021 Aleksej Komarov * @license MIT - */var m=r.meta={title:"Storage",render:function(){function y(){return(0,e.createComponentVNode)(2,N)}return y}()},N=function(S,k){return window.localStorage?(0,e.createComponentVNode)(2,t.Section,{title:"Local Storage",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"recycle",onClick:function(){function p(){localStorage.clear(),a.storage.clear()}return p}(),children:"Clear"}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Keys in use",children:localStorage.length}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Remaining space",children:(0,o.formatSiUnit)(localStorage.remainingSpace,0,"B")})]})}):(0,e.createComponentVNode)(2,t.NoticeBox,{children:"Local storage is not available."})}},42120:function(L,r,n){"use strict";r.__esModule=!0,r.meta=void 0;var e=n(96524),a=n(17899),t=n(24674);/** + */var m=r.meta={title:"Storage",render:function(){function y(){return(0,e.createComponentVNode)(2,V)}return y}()},V=function(S,k){return window.localStorage?(0,e.createComponentVNode)(2,t.Section,{title:"Local Storage",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"recycle",onClick:function(){function h(){localStorage.clear(),a.storage.clear()}return h}(),children:"Clear"}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Keys in use",children:localStorage.length}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Remaining space",children:(0,o.formatSiUnit)(localStorage.remainingSpace,0,"B")})]})}):(0,e.createComponentVNode)(2,t.NoticeBox,{children:"Local storage is not available."})}},42120:function(I,r,n){"use strict";r.__esModule=!0,r.meta=void 0;var e=n(96524),a=n(17899),t=n(24674);/** * @file * @copyright 2021 Aleksej Komarov * @license MIT - */var o=r.meta={title:"Tabs",render:function(){function y(){return(0,e.createComponentVNode)(2,N)}return y}()},m=["Tab #1","Tab #2","Tab #3","Tab #4"],N=function(S,k){var p=(0,a.useLocalState)(k,"tabIndex",0),l=p[0],c=p[1],f=(0,a.useLocalState)(k,"tabProps",{}),u=f[0],i=f[1];return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{children:[(0,e.createComponentVNode)(2,t.Button.Checkbox,{inline:!0,content:"vertical",checked:u.vertical,onClick:function(){function s(){return i(Object.assign({},u,{vertical:!u.vertical}))}return s}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{inline:!0,content:"leftSlot",checked:u.leftSlot,onClick:function(){function s(){return i(Object.assign({},u,{leftSlot:!u.leftSlot}))}return s}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{inline:!0,content:"rightSlot",checked:u.rightSlot,onClick:function(){function s(){return i(Object.assign({},u,{rightSlot:!u.rightSlot}))}return s}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{inline:!0,content:"icon",checked:u.icon,onClick:function(){function s(){return i(Object.assign({},u,{icon:!u.icon}))}return s}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{inline:!0,content:"fluid",checked:u.fluid,onClick:function(){function s(){return i(Object.assign({},u,{fluid:!u.fluid}))}return s}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{inline:!0,content:"left aligned",checked:u.leftAligned,onClick:function(){function s(){return i(Object.assign({},u,{leftAligned:!u.leftAligned}))}return s}()})]}),(0,e.createComponentVNode)(2,t.Section,{fitted:!0,children:(0,e.createComponentVNode)(2,t.Tabs,{vertical:u.vertical,fluid:u.fluid,textAlign:u.leftAligned&&"left",children:m.map(function(s,d){return(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:d===l,icon:u.icon&&"info-circle",leftSlot:u.leftSlot&&(0,e.createComponentVNode)(2,t.Button,{circular:!0,compact:!0,color:"transparent",icon:"times"}),rightSlot:u.rightSlot&&(0,e.createComponentVNode)(2,t.Button,{circular:!0,compact:!0,color:"transparent",icon:"times"}),onClick:function(){function h(){return c(d)}return h}(),children:s},d)})})})],4)}},80254:function(L,r,n){"use strict";r.__esModule=!0,r.meta=void 0;var e=n(96524),a=n(17899),t=n(24674);/** + */var o=r.meta={title:"Tabs",render:function(){function y(){return(0,e.createComponentVNode)(2,V)}return y}()},m=["Tab #1","Tab #2","Tab #3","Tab #4"],V=function(S,k){var h=(0,a.useLocalState)(k,"tabIndex",0),l=h[0],c=h[1],f=(0,a.useLocalState)(k,"tabProps",{}),d=f[0],i=f[1];return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{children:[(0,e.createComponentVNode)(2,t.Button.Checkbox,{inline:!0,content:"vertical",checked:d.vertical,onClick:function(){function s(){return i(Object.assign({},d,{vertical:!d.vertical}))}return s}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{inline:!0,content:"leftSlot",checked:d.leftSlot,onClick:function(){function s(){return i(Object.assign({},d,{leftSlot:!d.leftSlot}))}return s}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{inline:!0,content:"rightSlot",checked:d.rightSlot,onClick:function(){function s(){return i(Object.assign({},d,{rightSlot:!d.rightSlot}))}return s}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{inline:!0,content:"icon",checked:d.icon,onClick:function(){function s(){return i(Object.assign({},d,{icon:!d.icon}))}return s}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{inline:!0,content:"fluid",checked:d.fluid,onClick:function(){function s(){return i(Object.assign({},d,{fluid:!d.fluid}))}return s}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{inline:!0,content:"left aligned",checked:d.leftAligned,onClick:function(){function s(){return i(Object.assign({},d,{leftAligned:!d.leftAligned}))}return s}()})]}),(0,e.createComponentVNode)(2,t.Section,{fitted:!0,children:(0,e.createComponentVNode)(2,t.Tabs,{vertical:d.vertical,fluid:d.fluid,textAlign:d.leftAligned&&"left",children:m.map(function(s,u){return(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:u===l,icon:d.icon&&"info-circle",leftSlot:d.leftSlot&&(0,e.createComponentVNode)(2,t.Button,{circular:!0,compact:!0,color:"transparent",icon:"times"}),rightSlot:d.rightSlot&&(0,e.createComponentVNode)(2,t.Button,{circular:!0,compact:!0,color:"transparent",icon:"times"}),onClick:function(){function C(){return c(u)}return C}(),children:s},u)})})})],4)}},80254:function(I,r,n){"use strict";r.__esModule=!0,r.meta=void 0;var e=n(96524),a=n(17899),t=n(24674);/** * @file * @copyright 2021 Aleksej Komarov * @license MIT - */var o=r.meta={title:"Themes",render:function(){function N(){return(0,e.createComponentVNode)(2,m)}return N}()},m=function(y,S){var k=(0,a.useLocalState)(S,"kitchenSinkTheme"),p=k[0],l=k[1];return(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Use theme",children:(0,e.createComponentVNode)(2,t.Input,{placeholder:"theme_name",value:p,onInput:function(){function c(f,u){return l(u)}return c}()})})})})}},90823:function(L,r,n){"use strict";r.__esModule=!0,r.meta=void 0;var e=n(96524),a=n(60023),t=n(24674);/** + */var o=r.meta={title:"Themes",render:function(){function V(){return(0,e.createComponentVNode)(2,m)}return V}()},m=function(y,S){var k=(0,a.useLocalState)(S,"kitchenSinkTheme"),h=k[0],l=k[1];return(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Use theme",children:(0,e.createComponentVNode)(2,t.Input,{placeholder:"theme_name",value:h,onInput:function(){function c(f,d){return l(d)}return c}()})})})})}},90823:function(I,r,n){"use strict";r.__esModule=!0,r.meta=void 0;var e=n(96524),a=n(60023),t=n(24674);/** * @file * @copyright 2021 Aleksej Komarov * @license MIT - */var o=r.meta={title:"Tooltip",render:function(){function N(){return(0,e.createComponentVNode)(2,m)}return N}()},m=function(){var y=["top","left","right","bottom","bottom-start","bottom-end"];return(0,e.createComponentVNode)(2,t.Section,{children:[(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Tooltip,{content:"Tooltip text.",children:(0,e.createComponentVNode)(2,t.Box,{inline:!0,position:"relative",mr:1,children:"Box (hover me)."})}),(0,e.createComponentVNode)(2,t.Button,{tooltip:"Tooltip text.",content:"Button"})]}),(0,e.createComponentVNode)(2,t.Box,{mt:1,children:y.map(function(S){return(0,e.createComponentVNode)(2,t.Button,{color:"transparent",tooltip:"Tooltip text.",tooltipPosition:S,content:S},S)})})]})}},17306:function(L,r,n){"use strict";r.__esModule=!0,r.BoxWithSampleText=void 0;var e=n(96524),a=n(24674);/** + */var o=r.meta={title:"Tooltip",render:function(){function V(){return(0,e.createComponentVNode)(2,m)}return V}()},m=function(){var y=["top","left","right","bottom","bottom-start","bottom-end"];return(0,e.createComponentVNode)(2,t.Section,{children:[(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Tooltip,{content:"Tooltip text.",children:(0,e.createComponentVNode)(2,t.Box,{inline:!0,position:"relative",mr:1,children:"Box (hover me)."})}),(0,e.createComponentVNode)(2,t.Button,{tooltip:"Tooltip text.",content:"Button"})]}),(0,e.createComponentVNode)(2,t.Box,{mt:1,children:y.map(function(S){return(0,e.createComponentVNode)(2,t.Button,{color:"transparent",tooltip:"Tooltip text.",tooltipPosition:S,content:S},S)})})]})}},17306:function(I,r,n){"use strict";r.__esModule=!0,r.BoxWithSampleText=void 0;var e=n(96524),a=n(24674);/** * @file * @copyright 2021 Aleksej Komarov * @license MIT - */var t=r.BoxWithSampleText=function(){function o(m){return(0,e.normalizeProps)((0,e.createComponentVNode)(2,a.Box,Object.assign({},m,{children:[(0,e.createComponentVNode)(2,a.Box,{italic:!0,children:"Jackdaws love my big sphinx of quartz."}),(0,e.createComponentVNode)(2,a.Box,{mt:1,bold:!0,children:"The wide electrification of the southern provinces will give a powerful impetus to the growth of agriculture."})]})))}return o}()},21965:function(){},28169:function(){},36487:function(){},35739:function(){},33631:function(){},74785:function(){},6895:function(){},3251:function(){},7455:function(){},58823:function(){},49265:function(){},55350:function(){},45503:function(){},36557:function(){},70555:function(){},70752:function(L,r,n){var e={"./pai_atmosphere.js":24704,"./pai_bioscan.js":4209,"./pai_directives.js":44430,"./pai_doorjack.js":3367,"./pai_main_menu.js":73395,"./pai_manifest.js":37645,"./pai_medrecords.js":15836,"./pai_messenger.js":91737,"./pai_radio.js":94077,"./pai_secrecords.js":72621,"./pai_signaler.js":53483};function a(o){var m=t(o);return n(m)}function t(o){if(!n.o(e,o)){var m=new Error("Cannot find module '"+o+"'");throw m.code="MODULE_NOT_FOUND",m}return e[o]}a.keys=function(){return Object.keys(e)},a.resolve=t,L.exports=a,a.id=70752},59395:function(L,r,n){var e={"./pda_atmos_scan.js":21606,"./pda_janitor.js":12339,"./pda_main_menu.js":36615,"./pda_manifest.js":99737,"./pda_medical.js":61597,"./pda_messenger.js":30709,"./pda_mob_hunt.js":71654,"./pda_mule.js":68053,"./pda_nanobank.js":31728,"./pda_notes.js":29415,"./pda_power.js":52363,"./pda_secbot.js":23914,"./pda_security.js":68878,"./pda_signaler.js":95135,"./pda_status_display.js":20835,"./pda_supplyrecords.js":11741};function a(o){var m=t(o);return n(m)}function t(o){if(!n.o(e,o)){var m=new Error("Cannot find module '"+o+"'");throw m.code="MODULE_NOT_FOUND",m}return e[o]}a.keys=function(){return Object.keys(e)},a.resolve=t,L.exports=a,a.id=59395},32054:function(L,r,n){var e={"./AICard":29732,"./AICard.js":29732,"./AIFixer":78468,"./AIFixer.js":78468,"./APC":73544,"./APC.js":73544,"./ATM":79098,"./ATM.js":79098,"./AccountsUplinkTerminal":64613,"./AccountsUplinkTerminal.js":64613,"./AgentCard":34257,"./AgentCard.js":34257,"./AiAirlock":56839,"./AiAirlock.js":56839,"./AirAlarm":5565,"./AirAlarm.js":5565,"./AirlockAccessController":82915,"./AirlockAccessController.js":82915,"./AirlockElectronics":14962,"./AirlockElectronics.js":14962,"./AlertModal":99327,"./AlertModal.tsx":99327,"./AppearanceChanger":88642,"./AppearanceChanger.js":88642,"./AtmosAlertConsole":51731,"./AtmosAlertConsole.js":51731,"./AtmosControl":57467,"./AtmosControl.js":57467,"./AtmosFilter":41550,"./AtmosFilter.js":41550,"./AtmosMixer":70151,"./AtmosMixer.js":70151,"./AtmosPump":54090,"./AtmosPump.js":54090,"./AtmosTankControl":31335,"./AtmosTankControl.js":31335,"./Autolathe":85909,"./Autolathe.js":85909,"./BioChipPad":81617,"./BioChipPad.js":81617,"./Biogenerator":26215,"./Biogenerator.js":26215,"./BlueSpaceArtilleryControl":65483,"./BlueSpaceArtilleryControl.js":65483,"./BluespaceTap":69099,"./BluespaceTap.js":69099,"./BodyScanner":71736,"./BodyScanner.js":71736,"./BookBinder":99449,"./BookBinder.js":99449,"./BotClean":43506,"./BotClean.js":43506,"./BotFloor":89593,"./BotFloor.js":89593,"./BotHonk":89513,"./BotHonk.js":89513,"./BotMed":19297,"./BotMed.js":19297,"./BotSecurity":4249,"./BotSecurity.js":4249,"./BrigCells":27267,"./BrigCells.js":27267,"./BrigTimer":26623,"./BrigTimer.js":26623,"./CameraConsole":43542,"./CameraConsole.js":43542,"./CameraConsole220":9300,"./CameraConsole220.js":9300,"./Canister":95513,"./Canister.js":95513,"./CardComputer":60463,"./CardComputer.js":60463,"./CargoConsole":16377,"./CargoConsole.js":16377,"./ChangelogView":89917,"./ChangelogView.js":89917,"./ChemDispenser":71254,"./ChemDispenser.js":71254,"./ChemHeater":27004,"./ChemHeater.js":27004,"./ChemMaster":33611,"./ChemMaster.js":33611,"./CloningConsole":51327,"./CloningConsole.js":51327,"./CloningPod":66373,"./CloningPod.js":66373,"./ColourMatrixTester":11866,"./ColourMatrixTester.js":11866,"./CommunicationsComputer":22420,"./CommunicationsComputer.js":22420,"./CompostBin":46868,"./CompostBin.js":46868,"./Contractor":64707,"./Contractor.js":64707,"./ConveyorSwitch":52141,"./ConveyorSwitch.js":52141,"./CrewMonitor":94187,"./CrewMonitor.js":94187,"./Cryo":60561,"./Cryo.js":60561,"./CryopodConsole":27889,"./CryopodConsole.js":27889,"./DNAModifier":81434,"./DNAModifier.js":81434,"./DestinationTagger":99127,"./DestinationTagger.js":99127,"./DisposalBin":93430,"./DisposalBin.js":93430,"./DnaVault":31491,"./DnaVault.js":31491,"./DroneConsole":30747,"./DroneConsole.js":30747,"./EFTPOS":74781,"./EFTPOS.js":74781,"./ERTManager":30672,"./ERTManager.js":30672,"./EconomyManager":24503,"./EconomyManager.js":24503,"./Electropack":15543,"./Electropack.js":15543,"./Emojipedia":57013,"./Emojipedia.tsx":57013,"./EmotePanel":75450,"./EmotePanel.js":75450,"./EvolutionMenu":99012,"./EvolutionMenu.js":99012,"./ExosuitFabricator":37504,"./ExosuitFabricator.js":37504,"./ExperimentConsole":9466,"./ExperimentConsole.js":9466,"./ExternalAirlockController":77284,"./ExternalAirlockController.js":77284,"./FaxMachine":52516,"./FaxMachine.js":52516,"./FilingCabinet":24777,"./FilingCabinet.js":24777,"./FloorPainter":88361,"./FloorPainter.js":88361,"./GPS":70078,"./GPS.js":70078,"./GeneModder":92246,"./GeneModder.js":92246,"./GenericCrewManifest":27163,"./GenericCrewManifest.js":27163,"./GhostHudPanel":53808,"./GhostHudPanel.js":53808,"./GlandDispenser":32035,"./GlandDispenser.js":32035,"./GravityGen":33004,"./GravityGen.js":33004,"./GuestPass":39775,"./GuestPass.js":39775,"./HandheldChemDispenser":22480,"./HandheldChemDispenser.js":22480,"./HealthSensor":22616,"./HealthSensor.js":22616,"./Holodeck":76861,"./Holodeck.js":76861,"./Instrument":96729,"./Instrument.js":96729,"./Jukebox":99366,"./Jukebox.tsx":99366,"./KeycardAuth":53385,"./KeycardAuth.js":53385,"./KitchenMachine":58553,"./KitchenMachine.js":58553,"./LawManager":14047,"./LawManager.js":14047,"./LibraryComputer":5872,"./LibraryComputer.js":5872,"./LibraryManager":37782,"./LibraryManager.js":37782,"./ListInputModal":26133,"./ListInputModal.tsx":26133,"./MODsuit":71963,"./MODsuit.js":71963,"./MagnetController":84274,"./MagnetController.js":84274,"./MechBayConsole":95752,"./MechBayConsole.js":95752,"./MechaControlConsole":53668,"./MechaControlConsole.js":53668,"./MedicalRecords":96467,"./MedicalRecords.js":96467,"./MerchVendor":68211,"./MerchVendor.js":68211,"./MiningVendor":14162,"./MiningVendor.js":14162,"./ModpacksList":46146,"./ModpacksList.js":46146,"./NTRecruiter":68977,"./NTRecruiter.js":68977,"./Newscaster":17067,"./Newscaster.js":17067,"./NuclearBomb":46940,"./NuclearBomb.js":46940,"./NumberInputModal":35478,"./NumberInputModal.tsx":35478,"./OperatingComputer":98476,"./OperatingComputer.js":98476,"./Orbit":98702,"./Orbit.js":98702,"./OreRedemption":74015,"./OreRedemption.js":74015,"./PAI":48824,"./PAI.js":48824,"./PDA":41565,"./PDA.js":41565,"./Pacman":78704,"./Pacman.js":78704,"./ParticleAccelerator":78643,"./ParticleAccelerator.js":78643,"./PdaPainter":34026,"./PdaPainter.js":34026,"./PersonalCrafting":81378,"./PersonalCrafting.js":81378,"./Photocopier":58792,"./Photocopier.js":58792,"./Photocopier220":45642,"./Photocopier220.js":45642,"./PoolController":27902,"./PoolController.js":27902,"./PortablePump":52025,"./PortablePump.js":52025,"./PortableScrubber":57827,"./PortableScrubber.js":57827,"./PortableTurret":63825,"./PortableTurret.js":63825,"./PowerMonitor":70373,"./PowerMonitor.js":70373,"./PrisonerImplantManager":27262,"./PrisonerImplantManager.js":27262,"./PrisonerShuttleConsole":22046,"./PrisonerShuttleConsole.js":22046,"./PrizeCounter":92014,"./PrizeCounter.tsx":92014,"./RCD":87963,"./RCD.js":87963,"./RPD":84364,"./RPD.js":84364,"./Radio":14641,"./Radio.js":14641,"./ReagentGrinder":40483,"./ReagentGrinder.js":40483,"./RemoteSignaler":94049,"./RemoteSignaler.js":94049,"./RequestConsole":12326,"./RequestConsole.js":12326,"./RndConsole":89641,"./RndConsole.js":89641,"./RndConsoleComponents":3422,"./RndConsoleComponents/":3422,"./RndConsoleComponents/CurrentLevels":19348,"./RndConsoleComponents/CurrentLevels.js":19348,"./RndConsoleComponents/DataDiskMenu":338,"./RndConsoleComponents/DataDiskMenu.js":338,"./RndConsoleComponents/DeconstructionMenu":90785,"./RndConsoleComponents/DeconstructionMenu.js":90785,"./RndConsoleComponents/LatheCategory":34492,"./RndConsoleComponents/LatheCategory.js":34492,"./RndConsoleComponents/LatheChemicalStorage":84275,"./RndConsoleComponents/LatheChemicalStorage.js":84275,"./RndConsoleComponents/LatheMainMenu":12638,"./RndConsoleComponents/LatheMainMenu.js":12638,"./RndConsoleComponents/LatheMaterialStorage":89004,"./RndConsoleComponents/LatheMaterialStorage.js":89004,"./RndConsoleComponents/LatheMaterials":73856,"./RndConsoleComponents/LatheMaterials.js":73856,"./RndConsoleComponents/LatheMenu":75955,"./RndConsoleComponents/LatheMenu.js":75955,"./RndConsoleComponents/LatheSearch":72880,"./RndConsoleComponents/LatheSearch.js":72880,"./RndConsoleComponents/MainMenu":62306,"./RndConsoleComponents/MainMenu.js":62306,"./RndConsoleComponents/RndNavButton":99941,"./RndConsoleComponents/RndNavButton.js":99941,"./RndConsoleComponents/RndNavbar":24448,"./RndConsoleComponents/RndNavbar.js":24448,"./RndConsoleComponents/RndRoute":78345,"./RndConsoleComponents/RndRoute.js":78345,"./RndConsoleComponents/SettingsMenu":56454,"./RndConsoleComponents/SettingsMenu.js":56454,"./RndConsoleComponents/index":3422,"./RndConsoleComponents/index.js":3422,"./RobotSelfDiagnosis":71123,"./RobotSelfDiagnosis.js":71123,"./RoboticsControlConsole":98951,"./RoboticsControlConsole.js":98951,"./Safe":2289,"./Safe.js":2289,"./SatelliteControl":49334,"./SatelliteControl.js":49334,"./SecureStorage":54892,"./SecureStorage.js":54892,"./SecurityRecords":56798,"./SecurityRecords.js":56798,"./SeedExtractor":59981,"./SeedExtractor.js":59981,"./ShuttleConsole":33454,"./ShuttleConsole.js":33454,"./ShuttleManipulator":50451,"./ShuttleManipulator.js":50451,"./Sleeper":99050,"./Sleeper.js":99050,"./SlotMachine":37763,"./SlotMachine.js":37763,"./Smartfridge":26654,"./Smartfridge.js":26654,"./Smes":71124,"./Smes.js":71124,"./SolarControl":21786,"./SolarControl.js":21786,"./SpawnersMenu":31202,"./SpawnersMenu.js":31202,"./SpecMenu":84800,"./SpecMenu.js":84800,"./StationAlertConsole":46501,"./StationAlertConsole.js":46501,"./StationTraitsPanel":18565,"./StationTraitsPanel.tsx":18565,"./StripMenu":95147,"./StripMenu.tsx":95147,"./SuitStorage":61284,"./SuitStorage.js":61284,"./SupermatterMonitor":19796,"./SupermatterMonitor.js":19796,"./SyndicateComputerSimple":30047,"./SyndicateComputerSimple.js":30047,"./TEG":28830,"./TEG.js":28830,"./TTSSeedsExplorer":67432,"./TTSSeedsExplorer.tsx":67432,"./TachyonArray":39903,"./TachyonArray.js":39903,"./Tank":17068,"./Tank.js":17068,"./TankDispenser":69161,"./TankDispenser.js":69161,"./TcommsCore":87394,"./TcommsCore.js":87394,"./TcommsRelay":55684,"./TcommsRelay.js":55684,"./Teleporter":81088,"./Teleporter.js":81088,"./TempGun":96150,"./TempGun.js":96150,"./TextInputModal":95484,"./TextInputModal.tsx":95484,"./ThermoMachine":378,"./ThermoMachine.js":378,"./TransferValve":3365,"./TransferValve.js":3365,"./TurbineComputer":13860,"./TurbineComputer.js":13860,"./Uplink":22169,"./Uplink.js":22169,"./Vending":70547,"./Vending.js":70547,"./VolumeMixer":33045,"./VolumeMixer.js":33045,"./VotePanel":53792,"./VotePanel.js":53792,"./Wires":64860,"./Wires.js":64860,"./WizardApprenticeContract":78262,"./WizardApprenticeContract.js":78262,"./common/AccessList":57842,"./common/AccessList.js":57842,"./common/AtmosScan":79449,"./common/AtmosScan.js":79449,"./common/BeakerContents":1496,"./common/BeakerContents.js":1496,"./common/BotStatus":69521,"./common/BotStatus.js":69521,"./common/ComplexModal":99665,"./common/ComplexModal.js":99665,"./common/CrewManifest":98444,"./common/CrewManifest.js":98444,"./common/InputButtons":15113,"./common/InputButtons.tsx":15113,"./common/InterfaceLockNoticeBox":26893,"./common/InterfaceLockNoticeBox.js":26893,"./common/Loader":14299,"./common/Loader.tsx":14299,"./common/LoginInfo":68159,"./common/LoginInfo.js":68159,"./common/LoginScreen":27527,"./common/LoginScreen.js":27527,"./common/Operating":75201,"./common/Operating.js":75201,"./common/Signaler":65435,"./common/Signaler.js":65435,"./common/SimpleRecords":77534,"./common/SimpleRecords.js":77534,"./common/TemporaryNotice":84537,"./common/TemporaryNotice.js":84537,"./pai/pai_atmosphere":24704,"./pai/pai_atmosphere.js":24704,"./pai/pai_bioscan":4209,"./pai/pai_bioscan.js":4209,"./pai/pai_directives":44430,"./pai/pai_directives.js":44430,"./pai/pai_doorjack":3367,"./pai/pai_doorjack.js":3367,"./pai/pai_main_menu":73395,"./pai/pai_main_menu.js":73395,"./pai/pai_manifest":37645,"./pai/pai_manifest.js":37645,"./pai/pai_medrecords":15836,"./pai/pai_medrecords.js":15836,"./pai/pai_messenger":91737,"./pai/pai_messenger.js":91737,"./pai/pai_radio":94077,"./pai/pai_radio.js":94077,"./pai/pai_secrecords":72621,"./pai/pai_secrecords.js":72621,"./pai/pai_signaler":53483,"./pai/pai_signaler.js":53483,"./pda/pda_atmos_scan":21606,"./pda/pda_atmos_scan.js":21606,"./pda/pda_janitor":12339,"./pda/pda_janitor.js":12339,"./pda/pda_main_menu":36615,"./pda/pda_main_menu.js":36615,"./pda/pda_manifest":99737,"./pda/pda_manifest.js":99737,"./pda/pda_medical":61597,"./pda/pda_medical.js":61597,"./pda/pda_messenger":30709,"./pda/pda_messenger.js":30709,"./pda/pda_mob_hunt":71654,"./pda/pda_mob_hunt.js":71654,"./pda/pda_mule":68053,"./pda/pda_mule.js":68053,"./pda/pda_nanobank":31728,"./pda/pda_nanobank.js":31728,"./pda/pda_notes":29415,"./pda/pda_notes.js":29415,"./pda/pda_power":52363,"./pda/pda_power.js":52363,"./pda/pda_secbot":23914,"./pda/pda_secbot.js":23914,"./pda/pda_security":68878,"./pda/pda_security.js":68878,"./pda/pda_signaler":95135,"./pda/pda_signaler.js":95135,"./pda/pda_status_display":20835,"./pda/pda_status_display.js":20835,"./pda/pda_supplyrecords":11741,"./pda/pda_supplyrecords.js":11741};function a(o){var m=t(o);return n(m)}function t(o){if(!n.o(e,o)){var m=new Error("Cannot find module '"+o+"'");throw m.code="MODULE_NOT_FOUND",m}return e[o]}a.keys=function(){return Object.keys(e)},a.resolve=t,L.exports=a,a.id=32054},4085:function(L,r,n){var e={"./Blink.stories.js":61498,"./BlockQuote.stories.js":27431,"./Box.stories.js":6517,"./Button.stories.js":20648,"./ByondUi.stories.js":14906,"./Collapsible.stories.js":59948,"./Flex.stories.js":37227,"./Input.stories.js":32304,"./Popper.stories.js":50394,"./ProgressBar.stories.js":75096,"./Stack.stories.js":30268,"./Storage.stories.js":22645,"./Tabs.stories.js":42120,"./Themes.stories.js":80254,"./Tooltip.stories.js":90823};function a(o){var m=t(o);return n(m)}function t(o){if(!n.o(e,o)){var m=new Error("Cannot find module '"+o+"'");throw m.code="MODULE_NOT_FOUND",m}return e[o]}a.keys=function(){return Object.keys(e)},a.resolve=t,L.exports=a,a.id=4085},97361:function(L,r,n){"use strict";var e=n(7532),a=n(62518),t=TypeError;L.exports=function(o){if(e(o))return o;throw new t(a(o)+" is not a function")}},76833:function(L,r,n){"use strict";var e=n(60354),a=n(62518),t=TypeError;L.exports=function(o){if(e(o))return o;throw new t(a(o)+" is not a constructor")}},51689:function(L,r,n){"use strict";var e=n(41224),a=String,t=TypeError;L.exports=function(o){if(e(o))return o;throw new t("Can't set "+a(o)+" as a prototype")}},91138:function(L,r,n){"use strict";var e=n(66266),a=n(28969),t=n(56018).f,o=e("unscopables"),m=Array.prototype;m[o]===void 0&&t(m,o,{configurable:!0,value:a(null)}),L.exports=function(N){m[o][N]=!0}},62970:function(L,r,n){"use strict";var e=n(56852).charAt;L.exports=function(a,t,o){return t+(o?e(a,t).length:1)}},19870:function(L,r,n){"use strict";var e=n(33314),a=TypeError;L.exports=function(t,o){if(e(o,t))return t;throw new a("Incorrect invocation")}},39482:function(L,r,n){"use strict";var e=n(56831),a=String,t=TypeError;L.exports=function(o){if(e(o))return o;throw new t(a(o)+" is not an object")}},67404:function(L){"use strict";L.exports=typeof ArrayBuffer!="undefined"&&typeof DataView!="undefined"},65693:function(L,r,n){"use strict";var e=n(41746);L.exports=e(function(){if(typeof ArrayBuffer=="function"){var a=new ArrayBuffer(8);Object.isExtensible(a)&&Object.defineProperty(a,"a",{value:8})}})},72951:function(L,r,n){"use strict";var e=n(67404),a=n(14141),t=n(40224),o=n(7532),m=n(56831),N=n(89458),y=n(27806),S=n(62518),k=n(16216),p=n(59173),l=n(10069),c=n(33314),f=n(31658),u=n(42878),i=n(66266),s=n(33345),d=n(35086),h=d.enforce,v=d.get,g=t.Int8Array,C=g&&g.prototype,V=t.Uint8ClampedArray,b=V&&V.prototype,B=g&&f(g),I=C&&f(C),w=Object.prototype,T=t.TypeError,A=i("toStringTag"),x=s("TYPED_ARRAY_TAG"),E="TypedArrayConstructor",M=e&&!!u&&y(t.opera)!=="Opera",j=!1,P,R,D,F={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},W={BigInt64Array:8,BigUint64Array:8},_=function(){function re(me){if(!m(me))return!1;var pe=y(me);return pe==="DataView"||N(F,pe)||N(W,pe)}return re}(),H=function re(me){var pe=f(me);if(m(pe)){var ye=v(pe);return ye&&N(ye,E)?ye[E]:re(pe)}},z=function(me){if(!m(me))return!1;var pe=y(me);return N(F,pe)||N(W,pe)},$=function(me){if(z(me))return me;throw new T("Target is not a typed array")},X=function(me){if(o(me)&&(!u||c(B,me)))return me;throw new T(S(me)+" is not a typed array constructor")},J=function(me,pe,ye,Be){if(a){if(ye)for(var he in F){var oe=t[he];if(oe&&N(oe.prototype,me))try{delete oe.prototype[me]}catch(Z){try{oe.prototype[me]=pe}catch(q){}}}(!I[me]||ye)&&p(I,me,ye?pe:M&&C[me]||pe,Be)}},ce=function(me,pe,ye){var Be,he;if(a){if(u){if(ye){for(Be in F)if(he=t[Be],he&&N(he,me))try{delete he[me]}catch(oe){}}if(!B[me]||ye)try{return p(B,me,ye?pe:M&&B[me]||pe)}catch(oe){}else return}for(Be in F)he=t[Be],he&&(!he[me]||ye)&&p(he,me,pe)}};for(P in F)R=t[P],D=R&&R.prototype,D?h(D)[E]=R:M=!1;for(P in W)R=t[P],D=R&&R.prototype,D&&(h(D)[E]=R);if((!M||!o(B)||B===Function.prototype)&&(B=function(){function re(){throw new T("Incorrect invocation")}return re}(),M))for(P in F)t[P]&&u(t[P],B);if((!M||!I||I===w)&&(I=B.prototype,M))for(P in F)t[P]&&u(t[P].prototype,I);if(M&&f(b)!==I&&u(b,I),a&&!N(I,A)){j=!0,l(I,A,{configurable:!0,get:function(){function re(){return m(this)?this[x]:void 0}return re}()});for(P in F)t[P]&&k(t[P],x,P)}L.exports={NATIVE_ARRAY_BUFFER_VIEWS:M,TYPED_ARRAY_TAG:j&&x,aTypedArray:$,aTypedArrayConstructor:X,exportTypedArrayMethod:J,exportTypedArrayStaticMethod:ce,getTypedArrayConstructor:H,isView:_,isTypedArray:z,TypedArray:B,TypedArrayPrototype:I}},46185:function(L,r,n){"use strict";var e=n(40224),a=n(18161),t=n(14141),o=n(67404),m=n(26463),N=n(16216),y=n(10069),S=n(13648),k=n(41746),p=n(19870),l=n(74952),c=n(10475),f=n(90835),u=n(75988),i=n(62263),s=n(31658),d=n(42878),h=n(59942),v=n(77713),g=n(2566),C=n(70113),V=n(94234),b=n(35086),B=m.PROPER,I=m.CONFIGURABLE,w="ArrayBuffer",T="DataView",A="prototype",x="Wrong length",E="Wrong index",M=b.getterFor(w),j=b.getterFor(T),P=b.set,R=e[w],D=R,F=D&&D[A],W=e[T],_=W&&W[A],H=Object.prototype,z=e.Array,$=e.RangeError,X=a(h),J=a([].reverse),ce=i.pack,re=i.unpack,me=function(ge){return[ge&255]},pe=function(ge){return[ge&255,ge>>8&255]},ye=function(ge){return[ge&255,ge>>8&255,ge>>16&255,ge>>24&255]},Be=function(ge){return ge[3]<<24|ge[2]<<16|ge[1]<<8|ge[0]},he=function(ge){return ce(u(ge),23,4)},oe=function(ge){return ce(ge,52,8)},Z=function(ge,ke,ve){y(ge[A],ke,{configurable:!0,get:function(){function Se(){return ve(this)[ke]}return Se}()})},q=function(ge,ke,ve,Se){var we=j(ge),xe=f(ve),Oe=!!Se;if(xe+ke>we.byteLength)throw new $(E);var We=we.bytes,Ve=xe+we.byteOffset,ae=v(We,Ve,Ve+ke);return Oe?ae:J(ae)},ue=function(ge,ke,ve,Se,we,xe){var Oe=j(ge),We=f(ve),Ve=Se(+we),ae=!!xe;if(We+ke>Oe.byteLength)throw new $(E);for(var le=Oe.bytes,Ce=We+Oe.byteOffset,de=0;dewe)throw new $("Wrong offset");if(ve=ve===void 0?we-xe:c(ve),xe+ve>we)throw new $(x);P(this,{type:T,buffer:ge,byteLength:ve,byteOffset:xe,bytes:Se.bytes}),t||(this.buffer=ge,this.byteLength=ve,this.byteOffset=xe)}return fe}(),_=W[A],t&&(Z(D,"byteLength",M),Z(W,"buffer",j),Z(W,"byteLength",j),Z(W,"byteOffset",j)),S(_,{getInt8:function(){function fe(ge){return q(this,1,ge)[0]<<24>>24}return fe}(),getUint8:function(){function fe(ge){return q(this,1,ge)[0]}return fe}(),getInt16:function(){function fe(ge){var ke=q(this,2,ge,arguments.length>1?arguments[1]:!1);return(ke[1]<<8|ke[0])<<16>>16}return fe}(),getUint16:function(){function fe(ge){var ke=q(this,2,ge,arguments.length>1?arguments[1]:!1);return ke[1]<<8|ke[0]}return fe}(),getInt32:function(){function fe(ge){return Be(q(this,4,ge,arguments.length>1?arguments[1]:!1))}return fe}(),getUint32:function(){function fe(ge){return Be(q(this,4,ge,arguments.length>1?arguments[1]:!1))>>>0}return fe}(),getFloat32:function(){function fe(ge){return re(q(this,4,ge,arguments.length>1?arguments[1]:!1),23)}return fe}(),getFloat64:function(){function fe(ge){return re(q(this,8,ge,arguments.length>1?arguments[1]:!1),52)}return fe}(),setInt8:function(){function fe(ge,ke){ue(this,1,ge,me,ke)}return fe}(),setUint8:function(){function fe(ge,ke){ue(this,1,ge,me,ke)}return fe}(),setInt16:function(){function fe(ge,ke){ue(this,2,ge,pe,ke,arguments.length>2?arguments[2]:!1)}return fe}(),setUint16:function(){function fe(ge,ke){ue(this,2,ge,pe,ke,arguments.length>2?arguments[2]:!1)}return fe}(),setInt32:function(){function fe(ge,ke){ue(this,4,ge,ye,ke,arguments.length>2?arguments[2]:!1)}return fe}(),setUint32:function(){function fe(ge,ke){ue(this,4,ge,ye,ke,arguments.length>2?arguments[2]:!1)}return fe}(),setFloat32:function(){function fe(ge,ke){ue(this,4,ge,he,ke,arguments.length>2?arguments[2]:!1)}return fe}(),setFloat64:function(){function fe(ge,ke){ue(this,8,ge,oe,ke,arguments.length>2?arguments[2]:!1)}return fe}()});else{var se=B&&R.name!==w;!k(function(){R(1)})||!k(function(){new R(-1)})||k(function(){return new R,new R(1.5),new R(NaN),R.length!==1||se&&!I})?(D=function(){function fe(ge){return p(this,F),g(new R(f(ge)),this,D)}return fe}(),D[A]=F,F.constructor=D,C(D,R)):se&&I&&N(R,"name",w),d&&s(_)!==H&&d(_,H);var ne=new W(new D(2)),be=a(_.setInt8);ne.setInt8(0,2147483648),ne.setInt8(1,2147483649),(ne.getInt8(0)||!ne.getInt8(1))&&S(_,{setInt8:function(){function fe(ge,ke){be(this,ge,ke<<24>>24)}return fe}(),setUint8:function(){function fe(ge,ke){be(this,ge,ke<<24>>24)}return fe}()},{unsafe:!0})}V(D,w),V(W,T),L.exports={ArrayBuffer:D,DataView:W}},42320:function(L,r,n){"use strict";var e=n(40076),a=n(74067),t=n(8333),o=n(58937),m=Math.min;L.exports=[].copyWithin||function(){function N(y,S){var k=e(this),p=t(k),l=a(y,p),c=a(S,p),f=arguments.length>2?arguments[2]:void 0,u=m((f===void 0?p:a(f,p))-c,p-l),i=1;for(c0;)c in k?k[l]=k[c]:o(k,l),l+=i,c+=i;return k}return N}()},59942:function(L,r,n){"use strict";var e=n(40076),a=n(74067),t=n(8333);L.exports=function(){function o(m){for(var N=e(this),y=t(N),S=arguments.length,k=a(S>1?arguments[1]:void 0,y),p=S>2?arguments[2]:void 0,l=p===void 0?y:a(p,y);l>k;)N[k++]=m;return N}return o}()},75420:function(L,r,n){"use strict";var e=n(67480).forEach,a=n(42309),t=a("forEach");L.exports=t?[].forEach:function(){function o(m){return e(this,m,arguments.length>1?arguments[1]:void 0)}return o}()},6967:function(L,r,n){"use strict";var e=n(8333);L.exports=function(a,t,o){for(var m=0,N=arguments.length>2?o:e(t),y=new a(N);N>m;)y[m]=t[m++];return y}},80363:function(L,r,n){"use strict";var e=n(4509),a=n(62696),t=n(40076),o=n(17100),m=n(58482),N=n(60354),y=n(8333),S=n(12913),k=n(3438),p=n(76274),l=Array;L.exports=function(){function c(f){var u=t(f),i=N(this),s=arguments.length,d=s>1?arguments[1]:void 0,h=d!==void 0;h&&(d=e(d,s>2?arguments[2]:void 0));var v=p(u),g=0,C,V,b,B,I,w;if(v&&!(this===l&&m(v)))for(V=i?new this:[],B=k(u,v),I=B.next;!(b=a(I,B)).done;g++)w=h?o(B,d,[b.value,g],!0):b.value,S(V,g,w);else for(C=y(u),V=i?new this(C):l(C);C>g;g++)w=h?d(u[g],g):u[g],S(V,g,w);return V.length=g,V}return c}()},64210:function(L,r,n){"use strict";var e=n(96812),a=n(74067),t=n(8333),o=function(N){return function(y,S,k){var p=e(y),l=t(p);if(l===0)return!N&&-1;var c=a(k,l),f;if(N&&S!==S){for(;l>c;)if(f=p[c++],f!==f)return!0}else for(;l>c;c++)if((N||c in p)&&p[c]===S)return N||c||0;return!N&&-1}};L.exports={includes:o(!0),indexOf:o(!1)}},67480:function(L,r,n){"use strict";var e=n(4509),a=n(18161),t=n(26736),o=n(40076),m=n(8333),N=n(32878),y=a([].push),S=function(p){var l=p===1,c=p===2,f=p===3,u=p===4,i=p===6,s=p===7,d=p===5||i;return function(h,v,g,C){for(var V=o(h),b=t(V),B=m(b),I=e(v,g),w=0,T=C||N,A=l?T(h,B):c||s?T(h,0):void 0,x,E;B>w;w++)if((d||w in b)&&(x=b[w],E=I(x,w,V),p))if(l)A[w]=E;else if(E)switch(p){case 3:return!0;case 5:return x;case 6:return w;case 2:y(A,x)}else switch(p){case 4:return!1;case 7:y(A,x)}return i?-1:f||u?u:A}};L.exports={forEach:S(0),map:S(1),filter:S(2),some:S(3),every:S(4),find:S(5),findIndex:S(6),filterReject:S(7)}},16934:function(L,r,n){"use strict";var e=n(70918),a=n(96812),t=n(74952),o=n(8333),m=n(42309),N=Math.min,y=[].lastIndexOf,S=!!y&&1/[1].lastIndexOf(1,-0)<0,k=m("lastIndexOf"),p=S||!k;L.exports=p?function(){function l(c){if(S)return e(y,this,arguments)||0;var f=a(this),u=o(f);if(u===0)return-1;var i=u-1;for(arguments.length>1&&(i=N(i,t(arguments[1]))),i<0&&(i=u+i);i>=0;i--)if(i in f&&f[i]===c)return i||0;return-1}return l}():y},55114:function(L,r,n){"use strict";var e=n(41746),a=n(66266),t=n(82709),o=a("species");L.exports=function(m){return t>=51||!e(function(){var N=[],y=N.constructor={};return y[o]=function(){return{foo:1}},N[m](Boolean).foo!==1})}},42309:function(L,r,n){"use strict";var e=n(41746);L.exports=function(a,t){var o=[][a];return!!o&&e(function(){o.call(null,t||function(){return 1},1)})}},98405:function(L,r,n){"use strict";var e=n(97361),a=n(40076),t=n(26736),o=n(8333),m=TypeError,N="Reduce of empty array with no initial value",y=function(k){return function(p,l,c,f){var u=a(p),i=t(u),s=o(u);if(e(l),s===0&&c<2)throw new m(N);var d=k?s-1:0,h=k?-1:1;if(c<2)for(;;){if(d in i){f=i[d],d+=h;break}if(d+=h,k?d<0:s<=d)throw new m(N)}for(;k?d>=0:s>d;d+=h)d in i&&(f=l(f,i[d],d,u));return f}};L.exports={left:y(!1),right:y(!0)}},72720:function(L,r,n){"use strict";var e=n(14141),a=n(62367),t=TypeError,o=Object.getOwnPropertyDescriptor,m=e&&!function(){if(this!==void 0)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(N){return N instanceof TypeError}}();L.exports=m?function(N,y){if(a(N)&&!o(N,"length").writable)throw new t("Cannot set read only .length");return N.length=y}:function(N,y){return N.length=y}},77713:function(L,r,n){"use strict";var e=n(18161);L.exports=e([].slice)},44815:function(L,r,n){"use strict";var e=n(77713),a=Math.floor,t=function o(m,N){var y=m.length;if(y<8)for(var S=1,k,p;S0;)m[p]=m[--p];p!==S++&&(m[p]=k)}else for(var l=a(y/2),c=o(e(m,0,l),N),f=o(e(m,l),N),u=c.length,i=f.length,s=0,d=0;s1?arguments[1]:void 0),E;E=E?E.next:A.first;)for(x(E.value,E.key,this);E&&E.removed;)E=E.previous}return w}(),has:function(){function w(T){return!!I(this,T)}return w}()}),t(V,v?{get:function(){function w(T){var A=I(this,T);return A&&A.value}return w}(),set:function(){function w(T,A){return B(this,T===0?0:T,A)}return w}()}:{add:function(){function w(T){return B(this,T=T===0?0:T,T)}return w}()}),l&&a(V,"size",{configurable:!0,get:function(){function w(){return b(this).size}return w}()}),C}return s}(),setStrong:function(){function s(d,h,v){var g=h+" Iterator",C=i(h),V=i(g);S(d,h,function(b,B){u(this,{type:g,target:b,state:C(b),kind:B,last:void 0})},function(){for(var b=V(this),B=b.kind,I=b.last;I&&I.removed;)I=I.previous;return!b.target||!(b.last=I=I?I.next:b.state.first)?(b.target=void 0,k(void 0,!0)):k(B==="keys"?I.key:B==="values"?I.value:[I.key,I.value],!1)},v?"entries":"values",!v,!0),p(h)}return s}()}},32920:function(L,r,n){"use strict";var e=n(18161),a=n(13648),t=n(29126).getWeakData,o=n(19870),m=n(39482),N=n(1022),y=n(56831),S=n(281),k=n(67480),p=n(89458),l=n(35086),c=l.set,f=l.getterFor,u=k.find,i=k.findIndex,s=e([].splice),d=0,h=function(V){return V.frozen||(V.frozen=new v)},v=function(){this.entries=[]},g=function(V,b){return u(V.entries,function(B){return B[0]===b})};v.prototype={get:function(){function C(V){var b=g(this,V);if(b)return b[1]}return C}(),has:function(){function C(V){return!!g(this,V)}return C}(),set:function(){function C(V,b){var B=g(this,V);B?B[1]=b:this.entries.push([V,b])}return C}(),delete:function(){function C(V){var b=i(this.entries,function(B){return B[0]===V});return~b&&s(this.entries,b,1),!!~b}return C}()},L.exports={getConstructor:function(){function C(V,b,B,I){var w=V(function(E,M){o(E,T),c(E,{type:b,id:d++,frozen:void 0}),N(M)||S(M,E[I],{that:E,AS_ENTRIES:B})}),T=w.prototype,A=f(b),x=function(){function E(M,j,P){var R=A(M),D=t(m(j),!0);return D===!0?h(R).set(j,P):D[R.id]=P,M}return E}();return a(T,{delete:function(){function E(M){var j=A(this);if(!y(M))return!1;var P=t(M);return P===!0?h(j).delete(M):P&&p(P,j.id)&&delete P[j.id]}return E}(),has:function(){function E(M){var j=A(this);if(!y(M))return!1;var P=t(M);return P===!0?h(j).has(M):P&&p(P,j.id)}return E}()}),a(T,B?{get:function(){function E(M){var j=A(this);if(y(M)){var P=t(M);return P===!0?h(j).get(M):P?P[j.id]:void 0}}return E}(),set:function(){function E(M,j){return x(this,M,j)}return E}()}:{add:function(){function E(M){return x(this,M,!0)}return E}()}),w}return C}()}},93439:function(L,r,n){"use strict";var e=n(77549),a=n(40224),t=n(18161),o=n(95945),m=n(59173),N=n(29126),y=n(281),S=n(19870),k=n(7532),p=n(1022),l=n(56831),c=n(41746),f=n(52019),u=n(94234),i=n(2566);L.exports=function(s,d,h){var v=s.indexOf("Map")!==-1,g=s.indexOf("Weak")!==-1,C=v?"set":"add",V=a[s],b=V&&V.prototype,B=V,I={},w=function(R){var D=t(b[R]);m(b,R,R==="add"?function(){function F(W){return D(this,W===0?0:W),this}return F}():R==="delete"?function(F){return g&&!l(F)?!1:D(this,F===0?0:F)}:R==="get"?function(){function F(W){return g&&!l(W)?void 0:D(this,W===0?0:W)}return F}():R==="has"?function(){function F(W){return g&&!l(W)?!1:D(this,W===0?0:W)}return F}():function(){function F(W,_){return D(this,W===0?0:W,_),this}return F}())},T=o(s,!k(V)||!(g||b.forEach&&!c(function(){new V().entries().next()})));if(T)B=h.getConstructor(d,s,v,C),N.enable();else if(o(s,!0)){var A=new B,x=A[C](g?{}:-0,1)!==A,E=c(function(){A.has(1)}),M=f(function(P){new V(P)}),j=!g&&c(function(){for(var P=new V,R=5;R--;)P[C](R,R);return!P.has(-0)});M||(B=d(function(P,R){S(P,b);var D=i(new V,P,B);return p(R)||y(R,D[C],{that:D,AS_ENTRIES:v}),D}),B.prototype=b,b.constructor=B),(E||j)&&(w("delete"),w("has"),v&&w("get")),(j||x)&&w(C),g&&b.clear&&delete b.clear}return I[s]=B,e({global:!0,constructor:!0,forced:B!==V},I),u(B,s),g||h.setStrong(B,s,v),B}},70113:function(L,r,n){"use strict";var e=n(89458),a=n(93616),t=n(54168),o=n(56018);L.exports=function(m,N,y){for(var S=a(N),k=o.f,p=t.f,l=0;l"+p+""}},77056:function(L){"use strict";L.exports=function(r,n){return{value:r,done:n}}},16216:function(L,r,n){"use strict";var e=n(14141),a=n(56018),t=n(7539);L.exports=e?function(o,m,N){return a.f(o,m,t(1,N))}:function(o,m,N){return o[m]=N,o}},7539:function(L){"use strict";L.exports=function(r,n){return{enumerable:!(r&1),configurable:!(r&2),writable:!(r&4),value:n}}},12913:function(L,r,n){"use strict";var e=n(14141),a=n(56018),t=n(7539);L.exports=function(o,m,N){e?a.f(o,m,t(0,N)):o[m]=N}},74003:function(L,r,n){"use strict";var e=n(18161),a=n(41746),t=n(34086).start,o=RangeError,m=isFinite,N=Math.abs,y=Date.prototype,S=y.toISOString,k=e(y.getTime),p=e(y.getUTCDate),l=e(y.getUTCFullYear),c=e(y.getUTCHours),f=e(y.getUTCMilliseconds),u=e(y.getUTCMinutes),i=e(y.getUTCMonth),s=e(y.getUTCSeconds);L.exports=a(function(){return S.call(new Date(-50000000000001))!=="0385-07-25T07:06:39.999Z"})||!a(function(){S.call(new Date(NaN))})?function(){function d(){if(!m(k(this)))throw new o("Invalid time value");var h=this,v=l(h),g=f(h),C=v<0?"-":v>9999?"+":"";return C+t(N(v),C?6:4,0)+"-"+t(i(h)+1,2,0)+"-"+t(p(h),2,0)+"T"+t(c(h),2,0)+":"+t(u(h),2,0)+":"+t(s(h),2,0)+"."+t(g,3,0)+"Z"}return d}():S},95865:function(L,r,n){"use strict";var e=n(39482),a=n(14991),t=TypeError;L.exports=function(o){if(e(this),o==="string"||o==="default")o="string";else if(o!=="number")throw new t("Incorrect hint");return a(this,o)}},10069:function(L,r,n){"use strict";var e=n(76130),a=n(56018);L.exports=function(t,o,m){return m.get&&e(m.get,o,{getter:!0}),m.set&&e(m.set,o,{setter:!0}),a.f(t,o,m)}},59173:function(L,r,n){"use strict";var e=n(7532),a=n(56018),t=n(76130),o=n(93422);L.exports=function(m,N,y,S){S||(S={});var k=S.enumerable,p=S.name!==void 0?S.name:N;if(e(y)&&t(y,p,S),S.global)k?m[N]=y:o(N,y);else{try{S.unsafe?m[N]&&(k=!0):delete m[N]}catch(l){}k?m[N]=y:a.f(m,N,{value:y,enumerable:!1,configurable:!S.nonConfigurable,writable:!S.nonWritable})}return m}},13648:function(L,r,n){"use strict";var e=n(59173);L.exports=function(a,t,o){for(var m in t)e(a,m,t[m],o);return a}},93422:function(L,r,n){"use strict";var e=n(40224),a=Object.defineProperty;L.exports=function(t,o){try{a(e,t,{value:o,configurable:!0,writable:!0})}catch(m){e[t]=o}return o}},58937:function(L,r,n){"use strict";var e=n(62518),a=TypeError;L.exports=function(t,o){if(!delete t[o])throw new a("Cannot delete property "+e(o)+" of "+e(t))}},14141:function(L,r,n){"use strict";var e=n(41746);L.exports=!e(function(){return Object.defineProperty({},1,{get:function(){function a(){return 7}return a}()})[1]!==7})},85158:function(L,r,n){"use strict";var e=n(40224),a=n(56831),t=e.document,o=a(t)&&a(t.createElement);L.exports=function(m){return o?t.createElement(m):{}}},72434:function(L){"use strict";var r=TypeError,n=9007199254740991;L.exports=function(e){if(e>n)throw r("Maximum allowed index exceeded");return e}},49847:function(L,r,n){"use strict";var e=n(15837),a=e.match(/firefox\/(\d+)/i);L.exports=!!a&&+a[1]},27955:function(L,r,n){"use strict";var e=n(2971),a=n(95823);L.exports=!e&&!a&&typeof window=="object"&&typeof document=="object"},2178:function(L){"use strict";L.exports=typeof Bun=="function"&&Bun&&typeof Bun.version=="string"},2971:function(L){"use strict";L.exports=typeof Deno=="object"&&Deno&&typeof Deno.version=="object"},56605:function(L,r,n){"use strict";var e=n(15837);L.exports=/MSIE|Trident/.test(e)},6647:function(L,r,n){"use strict";var e=n(15837);L.exports=/ipad|iphone|ipod/i.test(e)&&typeof Pebble!="undefined"},52426:function(L,r,n){"use strict";var e=n(15837);L.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(e)},95823:function(L,r,n){"use strict";var e=n(40224),a=n(38817);L.exports=a(e.process)==="process"},25062:function(L,r,n){"use strict";var e=n(15837);L.exports=/web0s(?!.*chrome)/i.test(e)},15837:function(L){"use strict";L.exports=typeof navigator!="undefined"&&String(navigator.userAgent)||""},82709:function(L,r,n){"use strict";var e=n(40224),a=n(15837),t=e.process,o=e.Deno,m=t&&t.versions||o&&o.version,N=m&&m.v8,y,S;N&&(y=N.split("."),S=y[0]>0&&y[0]<4?1:+(y[0]+y[1])),!S&&a&&(y=a.match(/Edge\/(\d+)/),(!y||y[1]>=74)&&(y=a.match(/Chrome\/(\d+)/),y&&(S=+y[1]))),L.exports=S},53125:function(L,r,n){"use strict";var e=n(15837),a=e.match(/AppleWebKit\/(\d+)\./);L.exports=!!a&&+a[1]},90298:function(L){"use strict";L.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},77549:function(L,r,n){"use strict";var e=n(40224),a=n(54168).f,t=n(16216),o=n(59173),m=n(93422),N=n(70113),y=n(95945);L.exports=function(S,k){var p=S.target,l=S.global,c=S.stat,f,u,i,s,d,h;if(l?u=e:c?u=e[p]||m(p,{}):u=e[p]&&e[p].prototype,u)for(i in k){if(d=k[i],S.dontCallGetSet?(h=a(u,i),s=h&&h.value):s=u[i],f=y(l?i:p+(c?".":"#")+i,S.forced),!f&&s!==void 0){if(typeof d==typeof s)continue;N(d,s)}(S.sham||s&&s.sham)&&t(d,"sham",!0),o(u,i,d,S)}}},41746:function(L){"use strict";L.exports=function(r){try{return!!r()}catch(n){return!0}}},85427:function(L,r,n){"use strict";n(95880);var e=n(62696),a=n(59173),t=n(72894),o=n(41746),m=n(66266),N=n(16216),y=m("species"),S=RegExp.prototype;L.exports=function(k,p,l,c){var f=m(k),u=!o(function(){var h={};return h[f]=function(){return 7},""[k](h)!==7}),i=u&&!o(function(){var h=!1,v=/a/;return k==="split"&&(v={},v.constructor={},v.constructor[y]=function(){return v},v.flags="",v[f]=/./[f]),v.exec=function(){return h=!0,null},v[f](""),!h});if(!u||!i||l){var s=/./[f],d=p(f,""[k],function(h,v,g,C,V){var b=v.exec;return b===t||b===S.exec?u&&!V?{done:!0,value:e(s,v,g,C)}:{done:!0,value:e(h,g,v,C)}:{done:!1}});a(String.prototype,k,d[0]),a(S,f,d[1])}c&&N(S[f],"sham",!0)}},68864:function(L,r,n){"use strict";var e=n(62367),a=n(8333),t=n(72434),o=n(4509),m=function N(y,S,k,p,l,c,f,u){for(var i=l,s=0,d=f?o(f,u):!1,h,v;s0&&e(h)?(v=a(h),i=N(y,S,h,v,i,c-1)-1):(t(i+1),y[i]=h),i++),s++;return i};L.exports=m},56255:function(L,r,n){"use strict";var e=n(41746);L.exports=!e(function(){return Object.isExtensible(Object.preventExtensions({}))})},70918:function(L,r,n){"use strict";var e=n(76799),a=Function.prototype,t=a.apply,o=a.call;L.exports=typeof Reflect=="object"&&Reflect.apply||(e?o.bind(t):function(){return o.apply(t,arguments)})},4509:function(L,r,n){"use strict";var e=n(85067),a=n(97361),t=n(76799),o=e(e.bind);L.exports=function(m,N){return a(m),N===void 0?m:t?o(m,N):function(){return m.apply(N,arguments)}}},76799:function(L,r,n){"use strict";var e=n(41746);L.exports=!e(function(){var a=function(){}.bind();return typeof a!="function"||a.hasOwnProperty("prototype")})},9379:function(L,r,n){"use strict";var e=n(18161),a=n(97361),t=n(56831),o=n(89458),m=n(77713),N=n(76799),y=Function,S=e([].concat),k=e([].join),p={},l=function(f,u,i){if(!o(p,u)){for(var s=[],d=0;d]*>)/g,S=/\$([$&'`]|\d{1,2})/g;L.exports=function(k,p,l,c,f,u){var i=l+k.length,s=c.length,d=S;return f!==void 0&&(f=a(f),d=y),m(u,d,function(h,v){var g;switch(o(v,0)){case"$":return"$";case"&":return k;case"`":return N(p,0,l);case"'":return N(p,i);case"<":g=f[N(v,1,-1)];break;default:var C=+v;if(C===0)return h;if(C>s){var V=t(C/10);return V===0?h:V<=s?c[V-1]===void 0?o(v,1):c[V-1]+o(v,1):h}g=c[C-1]}return g===void 0?"":g})}},40224:function(L,r,n){"use strict";var e=function(t){return t&&t.Math===Math&&t};L.exports=e(typeof globalThis=="object"&&globalThis)||e(typeof window=="object"&&window)||e(typeof self=="object"&&self)||e(typeof n.g=="object"&&n.g)||e(!1)||function(){return this}()||Function("return this")()},89458:function(L,r,n){"use strict";var e=n(18161),a=n(40076),t=e({}.hasOwnProperty);L.exports=Object.hasOwn||function(){function o(m,N){return t(a(m),N)}return o}()},21124:function(L){"use strict";L.exports={}},46122:function(L){"use strict";L.exports=function(r,n){try{arguments.length}catch(e){}}},54562:function(L,r,n){"use strict";var e=n(40164);L.exports=e("document","documentElement")},1606:function(L,r,n){"use strict";var e=n(14141),a=n(41746),t=n(85158);L.exports=!e&&!a(function(){return Object.defineProperty(t("div"),"a",{get:function(){function o(){return 7}return o}()}).a!==7})},62263:function(L){"use strict";var r=Array,n=Math.abs,e=Math.pow,a=Math.floor,t=Math.log,o=Math.LN2,m=function(S,k,p){var l=r(p),c=p*8-k-1,f=(1<>1,i=k===23?e(2,-24)-e(2,-77):0,s=S<0||S===0&&1/S<0?1:0,d=0,h,v,g;for(S=n(S),S!==S||S===1/0?(v=S!==S?1:0,h=f):(h=a(t(S)/o),g=e(2,-h),S*g<1&&(h--,g*=2),h+u>=1?S+=i/g:S+=i*e(2,1-u),S*g>=2&&(h++,g/=2),h+u>=f?(v=0,h=f):h+u>=1?(v=(S*g-1)*e(2,k),h+=u):(v=S*e(2,u-1)*e(2,k),h=0));k>=8;)l[d++]=v&255,v/=256,k-=8;for(h=h<0;)l[d++]=h&255,h/=256,c-=8;return l[--d]|=s*128,l},N=function(S,k){var p=S.length,l=p*8-k-1,c=(1<>1,u=l-7,i=p-1,s=S[i--],d=s&127,h;for(s>>=7;u>0;)d=d*256+S[i--],u-=8;for(h=d&(1<<-u)-1,d>>=-u,u+=k;u>0;)h=h*256+S[i--],u-=8;if(d===0)d=1-f;else{if(d===c)return h?NaN:s?-1/0:1/0;h+=e(2,k),d-=f}return(s?-1:1)*h*e(2,d-k)};L.exports={pack:m,unpack:N}},26736:function(L,r,n){"use strict";var e=n(18161),a=n(41746),t=n(38817),o=Object,m=e("".split);L.exports=a(function(){return!o("z").propertyIsEnumerable(0)})?function(N){return t(N)==="String"?m(N,""):o(N)}:o},2566:function(L,r,n){"use strict";var e=n(7532),a=n(56831),t=n(42878);L.exports=function(o,m,N){var y,S;return t&&e(y=m.constructor)&&y!==N&&a(S=y.prototype)&&S!==N.prototype&&t(o,S),o}},43589:function(L,r,n){"use strict";var e=n(18161),a=n(7532),t=n(95046),o=e(Function.toString);a(t.inspectSource)||(t.inspectSource=function(m){return o(m)}),L.exports=t.inspectSource},29126:function(L,r,n){"use strict";var e=n(77549),a=n(18161),t=n(21124),o=n(56831),m=n(89458),N=n(56018).f,y=n(34813),S=n(63797),k=n(57975),p=n(33345),l=n(56255),c=!1,f=p("meta"),u=0,i=function(V){N(V,f,{value:{objectID:"O"+u++,weakData:{}}})},s=function(V,b){if(!o(V))return typeof V=="symbol"?V:(typeof V=="string"?"S":"P")+V;if(!m(V,f)){if(!k(V))return"F";if(!b)return"E";i(V)}return V[f].objectID},d=function(V,b){if(!m(V,f)){if(!k(V))return!0;if(!b)return!1;i(V)}return V[f].weakData},h=function(V){return l&&c&&k(V)&&!m(V,f)&&i(V),V},v=function(){g.enable=function(){},c=!0;var V=y.f,b=a([].splice),B={};B[f]=1,V(B).length&&(y.f=function(I){for(var w=V(I),T=0,A=w.length;TI;I++)if(T=M(u[I]),T&&y(f,T))return T;return new c(!1)}b=S(u,B)}for(A=v?u.next:b.next;!(x=a(A,b)).done;){try{T=M(x.value)}catch(j){p(b,"throw",j)}if(typeof T=="object"&&T&&y(f,T))return T}return new c(!1)}},14868:function(L,r,n){"use strict";var e=n(62696),a=n(39482),t=n(4817);L.exports=function(o,m,N){var y,S;a(o);try{if(y=t(o,"return"),!y){if(m==="throw")throw N;return N}y=e(y,o)}catch(k){S=!0,y=k}if(m==="throw")throw N;if(S)throw y;return a(y),N}},42599:function(L,r,n){"use strict";var e=n(85106).IteratorPrototype,a=n(28969),t=n(7539),o=n(94234),m=n(90604),N=function(){return this};L.exports=function(y,S,k,p){var l=S+" Iterator";return y.prototype=a(e,{next:t(+!p,k)}),o(y,l,!1,!0),m[l]=N,y}},2449:function(L,r,n){"use strict";var e=n(77549),a=n(62696),t=n(11478),o=n(26463),m=n(7532),N=n(42599),y=n(31658),S=n(42878),k=n(94234),p=n(16216),l=n(59173),c=n(66266),f=n(90604),u=n(85106),i=o.PROPER,s=o.CONFIGURABLE,d=u.IteratorPrototype,h=u.BUGGY_SAFARI_ITERATORS,v=c("iterator"),g="keys",C="values",V="entries",b=function(){return this};L.exports=function(B,I,w,T,A,x,E){N(w,I,T);var M=function(X){if(X===A&&F)return F;if(!h&&X&&X in R)return R[X];switch(X){case g:return function(){function J(){return new w(this,X)}return J}();case C:return function(){function J(){return new w(this,X)}return J}();case V:return function(){function J(){return new w(this,X)}return J}()}return function(){return new w(this)}},j=I+" Iterator",P=!1,R=B.prototype,D=R[v]||R["@@iterator"]||A&&R[A],F=!h&&D||M(A),W=I==="Array"&&R.entries||D,_,H,z;if(W&&(_=y(W.call(new B)),_!==Object.prototype&&_.next&&(!t&&y(_)!==d&&(S?S(_,d):m(_[v])||l(_,v,b)),k(_,j,!0,!0),t&&(f[j]=b))),i&&A===C&&D&&D.name!==C&&(!t&&s?p(R,"name",C):(P=!0,F=function(){function $(){return a(D,this)}return $}())),A)if(H={values:M(C),keys:x?F:M(g),entries:M(V)},E)for(z in H)(h||P||!(z in R))&&l(R,z,H[z]);else e({target:I,proto:!0,forced:h||P},H);return(!t||E)&&R[v]!==F&&l(R,v,F,{name:A}),f[I]=F,H}},85106:function(L,r,n){"use strict";var e=n(41746),a=n(7532),t=n(56831),o=n(28969),m=n(31658),N=n(59173),y=n(66266),S=n(11478),k=y("iterator"),p=!1,l,c,f;[].keys&&(f=[].keys(),"next"in f?(c=m(m(f)),c!==Object.prototype&&(l=c)):p=!0);var u=!t(l)||e(function(){var i={};return l[k].call(i)!==i});u?l={}:S&&(l=o(l)),a(l[k])||N(l,k,function(){return this}),L.exports={IteratorPrototype:l,BUGGY_SAFARI_ITERATORS:p}},90604:function(L){"use strict";L.exports={}},8333:function(L,r,n){"use strict";var e=n(10475);L.exports=function(a){return e(a.length)}},76130:function(L,r,n){"use strict";var e=n(18161),a=n(41746),t=n(7532),o=n(89458),m=n(14141),N=n(26463).CONFIGURABLE,y=n(43589),S=n(35086),k=S.enforce,p=S.get,l=String,c=Object.defineProperty,f=e("".slice),u=e("".replace),i=e([].join),s=m&&!a(function(){return c(function(){},"length",{value:8}).length!==8}),d=String(String).split("String"),h=L.exports=function(v,g,C){f(l(g),0,7)==="Symbol("&&(g="["+u(l(g),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),C&&C.getter&&(g="get "+g),C&&C.setter&&(g="set "+g),(!o(v,"name")||N&&v.name!==g)&&(m?c(v,"name",{value:g,configurable:!0}):v.name=g),s&&C&&o(C,"arity")&&v.length!==C.arity&&c(v,"length",{value:C.arity});try{C&&o(C,"constructor")&&C.constructor?m&&c(v,"prototype",{writable:!1}):v.prototype&&(v.prototype=void 0)}catch(b){}var V=k(v);return o(V,"source")||(V.source=i(d,typeof g=="string"?g:"")),v};Function.prototype.toString=h(function(){function v(){return t(this)&&p(this).source||y(this)}return v}(),"toString")},32813:function(L){"use strict";var r=Math.expm1,n=Math.exp;L.exports=!r||r(10)>22025.465794806718||r(10)<22025.465794806718||r(-2e-17)!==-2e-17?function(){function e(a){var t=+a;return t===0?t:t>-1e-6&&t<1e-6?t+t*t/2:n(t)-1}return e}():r},23207:function(L,r,n){"use strict";var e=n(54307),a=Math.abs,t=2220446049250313e-31,o=1/t,m=function(y){return y+o-o};L.exports=function(N,y,S,k){var p=+N,l=a(p),c=e(p);if(lS||u!==u?c*(1/0):c*u}},75988:function(L,r,n){"use strict";var e=n(23207),a=11920928955078125e-23,t=34028234663852886e22,o=11754943508222875e-54;L.exports=Math.fround||function(){function m(N){return e(N,a,t,o)}return m}()},53271:function(L){"use strict";var r=Math.log,n=Math.LOG10E;L.exports=Math.log10||function(){function e(a){return r(a)*n}return e}()},69143:function(L){"use strict";var r=Math.log;L.exports=Math.log1p||function(){function n(e){var a=+e;return a>-1e-8&&a<1e-8?a-a*a/2:r(1+a)}return n}()},54307:function(L){"use strict";L.exports=Math.sign||function(){function r(n){var e=+n;return e===0||e!==e?e:e<0?-1:1}return r}()},34606:function(L){"use strict";var r=Math.ceil,n=Math.floor;L.exports=Math.trunc||function(){function e(a){var t=+a;return(t>0?n:r)(t)}return e}()},27150:function(L,r,n){"use strict";var e=n(40224),a=n(1156),t=n(4509),o=n(91314).set,m=n(23496),N=n(52426),y=n(6647),S=n(25062),k=n(95823),p=e.MutationObserver||e.WebKitMutationObserver,l=e.document,c=e.process,f=e.Promise,u=a("queueMicrotask"),i,s,d,h,v;if(!u){var g=new m,C=function(){var b,B;for(k&&(b=c.domain)&&b.exit();B=g.get();)try{B()}catch(I){throw g.head&&i(),I}b&&b.enter()};!N&&!k&&!S&&p&&l?(s=!0,d=l.createTextNode(""),new p(C).observe(d,{characterData:!0}),i=function(){d.data=s=!s}):!y&&f&&f.resolve?(h=f.resolve(void 0),h.constructor=f,v=t(h.then,h),i=function(){v(C)}):k?i=function(){c.nextTick(C)}:(o=t(o,e),i=function(){o(C)}),u=function(b){g.head||i(),g.add(b)}}L.exports=u},48532:function(L,r,n){"use strict";var e=n(97361),a=TypeError,t=function(m){var N,y;this.promise=new m(function(S,k){if(N!==void 0||y!==void 0)throw new a("Bad Promise constructor");N=S,y=k}),this.resolve=e(N),this.reject=e(y)};L.exports.f=function(o){return new t(o)}},89140:function(L,r,n){"use strict";var e=n(80969),a=TypeError;L.exports=function(t){if(e(t))throw new a("The method doesn't accept regular expressions");return t}},69079:function(L,r,n){"use strict";var e=n(40224),a=e.isFinite;L.exports=Number.isFinite||function(){function t(o){return typeof o=="number"&&a(o)}return t}()},43283:function(L,r,n){"use strict";var e=n(40224),a=n(41746),t=n(18161),o=n(26602),m=n(35171).trim,N=n(137),y=t("".charAt),S=e.parseFloat,k=e.Symbol,p=k&&k.iterator,l=1/S(N+"-0")!==-1/0||p&&!a(function(){S(Object(p))});L.exports=l?function(){function c(f){var u=m(o(f)),i=S(u);return i===0&&y(u,0)==="-"?-0:i}return c}():S},11540:function(L,r,n){"use strict";var e=n(40224),a=n(41746),t=n(18161),o=n(26602),m=n(35171).trim,N=n(137),y=e.parseInt,S=e.Symbol,k=S&&S.iterator,p=/^[+-]?0x/i,l=t(p.exec),c=y(N+"08")!==8||y(N+"0x16")!==22||k&&!a(function(){y(Object(k))});L.exports=c?function(){function f(u,i){var s=m(o(u));return y(s,i>>>0||(l(p,s)?16:10))}return f}():y},12752:function(L,r,n){"use strict";var e=n(14141),a=n(18161),t=n(62696),o=n(41746),m=n(84913),N=n(34220),y=n(9776),S=n(40076),k=n(26736),p=Object.assign,l=Object.defineProperty,c=a([].concat);L.exports=!p||o(function(){if(e&&p({b:1},p(l({},"a",{enumerable:!0,get:function(){function d(){l(this,"b",{value:3,enumerable:!1})}return d}()}),{b:2})).b!==1)return!0;var f={},u={},i=Symbol("assign detection"),s="abcdefghijklmnopqrst";return f[i]=7,s.split("").forEach(function(d){u[d]=d}),p({},f)[i]!==7||m(p({},u)).join("")!==s})?function(){function f(u,i){for(var s=S(u),d=arguments.length,h=1,v=N.f,g=y.f;d>h;)for(var C=k(arguments[h++]),V=v?c(m(C),v(C)):m(C),b=V.length,B=0,I;b>B;)I=V[B++],(!e||t(g,C,I))&&(s[I]=C[I]);return s}return f}():p},28969:function(L,r,n){"use strict";var e=n(39482),a=n(65854),t=n(90298),o=n(21124),m=n(54562),N=n(85158),y=n(5160),S=">",k="<",p="prototype",l="script",c=y("IE_PROTO"),f=function(){},u=function(g){return k+l+S+g+k+"/"+l+S},i=function(g){g.write(u("")),g.close();var C=g.parentWindow.Object;return g=null,C},s=function(){var g=N("iframe"),C="java"+l+":",V;return g.style.display="none",m.appendChild(g),g.src=String(C),V=g.contentWindow.document,V.open(),V.write(u("document.F=Object")),V.close(),V.F},d,h=function(){try{d=new ActiveXObject("htmlfile")}catch(C){}h=typeof document!="undefined"?document.domain&&d?i(d):s():i(d);for(var g=t.length;g--;)delete h[p][t[g]];return h()};o[c]=!0,L.exports=Object.create||function(){function v(g,C){var V;return g!==null?(f[p]=e(g),V=new f,f[p]=null,V[c]=g):V=h(),C===void 0?V:a.f(V,C)}return v}()},65854:function(L,r,n){"use strict";var e=n(14141),a=n(83411),t=n(56018),o=n(39482),m=n(96812),N=n(84913);r.f=e&&!a?Object.defineProperties:function(){function y(S,k){o(S);for(var p=m(k),l=N(k),c=l.length,f=0,u;c>f;)t.f(S,u=l[f++],p[u]);return S}return y}()},56018:function(L,r,n){"use strict";var e=n(14141),a=n(1606),t=n(83411),o=n(39482),m=n(57640),N=TypeError,y=Object.defineProperty,S=Object.getOwnPropertyDescriptor,k="enumerable",p="configurable",l="writable";r.f=e?t?function(){function c(f,u,i){if(o(f),u=m(u),o(i),typeof f=="function"&&u==="prototype"&&"value"in i&&l in i&&!i[l]){var s=S(f,u);s&&s[l]&&(f[u]=i.value,i={configurable:p in i?i[p]:s[p],enumerable:k in i?i[k]:s[k],writable:!1})}return y(f,u,i)}return c}():y:function(){function c(f,u,i){if(o(f),u=m(u),o(i),a)try{return y(f,u,i)}catch(s){}if("get"in i||"set"in i)throw new N("Accessors not supported");return"value"in i&&(f[u]=i.value),f}return c}()},54168:function(L,r,n){"use strict";var e=n(14141),a=n(62696),t=n(9776),o=n(7539),m=n(96812),N=n(57640),y=n(89458),S=n(1606),k=Object.getOwnPropertyDescriptor;r.f=e?k:function(){function p(l,c){if(l=m(l),c=N(c),S)try{return k(l,c)}catch(f){}if(y(l,c))return o(!a(t.f,l,c),l[c])}return p}()},63797:function(L,r,n){"use strict";var e=n(38817),a=n(96812),t=n(34813).f,o=n(77713),m=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],N=function(S){try{return t(S)}catch(k){return o(m)}};L.exports.f=function(){function y(S){return m&&e(S)==="Window"?N(S):t(a(S))}return y}()},34813:function(L,r,n){"use strict";var e=n(62995),a=n(90298),t=a.concat("length","prototype");r.f=Object.getOwnPropertyNames||function(){function o(m){return e(m,t)}return o}()},34220:function(L,r){"use strict";r.f=Object.getOwnPropertySymbols},31658:function(L,r,n){"use strict";var e=n(89458),a=n(7532),t=n(40076),o=n(5160),m=n(58776),N=o("IE_PROTO"),y=Object,S=y.prototype;L.exports=m?y.getPrototypeOf:function(k){var p=t(k);if(e(p,N))return p[N];var l=p.constructor;return a(l)&&p instanceof l?l.prototype:p instanceof y?S:null}},57975:function(L,r,n){"use strict";var e=n(41746),a=n(56831),t=n(38817),o=n(65693),m=Object.isExtensible,N=e(function(){m(1)});L.exports=N||o?function(){function y(S){return!a(S)||o&&t(S)==="ArrayBuffer"?!1:m?m(S):!0}return y}():m},33314:function(L,r,n){"use strict";var e=n(18161);L.exports=e({}.isPrototypeOf)},62995:function(L,r,n){"use strict";var e=n(18161),a=n(89458),t=n(96812),o=n(64210).indexOf,m=n(21124),N=e([].push);L.exports=function(y,S){var k=t(y),p=0,l=[],c;for(c in k)!a(m,c)&&a(k,c)&&N(l,c);for(;S.length>p;)a(k,c=S[p++])&&(~o(l,c)||N(l,c));return l}},84913:function(L,r,n){"use strict";var e=n(62995),a=n(90298);L.exports=Object.keys||function(){function t(o){return e(o,a)}return t}()},9776:function(L,r){"use strict";var n={}.propertyIsEnumerable,e=Object.getOwnPropertyDescriptor,a=e&&!n.call({1:2},1);r.f=a?function(){function t(o){var m=e(this,o);return!!m&&m.enumerable}return t}():n},33030:function(L,r,n){"use strict";var e=n(11478),a=n(40224),t=n(41746),o=n(53125);L.exports=e||!t(function(){if(!(o&&o<535)){var m=Math.random();__defineSetter__.call(null,m,function(){}),delete a[m]}})},42878:function(L,r,n){"use strict";var e=n(9553),a=n(56831),t=n(91029),o=n(51689);L.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var m=!1,N={},y;try{y=e(Object.prototype,"__proto__","set"),y(N,[]),m=N instanceof Array}catch(S){}return function(){function S(k,p){return t(k),o(p),a(k)&&(m?y(k,p):k.__proto__=p),k}return S}()}():void 0)},97452:function(L,r,n){"use strict";var e=n(14141),a=n(41746),t=n(18161),o=n(31658),m=n(84913),N=n(96812),y=n(9776).f,S=t(y),k=t([].push),p=e&&a(function(){var c=Object.create(null);return c[2]=2,!S(c,2)}),l=function(f){return function(u){for(var i=N(u),s=m(i),d=p&&o(i)===null,h=s.length,v=0,g=[],C;h>v;)C=s[v++],(!e||(d?C in i:S(i,C)))&&k(g,f?[C,i[C]]:i[C]);return g}};L.exports={entries:l(!0),values:l(!1)}},66628:function(L,r,n){"use strict";var e=n(82161),a=n(27806);L.exports=e?{}.toString:function(){function t(){return"[object "+a(this)+"]"}return t}()},14991:function(L,r,n){"use strict";var e=n(62696),a=n(7532),t=n(56831),o=TypeError;L.exports=function(m,N){var y,S;if(N==="string"&&a(y=m.toString)&&!t(S=e(y,m))||a(y=m.valueOf)&&!t(S=e(y,m))||N!=="string"&&a(y=m.toString)&&!t(S=e(y,m)))return S;throw new o("Can't convert object to primitive value")}},93616:function(L,r,n){"use strict";var e=n(40164),a=n(18161),t=n(34813),o=n(34220),m=n(39482),N=a([].concat);L.exports=e("Reflect","ownKeys")||function(){function y(S){var k=t.f(m(S)),p=o.f;return p?N(k,p(S)):k}return y}()},5376:function(L,r,n){"use strict";var e=n(40224);L.exports=e},91114:function(L){"use strict";L.exports=function(r){try{return{error:!1,value:r()}}catch(n){return{error:!0,value:n}}}},49669:function(L,r,n){"use strict";var e=n(40224),a=n(35973),t=n(7532),o=n(95945),m=n(43589),N=n(66266),y=n(27955),S=n(2971),k=n(11478),p=n(82709),l=a&&a.prototype,c=N("species"),f=!1,u=t(e.PromiseRejectionEvent),i=o("Promise",function(){var s=m(a),d=s!==String(a);if(!d&&p===66||k&&!(l.catch&&l.finally))return!0;if(!p||p<51||!/native code/.test(s)){var h=new a(function(C){C(1)}),v=function(V){V(function(){},function(){})},g=h.constructor={};if(g[c]=v,f=h.then(function(){})instanceof v,!f)return!0}return!d&&(y||S)&&!u});L.exports={CONSTRUCTOR:i,REJECTION_EVENT:u,SUBCLASSING:f}},35973:function(L,r,n){"use strict";var e=n(40224);L.exports=e.Promise},43827:function(L,r,n){"use strict";var e=n(39482),a=n(56831),t=n(48532);L.exports=function(o,m){if(e(o),a(m)&&m.constructor===o)return m;var N=t.f(o),y=N.resolve;return y(m),N.promise}},95044:function(L,r,n){"use strict";var e=n(35973),a=n(52019),t=n(49669).CONSTRUCTOR;L.exports=t||!a(function(o){e.all(o).then(void 0,function(){})})},77495:function(L,r,n){"use strict";var e=n(56018).f;L.exports=function(a,t,o){o in a||e(a,o,{configurable:!0,get:function(){function m(){return t[o]}return m}(),set:function(){function m(N){t[o]=N}return m}()})}},23496:function(L){"use strict";var r=function(){this.head=null,this.tail=null};r.prototype={add:function(){function n(e){var a={item:e,next:null},t=this.tail;t?t.next=a:this.head=a,this.tail=a}return n}(),get:function(){function n(){var e=this.head;if(e){var a=this.head=e.next;return a===null&&(this.tail=null),e.item}}return n}()},L.exports=r},35553:function(L,r,n){"use strict";var e=n(62696),a=n(39482),t=n(7532),o=n(38817),m=n(72894),N=TypeError;L.exports=function(y,S){var k=y.exec;if(t(k)){var p=e(k,y,S);return p!==null&&a(p),p}if(o(y)==="RegExp")return e(m,y,S);throw new N("RegExp#exec called on incompatible receiver")}},72894:function(L,r,n){"use strict";var e=n(62696),a=n(18161),t=n(26602),o=n(65844),m=n(1064),N=n(75130),y=n(28969),S=n(35086).get,k=n(89604),p=n(5489),l=N("native-string-replace",String.prototype.replace),c=RegExp.prototype.exec,f=c,u=a("".charAt),i=a("".indexOf),s=a("".replace),d=a("".slice),h=function(){var V=/a/,b=/b*/g;return e(c,V,"a"),e(c,b,"a"),V.lastIndex!==0||b.lastIndex!==0}(),v=m.BROKEN_CARET,g=/()??/.exec("")[1]!==void 0,C=h||g||v||k||p;C&&(f=function(){function V(b){var B=this,I=S(B),w=t(b),T=I.raw,A,x,E,M,j,P,R;if(T)return T.lastIndex=B.lastIndex,A=e(f,T,w),B.lastIndex=T.lastIndex,A;var D=I.groups,F=v&&B.sticky,W=e(o,B),_=B.source,H=0,z=w;if(F&&(W=s(W,"y",""),i(W,"g")===-1&&(W+="g"),z=d(w,B.lastIndex),B.lastIndex>0&&(!B.multiline||B.multiline&&u(w,B.lastIndex-1)!=="\n")&&(_="(?: "+_+")",z=" "+z,H++),x=new RegExp("^(?:"+_+")",W)),g&&(x=new RegExp("^"+_+"$(?!\\s)",W)),h&&(E=B.lastIndex),M=e(c,F?x:B,z),F?M?(M.input=d(M.input,H),M[0]=d(M[0],H),M.index=B.lastIndex,B.lastIndex+=M[0].length):B.lastIndex=0:h&&M&&(B.lastIndex=B.global?M.index+M[0].length:E),g&&M&&M.length>1&&e(l,M[0],x,function(){for(j=1;jb)","g");return o.exec("b").groups.a!=="b"||"b".replace(o,"$c")!=="bc"})},91029:function(L,r,n){"use strict";var e=n(1022),a=TypeError;L.exports=function(t){if(e(t))throw new a("Can't call method on "+t);return t}},1156:function(L,r,n){"use strict";var e=n(40224),a=n(14141),t=Object.getOwnPropertyDescriptor;L.exports=function(o){if(!a)return e[o];var m=t(e,o);return m&&m.value}},37309:function(L){"use strict";L.exports=Object.is||function(){function r(n,e){return n===e?n!==0||1/n===1/e:n!==n&&e!==e}return r}()},83827:function(L,r,n){"use strict";var e=n(40224),a=n(70918),t=n(7532),o=n(2178),m=n(15837),N=n(77713),y=n(22789),S=e.Function,k=/MSIE .\./.test(m)||o&&function(){var p=e.Bun.version.split(".");return p.length<3||p[0]==="0"&&(p[1]<3||p[1]==="3"&&p[2]==="0")}();L.exports=function(p,l){var c=l?2:1;return k?function(f,u){var i=y(arguments.length,1)>c,s=t(f)?f:S(f),d=i?N(arguments,c):[],h=i?function(){a(s,this,d)}:s;return l?p(h,u):p(h)}:p}},67420:function(L,r,n){"use strict";var e=n(40164),a=n(10069),t=n(66266),o=n(14141),m=t("species");L.exports=function(N){var y=e(N);o&&y&&!y[m]&&a(y,m,{configurable:!0,get:function(){function S(){return this}return S}()})}},94234:function(L,r,n){"use strict";var e=n(56018).f,a=n(89458),t=n(66266),o=t("toStringTag");L.exports=function(m,N,y){m&&!y&&(m=m.prototype),m&&!a(m,o)&&e(m,o,{configurable:!0,value:N})}},5160:function(L,r,n){"use strict";var e=n(75130),a=n(33345),t=e("keys");L.exports=function(o){return t[o]||(t[o]=a(o))}},95046:function(L,r,n){"use strict";var e=n(11478),a=n(40224),t=n(93422),o="__core-js_shared__",m=L.exports=a[o]||t(o,{});(m.versions||(m.versions=[])).push({version:"3.36.1",mode:e?"pure":"global",copyright:"\xA9 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.36.1/LICENSE",source:"https://github.com/zloirock/core-js"})},75130:function(L,r,n){"use strict";var e=n(95046);L.exports=function(a,t){return e[a]||(e[a]=t||{})}},78412:function(L,r,n){"use strict";var e=n(39482),a=n(76833),t=n(1022),o=n(66266),m=o("species");L.exports=function(N,y){var S=e(N).constructor,k;return S===void 0||t(k=e(S)[m])?y:a(k)}},32086:function(L,r,n){"use strict";var e=n(41746);L.exports=function(a){return e(function(){var t=""[a]('"');return t!==t.toLowerCase()||t.split('"').length>3})}},56852:function(L,r,n){"use strict";var e=n(18161),a=n(74952),t=n(26602),o=n(91029),m=e("".charAt),N=e("".charCodeAt),y=e("".slice),S=function(p){return function(l,c){var f=t(o(l)),u=a(c),i=f.length,s,d;return u<0||u>=i?p?"":void 0:(s=N(f,u),s<55296||s>56319||u+1===i||(d=N(f,u+1))<56320||d>57343?p?m(f,u):s:p?y(f,u,u+2):(s-55296<<10)+(d-56320)+65536)}};L.exports={codeAt:S(!1),charAt:S(!0)}},33038:function(L,r,n){"use strict";var e=n(15837);L.exports=/Version\/10(?:\.\d+){1,2}(?: [\w./]+)?(?: Mobile\/\w+)? Safari\//.test(e)},34086:function(L,r,n){"use strict";var e=n(18161),a=n(10475),t=n(26602),o=n(84948),m=n(91029),N=e(o),y=e("".slice),S=Math.ceil,k=function(l){return function(c,f,u){var i=t(m(c)),s=a(f),d=i.length,h=u===void 0?" ":t(u),v,g;return s<=d||h===""?i:(v=s-d,g=N(h,S(v/h.length)),g.length>v&&(g=y(g,0,v)),l?i+g:g+i)}};L.exports={start:k(!1),end:k(!0)}},84948:function(L,r,n){"use strict";var e=n(74952),a=n(26602),t=n(91029),o=RangeError;L.exports=function(){function m(N){var y=a(t(this)),S="",k=e(N);if(k<0||k===1/0)throw new o("Wrong number of repetitions");for(;k>0;(k>>>=1)&&(y+=y))k&1&&(S+=y);return S}return m}()},11775:function(L,r,n){"use strict";var e=n(35171).end,a=n(93817);L.exports=a("trimEnd")?function(){function t(){return e(this)}return t}():"".trimEnd},93817:function(L,r,n){"use strict";var e=n(26463).PROPER,a=n(41746),t=n(137),o="\u200B\x85\u180E";L.exports=function(m){return a(function(){return!!t[m]()||o[m]()!==o||e&&t[m].name!==m})}},26402:function(L,r,n){"use strict";var e=n(35171).start,a=n(93817);L.exports=a("trimStart")?function(){function t(){return e(this)}return t}():"".trimStart},35171:function(L,r,n){"use strict";var e=n(18161),a=n(91029),t=n(26602),o=n(137),m=e("".replace),N=RegExp("^["+o+"]+"),y=RegExp("(^|[^"+o+"])["+o+"]+$"),S=function(p){return function(l){var c=t(a(l));return p&1&&(c=m(c,N,"")),p&2&&(c=m(c,y,"$1")),c}};L.exports={start:S(1),end:S(2),trim:S(3)}},70640:function(L,r,n){"use strict";var e=n(82709),a=n(41746),t=n(40224),o=t.String;L.exports=!!Object.getOwnPropertySymbols&&!a(function(){var m=Symbol("symbol detection");return!o(m)||!(Object(m)instanceof Symbol)||!Symbol.sham&&e&&e<41})},75429:function(L,r,n){"use strict";var e=n(62696),a=n(40164),t=n(66266),o=n(59173);L.exports=function(){var m=a("Symbol"),N=m&&m.prototype,y=N&&N.valueOf,S=t("toPrimitive");N&&!N[S]&&o(N,S,function(k){return e(y,this)},{arity:1})}},80353:function(L,r,n){"use strict";var e=n(70640);L.exports=e&&!!Symbol.for&&!!Symbol.keyFor},91314:function(L,r,n){"use strict";var e=n(40224),a=n(70918),t=n(4509),o=n(7532),m=n(89458),N=n(41746),y=n(54562),S=n(77713),k=n(85158),p=n(22789),l=n(52426),c=n(95823),f=e.setImmediate,u=e.clearImmediate,i=e.process,s=e.Dispatch,d=e.Function,h=e.MessageChannel,v=e.String,g=0,C={},V="onreadystatechange",b,B,I,w;N(function(){b=e.location});var T=function(j){if(m(C,j)){var P=C[j];delete C[j],P()}},A=function(j){return function(){T(j)}},x=function(j){T(j.data)},E=function(j){e.postMessage(v(j),b.protocol+"//"+b.host)};(!f||!u)&&(f=function(){function M(j){p(arguments.length,1);var P=o(j)?j:d(j),R=S(arguments,1);return C[++g]=function(){a(P,void 0,R)},B(g),g}return M}(),u=function(){function M(j){delete C[j]}return M}(),c?B=function(j){i.nextTick(A(j))}:s&&s.now?B=function(j){s.now(A(j))}:h&&!l?(I=new h,w=I.port2,I.port1.onmessage=x,B=t(w.postMessage,w)):e.addEventListener&&o(e.postMessage)&&!e.importScripts&&b&&b.protocol!=="file:"&&!N(E)?(B=E,e.addEventListener("message",x,!1)):V in k("script")?B=function(j){y.appendChild(k("script"))[V]=function(){y.removeChild(this),T(j)}}:B=function(j){setTimeout(A(j),0)}),L.exports={set:f,clear:u}},37497:function(L,r,n){"use strict";var e=n(18161);L.exports=e(1 .valueOf)},74067:function(L,r,n){"use strict";var e=n(74952),a=Math.max,t=Math.min;L.exports=function(o,m){var N=e(o);return N<0?a(N+m,0):t(N,m)}},757:function(L,r,n){"use strict";var e=n(4370),a=TypeError;L.exports=function(t){var o=e(t,"number");if(typeof o=="number")throw new a("Can't convert number to bigint");return BigInt(o)}},90835:function(L,r,n){"use strict";var e=n(74952),a=n(10475),t=RangeError;L.exports=function(o){if(o===void 0)return 0;var m=e(o),N=a(m);if(m!==N)throw new t("Wrong length or index");return N}},96812:function(L,r,n){"use strict";var e=n(26736),a=n(91029);L.exports=function(t){return e(a(t))}},74952:function(L,r,n){"use strict";var e=n(34606);L.exports=function(a){var t=+a;return t!==t||t===0?0:e(t)}},10475:function(L,r,n){"use strict";var e=n(74952),a=Math.min;L.exports=function(t){var o=e(t);return o>0?a(o,9007199254740991):0}},40076:function(L,r,n){"use strict";var e=n(91029),a=Object;L.exports=function(t){return a(e(t))}},65264:function(L,r,n){"use strict";var e=n(43627),a=RangeError;L.exports=function(t,o){var m=e(t);if(m%o)throw new a("Wrong offset");return m}},43627:function(L,r,n){"use strict";var e=n(74952),a=RangeError;L.exports=function(t){var o=e(t);if(o<0)throw new a("The argument can't be less than 0");return o}},4370:function(L,r,n){"use strict";var e=n(62696),a=n(56831),t=n(74352),o=n(4817),m=n(14991),N=n(66266),y=TypeError,S=N("toPrimitive");L.exports=function(k,p){if(!a(k)||t(k))return k;var l=o(k,S),c;if(l){if(p===void 0&&(p="default"),c=e(l,k,p),!a(c)||t(c))return c;throw new y("Can't convert object to primitive value")}return p===void 0&&(p="number"),m(k,p)}},57640:function(L,r,n){"use strict";var e=n(4370),a=n(74352);L.exports=function(t){var o=e(t,"string");return a(o)?o:o+""}},82161:function(L,r,n){"use strict";var e=n(66266),a=e("toStringTag"),t={};t[a]="z",L.exports=String(t)==="[object z]"},26602:function(L,r,n){"use strict";var e=n(27806),a=String;L.exports=function(t){if(e(t)==="Symbol")throw new TypeError("Cannot convert a Symbol value to a string");return a(t)}},78828:function(L){"use strict";var r=Math.round;L.exports=function(n){var e=r(n);return e<0?0:e>255?255:e&255}},62518:function(L){"use strict";var r=String;L.exports=function(n){try{return r(n)}catch(e){return"Object"}}},12218:function(L,r,n){"use strict";var e=n(77549),a=n(40224),t=n(62696),o=n(14141),m=n(66220),N=n(72951),y=n(46185),S=n(19870),k=n(7539),p=n(16216),l=n(57696),c=n(10475),f=n(90835),u=n(65264),i=n(78828),s=n(57640),d=n(89458),h=n(27806),v=n(56831),g=n(74352),C=n(28969),V=n(33314),b=n(42878),B=n(34813).f,I=n(7996),w=n(67480).forEach,T=n(67420),A=n(10069),x=n(56018),E=n(54168),M=n(6967),j=n(35086),P=n(2566),R=j.get,D=j.set,F=j.enforce,W=x.f,_=E.f,H=a.RangeError,z=y.ArrayBuffer,$=z.prototype,X=y.DataView,J=N.NATIVE_ARRAY_BUFFER_VIEWS,ce=N.TYPED_ARRAY_TAG,re=N.TypedArray,me=N.TypedArrayPrototype,pe=N.isTypedArray,ye="BYTES_PER_ELEMENT",Be="Wrong length",he=function(ne,be){A(ne,be,{configurable:!0,get:function(){function fe(){return R(this)[be]}return fe}()})},oe=function(ne){var be;return V($,ne)||(be=h(ne))==="ArrayBuffer"||be==="SharedArrayBuffer"},Z=function(ne,be){return pe(ne)&&!g(be)&&be in ne&&l(+be)&&be>=0},q=function(){function se(ne,be){return be=s(be),Z(ne,be)?k(2,ne[be]):_(ne,be)}return se}(),ue=function(){function se(ne,be,fe){return be=s(be),Z(ne,be)&&v(fe)&&d(fe,"value")&&!d(fe,"get")&&!d(fe,"set")&&!fe.configurable&&(!d(fe,"writable")||fe.writable)&&(!d(fe,"enumerable")||fe.enumerable)?(ne[be]=fe.value,ne):W(ne,be,fe)}return se}();o?(J||(E.f=q,x.f=ue,he(me,"buffer"),he(me,"byteOffset"),he(me,"byteLength"),he(me,"length")),e({target:"Object",stat:!0,forced:!J},{getOwnPropertyDescriptor:q,defineProperty:ue}),L.exports=function(se,ne,be){var fe=se.match(/\d+/)[0]/8,ge=se+(be?"Clamped":"")+"Array",ke="get"+se,ve="set"+se,Se=a[ge],we=Se,xe=we&&we.prototype,Oe={},We=function(de,Ne){var Ae=R(de);return Ae.view[ke](Ne*fe+Ae.byteOffset,!0)},Ve=function(de,Ne,Ae){var De=R(de);De.view[ve](Ne*fe+De.byteOffset,be?i(Ae):Ae,!0)},ae=function(de,Ne){W(de,Ne,{get:function(){function Ae(){return We(this,Ne)}return Ae}(),set:function(){function Ae(De){return Ve(this,Ne,De)}return Ae}(),enumerable:!0})};J?m&&(we=ne(function(Ce,de,Ne,Ae){return S(Ce,xe),P(function(){return v(de)?oe(de)?Ae!==void 0?new Se(de,u(Ne,fe),Ae):Ne!==void 0?new Se(de,u(Ne,fe)):new Se(de):pe(de)?M(we,de):t(I,we,de):new Se(f(de))}(),Ce,we)}),b&&b(we,re),w(B(Se),function(Ce){Ce in we||p(we,Ce,Se[Ce])}),we.prototype=xe):(we=ne(function(Ce,de,Ne,Ae){S(Ce,xe);var De=0,je=0,_e,Ue,Ke;if(!v(de))Ke=f(de),Ue=Ke*fe,_e=new z(Ue);else if(oe(de)){_e=de,je=u(Ne,fe);var Ge=de.byteLength;if(Ae===void 0){if(Ge%fe)throw new H(Be);if(Ue=Ge-je,Ue<0)throw new H(Be)}else if(Ue=c(Ae)*fe,Ue+je>Ge)throw new H(Be);Ke=Ue/fe}else return pe(de)?M(we,de):t(I,we,de);for(D(Ce,{buffer:_e,byteOffset:je,byteLength:Ue,length:Ke,view:new X(_e)});De1?arguments[1]:void 0,h=d!==void 0,v=y(i),g,C,V,b,B,I,w,T;if(v&&!S(v))for(w=N(i,v),T=w.next,i=[];!(I=a(T,w)).done;)i.push(I.value);for(h&&s>2&&(d=e(d,arguments[2])),C=m(i),V=new(p(u))(C),b=k(V),g=0;C>g;g++)B=h?d(i[g],g):i[g],V[g]=b?l(B):+B;return V}return c}()},489:function(L,r,n){"use strict";var e=n(72951),a=n(78412),t=e.aTypedArrayConstructor,o=e.getTypedArrayConstructor;L.exports=function(m){return t(a(m,o(m)))}},33345:function(L,r,n){"use strict";var e=n(18161),a=0,t=Math.random(),o=e(1 .toString);L.exports=function(m){return"Symbol("+(m===void 0?"":m)+")_"+o(++a+t,36)}},81457:function(L,r,n){"use strict";var e=n(70640);L.exports=e&&!Symbol.sham&&typeof Symbol.iterator=="symbol"},83411:function(L,r,n){"use strict";var e=n(14141),a=n(41746);L.exports=e&&a(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42})},22789:function(L){"use strict";var r=TypeError;L.exports=function(n,e){if(n=51||!a(function(){var d=[];return d[f]=!1,d.concat()[0]!==d}),i=function(h){if(!o(h))return!1;var v=h[f];return v!==void 0?!!v:t(h)},s=!u||!p("concat");e({target:"Array",proto:!0,arity:1,forced:s},{concat:function(){function d(h){var v=m(this),g=k(v,0),C=0,V,b,B,I,w;for(V=-1,B=arguments.length;V1?arguments[1]:void 0)}return m}()})},24974:function(L,r,n){"use strict";var e=n(77549),a=n(59942),t=n(91138);e({target:"Array",proto:!0},{fill:a}),t("fill")},6297:function(L,r,n){"use strict";var e=n(77549),a=n(67480).filter,t=n(55114),o=t("filter");e({target:"Array",proto:!0,forced:!o},{filter:function(){function m(N){return a(this,N,arguments.length>1?arguments[1]:void 0)}return m}()})},35173:function(L,r,n){"use strict";var e=n(77549),a=n(67480).findIndex,t=n(91138),o="findIndex",m=!0;o in[]&&Array(1)[o](function(){m=!1}),e({target:"Array",proto:!0,forced:m},{findIndex:function(){function N(y){return a(this,y,arguments.length>1?arguments[1]:void 0)}return N}()}),t(o)},5364:function(L,r,n){"use strict";var e=n(77549),a=n(67480).find,t=n(91138),o="find",m=!0;o in[]&&Array(1)[o](function(){m=!1}),e({target:"Array",proto:!0,forced:m},{find:function(){function N(y){return a(this,y,arguments.length>1?arguments[1]:void 0)}return N}()}),t(o)},88707:function(L,r,n){"use strict";var e=n(77549),a=n(68864),t=n(97361),o=n(40076),m=n(8333),N=n(32878);e({target:"Array",proto:!0},{flatMap:function(){function y(S){var k=o(this),p=m(k),l;return t(S),l=N(k,0),l.length=a(l,k,k,p,0,1,S,arguments.length>1?arguments[1]:void 0),l}return y}()})},16576:function(L,r,n){"use strict";var e=n(77549),a=n(68864),t=n(40076),o=n(8333),m=n(74952),N=n(32878);e({target:"Array",proto:!0},{flat:function(){function y(){var S=arguments.length?arguments[0]:void 0,k=t(this),p=o(k),l=N(k,0);return l.length=a(l,k,k,p,0,S===void 0?1:m(S)),l}return y}()})},21508:function(L,r,n){"use strict";var e=n(77549),a=n(75420);e({target:"Array",proto:!0,forced:[].forEach!==a},{forEach:a})},86339:function(L,r,n){"use strict";var e=n(77549),a=n(80363),t=n(52019),o=!t(function(m){Array.from(m)});e({target:"Array",stat:!0,forced:o},{from:a})},81850:function(L,r,n){"use strict";var e=n(77549),a=n(64210).includes,t=n(41746),o=n(91138),m=t(function(){return!Array(1).includes()});e({target:"Array",proto:!0,forced:m},{includes:function(){function N(y){return a(this,y,arguments.length>1?arguments[1]:void 0)}return N}()}),o("includes")},98661:function(L,r,n){"use strict";var e=n(77549),a=n(85067),t=n(64210).indexOf,o=n(42309),m=a([].indexOf),N=!!m&&1/m([1],1,-0)<0,y=N||!o("indexOf");e({target:"Array",proto:!0,forced:y},{indexOf:function(){function S(k){var p=arguments.length>1?arguments[1]:void 0;return N?m(this,k,p)||0:t(this,k,p)}return S}()})},13431:function(L,r,n){"use strict";var e=n(77549),a=n(62367);e({target:"Array",stat:!0},{isArray:a})},65809:function(L,r,n){"use strict";var e=n(96812),a=n(91138),t=n(90604),o=n(35086),m=n(56018).f,N=n(2449),y=n(77056),S=n(11478),k=n(14141),p="Array Iterator",l=o.set,c=o.getterFor(p);L.exports=N(Array,"Array",function(u,i){l(this,{type:p,target:e(u),index:0,kind:i})},function(){var u=c(this),i=u.target,s=u.index++;if(!i||s>=i.length)return u.target=void 0,y(void 0,!0);switch(u.kind){case"keys":return y(s,!1);case"values":return y(i[s],!1)}return y([s,i[s]],!1)},"values");var f=t.Arguments=t.Array;if(a("keys"),a("values"),a("entries"),!S&&k&&f.name!=="values")try{m(f,"name",{value:"values"})}catch(u){}},8611:function(L,r,n){"use strict";var e=n(77549),a=n(18161),t=n(26736),o=n(96812),m=n(42309),N=a([].join),y=t!==Object,S=y||!m("join",",");e({target:"Array",proto:!0,forced:S},{join:function(){function k(p){return N(o(this),p===void 0?",":p)}return k}()})},97246:function(L,r,n){"use strict";var e=n(77549),a=n(16934);e({target:"Array",proto:!0,forced:a!==[].lastIndexOf},{lastIndexOf:a})},48741:function(L,r,n){"use strict";var e=n(77549),a=n(67480).map,t=n(55114),o=t("map");e({target:"Array",proto:!0,forced:!o},{map:function(){function m(N){return a(this,N,arguments.length>1?arguments[1]:void 0)}return m}()})},90446:function(L,r,n){"use strict";var e=n(77549),a=n(41746),t=n(60354),o=n(12913),m=Array,N=a(function(){function y(){}return!(m.of.call(y)instanceof y)});e({target:"Array",stat:!0,forced:N},{of:function(){function y(){for(var S=0,k=arguments.length,p=new(t(this)?this:m)(k);k>S;)o(p,S,arguments[S++]);return p.length=k,p}return y}()})},61902:function(L,r,n){"use strict";var e=n(77549),a=n(98405).right,t=n(42309),o=n(82709),m=n(95823),N=!m&&o>79&&o<83,y=N||!t("reduceRight");e({target:"Array",proto:!0,forced:y},{reduceRight:function(){function S(k){return a(this,k,arguments.length,arguments.length>1?arguments[1]:void 0)}return S}()})},509:function(L,r,n){"use strict";var e=n(77549),a=n(98405).left,t=n(42309),o=n(82709),m=n(95823),N=!m&&o>79&&o<83,y=N||!t("reduce");e({target:"Array",proto:!0,forced:y},{reduce:function(){function S(k){var p=arguments.length;return a(this,k,p,p>1?arguments[1]:void 0)}return S}()})},96149:function(L,r,n){"use strict";var e=n(77549),a=n(18161),t=n(62367),o=a([].reverse),m=[1,2];e({target:"Array",proto:!0,forced:String(m)===String(m.reverse())},{reverse:function(){function N(){return t(this)&&(this.length=this.length),o(this)}return N}()})},66617:function(L,r,n){"use strict";var e=n(77549),a=n(62367),t=n(60354),o=n(56831),m=n(74067),N=n(8333),y=n(96812),S=n(12913),k=n(66266),p=n(55114),l=n(77713),c=p("slice"),f=k("species"),u=Array,i=Math.max;e({target:"Array",proto:!0,forced:!c},{slice:function(){function s(d,h){var v=y(this),g=N(v),C=m(d,g),V=m(h===void 0?g:h,g),b,B,I;if(a(v)&&(b=v.constructor,t(b)&&(b===u||a(b.prototype))?b=void 0:o(b)&&(b=b[f],b===null&&(b=void 0)),b===u||b===void 0))return l(v,C,V);for(B=new(b===void 0?u:b)(i(V-C,0)),I=0;C1?arguments[1]:void 0)}return m}()})},56855:function(L,r,n){"use strict";var e=n(77549),a=n(18161),t=n(97361),o=n(40076),m=n(8333),N=n(58937),y=n(26602),S=n(41746),k=n(44815),p=n(42309),l=n(49847),c=n(56605),f=n(82709),u=n(53125),i=[],s=a(i.sort),d=a(i.push),h=S(function(){i.sort(void 0)}),v=S(function(){i.sort(null)}),g=p("sort"),C=!S(function(){if(f)return f<70;if(!(l&&l>3)){if(c)return!0;if(u)return u<603;var B="",I,w,T,A;for(I=65;I<76;I++){switch(w=String.fromCharCode(I),I){case 66:case 69:case 70:case 72:T=3;break;case 68:case 71:T=4;break;default:T=2}for(A=0;A<47;A++)i.push({k:w+A,v:T})}for(i.sort(function(x,E){return E.v-x.v}),A=0;Ay(T)?1:-1}};e({target:"Array",proto:!0,forced:V},{sort:function(){function B(I){I!==void 0&&t(I);var w=o(this);if(C)return I===void 0?s(w):s(w,I);var T=[],A=m(w),x,E;for(E=0;Ev-b+V;I--)p(h,I-1)}else if(V>b)for(I=v-b;I>g;I--)w=I+b-1,T=I+V-1,w in h?h[T]=h[w]:p(h,T);for(I=0;I9490626562425156e-8?o(p)+N:a(p-1+m(p-1)*m(p+1))}return S}()})},86551:function(L,r,n){"use strict";var e=n(77549),a=Math.asinh,t=Math.log,o=Math.sqrt;function m(y){var S=+y;return!isFinite(S)||S===0?S:S<0?-m(-S):t(S+o(S*S+1))}var N=!(a&&1/a(0)>0);e({target:"Math",stat:!0,forced:N},{asinh:m})},10940:function(L,r,n){"use strict";var e=n(77549),a=Math.atanh,t=Math.log,o=!(a&&1/a(-0)<0);e({target:"Math",stat:!0,forced:o},{atanh:function(){function m(N){var y=+N;return y===0?y:t((1+y)/(1-y))/2}return m}()})},73763:function(L,r,n){"use strict";var e=n(77549),a=n(54307),t=Math.abs,o=Math.pow;e({target:"Math",stat:!0},{cbrt:function(){function m(N){var y=+N;return a(y)*o(t(y),.3333333333333333)}return m}()})},3372:function(L,r,n){"use strict";var e=n(77549),a=Math.floor,t=Math.log,o=Math.LOG2E;e({target:"Math",stat:!0},{clz32:function(){function m(N){var y=N>>>0;return y?31-a(t(y+.5)*o):32}return m}()})},51629:function(L,r,n){"use strict";var e=n(77549),a=n(32813),t=Math.cosh,o=Math.abs,m=Math.E,N=!t||t(710)===1/0;e({target:"Math",stat:!0,forced:N},{cosh:function(){function y(S){var k=a(o(S)-1)+1;return(k+1/(k*m*m))*(m/2)}return y}()})},69727:function(L,r,n){"use strict";var e=n(77549),a=n(32813);e({target:"Math",stat:!0,forced:a!==Math.expm1},{expm1:a})},27482:function(L,r,n){"use strict";var e=n(77549),a=n(75988);e({target:"Math",stat:!0},{fround:a})},7108:function(L,r,n){"use strict";var e=n(77549),a=Math.hypot,t=Math.abs,o=Math.sqrt,m=!!a&&a(1/0,NaN)!==1/0;e({target:"Math",stat:!0,arity:2,forced:m},{hypot:function(){function N(y,S){for(var k=0,p=0,l=arguments.length,c=0,f,u;p0?(u=f/c,k+=u*u):k+=f;return c===1/0?1/0:c*o(k)}return N}()})},4115:function(L,r,n){"use strict";var e=n(77549),a=n(41746),t=Math.imul,o=a(function(){return t(4294967295,5)!==-5||t.length!==2});e({target:"Math",stat:!0,forced:o},{imul:function(){function m(N,y){var S=65535,k=+N,p=+y,l=S&k,c=S&p;return 0|l*c+((S&k>>>16)*c+l*(S&p>>>16)<<16>>>0)}return m}()})},63953:function(L,r,n){"use strict";var e=n(77549),a=n(53271);e({target:"Math",stat:!0},{log10:a})},71377:function(L,r,n){"use strict";var e=n(77549),a=n(69143);e({target:"Math",stat:!0},{log1p:a})},63956:function(L,r,n){"use strict";var e=n(77549),a=Math.log,t=Math.LN2;e({target:"Math",stat:!0},{log2:function(){function o(m){return a(m)/t}return o}()})},90037:function(L,r,n){"use strict";var e=n(77549),a=n(54307);e({target:"Math",stat:!0},{sign:a})},46818:function(L,r,n){"use strict";var e=n(77549),a=n(41746),t=n(32813),o=Math.abs,m=Math.exp,N=Math.E,y=a(function(){return Math.sinh(-2e-17)!==-2e-17});e({target:"Math",stat:!0,forced:y},{sinh:function(){function S(k){var p=+k;return o(p)<1?(t(p)-t(-p))/2:(m(p-1)-m(-p-1))*(N/2)}return S}()})},26681:function(L,r,n){"use strict";var e=n(77549),a=n(32813),t=Math.exp;e({target:"Math",stat:!0},{tanh:function(){function o(m){var N=+m,y=a(N),S=a(-N);return y===1/0?1:S===1/0?-1:(y-S)/(t(N)+t(-N))}return o}()})},83646:function(L,r,n){"use strict";var e=n(94234);e(Math,"Math",!0)},28876:function(L,r,n){"use strict";var e=n(77549),a=n(34606);e({target:"Math",stat:!0},{trunc:a})},36385:function(L,r,n){"use strict";var e=n(77549),a=n(11478),t=n(14141),o=n(40224),m=n(5376),N=n(18161),y=n(95945),S=n(89458),k=n(2566),p=n(33314),l=n(74352),c=n(4370),f=n(41746),u=n(34813).f,i=n(54168).f,s=n(56018).f,d=n(37497),h=n(35171).trim,v="Number",g=o[v],C=m[v],V=g.prototype,b=o.TypeError,B=N("".slice),I=N("".charCodeAt),w=function(P){var R=c(P,"number");return typeof R=="bigint"?R:T(R)},T=function(P){var R=c(P,"number"),D,F,W,_,H,z,$,X;if(l(R))throw new b("Cannot convert a Symbol value to a number");if(typeof R=="string"&&R.length>2){if(R=h(R),D=I(R,0),D===43||D===45){if(F=I(R,2),F===88||F===120)return NaN}else if(D===48){switch(I(R,1)){case 66:case 98:W=2,_=49;break;case 79:case 111:W=8,_=55;break;default:return+R}for(H=B(R,2),z=H.length,$=0;$_)return NaN;return parseInt(H,W)}}return+R},A=y(v,!g(" 0o1")||!g("0b1")||g("+0x1")),x=function(P){return p(V,P)&&f(function(){d(P)})},E=function(){function j(P){var R=arguments.length<1?0:g(w(P));return x(this)?k(Object(R),this,E):R}return j}();E.prototype=V,A&&!a&&(V.constructor=E),e({global:!0,constructor:!0,wrap:!0,forced:A},{Number:E});var M=function(P,R){for(var D=t?u(R):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),F=0,W;D.length>F;F++)S(R,W=D[F])&&!S(P,W)&&s(P,W,i(R,W))};a&&C&&M(m[v],C),(A||a)&&M(m[v],g)},84295:function(L,r,n){"use strict";var e=n(77549);e({target:"Number",stat:!0,nonConfigurable:!0,nonWritable:!0},{EPSILON:Math.pow(2,-52)})},59785:function(L,r,n){"use strict";var e=n(77549),a=n(69079);e({target:"Number",stat:!0},{isFinite:a})},8846:function(L,r,n){"use strict";var e=n(77549),a=n(57696);e({target:"Number",stat:!0},{isInteger:a})},50237:function(L,r,n){"use strict";var e=n(77549);e({target:"Number",stat:!0},{isNaN:function(){function a(t){return t!==t}return a}()})},6436:function(L,r,n){"use strict";var e=n(77549),a=n(57696),t=Math.abs;e({target:"Number",stat:!0},{isSafeInteger:function(){function o(m){return a(m)&&t(m)<=9007199254740991}return o}()})},68286:function(L,r,n){"use strict";var e=n(77549);e({target:"Number",stat:!0,nonConfigurable:!0,nonWritable:!0},{MAX_SAFE_INTEGER:9007199254740991})},23940:function(L,r,n){"use strict";var e=n(77549);e({target:"Number",stat:!0,nonConfigurable:!0,nonWritable:!0},{MIN_SAFE_INTEGER:-9007199254740991})},82425:function(L,r,n){"use strict";var e=n(77549),a=n(43283);e({target:"Number",stat:!0,forced:Number.parseFloat!==a},{parseFloat:a})},82118:function(L,r,n){"use strict";var e=n(77549),a=n(11540);e({target:"Number",stat:!0,forced:Number.parseInt!==a},{parseInt:a})},7419:function(L,r,n){"use strict";var e=n(77549),a=n(18161),t=n(74952),o=n(37497),m=n(84948),N=n(41746),y=RangeError,S=String,k=Math.floor,p=a(m),l=a("".slice),c=a(1 .toFixed),f=function v(g,C,V){return C===0?V:C%2===1?v(g,C-1,V*g):v(g*g,C/2,V)},u=function(g){for(var C=0,V=g;V>=4096;)C+=12,V/=4096;for(;V>=2;)C+=1,V/=2;return C},i=function(g,C,V){for(var b=-1,B=V;++b<6;)B+=C*g[b],g[b]=B%1e7,B=k(B/1e7)},s=function(g,C){for(var V=6,b=0;--V>=0;)b+=g[V],g[V]=k(b/C),b=b%C*1e7},d=function(g){for(var C=6,V="";--C>=0;)if(V!==""||C===0||g[C]!==0){var b=S(g[C]);V=V===""?b:V+p("0",7-b.length)+b}return V},h=N(function(){return c(8e-5,3)!=="0.000"||c(.9,0)!=="1"||c(1.255,2)!=="1.25"||c(0xde0b6b3a7640080,0)!=="1000000000000000128"})||!N(function(){c({})});e({target:"Number",proto:!0,forced:h},{toFixed:function(){function v(g){var C=o(this),V=t(g),b=[0,0,0,0,0,0],B="",I="0",w,T,A,x;if(V<0||V>20)throw new y("Incorrect fraction digits");if(C!==C)return"NaN";if(C<=-1e21||C>=1e21)return S(C);if(C<0&&(B="-",C=-C),C>1e-21)if(w=u(C*f(2,69,1))-69,T=w<0?C*f(2,-w,1):C/f(2,w,1),T*=4503599627370496,w=52-w,w>0){for(i(b,0,T),A=V;A>=7;)i(b,1e7,0),A-=7;for(i(b,f(10,A,1),0),A=w-1;A>=23;)s(b,8388608),A-=23;s(b,1<0?(x=I.length,I=B+(x<=V?"0."+p("0",V-x)+I:l(I,0,x-V)+"."+l(I,x-V))):I=B+I,I}return v}()})},42409:function(L,r,n){"use strict";var e=n(77549),a=n(18161),t=n(41746),o=n(37497),m=a(1 .toPrecision),N=t(function(){return m(1,void 0)!=="1"})||!t(function(){m({})});e({target:"Number",proto:!0,forced:N},{toPrecision:function(){function y(S){return S===void 0?m(o(this)):m(o(this),S)}return y}()})},29002:function(L,r,n){"use strict";var e=n(77549),a=n(12752);e({target:"Object",stat:!0,arity:2,forced:Object.assign!==a},{assign:a})},85795:function(L,r,n){"use strict";var e=n(77549),a=n(14141),t=n(28969);e({target:"Object",stat:!0,sham:!a},{create:t})},74722:function(L,r,n){"use strict";var e=n(77549),a=n(14141),t=n(33030),o=n(97361),m=n(40076),N=n(56018);a&&e({target:"Object",proto:!0,forced:t},{__defineGetter__:function(){function y(S,k){N.f(m(this),S,{get:o(k),enumerable:!0,configurable:!0})}return y}()})},5300:function(L,r,n){"use strict";var e=n(77549),a=n(14141),t=n(65854).f;e({target:"Object",stat:!0,forced:Object.defineProperties!==t,sham:!a},{defineProperties:t})},85684:function(L,r,n){"use strict";var e=n(77549),a=n(14141),t=n(56018).f;e({target:"Object",stat:!0,forced:Object.defineProperty!==t,sham:!a},{defineProperty:t})},36014:function(L,r,n){"use strict";var e=n(77549),a=n(14141),t=n(33030),o=n(97361),m=n(40076),N=n(56018);a&&e({target:"Object",proto:!0,forced:t},{__defineSetter__:function(){function y(S,k){N.f(m(this),S,{set:o(k),enumerable:!0,configurable:!0})}return y}()})},98551:function(L,r,n){"use strict";var e=n(77549),a=n(97452).entries;e({target:"Object",stat:!0},{entries:function(){function t(o){return a(o)}return t}()})},66288:function(L,r,n){"use strict";var e=n(77549),a=n(56255),t=n(41746),o=n(56831),m=n(29126).onFreeze,N=Object.freeze,y=t(function(){N(1)});e({target:"Object",stat:!0,forced:y,sham:!a},{freeze:function(){function S(k){return N&&o(k)?N(m(k)):k}return S}()})},26862:function(L,r,n){"use strict";var e=n(77549),a=n(281),t=n(12913);e({target:"Object",stat:!0},{fromEntries:function(){function o(m){var N={};return a(m,function(y,S){t(N,y,S)},{AS_ENTRIES:!0}),N}return o}()})},78686:function(L,r,n){"use strict";var e=n(77549),a=n(41746),t=n(96812),o=n(54168).f,m=n(14141),N=!m||a(function(){o(1)});e({target:"Object",stat:!0,forced:N,sham:!m},{getOwnPropertyDescriptor:function(){function y(S,k){return o(t(S),k)}return y}()})},36789:function(L,r,n){"use strict";var e=n(77549),a=n(14141),t=n(93616),o=n(96812),m=n(54168),N=n(12913);e({target:"Object",stat:!0,sham:!a},{getOwnPropertyDescriptors:function(){function y(S){for(var k=o(S),p=m.f,l=t(k),c={},f=0,u,i;l.length>f;)i=p(k,u=l[f++]),i!==void 0&&N(c,u,i);return c}return y}()})},82707:function(L,r,n){"use strict";var e=n(77549),a=n(41746),t=n(63797).f,o=a(function(){return!Object.getOwnPropertyNames(1)});e({target:"Object",stat:!0,forced:o},{getOwnPropertyNames:t})},93146:function(L,r,n){"use strict";var e=n(77549),a=n(70640),t=n(41746),o=n(34220),m=n(40076),N=!a||t(function(){o.f(1)});e({target:"Object",stat:!0,forced:N},{getOwnPropertySymbols:function(){function y(S){var k=o.f;return k?k(m(S)):[]}return y}()})},69740:function(L,r,n){"use strict";var e=n(77549),a=n(41746),t=n(40076),o=n(31658),m=n(58776),N=a(function(){o(1)});e({target:"Object",stat:!0,forced:N,sham:!m},{getPrototypeOf:function(){function y(S){return o(t(S))}return y}()})},54789:function(L,r,n){"use strict";var e=n(77549),a=n(57975);e({target:"Object",stat:!0,forced:Object.isExtensible!==a},{isExtensible:a})},49626:function(L,r,n){"use strict";var e=n(77549),a=n(41746),t=n(56831),o=n(38817),m=n(65693),N=Object.isFrozen,y=m||a(function(){N(1)});e({target:"Object",stat:!0,forced:y},{isFrozen:function(){function S(k){return!t(k)||m&&o(k)==="ArrayBuffer"?!0:N?N(k):!1}return S}()})},67660:function(L,r,n){"use strict";var e=n(77549),a=n(41746),t=n(56831),o=n(38817),m=n(65693),N=Object.isSealed,y=m||a(function(){N(1)});e({target:"Object",stat:!0,forced:y},{isSealed:function(){function S(k){return!t(k)||m&&o(k)==="ArrayBuffer"?!0:N?N(k):!1}return S}()})},87847:function(L,r,n){"use strict";var e=n(77549),a=n(37309);e({target:"Object",stat:!0},{is:a})},43619:function(L,r,n){"use strict";var e=n(77549),a=n(40076),t=n(84913),o=n(41746),m=o(function(){t(1)});e({target:"Object",stat:!0,forced:m},{keys:function(){function N(y){return t(a(y))}return N}()})},42777:function(L,r,n){"use strict";var e=n(77549),a=n(14141),t=n(33030),o=n(40076),m=n(57640),N=n(31658),y=n(54168).f;a&&e({target:"Object",proto:!0,forced:t},{__lookupGetter__:function(){function S(k){var p=o(this),l=m(k),c;do if(c=y(p,l))return c.get;while(p=N(p))}return S}()})},13045:function(L,r,n){"use strict";var e=n(77549),a=n(14141),t=n(33030),o=n(40076),m=n(57640),N=n(31658),y=n(54168).f;a&&e({target:"Object",proto:!0,forced:t},{__lookupSetter__:function(){function S(k){var p=o(this),l=m(k),c;do if(c=y(p,l))return c.set;while(p=N(p))}return S}()})},38664:function(L,r,n){"use strict";var e=n(77549),a=n(56831),t=n(29126).onFreeze,o=n(56255),m=n(41746),N=Object.preventExtensions,y=m(function(){N(1)});e({target:"Object",stat:!0,forced:y,sham:!o},{preventExtensions:function(){function S(k){return N&&a(k)?N(t(k)):k}return S}()})},29650:function(L,r,n){"use strict";var e=n(77549),a=n(56831),t=n(29126).onFreeze,o=n(56255),m=n(41746),N=Object.seal,y=m(function(){N(1)});e({target:"Object",stat:!0,forced:y,sham:!o},{seal:function(){function S(k){return N&&a(k)?N(t(k)):k}return S}()})},58176:function(L,r,n){"use strict";var e=n(77549),a=n(42878);e({target:"Object",stat:!0},{setPrototypeOf:a})},35286:function(L,r,n){"use strict";var e=n(82161),a=n(59173),t=n(66628);e||a(Object.prototype,"toString",t,{unsafe:!0})},13313:function(L,r,n){"use strict";var e=n(77549),a=n(97452).values;e({target:"Object",stat:!0},{values:function(){function t(o){return a(o)}return t}()})},26528:function(L,r,n){"use strict";var e=n(77549),a=n(43283);e({global:!0,forced:parseFloat!==a},{parseFloat:a})},54959:function(L,r,n){"use strict";var e=n(77549),a=n(11540);e({global:!0,forced:parseInt!==a},{parseInt:a})},34344:function(L,r,n){"use strict";var e=n(77549),a=n(62696),t=n(97361),o=n(48532),m=n(91114),N=n(281),y=n(95044);e({target:"Promise",stat:!0,forced:y},{all:function(){function S(k){var p=this,l=o.f(p),c=l.resolve,f=l.reject,u=m(function(){var i=t(p.resolve),s=[],d=0,h=1;N(k,function(v){var g=d++,C=!1;h++,a(i,p,v).then(function(V){C||(C=!0,s[g]=V,--h||c(s))},f)}),--h||c(s)});return u.error&&f(u.value),l.promise}return S}()})},60:function(L,r,n){"use strict";var e=n(77549),a=n(11478),t=n(49669).CONSTRUCTOR,o=n(35973),m=n(40164),N=n(7532),y=n(59173),S=o&&o.prototype;if(e({target:"Promise",proto:!0,forced:t,real:!0},{catch:function(){function p(l){return this.then(void 0,l)}return p}()}),!a&&N(o)){var k=m("Promise").prototype.catch;S.catch!==k&&y(S,"catch",k,{unsafe:!0})}},7803:function(L,r,n){"use strict";var e=n(77549),a=n(11478),t=n(95823),o=n(40224),m=n(62696),N=n(59173),y=n(42878),S=n(94234),k=n(67420),p=n(97361),l=n(7532),c=n(56831),f=n(19870),u=n(78412),i=n(91314).set,s=n(27150),d=n(46122),h=n(91114),v=n(23496),g=n(35086),C=n(35973),V=n(49669),b=n(48532),B="Promise",I=V.CONSTRUCTOR,w=V.REJECTION_EVENT,T=V.SUBCLASSING,A=g.getterFor(B),x=g.set,E=C&&C.prototype,M=C,j=E,P=o.TypeError,R=o.document,D=o.process,F=b.f,W=F,_=!!(R&&R.createEvent&&o.dispatchEvent),H="unhandledrejection",z="rejectionhandled",$=0,X=1,J=2,ce=1,re=2,me,pe,ye,Be,he=function(ve){var Se;return c(ve)&&l(Se=ve.then)?Se:!1},oe=function(ve,Se){var we=Se.value,xe=Se.state===X,Oe=xe?ve.ok:ve.fail,We=ve.resolve,Ve=ve.reject,ae=ve.domain,le,Ce,de;try{Oe?(xe||(Se.rejection===re&&ne(Se),Se.rejection=ce),Oe===!0?le=we:(ae&&ae.enter(),le=Oe(we),ae&&(ae.exit(),de=!0)),le===ve.promise?Ve(new P("Promise-chain cycle")):(Ce=he(le))?m(Ce,le,We,Ve):We(le)):Ve(we)}catch(Ne){ae&&!de&&ae.exit(),Ve(Ne)}},Z=function(ve,Se){ve.notified||(ve.notified=!0,s(function(){for(var we=ve.reactions,xe;xe=we.get();)oe(xe,ve);ve.notified=!1,Se&&!ve.rejection&&ue(ve)}))},q=function(ve,Se,we){var xe,Oe;_?(xe=R.createEvent("Event"),xe.promise=Se,xe.reason=we,xe.initEvent(ve,!1,!0),o.dispatchEvent(xe)):xe={promise:Se,reason:we},!w&&(Oe=o["on"+ve])?Oe(xe):ve===H&&d("Unhandled promise rejection",we)},ue=function(ve){m(i,o,function(){var Se=ve.facade,we=ve.value,xe=se(ve),Oe;if(xe&&(Oe=h(function(){t?D.emit("unhandledRejection",we,Se):q(H,Se,we)}),ve.rejection=t||se(ve)?re:ce,Oe.error))throw Oe.value})},se=function(ve){return ve.rejection!==ce&&!ve.parent},ne=function(ve){m(i,o,function(){var Se=ve.facade;t?D.emit("rejectionHandled",Se):q(z,Se,ve.value)})},be=function(ve,Se,we){return function(xe){ve(Se,xe,we)}},fe=function(ve,Se,we){ve.done||(ve.done=!0,we&&(ve=we),ve.value=Se,ve.state=J,Z(ve,!0))},ge=function ke(ve,Se,we){if(!ve.done){ve.done=!0,we&&(ve=we);try{if(ve.facade===Se)throw new P("Promise can't be resolved itself");var xe=he(Se);xe?s(function(){var Oe={done:!1};try{m(xe,Se,be(ke,Oe,ve),be(fe,Oe,ve))}catch(We){fe(Oe,We,ve)}}):(ve.value=Se,ve.state=X,Z(ve,!1))}catch(Oe){fe({done:!1},Oe,ve)}}};if(I&&(M=function(){function ke(ve){f(this,j),p(ve),m(me,this);var Se=A(this);try{ve(be(ge,Se),be(fe,Se))}catch(we){fe(Se,we)}}return ke}(),j=M.prototype,me=function(){function ke(ve){x(this,{type:B,done:!1,notified:!1,parent:!1,reactions:new v,rejection:!1,state:$,value:void 0})}return ke}(),me.prototype=N(j,"then",function(){function ke(ve,Se){var we=A(this),xe=F(u(this,M));return we.parent=!0,xe.ok=l(ve)?ve:!0,xe.fail=l(Se)&&Se,xe.domain=t?D.domain:void 0,we.state===$?we.reactions.add(xe):s(function(){oe(xe,we)}),xe.promise}return ke}()),pe=function(){var ve=new me,Se=A(ve);this.promise=ve,this.resolve=be(ge,Se),this.reject=be(fe,Se)},b.f=F=function(ve){return ve===M||ve===ye?new pe(ve):W(ve)},!a&&l(C)&&E!==Object.prototype)){Be=E.then,T||N(E,"then",function(){function ke(ve,Se){var we=this;return new M(function(xe,Oe){m(Be,we,xe,Oe)}).then(ve,Se)}return ke}(),{unsafe:!0});try{delete E.constructor}catch(ke){}y&&y(E,j)}e({global:!0,constructor:!0,wrap:!0,forced:I},{Promise:M}),S(M,B,!1,!0),k(B)},54412:function(L,r,n){"use strict";var e=n(77549),a=n(11478),t=n(35973),o=n(41746),m=n(40164),N=n(7532),y=n(78412),S=n(43827),k=n(59173),p=t&&t.prototype,l=!!t&&o(function(){p.finally.call({then:function(){function f(){}return f}()},function(){})});if(e({target:"Promise",proto:!0,real:!0,forced:l},{finally:function(){function f(u){var i=y(this,m("Promise")),s=N(u);return this.then(s?function(d){return S(i,u()).then(function(){return d})}:u,s?function(d){return S(i,u()).then(function(){throw d})}:u)}return f}()}),!a&&N(t)){var c=m("Promise").prototype.finally;p.finally!==c&&k(p,"finally",c,{unsafe:!0})}},78129:function(L,r,n){"use strict";n(7803),n(34344),n(60),n(61270),n(82248),n(30347)},61270:function(L,r,n){"use strict";var e=n(77549),a=n(62696),t=n(97361),o=n(48532),m=n(91114),N=n(281),y=n(95044);e({target:"Promise",stat:!0,forced:y},{race:function(){function S(k){var p=this,l=o.f(p),c=l.reject,f=m(function(){var u=t(p.resolve);N(k,function(i){a(u,p,i).then(l.resolve,c)})});return f.error&&c(f.value),l.promise}return S}()})},82248:function(L,r,n){"use strict";var e=n(77549),a=n(48532),t=n(49669).CONSTRUCTOR;e({target:"Promise",stat:!0,forced:t},{reject:function(){function o(m){var N=a.f(this),y=N.reject;return y(m),N.promise}return o}()})},30347:function(L,r,n){"use strict";var e=n(77549),a=n(40164),t=n(11478),o=n(35973),m=n(49669).CONSTRUCTOR,N=n(43827),y=a("Promise"),S=t&&!m;e({target:"Promise",stat:!0,forced:t||m},{resolve:function(){function k(p){return N(S&&this===y?o:this,p)}return k}()})},82427:function(L,r,n){"use strict";var e=n(77549),a=n(70918),t=n(97361),o=n(39482),m=n(41746),N=!m(function(){Reflect.apply(function(){})});e({target:"Reflect",stat:!0,forced:N},{apply:function(){function y(S,k,p){return a(t(S),k,o(p))}return y}()})},8390:function(L,r,n){"use strict";var e=n(77549),a=n(40164),t=n(70918),o=n(9379),m=n(76833),N=n(39482),y=n(56831),S=n(28969),k=n(41746),p=a("Reflect","construct"),l=Object.prototype,c=[].push,f=k(function(){function s(){}return!(p(function(){},[],s)instanceof s)}),u=!k(function(){p(function(){})}),i=f||u;e({target:"Reflect",stat:!0,forced:i,sham:i},{construct:function(){function s(d,h){m(d),N(h);var v=arguments.length<3?d:m(arguments[2]);if(u&&!f)return p(d,h,v);if(d===v){switch(h.length){case 0:return new d;case 1:return new d(h[0]);case 2:return new d(h[0],h[1]);case 3:return new d(h[0],h[1],h[2]);case 4:return new d(h[0],h[1],h[2],h[3])}var g=[null];return t(c,g,h),new(t(o,d,g))}var C=v.prototype,V=S(y(C)?C:l),b=t(d,V,h);return y(b)?b:V}return s}()})},68260:function(L,r,n){"use strict";var e=n(77549),a=n(14141),t=n(39482),o=n(57640),m=n(56018),N=n(41746),y=N(function(){Reflect.defineProperty(m.f({},1,{value:1}),1,{value:2})});e({target:"Reflect",stat:!0,forced:y,sham:!a},{defineProperty:function(){function S(k,p,l){t(k);var c=o(p);t(l);try{return m.f(k,c,l),!0}catch(f){return!1}}return S}()})},86508:function(L,r,n){"use strict";var e=n(77549),a=n(39482),t=n(54168).f;e({target:"Reflect",stat:!0},{deleteProperty:function(){function o(m,N){var y=t(a(m),N);return y&&!y.configurable?!1:delete m[N]}return o}()})},17134:function(L,r,n){"use strict";var e=n(77549),a=n(14141),t=n(39482),o=n(54168);e({target:"Reflect",stat:!0,sham:!a},{getOwnPropertyDescriptor:function(){function m(N,y){return o.f(t(N),y)}return m}()})},18972:function(L,r,n){"use strict";var e=n(77549),a=n(39482),t=n(31658),o=n(58776);e({target:"Reflect",stat:!0,sham:!o},{getPrototypeOf:function(){function m(N){return t(a(N))}return m}()})},65971:function(L,r,n){"use strict";var e=n(77549),a=n(62696),t=n(56831),o=n(39482),m=n(35892),N=n(54168),y=n(31658);function S(k,p){var l=arguments.length<3?k:arguments[2],c,f;if(o(k)===l)return k[p];if(c=N.f(k,p),c)return m(c)?c.value:c.get===void 0?void 0:a(c.get,l);if(t(f=y(k)))return S(f,p,l)}e({target:"Reflect",stat:!0},{get:S})},78623:function(L,r,n){"use strict";var e=n(77549);e({target:"Reflect",stat:!0},{has:function(){function a(t,o){return o in t}return a}()})},60149:function(L,r,n){"use strict";var e=n(77549),a=n(39482),t=n(57975);e({target:"Reflect",stat:!0},{isExtensible:function(){function o(m){return a(m),t(m)}return o}()})},56380:function(L,r,n){"use strict";var e=n(77549),a=n(93616);e({target:"Reflect",stat:!0},{ownKeys:a})},72792:function(L,r,n){"use strict";var e=n(77549),a=n(40164),t=n(39482),o=n(56255);e({target:"Reflect",stat:!0,sham:!o},{preventExtensions:function(){function m(N){t(N);try{var y=a("Object","preventExtensions");return y&&y(N),!0}catch(S){return!1}}return m}()})},25168:function(L,r,n){"use strict";var e=n(77549),a=n(39482),t=n(51689),o=n(42878);o&&e({target:"Reflect",stat:!0},{setPrototypeOf:function(){function m(N,y){a(N),t(y);try{return o(N,y),!0}catch(S){return!1}}return m}()})},60631:function(L,r,n){"use strict";var e=n(77549),a=n(62696),t=n(39482),o=n(56831),m=n(35892),N=n(41746),y=n(56018),S=n(54168),k=n(31658),p=n(7539);function l(f,u,i){var s=arguments.length<4?f:arguments[3],d=S.f(t(f),u),h,v,g;if(!d){if(o(v=k(f)))return l(v,u,i,s);d=p(0)}if(m(d)){if(d.writable===!1||!o(s))return!1;if(h=S.f(s,u)){if(h.get||h.set||h.writable===!1)return!1;h.value=i,y.f(s,u,h)}else y.f(s,u,p(0,i))}else{if(g=d.set,g===void 0)return!1;a(g,s,i)}return!0}var c=N(function(){var f=function(){},u=y.f(new f,"a",{configurable:!0});return Reflect.set(f.prototype,"a",1,u)!==!1});e({target:"Reflect",stat:!0,forced:c},{set:l})},85177:function(L,r,n){"use strict";var e=n(14141),a=n(40224),t=n(18161),o=n(95945),m=n(2566),N=n(16216),y=n(28969),S=n(34813).f,k=n(33314),p=n(80969),l=n(26602),c=n(60425),f=n(1064),u=n(77495),i=n(59173),s=n(41746),d=n(89458),h=n(35086).enforce,v=n(67420),g=n(66266),C=n(89604),V=n(5489),b=g("match"),B=a.RegExp,I=B.prototype,w=a.SyntaxError,T=t(I.exec),A=t("".charAt),x=t("".replace),E=t("".indexOf),M=t("".slice),j=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,P=/a/g,R=/a/g,D=new B(P)!==P,F=f.MISSED_STICKY,W=f.UNSUPPORTED_Y,_=e&&(!D||F||C||V||s(function(){return R[b]=!1,B(P)!==P||B(R)===R||String(B(P,"i"))!=="/a/i"})),H=function(re){for(var me=re.length,pe=0,ye="",Be=!1,he;pe<=me;pe++){if(he=A(re,pe),he==="\\"){ye+=he+A(re,++pe);continue}!Be&&he==="."?ye+="[\\s\\S]":(he==="["?Be=!0:he==="]"&&(Be=!1),ye+=he)}return ye},z=function(re){for(var me=re.length,pe=0,ye="",Be=[],he=y(null),oe=!1,Z=!1,q=0,ue="",se;pe<=me;pe++){if(se=A(re,pe),se==="\\")se+=A(re,++pe);else if(se==="]")oe=!1;else if(!oe)switch(!0){case se==="[":oe=!0;break;case se==="(":T(j,M(re,pe+1))&&(pe+=2,Z=!0),ye+=se,q++;continue;case(se===">"&&Z):if(ue===""||d(he,ue))throw new w("Invalid capture group name");he[ue]=!0,Be[Be.length]=[ue,q],Z=!1,ue="";continue}Z?ue+=se:ye+=se}return[ye,Be]};if(o("RegExp",_)){for(var $=function(){function ce(re,me){var pe=k(I,this),ye=p(re),Be=me===void 0,he=[],oe=re,Z,q,ue,se,ne,be;if(!pe&&ye&&Be&&re.constructor===$)return re;if((ye||k(I,re))&&(re=re.source,Be&&(me=c(oe))),re=re===void 0?"":l(re),me=me===void 0?"":l(me),oe=re,C&&"dotAll"in P&&(q=!!me&&E(me,"s")>-1,q&&(me=x(me,/s/g,""))),Z=me,F&&"sticky"in P&&(ue=!!me&&E(me,"y")>-1,ue&&W&&(me=x(me,/y/g,""))),V&&(se=z(re),re=se[0],he=se[1]),ne=m(B(re,me),pe?this:I,$),(q||ue||he.length)&&(be=h(ne),q&&(be.dotAll=!0,be.raw=$(H(re),Z)),ue&&(be.sticky=!0),he.length&&(be.groups=he)),re!==oe)try{N(ne,"source",oe===""?"(?:)":oe)}catch(fe){}return ne}return ce}(),X=S(B),J=0;X.length>J;)u($,B,X[J++]);I.constructor=$,$.prototype=I,i(a,"RegExp",$,{constructor:!0})}v("RegExp")},95880:function(L,r,n){"use strict";var e=n(77549),a=n(72894);e({target:"RegExp",proto:!0,forced:/./.exec!==a},{exec:a})},59978:function(L,r,n){"use strict";var e=n(40224),a=n(14141),t=n(10069),o=n(65844),m=n(41746),N=e.RegExp,y=N.prototype,S=a&&m(function(){var k=!0;try{N(".","d")}catch(d){k=!1}var p={},l="",c=k?"dgimsy":"gimsy",f=function(h,v){Object.defineProperty(p,h,{get:function(){function g(){return l+=v,!0}return g}()})},u={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};k&&(u.hasIndices="d");for(var i in u)f(i,u[i]);var s=Object.getOwnPropertyDescriptor(y,"flags").get.call(p);return s!==c||l!==c});S&&t(y,"flags",{configurable:!0,get:o})},96360:function(L,r,n){"use strict";var e=n(26463).PROPER,a=n(59173),t=n(39482),o=n(26602),m=n(41746),N=n(60425),y="toString",S=RegExp.prototype,k=S[y],p=m(function(){return k.call({source:"a",flags:"b"})!=="/a/b"}),l=e&&k.name!==y;(p||l)&&a(S,y,function(){function c(){var f=t(this),u=o(f.source),i=o(N(f));return"/"+u+"/"+i}return c}(),{unsafe:!0})},47338:function(L,r,n){"use strict";var e=n(93439),a=n(10623);e("Set",function(t){return function(){function o(){return t(this,arguments.length?arguments[0]:void 0)}return o}()},a)},43108:function(L,r,n){"use strict";n(47338)},36:function(L,r,n){"use strict";var e=n(77549),a=n(93677),t=n(32086);e({target:"String",proto:!0,forced:t("anchor")},{anchor:function(){function o(m){return a(this,"a","name",m)}return o}()})},30519:function(L,r,n){"use strict";var e=n(77549),a=n(93677),t=n(32086);e({target:"String",proto:!0,forced:t("big")},{big:function(){function o(){return a(this,"big","","")}return o}()})},33547:function(L,r,n){"use strict";var e=n(77549),a=n(93677),t=n(32086);e({target:"String",proto:!0,forced:t("blink")},{blink:function(){function o(){return a(this,"blink","","")}return o}()})},53426:function(L,r,n){"use strict";var e=n(77549),a=n(93677),t=n(32086);e({target:"String",proto:!0,forced:t("bold")},{bold:function(){function o(){return a(this,"b","","")}return o}()})},37801:function(L,r,n){"use strict";var e=n(77549),a=n(56852).codeAt;e({target:"String",proto:!0},{codePointAt:function(){function t(o){return a(this,o)}return t}()})},3044:function(L,r,n){"use strict";var e=n(77549),a=n(85067),t=n(54168).f,o=n(10475),m=n(26602),N=n(89140),y=n(91029),S=n(93321),k=n(11478),p=a("".slice),l=Math.min,c=S("endsWith"),f=!k&&!c&&!!function(){var u=t(String.prototype,"endsWith");return u&&!u.writable}();e({target:"String",proto:!0,forced:!f&&!c},{endsWith:function(){function u(i){var s=m(y(this));N(i);var d=arguments.length>1?arguments[1]:void 0,h=s.length,v=d===void 0?h:l(o(d),h),g=m(i);return p(s,v-g.length,v)===g}return u}()})},32031:function(L,r,n){"use strict";var e=n(77549),a=n(93677),t=n(32086);e({target:"String",proto:!0,forced:t("fixed")},{fixed:function(){function o(){return a(this,"tt","","")}return o}()})},13153:function(L,r,n){"use strict";var e=n(77549),a=n(93677),t=n(32086);e({target:"String",proto:!0,forced:t("fontcolor")},{fontcolor:function(){function o(m){return a(this,"font","color",m)}return o}()})},21953:function(L,r,n){"use strict";var e=n(77549),a=n(93677),t=n(32086);e({target:"String",proto:!0,forced:t("fontsize")},{fontsize:function(){function o(m){return a(this,"font","size",m)}return o}()})},48432:function(L,r,n){"use strict";var e=n(77549),a=n(18161),t=n(74067),o=RangeError,m=String.fromCharCode,N=String.fromCodePoint,y=a([].join),S=!!N&&N.length!==1;e({target:"String",stat:!0,arity:1,forced:S},{fromCodePoint:function(){function k(p){for(var l=[],c=arguments.length,f=0,u;c>f;){if(u=+arguments[f++],t(u,1114111)!==u)throw new o(u+" is not a valid code point");l[f]=u<65536?m(u):m(((u-=65536)>>10)+55296,u%1024+56320)}return y(l,"")}return k}()})},54564:function(L,r,n){"use strict";var e=n(77549),a=n(18161),t=n(89140),o=n(91029),m=n(26602),N=n(93321),y=a("".indexOf);e({target:"String",proto:!0,forced:!N("includes")},{includes:function(){function S(k){return!!~y(m(o(this)),m(t(k)),arguments.length>1?arguments[1]:void 0)}return S}()})},83560:function(L,r,n){"use strict";var e=n(77549),a=n(93677),t=n(32086);e({target:"String",proto:!0,forced:t("italics")},{italics:function(){function o(){return a(this,"i","","")}return o}()})},58179:function(L,r,n){"use strict";var e=n(56852).charAt,a=n(26602),t=n(35086),o=n(2449),m=n(77056),N="String Iterator",y=t.set,S=t.getterFor(N);o(String,"String",function(k){y(this,{type:N,string:a(k),index:0})},function(){function k(){var p=S(this),l=p.string,c=p.index,f;return c>=l.length?m(void 0,!0):(f=e(l,c),p.index+=f.length,m(f,!1))}return k}())},63465:function(L,r,n){"use strict";var e=n(77549),a=n(93677),t=n(32086);e({target:"String",proto:!0,forced:t("link")},{link:function(){function o(m){return a(this,"a","href",m)}return o}()})},68164:function(L,r,n){"use strict";var e=n(62696),a=n(85427),t=n(39482),o=n(1022),m=n(10475),N=n(26602),y=n(91029),S=n(4817),k=n(62970),p=n(35553);a("match",function(l,c,f){return[function(){function u(i){var s=y(this),d=o(i)?void 0:S(i,l);return d?e(d,i,s):new RegExp(i)[l](N(s))}return u}(),function(u){var i=t(this),s=N(u),d=f(c,i,s);if(d.done)return d.value;if(!i.global)return p(i,s);var h=i.unicode;i.lastIndex=0;for(var v=[],g=0,C;(C=p(i,s))!==null;){var V=N(C[0]);v[g]=V,V===""&&(i.lastIndex=k(s,m(i.lastIndex),h)),g++}return g===0?null:v}]})},58880:function(L,r,n){"use strict";var e=n(77549),a=n(34086).end,t=n(33038);e({target:"String",proto:!0,forced:t},{padEnd:function(){function o(m){return a(this,m,arguments.length>1?arguments[1]:void 0)}return o}()})},54465:function(L,r,n){"use strict";var e=n(77549),a=n(34086).start,t=n(33038);e({target:"String",proto:!0,forced:t},{padStart:function(){function o(m){return a(this,m,arguments.length>1?arguments[1]:void 0)}return o}()})},97327:function(L,r,n){"use strict";var e=n(77549),a=n(18161),t=n(96812),o=n(40076),m=n(26602),N=n(8333),y=a([].push),S=a([].join);e({target:"String",stat:!0},{raw:function(){function k(p){var l=t(o(p).raw),c=N(l);if(!c)return"";for(var f=arguments.length,u=[],i=0;;){if(y(u,m(l[i++])),i===c)return S(u,"");i")!=="7"});o("replace",function(x,E,M){var j=T?"$":"$0";return[function(){function P(R,D){var F=c(this),W=S(R)?void 0:u(R,h);return W?a(W,R,F,D):a(E,l(F),R,D)}return P}(),function(P,R){var D=N(this),F=l(P);if(typeof R=="string"&&b(R,j)===-1&&b(R,"$<")===-1){var W=M(E,D,F,R);if(W.done)return W.value}var _=y(R);_||(R=l(R));var H=D.global,z;H&&(z=D.unicode,D.lastIndex=0);for(var $=[],X;X=s(D,F),!(X===null||(V($,X),!H));){var J=l(X[0]);J===""&&(D.lastIndex=f(F,p(D.lastIndex),z))}for(var ce="",re=0,me=0;me<$.length;me++){X=$[me];for(var pe=l(X[0]),ye=v(g(k(X.index),F.length),0),Be=[],he,oe=1;oe=re&&(ce+=B(F,re,ye)+he,re=ye+pe.length)}return ce+B(F,re)}]},!A||!w||T)},17337:function(L,r,n){"use strict";var e=n(62696),a=n(85427),t=n(39482),o=n(1022),m=n(91029),N=n(37309),y=n(26602),S=n(4817),k=n(35553);a("search",function(p,l,c){return[function(){function f(u){var i=m(this),s=o(u)?void 0:S(u,p);return s?e(s,u,i):new RegExp(u)[p](y(i))}return f}(),function(f){var u=t(this),i=y(f),s=c(l,u,i);if(s.done)return s.value;var d=u.lastIndex;N(d,0)||(u.lastIndex=0);var h=k(u,i);return N(u.lastIndex,d)||(u.lastIndex=d),h===null?-1:h.index}]})},98998:function(L,r,n){"use strict";var e=n(77549),a=n(93677),t=n(32086);e({target:"String",proto:!0,forced:t("small")},{small:function(){function o(){return a(this,"small","","")}return o}()})},53713:function(L,r,n){"use strict";var e=n(62696),a=n(18161),t=n(85427),o=n(39482),m=n(1022),N=n(91029),y=n(78412),S=n(62970),k=n(10475),p=n(26602),l=n(4817),c=n(35553),f=n(1064),u=n(41746),i=f.UNSUPPORTED_Y,s=4294967295,d=Math.min,h=a([].push),v=a("".slice),g=!u(function(){var V=/(?:)/,b=V.exec;V.exec=function(){return b.apply(this,arguments)};var B="ab".split(V);return B.length!==2||B[0]!=="a"||B[1]!=="b"}),C="abbc".split(/(b)*/)[1]==="c"||"test".split(/(?:)/,-1).length!==4||"ab".split(/(?:ab)*/).length!==2||".".split(/(.?)(.?)/).length!==4||".".split(/()()/).length>1||"".split(/.?/).length;t("split",function(V,b,B){var I="0".split(void 0,0).length?function(w,T){return w===void 0&&T===0?[]:e(b,this,w,T)}:b;return[function(){function w(T,A){var x=N(this),E=m(T)?void 0:l(T,V);return E?e(E,T,x,A):e(I,p(x),T,A)}return w}(),function(w,T){var A=o(this),x=p(w);if(!C){var E=B(I,A,x,T,I!==b);if(E.done)return E.value}var M=y(A,RegExp),j=A.unicode,P=(A.ignoreCase?"i":"")+(A.multiline?"m":"")+(A.unicode?"u":"")+(i?"g":"y"),R=new M(i?"^(?:"+A.source+")":A,P),D=T===void 0?s:T>>>0;if(D===0)return[];if(x.length===0)return c(R,x)===null?[x]:[];for(var F=0,W=0,_=[];W1?arguments[1]:void 0,s.length)),h=m(i);return p(s,d,d+h.length)===h}return u}()})},96227:function(L,r,n){"use strict";var e=n(77549),a=n(93677),t=n(32086);e({target:"String",proto:!0,forced:t("strike")},{strike:function(){function o(){return a(this,"strike","","")}return o}()})},15483:function(L,r,n){"use strict";var e=n(77549),a=n(93677),t=n(32086);e({target:"String",proto:!0,forced:t("sub")},{sub:function(){function o(){return a(this,"sub","","")}return o}()})},86829:function(L,r,n){"use strict";var e=n(77549),a=n(93677),t=n(32086);e({target:"String",proto:!0,forced:t("sup")},{sup:function(){function o(){return a(this,"sup","","")}return o}()})},93073:function(L,r,n){"use strict";n(17434);var e=n(77549),a=n(11775);e({target:"String",proto:!0,name:"trimEnd",forced:"".trimEnd!==a},{trimEnd:a})},69107:function(L,r,n){"use strict";var e=n(77549),a=n(26402);e({target:"String",proto:!0,name:"trimStart",forced:"".trimLeft!==a},{trimLeft:a})},17434:function(L,r,n){"use strict";var e=n(77549),a=n(11775);e({target:"String",proto:!0,name:"trimEnd",forced:"".trimRight!==a},{trimRight:a})},50800:function(L,r,n){"use strict";n(69107);var e=n(77549),a=n(26402);e({target:"String",proto:!0,name:"trimStart",forced:"".trimStart!==a},{trimStart:a})},11121:function(L,r,n){"use strict";var e=n(77549),a=n(35171).trim,t=n(93817);e({target:"String",proto:!0,forced:t("trim")},{trim:function(){function o(){return a(this)}return o}()})},46951:function(L,r,n){"use strict";var e=n(15388);e("asyncIterator")},9056:function(L,r,n){"use strict";var e=n(77549),a=n(40224),t=n(62696),o=n(18161),m=n(11478),N=n(14141),y=n(70640),S=n(41746),k=n(89458),p=n(33314),l=n(39482),c=n(96812),f=n(57640),u=n(26602),i=n(7539),s=n(28969),d=n(84913),h=n(34813),v=n(63797),g=n(34220),C=n(54168),V=n(56018),b=n(65854),B=n(9776),I=n(59173),w=n(10069),T=n(75130),A=n(5160),x=n(21124),E=n(33345),M=n(66266),j=n(32938),P=n(15388),R=n(75429),D=n(94234),F=n(35086),W=n(67480).forEach,_=A("hidden"),H="Symbol",z="prototype",$=F.set,X=F.getterFor(H),J=Object[z],ce=a.Symbol,re=ce&&ce[z],me=a.RangeError,pe=a.TypeError,ye=a.QObject,Be=C.f,he=V.f,oe=v.f,Z=B.f,q=o([].push),ue=T("symbols"),se=T("op-symbols"),ne=T("wks"),be=!ye||!ye[z]||!ye[z].findChild,fe=function(le,Ce,de){var Ne=Be(J,Ce);Ne&&delete J[Ce],he(le,Ce,de),Ne&&le!==J&&he(J,Ce,Ne)},ge=N&&S(function(){return s(he({},"a",{get:function(){function ae(){return he(this,"a",{value:7}).a}return ae}()})).a!==7})?fe:he,ke=function(le,Ce){var de=ue[le]=s(re);return $(de,{type:H,tag:le,description:Ce}),N||(de.description=Ce),de},ve=function(){function ae(le,Ce,de){le===J&&ve(se,Ce,de),l(le);var Ne=f(Ce);return l(de),k(ue,Ne)?(de.enumerable?(k(le,_)&&le[_][Ne]&&(le[_][Ne]=!1),de=s(de,{enumerable:i(0,!1)})):(k(le,_)||he(le,_,i(1,s(null))),le[_][Ne]=!0),ge(le,Ne,de)):he(le,Ne,de)}return ae}(),Se=function(){function ae(le,Ce){l(le);var de=c(Ce),Ne=d(de).concat(Ve(de));return W(Ne,function(Ae){(!N||t(xe,de,Ae))&&ve(le,Ae,de[Ae])}),le}return ae}(),we=function(){function ae(le,Ce){return Ce===void 0?s(le):Se(s(le),Ce)}return ae}(),xe=function(){function ae(le){var Ce=f(le),de=t(Z,this,Ce);return this===J&&k(ue,Ce)&&!k(se,Ce)?!1:de||!k(this,Ce)||!k(ue,Ce)||k(this,_)&&this[_][Ce]?de:!0}return ae}(),Oe=function(){function ae(le,Ce){var de=c(le),Ne=f(Ce);if(!(de===J&&k(ue,Ne)&&!k(se,Ne))){var Ae=Be(de,Ne);return Ae&&k(ue,Ne)&&!(k(de,_)&&de[_][Ne])&&(Ae.enumerable=!0),Ae}}return ae}(),We=function(){function ae(le){var Ce=oe(c(le)),de=[];return W(Ce,function(Ne){!k(ue,Ne)&&!k(x,Ne)&&q(de,Ne)}),de}return ae}(),Ve=function(le){var Ce=le===J,de=oe(Ce?se:c(le)),Ne=[];return W(de,function(Ae){k(ue,Ae)&&(!Ce||k(J,Ae))&&q(Ne,ue[Ae])}),Ne};y||(ce=function(){function ae(){if(p(re,this))throw new pe("Symbol is not a constructor");var le=!arguments.length||arguments[0]===void 0?void 0:u(arguments[0]),Ce=E(le),de=function(){function Ne(Ae){var De=this===void 0?a:this;De===J&&t(Ne,se,Ae),k(De,_)&&k(De[_],Ce)&&(De[_][Ce]=!1);var je=i(1,Ae);try{ge(De,Ce,je)}catch(_e){if(!(_e instanceof me))throw _e;fe(De,Ce,je)}}return Ne}();return N&&be&&ge(J,Ce,{configurable:!0,set:de}),ke(Ce,le)}return ae}(),re=ce[z],I(re,"toString",function(){function ae(){return X(this).tag}return ae}()),I(ce,"withoutSetter",function(ae){return ke(E(ae),ae)}),B.f=xe,V.f=ve,b.f=Se,C.f=Oe,h.f=v.f=We,g.f=Ve,j.f=function(ae){return ke(M(ae),ae)},N&&(w(re,"description",{configurable:!0,get:function(){function ae(){return X(this).description}return ae}()}),m||I(J,"propertyIsEnumerable",xe,{unsafe:!0}))),e({global:!0,constructor:!0,wrap:!0,forced:!y,sham:!y},{Symbol:ce}),W(d(ne),function(ae){P(ae)}),e({target:H,stat:!0,forced:!y},{useSetter:function(){function ae(){be=!0}return ae}(),useSimple:function(){function ae(){be=!1}return ae}()}),e({target:"Object",stat:!0,forced:!y,sham:!N},{create:we,defineProperty:ve,defineProperties:Se,getOwnPropertyDescriptor:Oe}),e({target:"Object",stat:!0,forced:!y},{getOwnPropertyNames:We}),R(),D(ce,H),x[_]=!0},27718:function(L,r,n){"use strict";var e=n(77549),a=n(14141),t=n(40224),o=n(18161),m=n(89458),N=n(7532),y=n(33314),S=n(26602),k=n(10069),p=n(70113),l=t.Symbol,c=l&&l.prototype;if(a&&N(l)&&(!("description"in c)||l().description!==void 0)){var f={},u=function(){function C(){var V=arguments.length<1||arguments[0]===void 0?void 0:S(arguments[0]),b=y(c,this)?new l(V):V===void 0?l():l(V);return V===""&&(f[b]=!0),b}return C}();p(u,l),u.prototype=c,c.constructor=u;var i=String(l("description detection"))==="Symbol(description detection)",s=o(c.valueOf),d=o(c.toString),h=/^Symbol\((.*)\)[^)]+$/,v=o("".replace),g=o("".slice);k(c,"description",{configurable:!0,get:function(){function C(){var V=s(this);if(m(f,V))return"";var b=d(V),B=i?g(b,7,-1):v(b,h,"$1");return B===""?void 0:B}return C}()}),e({global:!0,constructor:!0,forced:!0},{Symbol:u})}},18611:function(L,r,n){"use strict";var e=n(77549),a=n(40164),t=n(89458),o=n(26602),m=n(75130),N=n(80353),y=m("string-to-symbol-registry"),S=m("symbol-to-string-registry");e({target:"Symbol",stat:!0,forced:!N},{for:function(){function k(p){var l=o(p);if(t(y,l))return y[l];var c=a("Symbol")(l);return y[l]=c,S[c]=l,c}return k}()})},86042:function(L,r,n){"use strict";var e=n(15388);e("hasInstance")},93267:function(L,r,n){"use strict";var e=n(15388);e("isConcatSpreadable")},41664:function(L,r,n){"use strict";var e=n(15388);e("iterator")},99414:function(L,r,n){"use strict";n(9056),n(18611),n(30661),n(12183),n(93146)},30661:function(L,r,n){"use strict";var e=n(77549),a=n(89458),t=n(74352),o=n(62518),m=n(75130),N=n(80353),y=m("symbol-to-string-registry");e({target:"Symbol",stat:!0,forced:!N},{keyFor:function(){function S(k){if(!t(k))throw new TypeError(o(k)+" is not a symbol");if(a(y,k))return y[k]}return S}()})},48965:function(L,r,n){"use strict";var e=n(15388);e("match")},44844:function(L,r,n){"use strict";var e=n(15388);e("replace")},25030:function(L,r,n){"use strict";var e=n(15388);e("search")},96454:function(L,r,n){"use strict";var e=n(15388);e("species")},77564:function(L,r,n){"use strict";var e=n(15388);e("split")},44875:function(L,r,n){"use strict";var e=n(15388),a=n(75429);e("toPrimitive"),a()},77904:function(L,r,n){"use strict";var e=n(40164),a=n(15388),t=n(94234);a("toStringTag"),t(e("Symbol"),"Symbol")},35723:function(L,r,n){"use strict";var e=n(15388);e("unscopables")},84805:function(L,r,n){"use strict";var e=n(18161),a=n(72951),t=n(42320),o=e(t),m=a.aTypedArray,N=a.exportTypedArrayMethod;N("copyWithin",function(){function y(S,k){return o(m(this),S,k,arguments.length>2?arguments[2]:void 0)}return y}())},79305:function(L,r,n){"use strict";var e=n(72951),a=n(67480).every,t=e.aTypedArray,o=e.exportTypedArrayMethod;o("every",function(){function m(N){return a(t(this),N,arguments.length>1?arguments[1]:void 0)}return m}())},71573:function(L,r,n){"use strict";var e=n(72951),a=n(59942),t=n(757),o=n(27806),m=n(62696),N=n(18161),y=n(41746),S=e.aTypedArray,k=e.exportTypedArrayMethod,p=N("".slice),l=y(function(){var c=0;return new Int8Array(2).fill({valueOf:function(){function f(){return c++}return f}()}),c!==1});k("fill",function(){function c(f){var u=arguments.length;S(this);var i=p(o(this),0,3)==="Big"?t(f):+f;return m(a,this,i,u>1?arguments[1]:void 0,u>2?arguments[2]:void 0)}return c}(),l)},47910:function(L,r,n){"use strict";var e=n(72951),a=n(67480).filter,t=n(80936),o=e.aTypedArray,m=e.exportTypedArrayMethod;m("filter",function(){function N(y){var S=a(o(this),y,arguments.length>1?arguments[1]:void 0);return t(this,S)}return N}())},99662:function(L,r,n){"use strict";var e=n(72951),a=n(67480).findIndex,t=e.aTypedArray,o=e.exportTypedArrayMethod;o("findIndex",function(){function m(N){return a(t(this),N,arguments.length>1?arguments[1]:void 0)}return m}())},48447:function(L,r,n){"use strict";var e=n(72951),a=n(67480).find,t=e.aTypedArray,o=e.exportTypedArrayMethod;o("find",function(){function m(N){return a(t(this),N,arguments.length>1?arguments[1]:void 0)}return m}())},68265:function(L,r,n){"use strict";var e=n(12218);e("Float32",function(a){return function(){function t(o,m,N){return a(this,o,m,N)}return t}()})},36030:function(L,r,n){"use strict";var e=n(12218);e("Float64",function(a){return function(){function t(o,m,N){return a(this,o,m,N)}return t}()})},57371:function(L,r,n){"use strict";var e=n(72951),a=n(67480).forEach,t=e.aTypedArray,o=e.exportTypedArrayMethod;o("forEach",function(){function m(N){a(t(this),N,arguments.length>1?arguments[1]:void 0)}return m}())},68220:function(L,r,n){"use strict";var e=n(66220),a=n(72951).exportTypedArrayStaticMethod,t=n(7996);a("from",t,e)},15745:function(L,r,n){"use strict";var e=n(72951),a=n(64210).includes,t=e.aTypedArray,o=e.exportTypedArrayMethod;o("includes",function(){function m(N){return a(t(this),N,arguments.length>1?arguments[1]:void 0)}return m}())},43398:function(L,r,n){"use strict";var e=n(72951),a=n(64210).indexOf,t=e.aTypedArray,o=e.exportTypedArrayMethod;o("indexOf",function(){function m(N){return a(t(this),N,arguments.length>1?arguments[1]:void 0)}return m}())},25888:function(L,r,n){"use strict";var e=n(12218);e("Int16",function(a){return function(){function t(o,m,N){return a(this,o,m,N)}return t}()})},35718:function(L,r,n){"use strict";var e=n(12218);e("Int32",function(a){return function(){function t(o,m,N){return a(this,o,m,N)}return t}()})},32791:function(L,r,n){"use strict";var e=n(12218);e("Int8",function(a){return function(){function t(o,m,N){return a(this,o,m,N)}return t}()})},97722:function(L,r,n){"use strict";var e=n(40224),a=n(41746),t=n(18161),o=n(72951),m=n(65809),N=n(66266),y=N("iterator"),S=e.Uint8Array,k=t(m.values),p=t(m.keys),l=t(m.entries),c=o.aTypedArray,f=o.exportTypedArrayMethod,u=S&&S.prototype,i=!a(function(){u[y].call([1])}),s=!!u&&u.values&&u[y]===u.values&&u.values.name==="values",d=function(){function h(){return k(c(this))}return h}();f("entries",function(){function h(){return l(c(this))}return h}(),i),f("keys",function(){function h(){return p(c(this))}return h}(),i),f("values",d,i||!s,{name:"values"}),f(y,d,i||!s,{name:"values"})},79088:function(L,r,n){"use strict";var e=n(72951),a=n(18161),t=e.aTypedArray,o=e.exportTypedArrayMethod,m=a([].join);o("join",function(){function N(y){return m(t(this),y)}return N}())},6075:function(L,r,n){"use strict";var e=n(72951),a=n(70918),t=n(16934),o=e.aTypedArray,m=e.exportTypedArrayMethod;m("lastIndexOf",function(){function N(y){var S=arguments.length;return a(t,o(this),S>1?[y,arguments[1]]:[y])}return N}())},46896:function(L,r,n){"use strict";var e=n(72951),a=n(67480).map,t=n(489),o=e.aTypedArray,m=e.exportTypedArrayMethod;m("map",function(){function N(y){return a(o(this),y,arguments.length>1?arguments[1]:void 0,function(S,k){return new(t(S))(k)})}return N}())},47145:function(L,r,n){"use strict";var e=n(72951),a=n(66220),t=e.aTypedArrayConstructor,o=e.exportTypedArrayStaticMethod;o("of",function(){function m(){for(var N=0,y=arguments.length,S=new(t(this))(y);y>N;)S[N]=arguments[N++];return S}return m}(),a)},349:function(L,r,n){"use strict";var e=n(72951),a=n(98405).right,t=e.aTypedArray,o=e.exportTypedArrayMethod;o("reduceRight",function(){function m(N){var y=arguments.length;return a(t(this),N,y,y>1?arguments[1]:void 0)}return m}())},72606:function(L,r,n){"use strict";var e=n(72951),a=n(98405).left,t=e.aTypedArray,o=e.exportTypedArrayMethod;o("reduce",function(){function m(N){var y=arguments.length;return a(t(this),N,y,y>1?arguments[1]:void 0)}return m}())},28292:function(L,r,n){"use strict";var e=n(72951),a=e.aTypedArray,t=e.exportTypedArrayMethod,o=Math.floor;t("reverse",function(){function m(){for(var N=this,y=a(N).length,S=o(y/2),k=0,p;k1?arguments[1]:void 0,1),v=N(d);if(u)return a(l,this,v,h);var g=this.length,C=o(v),V=0;if(C+h>g)throw new S("Wrong length");for(;Vf;)i[f]=l[f++];return i}return S}(),y)},74188:function(L,r,n){"use strict";var e=n(72951),a=n(67480).some,t=e.aTypedArray,o=e.exportTypedArrayMethod;o("some",function(){function m(N){return a(t(this),N,arguments.length>1?arguments[1]:void 0)}return m}())},81976:function(L,r,n){"use strict";var e=n(40224),a=n(85067),t=n(41746),o=n(97361),m=n(44815),N=n(72951),y=n(49847),S=n(56605),k=n(82709),p=n(53125),l=N.aTypedArray,c=N.exportTypedArrayMethod,f=e.Uint16Array,u=f&&a(f.prototype.sort),i=!!u&&!(t(function(){u(new f(2),null)})&&t(function(){u(new f(2),{})})),s=!!u&&!t(function(){if(k)return k<74;if(y)return y<67;if(S)return!0;if(p)return p<602;var h=new f(516),v=Array(516),g,C;for(g=0;g<516;g++)C=g%4,h[g]=515-g,v[g]=g-2*C+3;for(u(h,function(V,b){return(V/4|0)-(b/4|0)}),g=0;g<516;g++)if(h[g]!==v[g])return!0}),d=function(v){return function(g,C){return v!==void 0?+v(g,C)||0:C!==C?-1:g!==g?1:g===0&&C===0?1/g>0&&1/C<0?1:-1:g>C}};c("sort",function(){function h(v){return v!==void 0&&o(v),s?u(this,v):m(l(this),d(v))}return h}(),!s||i)},78651:function(L,r,n){"use strict";var e=n(72951),a=n(10475),t=n(74067),o=n(489),m=e.aTypedArray,N=e.exportTypedArrayMethod;N("subarray",function(){function y(S,k){var p=m(this),l=p.length,c=t(S,l),f=o(p);return new f(p.buffer,p.byteOffset+c*p.BYTES_PER_ELEMENT,a((k===void 0?l:t(k,l))-c))}return y}())},81664:function(L,r,n){"use strict";var e=n(40224),a=n(70918),t=n(72951),o=n(41746),m=n(77713),N=e.Int8Array,y=t.aTypedArray,S=t.exportTypedArrayMethod,k=[].toLocaleString,p=!!N&&o(function(){k.call(new N(1))}),l=o(function(){return[1,2].toLocaleString()!==new N([1,2]).toLocaleString()})||!o(function(){N.prototype.toLocaleString.call([1,2])});S("toLocaleString",function(){function c(){return a(k,p?m(y(this)):y(this),m(arguments))}return c}(),l)},35579:function(L,r,n){"use strict";var e=n(72951).exportTypedArrayMethod,a=n(41746),t=n(40224),o=n(18161),m=t.Uint8Array,N=m&&m.prototype||{},y=[].toString,S=o([].join);a(function(){y.call({})})&&(y=function(){function p(){return S(this)}return p}());var k=N.toString!==y;e("toString",y,k)},99683:function(L,r,n){"use strict";var e=n(12218);e("Uint16",function(a){return function(){function t(o,m,N){return a(this,o,m,N)}return t}()})},80941:function(L,r,n){"use strict";var e=n(12218);e("Uint32",function(a){return function(){function t(o,m,N){return a(this,o,m,N)}return t}()})},45338:function(L,r,n){"use strict";var e=n(12218);e("Uint8",function(a){return function(){function t(o,m,N){return a(this,o,m,N)}return t}()})},40737:function(L,r,n){"use strict";var e=n(12218);e("Uint8",function(a){return function(){function t(o,m,N){return a(this,o,m,N)}return t}()},!0)},74283:function(L,r,n){"use strict";var e=n(56255),a=n(40224),t=n(18161),o=n(13648),m=n(29126),N=n(93439),y=n(32920),S=n(56831),k=n(35086).enforce,p=n(41746),l=n(90777),c=Object,f=Array.isArray,u=c.isExtensible,i=c.isFrozen,s=c.isSealed,d=c.freeze,h=c.seal,v=!a.ActiveXObject&&"ActiveXObject"in a,g,C=function(E){return function(){function M(){return E(this,arguments.length?arguments[0]:void 0)}return M}()},V=N("WeakMap",C,y),b=V.prototype,B=t(b.set),I=function(){return e&&p(function(){var E=d([]);return B(new V,E,1),!i(E)})};if(l)if(v){g=y.getConstructor(C,"WeakMap",!0),m.enable();var w=t(b.delete),T=t(b.has),A=t(b.get);o(b,{delete:function(){function x(E){if(S(E)&&!u(E)){var M=k(this);return M.frozen||(M.frozen=new g),w(this,E)||M.frozen.delete(E)}return w(this,E)}return x}(),has:function(){function x(E){if(S(E)&&!u(E)){var M=k(this);return M.frozen||(M.frozen=new g),T(this,E)||M.frozen.has(E)}return T(this,E)}return x}(),get:function(){function x(E){if(S(E)&&!u(E)){var M=k(this);return M.frozen||(M.frozen=new g),T(this,E)?A(this,E):M.frozen.get(E)}return A(this,E)}return x}(),set:function(){function x(E,M){if(S(E)&&!u(E)){var j=k(this);j.frozen||(j.frozen=new g),T(this,E)?B(this,E,M):j.frozen.set(E,M)}else B(this,E,M);return this}return x}()})}else I()&&o(b,{set:function(){function x(E,M){var j;return f(E)&&(i(E)?j=d:s(E)&&(j=h)),B(this,E,M),j&&j(E),this}return x}()})},84033:function(L,r,n){"use strict";n(74283)},82389:function(L,r,n){"use strict";var e=n(93439),a=n(32920);e("WeakSet",function(t){return function(){function o(){return t(this,arguments.length?arguments[0]:void 0)}return o}()},a)},71863:function(L,r,n){"use strict";n(82389)},73993:function(L,r,n){"use strict";var e=n(77549),a=n(40224),t=n(91314).clear;e({global:!0,bind:!0,enumerable:!0,forced:a.clearImmediate!==t},{clearImmediate:t})},55457:function(L,r,n){"use strict";n(73993),n(72532)},57399:function(L,r,n){"use strict";var e=n(77549),a=n(40224),t=n(27150),o=n(97361),m=n(22789),N=n(41746),y=n(14141),S=N(function(){return y&&Object.getOwnPropertyDescriptor(a,"queueMicrotask").value.length!==1});e({global:!0,enumerable:!0,dontCallGetSet:!0,forced:S},{queueMicrotask:function(){function k(p){m(arguments.length,1),t(o(p))}return k}()})},72532:function(L,r,n){"use strict";var e=n(77549),a=n(40224),t=n(91314).set,o=n(83827),m=a.setImmediate?o(t,!1):t;e({global:!0,bind:!0,enumerable:!0,forced:a.setImmediate!==m},{setImmediate:m})},48112:function(L,r,n){"use strict";var e=n(77549),a=n(40224),t=n(83827),o=t(a.setInterval,!0);e({global:!0,bind:!0,forced:a.setInterval!==o},{setInterval:o})},82274:function(L,r,n){"use strict";var e=n(77549),a=n(40224),t=n(83827),o=t(a.setTimeout,!0);e({global:!0,bind:!0,forced:a.setTimeout!==o},{setTimeout:o})},65836:function(L,r,n){"use strict";n(48112),n(82274)},50719:function(L){"use strict";/** + */var t=r.BoxWithSampleText=function(){function o(m){return(0,e.normalizeProps)((0,e.createComponentVNode)(2,a.Box,Object.assign({},m,{children:[(0,e.createComponentVNode)(2,a.Box,{italic:!0,children:"Jackdaws love my big sphinx of quartz."}),(0,e.createComponentVNode)(2,a.Box,{mt:1,bold:!0,children:"The wide electrification of the southern provinces will give a powerful impetus to the growth of agriculture."})]})))}return o}()},21965:function(){},28169:function(){},36487:function(){},35739:function(){},33631:function(){},74785:function(){},6895:function(){},3251:function(){},7455:function(){},58823:function(){},49265:function(){},55350:function(){},45503:function(){},36557:function(){},70555:function(){},70752:function(I,r,n){var e={"./pai_atmosphere.js":24704,"./pai_bioscan.js":4209,"./pai_directives.js":44430,"./pai_doorjack.js":3367,"./pai_main_menu.js":73395,"./pai_manifest.js":37645,"./pai_medrecords.js":15836,"./pai_messenger.js":91737,"./pai_radio.js":94077,"./pai_secrecords.js":72621,"./pai_signaler.js":53483};function a(o){var m=t(o);return n(m)}function t(o){if(!n.o(e,o)){var m=new Error("Cannot find module '"+o+"'");throw m.code="MODULE_NOT_FOUND",m}return e[o]}a.keys=function(){return Object.keys(e)},a.resolve=t,I.exports=a,a.id=70752},59395:function(I,r,n){var e={"./pda_atmos_scan.js":21606,"./pda_janitor.js":12339,"./pda_main_menu.js":36615,"./pda_manifest.js":99737,"./pda_medical.js":61597,"./pda_messenger.js":30709,"./pda_mob_hunt.js":71654,"./pda_mule.js":68053,"./pda_nanobank.js":31728,"./pda_notes.js":29415,"./pda_power.js":52363,"./pda_secbot.js":23914,"./pda_security.js":68878,"./pda_signaler.js":95135,"./pda_status_display.js":20835,"./pda_supplyrecords.js":11741};function a(o){var m=t(o);return n(m)}function t(o){if(!n.o(e,o)){var m=new Error("Cannot find module '"+o+"'");throw m.code="MODULE_NOT_FOUND",m}return e[o]}a.keys=function(){return Object.keys(e)},a.resolve=t,I.exports=a,a.id=59395},32054:function(I,r,n){var e={"./AICard":29732,"./AICard.js":29732,"./AIFixer":78468,"./AIFixer.js":78468,"./APC":73544,"./APC.js":73544,"./ATM":79098,"./ATM.js":79098,"./AccountsUplinkTerminal":64613,"./AccountsUplinkTerminal.js":64613,"./AgentCard":34257,"./AgentCard.js":34257,"./AiAirlock":56839,"./AiAirlock.js":56839,"./AirAlarm":5565,"./AirAlarm.js":5565,"./AirlockAccessController":82915,"./AirlockAccessController.js":82915,"./AirlockElectronics":14962,"./AirlockElectronics.js":14962,"./AlertModal":99327,"./AlertModal.tsx":99327,"./AppearanceChanger":88642,"./AppearanceChanger.js":88642,"./AtmosAlertConsole":51731,"./AtmosAlertConsole.js":51731,"./AtmosControl":57467,"./AtmosControl.js":57467,"./AtmosFilter":41550,"./AtmosFilter.js":41550,"./AtmosGraphMonitor":16688,"./AtmosGraphMonitor.tsx":16688,"./AtmosMixer":70151,"./AtmosMixer.js":70151,"./AtmosPump":54090,"./AtmosPump.js":54090,"./AtmosTankControl":31335,"./AtmosTankControl.js":31335,"./Autolathe":85909,"./Autolathe.js":85909,"./BioChipPad":81617,"./BioChipPad.js":81617,"./Biogenerator":26215,"./Biogenerator.js":26215,"./BlueSpaceArtilleryControl":65483,"./BlueSpaceArtilleryControl.js":65483,"./BluespaceTap":69099,"./BluespaceTap.js":69099,"./BodyScanner":71736,"./BodyScanner.js":71736,"./BookBinder":99449,"./BookBinder.js":99449,"./BotClean":43506,"./BotClean.js":43506,"./BotFloor":89593,"./BotFloor.js":89593,"./BotHonk":89513,"./BotHonk.js":89513,"./BotMed":19297,"./BotMed.js":19297,"./BotSecurity":4249,"./BotSecurity.js":4249,"./BrigCells":27267,"./BrigCells.js":27267,"./BrigTimer":26623,"./BrigTimer.js":26623,"./CameraConsole":43542,"./CameraConsole.js":43542,"./CameraConsole220":9300,"./CameraConsole220.js":9300,"./Canister":95513,"./Canister.js":95513,"./CardComputer":60463,"./CardComputer.js":60463,"./CargoConsole":16377,"./CargoConsole.js":16377,"./ChangelogView":89917,"./ChangelogView.js":89917,"./ChemDispenser":71254,"./ChemDispenser.js":71254,"./ChemHeater":27004,"./ChemHeater.js":27004,"./ChemMaster":33611,"./ChemMaster.js":33611,"./CloningConsole":51327,"./CloningConsole.js":51327,"./CloningPod":66373,"./CloningPod.js":66373,"./ColourMatrixTester":11866,"./ColourMatrixTester.js":11866,"./CommunicationsComputer":22420,"./CommunicationsComputer.js":22420,"./CompostBin":46868,"./CompostBin.js":46868,"./Contractor":64707,"./Contractor.js":64707,"./ConveyorSwitch":52141,"./ConveyorSwitch.js":52141,"./CrewMonitor":94187,"./CrewMonitor.js":94187,"./Cryo":60561,"./Cryo.js":60561,"./CryopodConsole":27889,"./CryopodConsole.js":27889,"./DNAModifier":81434,"./DNAModifier.js":81434,"./DestinationTagger":99127,"./DestinationTagger.js":99127,"./DisposalBin":93430,"./DisposalBin.js":93430,"./DnaVault":31491,"./DnaVault.js":31491,"./DroneConsole":30747,"./DroneConsole.js":30747,"./EFTPOS":74781,"./EFTPOS.js":74781,"./ERTManager":30672,"./ERTManager.js":30672,"./EconomyManager":24503,"./EconomyManager.js":24503,"./Electropack":15543,"./Electropack.js":15543,"./Emojipedia":57013,"./Emojipedia.tsx":57013,"./EmotePanel":75450,"./EmotePanel.js":75450,"./EvolutionMenu":99012,"./EvolutionMenu.js":99012,"./ExosuitFabricator":37504,"./ExosuitFabricator.js":37504,"./ExperimentConsole":9466,"./ExperimentConsole.js":9466,"./ExternalAirlockController":77284,"./ExternalAirlockController.js":77284,"./FaxMachine":52516,"./FaxMachine.js":52516,"./FilingCabinet":24777,"./FilingCabinet.js":24777,"./FloorPainter":88361,"./FloorPainter.js":88361,"./GPS":70078,"./GPS.js":70078,"./GeneModder":92246,"./GeneModder.js":92246,"./GenericCrewManifest":27163,"./GenericCrewManifest.js":27163,"./GhostHudPanel":53808,"./GhostHudPanel.js":53808,"./GlandDispenser":32035,"./GlandDispenser.js":32035,"./GravityGen":33004,"./GravityGen.js":33004,"./GuestPass":39775,"./GuestPass.js":39775,"./HandheldChemDispenser":22480,"./HandheldChemDispenser.js":22480,"./HealthSensor":22616,"./HealthSensor.js":22616,"./Holodeck":76861,"./Holodeck.js":76861,"./Instrument":96729,"./Instrument.js":96729,"./Jukebox":99366,"./Jukebox.tsx":99366,"./KeycardAuth":53385,"./KeycardAuth.js":53385,"./KitchenMachine":58553,"./KitchenMachine.js":58553,"./LawManager":14047,"./LawManager.js":14047,"./LibraryComputer":5872,"./LibraryComputer.js":5872,"./LibraryManager":37782,"./LibraryManager.js":37782,"./ListInputModal":26133,"./ListInputModal.tsx":26133,"./MODsuit":71963,"./MODsuit.js":71963,"./MagnetController":84274,"./MagnetController.js":84274,"./MechBayConsole":95752,"./MechBayConsole.js":95752,"./MechaControlConsole":53668,"./MechaControlConsole.js":53668,"./MedicalRecords":96467,"./MedicalRecords.js":96467,"./MerchVendor":68211,"./MerchVendor.js":68211,"./MiningVendor":14162,"./MiningVendor.js":14162,"./ModpacksList":46146,"./ModpacksList.js":46146,"./NTRecruiter":68977,"./NTRecruiter.js":68977,"./Newscaster":17067,"./Newscaster.js":17067,"./NuclearBomb":46940,"./NuclearBomb.js":46940,"./NumberInputModal":35478,"./NumberInputModal.tsx":35478,"./OperatingComputer":98476,"./OperatingComputer.js":98476,"./Orbit":98702,"./Orbit.js":98702,"./OreRedemption":74015,"./OreRedemption.js":74015,"./PAI":48824,"./PAI.js":48824,"./PDA":41565,"./PDA.js":41565,"./Pacman":78704,"./Pacman.js":78704,"./ParticleAccelerator":78643,"./ParticleAccelerator.js":78643,"./PdaPainter":34026,"./PdaPainter.js":34026,"./PersonalCrafting":81378,"./PersonalCrafting.js":81378,"./Photocopier":58792,"./Photocopier.js":58792,"./Photocopier220":45642,"./Photocopier220.js":45642,"./PoolController":27902,"./PoolController.js":27902,"./PortablePump":52025,"./PortablePump.js":52025,"./PortableScrubber":57827,"./PortableScrubber.js":57827,"./PortableTurret":63825,"./PortableTurret.js":63825,"./PowerMonitor":70373,"./PowerMonitor.js":70373,"./PrisonerImplantManager":27262,"./PrisonerImplantManager.js":27262,"./PrisonerShuttleConsole":22046,"./PrisonerShuttleConsole.js":22046,"./PrizeCounter":92014,"./PrizeCounter.tsx":92014,"./RCD":87963,"./RCD.js":87963,"./RPD":84364,"./RPD.js":84364,"./Radio":14641,"./Radio.js":14641,"./ReagentGrinder":40483,"./ReagentGrinder.js":40483,"./RemoteSignaler":94049,"./RemoteSignaler.js":94049,"./RequestConsole":12326,"./RequestConsole.js":12326,"./RndConsole":89641,"./RndConsole.js":89641,"./RndConsoleComponents":3422,"./RndConsoleComponents/":3422,"./RndConsoleComponents/CurrentLevels":19348,"./RndConsoleComponents/CurrentLevels.js":19348,"./RndConsoleComponents/DataDiskMenu":338,"./RndConsoleComponents/DataDiskMenu.js":338,"./RndConsoleComponents/DeconstructionMenu":90785,"./RndConsoleComponents/DeconstructionMenu.js":90785,"./RndConsoleComponents/LatheCategory":34492,"./RndConsoleComponents/LatheCategory.js":34492,"./RndConsoleComponents/LatheChemicalStorage":84275,"./RndConsoleComponents/LatheChemicalStorage.js":84275,"./RndConsoleComponents/LatheMainMenu":12638,"./RndConsoleComponents/LatheMainMenu.js":12638,"./RndConsoleComponents/LatheMaterialStorage":89004,"./RndConsoleComponents/LatheMaterialStorage.js":89004,"./RndConsoleComponents/LatheMaterials":73856,"./RndConsoleComponents/LatheMaterials.js":73856,"./RndConsoleComponents/LatheMenu":75955,"./RndConsoleComponents/LatheMenu.js":75955,"./RndConsoleComponents/LatheSearch":72880,"./RndConsoleComponents/LatheSearch.js":72880,"./RndConsoleComponents/MainMenu":62306,"./RndConsoleComponents/MainMenu.js":62306,"./RndConsoleComponents/RndNavButton":99941,"./RndConsoleComponents/RndNavButton.js":99941,"./RndConsoleComponents/RndNavbar":24448,"./RndConsoleComponents/RndNavbar.js":24448,"./RndConsoleComponents/RndRoute":78345,"./RndConsoleComponents/RndRoute.js":78345,"./RndConsoleComponents/SettingsMenu":56454,"./RndConsoleComponents/SettingsMenu.js":56454,"./RndConsoleComponents/index":3422,"./RndConsoleComponents/index.js":3422,"./RobotSelfDiagnosis":71123,"./RobotSelfDiagnosis.js":71123,"./RoboticsControlConsole":98951,"./RoboticsControlConsole.js":98951,"./Safe":2289,"./Safe.js":2289,"./SatelliteControl":49334,"./SatelliteControl.js":49334,"./SecureStorage":54892,"./SecureStorage.js":54892,"./SecurityRecords":56798,"./SecurityRecords.js":56798,"./SeedExtractor":59981,"./SeedExtractor.js":59981,"./ShuttleConsole":33454,"./ShuttleConsole.js":33454,"./ShuttleManipulator":50451,"./ShuttleManipulator.js":50451,"./Sleeper":99050,"./Sleeper.js":99050,"./SlotMachine":37763,"./SlotMachine.js":37763,"./Smartfridge":26654,"./Smartfridge.js":26654,"./Smes":71124,"./Smes.js":71124,"./SolarControl":21786,"./SolarControl.js":21786,"./SpawnersMenu":31202,"./SpawnersMenu.js":31202,"./SpecMenu":84800,"./SpecMenu.js":84800,"./StationAlertConsole":46501,"./StationAlertConsole.js":46501,"./StationTraitsPanel":18565,"./StationTraitsPanel.tsx":18565,"./StripMenu":95147,"./StripMenu.tsx":95147,"./SuitStorage":61284,"./SuitStorage.js":61284,"./SupermatterMonitor":19796,"./SupermatterMonitor.js":19796,"./SyndicateComputerSimple":30047,"./SyndicateComputerSimple.js":30047,"./TEG":28830,"./TEG.js":28830,"./TTSSeedsExplorer":67432,"./TTSSeedsExplorer.tsx":67432,"./TachyonArray":39903,"./TachyonArray.js":39903,"./Tank":17068,"./Tank.js":17068,"./TankDispenser":69161,"./TankDispenser.js":69161,"./TcommsCore":87394,"./TcommsCore.js":87394,"./TcommsRelay":55684,"./TcommsRelay.js":55684,"./Teleporter":81088,"./Teleporter.js":81088,"./TempGun":96150,"./TempGun.js":96150,"./TextInputModal":95484,"./TextInputModal.tsx":95484,"./ThermoMachine":378,"./ThermoMachine.js":378,"./TransferValve":3365,"./TransferValve.js":3365,"./TurbineComputer":13860,"./TurbineComputer.js":13860,"./Uplink":22169,"./Uplink.js":22169,"./Vending":70547,"./Vending.js":70547,"./VolumeMixer":33045,"./VolumeMixer.js":33045,"./VotePanel":53792,"./VotePanel.js":53792,"./Wires":64860,"./Wires.js":64860,"./WizardApprenticeContract":78262,"./WizardApprenticeContract.js":78262,"./common/AccessList":57842,"./common/AccessList.js":57842,"./common/AtmosScan":79449,"./common/AtmosScan.js":79449,"./common/BeakerContents":1496,"./common/BeakerContents.js":1496,"./common/BotStatus":69521,"./common/BotStatus.js":69521,"./common/ComplexModal":99665,"./common/ComplexModal.js":99665,"./common/CrewManifest":98444,"./common/CrewManifest.js":98444,"./common/InputButtons":15113,"./common/InputButtons.tsx":15113,"./common/InterfaceLockNoticeBox":26893,"./common/InterfaceLockNoticeBox.js":26893,"./common/Loader":14299,"./common/Loader.tsx":14299,"./common/LoginInfo":68159,"./common/LoginInfo.js":68159,"./common/LoginScreen":27527,"./common/LoginScreen.js":27527,"./common/Operating":75201,"./common/Operating.js":75201,"./common/Signaler":65435,"./common/Signaler.js":65435,"./common/SimpleRecords":77534,"./common/SimpleRecords.js":77534,"./common/TemporaryNotice":84537,"./common/TemporaryNotice.js":84537,"./pai/pai_atmosphere":24704,"./pai/pai_atmosphere.js":24704,"./pai/pai_bioscan":4209,"./pai/pai_bioscan.js":4209,"./pai/pai_directives":44430,"./pai/pai_directives.js":44430,"./pai/pai_doorjack":3367,"./pai/pai_doorjack.js":3367,"./pai/pai_main_menu":73395,"./pai/pai_main_menu.js":73395,"./pai/pai_manifest":37645,"./pai/pai_manifest.js":37645,"./pai/pai_medrecords":15836,"./pai/pai_medrecords.js":15836,"./pai/pai_messenger":91737,"./pai/pai_messenger.js":91737,"./pai/pai_radio":94077,"./pai/pai_radio.js":94077,"./pai/pai_secrecords":72621,"./pai/pai_secrecords.js":72621,"./pai/pai_signaler":53483,"./pai/pai_signaler.js":53483,"./pda/pda_atmos_scan":21606,"./pda/pda_atmos_scan.js":21606,"./pda/pda_janitor":12339,"./pda/pda_janitor.js":12339,"./pda/pda_main_menu":36615,"./pda/pda_main_menu.js":36615,"./pda/pda_manifest":99737,"./pda/pda_manifest.js":99737,"./pda/pda_medical":61597,"./pda/pda_medical.js":61597,"./pda/pda_messenger":30709,"./pda/pda_messenger.js":30709,"./pda/pda_mob_hunt":71654,"./pda/pda_mob_hunt.js":71654,"./pda/pda_mule":68053,"./pda/pda_mule.js":68053,"./pda/pda_nanobank":31728,"./pda/pda_nanobank.js":31728,"./pda/pda_notes":29415,"./pda/pda_notes.js":29415,"./pda/pda_power":52363,"./pda/pda_power.js":52363,"./pda/pda_secbot":23914,"./pda/pda_secbot.js":23914,"./pda/pda_security":68878,"./pda/pda_security.js":68878,"./pda/pda_signaler":95135,"./pda/pda_signaler.js":95135,"./pda/pda_status_display":20835,"./pda/pda_status_display.js":20835,"./pda/pda_supplyrecords":11741,"./pda/pda_supplyrecords.js":11741};function a(o){var m=t(o);return n(m)}function t(o){if(!n.o(e,o)){var m=new Error("Cannot find module '"+o+"'");throw m.code="MODULE_NOT_FOUND",m}return e[o]}a.keys=function(){return Object.keys(e)},a.resolve=t,I.exports=a,a.id=32054},4085:function(I,r,n){var e={"./Blink.stories.js":61498,"./BlockQuote.stories.js":27431,"./Box.stories.js":6517,"./Button.stories.js":20648,"./ByondUi.stories.js":14906,"./Collapsible.stories.js":59948,"./Flex.stories.js":37227,"./Input.stories.js":32304,"./Popper.stories.js":50394,"./ProgressBar.stories.js":75096,"./Stack.stories.js":30268,"./Storage.stories.js":22645,"./Tabs.stories.js":42120,"./Themes.stories.js":80254,"./Tooltip.stories.js":90823};function a(o){var m=t(o);return n(m)}function t(o){if(!n.o(e,o)){var m=new Error("Cannot find module '"+o+"'");throw m.code="MODULE_NOT_FOUND",m}return e[o]}a.keys=function(){return Object.keys(e)},a.resolve=t,I.exports=a,a.id=4085},97361:function(I,r,n){"use strict";var e=n(7532),a=n(62518),t=TypeError;I.exports=function(o){if(e(o))return o;throw new t(a(o)+" is not a function")}},76833:function(I,r,n){"use strict";var e=n(60354),a=n(62518),t=TypeError;I.exports=function(o){if(e(o))return o;throw new t(a(o)+" is not a constructor")}},51689:function(I,r,n){"use strict";var e=n(41224),a=String,t=TypeError;I.exports=function(o){if(e(o))return o;throw new t("Can't set "+a(o)+" as a prototype")}},91138:function(I,r,n){"use strict";var e=n(66266),a=n(28969),t=n(56018).f,o=e("unscopables"),m=Array.prototype;m[o]===void 0&&t(m,o,{configurable:!0,value:a(null)}),I.exports=function(V){m[o][V]=!0}},62970:function(I,r,n){"use strict";var e=n(56852).charAt;I.exports=function(a,t,o){return t+(o?e(a,t).length:1)}},19870:function(I,r,n){"use strict";var e=n(33314),a=TypeError;I.exports=function(t,o){if(e(o,t))return t;throw new a("Incorrect invocation")}},39482:function(I,r,n){"use strict";var e=n(56831),a=String,t=TypeError;I.exports=function(o){if(e(o))return o;throw new t(a(o)+" is not an object")}},67404:function(I){"use strict";I.exports=typeof ArrayBuffer!="undefined"&&typeof DataView!="undefined"},65693:function(I,r,n){"use strict";var e=n(41746);I.exports=e(function(){if(typeof ArrayBuffer=="function"){var a=new ArrayBuffer(8);Object.isExtensible(a)&&Object.defineProperty(a,"a",{value:8})}})},72951:function(I,r,n){"use strict";var e=n(67404),a=n(14141),t=n(40224),o=n(7532),m=n(56831),V=n(89458),y=n(27806),S=n(62518),k=n(16216),h=n(59173),l=n(10069),c=n(33314),f=n(31658),d=n(42878),i=n(66266),s=n(33345),u=n(35086),C=u.enforce,v=u.get,g=t.Int8Array,p=g&&g.prototype,N=t.Uint8ClampedArray,b=N&&N.prototype,B=g&&f(g),L=p&&f(p),w=Object.prototype,T=t.TypeError,x=i("toStringTag"),A=s("TYPED_ARRAY_TAG"),E="TypedArrayConstructor",M=e&&!!d&&y(t.opera)!=="Opera",D=!1,P,R,j,F={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},W={BigInt64Array:8,BigUint64Array:8},_=function(){function re(me){if(!m(me))return!1;var pe=y(me);return pe==="DataView"||V(F,pe)||V(W,pe)}return re}(),K=function re(me){var pe=f(me);if(m(pe)){var Ce=v(pe);return Ce&&V(Ce,E)?Ce[E]:re(pe)}},H=function(me){if(!m(me))return!1;var pe=y(me);return V(F,pe)||V(W,pe)},$=function(me){if(H(me))return me;throw new T("Target is not a typed array")},X=function(me){if(o(me)&&(!d||c(B,me)))return me;throw new T(S(me)+" is not a typed array constructor")},J=function(me,pe,Ce,ke){if(a){if(Ce)for(var he in F){var oe=t[he];if(oe&&V(oe.prototype,me))try{delete oe.prototype[me]}catch(Z){try{oe.prototype[me]=pe}catch(q){}}}(!L[me]||Ce)&&h(L,me,Ce?pe:M&&p[me]||pe,ke)}},ae=function(me,pe,Ce){var ke,he;if(a){if(d){if(Ce){for(ke in F)if(he=t[ke],he&&V(he,me))try{delete he[me]}catch(oe){}}if(!B[me]||Ce)try{return h(B,me,Ce?pe:M&&B[me]||pe)}catch(oe){}else return}for(ke in F)he=t[ke],he&&(!he[me]||Ce)&&h(he,me,pe)}};for(P in F)R=t[P],j=R&&R.prototype,j?C(j)[E]=R:M=!1;for(P in W)R=t[P],j=R&&R.prototype,j&&(C(j)[E]=R);if((!M||!o(B)||B===Function.prototype)&&(B=function(){function re(){throw new T("Incorrect invocation")}return re}(),M))for(P in F)t[P]&&d(t[P],B);if((!M||!L||L===w)&&(L=B.prototype,M))for(P in F)t[P]&&d(t[P].prototype,L);if(M&&f(b)!==L&&d(b,L),a&&!V(L,x)){D=!0,l(L,x,{configurable:!0,get:function(){function re(){return m(this)?this[A]:void 0}return re}()});for(P in F)t[P]&&k(t[P],A,P)}I.exports={NATIVE_ARRAY_BUFFER_VIEWS:M,TYPED_ARRAY_TAG:D&&A,aTypedArray:$,aTypedArrayConstructor:X,exportTypedArrayMethod:J,exportTypedArrayStaticMethod:ae,getTypedArrayConstructor:K,isView:_,isTypedArray:H,TypedArray:B,TypedArrayPrototype:L}},46185:function(I,r,n){"use strict";var e=n(40224),a=n(18161),t=n(14141),o=n(67404),m=n(26463),V=n(16216),y=n(10069),S=n(13648),k=n(41746),h=n(19870),l=n(74952),c=n(10475),f=n(90835),d=n(75988),i=n(62263),s=n(31658),u=n(42878),C=n(59942),v=n(77713),g=n(2566),p=n(70113),N=n(94234),b=n(35086),B=m.PROPER,L=m.CONFIGURABLE,w="ArrayBuffer",T="DataView",x="prototype",A="Wrong length",E="Wrong index",M=b.getterFor(w),D=b.getterFor(T),P=b.set,R=e[w],j=R,F=j&&j[x],W=e[T],_=W&&W[x],K=Object.prototype,H=e.Array,$=e.RangeError,X=a(C),J=a([].reverse),ae=i.pack,re=i.unpack,me=function(Ne){return[Ne&255]},pe=function(Ne){return[Ne&255,Ne>>8&255]},Ce=function(Ne){return[Ne&255,Ne>>8&255,Ne>>16&255,Ne>>24&255]},ke=function(Ne){return Ne[3]<<24|Ne[2]<<16|Ne[1]<<8|Ne[0]},he=function(Ne){return ae(d(Ne),23,4)},oe=function(Ne){return ae(Ne,52,8)},Z=function(Ne,Se,ge){y(Ne[x],Se,{configurable:!0,get:function(){function Be(){return ge(this)[Se]}return Be}()})},q=function(Ne,Se,ge,Be){var we=D(Ne),xe=f(ge),Oe=!!Be;if(xe+Se>we.byteLength)throw new $(E);var We=we.bytes,be=xe+we.byteOffset,ce=v(We,be,be+Se);return Oe?ce:J(ce)},ue=function(Ne,Se,ge,Be,we,xe){var Oe=D(Ne),We=f(ge),be=Be(+we),ce=!!xe;if(We+Se>Oe.byteLength)throw new $(E);for(var le=Oe.bytes,ve=We+Oe.byteOffset,de=0;dewe)throw new $("Wrong offset");if(ge=ge===void 0?we-xe:c(ge),xe+ge>we)throw new $(A);P(this,{type:T,buffer:Ne,byteLength:ge,byteOffset:xe,bytes:Be.bytes}),t||(this.buffer=Ne,this.byteLength=ge,this.byteOffset=xe)}return fe}(),_=W[x],t&&(Z(j,"byteLength",M),Z(W,"buffer",D),Z(W,"byteLength",D),Z(W,"byteOffset",D)),S(_,{getInt8:function(){function fe(Ne){return q(this,1,Ne)[0]<<24>>24}return fe}(),getUint8:function(){function fe(Ne){return q(this,1,Ne)[0]}return fe}(),getInt16:function(){function fe(Ne){var Se=q(this,2,Ne,arguments.length>1?arguments[1]:!1);return(Se[1]<<8|Se[0])<<16>>16}return fe}(),getUint16:function(){function fe(Ne){var Se=q(this,2,Ne,arguments.length>1?arguments[1]:!1);return Se[1]<<8|Se[0]}return fe}(),getInt32:function(){function fe(Ne){return ke(q(this,4,Ne,arguments.length>1?arguments[1]:!1))}return fe}(),getUint32:function(){function fe(Ne){return ke(q(this,4,Ne,arguments.length>1?arguments[1]:!1))>>>0}return fe}(),getFloat32:function(){function fe(Ne){return re(q(this,4,Ne,arguments.length>1?arguments[1]:!1),23)}return fe}(),getFloat64:function(){function fe(Ne){return re(q(this,8,Ne,arguments.length>1?arguments[1]:!1),52)}return fe}(),setInt8:function(){function fe(Ne,Se){ue(this,1,Ne,me,Se)}return fe}(),setUint8:function(){function fe(Ne,Se){ue(this,1,Ne,me,Se)}return fe}(),setInt16:function(){function fe(Ne,Se){ue(this,2,Ne,pe,Se,arguments.length>2?arguments[2]:!1)}return fe}(),setUint16:function(){function fe(Ne,Se){ue(this,2,Ne,pe,Se,arguments.length>2?arguments[2]:!1)}return fe}(),setInt32:function(){function fe(Ne,Se){ue(this,4,Ne,Ce,Se,arguments.length>2?arguments[2]:!1)}return fe}(),setUint32:function(){function fe(Ne,Se){ue(this,4,Ne,Ce,Se,arguments.length>2?arguments[2]:!1)}return fe}(),setFloat32:function(){function fe(Ne,Se){ue(this,4,Ne,he,Se,arguments.length>2?arguments[2]:!1)}return fe}(),setFloat64:function(){function fe(Ne,Se){ue(this,8,Ne,oe,Se,arguments.length>2?arguments[2]:!1)}return fe}()});else{var se=B&&R.name!==w;!k(function(){R(1)})||!k(function(){new R(-1)})||k(function(){return new R,new R(1.5),new R(NaN),R.length!==1||se&&!L})?(j=function(){function fe(Ne){return h(this,F),g(new R(f(Ne)),this,j)}return fe}(),j[x]=F,F.constructor=j,p(j,R)):se&&L&&V(R,"name",w),u&&s(_)!==K&&u(_,K);var te=new W(new j(2)),ye=a(_.setInt8);te.setInt8(0,2147483648),te.setInt8(1,2147483649),(te.getInt8(0)||!te.getInt8(1))&&S(_,{setInt8:function(){function fe(Ne,Se){ye(this,Ne,Se<<24>>24)}return fe}(),setUint8:function(){function fe(Ne,Se){ye(this,Ne,Se<<24>>24)}return fe}()},{unsafe:!0})}N(j,w),N(W,T),I.exports={ArrayBuffer:j,DataView:W}},42320:function(I,r,n){"use strict";var e=n(40076),a=n(74067),t=n(8333),o=n(58937),m=Math.min;I.exports=[].copyWithin||function(){function V(y,S){var k=e(this),h=t(k),l=a(y,h),c=a(S,h),f=arguments.length>2?arguments[2]:void 0,d=m((f===void 0?h:a(f,h))-c,h-l),i=1;for(c0;)c in k?k[l]=k[c]:o(k,l),l+=i,c+=i;return k}return V}()},59942:function(I,r,n){"use strict";var e=n(40076),a=n(74067),t=n(8333);I.exports=function(){function o(m){for(var V=e(this),y=t(V),S=arguments.length,k=a(S>1?arguments[1]:void 0,y),h=S>2?arguments[2]:void 0,l=h===void 0?y:a(h,y);l>k;)V[k++]=m;return V}return o}()},75420:function(I,r,n){"use strict";var e=n(67480).forEach,a=n(42309),t=a("forEach");I.exports=t?[].forEach:function(){function o(m){return e(this,m,arguments.length>1?arguments[1]:void 0)}return o}()},6967:function(I,r,n){"use strict";var e=n(8333);I.exports=function(a,t,o){for(var m=0,V=arguments.length>2?o:e(t),y=new a(V);V>m;)y[m]=t[m++];return y}},80363:function(I,r,n){"use strict";var e=n(4509),a=n(62696),t=n(40076),o=n(17100),m=n(58482),V=n(60354),y=n(8333),S=n(12913),k=n(3438),h=n(76274),l=Array;I.exports=function(){function c(f){var d=t(f),i=V(this),s=arguments.length,u=s>1?arguments[1]:void 0,C=u!==void 0;C&&(u=e(u,s>2?arguments[2]:void 0));var v=h(d),g=0,p,N,b,B,L,w;if(v&&!(this===l&&m(v)))for(N=i?new this:[],B=k(d,v),L=B.next;!(b=a(L,B)).done;g++)w=C?o(B,u,[b.value,g],!0):b.value,S(N,g,w);else for(p=y(d),N=i?new this(p):l(p);p>g;g++)w=C?u(d[g],g):d[g],S(N,g,w);return N.length=g,N}return c}()},64210:function(I,r,n){"use strict";var e=n(96812),a=n(74067),t=n(8333),o=function(V){return function(y,S,k){var h=e(y),l=t(h);if(l===0)return!V&&-1;var c=a(k,l),f;if(V&&S!==S){for(;l>c;)if(f=h[c++],f!==f)return!0}else for(;l>c;c++)if((V||c in h)&&h[c]===S)return V||c||0;return!V&&-1}};I.exports={includes:o(!0),indexOf:o(!1)}},67480:function(I,r,n){"use strict";var e=n(4509),a=n(18161),t=n(26736),o=n(40076),m=n(8333),V=n(32878),y=a([].push),S=function(h){var l=h===1,c=h===2,f=h===3,d=h===4,i=h===6,s=h===7,u=h===5||i;return function(C,v,g,p){for(var N=o(C),b=t(N),B=m(b),L=e(v,g),w=0,T=p||V,x=l?T(C,B):c||s?T(C,0):void 0,A,E;B>w;w++)if((u||w in b)&&(A=b[w],E=L(A,w,N),h))if(l)x[w]=E;else if(E)switch(h){case 3:return!0;case 5:return A;case 6:return w;case 2:y(x,A)}else switch(h){case 4:return!1;case 7:y(x,A)}return i?-1:f||d?d:x}};I.exports={forEach:S(0),map:S(1),filter:S(2),some:S(3),every:S(4),find:S(5),findIndex:S(6),filterReject:S(7)}},16934:function(I,r,n){"use strict";var e=n(70918),a=n(96812),t=n(74952),o=n(8333),m=n(42309),V=Math.min,y=[].lastIndexOf,S=!!y&&1/[1].lastIndexOf(1,-0)<0,k=m("lastIndexOf"),h=S||!k;I.exports=h?function(){function l(c){if(S)return e(y,this,arguments)||0;var f=a(this),d=o(f);if(d===0)return-1;var i=d-1;for(arguments.length>1&&(i=V(i,t(arguments[1]))),i<0&&(i=d+i);i>=0;i--)if(i in f&&f[i]===c)return i||0;return-1}return l}():y},55114:function(I,r,n){"use strict";var e=n(41746),a=n(66266),t=n(82709),o=a("species");I.exports=function(m){return t>=51||!e(function(){var V=[],y=V.constructor={};return y[o]=function(){return{foo:1}},V[m](Boolean).foo!==1})}},42309:function(I,r,n){"use strict";var e=n(41746);I.exports=function(a,t){var o=[][a];return!!o&&e(function(){o.call(null,t||function(){return 1},1)})}},98405:function(I,r,n){"use strict";var e=n(97361),a=n(40076),t=n(26736),o=n(8333),m=TypeError,V="Reduce of empty array with no initial value",y=function(k){return function(h,l,c,f){var d=a(h),i=t(d),s=o(d);if(e(l),s===0&&c<2)throw new m(V);var u=k?s-1:0,C=k?-1:1;if(c<2)for(;;){if(u in i){f=i[u],u+=C;break}if(u+=C,k?u<0:s<=u)throw new m(V)}for(;k?u>=0:s>u;u+=C)u in i&&(f=l(f,i[u],u,d));return f}};I.exports={left:y(!1),right:y(!0)}},72720:function(I,r,n){"use strict";var e=n(14141),a=n(62367),t=TypeError,o=Object.getOwnPropertyDescriptor,m=e&&!function(){if(this!==void 0)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(V){return V instanceof TypeError}}();I.exports=m?function(V,y){if(a(V)&&!o(V,"length").writable)throw new t("Cannot set read only .length");return V.length=y}:function(V,y){return V.length=y}},77713:function(I,r,n){"use strict";var e=n(18161);I.exports=e([].slice)},44815:function(I,r,n){"use strict";var e=n(77713),a=Math.floor,t=function o(m,V){var y=m.length;if(y<8)for(var S=1,k,h;S0;)m[h]=m[--h];h!==S++&&(m[h]=k)}else for(var l=a(y/2),c=o(e(m,0,l),V),f=o(e(m,l),V),d=c.length,i=f.length,s=0,u=0;s1?arguments[1]:void 0),E;E=E?E.next:x.first;)for(A(E.value,E.key,this);E&&E.removed;)E=E.previous}return w}(),has:function(){function w(T){return!!L(this,T)}return w}()}),t(N,v?{get:function(){function w(T){var x=L(this,T);return x&&x.value}return w}(),set:function(){function w(T,x){return B(this,T===0?0:T,x)}return w}()}:{add:function(){function w(T){return B(this,T=T===0?0:T,T)}return w}()}),l&&a(N,"size",{configurable:!0,get:function(){function w(){return b(this).size}return w}()}),p}return s}(),setStrong:function(){function s(u,C,v){var g=C+" Iterator",p=i(C),N=i(g);S(u,C,function(b,B){d(this,{type:g,target:b,state:p(b),kind:B,last:void 0})},function(){for(var b=N(this),B=b.kind,L=b.last;L&&L.removed;)L=L.previous;return!b.target||!(b.last=L=L?L.next:b.state.first)?(b.target=void 0,k(void 0,!0)):k(B==="keys"?L.key:B==="values"?L.value:[L.key,L.value],!1)},v?"entries":"values",!v,!0),h(C)}return s}()}},32920:function(I,r,n){"use strict";var e=n(18161),a=n(13648),t=n(29126).getWeakData,o=n(19870),m=n(39482),V=n(1022),y=n(56831),S=n(281),k=n(67480),h=n(89458),l=n(35086),c=l.set,f=l.getterFor,d=k.find,i=k.findIndex,s=e([].splice),u=0,C=function(N){return N.frozen||(N.frozen=new v)},v=function(){this.entries=[]},g=function(N,b){return d(N.entries,function(B){return B[0]===b})};v.prototype={get:function(){function p(N){var b=g(this,N);if(b)return b[1]}return p}(),has:function(){function p(N){return!!g(this,N)}return p}(),set:function(){function p(N,b){var B=g(this,N);B?B[1]=b:this.entries.push([N,b])}return p}(),delete:function(){function p(N){var b=i(this.entries,function(B){return B[0]===N});return~b&&s(this.entries,b,1),!!~b}return p}()},I.exports={getConstructor:function(){function p(N,b,B,L){var w=N(function(E,M){o(E,T),c(E,{type:b,id:u++,frozen:void 0}),V(M)||S(M,E[L],{that:E,AS_ENTRIES:B})}),T=w.prototype,x=f(b),A=function(){function E(M,D,P){var R=x(M),j=t(m(D),!0);return j===!0?C(R).set(D,P):j[R.id]=P,M}return E}();return a(T,{delete:function(){function E(M){var D=x(this);if(!y(M))return!1;var P=t(M);return P===!0?C(D).delete(M):P&&h(P,D.id)&&delete P[D.id]}return E}(),has:function(){function E(M){var D=x(this);if(!y(M))return!1;var P=t(M);return P===!0?C(D).has(M):P&&h(P,D.id)}return E}()}),a(T,B?{get:function(){function E(M){var D=x(this);if(y(M)){var P=t(M);return P===!0?C(D).get(M):P?P[D.id]:void 0}}return E}(),set:function(){function E(M,D){return A(this,M,D)}return E}()}:{add:function(){function E(M){return A(this,M,!0)}return E}()}),w}return p}()}},93439:function(I,r,n){"use strict";var e=n(77549),a=n(40224),t=n(18161),o=n(95945),m=n(59173),V=n(29126),y=n(281),S=n(19870),k=n(7532),h=n(1022),l=n(56831),c=n(41746),f=n(52019),d=n(94234),i=n(2566);I.exports=function(s,u,C){var v=s.indexOf("Map")!==-1,g=s.indexOf("Weak")!==-1,p=v?"set":"add",N=a[s],b=N&&N.prototype,B=N,L={},w=function(R){var j=t(b[R]);m(b,R,R==="add"?function(){function F(W){return j(this,W===0?0:W),this}return F}():R==="delete"?function(F){return g&&!l(F)?!1:j(this,F===0?0:F)}:R==="get"?function(){function F(W){return g&&!l(W)?void 0:j(this,W===0?0:W)}return F}():R==="has"?function(){function F(W){return g&&!l(W)?!1:j(this,W===0?0:W)}return F}():function(){function F(W,_){return j(this,W===0?0:W,_),this}return F}())},T=o(s,!k(N)||!(g||b.forEach&&!c(function(){new N().entries().next()})));if(T)B=C.getConstructor(u,s,v,p),V.enable();else if(o(s,!0)){var x=new B,A=x[p](g?{}:-0,1)!==x,E=c(function(){x.has(1)}),M=f(function(P){new N(P)}),D=!g&&c(function(){for(var P=new N,R=5;R--;)P[p](R,R);return!P.has(-0)});M||(B=u(function(P,R){S(P,b);var j=i(new N,P,B);return h(R)||y(R,j[p],{that:j,AS_ENTRIES:v}),j}),B.prototype=b,b.constructor=B),(E||D)&&(w("delete"),w("has"),v&&w("get")),(D||A)&&w(p),g&&b.clear&&delete b.clear}return L[s]=B,e({global:!0,constructor:!0,forced:B!==N},L),d(B,s),g||C.setStrong(B,s,v),B}},70113:function(I,r,n){"use strict";var e=n(89458),a=n(93616),t=n(54168),o=n(56018);I.exports=function(m,V,y){for(var S=a(V),k=o.f,h=t.f,l=0;l"+h+""}},77056:function(I){"use strict";I.exports=function(r,n){return{value:r,done:n}}},16216:function(I,r,n){"use strict";var e=n(14141),a=n(56018),t=n(7539);I.exports=e?function(o,m,V){return a.f(o,m,t(1,V))}:function(o,m,V){return o[m]=V,o}},7539:function(I){"use strict";I.exports=function(r,n){return{enumerable:!(r&1),configurable:!(r&2),writable:!(r&4),value:n}}},12913:function(I,r,n){"use strict";var e=n(14141),a=n(56018),t=n(7539);I.exports=function(o,m,V){e?a.f(o,m,t(0,V)):o[m]=V}},74003:function(I,r,n){"use strict";var e=n(18161),a=n(41746),t=n(34086).start,o=RangeError,m=isFinite,V=Math.abs,y=Date.prototype,S=y.toISOString,k=e(y.getTime),h=e(y.getUTCDate),l=e(y.getUTCFullYear),c=e(y.getUTCHours),f=e(y.getUTCMilliseconds),d=e(y.getUTCMinutes),i=e(y.getUTCMonth),s=e(y.getUTCSeconds);I.exports=a(function(){return S.call(new Date(-50000000000001))!=="0385-07-25T07:06:39.999Z"})||!a(function(){S.call(new Date(NaN))})?function(){function u(){if(!m(k(this)))throw new o("Invalid time value");var C=this,v=l(C),g=f(C),p=v<0?"-":v>9999?"+":"";return p+t(V(v),p?6:4,0)+"-"+t(i(C)+1,2,0)+"-"+t(h(C),2,0)+"T"+t(c(C),2,0)+":"+t(d(C),2,0)+":"+t(s(C),2,0)+"."+t(g,3,0)+"Z"}return u}():S},95865:function(I,r,n){"use strict";var e=n(39482),a=n(14991),t=TypeError;I.exports=function(o){if(e(this),o==="string"||o==="default")o="string";else if(o!=="number")throw new t("Incorrect hint");return a(this,o)}},10069:function(I,r,n){"use strict";var e=n(76130),a=n(56018);I.exports=function(t,o,m){return m.get&&e(m.get,o,{getter:!0}),m.set&&e(m.set,o,{setter:!0}),a.f(t,o,m)}},59173:function(I,r,n){"use strict";var e=n(7532),a=n(56018),t=n(76130),o=n(93422);I.exports=function(m,V,y,S){S||(S={});var k=S.enumerable,h=S.name!==void 0?S.name:V;if(e(y)&&t(y,h,S),S.global)k?m[V]=y:o(V,y);else{try{S.unsafe?m[V]&&(k=!0):delete m[V]}catch(l){}k?m[V]=y:a.f(m,V,{value:y,enumerable:!1,configurable:!S.nonConfigurable,writable:!S.nonWritable})}return m}},13648:function(I,r,n){"use strict";var e=n(59173);I.exports=function(a,t,o){for(var m in t)e(a,m,t[m],o);return a}},93422:function(I,r,n){"use strict";var e=n(40224),a=Object.defineProperty;I.exports=function(t,o){try{a(e,t,{value:o,configurable:!0,writable:!0})}catch(m){e[t]=o}return o}},58937:function(I,r,n){"use strict";var e=n(62518),a=TypeError;I.exports=function(t,o){if(!delete t[o])throw new a("Cannot delete property "+e(o)+" of "+e(t))}},14141:function(I,r,n){"use strict";var e=n(41746);I.exports=!e(function(){return Object.defineProperty({},1,{get:function(){function a(){return 7}return a}()})[1]!==7})},85158:function(I,r,n){"use strict";var e=n(40224),a=n(56831),t=e.document,o=a(t)&&a(t.createElement);I.exports=function(m){return o?t.createElement(m):{}}},72434:function(I){"use strict";var r=TypeError,n=9007199254740991;I.exports=function(e){if(e>n)throw r("Maximum allowed index exceeded");return e}},49847:function(I,r,n){"use strict";var e=n(15837),a=e.match(/firefox\/(\d+)/i);I.exports=!!a&&+a[1]},27955:function(I,r,n){"use strict";var e=n(2971),a=n(95823);I.exports=!e&&!a&&typeof window=="object"&&typeof document=="object"},2178:function(I){"use strict";I.exports=typeof Bun=="function"&&Bun&&typeof Bun.version=="string"},2971:function(I){"use strict";I.exports=typeof Deno=="object"&&Deno&&typeof Deno.version=="object"},56605:function(I,r,n){"use strict";var e=n(15837);I.exports=/MSIE|Trident/.test(e)},6647:function(I,r,n){"use strict";var e=n(15837);I.exports=/ipad|iphone|ipod/i.test(e)&&typeof Pebble!="undefined"},52426:function(I,r,n){"use strict";var e=n(15837);I.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(e)},95823:function(I,r,n){"use strict";var e=n(40224),a=n(38817);I.exports=a(e.process)==="process"},25062:function(I,r,n){"use strict";var e=n(15837);I.exports=/web0s(?!.*chrome)/i.test(e)},15837:function(I){"use strict";I.exports=typeof navigator!="undefined"&&String(navigator.userAgent)||""},82709:function(I,r,n){"use strict";var e=n(40224),a=n(15837),t=e.process,o=e.Deno,m=t&&t.versions||o&&o.version,V=m&&m.v8,y,S;V&&(y=V.split("."),S=y[0]>0&&y[0]<4?1:+(y[0]+y[1])),!S&&a&&(y=a.match(/Edge\/(\d+)/),(!y||y[1]>=74)&&(y=a.match(/Chrome\/(\d+)/),y&&(S=+y[1]))),I.exports=S},53125:function(I,r,n){"use strict";var e=n(15837),a=e.match(/AppleWebKit\/(\d+)\./);I.exports=!!a&&+a[1]},90298:function(I){"use strict";I.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},77549:function(I,r,n){"use strict";var e=n(40224),a=n(54168).f,t=n(16216),o=n(59173),m=n(93422),V=n(70113),y=n(95945);I.exports=function(S,k){var h=S.target,l=S.global,c=S.stat,f,d,i,s,u,C;if(l?d=e:c?d=e[h]||m(h,{}):d=e[h]&&e[h].prototype,d)for(i in k){if(u=k[i],S.dontCallGetSet?(C=a(d,i),s=C&&C.value):s=d[i],f=y(l?i:h+(c?".":"#")+i,S.forced),!f&&s!==void 0){if(typeof u==typeof s)continue;V(u,s)}(S.sham||s&&s.sham)&&t(u,"sham",!0),o(d,i,u,S)}}},41746:function(I){"use strict";I.exports=function(r){try{return!!r()}catch(n){return!0}}},85427:function(I,r,n){"use strict";n(95880);var e=n(62696),a=n(59173),t=n(72894),o=n(41746),m=n(66266),V=n(16216),y=m("species"),S=RegExp.prototype;I.exports=function(k,h,l,c){var f=m(k),d=!o(function(){var C={};return C[f]=function(){return 7},""[k](C)!==7}),i=d&&!o(function(){var C=!1,v=/a/;return k==="split"&&(v={},v.constructor={},v.constructor[y]=function(){return v},v.flags="",v[f]=/./[f]),v.exec=function(){return C=!0,null},v[f](""),!C});if(!d||!i||l){var s=/./[f],u=h(f,""[k],function(C,v,g,p,N){var b=v.exec;return b===t||b===S.exec?d&&!N?{done:!0,value:e(s,v,g,p)}:{done:!0,value:e(C,g,v,p)}:{done:!1}});a(String.prototype,k,u[0]),a(S,f,u[1])}c&&V(S[f],"sham",!0)}},68864:function(I,r,n){"use strict";var e=n(62367),a=n(8333),t=n(72434),o=n(4509),m=function V(y,S,k,h,l,c,f,d){for(var i=l,s=0,u=f?o(f,d):!1,C,v;s0&&e(C)?(v=a(C),i=V(y,S,C,v,i,c-1)-1):(t(i+1),y[i]=C),i++),s++;return i};I.exports=m},56255:function(I,r,n){"use strict";var e=n(41746);I.exports=!e(function(){return Object.isExtensible(Object.preventExtensions({}))})},70918:function(I,r,n){"use strict";var e=n(76799),a=Function.prototype,t=a.apply,o=a.call;I.exports=typeof Reflect=="object"&&Reflect.apply||(e?o.bind(t):function(){return o.apply(t,arguments)})},4509:function(I,r,n){"use strict";var e=n(85067),a=n(97361),t=n(76799),o=e(e.bind);I.exports=function(m,V){return a(m),V===void 0?m:t?o(m,V):function(){return m.apply(V,arguments)}}},76799:function(I,r,n){"use strict";var e=n(41746);I.exports=!e(function(){var a=function(){}.bind();return typeof a!="function"||a.hasOwnProperty("prototype")})},9379:function(I,r,n){"use strict";var e=n(18161),a=n(97361),t=n(56831),o=n(89458),m=n(77713),V=n(76799),y=Function,S=e([].concat),k=e([].join),h={},l=function(f,d,i){if(!o(h,d)){for(var s=[],u=0;u]*>)/g,S=/\$([$&'`]|\d{1,2})/g;I.exports=function(k,h,l,c,f,d){var i=l+k.length,s=c.length,u=S;return f!==void 0&&(f=a(f),u=y),m(d,u,function(C,v){var g;switch(o(v,0)){case"$":return"$";case"&":return k;case"`":return V(h,0,l);case"'":return V(h,i);case"<":g=f[V(v,1,-1)];break;default:var p=+v;if(p===0)return C;if(p>s){var N=t(p/10);return N===0?C:N<=s?c[N-1]===void 0?o(v,1):c[N-1]+o(v,1):C}g=c[p-1]}return g===void 0?"":g})}},40224:function(I,r,n){"use strict";var e=function(t){return t&&t.Math===Math&&t};I.exports=e(typeof globalThis=="object"&&globalThis)||e(typeof window=="object"&&window)||e(typeof self=="object"&&self)||e(typeof n.g=="object"&&n.g)||e(!1)||function(){return this}()||Function("return this")()},89458:function(I,r,n){"use strict";var e=n(18161),a=n(40076),t=e({}.hasOwnProperty);I.exports=Object.hasOwn||function(){function o(m,V){return t(a(m),V)}return o}()},21124:function(I){"use strict";I.exports={}},46122:function(I){"use strict";I.exports=function(r,n){try{arguments.length}catch(e){}}},54562:function(I,r,n){"use strict";var e=n(40164);I.exports=e("document","documentElement")},1606:function(I,r,n){"use strict";var e=n(14141),a=n(41746),t=n(85158);I.exports=!e&&!a(function(){return Object.defineProperty(t("div"),"a",{get:function(){function o(){return 7}return o}()}).a!==7})},62263:function(I){"use strict";var r=Array,n=Math.abs,e=Math.pow,a=Math.floor,t=Math.log,o=Math.LN2,m=function(S,k,h){var l=r(h),c=h*8-k-1,f=(1<>1,i=k===23?e(2,-24)-e(2,-77):0,s=S<0||S===0&&1/S<0?1:0,u=0,C,v,g;for(S=n(S),S!==S||S===1/0?(v=S!==S?1:0,C=f):(C=a(t(S)/o),g=e(2,-C),S*g<1&&(C--,g*=2),C+d>=1?S+=i/g:S+=i*e(2,1-d),S*g>=2&&(C++,g/=2),C+d>=f?(v=0,C=f):C+d>=1?(v=(S*g-1)*e(2,k),C+=d):(v=S*e(2,d-1)*e(2,k),C=0));k>=8;)l[u++]=v&255,v/=256,k-=8;for(C=C<0;)l[u++]=C&255,C/=256,c-=8;return l[--u]|=s*128,l},V=function(S,k){var h=S.length,l=h*8-k-1,c=(1<>1,d=l-7,i=h-1,s=S[i--],u=s&127,C;for(s>>=7;d>0;)u=u*256+S[i--],d-=8;for(C=u&(1<<-d)-1,u>>=-d,d+=k;d>0;)C=C*256+S[i--],d-=8;if(u===0)u=1-f;else{if(u===c)return C?NaN:s?-1/0:1/0;C+=e(2,k),u-=f}return(s?-1:1)*C*e(2,u-k)};I.exports={pack:m,unpack:V}},26736:function(I,r,n){"use strict";var e=n(18161),a=n(41746),t=n(38817),o=Object,m=e("".split);I.exports=a(function(){return!o("z").propertyIsEnumerable(0)})?function(V){return t(V)==="String"?m(V,""):o(V)}:o},2566:function(I,r,n){"use strict";var e=n(7532),a=n(56831),t=n(42878);I.exports=function(o,m,V){var y,S;return t&&e(y=m.constructor)&&y!==V&&a(S=y.prototype)&&S!==V.prototype&&t(o,S),o}},43589:function(I,r,n){"use strict";var e=n(18161),a=n(7532),t=n(95046),o=e(Function.toString);a(t.inspectSource)||(t.inspectSource=function(m){return o(m)}),I.exports=t.inspectSource},29126:function(I,r,n){"use strict";var e=n(77549),a=n(18161),t=n(21124),o=n(56831),m=n(89458),V=n(56018).f,y=n(34813),S=n(63797),k=n(57975),h=n(33345),l=n(56255),c=!1,f=h("meta"),d=0,i=function(N){V(N,f,{value:{objectID:"O"+d++,weakData:{}}})},s=function(N,b){if(!o(N))return typeof N=="symbol"?N:(typeof N=="string"?"S":"P")+N;if(!m(N,f)){if(!k(N))return"F";if(!b)return"E";i(N)}return N[f].objectID},u=function(N,b){if(!m(N,f)){if(!k(N))return!0;if(!b)return!1;i(N)}return N[f].weakData},C=function(N){return l&&c&&k(N)&&!m(N,f)&&i(N),N},v=function(){g.enable=function(){},c=!0;var N=y.f,b=a([].splice),B={};B[f]=1,N(B).length&&(y.f=function(L){for(var w=N(L),T=0,x=w.length;TL;L++)if(T=M(d[L]),T&&y(f,T))return T;return new c(!1)}b=S(d,B)}for(x=v?d.next:b.next;!(A=a(x,b)).done;){try{T=M(A.value)}catch(D){h(b,"throw",D)}if(typeof T=="object"&&T&&y(f,T))return T}return new c(!1)}},14868:function(I,r,n){"use strict";var e=n(62696),a=n(39482),t=n(4817);I.exports=function(o,m,V){var y,S;a(o);try{if(y=t(o,"return"),!y){if(m==="throw")throw V;return V}y=e(y,o)}catch(k){S=!0,y=k}if(m==="throw")throw V;if(S)throw y;return a(y),V}},42599:function(I,r,n){"use strict";var e=n(85106).IteratorPrototype,a=n(28969),t=n(7539),o=n(94234),m=n(90604),V=function(){return this};I.exports=function(y,S,k,h){var l=S+" Iterator";return y.prototype=a(e,{next:t(+!h,k)}),o(y,l,!1,!0),m[l]=V,y}},2449:function(I,r,n){"use strict";var e=n(77549),a=n(62696),t=n(11478),o=n(26463),m=n(7532),V=n(42599),y=n(31658),S=n(42878),k=n(94234),h=n(16216),l=n(59173),c=n(66266),f=n(90604),d=n(85106),i=o.PROPER,s=o.CONFIGURABLE,u=d.IteratorPrototype,C=d.BUGGY_SAFARI_ITERATORS,v=c("iterator"),g="keys",p="values",N="entries",b=function(){return this};I.exports=function(B,L,w,T,x,A,E){V(w,L,T);var M=function(X){if(X===x&&F)return F;if(!C&&X&&X in R)return R[X];switch(X){case g:return function(){function J(){return new w(this,X)}return J}();case p:return function(){function J(){return new w(this,X)}return J}();case N:return function(){function J(){return new w(this,X)}return J}()}return function(){return new w(this)}},D=L+" Iterator",P=!1,R=B.prototype,j=R[v]||R["@@iterator"]||x&&R[x],F=!C&&j||M(x),W=L==="Array"&&R.entries||j,_,K,H;if(W&&(_=y(W.call(new B)),_!==Object.prototype&&_.next&&(!t&&y(_)!==u&&(S?S(_,u):m(_[v])||l(_,v,b)),k(_,D,!0,!0),t&&(f[D]=b))),i&&x===p&&j&&j.name!==p&&(!t&&s?h(R,"name",p):(P=!0,F=function(){function $(){return a(j,this)}return $}())),x)if(K={values:M(p),keys:A?F:M(g),entries:M(N)},E)for(H in K)(C||P||!(H in R))&&l(R,H,K[H]);else e({target:L,proto:!0,forced:C||P},K);return(!t||E)&&R[v]!==F&&l(R,v,F,{name:x}),f[L]=F,K}},85106:function(I,r,n){"use strict";var e=n(41746),a=n(7532),t=n(56831),o=n(28969),m=n(31658),V=n(59173),y=n(66266),S=n(11478),k=y("iterator"),h=!1,l,c,f;[].keys&&(f=[].keys(),"next"in f?(c=m(m(f)),c!==Object.prototype&&(l=c)):h=!0);var d=!t(l)||e(function(){var i={};return l[k].call(i)!==i});d?l={}:S&&(l=o(l)),a(l[k])||V(l,k,function(){return this}),I.exports={IteratorPrototype:l,BUGGY_SAFARI_ITERATORS:h}},90604:function(I){"use strict";I.exports={}},8333:function(I,r,n){"use strict";var e=n(10475);I.exports=function(a){return e(a.length)}},76130:function(I,r,n){"use strict";var e=n(18161),a=n(41746),t=n(7532),o=n(89458),m=n(14141),V=n(26463).CONFIGURABLE,y=n(43589),S=n(35086),k=S.enforce,h=S.get,l=String,c=Object.defineProperty,f=e("".slice),d=e("".replace),i=e([].join),s=m&&!a(function(){return c(function(){},"length",{value:8}).length!==8}),u=String(String).split("String"),C=I.exports=function(v,g,p){f(l(g),0,7)==="Symbol("&&(g="["+d(l(g),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),p&&p.getter&&(g="get "+g),p&&p.setter&&(g="set "+g),(!o(v,"name")||V&&v.name!==g)&&(m?c(v,"name",{value:g,configurable:!0}):v.name=g),s&&p&&o(p,"arity")&&v.length!==p.arity&&c(v,"length",{value:p.arity});try{p&&o(p,"constructor")&&p.constructor?m&&c(v,"prototype",{writable:!1}):v.prototype&&(v.prototype=void 0)}catch(b){}var N=k(v);return o(N,"source")||(N.source=i(u,typeof g=="string"?g:"")),v};Function.prototype.toString=C(function(){function v(){return t(this)&&h(this).source||y(this)}return v}(),"toString")},32813:function(I){"use strict";var r=Math.expm1,n=Math.exp;I.exports=!r||r(10)>22025.465794806718||r(10)<22025.465794806718||r(-2e-17)!==-2e-17?function(){function e(a){var t=+a;return t===0?t:t>-1e-6&&t<1e-6?t+t*t/2:n(t)-1}return e}():r},23207:function(I,r,n){"use strict";var e=n(54307),a=Math.abs,t=2220446049250313e-31,o=1/t,m=function(y){return y+o-o};I.exports=function(V,y,S,k){var h=+V,l=a(h),c=e(h);if(lS||d!==d?c*(1/0):c*d}},75988:function(I,r,n){"use strict";var e=n(23207),a=11920928955078125e-23,t=34028234663852886e22,o=11754943508222875e-54;I.exports=Math.fround||function(){function m(V){return e(V,a,t,o)}return m}()},53271:function(I){"use strict";var r=Math.log,n=Math.LOG10E;I.exports=Math.log10||function(){function e(a){return r(a)*n}return e}()},69143:function(I){"use strict";var r=Math.log;I.exports=Math.log1p||function(){function n(e){var a=+e;return a>-1e-8&&a<1e-8?a-a*a/2:r(1+a)}return n}()},54307:function(I){"use strict";I.exports=Math.sign||function(){function r(n){var e=+n;return e===0||e!==e?e:e<0?-1:1}return r}()},34606:function(I){"use strict";var r=Math.ceil,n=Math.floor;I.exports=Math.trunc||function(){function e(a){var t=+a;return(t>0?n:r)(t)}return e}()},27150:function(I,r,n){"use strict";var e=n(40224),a=n(1156),t=n(4509),o=n(91314).set,m=n(23496),V=n(52426),y=n(6647),S=n(25062),k=n(95823),h=e.MutationObserver||e.WebKitMutationObserver,l=e.document,c=e.process,f=e.Promise,d=a("queueMicrotask"),i,s,u,C,v;if(!d){var g=new m,p=function(){var b,B;for(k&&(b=c.domain)&&b.exit();B=g.get();)try{B()}catch(L){throw g.head&&i(),L}b&&b.enter()};!V&&!k&&!S&&h&&l?(s=!0,u=l.createTextNode(""),new h(p).observe(u,{characterData:!0}),i=function(){u.data=s=!s}):!y&&f&&f.resolve?(C=f.resolve(void 0),C.constructor=f,v=t(C.then,C),i=function(){v(p)}):k?i=function(){c.nextTick(p)}:(o=t(o,e),i=function(){o(p)}),d=function(b){g.head||i(),g.add(b)}}I.exports=d},48532:function(I,r,n){"use strict";var e=n(97361),a=TypeError,t=function(m){var V,y;this.promise=new m(function(S,k){if(V!==void 0||y!==void 0)throw new a("Bad Promise constructor");V=S,y=k}),this.resolve=e(V),this.reject=e(y)};I.exports.f=function(o){return new t(o)}},89140:function(I,r,n){"use strict";var e=n(80969),a=TypeError;I.exports=function(t){if(e(t))throw new a("The method doesn't accept regular expressions");return t}},69079:function(I,r,n){"use strict";var e=n(40224),a=e.isFinite;I.exports=Number.isFinite||function(){function t(o){return typeof o=="number"&&a(o)}return t}()},43283:function(I,r,n){"use strict";var e=n(40224),a=n(41746),t=n(18161),o=n(26602),m=n(35171).trim,V=n(137),y=t("".charAt),S=e.parseFloat,k=e.Symbol,h=k&&k.iterator,l=1/S(V+"-0")!==-1/0||h&&!a(function(){S(Object(h))});I.exports=l?function(){function c(f){var d=m(o(f)),i=S(d);return i===0&&y(d,0)==="-"?-0:i}return c}():S},11540:function(I,r,n){"use strict";var e=n(40224),a=n(41746),t=n(18161),o=n(26602),m=n(35171).trim,V=n(137),y=e.parseInt,S=e.Symbol,k=S&&S.iterator,h=/^[+-]?0x/i,l=t(h.exec),c=y(V+"08")!==8||y(V+"0x16")!==22||k&&!a(function(){y(Object(k))});I.exports=c?function(){function f(d,i){var s=m(o(d));return y(s,i>>>0||(l(h,s)?16:10))}return f}():y},12752:function(I,r,n){"use strict";var e=n(14141),a=n(18161),t=n(62696),o=n(41746),m=n(84913),V=n(34220),y=n(9776),S=n(40076),k=n(26736),h=Object.assign,l=Object.defineProperty,c=a([].concat);I.exports=!h||o(function(){if(e&&h({b:1},h(l({},"a",{enumerable:!0,get:function(){function u(){l(this,"b",{value:3,enumerable:!1})}return u}()}),{b:2})).b!==1)return!0;var f={},d={},i=Symbol("assign detection"),s="abcdefghijklmnopqrst";return f[i]=7,s.split("").forEach(function(u){d[u]=u}),h({},f)[i]!==7||m(h({},d)).join("")!==s})?function(){function f(d,i){for(var s=S(d),u=arguments.length,C=1,v=V.f,g=y.f;u>C;)for(var p=k(arguments[C++]),N=v?c(m(p),v(p)):m(p),b=N.length,B=0,L;b>B;)L=N[B++],(!e||t(g,p,L))&&(s[L]=p[L]);return s}return f}():h},28969:function(I,r,n){"use strict";var e=n(39482),a=n(65854),t=n(90298),o=n(21124),m=n(54562),V=n(85158),y=n(5160),S=">",k="<",h="prototype",l="script",c=y("IE_PROTO"),f=function(){},d=function(g){return k+l+S+g+k+"/"+l+S},i=function(g){g.write(d("")),g.close();var p=g.parentWindow.Object;return g=null,p},s=function(){var g=V("iframe"),p="java"+l+":",N;return g.style.display="none",m.appendChild(g),g.src=String(p),N=g.contentWindow.document,N.open(),N.write(d("document.F=Object")),N.close(),N.F},u,C=function(){try{u=new ActiveXObject("htmlfile")}catch(p){}C=typeof document!="undefined"?document.domain&&u?i(u):s():i(u);for(var g=t.length;g--;)delete C[h][t[g]];return C()};o[c]=!0,I.exports=Object.create||function(){function v(g,p){var N;return g!==null?(f[h]=e(g),N=new f,f[h]=null,N[c]=g):N=C(),p===void 0?N:a.f(N,p)}return v}()},65854:function(I,r,n){"use strict";var e=n(14141),a=n(83411),t=n(56018),o=n(39482),m=n(96812),V=n(84913);r.f=e&&!a?Object.defineProperties:function(){function y(S,k){o(S);for(var h=m(k),l=V(k),c=l.length,f=0,d;c>f;)t.f(S,d=l[f++],h[d]);return S}return y}()},56018:function(I,r,n){"use strict";var e=n(14141),a=n(1606),t=n(83411),o=n(39482),m=n(57640),V=TypeError,y=Object.defineProperty,S=Object.getOwnPropertyDescriptor,k="enumerable",h="configurable",l="writable";r.f=e?t?function(){function c(f,d,i){if(o(f),d=m(d),o(i),typeof f=="function"&&d==="prototype"&&"value"in i&&l in i&&!i[l]){var s=S(f,d);s&&s[l]&&(f[d]=i.value,i={configurable:h in i?i[h]:s[h],enumerable:k in i?i[k]:s[k],writable:!1})}return y(f,d,i)}return c}():y:function(){function c(f,d,i){if(o(f),d=m(d),o(i),a)try{return y(f,d,i)}catch(s){}if("get"in i||"set"in i)throw new V("Accessors not supported");return"value"in i&&(f[d]=i.value),f}return c}()},54168:function(I,r,n){"use strict";var e=n(14141),a=n(62696),t=n(9776),o=n(7539),m=n(96812),V=n(57640),y=n(89458),S=n(1606),k=Object.getOwnPropertyDescriptor;r.f=e?k:function(){function h(l,c){if(l=m(l),c=V(c),S)try{return k(l,c)}catch(f){}if(y(l,c))return o(!a(t.f,l,c),l[c])}return h}()},63797:function(I,r,n){"use strict";var e=n(38817),a=n(96812),t=n(34813).f,o=n(77713),m=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],V=function(S){try{return t(S)}catch(k){return o(m)}};I.exports.f=function(){function y(S){return m&&e(S)==="Window"?V(S):t(a(S))}return y}()},34813:function(I,r,n){"use strict";var e=n(62995),a=n(90298),t=a.concat("length","prototype");r.f=Object.getOwnPropertyNames||function(){function o(m){return e(m,t)}return o}()},34220:function(I,r){"use strict";r.f=Object.getOwnPropertySymbols},31658:function(I,r,n){"use strict";var e=n(89458),a=n(7532),t=n(40076),o=n(5160),m=n(58776),V=o("IE_PROTO"),y=Object,S=y.prototype;I.exports=m?y.getPrototypeOf:function(k){var h=t(k);if(e(h,V))return h[V];var l=h.constructor;return a(l)&&h instanceof l?l.prototype:h instanceof y?S:null}},57975:function(I,r,n){"use strict";var e=n(41746),a=n(56831),t=n(38817),o=n(65693),m=Object.isExtensible,V=e(function(){m(1)});I.exports=V||o?function(){function y(S){return!a(S)||o&&t(S)==="ArrayBuffer"?!1:m?m(S):!0}return y}():m},33314:function(I,r,n){"use strict";var e=n(18161);I.exports=e({}.isPrototypeOf)},62995:function(I,r,n){"use strict";var e=n(18161),a=n(89458),t=n(96812),o=n(64210).indexOf,m=n(21124),V=e([].push);I.exports=function(y,S){var k=t(y),h=0,l=[],c;for(c in k)!a(m,c)&&a(k,c)&&V(l,c);for(;S.length>h;)a(k,c=S[h++])&&(~o(l,c)||V(l,c));return l}},84913:function(I,r,n){"use strict";var e=n(62995),a=n(90298);I.exports=Object.keys||function(){function t(o){return e(o,a)}return t}()},9776:function(I,r){"use strict";var n={}.propertyIsEnumerable,e=Object.getOwnPropertyDescriptor,a=e&&!n.call({1:2},1);r.f=a?function(){function t(o){var m=e(this,o);return!!m&&m.enumerable}return t}():n},33030:function(I,r,n){"use strict";var e=n(11478),a=n(40224),t=n(41746),o=n(53125);I.exports=e||!t(function(){if(!(o&&o<535)){var m=Math.random();__defineSetter__.call(null,m,function(){}),delete a[m]}})},42878:function(I,r,n){"use strict";var e=n(9553),a=n(56831),t=n(91029),o=n(51689);I.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var m=!1,V={},y;try{y=e(Object.prototype,"__proto__","set"),y(V,[]),m=V instanceof Array}catch(S){}return function(){function S(k,h){return t(k),o(h),a(k)&&(m?y(k,h):k.__proto__=h),k}return S}()}():void 0)},97452:function(I,r,n){"use strict";var e=n(14141),a=n(41746),t=n(18161),o=n(31658),m=n(84913),V=n(96812),y=n(9776).f,S=t(y),k=t([].push),h=e&&a(function(){var c=Object.create(null);return c[2]=2,!S(c,2)}),l=function(f){return function(d){for(var i=V(d),s=m(i),u=h&&o(i)===null,C=s.length,v=0,g=[],p;C>v;)p=s[v++],(!e||(u?p in i:S(i,p)))&&k(g,f?[p,i[p]]:i[p]);return g}};I.exports={entries:l(!0),values:l(!1)}},66628:function(I,r,n){"use strict";var e=n(82161),a=n(27806);I.exports=e?{}.toString:function(){function t(){return"[object "+a(this)+"]"}return t}()},14991:function(I,r,n){"use strict";var e=n(62696),a=n(7532),t=n(56831),o=TypeError;I.exports=function(m,V){var y,S;if(V==="string"&&a(y=m.toString)&&!t(S=e(y,m))||a(y=m.valueOf)&&!t(S=e(y,m))||V!=="string"&&a(y=m.toString)&&!t(S=e(y,m)))return S;throw new o("Can't convert object to primitive value")}},93616:function(I,r,n){"use strict";var e=n(40164),a=n(18161),t=n(34813),o=n(34220),m=n(39482),V=a([].concat);I.exports=e("Reflect","ownKeys")||function(){function y(S){var k=t.f(m(S)),h=o.f;return h?V(k,h(S)):k}return y}()},5376:function(I,r,n){"use strict";var e=n(40224);I.exports=e},91114:function(I){"use strict";I.exports=function(r){try{return{error:!1,value:r()}}catch(n){return{error:!0,value:n}}}},49669:function(I,r,n){"use strict";var e=n(40224),a=n(35973),t=n(7532),o=n(95945),m=n(43589),V=n(66266),y=n(27955),S=n(2971),k=n(11478),h=n(82709),l=a&&a.prototype,c=V("species"),f=!1,d=t(e.PromiseRejectionEvent),i=o("Promise",function(){var s=m(a),u=s!==String(a);if(!u&&h===66||k&&!(l.catch&&l.finally))return!0;if(!h||h<51||!/native code/.test(s)){var C=new a(function(p){p(1)}),v=function(N){N(function(){},function(){})},g=C.constructor={};if(g[c]=v,f=C.then(function(){})instanceof v,!f)return!0}return!u&&(y||S)&&!d});I.exports={CONSTRUCTOR:i,REJECTION_EVENT:d,SUBCLASSING:f}},35973:function(I,r,n){"use strict";var e=n(40224);I.exports=e.Promise},43827:function(I,r,n){"use strict";var e=n(39482),a=n(56831),t=n(48532);I.exports=function(o,m){if(e(o),a(m)&&m.constructor===o)return m;var V=t.f(o),y=V.resolve;return y(m),V.promise}},95044:function(I,r,n){"use strict";var e=n(35973),a=n(52019),t=n(49669).CONSTRUCTOR;I.exports=t||!a(function(o){e.all(o).then(void 0,function(){})})},77495:function(I,r,n){"use strict";var e=n(56018).f;I.exports=function(a,t,o){o in a||e(a,o,{configurable:!0,get:function(){function m(){return t[o]}return m}(),set:function(){function m(V){t[o]=V}return m}()})}},23496:function(I){"use strict";var r=function(){this.head=null,this.tail=null};r.prototype={add:function(){function n(e){var a={item:e,next:null},t=this.tail;t?t.next=a:this.head=a,this.tail=a}return n}(),get:function(){function n(){var e=this.head;if(e){var a=this.head=e.next;return a===null&&(this.tail=null),e.item}}return n}()},I.exports=r},35553:function(I,r,n){"use strict";var e=n(62696),a=n(39482),t=n(7532),o=n(38817),m=n(72894),V=TypeError;I.exports=function(y,S){var k=y.exec;if(t(k)){var h=e(k,y,S);return h!==null&&a(h),h}if(o(y)==="RegExp")return e(m,y,S);throw new V("RegExp#exec called on incompatible receiver")}},72894:function(I,r,n){"use strict";var e=n(62696),a=n(18161),t=n(26602),o=n(65844),m=n(1064),V=n(75130),y=n(28969),S=n(35086).get,k=n(89604),h=n(5489),l=V("native-string-replace",String.prototype.replace),c=RegExp.prototype.exec,f=c,d=a("".charAt),i=a("".indexOf),s=a("".replace),u=a("".slice),C=function(){var N=/a/,b=/b*/g;return e(c,N,"a"),e(c,b,"a"),N.lastIndex!==0||b.lastIndex!==0}(),v=m.BROKEN_CARET,g=/()??/.exec("")[1]!==void 0,p=C||g||v||k||h;p&&(f=function(){function N(b){var B=this,L=S(B),w=t(b),T=L.raw,x,A,E,M,D,P,R;if(T)return T.lastIndex=B.lastIndex,x=e(f,T,w),B.lastIndex=T.lastIndex,x;var j=L.groups,F=v&&B.sticky,W=e(o,B),_=B.source,K=0,H=w;if(F&&(W=s(W,"y",""),i(W,"g")===-1&&(W+="g"),H=u(w,B.lastIndex),B.lastIndex>0&&(!B.multiline||B.multiline&&d(w,B.lastIndex-1)!=="\n")&&(_="(?: "+_+")",H=" "+H,K++),A=new RegExp("^(?:"+_+")",W)),g&&(A=new RegExp("^"+_+"$(?!\\s)",W)),C&&(E=B.lastIndex),M=e(c,F?A:B,H),F?M?(M.input=u(M.input,K),M[0]=u(M[0],K),M.index=B.lastIndex,B.lastIndex+=M[0].length):B.lastIndex=0:C&&M&&(B.lastIndex=B.global?M.index+M[0].length:E),g&&M&&M.length>1&&e(l,M[0],A,function(){for(D=1;Db)","g");return o.exec("b").groups.a!=="b"||"b".replace(o,"$c")!=="bc"})},91029:function(I,r,n){"use strict";var e=n(1022),a=TypeError;I.exports=function(t){if(e(t))throw new a("Can't call method on "+t);return t}},1156:function(I,r,n){"use strict";var e=n(40224),a=n(14141),t=Object.getOwnPropertyDescriptor;I.exports=function(o){if(!a)return e[o];var m=t(e,o);return m&&m.value}},37309:function(I){"use strict";I.exports=Object.is||function(){function r(n,e){return n===e?n!==0||1/n===1/e:n!==n&&e!==e}return r}()},83827:function(I,r,n){"use strict";var e=n(40224),a=n(70918),t=n(7532),o=n(2178),m=n(15837),V=n(77713),y=n(22789),S=e.Function,k=/MSIE .\./.test(m)||o&&function(){var h=e.Bun.version.split(".");return h.length<3||h[0]==="0"&&(h[1]<3||h[1]==="3"&&h[2]==="0")}();I.exports=function(h,l){var c=l?2:1;return k?function(f,d){var i=y(arguments.length,1)>c,s=t(f)?f:S(f),u=i?V(arguments,c):[],C=i?function(){a(s,this,u)}:s;return l?h(C,d):h(C)}:h}},67420:function(I,r,n){"use strict";var e=n(40164),a=n(10069),t=n(66266),o=n(14141),m=t("species");I.exports=function(V){var y=e(V);o&&y&&!y[m]&&a(y,m,{configurable:!0,get:function(){function S(){return this}return S}()})}},94234:function(I,r,n){"use strict";var e=n(56018).f,a=n(89458),t=n(66266),o=t("toStringTag");I.exports=function(m,V,y){m&&!y&&(m=m.prototype),m&&!a(m,o)&&e(m,o,{configurable:!0,value:V})}},5160:function(I,r,n){"use strict";var e=n(75130),a=n(33345),t=e("keys");I.exports=function(o){return t[o]||(t[o]=a(o))}},95046:function(I,r,n){"use strict";var e=n(11478),a=n(40224),t=n(93422),o="__core-js_shared__",m=I.exports=a[o]||t(o,{});(m.versions||(m.versions=[])).push({version:"3.36.1",mode:e?"pure":"global",copyright:"\xA9 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.36.1/LICENSE",source:"https://github.com/zloirock/core-js"})},75130:function(I,r,n){"use strict";var e=n(95046);I.exports=function(a,t){return e[a]||(e[a]=t||{})}},78412:function(I,r,n){"use strict";var e=n(39482),a=n(76833),t=n(1022),o=n(66266),m=o("species");I.exports=function(V,y){var S=e(V).constructor,k;return S===void 0||t(k=e(S)[m])?y:a(k)}},32086:function(I,r,n){"use strict";var e=n(41746);I.exports=function(a){return e(function(){var t=""[a]('"');return t!==t.toLowerCase()||t.split('"').length>3})}},56852:function(I,r,n){"use strict";var e=n(18161),a=n(74952),t=n(26602),o=n(91029),m=e("".charAt),V=e("".charCodeAt),y=e("".slice),S=function(h){return function(l,c){var f=t(o(l)),d=a(c),i=f.length,s,u;return d<0||d>=i?h?"":void 0:(s=V(f,d),s<55296||s>56319||d+1===i||(u=V(f,d+1))<56320||u>57343?h?m(f,d):s:h?y(f,d,d+2):(s-55296<<10)+(u-56320)+65536)}};I.exports={codeAt:S(!1),charAt:S(!0)}},33038:function(I,r,n){"use strict";var e=n(15837);I.exports=/Version\/10(?:\.\d+){1,2}(?: [\w./]+)?(?: Mobile\/\w+)? Safari\//.test(e)},34086:function(I,r,n){"use strict";var e=n(18161),a=n(10475),t=n(26602),o=n(84948),m=n(91029),V=e(o),y=e("".slice),S=Math.ceil,k=function(l){return function(c,f,d){var i=t(m(c)),s=a(f),u=i.length,C=d===void 0?" ":t(d),v,g;return s<=u||C===""?i:(v=s-u,g=V(C,S(v/C.length)),g.length>v&&(g=y(g,0,v)),l?i+g:g+i)}};I.exports={start:k(!1),end:k(!0)}},84948:function(I,r,n){"use strict";var e=n(74952),a=n(26602),t=n(91029),o=RangeError;I.exports=function(){function m(V){var y=a(t(this)),S="",k=e(V);if(k<0||k===1/0)throw new o("Wrong number of repetitions");for(;k>0;(k>>>=1)&&(y+=y))k&1&&(S+=y);return S}return m}()},11775:function(I,r,n){"use strict";var e=n(35171).end,a=n(93817);I.exports=a("trimEnd")?function(){function t(){return e(this)}return t}():"".trimEnd},93817:function(I,r,n){"use strict";var e=n(26463).PROPER,a=n(41746),t=n(137),o="\u200B\x85\u180E";I.exports=function(m){return a(function(){return!!t[m]()||o[m]()!==o||e&&t[m].name!==m})}},26402:function(I,r,n){"use strict";var e=n(35171).start,a=n(93817);I.exports=a("trimStart")?function(){function t(){return e(this)}return t}():"".trimStart},35171:function(I,r,n){"use strict";var e=n(18161),a=n(91029),t=n(26602),o=n(137),m=e("".replace),V=RegExp("^["+o+"]+"),y=RegExp("(^|[^"+o+"])["+o+"]+$"),S=function(h){return function(l){var c=t(a(l));return h&1&&(c=m(c,V,"")),h&2&&(c=m(c,y,"$1")),c}};I.exports={start:S(1),end:S(2),trim:S(3)}},70640:function(I,r,n){"use strict";var e=n(82709),a=n(41746),t=n(40224),o=t.String;I.exports=!!Object.getOwnPropertySymbols&&!a(function(){var m=Symbol("symbol detection");return!o(m)||!(Object(m)instanceof Symbol)||!Symbol.sham&&e&&e<41})},75429:function(I,r,n){"use strict";var e=n(62696),a=n(40164),t=n(66266),o=n(59173);I.exports=function(){var m=a("Symbol"),V=m&&m.prototype,y=V&&V.valueOf,S=t("toPrimitive");V&&!V[S]&&o(V,S,function(k){return e(y,this)},{arity:1})}},80353:function(I,r,n){"use strict";var e=n(70640);I.exports=e&&!!Symbol.for&&!!Symbol.keyFor},91314:function(I,r,n){"use strict";var e=n(40224),a=n(70918),t=n(4509),o=n(7532),m=n(89458),V=n(41746),y=n(54562),S=n(77713),k=n(85158),h=n(22789),l=n(52426),c=n(95823),f=e.setImmediate,d=e.clearImmediate,i=e.process,s=e.Dispatch,u=e.Function,C=e.MessageChannel,v=e.String,g=0,p={},N="onreadystatechange",b,B,L,w;V(function(){b=e.location});var T=function(D){if(m(p,D)){var P=p[D];delete p[D],P()}},x=function(D){return function(){T(D)}},A=function(D){T(D.data)},E=function(D){e.postMessage(v(D),b.protocol+"//"+b.host)};(!f||!d)&&(f=function(){function M(D){h(arguments.length,1);var P=o(D)?D:u(D),R=S(arguments,1);return p[++g]=function(){a(P,void 0,R)},B(g),g}return M}(),d=function(){function M(D){delete p[D]}return M}(),c?B=function(D){i.nextTick(x(D))}:s&&s.now?B=function(D){s.now(x(D))}:C&&!l?(L=new C,w=L.port2,L.port1.onmessage=A,B=t(w.postMessage,w)):e.addEventListener&&o(e.postMessage)&&!e.importScripts&&b&&b.protocol!=="file:"&&!V(E)?(B=E,e.addEventListener("message",A,!1)):N in k("script")?B=function(D){y.appendChild(k("script"))[N]=function(){y.removeChild(this),T(D)}}:B=function(D){setTimeout(x(D),0)}),I.exports={set:f,clear:d}},37497:function(I,r,n){"use strict";var e=n(18161);I.exports=e(1 .valueOf)},74067:function(I,r,n){"use strict";var e=n(74952),a=Math.max,t=Math.min;I.exports=function(o,m){var V=e(o);return V<0?a(V+m,0):t(V,m)}},757:function(I,r,n){"use strict";var e=n(4370),a=TypeError;I.exports=function(t){var o=e(t,"number");if(typeof o=="number")throw new a("Can't convert number to bigint");return BigInt(o)}},90835:function(I,r,n){"use strict";var e=n(74952),a=n(10475),t=RangeError;I.exports=function(o){if(o===void 0)return 0;var m=e(o),V=a(m);if(m!==V)throw new t("Wrong length or index");return V}},96812:function(I,r,n){"use strict";var e=n(26736),a=n(91029);I.exports=function(t){return e(a(t))}},74952:function(I,r,n){"use strict";var e=n(34606);I.exports=function(a){var t=+a;return t!==t||t===0?0:e(t)}},10475:function(I,r,n){"use strict";var e=n(74952),a=Math.min;I.exports=function(t){var o=e(t);return o>0?a(o,9007199254740991):0}},40076:function(I,r,n){"use strict";var e=n(91029),a=Object;I.exports=function(t){return a(e(t))}},65264:function(I,r,n){"use strict";var e=n(43627),a=RangeError;I.exports=function(t,o){var m=e(t);if(m%o)throw new a("Wrong offset");return m}},43627:function(I,r,n){"use strict";var e=n(74952),a=RangeError;I.exports=function(t){var o=e(t);if(o<0)throw new a("The argument can't be less than 0");return o}},4370:function(I,r,n){"use strict";var e=n(62696),a=n(56831),t=n(74352),o=n(4817),m=n(14991),V=n(66266),y=TypeError,S=V("toPrimitive");I.exports=function(k,h){if(!a(k)||t(k))return k;var l=o(k,S),c;if(l){if(h===void 0&&(h="default"),c=e(l,k,h),!a(c)||t(c))return c;throw new y("Can't convert object to primitive value")}return h===void 0&&(h="number"),m(k,h)}},57640:function(I,r,n){"use strict";var e=n(4370),a=n(74352);I.exports=function(t){var o=e(t,"string");return a(o)?o:o+""}},82161:function(I,r,n){"use strict";var e=n(66266),a=e("toStringTag"),t={};t[a]="z",I.exports=String(t)==="[object z]"},26602:function(I,r,n){"use strict";var e=n(27806),a=String;I.exports=function(t){if(e(t)==="Symbol")throw new TypeError("Cannot convert a Symbol value to a string");return a(t)}},78828:function(I){"use strict";var r=Math.round;I.exports=function(n){var e=r(n);return e<0?0:e>255?255:e&255}},62518:function(I){"use strict";var r=String;I.exports=function(n){try{return r(n)}catch(e){return"Object"}}},12218:function(I,r,n){"use strict";var e=n(77549),a=n(40224),t=n(62696),o=n(14141),m=n(66220),V=n(72951),y=n(46185),S=n(19870),k=n(7539),h=n(16216),l=n(57696),c=n(10475),f=n(90835),d=n(65264),i=n(78828),s=n(57640),u=n(89458),C=n(27806),v=n(56831),g=n(74352),p=n(28969),N=n(33314),b=n(42878),B=n(34813).f,L=n(7996),w=n(67480).forEach,T=n(67420),x=n(10069),A=n(56018),E=n(54168),M=n(6967),D=n(35086),P=n(2566),R=D.get,j=D.set,F=D.enforce,W=A.f,_=E.f,K=a.RangeError,H=y.ArrayBuffer,$=H.prototype,X=y.DataView,J=V.NATIVE_ARRAY_BUFFER_VIEWS,ae=V.TYPED_ARRAY_TAG,re=V.TypedArray,me=V.TypedArrayPrototype,pe=V.isTypedArray,Ce="BYTES_PER_ELEMENT",ke="Wrong length",he=function(te,ye){x(te,ye,{configurable:!0,get:function(){function fe(){return R(this)[ye]}return fe}()})},oe=function(te){var ye;return N($,te)||(ye=C(te))==="ArrayBuffer"||ye==="SharedArrayBuffer"},Z=function(te,ye){return pe(te)&&!g(ye)&&ye in te&&l(+ye)&&ye>=0},q=function(){function se(te,ye){return ye=s(ye),Z(te,ye)?k(2,te[ye]):_(te,ye)}return se}(),ue=function(){function se(te,ye,fe){return ye=s(ye),Z(te,ye)&&v(fe)&&u(fe,"value")&&!u(fe,"get")&&!u(fe,"set")&&!fe.configurable&&(!u(fe,"writable")||fe.writable)&&(!u(fe,"enumerable")||fe.enumerable)?(te[ye]=fe.value,te):W(te,ye,fe)}return se}();o?(J||(E.f=q,A.f=ue,he(me,"buffer"),he(me,"byteOffset"),he(me,"byteLength"),he(me,"length")),e({target:"Object",stat:!0,forced:!J},{getOwnPropertyDescriptor:q,defineProperty:ue}),I.exports=function(se,te,ye){var fe=se.match(/\d+/)[0]/8,Ne=se+(ye?"Clamped":"")+"Array",Se="get"+se,ge="set"+se,Be=a[Ne],we=Be,xe=we&&we.prototype,Oe={},We=function(de,Ve){var Ae=R(de);return Ae.view[Se](Ve*fe+Ae.byteOffset,!0)},be=function(de,Ve,Ae){var De=R(de);De.view[ge](Ve*fe+De.byteOffset,ye?i(Ae):Ae,!0)},ce=function(de,Ve){W(de,Ve,{get:function(){function Ae(){return We(this,Ve)}return Ae}(),set:function(){function Ae(De){return be(this,Ve,De)}return Ae}(),enumerable:!0})};J?m&&(we=te(function(ve,de,Ve,Ae){return S(ve,xe),P(function(){return v(de)?oe(de)?Ae!==void 0?new Be(de,d(Ve,fe),Ae):Ve!==void 0?new Be(de,d(Ve,fe)):new Be(de):pe(de)?M(we,de):t(L,we,de):new Be(f(de))}(),ve,we)}),b&&b(we,re),w(B(Be),function(ve){ve in we||h(we,ve,Be[ve])}),we.prototype=xe):(we=te(function(ve,de,Ve,Ae){S(ve,xe);var De=0,je=0,_e,Ue,ze;if(!v(de))ze=f(de),Ue=ze*fe,_e=new H(Ue);else if(oe(de)){_e=de,je=d(Ve,fe);var Ge=de.byteLength;if(Ae===void 0){if(Ge%fe)throw new K(ke);if(Ue=Ge-je,Ue<0)throw new K(ke)}else if(Ue=c(Ae)*fe,Ue+je>Ge)throw new K(ke);ze=Ue/fe}else return pe(de)?M(we,de):t(L,we,de);for(j(ve,{buffer:_e,byteOffset:je,byteLength:Ue,length:ze,view:new X(_e)});De1?arguments[1]:void 0,C=u!==void 0,v=y(i),g,p,N,b,B,L,w,T;if(v&&!S(v))for(w=V(i,v),T=w.next,i=[];!(L=a(T,w)).done;)i.push(L.value);for(C&&s>2&&(u=e(u,arguments[2])),p=m(i),N=new(h(d))(p),b=k(N),g=0;p>g;g++)B=C?u(i[g],g):i[g],N[g]=b?l(B):+B;return N}return c}()},489:function(I,r,n){"use strict";var e=n(72951),a=n(78412),t=e.aTypedArrayConstructor,o=e.getTypedArrayConstructor;I.exports=function(m){return t(a(m,o(m)))}},33345:function(I,r,n){"use strict";var e=n(18161),a=0,t=Math.random(),o=e(1 .toString);I.exports=function(m){return"Symbol("+(m===void 0?"":m)+")_"+o(++a+t,36)}},81457:function(I,r,n){"use strict";var e=n(70640);I.exports=e&&!Symbol.sham&&typeof Symbol.iterator=="symbol"},83411:function(I,r,n){"use strict";var e=n(14141),a=n(41746);I.exports=e&&a(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42})},22789:function(I){"use strict";var r=TypeError;I.exports=function(n,e){if(n=51||!a(function(){var u=[];return u[f]=!1,u.concat()[0]!==u}),i=function(C){if(!o(C))return!1;var v=C[f];return v!==void 0?!!v:t(C)},s=!d||!h("concat");e({target:"Array",proto:!0,arity:1,forced:s},{concat:function(){function u(C){var v=m(this),g=k(v,0),p=0,N,b,B,L,w;for(N=-1,B=arguments.length;N1?arguments[1]:void 0)}return m}()})},24974:function(I,r,n){"use strict";var e=n(77549),a=n(59942),t=n(91138);e({target:"Array",proto:!0},{fill:a}),t("fill")},6297:function(I,r,n){"use strict";var e=n(77549),a=n(67480).filter,t=n(55114),o=t("filter");e({target:"Array",proto:!0,forced:!o},{filter:function(){function m(V){return a(this,V,arguments.length>1?arguments[1]:void 0)}return m}()})},35173:function(I,r,n){"use strict";var e=n(77549),a=n(67480).findIndex,t=n(91138),o="findIndex",m=!0;o in[]&&Array(1)[o](function(){m=!1}),e({target:"Array",proto:!0,forced:m},{findIndex:function(){function V(y){return a(this,y,arguments.length>1?arguments[1]:void 0)}return V}()}),t(o)},5364:function(I,r,n){"use strict";var e=n(77549),a=n(67480).find,t=n(91138),o="find",m=!0;o in[]&&Array(1)[o](function(){m=!1}),e({target:"Array",proto:!0,forced:m},{find:function(){function V(y){return a(this,y,arguments.length>1?arguments[1]:void 0)}return V}()}),t(o)},88707:function(I,r,n){"use strict";var e=n(77549),a=n(68864),t=n(97361),o=n(40076),m=n(8333),V=n(32878);e({target:"Array",proto:!0},{flatMap:function(){function y(S){var k=o(this),h=m(k),l;return t(S),l=V(k,0),l.length=a(l,k,k,h,0,1,S,arguments.length>1?arguments[1]:void 0),l}return y}()})},16576:function(I,r,n){"use strict";var e=n(77549),a=n(68864),t=n(40076),o=n(8333),m=n(74952),V=n(32878);e({target:"Array",proto:!0},{flat:function(){function y(){var S=arguments.length?arguments[0]:void 0,k=t(this),h=o(k),l=V(k,0);return l.length=a(l,k,k,h,0,S===void 0?1:m(S)),l}return y}()})},21508:function(I,r,n){"use strict";var e=n(77549),a=n(75420);e({target:"Array",proto:!0,forced:[].forEach!==a},{forEach:a})},86339:function(I,r,n){"use strict";var e=n(77549),a=n(80363),t=n(52019),o=!t(function(m){Array.from(m)});e({target:"Array",stat:!0,forced:o},{from:a})},81850:function(I,r,n){"use strict";var e=n(77549),a=n(64210).includes,t=n(41746),o=n(91138),m=t(function(){return!Array(1).includes()});e({target:"Array",proto:!0,forced:m},{includes:function(){function V(y){return a(this,y,arguments.length>1?arguments[1]:void 0)}return V}()}),o("includes")},98661:function(I,r,n){"use strict";var e=n(77549),a=n(85067),t=n(64210).indexOf,o=n(42309),m=a([].indexOf),V=!!m&&1/m([1],1,-0)<0,y=V||!o("indexOf");e({target:"Array",proto:!0,forced:y},{indexOf:function(){function S(k){var h=arguments.length>1?arguments[1]:void 0;return V?m(this,k,h)||0:t(this,k,h)}return S}()})},13431:function(I,r,n){"use strict";var e=n(77549),a=n(62367);e({target:"Array",stat:!0},{isArray:a})},65809:function(I,r,n){"use strict";var e=n(96812),a=n(91138),t=n(90604),o=n(35086),m=n(56018).f,V=n(2449),y=n(77056),S=n(11478),k=n(14141),h="Array Iterator",l=o.set,c=o.getterFor(h);I.exports=V(Array,"Array",function(d,i){l(this,{type:h,target:e(d),index:0,kind:i})},function(){var d=c(this),i=d.target,s=d.index++;if(!i||s>=i.length)return d.target=void 0,y(void 0,!0);switch(d.kind){case"keys":return y(s,!1);case"values":return y(i[s],!1)}return y([s,i[s]],!1)},"values");var f=t.Arguments=t.Array;if(a("keys"),a("values"),a("entries"),!S&&k&&f.name!=="values")try{m(f,"name",{value:"values"})}catch(d){}},8611:function(I,r,n){"use strict";var e=n(77549),a=n(18161),t=n(26736),o=n(96812),m=n(42309),V=a([].join),y=t!==Object,S=y||!m("join",",");e({target:"Array",proto:!0,forced:S},{join:function(){function k(h){return V(o(this),h===void 0?",":h)}return k}()})},97246:function(I,r,n){"use strict";var e=n(77549),a=n(16934);e({target:"Array",proto:!0,forced:a!==[].lastIndexOf},{lastIndexOf:a})},48741:function(I,r,n){"use strict";var e=n(77549),a=n(67480).map,t=n(55114),o=t("map");e({target:"Array",proto:!0,forced:!o},{map:function(){function m(V){return a(this,V,arguments.length>1?arguments[1]:void 0)}return m}()})},90446:function(I,r,n){"use strict";var e=n(77549),a=n(41746),t=n(60354),o=n(12913),m=Array,V=a(function(){function y(){}return!(m.of.call(y)instanceof y)});e({target:"Array",stat:!0,forced:V},{of:function(){function y(){for(var S=0,k=arguments.length,h=new(t(this)?this:m)(k);k>S;)o(h,S,arguments[S++]);return h.length=k,h}return y}()})},61902:function(I,r,n){"use strict";var e=n(77549),a=n(98405).right,t=n(42309),o=n(82709),m=n(95823),V=!m&&o>79&&o<83,y=V||!t("reduceRight");e({target:"Array",proto:!0,forced:y},{reduceRight:function(){function S(k){return a(this,k,arguments.length,arguments.length>1?arguments[1]:void 0)}return S}()})},509:function(I,r,n){"use strict";var e=n(77549),a=n(98405).left,t=n(42309),o=n(82709),m=n(95823),V=!m&&o>79&&o<83,y=V||!t("reduce");e({target:"Array",proto:!0,forced:y},{reduce:function(){function S(k){var h=arguments.length;return a(this,k,h,h>1?arguments[1]:void 0)}return S}()})},96149:function(I,r,n){"use strict";var e=n(77549),a=n(18161),t=n(62367),o=a([].reverse),m=[1,2];e({target:"Array",proto:!0,forced:String(m)===String(m.reverse())},{reverse:function(){function V(){return t(this)&&(this.length=this.length),o(this)}return V}()})},66617:function(I,r,n){"use strict";var e=n(77549),a=n(62367),t=n(60354),o=n(56831),m=n(74067),V=n(8333),y=n(96812),S=n(12913),k=n(66266),h=n(55114),l=n(77713),c=h("slice"),f=k("species"),d=Array,i=Math.max;e({target:"Array",proto:!0,forced:!c},{slice:function(){function s(u,C){var v=y(this),g=V(v),p=m(u,g),N=m(C===void 0?g:C,g),b,B,L;if(a(v)&&(b=v.constructor,t(b)&&(b===d||a(b.prototype))?b=void 0:o(b)&&(b=b[f],b===null&&(b=void 0)),b===d||b===void 0))return l(v,p,N);for(B=new(b===void 0?d:b)(i(N-p,0)),L=0;p1?arguments[1]:void 0)}return m}()})},56855:function(I,r,n){"use strict";var e=n(77549),a=n(18161),t=n(97361),o=n(40076),m=n(8333),V=n(58937),y=n(26602),S=n(41746),k=n(44815),h=n(42309),l=n(49847),c=n(56605),f=n(82709),d=n(53125),i=[],s=a(i.sort),u=a(i.push),C=S(function(){i.sort(void 0)}),v=S(function(){i.sort(null)}),g=h("sort"),p=!S(function(){if(f)return f<70;if(!(l&&l>3)){if(c)return!0;if(d)return d<603;var B="",L,w,T,x;for(L=65;L<76;L++){switch(w=String.fromCharCode(L),L){case 66:case 69:case 70:case 72:T=3;break;case 68:case 71:T=4;break;default:T=2}for(x=0;x<47;x++)i.push({k:w+x,v:T})}for(i.sort(function(A,E){return E.v-A.v}),x=0;xy(T)?1:-1}};e({target:"Array",proto:!0,forced:N},{sort:function(){function B(L){L!==void 0&&t(L);var w=o(this);if(p)return L===void 0?s(w):s(w,L);var T=[],x=m(w),A,E;for(E=0;Ev-b+N;L--)h(C,L-1)}else if(N>b)for(L=v-b;L>g;L--)w=L+b-1,T=L+N-1,w in C?C[T]=C[w]:h(C,T);for(L=0;L9490626562425156e-8?o(h)+V:a(h-1+m(h-1)*m(h+1))}return S}()})},86551:function(I,r,n){"use strict";var e=n(77549),a=Math.asinh,t=Math.log,o=Math.sqrt;function m(y){var S=+y;return!isFinite(S)||S===0?S:S<0?-m(-S):t(S+o(S*S+1))}var V=!(a&&1/a(0)>0);e({target:"Math",stat:!0,forced:V},{asinh:m})},10940:function(I,r,n){"use strict";var e=n(77549),a=Math.atanh,t=Math.log,o=!(a&&1/a(-0)<0);e({target:"Math",stat:!0,forced:o},{atanh:function(){function m(V){var y=+V;return y===0?y:t((1+y)/(1-y))/2}return m}()})},73763:function(I,r,n){"use strict";var e=n(77549),a=n(54307),t=Math.abs,o=Math.pow;e({target:"Math",stat:!0},{cbrt:function(){function m(V){var y=+V;return a(y)*o(t(y),.3333333333333333)}return m}()})},3372:function(I,r,n){"use strict";var e=n(77549),a=Math.floor,t=Math.log,o=Math.LOG2E;e({target:"Math",stat:!0},{clz32:function(){function m(V){var y=V>>>0;return y?31-a(t(y+.5)*o):32}return m}()})},51629:function(I,r,n){"use strict";var e=n(77549),a=n(32813),t=Math.cosh,o=Math.abs,m=Math.E,V=!t||t(710)===1/0;e({target:"Math",stat:!0,forced:V},{cosh:function(){function y(S){var k=a(o(S)-1)+1;return(k+1/(k*m*m))*(m/2)}return y}()})},69727:function(I,r,n){"use strict";var e=n(77549),a=n(32813);e({target:"Math",stat:!0,forced:a!==Math.expm1},{expm1:a})},27482:function(I,r,n){"use strict";var e=n(77549),a=n(75988);e({target:"Math",stat:!0},{fround:a})},7108:function(I,r,n){"use strict";var e=n(77549),a=Math.hypot,t=Math.abs,o=Math.sqrt,m=!!a&&a(1/0,NaN)!==1/0;e({target:"Math",stat:!0,arity:2,forced:m},{hypot:function(){function V(y,S){for(var k=0,h=0,l=arguments.length,c=0,f,d;h0?(d=f/c,k+=d*d):k+=f;return c===1/0?1/0:c*o(k)}return V}()})},4115:function(I,r,n){"use strict";var e=n(77549),a=n(41746),t=Math.imul,o=a(function(){return t(4294967295,5)!==-5||t.length!==2});e({target:"Math",stat:!0,forced:o},{imul:function(){function m(V,y){var S=65535,k=+V,h=+y,l=S&k,c=S&h;return 0|l*c+((S&k>>>16)*c+l*(S&h>>>16)<<16>>>0)}return m}()})},63953:function(I,r,n){"use strict";var e=n(77549),a=n(53271);e({target:"Math",stat:!0},{log10:a})},71377:function(I,r,n){"use strict";var e=n(77549),a=n(69143);e({target:"Math",stat:!0},{log1p:a})},63956:function(I,r,n){"use strict";var e=n(77549),a=Math.log,t=Math.LN2;e({target:"Math",stat:!0},{log2:function(){function o(m){return a(m)/t}return o}()})},90037:function(I,r,n){"use strict";var e=n(77549),a=n(54307);e({target:"Math",stat:!0},{sign:a})},46818:function(I,r,n){"use strict";var e=n(77549),a=n(41746),t=n(32813),o=Math.abs,m=Math.exp,V=Math.E,y=a(function(){return Math.sinh(-2e-17)!==-2e-17});e({target:"Math",stat:!0,forced:y},{sinh:function(){function S(k){var h=+k;return o(h)<1?(t(h)-t(-h))/2:(m(h-1)-m(-h-1))*(V/2)}return S}()})},26681:function(I,r,n){"use strict";var e=n(77549),a=n(32813),t=Math.exp;e({target:"Math",stat:!0},{tanh:function(){function o(m){var V=+m,y=a(V),S=a(-V);return y===1/0?1:S===1/0?-1:(y-S)/(t(V)+t(-V))}return o}()})},83646:function(I,r,n){"use strict";var e=n(94234);e(Math,"Math",!0)},28876:function(I,r,n){"use strict";var e=n(77549),a=n(34606);e({target:"Math",stat:!0},{trunc:a})},36385:function(I,r,n){"use strict";var e=n(77549),a=n(11478),t=n(14141),o=n(40224),m=n(5376),V=n(18161),y=n(95945),S=n(89458),k=n(2566),h=n(33314),l=n(74352),c=n(4370),f=n(41746),d=n(34813).f,i=n(54168).f,s=n(56018).f,u=n(37497),C=n(35171).trim,v="Number",g=o[v],p=m[v],N=g.prototype,b=o.TypeError,B=V("".slice),L=V("".charCodeAt),w=function(P){var R=c(P,"number");return typeof R=="bigint"?R:T(R)},T=function(P){var R=c(P,"number"),j,F,W,_,K,H,$,X;if(l(R))throw new b("Cannot convert a Symbol value to a number");if(typeof R=="string"&&R.length>2){if(R=C(R),j=L(R,0),j===43||j===45){if(F=L(R,2),F===88||F===120)return NaN}else if(j===48){switch(L(R,1)){case 66:case 98:W=2,_=49;break;case 79:case 111:W=8,_=55;break;default:return+R}for(K=B(R,2),H=K.length,$=0;$_)return NaN;return parseInt(K,W)}}return+R},x=y(v,!g(" 0o1")||!g("0b1")||g("+0x1")),A=function(P){return h(N,P)&&f(function(){u(P)})},E=function(){function D(P){var R=arguments.length<1?0:g(w(P));return A(this)?k(Object(R),this,E):R}return D}();E.prototype=N,x&&!a&&(N.constructor=E),e({global:!0,constructor:!0,wrap:!0,forced:x},{Number:E});var M=function(P,R){for(var j=t?d(R):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),F=0,W;j.length>F;F++)S(R,W=j[F])&&!S(P,W)&&s(P,W,i(R,W))};a&&p&&M(m[v],p),(x||a)&&M(m[v],g)},84295:function(I,r,n){"use strict";var e=n(77549);e({target:"Number",stat:!0,nonConfigurable:!0,nonWritable:!0},{EPSILON:Math.pow(2,-52)})},59785:function(I,r,n){"use strict";var e=n(77549),a=n(69079);e({target:"Number",stat:!0},{isFinite:a})},8846:function(I,r,n){"use strict";var e=n(77549),a=n(57696);e({target:"Number",stat:!0},{isInteger:a})},50237:function(I,r,n){"use strict";var e=n(77549);e({target:"Number",stat:!0},{isNaN:function(){function a(t){return t!==t}return a}()})},6436:function(I,r,n){"use strict";var e=n(77549),a=n(57696),t=Math.abs;e({target:"Number",stat:!0},{isSafeInteger:function(){function o(m){return a(m)&&t(m)<=9007199254740991}return o}()})},68286:function(I,r,n){"use strict";var e=n(77549);e({target:"Number",stat:!0,nonConfigurable:!0,nonWritable:!0},{MAX_SAFE_INTEGER:9007199254740991})},23940:function(I,r,n){"use strict";var e=n(77549);e({target:"Number",stat:!0,nonConfigurable:!0,nonWritable:!0},{MIN_SAFE_INTEGER:-9007199254740991})},82425:function(I,r,n){"use strict";var e=n(77549),a=n(43283);e({target:"Number",stat:!0,forced:Number.parseFloat!==a},{parseFloat:a})},82118:function(I,r,n){"use strict";var e=n(77549),a=n(11540);e({target:"Number",stat:!0,forced:Number.parseInt!==a},{parseInt:a})},7419:function(I,r,n){"use strict";var e=n(77549),a=n(18161),t=n(74952),o=n(37497),m=n(84948),V=n(41746),y=RangeError,S=String,k=Math.floor,h=a(m),l=a("".slice),c=a(1 .toFixed),f=function v(g,p,N){return p===0?N:p%2===1?v(g,p-1,N*g):v(g*g,p/2,N)},d=function(g){for(var p=0,N=g;N>=4096;)p+=12,N/=4096;for(;N>=2;)p+=1,N/=2;return p},i=function(g,p,N){for(var b=-1,B=N;++b<6;)B+=p*g[b],g[b]=B%1e7,B=k(B/1e7)},s=function(g,p){for(var N=6,b=0;--N>=0;)b+=g[N],g[N]=k(b/p),b=b%p*1e7},u=function(g){for(var p=6,N="";--p>=0;)if(N!==""||p===0||g[p]!==0){var b=S(g[p]);N=N===""?b:N+h("0",7-b.length)+b}return N},C=V(function(){return c(8e-5,3)!=="0.000"||c(.9,0)!=="1"||c(1.255,2)!=="1.25"||c(0xde0b6b3a7640080,0)!=="1000000000000000128"})||!V(function(){c({})});e({target:"Number",proto:!0,forced:C},{toFixed:function(){function v(g){var p=o(this),N=t(g),b=[0,0,0,0,0,0],B="",L="0",w,T,x,A;if(N<0||N>20)throw new y("Incorrect fraction digits");if(p!==p)return"NaN";if(p<=-1e21||p>=1e21)return S(p);if(p<0&&(B="-",p=-p),p>1e-21)if(w=d(p*f(2,69,1))-69,T=w<0?p*f(2,-w,1):p/f(2,w,1),T*=4503599627370496,w=52-w,w>0){for(i(b,0,T),x=N;x>=7;)i(b,1e7,0),x-=7;for(i(b,f(10,x,1),0),x=w-1;x>=23;)s(b,8388608),x-=23;s(b,1<0?(A=L.length,L=B+(A<=N?"0."+h("0",N-A)+L:l(L,0,A-N)+"."+l(L,A-N))):L=B+L,L}return v}()})},42409:function(I,r,n){"use strict";var e=n(77549),a=n(18161),t=n(41746),o=n(37497),m=a(1 .toPrecision),V=t(function(){return m(1,void 0)!=="1"})||!t(function(){m({})});e({target:"Number",proto:!0,forced:V},{toPrecision:function(){function y(S){return S===void 0?m(o(this)):m(o(this),S)}return y}()})},29002:function(I,r,n){"use strict";var e=n(77549),a=n(12752);e({target:"Object",stat:!0,arity:2,forced:Object.assign!==a},{assign:a})},85795:function(I,r,n){"use strict";var e=n(77549),a=n(14141),t=n(28969);e({target:"Object",stat:!0,sham:!a},{create:t})},74722:function(I,r,n){"use strict";var e=n(77549),a=n(14141),t=n(33030),o=n(97361),m=n(40076),V=n(56018);a&&e({target:"Object",proto:!0,forced:t},{__defineGetter__:function(){function y(S,k){V.f(m(this),S,{get:o(k),enumerable:!0,configurable:!0})}return y}()})},5300:function(I,r,n){"use strict";var e=n(77549),a=n(14141),t=n(65854).f;e({target:"Object",stat:!0,forced:Object.defineProperties!==t,sham:!a},{defineProperties:t})},85684:function(I,r,n){"use strict";var e=n(77549),a=n(14141),t=n(56018).f;e({target:"Object",stat:!0,forced:Object.defineProperty!==t,sham:!a},{defineProperty:t})},36014:function(I,r,n){"use strict";var e=n(77549),a=n(14141),t=n(33030),o=n(97361),m=n(40076),V=n(56018);a&&e({target:"Object",proto:!0,forced:t},{__defineSetter__:function(){function y(S,k){V.f(m(this),S,{set:o(k),enumerable:!0,configurable:!0})}return y}()})},98551:function(I,r,n){"use strict";var e=n(77549),a=n(97452).entries;e({target:"Object",stat:!0},{entries:function(){function t(o){return a(o)}return t}()})},66288:function(I,r,n){"use strict";var e=n(77549),a=n(56255),t=n(41746),o=n(56831),m=n(29126).onFreeze,V=Object.freeze,y=t(function(){V(1)});e({target:"Object",stat:!0,forced:y,sham:!a},{freeze:function(){function S(k){return V&&o(k)?V(m(k)):k}return S}()})},26862:function(I,r,n){"use strict";var e=n(77549),a=n(281),t=n(12913);e({target:"Object",stat:!0},{fromEntries:function(){function o(m){var V={};return a(m,function(y,S){t(V,y,S)},{AS_ENTRIES:!0}),V}return o}()})},78686:function(I,r,n){"use strict";var e=n(77549),a=n(41746),t=n(96812),o=n(54168).f,m=n(14141),V=!m||a(function(){o(1)});e({target:"Object",stat:!0,forced:V,sham:!m},{getOwnPropertyDescriptor:function(){function y(S,k){return o(t(S),k)}return y}()})},36789:function(I,r,n){"use strict";var e=n(77549),a=n(14141),t=n(93616),o=n(96812),m=n(54168),V=n(12913);e({target:"Object",stat:!0,sham:!a},{getOwnPropertyDescriptors:function(){function y(S){for(var k=o(S),h=m.f,l=t(k),c={},f=0,d,i;l.length>f;)i=h(k,d=l[f++]),i!==void 0&&V(c,d,i);return c}return y}()})},82707:function(I,r,n){"use strict";var e=n(77549),a=n(41746),t=n(63797).f,o=a(function(){return!Object.getOwnPropertyNames(1)});e({target:"Object",stat:!0,forced:o},{getOwnPropertyNames:t})},93146:function(I,r,n){"use strict";var e=n(77549),a=n(70640),t=n(41746),o=n(34220),m=n(40076),V=!a||t(function(){o.f(1)});e({target:"Object",stat:!0,forced:V},{getOwnPropertySymbols:function(){function y(S){var k=o.f;return k?k(m(S)):[]}return y}()})},69740:function(I,r,n){"use strict";var e=n(77549),a=n(41746),t=n(40076),o=n(31658),m=n(58776),V=a(function(){o(1)});e({target:"Object",stat:!0,forced:V,sham:!m},{getPrototypeOf:function(){function y(S){return o(t(S))}return y}()})},54789:function(I,r,n){"use strict";var e=n(77549),a=n(57975);e({target:"Object",stat:!0,forced:Object.isExtensible!==a},{isExtensible:a})},49626:function(I,r,n){"use strict";var e=n(77549),a=n(41746),t=n(56831),o=n(38817),m=n(65693),V=Object.isFrozen,y=m||a(function(){V(1)});e({target:"Object",stat:!0,forced:y},{isFrozen:function(){function S(k){return!t(k)||m&&o(k)==="ArrayBuffer"?!0:V?V(k):!1}return S}()})},67660:function(I,r,n){"use strict";var e=n(77549),a=n(41746),t=n(56831),o=n(38817),m=n(65693),V=Object.isSealed,y=m||a(function(){V(1)});e({target:"Object",stat:!0,forced:y},{isSealed:function(){function S(k){return!t(k)||m&&o(k)==="ArrayBuffer"?!0:V?V(k):!1}return S}()})},87847:function(I,r,n){"use strict";var e=n(77549),a=n(37309);e({target:"Object",stat:!0},{is:a})},43619:function(I,r,n){"use strict";var e=n(77549),a=n(40076),t=n(84913),o=n(41746),m=o(function(){t(1)});e({target:"Object",stat:!0,forced:m},{keys:function(){function V(y){return t(a(y))}return V}()})},42777:function(I,r,n){"use strict";var e=n(77549),a=n(14141),t=n(33030),o=n(40076),m=n(57640),V=n(31658),y=n(54168).f;a&&e({target:"Object",proto:!0,forced:t},{__lookupGetter__:function(){function S(k){var h=o(this),l=m(k),c;do if(c=y(h,l))return c.get;while(h=V(h))}return S}()})},13045:function(I,r,n){"use strict";var e=n(77549),a=n(14141),t=n(33030),o=n(40076),m=n(57640),V=n(31658),y=n(54168).f;a&&e({target:"Object",proto:!0,forced:t},{__lookupSetter__:function(){function S(k){var h=o(this),l=m(k),c;do if(c=y(h,l))return c.set;while(h=V(h))}return S}()})},38664:function(I,r,n){"use strict";var e=n(77549),a=n(56831),t=n(29126).onFreeze,o=n(56255),m=n(41746),V=Object.preventExtensions,y=m(function(){V(1)});e({target:"Object",stat:!0,forced:y,sham:!o},{preventExtensions:function(){function S(k){return V&&a(k)?V(t(k)):k}return S}()})},29650:function(I,r,n){"use strict";var e=n(77549),a=n(56831),t=n(29126).onFreeze,o=n(56255),m=n(41746),V=Object.seal,y=m(function(){V(1)});e({target:"Object",stat:!0,forced:y,sham:!o},{seal:function(){function S(k){return V&&a(k)?V(t(k)):k}return S}()})},58176:function(I,r,n){"use strict";var e=n(77549),a=n(42878);e({target:"Object",stat:!0},{setPrototypeOf:a})},35286:function(I,r,n){"use strict";var e=n(82161),a=n(59173),t=n(66628);e||a(Object.prototype,"toString",t,{unsafe:!0})},13313:function(I,r,n){"use strict";var e=n(77549),a=n(97452).values;e({target:"Object",stat:!0},{values:function(){function t(o){return a(o)}return t}()})},26528:function(I,r,n){"use strict";var e=n(77549),a=n(43283);e({global:!0,forced:parseFloat!==a},{parseFloat:a})},54959:function(I,r,n){"use strict";var e=n(77549),a=n(11540);e({global:!0,forced:parseInt!==a},{parseInt:a})},34344:function(I,r,n){"use strict";var e=n(77549),a=n(62696),t=n(97361),o=n(48532),m=n(91114),V=n(281),y=n(95044);e({target:"Promise",stat:!0,forced:y},{all:function(){function S(k){var h=this,l=o.f(h),c=l.resolve,f=l.reject,d=m(function(){var i=t(h.resolve),s=[],u=0,C=1;V(k,function(v){var g=u++,p=!1;C++,a(i,h,v).then(function(N){p||(p=!0,s[g]=N,--C||c(s))},f)}),--C||c(s)});return d.error&&f(d.value),l.promise}return S}()})},60:function(I,r,n){"use strict";var e=n(77549),a=n(11478),t=n(49669).CONSTRUCTOR,o=n(35973),m=n(40164),V=n(7532),y=n(59173),S=o&&o.prototype;if(e({target:"Promise",proto:!0,forced:t,real:!0},{catch:function(){function h(l){return this.then(void 0,l)}return h}()}),!a&&V(o)){var k=m("Promise").prototype.catch;S.catch!==k&&y(S,"catch",k,{unsafe:!0})}},7803:function(I,r,n){"use strict";var e=n(77549),a=n(11478),t=n(95823),o=n(40224),m=n(62696),V=n(59173),y=n(42878),S=n(94234),k=n(67420),h=n(97361),l=n(7532),c=n(56831),f=n(19870),d=n(78412),i=n(91314).set,s=n(27150),u=n(46122),C=n(91114),v=n(23496),g=n(35086),p=n(35973),N=n(49669),b=n(48532),B="Promise",L=N.CONSTRUCTOR,w=N.REJECTION_EVENT,T=N.SUBCLASSING,x=g.getterFor(B),A=g.set,E=p&&p.prototype,M=p,D=E,P=o.TypeError,R=o.document,j=o.process,F=b.f,W=F,_=!!(R&&R.createEvent&&o.dispatchEvent),K="unhandledrejection",H="rejectionhandled",$=0,X=1,J=2,ae=1,re=2,me,pe,Ce,ke,he=function(ge){var Be;return c(ge)&&l(Be=ge.then)?Be:!1},oe=function(ge,Be){var we=Be.value,xe=Be.state===X,Oe=xe?ge.ok:ge.fail,We=ge.resolve,be=ge.reject,ce=ge.domain,le,ve,de;try{Oe?(xe||(Be.rejection===re&&te(Be),Be.rejection=ae),Oe===!0?le=we:(ce&&ce.enter(),le=Oe(we),ce&&(ce.exit(),de=!0)),le===ge.promise?be(new P("Promise-chain cycle")):(ve=he(le))?m(ve,le,We,be):We(le)):be(we)}catch(Ve){ce&&!de&&ce.exit(),be(Ve)}},Z=function(ge,Be){ge.notified||(ge.notified=!0,s(function(){for(var we=ge.reactions,xe;xe=we.get();)oe(xe,ge);ge.notified=!1,Be&&!ge.rejection&&ue(ge)}))},q=function(ge,Be,we){var xe,Oe;_?(xe=R.createEvent("Event"),xe.promise=Be,xe.reason=we,xe.initEvent(ge,!1,!0),o.dispatchEvent(xe)):xe={promise:Be,reason:we},!w&&(Oe=o["on"+ge])?Oe(xe):ge===K&&u("Unhandled promise rejection",we)},ue=function(ge){m(i,o,function(){var Be=ge.facade,we=ge.value,xe=se(ge),Oe;if(xe&&(Oe=C(function(){t?j.emit("unhandledRejection",we,Be):q(K,Be,we)}),ge.rejection=t||se(ge)?re:ae,Oe.error))throw Oe.value})},se=function(ge){return ge.rejection!==ae&&!ge.parent},te=function(ge){m(i,o,function(){var Be=ge.facade;t?j.emit("rejectionHandled",Be):q(H,Be,ge.value)})},ye=function(ge,Be,we){return function(xe){ge(Be,xe,we)}},fe=function(ge,Be,we){ge.done||(ge.done=!0,we&&(ge=we),ge.value=Be,ge.state=J,Z(ge,!0))},Ne=function Se(ge,Be,we){if(!ge.done){ge.done=!0,we&&(ge=we);try{if(ge.facade===Be)throw new P("Promise can't be resolved itself");var xe=he(Be);xe?s(function(){var Oe={done:!1};try{m(xe,Be,ye(Se,Oe,ge),ye(fe,Oe,ge))}catch(We){fe(Oe,We,ge)}}):(ge.value=Be,ge.state=X,Z(ge,!1))}catch(Oe){fe({done:!1},Oe,ge)}}};if(L&&(M=function(){function Se(ge){f(this,D),h(ge),m(me,this);var Be=x(this);try{ge(ye(Ne,Be),ye(fe,Be))}catch(we){fe(Be,we)}}return Se}(),D=M.prototype,me=function(){function Se(ge){A(this,{type:B,done:!1,notified:!1,parent:!1,reactions:new v,rejection:!1,state:$,value:void 0})}return Se}(),me.prototype=V(D,"then",function(){function Se(ge,Be){var we=x(this),xe=F(d(this,M));return we.parent=!0,xe.ok=l(ge)?ge:!0,xe.fail=l(Be)&&Be,xe.domain=t?j.domain:void 0,we.state===$?we.reactions.add(xe):s(function(){oe(xe,we)}),xe.promise}return Se}()),pe=function(){var ge=new me,Be=x(ge);this.promise=ge,this.resolve=ye(Ne,Be),this.reject=ye(fe,Be)},b.f=F=function(ge){return ge===M||ge===Ce?new pe(ge):W(ge)},!a&&l(p)&&E!==Object.prototype)){ke=E.then,T||V(E,"then",function(){function Se(ge,Be){var we=this;return new M(function(xe,Oe){m(ke,we,xe,Oe)}).then(ge,Be)}return Se}(),{unsafe:!0});try{delete E.constructor}catch(Se){}y&&y(E,D)}e({global:!0,constructor:!0,wrap:!0,forced:L},{Promise:M}),S(M,B,!1,!0),k(B)},54412:function(I,r,n){"use strict";var e=n(77549),a=n(11478),t=n(35973),o=n(41746),m=n(40164),V=n(7532),y=n(78412),S=n(43827),k=n(59173),h=t&&t.prototype,l=!!t&&o(function(){h.finally.call({then:function(){function f(){}return f}()},function(){})});if(e({target:"Promise",proto:!0,real:!0,forced:l},{finally:function(){function f(d){var i=y(this,m("Promise")),s=V(d);return this.then(s?function(u){return S(i,d()).then(function(){return u})}:d,s?function(u){return S(i,d()).then(function(){throw u})}:d)}return f}()}),!a&&V(t)){var c=m("Promise").prototype.finally;h.finally!==c&&k(h,"finally",c,{unsafe:!0})}},78129:function(I,r,n){"use strict";n(7803),n(34344),n(60),n(61270),n(82248),n(30347)},61270:function(I,r,n){"use strict";var e=n(77549),a=n(62696),t=n(97361),o=n(48532),m=n(91114),V=n(281),y=n(95044);e({target:"Promise",stat:!0,forced:y},{race:function(){function S(k){var h=this,l=o.f(h),c=l.reject,f=m(function(){var d=t(h.resolve);V(k,function(i){a(d,h,i).then(l.resolve,c)})});return f.error&&c(f.value),l.promise}return S}()})},82248:function(I,r,n){"use strict";var e=n(77549),a=n(48532),t=n(49669).CONSTRUCTOR;e({target:"Promise",stat:!0,forced:t},{reject:function(){function o(m){var V=a.f(this),y=V.reject;return y(m),V.promise}return o}()})},30347:function(I,r,n){"use strict";var e=n(77549),a=n(40164),t=n(11478),o=n(35973),m=n(49669).CONSTRUCTOR,V=n(43827),y=a("Promise"),S=t&&!m;e({target:"Promise",stat:!0,forced:t||m},{resolve:function(){function k(h){return V(S&&this===y?o:this,h)}return k}()})},82427:function(I,r,n){"use strict";var e=n(77549),a=n(70918),t=n(97361),o=n(39482),m=n(41746),V=!m(function(){Reflect.apply(function(){})});e({target:"Reflect",stat:!0,forced:V},{apply:function(){function y(S,k,h){return a(t(S),k,o(h))}return y}()})},8390:function(I,r,n){"use strict";var e=n(77549),a=n(40164),t=n(70918),o=n(9379),m=n(76833),V=n(39482),y=n(56831),S=n(28969),k=n(41746),h=a("Reflect","construct"),l=Object.prototype,c=[].push,f=k(function(){function s(){}return!(h(function(){},[],s)instanceof s)}),d=!k(function(){h(function(){})}),i=f||d;e({target:"Reflect",stat:!0,forced:i,sham:i},{construct:function(){function s(u,C){m(u),V(C);var v=arguments.length<3?u:m(arguments[2]);if(d&&!f)return h(u,C,v);if(u===v){switch(C.length){case 0:return new u;case 1:return new u(C[0]);case 2:return new u(C[0],C[1]);case 3:return new u(C[0],C[1],C[2]);case 4:return new u(C[0],C[1],C[2],C[3])}var g=[null];return t(c,g,C),new(t(o,u,g))}var p=v.prototype,N=S(y(p)?p:l),b=t(u,N,C);return y(b)?b:N}return s}()})},68260:function(I,r,n){"use strict";var e=n(77549),a=n(14141),t=n(39482),o=n(57640),m=n(56018),V=n(41746),y=V(function(){Reflect.defineProperty(m.f({},1,{value:1}),1,{value:2})});e({target:"Reflect",stat:!0,forced:y,sham:!a},{defineProperty:function(){function S(k,h,l){t(k);var c=o(h);t(l);try{return m.f(k,c,l),!0}catch(f){return!1}}return S}()})},86508:function(I,r,n){"use strict";var e=n(77549),a=n(39482),t=n(54168).f;e({target:"Reflect",stat:!0},{deleteProperty:function(){function o(m,V){var y=t(a(m),V);return y&&!y.configurable?!1:delete m[V]}return o}()})},17134:function(I,r,n){"use strict";var e=n(77549),a=n(14141),t=n(39482),o=n(54168);e({target:"Reflect",stat:!0,sham:!a},{getOwnPropertyDescriptor:function(){function m(V,y){return o.f(t(V),y)}return m}()})},18972:function(I,r,n){"use strict";var e=n(77549),a=n(39482),t=n(31658),o=n(58776);e({target:"Reflect",stat:!0,sham:!o},{getPrototypeOf:function(){function m(V){return t(a(V))}return m}()})},65971:function(I,r,n){"use strict";var e=n(77549),a=n(62696),t=n(56831),o=n(39482),m=n(35892),V=n(54168),y=n(31658);function S(k,h){var l=arguments.length<3?k:arguments[2],c,f;if(o(k)===l)return k[h];if(c=V.f(k,h),c)return m(c)?c.value:c.get===void 0?void 0:a(c.get,l);if(t(f=y(k)))return S(f,h,l)}e({target:"Reflect",stat:!0},{get:S})},78623:function(I,r,n){"use strict";var e=n(77549);e({target:"Reflect",stat:!0},{has:function(){function a(t,o){return o in t}return a}()})},60149:function(I,r,n){"use strict";var e=n(77549),a=n(39482),t=n(57975);e({target:"Reflect",stat:!0},{isExtensible:function(){function o(m){return a(m),t(m)}return o}()})},56380:function(I,r,n){"use strict";var e=n(77549),a=n(93616);e({target:"Reflect",stat:!0},{ownKeys:a})},72792:function(I,r,n){"use strict";var e=n(77549),a=n(40164),t=n(39482),o=n(56255);e({target:"Reflect",stat:!0,sham:!o},{preventExtensions:function(){function m(V){t(V);try{var y=a("Object","preventExtensions");return y&&y(V),!0}catch(S){return!1}}return m}()})},25168:function(I,r,n){"use strict";var e=n(77549),a=n(39482),t=n(51689),o=n(42878);o&&e({target:"Reflect",stat:!0},{setPrototypeOf:function(){function m(V,y){a(V),t(y);try{return o(V,y),!0}catch(S){return!1}}return m}()})},60631:function(I,r,n){"use strict";var e=n(77549),a=n(62696),t=n(39482),o=n(56831),m=n(35892),V=n(41746),y=n(56018),S=n(54168),k=n(31658),h=n(7539);function l(f,d,i){var s=arguments.length<4?f:arguments[3],u=S.f(t(f),d),C,v,g;if(!u){if(o(v=k(f)))return l(v,d,i,s);u=h(0)}if(m(u)){if(u.writable===!1||!o(s))return!1;if(C=S.f(s,d)){if(C.get||C.set||C.writable===!1)return!1;C.value=i,y.f(s,d,C)}else y.f(s,d,h(0,i))}else{if(g=u.set,g===void 0)return!1;a(g,s,i)}return!0}var c=V(function(){var f=function(){},d=y.f(new f,"a",{configurable:!0});return Reflect.set(f.prototype,"a",1,d)!==!1});e({target:"Reflect",stat:!0,forced:c},{set:l})},85177:function(I,r,n){"use strict";var e=n(14141),a=n(40224),t=n(18161),o=n(95945),m=n(2566),V=n(16216),y=n(28969),S=n(34813).f,k=n(33314),h=n(80969),l=n(26602),c=n(60425),f=n(1064),d=n(77495),i=n(59173),s=n(41746),u=n(89458),C=n(35086).enforce,v=n(67420),g=n(66266),p=n(89604),N=n(5489),b=g("match"),B=a.RegExp,L=B.prototype,w=a.SyntaxError,T=t(L.exec),x=t("".charAt),A=t("".replace),E=t("".indexOf),M=t("".slice),D=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,P=/a/g,R=/a/g,j=new B(P)!==P,F=f.MISSED_STICKY,W=f.UNSUPPORTED_Y,_=e&&(!j||F||p||N||s(function(){return R[b]=!1,B(P)!==P||B(R)===R||String(B(P,"i"))!=="/a/i"})),K=function(re){for(var me=re.length,pe=0,Ce="",ke=!1,he;pe<=me;pe++){if(he=x(re,pe),he==="\\"){Ce+=he+x(re,++pe);continue}!ke&&he==="."?Ce+="[\\s\\S]":(he==="["?ke=!0:he==="]"&&(ke=!1),Ce+=he)}return Ce},H=function(re){for(var me=re.length,pe=0,Ce="",ke=[],he=y(null),oe=!1,Z=!1,q=0,ue="",se;pe<=me;pe++){if(se=x(re,pe),se==="\\")se+=x(re,++pe);else if(se==="]")oe=!1;else if(!oe)switch(!0){case se==="[":oe=!0;break;case se==="(":T(D,M(re,pe+1))&&(pe+=2,Z=!0),Ce+=se,q++;continue;case(se===">"&&Z):if(ue===""||u(he,ue))throw new w("Invalid capture group name");he[ue]=!0,ke[ke.length]=[ue,q],Z=!1,ue="";continue}Z?ue+=se:Ce+=se}return[Ce,ke]};if(o("RegExp",_)){for(var $=function(){function ae(re,me){var pe=k(L,this),Ce=h(re),ke=me===void 0,he=[],oe=re,Z,q,ue,se,te,ye;if(!pe&&Ce&&ke&&re.constructor===$)return re;if((Ce||k(L,re))&&(re=re.source,ke&&(me=c(oe))),re=re===void 0?"":l(re),me=me===void 0?"":l(me),oe=re,p&&"dotAll"in P&&(q=!!me&&E(me,"s")>-1,q&&(me=A(me,/s/g,""))),Z=me,F&&"sticky"in P&&(ue=!!me&&E(me,"y")>-1,ue&&W&&(me=A(me,/y/g,""))),N&&(se=H(re),re=se[0],he=se[1]),te=m(B(re,me),pe?this:L,$),(q||ue||he.length)&&(ye=C(te),q&&(ye.dotAll=!0,ye.raw=$(K(re),Z)),ue&&(ye.sticky=!0),he.length&&(ye.groups=he)),re!==oe)try{V(te,"source",oe===""?"(?:)":oe)}catch(fe){}return te}return ae}(),X=S(B),J=0;X.length>J;)d($,B,X[J++]);L.constructor=$,$.prototype=L,i(a,"RegExp",$,{constructor:!0})}v("RegExp")},95880:function(I,r,n){"use strict";var e=n(77549),a=n(72894);e({target:"RegExp",proto:!0,forced:/./.exec!==a},{exec:a})},59978:function(I,r,n){"use strict";var e=n(40224),a=n(14141),t=n(10069),o=n(65844),m=n(41746),V=e.RegExp,y=V.prototype,S=a&&m(function(){var k=!0;try{V(".","d")}catch(u){k=!1}var h={},l="",c=k?"dgimsy":"gimsy",f=function(C,v){Object.defineProperty(h,C,{get:function(){function g(){return l+=v,!0}return g}()})},d={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};k&&(d.hasIndices="d");for(var i in d)f(i,d[i]);var s=Object.getOwnPropertyDescriptor(y,"flags").get.call(h);return s!==c||l!==c});S&&t(y,"flags",{configurable:!0,get:o})},96360:function(I,r,n){"use strict";var e=n(26463).PROPER,a=n(59173),t=n(39482),o=n(26602),m=n(41746),V=n(60425),y="toString",S=RegExp.prototype,k=S[y],h=m(function(){return k.call({source:"a",flags:"b"})!=="/a/b"}),l=e&&k.name!==y;(h||l)&&a(S,y,function(){function c(){var f=t(this),d=o(f.source),i=o(V(f));return"/"+d+"/"+i}return c}(),{unsafe:!0})},47338:function(I,r,n){"use strict";var e=n(93439),a=n(10623);e("Set",function(t){return function(){function o(){return t(this,arguments.length?arguments[0]:void 0)}return o}()},a)},43108:function(I,r,n){"use strict";n(47338)},36:function(I,r,n){"use strict";var e=n(77549),a=n(93677),t=n(32086);e({target:"String",proto:!0,forced:t("anchor")},{anchor:function(){function o(m){return a(this,"a","name",m)}return o}()})},30519:function(I,r,n){"use strict";var e=n(77549),a=n(93677),t=n(32086);e({target:"String",proto:!0,forced:t("big")},{big:function(){function o(){return a(this,"big","","")}return o}()})},33547:function(I,r,n){"use strict";var e=n(77549),a=n(93677),t=n(32086);e({target:"String",proto:!0,forced:t("blink")},{blink:function(){function o(){return a(this,"blink","","")}return o}()})},53426:function(I,r,n){"use strict";var e=n(77549),a=n(93677),t=n(32086);e({target:"String",proto:!0,forced:t("bold")},{bold:function(){function o(){return a(this,"b","","")}return o}()})},37801:function(I,r,n){"use strict";var e=n(77549),a=n(56852).codeAt;e({target:"String",proto:!0},{codePointAt:function(){function t(o){return a(this,o)}return t}()})},3044:function(I,r,n){"use strict";var e=n(77549),a=n(85067),t=n(54168).f,o=n(10475),m=n(26602),V=n(89140),y=n(91029),S=n(93321),k=n(11478),h=a("".slice),l=Math.min,c=S("endsWith"),f=!k&&!c&&!!function(){var d=t(String.prototype,"endsWith");return d&&!d.writable}();e({target:"String",proto:!0,forced:!f&&!c},{endsWith:function(){function d(i){var s=m(y(this));V(i);var u=arguments.length>1?arguments[1]:void 0,C=s.length,v=u===void 0?C:l(o(u),C),g=m(i);return h(s,v-g.length,v)===g}return d}()})},32031:function(I,r,n){"use strict";var e=n(77549),a=n(93677),t=n(32086);e({target:"String",proto:!0,forced:t("fixed")},{fixed:function(){function o(){return a(this,"tt","","")}return o}()})},13153:function(I,r,n){"use strict";var e=n(77549),a=n(93677),t=n(32086);e({target:"String",proto:!0,forced:t("fontcolor")},{fontcolor:function(){function o(m){return a(this,"font","color",m)}return o}()})},21953:function(I,r,n){"use strict";var e=n(77549),a=n(93677),t=n(32086);e({target:"String",proto:!0,forced:t("fontsize")},{fontsize:function(){function o(m){return a(this,"font","size",m)}return o}()})},48432:function(I,r,n){"use strict";var e=n(77549),a=n(18161),t=n(74067),o=RangeError,m=String.fromCharCode,V=String.fromCodePoint,y=a([].join),S=!!V&&V.length!==1;e({target:"String",stat:!0,arity:1,forced:S},{fromCodePoint:function(){function k(h){for(var l=[],c=arguments.length,f=0,d;c>f;){if(d=+arguments[f++],t(d,1114111)!==d)throw new o(d+" is not a valid code point");l[f]=d<65536?m(d):m(((d-=65536)>>10)+55296,d%1024+56320)}return y(l,"")}return k}()})},54564:function(I,r,n){"use strict";var e=n(77549),a=n(18161),t=n(89140),o=n(91029),m=n(26602),V=n(93321),y=a("".indexOf);e({target:"String",proto:!0,forced:!V("includes")},{includes:function(){function S(k){return!!~y(m(o(this)),m(t(k)),arguments.length>1?arguments[1]:void 0)}return S}()})},83560:function(I,r,n){"use strict";var e=n(77549),a=n(93677),t=n(32086);e({target:"String",proto:!0,forced:t("italics")},{italics:function(){function o(){return a(this,"i","","")}return o}()})},58179:function(I,r,n){"use strict";var e=n(56852).charAt,a=n(26602),t=n(35086),o=n(2449),m=n(77056),V="String Iterator",y=t.set,S=t.getterFor(V);o(String,"String",function(k){y(this,{type:V,string:a(k),index:0})},function(){function k(){var h=S(this),l=h.string,c=h.index,f;return c>=l.length?m(void 0,!0):(f=e(l,c),h.index+=f.length,m(f,!1))}return k}())},63465:function(I,r,n){"use strict";var e=n(77549),a=n(93677),t=n(32086);e({target:"String",proto:!0,forced:t("link")},{link:function(){function o(m){return a(this,"a","href",m)}return o}()})},68164:function(I,r,n){"use strict";var e=n(62696),a=n(85427),t=n(39482),o=n(1022),m=n(10475),V=n(26602),y=n(91029),S=n(4817),k=n(62970),h=n(35553);a("match",function(l,c,f){return[function(){function d(i){var s=y(this),u=o(i)?void 0:S(i,l);return u?e(u,i,s):new RegExp(i)[l](V(s))}return d}(),function(d){var i=t(this),s=V(d),u=f(c,i,s);if(u.done)return u.value;if(!i.global)return h(i,s);var C=i.unicode;i.lastIndex=0;for(var v=[],g=0,p;(p=h(i,s))!==null;){var N=V(p[0]);v[g]=N,N===""&&(i.lastIndex=k(s,m(i.lastIndex),C)),g++}return g===0?null:v}]})},58880:function(I,r,n){"use strict";var e=n(77549),a=n(34086).end,t=n(33038);e({target:"String",proto:!0,forced:t},{padEnd:function(){function o(m){return a(this,m,arguments.length>1?arguments[1]:void 0)}return o}()})},54465:function(I,r,n){"use strict";var e=n(77549),a=n(34086).start,t=n(33038);e({target:"String",proto:!0,forced:t},{padStart:function(){function o(m){return a(this,m,arguments.length>1?arguments[1]:void 0)}return o}()})},97327:function(I,r,n){"use strict";var e=n(77549),a=n(18161),t=n(96812),o=n(40076),m=n(26602),V=n(8333),y=a([].push),S=a([].join);e({target:"String",stat:!0},{raw:function(){function k(h){var l=t(o(h).raw),c=V(l);if(!c)return"";for(var f=arguments.length,d=[],i=0;;){if(y(d,m(l[i++])),i===c)return S(d,"");i")!=="7"});o("replace",function(A,E,M){var D=T?"$":"$0";return[function(){function P(R,j){var F=c(this),W=S(R)?void 0:d(R,C);return W?a(W,R,F,j):a(E,l(F),R,j)}return P}(),function(P,R){var j=V(this),F=l(P);if(typeof R=="string"&&b(R,D)===-1&&b(R,"$<")===-1){var W=M(E,j,F,R);if(W.done)return W.value}var _=y(R);_||(R=l(R));var K=j.global,H;K&&(H=j.unicode,j.lastIndex=0);for(var $=[],X;X=s(j,F),!(X===null||(N($,X),!K));){var J=l(X[0]);J===""&&(j.lastIndex=f(F,h(j.lastIndex),H))}for(var ae="",re=0,me=0;me<$.length;me++){X=$[me];for(var pe=l(X[0]),Ce=v(g(k(X.index),F.length),0),ke=[],he,oe=1;oe=re&&(ae+=B(F,re,Ce)+he,re=Ce+pe.length)}return ae+B(F,re)}]},!x||!w||T)},17337:function(I,r,n){"use strict";var e=n(62696),a=n(85427),t=n(39482),o=n(1022),m=n(91029),V=n(37309),y=n(26602),S=n(4817),k=n(35553);a("search",function(h,l,c){return[function(){function f(d){var i=m(this),s=o(d)?void 0:S(d,h);return s?e(s,d,i):new RegExp(d)[h](y(i))}return f}(),function(f){var d=t(this),i=y(f),s=c(l,d,i);if(s.done)return s.value;var u=d.lastIndex;V(u,0)||(d.lastIndex=0);var C=k(d,i);return V(d.lastIndex,u)||(d.lastIndex=u),C===null?-1:C.index}]})},98998:function(I,r,n){"use strict";var e=n(77549),a=n(93677),t=n(32086);e({target:"String",proto:!0,forced:t("small")},{small:function(){function o(){return a(this,"small","","")}return o}()})},53713:function(I,r,n){"use strict";var e=n(62696),a=n(18161),t=n(85427),o=n(39482),m=n(1022),V=n(91029),y=n(78412),S=n(62970),k=n(10475),h=n(26602),l=n(4817),c=n(35553),f=n(1064),d=n(41746),i=f.UNSUPPORTED_Y,s=4294967295,u=Math.min,C=a([].push),v=a("".slice),g=!d(function(){var N=/(?:)/,b=N.exec;N.exec=function(){return b.apply(this,arguments)};var B="ab".split(N);return B.length!==2||B[0]!=="a"||B[1]!=="b"}),p="abbc".split(/(b)*/)[1]==="c"||"test".split(/(?:)/,-1).length!==4||"ab".split(/(?:ab)*/).length!==2||".".split(/(.?)(.?)/).length!==4||".".split(/()()/).length>1||"".split(/.?/).length;t("split",function(N,b,B){var L="0".split(void 0,0).length?function(w,T){return w===void 0&&T===0?[]:e(b,this,w,T)}:b;return[function(){function w(T,x){var A=V(this),E=m(T)?void 0:l(T,N);return E?e(E,T,A,x):e(L,h(A),T,x)}return w}(),function(w,T){var x=o(this),A=h(w);if(!p){var E=B(L,x,A,T,L!==b);if(E.done)return E.value}var M=y(x,RegExp),D=x.unicode,P=(x.ignoreCase?"i":"")+(x.multiline?"m":"")+(x.unicode?"u":"")+(i?"g":"y"),R=new M(i?"^(?:"+x.source+")":x,P),j=T===void 0?s:T>>>0;if(j===0)return[];if(A.length===0)return c(R,A)===null?[A]:[];for(var F=0,W=0,_=[];W1?arguments[1]:void 0,s.length)),C=m(i);return h(s,u,u+C.length)===C}return d}()})},96227:function(I,r,n){"use strict";var e=n(77549),a=n(93677),t=n(32086);e({target:"String",proto:!0,forced:t("strike")},{strike:function(){function o(){return a(this,"strike","","")}return o}()})},15483:function(I,r,n){"use strict";var e=n(77549),a=n(93677),t=n(32086);e({target:"String",proto:!0,forced:t("sub")},{sub:function(){function o(){return a(this,"sub","","")}return o}()})},86829:function(I,r,n){"use strict";var e=n(77549),a=n(93677),t=n(32086);e({target:"String",proto:!0,forced:t("sup")},{sup:function(){function o(){return a(this,"sup","","")}return o}()})},93073:function(I,r,n){"use strict";n(17434);var e=n(77549),a=n(11775);e({target:"String",proto:!0,name:"trimEnd",forced:"".trimEnd!==a},{trimEnd:a})},69107:function(I,r,n){"use strict";var e=n(77549),a=n(26402);e({target:"String",proto:!0,name:"trimStart",forced:"".trimLeft!==a},{trimLeft:a})},17434:function(I,r,n){"use strict";var e=n(77549),a=n(11775);e({target:"String",proto:!0,name:"trimEnd",forced:"".trimRight!==a},{trimRight:a})},50800:function(I,r,n){"use strict";n(69107);var e=n(77549),a=n(26402);e({target:"String",proto:!0,name:"trimStart",forced:"".trimStart!==a},{trimStart:a})},11121:function(I,r,n){"use strict";var e=n(77549),a=n(35171).trim,t=n(93817);e({target:"String",proto:!0,forced:t("trim")},{trim:function(){function o(){return a(this)}return o}()})},46951:function(I,r,n){"use strict";var e=n(15388);e("asyncIterator")},9056:function(I,r,n){"use strict";var e=n(77549),a=n(40224),t=n(62696),o=n(18161),m=n(11478),V=n(14141),y=n(70640),S=n(41746),k=n(89458),h=n(33314),l=n(39482),c=n(96812),f=n(57640),d=n(26602),i=n(7539),s=n(28969),u=n(84913),C=n(34813),v=n(63797),g=n(34220),p=n(54168),N=n(56018),b=n(65854),B=n(9776),L=n(59173),w=n(10069),T=n(75130),x=n(5160),A=n(21124),E=n(33345),M=n(66266),D=n(32938),P=n(15388),R=n(75429),j=n(94234),F=n(35086),W=n(67480).forEach,_=x("hidden"),K="Symbol",H="prototype",$=F.set,X=F.getterFor(K),J=Object[H],ae=a.Symbol,re=ae&&ae[H],me=a.RangeError,pe=a.TypeError,Ce=a.QObject,ke=p.f,he=N.f,oe=v.f,Z=B.f,q=o([].push),ue=T("symbols"),se=T("op-symbols"),te=T("wks"),ye=!Ce||!Ce[H]||!Ce[H].findChild,fe=function(le,ve,de){var Ve=ke(J,ve);Ve&&delete J[ve],he(le,ve,de),Ve&&le!==J&&he(J,ve,Ve)},Ne=V&&S(function(){return s(he({},"a",{get:function(){function ce(){return he(this,"a",{value:7}).a}return ce}()})).a!==7})?fe:he,Se=function(le,ve){var de=ue[le]=s(re);return $(de,{type:K,tag:le,description:ve}),V||(de.description=ve),de},ge=function(){function ce(le,ve,de){le===J&&ge(se,ve,de),l(le);var Ve=f(ve);return l(de),k(ue,Ve)?(de.enumerable?(k(le,_)&&le[_][Ve]&&(le[_][Ve]=!1),de=s(de,{enumerable:i(0,!1)})):(k(le,_)||he(le,_,i(1,s(null))),le[_][Ve]=!0),Ne(le,Ve,de)):he(le,Ve,de)}return ce}(),Be=function(){function ce(le,ve){l(le);var de=c(ve),Ve=u(de).concat(be(de));return W(Ve,function(Ae){(!V||t(xe,de,Ae))&&ge(le,Ae,de[Ae])}),le}return ce}(),we=function(){function ce(le,ve){return ve===void 0?s(le):Be(s(le),ve)}return ce}(),xe=function(){function ce(le){var ve=f(le),de=t(Z,this,ve);return this===J&&k(ue,ve)&&!k(se,ve)?!1:de||!k(this,ve)||!k(ue,ve)||k(this,_)&&this[_][ve]?de:!0}return ce}(),Oe=function(){function ce(le,ve){var de=c(le),Ve=f(ve);if(!(de===J&&k(ue,Ve)&&!k(se,Ve))){var Ae=ke(de,Ve);return Ae&&k(ue,Ve)&&!(k(de,_)&&de[_][Ve])&&(Ae.enumerable=!0),Ae}}return ce}(),We=function(){function ce(le){var ve=oe(c(le)),de=[];return W(ve,function(Ve){!k(ue,Ve)&&!k(A,Ve)&&q(de,Ve)}),de}return ce}(),be=function(le){var ve=le===J,de=oe(ve?se:c(le)),Ve=[];return W(de,function(Ae){k(ue,Ae)&&(!ve||k(J,Ae))&&q(Ve,ue[Ae])}),Ve};y||(ae=function(){function ce(){if(h(re,this))throw new pe("Symbol is not a constructor");var le=!arguments.length||arguments[0]===void 0?void 0:d(arguments[0]),ve=E(le),de=function(){function Ve(Ae){var De=this===void 0?a:this;De===J&&t(Ve,se,Ae),k(De,_)&&k(De[_],ve)&&(De[_][ve]=!1);var je=i(1,Ae);try{Ne(De,ve,je)}catch(_e){if(!(_e instanceof me))throw _e;fe(De,ve,je)}}return Ve}();return V&&ye&&Ne(J,ve,{configurable:!0,set:de}),Se(ve,le)}return ce}(),re=ae[H],L(re,"toString",function(){function ce(){return X(this).tag}return ce}()),L(ae,"withoutSetter",function(ce){return Se(E(ce),ce)}),B.f=xe,N.f=ge,b.f=Be,p.f=Oe,C.f=v.f=We,g.f=be,D.f=function(ce){return Se(M(ce),ce)},V&&(w(re,"description",{configurable:!0,get:function(){function ce(){return X(this).description}return ce}()}),m||L(J,"propertyIsEnumerable",xe,{unsafe:!0}))),e({global:!0,constructor:!0,wrap:!0,forced:!y,sham:!y},{Symbol:ae}),W(u(te),function(ce){P(ce)}),e({target:K,stat:!0,forced:!y},{useSetter:function(){function ce(){ye=!0}return ce}(),useSimple:function(){function ce(){ye=!1}return ce}()}),e({target:"Object",stat:!0,forced:!y,sham:!V},{create:we,defineProperty:ge,defineProperties:Be,getOwnPropertyDescriptor:Oe}),e({target:"Object",stat:!0,forced:!y},{getOwnPropertyNames:We}),R(),j(ae,K),A[_]=!0},27718:function(I,r,n){"use strict";var e=n(77549),a=n(14141),t=n(40224),o=n(18161),m=n(89458),V=n(7532),y=n(33314),S=n(26602),k=n(10069),h=n(70113),l=t.Symbol,c=l&&l.prototype;if(a&&V(l)&&(!("description"in c)||l().description!==void 0)){var f={},d=function(){function p(){var N=arguments.length<1||arguments[0]===void 0?void 0:S(arguments[0]),b=y(c,this)?new l(N):N===void 0?l():l(N);return N===""&&(f[b]=!0),b}return p}();h(d,l),d.prototype=c,c.constructor=d;var i=String(l("description detection"))==="Symbol(description detection)",s=o(c.valueOf),u=o(c.toString),C=/^Symbol\((.*)\)[^)]+$/,v=o("".replace),g=o("".slice);k(c,"description",{configurable:!0,get:function(){function p(){var N=s(this);if(m(f,N))return"";var b=u(N),B=i?g(b,7,-1):v(b,C,"$1");return B===""?void 0:B}return p}()}),e({global:!0,constructor:!0,forced:!0},{Symbol:d})}},18611:function(I,r,n){"use strict";var e=n(77549),a=n(40164),t=n(89458),o=n(26602),m=n(75130),V=n(80353),y=m("string-to-symbol-registry"),S=m("symbol-to-string-registry");e({target:"Symbol",stat:!0,forced:!V},{for:function(){function k(h){var l=o(h);if(t(y,l))return y[l];var c=a("Symbol")(l);return y[l]=c,S[c]=l,c}return k}()})},86042:function(I,r,n){"use strict";var e=n(15388);e("hasInstance")},93267:function(I,r,n){"use strict";var e=n(15388);e("isConcatSpreadable")},41664:function(I,r,n){"use strict";var e=n(15388);e("iterator")},99414:function(I,r,n){"use strict";n(9056),n(18611),n(30661),n(12183),n(93146)},30661:function(I,r,n){"use strict";var e=n(77549),a=n(89458),t=n(74352),o=n(62518),m=n(75130),V=n(80353),y=m("symbol-to-string-registry");e({target:"Symbol",stat:!0,forced:!V},{keyFor:function(){function S(k){if(!t(k))throw new TypeError(o(k)+" is not a symbol");if(a(y,k))return y[k]}return S}()})},48965:function(I,r,n){"use strict";var e=n(15388);e("match")},44844:function(I,r,n){"use strict";var e=n(15388);e("replace")},25030:function(I,r,n){"use strict";var e=n(15388);e("search")},96454:function(I,r,n){"use strict";var e=n(15388);e("species")},77564:function(I,r,n){"use strict";var e=n(15388);e("split")},44875:function(I,r,n){"use strict";var e=n(15388),a=n(75429);e("toPrimitive"),a()},77904:function(I,r,n){"use strict";var e=n(40164),a=n(15388),t=n(94234);a("toStringTag"),t(e("Symbol"),"Symbol")},35723:function(I,r,n){"use strict";var e=n(15388);e("unscopables")},84805:function(I,r,n){"use strict";var e=n(18161),a=n(72951),t=n(42320),o=e(t),m=a.aTypedArray,V=a.exportTypedArrayMethod;V("copyWithin",function(){function y(S,k){return o(m(this),S,k,arguments.length>2?arguments[2]:void 0)}return y}())},79305:function(I,r,n){"use strict";var e=n(72951),a=n(67480).every,t=e.aTypedArray,o=e.exportTypedArrayMethod;o("every",function(){function m(V){return a(t(this),V,arguments.length>1?arguments[1]:void 0)}return m}())},71573:function(I,r,n){"use strict";var e=n(72951),a=n(59942),t=n(757),o=n(27806),m=n(62696),V=n(18161),y=n(41746),S=e.aTypedArray,k=e.exportTypedArrayMethod,h=V("".slice),l=y(function(){var c=0;return new Int8Array(2).fill({valueOf:function(){function f(){return c++}return f}()}),c!==1});k("fill",function(){function c(f){var d=arguments.length;S(this);var i=h(o(this),0,3)==="Big"?t(f):+f;return m(a,this,i,d>1?arguments[1]:void 0,d>2?arguments[2]:void 0)}return c}(),l)},47910:function(I,r,n){"use strict";var e=n(72951),a=n(67480).filter,t=n(80936),o=e.aTypedArray,m=e.exportTypedArrayMethod;m("filter",function(){function V(y){var S=a(o(this),y,arguments.length>1?arguments[1]:void 0);return t(this,S)}return V}())},99662:function(I,r,n){"use strict";var e=n(72951),a=n(67480).findIndex,t=e.aTypedArray,o=e.exportTypedArrayMethod;o("findIndex",function(){function m(V){return a(t(this),V,arguments.length>1?arguments[1]:void 0)}return m}())},48447:function(I,r,n){"use strict";var e=n(72951),a=n(67480).find,t=e.aTypedArray,o=e.exportTypedArrayMethod;o("find",function(){function m(V){return a(t(this),V,arguments.length>1?arguments[1]:void 0)}return m}())},68265:function(I,r,n){"use strict";var e=n(12218);e("Float32",function(a){return function(){function t(o,m,V){return a(this,o,m,V)}return t}()})},36030:function(I,r,n){"use strict";var e=n(12218);e("Float64",function(a){return function(){function t(o,m,V){return a(this,o,m,V)}return t}()})},57371:function(I,r,n){"use strict";var e=n(72951),a=n(67480).forEach,t=e.aTypedArray,o=e.exportTypedArrayMethod;o("forEach",function(){function m(V){a(t(this),V,arguments.length>1?arguments[1]:void 0)}return m}())},68220:function(I,r,n){"use strict";var e=n(66220),a=n(72951).exportTypedArrayStaticMethod,t=n(7996);a("from",t,e)},15745:function(I,r,n){"use strict";var e=n(72951),a=n(64210).includes,t=e.aTypedArray,o=e.exportTypedArrayMethod;o("includes",function(){function m(V){return a(t(this),V,arguments.length>1?arguments[1]:void 0)}return m}())},43398:function(I,r,n){"use strict";var e=n(72951),a=n(64210).indexOf,t=e.aTypedArray,o=e.exportTypedArrayMethod;o("indexOf",function(){function m(V){return a(t(this),V,arguments.length>1?arguments[1]:void 0)}return m}())},25888:function(I,r,n){"use strict";var e=n(12218);e("Int16",function(a){return function(){function t(o,m,V){return a(this,o,m,V)}return t}()})},35718:function(I,r,n){"use strict";var e=n(12218);e("Int32",function(a){return function(){function t(o,m,V){return a(this,o,m,V)}return t}()})},32791:function(I,r,n){"use strict";var e=n(12218);e("Int8",function(a){return function(){function t(o,m,V){return a(this,o,m,V)}return t}()})},97722:function(I,r,n){"use strict";var e=n(40224),a=n(41746),t=n(18161),o=n(72951),m=n(65809),V=n(66266),y=V("iterator"),S=e.Uint8Array,k=t(m.values),h=t(m.keys),l=t(m.entries),c=o.aTypedArray,f=o.exportTypedArrayMethod,d=S&&S.prototype,i=!a(function(){d[y].call([1])}),s=!!d&&d.values&&d[y]===d.values&&d.values.name==="values",u=function(){function C(){return k(c(this))}return C}();f("entries",function(){function C(){return l(c(this))}return C}(),i),f("keys",function(){function C(){return h(c(this))}return C}(),i),f("values",u,i||!s,{name:"values"}),f(y,u,i||!s,{name:"values"})},79088:function(I,r,n){"use strict";var e=n(72951),a=n(18161),t=e.aTypedArray,o=e.exportTypedArrayMethod,m=a([].join);o("join",function(){function V(y){return m(t(this),y)}return V}())},6075:function(I,r,n){"use strict";var e=n(72951),a=n(70918),t=n(16934),o=e.aTypedArray,m=e.exportTypedArrayMethod;m("lastIndexOf",function(){function V(y){var S=arguments.length;return a(t,o(this),S>1?[y,arguments[1]]:[y])}return V}())},46896:function(I,r,n){"use strict";var e=n(72951),a=n(67480).map,t=n(489),o=e.aTypedArray,m=e.exportTypedArrayMethod;m("map",function(){function V(y){return a(o(this),y,arguments.length>1?arguments[1]:void 0,function(S,k){return new(t(S))(k)})}return V}())},47145:function(I,r,n){"use strict";var e=n(72951),a=n(66220),t=e.aTypedArrayConstructor,o=e.exportTypedArrayStaticMethod;o("of",function(){function m(){for(var V=0,y=arguments.length,S=new(t(this))(y);y>V;)S[V]=arguments[V++];return S}return m}(),a)},349:function(I,r,n){"use strict";var e=n(72951),a=n(98405).right,t=e.aTypedArray,o=e.exportTypedArrayMethod;o("reduceRight",function(){function m(V){var y=arguments.length;return a(t(this),V,y,y>1?arguments[1]:void 0)}return m}())},72606:function(I,r,n){"use strict";var e=n(72951),a=n(98405).left,t=e.aTypedArray,o=e.exportTypedArrayMethod;o("reduce",function(){function m(V){var y=arguments.length;return a(t(this),V,y,y>1?arguments[1]:void 0)}return m}())},28292:function(I,r,n){"use strict";var e=n(72951),a=e.aTypedArray,t=e.exportTypedArrayMethod,o=Math.floor;t("reverse",function(){function m(){for(var V=this,y=a(V).length,S=o(y/2),k=0,h;k1?arguments[1]:void 0,1),v=V(u);if(d)return a(l,this,v,C);var g=this.length,p=o(v),N=0;if(p+C>g)throw new S("Wrong length");for(;Nf;)i[f]=l[f++];return i}return S}(),y)},74188:function(I,r,n){"use strict";var e=n(72951),a=n(67480).some,t=e.aTypedArray,o=e.exportTypedArrayMethod;o("some",function(){function m(V){return a(t(this),V,arguments.length>1?arguments[1]:void 0)}return m}())},81976:function(I,r,n){"use strict";var e=n(40224),a=n(85067),t=n(41746),o=n(97361),m=n(44815),V=n(72951),y=n(49847),S=n(56605),k=n(82709),h=n(53125),l=V.aTypedArray,c=V.exportTypedArrayMethod,f=e.Uint16Array,d=f&&a(f.prototype.sort),i=!!d&&!(t(function(){d(new f(2),null)})&&t(function(){d(new f(2),{})})),s=!!d&&!t(function(){if(k)return k<74;if(y)return y<67;if(S)return!0;if(h)return h<602;var C=new f(516),v=Array(516),g,p;for(g=0;g<516;g++)p=g%4,C[g]=515-g,v[g]=g-2*p+3;for(d(C,function(N,b){return(N/4|0)-(b/4|0)}),g=0;g<516;g++)if(C[g]!==v[g])return!0}),u=function(v){return function(g,p){return v!==void 0?+v(g,p)||0:p!==p?-1:g!==g?1:g===0&&p===0?1/g>0&&1/p<0?1:-1:g>p}};c("sort",function(){function C(v){return v!==void 0&&o(v),s?d(this,v):m(l(this),u(v))}return C}(),!s||i)},78651:function(I,r,n){"use strict";var e=n(72951),a=n(10475),t=n(74067),o=n(489),m=e.aTypedArray,V=e.exportTypedArrayMethod;V("subarray",function(){function y(S,k){var h=m(this),l=h.length,c=t(S,l),f=o(h);return new f(h.buffer,h.byteOffset+c*h.BYTES_PER_ELEMENT,a((k===void 0?l:t(k,l))-c))}return y}())},81664:function(I,r,n){"use strict";var e=n(40224),a=n(70918),t=n(72951),o=n(41746),m=n(77713),V=e.Int8Array,y=t.aTypedArray,S=t.exportTypedArrayMethod,k=[].toLocaleString,h=!!V&&o(function(){k.call(new V(1))}),l=o(function(){return[1,2].toLocaleString()!==new V([1,2]).toLocaleString()})||!o(function(){V.prototype.toLocaleString.call([1,2])});S("toLocaleString",function(){function c(){return a(k,h?m(y(this)):y(this),m(arguments))}return c}(),l)},35579:function(I,r,n){"use strict";var e=n(72951).exportTypedArrayMethod,a=n(41746),t=n(40224),o=n(18161),m=t.Uint8Array,V=m&&m.prototype||{},y=[].toString,S=o([].join);a(function(){y.call({})})&&(y=function(){function h(){return S(this)}return h}());var k=V.toString!==y;e("toString",y,k)},99683:function(I,r,n){"use strict";var e=n(12218);e("Uint16",function(a){return function(){function t(o,m,V){return a(this,o,m,V)}return t}()})},80941:function(I,r,n){"use strict";var e=n(12218);e("Uint32",function(a){return function(){function t(o,m,V){return a(this,o,m,V)}return t}()})},45338:function(I,r,n){"use strict";var e=n(12218);e("Uint8",function(a){return function(){function t(o,m,V){return a(this,o,m,V)}return t}()})},40737:function(I,r,n){"use strict";var e=n(12218);e("Uint8",function(a){return function(){function t(o,m,V){return a(this,o,m,V)}return t}()},!0)},74283:function(I,r,n){"use strict";var e=n(56255),a=n(40224),t=n(18161),o=n(13648),m=n(29126),V=n(93439),y=n(32920),S=n(56831),k=n(35086).enforce,h=n(41746),l=n(90777),c=Object,f=Array.isArray,d=c.isExtensible,i=c.isFrozen,s=c.isSealed,u=c.freeze,C=c.seal,v=!a.ActiveXObject&&"ActiveXObject"in a,g,p=function(E){return function(){function M(){return E(this,arguments.length?arguments[0]:void 0)}return M}()},N=V("WeakMap",p,y),b=N.prototype,B=t(b.set),L=function(){return e&&h(function(){var E=u([]);return B(new N,E,1),!i(E)})};if(l)if(v){g=y.getConstructor(p,"WeakMap",!0),m.enable();var w=t(b.delete),T=t(b.has),x=t(b.get);o(b,{delete:function(){function A(E){if(S(E)&&!d(E)){var M=k(this);return M.frozen||(M.frozen=new g),w(this,E)||M.frozen.delete(E)}return w(this,E)}return A}(),has:function(){function A(E){if(S(E)&&!d(E)){var M=k(this);return M.frozen||(M.frozen=new g),T(this,E)||M.frozen.has(E)}return T(this,E)}return A}(),get:function(){function A(E){if(S(E)&&!d(E)){var M=k(this);return M.frozen||(M.frozen=new g),T(this,E)?x(this,E):M.frozen.get(E)}return x(this,E)}return A}(),set:function(){function A(E,M){if(S(E)&&!d(E)){var D=k(this);D.frozen||(D.frozen=new g),T(this,E)?B(this,E,M):D.frozen.set(E,M)}else B(this,E,M);return this}return A}()})}else L()&&o(b,{set:function(){function A(E,M){var D;return f(E)&&(i(E)?D=u:s(E)&&(D=C)),B(this,E,M),D&&D(E),this}return A}()})},84033:function(I,r,n){"use strict";n(74283)},82389:function(I,r,n){"use strict";var e=n(93439),a=n(32920);e("WeakSet",function(t){return function(){function o(){return t(this,arguments.length?arguments[0]:void 0)}return o}()},a)},71863:function(I,r,n){"use strict";n(82389)},73993:function(I,r,n){"use strict";var e=n(77549),a=n(40224),t=n(91314).clear;e({global:!0,bind:!0,enumerable:!0,forced:a.clearImmediate!==t},{clearImmediate:t})},55457:function(I,r,n){"use strict";n(73993),n(72532)},57399:function(I,r,n){"use strict";var e=n(77549),a=n(40224),t=n(27150),o=n(97361),m=n(22789),V=n(41746),y=n(14141),S=V(function(){return y&&Object.getOwnPropertyDescriptor(a,"queueMicrotask").value.length!==1});e({global:!0,enumerable:!0,dontCallGetSet:!0,forced:S},{queueMicrotask:function(){function k(h){m(arguments.length,1),t(o(h))}return k}()})},72532:function(I,r,n){"use strict";var e=n(77549),a=n(40224),t=n(91314).set,o=n(83827),m=a.setImmediate?o(t,!1):t;e({global:!0,bind:!0,enumerable:!0,forced:a.setImmediate!==m},{setImmediate:m})},48112:function(I,r,n){"use strict";var e=n(77549),a=n(40224),t=n(83827),o=t(a.setInterval,!0);e({global:!0,bind:!0,forced:a.setInterval!==o},{setInterval:o})},82274:function(I,r,n){"use strict";var e=n(77549),a=n(40224),t=n(83827),o=t(a.setTimeout,!0);e({global:!0,bind:!0,forced:a.setTimeout!==o},{setTimeout:o})},65836:function(I,r,n){"use strict";n(48112),n(82274)},50719:function(I){"use strict";/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */var r,n=[],e=[],a=function(){if(0)var k;window.onunload=function(){return r&&r.close()}},t=function(k){return e.push(k)},o=function(k){var p=[],l=function(i){return typeof i=="number"&&!Number.isFinite(i)?{__number__:String(i)}:typeof i=="undefined"?{__undefined__:!0}:i},c=function(i,s){if(typeof s=="object"){if(s===null)return s;if(p.includes(s))return"[circular ref]";p.push(s);var d=s instanceof Error||s.code&&s.message&&s.message.includes("Error");return d?{__error__:!0,string:String(s),stack:s.stack}:Array.isArray(s)?s.map(l):s}return l(s)},f=JSON.stringify(k,c);return p=null,f},m=function(k){if(0)var p,l,c},N=function(k,p){if(0)var l,c,f},y=function(){};L.exports={subscribe:t,sendMessage:m,sendLogEntry:N,setupHotReloading:y}}},bt={};function Y(L){var r=bt[L];if(r!==void 0)return r.exports;var n=bt[L]={exports:{}};return $t[L](n,n.exports,Y),n.exports}(function(){Y.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch(L){if(typeof window=="object")return window}}()})(),function(){Y.o=function(L,r){return Object.prototype.hasOwnProperty.call(L,r)}}();var In={};(function(){"use strict";Y(99414),Y(27718),Y(46951),Y(86042),Y(93267),Y(41664),Y(48965),Y(44844),Y(25030),Y(96454),Y(77564),Y(44875),Y(77904),Y(35723),Y(65755),Y(35496),Y(76604),Y(24974),Y(6297),Y(5364),Y(35173),Y(16576),Y(88707),Y(21508),Y(86339),Y(81850),Y(98661),Y(13431),Y(65809),Y(8611),Y(97246),Y(48741),Y(90446),Y(509),Y(61902),Y(96149),Y(66617),Y(99883),Y(56855),Y(67869),Y(8291),Y(42811),Y(97824),Y(70238),Y(21664),Y(57348),Y(98878),Y(4624),Y(96097),Y(45022),Y(79155),Y(53397),Y(52037),Y(21698),Y(20509),Y(9530),Y(17814),Y(37812),Y(86551),Y(10940),Y(73763),Y(3372),Y(51629),Y(69727),Y(27482),Y(7108),Y(4115),Y(63953),Y(71377),Y(63956),Y(90037),Y(46818),Y(26681),Y(83646),Y(28876),Y(36385),Y(84295),Y(59785),Y(8846),Y(50237),Y(6436),Y(68286),Y(23940),Y(82425),Y(82118),Y(7419),Y(42409),Y(29002),Y(85795),Y(74722),Y(5300),Y(85684),Y(36014),Y(98551),Y(66288),Y(26862),Y(78686),Y(36789),Y(82707),Y(69740),Y(87847),Y(54789),Y(49626),Y(67660),Y(43619),Y(42777),Y(13045),Y(38664),Y(29650),Y(58176),Y(35286),Y(13313),Y(26528),Y(54959),Y(78129),Y(54412),Y(82427),Y(8390),Y(68260),Y(86508),Y(65971),Y(17134),Y(18972),Y(78623),Y(60149),Y(56380),Y(72792),Y(60631),Y(25168),Y(85177),Y(95880),Y(59978),Y(96360),Y(43108),Y(37801),Y(3044),Y(48432),Y(54564),Y(58179),Y(68164),Y(58880),Y(54465),Y(97327),Y(19114),Y(23797),Y(17337),Y(53713),Y(84469),Y(11121),Y(93073),Y(50800),Y(36),Y(30519),Y(33547),Y(53426),Y(32031),Y(13153),Y(21953),Y(83560),Y(63465),Y(98998),Y(96227),Y(15483),Y(86829),Y(68265),Y(36030),Y(32791),Y(25888),Y(35718),Y(45338),Y(40737),Y(99683),Y(80941),Y(84805),Y(79305),Y(71573),Y(47910),Y(48447),Y(99662),Y(57371),Y(68220),Y(15745),Y(43398),Y(97722),Y(79088),Y(6075),Y(46896),Y(47145),Y(72606),Y(349),Y(28292),Y(54890),Y(66368),Y(74188),Y(81976),Y(78651),Y(81664),Y(35579),Y(84033),Y(71863),Y(55457),Y(57399),Y(65836),Y(55776),Y(16666)})(),function(){"use strict";var L=Y(96524);Y(21965),Y(28169),Y(36487),Y(35739),Y(33631),Y(74785),Y(6895),Y(7455),Y(58823),Y(49265),Y(55350),Y(45503),Y(36557),Y(70555),Y(3251);var r=Y(63560),n=Y(50719),e=Y(39952),a=Y(29320),t=Y(7570),o=Y(98008),m=Y(92700),N;/** + */var r,n=[],e=[],a=function(){if(0)var k;window.onunload=function(){return r&&r.close()}},t=function(k){return e.push(k)},o=function(k){var h=[],l=function(i){return typeof i=="number"&&!Number.isFinite(i)?{__number__:String(i)}:typeof i=="undefined"?{__undefined__:!0}:i},c=function(i,s){if(typeof s=="object"){if(s===null)return s;if(h.includes(s))return"[circular ref]";h.push(s);var u=s instanceof Error||s.code&&s.message&&s.message.includes("Error");return u?{__error__:!0,string:String(s),stack:s.stack}:Array.isArray(s)?s.map(l):s}return l(s)},f=JSON.stringify(k,c);return h=null,f},m=function(k){if(0)var h,l,c},V=function(k,h){if(0)var l,c,f},y=function(){};I.exports={subscribe:t,sendMessage:m,sendLogEntry:V,setupHotReloading:y}}},bt={};function Y(I){var r=bt[I];if(r!==void 0)return r.exports;var n=bt[I]={exports:{}};return $t[I](n,n.exports,Y),n.exports}(function(){Y.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch(I){if(typeof window=="object")return window}}()})(),function(){Y.o=function(I,r){return Object.prototype.hasOwnProperty.call(I,r)}}();var Ln={};(function(){"use strict";Y(99414),Y(27718),Y(46951),Y(86042),Y(93267),Y(41664),Y(48965),Y(44844),Y(25030),Y(96454),Y(77564),Y(44875),Y(77904),Y(35723),Y(65755),Y(35496),Y(76604),Y(24974),Y(6297),Y(5364),Y(35173),Y(16576),Y(88707),Y(21508),Y(86339),Y(81850),Y(98661),Y(13431),Y(65809),Y(8611),Y(97246),Y(48741),Y(90446),Y(509),Y(61902),Y(96149),Y(66617),Y(99883),Y(56855),Y(67869),Y(8291),Y(42811),Y(97824),Y(70238),Y(21664),Y(57348),Y(98878),Y(4624),Y(96097),Y(45022),Y(79155),Y(53397),Y(52037),Y(21698),Y(20509),Y(9530),Y(17814),Y(37812),Y(86551),Y(10940),Y(73763),Y(3372),Y(51629),Y(69727),Y(27482),Y(7108),Y(4115),Y(63953),Y(71377),Y(63956),Y(90037),Y(46818),Y(26681),Y(83646),Y(28876),Y(36385),Y(84295),Y(59785),Y(8846),Y(50237),Y(6436),Y(68286),Y(23940),Y(82425),Y(82118),Y(7419),Y(42409),Y(29002),Y(85795),Y(74722),Y(5300),Y(85684),Y(36014),Y(98551),Y(66288),Y(26862),Y(78686),Y(36789),Y(82707),Y(69740),Y(87847),Y(54789),Y(49626),Y(67660),Y(43619),Y(42777),Y(13045),Y(38664),Y(29650),Y(58176),Y(35286),Y(13313),Y(26528),Y(54959),Y(78129),Y(54412),Y(82427),Y(8390),Y(68260),Y(86508),Y(65971),Y(17134),Y(18972),Y(78623),Y(60149),Y(56380),Y(72792),Y(60631),Y(25168),Y(85177),Y(95880),Y(59978),Y(96360),Y(43108),Y(37801),Y(3044),Y(48432),Y(54564),Y(58179),Y(68164),Y(58880),Y(54465),Y(97327),Y(19114),Y(23797),Y(17337),Y(53713),Y(84469),Y(11121),Y(93073),Y(50800),Y(36),Y(30519),Y(33547),Y(53426),Y(32031),Y(13153),Y(21953),Y(83560),Y(63465),Y(98998),Y(96227),Y(15483),Y(86829),Y(68265),Y(36030),Y(32791),Y(25888),Y(35718),Y(45338),Y(40737),Y(99683),Y(80941),Y(84805),Y(79305),Y(71573),Y(47910),Y(48447),Y(99662),Y(57371),Y(68220),Y(15745),Y(43398),Y(97722),Y(79088),Y(6075),Y(46896),Y(47145),Y(72606),Y(349),Y(28292),Y(54890),Y(66368),Y(74188),Y(81976),Y(78651),Y(81664),Y(35579),Y(84033),Y(71863),Y(55457),Y(57399),Y(65836),Y(55776),Y(16666)})(),function(){"use strict";var I=Y(96524);Y(21965),Y(28169),Y(36487),Y(35739),Y(33631),Y(74785),Y(6895),Y(7455),Y(58823),Y(49265),Y(55350),Y(45503),Y(36557),Y(70555),Y(3251);var r=Y(63560),n=Y(50719),e=Y(39952),a=Y(29320),t=Y(7570),o=Y(98008),m=Y(92700),V;/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */r.perf.mark("inception",(N=window.performance)==null||(N=N.timing)==null?void 0:N.navigationStart),r.perf.mark("init");var y=(0,o.configureStore)(),S=(0,t.createRenderer)(function(){var p=Y(91807),l=p.getRoutedComponent,c=l(y);return(0,L.createComponentVNode)(2,o.StoreProvider,{store:y,children:(0,L.createComponentVNode)(2,c)})}),k=function p(){if(document.readyState==="loading"){document.addEventListener("DOMContentLoaded",p);return}(0,m.setupGlobalEvents)(),(0,e.setupHotKeys)(),(0,a.captureExternalLinks)(),y.subscribe(S),Byond.subscribe(function(l,c){return y.dispatch({type:l,payload:c})})};k()}()})();})(); + */r.perf.mark("inception",(V=window.performance)==null||(V=V.timing)==null?void 0:V.navigationStart),r.perf.mark("init");var y=(0,o.configureStore)(),S=(0,t.createRenderer)(function(){var h=Y(91807),l=h.getRoutedComponent,c=l(y);return(0,I.createComponentVNode)(2,o.StoreProvider,{store:y,children:(0,I.createComponentVNode)(2,c)})}),k=function h(){if(document.readyState==="loading"){document.addEventListener("DOMContentLoaded",h);return}(0,m.setupGlobalEvents)(),(0,e.setupHotKeys)(),(0,a.captureExternalLinks)(),y.subscribe(S),Byond.subscribe(function(l,c){return y.dispatch({type:l,payload:c})})};k()}()})();})();