diff --git a/_maps/map_files/stations/boxstation.dmm b/_maps/map_files/stations/boxstation.dmm index d560ad2d9f20..f3e22d782160 100644 --- a/_maps/map_files/stations/boxstation.dmm +++ b/_maps/map_files/stations/boxstation.dmm @@ -28434,7 +28434,6 @@ }, /area/station/hallway/secondary/exit) "bNx" = ( -/obj/machinery/alarm/directional/south, /obj/machinery/light, /turf/simulated/floor/plasteel{ dir = 8; @@ -52655,10 +52654,11 @@ }, /obj/machinery/door/airlock/glass, /obj/effect/mapping_helpers/airlock/autoname, -/obj/effect/mapping_helpers/airlock/access/all/security/doors, /obj/effect/mapping_helpers/airlock/polarized{ id = "Courtroom" }, +/obj/effect/mapping_helpers/airlock/access/any/security/court, +/obj/effect/mapping_helpers/airlock/access/any/security/doors, /turf/simulated/floor/wood, /area/station/legal/courtroom/gallery) "eba" = ( @@ -58946,6 +58946,10 @@ /obj/structure/disposalpipe/segment, /turf/simulated/floor/plasteel, /area/station/maintenance/aft) +"gTO" = ( +/obj/machinery/alarm/directional/east, +/turf/simulated/floor/plasteel, +/area/station/hallway/primary/central/sw) "gTV" = ( /obj/structure/fermenting_barrel, /turf/simulated/floor/wood{ @@ -60084,10 +60088,11 @@ }, /obj/machinery/door/airlock/glass, /obj/effect/mapping_helpers/airlock/autoname, -/obj/effect/mapping_helpers/airlock/access/all/security/doors, /obj/effect/mapping_helpers/airlock/polarized{ id = "Courtroom" }, +/obj/effect/mapping_helpers/airlock/access/any/security/court, +/obj/effect/mapping_helpers/airlock/access/any/security/doors, /turf/simulated/floor/wood, /area/station/legal/courtroom/gallery) "hyk" = ( @@ -72474,10 +72479,6 @@ }, /turf/simulated/floor/engine/xenobio, /area/station/science/xenobiology) -"nKN" = ( -/obj/machinery/alarm/directional/south, -/turf/simulated/floor/plasteel, -/area/station/hallway/primary/central/sw) "nKO" = ( /obj/structure/table, /obj/item/reagent_containers/spray/pestspray, @@ -94003,12 +94004,13 @@ name = "Courtroom Maintenance"; security_level = 1 }, -/obj/effect/mapping_helpers/airlock/access/all/security/doors, /obj/structure/cable{ d1 = 4; d2 = 8; icon_state = "4-8" }, +/obj/effect/mapping_helpers/airlock/access/any/security/court, +/obj/effect/mapping_helpers/airlock/access/any/security/doors, /turf/simulated/floor/plating, /area/station/maintenance/fpmaint) "yhP" = ( @@ -119382,7 +119384,7 @@ bTy bYR tpM bYX -bTy +gTO caw bTy cfq @@ -119900,7 +119902,7 @@ hwK bSi cdT cok -nKN +bTy cgS jNe clR diff --git a/_maps/map_files/stations/cerestation.dmm b/_maps/map_files/stations/cerestation.dmm index 7d03857fb875..2967b9133f04 100644 --- a/_maps/map_files/stations/cerestation.dmm +++ b/_maps/map_files/stations/cerestation.dmm @@ -38590,10 +38590,11 @@ /obj/machinery/door/airlock/glass{ name = "Courtroom" }, -/obj/effect/mapping_helpers/airlock/access/all/security/doors, /obj/effect/mapping_helpers/airlock/polarized{ id = "Courtroom" }, +/obj/effect/mapping_helpers/airlock/access/any/security/doors, +/obj/effect/mapping_helpers/airlock/access/any/security/court, /turf/simulated/floor/carpet, /area/station/security/processing) "frV" = ( @@ -40605,13 +40606,14 @@ "gck" = ( /obj/machinery/door/airlock/glass, /obj/effect/mapping_helpers/airlock/autoname, -/obj/effect/mapping_helpers/airlock/access/all/security/doors, /obj/effect/mapping_helpers/airlock/polarized{ id = "Courtroom" }, /obj/machinery/atmospherics/pipe/simple/hidden/supply, /obj/machinery/atmospherics/pipe/simple/hidden/scrubbers, /obj/machinery/door/firedoor, +/obj/effect/mapping_helpers/airlock/access/any/security/doors, +/obj/effect/mapping_helpers/airlock/access/any/security/court, /turf/simulated/floor/wood, /area/station/legal/courtroom) "gcN" = ( @@ -51427,11 +51429,12 @@ "jAr" = ( /obj/machinery/door/airlock/glass, /obj/effect/mapping_helpers/airlock/autoname, -/obj/effect/mapping_helpers/airlock/access/all/security/doors, /obj/effect/mapping_helpers/airlock/polarized{ id = "Courtroom" }, /obj/machinery/door/firedoor, +/obj/effect/mapping_helpers/airlock/access/any/security/doors, +/obj/effect/mapping_helpers/airlock/access/any/security/court, /turf/simulated/floor/wood, /area/station/legal/courtroom) "jAy" = ( @@ -72568,7 +72571,6 @@ /obj/machinery/light{ dir = 1 }, -/obj/machinery/alarm/directional/north, /obj/structure/cable{ d1 = 2; d2 = 8; diff --git a/_maps/map_files/stations/deltastation.dmm b/_maps/map_files/stations/deltastation.dmm index fc21356c9717..69929d860a7e 100644 --- a/_maps/map_files/stations/deltastation.dmm +++ b/_maps/map_files/stations/deltastation.dmm @@ -18,7 +18,7 @@ icon_state = "1-2" }, /turf/space, -/area/station/maintenance/auxsolarstarboard) +/area/station/engineering/solar/auxstarboard) "abD" = ( /obj/structure/railing{ dir = 1 @@ -58,7 +58,7 @@ /turf/simulated/floor/plasteel/airless{ icon_state = "solarpanel" }, -/area/station/maintenance/auxsolarstarboard) +/area/station/engineering/solar/auxstarboard) "acf" = ( /obj/structure/lattice/catwalk, /obj/structure/cable{ @@ -72,7 +72,7 @@ icon_state = "2-4" }, /turf/space, -/area/station/maintenance/auxsolarstarboard) +/area/station/engineering/solar/auxstarboard) "acg" = ( /obj/structure/lattice/catwalk, /obj/structure/cable{ @@ -91,7 +91,7 @@ icon_state = "4-8" }, /turf/space, -/area/station/maintenance/auxsolarstarboard) +/area/station/engineering/solar/auxstarboard) "ach" = ( /obj/structure/lattice/catwalk, /obj/structure/cable{ @@ -99,12 +99,12 @@ icon_state = "0-8" }, /turf/space, -/area/station/maintenance/auxsolarstarboard) +/area/station/engineering/solar/auxstarboard) "aci" = ( /obj/structure/lattice/catwalk, /obj/structure/cable, /turf/space, -/area/station/maintenance/auxsolarstarboard) +/area/station/engineering/solar/auxstarboard) "acj" = ( /obj/structure/lattice/catwalk, /obj/structure/cable{ @@ -112,7 +112,7 @@ icon_state = "0-4" }, /turf/space, -/area/station/maintenance/auxsolarstarboard) +/area/station/engineering/solar/auxstarboard) "aco" = ( /obj/structure/lattice/catwalk, /obj/structure/cable{ @@ -131,7 +131,7 @@ icon_state = "4-8" }, /turf/space, -/area/station/maintenance/auxsolarstarboard) +/area/station/engineering/solar/auxstarboard) "acp" = ( /obj/machinery/power/tracker, /obj/structure/cable{ @@ -141,7 +141,7 @@ /turf/simulated/floor/plasteel/airless{ icon_state = "solarpanel" }, -/area/station/maintenance/auxsolarstarboard) +/area/station/engineering/solar/auxstarboard) "acC" = ( /obj/effect/spawner/window/reinforced, /turf/simulated/floor/plating, @@ -159,7 +159,7 @@ icon_state = "2-8" }, /turf/space, -/area/station/maintenance/auxsolarstarboard) +/area/station/engineering/solar/auxstarboard) "acF" = ( /obj/structure/lattice/catwalk, /turf/space, @@ -172,7 +172,7 @@ /turf/simulated/floor/plasteel/airless{ icon_state = "solarpanel" }, -/area/station/maintenance/auxsolarstarboard) +/area/station/engineering/solar/auxstarboard) "acJ" = ( /obj/docking_port/stationary{ dheight = 9; @@ -212,15 +212,7 @@ "adg" = ( /obj/structure/lattice/catwalk, /turf/space, -/area/station/maintenance/auxsolarstarboard) -"adh" = ( -/obj/structure/lattice/catwalk, -/obj/structure/cable{ - d2 = 8; - icon_state = "0-8" - }, -/turf/space, -/area/space/nearstation) +/area/station/engineering/solar/auxstarboard) "ado" = ( /obj/item/radio/intercom{ name = "south bump"; @@ -258,14 +250,6 @@ }, /turf/simulated/floor/mineral/titanium/blue, /area/shuttle/pod_1) -"adz" = ( -/obj/structure/lattice/catwalk, -/obj/structure/cable{ - d2 = 4; - icon_state = "0-4" - }, -/turf/space, -/area/space/nearstation) "adL" = ( /obj/structure/shuttle/engine/propulsion/burst, /turf/simulated/wall/mineral/titanium, @@ -2558,7 +2542,7 @@ /turf/simulated/floor/plasteel/airless{ icon_state = "solarpanel" }, -/area/station/maintenance/auxsolarport) +/area/station/engineering/solar/auxport) "apG" = ( /turf/simulated/wall, /area/station/maintenance/electrical_shop) @@ -3532,7 +3516,7 @@ /turf/simulated/floor/plasteel/airless{ icon_state = "solarpanel" }, -/area/station/maintenance/auxsolarport) +/area/station/engineering/solar/auxport) "asi" = ( /obj/machinery/atmospherics/pipe/manifold/hidden/supply{ dir = 8 @@ -3846,7 +3830,7 @@ icon_state = "1-4" }, /turf/space, -/area/station/maintenance/auxsolarport) +/area/station/engineering/solar/auxport) "asW" = ( /obj/machinery/atmospherics/pipe/simple/hidden/scrubbers{ dir = 4 @@ -3891,7 +3875,7 @@ icon_state = "4-8" }, /turf/space, -/area/station/maintenance/auxsolarport) +/area/station/engineering/solar/auxport) "atb" = ( /obj/structure/lattice/catwalk, /obj/structure/cable{ @@ -3899,12 +3883,12 @@ icon_state = "0-8" }, /turf/space, -/area/station/maintenance/auxsolarport) +/area/station/engineering/solar/auxport) "atc" = ( /obj/structure/lattice/catwalk, /obj/structure/cable, /turf/space, -/area/station/maintenance/auxsolarport) +/area/station/engineering/solar/auxport) "atd" = ( /turf/simulated/wall/r_wall, /area/station/engineering/controlroom) @@ -4155,7 +4139,7 @@ icon_state = "0-4" }, /turf/space, -/area/station/maintenance/auxsolarport) +/area/station/engineering/solar/auxport) "atL" = ( /obj/structure/lattice/catwalk, /obj/structure/cable{ @@ -4174,7 +4158,7 @@ icon_state = "4-8" }, /turf/space, -/area/station/maintenance/auxsolarport) +/area/station/engineering/solar/auxport) "atM" = ( /obj/structure/cable{ d1 = 4; @@ -4245,7 +4229,7 @@ icon_state = "2-8" }, /turf/space, -/area/station/maintenance/auxsolarport) +/area/station/engineering/solar/auxport) "atV" = ( /obj/structure/chair/stool{ dir = 1 @@ -4289,11 +4273,11 @@ /turf/simulated/floor/plasteel/airless{ icon_state = "solarpanel" }, -/area/station/maintenance/auxsolarport) +/area/station/engineering/solar/auxport) "atZ" = ( /obj/structure/lattice/catwalk, /turf/space, -/area/station/maintenance/auxsolarport) +/area/station/engineering/solar/auxport) "aua" = ( /obj/effect/decal/cleanable/dirt, /turf/simulated/floor/plasteel{ @@ -8153,7 +8137,7 @@ icon_state = "0-2" }, /turf/space, -/area/station/maintenance/auxsolarport) +/area/station/engineering/solar/auxport) "aEc" = ( /obj/structure/lattice/catwalk, /obj/structure/cable{ @@ -8162,7 +8146,7 @@ icon_state = "1-2" }, /turf/space, -/area/station/maintenance/auxsolarport) +/area/station/engineering/solar/auxport) "aEe" = ( /obj/machinery/light{ dir = 8 @@ -52052,7 +52036,7 @@ icon_state = "0-8" }, /turf/space, -/area/station/maintenance/starboardsolar) +/area/station/engineering/solar/starboard) "cSO" = ( /obj/structure/rack, /obj/item/storage/belt/medical, @@ -52324,7 +52308,7 @@ "cTN" = ( /obj/structure/lattice/catwalk, /turf/space, -/area/station/maintenance/starboardsolar) +/area/station/engineering/solar/starboard) "cTO" = ( /obj/structure/chair/office/light{ dir = 4 @@ -53559,7 +53543,7 @@ icon_state = "1-2" }, /turf/space, -/area/station/maintenance/starboardsolar) +/area/station/engineering/solar/starboard) "cZb" = ( /obj/machinery/sleeper{ dir = 4 @@ -53908,7 +53892,7 @@ /turf/simulated/floor/plasteel/airless{ icon_state = "solarpanel" }, -/area/station/maintenance/starboardsolar) +/area/station/engineering/solar/starboard) "dal" = ( /obj/structure/cable{ d1 = 1; @@ -54033,7 +54017,7 @@ icon_state = "2-4" }, /turf/space, -/area/station/maintenance/starboardsolar) +/area/station/engineering/solar/starboard) "daA" = ( /obj/machinery/atmospherics/pipe/simple/hidden/supply, /obj/machinery/atmospherics/pipe/simple/hidden/scrubbers, @@ -54057,7 +54041,7 @@ icon_state = "4-8" }, /turf/space, -/area/station/maintenance/starboardsolar) +/area/station/engineering/solar/starboard) "daD" = ( /obj/effect/spawner/random_spawners/wall_rusted_always, /turf/simulated/wall, @@ -54087,7 +54071,7 @@ icon_state = "0-4" }, /turf/space, -/area/station/maintenance/starboardsolar) +/area/station/engineering/solar/starboard) "daI" = ( /obj/structure/disposalpipe/segment, /turf/simulated/floor/plasteel{ @@ -54165,7 +54149,7 @@ icon_state = "4-8" }, /turf/space, -/area/station/maintenance/starboardsolar) +/area/station/engineering/solar/starboard) "daW" = ( /turf/simulated/floor/plasteel{ dir = 4; @@ -54186,7 +54170,7 @@ /turf/simulated/floor/plasteel/airless{ icon_state = "solarpanel" }, -/area/station/maintenance/starboardsolar) +/area/station/engineering/solar/starboard) "dbd" = ( /obj/structure/table/glass, /obj/item/storage/box/beakers{ @@ -54211,7 +54195,7 @@ /obj/structure/lattice/catwalk, /obj/structure/cable, /turf/space, -/area/station/maintenance/starboardsolar) +/area/station/engineering/solar/starboard) "dbp" = ( /obj/effect/decal/cleanable/dirt, /turf/simulated/floor/plating, @@ -62351,7 +62335,7 @@ icon_state = "2-8" }, /turf/space, -/area/station/maintenance/starboardsolar) +/area/station/engineering/solar/starboard) "dOO" = ( /turf/simulated/floor/plating, /area/station/maintenance/apmaint) @@ -62843,7 +62827,7 @@ "dQB" = ( /obj/structure/lattice/catwalk, /turf/space, -/area/station/maintenance/portsolar) +/area/station/engineering/solar/port) "dQC" = ( /obj/machinery/field/generator{ anchored = 1; @@ -63734,7 +63718,7 @@ /turf/simulated/floor/plasteel/airless{ icon_state = "solarpanel" }, -/area/station/maintenance/portsolar) +/area/station/engineering/solar/port) "dTY" = ( /obj/structure/closet/coffin, /obj/machinery/light/small{ @@ -64079,7 +64063,7 @@ /turf/simulated/floor/plasteel/airless{ icon_state = "solarpanel" }, -/area/station/maintenance/portsolar) +/area/station/engineering/solar/port) "dVo" = ( /obj/item/kirbyplants, /obj/structure/cable{ @@ -64150,7 +64134,7 @@ /turf/simulated/floor/plasteel/airless{ icon_state = "solarpanel" }, -/area/station/maintenance/portsolar) +/area/station/engineering/solar/port) "dWf" = ( /obj/docking_port/stationary{ dheight = 9; @@ -64697,7 +64681,7 @@ icon_state = "0-4" }, /turf/space, -/area/station/maintenance/portsolar) +/area/station/engineering/solar/port) "dYJ" = ( /obj/structure/lattice/catwalk, /obj/structure/cable{ @@ -64706,7 +64690,7 @@ icon_state = "4-8" }, /turf/space, -/area/station/maintenance/portsolar) +/area/station/engineering/solar/port) "dYL" = ( /obj/structure/lattice/catwalk, /obj/structure/cable{ @@ -64720,7 +64704,7 @@ icon_state = "1-4" }, /turf/space, -/area/station/maintenance/portsolar) +/area/station/engineering/solar/port) "dYM" = ( /obj/structure/lattice/catwalk, /obj/structure/cable{ @@ -64739,7 +64723,7 @@ icon_state = "4-8" }, /turf/space, -/area/station/maintenance/portsolar) +/area/station/engineering/solar/port) "dYN" = ( /obj/structure/lattice/catwalk, /obj/structure/cable{ @@ -64747,7 +64731,7 @@ icon_state = "0-8" }, /turf/space, -/area/station/maintenance/portsolar) +/area/station/engineering/solar/port) "dYO" = ( /obj/structure/lattice/catwalk, /obj/structure/cable{ @@ -64766,7 +64750,7 @@ icon_state = "4-8" }, /turf/space, -/area/station/maintenance/portsolar) +/area/station/engineering/solar/port) "dYP" = ( /obj/structure/lattice/catwalk, /obj/structure/cable{ @@ -64780,7 +64764,7 @@ icon_state = "2-8" }, /turf/space, -/area/station/maintenance/portsolar) +/area/station/engineering/solar/port) "dYR" = ( /obj/structure/lattice/catwalk, /obj/structure/cable{ @@ -64788,7 +64772,7 @@ icon_state = "0-2" }, /turf/space, -/area/station/maintenance/portsolar) +/area/station/engineering/solar/port) "dYS" = ( /obj/structure/lattice/catwalk, /obj/structure/cable{ @@ -64797,7 +64781,7 @@ icon_state = "1-2" }, /turf/space, -/area/station/maintenance/portsolar) +/area/station/engineering/solar/port) "dYT" = ( /obj/structure/window/reinforced{ dir = 4 @@ -65802,7 +65786,7 @@ icon_state = "0-2" }, /turf/space, -/area/station/maintenance/starboardsolar) +/area/station/engineering/solar/starboard) "exy" = ( /turf/simulated/floor/plasteel{ dir = 8; @@ -80304,10 +80288,11 @@ /obj/machinery/door/airlock{ name = "Court" }, -/obj/effect/mapping_helpers/airlock/access/all/security/iaa, /obj/machinery/atmospherics/pipe/simple/hidden/supply{ dir = 4 }, +/obj/effect/mapping_helpers/airlock/access/any/security/court, +/obj/effect/mapping_helpers/airlock/access/any/security/doors, /turf/simulated/floor/plasteel/dark, /area/station/legal/courtroom) "nkC" = ( @@ -84937,13 +84922,14 @@ /obj/machinery/door/airlock{ name = "Court" }, -/obj/effect/mapping_helpers/airlock/access/all/security/iaa, /obj/machinery/atmospherics/pipe/simple/hidden/supply{ dir = 4 }, /obj/machinery/atmospherics/pipe/simple/hidden/scrubbers{ dir = 4 }, +/obj/effect/mapping_helpers/airlock/access/any/security/court, +/obj/effect/mapping_helpers/airlock/access/any/security/doors, /turf/simulated/floor/plasteel, /area/station/legal/courtroom) "pTN" = ( @@ -86054,7 +86040,7 @@ icon_state = "0-8" }, /turf/space, -/area/station/maintenance/auxsolarstarboard) +/area/station/engineering/solar/auxstarboard) "qHK" = ( /obj/machinery/door/firedoor, /obj/machinery/atmospherics/pipe/simple/hidden/scrubbers{ @@ -87255,7 +87241,7 @@ /turf/simulated/floor/plasteel/airless{ icon_state = "solarpanel" }, -/area/station/maintenance/starboardsolar) +/area/station/engineering/solar/starboard) "rod" = ( /turf/simulated/floor/plasteel/white, /area/station/medical/cryo) @@ -90534,7 +90520,7 @@ icon_state = "4-8" }, /turf/space, -/area/station/maintenance/starboardsolar) +/area/station/engineering/solar/starboard) "sWn" = ( /obj/machinery/atmospherics/pipe/simple/hidden/scrubbers, /obj/machinery/atmospherics/pipe/simple/hidden/supply, @@ -97407,7 +97393,8 @@ /obj/machinery/door/airlock{ name = "Court" }, -/obj/effect/mapping_helpers/airlock/access/all/security/iaa, +/obj/effect/mapping_helpers/airlock/access/any/security/court, +/obj/effect/mapping_helpers/airlock/access/any/security/doors, /turf/simulated/floor/plasteel, /area/station/legal/courtroom) "xaI" = ( @@ -146493,7 +146480,7 @@ acg acG aaa aaa -adh +ach aaa aaa ace @@ -146750,7 +146737,7 @@ ach aaa aaa aaa -acF +adg aaa aaa aaa @@ -147264,7 +147251,7 @@ acj aaa aaa aaa -acF +adg aaa aaa aaa @@ -147521,7 +147508,7 @@ aco acG aaa aaa -adz +acj aaa aaa ace diff --git a/code/__DEFINES/access_defines.dm b/code/__DEFINES/access_defines.dm index 10443a7316cf..10b3c80ad656 100644 --- a/code/__DEFINES/access_defines.dm +++ b/code/__DEFINES/access_defines.dm @@ -1,113 +1,90 @@ -#define ACCESS_SECURITY 1 // Security equipment -#define ACCESS_BRIG 2 // Brig timers and permabrig -#define ACCESS_ARMORY 3 -#define ACCESS_FORENSICS_LOCKERS 4 -#define ACCESS_MEDICAL 5 -#define ACCESS_MORGUE 6 -#define ACCESS_TOX 7 -#define ACCESS_TOX_STORAGE 8 -#define ACCESS_GENETICS 9 -#define ACCESS_ENGINE 10 -#define ACCESS_ENGINE_EQUIP 11 -#define ACCESS_MAINT_TUNNELS 12 -#define ACCESS_EXTERNAL_AIRLOCKS 13 -#define ACCESS_EMERGENCY_STORAGE 14 -#define ACCESS_CHANGE_IDS 15 -#define ACCESS_AI_UPLOAD 16 -#define ACCESS_TELEPORTER 17 -#define ACCESS_EVA 18 -#define ACCESS_HEADS 19 -#define ACCESS_CAPTAIN 20 -#define ACCESS_ALL_PERSONAL_LOCKERS 21 -#define ACCESS_CHAPEL_OFFICE 22 -#define ACCESS_TECH_STORAGE 23 -#define ACCESS_ATMOSPHERICS 24 -#define ACCESS_BAR 25 -#define ACCESS_JANITOR 26 -#define ACCESS_CREMATORIUM 27 -#define ACCESS_KITCHEN 28 -#define ACCESS_ROBOTICS 29 -#define ACCESS_RD 30 -#define ACCESS_CARGO 31 -#define ACCESS_CONSTRUCTION 32 -#define ACCESS_CHEMISTRY 33 -#define ACCESS_CARGO_BOT 34 -#define ACCESS_HYDROPONICS 35 -#define ACCESS_MANUFACTURING 36 -#define ACCESS_LIBRARY 37 -#define ACCESS_INTERNAL_AFFAIRS 38 -#define ACCESS_VIROLOGY 39 -#define ACCESS_CMO 40 -#define ACCESS_QM 41 -#define ACCESS_COURT 42 -#define ACCESS_CLOWN 43 -#define ACCESS_MIME 44 -#define ACCESS_SURGERY 45 -#define ACCESS_THEATRE 46 -#define ACCESS_RESEARCH 47 -#define ACCESS_MINING 48 -#define ACCESS_MINING_OFFICE 49 //not in use -#define ACCESS_MAILSORTING 50 -#define ACCESS_MINT 51 -#define ACCESS_MINT_VAULT 52 -#define ACCESS_HEADS_VAULT 53 -#define ACCESS_MINING_STATION 54 -#define ACCESS_XENOBIOLOGY 55 -#define ACCESS_CE 56 -#define ACCESS_HOP 57 -#define ACCESS_HOS 58 -#define ACCESS_RC_ANNOUNCE 59 //Request console announcements -#define ACCESS_KEYCARD_AUTH 60 //Used for events which require at least two people to confirm them -#define ACCESS_TCOMSAT 61 // has access to the entire telecomms satellite / machinery -#define ACCESS_EXPEDITION 62 -#define ACCESS_SEC_DOORS 63 // Security front doors -#define ACCESS_PSYCHIATRIST 64 // Psychiatrist's office -#define ACCESS_XENOARCH 65 -#define ACCESS_PARAMEDIC 66 -#define ACCESS_BLUESHIELD 67 -// #define ACCESS_MECHANIC 70 // AA07 2021-10-02 - Removed: Kept for history sake -// #define ACCESS_PILOT 71 // AA07 2021-10-02 - Removed: Kept for history sake -#define ACCESS_NTREP 73 -#define ACCESS_MAGISTRATE 74 -#define ACCESS_MINISAT 75 -#define ACCESS_MINERAL_STOREROOM 76 -#define ACCESS_NETWORK 77 -#define ACCESS_CARGO_BAY 78 -#define ACCESS_SUPPLY_SHUTTLE 79 +#define ACCESS_SECURITY 1 //! Security equipment. +#define ACCESS_BRIG 2 //! Brig timers and permabrig. +#define ACCESS_ARMORY 3 +#define ACCESS_FORENSICS_LOCKERS 4 +#define ACCESS_MEDICAL 5 +#define ACCESS_MORGUE 6 +#define ACCESS_TOX 7 +#define ACCESS_TOX_STORAGE 8 +#define ACCESS_GENETICS 9 +#define ACCESS_ENGINE 10 +#define ACCESS_ENGINE_EQUIP 11 +#define ACCESS_MAINT_TUNNELS 12 +#define ACCESS_EXTERNAL_AIRLOCKS 13 +#define ACCESS_CHANGE_IDS 15 +#define ACCESS_AI_UPLOAD 16 +#define ACCESS_TELEPORTER 17 +#define ACCESS_EVA 18 +#define ACCESS_HEADS 19 +#define ACCESS_CAPTAIN 20 +#define ACCESS_ALL_PERSONAL_LOCKERS 21 +#define ACCESS_CHAPEL_OFFICE 22 +#define ACCESS_TECH_STORAGE 23 +#define ACCESS_ATMOSPHERICS 24 +#define ACCESS_BAR 25 +#define ACCESS_JANITOR 26 +#define ACCESS_CREMATORIUM 27 +#define ACCESS_KITCHEN 28 +#define ACCESS_ROBOTICS 29 +#define ACCESS_RD 30 +#define ACCESS_CARGO 31 +#define ACCESS_CONSTRUCTION 32 +#define ACCESS_CHEMISTRY 33 +#define ACCESS_CARGO_BOT 34 +#define ACCESS_HYDROPONICS 35 +#define ACCESS_LIBRARY 37 +#define ACCESS_INTERNAL_AFFAIRS 38 +#define ACCESS_VIROLOGY 39 +#define ACCESS_CMO 40 +#define ACCESS_QM 41 +#define ACCESS_COURT 42 +#define ACCESS_CLOWN 43 +#define ACCESS_MIME 44 +#define ACCESS_SURGERY 45 +#define ACCESS_THEATRE 46 +#define ACCESS_RESEARCH 47 +#define ACCESS_MINING 48 +#define ACCESS_MAILSORTING 50 +#define ACCESS_HEADS_VAULT 53 +#define ACCESS_MINING_STATION 54 +#define ACCESS_XENOBIOLOGY 55 +#define ACCESS_CE 56 +#define ACCESS_HOP 57 +#define ACCESS_HOS 58 +#define ACCESS_RC_ANNOUNCE 59 //! Request console announcements. +#define ACCESS_KEYCARD_AUTH 60 //! Used for events which require at least two people to confirm them. +#define ACCESS_TCOMSAT 61 //! Has access to the entire telecomms satellite / machinery. +#define ACCESS_EXPEDITION 62 +#define ACCESS_SEC_DOORS 63 //! Security front doors. +#define ACCESS_PSYCHIATRIST 64 +#define ACCESS_PARAMEDIC 66 +#define ACCESS_BLUESHIELD 67 +#define ACCESS_NTREP 73 +#define ACCESS_MAGISTRATE 74 +#define ACCESS_MINISAT 75 +#define ACCESS_MINERAL_STOREROOM 76 +#define ACCESS_CARGO_BAY 78 +#define ACCESS_SUPPLY_SHUTTLE 79 -#define ACCESS_WEAPONS 99 //Weapon authorization for secbots +#define ACCESS_WEAPONS 99 //! Weapon authorization for secbots. - //BEGIN CENTCOM ACCESS -#define ACCESS_CENT_GENERAL 101//General facilities. -#define ACCESS_CENT_LIVING 102//Living quarters. -#define ACCESS_CENT_MEDICAL 103//Medical. -#define ACCESS_CENT_SECURITY 104//Security. -#define ACCESS_CENT_STORAGE 105//Storage areas. -#define ACCESS_CENT_SHUTTLES 106//Shuttle docks. -#define ACCESS_CENT_TELECOMMS 107//Telecomms. -#define ACCESS_CENT_TELEPORTER 108//Teleporter -#define ACCESS_CENT_SPECOPS 109//Special Ops. -#define ACCESS_CENT_SPECOPS_COMMANDER 110//Special Ops Commander. -#define ACCESS_CENT_BLACKOPS 111//Black Ops. -#define ACCESS_CENT_THUNDER 112//Thunderdome. -#define ACCESS_CENT_BRIDGE 113//Bridge. -#define ACCESS_CENT_COMMANDER 114//Commander's Office/ID computer. +// MARK: CENTCOM ACCESS +#define ACCESS_CENT_GENERAL 101 //! Centcomm General facilities. +#define ACCESS_CENT_LIVING 102 //! Centcomm Living quarters. +#define ACCESS_CENT_SECURITY 104 //! Centcomm Security. +#define ACCESS_CENT_SHUTTLES 106 //! Centcomm Shuttle docks. +#define ACCESS_CENT_SPECOPS 109 //! Centcomm Special Ops. +#define ACCESS_CENT_SPECOPS_COMMANDER 110 //! Centcomm Special Ops Commander. +#define ACCESS_CENT_COMMANDER 114 //! Centcomm Commander's Office/ID computer. -//The Syndicate -#define ACCESS_SYNDICATE 150//General Syndicate Access -#define ACCESS_SYNDICATE_LEADER 151//Nuke Op Leader Access -#define ACCESS_VOX 152//Vox Access -#define ACCESS_SYNDICATE_COMMAND 153//Admin syndi officer +/// MARK: SYNDICATE ACCESS +#define ACCESS_SYNDICATE 150 //! General Syndicate Access +#define ACCESS_SYNDICATE_LEADER 151 //! Nuke Op Leader Access +#define ACCESS_VOX 152 //! Vox Access +#define ACCESS_SYNDICATE_COMMAND 153 //! Admin syndi officer -//Trade Stations -#define ACCESS_TRADE_SOL 160 - -//MONEY -#define ACCESS_CRATE_CASH 200 - -//Awaymissions -#define ACCESS_AWAY01 271 - -//Ghost roles -#define ACCESS_FREE_GOLEMS 300 -#define ACCESS_THETA_STATION 301 +/// MARK: MISC ACCESS +#define ACCESS_TRADE_SOL 160 //! Trade stations +#define ACCESS_AWAY01 271 //! Access used for moonoutpost19 ruin. +#define ACCESS_FREE_GOLEMS 300 //! Ghost role: free golems. +#define ACCESS_THETA_STATION 301 //! Ghost role: Theta station. diff --git a/code/__DEFINES/path_defines.dm b/code/__DEFINES/path_defines.dm new file mode 100644 index 000000000000..6ec12be63a78 --- /dev/null +++ b/code/__DEFINES/path_defines.dm @@ -0,0 +1,25 @@ +// Define set that decides how an atom will be scanned for astar things +/// If set, we make the assumption that CanPathfindPass() will NEVER return FALSE unless density is true +#define CANPATHFINDPASS_DENSITY 0 +/// If this is set, we bypass density checks and always call the proc +#define CANPATHFINDPASS_ALWAYS_PROC 1 + +/** + * A helper macro to see if it's possible to step from the first turf into the second one, minding things like door access and directional windows. + * If you really want to optimize things, optimize this, cuz this gets called a lot. + * We do early next.density check despite it being already checked in LinkBlockedWithAccess for short-circuit performance + */ +#define CAN_STEP(cur_turf, next, simulated_only, pass_info, avoid) (next && !next.density && !(simulated_only && SSpathfinder.space_type_cache[next.type]) && !cur_turf.LinkBlockedWithAccess(next, pass_info) && (next != avoid)) + +#define DIAGONAL_DO_NOTHING NONE +#define DIAGONAL_REMOVE_ALL 1 +#define DIAGONAL_REMOVE_CLUNKY 2 + +// Set of delays for path_map reuse +// The longer you go, the higher the risk of invalid paths +#define MAP_REUSE_INSTANT (0) +#define MAP_REUSE_SNAPPY (0.5 SECONDS) +#define MAP_REUSE_FAST (2 SECONDS) +#define MAP_REUSE_SLOW (20 SECONDS) +// Longest delay, so any maps older then this will be discarded from the subsystem cache +#define MAP_REUSE_SLOWEST (60 SECONDS) diff --git a/code/__DEFINES/preferences_defines.dm b/code/__DEFINES/preferences_defines.dm index f4fc5baecb55..4f58cad68d32 100644 --- a/code/__DEFINES/preferences_defines.dm +++ b/code/__DEFINES/preferences_defines.dm @@ -38,7 +38,7 @@ #define PREFTOGGLE_CHAT_NO_TICKETLOGS (1<<16) // #define PREFTOGGLE_UI_DARKMODE (1<<17) // Defunct as of 2024-01-29 // #define PREFTOGGLE_DISABLE_KARMA (1<<18) // Defunct as of 2023-03-12 -#define PREFTOGGLE_CHAT_NO_MENTORTICKETLOGS (1<<19) +#define PREFTOGGLE_CHAT_NO_MENTORTICKETLOGS (1<<19) // #define PREFTOGGLE_TYPING_ONCE (1<<20) // Defunct as of 2024-01-29 #define PREFTOGGLE_AMBIENT_OCCLUSION (1<<21) #define PREFTOGGLE_CHAT_GHOSTPDA (1<<22) @@ -73,8 +73,9 @@ #define PREFTOGGLE_2_ENABLE_TGUI_SAY_LIGHT_MODE (1<<20) // 1048576 #define PREFTOGGLE_2_SWAP_INPUT_BUTTONS (1<<21) // 2097152 #define PREFTOGGLE_2_LARGE_INPUT_BUTTONS (1<<22) // 4194304 +#define PREFTOGGLE_2_BIG_STRIP_MENU (1<<23) // 8388608 -#define TOGGLES_2_TOTAL 8388607 // If you add or remove a preference toggle above, make sure you update this define with the total value of the toggles combined. +#define TOGGLES_2_TOTAL 16777215 // If you add or remove a preference toggle above, make sure you update this define with the total value of the toggles combined. #define TOGGLES_2_DEFAULT (PREFTOGGLE_2_FANCYUI|PREFTOGGLE_2_ITEMATTACK|PREFTOGGLE_2_WINDOWFLASHING|PREFTOGGLE_2_RUNECHAT|PREFTOGGLE_2_DEATHMESSAGE|PREFTOGGLE_2_SEE_ITEM_OUTLINES|PREFTOGGLE_2_THOUGHT_BUBBLE|PREFTOGGLE_2_DANCE_DISCO|PREFTOGGLE_2_MOD_ACTIVATION_METHOD|PREFTOGGLE_2_SWAP_INPUT_BUTTONS|PREFTOGGLE_2_LARGE_INPUT_BUTTONS) diff --git a/code/__DEFINES/subsystems.dm b/code/__DEFINES/subsystems.dm index b213db5ac2dc..a818ccba950b 100644 --- a/code/__DEFINES/subsystems.dm +++ b/code/__DEFINES/subsystems.dm @@ -101,6 +101,7 @@ #define FIRE_PRIORITY_AIR 20 #define FIRE_PRIORITY_NPC 20 #define FIRE_PRIORITY_CAMERA 20 +#define FIRE_PRIORITY_PATHFINDING 23 #define FIRE_PRIORITY_PROCESS 25 #define FIRE_PRIORITY_THROWING 25 #define FIRE_PRIORITY_SPACEDRIFT 30 diff --git a/code/__DEFINES/turfs.dm b/code/__DEFINES/turfs.dm index 8d6281f43c82..b1104bbf7132 100644 --- a/code/__DEFINES/turfs.dm +++ b/code/__DEFINES/turfs.dm @@ -4,3 +4,9 @@ #define TURF_PATHING_PASS_PROC 1 /// Turf is never passable #define TURF_PATHING_PASS_NO 2 + +/// Returns a list of turfs similar to CORNER_BLOCK but with offsets +#define CORNER_BLOCK_OFFSET(corner, width, height, offset_x, offset_y) (block(corner.x + offset_x, corner.y + offset_y, corner.z, corner.x + (width - 1) + offset_x, corner.y + (height - 1) + offset_y)) + +/// Returns a list of around us +#define TURF_NEIGHBORS(turf) (CORNER_BLOCK_OFFSET(turf, 3, 3, -1, -1) - turf) diff --git a/code/__HELPERS/lists.dm b/code/__HELPERS/lists.dm index a7811800b54d..79047dfc6e63 100644 --- a/code/__HELPERS/lists.dm +++ b/code/__HELPERS/lists.dm @@ -50,6 +50,12 @@ } while(FALSE) +// Generic listoflist safe add and removal macros: +///If value is a list, wrap it in a list so it can be used with list add/remove operations +#define LIST_VALUE_WRAP_LISTS(value) (islist(value) ? list(value) : value) +///Add an untyped item to a list, taking care to handle list items by wrapping them in a list to remove the footgun +#define UNTYPED_LIST_ADD(list, item) (list += LIST_VALUE_WRAP_LISTS(item)) + //Returns a list in plain english as a string /proc/english_list(list/input, nothing_text = "nothing", and_text = " and ", comma_text = ", ", final_comma_text = "" ) var/total = length(input) @@ -870,3 +876,10 @@ else used_key_list[input_key] = 1 return input_key + +/// Turns an associative list into a flat list of keys +/proc/assoc_to_keys(list/input) + var/list/keys = list() + for(var/key in input) + UNTYPED_LIST_ADD(keys, key) + return keys diff --git a/code/__HELPERS/path.dm b/code/__HELPERS/path.dm deleted file mode 100644 index 5c4a4095c559..000000000000 --- a/code/__HELPERS/path.dm +++ /dev/null @@ -1,445 +0,0 @@ -#define GET_DIST_REAL(turf_a, turf_b) sqrt((turf_a.x - turf_b.x) ** 2 + (turf_a.y - turf_b.y) ** 2) - -/** - * This file contains the stuff you need for using JPS (Jump Point Search) pathing, an alternative to A* that skips - * over large numbers of uninteresting tiles resulting in much quicker pathfinding solutions. - */ - -/** - * This is the proc you use whenever you want to have pathfinding more complex than "try stepping towards the thing". - * If no path was found, returns an empty list, which is important for bots like medibots who expect an empty list rather than nothing. - * - * Arguments: - * * caller: The movable atom that's trying to find the path - * * end: What we're trying to path to. It doesn't matter if this is a turf or some other atom, we're gonna just path to the turf it's on anyway - * * max_distance: The maximum number of steps we can take in a given path to search (default: 30, 0 = infinite) - * * mintargetdistance: Minimum distance to the target before path returns, could be used to get near a target, but not right to it - for an AI mob with a gun, for example. - * * id: An ID card representing what access we have and what doors we can open. Its location relative to the pathing atom is irrelevant - * * simulated_only: Whether we consider turfs without atmos simulation (AKA do we want to ignore space) - * * exclude: If we want to avoid a specific turf, like if we're a mulebot who already got blocked by some turf - * * skip_first: Whether or not to delete the first item in the path. This would be done because the first item is the starting tile, which can break movement for some creatures. - * * diagonal_safety: ensures diagonal moves won't use invalid midstep turfs by splitting them into two orthogonal moves if necessary - */ -/proc/get_path_to(caller, end, max_distance = 30, mintargetdist, id = null, simulated_only = TRUE, turf/exclude, skip_first = TRUE, diagonal_safety = TRUE) - if(!caller || !get_turf(end)) - return - - var/l = SSpathfinder.mobs.getfree(caller) - while(!l) - stoplag(3) - l = SSpathfinder.mobs.getfree(caller) - - var/list/path - var/datum/pathfind/pathfind_datum = new(caller, end, id, max_distance, mintargetdist, simulated_only, exclude, diagonal_safety) - path = pathfind_datum.search() - qdel(pathfind_datum) - - SSpathfinder.mobs.found(l) - if(!path) - path = list() - if(length(path) > 0 && skip_first) - path.Cut(1, 2) - return path - -/** - * A helper macro to see if it's possible to step from the first turf into the second one, minding things like door access and directional windows. - * Note that this can only be used inside the [datum/pathfind][pathfind datum] since it uses variables from said datum. - * If you really want to optimize things, optimize this, cuz this gets called a lot. - * We do early next.density check despite it being already checked in LinkBlockedWithAccess for short-circuit performance - */ -#define CAN_STEP(cur_turf, next) (next && !next.density && !(simulated_only && SSpathfinder.space_type_cache[next.type]) && !cur_turf.LinkBlockedWithAccess(next,caller, id) && (next != avoid)) -/// Another helper macro for JPS, for telling when a node has forced neighbors that need expanding -#define STEP_NOT_HERE_BUT_THERE(cur_turf, dirA, dirB) ((!CAN_STEP(cur_turf, get_step(cur_turf, dirA)) && CAN_STEP(cur_turf, get_step(cur_turf, dirB)))) - -/// The JPS Node datum represents a turf that we find interesting enough to add to the open list and possibly search for new tiles from -/datum/jps_node - /// The turf associated with this node - var/turf/tile - /// The node we just came from - var/datum/jps_node/previous_node - /// The A* node weight (f_value = number_of_tiles + heuristic) - var/f_value - /// The A* node heuristic (a rough estimate of how far we are from the goal.) - var/heuristic - /// How many steps it's taken to get here from the start - var/number_tiles - /// How many steps it took to get here from the last node - var/jumps - /// Nodes store the endgoal so they can process their heuristic without a reference to the pathfind datum - var/turf/node_goal - /// Multiplier for making diagonals more expensive - var/diagonal_move_mult = 1 - -/datum/jps_node/New(turf/our_tile, datum/jps_node/incoming_previous_node, jumps_taken, turf/incoming_goal, is_diagonal) - tile = our_tile - jumps = jumps_taken - diagonal_move_mult = (is_diagonal ? SQRT_2 : 1) - if(incoming_goal) // if we have the goal argument, this must be the first/starting node - node_goal = incoming_goal - else if(incoming_previous_node) // if we have the parent, this is from a direct lateral/diagonal scan, we can fill it all out now - previous_node = incoming_previous_node - number_tiles = previous_node.number_tiles + jumps - node_goal = previous_node.node_goal - heuristic = GET_DIST_REAL(tile, node_goal) - f_value = heuristic + previous_node.number_tiles + (jumps * diagonal_move_mult) - // otherwise, no parent node means this is from a subscan lateral scan, so we just need the tile for now until we call [datum/jps/proc/update_parent] on it - -/datum/jps_node/Destroy(force, ...) - previous_node = null - return ..() - -/datum/jps_node/proc/update_parent(datum/jps_node/new_parent) - previous_node = new_parent - node_goal = previous_node.node_goal - jumps = GET_DIST_REAL(tile, previous_node.tile) - number_tiles = previous_node.number_tiles + jumps - heuristic = GET_DIST_REAL(tile, node_goal) - f_value = heuristic + previous_node.number_tiles + (jumps * diagonal_move_mult) - -/// TODO: Macro this to reduce proc overhead -/proc/HeapPathWeightCompare(datum/jps_node/a, datum/jps_node/b) - return b.f_value - a.f_value - -/// The datum used to handle the JPS pathfinding, completely self-contained -/datum/pathfind - /// The thing that we're actually trying to path for - var/atom/movable/caller - /// The turf where we started at - var/turf/start - /// The turf we're trying to path to (note that this won't track a moving target) - var/turf/end - /// The open list/stack we pop nodes out from (TODO: make this a normal list and macro-ize the heap operations to reduce proc overhead) - var/datum/heap/open - ///An assoc list that serves as the closed list & tracks what turfs came from where. Key is the turf, and the value is what turf it came from - var/list/sources - /// The list we compile at the end if successful to pass back - var/list/path - - // general pathfinding vars/args - /// An ID card representing what access we have and what doors we can open. Its location relative to the pathing atom is irrelevant - var/obj/item/card/id/id - /// How far away we have to get to the end target before we can call it quits - var/mintargetdist = 0 - /// I don't know what this does vs , but they limit how far we can search before giving up on a path - var/max_distance = 30 - /// Space is big and empty, if this is TRUE then we ignore pathing through unsimulated tiles - var/simulated_only - /// A specific turf we're avoiding, like if a mulebot is being blocked by someone t-posing in a doorway we're trying to get through - var/turf/avoid - /// Ensures diagonal moves won't use invalid midstep turfs by splitting them into two orthogonal moves if necessary - var/diagonal_safety = TRUE - -/datum/pathfind/New(atom/movable/caller, atom/goal, id, max_distance, mintargetdist, simulated_only, avoid, diagonal_safety) - src.caller = caller - end = get_turf(goal) - open = new /datum/heap(GLOBAL_PROC_REF(HeapPathWeightCompare)) - sources = new() - src.id = id - src.max_distance = max_distance - src.mintargetdist = mintargetdist - src.simulated_only = simulated_only - src.avoid = avoid - src.diagonal_safety = diagonal_safety - -/** - * search() is the proc you call to kick off and handle the actual pathfinding, and kills the pathfind datum instance when it's done. - * - * If a valid path was found, it's returned as a list. If invalid or cross-z-level params are entered, or if there's no valid path found, we - * return null, which [/proc/get_path_to] translates to an empty list (notable for simple bots, who need empty lists) - */ -/datum/pathfind/proc/search() - start = get_turf(caller) - if(!start || !end) - stack_trace("Invalid A* start or destination") - return - if(start.z != end.z || start == end) //no pathfinding between z levels - return - if(max_distance && (max_distance < GET_DIST_REAL(start, end))) //if start turf is farther than max_distance from end turf, no need to do anything - return - - //initialization - var/datum/jps_node/current_processed_node = new(start, -1, 0, end) - open.Insert(current_processed_node) - sources[start] = start // i'm sure this is fine - - //then run the main loop - while(!open.IsEmpty() && !path) - if(!caller) - return - current_processed_node = open.Pop() //get the lower f_value turf in the open list - if(max_distance && (current_processed_node.number_tiles > max_distance))//if too many steps, don't process that path - continue - - var/turf/current_turf = current_processed_node.tile - for(var/scan_direction in list(EAST, WEST, NORTH, SOUTH)) - lateral_scan_spec(current_turf, scan_direction, current_processed_node) - - for(var/scan_direction in list(NORTHEAST, SOUTHEAST, NORTHWEST, SOUTHWEST)) - diag_scan_spec(current_turf, scan_direction, current_processed_node) - - CHECK_TICK - - //we're done! reverse the path to get it from start to finish - if(path) - for(var/i = 1 to round(0.5 * length(path))) - path.Swap(i, length(path) - i + 1) - - sources = null - for(var/I in open.L) - qdel(I) - open.L = null - qdel(open) - - if(diagonal_safety) - path = diagonal_movement_safety() - - return path - -/// Called when we've hit the goal with the node that represents the last tile, then sets the path var to that path so it can be returned by [datum/pathfind/proc/search] -/datum/pathfind/proc/unwind_path(datum/jps_node/unwind_node) - path = new() - var/turf/iter_turf = unwind_node.tile - path.Add(iter_turf) - - while(unwind_node.previous_node) - var/dir_goal = get_dir(iter_turf, unwind_node.previous_node.tile) - for(var/i = 1 to unwind_node.jumps) - iter_turf = get_step(iter_turf,dir_goal) - path.Add(iter_turf) - unwind_node = unwind_node.previous_node - -/datum/pathfind/proc/diagonal_movement_safety() - if(length(path) < 2) - return - var/list/modified_path = list() - - for(var/i in 1 to length(path) - 1) - var/turf/current_turf = path[i] - var/turf/next_turf = path[i+1] - var/movement_dir = get_dir(current_turf, next_turf) - if(!(movement_dir & (movement_dir - 1))) //cardinal movement, no need to verify - modified_path += current_turf - continue - //If default diagonal movement step is invalid, replace with alternative two steps - if(movement_dir & NORTH) - if(!CAN_STEP(current_turf,get_step(current_turf,NORTH))) - modified_path += current_turf - modified_path += get_step(current_turf, movement_dir & ~NORTH) - else - modified_path += current_turf - else - if(!CAN_STEP(current_turf,get_step(current_turf,SOUTH))) - modified_path += current_turf - modified_path += get_step(current_turf, movement_dir & ~SOUTH) - else - modified_path += current_turf - modified_path += path[length(path)] - - return modified_path - -/** - * For performing lateral scans from a given starting turf. - * - * These scans are called from both the main search loop, as well as subscans for diagonal scans, and they treat finding interesting turfs slightly differently. - * If we're doing a normal lateral scan, we already have a parent node supplied, so we just create the new node and immediately insert it into the heap, ezpz. - * If we're part of a subscan, we still need for the diagonal scan to generate a parent node, so we return a node datum with just the turf and let the diag scan - * proc handle transferring the values and inserting them into the heap. - * - * Arguments: - * * original_turf: What turf did we start this scan at? - * * heading: What direction are we going in? Obviously, should be cardinal - * * parent_node: Only given for normal lateral scans, if we don't have one, we're a diagonal subscan. -*/ -/datum/pathfind/proc/lateral_scan_spec(turf/original_turf, heading, datum/jps_node/parent_node) - var/steps_taken = 0 - - var/turf/current_turf = original_turf - var/turf/lag_turf = original_turf - - while(TRUE) - if(path) - return - lag_turf = current_turf - current_turf = get_step(current_turf, heading) - steps_taken++ - if(!CAN_STEP(lag_turf, current_turf)) - return - - if(current_turf == end || (mintargetdist && (GET_DIST_REAL(current_turf, end) <= mintargetdist))) - var/datum/jps_node/final_node = new(current_turf, parent_node, steps_taken) - sources[current_turf] = original_turf - if(parent_node) // if this is a direct lateral scan we can wrap up, if it's a subscan from a diag, we need to let the diag make their node first, then finish - unwind_path(final_node) - return final_node - else if(sources[current_turf]) // already visited, essentially in the closed list - return - else - sources[current_turf] = original_turf - - if(parent_node && parent_node.number_tiles + steps_taken > max_distance) - return - - var/interesting = FALSE // have we found a forced neighbor that would make us add this turf to the open list? - - switch(heading) - if(NORTH) - if(STEP_NOT_HERE_BUT_THERE(current_turf, WEST, NORTHWEST) || STEP_NOT_HERE_BUT_THERE(current_turf, EAST, NORTHEAST)) - interesting = TRUE - if(SOUTH) - if(STEP_NOT_HERE_BUT_THERE(current_turf, WEST, SOUTHWEST) || STEP_NOT_HERE_BUT_THERE(current_turf, EAST, SOUTHEAST)) - interesting = TRUE - if(EAST) - if(STEP_NOT_HERE_BUT_THERE(current_turf, NORTH, NORTHEAST) || STEP_NOT_HERE_BUT_THERE(current_turf, SOUTH, SOUTHEAST)) - interesting = TRUE - if(WEST) - if(STEP_NOT_HERE_BUT_THERE(current_turf, NORTH, NORTHWEST) || STEP_NOT_HERE_BUT_THERE(current_turf, SOUTH, SOUTHWEST)) - interesting = TRUE - - if(interesting) - var/datum/jps_node/newnode = new(current_turf, parent_node, steps_taken) - if(parent_node) // if we're a diagonal subscan, we'll handle adding ourselves to the heap in the diag - open.Insert(newnode) - return newnode - -/** - * For performing diagonal scans from a given starting turf. - * - * Unlike lateral scans, these only are called from the main search loop, so we don't need to worry about returning anything, - * though we do need to handle the return values of our lateral subscans of course. - * - * Arguments: - * * original_turf: What turf did we start this scan at? - * * heading: What direction are we going in? Obviously, should be diagonal - * * parent_node: We should always have a parent node for diagonals -*/ -/datum/pathfind/proc/diag_scan_spec(turf/original_turf, heading, datum/jps_node/parent_node) - var/steps_taken = 0 - var/turf/current_turf = original_turf - var/turf/lag_turf = original_turf - - while(TRUE) - if(path) - return - lag_turf = current_turf - current_turf = get_step(current_turf, heading) - steps_taken++ - if(!CAN_STEP(lag_turf, current_turf)) - return - - if(current_turf == end || (mintargetdist && (GET_DIST_REAL(current_turf, end) <= mintargetdist))) - var/datum/jps_node/final_node = new(current_turf, parent_node, steps_taken, is_diagonal = TRUE) - sources[current_turf] = original_turf - unwind_path(final_node) - return - else if(sources[current_turf]) // already visited, essentially in the closed list - return - else - sources[current_turf] = original_turf - - if(parent_node.number_tiles + steps_taken > max_distance) - return - - var/interesting = FALSE // have we found a forced neighbor that would make us add this turf to the open list? - var/datum/jps_node/possible_child_node // otherwise, did one of our lateral subscans turn up something? - - switch(heading) - if(NORTHWEST) - if(STEP_NOT_HERE_BUT_THERE(current_turf, EAST, NORTHEAST) || STEP_NOT_HERE_BUT_THERE(current_turf, SOUTH, SOUTHWEST)) - interesting = TRUE - else - possible_child_node = (lateral_scan_spec(current_turf, WEST) || lateral_scan_spec(current_turf, NORTH)) - if(NORTHEAST) - if(STEP_NOT_HERE_BUT_THERE(current_turf, WEST, NORTHWEST) || STEP_NOT_HERE_BUT_THERE(current_turf, SOUTH, SOUTHEAST)) - interesting = TRUE - else - possible_child_node = (lateral_scan_spec(current_turf, EAST) || lateral_scan_spec(current_turf, NORTH)) - if(SOUTHWEST) - if(STEP_NOT_HERE_BUT_THERE(current_turf, EAST, SOUTHEAST) || STEP_NOT_HERE_BUT_THERE(current_turf, NORTH, NORTHWEST)) - interesting = TRUE - else - possible_child_node = (lateral_scan_spec(current_turf, SOUTH) || lateral_scan_spec(current_turf, WEST)) - if(SOUTHEAST) - if(STEP_NOT_HERE_BUT_THERE(current_turf, WEST, SOUTHWEST) || STEP_NOT_HERE_BUT_THERE(current_turf, NORTH, NORTHEAST)) - interesting = TRUE - else - possible_child_node = (lateral_scan_spec(current_turf, SOUTH) || lateral_scan_spec(current_turf, EAST)) - - if(interesting || possible_child_node) - var/datum/jps_node/newnode = new(current_turf, parent_node, steps_taken, is_diagonal = TRUE) - open.Insert(newnode) - if(possible_child_node) - possible_child_node.update_parent(newnode) - open.Insert(possible_child_node) - if(possible_child_node.tile == end || (mintargetdist && (GET_DIST_REAL(possible_child_node.tile, end) <= mintargetdist))) - unwind_path(possible_child_node) - return - -/** - * For seeing if we can actually move between 2 given turfs while accounting for our access and the caller's pass_flags - * - * Assumes destinantion turf is non-dense - check and shortcircuit in code invoking this proc to avoid overhead. - * - * Arguments: - * * caller: The movable, if one exists, being used for mobility checks to see what tiles it can reach - * * ID: An ID card that decides if we can gain access to doors that would otherwise block a turf - * * simulated_only: Do we only worry about turfs with simulated atmos, most notably things that aren't space? - * * no_id: When true, doors with public access will count as impassible -*/ -/turf/proc/LinkBlockedWithAccess(turf/destination_turf, caller, ID, no_id = FALSE) - if(destination_turf.x != x && destination_turf.y != y) //diagonal - var/in_dir = get_dir(destination_turf,src) // eg. northwest (1+8) = 9 (00001001) - var/first_step_direction_a = in_dir & 3 // eg. north (1+8)&3 (0000 0011) = 1 (0000 0001) - var/first_step_direction_b = in_dir & 12 // eg. west (1+8)&12 (0000 1100) = 8 (0000 1000) - - for(var/first_step_direction in list(first_step_direction_a, first_step_direction_b)) - var/turf/midstep_turf = get_step(destination_turf, first_step_direction) - var/way_blocked = midstep_turf.density || LinkBlockedWithAccess(midstep_turf, caller, ID, no_id = no_id) || midstep_turf.LinkBlockedWithAccess(destination_turf, caller, ID, no_id = no_id) - if(!way_blocked) - return FALSE - return TRUE - - var/actual_dir = get_dir(src, destination_turf) - - /// These are generally cheaper than looping contents so they go first - switch(destination_turf.pathing_pass_method) - if(TURF_PATHING_PASS_DENSITY) - if(destination_turf.density) - return TRUE - if(TURF_PATHING_PASS_PROC) - if(!destination_turf.CanPathfindPass(ID, actual_dir, caller, no_id = no_id)) - return TRUE - if(TURF_PATHING_PASS_NO) - return TRUE - - // Source border object checks - for(var/obj/structure/window/iter_window in src) - if(!iter_window.CanPathfindPass(ID, actual_dir, no_id = no_id)) - return TRUE - - for(var/obj/machinery/door/window/iter_windoor in src) - if(!iter_windoor.CanPathfindPass(ID, actual_dir, no_id = no_id)) - return TRUE - - for(var/obj/structure/railing/iter_rail in src) - if(!iter_rail.CanPathfindPass(ID, actual_dir, no_id = no_id)) - return TRUE - - for(var/obj/machinery/door/firedoor/border_only/firedoor in src) - if(!firedoor.CanPathfindPass(ID, actual_dir, no_id = no_id)) - return TRUE - - // Destination blockers check - var/reverse_dir = get_dir(destination_turf, src) - for(var/obj/iter_object in destination_turf) - if(!iter_object.CanPathfindPass(ID, reverse_dir, caller, no_id = no_id)) - return TRUE - - for(var/mob/living/iter_mob in destination_turf) - if(!iter_mob.CanPathfindPass(ID, reverse_dir, caller, no_id = no_id)) - return TRUE - - return FALSE - -#undef CAN_STEP -#undef STEP_NOT_HERE_BUT_THERE -#undef GET_DIST_REAL diff --git a/code/__HELPERS/paths/jps.dm b/code/__HELPERS/paths/jps.dm new file mode 100644 index 000000000000..db2377e8be49 --- /dev/null +++ b/code/__HELPERS/paths/jps.dm @@ -0,0 +1,305 @@ +/** + * This file contains the stuff you need for using JPS (Jump Point Search) pathing, an alternative to A* that skips + * over large numbers of uninteresting tiles resulting in much quicker pathfinding solutions. Mind that diagonals + * cost the same as cardinal moves currently, so paths may look a bit strange, but should still be optimal. + */ + +/// A helper macro for JPS, for telling when a node has forced neighbors that need expanding +/// Only usable in the context of the jps datum because of the datum vars it relies on +#define STEP_NOT_HERE_BUT_THERE(cur_turf, dirA, dirB) ((!CAN_STEP(cur_turf, get_step(cur_turf, dirA), simulated_only, pass_info, avoid) && CAN_STEP(cur_turf, get_step(cur_turf, dirB), simulated_only, pass_info, avoid))) + +/// The JPS Node datum represents a turf that we find interesting enough to add to the open list and possibly search for new tiles from +/datum/jps_node + /// The turf associated with this node + var/turf/tile + /// The node we just came from + var/datum/jps_node/previous_node + /// The A* node weight (f_value = number_of_tiles + heuristic) + var/f_value + /// The A* node heuristic (a rough estimate of how far we are from the goal) + var/heuristic + /// How many steps it's taken to get here from the start (currently pulling double duty as steps taken & cost to get here, since all moves incl diagonals cost 1 rn) + var/number_tiles + /// How many steps it took to get here from the last node + var/jumps + /// Nodes store the endgoal so they can process their heuristic without a reference to the pathfind datum + var/turf/node_goal + +/datum/jps_node/New(turf/our_tile, datum/jps_node/incoming_previous_node, jumps_taken, turf/incoming_goal) + tile = our_tile + jumps = jumps_taken + if(incoming_goal) // if we have the goal argument, this must be the first/starting node + node_goal = incoming_goal + else if(incoming_previous_node) // if we have the parent, this is from a direct lateral/diagonal scan, we can fill it all out now + previous_node = incoming_previous_node + number_tiles = previous_node.number_tiles + jumps + node_goal = previous_node.node_goal + heuristic = get_dist(tile, node_goal) + f_value = number_tiles + heuristic + // otherwise, no parent node means this is from a subscan lateral scan, so we just need the tile for now until we call [datum/jps/proc/update_parent] on it + +/datum/jps_node/Destroy(force) + previous_node = null + return ..() + +/datum/jps_node/proc/update_parent(datum/jps_node/new_parent) + previous_node = new_parent + node_goal = previous_node.node_goal + jumps = get_dist(tile, previous_node.tile) + number_tiles = previous_node.number_tiles + jumps + heuristic = get_dist(tile, node_goal) + f_value = number_tiles + heuristic + +/proc/HeapPathWeightCompare(datum/jps_node/a, datum/jps_node/b) + return b.f_value - a.f_value + +/datum/pathfind/jps + /// The movable we are pathing + var/atom/movable/caller + /// The turf we're trying to path to (note that this won't track a moving target) + var/turf/end + /// The open list/stack we pop nodes out from (TODO: make this a normal list and macro-ize the heap operations to reduce proc overhead) + var/datum/heap/open + /// The list we compile at the end if successful to pass back + var/list/path + ///An assoc list that serves as the closed list. Key is the turf, points to true if we've seen it before + var/list/found_turfs + + /// How far away we have to get to the end target before we can call it quits + var/mintargetdist = 0 + /// If we should delete the first step in the path or not. Used often because it is just the starting tile + var/skip_first = FALSE + ///Defines how we handle diagonal moves. See __DEFINES/path.dm + var/diagonal_handling = DIAGONAL_REMOVE_CLUNKY + +/datum/pathfind/jps/proc/setup(atom/movable/caller, list/access, max_distance, simulated_only, avoid, list/datum/callback/on_finish, atom/goal, mintargetdist, skip_first, diagonal_handling) + src.caller = caller + src.pass_info = new(caller, access) + src.max_distance = max_distance + src.simulated_only = simulated_only + src.avoid = avoid + src.on_finish = on_finish + src.mintargetdist = mintargetdist + src.skip_first = skip_first + src.diagonal_handling = diagonal_handling + end = get_turf(goal) + open = new /datum/heap(/proc/HeapPathWeightCompare) + found_turfs = list() + +/datum/pathfind/jps/Destroy(force) + . = ..() + caller = null + end = null + open = null + +/datum/pathfind/jps/start() + start = start || get_turf(caller) + . = ..() + if(!.) + return . + + if(!get_turf(end)) + // Something has asynchronously removed our original target + return FALSE + if(start.z != end.z || start == end) //no pathfinding between z levels + return FALSE + if(max_distance && (max_distance < get_dist(start, end))) //if start turf is farther than max_distance from end turf, no need to do anything + return FALSE + + var/datum/jps_node/current_processed_node = new (start, -1, 0, end) + open.Insert(current_processed_node) + found_turfs[start] = TRUE // i'm sure this is fine + return TRUE + +/datum/pathfind/jps/search_step() + . = ..() + if(!.) + return . + if(QDELETED(caller)) + return FALSE + + while(!open.IsEmpty() && !path) + var/datum/jps_node/current_processed_node = open.Pop() //get the lower f_value turf in the open list + if(max_distance && (current_processed_node.number_tiles > max_distance))//if too many steps, don't process that path + continue + + var/turf/current_turf = current_processed_node.tile + for(var/scan_direction in list(EAST, WEST, NORTH, SOUTH)) + lateral_scan_spec(current_turf, scan_direction, current_processed_node) + + for(var/scan_direction in list(NORTHEAST, SOUTHEAST, NORTHWEST, SOUTHWEST)) + diag_scan_spec(current_turf, scan_direction, current_processed_node) + + // Stable, we'll just be back later + if(TICK_CHECK) + return TRUE + return TRUE + +/datum/pathfind/jps/finished() + //we're done! turn our reversed path (end to start) into a path (start to end) + found_turfs = null + QDEL_NULL(open) + + var/list/path = src.path || list() + path = reverselist(path) + switch(diagonal_handling) + if(DIAGONAL_REMOVE_CLUNKY) + path = remove_clunky_diagonals(path, pass_info, simulated_only, avoid) + if(DIAGONAL_REMOVE_ALL) + path = remove_diagonals(path, pass_info, simulated_only, avoid) + if(skip_first && length(path) > 0) + path.Cut(1,2) + hand_back(path) + return ..() + +/// Called when we've hit the goal with the node that represents the last tile, then sets the path var to that path so it can be returned by [datum/pathfind/proc/search] +/datum/pathfind/jps/proc/unwind_path(datum/jps_node/unwind_node) + path = new() + var/turf/iter_turf = unwind_node.tile + path.Add(iter_turf) + + while(unwind_node.previous_node) + var/dir_goal = get_dir(iter_turf, unwind_node.previous_node.tile) + for(var/i in 1 to unwind_node.jumps) + iter_turf = get_step(iter_turf,dir_goal) + path.Add(iter_turf) + unwind_node = unwind_node.previous_node + +/** + * For performing lateral scans from a given starting turf. + * + * These scans are called from both the main search loop, as well as subscans for diagonal scans, and they treat finding interesting turfs slightly differently. + * If we're doing a normal lateral scan, we already have a parent node supplied, so we just create the new node and immediately insert it into the heap, ezpz. + * If we're part of a subscan, we still need for the diagonal scan to generate a parent node, so we return a node datum with just the turf and let the diag scan + * proc handle transferring the values and inserting them into the heap. + * + * Arguments: + * * original_turf: What turf did we start this scan at? + * * heading: What direction are we going in? Obviously, should be cardinal + * * parent_node: Only given for normal lateral scans, if we don't have one, we're a diagonal subscan. +*/ +/datum/pathfind/jps/proc/lateral_scan_spec(turf/original_turf, heading, datum/jps_node/parent_node) + var/steps_taken = 0 + + var/turf/current_turf = original_turf + var/turf/lag_turf = original_turf + var/datum/can_pass_info/pass_info = src.pass_info + + while(TRUE) + if(path) + return + lag_turf = current_turf + current_turf = get_step(current_turf, heading) + steps_taken++ + if(!CAN_STEP(lag_turf, current_turf, simulated_only, pass_info, avoid)) + return + + if(current_turf == end || (mintargetdist && (get_dist(current_turf, end) <= mintargetdist))) + var/datum/jps_node/final_node = new(current_turf, parent_node, steps_taken) + found_turfs[current_turf] = TRUE + if(parent_node) // if this is a direct lateral scan we can wrap up, if it's a subscan from a diag, we need to let the diag make their node first, then finish + unwind_path(final_node) + return final_node + else if(found_turfs[current_turf]) // already visited, essentially in the closed list + return + else + found_turfs[current_turf] = TRUE + + if(parent_node && parent_node.number_tiles + steps_taken > max_distance) + return + + var/interesting = FALSE // have we found a forced neighbor that would make us add this turf to the open list? + + switch(heading) + if(NORTH) + if(STEP_NOT_HERE_BUT_THERE(current_turf, WEST, NORTHWEST) || STEP_NOT_HERE_BUT_THERE(current_turf, EAST, NORTHEAST)) + interesting = TRUE + if(SOUTH) + if(STEP_NOT_HERE_BUT_THERE(current_turf, WEST, SOUTHWEST) || STEP_NOT_HERE_BUT_THERE(current_turf, EAST, SOUTHEAST)) + interesting = TRUE + if(EAST) + if(STEP_NOT_HERE_BUT_THERE(current_turf, NORTH, NORTHEAST) || STEP_NOT_HERE_BUT_THERE(current_turf, SOUTH, SOUTHEAST)) + interesting = TRUE + if(WEST) + if(STEP_NOT_HERE_BUT_THERE(current_turf, NORTH, NORTHWEST) || STEP_NOT_HERE_BUT_THERE(current_turf, SOUTH, SOUTHWEST)) + interesting = TRUE + + if(interesting) + var/datum/jps_node/newnode = new(current_turf, parent_node, steps_taken) + if(parent_node) // if we're a diagonal subscan, we'll handle adding ourselves to the heap in the diag + open.Insert(newnode) + return newnode + +/** + * For performing diagonal scans from a given starting turf. + * + * Unlike lateral scans, these only are called from the main search loop, so we don't need to worry about returning anything, + * though we do need to handle the return values of our lateral subscans of course. + * + * Arguments: + * * original_turf: What turf did we start this scan at? + * * heading: What direction are we going in? Obviously, should be diagonal + * * parent_node: We should always have a parent node for diagonals +*/ +/datum/pathfind/jps/proc/diag_scan_spec(turf/original_turf, heading, datum/jps_node/parent_node) + var/steps_taken = 0 + var/turf/current_turf = original_turf + var/turf/lag_turf = original_turf + var/datum/can_pass_info/pass_info = src.pass_info + + while(TRUE) + if(path) + return + lag_turf = current_turf + current_turf = get_step(current_turf, heading) + steps_taken++ + if(!CAN_STEP(lag_turf, current_turf, simulated_only, pass_info, avoid)) + return + + if(current_turf == end || (mintargetdist && (get_dist(current_turf, end) <= mintargetdist))) + var/datum/jps_node/final_node = new(current_turf, parent_node, steps_taken) + found_turfs[current_turf] = TRUE + unwind_path(final_node) + return + else if(found_turfs[current_turf]) // already visited, essentially in the closed list + return + else + found_turfs[current_turf] = TRUE + + if(parent_node.number_tiles + steps_taken > max_distance) + return + + var/interesting = FALSE // have we found a forced neighbor that would make us add this turf to the open list? + var/datum/jps_node/possible_child_node // otherwise, did one of our lateral subscans turn up something? + + switch(heading) + if(NORTHWEST) + if(STEP_NOT_HERE_BUT_THERE(current_turf, EAST, NORTHEAST) || STEP_NOT_HERE_BUT_THERE(current_turf, SOUTH, SOUTHWEST)) + interesting = TRUE + else + possible_child_node = (lateral_scan_spec(current_turf, WEST) || lateral_scan_spec(current_turf, NORTH)) + if(NORTHEAST) + if(STEP_NOT_HERE_BUT_THERE(current_turf, WEST, NORTHWEST) || STEP_NOT_HERE_BUT_THERE(current_turf, SOUTH, SOUTHEAST)) + interesting = TRUE + else + possible_child_node = (lateral_scan_spec(current_turf, EAST) || lateral_scan_spec(current_turf, NORTH)) + if(SOUTHWEST) + if(STEP_NOT_HERE_BUT_THERE(current_turf, EAST, SOUTHEAST) || STEP_NOT_HERE_BUT_THERE(current_turf, NORTH, NORTHWEST)) + interesting = TRUE + else + possible_child_node = (lateral_scan_spec(current_turf, SOUTH) || lateral_scan_spec(current_turf, WEST)) + if(SOUTHEAST) + if(STEP_NOT_HERE_BUT_THERE(current_turf, WEST, SOUTHWEST) || STEP_NOT_HERE_BUT_THERE(current_turf, NORTH, NORTHEAST)) + interesting = TRUE + else + possible_child_node = (lateral_scan_spec(current_turf, SOUTH) || lateral_scan_spec(current_turf, EAST)) + + if(interesting || possible_child_node) + var/datum/jps_node/newnode = new(current_turf, parent_node, steps_taken) + open.Insert(newnode) + if(possible_child_node) + possible_child_node.update_parent(newnode) + open.Insert(possible_child_node) + if(possible_child_node.tile == end || (mintargetdist && (get_dist(possible_child_node.tile, end) <= mintargetdist))) + unwind_path(possible_child_node) + return diff --git a/code/__HELPERS/paths/path.dm b/code/__HELPERS/paths/path.dm new file mode 100644 index 000000000000..ef5bd32e3f16 --- /dev/null +++ b/code/__HELPERS/paths/path.dm @@ -0,0 +1,395 @@ +/** + * This is the proc you use whenever you want to have pathfinding more complex than "try stepping towards the thing". + * If no path was found, returns an empty list, which is important for bots like medibots who expect an empty list rather than nothing. + * It will yield until a path is returned, using magic + * + * Arguments: + * * caller: The movable atom that's trying to find the path + * * end: What we're trying to path to. It doesn't matter if this is a turf or some other atom, we're gonna just path to the turf it's on anyway + * * max_distance: The maximum number of steps we can take in a given path to search (default: 30, 0 = infinite) + * * mintargetdistance: Minimum distance to the target before path returns, could be used to get near a target, but not right to it - for an AI mob with a gun, for example. + * * access: A list representing what access we have and what doors we can open. + * * simulated_only: Whether we consider tur fs without atmos simulation (AKA do we want to ignore space) + * * exclude: If we want to avoid a specific turf, like if we're a mulebot who already got blocked by some turf + * * skip_first: Whether or not to delete the first item in the path. This would be done because the first item is the starting tile, which can break movement for some creatures. + * * diagonal_handling: defines how we handle diagonal moves. see __DEFINES/path.dm + */ +/proc/get_path_to(atom/movable/caller, atom/end, max_distance = 30, mintargetdist, access=list(), simulated_only = TRUE, turf/exclude, skip_first=TRUE, diagonal_handling=DIAGONAL_REMOVE_CLUNKY) + var/list/hand_around = list() + // We're guarenteed that list will be the first list in pathfinding_finished's argset because of how callback handles the arguments list + var/datum/callback/await = list(CALLBACK(GLOBAL_PROC, GLOBAL_PROC_REF(pathfinding_finished), hand_around)) + if(!SSpathfinder.pathfind(caller, end, max_distance, mintargetdist, access, simulated_only, exclude, skip_first, diagonal_handling, await)) + return list() + + UNTIL(length(hand_around)) + var/list/return_val = hand_around[1] + if(!islist(return_val) || (QDELETED(caller) || QDELETED(end))) // It's trash, just hand back empty to make it easy + return list() + return return_val + +/** + * POTENTIALLY cheaper version of get_path_to + * This proc generates a path map for the end atom's turf, which allows us to cheaply do pathing operations "at" it + * Generation is significantly SLOWER then get_path_to, but if many things are/might be pathing at something then it is much faster + * Runs the risk of returning an suboptimal or INVALID PATH if the delay between map creation and use is too long + * + * If no path was found, returns an empty list, which is important for bots like medibots who expect an empty list rather than nothing. + * It will yield until a path is returned, using magic + * + * Arguments: + * * caller: The movable atom that's trying to find the path + * * end: What we're trying to path to. It doesn't matter if this is a turf or some other atom, we're gonna just path to the turf it's on anyway + * * max_distance: The maximum number of steps we can take in a given path to search (default: 30, 0 = infinite) + * * mintargetdistance: Minimum distance to the target before path returns, could be used to get near a target, but not right to it - for an AI mob with a gun, for example. + * * age: How old a path map can be before we'll avoid reusing it. Use the defines found in [code/__DEFINES/path.dm], values larger then MAP_REUSE_SLOWEST will be discarded + * * access: A list representing what access we have and what doors we can open. + * * simulated_only: Whether we consider tur fs without atmos simulation (AKA do we want to ignore space) + * * exclude: If we want to avoid a specific turf, like if we're a mulebot who already got blocked by some turf + * * skip_first: Whether or not to delete the first item in the path. This would be done because the first item is the starting tile, which can break movement for some creatures. + */ +/proc/get_swarm_path_to(atom/movable/caller, atom/end, max_distance = 30, mintargetdist, age = MAP_REUSE_INSTANT, access = list(), simulated_only = TRUE, turf/exclude, skip_first=TRUE) + var/list/hand_around = list() + // We're guarenteed that list will be the first list in pathfinding_finished's argset because of how callback handles the arguments list + var/datum/callback/await = list(CALLBACK(GLOBAL_PROC, GLOBAL_PROC_REF(pathfinding_finished), hand_around)) + if(!SSpathfinder.swarmed_pathfind(caller, end, max_distance, mintargetdist, age, access, simulated_only, exclude, skip_first, await)) + return list() + + UNTIL(length(hand_around)) + var/list/return_val = hand_around[1] + if(!islist(return_val) || (QDELETED(caller) || QDELETED(end))) // It's trash, just hand back empty to make it easy + return list() + return return_val + +/proc/get_sssp(atom/movable/caller, max_distance = 30, access = list(), simulated_only = TRUE, turf/exclude) + var/list/hand_around = list() + // We're guarenteed that list will be the first list in pathfinding_finished's argset because of how callback handles the arguments list + var/datum/callback/await = list(CALLBACK(GLOBAL_PROC, GLOBAL_PROC_REF(pathfinding_finished), hand_around)) + if(!SSpathfinder.build_map(caller, get_turf(caller), max_distance, access, simulated_only, exclude, await)) + return null + + UNTIL(length(hand_around)) + var/datum/path_map/return_val = hand_around[1] + if(!istype(return_val, /datum/path_map) || (QDELETED(caller))) // It's trash, just hand back null to make it easy + return null + return return_val + +/// Uses funny pass by reference bullshit to take the output created by pathfinding, and insert it into a return list +/// We'll be able to use this return list to tell a sleeping proc to continue execution +/proc/pathfinding_finished(list/return_list, hand_back) + // We use += here to behave nicely with lists + return_list += LIST_VALUE_WRAP_LISTS(hand_back) + +/// The datum used to handle the JPS pathfinding, completely self-contained +/datum/pathfind + /// The turf we started at + var/turf/start + + // general pathfinding vars/args + /// Limits how far we can search before giving up on a path + var/max_distance = 30 + /// Space is big and empty, if this is TRUE then we ignore pathing through unsimulated tiles + var/simulated_only + /// A specific turf we're avoiding, like if a mulebot is being blocked by someone t-posing in a doorway we're trying to get through + var/turf/avoid + /// The callbacks to invoke when we're done working, passing in the completed product + /// Invoked in order + var/list/datum/callback/on_finish + /// Datum that holds the canpass info of this pathing attempt. This is what CanPathfindPass sees + var/datum/can_pass_info/pass_info + +/datum/pathfind/Destroy(force) + . = ..() + SSpathfinder.active_pathing -= src + SSpathfinder.currentrun -= src + hand_back(null) + avoid = null + +/** + * "starts" off the pathfinding, by storing the values this datum will need to work later on + * returns FALSE if it fails to setup properly, TRUE otherwise + */ +/datum/pathfind/proc/start() + if(!start) + stack_trace("Invalid pathfinding start") + return FALSE + return TRUE + +/** + * search_step() is the workhorse of pathfinding. It'll do the searching logic, and will slowly build up a path + * returns TRUE if everything is stable, FALSE if the pathfinding logic has failed, and we need to abort + */ +/datum/pathfind/proc/search_step() + return TRUE + +/** + * early_exit() is called when something goes wrong in processing, and we need to halt the pathfinding NOW + */ +/datum/pathfind/proc/early_exit() + hand_back(null) + qdel(src) + +/** + * Cleanup pass for the pathfinder. This tidies up the path, and fufills the pathfind's obligations + */ +/datum/pathfind/proc/finished() + qdel(src) + +/** + * Call to return a value to whoever spawned this pathfinding work + * Will fail if it's already been called + */ +/datum/pathfind/proc/hand_back(value) + for(var/datum/callback/finished as anything in on_finish) + finished.Invoke(value) + on_finish = null + +/** + * Processes a path (list of turfs), removes any diagonal moves that would lead to a weird bump + * + * path - The path to process down + * pass_info - Holds all the info about what this path attempt can go through + * simulated_only - If we are not allowed to pass space turfs + * avoid - A turf to be avoided + */ +/proc/remove_clunky_diagonals(list/path, datum/can_pass_info/pass_info, simulated_only, turf/avoid) + if(length(path) < 2) + return path + var/list/modified_path = list() + + for(var/i in 1 to length(path) - 1) + var/turf/current_turf = path[i] + modified_path += current_turf + var/turf/next_turf = path[i+1] + var/movement_dir = get_dir(current_turf, next_turf) + if(!(movement_dir & (movement_dir - 1))) //cardinal movement, no need to verify + continue + //If the first diagonal movement step is invalid (north/south), replace with a sidestep first, with an implied vertical step in next_turf + var/vertical_only = movement_dir & (NORTH|SOUTH) + if(!CAN_STEP(current_turf,get_step(current_turf, vertical_only), simulated_only, pass_info, avoid)) + modified_path += get_step(current_turf, movement_dir & ~vertical_only) + modified_path += path[length(path)] + + return modified_path + +/** + * Processes a path (list of turfs), removes any diagonal moves + * + * path - The path to process down + * pass_info - Holds all the info about what this path attempt can go through + * simulated_only - If we are not allowed to pass space turfs + * avoid - A turf to be avoided + */ +/proc/remove_diagonals(list/path, datum/can_pass_info/pass_info, simulated_only, turf/avoid) + if(length(path) < 2) + return path + var/list/modified_path = list() + + for(var/i in 1 to length(path) - 1) + var/turf/current_turf = path[i] + modified_path += current_turf + var/turf/next_turf = path[i+1] + var/movement_dir = get_dir(current_turf, next_turf) + if(!(movement_dir & (movement_dir - 1))) //cardinal movement, no need to verify + continue + var/vertical_only = movement_dir & (NORTH|SOUTH) + // If we can't go directly north/south, we will first go to the side, + if(!CAN_STEP(current_turf,get_step(current_turf, vertical_only), simulated_only, pass_info, avoid)) + modified_path += get_step(current_turf, movement_dir & ~vertical_only) + else // Otherwise, we'll first go north/south, then to the side + modified_path += get_step(current_turf, vertical_only) + modified_path += path[length(path)] + + return modified_path + +/** + * For seeing if we can actually move between 2 given turfs while accounting for our access and the caller's pass_flags + * + * Assumes destinantion turf is non-dense - check and shortcircuit in code invoking this proc to avoid overhead. + * Makes some other assumptions, such as assuming that unless declared, non dense objects will not block movement. + * It's fragile, but this is VERY much the most expensive part of pathing, so it'd better be fast + * + * Arguments: + * * destination_turf - Where are we going from where we are? + * * pass_info - Holds all the info about what this path attempt can go through +*/ +/turf/proc/LinkBlockedWithAccess(turf/destination_turf, datum/can_pass_info/pass_info) + if(destination_turf.x != x && destination_turf.y != y) //diagonal + var/in_dir = get_dir(destination_turf,src) // eg. northwest (1+8) = 9 (00001001) + var/first_step_direction_a = in_dir & 3 // eg. north (1+8)&3 (0000 0011) = 1 (0000 0001) + var/first_step_direction_b = in_dir & 12 // eg. west (1+8)&12 (0000 1100) = 8 (0000 1000) + + for(var/first_step_direction in list(first_step_direction_a,first_step_direction_b)) + var/turf/midstep_turf = get_step(destination_turf,first_step_direction) + var/way_blocked = midstep_turf.density || LinkBlockedWithAccess(midstep_turf, pass_info) || midstep_turf.LinkBlockedWithAccess(destination_turf, pass_info) + if(!way_blocked) + return FALSE + return TRUE + var/actual_dir = get_dir(src, destination_turf) + + /// These are generally cheaper than looping contents so they go first + switch(destination_turf.pathing_pass_method) + // This is already assumed to be true + //if(TURF_PATHING_PASS_DENSITY) + // if(destination_turf.density) + // return TRUE + if(TURF_PATHING_PASS_PROC) + if(!destination_turf.CanPathfindPass(actual_dir, pass_info)) + return TRUE + if(TURF_PATHING_PASS_NO) + return TRUE + + var/static/list/directional_blocker_cache = typecacheof(list(/obj/structure/window, /obj/machinery/door/window, /obj/structure/railing, /obj/machinery/door/firedoor/border_only)) + // Source border object checks + for(var/obj/border in src) + if(!directional_blocker_cache[border.type]) + continue + if(!border.density && border.can_pathfind_pass == CANPATHFINDPASS_DENSITY) + continue + if(!border.CanPathfindPass(actual_dir, pass_info)) + return TRUE + + // Destination blockers check + var/reverse_dir = get_dir(destination_turf, src) + for(var/obj/iter_object in destination_turf) + // This is an optimization because of the massive call count of this code + if(!iter_object.density && iter_object.can_pathfind_pass == CANPATHFINDPASS_DENSITY) + continue + if(!iter_object.CanPathfindPass(reverse_dir, pass_info)) + return TRUE + return FALSE + +// Could easily be a struct if/when we get that +/** + * Holds all information about what an atom can move through + * Passed into CanPathfindPass to provide context for a pathing attempt + * + * Also used to check if using a cached path_map is safe + * There are some vars here that are unused. They exist to cover cases where caller_ref is used + * They're the properties of caller_ref used in those cases. + * It's kinda annoying, but there's some proc chains we can't convert to this datum + */ +/datum/can_pass_info + /// If we have no id, public airlocks are walls + var/no_id = FALSE + + /// What we can pass through. Mirrors /atom/movable/pass_flags + var/pass_flags = NONE + /// What access we have, airlocks, windoors, etc + var/list/access = null + /// What sort of movement do we have. Mirrors /atom/movable/movement_type + var/movement_type = NONE + /// Are we being thrown? + var/thrown = FALSE + /// Are we anchored + var/anchored = FLASH_LIGHT_POWER + + /// Are we a ghost? (they have effectively unique pathfinding) + var/is_observer = FALSE + /// Are we a living mob? + var/is_living = FALSE + /// Are we a bot? + var/is_bot = FALSE + /// Are we a drone? + var/is_drone = FALSE + /// Are we a movable? This seems weird but some of our pathfind checks do check for this + var/is_movable = FALSE + /// Can we ventcrawl? + var/can_ventcrawl = FALSE + /// What is the size of our mob + var/mob_size = null + /// Is our mob incapacitated + var/incapacitated = FALSE + /// Is our mob incorporeal + var/incorporeal_move = FALSE + /// Are we flying? + var/is_flying = FALSE + /// Are we megafauna? + var/is_megafauna = FALSE + /// If our mob has a rider, what does it look like + var/datum/can_pass_info/rider_info = null + /// If our mob is buckled to something, what's it like + var/datum/can_pass_info/buckled_info = null + + var/list/factions = list() + + /// Do we have gravity + var/has_gravity = TRUE + /// Pass information for the object we are pulling, if any + var/datum/can_pass_info/pulling_info = null + + /// Cameras have a lot of BS can_z_move overrides + /// Let's avoid this + var/camera_type + + var/caller_uid + +/datum/can_pass_info/New(atom/movable/construct_from, list/access_, no_id_ = FALSE, call_depth = 0) + // No infiniloops + if(call_depth > 10) + return + if(access_) + access = access_.Copy() + no_id = no_id_ + + if(isnull(construct_from)) + return + + caller_uid = construct_from.UID() + pass_flags = construct_from.pass_flags + // TG uses movement type flags + // movement_type = construct_from.movement_type + thrown = !!construct_from.throwing + anchored = construct_from.anchored + has_gravity = has_gravity(construct_from) + is_movable = ismovable(construct_from) + is_drone = isdrone(construct_from) + is_megafauna = ismegafauna(construct_from) + + if(ismob(construct_from)) + var/mob/living/mob_construct = construct_from + src.incapacitated = mob_construct.incapacitated() + factions = mob_construct.faction + if(mob_construct.buckled) + src.buckled_info = new(mob_construct.buckled, access, no_id, call_depth + 1) + if(isobserver(construct_from)) + src.is_observer = TRUE + if(isliving(construct_from)) + var/mob/living/living_construct = construct_from + src.is_living = TRUE + src.can_ventcrawl = living_construct.ventcrawler == VENTCRAWLER_ALWAYS || living_construct.ventcrawler == VENTCRAWLER_NUDE + src.mob_size = living_construct.mob_size + src.incorporeal_move = living_construct.incorporeal_move + is_flying = living_construct.flying + if(iscameramob(construct_from)) + src.camera_type = construct_from.type + src.is_bot = isbot(construct_from) + + if(construct_from.pulling) + src.pulling_info = new(construct_from.pulling, access, no_id, call_depth + 1) + +/// List of vars on /datum/can_pass_info to use when checking two instances for equality +GLOBAL_LIST_INIT(can_pass_info_vars, GLOBAL_PROC_REF(can_pass_check_vars)) + +/proc/can_pass_check_vars() + var/datum/can_pass_info/lamb = new() + var/datum/isaac = new() + var/list/altar = assoc_to_keys(lamb.vars - isaac.vars) + // Don't compare against calling atom, it's not relevant here + altar -= "caller_uid" + if(!("caller_uid" in lamb.vars)) + CRASH("caller_ref var was not found in /datum/can_pass_info, why are we filtering for it?") + // We will bespoke handle pulling_info + altar -= "pulling_info" + if(!("pulling_info" in lamb.vars)) + CRASH("pulling_info var was not found in /datum/can_pass_info, why are we filtering for it?") + return altar + +/datum/can_pass_info/proc/compare_against(datum/can_pass_info/check_against) + for(var/comparable_var in GLOB.can_pass_info_vars) + if(!(vars[comparable_var] ~= check_against[comparable_var])) + return FALSE + if(!pulling_info != !check_against.pulling_info) + return FALSE + if(pulling_info && !pulling_info.compare_against(check_against.pulling_info)) + return FALSE + return TRUE diff --git a/code/__HELPERS/paths/sssp.dm b/code/__HELPERS/paths/sssp.dm new file mode 100644 index 000000000000..b77286ce5a64 --- /dev/null +++ b/code/__HELPERS/paths/sssp.dm @@ -0,0 +1,300 @@ +#define FLOW_PATH_END 1 +/// Datum that describes the shortest path between a source turf and any turfs within a distance +/datum/path_map + /// Assoc list of turf -> the turf one step closer on the path + /// Arranged in discovery order, so the last turf here will be the furthest from the start + var/list/next_closest = list() + /// List of distances from the starting turf, each index lines up with the next_closest list + var/list/distances = list() + /// Our starting turf, the location this map feeds into + var/turf/start + /// The tick we were completed on, in case you want to hold onto this for a bit + var/creation_time + /// The pass info datum used to create us + var/datum/can_pass_info/pass_info + /// Were we allowed to path over space? + var/pass_space = TRUE + /// Were we avoiding a turf? If so, which one? + var/turf/avoid + /// Are we currently being expanded? + var/expanding = FALSE + /// Are we currently being built + var/building = FALSE + +/// Gets a list of turfs reachable by this path_map from the distance first to the distance second, both inclusive +/// first > second or first < second are both respected, and the return order will reflect the arg order +/// We return a list of turf -> distance, or null if we error +/datum/path_map/proc/turfs_in_range(first, second) + var/list/hand_back = list() + var/list/distances = src.distances + var/smaller = min(first, second) + var/larger = max(first, second) + var/largest_dist = distances[length(distances)] + if(smaller < 0 || larger < 0 || largest_dist < larger || largest_dist < smaller) + return null + if(first == smaller) + for(var/i in 1 to length(distances)) + if(i > larger) + break + if(i >= smaller) + hand_back[next_closest[i]] = distances[i] + else + for(var/i in length(distances) to 1 step -1) + if(i < smaller) + break + if(i <= larger) + hand_back[next_closest[i]] = distances[i] + + return hand_back + +/** + * Takes a turf to path to, returns the shortest path to it at the time of this datum's creation + * + * skip_first - If we should drop the first step in the path. Used to avoid stepping where we already are + * min_target_dist - How many, if any, turfs off the end of the path should we drop? + */ +/datum/path_map/proc/get_path_to(turf/path_to, skip_first = FALSE, min_target_dist = 0) + return generate_path(path_to, skip_first, min_target_dist) + +/** + * Takes a turf to start from, returns a path to the source turf of this datum + * + * skip_first - If we should drop the first step in the path. Used to avoid stepping where we already are + * min_target_dist - How many, if any, turfs off the end of the path should we drop? + */ +/datum/path_map/proc/get_path_from(turf/path_from, skip_first = FALSE, min_target_dist = 0) + return generate_path(path_from, skip_first, min_target_dist, reverse = TRUE) + +/** + * Takes a turf to use as the other end, returns the path between the source node and it + * + * skip_first - If we should drop the first step in the path. Used to avoid stepping where we already are + * min_target_dist - How many, if any, turfs off the end of the path should we drop? + * reverse - If true, "reverses" the path generated. You'd want to use this for generating a path to the source node itself + */ +/datum/path_map/proc/generate_path(turf/other_end, skip_first = FALSE, min_target_dist = 0, reverse = FALSE) + var/list/path = list() + var/turf/next_turf = other_end + // Cache for sonic speed + var/next_closest = src.next_closest + while(next_turf != FLOW_PATH_END || next_turf == null) + path += next_turf + next_turf = next_closest[next_turf] // We take the first entry cause that's the turf + + // This makes sense from a consumer level, I hate double negatives too I promise + if(!reverse) + path = reverselist(path) + if(skip_first && length(path) > 0) + path.Cut(1,2) + if(min_target_dist) + path.Cut(length(path) + 1 - min_target_dist, length(path) + 1) + return path + +/datum/path_map/proc/display(delay = 10 SECONDS) + for(var/index in 1 to length(distances)) + var/turf/next_turf = next_closest[index] + next_turf.maptext = "[distances[index]]" + next_turf.color = COLOR_NAVY_BLUE + animate(next_turf, color = null, delay) + animate(maptext = "", world.tick_lag) + +/// Copies the passed in path_map into this datum +/// Saves some headache with updating refs if we want to modify a path_map +/datum/path_map/proc/copy_from(datum/path_map/read_from) + // Copy all the relevant vars over. NOT any of the timer stuff, we want them to still count + src.next_closest = read_from.next_closest + src.distances = read_from.distances + src.start = read_from.start + src.pass_info = read_from.pass_info + src.pass_space = read_from.pass_space + src.avoid = read_from.avoid + +/// Returns true if the passed in pass_map's pass logic matches ours +/// False otherwise +/datum/path_map/proc/compare_against(datum/path_map/map) + return compare_against_args(map.pass_info, map.start, map.pass_space, map.avoid) + +/// Returns true if the passed in pass_info and start/pass_space/avoid match ours +/// False otherwise +/datum/path_map/proc/compare_against_args(datum/can_pass_info/pass_info, turf/start, pass_space, turf/avoid) + if(src.start != start) + return FALSE + if(src.pass_space != pass_space) + return FALSE + if(src.avoid != avoid) + return FALSE + + return pass_info.compare_against(pass_info) + + +/// Returns a new /datum/pathfind/sssp based off our settings +/// Will have an invalid source mob, no max distance, and no ending callback +/datum/path_map/proc/settings_to_path() + // Default creation to not set any vars incidentially + var/static/mob/jeremy = new() + var/datum/pathfind/sssp/based_on_what = new() + based_on_what.setup(pass_info, null, INFINITY, pass_space, avoid) + return based_on_what + +/// Expands this pathmap to cover a new range, assuming the arg is greater then the current range +/// Returns true if this succeeded or was not required, false otherwise +/datum/path_map/proc/expand(new_range) + var/list/working_distances = distances + var/working_index = working_distances.len + var/max_dist = working_distances[working_distances.len] + if(new_range <= max_dist) + return TRUE + + UNTIL(expanding == FALSE) + // In case max_dist has changed ya feel + if(new_range <= max_dist) + return TRUE + + // Walk the start point backwards until we're at the first turf at the max distance + while(working_distances[working_index] == max_dist) + working_index -= 1 + + var/list/hand_around = list() + // We're guarenteed that hand_around will be the first list in pathfinding_finished's argset because of how callback handles the arguments list + var/datum/callback/await = CALLBACK(GLOBAL_PROC, GLOBAL_PROC_REF(pathfinding_finished), hand_around) + + // We're gonna build a pathfind datum from our settings and set it running + var/datum/pathfind/sssp/based_off_us = new() + + based_off_us.setup_from_canpass(pass_info, start, new_range, pass_space, avoid, list(await)) + based_off_us.working_queue = next_closest.Copy() + based_off_us.working_distances = working_distances.Copy() + based_off_us.working_index = working_index + if(!SSpathfinder.run_pathfind(based_off_us)) + return FALSE + + expanding = TRUE + UNTIL(length(hand_around)) + var/datum/path_map/return_val = hand_around[1] + if(!istype(return_val, /datum/path_map)) // It's trash, we've failed and need to clear away + return FALSE + copy_from(return_val) + expanding = FALSE + return TRUE + +/datum/path_map/proc/sanity_check() + for(var/index in 1 to length(distances)) + var/turf/next_turf = next_closest[index] + var/list/path = get_path_from(next_turf) + if(length(path) != distances[index] + 1) + stack_trace("[next_turf] had a distance of [length(path)] instead of the expected [distances[index]]") + if(path.Find(next_turf) != 1) + stack_trace("Starting turf [next_turf] was not the first entry in its list (instead it's at [path.Find(next_turf)])") + path = get_path_to(next_turf) + if(length(path) != distances[index] + 1) + stack_trace("[next_turf] had a distance of [length(path)] instead of the expected [distances[index]]") + if(path.Find(next_turf) != length(path)) + stack_trace("Starting turf [next_turf] was not the last entry in its list (instead it's at [path.Find(next_turf)])") + +/// Single source shortest path +/// Generates a flow map of a reachable turf -> the turf next closest to the map's center +/datum/pathfind/sssp + /// Ever expanding list of turfs to visit/visited, associated with the turf that's next closest to them + var/list/working_queue + /// List of distances, each entry mirrors an entry in the working_queue + var/list/working_distances + /// Our current position in the working queue + var/working_index + +/datum/pathfind/sssp/proc/setup(atom/movable/caller, list/access, turf/center, max_distance, simulated_only, turf/avoid, list/datum/callback/on_finish) + src.pass_info = new(caller, access) + src.start = center + src.max_distance = max_distance + src.simulated_only = simulated_only + src.avoid = avoid + src.on_finish = on_finish + +/datum/pathfind/sssp/proc/setup_from_canpass(datum/can_pass_info/info, turf/center, max_distance, simulated_only, turf/avoid, list/datum/callback/on_finish) + src.pass_info = info + src.start = center + src.max_distance = max_distance + src.simulated_only = simulated_only + src.avoid = avoid + src.on_finish = on_finish + +/datum/pathfind/sssp/start() + . = ..() + if(!.) + return . + working_queue = list() + working_distances = list() + working_queue[start] = FLOW_PATH_END + working_distances += 0 + working_index = 0 + return TRUE + +/datum/pathfind/sssp/search_step() + . = ..() + if(!.) + return . + + var/datum/can_pass_info/pass_info = src.pass_info + while(working_index < length(working_queue)) + working_index += 1 + + var/turf/next_turf = working_queue[working_index] + var/distance = working_distances[working_index] + 1 + if(distance > max_distance) + if(TICK_CHECK) + return TRUE + continue + for(var/turf/adjacent in TURF_NEIGHBORS(next_turf)) + // Already have a path? then we're gooood baby + if(working_queue[adjacent]) + continue + + // If it's blocked, go home + if(!CAN_STEP(next_turf, adjacent, simulated_only, pass_info, avoid)) + continue + // I want to prevent diagonal moves around corners + // We do this first because blocked diagonals are more common then non blocked ones. + if(next_turf.x != adjacent.x && next_turf.y != adjacent.y) + var/movement_dir = get_dir(next_turf, adjacent) + // If either of the move components would bump into something, replace it with an explicit move around + var/turf/vertical_move = get_step(next_turf, movement_dir & (NORTH|SOUTH)) + var/turf/horizontal_move = get_step(next_turf, movement_dir & (EAST|WEST)) + if(!working_queue[vertical_move]) + if(CAN_STEP(next_turf, vertical_move, simulated_only, pass_info, avoid)) + working_queue[vertical_move] = next_turf + working_distances += distance + else + // Can't do a vertical move? let's do a horizontal move first + if(!working_queue[horizontal_move]) + working_queue[horizontal_move] = next_turf + working_distances += distance + continue + if(!working_queue[horizontal_move]) + if(CAN_STEP(next_turf, horizontal_move, simulated_only, pass_info, avoid)) + working_queue[horizontal_move] = next_turf + working_distances += distance + else + if(!working_queue[vertical_move]) + working_queue[vertical_move] = next_turf + working_distances += distance + continue + + // Otherwise, this new turf's next closest turf is our source, so we'll mark as such and continue + // This is a breadth first search, we're essentially moving out in layers from the start position + working_queue[adjacent] = next_turf + working_distances += distance + + if(TICK_CHECK) + return TRUE + return TRUE + +/datum/pathfind/sssp/finished() + var/datum/path_map/flow_map = new() + flow_map.start = start + flow_map.pass_info = pass_info + flow_map.pass_space = simulated_only + flow_map.avoid = avoid + flow_map.next_closest = working_queue + flow_map.distances = working_distances + flow_map.creation_time = world.time + hand_back(flow_map) + return ..() diff --git a/code/_onclick/item_attack.dm b/code/_onclick/item_attack.dm index 894e0d63f5b7..848cf74f4d7b 100644 --- a/code/_onclick/item_attack.dm +++ b/code/_onclick/item_attack.dm @@ -70,7 +70,7 @@ return if(!force) - playsound(loc, 'sound/weapons/tap.ogg', get_clamped_volume(), 1, -1) + playsound(loc, 'sound/weapons/tap.ogg', get_clamped_volume(), TRUE, -1) else SEND_SIGNAL(M, COMSIG_ITEM_ATTACK) add_attack_logs(user, M, "Attacked with [name] ([uppertext(user.a_intent)]) ([uppertext(damtype)])", (M.ckey && force > 0 && damtype != STAMINA) ? null : ATKLOG_ALMOSTALL) diff --git a/code/controllers/subsystem/SSthrowing.dm b/code/controllers/subsystem/SSthrowing.dm index 46ecde8aa5ad..1618b44f0619 100644 --- a/code/controllers/subsystem/SSthrowing.dm +++ b/code/controllers/subsystem/SSthrowing.dm @@ -268,6 +268,7 @@ SUBSYSTEM_DEF(throwing) if(thrownthing) SEND_SIGNAL(thrownthing, COMSIG_MOVABLE_THROW_LANDED, src) + thrownthing.end_throw() qdel(src) diff --git a/code/controllers/subsystem/non_firing/SSpathfinder.dm b/code/controllers/subsystem/non_firing/SSpathfinder.dm index 22afcbd4616b..57d34672602b 100644 --- a/code/controllers/subsystem/non_firing/SSpathfinder.dm +++ b/code/controllers/subsystem/non_firing/SSpathfinder.dm @@ -1,45 +1,206 @@ +/// Queues and manages JPS pathfinding steps SUBSYSTEM_DEF(pathfinder) name = "Pathfinder" init_order = INIT_ORDER_PATH - flags = SS_NO_FIRE - var/datum/flowcache/mobs + priority = FIRE_PRIORITY_PATHFINDING + wait = 0.5 + /// List of pathfind datums we are currently trying to process + var/list/datum/pathfind/active_pathing = list() + /// List of pathfind datums being ACTIVELY processed. exists to make subsystem stats readable + var/list/datum/pathfind/currentrun = list() + /// List of uncheccked source_to_map entries + var/list/currentmaps = list() + /// Assoc list of target turf -> list(/datum/path_map) centered on the turf + var/list/source_to_maps = list() var/static/space_type_cache /datum/controller/subsystem/pathfinder/Initialize() space_type_cache = typecacheof(/turf/space) - mobs = new(10) - -/datum/flowcache - var/lcount - var/run - var/free - var/list/flow - -/datum/flowcache/New(n) - . = ..() - lcount = n - run = 0 - free = 1 - flow = new/list(lcount) - -/datum/flowcache/proc/getfree(atom/M) - if(run < lcount) - run += 1 - while(flow[free]) - CHECK_TICK - free = (free % lcount) + 1 - var/t = addtimer(CALLBACK(src, TYPE_PROC_REF(/datum/flowcache, toolong), free), 150, TIMER_STOPPABLE) - flow[free] = t - flow[t] = M - return free - else - return 0 - -/datum/flowcache/proc/toolong(l) - log_game("Pathfinder route took longer than 150 ticks, src bot [flow[flow[l]]]") - found(l) - -/datum/flowcache/proc/found(l) - deltimer(flow[l]) - flow[l] = null - run -= 1 + +/datum/controller/subsystem/pathfinder/stat_entry(msg) + msg = "P:[length(active_pathing)]" + return ..() + +// This is another one of those subsystems (hey lighting) in which one "Run" means fully processing a queue +// We'll use a copy for this just to be nice to people reading the mc panel +/datum/controller/subsystem/pathfinder/fire(resumed) + if(!resumed) + src.currentrun = active_pathing.Copy() + src.currentmaps = deepCopyList(source_to_maps) + + // Dies of sonic speed from caching datum var reads + var/list/currentrun = src.currentrun + while(length(currentrun)) + var/datum/pathfind/path = currentrun[length(currentrun)] + if(!path.search_step()) // Something's wrong + path.early_exit() + currentrun.len-- + continue + if(MC_TICK_CHECK) + return + path.finished() + // Next please + currentrun.len-- + + // Go over our existing pathmaps, clear out the ones we aren't using + var/list/currentmaps = src.currentmaps + var/oldest_time = world.time - MAP_REUSE_SLOWEST + while(length(currentmaps)) + var/turf/source = currentmaps[length(currentmaps)] + var/list/datum/path_map/owned_maps = currentmaps[source] + for(var/datum/path_map/map as anything in owned_maps) + if(map.creation_time < oldest_time && !map.building) + source_to_maps[source] -= map + owned_maps.len-- + if(MC_TICK_CHECK) + return + if(!length(source_to_maps[source])) + source_to_maps -= source + + currentmaps.len-- + +/// Initiates a pathfind. Returns true if we're good, FALSE if something's failed +/datum/controller/subsystem/pathfinder/proc/pathfind(atom/movable/caller, atom/end, max_distance = 30, mintargetdist, access = list(), simulated_only = TRUE, turf/exclude, skip_first = TRUE, diagonal_handling = DIAGONAL_REMOVE_CLUNKY, list/datum/callback/on_finish) + var/datum/pathfind/jps/path = new() + path.setup(caller, access, max_distance, simulated_only, exclude, on_finish, end, mintargetdist, skip_first, diagonal_handling) + if(path.start()) + active_pathing += path + return TRUE + return FALSE + +/// Initiates a swarmed pathfind. Returns TRUE if we're good, FALSE if something's failed +/// If a valid pathmap exists for the TARGET turf we'll use that, otherwise we have to build a new one +/datum/controller/subsystem/pathfinder/proc/swarmed_pathfind(atom/movable/caller, atom/end, max_distance = 30, mintargetdist = 0, age = MAP_REUSE_INSTANT, access = list(), simulated_only = TRUE, turf/exclude, skip_first = TRUE, list/datum/callback/on_finish) + var/turf/target = get_turf(end) + var/datum/can_pass_info/pass_info = new(caller, access) + // If there's a map we can use already, use it + var/datum/path_map/valid_map = get_valid_map(pass_info, target, simulated_only, exclude, age, include_building = TRUE) + if(valid_map && valid_map.expand(max_distance)) + path_map_passalong(on_finish, get_turf(caller), mintargetdist, skip_first, valid_map) + return TRUE + + // Otherwise we're gonna make a new one, and turn it into a path for the callbacks passed into us + var/list/datum/callback/pass_in = list() + pass_in += CALLBACK(GLOBAL_PROC, /proc/path_map_passalong, on_finish, get_turf(caller), mintargetdist, skip_first) + // And to allow subsequent calls to reuse the same map, we'll put a placeholder in the cache, and fill it up when the pathing finishes + var/datum/path_map/empty = new() + empty.pass_info = new(caller, access) + empty.start = target + empty.pass_space = simulated_only + empty.avoid = exclude + empty.building = TRUE + path_map_cache(target, empty) + pass_in += CALLBACK(src, PROC_REF(path_map_fill), target, empty) + if(!SSpathfinder.can_pass_build_map(pass_info, target, max_distance, simulated_only, exclude, pass_in)) + return FALSE + return TRUE + +/// We generate a path for the passed in callbacks, and then pipe it over +/proc/path_map_passalong(list/datum/callback/return_callbacks, turf/target, mintargetdist = 0, skip_first = TRUE, datum/path_map/hand_back) + var/list/requested_path + if(istype(hand_back, /datum/path_map)) + requested_path = hand_back.get_path_from(target, skip_first, mintargetdist) + for(var/datum/callback/return_callback as anything in return_callbacks) + return_callback.Invoke(requested_path) + +/// Caches the passed in path_map, allowing for reuse in future +/datum/controller/subsystem/pathfinder/proc/path_map_cache(turf/target, datum/path_map/hand_back) + // Cache our path_map + if(!target || !hand_back) + return + source_to_maps[target] += list(hand_back) + +/datum/controller/subsystem/pathfinder/proc/path_map_fill(turf/target, datum/path_map/fill_into, datum/path_map/hand_back) + fill_into.building = FALSE + if(!fill_into.compare_against(hand_back)) + source_to_maps[target] -= fill_into + return + fill_into.copy_from(hand_back) + fill_into.creation_time = hand_back.creation_time + // If we aren't in the source list anymore don't go trying to clear it out yeah? + if(!source_to_maps[target] || !(fill_into in source_to_maps[target])) + return + // Let's remove anything we're better than + for(var/datum/path_map/same_target as anything in source_to_maps[target]) + if(fill_into == same_target || !same_target.compare_against(hand_back)) + continue + // If it's still being made it'll be fresher then us + if(same_target.building) + continue + // We assume that we are fresher, and that's all we care about + // If it's being expanded it'll get updated when that finishes, then clear when all the refs drop + source_to_maps[target] -= same_target + +/// Initiates a SSSP run. Returns true if we're good, FALSE if something's failed +/datum/controller/subsystem/pathfinder/proc/build_map(atom/movable/caller, turf/source, max_distance = 30, access = list(), simulated_only = TRUE, turf/exclude, list/datum/callback/on_finish) + var/datum/pathfind/sssp/path = new() + path.setup(caller, access, source, max_distance, simulated_only, exclude, on_finish) + if(path.start()) + active_pathing += path + return TRUE + return FALSE + +/// Initiates a SSSP run from a pass_info datum. Returns true if we're good, FALSE if something's failed +/datum/controller/subsystem/pathfinder/proc/can_pass_build_map(datum/can_pass_info/pass_info, turf/source, max_distance = 30, simulated_only = TRUE, turf/exclude, list/datum/callback/on_finish) + var/datum/pathfind/sssp/path = new() + path.setup_from_canpass(pass_info, source, max_distance, simulated_only, exclude, on_finish) + if(path.start()) + active_pathing += path + return TRUE + return FALSE + +/// Begins to handle a pathfinding run based off the input /datum/pathfind datum +/// You should not use this, it exists to allow for shenanigans. You do not know how to do shenanigans +/datum/controller/subsystem/pathfinder/proc/run_pathfind(datum/pathfind/run) + active_pathing += run + return TRUE + +/// Takes a set of pathfind info, returns the first valid pathmap that would work if one exists +/// Optionally takes a max age to accept (defaults to 0 seconds) and a minimum acceptable range +/// If include_building is true and we can only find a building path, ew'll use that instead. tho we will wait for it to finish first +/datum/controller/subsystem/pathfinder/proc/get_valid_map(datum/can_pass_info/pass_info, turf/target, simulated_only = TRUE, turf/exclude, age = MAP_REUSE_INSTANT, min_range = -INFINITY, include_building = FALSE) + // Walk all the maps that match our caller's turf OR our target's + // Then hold onto em. If their cache time is short we can reuse/expand them, if not we'll have to make a new one + var/oldest_time = world.time - age + /// Backup return value used if no finished pathmaps are found + var/datum/path_map/constructing + for(var/datum/path_map/shared_source as anything in source_to_maps[target]) + if(!shared_source.compare_against_args(pass_info, target, simulated_only, exclude)) + continue + var/max_dist = 0 + if(shared_source.distances.len) + max_dist = shared_source.distances[shared_source.distances.len] + if(max_dist < min_range) + continue + if(oldest_time > shared_source.creation_time && !shared_source.building) + continue + if(shared_source.building) + if(include_building) + constructing = constructing || shared_source + continue + + return shared_source + if(constructing) + UNTIL(constructing.building == FALSE) + return constructing + return null + +/// Takes a set of pathfind info, returns all valid pathmaps that would work +/// Takes an optional minimum range arg +/datum/controller/subsystem/pathfinder/proc/get_valid_maps(datum/can_pass_info/pass_info, turf/target, simulated_only = TRUE, turf/exclude, age = MAP_REUSE_INSTANT, min_range = -INFINITY, include_building = FALSE) + // Walk all the maps that match our caller's turf OR our target's + // Then hold onto em. If their cache time is short we can reuse/expand them, if not we'll have to make a new one + var/list/valid_maps = list() + var/oldest_time = world.time - age + for(var/datum/path_map/shared_source as anything in source_to_maps[target]) + if(shared_source.compare_against_args(pass_info, target, simulated_only, exclude)) + continue + var/max_dist = shared_source.distances[shared_source.distances.len] + if(max_dist < min_range) + continue + if(oldest_time > shared_source.creation_time) + continue + if(!include_building && shared_source.building) + continue + valid_maps += shared_source + return valid_maps diff --git a/code/datums/components/defibrillator.dm b/code/datums/components/defibrillator.dm index 460615868d12..be017d71dd29 100644 --- a/code/datums/components/defibrillator.dm +++ b/code/datums/components/defibrillator.dm @@ -226,7 +226,7 @@ set_cooldown(cooldown) user.visible_message("[defib_ref] pings: Cardiac arrhythmia corrected.") target.visible_message("[target]'s body convulses a bit.", "You feel a jolt, and your heartbeat seems to steady.") - playsound(get_turf(defib_ref), 'sound/machines/defib_zap.ogg', 50, 1, -1) + playsound(get_turf(defib_ref), 'sound/machines/defib_zap.ogg', 50, TRUE, -1) playsound(get_turf(defib_ref), "bodyfall", 50, 1) playsound(get_turf(defib_ref), 'sound/machines/defib_success.ogg', 50, 0) busy = FALSE @@ -240,7 +240,7 @@ target.visible_message("[target]'s body convulses a bit.") playsound(get_turf(defib_ref), "bodyfall", 50, 1) - playsound(get_turf(defib_ref), 'sound/machines/defib_zap.ogg', 50, 1, -1) + playsound(get_turf(defib_ref), 'sound/machines/defib_zap.ogg', 50, TRUE, -1) ghost = target.get_ghost(TRUE) // We have to double check whether the dead guy has entered their body during the above // Run through some quick failure states after shocking. @@ -340,7 +340,7 @@ "[user] touches you with [parent], and you feel a strong jolt!") target.apply_damage(60, STAMINA) target.KnockDown(10 SECONDS) - playsound(get_turf(parent), 'sound/machines/defib_zap.ogg', 50, 1, -1) + playsound(get_turf(parent), 'sound/machines/defib_zap.ogg', 50, TRUE, -1) target.emote("gasp") if(combat && prob(heart_attack_chance)) target.set_heartattack(TRUE) diff --git a/code/datums/components/paintable.dm b/code/datums/components/paintable.dm index 813610f619d0..e77e05147190 100644 --- a/code/datums/components/paintable.dm +++ b/code/datums/components/paintable.dm @@ -27,5 +27,5 @@ current_paint = colour var/atom/A = parent A.add_atom_colour(colour, FIXED_COLOUR_PRIORITY) - playsound(spraycan, 'sound/effects/spray.ogg', 5, 1, 5) + playsound(spraycan, 'sound/effects/spray.ogg', 5, TRUE, 5) to_chat(user, "You spray [spraycan] on [A], painting it.") diff --git a/code/datums/diseases/berserker.dm b/code/datums/diseases/berserker.dm index b9610057d132..0a310eeb8d63 100644 --- a/code/datums/diseases/berserker.dm +++ b/code/datums/diseases/berserker.dm @@ -47,9 +47,9 @@ continue var/damage = rand(1, 5) if(prob(80)) - playsound(affected_mob.loc, "punch", 25, 1, -1) + playsound(affected_mob.loc, "punch", 25, TRUE, -1) affected_mob.visible_message("[affected_mob] hits [M] with [affected_mob.p_their()] thrashing!") M.adjustBruteLoss(damage) else - playsound(affected_mob.loc, 'sound/weapons/punchmiss.ogg', 25, 1, -1) + playsound(affected_mob.loc, 'sound/weapons/punchmiss.ogg', 25, TRUE, -1) affected_mob.visible_message("[affected_mob] fails to hit [M] with [affected_mob.p_their()] thrashing!") diff --git a/code/datums/elements/strippable.dm b/code/datums/elements/strippable.dm index 25d31342532e..349eac0653e4 100644 --- a/code/datums/elements/strippable.dm +++ b/code/datums/elements/strippable.dm @@ -1,3 +1,5 @@ +#define SHOW_MINIATURE_MENU 0 +#define SHOW_FULLSIZE_MENU 1 /// An element for atoms that, when dragged and dropped onto a mob, opens a strip panel. /datum/element/strippable element_flags = ELEMENT_BESPOKE | ELEMENT_DETACH_ON_HOST_DESTROY @@ -370,6 +372,7 @@ // as opposed to "Stripping The alien drone". // Human names will still show without "the", as they are proper nouns. data["name"] = "\the [owner]" + data["show_mode"] = user.client.prefs.toggles2 & PREFTOGGLE_2_BIG_STRIP_MENU ? SHOW_FULLSIZE_MENU : SHOW_MINIATURE_MENU return data @@ -494,3 +497,6 @@ strippable_items[strippable_item.key] = strippable_item return strippable_items + +#undef SHOW_MINIATURE_MENU +#undef SHOW_FULLSIZE_MENU diff --git a/code/datums/emote.dm b/code/datums/emote.dm index 85ea5150a4d3..e5182665a6ba 100644 --- a/code/datums/emote.dm +++ b/code/datums/emote.dm @@ -275,12 +275,12 @@ // Vary needs to be true as otherwise frequency changes get ignored deep within playsound_local :( playsound(user.loc, sound_path, sound_volume, TRUE, frequency = H.get_age_pitch(H.dna.species.max_age) * alter_emote_pitch(user)) else - playsound(user.loc, sound_path, sound_volume, TRUE, frequency = alter_emote_pitch(user)) + playsound(user.loc, sound_path, sound_volume, TRUE, frequency = alter_emote_pitch(user, FALSE)) -/datum/emote/proc/alter_emote_pitch(mob/user) +/datum/emote/proc/alter_emote_pitch(mob/user, multiplicative = TRUE) if(HAS_TRAIT(user, TRAIT_I_WANT_BRAINS)) return 0.7 - return 1 + return multiplicative /** * Send an emote to runechat for all (listening) users in the vicinity. diff --git a/code/datums/mind.dm b/code/datums/mind.dm index 4ff87f420c87..5ccf535012f8 100644 --- a/code/datums/mind.dm +++ b/code/datums/mind.dm @@ -989,7 +989,7 @@ if("changeling") if(!IS_CHANGELING(current)) add_antag_datum(/datum/antagonist/changeling) - to_chat(current, "Your powers have awoken. A flash of memory returns to us... we are a changeling!") + to_chat(current, "Your powers have awoken. A flash of memory returns to us... We are a changeling!") log_admin("[key_name(usr)] has changelinged [key_name(current)]") message_admins("[key_name_admin(usr)] has changelinged [key_name_admin(current)]") @@ -1117,7 +1117,7 @@ SSticker.mode.update_synd_icons_removed(src) special_role = null objective_holder.clear(/datum/objective/nuclear) - to_chat(current, "You have been brainwashed! You are no longer a syndicate operative!") + to_chat(current, "You have been brainwashed! You are no longer a Syndicate operative!") log_admin("[key_name(usr)] has de-nuke op'd [key_name(current)]") message_admins("[key_name_admin(usr)] has de-nuke op'd [key_name_admin(current)]") if("nuclear") @@ -1152,7 +1152,7 @@ qdel(H.w_uniform) if(!SSticker.mode.equip_syndicate(current)) - to_chat(usr, "Equipping a syndicate failed!") + to_chat(usr, "Equipping a Syndicate failed!") return SSticker.mode.update_syndicate_id(current.mind, length(SSticker.mode.syndicates) == 1) log_admin("[key_name(usr)] has equipped [key_name(current)] as a nuclear operative") @@ -1465,7 +1465,7 @@ to_chat(usr, "This only works on humans!") return make_Abductor() - log_admin("[key_name(usr)] turned [current] into abductor.") + log_admin("[key_name(usr)] turned [current] into an abductor.") SSticker.mode.update_abductor_icons_added(src) current.create_log(MISC_LOG, "[current] was made into an abductor by [key_name_admin(usr)]") if("equip") @@ -1529,7 +1529,7 @@ if(has_antag_datum(/datum/antagonist/traitor)) var/datum/antagonist/traitor/T = has_antag_datum(/datum/antagonist/traitor) if(!T.give_uplink()) - to_chat(usr, "Equipping a syndicate failed!") + to_chat(usr, "Equipping a Syndicate failed!") return log_admin("[key_name(usr)] has given [key_name(current)] an uplink") message_admins("[key_name_admin(usr)] has given [key_name_admin(current)] an uplink") diff --git a/code/datums/spells/charge_up_bounce.dm b/code/datums/spells/charge_up_bounce.dm index 6555f7646ce8..516403313d85 100644 --- a/code/datums/spells/charge_up_bounce.dm +++ b/code/datums/spells/charge_up_bounce.dm @@ -57,7 +57,7 @@ create_beam(origin, target) apply_bounce_effect(origin, target, energy, user) add_attack_logs(user, target, "Bounce spell '[src]' bounced on") - playsound(get_turf(target), bounce_hit_sound, 50, 1, -1) + playsound(get_turf(target), bounce_hit_sound, 50, TRUE, -1) if(bounces >= 1) var/list/possible_targets = list() diff --git a/code/datums/spells/ethereal_jaunt.dm b/code/datums/spells/ethereal_jaunt.dm index 731cbaf83d3c..e707040501de 100644 --- a/code/datums/spells/ethereal_jaunt.dm +++ b/code/datums/spells/ethereal_jaunt.dm @@ -53,7 +53,7 @@ jaunt_steam(mobloc) ADD_TRAIT(target, TRAIT_IMMOBILIZED, "jaunt") holder.reappearing = 1 - playsound(get_turf(target), 'sound/magic/ethereal_exit.ogg', 50, 1, -1) + playsound(get_turf(target), 'sound/magic/ethereal_exit.ogg', 50, TRUE, -1) sleep(jaunt_in_time * 4) new jaunt_in_type(mobloc, holder.dir) target.setDir(holder.dir) diff --git a/code/datums/status_effects/debuffs.dm b/code/datums/status_effects/debuffs.dm index caba75e26598..8285baf82e74 100644 --- a/code/datums/status_effects/debuffs.dm +++ b/code/datums/status_effects/debuffs.dm @@ -146,7 +146,7 @@ new /obj/effect/temp_visual/bleed/explode(T) for(var/d in GLOB.alldirs) new /obj/effect/temp_visual/dir_setting/bloodsplatter(T, d) - playsound(T, "desceration", 200, 1, -1) + playsound(T, "desceration", 200, TRUE, -1) owner.adjustBruteLoss(bleed_damage) else new /obj/effect/temp_visual/bleed(get_turf(owner)) diff --git a/code/datums/uplink_items/uplink_general.dm b/code/datums/uplink_items/uplink_general.dm index 06a6832cccfa..2bd08e9c5276 100644 --- a/code/datums/uplink_items/uplink_general.dm +++ b/code/datums/uplink_items/uplink_general.dm @@ -910,7 +910,7 @@ GLOBAL_LIST_INIT(uplink_items, subtypesof(/datum/uplink_item)) This pair has been hardened for special operations personnel." reference = "KOE" item = /obj/item/autosurgeon/organ/syndicate/oneuse/scope_eyes - cost = 20 + cost = 10 //////////////////////////////////////// diff --git a/code/datums/uplink_items/uplink_traitor.dm b/code/datums/uplink_items/uplink_traitor.dm index a6e17d7a6894..e949266ce2ed 100644 --- a/code/datums/uplink_items/uplink_traitor.dm +++ b/code/datums/uplink_items/uplink_traitor.dm @@ -531,6 +531,14 @@ cost = 50 excludefrom = list(UPLINK_TYPE_NUCLEAR, UPLINK_TYPE_SST) +/datum/uplink_item/device_tools/hyper_medipen + name = "Hyper-regenerative Medipen" + desc = "An autoinjector filled with a variety of medical chemicals. It rapidly heals conventional injuries and genetic damage, but loses potency just as quickly. May have side effects if multiple are used in quick succession." + reference = "HMP" + item = /obj/item/reagent_containers/hypospray/autoinjector/hyper_medipen + cost = 10 + excludefrom = list(UPLINK_TYPE_NUCLEAR, UPLINK_TYPE_SST) + /// Nukies get Diamond Tipped Thermal Safe Drill instead /datum/uplink_item/device_tools/thermal_drill name = "Amplifying Thermal Safe Drill" diff --git a/code/game/area/areas/depot-areas.dm b/code/game/area/areas/depot-areas.dm index b9e045e1d456..7c25b50b6239 100644 --- a/code/game/area/areas/depot-areas.dm +++ b/code/game/area/areas/depot-areas.dm @@ -286,7 +286,7 @@ var/log_msg = "[key_name(user)] has triggered the depot self destruct at [A.name] ([T.x],[T.y],[T.z])" message_admins(log_msg) log_game(log_msg) - playsound(user, 'sound/machines/alarm.ogg', 100, 0, 0) + playsound(user, 'sound/machines/alarm.ogg', 100, FALSE, 0) else log_game("Depot self destruct activated.") if(reactor) diff --git a/code/game/atoms.dm b/code/game/atoms.dm index 1ea76eade0a9..c09d202f8660 100644 --- a/code/game/atoms.dm +++ b/code/game/atoms.dm @@ -14,6 +14,8 @@ /// pass_flags that we are. If any of this matches a pass_flag on a moving thing, by default, we let them through. var/pass_flags_self = NONE + /// How this atom should react to having its astar blocking checked + var/can_pathfind_pass = CANPATHFINDPASS_DENSITY var/list/blood_DNA var/blood_color @@ -1254,14 +1256,6 @@ GLOBAL_LIST_EMPTY(blood_splatter_icons) color = C return -/* - Checks whether this atom can traverse the destination object when used as source for AStar. - This should only be used as an override to /obj/proc/CanPathfindPass. Aka don't use this unless you can't change the object's proc. - Returning TRUE here will override the above proc's result. -*/ -/atom/proc/CanPathfindPassTo(ID, dir, obj/destination) - return FALSE - /** Call this when you want to present a renaming prompt to the user. It's a simple proc, but handles annoying edge cases such as forgetting to add a "cancel" button, @@ -1365,16 +1359,18 @@ GLOBAL_LIST_EMPTY(blood_splatter_icons) * For turfs this will only be used if pathing_pass_method is TURF_PATHING_PASS_PROC * * Arguments: - * * ID- An ID card representing what access we have (and thus if we can open things like airlocks or windows to pass through them). The ID card's physical location does not matter, just the reference - * * to_dir- What direction we're trying to move in, relevant for things like directional windows that only block movement in certain directions - * * caller- The movable we're checking pass flags for, if we're making any such checks - * * no_id: When true, doors with public access will count as impassible + * * to_dir - What direction we're trying to move in, relevant for things like directional windows that only block movement in certain directions + * * pass_info - Datum that stores info about the thing that's trying to pass us + * + * IMPORTANT NOTE: /turf/proc/LinkBlockedWithAccess assumes that overrides of CanPathfindPass will always return true if density is FALSE + * If this is NOT you, ensure you edit your can_pathfind_pass variable. Check __DEFINES/path.dm **/ -/atom/proc/CanPathfindPass(obj/item/card/id/ID, to_dir, atom/movable/caller, no_id = FALSE) - if(caller && (caller.pass_flags & pass_flags_self)) +/atom/proc/CanPathfindPass(to_dir, datum/can_pass_info/pass_info) + if(pass_info.pass_flags & pass_flags_self) return TRUE . = !density + /atom/proc/atom_prehit(obj/item/projectile/P) return SEND_SIGNAL(src, COMSIG_ATOM_PREHIT, P) diff --git a/code/game/dna/mutations/mutation_powers.dm b/code/game/dna/mutations/mutation_powers.dm index 0df8ee7db8cf..e24f4b8819a9 100644 --- a/code/game/dna/mutations/mutation_powers.dm +++ b/code/game/dna/mutations/mutation_powers.dm @@ -509,7 +509,7 @@ if(user.restrained())//Why being pulled while cuffed prevents you from moving for(var/mob/living/M in range(user, 1)) if(M.pulling == user) - if(!M.restrained() && M.stat == 0 && !(M.mobility_flags & MOBILITY_STAND) && user.Adjacent(M)) + if(!M.restrained() && M.stat == CONSCIOUS && !(M.mobility_flags & MOBILITY_STAND) && user.Adjacent(M)) failure = TRUE else M.stop_pulling() @@ -685,7 +685,7 @@ to_chat(user, "You can't see into [M.name]'s mind at all!") return - if(M.stat == 2) + if(M.stat == DEAD) to_chat(user, "[M.name] is dead and cannot have [M.p_their()] mind read.") return if(M.health < 0) diff --git a/code/game/gamemodes/miniantags/abduction/abduction_gear.dm b/code/game/gamemodes/miniantags/abduction/abduction_gear.dm index 1827bfb96ece..ec13c9c829b2 100644 --- a/code/game/gamemodes/miniantags/abduction/abduction_gear.dm +++ b/code/game/gamemodes/miniantags/abduction/abduction_gear.dm @@ -332,7 +332,7 @@ CONTENTS: L.visible_message("[user] has stunned [L] with [src]!", \ "[user] has stunned you with [src]!") - playsound(loc, 'sound/weapons/egloves.ogg', 50, 1, -1) + playsound(loc, 'sound/weapons/egloves.ogg', 50, TRUE, -1) add_attack_logs(user, L, "Stunned with [src]") @@ -340,7 +340,7 @@ CONTENTS: if(L.IsStunned() || L.IsSleeping()) L.visible_message("[user] has induced sleep in [L] with [src]!", \ "You suddenly feel very drowsy!") - playsound(loc, 'sound/weapons/egloves.ogg', 50, 1, -1) + playsound(loc, 'sound/weapons/egloves.ogg', 50, TRUE, -1) L.Sleeping(120 SECONDS) add_attack_logs(user, L, "Put to sleep with [src]") else @@ -354,7 +354,7 @@ CONTENTS: return var/mob/living/carbon/C = L if(!C.handcuffed) - playsound(loc, 'sound/weapons/cablecuff.ogg', 30, 1, -2) + playsound(loc, 'sound/weapons/cablecuff.ogg', 30, TRUE, -2) C.visible_message("[user] begins restraining [C] with [src]!", \ "[user] begins shaping an energy field around your hands!") if(do_mob(user, C, 30)) diff --git a/code/game/gamemodes/miniantags/demons/slaughter_demon/slaughter.dm b/code/game/gamemodes/miniantags/demons/slaughter_demon/slaughter.dm index 9274bf55b80b..abb62267c8a5 100644 --- a/code/game/gamemodes/miniantags/demons/slaughter_demon/slaughter.dm +++ b/code/game/gamemodes/miniantags/demons/slaughter_demon/slaughter.dm @@ -297,7 +297,7 @@ /mob/living/simple_animal/demon/slaughter/laughter/release_consumed(mob/living/M) if(M.revive()) M.grab_ghost(force = TRUE) - playsound(get_turf(src), feast_sound, 50, 1, -1) + playsound(get_turf(src), feast_sound, 50, TRUE, -1) to_chat(M, "You leave [src]'s warm embrace, and feel ready to take on the world.") ..(M) diff --git a/code/game/gamemodes/miniantags/guardian/types/explosive_guardian.dm b/code/game/gamemodes/miniantags/guardian/types/explosive_guardian.dm index 4952cf1e36d0..52538dcbab3c 100644 --- a/code/game/gamemodes/miniantags/guardian/types/explosive_guardian.dm +++ b/code/game/gamemodes/miniantags/guardian/types/explosive_guardian.dm @@ -23,7 +23,7 @@ to_chat(src, "You're too far from [A] to disguise it as a bomb.") return if(isobj(A) && can_plant(A)) - if(bomb_cooldown <= world.time && !stat) + if(bomb_cooldown <= world.time && stat == CONSCIOUS) var/obj/item/guardian_bomb/B = new /obj/item/guardian_bomb(get_turf(A)) add_attack_logs(src, A, "booby trapped (summoner: [summoner])") to_chat(src, "Success! Bomb on [A] armed!") diff --git a/code/game/gamemodes/miniantags/guardian/types/healer.dm b/code/game/gamemodes/miniantags/guardian/types/healer.dm index d202fdd1fcdf..845cea11d5b0 100644 --- a/code/game/gamemodes/miniantags/guardian/types/healer.dm +++ b/code/game/gamemodes/miniantags/guardian/types/healer.dm @@ -63,7 +63,7 @@ if(toggle == HEALING) if(iscarbon(target)) changeNext_move(1.5 SECONDS) - if(heal_cooldown <= world.time && !stat) + if(heal_cooldown <= world.time && stat == CONSCIOUS) var/mob/living/carbon/human/C = target C.adjustBruteLoss(-5, robotic=1) C.adjustFireLoss(-5, robotic=1) @@ -78,7 +78,7 @@ if(!iscarbon(target)) return var/mob/living/carbon/human/C = target - if(surgical_cooldown <= world.time && !stat) + if(surgical_cooldown <= world.time && stat == CONSCIOUS) to_chat(src, "You begin to do a mass repair on [C], keep them still!") surgical_cooldown = world.time + 10 SECONDS if(!do_after_once(src, 10 SECONDS, target = src)) diff --git a/code/game/gamemodes/miniantags/guardian/types/standard_guardian.dm b/code/game/gamemodes/miniantags/guardian/types/standard_guardian.dm index d0f7eee819ca..2ffa36b78eb5 100644 --- a/code/game/gamemodes/miniantags/guardian/types/standard_guardian.dm +++ b/code/game/gamemodes/miniantags/guardian/types/standard_guardian.dm @@ -21,10 +21,10 @@ visible_message("[src] punches [target]!") else say("[battlecry][battlecry][battlecry][battlecry][battlecry]", TRUE) - playsound(loc, attack_sound, 50, 1, 1) - playsound(loc, attack_sound, 50, 1, 1) - playsound(loc, attack_sound, 50, 1, 1) - playsound(loc, attack_sound, 50, 1, 1) + playsound(loc, attack_sound, 50, TRUE, 1) + playsound(loc, attack_sound, 50, TRUE, 1) + playsound(loc, attack_sound, 50, TRUE, 1) + playsound(loc, attack_sound, 50, TRUE, 1) /mob/living/simple_animal/hostile/guardian/punch/sealpunch name = "Seal Sprit" diff --git a/code/game/gamemodes/wizard/soulstone.dm b/code/game/gamemodes/wizard/soulstone.dm index 896ecf85717f..9261b150e9dd 100644 --- a/code/game/gamemodes/wizard/soulstone.dm +++ b/code/game/gamemodes/wizard/soulstone.dm @@ -317,7 +317,7 @@ if("VICTIM") var/mob/living/carbon/human/T = target - if(T.stat == 0) + if(T.stat == CONSCIOUS) to_chat(user, "Capture failed! Kill or maim the victim first!") else if(!length(T.client_mobs_in_contents)) diff --git a/code/game/jobs/access.dm b/code/game/jobs/access.dm index 77d58911fede..8148382b446b 100644 --- a/code/game/jobs/access.dm +++ b/code/game/jobs/access.dm @@ -68,31 +68,31 @@ if("VIP Guest") return list(ACCESS_CENT_GENERAL, ACCESS_CENT_LIVING) if("Custodian") - return list(ACCESS_CENT_GENERAL, ACCESS_CENT_LIVING, ACCESS_CENT_MEDICAL, ACCESS_CENT_STORAGE) + return list(ACCESS_CENT_GENERAL, ACCESS_CENT_LIVING) if("Thunderdome Overseer") - return list(ACCESS_CENT_GENERAL, ACCESS_CENT_THUNDER) + return list(ACCESS_CENT_GENERAL) if("Emergency Response Team Officer") - return list(ACCESS_CENT_GENERAL, ACCESS_CENT_LIVING, ACCESS_CENT_MEDICAL, ACCESS_CENT_SECURITY, ACCESS_CENT_STORAGE, ACCESS_CENT_SPECOPS) + get_all_accesses() + return list(ACCESS_CENT_GENERAL, ACCESS_CENT_LIVING, ACCESS_CENT_SECURITY, ACCESS_CENT_SPECOPS) + get_all_accesses() if("Emergency Response Team Engineer") - return list(ACCESS_CENT_GENERAL, ACCESS_CENT_LIVING, ACCESS_CENT_MEDICAL, ACCESS_CENT_SECURITY, ACCESS_CENT_STORAGE, ACCESS_CENT_SPECOPS) + get_all_accesses() + return list(ACCESS_CENT_GENERAL, ACCESS_CENT_LIVING, ACCESS_CENT_SECURITY, ACCESS_CENT_SPECOPS) + get_all_accesses() if("Emergency Response Team Medic") - return list(ACCESS_CENT_GENERAL, ACCESS_CENT_LIVING, ACCESS_CENT_MEDICAL, ACCESS_CENT_SECURITY, ACCESS_CENT_STORAGE, ACCESS_CENT_SPECOPS) + get_all_accesses() + return list(ACCESS_CENT_GENERAL, ACCESS_CENT_LIVING, ACCESS_CENT_SECURITY, ACCESS_CENT_SPECOPS) + get_all_accesses() if("Emergency Response Team Inquisitor") - return list(ACCESS_CENT_GENERAL, ACCESS_CENT_LIVING, ACCESS_CENT_MEDICAL, ACCESS_CENT_SECURITY, ACCESS_CENT_STORAGE, ACCESS_CENT_SPECOPS) + get_all_accesses() + return list(ACCESS_CENT_GENERAL, ACCESS_CENT_LIVING, ACCESS_CENT_SECURITY, ACCESS_CENT_SPECOPS) + get_all_accesses() if("Emergency Response Team Janitor") - return list(ACCESS_CENT_GENERAL, ACCESS_CENT_LIVING, ACCESS_CENT_MEDICAL, ACCESS_CENT_SECURITY, ACCESS_CENT_STORAGE, ACCESS_CENT_SPECOPS) + get_all_accesses() + return list(ACCESS_CENT_GENERAL, ACCESS_CENT_LIVING, ACCESS_CENT_SECURITY, ACCESS_CENT_SPECOPS) + get_all_accesses() if("Emergency Response Team Member") - return list(ACCESS_CENT_GENERAL, ACCESS_CENT_LIVING, ACCESS_CENT_MEDICAL, ACCESS_CENT_SECURITY, ACCESS_CENT_STORAGE, ACCESS_CENT_SPECOPS) + get_all_accesses() + return list(ACCESS_CENT_GENERAL, ACCESS_CENT_LIVING, ACCESS_CENT_SECURITY, ACCESS_CENT_SPECOPS) + get_all_accesses() if("Emergency Response Team Leader") - return list(ACCESS_CENT_GENERAL, ACCESS_CENT_LIVING, ACCESS_CENT_MEDICAL, ACCESS_CENT_SECURITY, ACCESS_CENT_STORAGE, ACCESS_CENT_SPECOPS, ACCESS_CENT_SPECOPS_COMMANDER) + get_all_accesses() + return list(ACCESS_CENT_GENERAL, ACCESS_CENT_LIVING, ACCESS_CENT_SECURITY, ACCESS_CENT_SPECOPS, ACCESS_CENT_SPECOPS_COMMANDER) + get_all_accesses() if("Medical Officer") - return list(ACCESS_CENT_GENERAL, ACCESS_CENT_LIVING, ACCESS_CENT_MEDICAL, ACCESS_CENT_STORAGE) + get_all_accesses() + return list(ACCESS_CENT_GENERAL, ACCESS_CENT_LIVING) + get_all_accesses() if("Intel Officer") - return list(ACCESS_CENT_GENERAL, ACCESS_CENT_LIVING, ACCESS_CENT_SECURITY, ACCESS_CENT_STORAGE) + get_all_accesses() + return list(ACCESS_CENT_GENERAL, ACCESS_CENT_LIVING, ACCESS_CENT_SECURITY) + get_all_accesses() if("Research Officer") - return list(ACCESS_CENT_GENERAL, ACCESS_CENT_SPECOPS, ACCESS_CENT_MEDICAL, ACCESS_CENT_STORAGE, ACCESS_CENT_TELECOMMS, ACCESS_CENT_TELEPORTER) + get_all_accesses() + return list(ACCESS_CENT_GENERAL, ACCESS_CENT_SPECOPS) + get_all_accesses() if("Deathsquad Commando") - return list(ACCESS_CENT_GENERAL, ACCESS_CENT_LIVING, ACCESS_CENT_MEDICAL, ACCESS_CENT_SECURITY, ACCESS_CENT_STORAGE, ACCESS_CENT_SPECOPS, ACCESS_CENT_SPECOPS_COMMANDER, ACCESS_CENT_BLACKOPS) + get_all_accesses() + return list(ACCESS_CENT_GENERAL, ACCESS_CENT_LIVING, ACCESS_CENT_SECURITY, ACCESS_CENT_SPECOPS, ACCESS_CENT_SPECOPS_COMMANDER) + get_all_accesses() if("NT Undercover Operative") return get_all_centcom_access() + get_all_accesses() if("Special Operations Officer") @@ -127,19 +127,18 @@ ACCESS_COURT, ACCESS_CONSTRUCTION, ACCESS_CREMATORIUM, ACCESS_JANITOR, ACCESS_ENGINE, ACCESS_EVA, ACCESS_EXTERNAL_AIRLOCKS, ACCESS_FORENSICS_LOCKERS, ACCESS_GENETICS, ACCESS_EXPEDITION, ACCESS_BRIG, ACCESS_HOP, ACCESS_HOS, ACCESS_HYDROPONICS, ACCESS_CHANGE_IDS, ACCESS_KEYCARD_AUTH, ACCESS_KITCHEN, ACCESS_INTERNAL_AFFAIRS, ACCESS_LIBRARY, ACCESS_MAGISTRATE, ACCESS_MAINT_TUNNELS, ACCESS_HEADS_VAULT, ACCESS_MEDICAL, ACCESS_MIME, - ACCESS_MINING, ACCESS_MINING_STATION, ACCESS_MINERAL_STOREROOM, ACCESS_MORGUE, ACCESS_NETWORK, ACCESS_NTREP, ACCESS_PARAMEDIC, ACCESS_ALL_PERSONAL_LOCKERS, + ACCESS_MINING, ACCESS_MINING_STATION, ACCESS_MINERAL_STOREROOM, ACCESS_MORGUE, ACCESS_NTREP, ACCESS_PARAMEDIC, ACCESS_ALL_PERSONAL_LOCKERS, ACCESS_ENGINE_EQUIP, ACCESS_PSYCHIATRIST, ACCESS_QM, ACCESS_RD, ACCESS_RC_ANNOUNCE, ACCESS_ROBOTICS, ACCESS_TOX, ACCESS_RESEARCH, ACCESS_SECURITY, - ACCESS_SURGERY, ACCESS_TECH_STORAGE, ACCESS_TELEPORTER, ACCESS_THEATRE, ACCESS_TCOMSAT, ACCESS_TOX_STORAGE, ACCESS_VIROLOGY, ACCESS_WEAPONS, ACCESS_XENOBIOLOGY, - ACCESS_XENOARCH) + ACCESS_SURGERY, ACCESS_TECH_STORAGE, ACCESS_TELEPORTER, ACCESS_THEATRE, ACCESS_TCOMSAT, ACCESS_TOX_STORAGE, ACCESS_VIROLOGY, ACCESS_WEAPONS, ACCESS_XENOBIOLOGY) /proc/get_all_centcom_access() - return list(ACCESS_CENT_GENERAL, ACCESS_CENT_LIVING, ACCESS_CENT_MEDICAL, ACCESS_CENT_SECURITY, ACCESS_CENT_STORAGE, ACCESS_CENT_SHUTTLES, ACCESS_CENT_TELECOMMS, ACCESS_CENT_TELEPORTER, ACCESS_CENT_SPECOPS, ACCESS_CENT_SPECOPS_COMMANDER, ACCESS_CENT_BLACKOPS, ACCESS_CENT_THUNDER, ACCESS_CENT_BRIDGE, ACCESS_CENT_COMMANDER) + return list(ACCESS_CENT_GENERAL, ACCESS_CENT_LIVING, ACCESS_CENT_SECURITY, ACCESS_CENT_SHUTTLES, ACCESS_CENT_SPECOPS, ACCESS_CENT_SPECOPS_COMMANDER, ACCESS_CENT_COMMANDER) /proc/get_all_syndicate_access() return list(ACCESS_SYNDICATE, ACCESS_SYNDICATE_LEADER, ACCESS_SYNDICATE_COMMAND) /proc/get_all_misc_access() - return list(ACCESS_TRADE_SOL, ACCESS_CRATE_CASH, ACCESS_AWAY01) + return list(ACCESS_TRADE_SOL, ACCESS_AWAY01) /proc/get_absolutely_all_accesses() return (get_all_accesses() | get_all_centcom_access() | get_all_syndicate_access() | get_all_misc_access()) @@ -155,7 +154,7 @@ if(REGION_MEDBAY) //medbay return list(ACCESS_MEDICAL, ACCESS_GENETICS, ACCESS_MORGUE, ACCESS_CHEMISTRY, ACCESS_PSYCHIATRIST, ACCESS_VIROLOGY, ACCESS_SURGERY, ACCESS_CMO, ACCESS_PARAMEDIC) if(REGION_RESEARCH) //research - return list(ACCESS_RESEARCH, ACCESS_TOX, ACCESS_TOX_STORAGE, ACCESS_GENETICS, ACCESS_ROBOTICS, ACCESS_XENOBIOLOGY, ACCESS_XENOARCH, ACCESS_MINISAT, ACCESS_RD, ACCESS_NETWORK) + return list(ACCESS_RESEARCH, ACCESS_TOX, ACCESS_TOX_STORAGE, ACCESS_GENETICS, ACCESS_ROBOTICS, ACCESS_XENOBIOLOGY, ACCESS_MINISAT, ACCESS_RD) if(REGION_ENGINEERING) //engineering and maintenance return list(ACCESS_CONSTRUCTION, ACCESS_MAINT_TUNNELS, ACCESS_ENGINE, ACCESS_ENGINE_EQUIP, ACCESS_EXTERNAL_AIRLOCKS, ACCESS_TECH_STORAGE, ACCESS_ATMOSPHERICS, ACCESS_MINISAT, ACCESS_CE) if(REGION_SUPPLY) //supply @@ -231,8 +230,6 @@ return "Maintenance" if(ACCESS_EXTERNAL_AIRLOCKS) return "External Airlocks" - if(ACCESS_EMERGENCY_STORAGE) - return "Emergency Storage" if(ACCESS_CHANGE_IDS) return "ID Computer" if(ACCESS_AI_UPLOAD) @@ -285,28 +282,18 @@ return "Surgery" if(ACCESS_THEATRE) return "Theatre" - if(ACCESS_MANUFACTURING) - return "Manufacturing" if(ACCESS_RESEARCH) return "Science" if(ACCESS_MINING) return "Mining Dock" - if(ACCESS_MINING_OFFICE) - return "Mining Office" if(ACCESS_MAILSORTING) return "Mail Sorting" - if(ACCESS_MINT) - return "Mint" - if(ACCESS_MINT_VAULT) - return "Mint Vault" if(ACCESS_HEADS_VAULT) return "Main Vault" if(ACCESS_MINING_STATION) return "Mining Outpost" if(ACCESS_XENOBIOLOGY) return "Xenobiology Lab" - if(ACCESS_XENOARCH) - return "Xenoarchaeology" if(ACCESS_HOP) return "Head of Personnel" if(ACCESS_HOS) @@ -319,8 +306,6 @@ return "Keycode Auth. Device" if(ACCESS_TCOMSAT) return "Telecommunications" - if(ACCESS_NETWORK) - return "Network Access" if(ACCESS_EXPEDITION) return "Expedition" if(ACCESS_SEC_DOORS) @@ -346,28 +331,14 @@ return "General Access" if(ACCESS_CENT_LIVING) return "Living Quarters" - if(ACCESS_CENT_MEDICAL) - return "Medical" if(ACCESS_CENT_SECURITY) return "Security" - if(ACCESS_CENT_STORAGE) - return "Storage" if(ACCESS_CENT_SHUTTLES) return "Shuttles" - if(ACCESS_CENT_TELECOMMS) - return "Telecommunications" - if(ACCESS_CENT_TELEPORTER) - return "Teleporter" if(ACCESS_CENT_SPECOPS) return "Special Ops" if(ACCESS_CENT_SPECOPS_COMMANDER) return "Special Ops Commander" - if(ACCESS_CENT_BLACKOPS) - return "Black Ops" - if(ACCESS_CENT_THUNDER) - return "Thunderdome" - if(ACCESS_CENT_BRIDGE) - return "Bridge" if(ACCESS_CENT_COMMANDER) return "Commander" diff --git a/code/game/jobs/job/engineering_jobs.dm b/code/game/jobs/job/engineering_jobs.dm index 13df0ba6d61c..03a87443c3f7 100644 --- a/code/game/jobs/job/engineering_jobs.dm +++ b/code/game/jobs/job/engineering_jobs.dm @@ -11,7 +11,7 @@ req_admin_notify = 1 department_account_access = TRUE access = list(ACCESS_ENGINE, ACCESS_ENGINE_EQUIP, ACCESS_TECH_STORAGE, ACCESS_MAINT_TUNNELS, - ACCESS_TELEPORTER, ACCESS_EXTERNAL_AIRLOCKS, ACCESS_ATMOSPHERICS, ACCESS_EMERGENCY_STORAGE, ACCESS_EVA, + ACCESS_TELEPORTER, ACCESS_EXTERNAL_AIRLOCKS, ACCESS_ATMOSPHERICS, ACCESS_EVA, ACCESS_HEADS, ACCESS_CONSTRUCTION, ACCESS_SEC_DOORS, ACCESS_CE, ACCESS_RC_ANNOUNCE, ACCESS_KEYCARD_AUTH, ACCESS_TCOMSAT, ACCESS_MINISAT, ACCESS_MINERAL_STOREROOM, ACCESS_WEAPONS) minimal_player_age = 21 @@ -90,7 +90,7 @@ supervisors = "главным инженером" department_head = list("Chief Engineer") selection_color = "#fff5cc" - access = list(ACCESS_EVA, ACCESS_ATMOSPHERICS, ACCESS_MAINT_TUNNELS, ACCESS_EXTERNAL_AIRLOCKS, ACCESS_EMERGENCY_STORAGE, ACCESS_CONSTRUCTION, ACCESS_MINERAL_STOREROOM, ACCESS_TECH_STORAGE) + access = list(ACCESS_EVA, ACCESS_ATMOSPHERICS, ACCESS_MAINT_TUNNELS, ACCESS_EXTERNAL_AIRLOCKS, ACCESS_CONSTRUCTION, ACCESS_MINERAL_STOREROOM, ACCESS_TECH_STORAGE) alt_titles = list("Atmospheric Technician") minimal_player_age = 7 exp_map = list(EXP_TYPE_CREW = 300) diff --git a/code/game/jobs/job/medical_jobs.dm b/code/game/jobs/job/medical_jobs.dm index 5fd6fb6185fd..135e6390e527 100644 --- a/code/game/jobs/job/medical_jobs.dm +++ b/code/game/jobs/job/medical_jobs.dm @@ -308,7 +308,6 @@ ACCESS_MINERAL_STOREROOM, ACCESS_MINING_STATION, ACCESS_MINING, - ACCESS_MINT, ACCESS_MORGUE, ACCESS_PARAMEDIC ) diff --git a/code/game/jobs/job/science_jobs.dm b/code/game/jobs/job/science_jobs.dm index 9b1b45dba24a..06ac021ca19f 100644 --- a/code/game/jobs/job/science_jobs.dm +++ b/code/game/jobs/job/science_jobs.dm @@ -21,7 +21,6 @@ ACCESS_MINERAL_STOREROOM, ACCESS_MINISAT, ACCESS_MORGUE, - ACCESS_NETWORK, ACCESS_RC_ANNOUNCE, ACCESS_RD, ACCESS_RESEARCH, @@ -32,7 +31,6 @@ ACCESS_TELEPORTER, ACCESS_TOX_STORAGE, ACCESS_TOX, - ACCESS_XENOARCH, ACCESS_XENOBIOLOGY, ACCESS_WEAPONS ) @@ -83,7 +81,6 @@ ACCESS_RESEARCH, ACCESS_TOX_STORAGE, ACCESS_TOX, - ACCESS_XENOARCH, ACCESS_XENOBIOLOGY ) alt_titles = list("Xenoarcheologist", "Anomalist", "Plasma Researcher", "Xenobiologist", "Chemical Researcher") diff --git a/code/game/jobs/job/support.dm b/code/game/jobs/job/support.dm index 9cb75295592d..ccf93842238e 100644 --- a/code/game/jobs/job/support.dm +++ b/code/game/jobs/job/support.dm @@ -22,7 +22,6 @@ ACCESS_MINERAL_STOREROOM, ACCESS_MINING_STATION, ACCESS_MINING, - ACCESS_MINT, ACCESS_QM, ACCESS_RC_ANNOUNCE, ACCESS_SEC_DOORS, @@ -105,7 +104,6 @@ ACCESS_MINERAL_STOREROOM, ACCESS_MINING_STATION, ACCESS_MINING, - ACCESS_MINT, ) alt_titles = list("Spelunker") outfit = /datum/outfit/job/mining diff --git a/code/game/machinery/PDApainter.dm b/code/game/machinery/PDApainter.dm index f5ef17c1d15a..5e5edfdcefb3 100644 --- a/code/game/machinery/PDApainter.dm +++ b/code/game/machinery/PDApainter.dm @@ -174,7 +174,7 @@ if(storedpda) storedpda.icon_state = preview_icon_state storedpda.desc = colorlist[preview_icon_state][2] - playsound(loc, 'sound/effects/spray.ogg', 5, 1, 5) + playsound(loc, 'sound/effects/spray.ogg', 5, TRUE, 5) update_pda_cache() /obj/machinery/pdapainter/proc/update_pda_cache() diff --git a/code/game/machinery/camera/tracking.dm b/code/game/machinery/camera/tracking.dm index c2d6f34ea952..b63a9f85e38f 100644 --- a/code/game/machinery/camera/tracking.dm +++ b/code/game/machinery/camera/tracking.dm @@ -9,7 +9,7 @@ track.cameras.Cut() - if(src.stat == 2) + if(stat == DEAD) return var/list/L = list() @@ -33,7 +33,7 @@ set category = "Команды ИИ" set name = "Показать список камер" - if(src.stat == 2) + if(stat == DEAD) to_chat(src, "Вы не можете посмотреть список камер, поскольку мертвы!") return @@ -60,7 +60,7 @@ track.humans.Cut() track.others.Cut() - if(usr.stat == 2) + if(usr.stat == DEAD) return list() for(var/mob/living/M in GLOB.mob_list) diff --git a/code/game/machinery/doors/airlock.dm b/code/game/machinery/doors/airlock.dm index 483a1d4935bb..e91ebc1983d3 100644 --- a/code/game/machinery/doors/airlock.dm +++ b/code/game/machinery/doors/airlock.dm @@ -624,9 +624,9 @@ GLOBAL_LIST_EMPTY(airlock_emissive_underlays) if("closing") update_icon(AIRLOCK_CLOSING) if("deny") - if(!stat) + if(stat == CONSCIOUS) update_icon(AIRLOCK_DENY) - playsound(src,doorDeni,50,0,3) + playsound(src, doorDeni, 50, FALSE, 3) sleep(6) update_icon(AIRLOCK_CLOSED) @@ -1368,7 +1368,7 @@ GLOBAL_LIST_EMPTY(airlock_emissive_underlays) return 0 locked = TRUE - playsound(src, boltDown, 30, 0, 3) + playsound(src, boltDown, 30, FALSE, 3) update_icon() return 1 @@ -1381,17 +1381,17 @@ GLOBAL_LIST_EMPTY(airlock_emissive_underlays) return locked = FALSE - playsound(src,boltUp, 30, 0, 3) + playsound(src,boltUp, 30, FALSE, 3) update_icon() return 1 -/obj/machinery/door/airlock/CanPathfindPass(obj/item/card/id/ID, to_dir, atom/movable/caller, no_id = FALSE) +/obj/machinery/door/airlock/CanPathfindPass(to_dir, datum/can_pass_info/pass_info) if(!density) return TRUE - if(caller?.checkpass(PASSDOOR) && !locked) + if(pass_info.pass_flags & PASSDOOR && !locked) return TRUE //Airlock is passable if it is open (!density), bot has access, and is not bolted or welded shut) - return check_access(ID) && !locked && !welded && arePowerSystemsOn() && !no_id + return check_access_list(pass_info.access) && !locked && !welded && arePowerSystemsOn() && !pass_info.no_id /obj/machinery/door/airlock/emag_act(mob/user) if(!operating && density && arePowerSystemsOn() && !emagged) @@ -1500,7 +1500,7 @@ GLOBAL_LIST_EMPTY(airlock_emissive_underlays) /obj/machinery/door/airlock/hostile_lockdown(mob/origin) // Must be powered and have working AI wire. - if(canAIControl(src) && !stat) + if(canAIControl(src) && stat == CONSCIOUS) locked = FALSE //For airlocks that were bolted open. safe = FALSE //DOOR CRUSH close() @@ -1511,7 +1511,7 @@ GLOBAL_LIST_EMPTY(airlock_emissive_underlays) /obj/machinery/door/airlock/disable_lockdown() // Must be powered and have working AI wire. - if(canAIControl(src) && !stat) + if(canAIControl(src) && stat == CONSCIOUS) unlock() electrified_until = 0 open() diff --git a/code/game/machinery/doors/door.dm b/code/game/machinery/doors/door.dm index 3a563f347bc6..f338a799e4b3 100644 --- a/code/game/machinery/doors/door.dm +++ b/code/game/machinery/doors/door.dm @@ -350,7 +350,7 @@ else flick("doorc1", src) if("deny") - if(!stat) + if(stat == CONSCIOUS) flick("door_deny", src) /obj/machinery/door/proc/open() @@ -509,12 +509,12 @@ zap_flags &= ~ZAP_OBJ_DAMAGE . = ..() -/obj/machinery/door/CanPathfindPass(obj/item/card/id/ID, to_dir, atom/movable/caller, no_id) - if(QDELETED(caller)) +/obj/machinery/door/CanPathfindPass(to_dir, datum/can_pass_info/pass_info) + if(!locateUID(pass_info.caller_uid)) return ..() - if(caller.checkpass(PASSDOOR) && !locked) + if(pass_info.pass_flags & PASSDOOR && !locked) return TRUE - if(caller.checkpass(PASSGLASS)) + if(pass_info.pass_flags & PASSGLASS) return !opacity return ..() @@ -537,9 +537,9 @@ /obj/machinery/door/proc/update_bounds() if(width <= 1) return - + QDEL_LIST_CONTENTS(fillers) - + if(dir in list(EAST, WEST)) bound_width = width * world.icon_size bound_height = world.icon_size diff --git a/code/game/machinery/doors/windowdoor.dm b/code/game/machinery/doors/windowdoor.dm index 3c965d1aed2a..e211162fa39d 100644 --- a/code/game/machinery/doors/windowdoor.dm +++ b/code/game/machinery/doors/windowdoor.dm @@ -169,8 +169,8 @@ return TRUE //used in the AStar algorithm to determinate if the turf the door is on is passable -/obj/machinery/door/window/CanPathfindPass(obj/item/card/id/ID, to_dir, no_id = FALSE) - return !density || (dir != to_dir) || (check_access(ID) && hasPower()) +/obj/machinery/door/window/CanPathfindPass(to_dir, datum/can_pass_info/pass_info) + return !density || (dir != to_dir) || (check_access_list(pass_info.access) && hasPower()) /obj/machinery/door/window/CheckExit(atom/movable/mover, turf/target) if(istype(mover) && mover.checkpass(PASSGLASS)) diff --git a/code/game/machinery/firealarm.dm b/code/game/machinery/firealarm.dm index 0ec1bb2b8f7b..27e34b3a3903 100644 --- a/code/game/machinery/firealarm.dm +++ b/code/game/machinery/firealarm.dm @@ -217,7 +217,7 @@ FIRE ALARM /obj/machinery/firealarm/take_damage(damage_amount, damage_type = BRUTE, damage_flag = 0, sound_effect = 1, attack_dir) . = ..() if(.) //damage received - if(obj_integrity > 0 && !(stat & BROKEN) && buildstage != 0) + if(obj_integrity > 0 && !(stat & BROKEN) && buildstage != 0 && !emagged) if(prob(33)) alarm() diff --git a/code/game/machinery/iv_drip.dm b/code/game/machinery/iv_drip.dm index 4afbe9da35ea..431e78e175a5 100644 --- a/code/game/machinery/iv_drip.dm +++ b/code/game/machinery/iv_drip.dm @@ -94,7 +94,7 @@ . = ..() if(!.) // ..() will return 0 if we didn't actually move anywhere. return - playsound(loc, pick('sound/items/cartwheel1.ogg', 'sound/items/cartwheel2.ogg'), 100, 1, ignore_walls = FALSE) + playsound(loc, pick('sound/items/cartwheel1.ogg', 'sound/items/cartwheel2.ogg'), 100, TRUE, ignore_walls = FALSE) #undef IV_TAKING #undef IV_INJECTING diff --git a/code/game/machinery/portable_turret.dm b/code/game/machinery/portable_turret.dm index 1f585c9ffe1b..017fede11642 100644 --- a/code/game/machinery/portable_turret.dm +++ b/code/game/machinery/portable_turret.dm @@ -416,7 +416,7 @@ GLOBAL_LIST_EMPTY(turret_icons) M.changeNext_move(CLICK_CD_MELEE) M.do_attack_animation(src) if(!(stat & BROKEN)) - playsound(src.loc, 'sound/weapons/slash.ogg', 25, 1, -1) + playsound(src.loc, 'sound/weapons/slash.ogg', 25, TRUE, -1) visible_message("[M] has slashed at [src]!") take_damage(15) else @@ -1085,8 +1085,8 @@ GLOBAL_LIST_EMPTY(turret_icons) /obj/machinery/porta_turret/syndicate/CanPass(atom/A) return ((stat & BROKEN) || !isliving(A)) -/obj/machinery/porta_turret/syndicate/CanPathfindPass(obj/item/card/id/ID, to_dir, atom/movable/caller, no_id = FALSE) - return ((stat & BROKEN) || !isliving(caller)) +/obj/machinery/porta_turret/syndicate/CanPathfindPass(to_dir, datum/can_pass_info/pass_info) + return ((stat & BROKEN) || !pass_info.is_living) /obj/machinery/porta_turret/syndicate/die() . = ..() @@ -1208,5 +1208,5 @@ GLOBAL_LIST_EMPTY(turret_icons) /obj/machinery/porta_turret/inflatable_turret/CanPass(atom/A) return ((stat & BROKEN) || !isliving(A)) -/obj/machinery/porta_turret/inflatable_turret/CanPathfindPass(obj/item/card/id/ID, to_dir, atom/movable/caller, no_id = FALSE) - return ((stat & BROKEN) || !isliving(caller)) +/obj/machinery/porta_turret/inflatable_turret/CanPathfindPass(to_dir, datum/can_pass_info/pass_info) + return ((stat & BROKEN) || !pass_info.is_living) diff --git a/code/game/machinery/shieldgen.dm b/code/game/machinery/shieldgen.dm index bd9f7066f8c3..c51c0d667108 100644 --- a/code/game/machinery/shieldgen.dm +++ b/code/game/machinery/shieldgen.dm @@ -573,12 +573,10 @@ return FALSE return ..(mover, target, height) -/obj/machinery/shieldwall/syndicate/CanPathfindPass(obj/item/card/id/ID, to_dir, caller, no_id = FALSE) - if(isliving(caller)) - var/mob/living/M = caller - if("syndicate" in M.faction) - return TRUE - return ..(ID, to_dir, caller) +/obj/machinery/shieldwall/syndicate/CanPathfindPass(to_dir, datum/can_pass_info/pass_info) + if(pass_info.is_living && ("syndicate" in pass_info.factions)) + return TRUE + return ..(to_dir, pass_info) /obj/machinery/shieldwall/syndicate/proc/phaseout() // If you're bumping into an invisible shield, make it fully visible, then fade out over a couple of seconds. diff --git a/code/game/machinery/suit_storage_unit.dm b/code/game/machinery/suit_storage_unit.dm index 4aa512b173fb..6a3d980797d9 100644 --- a/code/game/machinery/suit_storage_unit.dm +++ b/code/game/machinery/suit_storage_unit.dm @@ -238,44 +238,12 @@ /obj/machinery/suit_storage_unit/syndicate/secure secure = TRUE -//telecoms NASA SSU. Suits themselves are assigned in Initialize -/obj/machinery/suit_storage_unit/telecoms - mask_type = /obj/item/clothing/mask/breath - storage_type = /obj/item/tank/jetpack/void - req_access = list(ACCESS_TCOMSAT) - -/obj/machinery/suit_storage_unit/telecoms/secure - secure = TRUE - /obj/machinery/suit_storage_unit/radsuit name = "radiation suit storage unit" suit_type = /obj/item/clothing/suit/radiation helmet_type = /obj/item/clothing/head/radiation storage_type = /obj/item/geiger_counter -//copied from /obj/effect/nasavoidsuitspawner -/obj/machinery/suit_storage_unit/telecoms/Initialize() - switch(pick("red", "green", "ntblue", "purple", "yellow", "ltblue")) - if("red") - helmet_type = /obj/item/clothing/head/helmet/space/nasavoid - suit_type = /obj/item/clothing/suit/space/nasavoid - if("green") - helmet_type = /obj/item/clothing/head/helmet/space/nasavoid/green - suit_type = /obj/item/clothing/suit/space/nasavoid/green - if("ntblue") - helmet_type = /obj/item/clothing/head/helmet/space/nasavoid/ntblue - suit_type = /obj/item/clothing/suit/space/nasavoid/ntblue - if("purple") - helmet_type = /obj/item/clothing/head/helmet/space/nasavoid/purple - suit_type = /obj/item/clothing/suit/space/nasavoid/purple - if("yellow") - helmet_type = /obj/item/clothing/head/helmet/space/nasavoid/yellow - suit_type = /obj/item/clothing/suit/space/nasavoid/yellow - if("ltblue") - helmet_type = /obj/item/clothing/head/helmet/space/nasavoid/ltblue - suit_type = /obj/item/clothing/suit/space/nasavoid/ltblue - ..() - /obj/machinery/suit_storage_unit/Initialize() . = ..() diff --git a/code/game/machinery/syndicatebomb.dm b/code/game/machinery/syndicatebomb.dm index 3859c6a0c629..d4d0257317dd 100644 --- a/code/game/machinery/syndicatebomb.dm +++ b/code/game/machinery/syndicatebomb.dm @@ -522,7 +522,7 @@ message_admins(adminlog) log_game(adminlog) - playsound(loc, 'sound/effects/bamf.ogg', 75, 1, 5) + playsound(loc, 'sound/effects/bamf.ogg', 75, TRUE, 5) if(loc && istype(loc, /obj/machinery/syndicatebomb)) qdel(loc) diff --git a/code/game/mecha/equipment/tools/medical_tools.dm b/code/game/mecha/equipment/tools/medical_tools.dm index f090c33faf00..cb5cf0a9046f 100644 --- a/code/game/mecha/equipment/tools/medical_tools.dm +++ b/code/game/mecha/equipment/tools/medical_tools.dm @@ -105,7 +105,7 @@ if(output) var/temp = "" if(patient) - temp = "
\[Occupant: [patient] ([patient.stat > 1 ? "*DECEASED*" : "Health: [patient.health]%"])\]
View stats|Eject" + temp = "
\[Occupant: [patient] ([patient.stat == DEAD ? "*DECEASED*" : "Health: [patient.health]%"])\]
View stats|Eject" return "[output] [temp]" /obj/item/mecha_parts/mecha_equipment/medical/sleeper/Topic(href,href_list) @@ -161,7 +161,7 @@ t1 = "*dead*" else t1 = "Unknown" - return {"Health: [patient.stat > 1 ? "[t1]" : "[patient.health]% ([t1])"]
+ return {"Health: [patient.stat == DEAD ? "[t1]" : "[patient.health]% ([t1])"]
Core Temperature: [patient.bodytemperature-T0C]°C ([patient.bodytemperature*1.8-459.67]°F)
Brute Damage: [patient.getBruteLoss()]%
Respiratory Damage: [patient.getOxyLoss()]%
diff --git a/code/game/mecha/equipment/tools/work_tools.dm b/code/game/mecha/equipment/tools/work_tools.dm index 7b7976c79c07..0ef043446c2f 100644 --- a/code/game/mecha/equipment/tools/work_tools.dm +++ b/code/game/mecha/equipment/tools/work_tools.dm @@ -147,10 +147,10 @@ var/obj/structure/reagent_dispensers/watertank/WT = target WT.reagents.trans_to(src, 1000) occupant_message("Extinguisher refilled.") - playsound(chassis, 'sound/effects/refill.ogg', 50, 1, -6) + playsound(chassis, 'sound/effects/refill.ogg', 50, TRUE, -6) else if(reagents.total_volume > 0) - playsound(chassis, 'sound/effects/extinguish.ogg', 75, 1, -3) + playsound(chassis, 'sound/effects/extinguish.ogg', 75, TRUE, -3) var/direction = get_dir(chassis,target) var/turf/T = get_turf(target) var/turf/T1 = get_step(T,turn(direction, 90)) diff --git a/code/game/mecha/mecha.dm b/code/game/mecha/mecha.dm index 94eebd80efb2..0c7d5ca91db4 100644 --- a/code/game/mecha/mecha.dm +++ b/code/game/mecha/mecha.dm @@ -421,7 +421,7 @@ L.buckled = 0 L.Weaken(10 SECONDS) L.apply_effect(STUTTER, 10 SECONDS) - playsound(src, pick(hit_sound), 50, 0, 0) + playsound(src, pick(hit_sound), 50, FALSE, 0) breakthrough = TRUE else @@ -555,7 +555,7 @@ /obj/mecha/attack_hand(mob/living/user) user.changeNext_move(CLICK_CD_MELEE) user.do_attack_animation(src, ATTACK_EFFECT_PUNCH) - playsound(loc, 'sound/weapons/tap.ogg', 40, 1, -1) + playsound(loc, 'sound/weapons/tap.ogg', 40, TRUE, -1) user.visible_message("[user] hits [name]. Nothing happens", "You hit [name] with no visible effect.") log_message("Attack by hand/paw. Attacker - [user].") diff --git a/code/game/mecha/mecha_topic.dm b/code/game/mecha/mecha_topic.dm index b00cd44314bb..188a9a8c399d 100644 --- a/code/game/mecha/mecha_topic.dm +++ b/code/game/mecha/mecha_topic.dm @@ -250,7 +250,7 @@ return if(href_list["close"]) return - if(usr.stat > 0) + if(usr.stat != CONSCIOUS) return var/datum/topic_input/afilter = new /datum/topic_input(href,href_list) if(href_list["select_equip"]) diff --git a/code/game/objects/items.dm b/code/game/objects/items.dm index 00b94e359f56..9f6a203748e6 100644 --- a/code/game/objects/items.dm +++ b/code/game/objects/items.dm @@ -625,7 +625,7 @@ GLOBAL_DATUM_INIT(welding_sparks, /mutable_appearance, mutable_appearance('icons src.add_fingerprint(user) - playsound(loc, src.hitsound, 30, 1, -1) + playsound(loc, src.hitsound, 30, TRUE, -1) user.do_attack_animation(M) diff --git a/code/game/objects/items/cardboard_cutouts.dm b/code/game/objects/items/cardboard_cutouts.dm index 18e3de3759ed..1995f8d2e8ff 100644 --- a/code/game/objects/items/cardboard_cutouts.dm +++ b/code/game/objects/items/cardboard_cutouts.dm @@ -47,9 +47,9 @@ if(I.flags & NOBLUDGEON) return if(!I.force) - playsound(loc, 'sound/weapons/tap.ogg', 20, 1, -1) + playsound(loc, 'sound/weapons/tap.ogg', 20, TRUE, -1) else if(I.hitsound) - playsound(loc, I.hitsound, 20, 1, -1) + playsound(loc, I.hitsound, 20, TRUE, -1) user.changeNext_move(CLICK_CD_MELEE) user.do_attack_animation(src) diff --git a/code/game/objects/items/devices/chameleon_counter.dm b/code/game/objects/items/devices/chameleon_counter.dm index c32d56d7f1a3..bef3d4e5681b 100644 --- a/code/game/objects/items/devices/chameleon_counter.dm +++ b/code/game/objects/items/devices/chameleon_counter.dm @@ -27,7 +27,7 @@ return if(dummy_active || !isitem(target)) return - playsound(get_turf(src), 'sound/weapons/flash.ogg', 100, 1, -6) + playsound(get_turf(src), 'sound/weapons/flash.ogg', 100, TRUE, -6) to_chat(user, "Scanned [target].") saved_name = target.name saved_desc = target.desc @@ -43,7 +43,7 @@ /obj/item/chameleon_counterfeiter/proc/matter_toggle(mob/living/user) if(!can_use || !saved_name) return - playsound(get_turf(src), 'sound/effects/pop.ogg', 100, 1, -6) + playsound(get_turf(src), 'sound/effects/pop.ogg', 100, TRUE, -6) if(dummy_active) matter_deactivate() to_chat(user, "You deactivate [src].") diff --git a/code/game/objects/items/devices/chameleonproj.dm b/code/game/objects/items/devices/chameleonproj.dm index 5470f5adeec1..673140791c39 100644 --- a/code/game/objects/items/devices/chameleonproj.dm +++ b/code/game/objects/items/devices/chameleonproj.dm @@ -39,7 +39,7 @@ return if(!active_dummy) if(isitem(target) && !istype(target, /obj/item/disk/nuclear)) - playsound(get_turf(src), 'sound/weapons/flash.ogg', 100, 1, -6) + playsound(get_turf(src), 'sound/weapons/flash.ogg', 100, TRUE, -6) to_chat(user, "Scanned [target].") saved_item = target.type saved_icon = target.icon @@ -55,7 +55,7 @@ return if(active_dummy) eject_all() - playsound(get_turf(src), 'sound/effects/pop.ogg', 100, 1, -6) + playsound(get_turf(src), 'sound/effects/pop.ogg', 100, TRUE, -6) QDEL_NULL(active_dummy) to_chat(usr, "You deactivate [src].") var/obj/effect/overlay/T = new/obj/effect/overlay(get_turf(src)) @@ -64,7 +64,7 @@ spawn(8) qdel(T) else - playsound(get_turf(src), 'sound/effects/pop.ogg', 100, 1, -6) + playsound(get_turf(src), 'sound/effects/pop.ogg', 100, TRUE, -6) var/obj/O = new saved_item(src) if(!O) return diff --git a/code/game/objects/items/devices/powersink.dm b/code/game/objects/items/devices/powersink.dm index daa6652feed5..c7721034e0bf 100644 --- a/code/game/objects/items/devices/powersink.dm +++ b/code/game/objects/items/devices/powersink.dm @@ -141,7 +141,7 @@ if(!admins_warned) admins_warned = TRUE message_admins("Power sink at ([x],[y],[z] - JMP) is 95% full. Explosion imminent.") - playsound(src, 'sound/effects/screech.ogg', 100, 1, 1) + playsound(src, 'sound/effects/screech.ogg', 100, TRUE, 1) if(power_drained >= max_power) STOP_PROCESSING(SSobj, src) diff --git a/code/game/objects/items/devices/radio/beacon.dm b/code/game/objects/items/devices/radio/beacon.dm index ae560fec034c..498e3c41aba1 100644 --- a/code/game/objects/items/devices/radio/beacon.dm +++ b/code/game/objects/items/devices/radio/beacon.dm @@ -59,7 +59,7 @@ if(user) to_chat(user, "Locked In") new /obj/machinery/power/singularity_beacon/syndicate( user.loc ) - playsound(src, 'sound/effects/pop.ogg', 100, 1, 1) + playsound(src, 'sound/effects/pop.ogg', 100, TRUE, 1) user.drop_item() qdel(src) @@ -132,7 +132,7 @@ if(user) to_chat(user, "Locked In") new bomb(user.loc) - playsound(src, 'sound/effects/pop.ogg', 100, 1, 1) + playsound(src, 'sound/effects/pop.ogg', 100, TRUE, 1) user.drop_item() qdel(src) diff --git a/code/game/objects/items/devices/scanners.dm b/code/game/objects/items/devices/scanners.dm index 906ac9501acd..3260884c7f32 100644 --- a/code/game/objects/items/devices/scanners.dm +++ b/code/game/objects/items/devices/scanners.dm @@ -429,7 +429,7 @@ SLIME SCANNER if("robot") var/burn = M.getFireLoss() > 50 ? "[M.getFireLoss()]" : M.getFireLoss() var/brute = M.getBruteLoss() > 50 ? "[M.getBruteLoss()]" : M.getBruteLoss() - msgs += "Analyzing Results for [M]:\n\t Overall Status: [M.stat > 1 ? "fully disabled" : "[M.health]% functional"]" + msgs += "Analyzing Results for [M]:\n\t Overall Status: [M.stat == DEAD ? "fully disabled" : "[M.health]% functional"]" msgs += "\t Key: Electronics/Brute" msgs += "\t Damage Specifics: [burn] - [brute]" if(M.timeofdeath && M.stat == DEAD) @@ -460,7 +460,7 @@ SLIME SCANNER if("prosthetics") var/mob/living/carbon/human/H = M var/is_ipc = ismachineperson(H) - msgs += "Analyzing Results for [M]: [is_ipc ? "\n\t Overall Status: [H.stat > 1 ? "fully disabled" : "[H.health]% functional"]
" : "
"]" //for the record im sorry + msgs += "Analyzing Results for [M]: [is_ipc ? "\n\t Overall Status: [H.stat == DEAD ? "fully disabled" : "[H.health]% functional"]
" : "
"]" //for the record im sorry msgs += "\t Key: Electronics/Brute" msgs += "External prosthetics:" var/organ_found @@ -502,7 +502,7 @@ SLIME SCANNER var/mob/living/silicon/ai/A = M var/burn = A.getFireLoss() > 50 ? "[A.getFireLoss()]" : A.getFireLoss() var/brute = A.getBruteLoss() > 50 ? "[A.getBruteLoss()]" : A.getBruteLoss() - msgs += "Analyzing Results for [M]:\n\t Overall Status: [A.stat > 1 ? "fully disabled" : "[A.health]% functional"]" + msgs += "Analyzing Results for [M]:\n\t Overall Status: [A.stat == DEAD ? "fully disabled" : "[A.health]% functional"]" msgs += "\t Key: Electronics/Brute" msgs += "\t Damage Specifics: [burn] - [brute]" diff --git a/code/game/objects/items/devices/whistle.dm b/code/game/objects/items/devices/whistle.dm index b7a80d4cf7a5..7a4dfbd41e0a 100644 --- a/code/game/objects/items/devices/whistle.dm +++ b/code/game/objects/items/devices/whistle.dm @@ -17,10 +17,10 @@ return if(emagged) - playsound(get_turf(src), 'sound/voice/binsult.ogg', 100, 1, vary = 0)//hueheuheuheuheuheuhe + playsound(get_turf(src), 'sound/voice/binsult.ogg', 100, TRUE, vary = 0)//hueheuheuheuheuheuhe user.visible_message("[user]'s [name] gurgles, \"FUCK YOUR CUNT YOU SHIT EATING CUNT TILL YOU ARE A MASS EATING SHIT CUNT. EAT PENISES IN YOUR FUCK FACE AND SHIT OUT ABORTIONS TO FUCK UP SHIT IN YOUR ASS YOU COCK FUCK SHIT MONKEY FROM THE DEPTHS OF SHIT\"") else - playsound(get_turf(src), 'sound/voice/halt.ogg', 100, 1, vary = 0) + playsound(get_turf(src), 'sound/voice/halt.ogg', 100, TRUE, vary = 0) user.visible_message("[user]'s [name] rasps, \"Halt! Security!\"") next_use_time = world.time + USE_COOLDOWN diff --git a/code/game/objects/items/robot/robot_items.dm b/code/game/objects/items/robot/robot_items.dm index f15eb6d4e9da..c40fb8d86c3d 100644 --- a/code/game/objects/items/robot/robot_items.dm +++ b/code/game/objects/items/robot/robot_items.dm @@ -28,7 +28,7 @@ M.visible_message("[user] has prodded [M] with [src]!", \ "[user] has prodded you with [src]!") - playsound(loc, 'sound/weapons/egloves.ogg', 50, 1, -1) + playsound(loc, 'sound/weapons/egloves.ogg', 50, TRUE, -1) add_attack_logs(user, M, "Stunned with [src] ([uppertext(user.a_intent)])") #define CYBORG_HUGS 0 diff --git a/code/game/objects/items/stacks/sheets/glass.dm b/code/game/objects/items/stacks/sheets/glass.dm index 50b24e5a8539..726d49f0fd44 100644 --- a/code/game/objects/items/stacks/sheets/glass.dm +++ b/code/game/objects/items/stacks/sheets/glass.dm @@ -298,7 +298,7 @@ GLOBAL_LIST_INIT(plastitaniumglass_recipes, list( full_window = /obj/structure/window/full/plastitanium table_type = /obj/structure/table/glass/reinforced/plastitanium -/obj/item/stack/sheet/plasmaglass/examine_more(mob/user) +/obj/item/stack/sheet/plastitaniumglass/examine_more(mob/user) . = ..() . += "A mixture of silica glass, and plastitanium. It boasts similar material properties to plastitanium whilst also being optically transparent." . += "" diff --git a/code/game/objects/items/stacks/sheets/sheet_types.dm b/code/game/objects/items/stacks/sheets/sheet_types.dm index 94585a31f1a3..8cf42add8539 100644 --- a/code/game/objects/items/stacks/sheets/sheet_types.dm +++ b/code/game/objects/items/stacks/sheets/sheet_types.dm @@ -491,7 +491,7 @@ GLOBAL_LIST_INIT(cardboard_recipes, list ( if(istype(I, /obj/item/stamp/clown) && !isstorage(loc)) var/atom/droploc = drop_location() if(use(1)) - playsound(I, 'sound/items/bikehorn.ogg', 50, 1, -1) + playsound(I, 'sound/items/bikehorn.ogg', 50, TRUE, -1) to_chat(user, "You stamp the cardboard! It's a clown box! Honk!") new/obj/item/storage/box/clown(droploc) //bugfix else diff --git a/code/game/objects/items/tools/crowbar.dm b/code/game/objects/items/tools/crowbar.dm index c53a55e217a1..8becf16684d6 100644 --- a/code/game/objects/items/tools/crowbar.dm +++ b/code/game/objects/items/tools/crowbar.dm @@ -128,7 +128,7 @@ /obj/item/crowbar/power/suicide_act(mob/user) user.visible_message("[user] is putting [user.p_their()] head in [src]. It looks like [user.p_theyre()] trying to commit suicide!") - playsound(loc, 'sound/items/jaws_pry.ogg', 50, 1, -1) + playsound(loc, 'sound/items/jaws_pry.ogg', 50, TRUE, -1) return BRUTELOSS /obj/item/crowbar/power/attack_self(mob/user) diff --git a/code/game/objects/items/tools/wirecutters.dm b/code/game/objects/items/tools/wirecutters.dm index 7a2d0f8db308..eaa00d8e6388 100644 --- a/code/game/objects/items/tools/wirecutters.dm +++ b/code/game/objects/items/tools/wirecutters.dm @@ -44,7 +44,7 @@ /obj/item/wirecutters/suicide_act(mob/user) user.visible_message("[user] is cutting at [user.p_their()] [is_robotic_suicide(user) ? "wiring" : "arteries"] with [src]! It looks like [user.p_theyre()] trying to commit suicide!") - playsound(loc, usesound, 50, 1, -1) + playsound(loc, usesound, 50, TRUE, -1) return BRUTELOSS /obj/item/wirecutters/proc/is_robotic_suicide(mob/user) diff --git a/code/game/objects/items/tools/wrench.dm b/code/game/objects/items/tools/wrench.dm index 9b56a07e0c49..d921a5a4cd42 100644 --- a/code/game/objects/items/tools/wrench.dm +++ b/code/game/objects/items/tools/wrench.dm @@ -107,7 +107,7 @@ // Immobilize stops them from wandering off and dropping the wrench user.Immobilize(10 SECONDS) - playsound(loc, 'sound/effects/pray.ogg', 50, 1, -1) + playsound(loc, 'sound/effects/pray.ogg', 50, TRUE, -1) // Let the sound effect finish playing sleep(20) diff --git a/code/game/objects/items/toys.dm b/code/game/objects/items/toys.dm index 6de7872a42b3..45ceb0577851 100644 --- a/code/game/objects/items/toys.dm +++ b/code/game/objects/items/toys.dm @@ -372,7 +372,7 @@ user.visible_message("[user] presses a button on [src]", "You activate [src], it plays a loud noise!", "You hear the click of a button.") spawn(5) //gia said so icon_state = "nuketoy" - playsound(src, 'sound/machines/alarm.ogg', 100, 0, 0) + playsound(src, 'sound/machines/alarm.ogg', 100, FALSE, 0) sleep(135) icon_state = "nuketoycool" sleep(cooldown - world.time) @@ -546,10 +546,10 @@ if(has_stuffing || grenade) var/cuddle_verb = pick("hugs", "cuddles", "snugs") user.visible_message("[user] [cuddle_verb] [src].") - playsound(get_turf(src), poof_sound, 50, 1, -1) + playsound(get_turf(src), poof_sound, 50, TRUE, -1) if(grenade && !grenade.active) add_attack_logs(user, user, "activated a hidden grenade in [src].", ATKLOG_MOST) - playsound(loc, 'sound/weapons/armbomb.ogg', 10, 1, -3) + playsound(loc, 'sound/weapons/armbomb.ogg', 10, TRUE, -3) //We call with grenade as argument, so cutting the grenade out doesn't magically defuse it addtimer(CALLBACK(src, PROC_REF(explosive_betrayal), grenade), rand(1, 3) SECONDS) else diff --git a/code/game/objects/items/weapons/bee_briefcase.dm b/code/game/objects/items/weapons/bee_briefcase.dm index 9175430e454f..8575e710b452 100644 --- a/code/game/objects/items/weapons/bee_briefcase.dm +++ b/code/game/objects/items/weapons/bee_briefcase.dm @@ -53,7 +53,7 @@ else if(istype(I, /obj/item/reagent_containers/spray/pestspray)) bees_left = max(0, (bees_left - 6)) to_chat(user, "You spray [I] into [src].") - playsound(loc, 'sound/effects/spray3.ogg', 50, 1, -6) + playsound(loc, 'sound/effects/spray3.ogg', 50, TRUE, -6) /obj/item/bee_briefcase/attack_self(mob/user) var/bees_released diff --git a/code/game/objects/items/weapons/bio_chips/bio_chip_supercharge.dm b/code/game/objects/items/weapons/bio_chips/bio_chip_supercharge.dm index f7dbfef5f63d..0b73c109ec72 100644 --- a/code/game/objects/items/weapons/bio_chips/bio_chip_supercharge.dm +++ b/code/game/objects/items/weapons/bio_chips/bio_chip_supercharge.dm @@ -30,5 +30,5 @@ /obj/item/bio_chip_case/supercharge name = "bio-chip case - 'supercharge'" - desc = "A glass case containing an supercharge bio-chip." + desc = "A glass case containing a supercharge bio-chip." implant_type = /obj/item/bio_chip/supercharge diff --git a/code/game/objects/items/weapons/cards_ids.dm b/code/game/objects/items/weapons/cards_ids.dm index c6c84d2f11a4..550be956d60b 100644 --- a/code/game/objects/items/weapons/cards_ids.dm +++ b/code/game/objects/items/weapons/cards_ids.dm @@ -823,7 +823,7 @@ name = "Research ID" registered_name = "Scientist" icon_state = "research" - access = list(ACCESS_ROBOTICS, ACCESS_TOX, ACCESS_TOX_STORAGE, ACCESS_RESEARCH, ACCESS_XENOBIOLOGY, ACCESS_XENOARCH, ACCESS_MINERAL_STOREROOM) + access = list(ACCESS_ROBOTICS, ACCESS_TOX, ACCESS_TOX_STORAGE, ACCESS_RESEARCH, ACCESS_XENOBIOLOGY, ACCESS_MINERAL_STOREROOM) /obj/item/card/id/roboticist name = "Roboticist ID" @@ -835,19 +835,19 @@ name = "Supply ID" registered_name = "Cargonian" icon_state = "cargo" - access = list(ACCESS_MAINT_TUNNELS, ACCESS_MAILSORTING, ACCESS_CARGO, ACCESS_QM, ACCESS_MINT, ACCESS_MINING, ACCESS_MINING_STATION, ACCESS_MINERAL_STOREROOM) + access = list(ACCESS_MAINT_TUNNELS, ACCESS_MAILSORTING, ACCESS_CARGO, ACCESS_QM, ACCESS_MINING, ACCESS_MINING_STATION, ACCESS_MINERAL_STOREROOM) /obj/item/card/id/quartermaster name = "Quartermaster ID" registered_name = "Quartermaster" icon_state = "quartermaster" - access = list(ACCESS_MAINT_TUNNELS, ACCESS_MAILSORTING, ACCESS_CARGO, ACCESS_CARGO_BOT, ACCESS_QM, ACCESS_MINT, ACCESS_MINING, ACCESS_MINING_STATION, ACCESS_MINERAL_STOREROOM) + access = list(ACCESS_MAINT_TUNNELS, ACCESS_MAILSORTING, ACCESS_CARGO, ACCESS_CARGO_BOT, ACCESS_QM, ACCESS_MINING, ACCESS_MINING_STATION, ACCESS_MINERAL_STOREROOM) /obj/item/card/id/shaftminer name = "Shaftminer ID" registered_name = "Shaftminer" icon_state = "shaftminer" - access = list(ACCESS_MAINT_TUNNELS, ACCESS_MAILSORTING, ACCESS_CARGO, ACCESS_QM, ACCESS_MINT, ACCESS_MINING, ACCESS_MINING_STATION, ACCESS_MINERAL_STOREROOM) + access = list(ACCESS_MAINT_TUNNELS, ACCESS_MAILSORTING, ACCESS_CARGO, ACCESS_QM, ACCESS_MINING, ACCESS_MINING_STATION, ACCESS_MINERAL_STOREROOM) /obj/item/card/id/engineering name = "Engineering ID" @@ -901,14 +901,14 @@ access = list(ACCESS_RD, ACCESS_HEADS, ACCESS_TOX, ACCESS_GENETICS, ACCESS_MORGUE, ACCESS_TOX_STORAGE, ACCESS_TECH_STORAGE, ACCESS_TELEPORTER, ACCESS_SEC_DOORS, ACCESS_RESEARCH, ACCESS_ROBOTICS, ACCESS_XENOBIOLOGY, ACCESS_AI_UPLOAD, - ACCESS_RC_ANNOUNCE, ACCESS_KEYCARD_AUTH, ACCESS_TCOMSAT, ACCESS_EXPEDITION, ACCESS_XENOARCH, ACCESS_MINISAT, ACCESS_MINERAL_STOREROOM) + ACCESS_RC_ANNOUNCE, ACCESS_KEYCARD_AUTH, ACCESS_TCOMSAT, ACCESS_EXPEDITION, ACCESS_MINISAT, ACCESS_MINERAL_STOREROOM) /obj/item/card/id/ce name = "Chief Engineer ID" registered_name = "CE" icon_state = "CE" access = list(ACCESS_ENGINE, ACCESS_ENGINE_EQUIP, ACCESS_TECH_STORAGE, ACCESS_MAINT_TUNNELS, - ACCESS_TELEPORTER, ACCESS_EXTERNAL_AIRLOCKS, ACCESS_ATMOSPHERICS, ACCESS_EMERGENCY_STORAGE, ACCESS_EVA, + ACCESS_TELEPORTER, ACCESS_EXTERNAL_AIRLOCKS, ACCESS_ATMOSPHERICS, ACCESS_EVA, ACCESS_HEADS, ACCESS_CONSTRUCTION, ACCESS_SEC_DOORS, ACCESS_CE, ACCESS_RC_ANNOUNCE, ACCESS_KEYCARD_AUTH, ACCESS_TCOMSAT, ACCESS_MINISAT, ACCESS_MINERAL_STOREROOM) diff --git a/code/game/objects/items/weapons/cigs.dm b/code/game/objects/items/weapons/cigs.dm index 282863c20301..9a1bbcb4675a 100644 --- a/code/game/objects/items/weapons/cigs.dm +++ b/code/game/objects/items/weapons/cigs.dm @@ -568,22 +568,26 @@ LIGHTERS ARE IN LIGHTERS.DM /obj/item/rollingpaper/afterattack(atom/target, mob/user, proximity) if(!proximity) return - if(istype(target, /obj/item/food/snacks/grown)) - var/obj/item/food/snacks/grown/O = target - if(O.dry) - user.unEquip(target, 1) - user.unEquip(src, 1) - var/obj/item/clothing/mask/cigarette/rollie/custom/R = new /obj/item/clothing/mask/cigarette/rollie/custom(user.loc) - R.chem_volume = target.reagents.total_volume - target.reagents.trans_to(R, R.chem_volume) - user.put_in_active_hand(R) - to_chat(user, "You roll the [target.name] into a rolling paper.") - R.desc = "Dried [target.name] rolled up in a thin piece of paper." - qdel(target) - qdel(src) - else - to_chat(user, "You need to dry this first!") - else - ..() + if(!istype(target, /obj/item/food/snacks/grown)) + return ..() + + var/obj/item/food/snacks/grown/plant = target + if(!plant.dry) + to_chat(user, "You need to dry this first!") + return + + user.unEquip(plant, TRUE) + user.unEquip(src, TRUE) + var/obj/item/clothing/mask/cigarette/rollie/custom/custom_rollie = new (get_turf(user)) + custom_rollie.reagents.maximum_volume = plant.reagents.total_volume + plant.reagents.trans_to(custom_rollie, custom_rollie.reagents.total_volume) + custom_rollie.smoketime = custom_rollie.reagents.total_volume * 2.5 + + user.put_in_active_hand(custom_rollie) + to_chat(user, "You roll the [plant.name] into a rolling paper.") + custom_rollie.desc = "Dried [plant.name] rolled up in a thin piece of paper." + + qdel(plant) + qdel(src) #undef REAGENT_TIME_RATIO diff --git a/code/game/objects/items/weapons/courtroom.dm b/code/game/objects/items/weapons/courtroom.dm index 2febfabde3b5..fada7d9a400f 100644 --- a/code/game/objects/items/weapons/courtroom.dm +++ b/code/game/objects/items/weapons/courtroom.dm @@ -15,7 +15,7 @@ /obj/item/gavelhammer/suicide_act(mob/user) user.visible_message("[user] has sentenced [user.p_themselves()] to death with [src]! It looks like [user.p_theyre()] trying to commit suicide!") - playsound(loc, 'sound/items/gavel.ogg', 50, 1, -1) + playsound(loc, 'sound/items/gavel.ogg', 50, TRUE, -1) return BRUTELOSS /obj/item/gavelblock diff --git a/code/game/objects/items/weapons/defib.dm b/code/game/objects/items/weapons/defib.dm index ff08e3f713e2..a6fcbbf4f928 100644 --- a/code/game/objects/items/weapons/defib.dm +++ b/code/game/objects/items/weapons/defib.dm @@ -345,7 +345,7 @@ /obj/item/shockpaddles/suicide_act(mob/user) user.visible_message("[user] is putting the live paddles on [user.p_their()] chest! It looks like [user.p_theyre()] trying to commit suicide!") defib.deductcharge(revivecost) - playsound(get_turf(src), 'sound/machines/defib_zap.ogg', 50, 1, -1) + playsound(get_turf(src), 'sound/machines/defib_zap.ogg', 50, TRUE, -1) return OXYLOSS /obj/item/shockpaddles/dropped(mob/user) diff --git a/code/game/objects/items/weapons/garrote.dm b/code/game/objects/items/weapons/garrote.dm index 8dc50c67ca3c..cc70eb9816af 100644 --- a/code/game/objects/items/weapons/garrote.dm +++ b/code/game/objects/items/weapons/garrote.dm @@ -105,7 +105,7 @@ strangling = M update_icon(UPDATE_ICON_STATE) - playsound(loc, 'sound/weapons/cablecuff.ogg', 15, 1, -10, ignore_walls = FALSE) + playsound(loc, 'sound/weapons/cablecuff.ogg', 15, TRUE, -10, ignore_walls = FALSE) M.visible_message("[U] comes from behind and begins garroting [M] with [src]!", \ "[U] begins garroting you with [src]![improvised ? "" : " You are unable to speak!"]", \ @@ -174,5 +174,5 @@ /obj/item/garrote/suicide_act(mob/user) user.visible_message("[user] is wrapping [src] around [user.p_their()] neck and pulling the handles! It looks like [user.p_theyre()] trying to commit suicide!") - playsound(loc, 'sound/weapons/cablecuff.ogg', 15, 1, -10, ignore_walls = FALSE) + playsound(loc, 'sound/weapons/cablecuff.ogg', 15, TRUE, -10, ignore_walls = FALSE) return OXYLOSS diff --git a/code/game/objects/items/weapons/grenades/clusterbuster.dm b/code/game/objects/items/weapons/grenades/clusterbuster.dm index 6ca1d16e3fd8..041fa0f20f0b 100644 --- a/code/game/objects/items/weapons/grenades/clusterbuster.dm +++ b/code/game/objects/items/weapons/grenades/clusterbuster.dm @@ -24,7 +24,7 @@ new /obj/effect/payload_spawner(loc, payload, numspawned)//Launches payload - playsound(loc, 'sound/weapons/armbomb.ogg', 75, 1, -3) + playsound(loc, 'sound/weapons/armbomb.ogg', 75, TRUE, -3) qdel(src) @@ -52,7 +52,7 @@ new /obj/effect/payload_spawner(loc, payload, rand(4,8)) - playsound(loc, 'sound/weapons/armbomb.ogg', 75, 1, -3) + playsound(loc, 'sound/weapons/armbomb.ogg', 75, TRUE, -3) qdel(src) diff --git a/code/game/objects/items/weapons/grenades/flashbang.dm b/code/game/objects/items/weapons/grenades/flashbang.dm index 5ed12d3b4382..148d86db3584 100644 --- a/code/game/objects/items/weapons/grenades/flashbang.dm +++ b/code/game/objects/items/weapons/grenades/flashbang.dm @@ -27,6 +27,20 @@ bang(T, src, range) qdel(src) +/obj/item/grenade/flashbang/screwdriver_act(mob/living/user, obj/item/I) + switch(det_time) + if(0.1 SECONDS) + det_time = 3 SECONDS + to_chat(user, "You set [src] for 3 second detonation time.") + if(3 SECONDS) + det_time = 5 SECONDS + to_chat(user, "You set [src] for 5 second detonation time.") + if(5 SECONDS) + det_time = 0.1 SECONDS + to_chat(user, "You set [src] for instant detonation.") + add_fingerprint(user) + return TRUE + /** * Creates a flashing effect that blinds and deafens mobs within range * diff --git a/code/game/objects/items/weapons/grenades/grenade.dm b/code/game/objects/items/weapons/grenades/grenade.dm index 0a2f86262102..b76df931a0b4 100644 --- a/code/game/objects/items/weapons/grenades/grenade.dm +++ b/code/game/objects/items/weapons/grenades/grenade.dm @@ -26,7 +26,7 @@ to_chat(user, "Huh? How does this thing work?") active = TRUE icon_state = initial(icon_state) + "_active" - playsound(loc, 'sound/weapons/armbomb.ogg', 75, 1, -3) + playsound(loc, 'sound/weapons/armbomb.ogg', 75, TRUE, -3) spawn(5) if(user) user.drop_item() @@ -42,7 +42,7 @@ to_chat(user, "You prime the [name]! [det_time/10] seconds!") active = TRUE icon_state = initial(icon_state) + "_active" - playsound(loc, 'sound/weapons/armbomb.ogg', 75, 1, -3) + playsound(loc, 'sound/weapons/armbomb.ogg', 75, TRUE, -3) spawn(det_time) prime() return diff --git a/code/game/objects/items/weapons/grenades/smokebomb.dm b/code/game/objects/items/weapons/grenades/smokebomb.dm index ad386ee55032..854b921648b0 100644 --- a/code/game/objects/items/weapons/grenades/smokebomb.dm +++ b/code/game/objects/items/weapons/grenades/smokebomb.dm @@ -18,7 +18,7 @@ return ..() /obj/item/grenade/smokebomb/prime() - playsound(src.loc, 'sound/effects/smoke.ogg', 50, 1, -3) + playsound(src.loc, 'sound/effects/smoke.ogg', 50, TRUE, -3) smoke.set_up(10, FALSE) spawn(0) src.smoke.start() diff --git a/code/game/objects/items/weapons/handcuffs.dm b/code/game/objects/items/weapons/handcuffs.dm index 8bb2e5984e37..1ce36a89618d 100644 --- a/code/game/objects/items/weapons/handcuffs.dm +++ b/code/game/objects/items/weapons/handcuffs.dm @@ -91,7 +91,7 @@ C.visible_message("[user] is trying to put [src.name] on [C]!", \ "[user] is trying to put [src.name] on [C]!") - playsound(loc, cuffsound, 15, 1, -10) + playsound(loc, cuffsound, 15, TRUE, -10) if(do_mob(user, C, 30)) apply_cuffs(C, user, remove_src) to_chat(user, "You handcuff [C].") diff --git a/code/game/objects/items/weapons/holy_weapons.dm b/code/game/objects/items/weapons/holy_weapons.dm index 5fcb242846cf..d06e662958b3 100644 --- a/code/game/objects/items/weapons/holy_weapons.dm +++ b/code/game/objects/items/weapons/holy_weapons.dm @@ -53,7 +53,7 @@ user.unEquip(src, 1) user.visible_message("[src] slips out of the grip of [user] as they try to pick it up, bouncing upwards and smacking [user.p_them()] in the face!", \ "[src] slips out of your grip as you pick it up, bouncing upwards and smacking you in the face!") - playsound(get_turf(user), 'sound/effects/hit_punch.ogg', 50, 1, -1) + playsound(get_turf(user), 'sound/effects/hit_punch.ogg', 50, TRUE, -1) throw_at(get_edge_target_turf(user, pick(GLOB.alldirs)), rand(1, 3), 5) diff --git a/code/game/objects/items/weapons/knuckledusters.dm b/code/game/objects/items/weapons/knuckledusters.dm index cac68d536f82..c75ac83fe3fd 100644 --- a/code/game/objects/items/weapons/knuckledusters.dm +++ b/code/game/objects/items/weapons/knuckledusters.dm @@ -34,13 +34,10 @@ gripped = FALSE flags &= ~(NODROP | ABSTRACT) -/obj/item/melee/knuckleduster/attack/(mob/living/user) - hitsound = pick('sound/weapons/punch1.ogg', 'sound/weapons/punch2.ogg', 'sound/weapons/punch3.ogg', 'sound/weapons/punch4.ogg') - return ..() - /obj/item/melee/knuckleduster/attack(mob/living/target, mob/living/user) . = ..() - if(!ishuman(target)) + hitsound = pick('sound/weapons/punch1.ogg', 'sound/weapons/punch2.ogg', 'sound/weapons/punch3.ogg', 'sound/weapons/punch4.ogg') + if(!ishuman(target) || QDELETED(target)) return var/obj/item/organ/external/punched = target.get_organ(user.zone_selected) diff --git a/code/game/objects/items/weapons/legcuffs.dm b/code/game/objects/items/weapons/legcuffs.dm index 130d000a155c..f816d7c8dd5e 100644 --- a/code/game/objects/items/weapons/legcuffs.dm +++ b/code/game/objects/items/weapons/legcuffs.dm @@ -36,7 +36,7 @@ /obj/item/restraints/legcuffs/beartrap/suicide_act(mob/user) user.visible_message("[user] is sticking [user.p_their()] head in [src]! It looks like [user.p_theyre()] trying to commit suicide!") - playsound(loc, 'sound/weapons/bladeslice.ogg', 50, 1, -1) + playsound(loc, 'sound/weapons/bladeslice.ogg', 50, TRUE, -1) return BRUTELOSS /obj/item/restraints/legcuffs/beartrap/attack_self(mob/user) diff --git a/code/game/objects/items/weapons/melee/energy_melee_weapons.dm b/code/game/objects/items/weapons/melee/energy_melee_weapons.dm index e047ea965b60..811a2f58c210 100644 --- a/code/game/objects/items/weapons/melee/energy_melee_weapons.dm +++ b/code/game/objects/items/weapons/melee/energy_melee_weapons.dm @@ -26,6 +26,11 @@ . = ..() force_off = initial(force) //We want to check this only when initializing, not when swapping, so sharpening works. throwforce_off = initial(throwforce) + RegisterSignal(src, COMSIG_ITEM_SHARPEN_ACT, PROC_REF(try_sharpen)) + +/obj/item/melee/energy/Destroy() + UnregisterSignal(src, COMSIG_ITEM_SHARPEN_ACT) + return ..() /obj/item/melee/energy/attack(mob/living/target, mob/living/carbon/human/user) var/nemesis_faction = FALSE @@ -88,6 +93,15 @@ /obj/item/melee/energy/get_heat() return active * 3500 +/obj/item/melee/energy/proc/try_sharpen(obj/item/item, amount, max_amount) + SIGNAL_HANDLER // COMSIG_ITEM_SHARPEN_ACT + if(force_on > initial(force_on) || force_on >= max_amount) + return COMPONENT_BLOCK_SHARPEN_MAXED + throwforce_on = clamp(throwforce_on + amount, 0, max_amount) + throwforce_off = clamp(throwforce_off + amount, 0, max_amount) + force_on = clamp(force_on + amount, 0, max_amount) + force_off = clamp(force_off + amount, 0, max_amount) + /obj/item/melee/energy/axe name = "energy axe" desc = "An energised battle axe." diff --git a/code/game/objects/items/weapons/storage/bags.dm b/code/game/objects/items/weapons/storage/bags.dm index e6bdd19d4bfe..fd596ae58b35 100644 --- a/code/game/objects/items/weapons/storage/bags.dm +++ b/code/game/objects/items/weapons/storage/bags.dm @@ -76,7 +76,7 @@ /obj/item/storage/bag/trash/suicide_act(mob/user) user.visible_message("[user] puts [src] over [user.p_their()] head and starts chomping at the insides! Disgusting!") - playsound(loc, 'sound/items/eatfood.ogg', 50, 1, -1) + playsound(loc, 'sound/items/eatfood.ogg', 50, TRUE, -1) return TOXLOSS /obj/item/storage/bag/trash/update_icon_state() diff --git a/code/game/objects/items/weapons/storage/bible.dm b/code/game/objects/items/weapons/storage/bible.dm index dd88e73e6148..4ecea20ac627 100644 --- a/code/game/objects/items/weapons/storage/bible.dm +++ b/code/game/objects/items/weapons/storage/bible.dm @@ -101,15 +101,15 @@ bless(H) H.visible_message("[user] heals [H == user ? "[user.p_themselves()]" : "[H]"] with the power of [deity_name]!", "May the power of [deity_name] compel you to be healed!") - playsound(loc, "punch", 25, 1, -1) + playsound(loc, "punch", 25, TRUE, -1) else M.adjustBrainLoss(10) to_chat(M, "You feel dumber.") H.visible_message("[user] beats [H == user ? "[user.p_themselves()]" : "[H]"] over the head with [src]!") - playsound(src.loc, "punch", 25, 1, -1) + playsound(src.loc, "punch", 25, TRUE, -1) else M.visible_message("[user] smacks [M]'s lifeless corpse with [src].") - playsound(src.loc, "punch", 25, 1, -1) + playsound(src.loc, "punch", 25, TRUE, -1) /obj/item/storage/bible/afterattack(atom/target, mob/user, proximity, params) diff --git a/code/game/objects/items/weapons/storage/boxes.dm b/code/game/objects/items/weapons/storage/boxes.dm index c4ff3c0aa5ca..570c764f553e 100644 --- a/code/game/objects/items/weapons/storage/boxes.dm +++ b/code/game/objects/items/weapons/storage/boxes.dm @@ -1130,7 +1130,7 @@ /obj/item/storage/box/hug/attack_self(mob/user) ..() user.changeNext_move(CLICK_CD_MELEE) - playsound(loc, "rustle", 50, 1, -5) + playsound(loc, "rustle", 50, TRUE, -5) user.visible_message("[user] hugs \the [src].","You hug \the [src].") /obj/item/storage/box/wizard diff --git a/code/game/objects/items/weapons/twohanded.dm b/code/game/objects/items/weapons/twohanded.dm index 8eb10832c588..121e103b2f41 100644 --- a/code/game/objects/items/weapons/twohanded.dm +++ b/code/game/objects/items/weapons/twohanded.dm @@ -513,7 +513,7 @@ /obj/item/butcher_chainsaw/attack(mob/living/target, mob/living/user) . = ..() if(HAS_TRAIT(src, TRAIT_WIELDED)) - playsound(loc, 'sound/weapons/chainsaw.ogg', 100, 1, -1) //incredibly loud; you ain't goin' for stealth with this thing. Credit to Lonemonk of Freesound for this sound. + playsound(loc, 'sound/weapons/chainsaw.ogg', 100, TRUE, -1) //incredibly loud; you ain't goin' for stealth with this thing. Credit to Lonemonk of Freesound for this sound. if(isnull(.)) //necessary check, successful attacks return null, without it target will drop any shields they may have before they get a chance to block target.KnockDown(8 SECONDS) diff --git a/code/game/objects/items/weapons/weaponry.dm b/code/game/objects/items/weapons/weaponry.dm index e6aa76550813..5d037490ddbe 100644 --- a/code/game/objects/items/weapons/weaponry.dm +++ b/code/game/objects/items/weapons/weaponry.dm @@ -226,7 +226,7 @@ return TRUE else if(prob(30)) visible_message("[owner] swings! And [p_they()] miss[p_es()]! How embarassing.", "You swing! You miss! Oh no!") - playsound(get_turf(owner), 'sound/weapons/thudswoosh.ogg', 50, 1, -1) + playsound(get_turf(owner), 'sound/weapons/thudswoosh.ogg', 50, TRUE, -1) do_attack_animation(get_step(owner, pick(GLOB.alldirs)), ATTACK_EFFECT_DISARM) deflectmode = FALSE if(!istype(I, /obj/item/beach_ball)) @@ -234,7 +234,7 @@ return FALSE else visible_message("[owner] swings and deflects [I]!", "You swing and deflect [I]!") - playsound(get_turf(owner), 'sound/weapons/baseball_hit.ogg', 50, 1, -1) + playsound(get_turf(owner), 'sound/weapons/baseball_hit.ogg', 50, TRUE, -1) do_attack_animation(I, ATTACK_EFFECT_DISARM) I.throw_at(get_edge_target_turf(owner, pick(GLOB.cardinal)), rand(8,10), 14, owner) deflectmode = FALSE diff --git a/code/game/objects/items/weapons/whetstone.dm b/code/game/objects/items/weapons/whetstone.dm index c4b7f7a6e5b3..7c21ddda9c8c 100644 --- a/code/game/objects/items/weapons/whetstone.dm +++ b/code/game/objects/items/weapons/whetstone.dm @@ -31,15 +31,6 @@ if((signal_out & COMPONENT_BLOCK_SHARPEN_ALREADY) || (I.force > initial(I.force) && !(signal_out & COMPONENT_SHARPEN_APPLIED))) //No sharpening stuff twice to_chat(user, "[I] has already been refined before. It cannot be sharpened further!") return - if(istype(I, /obj/item/melee/energy)) - var/obj/item/melee/energy/E = I - if(E.force_on > initial(E.force_on)) - to_chat(user, "[E] is much too powerful to sharpen further!") - return - E.throwforce_on = clamp(E.throwforce_on + increment, 0, max) - E.throwforce_off = clamp(E.throwforce_off + increment, 0, max) - E.force_on = clamp(E.force_on + increment, 0, max) - E.force_off = clamp(E.force_off + increment, 0, max) if(!(signal_out & COMPONENT_SHARPEN_APPLIED)) //If the item has a relevant component and COMPONENT_BLOCK_SHARPEN_APPLIED is returned, the item only gets the throw force increase I.force = clamp(I.force + increment, 0, max) @@ -49,7 +40,7 @@ set_sharpness(TRUE) I.throwforce = clamp(I.throwforce + increment, 0, max) I.name = "[prefix] [I.name]" - playsound(get_turf(src), usesound, 50, 1) + playsound(get_turf(src), usesound, 50, TRUE) name = "worn out [name]" desc = "[desc] At least, it used to." used = TRUE diff --git a/code/game/objects/structures/curtains.dm b/code/game/objects/structures/curtains.dm index 8a884d9af6a8..7d2ed5496b72 100644 --- a/code/game/objects/structures/curtains.dm +++ b/code/game/objects/structures/curtains.dm @@ -16,7 +16,7 @@ opacity = FALSE /obj/structure/curtain/attack_hand(mob/user) - playsound(get_turf(loc), "rustle", 15, 1, -5) + playsound(get_turf(loc), "rustle", 15, TRUE, -5) toggle() ..() diff --git a/code/game/objects/structures/depot_structures.dm b/code/game/objects/structures/depot_structures.dm index 4d3a1919a496..ebdb7cdfc61d 100644 --- a/code/game/objects/structures/depot_structures.dm +++ b/code/game/objects/structures/depot_structures.dm @@ -60,7 +60,7 @@ depotarea.activate_self_destruct("Fusion reactor cracked open. Core loose!", TRUE) var/obj/effect/overload/O = new /obj/effect/overload(get_turf(src)) if(containment_failure) - playsound(loc, 'sound/machines/alarm.ogg', 100, 0, 0) + playsound(loc, 'sound/machines/alarm.ogg', 100, FALSE, 0) O.deliberate = TRUE O.max_cycles = 6 if(!skip_qdel) diff --git a/code/game/objects/structures/girders.dm b/code/game/objects/structures/girders.dm index 1c3a997a2200..1a4ff3ae2a1d 100644 --- a/code/game/objects/structures/girders.dm +++ b/code/game/objects/structures/girders.dm @@ -419,11 +419,10 @@ else return 0 -/obj/structure/girder/CanPathfindPass(obj/item/card/id/ID, dir, caller, no_id = FALSE) +/obj/structure/girder/CanPathfindPass(to_dir, datum/can_pass_info/pass_info) . = !density - if(ismovable(caller)) - var/atom/movable/mover = caller - . = . || mover.checkpass(PASSGRILLE) + if(pass_info.is_movable) + . = . || pass_info.pass_flags & PASSGRILLE /obj/structure/girder/deconstruct(disassembled = TRUE) if(!(flags & NODECONSTRUCT)) diff --git a/code/game/objects/structures/grille.dm b/code/game/objects/structures/grille.dm index 5a1b7c26277b..f32aa68482e3 100644 --- a/code/game/objects/structures/grille.dm +++ b/code/game/objects/structures/grille.dm @@ -126,11 +126,10 @@ if(isprojectile(mover)) return (prob(30) || !density) -/obj/structure/grille/CanPathfindPass(obj/item/card/id/ID, dir, caller, no_id = FALSE) +/obj/structure/grille/CanPathfindPass(to_dir, datum/can_pass_info/pass_info) . = !density - if(ismovable(caller)) - var/atom/movable/mover = caller - . = . || mover.checkpass(PASSGRILLE) + if(pass_info.is_movable) + . = . || pass_info.pass_flags & PASSGRILLE /obj/structure/grille/attackby(obj/item/I, mob/user, params) user.changeNext_move(CLICK_CD_MELEE) diff --git a/code/game/objects/structures/morgue.dm b/code/game/objects/structures/morgue.dm index 9094239c7d60..1151f863eea1 100644 --- a/code/game/objects/structures/morgue.dm +++ b/code/game/objects/structures/morgue.dm @@ -308,11 +308,10 @@ return FALSE -/obj/structure/m_tray/CanPathfindPass(obj/item/card/id/ID, dir, caller, no_id = FALSE) +/obj/structure/m_tray/CanPathfindPass(to_dir, datum/can_pass_info/pass_info) . = !density - if(ismovable(caller)) - var/atom/movable/mover = caller - . = . || mover.checkpass(PASSTABLE) + if(pass_info.is_movable) + . = . || pass_info.pass_flags & PASSTABLE /obj/structure/m_tray/Process_Spacemove(movement_dir) return TRUE diff --git a/code/game/objects/structures/plasticflaps.dm b/code/game/objects/structures/plasticflaps.dm index 8b828eacc2f6..e9dde28988f9 100644 --- a/code/game/objects/structures/plasticflaps.dm +++ b/code/game/objects/structures/plasticflaps.dm @@ -76,17 +76,16 @@ return ..() -/obj/structure/plasticflaps/CanPathfindPass(obj/item/card/id/ID, to_dir, caller, no_id = FALSE) - if(isliving(caller)) - if(isbot(caller) || isdrone(caller)) - return TRUE +/obj/structure/plasticflaps/CanPathfindPass(to_dir, datum/can_pass_info/pass_info) + if(pass_info.is_bot || pass_info.is_drone) + return TRUE + + if(!pass_info.can_ventcrawl && pass_info.mob_size != MOB_SIZE_TINY) + return FALSE + + if(pass_info.pulling_info) + return CanPathfindPass(to_dir, pass_info.pulling_info) - var/mob/living/M = caller - if(!M.ventcrawler && M.mob_size != MOB_SIZE_TINY) - return FALSE - var/atom/movable/M = caller - if(M && M.pulling) - return CanPathfindPass(ID, to_dir, M.pulling) return TRUE //diseases, stings, etc can pass /obj/structure/plasticflaps/deconstruct(disassembled = TRUE) diff --git a/code/game/objects/structures/railings.dm b/code/game/objects/structures/railings.dm index dd960dc3307e..ea43b6c21a71 100644 --- a/code/game/objects/structures/railings.dm +++ b/code/game/objects/structures/railings.dm @@ -84,7 +84,7 @@ /obj/structure/railing/corner/CanPass() return TRUE -/obj/structure/railing/corner/CanPathfindPass(obj/item/card/id/ID, to_dir, caller, no_id = FALSE) +/obj/structure/railing/corner/CanPathfindPass(to_dir, datum/can_pass_info/pass_info) return TRUE /obj/structure/railing/corner/CheckExit() @@ -93,7 +93,7 @@ /obj/structure/railing/cap/CanPass() return TRUE -/obj/structure/railing/cap/CanPathfindPass(obj/item/card/id/ID, to_dir, caller, no_id = FALSE) +/obj/structure/railing/cap/CanPathfindPass(to_dir, datum/can_pass_info/pass_info) return TRUE /obj/structure/railing/cap/CheckExit() @@ -118,7 +118,7 @@ return density return FALSE -/obj/structure/railing/CanPathfindPass(obj/item/card/id/ID, to_dir, caller, no_id = FALSE) +/obj/structure/railing/CanPathfindPass(to_dir, datum/can_pass_info/pass_info) if(to_dir == dir) return FALSE if(ordinal_direction_check(to_dir)) diff --git a/code/game/objects/structures/stool_bed_chair_nest/chairs.dm b/code/game/objects/structures/stool_bed_chair_nest/chairs.dm index 1aa58675359b..5e9d5804a4da 100644 --- a/code/game/objects/structures/stool_bed_chair_nest/chairs.dm +++ b/code/game/objects/structures/stool_bed_chair_nest/chairs.dm @@ -263,7 +263,7 @@ buckled_mob.Weaken(12 SECONDS) buckled_mob.Stuttering(12 SECONDS) buckled_mob.take_organ_damage(10) - playsound(loc, 'sound/weapons/punch1.ogg', 50, 1, -1) + playsound(loc, 'sound/weapons/punch1.ogg', 50, TRUE, -1) buckled_mob.visible_message("[buckled_mob] crashed into [A]!") /obj/structure/chair/office/light @@ -545,7 +545,7 @@ if(C.health < C.maxHealth*0.5) C.Weaken(12 SECONDS) C.Stuttering(12 SECONDS) - playsound(src.loc, 'sound/weapons/punch1.ogg', 50, 1, -1) + playsound(src.loc, 'sound/weapons/punch1.ogg', 50, TRUE, -1) smash(user) /obj/item/chair/stool/attack(mob/M as mob, mob/user as mob) diff --git a/code/game/objects/structures/stool_bed_chair_nest/wheelchair.dm b/code/game/objects/structures/stool_bed_chair_nest/wheelchair.dm index 67e1d659ef1b..360d5ee184f6 100644 --- a/code/game/objects/structures/stool_bed_chair_nest/wheelchair.dm +++ b/code/game/objects/structures/stool_bed_chair_nest/wheelchair.dm @@ -87,7 +87,7 @@ occupant.Weaken(12 SECONDS) occupant.Stuttering(12 SECONDS) - playsound(src.loc, 'sound/weapons/punch1.ogg', 50, 1, -1) + playsound(src.loc, 'sound/weapons/punch1.ogg', 50, TRUE, -1) if(isliving(A)) var/mob/living/victim = A victim.Weaken(12 SECONDS) diff --git a/code/game/objects/structures/tables_racks.dm b/code/game/objects/structures/tables_racks.dm index 14f9bf331c69..01920f047e4b 100644 --- a/code/game/objects/structures/tables_racks.dm +++ b/code/game/objects/structures/tables_racks.dm @@ -150,11 +150,10 @@ return TRUE return FALSE -/obj/structure/table/CanPathfindPass(obj/item/card/id/ID, dir, caller, no_id = FALSE) +/obj/structure/table/CanPathfindPass(to_dir, datum/can_pass_info/pass_info) . = !density - if(ismovable(caller)) - var/atom/movable/mover = caller - . = . || mover.checkpass(PASSTABLE) + if(pass_info.is_movable) + . = . || pass_info.pass_flags & PASSTABLE /** * Determines whether a projectile crossing our turf should be stopped. @@ -248,7 +247,7 @@ if(slippery) step_away(I, user) visible_message("[I] slips right off [src]!") - playsound(loc, 'sound/misc/slip.ogg', 50, 1, -1) + playsound(loc, 'sound/misc/slip.ogg', 50, TRUE, -1) else //Don't want slippery moving tables to have the item attached to them if it slides off. item_placed(I) else @@ -806,7 +805,7 @@ if(direct & (direct - 1)) // This represents a diagonal movement, which is split into multiple cardinal movements. We'll handle moving the items on the cardinals only. return - playsound(loc, pick('sound/items/cartwheel1.ogg', 'sound/items/cartwheel2.ogg'), 100, 1, ignore_walls = FALSE) + playsound(loc, pick('sound/items/cartwheel1.ogg', 'sound/items/cartwheel2.ogg'), 100, TRUE, ignore_walls = FALSE) var/atom/movable/held for(var/held_uid in held_items) @@ -887,11 +886,10 @@ else return 0 -/obj/structure/rack/CanPathfindPass(obj/item/card/id/ID, dir, caller, no_id = FALSE) +/obj/structure/rack/CanPathfindPass(to_dir, datum/can_pass_info/pass_info) . = !density - if(ismovable(caller)) - var/atom/movable/mover = caller - . = . || mover.checkpass(PASSTABLE) + if(pass_info.is_movable) + . = . || pass_info.pass_flags & PASSTABLE /obj/structure/rack/MouseDrop_T(obj/O, mob/user) if((!isitem(O) || user.get_active_hand() != O)) diff --git a/code/game/objects/structures/window.dm b/code/game/objects/structures/window.dm index 3714768326ce..d3cca142f502 100644 --- a/code/game/objects/structures/window.dm +++ b/code/game/objects/structures/window.dm @@ -137,13 +137,13 @@ return FALSE return TRUE -/obj/structure/window/CanPathfindPass(obj/item/card/id/ID, to_dir, atom/movable/caller, no_id = FALSE) +/obj/structure/window/CanPathfindPass(to_dir, datum/can_pass_info/pass_info) if(!density) - return 1 + return TRUE if((dir == FULLTILE_WINDOW_DIR) || (dir & to_dir) || fulltile) - return 0 + return FALSE - return 1 + return TRUE /obj/structure/window/attack_tk(mob/user) user.changeNext_move(CLICK_CD_MELEE) diff --git a/code/game/turfs/simulated/floor/chasm.dm b/code/game/turfs/simulated/floor/chasm.dm index 50ba6c25ea93..5d827fb5e398 100644 --- a/code/game/turfs/simulated/floor/chasm.dm +++ b/code/game/turfs/simulated/floor/chasm.dm @@ -50,11 +50,11 @@ if(!drop_stuff()) STOP_PROCESSING(SSprocessing, src) -/turf/simulated/floor/chasm/CanPathfindPass(obj/item/card/id/ID, to_dir, caller, no_id = FALSE) - if(!isliving(caller)) +/turf/simulated/floor/chasm/CanPathfindPass(to_dir, datum/can_pass_info/pass_info) + if(!pass_info.is_living) return TRUE - var/mob/living/L = caller - return (L.flying || ismegafauna(caller)) + + return pass_info.is_flying || pass_info.is_megafauna /turf/simulated/floor/chasm/get_smooth_underlay_icon(mutable_appearance/underlay_appearance, turf/asking_turf, adjacency_dir) underlay_appearance.icon = 'icons/turf/floors.dmi' diff --git a/code/game/turfs/simulated/floor/plating.dm b/code/game/turfs/simulated/floor/plating.dm index 37b500dc3661..6e34004f1ea1 100644 --- a/code/game/turfs/simulated/floor/plating.dm +++ b/code/game/turfs/simulated/floor/plating.dm @@ -405,7 +405,7 @@ M.visible_message("[M] nudges \the [src].") else if(M.attack_sound) - playsound(loc, M.attack_sound, 50, 1, 1) + playsound(loc, M.attack_sound, 50, TRUE, 1) M.visible_message("\The [M] [M.attacktext] [src]!") smash(src) diff --git a/code/modules/admin/player_panel.dm b/code/modules/admin/player_panel.dm index d02437bf0ed5..30182fba4868 100644 --- a/code/modules/admin/player_panel.dm +++ b/code/modules/admin/player_panel.dm @@ -346,7 +346,7 @@ if(!dname) dname = M - return {"[dname][caption][logout_status][istype(A, /area/station/security/permabrig) ? " (PERMA) " : ""][M.stat == 2 ? " (DEAD)" : ""] + return {"[dname][caption][logout_status][istype(A, /area/station/security/permabrig) ? " (PERMA) " : ""][M.stat == DEAD ? " (DEAD)" : ""] PM [ADMIN_FLW(M, "FLW")] [ADMIN_OBS(M, "OBS")] [close ? "" : ""]"} /datum/admins/proc/check_antagonists() diff --git a/code/modules/admin/topic.dm b/code/modules/admin/topic.dm index c137979524d6..6526227a5401 100644 --- a/code/modules/admin/topic.dm +++ b/code/modules/admin/topic.dm @@ -2089,7 +2089,7 @@ // These smiting types are valid for all living mobs if("Lightning bolt") M.electrocute_act(5, "Lightning Bolt", flags = SHOCK_NOGLOVES) - playsound(get_turf(M), 'sound/magic/lightningshock.ogg', 50, 1, -1) + playsound(get_turf(M), 'sound/magic/lightningshock.ogg', 50, TRUE, -1) M.adjustFireLoss(75) M.Weaken(10 SECONDS) to_chat(M, "The gods have punished you for your sins!") diff --git a/code/modules/admin/verbs/onlyone.dm b/code/modules/admin/verbs/onlyone.dm index dadf06693a1e..3c921066da3e 100644 --- a/code/modules/admin/verbs/onlyone.dm +++ b/code/modules/admin/verbs/onlyone.dm @@ -66,7 +66,7 @@ return for(var/mob/living/carbon/human/H in GLOB.player_list) - if(H.stat == 2 || !(H.client)) continue + if(H.stat == DEAD || !(H.client)) continue if(is_special_character(H)) continue SSticker.mode.traitors += H.mind diff --git a/code/modules/admin/verbs/playsound.dm b/code/modules/admin/verbs/playsound.dm index f9d83d26ede4..6bee256df5c2 100644 --- a/code/modules/admin/verbs/playsound.dm +++ b/code/modules/admin/verbs/playsound.dm @@ -56,7 +56,7 @@ GLOBAL_LIST_EMPTY(sounds_cache) log_admin("[key_name(src)] played a local sound [S]") message_admins("[key_name_admin(src)] played a local sound [S]", 1) - playsound(get_turf(src.mob), S, 50, 0, 0) + playsound(get_turf(src.mob), S, 50, FALSE, 0) SSblackbox.record_feedback("tally", "admin_verb", 1, "Play Local Sound") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc! /client/proc/play_server_sound() diff --git a/code/modules/antagonists/changeling/powers/revive.dm b/code/modules/antagonists/changeling/powers/revive.dm index a9fc77116782..7a8b6113438f 100644 --- a/code/modules/antagonists/changeling/powers/revive.dm +++ b/code/modules/antagonists/changeling/powers/revive.dm @@ -21,7 +21,7 @@ user.visible_message("[user] suddenly hits [M] in the face and slips out of their grab!") M.Stun(2 SECONDS) //Drops the grab M.apply_damage(5, BRUTE, "head", M.run_armor_check("head", "melee")) - playsound(user.loc, 'sound/weapons/punch1.ogg', 25, 1, -1) + playsound(user.loc, 'sound/weapons/punch1.ogg', 25, TRUE, -1) user.revive() user.updatehealth("revive sting") user.update_blind_effects() diff --git a/code/modules/antagonists/traitor/contractor/datums/rep_purchases/balloon.dm b/code/modules/antagonists/traitor/contractor/datums/rep_purchases/balloon.dm deleted file mode 100644 index 217136766ce9..000000000000 --- a/code/modules/antagonists/traitor/contractor/datums/rep_purchases/balloon.dm +++ /dev/null @@ -1,27 +0,0 @@ -/** - * # Rep Purchase - Contractor Balloon - */ -/datum/rep_purchase/item/balloon - name = "Contractor Balloon" - description = "An unique black and gold balloon with no purpose other than showing off. All contracts must be completed in the hardest location to unlock this." - cost = 12 - stock = 1 - item_type = /obj/item/toy/syndicateballoon/contractor - -/datum/rep_purchase/item/balloon/buy(datum/contractor_hub/hub, mob/living/carbon/human/user) - var/eligible = TRUE - for(var/c in hub.contracts) - var/datum/syndicate_contract/C = c - if(C.status != CONTRACT_STATUS_COMPLETED || C.chosen_difficulty != EXTRACTION_DIFFICULTY_HARD) - eligible = FALSE - break - if(!eligible) - to_chat(user, "All of your contracts must be completed in the hardest location to be eligible for this item.") - return FALSE - return ..() - -/obj/item/toy/syndicateballoon/contractor - name = "contractor balloon" - desc = "A black and gold balloon carried only by legendary Syndicate agents." - icon_state = "contractorballoon" - item_state = "contractorballoon" diff --git a/code/modules/antagonists/traitor/contractor/datums/rep_purchases/baton.dm b/code/modules/antagonists/traitor/contractor/datums/rep_purchases/baton.dm deleted file mode 100644 index c2b3951f3905..000000000000 --- a/code/modules/antagonists/traitor/contractor/datums/rep_purchases/baton.dm +++ /dev/null @@ -1,9 +0,0 @@ -/** - * # Rep Purchase - Contractor Baton - */ -/datum/rep_purchase/item/baton - name = "Replacement Contractor Baton" - description = "A compact, specialised baton issued to Syndicate contractors. Applies light electrical shocks to targets. Never know when you will get disarmed." - cost = 2 - stock = 2 - item_type = /obj/item/melee/classic_baton/telescopic/contractor diff --git a/code/modules/antagonists/traitor/contractor/datums/rep_purchases/blackout.dm b/code/modules/antagonists/traitor/contractor/datums/rep_purchases/blackout.dm deleted file mode 100644 index e4d0fc3fa8ec..000000000000 --- a/code/modules/antagonists/traitor/contractor/datums/rep_purchases/blackout.dm +++ /dev/null @@ -1,25 +0,0 @@ -/** - * # Rep Purchase - Blackout - */ -/datum/rep_purchase/blackout - name = "Blackout" - description = "Overloads the station's power net, shorting random APCs." - cost = 3 - // Settings - /// How long a contractor must wait before calling another blackout, in deciseconds. - var/static/cooldown = 45 MINUTES - // Variables - /// Static cooldown variable for blackouts. - var/static/next_blackout = -1 - -/datum/rep_purchase/blackout/buy(datum/contractor_hub/hub, mob/living/carbon/human/user) - if(next_blackout > world.time) - var/timeleft = (next_blackout - world.time) / 10 - to_chat(user, "Another blackout may not be requested for [seconds_to_clock(timeleft)].") - return FALSE - return ..() - -/datum/rep_purchase/blackout/on_buy(datum/contractor_hub/hub, mob/living/carbon/human/user) - ..() - next_blackout = world.time + cooldown - power_failure() diff --git a/code/modules/antagonists/traitor/contractor/datums/rep_purchases/contractor_fulton.dm b/code/modules/antagonists/traitor/contractor/datums/rep_purchases/contractor_fulton.dm deleted file mode 100644 index 689bb2ec63fd..000000000000 --- a/code/modules/antagonists/traitor/contractor/datums/rep_purchases/contractor_fulton.dm +++ /dev/null @@ -1,17 +0,0 @@ -/** - * # Rep Purchase - Fulton Extraction Kit - */ -/datum/rep_purchase/item/fulton - name = "Fulton Extraction Kit" - description = "A balloon that can be used to extract equipment or personnel to a Fulton Recovery Beacon. Anything not bolted down can be moved. Link the pack to a beacon by using the pack in hand. Beacon can be placed inside the station, but the Fulton will not work inside the station." - cost = 1 - stock = 1 - item_type = /obj/item/storage/box/syndie_kit/fulton_kit - -/obj/item/storage/box/syndie_kit/fulton_kit - name = "fulton extraction kit" - icon_state = "doom_box" - -/obj/item/storage/box/syndie_kit/fulton_kit/populate_contents() - new /obj/item/extraction_pack(src) - new /obj/item/fulton_core(src) diff --git a/code/modules/antagonists/traitor/contractor/datums/rep_purchases/flare.dm b/code/modules/antagonists/traitor/contractor/datums/rep_purchases/flare.dm deleted file mode 100644 index 005a6f60c34d..000000000000 --- a/code/modules/antagonists/traitor/contractor/datums/rep_purchases/flare.dm +++ /dev/null @@ -1,9 +0,0 @@ -/** - * # Rep Purchase - Emergency escape flare - */ -/datum/rep_purchase/item/flare - name = "Emergency extraction kit" - description = "A kit that comes with an emergency escape flare, which will allow you to teleport to any beacon after a short activation delay. Also comes with a Syndicate teleporter beacon that only these flares and emagged teleporters can target." - cost = 2 - stock = 3 - item_type = /obj/item/storage/box/syndie_kit/escape_flare diff --git a/code/modules/antagonists/traitor/contractor/datums/rep_purchases/rep_pinpointer.dm b/code/modules/antagonists/traitor/contractor/datums/rep_purchases/rep_pinpointer.dm deleted file mode 100644 index 94e35bbcae34..000000000000 --- a/code/modules/antagonists/traitor/contractor/datums/rep_purchases/rep_pinpointer.dm +++ /dev/null @@ -1,9 +0,0 @@ -/** - * # Rep Purchase - Contractor Pinpointer - */ -/datum/rep_purchase/item/pinpointer - name = "Contractor Pinpointer" - description = "A low accuracy pinpointer that can track anyone in the sector without the need for suit sensors. Can only be used by the first person to activate it." - cost = 1 - stock = 2 - item_type = /obj/item/pinpointer/crew/contractor diff --git a/code/modules/antagonists/traitor/contractor/datums/rep_purchases/rep_purchases.dm b/code/modules/antagonists/traitor/contractor/datums/rep_purchases/rep_purchases.dm new file mode 100644 index 000000000000..d53e3b1b8229 --- /dev/null +++ b/code/modules/antagonists/traitor/contractor/datums/rep_purchases/rep_purchases.dm @@ -0,0 +1,131 @@ +/** + * # Rep Purchases MARK: Tools + */ +/datum/rep_purchase/item/baton + name = "Replacement Contractor Baton" + description = "A compact, specialised baton issued to Syndicate contractors. Applies light electrical shocks to targets. Never know when you will get disarmed." + cost = 2 + stock = 2 + item_type = /obj/item/melee/classic_baton/telescopic/contractor + +/datum/rep_purchase/item/fulton + name = "Fulton Extraction Kit" + description = "A balloon that can be used to extract equipment or personnel to a Fulton Recovery Beacon. Anything not bolted down can be moved. Link the pack to a beacon by using the pack in hand. Beacon can be placed inside the station, but the Fulton will not work inside the station." + cost = 1 + stock = 1 + item_type = /obj/item/storage/box/syndie_kit/fulton_kit + +/obj/item/storage/box/syndie_kit/fulton_kit + name = "fulton extraction kit" + icon_state = "doom_box" + +/obj/item/storage/box/syndie_kit/fulton_kit/populate_contents() + new /obj/item/extraction_pack(src) + new /obj/item/fulton_core(src) + +/datum/rep_purchase/item/flare + name = "Emergency extraction kit" + description = "A kit that comes with an emergency escape flare, which will allow you to teleport to any beacon after a short activation delay. Also comes with a Syndicate teleporter beacon that only these flares and emagged teleporters can target." + cost = 2 + stock = 3 + item_type = /obj/item/storage/box/syndie_kit/escape_flare + +/datum/rep_purchase/item/pinpointer + name = "Contractor Pinpointer" + description = "A low accuracy pinpointer that can track anyone in the sector without the need for suit sensors. Can only be used by the first person to activate it." + cost = 1 + stock = 2 + item_type = /obj/item/pinpointer/crew/contractor + +/** + * # Rep Purchase MARK: Assorted Badassery + */ +/datum/rep_purchase/item/balloon + name = "Contractor Balloon" + description = "An unique black and gold balloon with no purpose other than showing off. All contracts must be completed in the hardest location to unlock this." + cost = 12 + stock = 1 + item_type = /obj/item/toy/syndicateballoon/contractor + +/datum/rep_purchase/item/balloon/buy(datum/contractor_hub/hub, mob/living/carbon/human/user) + var/eligible = TRUE + for(var/c in hub.contracts) + var/datum/syndicate_contract/C = c + if(C.status != CONTRACT_STATUS_COMPLETED || C.chosen_difficulty != EXTRACTION_DIFFICULTY_HARD) + eligible = FALSE + break + if(!eligible) + to_chat(user, "All of your contracts must be completed in the hardest location to be eligible for this item.") + return FALSE + return ..() + +/obj/item/toy/syndicateballoon/contractor + name = "contractor balloon" + desc = "A black and gold balloon carried only by legendary Syndicate agents." + icon_state = "contractorballoon" + item_state = "contractorballoon" + +/datum/rep_purchase/item/zippo + name = "Contractor Zippo Lighter" + description = "An unique black and gold zippo lighter with no purpose other than showing off." + cost = 12 + stock = 1 + item_type = /obj/item/lighter/zippo/contractor + +/obj/item/lighter/zippo/contractor + name = "contractor zippo lighter" + desc = "An unique black and gold zippo commonly carried by elite Syndicate agents." + icon_state = "zippo-contractor" + item_state = "zippo-black" + +/** + * # Rep Purchase MARK: Actions + */ +/datum/rep_purchase/blackout + name = "Blackout" + description = "Overloads the station's power net, shorting random APCs." + cost = 3 + // Settings + /// How long a contractor must wait before calling another blackout, in deciseconds. + var/static/cooldown = 45 MINUTES + // Variables + /// Static cooldown variable for blackouts. + var/static/next_blackout = -1 + +/datum/rep_purchase/blackout/buy(datum/contractor_hub/hub, mob/living/carbon/human/user) + if(next_blackout > world.time) + var/timeleft = (next_blackout - world.time) / 10 + to_chat(user, "Another blackout may not be requested for [seconds_to_clock(timeleft)].") + return FALSE + return ..() + +/datum/rep_purchase/blackout/on_buy(datum/contractor_hub/hub, mob/living/carbon/human/user) + ..() + next_blackout = world.time + cooldown + power_failure() + +/datum/rep_purchase/reroll + name = "Contract Reroll" + description = "Replaces your inactive contracts with new ones, containing a new target and extraction zones." + cost = 2 + +/datum/rep_purchase/reroll/buy(datum/contractor_hub/hub, mob/living/carbon/human/user) + var/eligible = FALSE + for(var/datum/syndicate_contract/C as anything in hub.contracts) + if(C.status == CONTRACT_STATUS_INACTIVE) + eligible = TRUE + break + if(!eligible) + to_chat(user, "There are no inactive contracts that can be rerolled.") + return FALSE + return ..() + +/datum/rep_purchase/reroll/on_buy(datum/contractor_hub/hub, mob/living/carbon/human/user) + ..() + var/changed = 0 + for(var/datum/syndicate_contract/C as anything in hub.contracts) + if(C.status == CONTRACT_STATUS_INACTIVE && C.generate()) + changed++ + hub.contractor_uplink?.message_holder("Agent, we have replaced [changed] contract\s with new ones.") + + diff --git a/code/modules/antagonists/traitor/contractor/datums/rep_purchases/reroll.dm b/code/modules/antagonists/traitor/contractor/datums/rep_purchases/reroll.dm deleted file mode 100644 index 117b45ca31a9..000000000000 --- a/code/modules/antagonists/traitor/contractor/datums/rep_purchases/reroll.dm +++ /dev/null @@ -1,28 +0,0 @@ -/** - * # Rep Purchase - Contract Reroll - */ -/datum/rep_purchase/reroll - name = "Contract Reroll" - description = "Replaces your inactive contracts with new ones, containing a new target and extraction zones." - cost = 2 - -/datum/rep_purchase/reroll/buy(datum/contractor_hub/hub, mob/living/carbon/human/user) - var/eligible = FALSE - for(var/c in hub.contracts) - var/datum/syndicate_contract/C = c - if(C.status == CONTRACT_STATUS_INACTIVE) - eligible = TRUE - break - if(!eligible) - to_chat(user, "There are no inactive contracts that can be rerolled.") - return FALSE - return ..() - -/datum/rep_purchase/reroll/on_buy(datum/contractor_hub/hub, mob/living/carbon/human/user) - ..() - var/changed = 0 - for(var/c in hub.contracts) - var/datum/syndicate_contract/C = c - if(C.status == CONTRACT_STATUS_INACTIVE && C.generate()) - changed++ - hub.contractor_uplink?.message_holder("Agent, we have replaced [changed] contract\s with new ones.") diff --git a/code/modules/antagonists/traitor/contractor/datums/rep_purchases/zippo.dm b/code/modules/antagonists/traitor/contractor/datums/rep_purchases/zippo.dm deleted file mode 100644 index 5964acf38d3c..000000000000 --- a/code/modules/antagonists/traitor/contractor/datums/rep_purchases/zippo.dm +++ /dev/null @@ -1,15 +0,0 @@ -/** - * # Rep Purchase - Contractor Zippo Lighter - */ -/datum/rep_purchase/item/zippo - name = "Contractor Zippo Lighter" - description = "An unique black and gold zippo lighter with no purpose other than showing off." - cost = 12 - stock = 1 - item_type = /obj/item/lighter/zippo/contractor - -/obj/item/lighter/zippo/contractor - name = "contractor zippo lighter" - desc = "An unique black and gold zippo commonly carried by elite Syndicate agents." - icon_state = "zippo-contractor" - item_state = "zippo-black" diff --git a/code/modules/assembly/mousetrap.dm b/code/modules/assembly/mousetrap.dm index 3b44e1993963..5284fc3fdc8e 100644 --- a/code/modules/assembly/mousetrap.dm +++ b/code/modules/assembly/mousetrap.dm @@ -2,6 +2,7 @@ name = "mousetrap" desc = "A handy little spring-loaded trap for catching pesty rodents." icon_state = "mousetrap" + item_state = "mousetrap" materials = list(MAT_METAL=100) origin_tech = "combat=1;materials=2;engineering=1" var/armed = FALSE @@ -19,17 +20,16 @@ return armed = !armed - if(!armed) - if(ishuman(usr)) - var/mob/living/carbon/human/user = usr - if((user.getBrainLoss() >= 60 || HAS_TRAIT(user, TRAIT_CLUMSY)) && prob(50)) - to_chat(user, "Your hand slips, setting off the trigger.") - pulse(0) + if(!armed && ishuman(usr)) + var/mob/living/carbon/human/user = usr + if((user.getBrainLoss() >= 60 || HAS_TRAIT(user, TRAIT_CLUMSY)) && prob(50)) + to_chat(user, "Your hand slips, setting off the trigger.") + pulse(0) update_icon() if(usr) - playsound(usr.loc, 'sound/weapons/handcuffs.ogg', 30, 1, -3) + playsound(usr.loc, 'sound/weapons/handcuffs.ogg', 30, TRUE, -3) /obj/item/assembly/mousetrap/update_icon_state() @@ -94,7 +94,7 @@ armed = !armed update_icon() - playsound(user.loc, 'sound/weapons/handcuffs.ogg', 30, 1, -3) + playsound(user.loc, 'sound/weapons/handcuffs.ogg', 30, TRUE, -3) /obj/item/assembly/mousetrap/attack_hand(mob/living/user) if(armed) diff --git a/code/modules/atmospherics/machinery/atmospherics.dm b/code/modules/atmospherics/machinery/atmospherics.dm index ca4a16fdb832..2ce2e9343d89 100644 --- a/code/modules/atmospherics/machinery/atmospherics.dm +++ b/code/modules/atmospherics/machinery/atmospherics.dm @@ -331,7 +331,7 @@ Pipelines + Other Objects -> Pipe network user.forceMove(target_move) if(world.time - user.last_played_vent > VENT_SOUND_DELAY) user.last_played_vent = world.time - playsound(src, 'sound/machines/ventcrawl.ogg', 50, 1, -3) + playsound(src, 'sound/machines/ventcrawl.ogg', 50, TRUE, -3) else if((direction & initialize_directions) || is_type_in_list(src, GLOB.ventcrawl_machinery)) //if we move in a way the pipe can connect, but doesn't - or we're in a vent user.remove_ventcrawl() diff --git a/code/modules/client/preference/link_processing.dm b/code/modules/client/preference/link_processing.dm index 6f045e60f80f..aaf50304769c 100644 --- a/code/modules/client/preference/link_processing.dm +++ b/code/modules/client/preference/link_processing.dm @@ -1150,6 +1150,9 @@ toggles2 ^= PREFTOGGLE_2_PARALLAX_IN_DARKNESS parent.mob?.hud_used?.update_parallax_pref() + if("tgui_strip_menu") + toggles2 ^= PREFTOGGLE_2_BIG_STRIP_MENU + if("screentip_mode") var/desired_screentip_mode = tgui_input_number(user, "Pick a screentip size, pick 0 to disable screentips. (We suggest a number between 8 and 15):", "Screentip Size", screentip_mode, 20, 0) if(isnull(desired_screentip_mode)) diff --git a/code/modules/client/preference/preferences.dm b/code/modules/client/preference/preferences.dm index 08d4f29dd710..5c1bc3c760fe 100644 --- a/code/modules/client/preference/preferences.dm +++ b/code/modules/client/preference/preferences.dm @@ -443,6 +443,7 @@ GLOBAL_LIST_INIT(special_role_times, list( //minimum age (in days) for accounts dat += "High" dat += "
" dat += "Parallax in darkness: [toggles2 & PREFTOGGLE_2_PARALLAX_IN_DARKNESS ? "Enabled" : "Disabled"]
" + dat += "TGUI strip menu size: [toggles2 & PREFTOGGLE_2_BIG_STRIP_MENU ? "Full-size" : "Miniature"]
" dat += "Play Admin MIDIs: [(sound & SOUND_MIDI) ? "Yes" : "No"]
" dat += "Play Lobby Music: [(sound & SOUND_LOBBY) ? "Yes" : "No"]
" dat += "Randomized Character Slot: [toggles2 & PREFTOGGLE_2_RANDOMSLOT ? "Yes" : "No"]
" diff --git a/code/modules/client/preference/preferences_toggles.dm b/code/modules/client/preference/preferences_toggles.dm index 275518218789..a7dd3adc33d0 100644 --- a/code/modules/client/preference/preferences_toggles.dm +++ b/code/modules/client/preference/preferences_toggles.dm @@ -222,6 +222,16 @@ . = ..() usr.hud_used?.update_parallax_pref() +/datum/preference_toggle/toggle_strip_tgui_size + name = "Toggle TGUI strip menu size" + description = "Toggles TGUI strip menu size between miniature and full-size." + preftoggle_bitflag = PREFTOGGLE_2_BIG_STRIP_MENU + preftoggle_toggle = PREFTOGGLE_TOGGLE2 + preftoggle_category = PREFTOGGLE_CATEGORY_GENERAL + enable_message = "You will see full-size TGUI strip menu." + disable_message = "You will see minuature TGUI strip menu." + blackbox_message = "Toggle TGUI strip menu size" + /datum/preference_toggle/toggle_white_noise name = "Toggle White Noise" description = "Toggles hearing White Noise" diff --git a/code/modules/clothing/gloves/misc_gloves.dm b/code/modules/clothing/gloves/misc_gloves.dm index 87b4f8cc5a83..8e5b97724fee 100644 --- a/code/modules/clothing/gloves/misc_gloves.dm +++ b/code/modules/clothing/gloves/misc_gloves.dm @@ -152,7 +152,7 @@ var/mob/living/carbon/C = A if(cell.use(stun_cost)) do_sparks(5, 0, loc) - playsound(loc, 'sound/weapons/egloves.ogg', 50, 1, -1) + playsound(loc, 'sound/weapons/egloves.ogg', 50, TRUE, -1) H.do_attack_animation(C) visible_message("[C] has been touched with [src] by [H]!") add_attack_logs(H, C, "Touched with stun gloves") diff --git a/code/modules/clothing/head/helmet.dm b/code/modules/clothing/head/helmet.dm index 3f0f68fd6699..72954cd06f5c 100644 --- a/code/modules/clothing/head/helmet.dm +++ b/code/modules/clothing/head/helmet.dm @@ -33,10 +33,10 @@ if(active_sound) while(up) - playsound(src.loc, "[active_sound]", 100, 0, 4) + playsound(src.loc, "[active_sound]", 100, FALSE, 4) sleep(15) if(toggle_sound) - playsound(src.loc, "[toggle_sound]", 100, 0, 4) + playsound(src.loc, "[toggle_sound]", 100, FALSE, 4) /obj/item/clothing/head/helmet/visor name = "visor helmet" @@ -282,6 +282,15 @@ desc = "Commonly used security headgear for the more theatrically inclined. Wear this in hostage situations to make everything worse." icon_state = "streetjudge_hat" + sprite_sheets = list( + "Vox" = 'icons/mob/clothing/species/vox/head.dmi', + "Drask" = 'icons/mob/clothing/species/drask/head.dmi', + "Grey" = 'icons/mob/clothing/species/grey/head.dmi', + "Tajaran" = 'icons/mob/clothing/species/tajaran/head.dmi', + "Vulpkanin" = 'icons/mob/clothing/species/vulpkanin/head.dmi', + "Unathi" = 'icons/mob/clothing/species/unathi/head.dmi' + ) + //Commander /obj/item/clothing/head/helmet/ert/command name = "emergency response team commander helmet" diff --git a/code/modules/clothing/masks/gasmask.dm b/code/modules/clothing/masks/gasmask.dm index f1875a85c805..b3f225180681 100644 --- a/code/modules/clothing/masks/gasmask.dm +++ b/code/modules/clothing/masks/gasmask.dm @@ -415,12 +415,12 @@ if(!safety) message = "FUCK YOUR CUNT YOU SHIT EATING COCKSUCKER MAN EAT A DONG FUCKING ASS RAMMING SHIT FUCK EAT PENISES IN YOUR FUCK FACE AND SHIT OUT ABORTIONS OF FUCK AND DO SHIT IN YOUR ASS YOU COCK FUCK SHIT MONKEY FUCK ASS WANKER FROM THE DEPTHS OF SHIT." usr.visible_message("[usr]'s Compli-o-Nator: [message]") - playsound(src.loc, 'sound/voice/binsult.ogg', 100, 0, 4) + playsound(src.loc, 'sound/voice/binsult.ogg', 100, FALSE, 4) cooldown = world.time return usr.visible_message("[usr]'s Compli-o-Nator: [message]") - playsound(src.loc, "sound/voice/complionator/[key].ogg", 100, 0, 4) + playsound(src.loc, "sound/voice/complionator/[key].ogg", 100, FALSE, 4) cooldown = world.time diff --git a/code/modules/clothing/shoes/magboots.dm b/code/modules/clothing/shoes/magboots.dm index 797006d07ad0..1d0947ad5de8 100644 --- a/code/modules/clothing/shoes/magboots.dm +++ b/code/modules/clothing/shoes/magboots.dm @@ -326,7 +326,7 @@ user.flying = TRUE do_callback = TRUE if(user.throw_at(target, jumpdistance, jumpspeed, spin = FALSE, diagonals_first = TRUE, callback = do_callback ? VARSET_CALLBACK(user, flying, FALSE) : null)) - playsound(src, 'sound/effects/stealthoff.ogg', 50, 1, 1) + playsound(src, 'sound/effects/stealthoff.ogg', 50, TRUE, 1) user.visible_message("[usr] dashes forward into the air!") recharging_time = world.time + recharging_rate cell.use(dash_cost) diff --git a/code/modules/clothing/shoes/misc_shoes.dm b/code/modules/clothing/shoes/misc_shoes.dm index a7707bb00622..681f25935ba7 100644 --- a/code/modules/clothing/shoes/misc_shoes.dm +++ b/code/modules/clothing/shoes/misc_shoes.dm @@ -445,7 +445,7 @@ user.flying = TRUE do_callback = TRUE if(user.throw_at(target, jumpdistance, jumpspeed, spin = FALSE, diagonals_first = TRUE, callback = do_callback ? VARSET_CALLBACK(user, flying, FALSE) : null)) - playsound(src, 'sound/effects/stealthoff.ogg', 50, 1, 1) + playsound(src, 'sound/effects/stealthoff.ogg', 50, TRUE, 1) user.visible_message("[usr] dashes forward into the air!") recharging_time = world.time + recharging_rate else diff --git a/code/modules/clothing/suits/armor_suits.dm b/code/modules/clothing/suits/armor_suits.dm index 7e7d3aa5eb2c..3dc702423335 100644 --- a/code/modules/clothing/suits/armor_suits.dm +++ b/code/modules/clothing/suits/armor_suits.dm @@ -88,6 +88,12 @@ desc = "Perfect for when you're looking to send a message rather than performing your actual duties." icon_state = "streetjudgearmor" + sprite_sheets = list( + "Vox" = 'icons/mob/clothing/species/vox/suit.dmi', + "Drask" = 'icons/mob/clothing/species/drask/suit.dmi', + "Grey" = 'icons/mob/clothing/species/grey/suit.dmi' + ) + /obj/item/clothing/suit/armor/vest/blueshield name = "blueshield's security armor" desc = "An armored vest with the badge of a Blueshield." @@ -619,7 +625,7 @@ continue owner.Beam(M,icon_state="lightning[rand(1, 12)]",icon='icons/effects/effects.dmi',time=5) M.adjustFireLoss(20) - playsound(M, 'sound/machines/defib_zap.ogg', 50, 1, -1) + playsound(M, 'sound/machines/defib_zap.ogg', 50, TRUE, -1) add_attack_logs(owner, M, "[M] was shocked by [owner]'s [src]", ATKLOG_ALMOSTALL) disable(rand(2, 5)) // let's not have buckshot set it off 4 times and do 80 burn damage. return TRUE diff --git a/code/modules/clothing/under/jobs/plasmamen/_plasmamen.dm b/code/modules/clothing/under/jobs/plasmamen/_plasmamen.dm index a558758822ba..9d25abd92ca4 100644 --- a/code/modules/clothing/under/jobs/plasmamen/_plasmamen.dm +++ b/code/modules/clothing/under/jobs/plasmamen/_plasmamen.dm @@ -31,7 +31,7 @@ H.visible_message("[H]'s suit automatically extinguishes [H.p_them()]!","Your suit automatically extinguishes you.") if(!extinguishes_left) to_chat(H, "Onboard auto-extinguisher depleted, refill with a cartridge.") - playsound(H.loc, 'sound/effects/spray.ogg', 10, 1, -3) + playsound(H.loc, 'sound/effects/spray.ogg', 10, TRUE, -3) H.ExtinguishMob() new /obj/effect/particle_effect/water(get_turf(H)) return FALSE diff --git a/code/modules/customitems/item_defines.dm b/code/modules/customitems/item_defines.dm index 57867a27c5d6..241295ad2bee 100644 --- a/code/modules/customitems/item_defines.dm +++ b/code/modules/customitems/item_defines.dm @@ -738,7 +738,7 @@ icon_state = new_state["icon_state"] state = choice to_chat(user, "You adjust the helmet.") - playsound(src.loc, "[toggle_sound]", 100, 0, 4) + playsound(src.loc, "[toggle_sound]", 100, FALSE, 4) user.update_inv_head() return 1 diff --git a/code/modules/events/blob/theblob.dm b/code/modules/events/blob/theblob.dm index fa6a3b592165..1e5fa1b2a24a 100644 --- a/code/modules/events/blob/theblob.dm +++ b/code/modules/events/blob/theblob.dm @@ -57,11 +57,10 @@ GLOBAL_LIST_EMPTY(blob_minions) /obj/structure/blob/CanAtmosPass(direction) return !atmosblock -/obj/structure/blob/CanPathfindPass(obj/item/card/id/ID, dir, caller, no_id = FALSE) - . = 0 - if(ismovable(caller)) - var/atom/movable/mover = caller - . = . || mover.checkpass(PASSBLOB) +/obj/structure/blob/CanPathfindPass(to_dir, datum/can_pass_info/pass_info) + . = FALSE + if(pass_info.is_movable) + . = . || pass_info.pass_flags & PASSBLOB /obj/structure/blob/process() Life() diff --git a/code/modules/events/floorcluwne_event.dm b/code/modules/events/floorcluwne_event.dm index 3e4a3d5910a4..f6fc7774da76 100644 --- a/code/modules/events/floorcluwne_event.dm +++ b/code/modules/events/floorcluwne_event.dm @@ -9,7 +9,7 @@ var/turf/T = get_turf(pick(GLOB.xeno_spawn)) var/mob/living/simple_animal/hostile/floor_cluwne/S = new(T) - playsound(S, 'sound/spookoween/scary_horn.ogg', 50, 1, -1) + playsound(S, 'sound/spookoween/scary_horn.ogg', 50, TRUE, -1) message_admins("A floor cluwne has been spawned at [COORD(T)][ADMIN_JMP(T)]") log_game("A floor cluwne has been spawned at [COORD(T)]") return 1 diff --git a/code/modules/events/vent_clog.dm b/code/modules/events/vent_clog.dm index 8767cdf1ed99..01ed4b33c88c 100644 --- a/code/modules/events/vent_clog.dm +++ b/code/modules/events/vent_clog.dm @@ -34,6 +34,6 @@ var/datum/effect_system/smoke_spread/chem/smoke = new smoke.set_up(R, vent, TRUE) - playsound(vent.loc, 'sound/effects/smoke.ogg', 50, 1, -3) + playsound(vent.loc, 'sound/effects/smoke.ogg', 50, TRUE, -3) smoke.start(3) qdel(R) diff --git a/code/modules/food_and_drinks/food/foods/pizza.dm b/code/modules/food_and_drinks/food/foods/pizza.dm index 9cdfabe8f6ec..0da9469455f5 100644 --- a/code/modules/food_and_drinks/food/foods/pizza.dm +++ b/code/modules/food_and_drinks/food/foods/pizza.dm @@ -548,7 +548,7 @@ var/chosen_wire = tgui_input_list(user, "OH GOD OH GOD", "WHAT WIRE?!", wires) if(!in_range(src, user) || issilicon(usr) || HAS_TRAIT(user, TRAIT_HANDS_BLOCKED) || user.restrained() || !chosen_wire) return - playsound(src, I.usesound, 50, 1, 1) + playsound(src, I.usesound, 50, TRUE, 1) user.visible_message("[user] cuts the [chosen_wire] wire!", "You cut the [chosen_wire] wire!") sleep(5) if(chosen_wire == correct_wire) @@ -570,7 +570,7 @@ return user.visible_message("[user] starts removing the payload and wires from [src].") if(do_after(user, 40 * I.toolspeed, target = src)) - playsound(src, I.usesound, 50, 1, 1) + playsound(src, I.usesound, 50, TRUE, 1) user.unEquip(src) user.visible_message("[user] removes the insides of [src]!") var/obj/item/stack/cable_coil/C = new /obj/item/stack/cable_coil(src.loc) diff --git a/code/modules/food_and_drinks/kitchen_machinery/icecream_vat.dm b/code/modules/food_and_drinks/kitchen_machinery/icecream_vat.dm index 54adeea94e9f..02fc3ff9162c 100644 --- a/code/modules/food_and_drinks/kitchen_machinery/icecream_vat.dm +++ b/code/modules/food_and_drinks/kitchen_machinery/icecream_vat.dm @@ -11,6 +11,8 @@ idle_power_consumption = 20 var/obj/item/reagent_containers/glass/beaker = null var/useramount = 15 //Last used amount + /// Reagents that can't be exported from the machine except by making ice cream. + var/list/static/locked_reagents = list("cola", "kahlua", "dr_gibb", "vodka", "space_up", "rum", "spacemountainwind", "gin", "cream", "vanilla") /obj/machinery/icemachine/proc/generate_name(reagent_name) @@ -53,16 +55,6 @@ return ..() -/obj/machinery/icemachine/proc/validexchange(reag) - var/list/static/invalid_reagents = list("sprinkles", "cola", "kahlua", "dr_gibb", "vodka", "space-up", "rum", "spacemountainwind", "gin", "cream", "vanilla") - if(reag in invalid_reagents) - return - if(reagents.total_volume < 500) - to_chat(usr, "[src] vibrates for a moment, apparently accepting the unknown liquid.") - playsound(loc, 'sound/machines/twobeep.ogg', 10, 1) - return TRUE - - /obj/machinery/icemachine/Topic(href, href_list) if(..()) return @@ -74,31 +66,36 @@ usr.unset_machine() return - var/obj/item/reagent_containers/glass/A = null - var/datum/reagents/R = null - - if(beaker) - A = beaker - R = A.reagents - if(href_list["add"]) if(href_list["amount"]) var/id = href_list["add"] var/amount = text2num(href_list["amount"]) - if(validexchange(id)) - R.trans_id_to(src, id, amount) + if(amount <= 0) + return + var/transferred = beaker.reagents.trans_id_to(src, id, amount) + if(transferred <= 0) + return + to_chat(usr, "[src] vibrates for a moment as it transfers the liquid.") + playsound(loc, 'sound/machines/twobeep.ogg', 10, TRUE) else if(href_list["remove"]) if(href_list["amount"]) var/id = href_list["remove"] var/amount = text2num(href_list["amount"]) - if(beaker == null) + if(amount <= 0) + return + if(beaker == null || (id in locked_reagents)) reagents.remove_reagent(id,amount) - else - if(validexchange(id)) - reagents.trans_id_to(A, id, amount) - else - reagents.remove_reagent(id,amount) + to_chat(usr, "[src] vibrates for a moment as it flushes the liquid.") + playsound(loc, 'sound/machines/twobeep.ogg', 10, TRUE) + updateUsrDialog() + return + + var/transferred = reagents.trans_id_to(beaker, id, amount) + if(transferred <= 0) + return + to_chat(usr, "[src] vibrates for a moment as it transfers the liquid.") + playsound(loc, 'sound/machines/twobeep.ogg', 10, TRUE) else if(href_list["main"]) attack_hand(usr) @@ -106,17 +103,14 @@ else if(href_list["eject"]) if(beaker) - A.forceMove(loc) + beaker.forceMove(loc) beaker = null - reagents.trans_to(A,reagents.total_volume) + reagents.trans_to(beaker, reagents.total_volume) else if(href_list["synthcond"]) if(href_list["type"]) var/ID = text2num(href_list["type"]) - /* - if(ID == 1) - reagents.add_reagent("sprinkles",1) - */ //Sprinkles are now created by using the ice cream on the machine + // ID 1 was sprinkles, which are now added by using ice cream on the machine. if(ID == 2 | ID == 3) var/brand = pick(1,2,3,4) if(brand == 1) diff --git a/code/modules/food_and_drinks/kitchen_machinery/monkeyrecycler.dm b/code/modules/food_and_drinks/kitchen_machinery/monkeyrecycler.dm index 7fdbbfbde7e2..753b398e6a32 100644 --- a/code/modules/food_and_drinks/kitchen_machinery/monkeyrecycler.dm +++ b/code/modules/food_and_drinks/kitchen_machinery/monkeyrecycler.dm @@ -99,7 +99,7 @@ GLOBAL_LIST_EMPTY(monkey_recyclers) if(ishuman(grabbed)) var/mob/living/carbon/human/target = grabbed if(issmall(target)) - if(target.stat == 0) + if(target.stat == CONSCIOUS) to_chat(user, "The monkey is struggling far too much to put it in the recycler.") else user.drop_item() diff --git a/code/modules/games/cards.dm b/code/modules/games/cards.dm index fb1712d8f828..a794a6c784a1 100644 --- a/code/modules/games/cards.dm +++ b/code/modules/games/cards.dm @@ -220,7 +220,7 @@ user.visible_message("[user] deals [dcard] card(s) to [user.p_themselves()].") else user.visible_message("[user] deals [dcard] card(s) to [target].") - H.throw_at(get_step(target,target.dir),3,1,H) + H.throw_at(get_step(target, target.dir), 3, 1, null) /obj/item/deck/attack_self() diff --git a/code/modules/hydroponics/grown/banana.dm b/code/modules/hydroponics/grown/banana.dm index 526d007a88c0..da8012befd4d 100644 --- a/code/modules/hydroponics/grown/banana.dm +++ b/code/modules/hydroponics/grown/banana.dm @@ -32,7 +32,7 @@ /obj/item/food/snacks/grown/banana/suicide_act(mob/user) user.visible_message("[user] is aiming [src] at [user.p_themselves()]! It looks like [user.p_theyre()] trying to commit suicide!") - playsound(loc, 'sound/items/bikehorn.ogg', 50, 1, -1) + playsound(loc, 'sound/items/bikehorn.ogg', 50, TRUE, -1) sleep(25) if(!user) return OXYLOSS @@ -70,7 +70,7 @@ /obj/item/grown/bananapeel/suicide_act(mob/user) user.visible_message("[user] is deliberately slipping on [src]! It looks like [user.p_theyre()] trying to commit suicide!") - playsound(loc, 'sound/misc/slip.ogg', 50, 1, -1) + playsound(loc, 'sound/misc/slip.ogg', 50, TRUE, -1) return BRUTELOSS diff --git a/code/modules/hydroponics/grown/citrus.dm b/code/modules/hydroponics/grown/citrus.dm index 888bcdc9aefa..f4d1b53d0e3c 100644 --- a/code/modules/hydroponics/grown/citrus.dm +++ b/code/modules/hydroponics/grown/citrus.dm @@ -124,7 +124,7 @@ var/mob/living/carbon/C = user C.throw_mode_on() icon_state = "firelemon_active" - playsound(loc, 'sound/weapons/armbomb.ogg', 75, 1, -3) + playsound(loc, 'sound/weapons/armbomb.ogg', 75, TRUE, -3) addtimer(CALLBACK(src, PROC_REF(prime)), rand(10, 60)) /obj/item/food/snacks/grown/firelemon/burn() diff --git a/code/modules/hydroponics/hydroitemdefines.dm b/code/modules/hydroponics/hydroitemdefines.dm index 5b7a1977e654..262c623b226d 100644 --- a/code/modules/hydroponics/hydroitemdefines.dm +++ b/code/modules/hydroponics/hydroitemdefines.dm @@ -122,7 +122,7 @@ /obj/item/hatchet/suicide_act(mob/user) user.visible_message("[user] is chopping at [user.p_themselves()] with [src]! It looks like [user.p_theyre()] trying to commit suicide!") - playsound(loc, 'sound/weapons/bladeslice.ogg', 50, 1, -1) + playsound(loc, 'sound/weapons/bladeslice.ogg', 50, TRUE, -1) return BRUTELOSS /obj/item/hatchet/unathiknife @@ -172,7 +172,7 @@ var/obj/item/organ/external/affecting = H.get_organ("head") if(affecting) affecting.droplimb(1, DROPLIMB_SHARP) - playsound(loc, pick('sound/misc/desceration-01.ogg','sound/misc/desceration-02.ogg','sound/misc/desceration-01.ogg'), 50, 1, -1) + playsound(loc, pick('sound/misc/desceration-01.ogg','sound/misc/desceration-02.ogg','sound/misc/desceration-01.ogg'), 50, TRUE, -1) return BRUTELOSS /obj/item/scythe/pre_attack(atom/A, mob/living/user, params) diff --git a/code/modules/instruments/objs/items/instrument_items.dm b/code/modules/instruments/objs/items/instrument_items.dm index 355e9def2cdb..ef53ea410fa2 100644 --- a/code/modules/instruments/objs/items/instrument_items.dm +++ b/code/modules/instruments/objs/items/instrument_items.dm @@ -92,7 +92,7 @@ AddComponent(/datum/component/spooky) /obj/item/instrument/trumpet/spectral/attack(mob/living/carbon/C, mob/user) - playsound(src, 'sound/instruments/trombone/En4.mid', 100, 1, -1) + playsound(src, 'sound/instruments/trombone/En4.mid', 100, TRUE, -1) ..() /obj/item/instrument/saxophone @@ -115,7 +115,7 @@ AddComponent(/datum/component/spooky) /obj/item/instrument/saxophone/spectral/attack(mob/living/carbon/C, mob/user) - playsound(src, 'sound/instruments/saxophone/En4.mid', 100,1,-1) + playsound(src, 'sound/instruments/saxophone/En4.mid', 100, TRUE,-1) ..() /obj/item/instrument/trombone @@ -148,7 +148,7 @@ attack_verb = list("Wahed", "Waahed", "Waaahed", "Honked") /obj/item/instrument/trombone/sad/attack(mob/living/carbon/C, mob/user) - playsound(loc, 'sound/misc/sadtrombone.ogg', 50, 1, -1) + playsound(loc, 'sound/misc/sadtrombone.ogg', 50, TRUE, -1) ..() /obj/item/instrument/recorder diff --git a/code/modules/martial_arts/brawling.dm b/code/modules/martial_arts/brawling.dm index 14a67dfc7f38..ade32720246b 100644 --- a/code/modules/martial_arts/brawling.dm +++ b/code/modules/martial_arts/brawling.dm @@ -18,7 +18,7 @@ var/damage = rand(5, 8) + A.dna.species.punchdamagelow if(!damage) - playsound(D.loc, 'sound/weapons/punchmiss.ogg', 25, 1, -1) + playsound(D.loc, 'sound/weapons/punchmiss.ogg', 25, TRUE, -1) D.visible_message("[A] has attempted to hit [D] with a [atk_verb]!") add_attack_logs(A, D, "Melee attacked with [src] (miss/block)", ATKLOG_ALL) return 0 @@ -27,7 +27,7 @@ var/obj/item/organ/external/affecting = D.get_organ(ran_zone(A.zone_selected)) var/armor_block = D.run_armor_check(affecting, MELEE) - playsound(D.loc, 'sound/weapons/punch1.ogg', 25, 1, -1) + playsound(D.loc, 'sound/weapons/punch1.ogg', 25, TRUE, -1) D.visible_message("[A] has hit [D] with a [atk_verb]!", \ "[A] has hit [D] with a [atk_verb]!") @@ -76,14 +76,14 @@ damage = 0 if(!damage) - playsound(D.loc, 'sound/weapons/punchmiss.ogg', 25, 1, -1) + playsound(D.loc, 'sound/weapons/punchmiss.ogg', 25, TRUE, -1) D.visible_message("[A] has attempted to hit [D] with a [atk_verb]!") return 1 //returns 1 so that they actually miss and don't switch to attackhand damage var/obj/item/organ/external/affecting = D.get_organ(ran_zone(A.zone_selected)) var/armor_block = D.run_armor_check(affecting, MELEE) - playsound(D.loc, 'sound/weapons/punch1.ogg', 25, 1, -1) + playsound(D.loc, 'sound/weapons/punch1.ogg', 25, TRUE, -1) D.visible_message("[A] has hit [D] with a [atk_verb]!", \ diff --git a/code/modules/martial_arts/combos/cqc/consecutive.dm b/code/modules/martial_arts/combos/cqc/consecutive.dm index fc7efc897f80..4e71938cc8a3 100644 --- a/code/modules/martial_arts/combos/cqc/consecutive.dm +++ b/code/modules/martial_arts/combos/cqc/consecutive.dm @@ -7,7 +7,7 @@ if(!target.stat) target.visible_message("[user] strikes [target]'s abdomen, neck and back consecutively", \ "[user] strikes your abdomen, neck and back consecutively!") - playsound(get_turf(target), 'sound/weapons/cqchit2.ogg', 50, 1, -1) + playsound(get_turf(target), 'sound/weapons/cqchit2.ogg', 50, TRUE, -1) target.apply_damage(70, STAMINA) target.apply_damage(20, BRUTE) add_attack_logs(user, target, "Melee attacked with martial-art [src] : Consecutive", ATKLOG_ALL) diff --git a/code/modules/martial_arts/combos/cqc/kick.dm b/code/modules/martial_arts/combos/cqc/kick.dm index d94023cc5c94..132c6cbc71ec 100644 --- a/code/modules/martial_arts/combos/cqc/kick.dm +++ b/code/modules/martial_arts/combos/cqc/kick.dm @@ -8,7 +8,7 @@ if(!IS_HORIZONTAL(target) && user != target) target.visible_message("[user] kicks [target] back!", \ "[user] kicks you back!") - playsound(get_turf(user), 'sound/weapons/cqchit1.ogg', 25, 1, -1) + playsound(get_turf(user), 'sound/weapons/cqchit1.ogg', 25, TRUE, -1) var/atom/throw_target = get_edge_target_turf(target, user.dir) target.throw_at(throw_target, 1, 14, user) target.apply_damage(25, STAMINA) @@ -18,7 +18,7 @@ else if(IS_HORIZONTAL(target) && user != target) target.visible_message("[user] kicks [target]'s head, disorienting [target.p_them()]!", \ "[user] kicks your head, disorienting you!") - playsound(get_turf(user), 'sound/weapons/genhit1.ogg', 25, 1, -1) + playsound(get_turf(user), 'sound/weapons/genhit1.ogg', 25, TRUE, -1) var/atom/throw_target = get_edge_target_turf(target, user.dir) target.throw_at(throw_target, 1, 8, user) target.apply_damage(40, STAMINA) diff --git a/code/modules/martial_arts/combos/cqc/pressure.dm b/code/modules/martial_arts/combos/cqc/pressure.dm index 90de2f1be93a..374bd297e947 100644 --- a/code/modules/martial_arts/combos/cqc/pressure.dm +++ b/code/modules/martial_arts/combos/cqc/pressure.dm @@ -9,6 +9,6 @@ if(I && target.drop_item()) user.put_in_hands(I) target.apply_damage(40, STAMINA) - playsound(get_turf(user), 'sound/weapons/cqchit1.ogg', 5, 1, -1) + playsound(get_turf(user), 'sound/weapons/cqchit1.ogg', 5, TRUE, -1) add_attack_logs(user, target, "Melee attacked with martial-art [src] : Pressure", ATKLOG_ALL) return MARTIAL_COMBO_DONE diff --git a/code/modules/martial_arts/combos/cqc/slam.dm b/code/modules/martial_arts/combos/cqc/slam.dm index eaa5f88d29f7..525500e16fcb 100644 --- a/code/modules/martial_arts/combos/cqc/slam.dm +++ b/code/modules/martial_arts/combos/cqc/slam.dm @@ -9,7 +9,7 @@ return MARTIAL_COMBO_FAIL target.visible_message("[user] slams [target] into the ground!", \ "[user] slams you into the ground!") - playsound(get_turf(user), 'sound/weapons/slam.ogg', 40, 1, -1) + playsound(get_turf(user), 'sound/weapons/slam.ogg', 40, TRUE, -1) target.apply_damage(50, STAMINA) target.KnockDown(7 SECONDS) target.SetConfused(12 SECONDS) diff --git a/code/modules/martial_arts/combos/krav_maga/leg_sweep.dm b/code/modules/martial_arts/combos/krav_maga/leg_sweep.dm index e70fa5dfbe42..3f12a91c134f 100644 --- a/code/modules/martial_arts/combos/krav_maga/leg_sweep.dm +++ b/code/modules/martial_arts/combos/krav_maga/leg_sweep.dm @@ -14,7 +14,7 @@ user.do_attack_animation(target, ATTACK_EFFECT_KICK) target.visible_message("[user] leg sweeps [target]!", \ "[user] leg sweeps you!") - playsound(get_turf(user), 'sound/effects/hit_kick.ogg', 50, 1, -1) + playsound(get_turf(user), 'sound/effects/hit_kick.ogg', 50, TRUE, -1) target.apply_damage(5, BRUTE) target.KnockDown(4 SECONDS) add_attack_logs(user, target, "Melee attacked with martial-art [src] : Leg Sweep", ATKLOG_ALL) diff --git a/code/modules/martial_arts/combos/krav_maga/lung_punch.dm b/code/modules/martial_arts/combos/krav_maga/lung_punch.dm index 9ed06508ca87..b4f91d320900 100644 --- a/code/modules/martial_arts/combos/krav_maga/lung_punch.dm +++ b/code/modules/martial_arts/combos/krav_maga/lung_punch.dm @@ -6,7 +6,7 @@ user.do_attack_animation(target, ATTACK_EFFECT_PUNCH) target.visible_message("[user] pounds [target] on the chest!", \ "[user] slams your chest! You can't breathe!") - playsound(get_turf(user), 'sound/effects/hit_punch.ogg', 50, 1, -1) + playsound(get_turf(user), 'sound/effects/hit_punch.ogg', 50, TRUE, -1) target.AdjustLoseBreath(10 SECONDS) target.apply_damage(30, STAMINA) add_attack_logs(user, target, "Melee attacked with martial-art [src] : Lung Punch", ATKLOG_ALL) diff --git a/code/modules/martial_arts/combos/krav_maga/neck_chop.dm b/code/modules/martial_arts/combos/krav_maga/neck_chop.dm index 687c6bbc4a55..c5158a9d3349 100644 --- a/code/modules/martial_arts/combos/krav_maga/neck_chop.dm +++ b/code/modules/martial_arts/combos/krav_maga/neck_chop.dm @@ -6,7 +6,7 @@ user.do_attack_animation(target, ATTACK_EFFECT_PUNCH) target.visible_message("[user] karate chops [target]'s neck!", \ "[user] karate chops your neck, rendering you unable to speak for a short time!") - playsound(get_turf(user), 'sound/effects/hit_punch.ogg', 50, 1, -1) + playsound(get_turf(user), 'sound/effects/hit_punch.ogg', 50, TRUE, -1) target.apply_damage(5, BRUTE, BODY_ZONE_HEAD) target.AdjustSilence(20 SECONDS) add_attack_logs(user, target, "Melee attacked with martial-art [src] : Neck Chop", ATKLOG_ALL) diff --git a/code/modules/martial_arts/combos/mimejutsu/mimechucks.dm b/code/modules/martial_arts/combos/mimejutsu/mimechucks.dm index a710ebfe9100..5bce85ff1145 100644 --- a/code/modules/martial_arts/combos/mimejutsu/mimechucks.dm +++ b/code/modules/martial_arts/combos/mimejutsu/mimechucks.dm @@ -7,7 +7,7 @@ if(!target.stat && !target.IsStunned() && !target.IsWeakened()) var/damage = rand(5, 8) + user.dna.species.punchdamagelow if(!damage) - playsound(target.loc, 'sound/weapons/punchmiss.ogg', 25, 1, -1) + playsound(target.loc, 'sound/weapons/punchmiss.ogg', 25, TRUE, -1) target.visible_message("[user] swings invisible nunchcuks at [target]..and misses?") return MARTIAL_COMBO_DONE @@ -17,7 +17,7 @@ target.visible_message("[user] has hit [target] with invisible nunchucks!", \ "[user] has hit [target] with a with invisible nunchuck!") - playsound(get_turf(user), 'sound/weapons/thudswoosh.ogg', 50, 1, -1) + playsound(get_turf(user), 'sound/weapons/thudswoosh.ogg', 50, TRUE, -1) target.apply_damage(damage, STAMINA, affecting, armor_block) add_attack_logs(user, target, "Melee attacked with [src] (mimechuck)") diff --git a/code/modules/martial_arts/combos/plasma_fist/the_plasma_fist.dm b/code/modules/martial_arts/combos/plasma_fist/the_plasma_fist.dm index 93c3e3ef4803..c5dfcec393d1 100644 --- a/code/modules/martial_arts/combos/plasma_fist/the_plasma_fist.dm +++ b/code/modules/martial_arts/combos/plasma_fist/the_plasma_fist.dm @@ -5,7 +5,7 @@ /datum/martial_combo/plasma_fist/plasma_fist/perform_combo(mob/living/carbon/human/user, mob/living/target, datum/martial_art/MA) user.do_attack_animation(target, ATTACK_EFFECT_PUNCH) - playsound(target.loc, 'sound/weapons/punch1.ogg', 50, 1, -1) + playsound(target.loc, 'sound/weapons/punch1.ogg', 50, TRUE, -1) user.say("PLASMA FIST!") target.visible_message("[user] has hit [target] with THE PLASMA FIST TECHNIQUE!", \ "[user] has hit [target] with THE PLASMA FIST TECHNIQUE!") diff --git a/code/modules/martial_arts/combos/plasma_fist/throwback.dm b/code/modules/martial_arts/combos/plasma_fist/throwback.dm index 7057452a913b..3df734457e3e 100644 --- a/code/modules/martial_arts/combos/plasma_fist/throwback.dm +++ b/code/modules/martial_arts/combos/plasma_fist/throwback.dm @@ -6,7 +6,7 @@ /datum/martial_combo/plasma_fist/throwback/perform_combo(mob/living/carbon/human/user, mob/living/target, datum/martial_art/MA) target.visible_message("[user] has hit [target] with Plasma Punch!", \ "[user] has hit [target] with Plasma Punch!") - playsound(target.loc, 'sound/weapons/punch1.ogg', 50, 1, -1) + playsound(target.loc, 'sound/weapons/punch1.ogg', 50, TRUE, -1) var/atom/throw_target = get_edge_target_turf(target, get_dir(target, get_step_away(target, user))) target.throw_at(throw_target, 200, 4, user) user.say("HYAH!") diff --git a/code/modules/martial_arts/combos/plasma_fist/tornado_sweep.dm b/code/modules/martial_arts/combos/plasma_fist/tornado_sweep.dm index bc1d44bebfc7..0141a1b9cd8e 100644 --- a/code/modules/martial_arts/combos/plasma_fist/tornado_sweep.dm +++ b/code/modules/martial_arts/combos/plasma_fist/tornado_sweep.dm @@ -16,5 +16,5 @@ /datum/martial_combo/plasma_fist/tornado_sweep/proc/do_tornado_effect(mob/living/carbon/human/user) for(var/i in list(NORTH,SOUTH,EAST,WEST,EAST,SOUTH,NORTH,SOUTH,EAST,WEST,EAST,SOUTH)) user.dir = i - playsound(user.loc, 'sound/weapons/punch1.ogg', 15, 1, -1) + playsound(user.loc, 'sound/weapons/punch1.ogg', 15, TRUE, -1) sleep(1) diff --git a/code/modules/martial_arts/cqc.dm b/code/modules/martial_arts/cqc.dm index 416d2d7dea05..405c52d2a99f 100644 --- a/code/modules/martial_arts/cqc.dm +++ b/code/modules/martial_arts/cqc.dm @@ -100,16 +100,16 @@ picked_hit_type = "stomps on" D.apply_damage(bonus_damage, STAMINA) if(picked_hit_type == "kicks" || picked_hit_type == "stomps on") - playsound(get_turf(D), 'sound/weapons/cqchit2.ogg', 10, 1, -1) + playsound(get_turf(D), 'sound/weapons/cqchit2.ogg', 10, TRUE, -1) else - playsound(get_turf(D), 'sound/weapons/cqchit1.ogg', 10, 1, -1) + playsound(get_turf(D), 'sound/weapons/cqchit1.ogg', 10, TRUE, -1) D.visible_message("[A] [picked_hit_type] [D]!", \ "[A] [picked_hit_type] you!") add_attack_logs(A, D, "Melee attacked with martial-art [src] : [picked_hit_type]", ATKLOG_ALL) if(IS_HORIZONTAL(A) && !IS_HORIZONTAL(D)) D.visible_message("[A] leg sweeps [D]!", \ "[A] leg sweeps you!") - playsound(get_turf(A), 'sound/effects/hit_kick.ogg', 10, 1, -1) + playsound(get_turf(A), 'sound/effects/hit_kick.ogg', 10, TRUE, -1) D.KnockDown(5 SECONDS) A.SetKnockDown(0 SECONDS) A.resting = FALSE @@ -134,7 +134,7 @@ D.apply_damage(15, STAMINA) else D.visible_message("[A] attempted to disarm [D]!", "[A] attempted to disarm [D]!") - playsound(D, 'sound/weapons/punchmiss.ogg', 5, 1, -1) + playsound(D, 'sound/weapons/punchmiss.ogg', 5, TRUE, -1) add_attack_logs(A, D, "Disarmed with martial-art [src]", ATKLOG_ALL) return TRUE diff --git a/code/modules/martial_arts/grav_stomp.dm b/code/modules/martial_arts/grav_stomp.dm index e024be28a487..b5877b231d13 100644 --- a/code/modules/martial_arts/grav_stomp.dm +++ b/code/modules/martial_arts/grav_stomp.dm @@ -11,7 +11,7 @@ bonus_damage = 15 picked_hit_type = "stomps on" A.do_attack_animation(D, ATTACK_EFFECT_KICK) - playsound(get_turf(D), 'sound/effects/hit_kick.ogg', 50, 1, -1) + playsound(get_turf(D), 'sound/effects/hit_kick.ogg', 50, TRUE, -1) D.apply_damage(bonus_damage, BRUTE) D.visible_message("[A] [picked_hit_type] [D]!", \ "[A] [picked_hit_type] you!") diff --git a/code/modules/martial_arts/martial.dm b/code/modules/martial_arts/martial.dm index 015531e55bc8..b9d1100c17cd 100644 --- a/code/modules/martial_arts/martial.dm +++ b/code/modules/martial_arts/martial.dm @@ -131,14 +131,14 @@ A.do_attack_animation(D, attack.animation_type) if(!damage) - playsound(D.loc, attack.miss_sound, 25, 1, -1) + playsound(D.loc, attack.miss_sound, 25, TRUE, -1) D.visible_message("[A] has attempted to [atk_verb] [D]!") return FALSE var/obj/item/organ/external/affecting = D.get_organ(ran_zone(A.zone_selected)) var/armor_block = D.run_armor_check(affecting, MELEE) - playsound(D.loc, attack.attack_sound, 25, 1, -1) + playsound(D.loc, attack.attack_sound, 25, TRUE, -1) D.visible_message("[A] has [atk_verb]ed [D]!", \ "[A] has [atk_verb]ed [D]!") @@ -420,7 +420,7 @@ "[user] twirls and slams [H] with [src]!") H.visible_message("[pick(fluffmessages)]", \ "[pick(fluffmessages)]") - playsound(get_turf(user), 'sound/effects/woodhit.ogg', 75, 1, -1) + playsound(get_turf(user), 'sound/effects/woodhit.ogg', 75, TRUE, -1) H.apply_damage(rand(13,20), STAMINA) if(prob(10)) H.visible_message("[H] collapses!", \ diff --git a/code/modules/mining/equipment/kinetic_crusher.dm b/code/modules/mining/equipment/kinetic_crusher.dm index 9c13db2b3ff3..7f50e031d798 100644 --- a/code/modules/mining/equipment/kinetic_crusher.dm +++ b/code/modules/mining/equipment/kinetic_crusher.dm @@ -105,7 +105,7 @@ return if(user.has_status_effect(STATUS_EFFECT_DASH) && user.a_intent == INTENT_HELP) if(user.throw_at(target, range = 3, speed = 3, spin = FALSE, diagonals_first = TRUE)) - playsound(src, 'sound/effects/stealthoff.ogg', 50, 1, 1) + playsound(src, 'sound/effects/stealthoff.ogg', 50, TRUE, 1) user.visible_message("[user] dashes!") else to_chat(user, "Something prevents you from dashing!") diff --git a/code/modules/mining/fulton.dm b/code/modules/mining/fulton.dm index 11bec33326eb..12cb30ef9c66 100644 --- a/code/modules/mining/fulton.dm +++ b/code/modules/mining/fulton.dm @@ -91,7 +91,7 @@ GLOBAL_LIST_EMPTY(total_extraction_beacons) balloon.appearance_flags = RESET_COLOR | RESET_ALPHA | RESET_TRANSFORM holder_obj.cut_overlay(balloon2) holder_obj.add_overlay(balloon) - playsound(holder_obj.loc, 'sound/items/fultext_deploy.ogg', 50, 1, -3) + playsound(holder_obj.loc, 'sound/items/fultext_deploy.ogg', 50, TRUE, -3) animate(holder_obj, pixel_z = 10, time = 20) sleep(20) animate(holder_obj, pixel_z = 15, time = 10) @@ -102,7 +102,7 @@ GLOBAL_LIST_EMPTY(total_extraction_beacons) sleep(10) animate(holder_obj, pixel_z = 10, time = 10) sleep(10) - playsound(holder_obj.loc, 'sound/items/fultext_launch.ogg', 50, 1, -3) + playsound(holder_obj.loc, 'sound/items/fultext_launch.ogg', 50, TRUE, -3) animate(holder_obj, pixel_z = 1000, time = 30) if(ishuman(A)) var/mob/living/carbon/human/L = A diff --git a/code/modules/mob/living/carbon/alien/alien_death.dm b/code/modules/mob/living/carbon/alien/alien_death.dm index fa5e5a1f12c7..d6bf44791b16 100644 --- a/code/modules/mob/living/carbon/alien/alien_death.dm +++ b/code/modules/mob/living/carbon/alien/alien_death.dm @@ -69,6 +69,6 @@ if(!gibbed) if(death_sound) - playsound(loc, death_sound, 80, 1, 1) + playsound(loc, death_sound, 80, TRUE, 1) visible_message("[src] [death_message]") update_icons() diff --git a/code/modules/mob/living/carbon/alien/alien_defense.dm b/code/modules/mob/living/carbon/alien/alien_defense.dm index 491d5612f72c..1cc859a92951 100644 --- a/code/modules/mob/living/carbon/alien/alien_defense.dm +++ b/code/modules/mob/living/carbon/alien/alien_defense.dm @@ -26,7 +26,7 @@ This code could certainly use with a touch of TLC, but it functions alright. Bit else if(health > 0) M.do_attack_animation(src, ATTACK_EFFECT_BITE) - playsound(loc, 'sound/weapons/bite.ogg', 50, 1, -1) + playsound(loc, 'sound/weapons/bite.ogg', 50, TRUE, -1) visible_message("[M.name] bites [src]!", \ "[M.name] bites [src]!") adjustBruteLoss(1) diff --git a/code/modules/mob/living/carbon/alien/humanoid/caste/hunter.dm b/code/modules/mob/living/carbon/alien/humanoid/caste/hunter.dm index 213e0d33c2c4..ac5eea221d0c 100644 --- a/code/modules/mob/living/carbon/alien/humanoid/caste/hunter.dm +++ b/code/modules/mob/living/carbon/alien/humanoid/caste/hunter.dm @@ -88,7 +88,7 @@ else if(A.density && !A.CanPass(src)) visible_message("[src] smashes into [A]!", "[src] smashes into [A]!") Weaken(2 SECONDS, TRUE) - playsound(get_turf(src), 'sound/effects/bang.ogg', 50, 0, 0) // owwie + playsound(get_turf(src), 'sound/effects/bang.ogg', 50, FALSE, 0) // owwie ..() if(leaping) leaping = FALSE diff --git a/code/modules/mob/living/carbon/alien/humanoid/humanoid.dm b/code/modules/mob/living/carbon/alien/humanoid/humanoid.dm index f86cc9387d5c..34462f3f988b 100644 --- a/code/modules/mob/living/carbon/alien/humanoid/humanoid.dm +++ b/code/modules/mob/living/carbon/alien/humanoid/humanoid.dm @@ -77,7 +77,7 @@ GLOBAL_LIST_INIT(strippable_alien_humanoid_items, create_strippable_list(list( . += alien_movement_delay /mob/living/carbon/alien/humanoid/resist_restraints(attempt_breaking) - playsound(src, 'sound/voice/hiss5.ogg', 40, 1, 1) //Alien roars when starting to break free + playsound(src, 'sound/voice/hiss5.ogg', 40, TRUE, 1) //Alien roars when starting to break free attempt_breaking = TRUE return ..() diff --git a/code/modules/mob/living/carbon/alien/humanoid/humanoid_defense.dm b/code/modules/mob/living/carbon/alien/humanoid/humanoid_defense.dm index 43c9bd959364..7be3ae028f90 100644 --- a/code/modules/mob/living/carbon/alien/humanoid/humanoid_defense.dm +++ b/code/modules/mob/living/carbon/alien/humanoid/humanoid_defense.dm @@ -10,7 +10,7 @@ Stun(2 SECONDS) throw_at(get_edge_target_turf(user, get_dir(user, src)), 3, 7) hitverb = "slammed" - playsound(loc, "punch", 25, 1, -1) + playsound(loc, "punch", 25, TRUE, -1) visible_message("[user] has [hitverb] [src]!", "[user] has [hitverb] [src]!") return TRUE @@ -20,7 +20,7 @@ if(INTENT_HARM) var/damage = rand(1, 9) if(prob(90)) - playsound(loc, "punch", 25, 1, -1) + playsound(loc, "punch", 25, TRUE, -1) visible_message("[M] has punched [src]!", \ "[M] has punched [src]!") if((stat != DEAD) && (damage > 9||prob(5)))//Regular humans have a very small chance of weakening an alien. @@ -31,25 +31,25 @@ adjustBruteLoss(damage) add_attack_logs(M, src, "Melee attacked with fists") else - playsound(loc, 'sound/weapons/punchmiss.ogg', 25, 1, -1) + playsound(loc, 'sound/weapons/punchmiss.ogg', 25, TRUE, -1) visible_message("[M] has attempted to punch [src]!") if(INTENT_DISARM) if(!IS_HORIZONTAL(src)) if(prob(5))//Very small chance to push an alien down. Paralyse(4 SECONDS) - playsound(loc, 'sound/weapons/thudswoosh.ogg', 50, 1, -1) + playsound(loc, 'sound/weapons/thudswoosh.ogg', 50, TRUE, -1) add_attack_logs(M, src, "Pushed over") visible_message("[M] has pushed down [src]!", \ "[M] has pushed down [src]!") else if(prob(50)) drop_item() - playsound(loc, 'sound/weapons/thudswoosh.ogg', 50, 1, -1) + playsound(loc, 'sound/weapons/thudswoosh.ogg', 50, TRUE, -1) visible_message("[M] has disarmed [src]!", \ "[M] has disarmed [src]!") else - playsound(loc, 'sound/weapons/punchmiss.ogg', 25, 1, -1) + playsound(loc, 'sound/weapons/punchmiss.ogg', 25, TRUE, -1) visible_message("[M] has attempted to disarm [src]!") /mob/living/carbon/alien/humanoid/do_attack_animation(atom/A, visual_effect_icon, obj/item/used_item, no_effect) diff --git a/code/modules/mob/living/carbon/alien/larva/larva_defense.dm b/code/modules/mob/living/carbon/alien/larva/larva_defense.dm index 8765db04c6da..68c45b36ed37 100644 --- a/code/modules/mob/living/carbon/alien/larva/larva_defense.dm +++ b/code/modules/mob/living/carbon/alien/larva/larva_defense.dm @@ -2,7 +2,7 @@ if(..()) var/damage = rand(1, 9) if(prob(90)) - playsound(loc, "punch", 25, 1, -1) + playsound(loc, "punch", 25, TRUE, -1) add_attack_logs(M, src, "Melee attacked with fists") visible_message("[M] has kicked [src]!", \ "[M] has kicked [src]!") @@ -12,7 +12,7 @@ adjustBruteLoss(damage) updatehealth() else - playsound(loc, 'sound/weapons/punchmiss.ogg', 25, 1, -1) + playsound(loc, 'sound/weapons/punchmiss.ogg', 25, TRUE, -1) visible_message("[M] has attempted to kick [src]!", \ "[M] has attempted to kick [src]!") diff --git a/code/modules/mob/living/carbon/carbon_procs.dm b/code/modules/mob/living/carbon/carbon_procs.dm index abc061cd5dc9..fb7f32cabd3c 100644 --- a/code/modules/mob/living/carbon/carbon_procs.dm +++ b/code/modules/mob/living/carbon/carbon_procs.dm @@ -228,7 +228,7 @@ adjustStaminaLoss(-10) resting = FALSE stand_up() // help them up if possible - playsound(loc, 'sound/weapons/thudswoosh.ogg', 50, 1, -1) + playsound(loc, 'sound/weapons/thudswoosh.ogg', 50, TRUE, -1) if(!player_logged) M.visible_message( \ "[M] shakes [src] trying to wake [p_them()] up!",\ @@ -241,7 +241,7 @@ M.apply_status_effect(effect.type) return // BEGIN HUGCODE - N3X - playsound(get_turf(src), 'sound/weapons/thudswoosh.ogg', 50, 1, -1) + playsound(get_turf(src), 'sound/weapons/thudswoosh.ogg', 50, TRUE, -1) if(M.zone_selected == "head") M.visible_message(\ "[M] pats [src] on the head.",\ @@ -699,11 +699,13 @@ GLOBAL_LIST_INIT(ventcrawl_machinery, list(/obj/machinery/atmospherics/unary/ven to_chat(src, "You set [I] down gently on the ground.") return - if(thrown_thing) - if(!HAS_TRAIT(thrown_thing, TRAIT_NO_THROWN_MESSAGE)) - visible_message("[src] has thrown [thrown_thing].") - newtonian_move(get_dir(target, src)) - thrown_thing.throw_at(target, thrown_thing.throw_range, thrown_thing.throw_speed, src, null, null, null, move_force) + if(QDELETED(thrown_thing)) + return + + if(!HAS_TRAIT(thrown_thing, TRAIT_NO_THROWN_MESSAGE)) + visible_message("[src] has thrown [thrown_thing].") + newtonian_move(get_dir(target, src)) + thrown_thing.throw_at(target, thrown_thing.throw_range, thrown_thing.throw_speed, src, null, null, null, move_force) /mob/living/carbon/can_use_hands() if(handcuffed) @@ -1070,7 +1072,7 @@ GLOBAL_LIST_INIT(ventcrawl_machinery, list(/obj/machinery/atmospherics/unary/ven stop_pulling() to_chat(src, "You [slipVerb]ped on [description]!") - playsound(loc, 'sound/misc/slip.ogg', 50, 1, -3) + playsound(loc, 'sound/misc/slip.ogg', 50, TRUE, -3) // Something something don't run with scissors moving_diagonally = 0 //If this was part of diagonal move slipping will stop it. KnockDown(knockdown) diff --git a/code/modules/mob/living/carbon/carbon_update_status.dm b/code/modules/mob/living/carbon/carbon_update_status.dm index c8f2b182a4b3..f98d41b6863d 100644 --- a/code/modules/mob/living/carbon/carbon_update_status.dm +++ b/code/modules/mob/living/carbon/carbon_update_status.dm @@ -24,7 +24,7 @@ /mob/living/carbon/update_stamina() var/stam = getStaminaLoss() - if(stam > DAMAGE_PRECISION && (maxHealth - stam) <= HEALTH_THRESHOLD_CRIT && !stat) + if(stam > DAMAGE_PRECISION && (maxHealth - stam) <= HEALTH_THRESHOLD_CRIT && stat == CONSCIOUS) enter_stamcrit() else if(stam_paralyzed) SEND_SIGNAL(src, COMSIG_CARBON_EXIT_STAMINACRIT) diff --git a/code/modules/mob/living/carbon/human/human_defense.dm b/code/modules/mob/living/carbon/human/human_defense.dm index 9c8cfd9577a1..44ecca61d2b0 100644 --- a/code/modules/mob/living/carbon/human/human_defense.dm +++ b/code/modules/mob/living/carbon/human/human_defense.dm @@ -498,13 +498,13 @@ emp_act send_item_attack_message(I, user, hit_area) - if(!I.force) - return FALSE //item force is zero - var/armor = run_armor_check(affecting, MELEE, "Your armour has protected your [hit_area].", "Your armour has softened hit to your [hit_area].", armour_penetration_flat = I.armour_penetration_flat, armour_penetration_percentage = I.armour_penetration_percentage) if(armor == INFINITY) return FALSE + if(!I.force) + return TRUE // item force is zero, it deals no damage, we do not apply damage + var/weapon_sharp = I.sharp // do not roll for random blunt if the target mob is dead for the ease of decaps if(stat != DEAD) @@ -531,7 +531,7 @@ emp_act if(get_dist(H, src) <= 1) //people with TK won't get smeared with blood H.add_mob_blood(src) - if(!stat) + if(stat == CONSCIOUS) switch(hit_area) if("head")//Harder to score a stun but if you do it lasts a bit longer if(stat == CONSCIOUS && armor < 50) @@ -698,10 +698,10 @@ emp_act if(M.a_intent == INTENT_DISARM) //If not absorbed, you get disarmed, knocked down, and hit with stamina damage. if(absorb_stun(0)) visible_message("[src] is not affected by [M]'s disarm attempt!") - playsound(loc, 'sound/weapons/punchmiss.ogg', 25, 1, -1) + playsound(loc, 'sound/weapons/punchmiss.ogg', 25, TRUE, -1) return FALSE var/obj/item/organ/external/affecting = get_organ(ran_zone(M.zone_selected)) - playsound(loc, 'sound/weapons/pierce.ogg', 25, 1, -1) + playsound(loc, 'sound/weapons/pierce.ogg', 25, TRUE, -1) apply_effect(10 SECONDS, KNOCKDOWN, run_armor_check(affecting, MELEE)) M.changeNext_move(1.6 SECONDS) apply_damage(M.alien_disarm_damage, STAMINA) diff --git a/code/modules/mob/living/carbon/human/human_inventory.dm b/code/modules/mob/living/carbon/human/human_inventory.dm index 1ee19379c315..f8bcaf5d402c 100644 --- a/code/modules/mob/living/carbon/human/human_inventory.dm +++ b/code/modules/mob/living/carbon/human/human_inventory.dm @@ -443,4 +443,4 @@ return if(thing && equipped_item.can_be_inserted(thing)) // put thing in belt or bag equipped_item.handle_item_insertion(thing, src) - playsound(loc, "rustle", 50, 1, -5) + playsound(loc, "rustle", 50, TRUE, -5) diff --git a/code/modules/mob/living/carbon/human/human_life.dm b/code/modules/mob/living/carbon/human/human_life.dm index 36824f643240..bbe2a63f4717 100644 --- a/code/modules/mob/living/carbon/human/human_life.dm +++ b/code/modules/mob/living/carbon/human/human_life.dm @@ -741,7 +741,7 @@ /mob/living/carbon/human/handle_random_events() // Puke if toxloss is too high - if(!stat) + if(stat == CONSCIOUS) if(getToxLoss() >= 45 && nutrition > 20) lastpuke ++ if(lastpuke >= 25) // about 25 second delay I guess @@ -814,7 +814,7 @@ if(reagents.has_reagent("formaldehyde")) //embalming fluid stops decay return - if(decaytime <= 8 MINUTES) + if(decaytime <= 8 MINUTES) return if(decaytime > 8 MINUTES) diff --git a/code/modules/mob/living/carbon/human/human_mob.dm b/code/modules/mob/living/carbon/human/human_mob.dm index 5ecfde966c73..2a85e5213161 100644 --- a/code/modules/mob/living/carbon/human/human_mob.dm +++ b/code/modules/mob/living/carbon/human/human_mob.dm @@ -807,7 +807,7 @@ if(!src.xylophone) visible_message("[src] begins playing [p_their()] ribcage like a xylophone. It's quite spooky.","You begin to play a spooky refrain on your ribcage.","You hear a spooky xylophone melody.") var/song = pick('sound/effects/xylophone1.ogg','sound/effects/xylophone2.ogg','sound/effects/xylophone3.ogg') - playsound(loc, song, 50, 1, -1) + playsound(loc, song, 50, TRUE, -1) xylophone = 1 spawn(1200) xylophone=0 diff --git a/code/modules/mob/living/carbon/human/human_update_icons.dm b/code/modules/mob/living/carbon/human/human_update_icons.dm index 223db9d026e6..bbacc1e6cd76 100644 --- a/code/modules/mob/living/carbon/human/human_update_icons.dm +++ b/code/modules/mob/living/carbon/human/human_update_icons.dm @@ -688,11 +688,11 @@ GLOBAL_LIST_EMPTY(damage_icon_parts) if(blood_DNA) // Checks for hands to make sure we don't get mysterious floating blood. if(get_organ("l_hand")) var/mutable_appearance/bloodsies_left = mutable_appearance(dna.species.blood_mask, "bloodyhand_left", layer = -L_HAND_BLOOD_LAYER) - bloodsies_left.color = feet_blood_color + bloodsies_left.color = hand_blood_color overlays_standing[L_HAND_BLOOD_LAYER] = bloodsies_left if(get_organ("r_hand")) var/mutable_appearance/bloodsies_right = mutable_appearance(dna.species.blood_mask, "bloodyhand_right", layer = -R_HAND_BLOOD_LAYER) - bloodsies_right.color = feet_blood_color + bloodsies_right.color = hand_blood_color overlays_standing[R_HAND_BLOOD_LAYER] = bloodsies_right apply_overlay(GLOVES_LAYER) apply_overlay(L_HAND_BLOOD_LAYER) diff --git a/code/modules/mob/living/carbon/human/species/_species.dm b/code/modules/mob/living/carbon/human/species/_species.dm index 310507c5f43d..0b13b6f7d3a3 100644 --- a/code/modules/mob/living/carbon/human/species/_species.dm +++ b/code/modules/mob/living/carbon/human/species/_species.dm @@ -574,7 +574,7 @@ if(target.absorb_stun(0)) target.visible_message("[target] is not affected by [user]'s disarm attempt!") user.do_attack_animation(target, ATTACK_EFFECT_DISARM) - playsound(target.loc, 'sound/weapons/punchmiss.ogg', 25, 1, -1) + playsound(target.loc, 'sound/weapons/punchmiss.ogg', 25, TRUE, -1) return FALSE if(attacker_style && attacker_style.disarm_act(user, target) == MARTIAL_ARTS_ACT_SUCCESS) return TRUE @@ -590,7 +590,7 @@ var/shove_dir = get_dir(user.loc, target.loc) var/turf/shove_to = get_step(target.loc, shove_dir) - playsound(shove_to, 'sound/weapons/thudswoosh.ogg', 50, 1, -1) + playsound(shove_to, 'sound/weapons/thudswoosh.ogg', 50, TRUE, -1) if(shove_to == user.loc) return FALSE diff --git a/code/modules/mob/living/living.dm b/code/modules/mob/living/living.dm index e099b08eb35d..ddd641ccefb6 100644 --- a/code/modules/mob/living/living.dm +++ b/code/modules/mob/living/living.dm @@ -212,7 +212,7 @@ AM.setDir(current_dir) now_pushing = FALSE -/mob/living/CanPathfindPass(obj/item/card/id/ID, to_dir, atom/movable/caller, no_id = FALSE) +/mob/living/CanPathfindPass(to_dir, datum/can_pass_info/pass_info) return TRUE // Unless you're a mule, something's trying to run you over. /mob/living/proc/can_track(mob/living/user) diff --git a/code/modules/mob/living/living_defense.dm b/code/modules/mob/living/living_defense.dm index dd085f0fdb92..54b2220f82fb 100644 --- a/code/modules/mob/living/living_defense.dm +++ b/code/modules/mob/living/living_defense.dm @@ -96,7 +96,7 @@ "[src] was arc flashed by \the [source]!", "\The [source] arc flashes and electrocutes you!", "You hear a lightning-like crack!") - playsound(loc, 'sound/effects/eleczap.ogg', 50, 1, -1) + playsound(loc, 'sound/effects/eleczap.ogg', 50, TRUE, -1) explosion(loc, -1, 0, 2, 2) else apply_damage(shock_damage, STAMINA) @@ -314,7 +314,7 @@ G.synch() LAssailant = user - playsound(src.loc, 'sound/weapons/thudswoosh.ogg', 50, 1, -1) + playsound(src.loc, 'sound/weapons/thudswoosh.ogg', 50, TRUE, -1) /*if(user.dir == src.dir) G.state = GRAB_AGGRESSIVE G.last_upgrade = world.time @@ -356,7 +356,7 @@ return FALSE if(M.attack_sound) - playsound(loc, M.attack_sound, 50, 1, 1) + playsound(loc, M.attack_sound, 50, TRUE, 1) M.do_attack_animation(src) visible_message("\The [M] [M.attacktext] [src]!", \ "\The [M] [M.attacktext] [src]!") @@ -379,7 +379,7 @@ add_attack_logs(L, src, "Larva attacked") visible_message("[L.name] bites [src]!", \ "[L.name] bites [src]!") - playsound(loc, 'sound/weapons/bite.ogg', 50, 1, -1) + playsound(loc, 'sound/weapons/bite.ogg', 50, TRUE, -1) return 1 else visible_message("[L.name] has attempted to bite [src]!", \ diff --git a/code/modules/mob/living/living_defines.dm b/code/modules/mob/living/living_defines.dm index 09c0f5375bd5..0471a39bcad2 100644 --- a/code/modules/mob/living/living_defines.dm +++ b/code/modules/mob/living/living_defines.dm @@ -14,7 +14,6 @@ var/maxHealth = 100 //Maximum health that should be possible. var/health = 100 //A mob's health - //Damage related vars, NOTE: THESE SHOULD ONLY BE MODIFIED BY PROCS var/bruteloss = 0 //Brutal damage caused by brute force (punching, being clubbed by a toolbox ect... this also accounts for pressure damage) var/oxyloss = 0 //Oxygen depravation damage (no air in lungs) diff --git a/code/modules/mob/living/silicon/ai/ai_mob.dm b/code/modules/mob/living/silicon/ai/ai_mob.dm index 3dc96c6967eb..02f751e9a276 100644 --- a/code/modules/mob/living/silicon/ai/ai_mob.dm +++ b/code/modules/mob/living/silicon/ai/ai_mob.dm @@ -807,7 +807,7 @@ GLOBAL_LIST_INIT(ai_verbs_default, list( set category = "Команды ИИ" set name = "Управление роботами" set desc = "Удалённый контроль роботов." - if(stat == 2) + if(stat == DEAD) to_chat(src, "Критическая ошибка. Система не работает.") return @@ -905,7 +905,7 @@ GLOBAL_LIST_INIT(ai_verbs_default, list( if(check_unable()) return - if(usr.stat == 2) + if(usr.stat == DEAD) to_chat(usr, "Вы не можете сменить сеть камер поскольку вы мертвы!") return @@ -945,7 +945,7 @@ GLOBAL_LIST_INIT(ai_verbs_default, list( set category = "Команды ИИ" set name = "Эмоция ИИ" - if(usr.stat == 2) + if(usr.stat == DEAD) to_chat(usr, "Вы не можете сменить эмоцию поскольку вы мертвы!") return diff --git a/code/modules/mob/living/silicon/ai/freelook/eye.dm b/code/modules/mob/living/silicon/ai/freelook/eye.dm index 0475e6952ea7..5d82f40f32f5 100644 --- a/code/modules/mob/living/silicon/ai/freelook/eye.dm +++ b/code/modules/mob/living/silicon/ai/freelook/eye.dm @@ -137,7 +137,7 @@ set category = "Команды ИИ" set name = "Переключить ускорение камеры" - if(usr.stat == 2) + if(usr.stat == DEAD) return //won't work if dead acceleration = !acceleration to_chat(usr, "Ускорение камеры было [acceleration ? "включено" : "отключено"].") diff --git a/code/modules/mob/living/silicon/pai/pai.dm b/code/modules/mob/living/silicon/pai/pai.dm index 45e8c30d2d63..90b6b19860f1 100644 --- a/code/modules/mob/living/silicon/pai/pai.dm +++ b/code/modules/mob/living/silicon/pai/pai.dm @@ -320,7 +320,7 @@ return if(user.a_intent == INTENT_HELP) user.visible_message("[user] pets [src].") - playsound(loc, 'sound/weapons/thudswoosh.ogg', 50, 1, -1) + playsound(loc, 'sound/weapons/thudswoosh.ogg', 50, TRUE, -1) else visible_message("[user.name] boops [src] on the head.") spawn(1) diff --git a/code/modules/mob/living/silicon/robot/drone/maint_drone.dm b/code/modules/mob/living/silicon/robot/drone/maint_drone.dm index c1dd8d1a1979..8007f9f60447 100644 --- a/code/modules/mob/living/silicon/robot/drone/maint_drone.dm +++ b/code/modules/mob/living/silicon/robot/drone/maint_drone.dm @@ -442,12 +442,8 @@ var/datum/pathfinding_mover/pathfind = new(src, target) - // I originally only wanted to make it use an ID if it couldnt pathfind otherwise, but that means it could take multiple minutes if both searches failed - var/obj/item/card/id/temp_id = new(src) - temp_id.access = get_all_accesses() set_pathfinding(pathfind) - var/found_path = pathfind.generate_path(150, null, temp_id) - qdel(temp_id) + var/found_path = pathfind.generate_path(150, null, get_all_accesses()) if(!found_path) set_pathfinding(null) return FALSE diff --git a/code/modules/mob/living/silicon/silicon_defense.dm b/code/modules/mob/living/silicon/silicon_defense.dm index a43af4749c76..6b564a9a80b7 100644 --- a/code/modules/mob/living/silicon/silicon_defense.dm +++ b/code/modules/mob/living/silicon/silicon_defense.dm @@ -5,7 +5,7 @@ if(..()) //if harm or disarm intent var/damage = 20 if(prob(90)) - playsound(loc, 'sound/weapons/slash.ogg', 25, 1, -1) + playsound(loc, 'sound/weapons/slash.ogg', 25, TRUE, -1) visible_message("[M] has slashed at [src]!", "[M] has slashed at [src]!") if(prob(8)) flash_eyes(affect_silicon = 1) @@ -14,7 +14,7 @@ adjustBruteLoss(damage) updatehealth() else - playsound(loc, 'sound/weapons/slashmiss.ogg', 25, 1, -1) + playsound(loc, 'sound/weapons/slashmiss.ogg', 25, TRUE, -1) visible_message("[M] took a swipe at [src]!", \ "[M] took a swipe at [src]!") return @@ -50,7 +50,7 @@ return FALSE ..(user, TRUE) adjustBruteLoss(run_armor(rand(10, 15), BRUTE, MELEE)) - playsound(loc, "punch", 25, 1, -1) + playsound(loc, "punch", 25, TRUE, -1) visible_message("[user] has punched [src]!", "[user] has punched [src]!") return TRUE return FALSE @@ -60,7 +60,7 @@ if(INTENT_HELP) M.visible_message("[M] pets [src]!", \ "You pet [src]!") - playsound(loc, 'sound/weapons/thudswoosh.ogg', 50, 1, -1) + playsound(loc, 'sound/weapons/thudswoosh.ogg', 50, TRUE, -1) if("grab") grabbedby(M) else diff --git a/code/modules/mob/living/simple_animal/animal_defense.dm b/code/modules/mob/living/simple_animal/animal_defense.dm index 6f42e128fc5e..59235d985606 100644 --- a/code/modules/mob/living/simple_animal/animal_defense.dm +++ b/code/modules/mob/living/simple_animal/animal_defense.dm @@ -12,7 +12,7 @@ if(INTENT_HELP) if(health > 0) visible_message("[M] [response_help] [src].", "[M] [response_help] you.") - playsound(loc, 'sound/weapons/thudswoosh.ogg', 50, 1, -1) + playsound(loc, 'sound/weapons/thudswoosh.ogg', 50, TRUE, -1) if(INTENT_GRAB) if(holder_type) // SS220 EDIT START @@ -26,7 +26,7 @@ return M.do_attack_animation(src, ATTACK_EFFECT_PUNCH) visible_message("[M] [response_harm] [src]!", "[M] [response_harm] you!") - playsound(loc, attacked_sound, 25, 1, -1) + playsound(loc, attacked_sound, 25, TRUE, -1) attack_threshold_check(harm_intent_damage) add_attack_logs(M, src, "Melee attacked with fists") updatehealth() @@ -38,7 +38,7 @@ to_chat(user, "You don't want to hurt [src]!") return FALSE ..(user, TRUE) - playsound(loc, "punch", 25, 1, -1) + playsound(loc, "punch", 25, TRUE, -1) visible_message("[user] has punched [src]!", "[user] has punched [src]!") adjustBruteLoss(15) return TRUE @@ -53,7 +53,7 @@ var/damage = rand(15, 30) visible_message("[M] has slashed at [src]!", \ "[M] has slashed at [src]!") - playsound(loc, 'sound/weapons/slice.ogg', 25, 1, -1) + playsound(loc, 'sound/weapons/slice.ogg', 25, TRUE, -1) add_attack_logs(M, src, "Alien attacked") attack_threshold_check(damage) return TRUE diff --git a/code/modules/mob/living/simple_animal/bot/bot.dm b/code/modules/mob/living/simple_animal/bot/bot.dm index e1c52a5e3012..b7c20bc9fff0 100644 --- a/code/modules/mob/living/simple_animal/bot/bot.dm +++ b/code/modules/mob/living/simple_animal/bot/bot.dm @@ -178,7 +178,7 @@ return if(!bot_move(last_target_location, move_speed = 6)) - var/last_target_pos_path = get_path_to(src, last_target_location, id = access_card, skip_first = TRUE) + var/last_target_pos_path = get_path_to(src, last_target_location, access = access_card.access, skip_first = TRUE) if(length(last_target_pos_path) == 0) frustration = 10 return @@ -363,7 +363,7 @@ user.do_attack_animation(src) apply_damage(rand(15,30), BRUTE) visible_message("[user] has slashed [src]!") - playsound(loc, 'sound/weapons/slice.ogg', 25, 1, -1) + playsound(loc, 'sound/weapons/slice.ogg', 25, TRUE, -1) if(prob(10)) new /obj/effect/decal/cleanable/blood/oil(loc) @@ -656,7 +656,7 @@ Pass a positive integer as an argument to override a bot's default speed. access_card.access = get_all_accesses() // Give the bot temporary all access - set_path(get_path_to(src, waypoint, 200, id = access_card)) + set_path(get_path_to(src, waypoint, 200, access = access_card.access)) calling_ai = caller // Link the AI to the bot! ai_waypoint = waypoint @@ -880,12 +880,12 @@ Pass a positive integer as an argument to override a bot's default speed. // Given an optional turf to avoid /mob/living/simple_animal/bot/proc/calc_path(turf/avoid) check_bot_access() - set_path(get_path_to(src, patrol_target, 120, id=access_card, exclude=avoid)) + set_path(get_path_to(src, patrol_target, 120, access = access_card.access, exclude=avoid)) /mob/living/simple_animal/bot/proc/calc_summon_path(turf/avoid) set waitfor = FALSE check_bot_access() - set_path(get_path_to(src, summon_target, 150, id=access_card, exclude=avoid)) + set_path(get_path_to(src, summon_target, 150, access = access_card.access, exclude=avoid)) if(!length(path)) // Cannot reach target. Give up and announce the issue. speak("Команда вызова не выполнена, пункт назначения недоступен.",radio_channel) bot_reset() diff --git a/code/modules/mob/living/simple_animal/bot/cleanbot.dm b/code/modules/mob/living/simple_animal/bot/cleanbot.dm index 70cb9eeecfbd..5c44404782ee 100644 --- a/code/modules/mob/living/simple_animal/bot/cleanbot.dm +++ b/code/modules/mob/living/simple_animal/bot/cleanbot.dm @@ -157,7 +157,7 @@ if(target) if(!path || !length(path)) //No path, need a new one //Try to produce a path to the target, and ignore airlocks to which it has access. - path = get_path_to(src, target, 30, id=access_card) + path = get_path_to(src, target, 30, access = access_card.access) if(!bot_move(target)) ignore_job -= target.UID() add_to_ignore(target) diff --git a/code/modules/mob/living/simple_animal/bot/ed209bot.dm b/code/modules/mob/living/simple_animal/bot/ed209bot.dm index b9f24cb07373..f0ab0f285bd9 100644 --- a/code/modules/mob/living/simple_animal/bot/ed209bot.dm +++ b/code/modules/mob/living/simple_animal/bot/ed209bot.dm @@ -575,7 +575,7 @@ /mob/living/simple_animal/bot/ed209/proc/cuff(mob/living/carbon/C) mode = BOT_ARREST - playsound(loc, 'sound/weapons/cablecuff.ogg', 30, 1, -2) + playsound(loc, 'sound/weapons/cablecuff.ogg', 30, TRUE, -2) C.visible_message("[src] is trying to put zipties on [C]!",\ "[src] is trying to put zipties on you!") diff --git a/code/modules/mob/living/simple_animal/bot/floorbot.dm b/code/modules/mob/living/simple_animal/bot/floorbot.dm index cf8efe655383..fa72d03368f7 100644 --- a/code/modules/mob/living/simple_animal/bot/floorbot.dm +++ b/code/modules/mob/living/simple_animal/bot/floorbot.dm @@ -235,9 +235,9 @@ if(!length(path)) // No path, need a new one if(!isturf(target)) var/turf/TL = get_turf(target) - path = get_path_to(src, TL, 30, id = access_card, simulated_only = 0) + path = get_path_to(src, TL, 30, access = access_card.access, simulated_only = 0) else - path = get_path_to(src, target, 30, id = access_card, simulated_only = 0) + path = get_path_to(src, target, 30, access = access_card.access, simulated_only = 0) if(!bot_move(target)) add_to_ignore(target) diff --git a/code/modules/mob/living/simple_animal/bot/griefsky.dm b/code/modules/mob/living/simple_animal/bot/griefsky.dm index 0df1d99c7237..369ee5089a01 100644 --- a/code/modules/mob/living/simple_animal/bot/griefsky.dm +++ b/code/modules/mob/living/simple_animal/bot/griefsky.dm @@ -42,7 +42,7 @@ /mob/living/simple_animal/bot/secbot/griefsky/back_to_idle() ..() - playsound(loc, 'sound/weapons/saberoff.ogg', 50, 1, -1) + playsound(loc, 'sound/weapons/saberoff.ogg', 50, TRUE, -1) /mob/living/simple_animal/bot/secbot/griefsky/emag_act(mob/user) ..() @@ -74,13 +74,13 @@ retaliate(P.firer) if((icon_state == spin_icon) && (prob(block_chance_ranged))) //only when the eswords are on visible_message("[src] deflects [P] with its energy swords!") - playsound(loc, 'sound/weapons/blade1.ogg', 50, 1, 0) + playsound(loc, 'sound/weapons/blade1.ogg', 50, TRUE, 0) else ..() /mob/living/simple_animal/bot/secbot/griefsky/proc/sword_attack(mob/living/carbon/C) // esword attack do_attack_animation(C) - playsound(loc, 'sound/weapons/blade1.ogg', 50, 1, -1) + playsound(loc, 'sound/weapons/blade1.ogg', 50, TRUE, -1) addtimer(CALLBACK(src, PROC_REF(do_sword_attack), C), 2) /mob/living/simple_animal/bot/secbot/griefsky/proc/do_sword_attack(mob/living/carbon/C) @@ -119,7 +119,7 @@ mode = BOT_START_PATROL // switch to patrol mode if(BOT_HUNT) // hunting for perp icon_state = spin_icon - playsound(loc,'sound/effects/spinsabre.ogg',50,1,-1) + playsound(loc,'sound/effects/spinsabre.ogg',50, TRUE,-1) if(frustration >= frustration_number) // general beepsky doesn't give up so easily, jedi scum walk_to(src,0) set_path(null) @@ -211,7 +211,7 @@ retaliate(P.firer) if((icon_state == spin_icon) && (prob(block_chance_ranged))) //only when the eswords are on visible_message("[src] deflects [P] with its energy swords!") - playsound(loc, 'sound/weapons/blade1.ogg', 50, 1, 0) + playsound(loc, 'sound/weapons/blade1.ogg', 50, TRUE, 0) else ..() diff --git a/code/modules/mob/living/simple_animal/bot/honkbot.dm b/code/modules/mob/living/simple_animal/bot/honkbot.dm index c21d3cdd6e33..69006bc2aa5e 100644 --- a/code/modules/mob/living/simple_animal/bot/honkbot.dm +++ b/code/modules/mob/living/simple_animal/bot/honkbot.dm @@ -127,7 +127,7 @@ to_chat(user, "You short out [src]'s target assessment circuits. It gives out an evil laugh!!") oldtarget_name = user.name audible_message("[src] gives out an evil laugh!") - playsound(src, 'sound/machines/honkbot_evil_laugh.ogg', 75, 1, -1) // evil laughter + playsound(src, 'sound/machines/honkbot_evil_laugh.ogg', 75, TRUE, -1) // evil laughter update_icon() /mob/living/simple_animal/bot/honkbot/cmag_act(mob/user) @@ -270,7 +270,7 @@ // if can't reach perp for long enough, go idle if(frustration >= 5) //gives up easier than beepsky walk_to(src, 0) - playsound(loc, 'sound/misc/sadtrombone.ogg', 25, 1, -1) + playsound(loc, 'sound/misc/sadtrombone.ogg', 25, TRUE, -1) back_to_idle() return @@ -386,7 +386,7 @@ "[C] topples over [src]!", \ "[C] leaps out of [src]'s way!")]") C.KnockDown(10 SECONDS) - playsound(loc, 'sound/misc/sadtrombone.ogg', 50, 1, -1) + playsound(loc, 'sound/misc/sadtrombone.ogg', 50, TRUE, -1) if(!client) speak("Хонк!") sensor_blink() diff --git a/code/modules/mob/living/simple_animal/bot/medbot.dm b/code/modules/mob/living/simple_animal/bot/medbot.dm index 0447585b2f12..046faea4f8bb 100644 --- a/code/modules/mob/living/simple_animal/bot/medbot.dm +++ b/code/modules/mob/living/simple_animal/bot/medbot.dm @@ -277,7 +277,7 @@ playsound(loc, 'sound/machines/buzz-two.ogg', 50, FALSE) last_warning = world.time return - if(H.stat == 2) + if(H.stat == DEAD) return if((H == oldpatient) && (world.time < last_found + 200)) @@ -335,10 +335,10 @@ return if(patient && !length(path) && (get_dist(src,patient) > 1)) - path = get_path_to(src, patient, 30,id=access_card) + path = get_path_to(src, patient, 30, access = access_card.access) mode = BOT_MOVING if(!length(path)) //try to get closer if you can't reach the patient directly - path = get_path_to(src, patient, 30,1,id=access_card) + path = get_path_to(src, patient, 30, 1, access = access_card.access) if(!length(path)) //Do not chase a patient we cannot reach. soft_reset() diff --git a/code/modules/mob/living/simple_animal/bot/mulebot.dm b/code/modules/mob/living/simple_animal/bot/mulebot.dm index 01c1420f6a96..1216277afe60 100644 --- a/code/modules/mob/living/simple_animal/bot/mulebot.dm +++ b/code/modules/mob/living/simple_animal/bot/mulebot.dm @@ -79,7 +79,7 @@ QDEL_NULL(cell) return ..() -/mob/living/simple_animal/bot/mulebot/CanPathfindPass(obj/item/card/id/ID, to_dir, atom/movable/caller, no_id) +/mob/living/simple_animal/bot/mulebot/CanPathfindPass(to_dir, datum/can_pass_info/pass_info) return FALSE /mob/living/simple_animal/bot/mulebot/can_buckle() @@ -606,7 +606,7 @@ // given an optional turf to avoid /mob/living/simple_animal/bot/mulebot/calc_path(turf/avoid = null) check_bot_access() - set_path(get_path_to(src, target, 250, id=access_card, exclude=avoid)) + set_path(get_path_to(src, target, 250, access = access_card.access, exclude = avoid)) // sets the current destination // signals all beacons matching the delivery code diff --git a/code/modules/mob/living/simple_animal/bot/secbot.dm b/code/modules/mob/living/simple_animal/bot/secbot.dm index b1c774fa47ae..3d38fa846ab1 100644 --- a/code/modules/mob/living/simple_animal/bot/secbot.dm +++ b/code/modules/mob/living/simple_animal/bot/secbot.dm @@ -241,7 +241,7 @@ /mob/living/simple_animal/bot/secbot/proc/cuff(mob/living/carbon/C) mode = BOT_ARREST - playsound(loc, 'sound/weapons/cablecuff.ogg', 30, 1, -2) + playsound(loc, 'sound/weapons/cablecuff.ogg', 30, TRUE, -2) C.visible_message("[src] is trying to put zipties on [C]!",\ "[src] is trying to put zipties on you!") INVOKE_ASYNC(src, PROC_REF(cuff_callback), C) diff --git a/code/modules/mob/living/simple_animal/friendly/cat.dm b/code/modules/mob/living/simple_animal/friendly/cat.dm index 59a38dbee4d3..36e23eeb11c5 100644 --- a/code/modules/mob/living/simple_animal/friendly/cat.dm +++ b/code/modules/mob/living/simple_animal/friendly/cat.dm @@ -121,7 +121,7 @@ collar_type = "[initial(collar_type)]_sit" /mob/living/simple_animal/pet/cat/handle_automated_action() - if(!stat && !buckled) + if(stat == CONSCIOUS && !buckled) if(prob(1)) custom_emote(EMOTE_VISIBLE, pick("stretches out for a belly rub.", "wags its tail.", "lies down.")) lay_down() diff --git a/code/modules/mob/living/simple_animal/friendly/crab.dm b/code/modules/mob/living/simple_animal/friendly/crab.dm index e1a7390a7c7a..1e3b6089f8ac 100644 --- a/code/modules/mob/living/simple_animal/friendly/crab.dm +++ b/code/modules/mob/living/simple_animal/friendly/crab.dm @@ -23,7 +23,7 @@ /mob/living/simple_animal/crab/handle_automated_movement() //CRAB movement - if(!stat || !isturf(loc) || IS_HORIZONTAL(src) || buckled) + if(stat == CONSCIOUS || !isturf(loc) || IS_HORIZONTAL(src) || buckled) return turns_since_move++ diff --git a/code/modules/mob/living/simple_animal/friendly/diona_nymph.dm b/code/modules/mob/living/simple_animal/friendly/diona_nymph.dm index 538368a9c053..ec8c532b4510 100644 --- a/code/modules/mob/living/simple_animal/friendly/diona_nymph.dm +++ b/code/modules/mob/living/simple_animal/friendly/diona_nymph.dm @@ -219,7 +219,7 @@ else if(do_after_once(src, 20, target = G)) visible_message("[src] ravenously consumes [G].", "You ravenously devour [G].") - playsound(loc, 'sound/items/eatfood.ogg', 30, 0, frequency = 1.5) + playsound(loc, 'sound/items/eatfood.ogg', 30, FALSE, frequency = 1.5) if(G.reagents.get_reagent_amount("nutriment") + G.reagents.get_reagent_amount("plantmatter") < 1) adjust_nutrition(2) else diff --git a/code/modules/mob/living/simple_animal/friendly/farm_animals.dm b/code/modules/mob/living/simple_animal/friendly/farm_animals.dm index 0e5c9d704a1e..38f8ae6789f1 100644 --- a/code/modules/mob/living/simple_animal/friendly/farm_animals.dm +++ b/code/modules/mob/living/simple_animal/friendly/farm_animals.dm @@ -70,7 +70,7 @@ /mob/living/simple_animal/hostile/retaliate/goat/Move() . = ..() - if(!stat) + if(stat == CONSCIOUS) eat_plants() /mob/living/simple_animal/hostile/retaliate/goat/attackby(obj/item/O as obj, mob/user as mob, params) @@ -159,12 +159,12 @@ udder.generateMilk() /mob/living/simple_animal/cow/attack_hand(mob/living/carbon/M as mob) - if(!stat && M.a_intent == INTENT_DISARM && icon_state != icon_dead) + if(stat == CONSCIOUS && M.a_intent == INTENT_DISARM && icon_state != icon_dead) M.visible_message("[M] tips over [src].","You tip over [src].") Weaken(60 SECONDS) icon_state = icon_dead spawn(rand(20,50)) - if(!stat && M) + if(stat == CONSCIOUS && M) icon_state = icon_living var/list/responses = list( "[src] looks at you imploringly.", "[src] looks at you pleadingly", @@ -312,7 +312,7 @@ GLOBAL_VAR_INIT(chicken_count, 0) /mob/living/simple_animal/chicken/attackby(obj/item/O, mob/user, params) if(istype(O, food_type)) //feedin' dem chickens - if(!stat && eggsleft < 8) + if(stat == CONSCIOUS && eggsleft < 8) var/feedmsg = "[user] feeds [O] to [name]! [pick(feedMessages)]" user.visible_message(feedmsg) user.drop_item() diff --git a/code/modules/mob/living/simple_animal/friendly/lizard.dm b/code/modules/mob/living/simple_animal/friendly/lizard.dm index 0fa7edbf6d25..1203cc7a72f9 100644 --- a/code/modules/mob/living/simple_animal/friendly/lizard.dm +++ b/code/modules/mob/living/simple_animal/friendly/lizard.dm @@ -31,7 +31,7 @@ var/has_tail = TRUE /mob/living/simple_animal/lizard/handle_automated_action() - if(!stat && !buckled) + if(stat == CONSCIOUS && !buckled) if(prob(1)) custom_emote(EMOTE_VISIBLE, pick("sticks out its tongue.", "wags its tail.", "lies down.")) diff --git a/code/modules/mob/living/simple_animal/friendly/mouse.dm b/code/modules/mob/living/simple_animal/friendly/mouse.dm index fc353913a78b..f6e67037be3f 100644 --- a/code/modules/mob/living/simple_animal/friendly/mouse.dm +++ b/code/modules/mob/living/simple_animal/friendly/mouse.dm @@ -100,7 +100,7 @@ /mob/living/simple_animal/mouse/Crossed(AM as mob|obj, oldloc) if(ishuman(AM)) - if(!stat) + if(stat == CONSCIOUS) var/mob/M = AM to_chat(M, "[bicon(src)] Squeek!") ..() diff --git a/code/modules/mob/living/simple_animal/friendly/pet.dm b/code/modules/mob/living/simple_animal/friendly/pet.dm index 5c5003dcf219..4ab6c836090a 100644 --- a/code/modules/mob/living/simple_animal/friendly/pet.dm +++ b/code/modules/mob/living/simple_animal/friendly/pet.dm @@ -8,12 +8,15 @@ hud_type = /datum/hud/corgi /mob/living/simple_animal/pet/attackby(obj/item/O, mob/user, params) - if(istype(O, /obj/item/newspaper)) - if(!stat) - user.visible_message("[user] baps [name] on the nose with the rolled up [O].") - spawn(0) - for(var/i in list(1,2,4,8,4,2,1,2)) - setDir(i) - sleep(1) - else + if(!istype(O, /obj/item/newspaper)) return ..() + var/obj/item/newspaper/paper = O + if(stat != CONSCIOUS || !paper.rolled) + return + user.visible_message("[user] baps [name] on the nose with the rolled up [O].") + spawn(0) + for(var/i in list(1, 2, 4, 8, 4, 2, 1, 2)) + setDir(i) + sleep(1) + + diff --git a/code/modules/mob/living/simple_animal/hostile/floorcluwne.dm b/code/modules/mob/living/simple_animal/hostile/floorcluwne.dm index 11c9de2d7112..dd33037817bd 100644 --- a/code/modules/mob/living/simple_animal/hostile/floorcluwne.dm +++ b/code/modules/mob/living/simple_animal/hostile/floorcluwne.dm @@ -338,7 +338,7 @@ if(do_after(src, 10, target = H)) step_towards(H, src) - playsound(H, pick('sound/effects/bodyscrape-01.ogg', 'sound/effects/bodyscrape-02.ogg'), 20, 1, -4) + playsound(H, pick('sound/effects/bodyscrape-01.ogg', 'sound/effects/bodyscrape-02.ogg'), 20, TRUE, -4) H.emote("scream") if(prob(25)) playsound(src, pick('sound/hallucinations/growl1.ogg', 'sound/hallucinations/growl2.ogg', 'sound/items/bikehorn.ogg'), 50, 1) @@ -402,7 +402,7 @@ if(prob(2)) switch_stage = max(switch_stage * 0.75, switch_stage_min) //he gets a chance to be faster after each feast if(smiting) - playsound(loc, 'sound/spookoween/scary_horn2.ogg', 100, 0, -4) + playsound(loc, 'sound/spookoween/scary_horn2.ogg', 100, FALSE, -4) qdel(src) else Acquire_Victim() diff --git a/code/modules/mob/living/simple_animal/hostile/hostile.dm b/code/modules/mob/living/simple_animal/hostile/hostile.dm index 3e728d2a858a..4c3cf14fd3fe 100644 --- a/code/modules/mob/living/simple_animal/hostile/hostile.dm +++ b/code/modules/mob/living/simple_animal/hostile/hostile.dm @@ -315,7 +315,7 @@ /mob/living/simple_animal/hostile/adjustHealth(damage, updating_health = TRUE) . = ..() - if(!ckey && !stat && search_objects < 3 && damage > 0)//Not unconscious, and we don't ignore mobs + if(!ckey && stat == CONSCIOUS && search_objects < 3 && damage > 0)//Not unconscious, and we don't ignore mobs if(search_objects)//Turn off item searching and ignore whatever item we were looking at, we're more concerned with fight or flight target = null LoseSearchObjects() diff --git a/code/modules/mob/living/simple_animal/hostile/megafauna/ancient_robot.dm b/code/modules/mob/living/simple_animal/hostile/megafauna/ancient_robot.dm index 88e1daee67c1..6452c4408234 100644 --- a/code/modules/mob/living/simple_animal/hostile/megafauna/ancient_robot.dm +++ b/code/modules/mob/living/simple_animal/hostile/megafauna/ancient_robot.dm @@ -487,7 +487,7 @@ Difficulty: Hard say(pick("OTZKMXOZE LGORAXK, YKRL JKYZXAIZ GIZOBK", "RUYY IKXZGOT, KTMGMKOTM XKIUBKXE JKTOGR", "VUCKX IUXKY 8-12 HXKGINKJ, UBKXRUGJOTM XKSGOTOTM IUXKY", "KXXUX KXXUX KXXUX KXXUX KXX-", "-ROQK ZKGXY OT XGOT- - -ZOSK ZU JOK")) visible_message("[src] begins to overload it's core. It is going to explode!") walk(src, 0) - playsound(src,'sound/machines/alarm.ogg',100,0,5) + playsound(src,'sound/machines/alarm.ogg', 100, FALSE, 5) addtimer(CALLBACK(src, PROC_REF(kaboom)), 10 SECONDS) /mob/living/simple_animal/hostile/megafauna/ancient_robot/proc/kaboom() diff --git a/code/modules/mob/living/simple_animal/hostile/megafauna/blood_drunk_miner.dm b/code/modules/mob/living/simple_animal/hostile/megafauna/blood_drunk_miner.dm index f5807283cd4a..56c38fb4dddd 100644 --- a/code/modules/mob/living/simple_animal/hostile/megafauna/blood_drunk_miner.dm +++ b/code/modules/mob/living/simple_animal/hostile/megafauna/blood_drunk_miner.dm @@ -265,14 +265,14 @@ Difficulty: Medium new /obj/effect/temp_visual/small_smoke/halfsecond(step_forward_turf) var/obj/effect/temp_visual/decoy/fading/halfsecond/D = new (own_turf, src) forceMove(step_back_turf) - playsound(own_turf, 'sound/weapons/punchmiss.ogg', 40, 1, -1) + playsound(own_turf, 'sound/weapons/punchmiss.ogg', 40, TRUE, -1) dashing = TRUE alpha = 0 animate(src, alpha = 255, time = 5) SLEEP_CHECK_DEATH(2) D.forceMove(step_forward_turf) forceMove(target_turf) - playsound(target_turf, 'sound/weapons/punchmiss.ogg', 40, 1, -1) + playsound(target_turf, 'sound/weapons/punchmiss.ogg', 40, TRUE, -1) SLEEP_CHECK_DEATH(1) dashing = FALSE return TRUE diff --git a/code/modules/mob/living/simple_animal/hostile/megafauna/colossus.dm b/code/modules/mob/living/simple_animal/hostile/megafauna/colossus.dm index fc7096f8b199..9f41c32f4d7e 100644 --- a/code/modules/mob/living/simple_animal/hostile/megafauna/colossus.dm +++ b/code/modules/mob/living/simple_animal/hostile/megafauna/colossus.dm @@ -329,7 +329,7 @@ Difficulty: Very Hard INVOKE_ASYNC(src, TYPE_PROC_REF(/atom/movable, orbit), target, 0, FALSE, 0, 0, FALSE, TRUE) /mob/living/simple_animal/hostile/megafauna/colossus/bullet_act(obj/item/projectile/P) - if(!stat) + if(stat == CONSCIOUS) var/obj/effect/temp_visual/at_shield/AT = new /obj/effect/temp_visual/at_shield(loc, src) var/random_x = rand(-32, 32) AT.pixel_x += random_x diff --git a/code/modules/mob/living/simple_animal/hostile/megafauna/hierophant.dm b/code/modules/mob/living/simple_animal/hostile/megafauna/hierophant.dm index eff4ffeb7c6e..943b86921906 100644 --- a/code/modules/mob/living/simple_animal/hostile/megafauna/hierophant.dm +++ b/code/modules/mob/living/simple_animal/hostile/megafauna/hierophant.dm @@ -529,7 +529,7 @@ Difficulty: Hard /mob/living/simple_animal/hostile/megafauna/hierophant/Moved(oldLoc, movement_dir) . = ..() - if(!stat && .) + if(stat == CONSCIOUS && .) var/obj/effect/temp_visual/hierophant/squares/HS = new(oldLoc) HS.setDir(movement_dir) playsound(src, 'sound/mecha/mechmove04.ogg', 65, TRUE, -4) diff --git a/code/modules/mob/living/simple_animal/hostile/mining/elites/elite.dm b/code/modules/mob/living/simple_animal/hostile/mining/elites/elite.dm index a6508166dcaa..88c8bb0a212f 100644 --- a/code/modules/mob/living/simple_animal/hostile/mining/elites/elite.dm +++ b/code/modules/mob/living/simple_animal/hostile/mining/elites/elite.dm @@ -232,7 +232,7 @@ While using this makes the system rely on OnFire, it still gives options for tim var/selectedspawn = pick(potentialspawns) mychild = new selectedspawn(loc) visible_message("[mychild] emerges from [src]!") - playsound(loc,'sound/effects/phasein.ogg', 200, 0, 50, TRUE, TRUE) + playsound(loc,'sound/effects/phasein.ogg', 200, FALSE, 50, TRUE, TRUE) if(boosted) mychild.key = elitemind.key mychild.sentience_act() @@ -246,7 +246,7 @@ While using this makes the system rely on OnFire, it still gives options for tim /obj/structure/elite_tumor/proc/return_elite() mychild.forceMove(loc) visible_message("[mychild] emerges from [src]!") - playsound(loc,'sound/effects/phasein.ogg', 200, 0, 50, TRUE, TRUE) + playsound(loc,'sound/effects/phasein.ogg', 200, FALSE, 50, TRUE, TRUE) mychild.revive() if(boosted) mychild.maxHealth = mychild.maxHealth * 2.5 @@ -339,11 +339,11 @@ While using this makes the system rely on OnFire, it still gives options for tim if(activator != null && get_dist(src, activator) >= ARENA_RADIUS) activator.forceMove(loc) visible_message("[activator] suddenly reappears above [src]!") - playsound(loc,'sound/effects/phasein.ogg', 200, 0, 50, TRUE, TRUE) + playsound(loc,'sound/effects/phasein.ogg', 200, FALSE, 50, TRUE, TRUE) if(mychild != null && get_dist(src, mychild) >= ARENA_RADIUS) mychild.forceMove(loc) visible_message("[mychild] suddenly reappears above [src]!") - playsound(loc,'sound/effects/phasein.ogg', 200, 0, 50, TRUE, TRUE) + playsound(loc,'sound/effects/phasein.ogg', 200, FALSE, 50, TRUE, TRUE) /obj/structure/elite_tumor/HasProximity(atom/movable/AM) if(!ishuman(AM) && !isrobot(AM)) @@ -360,11 +360,11 @@ While using this makes the system rely on OnFire, it still gives options for tim invaders += M var/list/valid_turfs = RANGE_EDGE_TURFS(ARENA_RADIUS + 2, src) // extra safety M.forceMove(pick(valid_turfs)) //Doesn't check for lava. Don't cheese it. - playsound(M, 'sound/effects/phasein.ogg', 200, 0, 50, TRUE, TRUE) + playsound(M, 'sound/effects/phasein.ogg', 200, FALSE, 50, TRUE, TRUE) /obj/structure/elite_tumor/proc/onEliteLoss() - playsound(loc,'sound/effects/tendril_destroyed.ogg', 200, 0, 50, TRUE, TRUE) + playsound(loc,'sound/effects/tendril_destroyed.ogg', 200, FALSE, 50, TRUE, TRUE) visible_message("[src] begins to convulse violently before beginning to dissipate.") visible_message("As [src] closes, something is forced up from down below.") var/obj/structure/closet/crate/necropolis/tendril/lootbox = new /obj/structure/closet/crate/necropolis/tendril(loc) diff --git a/code/modules/mob/living/simple_animal/hostile/mining/goldgrub.dm b/code/modules/mob/living/simple_animal/hostile/mining/goldgrub.dm index c6021bab7c42..a56c7c8def7d 100644 --- a/code/modules/mob/living/simple_animal/hostile/mining/goldgrub.dm +++ b/code/modules/mob/living/simple_animal/hostile/mining/goldgrub.dm @@ -68,7 +68,7 @@ visible_message("The ore was swallowed whole!") /mob/living/simple_animal/hostile/asteroid/goldgrub/proc/Burrow()//Begin the chase to kill the goldgrub in time - if(!stat) + if(stat == CONSCIOUS) visible_message("[src] buries into the ground, vanishing from sight!") qdel(src) diff --git a/code/modules/mob/living/simple_animal/hostile/mining/mining.dm b/code/modules/mob/living/simple_animal/hostile/mining/mining.dm index 1f0d48fee499..70ae70c6ed67 100644 --- a/code/modules/mob/living/simple_animal/hostile/mining/mining.dm +++ b/code/modules/mob/living/simple_animal/hostile/mining/mining.dm @@ -36,7 +36,7 @@ icon_state = icon_living /mob/living/simple_animal/hostile/asteroid/bullet_act(obj/item/projectile/P)//Reduces damage from most projectiles to curb off-screen kills - if(!stat) + if(stat == CONSCIOUS) Aggro() if(P.damage < 30 && P.damage_type != BRUTE && has_laser_resist) P.damage = (P.damage / 3) @@ -46,7 +46,7 @@ /mob/living/simple_animal/hostile/asteroid/hitby(atom/movable/AM, skipcatch, hitpush, blocked, datum/thrownthing/throwingdatum) //No floor tiling them to death, wiseguy if(isitem(AM)) var/obj/item/T = AM - if(!stat) + if(stat == CONSCIOUS) Aggro() if(T.throwforce <= 20) visible_message("[T] [throw_message] [src.name]!") diff --git a/code/modules/mob/living/simple_animal/hostile/mushroom.dm b/code/modules/mob/living/simple_animal/hostile/mushroom.dm index 6e2fb046dbd1..0dcd454410e6 100644 --- a/code/modules/mob/living/simple_animal/hostile/mushroom.dm +++ b/code/modules/mob/living/simple_animal/hostile/mushroom.dm @@ -45,7 +45,7 @@ /mob/living/simple_animal/hostile/mushroom/Life(seconds, times_fired) ..() - if(!stat)//Mushrooms slowly regenerate if conscious, for people who want to save them from being eaten + if(stat == CONSCIOUS)//Mushrooms slowly regenerate if conscious, for people who want to save them from being eaten adjustBruteLoss(-2) /mob/living/simple_animal/hostile/mushroom/Initialize(mapload) //Makes every shroom a little unique @@ -147,7 +147,7 @@ adjustBruteLoss(-maxHealth) //They'll always heal, even if they don't gain a level, in case you want to keep this shroom around instead of harvesting it /mob/living/simple_animal/hostile/mushroom/proc/Bruise() - if(!bruised && !stat) + if(!bruised && stat == CONSCIOUS) src.visible_message("[src] was bruised!") bruised = 1 diff --git a/code/modules/mob/living/simple_animal/hostile/terror_spiders/princess.dm b/code/modules/mob/living/simple_animal/hostile/terror_spiders/princess.dm index afd8b279c57e..9332ac77b6fb 100644 --- a/code/modules/mob/living/simple_animal/hostile/terror_spiders/princess.dm +++ b/code/modules/mob/living/simple_animal/hostile/terror_spiders/princess.dm @@ -109,7 +109,7 @@ /mob/living/simple_animal/hostile/poison/terror_spider/queen/princess/spider_special_action() // Princess AI routine. GREATLY simplified version of queen routine. - if(!stat && !ckey) + if(stat == CONSCIOUS && !ckey) // Utilize normal queen AI for finding a nest site (neststep=0), and activating NestMode() (neststep=1) if(neststep != 2) return ..() diff --git a/code/modules/mob/living/simple_animal/hostile/terror_spiders/queen_terror.dm b/code/modules/mob/living/simple_animal/hostile/terror_spiders/queen_terror.dm index 2d359f0617f7..4dfaf26f85a5 100644 --- a/code/modules/mob/living/simple_animal/hostile/terror_spiders/queen_terror.dm +++ b/code/modules/mob/living/simple_animal/hostile/terror_spiders/queen_terror.dm @@ -136,7 +136,7 @@ /mob/living/simple_animal/hostile/poison/terror_spider/queen/spider_special_action() - if(!stat && !ckey) + if(stat == CONSCIOUS && !ckey) switch(neststep) if(0) // No nest. If current location is eligible for nesting, advance to step 1. diff --git a/code/modules/mob/living/simple_animal/hostile/terror_spiders/terror_ai.dm b/code/modules/mob/living/simple_animal/hostile/terror_spiders/terror_ai.dm index 5134355baf48..63f606f8293b 100644 --- a/code/modules/mob/living/simple_animal/hostile/terror_spiders/terror_ai.dm +++ b/code/modules/mob/living/simple_animal/hostile/terror_spiders/terror_ai.dm @@ -77,7 +77,7 @@ /mob/living/simple_animal/hostile/poison/terror_spider/LoseTarget() if(target && isliving(target)) var/mob/living/T = target - if(T.stat > 0) + if(T.stat != CONSCIOUS) killcount++ regen_points += regen_points_per_kill attackstep = 0 diff --git a/code/modules/mob/living/simple_animal/parrot.dm b/code/modules/mob/living/simple_animal/parrot.dm index d248b4283733..c1e98b7b95b2 100644 --- a/code/modules/mob/living/simple_animal/parrot.dm +++ b/code/modules/mob/living/simple_animal/parrot.dm @@ -139,7 +139,7 @@ if(client) return - if(!stat && M.a_intent == "harm") + if(stat == CONSCIOUS && M.a_intent == "harm") icon_state = "parrot_fly" //It is going to be flying regardless of whether it flees or attacks if(parrot_state == PARROT_PERCH) @@ -161,7 +161,7 @@ //Mobs with objects /mob/living/simple_animal/parrot/attackby(obj/item/O, mob/user, params) ..() - if(!stat && !client && !istype(O, /obj/item/stack/medical)) + if(stat == CONSCIOUS && !client && !istype(O, /obj/item/stack/medical)) if(O.force) if(parrot_state == PARROT_PERCH) parrot_sleep_dur = parrot_sleep_max //Reset it's sleep timer if it was perched @@ -175,7 +175,7 @@ //Bullets /mob/living/simple_animal/parrot/bullet_act(obj/item/projectile/P) ..() - if(!stat && !client) + if(stat == CONSCIOUS && !client) if(parrot_state == PARROT_PERCH) parrot_sleep_dur = parrot_sleep_max //Reset it's sleep timer if it was perched @@ -189,7 +189,7 @@ /mob/living/simple_animal/parrot/grabbedby(mob/living/carbon/user, supress_message) ..() - if(held_item && !stat) + if(held_item && stat == CONSCIOUS) drop_held_item() /* @@ -712,9 +712,6 @@ animate(held_item_icon, transform = m180) underlays += held_item_icon -/mob/living/simple_animal/parrot/CanPathfindPassTo(ID, dir, obj/destination) - return is_type_in_typecache(destination, desired_perches) - #undef PARROT_PERCH #undef PARROT_SWOOP #undef PARROT_WANDER diff --git a/code/modules/mob/living/simple_animal/simple_animal.dm b/code/modules/mob/living/simple_animal/simple_animal.dm index 606c185ba64a..8cb03da0998f 100644 --- a/code/modules/mob/living/simple_animal/simple_animal.dm +++ b/code/modules/mob/living/simple_animal/simple_animal.dm @@ -622,7 +622,7 @@ /mob/living/simple_animal/adjustHealth(amount, updating_health = TRUE) . = ..() - if(!ckey && !stat)//Not unconscious + if(!ckey && stat == CONSCIOUS)//Not unconscious if(AIStatus == AI_IDLE) toggle_ai(AI_ON) diff --git a/code/modules/mob/living/simple_animal/slime/slime_life.dm b/code/modules/mob/living/simple_animal/slime/slime_life.dm index 8f8bbe9adfa3..b8d659c6b40c 100644 --- a/code/modules/mob/living/simple_animal/slime/slime_life.dm +++ b/code/modules/mob/living/simple_animal/slime/slime_life.dm @@ -5,7 +5,7 @@ if(..()) if(buckled) handle_feeding() - if(!stat) // Slimes in stasis don't lose nutrition, don't change mood and don't respond to speech + if(stat == CONSCIOUS) // Slimes in stasis don't lose nutrition, don't change mood and don't respond to speech handle_nutrition() if(QDELETED(src)) // Stop if the slime split during handle_nutrition() return @@ -152,7 +152,7 @@ /mob/living/simple_animal/slime/handle_status_effects() ..() - if(prob(30) && !stat) + if(prob(30) && stat == CONSCIOUS) adjustBruteLoss(-1) /mob/living/simple_animal/slime/proc/handle_feeding() @@ -436,7 +436,7 @@ phrases += "What happened?" if(!slimes_near) phrases += "Lonely..." - if(!stat) + if(stat == CONSCIOUS) say (pick(phrases)) /mob/living/simple_animal/slime/proc/get_max_nutrition() // Can't go above it diff --git a/code/modules/mob/living/simple_animal/slime/slime_mob.dm b/code/modules/mob/living/simple_animal/slime/slime_mob.dm index dcad68cd578c..503db02f478c 100644 --- a/code/modules/mob/living/simple_animal/slime/slime_mob.dm +++ b/code/modules/mob/living/simple_animal/slime/slime_mob.dm @@ -133,7 +133,7 @@ icon_dead = "[icon_text] dead" if(stat != DEAD) icon_state = icon_text - if(mood && !stat) + if(mood && stat == CONSCIOUS) add_overlay("aslime-[mood]") else icon_state = icon_dead @@ -357,7 +357,7 @@ for(var/datum/surgery/S in surgeries) if(S.next_step(user, src)) return 1 - if(istype(I, /obj/item/stack/sheet/mineral/plasma) && !stat) //Let's you feed slimes plasma. + if(istype(I, /obj/item/stack/sheet/mineral/plasma) && stat == CONSCIOUS) //Let's you feed slimes plasma. to_chat(user, "You feed the slime the plasma. It chirps happily.") var/obj/item/stack/sheet/mineral/plasma/S = I S.use(1) diff --git a/code/modules/mob/mob_grab.dm b/code/modules/mob/mob_grab.dm index 8958daeee772..793850891d85 100644 --- a/code/modules/mob/mob_grab.dm +++ b/code/modules/mob/mob_grab.dm @@ -402,7 +402,7 @@ if(istype(hat)) damage += hat.force * 3 affecting.apply_damage(damage*rand(90, 110)/100, BRUTE, "head", affected.run_armor_check(affecting, MELEE)) - playsound(assailant.loc, "swing_hit", 25, 1, -1) + playsound(assailant.loc, "swing_hit", 25, TRUE, -1) add_attack_logs(assailant, affecting, "Headbutted") return diff --git a/code/modules/mob/mob_vars.dm b/code/modules/mob/mob_vars.dm index 0330a6b82edf..627a6bad0729 100644 --- a/code/modules/mob/mob_vars.dm +++ b/code/modules/mob/mob_vars.dm @@ -7,7 +7,8 @@ var/datum/mind/mind blocks_emissive = EMISSIVE_BLOCK_GENERIC - var/stat = 0 //Whether a mob is alive or dead. TODO: Move this to living - Nodrak + /// Is this mob alive, unconscious or dead? + var/stat = CONSCIOUS // TODO: Move to /mob/living /// The zone this mob is currently targeting var/zone_selected = null diff --git a/code/modules/mod/modules/module_pathfinder.dm b/code/modules/mod/modules/module_pathfinder.dm index 0f5af1fa78cc..9bb73673b999 100644 --- a/code/modules/mod/modules/module_pathfinder.dm +++ b/code/modules/mod/modules/module_pathfinder.dm @@ -115,7 +115,7 @@ to_chat(imp_in, "The implant does not recognize you as a known species!") return FALSE var/mob/living/carbon/human/H = imp_in - set_path(get_path_to(module.mod, target, 150, id = H.wear_id, simulated_only = FALSE)) //Yes, science proves jetpacks work in space. More at 11. + set_path(get_path_to(module.mod, target, 150, access = H?.wear_id.GetAccess(), simulated_only = FALSE)) //Yes, science proves jetpacks work in space. More at 11. if(!length(path)) //Cannot reach target. Give up and announce the issue. to_chat(H, "No viable path found!") return FALSE @@ -179,7 +179,7 @@ set_path(null) var/target = get_turf(imp_in) var/mob/living/carbon/human/H = imp_in - set_path(get_path_to(module.mod, target, 150, id = H.wear_id, simulated_only = FALSE)) //Yes, science proves jetpacks work in space. More at 11. + set_path(get_path_to(module.mod, target, 150, access = H?.wear_id.GetAccess(), simulated_only = FALSE)) //Yes, science proves jetpacks work in space. More at 11. addtimer(CALLBACK(src, PROC_REF(mod_move), target), 6) //I'll value this properly soon return TRUE diff --git a/code/modules/ninja/energy_katana.dm b/code/modules/ninja/energy_katana.dm index be34bf70541e..9700564be7f8 100644 --- a/code/modules/ninja/energy_katana.dm +++ b/code/modules/ninja/energy_katana.dm @@ -13,7 +13,7 @@ /obj/item/katana/energy/attack(mob/living/carbon/M as mob, mob/living/carbon/user as mob) - playsound(user, 'sound/weapons/blade1.ogg', 50, 1, -1) + playsound(user, 'sound/weapons/blade1.ogg', 50, TRUE, -1) return ..() /obj/item/katana/energy/afterattack(atom/target, mob/user, proximity_flag, click_parameters) diff --git a/code/modules/paperwork/faxmachine.dm b/code/modules/paperwork/faxmachine.dm index 98d0832d2f17..8021539dcbfd 100644 --- a/code/modules/paperwork/faxmachine.dm +++ b/code/modules/paperwork/faxmachine.dm @@ -207,7 +207,7 @@ GLOBAL_LIST_EMPTY(fax_blacklist) var/n_name = tgui_input_text(usr, "What would you like to label the fax?", "Fax Labelling", copyitem.name) if(!n_name) return - if(copyitem && copyitem.loc == src && usr.stat == 0) + if(copyitem && copyitem.loc == src && usr.stat == CONSCIOUS) if(istype(copyitem, /obj/item/paper)) copyitem.name = "[(n_name ? "[n_name]" : initial(copyitem.name))]" copyitem.desc = "This is a paper titled '" + copyitem.name + "'." diff --git a/code/modules/paperwork/photography.dm b/code/modules/paperwork/photography.dm index 77ea69bf8ca3..14f700299f0d 100644 --- a/code/modules/paperwork/photography.dm +++ b/code/modules/paperwork/photography.dm @@ -45,7 +45,7 @@ if(!txt) return txt = copytext(txt, 1, 128) - if(loc == user && user.stat == 0) + if(loc == user && user.stat == CONSCIOUS) scribble = txt else if(P.get_heat()) burnphoto(P, user) @@ -144,7 +144,7 @@ var/mob/M = usr if(!is_screen_atom(over_object)) return ..() - playsound(loc, "rustle", 50, 1, -5) + playsound(loc, "rustle", 50, TRUE, -5) if((!M.restrained() && !M.stat && M.back == src)) switch(over_object.name) if("r_hand") @@ -369,7 +369,7 @@ GLOBAL_LIST_INIT(SpookyGhosts, list("ghost","shade","shade2","ghost-narsie","hor return captureimage(target, user, flag) - playsound(loc, pick('sound/items/polaroid1.ogg', 'sound/items/polaroid2.ogg'), 75, 1, -3) + playsound(loc, pick('sound/items/polaroid1.ogg', 'sound/items/polaroid2.ogg'), 75, TRUE, -3) set_light(3, 2, LIGHT_COLOR_TUNGSTEN) addtimer(CALLBACK(src, TYPE_PROC_REF(/atom, set_light), 0), 2) pictures_left-- @@ -500,7 +500,7 @@ GLOBAL_LIST_INIT(SpookyGhosts, list("ghost","shade","shade2","ghost-narsie","hor return captureimage(target, user, flag) - playsound(loc, pick('sound/items/polaroid1.ogg', 'sound/items/polaroid2.ogg'), 75, 1, -3) + playsound(loc, pick('sound/items/polaroid1.ogg', 'sound/items/polaroid2.ogg'), 75, TRUE, -3) icon_state = icon_off on = FALSE diff --git a/code/modules/power/generators/treadmill.dm b/code/modules/power/generators/treadmill.dm index 25fd175d013e..efaf83b4af24 100644 --- a/code/modules/power/generators/treadmill.dm +++ b/code/modules/power/generators/treadmill.dm @@ -41,7 +41,7 @@ // if 2fast, throw the person, otherwise they just slide off, if there's reasonable speed at all if(speed && A.move_resist < INFINITY) var/dist = max(throw_dist * speed / MAX_SPEED, 1) - A.throw_at(get_distant_turf(get_turf(src), REVERSE_DIR(dir), dist), A.throw_range, A.throw_speed, src, 1) + A.throw_at(get_distant_turf(get_turf(src), REVERSE_DIR(dir), dist), A.throw_range, A.throw_speed, null, 1) /obj/machinery/power/treadmill/process() if(!anchored) diff --git a/code/modules/projectiles/guns/energy_guns.dm b/code/modules/projectiles/guns/energy_guns.dm index 2085ef01f53a..63f5852da1fa 100644 --- a/code/modules/projectiles/guns/energy_guns.dm +++ b/code/modules/projectiles/guns/energy_guns.dm @@ -211,7 +211,7 @@ sleep(25) if(user.is_holding(src)) user.visible_message("[user] melts [user.p_their()] face off with [src]!") - playsound(loc, fire_sound, 50, 1, -1) + playsound(loc, fire_sound, 50, TRUE, -1) var/obj/item/ammo_casing/energy/shot = ammo_type[select] cell.use(shot.e_cost) update_icon() @@ -221,7 +221,7 @@ return OXYLOSS else user.visible_message("[user] is pretending to blow [user.p_their()] brains out with [src]! It looks like [user.p_theyre()] trying to commit suicide!") - playsound(loc, 'sound/weapons/empty.ogg', 50, 1, -1) + playsound(loc, 'sound/weapons/empty.ogg', 50, TRUE, -1) return OXYLOSS /obj/item/gun/energy/vv_edit_var(var_name, var_value) diff --git a/code/modules/projectiles/guns/grenade_launcher.dm b/code/modules/projectiles/guns/grenade_launcher.dm index 2ba796623d98..26e5ed6ae187 100644 --- a/code/modules/projectiles/guns/grenade_launcher.dm +++ b/code/modules/projectiles/guns/grenade_launcher.dm @@ -52,6 +52,6 @@ log_game("[key_name(user)] fired a grenade ([F.name]) from a grenade launcher ([name]).") F.active = TRUE F.icon_state = initial(icon_state) + "_active" - playsound(user.loc, 'sound/weapons/armbomb.ogg', 75, 1, -3) + playsound(user.loc, 'sound/weapons/armbomb.ogg', 75, TRUE, -3) spawn(15) F.prime() diff --git a/code/modules/projectiles/guns/magic.dm b/code/modules/projectiles/guns/magic.dm index e44e32525acc..227ea6264d40 100644 --- a/code/modules/projectiles/guns/magic.dm +++ b/code/modules/projectiles/guns/magic.dm @@ -87,5 +87,5 @@ /obj/item/gun/magic/suicide_act(mob/user) user.visible_message("[user] is twisting [src] above [user.p_their()] head, releasing a magical blast! It looks like [user.p_theyre()] trying to commit suicide!") - playsound(loc, fire_sound, 50, 1, -1) + playsound(loc, fire_sound, 50, TRUE, -1) return FIRELOSS diff --git a/code/modules/projectiles/guns/projectile_gun.dm b/code/modules/projectiles/guns/projectile_gun.dm index 25dc5282cb46..fd8ffce281d3 100644 --- a/code/modules/projectiles/guns/projectile_gun.dm +++ b/code/modules/projectiles/guns/projectile_gun.dm @@ -207,7 +207,7 @@ return OXYLOSS else user.visible_message("[user] is pretending to blow [user.p_their()] brains out with [src]! It looks like [user.p_theyre()] trying to commit suicide!") - playsound(loc, 'sound/weapons/empty.ogg', 50, 1, -1) + playsound(loc, 'sound/weapons/empty.ogg', 50, TRUE, -1) return OXYLOSS /obj/item/gun/projectile/proc/sawoff(mob/user) diff --git a/code/modules/projectiles/guns/syringe_gun.dm b/code/modules/projectiles/guns/syringe_gun.dm index 091b37dd56b9..090eef860bb8 100644 --- a/code/modules/projectiles/guns/syringe_gun.dm +++ b/code/modules/projectiles/guns/syringe_gun.dm @@ -279,7 +279,7 @@ // Running out of syringes is just handled by *click* to_chat(user, "[src] [alarmed ? "beeps" : "whines"]: Internal chemical reservoir empty!") if(!alarmed) - playsound(loc, 'sound/weapons/smg_empty_alarm.ogg', 25, 1, frequency = 60000) + playsound(loc, 'sound/weapons/smg_empty_alarm.ogg', 25, TRUE, frequency = 60000) alarmed = TRUE // always send the to_chat so there's still feedback if the gun tries to fire diff --git a/code/modules/projectiles/projectile_base.dm b/code/modules/projectiles/projectile_base.dm index 0e25287c36f4..f10e7ea0a22a 100644 --- a/code/modules/projectiles/projectile_base.dm +++ b/code/modules/projectiles/projectile_base.dm @@ -210,12 +210,12 @@ if(L.has_limbs) organ_hit_text = " in \the [parse_zone(def_zone)]" if(suppressed) - playsound(loc, hitsound, 5, 1, -1) + playsound(loc, hitsound, 5, TRUE, -1) to_chat(L, "You're shot by \a [src][organ_hit_text]!") else if(hitsound) var/volume = vol_by_damage() - playsound(loc, hitsound, volume, 1, -1) + playsound(loc, hitsound, volume, TRUE, -1) L.visible_message("[L] is hit by \a [src][organ_hit_text]!", \ "[L] is hit by \a [src][organ_hit_text]!") //X has fired Y is now given by the guns so you cant tell who shot you if you could not see the shooter if(immolate) @@ -288,7 +288,7 @@ var/volume = clamp(vol_by_damage() + 20, 0, 100) if(suppressed) volume = 5 - playsound(loc, hitsound_wall, volume, 1, -1) + playsound(loc, hitsound_wall, volume, TRUE, -1) else if(ishuman(A)) var/mob/living/carbon/human/H = A var/obj/item/organ/external/organ = H.get_organ(check_zone(def_zone)) diff --git a/code/modules/reagents/chemistry/machinery/chem_dispenser.dm b/code/modules/reagents/chemistry/machinery/chem_dispenser.dm index e057a8352c7c..c25ac76b036e 100644 --- a/code/modules/reagents/chemistry/machinery/chem_dispenser.dm +++ b/code/modules/reagents/chemistry/machinery/chem_dispenser.dm @@ -251,8 +251,11 @@ return I.forceMove(src) if(beaker) - user.put_in_hands(beaker) - to_chat(user, "You swap [I] with [beaker].") + to_chat(usr, "You swap [I] with [beaker].") + if(Adjacent(usr) && !issilicon(usr)) //Prevents telekinesis from putting in hand + user.put_in_hands(beaker) + else + beaker.forceMove(loc) else to_chat(user, "You set [I] on the machine.") beaker = I diff --git a/code/modules/reagents/chemistry/machinery/chem_master.dm b/code/modules/reagents/chemistry/machinery/chem_master.dm index c0d15d5492f4..c90faeb4e0ef 100644 --- a/code/modules/reagents/chemistry/machinery/chem_master.dm +++ b/code/modules/reagents/chemistry/machinery/chem_master.dm @@ -125,8 +125,11 @@ return I.forceMove(src) if(beaker) - user.put_in_hands(beaker) - to_chat(user, "You swap [I] with [beaker] inside.") + to_chat(usr, "You swap [I] with [beaker] inside.") + if(Adjacent(usr) && !issilicon(usr)) //Prevents telekinesis from putting in hand + user.put_in_hands(beaker) + else + beaker.forceMove(loc) else to_chat(user, "You add [I] to the machine.") beaker = I diff --git a/code/modules/reagents/chemistry/reagents/food_reagents.dm b/code/modules/reagents/chemistry/reagents/food_reagents.dm index 293230dd83dc..c4719868392a 100644 --- a/code/modules/reagents/chemistry/reagents/food_reagents.dm +++ b/code/modules/reagents/chemistry/reagents/food_reagents.dm @@ -763,7 +763,7 @@ /datum/reagent/consumable/meatslurry/reaction_turf(turf/T, volume) if(prob(10) && volume >= 5 && !isspaceturf(T)) new /obj/effect/decal/cleanable/blood/gibs/cleangibs(T) - playsound(T, 'sound/effects/splat.ogg', 50, 1, -3) + playsound(T, 'sound/effects/splat.ogg', 50, TRUE, -3) /datum/reagent/consumable/mashedpotatoes name = "Mashed potatoes" diff --git a/code/modules/reagents/chemistry/reagents/medicine.dm b/code/modules/reagents/chemistry/reagents/medicine.dm index 159c91faa66f..98b0089694e3 100644 --- a/code/modules/reagents/chemistry/reagents/medicine.dm +++ b/code/modules/reagents/chemistry/reagents/medicine.dm @@ -325,7 +325,7 @@ /datum/reagent/medicine/heal_on_apply/synthflesh/reaction_turf(turf/T, volume) //let's make a mess! if(volume >= 5 && !isspaceturf(T)) new /obj/effect/decal/cleanable/blood/gibs/cleangibs(T) - playsound(T, 'sound/effects/splat.ogg', 50, 1, -3) + playsound(T, 'sound/effects/splat.ogg', 50, TRUE, -3) /datum/reagent/medicine/heal_on_apply/styptic_powder name = "Styptic Powder" diff --git a/code/modules/reagents/chemistry/reagents/misc_reagents.dm b/code/modules/reagents/chemistry/reagents/misc_reagents.dm index c48798fa3042..becb5f5bb504 100644 --- a/code/modules/reagents/chemistry/reagents/misc_reagents.dm +++ b/code/modules/reagents/chemistry/reagents/misc_reagents.dm @@ -436,7 +436,7 @@ continue if(!C.stat) M.visible_message("[M] gives [C] a [pick("hug","warm embrace")].") - playsound(get_turf(M), 'sound/weapons/thudswoosh.ogg', 50, 1, -1) + playsound(get_turf(M), 'sound/weapons/thudswoosh.ogg', 50, TRUE, -1) break return ..() diff --git a/code/modules/reagents/chemistry/reagents/water.dm b/code/modules/reagents/chemistry/reagents/water.dm index 1988a1a8e19a..c5c811b7a678 100644 --- a/code/modules/reagents/chemistry/reagents/water.dm +++ b/code/modules/reagents/chemistry/reagents/water.dm @@ -426,7 +426,7 @@ /datum/reagent/liquidgibs/reaction_turf(turf/T, volume) //yes i took it from synthflesh... if(volume >= 5 && !isspaceturf(T)) new /obj/effect/decal/cleanable/blood/gibs/cleangibs(T) - playsound(T, 'sound/effects/splat.ogg', 50, 1, -3) + playsound(T, 'sound/effects/splat.ogg', 50, TRUE, -3) /datum/reagent/lye name = "Lye" diff --git a/code/modules/reagents/chemistry/recipes/pyrotechnics.dm b/code/modules/reagents/chemistry/recipes/pyrotechnics.dm index 0614786d2d1b..98c1b7ea6ddf 100644 --- a/code/modules/reagents/chemistry/recipes/pyrotechnics.dm +++ b/code/modules/reagents/chemistry/recipes/pyrotechnics.dm @@ -267,7 +267,7 @@ holder.del_reagent(f_reagent) var/location = get_turf(holder.my_atom) var/datum/effect_system/smoke_spread/chem/S = new - playsound(location, 'sound/effects/smoke.ogg', 50, 1, -3) + playsound(location, 'sound/effects/smoke.ogg', 50, TRUE, -3) if(S) S.set_up(holder, location) if(created_volume < 5) diff --git a/code/modules/reagents/reagent_containers/hypospray.dm b/code/modules/reagents/reagent_containers/hypospray.dm index c6c5dd238396..1dddde465844 100644 --- a/code/modules/reagents/reagent_containers/hypospray.dm +++ b/code/modules/reagents/reagent_containers/hypospray.dm @@ -246,9 +246,9 @@ name = "protoype nanite autoinjector" desc = "A highly experimental prototype chemical designed to fully mend limbs and organs of soldiers in the field, shuts down body systems whilst aiding in repair.
WARNING: Side effects can cause temporary paralysis, loss of co-ordination and sickness. Do not use with any kind of stimulant or drugs. Serious damage can occur!" icon_state = "bonepen" - amount_per_transfer_from_this = 30 - volume = 30 - list_reagents = list("nanocalcium" = 30) + amount_per_transfer_from_this = 40 + volume = 40 + list_reagents = list("nanocalcium" = 30, "epinephrine" = 10) /obj/item/reagent_containers/hypospray/autoinjector/nanocalcium/attack(mob/living/M, mob/user) if(..()) @@ -281,3 +281,11 @@ name = "\improper Anti-Plague Sequence Omega autoinjector" desc = "A small autoinjector containing 15 units of Anti-Plague Sequence Omega. Cures all cases of the Necrotizing Plague. Also heals dead limbs." list_reagents = list("zombiecure4" = 15) + +/obj/item/reagent_containers/hypospray/autoinjector/hyper_medipen + name = "suspicious medipen" + desc = "A cheap-looking medipen containing what seems to be a mix of nearly every medicine stored in the recently raided Nanotrasen warehouse." + icon_state = "hyperpen" + amount_per_transfer_from_this = 37 + volume = 37 + list_reagents = list("salglu_solution" = 3, "synthflesh" = 4, "omnizine" = 3, "weak_omnizine" = 3, "perfluorodecalin" = 2, "sal_acid" = 1, "bicaridine" = 4, "kelotane" = 4, "epinephrine" = 5, "lavaland_extract" = 2, "rezadone" = 1, "teporone" = 2, "menthol" = 1, "vitamin" = 2) diff --git a/code/modules/reagents/reagent_containers/spray.dm b/code/modules/reagents/reagent_containers/spray.dm index 0c2768979803..ef2ab713ca3b 100644 --- a/code/modules/reagents/reagent_containers/spray.dm +++ b/code/modules/reagents/reagent_containers/spray.dm @@ -52,7 +52,7 @@ var/contents_log = reagents.reagent_list.Join(", ") INVOKE_ASYNC(src, PROC_REF(spray), A) - playsound(loc, 'sound/effects/spray2.ogg', 50, 1, -6) + playsound(loc, 'sound/effects/spray2.ogg', 50, TRUE, -6) user.changeNext_move(delay) user.newtonian_move(get_dir(A, user)) diff --git a/code/modules/recycling/disposal.dm b/code/modules/recycling/disposal.dm index 5899bb7a4b71..1edfcd5125e2 100644 --- a/code/modules/recycling/disposal.dm +++ b/code/modules/recycling/disposal.dm @@ -161,7 +161,7 @@ gripper.gripped_item.forceMove(src) user.visible_message( - "[user] places [gripper.gripped_item] into the disposal unit.", + "[user] places [gripper.gripped_item] into the disposal unit.", "You place [gripper.gripped_item] into the disposal unit.", "You hear someone dropping something into a disposal unit." ) @@ -216,11 +216,11 @@ . = TRUE if(!I.use_tool(src, user, 0, volume = I.tool_volume)) return - + if(length(contents) > 0) to_chat(user, "You need to empty the contents of the disposal unit first!") return - + if(mode == DISPOSALS_OFF) // It's off but still not unscrewed mode = DISPOSALS_UNSCREWED else if(mode == DISPOSALS_UNSCREWED) @@ -558,7 +558,7 @@ sleep(10) if(last_sound + DISPOSAL_SOUND_COOLDOWN < world.time) - playsound(src, 'sound/machines/disposalflush.ogg', 50, 0, 0) + playsound(src, 'sound/machines/disposalflush.ogg', 50, FALSE, 0) last_sound = world.time sleep(5) // wait for animation to finish @@ -593,7 +593,7 @@ var/turf/target if(last_sound + DISPOSAL_SOUND_COOLDOWN < world.time) - playsound(src, 'sound/machines/hiss.ogg', 50, 0, FALSE) + playsound(src, 'sound/machines/hiss.ogg', 50, FALSE, FALSE) last_sound = world.time if(H) // Somehow, someone managed to flush a window which broke mid-transit and caused the disposal to go in an infinite loop trying to expel null, hopefully this fixes it @@ -816,7 +816,7 @@ for(var/mob/M in hearers(loc.loc)) to_chat(M, "CLONG, clong!") - playsound(loc, 'sound/effects/clang.ogg', 50, 0, 0) + playsound(loc, 'sound/effects/clang.ogg', 50, FALSE, 0) // called to vent all gas in holder to a location /obj/structure/disposalholder/proc/vent_gas(turf/location) @@ -960,7 +960,7 @@ target = get_ranged_target_turf(T, direction, 10) if(last_sound + DISPOSAL_SOUND_COOLDOWN < world.time) - playsound(src, 'sound/machines/hiss.ogg', 50, 0, FALSE) + playsound(src, 'sound/machines/hiss.ogg', 50, FALSE, FALSE) last_sound = world.time if(H) @@ -978,7 +978,7 @@ else // no specified direction, so throw in random direction if(last_sound + DISPOSAL_SOUND_COOLDOWN < world.time) - playsound(src, 'sound/machines/hiss.ogg', 50, 0, FALSE) + playsound(src, 'sound/machines/hiss.ogg', 50, FALSE, FALSE) last_sound = world.time if(H) for(var/atom/movable/AM in H) @@ -1540,10 +1540,10 @@ play_sound = TRUE last_sound = world.time if(play_sound) - playsound(src, 'sound/machines/warning-buzzer.ogg', 50, 0, FALSE) + playsound(src, 'sound/machines/warning-buzzer.ogg', 50, FALSE, FALSE) sleep(20) //wait until correct animation frame if(play_sound) - playsound(src, 'sound/machines/hiss.ogg', 50, 0, FALSE) + playsound(src, 'sound/machines/hiss.ogg', 50, FALSE, FALSE) for(var/atom/movable/AM in contents) AM.forceMove(loc) AM.pipe_eject(dir) diff --git a/code/modules/recycling/sortingmachinery.dm b/code/modules/recycling/sortingmachinery.dm index 5e9f2d3ff238..0e3f0568fe50 100644 --- a/code/modules/recycling/sortingmachinery.dm +++ b/code/modules/recycling/sortingmachinery.dm @@ -332,7 +332,7 @@ sleep(10) if(last_sound + DISPOSAL_SOUND_COOLDOWN < world.time) - playsound(src, 'sound/machines/disposalflush.ogg', 50, 0, FALSE) + playsound(src, 'sound/machines/disposalflush.ogg', 50, FALSE, FALSE) last_sound = world.time sleep(5) // wait for animation to finish diff --git a/code/modules/research/designs/medical_designs.dm b/code/modules/research/designs/medical_designs.dm index 736434a7bfd3..3fc00cbc3c4e 100644 --- a/code/modules/research/designs/medical_designs.dm +++ b/code/modules/research/designs/medical_designs.dm @@ -569,7 +569,7 @@ category = list("Medical") /datum/design/cyberimp_antisleep - name = "Neural Jumperstarter Implant" + name = "Neural Jumpstarter Implant" desc = "This implant will automatically attempt to jolt you awake when it detects you have fallen unconscious. Has a short cooldown, incompatible with the CNS Rebooter." id = "ci-antisleep" req_tech = list("materials" = 6, "programming" = 5, "biotech" = 6) diff --git a/code/modules/research/experimentor.dm b/code/modules/research/experimentor.dm index 946691db2821..1784c5849709 100644 --- a/code/modules/research/experimentor.dm +++ b/code/modules/research/experimentor.dm @@ -308,7 +308,7 @@ investigate_log("Experimentor has released [chosenchem] smoke.", "experimentor") var/datum/effect_system/smoke_spread/chem/smoke = new smoke.set_up(R, src, TRUE) - playsound(loc, 'sound/effects/smoke.ogg', 50, 1, -3) + playsound(loc, 'sound/effects/smoke.ogg', 50, TRUE, -3) smoke.start() qdel(R) ejectItem(TRUE) @@ -320,7 +320,7 @@ R.add_reagent(chosenchem , 15) var/datum/effect_system/smoke_spread/chem/smoke = new smoke.set_up(R, src, TRUE) - playsound(loc, 'sound/effects/smoke.ogg', 50, 1, -3) + playsound(loc, 'sound/effects/smoke.ogg', 50, TRUE, -3) smoke.start() qdel(R) ejectItem(TRUE) @@ -399,7 +399,7 @@ investigate_log("Experimentor has released frostoil gas.", "experimentor") var/datum/effect_system/smoke_spread/chem/smoke = new smoke.set_up(R, src, TRUE) - playsound(loc, 'sound/effects/smoke.ogg', 50, 1, -3) + playsound(loc, 'sound/effects/smoke.ogg', 50, TRUE, -3) smoke.start() qdel(R) ejectItem(TRUE) @@ -427,7 +427,7 @@ linked_materials.insert_amount( min((linked_materials.max_amount - linked_materials.total_amount), (exp_on.materials[material])), material) if(prob(EFFECT_PROB_VERYLOW-badThingCoeff)) visible_message("[src]'s crusher goes way too many levels too high, crushing right through space-time!") - playsound(loc, 'sound/effects/supermatter.ogg', 50, 1, -3) + playsound(loc, 'sound/effects/supermatter.ogg', 50, TRUE, -3) investigate_log("Experimentor has triggered the 'throw things' reaction.", "experimentor") for(var/atom/movable/AM in oview(7,src)) if(!AM.anchored) @@ -436,7 +436,7 @@ if(prob(EFFECT_PROB_LOW-badThingCoeff)) visible_message("[src]'s crusher goes one level too high, crushing right into space-time!") - playsound(loc, 'sound/effects/supermatter.ogg', 50, 1, -3) + playsound(loc, 'sound/effects/supermatter.ogg', 50, TRUE, -3) investigate_log("Experimentor has triggered the 'minor throw things' reaction.", "experimentor") var/list/throwAt = list() for(var/atom/movable/AM in oview(7,src)) diff --git a/code/modules/ruins/objects_and_mobs/gym.dm b/code/modules/ruins/objects_and_mobs/gym.dm index 6fcec57e4522..7284e9f92262 100644 --- a/code/modules/ruins/objects_and_mobs/gym.dm +++ b/code/modules/ruins/objects_and_mobs/gym.dm @@ -14,7 +14,7 @@ if(.) return flick("[icon_state]2", src) - playsound(loc, pick(hit_sounds), 25, 1, -1) + playsound(loc, pick(hit_sounds), 25, TRUE, -1) /obj/structure/weightmachine diff --git a/code/modules/surgery/organs/organ_external.dm b/code/modules/surgery/organs/organ_external.dm index bbbca5041fff..e9313788a4a6 100644 --- a/code/modules/surgery/organs/organ_external.dm +++ b/code/modules/surgery/organs/organ_external.dm @@ -711,7 +711,7 @@ Note that amputating the affected organ does in fact remove the infection from t if(!length(contents)) to_chat(user, "There is nothing left inside [src]!") return - playsound(loc, 'sound/weapons/slice.ogg', 50, 1, -1) + playsound(loc, 'sound/weapons/slice.ogg', 50, TRUE, -1) user.visible_message("[user] begins to cut open [src].",\ "You begin to cut open [src]...") if(do_after(user, 5.4 SECONDS, target = src)) diff --git a/code/modules/telesci/telepad.dm b/code/modules/telesci/telepad.dm index 88b781209168..002530787f0b 100644 --- a/code/modules/telesci/telepad.dm +++ b/code/modules/telesci/telepad.dm @@ -108,6 +108,6 @@ if(user) to_chat(user, " Locked In") new /obj/machinery/telepad_cargo(user.loc) - playsound(src, 'sound/effects/pop.ogg', 100, 1, 1) + playsound(src, 'sound/effects/pop.ogg', 100, TRUE, 1) qdel(src) return diff --git a/code/modules/tgui/states/default.dm b/code/modules/tgui/states/default.dm index 9a3f1457e8fc..8f79c6a9196a 100644 --- a/code/modules/tgui/states/default.dm +++ b/code/modules/tgui/states/default.dm @@ -69,7 +69,7 @@ GLOBAL_DATUM_INIT(default_state, /datum/ui_state/default, new) /mob/living/silicon/pai/default_can_use_topic(src_object) // pAIs can only use themselves and the owner's radio. - if((src_object == src || src_object == radio) && !stat) + if((src_object == src || src_object == radio) && stat == CONSCIOUS) return UI_INTERACTIVE else return ..() diff --git a/code/modules/vehicle/vehicle.dm b/code/modules/vehicle/vehicle.dm index 6f5063090b87..96d276aa5042 100644 --- a/code/modules/vehicle/vehicle.dm +++ b/code/modules/vehicle/vehicle.dm @@ -185,7 +185,7 @@ if(issimulatedturf(loc)) var/turf/simulated/T = loc if(T.wet == TURF_WET_LUBE) //Lube! Fall off! - playsound(src, 'sound/misc/slip.ogg', 50, 1, -3) + playsound(src, 'sound/misc/slip.ogg', 50, TRUE, -3) for(var/m in buckled_mobs) var/mob/living/buckled_mob = m buckled_mob.KnockDown(10 SECONDS) diff --git a/icons/mob/clothing/head.dmi b/icons/mob/clothing/head.dmi index fa1f0f4d0776..0327560d205f 100644 Binary files a/icons/mob/clothing/head.dmi and b/icons/mob/clothing/head.dmi differ diff --git a/icons/mob/clothing/species/drask/head.dmi b/icons/mob/clothing/species/drask/head.dmi index b584e3862a8a..c358fe709fe1 100644 Binary files a/icons/mob/clothing/species/drask/head.dmi and b/icons/mob/clothing/species/drask/head.dmi differ diff --git a/icons/mob/clothing/species/drask/suit.dmi b/icons/mob/clothing/species/drask/suit.dmi index 6b3d9b8a1c76..4c53dba350de 100644 Binary files a/icons/mob/clothing/species/drask/suit.dmi and b/icons/mob/clothing/species/drask/suit.dmi differ diff --git a/icons/mob/clothing/species/grey/head.dmi b/icons/mob/clothing/species/grey/head.dmi index 0fa1f860ba16..563ccc8f8fd8 100644 Binary files a/icons/mob/clothing/species/grey/head.dmi and b/icons/mob/clothing/species/grey/head.dmi differ diff --git a/icons/mob/clothing/species/grey/suit.dmi b/icons/mob/clothing/species/grey/suit.dmi index faa1637388a0..a53cb2fe57c7 100644 Binary files a/icons/mob/clothing/species/grey/suit.dmi and b/icons/mob/clothing/species/grey/suit.dmi differ diff --git a/icons/mob/clothing/species/tajaran/head.dmi b/icons/mob/clothing/species/tajaran/head.dmi index 74eed5427c60..3c7129b45fea 100644 Binary files a/icons/mob/clothing/species/tajaran/head.dmi and b/icons/mob/clothing/species/tajaran/head.dmi differ diff --git a/icons/mob/clothing/species/unathi/head.dmi b/icons/mob/clothing/species/unathi/head.dmi index 0d3f32d007f1..01c23100d0fc 100644 Binary files a/icons/mob/clothing/species/unathi/head.dmi and b/icons/mob/clothing/species/unathi/head.dmi differ diff --git a/icons/mob/clothing/species/vox/head.dmi b/icons/mob/clothing/species/vox/head.dmi index 189f0e480b14..f5d3f4e2354a 100644 Binary files a/icons/mob/clothing/species/vox/head.dmi and b/icons/mob/clothing/species/vox/head.dmi differ diff --git a/icons/mob/clothing/species/vox/suit.dmi b/icons/mob/clothing/species/vox/suit.dmi index 9a030c54734a..6217a58242b9 100644 Binary files a/icons/mob/clothing/species/vox/suit.dmi and b/icons/mob/clothing/species/vox/suit.dmi differ diff --git a/icons/mob/clothing/species/vulpkanin/head.dmi b/icons/mob/clothing/species/vulpkanin/head.dmi index 6bbea18640c1..bb0e524d6c29 100644 Binary files a/icons/mob/clothing/species/vulpkanin/head.dmi and b/icons/mob/clothing/species/vulpkanin/head.dmi differ diff --git a/icons/mob/clothing/suit.dmi b/icons/mob/clothing/suit.dmi index 646874eddca7..065a69aebf15 100644 Binary files a/icons/mob/clothing/suit.dmi and b/icons/mob/clothing/suit.dmi differ diff --git a/icons/obj/assemblies.dmi b/icons/obj/assemblies.dmi index 2d754018f2c8..6834c81aa629 100644 Binary files a/icons/obj/assemblies.dmi and b/icons/obj/assemblies.dmi differ diff --git a/icons/obj/clothing/hats.dmi b/icons/obj/clothing/hats.dmi index f1a611476462..9b4191e053bc 100644 Binary files a/icons/obj/clothing/hats.dmi and b/icons/obj/clothing/hats.dmi differ diff --git a/icons/obj/clothing/suits.dmi b/icons/obj/clothing/suits.dmi index d43bf63a97a5..1546059ffb89 100644 Binary files a/icons/obj/clothing/suits.dmi and b/icons/obj/clothing/suits.dmi differ diff --git a/icons/obj/hypo.dmi b/icons/obj/hypo.dmi index 3c940b69060b..6b55daafa22d 100644 Binary files a/icons/obj/hypo.dmi and b/icons/obj/hypo.dmi differ diff --git a/modular_ss220/_defines220/code/lists_TG.dm b/modular_ss220/_defines220/code/lists_TG.dm index 7e5d6e16df7f..95eec2788301 100644 --- a/modular_ss220/_defines220/code/lists_TG.dm +++ b/modular_ss220/_defines220/code/lists_TG.dm @@ -1,7 +1,3 @@ // Generic listoflist safe add and removal macros: -///If value is a list, wrap it in a list so it can be used with list add/remove operations -#define LIST_VALUE_WRAP_LISTS(value) (islist(value) ? list(value) : value) -///Add an untyped item to a list, taking care to handle list items by wrapping them in a list to remove the footgun -#define UNTYPED_LIST_ADD(list, item) (list += LIST_VALUE_WRAP_LISTS(item)) ///Remove an untyped item to a list, taking care to handle list items by wrapping them in a list to remove the footgun #define UNTYPED_LIST_REMOVE(list, item) (list -= LIST_VALUE_WRAP_LISTS(item)) diff --git a/modular_ss220/jobs/code/card_id.dm b/modular_ss220/jobs/code/card_id.dm index 6b8b2aab07ef..6c5cfafc99a5 100644 --- a/modular_ss220/jobs/code/card_id.dm +++ b/modular_ss220/jobs/code/card_id.dm @@ -90,7 +90,7 @@ GLOBAL_LIST_INIT(card_skins_donor_ss220, list( /obj/item/card/id/courier name = "Deliverer ID" - access = list(ACCESS_MAINT_TUNNELS, ACCESS_MAILSORTING, ACCESS_CARGO, ACCESS_MINT, ACCESS_MINERAL_STOREROOM) + access = list(ACCESS_MAINT_TUNNELS, ACCESS_MAILSORTING, ACCESS_CARGO, ACCESS_MINERAL_STOREROOM) icon = 'modular_ss220/aesthetics/better_ids/icons/better_ids.dmi' icon_state = "deliverer" @@ -201,7 +201,7 @@ GLOBAL_LIST_INIT(card_skins_donor_ss220, list( /obj/item/card/id/dealer name = "Dealer ID" - access = list(ACCESS_MAINT_TUNNELS, ACCESS_LIBRARY, ACCESS_RC_ANNOUNCE, ACCESS_MAILSORTING, ACCESS_CARGO, ACCESS_MINT, ACCESS_MINERAL_STOREROOM, ACCESS_CONSTRUCTION) + access = list(ACCESS_MAINT_TUNNELS, ACCESS_LIBRARY, ACCESS_RC_ANNOUNCE, ACCESS_MAILSORTING, ACCESS_CARGO, ACCESS_MINERAL_STOREROOM, ACCESS_CONSTRUCTION) icon = 'modular_ss220/aesthetics/better_ids/icons/better_ids.dmi' icon_state = "dealer" diff --git a/modular_ss220/jobs/code/donor/job/2_tier_jobs.dm b/modular_ss220/jobs/code/donor/job/2_tier_jobs.dm index 9809245d6787..74bbbf0f8243 100644 --- a/modular_ss220/jobs/code/donor/job/2_tier_jobs.dm +++ b/modular_ss220/jobs/code/donor/job/2_tier_jobs.dm @@ -184,7 +184,7 @@ relate_job = "Cargo Technician" supervisors = "главой персонала и квартирмейстером" department_head = list("Head of Personnel", "Quartermaster") - access = list(ACCESS_MAINT_TUNNELS, ACCESS_MAILSORTING, ACCESS_CARGO, ACCESS_MINT, ACCESS_MINERAL_STOREROOM) + access = list(ACCESS_MAINT_TUNNELS, ACCESS_MAILSORTING, ACCESS_CARGO, ACCESS_MINERAL_STOREROOM) selection_color = "#558758" hidden_from_job_prefs = FALSE donator_tier = 2 diff --git a/modular_ss220/jobs/code/donor/job/4_tier_jobs.dm b/modular_ss220/jobs/code/donor/job/4_tier_jobs.dm index 18e342ba73da..2f28e95ec3f3 100644 --- a/modular_ss220/jobs/code/donor/job/4_tier_jobs.dm +++ b/modular_ss220/jobs/code/donor/job/4_tier_jobs.dm @@ -286,7 +286,7 @@ spawn_positions = 2 ru_title = "Торговец" alt_titles = list("Торговец", "Независимый Торговец", "Сдельщик", "Барахольщик", "Меценат", "Коммерсант") - access = list(ACCESS_MAINT_TUNNELS, ACCESS_LIBRARY, ACCESS_RC_ANNOUNCE, ACCESS_MAILSORTING, ACCESS_CARGO, ACCESS_MINT, ACCESS_MINERAL_STOREROOM, ACCESS_CONSTRUCTION) + access = list(ACCESS_MAINT_TUNNELS, ACCESS_LIBRARY, ACCESS_RC_ANNOUNCE, ACCESS_MAILSORTING, ACCESS_CARGO, ACCESS_MINERAL_STOREROOM, ACCESS_CONSTRUCTION) selection_color = "#717097" hidden_from_job_prefs = FALSE donator_tier = 4 diff --git a/modular_ss220/objects/_objects.dme b/modular_ss220/objects/_objects.dme index d70242284e7a..2f5df276bfae 100644 --- a/modular_ss220/objects/_objects.dme +++ b/modular_ss220/objects/_objects.dme @@ -44,3 +44,4 @@ #include "code/wallets.dm" #include "code/flashlight.dm" #include "code/material_pouch.dm" +#include "code/components.dm" diff --git a/modular_ss220/objects/code/components.dm b/modular_ss220/objects/code/components.dm new file mode 100644 index 000000000000..5fad71d49fa3 --- /dev/null +++ b/modular_ss220/objects/code/components.dm @@ -0,0 +1,34 @@ +/datum/component/ckey_and_role_locked_pickup + var/pickup_damage + var/force = 20 + var/list/ckeys = list() + var/offstation_role + var/refusal_text + +/datum/component/ckey_and_role_locked_pickup/Initialize(offstation_role = TRUE, ckey_whitelist, pickup_damage = 0, refusal_text) + src.offstation_role = offstation_role + src.ckeys = ckey_whitelist + src.pickup_damage = pickup_damage + src.refusal_text = refusal_text + +/datum/component/ckey_and_role_locked_pickup/RegisterWithParent() + RegisterSignal(parent, COMSIG_ITEM_PICKUP, PROC_REF(try_pick_up)) + +/datum/component/ckey_and_role_locked_pickup/UnregisterFromParent() + UnregisterSignal(parent, COMSIG_ITEM_PICKUP) + +/datum/component/ckey_and_role_locked_pickup/proc/try_pick_up(obj/item/I, mob/living/user) + + if(check_role_and_ckey(user)) + return + user.Weaken(10 SECONDS) + user.unEquip(I, force, silent = FALSE) + to_chat(user, span_userdanger(refusal_text)) + if(ishuman(user)) + user.apply_damage(rand(pickup_damage, pickup_damage * 2), BRUTE, pick(BODY_ZONE_L_ARM, BODY_ZONE_R_ARM)) + +/datum/component/ckey_and_role_locked_pickup/proc/check_role_and_ckey(mob/user) + if(user.client.ckey in ckeys) + return TRUE + + return user.mind.offstation_role == offstation_role diff --git a/modular_ss220/prime_only/_prime.dme b/modular_ss220/prime_only/_prime.dme index 973105c21333..37369307bf06 100644 --- a/modular_ss220/prime_only/_prime.dme +++ b/modular_ss220/prime_only/_prime.dme @@ -2,3 +2,4 @@ #include "code/anakonda.dm" #include "code/cattleprod.dm" +#include "code/objects.dm" diff --git a/modular_ss220/prime_only/code/objects.dm b/modular_ss220/prime_only/code/objects.dm new file mode 100644 index 000000000000..ad73d8ab1bea --- /dev/null +++ b/modular_ss220/prime_only/code/objects.dm @@ -0,0 +1,209 @@ +#define LEGENDARY_SWORDS_CKEY_WHITELIST list("mooniverse") + +/obj/item/melee/rapier/cane_rapier + name = "Трость-рапира" + desc = "Стилизованная под трость рапира, чье элегантное и обоюдоострое лезвие усажено на роскошно украшенную рукоять. Одни лишь инкрустированные в неё драгоценные камни стоят как целая звездная система." + icon = 'modular_ss220/prime_only/icons/saber.dmi' + icon_state = "trrapier" + item_state = "trrapier" + force = 25 + lefthand_file = 'modular_ss220/prime_only/icons/saber_left.dmi' + righthand_file = 'modular_ss220/prime_only/icons/saber_right.dmi' + +/obj/item/storage/belt/rapier/cane_rapier + name = "Трость-рапира" + desc = "Ножны стилизованной под трость рапиры. Их корпус вырезан из черного дерева и щедро украшен позолотой. Их владелец обладает неоспоримый богатством и властью в известной Галактике." + icon_state = "trsheath" + item_state = "trsheath" + icon = 'modular_ss220/prime_only/icons/saber.dmi' + lefthand_file = 'modular_ss220/prime_only/icons/saber_left.dmi' + righthand_file = 'modular_ss220/prime_only/icons/saber_right.dmi' + can_hold = list(/obj/item/melee/rapier/cane_rapier) + +/obj/item/storage/belt/rapier/cane_rapier/populate_contents() + new /obj/item/melee/rapier/cane_rapier(src) + update_icon() + +/obj/item/dualsaber/legendary_saber + name = "Злоба" + desc = "\"Злоба\" - один из легендарных энергетических мечей Галактики. Словно источая мистическую энергию, \"Злоба\" является олицетворением самой Тьмы, вызывающей трепет и ужас врагов её владельца. Гладкая и простая рукоять меча не может похвастаться орнаментами, узорами или древними рунами, но способна выплескивать рванный энергетический клинок кроваво-красного света, словно кричащий о непокорности и ярости своего владельца. Некоторые истории гласят, что в этом клинке прибывает сама темная сущность могущества и бесконечного гнева, готовая исполнить волю своего хозяина даже за пределами пространства и времени. \n Создатель: Согда К'Трим. Текущий владелец: Миднайт Блэк." + icon = 'modular_ss220/prime_only/icons/saber.dmi' + lefthand_file = 'modular_ss220/prime_only/icons/saber_left.dmi' + righthand_file = 'modular_ss220/prime_only/icons/saber_right.dmi' + icon_state = "mid_dualsaber0" + blade_color = "midnight" + colormap = LIGHT_COLOR_RED + wieldsound = 'modular_ss220/prime_only/sound/weapons/mid_saberon.ogg' + unwieldsound = 'modular_ss220/prime_only/sound/weapons/mid_saberoff.ogg' + var/saber_name = "mid" + var/hit_wield = 'modular_ss220/prime_only/sound/weapons/mid_saberhit.ogg' + var/hit_unwield = "swing_hit" + var/ranged = FALSE + var/power = 1 + var/refusal_text = "Злоба неподвластна твоей воле, усмрить её сможет лишь сильнейший." + var/datum/enchantment/enchant = new/datum/enchantment/dash + +/obj/item/dualsaber/legendary_saber/Initialize(mapload) + . = ..() + AddComponent(/datum/component/ckey_and_role_locked_pickup, TRUE, LEGENDARY_SWORDS_CKEY_WHITELIST, pickup_damage = 10, refusal_text = refusal_text) + +/obj/item/dualsaber/legendary_saber/update_icon_state() + if(HAS_TRAIT(src, TRAIT_WIELDED)) + icon_state = "[saber_name]_dualsaber[blade_color]1" + set_light(brightness_on, l_color=colormap) + else + icon_state = "[saber_name]_dualsaber0" + set_light(0) + +/obj/item/dualsaber/legendary_saber/on_wield(obj/item/source, mob/living/carbon/user) + if(user && HAS_TRAIT(user, TRAIT_HULK)) + to_chat(user, "You lack the grace to wield this!") + return COMPONENT_TWOHANDED_BLOCK_WIELD + + hitsound = hit_wield + w_class = w_class_on + +/obj/item/dualsaber/legendary_saber/on_unwield() + hitsound = hit_unwield + w_class = initial(w_class) + +/obj/item/dualsaber/legendary_saber/sorrow_catcher + name = "Ловец Скорби" + desc = "\"Ловец Скорби\" (Второе название \"Плакса\") - один из легендарных энергетических мечей Галактики. Он символизирует не только силу власти и могущества, но и является предметом гордости своего обладателя. Искусно выполненный клинок излучает мягкий голубой свет, словно призывая к миру и согласию, но при этом скрывает в себе силу и решимость защитить своего хозяина любой ценой. Рукоять меча сконструирована строго и со вкусом, создана из темного металла с матовым покрытием и украшена фреской логотипа NT. \"Ловец Скорби\" имеет специфический звук, отдалённо напоминающий женский плач. Поэтому, немногие очевидцы гнева его хозяина дали мечу второе название - \"Плакса.\" \n Создатель: Гаскон-Валлен-Деламот. Текущий владелец: Билл Громов." + icon_state = "gr_dualsaber0" + blade_color = "gromov" + refusal_text = "Ну, заплачь." + colormap = LIGHT_COLOR_LIGHT_CYAN + saber_name = "gr" + wieldsound = 'modular_ss220/prime_only/sound/weapons/gr_saberon.ogg' + unwieldsound = 'modular_ss220/prime_only/sound/weapons/gr_saberoff.ogg' + hit_wield = 'modular_ss220/prime_only/sound/weapons/gr_saberhit.ogg' + +/obj/item/dualsaber/legendary_saber/flame + name = "Пламя" + desc = "\"Пламя\" - один из легендарных энергетических мечей Галактики. Он отражает неумолимую справедливость и рьяность характера своего хозяина. В противоречие грозному названию, эфес меча представляет собой аккуратное и \"нежное\" произведение искусства - отполированная нарезная титановая основа завершается золотым навершием, а декоративная гарда выполнен в виде раскрывшегося бутона. Энергетический клинок источает яркий фиолетовый свет, несущий очищение и упокоение своим врагам. Рукоять меча крайне хорошо сбалансирована и отдает дань аристократическим традициям человеческого прошлого. \n Создатель: Гаскон-Валлен-Деламот. Текущий владелец: Шарлотта Дитерхис." + icon_state = "sh_dualsaber0" + blade_color = "sharlotta" + refusal_text = "Кровь и свет принадлежат лишь одному." + colormap = LIGHT_COLOR_LAVENDER + saber_name = "sh" + wieldsound = 'modular_ss220/prime_only/sound/weapons/sh_saberon.ogg' + unwieldsound = 'modular_ss220/prime_only/sound/weapons/sh_saberoff.ogg' + hit_wield = 'modular_ss220/prime_only/sound/weapons/sh_saberhit.ogg' + +/obj/item/dualsaber/legendary_saber/devotion + name = "Верность клятве" + desc = "\"Верность Клятве\" - один из легендарных энергетических мечей Галактики. Этот меч в первую очередь является сакральным символом, связывающий своего владельца вечной Клятвой. Его украшенную древними иероглифами человеческой расы рукоять покрывает хромированный сатин, а двойное изумрудно-зелёное лезвие меча требует от своего хозяина виртуозности и мастерства в обращении, в то же время являясь испытанием доблести, чести и силы духа. Одна из историй этого артефакта гласит, что в свечении клинка отражается душа его создателя - Арканона, который проводил долгие годы в изоляции в попытках создать что-то большее, чем просто оружие. \n Создатель: Арканон. Текущий владелец: Хель Кириэн." + icon_state = "kir_dualsaber0" + blade_color = "kirien" + refusal_text = "Только достойный узрит свет." + colormap = LIGHT_COLOR_PURE_GREEN + saber_name = "kir" + wieldsound = 'modular_ss220/prime_only/sound/weapons/kir_saberon.ogg' + unwieldsound = 'modular_ss220/prime_only/sound/weapons/kir_saberoff.ogg' + hit_wield = 'modular_ss220/prime_only/sound/weapons/kir_saberhit.ogg' + +/obj/item/dualsaber/legendary_saber/sister + name = "Сестра" + desc = "\"Сестра\" - один из легендарных энергетических мечей Галактики. Являясь \"старшей\" парной частью еще одного легендарного меча - \"Ловца Бегущих\", это оружие представляет собой удивительный артефакт с глубокой историей и мистическими свойствами. Его лезвие излучает мягкий золотой свет, который извечно является символом мудрости и мощи. \"Сестра\" - это не просто меч, а символ верности высшим идеалам, дающий своему хозяину силу и решимость. Форма рукояти отсылает к оружию Справедливых Рыцарей древней человеческой истории и обладает строгим стилем, дополняющим своего владельца. Всю свою историю этот меч являлся желанным объектом многих великих существ, но \"Сестра\" способна поистине раскрыться лишь в руках того, кто искренне верит в силу справедливости и не понаслышке знает что такое честь и доблесть. \n Создатель: Коникс`Хеллькикс. Текущий Владелец: Мунивёрс Нормандия." + icon_state = "norm_dualsaber0" + blade_color = "normandy" + refusal_text = "Ты не принадлежишь сестре, верни её законному владельцу." + colormap = LIGHT_COLOR_HOLY_MAGIC + saber_name = "norm" + wieldsound = 'modular_ss220/prime_only/sound/weapons/norm_saberon.ogg' + unwieldsound = 'modular_ss220/prime_only/sound/weapons/norm_saberoff.ogg' + hit_wield = 'modular_ss220/prime_only/sound/weapons/norm_saberhit.ogg' + +/obj/item/dualsaber/legendary_saber/flee_catcher + name = "Ловец Бегущих" + desc = "\"Ловец Бегущих\" - один из легендарных энергетических мечей Галактики. Являясь \"младшей\" парной частью еще одного легендарного меча - \"Сестры\", это оружие представляет собой более грубое и практичное творение. Корпус рукояти, изобилующий царапинами и потёртостями, говорит о тяжелой истории меча. Одной из традиций владельцев этого оружия является рисование под кнопкой включения отметок в виде белых жетонов, коих уже насчитывается семь штук. Рядом с самым первым жетоном выгравирована надпись : \"2361. А.М.\" \n Цвет клинка ярко-желтый, его рукоять удлинена для комфортного боя как одной, так и двумя руками, навершие Типа \"P\" покрыто золотом и обладает специальным разъёмом для подключения своей старшей \"Сестры\", а гарда представляет собой два закругленных декоративных отростка. Из старых легенд известно, что строптивый и бурный характер меча могли сдержать лишь настоящие мастера, которые использовали хаотичный, но адаптивный под врага стиль боя. \n Создатель: Коникс`Хеллькикс. Текущий Владелец: Мунивёрс Нормандия, в последствии был передан Рицу Келли." + icon_state = "kel_dualsaber0" + blade_color = "kelly" + refusal_text = "Ловец бегущих не слушается тебя, кажется он хочет вернуться к хозяину." + colormap = LIGHT_COLOR_HOLY_MAGIC + saber_name = "kel" + wieldsound = 'modular_ss220/prime_only/sound/weapons/kel_saberon.ogg' + unwieldsound = 'modular_ss220/prime_only/sound/weapons/kel_saberoff.ogg' + hit_wield = 'modular_ss220/prime_only/sound/weapons/kel_saberhit.ogg' + +/obj/item/dualsaber/legendary_saber/afterattack(atom/target, mob/user, proximity_flag, click_parameters) + . = ..() + enchant?.on_legendary_hit(target, user, proximity_flag, src) + +/obj/item/dualsaber/legendary_saber/proc/add_enchantment(new_enchant, mob/living/user, intentional = TRUE) + var/datum/enchantment/E = new new_enchant + enchant = E + E.on_gain(src, user) + E.power *= power + if(intentional) + SSblackbox.record_feedback("nested tally", "saber_enchants", 1, list("[E.name]")) + +/datum/enchantment/dash/proc/charge(mob/living/user, atom/chargeat, obj/item/dualsaber/legendary_saber/S) + if(on_leap_cooldown) + return + if(!chargeat) + return + var/turf/destination_turf = get_turf(chargeat) + + if(!destination_turf) + return + var/list/targets = list() + for(var/atom/target in destination_turf.contents) + targets += target + charging = TRUE + + var/obj/effect/temp_visual/decoy/D = new /obj/effect/temp_visual/decoy(user.loc, user) + animate(D, alpha = 0, color = "#271e77", transform = matrix()*1, time = anim_time, loop = anim_loop) + + var/i + for(i=0, i<5, i++) + spawn(i * 9 MILLISECONDS) + step_to(user, destination_turf , 1, movespeed) + var/obj/effect/temp_visual/decoy/D2 = new /obj/effect/temp_visual/decoy(user.loc, user) + animate(D2, alpha = 0, color = "#271e77", transform = matrix()*1, time = anim_time, loop = anim_loop) + + spawn(45 MILLISECONDS) + if(get_dist(user, destination_turf) > 1) + return + charge_end(targets, user, S) + +/datum/enchantment/dash/proc/charge_end(list/targets = list(), mob/living/user, obj/item/dualsaber/legendary_saber/S) + charging = FALSE + + for(var/mob/living/L in targets) + if(!(L == user)) + user.apply_damage(-40, STAMINA) + S.melee_attack_chain(user, L) + +/datum/enchantment/dash + name = "Рывок" + desc = "Этот клинок несёт владельца прямо к цели. Никто не уйдёт." + ranged = TRUE + var/movespeed = 0.8 + var/on_leap_cooldown = FALSE + var/charging = FALSE + var/anim_time = 3 DECISECONDS + var/anim_loop = 3 DECISECONDS + +/datum/enchantment/proc/on_legendary_hit(mob/living/target, mob/living/user, proximity, obj/item/dualsaber/legendary_saber/S) + if(world.time < cooldown) + return FALSE + if(!istype(target)) + return FALSE + if(target.stat == DEAD) + return FALSE + if(!ranged && !proximity) + return FALSE + cooldown = world.time + initial(cooldown) + return TRUE + +/datum/enchantment/dash/on_legendary_hit(mob/living/target, mob/living/user, proximity, obj/item/dualsaber/legendary_saber/S) + if(proximity) // don't put it on cooldown if adjacent + return + . = ..() + if(!.) + return + + if(HAS_TRAIT(S, TRAIT_WIELDED)) + charge(user, target, S) diff --git a/modular_ss220/prime_only/icons/saber.dmi b/modular_ss220/prime_only/icons/saber.dmi new file mode 100644 index 000000000000..865585635b20 Binary files /dev/null and b/modular_ss220/prime_only/icons/saber.dmi differ diff --git a/modular_ss220/prime_only/icons/saber_left.dmi b/modular_ss220/prime_only/icons/saber_left.dmi new file mode 100644 index 000000000000..193066e6e799 Binary files /dev/null and b/modular_ss220/prime_only/icons/saber_left.dmi differ diff --git a/modular_ss220/prime_only/icons/saber_right.dmi b/modular_ss220/prime_only/icons/saber_right.dmi new file mode 100644 index 000000000000..8fe5a07ed2aa Binary files /dev/null and b/modular_ss220/prime_only/icons/saber_right.dmi differ diff --git a/modular_ss220/prime_only/sound/weapons/gr_saberhit.ogg b/modular_ss220/prime_only/sound/weapons/gr_saberhit.ogg new file mode 100644 index 000000000000..b62f85013148 Binary files /dev/null and b/modular_ss220/prime_only/sound/weapons/gr_saberhit.ogg differ diff --git a/modular_ss220/prime_only/sound/weapons/gr_saberoff.ogg b/modular_ss220/prime_only/sound/weapons/gr_saberoff.ogg new file mode 100644 index 000000000000..725e6e7086b9 Binary files /dev/null and b/modular_ss220/prime_only/sound/weapons/gr_saberoff.ogg differ diff --git a/modular_ss220/prime_only/sound/weapons/gr_saberon.ogg b/modular_ss220/prime_only/sound/weapons/gr_saberon.ogg new file mode 100644 index 000000000000..4f9d0809f4d3 Binary files /dev/null and b/modular_ss220/prime_only/sound/weapons/gr_saberon.ogg differ diff --git a/modular_ss220/prime_only/sound/weapons/kel_saberhit.ogg b/modular_ss220/prime_only/sound/weapons/kel_saberhit.ogg new file mode 100644 index 000000000000..123702da3cbe Binary files /dev/null and b/modular_ss220/prime_only/sound/weapons/kel_saberhit.ogg differ diff --git a/modular_ss220/prime_only/sound/weapons/kel_saberoff.ogg b/modular_ss220/prime_only/sound/weapons/kel_saberoff.ogg new file mode 100644 index 000000000000..945f116e16ed Binary files /dev/null and b/modular_ss220/prime_only/sound/weapons/kel_saberoff.ogg differ diff --git a/modular_ss220/prime_only/sound/weapons/kel_saberon.ogg b/modular_ss220/prime_only/sound/weapons/kel_saberon.ogg new file mode 100644 index 000000000000..968cf93ca83d Binary files /dev/null and b/modular_ss220/prime_only/sound/weapons/kel_saberon.ogg differ diff --git a/modular_ss220/prime_only/sound/weapons/kir_saberhit.ogg b/modular_ss220/prime_only/sound/weapons/kir_saberhit.ogg new file mode 100644 index 000000000000..ace06b88cb64 Binary files /dev/null and b/modular_ss220/prime_only/sound/weapons/kir_saberhit.ogg differ diff --git a/modular_ss220/prime_only/sound/weapons/kir_saberoff.ogg b/modular_ss220/prime_only/sound/weapons/kir_saberoff.ogg new file mode 100644 index 000000000000..502793d721a6 Binary files /dev/null and b/modular_ss220/prime_only/sound/weapons/kir_saberoff.ogg differ diff --git a/modular_ss220/prime_only/sound/weapons/kir_saberon.ogg b/modular_ss220/prime_only/sound/weapons/kir_saberon.ogg new file mode 100644 index 000000000000..98c5055656eb Binary files /dev/null and b/modular_ss220/prime_only/sound/weapons/kir_saberon.ogg differ diff --git a/modular_ss220/prime_only/sound/weapons/mid_saberhit.ogg b/modular_ss220/prime_only/sound/weapons/mid_saberhit.ogg new file mode 100644 index 000000000000..3df8a9e39728 Binary files /dev/null and b/modular_ss220/prime_only/sound/weapons/mid_saberhit.ogg differ diff --git a/modular_ss220/prime_only/sound/weapons/mid_saberoff.ogg b/modular_ss220/prime_only/sound/weapons/mid_saberoff.ogg new file mode 100644 index 000000000000..eb838064f875 Binary files /dev/null and b/modular_ss220/prime_only/sound/weapons/mid_saberoff.ogg differ diff --git a/modular_ss220/prime_only/sound/weapons/mid_saberon.ogg b/modular_ss220/prime_only/sound/weapons/mid_saberon.ogg new file mode 100644 index 000000000000..0e5df9291376 Binary files /dev/null and b/modular_ss220/prime_only/sound/weapons/mid_saberon.ogg differ diff --git a/modular_ss220/prime_only/sound/weapons/norm_saberhit.ogg b/modular_ss220/prime_only/sound/weapons/norm_saberhit.ogg new file mode 100644 index 000000000000..4b763238fd19 Binary files /dev/null and b/modular_ss220/prime_only/sound/weapons/norm_saberhit.ogg differ diff --git a/modular_ss220/prime_only/sound/weapons/norm_saberoff.ogg b/modular_ss220/prime_only/sound/weapons/norm_saberoff.ogg new file mode 100644 index 000000000000..5470dd8bf5db Binary files /dev/null and b/modular_ss220/prime_only/sound/weapons/norm_saberoff.ogg differ diff --git a/modular_ss220/prime_only/sound/weapons/norm_saberon.ogg b/modular_ss220/prime_only/sound/weapons/norm_saberon.ogg new file mode 100644 index 000000000000..a1a85d25428d Binary files /dev/null and b/modular_ss220/prime_only/sound/weapons/norm_saberon.ogg differ diff --git a/modular_ss220/prime_only/sound/weapons/sh_saberhit.ogg b/modular_ss220/prime_only/sound/weapons/sh_saberhit.ogg new file mode 100644 index 000000000000..ce0bb4d0c931 Binary files /dev/null and b/modular_ss220/prime_only/sound/weapons/sh_saberhit.ogg differ diff --git a/modular_ss220/prime_only/sound/weapons/sh_saberoff.ogg b/modular_ss220/prime_only/sound/weapons/sh_saberoff.ogg new file mode 100644 index 000000000000..2457b5a064e8 Binary files /dev/null and b/modular_ss220/prime_only/sound/weapons/sh_saberoff.ogg differ diff --git a/modular_ss220/prime_only/sound/weapons/sh_saberon.ogg b/modular_ss220/prime_only/sound/weapons/sh_saberon.ogg new file mode 100644 index 000000000000..71097422ea7f Binary files /dev/null and b/modular_ss220/prime_only/sound/weapons/sh_saberon.ogg differ diff --git a/paradise.dme b/paradise.dme index e935a2d4645e..8f5f65f76e4a 100644 --- a/paradise.dme +++ b/paradise.dme @@ -98,6 +98,7 @@ #include "code\__DEFINES\muzzle_flash.dm" #include "code\__DEFINES\newscaster_defines.dm" #include "code\__DEFINES\particle_defines.dm" +#include "code\__DEFINES\path_defines.dm" #include "code\__DEFINES\pda.dm" #include "code\__DEFINES\pipes.dm" #include "code\__DEFINES\power_defines.dm" @@ -167,7 +168,6 @@ #include "code\__HELPERS\matrices.dm" #include "code\__HELPERS\mob_helpers.dm" #include "code\__HELPERS\name_helpers.dm" -#include "code\__HELPERS\path.dm" #include "code\__HELPERS\pronouns.dm" #include "code\__HELPERS\qdel.dm" #include "code\__HELPERS\radiation_helpers.dm" @@ -184,6 +184,9 @@ #include "code\__HELPERS\unique_ids.dm" #include "code\__HELPERS\unsorted.dm" #include "code\__HELPERS\verb_helpers.dm" +#include "code\__HELPERS\paths\jps.dm" +#include "code\__HELPERS\paths\path.dm" +#include "code\__HELPERS\paths\sssp.dm" #include "code\__HELPERS\sorts\__main.dm" #include "code\__HELPERS\sorts\InsertSort.dm" #include "code\__HELPERS\sorts\MergeSort.dm" @@ -1482,15 +1485,8 @@ #include "code\modules\antagonists\traitor\contractor\datums\contractor_hub_ui.dm" #include "code\modules\antagonists\traitor\contractor\datums\objective_contract.dm" #include "code\modules\antagonists\traitor\contractor\datums\syndicate_contract.dm" -#include "code\modules\antagonists\traitor\contractor\datums\rep_purchases\balloon.dm" -#include "code\modules\antagonists\traitor\contractor\datums\rep_purchases\baton.dm" -#include "code\modules\antagonists\traitor\contractor\datums\rep_purchases\blackout.dm" -#include "code\modules\antagonists\traitor\contractor\datums\rep_purchases\contractor_fulton.dm" -#include "code\modules\antagonists\traitor\contractor\datums\rep_purchases\flare.dm" -#include "code\modules\antagonists\traitor\contractor\datums\rep_purchases\rep_pinpointer.dm" #include "code\modules\antagonists\traitor\contractor\datums\rep_purchases\rep_purchase_base.dm" -#include "code\modules\antagonists\traitor\contractor\datums\rep_purchases\reroll.dm" -#include "code\modules\antagonists\traitor\contractor\datums\rep_purchases\zippo.dm" +#include "code\modules\antagonists\traitor\contractor\datums\rep_purchases\rep_purchases.dm" #include "code\modules\antagonists\traitor\contractor\items\contractor_baton.dm" #include "code\modules\antagonists\traitor\contractor\items\contractor_kit.dm" #include "code\modules\antagonists\traitor\contractor\items\contractor_pinpointer.dm" diff --git a/tgui/packages/tgui/interfaces/StripMenu.tsx b/tgui/packages/tgui/interfaces/StripMenu.tsx index fe8dd800cd88..8dc1e59620fb 100644 --- a/tgui/packages/tgui/interfaces/StripMenu.tsx +++ b/tgui/packages/tgui/interfaces/StripMenu.tsx @@ -6,7 +6,14 @@ import { Box, Button, Icon, Stack } from '../components'; import { Window } from '../layouts'; const ROWS = 5; -const COLUMNS = 5; +const COLUMNS = 9; + +const getColumnsAmount = (mode: number): number => { + if (mode === 0) { + return 5; + } + return 9; +}; const BUTTON_DIMENSIONS = '64px'; @@ -218,6 +225,148 @@ const SLOTS: Record< }, }; +const ALTERNATIVE_SLOTS: Record< + string, + { + displayName: string; + gridSpot: GridSpotKey; + image?: string; + additionalComponent?: JSX.Element; + } +> = { + eyes: { + displayName: 'eyewear', + gridSpot: getGridSpotKey([1, 0]), + image: 'inventory-glasses.png', + }, + + head: { + displayName: 'headwear', + gridSpot: getGridSpotKey([0, 1]), + image: 'inventory-head.png', + }, + + mask: { + displayName: 'mask', + gridSpot: getGridSpotKey([1, 1]), + image: 'inventory-mask.png', + }, + + pet_collar: { + displayName: 'collar', + gridSpot: getGridSpotKey([1, 1]), + image: 'inventory-collar.png', + }, + + right_ear: { + displayName: 'right ear', + gridSpot: getGridSpotKey([0, 2]), + image: 'inventory-ears.png', + }, + + left_ear: { + displayName: 'left ear', + gridSpot: getGridSpotKey([1, 2]), + image: 'inventory-ears.png', + }, + + parrot_headset: { + displayName: 'headset', + gridSpot: getGridSpotKey([1, 2]), + image: 'inventory-ears.png', + }, + + handcuffs: { + displayName: 'handcuffs', + gridSpot: getGridSpotKey([1, 3]), + }, + + legcuffs: { + displayName: 'legcuffs', + gridSpot: getGridSpotKey([1, 4]), + }, + + jumpsuit: { + displayName: 'uniform', + gridSpot: getGridSpotKey([2, 0]), + image: 'inventory-uniform.png', + }, + + suit: { + displayName: 'suit', + gridSpot: getGridSpotKey([2, 1]), + image: 'inventory-suit.png', + }, + + gloves: { + displayName: 'gloves', + gridSpot: getGridSpotKey([2, 2]), + image: 'inventory-gloves.png', + }, + + right_hand: { + displayName: 'right hand', + gridSpot: getGridSpotKey([4, 4]), + image: 'inventory-hand_r.png', + additionalComponent: R, + }, + + left_hand: { + displayName: 'left hand', + gridSpot: getGridSpotKey([4, 5]), + image: 'inventory-hand_l.png', + additionalComponent: L, + }, + + shoes: { + displayName: 'shoes', + gridSpot: getGridSpotKey([3, 1]), + image: 'inventory-shoes.png', + }, + + suit_storage: { + displayName: 'suit storage', + gridSpot: getGridSpotKey([4, 0]), + image: 'inventory-suit_storage.png', + }, + + id: { + displayName: 'ID', + gridSpot: getGridSpotKey([4, 1]), + image: 'inventory-id.png', + }, + + belt: { + displayName: 'belt', + gridSpot: getGridSpotKey([4, 2]), + image: 'inventory-belt.png', + }, + + back: { + displayName: 'backpack', + gridSpot: getGridSpotKey([4, 3]), + image: 'inventory-back.png', + }, + + left_pocket: { + displayName: 'left pocket', + gridSpot: getGridSpotKey([4, 7]), + image: 'inventory-pocket.png', + }, + + right_pocket: { + displayName: 'right pocket', + gridSpot: getGridSpotKey([4, 6]), + image: 'inventory-pocket.png', + }, + + pda: { + displayName: 'PDA', + gridSpot: getGridSpotKey([4, 8]), + image: 'inventory-pda.png', + }, +}; + enum ObscuringLevel { Completely = 1, Hidden = 2, @@ -256,14 +405,21 @@ type StripMenuItem = type StripMenuData = { items: Record; name: string; + show_mode: number; }; export const StripMenu = (props, context) => { const { act, data } = useBackend(context); const gridSpots = new Map(); - for (const key of Object.keys(data.items)) { - gridSpots.set(SLOTS[key].gridSpot, key); + if (data.show_mode === 0) { + for (const key of Object.keys(data.items)) { + gridSpots.set(SLOTS[key].gridSpot, key); + } + } else { + for (const key of Object.keys(data.items)) { + gridSpots.set(ALTERNATIVE_SLOTS[key].gridSpot, key); + } } const get_button_color = (item) => { @@ -287,13 +443,18 @@ export const StripMenu = (props, context) => { }; return ( - + {range(0, ROWS).map((row) => ( - {range(0, COLUMNS).map((column) => { + {range(0, getColumnsAmount(data.show_mode)).map((column) => { const key = getGridSpotKey([row, column]); const keyAtSpot = gridSpots.get(key); diff --git a/tgui/public/tgui.bundle.js b/tgui/public/tgui.bundle.js index 521423effa79..cf2803023fe3 100644 --- a/tgui/public/tgui.bundle.js +++ b/tgui/public/tgui.bundle.js @@ -1,26 +1,26 @@ -(function(){(function(){var $t={66641:function(w,r,n){"use strict";r.__esModule=!0,r.createPopper=void 0,r.popperGenerator=m;var e=C(n(8823)),a=C(n(19820)),t=C(n(54826)),o=C(n(43243)),f=C(n(17859)),V=C(n(80798)),y=C(n(46343)),S=C(n(31584));r.detectOverflow=S.default;var k=n(72600);function C(l){return l&&l.__esModule?l:{default:l}}var u={placement:"bottom",modifiers:[],strategy:"absolute"};function c(){for(var l=arguments.length,s=new Array(l),i=0;i0&&(0,a.round)(C.width)/y.offsetWidth||1,c=y.offsetHeight>0&&(0,a.round)(C.height)/y.offsetHeight||1);var m=(0,e.isElement)(y)?(0,t.default)(y):window,d=m.visualViewport,l=!(0,o.default)()&&k,s=(C.left+(l&&d?d.offsetLeft:0))/u,i=(C.top+(l&&d?d.offsetTop:0))/c,p=C.width/u,v=C.height/c;return{width:p,height:v,top:i,right:s+p,bottom:i+v,left:s,x:s,y:i}}},86380:function(w,r,n){"use strict";r.__esModule=!0,r.default=v;var e=n(41521),a=l(n(2868)),t=l(n(39799)),o=l(n(54826)),f=l(n(43243)),V=l(n(33733)),y=l(n(14522)),S=n(72600),k=l(n(32125)),C=l(n(34972)),u=l(n(96343)),c=l(n(13203)),m=l(n(31855)),d=n(69031);function l(g){return g&&g.__esModule?g:{default:g}}function s(g,h){var N=(0,k.default)(g,!1,h==="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 i(g,h,N){return h===e.viewport?(0,m.default)((0,a.default)(g,N)):(0,S.isElement)(h)?s(h,N):(0,m.default)((0,t.default)((0,V.default)(g)))}function p(g){var h=(0,o.default)((0,C.default)(g)),N=["absolute","fixed"].indexOf((0,y.default)(g).position)>=0,b=N&&(0,S.isHTMLElement)(g)?(0,f.default)(g):g;return(0,S.isElement)(b)?h.filter(function(B){return(0,S.isElement)(B)&&(0,u.default)(B,b)&&(0,c.default)(B)!=="body"}):[]}function v(g,h,N,b){var B=h==="clippingParents"?p(g):[].concat(h),I=[].concat(B,[N]),L=I[0],T=I.reduce(function(A,x){var E=i(g,x,b);return A.top=(0,d.max)(E.top,A.top),A.right=(0,d.min)(E.right,A.right),A.bottom=(0,d.min)(E.bottom,A.bottom),A.left=(0,d.max)(E.left,A.left),A},i(g,L,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(w,r,n){"use strict";r.__esModule=!0,r.default=u;var e=k(n(32125)),a=k(n(45401)),t=k(n(13203)),o=n(72600),f=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 C(c){var m=c.getBoundingClientRect(),d=(0,S.round)(m.width)/c.offsetWidth||1,l=(0,S.round)(m.height)/c.offsetHeight||1;return d!==1||l!==1}function u(c,m,d){d===void 0&&(d=!1);var l=(0,o.isHTMLElement)(m),s=(0,o.isHTMLElement)(m)&&C(m),i=(0,V.default)(m),p=(0,e.default)(c,s,d),v={scrollLeft:0,scrollTop:0},g={x:0,y:0};return(l||!l&&!d)&&(((0,t.default)(m)!=="body"||(0,y.default)(i))&&(v=(0,a.default)(m)),(0,o.isHTMLElement)(m)?(g=(0,e.default)(m,!0),g.x+=m.clientLeft,g.y+=m.clientTop):i&&(g.x=(0,f.default)(i))),{x:p.left+v.scrollLeft-g.x,y:p.top+v.scrollTop-g.y,width:p.width,height:p.height}}},14522:function(w,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(w,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(w,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)),f=n(69031);function V(S){return S&&S.__esModule?S:{default:S}}function y(S){var k,C=(0,e.default)(S),u=(0,o.default)(S),c=(k=S.ownerDocument)==null?void 0:k.body,m=(0,f.max)(C.scrollWidth,C.clientWidth,c?c.scrollWidth:0,c?c.clientWidth:0),d=(0,f.max)(C.scrollHeight,C.clientHeight,c?c.scrollHeight:0,c?c.clientHeight:0),l=-u.scrollLeft+(0,t.default)(S),s=-u.scrollTop;return(0,a.default)(c||C).direction==="rtl"&&(l+=(0,f.max)(C.clientWidth,c?c.clientWidth:0)-m),{width:m,height:d,x:l,y:s}}},75680:function(w,r){"use strict";r.__esModule=!0,r.default=n;function n(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}},19820:function(w,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 f=(0,e.default)(o),V=o.offsetWidth,y=o.offsetHeight;return Math.abs(f.width-V)<=1&&(V=f.width),Math.abs(f.height-y)<=1&&(y=f.height),{x:o.offsetLeft,y:o.offsetTop,width:V,height:y}}},13203:function(w,r){"use strict";r.__esModule=!0,r.default=n;function n(e){return e?(e.nodeName||"").toLowerCase():null}},45401:function(w,r,n){"use strict";r.__esModule=!0,r.default=V;var e=f(n(79569)),a=f(n(81020)),t=n(72600),o=f(n(75680));function f(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(w,r,n){"use strict";r.__esModule=!0,r.default=u;var e=S(n(81020)),a=S(n(13203)),t=S(n(14522)),o=n(72600),f=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 C(c){var m=/firefox/i.test((0,y.default)()),d=/Trident/i.test((0,y.default)());if(d&&(0,o.isHTMLElement)(c)){var l=(0,t.default)(c);if(l.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 i=(0,t.default)(s);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||m&&i.willChange==="filter"||m&&i.filter&&i.filter!=="none")return s;s=s.parentNode}return null}function u(c){for(var m=(0,e.default)(c),d=k(c);d&&(0,f.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")?m:d||C(c)||m}},34972:function(w,r,n){"use strict";r.__esModule=!0,r.default=f;var e=o(n(13203)),a=o(n(33733)),t=n(72600);function o(V){return V&&V.__esModule?V:{default:V}}function f(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(w,r,n){"use strict";r.__esModule=!0,r.default=V;var e=f(n(34972)),a=f(n(44011)),t=f(n(13203)),o=n(72600);function f(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(w,r,n){"use strict";r.__esModule=!0,r.default=V;var e=f(n(81020)),a=f(n(33733)),t=f(n(85750)),o=f(n(14894));function f(y){return y&&y.__esModule?y:{default:y}}function V(y,S){var k=(0,e.default)(y),C=(0,a.default)(y),u=k.visualViewport,c=C.clientWidth,m=C.clientHeight,d=0,l=0;if(u){c=u.width,m=u.height;var s=(0,o.default)();(s||!s&&S==="fixed")&&(d=u.offsetLeft,l=u.offsetTop)}return{width:c,height:m,x:d+(0,t.default)(y),y:l}}},81020:function(w,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(w,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 f=(0,e.default)(o),V=f.pageXOffset,y=f.pageYOffset;return{scrollLeft:V,scrollTop:y}}},85750:function(w,r,n){"use strict";r.__esModule=!0,r.default=f;var e=o(n(32125)),a=o(n(33733)),t=o(n(79569));function o(V){return V&&V.__esModule?V:{default:V}}function f(V){return(0,e.default)((0,a.default)(V)).left+(0,t.default)(V).scrollLeft}},72600:function(w,r,n){"use strict";r.__esModule=!0,r.isElement=t,r.isHTMLElement=o,r.isShadowRoot=f;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 f(V){if(typeof ShadowRoot=="undefined")return!1;var y=(0,e.default)(V).ShadowRoot;return V instanceof y||V instanceof ShadowRoot}},14894:function(w,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(w,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 f=(0,e.default)(o),V=f.overflow,y=f.overflowX,S=f.overflowY;return/auto|scroll|overlay|hidden/.test(V+S+y)}},25658:function(w,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(w,r,n){"use strict";r.__esModule=!0,r.default=V;var e=f(n(65329)),a=f(n(34972)),t=f(n(81020)),o=f(n(44011));function f(y){return y&&y.__esModule?y:{default:y}}function V(y,S){var k;S===void 0&&(S=[]);var C=(0,e.default)(y),u=C===((k=y.ownerDocument)==null?void 0:k.body),c=(0,t.default)(C),m=u?[c].concat(c.visualViewport||[],(0,o.default)(C)?C:[]):C,d=S.concat(m);return u?d:d.concat(V((0,a.default)(m)))}},41521:function(w,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",f=r.basePlacements=[n,e,a,t],V=r.start="start",y=r.end="end",S=r.clippingParents="clippingParents",k=r.viewport="viewport",C=r.popper="popper",u=r.reference="reference",c=r.variationPlacements=f.reduce(function(B,I){return B.concat([I+"-"+V,I+"-"+y])},[]),m=r.placements=[].concat(f,[o]).reduce(function(B,I){return B.concat([I,I+"-"+V,I+"-"+y])},[]),d=r.beforeRead="beforeRead",l=r.read="read",s=r.afterRead="afterRead",i=r.beforeMain="beforeMain",p=r.main="main",v=r.afterMain="afterMain",g=r.beforeWrite="beforeWrite",h=r.write="write",N=r.afterWrite="afterWrite",b=r.modifierPhases=[d,l,s,i,p,v,g,h,N]},60023:function(w,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 f=n(7925);r.createPopper=f.createPopper;var V=n(62642);r.createPopperLite=V.createPopper},56304:function(w,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 C=S.styles[k]||{},u=S.attributes[k]||{},c=S.elements[k];!(0,a.isHTMLElement)(c)||!(0,e.default)(c)||(Object.assign(c.style,C),Object.keys(u).forEach(function(m){var d=u[m];d===!1?c.removeAttribute(m):c.setAttribute(m,d===!0?"":d)}))})}function f(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(C){var u=S.elements[C],c=S.attributes[C]||{},m=Object.keys(S.styles.hasOwnProperty(C)?S.styles[C]:k[C]),d=m.reduce(function(l,s){return l[s]="",l},{});!(0,a.isHTMLElement)(u)||!(0,e.default)(u)||(Object.assign(u.style,d),Object.keys(c).forEach(function(l){u.removeAttribute(l)}))})}}var V=r.default={name:"applyStyles",enabled:!0,phase:"write",fn:o,effect:f,requires:["computeStyles"]}},57243:function(w,r,n){"use strict";r.__esModule=!0,r.default=void 0;var e=C(n(38141)),a=C(n(19820)),t=C(n(96343)),o=C(n(43243)),f=C(n(7770)),V=n(76770),y=C(n(77631)),S=C(n(54824)),k=n(41521);function C(l){return l&&l.__esModule?l:{default:l}}var u=function(){function l(s,i){return s=typeof s=="function"?s(Object.assign({},i.rects,{placement:i.placement})):s,(0,y.default)(typeof s!="number"?s:(0,S.default)(s,k.basePlacements))}return l}();function c(l){var s,i=l.state,p=l.name,v=l.options,g=i.elements.arrow,h=i.modifiersData.popperOffsets,N=(0,e.default)(i.placement),b=(0,f.default)(N),B=[k.left,k.right].indexOf(N)>=0,I=B?"height":"width";if(!(!g||!h)){var L=u(v.padding,i),T=(0,a.default)(g),A=b==="y"?k.top:k.left,x=b==="y"?k.bottom:k.right,E=i.rects.reference[I]+i.rects.reference[b]-h[b]-i.rects.popper[I],M=h[b]-i.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=L[A],F=P-T[I]-L[x],W=P/2-T[I]/2+R,_=(0,V.within)(D,W,F),K=b;i.modifiersData[p]=(s={},s[K]=_,s.centerOffset=_-W,s)}}function m(l){var s=l.state,i=l.options,p=i.element,v=p===void 0?"[data-popper-arrow]":p;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:m,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]}},60421:function(w,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)),f=k(n(14522)),V=k(n(38141)),y=k(n(14380)),S=n(69031);function k(l){return l&&l.__esModule?l:{default:l}}var C={top:"auto",right:"auto",bottom:"auto",left:"auto"};function u(l,s){var i=l.x,p=l.y,v=s.devicePixelRatio||1;return{x:(0,S.round)(i*v)/v||0,y:(0,S.round)(p*v)/v||0}}function c(l){var s,i=l.popper,p=l.popperRect,v=l.placement,g=l.variation,h=l.offsets,N=l.position,b=l.gpuAcceleration,B=l.adaptive,I=l.roundOffsets,L=l.isFixed,T=h.x,A=T===void 0?0:T,x=h.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=h.hasOwnProperty("x"),P=h.hasOwnProperty("y"),R=e.left,D=e.top,F=window;if(B){var W=(0,a.default)(i),_="clientHeight",K="clientWidth";if(W===(0,t.default)(i)&&(W=(0,o.default)(i),(0,f.default)(W).position!=="static"&&N==="absolute"&&(_="scrollHeight",K="scrollWidth")),W=W,v===e.top||(v===e.left||v===e.right)&&g===e.end){D=e.bottom;var H=L&&W===F&&F.visualViewport?F.visualViewport.height:W[_];E-=H-p.height,E*=b?1:-1}if(v===e.left||(v===e.top||v===e.bottom)&&g===e.end){R=e.right;var X=L&&W===F&&F.visualViewport?F.visualViewport.width:W[K];A-=X-p.width,A*=b?1:-1}}var Y=Object.assign({position:N},B&&C),J=I===!0?u({x:A,y:E},(0,t.default)(i)):{x:A,y:E};if(A=J.x,E=J.y,b){var le;return Object.assign({},Y,(le={},le[D]=P?"0":"",le[R]=j?"0":"",le.transform=(F.devicePixelRatio||1)<=1?"translate("+A+"px, "+E+"px)":"translate3d("+A+"px, "+E+"px, 0)",le))}return Object.assign({},Y,(s={},s[D]=P?E+"px":"",s[R]=j?A+"px":"",s.transform="",s))}function m(l){var s=l.state,i=l.options,p=i.gpuAcceleration,v=p===void 0?!0:p,g=i.adaptive,h=g===void 0?!0:g,N=i.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:h,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:m,data:{}}},84601:function(w,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,C=k.scroll,u=C===void 0?!0:C,c=k.resize,m=c===void 0?!0:c,d=(0,e.default)(y.elements.popper),l=[].concat(y.scrollParents.reference,y.scrollParents.popper);return u&&l.forEach(function(s){s.addEventListener("scroll",S.update,t)}),m&&d.addEventListener("resize",S.update,t),function(){u&&l.forEach(function(s){s.removeEventListener("scroll",S.update,t)}),m&&d.removeEventListener("resize",S.update,t)}}var f=r.default={name:"eventListeners",enabled:!0,phase:"write",fn:function(){function V(){}return V}(),effect:o,data:{}}},17267:function(w,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)),f=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 m=(0,e.default)(c);return[(0,t.default)(c),m,(0,t.default)(m)]}function C(c){var m=c.state,d=c.options,l=c.name;if(!m.modifiersData[l]._skip){for(var s=d.mainAxis,i=s===void 0?!0:s,p=d.altAxis,v=p===void 0?!0:p,g=d.fallbackPlacements,h=d.padding,N=d.boundary,b=d.rootBoundary,B=d.altBoundary,I=d.flipVariations,L=I===void 0?!0:I,T=d.allowedAutoPlacements,A=m.options.placement,x=(0,a.default)(A),E=x===A,M=g||(E||!L?[(0,e.default)(A)]:k(A)),j=[A].concat(M).reduce(function(ee,oe){return ee.concat((0,a.default)(oe)===V.auto?(0,f.default)(m,{placement:oe,boundary:N,rootBoundary:b,padding:h,flipVariations:L,allowedAutoPlacements:T}):oe)},[]),P=m.rects.reference,R=m.rects.popper,D=new Map,F=!0,W=j[0],_=0;_=0,J=Y?"width":"height",le=(0,o.default)(m,{placement:K,boundary:N,rootBoundary:b,altBoundary:B,padding:h}),ce=Y?X?V.right:V.left:X?V.bottom:V.top;P[J]>R[J]&&(ce=(0,e.default)(ce));var fe=(0,e.default)(ce),pe=[];if(i&&pe.push(le[H]<=0),v&&pe.push(le[ce]<=0,le[fe]<=0),pe.every(function(ee){return ee})){W=K,F=!1;break}D.set(K,pe)}if(F)for(var he=L?3:1,te=function(){function ee(oe){var ue=j.find(function(re){var ge=D.get(re);if(ge)return ge.slice(0,oe).every(function(Be){return Be})});if(ue)return W=ue,"break"}return ee}(),Q=he;Q>0;Q--){var ae=te(Q);if(ae==="break")break}m.placement!==W&&(m.modifiersData[l]._skip=!0,m.placement=W,m.reset=!0)}}var u=r.default={name:"flip",enabled:!0,phase:"main",fn:C,requiresIfExists:["offset"],data:{_skip:!1}}},88476:function(w,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,C){return C===void 0&&(C={x:0,y:0}),{top:S.top-k.height-C.y,right:S.right-k.width+C.x,bottom:S.bottom-k.height+C.y,left:S.left-k.width-C.x}}function f(S){return[e.top,e.right,e.bottom,e.left].some(function(k){return S[k]>=0})}function V(S){var k=S.state,C=S.name,u=k.rects.reference,c=k.rects.popper,m=k.modifiersData.preventOverflow,d=(0,a.default)(k,{elementContext:"reference"}),l=(0,a.default)(k,{altBoundary:!0}),s=o(d,u),i=o(l,c,m),p=f(s),v=f(i);k.modifiersData[C]={referenceClippingOffsets:s,popperEscapeOffsets:i,isReferenceHidden:p,hasPopperEscaped:v},k.attributes.popper=Object.assign({},k.attributes.popper,{"data-popper-reference-hidden":p,"data-popper-escaped":v})}var y=r.default={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:V}},91078:function(w,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=C(n(56304));r.applyStyles=e.default;var a=C(n(57243));r.arrow=a.default;var t=C(n(60421));r.computeStyles=t.default;var o=C(n(84601));r.eventListeners=o.default;var f=C(n(17267));r.flip=f.default;var V=C(n(88476));r.hide=V.default;var y=C(n(36707));r.offset=y.default;var S=C(n(98916));r.popperOffsets=S.default;var k=C(n(44454));r.preventOverflow=k.default;function C(u){return u&&u.__esModule?u:{default:u}}},36707:function(w,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 C=(0,e.default)(y),u=[a.left,a.top].indexOf(C)>=0?-1:1,c=typeof k=="function"?k(Object.assign({},S,{placement:y})):k,m=c[0],d=c[1];return m=m||0,d=(d||0)*u,[a.left,a.right].indexOf(C)>=0?{x:d,y:m}:{x:m,y:d}}function f(y){var S=y.state,k=y.options,C=y.name,u=k.offset,c=u===void 0?[0,0]:u,m=a.placements.reduce(function(i,p){return i[p]=o(p,S.rects,c),i},{}),d=m[S.placement],l=d.x,s=d.y;S.modifiersData.popperOffsets!=null&&(S.modifiersData.popperOffsets.x+=l,S.modifiersData.popperOffsets.y+=s),S.modifiersData[C]=m}var V=r.default={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:f}},98916:function(w,r,n){"use strict";r.__esModule=!0,r.default=void 0;var e=a(n(47566));function a(f){return f&&f.__esModule?f:{default:f}}function t(f){var V=f.state,y=f.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(w,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)),f=n(76770),V=c(n(19820)),y=c(n(43243)),S=c(n(31584)),k=c(n(14380)),C=c(n(92385)),u=n(69031);function c(l){return l&&l.__esModule?l:{default:l}}function m(l){var s=l.state,i=l.options,p=l.name,v=i.mainAxis,g=v===void 0?!0:v,h=i.altAxis,N=h===void 0?!1:h,b=i.boundary,B=i.rootBoundary,I=i.altBoundary,L=i.padding,T=i.tether,A=T===void 0?!0:T,x=i.tetherOffset,E=x===void 0?0:x,M=(0,S.default)(s,{boundary:b,rootBoundary:B,padding:L,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,K=s.rects.popper,H=typeof E=="function"?E(Object.assign({},s.rects,{placement:s.placement})):E,X=typeof H=="number"?{mainAxis:H,altAxis:H}:Object.assign({mainAxis:0,altAxis:0},H),Y=s.modifiersData.offset?s.modifiersData.offset[s.placement]:null,J={x:0,y:0};if(W){if(g){var le,ce=D==="y"?e.top:e.left,fe=D==="y"?e.bottom:e.right,pe=D==="y"?"height":"width",he=W[D],te=he+M[ce],Q=he-M[fe],ae=A?-K[pe]/2:0,ee=P===e.start?_[pe]:K[pe],oe=P===e.start?-K[pe]:-_[pe],ue=s.elements.arrow,re=A&&ue?(0,V.default)(ue):{width:0,height:0},ge=s.modifiersData["arrow#persistent"]?s.modifiersData["arrow#persistent"].padding:(0,C.default)(),Be=ge[ce],ve=ge[fe],Ve=(0,f.within)(0,_[pe],re[pe]),ke=R?_[pe]/2-ae-Ve-Be-X.mainAxis:ee-Ve-Be-X.mainAxis,ye=R?-_[pe]/2+ae+Ve+ve+X.mainAxis:oe+Ve+ve+X.mainAxis,Ie=s.elements.arrow&&(0,y.default)(s.elements.arrow),we=Ie?D==="y"?Ie.clientTop||0:Ie.clientLeft||0:0,xe=(le=Y==null?void 0:Y[D])!=null?le:0,Oe=he+ke-xe-we,We=he+ye-xe,be=(0,f.within)(A?(0,u.min)(te,Oe):te,he,A?(0,u.max)(Q,We):Q);W[D]=be,J[D]=be-he}if(N){var ie,se=D==="x"?e.top:e.left,Ce=D==="x"?e.bottom:e.right,me=W[F],Ne=F==="y"?"height":"width",Ae=me+M[se],De=me-M[Ce],je=[e.top,e.left].indexOf(j)!==-1,_e=(ie=Y==null?void 0:Y[F])!=null?ie:0,Ue=je?Ae:me-_[Ne]-K[Ne]-_e+X.altAxis,ze=je?me+_[Ne]+K[Ne]-_e-X.altAxis:De,Ge=A&&je?(0,f.withinMaxClamp)(Ue,me,ze):(0,f.within)(A?Ue:Ae,me,A?ze:De);W[F]=Ge,J[F]=Ge-me}s.modifiersData[p]=J}}var d=r.default={name:"preventOverflow",enabled:!0,phase:"main",fn:m,requiresIfExists:["offset"]}},62642:function(w,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)),f=V(n(56304));function V(k){return k&&k.__esModule?k:{default:k}}var y=r.defaultModifiers=[a.default,t.default,o.default,f.default],S=r.createPopper=(0,e.popperGenerator)({defaultModifiers:y})},7925:function(w,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)),f=d(n(60421)),V=d(n(56304)),y=d(n(36707)),S=d(n(17267)),k=d(n(44454)),C=d(n(57243)),u=d(n(88476)),c=n(62642);r.createPopperLite=c.createPopper;var m=n(91078);Object.keys(m).forEach(function(i){i==="default"||i==="__esModule"||Object.prototype.hasOwnProperty.call(e,i)||i in r&&r[i]===m[i]||(r[i]=m[i])});function d(i){return i&&i.__esModule?i:{default:i}}var l=r.defaultModifiers=[t.default,o.default,f.default,V.default,y.default,S.default,k.default,C.default,u.default],s=r.createPopperLite=r.createPopper=(0,a.popperGenerator)({defaultModifiers:l})},44744:function(w,r,n){"use strict";r.__esModule=!0,r.default=V;var e=f(n(14380)),a=n(41521),t=f(n(31584)),o=f(n(38141));function f(y){return y&&y.__esModule?y:{default:y}}function V(y,S){S===void 0&&(S={});var k=S,C=k.placement,u=k.boundary,c=k.rootBoundary,m=k.padding,d=k.flipVariations,l=k.allowedAutoPlacements,s=l===void 0?a.placements:l,i=(0,e.default)(C),p=i?d?a.variationPlacements:a.variationPlacements.filter(function(h){return(0,e.default)(h)===i}):a.basePlacements,v=p.filter(function(h){return s.indexOf(h)>=0});v.length===0&&(v=p);var g=v.reduce(function(h,N){return h[N]=(0,t.default)(y,{placement:N,boundary:u,rootBoundary:c,padding:m})[(0,o.default)(N)],h},{});return Object.keys(g).sort(function(h,N){return g[h]-g[N]})}},47566:function(w,r,n){"use strict";r.__esModule=!0,r.default=V;var e=f(n(38141)),a=f(n(14380)),t=f(n(7770)),o=n(41521);function f(y){return y&&y.__esModule?y:{default:y}}function V(y){var S=y.reference,k=y.element,C=y.placement,u=C?(0,e.default)(C):null,c=C?(0,a.default)(C):null,m=S.x+S.width/2-k.width/2,d=S.y+S.height/2-k.height/2,l;switch(u){case o.top:l={x:m,y:S.y-k.height};break;case o.bottom:l={x:m,y:S.y+S.height};break;case o.right:l={x:S.x+S.width,y:d};break;case o.left:l={x:S.x-k.width,y:d};break;default:l={x:S.x,y:S.y}}var s=u?(0,t.default)(u):null;if(s!=null){var i=s==="y"?"height":"width";switch(c){case o.start:l[s]=l[s]-(S[i]/2-k[i]/2);break;case o.end:l[s]=l[s]+(S[i]/2-k[i]/2);break;default:}}return l}},80798:function(w,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(w,r,n){"use strict";r.__esModule=!0,r.default=u;var e=C(n(86380)),a=C(n(33733)),t=C(n(32125)),o=C(n(47566)),f=C(n(31855)),V=n(41521),y=n(72600),S=C(n(77631)),k=C(n(54824));function C(c){return c&&c.__esModule?c:{default:c}}function u(c,m){m===void 0&&(m={});var d=m,l=d.placement,s=l===void 0?c.placement:l,i=d.strategy,p=i===void 0?c.strategy:i,v=d.boundary,g=v===void 0?V.clippingParents:v,h=d.rootBoundary,N=h===void 0?V.viewport:h,b=d.elementContext,B=b===void 0?V.popper:b,I=d.altBoundary,L=I===void 0?!1:I,T=d.padding,A=T===void 0?0:T,x=(0,S.default)(typeof A!="number"?A:(0,k.default)(A,V.basePlacements)),E=B===V.popper?V.reference:V.popper,M=c.rects.popper,j=c.elements[L?E:B],P=(0,e.default)((0,y.isElement)(j)?j:j.contextElement||(0,a.default)(c.elements.popper),g,N,p),R=(0,t.default)(c.elements.reference),D=(0,o.default)({reference:R,element:M,strategy:"absolute",placement:s}),F=(0,f.default)(Object.assign({},M,D)),W=B===V.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},K=c.modifiersData.offset;if(B===V.popper&&K){var H=K[s];Object.keys(_).forEach(function(X){var Y=[V.right,V.bottom].indexOf(X)>=0?1:-1,J=[V.top,V.bottom].indexOf(X)>=0?"y":"x";_[X]+=H[J]*Y})}return _}},54824:function(w,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(w,r){"use strict";r.__esModule=!0,r.default=n;function n(e){return e==="x"?"y":"x"}},38141:function(w,r,n){"use strict";r.__esModule=!0,r.default=a;var e=n(41521);function a(t){return t.split("-")[0]}},92385:function(w,r){"use strict";r.__esModule=!0,r.default=n;function n(){return{top:0,right:0,bottom:0,left:0}}},7770:function(w,r){"use strict";r.__esModule=!0,r.default=n;function n(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}},79641:function(w,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(w,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(w,r){"use strict";r.__esModule=!0,r.default=n;function n(e){return e.split("-")[1]}},69031:function(w,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(w,r){"use strict";r.__esModule=!0,r.default=n;function n(e){var a=e.reduce(function(t,o){var f=t[o.name];return t[o.name]=f?Object.assign({},f,o,{options:Object.assign({},f.options,o.options),data:Object.assign({},f.data,o.data)}):o,t},{});return Object.keys(a).map(function(t){return a[t]})}},77631:function(w,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(w,r,n){"use strict";r.__esModule=!0,r.default=t;var e=n(41521);function a(o){var f=new Map,V=new Set,y=[];o.forEach(function(k){f.set(k.name,k)});function S(k){V.add(k.name);var C=[].concat(k.requires||[],k.requiresIfExists||[]);C.forEach(function(u){if(!V.has(u)){var c=f.get(u);c&&S(c)}}),y.push(k)}return o.forEach(function(k){V.has(k.name)||S(k)}),y}function t(o){var f=a(o);return e.modifierPhases.reduce(function(V,y){return V.concat(f.filter(function(S){return S.phase===y}))},[])}},31855:function(w,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(w,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(w,r,n){"use strict";r.__esModule=!0,r.within=a,r.withinMaxClamp=t;var e=n(69031);function a(o,f,V){return(0,e.max)(o,(0,e.min)(f,V))}function t(o,f,V){var y=a(o,f,V);return y>V?V:y}},63935:function(w,r){"use strict";r.__esModule=!0,r.Fragment=r.EMPTY_OBJ=r.Component=void 0,r._CI=Et,r._HI=te,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=ce,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=C,r.normalizeProps=X,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 f(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 $ in O)z[$]=O[$];if(U)for(var Z in U)z[Z]=U[Z];return z}function C(O,U){return o(U)?{data:O,event:U}:null}function u(O){return!y(O)&&typeof O=="object"}var c=r.EMPTY_OBJ={},m=r.Fragment="$F";function d(O){return O.substr(2).toLowerCase()}function l(O,U){O.appendChild(U)}function s(O,U,z){y(z)?l(O,U):O.insertBefore(U,z)}function i(O,U){return U?document.createElementNS("http://www.w3.org/2000/svg",O):document.createElement(O)}function p(O,U,z){O.replaceChild(U,z)}function v(O,U){O.removeChild(U)}function g(O){for(var U=0;U0,Se=y(de),Le=f(de)&&de[0]===j;Te||Se||Le?(z=z||U.slice(0,q),(Te||Le)&&(ne=J(ne)),(Se||Le)&&(ne.key=j+q),z.push(ne)):z&&z.push(ne),ne.flags|=65536}}z=z||U,z.length===0?$=1:$=8}else z=U,z.flags|=65536,U.flags&81920&&(z=J(U)),$=2;return O.children=z,O.childFlags=$,O}function te(O){return t(O)||e(O)?K(O,null):n(O)?H(O,0,null):O.flags&16384?J(O):O}var Q="http://www.w3.org/1999/xlink",ae="http://www.w3.org/XML/1998/namespace",ee={"xlink:actuate":Q,"xlink:arcrole":Q,"xlink:href":Q,"xlink:role":Q,"xlink:show":Q,"xlink:title":Q,"xlink:type":Q,"xml:base":ae,"xml:lang":ae,"xml:space":ae};function oe(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=oe(0),re=oe(null),ge=oe(!0);function Be(O,U){var z=U.$EV;return z||(z=U.$EV=oe(null)),z[O]||++ue[O]===1&&(re[O]=ie(O)),z}function ve(O,U){var z=U.$EV;z&&z[O]&&(--ue[O]===0&&(document.removeEventListener(d(O),re[O]),re[O]=null),z[O]=null)}function Ve(O,U,z,$){if(o(z))Be(O,$)[O]=z;else if(u(z)){if(x(U,z))return;Be(O,$)[O]=z}else ve(O,$)}function ke(O){return o(O.composedPath)?O.composedPath()[0]:O.target}function ye(O,U,z,$){var Z=ke(O);do{if(U&&Z.disabled)return;var q=Z.$EV;if(q){var ne=q[z];if(ne&&($.dom=Z,ne.event?ne.event(ne.data,O):ne(O),O.cancelBubble))return}Z=Z.parentNode}while(!y(Z))}function Ie(){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=Ie,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}ye(U,!0,O,Oe(U))}}function be(O){return function(U){ye(U,!1,O,Oe(U))}}function ie(O){var U=O==="onClick"||O==="onDblClick"?We(O):be(O);return document.addEventListener(d(O),U),U}function se(O,U){var z=document.createElement("i");return z.innerHTML=U,z.innerHTML===O.innerHTML}function Ce(O,U,z){if(O[U]){var $=O[U];$.event?$.event($.data,z):$(z)}else{var Z=U.toLowerCase();O[Z]&&O[Z](z)}}function me(O,U){var z=function(Z){var q=this.$V;if(q){var ne=q.props||c,de=q.dom;if(f(O))Ce(ne,O,Z);else for(var Te=0;Te-1&&U.options[q]&&(de=U.options[q].value),z&&a(de)&&(de=O.defaultValue),Ge($,de)}}var Bt=me("onInput",pt),It=me("onChange");function Lt(O,U){Ne(O,"input",Bt),U.onChange&&Ne(O,"change",It)}function pt(O,U,z){var $=O.value,Z=U.value;if(a($)){if(z){var q=O.defaultValue;!a(q)&&q!==Z&&(U.defaultValue=q,U.value=q)}}else Z!==$&&(U.defaultValue=$,U.value=$)}function wt(O,U,z,$,Z,q){O&64?ze($,z):O&256?ft($,z,Z,U):O&128&&pt($,z,Z),q&&(z.$V=U)}function Gt(O,U,z){O&64?Ue(U,z):O&256?St(U):O&128&&Lt(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,$;if(U&481){$=O.ref;var Z=O.props;lt($);var q=O.childFlags;if(!y(Z))for(var ne=Object.keys(Z),de=0,Te=ne.length;de0;ne&&(q=Tt(z),q&&Gt(U,$,z));for(var de in z)ht(de,null,z[de],$,Z,q,null);ne&&wt(U,O,$,z,!0,q)}function At(O,U,z){var $=te(O.render(U,O.state,z)),Z=z;return o(O.getChildContext)&&(Z=k(z,O.getChildContext())),O.$CX=Z,$}function Et(O,U,z,$,Z,q){var ne=new U(z,$),de=ne.$N=!!(U.getDerivedStateFromProps||ne.getSnapshotBeforeUpdate);if(ne.$SVG=Z,ne.$L=q,O.children=ne,ne.$BS=!1,ne.context=$,ne.props===c&&(ne.props=z),de)ne.state=I(ne,z,ne.state);else if(o(ne.componentWillMount)){ne.$BR=!0,ne.componentWillMount();var Te=ne.$PS;if(!y(Te)){var Se=ne.state;if(y(Se))ne.state=Te;else for(var Le in Te)Se[Le]=Te[Le];ne.$PS=null}ne.$BR=!1}return ne.$LI=At(ne,z,$),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,$,Z,q){var ne=O.flags|=16384;ne&481?Pt(O,U,z,$,Z,q):ne&4?nn(O,U,z,$,Z,q):ne&8?(on(O,U,z,$,Z,q),Rt(O,q)):ne&512||ne&16?Mt(O,U,Z):ne&8192?tn(O,z,U,$,Z,q):ne&1024&&en(O,z,U,Z,q)}function en(O,U,z,$,Z){Ke(O.children,O.ref,U,!1,null,Z);var q=le();Mt(q,z,$),O.dom=q.dom}function tn(O,U,z,$,Z,q){var ne=O.children,de=O.childFlags;de&12&&ne.length===0&&(de=O.childFlags=2,ne=O.children=le()),de===2?Ke(ne,z,U,$,Z,q):nt(ne,z,U,$,Z,q)}function Mt(O,U,z){var $=O.dom=document.createTextNode(O.children);y(U)||s(U,$,z)}function Pt(O,U,z,$,Z,q){var ne=O.flags,de=O.props,Te=O.className,Se=O.childFlags,Le=O.dom=i(O.type,$=$||(ne&32)>0),Ee=O.children;if(!a(Te)&&Te!==""&&($?Le.setAttribute("class",Te):Le.className=Te),Se===16)A(Le,Ee);else if(Se!==1){var Pe=$&&O.type!=="foreignObject";Se===2?(Ee.flags&16384&&(O.children=Ee=J(Ee)),Ke(Ee,Le,z,Pe,null,q)):(Se===8||Se===4)&&nt(Ee,Le,z,Pe,null,q)}y(U)||s(U,Le,Z),y(de)||xt(O,ne,de,Le,$),ot(O.ref,Le,q)}function nt(O,U,z,$,Z,q){for(var ne=0;nePe)&&(Le=N(ne[Pe-1],!1).nextSibling)}vt(Te,Se,ne,de,z,$,Z,Le,O,q)}function sn(O,U,z,$){var Z=O.ref,q=U.ref,ne=U.children;if(vt(O.childFlags,U.childFlags,O.children,ne,Z,z,!1,null,O,$),U.dom=O.dom,Z!==q&&!t(ne)){var de=ne.dom;v(Z,de),l(q,de)}}function mn(O,U,z,$,Z,q){var ne=U.dom=O.dom,de=O.props,Te=U.props,Se=!1,Le=!1,Ee;if($=$||(Z&32)>0,de!==Te){var Pe=de||c;if(Ee=Te||c,Ee!==c){Se=(Z&448)>0,Se&&(Le=Tt(Ee));for(var Fe in Ee){var Me=Pe[Fe],He=Ee[Fe];Me!==He&&ht(Fe,Me,He,ne,$,Le,O)}}if(Pe!==c)for(var Re in Pe)a(Ee[Re])&&!a(Pe[Re])&&ht(Re,Pe[Re],null,ne,$,Le,O)}var et=U.children,Ye=U.className;O.className!==Ye&&(a(Ye)?ne.removeAttribute("class"):$?ne.setAttribute("class",Ye):ne.className=Ye),Z&4096?un(ne,et):vt(O.childFlags,U.childFlags,O.children,et,ne,z,$&&U.type!=="foreignObject",null,O,q),Se&&wt(Z,U,ne,Ee,!1,Le);var at=U.ref,Je=O.ref;Je!==at&&(lt(Je),ot(at,ne,q))}function fn(O,U,z,$,Z,q){Qe(O),nt(U,z,$,Z,N(O,!0),q),b(O,z)}function vt(O,U,z,$,Z,q,ne,de,Te,Se){switch(O){case 2:switch(U){case 2:Ze(z,$,Z,q,ne,de,Se);break;case 1:Xe(z,Z);break;case 16:Qe(z),A(Z,$);break;default:fn(z,$,Z,q,ne,Se);break}break;case 1:switch(U){case 2:Ke($,Z,q,ne,de,Se);break;case 1:break;case 16:A(Z,$);break;default:nt($,Z,q,ne,de,Se);break}break;case 16:switch(U){case 16:ln(z,$,Z);break;case 2:ut(Z),Ke($,Z,q,ne,de,Se);break;case 1:ut(Z);break;default:ut(Z),nt($,Z,q,ne,de,Se);break}break;default:switch(U){case 16:rt(z),A(Z,$);break;case 2:dt(Z,Te,z),Ke($,Z,q,ne,de,Se);break;case 1:dt(Z,Te,z);break;default:var Le=z.length|0,Ee=$.length|0;Le===0?Ee>0&&nt($,Z,q,ne,de,Se):Ee===0?dt(Z,Te,z):U===8&&O===8?Nn(z,$,Z,q,ne,Le,Ee,de,Te,Se):gn(z,$,Z,q,ne,Le,Ee,de,Se);break}break}}function pn(O,U,z,$,Z){Z.push(function(){O.componentDidUpdate(U,z,$)})}function Dt(O,U,z,$,Z,q,ne,de,Te){var Se=O.state,Le=O.props,Ee=!!O.$N,Pe=o(O.shouldComponentUpdate);if(Ee&&(U=I(O,z,U!==Se?k(Se,U):U)),ne||!Pe||Pe&&O.shouldComponentUpdate(z,U,Z)){!Ee&&o(O.componentWillUpdate)&&O.componentWillUpdate(z,U,Z),O.props=z,O.state=U,O.context=Z;var Fe=null,Me=At(O,z,Z);Ee&&o(O.getSnapshotBeforeUpdate)&&(Fe=O.getSnapshotBeforeUpdate(Le,Se)),Ze(O.$LI,Me,$,O.$CX,q,de,Te),O.$LI=Me,o(O.componentDidUpdate)&&pn(O,Le,Se,Fe,Te)}else O.props=z,O.state=U,O.context=Z}function hn(O,U,z,$,Z,q,ne){var de=U.children=O.children;if(!y(de)){de.$L=ne;var Te=U.props||c,Se=U.ref,Le=O.ref,Ee=de.state;if(!de.$N){if(o(de.componentWillReceiveProps)){if(de.$BR=!0,de.componentWillReceiveProps(Te,$),de.$UN)return;de.$BR=!1}y(de.$PS)||(Ee=k(Ee,de.$PS),de.$PS=null)}Dt(de,Ee,Te,z,$,Z,!1,q,ne),Le!==Se&&(lt(Le),ot(Se,de,ne))}}function Cn(O,U,z,$,Z,q,ne){var de=!0,Te=U.props||c,Se=U.ref,Le=O.props,Ee=!a(Se),Pe=O.children;if(Ee&&o(Se.onComponentShouldUpdate)&&(de=Se.onComponentShouldUpdate(Le,Te)),de!==!1){Ee&&o(Se.onComponentWillUpdate)&&Se.onComponentWillUpdate(Le,Te);var Fe=te(Ct(U,$));Ze(Pe,Fe,z,$,Z,q,ne),U.children=Fe,Ee&&o(Se.onComponentDidUpdate)&&Se.onComponentDidUpdate(Le,Te)}else U.children=Pe}function vn(O,U){var z=U.children,$=U.dom=O.dom;z!==O.children&&($.nodeValue=z)}function gn(O,U,z,$,Z,q,ne,de,Te){for(var Se=q>ne?ne:q,Le=0,Ee,Pe;Lene)for(Le=Se;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,z,$,Z,de,Se),O[Le]=Me,Le--,Ee--,Pe>Le||Pe>Ee)break e;Fe=O[Le],Me=U[Ee]}}if(Pe>Le){if(Pe<=Ee)for(He=Ee+1,Re=HeEe)for(;Pe<=Le;)Xe(O[Pe++],z);else Vn(O,U,$,q,ne,Le,Ee,Pe,z,Z,de,Te,Se)}function Vn(O,U,z,$,Z,q,ne,de,Te,Se,Le,Ee,Pe){var Fe,Me,He,Re=0,et=de,Ye=de,at=q-de+1,Je=ne-de+1,ct=new Int32Array(Je+1),tt=at===$,Vt=!1,$e=0,it=0;if(Z<4||(at|Je)<32)for(Re=et;Re<=q;++Re)if(Fe=O[Re],itde?Vt=!0:$e=de,Me.flags&16384&&(U[de]=Me=J(Me)),Ze(Fe,Me,Te,z,Se,Le,Pe),++it;break}!tt&&de>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<=q;++Re)if(Fe=O[Re],itet;)Xe(O[et++],Te);ct[de-Ye]=Re+1,$e>de?Vt=!0:$e=de,Me=U[de],Me.flags&16384&&(U[de]=Me=J(Me)),Ze(Fe,Me,Te,z,Se,Le,Pe),++it}else tt||Xe(Fe,Te);else tt||Xe(Fe,Te)}if(tt)dt(Te,Ee,O),nt(U,Te,z,Se,Le,Pe);else if(Vt){var Ht=bn(ct);for(de=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,Se,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,Se,Hejt&&(jt=Te,qe=new Int32Array(Te),st=new Int32Array(Te));z>1,O[qe[de]]0&&(st[z]=qe[q-1]),qe[q]=z)}q=Z+1;var Se=new Int32Array(q);for(ne=qe[q-1];q-- >0;)Se[q]=ne,ne=st[ne],qe[q]=0;return Se}var yn=typeof document!="undefined";yn&&window.Node&&(Node.prototype.$EV=null,Node.prototype.$V=null);function Ft(O,U,z,$){var Z=[],q=U.$V;L.v=!0,a(q)?a(O)||(O.flags&16384&&(O=J(O)),Ke(O,U,$,!1,null,Z),U.$V=O,q=O):a(O)?(Xe(q,U),U.$V=null):(O.flags&16384&&(O=J(O)),Ze(q,O,U,$,!1,null,Z),q=U.$V=O),g(Z),L.v=!1,o(z)&&z(),o(T.renderComplete)&&T.renderComplete(q,U)}function Wt(O,U,z,$){z===void 0&&(z=null),$===void 0&&($=c),Ft(O,U,z,$)}function kn(O){return function(){function U(z,$,Z,q){O||(O=z),Wt($,O,Z,q)}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,$){var Z=O.$PS;if(o(U)&&(U=U(Z?k(O.state,Z):O.state,O.props,O.context)),a(Z))O.$PS=U;else for(var q in U)Z[q]=U[q];if(O.$BR)o(z)&&O.$L.push(z.bind(O));else{if(!L.v&&mt.length===0){zt(O,$),o(z)&&z.call(O);return}if(mt.indexOf(O)===-1&&mt.push(O),$&&(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"),X=a.call(_,"finallyLoc");if(H&&X){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(X){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}(w.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(w,r){return r=r||{},new Promise(function(n,e){var a=new XMLHttpRequest,t=[],o={},f=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",w,!0),a.onload=function(){a.getAllResponseHeaders().toLowerCase().replace(/^(.+?):/gm,function(y,S){o[S]||t.push(o[S]=S)}),n(f())},a.onerror=e,a.withCredentials=r.credentials=="include",r.headers)a.setRequestHeader(V,r.headers[V]);a.send(r.body||null)})})},50640:function(w,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(i,p){var v=typeof Symbol!="undefined"&&i[Symbol.iterator]||i["@@iterator"];if(v)return(v=v.call(i)).next.bind(v);if(Array.isArray(i)||(v=e(i))||p&&i&&typeof i.length=="number"){v&&(i=v);var g=0;return function(){return g>=i.length?{done:!0}:{done:!1,value:i[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(i,p){if(i){if(typeof i=="string")return a(i,p);var v=Object.prototype.toString.call(i).slice(8,-1);if(v==="Object"&&i.constructor&&(v=i.constructor.name),v==="Map"||v==="Set")return Array.from(i);if(v==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(v))return a(i,p)}}function a(i,p){(p==null||p>i.length)&&(p=i.length);for(var v=0,g=new Array(p);v0&&(0,a.round)(v.width)/y.offsetWidth||1,c=y.offsetHeight>0&&(0,a.round)(v.height)/y.offsetHeight||1);var m=(0,e.isElement)(y)?(0,t.default)(y):window,d=m.visualViewport,u=!(0,o.default)()&&k,s=(v.left+(u&&d?d.offsetLeft:0))/i,l=(v.top+(u&&d?d.offsetTop:0))/c,p=v.width/i,C=v.height/c;return{width:p,height:C,top:l,right:s+p,bottom:l+C,left:s,x:s,y:l}}},86380:function(w,r,n){"use strict";r.__esModule=!0,r.default=C;var e=n(41521),a=u(n(2868)),t=u(n(39799)),o=u(n(54826)),f=u(n(43243)),V=u(n(33733)),y=u(n(14522)),S=n(72600),k=u(n(32125)),v=u(n(34972)),i=u(n(96343)),c=u(n(13203)),m=u(n(31855)),d=n(69031);function u(g){return g&&g.__esModule?g:{default:g}}function s(g,h){var N=(0,k.default)(g,!1,h==="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 l(g,h,N){return h===e.viewport?(0,m.default)((0,a.default)(g,N)):(0,S.isElement)(h)?s(h,N):(0,m.default)((0,t.default)((0,V.default)(g)))}function p(g){var h=(0,o.default)((0,v.default)(g)),N=["absolute","fixed"].indexOf((0,y.default)(g).position)>=0,b=N&&(0,S.isHTMLElement)(g)?(0,f.default)(g):g;return(0,S.isElement)(b)?h.filter(function(B){return(0,S.isElement)(B)&&(0,i.default)(B,b)&&(0,c.default)(B)!=="body"}):[]}function C(g,h,N,b){var B=h==="clippingParents"?p(g):[].concat(h),I=[].concat(B,[N]),L=I[0],T=I.reduce(function(A,x){var E=l(g,x,b);return A.top=(0,d.max)(E.top,A.top),A.right=(0,d.min)(E.right,A.right),A.bottom=(0,d.min)(E.bottom,A.bottom),A.left=(0,d.max)(E.left,A.left),A},l(g,L,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(w,r,n){"use strict";r.__esModule=!0,r.default=i;var e=k(n(32125)),a=k(n(45401)),t=k(n(13203)),o=n(72600),f=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 v(c){var m=c.getBoundingClientRect(),d=(0,S.round)(m.width)/c.offsetWidth||1,u=(0,S.round)(m.height)/c.offsetHeight||1;return d!==1||u!==1}function i(c,m,d){d===void 0&&(d=!1);var u=(0,o.isHTMLElement)(m),s=(0,o.isHTMLElement)(m)&&v(m),l=(0,V.default)(m),p=(0,e.default)(c,s,d),C={scrollLeft:0,scrollTop:0},g={x:0,y:0};return(u||!u&&!d)&&(((0,t.default)(m)!=="body"||(0,y.default)(l))&&(C=(0,a.default)(m)),(0,o.isHTMLElement)(m)?(g=(0,e.default)(m,!0),g.x+=m.clientLeft,g.y+=m.clientTop):l&&(g.x=(0,f.default)(l))),{x:p.left+C.scrollLeft-g.x,y:p.top+C.scrollTop-g.y,width:p.width,height:p.height}}},14522:function(w,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(w,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(w,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)),f=n(69031);function V(S){return S&&S.__esModule?S:{default:S}}function y(S){var k,v=(0,e.default)(S),i=(0,o.default)(S),c=(k=S.ownerDocument)==null?void 0:k.body,m=(0,f.max)(v.scrollWidth,v.clientWidth,c?c.scrollWidth:0,c?c.clientWidth:0),d=(0,f.max)(v.scrollHeight,v.clientHeight,c?c.scrollHeight:0,c?c.clientHeight:0),u=-i.scrollLeft+(0,t.default)(S),s=-i.scrollTop;return(0,a.default)(c||v).direction==="rtl"&&(u+=(0,f.max)(v.clientWidth,c?c.clientWidth:0)-m),{width:m,height:d,x:u,y:s}}},75680:function(w,r){"use strict";r.__esModule=!0,r.default=n;function n(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}},19820:function(w,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 f=(0,e.default)(o),V=o.offsetWidth,y=o.offsetHeight;return Math.abs(f.width-V)<=1&&(V=f.width),Math.abs(f.height-y)<=1&&(y=f.height),{x:o.offsetLeft,y:o.offsetTop,width:V,height:y}}},13203:function(w,r){"use strict";r.__esModule=!0,r.default=n;function n(e){return e?(e.nodeName||"").toLowerCase():null}},45401:function(w,r,n){"use strict";r.__esModule=!0,r.default=V;var e=f(n(79569)),a=f(n(81020)),t=n(72600),o=f(n(75680));function f(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(w,r,n){"use strict";r.__esModule=!0,r.default=i;var e=S(n(81020)),a=S(n(13203)),t=S(n(14522)),o=n(72600),f=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 v(c){var m=/firefox/i.test((0,y.default)()),d=/Trident/i.test((0,y.default)());if(d&&(0,o.isHTMLElement)(c)){var u=(0,t.default)(c);if(u.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 l=(0,t.default)(s);if(l.transform!=="none"||l.perspective!=="none"||l.contain==="paint"||["transform","perspective"].indexOf(l.willChange)!==-1||m&&l.willChange==="filter"||m&&l.filter&&l.filter!=="none")return s;s=s.parentNode}return null}function i(c){for(var m=(0,e.default)(c),d=k(c);d&&(0,f.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")?m:d||v(c)||m}},34972:function(w,r,n){"use strict";r.__esModule=!0,r.default=f;var e=o(n(13203)),a=o(n(33733)),t=n(72600);function o(V){return V&&V.__esModule?V:{default:V}}function f(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(w,r,n){"use strict";r.__esModule=!0,r.default=V;var e=f(n(34972)),a=f(n(44011)),t=f(n(13203)),o=n(72600);function f(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(w,r,n){"use strict";r.__esModule=!0,r.default=V;var e=f(n(81020)),a=f(n(33733)),t=f(n(85750)),o=f(n(14894));function f(y){return y&&y.__esModule?y:{default:y}}function V(y,S){var k=(0,e.default)(y),v=(0,a.default)(y),i=k.visualViewport,c=v.clientWidth,m=v.clientHeight,d=0,u=0;if(i){c=i.width,m=i.height;var s=(0,o.default)();(s||!s&&S==="fixed")&&(d=i.offsetLeft,u=i.offsetTop)}return{width:c,height:m,x:d+(0,t.default)(y),y:u}}},81020:function(w,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(w,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 f=(0,e.default)(o),V=f.pageXOffset,y=f.pageYOffset;return{scrollLeft:V,scrollTop:y}}},85750:function(w,r,n){"use strict";r.__esModule=!0,r.default=f;var e=o(n(32125)),a=o(n(33733)),t=o(n(79569));function o(V){return V&&V.__esModule?V:{default:V}}function f(V){return(0,e.default)((0,a.default)(V)).left+(0,t.default)(V).scrollLeft}},72600:function(w,r,n){"use strict";r.__esModule=!0,r.isElement=t,r.isHTMLElement=o,r.isShadowRoot=f;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 f(V){if(typeof ShadowRoot=="undefined")return!1;var y=(0,e.default)(V).ShadowRoot;return V instanceof y||V instanceof ShadowRoot}},14894:function(w,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(w,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 f=(0,e.default)(o),V=f.overflow,y=f.overflowX,S=f.overflowY;return/auto|scroll|overlay|hidden/.test(V+S+y)}},25658:function(w,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(w,r,n){"use strict";r.__esModule=!0,r.default=V;var e=f(n(65329)),a=f(n(34972)),t=f(n(81020)),o=f(n(44011));function f(y){return y&&y.__esModule?y:{default:y}}function V(y,S){var k;S===void 0&&(S=[]);var v=(0,e.default)(y),i=v===((k=y.ownerDocument)==null?void 0:k.body),c=(0,t.default)(v),m=i?[c].concat(c.visualViewport||[],(0,o.default)(v)?v:[]):v,d=S.concat(m);return i?d:d.concat(V((0,a.default)(m)))}},41521:function(w,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",f=r.basePlacements=[n,e,a,t],V=r.start="start",y=r.end="end",S=r.clippingParents="clippingParents",k=r.viewport="viewport",v=r.popper="popper",i=r.reference="reference",c=r.variationPlacements=f.reduce(function(B,I){return B.concat([I+"-"+V,I+"-"+y])},[]),m=r.placements=[].concat(f,[o]).reduce(function(B,I){return B.concat([I,I+"-"+V,I+"-"+y])},[]),d=r.beforeRead="beforeRead",u=r.read="read",s=r.afterRead="afterRead",l=r.beforeMain="beforeMain",p=r.main="main",C=r.afterMain="afterMain",g=r.beforeWrite="beforeWrite",h=r.write="write",N=r.afterWrite="afterWrite",b=r.modifierPhases=[d,u,s,l,p,C,g,h,N]},60023:function(w,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 f=n(7925);r.createPopper=f.createPopper;var V=n(62642);r.createPopperLite=V.createPopper},56304:function(w,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 v=S.styles[k]||{},i=S.attributes[k]||{},c=S.elements[k];!(0,a.isHTMLElement)(c)||!(0,e.default)(c)||(Object.assign(c.style,v),Object.keys(i).forEach(function(m){var d=i[m];d===!1?c.removeAttribute(m):c.setAttribute(m,d===!0?"":d)}))})}function f(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(v){var i=S.elements[v],c=S.attributes[v]||{},m=Object.keys(S.styles.hasOwnProperty(v)?S.styles[v]:k[v]),d=m.reduce(function(u,s){return u[s]="",u},{});!(0,a.isHTMLElement)(i)||!(0,e.default)(i)||(Object.assign(i.style,d),Object.keys(c).forEach(function(u){i.removeAttribute(u)}))})}}var V=r.default={name:"applyStyles",enabled:!0,phase:"write",fn:o,effect:f,requires:["computeStyles"]}},57243:function(w,r,n){"use strict";r.__esModule=!0,r.default=void 0;var e=v(n(38141)),a=v(n(19820)),t=v(n(96343)),o=v(n(43243)),f=v(n(7770)),V=n(76770),y=v(n(77631)),S=v(n(54824)),k=n(41521);function v(u){return u&&u.__esModule?u:{default:u}}var i=function(){function u(s,l){return s=typeof s=="function"?s(Object.assign({},l.rects,{placement:l.placement})):s,(0,y.default)(typeof s!="number"?s:(0,S.default)(s,k.basePlacements))}return u}();function c(u){var s,l=u.state,p=u.name,C=u.options,g=l.elements.arrow,h=l.modifiersData.popperOffsets,N=(0,e.default)(l.placement),b=(0,f.default)(N),B=[k.left,k.right].indexOf(N)>=0,I=B?"height":"width";if(!(!g||!h)){var L=i(C.padding,l),T=(0,a.default)(g),A=b==="y"?k.top:k.left,x=b==="y"?k.bottom:k.right,E=l.rects.reference[I]+l.rects.reference[b]-h[b]-l.rects.popper[I],M=h[b]-l.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=L[A],F=P-T[I]-L[x],W=P/2-T[I]/2+R,U=(0,V.within)(D,W,F),K=b;l.modifiersData[p]=(s={},s[K]=U,s.centerOffset=U-W,s)}}function m(u){var s=u.state,l=u.options,p=l.element,C=p===void 0?"[data-popper-arrow]":p;C!=null&&(typeof C=="string"&&(C=s.elements.popper.querySelector(C),!C)||(0,t.default)(s.elements.popper,C)&&(s.elements.arrow=C))}var d=r.default={name:"arrow",enabled:!0,phase:"main",fn:c,effect:m,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]}},60421:function(w,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)),f=k(n(14522)),V=k(n(38141)),y=k(n(14380)),S=n(69031);function k(u){return u&&u.__esModule?u:{default:u}}var v={top:"auto",right:"auto",bottom:"auto",left:"auto"};function i(u,s){var l=u.x,p=u.y,C=s.devicePixelRatio||1;return{x:(0,S.round)(l*C)/C||0,y:(0,S.round)(p*C)/C||0}}function c(u){var s,l=u.popper,p=u.popperRect,C=u.placement,g=u.variation,h=u.offsets,N=u.position,b=u.gpuAcceleration,B=u.adaptive,I=u.roundOffsets,L=u.isFixed,T=h.x,A=T===void 0?0:T,x=h.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=h.hasOwnProperty("x"),P=h.hasOwnProperty("y"),R=e.left,D=e.top,F=window;if(B){var W=(0,a.default)(l),U="clientHeight",K="clientWidth";if(W===(0,t.default)(l)&&(W=(0,o.default)(l),(0,f.default)(W).position!=="static"&&N==="absolute"&&(U="scrollHeight",K="scrollWidth")),W=W,C===e.top||(C===e.left||C===e.right)&&g===e.end){D=e.bottom;var H=L&&W===F&&F.visualViewport?F.visualViewport.height:W[U];E-=H-p.height,E*=b?1:-1}if(C===e.left||(C===e.top||C===e.bottom)&&g===e.end){R=e.right;var X=L&&W===F&&F.visualViewport?F.visualViewport.width:W[K];A-=X-p.width,A*=b?1:-1}}var Y=Object.assign({position:N},B&&v),J=I===!0?i({x:A,y:E},(0,t.default)(l)):{x:A,y:E};if(A=J.x,E=J.y,b){var ie;return Object.assign({},Y,(ie={},ie[D]=P?"0":"",ie[R]=j?"0":"",ie.transform=(F.devicePixelRatio||1)<=1?"translate("+A+"px, "+E+"px)":"translate3d("+A+"px, "+E+"px, 0)",ie))}return Object.assign({},Y,(s={},s[D]=P?E+"px":"",s[R]=j?A+"px":"",s.transform="",s))}function m(u){var s=u.state,l=u.options,p=l.gpuAcceleration,C=p===void 0?!0:p,g=l.adaptive,h=g===void 0?!0:g,N=l.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:C,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:h,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:m,data:{}}},84601:function(w,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,v=k.scroll,i=v===void 0?!0:v,c=k.resize,m=c===void 0?!0:c,d=(0,e.default)(y.elements.popper),u=[].concat(y.scrollParents.reference,y.scrollParents.popper);return i&&u.forEach(function(s){s.addEventListener("scroll",S.update,t)}),m&&d.addEventListener("resize",S.update,t),function(){i&&u.forEach(function(s){s.removeEventListener("scroll",S.update,t)}),m&&d.removeEventListener("resize",S.update,t)}}var f=r.default={name:"eventListeners",enabled:!0,phase:"write",fn:function(){function V(){}return V}(),effect:o,data:{}}},17267:function(w,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)),f=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 m=(0,e.default)(c);return[(0,t.default)(c),m,(0,t.default)(m)]}function v(c){var m=c.state,d=c.options,u=c.name;if(!m.modifiersData[u]._skip){for(var s=d.mainAxis,l=s===void 0?!0:s,p=d.altAxis,C=p===void 0?!0:p,g=d.fallbackPlacements,h=d.padding,N=d.boundary,b=d.rootBoundary,B=d.altBoundary,I=d.flipVariations,L=I===void 0?!0:I,T=d.allowedAutoPlacements,A=m.options.placement,x=(0,a.default)(A),E=x===A,M=g||(E||!L?[(0,e.default)(A)]:k(A)),j=[A].concat(M).reduce(function(ee,oe){return ee.concat((0,a.default)(oe)===V.auto?(0,f.default)(m,{placement:oe,boundary:N,rootBoundary:b,padding:h,flipVariations:L,allowedAutoPlacements:T}):oe)},[]),P=m.rects.reference,R=m.rects.popper,D=new Map,F=!0,W=j[0],U=0;U=0,J=Y?"width":"height",ie=(0,o.default)(m,{placement:K,boundary:N,rootBoundary:b,altBoundary:B,padding:h}),ce=Y?X?V.right:V.left:X?V.bottom:V.top;P[J]>R[J]&&(ce=(0,e.default)(ce));var fe=(0,e.default)(ce),pe=[];if(l&&pe.push(ie[H]<=0),C&&pe.push(ie[ce]<=0,ie[fe]<=0),pe.every(function(ee){return ee})){W=K,F=!1;break}D.set(K,pe)}if(F)for(var he=L?3:1,te=function(){function ee(oe){var ue=j.find(function(re){var ge=D.get(re);if(ge)return ge.slice(0,oe).every(function(Be){return Be})});if(ue)return W=ue,"break"}return ee}(),Q=he;Q>0;Q--){var ae=te(Q);if(ae==="break")break}m.placement!==W&&(m.modifiersData[u]._skip=!0,m.placement=W,m.reset=!0)}}var i=r.default={name:"flip",enabled:!0,phase:"main",fn:v,requiresIfExists:["offset"],data:{_skip:!1}}},88476:function(w,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,v){return v===void 0&&(v={x:0,y:0}),{top:S.top-k.height-v.y,right:S.right-k.width+v.x,bottom:S.bottom-k.height+v.y,left:S.left-k.width-v.x}}function f(S){return[e.top,e.right,e.bottom,e.left].some(function(k){return S[k]>=0})}function V(S){var k=S.state,v=S.name,i=k.rects.reference,c=k.rects.popper,m=k.modifiersData.preventOverflow,d=(0,a.default)(k,{elementContext:"reference"}),u=(0,a.default)(k,{altBoundary:!0}),s=o(d,i),l=o(u,c,m),p=f(s),C=f(l);k.modifiersData[v]={referenceClippingOffsets:s,popperEscapeOffsets:l,isReferenceHidden:p,hasPopperEscaped:C},k.attributes.popper=Object.assign({},k.attributes.popper,{"data-popper-reference-hidden":p,"data-popper-escaped":C})}var y=r.default={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:V}},91078:function(w,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=v(n(56304));r.applyStyles=e.default;var a=v(n(57243));r.arrow=a.default;var t=v(n(60421));r.computeStyles=t.default;var o=v(n(84601));r.eventListeners=o.default;var f=v(n(17267));r.flip=f.default;var V=v(n(88476));r.hide=V.default;var y=v(n(36707));r.offset=y.default;var S=v(n(98916));r.popperOffsets=S.default;var k=v(n(44454));r.preventOverflow=k.default;function v(i){return i&&i.__esModule?i:{default:i}}},36707:function(w,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 v=(0,e.default)(y),i=[a.left,a.top].indexOf(v)>=0?-1:1,c=typeof k=="function"?k(Object.assign({},S,{placement:y})):k,m=c[0],d=c[1];return m=m||0,d=(d||0)*i,[a.left,a.right].indexOf(v)>=0?{x:d,y:m}:{x:m,y:d}}function f(y){var S=y.state,k=y.options,v=y.name,i=k.offset,c=i===void 0?[0,0]:i,m=a.placements.reduce(function(l,p){return l[p]=o(p,S.rects,c),l},{}),d=m[S.placement],u=d.x,s=d.y;S.modifiersData.popperOffsets!=null&&(S.modifiersData.popperOffsets.x+=u,S.modifiersData.popperOffsets.y+=s),S.modifiersData[v]=m}var V=r.default={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:f}},98916:function(w,r,n){"use strict";r.__esModule=!0,r.default=void 0;var e=a(n(47566));function a(f){return f&&f.__esModule?f:{default:f}}function t(f){var V=f.state,y=f.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(w,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)),f=n(76770),V=c(n(19820)),y=c(n(43243)),S=c(n(31584)),k=c(n(14380)),v=c(n(92385)),i=n(69031);function c(u){return u&&u.__esModule?u:{default:u}}function m(u){var s=u.state,l=u.options,p=u.name,C=l.mainAxis,g=C===void 0?!0:C,h=l.altAxis,N=h===void 0?!1:h,b=l.boundary,B=l.rootBoundary,I=l.altBoundary,L=l.padding,T=l.tether,A=T===void 0?!0:T,x=l.tetherOffset,E=x===void 0?0:x,M=(0,S.default)(s,{boundary:b,rootBoundary:B,padding:L,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,U=s.rects.reference,K=s.rects.popper,H=typeof E=="function"?E(Object.assign({},s.rects,{placement:s.placement})):E,X=typeof H=="number"?{mainAxis:H,altAxis:H}:Object.assign({mainAxis:0,altAxis:0},H),Y=s.modifiersData.offset?s.modifiersData.offset[s.placement]:null,J={x:0,y:0};if(W){if(g){var ie,ce=D==="y"?e.top:e.left,fe=D==="y"?e.bottom:e.right,pe=D==="y"?"height":"width",he=W[D],te=he+M[ce],Q=he-M[fe],ae=A?-K[pe]/2:0,ee=P===e.start?U[pe]:K[pe],oe=P===e.start?-K[pe]:-U[pe],ue=s.elements.arrow,re=A&&ue?(0,V.default)(ue):{width:0,height:0},ge=s.modifiersData["arrow#persistent"]?s.modifiersData["arrow#persistent"].padding:(0,v.default)(),Be=ge[ce],ve=ge[fe],Ve=(0,f.within)(0,U[pe],re[pe]),ke=R?U[pe]/2-ae-Ve-Be-X.mainAxis:ee-Ve-Be-X.mainAxis,ye=R?-U[pe]/2+ae+Ve+ve+X.mainAxis:oe+Ve+ve+X.mainAxis,Ie=s.elements.arrow&&(0,y.default)(s.elements.arrow),we=Ie?D==="y"?Ie.clientTop||0:Ie.clientLeft||0:0,xe=(ie=Y==null?void 0:Y[D])!=null?ie:0,Oe=he+ke-xe-we,We=he+ye-xe,be=(0,f.within)(A?(0,i.min)(te,Oe):te,he,A?(0,i.max)(Q,We):Q);W[D]=be,J[D]=be-he}if(N){var le,se=D==="x"?e.top:e.left,Ce=D==="x"?e.bottom:e.right,me=W[F],Ne=F==="y"?"height":"width",Ae=me+M[se],De=me-M[Ce],je=[e.top,e.left].indexOf(j)!==-1,Ue=(le=Y==null?void 0:Y[F])!=null?le:0,_e=je?Ae:me-U[Ne]-K[Ne]-Ue+X.altAxis,ze=je?me+U[Ne]+K[Ne]-Ue-X.altAxis:De,Ge=A&&je?(0,f.withinMaxClamp)(_e,me,ze):(0,f.within)(A?_e:Ae,me,A?ze:De);W[F]=Ge,J[F]=Ge-me}s.modifiersData[p]=J}}var d=r.default={name:"preventOverflow",enabled:!0,phase:"main",fn:m,requiresIfExists:["offset"]}},62642:function(w,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)),f=V(n(56304));function V(k){return k&&k.__esModule?k:{default:k}}var y=r.defaultModifiers=[a.default,t.default,o.default,f.default],S=r.createPopper=(0,e.popperGenerator)({defaultModifiers:y})},7925:function(w,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)),f=d(n(60421)),V=d(n(56304)),y=d(n(36707)),S=d(n(17267)),k=d(n(44454)),v=d(n(57243)),i=d(n(88476)),c=n(62642);r.createPopperLite=c.createPopper;var m=n(91078);Object.keys(m).forEach(function(l){l==="default"||l==="__esModule"||Object.prototype.hasOwnProperty.call(e,l)||l in r&&r[l]===m[l]||(r[l]=m[l])});function d(l){return l&&l.__esModule?l:{default:l}}var u=r.defaultModifiers=[t.default,o.default,f.default,V.default,y.default,S.default,k.default,v.default,i.default],s=r.createPopperLite=r.createPopper=(0,a.popperGenerator)({defaultModifiers:u})},44744:function(w,r,n){"use strict";r.__esModule=!0,r.default=V;var e=f(n(14380)),a=n(41521),t=f(n(31584)),o=f(n(38141));function f(y){return y&&y.__esModule?y:{default:y}}function V(y,S){S===void 0&&(S={});var k=S,v=k.placement,i=k.boundary,c=k.rootBoundary,m=k.padding,d=k.flipVariations,u=k.allowedAutoPlacements,s=u===void 0?a.placements:u,l=(0,e.default)(v),p=l?d?a.variationPlacements:a.variationPlacements.filter(function(h){return(0,e.default)(h)===l}):a.basePlacements,C=p.filter(function(h){return s.indexOf(h)>=0});C.length===0&&(C=p);var g=C.reduce(function(h,N){return h[N]=(0,t.default)(y,{placement:N,boundary:i,rootBoundary:c,padding:m})[(0,o.default)(N)],h},{});return Object.keys(g).sort(function(h,N){return g[h]-g[N]})}},47566:function(w,r,n){"use strict";r.__esModule=!0,r.default=V;var e=f(n(38141)),a=f(n(14380)),t=f(n(7770)),o=n(41521);function f(y){return y&&y.__esModule?y:{default:y}}function V(y){var S=y.reference,k=y.element,v=y.placement,i=v?(0,e.default)(v):null,c=v?(0,a.default)(v):null,m=S.x+S.width/2-k.width/2,d=S.y+S.height/2-k.height/2,u;switch(i){case o.top:u={x:m,y:S.y-k.height};break;case o.bottom:u={x:m,y:S.y+S.height};break;case o.right:u={x:S.x+S.width,y:d};break;case o.left:u={x:S.x-k.width,y:d};break;default:u={x:S.x,y:S.y}}var s=i?(0,t.default)(i):null;if(s!=null){var l=s==="y"?"height":"width";switch(c){case o.start:u[s]=u[s]-(S[l]/2-k[l]/2);break;case o.end:u[s]=u[s]+(S[l]/2-k[l]/2);break;default:}}return u}},80798:function(w,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(w,r,n){"use strict";r.__esModule=!0,r.default=i;var e=v(n(86380)),a=v(n(33733)),t=v(n(32125)),o=v(n(47566)),f=v(n(31855)),V=n(41521),y=n(72600),S=v(n(77631)),k=v(n(54824));function v(c){return c&&c.__esModule?c:{default:c}}function i(c,m){m===void 0&&(m={});var d=m,u=d.placement,s=u===void 0?c.placement:u,l=d.strategy,p=l===void 0?c.strategy:l,C=d.boundary,g=C===void 0?V.clippingParents:C,h=d.rootBoundary,N=h===void 0?V.viewport:h,b=d.elementContext,B=b===void 0?V.popper:b,I=d.altBoundary,L=I===void 0?!1:I,T=d.padding,A=T===void 0?0:T,x=(0,S.default)(typeof A!="number"?A:(0,k.default)(A,V.basePlacements)),E=B===V.popper?V.reference:V.popper,M=c.rects.popper,j=c.elements[L?E:B],P=(0,e.default)((0,y.isElement)(j)?j:j.contextElement||(0,a.default)(c.elements.popper),g,N,p),R=(0,t.default)(c.elements.reference),D=(0,o.default)({reference:R,element:M,strategy:"absolute",placement:s}),F=(0,f.default)(Object.assign({},M,D)),W=B===V.popper?F:R,U={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},K=c.modifiersData.offset;if(B===V.popper&&K){var H=K[s];Object.keys(U).forEach(function(X){var Y=[V.right,V.bottom].indexOf(X)>=0?1:-1,J=[V.top,V.bottom].indexOf(X)>=0?"y":"x";U[X]+=H[J]*Y})}return U}},54824:function(w,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(w,r){"use strict";r.__esModule=!0,r.default=n;function n(e){return e==="x"?"y":"x"}},38141:function(w,r,n){"use strict";r.__esModule=!0,r.default=a;var e=n(41521);function a(t){return t.split("-")[0]}},92385:function(w,r){"use strict";r.__esModule=!0,r.default=n;function n(){return{top:0,right:0,bottom:0,left:0}}},7770:function(w,r){"use strict";r.__esModule=!0,r.default=n;function n(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}},79641:function(w,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(w,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(w,r){"use strict";r.__esModule=!0,r.default=n;function n(e){return e.split("-")[1]}},69031:function(w,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(w,r){"use strict";r.__esModule=!0,r.default=n;function n(e){var a=e.reduce(function(t,o){var f=t[o.name];return t[o.name]=f?Object.assign({},f,o,{options:Object.assign({},f.options,o.options),data:Object.assign({},f.data,o.data)}):o,t},{});return Object.keys(a).map(function(t){return a[t]})}},77631:function(w,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(w,r,n){"use strict";r.__esModule=!0,r.default=t;var e=n(41521);function a(o){var f=new Map,V=new Set,y=[];o.forEach(function(k){f.set(k.name,k)});function S(k){V.add(k.name);var v=[].concat(k.requires||[],k.requiresIfExists||[]);v.forEach(function(i){if(!V.has(i)){var c=f.get(i);c&&S(c)}}),y.push(k)}return o.forEach(function(k){V.has(k.name)||S(k)}),y}function t(o){var f=a(o);return e.modifierPhases.reduce(function(V,y){return V.concat(f.filter(function(S){return S.phase===y}))},[])}},31855:function(w,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(w,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(w,r,n){"use strict";r.__esModule=!0,r.within=a,r.withinMaxClamp=t;var e=n(69031);function a(o,f,V){return(0,e.max)(o,(0,e.min)(f,V))}function t(o,f,V){var y=a(o,f,V);return y>V?V:y}},63935:function(w,r){"use strict";r.__esModule=!0,r.Fragment=r.EMPTY_OBJ=r.Component=void 0,r._CI=Et,r._HI=te,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=U,r.createFragment=H,r.createPortal=ce,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=v,r.normalizeProps=X,r.options=void 0,r.render=Wt,r.rerender=Ut,r.version=void 0;var n=Array.isArray;function e(O){var _=typeof O;return _==="string"||_==="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 f(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,_){var z={};if(O)for(var $ in O)z[$]=O[$];if(_)for(var Z in _)z[Z]=_[Z];return z}function v(O,_){return o(_)?{data:O,event:_}:null}function i(O){return!y(O)&&typeof O=="object"}var c=r.EMPTY_OBJ={},m=r.Fragment="$F";function d(O){return O.substr(2).toLowerCase()}function u(O,_){O.appendChild(_)}function s(O,_,z){y(z)?u(O,_):O.insertBefore(_,z)}function l(O,_){return _?document.createElementNS("http://www.w3.org/2000/svg",O):document.createElement(O)}function p(O,_,z){O.replaceChild(_,z)}function C(O,_){O.removeChild(_)}function g(O){for(var _=0;_0,Se=y(de),Le=f(de)&&de[0]===j;Te||Se||Le?(z=z||_.slice(0,q),(Te||Le)&&(ne=J(ne)),(Se||Le)&&(ne.key=j+q),z.push(ne)):z&&z.push(ne),ne.flags|=65536}}z=z||_,z.length===0?$=1:$=8}else z=_,z.flags|=65536,_.flags&81920&&(z=J(_)),$=2;return O.children=z,O.childFlags=$,O}function te(O){return t(O)||e(O)?K(O,null):n(O)?H(O,0,null):O.flags&16384?J(O):O}var Q="http://www.w3.org/1999/xlink",ae="http://www.w3.org/XML/1998/namespace",ee={"xlink:actuate":Q,"xlink:arcrole":Q,"xlink:href":Q,"xlink:role":Q,"xlink:show":Q,"xlink:title":Q,"xlink:type":Q,"xml:base":ae,"xml:lang":ae,"xml:space":ae};function oe(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=oe(0),re=oe(null),ge=oe(!0);function Be(O,_){var z=_.$EV;return z||(z=_.$EV=oe(null)),z[O]||++ue[O]===1&&(re[O]=le(O)),z}function ve(O,_){var z=_.$EV;z&&z[O]&&(--ue[O]===0&&(document.removeEventListener(d(O),re[O]),re[O]=null),z[O]=null)}function Ve(O,_,z,$){if(o(z))Be(O,$)[O]=z;else if(i(z)){if(x(_,z))return;Be(O,$)[O]=z}else ve(O,$)}function ke(O){return o(O.composedPath)?O.composedPath()[0]:O.target}function ye(O,_,z,$){var Z=ke(O);do{if(_&&Z.disabled)return;var q=Z.$EV;if(q){var ne=q[z];if(ne&&($.dom=Z,ne.event?ne.event(ne.data,O):ne(O),O.cancelBubble))return}Z=Z.parentNode}while(!y(Z))}function Ie(){this.cancelBubble=!0,this.immediatePropagationStopped||this.stopImmediatePropagation()}function we(){return this.defaultPrevented}function xe(){return this.cancelBubble}function Oe(O){var _={dom:document};return O.isDefaultPrevented=we,O.isPropagationStopped=xe,O.stopPropagation=Ie,Object.defineProperty(O,"currentTarget",{configurable:!0,get:function(){function z(){return _.dom}return z}()}),_}function We(O){return function(_){if(_.button!==0){_.stopPropagation();return}ye(_,!0,O,Oe(_))}}function be(O){return function(_){ye(_,!1,O,Oe(_))}}function le(O){var _=O==="onClick"||O==="onDblClick"?We(O):be(O);return document.addEventListener(d(O),_),_}function se(O,_){var z=document.createElement("i");return z.innerHTML=_,z.innerHTML===O.innerHTML}function Ce(O,_,z){if(O[_]){var $=O[_];$.event?$.event($.data,z):$(z)}else{var Z=_.toLowerCase();O[Z]&&O[Z](z)}}function me(O,_){var z=function(Z){var q=this.$V;if(q){var ne=q.props||c,de=q.dom;if(f(O))Ce(ne,O,Z);else for(var Te=0;Te-1&&_.options[q]&&(de=_.options[q].value),z&&a(de)&&(de=O.defaultValue),Ge($,de)}}var Bt=me("onInput",pt),It=me("onChange");function Lt(O,_){Ne(O,"input",Bt),_.onChange&&Ne(O,"change",It)}function pt(O,_,z){var $=O.value,Z=_.value;if(a($)){if(z){var q=O.defaultValue;!a(q)&&q!==Z&&(_.defaultValue=q,_.value=q)}}else Z!==$&&(_.defaultValue=$,_.value=$)}function wt(O,_,z,$,Z,q){O&64?ze($,z):O&256?ft($,z,Z,_):O&128&&pt($,z,Z),q&&(z.$V=_)}function Gt(O,_,z){O&64?_e(_,z):O&256?St(_):O&128&&Lt(_,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,_,z){O&&(o(O)||O.current!==void 0)&&z.push(function(){!M(O,_)&&O.current!==void 0&&(O.current=_)})}function Xe(O,_){Qe(O),b(O,_)}function Qe(O){var _=O.flags,z=O.children,$;if(_&481){$=O.ref;var Z=O.props;lt($);var q=O.childFlags;if(!y(Z))for(var ne=Object.keys(Z),de=0,Te=ne.length;de0;ne&&(q=Tt(z),q&&Gt(_,$,z));for(var de in z)ht(de,null,z[de],$,Z,q,null);ne&&wt(_,O,$,z,!0,q)}function At(O,_,z){var $=te(O.render(_,O.state,z)),Z=z;return o(O.getChildContext)&&(Z=k(z,O.getChildContext())),O.$CX=Z,$}function Et(O,_,z,$,Z,q){var ne=new _(z,$),de=ne.$N=!!(_.getDerivedStateFromProps||ne.getSnapshotBeforeUpdate);if(ne.$SVG=Z,ne.$L=q,O.children=ne,ne.$BS=!1,ne.context=$,ne.props===c&&(ne.props=z),de)ne.state=I(ne,z,ne.state);else if(o(ne.componentWillMount)){ne.$BR=!0,ne.componentWillMount();var Te=ne.$PS;if(!y(Te)){var Se=ne.state;if(y(Se))ne.state=Te;else for(var Le in Te)Se[Le]=Te[Le];ne.$PS=null}ne.$BR=!1}return ne.$LI=At(ne,z,$),ne}function Ct(O,_){var z=O.props||c;return O.flags&32768?O.type.render(z,O.ref,_):O.type(z,_)}function Ke(O,_,z,$,Z,q){var ne=O.flags|=16384;ne&481?Pt(O,_,z,$,Z,q):ne&4?nn(O,_,z,$,Z,q):ne&8?(on(O,_,z,$,Z,q),Rt(O,q)):ne&512||ne&16?Mt(O,_,Z):ne&8192?tn(O,z,_,$,Z,q):ne&1024&&en(O,z,_,Z,q)}function en(O,_,z,$,Z){Ke(O.children,O.ref,_,!1,null,Z);var q=ie();Mt(q,z,$),O.dom=q.dom}function tn(O,_,z,$,Z,q){var ne=O.children,de=O.childFlags;de&12&&ne.length===0&&(de=O.childFlags=2,ne=O.children=ie()),de===2?Ke(ne,z,_,$,Z,q):nt(ne,z,_,$,Z,q)}function Mt(O,_,z){var $=O.dom=document.createTextNode(O.children);y(_)||s(_,$,z)}function Pt(O,_,z,$,Z,q){var ne=O.flags,de=O.props,Te=O.className,Se=O.childFlags,Le=O.dom=l(O.type,$=$||(ne&32)>0),Ee=O.children;if(!a(Te)&&Te!==""&&($?Le.setAttribute("class",Te):Le.className=Te),Se===16)A(Le,Ee);else if(Se!==1){var Pe=$&&O.type!=="foreignObject";Se===2?(Ee.flags&16384&&(O.children=Ee=J(Ee)),Ke(Ee,Le,z,Pe,null,q)):(Se===8||Se===4)&&nt(Ee,Le,z,Pe,null,q)}y(_)||s(_,Le,Z),y(de)||xt(O,ne,de,Le,$),ot(O.ref,Le,q)}function nt(O,_,z,$,Z,q){for(var ne=0;nePe)&&(Le=N(ne[Pe-1],!1).nextSibling)}vt(Te,Se,ne,de,z,$,Z,Le,O,q)}function sn(O,_,z,$){var Z=O.ref,q=_.ref,ne=_.children;if(vt(O.childFlags,_.childFlags,O.children,ne,Z,z,!1,null,O,$),_.dom=O.dom,Z!==q&&!t(ne)){var de=ne.dom;C(Z,de),u(q,de)}}function mn(O,_,z,$,Z,q){var ne=_.dom=O.dom,de=O.props,Te=_.props,Se=!1,Le=!1,Ee;if($=$||(Z&32)>0,de!==Te){var Pe=de||c;if(Ee=Te||c,Ee!==c){Se=(Z&448)>0,Se&&(Le=Tt(Ee));for(var Fe in Ee){var Me=Pe[Fe],He=Ee[Fe];Me!==He&&ht(Fe,Me,He,ne,$,Le,O)}}if(Pe!==c)for(var Re in Pe)a(Ee[Re])&&!a(Pe[Re])&&ht(Re,Pe[Re],null,ne,$,Le,O)}var et=_.children,Ye=_.className;O.className!==Ye&&(a(Ye)?ne.removeAttribute("class"):$?ne.setAttribute("class",Ye):ne.className=Ye),Z&4096?un(ne,et):vt(O.childFlags,_.childFlags,O.children,et,ne,z,$&&_.type!=="foreignObject",null,O,q),Se&&wt(Z,_,ne,Ee,!1,Le);var at=_.ref,Je=O.ref;Je!==at&&(lt(Je),ot(at,ne,q))}function fn(O,_,z,$,Z,q){Qe(O),nt(_,z,$,Z,N(O,!0),q),b(O,z)}function vt(O,_,z,$,Z,q,ne,de,Te,Se){switch(O){case 2:switch(_){case 2:Ze(z,$,Z,q,ne,de,Se);break;case 1:Xe(z,Z);break;case 16:Qe(z),A(Z,$);break;default:fn(z,$,Z,q,ne,Se);break}break;case 1:switch(_){case 2:Ke($,Z,q,ne,de,Se);break;case 1:break;case 16:A(Z,$);break;default:nt($,Z,q,ne,de,Se);break}break;case 16:switch(_){case 16:ln(z,$,Z);break;case 2:ut(Z),Ke($,Z,q,ne,de,Se);break;case 1:ut(Z);break;default:ut(Z),nt($,Z,q,ne,de,Se);break}break;default:switch(_){case 16:rt(z),A(Z,$);break;case 2:dt(Z,Te,z),Ke($,Z,q,ne,de,Se);break;case 1:dt(Z,Te,z);break;default:var Le=z.length|0,Ee=$.length|0;Le===0?Ee>0&&nt($,Z,q,ne,de,Se):Ee===0?dt(Z,Te,z):_===8&&O===8?Nn(z,$,Z,q,ne,Le,Ee,de,Te,Se):gn(z,$,Z,q,ne,Le,Ee,de,Se);break}break}}function pn(O,_,z,$,Z){Z.push(function(){O.componentDidUpdate(_,z,$)})}function Dt(O,_,z,$,Z,q,ne,de,Te){var Se=O.state,Le=O.props,Ee=!!O.$N,Pe=o(O.shouldComponentUpdate);if(Ee&&(_=I(O,z,_!==Se?k(Se,_):_)),ne||!Pe||Pe&&O.shouldComponentUpdate(z,_,Z)){!Ee&&o(O.componentWillUpdate)&&O.componentWillUpdate(z,_,Z),O.props=z,O.state=_,O.context=Z;var Fe=null,Me=At(O,z,Z);Ee&&o(O.getSnapshotBeforeUpdate)&&(Fe=O.getSnapshotBeforeUpdate(Le,Se)),Ze(O.$LI,Me,$,O.$CX,q,de,Te),O.$LI=Me,o(O.componentDidUpdate)&&pn(O,Le,Se,Fe,Te)}else O.props=z,O.state=_,O.context=Z}function hn(O,_,z,$,Z,q,ne){var de=_.children=O.children;if(!y(de)){de.$L=ne;var Te=_.props||c,Se=_.ref,Le=O.ref,Ee=de.state;if(!de.$N){if(o(de.componentWillReceiveProps)){if(de.$BR=!0,de.componentWillReceiveProps(Te,$),de.$UN)return;de.$BR=!1}y(de.$PS)||(Ee=k(Ee,de.$PS),de.$PS=null)}Dt(de,Ee,Te,z,$,Z,!1,q,ne),Le!==Se&&(lt(Le),ot(Se,de,ne))}}function Cn(O,_,z,$,Z,q,ne){var de=!0,Te=_.props||c,Se=_.ref,Le=O.props,Ee=!a(Se),Pe=O.children;if(Ee&&o(Se.onComponentShouldUpdate)&&(de=Se.onComponentShouldUpdate(Le,Te)),de!==!1){Ee&&o(Se.onComponentWillUpdate)&&Se.onComponentWillUpdate(Le,Te);var Fe=te(Ct(_,$));Ze(Pe,Fe,z,$,Z,q,ne),_.children=Fe,Ee&&o(Se.onComponentDidUpdate)&&Se.onComponentDidUpdate(Le,Te)}else _.children=Pe}function vn(O,_){var z=_.children,$=_.dom=O.dom;z!==O.children&&($.nodeValue=z)}function gn(O,_,z,$,Z,q,ne,de,Te){for(var Se=q>ne?ne:q,Le=0,Ee,Pe;Lene)for(Le=Se;LeLe||Pe>Ee)break e;Fe=O[Pe],Me=_[Pe]}for(Fe=O[Le],Me=_[Ee];Fe.key===Me.key;){if(Me.flags&16384&&(_[Ee]=Me=J(Me)),Ze(Fe,Me,z,$,Z,de,Se),O[Le]=Me,Le--,Ee--,Pe>Le||Pe>Ee)break e;Fe=O[Le],Me=_[Ee]}}if(Pe>Le){if(Pe<=Ee)for(He=Ee+1,Re=HeEe)for(;Pe<=Le;)Xe(O[Pe++],z);else Vn(O,_,$,q,ne,Le,Ee,Pe,z,Z,de,Te,Se)}function Vn(O,_,z,$,Z,q,ne,de,Te,Se,Le,Ee,Pe){var Fe,Me,He,Re=0,et=de,Ye=de,at=q-de+1,Je=ne-de+1,ct=new Int32Array(Je+1),tt=at===$,Vt=!1,$e=0,it=0;if(Z<4||(at|Je)<32)for(Re=et;Re<=q;++Re)if(Fe=O[Re],itde?Vt=!0:$e=de,Me.flags&16384&&(_[de]=Me=J(Me)),Ze(Fe,Me,Te,z,Se,Le,Pe),++it;break}!tt&&de>ne&&Xe(Fe,Te)}else tt||Xe(Fe,Te);else{var Kt={};for(Re=Ye;Re<=ne;++Re)Kt[_[Re].key]=Re;for(Re=et;Re<=q;++Re)if(Fe=O[Re],itet;)Xe(O[et++],Te);ct[de-Ye]=Re+1,$e>de?Vt=!0:$e=de,Me=_[de],Me.flags&16384&&(_[de]=Me=J(Me)),Ze(Fe,Me,Te,z,Se,Le,Pe),++it}else tt||Xe(Fe,Te);else tt||Xe(Fe,Te)}if(tt)dt(Te,Ee,O),nt(_,Te,z,Se,Le,Pe);else if(Vt){var Ht=bn(ct);for(de=Ht.length-1,Re=Je-1;Re>=0;Re--)ct[Re]===0?($e=Re+Ye,Me=_[$e],Me.flags&16384&&(_[$e]=Me=J(Me)),He=$e+1,Ke(Me,Te,z,Se,He=0;Re--)ct[Re]===0&&($e=Re+Ye,Me=_[$e],Me.flags&16384&&(_[$e]=Me=J(Me)),He=$e+1,Ke(Me,Te,z,Se,Hejt&&(jt=Te,qe=new Int32Array(Te),st=new Int32Array(Te));z>1,O[qe[de]]<_?q=de+1:ne=de;_0&&(st[z]=qe[q-1]),qe[q]=z)}q=Z+1;var Se=new Int32Array(q);for(ne=qe[q-1];q-- >0;)Se[q]=ne,ne=st[ne],qe[q]=0;return Se}var yn=typeof document!="undefined";yn&&window.Node&&(Node.prototype.$EV=null,Node.prototype.$V=null);function Ft(O,_,z,$){var Z=[],q=_.$V;L.v=!0,a(q)?a(O)||(O.flags&16384&&(O=J(O)),Ke(O,_,$,!1,null,Z),_.$V=O,q=O):a(O)?(Xe(q,_),_.$V=null):(O.flags&16384&&(O=J(O)),Ze(q,O,_,$,!1,null,Z),q=_.$V=O),g(Z),L.v=!1,o(z)&&z(),o(T.renderComplete)&&T.renderComplete(q,_)}function Wt(O,_,z,$){z===void 0&&(z=null),$===void 0&&($=c),Ft(O,_,z,$)}function kn(O){return function(){function _(z,$,Z,q){O||(O=z),Wt($,O,Z,q)}return _}()}var mt=[],Sn=typeof Promise!="undefined"?Promise.resolve().then.bind(Promise.resolve()):function(O){window.setTimeout(O,0)},gt=!1;function _t(O,_,z,$){var Z=O.$PS;if(o(_)&&(_=_(Z?k(O.state,Z):O.state,O.props,O.context)),a(Z))O.$PS=_;else for(var q in _)Z[q]=_[q];if(O.$BR)o(z)&&O.$L.push(z.bind(O));else{if(!L.v&&mt.length===0){zt(O,$),o(z)&&z.call(O);return}if(mt.indexOf(O)===-1&&mt.push(O),$&&(O.$F=!0),gt||(gt=!0,Sn(Ut)),o(z)){var ne=O.$QU;ne||(ne=O.$QU=[]),ne.push(z)}}}function Bn(O){for(var _=O.$QU,z=0;z<_.length;++z)_[z].call(O);O.$QU=null}function Ut(){var O;for(gt=!1;O=mt.shift();)if(!O.$UN){var _=O.$F;O.$F=!1,zt(O,_),O.$QU&&Bn(O)}}function zt(O,_){if(_||!O.$BR){var z=O.$PS;O.$PS=null;var $=[];L.v=!0,Dt(O,k(O.state,z),O.props,N(O.$LI,!0).parentNode,O.context,O.$SVG,_,null,$),g($),L.v=!1}else O.state=O.$PS,O.$PS=null}var Nt=r.Component=function(){function O(_,z){this.state=null,this.$BR=!1,this.$BS=!0,this.$PS=null,this.$LI=null,this.$UN=!1,this.$CX=null,this.$QU=null,this.$N=!1,this.$L=null,this.$SVG=!1,this.$F=!1,this.props=_||c,this.context=z||c}return O}();Nt.prototype.forceUpdate=function(){function O(_){this.$UN||_t(this,{},_,!0)}return O}(),Nt.prototype.setState=function(){function O(_,z){this.$UN||this.$BS||_t(this,_,z,!1)}return O}(),Nt.prototype.render=function(){function O(_,z,$){return null}return O}();var Ln=r.version="7.4.11"},96524:function(w,r,n){"use strict";r.__esModule=!0;var e=n(63935);Object.keys(e).forEach(function(a){a==="default"||a==="__esModule"||a in r&&r[a]===e[a]||(r[a]=e[a])})},92572:function(w,r){"use strict";r.__esModule=!0,r.VNodeFlags=r.ChildFlags=void 0;var n;(function(a){a[a.HtmlElement=1]="HtmlElement",a[a.ComponentUnknown=2]="ComponentUnknown",a[a.ComponentClass=4]="ComponentClass",a[a.ComponentFunction=8]="ComponentFunction",a[a.Text=16]="Text",a[a.SvgElement=32]="SvgElement",a[a.InputElement=64]="InputElement",a[a.TextareaElement=128]="TextareaElement",a[a.SelectElement=256]="SelectElement",a[a.Void=512]="Void",a[a.Portal=1024]="Portal",a[a.ReCreate=2048]="ReCreate",a[a.ContentEditable=4096]="ContentEditable",a[a.Fragment=8192]="Fragment",a[a.InUse=16384]="InUse",a[a.ForwardRef=32768]="ForwardRef",a[a.Normalized=65536]="Normalized",a[a.ForwardRefComponent=32776]="ForwardRefComponent",a[a.FormElement=448]="FormElement",a[a.Element=481]="Element",a[a.Component=14]="Component",a[a.DOMRef=2033]="DOMRef",a[a.InUseOrNormalized=81920]="InUseOrNormalized",a[a.ClearInUse=-16385]="ClearInUse",a[a.ComponentKnown=12]="ComponentKnown"})(n||(r.VNodeFlags=n={}));var e;(function(a){a[a.UnknownChildren=0]="UnknownChildren",a[a.HasInvalidChildren=1]="HasInvalidChildren",a[a.HasVNodeChildren=2]="HasVNodeChildren",a[a.HasNonKeyedChildren=4]="HasNonKeyedChildren",a[a.HasKeyedChildren=8]="HasKeyedChildren",a[a.HasTextChildren=16]="HasTextChildren",a[a.MultipleChildren=12]="MultipleChildren"})(e||(r.ChildFlags=e={}))},21599:function(w,r,n){"use strict";var e=n(58120);function a(){}function t(){}t.resetWarningCache=a,w.exports=function(){function o(y,S,k,v,i,c){if(c!==e){var m=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw m.name="Invariant Violation",m}}o.isRequired=o;function f(){return o}var V={array:o,bigint:o,bool:o,func:o,number:o,object:o,string:o,symbol:o,any:o,arrayOf:f,element:o,elementType:o,instanceOf:f,node:o,objectOf:f,oneOf:f,oneOfType:f,shape:f,exact:f,checkPropTypes:t,resetWarningCache:a};return V.PropTypes=V,V}},56099:function(w,r,n){"use strict";if(0)var e,a;else w.exports=n(21599)()},58120:function(w){"use strict";var r="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";w.exports=r},55776:function(w){"use strict";var r=function(n){"use strict";var e=Object.prototype,a=e.hasOwnProperty,t=Object.defineProperty||function(P,R,D){P[R]=D.value},o,f=typeof Symbol=="function"?Symbol:{},V=f.iterator||"@@iterator",y=f.asyncIterator||"@@asyncIterator",S=f.toStringTag||"@@toStringTag";function k(P,R,D){return Object.defineProperty(P,R,{value:D,enumerable:!0,configurable:!0,writable:!0}),P[R]}try{k({},"")}catch(P){k=function(D,F,W){return D[F]=W}}function v(P,R,D,F){var W=R&&R.prototype instanceof l?R:l,U=Object.create(W.prototype),K=new E(F||[]);return t(U,"_invoke",{value:L(P,D,K)}),U}n.wrap=v;function i(P,R,D){try{return{type:"normal",arg:P.call(R,D)}}catch(F){return{type:"throw",arg:F}}}var c="suspendedStart",m="suspendedYield",d="executing",u="completed",s={};function l(){}function p(){}function C(){}var g={};k(g,V,function(){return this});var h=Object.getPrototypeOf,N=h&&h(h(M([])));N&&N!==e&&a.call(N,V)&&(g=N);var b=C.prototype=l.prototype=Object.create(g);p.prototype=C,t(b,"constructor",{value:C,configurable:!0}),t(C,"constructor",{value:p,configurable:!0}),p.displayName=k(C,S,"GeneratorFunction");function B(P){["next","throw","return"].forEach(function(R){k(P,R,function(D){return this._invoke(R,D)})})}n.isGeneratorFunction=function(P){var R=typeof P=="function"&&P.constructor;return R?R===p||(R.displayName||R.name)==="GeneratorFunction":!1},n.mark=function(P){return Object.setPrototypeOf?Object.setPrototypeOf(P,C):(P.__proto__=C,k(P,S,"GeneratorFunction")),P.prototype=Object.create(b),P},n.awrap=function(P){return{__await:P}};function I(P,R){function D(U,K,H,X){var Y=i(P[U],P,K);if(Y.type==="throw")X(Y.arg);else{var J=Y.arg,ie=J.value;return ie&&typeof ie=="object"&&a.call(ie,"__await")?R.resolve(ie.__await).then(function(ce){D("next",ce,H,X)},function(ce){D("throw",ce,H,X)}):R.resolve(ie).then(function(ce){J.value=ce,H(J)},function(ce){return D("throw",ce,H,X)})}}var F;function W(U,K){function H(){return new R(function(X,Y){D(U,K,X,Y)})}return F=F?F.then(H,H):H()}t(this,"_invoke",{value:W})}B(I.prototype),k(I.prototype,y,function(){return this}),n.AsyncIterator=I,n.async=function(P,R,D,F,W){W===void 0&&(W=Promise);var U=new I(v(P,R,D,F),W);return n.isGeneratorFunction(R)?U:U.next().then(function(K){return K.done?K.value:U.next()})};function L(P,R,D){var F=c;return function(){function W(U,K){if(F===d)throw new Error("Generator is already running");if(F===u){if(U==="throw")throw K;return j()}for(D.method=U,D.arg=K;;){var H=D.delegate;if(H){var X=T(H,D);if(X){if(X===s)continue;return X}}if(D.method==="next")D.sent=D._sent=D.arg;else if(D.method==="throw"){if(F===c)throw F=u,D.arg;D.dispatchException(D.arg)}else D.method==="return"&&D.abrupt("return",D.arg);F=d;var Y=i(P,R,D);if(Y.type==="normal"){if(F=D.done?u:m,Y.arg===s)continue;return{value:Y.arg,done:D.done}}else Y.type==="throw"&&(F=u,D.method="throw",D.arg=Y.arg)}}return W}()}function T(P,R){var D=R.method,F=P.iterator[D];if(F===o)return R.delegate=null,D==="throw"&&P.iterator.return&&(R.method="return",R.arg=o,T(P,R),R.method==="throw")||D!=="return"&&(R.method="throw",R.arg=new TypeError("The iterator does not provide a '"+D+"' method")),s;var W=i(F,P.iterator,R.arg);if(W.type==="throw")return R.method="throw",R.arg=W.arg,R.delegate=null,s;var U=W.arg;if(!U)return R.method="throw",R.arg=new TypeError("iterator result is not an object"),R.delegate=null,s;if(U.done)R[P.resultName]=U.value,R.next=P.nextLoc,R.method!=="return"&&(R.method="next",R.arg=o);else return U;return R.delegate=null,s}B(b),k(b,S,"Generator"),k(b,V,function(){return this}),k(b,"toString",function(){return"[object Generator]"});function A(P){var R={tryLoc:P[0]};1 in P&&(R.catchLoc=P[1]),2 in P&&(R.finallyLoc=P[2],R.afterLoc=P[3]),this.tryEntries.push(R)}function x(P){var R=P.completion||{};R.type="normal",delete R.arg,P.completion=R}function E(P){this.tryEntries=[{tryLoc:"root"}],P.forEach(A,this),this.reset(!0)}n.keys=function(P){var R=Object(P),D=[];for(var F in R)D.push(F);return D.reverse(),function(){function W(){for(;D.length;){var U=D.pop();if(U in R)return W.value=U,W.done=!1,W}return W.done=!0,W}return W}()};function M(P){if(P!=null){var R=P[V];if(R)return R.call(P);if(typeof P.next=="function")return P;if(!isNaN(P.length)){var D=-1,F=function(){function W(){for(;++D=0;--W){var U=this.tryEntries[W],K=U.completion;if(U.tryLoc==="root")return F("end");if(U.tryLoc<=this.prev){var H=a.call(U,"catchLoc"),X=a.call(U,"finallyLoc");if(H&&X){if(this.prev=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 U=W.arg;x(F)}return U}}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}(w.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(w,r){return r=r||{},new Promise(function(n,e){var a=new XMLHttpRequest,t=[],o={},f=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",w,!0),a.onload=function(){a.getAllResponseHeaders().toLowerCase().replace(/^(.+?):/gm,function(y,S){o[S]||t.push(o[S]=S)}),n(f())},a.onerror=e,a.withCredentials=r.credentials=="include",r.headers)a.setRequestHeader(V,r.headers[V]);a.send(r.body||null)})})},50640:function(w,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(l,p){var C=typeof Symbol!="undefined"&&l[Symbol.iterator]||l["@@iterator"];if(C)return(C=C.call(l)).next.bind(C);if(Array.isArray(l)||(C=e(l))||p&&l&&typeof l.length=="number"){C&&(l=C);var g=0;return function(){return g>=l.length?{done:!0}:{done:!1,value:l[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(l,p){if(l){if(typeof l=="string")return a(l,p);var C=Object.prototype.toString.call(l).slice(8,-1);if(C==="Object"&&l.constructor&&(C=l.constructor.name),C==="Map"||C==="Set")return Array.from(l);if(C==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(C))return a(l,p)}}function a(l,p){(p==null||p>l.length)&&(p=l.length);for(var C=0,g=new Array(p);CI)return 1}return 0},k=r.sortBy=function(){function i(){for(var p=arguments.length,v=new Array(p),g=0;gI)return 1}return 0},k=r.sortBy=function(){function l(){for(var p=arguments.length,C=new Array(p),g=0;g1?V-1:0),S=1;S1?V-1:0),S=1;S1?S-1:0),C=1;C1?k-1:0),u=1;u1?S-1:0),v=1;v1?k-1:0),i=1;iu?u: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,C,u){return(k-C)/(u-C)}return S}(),t=r.round=function(){function S(k,C){if(!k||isNaN(k))return k;var u,c,m,d;return C|=0,u=Math.pow(10,C),k*=u,d=+(k>0)|-(k<0),m=Math.abs(k%1)>=.4999999999854481,c=Math.floor(k),m&&(k=c+(d>0)),(m?k:Math.round(k))/u}return S}(),o=r.toFixed=function(){function S(k,C){return C===void 0&&(C=0),Number(k).toFixed(Math.max(C,0))}return S}(),f=r.inRange=function(){function S(k,C){return C&&k>=C[0]&&k<=C[1]}return S}(),V=r.keyOfMatchingRange=function(){function S(k,C){for(var u=0,c=Object.keys(C);ui?i: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,v,i){return(k-v)/(i-v)}return S}(),t=r.round=function(){function S(k,v){if(!k||isNaN(k))return k;var i,c,m,d;return v|=0,i=Math.pow(10,v),k*=i,d=+(k>0)|-(k<0),m=Math.abs(k%1)>=.4999999999854481,c=Math.floor(k),m&&(k=c+(d>0)),(m?k:Math.round(k))/i}return S}(),o=r.toFixed=function(){function S(k,v){return v===void 0&&(v=0),Number(k).toFixed(Math.max(v,0))}return S}(),f=r.inRange=function(){function S(k,v){return v&&k>=v[0]&&k<=v[1]}return S}(),V=r.keyOfMatchingRange=function(){function S(k,v){for(var i=0,c=Object.keys(v);i1?d-1:0),s=1;s1?b-1:0),I=1;I=0;--oe){var ue=this.tryEntries[oe],re=ue.completion;if(ue.tryLoc==="root")return ee("end");if(ue.tryLoc<=this.prev){var ge=g.call(ue,"catchLoc"),Be=g.call(ue,"finallyLoc");if(ge&&Be){if(this.prev=0;--ee){var oe=this.tryEntries[ee];if(oe.tryLoc<=this.prev&&g.call(oe,"finallyLoc")&&this.prev=0;--ae){var ee=this.tryEntries[ae];if(ee.finallyLoc===Q)return this.complete(ee.completion,ee.afterLoc),fe(ee),P}}return te}(),catch:function(){function te(Q){for(var ae=this.tryEntries.length-1;ae>=0;--ae){var ee=this.tryEntries[ae];if(ee.tryLoc===Q){var oe=ee.completion;if(oe.type==="throw"){var ue=oe.arg;fe(ee)}return ue}}throw Error("illegal catch attempt")}return te}(),delegateYield:function(){function te(Q,ae,ee){return this.delegate={iterator:he(Q),resultName:ae,nextLoc:ee},this.method==="next"&&(this.arg=i),P}return te}()},p}function e(i,p,v,g,h,N,b){try{var B=i[N](b),I=B.value}catch(L){v(L);return}B.done?p(I):Promise.resolve(I).then(g,h)}function a(i){return function(){var p=this,v=arguments;return new Promise(function(g,h){var N=i.apply(p,v);function b(I){e(N,g,h,b,B,"next",I)}function B(I){e(N,g,h,b,B,"throw",I)}b(void 0)})}}/** + */var a=r.createStore=function(){function S(k,v){if(v)return v(S)(k);var i,c=[],m=function(){function s(){return i}return s}(),d=function(){function s(l){c.push(l)}return s}(),u=function(){function s(l){i=k(i,l);for(var p=0;p1?d-1:0),s=1;s1?b-1:0),I=1;I=0;--oe){var ue=this.tryEntries[oe],re=ue.completion;if(ue.tryLoc==="root")return ee("end");if(ue.tryLoc<=this.prev){var ge=g.call(ue,"catchLoc"),Be=g.call(ue,"finallyLoc");if(ge&&Be){if(this.prev=0;--ee){var oe=this.tryEntries[ee];if(oe.tryLoc<=this.prev&&g.call(oe,"finallyLoc")&&this.prev=0;--ae){var ee=this.tryEntries[ae];if(ee.finallyLoc===Q)return this.complete(ee.completion,ee.afterLoc),fe(ee),P}}return te}(),catch:function(){function te(Q){for(var ae=this.tryEntries.length-1;ae>=0;--ae){var ee=this.tryEntries[ae];if(ee.tryLoc===Q){var oe=ee.completion;if(oe.type==="throw"){var ue=oe.arg;fe(ee)}return ue}}throw Error("illegal catch attempt")}return te}(),delegateYield:function(){function te(Q,ae,ee){return this.delegate={iterator:he(Q),resultName:ae,nextLoc:ee},this.method==="next"&&(this.arg=l),P}return te}()},p}function e(l,p,C,g,h,N,b){try{var B=l[N](b),I=B.value}catch(L){C(L);return}B.done?p(I):Promise.resolve(I).then(g,h)}function a(l){return function(){var p=this,C=arguments;return new Promise(function(g,h){var N=l.apply(p,C);function b(I){e(N,g,h,b,B,"next",I)}function B(I){e(N,g,h,b,B,"throw",I)}b(void 0)})}}/** * Browser-agnostic abstraction of key-value web storage. * * @file * @copyright 2020 Aleksej Komarov * @license MIT - */var t=r.IMPL_HUB_STORAGE=0,o=r.IMPL_INDEXED_DB=1,f=1,V="para-tgui",y="storage-v1",S="readonly",k="readwrite",C=function(p){return function(){try{return!!p()}catch(v){return!1}}},u=C(function(){return window.hubStorage&&window.hubStorage.getItem}),c=C(function(){return(window.indexedDB||window.msIndexedDB)&&(window.IDBTransaction||window.msIDBTransaction)}),m=function(){function i(){this.impl=t}var p=i.prototype;return p.get=function(){function v(g){var h=window.hubStorage.getItem("paradise-"+g);if(typeof h=="string")return JSON.parse(h)}return v}(),p.set=function(){function v(g,h){window.hubStorage.setItem("paradise-"+g,JSON.stringify(h))}return v}(),p.remove=function(){function v(g){window.hubStorage.removeItem("paradise-"+g)}return v}(),p.clear=function(){function v(){window.hubStorage.clear()}return v}(),i}(),d=function(){function i(){this.impl=o,this.dbPromise=new Promise(function(v,g){var h=window.indexedDB||window.msIndexedDB,N=h.open(V,f);N.onupgradeneeded=function(){try{N.result.createObjectStore(y)}catch(b){g(new Error("Failed to upgrade IDB: "+N.error))}},N.onsuccess=function(){return v(N.result)},N.onerror=function(){g(new Error("Failed to open IDB: "+N.error))}})}var p=i.prototype;return p.getStore=function(){function v(g){return this.dbPromise.then(function(h){return h.transaction(y,g).objectStore(y)})}return v}(),p.get=function(){var v=a(n().mark(function(){function h(N){var b;return n().wrap(function(){function B(I){for(;;)switch(I.prev=I.next){case 0:return I.next=2,this.getStore(S);case 2:return b=I.sent,I.abrupt("return",new Promise(function(L,T){var A=b.get(N);A.onsuccess=function(){return L(A.result)},A.onerror=function(){return T(A.error)}}));case 4:case"end":return I.stop()}}return B}(),h,this)}return h}()));function g(h){return v.apply(this,arguments)}return g}(),p.set=function(){var v=a(n().mark(function(){function h(N,b){var B;return n().wrap(function(){function I(L){for(;;)switch(L.prev=L.next){case 0:return b===null&&(b=void 0),L.next=3,this.getStore(k);case 3:B=L.sent,B.put(b,N);case 5:case"end":return L.stop()}}return I}(),h,this)}return h}()));function g(h,N){return v.apply(this,arguments)}return g}(),p.remove=function(){var v=a(n().mark(function(){function h(N){var b;return n().wrap(function(){function B(I){for(;;)switch(I.prev=I.next){case 0:return I.next=2,this.getStore(k);case 2:b=I.sent,b.delete(N);case 4:case"end":return I.stop()}}return B}(),h,this)}return h}()));function g(h){return v.apply(this,arguments)}return g}(),p.clear=function(){var v=a(n().mark(function(){function h(){var N;return n().wrap(function(){function b(B){for(;;)switch(B.prev=B.next){case 0:return B.next=2,this.getStore(k);case 2:N=B.sent,N.clear();case 4:case"end":return B.stop()}}return b}(),h,this)}return h}()));function g(){return v.apply(this,arguments)}return g}(),i}(),l=function(){function i(){this.backendPromise=a(n().mark(function(){function v(){var g;return n().wrap(function(){function h(N){for(;;)switch(N.prev=N.next){case 0:if(!Byond.TRIDENT){N.next=13;break}if(!c()){N.next=11;break}return N.prev=2,g=new d,N.next=6,g.dbPromise;case 6:return N.abrupt("return",g);case 9:N.prev=9,N.t0=N.catch(2);case 11:N.next=15;break;case 13:if(!u()){N.next=15;break}return N.abrupt("return",new m);case 15:case"end":return N.stop()}}return h}(),v,null,[[2,9]])}return v}()))()}var p=i.prototype;return p.get=function(){var v=a(n().mark(function(){function h(N){var b;return n().wrap(function(){function B(I){for(;;)switch(I.prev=I.next){case 0:return I.next=2,this.backendPromise;case 2:return b=I.sent,I.abrupt("return",b.get(N));case 4:case"end":return I.stop()}}return B}(),h,this)}return h}()));function g(h){return v.apply(this,arguments)}return g}(),p.set=function(){var v=a(n().mark(function(){function h(N,b){var B;return n().wrap(function(){function I(L){for(;;)switch(L.prev=L.next){case 0:return L.next=2,this.backendPromise;case 2:return B=L.sent,L.abrupt("return",B.set(N,b));case 4:case"end":return L.stop()}}return I}(),h,this)}return h}()));function g(h,N){return v.apply(this,arguments)}return g}(),p.remove=function(){var v=a(n().mark(function(){function h(N){var b;return n().wrap(function(){function B(I){for(;;)switch(I.prev=I.next){case 0:return I.next=2,this.backendPromise;case 2:return b=I.sent,I.abrupt("return",b.remove(N));case 4:case"end":return I.stop()}}return B}(),h,this)}return h}()));function g(h){return v.apply(this,arguments)}return g}(),p.clear=function(){var v=a(n().mark(function(){function h(){var N;return n().wrap(function(){function b(B){for(;;)switch(B.prev=B.next){case 0:return B.next=2,this.backendPromise;case 2:return N=B.sent,B.abrupt("return",N.clear());case 4:case"end":return B.stop()}}return b}(),h,this)}return h}()));function g(){return v.apply(this,arguments)}return g}(),i}(),s=r.storage=new l},78234:function(w,r){"use strict";r.__esModule=!0,r.toTitleCase=r.multiline=r.decodeHtmlEntities=r.createSearch=r.createGlobPattern=r.capitalize=r.buildQueryString=void 0;function n(C,u){var c=typeof Symbol!="undefined"&&C[Symbol.iterator]||C["@@iterator"];if(c)return(c=c.call(C)).next.bind(c);if(Array.isArray(C)||(c=e(C))||u&&C&&typeof C.length=="number"){c&&(C=c);var m=0;return function(){return m>=C.length?{done:!0}:{done:!1,value:C[m++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function e(C,u){if(C){if(typeof C=="string")return a(C,u);var c=Object.prototype.toString.call(C).slice(8,-1);if(c==="Object"&&C.constructor&&(c=C.constructor.name),c==="Map"||c==="Set")return Array.from(C);if(c==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(c))return a(C,u)}}function a(C,u){(u==null||u>C.length)&&(u=C.length);for(var c=0,m=new Array(u);c=v.length?{done:!0}:{done:!1,value:v[m++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function e(v,i){if(v){if(typeof v=="string")return a(v,i);var c=Object.prototype.toString.call(v).slice(8,-1);if(c==="Object"&&v.constructor&&(c=v.constructor.name),c==="Map"||c==="Set")return Array.from(v);if(c==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(c))return a(v,i)}}function a(v,i){(i==null||i>v.length)&&(i=v.length);for(var c=0,m=new Array(i);c",apos:"'"};return u.replace(/
/gi,"\n").replace(/<\/?[a-z0-9-_]+[^>]*>/gi,"").replace(c,function(d,l){return m[l]}).replace(/&#?([0-9]+);/gi,function(d,l){var s=parseInt(l,10);return String.fromCharCode(s)}).replace(/&#x?([0-9a-f]+);/gi,function(d,l){var s=parseInt(l,16);return String.fromCharCode(s)})}return C}(),k=r.buildQueryString=function(){function C(u){return Object.keys(u).map(function(c){return encodeURIComponent(c)+"="+encodeURIComponent(u[c])}).join("&")}return C}()},56052:function(w,r){"use strict";r.__esModule=!0,r.throttle=r.sleep=r.debounce=void 0;/** + */var t=r.multiline=function(){function v(i){if(Array.isArray(i))return v(i.join(""));for(var c=i.split("\n"),m,d=n(c),u;!(u=d()).done;)for(var s=u.value,l=0;l",apos:"'"};return i.replace(/
/gi,"\n").replace(/<\/?[a-z0-9-_]+[^>]*>/gi,"").replace(c,function(d,u){return m[u]}).replace(/&#?([0-9]+);/gi,function(d,u){var s=parseInt(u,10);return String.fromCharCode(s)}).replace(/&#x?([0-9a-f]+);/gi,function(d,u){var s=parseInt(u,16);return String.fromCharCode(s)})}return v}(),k=r.buildQueryString=function(){function v(i){return Object.keys(i).map(function(c){return encodeURIComponent(c)+"="+encodeURIComponent(i[c])}).join("&")}return v}()},56052:function(w,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,f,V){V===void 0&&(V=!1);var y;return function(){for(var S=arguments.length,k=new Array(S),C=0;C=f)o.apply(null,C),V=c;else{var m;y=setTimeout(function(){return S.apply(void 0,C)},f-(c-((m=V)!=null?m:0)))}}return S}()}return t}()},73564:function(w,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,f,V){V===void 0&&(V=!1);var y;return function(){for(var S=arguments.length,k=new Array(S),v=0;v=f)o.apply(null,v),V=c;else{var m;y=setTimeout(function(){return S.apply(void 0,v)},f-(c-((m=V)!=null?m:0)))}}return S}()}return t}()},73564:function(w,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(l,s){return l+s},t=function(l,s){return l-s},o=function(l,s){return l*s},f=function(l,s){return l/s},V=r.vecAdd=function(){function d(){for(var l=arguments.length,s=new Array(l),i=0;i=0)&&(k[u]=y[u]);return k}var V=r.BlockQuote=function(){function y(S){var k=S.className,C=f(S,o);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,t.Box,Object.assign({className:(0,a.classes)(["BlockQuote",k])},C)))}return y}()},3051:function(w,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),f=["as","className","children"];/** + */function f(y,S){if(y==null)return{};var k={},v=Object.keys(y),i,c;for(c=0;c=0)&&(k[i]=y[i]);return k}var V=r.BlockQuote=function(){function y(S){var k=S.className,v=f(S,o);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,t.Box,Object.assign({className:(0,a.classes)(["BlockQuote",k])},v)))}return y}()},3051:function(w,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),f=["as","className","children"];/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */function V(g,h){if(g==null)return{};var N={},b=Object.keys(g),B,I;for(I=0;I=0)&&(N[B]=g[B]);return N}var y=r.unit=function(){function g(h){if(typeof h=="string")return h.endsWith("px")?parseFloat(h)/12+"rem":h;if(typeof h=="number")return h+"rem"}return g}(),S=r.halfUnit=function(){function g(h){if(typeof h=="string")return y(h);if(typeof h=="number")return y(h*.5)}return g}(),k=function(h){return!C(h)},C=function(h){if(typeof h=="string")return o.CSS_COLORS.includes(h)},u=function(h){return function(N,b){(typeof b=="number"||typeof b=="string")&&(N[h]=b)}},c=function(h,N){return function(b,B){(typeof B=="number"||typeof B=="string")&&(b[h]=N(B))}},m=function(h,N){return function(b,B){B&&(b[h]=N)}},d=function(h,N,b){return function(B,I){if(typeof I=="number"||typeof I=="string")for(var L=0;L0&&(N.style=x),N}return g}(),p=r.computeBoxClassName=function(){function g(h){var N=h.textColor||h.color,b=h.backgroundColor;return(0,e.classes)([C(N)&&"color-"+N,C(b)&&"color-bg-"+b])}return g}(),v=r.Box=function(){function g(h){var N=h.as,b=N===void 0?"div":N,B=h.className,I=h.children,L=V(h,f);if(typeof I=="function")return I(i(h));var T=typeof B=="string"?B+" "+p(L):p(L),A=i(L);return(0,a.createVNode)(t.VNodeFlags.HtmlElement,b,T,I,t.ChildFlags.UnknownChildren,A)}return g}();v.defaultHooks=e.pureComponentHooks},91688:function(w,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),f=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"],C=["confirmContent","confirmColor","confirmIcon","icon","color","content","onClick"],u=["fluid","content","icon","iconRotation","iconSpin","tooltip","tooltipPosition","color","disabled","placeholder","maxLength","multiLine"];/** + */function V(g,h){if(g==null)return{};var N={},b=Object.keys(g),B,I;for(I=0;I=0)&&(N[B]=g[B]);return N}var y=r.unit=function(){function g(h){if(typeof h=="string")return h.endsWith("px")?parseFloat(h)/12+"rem":h;if(typeof h=="number")return h+"rem"}return g}(),S=r.halfUnit=function(){function g(h){if(typeof h=="string")return y(h);if(typeof h=="number")return y(h*.5)}return g}(),k=function(h){return!v(h)},v=function(h){if(typeof h=="string")return o.CSS_COLORS.includes(h)},i=function(h){return function(N,b){(typeof b=="number"||typeof b=="string")&&(N[h]=b)}},c=function(h,N){return function(b,B){(typeof B=="number"||typeof B=="string")&&(b[h]=N(B))}},m=function(h,N){return function(b,B){B&&(b[h]=N)}},d=function(h,N,b){return function(B,I){if(typeof I=="number"||typeof I=="string")for(var L=0;L0&&(N.style=x),N}return g}(),p=r.computeBoxClassName=function(){function g(h){var N=h.textColor||h.color,b=h.backgroundColor;return(0,e.classes)([v(N)&&"color-"+N,v(b)&&"color-bg-"+b])}return g}(),C=r.Box=function(){function g(h){var N=h.as,b=N===void 0?"div":N,B=h.className,I=h.children,L=V(h,f);if(typeof I=="function")return I(l(h));var T=typeof B=="string"?B+" "+p(L):p(L),A=l(L);return(0,a.createVNode)(t.VNodeFlags.HtmlElement,b,T,I,t.ChildFlags.UnknownChildren,A)}return g}();C.defaultHooks=e.pureComponentHooks},91688:function(w,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),f=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"],v=["confirmContent","confirmColor","confirmIcon","icon","color","content","onClick"],i=["fluid","content","icon","iconRotation","iconSpin","tooltip","tooltipPosition","color","disabled","placeholder","maxLength","multiLine"];/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */function c(g,h){g.prototype=Object.create(h.prototype),g.prototype.constructor=g,m(g,h)}function m(g,h){return m=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function N(b,B){return b.__proto__=B,b}return N}(),m(g,h)}function d(g,h){if(g==null)return{};var N={},b=Object.keys(g),B,I;for(I=0;I=0)&&(N[B]=g[B]);return N}var l=(0,o.createLogger)("Button"),s=r.Button=function(){function g(h){var N=h.className,b=h.fluid,B=h.icon,I=h.iconRotation,L=h.iconSpin,T=h.color,A=h.textColor,x=h.disabled,E=h.selected,M=h.tooltip,j=h.tooltipPosition,P=h.ellipsis,R=h.compact,D=h.circular,F=h.content,W=h.iconColor,_=h.iconRight,K=h.iconStyle,H=h.children,X=h.onclick,Y=h.onClick,J=h.multiLine,le=d(h,S),ce=!!(F||H);X&&l.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"),le.onClick=function(pe){!x&&Y&&Y(pe)};var fe=(0,e.normalizeProps)((0,e.createComponentVNode)(2,f.Box,Object.assign({className:(0,a.classes)(["Button",b&&"Button--fluid",x&&"Button--disabled",E&&"Button--selected",ce&&"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",N]),tabIndex:!x&&"0",color:A,onKeyDown:function(){function pe(he){var te=window.event?he.which:he.keyCode;if(te===t.KEY_SPACE||te===t.KEY_ENTER){he.preventDefault(),!x&&Y&&Y(he);return}if(te===t.KEY_ESCAPE){he.preventDefault();return}}return pe}()},le,{children:[B&&!_&&(0,e.createComponentVNode)(2,V.Icon,{name:B,color:W,rotation:I,spin:L,style:K}),F,H,B&&_&&(0,e.createComponentVNode)(2,V.Icon,{name:B,color:W,rotation:I,spin:L,style:K})]})));return M&&(fe=(0,e.createComponentVNode)(2,y.Tooltip,{content:M,position:j,children:fe})),fe}return g}();s.defaultHooks=a.pureComponentHooks;var i=r.ButtonCheckbox=function(){function g(h){var N=h.checked,b=d(h,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=i;var p=r.ButtonConfirm=function(g){function h(){var b;return b=g.call(this)||this,b.state={clickedOnce:!1},b.handleClick=function(){b.state.clickedOnce&&b.setClickedOnce(!1)},b}c(h,g);var N=h.prototype;return N.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}(),N.render=function(){function b(){var B=this,I=this.props,L=I.confirmContent,T=L===void 0?"Confirm?":L,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=d(I,C);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}(),h}(e.Component);s.Confirm=p;var v=r.ButtonInput=function(g){function h(){var b;return b=g.call(this)||this,b.inputRef=(0,e.createRef)(),b.state={inInput:!1},b}c(h,g);var N=h.prototype;return N.setInInput=function(){function b(B){var I=this.props.disabled;if(!I&&(this.setState({inInput:B}),this.inputRef)){var L=this.inputRef.current;if(B){L.value=this.props.currentValue||"";try{L.focus(),L.select()}catch(T){}}}}return b}(),N.commitResult=function(){function b(B){if(this.inputRef){var I=this.inputRef.current,L=I.value!=="";if(L){this.props.onCommit(B,I.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,I=this.props,L=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,K=d(I,u),H=(0,e.normalizeProps)((0,e.createComponentVNode)(2,f.Box,Object.assign({className:(0,a.classes)(["Button",L&&"Button--fluid",D&&"Button--disabled","Button--color--"+R,_+"Button--multiLine"])},K,{onClick:function(){function X(){return B.setInInput(!0)}return X}(),children:[A&&(0,e.createComponentVNode)(2,V.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(Y){B.state.inInput&&(B.setInInput(!1),B.commitResult(Y))}return X}(),onKeyDown:function(){function X(Y){if(Y.keyCode===t.KEY_ENTER){B.setInInput(!1),B.commitResult(Y);return}Y.keyCode===t.KEY_ESCAPE&&B.setInInput(!1)}return X}()},null,this.inputRef)]})));return M&&(H=(0,e.createComponentVNode)(2,y.Tooltip,{content:M,position:j,children:H})),H}return b}(),h}(e.Component);s.Input=v},42204:function(w,r,n){"use strict";r.__esModule=!0,r.ByondUi=void 0;var e=n(96524),a=n(28234),t=n(56052),o=n(81856),f=n(3051),V=["params"],y=["params"],S=["parent","params"];function k(p,v){if(p==null)return{};var g={},h=Object.keys(p),N,b;for(b=0;b=0)&&(g[N]=p[N]);return g}function C(p,v){p.prototype=Object.create(v.prototype),p.prototype.constructor=p,u(p,v)}function u(p,v){return u=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function g(h,N){return h.__proto__=N,h}return g}(),u(p,v)}/** + */function c(g,h){g.prototype=Object.create(h.prototype),g.prototype.constructor=g,m(g,h)}function m(g,h){return m=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function N(b,B){return b.__proto__=B,b}return N}(),m(g,h)}function d(g,h){if(g==null)return{};var N={},b=Object.keys(g),B,I;for(I=0;I=0)&&(N[B]=g[B]);return N}var u=(0,o.createLogger)("Button"),s=r.Button=function(){function g(h){var N=h.className,b=h.fluid,B=h.icon,I=h.iconRotation,L=h.iconSpin,T=h.color,A=h.textColor,x=h.disabled,E=h.selected,M=h.tooltip,j=h.tooltipPosition,P=h.ellipsis,R=h.compact,D=h.circular,F=h.content,W=h.iconColor,U=h.iconRight,K=h.iconStyle,H=h.children,X=h.onclick,Y=h.onClick,J=h.multiLine,ie=d(h,S),ce=!!(F||H);X&&u.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"),ie.onClick=function(pe){!x&&Y&&Y(pe)};var fe=(0,e.normalizeProps)((0,e.createComponentVNode)(2,f.Box,Object.assign({className:(0,a.classes)(["Button",b&&"Button--fluid",x&&"Button--disabled",E&&"Button--selected",ce&&"Button--hasContent",P&&"Button--ellipsis",D&&"Button--circular",R&&"Button--compact",U&&"Button--iconRight",J&&"Button--multiLine",T&&typeof T=="string"?"Button--color--"+T:"Button--color--default",N]),tabIndex:!x&&"0",color:A,onKeyDown:function(){function pe(he){var te=window.event?he.which:he.keyCode;if(te===t.KEY_SPACE||te===t.KEY_ENTER){he.preventDefault(),!x&&Y&&Y(he);return}if(te===t.KEY_ESCAPE){he.preventDefault();return}}return pe}()},ie,{children:[B&&!U&&(0,e.createComponentVNode)(2,V.Icon,{name:B,color:W,rotation:I,spin:L,style:K}),F,H,B&&U&&(0,e.createComponentVNode)(2,V.Icon,{name:B,color:W,rotation:I,spin:L,style:K})]})));return M&&(fe=(0,e.createComponentVNode)(2,y.Tooltip,{content:M,position:j,children:fe})),fe}return g}();s.defaultHooks=a.pureComponentHooks;var l=r.ButtonCheckbox=function(){function g(h){var N=h.checked,b=d(h,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=l;var p=r.ButtonConfirm=function(g){function h(){var b;return b=g.call(this)||this,b.state={clickedOnce:!1},b.handleClick=function(){b.state.clickedOnce&&b.setClickedOnce(!1)},b}c(h,g);var N=h.prototype;return N.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}(),N.render=function(){function b(){var B=this,I=this.props,L=I.confirmContent,T=L===void 0?"Confirm?":L,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=d(I,v);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}(),h}(e.Component);s.Confirm=p;var C=r.ButtonInput=function(g){function h(){var b;return b=g.call(this)||this,b.inputRef=(0,e.createRef)(),b.state={inInput:!1},b}c(h,g);var N=h.prototype;return N.setInInput=function(){function b(B){var I=this.props.disabled;if(!I&&(this.setState({inInput:B}),this.inputRef)){var L=this.inputRef.current;if(B){L.value=this.props.currentValue||"";try{L.focus(),L.select()}catch(T){}}}}return b}(),N.commitResult=function(){function b(B){if(this.inputRef){var I=this.inputRef.current,L=I.value!=="";if(L){this.props.onCommit(B,I.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,I=this.props,L=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,U=I.multiLine,K=d(I,i),H=(0,e.normalizeProps)((0,e.createComponentVNode)(2,f.Box,Object.assign({className:(0,a.classes)(["Button",L&&"Button--fluid",D&&"Button--disabled","Button--color--"+R,U+"Button--multiLine"])},K,{onClick:function(){function X(){return B.setInInput(!0)}return X}(),children:[A&&(0,e.createComponentVNode)(2,V.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(Y){B.state.inInput&&(B.setInInput(!1),B.commitResult(Y))}return X}(),onKeyDown:function(){function X(Y){if(Y.keyCode===t.KEY_ENTER){B.setInInput(!1),B.commitResult(Y);return}Y.keyCode===t.KEY_ESCAPE&&B.setInInput(!1)}return X}()},null,this.inputRef)]})));return M&&(H=(0,e.createComponentVNode)(2,y.Tooltip,{content:M,position:j,children:H})),H}return b}(),h}(e.Component);s.Input=C},42204:function(w,r,n){"use strict";r.__esModule=!0,r.ByondUi=void 0;var e=n(96524),a=n(28234),t=n(56052),o=n(81856),f=n(3051),V=["params"],y=["params"],S=["parent","params"];function k(p,C){if(p==null)return{};var g={},h=Object.keys(p),N,b;for(b=0;b=0)&&(g[N]=p[N]);return g}function v(p,C){p.prototype=Object.create(C.prototype),p.prototype.constructor=p,i(p,C)}function i(p,C){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function g(h,N){return h.__proto__=N,h}return g}(),i(p,C)}/** * @file * @copyright 2020 Aleksej Komarov * @license MIT -*/var c=(0,o.createLogger)("ByondUi"),m=[],d=function(v){var g=m.length;m.push(null);var h=v||"byondui_"+g;return c.log("allocated '"+h+"'"),{render:function(){function N(b){c.log("rendering '"+h+"'"),m[g]=h,Byond.winset(h,b)}return N}(),unmount:function(){function N(){c.log("unmounting '"+h+"'"),m[g]=null,Byond.winset(h,{parent:""})}return N}()}};window.addEventListener("beforeunload",function(){for(var p=0;p=0)&&(s[p]=d[p]);return s}function y(d,l){d.prototype=Object.create(l.prototype),d.prototype.constructor=d,S(d,l)}function S(d,l){return S=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function s(i,p){return i.__proto__=p,i}return s}(),S(d,l)}/** +*/var c=(0,o.createLogger)("ByondUi"),m=[],d=function(C){var g=m.length;m.push(null);var h=C||"byondui_"+g;return c.log("allocated '"+h+"'"),{render:function(){function N(b){c.log("rendering '"+h+"'"),m[g]=h,Byond.winset(h,b)}return N}(),unmount:function(){function N(){c.log("unmounting '"+h+"'"),m[g]=null,Byond.winset(h,{parent:""})}return N}()}};window.addEventListener("beforeunload",function(){for(var p=0;p=0)&&(s[p]=d[p]);return s}function y(d,u){d.prototype=Object.create(u.prototype),d.prototype.constructor=d,S(d,u)}function S(d,u){return S=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function s(l,p){return l.__proto__=p,l}return s}(),S(d,u)}/** * @file * @copyright 2020 Aleksej Komarov * @license MIT -*/var k=function(l,s,i,p){if(l.length===0)return[];var v=(0,a.zipWith)(Math.min).apply(void 0,l),g=(0,a.zipWith)(Math.max).apply(void 0,l);i!==void 0&&(v[0]=i[0],g[0]=i[1]),p!==void 0&&(v[1]=p[0],g[1]=p[1]);var h=(0,a.map)(function(N){return(0,a.zipWith)(function(b,B,I,L){return(b-B)/(I-B)*L})(N,v,g,s)})(l);return h},C=function(l){for(var s="",i=0;i0){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=C(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,p.ref))}return F}()})))}return i}(),l}(e.Component);u.defaultHooks=t.pureComponentHooks;var c=function(l){return null},m=r.Chart={Line:u}},83974:function(w,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 f(k,C){if(k==null)return{};var u={},c=Object.keys(k),m,d;for(d=0;d=0)&&(u[m]=k[m]);return u}function V(k,C){k.prototype=Object.create(C.prototype),k.prototype.constructor=k,y(k,C)}function y(k,C){return y=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function u(c,m){return c.__proto__=m,c}return u}(),y(k,C)}/** +*/var k=function(u,s,l,p){if(u.length===0)return[];var C=(0,a.zipWith)(Math.min).apply(void 0,u),g=(0,a.zipWith)(Math.max).apply(void 0,u);l!==void 0&&(C[0]=l[0],g[0]=l[1]),p!==void 0&&(C[1]=p[0],g[1]=p[1]);var h=(0,a.map)(function(N){return(0,a.zipWith)(function(b,B,I,L){return(b-B)/(I-B)*L})(N,C,g,s)})(u);return h},v=function(u){for(var s="",l=0;l0){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=v(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,p.ref))}return F}()})))}return l}(),u}(e.Component);i.defaultHooks=t.pureComponentHooks;var c=function(u){return null},m=r.Chart={Line:i}},83974:function(w,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 f(k,v){if(k==null)return{};var i={},c=Object.keys(k),m,d;for(d=0;d=0)&&(i[m]=k[m]);return i}function V(k,v){k.prototype=Object.create(v.prototype),k.prototype.constructor=k,y(k,v)}function y(k,v){return y=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function i(c,m){return c.__proto__=m,c}return i}(),y(k,v)}/** * @file * @copyright 2020 Aleksej Komarov * @license MIT -*/var S=r.Collapsible=function(k){function C(c){var m;m=k.call(this,c)||this;var d=c.open;return m.state={open:d||!1},m}V(C,k);var u=C.prototype;return u.render=function(){function c(){var m=this,d=this.props,l=this.state.open,s=d.children,i=d.color,p=i===void 0?"default":i,v=d.title,g=d.buttons,h=f(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:p,icon:l?"chevron-down":"chevron-right",onClick:function(){function N(){return m.setState({open:!l})}return N}()},h,{children:v}))),2),g&&(0,e.createVNode)(1,"div","Table__cell Table__cell--collapsing",g,0)],0),l&&(0,e.createComponentVNode)(2,a.Box,{mt:1,children:s})]})}return c}(),C}(e.Component)},26236:function(w,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 v(c){var m;m=k.call(this,c)||this;var d=c.open;return m.state={open:d||!1},m}V(v,k);var i=v.prototype;return i.render=function(){function c(){var m=this,d=this.props,u=this.state.open,s=d.children,l=d.color,p=l===void 0?"default":l,C=d.title,g=d.buttons,h=f(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:p,icon:u?"chevron-down":"chevron-right",onClick:function(){function N(){return m.setState({open:!u})}return N}()},h,{children:C}))),2),g&&(0,e.createVNode)(1,"div","Table__cell Table__cell--collapsing",g,0)],0),u&&(0,e.createComponentVNode)(2,a.Box,{mt:1,children:s})]})}return c}(),v}(e.Component)},26236:function(w,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 f(y,S){if(y==null)return{};var k={},C=Object.keys(y),u,c;for(c=0;c=0)&&(k[u]=y[u]);return k}var V=r.ColorBox=function(){function y(S){var k=S.content,C=S.children,u=S.className,c=S.color,m=S.backgroundColor,d=f(S,o);return d.color=k?null:"transparent",d.backgroundColor=c||m,(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,a.classes)(["ColorBox",u,(0,t.computeBoxClassName)(d)]),k||".",0,Object.assign({},(0,t.computeBoxProps)(d))))}return y}();V.defaultHooks=a.pureComponentHooks},99509:function(w,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 C={},u=Object.keys(S),c,m;for(m=0;m=0)&&(C[c]=S[c]);return C}function f(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 C(u,c){return u.__proto__=c,u}return C}(),V(S,k)}var y=r.Countdown=function(S){function k(u){var c;return c=S.call(this,u)||this,c.timer=null,c.state={value:Math.max(u.timeLeft*100,0)},c}f(k,S);var C=k.prototype;return C.tick=function(){function u(){var c=Math.max(this.state.value-this.props.rate,0);c<=0&&clearInterval(this.timer),this.setState(function(m){return{value:c}})}return u}(),C.componentDidMount=function(){function u(){var c=this;this.timer=setInterval(function(){return c.tick()},this.props.rate)}return u}(),C.componentWillUnmount=function(){function u(){clearInterval(this.timer)}return u}(),C.componentDidUpdate=function(){function u(c){var m=this;this.props.current!==c.current&&this.setState(function(d){return{value:Math.max(m.props.timeLeft*100,0)}}),this.timer||this.componentDidMount()}return u}(),C.render=function(){function u(){var c=this.props,m=c.format,d=o(c,t),l=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:m?m(this.state.value,l):l})))}return u}(),k}(e.Component);y.defaultProps={rate:1e3}},72358:function(w,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 f(y,S){if(y==null)return{};var k={},v=Object.keys(y),i,c;for(c=0;c=0)&&(k[i]=y[i]);return k}var V=r.ColorBox=function(){function y(S){var k=S.content,v=S.children,i=S.className,c=S.color,m=S.backgroundColor,d=f(S,o);return d.color=k?null:"transparent",d.backgroundColor=c||m,(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,a.classes)(["ColorBox",i,(0,t.computeBoxClassName)(d)]),k||".",0,Object.assign({},(0,t.computeBoxProps)(d))))}return y}();V.defaultHooks=a.pureComponentHooks},99509:function(w,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 v={},i=Object.keys(S),c,m;for(m=0;m=0)&&(v[c]=S[c]);return v}function f(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 v(i,c){return i.__proto__=c,i}return v}(),V(S,k)}var y=r.Countdown=function(S){function k(i){var c;return c=S.call(this,i)||this,c.timer=null,c.state={value:Math.max(i.timeLeft*100,0)},c}f(k,S);var v=k.prototype;return v.tick=function(){function i(){var c=Math.max(this.state.value-this.props.rate,0);c<=0&&clearInterval(this.timer),this.setState(function(m){return{value:c}})}return i}(),v.componentDidMount=function(){function i(){var c=this;this.timer=setInterval(function(){return c.tick()},this.props.rate)}return i}(),v.componentWillUnmount=function(){function i(){clearInterval(this.timer)}return i}(),v.componentDidUpdate=function(){function i(c){var m=this;this.props.current!==c.current&&this.setState(function(d){return{value:Math.max(m.props.timeLeft*100,0)}}),this.timer||this.componentDidMount()}return i}(),v.render=function(){function i(){var c=this.props,m=c.format,d=o(c,t),u=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:m?m(this.state.value,u):u})))}return i}(),k}(e.Component);y.defaultProps={rate:1e3}},72358:function(w,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 f(y,S){if(y==null)return{};var k={},C=Object.keys(y),u,c;for(c=0;c=0)&&(k[u]=y[u]);return k}var V=r.Dimmer=function(){function y(S){var k=S.className,C=S.children,u=f(S,o);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,t.Box,Object.assign({className:(0,a.classes)(["Dimmer"].concat(k))},u,{children:(0,e.createVNode)(1,"div","Dimmer__inner",C,0)})))}return y}()},31647:function(w,r,n){"use strict";r.__esModule=!0,r.Divider=void 0;var e=n(96524),a=n(28234);/** + */function f(y,S){if(y==null)return{};var k={},v=Object.keys(y),i,c;for(c=0;c=0)&&(k[i]=y[i]);return k}var V=r.Dimmer=function(){function y(S){var k=S.className,v=S.children,i=f(S,o);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,t.Box,Object.assign({className:(0,a.classes)(["Dimmer"].concat(k))},i,{children:(0,e.createVNode)(1,"div","Dimmer__inner",v,0)})))}return y}()},31647:function(w,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(f){var V=f.vertical,y=f.hidden;return(0,e.createVNode)(1,"div",(0,a.classes)(["Divider",y&&"Divider--hidden",V?"Divider--vertical":"Divider--horizontal"]))}return o}()},27648:function(w,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 f(C,u){C.prototype=Object.create(u.prototype),C.prototype.constructor=C,V(C,u)}function V(C,u){return V=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function c(m,d){return m.__proto__=d,m}return c}(),V(C,u)}var y=400,S=function(u,c){return u.screenX*c[0]+u.screenY*c[1]},k=r.DraggableControl=function(C){function u(m){var d;return d=C.call(this,m)||this,d.inputRef=(0,e.createRef)(),d.state={originalValue:m.value,value:m.value,dragging:!1,editing:!1,origin:null,suppressingFlicker:!1},d.flickerTimer=null,d.suppressFlicker=function(){var l=d.props.suppressFlicker;l>0&&(d.setState({suppressingFlicker:!0}),clearTimeout(d.flickerTimer),d.flickerTimer=setTimeout(function(){return d.setState({suppressingFlicker:!1})},l))},d.handleDragStart=function(l){var s=d.props,i=s.value,p=s.dragMatrix,v=s.disabled,g=d.state.editing;g||v||(document.body.style["pointer-events"]="none",d.ref=l.currentTarget,d.setState({originalValue:i,dragging:!1,value:i,origin:S(l,p)}),d.timer=setTimeout(function(){d.setState({dragging:!0})},250),d.dragInterval=setInterval(function(){var h=d.state,N=h.dragging,b=h.value,B=d.props.onDrag;N&&B&&B(l,b)},d.props.updateRate||y),document.addEventListener("mousemove",d.handleDragMove),document.addEventListener("mouseup",d.handleDragEnd))},d.handleDragMove=function(l){var s,i=d.props,p=i.minValue,v=i.maxValue,g=i.step,h=i.dragMatrix,N=i.disabled;if(!N){var b=d.ref.offsetWidth/((v-p)/g),B=(s=d.props.stepPixelSize)!=null?s:b;typeof B=="function"&&(B=B(b)),d.setState(function(I){var L=Object.assign({},I),T=I.origin,A=S(l,h)-T;if(I.dragging){var x=Math.trunc(A/B);L.value=(0,a.clamp)(Math.floor(L.originalValue/g)*g+x*g,p,v)}else Math.abs(A)>4&&(L.dragging=!0);return L})}},d.handleDragEnd=function(l){var s=d.props,i=s.onChange,p=s.onDrag,v=d.state,g=v.dragging,h=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(),i&&i(l,h),p&&p(l,h);else if(d.inputRef){var N=d.inputRef.current;N.value=h;try{N.focus(),N.select()}catch(b){}}},d}f(u,C);var c=u.prototype;return c.render=function(){function m(){var d=this,l=this.state,s=l.dragging,i=l.editing,p=l.value,v=l.suppressingFlicker,g=this.props,h=g.animated,N=g.value,b=g.unit,B=g.minValue,I=g.maxValue,L=g.format,T=g.onChange,A=g.onDrag,x=g.children,E=g.height,M=g.lineHeight,j=g.fontSize,P=g.disabled,R=N;(s||v)&&(R=p);var D=function(){function _(K){return K+(b?" "+b:"")}return _}(),F=h&&!s&&!v&&(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:R,format:L,children:D})||D(L?L(R):R),W=(0,e.createVNode)(64,"input","NumberInput__input",null,1,{style:{display:!i||P?"none":void 0,height:E,"line-height":M,"font-size":j},onBlur:function(){function _(K){if(i){var H=(0,a.clamp)(parseFloat(K.target.value),B,I);if(Number.isNaN(H)){d.setState({editing:!1});return}d.setState({editing:!1,value:H}),d.suppressFlicker(),T&&T(K,H),A&&A(K,H)}}return _}(),onKeyDown:function(){function _(K){if(K.keyCode===13){var H=(0,a.clamp)(parseFloat(K.target.value),B,I);if(Number.isNaN(H)){d.setState({editing:!1});return}d.setState({editing:!1,value:H}),d.suppressFlicker(),T&&T(K,H),A&&A(K,H);return}if(K.keyCode===27){d.setState({editing:!1});return}}return _}(),disabled:P},null,this.inputRef);return x({dragging:s,editing:i,value:N,displayValue:R,displayElement:F,inputElement:W,handleDragStart:this.handleDragStart})}return m}(),u}(e.Component);k.defaultHooks=t.pureComponentHooks,k.defaultProps={minValue:-1/0,maxValue:1/0,step:1,suppressFlicker:50,dragMatrix:[1,0]}},45293:function(w,r,n){"use strict";r.__esModule=!0,r.Dropdown=void 0;var e=n(96524),a=n(60023),t=n(28234),o=n(3051),f=n(11253),V=["icon","iconRotation","iconSpin","clipSelectedText","color","dropdownStyle","over","nochevron","width","onClick","onSelected","selected","disabled","displayText"],y=["className"],S;function k(i,p){if(i==null)return{};var v={},g=Object.keys(i),h,N;for(N=0;N=0)&&(v[h]=i[h]);return v}function C(i,p){i.prototype=Object.create(p.prototype),i.prototype.constructor=i,u(i,p)}function u(i,p){return u=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function v(g,h){return g.__proto__=h,g}return v}(),u(i,p)}var c={placement:"left-start",modifiers:[{name:"eventListeners",enabled:!1}]},m={width:0,height:0,top:0,right:0,bottom:0,left:0,x:0,y:0,toJSON:function(){function i(){return null}return i}()},d="Layout Dropdown__menu",l="Layout Dropdown__menu-scroll",s=r.Dropdown=function(i){function p(g){var h;return h=i.call(this,g)||this,h.menuContents=void 0,h.handleClick=function(){h.state.open&&h.setOpen(!1)},h.state={open:!1,selected:h.props.selected},h.menuContents=null,h}C(p,i);var v=p.prototype;return v.getDOMNode=function(){function g(){return(0,e.findDOMfromVNode)(this.$LI,!0)}return g}(),v.componentDidMount=function(){function g(){var h=this.getDOMNode()}return g}(),v.openMenu=function(){function g(){var h=p.renderedMenu;h===void 0&&(h=document.createElement("div"),h.className=d,document.body.appendChild(h),p.renderedMenu=h);var N=this.getDOMNode();p.currentOpenMenu=N,h.scrollTop=0,h.style.width=this.props.menuWidth||N.offsetWidth+"px",h.style.opacity="1",h.style.pointerEvents="auto",setTimeout(function(){var b;(b=p.renderedMenu)==null||b.focus()},400),this.renderMenuContent()}return g}(),v.closeMenu=function(){function g(){p.currentOpenMenu===this.getDOMNode()&&(p.currentOpenMenu=void 0,p.renderedMenu.style.opacity="0",p.renderedMenu.style.pointerEvents="none")}return g}(),v.componentWillUnmount=function(){function g(){this.closeMenu(),this.setOpen(!1)}return g}(),v.renderMenuContent=function(){function g(){var h=this,N=p.renderedMenu;if(N){N.offsetHeight>200?N.className=l:N.className=d;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",h.state.selected===A&&"selected"]),x,0,{onClick:function(){function E(){h.setSelected(A)}return E}()},A)}),L=I.length?I:"No Options Found";(0,e.render)((0,e.createVNode)(1,"div",null,L,0),N,function(){var T=p.singletonPopper;T===void 0?(T=(0,a.createPopper)(p.virtualElement,N,Object.assign({},c,{placement:"bottom-start"})),p.singletonPopper=T):(T.setOptions(Object.assign({},c,{placement:"bottom-start"})),T.update())},this.context)}}return g}(),v.setOpen=function(){function g(h){var N=this;this.setState(function(b){return Object.assign({},b,{open:h})}),h?setTimeout(function(){N.openMenu(),window.addEventListener("click",N.handleClick)}):(this.closeMenu(),window.removeEventListener("click",this.handleClick))}return g}(),v.setSelected=function(){function g(h){this.setState(function(N){return Object.assign({},N,{selected:h})}),this.setOpen(!1),this.props.onSelected&&this.props.onSelected(h)}return g}(),v.render=function(){function g(){var h=this,N=this.props,b=N.icon,B=N.iconRotation,I=N.iconSpin,L=N.clipSelectedText,T=L===void 0?!0:L,A=N.color,x=A===void 0?"default":A,E=N.dropdownStyle,M=N.over,j=N.nochevron,P=N.width,R=N.onClick,D=N.onSelected,F=N.selected,W=N.disabled,_=N.displayText,K=k(N,V),H=K.className,X=k(K,y),Y=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",H]),onClick:function(){function J(le){W&&!h.state.open||(h.setOpen(!h.state.open),R&&R(le))}return J}()},X,{children:[b&&(0,e.createComponentVNode)(2,f.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,f.Icon,{name:Y?"chevron-up":"chevron-down"}),2)]})))}return g}(),p}(e.Component);S=s,s.renderedMenu=void 0,s.singletonPopper=void 0,s.currentOpenMenu=void 0,s.virtualElement={getBoundingClientRect:function(){function i(){var p,v;return(p=(v=S.currentOpenMenu)==null?void 0:v.getBoundingClientRect())!=null?p:m}return i}()}},18963:function(w,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","style"],f=["className"],V=["className","style","grow","order","shrink","basis","align"],y=["className"];/** + */var t=r.Divider=function(){function o(f){var V=f.vertical,y=f.hidden;return(0,e.createVNode)(1,"div",(0,a.classes)(["Divider",y&&"Divider--hidden",V?"Divider--vertical":"Divider--horizontal"]))}return o}()},27648:function(w,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 f(v,i){v.prototype=Object.create(i.prototype),v.prototype.constructor=v,V(v,i)}function V(v,i){return V=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function c(m,d){return m.__proto__=d,m}return c}(),V(v,i)}var y=400,S=function(i,c){return i.screenX*c[0]+i.screenY*c[1]},k=r.DraggableControl=function(v){function i(m){var d;return d=v.call(this,m)||this,d.inputRef=(0,e.createRef)(),d.state={originalValue:m.value,value:m.value,dragging:!1,editing:!1,origin:null,suppressingFlicker:!1},d.flickerTimer=null,d.suppressFlicker=function(){var u=d.props.suppressFlicker;u>0&&(d.setState({suppressingFlicker:!0}),clearTimeout(d.flickerTimer),d.flickerTimer=setTimeout(function(){return d.setState({suppressingFlicker:!1})},u))},d.handleDragStart=function(u){var s=d.props,l=s.value,p=s.dragMatrix,C=s.disabled,g=d.state.editing;g||C||(document.body.style["pointer-events"]="none",d.ref=u.currentTarget,d.setState({originalValue:l,dragging:!1,value:l,origin:S(u,p)}),d.timer=setTimeout(function(){d.setState({dragging:!0})},250),d.dragInterval=setInterval(function(){var h=d.state,N=h.dragging,b=h.value,B=d.props.onDrag;N&&B&&B(u,b)},d.props.updateRate||y),document.addEventListener("mousemove",d.handleDragMove),document.addEventListener("mouseup",d.handleDragEnd))},d.handleDragMove=function(u){var s,l=d.props,p=l.minValue,C=l.maxValue,g=l.step,h=l.dragMatrix,N=l.disabled;if(!N){var b=d.ref.offsetWidth/((C-p)/g),B=(s=d.props.stepPixelSize)!=null?s:b;typeof B=="function"&&(B=B(b)),d.setState(function(I){var L=Object.assign({},I),T=I.origin,A=S(u,h)-T;if(I.dragging){var x=Math.trunc(A/B);L.value=(0,a.clamp)(Math.floor(L.originalValue/g)*g+x*g,p,C)}else Math.abs(A)>4&&(L.dragging=!0);return L})}},d.handleDragEnd=function(u){var s=d.props,l=s.onChange,p=s.onDrag,C=d.state,g=C.dragging,h=C.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(),l&&l(u,h),p&&p(u,h);else if(d.inputRef){var N=d.inputRef.current;N.value=h;try{N.focus(),N.select()}catch(b){}}},d}f(i,v);var c=i.prototype;return c.render=function(){function m(){var d=this,u=this.state,s=u.dragging,l=u.editing,p=u.value,C=u.suppressingFlicker,g=this.props,h=g.animated,N=g.value,b=g.unit,B=g.minValue,I=g.maxValue,L=g.format,T=g.onChange,A=g.onDrag,x=g.children,E=g.height,M=g.lineHeight,j=g.fontSize,P=g.disabled,R=N;(s||C)&&(R=p);var D=function(){function U(K){return K+(b?" "+b:"")}return U}(),F=h&&!s&&!C&&(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:R,format:L,children:D})||D(L?L(R):R),W=(0,e.createVNode)(64,"input","NumberInput__input",null,1,{style:{display:!l||P?"none":void 0,height:E,"line-height":M,"font-size":j},onBlur:function(){function U(K){if(l){var H=(0,a.clamp)(parseFloat(K.target.value),B,I);if(Number.isNaN(H)){d.setState({editing:!1});return}d.setState({editing:!1,value:H}),d.suppressFlicker(),T&&T(K,H),A&&A(K,H)}}return U}(),onKeyDown:function(){function U(K){if(K.keyCode===13){var H=(0,a.clamp)(parseFloat(K.target.value),B,I);if(Number.isNaN(H)){d.setState({editing:!1});return}d.setState({editing:!1,value:H}),d.suppressFlicker(),T&&T(K,H),A&&A(K,H);return}if(K.keyCode===27){d.setState({editing:!1});return}}return U}(),disabled:P},null,this.inputRef);return x({dragging:s,editing:l,value:N,displayValue:R,displayElement:F,inputElement:W,handleDragStart:this.handleDragStart})}return m}(),i}(e.Component);k.defaultHooks=t.pureComponentHooks,k.defaultProps={minValue:-1/0,maxValue:1/0,step:1,suppressFlicker:50,dragMatrix:[1,0]}},45293:function(w,r,n){"use strict";r.__esModule=!0,r.Dropdown=void 0;var e=n(96524),a=n(60023),t=n(28234),o=n(3051),f=n(11253),V=["icon","iconRotation","iconSpin","clipSelectedText","color","dropdownStyle","over","nochevron","width","onClick","onSelected","selected","disabled","displayText"],y=["className"],S;function k(l,p){if(l==null)return{};var C={},g=Object.keys(l),h,N;for(N=0;N=0)&&(C[h]=l[h]);return C}function v(l,p){l.prototype=Object.create(p.prototype),l.prototype.constructor=l,i(l,p)}function i(l,p){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function C(g,h){return g.__proto__=h,g}return C}(),i(l,p)}var c={placement:"left-start",modifiers:[{name:"eventListeners",enabled:!1}]},m={width:0,height:0,top:0,right:0,bottom:0,left:0,x:0,y:0,toJSON:function(){function l(){return null}return l}()},d="Layout Dropdown__menu",u="Layout Dropdown__menu-scroll",s=r.Dropdown=function(l){function p(g){var h;return h=l.call(this,g)||this,h.menuContents=void 0,h.handleClick=function(){h.state.open&&h.setOpen(!1)},h.state={open:!1,selected:h.props.selected},h.menuContents=null,h}v(p,l);var C=p.prototype;return C.getDOMNode=function(){function g(){return(0,e.findDOMfromVNode)(this.$LI,!0)}return g}(),C.componentDidMount=function(){function g(){var h=this.getDOMNode()}return g}(),C.openMenu=function(){function g(){var h=p.renderedMenu;h===void 0&&(h=document.createElement("div"),h.className=d,document.body.appendChild(h),p.renderedMenu=h);var N=this.getDOMNode();p.currentOpenMenu=N,h.scrollTop=0,h.style.width=this.props.menuWidth||N.offsetWidth+"px",h.style.opacity="1",h.style.pointerEvents="auto",setTimeout(function(){var b;(b=p.renderedMenu)==null||b.focus()},400),this.renderMenuContent()}return g}(),C.closeMenu=function(){function g(){p.currentOpenMenu===this.getDOMNode()&&(p.currentOpenMenu=void 0,p.renderedMenu.style.opacity="0",p.renderedMenu.style.pointerEvents="none")}return g}(),C.componentWillUnmount=function(){function g(){this.closeMenu(),this.setOpen(!1)}return g}(),C.renderMenuContent=function(){function g(){var h=this,N=p.renderedMenu;if(N){N.offsetHeight>200?N.className=u:N.className=d;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",h.state.selected===A&&"selected"]),x,0,{onClick:function(){function E(){h.setSelected(A)}return E}()},A)}),L=I.length?I:"No Options Found";(0,e.render)((0,e.createVNode)(1,"div",null,L,0),N,function(){var T=p.singletonPopper;T===void 0?(T=(0,a.createPopper)(p.virtualElement,N,Object.assign({},c,{placement:"bottom-start"})),p.singletonPopper=T):(T.setOptions(Object.assign({},c,{placement:"bottom-start"})),T.update())},this.context)}}return g}(),C.setOpen=function(){function g(h){var N=this;this.setState(function(b){return Object.assign({},b,{open:h})}),h?setTimeout(function(){N.openMenu(),window.addEventListener("click",N.handleClick)}):(this.closeMenu(),window.removeEventListener("click",this.handleClick))}return g}(),C.setSelected=function(){function g(h){this.setState(function(N){return Object.assign({},N,{selected:h})}),this.setOpen(!1),this.props.onSelected&&this.props.onSelected(h)}return g}(),C.render=function(){function g(){var h=this,N=this.props,b=N.icon,B=N.iconRotation,I=N.iconSpin,L=N.clipSelectedText,T=L===void 0?!0:L,A=N.color,x=A===void 0?"default":A,E=N.dropdownStyle,M=N.over,j=N.nochevron,P=N.width,R=N.onClick,D=N.onSelected,F=N.selected,W=N.disabled,U=N.displayText,K=k(N,V),H=K.className,X=k(K,y),Y=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",H]),onClick:function(){function J(ie){W&&!h.state.open||(h.setOpen(!h.state.open),R&&R(ie))}return J}()},X,{children:[b&&(0,e.createComponentVNode)(2,f.Icon,{name:b,rotation:B,spin:I,mr:1}),(0,e.createVNode)(1,"span","Dropdown__selected-text",U||this.state.selected,0,{style:{overflow:T?"hidden":"visible"}}),j||(0,e.createVNode)(1,"span","Dropdown__arrow-button",(0,e.createComponentVNode)(2,f.Icon,{name:Y?"chevron-up":"chevron-down"}),2)]})))}return g}(),p}(e.Component);S=s,s.renderedMenu=void 0,s.singletonPopper=void 0,s.currentOpenMenu=void 0,s.virtualElement={getBoundingClientRect:function(){function l(){var p,C;return(p=(C=S.currentOpenMenu)==null?void 0:C.getBoundingClientRect())!=null?p:m}return l}()}},18963:function(w,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","style"],f=["className"],V=["className","style","grow","order","shrink","basis","align"],y=["className"];/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */function S(l,s){if(l==null)return{};var i={},p=Object.keys(l),v,g;for(g=0;g=0)&&(i[v]=l[v]);return i}var k=r.computeFlexClassName=function(){function l(s){return(0,a.classes)(["Flex",s.inline&&"Flex--inline",(0,t.computeBoxClassName)(s)])}return l}(),C=r.computeFlexProps=function(){function l(s){var i=s.className,p=s.direction,v=s.wrap,g=s.align,h=s.justify,N=s.inline,b=s.style,B=S(s,o);return(0,t.computeBoxProps)(Object.assign({style:Object.assign({},b,{"flex-direction":p,"flex-wrap":v===!0?"wrap":v,"align-items":g,"justify-content":h})},B))}return l}(),u=r.Flex=function(){function l(s){var i=s.className,p=S(s,f);return(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,a.classes)([i,k(p)]),null,1,Object.assign({},C(p))))}return l}();u.defaultHooks=a.pureComponentHooks;var c=r.computeFlexItemClassName=function(){function l(s){return(0,a.classes)(["Flex__item",(0,t.computeBoxClassName)(s)])}return l}(),m=r.computeFlexItemProps=function(){function l(s){var i=s.className,p=s.style,v=s.grow,g=s.order,h=s.shrink,N=s.basis,b=N===void 0?s.width:N,B=s.align,I=S(s,V);return(0,t.computeBoxProps)(Object.assign({style:Object.assign({},p,{"flex-grow":v!==void 0&&Number(v),"flex-shrink":h!==void 0&&Number(h),"flex-basis":(0,t.unit)(b),order:g,"align-self":B})},I))}return l}(),d=function(s){var i=s.className,p=S(s,y);return(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,a.classes)([i,c(s)]),null,1,Object.assign({},m(p))))};d.defaultHooks=a.pureComponentHooks,u.Item=d},17956:function(w,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"],f=["size","style"];/** + */function S(u,s){if(u==null)return{};var l={},p=Object.keys(u),C,g;for(g=0;g=0)&&(l[C]=u[C]);return l}var k=r.computeFlexClassName=function(){function u(s){return(0,a.classes)(["Flex",s.inline&&"Flex--inline",(0,t.computeBoxClassName)(s)])}return u}(),v=r.computeFlexProps=function(){function u(s){var l=s.className,p=s.direction,C=s.wrap,g=s.align,h=s.justify,N=s.inline,b=s.style,B=S(s,o);return(0,t.computeBoxProps)(Object.assign({style:Object.assign({},b,{"flex-direction":p,"flex-wrap":C===!0?"wrap":C,"align-items":g,"justify-content":h})},B))}return u}(),i=r.Flex=function(){function u(s){var l=s.className,p=S(s,f);return(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,a.classes)([l,k(p)]),null,1,Object.assign({},v(p))))}return u}();i.defaultHooks=a.pureComponentHooks;var c=r.computeFlexItemClassName=function(){function u(s){return(0,a.classes)(["Flex__item",(0,t.computeBoxClassName)(s)])}return u}(),m=r.computeFlexItemProps=function(){function u(s){var l=s.className,p=s.style,C=s.grow,g=s.order,h=s.shrink,N=s.basis,b=N===void 0?s.width:N,B=s.align,I=S(s,V);return(0,t.computeBoxProps)(Object.assign({style:Object.assign({},p,{"flex-grow":C!==void 0&&Number(C),"flex-shrink":h!==void 0&&Number(h),"flex-basis":(0,t.unit)(b),order:g,"align-self":B})},I))}return u}(),d=function(s){var l=s.className,p=S(s,y);return(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,a.classes)([l,c(s)]),null,1,Object.assign({},m(p))))};d.defaultHooks=a.pureComponentHooks,i.Item=d},17956:function(w,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"],f=["size","style"];/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */function V(k,C){if(k==null)return{};var u={},c=Object.keys(k),m,d;for(d=0;d=0)&&(u[m]=k[m]);return u}var y=r.Grid=function(){function k(C){var u=C.children,c=V(C,o);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,a.Table,Object.assign({},c,{children:(0,e.createComponentVNode)(2,a.Table.Row,{children:u})})))}return k}();y.defaultHooks=t.pureComponentHooks;var S=r.GridColumn=function(){function k(C){var u=C.size,c=u===void 0?1:u,m=C.style,d=V(C,f);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,a.Table.Cell,Object.assign({style:Object.assign({width:c+"%"},m)},d)))}return k}();y.defaultHooks=t.pureComponentHooks,y.Column=S},11253:function(w,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"],f=["className","style","children"];/** + */function V(k,v){if(k==null)return{};var i={},c=Object.keys(k),m,d;for(d=0;d=0)&&(i[m]=k[m]);return i}var y=r.Grid=function(){function k(v){var i=v.children,c=V(v,o);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,a.Table,Object.assign({},c,{children:(0,e.createComponentVNode)(2,a.Table.Row,{children:i})})))}return k}();y.defaultHooks=t.pureComponentHooks;var S=r.GridColumn=function(){function k(v){var i=v.size,c=i===void 0?1:i,m=v.style,d=V(v,f);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,a.Table.Cell,Object.assign({style:Object.assign({width:c+"%"},m)},d)))}return k}();y.defaultHooks=t.pureComponentHooks,y.Column=S},11253:function(w,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"],f=["className","style","children"];/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */function V(C,u){if(C==null)return{};var c={},m=Object.keys(C),d,l;for(l=0;l=0)&&(c[d]=C[d]);return c}var y=/-o$/,S=r.Icon=function(){function C(u){var c=u.name,m=u.size,d=u.spin,l=u.className,s=u.style,i=s===void 0?{}:s,p=u.rotation,v=u.inverse,g=V(u,o);m&&(i["font-size"]=m*100+"%"),typeof p=="number"&&(i.transform="rotate("+p+"deg)");var h=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",l,h?"far":"fas","fa-"+N,d&&"fa-spin"]),style:i},g)))}return C}();S.defaultHooks=a.pureComponentHooks;var k=r.IconStack=function(){function C(u){var c=u.className,m=u.style,d=m===void 0?{}:m,l=u.children,s=V(u,f);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,t.Box,Object.assign({as:"span",class:(0,a.classes)(["IconStack",c]),style:d},s,{children:l})))}return C}();S.Stack=k},36587:function(w,r,n){"use strict";r.__esModule=!0,r.ImageButtonItem=r.ImageButton=void 0;var e=n(96524),a=n(17442),t=n(28234),o=n(3051),f=n(11253),V=n(58749),y=["className","asset","color","title","vertical","content","selected","disabled","disabledContent","image","imageUrl","imageAsset","imageSize","tooltip","tooltipPosition","ellipsis","children","onClick"],S=["className","color","content","horizontal","selected","disabled","disabledContent","tooltip","tooltipPosition","icon","iconColor","iconPosition","iconRotation","iconSize","onClick","children"];/** + */function V(v,i){if(v==null)return{};var c={},m=Object.keys(v),d,u;for(u=0;u=0)&&(c[d]=v[d]);return c}var y=/-o$/,S=r.Icon=function(){function v(i){var c=i.name,m=i.size,d=i.spin,u=i.className,s=i.style,l=s===void 0?{}:s,p=i.rotation,C=i.inverse,g=V(i,o);m&&(l["font-size"]=m*100+"%"),typeof p=="number"&&(l.transform="rotate("+p+"deg)");var h=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",u,h?"far":"fas","fa-"+N,d&&"fa-spin"]),style:l},g)))}return v}();S.defaultHooks=a.pureComponentHooks;var k=r.IconStack=function(){function v(i){var c=i.className,m=i.style,d=m===void 0?{}:m,u=i.children,s=V(i,f);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,t.Box,Object.assign({as:"span",class:(0,a.classes)(["IconStack",c]),style:d},s,{children:u})))}return v}();S.Stack=k},36587:function(w,r,n){"use strict";r.__esModule=!0,r.ImageButtonItem=r.ImageButton=void 0;var e=n(96524),a=n(17442),t=n(28234),o=n(3051),f=n(11253),V=n(58749),y=["className","asset","color","title","vertical","content","selected","disabled","disabledContent","image","imageUrl","imageAsset","imageSize","tooltip","tooltipPosition","ellipsis","children","onClick"],S=["className","color","content","horizontal","selected","disabled","disabledContent","tooltip","tooltipPosition","icon","iconColor","iconPosition","iconRotation","iconSize","onClick","children"];/** * @file * @copyright 2024 Aylong (https://github.com/AyIong) * @license MIT - */function k(c,m){if(c==null)return{};var d={},l=Object.keys(c),s,i;for(i=0;i=0)&&(d[s]=c[s]);return d}var C=r.ImageButton=function(){function c(m){var d=m.className,l=m.asset,s=m.color,i=m.title,p=m.vertical,v=m.content,g=m.selected,h=m.disabled,N=m.disabledContent,b=m.image,B=m.imageUrl,I=m.imageAsset,L=m.imageSize,T=m.tooltip,A=m.tooltipPosition,x=m.ellipsis,E=m.children,M=m.onClick,j=k(m,y);j.onClick=function(R){!h&&M&&M(R)};var P=(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,t.classes)([p?"ImageButton__vertical":"ImageButton__horizontal",g&&"ImageButton--selected",h&&"ImageButton--disabled",s&&typeof s=="string"?M?"ImageButton--color--clickable--"+s:"ImageButton--color--"+s:M?"ImageButton--color--default--clickable":"ImageButton--color--default",d,(0,o.computeBoxClassName)(j)]),[(0,e.createVNode)(1,"div",(0,t.classes)(["ImageButton__image"]),l?(0,e.createVNode)(1,"div",(0,t.classes)([I,b])):(0,e.createVNode)(1,"img",null,null,1,{src:B?(0,a.resolveAsset)(B):"data:image/jpeg;base64,"+b,style:{width:L,height:L,"-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),0),v&&(p?(0,e.createVNode)(1,"div",(0,t.classes)(["ImageButton__content__vertical",x&&"ImageButton__content--ellipsis",g&&"ImageButton__content--selected",h&&"ImageButton__content--disabled",s&&typeof s=="string"?"ImageButton__content--color--"+s:"ImageButton__content--color--default",d,(0,o.computeBoxClassName)(j)]),h&&N?N:v,0):(0,e.createVNode)(1,"div",(0,t.classes)(["ImageButton__content__horizontal"]),[i&&(0,e.createVNode)(1,"div",(0,t.classes)(["ImageButton__content__horizontal--title"]),[i,(0,e.createVNode)(1,"div",(0,t.classes)(["ImageButton__content__horizontal--divider"]))],0),(0,e.createVNode)(1,"div",(0,t.classes)(["ImageButton__content__horizontal--content"]),v,0)],0))],0,Object.assign({tabIndex:!h&&"0"},(0,o.computeBoxProps)(j))));return T&&(P=(0,e.createComponentVNode)(2,V.Tooltip,{content:T,position:A,children:P})),(0,e.createVNode)(1,"div",(0,t.classes)([p?"ImageButton--vertical":"ImageButton--horizontal"]),[P,E],0)}return c}();C.defaultHooks=t.pureComponentHooks;var u=r.ImageButtonItem=function(){function c(m){var d=m.className,l=m.color,s=m.content,i=m.horizontal,p=m.selected,v=m.disabled,g=m.disabledContent,h=m.tooltip,N=m.tooltipPosition,b=m.icon,B=m.iconColor,I=m.iconPosition,L=m.iconRotation,T=m.iconSize,A=m.onClick,x=m.children,E=k(m,S);E.onClick=function(j){!v&&A&&A(j)};var M=(0,e.createVNode)(1,"div",null,(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,t.classes)(["ImageButton__item",p&&"ImageButton__item--selected",v&&"ImageButton__item--disabled",l&&typeof l=="string"?"ImageButton__item--color--"+l:"ImageButton__item--color--default",d,(0,o.computeBoxClassName)(E)]),(0,e.createVNode)(1,"div",(0,t.classes)([i&&"ImageButton__item--icon--horizontal",(0,o.computeBoxClassName)(E),d]),[b&&(I==="top"||I==="left")&&(0,e.createComponentVNode)(2,f.Icon,{mb:.5,name:b,color:B,rotation:L,size:T}),(0,e.createVNode)(1,"div",null,[v&&g?g:s,x],0),b&&!(I==="top"||I==="left")&&(0,e.createComponentVNode)(2,f.Icon,{mt:.5,name:b,color:B,rotation:L,size:T})],0),2,Object.assign({tabIndex:!v&&"0"},(0,o.computeBoxProps)(E)))),2);return h&&(M=(0,e.createComponentVNode)(2,V.Tooltip,{content:h,position:N,children:M})),M}return c}();C.Item=u},49034:function(w,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),f=["selfClear","onInput","onChange","onEnter","value","maxLength","placeholder","autofocus","disabled","multiline","cols","rows"],V=["className","fluid","monospace"];function y(c,m){if(c==null)return{};var d={},l=Object.keys(c),s,i;for(i=0;i=0)&&(d[s]=c[s]);return d}function S(c,m){c.prototype=Object.create(m.prototype),c.prototype.constructor=c,k(c,m)}function k(c,m){return k=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function d(l,s){return l.__proto__=s,l}return d}(),k(c,m)}/** + */function k(c,m){if(c==null)return{};var d={},u=Object.keys(c),s,l;for(l=0;l=0)&&(d[s]=c[s]);return d}var v=r.ImageButton=function(){function c(m){var d=m.className,u=m.asset,s=m.color,l=m.title,p=m.vertical,C=m.content,g=m.selected,h=m.disabled,N=m.disabledContent,b=m.image,B=m.imageUrl,I=m.imageAsset,L=m.imageSize,T=m.tooltip,A=m.tooltipPosition,x=m.ellipsis,E=m.children,M=m.onClick,j=k(m,y);j.onClick=function(R){!h&&M&&M(R)};var P=(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,t.classes)([p?"ImageButton__vertical":"ImageButton__horizontal",g&&"ImageButton--selected",h&&"ImageButton--disabled",s&&typeof s=="string"?M?"ImageButton--color--clickable--"+s:"ImageButton--color--"+s:M?"ImageButton--color--default--clickable":"ImageButton--color--default",d,(0,o.computeBoxClassName)(j)]),[(0,e.createVNode)(1,"div",(0,t.classes)(["ImageButton__image"]),u?(0,e.createVNode)(1,"div",(0,t.classes)([I,b])):(0,e.createVNode)(1,"img",null,null,1,{src:B?(0,a.resolveAsset)(B):"data:image/jpeg;base64,"+b,style:{width:L,height:L,"-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),0),C&&(p?(0,e.createVNode)(1,"div",(0,t.classes)(["ImageButton__content__vertical",x&&"ImageButton__content--ellipsis",g&&"ImageButton__content--selected",h&&"ImageButton__content--disabled",s&&typeof s=="string"?"ImageButton__content--color--"+s:"ImageButton__content--color--default",d,(0,o.computeBoxClassName)(j)]),h&&N?N:C,0):(0,e.createVNode)(1,"div",(0,t.classes)(["ImageButton__content__horizontal"]),[l&&(0,e.createVNode)(1,"div",(0,t.classes)(["ImageButton__content__horizontal--title"]),[l,(0,e.createVNode)(1,"div",(0,t.classes)(["ImageButton__content__horizontal--divider"]))],0),(0,e.createVNode)(1,"div",(0,t.classes)(["ImageButton__content__horizontal--content"]),C,0)],0))],0,Object.assign({tabIndex:!h&&"0"},(0,o.computeBoxProps)(j))));return T&&(P=(0,e.createComponentVNode)(2,V.Tooltip,{content:T,position:A,children:P})),(0,e.createVNode)(1,"div",(0,t.classes)([p?"ImageButton--vertical":"ImageButton--horizontal"]),[P,E],0)}return c}();v.defaultHooks=t.pureComponentHooks;var i=r.ImageButtonItem=function(){function c(m){var d=m.className,u=m.color,s=m.content,l=m.horizontal,p=m.selected,C=m.disabled,g=m.disabledContent,h=m.tooltip,N=m.tooltipPosition,b=m.icon,B=m.iconColor,I=m.iconPosition,L=m.iconRotation,T=m.iconSize,A=m.onClick,x=m.children,E=k(m,S);E.onClick=function(j){!C&&A&&A(j)};var M=(0,e.createVNode)(1,"div",null,(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,t.classes)(["ImageButton__item",p&&"ImageButton__item--selected",C&&"ImageButton__item--disabled",u&&typeof u=="string"?"ImageButton__item--color--"+u:"ImageButton__item--color--default",d,(0,o.computeBoxClassName)(E)]),(0,e.createVNode)(1,"div",(0,t.classes)([l&&"ImageButton__item--icon--horizontal",(0,o.computeBoxClassName)(E),d]),[b&&(I==="top"||I==="left")&&(0,e.createComponentVNode)(2,f.Icon,{mb:.5,name:b,color:B,rotation:L,size:T}),(0,e.createVNode)(1,"div",null,[C&&g?g:s,x],0),b&&!(I==="top"||I==="left")&&(0,e.createComponentVNode)(2,f.Icon,{mt:.5,name:b,color:B,rotation:L,size:T})],0),2,Object.assign({tabIndex:!C&&"0"},(0,o.computeBoxProps)(E)))),2);return h&&(M=(0,e.createComponentVNode)(2,V.Tooltip,{content:h,position:N,children:M})),M}return c}();v.Item=i},49034:function(w,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),f=["selfClear","onInput","onChange","onEnter","value","maxLength","placeholder","autofocus","disabled","multiline","cols","rows"],V=["className","fluid","monospace"];function y(c,m){if(c==null)return{};var d={},u=Object.keys(c),s,l;for(l=0;l=0)&&(d[s]=c[s]);return d}function S(c,m){c.prototype=Object.create(m.prototype),c.prototype.constructor=c,k(c,m)}function k(c,m){return k=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function d(u,s){return u.__proto__=s,u}return d}(),k(c,m)}/** * @file * @copyright 2020 Aleksej Komarov * @license MIT -*/var C=r.toInputValue=function(){function c(m){return typeof m!="number"&&typeof m!="string"?"":String(m)}return c}(),u=r.Input=function(c){function m(){var l;return l=c.call(this)||this,l.inputRef=(0,e.createRef)(),l.state={editing:!1},l.handleInput=function(s){var i=l.state.editing,p=l.props.onInput;i||l.setEditing(!0),p&&p(s,s.target.value)},l.handleFocus=function(s){var i=l.state.editing;i||l.setEditing(!0)},l.handleBlur=function(s){var i=l.state.editing,p=l.props.onChange;i&&(l.setEditing(!1),p&&p(s,s.target.value))},l.handleKeyDown=function(s){var i=l.props,p=i.onInput,v=i.onChange,g=i.onEnter;if(s.keyCode===o.KEY_ENTER){l.setEditing(!1),v&&v(s,s.target.value),p&&p(s,s.target.value),g&&g(s,s.target.value),l.props.selfClear?s.target.value="":s.target.blur();return}if(s.keyCode===o.KEY_ESCAPE){l.setEditing(!1),s.target.value=C(l.props.value),s.target.blur();return}},l}S(m,c);var d=m.prototype;return d.componentDidMount=function(){function l(){var s=this,i=this.props.value,p=this.inputRef.current;p&&(p.value=C(i),p.selectionStart=0,p.selectionEnd=p.value.length),(this.props.autoFocus||this.props.autoSelect)&&setTimeout(function(){p.focus(),s.props.autoSelect&&p.select()},1)}return l}(),d.componentDidUpdate=function(){function l(s,i){var p=this.state.editing,v=s.value,g=this.props.value,h=this.inputRef.current;h&&!p&&v!==g&&(h.value=C(g))}return l}(),d.setEditing=function(){function l(s){this.setState({editing:s})}return l}(),d.render=function(){function l(){var s=this.props,i=s.selfClear,p=s.onInput,v=s.onChange,g=s.onEnter,h=s.value,N=s.maxLength,b=s.placeholder,B=s.autofocus,I=s.disabled,L=s.multiline,T=s.cols,A=T===void 0?32:T,x=s.rows,E=x===void 0?4:x,M=y(s,f),j=M.className,P=M.fluid,R=M.monospace,D=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",I&&"Input--disabled",j])},D,{children:[(0,e.createVNode)(1,"div","Input__baseline",".",16),L?(0,e.createVNode)(128,"textarea","Input__textarea",null,1,{placeholder:b,onInput:this.handleInput,onFocus:this.handleFocus,onBlur:this.handleBlur,maxLength:N,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:N,disabled:I},null,this.inputRef)]})))}return l}(),m}(e.Component)},9836:function(w,r,n){"use strict";r.__esModule=!0,r.Knob=void 0;var e=n(96524),a=n(36121),t=n(28234),o=n(3051),f=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"];/** +*/var v=r.toInputValue=function(){function c(m){return typeof m!="number"&&typeof m!="string"?"":String(m)}return c}(),i=r.Input=function(c){function m(){var u;return u=c.call(this)||this,u.inputRef=(0,e.createRef)(),u.state={editing:!1},u.handleInput=function(s){var l=u.state.editing,p=u.props.onInput;l||u.setEditing(!0),p&&p(s,s.target.value)},u.handleFocus=function(s){var l=u.state.editing;l||u.setEditing(!0)},u.handleBlur=function(s){var l=u.state.editing,p=u.props.onChange;l&&(u.setEditing(!1),p&&p(s,s.target.value))},u.handleKeyDown=function(s){var l=u.props,p=l.onInput,C=l.onChange,g=l.onEnter;if(s.keyCode===o.KEY_ENTER){u.setEditing(!1),C&&C(s,s.target.value),p&&p(s,s.target.value),g&&g(s,s.target.value),u.props.selfClear?s.target.value="":s.target.blur();return}if(s.keyCode===o.KEY_ESCAPE){u.setEditing(!1),s.target.value=v(u.props.value),s.target.blur();return}},u}S(m,c);var d=m.prototype;return d.componentDidMount=function(){function u(){var s=this,l=this.props.value,p=this.inputRef.current;p&&(p.value=v(l),p.selectionStart=0,p.selectionEnd=p.value.length),(this.props.autoFocus||this.props.autoSelect)&&setTimeout(function(){p.focus(),s.props.autoSelect&&p.select()},1)}return u}(),d.componentDidUpdate=function(){function u(s,l){var p=this.state.editing,C=s.value,g=this.props.value,h=this.inputRef.current;h&&!p&&C!==g&&(h.value=v(g))}return u}(),d.setEditing=function(){function u(s){this.setState({editing:s})}return u}(),d.render=function(){function u(){var s=this.props,l=s.selfClear,p=s.onInput,C=s.onChange,g=s.onEnter,h=s.value,N=s.maxLength,b=s.placeholder,B=s.autofocus,I=s.disabled,L=s.multiline,T=s.cols,A=T===void 0?32:T,x=s.rows,E=x===void 0?4:x,M=y(s,f),j=M.className,P=M.fluid,R=M.monospace,D=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",I&&"Input--disabled",j])},D,{children:[(0,e.createVNode)(1,"div","Input__baseline",".",16),L?(0,e.createVNode)(128,"textarea","Input__textarea",null,1,{placeholder:b,onInput:this.handleInput,onFocus:this.handleFocus,onBlur:this.handleBlur,maxLength:N,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:N,disabled:I},null,this.inputRef)]})))}return u}(),m}(e.Component)},9836:function(w,r,n){"use strict";r.__esModule=!0,r.Knob=void 0;var e=n(96524),a=n(36121),t=n(28234),o=n(3051),f=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(C,u){if(C==null)return{};var c={},m=Object.keys(C),d,l;for(l=0;l=0)&&(c[d]=C[d]);return c}var k=r.Knob=function(){function C(u){var c=u.animated,m=u.format,d=u.maxValue,l=u.minValue,s=u.onChange,i=u.onDrag,p=u.step,v=u.stepPixelSize,g=u.suppressFlicker,h=u.unit,N=u.value,b=u.className,B=u.style,I=u.fillValue,L=u.color,T=u.ranges,A=T===void 0?{}:T,x=u.size,E=x===void 0?1:x,M=u.bipolar,j=u.children,P=u.popUpPosition,R=S(u,y);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,f.DraggableControl,Object.assign({dragMatrix:[0,-1]},{animated:c,format:m,maxValue:d,minValue:l,onChange:s,onDrag:i,step:p,stepPixelSize:v,suppressFlicker:g,unit:h,value:N},{children:function(){function D(F){var W=F.dragging,_=F.editing,K=F.value,H=F.displayValue,X=F.displayElement,Y=F.inputElement,J=F.handleDragStart,le=(0,a.scale)(I!=null?I:H,l,d),ce=(0,a.scale)(H,l,d),fe=L||(0,a.keyOfMatchingRange)(I!=null?I:K,A)||"default",pe=(ce-.5)*270;return(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,t.classes)(["Knob","Knob--color--"+fe,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]),X,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)-le*1.5)*Math.PI*50},cx:"50",cy:"50",r:"50"}),2,{viewBox:"0 0 100 100"}),Y],0,Object.assign({},(0,o.computeBoxProps)(Object.assign({style:Object.assign({"font-size":E+"em"},B)},R)),{onMouseDown:J})))}return D}()})))}return C}()},86259:function(w,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(v,i){if(v==null)return{};var c={},m=Object.keys(v),d,u;for(u=0;u=0)&&(c[d]=v[d]);return c}var k=r.Knob=function(){function v(i){var c=i.animated,m=i.format,d=i.maxValue,u=i.minValue,s=i.onChange,l=i.onDrag,p=i.step,C=i.stepPixelSize,g=i.suppressFlicker,h=i.unit,N=i.value,b=i.className,B=i.style,I=i.fillValue,L=i.color,T=i.ranges,A=T===void 0?{}:T,x=i.size,E=x===void 0?1:x,M=i.bipolar,j=i.children,P=i.popUpPosition,R=S(i,y);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,f.DraggableControl,Object.assign({dragMatrix:[0,-1]},{animated:c,format:m,maxValue:d,minValue:u,onChange:s,onDrag:l,step:p,stepPixelSize:C,suppressFlicker:g,unit:h,value:N},{children:function(){function D(F){var W=F.dragging,U=F.editing,K=F.value,H=F.displayValue,X=F.displayElement,Y=F.inputElement,J=F.handleDragStart,ie=(0,a.scale)(I!=null?I:H,u,d),ce=(0,a.scale)(H,u,d),fe=L||(0,a.keyOfMatchingRange)(I!=null?I:K,A)||"default",pe=(ce-.5)*270;return(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,t.classes)(["Knob","Knob--color--"+fe,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]),X,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)-ie*1.5)*Math.PI*50},cx:"50",cy:"50",r:"50"}),2,{viewBox:"0 0 100 100"}),Y],0,Object.assign({},(0,o.computeBoxProps)(Object.assign({style:Object.assign({"font-size":E+"em"},B)},R)),{onMouseDown:J})))}return D}()})))}return v}()},86259:function(w,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 f(S,k){if(S==null)return{};var C={},u=Object.keys(S),c,m;for(m=0;m=0)&&(C[c]=S[c]);return C}var V=r.LabeledControls=function(){function S(k){var C=k.children,u=f(k,t);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,a.Flex,Object.assign({mx:-.5,align:"stretch",justify:"space-between"},u,{children:C})))}return S}(),y=function(k){var C=k.label,u=k.children,c=f(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:u}),(0,e.createComponentVNode)(2,a.Flex.Item,{color:"label",children:C})]})))})};V.Item=y},91097:function(w,r,n){"use strict";r.__esModule=!0,r.LabeledList=void 0;var e=n(96524),a=n(28234),t=n(3051),o=n(31647),f=n(58749);/** + */function f(S,k){if(S==null)return{};var v={},i=Object.keys(S),c,m;for(m=0;m=0)&&(v[c]=S[c]);return v}var V=r.LabeledControls=function(){function S(k){var v=k.children,i=f(k,t);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,a.Flex,Object.assign({mx:-.5,align:"stretch",justify:"space-between"},i,{children:v})))}return S}(),y=function(k){var v=k.label,i=k.children,c=f(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:i}),(0,e.createComponentVNode)(2,a.Flex.Item,{color:"label",children:v})]})))})};V.Item=y},91097:function(w,r,n){"use strict";r.__esModule=!0,r.LabeledList=void 0;var e=n(96524),a=n(28234),t=n(3051),o=n(31647),f=n(58749);/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */var V=r.LabeledList=function(){function k(C){var u=C.children;return(0,e.createVNode)(1,"table","LabeledList",u,0)}return k}();V.defaultHooks=a.pureComponentHooks;var y=function(C){var u=C.className,c=C.label,m=C.labelColor,d=m===void 0?"label":m,l=C.color,s=C.textAlign,i=C.buttons,p=C.tooltip,v=C.content,g=C.children,h=C.preserveWhitespace,N=(0,e.createVNode)(1,"tr",(0,a.classes)(["LabeledList__row",u]),[(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:l,textAlign:s,className:(0,a.classes)(["LabeledList__cell","LabeledList__content"]),colSpan:i?void 0:2,preserveWhitespace:h,children:[v,g]}),i&&(0,e.createVNode)(1,"td","LabeledList__cell LabeledList__buttons",i,0)],0);return p&&(N=(0,e.createComponentVNode)(2,f.Tooltip,{content:p,children:N})),N};y.defaultHooks=a.pureComponentHooks;var S=function(C){var u=C.size?(0,t.unit)(Math.max(0,C.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":u,"padding-bottom":u}}),2)};S.defaultHooks=a.pureComponentHooks,V.Item=y,V.Divider=S},97539:function(w,r,n){"use strict";r.__esModule=!0,r.Modal=void 0;var e=n(96524),a=n(28234),t=n(3051),o=n(72358),f=["className","children","onEnter"];/** + */var V=r.LabeledList=function(){function k(v){var i=v.children;return(0,e.createVNode)(1,"table","LabeledList",i,0)}return k}();V.defaultHooks=a.pureComponentHooks;var y=function(v){var i=v.className,c=v.label,m=v.labelColor,d=m===void 0?"label":m,u=v.color,s=v.textAlign,l=v.buttons,p=v.tooltip,C=v.content,g=v.children,h=v.preserveWhitespace,N=(0,e.createVNode)(1,"tr",(0,a.classes)(["LabeledList__row",i]),[(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:u,textAlign:s,className:(0,a.classes)(["LabeledList__cell","LabeledList__content"]),colSpan:l?void 0:2,preserveWhitespace:h,children:[C,g]}),l&&(0,e.createVNode)(1,"td","LabeledList__cell LabeledList__buttons",l,0)],0);return p&&(N=(0,e.createComponentVNode)(2,f.Tooltip,{content:p,children:N})),N};y.defaultHooks=a.pureComponentHooks;var S=function(v){var i=v.size?(0,t.unit)(Math.max(0,v.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":i,"padding-bottom":i}}),2)};S.defaultHooks=a.pureComponentHooks,V.Item=y,V.Divider=S},97539:function(w,r,n){"use strict";r.__esModule=!0,r.Modal=void 0;var e=n(96524),a=n(28234),t=n(3051),o=n(72358),f=["className","children","onEnter"];/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */function V(S,k){if(S==null)return{};var C={},u=Object.keys(S),c,m;for(m=0;m=0)&&(C[c]=S[c]);return C}var y=r.Modal=function(){function S(k){var C=k.className,u=k.children,c=k.onEnter,m=V(k,f),d;return c&&(d=function(){function l(s){s.keyCode===13&&c(s)}return l}()),(0,e.createComponentVNode)(2,o.Dimmer,{onKeyDown:d,children:(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,a.classes)(["Modal",C,(0,t.computeBoxClassName)(m)]),u,0,Object.assign({},(0,t.computeBoxProps)(m))))})}return S}()},55830:function(w,r,n){"use strict";r.__esModule=!0,r.NanoMap=void 0;var e=n(96524),a=n(24674),t=n(17899),o=n(91097),f=n(66397),V=n(17442);function y(l,s){l.prototype=Object.create(s.prototype),l.prototype.constructor=l,S(l,s)}function S(l,s){return S=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function i(p,v){return p.__proto__=v,p}return i}(),S(l,s)}var k=function(s){return s.stopPropagation&&s.stopPropagation(),s.preventDefault&&s.preventDefault(),s.cancelBubble=!0,s.returnValue=!1,!1},C=r.NanoMap=function(l){function s(p){var v;v=l.call(this,p)||this;var g=window.innerWidth/2-256,h=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),I=N.screenX-B.originX,L=N.screenY-B.originY;return b.dragging?(B.offsetX+=I,B.offsetY+=L,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 I=Math.min(Math.max(b,1),8),L=(I-B.zoom)*1.5;return B.zoom=I,B.offsetX=B.offsetX-262*L,B.offsetY=B.offsetY-256*L,p.onZoom&&p.onZoom(B.zoom),B})},v}y(s,l);var i=s.prototype;return i.render=function(){function p(){var v=(0,t.useBackend)(this.context),g=v.config,h=this.state,N=h.dragging,b=h.offsetX,B=h.offsetY,I=h.zoom,L=I===void 0?1:I,T=this.props.children,A=g.map+"_nanomap_z1.png",x=510*L+"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:N?"move":"auto"},M={width:"100%",height:"100%",position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"};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)(A),style:M}),(0,e.createComponentVNode)(2,a.Box,{children:T})]}),(0,e.createComponentVNode)(2,c,{zoom:L,onZoom:this.handleZoom})]})}return p}(),s}(e.Component),u=function(s,i){var p=s.x,v=s.y,g=s.zoom,h=g===void 0?1:g,N=s.icon,b=s.tooltip,B=s.color,I=p*2*h-h-3,L=v*2*h-h-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:L+"px",left:I+"px",children:(0,e.createComponentVNode)(2,a.Icon,{name:N,color:B,fontSize:"6px"})})}),2)};C.Marker=u;var c=function(s,i){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,f.Slider,{minValue:1,maxValue:8,stepPixelSize:10,format:function(){function p(v){return v+"x"}return p}(),value:s.zoom,onDrag:function(){function p(v,g){return s.onZoom(v,g)}return p}()})})})})};C.Zoomer=c;var m,d=function(l){function s(p){var v;v=l.call(this,p)||this;var g=(0,t.useBackend)(v.props.context),h=g.act;return v.state={color:v.props.color},v.handleClick=function(N){m!==void 0&&m.setState({color:"blue"}),h("switch_camera",{name:v.props.name}),m=v,v.setState({color:"green"})},v}y(s,l);var i=s.prototype;return i.render=function(){function p(){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 p}(),s}(e.Component);C.NanoButton=d},14899:function(w,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 v={},i=Object.keys(S),c,m;for(m=0;m=0)&&(v[c]=S[c]);return v}var y=r.Modal=function(){function S(k){var v=k.className,i=k.children,c=k.onEnter,m=V(k,f),d;return c&&(d=function(){function u(s){s.keyCode===13&&c(s)}return u}()),(0,e.createComponentVNode)(2,o.Dimmer,{onKeyDown:d,children:(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,a.classes)(["Modal",v,(0,t.computeBoxClassName)(m)]),i,0,Object.assign({},(0,t.computeBoxProps)(m))))})}return S}()},55830:function(w,r,n){"use strict";r.__esModule=!0,r.NanoMap=void 0;var e=n(96524),a=n(24674),t=n(17899),o=n(91097),f=n(66397),V=n(17442);function y(u,s){u.prototype=Object.create(s.prototype),u.prototype.constructor=u,S(u,s)}function S(u,s){return S=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function l(p,C){return p.__proto__=C,p}return l}(),S(u,s)}var k=function(s){return s.stopPropagation&&s.stopPropagation(),s.preventDefault&&s.preventDefault(),s.cancelBubble=!0,s.returnValue=!1,!1},v=r.NanoMap=function(u){function s(p){var C;C=u.call(this,p)||this;var g=window.innerWidth/2-256,h=window.innerHeight/2-256;return C.state={offsetX:128,offsetY:48,transform:"none",dragging:!1,originX:null,originY:null,zoom:1},C.handleDragStart=function(N){C.ref=N.target,C.setState({dragging:!1,originX:N.screenX,originY:N.screenY}),document.addEventListener("mousemove",C.handleDragMove),document.addEventListener("mouseup",C.handleDragEnd),k(N)},C.handleDragMove=function(N){C.setState(function(b){var B=Object.assign({},b),I=N.screenX-B.originX,L=N.screenY-B.originY;return b.dragging?(B.offsetX+=I,B.offsetY+=L,B.originX=N.screenX,B.originY=N.screenY):B.dragging=!0,B}),k(N)},C.handleDragEnd=function(N){C.setState({dragging:!1,originX:null,originY:null}),document.removeEventListener("mousemove",C.handleDragMove),document.removeEventListener("mouseup",C.handleDragEnd),k(N)},C.handleZoom=function(N,b){C.setState(function(B){var I=Math.min(Math.max(b,1),8),L=(I-B.zoom)*1.5;return B.zoom=I,B.offsetX=B.offsetX-262*L,B.offsetY=B.offsetY-256*L,p.onZoom&&p.onZoom(B.zoom),B})},C}y(s,u);var l=s.prototype;return l.render=function(){function p(){var C=(0,t.useBackend)(this.context),g=C.config,h=this.state,N=h.dragging,b=h.offsetX,B=h.offsetY,I=h.zoom,L=I===void 0?1:I,T=this.props.children,A=g.map+"_nanomap_z1.png",x=510*L+"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:N?"move":"auto"},M={width:"100%",height:"100%",position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"};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)(A),style:M}),(0,e.createComponentVNode)(2,a.Box,{children:T})]}),(0,e.createComponentVNode)(2,c,{zoom:L,onZoom:this.handleZoom})]})}return p}(),s}(e.Component),i=function(s,l){var p=s.x,C=s.y,g=s.zoom,h=g===void 0?1:g,N=s.icon,b=s.tooltip,B=s.color,I=p*2*h-h-3,L=C*2*h-h-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:L+"px",left:I+"px",children:(0,e.createComponentVNode)(2,a.Icon,{name:N,color:B,fontSize:"6px"})})}),2)};v.Marker=i;var c=function(s,l){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,f.Slider,{minValue:1,maxValue:8,stepPixelSize:10,format:function(){function p(C){return C+"x"}return p}(),value:s.zoom,onDrag:function(){function p(C,g){return s.onZoom(C,g)}return p}()})})})})};v.Zoomer=c;var m,d=function(u){function s(p){var C;C=u.call(this,p)||this;var g=(0,t.useBackend)(C.props.context),h=g.act;return C.state={color:C.props.color},C.handleClick=function(N){m!==void 0&&m.setState({color:"blue"}),h("switch_camera",{name:C.props.name}),m=C,C.setState({color:"green"})},C}y(s,u);var l=s.prototype;return l.render=function(){function p(){var C=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:C+"px",children:(0,e.createComponentVNode)(2,a.Tooltip,{content:this.props.tooltip})},this.props.key)}return p}(),s}(e.Component);v.NanoButton=d},14899:function(w,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 f(y,S){if(y==null)return{};var k={},C=Object.keys(y),u,c;for(c=0;c=0)&&(k[u]=y[u]);return k}var V=r.NoticeBox=function(){function y(S){var k=S.className,C=S.color,u=S.info,c=S.warning,m=S.success,d=S.danger,l=f(S,o);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,t.Box,Object.assign({className:(0,a.classes)(["NoticeBox",C&&"NoticeBox--color--"+C,u&&"NoticeBox--type--info",m&&"NoticeBox--type--success",d&&"NoticeBox--type--danger",k])},l)))}return y}();V.defaultHooks=a.pureComponentHooks},5985:function(w,r,n){"use strict";r.__esModule=!0,r.NumberInput=void 0;var e=n(96524),a=n(36121),t=n(28234),o=n(65416),f=n(3051);function V(C,u){C.prototype=Object.create(u.prototype),C.prototype.constructor=C,y(C,u)}function y(C,u){return y=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function c(m,d){return m.__proto__=d,m}return c}(),y(C,u)}/** + */function f(y,S){if(y==null)return{};var k={},v=Object.keys(y),i,c;for(c=0;c=0)&&(k[i]=y[i]);return k}var V=r.NoticeBox=function(){function y(S){var k=S.className,v=S.color,i=S.info,c=S.warning,m=S.success,d=S.danger,u=f(S,o);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,t.Box,Object.assign({className:(0,a.classes)(["NoticeBox",v&&"NoticeBox--color--"+v,i&&"NoticeBox--type--info",m&&"NoticeBox--type--success",d&&"NoticeBox--type--danger",k])},u)))}return y}();V.defaultHooks=a.pureComponentHooks},5985:function(w,r,n){"use strict";r.__esModule=!0,r.NumberInput=void 0;var e=n(96524),a=n(36121),t=n(28234),o=n(65416),f=n(3051);function V(v,i){v.prototype=Object.create(i.prototype),v.prototype.constructor=v,y(v,i)}function y(v,i){return y=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function c(m,d){return m.__proto__=d,m}return c}(),y(v,i)}/** * @file * @copyright 2020 Aleksej Komarov * @license MIT -*/var S=400,k=r.NumberInput=function(C){function u(m){var d;d=C.call(this,m)||this;var l=m.value;return d.inputRef=(0,e.createRef)(),d.state={value:l,dragging:!1,editing:!1,internalValue:null,origin:null,suppressingFlicker:!1},d.flickerTimer=null,d.suppressFlicker=function(){var s=d.props.suppressFlicker;s>0&&(d.setState({suppressingFlicker:!0}),clearTimeout(d.flickerTimer),d.flickerTimer=setTimeout(function(){return d.setState({suppressingFlicker:!1})},s))},d.handleDragStart=function(s){var i=d.props.value,p=d.state.editing;p||(document.body.style["pointer-events"]="none",d.ref=s.target,d.setState({dragging:!1,origin:s.screenY,value:i,internalValue:i}),d.timer=setTimeout(function(){d.setState({dragging:!0})},250),d.dragInterval=setInterval(function(){var v=d.state,g=v.dragging,h=v.value,N=d.props.onDrag;g&&N&&N(s,h)},d.props.updateRate||S),document.addEventListener("mousemove",d.handleDragMove),document.addEventListener("mouseup",d.handleDragEnd))},d.handleDragMove=function(s){var i=d.props,p=i.minValue,v=i.maxValue,g=i.step,h=i.stepPixelSize;d.setState(function(N){var b=Object.assign({},N),B=b.origin-s.screenY;if(N.dragging){var I=Number.isFinite(p)?p%g:0;b.internalValue=(0,a.clamp)(b.internalValue+B*g/h,p-g,v+g),b.value=(0,a.clamp)(b.internalValue-b.internalValue%g+I,p,v),b.origin=s.screenY}else Math.abs(B)>4&&(b.dragging=!0);return b})},d.handleDragEnd=function(s){var i=d.props,p=i.onChange,v=i.onDrag,g=d.state,h=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:!h,origin:null}),document.removeEventListener("mousemove",d.handleDragMove),document.removeEventListener("mouseup",d.handleDragEnd),h)d.suppressFlicker(),p&&p(s,N),v&&v(s,N);else if(d.inputRef){var B=d.inputRef.current;B.value=b;try{B.focus(),B.select()}catch(I){}}},d}V(u,C);var c=u.prototype;return c.render=function(){function m(){var d=this,l=this.state,s=l.dragging,i=l.editing,p=l.value,v=l.suppressingFlicker,g=this.props,h=g.className,N=g.fluid,b=g.animated,B=g.value,I=g.unit,L=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=p);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,f.Box,{className:(0,t.classes)(["NumberInput",N&&"NumberInput--fluid",h]),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-L)/(T-L)*100,0,100)+"%"}}),2),F,(0,e.createVNode)(64,"input","NumberInput__input",null,1,{style:{display:i?void 0:"none",height:A,"line-height":E,"font-size":M},onBlur:function(){function W(_){if(i){var K=(0,a.clamp)(parseFloat(_.target.value),L,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),L,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 m}(),u}(e.Component);k.defaultHooks=t.pureComponentHooks,k.defaultProps={minValue:-1/0,maxValue:1/0,step:1,stepPixelSize:1,suppressFlicker:50}},37056:function(w,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,C){return k.__proto__=C,k}return S}(),o(V,y)}var f=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 C=this,u=this.props,c=u.additionalStyles,m=u.options;if(this.renderedContent=document.createElement("div"),c)for(var d=0,l=Object.entries(c);d0&&(d.setState({suppressingFlicker:!0}),clearTimeout(d.flickerTimer),d.flickerTimer=setTimeout(function(){return d.setState({suppressingFlicker:!1})},s))},d.handleDragStart=function(s){var l=d.props.value,p=d.state.editing;p||(document.body.style["pointer-events"]="none",d.ref=s.target,d.setState({dragging:!1,origin:s.screenY,value:l,internalValue:l}),d.timer=setTimeout(function(){d.setState({dragging:!0})},250),d.dragInterval=setInterval(function(){var C=d.state,g=C.dragging,h=C.value,N=d.props.onDrag;g&&N&&N(s,h)},d.props.updateRate||S),document.addEventListener("mousemove",d.handleDragMove),document.addEventListener("mouseup",d.handleDragEnd))},d.handleDragMove=function(s){var l=d.props,p=l.minValue,C=l.maxValue,g=l.step,h=l.stepPixelSize;d.setState(function(N){var b=Object.assign({},N),B=b.origin-s.screenY;if(N.dragging){var I=Number.isFinite(p)?p%g:0;b.internalValue=(0,a.clamp)(b.internalValue+B*g/h,p-g,C+g),b.value=(0,a.clamp)(b.internalValue-b.internalValue%g+I,p,C),b.origin=s.screenY}else Math.abs(B)>4&&(b.dragging=!0);return b})},d.handleDragEnd=function(s){var l=d.props,p=l.onChange,C=l.onDrag,g=d.state,h=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:!h,origin:null}),document.removeEventListener("mousemove",d.handleDragMove),document.removeEventListener("mouseup",d.handleDragEnd),h)d.suppressFlicker(),p&&p(s,N),C&&C(s,N);else if(d.inputRef){var B=d.inputRef.current;B.value=b;try{B.focus(),B.select()}catch(I){}}},d}V(i,v);var c=i.prototype;return c.render=function(){function m(){var d=this,u=this.state,s=u.dragging,l=u.editing,p=u.value,C=u.suppressingFlicker,g=this.props,h=g.className,N=g.fluid,b=g.animated,B=g.value,I=g.unit,L=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||C)&&(D=p);var F=(0,e.createVNode)(1,"div","NumberInput__content",[b&&!s&&!C?(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:D,format:j}):j?j(D):D,I?" "+I:""],0);return(0,e.createComponentVNode)(2,f.Box,{className:(0,t.classes)(["NumberInput",N&&"NumberInput--fluid",h]),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-L)/(T-L)*100,0,100)+"%"}}),2),F,(0,e.createVNode)(64,"input","NumberInput__input",null,1,{style:{display:l?void 0:"none",height:A,"line-height":E,"font-size":M},onBlur:function(){function W(U){if(l){var K=(0,a.clamp)(parseFloat(U.target.value),L,T);if(Number.isNaN(K)){d.setState({editing:!1});return}d.setState({editing:!1,value:K}),d.suppressFlicker(),P&&P(U,K),R&&R(U,K)}}return W}(),onKeyDown:function(){function W(U){if(U.keyCode===13){var K=(0,a.clamp)(parseFloat(U.target.value),L,T);if(Number.isNaN(K)){d.setState({editing:!1});return}d.setState({editing:!1,value:K}),d.suppressFlicker(),P&&P(U,K),R&&R(U,K);return}if(U.keyCode===27){d.setState({editing:!1});return}}return W}()},null,this.inputRef)]})}return m}(),i}(e.Component);k.defaultHooks=t.pureComponentHooks,k.defaultProps={minValue:-1/0,maxValue:1/0,step:1,stepPixelSize:1,suppressFlicker:50}},37056:function(w,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,v){return k.__proto__=v,k}return S}(),o(V,y)}var f=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 v=this,i=this.props,c=i.additionalStyles,m=i.options;if(this.renderedContent=document.createElement("div"),c)for(var d=0,u=Object.entries(c);d=0)&&(d[s]=c[s]);return d}var C=r.ProgressBar=function(){function c(m){var d=m.className,l=m.value,s=m.minValue,i=s===void 0?0:s,p=m.maxValue,v=p===void 0?1:p,g=m.color,h=m.ranges,N=h===void 0?{}:h,b=m.children,B=m.fractionDigits,I=B===void 0?0:B,L=k(m,f),T=(0,a.scale)(l,i,v),A=b!==void 0,x=g||(0,a.keyOfMatchingRange)(l,N)||"default";return(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,t.classes)(["ProgressBar","ProgressBar--color--"+x,d,(0,o.computeBoxClassName)(L)]),[(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)(L))))}return c}();C.defaultHooks=t.pureComponentHooks;var u=r.ProgressBarCountdown=function(c){function m(l){var s;return s=c.call(this,l)||this,s.timer=null,s.state={value:Math.max(l.current*100,0)},s}y(m,c);var d=m.prototype;return d.tick=function(){function l(){var s=Math.max(this.state.value+this.props.rate,0);s<=0&&clearInterval(this.timer),this.setState(function(i){return{value:s}})}return l}(),d.componentDidMount=function(){function l(){var s=this;this.timer=setInterval(function(){return s.tick()},this.props.rate)}return l}(),d.componentWillUnmount=function(){function l(){clearInterval(this.timer)}return l}(),d.render=function(){function l(){var s=this.props,i=s.start,p=s.current,v=s.end,g=k(s,V),h=(this.state.value/100-i)/(v-i);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,C,Object.assign({value:h},g)))}return l}(),m}(e.Component);u.defaultProps={rate:1e3},C.Countdown=u},49977:function(w,r,n){"use strict";r.__esModule=!0,r.RestrictedInput=void 0;var e=n(96524),a=n(28234),t=n(36121),o=n(3051),f=n(68100),V=["onChange","onEnter","onInput","value"],y=["className","fluid","monospace"];function S(l,s){if(l==null)return{};var i={},p=Object.keys(l),v,g;for(g=0;g=0)&&(i[v]=l[v]);return i}function k(l,s){l.prototype=Object.create(s.prototype),l.prototype.constructor=l,C(l,s)}function C(l,s){return C=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function i(p,v){return p.__proto__=v,p}return i}(),C(l,s)}var u=0,c=1e4,m=function(s,i,p,v){var g=i||u,h=p||p===0?p: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,h))},d=r.RestrictedInput=function(l){function s(){var p;return p=l.call(this)||this,p.inputRef=(0,e.createRef)(),p.state={editing:!1},p.handleBlur=function(v){var g=p.state.editing;g&&p.setEditing(!1)},p.handleChange=function(v){var g=p.props,h=g.maxValue,N=g.minValue,b=g.onChange,B=g.allowFloats;v.target.value=m(v.target.value,N,h,B),b&&b(v,+v.target.value)},p.handleFocus=function(v){var g=p.state.editing;g||p.setEditing(!0)},p.handleInput=function(v){var g=p.state.editing,h=p.props.onInput;g||p.setEditing(!0),h&&h(v,+v.target.value)},p.handleKeyDown=function(v){var g=p.props,h=g.maxValue,N=g.minValue,b=g.onChange,B=g.onEnter,I=g.allowFloats;if(v.keyCode===f.KEY_ENTER){var L=m(v.target.value,N,h,I);p.setEditing(!1),b&&b(v,+L),B&&B(v,+L),v.target.blur();return}if(v.keyCode===f.KEY_ESCAPE){if(p.props.onEscape){p.props.onEscape(v);return}p.setEditing(!1),v.target.value=p.props.value,v.target.blur();return}},p}k(s,l);var i=s.prototype;return i.componentDidMount=function(){function p(){var v,g=this,h=this.props,N=h.maxValue,b=h.minValue,B=h.allowFloats,I=(v=this.props.value)==null?void 0:v.toString(),L=this.inputRef.current;L&&(L.value=m(I,b,N,B)),(this.props.autoFocus||this.props.autoSelect)&&setTimeout(function(){L.focus(),g.props.autoSelect&&L.select()},1)}return p}(),i.componentDidUpdate=function(){function p(v,g){var h,N,b=this.props,B=b.maxValue,I=b.minValue,L=b.allowFloats,T=this.state.editing,A=(h=v.value)==null?void 0:h.toString(),x=(N=this.props.value)==null?void 0:N.toString(),E=this.inputRef.current;E&&!T&&x!==A&&x!==E.value&&(E.value=m(x,I,B,L))}return p}(),i.setEditing=function(){function p(v){this.setState({editing:v})}return p}(),i.render=function(){function p(){var v=this.props,g=v.onChange,h=v.onEnter,N=v.onInput,b=v.value,B=S(v,V),I=B.className,L=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",L&&"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 p}(),s}(e.Component)},2083:function(w,r,n){"use strict";r.__esModule=!0,r.RoundGauge=void 0;var e=n(96524),a=n(36121),t=n(28234),o=n(65416),f=n(3051),V=["value","minValue","maxValue","ranges","alertAfter","format","size","className","style"];/** + */function y(c,m){c.prototype=Object.create(m.prototype),c.prototype.constructor=c,S(c,m)}function S(c,m){return S=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function d(u,s){return u.__proto__=s,u}return d}(),S(c,m)}function k(c,m){if(c==null)return{};var d={},u=Object.keys(c),s,l;for(l=0;l=0)&&(d[s]=c[s]);return d}var v=r.ProgressBar=function(){function c(m){var d=m.className,u=m.value,s=m.minValue,l=s===void 0?0:s,p=m.maxValue,C=p===void 0?1:p,g=m.color,h=m.ranges,N=h===void 0?{}:h,b=m.children,B=m.fractionDigits,I=B===void 0?0:B,L=k(m,f),T=(0,a.scale)(u,l,C),A=b!==void 0,x=g||(0,a.keyOfMatchingRange)(u,N)||"default";return(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,t.classes)(["ProgressBar","ProgressBar--color--"+x,d,(0,o.computeBoxClassName)(L)]),[(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)(L))))}return c}();v.defaultHooks=t.pureComponentHooks;var i=r.ProgressBarCountdown=function(c){function m(u){var s;return s=c.call(this,u)||this,s.timer=null,s.state={value:Math.max(u.current*100,0)},s}y(m,c);var d=m.prototype;return d.tick=function(){function u(){var s=Math.max(this.state.value+this.props.rate,0);s<=0&&clearInterval(this.timer),this.setState(function(l){return{value:s}})}return u}(),d.componentDidMount=function(){function u(){var s=this;this.timer=setInterval(function(){return s.tick()},this.props.rate)}return u}(),d.componentWillUnmount=function(){function u(){clearInterval(this.timer)}return u}(),d.render=function(){function u(){var s=this.props,l=s.start,p=s.current,C=s.end,g=k(s,V),h=(this.state.value/100-l)/(C-l);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,v,Object.assign({value:h},g)))}return u}(),m}(e.Component);i.defaultProps={rate:1e3},v.Countdown=i},49977:function(w,r,n){"use strict";r.__esModule=!0,r.RestrictedInput=void 0;var e=n(96524),a=n(28234),t=n(36121),o=n(3051),f=n(68100),V=["onChange","onEnter","onInput","value"],y=["className","fluid","monospace"];function S(u,s){if(u==null)return{};var l={},p=Object.keys(u),C,g;for(g=0;g=0)&&(l[C]=u[C]);return l}function k(u,s){u.prototype=Object.create(s.prototype),u.prototype.constructor=u,v(u,s)}function v(u,s){return v=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function l(p,C){return p.__proto__=C,p}return l}(),v(u,s)}var i=0,c=1e4,m=function(s,l,p,C){var g=l||i,h=p||p===0?p:c;if(!s||!s.length)return String(g);var N=C?parseFloat(s.replace(/[^\-\d.]/g,"")):parseInt(s.replace(/[^\-\d]/g,""),10);return isNaN(N)?String(g):String((0,t.clamp)(N,g,h))},d=r.RestrictedInput=function(u){function s(){var p;return p=u.call(this)||this,p.inputRef=(0,e.createRef)(),p.state={editing:!1},p.handleBlur=function(C){var g=p.state.editing;g&&p.setEditing(!1)},p.handleChange=function(C){var g=p.props,h=g.maxValue,N=g.minValue,b=g.onChange,B=g.allowFloats;C.target.value=m(C.target.value,N,h,B),b&&b(C,+C.target.value)},p.handleFocus=function(C){var g=p.state.editing;g||p.setEditing(!0)},p.handleInput=function(C){var g=p.state.editing,h=p.props.onInput;g||p.setEditing(!0),h&&h(C,+C.target.value)},p.handleKeyDown=function(C){var g=p.props,h=g.maxValue,N=g.minValue,b=g.onChange,B=g.onEnter,I=g.allowFloats;if(C.keyCode===f.KEY_ENTER){var L=m(C.target.value,N,h,I);p.setEditing(!1),b&&b(C,+L),B&&B(C,+L),C.target.blur();return}if(C.keyCode===f.KEY_ESCAPE){if(p.props.onEscape){p.props.onEscape(C);return}p.setEditing(!1),C.target.value=p.props.value,C.target.blur();return}},p}k(s,u);var l=s.prototype;return l.componentDidMount=function(){function p(){var C,g=this,h=this.props,N=h.maxValue,b=h.minValue,B=h.allowFloats,I=(C=this.props.value)==null?void 0:C.toString(),L=this.inputRef.current;L&&(L.value=m(I,b,N,B)),(this.props.autoFocus||this.props.autoSelect)&&setTimeout(function(){L.focus(),g.props.autoSelect&&L.select()},1)}return p}(),l.componentDidUpdate=function(){function p(C,g){var h,N,b=this.props,B=b.maxValue,I=b.minValue,L=b.allowFloats,T=this.state.editing,A=(h=C.value)==null?void 0:h.toString(),x=(N=this.props.value)==null?void 0:N.toString(),E=this.inputRef.current;E&&!T&&x!==A&&x!==E.value&&(E.value=m(x,I,B,L))}return p}(),l.setEditing=function(){function p(C){this.setState({editing:C})}return p}(),l.render=function(){function p(){var C=this.props,g=C.onChange,h=C.onEnter,N=C.onInput,b=C.value,B=S(C,V),I=B.className,L=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",L&&"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 p}(),s}(e.Component)},2083:function(w,r,n){"use strict";r.__esModule=!0,r.RoundGauge=void 0;var e=n(96524),a=n(36121),t=n(28234),o=n(65416),f=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,C){if(k==null)return{};var u={},c=Object.keys(k),m,d;for(d=0;d=0)&&(u[m]=k[m]);return u}var S=r.RoundGauge=function(){function k(C){var u=C.value,c=C.minValue,m=c===void 0?1:c,d=C.maxValue,l=d===void 0?1:d,s=C.ranges,i=C.alertAfter,p=C.format,v=C.size,g=v===void 0?1:v,h=C.className,N=C.style,b=y(C,V),B=(0,a.scale)(u,m,l),I=(0,a.clamp01)(B),L=s?{}:{primary:[0,1]};s&&Object.keys(s).forEach(function(A){var x=s[A];L[A]=[(0,a.scale)(x[0],m,l),(0,a.scale)(x[1],m,l)]});var T=null;return i=0)&&(c[d]=C[d]);return c}function y(C,u){C.prototype=Object.create(u.prototype),C.prototype.constructor=C,S(C,u)}function S(C,u){return S=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function c(m,d){return m.__proto__=d,m}return c}(),S(C,u)}/** + */function y(k,v){if(k==null)return{};var i={},c=Object.keys(k),m,d;for(d=0;d=0)&&(i[m]=k[m]);return i}var S=r.RoundGauge=function(){function k(v){var i=v.value,c=v.minValue,m=c===void 0?1:c,d=v.maxValue,u=d===void 0?1:d,s=v.ranges,l=v.alertAfter,p=v.format,C=v.size,g=C===void 0?1:C,h=v.className,N=v.style,b=y(v,V),B=(0,a.scale)(i,m,u),I=(0,a.clamp01)(B),L=s?{}:{primary:[0,1]};s&&Object.keys(s).forEach(function(A){var x=s[A];L[A]=[(0,a.scale)(x[0],m,u),(0,a.scale)(x[1],m,u)]});var T=null;return l=0)&&(c[d]=v[d]);return c}function y(v,i){v.prototype=Object.create(i.prototype),v.prototype.constructor=v,S(v,i)}function S(v,i){return S=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function c(m,d){return m.__proto__=d,m}return c}(),S(v,i)}/** * @file * @copyright 2020 Aleksej Komarov * @license MIT -*/var k=r.Section=function(C){function u(m){var d;return d=C.call(this,m)||this,d.scrollableRef=void 0,d.scrollable=void 0,d.scrollableRef=(0,e.createRef)(),d.scrollable=m.scrollable,d}y(u,C);var c=u.prototype;return c.componentDidMount=function(){function m(){this.scrollable&&(0,t.addScrollableNode)(this.scrollableRef.current)}return m}(),c.componentWillUnmount=function(){function m(){this.scrollable&&(0,t.removeScrollableNode)(this.scrollableRef.current)}return m}(),c.render=function(){function m(){var d=this.props,l=d.className,s=d.title,i=d.buttons,p=d.fill,v=d.fitted,g=d.scrollable,h=d.children,N=V(d,f),b=(0,a.canRender)(s)||(0,a.canRender)(i);return(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,a.classes)(["Section",p&&"Section--fill",v&&"Section--fitted",g&&"Section--scrollable",l,(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",i,0)],4),(0,e.createVNode)(1,"div","Section__rest",(0,e.createVNode)(1,"div","Section__content",h,0,null,null,this.scrollableRef),2)],0,Object.assign({},(0,o.computeBoxProps)(N))))}return m}(),u}(e.Component)},66397:function(w,r,n){"use strict";r.__esModule=!0,r.Slider=void 0;var e=n(96524),a=n(36121),t=n(28234),o=n(3051),f=n(27648),V=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(v){function i(m){var d;return d=v.call(this,m)||this,d.scrollableRef=void 0,d.scrollable=void 0,d.scrollableRef=(0,e.createRef)(),d.scrollable=m.scrollable,d}y(i,v);var c=i.prototype;return c.componentDidMount=function(){function m(){this.scrollable&&(0,t.addScrollableNode)(this.scrollableRef.current)}return m}(),c.componentWillUnmount=function(){function m(){this.scrollable&&(0,t.removeScrollableNode)(this.scrollableRef.current)}return m}(),c.render=function(){function m(){var d=this.props,u=d.className,s=d.title,l=d.buttons,p=d.fill,C=d.fitted,g=d.scrollable,h=d.children,N=V(d,f),b=(0,a.canRender)(s)||(0,a.canRender)(l);return(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,a.classes)(["Section",p&&"Section--fill",C&&"Section--fitted",g&&"Section--scrollable",u,(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",l,0)],4),(0,e.createVNode)(1,"div","Section__rest",(0,e.createVNode)(1,"div","Section__content",h,0,null,null,this.scrollableRef),2)],0,Object.assign({},(0,o.computeBoxProps)(N))))}return m}(),i}(e.Component)},66397:function(w,r,n){"use strict";r.__esModule=!0,r.Slider=void 0;var e=n(96524),a=n(36121),t=n(28234),o=n(3051),f=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(C,u){if(C==null)return{};var c={},m=Object.keys(C),d,l;for(l=0;l=0)&&(c[d]=C[d]);return c}var k=r.Slider=function(){function C(u){var c=u.animated,m=u.format,d=u.maxValue,l=u.minValue,s=u.onChange,i=u.onDrag,p=u.step,v=u.stepPixelSize,g=u.suppressFlicker,h=u.unit,N=u.value,b=u.className,B=u.fillValue,I=u.color,L=u.ranges,T=L===void 0?{}:L,A=u.children,x=u.disabled,E=S(u,y),M=A!==void 0;return(0,e.normalizeProps)((0,e.createComponentVNode)(2,f.DraggableControl,Object.assign({dragMatrix:[1,0]},{animated:c,format:m,maxValue:d,minValue:l,onChange:s,onDrag:i,step:p,stepPixelSize:v,suppressFlicker:g,unit:h,value:N,disabled:x},{children:function(){function j(P){var R=P.dragging,D=P.editing,F=P.value,W=P.displayValue,_=P.displayElement,K=P.inputElement,H=P.handleDragStart,X=B!=null,Y=(0,a.scale)(F,l,d),J=(0,a.scale)(B!=null?B:W,l,d),le=(0,a.scale)(W,l,d),ce=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--"+ce,b,(0,o.computeBoxClassName)(E)]),[(0,e.createVNode)(1,"div",(0,t.classes)(["ProgressBar__fill",X&&"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,le))*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)(le)*100+"%"}}),(0,e.createVNode)(1,"div","ProgressBar__content",M?A:_,0),K],0,Object.assign({disabled:x},(0,o.computeBoxProps)(E),{onMouseDown:H})))}return j}()})))}return C}()},24800:function(w,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"],f=["className","innerRef"],V=["className","hidden"];/** + */function S(v,i){if(v==null)return{};var c={},m=Object.keys(v),d,u;for(u=0;u=0)&&(c[d]=v[d]);return c}var k=r.Slider=function(){function v(i){var c=i.animated,m=i.format,d=i.maxValue,u=i.minValue,s=i.onChange,l=i.onDrag,p=i.step,C=i.stepPixelSize,g=i.suppressFlicker,h=i.unit,N=i.value,b=i.className,B=i.fillValue,I=i.color,L=i.ranges,T=L===void 0?{}:L,A=i.children,x=i.disabled,E=S(i,y),M=A!==void 0;return(0,e.normalizeProps)((0,e.createComponentVNode)(2,f.DraggableControl,Object.assign({dragMatrix:[1,0]},{animated:c,format:m,maxValue:d,minValue:u,onChange:s,onDrag:l,step:p,stepPixelSize:C,suppressFlicker:g,unit:h,value:N,disabled:x},{children:function(){function j(P){var R=P.dragging,D=P.editing,F=P.value,W=P.displayValue,U=P.displayElement,K=P.inputElement,H=P.handleDragStart,X=B!=null,Y=(0,a.scale)(F,u,d),J=(0,a.scale)(B!=null?B:W,u,d),ie=(0,a.scale)(W,u,d),ce=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--"+ce,b,(0,o.computeBoxClassName)(E)]),[(0,e.createVNode)(1,"div",(0,t.classes)(["ProgressBar__fill",X&&"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,ie))*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",U,0)],0,{style:{width:(0,a.clamp01)(ie)*100+"%"}}),(0,e.createVNode)(1,"div","ProgressBar__content",M?A:U,0),K],0,Object.assign({disabled:x},(0,o.computeBoxProps)(E),{onMouseDown:H})))}return j}()})))}return v}()},24800:function(w,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"],f=["className","innerRef"],V=["className","hidden"];/** * @file * @copyright 2021 Aleksej Komarov * @license MIT - */function y(u,c){if(u==null)return{};var m={},d=Object.keys(u),l,s;for(s=0;s=0)&&(m[l]=u[l]);return m}var S=r.Stack=function(){function u(c){var m=c.className,d=c.vertical,l=c.fill,s=y(c,o);return(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,a.classes)(["Stack",l&&"Stack--fill",d?"Stack--vertical":"Stack--horizontal",m,(0,t.computeFlexClassName)(c)]),null,1,Object.assign({},(0,t.computeFlexProps)(Object.assign({direction:d?"column":"row"},s)))))}return u}(),k=function(c){var m=c.className,d=c.innerRef,l=y(c,f);return(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,a.classes)(["Stack__item",m,(0,t.computeFlexItemClassName)(l)]),null,1,Object.assign({},(0,t.computeFlexItemProps)(l)),null,d))};S.Item=k;var C=function(c){var m=c.className,d=c.hidden,l=y(c,V);return(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,a.classes)(["Stack__item","Stack__divider",d&&"Stack__divider--hidden",m,(0,t.computeFlexItemClassName)(l)]),null,1,Object.assign({},(0,t.computeFlexItemProps)(l))))};S.Divider=C},5126:function(w,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"],f=["className","header"],V=["className","collapsing","header"];/** + */function y(i,c){if(i==null)return{};var m={},d=Object.keys(i),u,s;for(s=0;s=0)&&(m[u]=i[u]);return m}var S=r.Stack=function(){function i(c){var m=c.className,d=c.vertical,u=c.fill,s=y(c,o);return(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,a.classes)(["Stack",u&&"Stack--fill",d?"Stack--vertical":"Stack--horizontal",m,(0,t.computeFlexClassName)(c)]),null,1,Object.assign({},(0,t.computeFlexProps)(Object.assign({direction:d?"column":"row"},s)))))}return i}(),k=function(c){var m=c.className,d=c.innerRef,u=y(c,f);return(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,a.classes)(["Stack__item",m,(0,t.computeFlexItemClassName)(u)]),null,1,Object.assign({},(0,t.computeFlexItemProps)(u)),null,d))};S.Item=k;var v=function(c){var m=c.className,d=c.hidden,u=y(c,V);return(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,a.classes)(["Stack__item","Stack__divider",d&&"Stack__divider--hidden",m,(0,t.computeFlexItemClassName)(u)]),null,1,Object.assign({},(0,t.computeFlexItemProps)(u))))};S.Divider=v},5126:function(w,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"],f=["className","header"],V=["className","collapsing","header"];/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */function y(u,c){if(u==null)return{};var m={},d=Object.keys(u),l,s;for(s=0;s=0)&&(m[l]=u[l]);return m}var S=r.Table=function(){function u(c){var m=c.className,d=c.collapsing,l=c.children,s=y(c,o);return(0,e.normalizeProps)((0,e.createVNode)(1,"table",(0,a.classes)(["Table",d&&"Table--collapsing",m,(0,t.computeBoxClassName)(s)]),(0,e.createVNode)(1,"tbody",null,l,0),2,Object.assign({},(0,t.computeBoxProps)(s))))}return u}();S.defaultHooks=a.pureComponentHooks;var k=r.TableRow=function(){function u(c){var m=c.className,d=c.header,l=y(c,f);return(0,e.normalizeProps)((0,e.createVNode)(1,"tr",(0,a.classes)(["Table__row",d&&"Table__row--header",m,(0,t.computeBoxClassName)(c)]),null,1,Object.assign({},(0,t.computeBoxProps)(l))))}return u}();k.defaultHooks=a.pureComponentHooks;var C=r.TableCell=function(){function u(c){var m=c.className,d=c.collapsing,l=c.header,s=y(c,V);return(0,e.normalizeProps)((0,e.createVNode)(1,"td",(0,a.classes)(["Table__cell",d&&"Table__cell--collapsing",l&&"Table__cell--header",m,(0,t.computeBoxClassName)(c)]),null,1,Object.assign({},(0,t.computeBoxProps)(s))))}return u}();C.defaultHooks=a.pureComponentHooks,S.Row=k,S.Cell=C},26104:function(w,r,n){"use strict";r.__esModule=!0,r.Tabs=void 0;var e=n(96524),a=n(28234),t=n(3051),o=n(11253),f=["className","vertical","fill","fluid","children"],V=["className","selected","color","icon","leftSlot","rightSlot","children"];/** + */function y(i,c){if(i==null)return{};var m={},d=Object.keys(i),u,s;for(s=0;s=0)&&(m[u]=i[u]);return m}var S=r.Table=function(){function i(c){var m=c.className,d=c.collapsing,u=c.children,s=y(c,o);return(0,e.normalizeProps)((0,e.createVNode)(1,"table",(0,a.classes)(["Table",d&&"Table--collapsing",m,(0,t.computeBoxClassName)(s)]),(0,e.createVNode)(1,"tbody",null,u,0),2,Object.assign({},(0,t.computeBoxProps)(s))))}return i}();S.defaultHooks=a.pureComponentHooks;var k=r.TableRow=function(){function i(c){var m=c.className,d=c.header,u=y(c,f);return(0,e.normalizeProps)((0,e.createVNode)(1,"tr",(0,a.classes)(["Table__row",d&&"Table__row--header",m,(0,t.computeBoxClassName)(c)]),null,1,Object.assign({},(0,t.computeBoxProps)(u))))}return i}();k.defaultHooks=a.pureComponentHooks;var v=r.TableCell=function(){function i(c){var m=c.className,d=c.collapsing,u=c.header,s=y(c,V);return(0,e.normalizeProps)((0,e.createVNode)(1,"td",(0,a.classes)(["Table__cell",d&&"Table__cell--collapsing",u&&"Table__cell--header",m,(0,t.computeBoxClassName)(c)]),null,1,Object.assign({},(0,t.computeBoxProps)(s))))}return i}();v.defaultHooks=a.pureComponentHooks,S.Row=k,S.Cell=v},26104:function(w,r,n){"use strict";r.__esModule=!0,r.Tabs=void 0;var e=n(96524),a=n(28234),t=n(3051),o=n(11253),f=["className","vertical","fill","fluid","children"],V=["className","selected","color","icon","leftSlot","rightSlot","children"];/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */function y(C,u){if(C==null)return{};var c={},m=Object.keys(C),d,l;for(l=0;l=0)&&(c[d]=C[d]);return c}var S=r.Tabs=function(){function C(u){var c=u.className,m=u.vertical,d=u.fill,l=u.fluid,s=u.children,i=y(u,f);return(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,a.classes)(["Tabs",m?"Tabs--vertical":"Tabs--horizontal",d&&"Tabs--fill",l&&"Tabs--fluid",c,(0,t.computeBoxClassName)(i)]),s,0,Object.assign({},(0,t.computeBoxProps)(i))))}return C}(),k=function(u){var c=u.className,m=u.selected,d=u.color,l=u.icon,s=u.leftSlot,i=u.rightSlot,p=u.children,v=y(u,V);return(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,a.classes)(["Tab","Tabs__Tab","Tab--color--"+d,m&&"Tab--selected",c,(0,t.computeBoxClassName)(v)]),[(0,a.canRender)(s)&&(0,e.createVNode)(1,"div","Tab__left",s,0)||!!l&&(0,e.createVNode)(1,"div","Tab__left",(0,e.createComponentVNode)(2,o.Icon,{name:l}),2),(0,e.createVNode)(1,"div","Tab__text",p,0),(0,a.canRender)(i)&&(0,e.createVNode)(1,"div","Tab__right",i,0)],0,Object.assign({},(0,t.computeBoxProps)(v))))};S.Tab=k},67606:function(w,r,n){"use strict";r.__esModule=!0,r.TextArea=void 0;var e=n(96524),a=n(28234),t=n(3051),o=n(49034),f=n(68100),V=["onChange","onKeyDown","onKeyPress","onInput","onFocus","onBlur","onEnter","value","maxLength","placeholder"],y=["className","fluid"];function S(c,m){if(c==null)return{};var d={},l=Object.keys(c),s,i;for(i=0;i=0)&&(d[s]=c[s]);return d}function k(c,m){c.prototype=Object.create(m.prototype),c.prototype.constructor=c,C(c,m)}function C(c,m){return C=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function d(l,s){return l.__proto__=s,l}return d}(),C(c,m)}/** + */function y(v,i){if(v==null)return{};var c={},m=Object.keys(v),d,u;for(u=0;u=0)&&(c[d]=v[d]);return c}var S=r.Tabs=function(){function v(i){var c=i.className,m=i.vertical,d=i.fill,u=i.fluid,s=i.children,l=y(i,f);return(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,a.classes)(["Tabs",m?"Tabs--vertical":"Tabs--horizontal",d&&"Tabs--fill",u&&"Tabs--fluid",c,(0,t.computeBoxClassName)(l)]),s,0,Object.assign({},(0,t.computeBoxProps)(l))))}return v}(),k=function(i){var c=i.className,m=i.selected,d=i.color,u=i.icon,s=i.leftSlot,l=i.rightSlot,p=i.children,C=y(i,V);return(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,a.classes)(["Tab","Tabs__Tab","Tab--color--"+d,m&&"Tab--selected",c,(0,t.computeBoxClassName)(C)]),[(0,a.canRender)(s)&&(0,e.createVNode)(1,"div","Tab__left",s,0)||!!u&&(0,e.createVNode)(1,"div","Tab__left",(0,e.createComponentVNode)(2,o.Icon,{name:u}),2),(0,e.createVNode)(1,"div","Tab__text",p,0),(0,a.canRender)(l)&&(0,e.createVNode)(1,"div","Tab__right",l,0)],0,Object.assign({},(0,t.computeBoxProps)(C))))};S.Tab=k},67606:function(w,r,n){"use strict";r.__esModule=!0,r.TextArea=void 0;var e=n(96524),a=n(28234),t=n(3051),o=n(49034),f=n(68100),V=["onChange","onKeyDown","onKeyPress","onInput","onFocus","onBlur","onEnter","value","maxLength","placeholder"],y=["className","fluid"];function S(c,m){if(c==null)return{};var d={},u=Object.keys(c),s,l;for(l=0;l=0)&&(d[s]=c[s]);return d}function k(c,m){c.prototype=Object.create(m.prototype),c.prototype.constructor=c,v(c,m)}function v(c,m){return v=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function d(u,s){return u.__proto__=s,u}return d}(),v(c,m)}/** * @file * @copyright 2020 Aleksej Komarov * @author Warlockd * @license MIT -*/var u=r.TextArea=function(c){function m(l,s){var i;i=c.call(this,l,s)||this,i.textareaRef=l.innerRef||(0,e.createRef)(),i.fillerRef=(0,e.createRef)(),i.state={editing:!1};var p=l.dontUseTabForIndent,v=p===void 0?!1:p;return i.handleOnInput=function(g){var h=i.state.editing,N=i.props.onInput;h||i.setEditing(!0),N&&N(g,g.target.value)},i.handleOnChange=function(g){var h=i.state.editing,N=i.props.onChange;h&&i.setEditing(!1),N&&N(g,g.target.value)},i.handleKeyPress=function(g){var h=i.state.editing,N=i.props.onKeyPress;h||i.setEditing(!0),N&&N(g,g.target.value)},i.handleKeyDown=function(g){var h=i.state.editing,N=i.props,b=N.onChange,B=N.onInput,I=N.onEnter,L=N.onKeyDown;if(g.keyCode===f.KEY_ENTER){i.setEditing(!1),b&&b(g,g.target.value),B&&B(g,g.target.value),I&&I(g,g.target.value),i.props.selfClear&&(g.target.value="",g.target.blur());return}if(g.keyCode===f.KEY_ESCAPE){i.props.onEscape&&i.props.onEscape(g),i.setEditing(!1),i.props.selfClear?g.target.value="":(g.target.value=(0,o.toInputValue)(i.props.value),g.target.blur());return}if(h||i.setEditing(!0),L&&L(g,g.target.value),!v){var T=g.keyCode||g.which;if(T===f.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}}},i.handleFocus=function(g){var h=i.state.editing;h||i.setEditing(!0)},i.handleBlur=function(g){var h=i.state.editing,N=i.props.onChange;h&&(i.setEditing(!1),N&&N(g,g.target.value))},i}k(m,c);var d=m.prototype;return d.componentDidMount=function(){function l(){var s=this,i=this.props.value,p=this.textareaRef.current;p&&(p.value=(0,o.toInputValue)(i)),(this.props.autoFocus||this.props.autoSelect)&&setTimeout(function(){p.focus(),s.props.autoSelect&&p.select()},1)}return l}(),d.componentDidUpdate=function(){function l(s,i){var p=s.value,v=this.props.value,g=this.textareaRef.current;g&&typeof v=="string"&&p!==v&&(g.value=(0,o.toInputValue)(v))}return l}(),d.setEditing=function(){function l(s){this.setState({editing:s})}return l}(),d.getValue=function(){function l(){return this.textareaRef.current&&this.textareaRef.current.value}return l}(),d.render=function(){function l(){var s=this.props,i=s.onChange,p=s.onKeyDown,v=s.onKeyPress,g=s.onInput,h=s.onFocus,N=s.onBlur,b=s.onEnter,B=s.value,I=s.maxLength,L=s.placeholder,T=S(s,V),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:L,onChange:this.handleOnChange,onKeyDown:this.handleKeyDown,onKeyPress:this.handleKeyPress,onInput:this.handleOnInput,onFocus:this.handleFocus,onBlur:this.handleBlur,maxLength:I},null,this.textareaRef)})))}return l}(),m}(e.Component)},6303:function(w,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),f=(Math.floor(t)%60).toString(10);return[o,f].map(function(V){return V.length<2?"0"+V:V}).join(":")},e=r.TimeDisplay=function(){function a(t){var o=t.totalSeconds,f=o===void 0?0:o;return n(f)}return a}()},58749:function(w,r,n){"use strict";r.__esModule=!0,r.Tooltip=void 0;var e=n(96524),a=n(60023),t;function o(k,C){k.prototype=Object.create(C.prototype),k.prototype.constructor=k,f(k,C)}function f(k,C){return f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function u(c,m){return c.__proto__=m,c}return u}(),f(k,C)}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 C(){return k.apply(this,arguments)||this}o(C,k);var u=C.prototype;return u.getDOMNode=function(){function c(){return(0,e.findDOMfromVNode)(this.$LI,!0)}return c}(),u.componentDidMount=function(){function c(){var m=this,d=this.getDOMNode();d&&(d.addEventListener("mouseenter",function(){var l=C.renderedTooltip;l===void 0&&(l=document.createElement("div"),l.className="Tooltip",document.body.appendChild(l),C.renderedTooltip=l),C.currentHoveredElement=d,l.style.opacity="1",m.renderPopperContent()}),d.addEventListener("mouseleave",function(){m.fadeOut()}))}return c}(),u.fadeOut=function(){function c(){C.currentHoveredElement===this.getDOMNode()&&(C.currentHoveredElement=void 0,C.renderedTooltip.style.opacity="0")}return c}(),u.renderPopperContent=function(){function c(){var m=this,d=C.renderedTooltip;d&&(0,e.render)((0,e.createVNode)(1,"span",null,this.props.content,0),d,function(){var l=C.singletonPopper;l===void 0?(l=(0,a.createPopper)(C.virtualElement,d,Object.assign({},V,{placement:m.props.position||"auto"})),C.singletonPopper=l):(l.setOptions(Object.assign({},V,{placement:m.props.position||"auto"})),l.update())},this.context)}return c}(),u.componentDidUpdate=function(){function c(){C.currentHoveredElement===this.getDOMNode()&&this.renderPopperContent()}return c}(),u.componentWillUnmount=function(){function c(){this.fadeOut()}return c}(),u.render=function(){function c(){return this.props.children}return c}(),C}(e.Component);t=S,S.renderedTooltip=void 0,S.singletonPopper=void 0,S.currentHoveredElement=void 0,S.virtualElement={getBoundingClientRect:function(){function k(){var C,u;return(C=(u=t.currentHoveredElement)==null?void 0:u.getBoundingClientRect())!=null?C:y}return k}()}},24674:function(w,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.ImageButton=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 f=n(3051);r.Box=f.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 C=n(26236);r.ColorBox=C.ColorBox;var u=n(99509);r.Countdown=u.Countdown;var c=n(72358);r.Dimmer=c.Dimmer;var m=n(31647);r.Divider=m.Divider;var d=n(27648);r.DraggableControl=d.DraggableControl;var l=n(45293);r.Dropdown=l.Dropdown;var s=n(18963);r.Flex=s.Flex;var i=n(17956);r.Grid=i.Grid;var p=n(11253);r.Icon=p.Icon;var v=n(36587);r.ImageButton=v.ImageButton;var g=n(49034);r.Input=g.Input;var h=n(9836);r.Knob=h.Knob;var N=n(86259);r.LabeledControls=N.LabeledControls;var b=n(91097);r.LabeledList=b.LabeledList;var B=n(97539);r.Modal=B.Modal;var I=n(55830);r.NanoMap=I.NanoMap;var L=n(14899);r.NoticeBox=L.NoticeBox;var T=n(5985);r.NumberInput=T.NumberInput;var A=n(37056);r.Popper=A.Popper;var x=n(36146);r.ProgressBar=x.ProgressBar;var E=n(49977);r.RestrictedInput=E.RestrictedInput;var M=n(2083);r.RoundGauge=M.RoundGauge;var j=n(5201);r.Section=j.Section;var P=n(66397);r.Slider=P.Slider;var R=n(24800);r.Stack=R.Stack;var D=n(5126);r.Table=D.Table;var F=n(26104);r.Tabs=F.Tabs;var W=n(67606);r.TextArea=W.TextArea;var _=n(6303);r.TimeDisplay=_.TimeDisplay;var K=n(58749);r.Tooltip=K.Tooltip},38424:function(w,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"}},f=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 u(c,m){var d=String(c).toLowerCase(),l=y.find(function(s){return s.id===d||s.name.toLowerCase()===d});return l&&l.label||m||c}return u}(),k=r.getGasColor=function(){function u(c){var m=String(c).toLowerCase(),d=y.find(function(l){return l.id===m||l.name.toLowerCase()===m});return d&&d.color}return u}(),C=r.timeAgo=function(){function u(c,m){if(c>m)return"in the future";c=c/10,m=m/10;var d=m-c;if(d>3600){var l=Math.round(d/3600);return l+" hour"+(l===1?"":"s")+" ago"}else if(d>60){var s=Math.round(d/60);return s+" minute"+(s===1?"":"s")+" ago"}else{var i=Math.round(d);return i+" second"+(i===1?"":"s")+" ago"}return"just now"}return u}()},27598:function(w,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 i=r.TextArea=function(c){function m(u,s){var l;l=c.call(this,u,s)||this,l.textareaRef=u.innerRef||(0,e.createRef)(),l.fillerRef=(0,e.createRef)(),l.state={editing:!1};var p=u.dontUseTabForIndent,C=p===void 0?!1:p;return l.handleOnInput=function(g){var h=l.state.editing,N=l.props.onInput;h||l.setEditing(!0),N&&N(g,g.target.value)},l.handleOnChange=function(g){var h=l.state.editing,N=l.props.onChange;h&&l.setEditing(!1),N&&N(g,g.target.value)},l.handleKeyPress=function(g){var h=l.state.editing,N=l.props.onKeyPress;h||l.setEditing(!0),N&&N(g,g.target.value)},l.handleKeyDown=function(g){var h=l.state.editing,N=l.props,b=N.onChange,B=N.onInput,I=N.onEnter,L=N.onKeyDown;if(g.keyCode===f.KEY_ENTER){l.setEditing(!1),b&&b(g,g.target.value),B&&B(g,g.target.value),I&&I(g,g.target.value),l.props.selfClear&&(g.target.value="",g.target.blur());return}if(g.keyCode===f.KEY_ESCAPE){l.props.onEscape&&l.props.onEscape(g),l.setEditing(!1),l.props.selfClear?g.target.value="":(g.target.value=(0,o.toInputValue)(l.props.value),g.target.blur());return}if(h||l.setEditing(!0),L&&L(g,g.target.value),!C){var T=g.keyCode||g.which;if(T===f.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}}},l.handleFocus=function(g){var h=l.state.editing;h||l.setEditing(!0)},l.handleBlur=function(g){var h=l.state.editing,N=l.props.onChange;h&&(l.setEditing(!1),N&&N(g,g.target.value))},l}k(m,c);var d=m.prototype;return d.componentDidMount=function(){function u(){var s=this,l=this.props.value,p=this.textareaRef.current;p&&(p.value=(0,o.toInputValue)(l)),(this.props.autoFocus||this.props.autoSelect)&&setTimeout(function(){p.focus(),s.props.autoSelect&&p.select()},1)}return u}(),d.componentDidUpdate=function(){function u(s,l){var p=s.value,C=this.props.value,g=this.textareaRef.current;g&&typeof C=="string"&&p!==C&&(g.value=(0,o.toInputValue)(C))}return u}(),d.setEditing=function(){function u(s){this.setState({editing:s})}return u}(),d.getValue=function(){function u(){return this.textareaRef.current&&this.textareaRef.current.value}return u}(),d.render=function(){function u(){var s=this.props,l=s.onChange,p=s.onKeyDown,C=s.onKeyPress,g=s.onInput,h=s.onFocus,N=s.onBlur,b=s.onEnter,B=s.value,I=s.maxLength,L=s.placeholder,T=S(s,V),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:L,onChange:this.handleOnChange,onKeyDown:this.handleKeyDown,onKeyPress:this.handleKeyPress,onInput:this.handleOnInput,onFocus:this.handleFocus,onBlur:this.handleBlur,maxLength:I},null,this.textareaRef)})))}return u}(),m}(e.Component)},6303:function(w,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),f=(Math.floor(t)%60).toString(10);return[o,f].map(function(V){return V.length<2?"0"+V:V}).join(":")},e=r.TimeDisplay=function(){function a(t){var o=t.totalSeconds,f=o===void 0?0:o;return n(f)}return a}()},58749:function(w,r,n){"use strict";r.__esModule=!0,r.Tooltip=void 0;var e=n(96524),a=n(60023),t;function o(k,v){k.prototype=Object.create(v.prototype),k.prototype.constructor=k,f(k,v)}function f(k,v){return f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function i(c,m){return c.__proto__=m,c}return i}(),f(k,v)}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 v(){return k.apply(this,arguments)||this}o(v,k);var i=v.prototype;return i.getDOMNode=function(){function c(){return(0,e.findDOMfromVNode)(this.$LI,!0)}return c}(),i.componentDidMount=function(){function c(){var m=this,d=this.getDOMNode();d&&(d.addEventListener("mouseenter",function(){var u=v.renderedTooltip;u===void 0&&(u=document.createElement("div"),u.className="Tooltip",document.body.appendChild(u),v.renderedTooltip=u),v.currentHoveredElement=d,u.style.opacity="1",m.renderPopperContent()}),d.addEventListener("mouseleave",function(){m.fadeOut()}))}return c}(),i.fadeOut=function(){function c(){v.currentHoveredElement===this.getDOMNode()&&(v.currentHoveredElement=void 0,v.renderedTooltip.style.opacity="0")}return c}(),i.renderPopperContent=function(){function c(){var m=this,d=v.renderedTooltip;d&&(0,e.render)((0,e.createVNode)(1,"span",null,this.props.content,0),d,function(){var u=v.singletonPopper;u===void 0?(u=(0,a.createPopper)(v.virtualElement,d,Object.assign({},V,{placement:m.props.position||"auto"})),v.singletonPopper=u):(u.setOptions(Object.assign({},V,{placement:m.props.position||"auto"})),u.update())},this.context)}return c}(),i.componentDidUpdate=function(){function c(){v.currentHoveredElement===this.getDOMNode()&&this.renderPopperContent()}return c}(),i.componentWillUnmount=function(){function c(){this.fadeOut()}return c}(),i.render=function(){function c(){return this.props.children}return c}(),v}(e.Component);t=S,S.renderedTooltip=void 0,S.singletonPopper=void 0,S.currentHoveredElement=void 0,S.virtualElement={getBoundingClientRect:function(){function k(){var v,i;return(v=(i=t.currentHoveredElement)==null?void 0:i.getBoundingClientRect())!=null?v:y}return k}()}},24674:function(w,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.ImageButton=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 f=n(3051);r.Box=f.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 v=n(26236);r.ColorBox=v.ColorBox;var i=n(99509);r.Countdown=i.Countdown;var c=n(72358);r.Dimmer=c.Dimmer;var m=n(31647);r.Divider=m.Divider;var d=n(27648);r.DraggableControl=d.DraggableControl;var u=n(45293);r.Dropdown=u.Dropdown;var s=n(18963);r.Flex=s.Flex;var l=n(17956);r.Grid=l.Grid;var p=n(11253);r.Icon=p.Icon;var C=n(36587);r.ImageButton=C.ImageButton;var g=n(49034);r.Input=g.Input;var h=n(9836);r.Knob=h.Knob;var N=n(86259);r.LabeledControls=N.LabeledControls;var b=n(91097);r.LabeledList=b.LabeledList;var B=n(97539);r.Modal=B.Modal;var I=n(55830);r.NanoMap=I.NanoMap;var L=n(14899);r.NoticeBox=L.NoticeBox;var T=n(5985);r.NumberInput=T.NumberInput;var A=n(37056);r.Popper=A.Popper;var x=n(36146);r.ProgressBar=x.ProgressBar;var E=n(49977);r.RestrictedInput=E.RestrictedInput;var M=n(2083);r.RoundGauge=M.RoundGauge;var j=n(5201);r.Section=j.Section;var P=n(66397);r.Slider=P.Slider;var R=n(24800);r.Stack=R.Stack;var D=n(5126);r.Table=D.Table;var F=n(26104);r.Tabs=F.Tabs;var W=n(67606);r.TextArea=W.TextArea;var U=n(6303);r.TimeDisplay=U.TimeDisplay;var K=n(58749);r.Tooltip=K.Tooltip},38424:function(w,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"}},f=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 i(c,m){var d=String(c).toLowerCase(),u=y.find(function(s){return s.id===d||s.name.toLowerCase()===d});return u&&u.label||m||c}return i}(),k=r.getGasColor=function(){function i(c){var m=String(c).toLowerCase(),d=y.find(function(u){return u.id===m||u.name.toLowerCase()===m});return d&&d.color}return i}(),v=r.timeAgo=function(){function i(c,m){if(c>m)return"in the future";c=c/10,m=m/10;var d=m-c;if(d>3600){var u=Math.round(d/3600);return u+" hour"+(u===1?"":"s")+" ago"}else if(d>60){var s=Math.round(d/60);return s+" minute"+(s===1?"":"s")+" ago"}else{var l=Math.round(d);return l+" second"+(l===1?"":"s")+" ago"}return"just now"}return i}()},27598:function(w,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 f=n(4085),V=function(){return f.keys().map(function(k){return f(k)})},y=r.KitchenSink=function(){function S(k,C){var u=k.panel,c=(0,a.useLocalState)(C,"kitchenSinkTheme"),m=c[0],d=(0,a.useLocalState)(C,"pageIndex",0),l=d[0],s=d[1],i=V(),p=i[l],v=u?o.Pane:o.Window;return(0,e.createComponentVNode)(2,v,{title:"Kitchen Sink",width:600,height:500,theme:m,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:i.map(function(g,h){return(0,e.createComponentVNode)(2,t.Tabs.Tab,{color:"transparent",selected:h===l,onClick:function(){function N(){return s(h)}return N}(),children:g.meta.title},h)})})})}),(0,e.createComponentVNode)(2,t.Flex.Item,{position:"relative",grow:1,children:(0,e.createComponentVNode)(2,v.Content,{scrollable:!0,children:p.meta.render()})})]})})}return S}()},82574:function(w,r,n){"use strict";r.__esModule=!0,r.toggleKitchenSink=r.toggleDebugLayout=r.openExternalBrowser=void 0;var e=n(88605);/** + */var f=n(4085),V=function(){return f.keys().map(function(k){return f(k)})},y=r.KitchenSink=function(){function S(k,v){var i=k.panel,c=(0,a.useLocalState)(v,"kitchenSinkTheme"),m=c[0],d=(0,a.useLocalState)(v,"pageIndex",0),u=d[0],s=d[1],l=V(),p=l[u],C=i?o.Pane:o.Window;return(0,e.createComponentVNode)(2,C,{title:"Kitchen Sink",width:600,height:500,theme:m,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:l.map(function(g,h){return(0,e.createComponentVNode)(2,t.Tabs.Tab,{color:"transparent",selected:h===u,onClick:function(){function N(){return s(h)}return N}(),children:g.meta.title},h)})})})}),(0,e.createComponentVNode)(2,t.Flex.Item,{position:"relative",grow:1,children:(0,e.createComponentVNode)(2,C.Content,{scrollable:!0,children:p.meta.render()})})]})})}return S}()},82574:function(w,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 @@ -206,7 +206,7 @@ * @file * @copyright 2020 Aleksej Komarov * @license MIT - */var f=["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(C){C.code===e.KEY_F11&&k.dispatch((0,o.toggleDebugLayout)()),C.code===e.KEY_F12&&k.dispatch((0,o.toggleKitchenSink)()),C.ctrl&&C.alt&&C.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(C){return function(u){return C(u)}}}return S}(),y=r.relayMiddleware=function(){function S(k){var C=n(50719),u=location.search==="?external";return u?C.subscribe(function(c){var m=c.type,d=c.payload;m==="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(m){var d=m.type,l=m.payload,s=m.relayed;if(d===o.openExternalBrowser.type){window.open(location.href+"?external","_blank");return}return f.includes(d)&&!s&&!u&&C.sendMessage({type:"relay",payload:{windowId:Byond.windowId,action:m}}),c(m)}}}return S}()},31125:function(w,r){"use strict";r.__esModule=!0,r.debugReducer=void 0;/** + */var f=["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(v){v.code===e.KEY_F11&&k.dispatch((0,o.toggleDebugLayout)()),v.code===e.KEY_F12&&k.dispatch((0,o.toggleKitchenSink)()),v.ctrl&&v.alt&&v.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(v){return function(i){return v(i)}}}return S}(),y=r.relayMiddleware=function(){function S(k){var v=n(50719),i=location.search==="?external";return i?v.subscribe(function(c){var m=c.type,d=c.payload;m==="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(m){var d=m.type,u=m.payload,s=m.relayed;if(d===o.openExternalBrowser.type){window.open(location.href+"?external","_blank");return}return f.includes(d)&&!s&&!i&&v.sendMessage({type:"relay",payload:{windowId:Byond.windowId,action:m}}),c(m)}}}return S}()},31125:function(w,r){"use strict";r.__esModule=!0,r.debugReducer=void 0;/** * @file * @copyright 2020 Aleksej Komarov * @license MIT @@ -214,17 +214,17 @@ * @file * @copyright 2020 Aleksej Komarov * @license MIT - */var n=r.selectDebug=function(){function e(a){return a.debug}return e}()},83987:function(w,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,K=Object.defineProperty||function(be,ie,se){be[ie]=se.value},H=typeof Symbol=="function"?Symbol:{},X=H.iterator||"@@iterator",Y=H.asyncIterator||"@@asyncIterator",J=H.toStringTag||"@@toStringTag";function le(be,ie,se){return Object.defineProperty(be,ie,{value:se,enumerable:!0,configurable:!0,writable:!0}),be[ie]}try{le({},"")}catch(be){le=function(se,Ce,me){return se[Ce]=me}}function ce(be,ie,se,Ce){var me=ie&&ie.prototype instanceof ee?ie:ee,Ne=Object.create(me.prototype),Ae=new Oe(Ce||[]);return K(Ne,"_invoke",{value:ye(be,se,Ae)}),Ne}function fe(be,ie,se){try{return{type:"normal",arg:be.call(ie,se)}}catch(Ce){return{type:"throw",arg:Ce}}}F.wrap=ce;var pe="suspendedStart",he="suspendedYield",te="executing",Q="completed",ae={};function ee(){}function oe(){}function ue(){}var re={};le(re,X,function(){return this});var ge=Object.getPrototypeOf,Be=ge&&ge(ge(We([])));Be&&Be!==W&&_.call(Be,X)&&(re=Be);var ve=ue.prototype=ee.prototype=Object.create(re);function Ve(be){["next","throw","return"].forEach(function(ie){le(be,ie,function(se){return this._invoke(ie,se)})})}function ke(be,ie){function se(me,Ne,Ae,De){var je=fe(be[me],be,Ne);if(je.type!=="throw"){var _e=je.arg,Ue=_e.value;return Ue&&typeof Ue=="object"&&_.call(Ue,"__await")?ie.resolve(Ue.__await).then(function(ze){se("next",ze,Ae,De)},function(ze){se("throw",ze,Ae,De)}):ie.resolve(Ue).then(function(ze){_e.value=ze,Ae(_e)},function(ze){return se("throw",ze,Ae,De)})}De(je.arg)}var Ce;K(this,"_invoke",{value:function(){function me(Ne,Ae){function De(){return new ie(function(je,_e){se(Ne,Ae,je,_e)})}return Ce=Ce?Ce.then(De,De):De()}return me}()})}function ye(be,ie,se){var Ce=pe;return function(me,Ne){if(Ce===te)throw Error("Generator is already running");if(Ce===Q){if(me==="throw")throw Ne;return{value:D,done:!0}}for(se.method=me,se.arg=Ne;;){var Ae=se.delegate;if(Ae){var De=Ie(Ae,se);if(De){if(De===ae)continue;return De}}if(se.method==="next")se.sent=se._sent=se.arg;else if(se.method==="throw"){if(Ce===pe)throw Ce=Q,se.arg;se.dispatchException(se.arg)}else se.method==="return"&&se.abrupt("return",se.arg);Ce=te;var je=fe(be,ie,se);if(je.type==="normal"){if(Ce=se.done?Q:he,je.arg===ae)continue;return{value:je.arg,done:se.done}}je.type==="throw"&&(Ce=Q,se.method="throw",se.arg=je.arg)}}}function Ie(be,ie){var se=ie.method,Ce=be.iterator[se];if(Ce===D)return ie.delegate=null,se==="throw"&&be.iterator.return&&(ie.method="return",ie.arg=D,Ie(be,ie),ie.method==="throw")||se!=="return"&&(ie.method="throw",ie.arg=new TypeError("The iterator does not provide a '"+se+"' method")),ae;var me=fe(Ce,be.iterator,ie.arg);if(me.type==="throw")return ie.method="throw",ie.arg=me.arg,ie.delegate=null,ae;var Ne=me.arg;return Ne?Ne.done?(ie[be.resultName]=Ne.value,ie.next=be.nextLoc,ie.method!=="return"&&(ie.method="next",ie.arg=D),ie.delegate=null,ae):Ne:(ie.method="throw",ie.arg=new TypeError("iterator result is not an object"),ie.delegate=null,ae)}function we(be){var ie={tryLoc:be[0]};1 in be&&(ie.catchLoc=be[1]),2 in be&&(ie.finallyLoc=be[2],ie.afterLoc=be[3]),this.tryEntries.push(ie)}function xe(be){var ie=be.completion||{};ie.type="normal",delete ie.arg,be.completion=ie}function Oe(be){this.tryEntries=[{tryLoc:"root"}],be.forEach(we,this),this.reset(!0)}function We(be){if(be||be===""){var ie=be[X];if(ie)return ie.call(be);if(typeof be.next=="function")return be;if(!isNaN(be.length)){var se=-1,Ce=function(){function me(){for(;++se=0;--me){var Ne=this.tryEntries[me],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 me=this.tryEntries[Ce];if(me.tryLoc<=this.prev&&_.call(me,"finallyLoc")&&this.prev=0;--se){var Ce=this.tryEntries[se];if(Ce.finallyLoc===ie)return this.complete(Ce.completion,Ce.afterLoc),xe(Ce),ae}}return be}(),catch:function(){function be(ie){for(var se=this.tryEntries.length-1;se>=0;--se){var Ce=this.tryEntries[se];if(Ce.tryLoc===ie){var me=Ce.completion;if(me.type==="throw"){var Ne=me.arg;xe(Ce)}return Ne}}throw Error("illegal catch attempt")}return be}(),delegateYield:function(){function be(ie,se,Ce){return this.delegate={iterator:We(ie),resultName:se,nextLoc:Ce},this.method==="next"&&(this.arg=D),ae}return be}()},F}function f(D,F,W,_,K,H,X){try{var Y=D[H](X),J=Y.value}catch(le){W(le);return}Y.done?F(J):Promise.resolve(J).then(_,K)}function V(D){return function(){var F=this,W=arguments;return new Promise(function(_,K){var H=D.apply(F,W);function X(J){f(H,_,K,X,Y,"next",J)}function Y(J){f(H,_,K,X,Y,"throw",J)}X(void 0)})}}/** + */var n=r.selectDebug=function(){function e(a){return a.debug}return e}()},83987:function(w,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,U=W.hasOwnProperty,K=Object.defineProperty||function(be,le,se){be[le]=se.value},H=typeof Symbol=="function"?Symbol:{},X=H.iterator||"@@iterator",Y=H.asyncIterator||"@@asyncIterator",J=H.toStringTag||"@@toStringTag";function ie(be,le,se){return Object.defineProperty(be,le,{value:se,enumerable:!0,configurable:!0,writable:!0}),be[le]}try{ie({},"")}catch(be){ie=function(se,Ce,me){return se[Ce]=me}}function ce(be,le,se,Ce){var me=le&&le.prototype instanceof ee?le:ee,Ne=Object.create(me.prototype),Ae=new Oe(Ce||[]);return K(Ne,"_invoke",{value:ye(be,se,Ae)}),Ne}function fe(be,le,se){try{return{type:"normal",arg:be.call(le,se)}}catch(Ce){return{type:"throw",arg:Ce}}}F.wrap=ce;var pe="suspendedStart",he="suspendedYield",te="executing",Q="completed",ae={};function ee(){}function oe(){}function ue(){}var re={};ie(re,X,function(){return this});var ge=Object.getPrototypeOf,Be=ge&&ge(ge(We([])));Be&&Be!==W&&U.call(Be,X)&&(re=Be);var ve=ue.prototype=ee.prototype=Object.create(re);function Ve(be){["next","throw","return"].forEach(function(le){ie(be,le,function(se){return this._invoke(le,se)})})}function ke(be,le){function se(me,Ne,Ae,De){var je=fe(be[me],be,Ne);if(je.type!=="throw"){var Ue=je.arg,_e=Ue.value;return _e&&typeof _e=="object"&&U.call(_e,"__await")?le.resolve(_e.__await).then(function(ze){se("next",ze,Ae,De)},function(ze){se("throw",ze,Ae,De)}):le.resolve(_e).then(function(ze){Ue.value=ze,Ae(Ue)},function(ze){return se("throw",ze,Ae,De)})}De(je.arg)}var Ce;K(this,"_invoke",{value:function(){function me(Ne,Ae){function De(){return new le(function(je,Ue){se(Ne,Ae,je,Ue)})}return Ce=Ce?Ce.then(De,De):De()}return me}()})}function ye(be,le,se){var Ce=pe;return function(me,Ne){if(Ce===te)throw Error("Generator is already running");if(Ce===Q){if(me==="throw")throw Ne;return{value:D,done:!0}}for(se.method=me,se.arg=Ne;;){var Ae=se.delegate;if(Ae){var De=Ie(Ae,se);if(De){if(De===ae)continue;return De}}if(se.method==="next")se.sent=se._sent=se.arg;else if(se.method==="throw"){if(Ce===pe)throw Ce=Q,se.arg;se.dispatchException(se.arg)}else se.method==="return"&&se.abrupt("return",se.arg);Ce=te;var je=fe(be,le,se);if(je.type==="normal"){if(Ce=se.done?Q:he,je.arg===ae)continue;return{value:je.arg,done:se.done}}je.type==="throw"&&(Ce=Q,se.method="throw",se.arg=je.arg)}}}function Ie(be,le){var se=le.method,Ce=be.iterator[se];if(Ce===D)return le.delegate=null,se==="throw"&&be.iterator.return&&(le.method="return",le.arg=D,Ie(be,le),le.method==="throw")||se!=="return"&&(le.method="throw",le.arg=new TypeError("The iterator does not provide a '"+se+"' method")),ae;var me=fe(Ce,be.iterator,le.arg);if(me.type==="throw")return le.method="throw",le.arg=me.arg,le.delegate=null,ae;var Ne=me.arg;return Ne?Ne.done?(le[be.resultName]=Ne.value,le.next=be.nextLoc,le.method!=="return"&&(le.method="next",le.arg=D),le.delegate=null,ae):Ne:(le.method="throw",le.arg=new TypeError("iterator result is not an object"),le.delegate=null,ae)}function we(be){var le={tryLoc:be[0]};1 in be&&(le.catchLoc=be[1]),2 in be&&(le.finallyLoc=be[2],le.afterLoc=be[3]),this.tryEntries.push(le)}function xe(be){var le=be.completion||{};le.type="normal",delete le.arg,be.completion=le}function Oe(be){this.tryEntries=[{tryLoc:"root"}],be.forEach(we,this),this.reset(!0)}function We(be){if(be||be===""){var le=be[X];if(le)return le.call(be);if(typeof be.next=="function")return be;if(!isNaN(be.length)){var se=-1,Ce=function(){function me(){for(;++se=0;--me){var Ne=this.tryEntries[me],Ae=Ne.completion;if(Ne.tryLoc==="root")return Ce("end");if(Ne.tryLoc<=this.prev){var De=U.call(Ne,"catchLoc"),je=U.call(Ne,"finallyLoc");if(De&&je){if(this.prev=0;--Ce){var me=this.tryEntries[Ce];if(me.tryLoc<=this.prev&&U.call(me,"finallyLoc")&&this.prev=0;--se){var Ce=this.tryEntries[se];if(Ce.finallyLoc===le)return this.complete(Ce.completion,Ce.afterLoc),xe(Ce),ae}}return be}(),catch:function(){function be(le){for(var se=this.tryEntries.length-1;se>=0;--se){var Ce=this.tryEntries[se];if(Ce.tryLoc===le){var me=Ce.completion;if(me.type==="throw"){var Ne=me.arg;xe(Ce)}return Ne}}throw Error("illegal catch attempt")}return be}(),delegateYield:function(){function be(le,se,Ce){return this.delegate={iterator:We(le),resultName:se,nextLoc:Ce},this.method==="next"&&(this.arg=D),ae}return be}()},F}function f(D,F,W,U,K,H,X){try{var Y=D[H](X),J=Y.value}catch(ie){W(ie);return}Y.done?F(J):Promise.resolve(J).then(U,K)}function V(D){return function(){var F=this,W=arguments;return new Promise(function(U,K){var H=D.apply(F,W);function X(J){f(H,U,K,X,Y,"next",J)}function Y(J){f(H,U,K,X,Y,"throw",J)}X(void 0)})}}/** * @file * @copyright 2020 Aleksej Komarov * @license MIT -*/var y=(0,t.createLogger)("drag"),S=Byond.windowId,k=!1,C=!1,u=[0,0],c,m,d,l,s,i=r.setWindowKey=function(){function D(F){S=F}return D}(),p=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,u);return Byond.winset(Byond.windowId,{pos:W[0]+","+W[1]})}return D}(),h=r.setWindowSize=function(){function D(F){return Byond.winset(Byond.windowId,{size:F[0]+"x"+F[1]})}return D}(),N=r.getScreenPosition=function(){function D(){return[0-u[0],0-u[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 K=[W],H,X=0;Xle&&(H[Y]=le-W[Y],X=!0)}return[X,H]},x=r.dragStartHandler=function(){function D(F){y.log("drag start"),k=!0,m=[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],m)))},j=r.resizeStartHandler=function(){function D(F,W){return function(_){d=[F,W],y.log("resize start",d),C=!0,m=[window.screenLeft-_.screenX,window.screenTop-_.screenY],l=[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),C=!1,I()},R=function(F){C&&(F.preventDefault(),s=(0,a.vecAdd)(l,(0,a.vecMultiply)(d,(0,a.vecAdd)([F.screenX,F.screenY],(0,a.vecInverse)([window.screenLeft,window.screenTop]),m,[1,1]))),s[0]=Math.max(s[0],150),s[1]=Math.max(s[1],50),h(s))}},92700:function(w,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,v=!1,i=[0,0],c,m,d,u,s,l=r.setWindowKey=function(){function D(F){S=F}return D}(),p=r.getWindowPosition=function(){function D(){return[window.screenLeft,window.screenTop]}return D}(),C=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,i);return Byond.winset(Byond.windowId,{pos:W[0]+","+W[1]})}return D}(),h=r.setWindowSize=function(){function D(F){return Byond.winset(Byond.windowId,{size:F[0]+"x"+F[1]})}return D}(),N=r.getScreenPosition=function(){function D(){return[0-i[0],0-i[1]]}return D}(),b=r.getScreenSize=function(){function D(){return[window.screen.availWidth,window.screen.availHeight]}return D}(),B=function(F,W,U){U===void 0&&(U=50);for(var K=[W],H,X=0;Xie&&(H[Y]=ie-W[Y],X=!0)}return[X,H]},x=r.dragStartHandler=function(){function D(F){y.log("drag start"),k=!0,m=[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],m)))},j=r.resizeStartHandler=function(){function D(F,W){return function(U){d=[F,W],y.log("resize start",d),v=!0,m=[window.screenLeft-U.screenX,window.screenTop-U.screenY],u=[window.innerWidth,window.innerHeight],document.addEventListener("mousemove",R),document.addEventListener("mouseup",P),R(U)}}return D}(),P=function D(F){y.log("resize end",s),R(F),document.removeEventListener("mousemove",R),document.removeEventListener("mouseup",D),v=!1,I()},R=function(F){v&&(F.preventDefault(),s=(0,a.vecAdd)(u,(0,a.vecMultiply)(d,(0,a.vecAdd)([F.screenX,F.screenY],(0,a.vecInverse)([window.screenLeft,window.screenTop]),m,[1,1]))),s[0]=Math.max(s[0],150),s[1]=Math.max(s[1],50),h(s))}},92700:function(w,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,f=r.setupGlobalEvents=function(){function h(N){N===void 0&&(N={}),o=!!N.ignoreWindowFocus}return h}(),V,y=!0,S=function h(N,b){if(o){y=!0;return}if(V&&(clearTimeout(V),V=null),b){V=setTimeout(function(){return h(N)});return}y!==N&&(y=N,t.emit(N?"window-focus":"window-blur"),t.emit("window-focus-change",N))},k=null,C=r.canStealFocus=function(){function h(N){var b=String(N.tagName).toLowerCase();return b==="input"||b==="textarea"}return h}(),u=function(N){c(),k=N,k.addEventListener("blur",c)},c=function h(){k&&(k.removeEventListener("blur",h),k=null)},m=null,d=null,l=[],s=r.addScrollableNode=function(){function h(N){l.push(N)}return h}(),i=r.removeScrollableNode=function(){function h(N){var b=l.indexOf(N);b>=0&&l.splice(b,1)}return h}(),p=function(N){if(!(k||!y))for(var b=document.body;N&&N!==b;){if(l.includes(N)){if(N.contains(m))return;m=N,N.focus();return}N=N.parentNode}};window.addEventListener("mousemove",function(h){var N=h.target;N!==d&&(d=N,p(N))}),window.addEventListener("focusin",function(h){if(d=null,m=h.target,S(!0),C(h.target)){u(h.target);return}}),window.addEventListener("focusout",function(h){d=null,S(!1,!0)}),window.addEventListener("blur",function(h){d=null,S(!1,!0)}),window.addEventListener("beforeunload",function(h){S(!1)});var v={},g=r.KeyEvent=function(){function h(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 N=h.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}(),h}();document.addEventListener("keydown",function(h){if(!C(h.target)){var N=h.keyCode,b=new g(h,"keydown",v[N]);t.emit("keydown",b),t.emit("key",b),v[N]=!0}}),document.addEventListener("keyup",function(h){if(!C(h.target)){var N=h.keyCode,b=new g(h,"keyup");t.emit("keyup",b),t.emit("key",b),v[N]=!1}})},92017:function(w,r){"use strict";r.__esModule=!0,r.focusWindow=r.focusMap=void 0;/** + */var t=r.globalEvents=new e.EventEmitter,o=!1,f=r.setupGlobalEvents=function(){function h(N){N===void 0&&(N={}),o=!!N.ignoreWindowFocus}return h}(),V,y=!0,S=function h(N,b){if(o){y=!0;return}if(V&&(clearTimeout(V),V=null),b){V=setTimeout(function(){return h(N)});return}y!==N&&(y=N,t.emit(N?"window-focus":"window-blur"),t.emit("window-focus-change",N))},k=null,v=r.canStealFocus=function(){function h(N){var b=String(N.tagName).toLowerCase();return b==="input"||b==="textarea"}return h}(),i=function(N){c(),k=N,k.addEventListener("blur",c)},c=function h(){k&&(k.removeEventListener("blur",h),k=null)},m=null,d=null,u=[],s=r.addScrollableNode=function(){function h(N){u.push(N)}return h}(),l=r.removeScrollableNode=function(){function h(N){var b=u.indexOf(N);b>=0&&u.splice(b,1)}return h}(),p=function(N){if(!(k||!y))for(var b=document.body;N&&N!==b;){if(u.includes(N)){if(N.contains(m))return;m=N,N.focus();return}N=N.parentNode}};window.addEventListener("mousemove",function(h){var N=h.target;N!==d&&(d=N,p(N))}),window.addEventListener("focusin",function(h){if(d=null,m=h.target,S(!0),v(h.target)){i(h.target);return}}),window.addEventListener("focusout",function(h){d=null,S(!1,!0)}),window.addEventListener("blur",function(h){d=null,S(!1,!0)}),window.addEventListener("beforeunload",function(h){S(!1)});var C={},g=r.KeyEvent=function(){function h(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 N=h.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}(),h}();document.addEventListener("keydown",function(h){if(!v(h.target)){var N=h.keyCode,b=new g(h,"keydown",C[N]);t.emit("keydown",b),t.emit("key",b),C[N]=!0}}),document.addEventListener("keyup",function(h){if(!v(h.target)){var N=h.keyCode,b=new g(h,"keyup");t.emit("keyup",b),t.emit("key",b),C[N]=!1}})},92017:function(w,r){"use strict";r.__esModule=!0,r.focusWindow=r.focusMap=void 0;/** * Various focus helpers. * * @file @@ -234,23 +234,23 @@ * @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,C,u){if(C===void 0&&(C=-t),u===void 0&&(u=""),typeof k!="number"||!Number.isFinite(k))return k;var c=Math.floor(Math.log10(k)),m=Math.floor(Math.max(C*3,c)),d=Math.floor(c/3),l=Math.floor(m/3),s=(0,e.clamp)(t+l,0,a.length),i=a[s],p=k/Math.pow(1e3,l),v=d>C?2+l*3-m:0,g=(0,e.toFixed)(p,v)+" "+i+u;return g.trim()}return S}(),f=r.formatPower=function(){function S(k,C){return C===void 0&&(C=0),o(k,C,"W")}return S}(),V=r.formatMoney=function(){function S(k,C){if(C===void 0&&(C=0),!Number.isFinite(k))return k;var u=(0,e.round)(k,C);C>0&&(u=(0,e.toFixed)(k,C)),u=String(u);var c=u.length,m=u.indexOf(".");m===-1&&(m=c);for(var d="",l=0;l0&&l=0?"+":C<0?"\u2013":"",c=Math.abs(C);return c===1/0?c="Inf":c=(0,e.toFixed)(c,2),u+c+" dB"}return S}()},39952:function(w,r,n){"use strict";r.__esModule=!0,r.setupHotKeys=r.releaseHotKey=r.releaseHeldKeys=r.acquireHotKey=void 0;var e=f(n(68100)),a=n(92700),t=n(81856);function o(s){if(typeof WeakMap!="function")return null;var i=new WeakMap,p=new WeakMap;return(o=function(g){return g?p:i})(s)}function f(s,i){if(!i&&s&&s.__esModule)return s;if(s===null||typeof s!="object"&&typeof s!="function")return{default:s};var p=o(i);if(p&&p.has(s))return p.get(s);var v={__proto__:null},g=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var h in s)if(h!=="default"&&{}.hasOwnProperty.call(s,h)){var N=g?Object.getOwnPropertyDescriptor(s,h):null;N&&(N.get||N.set)?Object.defineProperty(v,h,N):v[h]=s[h]}return v.default=s,p&&p.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,v,i){if(v===void 0&&(v=-t),i===void 0&&(i=""),typeof k!="number"||!Number.isFinite(k))return k;var c=Math.floor(Math.log10(k)),m=Math.floor(Math.max(v*3,c)),d=Math.floor(c/3),u=Math.floor(m/3),s=(0,e.clamp)(t+u,0,a.length),l=a[s],p=k/Math.pow(1e3,u),C=d>v?2+u*3-m:0,g=(0,e.toFixed)(p,C)+" "+l+i;return g.trim()}return S}(),f=r.formatPower=function(){function S(k,v){return v===void 0&&(v=0),o(k,v,"W")}return S}(),V=r.formatMoney=function(){function S(k,v){if(v===void 0&&(v=0),!Number.isFinite(k))return k;var i=(0,e.round)(k,v);v>0&&(i=(0,e.toFixed)(k,v)),i=String(i);var c=i.length,m=i.indexOf(".");m===-1&&(m=c);for(var d="",u=0;u0&&u=0?"+":v<0?"\u2013":"",c=Math.abs(v);return c===1/0?c="Inf":c=(0,e.toFixed)(c,2),i+c+" dB"}return S}()},39952:function(w,r,n){"use strict";r.__esModule=!0,r.setupHotKeys=r.releaseHotKey=r.releaseHeldKeys=r.acquireHotKey=void 0;var e=f(n(68100)),a=n(92700),t=n(81856);function o(s){if(typeof WeakMap!="function")return null;var l=new WeakMap,p=new WeakMap;return(o=function(g){return g?p:l})(s)}function f(s,l){if(!l&&s&&s.__esModule)return s;if(s===null||typeof s!="object"&&typeof s!="function")return{default:s};var p=o(l);if(p&&p.has(s))return p.get(s);var C={__proto__:null},g=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var h in s)if(h!=="default"&&{}.hasOwnProperty.call(s,h)){var N=g?Object.getOwnPropertyDescriptor(s,h):null;N&&(N.get||N.set)?Object.defineProperty(C,h,N):C[h]=s[h]}return C.default=s,p&&p.set(s,C),C}/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */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={},C=function(i){if(i===16)return"Shift";if(i===17)return"Ctrl";if(i===18)return"Alt";if(i===33)return"Northeast";if(i===34)return"Southeast";if(i===35)return"Southwest";if(i===36)return"Northwest";if(i===37)return"West";if(i===38)return"North";if(i===39)return"East";if(i===40)return"South";if(i===45)return"Insert";if(i===46)return"Delete";if(i>=48&&i<=57||i>=65&&i<=90)return String.fromCharCode(i);if(i>=96&&i<=105)return"Numpad"+(i-96);if(i>=112&&i<=123)return"F"+(i-111);if(i===188)return",";if(i===189)return"-";if(i===190)return"."},u=function(i){var p=String(i);if(p==="Ctrl+F5"||p==="Ctrl+R"){location.reload();return}if(p!=="Ctrl+F"&&!(i.event.defaultPrevented||i.isModifierKey()||S.includes(i.code))){p==="F5"&&(i.event.preventDefault(),i.event.returnValue=!1);var v=C(i.code);if(v){var g=y[v];if(g)return V.debug("macro",g),Byond.command(g);if(i.isDown()&&!k[v]){k[v]=!0;var h='Key_Down "'+v+'"';return V.debug(h),Byond.command(h)}if(i.isUp()&&k[v]){k[v]=!1;var N='Key_Up "'+v+'"';return V.debug(N),Byond.command(N)}}}},c=r.acquireHotKey=function(){function s(i){S.push(i)}return s}(),m=r.releaseHotKey=function(){function s(i){var p=S.indexOf(i);p>=0&&S.splice(p,1)}return s}(),d=r.releaseHeldKeys=function(){function s(){for(var i=0,p=Object.keys(k);i=75?c="green":u.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:u.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:u.integrity/100})})}),(0,e.createComponentVNode)(2,t.Box,{color:"red",children:(0,e.createVNode)(1,"h2",null,u.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:!!u.has_laws&&(0,e.createComponentVNode)(2,t.Box,{children:u.laws.map(function(m,d){return(0,e.createComponentVNode)(2,t.Box,{children:m},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:u.wireless?"check":"times",content:u.wireless?"Enabled":"Disabled",color:u.wireless?"green":"red",onClick:function(){function m(){return C("wireless")}return m}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Subspace Transceiver",children:(0,e.createComponentVNode)(2,t.Button,{width:10,icon:u.radio?"check":"times",content:u.radio?"Enabled":"Disabled",color:u.radio?"green":"red",onClick:function(){function m(){return C("radio")}return m}()})}),(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:u.flushing||u.integrity===0,confirmColor:"red",content:"Wipe AI",onClick:function(){function m(){return C("wipe")}return m}()})})]})})})]})})})}return V}()},78468:function(w,r,n){"use strict";r.__esModule=!0,r.AIFixer=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.AIFixer=function(){function V(y,S){var k=(0,a.useBackend)(S),C=k.act,u=k.data;if(u.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;(u.stat===2||u.stat===null)&&(c=!1);var m=null;u.integrity>=75?m="green":u.integrity>=25?m="yellow":m="red";var d=!0;return u.integrity>=100&&u.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:u.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:m,value:u.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:!!u.has_laws&&(0,e.createComponentVNode)(2,t.Box,{children:u.laws.map(function(l,s){return(0,e.createComponentVNode)(2,t.Box,{inline:!0,children:l},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:u.wireless?"times":"check",content:u.wireless?"Disabled":"Enabled",color:u.wireless?"red":"green",onClick:function(){function l(){return C("wireless")}return l}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Subspace Transceiver",children:(0,e.createComponentVNode)(2,t.Button,{icon:u.radio?"times":"check",content:u.radio?"Disabled":"Enabled",color:u.radio?"red":"green",onClick:function(){function l(){return C("radio")}return l}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Start Repairs",children:(0,e.createComponentVNode)(2,t.Button,{icon:"wrench",disabled:!d||u.active,content:!d||u.active?"Already Repaired":"Repair",onClick:function(){function l(){return C("fix")}return l}()})})]}),(0,e.createComponentVNode)(2,t.Box,{color:"green",lineHeight:2,children:u.active?"Reconstruction in progress.":""})]})})]})})})}return V}()},73544:function(w,r,n){"use strict";r.__esModule=!0,r.APC=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=n(26893),V=r.APC=function(){function C(u,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 C}(),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(u,c){var m=(0,a.useBackend)(c),d=m.act,l=m.data,s=l.locked&&!l.siliconUser,i=l.normallyLocked,p=y[l.externalPower]||y[0],v=y[l.chargingStatus]||y[0],g=l.powerChannels||[],h=S[l.malfStatus]||S[0],N=l.powerCellStatus/100;return(0,e.createFragment)([(0,e.createComponentVNode)(2,f.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:p.color,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:l.isOperating?"power-off":"times",content:l.isOperating?"On":"Off",selected:l.isOperating&&!s,color:l.isOperating?"":"bad",disabled:s,onClick:function(){function b(){return d("breaker")}return b}()}),children:["[ ",p.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:l.chargeMode?"sync":"times",content:l.chargeMode?"Auto":"Off",selected:l.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 I(){return d("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 d("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 d("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,[l.totalLoad,(0,e.createTextVNode)(" W")],0)})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Misc",buttons:!!l.siliconUser&&(0,e.createFragment)([!!l.malfStatus&&(0,e.createComponentVNode)(2,t.Button,{icon:h.icon,content:h.content,color:"bad",onClick:function(){function b(){return d(h.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:l.coverLocked?"lock":"unlock",content:l.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:l.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:l.nightshiftLights?"Enabled":"Disabled",onClick:function(){function b(){return d("toggle_nightshift")}return b}()})})]})})],4)}},79098:function(w,r,n){"use strict";r.__esModule=!0,r.ATM=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.ATM=function(){function m(d,l){var s=(0,a.useBackend)(l),i=s.act,p=s.data,v=p.view_screen,g=p.authenticated_account,h=p.ticks_left_locked_down,N=p.linked_db,b;if(h>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,u);break;default:b=(0,e.createComponentVNode)(2,k)}else b=(0,e.createComponentVNode)(2,C);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 m}(),V=function(d,l){var s=(0,a.useBackend)(l),i=s.act,p=s.data,v=p.machine_id,g=p.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 h(){return i("insert_card")}return h}()})})})]})},y=function(d,l){var s=(0,a.useBackend)(l),i=s.act,p=s.data,v=p.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 i("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 i("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,l){var s=(0,a.useBackend)(l),i=s.act,p=s.data,v=(0,a.useLocalState)(l,"targetAccNumber",0),g=v[0],h=v[1],N=(0,a.useLocalState)(l,"fundsAmount",0),b=N[0],B=N[1],I=(0,a.useLocalState)(l,"purpose",0),L=I[0],T=I[1],A=p.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 h(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 i("transfer",{target_acc_number:g,funds_amount:b,purpose:L})}return x}()}),(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,c)]})},k=function(d,l){var s=(0,a.useBackend)(l),i=s.act,p=s.data,v=(0,a.useLocalState)(l,"fundsAmount",0),g=v[0],h=v[1],N=p.owner_name,b=p.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 i("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,L){return h(L)}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 i("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 i("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 i("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 i("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 i("balance_statement")}return B}()})})]})],4)},C=function(d,l){var s=(0,a.useBackend)(l),i=s.act,p=s.data,v=(0,a.useLocalState)(l,"accountID",null),g=v[0],h=v[1],N=(0,a.useLocalState)(l,"accountPin",null),b=N[0],B=N[1],I=p.machine_id,L=p.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 h(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 i("attempt_auth",{account_num:g,account_pin:b})}return T}()})})]})})},u=function(d,l){var s=(0,a.useBackend)(l),i=s.act,p=s.data,v=p.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,l){var s=(0,a.useBackend)(l),i=s.act,p=s.data;return(0,e.createComponentVNode)(2,t.Button,{content:"Back",icon:"sign-out-alt",onClick:function(){function v(){return i("view_screen",{view_screen:0})}return v}()})}},64613:function(w,r,n){"use strict";r.__esModule=!0,r.AccountsUplinkTerminal=void 0;var e=n(96524),a=n(78234),t=n(17899),o=n(24674),f=n(5126),V=n(45493),y=n(68159),S=n(27527),k=r.AccountsUplinkTerminal=function(){function p(v,g){var h=(0,t.useBackend)(g),N=h.act,b=h.data,B=b.loginState,I=b.currentPage,L;if(B.logged_in)I===1?L=(0,e.createComponentVNode)(2,u):I===2?L=(0,e.createComponentVNode)(2,s):I===3&&(L=(0,e.createComponentVNode)(2,i));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,C),(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,children:L})]})})})}return p}(),C=function(v,g){var h=(0,t.useBackend)(g),N=h.data,b=(0,t.useLocalState)(g,"tabIndex",0),B=b[0],I=b[1],L=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 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"})]})})})},u=function(v,g){var h=(0,t.useLocalState)(g,"tabIndex",0),N=h[0];switch(N){case 0:return(0,e.createComponentVNode)(2,c);case 1:return(0,e.createComponentVNode)(2,m);default:return"You are somehow on a tab that doesn't exist! Please let a coder know."}},c=function(v,g){var h=(0,t.useBackend)(g),N=h.act,b=h.data,B=b.accounts,I=(0,t.useLocalState)(g,"searchText",""),L=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,l),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,o.Table,{className:"AccountsUplinkTerminal__list",children:[(0,e.createComponentVNode)(2,o.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,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)(L,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 N("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)})]})})})]})},m=function(v,g){var h=(0,t.useBackend)(g),N=h.act,b=h.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,f.TableCell,{children:"Department Name"}),(0,e.createComponentVNode)(2,f.TableCell,{children:"Account Number"}),(0,e.createComponentVNode)(2,f.TableCell,{children:"Account Status"}),(0,e.createComponentVNode)(2,f.TableCell,{children:"Account Balance"})]}),B.map(function(I){return(0,e.createComponentVNode)(2,o.Table.Row,{className:"AccountsUplinkTerminal__listRow--"+I.suspended,onClick:function(){function L(){return N("view_account_detail",{account_num:I.account_number})}return L}(),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)})]})})})})},d=function(v,g){var h=(0,t.useLocalState)(g,"sortId","name"),N=h[0],b=h[1],B=(0,t.useLocalState)(g,"sortOrder",!0),I=B[0],L=B[1],T=v.id,A=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 x(){N===T?L(!I):(b(T),L(!0))}return x}(),children:[A,N===T&&(0,e.createComponentVNode)(2,o.Icon,{name:I?"sort-up":"sort-down",ml:"0.25rem;"})]})})},l=function(v,g){var h=(0,t.useBackend)(g),N=h.act,b=h.data,B=b.is_printing,I=(0,t.useLocalState)(g,"searchText",""),L=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 N("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 h=(0,t.useBackend)(g),N=h.act,b=h.data,B=b.account_number,I=b.owner_name,L=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 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: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 N("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:L}),(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"})]}),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)})]})})})]})},i=function(v,g){var h=(0,t.useBackend)(g),N=h.act,b=h.data,B=(0,t.useLocalState)(g,"accName",""),I=B[0],L=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 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,j){return L(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 N("finalise_create_account",{holder_name:I,starting_funds:A})}return E}()})]})}},34257:function(w,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),f=r.AgentCard=function(){function S(k,C){var u=(0,a.useLocalState)(C,"tabIndex",0),c=u[0],m=u[1],d=function(){function l(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 l}();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 l(){return m(0)}return l}(),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 l(){return m(1)}return l}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"id-card"})," Appearance"]},"Appearance")]})}),d(c)]})})})}return S}(),V=r.AgentCardInfo=function(){function S(k,C){var u=(0,a.useBackend)(C),c=u.act,m=u.data,d=m.registered_name,l=m.sex,s=m.age,i=m.assignment,p=m.associated_account_number,v=m.blood_type,g=m.dna_hash,h=m.fingerprint_hash,N=m.photo,b=m.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:l||"[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:i||"[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:h||"[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:p||"[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,C){var u=(0,a.useBackend)(C),c=u.act,m=u.data,d=(0,a.useLocalState)(C,"selectedAppearance",null),l=d[0],s=d[1],i=m.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:i.map(function(p){return(0,e.createComponentVNode)(2,t.Button,{compact:!0,m:.5,color:"translucent",selected:p===l,content:(0,e.createVNode)(1,"img",null,null,1,{src:"data:image/jped;base64,"+p.image,style:{width:"64px","vertical-align":"middle","-ms-interpolation-mode":"nearest-neighbor"},onClick:function(){function v(){s(p),c("change_appearance",{new_appearance:p.name})}return v}()})},p.name)})})})}return S}()},56839:function(w,r,n){"use strict";r.__esModule=!0,r.AiAirlock=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f={2:{color:"good",localStatusText:"Offline"},1:{color:"average",localStatusText:"Caution"},0:{color:"bad",localStatusText:"Optimal"}},V=r.AiAirlock=function(){function y(S,k){var C=(0,a.useBackend)(k),u=C.act,c=C.data,m=f[c.power.main]||f[0],d=f[c.power.backup]||f[0],l=f[c.shock]||f[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:m.color,buttons:(0,e.createComponentVNode)(2,t.Button,{mb:.5,icon:"lightbulb-o",disabled:!c.power.main,content:"Disrupt",onClick:function(){function s(){return u("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 u("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:l.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 u("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 u("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 u("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 u("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 u("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 u("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 u("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 u("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 u("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 u("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(w,r,n){"use strict";r.__esModule=!0,r.AirAlarm=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=n(26893),V=r.AirAlarm=function(){function l(s,i){var p=(0,a.useBackend)(i),v=p.act,g=p.data,h=g.locked;return(0,e.createComponentVNode)(2,o.Window,{width:570,height:h?310:755,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,f.InterfaceLockNoticeBox),(0,e.createComponentVNode)(2,S),!h&&(0,e.createFragment)([(0,e.createComponentVNode)(2,k),(0,e.createComponentVNode)(2,C)],4)]})})}return l}(),y=function(s){return s===0?"green":s===1?"orange":"red"},S=function(s,i){var p=(0,a.useBackend)(i),v=p.act,g=p.data,h=g.air,N=g.mode,b=g.atmos_alarm,B=g.locked,I=g.alarmActivated,L=g.rcon,T=g.target_temp,A;return h.danger.overall===0?b===0?A="Optimal":A="Caution: Atmos alert in area":h.danger.overall===1?A="Caution":A="DANGER: Internals Required",(0,e.createComponentVNode)(2,t.Section,{title:"Air Status",children:h?(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Pressure",children:(0,e.createComponentVNode)(2,t.Box,{color:y(h.danger.pressure),children:[(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:h.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 x(){return v("mode",{mode:N===3?1:3})}return x}()})],4)]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Oxygen",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:h.contents.oxygen/100,fractionDigits:"1",color:y(h.danger.oxygen)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Nitrogen",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:h.contents.nitrogen/100,fractionDigits:"1",color:y(h.danger.nitrogen)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Carbon Dioxide",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:h.contents.co2/100,fractionDigits:"1",color:y(h.danger.co2)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Toxins",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:h.contents.plasma/100,fractionDigits:"1",color:y(h.danger.plasma)})}),h.contents.n2o>.1&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Nitrous Oxide",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:h.contents.n2o/100,fractionDigits:"1",color:y(h.danger.n2o)})}),h.contents.other>.1&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Other",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:h.contents.other/100,fractionDigits:"1",color:y(h.danger.other)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Temperature",children:(0,e.createComponentVNode)(2,t.Box,{color:y(h.danger.temperature),children:[(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:h.temperature})," K / ",(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:h.temperature_c})," C\xA0",(0,e.createComponentVNode)(2,t.Button,{icon:"thermometer-full",content:T+" C",onClick:function(){function x(){return v("temperature")}return x}()}),(0,e.createComponentVNode)(2,t.Button,{content:h.thermostat_state?"On":"Off",selected:h.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(h.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:L===1,onClick:function(){function x(){return v("set_rcon",{rcon:1})}return x}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Auto",selected:L===2,onClick:function(){function x(){return v("set_rcon",{rcon:2})}return x}()}),(0,e.createComponentVNode)(2,t.Button,{content:"On",selected:L===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,i){var p=(0,a.useLocalState)(i,"tabIndex",0),v=p[0],g=p[1];return(0,e.createComponentVNode)(2,t.Tabs,{children:[(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:v===0,onClick:function(){function h(){return g(0)}return h}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"sign-out-alt"})," Vent Control"]},"Vents"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:v===1,onClick:function(){function h(){return g(1)}return h}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"sign-in-alt"})," Scrubber Control"]},"Scrubbers"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:v===2,onClick:function(){function h(){return g(2)}return h}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"cog"})," Mode"]},"Mode"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:v===3,onClick:function(){function h(){return g(3)}return h}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"tachometer-alt"})," Thresholds"]},"Thresholds")]})},C=function(s,i){var p=(0,a.useLocalState)(i,"tabIndex",0),v=p[0],g=p[1];switch(v){case 0:return(0,e.createComponentVNode)(2,u);case 1:return(0,e.createComponentVNode)(2,c);case 2:return(0,e.createComponentVNode)(2,m);case 3:return(0,e.createComponentVNode)(2,d);default:return"WE SHOULDN'T BE HERE!"}},u=function(s,i){var p=(0,a.useBackend)(i),v=p.act,g=p.data,h=g.vents;return h.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,i){var p=(0,a.useBackend)(i),v=p.act,g=p.data,h=g.scrubbers;return h.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)})},m=function(s,i){var p=(0,a.useBackend)(i),v=p.act,g=p.data,h=g.modes,N=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:h.map(function(L){return(!L.emagonly||L.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:L.name,icon:"cog",selected:L.id===B,onClick:function(){function T(){return v("mode",{mode:L.id})}return T}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:L.desc})]},L.name)})})}),(0,e.createComponentVNode)(2,t.Section,{title:"System Presets",children:[(0,e.createComponentVNode)(2,t.Box,{italic:!0,children:"After making a selection, the system will automatically cycle in order to remove contaminants."}),(0,e.createComponentVNode)(2,t.Table,{mt:1,children:N.map(function(L){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"right",width:1,children:(0,e.createComponentVNode)(2,t.Button,{content:L.name,icon:"cog",selected:L.id===I,onClick:function(){function T(){return v("preset",{preset:L.id})}return T}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:L.desc})]},L.name)})})]})],4)},d=function(s,i){var p=(0,a.useBackend)(i),v=p.act,g=p.data,h=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"})]}),h.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(w,r,n){"use strict";r.__esModule=!0,r.AirlockAccessController=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.AirlockAccessController=function(){function V(y,S){var k=(0,a.useBackend)(S),C=k.act,u=k.data,c=u.exterior_status,m=u.interior_status,d=u.processing,l,s;return c==="open"?l=(0,e.createComponentVNode)(2,t.Button,{width:"50%",content:"Lock Exterior Door",icon:"exclamation-triangle",disabled:d,onClick:function(){function i(){return C("force_ext")}return i}()}):l=(0,e.createComponentVNode)(2,t.Button,{width:"50%",content:"Cycle to Exterior",icon:"arrow-circle-left",disabled:d,onClick:function(){function i(){return C("cycle_ext_door")}return i}()}),m==="open"?s=(0,e.createComponentVNode)(2,t.Button,{width:"49%",content:"Lock Interior Door",icon:"exclamation-triangle",disabled:d,color:m==="open"?"red":d?"yellow":null,onClick:function(){function i(){return C("force_int")}return i}()}):s=(0,e.createComponentVNode)(2,t.Button,{width:"49%",content:"Cycle to Interior",icon:"arrow-circle-right",disabled:d,onClick:function(){function i(){return C("cycle_int_door")}return i}()}),(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:m==="closed"?"Locked":"Open"})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Actions",children:(0,e.createComponentVNode)(2,t.Box,{children:[l,s]})})]})})}return V}()},14962:function(w,r,n){"use strict";r.__esModule=!0,r.AirlockElectronics=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=n(57842),V=1,y=2,S=4,k=8,C=r.AirlockElectronics=function(){function m(d,l){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,u),(0,e.createComponentVNode)(2,c)]})})})}return m}(),u=function(d,l){var s=(0,a.useBackend)(l),i=s.act,p=s.data,v=p.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 i("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 i("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 i("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 i("unrestricted_access",{unres_dir:V})}return g}()})})]})]})})},c=function(d,l){var s=(0,a.useBackend)(l),i=s.act,p=s.data,v=p.selected_accesses,g=p.one_access,h=p.regions;return(0,e.createComponentVNode)(2,f.AccessList,{usedByRcd:1,rcdButtons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:g,content:"One",onClick:function(){function N(){return i("set_one_access",{access:"one"})}return N}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:!g,content:"All",onClick:function(){function N(){return i("set_one_access",{access:"all"})}return N}()})],4),accesses:h,selectedList:v,accessMod:function(){function N(b){return i("set",{access:b})}return N}(),grantAll:function(){function N(){return i("grant_all")}return N}(),denyAll:function(){function N(){return i("clear_all")}return N}(),grantDep:function(){function N(b){return i("grant_region",{region:b})}return N}(),denyDep:function(){function N(b){return i("deny_region",{region:b})}return N}()})}},99327:function(w,r,n){"use strict";r.__esModule=!0,r.AlertModal=void 0;var e=n(96524),a=n(14299),t=n(17899),o=n(68100),f=n(24674),V=n(45493),y=-1,S=1,k=r.AlertModal=function(){function c(m,d){var l=(0,t.useBackend)(d),s=l.act,i=l.data,p=i.autofocus,v=i.buttons,g=v===void 0?[]:v,h=i.large_buttons,N=i.message,b=N===void 0?"":N,B=i.timeout,I=i.title,L=(0,t.useLocalState)(d,"selected",0),T=L[0],A=L[1],x=110+(b.length>30?Math.ceil(b.length/4):0)+(b.length&&h?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,V.Window,{title:I,height:x,width:E,children:[!!B&&(0,e.createComponentVNode)(2,a.Loader,{value:B}),(0,e.createComponentVNode)(2,V.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,f.Section,{fill:!0,children:(0,e.createComponentVNode)(2,f.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,m:1,children:(0,e.createComponentVNode)(2,f.Box,{color:"label",overflow:"hidden",children:b})}),(0,e.createComponentVNode)(2,f.Stack.Item,{children:[!!p&&(0,e.createComponentVNode)(2,f.Autofocus),(0,e.createComponentVNode)(2,C,{selected:T})]})]})})})]})}return c}(),C=function(m,d){var l=(0,t.useBackend)(d),s=l.data,i=s.buttons,p=i===void 0?[]:i,v=s.large_buttons,g=s.swapped_buttons,h=m.selected;return(0,e.createComponentVNode)(2,f.Flex,{fill:!0,align:"center",direction:g?"row":"row-reverse",justify:"space-around",wrap:!0,children:p==null?void 0:p.map(function(N,b){return v&&p.length<3?(0,e.createComponentVNode)(2,f.Flex.Item,{grow:!0,children:(0,e.createComponentVNode)(2,u,{button:N,id:b.toString(),selected:h===b})},b):(0,e.createComponentVNode)(2,f.Flex.Item,{grow:v?1:0,children:(0,e.createComponentVNode)(2,u,{button:N,id:b.toString(),selected:h===b})},b)})})},u=function(m,d){var l=(0,t.useBackend)(d),s=l.act,i=l.data,p=i.large_buttons,v=m.button,g=m.selected,h=v.length>7?"100%":7;return(0,e.createComponentVNode)(2,f.Button,{mx:p?1:0,pt:p?.33:0,content:v,fluid:!!p,onClick:function(){function N(){return s("choose",{choice:v})}return N}(),selected:g,textAlign:"center",height:!!p&&2,width:!p&&h})}},88642:function(w,r,n){"use strict";r.__esModule=!0,r.AppearanceChanger=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.AppearanceChanger=function(){function y(S,k){var C=(0,a.useBackend)(k),u=C.act,c=C.data,m=c.change_race,d=c.species,l=c.specimen,s=c.change_gender,i=c.gender,p=c.change_eye_color,v=c.change_skin_tone,g=c.change_skin_color,h=c.change_head_accessory_color,N=c.change_hair_color,b=c.change_secondary_hair_color,B=c.change_facial_hair_color,I=c.change_secondary_facial_hair_color,L=c.change_head_marking_color,T=c.change_body_marking_color,A=c.change_tail_marking_color,x=c.change_head_accessory,E=c.head_accessory_styles,M=c.head_accessory_style,j=c.change_hair,P=c.hair_styles,R=c.hair_style,D=c.change_hair_gradient,F=c.change_facial_hair,W=c.facial_hair_styles,_=c.facial_hair_style,K=c.change_head_markings,H=c.head_marking_styles,X=c.head_marking_style,Y=c.change_body_markings,J=c.body_marking_styles,le=c.body_marking_style,ce=c.change_tail_markings,fe=c.tail_marking_styles,pe=c.tail_marking_style,he=c.change_body_accessory,te=c.body_accessory_styles,Q=c.body_accessory_style,ae=c.change_alt_head,ee=c.alt_head_styles,oe=c.alt_head_style,ue=!1;return(p||v||g||h||N||b||B||I||L||T||A)&&(ue=!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:[!!m&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Species",children:d.map(function(re){return(0,e.createComponentVNode)(2,t.Button,{content:re.specimen,selected:re.specimen===l,onClick:function(){function ge(){return u("race",{race:re.specimen})}return ge}()},re.specimen)})}),!!s&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Gender",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Male",selected:i==="male",onClick:function(){function re(){return u("gender",{gender:"male"})}return re}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Female",selected:i==="female",onClick:function(){function re(){return u("gender",{gender:"female"})}return re}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Genderless",selected:i==="plural",onClick:function(){function re(){return u("gender",{gender:"plural"})}return re}()})]}),!!ue&&(0,e.createComponentVNode)(2,V),!!x&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Head accessory",children:E.map(function(re){return(0,e.createComponentVNode)(2,t.Button,{content:re.headaccessorystyle,selected:re.headaccessorystyle===M,onClick:function(){function ge(){return u("head_accessory",{head_accessory:re.headaccessorystyle})}return ge}()},re.headaccessorystyle)})}),!!j&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Hair",children:P.map(function(re){return(0,e.createComponentVNode)(2,t.Button,{content:re.hairstyle,selected:re.hairstyle===R,onClick:function(){function ge(){return u("hair",{hair:re.hairstyle})}return ge}()},re.hairstyle)})}),!!D&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Hair Gradient",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Change Style",onClick:function(){function re(){return u("hair_gradient")}return re}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Change Offset",onClick:function(){function re(){return u("hair_gradient_offset")}return re}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Change Color",onClick:function(){function re(){return u("hair_gradient_colour")}return re}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Change Alpha",onClick:function(){function re(){return u("hair_gradient_alpha")}return re}()})]}),!!F&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Facial hair",children:W.map(function(re){return(0,e.createComponentVNode)(2,t.Button,{content:re.facialhairstyle,selected:re.facialhairstyle===_,onClick:function(){function ge(){return u("facial_hair",{facial_hair:re.facialhairstyle})}return ge}()},re.facialhairstyle)})}),!!K&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Head markings",children:H.map(function(re){return(0,e.createComponentVNode)(2,t.Button,{content:re.headmarkingstyle,selected:re.headmarkingstyle===X,onClick:function(){function ge(){return u("head_marking",{head_marking:re.headmarkingstyle})}return ge}()},re.headmarkingstyle)})}),!!Y&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Body markings",children:J.map(function(re){return(0,e.createComponentVNode)(2,t.Button,{content:re.bodymarkingstyle,selected:re.bodymarkingstyle===le,onClick:function(){function ge(){return u("body_marking",{body_marking:re.bodymarkingstyle})}return ge}()},re.bodymarkingstyle)})}),!!ce&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Tail markings",children:fe.map(function(re){return(0,e.createComponentVNode)(2,t.Button,{content:re.tailmarkingstyle,selected:re.tailmarkingstyle===pe,onClick:function(){function ge(){return u("tail_marking",{tail_marking:re.tailmarkingstyle})}return ge}()},re.tailmarkingstyle)})}),!!he&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Body accessory",children:te.map(function(re){return(0,e.createComponentVNode)(2,t.Button,{content:re.bodyaccessorystyle,selected:re.bodyaccessorystyle===Q,onClick:function(){function ge(){return u("body_accessory",{body_accessory:re.bodyaccessorystyle})}return ge}()},re.bodyaccessorystyle)})}),!!ae&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Alternate head",children:ee.map(function(re){return(0,e.createComponentVNode)(2,t.Button,{content:re.altheadstyle,selected:re.altheadstyle===oe,onClick:function(){function ge(){return u("alt_head",{alt_head:re.altheadstyle})}return ge}()},re.altheadstyle)})})]})})})}return y}(),V=function(S,k){var C=(0,a.useBackend)(k),u=C.act,c=C.data,m=[{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:m.map(function(d){return!!c[d.key]&&(0,e.createComponentVNode)(2,t.Button,{content:d.text,onClick:function(){function l(){return u(d.action)}return l}()},d.key)})})}},51731:function(w,r,n){"use strict";r.__esModule=!0,r.AtmosAlertConsole=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.AtmosAlertConsole=function(){function V(y,S){var k=(0,a.useBackend)(S),C=k.act,u=k.data,c=u.priority||[],m=u.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)}),m.length===0&&(0,e.createVNode)(1,"li","color-good","No Minor Alerts",16),m.map(function(d){return(0,e.createVNode)(1,"li","color-average",d,0,null,d)})],0)})})})}return V}()},57467:function(w,r,n){"use strict";r.__esModule=!0,r.AtmosControl=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(5126),f=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 u(c,m){var d=(0,a.useBackend)(m),l=d.act,s=d.data,i=(0,a.useLocalState)(m,"tabIndex",0),p=i[0],v=i[1],g=function(){function h(N){switch(N){case 0:return(0,e.createComponentVNode)(2,k);case 1:return(0,e.createComponentVNode)(2,C);default:return"WE SHOULDN'T BE HERE!"}}return h}();return(0,e.createComponentVNode)(2,f.Window,{width:800,height:600,children:(0,e.createComponentVNode)(2,f.Window.Content,{scrollable:p===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:p===0,onClick:function(){function h(){return v(0)}return h}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"table"})," Data View"]},"DataView"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:p===1,onClick:function(){function h(){return v(1)}return h}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"map-marked-alt"})," Map View"]},"MapView")]}),g(p)]})})})}return u}(),k=function(c,m){var d=(0,a.useBackend)(m),l=d.act,s=d.data,i=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"})]}),i.map(function(p){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,o.TableCell,{children:p.name}),(0,e.createComponentVNode)(2,o.TableCell,{children:V(p.danger)}),(0,e.createComponentVNode)(2,o.TableCell,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"cog",content:"Access",onClick:function(){function v(){return l("open_alarm",{aref:p.ref})}return v}()})})]},p.name)})]})})},C=function(c,m){var d=(0,a.useBackend)(m),l=d.data,s=(0,a.useLocalState)(m,"zoom",1),i=s[0],p=s[1],v=l.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(h){return p(h)}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:i,icon:"circle",tooltip:g.name,color:y(g.danger)},g.ref)})})})}},41550:function(w,r,n){"use strict";r.__esModule=!0,r.AtmosFilter=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.AtmosFilter=function(){function V(y,S){var k=(0,a.useBackend)(S),C=k.act,u=k.data,c=u.on,m=u.pressure,d=u.max_pressure,l=u.filter_type,s=u.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 i(){return C("power")}return i}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Rate",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"fast-backward",textAlign:"center",disabled:m===0,width:2.2,onClick:function(){function i(){return C("min_pressure")}return i}()}),(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,unit:"kPa",width:6.1,lineHeight:1.5,step:10,minValue:0,maxValue:d,value:m,onDrag:function(){function i(p,v){return C("custom_pressure",{pressure:v})}return i}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",textAlign:"center",disabled:m===d,width:2.2,onClick:function(){function i(){return C("max_pressure")}return i}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Filter",children:s.map(function(i){return(0,e.createComponentVNode)(2,t.Button,{selected:i.gas_type===l,content:i.label,onClick:function(){function p(){return C("set_filter",{filter:i.gas_type})}return p}()},i.label)})})]})})})})}return V}()},16688:function(w,r,n){"use strict";r.__esModule=!0,r.AtmosGraphMonitor=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=n(36121),V=n(50640),y=n(28234),S=["data","rangeX","rangeY","fillColor","strokeColor","strokeWidth","horizontalLinesCount","verticalLinesCount","gridColor","gridWidth","pointTextColor","pointTextSize","labelViewBoxSize"];function k(i,p){if(i==null)return{};var v={},g=Object.keys(i),h,N;for(N=0;N=0)&&(v[h]=i[h]);return v}function C(i,p){i.prototype=Object.create(p.prototype),i.prototype.constructor=i,u(i,p)}function u(i,p){return u=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function v(g,h){return g.__proto__=h,g}return v}(),u(i,p)}var c=r.AtmosGraphMonitor=function(){function i(p,v){var g=(0,a.useBackend)(v),h=g.data,N=(0,a.useLocalState)(v,"tabIndex",0),b=N[0],B=N[1],I=function(){function T(A){switch(A){case 0:return(0,e.createComponentVNode)(2,m,{data:h,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,m,{data:h,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}(),L=function(){function T(A){switch(A){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:L(Object.keys(h.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")]}),I(b),Object.keys(h.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 i}(),m=function(p){var v=p.data,g=p.info,h=p.pressureListName,N=p.temperatureListName,b=v.sensors||{},B=function(x,E){return b[x][E].slice(-1)[0]},I=function(x,E){return Math.min.apply(Math,b[x][E])},L=function(x,E){return Math.max.apply(Math,b[x][E])},T=function(x,E){return b[x][E].map(function(M,j){return[j,M]})};return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Section,{color:"gray",children:g}),Object.keys(b).map(function(A){return(0,e.createComponentVNode)(2,t.Section,{title:A,children:(0,e.createComponentVNode)(2,t.Section,{px:2,children:[N in b[A]&&(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,f.toFixed)(B(A,N),0)+"\u041A (MIN: "+(0,f.toFixed)(I(A,N),0)+"\u041A; MAX: "+(0,f.toFixed)(L(A,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(A,N),rangeX:[0,T(A,N).length-1],rangeY:[I(A,N)-10,L(A,N)+5],strokeColor:"rgba(219, 40, 40, 1)",fillColor:"rgba(219, 40, 40, 0.1)",horizontalLinesCount:2,verticalLinesCount:T(A,N).length-2,labelViewBoxSize:400})})]}),h in b[A]&&(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,f.toFixed)(B(A,h),0)+"\u043A\u041F\u0430 (MIN: "+(0,f.toFixed)(I(A,h),0)+"\u043A\u041F\u0430; MAX: "+(0,f.toFixed)(L(A,h),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(A,h),rangeX:[0,T(A,h).length-1],rangeY:[I(A,h)-10,L(A,h)+5],strokeColor:"rgba(40, 219, 40, 1)",fillColor:"rgba(40, 219, 40, 0.1)",horizontalLinesCount:2,verticalLinesCount:T(A,h).length-2,labelViewBoxSize:400})})]})]})},A)})]})},d=function(p,v,g,h){if(p.length===0)return[];var N=(0,V.zipWith)(Math.min).apply(void 0,p),b=(0,V.zipWith)(Math.max).apply(void 0,p);g!==void 0&&(N[0]=g[0],b[0]=g[1]),h!==void 0&&(N[1]=h[0],b[1]=h[1]);var B=function(A,x,E,M){return(A-x)/(E-x)*M},I=(0,V.zipWith)(B),L=(0,V.map)(function(T){return I(T,N,b,v)});return L(p)},l=function(p){for(var v="",g=0;g0){var Q=te[0],ae=te[te.length-1];te.push([he[0]+j,ae[1]]),te.push([he[0]+j,-j]),te.push([-j,-j]),te.push([-j,Q[1]])}var ee=l(te);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,t.Box,Object.assign({position:"relative"},pe,{children:function(){function oe(ue){return(0,e.normalizeProps)((0,e.createVNode)(1,"div",null,(0,e.createVNode)(32,"svg",null,[Array.from({length:R}).map(function(re,ge){return(0,e.createVNode)(32,"line",null,null,1,{x1:0,y1:(ge+1)*(he[1]/(R+1)),x2:he[0],y2:(ge+1)*(he[1]/(R+1)),stroke:_,"stroke-width":H},"horizontal-line-"+ge)}),Array.from({length:F}).map(function(re,ge){return(0,e.createVNode)(32,"line",null,null,1,{x1:(ge+1)*(he[0]/(F+1)),y1:0,x2:(ge+1)*(he[0]/(F+1)),y2:he[1],stroke:_,"stroke-width":H},"vertical-line-"+ge)}),(0,e.createVNode)(32,"polyline",null,null,1,{transform:"scale(1, -1) translate(0, -"+he[1]+")",fill:A,points:ee}),B.map(function(re,ge){return ge===0?null:(0,e.createVNode)(32,"line",null,null,1,{x1:te[ge-1][0],y1:he[1]-te[ge-1][1],x2:te[ge][0],y2:he[1]-te[ge][1],stroke:E,"stroke-width":j},"line-"+ge)}),B.map(function(re,ge){return(0,e.createVNode)(32,"circle",null,null,1,{cx:te[ge][0],cy:he[1]-te[ge][1],r:2,fill:"#ffffff",stroke:E,"stroke-width":1},"point-"+ge)}),B.map(function(re,ge){return he[0]>fe&&ge%2===1&&(0,e.createVNode)(32,"text",null,re[1]!==null?re[1].toFixed(0):"N/A",0,{x:te[ge][0],y:he[1]-te[ge][1],fill:Y,"font-size":le,dy:"1em",style:{"text-anchor":"end"}},"point-text-"+ge)})],0,{viewBox:"0 0 "+he[0]+" "+he[1]}),2,Object.assign({},ue),null,h.ref))}return oe}()})))}return g}(),p}(e.Component);s.defaultHooks=void 0,s.defaultHooks=y.pureComponentHooks},70151:function(w,r,n){"use strict";r.__esModule=!0,r.AtmosMixer=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.AtmosMixer=function(){function y(S,k){var C=(0,a.useBackend)(k),u=C.act,c=C.data,m=c.on,d=c.pressure,l=c.max_pressure,s=c.node1_concentration,i=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:m?"On":"Off",color:m?null:"red",selected:m,onClick:function(){function p(){return u("power")}return p}()})}),(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 p(){return u("min_pressure")}return p}()}),(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,unit:"kPa",width:6.1,lineHeight:1.5,step:10,minValue:0,maxValue:l,value:d,onDrag:function(){function p(v,g){return u("custom_pressure",{pressure:g})}return p}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",textAlign:"center",disabled:d===l,width:2.2,onClick:function(){function p(){return u("max_pressure")}return p}()})]}),(0,e.createComponentVNode)(2,V,{node_name:"Node 1",node_ref:s}),(0,e.createComponentVNode)(2,V,{node_name:"Node 2",node_ref:i})]})})})})}return y}(),V=function(S,k){var C=(0,a.useBackend)(k),u=C.act,c=C.data,m=S.node_name,d=S.node_ref;return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:m,children:[(0,e.createComponentVNode)(2,t.Button,{icon:"fast-backward",textAlign:"center",width:2.2,disabled:d===0,onClick:function(){function l(){return u("set_node",{node_name:m,concentration:(d-10)/100})}return l}()}),(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 l(s,i){return u("set_node",{node_name:m,concentration:i/100})}return l}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",textAlign:"center",width:2.2,disabled:d===100,onClick:function(){function l(){return u("set_node",{node_name:m,concentration:(d+10)/100})}return l}()})]})}},54090:function(w,r,n){"use strict";r.__esModule=!0,r.AtmosPump=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.AtmosPump=function(){function V(y,S){var k=(0,a.useBackend)(S),C=k.act,u=k.data,c=u.on,m=u.rate,d=u.max_rate,l=u.gas_unit,s=u.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 i(){return C("power")}return i}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Rate",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"fast-backward",textAlign:"center",disabled:m===0,width:2.2,onClick:function(){function i(){return C("min_rate")}return i}()}),(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,unit:l,width:6.1,lineHeight:1.5,step:s,minValue:0,maxValue:d,value:m,onDrag:function(){function i(p,v){return C("custom_rate",{rate:v})}return i}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",textAlign:"center",disabled:m===d,width:2.2,onClick:function(){function i(){return C("max_rate")}return i}()})]})]})})})})}return V}()},31335:function(w,r,n){"use strict";r.__esModule=!0,r.AtmosTankControl=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(36121),f=n(38424),V=n(45493),y=r.AtmosTankControl=function(){function S(k,C){var u=(0,a.useBackend)(C),c=u.act,m=u.data,d=m.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(l){return(0,e.createComponentVNode)(2,t.Section,{title:l,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[Object.keys(d[l]).indexOf("pressure")>-1?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Pressure",children:[d[l].pressure," kpa"]}):"",Object.keys(d[l]).indexOf("temperature")>-1?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Temperature",children:[d[l].temperature," K"]}):"",["o2","n2","plasma","co2","n2o"].map(function(s){return Object.keys(d[l]).indexOf(s)>-1?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:(0,f.getGasLabel)(s),children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:(0,f.getGasColor)(s),value:d[l][s],minValue:0,maxValue:100,children:(0,o.toFixed)(d[l][s],2)+"%"})},(0,f.getGasLabel)(s)):""})]})},l)}),m.inlet&&Object.keys(m.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:(m.inlet.on,"power-off"),content:m.inlet.on?"On":"Off",color:m.inlet.on?null:"red",selected:m.inlet.on,onClick:function(){function l(){return c("toggle_active",{dev:"inlet"})}return l}()})}),(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:m.inlet.rate,onDrag:function(){function l(s,i){return c("set_pressure",{dev:"inlet",val:i})}return l}()})})]})}):"",m.outlet&&Object.keys(m.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:(m.outlet.on,"power-off"),content:m.outlet.on?"On":"Off",color:m.outlet.on?null:"red",selected:m.outlet.on,onClick:function(){function l(){return c("toggle_active",{dev:"outlet"})}return l}()})}),(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:m.outlet.rate,onDrag:function(){function l(s,i){return c("set_pressure",{dev:"outlet",val:i})}return l}()})})]})}):""]})})}return S}()},85909:function(w,r,n){"use strict";r.__esModule=!0,r.Autolathe=void 0;var e=n(96524),a=n(74041),t=n(50640),o=n(17899),f=n(24674),V=n(45493),y=n(78234),S=function(u,c,m,d){return u.requirements===null?!0:!(u.requirements.metal*d>c||u.requirements.glass*d>m)},k=r.Autolathe=function(){function C(u,c){var m=(0,o.useBackend)(c),d=m.act,l=m.data,s=l.total_amount,i=l.max_amount,p=l.metal_amount,v=l.glass_amount,g=l.busyname,h=l.busyamt,N=l.showhacked,b=l.buildQueue,B=l.buildQueueLen,I=l.recipes,L=l.categories,T=(0,o.useSharedState)(c,"category",0),A=T[0],x=T[1];A===0&&(A="Tools");var E=p.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(H){return H.name}),W="";B>0&&(W=b.map(function(H,X){return(0,e.createComponentVNode)(2,f.Box,{children:(0,e.createComponentVNode)(2,f.Button,{fluid:!0,icon:"times",color:"transparent",content:b[X][0],onClick:function(){function Y(){return d("remove_from_queue",{remove_from_queue:b.indexOf(H)+1})}return Y}()},H)},X)}));var _=(0,a.flow)([(0,t.filter)(function(H){return(H.category.indexOf(A)>-1||R)&&(l.showhacked||!H.hacked)}),R&&(0,t.filter)(F),(0,t.sortBy)(function(H){return H.name.toLowerCase()})])(I),K="Build";return R?K="Results for: '"+R+"':":A&&(K="Build ("+A+")"),(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,f.Stack,{fill:!0,horizontal:!0,children:[(0,e.createComponentVNode)(2,f.Stack.Item,{width:"70%",children:(0,e.createComponentVNode)(2,f.Section,{fill:!0,scrollable:!0,title:K,buttons:(0,e.createComponentVNode)(2,f.Dropdown,{width:"150px",options:L,selected:A,onSelected:function(){function H(X){return x(X)}return H}()}),children:[(0,e.createComponentVNode)(2,f.Input,{fluid:!0,placeholder:"Search for...",onInput:function(){function H(X,Y){return D(Y)}return H}(),mb:1}),_.map(function(H){return(0,e.createComponentVNode)(2,f.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,f.Button,{mr:1,icon:"hammer",selected:l.busyname===H.name&&l.busyamt===1,disabled:!S(H,l.metal_amount,l.glass_amount,1),onClick:function(){function X(){return d("make",{make:H.uid,multiplier:1})}return X}(),children:(0,y.toTitleCase)(H.name)}),H.max_multiplier>=10&&(0,e.createComponentVNode)(2,f.Button,{mr:1,icon:"hammer",selected:l.busyname===H.name&&l.busyamt===10,disabled:!S(H,l.metal_amount,l.glass_amount,10),onClick:function(){function X(){return d("make",{make:H.uid,multiplier:10})}return X}(),children:"10x"}),H.max_multiplier>=25&&(0,e.createComponentVNode)(2,f.Button,{mr:1,icon:"hammer",selected:l.busyname===H.name&&l.busyamt===25,disabled:!S(H,l.metal_amount,l.glass_amount,25),onClick:function(){function X(){return d("make",{make:H.uid,multiplier:25})}return X}(),children:"25x"}),H.max_multiplier>25&&(0,e.createComponentVNode)(2,f.Button,{mr:1,icon:"hammer",selected:l.busyname===H.name&&l.busyamt===H.max_multiplier,disabled:!S(H,l.metal_amount,l.glass_amount,H.max_multiplier),onClick:function(){function X(){return d("make",{make:H.uid,multiplier:H.max_multiplier})}return X}(),children:[H.max_multiplier,"x"]}),H.requirements&&Object.keys(H.requirements).map(function(X){return(0,y.toTitleCase)(X)+": "+H.requirements[X]}).join(", ")||(0,e.createComponentVNode)(2,f.Box,{children:"No resources required."})]},H.ref)})]})}),(0,e.createComponentVNode)(2,f.Stack.Item,{width:"30%",children:[(0,e.createComponentVNode)(2,f.Section,{title:"Materials",children:(0,e.createComponentVNode)(2,f.LabeledList,{children:[(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Metal",children:E}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Glass",children:M}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Total",children:j}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Storage",children:[l.fill_percent,"% Full"]})]})}),(0,e.createComponentVNode)(2,f.Section,{title:"Building",children:(0,e.createComponentVNode)(2,f.Box,{color:g?"green":"",children:g||"Nothing"})}),(0,e.createComponentVNode)(2,f.Section,{title:"Build Queue",height:23.7,children:[W,(0,e.createComponentVNode)(2,f.Button,{mt:.5,fluid:!0,icon:"times",content:"Clear All",color:"red",disabled:!l.buildQueueLen,onClick:function(){function H(){return d("clear_queue")}return H}()})]})]})]})})})}return C}()},81617:function(w,r,n){"use strict";r.__esModule=!0,r.BioChipPad=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.BioChipPad=function(){function V(y,S){var k=(0,a.useBackend)(S),C=k.act,u=k.data,c=u.implant,m=u.contains_case,d=u.gps,l=u.tag,s=(0,a.useLocalState)(S,"newTag",l),i=s[0],p=s[1];return(0,e.createComponentVNode)(2,o.Window,{width:410,height:325,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Bio-chip Mini-Computer",buttons:(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Eject Case",icon:"eject",disabled:!m,onClick:function(){function v(){return C("eject_case")}return v}()})}),children:c&&m?(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}),!!d&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Tag",children:[(0,e.createComponentVNode)(2,t.Input,{width:"5.5rem",value:l,onEnter:function(){function v(){return C("tag",{newtag:i})}return v}(),onInput:function(){function v(g,h){return p(h)}return v}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:l===i,width:"20px",mb:"0",ml:"0.25rem",onClick:function(){function v(){return C("tag",{newtag:i})}return v}(),children:(0,e.createComponentVNode)(2,t.Icon,{name:"pen"})})]})]})],4):m?(0,e.createComponentVNode)(2,t.Box,{children:"This bio-chip case has no implant!"}):(0,e.createComponentVNode)(2,t.Box,{children:"Please insert a bio-chip casing!"})})})})}return V}()},26215:function(w,r,n){"use strict";r.__esModule=!0,r.Biogenerator=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=n(75201),V=r.Biogenerator=function(){function u(c,m){var d=(0,a.useBackend)(m),l=d.data,s=d.config,i=l.container,p=l.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,f.Operating,{operating:p,name:v}),(0,e.createComponentVNode)(2,S),(0,e.createComponentVNode)(2,k),i?(0,e.createComponentVNode)(2,C):(0,e.createComponentVNode)(2,y)]})})})}return u}(),y=function(c,m){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,m){var d=(0,a.useBackend)(m),l=d.act,s=d.data,i=s.biomass,p=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:i}),(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:"}),p?(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,m){var d=(0,a.useBackend)(m),l=d.act,s=d.data,i=s.has_plants,p=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:!i,tooltip:i?"":"There are no plants in the biogenerator.",tooltipPosition:"top-start",content:"Activate",onClick:function(){function v(){return l("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:!p,tooltip:p?"":"The biogenerator does not have a container.",tooltipPosition:"top",content:"Detach Container",onClick:function(){function v(){return l("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:!i,tooltip:i?"":"There are no stored plants to eject.",tooltipPosition:"top-end",content:"Eject Plants",onClick:function(){function v(){return l("eject_plants")}return v}()})})]})})},C=function(c,m){var d=(0,a.useBackend)(m),l=d.act,s=d.data,i=s.biomass,p=s.product_list,v=(0,a.useSharedState)(m,"vendAmount",1),g=v[0],h=v[1],N=Object.entries(p).map(function(b,B){var I=Object.entries(b[1]).map(function(L){return L[1]});return(0,e.createComponentVNode)(2,t.Collapsible,{title:b[0],open:!0,children:I.map(function(L){return(0,e.createComponentVNode)(2,t.Stack,{py:"2px",className:"candystripe",align:"center",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"50%",ml:"2px",children:L.name}),(0,e.createComponentVNode)(2,t.Stack.Item,{textAlign:"right",width:"20%",children:[L.cost*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:il&&"bad"||"good";return(0,e.createComponentVNode)(2,o.Window,{width:650,height:450,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[!!h&&(0,e.createComponentVNode)(2,t.NoticeBox,{danger:1,children:"Safety Protocols disabled"}),l>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:l}),(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 I(){return u("set",{set_level:0})}return I}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"step-backward",tooltip:"Decrease to actual input level",disabled:d===0,onClick:function(){function I(){return u("set",{set_level:l})}return I}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"backward",disabled:d===0,tooltip:"Decrease one step",onClick:function(){function I(){return u("decrease")}return I}()})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:1,mx:1,children:(0,e.createComponentVNode)(2,t.Slider,{value:d,fillValue:l,minValue:0,color:B,maxValue:g,stepPixelSize:20,step:1,onChange:function(){function I(L,T){return u("set",{set_level:T})}return I}()})}),(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 I(){return u("increase")}return I}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",disabled:d===g,tooltip:"Set to max",tooltipPosition:"left",onClick:function(){function I(){return u("set",{set_level:g})}return I}()})]})]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Current Power Use",children:(0,f.formatPower)(p)}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power for next level",children:(0,f.formatPower)(b)}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Surplus Power",children:(0,f.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:i})]})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{align:"end",children:(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:m.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 L(){return u("vend",{target:I.key})}return L}(),content:I.price})},I.key)})})})})]})})]})})})}return y}()},71736:function(w,r,n){"use strict";r.__esModule=!0,r.BodyScanner=void 0;var e=n(96524),a=n(36121),t=n(78234),o=n(17899),f=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"]],C={average:[.25,.5],bad:[.5,1/0]},u=function(B,I){for(var L=[],T=0;T0?B.filter(function(I){return!!I}).reduce(function(I,L){return(0,e.createFragment)([I,(0,e.createComponentVNode)(2,f.Box,{children:L},L)],0)},null):null},m=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,I){var L=(0,o.useBackend)(I),T=L.data,A=T.occupied,x=T.occupant,E=x===void 0?{}:x,M=A?(0,e.createComponentVNode)(2,l,{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}(),l=function(B){var I=B.occupant;return(0,e.createComponentVNode)(2,f.Box,{children:[(0,e.createComponentVNode)(2,s,{occupant:I}),(0,e.createComponentVNode)(2,i,{occupant:I}),(0,e.createComponentVNode)(2,p,{occupant:I}),(0,e.createComponentVNode)(2,g,{organs:I.extOrgan}),(0,e.createComponentVNode)(2,h,{organs:I.intOrgan})]})},s=function(B,I){var L=(0,o.useBackend)(I),T=L.act,A=L.data,x=A.occupant;return(0,e.createComponentVNode)(2,f.Section,{title:"Occupant",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,f.Button,{icon:"print",onClick:function(){function E(){return T("print_p")}return E}(),children:"Print Report"}),(0,e.createComponentVNode)(2,f.Button,{icon:"user-slash",onClick:function(){function E(){return T("ejectify")}return E}(),children:"Eject"})],4),children:(0,e.createComponentVNode)(2,f.LabeledList,{children:[(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Name",children:x.name}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Health",children:(0,e.createComponentVNode)(2,f.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,f.LabeledList.Item,{label:"Status",color:y[x.stat][0],children:y[x.stat][1]}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Temperature",children:[(0,e.createComponentVNode)(2,f.AnimatedNumber,{value:(0,a.round)(x.bodyTempC)}),"\xB0C,\xA0",(0,e.createComponentVNode)(2,f.AnimatedNumber,{value:(0,a.round)(x.bodyTempF)}),"\xB0F"]}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Implants",children:x.implant_len?(0,e.createComponentVNode)(2,f.Box,{children:x.implant.map(function(E){return E.name}).join(", ")}):(0,e.createComponentVNode)(2,f.Box,{color:"label",children:"None"})})]})})},i=function(B){var I=B.occupant;return I.hasBorer||I.blind||I.colourblind||I.nearsighted||I.hasVirus?(0,e.createComponentVNode)(2,f.Section,{title:"Abnormalities",children:S.map(function(L,T){if(I[L[0]])return(0,e.createComponentVNode)(2,f.Box,{color:L[1],bold:L[1]==="bad",children:L[2]},L[2])})}):(0,e.createComponentVNode)(2,f.Section,{title:"Abnormalities",children:(0,e.createComponentVNode)(2,f.Box,{color:"label",children:"No abnormalities found."})})},p=function(B){var I=B.occupant;return(0,e.createComponentVNode)(2,f.Section,{title:"Damage",children:(0,e.createComponentVNode)(2,f.Table,{children:u(k,function(L,T,A){return(0,e.createFragment)([(0,e.createComponentVNode)(2,f.Table.Row,{color:"label",children:[(0,e.createComponentVNode)(2,f.Table.Cell,{children:[L[0],":"]}),(0,e.createComponentVNode)(2,f.Table.Cell,{children:!!T&&T[0]+":"})]}),(0,e.createComponentVNode)(2,f.Table.Row,{children:[(0,e.createComponentVNode)(2,f.Table.Cell,{children:(0,e.createComponentVNode)(2,v,{value:I[L[1]],marginBottom:A100)&&"average"||!!I.status.robotic&&"label",width:"33%",children:(0,t.capitalize)(I.name)}),(0,e.createComponentVNode)(2,f.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,f.ProgressBar,{m:-.5,min:"0",max:I.maxHealth,mt:L>0&&"0.5rem",value:I.totalLoss/I.maxHealth,ranges:C,children:(0,e.createComponentVNode)(2,f.Stack,{children:[(0,e.createComponentVNode)(2,f.Tooltip,{content:"Total damage",children:(0,e.createComponentVNode)(2,f.Stack.Item,{children:[(0,e.createComponentVNode)(2,f.Icon,{name:"heartbeat",mr:.5}),(0,a.round)(I.totalLoss)]})}),!!I.bruteLoss&&(0,e.createComponentVNode)(2,f.Tooltip,{content:"Brute damage",children:(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,children:[(0,e.createComponentVNode)(2,f.Icon,{name:"bone",mr:.5}),(0,a.round)(I.bruteLoss)]})}),!!I.fireLoss&&(0,e.createComponentVNode)(2,f.Tooltip,{content:"Burn damage",children:(0,e.createComponentVNode)(2,f.Stack.Item,{children:[(0,e.createComponentVNode)(2,f.Icon,{name:"fire",mr:.5}),(0,a.round)(I.fireLoss)]})})]})})}),(0,e.createComponentVNode)(2,f.Table.Cell,{textAlign:"right",verticalAlign:"top",width:"33%",pt:L>0&&"calc(0.5rem + 2px)",children:[(0,e.createComponentVNode)(2,f.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,m(I.germ_level),!!I.open&&"Open incision"])}),(0,e.createComponentVNode)(2,f.Box,{inline:!0,children:[c([!!I.status.splinted&&(0,e.createComponentVNode)(2,f.Box,{color:"good",children:"Splinted"}),!!I.status.robotic&&(0,e.createComponentVNode)(2,f.Box,{color:"label",children:"Robotic"}),!!I.status.dead&&(0,e.createComponentVNode)(2,f.Box,{color:"bad",bold:!0,children:"DEAD"})]),c(I.shrapnel.map(function(T){return T.known?T.name:"Unknown object"}))]})]})]},L)})]})})},h=function(B){return B.organs.length===0?(0,e.createComponentVNode)(2,f.Section,{title:"Internal Organs",children:(0,e.createComponentVNode)(2,f.Box,{color:"label",children:"N/A"})}):(0,e.createComponentVNode)(2,f.Section,{title:"Internal Organs",children:(0,e.createComponentVNode)(2,f.Table,{children:[(0,e.createComponentVNode)(2,f.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,f.Table.Cell,{children:"Name"}),(0,e.createComponentVNode)(2,f.Table.Cell,{textAlign:"center",children:"Damage"}),(0,e.createComponentVNode)(2,f.Table.Cell,{textAlign:"right",children:"Injuries"})]}),B.organs.map(function(I,L){return(0,e.createComponentVNode)(2,f.Table.Row,{children:[(0,e.createComponentVNode)(2,f.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,f.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,f.ProgressBar,{min:"0",max:I.maxHealth,value:I.damage/I.maxHealth,mt:L>0&&"0.5rem",ranges:C,children:(0,a.round)(I.damage)})}),(0,e.createComponentVNode)(2,f.Table.Cell,{textAlign:"right",verticalAlign:"top",width:"33%",pt:L>0&&"calc(0.5rem + 2px)",children:[(0,e.createComponentVNode)(2,f.Box,{color:"average",inline:!0,children:c([m(I.germ_level)])}),(0,e.createComponentVNode)(2,f.Box,{inline:!0,children:c([I.robotic===1&&(0,e.createComponentVNode)(2,f.Box,{color:"label",children:"Robotic"}),I.robotic===2&&(0,e.createComponentVNode)(2,f.Box,{color:"label",children:"Assisted"}),!!I.dead&&(0,e.createComponentVNode)(2,f.Box,{color:"bad",bold:!0,children:"DEAD"})])})]})]},L)})]})})},N=function(){return(0,e.createComponentVNode)(2,f.Section,{fill:!0,children:(0,e.createComponentVNode)(2,f.Stack,{fill:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,align:"center",color:"label",children:[(0,e.createComponentVNode)(2,f.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,e.createVNode)(1,"br"),"No occupant detected."]})})})}},99449:function(w,r,n){"use strict";r.__esModule=!0,r.BookBinder=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=n(99665),V=n(18963),y=r.BookBinder=function(){function S(k,C){var u=(0,a.useBackend)(C),c=u.act,m=u.data,d=m.selectedbook,l=m.book_categories,s=[];return l.map(function(i){return s[i.description]=i.category_id}),(0,e.createComponentVNode)(2,o.Window,{width:600,height:400,children:[(0,e.createComponentVNode)(2,f.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 i(){return c("print_book")}return i}()}),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 i(){return(0,f.modalOpen)(C,"edit_selected_title")}return i}()})}),(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 i(){return(0,f.modalOpen)(C,"edit_selected_author")}return i}()})}),(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:l.map(function(i){return i.description}),onSelected:function(){function i(p){return c("toggle_binder_category",{category_id:s[p]})}return i}()})})}),(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 i(){return(0,f.modalOpen)(C,"edit_selected_summary")}return i}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{children:d.summary})]}),(0,e.createVNode)(1,"br"),l.filter(function(i){return d.categories.includes(i.category_id)}).map(function(i){return(0,e.createComponentVNode)(2,t.Button,{content:i.description,selected:!0,icon:"unlink",onClick:function(){function p(){return c("toggle_binder_category",{category_id:i.category_id})}return p}()},i.category_id)})]})})]})})})]})}return S}()},85951:function(w,r,n){"use strict";r.__esModule=!0,r.BotCall=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=function(u){var c=[{modes:[0],label:"Idle",color:"green"},{modes:[1,2,3],label:"Arresting",color:"yellow"},{modes:[4,5],label:"Patrolling",color:"average"},{modes:[9],label:"Moving",color:"average"},{modes:[6,11],label:"Responding",color:"green"},{modes:[12],label:"Delivering Cargo",color:"blue"},{modes:[13],label:"Returning Home",color:"blue"},{modes:[7,8,10,14,15,16,17,18,19],label:"Working",color:"blue"}],m=c.find(function(d){return d.modes.includes(u)});return(0,e.createComponentVNode)(2,t.Box,{color:m.color,children:[" ",m.label," "]})},V=r.BotCall=function(){function C(u,c){var m=(0,a.useBackend)(c),d=m.act,l=m.data,s=(0,a.useLocalState)(c,"tabIndex",0),i=s[0],p=s[1],v={0:"Security",1:"Medibot",2:"Cleanbot",3:"Floorbot",4:"Mule",5:"Honkbot"},g=function(){function h(N){return v[N]?(0,e.createComponentVNode)(2,y,{model:v[N]}):"This should not happen. Report on Paradise Github"}return h}();return(0,e.createComponentVNode)(2,o.Window,{width:700,height:400,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:i===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.Tabs,{fluid:!0,textAlign:"center",children:Array.from({length:6}).map(function(h,N){return(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:i===N,onClick:function(){function b(){return p(N)}return b}(),children:v[N]},N)})})}),g(i)]})})})}return C}(),y=function(u,c){var m=(0,a.useBackend)(c),d=m.act,l=m.data,s=l.bots;return s[u.model]!==void 0?(0,e.createComponentVNode)(2,k,{model:[u.model]}):(0,e.createComponentVNode)(2,S,{model:[u.model]})},S=function(u,c){var m=(0,a.useBackend)(c),d=m.act,l=m.data;return(0,e.createComponentVNode)(2,t.Stack,{justify:"center",align:"center",fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,t.Box,{bold:1,color:"bad",children:["No ",[u.model]," detected"]})})},k=function(u,c){var m=(0,a.useBackend)(c),d=m.act,l=m.data,s=l.bots;return(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,t.Stack.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:"Name"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Model"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Status"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Location"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Interface"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Call"})]}),s[u.model].map(function(i){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:i.name}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:i.model}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:i.on?f(i.status):(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Off"})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:i.location}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Interface",onClick:function(){function p(){return d("interface",{botref:i.UID})}return p}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Call",onClick:function(){function p(){return d("call",{botref:i.UID})}return p}()})})]},i.UID)})]})})})}},43506:function(w,r,n){"use strict";r.__esModule=!0,r.BotClean=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=n(69521),V=r.BotClean=function(){function y(S,k){var C=(0,a.useBackend)(k),u=C.act,c=C.data,m=c.locked,d=c.noaccess,l=c.maintpanel,s=c.on,i=c.autopatrol,p=c.canhack,v=c.emagged,g=c.remote_disabled,h=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,f.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 u("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 u("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})})]}),h&&(0,e.createComponentVNode)(2,t.Section,{title:"pAI",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"eject",content:h,disabled:d,onClick:function(){function B(){return u("ejectpai")}return B}()})})]})})}return y}()},89593:function(w,r,n){"use strict";r.__esModule=!0,r.BotFloor=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=n(69521),V=r.BotFloor=function(){function y(S,k){var C=(0,a.useBackend)(k),u=C.act,c=C.data,m=c.noaccess,d=c.painame,l=c.hullplating,s=c.replace,i=c.eat,p=c.make,v=c.fixfloor,g=c.nag_empty,h=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,f.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:l,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:m,onClick:function(){function b(){return u("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:m,onClick:function(){function b(){return u("replacetiles")}return b}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:v,content:"Repair damaged tiles and platings",disabled:m,onClick:function(){function b(){return u("fixfloors")}return b}()})]}),(0,e.createComponentVNode)(2,t.Section,{title:"Miscellaneous",children:[(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:i,content:"Finds tiles",disabled:m,onClick:function(){function b(){return u("eattiles")}return b}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:p,content:"Make pieces of metal into tiles when empty",disabled:m,onClick:function(){function b(){return u("maketiles")}return b}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:g,content:"Transmit notice when empty",disabled:m,onClick:function(){function b(){return u("nagonempty")}return b}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:h,content:"Traction Magnets",disabled:m,onClick:function(){function b(){return u("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:m,onClick:function(){function b(){return u("ejectpai")}return b}()})})]})})}return y}()},89513:function(w,r,n){"use strict";r.__esModule=!0,r.BotHonk=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=n(69521),V=r.BotHonk=function(){function y(S,k){var C=(0,a.useBackend)(k),u=C.act,c=C.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,f.BotStatus)})})}return y}()},19297:function(w,r,n){"use strict";r.__esModule=!0,r.BotMed=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=n(69521),V=r.BotMed=function(){function y(S,k){var C=(0,a.useBackend)(k),u=C.act,c=C.data,m=c.locked,d=c.noaccess,l=c.maintpanel,s=c.on,i=c.autopatrol,p=c.canhack,v=c.emagged,g=c.remote_disabled,h=c.painame,N=c.shut_up,b=c.declare_crit,B=c.stationary_mode,I=c.heal_threshold,L=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,f.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 u("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 u("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:d,onChange:function(){function E(M,j){return u("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:L.value,minValue:L.min,maxValue:L.max,step:5,format:function(){function E(M){return M+"u"}return E}(),disabled:d,onChange:function(){function E(M,j){return u("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:d,onClick:function(){function E(){return u("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:d,onClick:function(){function E(){return u("eject_reagent_glass")}return E}()})})]})})]}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{mt:1,fluid:!0,content:"Treat Viral Infections",checked:A,disabled:d,onClick:function(){function E(){return u("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 u("toggle_stationary_mode")}return E}()})]}),h&&(0,e.createComponentVNode)(2,t.Section,{title:"pAI",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"eject",content:h,disabled:d,onClick:function(){function E(){return u("ejectpai")}return E}()})})]})})})}return y}()},4249:function(w,r,n){"use strict";r.__esModule=!0,r.BotSecurity=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=n(69521),V=r.BotSecurity=function(){function y(S,k){var C=(0,a.useBackend)(k),u=C.act,c=C.data,m=c.noaccess,d=c.painame,l=c.check_id,s=c.check_weapons,i=c.check_warrant,p=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,f.BotStatus),(0,e.createComponentVNode)(2,t.Section,{title:"Who To Arrest",children:[(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:l,content:"Unidentifiable Persons",disabled:m,onClick:function(){function g(){return u("authid")}return g}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:s,content:"Unauthorized Weapons",disabled:m,onClick:function(){function g(){return u("authweapon")}return g}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:i,content:"Wanted Criminals",disabled:m,onClick:function(){function g(){return u("authwarrant")}return g}()})]}),(0,e.createComponentVNode)(2,t.Section,{title:"Arrest Procedure",children:[(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:p,content:"Detain Targets Indefinitely",disabled:m,onClick:function(){function g(){return u("arrtype")}return g}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:v,content:"Announce Arrests On Radio",disabled:m,onClick:function(){function g(){return u("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:m,onClick:function(){function g(){return u("ejectpai")}return g}()})})]})})}return y}()},27267:function(w,r,n){"use strict";r.__esModule=!0,r.BrigCells=void 0;var e=n(96524),a=n(45493),t=n(24674),o=n(17899),f=function(k,C){var u=k.cell,c=(0,o.useBackend)(C),m=c.act,d=u.cell_id,l=u.occupant,s=u.crimes,i=u.brigged_by,p=u.time_left_seconds,v=u.time_set_seconds,g=u.ref,h="";p>0&&(h+=" BrigCells__listRow--active");var N=function(){m("release",{ref:g})};return(0,e.createComponentVNode)(2,t.Table.Row,{className:h,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:d}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:l}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:s}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:i}),(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:p})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{type:"button",onClick:N,children:"Release"})})]})},V=function(k){var C=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"})]}),C.map(function(u){return(0,e.createComponentVNode)(2,f,{cell:u},u.ref)})]})},y=r.BrigCells=function(){function S(k,C){var u=(0,o.useBackend)(C),c=u.act,m=u.data,d=m.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(w,r,n){"use strict";r.__esModule=!0,r.BrigTimer=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.BrigTimer=function(){function V(y,S){var k=(0,a.useBackend)(S),C=k.act,u=k.data;u.nameText=u.occupant,u.timing&&(u.prisoner_hasrec?u.nameText=(0,e.createComponentVNode)(2,t.Box,{color:"green",children:u.occupant}):u.nameText=(0,e.createComponentVNode)(2,t.Box,{color:"red",children:u.occupant}));var c="pencil-alt";u.prisoner_name&&(u.prisoner_hasrec||(c="exclamation-triangle"));var m=[],d=0;for(d=0;dm?this.substring(0,m)+"...":this};var k=function(d,l){var s,i;if(!l)return[];var p=d.findIndex(function(v){return v.name===l.name});return[(s=d[p-1])==null?void 0:s.name,(i=d[p+1])==null?void 0:i.name]},C=function(d,l){l===void 0&&(l="");var s=(0,f.createSearch)(l,function(i){return i.name});return(0,t.flow)([(0,a.filter)(function(i){return i==null?void 0:i.name}),l&&(0,a.filter)(s),(0,a.sortBy)(function(i){return i.name})])(d)},u=r.CameraConsole=function(){function m(d,l){var s=(0,V.useBackend)(l),i=s.act,p=s.data,v=s.config,g=p.mapRef,h=p.activeCamera,N=C(p.cameras),b=k(N,h),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),h&&h.name||"\u2014"],0),(0,e.createVNode)(1,"div","CameraConsole__toolbarRight",[(0,e.createComponentVNode)(2,y.Button,{icon:"chevron-left",disabled:!B,onClick:function(){function L(){return i("switch_camera",{name:B})}return L}()}),(0,e.createComponentVNode)(2,y.Button,{icon:"chevron-right",disabled:!I,onClick:function(){function L(){return i("switch_camera",{name:I})}return L}()})],4),(0,e.createComponentVNode)(2,y.ByondUi,{className:"CameraConsole__map",params:{id:g,type:"map"}})],4)]})}return m}(),c=r.CameraConsoleContent=function(){function m(d,l){var s=(0,V.useBackend)(l),i=s.act,p=s.data,v=(0,V.useLocalState)(l,"searchText",""),g=v[0],h=v[1],N=p.activeCamera,b=C(p.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,L){return h(L)}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 I(){return i("switch_camera",{name:B.name})}return I}()},B.name)})})})]})}return m}()},9300:function(w,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),f=n(78234),V=n(17899),y=n(24674),S=n(45493),k=function(l,s){var i,p;if(!s)return[];var v=l.findIndex(function(g){return g.name===s.name});return[(i=l[v-1])==null?void 0:i.name,(p=l[v+1])==null?void 0:p.name]},C=function(l,s){s===void 0&&(s="");var i=(0,f.createSearch)(s,function(p){return p.name});return(0,t.flow)([(0,a.filter)(function(p){return p==null?void 0:p.name}),s&&(0,a.filter)(i),(0,a.sortBy)(function(p){return p.name})])(l)},u=r.CameraConsole220=function(){function d(l,s){var i=(0,V.useLocalState)(s,"tabIndex",0),p=i[0],v=i[1],g=function(){function h(N){switch(N){case 0:return(0,e.createComponentVNode)(2,c);case 1:return(0,e.createComponentVNode)(2,m);default:return"WE SHOULDN'T BE HERE!"}}return h}();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:p===1?"222px":"475px",textAlign:"center",children:(0,e.createComponentVNode)(2,y.Tabs,{fluid:!0,ml:p===1?1:0,mt:p===1?1:0,children:[(0,e.createComponentVNode)(2,y.Tabs.Tab,{selected:p===0,onClick:function(){function h(){return v(0)}return h}(),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:p===1,onClick:function(){function h(){return v(1)}return h}(),children:[(0,e.createComponentVNode)(2,y.Icon,{name:"table"})," \u0421\u043F\u0438\u0441\u043E\u043A"]},"List")]})}),g(p)]})})})})}return d}(),c=r.CameraConsoleMapContent=function(){function d(l,s){var i=(0,V.useBackend)(s),p=i.act,v=i.data,g=C(v.cameras),h=(0,V.useLocalState)(s,"zoom",1),N=h[0],b=h[1],B=v.mapRef,I=v.activeCamera,L=v.stationLevel,T=k(g,I),A=T[0],x=T[1];return(0,e.createComponentVNode)(2,y.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,y.Stack.Item,{height:"100%",style:{flex:"0 0 474px"},children:(0,e.createComponentVNode)(2,y.NanoMap,{onZoom:function(){function E(M){return b(M)}return E}(),children:g.filter(function(E){return E.z===L}).map(function(E){return(0,e.createComponentVNode)(2,y.NanoMap.NanoButton,{activeCamera:I,x:E.x,y:E.y,context:s,zoom:N,icon:"circle",tooltip:E.name,name:E.name,color:"blue",status:E.status},E.ref)})})}),(0,e.createComponentVNode)(2,y.Stack.Item,{height:"100%",m:.1,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),I&&I.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 p("switch_camera",{name:A})}return E}()}),(0,e.createComponentVNode)(2,y.Button,{icon:"chevron-right",disabled:!x,onClick:function(){function E(){return p("switch_camera",{name:x})}return E}()})],4)],4),(0,e.createComponentVNode)(2,y.ByondUi,{className:"CameraConsole__map",overflow:"hidden",params:{id:B,type:"map"}})]})]})}return d}(),m=r.CameraConsoleOldContent=function(){function d(l,s){var i=(0,V.useBackend)(s),p=i.act,v=i.data,g=i.config,h=v.mapRef,N=v.activeCamera,b=(0,V.useLocalState)(s,"searchText",""),B=b[0],I=b[1],L=C(v.cameras,B),T=k(L,N),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:L.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 p("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:!A,onClick:function(){function E(){return p("switch_camera",{name:A})}return E}()}),(0,e.createComponentVNode)(2,y.Button,{icon:"chevron-right",disabled:!x,onClick:function(){function E(){return p("switch_camera",{name:x})}return E}()})],4),(0,e.createComponentVNode)(2,y.ByondUi,{className:"CameraConsole__map",params:{id:h,type:"map"}})],4)]})}return d}()},95513:function(w,r,n){"use strict";r.__esModule=!0,r.Canister=void 0;var e=n(96524),a=n(36121),t=n(17899),o=n(24674),f=n(92986),V=n(45493),y=r.Canister=function(){function S(k,C){var u=(0,t.useBackend)(C),c=u.act,m=u.data,d=m.portConnected,l=m.tankPressure,s=m.releasePressure,i=m.defaultReleasePressure,p=m.minReleasePressure,v=m.maxReleasePressure,g=m.valveOpen,h=m.name,N=m.canLabel,b=m.colorContainer,B=m.color_index,I=m.hasHoldingTank,L=m.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;Dh.current_positions&&(0,e.createComponentVNode)(2,t.Box,{color:"green",children:h.total_positions-h.current_positions})||(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"0"})}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{content:"-",disabled:i.cooldown_time||!h.can_close,onClick:function(){function N(){return s("make_job_unavailable",{job:h.title})}return N}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{content:"+",disabled:i.cooldown_time||!h.can_open,onClick:function(){function N(){return s("make_job_available",{job:h.title})}return N}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:i.target_dept&&(0,e.createComponentVNode)(2,t.Box,{color:"green",children:i.priority_jobs.indexOf(h.title)>-1?"Yes":""})||(0,e.createComponentVNode)(2,t.Button,{content:h.is_priority?"Yes":"No",selected:h.is_priority,disabled:i.cooldown_time||!h.can_prioritize,onClick:function(){function N(){return s("prioritize_job",{job:h.title})}return N}()})})]},h.title)})]})})]}):g=(0,e.createComponentVNode)(2,S);break;case 2:!i.authenticated||!i.scan_name?g=(0,e.createComponentVNode)(2,S):i.modify_name?g=(0,e.createComponentVNode)(2,f.AccessList,{accesses:i.regions,selectedList:i.selectedAccess,accessMod:function(){function h(N){return s("set",{access:N})}return h}(),grantAll:function(){function h(){return s("grant_all")}return h}(),denyAll:function(){function h(){return s("clear_all")}return h}(),grantDep:function(){function h(N){return s("grant_region",{region:N})}return h}(),denyDep:function(){function h(N){return s("deny_region",{region:N})}return h}()}):g=(0,e.createComponentVNode)(2,k);break;case 3:i.authenticated?i.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:!i.authenticated||i.records.length===0||i.target_dept,onClick:function(){function h(){return s("wipe_all_logs")}return h}()}),children:[(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{height:2,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Crewman"}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Old Rank"}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"New Rank"}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Authorized By"}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Time"}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Reason"}),!!i.iscentcom&&(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Deleted By"})]}),i.records.map(function(h){return(0,e.createComponentVNode)(2,t.Table.Row,{height:2,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:h.transferee}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:h.oldvalue}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:h.newvalue}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:h.whodidit}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:h.timestamp}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:h.reason}),!!i.iscentcom&&(0,e.createComponentVNode)(2,t.Table.Cell,{children:h.deletedby})]},h.timestamp)})]}),!!i.iscentcom&&(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"pencil-alt",content:"Delete MY Records",color:"purple",disabled:!i.authenticated||i.records.length===0,onClick:function(){function h(){return s("wipe_my_logs")}return h}()})})]}):g=(0,e.createComponentVNode)(2,C):g=(0,e.createComponentVNode)(2,S);break;case 4:!i.authenticated||!i.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"})]}),i.people_dept.map(function(h){return(0,e.createComponentVNode)(2,t.Table.Row,{height:2,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:h.name}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:h.title}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:h.crimstat}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{content:h.buttontext,disabled:!h.demotable,onClick:function(){function N(){return s("remote_demote",{remote_demote:h.name})}return N}()})})]},h.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:p}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:g})]})})})}return c}()},16377:function(w,r,n){"use strict";r.__esModule=!0,r.CargoConsole=void 0;var e=n(96524),a=n(74041),t=n(50640),o=n(17899),f=n(24674),V=n(45493),y=n(78234),S=r.CargoConsole=function(){function l(s,i){return(0,e.createComponentVNode)(2,V.Window,{width:900,height:800,children:(0,e.createComponentVNode)(2,V.Window.Content,{children:(0,e.createComponentVNode)(2,f.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,k),(0,e.createComponentVNode)(2,C),(0,e.createComponentVNode)(2,u),(0,e.createComponentVNode)(2,c),(0,e.createComponentVNode)(2,d)]})})})}return l}(),k=function(s,i){var p=(0,o.useLocalState)(i,"contentsModal",null),v=p[0],g=p[1],h=(0,o.useLocalState)(i,"contentsModalTitle",null),N=h[0],b=h[1];if(v!==null&&N!==null)return(0,e.createComponentVNode)(2,f.Modal,{maxWidth:"75%",width:window.innerWidth+"px",maxHeight:window.innerHeight*.75+"px",mx:"auto",children:[(0,e.createComponentVNode)(2,f.Box,{width:"100%",bold:!0,children:(0,e.createVNode)(1,"h1",null,[N,(0,e.createTextVNode)(" contents:")],0)}),(0,e.createComponentVNode)(2,f.Box,{children:v.map(function(B){return(0,e.createComponentVNode)(2,f.Box,{children:["- ",B]},B)})}),(0,e.createComponentVNode)(2,f.Box,{m:2,children:(0,e.createComponentVNode)(2,f.Button,{content:"Close",onClick:function(){function B(){g(null),b(null)}return B}()})})]})},C=function(s,i){var p=(0,o.useBackend)(i),v=p.act,g=p.data,h=g.is_public,N=g.timeleft,b=g.moving,B=g.at_station,I,L;return!b&&!B?(I="Docked off-station",L="Call Shuttle"):!b&&B?(I="Docked at the station",L="Return Shuttle"):b&&(L="In Transit...",N!==1?I="Shuttle is en route (ETA: "+N+" minutes)":I="Shuttle is en route (ETA: "+N+" minute)"),(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Section,{title:"Status",children:(0,e.createComponentVNode)(2,f.LabeledList,{children:[(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Shuttle Status",children:I}),h===0&&(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Controls",children:[(0,e.createComponentVNode)(2,f.Button,{content:L,disabled:b,onClick:function(){function T(){return v("moveShuttle")}return T}()}),(0,e.createComponentVNode)(2,f.Button,{content:"View Central Command Messages",onClick:function(){function T(){return v("showMessages")}return T}()})]})]})})})},u=function(s,i){var p,v=(0,o.useBackend)(i),g=v.act,h=v.data,N=h.accounts,b=(0,o.useLocalState)(i,"selectedAccount"),B=b[0],I=b[1],L=[];return N.map(function(T){return L[T.name]=T.account_UID}),(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Section,{title:"Payment",children:[(0,e.createComponentVNode)(2,f.Dropdown,{width:"190px",options:N.map(function(T){return T.name}),selected:(p=N.filter(function(T){return T.account_UID===B})[0])==null?void 0:p.name,onSelected:function(){function T(A){return I(L[A])}return T}()}),N.filter(function(T){return T.account_UID===B}).map(function(T){return(0,e.createComponentVNode)(2,f.LabeledList,{children:[(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Account Name",children:(0,e.createComponentVNode)(2,f.Stack.Item,{mt:1,children:T.name})}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Balance",children:(0,e.createComponentVNode)(2,f.Stack.Item,{children:T.balance})})]},T.account_UID)})]})})},c=function(s,i){var p=(0,o.useBackend)(i),v=p.act,g=p.data,h=g.requests,N=g.categories,b=g.supply_packs,B=(0,o.useSharedState)(i,"category","Emergency"),I=B[0],L=B[1],T=(0,o.useSharedState)(i,"search_text",""),A=T[0],x=T[1],E=(0,o.useLocalState)(i,"contentsModal",null),M=E[0],j=E[1],P=(0,o.useLocalState)(i,"contentsModalTitle",null),R=P[0],D=P[1],F=(0,y.createSearch)(A,function(Y){return Y.name}),W=(0,o.useLocalState)(i,"selectedAccount"),_=W[0],K=W[1],H=(0,a.flow)([(0,t.filter)(function(Y){return Y.cat===N.filter(function(J){return J.name===I})[0].category||A}),A&&(0,t.filter)(F),(0,t.sortBy)(function(Y){return Y.name.toLowerCase()})])(b),X="Crate Catalogue";return A?X="Results for '"+A+"':":I&&(X="Browsing "+I),(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Section,{title:X,buttons:(0,e.createComponentVNode)(2,f.Dropdown,{width:"190px",options:N.map(function(Y){return Y.name}),selected:I,onSelected:function(){function Y(J){return L(J)}return Y}()}),children:[(0,e.createComponentVNode)(2,f.Input,{fluid:!0,placeholder:"Search for...",onInput:function(){function Y(J,le){return x(le)}return Y}(),mb:1}),(0,e.createComponentVNode)(2,f.Box,{maxHeight:25,overflowY:"auto",overflowX:"hidden",children:(0,e.createComponentVNode)(2,f.Table,{m:"0.5rem",children:H.map(function(Y){return(0,e.createComponentVNode)(2,f.Table.Row,{children:[(0,e.createComponentVNode)(2,f.Table.Cell,{bold:!0,children:[Y.name," (",Y.cost," Credits)"]}),(0,e.createComponentVNode)(2,f.Table.Cell,{textAlign:"right",pr:1,children:[(0,e.createComponentVNode)(2,f.Button,{content:"Order 1",icon:"shopping-cart",disabled:!_,onClick:function(){function J(){return v("order",{crate:Y.ref,multiple:!1,account:_})}return J}()}),(0,e.createComponentVNode)(2,f.Button,{content:"Order Multiple",icon:"cart-plus",disabled:!_||Y.singleton,onClick:function(){function J(){return v("order",{crate:Y.ref,multiple:!0,account:_})}return J}()}),(0,e.createComponentVNode)(2,f.Button,{content:"View Contents",icon:"search",onClick:function(){function J(){j(Y.contents),D(Y.name)}return J}()})]})]},Y.name)})})})]})})},m=function(s,i){var p=s.request,v,g;switch(p.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,f.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,f.Stack.Item,{mt:.5,children:"Approval Required:"}),!!p.req_cargo_approval&&(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Button,{color:"brown",content:"QM",icon:"user-tie",tooltip:"This Order requires approval from the QM still"})}),!!p.req_head_approval&&(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Button,{color:v,content:g,disabled:p.req_cargo_approval,icon:"user-tie",tooltip:p.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,i){var p=(0,o.useBackend)(i),v=p.act,g=p.data,h=g.requests,N=g.orders,b=g.shipments;return(0,e.createComponentVNode)(2,f.Section,{fill:!0,scrollable:!0,title:"Orders",children:[(0,e.createComponentVNode)(2,f.Box,{bold:!0,children:"Requests"}),(0,e.createComponentVNode)(2,f.Table,{children:h.map(function(B){return(0,e.createComponentVNode)(2,f.Table.Row,{className:"Cargo_RequestList",children:[(0,e.createComponentVNode)(2,f.Table.Cell,{mb:1,children:[(0,e.createComponentVNode)(2,f.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,f.Box,{italic:!0,children:["Reason: ",B.comment]}),(0,e.createComponentVNode)(2,m,{request:B})]}),(0,e.createComponentVNode)(2,f.Stack.Item,{textAlign:"right",children:[(0,e.createComponentVNode)(2,f.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,f.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,f.Box,{bold:!0,children:"Orders Awaiting Delivery"}),(0,e.createComponentVNode)(2,f.Table,{m:"0.5rem",children:N.map(function(B){return(0,e.createComponentVNode)(2,f.Table.Row,{children:(0,e.createComponentVNode)(2,f.Table.Cell,{children:[(0,e.createComponentVNode)(2,f.Box,{children:["- #",B.ordernum,": ",B.supply_type," for ",(0,e.createVNode)(1,"b",null,B.orderedby,0)]}),(0,e.createComponentVNode)(2,f.Box,{italic:!0,children:["Reason: ",B.comment]})]})},B.ordernum)})}),(0,e.createComponentVNode)(2,f.Box,{bold:!0,children:"Order in Transit"}),(0,e.createComponentVNode)(2,f.Table,{m:"0.5rem",children:b.map(function(B){return(0,e.createComponentVNode)(2,f.Table.Row,{children:(0,e.createComponentVNode)(2,f.Table.Cell,{children:[(0,e.createComponentVNode)(2,f.Box,{children:["- #",B.ordernum,": ",B.supply_type," for ",(0,e.createVNode)(1,"b",null,B.orderedby,0)]}),(0,e.createComponentVNode)(2,f.Box,{italic:!0,children:["Reason: ",B.comment]})]})},B.ordernum)})})]})}},89917:function(w,r,n){"use strict";r.__esModule=!0,r.ChangelogView=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.ChangelogView=function(){function V(y,S){var k=(0,a.useBackend)(S),C=k.act,u=k.data,c=(0,a.useLocalState)(S,"onlyRecent",0),m=c[0],d=c[1],l=u.cl_data,s=u.last_cl,i={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"})},p=function(){function v(g){return g in i?i[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:m?"Showing all changes":"Showing changes since last connection",onClick:function(){function v(){return d(!m)}return v}()}),children:l.map(function(v){return!m&&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 C("open_pr",{pr_number:v.num})}return g}()}),children:v.entries.map(function(g){return(0,e.createComponentVNode)(2,t.Box,{m:1,children:[p(g.etype)," ",g.etext]},g)})},v)})})})})}return V}()},71254:function(w,r,n){"use strict";r.__esModule=!0,r.ChemDispenser=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(1496),f=n(45493),V=[1,5,10,20,30,50],y=[1,5,10],S=r.ChemDispenser=function(){function c(m,d){var l=(0,a.useBackend)(d),s=l.act,i=l.data,p=i.chemicals;return(0,e.createComponentVNode)(2,f.Window,{width:400,height:400+p.length*8,children:(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,k),(0,e.createComponentVNode)(2,C),(0,e.createComponentVNode)(2,u)]})})})}return c}(),k=function(m,d){var l=(0,a.useBackend)(d),s=l.act,i=l.data,p=i.amount,v=i.energy,g=i.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(h,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:p===h,content:h,onClick:function(){function b(){return s("amount",{amount:h})}return b}()})},N)})})})]})})})},C=function(m,d){for(var l=(0,a.useBackend)(d),s=l.act,i=l.data,p=i.chemicals,v=p===void 0?[]:p,g=[],h=0;h<(v.length+1)%3;h++)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:i.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)})]})})},u=function(m,d){var l=(0,a.useBackend)(d),s=l.act,i=l.data,p=i.isBeakerLoaded,v=i.beakerCurrentVolume,g=i.beakerMaxVolume,h=i.beakerContents,N=h===void 0?[]:h;return(0,e.createComponentVNode)(2,t.Stack.Item,{height:16,children:(0,e.createComponentVNode)(2,t.Section,{title:i.glass?"Glass":"Beaker",fill:!0,scrollable:!0,buttons:(0,e.createComponentVNode)(2,t.Box,{children:[!!p&&(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:!p,onClick:function(){function b(){return s("ejectBeaker")}return b}()})]}),children:(0,e.createComponentVNode)(2,o.BeakerContents,{beakerLoaded:p,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 I(){return s("remove",{reagent:B.id,amount:-1})}return I}()}),y.map(function(I,L){return(0,e.createComponentVNode)(2,t.Button,{content:I,onClick:function(){function T(){return s("remove",{reagent:B.id,amount:I})}return T}()},L)}),(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(w,r,n){"use strict";r.__esModule=!0,r.ChemHeater=void 0;var e=n(96524),a=n(36121),t=n(17899),o=n(24674),f=n(1496),V=n(45493),y=r.ChemHeater=function(){function C(u,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 C}(),S=function(u,c){var m=(0,t.useBackend)(c),d=m.act,l=m.data,s=l.targetTemp,i=l.targetTempReached,p=l.autoEject,v=l.isActive,g=l.currentTemp,h=l.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:p?"toggle-on":"toggle-off",selected:p,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:!h,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:i?"good":"average",children:h&&(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:g,format:function(){function N(b){return(0,a.toFixed)(b)+" K"}return N}()})||"\u2014"})]})})})},k=function(u,c){var m=(0,t.useBackend)(c),d=m.act,l=m.data,s=l.isBeakerLoaded,i=l.beakerCurrentVolume,p=l.beakerMaxVolume,v=l.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:[i," / ",p," 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,f.BeakerContents,{beakerLoaded:s,beakerContents:v})})})}},41099:function(w,r,n){"use strict";r.__esModule=!0,r.ChemMaster=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=n(1496),V=n(99665),y=n(28234),S=["icon"];function k(I,L){if(I==null)return{};var T={},A=Object.keys(I),x,E;for(E=0;E=0)&&(T[x]=I[x]);return T}function C(I,L){I.prototype=Object.create(L.prototype),I.prototype.constructor=I,u(I,L)}function u(I,L){return u=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function T(A,x){return A.__proto__=x,A}return T}(),u(I,L)}var c=[1,5,10],m=function(L,T){var A=(0,a.useBackend)(T),x=A.act,E=A.data,M=L.args.analysis;return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:E.condi?"Condiment Analysis":"Reagent Analysis",children:(0,e.createComponentVNode)(2,t.Box,{mx:"0.5rem",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Name",children:M.name}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Description",children:(M.desc||"").length>0?M.desc:"N/A"}),M.blood_type&&(0,e.createFragment)([(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Blood type",children:M.blood_type}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Blood DNA",className:"LabeledList__breakContents",children:M.blood_dna})],4),!E.condi&&(0,e.createComponentVNode)(2,t.Button,{icon:E.printing?"spinner":"print",disabled:E.printing,iconSpin:!!E.printing,ml:"0.5rem",content:"Print",onClick:function(){function j(){return x("print",{idx:M.idx,beaker:L.args.beaker})}return j}()})]})})})})},d=function(I){return I[I.ToDisposals=0]="ToDisposals",I[I.ToBeaker=1]="ToBeaker",I}(d||{}),l=r.ChemMaster=function(){function I(L,T){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,s),(0,e.createComponentVNode)(2,i),(0,e.createComponentVNode)(2,p),(0,e.createComponentVNode)(2,B)]})})]})}return I}(),s=function(L,T){var A=(0,a.useBackend)(T),x=A.act,E=A.data,M=E.beaker,j=E.beaker_reagents,P=E.buffer_reagents,R=P.length>0;return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Beaker",fill:!0,scrollable:!0,buttons:R?(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"eject",disabled:!M,content:"Eject and Clear Buffer",onClick:function(){function D(){return x("eject")}return D}()}):(0,e.createComponentVNode)(2,t.Button,{icon:"eject",disabled:!M,content:"Eject and Clear Buffer",onClick:function(){function D(){return x("eject")}return D}()}),children:M?(0,e.createComponentVNode)(2,f.BeakerContents,{beakerLoaded:!0,beakerContents:j,buttons:function(){function D(F,W){return(0,e.createComponentVNode)(2,t.Box,{mb:W0?(0,e.createComponentVNode)(2,f.BeakerContents,{beakerLoaded:!0,beakerContents:j,buttons:function(){function P(R,D){return(0,e.createComponentVNode)(2,t.Box,{mb:D0&&(R=P.map(function(D){var F=D.id,W=D.sprite;return(0,e.createComponentVNode)(2,N,{icon:W,color:"translucent",onClick:function(){function _(){return x("set_sprite_style",{production_mode:M,style:F})}return _}(),selected:j===F},F)})),(0,e.createComponentVNode)(2,h,{productionData:L.productionData,children:R&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Style",children:R})})},B=function(L,T){var A=(0,a.useBackend)(T),x=A.act,E=A.data,M=E.loaded_pill_bottle_style,j=E.containerstyles,P=E.loaded_pill_bottle,R={width:"20px",height:"20px"},D=j.map(function(F){var W=F.color,_=F.name,K=M===W;return(0,e.createComponentVNode)(2,t.Button,{style:{position:"relative",width:R.width,height:R.height},onClick:function(){function H(){return x("set_container_style",{style:W})}return H}(),icon:K&&"check",iconStyle:{position:"relative","z-index":1},tooltip:_,tooltipPosition:"top",children:[!K&&(0,e.createVNode)(1,"div",null,null,1,{style:{display:"inline-block"}}),(0,e.createVNode)(1,"span","Button",null,1,{style:{display:"inline-block",position:"absolute",top:0,left:0,margin:0,padding:0,width:R.width,height:R.height,"background-color":W,opacity:.6,filter:"alpha(opacity=60)"}})]},W)});return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Container Customization",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"eject",disabled:!P,content:"Eject Container",onClick:function(){function F(){return x("ejectp")}return F}()}),children:P?(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Style",children:[(0,e.createComponentVNode)(2,t.Button,{style:{width:R.width,height:R.height},icon:"tint-slash",onClick:function(){function F(){return x("clear_container_style")}return F}(),selected:!M,tooltip:"Default",tooltipPosition:"top"}),D]})}):(0,e.createComponentVNode)(2,t.Box,{color:"label",children:"No pill bottle or patch pack loaded."})})})};(0,V.modalRegisterBodyOverride)("analyze",m)},51327:function(w,r,n){"use strict";r.__esModule=!0,r.CloningConsole=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=n(17442),V=1,y=32,S=128,k=r.CloningConsole=function(){function l(s,i){var p=(0,a.useBackend)(i),v=p.act,g=p.data,h=g.tab,N=g.has_scanner,b=g.pod_amount;return(0,e.createComponentVNode)(2,o.Window,{width:640,height:520,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,t.Section,{title:"Cloning Console",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Connected scanner",children:N?"Online":"Missing"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Connected pods",children:b})]})}),(0,e.createComponentVNode)(2,t.Tabs,{children:[(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:h===1,icon:"home",onClick:function(){function B(){return v("menu",{tab:1})}return B}(),children:"Main Menu"}),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:h===2,icon:"user",onClick:function(){function B(){return v("menu",{tab:2})}return B}(),children:"Damage Configuration"})]}),(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,C)})]})})}return l}(),C=function(s,i){var p=(0,a.useBackend)(i),v=p.data,g=v.tab,h;return g===1?h=(0,e.createComponentVNode)(2,u):g===2&&(h=(0,e.createComponentVNode)(2,c)),h},u=function(s,i){var p=(0,a.useBackend)(i),v=p.act,g=p.data,h=g.pods,N=g.pod_amount,b=g.selected_pod_UID;return(0,e.createComponentVNode)(2,t.Box,{children:[!N&&(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"Notice: No pods connected."}),!!N&&h.map(function(B,I){return(0,e.createComponentVNode)(2,t.Section,{layer:2,title:"Pod "+(I+1),children:(0,e.createComponentVNode)(2,t.Stack,{textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{basis:"96px",shrink:0,children:[(0,e.createVNode)(1,"img",null,null,1,{src:(0,f.resolveAsset)("pod_"+(B.cloning?"cloning":"idle")+".gif"),style:{width:"100%","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createComponentVNode)(2,t.Button,{selected:b===B.uid,onClick:function(){function L(){return v("select_pod",{uid:B.uid})}return L}(),children:"Select"})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Progress",children:[!B.cloning&&(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"Pod is inactive."}),!!B.cloning&&(0,e.createComponentVNode)(2,t.ProgressBar,{value:B.clone_progress,maxValue:100,color:"good"})]}),(0,e.createComponentVNode)(2,t.LabeledList.Divider),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Biomass",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:B.biomass,ranges:{good:[2*B.biomass_storage_capacity/3,B.biomass_storage_capacity],average:[B.biomass_storage_capacity/3,2*B.biomass_storage_capacity/3],bad:[0,B.biomass_storage_capacity/3]},minValue:0,maxValue:B.biomass_storage_capacity,children:[B.biomass,"/",B.biomass_storage_capacity+" ("+100*B.biomass/B.biomass_storage_capacity+"%)"]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Sanguine Reagent",children:B.sanguine_reagent}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Osseous Reagent",children:B.osseous_reagent})]})})]})},B)})]})},c=function(s,i){var p=(0,a.useBackend)(i),v=p.act,g=p.data,h=g.selected_pod_data,N=g.has_scanned,b=g.scanner_has_patient,B=g.feedback,I=g.scan_successful,L=g.cloning_cost,T=g.has_scanner;return(0,e.createComponentVNode)(2,t.Box,{children:[!T&&(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"Notice: No scanner connected."}),!!T&&(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Section,{layer:2,title:"Scanner Info",buttons:(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"hourglass-half",onClick:function(){function A(){return v("scan")}return A}(),children:"Scan"}),(0,e.createComponentVNode)(2,t.Button,{icon:"eject",onClick:function(){function A(){return v("eject")}return A}(),children:"Eject Patient"})]}),children:[!N&&(0,e.createComponentVNode)(2,t.Box,{color:"average",children:b?"No scan detected for current patient.":"No patient is in the scanner."}),!!N&&(0,e.createComponentVNode)(2,t.Box,{color:B.color,children:B.text})]}),(0,e.createComponentVNode)(2,t.Section,{layer:2,title:"Damages Breakdown",children:(0,e.createComponentVNode)(2,t.Box,{children:[(!I||!N)&&(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"No valid scan detected."}),!!I&&!!N&&(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function A(){return v("fix_all")}return A}(),children:"Repair All Damages"}),(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function A(){return v("fix_none")}return A}(),children:"Repair No Damages"})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:1}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function A(){return v("clone")}return A}(),children:"Clone"})})]}),(0,e.createComponentVNode)(2,t.Stack,{height:"25px",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"40%",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:L[0],maxValue:h.biomass_storage_capacity,ranges:{bad:[2*h.biomass_storage_capacity/3,h.biomass_storage_capacity],average:[h.biomass_storage_capacity/3,2*h.biomass_storage_capacity/3],good:[0,h.biomass_storage_capacity/3]},color:L[0]>h.biomass?"bad":null,children:["Biomass: ",L[0],"/",h.biomass,"/",h.biomass_storage_capacity]})}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:"30%",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:L[1],maxValue:h.max_reagent_capacity,ranges:{bad:[2*h.max_reagent_capacity/3,h.max_reagent_capacity],average:[h.max_reagent_capacity/3,2*h.max_reagent_capacity/3],good:[0,h.max_reagent_capacity/3]},color:L[1]>h.sanguine_reagent?"bad":"good",children:["Sanguine: ",L[1],"/",h.sanguine_reagent,"/",h.max_reagent_capacity]})}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:"30%",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:L[2],maxValue:h.max_reagent_capacity,ranges:{bad:[2*h.max_reagent_capacity/3,h.max_reagent_capacity],average:[h.max_reagent_capacity/3,2*h.max_reagent_capacity/3],good:[0,h.max_reagent_capacity/3]},color:L[2]>h.osseous_reagent?"bad":"good",children:["Osseous: ",L[2],"/",h.osseous_reagent,"/",h.max_reagent_capacity]})})]}),(0,e.createComponentVNode)(2,m),(0,e.createComponentVNode)(2,d)]})]})})]})]})},m=function(s,i){var p=(0,a.useBackend)(i),v=p.act,g=p.data,h=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,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:[h[B][4],":"," "]}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:1}),h[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:h[B][5],ranges:{good:[0,h[B][5]/3],average:[h[B][5]/3,2*h[B][5]/3],bad:[2*h[B][5]/3,h[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]]})}),h[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 ",h[B][4]," is missing!"]})})]}),(0,e.createComponentVNode)(2,t.Stack,{children:[!!h[B][3]&&(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:!b[B][3],onClick:function(){function L(){return v("toggle_limb_repair",{limb:B,type:"replace"})}return L}(),children:"Replace Limb"})}),!h[B][3]&&(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button.Checkbox,{disabled:!(h[B][0]||h[B][1]),checked:!(b[B][0]||b[B][1]),onClick:function(){function L(){return v("toggle_limb_repair",{limb:B,type:"damage"})}return L}(),children:"Repair Damages"}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{disabled:!(h[B][2]&V),checked:!(b[B][2]&V),onClick:function(){function L(){return v("toggle_limb_repair",{limb:B,type:"bone"})}return L}(),children:"Mend Bone"}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{disabled:!(h[B][2]&y),checked:!(b[B][2]&y),onClick:function(){function L(){return v("toggle_limb_repair",{limb:B,type:"ib"})}return L}(),children:"Mend IB"}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{disabled:!(h[B][2]&S),checked:!(b[B][2]&S),onClick:function(){function L(){return v("toggle_limb_repair",{limb:B,type:"critburn"})}return L}(),children:"Mend Critical Burn"})]})]})]},B)})})},d=function(s,i){var p=(0,a.useBackend)(i),v=p.act,g=p.data,h=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,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:[h[B][3],":"," "]}),h[B][5]!=="heart"&&(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Stack.Item,{children:[!!h[B][2]&&(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:!b[B][2]&&!b[B][1],onClick:function(){function L(){return v("toggle_organ_repair",{organ:B,type:"replace"})}return L}(),children:"Replace Organ"}),!h[B][2]&&(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{disabled:!h[B][0],checked:!b[B][0],onClick:function(){function L(){return v("toggle_organ_repair",{organ:B,type:"damage"})}return L}(),children:"Repair Damages"})})]})}),h[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:[!!h[B][2]&&(0,e.createComponentVNode)(2,t.ProgressBar,{color:"bad",value:0,children:["The patient's ",h[B][3]," is missing!"]}),!h[B][2]&&(0,e.createComponentVNode)(2,t.ProgressBar,{value:b[B][0],maxValue:h[B][4],ranges:{good:[0,h[B][4]/3],average:[h[B][4]/3,2*h[B][4]/3],bad:[2*h[B][4]/3,h[B][4]]},children:"Post-Cloning Damage: "+b[B][0]})]})]})},B)})})}},66373:function(w,r,n){"use strict";r.__esModule=!0,r.CloningPod=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.CloningPod=function(){function V(y,S){var k=(0,a.useBackend)(S),C=k.act,u=k.data,c=u.biomass,m=u.biomass_storage_capacity,d=u.sanguine_reagent,l=u.osseous_reagent,s=u.organs,i=u.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*m/3,m],average:[m/3,2*m/3],bad:[0,m/3]},minValue:0,maxValue:m})})]}),(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 p(v,g){return C("remove_reagent",{reagent:"sanguine_reagent",amount:g})}return p}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Remove All",onClick:function(){function p(){return C("purge_reagent",{reagent:"sanguine_reagent"})}return p}()})})]}),(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:l+" 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:l,step:1,unit:"units",onChange:function(){function p(v,g){return C("remove_reagent",{reagent:"osseous_reagent",amount:g})}return p}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Remove All",onClick:function(){function p(){return C("purge_reagent",{reagent:"osseous_reagent"})}return p}()})})]})]}),(0,e.createComponentVNode)(2,t.Section,{title:"Organ Storage",children:[!i&&(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(p){return(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:p.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 C("eject_organ",{organ_ref:p.ref})}return v}()})})]},p)})]}),!!i&&(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}()},38781:function(w,r,n){"use strict";r.__esModule=!0,r.CoinMint=void 0;var e=n(96524),a=n(28234),t=n(17899),o=n(24674),f=n(45493),V=r.CoinMint=function(){function y(S,k){var C=(0,t.useBackend)(k),u=C.act,c=C.data,m=c.materials,d=c.moneyBag,l=c.moneyBagContent,s=c.moneyBagMaxContent,i=(d?210:138)+Math.ceil(m.length/4)*64;return(0,e.createComponentVNode)(2,f.Window,{width:210,height:i,children:(0,e.createComponentVNode)(2,f.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,o.NoticeBox,{m:0,info:!0,children:["Total coins produced: ",c.totalCoins]})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,title:"Coin Type",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"power-off",color:c.active&&"bad",tooltip:!d&&"Need a money bag",disabled:!d,onClick:function(){function p(){return u("activate")}return p}()}),children:(0,e.createComponentVNode)(2,o.Stack,{vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.ProgressBar,{minValue:0,maxValue:c.maxMaterials,value:c.totalMaterials})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{icon:"eject",tooltip:"Eject selected material",onClick:function(){function p(){return u("ejectMat")}return p}()})})]})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:m.map(function(p){return(0,e.createComponentVNode)(2,o.Button,{bold:!0,inline:!0,m:.2,textAlign:"center",color:"translucent",selected:p.id===c.chosenMaterial,tooltip:p.name,content:(0,e.createComponentVNode)(2,o.Stack,{vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{className:(0,a.classes)(["materials32x32",p.id])}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:p.amount})]}),onClick:function(){function v(){return u("selectMaterial",{material:p.id})}return v}()},p.id)})})]})})}),!!d&&(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Section,{title:"Money Bag",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"eject",content:"Eject",disabled:c.active,onClick:function(){function p(){return u("ejectBag")}return p}()}),children:(0,e.createComponentVNode)(2,o.ProgressBar,{width:"100%",minValue:0,maxValue:s,value:l,children:[l," / ",s]})})})]})})})}return y}()},11866:function(w,r,n){"use strict";r.__esModule=!0,r.ColourMatrixTester=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.ColourMatrixTester=function(){function V(y,S){var k=(0,a.useBackend)(S),C=k.act,u=k.data,c=u.colour_data,m=[[{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:m.map(function(d){return(0,e.createComponentVNode)(2,t.Stack,{textAlign:"center",textColor:"label",children:d.map(function(l){return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,mt:1,children:[l.name,":\xA0",(0,e.createComponentVNode)(2,t.NumberInput,{width:4,value:c[l.idx],step:.05,minValue:-5,maxValue:5,stepPixelSize:5,onChange:function(){function s(i,p){return C("setvalue",{idx:l.idx+1,value:p})}return s}()})]},l.name)})},d)})})})})})}return V}()},22420:function(w,r,n){"use strict";r.__esModule=!0,r.CommunicationsComputer=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=function(s){switch(s){case 1:return(0,e.createComponentVNode)(2,S);case 2:return(0,e.createComponentVNode)(2,u);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 l(s,i){var p=(0,a.useBackend)(i),v=p.act,g=p.data,h=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),f(h)]})})})}return l}(),y=function(s,i){var p=(0,a.useBackend)(i),v=p.act,g=p.data,h=g.authenticated,N=g.noauthbutton,b=g.esc_section,B=g.esc_callable,I=g.esc_recallable,L=g.esc_status,T=g.authhead,A=g.is_ai,x=g.lastCallLoc,E=!1,M;return h?h===1?M="Command":h===2?M="Captain":h===3?M="CentComm Officer":h===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:h?"sign-out-alt":"id-card",selected:h,disabled:N,content:h?"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:[!!L&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:L}),!!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,i){var p=(0,a.useBackend)(i),v=p.act,g=p.data,h=g.is_admin;return h?(0,e.createComponentVNode)(2,k):(0,e.createComponentVNode)(2,C)},k=function(s,i){var p=(0,a.useBackend)(i),v=p.act,g=p.data,h=g.is_admin,N=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,m,{levels:b,required_access:h,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:!h,onClick:function(){function L(){return v("send_to_cc_announcement_page")}return L}()}),B===4&&(0,e.createComponentVNode)(2,t.Button,{icon:"plus",content:"Make Other Announcement",disabled:!h,onClick:function(){function L(){return v("make_other_announcement")}return L}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Response Team",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"ambulance",content:"Dispatch ERT",disabled:!h,onClick:function(){function L(){return v("dispatch_ert")}return L}()}),(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:!h,onClick:function(){function L(){return v("toggle_ert_allowed")}return L}(),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:!h,onClick:function(){function L(){return v("send_nuke_codes")}return L}()})}),(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:!h,onClick:function(){function L(){return v("move_gamma_armory")}return L}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Other",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"coins",content:"View Economy",disabled:!h,onClick:function(){function L(){return v("view_econ")}return L}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fax",content:"Fax Manager",disabled:!h,onClick:function(){function L(){return v("view_fax")}return L}()})]})]})}),(0,e.createComponentVNode)(2,t.Collapsible,{title:"View Command accessible controls",children:(0,e.createComponentVNode)(2,C)})]})},C=function(s,i){var p=(0,a.useBackend)(i),v=p.act,g=p.data,h=g.msg_cooldown,N=g.emagged,b=g.cc_cooldown,B=g.security_level_color,I=g.str_security_level,L=g.levels,T=g.authcapt,A=g.authhead,x=g.messages,E="Make Priority Announcement";h>0&&(E+=" ("+h+"s)");var M=N?"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,m,{levels:L,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||h>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: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}()})})]})})})],4)},u=function(s,i){var p=(0,a.useBackend)(i),v=p.act,g=p.data,h=g.stat_display,N=g.authhead,b=g.current_message_title,B=h.presets.map(function(L){return(0,e.createComponentVNode)(2,t.Button,{content:L.label,selected:L.name===h.type,disabled:!N,onClick:function(){function T(){return v("setstat",{statdisp:L.name})}return T}()},L.name)}),I=h.alerts.map(function(L){return(0,e.createComponentVNode)(2,t.Button,{content:L.label,selected:L.alert===h.icon,disabled:!N,onClick:function(){function T(){return v("setstat",{statdisp:3,alert:L.alert})}return T}()},L.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 L(){return v("main")}return L}()}),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:h.line_1,disabled:!N,onClick:function(){function L(){return v("setmsg1")}return L}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Message Line 2",children:(0,e.createComponentVNode)(2,t.Button,{icon:"pencil-alt",content:h.line_2,disabled:!N,onClick:function(){function L(){return v("setmsg2")}return L}()})})]})})})},c=function(s,i){var p=(0,a.useBackend)(i),v=p.act,g=p.data,h=g.authhead,N=g.current_message_title,b=g.current_message,B=g.messages,I=g.security_level,L;if(N)L=(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:!h,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:!h||N===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:!h,onClick:function(){function x(){return v("delmessage",{msgid:A.id})}return x}()})]},A.id)});L=(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:L})},m=function(s,i){var p=(0,a.useBackend)(i),v=p.act,g=p.data,h=s.levels,N=s.required_access,b=s.use_confirm,B=g.security_level;return b?h.map(function(I){return(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:I.icon,content:I.name,disabled:!N||I.id===B,tooltip:I.tooltip,onClick:function(){function L(){return v("newalertlevel",{level:I.id})}return L}()},I.name)}):h.map(function(I){return(0,e.createComponentVNode)(2,t.Button,{icon:I.icon,content:I.name,disabled:!N||I.id===B,tooltip:I.tooltip,onClick:function(){function L(){return v("newalertlevel",{level:I.id})}return L}()},I.name)})},d=function(s,i){var p=(0,a.useBackend)(i),v=p.act,g=p.data,h=g.is_admin,N=g.possible_cc_sounds;if(!h)return v("main");var b=(0,a.useLocalState)(i,"subtitle",""),B=b[0],I=b[1],L=(0,a.useLocalState)(i,"text",""),T=L[0],A=L[1],x=(0,a.useLocalState)(i,"classified",0),E=x[0],M=x[1],j=(0,a.useLocalState)(i,"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:N,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(w,r,n){"use strict";r.__esModule=!0,r.CompostBin=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.CompostBin=function(){function V(y,S){var k=(0,a.useBackend)(S),C=k.act,u=k.data,c=u.biomass,m=u.compost,d=u.biomass_capacity,l=u.compost_capacity,s=u.potassium,i=u.potassium_capacity,p=u.potash,v=u.potash_capacity,g=(0,a.useSharedState)(S,"vendAmount",1),h=g[0],N=g[1];return(0,e.createComponentVNode)(2,o.Window,{width:360,height:250,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:.5,mt:1,width:20,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.LabeledList.Item,{label:"Compost",children:(0,e.createComponentVNode)(2,t.ProgressBar,{ml:.5,mt:1,width:20,value:m,minValue:0,maxValue:l,ranges:{good:[l*.5,1/0],average:[l*.25,l*.5],bad:[-1/0,l*.25]},children:[m," / ",l," Units"]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Potassium",children:(0,e.createComponentVNode)(2,t.ProgressBar,{ml:.5,mt:1,width:20,value:s,minValue:0,maxValue:i,ranges:{good:[i*.5,1/0],average:[i*.25,i*.5],bad:[-1/0,i*.25]},children:[s," / ",i," Units"]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Potash",children:(0,e.createComponentVNode)(2,t.ProgressBar,{ml:.5,mt:1,width:20,value:p,minValue:0,maxValue:v,ranges:{good:[v*.5,1/0],average:[v*.25,v*.5],bad:[-1/0,v*.25]},children:[p," / ",v," 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:h,width:"32px",minValue:1,maxValue:10,stepPixelSize:7,onChange:function(){function b(B,I){return N(I)}return b}()})],4),children:(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,align:"center",content:"Make Soil",disabled:m<25*h,icon:"arrow-circle-down",onClick:function(){function b(){return C("create",{amount:h})}return b}()})})})]})})})}return V}()},64707:function(w,r,n){"use strict";r.__esModule=!0,r.Contractor=void 0;var e=n(96524),a=n(36121),t=n(17899),o=n(24674),f=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 h(N,b){return N.__proto__=b,N}return h}(),S(v,g)}var k={1:["ACTIVE","good"],2:["COMPLETED","good"],3:["FAILED","bad"]},C=["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"],u=r.Contractor=function(){function v(g,h){var N=(0,t.useBackend)(h),b=N.act,B=N.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,i,{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,m)}),(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):I=(0,e.createComponentVNode)(2,o.Flex.Item,{grow:"1",backgroundColor:"rgba(0, 0, 0, 0.8)",children:(0,e.createComponentVNode)(2,i,{height:"100%",allMessages:C,finishedTimeout:3e3,onFinished:function(){function x(){return b("complete_load_animation")}return x}()})});var L=(0,t.useLocalState)(h,"viewingPhoto",""),T=L[0],A=L[1];return(0,e.createComponentVNode)(2,V.Window,{theme:"syndicate",width:500,height:600,children:[T&&(0,e.createComponentVNode)(2,p),(0,e.createComponentVNode)(2,V.Window.Content,{className:"Contractor",children:(0,e.createComponentVNode)(2,o.Flex,{direction:"column",height:"100%",children:I})})]})}return v}(),c=function(g,h){var N=(0,t.useBackend)(h),b=N.act,B=N.data,I=B.tc_available,L=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:[L," TC"]})]})}),(0,e.createComponentVNode)(2,o.Box,{flexBasis:"50%",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Contracts Completed",verticalAlign:"middle",children:(0,e.createComponentVNode)(2,o.Box,{height:"20px",lineHeight:"20px",inline:!0,children:T})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Contractor Status",verticalAlign:"middle",children:"ACTIVE"})]})})]})})))},m=function(g,h){var N=(0,t.useBackend)(h),b=N.act,B=N.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 L(){return b("page",{page:1})}return L}(),children:[(0,e.createComponentVNode)(2,o.Icon,{name:"suitcase"}),"Contracts"]}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:I===2,onClick:function(){function L(){return b("page",{page:2})}return L}(),children:[(0,e.createComponentVNode)(2,o.Icon,{name:"shopping-cart"}),"Hub"]})]})))},d=function(g,h){var N=(0,t.useBackend)(h),b=N.act,B=N.data,I=B.contracts,L=B.contract_active,T=B.can_extract,A=!!L&&I.filter(function(P){return P.status===1})[0],x=A&&A.time_left>0,E=(0,t.useLocalState)(h,"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,f.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",l(P)]}),(R=P.difficulties)==null?void 0:R.map(function(D,F){return(0,e.createComponentVNode)(2,o.Button.Confirm,{disabled:!!L,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)})})))},l=function(g){if(!(!g.objective||g.status>1)){var h=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,I=h===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]-N[1],B[0]-N[0])),lineHeight:I?null:"0.85",size:"1.5"})})}},s=function(g,h){var N=(0,t.useBackend)(h),b=N.act,B=N.data,I=B.rep,L=B.buyables;return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Section,Object.assign({title:"Available Purchases",overflow:"auto"},g,{children:L.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)})})))},i=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 h=g.prototype;return h.tick=function(){function N(){var b=this.props,B=this.state;if(B.currentIndex<=b.allMessages.length){this.setState(function(L){return{currentIndex:L.currentIndex+1}});var I=B.currentDisplay;I.push(b.allMessages[B.currentIndex])}else clearTimeout(this.timer),setTimeout(b.onFinished,b.finishedTimeout)}return N}(),h.componentDidMount=function(){function N(){var b=this,B=this.props.linesPerSecond,I=B===void 0?2.5:B;this.timer=setInterval(function(){return b.tick()},1e3/I)}return N}(),h.componentWillUnmount=function(){function N(){clearTimeout(this.timer)}return N}(),h.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),p=function(g,h){var N=(0,t.useLocalState)(h,"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 I(){return B("")}return I}()})]})}},52141:function(w,r,n){"use strict";r.__esModule=!0,r.ConveyorSwitch=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.ConveyorSwitch=function(){function V(y,S){var k=(0,a.useBackend)(S),C=k.act,u=k.data,c=u.slowFactor,m=u.oneWay,d=u.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:!m,onClick:function(){function l(){return C("toggleOneWay")}return l}()})}),(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 l(){return C("slowFactor",{value:c-5})}return l}()})," "]}),(0,e.createComponentVNode)(2,t.Flex.Item,{mx:"1px",children:[" ",(0,e.createComponentVNode)(2,t.Button,{icon:"angle-left",onClick:function(){function l(){return C("slowFactor",{value:c-1})}return l}()})," "]}),(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 l(s){return s+"x"}return l}(),onChange:function(){function l(s,i){return C("slowFactor",{value:i})}return l}()})}),(0,e.createComponentVNode)(2,t.Flex.Item,{mx:"1px",children:[" ",(0,e.createComponentVNode)(2,t.Button,{icon:"angle-right",onClick:function(){function l(){return C("slowFactor",{value:c+1})}return l}()})," "]}),(0,e.createComponentVNode)(2,t.Flex.Item,{mx:"1px",children:[" ",(0,e.createComponentVNode)(2,t.Button,{icon:"angle-double-right",onClick:function(){function l(){return C("slowFactor",{value:c+5})}return l}()})," "]})]})})]})})})})}return V}()},94187:function(w,r,n){"use strict";r.__esModule=!0,r.CrewMonitor=void 0;var e=n(96524),a=n(50640),t=n(78234),o=n(17899),f=n(24674),V=n(5126),y=n(38424),S=n(45493),k=function(l,s){return l.dead?"Deceased":parseInt(l.health,10)<=s?"Critical":parseInt(l.stat,10)===1?"Unconscious":"Living"},C=function(l,s){return l.dead?"red":parseInt(l.health,10)<=s?"orange":parseInt(l.stat,10)===1?"blue":"green"},u=r.CrewMonitor=function(){function d(l,s){var i=(0,o.useBackend)(s),p=i.act,v=i.data,g=(0,o.useLocalState)(s,"tabIndex",0),h=g[0],N=g[1],b=function(){function B(I){switch(I){case 0:return(0,e.createComponentVNode)(2,c);case 1:return(0,e.createComponentVNode)(2,m);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,f.Stack,{fill:!0,vertical:!0,fillPositionedParent:!0,children:[(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Tabs,{children:[(0,e.createComponentVNode)(2,f.Tabs.Tab,{icon:"table",selected:h===0,onClick:function(){function B(){return N(0)}return B}(),children:"Data View"},"DataView"),(0,e.createComponentVNode)(2,f.Tabs.Tab,{icon:"map-marked-alt",selected:h===1,onClick:function(){function B(){return N(1)}return B}(),children:"Map View"},"MapView")]})}),b(h)]})})})}return d}(),c=function(l,s){var i=(0,o.useBackend)(s),p=i.act,v=i.data,g=(0,a.sortBy)(function(A){return A.name})(v.crewmembers||[]),h=v.possible_levels,N=v.viewing_current_z_level,b=v.is_advanced,B=(0,o.useLocalState)(s,"search",""),I=B[0],L=B[1],T=(0,t.createSearch)(I,function(A){return A.name+"|"+A.assignment+"|"+A.area});return(0,e.createComponentVNode)(2,f.Section,{fill:!0,scrollable:!0,backgroundColor:"transparent",children:[(0,e.createComponentVNode)(2,f.Stack,{children:[(0,e.createComponentVNode)(2,f.Stack.Item,{width:"100%",ml:"5px",children:(0,e.createComponentVNode)(2,f.Input,{placeholder:"Search by name, assignment or location..",width:"100%",onInput:function(){function A(x,E){return L(E)}return A}()})}),(0,e.createComponentVNode)(2,f.Stack.Item,{children:b?(0,e.createComponentVNode)(2,f.Dropdown,{mr:"5px",width:"50px",options:h,selected:N,onSelected:function(){function A(x){return p("switch_level",{new_level:x})}return A}()}):null})]}),(0,e.createComponentVNode)(2,f.Table,{m:"0.5rem",children:[(0,e.createComponentVNode)(2,f.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,f.Table.Cell,{children:"Name"}),(0,e.createComponentVNode)(2,f.Table.Cell,{children:"Status"}),(0,e.createComponentVNode)(2,f.Table.Cell,{children:"Location"})]}),g.filter(T).map(function(A){return(0,e.createComponentVNode)(2,f.Table.Row,{bold:!!A.is_command,children:[(0,e.createComponentVNode)(2,V.TableCell,{children:[A.name," (",A.assignment,")"]}),(0,e.createComponentVNode)(2,V.TableCell,{children:[(0,e.createComponentVNode)(2,f.Box,{inline:!0,color:C(A,v.critThreshold),children:k(A,v.critThreshold)}),A.sensor_type>=2||v.ignoreSensors?(0,e.createComponentVNode)(2,f.Box,{inline:!0,ml:1,children:["(",(0,e.createComponentVNode)(2,f.Box,{inline:!0,color:y.COLORS.damageType.oxy,children:A.oxy}),"|",(0,e.createComponentVNode)(2,f.Box,{inline:!0,color:y.COLORS.damageType.toxin,children:A.tox}),"|",(0,e.createComponentVNode)(2,f.Box,{inline:!0,color:y.COLORS.damageType.burn,children:A.fire}),"|",(0,e.createComponentVNode)(2,f.Box,{inline:!0,color:y.COLORS.damageType.brute,children:A.brute}),")"]}):null]}),(0,e.createComponentVNode)(2,V.TableCell,{children:A.sensor_type===3||v.ignoreSensors?v.isAI||v.isObserver?(0,e.createComponentVNode)(2,f.Button,{fluid:!0,icon:"location-arrow",content:A.area+" ("+A.x+", "+A.y+")",onClick:function(){function x(){return p("track",{track:A.ref})}return x}()}):A.area+" ("+A.x+", "+A.y+")":(0,e.createComponentVNode)(2,f.Box,{inline:!0,color:"grey",children:"Not Available"})})]},A.name)})]})]})},m=function(l,s){var i=(0,o.useBackend)(s),p=i.act,v=i.data,g=(0,o.useLocalState)(s,"zoom",1),h=g[0],N=g[1];return(0,e.createComponentVNode)(2,f.Box,{height:"526px",mb:"0.5rem",overflow:"hidden",children:(0,e.createComponentVNode)(2,f.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,f.NanoMap.Marker,{x:b.x,y:b.y,zoom:h,icon:"circle",tooltip:b.name+" ("+b.assignment+")",color:C(b,v.critThreshold),onClick:function(){function B(){return v.isObserver?p("track",{track:b.ref}):null}return B}()},b.ref)})})})}},60561:function(w,r,n){"use strict";r.__esModule=!0,r.Cryo=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=[{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 C(u,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 C}(),S=function(u,c){var m=(0,a.useBackend)(c),d=m.act,l=m.data,s=l.isOperating,i=l.hasOccupant,p=l.occupant,v=p===void 0?[]:p,g=l.cellTemperature,h=l.cellTemperatureStatus,N=l.isBeakerLoaded,b=l.cooldownProgress,B=l.auto_eject_healthy,I=l.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 L(){return d("ejectOccupant")}return L}(),disabled:!i,children:"Eject"}),children:i?(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),f.map(function(L){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:L.label,children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:v[L.type]/100,ranges:{bad:[.01,1/0]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:Math.round(v[L.type])})})},L.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 L(){return d("ejectBeaker")}return L}(),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 L(){return d(s?"switchOff":"switchOn")}return L}(),selected:s,children:s?"On":"Off"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Temperature",color:h,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 L(){return d(B?"auto_eject_healthy_off":"auto_eject_healthy_on")}return L}(),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 L(){return d(I?"auto_eject_dead_off":"auto_eject_dead_on")}return L}(),children:I?"On":"Off"})})]})})})],4)},k=function(u,c){var m=(0,a.useBackend)(c),d=m.act,l=m.data,s=l.isBeakerLoaded,i=l.beakerLabel,p=l.beakerVolume;return s?(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{inline:!0,color:!i&&"average",children:[i||"No label",":"]}),(0,e.createComponentVNode)(2,t.Box,{inline:!0,color:!p&&"bad",ml:1,children:p?(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:p,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(w,r,n){"use strict";r.__esModule=!0,r.CryopodConsole=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=n(78234),V=r.CryopodConsole=function(){function k(C,u){var c=(0,a.useBackend)(u),m=c.data,d=m.account_name,l=m.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),!!l&&(0,e.createComponentVNode)(2,S)]})})}return k}(),y=function(C,u){var c=(0,a.useBackend)(u),m=c.data,d=m.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(l,s){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:l.name,children:l.rank},s)})})}):(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No stored crew!"})})},S=function(C,u){var c=(0,a.useBackend)(u),m=c.act,d=c.data,l=d.frozen_items,s=function(p){var v=p.toString();return v.startsWith("the ")&&(v=v.slice(4,v.length)),(0,f.toTitleCase)(v)};return(0,e.createComponentVNode)(2,t.Collapsible,{title:"Stored Items",children:l.length?(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:l.map(function(i){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:s(i.name),buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-down",content:"Drop",mr:1,onClick:function(){function p(){return m("one_item",{item:i.uid})}return p}()})},i)})})}),(0,e.createComponentVNode)(2,t.Button,{content:"Drop All Items",color:"red",onClick:function(){function i(){return m("all_items")}return i}()})],4):(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No stored items!"})})}},81434:function(w,r,n){"use strict";r.__esModule=!0,r.DNAModifier=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=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 h(N,b){var B=(0,a.useBackend)(b),I=B.act,L=B.data,T=L.irradiating,A=L.dnaBlockSize,x=L.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,f.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,C)}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,u)})]})})]})}return h}(),C=function(N,b){var B=(0,a.useBackend)(b),I=B.act,L=B.data,T=L.locked,A=L.hasOccupant,x=L.occupant;return(0,e.createComponentVNode)(2,t.Section,{title:"Occupant",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{color:"label",inline:!0,mr:"0.5rem",children:"Door Lock:"}),(0,e.createComponentVNode)(2,t.Button,{disabled:!A,selected: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:V[x.stat][0],children:V[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:L.occupant.uniqueEnzymes?L.occupant.uniqueEnzymes:(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"exclamation-circle"}),"\xA0 Unknown"]})})]})],0):(0,e.createComponentVNode)(2,t.Box,{color:"label",children:"Cell unoccupied."})})},u=function(N,b){var B=(0,a.useBackend)(b),I=B.act,L=B.data,T=L.selectedMenuKey,A=L.hasOccupant,x=L.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,d)],4):T==="se"?E=(0,e.createFragment)([(0,e.createComponentVNode)(2,m),(0,e.createComponentVNode)(2,d)],4):T==="buffer"?E=(0,e.createComponentVNode)(2,l):T==="rejuvenators"&&(E=(0,e.createComponentVNode)(2,p)),(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(N,b){var B=(0,a.useBackend)(b),I=B.act,L=B.data,T=L.selectedUIBlock,A=L.selectedUISubBlock,x=L.selectedUITarget,E=L.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}()})]})},m=function(N,b){var B=(0,a.useBackend)(b),I=B.act,L=B.data,T=L.selectedSEBlock,A=L.selectedSESubBlock,x=L.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}()})]})},d=function(N,b){var B=(0,a.useBackend)(b),I=B.act,L=B.data,T=L.radiationIntensity,A=L.radiationDuration;return(0,e.createComponentVNode)(2,t.Section,{title:"Radiation Emitter",children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Intensity",children:(0,e.createComponentVNode)(2,t.Knob,{minValue:1,maxValue:10,stepPixelSize:20,value: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}()})]})},l=function(N,b){var B=(0,a.useBackend)(b),I=B.act,L=B.data,T=L.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,i)})]})},s=function(N,b){var B=(0,a.useBackend)(b),I=B.act,L=B.data,T=N.id,A=N.name,x=N.buffer,E=L.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||!L.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:!L.hasDisk||!L.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."})]})})},i=function(N,b){var B=(0,a.useBackend)(b),I=B.act,L=B.data,T=L.hasDisk,A=L.disk;return(0,e.createComponentVNode)(2,t.Section,{title:"Data Disk",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button.Confirm,{disabled:!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."]})})},p=function(N,b){var B=(0,a.useBackend)(b),I=B.act,L=B.data,T=L.isBeakerLoaded,A=L.beakerVolume,x=L.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(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),I=B.act,L=B.data,T=N.dnaString,A=N.selectedBlock,x=N.selectedSubblock,E=N.blockSize,M=N.action,j=T.split(""),P=0,R=[],D=function(){for(var _=F/E+1,K=[],H=function(){var J=X+1;K.push((0,e.createComponentVNode)(2,t.Button,{selected:A===_&&x===J,content:j[F+X],mb:"0",onClick:function(){function le(){return I(M,{block:_,subblock:J})}return le}()}))},X=0;Xi.spawnpoints?"red":"green",children:[i.total," total, versus ",i.spawnpoints," spawnpoints"]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Dispatch",children:(0,e.createComponentVNode)(2,t.Button,{width:10.5,textAlign:"center",icon:"ambulance",content:"Send ERT",onClick:function(){function N(){return s("dispatch_ert",{silent:g})}return N}()})})]})})})},C=function(m,d){var l=(0,a.useBackend)(d),s=l.act,i=l.data,p=i.ert_request_messages;return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,children:p&&p.length?p.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,f.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."]})})})})},u=function(m,d){var l=(0,a.useBackend)(d),s=l.act,i=l.data,p=(0,a.useLocalState)(d,"text",""),v=p[0],g=p[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 h(N,b){return g(b)}return h}()}),(0,e.createComponentVNode)(2,t.Button.Confirm,{content:"Deny ERT",fluid:!0,icon:"times",center:!0,mt:2,textAlign:"center",onClick:function(){function h(){return s("deny_ert",{reason:v})}return h}()})]})})}},24503:function(w,r,n){"use strict";r.__esModule=!0,r.EconomyManager=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=n(99665),V=r.EconomyManager=function(){function S(k,C){return(0,e.createComponentVNode)(2,o.Window,{width:600,height:325,children:[(0,e.createComponentVNode)(2,f.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,C){var u=(0,a.useBackend)(C),c=u.act,m=u.data,d=m.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 l(){return c("payroll_modification",{mod_type:"global"})}return l}()})}),(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 l(){return c("payroll_modification",{mod_type:"department"})}return l}()})}),(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 l(){return c("payroll_modification",{mod_type:"department_members"})}return l}()})}),(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 l(){return c("payroll_modification",{mod_type:"crew_member"})}return l}()})})]}),(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 l(){return c("delay_payroll")}return l}()}),(0,e.createComponentVNode)(2,t.Button,{width:"auto",content:"Set Payroll Time",onClick:function(){function l(){return c("set_payroll")}return l}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"angle-double-right",width:"auto",color:"good",content:"Accelerate Payroll",onClick:function(){function l(){return c("accelerate_payroll")}return l}()})]}),(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(w,r,n){"use strict";r.__esModule=!0,r.Electropack=void 0;var e=n(96524),a=n(36121),t=n(17899),o=n(24674),f=n(45493),V=r.Electropack=function(){function y(S,k){var C=(0,t.useBackend)(k),u=C.act,c=C.data,m=c.power,d=c.code,l=c.frequency,s=c.minFrequency,i=c.maxFrequency;return(0,e.createComponentVNode)(2,f.Window,{width:360,height:135,children:(0,e.createComponentVNode)(2,f.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:m?"power-off":"times",content:m?"On":"Off",selected:m,onClick:function(){function p(){return u("power")}return p}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Frequency",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"sync",content:"Reset",onClick:function(){function p(){return u("reset",{reset:"freq"})}return p}()}),children:(0,e.createComponentVNode)(2,o.NumberInput,{animate:!0,unit:"kHz",step:.2,stepPixelSize:6,minValue:s/10,maxValue:i/10,value:l/10,format:function(){function p(v){return(0,a.toFixed)(v,1)}return p}(),width:"80px",onChange:function(){function p(v,g){return u("freq",{freq:g})}return p}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Code",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"sync",content:"Reset",onClick:function(){function p(){return u("reset",{reset:"code"})}return p}()}),children:(0,e.createComponentVNode)(2,o.NumberInput,{animate:!0,step:1,stepPixelSize:6,minValue:1,maxValue:100,value:d,width:"80px",onChange:function(){function p(v,g){return u("code",{code:g})}return p}()})})]})})})})}return y}()},57013:function(w,r,n){"use strict";r.__esModule=!0,r.Emojipedia=void 0;var e=n(96524),a=n(28234),t=n(17899),o=n(24674),f=n(45493),V=r.Emojipedia=function(){function S(k,C){var u=(0,t.useBackend)(C),c=u.data,m=c.emoji_list,d=(0,t.useLocalState)(C,"searchText",""),l=d[0],s=d[1],i=m.filter(function(p){return p.name.toLowerCase().includes(l.toLowerCase())});return(0,e.createComponentVNode)(2,f.Window,{width:325,height:400,children:(0,e.createComponentVNode)(2,f.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:l,onInput:function(){function p(v,g){return s(g)}return p}()}),(0,e.createComponentVNode)(2,o.Button,{tooltip:"Click on an emoji to copy its tag!",tooltipPosition:"bottom",icon:"circle-question"})],4),children:i.map(function(p){return(0,e.createComponentVNode)(2,o.Button,{m:1,color:"transparent",className:(0,a.classes)(["emoji16x16","emoji-"+p.name]),style:{transform:"scale(1.5)"},tooltip:p.name,onClick:function(){function v(){y(p.name)}return v}()},p.name)})})})})}return S}(),y=function(k){var C=document.createElement("input"),u=":"+k+":";C.value=u,document.body.appendChild(C),C.select(),document.execCommand("copy"),document.body.removeChild(C)}},75450:function(w,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),f=n(78234),V=r.EmotePanel=function(){function S(k,C){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,C){var u=(0,a.useBackend)(C),c=u.act,m=u.data,d=m.emotes,l=(0,a.useLocalState)(C,"searchText",""),s=l[0],i=l[1],p=(0,a.useLocalState)(C,"filterVisible",""),v=p[0],g=p[1],h=(0,a.useLocalState)(C,"filterAudible",""),N=h[0],b=h[1],B=(0,a.useLocalState)(C,"filterSound",""),I=B[0],L=B[1],T=(0,a.useLocalState)(C,"filterHands",""),A=T[0],x=T[1],E=(0,a.useLocalState)(C,"filterTargettable",""),M=E[0],j=E[1],P=(0,a.useLocalState)(C,"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(_,K){return i(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:I,onClick:function(){function W(){return L(!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: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)&&(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(w,r,n){"use strict";r.__esModule=!0,r.EvolutionMenu=void 0;var e=n(96524),a=n(78234),t=n(17899),o=n(24674),f=n(45493),V=n(74041),y=n(50640),S=r.EvolutionMenu=function(){function u(c,m){return(0,e.createComponentVNode)(2,f.Window,{width:480,height:580,theme:"changeling",children:(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,k),(0,e.createComponentVNode)(2,C)]})})})}return u}(),k=function(c,m){var d=(0,t.useBackend)(m),l=d.act,s=d.data,i=s.evo_points,p=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:i}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:[(0,e.createComponentVNode)(2,o.Button,{ml:2.5,disabled:!p,content:"Readapt",icon:"sync",onClick:function(){function v(){return l("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"})]})]})})})},C=function(c,m){var d=(0,t.useBackend)(m),l=d.act,s=d.data,i=s.evo_points,p=s.ability_tabs,v=s.purchased_abilities,g=s.view_mode,h=(0,t.useLocalState)(m,"selectedTab",p[0]),N=h[0],b=h[1],B=(0,t.useLocalState)(m,"searchText",""),I=B[0],L=B[1],T=(0,t.useLocalState)(m,"ability_tabs",p[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,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(L(R),R==="")return x(N.abilities);x(E(p.map(function(D){return D.abilities}).flat(),R))},j=function(R){b(R),x(R.abilities),L("")};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 l("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 l("set_view_mode",{mode:1})}return P}()})],4),children:[(0,e.createComponentVNode)(2,o.Tabs,{children:p.map(function(P){return(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:I===""&&N===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>i||v.includes(P.power_path),content:"Evolve",onClick:function(){function D(){return l("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(w,r,n){"use strict";r.__esModule=!0,r.ExosuitFabricator=void 0;var e=n(96524),a=n(28234),t=n(78234),o=n(17899),f=n(24674),V=n(99509),y=n(45493),S=["id","amount","lineDisplay","onClick"];function k(v,g){if(v==null)return{};var h={},N=Object.keys(v),b,B;for(B=0;B=0)&&(h[b]=v[b]);return h}var C=2e3,u={bananium:"clown",tranquillite:"mime"},c=r.ExosuitFabricator=function(){function v(g,h){var N=(0,o.useBackend)(h),b=N.act,B=N.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,f.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,f.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,d)}),I&&(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,l)})]})}),(0,e.createComponentVNode)(2,f.Stack.Item,{width:"30%",children:(0,e.createComponentVNode)(2,f.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,m)}),(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,s)})]})})]})})})}return v}(),m=function(g,h){var N=(0,o.useBackend)(h),b=N.act,B=N.data,I=B.materials,L=B.capacity,T=Object.values(I).reduce(function(A,x){return A+x},0);return(0,e.createComponentVNode)(2,f.Section,{fill:!0,scrollable:!0,title:"Materials",className:"Exofab__materials",buttons:(0,e.createComponentVNode)(2,f.Box,{color:"label",mt:"0.25rem",children:[(T/L*100).toPrecision(3),"% full"]}),children:["metal","glass","silver","gold","uranium","titanium","plasma","diamond","bluespace","bananium","tranquillite","plastic"].map(function(A){return(0,e.createComponentVNode)(2,i,{mt:-2,id:A,bold:A==="metal"||A==="glass",onClick:function(){function x(){return b("withdraw",{id:A})}return x}()},A)})})},d=function(g,h){var N=(0,o.useBackend)(h),b=N.act,B=N.data,I=B.curCategory,L=B.categories,T=B.designs,A=B.syncing,x=(0,o.useLocalState)(h,"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,f.Section,{fill:!0,scrollable:!0,className:"Exofab__designs",title:(0,e.createComponentVNode)(2,f.Dropdown,{className:"Exofab__dropdown",selected:I,options:L,onSelected:function(){function R(D){return b("category",{cat:D})}return R}()}),buttons:(0,e.createComponentVNode)(2,f.Box,{mt:"2px",children:[(0,e.createComponentVNode)(2,f.Button,{icon:"plus",content:"Queue all",onClick:function(){function R(){return b("queueall")}return R}()}),(0,e.createComponentVNode)(2,f.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,f.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,p,{design:R},R.id)}),P.length===0&&(0,e.createComponentVNode)(2,f.Box,{color:"label",children:"No designs found."})]})},l=function(g,h){var N=(0,o.useBackend)(h),b=N.act,B=N.data,I=B.building,L=B.buildStart,T=B.buildEnd,A=B.worldTime;return(0,e.createComponentVNode)(2,f.Section,{className:"Exofab__building",stretchContents:!0,children:(0,e.createComponentVNode)(2,f.ProgressBar.Countdown,{start:L,current:A,end:T,children:(0,e.createComponentVNode)(2,f.Stack,{children:[(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Icon,{name:"cog",spin:!0})}),(0,e.createComponentVNode)(2,f.Stack.Item,{children:["Building ",I,"\xA0(",(0,e.createComponentVNode)(2,V.Countdown,{current:A,timeLeft:T-A,format:function(){function x(E,M){return M.substr(3)}return x}()}),")"]})]})})})},s=function(g,h){var N=(0,o.useBackend)(h),b=N.act,B=N.data,I=B.queue,L=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,f.Section,{fill:!0,scrollable:!0,className:"Exofab__queue",title:"Queue",buttons:(0,e.createComponentVNode)(2,f.Box,{children:[(0,e.createComponentVNode)(2,f.Button,{selected:L,icon:L?"toggle-on":"toggle-off",content:"Process",onClick:function(){function x(){return b("process")}return x}()}),(0,e.createComponentVNode)(2,f.Button,{disabled:I.length===0,icon:"eraser",content:"Clear",onClick:function(){function x(){return b("unqueueall")}return x}()})]}),children:(0,e.createComponentVNode)(2,f.Stack,{fill:!0,vertical:!0,children:I.length===0?(0,e.createComponentVNode)(2,f.Box,{color:"label",children:"The queue is empty."}):(0,e.createFragment)([(0,e.createComponentVNode)(2,f.Stack.Item,{className:"Exofab__queue--queue",grow:!0,overflow:"auto",children:I.map(function(x,E){return(0,e.createComponentVNode)(2,f.Box,{color:x.notEnough&&"bad",children:[E+1,". ",x.name,E>0&&(0,e.createComponentVNode)(2,f.Button,{icon:"arrow-up",onClick:function(){function M(){return b("queueswap",{from:E+1,to:E})}return M}()}),E0&&(0,e.createComponentVNode)(2,f.Stack.Item,{className:"Exofab__queue--time",children:[(0,e.createComponentVNode)(2,f.Divider),"Processing time:",(0,e.createComponentVNode)(2,f.Icon,{name:"clock",mx:"0.5rem"}),(0,e.createComponentVNode)(2,f.Box,{inline:!0,bold:!0,children:new Date(A/10*1e3).toISOString().substr(14,5)})]}),Object.keys(T).length>0&&(0,e.createComponentVNode)(2,f.Stack.Item,{className:"Exofab__queue--deficit",shrink:"0",children:[(0,e.createComponentVNode)(2,f.Divider),"Lacking materials to complete:",T.map(function(x){return(0,e.createComponentVNode)(2,f.Box,{children:(0,e.createComponentVNode)(2,i,{id:x[0],amount:-x[1],lineDisplay:!0})},x[0])})]})],0)})})},i=function(g,h){var N=(0,o.useBackend)(h),b=N.act,B=N.data,I=g.id,L=g.amount,T=g.lineDisplay,A=g.onClick,x=k(g,S),E=B.materials[I]||0,M=L||E;if(!(M<=0&&!(I==="metal"||I==="glass"))){var j=L&&L>E;return(0,e.normalizeProps)((0,e.createComponentVNode)(2,f.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,f.Stack.Item,{className:(0,a.classes)(["materials32x32",I])}),(0,e.createComponentVNode)(2,f.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,f.Stack.Item,{basis:"content",children:(0,e.createComponentVNode)(2,f.Button,{width:"85%",color:"transparent",onClick:A,children:(0,e.createComponentVNode)(2,f.Box,{mt:1,className:(0,a.classes)(["materials32x32",I])})})}),(0,e.createComponentVNode)(2,f.Stack.Item,{grow:"1",children:[(0,e.createComponentVNode)(2,f.Box,{className:"Exofab__material--name",children:I}),(0,e.createComponentVNode)(2,f.Box,{className:"Exofab__material--amount",children:[M.toLocaleString("en-US")," cm\xB3 (",Math.round(M/C*10)/10," ","sheets)"]})]})],4)})))}},p=function(g,h){var N=(0,o.useBackend)(h),b=N.act,B=N.data,I=g.design;return(0,e.createComponentVNode)(2,f.Box,{className:"Exofab__design",children:[(0,e.createComponentVNode)(2,f.Button,{disabled:I.notEnough||B.building,icon:"cog",content:I.name,onClick:function(){function L(){return b("build",{id:I.id})}return L}()}),(0,e.createComponentVNode)(2,f.Button,{icon:"plus-circle",onClick:function(){function L(){return b("queue",{id:I.id})}return L}()}),(0,e.createComponentVNode)(2,f.Box,{className:"Exofab__design--cost",children:Object.entries(I.cost).map(function(L){return(0,e.createComponentVNode)(2,f.Box,{children:(0,e.createComponentVNode)(2,i,{id:L[0],amount:L[1],lineDisplay:!0})},L[0])})}),(0,e.createComponentVNode)(2,f.Stack,{className:"Exofab__design--time",children:(0,e.createComponentVNode)(2,f.Stack.Item,{children:[(0,e.createComponentVNode)(2,f.Icon,{name:"clock"}),I.time>0?(0,e.createFragment)([I.time/10,(0,e.createTextVNode)(" seconds")],0):"Instant"]})})]})}},9466:function(w,r,n){"use strict";r.__esModule=!0,r.ExperimentConsole=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=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,C){var u=(0,a.useBackend)(C),c=u.act,m=u.data,d=m.open,l=m.feedback,s=m.occupant,i=m.occupant_name,p=m.occupant_status,v=function(){function h(){if(!s)return(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No specimen detected."});var N=function(){function B(){return f.get(p)}return B}(),b=N();return(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Name",children:i}),(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 I(){return c("experiment",{experiment_type:B})}return I}()},B)})})]})}return h}(),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:l})})}),(0,e.createComponentVNode)(2,t.Section,{title:"Scanner",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"eject",content:"Eject",disabled:!d,onClick:function(){function h(){return c("door")}return h}()}),children:g})]})})}return S}()},77284:function(w,r,n){"use strict";r.__esModule=!0,r.ExternalAirlockController=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=0,V=1013,y=function(C){var u="good",c=80,m=95,d=110,l=120;return Cd?u="average":C>l&&(u="bad"),u},S=r.ExternalAirlockController=function(){function k(C,u){var c=(0,a.useBackend)(u),m=c.act,d=c.data,l=d.chamber_pressure,s=d.exterior_status,i=d.interior_status,p=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(l),value:l,minValue:f,maxValue:V,children:[l," kPa"]})})})}),(0,e.createComponentVNode)(2,t.Section,{title:"Actions",buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Abort",icon:"ban",color:"red",disabled:!p,onClick:function(){function v(){return m("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:p,onClick:function(){function v(){return m("cycle_ext")}return v}()}),(0,e.createComponentVNode)(2,t.Button,{width:"50%",content:"Cycle to Interior",icon:"arrow-circle-right",disabled:p,onClick:function(){function v(){return m("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:i==="open"?"red":p?"yellow":null,onClick:function(){function v(){return m("force_ext")}return v}()}),(0,e.createComponentVNode)(2,t.Button,{width:"50%",content:"Force Interior Door",icon:"exclamation-triangle",color:i==="open"?"red":p?"yellow":null,onClick:function(){function v(){return m("force_int")}return v}()})]})]})]})})}return k}()},52516:function(w,r,n){"use strict";r.__esModule=!0,r.FaxMachine=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.FaxMachine=function(){function V(y,S){var k=(0,a.useBackend)(S),C=k.act,u=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:u.scan_name?"eject":"id-card",selected:u.scan_name,content:u.scan_name?u.scan_name:"-----",tooltip:u.scan_name?"Eject ID":"Insert ID",onClick:function(){function c(){return C("scan")}return c}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Authorize",children:(0,e.createComponentVNode)(2,t.Button,{icon:u.authenticated?"sign-out-alt":"id-card",selected:u.authenticated,disabled:u.nologin,content:u.realauth?"Log Out":"Log In",onClick:function(){function c(){return C("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:u.network}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Document",children:[(0,e.createComponentVNode)(2,t.Button,{icon:u.paper?"eject":"paperclip",disabled:!u.authenticated&&!u.paper,content:u.paper?u.paper:"-----",onClick:function(){function c(){return C("paper")}return c}()}),!!u.paper&&(0,e.createComponentVNode)(2,t.Button,{icon:"pencil-alt",content:"Rename",onClick:function(){function c(){return C("rename")}return c}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Sending To",children:(0,e.createComponentVNode)(2,t.Button,{icon:"print",content:u.destination?u.destination:"-----",disabled:!u.authenticated,onClick:function(){function c(){return C("dept")}return c}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Action",children:(0,e.createComponentVNode)(2,t.Button,{icon:"envelope",content:u.sendError?u.sendError:"Send",disabled:!u.paper||!u.destination||!u.authenticated||u.sendError,onClick:function(){function c(){return C("send")}return c}()})})]})})]})})}return V}()},24777:function(w,r,n){"use strict";r.__esModule=!0,r.FilingCabinet=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.FilingCabinet=function(){function V(y,S){var k=(0,a.useBackend)(S),C=k.act,u=k.data,c=k.config,m=u.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:[!m&&(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."]})}),!!m&&m.slice().map(function(l){return(0,e.createComponentVNode)(2,t.Stack,{mt:.5,className:"candystripe",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"80%",children:l.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 C("retrieve",{index:l.index})}return s}()})})]},l)})]})})})})}return V}()},88361:function(w,r,n){"use strict";r.__esModule=!0,r.FloorPainter=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=function(S,k){var C=(0,a.useBackend)(k),u=C.act,c=C.data,m=S.image,d=S.isSelected,l=S.onSelect;return(0,e.createVNode)(1,"img",null,null,1,{src:"data:image/jpeg;base64,"+m,style:{"border-style":d&&"solid"||"none","border-width":"2px","border-color":"orange",padding:d&&"2px"||"4px"},onClick:l})},V=r.FloorPainter=function(){function y(S,k){var C=(0,a.useBackend)(k),u=C.act,c=C.data,m=c.availableStyles,d=c.selectedStyle,l=c.selectedDir,s=c.directionsPreview,i=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 p(){return u("cycle_style",{offset:-1})}return p}()})}),(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Dropdown,{options:m,selected:d,width:"150px",height:"20px",ml:"2px",mr:"2px",nochevron:!0,onSelected:function(){function p(v){return u("select_style",{style:v})}return p}()})}),(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"chevron-right",onClick:function(){function p(){return u("cycle_style",{offset:1})}return p}()})})]}),(0,e.createComponentVNode)(2,t.Box,{mt:"5px",mb:"5px",children:(0,e.createComponentVNode)(2,t.Flex,{overflowY:"auto",maxHeight:"220px",wrap:"wrap",children:m.map(function(p){return(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,f,{image:i[p],isSelected:d===p,onSelect:function(){function v(){return u("select_style",{style:p})}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(p){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[p+"west",p,p+"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,f,{image:s[v],isSelected:v===l,onSelect:function(){function g(){return u("select_direction",{direction:v})}return g}()})},v)})},p)})})})})]})})})}return y}()},70078:function(w,r,n){"use strict";r.__esModule=!0,r.GPS=void 0;var e=n(96524),a=n(36121),t=n(17899),o=n(24674),f=n(45493),V=function(d){return d?"("+d.join(", ")+")":"ERROR"},y=function(d,l){if(!(!d||!l)){if(d[2]!==l[2])return null;var s=Math.atan2(l[1]-d[1],l[0]-d[0]),i=Math.sqrt(Math.pow(l[1]-d[1],2)+Math.pow(l[0]-d[0],2));return{angle:(0,a.rad2deg)(s),distance:i}}},S=r.GPS=function(){function m(d,l){var s=(0,t.useBackend)(l),i=s.data,p=i.emped,v=i.active,g=i.area,h=i.position,N=i.saved;return(0,e.createComponentVNode)(2,f.Window,{width:400,height:600,children:(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:p?(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,C)}),v?(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,u,{area:g,position:h})}),N&&(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,u,{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 m}(),k=function(d,l){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."]})})})})},C=function(d,l){var s=(0,t.useBackend)(l),i=s.act,p=s.data,v=p.active,g=p.tag,h=p.same_z,N=(0,t.useLocalState)(l,"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 I(){return i("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 i("tag",{newtag:b})}return I}(),onInput:function(){function I(L,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 i("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:!h,icon:h?"compress":"expand",content:h?"Local Sector":"Global",onClick:function(){function I(){return i("same_z")}return I}()})})]})})},u=function(d,l){var s=d.title,i=d.area,p=d.position;return(0,e.createComponentVNode)(2,o.Section,{title:s||"Position",children:(0,e.createComponentVNode)(2,o.Box,{fontSize:"1.5rem",children:[i&&(0,e.createFragment)([i,(0,e.createVNode)(1,"br")],0),V(p)]})})},c=function(d,l){var s=(0,t.useBackend)(l),i=s.data,p=i.position,v=i.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(p,g.position))}).map(function(g,h){return(0,e.createComponentVNode)(2,o.Table.Row,{backgroundColor:h%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)})]},h)})})})))}},92246:function(w,r,n){"use strict";r.__esModule=!0,r.GeneModder=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(99665),f=n(45493),V=r.GeneModder=function(){function l(s,i){var p=(0,a.useBackend)(i),v=p.data,g=v.has_seed;return(0,e.createComponentVNode)(2,f.Window,{width:950,height:650,children:[(0,e.createVNode)(1,"div","GeneModder__left",(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,d,{scrollable:!0})}),2),(0,e.createVNode)(1,"div","GeneModder__right",(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,scrollable:!0,children:[(0,e.createComponentVNode)(2,k),(0,e.createComponentVNode)(2,o.ComplexModal,{maxWidth:"75%",maxHeight:"75%"}),g===0?(0,e.createComponentVNode)(2,S):(0,e.createComponentVNode)(2,y)]})}),2)]})}return l}(),y=function(s,i){var p=(0,a.useBackend)(i),v=p.act,g=p.data,h=g.disk;return(0,e.createComponentVNode)(2,t.Section,{title:"Genes",fill:!0,scrollable:!0,children:[(0,e.createComponentVNode)(2,C),(0,e.createComponentVNode)(2,u),(0,e.createComponentVNode)(2,c)]})},S=function(s,i){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(s,i){var p=(0,a.useBackend)(i),v=p.act,g=p.data,h=g.has_seed,N=g.seed,b=g.has_disk,B=g.disk,I,L;return h?I=(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,"+N.image,style:{"vertical-align":"middle",width:"32px",margin:"-1px","margin-left":"-11px"}}),(0,e.createComponentVNode)(2,t.Button,{content:N.name,onClick:function(){function T(){return v("eject_seed")}return T}()}),(0,e.createComponentVNode)(2,t.Button,{ml:"3px",icon:"pen",tooltip:"Name Variant",onClick:function(){function T(){return v("variant_name")}return T}()})]}):I=(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{ml:3.3,content:"None",onClick:function(){function T(){return v("eject_seed")}return T}()})}),b?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:I}),(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,tooltip:"Select Empty Disk",onClick:function(){function T(){return v("select_empty_disk")}return T}()})})})]})})},C=function(s,i){var p=(0,a.useBackend)(i),v=p.act,g=p.data,h=g.disk,N=g.core_genes;return(0,e.createComponentVNode)(2,t.Collapsible,{title:"Core Genes",open:!0,children:[N.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:!(h!=null&&h.can_extract),icon:"save",onClick:function(){function B(){return v("extract",{id:b.id})}return B}()})})]},b)})," ",(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:!(h!=null&&h.can_extract),icon:"save",onClick:function(){function b(){return v("bulk_extract_core")}return b}()})})})]},"Core Genes")},u=function(s,i){var p=(0,a.useBackend)(i),v=p.data,g=v.reagent_genes,h=v.has_reagent;return(0,e.createComponentVNode)(2,m,{title:"Reagent Genes",gene_set:g,do_we_show:h})},c=function(s,i){var p=(0,a.useBackend)(i),v=p.data,g=v.trait_genes,h=v.has_trait;return(0,e.createComponentVNode)(2,m,{title:"Trait Genes",gene_set:g,do_we_show:h})},m=function(s,i){var p=s.title,v=s.gene_set,g=s.do_we_show,h=(0,a.useBackend)(i),N=h.act,b=h.data,B=b.disk;return(0,e.createComponentVNode)(2,t.Collapsible,{title:p,open:!0,children:g?v.map(function(I){return(0,e.createComponentVNode)(2,t.Stack,{py:"2px",className:"candystripe",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"100%",ml:"2px",children:I.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 N("extract",{id:I.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 N("remove",{id:I.id})}return L}()})})]},I)}):(0,e.createComponentVNode)(2,t.Stack.Item,{children:"No Genes Detected"})},p)},d=function(s,i){var p=s.title,v=s.gene_set,g=s.do_we_show,h=(0,a.useBackend)(i),N=h.act,b=h.data,B=b.has_seed,I=b.empty_disks,L=b.stat_disks,T=b.trait_disks,A=b.reagent_disks;return(0,e.createComponentVNode)(2,t.Section,{title:"Disks",children:[(0,e.createVNode)(1,"br"),"Empty Disks: ",I,(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Button,{width:12,icon:"arrow-down",tooltip:"Eject an Empty disk",content:"Eject Empty Disk",onClick:function(){function x(){return N("eject_empty_disk")}return x}()}),(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Section,{title:"Stats",children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,scrollable:!0,children:[L.slice().sort(function(x,E){return x.display_name.localeCompare(E.display_name)}).map(function(x){return(0,e.createComponentVNode)(2,t.Stack,{mr:2,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"49%",children:x.display_name}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:25,children:[x.stat==="All"?(0,e.createComponentVNode)(2,t.Button,{content:"Replace All",tooltip:"Write disk stats to seed",disabled:!(x!=null&&x.ready)||!B,icon:"arrow-circle-down",onClick:function(){function E(){return N("bulk_replace_core",{index:x.index})}return E}()}):(0,e.createComponentVNode)(2,t.Button,{width:6,icon:"arrow-circle-down",tooltip:"Write disk stat to seed",disabled:!x||!B,content:"Replace",onClick:function(){function E(){return N("replace",{index:x.index,stat:x.stat})}return E}()}),(0,e.createComponentVNode)(2,t.Button,{width:6,icon:"arrow-right",content:"Select",tooltip:"Choose as target for extracted genes",tooltipPosition:"bottom-start",onClick:function(){function E(){return N("select",{index:x.index})}return E}()}),(0,e.createComponentVNode)(2,t.Button,{width:5,icon:"arrow-down",content:"Eject",tooltip:"Eject Disk",tooltipPosition:"bottom-start",onClick:function(){function E(){return N("eject_disk",{index:x.index})}return E}()}),(0,e.createComponentVNode)(2,t.Button,{width:2,icon:x.read_only?"lock":"lock-open",content:"",tool_tip:"Set/unset Read Only",onClick:function(){function E(){return N("set_read_only",{index:x.index,read_only:x.read_only})}return E}()})]})]},x)}),(0,e.createComponentVNode)(2,t.Button)]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Traits",children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,scrollable:!0,children:[T.slice().sort(function(x,E){return x.display_name.localeCompare(E.display_name)}).map(function(x){return(0,e.createComponentVNode)(2,t.Stack,{mr:2,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"49%",children:x.display_name}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:25,children:[(0,e.createComponentVNode)(2,t.Button,{width:6,icon:"arrow-circle-down",disabled:!x||!x.can_insert,tooltip:"Add disk trait to seed",content:"Insert",onClick:function(){function E(){return N("insert",{index:x.index})}return E}()}),(0,e.createComponentVNode)(2,t.Button,{width:6,icon:"arrow-right",content:"Select",tooltip:"Choose as target for extracted genes",tooltipPosition:"bottom-start",onClick:function(){function E(){return N("select",{index:x.index})}return E}()}),(0,e.createComponentVNode)(2,t.Button,{width:5,icon:"arrow-down",content:"Eject",tooltip:"Eject Disk",tooltipPosition:"bottom-start",onClick:function(){function E(){return N("eject_disk",{index:x.index})}return E}()}),(0,e.createComponentVNode)(2,t.Button,{width:2,icon:x.read_only?"lock":"lock-open",content:"",tool_tip:"Set/unset Read Only",onClick:function(){function E(){return N("set_read_only",{index:x.index,read_only:x.read_only})}return E}()})]})]},x)}),(0,e.createComponentVNode)(2,t.Button)]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Reagents",children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,scrollable:!0,children:[A.slice().sort(function(x,E){return x.display_name.localeCompare(E.display_name)}).map(function(x){return(0,e.createComponentVNode)(2,t.Stack,{mr:2,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"49%",children:x.display_name}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:25,children:[(0,e.createComponentVNode)(2,t.Button,{width:6,icon:"arrow-circle-down",disabled:!x||!x.can_insert,tooltip:"Add disk reagent to seed",content:"Insert",onClick:function(){function E(){return N("insert",{index:x.index})}return E}()}),(0,e.createComponentVNode)(2,t.Button,{width:6,icon:"arrow-right",content:"Select",tooltip:"Choose as target for extracted genes",tooltipPosition:"bottom-start",onClick:function(){function E(){return N("select",{index:x.index})}return E}()}),(0,e.createComponentVNode)(2,t.Button,{width:5,icon:"arrow-down",content:"Eject",tooltip:"Eject Disk",tooltipPosition:"bottom-start",onClick:function(){function E(){return N("eject_disk",{index:x.index})}return E}()}),(0,e.createComponentVNode)(2,t.Button,{width:2,icon:x.read_only?"lock":"lock-open",content:"",tool_tip:"Set/unset Read Only",onClick:function(){function E(){return N("set_read_only",{index:x.index,read_only:x.read_only})}return E}()})]})]},x)}),(0,e.createComponentVNode)(2,t.Button)]})})]})]})}},27163:function(w,r,n){"use strict";r.__esModule=!0,r.GenericCrewManifest=void 0;var e=n(96524),a=n(24674),t=n(45493),o=n(98444),f=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(w,r,n){"use strict";r.__esModule=!0,r.GhostHudPanel=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.GhostHudPanel=function(){function y(S,k){var C=(0,a.useBackend)(k),u=C.data,c=u.security,m=u.medical,d=u.diagnostic,l=u.radioactivity,s=u.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:m}),(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:l,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 C=(0,a.useBackend)(k),u=C.act,c=S.label,m=S.type,d=m===void 0?null:m,l=S.is_active,s=S.act_on,i=s===void 0?"hud_on":s,p=S.act_off,v=p===void 0?"hud_off":p;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:l?"On":"Off",icon:l?"toggle-on":"toggle-off",selected:l,onClick:function(){function g(){return u(l?v:i,{hud_type:d})}return g}()})})]})}},32035:function(w,r,n){"use strict";r.__esModule=!0,r.GlandDispenser=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.GlandDispenser=function(){function V(y,S){var k=(0,a.useBackend)(S),C=k.act,u=k.data,c=u.glands,m=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:m.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 l(){return C("dispense",{gland_id:d.id})}return l}()},d.id)})})})})}return V}()},33004:function(w,r,n){"use strict";r.__esModule=!0,r.GravityGen=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.GravityGen=function(){function V(y,S){var k=(0,a.useBackend)(S),C=k.act,u=k.data,c=u.charging_state,m=u.charge_count,d=u.breaker,l=u.ext_power,s=function(){function p(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:l?"good":"bad",children:["[ ",l?"Powered":"Unpowered"," ]"]})}return p}(),i=function(){function p(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 p}();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:[i(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 p(){return C("breaker")}return p}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power Status",color:l?"good":"bad",children:s(c)}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Gravity Charge",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:m/100,ranges:{good:[.9,1/0],average:[.5,.9],bad:[-1/0,.5]}})})]})})]})})})}return V}()},39775:function(w,r,n){"use strict";r.__esModule=!0,r.GuestPass=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=n(57842),V=r.GuestPass=function(){function y(S,k){var C=(0,a.useBackend)(k),u=C.act,c=C.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 m(){return u("mode",{mode:0})}return m}(),children:"Issue Pass"}),(0,e.createComponentVNode)(2,t.Tabs.Tab,{icon:"scroll",selected:c.showlogs,onClick:function(){function m(){return u("mode",{mode:1})}return m}(),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 m(){return u("scan")}return m}()})})})})}),(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 m(){return u("giv_name")}return m}()})}),(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 m(){return u("reason")}return m}()})}),(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 m(){return u("duration")}return m}()})})]})})}),!c.showlogs&&(c.scan_name?(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,f.AccessList,{sectionButtons:(0,e.createComponentVNode)(2,t.Button,{icon:"id-card",content:c.printmsg,disabled:!c.canprint,onClick:function(){function m(){return u("issue")}return m}()}),grantableList:c.grantableList,accesses:c.regions,selectedList:c.selectedAccess,accessMod:function(){function m(d){return u("access",{access:d})}return m}(),grantAll:function(){function m(){return u("grant_all")}return m}(),denyAll:function(){function m(){return u("clear_all")}return m}(),grantDep:function(){function m(d){return u("grant_region",{region:d})}return m}(),denyDep:function(){function m(d){return u("deny_region",{region:d})}return m}()})}):(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 m(){return u("print")}return m}()}),children:!!c.issue_log.length&&(0,e.createComponentVNode)(2,t.LabeledList,{children:c.issue_log.map(function(m,d){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{children:m},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(w,r,n){"use strict";r.__esModule=!0,r.HandheldChemDispenser=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=[1,5,10,20,30,50],V=null,y=r.HandheldChemDispenser=function(){function C(u,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 C}(),S=function(u,c){var m=(0,a.useBackend)(c),d=m.act,l=m.data,s=l.amount,i=l.energy,p=l.maxEnergy,v=l.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:i,minValue:0,maxValue:p,ranges:{good:[p*.5,1/0],average:[p*.25,p*.5],bad:[-1/0,p*.25]},children:[i," / ",p," Units"]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Amount",verticalAlign:"middle",children:(0,e.createComponentVNode)(2,t.Stack,{children:f.map(function(g,h){return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,width:"15%",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"cog",selected:s===g,content:g,onClick:function(){function N(){return d("amount",{amount:g})}return N}()})},h)})})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Mode",verticalAlign:"middle",children:(0,e.createComponentVNode)(2,t.Stack,{justify:"space-between",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"cog",selected: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(u,c){for(var m=(0,a.useBackend)(c),d=m.act,l=m.data,s=l.chemicals,i=s===void 0?[]:s,p=l.current_reagent,v=[],g=0;g<(i.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:l.glass?"Drink Selector":"Chemical Selector",children:[i.map(function(h,N){return(0,e.createComponentVNode)(2,t.Button,{width:"32%",icon:"arrow-circle-down",overflow:"hidden",textOverflow:"ellipsis",selected:p===h.id,content:h.title,style:{"margin-left":"2px"},onClick:function(){function b(){return d("dispense",{reagent:h.id})}return b}()},N)}),v.map(function(h,N){return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:"1",basis:"25%"},N)})]})})}},22616:function(w,r,n){"use strict";r.__esModule=!0,r.HealthSensor=void 0;var e=n(96524),a=n(36121),t=n(17899),o=n(24674),f=n(45493),V=r.HealthSensor=function(){function S(k,C){var u=(0,t.useBackend)(C),c=u.act,m=u.data,d=m.on,l=m.user_health,s=m.minHealth,i=m.maxHealth,p=m.alarm_health;return(0,e.createComponentVNode)(2,f.Window,{width:300,height:125,children:(0,e.createComponentVNode)(2,f.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:i,value:p,format:function(){function v(g){return(0,a.toFixed)(g,1)}return v}(),width:"80px",onDrag:function(){function v(g,h){return c("alarm_health",{alarm_health:h})}return v}()})}),l!==null&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"User health",children:(0,e.createComponentVNode)(2,o.Box,{color:y(l),bold:l>=100,children:(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:l})})})]})})})})}return S}(),y=function(k){return k>50?"green":k>0?"orange":"red"}},76861:function(w,r,n){"use strict";r.__esModule=!0,r.Holodeck=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.Holodeck=function(){function y(S,k){var C=(0,a.useBackend)(k),u=C.act,c=C.data,m=(0,a.useLocalState)(k,"currentDeck",""),d=m[0],l=m[1],s=(0,a.useLocalState)(k,"showReload",!1),i=s[0],p=s[1],v=c.decks,g=c.ai_override,h=c.emagged,N=function(){function b(B){u("select_deck",{deck:B}),l(B),p(!0),setTimeout(function(){p(!1)},3e3)}return b}();return(0,e.createComponentVNode)(2,o.Window,{width:400,height:320,children:[i&&(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:h?"Turn On":"Turn Off",color:h?"good":"bad",onClick:function(){function b(){return u("ai_override")}return b}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Safety Protocols",children:(0,e.createComponentVNode)(2,t.Box,{color:h?"bad":"good",children:[h?"Off":"On",!!h&&(0,e.createComponentVNode)(2,t.Button,{ml:9.5,width:15.5,color:"red",content:"Wildlife Simulation",onClick:function(){function b(){return u("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(w,r,n){"use strict";r.__esModule=!0,r.Instrument=void 0;var e=n(96524),a=n(36121),t=n(17899),o=n(24674),f=n(45493),V=r.Instrument=function(){function u(c,m){var d=(0,t.useBackend)(m),l=d.act,s=d.data;return(0,e.createComponentVNode)(2,f.Window,{width:600,height:505,children:[(0,e.createComponentVNode)(2,y),(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,S),(0,e.createComponentVNode)(2,C)]})})]})}return u}(),y=function(c,m){var d=(0,t.useBackend)(m),l=d.act,s=d.data,i=s.help;if(i)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.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.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 p(){return l("help")}return p}()})]})})})},S=function(c,m){var d=(0,t.useBackend)(m),l=d.act,s=d.data,i=s.lines,p=s.playing,v=s.repeat,g=s.maxRepeats,h=s.tempo,N=s.minTempo,b=s.maxTempo,B=s.tickLag,I=s.volume,L=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 l("help")}return x}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"file",content:"New",onClick:function(){function x(){return l("newsong")}return x}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"upload",content:"Import",onClick:function(){function x(){return l("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:p,disabled:i.length===0||v<0,icon:"play",content:"Play",onClick:function(){function x(){return l("play")}return x}()}),(0,e.createComponentVNode)(2,o.Button,{disabled:!p,icon:"stop",content:"Stop",onClick:function(){function x(){return l("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 l("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:h>=b,content:"-",as:"span",mr:"0.5rem",onClick:function(){function x(){return l("tempo",{new:h+B})}return x}()}),(0,a.round)(600/h)," BPM",(0,e.createComponentVNode)(2,o.Button,{disabled:h<=N,content:"+",as:"span",ml:"0.5rem",onClick:function(){function x(){return l("tempo",{new:h-B})}return x}()})]})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Volume",children:(0,e.createComponentVNode)(2,o.Slider,{animated:!0,minValue:L,maxValue:T,value:I,stepPixelSize:6,onDrag:function(){function x(E,M){return l("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,m){var d=(0,t.useBackend)(m),l=d.act,s=d.data,i=s.allowedInstrumentNames,p=s.instrumentLoaded,v=s.instrument,g=s.canNoteShift,h=s.noteShift,N=s.noteShiftMin,b=s.noteShiftMax,B=s.sustainMode,I=s.sustainLinearDuration,L=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 l("setlinearfalloff",{new:R/10})}return j}()})):B===2&&(E="Exponential",M=(0,e.createComponentVNode)(2,o.Slider,{minValue:1.025,maxValue:10,value:L,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 l("setexpfalloff",{new:R})}return j}()})),i.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:p?(0,e.createComponentVNode)(2,o.Dropdown,{options:i,selected:v,width:"50%",onSelected:function(){function j(P){return l("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:N,maxValue:b,value:h,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 l("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 l("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 l("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 l("togglesustainhold")}return j}()})})],4)]}),(0,e.createComponentVNode)(2,o.Button,{icon:"redo",content:"Reset to Default",mt:"0.5rem",onClick:function(){function j(){return l("reset")}return j}()})]})})})},C=function(c,m){var d=(0,t.useBackend)(m),l=d.act,s=d.data,i=s.playing,p=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||i,icon:"plus",content:"Add Line",onClick:function(){function g(){return l("newline",{line:p.length+1})}return g}()}),(0,e.createComponentVNode)(2,o.Button,{selected:!v,icon:v?"chevron-up":"chevron-down",onClick:function(){function g(){return l("edit")}return g}()})],4),children:!!v&&(p.length>0?(0,e.createComponentVNode)(2,o.LabeledList,{children:p.map(function(g,h){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:h+1,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{disabled:i,icon:"pen",onClick:function(){function N(){return l("modifyline",{line:h+1})}return N}()}),(0,e.createComponentVNode)(2,o.Button,{disabled:i,icon:"trash",onClick:function(){function N(){return l("deleteline",{line:h+1})}return N}()})],4),children:g},h)})}):(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"Song is empty."}))})}},99366:function(w,r,n){"use strict";r.__esModule=!0,r.Jukebox=void 0;var e=n(96524),a=n(50640),t=n(74041),o=n(17899),f=n(24674),V=n(45493),y=r.Jukebox=function(){function C(u,c){var m=(0,o.useBackend)(c),d=m.act,l=m.data,s=l.active,i=l.looping,p=l.track_selected,v=l.volume,g=l.max_volume,h=l.songs,N=l.startTime,b=l.endTime,B=l.worldTime,I=l.need_coin,L=l.payment,T=l.advanced_admin,A=35,x=!L&&I&&!T,E=(0,t.flow)([(0,a.sortBy)(function(F){return F.name})])(h),M=h.find(function(F){return F.name===p}),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),K=W%60,H=String(_).padStart(2,"0")+":"+String(K).padStart(2,"0");return H}return F}(),D=(0,e.createComponentVNode)(2,f.Box,{textAlign:"center",children:[s?i?"\u221E":R(Math.round((B-N)/10)):i?"\u221E":R(M.length)," ","/ ",i?"\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:[x?(0,e.createComponentVNode)(2,k):null,(0,e.createComponentVNode)(2,V.Window.Content,{children:(0,e.createComponentVNode)(2,f.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,f.Stack,{children:[(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,f.Section,{fill:!0,title:"\u041F\u0440\u043E\u0438\u0433\u0440\u044B\u0432\u0430\u0442\u0435\u043B\u044C",children:(0,e.createComponentVNode)(2,f.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,f.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,f.Stack,{fill:!0,mt:1.5,children:[(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,basis:"0",children:(0,e.createComponentVNode)(2,f.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,f.Stack.Item,{grow:!0,basis:"0",children:(0,e.createComponentVNode)(2,f.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:i,onClick:function(){function F(){return d("loop",{looping:!i})}return F}()})})]}),(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.ProgressBar.Countdown,{start:N,current:i?b:B,end:b,children:D})})]})})}),(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Section,{children:[s?(0,e.createComponentVNode)(2,S):null,(0,e.createComponentVNode)(2,f.Stack,{fill:!0,mb:1.5,children:[(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,m:0,children:(0,e.createComponentVNode)(2,f.Button,{color:"transparent",icon:"fast-backward",onClick:function(){function F(){return d("set_volume",{volume:"min"})}return F}()})}),(0,e.createComponentVNode)(2,f.Stack.Item,{m:0,children:(0,e.createComponentVNode)(2,f.Button,{color:"transparent",icon:"undo",onClick:function(){function F(){return d("set_volume",{volume:"reset"})}return F}()})}),(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,m:0,textAlign:"right",children:(0,e.createComponentVNode)(2,f.Button,{color:"transparent",icon:"fast-forward",onClick:function(){function F(){return d("set_volume",{volume:"max"})}return F}()})})]}),(0,e.createComponentVNode)(2,f.Stack.Item,{textAlign:"center",textColor:"label",children:[(0,e.createComponentVNode)(2,f.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,f.Stack.Item,{grow:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,f.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,f.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];d("select_track",{track:_.name})}return F}()}),children:E.map(function(F){return(0,e.createComponentVNode)(2,f.Stack.Item,{mb:.5,textAlign:"left",children:(0,e.createComponentVNode)(2,f.Button,{fluid:!0,selected:M.name===F.name,color:"translucent",content:(0,e.createComponentVNode)(2,f.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,children:F.name}),(0,e.createComponentVNode)(2,f.Stack.Item,{children:R(F.length)})]}),onClick:function(){function W(){d("select_track",{track:F.name})}return W}()})},F.name)})})})]})})]})}return C}(),S=function(){return(0,e.createComponentVNode)(2,f.Dimmer,{textAlign:"center",children:[(0,e.createComponentVNode)(2,f.Icon,{name:"music",size:"3",color:"gray",mb:1}),(0,e.createComponentVNode)(2,f.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,f.Dimmer,{textAlign:"center",children:[(0,e.createComponentVNode)(2,f.Icon,{name:"coins",size:"6",color:"gold",mr:1}),(0,e.createComponentVNode)(2,f.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(w,r,n){"use strict";r.__esModule=!0,r.KeycardAuth=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.KeycardAuth=function(){function V(y,S){var k=(0,a.useBackend)(S),C=k.act,u=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(!u.swiping&&!u.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:!u.redAvailable,onClick:function(){function d(){return C("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 C("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 C("triggerevent",{triggerevent:"Grant Emergency Maintenance Access"})}return d}(),content:"Grant"}),(0,e.createComponentVNode)(2,t.Button,{icon:"door-closed",onClick:function(){function d(){return C("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 C("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 C("triggerevent",{triggerevent:"Deactivate Station-Wide Emergency Access"})}return d}(),content:"Revoke"})]})]})})]})});var m=(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Waiting for YOU to swipe your ID..."});return!u.hasSwiped&&!u.ertreason&&u.event==="Emergency Response Team"?m=(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Fill out the reason for your ERT request."}):u.hasConfirm?m=(0,e.createComponentVNode)(2,t.Box,{color:"green",children:"Request Confirmed!"}):u.isRemote?m=(0,e.createComponentVNode)(2,t.Box,{color:"orange",children:"Swipe your card to CONFIRM the remote request."}):u.hasSwiped&&(m=(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,u.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:u.ertreason?"":"red",icon:u.ertreason?"check":"pencil-alt",content:u.ertreason?u.ertreason:"-----",disabled:u.busy,onClick:function(){function d(){return C("ert")}return d}()})})}),(0,e.createComponentVNode)(2,t.Section,{title:u.event,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-circle-left",content:"Back",disabled:u.busy||u.hasConfirm,onClick:function(){function d(){return C("reset")}return d}()}),children:m})]})})}return V}()},58553:function(w,r,n){"use strict";r.__esModule=!0,r.KitchenMachine=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=n(75201),V=r.KitchenMachine=function(){function S(k,C){var u=(0,a.useBackend)(C),c=u.data,m=u.config,d=c.ingredients,l=c.operating,s=m.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,f.Operating,{operating:l,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(i){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:i.name}),2),(0,e.createVNode)(1,"td",null,(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,textAlign:"center",children:[i.amount," ",i.units]}),2)]},i.name)})})})})]})})})}return S}(),y=function(k,C){var u=(0,a.useBackend)(C),c=u.act,m=u.data,d=m.inactive,l=m.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?l:"",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?l:"",tooltipPosition:"bottom",content:"Eject Contents",onClick:function(){function s(){return c("eject")}return s}()})})]})})}},14047:function(w,r,n){"use strict";r.__esModule=!0,r.LawManager=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.LawManager=function(){function k(C,u){var c=(0,a.useBackend)(u),m=c.act,d=c.data,l=d.isAdmin,s=d.isSlaved,i=d.isMalf,p=d.isAIMalf,v=d.view;return(0,e.createComponentVNode)(2,o.Window,{width:800,height:i?620:365,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[!!(l&&s)&&(0,e.createComponentVNode)(2,t.NoticeBox,{children:["This unit is slaved to ",s,"."]}),!!(i||p)&&(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Button,{content:"Law Management",selected:v===0,onClick:function(){function g(){return m("set_view",{set_view:0})}return g}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Lawsets",selected:v===1,onClick:function(){function g(){return m("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(C,u){var c=(0,a.useBackend)(u),m=c.act,d=c.data,l=d.has_zeroth_laws,s=d.zeroth_laws,i=d.has_ion_laws,p=d.ion_laws,v=d.ion_law_nr,g=d.has_inherent_laws,h=d.inherent_laws,N=d.has_supplied_laws,b=d.supplied_laws,B=d.channels,I=d.channel,L=d.isMalf,T=d.isAdmin,A=d.zeroth_law,x=d.ion_law,E=d.inherent_law,M=d.supplied_law,j=d.supplied_law_position;return(0,e.createFragment)([!!l&&(0,e.createComponentVNode)(2,S,{title:"ERR_NULL_VALUE",laws:s,ctx:u}),!!i&&(0,e.createComponentVNode)(2,S,{title:v,laws:p,ctx:u}),!!g&&(0,e.createComponentVNode)(2,S,{title:"Inherent",laws:h,ctx:u}),!!N&&(0,e.createComponentVNode)(2,S,{title:"Supplied",laws:b,ctx:u}),(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 m("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 m("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 m("notify_laws")}return P}()})})]})}),!!L&&(0,e.createComponentVNode)(2,t.Section,{title:"Add Laws",children:(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{width:"10%",children:"Type"}),(0,e.createComponentVNode)(2,t.Table.Cell,{width:"60%",children:"Law"}),(0,e.createComponentVNode)(2,t.Table.Cell,{width:"10%",children:"Index"}),(0,e.createComponentVNode)(2,t.Table.Cell,{width:"20%",children:"Actions"})]}),!!(T&&!l)&&(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 m("change_zeroth_law")}return P}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Add",icon:"plus",onClick:function(){function P(){return m("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 m("change_ion_law")}return P}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Add",icon:"plus",onClick:function(){function P(){return m("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 m("change_inherent_law")}return P}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Add",icon:"plus",onClick:function(){function P(){return m("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 m("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 m("change_supplied_law")}return P}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Add",icon:"plus",onClick:function(){function P(){return m("add_supplied_law")}return P}()})]})]})]})})],0)},y=function(C,u){var c=(0,a.useBackend)(u),m=c.act,d=c.data,l=d.law_sets;return(0,e.createComponentVNode)(2,t.Box,{children:l.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 i(){return m("transfer_laws",{transfer_laws:s.ref})}return i}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[s.laws.has_ion_laws>0&&s.laws.ion_laws.map(function(i){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:i.index,children:i.law},i.index)}),s.laws.has_zeroth_laws>0&&s.laws.zeroth_laws.map(function(i){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:i.index,children:i.law},i.index)}),s.laws.has_inherent_laws>0&&s.laws.inherent_laws.map(function(i){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:i.index,children:i.law},i.index)}),s.laws.has_supplied_laws>0&&s.laws.inherent_laws.map(function(i){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:i.index,children:i.law},i.index)})]})},s.name)})})},S=function(C,u){var c=(0,a.useBackend)(C.ctx),m=c.act,d=c.data,l=d.isMalf;return(0,e.createComponentVNode)(2,t.Section,{title:C.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?"})]}),C.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 i(){return m("state_law",{ref:s.ref,state_law:s.state?0:1})}return i}()}),!!l&&(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{content:"Edit",icon:"pencil-alt",onClick:function(){function i(){return m("edit_law",{edit_law:s.ref})}return i}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Delete",icon:"trash",color:"red",onClick:function(){function i(){return m("delete_law",{delete_law:s.ref})}return i}()})],4)]})]},s.law)})]})})}},5872:function(w,r,n){"use strict";r.__esModule=!0,r.LibraryComputer=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=n(99665),V=r.LibraryComputer=function(){function v(g,h){return(0,e.createComponentVNode)(2,o.Window,{width:1050,height:600,children:[(0,e.createComponentVNode)(2,f.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),(0,e.createComponentVNode)(2,c)]})})]})}return v}(),y=function(g,h){var N=(0,a.useBackend)(h),b=N.act,B=N.data,I=g.args,L=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"),L===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:L})}return T}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Report Book",icon:"flag",color:"red",disabled:I.isProgrammatic,onClick:function(){function T(){return(0,f.modalOpen)(h,"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,f.modalOpen)(h,"rate_info",{bookid:I.id})}return T}()})]})},S=function(g,h){var N=(0,a.useBackend)(h),b=N.act,B=N.data,I=g.args,L=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===L,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,h){var N=(0,a.useBackend)(h),b=N.act,B=N.data,I=B.selected_rating,L=Array(10).fill().map(function(T,A){return 1+A});return(0,e.createComponentVNode)(2,t.Stack,{children:[L.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"})]})]})},C=function(g,h){var N=(0,a.useBackend)(h),b=N.act,B=N.data,I=g.args,L=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:L})}return T}()})]})},u=function(g,h){var N=(0,a.useBackend)(h),b=N.data,B=(0,a.useLocalState)(h,"tabIndex",0),I=B[0],L=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 L(0)}return A}(),children:"Book Archives"}),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:I===1,onClick:function(){function A(){return L(1)}return A}(),children:"Corporate Literature"}),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:I===2,onClick:function(){function A(){return L(2)}return A}(),children:"Upload Book"}),T===1&&(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:I===3,onClick:function(){function A(){return L(3)}return A}(),children:"Patron Manager"}),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:I===4,onClick:function(){function A(){return L(4)}return A}(),children:"Inventory"})]})})},c=function(g,h){var N=(0,a.useLocalState)(h,"tabIndex",0),b=N[0];switch(b){case 0:return(0,e.createComponentVNode)(2,d);case 1:return(0,e.createComponentVNode)(2,l);case 2:return(0,e.createComponentVNode)(2,s);case 3:return(0,e.createComponentVNode)(2,i);case 4:return(0,e.createComponentVNode)(2,p);default:return"You are somehow on a tab that doesn't exist! Please let a coder know."}},m=function(g,h){var N=(0,a.useBackend)(h),b=N.act,B=N.data,I=B.searchcontent,L=B.book_categories,T=B.user_ckey,A=[];return L.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,f.modalOpen)(h,"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,f.modalOpen)(h,"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,f.modalOpen)(h,"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,f.modalOpen)(h,"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:L.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"),L.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}()})]})]})},d=function(g,h){var N=(0,a.useBackend)(h),b=N.act,B=N.data,I=B.external_booklist,L=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:L===1,onClick:function(){function x(){return b("deincrementpagemax")}return x}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"chevron-left",disabled:L===1,onClick:function(){function x(){return b("deincrementpage")}return x}()}),(0,e.createComponentVNode)(2,t.Button,{bold:!0,content:L,onClick:function(){function x(){return(0,f.modalOpen)(h,"setpagenumber")}return x}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"chevron-right",disabled:L===T,onClick:function(){function x(){return b("incrementpage")}return x}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"angle-double-right",disabled:L===T,onClick:function(){function x(){return b("incrementpagemax")}return x}()})],4),children:[(0,e.createComponentVNode)(2,m),(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,f.modalOpen)(h,"expand_info",{bookid:x.id})}return E}()})]})]},x.id)})]})]})},l=function(g,h){var N=(0,a.useBackend)(h),b=N.act,B=N.data,I=B.programmatic_booklist,L=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:[L===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,f.modalOpen)(h,"expand_info",{bookid:T.id})}return x}()})]})]},A)})]})})},s=function(g,h){var N=(0,a.useBackend)(h),b=N.act,B=N.data,I=B.selectedbook,L=B.book_categories,T=B.user_ckey,A=[];return L.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,f.modalOpen)(h,"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,f.modalOpen)(h,"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:L.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"),L.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,f.modalOpen)(h,"edit_selected_summary")}return x}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{children:I.summary})]})})]})]})},i=function(g,h){var N=(0,a.useBackend)(h),b=N.act,B=N.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(L,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"}),L.patron_name]}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:L.title}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:L.timeleft>=0?L.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:L.timeleft>=0,onClick:function(){function A(){return b("reportlost",{libraryid:L.libraryid})}return A}()})})]},T)})]})})},p=function(g,h){var N=(0,a.useBackend)(h),b=N.act,B=N.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(L,T){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:L.libraryid}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"book"})," ",L.title]}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:L.author}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:L.checked_out?"Checked Out":"Available"})]},T)})]})})};(0,f.modalRegisterBodyOverride)("expand_info",y),(0,f.modalRegisterBodyOverride)("report_book",S),(0,f.modalRegisterBodyOverride)("rate_info",C)},37782:function(w,r,n){"use strict";r.__esModule=!0,r.LibraryManager=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=n(99665),V=r.LibraryManager=function(){function u(c,m){return(0,e.createComponentVNode)(2,o.Window,{width:600,height:600,children:[(0,e.createComponentVNode)(2,f.ComplexModal),(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,className:"Layout__content--flexColumn",children:(0,e.createComponentVNode)(2,y)})]})}return u}(),y=function(c,m){var d=(0,a.useBackend)(m),l=d.act,s=d.data,i=s.pagestate;switch(i){case 1:return(0,e.createComponentVNode)(2,S);case 2:return(0,e.createComponentVNode)(2,C);case 3:return(0,e.createComponentVNode)(2,k);default:return"WE SHOULDN'T BE HERE!"}},S=function(c,m){var d=(0,a.useBackend)(m),l=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 i(){return(0,f.modalOpen)(m,"specify_ssid_delete")}return i}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"user-slash",width:"auto",color:"danger",content:"Delete All Books By CKEY",onClick:function(){function i(){return(0,f.modalOpen)(m,"specify_ckey_delete")}return i}()}),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Button,{icon:"search",width:"auto",content:"View All Books By CKEY",onClick:function(){function i(){return(0,f.modalOpen)(m,"specify_ckey_search")}return i}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"search",width:"auto",content:"View All Reported Books",onClick:function(){function i(){return l("view_reported_books")}return i}()})]})},k=function(c,m){var d=(0,a.useBackend)(m),l=d.act,s=d.data,i=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 p(){return l("return")}return p}()}),(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"})]}),i.map(function(p){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:p.uploader_ckey}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:p.id}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"book"}),p.title]}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:p.author}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:p.report_description}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:p.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 l("delete_book",{bookid:p.id})}return v}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Unflag",icon:"flag",color:"caution",onClick:function(){function v(){return l("unflag_book",{bookid:p.id})}return v}()}),(0,e.createComponentVNode)(2,t.Button,{content:"View",onClick:function(){function v(){return l("view_book",{bookid:p.id})}return v}()})]})]},p.id)})]})})},C=function(c,m){var d=(0,a.useBackend)(m),l=d.act,s=d.data,i=s.ckey,p=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 ",i,(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 l("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"})]}),p.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 l("delete_book",{bookid:v.id})}return g}()}),(0,e.createComponentVNode)(2,t.Button,{content:"View",onClick:function(){function g(){return l("view_book",{bookid:v.id})}return g}()})]})]},v.id)})]})})}},26133:function(w,r,n){"use strict";r.__esModule=!0,r.ListInputModal=void 0;var e=n(96524),a=n(14299),t=n(15113),o=n(24674),f=n(17899),V=n(68100),y=n(45493),S=r.ListInputModal=function(){function u(c,m){var d=(0,f.useBackend)(m),l=d.act,s=d.data,i=s.items,p=i===void 0?[]:i,v=s.message,g=v===void 0?"":v,h=s.init_value,N=s.timeout,b=s.title,B=(0,f.useLocalState)(m,"selected",p.indexOf(h)),I=B[0],L=B[1],T=(0,f.useLocalState)(m,"searchBarVisible",p.length>10),A=T[0],x=T[1],E=(0,f.useLocalState)(m,"searchQuery",""),M=E[0],j=E[1],P=function(){function X(Y){var J=K.length-1;if(Y===V.KEY_DOWN)if(I===null||I===J){var le;L(0),(le=document.getElementById("0"))==null||le.scrollIntoView()}else{var ce;L(I+1),(ce=document.getElementById((I+1).toString()))==null||ce.scrollIntoView()}else if(Y===V.KEY_UP)if(I===null||I===0){var fe;L(J),(fe=document.getElementById(J.toString()))==null||fe.scrollIntoView()}else{var pe;L(I-1),(pe=document.getElementById((I-1).toString()))==null||pe.scrollIntoView()}}return X}(),R=function(){function X(Y){Y!==I&&L(Y)}return X}(),D=function(){function X(){x(!1),x(!0)}return X}(),F=function(){function X(Y){var J=String.fromCharCode(Y),le=p.find(function(pe){return pe==null?void 0:pe.toLowerCase().startsWith(J==null?void 0:J.toLowerCase())});if(le){var ce,fe=p.indexOf(le);L(fe),(ce=document.getElementById(fe.toString()))==null||ce.scrollIntoView()}}return X}(),W=function(){function X(Y){var J;Y!==M&&(j(Y),L(0),(J=document.getElementById("0"))==null||J.scrollIntoView())}return X}(),_=function(){function X(){x(!A),j("")}return X}(),K=p.filter(function(X){return X==null?void 0:X.toLowerCase().includes(M.toLowerCase())}),H=330+Math.ceil(g.length/3);return A||setTimeout(function(){var X;return(X=document.getElementById(I.toString()))==null?void 0:X.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(Y){var J=window.event?Y.which:Y.keyCode;(J===V.KEY_DOWN||J===V.KEY_UP)&&(Y.preventDefault(),P(J)),J===V.KEY_ENTER&&(Y.preventDefault(),l("submit",{entry:K[I]})),!A&&J>=V.KEY_A&&J<=V.KEY_Z&&(Y.preventDefault(),F(J)),J===V.KEY_ESCAPE&&(Y.preventDefault(),l("cancel"))}return X}(),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 X(){return _()}return X}()}),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:D,searchBarVisible:A,selected:I})}),(0,e.createComponentVNode)(2,o.Stack.Item,{m:0,children:A&&(0,e.createComponentVNode)(2,C,{filteredItems:K,onSearch:W,searchQuery:M,selected:I})}),(0,e.createComponentVNode)(2,o.Stack.Item,{mt:.5,children:(0,e.createComponentVNode)(2,t.InputButtons,{input:K[I]})})]})})})]})}return u}(),k=function(c,m){var d=(0,f.useBackend)(m),l=d.act,s=c.filteredItems,i=c.onClick,p=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(h,N){return(0,e.createComponentVNode)(2,o.Button,{fluid:!0,color:"transparent",id:N,onClick:function(){function b(){return i(N)}return b}(),onDblClick:function(){function b(B){B.preventDefault(),l("submit",{entry:s[g]})}return b}(),onKeyDown:function(){function b(B){var I=window.event?B.which:B.keyCode;v&&I>=V.KEY_A&&I<=V.KEY_Z&&(B.preventDefault(),p())}return b}(),selected:N===g,style:{animation:"none",transition:"none"},children:h.replace(/^\w/,function(b){return b.toUpperCase()})},N)})})},C=function(c,m){var d=(0,f.useBackend)(m),l=d.act,s=c.filteredItems,i=c.onSearch,p=c.searchQuery,v=c.selected;return(0,e.createComponentVNode)(2,o.Input,{width:"100%",autoFocus:!0,autoSelect:!0,onEnter:function(){function g(h){h.preventDefault(),l("submit",{entry:s[v]})}return g}(),onInput:function(){function g(h,N){return i(N)}return g}(),placeholder:"Search...",value:p})}},71963:function(w,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),f=function(I,L){var T=I.name,A=I.value,x=I.module_ref,E=(0,a.useBackend)(L),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}()})},V=function(I,L){var T=I.name,A=I.value,x=I.module_ref,E=(0,a.useBackend)(L),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,L){var T=I.name,A=I.value,x=I.module_ref,E=(0,a.useBackend)(L),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,L){var T=I.name,A=I.value,x=I.values,E=I.module_ref,M=(0,a.useBackend)(L),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,L){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,f,Object.assign({},I))),bool:(0,e.normalizeProps)((0,e.createComponentVNode)(2,V,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]]})},C=function(I,L){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})})]})},u=function(I,L){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,L){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,K=I.statusdna,H=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?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(X){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:X.name}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:X.type}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:[X.stage,"/",X.maxstage]}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:X.cure})]},X.name)})]})})],0)},m={rad_counter:C,health_analyzer:u,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"})]})},l=function(I,L){var T=(0,a.useBackend)(L),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,L){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"})})})]})})},i=function(I){switch(I){case 1:return"Use";case 2:return"Toggle";case 3:return"Select"}},p=function(I,L){var T=(0,a.useBackend)(L),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,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 A("activate")}return H}()}),children:K}),(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 H(){return A("lock")}return H}()}),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,L){var T=(0,a.useBackend)(L),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,L){var T=(0,a.useBackend)(L),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=m[P.id];return(0,e.createComponentVNode)(2,t.Stack.Item,{children:[!E&&(0,e.createComponentVNode)(2,l),(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"})})})},h=function(I,L){var T=(0,a.useBackend)(L),A=T.act,x=T.data,E=x.complexity_max,M=x.modules,j=(0,a.useLocalState)(L,"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:i(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"})})})})},N=r.MODsuitContent=function(){function B(I,L){var T=(0,a.useBackend)(L),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,d)||(0,e.createComponentVNode)(2,t.Stack,{vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,p)}),(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,h)})]})})}return B}(),b=r.MODsuit=function(){function B(I,L){var T=(0,a.useBackend)(L),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,N)})})})}return B}()},84274:function(w,r,n){"use strict";r.__esModule=!0,r.MagnetController=void 0;var e=n(96524),a=n(36121),t=n(17899),o=n(24674),f=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(C,u){var c=(0,t.useBackend)(u),m=c.act,d=c.data,l=d.autolink,s=d.code,i=d.frequency,p=d.linkedMagnets,v=d.magnetConfiguration,g=d.path,h=d.pathPosition,N=d.probing,b=d.powerState,B=d.speed;return(0,e.createComponentVNode)(2,f.Window,{width:400,height:600,children:[(0,e.createComponentVNode)(2,V.ComplexModal),(0,e.createComponentVNode)(2,f.Window.Content,{scrollable:!0,children:[!l&&(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 I(){return m("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)(i/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 m("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(L,T){return m("set_speed",{speed:T})}return I}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Path",children:[Array.from(y.entries()).map(function(I){var L=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 m("path_add",{code:L})}return E}()},L)}),(0,e.createComponentVNode)(2,o.Button.Confirm,{icon:"trash",confirmIcon:"trash",confirmContent:"",float:"right",tooltip:"Reset Path",tooltipPosition:"left",onClick:function(){function I(){return m("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,V.modalOpen)(u,"path_custom_input")}return I}()}),(0,e.createComponentVNode)(2,o.BlockQuote,{children:g.map(function(I,L){var T=y.get(I)||{icon:"question"},A=T.icon,x=T.tooltip;return(0,e.createComponentVNode)(2,o.Button.Confirm,{selected:L+2===h,icon:A,confirmIcon:A,confirmContent:"",tooltip:x,onClick:function(){function E(){return m("path_remove",{index:L+1,code:I})}return E}()},L)})})]})]})}),p.map(function(I,L){var T=I.uid,A=I.powerState,x=I.electricityLevel,E=I.magneticField;return(0,e.createComponentVNode)(2,o.Section,{title:"Magnet #"+(L+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 m("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 m("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 m("set_magnetic_field",{id:T,magneticField:P})}return M}()})})]})},T)})]})]})}return k}()},95752:function(w,r,n){"use strict";r.__esModule=!0,r.MechBayConsole=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.MechBayConsole=function(){function V(y,S){var k=(0,a.useBackend)(S),C=k.act,u=k.data,c=u.recharge_port,m=c&&c.mech,d=m&&m.cell,l=m&&m.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:l?"Mech status: "+l:"Mech status",textAlign:"center",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"sync",content:"Sync",onClick:function(){function s(){return C("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."})||!m&&(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No mech detected."})||(0,e.createComponentVNode)(2,t.ProgressBar,{value:m.health/m.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."})||!m&&(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(w,r,n){"use strict";r.__esModule=!0,r.MechaControlConsole=void 0;var e=n(96524),a=n(36121),t=n(17899),o=n(24674),f=n(45493),V=n(78234),y=r.MechaControlConsole=function(){function S(k,C){var u=(0,t.useBackend)(C),c=u.act,m=u.data,d=m.beacons,l=m.stored_data;return l.length?(0,e.createComponentVNode)(2,f.Window,{width:420,height:500,children:(0,e.createComponentVNode)(2,f.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:l.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,f.Window,{width:420,height:500,children:(0,e.createComponentVNode)(2,f.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 i(){return c("send_message",{mt:s.uid})}return i}(),children:"Message"}),(0,e.createComponentVNode)(2,o.Button,{icon:"eye",onClick:function(){function i(){return c("get_log",{mt:s.uid})}return i}(),children:"View Log"}),(0,e.createComponentVNode)(2,o.Button.Confirm,{color:"red",content:"Sabotage",icon:"bomb",onClick:function(){function i(){return c("shock",{mt:s.uid})}return i}()})],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(w,r,n){"use strict";r.__esModule=!0,r.MedicalRecords=void 0;var e=n(96524),a=n(78234),t=n(17899),o=n(24674),f=n(99665),V=n(45493),y=n(68159),S=n(27527),k=n(84537),C={Minor:"lightgray",Medium:"good",Harmful:"average","Dangerous!":"bad","BIOHAZARD THREAT!":"darkred"},u={"*Deceased*":"deceased","*SSD*":"ssd","Physically Unfit":"physically_unfit",Disabled:"disabled"},c=function(A,x){(0,f.modalOpen)(A,"edit",{field:x.edit,value:x.value})},m=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:C[E.severity],children:E.severity})]})})})},d=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,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,l):P===3?R=(0,e.createComponentVNode)(2,s):P===4?R=(0,e.createComponentVNode)(2,i):P===5?R=(0,e.createComponentVNode)(2,h):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,f.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,L),R]})})]})}return T}(),l=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],K=W[1],H=(0,t.useLocalState)(x,"sortOrder",!0),X=H[0],Y=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(le,ce){return F(ce)}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,le){var ce=X?1:-1;return J[_].localeCompare(le[_])*ce}).map(function(J){return(0,e.createComponentVNode)(2,o.Table.Row,{className:"MedicalRecords__listRow--"+u[J.p_stat],onClick:function(){function le(){return M("view_record",{view_record:J.ref})}return le}(),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}()})})]})})},i=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,p)})}),!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)},p=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","image-rendering":"pixelated"}}),(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,preserveWhitespace:!0,children:[(0,a.decodeHtmlEntities)(R.value),!!R.edit&&(0,e.createComponentVNode)(2,o.Button,{icon:"pen",ml:"0.5rem",mb:R.line_break?"1rem":"initial",onClick:function(){function 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,f.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,{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)})})})},h=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],K=W[1],H=(0,t.useLocalState)(x,"sortOrder2",!0),X=H[0],Y=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(le,ce){return F(ce)}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,le){var ce=X?1:-1;return J[_].localeCompare(le[_])*ce}).map(function(J){return(0,e.createComponentVNode)(2,o.Table.Row,{className:"MedicalRecords__listVirus--"+J.severity,onClick:function(){function le(){return M("vir",{vir:J.D})}return le}(),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:C[J.severity],children:J.severity})]},J.id)})]})})})})],4)},N=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;"})]})})},L=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,f.modalRegisterBodyOverride)("virus",m)},68211:function(w,r,n){"use strict";r.__esModule=!0,r.MerchVendor=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=function(C,u){var c=(0,a.useBackend)(u),m=c.act,d=c.data,l=C.product,s=C.productImage,i=C.productCategory,p=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:l.name}),(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{disabled:l.price>p,icon:"shopping-cart",content:l.price,textAlign:"left",onClick:function(){function v(){return m("purchase",{name:l.name,category:i})}return v}()})})]})},V=function(C,u){var c=(0,a.useBackend)(u),m=c.data,d=(0,a.useLocalState)(u,"tabIndex",1),l=d[0],s=m.products,i=m.imagelist,p=["apparel","toy","decoration"];return(0,e.createComponentVNode)(2,t.Table,{children:s[p[l]].map(function(v){return(0,e.createComponentVNode)(2,f,{product:v,productImage:i[v.path],productCategory:p[l]},v.name)})})},y=r.MerchVendor=function(){function k(C,u){var c=(0,a.useBackend)(u),m=c.act,d=c.data,l=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 i(){return m("change")}return i}()})],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.",l!==null&&(0,e.createComponentVNode)(2,t.Box,{mt:"0.5rem",children:["Your balance is ",(0,e.createVNode)(1,"b",null,[l||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(C,u){var c=(0,a.useBackend)(u),m=c.data,d=(0,a.useLocalState)(u,"tabIndex",1),l=d[0],s=d[1],i=m.login_state;return(0,e.createComponentVNode)(2,t.Tabs,{children:[(0,e.createComponentVNode)(2,t.Tabs.Tab,{icon:"dice",selected:l===1,onClick:function(){function p(){return s(1)}return p}(),children:"Toys"}),(0,e.createComponentVNode)(2,t.Tabs.Tab,{icon:"flag",selected:l===2,onClick:function(){function p(){return s(2)}return p}(),children:"Decorations"})]})}},14162:function(w,r,n){"use strict";r.__esModule=!0,r.MiningVendor=void 0;var e=n(96524),a=n(78234),t=n(17899),o=n(24674),f=n(45493),V=["title","items"];function y(d,l){if(d==null)return{};var s={},i=Object.keys(d),p,v;for(v=0;v=0)&&(s[p]=d[p]);return s}var S={Alphabetical:function(){function d(l,s){return l-s}return d}(),Availability:function(){function d(l,s){return-(l.affordable-s.affordable)}return d}(),Price:function(){function d(l,s){return l.price-s.price}return d}()},k=r.MiningVendor=function(){function d(l,s){return(0,e.createComponentVNode)(2,f.Window,{width:400,height:455,children:(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,C),(0,e.createComponentVNode)(2,c),(0,e.createComponentVNode)(2,u)]})})})}return d}(),C=function(l,s){var i=(0,t.useBackend)(s),p=i.act,v=i.data,g=v.has_id,h=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 ",h.name,".",(0,e.createVNode)(1,"br"),"You have ",h.points.toLocaleString("en-US")," points."]}),(0,e.createComponentVNode)(2,o.Button,{icon:"eject",content:"Eject ID",style:{float:"right"},onClick:function(){function N(){return p("logoff")}return N}()}),(0,e.createComponentVNode)(2,o.Box,{style:{clear:"both"}})],4):"Please insert an ID in order to make purchases."})},u=function(l,s){var i=(0,t.useBackend)(s),p=i.act,v=i.data,g=v.has_id,h=v.id,N=v.items,b=(0,t.useLocalState)(s,"search",""),B=b[0],I=b[1],L=(0,t.useLocalState)(s,"sort","Alphabetical"),T=L[0],A=L[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(N).map(function(D,F){var W=Object.entries(D[1]).filter(j).map(function(_){return _[1].affordable=g&&h.points>=_[1].price,_[1]}).sort(S[T]);if(W.length!==0)return E&&(W=W.reverse()),P=!0,(0,e.createComponentVNode)(2,m,{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(l,s){var i=(0,t.useLocalState)(s,"search",""),p=i[0],v=i[1],g=(0,t.useLocalState)(s,"sort",""),h=g[0],N=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 L(T,A){return v(A)}return L}()})}),(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 L(T){return N(T)}return L}()})}),(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 L(){return I(!B)}return L}()})})]})})},m=function(l,s){var i=(0,t.useBackend)(s),p=i.act,v=i.data,g=l.title,h=l.items,N=y(l,V);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Collapsible,Object.assign({open:!0,title:g},N,{children:h.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 "'+l+'"':"\u0412\u0441\u0435 \u043C\u043E\u0434\u0438\u0444\u0438\u043A\u0430\u0446\u0438\u0438 - "+m.length,children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,o.Stack.Item,{children:m.filter(function(p){return p.name&&(l.length>0?p.name.toLowerCase().includes(l.toLowerCase())||p.desc.toLowerCase().includes(l.toLowerCase())||p.author.toLowerCase().includes(l.toLowerCase()):!0)}).map(function(p){return(0,e.createComponentVNode)(2,o.Collapsible,{title:p.name,children:[(0,e.createComponentVNode)(2,o.Section,{title:"\u0410\u0432\u0442\u043E\u0440\u044B",children:p.author}),(0,e.createComponentVNode)(2,o.Section,{title:"\u041E\u043F\u0438\u0441\u0430\u043D\u0438\u0435",children:p.desc})]},p.name)})})})})})],4)}return y}()},68977:function(w,r,n){"use strict";r.__esModule=!0,r.NTRecruiter=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.NTRecruiter=function(){function V(y,S){var k=(0,a.useBackend)(S),C=k.act,u=k.data,c=u.gamestatus,m=u.cand_name,d=u.cand_birth,l=u.cand_age,s=u.cand_species,i=u.cand_planet,p=u.cand_job,v=u.cand_records,g=u.cand_curriculum,h=u.total_curriculums,N=u.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 C("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 C("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 C("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,h,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,m,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,l,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,i,0)}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Requested Job",color:"silver",children:(0,e.createVNode)(1,"b",null,p,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 C("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 C("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,"/",h]})]})}),(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 C("back_to_menu")}return b}()})})]})})})}return V}()},17067:function(w,r,n){"use strict";r.__esModule=!0,r.Newscaster=void 0;var e=n(96524),a=n(28234),t=n(17899),o=n(24674),f=n(38424),V=n(45493),y=n(99665),S=n(84537),k=["icon","iconSpin","selected","security","onClick","title","children"],C=["name"];function u(I,L){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,m=["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"}},l=r.Newscaster=function(){function I(L,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,K=(0,t.useLocalState)(T,"menuOpen",!1),H=K[0],X=K[1],Y=(0,t.useLocalState)(T,"viewingPhoto",""),J=Y[0],le=Y[1],ce=(0,t.useLocalState)(T,"censorMode",!1),fe=ce[0],pe=ce[1],he;D===0||D===2?he=(0,e.createComponentVNode)(2,i):D===1&&(he=(0,e.createComponentVNode)(2,p));var te=F.reduce(function(Q,ae){return Q+ae.unread},0);return(0,e.createComponentVNode)(2,V.Window,{theme:M&&"security",width:800,height:600,children:[J?(0,e.createComponentVNode)(2,h):(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 Q(){return X(!H)}return Q}()}),(0,e.createComponentVNode)(2,s,{icon:"newspaper",title:"Headlines",selected:D===0,onClick:function(){function Q(){return x("headlines")}return Q}(),children:te>0&&(0,e.createComponentVNode)(2,o.Box,{className:"Newscaster__menuButton--unread",children:te>=10?"9+":te})}),(0,e.createComponentVNode)(2,s,{icon:"briefcase",title:"Job Openings",selected:D===1,onClick:function(){function Q(){return x("jobs")}return Q}()}),(0,e.createComponentVNode)(2,o.Divider)]}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:F.map(function(Q){return(0,e.createComponentVNode)(2,s,{icon:Q.icon,title:Q.name,selected:D===2&&F[_-1]===Q,onClick:function(){function ae(){return x("channel",{uid:Q.uid})}return ae}(),children:Q.unread>0&&(0,e.createComponentVNode)(2,o.Box,{className:"Newscaster__menuButton--unread",children:Q.unread>=10?"9+":Q.unread})},Q)})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:[(0,e.createComponentVNode)(2,o.Divider),(!!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 Q(){return(0,y.modalOpen)(T,"wanted_notice")}return Q}()}),(0,e.createComponentVNode)(2,s,{security:!0,icon:fe?"minus-square":"minus-square-o",title:"Censor Mode: "+(fe?"On":"Off"),mb:"0.5rem",onClick:function(){function Q(){return pe(!fe)}return Q}()}),(0,e.createComponentVNode)(2,o.Divider)],4),(0,e.createComponentVNode)(2,s,{icon:"pen-alt",title:"New Story",mb:"0.5rem",onClick:function(){function Q(){return(0,y.modalOpen)(T,"create_story")}return Q}()}),(0,e.createComponentVNode)(2,s,{icon:"plus-circle",title:"New Channel",onClick:function(){function Q(){return(0,y.modalOpen)(T,"create_channel")}return Q}()}),(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 Q(){return x("print_newspaper")}return Q}()}),(0,e.createComponentVNode)(2,s,{icon:P?"volume-mute":"volume-up",title:"Mute: "+(P?"On":"Off"),onClick:function(){function Q(){return x("toggle_mute")}return Q}()})]})]})}),(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,width:"100%",children:[(0,e.createComponentVNode)(2,S.TemporaryNotice),he]})]})})]})}return I}(),s=function(L,T){var A=(0,t.useBackend)(T),x=A.act,E=L.icon,M=E===void 0?"":E,j=L.iconSpin,P=L.selected,R=P===void 0?!1:P,D=L.security,F=D===void 0?!1:D,W=L.onClick,_=L.title,K=L.children,H=u(L,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:j,size:"2"}),(0,e.createComponentVNode)(2,o.Box,{className:"Newscaster__menuButton--title",children:_}),K]})))},i=function(L,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",[]),K=_[0],H=_[1],X=(0,t.useLocalState)(T,"censorMode",!1),Y=X[0],J=X[1],le=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:le?le.icon:"newspaper",mr:"0.5rem"}),le?le.name:"Headlines"],0),children:F.length>0?F.slice().reverse().map(function(ce){return!K.includes(ce.uid)&&ce.body.length+3>c?Object.assign({},ce,{body_short:ce.body.substr(0,c-4)+"..."}):ce}).map(function(ce,fe){return(0,e.createComponentVNode)(2,v,{story:ce},fe)}):(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."]})}),!!le&&(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)([Y&&(0,e.createComponentVNode)(2,o.Button,{disabled:!!le.admin&&!j,selected:le.censored,icon:le.censored?"comment-slash":"comment",content:le.censored?"Uncensor Channel":"Censor Channel",mr:"0.5rem",onClick:function(){function ce(){return x("censor_channel",{uid:le.uid})}return ce}()}),(0,e.createComponentVNode)(2,o.Button,{disabled:!R,icon:"cog",content:"Manage",onClick:function(){function ce(){return(0,y.modalOpen)(T,"manage_channel",{uid:le.uid})}return ce}()})],0),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Description",children:le.description||"N/A"}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Owner",children:le.author||"N/A"}),!!j&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Ckey",children:le.author_ckey}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Public",children:le.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(ce,fe){return ce+fe.view_count},0).toLocaleString()]})]})})]})},p=function(L,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?m.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(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(L,T){var A=(0,t.useBackend)(T),x=A.act,E=A.data,M=L.story,j=L.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),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 X(){return x("censor_story",{uid:M.uid})}return X}()})}),(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)(" |\xA0")],0),(0,e.createComponentVNode)(2,o.Icon,{name:"clock"})," ",(0,f.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,Y){return(0,e.createComponentVNode)(2,o.Box,{children:X||(0,e.createVNode)(1,"br")},Y)}),M.body_short&&(0,e.createComponentVNode)(2,o.Button,{content:"Read more..",mt:"0.5rem",onClick:function(){function X(){return W([].concat(F,[M.uid]))}return X}()}),(0,e.createComponentVNode)(2,o.Box,{clear:"right"})],0)})})},g=function(L,T){var A=L.name,x=u(L,C),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)))},h=function(L,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}()})]})},N=function(L,T){var A=(0,t.useBackend)(T),x=A.act,E=A.data,M=!!L.args.uid&&E.channels.filter(function(oe){return oe.uid===L.args.uid}).pop();if(L.id==="manage_channel"&&!M){(0,y.modalClose)(T);return}var j=L.id==="manage_channel",P=!!L.args.is_admin,R=L.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)||""),K=_[0],H=_[1],X=(0,t.useLocalState)(T,"description",(M==null?void 0:M.description)||""),Y=X[0],J=X[1],le=(0,t.useLocalState)(T,"icon",(M==null?void 0:M.icon)||"newspaper"),ce=le[0],fe=le[1],pe=(0,t.useLocalState)(T,"isPublic",j?!!(M!=null&&M.public):!1),he=pe[0],te=pe[1],Q=(0,t.useLocalState)(T,"adminLocked",(M==null?void 0:M.admin)===1||!1),ae=Q[0],ee=Q[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 oe(ue,re){return W(re)}return oe}()})}),(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 oe(ue,re){return H(re)}return oe}()})}),(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:Y,onInput:function(){function oe(ue,re){return J(re)}return oe}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Icon",children:[(0,e.createComponentVNode)(2,o.Input,{disabled:!P,value:ce,width:"35%",mr:"0.5rem",onInput:function(){function oe(ue,re){return fe(re)}return oe}()}),(0,e.createComponentVNode)(2,o.Icon,{name:ce,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:he,icon:he?"toggle-on":"toggle-off",content:he?"Yes":"No",onClick:function(){function oe(){return te(!he)}return oe}()})}),P&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"CentComm Lock",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Button,{selected:ae,icon:ae?"lock":"lock-open",content:ae?"On":"Off",tooltip:"Locking this channel will make it editable by nobody but CentComm officers.",tooltipPosition:"top",onClick:function(){function oe(){return ee(!ae)}return oe}()})})]})}),(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 oe(){(0,y.modalAnswer)(T,L.id,"",{author:F,name:K.substr(0,49),description:Y.substr(0,128),icon:ce,public:he?1:0,admin_locked:ae?1:0})}return oe}()})]})},b=function(L,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=!!L.args.is_admin,F=L.args.scanned_user,W=j.slice().sort(function(oe,ue){if(R<0)return 0;var re=j[R-1];if(re.uid===oe.uid)return-1;if(re.uid===ue.uid)return 1}).filter(function(oe){return D||!oe.frozen&&(oe.author===F||!!oe.public)}),_=(0,t.useLocalState)(T,"author",F||"Unknown"),K=_[0],H=_[1],X=(0,t.useLocalState)(T,"channel",W.length>0?W[0].name:""),Y=X[0],J=X[1],le=(0,t.useLocalState)(T,"title",""),ce=le[0],fe=le[1],pe=(0,t.useLocalState)(T,"body",""),he=pe[0],te=pe[1],Q=(0,t.useLocalState)(T,"adminLocked",!1),ae=Q[0],ee=Q[1];return(0,e.createComponentVNode)(2,o.Section,{m:"-1rem",pb:"1.5rem",title:"Create New Story",children:[(0,e.createComponentVNode)(2,o.Box,{mx:"0.5rem",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Author",children:(0,e.createComponentVNode)(2,o.Input,{disabled:!D,width:"100%",value:K,onInput:function(){function oe(ue,re){return H(re)}return oe}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Channel",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Dropdown,{selected:Y,options:W.map(function(oe){return oe.name}),mb:"0",width:"100%",onSelected:function(){function oe(ue){return J(ue)}return oe}()})}),(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:ce,onInput:function(){function oe(ue,re){return fe(re)}return oe}()})}),(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:he,onInput:function(){function oe(ue,re){return te(re)}return oe}()})}),(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 oe(){return x(M?"eject_photo":"attach_photo")}return oe}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Preview",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Section,{noTopPadding:!0,title:ce,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"}),he.split("\n").map(function(oe,ue){return(0,e.createComponentVNode)(2,o.Box,{children:oe||(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:ae,icon:ae?"lock":"lock-open",content:ae?"On":"Off",tooltip:"Locking this story will make it censorable by nobody but CentComm officers.",tooltipPosition:"top",onClick:function(){function oe(){return ee(!ae)}return oe}()})})]})}),(0,e.createComponentVNode)(2,o.Button.Confirm,{disabled:K.trim().length===0||Y.trim().length===0||ce.trim().length===0||he.trim().length===0,icon:"check",color:"good",content:"Submit",position:"absolute",right:"1rem",bottom:"-0.75rem",onClick:function(){function oe(){(0,y.modalAnswer)(T,"create_story","",{author:K,channel:Y,title:ce.substr(0,127),body:he.substr(0,1023),admin_locked:ae?1:0})}return oe}()})]})},B=function(L,T){var A=(0,t.useBackend)(T),x=A.act,E=A.data,M=E.photo,j=E.wanted,P=!!L.args.is_admin,R=L.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))||""),K=_[0],H=_[1],X=(0,t.useLocalState)(T,"description",(j==null?void 0:j.body)||""),Y=X[0],J=X[1],le=(0,t.useLocalState)(T,"adminLocked",(j==null?void 0:j.admin_locked)===1||!1),ce=le[0],fe=le[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(he,te){return W(te)}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(he,te){return H(te)}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:Y,maxLength:"512",rows:"4",onInput:function(){function pe(he,te){return J(te)}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:ce,icon:ce?"lock":"lock-open",content:ce?"On":"Off",tooltip:"Locking this wanted notice will make it editable by nobody but CentComm officers.",tooltipPosition:"top",onClick:function(){function pe(){return fe(!ce)}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||K.trim().length===0||Y.trim().length===0,icon:"check",color:"good",content:"Submit",position:"absolute",right:"1rem",bottom:"-0.75rem",onClick:function(){function pe(){(0,y.modalAnswer)(T,L.id,"",{author:F,name:K.substr(0,127),description:Y.substr(0,511),admin_locked:ce?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)},26148:function(w,r,n){"use strict";r.__esModule=!0,r.Noticeboard=void 0;var e=n(96524),a=n(78234),t=n(17899),o=n(24674),f=n(45493),V=r.Noticeboard=function(){function y(S,k){var C=(0,t.useBackend)(k),u=C.act,c=C.data,m=c.papers;return(0,e.createComponentVNode)(2,f.Window,{width:600,height:300,theme:"noticeboard",children:(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:m.map(function(d){return(0,e.createComponentVNode)(2,o.Stack.Item,{align:"center",width:"22.45%",height:"85%",onClick:function(){function l(){return u("interact",{paper:d.ref})}return l}(),onContextMenu:function(){function l(s){s.preventDefault(),u("showFull",{paper:d.ref})}return l}(),children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,fontSize:.75,title:d.name,children:(0,a.decodeHtmlEntities)(d.contents)})},d.ref)})})})})}return y}()},46940:function(w,r,n){"use strict";r.__esModule=!0,r.NuclearBomb=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.NuclearBomb=function(){function V(y,S){var k=(0,a.useBackend)(S),C=k.act,u=k.data;return u.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:u.authdisk?"eject":"id-card",selected:u.authdisk,content:u.diskname?u.diskname:"-----",tooltip:u.authdisk?"Eject Disk":"Insert Disk",onClick:function(){function c(){return C("auth")}return c}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Auth Code",children:(0,e.createComponentVNode)(2,t.Button,{icon:"key",disabled:!u.authdisk,selected:u.authcode,content:u.codemsg,onClick:function(){function c(){return C("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:u.anchored?"check":"times",selected:u.anchored,disabled:!u.authdisk,content:u.anchored?"YES":"NO",onClick:function(){function c(){return C("toggle_anchor")}return c}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Time Left",children:(0,e.createComponentVNode)(2,t.Button,{icon:"stopwatch",content:u.time,disabled:!u.authfull,tooltip:"Set Timer",onClick:function(){function c(){return C("set_time")}return c}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Safety",children:(0,e.createComponentVNode)(2,t.Button,{icon:u.safety?"check":"times",selected:u.safety,disabled:!u.authfull,content:u.safety?"ON":"OFF",tooltip:u.safety?"Disable Safety":"Enable Safety",onClick:function(){function c(){return C("toggle_safety")}return c}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Arm/Disarm",children:(0,e.createComponentVNode)(2,t.Button,{icon:(u.timer,"bomb"),disabled:u.safety||!u.authfull,color:"red",content:u.timer?"DISARM THE NUKE":"ARM THE NUKE",onClick:function(){function c(){return C("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 C("deploy")}return c}()})})})})}return V}()},35478:function(w,r,n){"use strict";r.__esModule=!0,r.NumberInputModal=void 0;var e=n(96524),a=n(14299),t=n(15113),o=n(68100),f=n(17899),V=n(24674),y=n(45493),S=r.NumberInputModal=function(){function C(u,c){var m=(0,f.useBackend)(c),d=m.act,l=m.data,s=l.init_value,i=l.large_buttons,p=l.message,v=p===void 0?"":p,g=l.timeout,h=l.title,N=(0,f.useLocalState)(c,"input",s),b=N[0],B=N[1],I=function(){function A(x){x!==b&&B(x)}return A}(),L=function(){function A(x){x!==b&&B(x)}return A}(),T=140+Math.max(Math.ceil(v.length/3),v.length>0&&i?5:0);return(0,e.createComponentVNode)(2,y.Window,{title:h,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&&d("submit",{entry:b}),E===o.KEY_ESCAPE&&d("cancel")}return A}(),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:L,onChange:I})}),(0,e.createComponentVNode)(2,V.Stack.Item,{children:(0,e.createComponentVNode)(2,t.InputButtons,{input:b})})]})})})]})}return C}(),k=function(u,c){var m=(0,f.useBackend)(c),d=m.act,l=m.data,s=l.min_value,i=l.max_value,p=l.init_value,v=l.round_value,g=u.input,h=u.onClick,N=u.onChange,b=Math.round(g!==s?Math.max(g/2,s):i/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 I(){return h(s)}return I}(),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:i,onChange:function(){function I(L,T){return N(T)}return I}(),onEnter:function(){function I(L,T){return d("submit",{entry:T})}return I}(),value:g})}),(0,e.createComponentVNode)(2,V.Stack.Item,{children:(0,e.createComponentVNode)(2,V.Button,{disabled:g===i,icon:"angle-double-right",onClick:function(){function I(){return h(i)}return I}(),tooltip:g===i?"Max":"Max ("+i+")"})}),(0,e.createComponentVNode)(2,V.Stack.Item,{children:(0,e.createComponentVNode)(2,V.Button,{disabled:B,icon:"divide",onClick:function(){function I(){return h(b)}return I}(),tooltip:B?"Split":"Split ("+b+")"})}),(0,e.createComponentVNode)(2,V.Stack.Item,{children:(0,e.createComponentVNode)(2,V.Button,{disabled:g===p,icon:"redo",onClick:function(){function I(){return h(p)}return I}(),tooltip:p?"Reset ("+p+")":"Reset"})})]})}},98476:function(w,r,n){"use strict";r.__esModule=!0,r.OperatingComputer=void 0;var e=n(96524),a=n(36121),t=n(17899),o=n(45493),f=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"],C=r.OperatingComputer=function(){function d(l,s){var i=(0,t.useBackend)(s),p=i.act,v=i.data,g=v.hasOccupant,h=v.choice,N;return h?N=(0,e.createComponentVNode)(2,m):N=g?(0,e.createComponentVNode)(2,u):(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,f.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Tabs,{children:[(0,e.createComponentVNode)(2,f.Tabs.Tab,{selected:!h,icon:"user",onClick:function(){function b(){return p("choiceOff")}return b}(),children:"Patient"}),(0,e.createComponentVNode)(2,f.Tabs.Tab,{selected:!!h,icon:"cog",onClick:function(){function b(){return p("choiceOn")}return b}(),children:"Options"})]})}),(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,f.Section,{fill:!0,scrollable:!0,children:N})})]})})})}return d}(),u=function(l,s){var i=(0,t.useBackend)(s),p=i.data,v=p.occupant;return(0,e.createComponentVNode)(2,f.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,f.Section,{fill:!0,title:"Patient",children:(0,e.createComponentVNode)(2,f.LabeledList,{children:[(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Name",children:v.name}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Status",color:V[v.stat][0],children:V[v.stat][1]}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Health",children:(0,e.createComponentVNode)(2,f.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,h){return(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:g[0]+" Damage",children:(0,e.createComponentVNode)(2,f.ProgressBar,{min:"0",max:"100",value:v[g[1]]/100,ranges:S,children:(0,a.round)(v[g[1]])},h)},h)}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Temperature",children:(0,e.createComponentVNode)(2,f.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,f.LabeledList.Item,{label:"Blood Level",children:(0,e.createComponentVNode)(2,f.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,f.LabeledList.Item,{label:"Pulse",children:[v.pulse," BPM"]})],4)]})})}),(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Section,{title:"Current Procedure",level:"2",children:v.inSurgery?(0,e.createComponentVNode)(2,f.LabeledList,{children:[(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Procedure",children:v.surgeryName}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Next Step",children:v.stepName})]}):(0,e.createComponentVNode)(2,f.Box,{color:"label",children:"No procedure ongoing."})})})]})},c=function(){return(0,e.createComponentVNode)(2,f.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,align:"center",textAlign:"center",color:"label",children:[(0,e.createComponentVNode)(2,f.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,e.createVNode)(1,"br"),"No patient detected."]})})},m=function(l,s){var i=(0,t.useBackend)(s),p=i.act,v=i.data,g=v.verbose,h=v.health,N=v.healthAlarm,b=v.oxy,B=v.oxyAlarm,I=v.crit;return(0,e.createComponentVNode)(2,f.LabeledList,{children:[(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Loudspeaker",children:(0,e.createComponentVNode)(2,f.Button,{selected:g,icon:g?"toggle-on":"toggle-off",content:g?"On":"Off",onClick:function(){function L(){return p(g?"verboseOff":"verboseOn")}return L}()})}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Health Announcer",children:(0,e.createComponentVNode)(2,f.Button,{selected:h,icon:h?"toggle-on":"toggle-off",content:h?"On":"Off",onClick:function(){function L(){return p(h?"healthOff":"healthOn")}return L}()})}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Health Announcer Threshold",children:(0,e.createComponentVNode)(2,f.Knob,{bipolar:!0,minValue:-100,maxValue:100,value:N,stepPixelSize:5,ml:"0",onChange:function(){function L(T,A){return p("health_adj",{new:A})}return L}()})}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Oxygen Alarm",children:(0,e.createComponentVNode)(2,f.Button,{selected:b,icon:b?"toggle-on":"toggle-off",content:b?"On":"Off",onClick:function(){function L(){return p(b?"oxyOff":"oxyOn")}return L}()})}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Oxygen Alarm Threshold",children:(0,e.createComponentVNode)(2,f.Knob,{bipolar:!0,minValue:-100,maxValue:100,value:B,stepPixelSize:5,ml:"0",onChange:function(){function L(T,A){return p("oxy_adj",{new:A})}return L}()})}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Critical Alert",children:(0,e.createComponentVNode)(2,f.Button,{selected:I,icon:I?"toggle-on":"toggle-off",content:I?"On":"Off",onClick:function(){function L(){return p(I?"critOff":"critOn")}return L}()})})]})}},98702:function(w,r,n){"use strict";r.__esModule=!0,r.Orbit=void 0;var e=n(96524),a=n(78234),t=n(17899),o=n(24674),f=n(45493),V=n(28234);function y(i,p){var v=typeof Symbol!="undefined"&&i[Symbol.iterator]||i["@@iterator"];if(v)return(v=v.call(i)).next.bind(v);if(Array.isArray(i)||(v=S(i))||p&&i&&typeof i.length=="number"){v&&(i=v);var g=0;return function(){return g>=i.length?{done:!0}:{done:!1,value:i[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(i,p){if(i){if(typeof i=="string")return k(i,p);var v=Object.prototype.toString.call(i).slice(8,-1);if(v==="Object"&&i.constructor&&(v=i.constructor.name),v==="Map"||v==="Set")return Array.from(i);if(v==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(v))return k(i,p)}}function k(i,p){(p==null||p>i.length)&&(p=i.length);for(var v=0,g=new Array(p);vv},m=function(p,v){var g=p.name,h=v.name;if(!g||!h)return 0;var N=g.match(C),b=h.match(C);if(N&&b&&g.replace(C,"")===h.replace(C,"")){var B=parseInt(N[1],10),I=parseInt(b[1],10);return B-I}return c(g,h)},d=function(p,v){var g=p.searchText,h=p.source,N=p.title,b=p.color,B=p.sorted,I=h.filter(u(g));return B&&I.sort(m),h.length>0&&(0,e.createComponentVNode)(2,o.Section,{title:N+" - ("+h.length+")",children:I.map(function(L){return(0,e.createComponentVNode)(2,l,{thing:L,color:b},L.name)})})},l=function(p,v){var g=(0,t.useBackend)(v),h=g.act,N=p.color,b=p.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 h("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 i(p,v){for(var g=(0,t.useBackend)(v),h=g.act,N=g.data,b=N.alive,B=N.antagonists,I=N.highlights,L=N.response_teams,T=N.auto_observe,A=N.dead,x=N.ssd,E=N.ghosts,M=N.misc,j=N.npcs,P=(0,t.useLocalState)(v,"searchText",""),R=P[0],D=P[1],F={},W=y(B),_;!(_=W()).done;){var K=_.value;F[K.antag]===void 0&&(F[K.antag]=[]),F[K.antag].push(K)}var H=Object.entries(F);H.sort(function(Y,J){return c(Y[0],J[0])});var X=function(){function Y(J){for(var le=0,ce=[H.map(function(he){var te=he[0],Q=he[1];return Q}),I,b,E,x,A,j,M];le0&&(0,e.createComponentVNode)(2,o.Section,{title:"Antagonists",children:H.map(function(Y){var J=Y[0],le=Y[1];return(0,e.createComponentVNode)(2,o.Section,{title:J+" - ("+le.length+")",level:2,children:le.filter(u(R)).sort(m).map(function(ce){return(0,e.createComponentVNode)(2,l,{color:"bad",thing:ce},ce.name)})},J)})}),I.length>0&&(0,e.createComponentVNode)(2,d,{title:"Highlights",source:I,searchText:R,color:"teal"}),(0,e.createComponentVNode)(2,d,{title:"Response Teams",source:L,searchText:R,color:"purple"}),(0,e.createComponentVNode)(2,d,{title:"Alive",source:b,searchText:R,color:"good"}),(0,e.createComponentVNode)(2,d,{title:"Ghosts",source:E,searchText:R,color:"grey"}),(0,e.createComponentVNode)(2,d,{title:"SSD",source:x,searchText:R,color:"grey"}),(0,e.createComponentVNode)(2,d,{title:"Dead",source:A,searchText:R,sorted:!1}),(0,e.createComponentVNode)(2,d,{title:"NPCs",source:j,searchText:R,sorted:!1}),(0,e.createComponentVNode)(2,d,{title:"Misc",source:M,searchText:R,sorted:!1})]})})}return i}()},74015:function(w,r,n){"use strict";r.__esModule=!0,r.OreRedemption=void 0;var e=n(96524),a=n(28234),t=n(17899),o=n(24674),f=n(45493),V=n(81856);function y(i){if(i==null)throw new TypeError("Cannot destructure "+i)}var S=(0,V.createLogger)("OreRedemption"),k=function(p){return p.toLocaleString("en-US")+" pts"},C=r.OreRedemption=function(){function i(p,v){return(0,e.createComponentVNode)(2,f.Window,{width:490,height:750,children:(0,e.createComponentVNode)(2,f.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,u,{height:"100%"})}),(0,e.createComponentVNode)(2,c),(0,e.createComponentVNode)(2,m)]})})})}return i}(),u=function(p,v){var g=(0,t.useBackend)(v),h=g.act,N=g.data,b=N.id,B=N.points,I=N.disk,L=Object.assign({},(y(p),p));return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Section,Object.assign({},L,{children:[(0,e.createComponentVNode)(2,o.Box,{color:"average",textAlign:"center",children:[(0,e.createComponentVNode)(2,o.Icon,{name:"exclamation-triangle",mr:"0.5rem"}),"This machine only accepts ore. Gibtonite is not accepted."]}),(0,e.createComponentVNode)(2,o.Divider),(0,e.createComponentVNode)(2,o.LabeledList,{children:(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"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 h("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 h("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(p,v){var g=(0,t.useBackend)(v),h=g.act,N=g.data,b=N.sheets,B=Object.assign({},(y(p),p));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(I){return(0,e.createComponentVNode)(2,l,{ore:I},I.id)})]})))})},m=function(p,v){var g=(0,t.useBackend)(v),h=g.act,N=g.data,b=N.alloys,B=Object.assign({},(y(p),p));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(I){return(0,e.createComponentVNode)(2,s,{ore:I},I.id)})]})))})},d=function(p,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:p.title}),(g=p.columns)==null?void 0:g.map(function(h){return(0,e.createComponentVNode)(2,o.Stack.Item,{basis:h[1],textAlign:"center",color:"label",bold:!0,children:h[0]},h)})]})})},l=function(p,v){var g=(0,t.useBackend)(v),h=g.act,N=p.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,I){return h(N.value?"sheet":"alloy",{id:N.id,amount:I})}return b}()})})]})})},s=function(p,v){var g=(0,t.useBackend)(v),h=g.act,N=p.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,I){return h(N.value?"sheet":"alloy",{id:N.id,amount:I})}return b}()})})]})})}},48824:function(w,r,n){"use strict";r.__esModule=!0,r.PAI=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=n(91807),V=n(70752),y=function(C){var u;try{u=V("./"+C+".js")}catch(m){if(m.code==="MODULE_NOT_FOUND")return(0,f.routingError)("notFound",C);throw m}var c=u[C];return c||(0,f.routingError)("missingExport",C)},S=r.PAI=function(){function k(C,u){var c=(0,a.useBackend)(u),m=c.act,d=c.data,l=d.app_template,s=d.app_icon,i=d.app_title,p=y(l);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}),i,l!=="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 m("Back")}return v}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Home",icon:"arrow-up",onClick:function(){function v(){return m("MASTER_back")}return v}()})],4)]}),children:(0,e.createComponentVNode)(2,p)})})})})})}return k}()},41565:function(w,r,n){"use strict";r.__esModule=!0,r.PDA=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=n(91807),V=n(59395),y=function(c){var m;try{m=V("./"+c+".js")}catch(l){if(l.code==="MODULE_NOT_FOUND")return(0,f.routingError)("notFound",c);throw l}var d=m[c];return d||(0,f.routingError)("missingExport",c)},S=r.PDA=function(){function u(c,m){var d=(0,a.useBackend)(m),l=d.act,s=d.data,i=s.app,p=s.owner;if(!p)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(i.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:i.icon,mr:1}),i.name]}),children:(0,e.createComponentVNode)(2,v)})}),(0,e.createComponentVNode)(2,t.Stack.Item,{mt:7.5,children:(0,e.createComponentVNode)(2,C)})]})})})}return u}(),k=function(c,m){var d=(0,a.useBackend)(m),l=d.act,s=d.data,i=s.idInserted,p=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 h(){return l("Authenticate")}return h}(),content:i?p:"No ID Inserted"})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"sd-card",color:"transparent",onClick:function(){function h(){return l("Eject")}return h}(),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})]})},C=function(c,m){var d=(0,a.useBackend)(m),l=d.act,s=d.data,i=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:[!!i.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:i.has_back?"white":"disabled",icon:"arrow-alt-circle-left-o",onClick:function(){function p(){return l("Back")}return p}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{basis:i.has_back?"33%":"100%",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,className:"PDA__footer__button",color:"transparent",iconColor:i.is_home?"disabled":"white",icon:"home",onClick:function(){function p(){l("Home")}return p}()})})]})})}},78704:function(w,r,n){"use strict";r.__esModule=!0,r.Pacman=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=n(92986),V=r.Pacman=function(){function y(S,k){var C=(0,a.useBackend)(k),u=C.act,c=C.data,m=c.active,d=c.anchored,l=c.broken,s=c.emagged,i=c.fuel_type,p=c.fuel_usage,v=c.fuel_stored,g=c.fuel_cap,h=c.is_ai,N=c.tmp_current,b=c.tmp_max,B=c.tmp_overheat,I=c.output_max,L=c.power_gen,T=c.output_set,A=c.has_fuel,x=v/g,E=N/b,M=T*L,j=Math.round(v/p),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:[(l||!d)&&(0,e.createComponentVNode)(2,t.Section,{title:"Status",children:[!!l&&(0,e.createComponentVNode)(2,t.Box,{color:"orange",children:"The generator is malfunctioning!"}),!l&&!d&&(0,e.createComponentVNode)(2,t.Box,{color:"orange",children:"The generator needs to be anchored to the floor with a wrench."})]}),!l&&!!d&&(0,e.createVNode)(1,"div",null,[(0,e.createComponentVNode)(2,t.Section,{title:"Status",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:m?"power-off":"times",content:m?"On":"Off",tooltip:"Toggles the generator on/off. Requires fuel.",tooltipPosition:"left",disabled:!A,selected:m,onClick:function(){function D(){return u("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 u("change_power",{change_power:W})}return D}()}),"(",(0,f.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:m||h||!A,onClick:function(){function D(){return u("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:i}),(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:[p/1e3," dm\xB3/s"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Fuel depletion",children:[!!A&&(p?R:"N/A"),!A&&(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Out of fuel"})]})]})})]})})],4)]})})}return y}()},6887:function(w,r,n){"use strict";r.__esModule=!0,r.PanDEMIC=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.PanDEMIC=function(){function d(l,s){var i=(0,a.useBackend)(s),p=i.data,v=p.beakerLoaded,g=p.beakerContainsBlood,h=p.beakerContainsVirus,N=p.resistances,b=N===void 0?[]:N,B;return v?g?g&&!h&&(B=(0,e.createFragment)([(0,e.createTextVNode)("No disease detected in provided blood sample.")],4)):B=(0,e.createFragment)([(0,e.createTextVNode)("No blood sample found in the loaded container.")],4):B=(0,e.createFragment)([(0,e.createTextVNode)("No container loaded.")],4),(0,e.createComponentVNode)(2,o.Window,{width:575,height:510,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[B&&(0,e.createComponentVNode)(2,t.Section,{title:"Container Information",buttons:(0,e.createComponentVNode)(2,V),children:[(0,e.createComponentVNode)(2,t.NoticeBox,{children:B}),(b==null?void 0:b.length)>0&&(0,e.createComponentVNode)(2,m)]}),!!h&&(0,e.createComponentVNode)(2,k)]})})})}return d}(),V=function(l,s){var i=(0,a.useBackend)(s),p=i.act,v=i.data,g=v.beakerLoaded;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{icon:"eject",content:"Eject",disabled:!g,onClick:function(){function h(){return p("eject_beaker")}return h}()}),(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"trash-alt",confirmIcon:"eraser",content:"Destroy",confirmContent:"Destroy",disabled:!g,onClick:function(){function h(){return p("destroy_eject_beaker")}return h}()})],4)},y=function(l,s){var i=(0,a.useBackend)(s),p=i.act,v=i.data,g=v.beakerContainsVirus,h=l.strain,N=h.commonName,b=h.description,B=h.diseaseAgent,I=h.bloodDNA,L=h.bloodType,T=h.possibleTreatments,A=h.transmissionRoute,x=h.isAdvanced,E=(0,e.createFragment)([(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Blood DNA",children:I?(0,e.createVNode)(1,"span",null,I,0,{style:{"font-family":"'Courier New', monospace"}}):"Undetectable"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Blood Type",children:(0,e.createVNode)(1,"div",null,null,1,{dangerouslySetInnerHTML:{__html:L!=null?L:"Undetectable"}})})],4);if(!g)return(0,e.createComponentVNode)(2,t.LabeledList,{children:E});var M;return x&&(N!=null&&N!=="Unknown"?M=(0,e.createComponentVNode)(2,t.Button,{icon:"print",content:"Print Release Forms",onClick:function(){function j(){return p("print_release_forms",{strain_index:l.strainIndex})}return j}(),style:{"margin-left":"auto"}}):M=(0,e.createComponentVNode)(2,t.Button,{icon:"pen",content:"Name Disease",onClick:function(){function j(){return p("name_strain",{strain_index:l.strainIndex})}return j}(),style:{"margin-left":"auto"}})),(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Common Name",className:"common-name-label",children:(0,e.createComponentVNode)(2,t.Stack,{horizontal:!0,align:"center",children:[N!=null?N:"Unknown",M]})}),b&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Description",children:b}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Disease Agent",children:B}),E,(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Spread Vector",children:A!=null?A:"None"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Possible Cures",children:T!=null?T:"None"})]})},S=function(l,s){var i,p=(0,a.useBackend)(s),v=p.act,g=p.data,h=!!g.synthesisCooldown,N=(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{icon:h?"spinner":"clone",iconSpin:h,content:"Clone",disabled:h,onClick:function(){function b(){return v("clone_strain",{strain_index:l.strainIndex})}return b}()}),l.sectionButtons],0);return(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:(i=l.sectionTitle)!=null?i:"Strain Information",buttons:N,children:(0,e.createComponentVNode)(2,y,{strain:l.strain,strainIndex:l.strainIndex})})})},k=function(l,s){var i,p=(0,a.useBackend)(s),v=p.act,g=p.data,h=g.selectedStrainIndex,N=g.strains,b=N[h-1];if(N.length===0)return(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Container Information",buttons:(0,e.createComponentVNode)(2,V),children:(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No disease detected in provided blood sample."})})});if(N.length===1){var B;return(0,e.createFragment)([(0,e.createComponentVNode)(2,S,{strain:N[0],strainIndex:1,sectionButtons:(0,e.createComponentVNode)(2,V)}),((B=N[0].symptoms)==null?void 0:B.length)>0&&(0,e.createComponentVNode)(2,u,{strain:N[0]})],0)}var I=(0,e.createComponentVNode)(2,V);return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Culture Information",fill:!0,buttons:I,children:(0,e.createComponentVNode)(2,t.Flex,{direction:"column",style:{height:"100%"},children:[(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Tabs,{children:N.map(function(L,T){var A;return(0,e.createComponentVNode)(2,t.Tabs.Tab,{icon:"virus",selected:h-1===T,onClick:function(){function x(){return v("switch_strain",{strain_index:T+1})}return x}(),children:(A=L.commonName)!=null?A:"Unknown"},T)})})}),(0,e.createComponentVNode)(2,S,{strain:b,strainIndex:h}),((i=b.symptoms)==null?void 0:i.length)>0&&(0,e.createComponentVNode)(2,u,{className:"remove-section-bottom-padding",strain:b})]})})})},C=function(l){return l.reduce(function(s,i){return s+i},0)},u=function(l){var s=l.strain.symptoms;return(0,e.createComponentVNode)(2,t.Flex.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Infection Symptoms",fill:!0,className:l.className,children:(0,e.createComponentVNode)(2,t.Table,{className:"symptoms-table",children:[(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Name"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Stealth"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Resistance"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Stage Speed"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Transmissibility"})]}),s.map(function(i,p){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:i.name}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:i.stealth}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:i.resistance}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:i.stageSpeed}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:i.transmissibility})]},p)}),(0,e.createComponentVNode)(2,t.Table.Row,{className:"table-spacer"}),(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{style:{"font-weight":"bold"},children:"Total"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:C(s.map(function(i){return i.stealth}))}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:C(s.map(function(i){return i.resistance}))}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:C(s.map(function(i){return i.stageSpeed}))}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:C(s.map(function(i){return i.transmissibility}))})]})]})})})},c=["flask","vial","eye-dropper"],m=function(l,s){var i=(0,a.useBackend)(s),p=i.act,v=i.data,g=v.synthesisCooldown,h=v.beakerContainsVirus,N=v.resistances;return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Antibodies",fill:!0,children:(0,e.createComponentVNode)(2,t.Stack,{horizontal:!0,wrap:!0,children:N.map(function(b,B){return(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:c[B%c.length],disabled:!!g,onClick:function(){function I(){return p("clone_vaccine",{resistance_index:B+1})}return I}(),mr:"0.5em"}),b]},B)})})})})}},78643:function(w,r,n){"use strict";r.__esModule=!0,r.ParticleAccelerator=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.ParticleAccelerator=function(){function V(y,S){var k=(0,a.useBackend)(S),C=k.act,u=k.data,c=u.assembled,m=u.power,d=u.strength,l=u.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 C("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:m?"power-off":"times",content:m?"On":"Off",selected:m,disabled:!c,onClick:function(){function s(){return C("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 C("remove_strength")}return s}(),mr:"4px"}),d,(0,e.createComponentVNode)(2,t.Button,{icon:"forward",disabled:!c||d===l,onClick:function(){function s(){return C("add_strength")}return s}(),ml:"4px"})]})]})})})})}return V}()},34026:function(w,r,n){"use strict";r.__esModule=!0,r.PdaPainter=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.PdaPainter=function(){function k(C,u){var c=(0,a.useBackend)(u),m=c.data,d=m.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(C,u){var c=(0,a.useBackend)(u),m=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 m("insert_pda")}return d}()})]})})})},y=function(C,u){var c=(0,a.useBackend)(u),m=c.act,d=c.data,l=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(l).map(function(s){return(0,e.createComponentVNode)(2,t.Table.Row,{onClick:function(){function i(){return m("choose_pda",{selectedPda:s})}return i}(),children:[(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,children:(0,e.createVNode)(1,"img",null,null,1,{src:"data:image/png;base64,"+l[s][0],style:{"vertical-align":"middle",width:"32px",margin:"0px","margin-left":"0px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:s})]},s)})})})})]})},S=function(C,u){var c=(0,a.useBackend)(u),m=c.act,d=c.data,l=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,"+l,style:{"vertical-align":"middle",width:"160px",margin:"0px","margin-left":"0px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"eject",content:"Eject",color:"green",onClick:function(){function i(){return m("eject_pda")}return i}()}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"paint-roller",content:"Paint PDA",onClick:function(){function i(){return m("paint_pda")}return i}()})]}),(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","image-rendering":"pixelated"}})})]})}},81378:function(w,r,n){"use strict";r.__esModule=!0,r.PersonalCrafting=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.PersonalCrafting=function(){function S(k,C){var u=(0,a.useBackend)(C),c=u.act,m=u.data,d=m.busy,l=m.category,s=m.display_craftable_only,i=m.display_compact,p=m.prev_cat,v=m.next_cat,g=m.subcategory,h=m.prev_subcat,N=m.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:l,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:i?"check-square-o":"square-o",selected:i,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:p,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:h,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}()})]}),i?(0,e.createComponentVNode)(2,V):(0,e.createComponentVNode)(2,y)]})]})})}return S}(),V=function(k,C){var u=(0,a.useBackend)(C),c=u.act,m=u.data,d=m.display_craftable_only,l=m.can_craft,s=m.cant_craft;return(0,e.createComponentVNode)(2,t.Box,{mt:1,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[l.map(function(i){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:i.name,children:[(0,e.createComponentVNode)(2,t.Button,{icon:"hammer",content:"Craft",onClick:function(){function p(){return c("make",{make:i.ref})}return p}()}),i.catalyst_text&&(0,e.createComponentVNode)(2,t.Button,{tooltip:i.catalyst_text,content:"Catalysts",color:"transparent"}),(0,e.createComponentVNode)(2,t.Button,{tooltip:i.req_text,content:"Requirements",color:"transparent"}),i.tool_text&&(0,e.createComponentVNode)(2,t.Button,{tooltip:i.tool_text,content:"Tools",color:"transparent"})]},i.name)}),!d&&s.map(function(i){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:i.name,children:[(0,e.createComponentVNode)(2,t.Button,{icon:"hammer",content:"Craft",disabled:!0}),i.catalyst_text&&(0,e.createComponentVNode)(2,t.Button,{tooltip:i.catalyst_text,content:"Catalysts",color:"transparent"}),(0,e.createComponentVNode)(2,t.Button,{tooltip:i.req_text,content:"Requirements",color:"transparent"}),i.tool_text&&(0,e.createComponentVNode)(2,t.Button,{tooltip:i.tool_text,content:"Tools",color:"transparent"})]},i.name)})]})})},y=function(k,C){var u=(0,a.useBackend)(C),c=u.act,m=u.data,d=m.display_craftable_only,l=m.can_craft,s=m.cant_craft;return(0,e.createComponentVNode)(2,t.Box,{mt:1,children:[l.map(function(i){return(0,e.createComponentVNode)(2,t.Section,{title:i.name,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"hammer",content:"Craft",onClick:function(){function p(){return c("make",{make:i.ref})}return p}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[i.catalyst_text&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Catalysts",children:i.catalyst_text}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Requirements",children:i.req_text}),i.tool_text&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Tools",children:i.tool_text})]})},i.name)}),!d&&s.map(function(i){return(0,e.createComponentVNode)(2,t.Section,{title:i.name,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"hammer",content:"Craft",disabled:!0}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[i.catalyst_text&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Catalysts",children:i.catalyst_text}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Requirements",children:i.req_text}),i.tool_text&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Tools",children:i.tool_text})]})},i.name)})]})}},58792:function(w,r,n){"use strict";r.__esModule=!0,r.Photocopier=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.Photocopier=function(){function S(k,C){var u=(0,a.useBackend)(C),c=u.act,m=u.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:m.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:m.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:!m.copyitem&&!m.mob,content:m.copyitem?m.copyitem:m.mob?m.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:!m.folder,content:m.folder?m.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,C){var u=(0,a.useBackend)(C),c=u.act,m=u.data,d=m.issilicon;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"copy",float:"center",textAlign:"center",content:"Copy",onClick:function(){function l(){return c("copy")}return l}()}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"file-import",float:"center",textAlign:"center",content:"Scan",onClick:function(){function l(){return c("scandocument")}return l}()}),!!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 l(){return c("ai_text")}return l}()}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"image",color:"green",float:"center",textAlign:"center",content:"Print Image",onClick:function(){function l(){return c("ai_pic")}return l}()})],4)],0)},y=function(k,C){var u=(0,a.useBackend)(C),c=u.act,m=u.data;return(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Scanned Files",children:m.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:m.toner<=0,onClick:function(){function l(){return c("filecopy",{uid:d.uid})}return l}()}),(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"trash-alt",content:"Delete",color:"bad",onClick:function(){function l(){return c("deletefile",{uid:d.uid})}return l}()})]})},d.name)})})}},45642:function(w,r,n){"use strict";r.__esModule=!0,r.Photocopier220=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=n(50640),V=n(74041),y=n(78234);function S(m,d){var l=typeof Symbol!="undefined"&&m[Symbol.iterator]||m["@@iterator"];if(l)return(l=l.call(m)).next.bind(l);if(Array.isArray(m)||(l=k(m))||d&&m&&typeof m.length=="number"){l&&(m=l);var s=0;return function(){return s>=m.length?{done:!0}:{done:!1,value:m[s++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function k(m,d){if(m){if(typeof m=="string")return C(m,d);var l=Object.prototype.toString.call(m).slice(8,-1);if(l==="Object"&&m.constructor&&(l=m.constructor.name),l==="Map"||l==="Set")return Array.from(m);if(l==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(l))return C(m,d)}}function C(m,d){(d==null||d>m.length)&&(d=m.length);for(var l=0,s=new Array(d);lm?this.substring(0,m)+"...":this};var u=function(d,l){l===void 0&&(l="");var s=(0,y.createSearch)(l,function(i){return i.altername});return(0,V.flow)([(0,f.filter)(function(i){return i==null?void 0:i.altername}),l&&(0,f.filter)(s),(0,f.sortBy)(function(i){return i.id})])(d)},c=r.Photocopier220=function(){function m(d,l){for(var s=(0,a.useBackend)(l),i=s.act,p=s.data,v=p.copies,g=p.maxcopies,h=(0,a.useLocalState)(l,"searchText",""),N=h[0],b=h[1],B=u((0,f.sortBy)(function(P){return P.category})(p.forms||[]),N),I=[],L=S(B),T;!(T=L()).done;){var A=T.value;I.includes(A.category)||I.push(A.category)}var x=(0,a.useLocalState)(l,"number",0),E=x[0],M=x[1],j;return p.category===""?j=B:j=B.filter(function(P){return P.category===p.category}),(0,e.createComponentVNode)(2,o.Window,{width:550,height:575,theme:p.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:p.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:p.form_id===""?"\u041D\u0435 \u0432\u044B\u0431\u0440\u0430\u043D\u0430":p.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:!p.copyitem&&!p.mob,icon:p.copyitem||p.mob?"eject":"times",content:p.copyitem?p.copyitem:p.mob?"\u0416\u043E\u043F\u0430 "+p.mob+"!":"\u0421\u043B\u043E\u0442 \u0434\u043B\u044F \u0434\u043E\u043A\u0443\u043C\u0435\u043D\u0442\u0430",onClick:function(){function P(){return i("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:!p.folder,icon:p.folder?"eject":"times",content:p.folder?p.folder:"\u0421\u043B\u043E\u0442 \u0434\u043B\u044F \u043F\u0430\u043F\u043A\u0438",onClick:function(){function P(){return i("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:p.toner===0||p.form===null,content:"\u041F\u0435\u0447\u0430\u0442\u044C",onClick:function(){function P(){return i("print_form")}return P}()})}),!!p.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:p.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 i("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:p.toner===0||!p.copyitem&&!p.mob,onClick:function(){function P(){return i("copy")}return P}()})}),!!p.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:p.toner===0,onClick:function(){function P(){return i("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 i("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:!p.category,onClick:function(){function P(){return i("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:p.category===P,onClick:function(){function R(){return i("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:p.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:p.form_id===P.id,onClick:function(){function R(){return i("choose_form",{path:P.path,id:P.id})}return R}()})},P.path)})})})]})})})}return m}()},27902:function(w,r,n){"use strict";r.__esModule=!0,r.PoolController=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=["tempKey"];function V(C,u){if(C==null)return{};var c={},m=Object.keys(C),d,l;for(l=0;l=0)&&(c[d]=C[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(u,c){var m=u.tempKey,d=V(u,f),l=y[m];if(!l)return null;var s=(0,a.useBackend)(c),i=s.data,p=s.act,v=i.currentTemp,g=l.label,h=l.icon,N=m===v,b=function(){p("setTemp",{temp:m})};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:h}),g]})))},k=r.PoolController=function(){function C(u,c){for(var m=(0,a.useBackend)(c),d=m.data,l=d.emagged,s=d.currentTemp,i=y[s]||y.normal,p=i.label,v=i.color,g=[],h=0,N=Object.entries(y);h50?"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)};l.defaultHooks=f.pureComponentHooks;var s=function(p){var v,g,h=p.status;switch(h){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=f.pureComponentHooks},27262:function(w,r,n){"use strict";r.__esModule=!0,r.PrisonerImplantManager=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(91097),f=n(99665),V=n(68159),y=n(27527),S=n(45493),k=r.PrisonerImplantManager=function(){function C(u,c){var m=(0,a.useBackend)(c),d=m.act,l=m.data,s=l.loginState,i=l.prisonerInfo,p=l.chemicalInfo,v=l.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 h=[1,5,10];return(0,e.createComponentVNode)(2,S.Window,{theme:"security",width:500,height:850,children:[(0,e.createComponentVNode)(2,f.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:i.name?"eject":"id-card",selected:i.name,content:i.name?i.name:"-----",tooltip:i.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:[i.points!==null?i.points:"-/-",(0,e.createComponentVNode)(2,t.Button,{ml:2,icon:"minus-square",disabled:i.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:[i.goal!==null?i.goal:"-/-",(0,e.createComponentVNode)(2,t.Button,{ml:2,icon:"pen",disabled:i.goal===null,content:"Edit",onClick:function(){function N(){return(0,f.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:i.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,f.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:p.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})}),h.map(function(b){return(0,e.createComponentVNode)(2,t.Button,{mt:2,disabled:N.volumec;return(0,e.createComponentVNode)(2,t.ImageButton,{asset:!0,imageAsset:"prize_counter64x64",image:v.imageID,title:v.name,content:v.desc,children:(0,e.createComponentVNode)(2,t.ImageButton.Item,{bold:!0,width:"64px",fontSize:1.5,textColor:g&&"gray",content:v.cost,icon:"ticket",iconSize:1.6,iconColor:g?"bad":"good",tooltip:g&&"Not enough tickets",disabled:g,onClick:function(){function h(){return C("purchase",{purchase:v.itemID})}return h}()})},v.name)})})})})})})}return V}()},87963:function(w,r,n){"use strict";r.__esModule=!0,r.RCD=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=n(99665),V=n(57842),y=r.RCD=function(){function d(l,s){return(0,e.createComponentVNode)(2,o.Window,{width:480,height:670,children:[(0,e.createComponentVNode)(2,f.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,u),(0,e.createComponentVNode)(2,c)]})})]})}return d}(),S=function(l,s){var i=(0,a.useBackend)(s),p=i.data,v=p.matter,g=p.max_matter,h=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:[h,1/0],average:[N,h],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,C,{mode_type:"Floors and Walls"}),(0,e.createComponentVNode)(2,C,{mode_type:"Airlocks"}),(0,e.createComponentVNode)(2,C,{mode_type:"Windows"}),(0,e.createComponentVNode)(2,C,{mode_type:"Deconstruction"})]})})})},C=function(l,s){var i=(0,a.useBackend)(s),p=i.act,v=i.data,g=l.mode_type,h=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:h===g?1:0,onClick:function(){function N(){return p("mode",{mode:g})}return N}()})})},u=function(l,s){var i=(0,a.useBackend)(s),p=i.act,v=i.data,g=v.door_name,h=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,f.modalOpen)(s,"renameAirlock")}return b}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:N===1&&(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:h?"toggle-on":"toggle-off",content:"Electrochromic",selected:h,onClick:function(){function b(){return p("electrochromic")}return b}()})})]})})})},c=function(l,s){var i=(0,a.useBackend)(s),p=i.act,v=i.data,g=v.tab,h=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 I(){return p("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 p("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,m,{check_number:0})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,m,{check_number:1})})]})}):g===2&&h?(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 p("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,V.AccessList,{sectionButtons:(0,e.createComponentVNode)(2,t.Button,{icon:"lock",content:"Lock",onClick:function(){function I(){return p("set_lock",{new_lock:"lock"})}return I}()}),usedByRcd:1,rcdButtons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:N,content:"One",onClick:function(){function I(){return p("set_one_access",{access:"one"})}return I}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:!N,width:4,content:"All",onClick:function(){function I(){return p("set_one_access",{access:"all"})}return I}()})],4),accesses:B,selectedList:b,accessMod:function(){function I(L){return p("set",{access:L})}return I}(),grantAll:function(){function I(){return p("grant_all")}return I}(),denyAll:function(){function I(){return p("clear_all")}return I}(),grantDep:function(){function I(L){return p("grant_region",{region:L})}return I}(),denyDep:function(){function I(L){return p("deny_region",{region:L})}return I}()})})],4)},m=function(l,s){for(var i=(0,a.useBackend)(s),p=i.act,v=i.data,g=v.door_types_ui_list,h=v.door_type,N=l.check_number,b=[],B=0;B0?"envelope-open-text":"envelope",onClick:function(){function B(){return p("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 p("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 p("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 p("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 p("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 p("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 p("setScreen",{setScreen:10})}return B}()})]})}),!!h&&(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 p("setScreen",{setScreen:8})}return B}()})})]})})},y=function(l,s){var i=(0,a.useBackend)(s),p=i.act,v=i.data,g=v.department,h=[],N;switch(l.purpose){case"ASSISTANCE":h=v.assist_dept,N="Request assistance from another department";break;case"SUPPLIES":h=v.supply_dept,N="Request supplies from another department";break;case"INFO":h=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 p("setScreen",{setScreen:0})}return b}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:h.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 p("writeInput",{write:b,priority:"1"})}return B}()}),(0,e.createComponentVNode)(2,t.Button,{content:"High Priority",icon:"exclamation-circle",onClick:function(){function B(){return p("writeInput",{write:b,priority:"2"})}return B}()})]},b)})})})})},S=function(l,s){var i=(0,a.useBackend)(s),p=i.act,v=i.data,g;switch(l.type){case"SUCCESS":g="Message sent successfully";break;case"FAIL":g="Unable to contact messaging server";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 h(){return p("setScreen",{setScreen:0})}return h}()})})},k=function(l,s){var i=(0,a.useBackend)(s),p=i.act,v=i.data,g,h;switch(l.type){case"MESSAGES":g=v.message_log,h="Message Log";break;case"SHIPPING":g=v.shipping_log,h="Shipping label print log";break}return g.reverse(),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:h,buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Back",icon:"arrow-left",onClick:function(){function N(){return p("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)})})})},C=function(l,s){var i=(0,a.useBackend)(s),p=i.act,v=i.data,g=v.recipient,h=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 p("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:h}),(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 p("department",{department:g})}return B}()})})})],4)},u=function(l,s){var i=(0,a.useBackend)(s),p=i.act,v=i.data,g=v.message,h=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 p("setScreen",{setScreen:0})}return N}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Edit Message",icon:"edit",onClick:function(){function N(){return p("writeAnnouncement")}return N}()})],4),children:g})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{children:[h?(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:!(h&&g),onClick:function(){function N(){return p("sendAnnouncement")}return N}()})]})})],4)},c=function(l,s){var i=(0,a.useBackend)(s),p=i.act,v=i.data,g=v.shipDest,h=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 p("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:h})]}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,mt:1,textAlign:"center",content:"Print Label",icon:"print",disabled:!(g&&h),onClick:function(){function b(){return p("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 p("shipSelect",{shipSelect:b})}return B}()})},b)})})})})],4)},m=function(l,s){var i=(0,a.useBackend)(s),p=i.act,v=i.data,g=v.secondaryGoalAuth,h=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 p("setScreen",{setScreen:0})}return N}()})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{children:[h?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&&h),onClick:function(){function N(){return p("requestSecondaryGoal")}return N}()})]})})],4)}},89641:function(w,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),f=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(C,u){var c=(0,a.useBackend)(u),m=c.data,d=m.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,f.RndNavbar),(0,e.createComponentVNode)(2,f.RndRoute,{menu:V.MAIN,render:function(){function l(){return(0,e.createComponentVNode)(2,f.MainMenu)}return l}()}),(0,e.createComponentVNode)(2,f.RndRoute,{menu:V.LEVELS,render:function(){function l(){return(0,e.createComponentVNode)(2,f.CurrentLevels)}return l}()}),(0,e.createComponentVNode)(2,f.RndRoute,{menu:V.DISK,render:function(){function l(){return(0,e.createComponentVNode)(2,f.DataDiskMenu)}return l}()}),(0,e.createComponentVNode)(2,f.RndRoute,{menu:V.DESTROY,render:function(){function l(){return(0,e.createComponentVNode)(2,f.DeconstructionMenu)}return l}()}),(0,e.createComponentVNode)(2,f.RndRoute,{menu:function(){function l(s){return s===V.LATHE||s===V.IMPRINTER}return l}(),render:function(){function l(){return(0,e.createComponentVNode)(2,f.LatheMenu)}return l}()}),(0,e.createComponentVNode)(2,f.RndRoute,{menu:V.SETTINGS,render:function(){function l(){return(0,e.createComponentVNode)(2,f.SettingsMenu)}return l}()}),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(w,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 f(V,y){var S=(0,a.useBackend)(y),k=S.data,C=k.tech_levels;return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createVNode)(1,"h3",null,"Current Research Levels:",16),C.map(function(u,c){var m=u.name,d=u.level,l=u.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:m}),(0,e.createComponentVNode)(2,t.Box,{children:["* Level: ",d]}),(0,e.createComponentVNode)(2,t.Box,{children:["* Summary: ",l]})]},m)})]})}return f}()},338:function(w,r,n){"use strict";r.__esModule=!0,r.DataDiskMenu=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(3422),f=n(89641),V="design",y="tech",S=function(s,i){var p=(0,a.useBackend)(i),v=p.data,g=p.act,h=v.disk_data;return h?(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Name",children:h.name}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Level",children:h.level}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Description",children:h.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,u)]})]}):null},k=function(s,i){var p=(0,a.useBackend)(i),v=p.data,g=p.act,h=v.disk_data;if(!h)return null;var N=h.name,b=h.lathe_types,B=h.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:N}),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(L){return(0,e.createComponentVNode)(2,t.Box,{children:["- ",(0,e.createVNode)(1,"span",null,L.name,0,{style:{"text-transform":"capitalize"}})," x ",L.amount]},L.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 L(){return g("updt_design")}return L}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Clear Disk",icon:"trash",onClick:function(){function L(){return g("clear_design")}return L}()}),(0,e.createComponentVNode)(2,u)]})]})},C=function(s,i){var p=(0,a.useBackend)(i),v=p.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:f.SUBMENU.DISK_COPY,icon:"arrow-down",content:g===y?"Load Tech to Disk":"Load Design to Disk"}),(0,e.createComponentVNode)(2,u)]})]})},u=function(s,i){var p=(0,a.useBackend)(i),v=p.data,g=p.act,h=v.disk_type;return h?(0,e.createComponentVNode)(2,t.Button,{content:"Eject Disk",icon:"eject",onClick:function(){function N(){var b=h===y?"eject_tech":"eject_design";g(b)}return N}()}):null},c=function(s,i){var p=(0,a.useBackend)(i),v=p.data,g=v.disk_data,h=v.disk_type,N=function(){if(!g)return(0,e.createComponentVNode)(2,C);switch(h){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()})},m=function(s,i){var p=(0,a.useBackend)(i),v=p.data,g=p.act,h=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,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 L(){h===y?g("copy_tech",{id:I}):g("copy_design",{id:I})}return L}()})},I)})})})})},d=r.DataDiskMenu=function(){function l(s,i){var p=(0,a.useBackend)(i),v=p.data,g=v.disk_type;return g?(0,e.createFragment)([(0,e.createComponentVNode)(2,o.RndRoute,{submenu:f.SUBMENU.MAIN,render:function(){function h(){return(0,e.createComponentVNode)(2,c)}return h}()}),(0,e.createComponentVNode)(2,o.RndRoute,{submenu:f.SUBMENU.DISK_COPY,render:function(){function h(){return(0,e.createComponentVNode)(2,m)}return h}()})],4):null}return l}()},90785:function(w,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 f(V,y){var S=(0,a.useBackend)(y),k=S.data,C=S.act,u=k.loaded_item,c=k.linked_destroy;return c?u?(0,e.createComponentVNode)(2,t.Section,{noTopPadding:!0,title:"Deconstruction Menu",children:[(0,e.createComponentVNode)(2,t.Box,{mt:"10px",children:["Name: ",u.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:u.origin_tech.map(function(m){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"* "+m.name,children:[m.object_level," ",m.current_level?(0,e.createFragment)([(0,e.createTextVNode)("(Current: "),m.current_level,(0,e.createTextVNode)(")")],0):null]},m.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 m(){C("deconstruct")}return m}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Eject Item",icon:"eject",onClick:function(){function m(){C("eject_item")}return m}()})]}):(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 f}()},34492:function(w,r,n){"use strict";r.__esModule=!0,r.LatheCategory=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(3422),f=r.LatheCategory=function(){function V(y,S){var k=(0,a.useBackend)(S),C=k.data,u=k.act,c=C.category,m=C.matching_designs,d=C.menu,l=d===4,s=l?"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:m.map(function(i){var p=i.id,v=i.name,g=i.can_build,h=i.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 u(s,{id:p,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 u(s,{id:p,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 u(s,{id:p,amount:10})}return N}()}):null}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:h.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)})})]},p)})})]})}return V}()},84275:function(w,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 f(V,y){var S=(0,a.useBackend)(y),k=S.data,C=S.act,u=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 m(){var d=c?"disposeallP":"disposeallI";C(d)}return m}()}),(0,e.createComponentVNode)(2,t.LabeledList,{children:u.map(function(m){var d=m.volume,l=m.name,s=m.id;return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"* "+d+" of "+l,children:(0,e.createComponentVNode)(2,t.Button,{content:"Purge",icon:"trash",onClick:function(){function i(){var p=c?"disposeP":"disposeI";C(p,{id:s})}return i}()})},s)})})]})}return f}()},12638:function(w,r,n){"use strict";r.__esModule=!0,r.LatheMainMenu=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(3422),f=r.LatheMainMenu=function(){function V(y,S){var k=(0,a.useBackend)(S),C=k.data,u=k.act,c=C.menu,m=C.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:m.map(function(l){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:l,onClick:function(){function s(){u("setCategory",{category:l})}return s}()})},l)})})]})}return V}()},89004:function(w,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 f(V,y){var S=(0,a.useBackend)(y),k=S.data,C=S.act,u=k.loaded_materials;return(0,e.createComponentVNode)(2,t.Section,{className:"RndConsole__LatheMaterialStorage",title:"Material Storage",children:(0,e.createComponentVNode)(2,t.Table,{children:u.map(function(c){var m=c.id,d=c.amount,l=c.name,s=function(){function g(h){var N=k.menu===4?"lathe_ejectsheet":"imprinter_ejectsheet";C(N,{id:m,amount:h})}return g}(),i=Math.floor(d/2e3),p=d<1,v=i===1?"":"s";return(0,e.createComponentVNode)(2,t.Table.Row,{className:p?"color-grey":"color-yellow",children:[(0,e.createComponentVNode)(2,t.Table.Cell,{minWidth:"210px",children:["* ",d," of ",l]}),(0,e.createComponentVNode)(2,t.Table.Cell,{minWidth:"110px",children:["(",i," 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})]},m)})})})}return f}()},73856:function(w,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 f(V,y){var S=(0,a.useBackend)(y),k=S.data,C=k.total_materials,u=k.max_materials,c=k.max_chemicals,m=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:C}),u?(0,e.createComponentVNode)(2,t.Table.Cell,{children:" / "+u}):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:m}),c?(0,e.createComponentVNode)(2,t.Table.Cell,{children:" / "+c}):null]})]})})}return f}()},75955:function(w,r,n){"use strict";r.__esModule=!0,r.LatheMenu=void 0;var e=n(96524),a=n(17899),t=n(78345),o=n(3422),f=n(24674),V=n(89641),y=r.LatheMenu=function(){function S(k,C){var u=(0,a.useBackend)(C),c=u.data,m=c.menu,d=c.linked_lathe,l=c.linked_imprinter;return m===4&&!d?(0,e.createComponentVNode)(2,f.Box,{children:"NO PROTOLATHE LINKED TO CONSOLE"}):m===5&&!l?(0,e.createComponentVNode)(2,f.Box,{children:"NO CIRCUIT IMPRITER LINKED TO CONSOLE"}):(0,e.createComponentVNode)(2,f.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(w,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 f(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 C(u,c){return k("search",{to_search:c})}return C}()})})}return f}()},62306:function(w,r,n){"use strict";r.__esModule=!0,r.MainMenu=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(3422),f=n(89641),V=r.MainMenu=function(){function y(S,k){var C=(0,a.useBackend)(k),u=C.data,c=u.disk_type,m=u.linked_destroy,d=u.linked_lathe,l=u.linked_imprinter,s=u.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:f.MENU.DISK,submenu:f.SUBMENU.MAIN,icon:"save",content:"Disk Operations"}),(0,e.createComponentVNode)(2,o.RndNavButton,{disabled:!m,menu:f.MENU.DESTROY,submenu:f.SUBMENU.MAIN,icon:"unlink",content:"Destructive Analyzer Menu"}),(0,e.createComponentVNode)(2,o.RndNavButton,{disabled:!d,menu:f.MENU.LATHE,submenu:f.SUBMENU.MAIN,icon:"print",content:"Protolathe Menu"}),(0,e.createComponentVNode)(2,o.RndNavButton,{disabled:!l,menu:f.MENU.IMPRINTER,submenu:f.SUBMENU.MAIN,icon:"print",content:"Circuit Imprinter Menu"}),(0,e.createComponentVNode)(2,o.RndNavButton,{menu:f.MENU.SETTINGS,submenu:f.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(i){var p=i.name,v=i.level;return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:p,children:v},p)})})]})}return y}()},99941:function(w,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 f(V,y){var S=V.icon,k=V.children,C=V.disabled,u=V.content,c=(0,a.useBackend)(y),m=c.data,d=c.act,l=m.menu,s=m.submenu,i=l,p=s;return V.menu!==null&&V.menu!==void 0&&(i=V.menu),V.submenu!==null&&V.submenu!==void 0&&(p=V.submenu),(0,e.createComponentVNode)(2,t.Button,{content:u,icon:S,disabled:C,onClick:function(){function v(){d("nav",{menu:i,submenu:p})}return v}(),children:k})}return f}()},24448:function(w,r,n){"use strict";r.__esModule=!0,r.RndNavbar=void 0;var e=n(96524),a=n(3422),t=n(24674),o=n(89641),f=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(w,r,n){"use strict";r.__esModule=!0,r.RndRoute=void 0;var e=n(17899),a=r.RndRoute=function(){function t(o,f){var V=o.render,y=(0,e.useBackend)(f),S=y.data,k=S.menu,C=S.submenu,u=function(){function m(d,l){return d==null?!0:typeof d=="function"?d(l):d===l}return m}(),c=u(o.menu,k)&&u(o.submenu,C);return c?V():null}return t}()},56454:function(w,r,n){"use strict";r.__esModule=!0,r.SettingsMenu=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(3422),f=n(89641),V=r.SettingsMenu=function(){function y(S,k){var C=(0,a.useBackend)(k),u=C.data,c=C.act,m=u.sync,d=u.admin,l=u.linked_destroy,s=u.linked_lathe,i=u.linked_imprinter;return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,o.RndRoute,{submenu:f.SUBMENU.MAIN,render:function(){function p(){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:!m,onClick:function(){function v(){c("sync")}return v}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Connect to Research Network",icon:"plug",disabled:m,onClick:function(){function v(){c("togglesync")}return v}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:!m,icon:"unlink",content:"Disconnect from Research Network",onClick:function(){function v(){c("togglesync")}return v}()}),(0,e.createComponentVNode)(2,o.RndNavButton,{disabled:!m,content:"Device Linkage Menu",icon:"link",menu:f.MENU.SETTINGS,submenu:f.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 p}()}),(0,e.createComponentVNode)(2,o.RndRoute,{submenu:f.SUBMENU.SETTINGS_DEVICES,render:function(){function p(){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:[l?(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"}),i?(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 p}()})]})}return y}()},3422:function(w,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 f=n(84275);r.LatheChemicalStorage=f.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 C=n(72880);r.LatheSearch=C.LatheSearch;var u=n(62306);r.MainMenu=u.MainMenu;var c=n(24448);r.RndNavbar=c.RndNavbar;var m=n(99941);r.RndNavButton=m.RndNavButton;var d=n(78345);r.RndRoute=d.RndRoute;var l=n(56454);r.SettingsMenu=l.SettingsMenu},71123:function(w,r,n){"use strict";r.__esModule=!0,r.RobotSelfDiagnosis=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=n(78234),V=function(k,C){var u=k/C;return u<=.2?"good":u<=.5?"average":"bad"},y=r.RobotSelfDiagnosis=function(){function S(k,C){var u=(0,a.useBackend)(C),c=u.data,m=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:m.map(function(d,l){return(0,e.createComponentVNode)(2,t.Section,{title:(0,f.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"})]})})]})},l)})})})}return S}()},98951:function(w,r,n){"use strict";r.__esModule=!0,r.RoboticsControlConsole=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.RoboticsControlConsole=function(){function y(S,k){var C=(0,a.useBackend)(k),u=C.act,c=C.data,m=c.can_hack,d=c.safety,l=c.show_lock_all,s=c.cyborgs,i=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:[!!l&&(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 p(){return u("arm",{})}return p}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"lock",disabled:d,content:"Lock ALL Cyborgs",color:"bad",onClick:function(){function p(){return u("masslock",{})}return p}()})]}),(0,e.createComponentVNode)(2,V,{cyborgs:i,can_hack:m})]})})}return y}(),V=function(S,k){var C=S.cyborgs,u=S.can_hack,c=(0,a.useBackend)(k),m=c.act,d=c.data,l="Detonate";return d.detonate_cooldown>0&&(l+=" ("+d.detonate_cooldown+"s)"),C.length?C.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 i(){return m("hackbot",{uid:s.uid})}return i}()}),(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 i(){return m("stopbot",{uid:s.uid})}return i}()}),(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"bomb",content:l,disabled:!d.auth||d.detonate_cooldown>0,color:"bad",onClick:function(){function i(){return m("killbot",{uid:s.uid})}return i}()})],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(w,r,n){"use strict";r.__esModule=!0,r.Safe=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.Safe=function(){function k(C,u){var c=(0,a.useBackend)(u),m=c.act,d=c.data,l=d.dial,s=d.open,i=d.locked,p=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*l+"deg)","z-index":0}})]}),!s&&(0,e.createComponentVNode)(2,S)]})})}return k}(),V=function(C,u){var c=(0,a.useBackend)(u),m=c.act,d=c.data,l=d.dial,s=d.open,i=d.locked,p=function(g,h){return(0,e.createComponentVNode)(2,t.Button,{disabled:s||h&&!i,icon:"arrow-"+(h?"right":"left"),content:(h?"Right":"Left")+" "+g,iconRight:h,onClick:function(){function N(){return m(h?"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:i,icon:s?"lock":"lock-open",content:s?"Close":"Open",mb:"0.5rem",onClick:function(){function v(){return m("open")}return v}()}),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Box,{position:"absolute",children:[p(50),p(10),p(1)]}),(0,e.createComponentVNode)(2,t.Box,{className:"Safe--dialer--right",position:"absolute",right:"5px",children:[p(1,!0),p(10,!0),p(50,!0)]}),(0,e.createComponentVNode)(2,t.Box,{className:"Safe--dialer--number",children:l})]})},y=function(C,u){var c=(0,a.useBackend)(u),m=c.act,d=c.data,l=d.contents;return(0,e.createComponentVNode)(2,t.Box,{className:"Safe--contents",overflow:"auto",children:l.map(function(s,i){return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{mb:"0.5rem",onClick:function(){function p(){return m("retrieve",{index:i+1})}return p}(),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(C,u){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(w,r,n){"use strict";r.__esModule=!0,r.SatelliteControl=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.SatelliteControl=function(){function V(y,S){var k=(0,a.useBackend)(S),C=k.act,u=k.data,c=u.satellites,m=u.notice,d=u.meteor_shield,l=u.meteor_shield_coverage,s=u.meteor_shield_coverage_max,i=u.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:i>=100?"good":"average",value:l,maxValue:s,children:[i," %"]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Satellite Network Control",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[m&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Alert",color:"red",children:u.notice}),c.map(function(p){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"#"+p.id,children:[p.mode," ",(0,e.createComponentVNode)(2,t.Button,{content:p.active?"Deactivate":"Activate",icon:"arrow-circle-right",onClick:function(){function v(){return C("toggle",{id:p.id})}return v}()})]},p.id)})]})})]})})}return V}()},54892:function(w,r,n){"use strict";r.__esModule=!0,r.SecureStorage=void 0;var e=n(96524),a=n(28234),t=n(17899),o=n(24674),f=n(45493),V=n(5126),y=n(68100),S=r.SecureStorage=function(){function c(m,d){return(0,e.createComponentVNode)(2,f.Window,{theme:"securestorage",height:500,width:280,children:(0,e.createComponentVNode)(2,f.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,C)})})})})}return c}(),k=function(m,d){var l=(0,t.useBackend)(d),s=l.act,i=window.event?m.which:m.keyCode;if(i===y.KEY_ENTER){m.preventDefault(),s("keypad",{digit:"E"});return}if(i===y.KEY_ESCAPE){m.preventDefault(),s("keypad",{digit:"C"});return}if(i===y.KEY_BACKSPACE){m.preventDefault(),s("backspace");return}if(i>=y.KEY_0&&i<=y.KEY_9){m.preventDefault(),s("keypad",{digit:i-y.KEY_0});return}if(i>=y.KEY_NUMPAD_0&&i<=y.KEY_NUMPAD_9){m.preventDefault(),s("keypad",{digit:i-y.KEY_NUMPAD_0});return}},C=function(m,d){var l=(0,t.useBackend)(d),s=l.act,i=l.data,p=i.locked,v=i.no_passcode,g=i.emagged,h=i.user_entered_code,N=[["1","2","3"],["4","5","6"],["7","8","9"],["C","0","E"]],b=v?"":p?"bad":"good";return(0,e.createComponentVNode)(2,o.Section,{fill:!0,onKeyDown:function(){function B(I){return k(I,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":h})}),(0,e.createComponentVNode)(2,o.Table,{children:N.map(function(B){return(0,e.createComponentVNode)(2,V.TableRow,{children:B.map(function(I){return(0,e.createComponentVNode)(2,V.TableCell,{children:(0,e.createComponentVNode)(2,u,{number:I})},I)})},B[0])})})]})},u=function(m,d){var l=(0,t.useBackend)(d),s=l.act,i=l.data,p=m.number;return(0,e.createComponentVNode)(2,o.Button,{fluid:!0,bold:!0,mb:"6px",content:p,textAlign:"center",fontSize:"60px",lineHeight:1.25,width:"80px",className:(0,a.classes)(["SecureStorage__Button","SecureStorage__Button--keypad","SecureStorage__Button--"+p]),onClick:function(){function v(){return s("keypad",{digit:p})}return v}()})}},56798:function(w,r,n){"use strict";r.__esModule=!0,r.SecurityRecords=void 0;var e=n(96524),a=n(78234),t=n(17899),o=n(24674),f=n(45493),V=n(99665),y=n(68159),S=n(27527),k=n(84537),C={"*Execute*":"execute","*Arrest*":"arrest",Incarcerated:"incarcerated",Parolled:"parolled",Released:"released",Demote:"demote",Search:"search",Monitor:"monitor"},u=function(h,N){(0,V.modalOpen)(h,"edit",{field:N.edit,value:N.value})},c=r.SecurityRecords=function(){function g(h,N){var b=(0,t.useBackend)(N),B=b.act,I=b.data,L=I.loginState,T=I.currentPage,A;if(L.logged_in)T===1?A=(0,e.createComponentVNode)(2,d):T===2&&(A=(0,e.createComponentVNode)(2,i));else return(0,e.createComponentVNode)(2,f.Window,{theme:"security",width:800,height:900,children:(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,S.LoginScreen)})});return(0,e.createComponentVNode)(2,f.Window,{theme:"security",width:800,height:900,children:[(0,e.createComponentVNode)(2,V.ComplexModal),(0,e.createComponentVNode)(2,f.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,m),A]})})]})}return g}(),m=function(h,N){var b=(0,t.useBackend)(N),B=b.act,I=b.data,L=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:L===1,onClick:function(){function A(){return B("page",{page:1})}return A}(),children:"List Records"}),L===2&&T&&!T.empty&&(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"file",selected:L===2,children:["Record: ",T.fields[0].value]})]})})},d=function(h,N){var b=(0,t.useBackend)(N),B=b.act,I=b.data,L=I.records,T=(0,t.useLocalState)(N,"searchText",""),A=T[0],x=T[1],E=(0,t.useLocalState)(N,"sortId","name"),M=E[0],j=E[1],P=(0,t.useLocalState)(N,"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,l,{id:"name",children:"Name"}),(0,e.createComponentVNode)(2,l,{id:"id",children:"ID"}),(0,e.createComponentVNode)(2,l,{id:"rank",children:"Assignment"}),(0,e.createComponentVNode)(2,l,{id:"fingerprint",children:"Fingerprint"}),(0,e.createComponentVNode)(2,l,{id:"status",children:"Criminal Status"})]}),L.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--"+C[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)},l=function(h,N){var b=(0,t.useLocalState)(N,"sortId","name"),B=b[0],I=b[1],L=(0,t.useLocalState)(N,"sortOrder",!0),T=L[0],A=L[1],x=h.id,E=h.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(h,N){var b=(0,t.useBackend)(N),B=b.act,I=b.data,L=I.isPrinting,T=(0,t.useLocalState)(N,"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:L,icon:L?"spinner":"print",iconSpin:!!L,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,j){return x(j)}return E}()})})]})},i=function(h,N){var b=(0,t.useBackend)(N),B=b.act,I=b.data,L=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:L,icon:L?"spinner":"print",iconSpin:!!L,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,p)})}),!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,preserveWhitespace:!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 u(N,x)}return M}()})]},E)})})})})}),(0,e.createComponentVNode)(2,v)],4)],0)},p=function(h,N){var b=(0,t.useBackend)(N),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(L,T){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:L.field,preserveWhitespace:!0,children:[(0,a.decodeHtmlEntities)(""+L.value),!!L.edit&&(0,e.createComponentVNode)(2,o.Button,{icon:"pen",ml:"0.5rem",mb:L.line_break?"1rem":"initial",onClick:function(){function A(){return u(N,L)}return A}()})]},T)})})}),!!I.has_photos&&I.photos.map(function(L,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:L,style:{width:"96px","margin-top":"5rem","margin-bottom":"0.5rem","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createVNode)(1,"br"),"Photo #",T+1]},T)})]})},v=function(h,N){var b=(0,t.useBackend)(N),B=b.act,I=b.data,L=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,V.modalOpen)(N,"comment_add")}return T}()}),children:L.comments.length===0?(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"No comments found."}):L.comments.map(function(T,A){return(0,e.createComponentVNode)(2,o.Box,{preserveWhitespace:!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(w,r,n){"use strict";r.__esModule=!0,r.SeedExtractor=void 0;var e=n(96524),a=n(78234),t=n(17899),o=n(24674),f=n(45493),V=n(99665);function y(l,s){var i=typeof Symbol!="undefined"&&l[Symbol.iterator]||l["@@iterator"];if(i)return(i=i.call(l)).next.bind(i);if(Array.isArray(l)||(i=S(l))||s&&l&&typeof l.length=="number"){i&&(l=i);var p=0;return function(){return p>=l.length?{done:!0}:{done:!1,value:l[p++]}}}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(l,s){if(l){if(typeof l=="string")return k(l,s);var i=Object.prototype.toString.call(l).slice(8,-1);if(i==="Object"&&l.constructor&&(i=l.constructor.name),i==="Map"||i==="Set")return Array.from(l);if(i==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i))return k(l,s)}}function k(l,s){(s==null||s>l.length)&&(s=l.length);for(var i=0,p=new Array(s);i=A},v=function(T,A){return T<=A},g=s.split(" "),h=[],N=function(){var T=I.value,A=T.split(":");if(A.length===0)return 0;if(A.length===1)return h.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=i;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=p,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":h.push(function(M){return E(M.lifespan,x)});break;case"e":case"end":case"endurance":h.push(function(M){return E(M.endurance,x)});break;case"m":case"mat":case"maturation":h.push(function(M){return E(M.maturation,x)});break;case"pr":case"prod":case"production":h.push(function(M){return E(M.production,x)});break;case"y":case"yield":h.push(function(M){return E(M.yield,x)});break;case"po":case"pot":case"potency":h.push(function(M){return E(M.potency,x)});break;case"s":case"stock":case"c":case"count":case"a":case"amount":h.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=N(),b!==0&&b)return b.v;return function(L){for(var T=0,A=h;T=1?Number(E):1)}return A}()})]})]})}},33454:function(w,r,n){"use strict";r.__esModule=!0,r.ShuttleConsole=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.ShuttleConsole=function(){function V(y,S){var k=(0,a.useBackend)(S),C=k.act,u=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:u.status?u.status:(0,e.createComponentVNode)(2,t.NoticeBox,{color:"red",children:"Shuttle Missing"})}),!!u.shuttle&&(!!u.docking_ports_len&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Send to ",children:u.docking_ports.map(function(c){return(0,e.createComponentVNode)(2,t.Button,{icon:"chevron-right",content:c.name,onClick:function(){function m(){return C("move",{move:c.id})}return m}()},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"})}),!!u.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:!u.status,onClick:function(){function c(){return C("request")}return c}()})})],0))]})})})})}return V}()},50451:function(w,r,n){"use strict";r.__esModule=!0,r.ShuttleManipulator=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.ShuttleManipulator=function(){function k(C,u){var c=(0,a.useLocalState)(u,"tabIndex",0),m=c[0],d=c[1],l=function(){function s(i){switch(i){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:m===0,onClick:function(){function s(){return d(0)}return s}(),icon:"info-circle",children:"Status"},"Status"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:m===1,onClick:function(){function s(){return d(1)}return s}(),icon:"file-import",children:"Templates"},"Templates"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:m===2,onClick:function(){function s(){return d(2)}return s}(),icon:"tools",children:"Modification"},"Modification")]}),l(m)]})})})}return k}(),V=function(C,u){var c=(0,a.useBackend)(u),m=c.act,d=c.data,l=d.shuttles;return(0,e.createComponentVNode)(2,t.Box,{children:l.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 i(){return m("jump_to",{type:"mobile",id:s.id})}return i}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Fast Travel",icon:"fast-forward",onClick:function(){function i(){return m("fast_travel",{id:s.id})}return i}()})]})]})},s.name)})})},y=function(C,u){var c=(0,a.useBackend)(u),m=c.act,d=c.data,l=d.templates_tabs,s=d.existing_shuttle,i=d.templates;return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Tabs,{children:l.map(function(p){return(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:p===s.id,icon:"file",onClick:function(){function v(){return m("select_template_category",{cat:p})}return v}(),children:p},p)})}),!!s&&i[s.id].templates.map(function(p){return(0,e.createComponentVNode)(2,t.Section,{title:p.name,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[p.description&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Description",children:p.description}),p.admin_notes&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Admin Notes",children:p.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 m("select_template",{shuttle_id:p.shuttle_id})}return v}()})})]})},p.name)})]})},S=function(C,u){var c=(0,a.useBackend)(u),m=c.act,d=c.data,l=d.existing_shuttle,s=d.selected;return(0,e.createComponentVNode)(2,t.Box,{children:[l?(0,e.createComponentVNode)(2,t.Section,{title:"Selected Shuttle: "+l.name,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:l.status}),l.timer&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Timer",children:l.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 i(){return m("jump_to",{type:"mobile",id:l.id})}return i}()})})]})}):(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 i(){return m("preview",{shuttle_id:s.shuttle_id})}return i}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Load",icon:"download",onClick:function(){function i(){return m("load",{shuttle_id:s.shuttle_id})}return i}()})]})]})}):(0,e.createComponentVNode)(2,t.Section,{title:"Selected Template: None"})]})}},99050:function(w,r,n){"use strict";r.__esModule=!0,r.Sleeper=void 0;var e=n(96524),a=n(36121),t=n(17899),o=n(24674),f=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"],C=r.Sleeper=function(){function i(p,v){var g=(0,t.useBackend)(v),h=g.act,N=g.data,b=N.hasOccupant,B=b?(0,e.createComponentVNode)(2,u):(0,e.createComponentVNode)(2,s);return(0,e.createComponentVNode)(2,f.Window,{width:550,height:760,children:(0,e.createComponentVNode)(2,f.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 i}(),u=function(p,v){var g=(0,t.useBackend)(v),h=g.act,N=g.data,b=N.occupant;return(0,e.createFragment)([(0,e.createComponentVNode)(2,c),(0,e.createComponentVNode)(2,m),(0,e.createComponentVNode)(2,l)],4)},c=function(p,v){var g=(0,t.useBackend)(v),h=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 I(){return h("auto_eject_dead_"+(B?"off":"on"))}return I}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"user-slash",content:"Eject",onClick:function(){function I(){return h("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: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)]})})},m=function(p,v){var g=(0,t.useBackend)(v),h=g.data,N=h.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(p,v){var g=(0,t.useBackend)(v),h=g.act,N=g.data,b=N.hasOccupant,B=N.isBeakerLoaded,I=N.beakerMaxSpace,L=N.beakerFreeSpace,T=N.dialysis,A=T&&L>0;return(0,e.createComponentVNode)(2,o.Section,{title:"Dialysis",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{disabled:!B||L<=0||!b,selected:A,icon:A?"toggle-on":"toggle-off",content:A?"Active":"Inactive",onClick:function(){function x(){return h("togglefilter")}return x}()}),(0,e.createComponentVNode)(2,o.Button,{disabled:!B,icon:"eject",content:"Eject",onClick:function(){function x(){return h("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:L/I,ranges:{good:[.5,1/0],average:[.25,.5],bad:[-1/0,.25]},children:[L,"u"]})})}):(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"No beaker loaded."})})},l=function(p,v){var g=(0,t.useBackend)(v),h=g.act,N=g.data,b=N.occupant,B=N.chemicals,I=N.maxchem,L=N.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"]}),L.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 h("chemical",{chemid:T.id,amount:M})}return P}()},j)})]})})},A)})})},s=function(p,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(w,r,n){"use strict";r.__esModule=!0,r.SlotMachine=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.SlotMachine=function(){function V(y,S){var k=(0,a.useBackend)(S),C=k.act,u=k.data;if(u.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 u.plays===1?c=u.plays+" player has tried their luck today!":c=u.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:u.money})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"10 credits to spin",children:(0,e.createComponentVNode)(2,t.Button,{icon:"coins",disabled:u.working,content:u.working?"Spinning...":"Spin",onClick:function(){function m(){return C("spin")}return m}()})})]}),(0,e.createComponentVNode)(2,t.Box,{bold:!0,lineHeight:2,color:u.resultlvl,children:u.result})]})})})}return V}()},26654:function(w,r,n){"use strict";r.__esModule=!0,r.Smartfridge=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.Smartfridge=function(){function V(y,S){var k=(0,a.useBackend)(S),C=k.act,u=k.data,c=u.secure,m=u.can_dry,d=u.drying,l=u.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:m?"Drying rack":"Contents",buttons:!!m&&(0,e.createComponentVNode)(2,t.Button,{width:4,icon:d?"power-off":"times",content:d?"On":"Off",selected:d,onClick:function(){function s(){return C("drying")}return s}()}),children:[!l&&(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."]})}),!!l&&l.slice().sort(function(s,i){return s.display_name.localeCompare(i.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 i(){return C("vend",{index:s.vend,amount:1})}return i}()}),(0,e.createComponentVNode)(2,t.NumberInput,{width:"40px",minValue:0,value:0,maxValue:s.quantity,step:1,stepPixelSize:3,onChange:function(){function i(p,v){return C("vend",{index:s.vend,amount:v})}return i}()}),(0,e.createComponentVNode)(2,t.Button,{width:4,icon:"arrow-down",content:"All",tooltip:"Dispense all.",tooltipPosition:"bottom-start",onClick:function(){function i(){return C("vend",{index:s.vend,amount:s.quantity})}return i}()})]})]},s)})]})]})})})}return V}()},71124:function(w,r,n){"use strict";r.__esModule=!0,r.Smes=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(92986),f=n(45493),V=1e3,y=r.Smes=function(){function S(k,C){var u=(0,a.useBackend)(C),c=u.act,m=u.data,d=m.capacityPercent,l=m.capacity,s=m.charge,i=m.inputAttempt,p=m.inputting,v=m.inputLevel,g=m.inputLevelMax,h=m.inputAvailable,N=m.outputPowernet,b=m.outputAttempt,B=m.outputting,I=m.outputLevel,L=m.outputLevelMax,T=m.outputUsed,A=d>=100&&"good"||p&&"average"||"bad",x=B&&"good"||s>0&&"average"||"bad";return(0,e.createComponentVNode)(2,f.Window,{width:340,height:345,children:(0,e.createComponentVNode)(2,f.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:i?"sync-alt":"times",selected:i,onClick:function(){function E(){return c("tryinput")}return E}(),children:i?"Auto":"Off"}),children:(0,e.createComponentVNode)(2,t.Box,{color:A,children:d>=100&&"Fully Charged"||p&&"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:h/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,j){return c("input",{target:j*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)(h)})]})}),(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: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: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/V,minValue:0,maxValue:L/V,step:5,stepPixelSize:4,format:function(){function E(M){return(0,o.formatPower)(M*V,1)}return E}(),onChange:function(){function E(M,j){return c("output",{target:j*V})}return E}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"forward",disabled:I===L,onClick:function(){function E(){return c("output",{adjust:1e4})}return E}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",disabled:I===L,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(w,r,n){"use strict";r.__esModule=!0,r.SolarControl=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.SolarControl=function(){function V(y,S){var k=(0,a.useBackend)(S),C=k.act,u=k.data,c=0,m=1,d=2,l=u.generated,s=u.generated_ratio,i=u.tracking_state,p=u.tracking_rate,v=u.connected_panels,g=u.connected_tracker,h=u.cdir,N=u.direction,b=u.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 C("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:l+" W"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Panel orientation",children:[h,"\xB0 (",N,")"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Tracker rotation",children:[i===d&&(0,e.createComponentVNode)(2,t.Box,{children:" Automated "}),i===m&&(0,e.createComponentVNode)(2,t.Box,{children:[" ",p,"\xB0/h (",b,")"," "]}),i===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:[i!==d&&(0,e.createComponentVNode)(2,t.NumberInput,{unit:"\xB0",step:1,stepPixelSize:1,minValue:0,maxValue:359,value:h,onDrag:function(){function B(I,L){return C("cdir",{cdir:L})}return B}()}),i===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:i===c,onClick:function(){function B(){return C("track",{track:c})}return B}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"clock-o",content:"Timed",selected:i===m,onClick:function(){function B(){return C("track",{track:m})}return B}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"sync",content:"Auto",selected:i===d,disabled:!g,onClick:function(){function B(){return C("track",{track:d})}return B}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Tracker rotation",children:[i===m&&(0,e.createComponentVNode)(2,t.NumberInput,{unit:"\xB0/h",step:1,stepPixelSize:1,minValue:-7200,maxValue:7200,value:p,format:function(){function B(I){var L=Math.sign(I)>0?"+":"-";return L+Math.abs(I)}return B}(),onDrag:function(){function B(I,L){return C("tdir",{tdir:L})}return B}()}),i===c&&(0,e.createComponentVNode)(2,t.Box,{lineHeight:"19px",children:" Tracker offline "}),i===d&&(0,e.createComponentVNode)(2,t.Box,{lineHeight:"19px",children:" Automated "})]})]})})]})})}return V}()},31202:function(w,r,n){"use strict";r.__esModule=!0,r.SpawnersMenu=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.SpawnersMenu=function(){function V(y,S){var k=(0,a.useBackend)(S),C=k.act,u=k.data,c=u.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(m){return(0,e.createComponentVNode)(2,t.Section,{mb:.5,title:m.name+" ("+m.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 C("jump",{ID:m.uids})}return d}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"chevron-circle-right",content:"Spawn",onClick:function(){function d(){return C("spawn",{ID:m.uids})}return d}()})],4),children:[(0,e.createComponentVNode)(2,t.Box,{style:{"white-space":"pre-wrap"},mb:1,fontSize:"16px",children:m.desc}),!!m.fluff&&(0,e.createComponentVNode)(2,t.Box,{style:{"white-space":"pre-wrap"},textColor:"#878787",fontSize:"14px",children:m.fluff}),!!m.important_info&&(0,e.createComponentVNode)(2,t.Box,{style:{"white-space":"pre-wrap"},mt:1,bold:!0,color:"red",fontSize:"18px",children:m.important_info})]},m.name)})})})})}return V}()},84800:function(w,r,n){"use strict";r.__esModule=!0,r.SpecMenu=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.SpecMenu=function(){function C(u,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 C}(),V=function(u,c){var m=(0,a.useBackend)(c),d=m.act,l=m.data,s=l.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 i(){return d("hemomancer")}return i}()}),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(u,c){var m=(0,a.useBackend)(c),d=m.act,l=m.data,s=l.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 i(){return d("umbrae")}return i}()}),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(u,c){var m=(0,a.useBackend)(c),d=m.act,l=m.data,s=l.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 i(){return d("gargantua")}return i}()}),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(u,c){var m=(0,a.useBackend)(c),d=m.act,l=m.data,s=l.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 i(){return d("dantalion")}return i}()}),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(w,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),f=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 C=(0,a.useBackend)(k),u=C.data,c=u.alarms||[],m=c.Fire||[],d=c.Atmosphere||[],l=c.Power||[];return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{title:"Fire Alarms",children:(0,e.createVNode)(1,"ul",null,[m.length===0&&(0,e.createVNode)(1,"li","color-good","Systems Nominal",16),m.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,[l.length===0&&(0,e.createVNode)(1,"li","color-good","Systems Nominal",16),l.map(function(s){return(0,e.createVNode)(1,"li","color-average",s,0,null,s)})],0)})],4)}return y}()},18565:function(w,r,n){"use strict";r.__esModule=!0,r.StationTraitsPanel=void 0;var e=n(96524),a=n(50640),t=n(67765),o=n(17899),f=n(24674),V=n(45493),y=function(u){return u[u.SetupFutureStationTraits=0]="SetupFutureStationTraits",u[u.ViewStationTraits=1]="ViewStationTraits",u}(y||{}),S=function(c,m){var d=(0,o.useBackend)(m),l=d.act,s=d.data,i=s.future_station_traits,p=(0,o.useLocalState)(m,"selectedFutureTrait",null),v=p[0],g=p[1],h=Object.fromEntries(s.valid_station_traits.map(function(b){return[b.name,b.path]})),N=Object.keys(h);return N.sort(),(0,e.createComponentVNode)(2,f.Box,{children:[(0,e.createComponentVNode)(2,f.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,f.Dropdown,{displayText:!v&&"Select trait to add...",onSelected:g,options:N,selected:v,width:"100%"})}),(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Button,{color:"green",icon:"plus",onClick:function(){function b(){if(v){var B=h[v],I=[B];if(i){var L,T=i.map(function(A){return A.path});if(T.indexOf(B)!==-1)return;I=(L=I).concat.apply(L,T)}l("setup_future_traits",{station_traits:I})}}return b}(),children:"Add"})})]}),(0,e.createComponentVNode)(2,f.Divider),Array.isArray(i)?i.length>0?(0,e.createComponentVNode)(2,f.Stack,{vertical:!0,fill:!0,children:i.map(function(b){return(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,children:b.name}),(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Button,{color:"red",icon:"times",onClick:function(){function B(){l("setup_future_traits",{station_traits:(0,a.filterMap)(i,function(I){if(I.path!==b.path)return I.path})})}return B}(),children:"Delete"})})]})},b.path)})}):(0,e.createComponentVNode)(2,f.Box,{textAlign:"center",children:[(0,e.createComponentVNode)(2,f.Box,{children:"No station traits will run next round."}),(0,e.createComponentVNode)(2,f.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 l("clear_future_traits")}return b}(),children:"Run Station Traits Normally"})]}):(0,e.createComponentVNode)(2,f.Box,{textAlign:"center",children:[(0,e.createComponentVNode)(2,f.Box,{children:"No future station traits are planned."}),(0,e.createComponentVNode)(2,f.Button,{mt:1,fluid:!0,color:"red",icon:"times",onClick:function(){function b(){return l("setup_future_traits",{station_traits:[]})}return b}(),children:"Prevent station traits from running next round"})]})]})},k=function(c,m){var d=(0,o.useBackend)(m),l=d.act,s=d.data;return s.current_traits.length>0?(0,e.createComponentVNode)(2,f.Stack,{vertical:!0,fill:!0,children:s.current_traits.map(function(i){return(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,children:i.name}),(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Button.Confirm,{content:"Revert",color:"red",disabled:s.too_late_to_revert||!i.can_revert,tooltip:!i.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 p(){return l("revert",{ref:i.ref})}return p}()})})]})},i.ref)})}):(0,e.createComponentVNode)(2,f.Box,{textAlign:"center",children:"There are no active station traits."})},C=r.StationTraitsPanel=function(){function u(c,m){var d=(0,o.useLocalState)(m,"station_traits_tab",y.ViewStationTraits),l=d[0],s=d[1],i;switch(l){case y.SetupFutureStationTraits:i=(0,e.createComponentVNode)(2,S);break;case y.ViewStationTraits:i=(0,e.createComponentVNode)(2,k);break;default:(0,t.exhaustiveCheck)(l)}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,f.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Tabs,{children:[(0,e.createComponentVNode)(2,f.Tabs.Tab,{icon:"eye",selected:l===y.ViewStationTraits,onClick:function(){function p(){return s(y.ViewStationTraits)}return p}(),children:"View"}),(0,e.createComponentVNode)(2,f.Tabs.Tab,{icon:"edit",selected:l===y.SetupFutureStationTraits,onClick:function(){function p(){return s(y.SetupFutureStationTraits)}return p}(),children:"Edit"})]})}),(0,e.createComponentVNode)(2,f.Stack.Item,{m:0,children:[(0,e.createComponentVNode)(2,f.Divider),i]})]})})})}return u}()},95147:function(w,r,n){"use strict";r.__esModule=!0,r.StripMenu=void 0;var e=n(96524),a=n(50640),t=n(17442),o=n(17899),f=n(24674),V=n(45493),y=5,S=5,k="64px",C=function(i){return i[0]+"/"+i[1]},u=function(i){var p=i.align,v=i.children;return(0,e.createComponentVNode)(2,f.Box,{style:{position:"absolute",left:p==="left"?"6px":"48px","text-align":p,"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"}},m={eyes:{displayName:"eyewear",gridSpot:C([1,0]),image:"inventory-glasses.png"},head:{displayName:"headwear",gridSpot:C([0,1]),image:"inventory-head.png"},mask:{displayName:"mask",gridSpot:C([1,1]),image:"inventory-mask.png"},pet_collar:{displayName:"collar",gridSpot:C([1,1]),image:"inventory-collar.png"},right_ear:{displayName:"right ear",gridSpot:C([0,2]),image:"inventory-ears.png"},left_ear:{displayName:"left ear",gridSpot:C([1,2]),image:"inventory-ears.png"},parrot_headset:{displayName:"headset",gridSpot:C([1,2]),image:"inventory-ears.png"},handcuffs:{displayName:"handcuffs",gridSpot:C([1,3])},legcuffs:{displayName:"legcuffs",gridSpot:C([1,4])},jumpsuit:{displayName:"uniform",gridSpot:C([2,0]),image:"inventory-uniform.png"},suit:{displayName:"suit",gridSpot:C([2,1]),image:"inventory-suit.png"},gloves:{displayName:"gloves",gridSpot:C([2,2]),image:"inventory-gloves.png"},right_hand:{displayName:"right hand",gridSpot:C([2,3]),image:"inventory-hand_r.png",additionalComponent:(0,e.createComponentVNode)(2,u,{align:"left",children:"R"})},left_hand:{displayName:"left hand",gridSpot:C([2,4]),image:"inventory-hand_l.png",additionalComponent:(0,e.createComponentVNode)(2,u,{align:"right",children:"L"})},shoes:{displayName:"shoes",gridSpot:C([3,1]),image:"inventory-shoes.png"},suit_storage:{displayName:"suit storage",gridSpot:C([4,0]),image:"inventory-suit_storage.png"},id:{displayName:"ID",gridSpot:C([4,1]),image:"inventory-id.png"},belt:{displayName:"belt",gridSpot:C([4,2]),image:"inventory-belt.png"},back:{displayName:"backpack",gridSpot:C([4,3]),image:"inventory-back.png"},left_pocket:{displayName:"left pocket",gridSpot:C([3,4]),image:"inventory-pocket.png"},right_pocket:{displayName:"right pocket",gridSpot:C([3,3]),image:"inventory-pocket.png"},pda:{displayName:"PDA",gridSpot:C([4,4]),image:"inventory-pda.png"}},d=function(s){return s[s.Completely=1]="Completely",s[s.Hidden=2]="Hidden",s}(d||{}),l=r.StripMenu=function(){function s(i,p){for(var v=(0,o.useBackend)(p),g=v.act,h=v.data,N=new Map,b=0,B=Object.keys(h.items);b=.01})},(0,a.sortBy)(function(T){return-T.amount})])(v.gases||[]),L=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,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:h/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:u(b),minValue:0,maxValue:u(1e4),ranges:{teal:[-1/0,u(80)],good:[u(80),u(373)],average:[u(373),u(1e3)],bad:[u(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:u(B),minValue:0,maxValue:u(5e4),ranges:{good:[u(1),u(300)],average:[-1/0,u(1e3)],bad:[u(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 p("back")}return T}()}),children:(0,e.createComponentVNode)(2,V.LabeledList,{children:I.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:L,children:(0,o.toFixed)(T.amount,2)+"%"})},T.name)})})})})]})})})}},30047:function(w,r,n){"use strict";r.__esModule=!0,r.SyndicateComputerSimple=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.SyndicateComputerSimple=function(){function V(y,S){var k=(0,a.useBackend)(S),C=k.act,u=k.data;return(0,e.createComponentVNode)(2,o.Window,{theme:"syndicate",width:400,height:400,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:u.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 m(){return C(c.buttonact)}return m}()}),children:[c.status,!!c.bullets&&(0,e.createComponentVNode)(2,t.Box,{children:c.bullets.map(function(m){return(0,e.createComponentVNode)(2,t.Box,{children:m},m)})})]},c.title)})})})}return V}()},28830:function(w,r,n){"use strict";r.__esModule=!0,r.TEG=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=function(S){return S.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1,")},V=r.TEG=function(){function y(S,k){var C=(0,a.useBackend)(k),u=C.act,c=C.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 m(){return u("check")}return m}()})]})})}):(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:[f(c.cold_inlet_temp)," K, ",f(c.cold_inlet_pressure)," kPa"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cold Outlet",children:[f(c.cold_outlet_temp)," K, ",f(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:[f(c.hot_inlet_temp)," K, ",f(c.hot_inlet_pressure)," kPa"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Hot Outlet",children:[f(c.hot_outlet_temp)," K, ",f(c.hot_outlet_pressure)," kPa"]})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Power Output",children:[f(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(w,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),f={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,m,d,l){return l===void 0&&(l=null),c.map(function(s){var i,p=(i=s[l])!=null?i:s;return(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:m.includes(s),content:p,onClick:function(){function v(){m.includes(s)?d(m.filter(function(g){var h;return((h=g[l])!=null?h:g)!==s})):d([s].concat(m))}return v}()},p)})},k=r.TTSSeedsExplorer=function(){function u(){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,C)})})})}return u}(),C=r.TTSSeedsExplorerContent=function(){function u(c,m){var d=(0,a.useBackend)(m),l=d.act,s=d.data,i=s.providers,p=s.seeds,v=s.selected_seed,g=s.phrases,h=s.donator_level,N=s.character_gender,b=p.map(function(ee){return ee.category}).filter(function(ee,oe,ue){return ue.indexOf(ee)===oe}),B=p.map(function(ee){return ee.gender}).filter(function(ee,oe,ue){return ue.indexOf(ee)===oe}),I=p.map(function(ee){return ee.required_donator_level}).filter(function(ee,oe,ue){return ue.indexOf(ee)===oe}).sort(function(ee,oe){return ee-oe}).map(function(ee){return f[ee]}),L=(0,a.useLocalState)(m,"selectedProviders",i),T=L[0],A=L[1],x=(0,a.useLocalState)(m,"selectedGenders",B.includes(V[N])?[V[N]]:B),E=x[0],M=x[1],j=(0,a.useLocalState)(m,"selectedCategories",b),P=j[0],R=j[1],D=(0,a.useLocalState)(m,"selectedDonatorLevels",I.includes(f[h])?I.slice(0,I.indexOf(f[h])+1):I),F=D[0],W=D[1],_=(0,a.useLocalState)(m,"selectedPhrase",g[0]),K=_[0],H=_[1],X=(0,a.useLocalState)(m,"searchtext",""),Y=X[0],J=X[1],le=S(i,T,A,"name"),ce=S(B,E,M),fe=S(b,P,R),pe=S(I,F,W),he=(0,e.createComponentVNode)(2,t.Dropdown,{options:g,selected:K.replace(/(.{60})..+/,"$1..."),width:"445px",onSelected:function(){function ee(oe){return H(oe)}return ee}()}),te=(0,e.createComponentVNode)(2,t.Input,{placeholder:"\u041D\u0430\u0437\u0432\u0430\u043D\u0438\u0435...",width:"100%",onInput:function(){function ee(oe,ue){return J(ue)}return ee}()}),Q=p.sort(function(ee,oe){var ue=ee.name.toLowerCase(),re=oe.name.toLowerCase();return ue>re?1:ue0&&v!==ee.name?"orange":"white",children:ee.name}),(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,opacity:v===ee.name?.5:.25,textAlign:"left",children:ee.category}),(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,opacity:.5,textColor:v===ee.name?"white":y[ee.gender].color,textAlign:"left",children:(0,e.createComponentVNode)(2,t.Icon,{mx:1,size:1.2,name:y[ee.gender].icon})}),(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,opacity:.5,textColor:"white",textAlign:"right",children:ee.required_donator_level>0&&(0,e.createFragment)([f[ee.required_donator_level],(0,e.createComponentVNode)(2,t.Icon,{ml:1,mr:2,name:"coins"})],0)})]},ee.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:le}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u041F\u043E\u043B",children:ce}),(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:he}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u041F\u043E\u0438\u0441\u043A",children:te})]})})}),(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 ee(){return R([])}return ee}()}),(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 ee(){return R(b)}return ee}()})],4),children:fe})}),(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 ("+Q.length+"/"+p.length+")",children:(0,e.createComponentVNode)(2,t.Table,{children:ae})})}),(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 u}()},39903:function(w,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),f=r.TachyonArray=function(){function y(S,k){var C=(0,a.useBackend)(k),u=C.act,c=C.data,m=c.records,d=m===void 0?[]:m,l=c.explosion_target,s=c.toxins_tech,i=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:l}),(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||i,align:"center",onClick:function(){function p(){return u("print_logs")}return p}()}),(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"trash",content:"Delete All Logs",disabled:!d.length,color:"bad",align:"center",onClick:function(){function p(){return u("delete_logs")}return p}()})]})]})}),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 C=(0,a.useBackend)(k),u=C.act,c=C.data,m=c.records,d=m===void 0?[]:m;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(l){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:l.logged_time}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:l.epicenter}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:l.actual_size_message}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:l.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 u("delete_record",{index:l.index})}return s}()})})]},l.index)})]})})})})}return y}()},17068:function(w,r,n){"use strict";r.__esModule=!0,r.Tank=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.Tank=function(){function V(y,S){var k=(0,a.useBackend)(S),C=k.act,u=k.data,c;return u.has_mask?c=(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Mask",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,width:"76%",icon:u.connected?"check":"times",content:u.connected?"Internals On":"Internals Off",selected:u.connected,onClick:function(){function m(){return C("internals")}return m}()})}):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:u.tankPressure/1013,ranges:{good:[.35,1/0],average:[.15,.35],bad:[-1/0,.15]},children:u.tankPressure+" kPa"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Release Pressure",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"fast-backward",disabled:u.ReleasePressure===u.minReleasePressure,tooltip:"Min",onClick:function(){function m(){return C("pressure",{pressure:"min"})}return m}()}),(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,value:parseFloat(u.releasePressure),width:"65px",unit:"kPa",minValue:u.minReleasePressure,maxValue:u.maxReleasePressure,onChange:function(){function m(d,l){return C("pressure",{pressure:l})}return m}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",disabled:u.ReleasePressure===u.maxReleasePressure,tooltip:"Max",onClick:function(){function m(){return C("pressure",{pressure:"max"})}return m}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"undo",content:"",disabled:u.ReleasePressure===u.defaultReleasePressure,tooltip:"Reset",onClick:function(){function m(){return C("pressure",{pressure:"reset"})}return m}()})]}),c]})})})})}return V}()},69161:function(w,r,n){"use strict";r.__esModule=!0,r.TankDispenser=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.TankDispenser=function(){function V(y,S){var k=(0,a.useBackend)(S),C=k.act,u=k.data,c=u.o_tanks,m=u.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 C("oxygen")}return d}()})}),(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{mt:1,fluid:!0,content:"Dispense Plasma Tank ("+m+")",disabled:m===0,icon:"arrow-circle-down",onClick:function(){function d(){return C("plasma")}return d}()})})]})})})}return V}()},87394:function(w,r,n){"use strict";r.__esModule=!0,r.TcommsCore=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.TcommsCore=function(){function C(u,c){var m=(0,a.useBackend)(c),d=m.act,l=m.data,s=l.ion,i=(0,a.useLocalState)(c,"tabIndex",0),p=i[0],v=i[1],g=function(){function h(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 h}();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:p===0,onClick:function(){function h(){return v(0)}return h}(),children:"Configuration"},"ConfigPage"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{icon:"link",selected:p===1,onClick:function(){function h(){return v(1)}return h}(),children:"Device Linkage"},"LinkagePage"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{icon:"user-times",selected:p===2,onClick:function(){function h(){return v(2)}return h}(),children:"User Filtering"},"FilterPage")]}),g(p)]})})}return C}(),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(u,c){var m=(0,a.useBackend)(c),d=m.act,l=m.data,s=l.active,i=l.sectors_available,p=l.nttc_toggle_jobs,v=l.nttc_toggle_job_color,g=l.nttc_toggle_name_color,h=l.nttc_toggle_command_bold,N=l.nttc_job_indicator_type,b=l.nttc_setting_language,B=l.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 d("toggle_active")}return I}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Sector Coverage",children:i})]})}),(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:p?"On":"Off",selected:p,icon:"user-tag",onClick:function(){function I(){return d("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 d("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 d("nttc_toggle_name_color")}return I}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Command Amplification",children:(0,e.createComponentVNode)(2,t.Button,{content:h?"On":"Off",selected:h,icon:"volume-up",onClick:function(){function I(){return d("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:N||"Unset",selected:N,icon:"pencil-alt",onClick:function(){function I(){return d("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 d("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 d("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 d("import")}return I}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Export Configuration",icon:"file-export",onClick:function(){function I(){return d("export")}return I}()})]})],4)},S=function(u,c){var m=(0,a.useBackend)(c),d=m.act,l=m.data,s=l.link_password,i=l.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 p(){return d("change_password")}return p}()})})}),(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"})]}),i.map(function(p){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:p.addr}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:p.net_id}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:p.sector}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:p.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:p.addr})}return v}()})})]},p.addr)})]})]})},k=function(u,c){var m=(0,a.useBackend)(c),d=m.act,l=m.data,s=l.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 i(){return d("add_filter")}return i}()}),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(i){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:i}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Remove",icon:"user-times",onClick:function(){function p(){return d("remove_filter",{user:i})}return p}()})})]},i)})]})})}},55684:function(w,r,n){"use strict";r.__esModule=!0,r.TcommsRelay=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.TcommsRelay=function(){function S(k,C){var u=(0,a.useBackend)(C),c=u.act,m=u.data,d=m.linked,l=m.active,s=m.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:l?"On":"Off",selected:l,icon:"power-off",onClick:function(){function i(){return c("toggle_active")}return i}()})}),(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 i(){return c("network_id")}return i}()})}),(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,C){var u=(0,a.useBackend)(C),c=u.act,m=u.data,d=m.linked_core_id,l=m.linked_core_addr,s=m.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:l}),(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 i(){return c("toggle_hidden_link")}return i}()})}),(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 i(){return c("unlink")}return i}()})})]})})},y=function(k,C){var u=(0,a.useBackend)(C),c=u.act,m=u.data,d=m.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(l){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:l.addr}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:l.net_id}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:l.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:l.addr})}return s}()})})]},l.addr)})]})})}},81088:function(w,r,n){"use strict";r.__esModule=!0,r.Teleporter=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.Teleporter=function(){function V(y,S){var k=(0,a.useBackend)(S),C=k.act,u=k.data,c=u.targetsTeleport?u.targetsTeleport:{},m=0,d=1,l=2,s=u.calibrated,i=u.calibrating,p=u.powerstation,v=u.regime,g=u.teleporterhub,h=u.target,N=u.locked,b=u.adv_beacon_allowed,B=u.advanced_beacon_locking;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:[(!p||!g)&&(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Error",children:[g,!p&&(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:" Powerstation not linked "}),p&&!g&&(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:" Teleporter hub not linked "})]}),p&&g&&(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Status",buttons:(0,e.createFragment)(!!b&&(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{inline:!0,color:"label",children:"Advanced Beacon Locking:\xA0"}),(0,e.createComponentVNode)(2,t.Button,{selected:B,icon:B?"toggle-on":"toggle-off",content:B?"Enabled":"Disabled",onClick:function(){function I(){return C("advanced_beacon_locking",{on:B?0:1})}return I}()})],4),0),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===m&&(0,e.createComponentVNode)(2,t.Dropdown,{width:18.2,selected:h,disabled:i,options:Object.keys(c),color:h!=="None"?"default":"bad",onSelected:function(){function I(L){return C("settarget",{x:c[L].x,y:c[L].y,z:c[L].z,tptarget:c[L].pretarget})}return I}()}),v===d&&(0,e.createComponentVNode)(2,t.Dropdown,{width:18.2,selected:h,disabled:i,options:Object.keys(c),color:h!=="None"?"default":"bad",onSelected:function(){function I(L){return C("settarget",{x:c[L].x,y:c[L].y,z:c[L].z,tptarget:c[L].pretarget})}return I}()}),v===l&&(0,e.createComponentVNode)(2,t.Box,{children:h})]})]}),(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 I(){return C("setregime",{regime:d})}return I}()})}),(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===m?"good":null,onClick:function(){function I(){return C("setregime",{regime:m})}return I}()})}),(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===l?"good":null,disabled:!N,onClick:function(){function I(){return C("setregime",{regime:l})}return I}()})})]}),(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:[h!=="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:i&&(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||i),onClick:function(){function I(){return C("calibrate")}return I}()})})]}),h==="None"&&(0,e.createComponentVNode)(2,t.Box,{lineHeight:"21px",children:"No target set"})]})]})]}),!!(N&&p&&g&&v===l)&&(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 I(){return C("load")}return I}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Eject",tooltip:"Ejects the GPS device",icon:"eject",onClick:function(){function I(){return C("eject")}return I}()})]})})]})})})})}return V}()},65875:function(w,r,n){"use strict";r.__esModule=!0,r.TelescienceConsole=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.TelescienceConsole=function(){function V(y,S){var k=(0,a.useBackend)(S),C=k.act,u=k.data,c=u.last_msg,m=u.linked_pad,d=u.held_gps,l=u.lastdata,s=u.power_levels,i=u.current_max_power,p=u.current_power,v=u.current_bearing,g=u.current_elevation,h=u.current_sector,N=u.working,b=u.max_z,B=(0,a.useLocalState)(S,"dummyrot",v),I=B[0],L=B[1];return(0,e.createComponentVNode)(2,o.Window,{width:400,height:500,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Status",children:(0,e.createFragment)([c,!(l.length>0)||(0,e.createVNode)(1,"ul",null,l.map(function(T){return(0,e.createVNode)(1,"li",null,T,0,null,T)}),0)],0)}),(0,e.createComponentVNode)(2,t.Section,{title:"Telepad Status",children:m===1?(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Current Bearing",children:(0,e.createComponentVNode)(2,t.Box,{inline:!0,position:"relative",children:[(0,e.createComponentVNode)(2,t.NumberInput,{unit:"\xB0",width:6.1,lineHeight:1.5,step:.1,minValue:0,maxValue:360,disabled:N,value:v,onDrag:function(){function T(A,x){return L(x)}return T}(),onChange:function(){function T(A,x){return C("setbear",{bear:x})}return T}()}),(0,e.createComponentVNode)(2,t.Icon,{ml:1,size:1,name:"arrow-up",rotation:I})]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Current Elevation",children:(0,e.createComponentVNode)(2,t.NumberInput,{width:6.1,lineHeight:1.5,step:.1,minValue:0,maxValue:100,disabled:N,value:g,onChange:function(){function T(A,x){return C("setelev",{elev:x})}return T}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power Level",children:s.map(function(T,A){return(0,e.createComponentVNode)(2,t.Button,{content:T,selected:p===T,disabled:A>=i-1||N,onClick:function(){function x(){return C("setpwr",{pwr:A+1})}return x}()},T)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Target Sector",children:(0,e.createComponentVNode)(2,t.NumberInput,{width:6.1,lineHeight:1.5,step:1,minValue:2,maxValue:b,value:h,disabled:N,onChange:function(){function T(A,x){return C("setz",{newz:x})}return T}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Telepad Actions",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Send",disabled:N,onClick:function(){function T(){return C("pad_send")}return T}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Receive",disabled:N,onClick:function(){function T(){return C("pad_receive")}return T}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Crystal Maintenance",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Recalibrate Crystals",disabled:N,onClick:function(){function T(){return C("recal_crystals")}return T}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Eject Crystals",disabled:N,onClick:function(){function T(){return C("eject_crystals")}return T}()})]})]}):(0,e.createFragment)([(0,e.createTextVNode)("No pad linked to console. Please use a multitool to link a pad.")],4)}),(0,e.createComponentVNode)(2,t.Section,{title:"GPS Actions",children:d===1?(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{disabled:d===0||N,content:"Eject GPS",onClick:function(){function T(){return C("eject_gps")}return T}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:d===0||N,content:"Store Coordinates",onClick:function(){function T(){return C("store_to_gps")}return T}()})],4):(0,e.createFragment)([(0,e.createTextVNode)("Please insert a GPS to store coordinates to it.")],4)})]})})}return V}()},96150:function(w,r,n){"use strict";r.__esModule=!0,r.TempGun=void 0;var e=n(96524),a=n(36121),t=n(17899),o=n(24674),f=n(45493),V=r.TempGun=function(){function C(u,c){var m=(0,t.useBackend)(c),d=m.act,l=m.data,s=l.target_temperature,i=l.temperature,p=l.max_temp,v=l.min_temp;return(0,e.createComponentVNode)(2,f.Window,{width:250,height:121,children:(0,e.createComponentVNode)(2,f.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:p,value:s,format:function(){function g(h){return(0,a.toFixed)(h,2)}return g}(),width:"50px",onDrag:function(){function g(h,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(i),bold:i>500-273.15,children:[(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:(0,a.round)(i,2)}),"\xB0C"]})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Power Cost",children:(0,e.createComponentVNode)(2,o.Box,{color:k(i),children:S(i)})})]})})})})}return C}(),y=function(u){return u<=-100?"blue":u<=0?"teal":u<=100?"green":u<=200?"orange":"red"},S=function(u){return u<=100-273.15?"High":u<=250-273.15?"Medium":u<=300-273.15?"Low":u<=400-273.15?"Medium":"High"},k=function(u){return u<=100-273.15?"red":u<=250-273.15?"orange":u<=300-273.15?"green":u<=400-273.15?"orange":"red"}},95484:function(w,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),f=n(68100),V=n(24674),y=n(45493),S=r.sanitizeMultiline=function(){function c(m){return m.replace(/(\n|\r\n){3,}/,"\n\n")}return c}(),k=r.removeAllSkiplines=function(){function c(m){return m.replace(/[\r\n]+/,"")}return c}(),C=r.TextInputModal=function(){function c(m,d){var l=(0,o.useBackend)(d),s=l.act,i=l.data,p=i.max_length,v=i.message,g=v===void 0?"":v,h=i.multiline,N=i.placeholder,b=i.timeout,B=i.title,I=(0,o.useLocalState)(d,"input",N||""),L=I[0],T=I[1],A=function(){function M(j){if(j!==L){var P=h?S(j):k(j);T(P)}}return M}(),x=h||L.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===f.KEY_ENTER&&(!x||!j.shiftKey)&&s("submit",{entry:L}),P===f.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,u,{input:L,onType:A})}),(0,e.createComponentVNode)(2,V.Stack.Item,{children:(0,e.createComponentVNode)(2,t.InputButtons,{input:L,message:L.length+"/"+p})})]})})})]})}return c}(),u=function(m,d){var l=(0,o.useBackend)(d),s=l.act,i=l.data,p=i.max_length,v=i.multiline,g=m.input,h=m.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:p,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,I){return h(I)}return b}(),placeholder:"Type something...",value:g})}},378:function(w,r,n){"use strict";r.__esModule=!0,r.ThermoMachine=void 0;var e=n(96524),a=n(36121),t=n(17899),o=n(24674),f=n(45493),V=r.ThermoMachine=function(){function y(S,k){var C=(0,t.useBackend)(k),u=C.act,c=C.data;return(0,e.createComponentVNode)(2,f.Window,{width:300,height:225,children:(0,e.createComponentVNode)(2,f.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 m(d){return(0,a.toFixed)(d,2)}return m}()})," K"]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Pressure",children:[(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:c.pressure,format:function(){function m(d){return(0,a.toFixed)(d,2)}return m}()})," 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 m(){return u("power")}return m}()}),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 m(){return u("cooling")}return m}()})}),(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 m(){return u("target",{target:c.min})}return m}()}),(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 m(d,l){return u("target",{target:l})}return m}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"fast-forward",disabled:c.target===c.max,title:"Maximum Temperature",onClick:function(){function m(){return u("target",{target:c.max})}return m}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"sync",disabled:c.target===c.initial,title:"Room Temperature",onClick:function(){function m(){return u("target",{target:c.initial})}return m}()})]})]})})]})})}return y}()},3365:function(w,r,n){"use strict";r.__esModule=!0,r.TransferValve=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.TransferValve=function(){function V(y,S){var k=(0,a.useBackend)(S),C=k.act,u=k.data,c=u.tank_one,m=u.tank_two,d=u.attached_device,l=u.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:l?"unlock":"lock",content:l?"Open":"Closed",disabled:!c||!m,onClick:function(){function s(){return C("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 C("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 C("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 C("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:m?(0,e.createComponentVNode)(2,t.Button,{icon:"eject",content:m,disabled:!m,onClick:function(){function s(){return C("tanktwo")}return s}()}):(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"No Tank"})})})})]})})}return V}()},13860:function(w,r,n){"use strict";r.__esModule=!0,r.TurbineComputer=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=n(36121),V=r.TurbineComputer=function(){function k(C,u){var c=(0,a.useBackend)(u),m=c.act,d=c.data,l=d.compressor,s=d.compressor_broken,i=d.turbine,p=d.turbine_broken,v=d.online,g=!!(l&&!s&&i&&!p);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 h(){return m("toggle_power")}return h}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"times",content:"Disconnect",onClick:function(){function h(){return m("disconnect")}return h}()})],4),children:g?(0,e.createComponentVNode)(2,S):(0,e.createComponentVNode)(2,y)})})})}return k}(),y=function(C,u){var c=(0,a.useBackend)(u),m=c.data,d=m.compressor,l=m.compressor_broken,s=m.turbine,i=m.turbine_broken,p=m.online;return(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Compressor Status",color:!d||l?"bad":"good",children:l?d?"Offline":"Missing":"Online"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Turbine Status",color:!s||i?"bad":"good",children:i?s?"Offline":"Missing":"Online"})]})},S=function(C,u){var c=(0,a.useBackend)(u),m=c.data,d=m.rpm,l=m.temperature,s=m.power,i=m.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:[l," 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:i,minValue:0,maxValue:100,ranges:{good:[-1/0,60],average:[60,90],bad:[90,1/0]},children:(0,f.toFixed)(i)+"%"})})]})}},22169:function(w,r,n){"use strict";r.__esModule=!0,r.Uplink=void 0;var e=n(96524),a=n(50640),t=n(74041),o=n(78234),f=n(17899),V=n(24674),y=n(45493),S=n(99665),k=function(v){switch(v){case 0:return(0,e.createComponentVNode)(2,u);case 1:return(0,e.createComponentVNode)(2,c);case 2:return(0,e.createComponentVNode)(2,i);default:return"SOMETHING WENT VERY WRONG PLEASE AHELP"}},C=r.Uplink=function(){function p(v,g){var h=(0,f.useBackend)(g),N=h.act,b=h.data,B=b.cart,I=(0,f.useLocalState)(g,"tabIndex",0),L=I[0],T=I[1],A=(0,f.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,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:L===0,onClick:function(){function M(){T(0),E("")}return M}(),icon:"store",children:"View Market"},"PurchasePage"),(0,e.createComponentVNode)(2,V.Tabs.Tab,{selected:L===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:L===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(L)})]})})]})}return p}(),u=function(v,g){var h=(0,f.useBackend)(g),N=h.act,b=h.data,B=b.crystals,I=b.cats,L=(0,f.useLocalState)(g,"uplinkItems",I[0].items),T=L[0],A=L[1],x=(0,f.useLocalState)(g,"searchText",""),E=x[0],M=x[1],j=function(_,K){K===void 0&&(K="");var H=(0,o.createSearch)(K,function(X){var Y=X.hijack_only===1?"|hijack":"";return X.name+"|"+X.desc+"|"+X.cost+"tc"+Y});return(0,t.flow)([(0,a.filter)(function(X){return X==null?void 0:X.name}),K&&(0,a.filter)(H),(0,a.sortBy)(function(X){return X==null?void 0:X.name})])(_)},P=function(_){if(M(_),_==="")return A(I[0].items);A(j(I.map(function(K){return K.items}).flat(),_))},R=(0,f.useLocalState)(g,"showDesc",1),D=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:D,onClick:function(){function W(){return F(!D)}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:I.map(function(W){return(0,e.createComponentVNode)(2,V.Tabs.Tab,{selected:E!==""?!1:W.items===T,onClick:function(){function _(){A(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:D},(0,o.decodeHtmlEntities)(W.name))},(0,o.decodeHtmlEntities)(W.name))})})})})]})]})},c=function(v,g){var h=(0,f.useBackend)(g),N=h.act,b=h.data,B=b.cart,I=b.crystals,L=b.cart_price,T=(0,f.useLocalState)(g,"showDesc",0),A=T[0],x=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: "+I+"TC",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,V.Button.Checkbox,{content:"Show Descriptions",checked:A,onClick:function(){function E(){return x(!A)}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 ("+L+"TC)",icon:"shopping-cart",onClick:function(){function E(){return N("purchase_cart")}return E}(),disabled:!B||L>I})],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:A,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,m)]})},m=function(v,g){var h=(0,f.useBackend)(g),N=h.act,b=h.data,B=b.cats,I=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 L(){return N("shuffle_lucky_numbers")}return L}()}),children:(0,e.createComponentVNode)(2,V.Stack,{wrap:!0,children:I.map(function(L){return B[L.cat].items[L.item]}).filter(function(L){return L!=null}).map(function(L,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:L})},T)})})})})},d=function(v,g){var h=v.i,N=v.showDecription,b=N===void 0?1:N,B=v.buttons,I=B===void 0?(0,e.createComponentVNode)(2,l,{i:h}):B;return(0,e.createComponentVNode)(2,V.Section,{title:(0,o.decodeHtmlEntities)(h.name),showBottom:b,buttons:I,children:b?(0,e.createComponentVNode)(2,V.Box,{italic:!0,children:(0,o.decodeHtmlEntities)(h.desc)}):null})},l=function(v,g){var h=(0,f.useBackend)(g),N=h.act,b=h.data,B=v.i,I=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 L(){return N("add_to_cart",{item:B.obj_path})}return L}(),disabled:B.cost>I}),(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 L(){return N("buyItem",{item:B.obj_path})}return L}(),disabled:B.cost>I})],4)},s=function(v,g){var h=(0,f.useBackend)(g),N=h.act,b=h.data,B=v.i,I=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 L(){return N("remove_from_cart",{item:B.obj_path})}return L}()}),(0,e.createComponentVNode)(2,V.Button,{icon:"minus",tooltip:B.limit===0&&"Discount already redeemed!",ml:"5px",onClick:function(){function L(){return N("set_cart_item_quantity",{item:B.obj_path,quantity:--B.amount})}return L}(),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 L(T,A){return N("set_cart_item_quantity",{item:B.obj_path,quantity:A})}return L}(),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 L(){return N("set_cart_item_quantity",{item:B.obj_path,quantity:++B.amount})}return L}(),disabled:B.limit!==-1&&B.amount>=B.limit})]})},i=function(v,g){var h=(0,f.useBackend)(g),N=h.act,b=h.data,B=b.exploitable,I=(0,f.useLocalState)(g,"selectedRecord",B[0]),L=I[0],T=I[1],A=(0,f.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,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,D){return E(D)}return P}()}),(0,e.createComponentVNode)(2,V.Tabs,{vertical:!0,children:j.map(function(P){return(0,e.createComponentVNode)(2,V.Tabs.Tab,{selected:P===L,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:L.name,children:(0,e.createComponentVNode)(2,V.LabeledList,{children:[(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Age",children:L.age}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Fingerprint",children:L.fingerprint}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Rank",children:L.rank}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Sex",children:L.sex}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Species",children:L.species})]})})})]})}},70547:function(w,r,n){"use strict";r.__esModule=!0,r.Vending=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=function(S,k){var C=(0,a.useBackend)(k),u=C.act,c=C.data,m=S.product,d=S.productStock,l=S.productImage,s=c.chargesMoney,i=c.user,p=c.usermoney,v=c.inserted_cash,g=c.vend_ready,h=c.inserted_item_name,N=!s||m.price===0,b="ERROR!",B="";N?(b="FREE",B="arrow-circle-down"):(b=m.price,B="shopping-cart");var I=!g||d===0||!N&&m.price>p&&m.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,"+l,style:{"vertical-align":"middle",width:"32px",margin:"0px","margin-left":"0px"}})}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:m.name}),(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,t.Box,{color:d<=0&&"bad"||d<=m.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:I,icon:B,content:b,textAlign:"left",onClick:function(){function L(){return u("vend",{inum:m.inum})}return L}()})})]})},V=r.Vending=function(){function y(S,k){var C=(0,a.useBackend)(k),u=C.act,c=C.data,m=c.user,d=c.usermoney,l=c.inserted_cash,s=c.chargesMoney,i=c.product_records,p=i===void 0?[]:i,v=c.hidden_records,g=v===void 0?[]:v,h=c.stock,N=c.vend_ready,b=c.inserted_item_name,B=c.panel_open,I=c.speaker,L=c.imagelist,T;return T=[].concat(p),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 u("eject_item",{})}return A}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{disabled:!l,icon:"money-bill-wave-alt",content:l?(0,e.createFragment)([(0,e.createVNode)(1,"b",null,l,0),(0,e.createTextVNode)(" credits")],0):"Dispense Change",tooltip:l?"Dispense Change":null,textAlign:"left",onClick:function(){function A(){return u("change")}return A}()})})]}),children:m&&(0,e.createComponentVNode)(2,t.Box,{children:["Welcome, ",(0,e.createVNode)(1,"b",null,m.name,0),", ",(0,e.createVNode)(1,"b",null,m.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:I?"check":"volume-mute",selected:I,content:"Speaker",textAlign:"left",onClick:function(){function A(){return u("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,f,{product:A,productStock:h[A.name],productImage:L[A.path]},A.name)})})})})]})})})}return y}()},33045:function(w,r,n){"use strict";r.__esModule=!0,r.VolumeMixer=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.VolumeMixer=function(){function V(y,S){var k=(0,a.useBackend)(S),C=k.act,u=k.data,c=u.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(m,d){return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{fontSize:"1.25rem",color:"label",mt:d>0&&"0.5rem",children:m.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 l(){return C("volume",{channel:m.num,volume:0})}return l}()})})}),(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:m.volume,onChange:function(){function l(s,i){return C("volume",{channel:m.num,volume:i})}return l}()})}),(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 l(){return C("volume",{channel:m.num,volume:100})}return l}()})})})]})})],4,m.num)})})})})}return V}()},53792:function(w,r,n){"use strict";r.__esModule=!0,r.VotePanel=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.VotePanel=function(){function V(y,S){var k=(0,a.useBackend)(S),C=k.act,u=k.data,c=u.remaining,m=u.question,d=u.choices,l=u.user_vote,s=u.counts,i=u.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:m,children:[(0,e.createComponentVNode)(2,t.Box,{mb:1.5,ml:.5,children:["Time remaining: ",Math.round(c/10),"s"]}),d.map(function(p){return(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{mb:1,fluid:!0,lineHeight:3,color:"translucent",multiLine:p,content:p+(i?" ("+(s[p]||0)+")":""),onClick:function(){function v(){return C("vote",{target:p})}return v}(),selected:p===l})},p)})]})})})}return V}()},64860:function(w,r,n){"use strict";r.__esModule=!0,r.Wires=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.Wires=function(){function V(y,S){var k=(0,a.useBackend)(S),C=k.act,u=k.data,c=u.wires||[],m=u.status||[],d=56+c.length*23+(status?0:15+m.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(l){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{className:"candystripe",label:l.color_name,labelColor:l.seen_color,color:l.seen_color,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{content:l.cut?"Mend":"Cut",onClick:function(){function s(){return C("cut",{wire:l.color})}return s}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Pulse",onClick:function(){function s(){return C("pulse",{wire:l.color})}return s}()}),(0,e.createComponentVNode)(2,t.Button,{content:l.attached?"Detach":"Attach",onClick:function(){function s(){return C("attach",{wire:l.color})}return s}()})],4),children:!!l.wire&&(0,e.createVNode)(1,"i",null,[(0,e.createTextVNode)("("),l.wire,(0,e.createTextVNode)(")")],0)},l.seen_color)})})})}),!!m.length&&(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{children:m.map(function(l){return(0,e.createComponentVNode)(2,t.Box,{color:"lightgray",children:l},l)})})})]})})})}return V}()},78262:function(w,r,n){"use strict";r.__esModule=!0,r.WizardApprenticeContract=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.WizardApprenticeContract=function(){function V(y,S){var k=(0,a.useBackend)(S),C=k.act,u=k.data,c=u.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 m(){return C("fire")}return m}()})]}),(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 m(){return C("translocation")}return m}()})]}),(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 m(){return C("restoration")}return m}()})]}),(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 m(){return C("stealth")}return m}()})]}),(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 m(){return C("honk")}return m}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Divider)]})})]})})}return V}()},57842:function(w,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 f(C,u){var c=typeof Symbol!="undefined"&&C[Symbol.iterator]||C["@@iterator"];if(c)return(c=c.call(C)).next.bind(c);if(Array.isArray(C)||(c=V(C))||u&&C&&typeof C.length=="number"){c&&(C=c);var m=0;return function(){return m>=C.length?{done:!0}:{done:!1,value:C[m++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function V(C,u){if(C){if(typeof C=="string")return y(C,u);var c=Object.prototype.toString.call(C).slice(8,-1);if(c==="Object"&&C.constructor&&(c=C.constructor.name),c==="Map"||c==="Set")return Array.from(C);if(c==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(c))return y(C,u)}}function y(C,u){(u==null||u>C.length)&&(u=C.length);for(var c=0,m=new Array(u);c0&&!b.includes(D.ref)&&!h.includes(D.ref),checked:h.includes(D.ref),onClick:function(){function F(){return B(D.ref)}return F}()},D.desc)})]})]})})}return C}()},79449:function(w,r,n){"use strict";r.__esModule=!0,r.AtmosScan=void 0;var e=n(96524),a=n(50640),t=n(17899),o=n(24674),f=function(S,k,C,u,c){return Su?"average":S>c?"bad":"good"},V=r.AtmosScan=function(){function y(S,k){var C=S.data.aircontents;return(0,e.createComponentVNode)(2,o.Box,{children:(0,e.createComponentVNode)(2,o.LabeledList,{children:(0,a.filter)(function(u){return u.val!=="0"||u.entry==="Pressure"||u.entry==="Temperature"})(C).map(function(u){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:u.entry,color:f(u.val,u.bad_low,u.poor_low,u.poor_high,u.bad_high),children:[u.val,u.units]},u.entry)})})})}return y}()},1496:function(w,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")},f=r.BeakerContents=function(){function V(y){var S=y.beakerLoaded,k=y.beakerContents,C=k===void 0?[]:k,u=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."})||C.length===0&&(0,e.createComponentVNode)(2,a.Stack.Item,{color:"label",children:"Beaker is empty."}),C.map(function(c,m){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),!!u&&(0,e.createComponentVNode)(2,a.Stack.Item,{children:u(c,m)})]},c.name)})]})}return V}();f.propTypes={beakerLoaded:t.bool,beakerContents:t.array,buttons:t.arrayOf(t.element)}},69521:function(w,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 f(V,y){var S=(0,a.useBackend)(y),k=S.act,C=S.data,u=C.locked,c=C.noaccess,m=C.maintpanel,d=C.on,l=C.autopatrol,s=C.canhack,i=C.emagged,p=C.remote_disabled;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.NoticeBox,{children:["Swipe an ID card to ",u?"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}()})}),l!==null&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Patrol",children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:l,content:"Auto Patrol",disabled:c,onClick:function(){function v(){return k("autopatrol")}return v}()})}),!!m&&(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:i?"bad":"good",children:i?"DISABLED!":"Enabled"})}),!!s&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Hacking",children:(0,e.createComponentVNode)(2,t.Button,{icon:"terminal",content:i?"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:!p,content:"AI Remote Control",disabled:c,onClick:function(){function v(){return k("disableremote")}return v}()})})]})})],4)}return f}()},99665:function(w,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={},f=r.modalOpen=function(){function C(u,c,m){var d=(0,a.useBackend)(u),l=d.act,s=d.data,i=Object.assign(s.modal?s.modal.args:{},m||{});l("modal_open",{id:c,arguments:JSON.stringify(i)})}return C}(),V=r.modalRegisterBodyOverride=function(){function C(u,c){o[u]=c}return C}(),y=r.modalAnswer=function(){function C(u,c,m,d){var l=(0,a.useBackend)(u),s=l.act,i=l.data;if(i.modal){var p=Object.assign(i.modal.args||{},d||{});s("modal_answer",{id:c,answer:m,arguments:JSON.stringify(p)})}}return C}(),S=r.modalClose=function(){function C(u,c){var m=(0,a.useBackend)(u),d=m.act;d("modal_close",{id:c})}return C}(),k=r.ComplexModal=function(){function C(u,c){var m=(0,a.useBackend)(c),d=m.data;if(d.modal){var l=d.modal,s=l.id,i=l.text,p=l.type,v,g=(0,e.createComponentVNode)(2,t.Button,{className:"Button--modal",icon:"arrow-left",content:"Cancel",onClick:function(){function L(){return S(c)}return L}()}),h,N,b="auto";if(o[s])h=o[s](d.modal,c);else if(p==="input"){var B=d.modal.value;v=function(){function L(T){return y(c,s,B)}return L}(),h=(0,e.createComponentVNode)(2,t.Input,{value:d.modal.value,placeholder:"ENTER to submit",width:"100%",my:"0.5rem",autofocus:!0,onChange:function(){function L(T,A){B=A}return L}()}),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 L(){return S(c)}return L}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"check",content:"Confirm",color:"good",float:"right",m:"0",onClick:function(){function L(){return y(c,s,B)}return L}()}),(0,e.createComponentVNode)(2,t.Box,{clear:"both"})]})}else if(p==="choice"){var I=typeof d.modal.choices=="object"?Object.values(d.modal.choices):d.modal.choices;h=(0,e.createComponentVNode)(2,t.Dropdown,{options:I,selected:d.modal.value,width:"100%",my:"0.5rem",onSelected:function(){function L(T){return y(c,s,T)}return L}()}),b="initial"}else p==="bento"?h=(0,e.createComponentVNode)(2,t.Stack,{spacingPrecise:"1",wrap:"wrap",my:"0.5rem",maxHeight:"1%",children:d.modal.choices.map(function(L,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 A(){return y(c,s,T+1)}return A}(),children:(0,e.createVNode)(1,"img",null,null,1,{src:L})})},T)})}):p==="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 L(){return y(c,s,0)}return L}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"check",content:d.modal.yes_text,color:"good",float:"right",m:"0",onClick:function(){function L(){return y(c,s,1)}return L}()}),(0,e.createComponentVNode)(2,t.Box,{clear:"both"})]}));return(0,e.createComponentVNode)(2,t.Modal,{maxWidth:u.maxWidth||window.innerWidth/2+"px",maxHeight:u.maxHeight||window.innerHeight/2+"px",onEnter:v,mx:"auto",overflowY:b,"padding-bottom":"5px",children:[i&&(0,e.createComponentVNode)(2,t.Box,{inline:!0,children:i}),o[s]&&g,h,N]})}}return C}()},98444:function(w,r,n){"use strict";r.__esModule=!0,r.CrewManifest=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(78234),f=n(38424),V=f.COLORS.department,y=["Captain","Head of Security","Chief Engineer","Chief Medical Officer","Research Director","Head of Personnel","Quartermaster"],S=function(m){return y.indexOf(m)!==-1?"green":"orange"},k=function(m){if(y.indexOf(m)!==-1)return!0},C=function(m){return m.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"})]}),m.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)})]})},u=r.CrewManifest=function(){function c(m,d){var l=(0,a.useBackend)(d),s=l.act,i;if(m.data)i=m.data;else{var p=(0,a.useBackend)(d),v=p.data;i=v}var g=i,h=g.manifest,N=h.heads,b=h.sec,B=h.eng,I=h.med,L=h.sci,T=h.ser,A=h.sup,x=h.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:C(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:C(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:C(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:C(I)}),(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:C(L)}),(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:C(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:C(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:C(x)})]})}return c}()},15113:function(w,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 f(V,y){var S=(0,t.useBackend)(y),k=S.act,C=S.data,u=C.large_buttons,c=C.swapped_buttons,m=V.input,d=V.message,l=V.disabled,s=(0,e.createComponentVNode)(2,a.Button,{color:"good",content:"Submit",bold:!!u,fluid:!!u,onClick:function(){function p(){return k("submit",{entry:m})}return p}(),textAlign:"center",tooltip:u&&d,disabled:l,width:!u&&6}),i=(0,e.createComponentVNode)(2,a.Button,{color:"bad",content:"Cancel",bold:!!u,fluid:!!u,onClick:function(){function p(){return k("cancel")}return p}(),textAlign:"center",width:!u&&6});return(0,e.createComponentVNode)(2,a.Flex,{fill:!0,align:"center",direction:c?"row-reverse":"row",justify:"space-around",children:[u?(0,e.createComponentVNode)(2,a.Flex.Item,{grow:!0,ml:c?.5:0,mr:c?0:.5,children:i}):(0,e.createComponentVNode)(2,a.Flex.Item,{children:i}),!u&&d&&(0,e.createComponentVNode)(2,a.Flex.Item,{children:(0,e.createComponentVNode)(2,a.Box,{color:"label",textAlign:"center",children:d})}),u?(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 f}()},26893:function(w,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 f(V,y){var S=(0,a.useBackend)(y),k=S.act,C=S.data,u=V.siliconUser,c=u===void 0?C.siliconUser:u,m=V.locked,d=m===void 0?C.locked:m,l=V.normallyLocked,s=l===void 0?C.normallyLocked:l,i=V.onLockStatusChange,p=i===void 0?function(){return k("lock")}:i,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 h(){p&&p(!d)}return h}()})})]})}):(0,e.createComponentVNode)(2,t.NoticeBox,{children:["Swipe ",g," to ",d?"unlock":"lock"," this interface."]})}return f}()},14299:function(w,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 f(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 f}()},68159:function(w,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 f(V,y){var S=(0,a.useBackend)(y),k=S.act,C=S.data,u=C.loginState;if(C)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: ",u.name," (",u.rank,")"]}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"eject",disabled:!u.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 f}()},27527:function(w,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 f(V,y){var S=(0,a.useBackend)(y),k=S.act,C=S.data,u=C.loginState,c=C.isAI,m=C.isRobot,d=C.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:u.id?u.id:"----------",ml:"0.5rem",onClick:function(){function l(){return k("login_insert")}return l}()})]}),(0,e.createComponentVNode)(2,t.Button,{icon:"sign-in-alt",disabled:!u.id,content:"Login",onClick:function(){function l(){return k("login_login",{login_type:1})}return l}()}),!!c&&(0,e.createComponentVNode)(2,t.Button,{icon:"sign-in-alt",content:"Login as AI",onClick:function(){function l(){return k("login_login",{login_type:2})}return l}()}),!!m&&(0,e.createComponentVNode)(2,t.Button,{icon:"sign-in-alt",content:"Login as Cyborg",onClick:function(){function l(){return k("login_login",{login_type:3})}return l}()}),!!d&&(0,e.createComponentVNode)(2,t.Button,{icon:"sign-in-alt",content:"CentComm Secure Login",onClick:function(){function l(){return k("login_login",{login_type:4})}return l}()})]})})})}return f}()},75201:function(w,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 f(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 f}();o.propTypes={operating:t.bool,name:t.string}},65435:function(w,r,n){"use strict";r.__esModule=!0,r.Signaler=void 0;var e=n(96524),a=n(36121),t=n(17899),o=n(24674),f=r.Signaler=function(){function V(y,S){var k=(0,t.useBackend)(S),C=k.act,u=y.data,c=u.code,m=u.frequency,d=u.minFrequency,l=u.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:l/10,value:m/10,format:function(){function s(i){return(0,a.toFixed)(i,1)}return s}(),width:"80px",onDrag:function(){function s(i,p){return C("freq",{freq:p})}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(i,p){return C("code",{code:p})}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 C("signal")}return s}()})]})}return V}()},77534:function(w,r,n){"use strict";r.__esModule=!0,r.SimpleRecords=void 0;var e=n(96524),a=n(17899),t=n(78234),o=n(74041),f=n(50640),V=n(24674),y=r.SimpleRecords=function(){function C(u,c){var m=u.data.records;return(0,e.createComponentVNode)(2,V.Box,{children:m?(0,e.createComponentVNode)(2,k,{data:u.data,recordType:u.recordType}):(0,e.createComponentVNode)(2,S,{data:u.data})})}return C}(),S=function(u,c){var m=(0,a.useBackend)(c),d=m.act,l=u.data.recordsList,s=(0,a.useLocalState)(c,"searchText",""),i=s[0],p=s[1],v=function(N,b){b===void 0&&(b="");var B=(0,t.createSearch)(b,function(I){return I.Name});return(0,o.flow)([(0,f.filter)(function(I){return I==null?void 0:I.Name}),b&&(0,f.filter)(B),(0,f.sortBy)(function(I){return I.Name})])(l)},g=v(l,i);return(0,e.createComponentVNode)(2,V.Box,{children:[(0,e.createComponentVNode)(2,V.Input,{fluid:!0,mb:1,placeholder:"Search records...",onInput:function(){function h(N,b){return p(b)}return h}()}),g.map(function(h){return(0,e.createComponentVNode)(2,V.Box,{children:(0,e.createComponentVNode)(2,V.Button,{mb:.5,content:h.Name,icon:"user",onClick:function(){function N(){return d("Records",{target:h.uid})}return N}()})},h)})]})},k=function(u,c){var m=(0,a.useBackend)(c),d=m.act,l=u.data.records,s=l.general,i=l.medical,p=l.security,v;switch(u.recordType){case"MED":v=(0,e.createComponentVNode)(2,V.Section,{level:2,title:"Medical Data",children:i?(0,e.createComponentVNode)(2,V.LabeledList,{children:[(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Blood Type",children:i.blood_type}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Minor Disabilities",children:i.mi_dis}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Details",children:i.mi_dis_d}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Major Disabilities",children:i.ma_dis}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Details",children:i.ma_dis_d}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Allergies",children:i.alg}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Details",children:i.alg_d}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Current Diseases",children:i.cdi}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Details",children:i.cdi_d}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Important Notes",preserveWhitespace:!0,children:i.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:p?(0,e.createComponentVNode)(2,V.LabeledList,{children:[(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Criminal Status",children:p.criminal}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Minor Crimes",children:p.mi_crim}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Details",children:p.mi_crim_d}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Major Crimes",children:p.ma_crim}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Details",children:p.ma_crim_d}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Important Notes",preserveWhitespace:!0,children:p.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(w,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 f(V,y){var S,k=(0,a.useBackend)(y),C=k.act,u=k.data,c=u.temp;if(c){var m=(S={},S[c.style]=!0,S);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,t.NoticeBox,Object.assign({},m,{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 C("cleartemp")}return d}()})})]})})))}}return f}()},24704:function(w,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 f(V,y){var S=(0,a.useBackend)(y),k=S.act,C=S.data;return(0,e.createComponentVNode)(2,t.AtmosScan,{data:C.app_data})}return f}()},4209:function(w,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 f(V,y){var S=(0,a.useBackend)(y),k=S.act,C=S.data,u=C.app_data,c=u.holder,m=u.dead,d=u.health,l=u.brute,s=u.oxy,i=u.tox,p=u.burn,v=u.temp;return c?(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:m?(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:i})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Burn Damage",children:(0,e.createComponentVNode)(2,t.Box,{color:"orange",children:p})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Brute Damage",children:(0,e.createComponentVNode)(2,t.Box,{color:"red",children:l})})]}):(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Error: No biological host found."})}return f}()},44430:function(w,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 f(V,y){var S=(0,a.useBackend)(y),k=S.act,C=S.data,u=C.app_data,c=u.master,m=u.dna,d=u.prime,l=u.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+" ("+m+")":"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:l||"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 f}()},3367:function(w,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 f(V,y){var S=(0,a.useBackend)(y),k=S.act,C=S.data,u=C.app_data,c=u.cable,m=u.machine,d=u.inprogress,l=u.progress,s=u.aborted,i;m?i=(0,e.createComponentVNode)(2,t.Button,{selected:!0,content:"Connected"}):i=(0,e.createComponentVNode)(2,t.Button,{content:c?"Extended":"Retracted",color:c?"orange":null,onClick:function(){function v(){return k("cable")}return v}()});var p;return m&&(p=(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:l,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:i}),p]})}return f}()},73395:function(w,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 f(V,y){var S=(0,a.useBackend)(y),k=S.act,C=S.data,u=C.app_data,c=u.available_software,m=u.installed_software,d=u.installed_toggles,l=u.available_ram,s=u.emotions,i=u.current_emotion,p=u.speech_verbs,v=u.current_speech_verb,g=u.available_chassises,h=u.current_chassis,N=[];return m.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:l}),(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>l,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:[m.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)}),m.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===i,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:p.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===h,onClick:function(){function B(){return k("setChassis",{chassis_to_change:b.icon})}return B}()},b.id)})})]})})}return f}()},37645:function(w,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 f(V,y){var S=(0,a.useBackend)(y),k=S.act,C=S.data;return(0,e.createComponentVNode)(2,t.CrewManifest,{data:C.app_data})}return f}()},15836:function(w,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 f(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 f}()},91737:function(w,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 f(V,y){var S=(0,a.useBackend)(y),k=S.act,C=S.data,u=C.app_data.active_convo;return u?(0,e.createComponentVNode)(2,t.ActiveConversation,{data:C.app_data}):(0,e.createComponentVNode)(2,t.MessengerList,{data:C.app_data})}return f}()},94077:function(w,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),f=r.pai_radio=function(){function V(y,S){var k=(0,a.useBackend)(S),C=k.act,u=k.data,c=u.app_data,m=c.minFrequency,d=c.maxFrequency,l=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:m/10,maxValue:d/10,value:l/10,format:function(){function i(p){return(0,t.toFixed)(p,1)}return i}(),onChange:function(){function i(p,v){return C("freq",{freq:v})}return i}()}),(0,e.createComponentVNode)(2,o.Button,{tooltip:"Reset",icon:"undo",onClick:function(){function i(){return C("freq",{freq:"145.9"})}return i}()})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Broadcast Nearby Speech",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function i(){return C("toggleBroadcast")}return i}(),selected:s,content:s?"Enabled":"Disabled"})})]})}return V}()},72621:function(w,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 f(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 f}()},53483:function(w,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 f(V,y){var S=(0,a.useBackend)(y),k=S.act,C=S.data;return(0,e.createComponentVNode)(2,t.Signaler,{data:C.app_data})}return f}()},21606:function(w,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 f(V,y){var S=(0,a.useBackend)(y),k=S.data;return(0,e.createComponentVNode)(2,t.AtmosScan,{data:k})}return f}()},12339:function(w,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 f(V,y){var S=(0,a.useBackend)(y),k=S.act,C=S.data,u=C.janitor,c=u.user_loc,m=u.mops,d=u.buckets,l=u.cleanbots,s=u.carts,i=u.janicarts;return(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Current Location",children:[c.x,",",c.y]}),m&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Mop Locations",children:m.map(function(p){return(0,e.createComponentVNode)(2,t.Box,{children:[p.x,",",p.y," (",p.dir,") - ",p.status]},p)})}),d&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Mop Bucket Locations",children:d.map(function(p){return(0,e.createComponentVNode)(2,t.Box,{children:[p.x,",",p.y," (",p.dir,") - [",p.volume,"/",p.max_volume,"]"]},p)})}),l&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cleanbot Locations",children:l.map(function(p){return(0,e.createComponentVNode)(2,t.Box,{children:[p.x,",",p.y," (",p.dir,") - ",p.status]},p)})}),s&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Janitorial Cart Locations",children:s.map(function(p){return(0,e.createComponentVNode)(2,t.Box,{children:[p.x,",",p.y," (",p.dir,") - [",p.volume,"/",p.max_volume,"]"]},p)})}),i&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Janicart Locations",children:i.map(function(p){return(0,e.createComponentVNode)(2,t.Box,{children:[p.x,",",p.y," (",p.direction_from_user,")"]},p)})})]})}return f}()},36615:function(w,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),f=r.pda_main_menu=function(){function V(y,S){var k=(0,t.useBackend)(S),C=k.act,u=k.data,c=u.owner,m=u.ownjob,d=u.idInserted,l=u.categories,s=u.pai,i=u.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,", ",m]}),(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 p(){return C("UpdateInfo")}return p}()})})]})})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Section,{title:"Functions",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:l.map(function(p){var v=u.apps[p];return!v||!v.length?null:(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:p,children:v.map(function(g){return(0,e.createComponentVNode)(2,o.Button,{icon:g.uid in i?g.notify_icon:g.icon,iconSpin:g.uid in i,color:g.uid in i?"red":"transparent",content:g.name,onClick:function(){function h(){return C("StartProgram",{program:g.uid})}return h}()},g.uid)})},p)})})})}),(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 p(){return C("pai",{option:1})}return p}()}),(0,e.createComponentVNode)(2,o.Button,{fluid:!0,icon:"eject",content:"Eject pAI",onClick:function(){function p(){return C("pai",{option:2})}return p}()})]})})]})}return V}()},99737:function(w,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 f(V,y){var S=(0,a.useBackend)(y),k=S.act,C=S.data;return(0,e.createComponentVNode)(2,t.CrewManifest)}return f}()},61597:function(w,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 f(V,y){var S=(0,a.useBackend)(y),k=S.data;return(0,e.createComponentVNode)(2,t.SimpleRecords,{data:k,recordType:"MED"})}return f}()},30709:function(w,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),f=r.pda_messenger=function(){function k(C,u){var c=(0,t.useBackend)(u),m=c.act,d=c.data,l=d.active_convo;return l?(0,e.createComponentVNode)(2,V,{data:d}):(0,e.createComponentVNode)(2,y,{data:d})}return k}(),V=r.ActiveConversation=function(){function k(C,u){var c=(0,t.useBackend)(u),m=c.act,d=C.data,l=d.convo_name,s=d.convo_job,i=d.messages,p=d.active_convo,v=(0,t.useLocalState)(u,"clipboardMode",!1),g=v[0],h=v[1],N=(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"Conversation with "+l+" ("+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 h(!g)}return b}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"comment",onClick:function(){function b(){return m("Message",{target:p})}return b}(),content:"Reply"})],4),children:(0,a.filter)(function(b){return b.target===p})(i).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 "+l+" ("+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 h(!g)}return b}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"comment",onClick:function(){function b(){return m("Message",{target:p})}return b}(),content:"Reply"})],4),children:(0,a.filter)(function(b){return b.target===p})(i).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 m("Clear",{option:"Convo"})}return b}()})})})}),N]})}return k}(),y=r.MessengerList=function(){function k(C,u){var c=(0,t.useBackend)(u),m=c.act,d=C.data,l=d.convopdas,s=d.pdas,i=d.charges,p=d.silent,v=d.toff,g=d.ringtone_list,h=d.ringtone,N=(0,t.useLocalState)(u,"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:!p,icon:p?"volume-mute":"volume-up",onClick:function(){function I(){return m("Toggle Ringer")}return I}(),children:["Ringer: ",p?"Off":"On"]}),(0,e.createComponentVNode)(2,o.Button,{color:v?"bad":"green",icon:"power-off",onClick:function(){function I(){return m("Toggle Messenger")}return I}(),children:["Messenger: ",v?"Off":"On"]}),(0,e.createComponentVNode)(2,o.Button,{icon:"trash",color:"bad",onClick:function(){function I(){return m("Clear",{option:"All"})}return I}(),children:"Delete All Conversations"}),(0,e.createComponentVNode)(2,o.Button,{icon:"bell",onClick:function(){function I(){return m("Ringtone")}return I}(),children:"Set Custom Ringtone"}),(0,e.createComponentVNode)(2,o.Button,{children:(0,e.createComponentVNode)(2,o.Dropdown,{selected:h,width:"100px",options:Object.keys(g),onSelected:function(){function I(L){return m("Available_Ringtones",{selected_ringtone:L})}return I}()})})]})}),!v&&(0,e.createComponentVNode)(2,o.Box,{children:[!!i&&(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:[i," charges left."]})})}),!l.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(L,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:d,pdas:l,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(C,u){var c=(0,t.useBackend)(u),m=c.act,d=C.data,l=C.pdas,s=C.title,i=C.msgAct,p=C.searchTerm,v=d.charges,g=d.plugins;return!l||!l.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:l.filter(function(h){return h.Name.toLowerCase().includes(p.toLowerCase())}).map(function(h){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:h.Name,onClick:function(){function N(){return m(i,{target:h.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 m("Messenger Plugin",{plugin:N.uid,target:h.uid})}return b}()},N.uid)})})]},h.uid)})})}},68053:function(w,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 C=(0,a.useBackend)(k),u=C.act,c=C.data,m=c.mulebot,d=m.active;return(0,e.createComponentVNode)(2,t.Box,{children:d?(0,e.createComponentVNode)(2,V):(0,e.createComponentVNode)(2,f)})}return y}(),f=function(S,k){var C=(0,a.useBackend)(k),u=C.act,c=C.data,m=c.mulebot,d=m.bots;return d.map(function(l){return(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:l.Name,icon:"cog",onClick:function(){function s(){return u("control",{bot:l.uid})}return s}()})},l.Name)})},V=function(S,k){var C=(0,a.useBackend)(k),u=C.act,c=C.data,m=c.mulebot,d=m.botstatus,l=m.active,s=d.mode,i=d.loca,p=d.load,v=d.powr,g=d.dest,h=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:l,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:i}),(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:h}),(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 u("target")}return I}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Current Load",children:(0,e.createComponentVNode)(2,t.Button,{content:p?p+" (Unload)":"None",disabled:!p,onClick:function(){function I(){return u("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 u("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:N?"Yes":"No",selected:N,onClick:function(){function I(){return u("set_auto_return",{autoret:N?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 u("stop")}return I}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Proceed",icon:"play",onClick:function(){function I(){return u("start")}return I}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Return Home",icon:"home",onClick:function(){function I(){return u("home")}return I}()})]})]})]})}},31728:function(w,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),f=r.pda_nanobank=function(){function d(l,s){var i=(0,t.useBackend)(s),p=i.act,v=i.data,g=v.logged_in,h=v.owner_name,N=v.money;return g?(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:h}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Account Balance",children:["$",N]})]})}),(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,V),(0,e.createComponentVNode)(2,y)]})],4):(0,e.createComponentVNode)(2,u)}return d}(),V=function(l,s){var i=(0,t.useBackend)(s),p=i.data,v=p.is_premium,g=(0,t.useLocalState)(s,"tabIndex",1),h=g[0],N=g[1];return(0,e.createComponentVNode)(2,o.Tabs,{mt:2,children:[(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:h===1,onClick:function(){function b(){return N(1)}return b}(),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 b(){return N(2)}return b}(),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 b(){return N(3)}return b}(),children:[(0,e.createComponentVNode)(2,o.Icon,{mr:1,name:"list"}),"Transaction History"]}),!!v&&(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:h===4,onClick:function(){function b(){return N(4)}return b}(),children:[(0,e.createComponentVNode)(2,o.Icon,{mr:1,name:"list"}),"Supply Orders"]})]})},y=function(l,s){var i=(0,t.useLocalState)(s,"tabIndex",1),p=i[0],v=(0,t.useBackend)(s),g=v.data,h=g.db_status;if(!h)return(0,e.createComponentVNode)(2,o.Box,{children:"Account Database Connection Severed"});switch(p){case 1:return(0,e.createComponentVNode)(2,S);case 2:return(0,e.createComponentVNode)(2,k);case 3:return(0,e.createComponentVNode)(2,C);case 4:return(0,e.createComponentVNode)(2,m);default:return"You are somehow on a tab that doesn't exist! Please let a coder know."}},S=function(l,s){var i,p=(0,t.useBackend)(s),v=p.act,g=p.data,h=g.requests,N=g.available_accounts,b=g.money,B=(0,t.useLocalState)(s,"selectedAccount"),I=B[0],L=B[1],T=(0,t.useLocalState)(s,"transferAmount"),A=T[0],x=T[1],E=(0,t.useLocalState)(s,"searchText",""),M=E[0],j=E[1],P=[];return N.map(function(R){return P[R.name]=R.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 R(D,F){return j(F)}return R}()}),(0,e.createComponentVNode)(2,o.Dropdown,{mt:.6,width:"190px",options:N.filter((0,a.createSearch)(M,function(R){return R.name})).map(function(R){return R.name}),selected:(i=N.filter(function(R){return R.UID===I})[0])==null?void 0:i.name,onSelected:function(){function R(D){return L(P[D])}return R}()})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Amount",children:(0,e.createComponentVNode)(2,o.Input,{placeholder:"Up to 5000",onInput:function(){function R(D,F){return x(F)}return R}()})}),(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:b0&&i.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&&l.map(function(v){return(0,e.createComponentVNode)(2,t.Box,{children:["#",v.Number,' - "',v.Name,'" for "',v.ApprovedBy,'"']},v)})})]})}return f}()},61255:function(w,r,n){"use strict";r.__esModule=!0,r.Layout=void 0;var e=n(96524),a=n(28234),t=n(3051),o=n(92700),f=["className","theme","children"],V=["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={},v=function(l){if(l===16)return"Shift";if(l===17)return"Ctrl";if(l===18)return"Alt";if(l===33)return"Northeast";if(l===34)return"Southeast";if(l===35)return"Southwest";if(l===36)return"Northwest";if(l===37)return"West";if(l===38)return"North";if(l===39)return"East";if(l===40)return"South";if(l===45)return"Insert";if(l===46)return"Delete";if(l>=48&&l<=57||l>=65&&l<=90)return String.fromCharCode(l);if(l>=96&&l<=105)return"Numpad"+(l-96);if(l>=112&&l<=123)return"F"+(l-111);if(l===188)return",";if(l===189)return"-";if(l===190)return"."},i=function(l){var p=String(l);if(p==="Ctrl+F5"||p==="Ctrl+R"){location.reload();return}if(p!=="Ctrl+F"&&!(l.event.defaultPrevented||l.isModifierKey()||S.includes(l.code))){p==="F5"&&(l.event.preventDefault(),l.event.returnValue=!1);var C=v(l.code);if(C){var g=y[C];if(g)return V.debug("macro",g),Byond.command(g);if(l.isDown()&&!k[C]){k[C]=!0;var h='Key_Down "'+C+'"';return V.debug(h),Byond.command(h)}if(l.isUp()&&k[C]){k[C]=!1;var N='Key_Up "'+C+'"';return V.debug(N),Byond.command(N)}}}},c=r.acquireHotKey=function(){function s(l){S.push(l)}return s}(),m=r.releaseHotKey=function(){function s(l){var p=S.indexOf(l);p>=0&&S.splice(p,1)}return s}(),d=r.releaseHeldKeys=function(){function s(){for(var l=0,p=Object.keys(k);l=75?c="green":i.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:i.name,children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Integrity",children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:c,value:i.integrity/100})})}),(0,e.createComponentVNode)(2,t.Box,{color:"red",children:(0,e.createVNode)(1,"h2",null,i.flushing===1?"Wipe of AI in progress...":"",0)})]})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Laws",children:!!i.has_laws&&(0,e.createComponentVNode)(2,t.Box,{children:i.laws.map(function(m,d){return(0,e.createComponentVNode)(2,t.Box,{children:m},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:i.wireless?"check":"times",content:i.wireless?"Enabled":"Disabled",color:i.wireless?"green":"red",onClick:function(){function m(){return v("wireless")}return m}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Subspace Transceiver",children:(0,e.createComponentVNode)(2,t.Button,{width:10,icon:i.radio?"check":"times",content:i.radio?"Enabled":"Disabled",color:i.radio?"green":"red",onClick:function(){function m(){return v("radio")}return m}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Wipe",children:(0,e.createComponentVNode)(2,t.Button.Confirm,{width:10,icon:"trash-alt",confirmIcon:"trash-alt",disabled:i.flushing||i.integrity===0,confirmColor:"red",content:"Wipe AI",onClick:function(){function m(){return v("wipe")}return m}()})})]})})})]})})})}return V}()},78468:function(w,r,n){"use strict";r.__esModule=!0,r.AIFixer=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.AIFixer=function(){function V(y,S){var k=(0,a.useBackend)(S),v=k.act,i=k.data;if(i.occupant===null)return(0,e.createComponentVNode)(2,o.Window,{width:550,height:500,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Stored AI",children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,grow:!0,textAlign:"center",align:"center",color:"average",children:[(0,e.createComponentVNode)(2,t.Icon.Stack,{children:[(0,e.createComponentVNode)(2,t.Icon,{name:"robot",size:5,color:"silver"}),(0,e.createComponentVNode)(2,t.Icon,{name:"slash",size:5,color:"red"})]}),(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"h3",null,"No Artificial Intelligence detected.",16)]})})})})});var c=!0;(i.stat===2||i.stat===null)&&(c=!1);var m=null;i.integrity>=75?m="green":i.integrity>=25?m="yellow":m="red";var d=!0;return i.integrity>=100&&i.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:i.occupant,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Integrity",children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:m,value:i.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:!!i.has_laws&&(0,e.createComponentVNode)(2,t.Box,{children:i.laws.map(function(u,s){return(0,e.createComponentVNode)(2,t.Box,{inline:!0,children:u},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:i.wireless?"times":"check",content:i.wireless?"Disabled":"Enabled",color:i.wireless?"red":"green",onClick:function(){function u(){return v("wireless")}return u}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Subspace Transceiver",children:(0,e.createComponentVNode)(2,t.Button,{icon:i.radio?"times":"check",content:i.radio?"Disabled":"Enabled",color:i.radio?"red":"green",onClick:function(){function u(){return v("radio")}return u}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Start Repairs",children:(0,e.createComponentVNode)(2,t.Button,{icon:"wrench",disabled:!d||i.active,content:!d||i.active?"Already Repaired":"Repair",onClick:function(){function u(){return v("fix")}return u}()})})]}),(0,e.createComponentVNode)(2,t.Box,{color:"green",lineHeight:2,children:i.active?"Reconstruction in progress.":""})]})})]})})})}return V}()},73544:function(w,r,n){"use strict";r.__esModule=!0,r.APC=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=n(26893),V=r.APC=function(){function v(i,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 v}(),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(i,c){var m=(0,a.useBackend)(c),d=m.act,u=m.data,s=u.locked&&!u.siliconUser,l=u.normallyLocked,p=y[u.externalPower]||y[0],C=y[u.chargingStatus]||y[0],g=u.powerChannels||[],h=S[u.malfStatus]||S[0],N=u.powerCellStatus/100;return(0,e.createFragment)([(0,e.createComponentVNode)(2,f.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:p.color,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:u.isOperating?"power-off":"times",content:u.isOperating?"On":"Off",selected:u.isOperating&&!s,color:u.isOperating?"":"bad",disabled:s,onClick:function(){function b(){return d("breaker")}return b}()}),children:["[ ",p.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:C.color,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:u.chargeMode?"sync":"times",content:u.chargeMode?"Auto":"Off",selected:u.chargeMode,disabled:s,onClick:function(){function b(){return d("charge")}return b}()}),children:["[ ",C.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 d("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 d("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 d("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,[u.totalLoad,(0,e.createTextVNode)(" W")],0)})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Misc",buttons:!!u.siliconUser&&(0,e.createFragment)([!!u.malfStatus&&(0,e.createComponentVNode)(2,t.Button,{icon:h.icon,content:h.content,color:"bad",onClick:function(){function b(){return d(h.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:u.coverLocked?"lock":"unlock",content:u.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:u.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:u.nightshiftLights?"Enabled":"Disabled",onClick:function(){function b(){return d("toggle_nightshift")}return b}()})})]})})],4)}},79098:function(w,r,n){"use strict";r.__esModule=!0,r.ATM=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.ATM=function(){function m(d,u){var s=(0,a.useBackend)(u),l=s.act,p=s.data,C=p.view_screen,g=p.authenticated_account,h=p.ticks_left_locked_down,N=p.linked_db,b;if(h>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(C){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,i);break;default:b=(0,e.createComponentVNode)(2,k)}else b=(0,e.createComponentVNode)(2,v);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 m}(),V=function(d,u){var s=(0,a.useBackend)(u),l=s.act,p=s.data,C=p.machine_id,g=p.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 h(){return l("insert_card")}return h}()})})})]})},y=function(d,u){var s=(0,a.useBackend)(u),l=s.act,p=s.data,C=p.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:C===0,onClick:function(){function g(){return l("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:C===2,onClick:function(){function g(){return l("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,u){var s=(0,a.useBackend)(u),l=s.act,p=s.data,C=(0,a.useLocalState)(u,"targetAccNumber",0),g=C[0],h=C[1],N=(0,a.useLocalState)(u,"fundsAmount",0),b=N[0],B=N[1],I=(0,a.useLocalState)(u,"purpose",0),L=I[0],T=I[1],A=p.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 h(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 l("transfer",{target_acc_number:g,funds_amount:b,purpose:L})}return x}()}),(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,c)]})},k=function(d,u){var s=(0,a.useBackend)(u),l=s.act,p=s.data,C=(0,a.useLocalState)(u,"fundsAmount",0),g=C[0],h=C[1],N=p.owner_name,b=p.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 l("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,L){return h(L)}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 l("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 l("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 l("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 l("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 l("balance_statement")}return B}()})})]})],4)},v=function(d,u){var s=(0,a.useBackend)(u),l=s.act,p=s.data,C=(0,a.useLocalState)(u,"accountID",null),g=C[0],h=C[1],N=(0,a.useLocalState)(u,"accountPin",null),b=N[0],B=N[1],I=p.machine_id,L=p.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 h(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 l("attempt_auth",{account_num:g,account_pin:b})}return T}()})})]})})},i=function(d,u){var s=(0,a.useBackend)(u),l=s.act,p=s.data,C=p.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"})]}),C.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,u){var s=(0,a.useBackend)(u),l=s.act,p=s.data;return(0,e.createComponentVNode)(2,t.Button,{content:"Back",icon:"sign-out-alt",onClick:function(){function C(){return l("view_screen",{view_screen:0})}return C}()})}},64613:function(w,r,n){"use strict";r.__esModule=!0,r.AccountsUplinkTerminal=void 0;var e=n(96524),a=n(78234),t=n(17899),o=n(24674),f=n(5126),V=n(45493),y=n(68159),S=n(27527),k=r.AccountsUplinkTerminal=function(){function p(C,g){var h=(0,t.useBackend)(g),N=h.act,b=h.data,B=b.loginState,I=b.currentPage,L;if(B.logged_in)I===1?L=(0,e.createComponentVNode)(2,i):I===2?L=(0,e.createComponentVNode)(2,s):I===3&&(L=(0,e.createComponentVNode)(2,l));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,v),(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,children:L})]})})})}return p}(),v=function(C,g){var h=(0,t.useBackend)(g),N=h.data,b=(0,t.useLocalState)(g,"tabIndex",0),B=b[0],I=b[1],L=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 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"})]})})})},i=function(C,g){var h=(0,t.useLocalState)(g,"tabIndex",0),N=h[0];switch(N){case 0:return(0,e.createComponentVNode)(2,c);case 1:return(0,e.createComponentVNode)(2,m);default:return"You are somehow on a tab that doesn't exist! Please let a coder know."}},c=function(C,g){var h=(0,t.useBackend)(g),N=h.act,b=h.data,B=b.accounts,I=(0,t.useLocalState)(g,"searchText",""),L=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,u),(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)(L,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 N("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)})]})})})]})},m=function(C,g){var h=(0,t.useBackend)(g),N=h.act,b=h.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,f.TableCell,{children:"Department Name"}),(0,e.createComponentVNode)(2,f.TableCell,{children:"Account Number"}),(0,e.createComponentVNode)(2,f.TableCell,{children:"Account Status"}),(0,e.createComponentVNode)(2,f.TableCell,{children:"Account Balance"})]}),B.map(function(I){return(0,e.createComponentVNode)(2,o.Table.Row,{className:"AccountsUplinkTerminal__listRow--"+I.suspended,onClick:function(){function L(){return N("view_account_detail",{account_num:I.account_number})}return L}(),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)})]})})})})},d=function(C,g){var h=(0,t.useLocalState)(g,"sortId","name"),N=h[0],b=h[1],B=(0,t.useLocalState)(g,"sortOrder",!0),I=B[0],L=B[1],T=C.id,A=C.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 x(){N===T?L(!I):(b(T),L(!0))}return x}(),children:[A,N===T&&(0,e.createComponentVNode)(2,o.Icon,{name:I?"sort-up":"sort-down",ml:"0.25rem;"})]})})},u=function(C,g){var h=(0,t.useBackend)(g),N=h.act,b=h.data,B=b.is_printing,I=(0,t.useLocalState)(g,"searchText",""),L=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 N("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(C,g){var h=(0,t.useBackend)(g),N=h.act,b=h.data,B=b.account_number,I=b.owner_name,L=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 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: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 N("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:L}),(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"})]}),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)})]})})})]})},l=function(C,g){var h=(0,t.useBackend)(g),N=h.act,b=h.data,B=(0,t.useLocalState)(g,"accName",""),I=B[0],L=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 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,j){return L(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 N("finalise_create_account",{holder_name:I,starting_funds:A})}return E}()})]})}},34257:function(w,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),f=r.AgentCard=function(){function S(k,v){var i=(0,a.useLocalState)(v,"tabIndex",0),c=i[0],m=i[1],d=function(){function u(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 u}();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 u(){return m(0)}return u}(),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 u(){return m(1)}return u}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"id-card"})," Appearance"]},"Appearance")]})}),d(c)]})})})}return S}(),V=r.AgentCardInfo=function(){function S(k,v){var i=(0,a.useBackend)(v),c=i.act,m=i.data,d=m.registered_name,u=m.sex,s=m.age,l=m.assignment,p=m.associated_account_number,C=m.blood_type,g=m.dna_hash,h=m.fingerprint_hash,N=m.photo,b=m.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:u||"[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:l||"[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:h||"[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:C||"[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:p||"[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,v){var i=(0,a.useBackend)(v),c=i.act,m=i.data,d=(0,a.useLocalState)(v,"selectedAppearance",null),u=d[0],s=d[1],l=m.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:l.map(function(p){return(0,e.createComponentVNode)(2,t.Button,{compact:!0,m:.5,color:"translucent",selected:p===u,content:(0,e.createVNode)(1,"img",null,null,1,{src:"data:image/jped;base64,"+p.image,style:{width:"64px","vertical-align":"middle","-ms-interpolation-mode":"nearest-neighbor"},onClick:function(){function C(){s(p),c("change_appearance",{new_appearance:p.name})}return C}()})},p.name)})})})}return S}()},56839:function(w,r,n){"use strict";r.__esModule=!0,r.AiAirlock=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f={2:{color:"good",localStatusText:"Offline"},1:{color:"average",localStatusText:"Caution"},0:{color:"bad",localStatusText:"Optimal"}},V=r.AiAirlock=function(){function y(S,k){var v=(0,a.useBackend)(k),i=v.act,c=v.data,m=f[c.power.main]||f[0],d=f[c.power.backup]||f[0],u=f[c.shock]||f[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:m.color,buttons:(0,e.createComponentVNode)(2,t.Button,{mb:.5,icon:"lightbulb-o",disabled:!c.power.main,content:"Disrupt",onClick:function(){function s(){return i("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 i("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:u.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 i("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 i("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 i("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 i("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 i("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 i("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 i("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 i("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 i("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 i("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(w,r,n){"use strict";r.__esModule=!0,r.AirAlarm=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=n(26893),V=r.AirAlarm=function(){function u(s,l){var p=(0,a.useBackend)(l),C=p.act,g=p.data,h=g.locked;return(0,e.createComponentVNode)(2,o.Window,{width:570,height:h?310:755,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,f.InterfaceLockNoticeBox),(0,e.createComponentVNode)(2,S),!h&&(0,e.createFragment)([(0,e.createComponentVNode)(2,k),(0,e.createComponentVNode)(2,v)],4)]})})}return u}(),y=function(s){return s===0?"green":s===1?"orange":"red"},S=function(s,l){var p=(0,a.useBackend)(l),C=p.act,g=p.data,h=g.air,N=g.mode,b=g.atmos_alarm,B=g.locked,I=g.alarmActivated,L=g.rcon,T=g.target_temp,A;return h.danger.overall===0?b===0?A="Optimal":A="Caution: Atmos alert in area":h.danger.overall===1?A="Caution":A="DANGER: Internals Required",(0,e.createComponentVNode)(2,t.Section,{title:"Air Status",children:h?(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Pressure",children:(0,e.createComponentVNode)(2,t.Box,{color:y(h.danger.pressure),children:[(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:h.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 x(){return C("mode",{mode:N===3?1:3})}return x}()})],4)]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Oxygen",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:h.contents.oxygen/100,fractionDigits:"1",color:y(h.danger.oxygen)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Nitrogen",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:h.contents.nitrogen/100,fractionDigits:"1",color:y(h.danger.nitrogen)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Carbon Dioxide",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:h.contents.co2/100,fractionDigits:"1",color:y(h.danger.co2)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Toxins",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:h.contents.plasma/100,fractionDigits:"1",color:y(h.danger.plasma)})}),h.contents.n2o>.1&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Nitrous Oxide",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:h.contents.n2o/100,fractionDigits:"1",color:y(h.danger.n2o)})}),h.contents.other>.1&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Other",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:h.contents.other/100,fractionDigits:"1",color:y(h.danger.other)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Temperature",children:(0,e.createComponentVNode)(2,t.Box,{color:y(h.danger.temperature),children:[(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:h.temperature})," K / ",(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:h.temperature_c})," C\xA0",(0,e.createComponentVNode)(2,t.Button,{icon:"thermometer-full",content:T+" C",onClick:function(){function x(){return C("temperature")}return x}()}),(0,e.createComponentVNode)(2,t.Button,{content:h.thermostat_state?"On":"Off",selected:h.thermostat_state,icon:"power-off",onClick:function(){function x(){return C("thermostat_state")}return x}()})]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Local Status",children:(0,e.createComponentVNode)(2,t.Box,{color:y(h.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 C(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:L===1,onClick:function(){function x(){return C("set_rcon",{rcon:1})}return x}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Auto",selected:L===2,onClick:function(){function x(){return C("set_rcon",{rcon:2})}return x}()}),(0,e.createComponentVNode)(2,t.Button,{content:"On",selected:L===3,onClick:function(){function x(){return C("set_rcon",{rcon:3})}return x}()})]})]}):(0,e.createComponentVNode)(2,t.Box,{children:"Unable to acquire air sample!"})})},k=function(s,l){var p=(0,a.useLocalState)(l,"tabIndex",0),C=p[0],g=p[1];return(0,e.createComponentVNode)(2,t.Tabs,{children:[(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:C===0,onClick:function(){function h(){return g(0)}return h}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"sign-out-alt"})," Vent Control"]},"Vents"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:C===1,onClick:function(){function h(){return g(1)}return h}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"sign-in-alt"})," Scrubber Control"]},"Scrubbers"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:C===2,onClick:function(){function h(){return g(2)}return h}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"cog"})," Mode"]},"Mode"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:C===3,onClick:function(){function h(){return g(3)}return h}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"tachometer-alt"})," Thresholds"]},"Thresholds")]})},v=function(s,l){var p=(0,a.useLocalState)(l,"tabIndex",0),C=p[0],g=p[1];switch(C){case 0:return(0,e.createComponentVNode)(2,i);case 1:return(0,e.createComponentVNode)(2,c);case 2:return(0,e.createComponentVNode)(2,m);case 3:return(0,e.createComponentVNode)(2,d);default:return"WE SHOULDN'T BE HERE!"}},i=function(s,l){var p=(0,a.useBackend)(l),C=p.act,g=p.data,h=g.vents;return h.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 C("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 C("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 C("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 C("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 C("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 C("command",{cmd:"set_external_pressure",val:101.325,id_tag:N.id_tag})}return b}()})]})]})},N.name)})},c=function(s,l){var p=(0,a.useBackend)(l),C=p.act,g=p.data,h=g.scrubbers;return h.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 C("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 C("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 C("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 C("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 C("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 C("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 C("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 C("command",{cmd:"n2_scrub",val:!N.filter_n2,id_tag:N.id_tag})}return b}()})]})]})},N.name)})},m=function(s,l){var p=(0,a.useBackend)(l),C=p.act,g=p.data,h=g.modes,N=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:h.map(function(L){return(!L.emagonly||L.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:L.name,icon:"cog",selected:L.id===B,onClick:function(){function T(){return C("mode",{mode:L.id})}return T}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:L.desc})]},L.name)})})}),(0,e.createComponentVNode)(2,t.Section,{title:"System Presets",children:[(0,e.createComponentVNode)(2,t.Box,{italic:!0,children:"After making a selection, the system will automatically cycle in order to remove contaminants."}),(0,e.createComponentVNode)(2,t.Table,{mt:1,children:N.map(function(L){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"right",width:1,children:(0,e.createComponentVNode)(2,t.Button,{content:L.name,icon:"cog",selected:L.id===I,onClick:function(){function T(){return C("preset",{preset:L.id})}return T}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:L.desc})]},L.name)})})]})],4)},d=function(s,l){var p=(0,a.useBackend)(l),C=p.act,g=p.data,h=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"})]}),h.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 C("command",{cmd:"set_threshold",env:b.env,var:b.val})}return B}()})},b.val)})]},N.name)})]})})}},82915:function(w,r,n){"use strict";r.__esModule=!0,r.AirlockAccessController=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.AirlockAccessController=function(){function V(y,S){var k=(0,a.useBackend)(S),v=k.act,i=k.data,c=i.exterior_status,m=i.interior_status,d=i.processing,u,s;return c==="open"?u=(0,e.createComponentVNode)(2,t.Button,{width:"50%",content:"Lock Exterior Door",icon:"exclamation-triangle",disabled:d,onClick:function(){function l(){return v("force_ext")}return l}()}):u=(0,e.createComponentVNode)(2,t.Button,{width:"50%",content:"Cycle to Exterior",icon:"arrow-circle-left",disabled:d,onClick:function(){function l(){return v("cycle_ext_door")}return l}()}),m==="open"?s=(0,e.createComponentVNode)(2,t.Button,{width:"49%",content:"Lock Interior Door",icon:"exclamation-triangle",disabled:d,color:m==="open"?"red":d?"yellow":null,onClick:function(){function l(){return v("force_int")}return l}()}):s=(0,e.createComponentVNode)(2,t.Button,{width:"49%",content:"Cycle to Interior",icon:"arrow-circle-right",disabled:d,onClick:function(){function l(){return v("cycle_int_door")}return l}()}),(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:m==="closed"?"Locked":"Open"})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Actions",children:(0,e.createComponentVNode)(2,t.Box,{children:[u,s]})})]})})}return V}()},14962:function(w,r,n){"use strict";r.__esModule=!0,r.AirlockElectronics=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=n(57842),V=1,y=2,S=4,k=8,v=r.AirlockElectronics=function(){function m(d,u){return(0,e.createComponentVNode)(2,o.Window,{width:450,height:565,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,i),(0,e.createComponentVNode)(2,c)]})})})}return m}(),i=function(d,u){var s=(0,a.useBackend)(u),l=s.act,p=s.data,C=p.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:C&S?"selected":null,onClick:function(){function g(){return l("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:C&y?"selected":null,onClick:function(){function g(){return l("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:C&k?"selected":null,onClick:function(){function g(){return l("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:C&V?"selected":null,onClick:function(){function g(){return l("unrestricted_access",{unres_dir:V})}return g}()})})]})]})})},c=function(d,u){var s=(0,a.useBackend)(u),l=s.act,p=s.data,C=p.selected_accesses,g=p.one_access,h=p.regions;return(0,e.createComponentVNode)(2,f.AccessList,{usedByRcd:1,rcdButtons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:g,content:"One",onClick:function(){function N(){return l("set_one_access",{access:"one"})}return N}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:!g,content:"All",onClick:function(){function N(){return l("set_one_access",{access:"all"})}return N}()})],4),accesses:h,selectedList:C,accessMod:function(){function N(b){return l("set",{access:b})}return N}(),grantAll:function(){function N(){return l("grant_all")}return N}(),denyAll:function(){function N(){return l("clear_all")}return N}(),grantDep:function(){function N(b){return l("grant_region",{region:b})}return N}(),denyDep:function(){function N(b){return l("deny_region",{region:b})}return N}()})}},99327:function(w,r,n){"use strict";r.__esModule=!0,r.AlertModal=void 0;var e=n(96524),a=n(14299),t=n(17899),o=n(68100),f=n(24674),V=n(45493),y=-1,S=1,k=r.AlertModal=function(){function c(m,d){var u=(0,t.useBackend)(d),s=u.act,l=u.data,p=l.autofocus,C=l.buttons,g=C===void 0?[]:C,h=l.large_buttons,N=l.message,b=N===void 0?"":N,B=l.timeout,I=l.title,L=(0,t.useLocalState)(d,"selected",0),T=L[0],A=L[1],x=110+(b.length>30?Math.ceil(b.length/4):0)+(b.length&&h?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,V.Window,{title:I,height:x,width:E,children:[!!B&&(0,e.createComponentVNode)(2,a.Loader,{value:B}),(0,e.createComponentVNode)(2,V.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,f.Section,{fill:!0,children:(0,e.createComponentVNode)(2,f.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,m:1,children:(0,e.createComponentVNode)(2,f.Box,{color:"label",overflow:"hidden",children:b})}),(0,e.createComponentVNode)(2,f.Stack.Item,{children:[!!p&&(0,e.createComponentVNode)(2,f.Autofocus),(0,e.createComponentVNode)(2,v,{selected:T})]})]})})})]})}return c}(),v=function(m,d){var u=(0,t.useBackend)(d),s=u.data,l=s.buttons,p=l===void 0?[]:l,C=s.large_buttons,g=s.swapped_buttons,h=m.selected;return(0,e.createComponentVNode)(2,f.Flex,{fill:!0,align:"center",direction:g?"row":"row-reverse",justify:"space-around",wrap:!0,children:p==null?void 0:p.map(function(N,b){return C&&p.length<3?(0,e.createComponentVNode)(2,f.Flex.Item,{grow:!0,children:(0,e.createComponentVNode)(2,i,{button:N,id:b.toString(),selected:h===b})},b):(0,e.createComponentVNode)(2,f.Flex.Item,{grow:C?1:0,children:(0,e.createComponentVNode)(2,i,{button:N,id:b.toString(),selected:h===b})},b)})})},i=function(m,d){var u=(0,t.useBackend)(d),s=u.act,l=u.data,p=l.large_buttons,C=m.button,g=m.selected,h=C.length>7?"100%":7;return(0,e.createComponentVNode)(2,f.Button,{mx:p?1:0,pt:p?.33:0,content:C,fluid:!!p,onClick:function(){function N(){return s("choose",{choice:C})}return N}(),selected:g,textAlign:"center",height:!!p&&2,width:!p&&h})}},88642:function(w,r,n){"use strict";r.__esModule=!0,r.AppearanceChanger=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.AppearanceChanger=function(){function y(S,k){var v=(0,a.useBackend)(k),i=v.act,c=v.data,m=c.change_race,d=c.species,u=c.specimen,s=c.change_gender,l=c.gender,p=c.change_eye_color,C=c.change_skin_tone,g=c.change_skin_color,h=c.change_head_accessory_color,N=c.change_hair_color,b=c.change_secondary_hair_color,B=c.change_facial_hair_color,I=c.change_secondary_facial_hair_color,L=c.change_head_marking_color,T=c.change_body_marking_color,A=c.change_tail_marking_color,x=c.change_head_accessory,E=c.head_accessory_styles,M=c.head_accessory_style,j=c.change_hair,P=c.hair_styles,R=c.hair_style,D=c.change_hair_gradient,F=c.change_facial_hair,W=c.facial_hair_styles,U=c.facial_hair_style,K=c.change_head_markings,H=c.head_marking_styles,X=c.head_marking_style,Y=c.change_body_markings,J=c.body_marking_styles,ie=c.body_marking_style,ce=c.change_tail_markings,fe=c.tail_marking_styles,pe=c.tail_marking_style,he=c.change_body_accessory,te=c.body_accessory_styles,Q=c.body_accessory_style,ae=c.change_alt_head,ee=c.alt_head_styles,oe=c.alt_head_style,ue=!1;return(p||C||g||h||N||b||B||I||L||T||A)&&(ue=!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:[!!m&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Species",children:d.map(function(re){return(0,e.createComponentVNode)(2,t.Button,{content:re.specimen,selected:re.specimen===u,onClick:function(){function ge(){return i("race",{race:re.specimen})}return ge}()},re.specimen)})}),!!s&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Gender",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Male",selected:l==="male",onClick:function(){function re(){return i("gender",{gender:"male"})}return re}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Female",selected:l==="female",onClick:function(){function re(){return i("gender",{gender:"female"})}return re}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Genderless",selected:l==="plural",onClick:function(){function re(){return i("gender",{gender:"plural"})}return re}()})]}),!!ue&&(0,e.createComponentVNode)(2,V),!!x&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Head accessory",children:E.map(function(re){return(0,e.createComponentVNode)(2,t.Button,{content:re.headaccessorystyle,selected:re.headaccessorystyle===M,onClick:function(){function ge(){return i("head_accessory",{head_accessory:re.headaccessorystyle})}return ge}()},re.headaccessorystyle)})}),!!j&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Hair",children:P.map(function(re){return(0,e.createComponentVNode)(2,t.Button,{content:re.hairstyle,selected:re.hairstyle===R,onClick:function(){function ge(){return i("hair",{hair:re.hairstyle})}return ge}()},re.hairstyle)})}),!!D&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Hair Gradient",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Change Style",onClick:function(){function re(){return i("hair_gradient")}return re}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Change Offset",onClick:function(){function re(){return i("hair_gradient_offset")}return re}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Change Color",onClick:function(){function re(){return i("hair_gradient_colour")}return re}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Change Alpha",onClick:function(){function re(){return i("hair_gradient_alpha")}return re}()})]}),!!F&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Facial hair",children:W.map(function(re){return(0,e.createComponentVNode)(2,t.Button,{content:re.facialhairstyle,selected:re.facialhairstyle===U,onClick:function(){function ge(){return i("facial_hair",{facial_hair:re.facialhairstyle})}return ge}()},re.facialhairstyle)})}),!!K&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Head markings",children:H.map(function(re){return(0,e.createComponentVNode)(2,t.Button,{content:re.headmarkingstyle,selected:re.headmarkingstyle===X,onClick:function(){function ge(){return i("head_marking",{head_marking:re.headmarkingstyle})}return ge}()},re.headmarkingstyle)})}),!!Y&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Body markings",children:J.map(function(re){return(0,e.createComponentVNode)(2,t.Button,{content:re.bodymarkingstyle,selected:re.bodymarkingstyle===ie,onClick:function(){function ge(){return i("body_marking",{body_marking:re.bodymarkingstyle})}return ge}()},re.bodymarkingstyle)})}),!!ce&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Tail markings",children:fe.map(function(re){return(0,e.createComponentVNode)(2,t.Button,{content:re.tailmarkingstyle,selected:re.tailmarkingstyle===pe,onClick:function(){function ge(){return i("tail_marking",{tail_marking:re.tailmarkingstyle})}return ge}()},re.tailmarkingstyle)})}),!!he&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Body accessory",children:te.map(function(re){return(0,e.createComponentVNode)(2,t.Button,{content:re.bodyaccessorystyle,selected:re.bodyaccessorystyle===Q,onClick:function(){function ge(){return i("body_accessory",{body_accessory:re.bodyaccessorystyle})}return ge}()},re.bodyaccessorystyle)})}),!!ae&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Alternate head",children:ee.map(function(re){return(0,e.createComponentVNode)(2,t.Button,{content:re.altheadstyle,selected:re.altheadstyle===oe,onClick:function(){function ge(){return i("alt_head",{alt_head:re.altheadstyle})}return ge}()},re.altheadstyle)})})]})})})}return y}(),V=function(S,k){var v=(0,a.useBackend)(k),i=v.act,c=v.data,m=[{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:m.map(function(d){return!!c[d.key]&&(0,e.createComponentVNode)(2,t.Button,{content:d.text,onClick:function(){function u(){return i(d.action)}return u}()},d.key)})})}},51731:function(w,r,n){"use strict";r.__esModule=!0,r.AtmosAlertConsole=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.AtmosAlertConsole=function(){function V(y,S){var k=(0,a.useBackend)(S),v=k.act,i=k.data,c=i.priority||[],m=i.minor||[];return(0,e.createComponentVNode)(2,o.Window,{width:350,height:300,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Alarms",children:(0,e.createVNode)(1,"ul",null,[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)}),m.length===0&&(0,e.createVNode)(1,"li","color-good","No Minor Alerts",16),m.map(function(d){return(0,e.createVNode)(1,"li","color-average",d,0,null,d)})],0)})})})}return V}()},57467:function(w,r,n){"use strict";r.__esModule=!0,r.AtmosControl=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(5126),f=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 i(c,m){var d=(0,a.useBackend)(m),u=d.act,s=d.data,l=(0,a.useLocalState)(m,"tabIndex",0),p=l[0],C=l[1],g=function(){function h(N){switch(N){case 0:return(0,e.createComponentVNode)(2,k);case 1:return(0,e.createComponentVNode)(2,v);default:return"WE SHOULDN'T BE HERE!"}}return h}();return(0,e.createComponentVNode)(2,f.Window,{width:800,height:600,children:(0,e.createComponentVNode)(2,f.Window.Content,{scrollable:p===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:p===0,onClick:function(){function h(){return C(0)}return h}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"table"})," Data View"]},"DataView"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:p===1,onClick:function(){function h(){return C(1)}return h}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"map-marked-alt"})," Map View"]},"MapView")]}),g(p)]})})})}return i}(),k=function(c,m){var d=(0,a.useBackend)(m),u=d.act,s=d.data,l=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"})]}),l.map(function(p){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,o.TableCell,{children:p.name}),(0,e.createComponentVNode)(2,o.TableCell,{children:V(p.danger)}),(0,e.createComponentVNode)(2,o.TableCell,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"cog",content:"Access",onClick:function(){function C(){return u("open_alarm",{aref:p.ref})}return C}()})})]},p.name)})]})})},v=function(c,m){var d=(0,a.useBackend)(m),u=d.data,s=(0,a.useLocalState)(m,"zoom",1),l=s[0],p=s[1],C=u.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(h){return p(h)}return g}(),children:C.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:l,icon:"circle",tooltip:g.name,color:y(g.danger)},g.ref)})})})}},41550:function(w,r,n){"use strict";r.__esModule=!0,r.AtmosFilter=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.AtmosFilter=function(){function V(y,S){var k=(0,a.useBackend)(S),v=k.act,i=k.data,c=i.on,m=i.pressure,d=i.max_pressure,u=i.filter_type,s=i.filter_type_list;return(0,e.createComponentVNode)(2,o.Window,{width:380,height:140,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power",children:(0,e.createComponentVNode)(2,t.Button,{icon:"power-off",content:c?"On":"Off",color:c?null:"red",selected:c,onClick:function(){function l(){return v("power")}return l}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Rate",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"fast-backward",textAlign:"center",disabled:m===0,width:2.2,onClick:function(){function l(){return v("min_pressure")}return l}()}),(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,unit:"kPa",width:6.1,lineHeight:1.5,step:10,minValue:0,maxValue:d,value:m,onDrag:function(){function l(p,C){return v("custom_pressure",{pressure:C})}return l}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",textAlign:"center",disabled:m===d,width:2.2,onClick:function(){function l(){return v("max_pressure")}return l}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Filter",children:s.map(function(l){return(0,e.createComponentVNode)(2,t.Button,{selected:l.gas_type===u,content:l.label,onClick:function(){function p(){return v("set_filter",{filter:l.gas_type})}return p}()},l.label)})})]})})})})}return V}()},16688:function(w,r,n){"use strict";r.__esModule=!0,r.AtmosGraphMonitor=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=n(36121),V=n(50640),y=n(28234),S=["data","rangeX","rangeY","fillColor","strokeColor","strokeWidth","horizontalLinesCount","verticalLinesCount","gridColor","gridWidth","pointTextColor","pointTextSize","labelViewBoxSize"];function k(l,p){if(l==null)return{};var C={},g=Object.keys(l),h,N;for(N=0;N=0)&&(C[h]=l[h]);return C}function v(l,p){l.prototype=Object.create(p.prototype),l.prototype.constructor=l,i(l,p)}function i(l,p){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function C(g,h){return g.__proto__=h,g}return C}(),i(l,p)}var c=r.AtmosGraphMonitor=function(){function l(p,C){var g=(0,a.useBackend)(C),h=g.data,N=(0,a.useLocalState)(C,"tabIndex",0),b=N[0],B=N[1],I=function(){function T(A){switch(A){case 0:return(0,e.createComponentVNode)(2,m,{data:h,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,m,{data:h,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}(),L=function(){function T(A){switch(A){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:L(Object.keys(h.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")]}),I(b),Object.keys(h.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 l}(),m=function(p){var C=p.data,g=p.info,h=p.pressureListName,N=p.temperatureListName,b=C.sensors||{},B=function(x,E){return b[x][E].slice(-1)[0]},I=function(x,E){return Math.min.apply(Math,b[x][E])},L=function(x,E){return Math.max.apply(Math,b[x][E])},T=function(x,E){return b[x][E].map(function(M,j){return[j,M]})};return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Section,{color:"gray",children:g}),Object.keys(b).map(function(A){return(0,e.createComponentVNode)(2,t.Section,{title:A,children:(0,e.createComponentVNode)(2,t.Section,{px:2,children:[N in b[A]&&(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,f.toFixed)(B(A,N),0)+"\u041A (MIN: "+(0,f.toFixed)(I(A,N),0)+"\u041A; MAX: "+(0,f.toFixed)(L(A,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(A,N),rangeX:[0,T(A,N).length-1],rangeY:[I(A,N)-10,L(A,N)+5],strokeColor:"rgba(219, 40, 40, 1)",fillColor:"rgba(219, 40, 40, 0.1)",horizontalLinesCount:2,verticalLinesCount:T(A,N).length-2,labelViewBoxSize:400})})]}),h in b[A]&&(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,f.toFixed)(B(A,h),0)+"\u043A\u041F\u0430 (MIN: "+(0,f.toFixed)(I(A,h),0)+"\u043A\u041F\u0430; MAX: "+(0,f.toFixed)(L(A,h),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(A,h),rangeX:[0,T(A,h).length-1],rangeY:[I(A,h)-10,L(A,h)+5],strokeColor:"rgba(40, 219, 40, 1)",fillColor:"rgba(40, 219, 40, 0.1)",horizontalLinesCount:2,verticalLinesCount:T(A,h).length-2,labelViewBoxSize:400})})]})]})},A)})]})},d=function(p,C,g,h){if(p.length===0)return[];var N=(0,V.zipWith)(Math.min).apply(void 0,p),b=(0,V.zipWith)(Math.max).apply(void 0,p);g!==void 0&&(N[0]=g[0],b[0]=g[1]),h!==void 0&&(N[1]=h[0],b[1]=h[1]);var B=function(A,x,E,M){return(A-x)/(E-x)*M},I=(0,V.zipWith)(B),L=(0,V.map)(function(T){return I(T,N,b,C)});return L(p)},u=function(p){for(var C="",g=0;g0){var Q=te[0],ae=te[te.length-1];te.push([he[0]+j,ae[1]]),te.push([he[0]+j,-j]),te.push([-j,-j]),te.push([-j,Q[1]])}var ee=u(te);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,t.Box,Object.assign({position:"relative"},pe,{children:function(){function oe(ue){return(0,e.normalizeProps)((0,e.createVNode)(1,"div",null,(0,e.createVNode)(32,"svg",null,[Array.from({length:R}).map(function(re,ge){return(0,e.createVNode)(32,"line",null,null,1,{x1:0,y1:(ge+1)*(he[1]/(R+1)),x2:he[0],y2:(ge+1)*(he[1]/(R+1)),stroke:U,"stroke-width":H},"horizontal-line-"+ge)}),Array.from({length:F}).map(function(re,ge){return(0,e.createVNode)(32,"line",null,null,1,{x1:(ge+1)*(he[0]/(F+1)),y1:0,x2:(ge+1)*(he[0]/(F+1)),y2:he[1],stroke:U,"stroke-width":H},"vertical-line-"+ge)}),(0,e.createVNode)(32,"polyline",null,null,1,{transform:"scale(1, -1) translate(0, -"+he[1]+")",fill:A,points:ee}),B.map(function(re,ge){return ge===0?null:(0,e.createVNode)(32,"line",null,null,1,{x1:te[ge-1][0],y1:he[1]-te[ge-1][1],x2:te[ge][0],y2:he[1]-te[ge][1],stroke:E,"stroke-width":j},"line-"+ge)}),B.map(function(re,ge){return(0,e.createVNode)(32,"circle",null,null,1,{cx:te[ge][0],cy:he[1]-te[ge][1],r:2,fill:"#ffffff",stroke:E,"stroke-width":1},"point-"+ge)}),B.map(function(re,ge){return he[0]>fe&&ge%2===1&&(0,e.createVNode)(32,"text",null,re[1]!==null?re[1].toFixed(0):"N/A",0,{x:te[ge][0],y:he[1]-te[ge][1],fill:Y,"font-size":ie,dy:"1em",style:{"text-anchor":"end"}},"point-text-"+ge)})],0,{viewBox:"0 0 "+he[0]+" "+he[1]}),2,Object.assign({},ue),null,h.ref))}return oe}()})))}return g}(),p}(e.Component);s.defaultHooks=void 0,s.defaultHooks=y.pureComponentHooks},70151:function(w,r,n){"use strict";r.__esModule=!0,r.AtmosMixer=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.AtmosMixer=function(){function y(S,k){var v=(0,a.useBackend)(k),i=v.act,c=v.data,m=c.on,d=c.pressure,u=c.max_pressure,s=c.node1_concentration,l=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:m?"On":"Off",color:m?null:"red",selected:m,onClick:function(){function p(){return i("power")}return p}()})}),(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 p(){return i("min_pressure")}return p}()}),(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,unit:"kPa",width:6.1,lineHeight:1.5,step:10,minValue:0,maxValue:u,value:d,onDrag:function(){function p(C,g){return i("custom_pressure",{pressure:g})}return p}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",textAlign:"center",disabled:d===u,width:2.2,onClick:function(){function p(){return i("max_pressure")}return p}()})]}),(0,e.createComponentVNode)(2,V,{node_name:"Node 1",node_ref:s}),(0,e.createComponentVNode)(2,V,{node_name:"Node 2",node_ref:l})]})})})})}return y}(),V=function(S,k){var v=(0,a.useBackend)(k),i=v.act,c=v.data,m=S.node_name,d=S.node_ref;return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:m,children:[(0,e.createComponentVNode)(2,t.Button,{icon:"fast-backward",textAlign:"center",width:2.2,disabled:d===0,onClick:function(){function u(){return i("set_node",{node_name:m,concentration:(d-10)/100})}return u}()}),(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 u(s,l){return i("set_node",{node_name:m,concentration:l/100})}return u}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",textAlign:"center",width:2.2,disabled:d===100,onClick:function(){function u(){return i("set_node",{node_name:m,concentration:(d+10)/100})}return u}()})]})}},54090:function(w,r,n){"use strict";r.__esModule=!0,r.AtmosPump=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.AtmosPump=function(){function V(y,S){var k=(0,a.useBackend)(S),v=k.act,i=k.data,c=i.on,m=i.rate,d=i.max_rate,u=i.gas_unit,s=i.step;return(0,e.createComponentVNode)(2,o.Window,{width:330,height:110,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power",children:(0,e.createComponentVNode)(2,t.Button,{icon:"power-off",content:c?"On":"Off",color:c?null:"red",selected:c,onClick:function(){function l(){return v("power")}return l}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Rate",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"fast-backward",textAlign:"center",disabled:m===0,width:2.2,onClick:function(){function l(){return v("min_rate")}return l}()}),(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,unit:u,width:6.1,lineHeight:1.5,step:s,minValue:0,maxValue:d,value:m,onDrag:function(){function l(p,C){return v("custom_rate",{rate:C})}return l}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",textAlign:"center",disabled:m===d,width:2.2,onClick:function(){function l(){return v("max_rate")}return l}()})]})]})})})})}return V}()},31335:function(w,r,n){"use strict";r.__esModule=!0,r.AtmosTankControl=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(36121),f=n(38424),V=n(45493),y=r.AtmosTankControl=function(){function S(k,v){var i=(0,a.useBackend)(v),c=i.act,m=i.data,d=m.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(u){return(0,e.createComponentVNode)(2,t.Section,{title:u,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[Object.keys(d[u]).indexOf("pressure")>-1?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Pressure",children:[d[u].pressure," kpa"]}):"",Object.keys(d[u]).indexOf("temperature")>-1?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Temperature",children:[d[u].temperature," K"]}):"",["o2","n2","plasma","co2","n2o"].map(function(s){return Object.keys(d[u]).indexOf(s)>-1?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:(0,f.getGasLabel)(s),children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:(0,f.getGasColor)(s),value:d[u][s],minValue:0,maxValue:100,children:(0,o.toFixed)(d[u][s],2)+"%"})},(0,f.getGasLabel)(s)):""})]})},u)}),m.inlet&&Object.keys(m.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:(m.inlet.on,"power-off"),content:m.inlet.on?"On":"Off",color:m.inlet.on?null:"red",selected:m.inlet.on,onClick:function(){function u(){return c("toggle_active",{dev:"inlet"})}return u}()})}),(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:m.inlet.rate,onDrag:function(){function u(s,l){return c("set_pressure",{dev:"inlet",val:l})}return u}()})})]})}):"",m.outlet&&Object.keys(m.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:(m.outlet.on,"power-off"),content:m.outlet.on?"On":"Off",color:m.outlet.on?null:"red",selected:m.outlet.on,onClick:function(){function u(){return c("toggle_active",{dev:"outlet"})}return u}()})}),(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:m.outlet.rate,onDrag:function(){function u(s,l){return c("set_pressure",{dev:"outlet",val:l})}return u}()})})]})}):""]})})}return S}()},85909:function(w,r,n){"use strict";r.__esModule=!0,r.Autolathe=void 0;var e=n(96524),a=n(74041),t=n(50640),o=n(17899),f=n(24674),V=n(45493),y=n(78234),S=function(i,c,m,d){return i.requirements===null?!0:!(i.requirements.metal*d>c||i.requirements.glass*d>m)},k=r.Autolathe=function(){function v(i,c){var m=(0,o.useBackend)(c),d=m.act,u=m.data,s=u.total_amount,l=u.max_amount,p=u.metal_amount,C=u.glass_amount,g=u.busyname,h=u.busyamt,N=u.showhacked,b=u.buildQueue,B=u.buildQueueLen,I=u.recipes,L=u.categories,T=(0,o.useSharedState)(c,"category",0),A=T[0],x=T[1];A===0&&(A="Tools");var E=p.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1,"),M=C.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(H){return H.name}),W="";B>0&&(W=b.map(function(H,X){return(0,e.createComponentVNode)(2,f.Box,{children:(0,e.createComponentVNode)(2,f.Button,{fluid:!0,icon:"times",color:"transparent",content:b[X][0],onClick:function(){function Y(){return d("remove_from_queue",{remove_from_queue:b.indexOf(H)+1})}return Y}()},H)},X)}));var U=(0,a.flow)([(0,t.filter)(function(H){return(H.category.indexOf(A)>-1||R)&&(u.showhacked||!H.hacked)}),R&&(0,t.filter)(F),(0,t.sortBy)(function(H){return H.name.toLowerCase()})])(I),K="Build";return R?K="Results for: '"+R+"':":A&&(K="Build ("+A+")"),(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,f.Stack,{fill:!0,horizontal:!0,children:[(0,e.createComponentVNode)(2,f.Stack.Item,{width:"70%",children:(0,e.createComponentVNode)(2,f.Section,{fill:!0,scrollable:!0,title:K,buttons:(0,e.createComponentVNode)(2,f.Dropdown,{width:"150px",options:L,selected:A,onSelected:function(){function H(X){return x(X)}return H}()}),children:[(0,e.createComponentVNode)(2,f.Input,{fluid:!0,placeholder:"Search for...",onInput:function(){function H(X,Y){return D(Y)}return H}(),mb:1}),U.map(function(H){return(0,e.createComponentVNode)(2,f.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,f.Button,{mr:1,icon:"hammer",selected:u.busyname===H.name&&u.busyamt===1,disabled:!S(H,u.metal_amount,u.glass_amount,1),onClick:function(){function X(){return d("make",{make:H.uid,multiplier:1})}return X}(),children:(0,y.toTitleCase)(H.name)}),H.max_multiplier>=10&&(0,e.createComponentVNode)(2,f.Button,{mr:1,icon:"hammer",selected:u.busyname===H.name&&u.busyamt===10,disabled:!S(H,u.metal_amount,u.glass_amount,10),onClick:function(){function X(){return d("make",{make:H.uid,multiplier:10})}return X}(),children:"10x"}),H.max_multiplier>=25&&(0,e.createComponentVNode)(2,f.Button,{mr:1,icon:"hammer",selected:u.busyname===H.name&&u.busyamt===25,disabled:!S(H,u.metal_amount,u.glass_amount,25),onClick:function(){function X(){return d("make",{make:H.uid,multiplier:25})}return X}(),children:"25x"}),H.max_multiplier>25&&(0,e.createComponentVNode)(2,f.Button,{mr:1,icon:"hammer",selected:u.busyname===H.name&&u.busyamt===H.max_multiplier,disabled:!S(H,u.metal_amount,u.glass_amount,H.max_multiplier),onClick:function(){function X(){return d("make",{make:H.uid,multiplier:H.max_multiplier})}return X}(),children:[H.max_multiplier,"x"]}),H.requirements&&Object.keys(H.requirements).map(function(X){return(0,y.toTitleCase)(X)+": "+H.requirements[X]}).join(", ")||(0,e.createComponentVNode)(2,f.Box,{children:"No resources required."})]},H.ref)})]})}),(0,e.createComponentVNode)(2,f.Stack.Item,{width:"30%",children:[(0,e.createComponentVNode)(2,f.Section,{title:"Materials",children:(0,e.createComponentVNode)(2,f.LabeledList,{children:[(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Metal",children:E}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Glass",children:M}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Total",children:j}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Storage",children:[u.fill_percent,"% Full"]})]})}),(0,e.createComponentVNode)(2,f.Section,{title:"Building",children:(0,e.createComponentVNode)(2,f.Box,{color:g?"green":"",children:g||"Nothing"})}),(0,e.createComponentVNode)(2,f.Section,{title:"Build Queue",height:23.7,children:[W,(0,e.createComponentVNode)(2,f.Button,{mt:.5,fluid:!0,icon:"times",content:"Clear All",color:"red",disabled:!u.buildQueueLen,onClick:function(){function H(){return d("clear_queue")}return H}()})]})]})]})})})}return v}()},81617:function(w,r,n){"use strict";r.__esModule=!0,r.BioChipPad=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.BioChipPad=function(){function V(y,S){var k=(0,a.useBackend)(S),v=k.act,i=k.data,c=i.implant,m=i.contains_case,d=i.gps,u=i.tag,s=(0,a.useLocalState)(S,"newTag",u),l=s[0],p=s[1];return(0,e.createComponentVNode)(2,o.Window,{width:410,height:325,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Bio-chip Mini-Computer",buttons:(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Eject Case",icon:"eject",disabled:!m,onClick:function(){function C(){return v("eject_case")}return C}()})}),children:c&&m?(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}),!!d&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Tag",children:[(0,e.createComponentVNode)(2,t.Input,{width:"5.5rem",value:u,onEnter:function(){function C(){return v("tag",{newtag:l})}return C}(),onInput:function(){function C(g,h){return p(h)}return C}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:u===l,width:"20px",mb:"0",ml:"0.25rem",onClick:function(){function C(){return v("tag",{newtag:l})}return C}(),children:(0,e.createComponentVNode)(2,t.Icon,{name:"pen"})})]})]})],4):m?(0,e.createComponentVNode)(2,t.Box,{children:"This bio-chip case has no implant!"}):(0,e.createComponentVNode)(2,t.Box,{children:"Please insert a bio-chip casing!"})})})})}return V}()},26215:function(w,r,n){"use strict";r.__esModule=!0,r.Biogenerator=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=n(75201),V=r.Biogenerator=function(){function i(c,m){var d=(0,a.useBackend)(m),u=d.data,s=d.config,l=u.container,p=u.processing,C=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,f.Operating,{operating:p,name:C}),(0,e.createComponentVNode)(2,S),(0,e.createComponentVNode)(2,k),l?(0,e.createComponentVNode)(2,v):(0,e.createComponentVNode)(2,y)]})})})}return i}(),y=function(c,m){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,m){var d=(0,a.useBackend)(m),u=d.act,s=d.data,l=s.biomass,p=s.container,C=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:l}),(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:"}),p?(0,e.createComponentVNode)(2,t.ProgressBar,{value:C,maxValue:g,children:(0,e.createComponentVNode)(2,t.Box,{textAlign:"center",children:C+" / "+g+" units"})}):(0,e.createComponentVNode)(2,t.Stack.Item,{children:"None"})]})]})},k=function(c,m){var d=(0,a.useBackend)(m),u=d.act,s=d.data,l=s.has_plants,p=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:!l,tooltip:l?"":"There are no plants in the biogenerator.",tooltipPosition:"top-start",content:"Activate",onClick:function(){function C(){return u("activate")}return C}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:"40%",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"flask",disabled:!p,tooltip:p?"":"The biogenerator does not have a container.",tooltipPosition:"top",content:"Detach Container",onClick:function(){function C(){return u("detach_container")}return C}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:"30%",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"eject",disabled:!l,tooltip:l?"":"There are no stored plants to eject.",tooltipPosition:"top-end",content:"Eject Plants",onClick:function(){function C(){return u("eject_plants")}return C}()})})]})})},v=function(c,m){var d=(0,a.useBackend)(m),u=d.act,s=d.data,l=s.biomass,p=s.product_list,C=(0,a.useSharedState)(m,"vendAmount",1),g=C[0],h=C[1],N=Object.entries(p).map(function(b,B){var I=Object.entries(b[1]).map(function(L){return L[1]});return(0,e.createComponentVNode)(2,t.Collapsible,{title:b[0],open:!0,children:I.map(function(L){return(0,e.createComponentVNode)(2,t.Stack,{py:"2px",className:"candystripe",align:"center",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"50%",ml:"2px",children:L.name}),(0,e.createComponentVNode)(2,t.Stack.Item,{textAlign:"right",width:"20%",children:[L.cost*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:lu&&"bad"||"good";return(0,e.createComponentVNode)(2,o.Window,{width:650,height:450,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[!!h&&(0,e.createComponentVNode)(2,t.NoticeBox,{danger:1,children:"Safety Protocols disabled"}),u>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:u}),(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 I(){return i("set",{set_level:0})}return I}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"step-backward",tooltip:"Decrease to actual input level",disabled:d===0,onClick:function(){function I(){return i("set",{set_level:u})}return I}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"backward",disabled:d===0,tooltip:"Decrease one step",onClick:function(){function I(){return i("decrease")}return I}()})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:1,mx:1,children:(0,e.createComponentVNode)(2,t.Slider,{value:d,fillValue:u,minValue:0,color:B,maxValue:g,stepPixelSize:20,step:1,onChange:function(){function I(L,T){return i("set",{set_level:T})}return I}()})}),(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 I(){return i("increase")}return I}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",disabled:d===g,tooltip:"Set to max",tooltipPosition:"left",onClick:function(){function I(){return i("set",{set_level:g})}return I}()})]})]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Current Power Use",children:(0,f.formatPower)(p)}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power for next level",children:(0,f.formatPower)(b)}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Surplus Power",children:(0,f.formatPower)(C)})]})})}),(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:l})]})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{align:"end",children:(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:m.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 L(){return i("vend",{target:I.key})}return L}(),content:I.price})},I.key)})})})})]})})]})})})}return y}()},71736:function(w,r,n){"use strict";r.__esModule=!0,r.BodyScanner=void 0;var e=n(96524),a=n(36121),t=n(78234),o=n(17899),f=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"]],v={average:[.25,.5],bad:[.5,1/0]},i=function(B,I){for(var L=[],T=0;T0?B.filter(function(I){return!!I}).reduce(function(I,L){return(0,e.createFragment)([I,(0,e.createComponentVNode)(2,f.Box,{children:L},L)],0)},null):null},m=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,I){var L=(0,o.useBackend)(I),T=L.data,A=T.occupied,x=T.occupant,E=x===void 0?{}:x,M=A?(0,e.createComponentVNode)(2,u,{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}(),u=function(B){var I=B.occupant;return(0,e.createComponentVNode)(2,f.Box,{children:[(0,e.createComponentVNode)(2,s,{occupant:I}),(0,e.createComponentVNode)(2,l,{occupant:I}),(0,e.createComponentVNode)(2,p,{occupant:I}),(0,e.createComponentVNode)(2,g,{organs:I.extOrgan}),(0,e.createComponentVNode)(2,h,{organs:I.intOrgan})]})},s=function(B,I){var L=(0,o.useBackend)(I),T=L.act,A=L.data,x=A.occupant;return(0,e.createComponentVNode)(2,f.Section,{title:"Occupant",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,f.Button,{icon:"print",onClick:function(){function E(){return T("print_p")}return E}(),children:"Print Report"}),(0,e.createComponentVNode)(2,f.Button,{icon:"user-slash",onClick:function(){function E(){return T("ejectify")}return E}(),children:"Eject"})],4),children:(0,e.createComponentVNode)(2,f.LabeledList,{children:[(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Name",children:x.name}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Health",children:(0,e.createComponentVNode)(2,f.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,f.LabeledList.Item,{label:"Status",color:y[x.stat][0],children:y[x.stat][1]}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Temperature",children:[(0,e.createComponentVNode)(2,f.AnimatedNumber,{value:(0,a.round)(x.bodyTempC)}),"\xB0C,\xA0",(0,e.createComponentVNode)(2,f.AnimatedNumber,{value:(0,a.round)(x.bodyTempF)}),"\xB0F"]}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Implants",children:x.implant_len?(0,e.createComponentVNode)(2,f.Box,{children:x.implant.map(function(E){return E.name}).join(", ")}):(0,e.createComponentVNode)(2,f.Box,{color:"label",children:"None"})})]})})},l=function(B){var I=B.occupant;return I.hasBorer||I.blind||I.colourblind||I.nearsighted||I.hasVirus?(0,e.createComponentVNode)(2,f.Section,{title:"Abnormalities",children:S.map(function(L,T){if(I[L[0]])return(0,e.createComponentVNode)(2,f.Box,{color:L[1],bold:L[1]==="bad",children:L[2]},L[2])})}):(0,e.createComponentVNode)(2,f.Section,{title:"Abnormalities",children:(0,e.createComponentVNode)(2,f.Box,{color:"label",children:"No abnormalities found."})})},p=function(B){var I=B.occupant;return(0,e.createComponentVNode)(2,f.Section,{title:"Damage",children:(0,e.createComponentVNode)(2,f.Table,{children:i(k,function(L,T,A){return(0,e.createFragment)([(0,e.createComponentVNode)(2,f.Table.Row,{color:"label",children:[(0,e.createComponentVNode)(2,f.Table.Cell,{children:[L[0],":"]}),(0,e.createComponentVNode)(2,f.Table.Cell,{children:!!T&&T[0]+":"})]}),(0,e.createComponentVNode)(2,f.Table.Row,{children:[(0,e.createComponentVNode)(2,f.Table.Cell,{children:(0,e.createComponentVNode)(2,C,{value:I[L[1]],marginBottom:A100)&&"average"||!!I.status.robotic&&"label",width:"33%",children:(0,t.capitalize)(I.name)}),(0,e.createComponentVNode)(2,f.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,f.ProgressBar,{m:-.5,min:"0",max:I.maxHealth,mt:L>0&&"0.5rem",value:I.totalLoss/I.maxHealth,ranges:v,children:(0,e.createComponentVNode)(2,f.Stack,{children:[(0,e.createComponentVNode)(2,f.Tooltip,{content:"Total damage",children:(0,e.createComponentVNode)(2,f.Stack.Item,{children:[(0,e.createComponentVNode)(2,f.Icon,{name:"heartbeat",mr:.5}),(0,a.round)(I.totalLoss)]})}),!!I.bruteLoss&&(0,e.createComponentVNode)(2,f.Tooltip,{content:"Brute damage",children:(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,children:[(0,e.createComponentVNode)(2,f.Icon,{name:"bone",mr:.5}),(0,a.round)(I.bruteLoss)]})}),!!I.fireLoss&&(0,e.createComponentVNode)(2,f.Tooltip,{content:"Burn damage",children:(0,e.createComponentVNode)(2,f.Stack.Item,{children:[(0,e.createComponentVNode)(2,f.Icon,{name:"fire",mr:.5}),(0,a.round)(I.fireLoss)]})})]})})}),(0,e.createComponentVNode)(2,f.Table.Cell,{textAlign:"right",verticalAlign:"top",width:"33%",pt:L>0&&"calc(0.5rem + 2px)",children:[(0,e.createComponentVNode)(2,f.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,m(I.germ_level),!!I.open&&"Open incision"])}),(0,e.createComponentVNode)(2,f.Box,{inline:!0,children:[c([!!I.status.splinted&&(0,e.createComponentVNode)(2,f.Box,{color:"good",children:"Splinted"}),!!I.status.robotic&&(0,e.createComponentVNode)(2,f.Box,{color:"label",children:"Robotic"}),!!I.status.dead&&(0,e.createComponentVNode)(2,f.Box,{color:"bad",bold:!0,children:"DEAD"})]),c(I.shrapnel.map(function(T){return T.known?T.name:"Unknown object"}))]})]})]},L)})]})})},h=function(B){return B.organs.length===0?(0,e.createComponentVNode)(2,f.Section,{title:"Internal Organs",children:(0,e.createComponentVNode)(2,f.Box,{color:"label",children:"N/A"})}):(0,e.createComponentVNode)(2,f.Section,{title:"Internal Organs",children:(0,e.createComponentVNode)(2,f.Table,{children:[(0,e.createComponentVNode)(2,f.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,f.Table.Cell,{children:"Name"}),(0,e.createComponentVNode)(2,f.Table.Cell,{textAlign:"center",children:"Damage"}),(0,e.createComponentVNode)(2,f.Table.Cell,{textAlign:"right",children:"Injuries"})]}),B.organs.map(function(I,L){return(0,e.createComponentVNode)(2,f.Table.Row,{children:[(0,e.createComponentVNode)(2,f.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,f.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,f.ProgressBar,{min:"0",max:I.maxHealth,value:I.damage/I.maxHealth,mt:L>0&&"0.5rem",ranges:v,children:(0,a.round)(I.damage)})}),(0,e.createComponentVNode)(2,f.Table.Cell,{textAlign:"right",verticalAlign:"top",width:"33%",pt:L>0&&"calc(0.5rem + 2px)",children:[(0,e.createComponentVNode)(2,f.Box,{color:"average",inline:!0,children:c([m(I.germ_level)])}),(0,e.createComponentVNode)(2,f.Box,{inline:!0,children:c([I.robotic===1&&(0,e.createComponentVNode)(2,f.Box,{color:"label",children:"Robotic"}),I.robotic===2&&(0,e.createComponentVNode)(2,f.Box,{color:"label",children:"Assisted"}),!!I.dead&&(0,e.createComponentVNode)(2,f.Box,{color:"bad",bold:!0,children:"DEAD"})])})]})]},L)})]})})},N=function(){return(0,e.createComponentVNode)(2,f.Section,{fill:!0,children:(0,e.createComponentVNode)(2,f.Stack,{fill:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,align:"center",color:"label",children:[(0,e.createComponentVNode)(2,f.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,e.createVNode)(1,"br"),"No occupant detected."]})})})}},99449:function(w,r,n){"use strict";r.__esModule=!0,r.BookBinder=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=n(99665),V=n(18963),y=r.BookBinder=function(){function S(k,v){var i=(0,a.useBackend)(v),c=i.act,m=i.data,d=m.selectedbook,u=m.book_categories,s=[];return u.map(function(l){return s[l.description]=l.category_id}),(0,e.createComponentVNode)(2,o.Window,{width:600,height:400,children:[(0,e.createComponentVNode)(2,f.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 l(){return c("print_book")}return l}()}),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 l(){return(0,f.modalOpen)(v,"edit_selected_title")}return l}()})}),(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 l(){return(0,f.modalOpen)(v,"edit_selected_author")}return l}()})}),(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:u.map(function(l){return l.description}),onSelected:function(){function l(p){return c("toggle_binder_category",{category_id:s[p]})}return l}()})})}),(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 l(){return(0,f.modalOpen)(v,"edit_selected_summary")}return l}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{children:d.summary})]}),(0,e.createVNode)(1,"br"),u.filter(function(l){return d.categories.includes(l.category_id)}).map(function(l){return(0,e.createComponentVNode)(2,t.Button,{content:l.description,selected:!0,icon:"unlink",onClick:function(){function p(){return c("toggle_binder_category",{category_id:l.category_id})}return p}()},l.category_id)})]})})]})})})]})}return S}()},85951:function(w,r,n){"use strict";r.__esModule=!0,r.BotCall=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=function(i){var c=[{modes:[0],label:"Idle",color:"green"},{modes:[1,2,3],label:"Arresting",color:"yellow"},{modes:[4,5],label:"Patrolling",color:"average"},{modes:[9],label:"Moving",color:"average"},{modes:[6,11],label:"Responding",color:"green"},{modes:[12],label:"Delivering Cargo",color:"blue"},{modes:[13],label:"Returning Home",color:"blue"},{modes:[7,8,10,14,15,16,17,18,19],label:"Working",color:"blue"}],m=c.find(function(d){return d.modes.includes(i)});return(0,e.createComponentVNode)(2,t.Box,{color:m.color,children:[" ",m.label," "]})},V=r.BotCall=function(){function v(i,c){var m=(0,a.useBackend)(c),d=m.act,u=m.data,s=(0,a.useLocalState)(c,"tabIndex",0),l=s[0],p=s[1],C={0:"Security",1:"Medibot",2:"Cleanbot",3:"Floorbot",4:"Mule",5:"Honkbot"},g=function(){function h(N){return C[N]?(0,e.createComponentVNode)(2,y,{model:C[N]}):"This should not happen. Report on Paradise Github"}return h}();return(0,e.createComponentVNode)(2,o.Window,{width:700,height:400,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:l===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.Tabs,{fluid:!0,textAlign:"center",children:Array.from({length:6}).map(function(h,N){return(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:l===N,onClick:function(){function b(){return p(N)}return b}(),children:C[N]},N)})})}),g(l)]})})})}return v}(),y=function(i,c){var m=(0,a.useBackend)(c),d=m.act,u=m.data,s=u.bots;return s[i.model]!==void 0?(0,e.createComponentVNode)(2,k,{model:[i.model]}):(0,e.createComponentVNode)(2,S,{model:[i.model]})},S=function(i,c){var m=(0,a.useBackend)(c),d=m.act,u=m.data;return(0,e.createComponentVNode)(2,t.Stack,{justify:"center",align:"center",fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,t.Box,{bold:1,color:"bad",children:["No ",[i.model]," detected"]})})},k=function(i,c){var m=(0,a.useBackend)(c),d=m.act,u=m.data,s=u.bots;return(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,t.Stack.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:"Name"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Model"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Status"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Location"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Interface"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Call"})]}),s[i.model].map(function(l){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:l.name}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:l.model}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:l.on?f(l.status):(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Off"})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:l.location}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Interface",onClick:function(){function p(){return d("interface",{botref:l.UID})}return p}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Call",onClick:function(){function p(){return d("call",{botref:l.UID})}return p}()})})]},l.UID)})]})})})}},43506:function(w,r,n){"use strict";r.__esModule=!0,r.BotClean=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=n(69521),V=r.BotClean=function(){function y(S,k){var v=(0,a.useBackend)(k),i=v.act,c=v.data,m=c.locked,d=c.noaccess,u=c.maintpanel,s=c.on,l=c.autopatrol,p=c.canhack,C=c.emagged,g=c.remote_disabled,h=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,f.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 i("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 i("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})})]}),h&&(0,e.createComponentVNode)(2,t.Section,{title:"pAI",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"eject",content:h,disabled:d,onClick:function(){function B(){return i("ejectpai")}return B}()})})]})})}return y}()},89593:function(w,r,n){"use strict";r.__esModule=!0,r.BotFloor=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=n(69521),V=r.BotFloor=function(){function y(S,k){var v=(0,a.useBackend)(k),i=v.act,c=v.data,m=c.noaccess,d=c.painame,u=c.hullplating,s=c.replace,l=c.eat,p=c.make,C=c.fixfloor,g=c.nag_empty,h=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,f.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:u,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:m,onClick:function(){function b(){return i("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:m,onClick:function(){function b(){return i("replacetiles")}return b}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:C,content:"Repair damaged tiles and platings",disabled:m,onClick:function(){function b(){return i("fixfloors")}return b}()})]}),(0,e.createComponentVNode)(2,t.Section,{title:"Miscellaneous",children:[(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:l,content:"Finds tiles",disabled:m,onClick:function(){function b(){return i("eattiles")}return b}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:p,content:"Make pieces of metal into tiles when empty",disabled:m,onClick:function(){function b(){return i("maketiles")}return b}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:g,content:"Transmit notice when empty",disabled:m,onClick:function(){function b(){return i("nagonempty")}return b}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:h,content:"Traction Magnets",disabled:m,onClick:function(){function b(){return i("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:m,onClick:function(){function b(){return i("ejectpai")}return b}()})})]})})}return y}()},89513:function(w,r,n){"use strict";r.__esModule=!0,r.BotHonk=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=n(69521),V=r.BotHonk=function(){function y(S,k){var v=(0,a.useBackend)(k),i=v.act,c=v.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,f.BotStatus)})})}return y}()},19297:function(w,r,n){"use strict";r.__esModule=!0,r.BotMed=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=n(69521),V=r.BotMed=function(){function y(S,k){var v=(0,a.useBackend)(k),i=v.act,c=v.data,m=c.locked,d=c.noaccess,u=c.maintpanel,s=c.on,l=c.autopatrol,p=c.canhack,C=c.emagged,g=c.remote_disabled,h=c.painame,N=c.shut_up,b=c.declare_crit,B=c.stationary_mode,I=c.heal_threshold,L=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,f.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 i("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 i("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:d,onChange:function(){function E(M,j){return i("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:L.value,minValue:L.min,maxValue:L.max,step:5,format:function(){function E(M){return M+"u"}return E}(),disabled:d,onChange:function(){function E(M,j){return i("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:d,onClick:function(){function E(){return i("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:d,onClick:function(){function E(){return i("eject_reagent_glass")}return E}()})})]})})]}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{mt:1,fluid:!0,content:"Treat Viral Infections",checked:A,disabled:d,onClick:function(){function E(){return i("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 i("toggle_stationary_mode")}return E}()})]}),h&&(0,e.createComponentVNode)(2,t.Section,{title:"pAI",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"eject",content:h,disabled:d,onClick:function(){function E(){return i("ejectpai")}return E}()})})]})})})}return y}()},4249:function(w,r,n){"use strict";r.__esModule=!0,r.BotSecurity=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=n(69521),V=r.BotSecurity=function(){function y(S,k){var v=(0,a.useBackend)(k),i=v.act,c=v.data,m=c.noaccess,d=c.painame,u=c.check_id,s=c.check_weapons,l=c.check_warrant,p=c.arrest_mode,C=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,f.BotStatus),(0,e.createComponentVNode)(2,t.Section,{title:"Who To Arrest",children:[(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:u,content:"Unidentifiable Persons",disabled:m,onClick:function(){function g(){return i("authid")}return g}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:s,content:"Unauthorized Weapons",disabled:m,onClick:function(){function g(){return i("authweapon")}return g}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:l,content:"Wanted Criminals",disabled:m,onClick:function(){function g(){return i("authwarrant")}return g}()})]}),(0,e.createComponentVNode)(2,t.Section,{title:"Arrest Procedure",children:[(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:p,content:"Detain Targets Indefinitely",disabled:m,onClick:function(){function g(){return i("arrtype")}return g}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:C,content:"Announce Arrests On Radio",disabled:m,onClick:function(){function g(){return i("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:m,onClick:function(){function g(){return i("ejectpai")}return g}()})})]})})}return y}()},27267:function(w,r,n){"use strict";r.__esModule=!0,r.BrigCells=void 0;var e=n(96524),a=n(45493),t=n(24674),o=n(17899),f=function(k,v){var i=k.cell,c=(0,o.useBackend)(v),m=c.act,d=i.cell_id,u=i.occupant,s=i.crimes,l=i.brigged_by,p=i.time_left_seconds,C=i.time_set_seconds,g=i.ref,h="";p>0&&(h+=" BrigCells__listRow--active");var N=function(){m("release",{ref:g})};return(0,e.createComponentVNode)(2,t.Table.Row,{className:h,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:d}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:u}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:s}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:l}),(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.TimeDisplay,{totalSeconds:p})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{type:"button",onClick:N,children:"Release"})})]})},V=function(k){var v=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"})]}),v.map(function(i){return(0,e.createComponentVNode)(2,f,{cell:i},i.ref)})]})},y=r.BrigCells=function(){function S(k,v){var i=(0,o.useBackend)(v),c=i.act,m=i.data,d=m.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(w,r,n){"use strict";r.__esModule=!0,r.BrigTimer=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.BrigTimer=function(){function V(y,S){var k=(0,a.useBackend)(S),v=k.act,i=k.data;i.nameText=i.occupant,i.timing&&(i.prisoner_hasrec?i.nameText=(0,e.createComponentVNode)(2,t.Box,{color:"green",children:i.occupant}):i.nameText=(0,e.createComponentVNode)(2,t.Box,{color:"red",children:i.occupant}));var c="pencil-alt";i.prisoner_name&&(i.prisoner_hasrec||(c="exclamation-triangle"));var m=[],d=0;for(d=0;dm?this.substring(0,m)+"...":this};var k=function(d,u){var s,l;if(!u)return[];var p=d.findIndex(function(C){return C.name===u.name});return[(s=d[p-1])==null?void 0:s.name,(l=d[p+1])==null?void 0:l.name]},v=function(d,u){u===void 0&&(u="");var s=(0,f.createSearch)(u,function(l){return l.name});return(0,t.flow)([(0,a.filter)(function(l){return l==null?void 0:l.name}),u&&(0,a.filter)(s),(0,a.sortBy)(function(l){return l.name})])(d)},i=r.CameraConsole=function(){function m(d,u){var s=(0,V.useBackend)(u),l=s.act,p=s.data,C=s.config,g=p.mapRef,h=p.activeCamera,N=v(p.cameras),b=k(N,h),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),h&&h.name||"\u2014"],0),(0,e.createVNode)(1,"div","CameraConsole__toolbarRight",[(0,e.createComponentVNode)(2,y.Button,{icon:"chevron-left",disabled:!B,onClick:function(){function L(){return l("switch_camera",{name:B})}return L}()}),(0,e.createComponentVNode)(2,y.Button,{icon:"chevron-right",disabled:!I,onClick:function(){function L(){return l("switch_camera",{name:I})}return L}()})],4),(0,e.createComponentVNode)(2,y.ByondUi,{className:"CameraConsole__map",params:{id:g,type:"map"}})],4)]})}return m}(),c=r.CameraConsoleContent=function(){function m(d,u){var s=(0,V.useBackend)(u),l=s.act,p=s.data,C=(0,V.useLocalState)(u,"searchText",""),g=C[0],h=C[1],N=p.activeCamera,b=v(p.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,L){return h(L)}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 I(){return l("switch_camera",{name:B.name})}return I}()},B.name)})})})]})}return m}()},9300:function(w,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),f=n(78234),V=n(17899),y=n(24674),S=n(45493),k=function(u,s){var l,p;if(!s)return[];var C=u.findIndex(function(g){return g.name===s.name});return[(l=u[C-1])==null?void 0:l.name,(p=u[C+1])==null?void 0:p.name]},v=function(u,s){s===void 0&&(s="");var l=(0,f.createSearch)(s,function(p){return p.name});return(0,t.flow)([(0,a.filter)(function(p){return p==null?void 0:p.name}),s&&(0,a.filter)(l),(0,a.sortBy)(function(p){return p.name})])(u)},i=r.CameraConsole220=function(){function d(u,s){var l=(0,V.useLocalState)(s,"tabIndex",0),p=l[0],C=l[1],g=function(){function h(N){switch(N){case 0:return(0,e.createComponentVNode)(2,c);case 1:return(0,e.createComponentVNode)(2,m);default:return"WE SHOULDN'T BE HERE!"}}return h}();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:p===1?"222px":"475px",textAlign:"center",children:(0,e.createComponentVNode)(2,y.Tabs,{fluid:!0,ml:p===1?1:0,mt:p===1?1:0,children:[(0,e.createComponentVNode)(2,y.Tabs.Tab,{selected:p===0,onClick:function(){function h(){return C(0)}return h}(),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:p===1,onClick:function(){function h(){return C(1)}return h}(),children:[(0,e.createComponentVNode)(2,y.Icon,{name:"table"})," \u0421\u043F\u0438\u0441\u043E\u043A"]},"List")]})}),g(p)]})})})})}return d}(),c=r.CameraConsoleMapContent=function(){function d(u,s){var l=(0,V.useBackend)(s),p=l.act,C=l.data,g=v(C.cameras),h=(0,V.useLocalState)(s,"zoom",1),N=h[0],b=h[1],B=C.mapRef,I=C.activeCamera,L=C.stationLevel,T=k(g,I),A=T[0],x=T[1];return(0,e.createComponentVNode)(2,y.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,y.Stack.Item,{height:"100%",style:{flex:"0 0 474px"},children:(0,e.createComponentVNode)(2,y.NanoMap,{onZoom:function(){function E(M){return b(M)}return E}(),children:g.filter(function(E){return E.z===L}).map(function(E){return(0,e.createComponentVNode)(2,y.NanoMap.NanoButton,{activeCamera:I,x:E.x,y:E.y,context:s,zoom:N,icon:"circle",tooltip:E.name,name:E.name,color:"blue",status:E.status},E.ref)})})}),(0,e.createComponentVNode)(2,y.Stack.Item,{height:"100%",m:.1,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),I&&I.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 p("switch_camera",{name:A})}return E}()}),(0,e.createComponentVNode)(2,y.Button,{icon:"chevron-right",disabled:!x,onClick:function(){function E(){return p("switch_camera",{name:x})}return E}()})],4)],4),(0,e.createComponentVNode)(2,y.ByondUi,{className:"CameraConsole__map",overflow:"hidden",params:{id:B,type:"map"}})]})]})}return d}(),m=r.CameraConsoleOldContent=function(){function d(u,s){var l=(0,V.useBackend)(s),p=l.act,C=l.data,g=l.config,h=C.mapRef,N=C.activeCamera,b=(0,V.useLocalState)(s,"searchText",""),B=b[0],I=b[1],L=v(C.cameras,B),T=k(L,N),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:L.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 p("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:!A,onClick:function(){function E(){return p("switch_camera",{name:A})}return E}()}),(0,e.createComponentVNode)(2,y.Button,{icon:"chevron-right",disabled:!x,onClick:function(){function E(){return p("switch_camera",{name:x})}return E}()})],4),(0,e.createComponentVNode)(2,y.ByondUi,{className:"CameraConsole__map",params:{id:h,type:"map"}})],4)]})}return d}()},95513:function(w,r,n){"use strict";r.__esModule=!0,r.Canister=void 0;var e=n(96524),a=n(36121),t=n(17899),o=n(24674),f=n(92986),V=n(45493),y=r.Canister=function(){function S(k,v){var i=(0,t.useBackend)(v),c=i.act,m=i.data,d=m.portConnected,u=m.tankPressure,s=m.releasePressure,l=m.defaultReleasePressure,p=m.minReleasePressure,C=m.maxReleasePressure,g=m.valveOpen,h=m.name,N=m.canLabel,b=m.colorContainer,B=m.color_index,I=m.hasHoldingTank,L=m.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;Dh.current_positions&&(0,e.createComponentVNode)(2,t.Box,{color:"green",children:h.total_positions-h.current_positions})||(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"0"})}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{content:"-",disabled:l.cooldown_time||!h.can_close,onClick:function(){function N(){return s("make_job_unavailable",{job:h.title})}return N}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{content:"+",disabled:l.cooldown_time||!h.can_open,onClick:function(){function N(){return s("make_job_available",{job:h.title})}return N}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:l.target_dept&&(0,e.createComponentVNode)(2,t.Box,{color:"green",children:l.priority_jobs.indexOf(h.title)>-1?"Yes":""})||(0,e.createComponentVNode)(2,t.Button,{content:h.is_priority?"Yes":"No",selected:h.is_priority,disabled:l.cooldown_time||!h.can_prioritize,onClick:function(){function N(){return s("prioritize_job",{job:h.title})}return N}()})})]},h.title)})]})})]}):g=(0,e.createComponentVNode)(2,S);break;case 2:!l.authenticated||!l.scan_name?g=(0,e.createComponentVNode)(2,S):l.modify_name?g=(0,e.createComponentVNode)(2,f.AccessList,{accesses:l.regions,selectedList:l.selectedAccess,accessMod:function(){function h(N){return s("set",{access:N})}return h}(),grantAll:function(){function h(){return s("grant_all")}return h}(),denyAll:function(){function h(){return s("clear_all")}return h}(),grantDep:function(){function h(N){return s("grant_region",{region:N})}return h}(),denyDep:function(){function h(N){return s("deny_region",{region:N})}return h}()}):g=(0,e.createComponentVNode)(2,k);break;case 3:l.authenticated?l.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:!l.authenticated||l.records.length===0||l.target_dept,onClick:function(){function h(){return s("wipe_all_logs")}return h}()}),children:[(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{height:2,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Crewman"}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Old Rank"}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"New Rank"}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Authorized By"}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Time"}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Reason"}),!!l.iscentcom&&(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Deleted By"})]}),l.records.map(function(h){return(0,e.createComponentVNode)(2,t.Table.Row,{height:2,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:h.transferee}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:h.oldvalue}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:h.newvalue}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:h.whodidit}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:h.timestamp}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:h.reason}),!!l.iscentcom&&(0,e.createComponentVNode)(2,t.Table.Cell,{children:h.deletedby})]},h.timestamp)})]}),!!l.iscentcom&&(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"pencil-alt",content:"Delete MY Records",color:"purple",disabled:!l.authenticated||l.records.length===0,onClick:function(){function h(){return s("wipe_my_logs")}return h}()})})]}):g=(0,e.createComponentVNode)(2,v):g=(0,e.createComponentVNode)(2,S);break;case 4:!l.authenticated||!l.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"})]}),l.people_dept.map(function(h){return(0,e.createComponentVNode)(2,t.Table.Row,{height:2,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:h.name}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:h.title}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:h.crimstat}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{content:h.buttontext,disabled:!h.demotable,onClick:function(){function N(){return s("remote_demote",{remote_demote:h.name})}return N}()})})]},h.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:C}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:p}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:g})]})})})}return c}()},16377:function(w,r,n){"use strict";r.__esModule=!0,r.CargoConsole=void 0;var e=n(96524),a=n(74041),t=n(50640),o=n(17899),f=n(24674),V=n(45493),y=n(78234),S=r.CargoConsole=function(){function u(s,l){return(0,e.createComponentVNode)(2,V.Window,{width:900,height:800,children:(0,e.createComponentVNode)(2,V.Window.Content,{children:(0,e.createComponentVNode)(2,f.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,k),(0,e.createComponentVNode)(2,v),(0,e.createComponentVNode)(2,i),(0,e.createComponentVNode)(2,c),(0,e.createComponentVNode)(2,d)]})})})}return u}(),k=function(s,l){var p=(0,o.useLocalState)(l,"contentsModal",null),C=p[0],g=p[1],h=(0,o.useLocalState)(l,"contentsModalTitle",null),N=h[0],b=h[1];if(C!==null&&N!==null)return(0,e.createComponentVNode)(2,f.Modal,{maxWidth:"75%",width:window.innerWidth+"px",maxHeight:window.innerHeight*.75+"px",mx:"auto",children:[(0,e.createComponentVNode)(2,f.Box,{width:"100%",bold:!0,children:(0,e.createVNode)(1,"h1",null,[N,(0,e.createTextVNode)(" contents:")],0)}),(0,e.createComponentVNode)(2,f.Box,{children:C.map(function(B){return(0,e.createComponentVNode)(2,f.Box,{children:["- ",B]},B)})}),(0,e.createComponentVNode)(2,f.Box,{m:2,children:(0,e.createComponentVNode)(2,f.Button,{content:"Close",onClick:function(){function B(){g(null),b(null)}return B}()})})]})},v=function(s,l){var p=(0,o.useBackend)(l),C=p.act,g=p.data,h=g.is_public,N=g.timeleft,b=g.moving,B=g.at_station,I,L;return!b&&!B?(I="Docked off-station",L="Call Shuttle"):!b&&B?(I="Docked at the station",L="Return Shuttle"):b&&(L="In Transit...",N!==1?I="Shuttle is en route (ETA: "+N+" minutes)":I="Shuttle is en route (ETA: "+N+" minute)"),(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Section,{title:"Status",children:(0,e.createComponentVNode)(2,f.LabeledList,{children:[(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Shuttle Status",children:I}),h===0&&(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Controls",children:[(0,e.createComponentVNode)(2,f.Button,{content:L,disabled:b,onClick:function(){function T(){return C("moveShuttle")}return T}()}),(0,e.createComponentVNode)(2,f.Button,{content:"View Central Command Messages",onClick:function(){function T(){return C("showMessages")}return T}()})]})]})})})},i=function(s,l){var p,C=(0,o.useBackend)(l),g=C.act,h=C.data,N=h.accounts,b=(0,o.useLocalState)(l,"selectedAccount"),B=b[0],I=b[1],L=[];return N.map(function(T){return L[T.name]=T.account_UID}),(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Section,{title:"Payment",children:[(0,e.createComponentVNode)(2,f.Dropdown,{width:"190px",options:N.map(function(T){return T.name}),selected:(p=N.filter(function(T){return T.account_UID===B})[0])==null?void 0:p.name,onSelected:function(){function T(A){return I(L[A])}return T}()}),N.filter(function(T){return T.account_UID===B}).map(function(T){return(0,e.createComponentVNode)(2,f.LabeledList,{children:[(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Account Name",children:(0,e.createComponentVNode)(2,f.Stack.Item,{mt:1,children:T.name})}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Balance",children:(0,e.createComponentVNode)(2,f.Stack.Item,{children:T.balance})})]},T.account_UID)})]})})},c=function(s,l){var p=(0,o.useBackend)(l),C=p.act,g=p.data,h=g.requests,N=g.categories,b=g.supply_packs,B=(0,o.useSharedState)(l,"category","Emergency"),I=B[0],L=B[1],T=(0,o.useSharedState)(l,"search_text",""),A=T[0],x=T[1],E=(0,o.useLocalState)(l,"contentsModal",null),M=E[0],j=E[1],P=(0,o.useLocalState)(l,"contentsModalTitle",null),R=P[0],D=P[1],F=(0,y.createSearch)(A,function(Y){return Y.name}),W=(0,o.useLocalState)(l,"selectedAccount"),U=W[0],K=W[1],H=(0,a.flow)([(0,t.filter)(function(Y){return Y.cat===N.filter(function(J){return J.name===I})[0].category||A}),A&&(0,t.filter)(F),(0,t.sortBy)(function(Y){return Y.name.toLowerCase()})])(b),X="Crate Catalogue";return A?X="Results for '"+A+"':":I&&(X="Browsing "+I),(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Section,{title:X,buttons:(0,e.createComponentVNode)(2,f.Dropdown,{width:"190px",options:N.map(function(Y){return Y.name}),selected:I,onSelected:function(){function Y(J){return L(J)}return Y}()}),children:[(0,e.createComponentVNode)(2,f.Input,{fluid:!0,placeholder:"Search for...",onInput:function(){function Y(J,ie){return x(ie)}return Y}(),mb:1}),(0,e.createComponentVNode)(2,f.Box,{maxHeight:25,overflowY:"auto",overflowX:"hidden",children:(0,e.createComponentVNode)(2,f.Table,{m:"0.5rem",children:H.map(function(Y){return(0,e.createComponentVNode)(2,f.Table.Row,{children:[(0,e.createComponentVNode)(2,f.Table.Cell,{bold:!0,children:[Y.name," (",Y.cost," Credits)"]}),(0,e.createComponentVNode)(2,f.Table.Cell,{textAlign:"right",pr:1,children:[(0,e.createComponentVNode)(2,f.Button,{content:"Order 1",icon:"shopping-cart",disabled:!U,onClick:function(){function J(){return C("order",{crate:Y.ref,multiple:!1,account:U})}return J}()}),(0,e.createComponentVNode)(2,f.Button,{content:"Order Multiple",icon:"cart-plus",disabled:!U||Y.singleton,onClick:function(){function J(){return C("order",{crate:Y.ref,multiple:!0,account:U})}return J}()}),(0,e.createComponentVNode)(2,f.Button,{content:"View Contents",icon:"search",onClick:function(){function J(){j(Y.contents),D(Y.name)}return J}()})]})]},Y.name)})})})]})})},m=function(s,l){var p=s.request,C,g;switch(p.department){case"Engineering":g="CE",C="orange";break;case"Medical":g="CMO",C="teal";break;case"Science":g="RD",C="purple";break;case"Supply":g="CT",C="brown";break;case"Service":g="HOP",C="olive";break;case"Security":g="HOS",C="red";break;case"Command":g="CAP",C="blue";break;case"Assistant":g="Any Head",C="grey";break}return(0,e.createComponentVNode)(2,f.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,f.Stack.Item,{mt:.5,children:"Approval Required:"}),!!p.req_cargo_approval&&(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Button,{color:"brown",content:"QM",icon:"user-tie",tooltip:"This Order requires approval from the QM still"})}),!!p.req_head_approval&&(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Button,{color:C,content:g,disabled:p.req_cargo_approval,icon:"user-tie",tooltip:p.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,l){var p=(0,o.useBackend)(l),C=p.act,g=p.data,h=g.requests,N=g.orders,b=g.shipments;return(0,e.createComponentVNode)(2,f.Section,{fill:!0,scrollable:!0,title:"Orders",children:[(0,e.createComponentVNode)(2,f.Box,{bold:!0,children:"Requests"}),(0,e.createComponentVNode)(2,f.Table,{children:h.map(function(B){return(0,e.createComponentVNode)(2,f.Table.Row,{className:"Cargo_RequestList",children:[(0,e.createComponentVNode)(2,f.Table.Cell,{mb:1,children:[(0,e.createComponentVNode)(2,f.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,f.Box,{italic:!0,children:["Reason: ",B.comment]}),(0,e.createComponentVNode)(2,m,{request:B})]}),(0,e.createComponentVNode)(2,f.Stack.Item,{textAlign:"right",children:[(0,e.createComponentVNode)(2,f.Button,{content:"Approve",color:"green",disabled:!B.can_approve,onClick:function(){function I(){return C("approve",{ordernum:B.ordernum})}return I}()}),(0,e.createComponentVNode)(2,f.Button,{content:"Deny",color:"red",disabled:!B.can_deny,onClick:function(){function I(){return C("deny",{ordernum:B.ordernum})}return I}()})]})]},B.ordernum)})}),(0,e.createComponentVNode)(2,f.Box,{bold:!0,children:"Orders Awaiting Delivery"}),(0,e.createComponentVNode)(2,f.Table,{m:"0.5rem",children:N.map(function(B){return(0,e.createComponentVNode)(2,f.Table.Row,{children:(0,e.createComponentVNode)(2,f.Table.Cell,{children:[(0,e.createComponentVNode)(2,f.Box,{children:["- #",B.ordernum,": ",B.supply_type," for ",(0,e.createVNode)(1,"b",null,B.orderedby,0)]}),(0,e.createComponentVNode)(2,f.Box,{italic:!0,children:["Reason: ",B.comment]})]})},B.ordernum)})}),(0,e.createComponentVNode)(2,f.Box,{bold:!0,children:"Order in Transit"}),(0,e.createComponentVNode)(2,f.Table,{m:"0.5rem",children:b.map(function(B){return(0,e.createComponentVNode)(2,f.Table.Row,{children:(0,e.createComponentVNode)(2,f.Table.Cell,{children:[(0,e.createComponentVNode)(2,f.Box,{children:["- #",B.ordernum,": ",B.supply_type," for ",(0,e.createVNode)(1,"b",null,B.orderedby,0)]}),(0,e.createComponentVNode)(2,f.Box,{italic:!0,children:["Reason: ",B.comment]})]})},B.ordernum)})})]})}},89917:function(w,r,n){"use strict";r.__esModule=!0,r.ChangelogView=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.ChangelogView=function(){function V(y,S){var k=(0,a.useBackend)(S),v=k.act,i=k.data,c=(0,a.useLocalState)(S,"onlyRecent",0),m=c[0],d=c[1],u=i.cl_data,s=i.last_cl,l={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"})},p=function(){function C(g){return g in l?l[g]:(0,e.createComponentVNode)(2,t.Icon,{name:"plus",color:"green"})}return C}();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:m?"Showing all changes":"Showing changes since last connection",onClick:function(){function C(){return d(!m)}return C}()}),children:u.map(function(C){return!m&&C.merge_ts<=s||(0,e.createComponentVNode)(2,t.Section,{mb:2,title:C.author+" - Merged on "+C.merge_date,buttons:(0,e.createComponentVNode)(2,t.Button,{content:"#"+C.num,onClick:function(){function g(){return v("open_pr",{pr_number:C.num})}return g}()}),children:C.entries.map(function(g){return(0,e.createComponentVNode)(2,t.Box,{m:1,children:[p(g.etype)," ",g.etext]},g)})},C)})})})})}return V}()},71254:function(w,r,n){"use strict";r.__esModule=!0,r.ChemDispenser=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(1496),f=n(45493),V=[1,5,10,20,30,50],y=[1,5,10],S=r.ChemDispenser=function(){function c(m,d){var u=(0,a.useBackend)(d),s=u.act,l=u.data,p=l.chemicals;return(0,e.createComponentVNode)(2,f.Window,{width:400,height:400+p.length*8,children:(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,k),(0,e.createComponentVNode)(2,v),(0,e.createComponentVNode)(2,i)]})})})}return c}(),k=function(m,d){var u=(0,a.useBackend)(d),s=u.act,l=u.data,p=l.amount,C=l.energy,g=l.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:C,minValue:0,maxValue:g,ranges:{good:[g*.5,1/0],average:[g*.25,g*.5],bad:[-1/0,g*.25]},children:[C," / ",g," Units"]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Dispense",verticalAlign:"middle",children:(0,e.createComponentVNode)(2,t.Stack,{children:V.map(function(h,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:p===h,content:h,onClick:function(){function b(){return s("amount",{amount:h})}return b}()})},N)})})})]})})})},v=function(m,d){for(var u=(0,a.useBackend)(d),s=u.act,l=u.data,p=l.chemicals,C=p===void 0?[]:p,g=[],h=0;h<(C.length+1)%3;h++)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:l.glass?"Drink Dispenser":"Chemical Dispenser",children:[C.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)})]})})},i=function(m,d){var u=(0,a.useBackend)(d),s=u.act,l=u.data,p=l.isBeakerLoaded,C=l.beakerCurrentVolume,g=l.beakerMaxVolume,h=l.beakerContents,N=h===void 0?[]:h;return(0,e.createComponentVNode)(2,t.Stack.Item,{height:16,children:(0,e.createComponentVNode)(2,t.Section,{title:l.glass?"Glass":"Beaker",fill:!0,scrollable:!0,buttons:(0,e.createComponentVNode)(2,t.Box,{children:[!!p&&(0,e.createComponentVNode)(2,t.Box,{inline:!0,color:"label",mr:2,children:[C," / ",g," units"]}),(0,e.createComponentVNode)(2,t.Button,{icon:"eject",content:"Eject",disabled:!p,onClick:function(){function b(){return s("ejectBeaker")}return b}()})]}),children:(0,e.createComponentVNode)(2,o.BeakerContents,{beakerLoaded:p,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 I(){return s("remove",{reagent:B.id,amount:-1})}return I}()}),y.map(function(I,L){return(0,e.createComponentVNode)(2,t.Button,{content:I,onClick:function(){function T(){return s("remove",{reagent:B.id,amount:I})}return T}()},L)}),(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(w,r,n){"use strict";r.__esModule=!0,r.ChemHeater=void 0;var e=n(96524),a=n(36121),t=n(17899),o=n(24674),f=n(1496),V=n(45493),y=r.ChemHeater=function(){function v(i,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 v}(),S=function(i,c){var m=(0,t.useBackend)(c),d=m.act,u=m.data,s=u.targetTemp,l=u.targetTempReached,p=u.autoEject,C=u.isActive,g=u.currentTemp,h=u.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:p?"toggle-on":"toggle-off",selected:p,onClick:function(){function N(){return d("toggle_autoeject")}return N}()}),(0,e.createComponentVNode)(2,o.Button,{content:C?"On":"Off",icon:"power-off",selected:C,disabled:!h,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:l?"good":"average",children:h&&(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:g,format:function(){function N(b){return(0,a.toFixed)(b)+" K"}return N}()})||"\u2014"})]})})})},k=function(i,c){var m=(0,t.useBackend)(c),d=m.act,u=m.data,s=u.isBeakerLoaded,l=u.beakerCurrentVolume,p=u.beakerMaxVolume,C=u.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:[l," / ",p," 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,f.BeakerContents,{beakerLoaded:s,beakerContents:C})})})}},41099:function(w,r,n){"use strict";r.__esModule=!0,r.ChemMaster=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=n(1496),V=n(99665),y=n(28234),S=["icon"];function k(I,L){if(I==null)return{};var T={},A=Object.keys(I),x,E;for(E=0;E=0)&&(T[x]=I[x]);return T}function v(I,L){I.prototype=Object.create(L.prototype),I.prototype.constructor=I,i(I,L)}function i(I,L){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function T(A,x){return A.__proto__=x,A}return T}(),i(I,L)}var c=[1,5,10],m=function(L,T){var A=(0,a.useBackend)(T),x=A.act,E=A.data,M=L.args.analysis;return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:E.condi?"Condiment Analysis":"Reagent Analysis",children:(0,e.createComponentVNode)(2,t.Box,{mx:"0.5rem",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Name",children:M.name}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Description",children:(M.desc||"").length>0?M.desc:"N/A"}),M.blood_type&&(0,e.createFragment)([(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Blood type",children:M.blood_type}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Blood DNA",className:"LabeledList__breakContents",children:M.blood_dna})],4),!E.condi&&(0,e.createComponentVNode)(2,t.Button,{icon:E.printing?"spinner":"print",disabled:E.printing,iconSpin:!!E.printing,ml:"0.5rem",content:"Print",onClick:function(){function j(){return x("print",{idx:M.idx,beaker:L.args.beaker})}return j}()})]})})})})},d=function(I){return I[I.ToDisposals=0]="ToDisposals",I[I.ToBeaker=1]="ToBeaker",I}(d||{}),u=r.ChemMaster=function(){function I(L,T){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,s),(0,e.createComponentVNode)(2,l),(0,e.createComponentVNode)(2,p),(0,e.createComponentVNode)(2,B)]})})]})}return I}(),s=function(L,T){var A=(0,a.useBackend)(T),x=A.act,E=A.data,M=E.beaker,j=E.beaker_reagents,P=E.buffer_reagents,R=P.length>0;return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Beaker",fill:!0,scrollable:!0,buttons:R?(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"eject",disabled:!M,content:"Eject and Clear Buffer",onClick:function(){function D(){return x("eject")}return D}()}):(0,e.createComponentVNode)(2,t.Button,{icon:"eject",disabled:!M,content:"Eject and Clear Buffer",onClick:function(){function D(){return x("eject")}return D}()}),children:M?(0,e.createComponentVNode)(2,f.BeakerContents,{beakerLoaded:!0,beakerContents:j,buttons:function(){function D(F,W){return(0,e.createComponentVNode)(2,t.Box,{mb:W0?(0,e.createComponentVNode)(2,f.BeakerContents,{beakerLoaded:!0,beakerContents:j,buttons:function(){function P(R,D){return(0,e.createComponentVNode)(2,t.Box,{mb:D0&&(R=P.map(function(D){var F=D.id,W=D.sprite;return(0,e.createComponentVNode)(2,N,{icon:W,color:"translucent",onClick:function(){function U(){return x("set_sprite_style",{production_mode:M,style:F})}return U}(),selected:j===F},F)})),(0,e.createComponentVNode)(2,h,{productionData:L.productionData,children:R&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Style",children:R})})},B=function(L,T){var A=(0,a.useBackend)(T),x=A.act,E=A.data,M=E.loaded_pill_bottle_style,j=E.containerstyles,P=E.loaded_pill_bottle,R={width:"20px",height:"20px"},D=j.map(function(F){var W=F.color,U=F.name,K=M===W;return(0,e.createComponentVNode)(2,t.Button,{style:{position:"relative",width:R.width,height:R.height},onClick:function(){function H(){return x("set_container_style",{style:W})}return H}(),icon:K&&"check",iconStyle:{position:"relative","z-index":1},tooltip:U,tooltipPosition:"top",children:[!K&&(0,e.createVNode)(1,"div",null,null,1,{style:{display:"inline-block"}}),(0,e.createVNode)(1,"span","Button",null,1,{style:{display:"inline-block",position:"absolute",top:0,left:0,margin:0,padding:0,width:R.width,height:R.height,"background-color":W,opacity:.6,filter:"alpha(opacity=60)"}})]},W)});return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Container Customization",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"eject",disabled:!P,content:"Eject Container",onClick:function(){function F(){return x("ejectp")}return F}()}),children:P?(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Style",children:[(0,e.createComponentVNode)(2,t.Button,{style:{width:R.width,height:R.height},icon:"tint-slash",onClick:function(){function F(){return x("clear_container_style")}return F}(),selected:!M,tooltip:"Default",tooltipPosition:"top"}),D]})}):(0,e.createComponentVNode)(2,t.Box,{color:"label",children:"No pill bottle or patch pack loaded."})})})};(0,V.modalRegisterBodyOverride)("analyze",m)},51327:function(w,r,n){"use strict";r.__esModule=!0,r.CloningConsole=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=n(17442),V=1,y=32,S=128,k=r.CloningConsole=function(){function u(s,l){var p=(0,a.useBackend)(l),C=p.act,g=p.data,h=g.tab,N=g.has_scanner,b=g.pod_amount;return(0,e.createComponentVNode)(2,o.Window,{width:640,height:520,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,t.Section,{title:"Cloning Console",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Connected scanner",children:N?"Online":"Missing"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Connected pods",children:b})]})}),(0,e.createComponentVNode)(2,t.Tabs,{children:[(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:h===1,icon:"home",onClick:function(){function B(){return C("menu",{tab:1})}return B}(),children:"Main Menu"}),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:h===2,icon:"user",onClick:function(){function B(){return C("menu",{tab:2})}return B}(),children:"Damage Configuration"})]}),(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,v)})]})})}return u}(),v=function(s,l){var p=(0,a.useBackend)(l),C=p.data,g=C.tab,h;return g===1?h=(0,e.createComponentVNode)(2,i):g===2&&(h=(0,e.createComponentVNode)(2,c)),h},i=function(s,l){var p=(0,a.useBackend)(l),C=p.act,g=p.data,h=g.pods,N=g.pod_amount,b=g.selected_pod_UID;return(0,e.createComponentVNode)(2,t.Box,{children:[!N&&(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"Notice: No pods connected."}),!!N&&h.map(function(B,I){return(0,e.createComponentVNode)(2,t.Section,{layer:2,title:"Pod "+(I+1),children:(0,e.createComponentVNode)(2,t.Stack,{textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{basis:"96px",shrink:0,children:[(0,e.createVNode)(1,"img",null,null,1,{src:(0,f.resolveAsset)("pod_"+(B.cloning?"cloning":"idle")+".gif"),style:{width:"100%","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createComponentVNode)(2,t.Button,{selected:b===B.uid,onClick:function(){function L(){return C("select_pod",{uid:B.uid})}return L}(),children:"Select"})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Progress",children:[!B.cloning&&(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"Pod is inactive."}),!!B.cloning&&(0,e.createComponentVNode)(2,t.ProgressBar,{value:B.clone_progress,maxValue:100,color:"good"})]}),(0,e.createComponentVNode)(2,t.LabeledList.Divider),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Biomass",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:B.biomass,ranges:{good:[2*B.biomass_storage_capacity/3,B.biomass_storage_capacity],average:[B.biomass_storage_capacity/3,2*B.biomass_storage_capacity/3],bad:[0,B.biomass_storage_capacity/3]},minValue:0,maxValue:B.biomass_storage_capacity,children:[B.biomass,"/",B.biomass_storage_capacity+" ("+100*B.biomass/B.biomass_storage_capacity+"%)"]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Sanguine Reagent",children:B.sanguine_reagent}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Osseous Reagent",children:B.osseous_reagent})]})})]})},B)})]})},c=function(s,l){var p=(0,a.useBackend)(l),C=p.act,g=p.data,h=g.selected_pod_data,N=g.has_scanned,b=g.scanner_has_patient,B=g.feedback,I=g.scan_successful,L=g.cloning_cost,T=g.has_scanner;return(0,e.createComponentVNode)(2,t.Box,{children:[!T&&(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"Notice: No scanner connected."}),!!T&&(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Section,{layer:2,title:"Scanner Info",buttons:(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"hourglass-half",onClick:function(){function A(){return C("scan")}return A}(),children:"Scan"}),(0,e.createComponentVNode)(2,t.Button,{icon:"eject",onClick:function(){function A(){return C("eject")}return A}(),children:"Eject Patient"})]}),children:[!N&&(0,e.createComponentVNode)(2,t.Box,{color:"average",children:b?"No scan detected for current patient.":"No patient is in the scanner."}),!!N&&(0,e.createComponentVNode)(2,t.Box,{color:B.color,children:B.text})]}),(0,e.createComponentVNode)(2,t.Section,{layer:2,title:"Damages Breakdown",children:(0,e.createComponentVNode)(2,t.Box,{children:[(!I||!N)&&(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"No valid scan detected."}),!!I&&!!N&&(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function A(){return C("fix_all")}return A}(),children:"Repair All Damages"}),(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function A(){return C("fix_none")}return A}(),children:"Repair No Damages"})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:1}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function A(){return C("clone")}return A}(),children:"Clone"})})]}),(0,e.createComponentVNode)(2,t.Stack,{height:"25px",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"40%",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:L[0],maxValue:h.biomass_storage_capacity,ranges:{bad:[2*h.biomass_storage_capacity/3,h.biomass_storage_capacity],average:[h.biomass_storage_capacity/3,2*h.biomass_storage_capacity/3],good:[0,h.biomass_storage_capacity/3]},color:L[0]>h.biomass?"bad":null,children:["Biomass: ",L[0],"/",h.biomass,"/",h.biomass_storage_capacity]})}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:"30%",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:L[1],maxValue:h.max_reagent_capacity,ranges:{bad:[2*h.max_reagent_capacity/3,h.max_reagent_capacity],average:[h.max_reagent_capacity/3,2*h.max_reagent_capacity/3],good:[0,h.max_reagent_capacity/3]},color:L[1]>h.sanguine_reagent?"bad":"good",children:["Sanguine: ",L[1],"/",h.sanguine_reagent,"/",h.max_reagent_capacity]})}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:"30%",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:L[2],maxValue:h.max_reagent_capacity,ranges:{bad:[2*h.max_reagent_capacity/3,h.max_reagent_capacity],average:[h.max_reagent_capacity/3,2*h.max_reagent_capacity/3],good:[0,h.max_reagent_capacity/3]},color:L[2]>h.osseous_reagent?"bad":"good",children:["Osseous: ",L[2],"/",h.osseous_reagent,"/",h.max_reagent_capacity]})})]}),(0,e.createComponentVNode)(2,m),(0,e.createComponentVNode)(2,d)]})]})})]})]})},m=function(s,l){var p=(0,a.useBackend)(l),C=p.act,g=p.data,h=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,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:[h[B][4],":"," "]}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:1}),h[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:h[B][5],ranges:{good:[0,h[B][5]/3],average:[h[B][5]/3,2*h[B][5]/3],bad:[2*h[B][5]/3,h[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]]})}),h[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 ",h[B][4]," is missing!"]})})]}),(0,e.createComponentVNode)(2,t.Stack,{children:[!!h[B][3]&&(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:!b[B][3],onClick:function(){function L(){return C("toggle_limb_repair",{limb:B,type:"replace"})}return L}(),children:"Replace Limb"})}),!h[B][3]&&(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button.Checkbox,{disabled:!(h[B][0]||h[B][1]),checked:!(b[B][0]||b[B][1]),onClick:function(){function L(){return C("toggle_limb_repair",{limb:B,type:"damage"})}return L}(),children:"Repair Damages"}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{disabled:!(h[B][2]&V),checked:!(b[B][2]&V),onClick:function(){function L(){return C("toggle_limb_repair",{limb:B,type:"bone"})}return L}(),children:"Mend Bone"}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{disabled:!(h[B][2]&y),checked:!(b[B][2]&y),onClick:function(){function L(){return C("toggle_limb_repair",{limb:B,type:"ib"})}return L}(),children:"Mend IB"}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{disabled:!(h[B][2]&S),checked:!(b[B][2]&S),onClick:function(){function L(){return C("toggle_limb_repair",{limb:B,type:"critburn"})}return L}(),children:"Mend Critical Burn"})]})]})]},B)})})},d=function(s,l){var p=(0,a.useBackend)(l),C=p.act,g=p.data,h=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,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:[h[B][3],":"," "]}),h[B][5]!=="heart"&&(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Stack.Item,{children:[!!h[B][2]&&(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:!b[B][2]&&!b[B][1],onClick:function(){function L(){return C("toggle_organ_repair",{organ:B,type:"replace"})}return L}(),children:"Replace Organ"}),!h[B][2]&&(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{disabled:!h[B][0],checked:!b[B][0],onClick:function(){function L(){return C("toggle_organ_repair",{organ:B,type:"damage"})}return L}(),children:"Repair Damages"})})]})}),h[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:[!!h[B][2]&&(0,e.createComponentVNode)(2,t.ProgressBar,{color:"bad",value:0,children:["The patient's ",h[B][3]," is missing!"]}),!h[B][2]&&(0,e.createComponentVNode)(2,t.ProgressBar,{value:b[B][0],maxValue:h[B][4],ranges:{good:[0,h[B][4]/3],average:[h[B][4]/3,2*h[B][4]/3],bad:[2*h[B][4]/3,h[B][4]]},children:"Post-Cloning Damage: "+b[B][0]})]})]})},B)})})}},66373:function(w,r,n){"use strict";r.__esModule=!0,r.CloningPod=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.CloningPod=function(){function V(y,S){var k=(0,a.useBackend)(S),v=k.act,i=k.data,c=i.biomass,m=i.biomass_storage_capacity,d=i.sanguine_reagent,u=i.osseous_reagent,s=i.organs,l=i.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*m/3,m],average:[m/3,2*m/3],bad:[0,m/3]},minValue:0,maxValue:m})})]}),(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 p(C,g){return v("remove_reagent",{reagent:"sanguine_reagent",amount:g})}return p}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Remove All",onClick:function(){function p(){return v("purge_reagent",{reagent:"sanguine_reagent"})}return p}()})})]}),(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: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 p(C,g){return v("remove_reagent",{reagent:"osseous_reagent",amount:g})}return p}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Remove All",onClick:function(){function p(){return v("purge_reagent",{reagent:"osseous_reagent"})}return p}()})})]})]}),(0,e.createComponentVNode)(2,t.Section,{title:"Organ Storage",children:[!l&&(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(p){return(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:p.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 C(){return v("eject_organ",{organ_ref:p.ref})}return C}()})})]},p)})]}),!!l&&(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}()},38781:function(w,r,n){"use strict";r.__esModule=!0,r.CoinMint=void 0;var e=n(96524),a=n(28234),t=n(17899),o=n(24674),f=n(45493),V=r.CoinMint=function(){function y(S,k){var v=(0,t.useBackend)(k),i=v.act,c=v.data,m=c.materials,d=c.moneyBag,u=c.moneyBagContent,s=c.moneyBagMaxContent,l=(d?210:138)+Math.ceil(m.length/4)*64;return(0,e.createComponentVNode)(2,f.Window,{width:210,height:l,children:(0,e.createComponentVNode)(2,f.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,o.NoticeBox,{m:0,info:!0,children:["Total coins produced: ",c.totalCoins]})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,title:"Coin Type",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"power-off",color:c.active&&"bad",tooltip:!d&&"Need a money bag",disabled:!d,onClick:function(){function p(){return i("activate")}return p}()}),children:(0,e.createComponentVNode)(2,o.Stack,{vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.ProgressBar,{minValue:0,maxValue:c.maxMaterials,value:c.totalMaterials})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{icon:"eject",tooltip:"Eject selected material",onClick:function(){function p(){return i("ejectMat")}return p}()})})]})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:m.map(function(p){return(0,e.createComponentVNode)(2,o.Button,{bold:!0,inline:!0,m:.2,textAlign:"center",color:"translucent",selected:p.id===c.chosenMaterial,tooltip:p.name,content:(0,e.createComponentVNode)(2,o.Stack,{vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{className:(0,a.classes)(["materials32x32",p.id])}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:p.amount})]}),onClick:function(){function C(){return i("selectMaterial",{material:p.id})}return C}()},p.id)})})]})})}),!!d&&(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Section,{title:"Money Bag",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"eject",content:"Eject",disabled:c.active,onClick:function(){function p(){return i("ejectBag")}return p}()}),children:(0,e.createComponentVNode)(2,o.ProgressBar,{width:"100%",minValue:0,maxValue:s,value:u,children:[u," / ",s]})})})]})})})}return y}()},11866:function(w,r,n){"use strict";r.__esModule=!0,r.ColourMatrixTester=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.ColourMatrixTester=function(){function V(y,S){var k=(0,a.useBackend)(S),v=k.act,i=k.data,c=i.colour_data,m=[[{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:m.map(function(d){return(0,e.createComponentVNode)(2,t.Stack,{textAlign:"center",textColor:"label",children:d.map(function(u){return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,mt:1,children:[u.name,":\xA0",(0,e.createComponentVNode)(2,t.NumberInput,{width:4,value:c[u.idx],step:.05,minValue:-5,maxValue:5,stepPixelSize:5,onChange:function(){function s(l,p){return v("setvalue",{idx:u.idx+1,value:p})}return s}()})]},u.name)})},d)})})})})})}return V}()},22420:function(w,r,n){"use strict";r.__esModule=!0,r.CommunicationsComputer=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=function(s){switch(s){case 1:return(0,e.createComponentVNode)(2,S);case 2:return(0,e.createComponentVNode)(2,i);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 u(s,l){var p=(0,a.useBackend)(l),C=p.act,g=p.data,h=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),f(h)]})})})}return u}(),y=function(s,l){var p=(0,a.useBackend)(l),C=p.act,g=p.data,h=g.authenticated,N=g.noauthbutton,b=g.esc_section,B=g.esc_callable,I=g.esc_recallable,L=g.esc_status,T=g.authhead,A=g.is_ai,x=g.lastCallLoc,E=!1,M;return h?h===1?M="Command":h===2?M="Captain":h===3?M="CentComm Officer":h===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:h?"sign-out-alt":"id-card",selected:h,disabled:N,content:h?"Log Out ("+M+")":"Log In",onClick:function(){function j(){return C("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:[!!L&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:L}),!!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 C("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 C("cancelshuttle")}return j}()})}),!!x&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Last Call/Recall From",children:x})]})})})],4)},S=function(s,l){var p=(0,a.useBackend)(l),C=p.act,g=p.data,h=g.is_admin;return h?(0,e.createComponentVNode)(2,k):(0,e.createComponentVNode)(2,v)},k=function(s,l){var p=(0,a.useBackend)(l),C=p.act,g=p.data,h=g.is_admin,N=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,m,{levels:b,required_access:h,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:!h,onClick:function(){function L(){return C("send_to_cc_announcement_page")}return L}()}),B===4&&(0,e.createComponentVNode)(2,t.Button,{icon:"plus",content:"Make Other Announcement",disabled:!h,onClick:function(){function L(){return C("make_other_announcement")}return L}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Response Team",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"ambulance",content:"Dispatch ERT",disabled:!h,onClick:function(){function L(){return C("dispatch_ert")}return L}()}),(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:!h,onClick:function(){function L(){return C("toggle_ert_allowed")}return L}(),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:!h,onClick:function(){function L(){return C("send_nuke_codes")}return L}()})}),(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:!h,onClick:function(){function L(){return C("move_gamma_armory")}return L}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Other",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"coins",content:"View Economy",disabled:!h,onClick:function(){function L(){return C("view_econ")}return L}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fax",content:"Fax Manager",disabled:!h,onClick:function(){function L(){return C("view_fax")}return L}()})]})]})}),(0,e.createComponentVNode)(2,t.Collapsible,{title:"View Command accessible controls",children:(0,e.createComponentVNode)(2,v)})]})},v=function(s,l){var p=(0,a.useBackend)(l),C=p.act,g=p.data,h=g.msg_cooldown,N=g.emagged,b=g.cc_cooldown,B=g.security_level_color,I=g.str_security_level,L=g.levels,T=g.authcapt,A=g.authhead,x=g.messages,E="Make Priority Announcement";h>0&&(E+=" ("+h+"s)");var M=N?"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,m,{levels:L,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||h>0,onClick:function(){function P(){return C("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 C("MessageSyndicate")}return P}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"sync-alt",content:"Reset Relays",disabled:!T,onClick:function(){function P(){return C("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 C("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 C("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 C("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 C("messagelist")}return P}()})})]})})})],4)},i=function(s,l){var p=(0,a.useBackend)(l),C=p.act,g=p.data,h=g.stat_display,N=g.authhead,b=g.current_message_title,B=h.presets.map(function(L){return(0,e.createComponentVNode)(2,t.Button,{content:L.label,selected:L.name===h.type,disabled:!N,onClick:function(){function T(){return C("setstat",{statdisp:L.name})}return T}()},L.name)}),I=h.alerts.map(function(L){return(0,e.createComponentVNode)(2,t.Button,{content:L.label,selected:L.alert===h.icon,disabled:!N,onClick:function(){function T(){return C("setstat",{statdisp:3,alert:L.alert})}return T}()},L.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 L(){return C("main")}return L}()}),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:h.line_1,disabled:!N,onClick:function(){function L(){return C("setmsg1")}return L}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Message Line 2",children:(0,e.createComponentVNode)(2,t.Button,{icon:"pencil-alt",content:h.line_2,disabled:!N,onClick:function(){function L(){return C("setmsg2")}return L}()})})]})})})},c=function(s,l){var p=(0,a.useBackend)(l),C=p.act,g=p.data,h=g.authhead,N=g.current_message_title,b=g.current_message,B=g.messages,I=g.security_level,L;if(N)L=(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:!h,onClick:function(){function A(){return C("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:!h||N===A.title,onClick:function(){function x(){return C("messagelist",{msgid:A.id})}return x}()}),(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"times",content:"Delete",disabled:!h,onClick:function(){function x(){return C("delmessage",{msgid:A.id})}return x}()})]},A.id)});L=(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 C("main")}return A}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:T})})}return(0,e.createComponentVNode)(2,t.Box,{children:L})},m=function(s,l){var p=(0,a.useBackend)(l),C=p.act,g=p.data,h=s.levels,N=s.required_access,b=s.use_confirm,B=g.security_level;return b?h.map(function(I){return(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:I.icon,content:I.name,disabled:!N||I.id===B,tooltip:I.tooltip,onClick:function(){function L(){return C("newalertlevel",{level:I.id})}return L}()},I.name)}):h.map(function(I){return(0,e.createComponentVNode)(2,t.Button,{icon:I.icon,content:I.name,disabled:!N||I.id===B,tooltip:I.tooltip,onClick:function(){function L(){return C("newalertlevel",{level:I.id})}return L}()},I.name)})},d=function(s,l){var p=(0,a.useBackend)(l),C=p.act,g=p.data,h=g.is_admin,N=g.possible_cc_sounds;if(!h)return C("main");var b=(0,a.useLocalState)(l,"subtitle",""),B=b[0],I=b[1],L=(0,a.useLocalState)(l,"text",""),T=L[0],A=L[1],x=(0,a.useLocalState)(l,"classified",0),E=x[0],M=x[1],j=(0,a.useLocalState)(l,"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 C("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 C("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:N,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 C("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(w,r,n){"use strict";r.__esModule=!0,r.CompostBin=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.CompostBin=function(){function V(y,S){var k=(0,a.useBackend)(S),v=k.act,i=k.data,c=i.biomass,m=i.compost,d=i.biomass_capacity,u=i.compost_capacity,s=i.potassium,l=i.potassium_capacity,p=i.potash,C=i.potash_capacity,g=(0,a.useSharedState)(S,"vendAmount",1),h=g[0],N=g[1];return(0,e.createComponentVNode)(2,o.Window,{width:360,height:250,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:.5,mt:1,width:20,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.LabeledList.Item,{label:"Compost",children:(0,e.createComponentVNode)(2,t.ProgressBar,{ml:.5,mt:1,width:20,value:m,minValue:0,maxValue:u,ranges:{good:[u*.5,1/0],average:[u*.25,u*.5],bad:[-1/0,u*.25]},children:[m," / ",u," Units"]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Potassium",children:(0,e.createComponentVNode)(2,t.ProgressBar,{ml:.5,mt:1,width:20,value:s,minValue:0,maxValue:l,ranges:{good:[l*.5,1/0],average:[l*.25,l*.5],bad:[-1/0,l*.25]},children:[s," / ",l," Units"]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Potash",children:(0,e.createComponentVNode)(2,t.ProgressBar,{ml:.5,mt:1,width:20,value:p,minValue:0,maxValue:C,ranges:{good:[C*.5,1/0],average:[C*.25,C*.5],bad:[-1/0,C*.25]},children:[p," / ",C," 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:h,width:"32px",minValue:1,maxValue:10,stepPixelSize:7,onChange:function(){function b(B,I){return N(I)}return b}()})],4),children:(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,align:"center",content:"Make Soil",disabled:m<25*h,icon:"arrow-circle-down",onClick:function(){function b(){return v("create",{amount:h})}return b}()})})})]})})})}return V}()},64707:function(w,r,n){"use strict";r.__esModule=!0,r.Contractor=void 0;var e=n(96524),a=n(36121),t=n(17899),o=n(24674),f=n(99509),V=n(45493);function y(C,g){C.prototype=Object.create(g.prototype),C.prototype.constructor=C,S(C,g)}function S(C,g){return S=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function h(N,b){return N.__proto__=b,N}return h}(),S(C,g)}var k={1:["ACTIVE","good"],2:["COMPLETED","good"],3:["FAILED","bad"]},v=["Recording biometric data...","Analyzing embedded syndicate info...","STATUS CONFIRMED","Contacting Syndicate database...","Awaiting response...","Awaiting response...","Awaiting response...","Awaiting response...","Awaiting response...","Awaiting response...","Response received, ack 4851234...","CONFIRM ACC "+Math.round(Math.random()*2e4),"Setting up private accounts...","CONTRACTOR ACCOUNT CREATED","Searching for available contracts...","Searching for available contracts...","Searching for available contracts...","Searching for available contracts...","CONTRACTS FOUND","WELCOME, AGENT"],i=r.Contractor=function(){function C(g,h){var N=(0,t.useBackend)(h),b=N.act,B=N.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,l,{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,m)}),(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):I=(0,e.createComponentVNode)(2,o.Flex.Item,{grow:"1",backgroundColor:"rgba(0, 0, 0, 0.8)",children:(0,e.createComponentVNode)(2,l,{height:"100%",allMessages:v,finishedTimeout:3e3,onFinished:function(){function x(){return b("complete_load_animation")}return x}()})});var L=(0,t.useLocalState)(h,"viewingPhoto",""),T=L[0],A=L[1];return(0,e.createComponentVNode)(2,V.Window,{theme:"syndicate",width:500,height:600,children:[T&&(0,e.createComponentVNode)(2,p),(0,e.createComponentVNode)(2,V.Window.Content,{className:"Contractor",children:(0,e.createComponentVNode)(2,o.Flex,{direction:"column",height:"100%",children:I})})]})}return C}(),c=function(g,h){var N=(0,t.useBackend)(h),b=N.act,B=N.data,I=B.tc_available,L=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:[L," TC"]})]})}),(0,e.createComponentVNode)(2,o.Box,{flexBasis:"50%",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Contracts Completed",verticalAlign:"middle",children:(0,e.createComponentVNode)(2,o.Box,{height:"20px",lineHeight:"20px",inline:!0,children:T})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Contractor Status",verticalAlign:"middle",children:"ACTIVE"})]})})]})})))},m=function(g,h){var N=(0,t.useBackend)(h),b=N.act,B=N.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 L(){return b("page",{page:1})}return L}(),children:[(0,e.createComponentVNode)(2,o.Icon,{name:"suitcase"}),"Contracts"]}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:I===2,onClick:function(){function L(){return b("page",{page:2})}return L}(),children:[(0,e.createComponentVNode)(2,o.Icon,{name:"shopping-cart"}),"Hub"]})]})))},d=function(g,h){var N=(0,t.useBackend)(h),b=N.act,B=N.data,I=B.contracts,L=B.contract_active,T=B.can_extract,A=!!L&&I.filter(function(P){return P.status===1})[0],x=A&&A.time_left>0,E=(0,t.useLocalState)(h,"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,f.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",u(P)]}),(R=P.difficulties)==null?void 0:R.map(function(D,F){return(0,e.createComponentVNode)(2,o.Button.Confirm,{disabled:!!L,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)})})))},u=function(g){if(!(!g.objective||g.status>1)){var h=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,I=h===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]-N[1],B[0]-N[0])),lineHeight:I?null:"0.85",size:"1.5"})})}},s=function(g,h){var N=(0,t.useBackend)(h),b=N.act,B=N.data,I=B.rep,L=B.buyables;return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Section,Object.assign({title:"Available Purchases",overflow:"auto"},g,{children:L.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)})})))},l=function(C){function g(N){var b;return b=C.call(this,N)||this,b.timer=null,b.state={currentIndex:0,currentDisplay:[]},b}y(g,C);var h=g.prototype;return h.tick=function(){function N(){var b=this.props,B=this.state;if(B.currentIndex<=b.allMessages.length){this.setState(function(L){return{currentIndex:L.currentIndex+1}});var I=B.currentDisplay;I.push(b.allMessages[B.currentIndex])}else clearTimeout(this.timer),setTimeout(b.onFinished,b.finishedTimeout)}return N}(),h.componentDidMount=function(){function N(){var b=this,B=this.props.linesPerSecond,I=B===void 0?2.5:B;this.timer=setInterval(function(){return b.tick()},1e3/I)}return N}(),h.componentWillUnmount=function(){function N(){clearTimeout(this.timer)}return N}(),h.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),p=function(g,h){var N=(0,t.useLocalState)(h,"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 I(){return B("")}return I}()})]})}},52141:function(w,r,n){"use strict";r.__esModule=!0,r.ConveyorSwitch=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.ConveyorSwitch=function(){function V(y,S){var k=(0,a.useBackend)(S),v=k.act,i=k.data,c=i.slowFactor,m=i.oneWay,d=i.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:!m,onClick:function(){function u(){return v("toggleOneWay")}return u}()})}),(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 u(){return v("slowFactor",{value:c-5})}return u}()})," "]}),(0,e.createComponentVNode)(2,t.Flex.Item,{mx:"1px",children:[" ",(0,e.createComponentVNode)(2,t.Button,{icon:"angle-left",onClick:function(){function u(){return v("slowFactor",{value:c-1})}return u}()})," "]}),(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 u(s){return s+"x"}return u}(),onChange:function(){function u(s,l){return v("slowFactor",{value:l})}return u}()})}),(0,e.createComponentVNode)(2,t.Flex.Item,{mx:"1px",children:[" ",(0,e.createComponentVNode)(2,t.Button,{icon:"angle-right",onClick:function(){function u(){return v("slowFactor",{value:c+1})}return u}()})," "]}),(0,e.createComponentVNode)(2,t.Flex.Item,{mx:"1px",children:[" ",(0,e.createComponentVNode)(2,t.Button,{icon:"angle-double-right",onClick:function(){function u(){return v("slowFactor",{value:c+5})}return u}()})," "]})]})})]})})})})}return V}()},94187:function(w,r,n){"use strict";r.__esModule=!0,r.CrewMonitor=void 0;var e=n(96524),a=n(50640),t=n(78234),o=n(17899),f=n(24674),V=n(5126),y=n(38424),S=n(45493),k=function(u,s){return u.dead?"Deceased":parseInt(u.health,10)<=s?"Critical":parseInt(u.stat,10)===1?"Unconscious":"Living"},v=function(u,s){return u.dead?"red":parseInt(u.health,10)<=s?"orange":parseInt(u.stat,10)===1?"blue":"green"},i=r.CrewMonitor=function(){function d(u,s){var l=(0,o.useBackend)(s),p=l.act,C=l.data,g=(0,o.useLocalState)(s,"tabIndex",0),h=g[0],N=g[1],b=function(){function B(I){switch(I){case 0:return(0,e.createComponentVNode)(2,c);case 1:return(0,e.createComponentVNode)(2,m);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,f.Stack,{fill:!0,vertical:!0,fillPositionedParent:!0,children:[(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Tabs,{children:[(0,e.createComponentVNode)(2,f.Tabs.Tab,{icon:"table",selected:h===0,onClick:function(){function B(){return N(0)}return B}(),children:"Data View"},"DataView"),(0,e.createComponentVNode)(2,f.Tabs.Tab,{icon:"map-marked-alt",selected:h===1,onClick:function(){function B(){return N(1)}return B}(),children:"Map View"},"MapView")]})}),b(h)]})})})}return d}(),c=function(u,s){var l=(0,o.useBackend)(s),p=l.act,C=l.data,g=(0,a.sortBy)(function(A){return A.name})(C.crewmembers||[]),h=C.possible_levels,N=C.viewing_current_z_level,b=C.is_advanced,B=(0,o.useLocalState)(s,"search",""),I=B[0],L=B[1],T=(0,t.createSearch)(I,function(A){return A.name+"|"+A.assignment+"|"+A.area});return(0,e.createComponentVNode)(2,f.Section,{fill:!0,scrollable:!0,backgroundColor:"transparent",children:[(0,e.createComponentVNode)(2,f.Stack,{children:[(0,e.createComponentVNode)(2,f.Stack.Item,{width:"100%",ml:"5px",children:(0,e.createComponentVNode)(2,f.Input,{placeholder:"Search by name, assignment or location..",width:"100%",onInput:function(){function A(x,E){return L(E)}return A}()})}),(0,e.createComponentVNode)(2,f.Stack.Item,{children:b?(0,e.createComponentVNode)(2,f.Dropdown,{mr:"5px",width:"50px",options:h,selected:N,onSelected:function(){function A(x){return p("switch_level",{new_level:x})}return A}()}):null})]}),(0,e.createComponentVNode)(2,f.Table,{m:"0.5rem",children:[(0,e.createComponentVNode)(2,f.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,f.Table.Cell,{children:"Name"}),(0,e.createComponentVNode)(2,f.Table.Cell,{children:"Status"}),(0,e.createComponentVNode)(2,f.Table.Cell,{children:"Location"})]}),g.filter(T).map(function(A){return(0,e.createComponentVNode)(2,f.Table.Row,{bold:!!A.is_command,children:[(0,e.createComponentVNode)(2,V.TableCell,{children:[A.name," (",A.assignment,")"]}),(0,e.createComponentVNode)(2,V.TableCell,{children:[(0,e.createComponentVNode)(2,f.Box,{inline:!0,color:v(A,C.critThreshold),children:k(A,C.critThreshold)}),A.sensor_type>=2||C.ignoreSensors?(0,e.createComponentVNode)(2,f.Box,{inline:!0,ml:1,children:["(",(0,e.createComponentVNode)(2,f.Box,{inline:!0,color:y.COLORS.damageType.oxy,children:A.oxy}),"|",(0,e.createComponentVNode)(2,f.Box,{inline:!0,color:y.COLORS.damageType.toxin,children:A.tox}),"|",(0,e.createComponentVNode)(2,f.Box,{inline:!0,color:y.COLORS.damageType.burn,children:A.fire}),"|",(0,e.createComponentVNode)(2,f.Box,{inline:!0,color:y.COLORS.damageType.brute,children:A.brute}),")"]}):null]}),(0,e.createComponentVNode)(2,V.TableCell,{children:A.sensor_type===3||C.ignoreSensors?C.isAI||C.isObserver?(0,e.createComponentVNode)(2,f.Button,{fluid:!0,icon:"location-arrow",content:A.area+" ("+A.x+", "+A.y+")",onClick:function(){function x(){return p("track",{track:A.ref})}return x}()}):A.area+" ("+A.x+", "+A.y+")":(0,e.createComponentVNode)(2,f.Box,{inline:!0,color:"grey",children:"Not Available"})})]},A.name)})]})]})},m=function(u,s){var l=(0,o.useBackend)(s),p=l.act,C=l.data,g=(0,o.useLocalState)(s,"zoom",1),h=g[0],N=g[1];return(0,e.createComponentVNode)(2,f.Box,{height:"526px",mb:"0.5rem",overflow:"hidden",children:(0,e.createComponentVNode)(2,f.NanoMap,{onZoom:function(){function b(B){return N(B)}return b}(),children:C.crewmembers.filter(function(b){return b.sensor_type===3||C.ignoreSensors}).map(function(b){return(0,e.createComponentVNode)(2,f.NanoMap.Marker,{x:b.x,y:b.y,zoom:h,icon:"circle",tooltip:b.name+" ("+b.assignment+")",color:v(b,C.critThreshold),onClick:function(){function B(){return C.isObserver?p("track",{track:b.ref}):null}return B}()},b.ref)})})})}},60561:function(w,r,n){"use strict";r.__esModule=!0,r.Cryo=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=[{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 v(i,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 v}(),S=function(i,c){var m=(0,a.useBackend)(c),d=m.act,u=m.data,s=u.isOperating,l=u.hasOccupant,p=u.occupant,C=p===void 0?[]:p,g=u.cellTemperature,h=u.cellTemperatureStatus,N=u.isBeakerLoaded,b=u.cooldownProgress,B=u.auto_eject_healthy,I=u.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 L(){return d("ejectOccupant")}return L}(),disabled:!l,children:"Eject"}),children:l?(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Occupant",children:C.name||"Unknown"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Health",children:(0,e.createComponentVNode)(2,t.ProgressBar,{min:C.health,max:C.maxHealth,value:C.health/C.maxHealth,color:C.health>0?"good":"average",children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:Math.round(C.health)})})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",color:V[C.stat][0],children:V[C.stat][1]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Temperature",children:[(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:Math.round(C.bodyTemperature)})," K"]}),(0,e.createComponentVNode)(2,t.LabeledList.Divider),f.map(function(L){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:L.label,children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:C[L.type]/100,ranges:{bad:[.01,1/0]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:Math.round(C[L.type])})})},L.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 L(){return d("ejectBeaker")}return L}(),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 L(){return d(s?"switchOff":"switchOn")}return L}(),selected:s,children:s?"On":"Off"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Temperature",color:h,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 L(){return d(B?"auto_eject_healthy_off":"auto_eject_healthy_on")}return L}(),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 L(){return d(I?"auto_eject_dead_off":"auto_eject_dead_on")}return L}(),children:I?"On":"Off"})})]})})})],4)},k=function(i,c){var m=(0,a.useBackend)(c),d=m.act,u=m.data,s=u.isBeakerLoaded,l=u.beakerLabel,p=u.beakerVolume;return s?(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{inline:!0,color:!l&&"average",children:[l||"No label",":"]}),(0,e.createComponentVNode)(2,t.Box,{inline:!0,color:!p&&"bad",ml:1,children:p?(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:p,format:function(){function C(g){return Math.round(g)+" units remaining"}return C}()}):"Beaker is empty"})],4):(0,e.createComponentVNode)(2,t.Box,{inline:!0,color:"bad",children:"No beaker loaded"})}},27889:function(w,r,n){"use strict";r.__esModule=!0,r.CryopodConsole=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=n(78234),V=r.CryopodConsole=function(){function k(v,i){var c=(0,a.useBackend)(i),m=c.data,d=m.account_name,u=m.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),!!u&&(0,e.createComponentVNode)(2,S)]})})}return k}(),y=function(v,i){var c=(0,a.useBackend)(i),m=c.data,d=m.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(u,s){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:u.name,children:u.rank},s)})})}):(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No stored crew!"})})},S=function(v,i){var c=(0,a.useBackend)(i),m=c.act,d=c.data,u=d.frozen_items,s=function(p){var C=p.toString();return C.startsWith("the ")&&(C=C.slice(4,C.length)),(0,f.toTitleCase)(C)};return(0,e.createComponentVNode)(2,t.Collapsible,{title:"Stored Items",children:u.length?(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:u.map(function(l){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:s(l.name),buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-down",content:"Drop",mr:1,onClick:function(){function p(){return m("one_item",{item:l.uid})}return p}()})},l)})})}),(0,e.createComponentVNode)(2,t.Button,{content:"Drop All Items",color:"red",onClick:function(){function l(){return m("all_items")}return l}()})],4):(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No stored items!"})})}},81434:function(w,r,n){"use strict";r.__esModule=!0,r.DNAModifier=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=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 h(N,b){var B=(0,a.useBackend)(b),I=B.act,L=B.data,T=L.irradiating,A=L.dnaBlockSize,x=L.occupant;b.dnaBlockSize=A,b.isDNAInvalid=!x.isViableSubject||!x.uniqueIdentity||!x.structuralEnzymes;var E;return T&&(E=(0,e.createComponentVNode)(2,C,{duration:T})),(0,e.createComponentVNode)(2,o.Window,{width:660,height:775,children:[(0,e.createComponentVNode)(2,f.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,v)}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,i)})]})})]})}return h}(),v=function(N,b){var B=(0,a.useBackend)(b),I=B.act,L=B.data,T=L.locked,A=L.hasOccupant,x=L.occupant;return(0,e.createComponentVNode)(2,t.Section,{title:"Occupant",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{color:"label",inline:!0,mr:"0.5rem",children:"Door Lock:"}),(0,e.createComponentVNode)(2,t.Button,{disabled:!A,selected: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:V[x.stat][0],children:V[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:L.occupant.uniqueEnzymes?L.occupant.uniqueEnzymes:(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"exclamation-circle"}),"\xA0 Unknown"]})})]})],0):(0,e.createComponentVNode)(2,t.Box,{color:"label",children:"Cell unoccupied."})})},i=function(N,b){var B=(0,a.useBackend)(b),I=B.act,L=B.data,T=L.selectedMenuKey,A=L.hasOccupant,x=L.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,d)],4):T==="se"?E=(0,e.createFragment)([(0,e.createComponentVNode)(2,m),(0,e.createComponentVNode)(2,d)],4):T==="buffer"?E=(0,e.createComponentVNode)(2,u):T==="rejuvenators"&&(E=(0,e.createComponentVNode)(2,p)),(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(N,b){var B=(0,a.useBackend)(b),I=B.act,L=B.data,T=L.selectedUIBlock,A=L.selectedUISubBlock,x=L.selectedUITarget,E=L.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}()})]})},m=function(N,b){var B=(0,a.useBackend)(b),I=B.act,L=B.data,T=L.selectedSEBlock,A=L.selectedSESubBlock,x=L.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}()})]})},d=function(N,b){var B=(0,a.useBackend)(b),I=B.act,L=B.data,T=L.radiationIntensity,A=L.radiationDuration;return(0,e.createComponentVNode)(2,t.Section,{title:"Radiation Emitter",children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Intensity",children:(0,e.createComponentVNode)(2,t.Knob,{minValue:1,maxValue:10,stepPixelSize:20,value: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}()})]})},u=function(N,b){var B=(0,a.useBackend)(b),I=B.act,L=B.data,T=L.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,l)})]})},s=function(N,b){var B=(0,a.useBackend)(b),I=B.act,L=B.data,T=N.id,A=N.name,x=N.buffer,E=L.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||!L.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:!L.hasDisk||!L.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."})]})})},l=function(N,b){var B=(0,a.useBackend)(b),I=B.act,L=B.data,T=L.hasDisk,A=L.disk;return(0,e.createComponentVNode)(2,t.Section,{title:"Data Disk",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button.Confirm,{disabled:!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."]})})},p=function(N,b){var B=(0,a.useBackend)(b),I=B.act,L=B.data,T=L.isBeakerLoaded,A=L.beakerVolume,x=L.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)]})})})},C=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),I=B.act,L=B.data,T=N.dnaString,A=N.selectedBlock,x=N.selectedSubblock,E=N.blockSize,M=N.action,j=T.split(""),P=0,R=[],D=function(){for(var U=F/E+1,K=[],H=function(){var J=X+1;K.push((0,e.createComponentVNode)(2,t.Button,{selected:A===U&&x===J,content:j[F+X],mb:"0",onClick:function(){function ie(){return I(M,{block:U,subblock:J})}return ie}()}))},X=0;Xl.spawnpoints?"red":"green",children:[l.total," total, versus ",l.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}()})})]})})})},v=function(m,d){var u=(0,a.useBackend)(d),s=u.act,l=u.data,p=l.ert_request_messages;return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,children:p&&p.length?p.map(function(C){return(0,e.createComponentVNode)(2,t.Section,{title:C.time,buttons:(0,e.createComponentVNode)(2,t.Button,{content:C.sender_real_name,onClick:function(){function g(){return s("view_player_panel",{uid:C.sender_uid})}return g}(),tooltip:"View player panel"}),children:C.message},(0,f.decodeHtmlEntities)(C.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."]})})})})},i=function(m,d){var u=(0,a.useBackend)(d),s=u.act,l=u.data,p=(0,a.useLocalState)(d,"text",""),C=p[0],g=p[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:C,onChange:function(){function h(N,b){return g(b)}return h}()}),(0,e.createComponentVNode)(2,t.Button.Confirm,{content:"Deny ERT",fluid:!0,icon:"times",center:!0,mt:2,textAlign:"center",onClick:function(){function h(){return s("deny_ert",{reason:C})}return h}()})]})})}},24503:function(w,r,n){"use strict";r.__esModule=!0,r.EconomyManager=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=n(99665),V=r.EconomyManager=function(){function S(k,v){return(0,e.createComponentVNode)(2,o.Window,{width:600,height:325,children:[(0,e.createComponentVNode)(2,f.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,v){var i=(0,a.useBackend)(v),c=i.act,m=i.data,d=m.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 u(){return c("payroll_modification",{mod_type:"global"})}return u}()})}),(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 u(){return c("payroll_modification",{mod_type:"department"})}return u}()})}),(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 u(){return c("payroll_modification",{mod_type:"department_members"})}return u}()})}),(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 u(){return c("payroll_modification",{mod_type:"crew_member"})}return u}()})})]}),(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 u(){return c("delay_payroll")}return u}()}),(0,e.createComponentVNode)(2,t.Button,{width:"auto",content:"Set Payroll Time",onClick:function(){function u(){return c("set_payroll")}return u}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"angle-double-right",width:"auto",color:"good",content:"Accelerate Payroll",onClick:function(){function u(){return c("accelerate_payroll")}return u}()})]}),(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(w,r,n){"use strict";r.__esModule=!0,r.Electropack=void 0;var e=n(96524),a=n(36121),t=n(17899),o=n(24674),f=n(45493),V=r.Electropack=function(){function y(S,k){var v=(0,t.useBackend)(k),i=v.act,c=v.data,m=c.power,d=c.code,u=c.frequency,s=c.minFrequency,l=c.maxFrequency;return(0,e.createComponentVNode)(2,f.Window,{width:360,height:135,children:(0,e.createComponentVNode)(2,f.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:m?"power-off":"times",content:m?"On":"Off",selected:m,onClick:function(){function p(){return i("power")}return p}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Frequency",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"sync",content:"Reset",onClick:function(){function p(){return i("reset",{reset:"freq"})}return p}()}),children:(0,e.createComponentVNode)(2,o.NumberInput,{animate:!0,unit:"kHz",step:.2,stepPixelSize:6,minValue:s/10,maxValue:l/10,value:u/10,format:function(){function p(C){return(0,a.toFixed)(C,1)}return p}(),width:"80px",onChange:function(){function p(C,g){return i("freq",{freq:g})}return p}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Code",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"sync",content:"Reset",onClick:function(){function p(){return i("reset",{reset:"code"})}return p}()}),children:(0,e.createComponentVNode)(2,o.NumberInput,{animate:!0,step:1,stepPixelSize:6,minValue:1,maxValue:100,value:d,width:"80px",onChange:function(){function p(C,g){return i("code",{code:g})}return p}()})})]})})})})}return y}()},57013:function(w,r,n){"use strict";r.__esModule=!0,r.Emojipedia=void 0;var e=n(96524),a=n(28234),t=n(17899),o=n(24674),f=n(45493),V=r.Emojipedia=function(){function S(k,v){var i=(0,t.useBackend)(v),c=i.data,m=c.emoji_list,d=(0,t.useLocalState)(v,"searchText",""),u=d[0],s=d[1],l=m.filter(function(p){return p.name.toLowerCase().includes(u.toLowerCase())});return(0,e.createComponentVNode)(2,f.Window,{width:325,height:400,children:(0,e.createComponentVNode)(2,f.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:u,onInput:function(){function p(C,g){return s(g)}return p}()}),(0,e.createComponentVNode)(2,o.Button,{tooltip:"Click on an emoji to copy its tag!",tooltipPosition:"bottom",icon:"circle-question"})],4),children:l.map(function(p){return(0,e.createComponentVNode)(2,o.Button,{m:1,color:"transparent",className:(0,a.classes)(["emoji16x16","emoji-"+p.name]),style:{transform:"scale(1.5)"},tooltip:p.name,onClick:function(){function C(){y(p.name)}return C}()},p.name)})})})})}return S}(),y=function(k){var v=document.createElement("input"),i=":"+k+":";v.value=i,document.body.appendChild(v),v.select(),document.execCommand("copy"),document.body.removeChild(v)}},75450:function(w,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),f=n(78234),V=r.EmotePanel=function(){function S(k,v){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,v){var i=(0,a.useBackend)(v),c=i.act,m=i.data,d=m.emotes,u=(0,a.useLocalState)(v,"searchText",""),s=u[0],l=u[1],p=(0,a.useLocalState)(v,"filterVisible",""),C=p[0],g=p[1],h=(0,a.useLocalState)(v,"filterAudible",""),N=h[0],b=h[1],B=(0,a.useLocalState)(v,"filterSound",""),I=B[0],L=B[1],T=(0,a.useLocalState)(v,"filterHands",""),A=T[0],x=T[1],E=(0,a.useLocalState)(v,"filterTargettable",""),M=E[0],j=E[1],P=(0,a.useLocalState)(v,"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(U,K){return l(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:C,onClick:function(){function W(){return g(!C)}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:I,onClick:function(){function W(){return L(!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:d.filter(function(W){return W.key&&(s.length>0?W.key.toLowerCase().includes(s.toLowerCase())||W.name.toLowerCase().includes(s.toLowerCase()):!0)&&(C?W.visible:!0)&&(N?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 U(){return c("play_emote",{emote_key:W.key,useTarget:R})}return U}(),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(w,r,n){"use strict";r.__esModule=!0,r.EvolutionMenu=void 0;var e=n(96524),a=n(78234),t=n(17899),o=n(24674),f=n(45493),V=n(74041),y=n(50640),S=r.EvolutionMenu=function(){function i(c,m){return(0,e.createComponentVNode)(2,f.Window,{width:480,height:580,theme:"changeling",children:(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,k),(0,e.createComponentVNode)(2,v)]})})})}return i}(),k=function(c,m){var d=(0,t.useBackend)(m),u=d.act,s=d.data,l=s.evo_points,p=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:l}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:[(0,e.createComponentVNode)(2,o.Button,{ml:2.5,disabled:!p,content:"Readapt",icon:"sync",onClick:function(){function C(){return u("readapt")}return C}()}),(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"})]})]})})})},v=function(c,m){var d=(0,t.useBackend)(m),u=d.act,s=d.data,l=s.evo_points,p=s.ability_tabs,C=s.purchased_abilities,g=s.view_mode,h=(0,t.useLocalState)(m,"selectedTab",p[0]),N=h[0],b=h[1],B=(0,t.useLocalState)(m,"searchText",""),I=B[0],L=B[1],T=(0,t.useLocalState)(m,"ability_tabs",p[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,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(L(R),R==="")return x(N.abilities);x(E(p.map(function(D){return D.abilities}).flat(),R))},j=function(R){b(R),x(R.abilities),L("")};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 u("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 u("set_view_mode",{mode:1})}return P}()})],4),children:[(0,e.createComponentVNode)(2,o.Tabs,{children:p.map(function(P){return(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:I===""&&N===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}),C.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>l||C.includes(P.power_path),content:"Evolve",onClick:function(){function D(){return u("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(w,r,n){"use strict";r.__esModule=!0,r.ExosuitFabricator=void 0;var e=n(96524),a=n(28234),t=n(78234),o=n(17899),f=n(24674),V=n(99509),y=n(45493),S=["id","amount","lineDisplay","onClick"];function k(C,g){if(C==null)return{};var h={},N=Object.keys(C),b,B;for(B=0;B=0)&&(h[b]=C[b]);return h}var v=2e3,i={bananium:"clown",tranquillite:"mime"},c=r.ExosuitFabricator=function(){function C(g,h){var N=(0,o.useBackend)(h),b=N.act,B=N.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,f.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,f.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,d)}),I&&(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,u)})]})}),(0,e.createComponentVNode)(2,f.Stack.Item,{width:"30%",children:(0,e.createComponentVNode)(2,f.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,m)}),(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,s)})]})})]})})})}return C}(),m=function(g,h){var N=(0,o.useBackend)(h),b=N.act,B=N.data,I=B.materials,L=B.capacity,T=Object.values(I).reduce(function(A,x){return A+x},0);return(0,e.createComponentVNode)(2,f.Section,{fill:!0,scrollable:!0,title:"Materials",className:"Exofab__materials",buttons:(0,e.createComponentVNode)(2,f.Box,{color:"label",mt:"0.25rem",children:[(T/L*100).toPrecision(3),"% full"]}),children:["metal","glass","silver","gold","uranium","titanium","plasma","diamond","bluespace","bananium","tranquillite","plastic"].map(function(A){return(0,e.createComponentVNode)(2,l,{mt:-2,id:A,bold:A==="metal"||A==="glass",onClick:function(){function x(){return b("withdraw",{id:A})}return x}()},A)})})},d=function(g,h){var N=(0,o.useBackend)(h),b=N.act,B=N.data,I=B.curCategory,L=B.categories,T=B.designs,A=B.syncing,x=(0,o.useLocalState)(h,"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,f.Section,{fill:!0,scrollable:!0,className:"Exofab__designs",title:(0,e.createComponentVNode)(2,f.Dropdown,{className:"Exofab__dropdown",selected:I,options:L,onSelected:function(){function R(D){return b("category",{cat:D})}return R}()}),buttons:(0,e.createComponentVNode)(2,f.Box,{mt:"2px",children:[(0,e.createComponentVNode)(2,f.Button,{icon:"plus",content:"Queue all",onClick:function(){function R(){return b("queueall")}return R}()}),(0,e.createComponentVNode)(2,f.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,f.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,p,{design:R},R.id)}),P.length===0&&(0,e.createComponentVNode)(2,f.Box,{color:"label",children:"No designs found."})]})},u=function(g,h){var N=(0,o.useBackend)(h),b=N.act,B=N.data,I=B.building,L=B.buildStart,T=B.buildEnd,A=B.worldTime;return(0,e.createComponentVNode)(2,f.Section,{className:"Exofab__building",stretchContents:!0,children:(0,e.createComponentVNode)(2,f.ProgressBar.Countdown,{start:L,current:A,end:T,children:(0,e.createComponentVNode)(2,f.Stack,{children:[(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Icon,{name:"cog",spin:!0})}),(0,e.createComponentVNode)(2,f.Stack.Item,{children:["Building ",I,"\xA0(",(0,e.createComponentVNode)(2,V.Countdown,{current:A,timeLeft:T-A,format:function(){function x(E,M){return M.substr(3)}return x}()}),")"]})]})})})},s=function(g,h){var N=(0,o.useBackend)(h),b=N.act,B=N.data,I=B.queue,L=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,f.Section,{fill:!0,scrollable:!0,className:"Exofab__queue",title:"Queue",buttons:(0,e.createComponentVNode)(2,f.Box,{children:[(0,e.createComponentVNode)(2,f.Button,{selected:L,icon:L?"toggle-on":"toggle-off",content:"Process",onClick:function(){function x(){return b("process")}return x}()}),(0,e.createComponentVNode)(2,f.Button,{disabled:I.length===0,icon:"eraser",content:"Clear",onClick:function(){function x(){return b("unqueueall")}return x}()})]}),children:(0,e.createComponentVNode)(2,f.Stack,{fill:!0,vertical:!0,children:I.length===0?(0,e.createComponentVNode)(2,f.Box,{color:"label",children:"The queue is empty."}):(0,e.createFragment)([(0,e.createComponentVNode)(2,f.Stack.Item,{className:"Exofab__queue--queue",grow:!0,overflow:"auto",children:I.map(function(x,E){return(0,e.createComponentVNode)(2,f.Box,{color:x.notEnough&&"bad",children:[E+1,". ",x.name,E>0&&(0,e.createComponentVNode)(2,f.Button,{icon:"arrow-up",onClick:function(){function M(){return b("queueswap",{from:E+1,to:E})}return M}()}),E0&&(0,e.createComponentVNode)(2,f.Stack.Item,{className:"Exofab__queue--time",children:[(0,e.createComponentVNode)(2,f.Divider),"Processing time:",(0,e.createComponentVNode)(2,f.Icon,{name:"clock",mx:"0.5rem"}),(0,e.createComponentVNode)(2,f.Box,{inline:!0,bold:!0,children:new Date(A/10*1e3).toISOString().substr(14,5)})]}),Object.keys(T).length>0&&(0,e.createComponentVNode)(2,f.Stack.Item,{className:"Exofab__queue--deficit",shrink:"0",children:[(0,e.createComponentVNode)(2,f.Divider),"Lacking materials to complete:",T.map(function(x){return(0,e.createComponentVNode)(2,f.Box,{children:(0,e.createComponentVNode)(2,l,{id:x[0],amount:-x[1],lineDisplay:!0})},x[0])})]})],0)})})},l=function(g,h){var N=(0,o.useBackend)(h),b=N.act,B=N.data,I=g.id,L=g.amount,T=g.lineDisplay,A=g.onClick,x=k(g,S),E=B.materials[I]||0,M=L||E;if(!(M<=0&&!(I==="metal"||I==="glass"))){var j=L&&L>E;return(0,e.normalizeProps)((0,e.createComponentVNode)(2,f.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,f.Stack.Item,{className:(0,a.classes)(["materials32x32",I])}),(0,e.createComponentVNode)(2,f.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,f.Stack.Item,{basis:"content",children:(0,e.createComponentVNode)(2,f.Button,{width:"85%",color:"transparent",onClick:A,children:(0,e.createComponentVNode)(2,f.Box,{mt:1,className:(0,a.classes)(["materials32x32",I])})})}),(0,e.createComponentVNode)(2,f.Stack.Item,{grow:"1",children:[(0,e.createComponentVNode)(2,f.Box,{className:"Exofab__material--name",children:I}),(0,e.createComponentVNode)(2,f.Box,{className:"Exofab__material--amount",children:[M.toLocaleString("en-US")," cm\xB3 (",Math.round(M/v*10)/10," ","sheets)"]})]})],4)})))}},p=function(g,h){var N=(0,o.useBackend)(h),b=N.act,B=N.data,I=g.design;return(0,e.createComponentVNode)(2,f.Box,{className:"Exofab__design",children:[(0,e.createComponentVNode)(2,f.Button,{disabled:I.notEnough||B.building,icon:"cog",content:I.name,onClick:function(){function L(){return b("build",{id:I.id})}return L}()}),(0,e.createComponentVNode)(2,f.Button,{icon:"plus-circle",onClick:function(){function L(){return b("queue",{id:I.id})}return L}()}),(0,e.createComponentVNode)(2,f.Box,{className:"Exofab__design--cost",children:Object.entries(I.cost).map(function(L){return(0,e.createComponentVNode)(2,f.Box,{children:(0,e.createComponentVNode)(2,l,{id:L[0],amount:L[1],lineDisplay:!0})},L[0])})}),(0,e.createComponentVNode)(2,f.Stack,{className:"Exofab__design--time",children:(0,e.createComponentVNode)(2,f.Stack.Item,{children:[(0,e.createComponentVNode)(2,f.Icon,{name:"clock"}),I.time>0?(0,e.createFragment)([I.time/10,(0,e.createTextVNode)(" seconds")],0):"Instant"]})})]})}},9466:function(w,r,n){"use strict";r.__esModule=!0,r.ExperimentConsole=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=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,v){var i=(0,a.useBackend)(v),c=i.act,m=i.data,d=m.open,u=m.feedback,s=m.occupant,l=m.occupant_name,p=m.occupant_status,C=function(){function h(){if(!s)return(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No specimen detected."});var N=function(){function B(){return f.get(p)}return B}(),b=N();return(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Name",children:l}),(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 I(){return c("experiment",{experiment_type:B})}return I}()},B)})})]})}return h}(),g=C();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:u})})}),(0,e.createComponentVNode)(2,t.Section,{title:"Scanner",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"eject",content:"Eject",disabled:!d,onClick:function(){function h(){return c("door")}return h}()}),children:g})]})})}return S}()},77284:function(w,r,n){"use strict";r.__esModule=!0,r.ExternalAirlockController=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=0,V=1013,y=function(v){var i="good",c=80,m=95,d=110,u=120;return vd?i="average":v>u&&(i="bad"),i},S=r.ExternalAirlockController=function(){function k(v,i){var c=(0,a.useBackend)(i),m=c.act,d=c.data,u=d.chamber_pressure,s=d.exterior_status,l=d.interior_status,p=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(u),value:u,minValue:f,maxValue:V,children:[u," kPa"]})})})}),(0,e.createComponentVNode)(2,t.Section,{title:"Actions",buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Abort",icon:"ban",color:"red",disabled:!p,onClick:function(){function C(){return m("abort")}return C}()}),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:p,onClick:function(){function C(){return m("cycle_ext")}return C}()}),(0,e.createComponentVNode)(2,t.Button,{width:"50%",content:"Cycle to Interior",icon:"arrow-circle-right",disabled:p,onClick:function(){function C(){return m("cycle_int")}return C}()})]}),(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Button,{width:"49%",content:"Force Exterior Door",icon:"exclamation-triangle",color:l==="open"?"red":p?"yellow":null,onClick:function(){function C(){return m("force_ext")}return C}()}),(0,e.createComponentVNode)(2,t.Button,{width:"50%",content:"Force Interior Door",icon:"exclamation-triangle",color:l==="open"?"red":p?"yellow":null,onClick:function(){function C(){return m("force_int")}return C}()})]})]})]})})}return k}()},52516:function(w,r,n){"use strict";r.__esModule=!0,r.FaxMachine=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.FaxMachine=function(){function V(y,S){var k=(0,a.useBackend)(S),v=k.act,i=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:i.scan_name?"eject":"id-card",selected:i.scan_name,content:i.scan_name?i.scan_name:"-----",tooltip:i.scan_name?"Eject ID":"Insert ID",onClick:function(){function c(){return v("scan")}return c}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Authorize",children:(0,e.createComponentVNode)(2,t.Button,{icon:i.authenticated?"sign-out-alt":"id-card",selected:i.authenticated,disabled:i.nologin,content:i.realauth?"Log Out":"Log In",onClick:function(){function c(){return v("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:i.network}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Document",children:[(0,e.createComponentVNode)(2,t.Button,{icon:i.paper?"eject":"paperclip",disabled:!i.authenticated&&!i.paper,content:i.paper?i.paper:"-----",onClick:function(){function c(){return v("paper")}return c}()}),!!i.paper&&(0,e.createComponentVNode)(2,t.Button,{icon:"pencil-alt",content:"Rename",onClick:function(){function c(){return v("rename")}return c}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Sending To",children:(0,e.createComponentVNode)(2,t.Button,{icon:"print",content:i.destination?i.destination:"-----",disabled:!i.authenticated,onClick:function(){function c(){return v("dept")}return c}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Action",children:(0,e.createComponentVNode)(2,t.Button,{icon:"envelope",content:i.sendError?i.sendError:"Send",disabled:!i.paper||!i.destination||!i.authenticated||i.sendError,onClick:function(){function c(){return v("send")}return c}()})})]})})]})})}return V}()},24777:function(w,r,n){"use strict";r.__esModule=!0,r.FilingCabinet=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.FilingCabinet=function(){function V(y,S){var k=(0,a.useBackend)(S),v=k.act,i=k.data,c=k.config,m=i.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:[!m&&(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."]})}),!!m&&m.slice().map(function(u){return(0,e.createComponentVNode)(2,t.Stack,{mt:.5,className:"candystripe",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"80%",children:u.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 v("retrieve",{index:u.index})}return s}()})})]},u)})]})})})})}return V}()},88361:function(w,r,n){"use strict";r.__esModule=!0,r.FloorPainter=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=function(S,k){var v=(0,a.useBackend)(k),i=v.act,c=v.data,m=S.image,d=S.isSelected,u=S.onSelect;return(0,e.createVNode)(1,"img",null,null,1,{src:"data:image/jpeg;base64,"+m,style:{"border-style":d&&"solid"||"none","border-width":"2px","border-color":"orange",padding:d&&"2px"||"4px"},onClick:u})},V=r.FloorPainter=function(){function y(S,k){var v=(0,a.useBackend)(k),i=v.act,c=v.data,m=c.availableStyles,d=c.selectedStyle,u=c.selectedDir,s=c.directionsPreview,l=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 p(){return i("cycle_style",{offset:-1})}return p}()})}),(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Dropdown,{options:m,selected:d,width:"150px",height:"20px",ml:"2px",mr:"2px",nochevron:!0,onSelected:function(){function p(C){return i("select_style",{style:C})}return p}()})}),(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"chevron-right",onClick:function(){function p(){return i("cycle_style",{offset:1})}return p}()})})]}),(0,e.createComponentVNode)(2,t.Box,{mt:"5px",mb:"5px",children:(0,e.createComponentVNode)(2,t.Flex,{overflowY:"auto",maxHeight:"220px",wrap:"wrap",children:m.map(function(p){return(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,f,{image:l[p],isSelected:d===p,onSelect:function(){function C(){return i("select_style",{style:p})}return C}()})},"{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(p){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[p+"west",p,p+"east"].map(function(C){return(0,e.createComponentVNode)(2,t.Table.Cell,{style:{"vertical-align":"middle","text-align":"center"},children:C===""?(0,e.createComponentVNode)(2,t.Icon,{name:"arrows-alt",size:3}):(0,e.createComponentVNode)(2,f,{image:s[C],isSelected:C===u,onSelect:function(){function g(){return i("select_direction",{direction:C})}return g}()})},C)})},p)})})})})]})})})}return y}()},70078:function(w,r,n){"use strict";r.__esModule=!0,r.GPS=void 0;var e=n(96524),a=n(36121),t=n(17899),o=n(24674),f=n(45493),V=function(d){return d?"("+d.join(", ")+")":"ERROR"},y=function(d,u){if(!(!d||!u)){if(d[2]!==u[2])return null;var s=Math.atan2(u[1]-d[1],u[0]-d[0]),l=Math.sqrt(Math.pow(u[1]-d[1],2)+Math.pow(u[0]-d[0],2));return{angle:(0,a.rad2deg)(s),distance:l}}},S=r.GPS=function(){function m(d,u){var s=(0,t.useBackend)(u),l=s.data,p=l.emped,C=l.active,g=l.area,h=l.position,N=l.saved;return(0,e.createComponentVNode)(2,f.Window,{width:400,height:600,children:(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:p?(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,v)}),C?(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,i,{area:g,position:h})}),N&&(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,i,{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 m}(),k=function(d,u){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."]})})})})},v=function(d,u){var s=(0,t.useBackend)(u),l=s.act,p=s.data,C=p.active,g=p.tag,h=p.same_z,N=(0,t.useLocalState)(u,"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:C,icon:C?"toggle-on":"toggle-off",content:C?"On":"Off",onClick:function(){function I(){return l("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 l("tag",{newtag:b})}return I}(),onInput:function(){function I(L,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 l("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:!h,icon:h?"compress":"expand",content:h?"Local Sector":"Global",onClick:function(){function I(){return l("same_z")}return I}()})})]})})},i=function(d,u){var s=d.title,l=d.area,p=d.position;return(0,e.createComponentVNode)(2,o.Section,{title:s||"Position",children:(0,e.createComponentVNode)(2,o.Box,{fontSize:"1.5rem",children:[l&&(0,e.createFragment)([l,(0,e.createVNode)(1,"br")],0),V(p)]})})},c=function(d,u){var s=(0,t.useBackend)(u),l=s.data,p=l.position,C=l.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:C.map(function(g){return Object.assign({},g,y(p,g.position))}).map(function(g,h){return(0,e.createComponentVNode)(2,o.Table.Row,{backgroundColor:h%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)})]},h)})})})))}},92246:function(w,r,n){"use strict";r.__esModule=!0,r.GeneModder=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(99665),f=n(45493),V=r.GeneModder=function(){function u(s,l){var p=(0,a.useBackend)(l),C=p.data,g=C.has_seed;return(0,e.createComponentVNode)(2,f.Window,{width:950,height:650,children:[(0,e.createVNode)(1,"div","GeneModder__left",(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,d,{scrollable:!0})}),2),(0,e.createVNode)(1,"div","GeneModder__right",(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,scrollable:!0,children:[(0,e.createComponentVNode)(2,k),(0,e.createComponentVNode)(2,o.ComplexModal,{maxWidth:"75%",maxHeight:"75%"}),g===0?(0,e.createComponentVNode)(2,S):(0,e.createComponentVNode)(2,y)]})}),2)]})}return u}(),y=function(s,l){var p=(0,a.useBackend)(l),C=p.act,g=p.data,h=g.disk;return(0,e.createComponentVNode)(2,t.Section,{title:"Genes",fill:!0,scrollable:!0,children:[(0,e.createComponentVNode)(2,v),(0,e.createComponentVNode)(2,i),(0,e.createComponentVNode)(2,c)]})},S=function(s,l){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(s,l){var p=(0,a.useBackend)(l),C=p.act,g=p.data,h=g.has_seed,N=g.seed,b=g.has_disk,B=g.disk,I,L;return h?I=(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,"+N.image,style:{"vertical-align":"middle",width:"32px",margin:"-1px","margin-left":"-11px"}}),(0,e.createComponentVNode)(2,t.Button,{content:N.name,onClick:function(){function T(){return C("eject_seed")}return T}()}),(0,e.createComponentVNode)(2,t.Button,{ml:"3px",icon:"pen",tooltip:"Name Variant",onClick:function(){function T(){return C("variant_name")}return T}()})]}):I=(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{ml:3.3,content:"None",onClick:function(){function T(){return C("eject_seed")}return T}()})}),b?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:I}),(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,tooltip:"Select Empty Disk",onClick:function(){function T(){return C("select_empty_disk")}return T}()})})})]})})},v=function(s,l){var p=(0,a.useBackend)(l),C=p.act,g=p.data,h=g.disk,N=g.core_genes;return(0,e.createComponentVNode)(2,t.Collapsible,{title:"Core Genes",open:!0,children:[N.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:!(h!=null&&h.can_extract),icon:"save",onClick:function(){function B(){return C("extract",{id:b.id})}return B}()})})]},b)})," ",(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:!(h!=null&&h.can_extract),icon:"save",onClick:function(){function b(){return C("bulk_extract_core")}return b}()})})})]},"Core Genes")},i=function(s,l){var p=(0,a.useBackend)(l),C=p.data,g=C.reagent_genes,h=C.has_reagent;return(0,e.createComponentVNode)(2,m,{title:"Reagent Genes",gene_set:g,do_we_show:h})},c=function(s,l){var p=(0,a.useBackend)(l),C=p.data,g=C.trait_genes,h=C.has_trait;return(0,e.createComponentVNode)(2,m,{title:"Trait Genes",gene_set:g,do_we_show:h})},m=function(s,l){var p=s.title,C=s.gene_set,g=s.do_we_show,h=(0,a.useBackend)(l),N=h.act,b=h.data,B=b.disk;return(0,e.createComponentVNode)(2,t.Collapsible,{title:p,open:!0,children:g?C.map(function(I){return(0,e.createComponentVNode)(2,t.Stack,{py:"2px",className:"candystripe",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"100%",ml:"2px",children:I.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 N("extract",{id:I.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 N("remove",{id:I.id})}return L}()})})]},I)}):(0,e.createComponentVNode)(2,t.Stack.Item,{children:"No Genes Detected"})},p)},d=function(s,l){var p=s.title,C=s.gene_set,g=s.do_we_show,h=(0,a.useBackend)(l),N=h.act,b=h.data,B=b.has_seed,I=b.empty_disks,L=b.stat_disks,T=b.trait_disks,A=b.reagent_disks;return(0,e.createComponentVNode)(2,t.Section,{title:"Disks",children:[(0,e.createVNode)(1,"br"),"Empty Disks: ",I,(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Button,{width:12,icon:"arrow-down",tooltip:"Eject an Empty disk",content:"Eject Empty Disk",onClick:function(){function x(){return N("eject_empty_disk")}return x}()}),(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Section,{title:"Stats",children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,scrollable:!0,children:[L.slice().sort(function(x,E){return x.display_name.localeCompare(E.display_name)}).map(function(x){return(0,e.createComponentVNode)(2,t.Stack,{mr:2,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"49%",children:x.display_name}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:25,children:[x.stat==="All"?(0,e.createComponentVNode)(2,t.Button,{content:"Replace All",tooltip:"Write disk stats to seed",disabled:!(x!=null&&x.ready)||!B,icon:"arrow-circle-down",onClick:function(){function E(){return N("bulk_replace_core",{index:x.index})}return E}()}):(0,e.createComponentVNode)(2,t.Button,{width:6,icon:"arrow-circle-down",tooltip:"Write disk stat to seed",disabled:!x||!B,content:"Replace",onClick:function(){function E(){return N("replace",{index:x.index,stat:x.stat})}return E}()}),(0,e.createComponentVNode)(2,t.Button,{width:6,icon:"arrow-right",content:"Select",tooltip:"Choose as target for extracted genes",tooltipPosition:"bottom-start",onClick:function(){function E(){return N("select",{index:x.index})}return E}()}),(0,e.createComponentVNode)(2,t.Button,{width:5,icon:"arrow-down",content:"Eject",tooltip:"Eject Disk",tooltipPosition:"bottom-start",onClick:function(){function E(){return N("eject_disk",{index:x.index})}return E}()}),(0,e.createComponentVNode)(2,t.Button,{width:2,icon:x.read_only?"lock":"lock-open",content:"",tool_tip:"Set/unset Read Only",onClick:function(){function E(){return N("set_read_only",{index:x.index,read_only:x.read_only})}return E}()})]})]},x)}),(0,e.createComponentVNode)(2,t.Button)]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Traits",children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,scrollable:!0,children:[T.slice().sort(function(x,E){return x.display_name.localeCompare(E.display_name)}).map(function(x){return(0,e.createComponentVNode)(2,t.Stack,{mr:2,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"49%",children:x.display_name}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:25,children:[(0,e.createComponentVNode)(2,t.Button,{width:6,icon:"arrow-circle-down",disabled:!x||!x.can_insert,tooltip:"Add disk trait to seed",content:"Insert",onClick:function(){function E(){return N("insert",{index:x.index})}return E}()}),(0,e.createComponentVNode)(2,t.Button,{width:6,icon:"arrow-right",content:"Select",tooltip:"Choose as target for extracted genes",tooltipPosition:"bottom-start",onClick:function(){function E(){return N("select",{index:x.index})}return E}()}),(0,e.createComponentVNode)(2,t.Button,{width:5,icon:"arrow-down",content:"Eject",tooltip:"Eject Disk",tooltipPosition:"bottom-start",onClick:function(){function E(){return N("eject_disk",{index:x.index})}return E}()}),(0,e.createComponentVNode)(2,t.Button,{width:2,icon:x.read_only?"lock":"lock-open",content:"",tool_tip:"Set/unset Read Only",onClick:function(){function E(){return N("set_read_only",{index:x.index,read_only:x.read_only})}return E}()})]})]},x)}),(0,e.createComponentVNode)(2,t.Button)]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Reagents",children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,scrollable:!0,children:[A.slice().sort(function(x,E){return x.display_name.localeCompare(E.display_name)}).map(function(x){return(0,e.createComponentVNode)(2,t.Stack,{mr:2,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"49%",children:x.display_name}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:25,children:[(0,e.createComponentVNode)(2,t.Button,{width:6,icon:"arrow-circle-down",disabled:!x||!x.can_insert,tooltip:"Add disk reagent to seed",content:"Insert",onClick:function(){function E(){return N("insert",{index:x.index})}return E}()}),(0,e.createComponentVNode)(2,t.Button,{width:6,icon:"arrow-right",content:"Select",tooltip:"Choose as target for extracted genes",tooltipPosition:"bottom-start",onClick:function(){function E(){return N("select",{index:x.index})}return E}()}),(0,e.createComponentVNode)(2,t.Button,{width:5,icon:"arrow-down",content:"Eject",tooltip:"Eject Disk",tooltipPosition:"bottom-start",onClick:function(){function E(){return N("eject_disk",{index:x.index})}return E}()}),(0,e.createComponentVNode)(2,t.Button,{width:2,icon:x.read_only?"lock":"lock-open",content:"",tool_tip:"Set/unset Read Only",onClick:function(){function E(){return N("set_read_only",{index:x.index,read_only:x.read_only})}return E}()})]})]},x)}),(0,e.createComponentVNode)(2,t.Button)]})})]})]})}},27163:function(w,r,n){"use strict";r.__esModule=!0,r.GenericCrewManifest=void 0;var e=n(96524),a=n(24674),t=n(45493),o=n(98444),f=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(w,r,n){"use strict";r.__esModule=!0,r.GhostHudPanel=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.GhostHudPanel=function(){function y(S,k){var v=(0,a.useBackend)(k),i=v.data,c=i.security,m=i.medical,d=i.diagnostic,u=i.radioactivity,s=i.ahud;return(0,e.createComponentVNode)(2,o.Window,{width:250,height:207,theme:"nologo",children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:[(0,e.createComponentVNode)(2,V,{label:"Medical",type:"medical",is_active:m}),(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:u,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 v=(0,a.useBackend)(k),i=v.act,c=S.label,m=S.type,d=m===void 0?null:m,u=S.is_active,s=S.act_on,l=s===void 0?"hud_on":s,p=S.act_off,C=p===void 0?"hud_off":p;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:u?"On":"Off",icon:u?"toggle-on":"toggle-off",selected:u,onClick:function(){function g(){return i(u?C:l,{hud_type:d})}return g}()})})]})}},32035:function(w,r,n){"use strict";r.__esModule=!0,r.GlandDispenser=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.GlandDispenser=function(){function V(y,S){var k=(0,a.useBackend)(S),v=k.act,i=k.data,c=i.glands,m=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:m.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 u(){return v("dispense",{gland_id:d.id})}return u}()},d.id)})})})})}return V}()},33004:function(w,r,n){"use strict";r.__esModule=!0,r.GravityGen=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.GravityGen=function(){function V(y,S){var k=(0,a.useBackend)(S),v=k.act,i=k.data,c=i.charging_state,m=i.charge_count,d=i.breaker,u=i.ext_power,s=function(){function p(C){return C>0?(0,e.createComponentVNode)(2,t.Box,{inline:!0,color:"average",children:["[ ",C===1?"Charging":"Discharging"," ]"]}):(0,e.createComponentVNode)(2,t.Box,{inline:!0,color:u?"good":"bad",children:["[ ",u?"Powered":"Unpowered"," ]"]})}return p}(),l=function(){function p(C){if(C>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 p}();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:[l(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 p(){return v("breaker")}return p}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power Status",color:u?"good":"bad",children:s(c)}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Gravity Charge",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:m/100,ranges:{good:[.9,1/0],average:[.5,.9],bad:[-1/0,.5]}})})]})})]})})})}return V}()},39775:function(w,r,n){"use strict";r.__esModule=!0,r.GuestPass=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=n(57842),V=r.GuestPass=function(){function y(S,k){var v=(0,a.useBackend)(k),i=v.act,c=v.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 m(){return i("mode",{mode:0})}return m}(),children:"Issue Pass"}),(0,e.createComponentVNode)(2,t.Tabs.Tab,{icon:"scroll",selected:c.showlogs,onClick:function(){function m(){return i("mode",{mode:1})}return m}(),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 m(){return i("scan")}return m}()})})})})}),(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 m(){return i("giv_name")}return m}()})}),(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 m(){return i("reason")}return m}()})}),(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 m(){return i("duration")}return m}()})})]})})}),!c.showlogs&&(c.scan_name?(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,f.AccessList,{sectionButtons:(0,e.createComponentVNode)(2,t.Button,{icon:"id-card",content:c.printmsg,disabled:!c.canprint,onClick:function(){function m(){return i("issue")}return m}()}),grantableList:c.grantableList,accesses:c.regions,selectedList:c.selectedAccess,accessMod:function(){function m(d){return i("access",{access:d})}return m}(),grantAll:function(){function m(){return i("grant_all")}return m}(),denyAll:function(){function m(){return i("clear_all")}return m}(),grantDep:function(){function m(d){return i("grant_region",{region:d})}return m}(),denyDep:function(){function m(d){return i("deny_region",{region:d})}return m}()})}):(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 m(){return i("print")}return m}()}),children:!!c.issue_log.length&&(0,e.createComponentVNode)(2,t.LabeledList,{children:c.issue_log.map(function(m,d){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{children:m},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(w,r,n){"use strict";r.__esModule=!0,r.HandheldChemDispenser=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=[1,5,10,20,30,50],V=null,y=r.HandheldChemDispenser=function(){function v(i,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 v}(),S=function(i,c){var m=(0,a.useBackend)(c),d=m.act,u=m.data,s=u.amount,l=u.energy,p=u.maxEnergy,C=u.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:l,minValue:0,maxValue:p,ranges:{good:[p*.5,1/0],average:[p*.25,p*.5],bad:[-1/0,p*.25]},children:[l," / ",p," Units"]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Amount",verticalAlign:"middle",children:(0,e.createComponentVNode)(2,t.Stack,{children:f.map(function(g,h){return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,width:"15%",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"cog",selected:s===g,content:g,onClick:function(){function N(){return d("amount",{amount:g})}return N}()})},h)})})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Mode",verticalAlign:"middle",children:(0,e.createComponentVNode)(2,t.Stack,{justify:"space-between",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"cog",selected:C==="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:C==="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:C==="isolate",content:"Isolate",m:"0",width:"32%",onClick:function(){function g(){return d("mode",{mode:"isolate"})}return g}()})]})})]})})})},k=function(i,c){for(var m=(0,a.useBackend)(c),d=m.act,u=m.data,s=u.chemicals,l=s===void 0?[]:s,p=u.current_reagent,C=[],g=0;g<(l.length+1)%3;g++)C.push(!0);return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,height:"18%",children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:u.glass?"Drink Selector":"Chemical Selector",children:[l.map(function(h,N){return(0,e.createComponentVNode)(2,t.Button,{width:"32%",icon:"arrow-circle-down",overflow:"hidden",textOverflow:"ellipsis",selected:p===h.id,content:h.title,style:{"margin-left":"2px"},onClick:function(){function b(){return d("dispense",{reagent:h.id})}return b}()},N)}),C.map(function(h,N){return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:"1",basis:"25%"},N)})]})})}},22616:function(w,r,n){"use strict";r.__esModule=!0,r.HealthSensor=void 0;var e=n(96524),a=n(36121),t=n(17899),o=n(24674),f=n(45493),V=r.HealthSensor=function(){function S(k,v){var i=(0,t.useBackend)(v),c=i.act,m=i.data,d=m.on,u=m.user_health,s=m.minHealth,l=m.maxHealth,p=m.alarm_health;return(0,e.createComponentVNode)(2,f.Window,{width:300,height:125,children:(0,e.createComponentVNode)(2,f.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 C(){return c("scan_toggle")}return C}()})}),(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:l,value:p,format:function(){function C(g){return(0,a.toFixed)(g,1)}return C}(),width:"80px",onDrag:function(){function C(g,h){return c("alarm_health",{alarm_health:h})}return C}()})}),u!==null&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"User health",children:(0,e.createComponentVNode)(2,o.Box,{color:y(u),bold:u>=100,children:(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:u})})})]})})})})}return S}(),y=function(k){return k>50?"green":k>0?"orange":"red"}},76861:function(w,r,n){"use strict";r.__esModule=!0,r.Holodeck=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.Holodeck=function(){function y(S,k){var v=(0,a.useBackend)(k),i=v.act,c=v.data,m=(0,a.useLocalState)(k,"currentDeck",""),d=m[0],u=m[1],s=(0,a.useLocalState)(k,"showReload",!1),l=s[0],p=s[1],C=c.decks,g=c.ai_override,h=c.emagged,N=function(){function b(B){i("select_deck",{deck:B}),u(B),p(!0),setTimeout(function(){p(!1)},3e3)}return b}();return(0,e.createComponentVNode)(2,o.Window,{width:400,height:320,children:[l&&(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:[C.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:h?"Turn On":"Turn Off",color:h?"good":"bad",onClick:function(){function b(){return i("ai_override")}return b}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Safety Protocols",children:(0,e.createComponentVNode)(2,t.Box,{color:h?"bad":"good",children:[h?"Off":"On",!!h&&(0,e.createComponentVNode)(2,t.Button,{ml:9.5,width:15.5,color:"red",content:"Wildlife Simulation",onClick:function(){function b(){return i("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(w,r,n){"use strict";r.__esModule=!0,r.Instrument=void 0;var e=n(96524),a=n(36121),t=n(17899),o=n(24674),f=n(45493),V=r.Instrument=function(){function i(c,m){var d=(0,t.useBackend)(m),u=d.act,s=d.data;return(0,e.createComponentVNode)(2,f.Window,{width:600,height:505,children:[(0,e.createComponentVNode)(2,y),(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,S),(0,e.createComponentVNode)(2,v)]})})]})}return i}(),y=function(c,m){var d=(0,t.useBackend)(m),u=d.act,s=d.data,l=s.help;if(l)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.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.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 p(){return u("help")}return p}()})]})})})},S=function(c,m){var d=(0,t.useBackend)(m),u=d.act,s=d.data,l=s.lines,p=s.playing,C=s.repeat,g=s.maxRepeats,h=s.tempo,N=s.minTempo,b=s.maxTempo,B=s.tickLag,I=s.volume,L=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 u("help")}return x}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"file",content:"New",onClick:function(){function x(){return u("newsong")}return x}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"upload",content:"Import",onClick:function(){function x(){return u("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:p,disabled:l.length===0||C<0,icon:"play",content:"Play",onClick:function(){function x(){return u("play")}return x}()}),(0,e.createComponentVNode)(2,o.Button,{disabled:!p,icon:"stop",content:"Stop",onClick:function(){function x(){return u("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:C,stepPixelSize:59,onChange:function(){function x(E,M){return u("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:h>=b,content:"-",as:"span",mr:"0.5rem",onClick:function(){function x(){return u("tempo",{new:h+B})}return x}()}),(0,a.round)(600/h)," BPM",(0,e.createComponentVNode)(2,o.Button,{disabled:h<=N,content:"+",as:"span",ml:"0.5rem",onClick:function(){function x(){return u("tempo",{new:h-B})}return x}()})]})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Volume",children:(0,e.createComponentVNode)(2,o.Slider,{animated:!0,minValue:L,maxValue:T,value:I,stepPixelSize:6,onDrag:function(){function x(E,M){return u("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,m){var d=(0,t.useBackend)(m),u=d.act,s=d.data,l=s.allowedInstrumentNames,p=s.instrumentLoaded,C=s.instrument,g=s.canNoteShift,h=s.noteShift,N=s.noteShiftMin,b=s.noteShiftMax,B=s.sustainMode,I=s.sustainLinearDuration,L=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 u("setlinearfalloff",{new:R/10})}return j}()})):B===2&&(E="Exponential",M=(0,e.createComponentVNode)(2,o.Slider,{minValue:1.025,maxValue:10,value:L,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 u("setexpfalloff",{new:R})}return j}()})),l.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:p?(0,e.createComponentVNode)(2,o.Dropdown,{options:l,selected:C,width:"50%",onSelected:function(){function j(P){return u("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:N,maxValue:b,value:h,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 u("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 u("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 u("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 u("togglesustainhold")}return j}()})})],4)]}),(0,e.createComponentVNode)(2,o.Button,{icon:"redo",content:"Reset to Default",mt:"0.5rem",onClick:function(){function j(){return u("reset")}return j}()})]})})})},v=function(c,m){var d=(0,t.useBackend)(m),u=d.act,s=d.data,l=s.playing,p=s.lines,C=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:!C||l,icon:"plus",content:"Add Line",onClick:function(){function g(){return u("newline",{line:p.length+1})}return g}()}),(0,e.createComponentVNode)(2,o.Button,{selected:!C,icon:C?"chevron-up":"chevron-down",onClick:function(){function g(){return u("edit")}return g}()})],4),children:!!C&&(p.length>0?(0,e.createComponentVNode)(2,o.LabeledList,{children:p.map(function(g,h){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:h+1,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{disabled:l,icon:"pen",onClick:function(){function N(){return u("modifyline",{line:h+1})}return N}()}),(0,e.createComponentVNode)(2,o.Button,{disabled:l,icon:"trash",onClick:function(){function N(){return u("deleteline",{line:h+1})}return N}()})],4),children:g},h)})}):(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"Song is empty."}))})}},99366:function(w,r,n){"use strict";r.__esModule=!0,r.Jukebox=void 0;var e=n(96524),a=n(50640),t=n(74041),o=n(17899),f=n(24674),V=n(45493),y=r.Jukebox=function(){function v(i,c){var m=(0,o.useBackend)(c),d=m.act,u=m.data,s=u.active,l=u.looping,p=u.track_selected,C=u.volume,g=u.max_volume,h=u.songs,N=u.startTime,b=u.endTime,B=u.worldTime,I=u.need_coin,L=u.payment,T=u.advanced_admin,A=35,x=!L&&I&&!T,E=(0,t.flow)([(0,a.sortBy)(function(F){return F.name})])(h),M=h.find(function(F){return F.name===p}),j=E.length,P=M?E.findIndex(function(F){return F.name===M.name})+1:0,R=function(){function F(W){var U=Math.floor(W/60),K=W%60,H=String(U).padStart(2,"0")+":"+String(K).padStart(2,"0");return H}return F}(),D=(0,e.createComponentVNode)(2,f.Box,{textAlign:"center",children:[s?l?"\u221E":R(Math.round((B-N)/10)):l?"\u221E":R(M.length)," ","/ ",l?"\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:[x?(0,e.createComponentVNode)(2,k):null,(0,e.createComponentVNode)(2,V.Window.Content,{children:(0,e.createComponentVNode)(2,f.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,f.Stack,{children:[(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,f.Section,{fill:!0,title:"\u041F\u0440\u043E\u0438\u0433\u0440\u044B\u0432\u0430\u0442\u0435\u043B\u044C",children:(0,e.createComponentVNode)(2,f.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,f.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,f.Stack,{fill:!0,mt:1.5,children:[(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,basis:"0",children:(0,e.createComponentVNode)(2,f.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,f.Stack.Item,{grow:!0,basis:"0",children:(0,e.createComponentVNode)(2,f.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:l,onClick:function(){function F(){return d("loop",{looping:!l})}return F}()})})]}),(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.ProgressBar.Countdown,{start:N,current:l?b:B,end:b,children:D})})]})})}),(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Section,{children:[s?(0,e.createComponentVNode)(2,S):null,(0,e.createComponentVNode)(2,f.Stack,{fill:!0,mb:1.5,children:[(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,m:0,children:(0,e.createComponentVNode)(2,f.Button,{color:"transparent",icon:"fast-backward",onClick:function(){function F(){return d("set_volume",{volume:"min"})}return F}()})}),(0,e.createComponentVNode)(2,f.Stack.Item,{m:0,children:(0,e.createComponentVNode)(2,f.Button,{color:"transparent",icon:"undo",onClick:function(){function F(){return d("set_volume",{volume:"reset"})}return F}()})}),(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,m:0,textAlign:"right",children:(0,e.createComponentVNode)(2,f.Button,{color:"transparent",icon:"fast-forward",onClick:function(){function F(){return d("set_volume",{volume:"max"})}return F}()})})]}),(0,e.createComponentVNode)(2,f.Stack.Item,{textAlign:"center",textColor:"label",children:[(0,e.createComponentVNode)(2,f.Knob,{size:2,color:C<=25?"green":C<=50?"":C<=75?"orange":"red",value:C,unit:"%",minValue:0,maxValue:g,step:1,stepPixelSize:5,onDrag:function(){function F(W,U){return d("set_volume",{volume:U})}return F}()}),"Volume"]})]})})]}),(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,f.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,f.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),U=E[W];d("select_track",{track:U.name})}return F}()}),children:E.map(function(F){return(0,e.createComponentVNode)(2,f.Stack.Item,{mb:.5,textAlign:"left",children:(0,e.createComponentVNode)(2,f.Button,{fluid:!0,selected:M.name===F.name,color:"translucent",content:(0,e.createComponentVNode)(2,f.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,children:F.name}),(0,e.createComponentVNode)(2,f.Stack.Item,{children:R(F.length)})]}),onClick:function(){function W(){d("select_track",{track:F.name})}return W}()})},F.name)})})})]})})]})}return v}(),S=function(){return(0,e.createComponentVNode)(2,f.Dimmer,{textAlign:"center",children:[(0,e.createComponentVNode)(2,f.Icon,{name:"music",size:"3",color:"gray",mb:1}),(0,e.createComponentVNode)(2,f.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,f.Dimmer,{textAlign:"center",children:[(0,e.createComponentVNode)(2,f.Icon,{name:"coins",size:"6",color:"gold",mr:1}),(0,e.createComponentVNode)(2,f.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(w,r,n){"use strict";r.__esModule=!0,r.KeycardAuth=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.KeycardAuth=function(){function V(y,S){var k=(0,a.useBackend)(S),v=k.act,i=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(!i.swiping&&!i.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:!i.redAvailable,onClick:function(){function d(){return v("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 v("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 v("triggerevent",{triggerevent:"Grant Emergency Maintenance Access"})}return d}(),content:"Grant"}),(0,e.createComponentVNode)(2,t.Button,{icon:"door-closed",onClick:function(){function d(){return v("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 v("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 v("triggerevent",{triggerevent:"Deactivate Station-Wide Emergency Access"})}return d}(),content:"Revoke"})]})]})})]})});var m=(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Waiting for YOU to swipe your ID..."});return!i.hasSwiped&&!i.ertreason&&i.event==="Emergency Response Team"?m=(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Fill out the reason for your ERT request."}):i.hasConfirm?m=(0,e.createComponentVNode)(2,t.Box,{color:"green",children:"Request Confirmed!"}):i.isRemote?m=(0,e.createComponentVNode)(2,t.Box,{color:"orange",children:"Swipe your card to CONFIRM the remote request."}):i.hasSwiped&&(m=(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,i.event==="Emergency Response Team"&&(0,e.createComponentVNode)(2,t.Section,{title:"Reason for ERT Call",children:(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{color:i.ertreason?"":"red",icon:i.ertreason?"check":"pencil-alt",content:i.ertreason?i.ertreason:"-----",disabled:i.busy,onClick:function(){function d(){return v("ert")}return d}()})})}),(0,e.createComponentVNode)(2,t.Section,{title:i.event,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-circle-left",content:"Back",disabled:i.busy||i.hasConfirm,onClick:function(){function d(){return v("reset")}return d}()}),children:m})]})})}return V}()},58553:function(w,r,n){"use strict";r.__esModule=!0,r.KitchenMachine=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=n(75201),V=r.KitchenMachine=function(){function S(k,v){var i=(0,a.useBackend)(v),c=i.data,m=i.config,d=c.ingredients,u=c.operating,s=m.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,f.Operating,{operating:u,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(l){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:l.name}),2),(0,e.createVNode)(1,"td",null,(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,textAlign:"center",children:[l.amount," ",l.units]}),2)]},l.name)})})})})]})})})}return S}(),y=function(k,v){var i=(0,a.useBackend)(v),c=i.act,m=i.data,d=m.inactive,u=m.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?u:"",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?u:"",tooltipPosition:"bottom",content:"Eject Contents",onClick:function(){function s(){return c("eject")}return s}()})})]})})}},14047:function(w,r,n){"use strict";r.__esModule=!0,r.LawManager=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.LawManager=function(){function k(v,i){var c=(0,a.useBackend)(i),m=c.act,d=c.data,u=d.isAdmin,s=d.isSlaved,l=d.isMalf,p=d.isAIMalf,C=d.view;return(0,e.createComponentVNode)(2,o.Window,{width:800,height:l?620:365,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[!!(u&&s)&&(0,e.createComponentVNode)(2,t.NoticeBox,{children:["This unit is slaved to ",s,"."]}),!!(l||p)&&(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Button,{content:"Law Management",selected:C===0,onClick:function(){function g(){return m("set_view",{set_view:0})}return g}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Lawsets",selected:C===1,onClick:function(){function g(){return m("set_view",{set_view:1})}return g}()})]}),C===0&&(0,e.createComponentVNode)(2,V),C===1&&(0,e.createComponentVNode)(2,y)]})})}return k}(),V=function(v,i){var c=(0,a.useBackend)(i),m=c.act,d=c.data,u=d.has_zeroth_laws,s=d.zeroth_laws,l=d.has_ion_laws,p=d.ion_laws,C=d.ion_law_nr,g=d.has_inherent_laws,h=d.inherent_laws,N=d.has_supplied_laws,b=d.supplied_laws,B=d.channels,I=d.channel,L=d.isMalf,T=d.isAdmin,A=d.zeroth_law,x=d.ion_law,E=d.inherent_law,M=d.supplied_law,j=d.supplied_law_position;return(0,e.createFragment)([!!u&&(0,e.createComponentVNode)(2,S,{title:"ERR_NULL_VALUE",laws:s,ctx:i}),!!l&&(0,e.createComponentVNode)(2,S,{title:C,laws:p,ctx:i}),!!g&&(0,e.createComponentVNode)(2,S,{title:"Inherent",laws:h,ctx:i}),!!N&&(0,e.createComponentVNode)(2,S,{title:"Supplied",laws:b,ctx:i}),(0,e.createComponentVNode)(2,t.Section,{title:"Statement Settings",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Statement Channel",children:B.map(function(P){return(0,e.createComponentVNode)(2,t.Button,{content:P.channel,selected:P.channel===I,onClick:function(){function R(){return m("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 m("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 m("notify_laws")}return P}()})})]})}),!!L&&(0,e.createComponentVNode)(2,t.Section,{title:"Add Laws",children:(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{width:"10%",children:"Type"}),(0,e.createComponentVNode)(2,t.Table.Cell,{width:"60%",children:"Law"}),(0,e.createComponentVNode)(2,t.Table.Cell,{width:"10%",children:"Index"}),(0,e.createComponentVNode)(2,t.Table.Cell,{width:"20%",children:"Actions"})]}),!!(T&&!u)&&(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 m("change_zeroth_law")}return P}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Add",icon:"plus",onClick:function(){function P(){return m("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 m("change_ion_law")}return P}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Add",icon:"plus",onClick:function(){function P(){return m("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 m("change_inherent_law")}return P}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Add",icon:"plus",onClick:function(){function P(){return m("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 m("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 m("change_supplied_law")}return P}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Add",icon:"plus",onClick:function(){function P(){return m("add_supplied_law")}return P}()})]})]})]})})],0)},y=function(v,i){var c=(0,a.useBackend)(i),m=c.act,d=c.data,u=d.law_sets;return(0,e.createComponentVNode)(2,t.Box,{children:u.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 l(){return m("transfer_laws",{transfer_laws:s.ref})}return l}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[s.laws.has_ion_laws>0&&s.laws.ion_laws.map(function(l){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:l.index,children:l.law},l.index)}),s.laws.has_zeroth_laws>0&&s.laws.zeroth_laws.map(function(l){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:l.index,children:l.law},l.index)}),s.laws.has_inherent_laws>0&&s.laws.inherent_laws.map(function(l){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:l.index,children:l.law},l.index)}),s.laws.has_supplied_laws>0&&s.laws.inherent_laws.map(function(l){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:l.index,children:l.law},l.index)})]})},s.name)})})},S=function(v,i){var c=(0,a.useBackend)(v.ctx),m=c.act,d=c.data,u=d.isMalf;return(0,e.createComponentVNode)(2,t.Section,{title:v.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?"})]}),v.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 l(){return m("state_law",{ref:s.ref,state_law:s.state?0:1})}return l}()}),!!u&&(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{content:"Edit",icon:"pencil-alt",onClick:function(){function l(){return m("edit_law",{edit_law:s.ref})}return l}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Delete",icon:"trash",color:"red",onClick:function(){function l(){return m("delete_law",{delete_law:s.ref})}return l}()})],4)]})]},s.law)})]})})}},5872:function(w,r,n){"use strict";r.__esModule=!0,r.LibraryComputer=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=n(99665),V=r.LibraryComputer=function(){function C(g,h){return(0,e.createComponentVNode)(2,o.Window,{width:1050,height:600,children:[(0,e.createComponentVNode)(2,f.ComplexModal),(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,i),(0,e.createComponentVNode)(2,c)]})})]})}return C}(),y=function(g,h){var N=(0,a.useBackend)(h),b=N.act,B=N.data,I=g.args,L=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"),L===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:L})}return T}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Report Book",icon:"flag",color:"red",disabled:I.isProgrammatic,onClick:function(){function T(){return(0,f.modalOpen)(h,"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,f.modalOpen)(h,"rate_info",{bookid:I.id})}return T}()})]})},S=function(g,h){var N=(0,a.useBackend)(h),b=N.act,B=N.data,I=g.args,L=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===L,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,h){var N=(0,a.useBackend)(h),b=N.act,B=N.data,I=B.selected_rating,L=Array(10).fill().map(function(T,A){return 1+A});return(0,e.createComponentVNode)(2,t.Stack,{children:[L.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"})]})]})},v=function(g,h){var N=(0,a.useBackend)(h),b=N.act,B=N.data,I=g.args,L=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:L})}return T}()})]})},i=function(g,h){var N=(0,a.useBackend)(h),b=N.data,B=(0,a.useLocalState)(h,"tabIndex",0),I=B[0],L=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 L(0)}return A}(),children:"Book Archives"}),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:I===1,onClick:function(){function A(){return L(1)}return A}(),children:"Corporate Literature"}),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:I===2,onClick:function(){function A(){return L(2)}return A}(),children:"Upload Book"}),T===1&&(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:I===3,onClick:function(){function A(){return L(3)}return A}(),children:"Patron Manager"}),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:I===4,onClick:function(){function A(){return L(4)}return A}(),children:"Inventory"})]})})},c=function(g,h){var N=(0,a.useLocalState)(h,"tabIndex",0),b=N[0];switch(b){case 0:return(0,e.createComponentVNode)(2,d);case 1:return(0,e.createComponentVNode)(2,u);case 2:return(0,e.createComponentVNode)(2,s);case 3:return(0,e.createComponentVNode)(2,l);case 4:return(0,e.createComponentVNode)(2,p);default:return"You are somehow on a tab that doesn't exist! Please let a coder know."}},m=function(g,h){var N=(0,a.useBackend)(h),b=N.act,B=N.data,I=B.searchcontent,L=B.book_categories,T=B.user_ckey,A=[];return L.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,f.modalOpen)(h,"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,f.modalOpen)(h,"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,f.modalOpen)(h,"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,f.modalOpen)(h,"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:L.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"),L.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}()})]})]})},d=function(g,h){var N=(0,a.useBackend)(h),b=N.act,B=N.data,I=B.external_booklist,L=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:L===1,onClick:function(){function x(){return b("deincrementpagemax")}return x}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"chevron-left",disabled:L===1,onClick:function(){function x(){return b("deincrementpage")}return x}()}),(0,e.createComponentVNode)(2,t.Button,{bold:!0,content:L,onClick:function(){function x(){return(0,f.modalOpen)(h,"setpagenumber")}return x}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"chevron-right",disabled:L===T,onClick:function(){function x(){return b("incrementpage")}return x}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"angle-double-right",disabled:L===T,onClick:function(){function x(){return b("incrementpagemax")}return x}()})],4),children:[(0,e.createComponentVNode)(2,m),(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,f.modalOpen)(h,"expand_info",{bookid:x.id})}return E}()})]})]},x.id)})]})]})},u=function(g,h){var N=(0,a.useBackend)(h),b=N.act,B=N.data,I=B.programmatic_booklist,L=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:[L===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,f.modalOpen)(h,"expand_info",{bookid:T.id})}return x}()})]})]},A)})]})})},s=function(g,h){var N=(0,a.useBackend)(h),b=N.act,B=N.data,I=B.selectedbook,L=B.book_categories,T=B.user_ckey,A=[];return L.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,f.modalOpen)(h,"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,f.modalOpen)(h,"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:L.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"),L.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,f.modalOpen)(h,"edit_selected_summary")}return x}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{children:I.summary})]})})]})]})},l=function(g,h){var N=(0,a.useBackend)(h),b=N.act,B=N.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(L,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"}),L.patron_name]}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:L.title}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:L.timeleft>=0?L.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:L.timeleft>=0,onClick:function(){function A(){return b("reportlost",{libraryid:L.libraryid})}return A}()})})]},T)})]})})},p=function(g,h){var N=(0,a.useBackend)(h),b=N.act,B=N.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(L,T){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:L.libraryid}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"book"})," ",L.title]}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:L.author}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:L.checked_out?"Checked Out":"Available"})]},T)})]})})};(0,f.modalRegisterBodyOverride)("expand_info",y),(0,f.modalRegisterBodyOverride)("report_book",S),(0,f.modalRegisterBodyOverride)("rate_info",v)},37782:function(w,r,n){"use strict";r.__esModule=!0,r.LibraryManager=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=n(99665),V=r.LibraryManager=function(){function i(c,m){return(0,e.createComponentVNode)(2,o.Window,{width:600,height:600,children:[(0,e.createComponentVNode)(2,f.ComplexModal),(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,className:"Layout__content--flexColumn",children:(0,e.createComponentVNode)(2,y)})]})}return i}(),y=function(c,m){var d=(0,a.useBackend)(m),u=d.act,s=d.data,l=s.pagestate;switch(l){case 1:return(0,e.createComponentVNode)(2,S);case 2:return(0,e.createComponentVNode)(2,v);case 3:return(0,e.createComponentVNode)(2,k);default:return"WE SHOULDN'T BE HERE!"}},S=function(c,m){var d=(0,a.useBackend)(m),u=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 l(){return(0,f.modalOpen)(m,"specify_ssid_delete")}return l}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"user-slash",width:"auto",color:"danger",content:"Delete All Books By CKEY",onClick:function(){function l(){return(0,f.modalOpen)(m,"specify_ckey_delete")}return l}()}),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Button,{icon:"search",width:"auto",content:"View All Books By CKEY",onClick:function(){function l(){return(0,f.modalOpen)(m,"specify_ckey_search")}return l}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"search",width:"auto",content:"View All Reported Books",onClick:function(){function l(){return u("view_reported_books")}return l}()})]})},k=function(c,m){var d=(0,a.useBackend)(m),u=d.act,s=d.data,l=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 p(){return u("return")}return p}()}),(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"})]}),l.map(function(p){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:p.uploader_ckey}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:p.id}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"book"}),p.title]}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:p.author}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:p.report_description}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:p.reporter_ckey}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:[(0,e.createComponentVNode)(2,t.Button.Confirm,{content:"Delete",icon:"trash",onClick:function(){function C(){return u("delete_book",{bookid:p.id})}return C}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Unflag",icon:"flag",color:"caution",onClick:function(){function C(){return u("unflag_book",{bookid:p.id})}return C}()}),(0,e.createComponentVNode)(2,t.Button,{content:"View",onClick:function(){function C(){return u("view_book",{bookid:p.id})}return C}()})]})]},p.id)})]})})},v=function(c,m){var d=(0,a.useBackend)(m),u=d.act,s=d.data,l=s.ckey,p=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 ",l,(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 C(){return u("return")}return C}()}),(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"})]}),p.map(function(C){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(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:"right",children:[(0,e.createComponentVNode)(2,t.Button.Confirm,{content:"Delete",icon:"trash",color:"bad",onClick:function(){function g(){return u("delete_book",{bookid:C.id})}return g}()}),(0,e.createComponentVNode)(2,t.Button,{content:"View",onClick:function(){function g(){return u("view_book",{bookid:C.id})}return g}()})]})]},C.id)})]})})}},26133:function(w,r,n){"use strict";r.__esModule=!0,r.ListInputModal=void 0;var e=n(96524),a=n(14299),t=n(15113),o=n(24674),f=n(17899),V=n(68100),y=n(45493),S=r.ListInputModal=function(){function i(c,m){var d=(0,f.useBackend)(m),u=d.act,s=d.data,l=s.items,p=l===void 0?[]:l,C=s.message,g=C===void 0?"":C,h=s.init_value,N=s.timeout,b=s.title,B=(0,f.useLocalState)(m,"selected",p.indexOf(h)),I=B[0],L=B[1],T=(0,f.useLocalState)(m,"searchBarVisible",p.length>10),A=T[0],x=T[1],E=(0,f.useLocalState)(m,"searchQuery",""),M=E[0],j=E[1],P=function(){function X(Y){var J=K.length-1;if(Y===V.KEY_DOWN)if(I===null||I===J){var ie;L(0),(ie=document.getElementById("0"))==null||ie.scrollIntoView()}else{var ce;L(I+1),(ce=document.getElementById((I+1).toString()))==null||ce.scrollIntoView()}else if(Y===V.KEY_UP)if(I===null||I===0){var fe;L(J),(fe=document.getElementById(J.toString()))==null||fe.scrollIntoView()}else{var pe;L(I-1),(pe=document.getElementById((I-1).toString()))==null||pe.scrollIntoView()}}return X}(),R=function(){function X(Y){Y!==I&&L(Y)}return X}(),D=function(){function X(){x(!1),x(!0)}return X}(),F=function(){function X(Y){var J=String.fromCharCode(Y),ie=p.find(function(pe){return pe==null?void 0:pe.toLowerCase().startsWith(J==null?void 0:J.toLowerCase())});if(ie){var ce,fe=p.indexOf(ie);L(fe),(ce=document.getElementById(fe.toString()))==null||ce.scrollIntoView()}}return X}(),W=function(){function X(Y){var J;Y!==M&&(j(Y),L(0),(J=document.getElementById("0"))==null||J.scrollIntoView())}return X}(),U=function(){function X(){x(!A),j("")}return X}(),K=p.filter(function(X){return X==null?void 0:X.toLowerCase().includes(M.toLowerCase())}),H=330+Math.ceil(g.length/3);return A||setTimeout(function(){var X;return(X=document.getElementById(I.toString()))==null?void 0:X.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(Y){var J=window.event?Y.which:Y.keyCode;(J===V.KEY_DOWN||J===V.KEY_UP)&&(Y.preventDefault(),P(J)),J===V.KEY_ENTER&&(Y.preventDefault(),u("submit",{entry:K[I]})),!A&&J>=V.KEY_A&&J<=V.KEY_Z&&(Y.preventDefault(),F(J)),J===V.KEY_ESCAPE&&(Y.preventDefault(),u("cancel"))}return X}(),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 X(){return U()}return X}()}),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:D,searchBarVisible:A,selected:I})}),(0,e.createComponentVNode)(2,o.Stack.Item,{m:0,children:A&&(0,e.createComponentVNode)(2,v,{filteredItems:K,onSearch:W,searchQuery:M,selected:I})}),(0,e.createComponentVNode)(2,o.Stack.Item,{mt:.5,children:(0,e.createComponentVNode)(2,t.InputButtons,{input:K[I]})})]})})})]})}return i}(),k=function(c,m){var d=(0,f.useBackend)(m),u=d.act,s=c.filteredItems,l=c.onClick,p=c.onFocusSearch,C=c.searchBarVisible,g=c.selected;return(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,tabIndex:0,children:s.map(function(h,N){return(0,e.createComponentVNode)(2,o.Button,{fluid:!0,color:"transparent",id:N,onClick:function(){function b(){return l(N)}return b}(),onDblClick:function(){function b(B){B.preventDefault(),u("submit",{entry:s[g]})}return b}(),onKeyDown:function(){function b(B){var I=window.event?B.which:B.keyCode;C&&I>=V.KEY_A&&I<=V.KEY_Z&&(B.preventDefault(),p())}return b}(),selected:N===g,style:{animation:"none",transition:"none"},children:h.replace(/^\w/,function(b){return b.toUpperCase()})},N)})})},v=function(c,m){var d=(0,f.useBackend)(m),u=d.act,s=c.filteredItems,l=c.onSearch,p=c.searchQuery,C=c.selected;return(0,e.createComponentVNode)(2,o.Input,{width:"100%",autoFocus:!0,autoSelect:!0,onEnter:function(){function g(h){h.preventDefault(),u("submit",{entry:s[C]})}return g}(),onInput:function(){function g(h,N){return l(N)}return g}(),placeholder:"Search...",value:p})}},71963:function(w,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),f=function(I,L){var T=I.name,A=I.value,x=I.module_ref,E=(0,a.useBackend)(L),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}()})},V=function(I,L){var T=I.name,A=I.value,x=I.module_ref,E=(0,a.useBackend)(L),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,L){var T=I.name,A=I.value,x=I.module_ref,E=(0,a.useBackend)(L),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,L){var T=I.name,A=I.value,x=I.values,E=I.module_ref,M=(0,a.useBackend)(L),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,L){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,f,Object.assign({},I))),bool:(0,e.normalizeProps)((0,e.createComponentVNode)(2,V,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]]})},v=function(I,L){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})})]})},i=function(I,L){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,L){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,U=I.statusfingerprints,K=I.statusdna,H=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?U:"???"}),(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(X){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:X.name}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:X.type}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:[X.stage,"/",X.maxstage]}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:X.cure})]},X.name)})]})})],0)},m={rad_counter:v,health_analyzer:i,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"})]})},u=function(I,L){var T=(0,a.useBackend)(L),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,L){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"})})})]})})},l=function(I){switch(I){case 1:return"Use";case 2:return"Toggle";case 3:return"Select"}},p=function(I,L){var T=(0,a.useBackend)(L),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,U=x.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 A("activate")}return H}()}),children:K}),(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 H(){return A("lock")}return H}()}),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,", ",U]})]})})},C=function(I,L){var T=(0,a.useBackend)(L),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,L){var T=(0,a.useBackend)(L),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=m[P.id];return(0,e.createComponentVNode)(2,t.Stack.Item,{children:[!E&&(0,e.createComponentVNode)(2,u),(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"})})})},h=function(I,L){var T=(0,a.useBackend)(L),A=T.act,x=T.data,E=x.complexity_max,M=x.modules,j=(0,a.useLocalState)(L,"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:l(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"})})})})},N=r.MODsuitContent=function(){function B(I,L){var T=(0,a.useBackend)(L),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,d)||(0,e.createComponentVNode)(2,t.Stack,{vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,p)}),(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,g)}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,h)})]})})}return B}(),b=r.MODsuit=function(){function B(I,L){var T=(0,a.useBackend)(L),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,N)})})})}return B}()},84274:function(w,r,n){"use strict";r.__esModule=!0,r.MagnetController=void 0;var e=n(96524),a=n(36121),t=n(17899),o=n(24674),f=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(v,i){var c=(0,t.useBackend)(i),m=c.act,d=c.data,u=d.autolink,s=d.code,l=d.frequency,p=d.linkedMagnets,C=d.magnetConfiguration,g=d.path,h=d.pathPosition,N=d.probing,b=d.powerState,B=d.speed;return(0,e.createComponentVNode)(2,f.Window,{width:400,height:600,children:[(0,e.createComponentVNode)(2,V.ComplexModal),(0,e.createComponentVNode)(2,f.Window.Content,{scrollable:!0,children:[!u&&(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 I(){return m("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)(l/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 m("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(L,T){return m("set_speed",{speed:T})}return I}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Path",children:[Array.from(y.entries()).map(function(I){var L=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 m("path_add",{code:L})}return E}()},L)}),(0,e.createComponentVNode)(2,o.Button.Confirm,{icon:"trash",confirmIcon:"trash",confirmContent:"",float:"right",tooltip:"Reset Path",tooltipPosition:"left",onClick:function(){function I(){return m("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,V.modalOpen)(i,"path_custom_input")}return I}()}),(0,e.createComponentVNode)(2,o.BlockQuote,{children:g.map(function(I,L){var T=y.get(I)||{icon:"question"},A=T.icon,x=T.tooltip;return(0,e.createComponentVNode)(2,o.Button.Confirm,{selected:L+2===h,icon:A,confirmIcon:A,confirmContent:"",tooltip:x,onClick:function(){function E(){return m("path_remove",{index:L+1,code:I})}return E}()},L)})})]})]})}),p.map(function(I,L){var T=I.uid,A=I.powerState,x=I.electricityLevel,E=I.magneticField;return(0,e.createComponentVNode)(2,o.Section,{title:"Magnet #"+(L+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 m("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:C.electricityLevel.min,maxValue:C.electricityLevel.max,onChange:function(){function M(j,P){return m("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:C.magneticField.min,maxValue:C.magneticField.max,onChange:function(){function M(j,P){return m("set_magnetic_field",{id:T,magneticField:P})}return M}()})})]})},T)})]})]})}return k}()},95752:function(w,r,n){"use strict";r.__esModule=!0,r.MechBayConsole=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.MechBayConsole=function(){function V(y,S){var k=(0,a.useBackend)(S),v=k.act,i=k.data,c=i.recharge_port,m=c&&c.mech,d=m&&m.cell,u=m&&m.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:u?"Mech status: "+u:"Mech status",textAlign:"center",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"sync",content:"Sync",onClick:function(){function s(){return v("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."})||!m&&(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No mech detected."})||(0,e.createComponentVNode)(2,t.ProgressBar,{value:m.health/m.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."})||!m&&(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(w,r,n){"use strict";r.__esModule=!0,r.MechaControlConsole=void 0;var e=n(96524),a=n(36121),t=n(17899),o=n(24674),f=n(45493),V=n(78234),y=r.MechaControlConsole=function(){function S(k,v){var i=(0,t.useBackend)(v),c=i.act,m=i.data,d=m.beacons,u=m.stored_data;return u.length?(0,e.createComponentVNode)(2,f.Window,{width:420,height:500,children:(0,e.createComponentVNode)(2,f.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:u.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,f.Window,{width:420,height:500,children:(0,e.createComponentVNode)(2,f.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 l(){return c("send_message",{mt:s.uid})}return l}(),children:"Message"}),(0,e.createComponentVNode)(2,o.Button,{icon:"eye",onClick:function(){function l(){return c("get_log",{mt:s.uid})}return l}(),children:"View Log"}),(0,e.createComponentVNode)(2,o.Button.Confirm,{color:"red",content:"Sabotage",icon:"bomb",onClick:function(){function l(){return c("shock",{mt:s.uid})}return l}()})],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(w,r,n){"use strict";r.__esModule=!0,r.MedicalRecords=void 0;var e=n(96524),a=n(78234),t=n(17899),o=n(24674),f=n(99665),V=n(45493),y=n(68159),S=n(27527),k=n(84537),v={Minor:"lightgray",Medium:"good",Harmful:"average","Dangerous!":"bad","BIOHAZARD THREAT!":"darkred"},i={"*Deceased*":"deceased","*SSD*":"ssd","Physically Unfit":"physically_unfit",Disabled:"disabled"},c=function(A,x){(0,f.modalOpen)(A,"edit",{field:x.edit,value:x.value})},m=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:v[E.severity],children:E.severity})]})})})},d=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,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,u):P===3?R=(0,e.createComponentVNode)(2,s):P===4?R=(0,e.createComponentVNode)(2,l):P===5?R=(0,e.createComponentVNode)(2,h):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,f.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,L),R]})})]})}return T}(),u=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"),U=W[0],K=W[1],H=(0,t.useLocalState)(x,"sortOrder",!0),X=H[0],Y=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(ie,ce){return F(ce)}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,ie){var ce=X?1:-1;return J[U].localeCompare(ie[U])*ce}).map(function(J){return(0,e.createComponentVNode)(2,o.Table.Row,{className:"MedicalRecords__listRow--"+i[J.p_stat],onClick:function(){function ie(){return M("view_record",{view_record:J.ref})}return ie}(),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}()})})]})})},l=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,p)})}),!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,C)})}),(0,e.createComponentVNode)(2,g)],4)],0)},p=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","image-rendering":"pixelated"}}),(0,e.createVNode)(1,"br"),"Photo #",R+1]},R)})]})},C=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,preserveWhitespace:!0,children:[(0,a.decodeHtmlEntities)(R.value),!!R.edit&&(0,e.createComponentVNode)(2,o.Button,{icon:"pen",ml:"0.5rem",mb:R.line_break?"1rem":"initial",onClick:function(){function 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,f.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,{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)})})})},h=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"),U=W[0],K=W[1],H=(0,t.useLocalState)(x,"sortOrder2",!0),X=H[0],Y=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(ie,ce){return F(ce)}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,ie){var ce=X?1:-1;return J[U].localeCompare(ie[U])*ce}).map(function(J){return(0,e.createComponentVNode)(2,o.Table.Row,{className:"MedicalRecords__listVirus--"+J.severity,onClick:function(){function ie(){return M("vir",{vir:J.D})}return ie}(),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:v[J.severity],children:J.severity})]},J.id)})]})})})})],4)},N=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 U(){M===F?D(!R):(j(F),D(!0))}return U}(),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 U(){M===F?D(!R):(j(F),D(!0))}return U}(),children:[W,M===F&&(0,e.createComponentVNode)(2,o.Icon,{name:R?"sort-up":"sort-down",ml:"0.25rem;"})]})})},L=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,f.modalRegisterBodyOverride)("virus",m)},68211:function(w,r,n){"use strict";r.__esModule=!0,r.MerchVendor=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=function(v,i){var c=(0,a.useBackend)(i),m=c.act,d=c.data,u=v.product,s=v.productImage,l=v.productCategory,p=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:u.name}),(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{disabled:u.price>p,icon:"shopping-cart",content:u.price,textAlign:"left",onClick:function(){function C(){return m("purchase",{name:u.name,category:l})}return C}()})})]})},V=function(v,i){var c=(0,a.useBackend)(i),m=c.data,d=(0,a.useLocalState)(i,"tabIndex",1),u=d[0],s=m.products,l=m.imagelist,p=["apparel","toy","decoration"];return(0,e.createComponentVNode)(2,t.Table,{children:s[p[u]].map(function(C){return(0,e.createComponentVNode)(2,f,{product:C,productImage:l[C.path],productCategory:p[u]},C.name)})})},y=r.MerchVendor=function(){function k(v,i){var c=(0,a.useBackend)(i),m=c.act,d=c.data,u=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 l(){return m("change")}return l}()})],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.",u!==null&&(0,e.createComponentVNode)(2,t.Box,{mt:"0.5rem",children:["Your balance is ",(0,e.createVNode)(1,"b",null,[u||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(v,i){var c=(0,a.useBackend)(i),m=c.data,d=(0,a.useLocalState)(i,"tabIndex",1),u=d[0],s=d[1],l=m.login_state;return(0,e.createComponentVNode)(2,t.Tabs,{children:[(0,e.createComponentVNode)(2,t.Tabs.Tab,{icon:"dice",selected:u===1,onClick:function(){function p(){return s(1)}return p}(),children:"Toys"}),(0,e.createComponentVNode)(2,t.Tabs.Tab,{icon:"flag",selected:u===2,onClick:function(){function p(){return s(2)}return p}(),children:"Decorations"})]})}},14162:function(w,r,n){"use strict";r.__esModule=!0,r.MiningVendor=void 0;var e=n(96524),a=n(78234),t=n(17899),o=n(24674),f=n(45493),V=["title","items"];function y(d,u){if(d==null)return{};var s={},l=Object.keys(d),p,C;for(C=0;C=0)&&(s[p]=d[p]);return s}var S={Alphabetical:function(){function d(u,s){return u-s}return d}(),Availability:function(){function d(u,s){return-(u.affordable-s.affordable)}return d}(),Price:function(){function d(u,s){return u.price-s.price}return d}()},k=r.MiningVendor=function(){function d(u,s){return(0,e.createComponentVNode)(2,f.Window,{width:400,height:455,children:(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,v),(0,e.createComponentVNode)(2,c),(0,e.createComponentVNode)(2,i)]})})})}return d}(),v=function(u,s){var l=(0,t.useBackend)(s),p=l.act,C=l.data,g=C.has_id,h=C.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 ",h.name,".",(0,e.createVNode)(1,"br"),"You have ",h.points.toLocaleString("en-US")," points."]}),(0,e.createComponentVNode)(2,o.Button,{icon:"eject",content:"Eject ID",style:{float:"right"},onClick:function(){function N(){return p("logoff")}return N}()}),(0,e.createComponentVNode)(2,o.Box,{style:{clear:"both"}})],4):"Please insert an ID in order to make purchases."})},i=function(u,s){var l=(0,t.useBackend)(s),p=l.act,C=l.data,g=C.has_id,h=C.id,N=C.items,b=(0,t.useLocalState)(s,"search",""),B=b[0],I=b[1],L=(0,t.useLocalState)(s,"sort","Alphabetical"),T=L[0],A=L[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(N).map(function(D,F){var W=Object.entries(D[1]).filter(j).map(function(U){return U[1].affordable=g&&h.points>=U[1].price,U[1]}).sort(S[T]);if(W.length!==0)return E&&(W=W.reverse()),P=!0,(0,e.createComponentVNode)(2,m,{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(u,s){var l=(0,t.useLocalState)(s,"search",""),p=l[0],C=l[1],g=(0,t.useLocalState)(s,"sort",""),h=g[0],N=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 L(T,A){return C(A)}return L}()})}),(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 L(T){return N(T)}return L}()})}),(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 L(){return I(!B)}return L}()})})]})})},m=function(u,s){var l=(0,t.useBackend)(s),p=l.act,C=l.data,g=u.title,h=u.items,N=y(u,V);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Collapsible,Object.assign({open:!0,title:g},N,{children:h.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:!C.has_id||C.id.points0?'\u0420\u0435\u0437\u0443\u043B\u044C\u0442\u0430\u0442\u044B \u043F\u043E\u0438\u0441\u043A\u0430 "'+u+'"':"\u0412\u0441\u0435 \u043C\u043E\u0434\u0438\u0444\u0438\u043A\u0430\u0446\u0438\u0438 - "+m.length,children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,o.Stack.Item,{children:m.filter(function(p){return p.name&&(u.length>0?p.name.toLowerCase().includes(u.toLowerCase())||p.desc.toLowerCase().includes(u.toLowerCase())||p.author.toLowerCase().includes(u.toLowerCase()):!0)}).map(function(p){return(0,e.createComponentVNode)(2,o.Collapsible,{title:p.name,children:[(0,e.createComponentVNode)(2,o.Section,{title:"\u0410\u0432\u0442\u043E\u0440\u044B",children:p.author}),(0,e.createComponentVNode)(2,o.Section,{title:"\u041E\u043F\u0438\u0441\u0430\u043D\u0438\u0435",children:p.desc})]},p.name)})})})})})],4)}return y}()},68977:function(w,r,n){"use strict";r.__esModule=!0,r.NTRecruiter=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.NTRecruiter=function(){function V(y,S){var k=(0,a.useBackend)(S),v=k.act,i=k.data,c=i.gamestatus,m=i.cand_name,d=i.cand_birth,u=i.cand_age,s=i.cand_species,l=i.cand_planet,p=i.cand_job,C=i.cand_records,g=i.cand_curriculum,h=i.total_curriculums,N=i.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 v("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 v("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 v("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,h,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,m,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,u,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,l,0)}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Requested Job",color:"silver",children:(0,e.createVNode)(1,"b",null,p,0)}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Employment Records",color:"silver",children:(0,e.createVNode)(1,"b",null,C,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 v("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 v("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,"/",h]})]})}),(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 v("back_to_menu")}return b}()})})]})})})}return V}()},17067:function(w,r,n){"use strict";r.__esModule=!0,r.Newscaster=void 0;var e=n(96524),a=n(28234),t=n(17899),o=n(24674),f=n(38424),V=n(45493),y=n(99665),S=n(84537),k=["icon","iconSpin","selected","security","onClick","title","children"],v=["name"];function i(I,L){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,m=["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"}},u=r.Newscaster=function(){function I(L,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,U=W===void 0?-1:W,K=(0,t.useLocalState)(T,"menuOpen",!1),H=K[0],X=K[1],Y=(0,t.useLocalState)(T,"viewingPhoto",""),J=Y[0],ie=Y[1],ce=(0,t.useLocalState)(T,"censorMode",!1),fe=ce[0],pe=ce[1],he;D===0||D===2?he=(0,e.createComponentVNode)(2,l):D===1&&(he=(0,e.createComponentVNode)(2,p));var te=F.reduce(function(Q,ae){return Q+ae.unread},0);return(0,e.createComponentVNode)(2,V.Window,{theme:M&&"security",width:800,height:600,children:[J?(0,e.createComponentVNode)(2,h):(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 Q(){return X(!H)}return Q}()}),(0,e.createComponentVNode)(2,s,{icon:"newspaper",title:"Headlines",selected:D===0,onClick:function(){function Q(){return x("headlines")}return Q}(),children:te>0&&(0,e.createComponentVNode)(2,o.Box,{className:"Newscaster__menuButton--unread",children:te>=10?"9+":te})}),(0,e.createComponentVNode)(2,s,{icon:"briefcase",title:"Job Openings",selected:D===1,onClick:function(){function Q(){return x("jobs")}return Q}()}),(0,e.createComponentVNode)(2,o.Divider)]}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:F.map(function(Q){return(0,e.createComponentVNode)(2,s,{icon:Q.icon,title:Q.name,selected:D===2&&F[U-1]===Q,onClick:function(){function ae(){return x("channel",{uid:Q.uid})}return ae}(),children:Q.unread>0&&(0,e.createComponentVNode)(2,o.Box,{className:"Newscaster__menuButton--unread",children:Q.unread>=10?"9+":Q.unread})},Q)})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:[(0,e.createComponentVNode)(2,o.Divider),(!!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 Q(){return(0,y.modalOpen)(T,"wanted_notice")}return Q}()}),(0,e.createComponentVNode)(2,s,{security:!0,icon:fe?"minus-square":"minus-square-o",title:"Censor Mode: "+(fe?"On":"Off"),mb:"0.5rem",onClick:function(){function Q(){return pe(!fe)}return Q}()}),(0,e.createComponentVNode)(2,o.Divider)],4),(0,e.createComponentVNode)(2,s,{icon:"pen-alt",title:"New Story",mb:"0.5rem",onClick:function(){function Q(){return(0,y.modalOpen)(T,"create_story")}return Q}()}),(0,e.createComponentVNode)(2,s,{icon:"plus-circle",title:"New Channel",onClick:function(){function Q(){return(0,y.modalOpen)(T,"create_channel")}return Q}()}),(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 Q(){return x("print_newspaper")}return Q}()}),(0,e.createComponentVNode)(2,s,{icon:P?"volume-mute":"volume-up",title:"Mute: "+(P?"On":"Off"),onClick:function(){function Q(){return x("toggle_mute")}return Q}()})]})]})}),(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,width:"100%",children:[(0,e.createComponentVNode)(2,S.TemporaryNotice),he]})]})})]})}return I}(),s=function(L,T){var A=(0,t.useBackend)(T),x=A.act,E=L.icon,M=E===void 0?"":E,j=L.iconSpin,P=L.selected,R=P===void 0?!1:P,D=L.security,F=D===void 0?!1:D,W=L.onClick,U=L.title,K=L.children,H=i(L,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:j,size:"2"}),(0,e.createComponentVNode)(2,o.Box,{className:"Newscaster__menuButton--title",children:U}),K]})))},l=function(L,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,U=(0,t.useLocalState)(T,"fullStories",[]),K=U[0],H=U[1],X=(0,t.useLocalState)(T,"censorMode",!1),Y=X[0],J=X[1],ie=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,C,{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:ie?ie.icon:"newspaper",mr:"0.5rem"}),ie?ie.name:"Headlines"],0),children:F.length>0?F.slice().reverse().map(function(ce){return!K.includes(ce.uid)&&ce.body.length+3>c?Object.assign({},ce,{body_short:ce.body.substr(0,c-4)+"..."}):ce}).map(function(ce,fe){return(0,e.createComponentVNode)(2,C,{story:ce},fe)}):(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."]})}),!!ie&&(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)([Y&&(0,e.createComponentVNode)(2,o.Button,{disabled:!!ie.admin&&!j,selected:ie.censored,icon:ie.censored?"comment-slash":"comment",content:ie.censored?"Uncensor Channel":"Censor Channel",mr:"0.5rem",onClick:function(){function ce(){return x("censor_channel",{uid:ie.uid})}return ce}()}),(0,e.createComponentVNode)(2,o.Button,{disabled:!R,icon:"cog",content:"Manage",onClick:function(){function ce(){return(0,y.modalOpen)(T,"manage_channel",{uid:ie.uid})}return ce}()})],0),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Description",children:ie.description||"N/A"}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Owner",children:ie.author||"N/A"}),!!j&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Ckey",children:ie.author_ckey}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Public",children:ie.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(ce,fe){return ce+fe.view_count},0).toLocaleString()]})]})})]})},p=function(L,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,C,{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?m.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(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."})]})]})},C=function(L,T){var A=(0,t.useBackend)(T),x=A.act,E=A.data,M=L.story,j=L.wanted,P=j===void 0?!1:j,R=E.is_admin,D=(0,t.useLocalState)(T,"fullStories",[]),F=D[0],W=D[1],U=(0,t.useLocalState)(T,"censorMode",!1),K=U[0],H=U[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 X(){return x("censor_story",{uid:M.uid})}return X}()})}),(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)(" |\xA0")],0),(0,e.createComponentVNode)(2,o.Icon,{name:"clock"})," ",(0,f.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,Y){return(0,e.createComponentVNode)(2,o.Box,{children:X||(0,e.createVNode)(1,"br")},Y)}),M.body_short&&(0,e.createComponentVNode)(2,o.Button,{content:"Read more..",mt:"0.5rem",onClick:function(){function X(){return W([].concat(F,[M.uid]))}return X}()}),(0,e.createComponentVNode)(2,o.Box,{clear:"right"})],0)})})},g=function(L,T){var A=L.name,x=i(L,v),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)))},h=function(L,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}()})]})},N=function(L,T){var A=(0,t.useBackend)(T),x=A.act,E=A.data,M=!!L.args.uid&&E.channels.filter(function(oe){return oe.uid===L.args.uid}).pop();if(L.id==="manage_channel"&&!M){(0,y.modalClose)(T);return}var j=L.id==="manage_channel",P=!!L.args.is_admin,R=L.args.scanned_user,D=(0,t.useLocalState)(T,"author",(M==null?void 0:M.author)||R||"Unknown"),F=D[0],W=D[1],U=(0,t.useLocalState)(T,"name",(M==null?void 0:M.name)||""),K=U[0],H=U[1],X=(0,t.useLocalState)(T,"description",(M==null?void 0:M.description)||""),Y=X[0],J=X[1],ie=(0,t.useLocalState)(T,"icon",(M==null?void 0:M.icon)||"newspaper"),ce=ie[0],fe=ie[1],pe=(0,t.useLocalState)(T,"isPublic",j?!!(M!=null&&M.public):!1),he=pe[0],te=pe[1],Q=(0,t.useLocalState)(T,"adminLocked",(M==null?void 0:M.admin)===1||!1),ae=Q[0],ee=Q[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 oe(ue,re){return W(re)}return oe}()})}),(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 oe(ue,re){return H(re)}return oe}()})}),(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:Y,onInput:function(){function oe(ue,re){return J(re)}return oe}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Icon",children:[(0,e.createComponentVNode)(2,o.Input,{disabled:!P,value:ce,width:"35%",mr:"0.5rem",onInput:function(){function oe(ue,re){return fe(re)}return oe}()}),(0,e.createComponentVNode)(2,o.Icon,{name:ce,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:he,icon:he?"toggle-on":"toggle-off",content:he?"Yes":"No",onClick:function(){function oe(){return te(!he)}return oe}()})}),P&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"CentComm Lock",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Button,{selected:ae,icon:ae?"lock":"lock-open",content:ae?"On":"Off",tooltip:"Locking this channel will make it editable by nobody but CentComm officers.",tooltipPosition:"top",onClick:function(){function oe(){return ee(!ae)}return oe}()})})]})}),(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 oe(){(0,y.modalAnswer)(T,L.id,"",{author:F,name:K.substr(0,49),description:Y.substr(0,128),icon:ce,public:he?1:0,admin_locked:ae?1:0})}return oe}()})]})},b=function(L,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=!!L.args.is_admin,F=L.args.scanned_user,W=j.slice().sort(function(oe,ue){if(R<0)return 0;var re=j[R-1];if(re.uid===oe.uid)return-1;if(re.uid===ue.uid)return 1}).filter(function(oe){return D||!oe.frozen&&(oe.author===F||!!oe.public)}),U=(0,t.useLocalState)(T,"author",F||"Unknown"),K=U[0],H=U[1],X=(0,t.useLocalState)(T,"channel",W.length>0?W[0].name:""),Y=X[0],J=X[1],ie=(0,t.useLocalState)(T,"title",""),ce=ie[0],fe=ie[1],pe=(0,t.useLocalState)(T,"body",""),he=pe[0],te=pe[1],Q=(0,t.useLocalState)(T,"adminLocked",!1),ae=Q[0],ee=Q[1];return(0,e.createComponentVNode)(2,o.Section,{m:"-1rem",pb:"1.5rem",title:"Create New Story",children:[(0,e.createComponentVNode)(2,o.Box,{mx:"0.5rem",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Author",children:(0,e.createComponentVNode)(2,o.Input,{disabled:!D,width:"100%",value:K,onInput:function(){function oe(ue,re){return H(re)}return oe}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Channel",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Dropdown,{selected:Y,options:W.map(function(oe){return oe.name}),mb:"0",width:"100%",onSelected:function(){function oe(ue){return J(ue)}return oe}()})}),(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:ce,onInput:function(){function oe(ue,re){return fe(re)}return oe}()})}),(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:he,onInput:function(){function oe(ue,re){return te(re)}return oe}()})}),(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 oe(){return x(M?"eject_photo":"attach_photo")}return oe}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Preview",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Section,{noTopPadding:!0,title:ce,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"}),he.split("\n").map(function(oe,ue){return(0,e.createComponentVNode)(2,o.Box,{children:oe||(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:ae,icon:ae?"lock":"lock-open",content:ae?"On":"Off",tooltip:"Locking this story will make it censorable by nobody but CentComm officers.",tooltipPosition:"top",onClick:function(){function oe(){return ee(!ae)}return oe}()})})]})}),(0,e.createComponentVNode)(2,o.Button.Confirm,{disabled:K.trim().length===0||Y.trim().length===0||ce.trim().length===0||he.trim().length===0,icon:"check",color:"good",content:"Submit",position:"absolute",right:"1rem",bottom:"-0.75rem",onClick:function(){function oe(){(0,y.modalAnswer)(T,"create_story","",{author:K,channel:Y,title:ce.substr(0,127),body:he.substr(0,1023),admin_locked:ae?1:0})}return oe}()})]})},B=function(L,T){var A=(0,t.useBackend)(T),x=A.act,E=A.data,M=E.photo,j=E.wanted,P=!!L.args.is_admin,R=L.args.scanned_user,D=(0,t.useLocalState)(T,"author",(j==null?void 0:j.author)||R||"Unknown"),F=D[0],W=D[1],U=(0,t.useLocalState)(T,"name",(j==null?void 0:j.title.substr(8))||""),K=U[0],H=U[1],X=(0,t.useLocalState)(T,"description",(j==null?void 0:j.body)||""),Y=X[0],J=X[1],ie=(0,t.useLocalState)(T,"adminLocked",(j==null?void 0:j.admin_locked)===1||!1),ce=ie[0],fe=ie[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(he,te){return W(te)}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(he,te){return H(te)}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:Y,maxLength:"512",rows:"4",onInput:function(){function pe(he,te){return J(te)}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:ce,icon:ce?"lock":"lock-open",content:ce?"On":"Off",tooltip:"Locking this wanted notice will make it editable by nobody but CentComm officers.",tooltipPosition:"top",onClick:function(){function pe(){return fe(!ce)}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||K.trim().length===0||Y.trim().length===0,icon:"check",color:"good",content:"Submit",position:"absolute",right:"1rem",bottom:"-0.75rem",onClick:function(){function pe(){(0,y.modalAnswer)(T,L.id,"",{author:F,name:K.substr(0,127),description:Y.substr(0,511),admin_locked:ce?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)},26148:function(w,r,n){"use strict";r.__esModule=!0,r.Noticeboard=void 0;var e=n(96524),a=n(78234),t=n(17899),o=n(24674),f=n(45493),V=r.Noticeboard=function(){function y(S,k){var v=(0,t.useBackend)(k),i=v.act,c=v.data,m=c.papers;return(0,e.createComponentVNode)(2,f.Window,{width:600,height:300,theme:"noticeboard",children:(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:m.map(function(d){return(0,e.createComponentVNode)(2,o.Stack.Item,{align:"center",width:"22.45%",height:"85%",onClick:function(){function u(){return i("interact",{paper:d.ref})}return u}(),onContextMenu:function(){function u(s){s.preventDefault(),i("showFull",{paper:d.ref})}return u}(),children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,fontSize:.75,title:d.name,children:(0,a.decodeHtmlEntities)(d.contents)})},d.ref)})})})})}return y}()},46940:function(w,r,n){"use strict";r.__esModule=!0,r.NuclearBomb=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.NuclearBomb=function(){function V(y,S){var k=(0,a.useBackend)(S),v=k.act,i=k.data;return i.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:i.authdisk?"eject":"id-card",selected:i.authdisk,content:i.diskname?i.diskname:"-----",tooltip:i.authdisk?"Eject Disk":"Insert Disk",onClick:function(){function c(){return v("auth")}return c}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Auth Code",children:(0,e.createComponentVNode)(2,t.Button,{icon:"key",disabled:!i.authdisk,selected:i.authcode,content:i.codemsg,onClick:function(){function c(){return v("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:i.anchored?"check":"times",selected:i.anchored,disabled:!i.authdisk,content:i.anchored?"YES":"NO",onClick:function(){function c(){return v("toggle_anchor")}return c}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Time Left",children:(0,e.createComponentVNode)(2,t.Button,{icon:"stopwatch",content:i.time,disabled:!i.authfull,tooltip:"Set Timer",onClick:function(){function c(){return v("set_time")}return c}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Safety",children:(0,e.createComponentVNode)(2,t.Button,{icon:i.safety?"check":"times",selected:i.safety,disabled:!i.authfull,content:i.safety?"ON":"OFF",tooltip:i.safety?"Disable Safety":"Enable Safety",onClick:function(){function c(){return v("toggle_safety")}return c}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Arm/Disarm",children:(0,e.createComponentVNode)(2,t.Button,{icon:(i.timer,"bomb"),disabled:i.safety||!i.authfull,color:"red",content:i.timer?"DISARM THE NUKE":"ARM THE NUKE",onClick:function(){function c(){return v("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 v("deploy")}return c}()})})})})}return V}()},35478:function(w,r,n){"use strict";r.__esModule=!0,r.NumberInputModal=void 0;var e=n(96524),a=n(14299),t=n(15113),o=n(68100),f=n(17899),V=n(24674),y=n(45493),S=r.NumberInputModal=function(){function v(i,c){var m=(0,f.useBackend)(c),d=m.act,u=m.data,s=u.init_value,l=u.large_buttons,p=u.message,C=p===void 0?"":p,g=u.timeout,h=u.title,N=(0,f.useLocalState)(c,"input",s),b=N[0],B=N[1],I=function(){function A(x){x!==b&&B(x)}return A}(),L=function(){function A(x){x!==b&&B(x)}return A}(),T=140+Math.max(Math.ceil(C.length/3),C.length>0&&l?5:0);return(0,e.createComponentVNode)(2,y.Window,{title:h,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&&d("submit",{entry:b}),E===o.KEY_ESCAPE&&d("cancel")}return A}(),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:C})}),(0,e.createComponentVNode)(2,V.Stack.Item,{children:(0,e.createComponentVNode)(2,k,{input:b,onClick:L,onChange:I})}),(0,e.createComponentVNode)(2,V.Stack.Item,{children:(0,e.createComponentVNode)(2,t.InputButtons,{input:b})})]})})})]})}return v}(),k=function(i,c){var m=(0,f.useBackend)(c),d=m.act,u=m.data,s=u.min_value,l=u.max_value,p=u.init_value,C=u.round_value,g=i.input,h=i.onClick,N=i.onChange,b=Math.round(g!==s?Math.max(g/2,s):l/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 I(){return h(s)}return I}(),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:!C,minValue:s,maxValue:l,onChange:function(){function I(L,T){return N(T)}return I}(),onEnter:function(){function I(L,T){return d("submit",{entry:T})}return I}(),value:g})}),(0,e.createComponentVNode)(2,V.Stack.Item,{children:(0,e.createComponentVNode)(2,V.Button,{disabled:g===l,icon:"angle-double-right",onClick:function(){function I(){return h(l)}return I}(),tooltip:g===l?"Max":"Max ("+l+")"})}),(0,e.createComponentVNode)(2,V.Stack.Item,{children:(0,e.createComponentVNode)(2,V.Button,{disabled:B,icon:"divide",onClick:function(){function I(){return h(b)}return I}(),tooltip:B?"Split":"Split ("+b+")"})}),(0,e.createComponentVNode)(2,V.Stack.Item,{children:(0,e.createComponentVNode)(2,V.Button,{disabled:g===p,icon:"redo",onClick:function(){function I(){return h(p)}return I}(),tooltip:p?"Reset ("+p+")":"Reset"})})]})}},98476:function(w,r,n){"use strict";r.__esModule=!0,r.OperatingComputer=void 0;var e=n(96524),a=n(36121),t=n(17899),o=n(45493),f=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"],v=r.OperatingComputer=function(){function d(u,s){var l=(0,t.useBackend)(s),p=l.act,C=l.data,g=C.hasOccupant,h=C.choice,N;return h?N=(0,e.createComponentVNode)(2,m):N=g?(0,e.createComponentVNode)(2,i):(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,f.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Tabs,{children:[(0,e.createComponentVNode)(2,f.Tabs.Tab,{selected:!h,icon:"user",onClick:function(){function b(){return p("choiceOff")}return b}(),children:"Patient"}),(0,e.createComponentVNode)(2,f.Tabs.Tab,{selected:!!h,icon:"cog",onClick:function(){function b(){return p("choiceOn")}return b}(),children:"Options"})]})}),(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,f.Section,{fill:!0,scrollable:!0,children:N})})]})})})}return d}(),i=function(u,s){var l=(0,t.useBackend)(s),p=l.data,C=p.occupant;return(0,e.createComponentVNode)(2,f.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,f.Section,{fill:!0,title:"Patient",children:(0,e.createComponentVNode)(2,f.LabeledList,{children:[(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Name",children:C.name}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Status",color:V[C.stat][0],children:V[C.stat][1]}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Health",children:(0,e.createComponentVNode)(2,f.ProgressBar,{min:"0",max:C.maxHealth,value:C.health/C.maxHealth,ranges:{good:[.5,1/0],average:[0,.5],bad:[-1/0,0]}})}),y.map(function(g,h){return(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:g[0]+" Damage",children:(0,e.createComponentVNode)(2,f.ProgressBar,{min:"0",max:"100",value:C[g[1]]/100,ranges:S,children:(0,a.round)(C[g[1]])},h)},h)}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Temperature",children:(0,e.createComponentVNode)(2,f.ProgressBar,{min:"0",max:C.maxTemp,value:C.bodyTemperature/C.maxTemp,color:k[C.temperatureSuitability+3],children:[(0,a.round)(C.btCelsius),"\xB0C, ",(0,a.round)(C.btFaren),"\xB0F"]})}),!!C.hasBlood&&(0,e.createFragment)([(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Blood Level",children:(0,e.createComponentVNode)(2,f.ProgressBar,{min:"0",max:C.bloodMax,value:C.bloodLevel/C.bloodMax,ranges:{bad:[-1/0,.6],average:[.6,.9],good:[.6,1/0]},children:[C.bloodPercent,"%, ",C.bloodLevel,"cl"]})}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Pulse",children:[C.pulse," BPM"]})],4)]})})}),(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Section,{title:"Current Procedure",level:"2",children:C.inSurgery?(0,e.createComponentVNode)(2,f.LabeledList,{children:[(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Procedure",children:C.surgeryName}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Next Step",children:C.stepName})]}):(0,e.createComponentVNode)(2,f.Box,{color:"label",children:"No procedure ongoing."})})})]})},c=function(){return(0,e.createComponentVNode)(2,f.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,align:"center",textAlign:"center",color:"label",children:[(0,e.createComponentVNode)(2,f.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,e.createVNode)(1,"br"),"No patient detected."]})})},m=function(u,s){var l=(0,t.useBackend)(s),p=l.act,C=l.data,g=C.verbose,h=C.health,N=C.healthAlarm,b=C.oxy,B=C.oxyAlarm,I=C.crit;return(0,e.createComponentVNode)(2,f.LabeledList,{children:[(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Loudspeaker",children:(0,e.createComponentVNode)(2,f.Button,{selected:g,icon:g?"toggle-on":"toggle-off",content:g?"On":"Off",onClick:function(){function L(){return p(g?"verboseOff":"verboseOn")}return L}()})}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Health Announcer",children:(0,e.createComponentVNode)(2,f.Button,{selected:h,icon:h?"toggle-on":"toggle-off",content:h?"On":"Off",onClick:function(){function L(){return p(h?"healthOff":"healthOn")}return L}()})}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Health Announcer Threshold",children:(0,e.createComponentVNode)(2,f.Knob,{bipolar:!0,minValue:-100,maxValue:100,value:N,stepPixelSize:5,ml:"0",onChange:function(){function L(T,A){return p("health_adj",{new:A})}return L}()})}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Oxygen Alarm",children:(0,e.createComponentVNode)(2,f.Button,{selected:b,icon:b?"toggle-on":"toggle-off",content:b?"On":"Off",onClick:function(){function L(){return p(b?"oxyOff":"oxyOn")}return L}()})}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Oxygen Alarm Threshold",children:(0,e.createComponentVNode)(2,f.Knob,{bipolar:!0,minValue:-100,maxValue:100,value:B,stepPixelSize:5,ml:"0",onChange:function(){function L(T,A){return p("oxy_adj",{new:A})}return L}()})}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Critical Alert",children:(0,e.createComponentVNode)(2,f.Button,{selected:I,icon:I?"toggle-on":"toggle-off",content:I?"On":"Off",onClick:function(){function L(){return p(I?"critOff":"critOn")}return L}()})})]})}},98702:function(w,r,n){"use strict";r.__esModule=!0,r.Orbit=void 0;var e=n(96524),a=n(78234),t=n(17899),o=n(24674),f=n(45493),V=n(28234);function y(l,p){var C=typeof Symbol!="undefined"&&l[Symbol.iterator]||l["@@iterator"];if(C)return(C=C.call(l)).next.bind(C);if(Array.isArray(l)||(C=S(l))||p&&l&&typeof l.length=="number"){C&&(l=C);var g=0;return function(){return g>=l.length?{done:!0}:{done:!1,value:l[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(l,p){if(l){if(typeof l=="string")return k(l,p);var C=Object.prototype.toString.call(l).slice(8,-1);if(C==="Object"&&l.constructor&&(C=l.constructor.name),C==="Map"||C==="Set")return Array.from(l);if(C==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(C))return k(l,p)}}function k(l,p){(p==null||p>l.length)&&(p=l.length);for(var C=0,g=new Array(p);CC},m=function(p,C){var g=p.name,h=C.name;if(!g||!h)return 0;var N=g.match(v),b=h.match(v);if(N&&b&&g.replace(v,"")===h.replace(v,"")){var B=parseInt(N[1],10),I=parseInt(b[1],10);return B-I}return c(g,h)},d=function(p,C){var g=p.searchText,h=p.source,N=p.title,b=p.color,B=p.sorted,I=h.filter(i(g));return B&&I.sort(m),h.length>0&&(0,e.createComponentVNode)(2,o.Section,{title:N+" - ("+h.length+")",children:I.map(function(L){return(0,e.createComponentVNode)(2,u,{thing:L,color:b},L.name)})})},u=function(p,C){var g=(0,t.useBackend)(C),h=g.act,N=p.color,b=p.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 h("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 l(p,C){for(var g=(0,t.useBackend)(C),h=g.act,N=g.data,b=N.alive,B=N.antagonists,I=N.highlights,L=N.response_teams,T=N.auto_observe,A=N.dead,x=N.ssd,E=N.ghosts,M=N.misc,j=N.npcs,P=(0,t.useLocalState)(C,"searchText",""),R=P[0],D=P[1],F={},W=y(B),U;!(U=W()).done;){var K=U.value;F[K.antag]===void 0&&(F[K.antag]=[]),F[K.antag].push(K)}var H=Object.entries(F);H.sort(function(Y,J){return c(Y[0],J[0])});var X=function(){function Y(J){for(var ie=0,ce=[H.map(function(he){var te=he[0],Q=he[1];return Q}),I,b,E,x,A,j,M];ie0&&(0,e.createComponentVNode)(2,o.Section,{title:"Antagonists",children:H.map(function(Y){var J=Y[0],ie=Y[1];return(0,e.createComponentVNode)(2,o.Section,{title:J+" - ("+ie.length+")",level:2,children:ie.filter(i(R)).sort(m).map(function(ce){return(0,e.createComponentVNode)(2,u,{color:"bad",thing:ce},ce.name)})},J)})}),I.length>0&&(0,e.createComponentVNode)(2,d,{title:"Highlights",source:I,searchText:R,color:"teal"}),(0,e.createComponentVNode)(2,d,{title:"Response Teams",source:L,searchText:R,color:"purple"}),(0,e.createComponentVNode)(2,d,{title:"Alive",source:b,searchText:R,color:"good"}),(0,e.createComponentVNode)(2,d,{title:"Ghosts",source:E,searchText:R,color:"grey"}),(0,e.createComponentVNode)(2,d,{title:"SSD",source:x,searchText:R,color:"grey"}),(0,e.createComponentVNode)(2,d,{title:"Dead",source:A,searchText:R,sorted:!1}),(0,e.createComponentVNode)(2,d,{title:"NPCs",source:j,searchText:R,sorted:!1}),(0,e.createComponentVNode)(2,d,{title:"Misc",source:M,searchText:R,sorted:!1})]})})}return l}()},74015:function(w,r,n){"use strict";r.__esModule=!0,r.OreRedemption=void 0;var e=n(96524),a=n(28234),t=n(17899),o=n(24674),f=n(45493),V=n(81856);function y(l){if(l==null)throw new TypeError("Cannot destructure "+l)}var S=(0,V.createLogger)("OreRedemption"),k=function(p){return p.toLocaleString("en-US")+" pts"},v=r.OreRedemption=function(){function l(p,C){return(0,e.createComponentVNode)(2,f.Window,{width:490,height:750,children:(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,i,{height:"100%"})}),(0,e.createComponentVNode)(2,c),(0,e.createComponentVNode)(2,m)]})})})}return l}(),i=function(p,C){var g=(0,t.useBackend)(C),h=g.act,N=g.data,b=N.id,B=N.points,I=N.disk,L=Object.assign({},(y(p),p));return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Section,Object.assign({},L,{children:[(0,e.createComponentVNode)(2,o.Box,{color:"average",textAlign:"center",children:[(0,e.createComponentVNode)(2,o.Icon,{name:"exclamation-triangle",mr:"0.5rem"}),"This machine only accepts ore. Gibtonite is not accepted."]}),(0,e.createComponentVNode)(2,o.Divider),(0,e.createComponentVNode)(2,o.LabeledList,{children:(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"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 h("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 h("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(p,C){var g=(0,t.useBackend)(C),h=g.act,N=g.data,b=N.sheets,B=Object.assign({},(y(p),p));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(I){return(0,e.createComponentVNode)(2,u,{ore:I},I.id)})]})))})},m=function(p,C){var g=(0,t.useBackend)(C),h=g.act,N=g.data,b=N.alloys,B=Object.assign({},(y(p),p));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(I){return(0,e.createComponentVNode)(2,s,{ore:I},I.id)})]})))})},d=function(p,C){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:p.title}),(g=p.columns)==null?void 0:g.map(function(h){return(0,e.createComponentVNode)(2,o.Stack.Item,{basis:h[1],textAlign:"center",color:"label",bold:!0,children:h[0]},h)})]})})},u=function(p,C){var g=(0,t.useBackend)(C),h=g.act,N=p.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,I){return h(N.value?"sheet":"alloy",{id:N.id,amount:I})}return b}()})})]})})},s=function(p,C){var g=(0,t.useBackend)(C),h=g.act,N=p.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,I){return h(N.value?"sheet":"alloy",{id:N.id,amount:I})}return b}()})})]})})}},48824:function(w,r,n){"use strict";r.__esModule=!0,r.PAI=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=n(91807),V=n(70752),y=function(v){var i;try{i=V("./"+v+".js")}catch(m){if(m.code==="MODULE_NOT_FOUND")return(0,f.routingError)("notFound",v);throw m}var c=i[v];return c||(0,f.routingError)("missingExport",v)},S=r.PAI=function(){function k(v,i){var c=(0,a.useBackend)(i),m=c.act,d=c.data,u=d.app_template,s=d.app_icon,l=d.app_title,p=y(u);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}),l,u!=="pai_main_menu"&&(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{ml:2,mb:0,content:"Back",icon:"arrow-left",onClick:function(){function C(){return m("Back")}return C}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Home",icon:"arrow-up",onClick:function(){function C(){return m("MASTER_back")}return C}()})],4)]}),children:(0,e.createComponentVNode)(2,p)})})})})})}return k}()},41565:function(w,r,n){"use strict";r.__esModule=!0,r.PDA=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=n(91807),V=n(59395),y=function(c){var m;try{m=V("./"+c+".js")}catch(u){if(u.code==="MODULE_NOT_FOUND")return(0,f.routingError)("notFound",c);throw u}var d=m[c];return d||(0,f.routingError)("missingExport",c)},S=r.PDA=function(){function i(c,m){var d=(0,a.useBackend)(m),u=d.act,s=d.data,l=s.app,p=s.owner;if(!p)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 C=y(l.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:l.icon,mr:1}),l.name]}),children:(0,e.createComponentVNode)(2,C)})}),(0,e.createComponentVNode)(2,t.Stack.Item,{mt:7.5,children:(0,e.createComponentVNode)(2,v)})]})})})}return i}(),k=function(c,m){var d=(0,a.useBackend)(m),u=d.act,s=d.data,l=s.idInserted,p=s.idLink,C=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 h(){return u("Authenticate")}return h}(),content:l?p:"No ID Inserted"})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"sd-card",color:"transparent",onClick:function(){function h(){return u("Eject")}return h}(),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:C})]})},v=function(c,m){var d=(0,a.useBackend)(m),u=d.act,s=d.data,l=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:[!!l.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:l.has_back?"white":"disabled",icon:"arrow-alt-circle-left-o",onClick:function(){function p(){return u("Back")}return p}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{basis:l.has_back?"33%":"100%",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,className:"PDA__footer__button",color:"transparent",iconColor:l.is_home?"disabled":"white",icon:"home",onClick:function(){function p(){u("Home")}return p}()})})]})})}},78704:function(w,r,n){"use strict";r.__esModule=!0,r.Pacman=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=n(92986),V=r.Pacman=function(){function y(S,k){var v=(0,a.useBackend)(k),i=v.act,c=v.data,m=c.active,d=c.anchored,u=c.broken,s=c.emagged,l=c.fuel_type,p=c.fuel_usage,C=c.fuel_stored,g=c.fuel_cap,h=c.is_ai,N=c.tmp_current,b=c.tmp_max,B=c.tmp_overheat,I=c.output_max,L=c.power_gen,T=c.output_set,A=c.has_fuel,x=C/g,E=N/b,M=T*L,j=Math.round(C/p),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:[(u||!d)&&(0,e.createComponentVNode)(2,t.Section,{title:"Status",children:[!!u&&(0,e.createComponentVNode)(2,t.Box,{color:"orange",children:"The generator is malfunctioning!"}),!u&&!d&&(0,e.createComponentVNode)(2,t.Box,{color:"orange",children:"The generator needs to be anchored to the floor with a wrench."})]}),!u&&!!d&&(0,e.createVNode)(1,"div",null,[(0,e.createComponentVNode)(2,t.Section,{title:"Status",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:m?"power-off":"times",content:m?"On":"Off",tooltip:"Toggles the generator on/off. Requires fuel.",tooltipPosition:"left",disabled:!A,selected:m,onClick:function(){function D(){return i("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 i("change_power",{change_power:W})}return D}()}),"(",(0,f.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:m||h||!A,onClick:function(){function D(){return i("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:l}),(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(C/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:[p/1e3," dm\xB3/s"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Fuel depletion",children:[!!A&&(p?R:"N/A"),!A&&(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Out of fuel"})]})]})})]})})],4)]})})}return y}()},6887:function(w,r,n){"use strict";r.__esModule=!0,r.PanDEMIC=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.PanDEMIC=function(){function d(u,s){var l=(0,a.useBackend)(s),p=l.data,C=p.beakerLoaded,g=p.beakerContainsBlood,h=p.beakerContainsVirus,N=p.resistances,b=N===void 0?[]:N,B;return C?g?g&&!h&&(B=(0,e.createFragment)([(0,e.createTextVNode)("No disease detected in provided blood sample.")],4)):B=(0,e.createFragment)([(0,e.createTextVNode)("No blood sample found in the loaded container.")],4):B=(0,e.createFragment)([(0,e.createTextVNode)("No container loaded.")],4),(0,e.createComponentVNode)(2,o.Window,{width:575,height:510,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[B&&(0,e.createComponentVNode)(2,t.Section,{title:"Container Information",buttons:(0,e.createComponentVNode)(2,V),children:[(0,e.createComponentVNode)(2,t.NoticeBox,{children:B}),(b==null?void 0:b.length)>0&&(0,e.createComponentVNode)(2,m)]}),!!h&&(0,e.createComponentVNode)(2,k)]})})})}return d}(),V=function(u,s){var l=(0,a.useBackend)(s),p=l.act,C=l.data,g=C.beakerLoaded;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{icon:"eject",content:"Eject",disabled:!g,onClick:function(){function h(){return p("eject_beaker")}return h}()}),(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"trash-alt",confirmIcon:"eraser",content:"Destroy",confirmContent:"Destroy",disabled:!g,onClick:function(){function h(){return p("destroy_eject_beaker")}return h}()})],4)},y=function(u,s){var l=(0,a.useBackend)(s),p=l.act,C=l.data,g=C.beakerContainsVirus,h=u.strain,N=h.commonName,b=h.description,B=h.diseaseAgent,I=h.bloodDNA,L=h.bloodType,T=h.possibleTreatments,A=h.transmissionRoute,x=h.isAdvanced,E=(0,e.createFragment)([(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Blood DNA",children:I?(0,e.createVNode)(1,"span",null,I,0,{style:{"font-family":"'Courier New', monospace"}}):"Undetectable"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Blood Type",children:(0,e.createVNode)(1,"div",null,null,1,{dangerouslySetInnerHTML:{__html:L!=null?L:"Undetectable"}})})],4);if(!g)return(0,e.createComponentVNode)(2,t.LabeledList,{children:E});var M;return x&&(N!=null&&N!=="Unknown"?M=(0,e.createComponentVNode)(2,t.Button,{icon:"print",content:"Print Release Forms",onClick:function(){function j(){return p("print_release_forms",{strain_index:u.strainIndex})}return j}(),style:{"margin-left":"auto"}}):M=(0,e.createComponentVNode)(2,t.Button,{icon:"pen",content:"Name Disease",onClick:function(){function j(){return p("name_strain",{strain_index:u.strainIndex})}return j}(),style:{"margin-left":"auto"}})),(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Common Name",className:"common-name-label",children:(0,e.createComponentVNode)(2,t.Stack,{horizontal:!0,align:"center",children:[N!=null?N:"Unknown",M]})}),b&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Description",children:b}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Disease Agent",children:B}),E,(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Spread Vector",children:A!=null?A:"None"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Possible Cures",children:T!=null?T:"None"})]})},S=function(u,s){var l,p=(0,a.useBackend)(s),C=p.act,g=p.data,h=!!g.synthesisCooldown,N=(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{icon:h?"spinner":"clone",iconSpin:h,content:"Clone",disabled:h,onClick:function(){function b(){return C("clone_strain",{strain_index:u.strainIndex})}return b}()}),u.sectionButtons],0);return(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:(l=u.sectionTitle)!=null?l:"Strain Information",buttons:N,children:(0,e.createComponentVNode)(2,y,{strain:u.strain,strainIndex:u.strainIndex})})})},k=function(u,s){var l,p=(0,a.useBackend)(s),C=p.act,g=p.data,h=g.selectedStrainIndex,N=g.strains,b=N[h-1];if(N.length===0)return(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Container Information",buttons:(0,e.createComponentVNode)(2,V),children:(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No disease detected in provided blood sample."})})});if(N.length===1){var B;return(0,e.createFragment)([(0,e.createComponentVNode)(2,S,{strain:N[0],strainIndex:1,sectionButtons:(0,e.createComponentVNode)(2,V)}),((B=N[0].symptoms)==null?void 0:B.length)>0&&(0,e.createComponentVNode)(2,i,{strain:N[0]})],0)}var I=(0,e.createComponentVNode)(2,V);return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Culture Information",fill:!0,buttons:I,children:(0,e.createComponentVNode)(2,t.Flex,{direction:"column",style:{height:"100%"},children:[(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Tabs,{children:N.map(function(L,T){var A;return(0,e.createComponentVNode)(2,t.Tabs.Tab,{icon:"virus",selected:h-1===T,onClick:function(){function x(){return C("switch_strain",{strain_index:T+1})}return x}(),children:(A=L.commonName)!=null?A:"Unknown"},T)})})}),(0,e.createComponentVNode)(2,S,{strain:b,strainIndex:h}),((l=b.symptoms)==null?void 0:l.length)>0&&(0,e.createComponentVNode)(2,i,{className:"remove-section-bottom-padding",strain:b})]})})})},v=function(u){return u.reduce(function(s,l){return s+l},0)},i=function(u){var s=u.strain.symptoms;return(0,e.createComponentVNode)(2,t.Flex.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Infection Symptoms",fill:!0,className:u.className,children:(0,e.createComponentVNode)(2,t.Table,{className:"symptoms-table",children:[(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Name"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Stealth"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Resistance"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Stage Speed"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Transmissibility"})]}),s.map(function(l,p){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:l.name}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:l.stealth}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:l.resistance}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:l.stageSpeed}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:l.transmissibility})]},p)}),(0,e.createComponentVNode)(2,t.Table.Row,{className:"table-spacer"}),(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{style:{"font-weight":"bold"},children:"Total"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:v(s.map(function(l){return l.stealth}))}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:v(s.map(function(l){return l.resistance}))}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:v(s.map(function(l){return l.stageSpeed}))}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:v(s.map(function(l){return l.transmissibility}))})]})]})})})},c=["flask","vial","eye-dropper"],m=function(u,s){var l=(0,a.useBackend)(s),p=l.act,C=l.data,g=C.synthesisCooldown,h=C.beakerContainsVirus,N=C.resistances;return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Antibodies",fill:!0,children:(0,e.createComponentVNode)(2,t.Stack,{horizontal:!0,wrap:!0,children:N.map(function(b,B){return(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:c[B%c.length],disabled:!!g,onClick:function(){function I(){return p("clone_vaccine",{resistance_index:B+1})}return I}(),mr:"0.5em"}),b]},B)})})})})}},78643:function(w,r,n){"use strict";r.__esModule=!0,r.ParticleAccelerator=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.ParticleAccelerator=function(){function V(y,S){var k=(0,a.useBackend)(S),v=k.act,i=k.data,c=i.assembled,m=i.power,d=i.strength,u=i.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 v("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:m?"power-off":"times",content:m?"On":"Off",selected:m,disabled:!c,onClick:function(){function s(){return v("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 v("remove_strength")}return s}(),mr:"4px"}),d,(0,e.createComponentVNode)(2,t.Button,{icon:"forward",disabled:!c||d===u,onClick:function(){function s(){return v("add_strength")}return s}(),ml:"4px"})]})]})})})})}return V}()},34026:function(w,r,n){"use strict";r.__esModule=!0,r.PdaPainter=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.PdaPainter=function(){function k(v,i){var c=(0,a.useBackend)(i),m=c.data,d=m.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(v,i){var c=(0,a.useBackend)(i),m=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 m("insert_pda")}return d}()})]})})})},y=function(v,i){var c=(0,a.useBackend)(i),m=c.act,d=c.data,u=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(u).map(function(s){return(0,e.createComponentVNode)(2,t.Table.Row,{onClick:function(){function l(){return m("choose_pda",{selectedPda:s})}return l}(),children:[(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,children:(0,e.createVNode)(1,"img",null,null,1,{src:"data:image/png;base64,"+u[s][0],style:{"vertical-align":"middle",width:"32px",margin:"0px","margin-left":"0px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:s})]},s)})})})})]})},S=function(v,i){var c=(0,a.useBackend)(i),m=c.act,d=c.data,u=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,"+u,style:{"vertical-align":"middle",width:"160px",margin:"0px","margin-left":"0px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"eject",content:"Eject",color:"green",onClick:function(){function l(){return m("eject_pda")}return l}()}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"paint-roller",content:"Paint PDA",onClick:function(){function l(){return m("paint_pda")}return l}()})]}),(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","image-rendering":"pixelated"}})})]})}},81378:function(w,r,n){"use strict";r.__esModule=!0,r.PersonalCrafting=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.PersonalCrafting=function(){function S(k,v){var i=(0,a.useBackend)(v),c=i.act,m=i.data,d=m.busy,u=m.category,s=m.display_craftable_only,l=m.display_compact,p=m.prev_cat,C=m.next_cat,g=m.subcategory,h=m.prev_subcat,N=m.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:u,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:l?"check-square-o":"square-o",selected:l,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:p,icon:"arrow-left",onClick:function(){function b(){return c("backwardCat")}return b}()}),(0,e.createComponentVNode)(2,t.Button,{content:C,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:h,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}()})]}),l?(0,e.createComponentVNode)(2,V):(0,e.createComponentVNode)(2,y)]})]})})}return S}(),V=function(k,v){var i=(0,a.useBackend)(v),c=i.act,m=i.data,d=m.display_craftable_only,u=m.can_craft,s=m.cant_craft;return(0,e.createComponentVNode)(2,t.Box,{mt:1,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[u.map(function(l){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:l.name,children:[(0,e.createComponentVNode)(2,t.Button,{icon:"hammer",content:"Craft",onClick:function(){function p(){return c("make",{make:l.ref})}return p}()}),l.catalyst_text&&(0,e.createComponentVNode)(2,t.Button,{tooltip:l.catalyst_text,content:"Catalysts",color:"transparent"}),(0,e.createComponentVNode)(2,t.Button,{tooltip:l.req_text,content:"Requirements",color:"transparent"}),l.tool_text&&(0,e.createComponentVNode)(2,t.Button,{tooltip:l.tool_text,content:"Tools",color:"transparent"})]},l.name)}),!d&&s.map(function(l){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:l.name,children:[(0,e.createComponentVNode)(2,t.Button,{icon:"hammer",content:"Craft",disabled:!0}),l.catalyst_text&&(0,e.createComponentVNode)(2,t.Button,{tooltip:l.catalyst_text,content:"Catalysts",color:"transparent"}),(0,e.createComponentVNode)(2,t.Button,{tooltip:l.req_text,content:"Requirements",color:"transparent"}),l.tool_text&&(0,e.createComponentVNode)(2,t.Button,{tooltip:l.tool_text,content:"Tools",color:"transparent"})]},l.name)})]})})},y=function(k,v){var i=(0,a.useBackend)(v),c=i.act,m=i.data,d=m.display_craftable_only,u=m.can_craft,s=m.cant_craft;return(0,e.createComponentVNode)(2,t.Box,{mt:1,children:[u.map(function(l){return(0,e.createComponentVNode)(2,t.Section,{title:l.name,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"hammer",content:"Craft",onClick:function(){function p(){return c("make",{make:l.ref})}return p}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[l.catalyst_text&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Catalysts",children:l.catalyst_text}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Requirements",children:l.req_text}),l.tool_text&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Tools",children:l.tool_text})]})},l.name)}),!d&&s.map(function(l){return(0,e.createComponentVNode)(2,t.Section,{title:l.name,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"hammer",content:"Craft",disabled:!0}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[l.catalyst_text&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Catalysts",children:l.catalyst_text}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Requirements",children:l.req_text}),l.tool_text&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Tools",children:l.tool_text})]})},l.name)})]})}},58792:function(w,r,n){"use strict";r.__esModule=!0,r.Photocopier=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.Photocopier=function(){function S(k,v){var i=(0,a.useBackend)(v),c=i.act,m=i.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:m.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:m.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:!m.copyitem&&!m.mob,content:m.copyitem?m.copyitem:m.mob?m.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:!m.folder,content:m.folder?m.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,v){var i=(0,a.useBackend)(v),c=i.act,m=i.data,d=m.issilicon;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"copy",float:"center",textAlign:"center",content:"Copy",onClick:function(){function u(){return c("copy")}return u}()}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"file-import",float:"center",textAlign:"center",content:"Scan",onClick:function(){function u(){return c("scandocument")}return u}()}),!!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 u(){return c("ai_text")}return u}()}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"image",color:"green",float:"center",textAlign:"center",content:"Print Image",onClick:function(){function u(){return c("ai_pic")}return u}()})],4)],0)},y=function(k,v){var i=(0,a.useBackend)(v),c=i.act,m=i.data;return(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Scanned Files",children:m.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:m.toner<=0,onClick:function(){function u(){return c("filecopy",{uid:d.uid})}return u}()}),(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"trash-alt",content:"Delete",color:"bad",onClick:function(){function u(){return c("deletefile",{uid:d.uid})}return u}()})]})},d.name)})})}},45642:function(w,r,n){"use strict";r.__esModule=!0,r.Photocopier220=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=n(50640),V=n(74041),y=n(78234);function S(m,d){var u=typeof Symbol!="undefined"&&m[Symbol.iterator]||m["@@iterator"];if(u)return(u=u.call(m)).next.bind(u);if(Array.isArray(m)||(u=k(m))||d&&m&&typeof m.length=="number"){u&&(m=u);var s=0;return function(){return s>=m.length?{done:!0}:{done:!1,value:m[s++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function k(m,d){if(m){if(typeof m=="string")return v(m,d);var u=Object.prototype.toString.call(m).slice(8,-1);if(u==="Object"&&m.constructor&&(u=m.constructor.name),u==="Map"||u==="Set")return Array.from(m);if(u==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(u))return v(m,d)}}function v(m,d){(d==null||d>m.length)&&(d=m.length);for(var u=0,s=new Array(d);um?this.substring(0,m)+"...":this};var i=function(d,u){u===void 0&&(u="");var s=(0,y.createSearch)(u,function(l){return l.altername});return(0,V.flow)([(0,f.filter)(function(l){return l==null?void 0:l.altername}),u&&(0,f.filter)(s),(0,f.sortBy)(function(l){return l.id})])(d)},c=r.Photocopier220=function(){function m(d,u){for(var s=(0,a.useBackend)(u),l=s.act,p=s.data,C=p.copies,g=p.maxcopies,h=(0,a.useLocalState)(u,"searchText",""),N=h[0],b=h[1],B=i((0,f.sortBy)(function(P){return P.category})(p.forms||[]),N),I=[],L=S(B),T;!(T=L()).done;){var A=T.value;I.includes(A.category)||I.push(A.category)}var x=(0,a.useLocalState)(u,"number",0),E=x[0],M=x[1],j;return p.category===""?j=B:j=B.filter(function(P){return P.category===p.category}),(0,e.createComponentVNode)(2,o.Window,{width:550,height:575,theme:p.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:p.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:p.form_id===""?"\u041D\u0435 \u0432\u044B\u0431\u0440\u0430\u043D\u0430":p.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:!p.copyitem&&!p.mob,icon:p.copyitem||p.mob?"eject":"times",content:p.copyitem?p.copyitem:p.mob?"\u0416\u043E\u043F\u0430 "+p.mob+"!":"\u0421\u043B\u043E\u0442 \u0434\u043B\u044F \u0434\u043E\u043A\u0443\u043C\u0435\u043D\u0442\u0430",onClick:function(){function P(){return l("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:!p.folder,icon:p.folder?"eject":"times",content:p.folder?p.folder:"\u0421\u043B\u043E\u0442 \u0434\u043B\u044F \u043F\u0430\u043F\u043A\u0438",onClick:function(){function P(){return l("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:p.toner===0||p.form===null,content:"\u041F\u0435\u0447\u0430\u0442\u044C",onClick:function(){function P(){return l("print_form")}return P}()})}),!!p.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:p.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 l("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:p.toner===0||!p.copyitem&&!p.mob,onClick:function(){function P(){return l("copy")}return P}()})}),!!p.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:p.toner===0,onClick:function(){function P(){return l("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:C,stepPixelSize:10,onChange:function(){function P(R,D){return l("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:!p.category,onClick:function(){function P(){return l("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:p.category===P,onClick:function(){function R(){return l("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:p.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:p.form_id===P.id,onClick:function(){function R(){return l("choose_form",{path:P.path,id:P.id})}return R}()})},P.path)})})})]})})})}return m}()},27902:function(w,r,n){"use strict";r.__esModule=!0,r.PoolController=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=["tempKey"];function V(v,i){if(v==null)return{};var c={},m=Object.keys(v),d,u;for(u=0;u=0)&&(c[d]=v[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(i,c){var m=i.tempKey,d=V(i,f),u=y[m];if(!u)return null;var s=(0,a.useBackend)(c),l=s.data,p=s.act,C=l.currentTemp,g=u.label,h=u.icon,N=m===C,b=function(){p("setTemp",{temp:m})};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:h}),g]})))},k=r.PoolController=function(){function v(i,c){for(var m=(0,a.useBackend)(c),d=m.data,u=d.emagged,s=d.currentTemp,l=y[s]||y.normal,p=l.label,C=l.color,g=[],h=0,N=Object.entries(y);h50?"battery-half":"battery-quarter")||C==="C"&&"bolt"||C==="F"&&"battery-full"||C==="M"&&"slash",color:C==="N"&&(g>50?"yellow":"red")||C==="C"&&"yellow"||C==="F"&&"green"||C==="M"&&"orange"}),(0,e.createComponentVNode)(2,S.Box,{inline:!0,width:"36px",textAlign:"right",children:(0,o.toFixed)(g)+"%"})],4)};u.defaultHooks=f.pureComponentHooks;var s=function(p){var C,g,h=p.status;switch(h){case"AOn":C=!0,g=!0;break;case"AOff":C=!0,g=!1;break;case"On":C=!1,g=!0;break;case"Off":C=!1,g=!1;break}var N=(g?"On":"Off")+(" ["+(C?"auto":"manual")+"]");return(0,e.createComponentVNode)(2,S.ColorBox,{color:g?"good":"bad",content:C?void 0:"M",title:N})};s.defaultHooks=f.pureComponentHooks},27262:function(w,r,n){"use strict";r.__esModule=!0,r.PrisonerImplantManager=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(91097),f=n(99665),V=n(68159),y=n(27527),S=n(45493),k=r.PrisonerImplantManager=function(){function v(i,c){var m=(0,a.useBackend)(c),d=m.act,u=m.data,s=u.loginState,l=u.prisonerInfo,p=u.chemicalInfo,C=u.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 h=[1,5,10];return(0,e.createComponentVNode)(2,S.Window,{theme:"security",width:500,height:850,children:[(0,e.createComponentVNode)(2,f.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:l.name?"eject":"id-card",selected:l.name,content:l.name?l.name:"-----",tooltip:l.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:[l.points!==null?l.points:"-/-",(0,e.createComponentVNode)(2,t.Button,{ml:2,icon:"minus-square",disabled:l.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:[l.goal!==null?l.goal:"-/-",(0,e.createComponentVNode)(2,t.Button,{ml:2,icon:"pen",disabled:l.goal===null,content:"Edit",onClick:function(){function N(){return(0,f.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:l.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: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.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,f.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:p.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})}),h.map(function(b){return(0,e.createComponentVNode)(2,t.Button,{mt:2,disabled:N.volumec;return(0,e.createComponentVNode)(2,t.ImageButton,{asset:!0,imageAsset:"prize_counter64x64",image:C.imageID,title:C.name,content:C.desc,children:(0,e.createComponentVNode)(2,t.ImageButton.Item,{bold:!0,width:"64px",fontSize:1.5,textColor:g&&"gray",content:C.cost,icon:"ticket",iconSize:1.6,iconColor:g?"bad":"good",tooltip:g&&"Not enough tickets",disabled:g,onClick:function(){function h(){return v("purchase",{purchase:C.itemID})}return h}()})},C.name)})})})})})})}return V}()},87963:function(w,r,n){"use strict";r.__esModule=!0,r.RCD=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=n(99665),V=n(57842),y=r.RCD=function(){function d(u,s){return(0,e.createComponentVNode)(2,o.Window,{width:480,height:670,children:[(0,e.createComponentVNode)(2,f.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,i),(0,e.createComponentVNode)(2,c)]})})]})}return d}(),S=function(u,s){var l=(0,a.useBackend)(s),p=l.data,C=p.matter,g=p.max_matter,h=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:[h,1/0],average:[N,h],bad:[-1/0,N]},value:C,maxValue:g,children:(0,e.createComponentVNode)(2,t.Stack.Item,{textAlign:"center",children:C+" / "+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,v,{mode_type:"Floors and Walls"}),(0,e.createComponentVNode)(2,v,{mode_type:"Airlocks"}),(0,e.createComponentVNode)(2,v,{mode_type:"Windows"}),(0,e.createComponentVNode)(2,v,{mode_type:"Deconstruction"})]})})})},v=function(u,s){var l=(0,a.useBackend)(s),p=l.act,C=l.data,g=u.mode_type,h=C.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:h===g?1:0,onClick:function(){function N(){return p("mode",{mode:g})}return N}()})})},i=function(u,s){var l=(0,a.useBackend)(s),p=l.act,C=l.data,g=C.door_name,h=C.electrochromic,N=C.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,f.modalOpen)(s,"renameAirlock")}return b}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:N===1&&(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:h?"toggle-on":"toggle-off",content:"Electrochromic",selected:h,onClick:function(){function b(){return p("electrochromic")}return b}()})})]})})})},c=function(u,s){var l=(0,a.useBackend)(s),p=l.act,C=l.data,g=C.tab,h=C.locked,N=C.one_access,b=C.selected_accesses,B=C.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 p("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 p("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,m,{check_number:0})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,m,{check_number:1})})]})}):g===2&&h?(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 p("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,V.AccessList,{sectionButtons:(0,e.createComponentVNode)(2,t.Button,{icon:"lock",content:"Lock",onClick:function(){function I(){return p("set_lock",{new_lock:"lock"})}return I}()}),usedByRcd:1,rcdButtons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:N,content:"One",onClick:function(){function I(){return p("set_one_access",{access:"one"})}return I}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:!N,width:4,content:"All",onClick:function(){function I(){return p("set_one_access",{access:"all"})}return I}()})],4),accesses:B,selectedList:b,accessMod:function(){function I(L){return p("set",{access:L})}return I}(),grantAll:function(){function I(){return p("grant_all")}return I}(),denyAll:function(){function I(){return p("clear_all")}return I}(),grantDep:function(){function I(L){return p("grant_region",{region:L})}return I}(),denyDep:function(){function I(L){return p("deny_region",{region:L})}return I}()})})],4)},m=function(u,s){for(var l=(0,a.useBackend)(s),p=l.act,C=l.data,g=C.door_types_ui_list,h=C.door_type,N=u.check_number,b=[],B=0;B0?"envelope-open-text":"envelope",onClick:function(){function B(){return p("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 p("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 p("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 p("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 p("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 p("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 p("setScreen",{setScreen:10})}return B}()})]})}),!!h&&(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 p("setScreen",{setScreen:8})}return B}()})})]})})},y=function(u,s){var l=(0,a.useBackend)(s),p=l.act,C=l.data,g=C.department,h=[],N;switch(u.purpose){case"ASSISTANCE":h=C.assist_dept,N="Request assistance from another department";break;case"SUPPLIES":h=C.supply_dept,N="Request supplies from another department";break;case"INFO":h=C.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 p("setScreen",{setScreen:0})}return b}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:h.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 p("writeInput",{write:b,priority:"1"})}return B}()}),(0,e.createComponentVNode)(2,t.Button,{content:"High Priority",icon:"exclamation-circle",onClick:function(){function B(){return p("writeInput",{write:b,priority:"2"})}return B}()})]},b)})})})})},S=function(u,s){var l=(0,a.useBackend)(s),p=l.act,C=l.data,g;switch(u.type){case"SUCCESS":g="Message sent successfully";break;case"FAIL":g="Unable to contact messaging server";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 h(){return p("setScreen",{setScreen:0})}return h}()})})},k=function(u,s){var l=(0,a.useBackend)(s),p=l.act,C=l.data,g,h;switch(u.type){case"MESSAGES":g=C.message_log,h="Message Log";break;case"SHIPPING":g=C.shipping_log,h="Shipping label print log";break}return g.reverse(),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:h,buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Back",icon:"arrow-left",onClick:function(){function N(){return p("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)})})})},v=function(u,s){var l=(0,a.useBackend)(s),p=l.act,C=l.data,g=C.recipient,h=C.message,N=C.msgVerified,b=C.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 p("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:h}),(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 p("department",{department:g})}return B}()})})})],4)},i=function(u,s){var l=(0,a.useBackend)(s),p=l.act,C=l.data,g=C.message,h=C.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 p("setScreen",{setScreen:0})}return N}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Edit Message",icon:"edit",onClick:function(){function N(){return p("writeAnnouncement")}return N}()})],4),children:g})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{children:[h?(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:!(h&&g),onClick:function(){function N(){return p("sendAnnouncement")}return N}()})]})})],4)},c=function(u,s){var l=(0,a.useBackend)(s),p=l.act,C=l.data,g=C.shipDest,h=C.msgVerified,N=C.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 p("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:h})]}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,mt:1,textAlign:"center",content:"Print Label",icon:"print",disabled:!(g&&h),onClick:function(){function b(){return p("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 p("shipSelect",{shipSelect:b})}return B}()})},b)})})})})],4)},m=function(u,s){var l=(0,a.useBackend)(s),p=l.act,C=l.data,g=C.secondaryGoalAuth,h=C.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 p("setScreen",{setScreen:0})}return N}()})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{children:[h?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&&h),onClick:function(){function N(){return p("requestSecondaryGoal")}return N}()})]})})],4)}},89641:function(w,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),f=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(v,i){var c=(0,a.useBackend)(i),m=c.data,d=m.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,f.RndNavbar),(0,e.createComponentVNode)(2,f.RndRoute,{menu:V.MAIN,render:function(){function u(){return(0,e.createComponentVNode)(2,f.MainMenu)}return u}()}),(0,e.createComponentVNode)(2,f.RndRoute,{menu:V.LEVELS,render:function(){function u(){return(0,e.createComponentVNode)(2,f.CurrentLevels)}return u}()}),(0,e.createComponentVNode)(2,f.RndRoute,{menu:V.DISK,render:function(){function u(){return(0,e.createComponentVNode)(2,f.DataDiskMenu)}return u}()}),(0,e.createComponentVNode)(2,f.RndRoute,{menu:V.DESTROY,render:function(){function u(){return(0,e.createComponentVNode)(2,f.DeconstructionMenu)}return u}()}),(0,e.createComponentVNode)(2,f.RndRoute,{menu:function(){function u(s){return s===V.LATHE||s===V.IMPRINTER}return u}(),render:function(){function u(){return(0,e.createComponentVNode)(2,f.LatheMenu)}return u}()}),(0,e.createComponentVNode)(2,f.RndRoute,{menu:V.SETTINGS,render:function(){function u(){return(0,e.createComponentVNode)(2,f.SettingsMenu)}return u}()}),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(w,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 f(V,y){var S=(0,a.useBackend)(y),k=S.data,v=k.tech_levels;return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createVNode)(1,"h3",null,"Current Research Levels:",16),v.map(function(i,c){var m=i.name,d=i.level,u=i.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:m}),(0,e.createComponentVNode)(2,t.Box,{children:["* Level: ",d]}),(0,e.createComponentVNode)(2,t.Box,{children:["* Summary: ",u]})]},m)})]})}return f}()},338:function(w,r,n){"use strict";r.__esModule=!0,r.DataDiskMenu=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(3422),f=n(89641),V="design",y="tech",S=function(s,l){var p=(0,a.useBackend)(l),C=p.data,g=p.act,h=C.disk_data;return h?(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Name",children:h.name}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Level",children:h.level}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Description",children:h.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,i)]})]}):null},k=function(s,l){var p=(0,a.useBackend)(l),C=p.data,g=p.act,h=C.disk_data;if(!h)return null;var N=h.name,b=h.lathe_types,B=h.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:N}),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(L){return(0,e.createComponentVNode)(2,t.Box,{children:["- ",(0,e.createVNode)(1,"span",null,L.name,0,{style:{"text-transform":"capitalize"}})," x ",L.amount]},L.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 L(){return g("updt_design")}return L}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Clear Disk",icon:"trash",onClick:function(){function L(){return g("clear_design")}return L}()}),(0,e.createComponentVNode)(2,i)]})]})},v=function(s,l){var p=(0,a.useBackend)(l),C=p.data,g=C.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:f.SUBMENU.DISK_COPY,icon:"arrow-down",content:g===y?"Load Tech to Disk":"Load Design to Disk"}),(0,e.createComponentVNode)(2,i)]})]})},i=function(s,l){var p=(0,a.useBackend)(l),C=p.data,g=p.act,h=C.disk_type;return h?(0,e.createComponentVNode)(2,t.Button,{content:"Eject Disk",icon:"eject",onClick:function(){function N(){var b=h===y?"eject_tech":"eject_design";g(b)}return N}()}):null},c=function(s,l){var p=(0,a.useBackend)(l),C=p.data,g=C.disk_data,h=C.disk_type,N=function(){if(!g)return(0,e.createComponentVNode)(2,v);switch(h){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()})},m=function(s,l){var p=(0,a.useBackend)(l),C=p.data,g=p.act,h=C.disk_type,N=C.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,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 L(){h===y?g("copy_tech",{id:I}):g("copy_design",{id:I})}return L}()})},I)})})})})},d=r.DataDiskMenu=function(){function u(s,l){var p=(0,a.useBackend)(l),C=p.data,g=C.disk_type;return g?(0,e.createFragment)([(0,e.createComponentVNode)(2,o.RndRoute,{submenu:f.SUBMENU.MAIN,render:function(){function h(){return(0,e.createComponentVNode)(2,c)}return h}()}),(0,e.createComponentVNode)(2,o.RndRoute,{submenu:f.SUBMENU.DISK_COPY,render:function(){function h(){return(0,e.createComponentVNode)(2,m)}return h}()})],4):null}return u}()},90785:function(w,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 f(V,y){var S=(0,a.useBackend)(y),k=S.data,v=S.act,i=k.loaded_item,c=k.linked_destroy;return c?i?(0,e.createComponentVNode)(2,t.Section,{noTopPadding:!0,title:"Deconstruction Menu",children:[(0,e.createComponentVNode)(2,t.Box,{mt:"10px",children:["Name: ",i.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:i.origin_tech.map(function(m){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"* "+m.name,children:[m.object_level," ",m.current_level?(0,e.createFragment)([(0,e.createTextVNode)("(Current: "),m.current_level,(0,e.createTextVNode)(")")],0):null]},m.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 m(){v("deconstruct")}return m}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Eject Item",icon:"eject",onClick:function(){function m(){v("eject_item")}return m}()})]}):(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 f}()},34492:function(w,r,n){"use strict";r.__esModule=!0,r.LatheCategory=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(3422),f=r.LatheCategory=function(){function V(y,S){var k=(0,a.useBackend)(S),v=k.data,i=k.act,c=v.category,m=v.matching_designs,d=v.menu,u=d===4,s=u?"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:m.map(function(l){var p=l.id,C=l.name,g=l.can_build,h=l.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:C,disabled:g<1,onClick:function(){function N(){return i(s,{id:p,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 i(s,{id:p,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 i(s,{id:p,amount:10})}return N}()}):null}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:h.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)})})]},p)})})]})}return V}()},84275:function(w,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 f(V,y){var S=(0,a.useBackend)(y),k=S.data,v=S.act,i=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 m(){var d=c?"disposeallP":"disposeallI";v(d)}return m}()}),(0,e.createComponentVNode)(2,t.LabeledList,{children:i.map(function(m){var d=m.volume,u=m.name,s=m.id;return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"* "+d+" of "+u,children:(0,e.createComponentVNode)(2,t.Button,{content:"Purge",icon:"trash",onClick:function(){function l(){var p=c?"disposeP":"disposeI";v(p,{id:s})}return l}()})},s)})})]})}return f}()},12638:function(w,r,n){"use strict";r.__esModule=!0,r.LatheMainMenu=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(3422),f=r.LatheMainMenu=function(){function V(y,S){var k=(0,a.useBackend)(S),v=k.data,i=k.act,c=v.menu,m=v.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:m.map(function(u){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:u,onClick:function(){function s(){i("setCategory",{category:u})}return s}()})},u)})})]})}return V}()},89004:function(w,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 f(V,y){var S=(0,a.useBackend)(y),k=S.data,v=S.act,i=k.loaded_materials;return(0,e.createComponentVNode)(2,t.Section,{className:"RndConsole__LatheMaterialStorage",title:"Material Storage",children:(0,e.createComponentVNode)(2,t.Table,{children:i.map(function(c){var m=c.id,d=c.amount,u=c.name,s=function(){function g(h){var N=k.menu===4?"lathe_ejectsheet":"imprinter_ejectsheet";v(N,{id:m,amount:h})}return g}(),l=Math.floor(d/2e3),p=d<1,C=l===1?"":"s";return(0,e.createComponentVNode)(2,t.Table.Row,{className:p?"color-grey":"color-yellow",children:[(0,e.createComponentVNode)(2,t.Table.Cell,{minWidth:"210px",children:["* ",d," of ",u]}),(0,e.createComponentVNode)(2,t.Table.Cell,{minWidth:"110px",children:["(",l," sheet",C,")"]}),(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})]},m)})})})}return f}()},73856:function(w,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 f(V,y){var S=(0,a.useBackend)(y),k=S.data,v=k.total_materials,i=k.max_materials,c=k.max_chemicals,m=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:v}),i?(0,e.createComponentVNode)(2,t.Table.Cell,{children:" / "+i}):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:m}),c?(0,e.createComponentVNode)(2,t.Table.Cell,{children:" / "+c}):null]})]})})}return f}()},75955:function(w,r,n){"use strict";r.__esModule=!0,r.LatheMenu=void 0;var e=n(96524),a=n(17899),t=n(78345),o=n(3422),f=n(24674),V=n(89641),y=r.LatheMenu=function(){function S(k,v){var i=(0,a.useBackend)(v),c=i.data,m=c.menu,d=c.linked_lathe,u=c.linked_imprinter;return m===4&&!d?(0,e.createComponentVNode)(2,f.Box,{children:"NO PROTOLATHE LINKED TO CONSOLE"}):m===5&&!u?(0,e.createComponentVNode)(2,f.Box,{children:"NO CIRCUIT IMPRITER LINKED TO CONSOLE"}):(0,e.createComponentVNode)(2,f.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(w,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 f(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 v(i,c){return k("search",{to_search:c})}return v}()})})}return f}()},62306:function(w,r,n){"use strict";r.__esModule=!0,r.MainMenu=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(3422),f=n(89641),V=r.MainMenu=function(){function y(S,k){var v=(0,a.useBackend)(k),i=v.data,c=i.disk_type,m=i.linked_destroy,d=i.linked_lathe,u=i.linked_imprinter,s=i.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:f.MENU.DISK,submenu:f.SUBMENU.MAIN,icon:"save",content:"Disk Operations"}),(0,e.createComponentVNode)(2,o.RndNavButton,{disabled:!m,menu:f.MENU.DESTROY,submenu:f.SUBMENU.MAIN,icon:"unlink",content:"Destructive Analyzer Menu"}),(0,e.createComponentVNode)(2,o.RndNavButton,{disabled:!d,menu:f.MENU.LATHE,submenu:f.SUBMENU.MAIN,icon:"print",content:"Protolathe Menu"}),(0,e.createComponentVNode)(2,o.RndNavButton,{disabled:!u,menu:f.MENU.IMPRINTER,submenu:f.SUBMENU.MAIN,icon:"print",content:"Circuit Imprinter Menu"}),(0,e.createComponentVNode)(2,o.RndNavButton,{menu:f.MENU.SETTINGS,submenu:f.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(l){var p=l.name,C=l.level;return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:p,children:C},p)})})]})}return y}()},99941:function(w,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 f(V,y){var S=V.icon,k=V.children,v=V.disabled,i=V.content,c=(0,a.useBackend)(y),m=c.data,d=c.act,u=m.menu,s=m.submenu,l=u,p=s;return V.menu!==null&&V.menu!==void 0&&(l=V.menu),V.submenu!==null&&V.submenu!==void 0&&(p=V.submenu),(0,e.createComponentVNode)(2,t.Button,{content:i,icon:S,disabled:v,onClick:function(){function C(){d("nav",{menu:l,submenu:p})}return C}(),children:k})}return f}()},24448:function(w,r,n){"use strict";r.__esModule=!0,r.RndNavbar=void 0;var e=n(96524),a=n(3422),t=n(24674),o=n(89641),f=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(w,r,n){"use strict";r.__esModule=!0,r.RndRoute=void 0;var e=n(17899),a=r.RndRoute=function(){function t(o,f){var V=o.render,y=(0,e.useBackend)(f),S=y.data,k=S.menu,v=S.submenu,i=function(){function m(d,u){return d==null?!0:typeof d=="function"?d(u):d===u}return m}(),c=i(o.menu,k)&&i(o.submenu,v);return c?V():null}return t}()},56454:function(w,r,n){"use strict";r.__esModule=!0,r.SettingsMenu=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(3422),f=n(89641),V=r.SettingsMenu=function(){function y(S,k){var v=(0,a.useBackend)(k),i=v.data,c=v.act,m=i.sync,d=i.admin,u=i.linked_destroy,s=i.linked_lathe,l=i.linked_imprinter;return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,o.RndRoute,{submenu:f.SUBMENU.MAIN,render:function(){function p(){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:!m,onClick:function(){function C(){c("sync")}return C}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Connect to Research Network",icon:"plug",disabled:m,onClick:function(){function C(){c("togglesync")}return C}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:!m,icon:"unlink",content:"Disconnect from Research Network",onClick:function(){function C(){c("togglesync")}return C}()}),(0,e.createComponentVNode)(2,o.RndNavButton,{disabled:!m,content:"Device Linkage Menu",icon:"link",menu:f.MENU.SETTINGS,submenu:f.SUBMENU.SETTINGS_DEVICES}),d===1?(0,e.createComponentVNode)(2,t.Button,{icon:"exclamation",content:"[ADMIN] Maximize Research Levels",onClick:function(){function C(){return c("maxresearch")}return C}()}):null]})})}return p}()}),(0,e.createComponentVNode)(2,o.RndRoute,{submenu:f.SUBMENU.SETTINGS_DEVICES,render:function(){function p(){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 C(){return c("find_device")}return C}()}),(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:[u?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"* Destructive Analyzer",children:(0,e.createComponentVNode)(2,t.Button,{icon:"unlink",content:"Unlink",onClick:function(){function C(){return c("disconnect",{item:"destroy"})}return C}()})}):(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 C(){c("disconnect",{item:"lathe"})}return C}()})}):(0,e.createComponentVNode)(2,t.LabeledList.Item,{noColon:!0,label:"* No Protolathe Linked"}),l?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"* Circuit Imprinter",children:(0,e.createComponentVNode)(2,t.Button,{icon:"unlink",content:"Unlink",onClick:function(){function C(){return c("disconnect",{item:"imprinter"})}return C}()})}):(0,e.createComponentVNode)(2,t.LabeledList.Item,{noColon:!0,label:"* No Circuit Imprinter Linked"})]})]})}return p}()})]})}return y}()},3422:function(w,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 f=n(84275);r.LatheChemicalStorage=f.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 v=n(72880);r.LatheSearch=v.LatheSearch;var i=n(62306);r.MainMenu=i.MainMenu;var c=n(24448);r.RndNavbar=c.RndNavbar;var m=n(99941);r.RndNavButton=m.RndNavButton;var d=n(78345);r.RndRoute=d.RndRoute;var u=n(56454);r.SettingsMenu=u.SettingsMenu},71123:function(w,r,n){"use strict";r.__esModule=!0,r.RobotSelfDiagnosis=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=n(78234),V=function(k,v){var i=k/v;return i<=.2?"good":i<=.5?"average":"bad"},y=r.RobotSelfDiagnosis=function(){function S(k,v){var i=(0,a.useBackend)(v),c=i.data,m=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:m.map(function(d,u){return(0,e.createComponentVNode)(2,t.Section,{title:(0,f.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"})]})})]})},u)})})})}return S}()},98951:function(w,r,n){"use strict";r.__esModule=!0,r.RoboticsControlConsole=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.RoboticsControlConsole=function(){function y(S,k){var v=(0,a.useBackend)(k),i=v.act,c=v.data,m=c.can_hack,d=c.safety,u=c.show_lock_all,s=c.cyborgs,l=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:[!!u&&(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 p(){return i("arm",{})}return p}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"lock",disabled:d,content:"Lock ALL Cyborgs",color:"bad",onClick:function(){function p(){return i("masslock",{})}return p}()})]}),(0,e.createComponentVNode)(2,V,{cyborgs:l,can_hack:m})]})})}return y}(),V=function(S,k){var v=S.cyborgs,i=S.can_hack,c=(0,a.useBackend)(k),m=c.act,d=c.data,u="Detonate";return d.detonate_cooldown>0&&(u+=" ("+d.detonate_cooldown+"s)"),v.length?v.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 l(){return m("hackbot",{uid:s.uid})}return l}()}),(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 l(){return m("stopbot",{uid:s.uid})}return l}()}),(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"bomb",content:u,disabled:!d.auth||d.detonate_cooldown>0,color:"bad",onClick:function(){function l(){return m("killbot",{uid:s.uid})}return l}()})],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(w,r,n){"use strict";r.__esModule=!0,r.Safe=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.Safe=function(){function k(v,i){var c=(0,a.useBackend)(i),m=c.act,d=c.data,u=d.dial,s=d.open,l=d.locked,p=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*u+"deg)","z-index":0}})]}),!s&&(0,e.createComponentVNode)(2,S)]})})}return k}(),V=function(v,i){var c=(0,a.useBackend)(i),m=c.act,d=c.data,u=d.dial,s=d.open,l=d.locked,p=function(g,h){return(0,e.createComponentVNode)(2,t.Button,{disabled:s||h&&!l,icon:"arrow-"+(h?"right":"left"),content:(h?"Right":"Left")+" "+g,iconRight:h,onClick:function(){function N(){return m(h?"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:l,icon:s?"lock":"lock-open",content:s?"Close":"Open",mb:"0.5rem",onClick:function(){function C(){return m("open")}return C}()}),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Box,{position:"absolute",children:[p(50),p(10),p(1)]}),(0,e.createComponentVNode)(2,t.Box,{className:"Safe--dialer--right",position:"absolute",right:"5px",children:[p(1,!0),p(10,!0),p(50,!0)]}),(0,e.createComponentVNode)(2,t.Box,{className:"Safe--dialer--number",children:u})]})},y=function(v,i){var c=(0,a.useBackend)(i),m=c.act,d=c.data,u=d.contents;return(0,e.createComponentVNode)(2,t.Box,{className:"Safe--contents",overflow:"auto",children:u.map(function(s,l){return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{mb:"0.5rem",onClick:function(){function p(){return m("retrieve",{index:l+1})}return p}(),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(v,i){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(w,r,n){"use strict";r.__esModule=!0,r.SatelliteControl=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.SatelliteControl=function(){function V(y,S){var k=(0,a.useBackend)(S),v=k.act,i=k.data,c=i.satellites,m=i.notice,d=i.meteor_shield,u=i.meteor_shield_coverage,s=i.meteor_shield_coverage_max,l=i.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:l>=100?"good":"average",value:u,maxValue:s,children:[l," %"]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Satellite Network Control",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[m&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Alert",color:"red",children:i.notice}),c.map(function(p){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"#"+p.id,children:[p.mode," ",(0,e.createComponentVNode)(2,t.Button,{content:p.active?"Deactivate":"Activate",icon:"arrow-circle-right",onClick:function(){function C(){return v("toggle",{id:p.id})}return C}()})]},p.id)})]})})]})})}return V}()},54892:function(w,r,n){"use strict";r.__esModule=!0,r.SecureStorage=void 0;var e=n(96524),a=n(28234),t=n(17899),o=n(24674),f=n(45493),V=n(5126),y=n(68100),S=r.SecureStorage=function(){function c(m,d){return(0,e.createComponentVNode)(2,f.Window,{theme:"securestorage",height:500,width:280,children:(0,e.createComponentVNode)(2,f.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,v)})})})})}return c}(),k=function(m,d){var u=(0,t.useBackend)(d),s=u.act,l=window.event?m.which:m.keyCode;if(l===y.KEY_ENTER){m.preventDefault(),s("keypad",{digit:"E"});return}if(l===y.KEY_ESCAPE){m.preventDefault(),s("keypad",{digit:"C"});return}if(l===y.KEY_BACKSPACE){m.preventDefault(),s("backspace");return}if(l>=y.KEY_0&&l<=y.KEY_9){m.preventDefault(),s("keypad",{digit:l-y.KEY_0});return}if(l>=y.KEY_NUMPAD_0&&l<=y.KEY_NUMPAD_9){m.preventDefault(),s("keypad",{digit:l-y.KEY_NUMPAD_0});return}},v=function(m,d){var u=(0,t.useBackend)(d),s=u.act,l=u.data,p=l.locked,C=l.no_passcode,g=l.emagged,h=l.user_entered_code,N=[["1","2","3"],["4","5","6"],["7","8","9"],["C","0","E"]],b=C?"":p?"bad":"good";return(0,e.createComponentVNode)(2,o.Section,{fill:!0,onKeyDown:function(){function B(I){return k(I,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":h})}),(0,e.createComponentVNode)(2,o.Table,{children:N.map(function(B){return(0,e.createComponentVNode)(2,V.TableRow,{children:B.map(function(I){return(0,e.createComponentVNode)(2,V.TableCell,{children:(0,e.createComponentVNode)(2,i,{number:I})},I)})},B[0])})})]})},i=function(m,d){var u=(0,t.useBackend)(d),s=u.act,l=u.data,p=m.number;return(0,e.createComponentVNode)(2,o.Button,{fluid:!0,bold:!0,mb:"6px",content:p,textAlign:"center",fontSize:"60px",lineHeight:1.25,width:"80px",className:(0,a.classes)(["SecureStorage__Button","SecureStorage__Button--keypad","SecureStorage__Button--"+p]),onClick:function(){function C(){return s("keypad",{digit:p})}return C}()})}},56798:function(w,r,n){"use strict";r.__esModule=!0,r.SecurityRecords=void 0;var e=n(96524),a=n(78234),t=n(17899),o=n(24674),f=n(45493),V=n(99665),y=n(68159),S=n(27527),k=n(84537),v={"*Execute*":"execute","*Arrest*":"arrest",Incarcerated:"incarcerated",Parolled:"parolled",Released:"released",Demote:"demote",Search:"search",Monitor:"monitor"},i=function(h,N){(0,V.modalOpen)(h,"edit",{field:N.edit,value:N.value})},c=r.SecurityRecords=function(){function g(h,N){var b=(0,t.useBackend)(N),B=b.act,I=b.data,L=I.loginState,T=I.currentPage,A;if(L.logged_in)T===1?A=(0,e.createComponentVNode)(2,d):T===2&&(A=(0,e.createComponentVNode)(2,l));else return(0,e.createComponentVNode)(2,f.Window,{theme:"security",width:800,height:900,children:(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,S.LoginScreen)})});return(0,e.createComponentVNode)(2,f.Window,{theme:"security",width:800,height:900,children:[(0,e.createComponentVNode)(2,V.ComplexModal),(0,e.createComponentVNode)(2,f.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,m),A]})})]})}return g}(),m=function(h,N){var b=(0,t.useBackend)(N),B=b.act,I=b.data,L=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:L===1,onClick:function(){function A(){return B("page",{page:1})}return A}(),children:"List Records"}),L===2&&T&&!T.empty&&(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"file",selected:L===2,children:["Record: ",T.fields[0].value]})]})})},d=function(h,N){var b=(0,t.useBackend)(N),B=b.act,I=b.data,L=I.records,T=(0,t.useLocalState)(N,"searchText",""),A=T[0],x=T[1],E=(0,t.useLocalState)(N,"sortId","name"),M=E[0],j=E[1],P=(0,t.useLocalState)(N,"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,u,{id:"name",children:"Name"}),(0,e.createComponentVNode)(2,u,{id:"id",children:"ID"}),(0,e.createComponentVNode)(2,u,{id:"rank",children:"Assignment"}),(0,e.createComponentVNode)(2,u,{id:"fingerprint",children:"Fingerprint"}),(0,e.createComponentVNode)(2,u,{id:"status",children:"Criminal Status"})]}),L.filter((0,a.createSearch)(A,function(F){return F.name+"|"+F.id+"|"+F.rank+"|"+F.fingerprint+"|"+F.status})).sort(function(F,W){var U=R?1:-1;return F[M].localeCompare(W[M])*U}).map(function(F){return(0,e.createComponentVNode)(2,o.Table.Row,{className:"SecurityRecords__listRow--"+v[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)},u=function(h,N){var b=(0,t.useLocalState)(N,"sortId","name"),B=b[0],I=b[1],L=(0,t.useLocalState)(N,"sortOrder",!0),T=L[0],A=L[1],x=h.id,E=h.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(h,N){var b=(0,t.useBackend)(N),B=b.act,I=b.data,L=I.isPrinting,T=(0,t.useLocalState)(N,"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:L,icon:L?"spinner":"print",iconSpin:!!L,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,j){return x(j)}return E}()})})]})},l=function(h,N){var b=(0,t.useBackend)(N),B=b.act,I=b.data,L=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:L,icon:L?"spinner":"print",iconSpin:!!L,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,p)})}),!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,preserveWhitespace:!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 i(N,x)}return M}()})]},E)})})})})}),(0,e.createComponentVNode)(2,C)],4)],0)},p=function(h,N){var b=(0,t.useBackend)(N),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(L,T){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:L.field,preserveWhitespace:!0,children:[(0,a.decodeHtmlEntities)(""+L.value),!!L.edit&&(0,e.createComponentVNode)(2,o.Button,{icon:"pen",ml:"0.5rem",mb:L.line_break?"1rem":"initial",onClick:function(){function A(){return i(N,L)}return A}()})]},T)})})}),!!I.has_photos&&I.photos.map(function(L,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:L,style:{width:"96px","margin-top":"5rem","margin-bottom":"0.5rem","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createVNode)(1,"br"),"Photo #",T+1]},T)})]})},C=function(h,N){var b=(0,t.useBackend)(N),B=b.act,I=b.data,L=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,V.modalOpen)(N,"comment_add")}return T}()}),children:L.comments.length===0?(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"No comments found."}):L.comments.map(function(T,A){return(0,e.createComponentVNode)(2,o.Box,{preserveWhitespace:!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(w,r,n){"use strict";r.__esModule=!0,r.SeedExtractor=void 0;var e=n(96524),a=n(78234),t=n(17899),o=n(24674),f=n(45493),V=n(99665);function y(u,s){var l=typeof Symbol!="undefined"&&u[Symbol.iterator]||u["@@iterator"];if(l)return(l=l.call(u)).next.bind(l);if(Array.isArray(u)||(l=S(u))||s&&u&&typeof u.length=="number"){l&&(u=l);var p=0;return function(){return p>=u.length?{done:!0}:{done:!1,value:u[p++]}}}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,s){if(u){if(typeof u=="string")return k(u,s);var l=Object.prototype.toString.call(u).slice(8,-1);if(l==="Object"&&u.constructor&&(l=u.constructor.name),l==="Map"||l==="Set")return Array.from(u);if(l==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(l))return k(u,s)}}function k(u,s){(s==null||s>u.length)&&(s=u.length);for(var l=0,p=new Array(s);l=A},C=function(T,A){return T<=A},g=s.split(" "),h=[],N=function(){var T=I.value,A=T.split(":");if(A.length===0)return 0;if(A.length===1)return h.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=l;if(A[1][A[1].length-1]==="-"?(E=C,x=Number(A[1].substring(0,A[1].length-1))):A[1][A[1].length-1]==="+"?(E=p,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":h.push(function(M){return E(M.lifespan,x)});break;case"e":case"end":case"endurance":h.push(function(M){return E(M.endurance,x)});break;case"m":case"mat":case"maturation":h.push(function(M){return E(M.maturation,x)});break;case"pr":case"prod":case"production":h.push(function(M){return E(M.production,x)});break;case"y":case"yield":h.push(function(M){return E(M.yield,x)});break;case"po":case"pot":case"potency":h.push(function(M){return E(M.potency,x)});break;case"s":case"stock":case"c":case"count":case"a":case"amount":h.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=N(),b!==0&&b)return b.v;return function(L){for(var T=0,A=h;T=1?Number(E):1)}return A}()})]})]})}},33454:function(w,r,n){"use strict";r.__esModule=!0,r.ShuttleConsole=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.ShuttleConsole=function(){function V(y,S){var k=(0,a.useBackend)(S),v=k.act,i=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:i.status?i.status:(0,e.createComponentVNode)(2,t.NoticeBox,{color:"red",children:"Shuttle Missing"})}),!!i.shuttle&&(!!i.docking_ports_len&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Send to ",children:i.docking_ports.map(function(c){return(0,e.createComponentVNode)(2,t.Button,{icon:"chevron-right",content:c.name,onClick:function(){function m(){return v("move",{move:c.id})}return m}()},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"})}),!!i.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:!i.status,onClick:function(){function c(){return v("request")}return c}()})})],0))]})})})})}return V}()},50451:function(w,r,n){"use strict";r.__esModule=!0,r.ShuttleManipulator=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.ShuttleManipulator=function(){function k(v,i){var c=(0,a.useLocalState)(i,"tabIndex",0),m=c[0],d=c[1],u=function(){function s(l){switch(l){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:m===0,onClick:function(){function s(){return d(0)}return s}(),icon:"info-circle",children:"Status"},"Status"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:m===1,onClick:function(){function s(){return d(1)}return s}(),icon:"file-import",children:"Templates"},"Templates"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:m===2,onClick:function(){function s(){return d(2)}return s}(),icon:"tools",children:"Modification"},"Modification")]}),u(m)]})})})}return k}(),V=function(v,i){var c=(0,a.useBackend)(i),m=c.act,d=c.data,u=d.shuttles;return(0,e.createComponentVNode)(2,t.Box,{children:u.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 l(){return m("jump_to",{type:"mobile",id:s.id})}return l}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Fast Travel",icon:"fast-forward",onClick:function(){function l(){return m("fast_travel",{id:s.id})}return l}()})]})]})},s.name)})})},y=function(v,i){var c=(0,a.useBackend)(i),m=c.act,d=c.data,u=d.templates_tabs,s=d.existing_shuttle,l=d.templates;return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Tabs,{children:u.map(function(p){return(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:p===s.id,icon:"file",onClick:function(){function C(){return m("select_template_category",{cat:p})}return C}(),children:p},p)})}),!!s&&l[s.id].templates.map(function(p){return(0,e.createComponentVNode)(2,t.Section,{title:p.name,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[p.description&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Description",children:p.description}),p.admin_notes&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Admin Notes",children:p.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 C(){return m("select_template",{shuttle_id:p.shuttle_id})}return C}()})})]})},p.name)})]})},S=function(v,i){var c=(0,a.useBackend)(i),m=c.act,d=c.data,u=d.existing_shuttle,s=d.selected;return(0,e.createComponentVNode)(2,t.Box,{children:[u?(0,e.createComponentVNode)(2,t.Section,{title:"Selected Shuttle: "+u.name,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:u.status}),u.timer&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Timer",children:u.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 l(){return m("jump_to",{type:"mobile",id:u.id})}return l}()})})]})}):(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 l(){return m("preview",{shuttle_id:s.shuttle_id})}return l}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Load",icon:"download",onClick:function(){function l(){return m("load",{shuttle_id:s.shuttle_id})}return l}()})]})]})}):(0,e.createComponentVNode)(2,t.Section,{title:"Selected Template: None"})]})}},99050:function(w,r,n){"use strict";r.__esModule=!0,r.Sleeper=void 0;var e=n(96524),a=n(36121),t=n(17899),o=n(24674),f=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"],v=r.Sleeper=function(){function l(p,C){var g=(0,t.useBackend)(C),h=g.act,N=g.data,b=N.hasOccupant,B=b?(0,e.createComponentVNode)(2,i):(0,e.createComponentVNode)(2,s);return(0,e.createComponentVNode)(2,f.Window,{width:550,height:760,children:(0,e.createComponentVNode)(2,f.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 l}(),i=function(p,C){var g=(0,t.useBackend)(C),h=g.act,N=g.data,b=N.occupant;return(0,e.createFragment)([(0,e.createComponentVNode)(2,c),(0,e.createComponentVNode)(2,m),(0,e.createComponentVNode)(2,u)],4)},c=function(p,C){var g=(0,t.useBackend)(C),h=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 I(){return h("auto_eject_dead_"+(B?"off":"on"))}return I}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"user-slash",content:"Eject",onClick:function(){function I(){return h("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: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)]})})},m=function(p,C){var g=(0,t.useBackend)(C),h=g.data,N=h.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(p,C){var g=(0,t.useBackend)(C),h=g.act,N=g.data,b=N.hasOccupant,B=N.isBeakerLoaded,I=N.beakerMaxSpace,L=N.beakerFreeSpace,T=N.dialysis,A=T&&L>0;return(0,e.createComponentVNode)(2,o.Section,{title:"Dialysis",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{disabled:!B||L<=0||!b,selected:A,icon:A?"toggle-on":"toggle-off",content:A?"Active":"Inactive",onClick:function(){function x(){return h("togglefilter")}return x}()}),(0,e.createComponentVNode)(2,o.Button,{disabled:!B,icon:"eject",content:"Eject",onClick:function(){function x(){return h("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:L/I,ranges:{good:[.5,1/0],average:[.25,.5],bad:[-1/0,.25]},children:[L,"u"]})})}):(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"No beaker loaded."})})},u=function(p,C){var g=(0,t.useBackend)(C),h=g.act,N=g.data,b=N.occupant,B=N.chemicals,I=N.maxchem,L=N.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"]}),L.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 h("chemical",{chemid:T.id,amount:M})}return P}()},j)})]})})},A)})})},s=function(p,C){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(w,r,n){"use strict";r.__esModule=!0,r.SlotMachine=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.SlotMachine=function(){function V(y,S){var k=(0,a.useBackend)(S),v=k.act,i=k.data;if(i.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 i.plays===1?c=i.plays+" player has tried their luck today!":c=i.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:i.money})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"10 credits to spin",children:(0,e.createComponentVNode)(2,t.Button,{icon:"coins",disabled:i.working,content:i.working?"Spinning...":"Spin",onClick:function(){function m(){return v("spin")}return m}()})})]}),(0,e.createComponentVNode)(2,t.Box,{bold:!0,lineHeight:2,color:i.resultlvl,children:i.result})]})})})}return V}()},26654:function(w,r,n){"use strict";r.__esModule=!0,r.Smartfridge=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.Smartfridge=function(){function V(y,S){var k=(0,a.useBackend)(S),v=k.act,i=k.data,c=i.secure,m=i.can_dry,d=i.drying,u=i.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:m?"Drying rack":"Contents",buttons:!!m&&(0,e.createComponentVNode)(2,t.Button,{width:4,icon:d?"power-off":"times",content:d?"On":"Off",selected:d,onClick:function(){function s(){return v("drying")}return s}()}),children:[!u&&(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."]})}),!!u&&u.slice().sort(function(s,l){return s.display_name.localeCompare(l.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 l(){return v("vend",{index:s.vend,amount:1})}return l}()}),(0,e.createComponentVNode)(2,t.NumberInput,{width:"40px",minValue:0,value:0,maxValue:s.quantity,step:1,stepPixelSize:3,onChange:function(){function l(p,C){return v("vend",{index:s.vend,amount:C})}return l}()}),(0,e.createComponentVNode)(2,t.Button,{width:4,icon:"arrow-down",content:"All",tooltip:"Dispense all.",tooltipPosition:"bottom-start",onClick:function(){function l(){return v("vend",{index:s.vend,amount:s.quantity})}return l}()})]})]},s)})]})]})})})}return V}()},71124:function(w,r,n){"use strict";r.__esModule=!0,r.Smes=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(92986),f=n(45493),V=1e3,y=r.Smes=function(){function S(k,v){var i=(0,a.useBackend)(v),c=i.act,m=i.data,d=m.capacityPercent,u=m.capacity,s=m.charge,l=m.inputAttempt,p=m.inputting,C=m.inputLevel,g=m.inputLevelMax,h=m.inputAvailable,N=m.outputPowernet,b=m.outputAttempt,B=m.outputting,I=m.outputLevel,L=m.outputLevelMax,T=m.outputUsed,A=d>=100&&"good"||p&&"average"||"bad",x=B&&"good"||s>0&&"average"||"bad";return(0,e.createComponentVNode)(2,f.Window,{width:340,height:345,children:(0,e.createComponentVNode)(2,f.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:l?"sync-alt":"times",selected:l,onClick:function(){function E(){return c("tryinput")}return E}(),children:l?"Auto":"Off"}),children:(0,e.createComponentVNode)(2,t.Box,{color:A,children:d>=100&&"Fully Charged"||p&&"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:C===0,onClick:function(){function E(){return c("input",{target:"min"})}return E}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"backward",disabled:C===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:C/V,fillValue:h/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,j){return c("input",{target:j*V})}return E}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"forward",disabled:C===g,onClick:function(){function E(){return c("input",{adjust:1e4})}return E}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",disabled:C===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)(h)})]})}),(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: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: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/V,minValue:0,maxValue:L/V,step:5,stepPixelSize:4,format:function(){function E(M){return(0,o.formatPower)(M*V,1)}return E}(),onChange:function(){function E(M,j){return c("output",{target:j*V})}return E}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"forward",disabled:I===L,onClick:function(){function E(){return c("output",{adjust:1e4})}return E}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",disabled:I===L,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(w,r,n){"use strict";r.__esModule=!0,r.SolarControl=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.SolarControl=function(){function V(y,S){var k=(0,a.useBackend)(S),v=k.act,i=k.data,c=0,m=1,d=2,u=i.generated,s=i.generated_ratio,l=i.tracking_state,p=i.tracking_rate,C=i.connected_panels,g=i.connected_tracker,h=i.cdir,N=i.direction,b=i.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 v("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:C>0?"good":"bad",children:C})]})}),(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:u+" W"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Panel orientation",children:[h,"\xB0 (",N,")"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Tracker rotation",children:[l===d&&(0,e.createComponentVNode)(2,t.Box,{children:" Automated "}),l===m&&(0,e.createComponentVNode)(2,t.Box,{children:[" ",p,"\xB0/h (",b,")"," "]}),l===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:[l!==d&&(0,e.createComponentVNode)(2,t.NumberInput,{unit:"\xB0",step:1,stepPixelSize:1,minValue:0,maxValue:359,value:h,onDrag:function(){function B(I,L){return v("cdir",{cdir:L})}return B}()}),l===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:l===c,onClick:function(){function B(){return v("track",{track:c})}return B}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"clock-o",content:"Timed",selected:l===m,onClick:function(){function B(){return v("track",{track:m})}return B}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"sync",content:"Auto",selected:l===d,disabled:!g,onClick:function(){function B(){return v("track",{track:d})}return B}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Tracker rotation",children:[l===m&&(0,e.createComponentVNode)(2,t.NumberInput,{unit:"\xB0/h",step:1,stepPixelSize:1,minValue:-7200,maxValue:7200,value:p,format:function(){function B(I){var L=Math.sign(I)>0?"+":"-";return L+Math.abs(I)}return B}(),onDrag:function(){function B(I,L){return v("tdir",{tdir:L})}return B}()}),l===c&&(0,e.createComponentVNode)(2,t.Box,{lineHeight:"19px",children:" Tracker offline "}),l===d&&(0,e.createComponentVNode)(2,t.Box,{lineHeight:"19px",children:" Automated "})]})]})})]})})}return V}()},31202:function(w,r,n){"use strict";r.__esModule=!0,r.SpawnersMenu=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.SpawnersMenu=function(){function V(y,S){var k=(0,a.useBackend)(S),v=k.act,i=k.data,c=i.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(m){return(0,e.createComponentVNode)(2,t.Section,{mb:.5,title:m.name+" ("+m.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 v("jump",{ID:m.uids})}return d}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"chevron-circle-right",content:"Spawn",onClick:function(){function d(){return v("spawn",{ID:m.uids})}return d}()})],4),children:[(0,e.createComponentVNode)(2,t.Box,{style:{"white-space":"pre-wrap"},mb:1,fontSize:"16px",children:m.desc}),!!m.fluff&&(0,e.createComponentVNode)(2,t.Box,{style:{"white-space":"pre-wrap"},textColor:"#878787",fontSize:"14px",children:m.fluff}),!!m.important_info&&(0,e.createComponentVNode)(2,t.Box,{style:{"white-space":"pre-wrap"},mt:1,bold:!0,color:"red",fontSize:"18px",children:m.important_info})]},m.name)})})})})}return V}()},84800:function(w,r,n){"use strict";r.__esModule=!0,r.SpecMenu=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.SpecMenu=function(){function v(i,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 v}(),V=function(i,c){var m=(0,a.useBackend)(c),d=m.act,u=m.data,s=u.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 l(){return d("hemomancer")}return l}()}),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(i,c){var m=(0,a.useBackend)(c),d=m.act,u=m.data,s=u.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 l(){return d("umbrae")}return l}()}),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(i,c){var m=(0,a.useBackend)(c),d=m.act,u=m.data,s=u.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 l(){return d("gargantua")}return l}()}),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(i,c){var m=(0,a.useBackend)(c),d=m.act,u=m.data,s=u.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 l(){return d("dantalion")}return l}()}),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(w,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),f=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 v=(0,a.useBackend)(k),i=v.data,c=i.alarms||[],m=c.Fire||[],d=c.Atmosphere||[],u=c.Power||[];return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{title:"Fire Alarms",children:(0,e.createVNode)(1,"ul",null,[m.length===0&&(0,e.createVNode)(1,"li","color-good","Systems Nominal",16),m.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,[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)})],4)}return y}()},18565:function(w,r,n){"use strict";r.__esModule=!0,r.StationTraitsPanel=void 0;var e=n(96524),a=n(50640),t=n(67765),o=n(17899),f=n(24674),V=n(45493),y=function(i){return i[i.SetupFutureStationTraits=0]="SetupFutureStationTraits",i[i.ViewStationTraits=1]="ViewStationTraits",i}(y||{}),S=function(c,m){var d=(0,o.useBackend)(m),u=d.act,s=d.data,l=s.future_station_traits,p=(0,o.useLocalState)(m,"selectedFutureTrait",null),C=p[0],g=p[1],h=Object.fromEntries(s.valid_station_traits.map(function(b){return[b.name,b.path]})),N=Object.keys(h);return N.sort(),(0,e.createComponentVNode)(2,f.Box,{children:[(0,e.createComponentVNode)(2,f.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,f.Dropdown,{displayText:!C&&"Select trait to add...",onSelected:g,options:N,selected:C,width:"100%"})}),(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Button,{color:"green",icon:"plus",onClick:function(){function b(){if(C){var B=h[C],I=[B];if(l){var L,T=l.map(function(A){return A.path});if(T.indexOf(B)!==-1)return;I=(L=I).concat.apply(L,T)}u("setup_future_traits",{station_traits:I})}}return b}(),children:"Add"})})]}),(0,e.createComponentVNode)(2,f.Divider),Array.isArray(l)?l.length>0?(0,e.createComponentVNode)(2,f.Stack,{vertical:!0,fill:!0,children:l.map(function(b){return(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,children:b.name}),(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Button,{color:"red",icon:"times",onClick:function(){function B(){u("setup_future_traits",{station_traits:(0,a.filterMap)(l,function(I){if(I.path!==b.path)return I.path})})}return B}(),children:"Delete"})})]})},b.path)})}):(0,e.createComponentVNode)(2,f.Box,{textAlign:"center",children:[(0,e.createComponentVNode)(2,f.Box,{children:"No station traits will run next round."}),(0,e.createComponentVNode)(2,f.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 u("clear_future_traits")}return b}(),children:"Run Station Traits Normally"})]}):(0,e.createComponentVNode)(2,f.Box,{textAlign:"center",children:[(0,e.createComponentVNode)(2,f.Box,{children:"No future station traits are planned."}),(0,e.createComponentVNode)(2,f.Button,{mt:1,fluid:!0,color:"red",icon:"times",onClick:function(){function b(){return u("setup_future_traits",{station_traits:[]})}return b}(),children:"Prevent station traits from running next round"})]})]})},k=function(c,m){var d=(0,o.useBackend)(m),u=d.act,s=d.data;return s.current_traits.length>0?(0,e.createComponentVNode)(2,f.Stack,{vertical:!0,fill:!0,children:s.current_traits.map(function(l){return(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,children:l.name}),(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Button.Confirm,{content:"Revert",color:"red",disabled:s.too_late_to_revert||!l.can_revert,tooltip:!l.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 p(){return u("revert",{ref:l.ref})}return p}()})})]})},l.ref)})}):(0,e.createComponentVNode)(2,f.Box,{textAlign:"center",children:"There are no active station traits."})},v=r.StationTraitsPanel=function(){function i(c,m){var d=(0,o.useLocalState)(m,"station_traits_tab",y.ViewStationTraits),u=d[0],s=d[1],l;switch(u){case y.SetupFutureStationTraits:l=(0,e.createComponentVNode)(2,S);break;case y.ViewStationTraits:l=(0,e.createComponentVNode)(2,k);break;default:(0,t.exhaustiveCheck)(u)}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,f.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Tabs,{children:[(0,e.createComponentVNode)(2,f.Tabs.Tab,{icon:"eye",selected:u===y.ViewStationTraits,onClick:function(){function p(){return s(y.ViewStationTraits)}return p}(),children:"View"}),(0,e.createComponentVNode)(2,f.Tabs.Tab,{icon:"edit",selected:u===y.SetupFutureStationTraits,onClick:function(){function p(){return s(y.SetupFutureStationTraits)}return p}(),children:"Edit"})]})}),(0,e.createComponentVNode)(2,f.Stack.Item,{m:0,children:[(0,e.createComponentVNode)(2,f.Divider),l]})]})})})}return i}()},95147:function(w,r,n){"use strict";r.__esModule=!0,r.StripMenu=void 0;var e=n(96524),a=n(50640),t=n(17442),o=n(17899),f=n(24674),V=n(45493),y=5,S=9,k=function(C){return C===0?5:9},v="64px",i=function(C){return C[0]+"/"+C[1]},c=function(C){var g=C.align,h=C.children;return(0,e.createComponentVNode)(2,f.Box,{style:{position:"absolute",left:g==="left"?"6px":"48px","text-align":g,"text-shadow":"2px 2px 2px #000",top:"2px"},children:h})},m={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"}},d={eyes:{displayName:"eyewear",gridSpot:i([1,0]),image:"inventory-glasses.png"},head:{displayName:"headwear",gridSpot:i([0,1]),image:"inventory-head.png"},mask:{displayName:"mask",gridSpot:i([1,1]),image:"inventory-mask.png"},pet_collar:{displayName:"collar",gridSpot:i([1,1]),image:"inventory-collar.png"},right_ear:{displayName:"right ear",gridSpot:i([0,2]),image:"inventory-ears.png"},left_ear:{displayName:"left ear",gridSpot:i([1,2]),image:"inventory-ears.png"},parrot_headset:{displayName:"headset",gridSpot:i([1,2]),image:"inventory-ears.png"},handcuffs:{displayName:"handcuffs",gridSpot:i([1,3])},legcuffs:{displayName:"legcuffs",gridSpot:i([1,4])},jumpsuit:{displayName:"uniform",gridSpot:i([2,0]),image:"inventory-uniform.png"},suit:{displayName:"suit",gridSpot:i([2,1]),image:"inventory-suit.png"},gloves:{displayName:"gloves",gridSpot:i([2,2]),image:"inventory-gloves.png"},right_hand:{displayName:"right hand",gridSpot:i([2,3]),image:"inventory-hand_r.png",additionalComponent:(0,e.createComponentVNode)(2,c,{align:"left",children:"R"})},left_hand:{displayName:"left hand",gridSpot:i([2,4]),image:"inventory-hand_l.png",additionalComponent:(0,e.createComponentVNode)(2,c,{align:"right",children:"L"})},shoes:{displayName:"shoes",gridSpot:i([3,1]),image:"inventory-shoes.png"},suit_storage:{displayName:"suit storage",gridSpot:i([4,0]),image:"inventory-suit_storage.png"},id:{displayName:"ID",gridSpot:i([4,1]),image:"inventory-id.png"},belt:{displayName:"belt",gridSpot:i([4,2]),image:"inventory-belt.png"},back:{displayName:"backpack",gridSpot:i([4,3]),image:"inventory-back.png"},left_pocket:{displayName:"left pocket",gridSpot:i([3,4]),image:"inventory-pocket.png"},right_pocket:{displayName:"right pocket",gridSpot:i([3,3]),image:"inventory-pocket.png"},pda:{displayName:"PDA",gridSpot:i([4,4]),image:"inventory-pda.png"}},u={eyes:{displayName:"eyewear",gridSpot:i([1,0]),image:"inventory-glasses.png"},head:{displayName:"headwear",gridSpot:i([0,1]),image:"inventory-head.png"},mask:{displayName:"mask",gridSpot:i([1,1]),image:"inventory-mask.png"},pet_collar:{displayName:"collar",gridSpot:i([1,1]),image:"inventory-collar.png"},right_ear:{displayName:"right ear",gridSpot:i([0,2]),image:"inventory-ears.png"},left_ear:{displayName:"left ear",gridSpot:i([1,2]),image:"inventory-ears.png"},parrot_headset:{displayName:"headset",gridSpot:i([1,2]),image:"inventory-ears.png"},handcuffs:{displayName:"handcuffs",gridSpot:i([1,3])},legcuffs:{displayName:"legcuffs",gridSpot:i([1,4])},jumpsuit:{displayName:"uniform",gridSpot:i([2,0]),image:"inventory-uniform.png"},suit:{displayName:"suit",gridSpot:i([2,1]),image:"inventory-suit.png"},gloves:{displayName:"gloves",gridSpot:i([2,2]),image:"inventory-gloves.png"},right_hand:{displayName:"right hand",gridSpot:i([4,4]),image:"inventory-hand_r.png",additionalComponent:(0,e.createComponentVNode)(2,c,{align:"left",children:"R"})},left_hand:{displayName:"left hand",gridSpot:i([4,5]),image:"inventory-hand_l.png",additionalComponent:(0,e.createComponentVNode)(2,c,{align:"right",children:"L"})},shoes:{displayName:"shoes",gridSpot:i([3,1]),image:"inventory-shoes.png"},suit_storage:{displayName:"suit storage",gridSpot:i([4,0]),image:"inventory-suit_storage.png"},id:{displayName:"ID",gridSpot:i([4,1]),image:"inventory-id.png"},belt:{displayName:"belt",gridSpot:i([4,2]),image:"inventory-belt.png"},back:{displayName:"backpack",gridSpot:i([4,3]),image:"inventory-back.png"},left_pocket:{displayName:"left pocket",gridSpot:i([4,7]),image:"inventory-pocket.png"},right_pocket:{displayName:"right pocket",gridSpot:i([4,6]),image:"inventory-pocket.png"},pda:{displayName:"PDA",gridSpot:i([4,8]),image:"inventory-pda.png"}},s=function(p){return p[p.Completely=1]="Completely",p[p.Hidden=2]="Hidden",p}(s||{}),l=r.StripMenu=function(){function p(C,g){var h=(0,o.useBackend)(g),N=h.act,b=h.data,B=new Map;if(b.show_mode===0)for(var I=0,L=Object.keys(b.items);I=.01})},(0,a.sortBy)(function(T){return-T.amount})])(C.gases||[]),L=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,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:h/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:i(b),minValue:0,maxValue:i(1e4),ranges:{teal:[-1/0,i(80)],good:[i(80),i(373)],average:[i(373),i(1e3)],bad:[i(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:i(B),minValue:0,maxValue:i(5e4),ranges:{good:[i(1),i(300)],average:[-1/0,i(1e3)],bad:[i(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 p("back")}return T}()}),children:(0,e.createComponentVNode)(2,V.LabeledList,{children:I.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:L,children:(0,o.toFixed)(T.amount,2)+"%"})},T.name)})})})})]})})})}},30047:function(w,r,n){"use strict";r.__esModule=!0,r.SyndicateComputerSimple=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.SyndicateComputerSimple=function(){function V(y,S){var k=(0,a.useBackend)(S),v=k.act,i=k.data;return(0,e.createComponentVNode)(2,o.Window,{theme:"syndicate",width:400,height:400,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:i.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 m(){return v(c.buttonact)}return m}()}),children:[c.status,!!c.bullets&&(0,e.createComponentVNode)(2,t.Box,{children:c.bullets.map(function(m){return(0,e.createComponentVNode)(2,t.Box,{children:m},m)})})]},c.title)})})})}return V}()},28830:function(w,r,n){"use strict";r.__esModule=!0,r.TEG=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=function(S){return S.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1,")},V=r.TEG=function(){function y(S,k){var v=(0,a.useBackend)(k),i=v.act,c=v.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 m(){return i("check")}return m}()})]})})}):(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:[f(c.cold_inlet_temp)," K, ",f(c.cold_inlet_pressure)," kPa"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cold Outlet",children:[f(c.cold_outlet_temp)," K, ",f(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:[f(c.hot_inlet_temp)," K, ",f(c.hot_inlet_pressure)," kPa"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Hot Outlet",children:[f(c.hot_outlet_temp)," K, ",f(c.hot_outlet_pressure)," kPa"]})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Power Output",children:[f(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(w,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),f={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,m,d,u){return u===void 0&&(u=null),c.map(function(s){var l,p=(l=s[u])!=null?l:s;return(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:m.includes(s),content:p,onClick:function(){function C(){m.includes(s)?d(m.filter(function(g){var h;return((h=g[u])!=null?h:g)!==s})):d([s].concat(m))}return C}()},p)})},k=r.TTSSeedsExplorer=function(){function i(){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,v)})})})}return i}(),v=r.TTSSeedsExplorerContent=function(){function i(c,m){var d=(0,a.useBackend)(m),u=d.act,s=d.data,l=s.providers,p=s.seeds,C=s.selected_seed,g=s.phrases,h=s.donator_level,N=s.character_gender,b=p.map(function(ee){return ee.category}).filter(function(ee,oe,ue){return ue.indexOf(ee)===oe}),B=p.map(function(ee){return ee.gender}).filter(function(ee,oe,ue){return ue.indexOf(ee)===oe}),I=p.map(function(ee){return ee.required_donator_level}).filter(function(ee,oe,ue){return ue.indexOf(ee)===oe}).sort(function(ee,oe){return ee-oe}).map(function(ee){return f[ee]}),L=(0,a.useLocalState)(m,"selectedProviders",l),T=L[0],A=L[1],x=(0,a.useLocalState)(m,"selectedGenders",B.includes(V[N])?[V[N]]:B),E=x[0],M=x[1],j=(0,a.useLocalState)(m,"selectedCategories",b),P=j[0],R=j[1],D=(0,a.useLocalState)(m,"selectedDonatorLevels",I.includes(f[h])?I.slice(0,I.indexOf(f[h])+1):I),F=D[0],W=D[1],U=(0,a.useLocalState)(m,"selectedPhrase",g[0]),K=U[0],H=U[1],X=(0,a.useLocalState)(m,"searchtext",""),Y=X[0],J=X[1],ie=S(l,T,A,"name"),ce=S(B,E,M),fe=S(b,P,R),pe=S(I,F,W),he=(0,e.createComponentVNode)(2,t.Dropdown,{options:g,selected:K.replace(/(.{60})..+/,"$1..."),width:"445px",onSelected:function(){function ee(oe){return H(oe)}return ee}()}),te=(0,e.createComponentVNode)(2,t.Input,{placeholder:"\u041D\u0430\u0437\u0432\u0430\u043D\u0438\u0435...",width:"100%",onInput:function(){function ee(oe,ue){return J(ue)}return ee}()}),Q=p.sort(function(ee,oe){var ue=ee.name.toLowerCase(),re=oe.name.toLowerCase();return ue>re?1:ue0&&C!==ee.name?"orange":"white",children:ee.name}),(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,opacity:C===ee.name?.5:.25,textAlign:"left",children:ee.category}),(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,opacity:.5,textColor:C===ee.name?"white":y[ee.gender].color,textAlign:"left",children:(0,e.createComponentVNode)(2,t.Icon,{mx:1,size:1.2,name:y[ee.gender].icon})}),(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,opacity:.5,textColor:"white",textAlign:"right",children:ee.required_donator_level>0&&(0,e.createFragment)([f[ee.required_donator_level],(0,e.createComponentVNode)(2,t.Icon,{ml:1,mr:2,name:"coins"})],0)})]},ee.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:ie}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u041F\u043E\u043B",children:ce}),(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:he}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u041F\u043E\u0438\u0441\u043A",children:te})]})})}),(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 ee(){return R([])}return ee}()}),(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 ee(){return R(b)}return ee}()})],4),children:fe})}),(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 ("+Q.length+"/"+p.length+")",children:(0,e.createComponentVNode)(2,t.Table,{children:ae})})}),(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 i}()},39903:function(w,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),f=r.TachyonArray=function(){function y(S,k){var v=(0,a.useBackend)(k),i=v.act,c=v.data,m=c.records,d=m===void 0?[]:m,u=c.explosion_target,s=c.toxins_tech,l=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:u}),(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||l,align:"center",onClick:function(){function p(){return i("print_logs")}return p}()}),(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"trash",content:"Delete All Logs",disabled:!d.length,color:"bad",align:"center",onClick:function(){function p(){return i("delete_logs")}return p}()})]})]})}),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 v=(0,a.useBackend)(k),i=v.act,c=v.data,m=c.records,d=m===void 0?[]:m;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(u){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:u.logged_time}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:u.epicenter}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:u.actual_size_message}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:u.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 i("delete_record",{index:u.index})}return s}()})})]},u.index)})]})})})})}return y}()},17068:function(w,r,n){"use strict";r.__esModule=!0,r.Tank=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.Tank=function(){function V(y,S){var k=(0,a.useBackend)(S),v=k.act,i=k.data,c;return i.has_mask?c=(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Mask",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,width:"76%",icon:i.connected?"check":"times",content:i.connected?"Internals On":"Internals Off",selected:i.connected,onClick:function(){function m(){return v("internals")}return m}()})}):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:i.tankPressure/1013,ranges:{good:[.35,1/0],average:[.15,.35],bad:[-1/0,.15]},children:i.tankPressure+" kPa"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Release Pressure",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"fast-backward",disabled:i.ReleasePressure===i.minReleasePressure,tooltip:"Min",onClick:function(){function m(){return v("pressure",{pressure:"min"})}return m}()}),(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,value:parseFloat(i.releasePressure),width:"65px",unit:"kPa",minValue:i.minReleasePressure,maxValue:i.maxReleasePressure,onChange:function(){function m(d,u){return v("pressure",{pressure:u})}return m}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",disabled:i.ReleasePressure===i.maxReleasePressure,tooltip:"Max",onClick:function(){function m(){return v("pressure",{pressure:"max"})}return m}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"undo",content:"",disabled:i.ReleasePressure===i.defaultReleasePressure,tooltip:"Reset",onClick:function(){function m(){return v("pressure",{pressure:"reset"})}return m}()})]}),c]})})})})}return V}()},69161:function(w,r,n){"use strict";r.__esModule=!0,r.TankDispenser=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.TankDispenser=function(){function V(y,S){var k=(0,a.useBackend)(S),v=k.act,i=k.data,c=i.o_tanks,m=i.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 v("oxygen")}return d}()})}),(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{mt:1,fluid:!0,content:"Dispense Plasma Tank ("+m+")",disabled:m===0,icon:"arrow-circle-down",onClick:function(){function d(){return v("plasma")}return d}()})})]})})})}return V}()},87394:function(w,r,n){"use strict";r.__esModule=!0,r.TcommsCore=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.TcommsCore=function(){function v(i,c){var m=(0,a.useBackend)(c),d=m.act,u=m.data,s=u.ion,l=(0,a.useLocalState)(c,"tabIndex",0),p=l[0],C=l[1],g=function(){function h(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 h}();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:p===0,onClick:function(){function h(){return C(0)}return h}(),children:"Configuration"},"ConfigPage"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{icon:"link",selected:p===1,onClick:function(){function h(){return C(1)}return h}(),children:"Device Linkage"},"LinkagePage"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{icon:"user-times",selected:p===2,onClick:function(){function h(){return C(2)}return h}(),children:"User Filtering"},"FilterPage")]}),g(p)]})})}return v}(),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(i,c){var m=(0,a.useBackend)(c),d=m.act,u=m.data,s=u.active,l=u.sectors_available,p=u.nttc_toggle_jobs,C=u.nttc_toggle_job_color,g=u.nttc_toggle_name_color,h=u.nttc_toggle_command_bold,N=u.nttc_job_indicator_type,b=u.nttc_setting_language,B=u.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 d("toggle_active")}return I}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Sector Coverage",children:l})]})}),(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:p?"On":"Off",selected:p,icon:"user-tag",onClick:function(){function I(){return d("nttc_toggle_jobs")}return I}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Job Departmentalisation",children:(0,e.createComponentVNode)(2,t.Button,{content:C?"On":"Off",selected:C,icon:"clipboard-list",onClick:function(){function I(){return d("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 d("nttc_toggle_name_color")}return I}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Command Amplification",children:(0,e.createComponentVNode)(2,t.Button,{content:h?"On":"Off",selected:h,icon:"volume-up",onClick:function(){function I(){return d("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:N||"Unset",selected:N,icon:"pencil-alt",onClick:function(){function I(){return d("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 d("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 d("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 d("import")}return I}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Export Configuration",icon:"file-export",onClick:function(){function I(){return d("export")}return I}()})]})],4)},S=function(i,c){var m=(0,a.useBackend)(c),d=m.act,u=m.data,s=u.link_password,l=u.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 p(){return d("change_password")}return p}()})})}),(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"})]}),l.map(function(p){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:p.addr}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:p.net_id}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:p.sector}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:p.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 C(){return d("unlink",{addr:p.addr})}return C}()})})]},p.addr)})]})]})},k=function(i,c){var m=(0,a.useBackend)(c),d=m.act,u=m.data,s=u.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 l(){return d("add_filter")}return l}()}),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(l){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:l}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Remove",icon:"user-times",onClick:function(){function p(){return d("remove_filter",{user:l})}return p}()})})]},l)})]})})}},55684:function(w,r,n){"use strict";r.__esModule=!0,r.TcommsRelay=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.TcommsRelay=function(){function S(k,v){var i=(0,a.useBackend)(v),c=i.act,m=i.data,d=m.linked,u=m.active,s=m.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:u?"On":"Off",selected:u,icon:"power-off",onClick:function(){function l(){return c("toggle_active")}return l}()})}),(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 l(){return c("network_id")}return l}()})}),(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,v){var i=(0,a.useBackend)(v),c=i.act,m=i.data,d=m.linked_core_id,u=m.linked_core_addr,s=m.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:u}),(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 l(){return c("toggle_hidden_link")}return l}()})}),(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 l(){return c("unlink")}return l}()})})]})})},y=function(k,v){var i=(0,a.useBackend)(v),c=i.act,m=i.data,d=m.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(u){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:u.addr}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:u.net_id}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:u.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:u.addr})}return s}()})})]},u.addr)})]})})}},81088:function(w,r,n){"use strict";r.__esModule=!0,r.Teleporter=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.Teleporter=function(){function V(y,S){var k=(0,a.useBackend)(S),v=k.act,i=k.data,c=i.targetsTeleport?i.targetsTeleport:{},m=0,d=1,u=2,s=i.calibrated,l=i.calibrating,p=i.powerstation,C=i.regime,g=i.teleporterhub,h=i.target,N=i.locked,b=i.adv_beacon_allowed,B=i.advanced_beacon_locking;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:[(!p||!g)&&(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Error",children:[g,!p&&(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:" Powerstation not linked "}),p&&!g&&(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:" Teleporter hub not linked "})]}),p&&g&&(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Status",buttons:(0,e.createFragment)(!!b&&(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{inline:!0,color:"label",children:"Advanced Beacon Locking:\xA0"}),(0,e.createComponentVNode)(2,t.Button,{selected:B,icon:B?"toggle-on":"toggle-off",content:B?"Enabled":"Disabled",onClick:function(){function I(){return v("advanced_beacon_locking",{on:B?0:1})}return I}()})],4),0),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:[C===m&&(0,e.createComponentVNode)(2,t.Dropdown,{width:18.2,selected:h,disabled:l,options:Object.keys(c),color:h!=="None"?"default":"bad",onSelected:function(){function I(L){return v("settarget",{x:c[L].x,y:c[L].y,z:c[L].z,tptarget:c[L].pretarget})}return I}()}),C===d&&(0,e.createComponentVNode)(2,t.Dropdown,{width:18.2,selected:h,disabled:l,options:Object.keys(c),color:h!=="None"?"default":"bad",onSelected:function(){function I(L){return v("settarget",{x:c[L].x,y:c[L].y,z:c[L].z,tptarget:c[L].pretarget})}return I}()}),C===u&&(0,e.createComponentVNode)(2,t.Box,{children:h})]})]}),(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:C===d?"good":null,onClick:function(){function I(){return v("setregime",{regime:d})}return I}()})}),(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:C===m?"good":null,onClick:function(){function I(){return v("setregime",{regime:m})}return I}()})}),(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:C===u?"good":null,disabled:!N,onClick:function(){function I(){return v("setregime",{regime:u})}return I}()})})]}),(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:[h!=="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:l&&(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||l),onClick:function(){function I(){return v("calibrate")}return I}()})})]}),h==="None"&&(0,e.createComponentVNode)(2,t.Box,{lineHeight:"21px",children:"No target set"})]})]})]}),!!(N&&p&&g&&C===u)&&(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 I(){return v("load")}return I}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Eject",tooltip:"Ejects the GPS device",icon:"eject",onClick:function(){function I(){return v("eject")}return I}()})]})})]})})})})}return V}()},65875:function(w,r,n){"use strict";r.__esModule=!0,r.TelescienceConsole=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.TelescienceConsole=function(){function V(y,S){var k=(0,a.useBackend)(S),v=k.act,i=k.data,c=i.last_msg,m=i.linked_pad,d=i.held_gps,u=i.lastdata,s=i.power_levels,l=i.current_max_power,p=i.current_power,C=i.current_bearing,g=i.current_elevation,h=i.current_sector,N=i.working,b=i.max_z,B=(0,a.useLocalState)(S,"dummyrot",C),I=B[0],L=B[1];return(0,e.createComponentVNode)(2,o.Window,{width:400,height:500,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Status",children:(0,e.createFragment)([c,!(u.length>0)||(0,e.createVNode)(1,"ul",null,u.map(function(T){return(0,e.createVNode)(1,"li",null,T,0,null,T)}),0)],0)}),(0,e.createComponentVNode)(2,t.Section,{title:"Telepad Status",children:m===1?(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Current Bearing",children:(0,e.createComponentVNode)(2,t.Box,{inline:!0,position:"relative",children:[(0,e.createComponentVNode)(2,t.NumberInput,{unit:"\xB0",width:6.1,lineHeight:1.5,step:.1,minValue:0,maxValue:360,disabled:N,value:C,onDrag:function(){function T(A,x){return L(x)}return T}(),onChange:function(){function T(A,x){return v("setbear",{bear:x})}return T}()}),(0,e.createComponentVNode)(2,t.Icon,{ml:1,size:1,name:"arrow-up",rotation:I})]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Current Elevation",children:(0,e.createComponentVNode)(2,t.NumberInput,{width:6.1,lineHeight:1.5,step:.1,minValue:0,maxValue:100,disabled:N,value:g,onChange:function(){function T(A,x){return v("setelev",{elev:x})}return T}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power Level",children:s.map(function(T,A){return(0,e.createComponentVNode)(2,t.Button,{content:T,selected:p===T,disabled:A>=l-1||N,onClick:function(){function x(){return v("setpwr",{pwr:A+1})}return x}()},T)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Target Sector",children:(0,e.createComponentVNode)(2,t.NumberInput,{width:6.1,lineHeight:1.5,step:1,minValue:2,maxValue:b,value:h,disabled:N,onChange:function(){function T(A,x){return v("setz",{newz:x})}return T}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Telepad Actions",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Send",disabled:N,onClick:function(){function T(){return v("pad_send")}return T}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Receive",disabled:N,onClick:function(){function T(){return v("pad_receive")}return T}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Crystal Maintenance",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Recalibrate Crystals",disabled:N,onClick:function(){function T(){return v("recal_crystals")}return T}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Eject Crystals",disabled:N,onClick:function(){function T(){return v("eject_crystals")}return T}()})]})]}):(0,e.createFragment)([(0,e.createTextVNode)("No pad linked to console. Please use a multitool to link a pad.")],4)}),(0,e.createComponentVNode)(2,t.Section,{title:"GPS Actions",children:d===1?(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{disabled:d===0||N,content:"Eject GPS",onClick:function(){function T(){return v("eject_gps")}return T}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:d===0||N,content:"Store Coordinates",onClick:function(){function T(){return v("store_to_gps")}return T}()})],4):(0,e.createFragment)([(0,e.createTextVNode)("Please insert a GPS to store coordinates to it.")],4)})]})})}return V}()},96150:function(w,r,n){"use strict";r.__esModule=!0,r.TempGun=void 0;var e=n(96524),a=n(36121),t=n(17899),o=n(24674),f=n(45493),V=r.TempGun=function(){function v(i,c){var m=(0,t.useBackend)(c),d=m.act,u=m.data,s=u.target_temperature,l=u.temperature,p=u.max_temp,C=u.min_temp;return(0,e.createComponentVNode)(2,f.Window,{width:250,height:121,children:(0,e.createComponentVNode)(2,f.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:C,maxValue:p,value:s,format:function(){function g(h){return(0,a.toFixed)(h,2)}return g}(),width:"50px",onDrag:function(){function g(h,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(l),bold:l>500-273.15,children:[(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:(0,a.round)(l,2)}),"\xB0C"]})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Power Cost",children:(0,e.createComponentVNode)(2,o.Box,{color:k(l),children:S(l)})})]})})})})}return v}(),y=function(i){return i<=-100?"blue":i<=0?"teal":i<=100?"green":i<=200?"orange":"red"},S=function(i){return i<=100-273.15?"High":i<=250-273.15?"Medium":i<=300-273.15?"Low":i<=400-273.15?"Medium":"High"},k=function(i){return i<=100-273.15?"red":i<=250-273.15?"orange":i<=300-273.15?"green":i<=400-273.15?"orange":"red"}},95484:function(w,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),f=n(68100),V=n(24674),y=n(45493),S=r.sanitizeMultiline=function(){function c(m){return m.replace(/(\n|\r\n){3,}/,"\n\n")}return c}(),k=r.removeAllSkiplines=function(){function c(m){return m.replace(/[\r\n]+/,"")}return c}(),v=r.TextInputModal=function(){function c(m,d){var u=(0,o.useBackend)(d),s=u.act,l=u.data,p=l.max_length,C=l.message,g=C===void 0?"":C,h=l.multiline,N=l.placeholder,b=l.timeout,B=l.title,I=(0,o.useLocalState)(d,"input",N||""),L=I[0],T=I[1],A=function(){function M(j){if(j!==L){var P=h?S(j):k(j);T(P)}}return M}(),x=h||L.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===f.KEY_ENTER&&(!x||!j.shiftKey)&&s("submit",{entry:L}),P===f.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,i,{input:L,onType:A})}),(0,e.createComponentVNode)(2,V.Stack.Item,{children:(0,e.createComponentVNode)(2,t.InputButtons,{input:L,message:L.length+"/"+p})})]})})})]})}return c}(),i=function(m,d){var u=(0,o.useBackend)(d),s=u.act,l=u.data,p=l.max_length,C=l.multiline,g=m.input,h=m.onType,N=C||g.length>=40;return(0,e.createComponentVNode)(2,V.TextArea,{autoFocus:!0,autoSelect:!0,height:C||g.length>=40?"100%":"1.8rem",maxLength:p,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,I){return h(I)}return b}(),placeholder:"Type something...",value:g})}},378:function(w,r,n){"use strict";r.__esModule=!0,r.ThermoMachine=void 0;var e=n(96524),a=n(36121),t=n(17899),o=n(24674),f=n(45493),V=r.ThermoMachine=function(){function y(S,k){var v=(0,t.useBackend)(k),i=v.act,c=v.data;return(0,e.createComponentVNode)(2,f.Window,{width:300,height:225,children:(0,e.createComponentVNode)(2,f.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 m(d){return(0,a.toFixed)(d,2)}return m}()})," K"]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Pressure",children:[(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:c.pressure,format:function(){function m(d){return(0,a.toFixed)(d,2)}return m}()})," 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 m(){return i("power")}return m}()}),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 m(){return i("cooling")}return m}()})}),(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 m(){return i("target",{target:c.min})}return m}()}),(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 m(d,u){return i("target",{target:u})}return m}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"fast-forward",disabled:c.target===c.max,title:"Maximum Temperature",onClick:function(){function m(){return i("target",{target:c.max})}return m}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"sync",disabled:c.target===c.initial,title:"Room Temperature",onClick:function(){function m(){return i("target",{target:c.initial})}return m}()})]})]})})]})})}return y}()},3365:function(w,r,n){"use strict";r.__esModule=!0,r.TransferValve=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.TransferValve=function(){function V(y,S){var k=(0,a.useBackend)(S),v=k.act,i=k.data,c=i.tank_one,m=i.tank_two,d=i.attached_device,u=i.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:u?"unlock":"lock",content:u?"Open":"Closed",disabled:!c||!m,onClick:function(){function s(){return v("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 v("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 v("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 v("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:m?(0,e.createComponentVNode)(2,t.Button,{icon:"eject",content:m,disabled:!m,onClick:function(){function s(){return v("tanktwo")}return s}()}):(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"No Tank"})})})})]})})}return V}()},13860:function(w,r,n){"use strict";r.__esModule=!0,r.TurbineComputer=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=n(36121),V=r.TurbineComputer=function(){function k(v,i){var c=(0,a.useBackend)(i),m=c.act,d=c.data,u=d.compressor,s=d.compressor_broken,l=d.turbine,p=d.turbine_broken,C=d.online,g=!!(u&&!s&&l&&!p);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:C?"power-off":"times",content:C?"Online":"Offline",selected:C,disabled:!g,onClick:function(){function h(){return m("toggle_power")}return h}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"times",content:"Disconnect",onClick:function(){function h(){return m("disconnect")}return h}()})],4),children:g?(0,e.createComponentVNode)(2,S):(0,e.createComponentVNode)(2,y)})})})}return k}(),y=function(v,i){var c=(0,a.useBackend)(i),m=c.data,d=m.compressor,u=m.compressor_broken,s=m.turbine,l=m.turbine_broken,p=m.online;return(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Compressor Status",color:!d||u?"bad":"good",children:u?d?"Offline":"Missing":"Online"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Turbine Status",color:!s||l?"bad":"good",children:l?s?"Offline":"Missing":"Online"})]})},S=function(v,i){var c=(0,a.useBackend)(i),m=c.data,d=m.rpm,u=m.temperature,s=m.power,l=m.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:[u," 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:l,minValue:0,maxValue:100,ranges:{good:[-1/0,60],average:[60,90],bad:[90,1/0]},children:(0,f.toFixed)(l)+"%"})})]})}},22169:function(w,r,n){"use strict";r.__esModule=!0,r.Uplink=void 0;var e=n(96524),a=n(50640),t=n(74041),o=n(78234),f=n(17899),V=n(24674),y=n(45493),S=n(99665),k=function(C){switch(C){case 0:return(0,e.createComponentVNode)(2,i);case 1:return(0,e.createComponentVNode)(2,c);case 2:return(0,e.createComponentVNode)(2,l);default:return"SOMETHING WENT VERY WRONG PLEASE AHELP"}},v=r.Uplink=function(){function p(C,g){var h=(0,f.useBackend)(g),N=h.act,b=h.data,B=b.cart,I=(0,f.useLocalState)(g,"tabIndex",0),L=I[0],T=I[1],A=(0,f.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,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:L===0,onClick:function(){function M(){T(0),E("")}return M}(),icon:"store",children:"View Market"},"PurchasePage"),(0,e.createComponentVNode)(2,V.Tabs.Tab,{selected:L===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:L===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(L)})]})})]})}return p}(),i=function(C,g){var h=(0,f.useBackend)(g),N=h.act,b=h.data,B=b.crystals,I=b.cats,L=(0,f.useLocalState)(g,"uplinkItems",I[0].items),T=L[0],A=L[1],x=(0,f.useLocalState)(g,"searchText",""),E=x[0],M=x[1],j=function(U,K){K===void 0&&(K="");var H=(0,o.createSearch)(K,function(X){var Y=X.hijack_only===1?"|hijack":"";return X.name+"|"+X.desc+"|"+X.cost+"tc"+Y});return(0,t.flow)([(0,a.filter)(function(X){return X==null?void 0:X.name}),K&&(0,a.filter)(H),(0,a.sortBy)(function(X){return X==null?void 0:X.name})])(U)},P=function(U){if(M(U),U==="")return A(I[0].items);A(j(I.map(function(K){return K.items}).flat(),U))},R=(0,f.useLocalState)(g,"showDesc",1),D=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:D,onClick:function(){function W(){return F(!D)}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(U,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:I.map(function(W){return(0,e.createComponentVNode)(2,V.Tabs.Tab,{selected:E!==""?!1:W.items===T,onClick:function(){function U(){A(W.items),M("")}return U}(),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:D},(0,o.decodeHtmlEntities)(W.name))},(0,o.decodeHtmlEntities)(W.name))})})})})]})]})},c=function(C,g){var h=(0,f.useBackend)(g),N=h.act,b=h.data,B=b.cart,I=b.crystals,L=b.cart_price,T=(0,f.useLocalState)(g,"showDesc",0),A=T[0],x=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: "+I+"TC",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,V.Button.Checkbox,{content:"Show Descriptions",checked:A,onClick:function(){function E(){return x(!A)}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 ("+L+"TC)",icon:"shopping-cart",onClick:function(){function E(){return N("purchase_cart")}return E}(),disabled:!B||L>I})],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:A,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,m)]})},m=function(C,g){var h=(0,f.useBackend)(g),N=h.act,b=h.data,B=b.cats,I=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 L(){return N("shuffle_lucky_numbers")}return L}()}),children:(0,e.createComponentVNode)(2,V.Stack,{wrap:!0,children:I.map(function(L){return B[L.cat].items[L.item]}).filter(function(L){return L!=null}).map(function(L,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:L})},T)})})})})},d=function(C,g){var h=C.i,N=C.showDecription,b=N===void 0?1:N,B=C.buttons,I=B===void 0?(0,e.createComponentVNode)(2,u,{i:h}):B;return(0,e.createComponentVNode)(2,V.Section,{title:(0,o.decodeHtmlEntities)(h.name),showBottom:b,buttons:I,children:b?(0,e.createComponentVNode)(2,V.Box,{italic:!0,children:(0,o.decodeHtmlEntities)(h.desc)}):null})},u=function(C,g){var h=(0,f.useBackend)(g),N=h.act,b=h.data,B=C.i,I=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 L(){return N("add_to_cart",{item:B.obj_path})}return L}(),disabled:B.cost>I}),(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 L(){return N("buyItem",{item:B.obj_path})}return L}(),disabled:B.cost>I})],4)},s=function(C,g){var h=(0,f.useBackend)(g),N=h.act,b=h.data,B=C.i,I=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 L(){return N("remove_from_cart",{item:B.obj_path})}return L}()}),(0,e.createComponentVNode)(2,V.Button,{icon:"minus",tooltip:B.limit===0&&"Discount already redeemed!",ml:"5px",onClick:function(){function L(){return N("set_cart_item_quantity",{item:B.obj_path,quantity:--B.amount})}return L}(),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 L(T,A){return N("set_cart_item_quantity",{item:B.obj_path,quantity:A})}return L}(),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 L(){return N("set_cart_item_quantity",{item:B.obj_path,quantity:++B.amount})}return L}(),disabled:B.limit!==-1&&B.amount>=B.limit})]})},l=function(C,g){var h=(0,f.useBackend)(g),N=h.act,b=h.data,B=b.exploitable,I=(0,f.useLocalState)(g,"selectedRecord",B[0]),L=I[0],T=I[1],A=(0,f.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,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,D){return E(D)}return P}()}),(0,e.createComponentVNode)(2,V.Tabs,{vertical:!0,children:j.map(function(P){return(0,e.createComponentVNode)(2,V.Tabs.Tab,{selected:P===L,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:L.name,children:(0,e.createComponentVNode)(2,V.LabeledList,{children:[(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Age",children:L.age}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Fingerprint",children:L.fingerprint}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Rank",children:L.rank}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Sex",children:L.sex}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Species",children:L.species})]})})})]})}},70547:function(w,r,n){"use strict";r.__esModule=!0,r.Vending=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=function(S,k){var v=(0,a.useBackend)(k),i=v.act,c=v.data,m=S.product,d=S.productStock,u=S.productImage,s=c.chargesMoney,l=c.user,p=c.usermoney,C=c.inserted_cash,g=c.vend_ready,h=c.inserted_item_name,N=!s||m.price===0,b="ERROR!",B="";N?(b="FREE",B="arrow-circle-down"):(b=m.price,B="shopping-cart");var I=!g||d===0||!N&&m.price>p&&m.price>C;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,"+u,style:{"vertical-align":"middle",width:"32px",margin:"0px","margin-left":"0px"}})}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:m.name}),(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,t.Box,{color:d<=0&&"bad"||d<=m.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:I,icon:B,content:b,textAlign:"left",onClick:function(){function L(){return i("vend",{inum:m.inum})}return L}()})})]})},V=r.Vending=function(){function y(S,k){var v=(0,a.useBackend)(k),i=v.act,c=v.data,m=c.user,d=c.usermoney,u=c.inserted_cash,s=c.chargesMoney,l=c.product_records,p=l===void 0?[]:l,C=c.hidden_records,g=C===void 0?[]:C,h=c.stock,N=c.vend_ready,b=c.inserted_item_name,B=c.panel_open,I=c.speaker,L=c.imagelist,T;return T=[].concat(p),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 i("eject_item",{})}return A}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{disabled:!u,icon:"money-bill-wave-alt",content:u?(0,e.createFragment)([(0,e.createVNode)(1,"b",null,u,0),(0,e.createTextVNode)(" credits")],0):"Dispense Change",tooltip:u?"Dispense Change":null,textAlign:"left",onClick:function(){function A(){return i("change")}return A}()})})]}),children:m&&(0,e.createComponentVNode)(2,t.Box,{children:["Welcome, ",(0,e.createVNode)(1,"b",null,m.name,0),", ",(0,e.createVNode)(1,"b",null,m.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:I?"check":"volume-mute",selected:I,content:"Speaker",textAlign:"left",onClick:function(){function A(){return i("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,f,{product:A,productStock:h[A.name],productImage:L[A.path]},A.name)})})})})]})})})}return y}()},33045:function(w,r,n){"use strict";r.__esModule=!0,r.VolumeMixer=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.VolumeMixer=function(){function V(y,S){var k=(0,a.useBackend)(S),v=k.act,i=k.data,c=i.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(m,d){return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{fontSize:"1.25rem",color:"label",mt:d>0&&"0.5rem",children:m.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 u(){return v("volume",{channel:m.num,volume:0})}return u}()})})}),(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:m.volume,onChange:function(){function u(s,l){return v("volume",{channel:m.num,volume:l})}return u}()})}),(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 u(){return v("volume",{channel:m.num,volume:100})}return u}()})})})]})})],4,m.num)})})})})}return V}()},53792:function(w,r,n){"use strict";r.__esModule=!0,r.VotePanel=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.VotePanel=function(){function V(y,S){var k=(0,a.useBackend)(S),v=k.act,i=k.data,c=i.remaining,m=i.question,d=i.choices,u=i.user_vote,s=i.counts,l=i.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:m,children:[(0,e.createComponentVNode)(2,t.Box,{mb:1.5,ml:.5,children:["Time remaining: ",Math.round(c/10),"s"]}),d.map(function(p){return(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{mb:1,fluid:!0,lineHeight:3,color:"translucent",multiLine:p,content:p+(l?" ("+(s[p]||0)+")":""),onClick:function(){function C(){return v("vote",{target:p})}return C}(),selected:p===u})},p)})]})})})}return V}()},64860:function(w,r,n){"use strict";r.__esModule=!0,r.Wires=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.Wires=function(){function V(y,S){var k=(0,a.useBackend)(S),v=k.act,i=k.data,c=i.wires||[],m=i.status||[],d=56+c.length*23+(status?0:15+m.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(u){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{className:"candystripe",label:u.color_name,labelColor:u.seen_color,color:u.seen_color,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{content:u.cut?"Mend":"Cut",onClick:function(){function s(){return v("cut",{wire:u.color})}return s}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Pulse",onClick:function(){function s(){return v("pulse",{wire:u.color})}return s}()}),(0,e.createComponentVNode)(2,t.Button,{content:u.attached?"Detach":"Attach",onClick:function(){function s(){return v("attach",{wire:u.color})}return s}()})],4),children:!!u.wire&&(0,e.createVNode)(1,"i",null,[(0,e.createTextVNode)("("),u.wire,(0,e.createTextVNode)(")")],0)},u.seen_color)})})})}),!!m.length&&(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{children:m.map(function(u){return(0,e.createComponentVNode)(2,t.Box,{color:"lightgray",children:u},u)})})})]})})})}return V}()},78262:function(w,r,n){"use strict";r.__esModule=!0,r.WizardApprenticeContract=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),f=r.WizardApprenticeContract=function(){function V(y,S){var k=(0,a.useBackend)(S),v=k.act,i=k.data,c=i.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 m(){return v("fire")}return m}()})]}),(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 m(){return v("translocation")}return m}()})]}),(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 m(){return v("restoration")}return m}()})]}),(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 m(){return v("stealth")}return m}()})]}),(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 m(){return v("honk")}return m}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Divider)]})})]})})}return V}()},57842:function(w,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 f(v,i){var c=typeof Symbol!="undefined"&&v[Symbol.iterator]||v["@@iterator"];if(c)return(c=c.call(v)).next.bind(c);if(Array.isArray(v)||(c=V(v))||i&&v&&typeof v.length=="number"){c&&(v=c);var m=0;return function(){return m>=v.length?{done:!0}:{done:!1,value:v[m++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function V(v,i){if(v){if(typeof v=="string")return y(v,i);var c=Object.prototype.toString.call(v).slice(8,-1);if(c==="Object"&&v.constructor&&(c=v.constructor.name),c==="Map"||c==="Set")return Array.from(v);if(c==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(c))return y(v,i)}}function y(v,i){(i==null||i>v.length)&&(i=v.length);for(var c=0,m=new Array(i);c0&&!b.includes(D.ref)&&!h.includes(D.ref),checked:h.includes(D.ref),onClick:function(){function F(){return B(D.ref)}return F}()},D.desc)})]})]})})}return v}()},79449:function(w,r,n){"use strict";r.__esModule=!0,r.AtmosScan=void 0;var e=n(96524),a=n(50640),t=n(17899),o=n(24674),f=function(S,k,v,i,c){return Si?"average":S>c?"bad":"good"},V=r.AtmosScan=function(){function y(S,k){var v=S.data.aircontents;return(0,e.createComponentVNode)(2,o.Box,{children:(0,e.createComponentVNode)(2,o.LabeledList,{children:(0,a.filter)(function(i){return i.val!=="0"||i.entry==="Pressure"||i.entry==="Temperature"})(v).map(function(i){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:i.entry,color:f(i.val,i.bad_low,i.poor_low,i.poor_high,i.bad_high),children:[i.val,i.units]},i.entry)})})})}return y}()},1496:function(w,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")},f=r.BeakerContents=function(){function V(y){var S=y.beakerLoaded,k=y.beakerContents,v=k===void 0?[]:k,i=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."})||v.length===0&&(0,e.createComponentVNode)(2,a.Stack.Item,{color:"label",children:"Beaker is empty."}),v.map(function(c,m){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),!!i&&(0,e.createComponentVNode)(2,a.Stack.Item,{children:i(c,m)})]},c.name)})]})}return V}();f.propTypes={beakerLoaded:t.bool,beakerContents:t.array,buttons:t.arrayOf(t.element)}},69521:function(w,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 f(V,y){var S=(0,a.useBackend)(y),k=S.act,v=S.data,i=v.locked,c=v.noaccess,m=v.maintpanel,d=v.on,u=v.autopatrol,s=v.canhack,l=v.emagged,p=v.remote_disabled;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.NoticeBox,{children:["Swipe an ID card to ",i?"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 C(){return k("power")}return C}()})}),u!==null&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Patrol",children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:u,content:"Auto Patrol",disabled:c,onClick:function(){function C(){return k("autopatrol")}return C}()})}),!!m&&(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:l?"bad":"good",children:l?"DISABLED!":"Enabled"})}),!!s&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Hacking",children:(0,e.createComponentVNode)(2,t.Button,{icon:"terminal",content:l?"Restore Safties":"Hack",disabled:c,color:"bad",onClick:function(){function C(){return k("hack")}return C}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Remote Access",children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:!p,content:"AI Remote Control",disabled:c,onClick:function(){function C(){return k("disableremote")}return C}()})})]})})],4)}return f}()},99665:function(w,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={},f=r.modalOpen=function(){function v(i,c,m){var d=(0,a.useBackend)(i),u=d.act,s=d.data,l=Object.assign(s.modal?s.modal.args:{},m||{});u("modal_open",{id:c,arguments:JSON.stringify(l)})}return v}(),V=r.modalRegisterBodyOverride=function(){function v(i,c){o[i]=c}return v}(),y=r.modalAnswer=function(){function v(i,c,m,d){var u=(0,a.useBackend)(i),s=u.act,l=u.data;if(l.modal){var p=Object.assign(l.modal.args||{},d||{});s("modal_answer",{id:c,answer:m,arguments:JSON.stringify(p)})}}return v}(),S=r.modalClose=function(){function v(i,c){var m=(0,a.useBackend)(i),d=m.act;d("modal_close",{id:c})}return v}(),k=r.ComplexModal=function(){function v(i,c){var m=(0,a.useBackend)(c),d=m.data;if(d.modal){var u=d.modal,s=u.id,l=u.text,p=u.type,C,g=(0,e.createComponentVNode)(2,t.Button,{className:"Button--modal",icon:"arrow-left",content:"Cancel",onClick:function(){function L(){return S(c)}return L}()}),h,N,b="auto";if(o[s])h=o[s](d.modal,c);else if(p==="input"){var B=d.modal.value;C=function(){function L(T){return y(c,s,B)}return L}(),h=(0,e.createComponentVNode)(2,t.Input,{value:d.modal.value,placeholder:"ENTER to submit",width:"100%",my:"0.5rem",autofocus:!0,onChange:function(){function L(T,A){B=A}return L}()}),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 L(){return S(c)}return L}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"check",content:"Confirm",color:"good",float:"right",m:"0",onClick:function(){function L(){return y(c,s,B)}return L}()}),(0,e.createComponentVNode)(2,t.Box,{clear:"both"})]})}else if(p==="choice"){var I=typeof d.modal.choices=="object"?Object.values(d.modal.choices):d.modal.choices;h=(0,e.createComponentVNode)(2,t.Dropdown,{options:I,selected:d.modal.value,width:"100%",my:"0.5rem",onSelected:function(){function L(T){return y(c,s,T)}return L}()}),b="initial"}else p==="bento"?h=(0,e.createComponentVNode)(2,t.Stack,{spacingPrecise:"1",wrap:"wrap",my:"0.5rem",maxHeight:"1%",children:d.modal.choices.map(function(L,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 A(){return y(c,s,T+1)}return A}(),children:(0,e.createVNode)(1,"img",null,null,1,{src:L})})},T)})}):p==="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 L(){return y(c,s,0)}return L}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"check",content:d.modal.yes_text,color:"good",float:"right",m:"0",onClick:function(){function L(){return y(c,s,1)}return L}()}),(0,e.createComponentVNode)(2,t.Box,{clear:"both"})]}));return(0,e.createComponentVNode)(2,t.Modal,{maxWidth:i.maxWidth||window.innerWidth/2+"px",maxHeight:i.maxHeight||window.innerHeight/2+"px",onEnter:C,mx:"auto",overflowY:b,"padding-bottom":"5px",children:[l&&(0,e.createComponentVNode)(2,t.Box,{inline:!0,children:l}),o[s]&&g,h,N]})}}return v}()},98444:function(w,r,n){"use strict";r.__esModule=!0,r.CrewManifest=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(78234),f=n(38424),V=f.COLORS.department,y=["Captain","Head of Security","Chief Engineer","Chief Medical Officer","Research Director","Head of Personnel","Quartermaster"],S=function(m){return y.indexOf(m)!==-1?"green":"orange"},k=function(m){if(y.indexOf(m)!==-1)return!0},v=function(m){return m.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"})]}),m.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)})]})},i=r.CrewManifest=function(){function c(m,d){var u=(0,a.useBackend)(d),s=u.act,l;if(m.data)l=m.data;else{var p=(0,a.useBackend)(d),C=p.data;l=C}var g=l,h=g.manifest,N=h.heads,b=h.sec,B=h.eng,I=h.med,L=h.sci,T=h.ser,A=h.sup,x=h.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:v(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:v(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:v(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:v(I)}),(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:v(L)}),(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:v(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:v(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:v(x)})]})}return c}()},15113:function(w,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 f(V,y){var S=(0,t.useBackend)(y),k=S.act,v=S.data,i=v.large_buttons,c=v.swapped_buttons,m=V.input,d=V.message,u=V.disabled,s=(0,e.createComponentVNode)(2,a.Button,{color:"good",content:"Submit",bold:!!i,fluid:!!i,onClick:function(){function p(){return k("submit",{entry:m})}return p}(),textAlign:"center",tooltip:i&&d,disabled:u,width:!i&&6}),l=(0,e.createComponentVNode)(2,a.Button,{color:"bad",content:"Cancel",bold:!!i,fluid:!!i,onClick:function(){function p(){return k("cancel")}return p}(),textAlign:"center",width:!i&&6});return(0,e.createComponentVNode)(2,a.Flex,{fill:!0,align:"center",direction:c?"row-reverse":"row",justify:"space-around",children:[i?(0,e.createComponentVNode)(2,a.Flex.Item,{grow:!0,ml:c?.5:0,mr:c?0:.5,children:l}):(0,e.createComponentVNode)(2,a.Flex.Item,{children:l}),!i&&d&&(0,e.createComponentVNode)(2,a.Flex.Item,{children:(0,e.createComponentVNode)(2,a.Box,{color:"label",textAlign:"center",children:d})}),i?(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 f}()},26893:function(w,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 f(V,y){var S=(0,a.useBackend)(y),k=S.act,v=S.data,i=V.siliconUser,c=i===void 0?v.siliconUser:i,m=V.locked,d=m===void 0?v.locked:m,u=V.normallyLocked,s=u===void 0?v.normallyLocked:u,l=V.onLockStatusChange,p=l===void 0?function(){return k("lock")}:l,C=V.accessText,g=C===void 0?"an ID card":C;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 h(){p&&p(!d)}return h}()})})]})}):(0,e.createComponentVNode)(2,t.NoticeBox,{children:["Swipe ",g," to ",d?"unlock":"lock"," this interface."]})}return f}()},14299:function(w,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 f(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 f}()},68159:function(w,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 f(V,y){var S=(0,a.useBackend)(y),k=S.act,v=S.data,i=v.loginState;if(v)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: ",i.name," (",i.rank,")"]}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"eject",disabled:!i.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 f}()},27527:function(w,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 f(V,y){var S=(0,a.useBackend)(y),k=S.act,v=S.data,i=v.loginState,c=v.isAI,m=v.isRobot,d=v.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:i.id?i.id:"----------",ml:"0.5rem",onClick:function(){function u(){return k("login_insert")}return u}()})]}),(0,e.createComponentVNode)(2,t.Button,{icon:"sign-in-alt",disabled:!i.id,content:"Login",onClick:function(){function u(){return k("login_login",{login_type:1})}return u}()}),!!c&&(0,e.createComponentVNode)(2,t.Button,{icon:"sign-in-alt",content:"Login as AI",onClick:function(){function u(){return k("login_login",{login_type:2})}return u}()}),!!m&&(0,e.createComponentVNode)(2,t.Button,{icon:"sign-in-alt",content:"Login as Cyborg",onClick:function(){function u(){return k("login_login",{login_type:3})}return u}()}),!!d&&(0,e.createComponentVNode)(2,t.Button,{icon:"sign-in-alt",content:"CentComm Secure Login",onClick:function(){function u(){return k("login_login",{login_type:4})}return u}()})]})})})}return f}()},75201:function(w,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 f(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 f}();o.propTypes={operating:t.bool,name:t.string}},65435:function(w,r,n){"use strict";r.__esModule=!0,r.Signaler=void 0;var e=n(96524),a=n(36121),t=n(17899),o=n(24674),f=r.Signaler=function(){function V(y,S){var k=(0,t.useBackend)(S),v=k.act,i=y.data,c=i.code,m=i.frequency,d=i.minFrequency,u=i.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:u/10,value:m/10,format:function(){function s(l){return(0,a.toFixed)(l,1)}return s}(),width:"80px",onDrag:function(){function s(l,p){return v("freq",{freq:p})}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(l,p){return v("code",{code:p})}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 v("signal")}return s}()})]})}return V}()},77534:function(w,r,n){"use strict";r.__esModule=!0,r.SimpleRecords=void 0;var e=n(96524),a=n(17899),t=n(78234),o=n(74041),f=n(50640),V=n(24674),y=r.SimpleRecords=function(){function v(i,c){var m=i.data.records;return(0,e.createComponentVNode)(2,V.Box,{children:m?(0,e.createComponentVNode)(2,k,{data:i.data,recordType:i.recordType}):(0,e.createComponentVNode)(2,S,{data:i.data})})}return v}(),S=function(i,c){var m=(0,a.useBackend)(c),d=m.act,u=i.data.recordsList,s=(0,a.useLocalState)(c,"searchText",""),l=s[0],p=s[1],C=function(N,b){b===void 0&&(b="");var B=(0,t.createSearch)(b,function(I){return I.Name});return(0,o.flow)([(0,f.filter)(function(I){return I==null?void 0:I.Name}),b&&(0,f.filter)(B),(0,f.sortBy)(function(I){return I.Name})])(u)},g=C(u,l);return(0,e.createComponentVNode)(2,V.Box,{children:[(0,e.createComponentVNode)(2,V.Input,{fluid:!0,mb:1,placeholder:"Search records...",onInput:function(){function h(N,b){return p(b)}return h}()}),g.map(function(h){return(0,e.createComponentVNode)(2,V.Box,{children:(0,e.createComponentVNode)(2,V.Button,{mb:.5,content:h.Name,icon:"user",onClick:function(){function N(){return d("Records",{target:h.uid})}return N}()})},h)})]})},k=function(i,c){var m=(0,a.useBackend)(c),d=m.act,u=i.data.records,s=u.general,l=u.medical,p=u.security,C;switch(i.recordType){case"MED":C=(0,e.createComponentVNode)(2,V.Section,{level:2,title:"Medical Data",children:l?(0,e.createComponentVNode)(2,V.LabeledList,{children:[(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Blood Type",children:l.blood_type}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Minor Disabilities",children:l.mi_dis}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Details",children:l.mi_dis_d}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Major Disabilities",children:l.ma_dis}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Details",children:l.ma_dis_d}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Allergies",children:l.alg}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Details",children:l.alg_d}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Current Diseases",children:l.cdi}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Details",children:l.cdi_d}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Important Notes",preserveWhitespace:!0,children:l.notes})]}):(0,e.createComponentVNode)(2,V.Box,{color:"red",bold:!0,children:"Medical record lost!"})});break;case"SEC":C=(0,e.createComponentVNode)(2,V.Section,{level:2,title:"Security Data",children:p?(0,e.createComponentVNode)(2,V.LabeledList,{children:[(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Criminal Status",children:p.criminal}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Minor Crimes",children:p.mi_crim}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Details",children:p.mi_crim_d}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Major Crimes",children:p.ma_crim}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Details",children:p.ma_crim_d}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Important Notes",preserveWhitespace:!0,children:p.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!"})}),C]})}},84537:function(w,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 f(V,y){var S,k=(0,a.useBackend)(y),v=k.act,i=k.data,c=i.temp;if(c){var m=(S={},S[c.style]=!0,S);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,t.NoticeBox,Object.assign({},m,{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 v("cleartemp")}return d}()})})]})})))}}return f}()},24704:function(w,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 f(V,y){var S=(0,a.useBackend)(y),k=S.act,v=S.data;return(0,e.createComponentVNode)(2,t.AtmosScan,{data:v.app_data})}return f}()},4209:function(w,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 f(V,y){var S=(0,a.useBackend)(y),k=S.act,v=S.data,i=v.app_data,c=i.holder,m=i.dead,d=i.health,u=i.brute,s=i.oxy,l=i.tox,p=i.burn,C=i.temp;return c?(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:m?(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:l})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Burn Damage",children:(0,e.createComponentVNode)(2,t.Box,{color:"orange",children:p})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Brute Damage",children:(0,e.createComponentVNode)(2,t.Box,{color:"red",children:u})})]}):(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Error: No biological host found."})}return f}()},44430:function(w,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 f(V,y){var S=(0,a.useBackend)(y),k=S.act,v=S.data,i=v.app_data,c=i.master,m=i.dna,d=i.prime,u=i.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+" ("+m+")":"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:u||"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 f}()},3367:function(w,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 f(V,y){var S=(0,a.useBackend)(y),k=S.act,v=S.data,i=v.app_data,c=i.cable,m=i.machine,d=i.inprogress,u=i.progress,s=i.aborted,l;m?l=(0,e.createComponentVNode)(2,t.Button,{selected:!0,content:"Connected"}):l=(0,e.createComponentVNode)(2,t.Button,{content:c?"Extended":"Retracted",color:c?"orange":null,onClick:function(){function C(){return k("cable")}return C}()});var p;return m&&(p=(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:u,maxValue:100}),d?(0,e.createComponentVNode)(2,t.Button,{mt:1,color:"red",content:"Abort",onClick:function(){function C(){return k("cancel")}return C}()}):(0,e.createComponentVNode)(2,t.Button,{mt:1,content:"Start",onClick:function(){function C(){return k("jack")}return C}()})]})),(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cable",children:l}),p]})}return f}()},73395:function(w,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 f(V,y){var S=(0,a.useBackend)(y),k=S.act,v=S.data,i=v.app_data,c=i.available_software,m=i.installed_software,d=i.installed_toggles,u=i.available_ram,s=i.emotions,l=i.current_emotion,p=i.speech_verbs,C=i.current_speech_verb,g=i.available_chassises,h=i.current_chassis,N=[];return m.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:u}),(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>u,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:[m.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)}),m.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===l,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:p.map(function(b){return(0,e.createComponentVNode)(2,t.Button,{content:b.name,selected:b.name===C,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===h,onClick:function(){function B(){return k("setChassis",{chassis_to_change:b.icon})}return B}()},b.id)})})]})})}return f}()},37645:function(w,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 f(V,y){var S=(0,a.useBackend)(y),k=S.act,v=S.data;return(0,e.createComponentVNode)(2,t.CrewManifest,{data:v.app_data})}return f}()},15836:function(w,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 f(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 f}()},91737:function(w,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 f(V,y){var S=(0,a.useBackend)(y),k=S.act,v=S.data,i=v.app_data.active_convo;return i?(0,e.createComponentVNode)(2,t.ActiveConversation,{data:v.app_data}):(0,e.createComponentVNode)(2,t.MessengerList,{data:v.app_data})}return f}()},94077:function(w,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),f=r.pai_radio=function(){function V(y,S){var k=(0,a.useBackend)(S),v=k.act,i=k.data,c=i.app_data,m=c.minFrequency,d=c.maxFrequency,u=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:m/10,maxValue:d/10,value:u/10,format:function(){function l(p){return(0,t.toFixed)(p,1)}return l}(),onChange:function(){function l(p,C){return v("freq",{freq:C})}return l}()}),(0,e.createComponentVNode)(2,o.Button,{tooltip:"Reset",icon:"undo",onClick:function(){function l(){return v("freq",{freq:"145.9"})}return l}()})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Broadcast Nearby Speech",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function l(){return v("toggleBroadcast")}return l}(),selected:s,content:s?"Enabled":"Disabled"})})]})}return V}()},72621:function(w,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 f(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 f}()},53483:function(w,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 f(V,y){var S=(0,a.useBackend)(y),k=S.act,v=S.data;return(0,e.createComponentVNode)(2,t.Signaler,{data:v.app_data})}return f}()},21606:function(w,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 f(V,y){var S=(0,a.useBackend)(y),k=S.data;return(0,e.createComponentVNode)(2,t.AtmosScan,{data:k})}return f}()},12339:function(w,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 f(V,y){var S=(0,a.useBackend)(y),k=S.act,v=S.data,i=v.janitor,c=i.user_loc,m=i.mops,d=i.buckets,u=i.cleanbots,s=i.carts,l=i.janicarts;return(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Current Location",children:[c.x,",",c.y]}),m&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Mop Locations",children:m.map(function(p){return(0,e.createComponentVNode)(2,t.Box,{children:[p.x,",",p.y," (",p.dir,") - ",p.status]},p)})}),d&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Mop Bucket Locations",children:d.map(function(p){return(0,e.createComponentVNode)(2,t.Box,{children:[p.x,",",p.y," (",p.dir,") - [",p.volume,"/",p.max_volume,"]"]},p)})}),u&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cleanbot Locations",children:u.map(function(p){return(0,e.createComponentVNode)(2,t.Box,{children:[p.x,",",p.y," (",p.dir,") - ",p.status]},p)})}),s&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Janitorial Cart Locations",children:s.map(function(p){return(0,e.createComponentVNode)(2,t.Box,{children:[p.x,",",p.y," (",p.dir,") - [",p.volume,"/",p.max_volume,"]"]},p)})}),l&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Janicart Locations",children:l.map(function(p){return(0,e.createComponentVNode)(2,t.Box,{children:[p.x,",",p.y," (",p.direction_from_user,")"]},p)})})]})}return f}()},36615:function(w,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),f=r.pda_main_menu=function(){function V(y,S){var k=(0,t.useBackend)(S),v=k.act,i=k.data,c=i.owner,m=i.ownjob,d=i.idInserted,u=i.categories,s=i.pai,l=i.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,", ",m]}),(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 p(){return v("UpdateInfo")}return p}()})})]})})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Section,{title:"Functions",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:u.map(function(p){var C=i.apps[p];return!C||!C.length?null:(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:p,children:C.map(function(g){return(0,e.createComponentVNode)(2,o.Button,{icon:g.uid in l?g.notify_icon:g.icon,iconSpin:g.uid in l,color:g.uid in l?"red":"transparent",content:g.name,onClick:function(){function h(){return v("StartProgram",{program:g.uid})}return h}()},g.uid)})},p)})})})}),(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 p(){return v("pai",{option:1})}return p}()}),(0,e.createComponentVNode)(2,o.Button,{fluid:!0,icon:"eject",content:"Eject pAI",onClick:function(){function p(){return v("pai",{option:2})}return p}()})]})})]})}return V}()},99737:function(w,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 f(V,y){var S=(0,a.useBackend)(y),k=S.act,v=S.data;return(0,e.createComponentVNode)(2,t.CrewManifest)}return f}()},61597:function(w,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 f(V,y){var S=(0,a.useBackend)(y),k=S.data;return(0,e.createComponentVNode)(2,t.SimpleRecords,{data:k,recordType:"MED"})}return f}()},30709:function(w,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),f=r.pda_messenger=function(){function k(v,i){var c=(0,t.useBackend)(i),m=c.act,d=c.data,u=d.active_convo;return u?(0,e.createComponentVNode)(2,V,{data:d}):(0,e.createComponentVNode)(2,y,{data:d})}return k}(),V=r.ActiveConversation=function(){function k(v,i){var c=(0,t.useBackend)(i),m=c.act,d=v.data,u=d.convo_name,s=d.convo_job,l=d.messages,p=d.active_convo,C=(0,t.useLocalState)(i,"clipboardMode",!1),g=C[0],h=C[1],N=(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"Conversation with "+u+" ("+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 h(!g)}return b}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"comment",onClick:function(){function b(){return m("Message",{target:p})}return b}(),content:"Reply"})],4),children:(0,a.filter)(function(b){return b.target===p})(l).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 "+u+" ("+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 h(!g)}return b}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"comment",onClick:function(){function b(){return m("Message",{target:p})}return b}(),content:"Reply"})],4),children:(0,a.filter)(function(b){return b.target===p})(l).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 m("Clear",{option:"Convo"})}return b}()})})})}),N]})}return k}(),y=r.MessengerList=function(){function k(v,i){var c=(0,t.useBackend)(i),m=c.act,d=v.data,u=d.convopdas,s=d.pdas,l=d.charges,p=d.silent,C=d.toff,g=d.ringtone_list,h=d.ringtone,N=(0,t.useLocalState)(i,"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:!p,icon:p?"volume-mute":"volume-up",onClick:function(){function I(){return m("Toggle Ringer")}return I}(),children:["Ringer: ",p?"Off":"On"]}),(0,e.createComponentVNode)(2,o.Button,{color:C?"bad":"green",icon:"power-off",onClick:function(){function I(){return m("Toggle Messenger")}return I}(),children:["Messenger: ",C?"Off":"On"]}),(0,e.createComponentVNode)(2,o.Button,{icon:"trash",color:"bad",onClick:function(){function I(){return m("Clear",{option:"All"})}return I}(),children:"Delete All Conversations"}),(0,e.createComponentVNode)(2,o.Button,{icon:"bell",onClick:function(){function I(){return m("Ringtone")}return I}(),children:"Set Custom Ringtone"}),(0,e.createComponentVNode)(2,o.Button,{children:(0,e.createComponentVNode)(2,o.Dropdown,{selected:h,width:"100px",options:Object.keys(g),onSelected:function(){function I(L){return m("Available_Ringtones",{selected_ringtone:L})}return I}()})})]})}),!C&&(0,e.createComponentVNode)(2,o.Box,{children:[!!l&&(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:[l," charges left."]})})}),!u.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(L,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:d,pdas:u,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(v,i){var c=(0,t.useBackend)(i),m=c.act,d=v.data,u=v.pdas,s=v.title,l=v.msgAct,p=v.searchTerm,C=d.charges,g=d.plugins;return!u||!u.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:u.filter(function(h){return h.Name.toLowerCase().includes(p.toLowerCase())}).map(function(h){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:h.Name,onClick:function(){function N(){return m(l,{target:h.uid})}return N}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:!!C&&g.map(function(N){return(0,e.createComponentVNode)(2,o.Button,{icon:N.icon,content:N.name,onClick:function(){function b(){return m("Messenger Plugin",{plugin:N.uid,target:h.uid})}return b}()},N.uid)})})]},h.uid)})})}},68053:function(w,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 v=(0,a.useBackend)(k),i=v.act,c=v.data,m=c.mulebot,d=m.active;return(0,e.createComponentVNode)(2,t.Box,{children:d?(0,e.createComponentVNode)(2,V):(0,e.createComponentVNode)(2,f)})}return y}(),f=function(S,k){var v=(0,a.useBackend)(k),i=v.act,c=v.data,m=c.mulebot,d=m.bots;return d.map(function(u){return(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:u.Name,icon:"cog",onClick:function(){function s(){return i("control",{bot:u.uid})}return s}()})},u.Name)})},V=function(S,k){var v=(0,a.useBackend)(k),i=v.act,c=v.data,m=c.mulebot,d=m.botstatus,u=m.active,s=d.mode,l=d.loca,p=d.load,C=d.powr,g=d.dest,h=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:u,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:l}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:B}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power",children:[C,"%"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Home",children:h}),(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 i("target")}return I}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Current Load",children:(0,e.createComponentVNode)(2,t.Button,{content:p?p+" (Unload)":"None",disabled:!p,onClick:function(){function I(){return i("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 i("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:N?"Yes":"No",selected:N,onClick:function(){function I(){return i("set_auto_return",{autoret:N?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 i("stop")}return I}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Proceed",icon:"play",onClick:function(){function I(){return i("start")}return I}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Return Home",icon:"home",onClick:function(){function I(){return i("home")}return I}()})]})]})]})}},31728:function(w,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),f=r.pda_nanobank=function(){function d(u,s){var l=(0,t.useBackend)(s),p=l.act,C=l.data,g=C.logged_in,h=C.owner_name,N=C.money;return g?(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:h}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Account Balance",children:["$",N]})]})}),(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,V),(0,e.createComponentVNode)(2,y)]})],4):(0,e.createComponentVNode)(2,i)}return d}(),V=function(u,s){var l=(0,t.useBackend)(s),p=l.data,C=p.is_premium,g=(0,t.useLocalState)(s,"tabIndex",1),h=g[0],N=g[1];return(0,e.createComponentVNode)(2,o.Tabs,{mt:2,children:[(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:h===1,onClick:function(){function b(){return N(1)}return b}(),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 b(){return N(2)}return b}(),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 b(){return N(3)}return b}(),children:[(0,e.createComponentVNode)(2,o.Icon,{mr:1,name:"list"}),"Transaction History"]}),!!C&&(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:h===4,onClick:function(){function b(){return N(4)}return b}(),children:[(0,e.createComponentVNode)(2,o.Icon,{mr:1,name:"list"}),"Supply Orders"]})]})},y=function(u,s){var l=(0,t.useLocalState)(s,"tabIndex",1),p=l[0],C=(0,t.useBackend)(s),g=C.data,h=g.db_status;if(!h)return(0,e.createComponentVNode)(2,o.Box,{children:"Account Database Connection Severed"});switch(p){case 1:return(0,e.createComponentVNode)(2,S);case 2:return(0,e.createComponentVNode)(2,k);case 3:return(0,e.createComponentVNode)(2,v);case 4:return(0,e.createComponentVNode)(2,m);default:return"You are somehow on a tab that doesn't exist! Please let a coder know."}},S=function(u,s){var l,p=(0,t.useBackend)(s),C=p.act,g=p.data,h=g.requests,N=g.available_accounts,b=g.money,B=(0,t.useLocalState)(s,"selectedAccount"),I=B[0],L=B[1],T=(0,t.useLocalState)(s,"transferAmount"),A=T[0],x=T[1],E=(0,t.useLocalState)(s,"searchText",""),M=E[0],j=E[1],P=[];return N.map(function(R){return P[R.name]=R.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 R(D,F){return j(F)}return R}()}),(0,e.createComponentVNode)(2,o.Dropdown,{mt:.6,width:"190px",options:N.filter((0,a.createSearch)(M,function(R){return R.name})).map(function(R){return R.name}),selected:(l=N.filter(function(R){return R.UID===I})[0])==null?void 0:l.name,onSelected:function(){function R(D){return L(P[D])}return R}()})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Amount",children:(0,e.createComponentVNode)(2,o.Input,{placeholder:"Up to 5000",onInput:function(){function R(D,F){return x(F)}return R}()})}),(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:b0&&l.map(function(C){return(0,e.createComponentVNode)(2,t.Box,{children:["#",C.Number,' - "',C.Name,'" for "',C.OrderedBy,'"']},C)})}),(0,e.createComponentVNode)(2,t.Section,{title:"Approved Orders",children:s>0&&u.map(function(C){return(0,e.createComponentVNode)(2,t.Box,{children:["#",C.Number,' - "',C.Name,'" for "',C.ApprovedBy,'"']},C)})})]})}return f}()},61255:function(w,r,n){"use strict";r.__esModule=!0,r.Layout=void 0;var e=n(96524),a=n(28234),t=n(3051),o=n(92700),f=["className","theme","children"],V=["className","scrollable","children"];/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */function y(C,u){if(C==null)return{};var c={},m=Object.keys(C),d,l;for(l=0;l=0)&&(c[d]=C[d]);return c}var S=r.Layout=function(){function C(u){var c=u.className,m=u.theme,d=m===void 0?"nanotrasen":m,l=u.children,s=y(u,f);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))),l,0,Object.assign({},(0,t.computeBoxProps)(s)))),2)}return C}(),k=function(u){var c=u.className,m=u.scrollable,d=u.children,l=y(u,V);return(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,a.classes)(["Layout__content",m&&"Layout__content--scrollable",c,(0,t.computeBoxClassName)(l)]),d,0,Object.assign({},(0,t.computeBoxProps)(l))))};k.defaultHooks={onComponentDidMount:function(){function C(u){return(0,o.addScrollableNode)(u)}return C}(),onComponentWillUnmount:function(){function C(u){return(0,o.removeScrollableNode)(u)}return C}()},S.Content=k},12599:function(w,r,n){"use strict";r.__esModule=!0,r.Pane=void 0;var e=n(96524),a=n(28234),t=n(17899),o=n(24674),f=n(90781),V=n(61255),y=["theme","children","className"],S=["className","fitted","children"];/** + */function y(v,i){if(v==null)return{};var c={},m=Object.keys(v),d,u;for(u=0;u=0)&&(c[d]=v[d]);return c}var S=r.Layout=function(){function v(i){var c=i.className,m=i.theme,d=m===void 0?"nanotrasen":m,u=i.children,s=y(i,f);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))),u,0,Object.assign({},(0,t.computeBoxProps)(s)))),2)}return v}(),k=function(i){var c=i.className,m=i.scrollable,d=i.children,u=y(i,V);return(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,a.classes)(["Layout__content",m&&"Layout__content--scrollable",c,(0,t.computeBoxClassName)(u)]),d,0,Object.assign({},(0,t.computeBoxProps)(u))))};k.defaultHooks={onComponentDidMount:function(){function v(i){return(0,o.addScrollableNode)(i)}return v}(),onComponentWillUnmount:function(){function v(i){return(0,o.removeScrollableNode)(i)}return v}()},S.Content=k},12599:function(w,r,n){"use strict";r.__esModule=!0,r.Pane=void 0;var e=n(96524),a=n(28234),t=n(17899),o=n(24674),f=n(90781),V=n(61255),y=["theme","children","className"],S=["className","fitted","children"];/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */function k(c,m){if(c==null)return{};var d={},l=Object.keys(c),s,i;for(i=0;i=0)&&(d[s]=c[s]);return d}var C=r.Pane=function(){function c(m,d){var l=m.theme,s=m.children,i=m.className,p=k(m,y),v=(0,t.useBackend)(d),g=v.suspended,h=(0,f.useDebug)(d),N=h.debugLayout;return(0,e.normalizeProps)((0,e.createComponentVNode)(2,V.Layout,Object.assign({className:(0,a.classes)(["Window",i]),theme:l},p,{children:(0,e.createComponentVNode)(2,o.Box,{fillPositionedParent:!0,className:N&&"debug-layout",children:!g&&s})})))}return c}(),u=function(m){var d=m.className,l=m.fitted,s=m.children,i=k(m,S);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,V.Layout.Content,Object.assign({className:(0,a.classes)(["Window__content",d])},i,{children:l&&s||(0,e.createVNode)(1,"div","Window__contentPadding",s,0)})))};C.Content=u},28861:function(w,r,n){"use strict";r.__esModule=!0,r.Window=void 0;var e=n(96524),a=n(28234),t=n(88605),o=n(78234),f=n(17899),V=n(24674),y=n(38424),S=n(90781),k=n(82574),C=n(83987),u=n(81856),c=n(61255),m=["className","fitted","children"];function d(b,B){if(b==null)return{};var I={},L=Object.keys(b),T,A;for(A=0;A=0)&&(I[T]=b[T]);return I}function l(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(L,T){return L.__proto__=T,L}return I}(),s(b,B)}/** + */function k(c,m){if(c==null)return{};var d={},u=Object.keys(c),s,l;for(l=0;l=0)&&(d[s]=c[s]);return d}var v=r.Pane=function(){function c(m,d){var u=m.theme,s=m.children,l=m.className,p=k(m,y),C=(0,t.useBackend)(d),g=C.suspended,h=(0,f.useDebug)(d),N=h.debugLayout;return(0,e.normalizeProps)((0,e.createComponentVNode)(2,V.Layout,Object.assign({className:(0,a.classes)(["Window",l]),theme:u},p,{children:(0,e.createComponentVNode)(2,o.Box,{fillPositionedParent:!0,className:N&&"debug-layout",children:!g&&s})})))}return c}(),i=function(m){var d=m.className,u=m.fitted,s=m.children,l=k(m,S);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,V.Layout.Content,Object.assign({className:(0,a.classes)(["Window__content",d])},l,{children:u&&s||(0,e.createVNode)(1,"div","Window__contentPadding",s,0)})))};v.Content=i},28861:function(w,r,n){"use strict";r.__esModule=!0,r.Window=void 0;var e=n(96524),a=n(28234),t=n(88605),o=n(78234),f=n(17899),V=n(24674),y=n(38424),S=n(90781),k=n(82574),v=n(83987),i=n(81856),c=n(61255),m=["className","fitted","children"];function d(b,B){if(b==null)return{};var I={},L=Object.keys(b),T,A;for(A=0;A=0)&&(I[T]=b[T]);return I}function u(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(L,T){return L.__proto__=T,L}return I}(),s(b,B)}/** * @file * @copyright 2020 Aleksej Komarov * @license MIT -*/var i=(0,u.createLogger)("Window"),p=[400,600],v=r.Window=function(b){function B(){return b.apply(this,arguments)||this}l(B,b);var I=B.prototype;return I.componentDidMount=function(){function L(){var T=(0,f.useBackend)(this.context),A=T.suspended;A||(i.log("mounting"),this.updateGeometry())}return L}(),I.componentDidUpdate=function(){function L(T){var A=this.props.width!==T.width||this.props.height!==T.height;A&&this.updateGeometry()}return L}(),I.updateGeometry=function(){function L(){var T,A=(0,f.useBackend)(this.context),x=A.config,E=Object.assign({size:p},x.window);this.props.width&&this.props.height&&(E.size=[this.props.width,this.props.height]),(T=x.window)!=null&&T.key&&(0,C.setWindowKey)(x.window.key),(0,C.recallWindowGeometry)(E)}return L}(),I.render=function(){function L(){var T,A=this.props,x=A.theme,E=A.title,M=A.children,j=(0,f.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,K=P.user&&(P.user.observer?P.status2?m-2:0),l=2;l=o){var s=[c].concat(d).map(function(i){return typeof i=="string"?i:i instanceof Error?i.stack||String(i):JSON.stringify(i)}).filter(function(i){return i}).join(" ")+"\nUser Agent: "+navigator.userAgent;Byond.sendMessage({type:"log",message:s})}},S=r.createLogger=function(){function C(u){return{debug:function(){function c(){for(var m=arguments.length,d=new Array(m),l=0;l2?m-2:0),u=2;u=o){var s=[c].concat(d).map(function(l){return typeof l=="string"?l:l instanceof Error?l.stack||String(l):JSON.stringify(l)}).filter(function(l){return l}).join(" ")+"\nUser Agent: "+navigator.userAgent;Byond.sendMessage({type:"log",message:s})}},S=r.createLogger=function(){function v(i){return{debug:function(){function c(){for(var m=arguments.length,d=new Array(m),u=0;u0;){var h=v.shift(),N=h(p);try{g=V(N)}catch(B){if(B.code!=="MODULE_NOT_FOUND")throw B}}if(!g)return y("notFound",p);var b=g[p];return b||y("missingExport",p)}return u}()},98008:function(w,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),f=n(17899),V=n(90781),y=n(81856);function S(l,s){l.prototype=Object.create(s.prototype),l.prototype.constructor=l,k(l,s)}function k(l,s){return k=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function i(p,v){return p.__proto__=v,p}return i}(),k(l,s)}/** + */var V=n(32054),y=function(c,m){return function(){return(0,e.createComponentVNode)(2,f.Window,{children:(0,e.createComponentVNode)(2,f.Window.Content,{scrollable:!0,children:[c==="notFound"&&(0,e.createVNode)(1,"div",null,[(0,e.createTextVNode)("Interface "),(0,e.createVNode)(1,"b",null,m,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,m,0),(0,e.createTextVNode)(" is missing an export.")],4)]})})}},S=function(){return(0,e.createComponentVNode)(2,f.Window,{children:(0,e.createComponentVNode)(2,f.Window.Content,{scrollable:!0})})},k=function(){return(0,e.createComponentVNode)(2,f.Window,{height:130,title:"Loading",width:150,children:(0,e.createComponentVNode)(2,f.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..."})]})})})},v=r.getRoutedComponent=function(){function i(c){var m=c.getState(),d=(0,a.selectBackend)(m),u=d.suspended,s=d.config;if(u)return S;if(s.refreshing)return k;if(0)var l;for(var p=s==null?void 0:s.interface,C=[function(B){return"./"+B+".tsx"},function(B){return"./"+B+".js"},function(B){return"./"+B+"/index.tsx"},function(B){return"./"+B+"/index.js"}],g;!g&&C.length>0;){var h=C.shift(),N=h(p);try{g=V(N)}catch(B){if(B.code!=="MODULE_NOT_FOUND")throw B}}if(!g)return y("notFound",p);var b=g[p];return b||y("missingExport",p)}return i}()},98008:function(w,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),f=n(17899),V=n(90781),y=n(81856);function S(u,s){u.prototype=Object.create(s.prototype),u.prototype.constructor=u,k(u,s)}function k(u,s){return k=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function l(p,C){return p.__proto__=C,p}return l}(),k(u,s)}/** * @file * @copyright 2020 Aleksej Komarov * @license MIT -*/var C=(0,y.createLogger)("store"),u=r.configureStore=function(){function l(s){var i,p;s===void 0&&(s={});var v=s,g=v.sideEffects,h=g===void 0?!0:g,N=(0,e.flow)([(0,a.combineReducers)({debug:V.debugReducer,backend:f.backendReducer}),s.reducer]),b=h?[].concat(((i=s.middleware)==null?void 0:i.pre)||[],[o.assetMiddleware,f.backendMiddleware],((p=s.middleware)==null?void 0:p.post)||[]):[],B=a.applyMiddleware.apply(void 0,b),I=(0,a.createStore)(N,B);return window.__store__=I,window.__augmentStack__=m(I),I}return l}(),c=function(s){return function(i){return function(p){var v=p.type,g=p.payload;return v==="update"||v==="backend/update"?C.debug("action",{type:v}):C.debug("action",p),i(p)}}},m=function(s){return function(i,p){var v,g;p?typeof p=="object"&&!p.stack&&(p.stack=i):(p=new Error(i.split("\n")[0]),p.stack=i),C.log("FatalError:",p);var h=s.getState(),N=h==null||(v=h.backend)==null?void 0:v.config,b=i;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(l){function s(){return l.apply(this,arguments)||this}S(s,l);var i=s.prototype;return i.getChildContext=function(){function p(){var v=this.props.store;return{store:v}}return p}(),i.render=function(){function p(){return this.props.children}return p}(),s}(t.Component)},61498:function(w,r,n){"use strict";r.__esModule=!0,r.meta=void 0;var e=n(96524),a=n(24674);/** +*/var v=(0,y.createLogger)("store"),i=r.configureStore=function(){function u(s){var l,p;s===void 0&&(s={});var C=s,g=C.sideEffects,h=g===void 0?!0:g,N=(0,e.flow)([(0,a.combineReducers)({debug:V.debugReducer,backend:f.backendReducer}),s.reducer]),b=h?[].concat(((l=s.middleware)==null?void 0:l.pre)||[],[o.assetMiddleware,f.backendMiddleware],((p=s.middleware)==null?void 0:p.post)||[]):[],B=a.applyMiddleware.apply(void 0,b),I=(0,a.createStore)(N,B);return window.__store__=I,window.__augmentStack__=m(I),I}return u}(),c=function(s){return function(l){return function(p){var C=p.type,g=p.payload;return C==="update"||C==="backend/update"?v.debug("action",{type:C}):v.debug("action",p),l(p)}}},m=function(s){return function(l,p){var C,g;p?typeof p=="object"&&!p.stack&&(p.stack=l):(p=new Error(l.split("\n")[0]),p.stack=l),v.log("FatalError:",p);var h=s.getState(),N=h==null||(C=h.backend)==null?void 0:C.config,b=l;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(u){function s(){return u.apply(this,arguments)||this}S(s,u);var l=s.prototype;return l.getChildContext=function(){function p(){var C=this.props.store;return{store:C}}return p}(),l.render=function(){function p(){return this.props.children}return p}(),s}(t.Component)},61498:function(w,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 @@ -282,11 +282,11 @@ * @file * @copyright 2021 Aleksej Komarov * @license MIT - */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"],f=["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:[f.map(function(C){return(0,e.createComponentVNode)(2,a.Button,{color:C,content:C},C)}),(0,e.createVNode)(1,"br"),o.map(function(C){return(0,e.createComponentVNode)(2,a.Button,{color:C,content:C},C)}),(0,e.createVNode)(1,"br"),o.map(function(C){return(0,e.createComponentVNode)(2,a.Box,{inline:!0,mx:"7px",color:C,children:C},C)})]})]})}},14906:function(w,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"],f=["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:[f.map(function(v){return(0,e.createComponentVNode)(2,a.Button,{color:v,content:v},v)}),(0,e.createVNode)(1,"br"),o.map(function(v){return(0,e.createComponentVNode)(2,a.Button,{color:v,content:v},v)}),(0,e.createVNode)(1,"br"),o.map(function(v){return(0,e.createComponentVNode)(2,a.Box,{inline:!0,mx:"7px",color:v,children:v},v)})]})]})}},14906:function(w,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 f=r.meta={title:"ByondUi",render:function(){function y(){return(0,e.createComponentVNode)(2,V)}return y}()},V=function(S,k){var C=(0,a.useLocalState)(k,"byondUiEvalCode","Byond.winset('"+Byond.windowId+"', {\n 'is-visible': true,\n})"),u=C[0],c=C[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 m(){return setTimeout(function(){try{var d=new Function("return ("+u+")")();d&&d.then?(o.logger.log("Promise"),d.then(o.logger.log)):o.logger.log(d)}catch(l){o.logger.log(l)}})}return m}(),children:"Evaluate"}),children:(0,e.createComponentVNode)(2,t.Box,{as:"textarea",width:"100%",height:"10em",onChange:function(){function m(d){return c(d.target.value)}return m}(),children:u})})],4)}},59948:function(w,r,n){"use strict";r.__esModule=!0,r.meta=void 0;var e=n(96524),a=n(24674),t=n(17306);/** + */var f=r.meta={title:"ByondUi",render:function(){function y(){return(0,e.createComponentVNode)(2,V)}return y}()},V=function(S,k){var v=(0,a.useLocalState)(k,"byondUiEvalCode","Byond.winset('"+Byond.windowId+"', {\n 'is-visible': true,\n})"),i=v[0],c=v[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 m(){return setTimeout(function(){try{var d=new Function("return ("+i+")")();d&&d.then?(o.logger.log("Promise"),d.then(o.logger.log)):o.logger.log(d)}catch(u){o.logger.log(u)}})}return m}(),children:"Evaluate"}),children:(0,e.createComponentVNode)(2,t.Box,{as:"textarea",width:"100%",height:"10em",onChange:function(){function m(d){return c(d.target.value)}return m}(),children:i})})],4)}},59948:function(w,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 @@ -294,19 +294,19 @@ * @file * @copyright 2021 Aleksej Komarov * @license MIT - */var o=r.meta={title:"Flex & Sections",render:function(){function V(){return(0,e.createComponentVNode)(2,f)}return V}()},f=function(y,S){var k=(0,a.useLocalState)(S,"fs_grow",1),C=k[0],u=k[1],c=(0,a.useLocalState)(S,"fs_direction","column"),m=c[0],d=c[1],l=(0,a.useLocalState)(S,"fs_fill",!0),s=l[0],i=l[1],p=(0,a.useLocalState)(S,"fs_title",!0),v=p[0],g=p[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 h(){return d(m==="column"?"row":"column")}return h}(),children:'Flex direction="'+m+'"'}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,onClick:function(){function h(){return u(+!C)}return h}(),children:"Flex.Item grow={"+C+"}"}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,onClick:function(){function h(){return i(!s)}return h}(),children:"Section fill={"+String(s)+"}"}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,selected:v,onClick:function(){function h(){return g(!v)}return h}(),children:"Section title"})]})}),(0,e.createComponentVNode)(2,t.Flex.Item,{grow:1,children:(0,e.createComponentVNode)(2,t.Flex,{height:"100%",direction:m,children:[(0,e.createComponentVNode)(2,t.Flex.Item,{mr:m==="row"&&1,mb:m==="column"&&1,grow:C,children:(0,e.createComponentVNode)(2,t.Section,{title:v&&"Section 1",fill:s,children:"Content"})}),(0,e.createComponentVNode)(2,t.Flex.Item,{grow:C,children:(0,e.createComponentVNode)(2,t.Section,{title:v&&"Section 2",fill:s,children:"Content"})})]})})]})}},16189:function(w,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,f)}return V}()},f=function(y,S){var k=(0,a.useLocalState)(S,"fs_grow",1),v=k[0],i=k[1],c=(0,a.useLocalState)(S,"fs_direction","column"),m=c[0],d=c[1],u=(0,a.useLocalState)(S,"fs_fill",!0),s=u[0],l=u[1],p=(0,a.useLocalState)(S,"fs_title",!0),C=p[0],g=p[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 h(){return d(m==="column"?"row":"column")}return h}(),children:'Flex direction="'+m+'"'}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,onClick:function(){function h(){return i(+!v)}return h}(),children:"Flex.Item grow={"+v+"}"}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,onClick:function(){function h(){return l(!s)}return h}(),children:"Section fill={"+String(s)+"}"}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,selected:C,onClick:function(){function h(){return g(!C)}return h}(),children:"Section title"})]})}),(0,e.createComponentVNode)(2,t.Flex.Item,{grow:1,children:(0,e.createComponentVNode)(2,t.Flex,{height:"100%",direction:m,children:[(0,e.createComponentVNode)(2,t.Flex.Item,{mr:m==="row"&&1,mb:m==="column"&&1,grow:v,children:(0,e.createComponentVNode)(2,t.Section,{title:C&&"Section 1",fill:s,children:"Content"})}),(0,e.createComponentVNode)(2,t.Flex.Item,{grow:v,children:(0,e.createComponentVNode)(2,t.Section,{title:C&&"Section 2",fill:s,children:"Content"})})]})})]})}},16189:function(w,r,n){"use strict";r.__esModule=!0,r.meta=void 0;var e=n(96524),a=n(17899),t=n(24674);/** * @file * @copyright 2024 Aylong (https://github.com/AyIong) * @license MIT - */var o=r.meta={title:"ImageButton",render:function(){function S(){return(0,e.createComponentVNode)(2,y)}return S}()},f=["red","orange","yellow","olive","green","teal","blue","violet","purple","pink","brown","grey","gold"],V=["good","average","bad","black","white"],y=function(k,C){var u=(0,a.useLocalState)(C,"disabled",!1),c=u[0],m=u[1],d=(0,a.useLocalState)(C,"onClick",!0),l=d[0],s=d[1],i=(0,a.useLocalState)(C,"vertical1",!0),p=i[0],v=i[1],g=(0,a.useLocalState)(C,"vertical2",!0),h=g[0],N=g[1],b=(0,a.useLocalState)(C,"vertical3",!1),B=b[0],I=b[1],L=(0,a.useLocalState)(C,"title","Image Button"),T=L[0],A=L[1],x=(0,a.useLocalState)(C,"content","Image is a LIE!"),E=x[0],M=x[1],j=(0,a.useLocalState)(C,"itemContent","Second Button"),P=j[0],R=j[1],D=(0,a.useLocalState)(C,"itemIcon","face-smile"),F=D[0],W=D[1],_=(0,a.useLocalState)(C,"itemIconPos","default"),K=_[0],H=_[1],X=(0,a.useLocalState)(C,"itemIconSize",2),Y=X[0],J=X[1],le=(0,a.useLocalState)(C,"imageSize",64),ce=le[0],fe=le[1],pe=function(){v(!p)},he=function(){N(!h)},te=function(){I(!B)},Q=function(){m(!c)},ae=function(){s(!l)};return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{children:[(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{basis:"50%",children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Title",children:(0,e.createComponentVNode)(2,t.Input,{value:T,onInput:function(){function ee(oe,ue){return A(ue)}return ee}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Content",children:(0,e.createComponentVNode)(2,t.Input,{value:E,onInput:function(){function ee(oe,ue){return M(ue)}return ee}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Image Size",children:(0,e.createComponentVNode)(2,t.Slider,{animated:!0,width:10,value:ce,minValue:0,maxValue:256,step:1,stepPixelSize:2,onChange:function(){function ee(oe,ue){return fe(ue)}return ee}()})})]}),(0,e.createComponentVNode)(2,t.Stack,{mt:1,mr:2,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,content:"onClick",checked:l,onClick:ae})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,content:"Vertical",checked:B,onClick:te})})]})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{basis:"50%",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Item Content",children:(0,e.createComponentVNode)(2,t.Input,{value:P,onInput:function(){function ee(oe,ue){return R(ue)}return ee}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Item Icon",children:(0,e.createComponentVNode)(2,t.Input,{value:F,onInput:function(){function ee(oe,ue){return W(ue)}return ee}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Item IconPos",children:(0,e.createComponentVNode)(2,t.Input,{value:K,onInput:function(){function ee(oe,ue){return H(ue)}return ee}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Item IconSize",children:(0,e.createComponentVNode)(2,t.Slider,{animated:!0,width:10,value:Y,minValue:0,maxValue:20,step:1,stepPixelSize:10,onChange:function(){function ee(oe,ue){return J(ue)}return ee}()})})]})})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{mt:1,children:(0,e.createComponentVNode)(2,t.ImageButton,{width:B&&ce+"px",ellipsis:B,vertical:B,disabled:c,title:T,content:E,tooltip:B?E:"Cool and simple buttons with images, FOR ALL!!!",image:"iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAGo0lEQVRYhe3Xa2xT9xnH8e+5+O4ktuM4cS5OYmhCQ1xcYMCgA9rSbKUqqqpWkzq1mgBtq/piaqna7UXXaTfWddL6opO2dlu1aSBVjJZC19FByyUadKGCJIYQAoHEODi2k/hyTnw/x3uxwZpBtq6qhib1efU/5/9/9Hz0O0c6OsLhw4e5mSXe1On/94BAIFAJBAKV/zkgEAhU7HZ7JRQKCaFQSLDb7Z8Y8l8BPjpYVVXh6n1VVT8xRAbY953HP1bTvn8u/9P56/arHNp1h9Y/9YogX73wBW0fx/CpVXIsA/wjgav1pW//mVdPRYhlp6gxWzAYTCRnM0zPKsRnpjBK4JEqqIUi/fEppKxCRReQLFbEikYmOk5ONNPc0s4v1nXgKChEJmNY7dUs+fwXqPfdSjan8Ktv3XVt5hxAR4OT5zcIjGW6ODGd57IyQ53bhVkSMcsSt1RZiOUKSAIsqjFhl+C5gYvMFnK4JXhLLbDZZaVqzyv8YOsLxFIq0XQRE7Ckw8s3n9nGfVu2zUliDmAs8i7xK6dZ0LGeZmc3JYMXs1im1iTjNErUmwVqChqiCJVKhd6pNCaTBU0QOJHJstZZg3/H9/n9r/cy8C+RHxiJMrj1aXbaq+cHvLb/PQqaCVf4PZa1DbGx+xGGkkYMlSI1okitDEZdp29qlrNJBYOgs8ZRxZkZHbmxhs6+PezfvZch0YTTAK1OG5GCQDpXRNTLxIo5vvf8D3nwi3UoKel6gLdpBeVyCNnmRbI00GwWsdQKfBDXiaST+KwO+pIlehMKwRoDzRYDI6lZbnFUcb+viZNvjnIuBat91XxlkRMLGgNJHVWuYlfoEoWixMXIJFB34wTW3ebj7VNh4mOjpBNh8q6lVBtcvHV+jCqTjM8qUchm6fFWUW8xUdBheYOZdC7PleQM0XQKswxtdol6jxMdI3fWafTFsnR4HJzQRIp6bv5HcKj/Q6TZGOpUkaFLFXaWDxGR/Wzx2agyGpnI67jlCnqpwIiS4Vw8gaiXyZQ0NFcdjloPljIksOJdvBKbyU54dATrxDBbl/uZeH8Ii2ycHzAy7SCnxrDV1+JpcuNpWsgas4vVzR58Zh2PRcZtcXEwkmbvpTAnx89RbTJTa6/CmSvjDAT5XJeNmhoTSxcvJplIcb5SxohGu9OFLTuDLxicH7CkzcWuPUkeWp6i4ISNdwRpleGiquG3//2lSWtg0FTuaXETrK1iPBbBJJcZ+OMOcm4Jz50rWBBN0N97gOFJBaxGziolTh36K952P9t/9hK9O568NnPOt+Chbo31C3P0nowwdvwgw/0HAfDbJc7PTHMiPMrgxCUS6QksWhTTxCmSR9/AW46TS01xsrefmGTn5cE4v9l/hC5/E2va/bi0PL1Xpui6/8vcvuKO+RMYn6lgb7DiEl3MTIzy/rF9JAUno+EoRitk1RSyJKMW4cLwOS5fGOHSmQEuTMVJjMVZoI3TmUtxFJ0PbF6WZ8sc372bRD7Hhs2Pg6OeJ55+hs75ABdjEsqZMJtuayXU2EnkisLgid9yZKyEu6UVJRpmamoaOREnl81QyitYLLMMj/bTLeTp8YoMpSQCDRWe3f5T3HmRwTf30PrwN7CvfQBRVaG1jcrxQ3MBqSz4gHryDF5O0DddQauWyGdFOhbXcV+TyOi0wqoHHyU1dpHca9/FbpxFafTiWfsoCw0S+tkRXt7xJ9L5cVRFJRrOcPfd62j98U8YW7eF8QujeBs9CNVOTh2fJ4FSEaYLFUq5FNNDKbJ5ndd3HCOXyZDJqjxs97F2Yw/j6RjlQhZbi58el4+Jd3tZ3l6LZ/tLbH3uR1yOnuaFF19kw4JGfh5SWbMwSldjLZl0moKS/DfvQFLjw8FJ1gbbMPi9ZIpl2gs6V2JGXFYfZyejqANnsK37Gka7DVtjIzvfeIeR3+3C9Ng99PRswuNvJXz+NAtaGhiT3Sy9Pcgip5FEtojZYMSiF+YHBILL6L73Ef4yfBa7u4ZJdRpDV5CGWyuUDBYK6SgDb/+BoqkaYzEFx04zc36UTRtWsjLYydDRAyxrdDJkNfHYVzezeGkHq5Z1ELoQRRQE2uocTMyk5wd0tjbz7JNPcKSvD7PZSCqVhoqOQRYp53PIWhmtVMIgCMiCTlnT0Y0PYLRa6E+HiR3YxypJonvb11mxeg1WTUdRs2Rm83S11FERBRRFmR/wy6dWX1t/1Dk3NMhxfc0AuK82H+Od7ffO2T9zg545gMFjszc84LDO0/kplfDZr9lngJsN+Bveb9bpS0UiAAAAAABJRU5ErkJggg==",imageSize:ce+"px",onClick:l?function(){return"false"}:"",children:!B&&(0,e.createComponentVNode)(2,t.ImageButton.Item,{bold:!0,width:"64px",selected:c,content:P,tooltip:"Click to disable main button",tooltipPosition:"bottom-end",icon:F,iconColor:"gold",iconSize:Y,iconPosition:K,onClick:Q})})})]}),(0,e.createComponentVNode)(2,t.Section,{title:"Color States",buttons:(0,e.createComponentVNode)(2,t.Button.Checkbox,{content:"Vertical",checked:p,onClick:pe}),children:V.map(function(ee){return(0,e.createComponentVNode)(2,t.ImageButton,{m:p?.5:0,vertical:p,color:ee,content:ee,image:"iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAMAAABEpIrGAAAAOVBMVEXAwMDBr16vk0uORiz/o7HyfxiZbDXWzMzhbA3//wD////tHCQAAP/4ior/ADOAgIDAwMAAAAAzmQDdkuRxAAAAAXRSTlMAQObYZgAAAKxJREFUOI3dksESgyAMRG0FE4I22P//2IaAVdB0em3Xy477SJYZhuFfdDO1AXdD4xtwRd77o5t6wKt20wPlN2QVewUgQqAAiD0QYxQCJYc5zCAEtisUcBkgmUAZ6ErGWh9oeSwE6k+3yHNACIIPgMzQONsWYOZ90QXAiRK7g2K7gtNKayXKjdoOcv4pX+IcGoBMqIA26TswSU6HmueSpLlRcjK0AaOpL97rb+gFHckLe1QlljQAAAAASUVORK5CYII=",imageSize:p?"48px":"24px",onClick:l?function(){return"false"}:""},ee)})}),(0,e.createComponentVNode)(2,t.Section,{title:"Available Colors",buttons:(0,e.createComponentVNode)(2,t.Button.Checkbox,{content:"Vertical",checked:h,onClick:he}),children:f.map(function(ee){return(0,e.createComponentVNode)(2,t.ImageButton,{m:h?.5:0,vertical:h,color:ee,content:ee,image:"iVBORw0KGgoAAAANSUhEUgAAACAAAAAgBAMAAACBVGfHAAAAJ1BMVEUAAABeGFCgXZN2PnKqqqq/vr/T09PycWFIHUFeKlNLHEtVWWOOj5g02k6OAAAAAXRSTlMAQObYZgAAAFdJREFUKJFjYBhEgFEQDATgAkImLkDgrIgQME0vSy8LRhYoBwISBdLLy1HNSCsvT0MWwLDWGAwQAp0rZ+3evXLWDGSBM2dQBWYCAUkCHB1g0IAreAYCAACm2zDykxPL4AAAAABJRU5ErkJggg==",imageSize:h?"48px":"24px",onClick:l?function(){return"false"}:""},ee)})})],4)}},32304:function(w,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:"ImageButton",render:function(){function S(){return(0,e.createComponentVNode)(2,y)}return S}()},f=["red","orange","yellow","olive","green","teal","blue","violet","purple","pink","brown","grey","gold"],V=["good","average","bad","black","white"],y=function(k,v){var i=(0,a.useLocalState)(v,"disabled",!1),c=i[0],m=i[1],d=(0,a.useLocalState)(v,"onClick",!0),u=d[0],s=d[1],l=(0,a.useLocalState)(v,"vertical1",!0),p=l[0],C=l[1],g=(0,a.useLocalState)(v,"vertical2",!0),h=g[0],N=g[1],b=(0,a.useLocalState)(v,"vertical3",!1),B=b[0],I=b[1],L=(0,a.useLocalState)(v,"title","Image Button"),T=L[0],A=L[1],x=(0,a.useLocalState)(v,"content","Image is a LIE!"),E=x[0],M=x[1],j=(0,a.useLocalState)(v,"itemContent","Second Button"),P=j[0],R=j[1],D=(0,a.useLocalState)(v,"itemIcon","face-smile"),F=D[0],W=D[1],U=(0,a.useLocalState)(v,"itemIconPos","default"),K=U[0],H=U[1],X=(0,a.useLocalState)(v,"itemIconSize",2),Y=X[0],J=X[1],ie=(0,a.useLocalState)(v,"imageSize",64),ce=ie[0],fe=ie[1],pe=function(){C(!p)},he=function(){N(!h)},te=function(){I(!B)},Q=function(){m(!c)},ae=function(){s(!u)};return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{children:[(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{basis:"50%",children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Title",children:(0,e.createComponentVNode)(2,t.Input,{value:T,onInput:function(){function ee(oe,ue){return A(ue)}return ee}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Content",children:(0,e.createComponentVNode)(2,t.Input,{value:E,onInput:function(){function ee(oe,ue){return M(ue)}return ee}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Image Size",children:(0,e.createComponentVNode)(2,t.Slider,{animated:!0,width:10,value:ce,minValue:0,maxValue:256,step:1,stepPixelSize:2,onChange:function(){function ee(oe,ue){return fe(ue)}return ee}()})})]}),(0,e.createComponentVNode)(2,t.Stack,{mt:1,mr:2,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,content:"onClick",checked:u,onClick:ae})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,content:"Vertical",checked:B,onClick:te})})]})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{basis:"50%",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Item Content",children:(0,e.createComponentVNode)(2,t.Input,{value:P,onInput:function(){function ee(oe,ue){return R(ue)}return ee}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Item Icon",children:(0,e.createComponentVNode)(2,t.Input,{value:F,onInput:function(){function ee(oe,ue){return W(ue)}return ee}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Item IconPos",children:(0,e.createComponentVNode)(2,t.Input,{value:K,onInput:function(){function ee(oe,ue){return H(ue)}return ee}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Item IconSize",children:(0,e.createComponentVNode)(2,t.Slider,{animated:!0,width:10,value:Y,minValue:0,maxValue:20,step:1,stepPixelSize:10,onChange:function(){function ee(oe,ue){return J(ue)}return ee}()})})]})})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{mt:1,children:(0,e.createComponentVNode)(2,t.ImageButton,{width:B&&ce+"px",ellipsis:B,vertical:B,disabled:c,title:T,content:E,tooltip:B?E:"Cool and simple buttons with images, FOR ALL!!!",image:"iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAGo0lEQVRYhe3Xa2xT9xnH8e+5+O4ktuM4cS5OYmhCQ1xcYMCgA9rSbKUqqqpWkzq1mgBtq/piaqna7UXXaTfWddL6opO2dlu1aSBVjJZC19FByyUadKGCJIYQAoHEODi2k/hyTnw/x3uxwZpBtq6qhib1efU/5/9/9Hz0O0c6OsLhw4e5mSXe1On/94BAIFAJBAKV/zkgEAhU7HZ7JRQKCaFQSLDb7Z8Y8l8BPjpYVVXh6n1VVT8xRAbY953HP1bTvn8u/9P56/arHNp1h9Y/9YogX73wBW0fx/CpVXIsA/wjgav1pW//mVdPRYhlp6gxWzAYTCRnM0zPKsRnpjBK4JEqqIUi/fEppKxCRReQLFbEikYmOk5ONNPc0s4v1nXgKChEJmNY7dUs+fwXqPfdSjan8Ktv3XVt5hxAR4OT5zcIjGW6ODGd57IyQ53bhVkSMcsSt1RZiOUKSAIsqjFhl+C5gYvMFnK4JXhLLbDZZaVqzyv8YOsLxFIq0XQRE7Ckw8s3n9nGfVu2zUliDmAs8i7xK6dZ0LGeZmc3JYMXs1im1iTjNErUmwVqChqiCJVKhd6pNCaTBU0QOJHJstZZg3/H9/n9r/cy8C+RHxiJMrj1aXbaq+cHvLb/PQqaCVf4PZa1DbGx+xGGkkYMlSI1okitDEZdp29qlrNJBYOgs8ZRxZkZHbmxhs6+PezfvZch0YTTAK1OG5GCQDpXRNTLxIo5vvf8D3nwi3UoKel6gLdpBeVyCNnmRbI00GwWsdQKfBDXiaST+KwO+pIlehMKwRoDzRYDI6lZbnFUcb+viZNvjnIuBat91XxlkRMLGgNJHVWuYlfoEoWixMXIJFB34wTW3ebj7VNh4mOjpBNh8q6lVBtcvHV+jCqTjM8qUchm6fFWUW8xUdBheYOZdC7PleQM0XQKswxtdol6jxMdI3fWafTFsnR4HJzQRIp6bv5HcKj/Q6TZGOpUkaFLFXaWDxGR/Wzx2agyGpnI67jlCnqpwIiS4Vw8gaiXyZQ0NFcdjloPljIksOJdvBKbyU54dATrxDBbl/uZeH8Ii2ycHzAy7SCnxrDV1+JpcuNpWsgas4vVzR58Zh2PRcZtcXEwkmbvpTAnx89RbTJTa6/CmSvjDAT5XJeNmhoTSxcvJplIcb5SxohGu9OFLTuDLxicH7CkzcWuPUkeWp6i4ISNdwRpleGiquG3//2lSWtg0FTuaXETrK1iPBbBJJcZ+OMOcm4Jz50rWBBN0N97gOFJBaxGziolTh36K952P9t/9hK9O568NnPOt+Chbo31C3P0nowwdvwgw/0HAfDbJc7PTHMiPMrgxCUS6QksWhTTxCmSR9/AW46TS01xsrefmGTn5cE4v9l/hC5/E2va/bi0PL1Xpui6/8vcvuKO+RMYn6lgb7DiEl3MTIzy/rF9JAUno+EoRitk1RSyJKMW4cLwOS5fGOHSmQEuTMVJjMVZoI3TmUtxFJ0PbF6WZ8sc372bRD7Hhs2Pg6OeJ55+hs75ABdjEsqZMJtuayXU2EnkisLgid9yZKyEu6UVJRpmamoaOREnl81QyitYLLMMj/bTLeTp8YoMpSQCDRWe3f5T3HmRwTf30PrwN7CvfQBRVaG1jcrxQ3MBqSz4gHryDF5O0DddQauWyGdFOhbXcV+TyOi0wqoHHyU1dpHca9/FbpxFafTiWfsoCw0S+tkRXt7xJ9L5cVRFJRrOcPfd62j98U8YW7eF8QujeBs9CNVOTh2fJ4FSEaYLFUq5FNNDKbJ5ndd3HCOXyZDJqjxs97F2Yw/j6RjlQhZbi58el4+Jd3tZ3l6LZ/tLbH3uR1yOnuaFF19kw4JGfh5SWbMwSldjLZl0moKS/DfvQFLjw8FJ1gbbMPi9ZIpl2gs6V2JGXFYfZyejqANnsK37Gka7DVtjIzvfeIeR3+3C9Ng99PRswuNvJXz+NAtaGhiT3Sy9Pcgip5FEtojZYMSiF+YHBILL6L73Ef4yfBa7u4ZJdRpDV5CGWyuUDBYK6SgDb/+BoqkaYzEFx04zc36UTRtWsjLYydDRAyxrdDJkNfHYVzezeGkHq5Z1ELoQRRQE2uocTMyk5wd0tjbz7JNPcKSvD7PZSCqVhoqOQRYp53PIWhmtVMIgCMiCTlnT0Y0PYLRa6E+HiR3YxypJonvb11mxeg1WTUdRs2Rm83S11FERBRRFmR/wy6dWX1t/1Dk3NMhxfc0AuK82H+Od7ffO2T9zg545gMFjszc84LDO0/kplfDZr9lngJsN+Bveb9bpS0UiAAAAAABJRU5ErkJggg==",imageSize:ce+"px",onClick:u?function(){return"false"}:"",children:!B&&(0,e.createComponentVNode)(2,t.ImageButton.Item,{bold:!0,width:"64px",selected:c,content:P,tooltip:"Click to disable main button",tooltipPosition:"bottom-end",icon:F,iconColor:"gold",iconSize:Y,iconPosition:K,onClick:Q})})})]}),(0,e.createComponentVNode)(2,t.Section,{title:"Color States",buttons:(0,e.createComponentVNode)(2,t.Button.Checkbox,{content:"Vertical",checked:p,onClick:pe}),children:V.map(function(ee){return(0,e.createComponentVNode)(2,t.ImageButton,{m:p?.5:0,vertical:p,color:ee,content:ee,image:"iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAMAAABEpIrGAAAAOVBMVEXAwMDBr16vk0uORiz/o7HyfxiZbDXWzMzhbA3//wD////tHCQAAP/4ior/ADOAgIDAwMAAAAAzmQDdkuRxAAAAAXRSTlMAQObYZgAAAKxJREFUOI3dksESgyAMRG0FE4I22P//2IaAVdB0em3Xy477SJYZhuFfdDO1AXdD4xtwRd77o5t6wKt20wPlN2QVewUgQqAAiD0QYxQCJYc5zCAEtisUcBkgmUAZ6ErGWh9oeSwE6k+3yHNACIIPgMzQONsWYOZ90QXAiRK7g2K7gtNKayXKjdoOcv4pX+IcGoBMqIA26TswSU6HmueSpLlRcjK0AaOpL97rb+gFHckLe1QlljQAAAAASUVORK5CYII=",imageSize:p?"48px":"24px",onClick:u?function(){return"false"}:""},ee)})}),(0,e.createComponentVNode)(2,t.Section,{title:"Available Colors",buttons:(0,e.createComponentVNode)(2,t.Button.Checkbox,{content:"Vertical",checked:h,onClick:he}),children:f.map(function(ee){return(0,e.createComponentVNode)(2,t.ImageButton,{m:h?.5:0,vertical:h,color:ee,content:ee,image:"iVBORw0KGgoAAAANSUhEUgAAACAAAAAgBAMAAACBVGfHAAAAJ1BMVEUAAABeGFCgXZN2PnKqqqq/vr/T09PycWFIHUFeKlNLHEtVWWOOj5g02k6OAAAAAXRSTlMAQObYZgAAAFdJREFUKJFjYBhEgFEQDATgAkImLkDgrIgQME0vSy8LRhYoBwISBdLLy1HNSCsvT0MWwLDWGAwQAp0rZ+3evXLWDGSBM2dQBWYCAUkCHB1g0IAreAYCAACm2zDykxPL4AAAAABJRU5ErkJggg==",imageSize:h?"48px":"24px",onClick:u?function(){return"false"}:""},ee)})})],4)}},32304:function(w,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 V(){return(0,e.createComponentVNode)(2,f)}return V}()},f=function(y,S){var k=(0,a.useLocalState)(S,"number",0),C=k[0],u=k[1],c=(0,a.useLocalState)(S,"text","Sample text"),m=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:m,onChange:function(){function l(s,i){return d(i)}return l}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Input (onInput)",children:(0,e.createComponentVNode)(2,t.Input,{value:m,onInput:function(){function l(s,i){return d(i)}return l}()})}),(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:C,minValue:-100,maxValue:100,onChange:function(){function l(s,i){return u(i)}return l}()})}),(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:C,minValue:-100,maxValue:100,onDrag:function(){function l(s,i){return u(i)}return l}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Slider (onDrag)",children:(0,e.createComponentVNode)(2,t.Slider,{step:1,stepPixelSize:5,value:C,minValue:-100,maxValue:100,onDrag:function(){function l(s,i){return u(i)}return l}()})}),(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:C,minValue:-100,maxValue:100,onDrag:function(){function l(s,i){return u(i)}return l}()}),(0,e.createComponentVNode)(2,t.Knob,{ml:1,inline:!0,bipolar:!0,size:1,step:1,stepPixelSize:2,value:C,minValue:-100,maxValue:100,onDrag:function(){function l(s,i){return u(i)}return l}()})]}),(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:C,minValue:-100,maxValue:100,dragMatrix:[0,-1],step:1,stepPixelSize:5,onDrag:function(){function l(s,i){return u(i)}return l}(),children:function(){function l(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 l}()})})})]})})}},50394:function(w,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 f(){return(0,e.createComponentVNode)(2,o)}return f}()},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(w,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,f)}return V}()},f=function(y,S){var k=(0,a.useLocalState)(S,"number",0),v=k[0],i=k[1],c=(0,a.useLocalState)(S,"text","Sample text"),m=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:m,onChange:function(){function u(s,l){return d(l)}return u}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Input (onInput)",children:(0,e.createComponentVNode)(2,t.Input,{value:m,onInput:function(){function u(s,l){return d(l)}return u}()})}),(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:v,minValue:-100,maxValue:100,onChange:function(){function u(s,l){return i(l)}return u}()})}),(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:v,minValue:-100,maxValue:100,onDrag:function(){function u(s,l){return i(l)}return u}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Slider (onDrag)",children:(0,e.createComponentVNode)(2,t.Slider,{step:1,stepPixelSize:5,value:v,minValue:-100,maxValue:100,onDrag:function(){function u(s,l){return i(l)}return u}()})}),(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:v,minValue:-100,maxValue:100,onDrag:function(){function u(s,l){return i(l)}return u}()}),(0,e.createComponentVNode)(2,t.Knob,{ml:1,inline:!0,bipolar:!0,size:1,step:1,stepPixelSize:2,value:v,minValue:-100,maxValue:100,onDrag:function(){function u(s,l){return i(l)}return u}()})]}),(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:v,minValue:-100,maxValue:100,dragMatrix:[0,-1],step:1,stepPixelSize:5,onDrag:function(){function u(s,l){return i(l)}return u}(),children:function(){function u(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 u}()})})})]})})}},50394:function(w,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 f(){return(0,e.createComponentVNode)(2,o)}return f}()},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(w,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 V(){return(0,e.createComponentVNode)(2,f)}return V}()},f=function(y,S){var k=(0,a.useLocalState)(S,"progress",.5),C=k[0],u=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:C,children:["Value: ",Number(C).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 u(C-.1)}return c}()}),(0,e.createComponentVNode)(2,t.Button,{content:"+0.1",onClick:function(){function c(){return u(C+.1)}return c}()})]})]})}},30268:function(w,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,f)}return V}()},f=function(y,S){var k=(0,a.useLocalState)(S,"progress",.5),v=k[0],i=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:v,children:["Value: ",Number(v).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 i(v-.1)}return c}()}),(0,e.createComponentVNode)(2,t.Button,{content:"+0.1",onClick:function(){function c(){return i(v+.1)}return c}()})]})]})}},30268:function(w,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 @@ -314,15 +314,15 @@ * @file * @copyright 2021 Aleksej Komarov * @license MIT - */var f=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 C(){localStorage.clear(),a.storage.clear()}return C}(),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(w,r,n){"use strict";r.__esModule=!0,r.meta=void 0;var e=n(96524),a=n(17899),t=n(24674);/** + */var f=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 v(){localStorage.clear(),a.storage.clear()}return v}(),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(w,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,V)}return y}()},f=["Tab #1","Tab #2","Tab #3","Tab #4"],V=function(S,k){var C=(0,a.useLocalState)(k,"tabIndex",0),u=C[0],c=C[1],m=(0,a.useLocalState)(k,"tabProps",{}),d=m[0],l=m[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 l(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 l(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 l(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 l(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 l(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 l(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:f.map(function(s,i){return(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:i===u,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 p(){return c(i)}return p}(),children:s},i)})})})],4)}},80254:function(w,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}()},f=["Tab #1","Tab #2","Tab #3","Tab #4"],V=function(S,k){var v=(0,a.useLocalState)(k,"tabIndex",0),i=v[0],c=v[1],m=(0,a.useLocalState)(k,"tabProps",{}),d=m[0],u=m[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 u(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 u(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 u(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 u(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 u(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 u(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:f.map(function(s,l){return(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:l===i,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 p(){return c(l)}return p}(),children:s},l)})})})],4)}},80254:function(w,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 V(){return(0,e.createComponentVNode)(2,f)}return V}()},f=function(y,S){var k=(0,a.useLocalState)(S,"kitchenSinkTheme"),C=k[0],u=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:C,onInput:function(){function c(m,d){return u(d)}return c}()})})})})}},90823:function(w,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,f)}return V}()},f=function(y,S){var k=(0,a.useLocalState)(S,"kitchenSinkTheme"),v=k[0],i=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:v,onInput:function(){function c(m,d){return i(d)}return c}()})})})})}},90823:function(w,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 @@ -330,12 +330,12 @@ * @file * @copyright 2021 Aleksej Komarov * @license MIT - */var t=r.BoxWithSampleText=function(){function o(f){return(0,e.normalizeProps)((0,e.createComponentVNode)(2,a.Box,Object.assign({},f,{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(){},38265:function(){},7455:function(){},58823:function(){},49265:function(){},55350:function(){},45503:function(){},36557:function(){},70555:function(){},70752:function(w,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 f=t(o);return n(f)}function t(o){if(!n.o(e,o)){var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}return e[o]}a.keys=function(){return Object.keys(e)},a.resolve=t,w.exports=a,a.id=70752},59395:function(w,r,n){var e={"./pda_atmos_scan.js":21606,"./pda_janitor.js":12339,"./pda_main_menu.js":36615,"./pda_manifest.js":99737,"./pda_medical.js":61597,"./pda_messenger.js":30709,"./pda_mule.js":68053,"./pda_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 f=t(o);return n(f)}function t(o){if(!n.o(e,o)){var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}return e[o]}a.keys=function(){return Object.keys(e)},a.resolve=t,w.exports=a,a.id=59395},32054:function(w,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,"./BloomEdit":70225,"./BloomEdit.js":70225,"./BlueSpaceArtilleryControl":65483,"./BlueSpaceArtilleryControl.js":65483,"./BluespaceTap":69099,"./BluespaceTap.js":69099,"./BodyScanner":71736,"./BodyScanner.js":71736,"./BookBinder":99449,"./BookBinder.js":99449,"./BotCall":85951,"./BotCall.js":85951,"./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":41099,"./ChemMaster.tsx":41099,"./CloningConsole":51327,"./CloningConsole.js":51327,"./CloningPod":66373,"./CloningPod.js":66373,"./CoinMint":38781,"./CoinMint.tsx":38781,"./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,"./Noticeboard":26148,"./Noticeboard.tsx":26148,"./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,"./PanDEMIC":6887,"./PanDEMIC.tsx":6887,"./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,"./ReagentsEditor":70976,"./ReagentsEditor.tsx":70976,"./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,"./TelescienceConsole":65875,"./TelescienceConsole.js":65875,"./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_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 f=t(o);return n(f)}function t(o){if(!n.o(e,o)){var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}return e[o]}a.keys=function(){return Object.keys(e)},a.resolve=t,w.exports=a,a.id=32054},4085:function(w,r,n){var e={"./Blink.stories.js":61498,"./BlockQuote.stories.js":27431,"./Box.stories.js":6517,"./Button.stories.js":20648,"./ByondUi.stories.js":14906,"./Collapsible.stories.js":59948,"./Flex.stories.js":37227,"./ImageButton.stories.js":16189,"./Input.stories.js":32304,"./Popper.stories.js":50394,"./ProgressBar.stories.js":75096,"./Stack.stories.js":30268,"./Storage.stories.js":22645,"./Tabs.stories.js":42120,"./Themes.stories.js":80254,"./Tooltip.stories.js":90823};function a(o){var f=t(o);return n(f)}function t(o){if(!n.o(e,o)){var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}return e[o]}a.keys=function(){return Object.keys(e)},a.resolve=t,w.exports=a,a.id=4085},97361:function(w,r,n){"use strict";var e=n(7532),a=n(62518),t=TypeError;w.exports=function(o){if(e(o))return o;throw new t(a(o)+" is not a function")}},76833:function(w,r,n){"use strict";var e=n(60354),a=n(62518),t=TypeError;w.exports=function(o){if(e(o))return o;throw new t(a(o)+" is not a constructor")}},51689:function(w,r,n){"use strict";var e=n(41224),a=String,t=TypeError;w.exports=function(o){if(e(o))return o;throw new t("Can't set "+a(o)+" as a prototype")}},91138:function(w,r,n){"use strict";var e=n(66266),a=n(28969),t=n(56018).f,o=e("unscopables"),f=Array.prototype;f[o]===void 0&&t(f,o,{configurable:!0,value:a(null)}),w.exports=function(V){f[o][V]=!0}},62970:function(w,r,n){"use strict";var e=n(56852).charAt;w.exports=function(a,t,o){return t+(o?e(a,t).length:1)}},19870:function(w,r,n){"use strict";var e=n(33314),a=TypeError;w.exports=function(t,o){if(e(o,t))return t;throw new a("Incorrect invocation")}},39482:function(w,r,n){"use strict";var e=n(56831),a=String,t=TypeError;w.exports=function(o){if(e(o))return o;throw new t(a(o)+" is not an object")}},67404:function(w){"use strict";w.exports=typeof ArrayBuffer!="undefined"&&typeof DataView!="undefined"},65693:function(w,r,n){"use strict";var e=n(41746);w.exports=e(function(){if(typeof ArrayBuffer=="function"){var a=new ArrayBuffer(8);Object.isExtensible(a)&&Object.defineProperty(a,"a",{value:8})}})},72951:function(w,r,n){"use strict";var e=n(67404),a=n(14141),t=n(40224),o=n(7532),f=n(56831),V=n(89458),y=n(27806),S=n(62518),k=n(16216),C=n(59173),u=n(10069),c=n(33314),m=n(31658),d=n(42878),l=n(66266),s=n(33345),i=n(35086),p=i.enforce,v=i.get,g=t.Int8Array,h=g&&g.prototype,N=t.Uint8ClampedArray,b=N&&N.prototype,B=g&&m(g),I=h&&m(h),L=Object.prototype,T=t.TypeError,A=l("toStringTag"),x=s("TYPED_ARRAY_TAG"),E="TypedArrayConstructor",M=e&&!!d&&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 ce(fe){if(!f(fe))return!1;var pe=y(fe);return pe==="DataView"||V(F,pe)||V(W,pe)}return ce}(),K=function ce(fe){var pe=m(fe);if(f(pe)){var he=v(pe);return he&&V(he,E)?he[E]:ce(pe)}},H=function(fe){if(!f(fe))return!1;var pe=y(fe);return V(F,pe)||V(W,pe)},X=function(fe){if(H(fe))return fe;throw new T("Target is not a typed array")},Y=function(fe){if(o(fe)&&(!d||c(B,fe)))return fe;throw new T(S(fe)+" is not a typed array constructor")},J=function(fe,pe,he,te){if(a){if(he)for(var Q in F){var ae=t[Q];if(ae&&V(ae.prototype,fe))try{delete ae.prototype[fe]}catch(ee){try{ae.prototype[fe]=pe}catch(oe){}}}(!I[fe]||he)&&C(I,fe,he?pe:M&&h[fe]||pe,te)}},le=function(fe,pe,he){var te,Q;if(a){if(d){if(he){for(te in F)if(Q=t[te],Q&&V(Q,fe))try{delete Q[fe]}catch(ae){}}if(!B[fe]||he)try{return C(B,fe,he?pe:M&&B[fe]||pe)}catch(ae){}else return}for(te in F)Q=t[te],Q&&(!Q[fe]||he)&&C(Q,fe,pe)}};for(P in F)R=t[P],D=R&&R.prototype,D?p(D)[E]=R:M=!1;for(P in W)R=t[P],D=R&&R.prototype,D&&(p(D)[E]=R);if((!M||!o(B)||B===Function.prototype)&&(B=function(){function ce(){throw new T("Incorrect invocation")}return ce}(),M))for(P in F)t[P]&&d(t[P],B);if((!M||!I||I===L)&&(I=B.prototype,M))for(P in F)t[P]&&d(t[P].prototype,I);if(M&&m(b)!==I&&d(b,I),a&&!V(I,A)){j=!0,u(I,A,{configurable:!0,get:function(){function ce(){return f(this)?this[x]:void 0}return ce}()});for(P in F)t[P]&&k(t[P],x,P)}w.exports={NATIVE_ARRAY_BUFFER_VIEWS:M,TYPED_ARRAY_TAG:j&&x,aTypedArray:X,aTypedArrayConstructor:Y,exportTypedArrayMethod:J,exportTypedArrayStaticMethod:le,getTypedArrayConstructor:K,isView:_,isTypedArray:H,TypedArray:B,TypedArrayPrototype:I}},46185:function(w,r,n){"use strict";var e=n(40224),a=n(18161),t=n(14141),o=n(67404),f=n(26463),V=n(16216),y=n(10069),S=n(13648),k=n(41746),C=n(19870),u=n(74952),c=n(10475),m=n(90835),d=n(75988),l=n(62263),s=n(31658),i=n(42878),p=n(59942),v=n(77713),g=n(2566),h=n(70113),N=n(94234),b=n(35086),B=f.PROPER,I=f.CONFIGURABLE,L="ArrayBuffer",T="DataView",A="prototype",x="Wrong length",E="Wrong index",M=b.getterFor(L),j=b.getterFor(T),P=b.set,R=e[L],D=R,F=D&&D[A],W=e[T],_=W&&W[A],K=Object.prototype,H=e.Array,X=e.RangeError,Y=a(p),J=a([].reverse),le=l.pack,ce=l.unpack,fe=function(Ve){return[Ve&255]},pe=function(Ve){return[Ve&255,Ve>>8&255]},he=function(Ve){return[Ve&255,Ve>>8&255,Ve>>16&255,Ve>>24&255]},te=function(Ve){return Ve[3]<<24|Ve[2]<<16|Ve[1]<<8|Ve[0]},Q=function(Ve){return le(d(Ve),23,4)},ae=function(Ve){return le(Ve,52,8)},ee=function(Ve,ke,ye){y(Ve[A],ke,{configurable:!0,get:function(){function Ie(){return ye(this)[ke]}return Ie}()})},oe=function(Ve,ke,ye,Ie){var we=j(Ve),xe=m(ye),Oe=!!Ie;if(xe+ke>we.byteLength)throw new X(E);var We=we.bytes,be=xe+we.byteOffset,ie=v(We,be,be+ke);return Oe?ie:J(ie)},ue=function(Ve,ke,ye,Ie,we,xe){var Oe=j(Ve),We=m(ye),be=Ie(+we),ie=!!xe;if(We+ke>Oe.byteLength)throw new X(E);for(var se=Oe.bytes,Ce=We+Oe.byteOffset,me=0;mewe)throw new X("Wrong offset");if(ye=ye===void 0?we-xe:c(ye),xe+ye>we)throw new X(x);P(this,{type:T,buffer:Ve,byteLength:ye,byteOffset:xe,bytes:Ie.bytes}),t||(this.buffer=Ve,this.byteLength=ye,this.byteOffset=xe)}return ve}(),_=W[A],t&&(ee(D,"byteLength",M),ee(W,"buffer",j),ee(W,"byteLength",j),ee(W,"byteOffset",j)),S(_,{getInt8:function(){function ve(Ve){return oe(this,1,Ve)[0]<<24>>24}return ve}(),getUint8:function(){function ve(Ve){return oe(this,1,Ve)[0]}return ve}(),getInt16:function(){function ve(Ve){var ke=oe(this,2,Ve,arguments.length>1?arguments[1]:!1);return(ke[1]<<8|ke[0])<<16>>16}return ve}(),getUint16:function(){function ve(Ve){var ke=oe(this,2,Ve,arguments.length>1?arguments[1]:!1);return ke[1]<<8|ke[0]}return ve}(),getInt32:function(){function ve(Ve){return te(oe(this,4,Ve,arguments.length>1?arguments[1]:!1))}return ve}(),getUint32:function(){function ve(Ve){return te(oe(this,4,Ve,arguments.length>1?arguments[1]:!1))>>>0}return ve}(),getFloat32:function(){function ve(Ve){return ce(oe(this,4,Ve,arguments.length>1?arguments[1]:!1),23)}return ve}(),getFloat64:function(){function ve(Ve){return ce(oe(this,8,Ve,arguments.length>1?arguments[1]:!1),52)}return ve}(),setInt8:function(){function ve(Ve,ke){ue(this,1,Ve,fe,ke)}return ve}(),setUint8:function(){function ve(Ve,ke){ue(this,1,Ve,fe,ke)}return ve}(),setInt16:function(){function ve(Ve,ke){ue(this,2,Ve,pe,ke,arguments.length>2?arguments[2]:!1)}return ve}(),setUint16:function(){function ve(Ve,ke){ue(this,2,Ve,pe,ke,arguments.length>2?arguments[2]:!1)}return ve}(),setInt32:function(){function ve(Ve,ke){ue(this,4,Ve,he,ke,arguments.length>2?arguments[2]:!1)}return ve}(),setUint32:function(){function ve(Ve,ke){ue(this,4,Ve,he,ke,arguments.length>2?arguments[2]:!1)}return ve}(),setFloat32:function(){function ve(Ve,ke){ue(this,4,Ve,Q,ke,arguments.length>2?arguments[2]:!1)}return ve}(),setFloat64:function(){function ve(Ve,ke){ue(this,8,Ve,ae,ke,arguments.length>2?arguments[2]:!1)}return ve}()});else{var re=B&&R.name!==L;!k(function(){R(1)})||!k(function(){new R(-1)})||k(function(){return new R,new R(1.5),new R(NaN),R.length!==1||re&&!I})?(D=function(){function ve(Ve){return C(this,F),g(new R(m(Ve)),this,D)}return ve}(),D[A]=F,F.constructor=D,h(D,R)):re&&I&&V(R,"name",L),i&&s(_)!==K&&i(_,K);var ge=new W(new D(2)),Be=a(_.setInt8);ge.setInt8(0,2147483648),ge.setInt8(1,2147483649),(ge.getInt8(0)||!ge.getInt8(1))&&S(_,{setInt8:function(){function ve(Ve,ke){Be(this,Ve,ke<<24>>24)}return ve}(),setUint8:function(){function ve(Ve,ke){Be(this,Ve,ke<<24>>24)}return ve}()},{unsafe:!0})}N(D,L),N(W,T),w.exports={ArrayBuffer:D,DataView:W}},42320:function(w,r,n){"use strict";var e=n(40076),a=n(74067),t=n(8333),o=n(58937),f=Math.min;w.exports=[].copyWithin||function(){function V(y,S){var k=e(this),C=t(k),u=a(y,C),c=a(S,C),m=arguments.length>2?arguments[2]:void 0,d=f((m===void 0?C:a(m,C))-c,C-u),l=1;for(c0;)c in k?k[u]=k[c]:o(k,u),u+=l,c+=l;return k}return V}()},59942:function(w,r,n){"use strict";var e=n(40076),a=n(74067),t=n(8333);w.exports=function(){function o(f){for(var V=e(this),y=t(V),S=arguments.length,k=a(S>1?arguments[1]:void 0,y),C=S>2?arguments[2]:void 0,u=C===void 0?y:a(C,y);u>k;)V[k++]=f;return V}return o}()},75420:function(w,r,n){"use strict";var e=n(67480).forEach,a=n(42309),t=a("forEach");w.exports=t?[].forEach:function(){function o(f){return e(this,f,arguments.length>1?arguments[1]:void 0)}return o}()},6967:function(w,r,n){"use strict";var e=n(8333);w.exports=function(a,t,o){for(var f=0,V=arguments.length>2?o:e(t),y=new a(V);V>f;)y[f]=t[f++];return y}},80363:function(w,r,n){"use strict";var e=n(4509),a=n(62696),t=n(40076),o=n(17100),f=n(58482),V=n(60354),y=n(8333),S=n(12913),k=n(3438),C=n(76274),u=Array;w.exports=function(){function c(m){var d=t(m),l=V(this),s=arguments.length,i=s>1?arguments[1]:void 0,p=i!==void 0;p&&(i=e(i,s>2?arguments[2]:void 0));var v=C(d),g=0,h,N,b,B,I,L;if(v&&!(this===u&&f(v)))for(N=l?new this:[],B=k(d,v),I=B.next;!(b=a(I,B)).done;g++)L=p?o(B,i,[b.value,g],!0):b.value,S(N,g,L);else for(h=y(d),N=l?new this(h):u(h);h>g;g++)L=p?i(d[g],g):d[g],S(N,g,L);return N.length=g,N}return c}()},64210:function(w,r,n){"use strict";var e=n(96812),a=n(74067),t=n(8333),o=function(V){return function(y,S,k){var C=e(y),u=t(C);if(u===0)return!V&&-1;var c=a(k,u),m;if(V&&S!==S){for(;u>c;)if(m=C[c++],m!==m)return!0}else for(;u>c;c++)if((V||c in C)&&C[c]===S)return V||c||0;return!V&&-1}};w.exports={includes:o(!0),indexOf:o(!1)}},67480:function(w,r,n){"use strict";var e=n(4509),a=n(18161),t=n(26736),o=n(40076),f=n(8333),V=n(32878),y=a([].push),S=function(C){var u=C===1,c=C===2,m=C===3,d=C===4,l=C===6,s=C===7,i=C===5||l;return function(p,v,g,h){for(var N=o(p),b=t(N),B=f(b),I=e(v,g),L=0,T=h||V,A=u?T(p,B):c||s?T(p,0):void 0,x,E;B>L;L++)if((i||L in b)&&(x=b[L],E=I(x,L,N),C))if(u)A[L]=E;else if(E)switch(C){case 3:return!0;case 5:return x;case 6:return L;case 2:y(A,x)}else switch(C){case 4:return!1;case 7:y(A,x)}return l?-1:m||d?d:A}};w.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(w,r,n){"use strict";var e=n(70918),a=n(96812),t=n(74952),o=n(8333),f=n(42309),V=Math.min,y=[].lastIndexOf,S=!!y&&1/[1].lastIndexOf(1,-0)<0,k=f("lastIndexOf"),C=S||!k;w.exports=C?function(){function u(c){if(S)return e(y,this,arguments)||0;var m=a(this),d=o(m);if(d===0)return-1;var l=d-1;for(arguments.length>1&&(l=V(l,t(arguments[1]))),l<0&&(l=d+l);l>=0;l--)if(l in m&&m[l]===c)return l||0;return-1}return u}():y},55114:function(w,r,n){"use strict";var e=n(41746),a=n(66266),t=n(82709),o=a("species");w.exports=function(f){return t>=51||!e(function(){var V=[],y=V.constructor={};return y[o]=function(){return{foo:1}},V[f](Boolean).foo!==1})}},42309:function(w,r,n){"use strict";var e=n(41746);w.exports=function(a,t){var o=[][a];return!!o&&e(function(){o.call(null,t||function(){return 1},1)})}},98405:function(w,r,n){"use strict";var e=n(97361),a=n(40076),t=n(26736),o=n(8333),f=TypeError,V="Reduce of empty array with no initial value",y=function(k){return function(C,u,c,m){var d=a(C),l=t(d),s=o(d);if(e(u),s===0&&c<2)throw new f(V);var i=k?s-1:0,p=k?-1:1;if(c<2)for(;;){if(i in l){m=l[i],i+=p;break}if(i+=p,k?i<0:s<=i)throw new f(V)}for(;k?i>=0:s>i;i+=p)i in l&&(m=u(m,l[i],i,d));return m}};w.exports={left:y(!1),right:y(!0)}},72720:function(w,r,n){"use strict";var e=n(14141),a=n(62367),t=TypeError,o=Object.getOwnPropertyDescriptor,f=e&&!function(){if(this!==void 0)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(V){return V instanceof TypeError}}();w.exports=f?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(w,r,n){"use strict";var e=n(18161);w.exports=e([].slice)},44815:function(w,r,n){"use strict";var e=n(77713),a=Math.floor,t=function o(f,V){var y=f.length;if(y<8)for(var S=1,k,C;S0;)f[C]=f[--C];C!==S++&&(f[C]=k)}else for(var u=a(y/2),c=o(e(f,0,u),V),m=o(e(f,u),V),d=c.length,l=m.length,s=0,i=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 L}(),has:function(){function L(T){return!!I(this,T)}return L}()}),t(N,v?{get:function(){function L(T){var A=I(this,T);return A&&A.value}return L}(),set:function(){function L(T,A){return B(this,T===0?0:T,A)}return L}()}:{add:function(){function L(T){return B(this,T=T===0?0:T,T)}return L}()}),u&&a(N,"size",{configurable:!0,get:function(){function L(){return b(this).size}return L}()}),h}return s}(),setStrong:function(){function s(i,p,v){var g=p+" Iterator",h=l(p),N=l(g);S(i,p,function(b,B){d(this,{type:g,target:b,state:h(b),kind:B,last:void 0})},function(){for(var b=N(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),C(p)}return s}()}},32920:function(w,r,n){"use strict";var e=n(18161),a=n(13648),t=n(29126).getWeakData,o=n(19870),f=n(39482),V=n(1022),y=n(56831),S=n(281),k=n(67480),C=n(89458),u=n(35086),c=u.set,m=u.getterFor,d=k.find,l=k.findIndex,s=e([].splice),i=0,p=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 h(N){var b=g(this,N);if(b)return b[1]}return h}(),has:function(){function h(N){return!!g(this,N)}return h}(),set:function(){function h(N,b){var B=g(this,N);B?B[1]=b:this.entries.push([N,b])}return h}(),delete:function(){function h(N){var b=l(this.entries,function(B){return B[0]===N});return~b&&s(this.entries,b,1),!!~b}return h}()},w.exports={getConstructor:function(){function h(N,b,B,I){var L=N(function(E,M){o(E,T),c(E,{type:b,id:i++,frozen:void 0}),V(M)||S(M,E[I],{that:E,AS_ENTRIES:B})}),T=L.prototype,A=m(b),x=function(){function E(M,j,P){var R=A(M),D=t(f(j),!0);return D===!0?p(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?p(j).delete(M):P&&C(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?p(j).has(M):P&&C(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?p(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}()}),L}return h}()}},93439:function(w,r,n){"use strict";var e=n(77549),a=n(40224),t=n(18161),o=n(95945),f=n(59173),V=n(29126),y=n(281),S=n(19870),k=n(7532),C=n(1022),u=n(56831),c=n(41746),m=n(52019),d=n(94234),l=n(2566);w.exports=function(s,i,p){var v=s.indexOf("Map")!==-1,g=s.indexOf("Weak")!==-1,h=v?"set":"add",N=a[s],b=N&&N.prototype,B=N,I={},L=function(R){var D=t(b[R]);f(b,R,R==="add"?function(){function F(W){return D(this,W===0?0:W),this}return F}():R==="delete"?function(F){return g&&!u(F)?!1:D(this,F===0?0:F)}:R==="get"?function(){function F(W){return g&&!u(W)?void 0:D(this,W===0?0:W)}return F}():R==="has"?function(){function F(W){return g&&!u(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(N)||!(g||b.forEach&&!c(function(){new N().entries().next()})));if(T)B=p.getConstructor(i,s,v,h),V.enable();else if(o(s,!0)){var A=new B,x=A[h](g?{}:-0,1)!==A,E=c(function(){A.has(1)}),M=m(function(P){new N(P)}),j=!g&&c(function(){for(var P=new N,R=5;R--;)P[h](R,R);return!P.has(-0)});M||(B=i(function(P,R){S(P,b);var D=l(new N,P,B);return C(R)||y(R,D[h],{that:D,AS_ENTRIES:v}),D}),B.prototype=b,b.constructor=B),(E||j)&&(L("delete"),L("has"),v&&L("get")),(j||x)&&L(h),g&&b.clear&&delete b.clear}return I[s]=B,e({global:!0,constructor:!0,forced:B!==N},I),d(B,s),g||p.setStrong(B,s,v),B}},70113:function(w,r,n){"use strict";var e=n(89458),a=n(93616),t=n(54168),o=n(56018);w.exports=function(f,V,y){for(var S=a(V),k=o.f,C=t.f,u=0;u"+C+""}},77056:function(w){"use strict";w.exports=function(r,n){return{value:r,done:n}}},16216:function(w,r,n){"use strict";var e=n(14141),a=n(56018),t=n(7539);w.exports=e?function(o,f,V){return a.f(o,f,t(1,V))}:function(o,f,V){return o[f]=V,o}},7539:function(w){"use strict";w.exports=function(r,n){return{enumerable:!(r&1),configurable:!(r&2),writable:!(r&4),value:n}}},12913:function(w,r,n){"use strict";var e=n(14141),a=n(56018),t=n(7539);w.exports=function(o,f,V){e?a.f(o,f,t(0,V)):o[f]=V}},74003:function(w,r,n){"use strict";var e=n(18161),a=n(41746),t=n(34086).start,o=RangeError,f=isFinite,V=Math.abs,y=Date.prototype,S=y.toISOString,k=e(y.getTime),C=e(y.getUTCDate),u=e(y.getUTCFullYear),c=e(y.getUTCHours),m=e(y.getUTCMilliseconds),d=e(y.getUTCMinutes),l=e(y.getUTCMonth),s=e(y.getUTCSeconds);w.exports=a(function(){return S.call(new Date(-50000000000001))!=="0385-07-25T07:06:39.999Z"})||!a(function(){S.call(new Date(NaN))})?function(){function i(){if(!f(k(this)))throw new o("Invalid time value");var p=this,v=u(p),g=m(p),h=v<0?"-":v>9999?"+":"";return h+t(V(v),h?6:4,0)+"-"+t(l(p)+1,2,0)+"-"+t(C(p),2,0)+"T"+t(c(p),2,0)+":"+t(d(p),2,0)+":"+t(s(p),2,0)+"."+t(g,3,0)+"Z"}return i}():S},95865:function(w,r,n){"use strict";var e=n(39482),a=n(14991),t=TypeError;w.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(w,r,n){"use strict";var e=n(76130),a=n(56018);w.exports=function(t,o,f){return f.get&&e(f.get,o,{getter:!0}),f.set&&e(f.set,o,{setter:!0}),a.f(t,o,f)}},59173:function(w,r,n){"use strict";var e=n(7532),a=n(56018),t=n(76130),o=n(93422);w.exports=function(f,V,y,S){S||(S={});var k=S.enumerable,C=S.name!==void 0?S.name:V;if(e(y)&&t(y,C,S),S.global)k?f[V]=y:o(V,y);else{try{S.unsafe?f[V]&&(k=!0):delete f[V]}catch(u){}k?f[V]=y:a.f(f,V,{value:y,enumerable:!1,configurable:!S.nonConfigurable,writable:!S.nonWritable})}return f}},13648:function(w,r,n){"use strict";var e=n(59173);w.exports=function(a,t,o){for(var f in t)e(a,f,t[f],o);return a}},93422:function(w,r,n){"use strict";var e=n(40224),a=Object.defineProperty;w.exports=function(t,o){try{a(e,t,{value:o,configurable:!0,writable:!0})}catch(f){e[t]=o}return o}},58937:function(w,r,n){"use strict";var e=n(62518),a=TypeError;w.exports=function(t,o){if(!delete t[o])throw new a("Cannot delete property "+e(o)+" of "+e(t))}},14141:function(w,r,n){"use strict";var e=n(41746);w.exports=!e(function(){return Object.defineProperty({},1,{get:function(){function a(){return 7}return a}()})[1]!==7})},85158:function(w,r,n){"use strict";var e=n(40224),a=n(56831),t=e.document,o=a(t)&&a(t.createElement);w.exports=function(f){return o?t.createElement(f):{}}},72434:function(w){"use strict";var r=TypeError,n=9007199254740991;w.exports=function(e){if(e>n)throw r("Maximum allowed index exceeded");return e}},49847:function(w,r,n){"use strict";var e=n(15837),a=e.match(/firefox\/(\d+)/i);w.exports=!!a&&+a[1]},27955:function(w,r,n){"use strict";var e=n(2971),a=n(95823);w.exports=!e&&!a&&typeof window=="object"&&typeof document=="object"},2178:function(w){"use strict";w.exports=typeof Bun=="function"&&Bun&&typeof Bun.version=="string"},2971:function(w){"use strict";w.exports=typeof Deno=="object"&&Deno&&typeof Deno.version=="object"},56605:function(w,r,n){"use strict";var e=n(15837);w.exports=/MSIE|Trident/.test(e)},6647:function(w,r,n){"use strict";var e=n(15837);w.exports=/ipad|iphone|ipod/i.test(e)&&typeof Pebble!="undefined"},52426:function(w,r,n){"use strict";var e=n(15837);w.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(e)},95823:function(w,r,n){"use strict";var e=n(40224),a=n(38817);w.exports=a(e.process)==="process"},25062:function(w,r,n){"use strict";var e=n(15837);w.exports=/web0s(?!.*chrome)/i.test(e)},15837:function(w){"use strict";w.exports=typeof navigator!="undefined"&&String(navigator.userAgent)||""},82709:function(w,r,n){"use strict";var e=n(40224),a=n(15837),t=e.process,o=e.Deno,f=t&&t.versions||o&&o.version,V=f&&f.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]))),w.exports=S},53125:function(w,r,n){"use strict";var e=n(15837),a=e.match(/AppleWebKit\/(\d+)\./);w.exports=!!a&&+a[1]},90298:function(w){"use strict";w.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},77549:function(w,r,n){"use strict";var e=n(40224),a=n(54168).f,t=n(16216),o=n(59173),f=n(93422),V=n(70113),y=n(95945);w.exports=function(S,k){var C=S.target,u=S.global,c=S.stat,m,d,l,s,i,p;if(u?d=e:c?d=e[C]||f(C,{}):d=e[C]&&e[C].prototype,d)for(l in k){if(i=k[l],S.dontCallGetSet?(p=a(d,l),s=p&&p.value):s=d[l],m=y(u?l:C+(c?".":"#")+l,S.forced),!m&&s!==void 0){if(typeof i==typeof s)continue;V(i,s)}(S.sham||s&&s.sham)&&t(i,"sham",!0),o(d,l,i,S)}}},41746:function(w){"use strict";w.exports=function(r){try{return!!r()}catch(n){return!0}}},85427:function(w,r,n){"use strict";n(95880);var e=n(62696),a=n(59173),t=n(72894),o=n(41746),f=n(66266),V=n(16216),y=f("species"),S=RegExp.prototype;w.exports=function(k,C,u,c){var m=f(k),d=!o(function(){var p={};return p[m]=function(){return 7},""[k](p)!==7}),l=d&&!o(function(){var p=!1,v=/a/;return k==="split"&&(v={},v.constructor={},v.constructor[y]=function(){return v},v.flags="",v[m]=/./[m]),v.exec=function(){return p=!0,null},v[m](""),!p});if(!d||!l||u){var s=/./[m],i=C(m,""[k],function(p,v,g,h,N){var b=v.exec;return b===t||b===S.exec?d&&!N?{done:!0,value:e(s,v,g,h)}:{done:!0,value:e(p,g,v,h)}:{done:!1}});a(String.prototype,k,i[0]),a(S,m,i[1])}c&&V(S[m],"sham",!0)}},68864:function(w,r,n){"use strict";var e=n(62367),a=n(8333),t=n(72434),o=n(4509),f=function V(y,S,k,C,u,c,m,d){for(var l=u,s=0,i=m?o(m,d):!1,p,v;s0&&e(p)?(v=a(p),l=V(y,S,p,v,l,c-1)-1):(t(l+1),y[l]=p),l++),s++;return l};w.exports=f},56255:function(w,r,n){"use strict";var e=n(41746);w.exports=!e(function(){return Object.isExtensible(Object.preventExtensions({}))})},70918:function(w,r,n){"use strict";var e=n(76799),a=Function.prototype,t=a.apply,o=a.call;w.exports=typeof Reflect=="object"&&Reflect.apply||(e?o.bind(t):function(){return o.apply(t,arguments)})},4509:function(w,r,n){"use strict";var e=n(85067),a=n(97361),t=n(76799),o=e(e.bind);w.exports=function(f,V){return a(f),V===void 0?f:t?o(f,V):function(){return f.apply(V,arguments)}}},76799:function(w,r,n){"use strict";var e=n(41746);w.exports=!e(function(){var a=function(){}.bind();return typeof a!="function"||a.hasOwnProperty("prototype")})},9379:function(w,r,n){"use strict";var e=n(18161),a=n(97361),t=n(56831),o=n(89458),f=n(77713),V=n(76799),y=Function,S=e([].concat),k=e([].join),C={},u=function(m,d,l){if(!o(C,d)){for(var s=[],i=0;i]*>)/g,S=/\$([$&'`]|\d{1,2})/g;w.exports=function(k,C,u,c,m,d){var l=u+k.length,s=c.length,i=S;return m!==void 0&&(m=a(m),i=y),f(d,i,function(p,v){var g;switch(o(v,0)){case"$":return"$";case"&":return k;case"`":return V(C,0,u);case"'":return V(C,l);case"<":g=m[V(v,1,-1)];break;default:var h=+v;if(h===0)return p;if(h>s){var N=t(h/10);return N===0?p:N<=s?c[N-1]===void 0?o(v,1):c[N-1]+o(v,1):p}g=c[h-1]}return g===void 0?"":g})}},40224:function(w,r,n){"use strict";var e=function(t){return t&&t.Math===Math&&t};w.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(w,r,n){"use strict";var e=n(18161),a=n(40076),t=e({}.hasOwnProperty);w.exports=Object.hasOwn||function(){function o(f,V){return t(a(f),V)}return o}()},21124:function(w){"use strict";w.exports={}},46122:function(w){"use strict";w.exports=function(r,n){try{arguments.length}catch(e){}}},54562:function(w,r,n){"use strict";var e=n(40164);w.exports=e("document","documentElement")},1606:function(w,r,n){"use strict";var e=n(14141),a=n(41746),t=n(85158);w.exports=!e&&!a(function(){return Object.defineProperty(t("div"),"a",{get:function(){function o(){return 7}return o}()}).a!==7})},62263:function(w){"use strict";var r=Array,n=Math.abs,e=Math.pow,a=Math.floor,t=Math.log,o=Math.LN2,f=function(S,k,C){var u=r(C),c=C*8-k-1,m=(1<>1,l=k===23?e(2,-24)-e(2,-77):0,s=S<0||S===0&&1/S<0?1:0,i=0,p,v,g;for(S=n(S),S!==S||S===1/0?(v=S!==S?1:0,p=m):(p=a(t(S)/o),g=e(2,-p),S*g<1&&(p--,g*=2),p+d>=1?S+=l/g:S+=l*e(2,1-d),S*g>=2&&(p++,g/=2),p+d>=m?(v=0,p=m):p+d>=1?(v=(S*g-1)*e(2,k),p+=d):(v=S*e(2,d-1)*e(2,k),p=0));k>=8;)u[i++]=v&255,v/=256,k-=8;for(p=p<0;)u[i++]=p&255,p/=256,c-=8;return u[--i]|=s*128,u},V=function(S,k){var C=S.length,u=C*8-k-1,c=(1<>1,d=u-7,l=C-1,s=S[l--],i=s&127,p;for(s>>=7;d>0;)i=i*256+S[l--],d-=8;for(p=i&(1<<-d)-1,i>>=-d,d+=k;d>0;)p=p*256+S[l--],d-=8;if(i===0)i=1-m;else{if(i===c)return p?NaN:s?-1/0:1/0;p+=e(2,k),i-=m}return(s?-1:1)*p*e(2,i-k)};w.exports={pack:f,unpack:V}},26736:function(w,r,n){"use strict";var e=n(18161),a=n(41746),t=n(38817),o=Object,f=e("".split);w.exports=a(function(){return!o("z").propertyIsEnumerable(0)})?function(V){return t(V)==="String"?f(V,""):o(V)}:o},2566:function(w,r,n){"use strict";var e=n(7532),a=n(56831),t=n(42878);w.exports=function(o,f,V){var y,S;return t&&e(y=f.constructor)&&y!==V&&a(S=y.prototype)&&S!==V.prototype&&t(o,S),o}},43589:function(w,r,n){"use strict";var e=n(18161),a=n(7532),t=n(95046),o=e(Function.toString);a(t.inspectSource)||(t.inspectSource=function(f){return o(f)}),w.exports=t.inspectSource},29126:function(w,r,n){"use strict";var e=n(77549),a=n(18161),t=n(21124),o=n(56831),f=n(89458),V=n(56018).f,y=n(34813),S=n(63797),k=n(57975),C=n(33345),u=n(56255),c=!1,m=C("meta"),d=0,l=function(N){V(N,m,{value:{objectID:"O"+d++,weakData:{}}})},s=function(N,b){if(!o(N))return typeof N=="symbol"?N:(typeof N=="string"?"S":"P")+N;if(!f(N,m)){if(!k(N))return"F";if(!b)return"E";l(N)}return N[m].objectID},i=function(N,b){if(!f(N,m)){if(!k(N))return!0;if(!b)return!1;l(N)}return N[m].weakData},p=function(N){return u&&c&&k(N)&&!f(N,m)&&l(N),N},v=function(){g.enable=function(){},c=!0;var N=y.f,b=a([].splice),B={};B[m]=1,N(B).length&&(y.f=function(I){for(var L=N(I),T=0,A=L.length;TI;I++)if(T=M(d[I]),T&&y(m,T))return T;return new c(!1)}b=S(d,B)}for(A=v?d.next:b.next;!(x=a(A,b)).done;){try{T=M(x.value)}catch(j){C(b,"throw",j)}if(typeof T=="object"&&T&&y(m,T))return T}return new c(!1)}},14868:function(w,r,n){"use strict";var e=n(62696),a=n(39482),t=n(4817);w.exports=function(o,f,V){var y,S;a(o);try{if(y=t(o,"return"),!y){if(f==="throw")throw V;return V}y=e(y,o)}catch(k){S=!0,y=k}if(f==="throw")throw V;if(S)throw y;return a(y),V}},42599:function(w,r,n){"use strict";var e=n(85106).IteratorPrototype,a=n(28969),t=n(7539),o=n(94234),f=n(90604),V=function(){return this};w.exports=function(y,S,k,C){var u=S+" Iterator";return y.prototype=a(e,{next:t(+!C,k)}),o(y,u,!1,!0),f[u]=V,y}},2449:function(w,r,n){"use strict";var e=n(77549),a=n(62696),t=n(11478),o=n(26463),f=n(7532),V=n(42599),y=n(31658),S=n(42878),k=n(94234),C=n(16216),u=n(59173),c=n(66266),m=n(90604),d=n(85106),l=o.PROPER,s=o.CONFIGURABLE,i=d.IteratorPrototype,p=d.BUGGY_SAFARI_ITERATORS,v=c("iterator"),g="keys",h="values",N="entries",b=function(){return this};w.exports=function(B,I,L,T,A,x,E){V(L,I,T);var M=function(Y){if(Y===A&&F)return F;if(!p&&Y&&Y in R)return R[Y];switch(Y){case g:return function(){function J(){return new L(this,Y)}return J}();case h:return function(){function J(){return new L(this,Y)}return J}();case N:return function(){function J(){return new L(this,Y)}return J}()}return function(){return new L(this)}},j=I+" Iterator",P=!1,R=B.prototype,D=R[v]||R["@@iterator"]||A&&R[A],F=!p&&D||M(A),W=I==="Array"&&R.entries||D,_,K,H;if(W&&(_=y(W.call(new B)),_!==Object.prototype&&_.next&&(!t&&y(_)!==i&&(S?S(_,i):f(_[v])||u(_,v,b)),k(_,j,!0,!0),t&&(m[j]=b))),l&&A===h&&D&&D.name!==h&&(!t&&s?C(R,"name",h):(P=!0,F=function(){function X(){return a(D,this)}return X}())),A)if(K={values:M(h),keys:x?F:M(g),entries:M(N)},E)for(H in K)(p||P||!(H in R))&&u(R,H,K[H]);else e({target:I,proto:!0,forced:p||P},K);return(!t||E)&&R[v]!==F&&u(R,v,F,{name:A}),m[I]=F,K}},85106:function(w,r,n){"use strict";var e=n(41746),a=n(7532),t=n(56831),o=n(28969),f=n(31658),V=n(59173),y=n(66266),S=n(11478),k=y("iterator"),C=!1,u,c,m;[].keys&&(m=[].keys(),"next"in m?(c=f(f(m)),c!==Object.prototype&&(u=c)):C=!0);var d=!t(u)||e(function(){var l={};return u[k].call(l)!==l});d?u={}:S&&(u=o(u)),a(u[k])||V(u,k,function(){return this}),w.exports={IteratorPrototype:u,BUGGY_SAFARI_ITERATORS:C}},90604:function(w){"use strict";w.exports={}},8333:function(w,r,n){"use strict";var e=n(10475);w.exports=function(a){return e(a.length)}},76130:function(w,r,n){"use strict";var e=n(18161),a=n(41746),t=n(7532),o=n(89458),f=n(14141),V=n(26463).CONFIGURABLE,y=n(43589),S=n(35086),k=S.enforce,C=S.get,u=String,c=Object.defineProperty,m=e("".slice),d=e("".replace),l=e([].join),s=f&&!a(function(){return c(function(){},"length",{value:8}).length!==8}),i=String(String).split("String"),p=w.exports=function(v,g,h){m(u(g),0,7)==="Symbol("&&(g="["+d(u(g),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),h&&h.getter&&(g="get "+g),h&&h.setter&&(g="set "+g),(!o(v,"name")||V&&v.name!==g)&&(f?c(v,"name",{value:g,configurable:!0}):v.name=g),s&&h&&o(h,"arity")&&v.length!==h.arity&&c(v,"length",{value:h.arity});try{h&&o(h,"constructor")&&h.constructor?f&&c(v,"prototype",{writable:!1}):v.prototype&&(v.prototype=void 0)}catch(b){}var N=k(v);return o(N,"source")||(N.source=l(i,typeof g=="string"?g:"")),v};Function.prototype.toString=p(function(){function v(){return t(this)&&C(this).source||y(this)}return v}(),"toString")},32813:function(w){"use strict";var r=Math.expm1,n=Math.exp;w.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(w,r,n){"use strict";var e=n(54307),a=Math.abs,t=2220446049250313e-31,o=1/t,f=function(y){return y+o-o};w.exports=function(V,y,S,k){var C=+V,u=a(C),c=e(C);if(uS||d!==d?c*(1/0):c*d}},75988:function(w,r,n){"use strict";var e=n(23207),a=11920928955078125e-23,t=34028234663852886e22,o=11754943508222875e-54;w.exports=Math.fround||function(){function f(V){return e(V,a,t,o)}return f}()},53271:function(w){"use strict";var r=Math.log,n=Math.LOG10E;w.exports=Math.log10||function(){function e(a){return r(a)*n}return e}()},69143:function(w){"use strict";var r=Math.log;w.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(w){"use strict";w.exports=Math.sign||function(){function r(n){var e=+n;return e===0||e!==e?e:e<0?-1:1}return r}()},34606:function(w){"use strict";var r=Math.ceil,n=Math.floor;w.exports=Math.trunc||function(){function e(a){var t=+a;return(t>0?n:r)(t)}return e}()},27150:function(w,r,n){"use strict";var e=n(40224),a=n(1156),t=n(4509),o=n(91314).set,f=n(23496),V=n(52426),y=n(6647),S=n(25062),k=n(95823),C=e.MutationObserver||e.WebKitMutationObserver,u=e.document,c=e.process,m=e.Promise,d=a("queueMicrotask"),l,s,i,p,v;if(!d){var g=new f,h=function(){var b,B;for(k&&(b=c.domain)&&b.exit();B=g.get();)try{B()}catch(I){throw g.head&&l(),I}b&&b.enter()};!V&&!k&&!S&&C&&u?(s=!0,i=u.createTextNode(""),new C(h).observe(i,{characterData:!0}),l=function(){i.data=s=!s}):!y&&m&&m.resolve?(p=m.resolve(void 0),p.constructor=m,v=t(p.then,p),l=function(){v(h)}):k?l=function(){c.nextTick(h)}:(o=t(o,e),l=function(){o(h)}),d=function(b){g.head||l(),g.add(b)}}w.exports=d},48532:function(w,r,n){"use strict";var e=n(97361),a=TypeError,t=function(f){var V,y;this.promise=new f(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)};w.exports.f=function(o){return new t(o)}},89140:function(w,r,n){"use strict";var e=n(80969),a=TypeError;w.exports=function(t){if(e(t))throw new a("The method doesn't accept regular expressions");return t}},69079:function(w,r,n){"use strict";var e=n(40224),a=e.isFinite;w.exports=Number.isFinite||function(){function t(o){return typeof o=="number"&&a(o)}return t}()},43283:function(w,r,n){"use strict";var e=n(40224),a=n(41746),t=n(18161),o=n(26602),f=n(35171).trim,V=n(137),y=t("".charAt),S=e.parseFloat,k=e.Symbol,C=k&&k.iterator,u=1/S(V+"-0")!==-1/0||C&&!a(function(){S(Object(C))});w.exports=u?function(){function c(m){var d=f(o(m)),l=S(d);return l===0&&y(d,0)==="-"?-0:l}return c}():S},11540:function(w,r,n){"use strict";var e=n(40224),a=n(41746),t=n(18161),o=n(26602),f=n(35171).trim,V=n(137),y=e.parseInt,S=e.Symbol,k=S&&S.iterator,C=/^[+-]?0x/i,u=t(C.exec),c=y(V+"08")!==8||y(V+"0x16")!==22||k&&!a(function(){y(Object(k))});w.exports=c?function(){function m(d,l){var s=f(o(d));return y(s,l>>>0||(u(C,s)?16:10))}return m}():y},12752:function(w,r,n){"use strict";var e=n(14141),a=n(18161),t=n(62696),o=n(41746),f=n(84913),V=n(34220),y=n(9776),S=n(40076),k=n(26736),C=Object.assign,u=Object.defineProperty,c=a([].concat);w.exports=!C||o(function(){if(e&&C({b:1},C(u({},"a",{enumerable:!0,get:function(){function i(){u(this,"b",{value:3,enumerable:!1})}return i}()}),{b:2})).b!==1)return!0;var m={},d={},l=Symbol("assign detection"),s="abcdefghijklmnopqrst";return m[l]=7,s.split("").forEach(function(i){d[i]=i}),C({},m)[l]!==7||f(C({},d)).join("")!==s})?function(){function m(d,l){for(var s=S(d),i=arguments.length,p=1,v=V.f,g=y.f;i>p;)for(var h=k(arguments[p++]),N=v?c(f(h),v(h)):f(h),b=N.length,B=0,I;b>B;)I=N[B++],(!e||t(g,h,I))&&(s[I]=h[I]);return s}return m}():C},28969:function(w,r,n){"use strict";var e=n(39482),a=n(65854),t=n(90298),o=n(21124),f=n(54562),V=n(85158),y=n(5160),S=">",k="<",C="prototype",u="script",c=y("IE_PROTO"),m=function(){},d=function(g){return k+u+S+g+k+"/"+u+S},l=function(g){g.write(d("")),g.close();var h=g.parentWindow.Object;return g=null,h},s=function(){var g=V("iframe"),h="java"+u+":",N;return g.style.display="none",f.appendChild(g),g.src=String(h),N=g.contentWindow.document,N.open(),N.write(d("document.F=Object")),N.close(),N.F},i,p=function(){try{i=new ActiveXObject("htmlfile")}catch(h){}p=typeof document!="undefined"?document.domain&&i?l(i):s():l(i);for(var g=t.length;g--;)delete p[C][t[g]];return p()};o[c]=!0,w.exports=Object.create||function(){function v(g,h){var N;return g!==null?(m[C]=e(g),N=new m,m[C]=null,N[c]=g):N=p(),h===void 0?N:a.f(N,h)}return v}()},65854:function(w,r,n){"use strict";var e=n(14141),a=n(83411),t=n(56018),o=n(39482),f=n(96812),V=n(84913);r.f=e&&!a?Object.defineProperties:function(){function y(S,k){o(S);for(var C=f(k),u=V(k),c=u.length,m=0,d;c>m;)t.f(S,d=u[m++],C[d]);return S}return y}()},56018:function(w,r,n){"use strict";var e=n(14141),a=n(1606),t=n(83411),o=n(39482),f=n(57640),V=TypeError,y=Object.defineProperty,S=Object.getOwnPropertyDescriptor,k="enumerable",C="configurable",u="writable";r.f=e?t?function(){function c(m,d,l){if(o(m),d=f(d),o(l),typeof m=="function"&&d==="prototype"&&"value"in l&&u in l&&!l[u]){var s=S(m,d);s&&s[u]&&(m[d]=l.value,l={configurable:C in l?l[C]:s[C],enumerable:k in l?l[k]:s[k],writable:!1})}return y(m,d,l)}return c}():y:function(){function c(m,d,l){if(o(m),d=f(d),o(l),a)try{return y(m,d,l)}catch(s){}if("get"in l||"set"in l)throw new V("Accessors not supported");return"value"in l&&(m[d]=l.value),m}return c}()},54168:function(w,r,n){"use strict";var e=n(14141),a=n(62696),t=n(9776),o=n(7539),f=n(96812),V=n(57640),y=n(89458),S=n(1606),k=Object.getOwnPropertyDescriptor;r.f=e?k:function(){function C(u,c){if(u=f(u),c=V(c),S)try{return k(u,c)}catch(m){}if(y(u,c))return o(!a(t.f,u,c),u[c])}return C}()},63797:function(w,r,n){"use strict";var e=n(38817),a=n(96812),t=n(34813).f,o=n(77713),f=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],V=function(S){try{return t(S)}catch(k){return o(f)}};w.exports.f=function(){function y(S){return f&&e(S)==="Window"?V(S):t(a(S))}return y}()},34813:function(w,r,n){"use strict";var e=n(62995),a=n(90298),t=a.concat("length","prototype");r.f=Object.getOwnPropertyNames||function(){function o(f){return e(f,t)}return o}()},34220:function(w,r){"use strict";r.f=Object.getOwnPropertySymbols},31658:function(w,r,n){"use strict";var e=n(89458),a=n(7532),t=n(40076),o=n(5160),f=n(58776),V=o("IE_PROTO"),y=Object,S=y.prototype;w.exports=f?y.getPrototypeOf:function(k){var C=t(k);if(e(C,V))return C[V];var u=C.constructor;return a(u)&&C instanceof u?u.prototype:C instanceof y?S:null}},57975:function(w,r,n){"use strict";var e=n(41746),a=n(56831),t=n(38817),o=n(65693),f=Object.isExtensible,V=e(function(){f(1)});w.exports=V||o?function(){function y(S){return!a(S)||o&&t(S)==="ArrayBuffer"?!1:f?f(S):!0}return y}():f},33314:function(w,r,n){"use strict";var e=n(18161);w.exports=e({}.isPrototypeOf)},62995:function(w,r,n){"use strict";var e=n(18161),a=n(89458),t=n(96812),o=n(64210).indexOf,f=n(21124),V=e([].push);w.exports=function(y,S){var k=t(y),C=0,u=[],c;for(c in k)!a(f,c)&&a(k,c)&&V(u,c);for(;S.length>C;)a(k,c=S[C++])&&(~o(u,c)||V(u,c));return u}},84913:function(w,r,n){"use strict";var e=n(62995),a=n(90298);w.exports=Object.keys||function(){function t(o){return e(o,a)}return t}()},9776:function(w,r){"use strict";var n={}.propertyIsEnumerable,e=Object.getOwnPropertyDescriptor,a=e&&!n.call({1:2},1);r.f=a?function(){function t(o){var f=e(this,o);return!!f&&f.enumerable}return t}():n},33030:function(w,r,n){"use strict";var e=n(11478),a=n(40224),t=n(41746),o=n(53125);w.exports=e||!t(function(){if(!(o&&o<535)){var f=Math.random();__defineSetter__.call(null,f,function(){}),delete a[f]}})},42878:function(w,r,n){"use strict";var e=n(9553),a=n(56831),t=n(91029),o=n(51689);w.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var f=!1,V={},y;try{y=e(Object.prototype,"__proto__","set"),y(V,[]),f=V instanceof Array}catch(S){}return function(){function S(k,C){return t(k),o(C),a(k)&&(f?y(k,C):k.__proto__=C),k}return S}()}():void 0)},97452:function(w,r,n){"use strict";var e=n(14141),a=n(41746),t=n(18161),o=n(31658),f=n(84913),V=n(96812),y=n(9776).f,S=t(y),k=t([].push),C=e&&a(function(){var c=Object.create(null);return c[2]=2,!S(c,2)}),u=function(m){return function(d){for(var l=V(d),s=f(l),i=C&&o(l)===null,p=s.length,v=0,g=[],h;p>v;)h=s[v++],(!e||(i?h in l:S(l,h)))&&k(g,m?[h,l[h]]:l[h]);return g}};w.exports={entries:u(!0),values:u(!1)}},66628:function(w,r,n){"use strict";var e=n(82161),a=n(27806);w.exports=e?{}.toString:function(){function t(){return"[object "+a(this)+"]"}return t}()},14991:function(w,r,n){"use strict";var e=n(62696),a=n(7532),t=n(56831),o=TypeError;w.exports=function(f,V){var y,S;if(V==="string"&&a(y=f.toString)&&!t(S=e(y,f))||a(y=f.valueOf)&&!t(S=e(y,f))||V!=="string"&&a(y=f.toString)&&!t(S=e(y,f)))return S;throw new o("Can't convert object to primitive value")}},93616:function(w,r,n){"use strict";var e=n(40164),a=n(18161),t=n(34813),o=n(34220),f=n(39482),V=a([].concat);w.exports=e("Reflect","ownKeys")||function(){function y(S){var k=t.f(f(S)),C=o.f;return C?V(k,C(S)):k}return y}()},5376:function(w,r,n){"use strict";var e=n(40224);w.exports=e},91114:function(w){"use strict";w.exports=function(r){try{return{error:!1,value:r()}}catch(n){return{error:!0,value:n}}}},49669:function(w,r,n){"use strict";var e=n(40224),a=n(35973),t=n(7532),o=n(95945),f=n(43589),V=n(66266),y=n(27955),S=n(2971),k=n(11478),C=n(82709),u=a&&a.prototype,c=V("species"),m=!1,d=t(e.PromiseRejectionEvent),l=o("Promise",function(){var s=f(a),i=s!==String(a);if(!i&&C===66||k&&!(u.catch&&u.finally))return!0;if(!C||C<51||!/native code/.test(s)){var p=new a(function(h){h(1)}),v=function(N){N(function(){},function(){})},g=p.constructor={};if(g[c]=v,m=p.then(function(){})instanceof v,!m)return!0}return!i&&(y||S)&&!d});w.exports={CONSTRUCTOR:l,REJECTION_EVENT:d,SUBCLASSING:m}},35973:function(w,r,n){"use strict";var e=n(40224);w.exports=e.Promise},43827:function(w,r,n){"use strict";var e=n(39482),a=n(56831),t=n(48532);w.exports=function(o,f){if(e(o),a(f)&&f.constructor===o)return f;var V=t.f(o),y=V.resolve;return y(f),V.promise}},95044:function(w,r,n){"use strict";var e=n(35973),a=n(52019),t=n(49669).CONSTRUCTOR;w.exports=t||!a(function(o){e.all(o).then(void 0,function(){})})},77495:function(w,r,n){"use strict";var e=n(56018).f;w.exports=function(a,t,o){o in a||e(a,o,{configurable:!0,get:function(){function f(){return t[o]}return f}(),set:function(){function f(V){t[o]=V}return f}()})}},23496:function(w){"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}()},w.exports=r},35553:function(w,r,n){"use strict";var e=n(62696),a=n(39482),t=n(7532),o=n(38817),f=n(72894),V=TypeError;w.exports=function(y,S){var k=y.exec;if(t(k)){var C=e(k,y,S);return C!==null&&a(C),C}if(o(y)==="RegExp")return e(f,y,S);throw new V("RegExp#exec called on incompatible receiver")}},72894:function(w,r,n){"use strict";var e=n(62696),a=n(18161),t=n(26602),o=n(65844),f=n(1064),V=n(75130),y=n(28969),S=n(35086).get,k=n(89604),C=n(5489),u=V("native-string-replace",String.prototype.replace),c=RegExp.prototype.exec,m=c,d=a("".charAt),l=a("".indexOf),s=a("".replace),i=a("".slice),p=function(){var N=/a/,b=/b*/g;return e(c,N,"a"),e(c,b,"a"),N.lastIndex!==0||b.lastIndex!==0}(),v=f.BROKEN_CARET,g=/()??/.exec("")[1]!==void 0,h=p||g||v||k||C;h&&(m=function(){function N(b){var B=this,I=S(B),L=t(b),T=I.raw,A,x,E,M,j,P,R;if(T)return T.lastIndex=B.lastIndex,A=e(m,T,L),B.lastIndex=T.lastIndex,A;var D=I.groups,F=v&&B.sticky,W=e(o,B),_=B.source,K=0,H=L;if(F&&(W=s(W,"y",""),l(W,"g")===-1&&(W+="g"),H=i(L,B.lastIndex),B.lastIndex>0&&(!B.multiline||B.multiline&&d(L,B.lastIndex-1)!=="\n")&&(_="(?: "+_+")",H=" "+H,K++),x=new RegExp("^(?:"+_+")",W)),g&&(x=new RegExp("^"+_+"$(?!\\s)",W)),p&&(E=B.lastIndex),M=e(c,F?x:B,H),F?M?(M.input=i(M.input,K),M[0]=i(M[0],K),M.index=B.lastIndex,B.lastIndex+=M[0].length):B.lastIndex=0:p&&M&&(B.lastIndex=B.global?M.index+M[0].length:E),g&&M&&M.length>1&&e(u,M[0],x,function(){for(j=1;jb)","g");return o.exec("b").groups.a!=="b"||"b".replace(o,"$c")!=="bc"})},91029:function(w,r,n){"use strict";var e=n(1022),a=TypeError;w.exports=function(t){if(e(t))throw new a("Can't call method on "+t);return t}},1156:function(w,r,n){"use strict";var e=n(40224),a=n(14141),t=Object.getOwnPropertyDescriptor;w.exports=function(o){if(!a)return e[o];var f=t(e,o);return f&&f.value}},37309:function(w){"use strict";w.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(w,r,n){"use strict";var e=n(40224),a=n(70918),t=n(7532),o=n(2178),f=n(15837),V=n(77713),y=n(22789),S=e.Function,k=/MSIE .\./.test(f)||o&&function(){var C=e.Bun.version.split(".");return C.length<3||C[0]==="0"&&(C[1]<3||C[1]==="3"&&C[2]==="0")}();w.exports=function(C,u){var c=u?2:1;return k?function(m,d){var l=y(arguments.length,1)>c,s=t(m)?m:S(m),i=l?V(arguments,c):[],p=l?function(){a(s,this,i)}:s;return u?C(p,d):C(p)}:C}},67420:function(w,r,n){"use strict";var e=n(40164),a=n(10069),t=n(66266),o=n(14141),f=t("species");w.exports=function(V){var y=e(V);o&&y&&!y[f]&&a(y,f,{configurable:!0,get:function(){function S(){return this}return S}()})}},94234:function(w,r,n){"use strict";var e=n(56018).f,a=n(89458),t=n(66266),o=t("toStringTag");w.exports=function(f,V,y){f&&!y&&(f=f.prototype),f&&!a(f,o)&&e(f,o,{configurable:!0,value:V})}},5160:function(w,r,n){"use strict";var e=n(75130),a=n(33345),t=e("keys");w.exports=function(o){return t[o]||(t[o]=a(o))}},95046:function(w,r,n){"use strict";var e=n(11478),a=n(40224),t=n(93422),o="__core-js_shared__",f=w.exports=a[o]||t(o,{});(f.versions||(f.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(w,r,n){"use strict";var e=n(95046);w.exports=function(a,t){return e[a]||(e[a]=t||{})}},78412:function(w,r,n){"use strict";var e=n(39482),a=n(76833),t=n(1022),o=n(66266),f=o("species");w.exports=function(V,y){var S=e(V).constructor,k;return S===void 0||t(k=e(S)[f])?y:a(k)}},32086:function(w,r,n){"use strict";var e=n(41746);w.exports=function(a){return e(function(){var t=""[a]('"');return t!==t.toLowerCase()||t.split('"').length>3})}},56852:function(w,r,n){"use strict";var e=n(18161),a=n(74952),t=n(26602),o=n(91029),f=e("".charAt),V=e("".charCodeAt),y=e("".slice),S=function(C){return function(u,c){var m=t(o(u)),d=a(c),l=m.length,s,i;return d<0||d>=l?C?"":void 0:(s=V(m,d),s<55296||s>56319||d+1===l||(i=V(m,d+1))<56320||i>57343?C?f(m,d):s:C?y(m,d,d+2):(s-55296<<10)+(i-56320)+65536)}};w.exports={codeAt:S(!1),charAt:S(!0)}},33038:function(w,r,n){"use strict";var e=n(15837);w.exports=/Version\/10(?:\.\d+){1,2}(?: [\w./]+)?(?: Mobile\/\w+)? Safari\//.test(e)},34086:function(w,r,n){"use strict";var e=n(18161),a=n(10475),t=n(26602),o=n(84948),f=n(91029),V=e(o),y=e("".slice),S=Math.ceil,k=function(u){return function(c,m,d){var l=t(f(c)),s=a(m),i=l.length,p=d===void 0?" ":t(d),v,g;return s<=i||p===""?l:(v=s-i,g=V(p,S(v/p.length)),g.length>v&&(g=y(g,0,v)),u?l+g:g+l)}};w.exports={start:k(!1),end:k(!0)}},84948:function(w,r,n){"use strict";var e=n(74952),a=n(26602),t=n(91029),o=RangeError;w.exports=function(){function f(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 f}()},11775:function(w,r,n){"use strict";var e=n(35171).end,a=n(93817);w.exports=a("trimEnd")?function(){function t(){return e(this)}return t}():"".trimEnd},93817:function(w,r,n){"use strict";var e=n(26463).PROPER,a=n(41746),t=n(137),o="\u200B\x85\u180E";w.exports=function(f){return a(function(){return!!t[f]()||o[f]()!==o||e&&t[f].name!==f})}},26402:function(w,r,n){"use strict";var e=n(35171).start,a=n(93817);w.exports=a("trimStart")?function(){function t(){return e(this)}return t}():"".trimStart},35171:function(w,r,n){"use strict";var e=n(18161),a=n(91029),t=n(26602),o=n(137),f=e("".replace),V=RegExp("^["+o+"]+"),y=RegExp("(^|[^"+o+"])["+o+"]+$"),S=function(C){return function(u){var c=t(a(u));return C&1&&(c=f(c,V,"")),C&2&&(c=f(c,y,"$1")),c}};w.exports={start:S(1),end:S(2),trim:S(3)}},70640:function(w,r,n){"use strict";var e=n(82709),a=n(41746),t=n(40224),o=t.String;w.exports=!!Object.getOwnPropertySymbols&&!a(function(){var f=Symbol("symbol detection");return!o(f)||!(Object(f)instanceof Symbol)||!Symbol.sham&&e&&e<41})},75429:function(w,r,n){"use strict";var e=n(62696),a=n(40164),t=n(66266),o=n(59173);w.exports=function(){var f=a("Symbol"),V=f&&f.prototype,y=V&&V.valueOf,S=t("toPrimitive");V&&!V[S]&&o(V,S,function(k){return e(y,this)},{arity:1})}},80353:function(w,r,n){"use strict";var e=n(70640);w.exports=e&&!!Symbol.for&&!!Symbol.keyFor},91314:function(w,r,n){"use strict";var e=n(40224),a=n(70918),t=n(4509),o=n(7532),f=n(89458),V=n(41746),y=n(54562),S=n(77713),k=n(85158),C=n(22789),u=n(52426),c=n(95823),m=e.setImmediate,d=e.clearImmediate,l=e.process,s=e.Dispatch,i=e.Function,p=e.MessageChannel,v=e.String,g=0,h={},N="onreadystatechange",b,B,I,L;V(function(){b=e.location});var T=function(j){if(f(h,j)){var P=h[j];delete h[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)};(!m||!d)&&(m=function(){function M(j){C(arguments.length,1);var P=o(j)?j:i(j),R=S(arguments,1);return h[++g]=function(){a(P,void 0,R)},B(g),g}return M}(),d=function(){function M(j){delete h[j]}return M}(),c?B=function(j){l.nextTick(A(j))}:s&&s.now?B=function(j){s.now(A(j))}:p&&!u?(I=new p,L=I.port2,I.port1.onmessage=x,B=t(L.postMessage,L)):e.addEventListener&&o(e.postMessage)&&!e.importScripts&&b&&b.protocol!=="file:"&&!V(E)?(B=E,e.addEventListener("message",x,!1)):N in k("script")?B=function(j){y.appendChild(k("script"))[N]=function(){y.removeChild(this),T(j)}}:B=function(j){setTimeout(A(j),0)}),w.exports={set:m,clear:d}},37497:function(w,r,n){"use strict";var e=n(18161);w.exports=e(1 .valueOf)},74067:function(w,r,n){"use strict";var e=n(74952),a=Math.max,t=Math.min;w.exports=function(o,f){var V=e(o);return V<0?a(V+f,0):t(V,f)}},757:function(w,r,n){"use strict";var e=n(4370),a=TypeError;w.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(w,r,n){"use strict";var e=n(74952),a=n(10475),t=RangeError;w.exports=function(o){if(o===void 0)return 0;var f=e(o),V=a(f);if(f!==V)throw new t("Wrong length or index");return V}},96812:function(w,r,n){"use strict";var e=n(26736),a=n(91029);w.exports=function(t){return e(a(t))}},74952:function(w,r,n){"use strict";var e=n(34606);w.exports=function(a){var t=+a;return t!==t||t===0?0:e(t)}},10475:function(w,r,n){"use strict";var e=n(74952),a=Math.min;w.exports=function(t){var o=e(t);return o>0?a(o,9007199254740991):0}},40076:function(w,r,n){"use strict";var e=n(91029),a=Object;w.exports=function(t){return a(e(t))}},65264:function(w,r,n){"use strict";var e=n(43627),a=RangeError;w.exports=function(t,o){var f=e(t);if(f%o)throw new a("Wrong offset");return f}},43627:function(w,r,n){"use strict";var e=n(74952),a=RangeError;w.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(w,r,n){"use strict";var e=n(62696),a=n(56831),t=n(74352),o=n(4817),f=n(14991),V=n(66266),y=TypeError,S=V("toPrimitive");w.exports=function(k,C){if(!a(k)||t(k))return k;var u=o(k,S),c;if(u){if(C===void 0&&(C="default"),c=e(u,k,C),!a(c)||t(c))return c;throw new y("Can't convert object to primitive value")}return C===void 0&&(C="number"),f(k,C)}},57640:function(w,r,n){"use strict";var e=n(4370),a=n(74352);w.exports=function(t){var o=e(t,"string");return a(o)?o:o+""}},82161:function(w,r,n){"use strict";var e=n(66266),a=e("toStringTag"),t={};t[a]="z",w.exports=String(t)==="[object z]"},26602:function(w,r,n){"use strict";var e=n(27806),a=String;w.exports=function(t){if(e(t)==="Symbol")throw new TypeError("Cannot convert a Symbol value to a string");return a(t)}},78828:function(w){"use strict";var r=Math.round;w.exports=function(n){var e=r(n);return e<0?0:e>255?255:e&255}},62518:function(w){"use strict";var r=String;w.exports=function(n){try{return r(n)}catch(e){return"Object"}}},12218:function(w,r,n){"use strict";var e=n(77549),a=n(40224),t=n(62696),o=n(14141),f=n(66220),V=n(72951),y=n(46185),S=n(19870),k=n(7539),C=n(16216),u=n(57696),c=n(10475),m=n(90835),d=n(65264),l=n(78828),s=n(57640),i=n(89458),p=n(27806),v=n(56831),g=n(74352),h=n(28969),N=n(33314),b=n(42878),B=n(34813).f,I=n(7996),L=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,K=a.RangeError,H=y.ArrayBuffer,X=H.prototype,Y=y.DataView,J=V.NATIVE_ARRAY_BUFFER_VIEWS,le=V.TYPED_ARRAY_TAG,ce=V.TypedArray,fe=V.TypedArrayPrototype,pe=V.isTypedArray,he="BYTES_PER_ELEMENT",te="Wrong length",Q=function(ge,Be){A(ge,Be,{configurable:!0,get:function(){function ve(){return R(this)[Be]}return ve}()})},ae=function(ge){var Be;return N(X,ge)||(Be=p(ge))==="ArrayBuffer"||Be==="SharedArrayBuffer"},ee=function(ge,Be){return pe(ge)&&!g(Be)&&Be in ge&&u(+Be)&&Be>=0},oe=function(){function re(ge,Be){return Be=s(Be),ee(ge,Be)?k(2,ge[Be]):_(ge,Be)}return re}(),ue=function(){function re(ge,Be,ve){return Be=s(Be),ee(ge,Be)&&v(ve)&&i(ve,"value")&&!i(ve,"get")&&!i(ve,"set")&&!ve.configurable&&(!i(ve,"writable")||ve.writable)&&(!i(ve,"enumerable")||ve.enumerable)?(ge[Be]=ve.value,ge):W(ge,Be,ve)}return re}();o?(J||(E.f=oe,x.f=ue,Q(fe,"buffer"),Q(fe,"byteOffset"),Q(fe,"byteLength"),Q(fe,"length")),e({target:"Object",stat:!0,forced:!J},{getOwnPropertyDescriptor:oe,defineProperty:ue}),w.exports=function(re,ge,Be){var ve=re.match(/\d+/)[0]/8,Ve=re+(Be?"Clamped":"")+"Array",ke="get"+re,ye="set"+re,Ie=a[Ve],we=Ie,xe=we&&we.prototype,Oe={},We=function(me,Ne){var Ae=R(me);return Ae.view[ke](Ne*ve+Ae.byteOffset,!0)},be=function(me,Ne,Ae){var De=R(me);De.view[ye](Ne*ve+De.byteOffset,Be?l(Ae):Ae,!0)},ie=function(me,Ne){W(me,Ne,{get:function(){function Ae(){return We(this,Ne)}return Ae}(),set:function(){function Ae(De){return be(this,Ne,De)}return Ae}(),enumerable:!0})};J?f&&(we=ge(function(Ce,me,Ne,Ae){return S(Ce,xe),P(function(){return v(me)?ae(me)?Ae!==void 0?new Ie(me,d(Ne,ve),Ae):Ne!==void 0?new Ie(me,d(Ne,ve)):new Ie(me):pe(me)?M(we,me):t(I,we,me):new Ie(m(me))}(),Ce,we)}),b&&b(we,ce),L(B(Ie),function(Ce){Ce in we||C(we,Ce,Ie[Ce])}),we.prototype=xe):(we=ge(function(Ce,me,Ne,Ae){S(Ce,xe);var De=0,je=0,_e,Ue,ze;if(!v(me))ze=m(me),Ue=ze*ve,_e=new H(Ue);else if(ae(me)){_e=me,je=d(Ne,ve);var Ge=me.byteLength;if(Ae===void 0){if(Ge%ve)throw new K(te);if(Ue=Ge-je,Ue<0)throw new K(te)}else if(Ue=c(Ae)*ve,Ue+je>Ge)throw new K(te);ze=Ue/ve}else return pe(me)?M(we,me):t(I,we,me);for(D(Ce,{buffer:_e,byteOffset:je,byteLength:Ue,length:ze,view:new Y(_e)});De1?arguments[1]:void 0,p=i!==void 0,v=y(l),g,h,N,b,B,I,L,T;if(v&&!S(v))for(L=V(l,v),T=L.next,l=[];!(I=a(T,L)).done;)l.push(I.value);for(p&&s>2&&(i=e(i,arguments[2])),h=f(l),N=new(C(d))(h),b=k(N),g=0;h>g;g++)B=p?i(l[g],g):l[g],N[g]=b?u(B):+B;return N}return c}()},489:function(w,r,n){"use strict";var e=n(72951),a=n(78412),t=e.aTypedArrayConstructor,o=e.getTypedArrayConstructor;w.exports=function(f){return t(a(f,o(f)))}},33345:function(w,r,n){"use strict";var e=n(18161),a=0,t=Math.random(),o=e(1 .toString);w.exports=function(f){return"Symbol("+(f===void 0?"":f)+")_"+o(++a+t,36)}},81457:function(w,r,n){"use strict";var e=n(70640);w.exports=e&&!Symbol.sham&&typeof Symbol.iterator=="symbol"},83411:function(w,r,n){"use strict";var e=n(14141),a=n(41746);w.exports=e&&a(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42})},22789:function(w){"use strict";var r=TypeError;w.exports=function(n,e){if(n=51||!a(function(){var i=[];return i[m]=!1,i.concat()[0]!==i}),l=function(p){if(!o(p))return!1;var v=p[m];return v!==void 0?!!v:t(p)},s=!d||!C("concat");e({target:"Array",proto:!0,arity:1,forced:s},{concat:function(){function i(p){var v=f(this),g=k(v,0),h=0,N,b,B,I,L;for(N=-1,B=arguments.length;N1?arguments[1]:void 0)}return f}()})},24974:function(w,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(w,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 f(V){return a(this,V,arguments.length>1?arguments[1]:void 0)}return f}()})},35173:function(w,r,n){"use strict";var e=n(77549),a=n(67480).findIndex,t=n(91138),o="findIndex",f=!0;o in[]&&Array(1)[o](function(){f=!1}),e({target:"Array",proto:!0,forced:f},{findIndex:function(){function V(y){return a(this,y,arguments.length>1?arguments[1]:void 0)}return V}()}),t(o)},5364:function(w,r,n){"use strict";var e=n(77549),a=n(67480).find,t=n(91138),o="find",f=!0;o in[]&&Array(1)[o](function(){f=!1}),e({target:"Array",proto:!0,forced:f},{find:function(){function V(y){return a(this,y,arguments.length>1?arguments[1]:void 0)}return V}()}),t(o)},88707:function(w,r,n){"use strict";var e=n(77549),a=n(68864),t=n(97361),o=n(40076),f=n(8333),V=n(32878);e({target:"Array",proto:!0},{flatMap:function(){function y(S){var k=o(this),C=f(k),u;return t(S),u=V(k,0),u.length=a(u,k,k,C,0,1,S,arguments.length>1?arguments[1]:void 0),u}return y}()})},16576:function(w,r,n){"use strict";var e=n(77549),a=n(68864),t=n(40076),o=n(8333),f=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),C=o(k),u=V(k,0);return u.length=a(u,k,k,C,0,S===void 0?1:f(S)),u}return y}()})},21508:function(w,r,n){"use strict";var e=n(77549),a=n(75420);e({target:"Array",proto:!0,forced:[].forEach!==a},{forEach:a})},86339:function(w,r,n){"use strict";var e=n(77549),a=n(80363),t=n(52019),o=!t(function(f){Array.from(f)});e({target:"Array",stat:!0,forced:o},{from:a})},81850:function(w,r,n){"use strict";var e=n(77549),a=n(64210).includes,t=n(41746),o=n(91138),f=t(function(){return!Array(1).includes()});e({target:"Array",proto:!0,forced:f},{includes:function(){function V(y){return a(this,y,arguments.length>1?arguments[1]:void 0)}return V}()}),o("includes")},98661:function(w,r,n){"use strict";var e=n(77549),a=n(85067),t=n(64210).indexOf,o=n(42309),f=a([].indexOf),V=!!f&&1/f([1],1,-0)<0,y=V||!o("indexOf");e({target:"Array",proto:!0,forced:y},{indexOf:function(){function S(k){var C=arguments.length>1?arguments[1]:void 0;return V?f(this,k,C)||0:t(this,k,C)}return S}()})},13431:function(w,r,n){"use strict";var e=n(77549),a=n(62367);e({target:"Array",stat:!0},{isArray:a})},65809:function(w,r,n){"use strict";var e=n(96812),a=n(91138),t=n(90604),o=n(35086),f=n(56018).f,V=n(2449),y=n(77056),S=n(11478),k=n(14141),C="Array Iterator",u=o.set,c=o.getterFor(C);w.exports=V(Array,"Array",function(d,l){u(this,{type:C,target:e(d),index:0,kind:l})},function(){var d=c(this),l=d.target,s=d.index++;if(!l||s>=l.length)return d.target=void 0,y(void 0,!0);switch(d.kind){case"keys":return y(s,!1);case"values":return y(l[s],!1)}return y([s,l[s]],!1)},"values");var m=t.Arguments=t.Array;if(a("keys"),a("values"),a("entries"),!S&&k&&m.name!=="values")try{f(m,"name",{value:"values"})}catch(d){}},8611:function(w,r,n){"use strict";var e=n(77549),a=n(18161),t=n(26736),o=n(96812),f=n(42309),V=a([].join),y=t!==Object,S=y||!f("join",",");e({target:"Array",proto:!0,forced:S},{join:function(){function k(C){return V(o(this),C===void 0?",":C)}return k}()})},97246:function(w,r,n){"use strict";var e=n(77549),a=n(16934);e({target:"Array",proto:!0,forced:a!==[].lastIndexOf},{lastIndexOf:a})},48741:function(w,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 f(V){return a(this,V,arguments.length>1?arguments[1]:void 0)}return f}()})},90446:function(w,r,n){"use strict";var e=n(77549),a=n(41746),t=n(60354),o=n(12913),f=Array,V=a(function(){function y(){}return!(f.of.call(y)instanceof y)});e({target:"Array",stat:!0,forced:V},{of:function(){function y(){for(var S=0,k=arguments.length,C=new(t(this)?this:f)(k);k>S;)o(C,S,arguments[S++]);return C.length=k,C}return y}()})},61902:function(w,r,n){"use strict";var e=n(77549),a=n(98405).right,t=n(42309),o=n(82709),f=n(95823),V=!f&&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(w,r,n){"use strict";var e=n(77549),a=n(98405).left,t=n(42309),o=n(82709),f=n(95823),V=!f&&o>79&&o<83,y=V||!t("reduce");e({target:"Array",proto:!0,forced:y},{reduce:function(){function S(k){var C=arguments.length;return a(this,k,C,C>1?arguments[1]:void 0)}return S}()})},96149:function(w,r,n){"use strict";var e=n(77549),a=n(18161),t=n(62367),o=a([].reverse),f=[1,2];e({target:"Array",proto:!0,forced:String(f)===String(f.reverse())},{reverse:function(){function V(){return t(this)&&(this.length=this.length),o(this)}return V}()})},66617:function(w,r,n){"use strict";var e=n(77549),a=n(62367),t=n(60354),o=n(56831),f=n(74067),V=n(8333),y=n(96812),S=n(12913),k=n(66266),C=n(55114),u=n(77713),c=C("slice"),m=k("species"),d=Array,l=Math.max;e({target:"Array",proto:!0,forced:!c},{slice:function(){function s(i,p){var v=y(this),g=V(v),h=f(i,g),N=f(p===void 0?g:p,g),b,B,I;if(a(v)&&(b=v.constructor,t(b)&&(b===d||a(b.prototype))?b=void 0:o(b)&&(b=b[m],b===null&&(b=void 0)),b===d||b===void 0))return u(v,h,N);for(B=new(b===void 0?d:b)(l(N-h,0)),I=0;h1?arguments[1]:void 0)}return f}()})},56855:function(w,r,n){"use strict";var e=n(77549),a=n(18161),t=n(97361),o=n(40076),f=n(8333),V=n(58937),y=n(26602),S=n(41746),k=n(44815),C=n(42309),u=n(49847),c=n(56605),m=n(82709),d=n(53125),l=[],s=a(l.sort),i=a(l.push),p=S(function(){l.sort(void 0)}),v=S(function(){l.sort(null)}),g=C("sort"),h=!S(function(){if(m)return m<70;if(!(u&&u>3)){if(c)return!0;if(d)return d<603;var B="",I,L,T,A;for(I=65;I<76;I++){switch(L=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++)l.push({k:L+A,v:T})}for(l.sort(function(x,E){return E.v-x.v}),A=0;Ay(T)?1:-1}};e({target:"Array",proto:!0,forced:N},{sort:function(){function B(I){I!==void 0&&t(I);var L=o(this);if(h)return I===void 0?s(L):s(L,I);var T=[],A=f(L),x,E;for(E=0;Ev-b+N;I--)C(p,I-1)}else if(N>b)for(I=v-b;I>g;I--)L=I+b-1,T=I+N-1,L in p?p[T]=p[L]:C(p,T);for(I=0;I9490626562425156e-8?o(C)+V:a(C-1+f(C-1)*f(C+1))}return S}()})},86551:function(w,r,n){"use strict";var e=n(77549),a=Math.asinh,t=Math.log,o=Math.sqrt;function f(y){var S=+y;return!isFinite(S)||S===0?S:S<0?-f(-S):t(S+o(S*S+1))}var V=!(a&&1/a(0)>0);e({target:"Math",stat:!0,forced:V},{asinh:f})},10940:function(w,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 f(V){var y=+V;return y===0?y:t((1+y)/(1-y))/2}return f}()})},73763:function(w,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 f(V){var y=+V;return a(y)*o(t(y),.3333333333333333)}return f}()})},3372:function(w,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 f(V){var y=V>>>0;return y?31-a(t(y+.5)*o):32}return f}()})},51629:function(w,r,n){"use strict";var e=n(77549),a=n(32813),t=Math.cosh,o=Math.abs,f=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*f*f))*(f/2)}return y}()})},69727:function(w,r,n){"use strict";var e=n(77549),a=n(32813);e({target:"Math",stat:!0,forced:a!==Math.expm1},{expm1:a})},27482:function(w,r,n){"use strict";var e=n(77549),a=n(75988);e({target:"Math",stat:!0},{fround:a})},7108:function(w,r,n){"use strict";var e=n(77549),a=Math.hypot,t=Math.abs,o=Math.sqrt,f=!!a&&a(1/0,NaN)!==1/0;e({target:"Math",stat:!0,arity:2,forced:f},{hypot:function(){function V(y,S){for(var k=0,C=0,u=arguments.length,c=0,m,d;C0?(d=m/c,k+=d*d):k+=m;return c===1/0?1/0:c*o(k)}return V}()})},4115:function(w,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 f(V,y){var S=65535,k=+V,C=+y,u=S&k,c=S&C;return 0|u*c+((S&k>>>16)*c+u*(S&C>>>16)<<16>>>0)}return f}()})},63953:function(w,r,n){"use strict";var e=n(77549),a=n(53271);e({target:"Math",stat:!0},{log10:a})},71377:function(w,r,n){"use strict";var e=n(77549),a=n(69143);e({target:"Math",stat:!0},{log1p:a})},63956:function(w,r,n){"use strict";var e=n(77549),a=Math.log,t=Math.LN2;e({target:"Math",stat:!0},{log2:function(){function o(f){return a(f)/t}return o}()})},90037:function(w,r,n){"use strict";var e=n(77549),a=n(54307);e({target:"Math",stat:!0},{sign:a})},46818:function(w,r,n){"use strict";var e=n(77549),a=n(41746),t=n(32813),o=Math.abs,f=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 C=+k;return o(C)<1?(t(C)-t(-C))/2:(f(C-1)-f(-C-1))*(V/2)}return S}()})},26681:function(w,r,n){"use strict";var e=n(77549),a=n(32813),t=Math.exp;e({target:"Math",stat:!0},{tanh:function(){function o(f){var V=+f,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(w,r,n){"use strict";var e=n(94234);e(Math,"Math",!0)},28876:function(w,r,n){"use strict";var e=n(77549),a=n(34606);e({target:"Math",stat:!0},{trunc:a})},36385:function(w,r,n){"use strict";var e=n(77549),a=n(11478),t=n(14141),o=n(40224),f=n(5376),V=n(18161),y=n(95945),S=n(89458),k=n(2566),C=n(33314),u=n(74352),c=n(4370),m=n(41746),d=n(34813).f,l=n(54168).f,s=n(56018).f,i=n(37497),p=n(35171).trim,v="Number",g=o[v],h=f[v],N=g.prototype,b=o.TypeError,B=V("".slice),I=V("".charCodeAt),L=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,_,K,H,X,Y;if(u(R))throw new b("Cannot convert a Symbol value to a number");if(typeof R=="string"&&R.length>2){if(R=p(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(K=B(R,2),H=K.length,X=0;X_)return NaN;return parseInt(K,W)}}return+R},A=y(v,!g(" 0o1")||!g("0b1")||g("+0x1")),x=function(P){return C(N,P)&&m(function(){i(P)})},E=function(){function j(P){var R=arguments.length<1?0:g(L(P));return x(this)?k(Object(R),this,E):R}return j}();E.prototype=N,A&&!a&&(N.constructor=E),e({global:!0,constructor:!0,wrap:!0,forced:A},{Number:E});var M=function(P,R){for(var D=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;D.length>F;F++)S(R,W=D[F])&&!S(P,W)&&s(P,W,l(R,W))};a&&h&&M(f[v],h),(A||a)&&M(f[v],g)},84295:function(w,r,n){"use strict";var e=n(77549);e({target:"Number",stat:!0,nonConfigurable:!0,nonWritable:!0},{EPSILON:Math.pow(2,-52)})},59785:function(w,r,n){"use strict";var e=n(77549),a=n(69079);e({target:"Number",stat:!0},{isFinite:a})},8846:function(w,r,n){"use strict";var e=n(77549),a=n(57696);e({target:"Number",stat:!0},{isInteger:a})},50237:function(w,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(w,r,n){"use strict";var e=n(77549),a=n(57696),t=Math.abs;e({target:"Number",stat:!0},{isSafeInteger:function(){function o(f){return a(f)&&t(f)<=9007199254740991}return o}()})},68286:function(w,r,n){"use strict";var e=n(77549);e({target:"Number",stat:!0,nonConfigurable:!0,nonWritable:!0},{MAX_SAFE_INTEGER:9007199254740991})},23940:function(w,r,n){"use strict";var e=n(77549);e({target:"Number",stat:!0,nonConfigurable:!0,nonWritable:!0},{MIN_SAFE_INTEGER:-9007199254740991})},82425:function(w,r,n){"use strict";var e=n(77549),a=n(43283);e({target:"Number",stat:!0,forced:Number.parseFloat!==a},{parseFloat:a})},82118:function(w,r,n){"use strict";var e=n(77549),a=n(11540);e({target:"Number",stat:!0,forced:Number.parseInt!==a},{parseInt:a})},7419:function(w,r,n){"use strict";var e=n(77549),a=n(18161),t=n(74952),o=n(37497),f=n(84948),V=n(41746),y=RangeError,S=String,k=Math.floor,C=a(f),u=a("".slice),c=a(1 .toFixed),m=function v(g,h,N){return h===0?N:h%2===1?v(g,h-1,N*g):v(g*g,h/2,N)},d=function(g){for(var h=0,N=g;N>=4096;)h+=12,N/=4096;for(;N>=2;)h+=1,N/=2;return h},l=function(g,h,N){for(var b=-1,B=N;++b<6;)B+=h*g[b],g[b]=B%1e7,B=k(B/1e7)},s=function(g,h){for(var N=6,b=0;--N>=0;)b+=g[N],g[N]=k(b/h),b=b%h*1e7},i=function(g){for(var h=6,N="";--h>=0;)if(N!==""||h===0||g[h]!==0){var b=S(g[h]);N=N===""?b:N+C("0",7-b.length)+b}return N},p=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:p},{toFixed:function(){function v(g){var h=o(this),N=t(g),b=[0,0,0,0,0,0],B="",I="0",L,T,A,x;if(N<0||N>20)throw new y("Incorrect fraction digits");if(h!==h)return"NaN";if(h<=-1e21||h>=1e21)return S(h);if(h<0&&(B="-",h=-h),h>1e-21)if(L=d(h*m(2,69,1))-69,T=L<0?h*m(2,-L,1):h/m(2,L,1),T*=4503599627370496,L=52-L,L>0){for(l(b,0,T),A=N;A>=7;)l(b,1e7,0),A-=7;for(l(b,m(10,A,1),0),A=L-1;A>=23;)s(b,8388608),A-=23;s(b,1<0?(x=I.length,I=B+(x<=N?"0."+C("0",N-x)+I:u(I,0,x-N)+"."+u(I,x-N))):I=B+I,I}return v}()})},42409:function(w,r,n){"use strict";var e=n(77549),a=n(18161),t=n(41746),o=n(37497),f=a(1 .toPrecision),V=t(function(){return f(1,void 0)!=="1"})||!t(function(){f({})});e({target:"Number",proto:!0,forced:V},{toPrecision:function(){function y(S){return S===void 0?f(o(this)):f(o(this),S)}return y}()})},29002:function(w,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(w,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(w,r,n){"use strict";var e=n(77549),a=n(14141),t=n(33030),o=n(97361),f=n(40076),V=n(56018);a&&e({target:"Object",proto:!0,forced:t},{__defineGetter__:function(){function y(S,k){V.f(f(this),S,{get:o(k),enumerable:!0,configurable:!0})}return y}()})},5300:function(w,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(w,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(w,r,n){"use strict";var e=n(77549),a=n(14141),t=n(33030),o=n(97361),f=n(40076),V=n(56018);a&&e({target:"Object",proto:!0,forced:t},{__defineSetter__:function(){function y(S,k){V.f(f(this),S,{set:o(k),enumerable:!0,configurable:!0})}return y}()})},98551:function(w,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(w,r,n){"use strict";var e=n(77549),a=n(56255),t=n(41746),o=n(56831),f=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(f(k)):k}return S}()})},26862:function(w,r,n){"use strict";var e=n(77549),a=n(281),t=n(12913);e({target:"Object",stat:!0},{fromEntries:function(){function o(f){var V={};return a(f,function(y,S){t(V,y,S)},{AS_ENTRIES:!0}),V}return o}()})},78686:function(w,r,n){"use strict";var e=n(77549),a=n(41746),t=n(96812),o=n(54168).f,f=n(14141),V=!f||a(function(){o(1)});e({target:"Object",stat:!0,forced:V,sham:!f},{getOwnPropertyDescriptor:function(){function y(S,k){return o(t(S),k)}return y}()})},36789:function(w,r,n){"use strict";var e=n(77549),a=n(14141),t=n(93616),o=n(96812),f=n(54168),V=n(12913);e({target:"Object",stat:!0,sham:!a},{getOwnPropertyDescriptors:function(){function y(S){for(var k=o(S),C=f.f,u=t(k),c={},m=0,d,l;u.length>m;)l=C(k,d=u[m++]),l!==void 0&&V(c,d,l);return c}return y}()})},82707:function(w,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(w,r,n){"use strict";var e=n(77549),a=n(70640),t=n(41746),o=n(34220),f=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(f(S)):[]}return y}()})},69740:function(w,r,n){"use strict";var e=n(77549),a=n(41746),t=n(40076),o=n(31658),f=n(58776),V=a(function(){o(1)});e({target:"Object",stat:!0,forced:V,sham:!f},{getPrototypeOf:function(){function y(S){return o(t(S))}return y}()})},54789:function(w,r,n){"use strict";var e=n(77549),a=n(57975);e({target:"Object",stat:!0,forced:Object.isExtensible!==a},{isExtensible:a})},49626:function(w,r,n){"use strict";var e=n(77549),a=n(41746),t=n(56831),o=n(38817),f=n(65693),V=Object.isFrozen,y=f||a(function(){V(1)});e({target:"Object",stat:!0,forced:y},{isFrozen:function(){function S(k){return!t(k)||f&&o(k)==="ArrayBuffer"?!0:V?V(k):!1}return S}()})},67660:function(w,r,n){"use strict";var e=n(77549),a=n(41746),t=n(56831),o=n(38817),f=n(65693),V=Object.isSealed,y=f||a(function(){V(1)});e({target:"Object",stat:!0,forced:y},{isSealed:function(){function S(k){return!t(k)||f&&o(k)==="ArrayBuffer"?!0:V?V(k):!1}return S}()})},87847:function(w,r,n){"use strict";var e=n(77549),a=n(37309);e({target:"Object",stat:!0},{is:a})},43619:function(w,r,n){"use strict";var e=n(77549),a=n(40076),t=n(84913),o=n(41746),f=o(function(){t(1)});e({target:"Object",stat:!0,forced:f},{keys:function(){function V(y){return t(a(y))}return V}()})},42777:function(w,r,n){"use strict";var e=n(77549),a=n(14141),t=n(33030),o=n(40076),f=n(57640),V=n(31658),y=n(54168).f;a&&e({target:"Object",proto:!0,forced:t},{__lookupGetter__:function(){function S(k){var C=o(this),u=f(k),c;do if(c=y(C,u))return c.get;while(C=V(C))}return S}()})},13045:function(w,r,n){"use strict";var e=n(77549),a=n(14141),t=n(33030),o=n(40076),f=n(57640),V=n(31658),y=n(54168).f;a&&e({target:"Object",proto:!0,forced:t},{__lookupSetter__:function(){function S(k){var C=o(this),u=f(k),c;do if(c=y(C,u))return c.set;while(C=V(C))}return S}()})},38664:function(w,r,n){"use strict";var e=n(77549),a=n(56831),t=n(29126).onFreeze,o=n(56255),f=n(41746),V=Object.preventExtensions,y=f(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(w,r,n){"use strict";var e=n(77549),a=n(56831),t=n(29126).onFreeze,o=n(56255),f=n(41746),V=Object.seal,y=f(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(w,r,n){"use strict";var e=n(77549),a=n(42878);e({target:"Object",stat:!0},{setPrototypeOf:a})},35286:function(w,r,n){"use strict";var e=n(82161),a=n(59173),t=n(66628);e||a(Object.prototype,"toString",t,{unsafe:!0})},13313:function(w,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(w,r,n){"use strict";var e=n(77549),a=n(43283);e({global:!0,forced:parseFloat!==a},{parseFloat:a})},54959:function(w,r,n){"use strict";var e=n(77549),a=n(11540);e({global:!0,forced:parseInt!==a},{parseInt:a})},34344:function(w,r,n){"use strict";var e=n(77549),a=n(62696),t=n(97361),o=n(48532),f=n(91114),V=n(281),y=n(95044);e({target:"Promise",stat:!0,forced:y},{all:function(){function S(k){var C=this,u=o.f(C),c=u.resolve,m=u.reject,d=f(function(){var l=t(C.resolve),s=[],i=0,p=1;V(k,function(v){var g=i++,h=!1;p++,a(l,C,v).then(function(N){h||(h=!0,s[g]=N,--p||c(s))},m)}),--p||c(s)});return d.error&&m(d.value),u.promise}return S}()})},60:function(w,r,n){"use strict";var e=n(77549),a=n(11478),t=n(49669).CONSTRUCTOR,o=n(35973),f=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 C(u){return this.then(void 0,u)}return C}()}),!a&&V(o)){var k=f("Promise").prototype.catch;S.catch!==k&&y(S,"catch",k,{unsafe:!0})}},7803:function(w,r,n){"use strict";var e=n(77549),a=n(11478),t=n(95823),o=n(40224),f=n(62696),V=n(59173),y=n(42878),S=n(94234),k=n(67420),C=n(97361),u=n(7532),c=n(56831),m=n(19870),d=n(78412),l=n(91314).set,s=n(27150),i=n(46122),p=n(91114),v=n(23496),g=n(35086),h=n(35973),N=n(49669),b=n(48532),B="Promise",I=N.CONSTRUCTOR,L=N.REJECTION_EVENT,T=N.SUBCLASSING,A=g.getterFor(B),x=g.set,E=h&&h.prototype,M=h,j=E,P=o.TypeError,R=o.document,D=o.process,F=b.f,W=F,_=!!(R&&R.createEvent&&o.dispatchEvent),K="unhandledrejection",H="rejectionhandled",X=0,Y=1,J=2,le=1,ce=2,fe,pe,he,te,Q=function(ye){var Ie;return c(ye)&&u(Ie=ye.then)?Ie:!1},ae=function(ye,Ie){var we=Ie.value,xe=Ie.state===Y,Oe=xe?ye.ok:ye.fail,We=ye.resolve,be=ye.reject,ie=ye.domain,se,Ce,me;try{Oe?(xe||(Ie.rejection===ce&&ge(Ie),Ie.rejection=le),Oe===!0?se=we:(ie&&ie.enter(),se=Oe(we),ie&&(ie.exit(),me=!0)),se===ye.promise?be(new P("Promise-chain cycle")):(Ce=Q(se))?f(Ce,se,We,be):We(se)):be(we)}catch(Ne){ie&&!me&&ie.exit(),be(Ne)}},ee=function(ye,Ie){ye.notified||(ye.notified=!0,s(function(){for(var we=ye.reactions,xe;xe=we.get();)ae(xe,ye);ye.notified=!1,Ie&&!ye.rejection&&ue(ye)}))},oe=function(ye,Ie,we){var xe,Oe;_?(xe=R.createEvent("Event"),xe.promise=Ie,xe.reason=we,xe.initEvent(ye,!1,!0),o.dispatchEvent(xe)):xe={promise:Ie,reason:we},!L&&(Oe=o["on"+ye])?Oe(xe):ye===K&&i("Unhandled promise rejection",we)},ue=function(ye){f(l,o,function(){var Ie=ye.facade,we=ye.value,xe=re(ye),Oe;if(xe&&(Oe=p(function(){t?D.emit("unhandledRejection",we,Ie):oe(K,Ie,we)}),ye.rejection=t||re(ye)?ce:le,Oe.error))throw Oe.value})},re=function(ye){return ye.rejection!==le&&!ye.parent},ge=function(ye){f(l,o,function(){var Ie=ye.facade;t?D.emit("rejectionHandled",Ie):oe(H,Ie,ye.value)})},Be=function(ye,Ie,we){return function(xe){ye(Ie,xe,we)}},ve=function(ye,Ie,we){ye.done||(ye.done=!0,we&&(ye=we),ye.value=Ie,ye.state=J,ee(ye,!0))},Ve=function ke(ye,Ie,we){if(!ye.done){ye.done=!0,we&&(ye=we);try{if(ye.facade===Ie)throw new P("Promise can't be resolved itself");var xe=Q(Ie);xe?s(function(){var Oe={done:!1};try{f(xe,Ie,Be(ke,Oe,ye),Be(ve,Oe,ye))}catch(We){ve(Oe,We,ye)}}):(ye.value=Ie,ye.state=Y,ee(ye,!1))}catch(Oe){ve({done:!1},Oe,ye)}}};if(I&&(M=function(){function ke(ye){m(this,j),C(ye),f(fe,this);var Ie=A(this);try{ye(Be(Ve,Ie),Be(ve,Ie))}catch(we){ve(Ie,we)}}return ke}(),j=M.prototype,fe=function(){function ke(ye){x(this,{type:B,done:!1,notified:!1,parent:!1,reactions:new v,rejection:!1,state:X,value:void 0})}return ke}(),fe.prototype=V(j,"then",function(){function ke(ye,Ie){var we=A(this),xe=F(d(this,M));return we.parent=!0,xe.ok=u(ye)?ye:!0,xe.fail=u(Ie)&&Ie,xe.domain=t?D.domain:void 0,we.state===X?we.reactions.add(xe):s(function(){ae(xe,we)}),xe.promise}return ke}()),pe=function(){var ye=new fe,Ie=A(ye);this.promise=ye,this.resolve=Be(Ve,Ie),this.reject=Be(ve,Ie)},b.f=F=function(ye){return ye===M||ye===he?new pe(ye):W(ye)},!a&&u(h)&&E!==Object.prototype)){te=E.then,T||V(E,"then",function(){function ke(ye,Ie){var we=this;return new M(function(xe,Oe){f(te,we,xe,Oe)}).then(ye,Ie)}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(w,r,n){"use strict";var e=n(77549),a=n(11478),t=n(35973),o=n(41746),f=n(40164),V=n(7532),y=n(78412),S=n(43827),k=n(59173),C=t&&t.prototype,u=!!t&&o(function(){C.finally.call({then:function(){function m(){}return m}()},function(){})});if(e({target:"Promise",proto:!0,real:!0,forced:u},{finally:function(){function m(d){var l=y(this,f("Promise")),s=V(d);return this.then(s?function(i){return S(l,d()).then(function(){return i})}:d,s?function(i){return S(l,d()).then(function(){throw i})}:d)}return m}()}),!a&&V(t)){var c=f("Promise").prototype.finally;C.finally!==c&&k(C,"finally",c,{unsafe:!0})}},78129:function(w,r,n){"use strict";n(7803),n(34344),n(60),n(61270),n(82248),n(30347)},61270:function(w,r,n){"use strict";var e=n(77549),a=n(62696),t=n(97361),o=n(48532),f=n(91114),V=n(281),y=n(95044);e({target:"Promise",stat:!0,forced:y},{race:function(){function S(k){var C=this,u=o.f(C),c=u.reject,m=f(function(){var d=t(C.resolve);V(k,function(l){a(d,C,l).then(u.resolve,c)})});return m.error&&c(m.value),u.promise}return S}()})},82248:function(w,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(f){var V=a.f(this),y=V.reject;return y(f),V.promise}return o}()})},30347:function(w,r,n){"use strict";var e=n(77549),a=n(40164),t=n(11478),o=n(35973),f=n(49669).CONSTRUCTOR,V=n(43827),y=a("Promise"),S=t&&!f;e({target:"Promise",stat:!0,forced:t||f},{resolve:function(){function k(C){return V(S&&this===y?o:this,C)}return k}()})},82427:function(w,r,n){"use strict";var e=n(77549),a=n(70918),t=n(97361),o=n(39482),f=n(41746),V=!f(function(){Reflect.apply(function(){})});e({target:"Reflect",stat:!0,forced:V},{apply:function(){function y(S,k,C){return a(t(S),k,o(C))}return y}()})},8390:function(w,r,n){"use strict";var e=n(77549),a=n(40164),t=n(70918),o=n(9379),f=n(76833),V=n(39482),y=n(56831),S=n(28969),k=n(41746),C=a("Reflect","construct"),u=Object.prototype,c=[].push,m=k(function(){function s(){}return!(C(function(){},[],s)instanceof s)}),d=!k(function(){C(function(){})}),l=m||d;e({target:"Reflect",stat:!0,forced:l,sham:l},{construct:function(){function s(i,p){f(i),V(p);var v=arguments.length<3?i:f(arguments[2]);if(d&&!m)return C(i,p,v);if(i===v){switch(p.length){case 0:return new i;case 1:return new i(p[0]);case 2:return new i(p[0],p[1]);case 3:return new i(p[0],p[1],p[2]);case 4:return new i(p[0],p[1],p[2],p[3])}var g=[null];return t(c,g,p),new(t(o,i,g))}var h=v.prototype,N=S(y(h)?h:u),b=t(i,N,p);return y(b)?b:N}return s}()})},68260:function(w,r,n){"use strict";var e=n(77549),a=n(14141),t=n(39482),o=n(57640),f=n(56018),V=n(41746),y=V(function(){Reflect.defineProperty(f.f({},1,{value:1}),1,{value:2})});e({target:"Reflect",stat:!0,forced:y,sham:!a},{defineProperty:function(){function S(k,C,u){t(k);var c=o(C);t(u);try{return f.f(k,c,u),!0}catch(m){return!1}}return S}()})},86508:function(w,r,n){"use strict";var e=n(77549),a=n(39482),t=n(54168).f;e({target:"Reflect",stat:!0},{deleteProperty:function(){function o(f,V){var y=t(a(f),V);return y&&!y.configurable?!1:delete f[V]}return o}()})},17134:function(w,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 f(V,y){return o.f(t(V),y)}return f}()})},18972:function(w,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 f(V){return t(a(V))}return f}()})},65971:function(w,r,n){"use strict";var e=n(77549),a=n(62696),t=n(56831),o=n(39482),f=n(35892),V=n(54168),y=n(31658);function S(k,C){var u=arguments.length<3?k:arguments[2],c,m;if(o(k)===u)return k[C];if(c=V.f(k,C),c)return f(c)?c.value:c.get===void 0?void 0:a(c.get,u);if(t(m=y(k)))return S(m,C,u)}e({target:"Reflect",stat:!0},{get:S})},78623:function(w,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(w,r,n){"use strict";var e=n(77549),a=n(39482),t=n(57975);e({target:"Reflect",stat:!0},{isExtensible:function(){function o(f){return a(f),t(f)}return o}()})},56380:function(w,r,n){"use strict";var e=n(77549),a=n(93616);e({target:"Reflect",stat:!0},{ownKeys:a})},72792:function(w,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 f(V){t(V);try{var y=a("Object","preventExtensions");return y&&y(V),!0}catch(S){return!1}}return f}()})},25168:function(w,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 f(V,y){a(V),t(y);try{return o(V,y),!0}catch(S){return!1}}return f}()})},60631:function(w,r,n){"use strict";var e=n(77549),a=n(62696),t=n(39482),o=n(56831),f=n(35892),V=n(41746),y=n(56018),S=n(54168),k=n(31658),C=n(7539);function u(m,d,l){var s=arguments.length<4?m:arguments[3],i=S.f(t(m),d),p,v,g;if(!i){if(o(v=k(m)))return u(v,d,l,s);i=C(0)}if(f(i)){if(i.writable===!1||!o(s))return!1;if(p=S.f(s,d)){if(p.get||p.set||p.writable===!1)return!1;p.value=l,y.f(s,d,p)}else y.f(s,d,C(0,l))}else{if(g=i.set,g===void 0)return!1;a(g,s,l)}return!0}var c=V(function(){var m=function(){},d=y.f(new m,"a",{configurable:!0});return Reflect.set(m.prototype,"a",1,d)!==!1});e({target:"Reflect",stat:!0,forced:c},{set:u})},85177:function(w,r,n){"use strict";var e=n(14141),a=n(40224),t=n(18161),o=n(95945),f=n(2566),V=n(16216),y=n(28969),S=n(34813).f,k=n(33314),C=n(80969),u=n(26602),c=n(60425),m=n(1064),d=n(77495),l=n(59173),s=n(41746),i=n(89458),p=n(35086).enforce,v=n(67420),g=n(66266),h=n(89604),N=n(5489),b=g("match"),B=a.RegExp,I=B.prototype,L=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=m.MISSED_STICKY,W=m.UNSUPPORTED_Y,_=e&&(!D||F||h||N||s(function(){return R[b]=!1,B(P)!==P||B(R)===R||String(B(P,"i"))!=="/a/i"})),K=function(ce){for(var fe=ce.length,pe=0,he="",te=!1,Q;pe<=fe;pe++){if(Q=A(ce,pe),Q==="\\"){he+=Q+A(ce,++pe);continue}!te&&Q==="."?he+="[\\s\\S]":(Q==="["?te=!0:Q==="]"&&(te=!1),he+=Q)}return he},H=function(ce){for(var fe=ce.length,pe=0,he="",te=[],Q=y(null),ae=!1,ee=!1,oe=0,ue="",re;pe<=fe;pe++){if(re=A(ce,pe),re==="\\")re+=A(ce,++pe);else if(re==="]")ae=!1;else if(!ae)switch(!0){case re==="[":ae=!0;break;case re==="(":T(j,M(ce,pe+1))&&(pe+=2,ee=!0),he+=re,oe++;continue;case(re===">"&&ee):if(ue===""||i(Q,ue))throw new L("Invalid capture group name");Q[ue]=!0,te[te.length]=[ue,oe],ee=!1,ue="";continue}ee?ue+=re:he+=re}return[he,te]};if(o("RegExp",_)){for(var X=function(){function le(ce,fe){var pe=k(I,this),he=C(ce),te=fe===void 0,Q=[],ae=ce,ee,oe,ue,re,ge,Be;if(!pe&&he&&te&&ce.constructor===X)return ce;if((he||k(I,ce))&&(ce=ce.source,te&&(fe=c(ae))),ce=ce===void 0?"":u(ce),fe=fe===void 0?"":u(fe),ae=ce,h&&"dotAll"in P&&(oe=!!fe&&E(fe,"s")>-1,oe&&(fe=x(fe,/s/g,""))),ee=fe,F&&"sticky"in P&&(ue=!!fe&&E(fe,"y")>-1,ue&&W&&(fe=x(fe,/y/g,""))),N&&(re=H(ce),ce=re[0],Q=re[1]),ge=f(B(ce,fe),pe?this:I,X),(oe||ue||Q.length)&&(Be=p(ge),oe&&(Be.dotAll=!0,Be.raw=X(K(ce),ee)),ue&&(Be.sticky=!0),Q.length&&(Be.groups=Q)),ce!==ae)try{V(ge,"source",ae===""?"(?:)":ae)}catch(ve){}return ge}return le}(),Y=S(B),J=0;Y.length>J;)d(X,B,Y[J++]);I.constructor=X,X.prototype=I,l(a,"RegExp",X,{constructor:!0})}v("RegExp")},95880:function(w,r,n){"use strict";var e=n(77549),a=n(72894);e({target:"RegExp",proto:!0,forced:/./.exec!==a},{exec:a})},59978:function(w,r,n){"use strict";var e=n(40224),a=n(14141),t=n(10069),o=n(65844),f=n(41746),V=e.RegExp,y=V.prototype,S=a&&f(function(){var k=!0;try{V(".","d")}catch(i){k=!1}var C={},u="",c=k?"dgimsy":"gimsy",m=function(p,v){Object.defineProperty(C,p,{get:function(){function g(){return u+=v,!0}return g}()})},d={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};k&&(d.hasIndices="d");for(var l in d)m(l,d[l]);var s=Object.getOwnPropertyDescriptor(y,"flags").get.call(C);return s!==c||u!==c});S&&t(y,"flags",{configurable:!0,get:o})},96360:function(w,r,n){"use strict";var e=n(26463).PROPER,a=n(59173),t=n(39482),o=n(26602),f=n(41746),V=n(60425),y="toString",S=RegExp.prototype,k=S[y],C=f(function(){return k.call({source:"a",flags:"b"})!=="/a/b"}),u=e&&k.name!==y;(C||u)&&a(S,y,function(){function c(){var m=t(this),d=o(m.source),l=o(V(m));return"/"+d+"/"+l}return c}(),{unsafe:!0})},47338:function(w,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(w,r,n){"use strict";n(47338)},36:function(w,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(f){return a(this,"a","name",f)}return o}()})},30519:function(w,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(w,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(w,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(w,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(w,r,n){"use strict";var e=n(77549),a=n(85067),t=n(54168).f,o=n(10475),f=n(26602),V=n(89140),y=n(91029),S=n(93321),k=n(11478),C=a("".slice),u=Math.min,c=S("endsWith"),m=!k&&!c&&!!function(){var d=t(String.prototype,"endsWith");return d&&!d.writable}();e({target:"String",proto:!0,forced:!m&&!c},{endsWith:function(){function d(l){var s=f(y(this));V(l);var i=arguments.length>1?arguments[1]:void 0,p=s.length,v=i===void 0?p:u(o(i),p),g=f(l);return C(s,v-g.length,v)===g}return d}()})},32031:function(w,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(w,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(f){return a(this,"font","color",f)}return o}()})},21953:function(w,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(f){return a(this,"font","size",f)}return o}()})},48432:function(w,r,n){"use strict";var e=n(77549),a=n(18161),t=n(74067),o=RangeError,f=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(C){for(var u=[],c=arguments.length,m=0,d;c>m;){if(d=+arguments[m++],t(d,1114111)!==d)throw new o(d+" is not a valid code point");u[m]=d<65536?f(d):f(((d-=65536)>>10)+55296,d%1024+56320)}return y(u,"")}return k}()})},54564:function(w,r,n){"use strict";var e=n(77549),a=n(18161),t=n(89140),o=n(91029),f=n(26602),V=n(93321),y=a("".indexOf);e({target:"String",proto:!0,forced:!V("includes")},{includes:function(){function S(k){return!!~y(f(o(this)),f(t(k)),arguments.length>1?arguments[1]:void 0)}return S}()})},83560:function(w,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(w,r,n){"use strict";var e=n(56852).charAt,a=n(26602),t=n(35086),o=n(2449),f=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 C=S(this),u=C.string,c=C.index,m;return c>=u.length?f(void 0,!0):(m=e(u,c),C.index+=m.length,f(m,!1))}return k}())},63465:function(w,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(f){return a(this,"a","href",f)}return o}()})},68164:function(w,r,n){"use strict";var e=n(62696),a=n(85427),t=n(39482),o=n(1022),f=n(10475),V=n(26602),y=n(91029),S=n(4817),k=n(62970),C=n(35553);a("match",function(u,c,m){return[function(){function d(l){var s=y(this),i=o(l)?void 0:S(l,u);return i?e(i,l,s):new RegExp(l)[u](V(s))}return d}(),function(d){var l=t(this),s=V(d),i=m(c,l,s);if(i.done)return i.value;if(!l.global)return C(l,s);var p=l.unicode;l.lastIndex=0;for(var v=[],g=0,h;(h=C(l,s))!==null;){var N=V(h[0]);v[g]=N,N===""&&(l.lastIndex=k(s,f(l.lastIndex),p)),g++}return g===0?null:v}]})},58880:function(w,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(f){return a(this,f,arguments.length>1?arguments[1]:void 0)}return o}()})},54465:function(w,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(f){return a(this,f,arguments.length>1?arguments[1]:void 0)}return o}()})},97327:function(w,r,n){"use strict";var e=n(77549),a=n(18161),t=n(96812),o=n(40076),f=n(26602),V=n(8333),y=a([].push),S=a([].join);e({target:"String",stat:!0},{raw:function(){function k(C){var u=t(o(C).raw),c=V(u);if(!c)return"";for(var m=arguments.length,d=[],l=0;;){if(y(d,f(u[l++])),l===c)return S(d,"");l")!=="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:d(R,p);return W?a(W,R,F,D):a(E,u(F),R,D)}return P}(),function(P,R){var D=V(this),F=u(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=u(R));var K=D.global,H;K&&(H=D.unicode,D.lastIndex=0);for(var X=[],Y;Y=s(D,F),!(Y===null||(N(X,Y),!K));){var J=u(Y[0]);J===""&&(D.lastIndex=m(F,C(D.lastIndex),H))}for(var le="",ce=0,fe=0;fe=ce&&(le+=B(F,ce,he)+Q,ce=he+pe.length)}return le+B(F,ce)}]},!A||!L||T)},17337:function(w,r,n){"use strict";var e=n(62696),a=n(85427),t=n(39482),o=n(1022),f=n(91029),V=n(37309),y=n(26602),S=n(4817),k=n(35553);a("search",function(C,u,c){return[function(){function m(d){var l=f(this),s=o(d)?void 0:S(d,C);return s?e(s,d,l):new RegExp(d)[C](y(l))}return m}(),function(m){var d=t(this),l=y(m),s=c(u,d,l);if(s.done)return s.value;var i=d.lastIndex;V(i,0)||(d.lastIndex=0);var p=k(d,l);return V(d.lastIndex,i)||(d.lastIndex=i),p===null?-1:p.index}]})},98998:function(w,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(w,r,n){"use strict";var e=n(62696),a=n(18161),t=n(85427),o=n(39482),f=n(1022),V=n(91029),y=n(78412),S=n(62970),k=n(10475),C=n(26602),u=n(4817),c=n(35553),m=n(1064),d=n(41746),l=m.UNSUPPORTED_Y,s=4294967295,i=Math.min,p=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"}),h="abbc".split(/(b)*/)[1]==="c"||"test".split(/(?:)/,-1).length!==4||"ab".split(/(?:ab)*/).length!==2||".".split(/(.?)(.?)/).length!==4||".".split(/()()/).length>1||"".split(/.?/).length;t("split",function(N,b,B){var I="0".split(void 0,0).length?function(L,T){return L===void 0&&T===0?[]:e(b,this,L,T)}:b;return[function(){function L(T,A){var x=V(this),E=f(T)?void 0:u(T,N);return E?e(E,T,x,A):e(I,C(x),T,A)}return L}(),function(L,T){var A=o(this),x=C(L);if(!h){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":"")+(l?"g":"y"),R=new M(l?"^(?:"+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)),p=f(l);return C(s,i,i+p.length)===p}return d}()})},96227:function(w,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(w,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(w,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(w,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(w,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(w,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(w,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(w,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(w,r,n){"use strict";var e=n(15388);e("asyncIterator")},9056:function(w,r,n){"use strict";var e=n(77549),a=n(40224),t=n(62696),o=n(18161),f=n(11478),V=n(14141),y=n(70640),S=n(41746),k=n(89458),C=n(33314),u=n(39482),c=n(96812),m=n(57640),d=n(26602),l=n(7539),s=n(28969),i=n(84913),p=n(34813),v=n(63797),g=n(34220),h=n(54168),N=n(56018),b=n(65854),B=n(9776),I=n(59173),L=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"),K="Symbol",H="prototype",X=F.set,Y=F.getterFor(K),J=Object[H],le=a.Symbol,ce=le&&le[H],fe=a.RangeError,pe=a.TypeError,he=a.QObject,te=h.f,Q=N.f,ae=v.f,ee=B.f,oe=o([].push),ue=T("symbols"),re=T("op-symbols"),ge=T("wks"),Be=!he||!he[H]||!he[H].findChild,ve=function(se,Ce,me){var Ne=te(J,Ce);Ne&&delete J[Ce],Q(se,Ce,me),Ne&&se!==J&&Q(J,Ce,Ne)},Ve=V&&S(function(){return s(Q({},"a",{get:function(){function ie(){return Q(this,"a",{value:7}).a}return ie}()})).a!==7})?ve:Q,ke=function(se,Ce){var me=ue[se]=s(ce);return X(me,{type:K,tag:se,description:Ce}),V||(me.description=Ce),me},ye=function(){function ie(se,Ce,me){se===J&&ye(re,Ce,me),u(se);var Ne=m(Ce);return u(me),k(ue,Ne)?(me.enumerable?(k(se,_)&&se[_][Ne]&&(se[_][Ne]=!1),me=s(me,{enumerable:l(0,!1)})):(k(se,_)||Q(se,_,l(1,s(null))),se[_][Ne]=!0),Ve(se,Ne,me)):Q(se,Ne,me)}return ie}(),Ie=function(){function ie(se,Ce){u(se);var me=c(Ce),Ne=i(me).concat(be(me));return W(Ne,function(Ae){(!V||t(xe,me,Ae))&&ye(se,Ae,me[Ae])}),se}return ie}(),we=function(){function ie(se,Ce){return Ce===void 0?s(se):Ie(s(se),Ce)}return ie}(),xe=function(){function ie(se){var Ce=m(se),me=t(ee,this,Ce);return this===J&&k(ue,Ce)&&!k(re,Ce)?!1:me||!k(this,Ce)||!k(ue,Ce)||k(this,_)&&this[_][Ce]?me:!0}return ie}(),Oe=function(){function ie(se,Ce){var me=c(se),Ne=m(Ce);if(!(me===J&&k(ue,Ne)&&!k(re,Ne))){var Ae=te(me,Ne);return Ae&&k(ue,Ne)&&!(k(me,_)&&me[_][Ne])&&(Ae.enumerable=!0),Ae}}return ie}(),We=function(){function ie(se){var Ce=ae(c(se)),me=[];return W(Ce,function(Ne){!k(ue,Ne)&&!k(x,Ne)&&oe(me,Ne)}),me}return ie}(),be=function(se){var Ce=se===J,me=ae(Ce?re:c(se)),Ne=[];return W(me,function(Ae){k(ue,Ae)&&(!Ce||k(J,Ae))&&oe(Ne,ue[Ae])}),Ne};y||(le=function(){function ie(){if(C(ce,this))throw new pe("Symbol is not a constructor");var se=!arguments.length||arguments[0]===void 0?void 0:d(arguments[0]),Ce=E(se),me=function(){function Ne(Ae){var De=this===void 0?a:this;De===J&&t(Ne,re,Ae),k(De,_)&&k(De[_],Ce)&&(De[_][Ce]=!1);var je=l(1,Ae);try{Ve(De,Ce,je)}catch(_e){if(!(_e instanceof fe))throw _e;ve(De,Ce,je)}}return Ne}();return V&&Be&&Ve(J,Ce,{configurable:!0,set:me}),ke(Ce,se)}return ie}(),ce=le[H],I(ce,"toString",function(){function ie(){return Y(this).tag}return ie}()),I(le,"withoutSetter",function(ie){return ke(E(ie),ie)}),B.f=xe,N.f=ye,b.f=Ie,h.f=Oe,p.f=v.f=We,g.f=be,j.f=function(ie){return ke(M(ie),ie)},V&&(L(ce,"description",{configurable:!0,get:function(){function ie(){return Y(this).description}return ie}()}),f||I(J,"propertyIsEnumerable",xe,{unsafe:!0}))),e({global:!0,constructor:!0,wrap:!0,forced:!y,sham:!y},{Symbol:le}),W(i(ge),function(ie){P(ie)}),e({target:K,stat:!0,forced:!y},{useSetter:function(){function ie(){Be=!0}return ie}(),useSimple:function(){function ie(){Be=!1}return ie}()}),e({target:"Object",stat:!0,forced:!y,sham:!V},{create:we,defineProperty:ye,defineProperties:Ie,getOwnPropertyDescriptor:Oe}),e({target:"Object",stat:!0,forced:!y},{getOwnPropertyNames:We}),R(),D(le,K),x[_]=!0},27718:function(w,r,n){"use strict";var e=n(77549),a=n(14141),t=n(40224),o=n(18161),f=n(89458),V=n(7532),y=n(33314),S=n(26602),k=n(10069),C=n(70113),u=t.Symbol,c=u&&u.prototype;if(a&&V(u)&&(!("description"in c)||u().description!==void 0)){var m={},d=function(){function h(){var N=arguments.length<1||arguments[0]===void 0?void 0:S(arguments[0]),b=y(c,this)?new u(N):N===void 0?u():u(N);return N===""&&(m[b]=!0),b}return h}();C(d,u),d.prototype=c,c.constructor=d;var l=String(u("description detection"))==="Symbol(description detection)",s=o(c.valueOf),i=o(c.toString),p=/^Symbol\((.*)\)[^)]+$/,v=o("".replace),g=o("".slice);k(c,"description",{configurable:!0,get:function(){function h(){var N=s(this);if(f(m,N))return"";var b=i(N),B=l?g(b,7,-1):v(b,p,"$1");return B===""?void 0:B}return h}()}),e({global:!0,constructor:!0,forced:!0},{Symbol:d})}},18611:function(w,r,n){"use strict";var e=n(77549),a=n(40164),t=n(89458),o=n(26602),f=n(75130),V=n(80353),y=f("string-to-symbol-registry"),S=f("symbol-to-string-registry");e({target:"Symbol",stat:!0,forced:!V},{for:function(){function k(C){var u=o(C);if(t(y,u))return y[u];var c=a("Symbol")(u);return y[u]=c,S[c]=u,c}return k}()})},86042:function(w,r,n){"use strict";var e=n(15388);e("hasInstance")},93267:function(w,r,n){"use strict";var e=n(15388);e("isConcatSpreadable")},41664:function(w,r,n){"use strict";var e=n(15388);e("iterator")},99414:function(w,r,n){"use strict";n(9056),n(18611),n(30661),n(12183),n(93146)},30661:function(w,r,n){"use strict";var e=n(77549),a=n(89458),t=n(74352),o=n(62518),f=n(75130),V=n(80353),y=f("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(w,r,n){"use strict";var e=n(15388);e("match")},44844:function(w,r,n){"use strict";var e=n(15388);e("replace")},25030:function(w,r,n){"use strict";var e=n(15388);e("search")},96454:function(w,r,n){"use strict";var e=n(15388);e("species")},77564:function(w,r,n){"use strict";var e=n(15388);e("split")},44875:function(w,r,n){"use strict";var e=n(15388),a=n(75429);e("toPrimitive"),a()},77904:function(w,r,n){"use strict";var e=n(40164),a=n(15388),t=n(94234);a("toStringTag"),t(e("Symbol"),"Symbol")},35723:function(w,r,n){"use strict";var e=n(15388);e("unscopables")},84805:function(w,r,n){"use strict";var e=n(18161),a=n(72951),t=n(42320),o=e(t),f=a.aTypedArray,V=a.exportTypedArrayMethod;V("copyWithin",function(){function y(S,k){return o(f(this),S,k,arguments.length>2?arguments[2]:void 0)}return y}())},79305:function(w,r,n){"use strict";var e=n(72951),a=n(67480).every,t=e.aTypedArray,o=e.exportTypedArrayMethod;o("every",function(){function f(V){return a(t(this),V,arguments.length>1?arguments[1]:void 0)}return f}())},71573:function(w,r,n){"use strict";var e=n(72951),a=n(59942),t=n(757),o=n(27806),f=n(62696),V=n(18161),y=n(41746),S=e.aTypedArray,k=e.exportTypedArrayMethod,C=V("".slice),u=y(function(){var c=0;return new Int8Array(2).fill({valueOf:function(){function m(){return c++}return m}()}),c!==1});k("fill",function(){function c(m){var d=arguments.length;S(this);var l=C(o(this),0,3)==="Big"?t(m):+m;return f(a,this,l,d>1?arguments[1]:void 0,d>2?arguments[2]:void 0)}return c}(),u)},47910:function(w,r,n){"use strict";var e=n(72951),a=n(67480).filter,t=n(80936),o=e.aTypedArray,f=e.exportTypedArrayMethod;f("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(w,r,n){"use strict";var e=n(72951),a=n(67480).findIndex,t=e.aTypedArray,o=e.exportTypedArrayMethod;o("findIndex",function(){function f(V){return a(t(this),V,arguments.length>1?arguments[1]:void 0)}return f}())},48447:function(w,r,n){"use strict";var e=n(72951),a=n(67480).find,t=e.aTypedArray,o=e.exportTypedArrayMethod;o("find",function(){function f(V){return a(t(this),V,arguments.length>1?arguments[1]:void 0)}return f}())},68265:function(w,r,n){"use strict";var e=n(12218);e("Float32",function(a){return function(){function t(o,f,V){return a(this,o,f,V)}return t}()})},36030:function(w,r,n){"use strict";var e=n(12218);e("Float64",function(a){return function(){function t(o,f,V){return a(this,o,f,V)}return t}()})},57371:function(w,r,n){"use strict";var e=n(72951),a=n(67480).forEach,t=e.aTypedArray,o=e.exportTypedArrayMethod;o("forEach",function(){function f(V){a(t(this),V,arguments.length>1?arguments[1]:void 0)}return f}())},68220:function(w,r,n){"use strict";var e=n(66220),a=n(72951).exportTypedArrayStaticMethod,t=n(7996);a("from",t,e)},15745:function(w,r,n){"use strict";var e=n(72951),a=n(64210).includes,t=e.aTypedArray,o=e.exportTypedArrayMethod;o("includes",function(){function f(V){return a(t(this),V,arguments.length>1?arguments[1]:void 0)}return f}())},43398:function(w,r,n){"use strict";var e=n(72951),a=n(64210).indexOf,t=e.aTypedArray,o=e.exportTypedArrayMethod;o("indexOf",function(){function f(V){return a(t(this),V,arguments.length>1?arguments[1]:void 0)}return f}())},25888:function(w,r,n){"use strict";var e=n(12218);e("Int16",function(a){return function(){function t(o,f,V){return a(this,o,f,V)}return t}()})},35718:function(w,r,n){"use strict";var e=n(12218);e("Int32",function(a){return function(){function t(o,f,V){return a(this,o,f,V)}return t}()})},32791:function(w,r,n){"use strict";var e=n(12218);e("Int8",function(a){return function(){function t(o,f,V){return a(this,o,f,V)}return t}()})},97722:function(w,r,n){"use strict";var e=n(40224),a=n(41746),t=n(18161),o=n(72951),f=n(65809),V=n(66266),y=V("iterator"),S=e.Uint8Array,k=t(f.values),C=t(f.keys),u=t(f.entries),c=o.aTypedArray,m=o.exportTypedArrayMethod,d=S&&S.prototype,l=!a(function(){d[y].call([1])}),s=!!d&&d.values&&d[y]===d.values&&d.values.name==="values",i=function(){function p(){return k(c(this))}return p}();m("entries",function(){function p(){return u(c(this))}return p}(),l),m("keys",function(){function p(){return C(c(this))}return p}(),l),m("values",i,l||!s,{name:"values"}),m(y,i,l||!s,{name:"values"})},79088:function(w,r,n){"use strict";var e=n(72951),a=n(18161),t=e.aTypedArray,o=e.exportTypedArrayMethod,f=a([].join);o("join",function(){function V(y){return f(t(this),y)}return V}())},6075:function(w,r,n){"use strict";var e=n(72951),a=n(70918),t=n(16934),o=e.aTypedArray,f=e.exportTypedArrayMethod;f("lastIndexOf",function(){function V(y){var S=arguments.length;return a(t,o(this),S>1?[y,arguments[1]]:[y])}return V}())},46896:function(w,r,n){"use strict";var e=n(72951),a=n(67480).map,t=n(489),o=e.aTypedArray,f=e.exportTypedArrayMethod;f("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(w,r,n){"use strict";var e=n(72951),a=n(66220),t=e.aTypedArrayConstructor,o=e.exportTypedArrayStaticMethod;o("of",function(){function f(){for(var V=0,y=arguments.length,S=new(t(this))(y);y>V;)S[V]=arguments[V++];return S}return f}(),a)},349:function(w,r,n){"use strict";var e=n(72951),a=n(98405).right,t=e.aTypedArray,o=e.exportTypedArrayMethod;o("reduceRight",function(){function f(V){var y=arguments.length;return a(t(this),V,y,y>1?arguments[1]:void 0)}return f}())},72606:function(w,r,n){"use strict";var e=n(72951),a=n(98405).left,t=e.aTypedArray,o=e.exportTypedArrayMethod;o("reduce",function(){function f(V){var y=arguments.length;return a(t(this),V,y,y>1?arguments[1]:void 0)}return f}())},28292:function(w,r,n){"use strict";var e=n(72951),a=e.aTypedArray,t=e.exportTypedArrayMethod,o=Math.floor;t("reverse",function(){function f(){for(var V=this,y=a(V).length,S=o(y/2),k=0,C;k1?arguments[1]:void 0,1),v=V(i);if(d)return a(u,this,v,p);var g=this.length,h=o(v),N=0;if(h+p>g)throw new S("Wrong length");for(;Nm;)l[m]=u[m++];return l}return S}(),y)},74188:function(w,r,n){"use strict";var e=n(72951),a=n(67480).some,t=e.aTypedArray,o=e.exportTypedArrayMethod;o("some",function(){function f(V){return a(t(this),V,arguments.length>1?arguments[1]:void 0)}return f}())},81976:function(w,r,n){"use strict";var e=n(40224),a=n(85067),t=n(41746),o=n(97361),f=n(44815),V=n(72951),y=n(49847),S=n(56605),k=n(82709),C=n(53125),u=V.aTypedArray,c=V.exportTypedArrayMethod,m=e.Uint16Array,d=m&&a(m.prototype.sort),l=!!d&&!(t(function(){d(new m(2),null)})&&t(function(){d(new m(2),{})})),s=!!d&&!t(function(){if(k)return k<74;if(y)return y<67;if(S)return!0;if(C)return C<602;var p=new m(516),v=Array(516),g,h;for(g=0;g<516;g++)h=g%4,p[g]=515-g,v[g]=g-2*h+3;for(d(p,function(N,b){return(N/4|0)-(b/4|0)}),g=0;g<516;g++)if(p[g]!==v[g])return!0}),i=function(v){return function(g,h){return v!==void 0?+v(g,h)||0:h!==h?-1:g!==g?1:g===0&&h===0?1/g>0&&1/h<0?1:-1:g>h}};c("sort",function(){function p(v){return v!==void 0&&o(v),s?d(this,v):f(u(this),i(v))}return p}(),!s||l)},78651:function(w,r,n){"use strict";var e=n(72951),a=n(10475),t=n(74067),o=n(489),f=e.aTypedArray,V=e.exportTypedArrayMethod;V("subarray",function(){function y(S,k){var C=f(this),u=C.length,c=t(S,u),m=o(C);return new m(C.buffer,C.byteOffset+c*C.BYTES_PER_ELEMENT,a((k===void 0?u:t(k,u))-c))}return y}())},81664:function(w,r,n){"use strict";var e=n(40224),a=n(70918),t=n(72951),o=n(41746),f=n(77713),V=e.Int8Array,y=t.aTypedArray,S=t.exportTypedArrayMethod,k=[].toLocaleString,C=!!V&&o(function(){k.call(new V(1))}),u=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,C?f(y(this)):y(this),f(arguments))}return c}(),u)},35579:function(w,r,n){"use strict";var e=n(72951).exportTypedArrayMethod,a=n(41746),t=n(40224),o=n(18161),f=t.Uint8Array,V=f&&f.prototype||{},y=[].toString,S=o([].join);a(function(){y.call({})})&&(y=function(){function C(){return S(this)}return C}());var k=V.toString!==y;e("toString",y,k)},99683:function(w,r,n){"use strict";var e=n(12218);e("Uint16",function(a){return function(){function t(o,f,V){return a(this,o,f,V)}return t}()})},80941:function(w,r,n){"use strict";var e=n(12218);e("Uint32",function(a){return function(){function t(o,f,V){return a(this,o,f,V)}return t}()})},45338:function(w,r,n){"use strict";var e=n(12218);e("Uint8",function(a){return function(){function t(o,f,V){return a(this,o,f,V)}return t}()})},40737:function(w,r,n){"use strict";var e=n(12218);e("Uint8",function(a){return function(){function t(o,f,V){return a(this,o,f,V)}return t}()},!0)},74283:function(w,r,n){"use strict";var e=n(56255),a=n(40224),t=n(18161),o=n(13648),f=n(29126),V=n(93439),y=n(32920),S=n(56831),k=n(35086).enforce,C=n(41746),u=n(90777),c=Object,m=Array.isArray,d=c.isExtensible,l=c.isFrozen,s=c.isSealed,i=c.freeze,p=c.seal,v=!a.ActiveXObject&&"ActiveXObject"in a,g,h=function(E){return function(){function M(){return E(this,arguments.length?arguments[0]:void 0)}return M}()},N=V("WeakMap",h,y),b=N.prototype,B=t(b.set),I=function(){return e&&C(function(){var E=i([]);return B(new N,E,1),!l(E)})};if(u)if(v){g=y.getConstructor(h,"WeakMap",!0),f.enable();var L=t(b.delete),T=t(b.has),A=t(b.get);o(b,{delete:function(){function x(E){if(S(E)&&!d(E)){var M=k(this);return M.frozen||(M.frozen=new g),L(this,E)||M.frozen.delete(E)}return L(this,E)}return x}(),has:function(){function x(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 x}(),get:function(){function x(E){if(S(E)&&!d(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)&&!d(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 m(E)&&(l(E)?j=i:s(E)&&(j=p)),B(this,E,M),j&&j(E),this}return x}()})},84033:function(w,r,n){"use strict";n(74283)},82389:function(w,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(w,r,n){"use strict";n(82389)},73993:function(w,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(w,r,n){"use strict";n(73993),n(72532)},57399:function(w,r,n){"use strict";var e=n(77549),a=n(40224),t=n(27150),o=n(97361),f=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(C){f(arguments.length,1),t(o(C))}return k}()})},72532:function(w,r,n){"use strict";var e=n(77549),a=n(40224),t=n(91314).set,o=n(83827),f=a.setImmediate?o(t,!1):t;e({global:!0,bind:!0,enumerable:!0,forced:a.setImmediate!==f},{setImmediate:f})},48112:function(w,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(w,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(w,r,n){"use strict";n(48112),n(82274)},50719:function(w){"use strict";/** + */var t=r.BoxWithSampleText=function(){function o(f){return(0,e.normalizeProps)((0,e.createComponentVNode)(2,a.Box,Object.assign({},f,{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(){},38265:function(){},7455:function(){},58823:function(){},49265:function(){},55350:function(){},45503:function(){},36557:function(){},70555:function(){},70752:function(w,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 f=t(o);return n(f)}function t(o){if(!n.o(e,o)){var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}return e[o]}a.keys=function(){return Object.keys(e)},a.resolve=t,w.exports=a,a.id=70752},59395:function(w,r,n){var e={"./pda_atmos_scan.js":21606,"./pda_janitor.js":12339,"./pda_main_menu.js":36615,"./pda_manifest.js":99737,"./pda_medical.js":61597,"./pda_messenger.js":30709,"./pda_mule.js":68053,"./pda_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 f=t(o);return n(f)}function t(o){if(!n.o(e,o)){var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}return e[o]}a.keys=function(){return Object.keys(e)},a.resolve=t,w.exports=a,a.id=59395},32054:function(w,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,"./BloomEdit":70225,"./BloomEdit.js":70225,"./BlueSpaceArtilleryControl":65483,"./BlueSpaceArtilleryControl.js":65483,"./BluespaceTap":69099,"./BluespaceTap.js":69099,"./BodyScanner":71736,"./BodyScanner.js":71736,"./BookBinder":99449,"./BookBinder.js":99449,"./BotCall":85951,"./BotCall.js":85951,"./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":41099,"./ChemMaster.tsx":41099,"./CloningConsole":51327,"./CloningConsole.js":51327,"./CloningPod":66373,"./CloningPod.js":66373,"./CoinMint":38781,"./CoinMint.tsx":38781,"./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,"./Noticeboard":26148,"./Noticeboard.tsx":26148,"./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,"./PanDEMIC":6887,"./PanDEMIC.tsx":6887,"./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,"./ReagentsEditor":70976,"./ReagentsEditor.tsx":70976,"./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,"./TelescienceConsole":65875,"./TelescienceConsole.js":65875,"./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_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 f=t(o);return n(f)}function t(o){if(!n.o(e,o)){var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}return e[o]}a.keys=function(){return Object.keys(e)},a.resolve=t,w.exports=a,a.id=32054},4085:function(w,r,n){var e={"./Blink.stories.js":61498,"./BlockQuote.stories.js":27431,"./Box.stories.js":6517,"./Button.stories.js":20648,"./ByondUi.stories.js":14906,"./Collapsible.stories.js":59948,"./Flex.stories.js":37227,"./ImageButton.stories.js":16189,"./Input.stories.js":32304,"./Popper.stories.js":50394,"./ProgressBar.stories.js":75096,"./Stack.stories.js":30268,"./Storage.stories.js":22645,"./Tabs.stories.js":42120,"./Themes.stories.js":80254,"./Tooltip.stories.js":90823};function a(o){var f=t(o);return n(f)}function t(o){if(!n.o(e,o)){var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}return e[o]}a.keys=function(){return Object.keys(e)},a.resolve=t,w.exports=a,a.id=4085},97361:function(w,r,n){"use strict";var e=n(7532),a=n(62518),t=TypeError;w.exports=function(o){if(e(o))return o;throw new t(a(o)+" is not a function")}},76833:function(w,r,n){"use strict";var e=n(60354),a=n(62518),t=TypeError;w.exports=function(o){if(e(o))return o;throw new t(a(o)+" is not a constructor")}},51689:function(w,r,n){"use strict";var e=n(41224),a=String,t=TypeError;w.exports=function(o){if(e(o))return o;throw new t("Can't set "+a(o)+" as a prototype")}},91138:function(w,r,n){"use strict";var e=n(66266),a=n(28969),t=n(56018).f,o=e("unscopables"),f=Array.prototype;f[o]===void 0&&t(f,o,{configurable:!0,value:a(null)}),w.exports=function(V){f[o][V]=!0}},62970:function(w,r,n){"use strict";var e=n(56852).charAt;w.exports=function(a,t,o){return t+(o?e(a,t).length:1)}},19870:function(w,r,n){"use strict";var e=n(33314),a=TypeError;w.exports=function(t,o){if(e(o,t))return t;throw new a("Incorrect invocation")}},39482:function(w,r,n){"use strict";var e=n(56831),a=String,t=TypeError;w.exports=function(o){if(e(o))return o;throw new t(a(o)+" is not an object")}},67404:function(w){"use strict";w.exports=typeof ArrayBuffer!="undefined"&&typeof DataView!="undefined"},65693:function(w,r,n){"use strict";var e=n(41746);w.exports=e(function(){if(typeof ArrayBuffer=="function"){var a=new ArrayBuffer(8);Object.isExtensible(a)&&Object.defineProperty(a,"a",{value:8})}})},72951:function(w,r,n){"use strict";var e=n(67404),a=n(14141),t=n(40224),o=n(7532),f=n(56831),V=n(89458),y=n(27806),S=n(62518),k=n(16216),v=n(59173),i=n(10069),c=n(33314),m=n(31658),d=n(42878),u=n(66266),s=n(33345),l=n(35086),p=l.enforce,C=l.get,g=t.Int8Array,h=g&&g.prototype,N=t.Uint8ClampedArray,b=N&&N.prototype,B=g&&m(g),I=h&&m(h),L=Object.prototype,T=t.TypeError,A=u("toStringTag"),x=s("TYPED_ARRAY_TAG"),E="TypedArrayConstructor",M=e&&!!d&&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},U=function(){function ce(fe){if(!f(fe))return!1;var pe=y(fe);return pe==="DataView"||V(F,pe)||V(W,pe)}return ce}(),K=function ce(fe){var pe=m(fe);if(f(pe)){var he=C(pe);return he&&V(he,E)?he[E]:ce(pe)}},H=function(fe){if(!f(fe))return!1;var pe=y(fe);return V(F,pe)||V(W,pe)},X=function(fe){if(H(fe))return fe;throw new T("Target is not a typed array")},Y=function(fe){if(o(fe)&&(!d||c(B,fe)))return fe;throw new T(S(fe)+" is not a typed array constructor")},J=function(fe,pe,he,te){if(a){if(he)for(var Q in F){var ae=t[Q];if(ae&&V(ae.prototype,fe))try{delete ae.prototype[fe]}catch(ee){try{ae.prototype[fe]=pe}catch(oe){}}}(!I[fe]||he)&&v(I,fe,he?pe:M&&h[fe]||pe,te)}},ie=function(fe,pe,he){var te,Q;if(a){if(d){if(he){for(te in F)if(Q=t[te],Q&&V(Q,fe))try{delete Q[fe]}catch(ae){}}if(!B[fe]||he)try{return v(B,fe,he?pe:M&&B[fe]||pe)}catch(ae){}else return}for(te in F)Q=t[te],Q&&(!Q[fe]||he)&&v(Q,fe,pe)}};for(P in F)R=t[P],D=R&&R.prototype,D?p(D)[E]=R:M=!1;for(P in W)R=t[P],D=R&&R.prototype,D&&(p(D)[E]=R);if((!M||!o(B)||B===Function.prototype)&&(B=function(){function ce(){throw new T("Incorrect invocation")}return ce}(),M))for(P in F)t[P]&&d(t[P],B);if((!M||!I||I===L)&&(I=B.prototype,M))for(P in F)t[P]&&d(t[P].prototype,I);if(M&&m(b)!==I&&d(b,I),a&&!V(I,A)){j=!0,i(I,A,{configurable:!0,get:function(){function ce(){return f(this)?this[x]:void 0}return ce}()});for(P in F)t[P]&&k(t[P],x,P)}w.exports={NATIVE_ARRAY_BUFFER_VIEWS:M,TYPED_ARRAY_TAG:j&&x,aTypedArray:X,aTypedArrayConstructor:Y,exportTypedArrayMethod:J,exportTypedArrayStaticMethod:ie,getTypedArrayConstructor:K,isView:U,isTypedArray:H,TypedArray:B,TypedArrayPrototype:I}},46185:function(w,r,n){"use strict";var e=n(40224),a=n(18161),t=n(14141),o=n(67404),f=n(26463),V=n(16216),y=n(10069),S=n(13648),k=n(41746),v=n(19870),i=n(74952),c=n(10475),m=n(90835),d=n(75988),u=n(62263),s=n(31658),l=n(42878),p=n(59942),C=n(77713),g=n(2566),h=n(70113),N=n(94234),b=n(35086),B=f.PROPER,I=f.CONFIGURABLE,L="ArrayBuffer",T="DataView",A="prototype",x="Wrong length",E="Wrong index",M=b.getterFor(L),j=b.getterFor(T),P=b.set,R=e[L],D=R,F=D&&D[A],W=e[T],U=W&&W[A],K=Object.prototype,H=e.Array,X=e.RangeError,Y=a(p),J=a([].reverse),ie=u.pack,ce=u.unpack,fe=function(Ve){return[Ve&255]},pe=function(Ve){return[Ve&255,Ve>>8&255]},he=function(Ve){return[Ve&255,Ve>>8&255,Ve>>16&255,Ve>>24&255]},te=function(Ve){return Ve[3]<<24|Ve[2]<<16|Ve[1]<<8|Ve[0]},Q=function(Ve){return ie(d(Ve),23,4)},ae=function(Ve){return ie(Ve,52,8)},ee=function(Ve,ke,ye){y(Ve[A],ke,{configurable:!0,get:function(){function Ie(){return ye(this)[ke]}return Ie}()})},oe=function(Ve,ke,ye,Ie){var we=j(Ve),xe=m(ye),Oe=!!Ie;if(xe+ke>we.byteLength)throw new X(E);var We=we.bytes,be=xe+we.byteOffset,le=C(We,be,be+ke);return Oe?le:J(le)},ue=function(Ve,ke,ye,Ie,we,xe){var Oe=j(Ve),We=m(ye),be=Ie(+we),le=!!xe;if(We+ke>Oe.byteLength)throw new X(E);for(var se=Oe.bytes,Ce=We+Oe.byteOffset,me=0;mewe)throw new X("Wrong offset");if(ye=ye===void 0?we-xe:c(ye),xe+ye>we)throw new X(x);P(this,{type:T,buffer:Ve,byteLength:ye,byteOffset:xe,bytes:Ie.bytes}),t||(this.buffer=Ve,this.byteLength=ye,this.byteOffset=xe)}return ve}(),U=W[A],t&&(ee(D,"byteLength",M),ee(W,"buffer",j),ee(W,"byteLength",j),ee(W,"byteOffset",j)),S(U,{getInt8:function(){function ve(Ve){return oe(this,1,Ve)[0]<<24>>24}return ve}(),getUint8:function(){function ve(Ve){return oe(this,1,Ve)[0]}return ve}(),getInt16:function(){function ve(Ve){var ke=oe(this,2,Ve,arguments.length>1?arguments[1]:!1);return(ke[1]<<8|ke[0])<<16>>16}return ve}(),getUint16:function(){function ve(Ve){var ke=oe(this,2,Ve,arguments.length>1?arguments[1]:!1);return ke[1]<<8|ke[0]}return ve}(),getInt32:function(){function ve(Ve){return te(oe(this,4,Ve,arguments.length>1?arguments[1]:!1))}return ve}(),getUint32:function(){function ve(Ve){return te(oe(this,4,Ve,arguments.length>1?arguments[1]:!1))>>>0}return ve}(),getFloat32:function(){function ve(Ve){return ce(oe(this,4,Ve,arguments.length>1?arguments[1]:!1),23)}return ve}(),getFloat64:function(){function ve(Ve){return ce(oe(this,8,Ve,arguments.length>1?arguments[1]:!1),52)}return ve}(),setInt8:function(){function ve(Ve,ke){ue(this,1,Ve,fe,ke)}return ve}(),setUint8:function(){function ve(Ve,ke){ue(this,1,Ve,fe,ke)}return ve}(),setInt16:function(){function ve(Ve,ke){ue(this,2,Ve,pe,ke,arguments.length>2?arguments[2]:!1)}return ve}(),setUint16:function(){function ve(Ve,ke){ue(this,2,Ve,pe,ke,arguments.length>2?arguments[2]:!1)}return ve}(),setInt32:function(){function ve(Ve,ke){ue(this,4,Ve,he,ke,arguments.length>2?arguments[2]:!1)}return ve}(),setUint32:function(){function ve(Ve,ke){ue(this,4,Ve,he,ke,arguments.length>2?arguments[2]:!1)}return ve}(),setFloat32:function(){function ve(Ve,ke){ue(this,4,Ve,Q,ke,arguments.length>2?arguments[2]:!1)}return ve}(),setFloat64:function(){function ve(Ve,ke){ue(this,8,Ve,ae,ke,arguments.length>2?arguments[2]:!1)}return ve}()});else{var re=B&&R.name!==L;!k(function(){R(1)})||!k(function(){new R(-1)})||k(function(){return new R,new R(1.5),new R(NaN),R.length!==1||re&&!I})?(D=function(){function ve(Ve){return v(this,F),g(new R(m(Ve)),this,D)}return ve}(),D[A]=F,F.constructor=D,h(D,R)):re&&I&&V(R,"name",L),l&&s(U)!==K&&l(U,K);var ge=new W(new D(2)),Be=a(U.setInt8);ge.setInt8(0,2147483648),ge.setInt8(1,2147483649),(ge.getInt8(0)||!ge.getInt8(1))&&S(U,{setInt8:function(){function ve(Ve,ke){Be(this,Ve,ke<<24>>24)}return ve}(),setUint8:function(){function ve(Ve,ke){Be(this,Ve,ke<<24>>24)}return ve}()},{unsafe:!0})}N(D,L),N(W,T),w.exports={ArrayBuffer:D,DataView:W}},42320:function(w,r,n){"use strict";var e=n(40076),a=n(74067),t=n(8333),o=n(58937),f=Math.min;w.exports=[].copyWithin||function(){function V(y,S){var k=e(this),v=t(k),i=a(y,v),c=a(S,v),m=arguments.length>2?arguments[2]:void 0,d=f((m===void 0?v:a(m,v))-c,v-i),u=1;for(c0;)c in k?k[i]=k[c]:o(k,i),i+=u,c+=u;return k}return V}()},59942:function(w,r,n){"use strict";var e=n(40076),a=n(74067),t=n(8333);w.exports=function(){function o(f){for(var V=e(this),y=t(V),S=arguments.length,k=a(S>1?arguments[1]:void 0,y),v=S>2?arguments[2]:void 0,i=v===void 0?y:a(v,y);i>k;)V[k++]=f;return V}return o}()},75420:function(w,r,n){"use strict";var e=n(67480).forEach,a=n(42309),t=a("forEach");w.exports=t?[].forEach:function(){function o(f){return e(this,f,arguments.length>1?arguments[1]:void 0)}return o}()},6967:function(w,r,n){"use strict";var e=n(8333);w.exports=function(a,t,o){for(var f=0,V=arguments.length>2?o:e(t),y=new a(V);V>f;)y[f]=t[f++];return y}},80363:function(w,r,n){"use strict";var e=n(4509),a=n(62696),t=n(40076),o=n(17100),f=n(58482),V=n(60354),y=n(8333),S=n(12913),k=n(3438),v=n(76274),i=Array;w.exports=function(){function c(m){var d=t(m),u=V(this),s=arguments.length,l=s>1?arguments[1]:void 0,p=l!==void 0;p&&(l=e(l,s>2?arguments[2]:void 0));var C=v(d),g=0,h,N,b,B,I,L;if(C&&!(this===i&&f(C)))for(N=u?new this:[],B=k(d,C),I=B.next;!(b=a(I,B)).done;g++)L=p?o(B,l,[b.value,g],!0):b.value,S(N,g,L);else for(h=y(d),N=u?new this(h):i(h);h>g;g++)L=p?l(d[g],g):d[g],S(N,g,L);return N.length=g,N}return c}()},64210:function(w,r,n){"use strict";var e=n(96812),a=n(74067),t=n(8333),o=function(V){return function(y,S,k){var v=e(y),i=t(v);if(i===0)return!V&&-1;var c=a(k,i),m;if(V&&S!==S){for(;i>c;)if(m=v[c++],m!==m)return!0}else for(;i>c;c++)if((V||c in v)&&v[c]===S)return V||c||0;return!V&&-1}};w.exports={includes:o(!0),indexOf:o(!1)}},67480:function(w,r,n){"use strict";var e=n(4509),a=n(18161),t=n(26736),o=n(40076),f=n(8333),V=n(32878),y=a([].push),S=function(v){var i=v===1,c=v===2,m=v===3,d=v===4,u=v===6,s=v===7,l=v===5||u;return function(p,C,g,h){for(var N=o(p),b=t(N),B=f(b),I=e(C,g),L=0,T=h||V,A=i?T(p,B):c||s?T(p,0):void 0,x,E;B>L;L++)if((l||L in b)&&(x=b[L],E=I(x,L,N),v))if(i)A[L]=E;else if(E)switch(v){case 3:return!0;case 5:return x;case 6:return L;case 2:y(A,x)}else switch(v){case 4:return!1;case 7:y(A,x)}return u?-1:m||d?d:A}};w.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(w,r,n){"use strict";var e=n(70918),a=n(96812),t=n(74952),o=n(8333),f=n(42309),V=Math.min,y=[].lastIndexOf,S=!!y&&1/[1].lastIndexOf(1,-0)<0,k=f("lastIndexOf"),v=S||!k;w.exports=v?function(){function i(c){if(S)return e(y,this,arguments)||0;var m=a(this),d=o(m);if(d===0)return-1;var u=d-1;for(arguments.length>1&&(u=V(u,t(arguments[1]))),u<0&&(u=d+u);u>=0;u--)if(u in m&&m[u]===c)return u||0;return-1}return i}():y},55114:function(w,r,n){"use strict";var e=n(41746),a=n(66266),t=n(82709),o=a("species");w.exports=function(f){return t>=51||!e(function(){var V=[],y=V.constructor={};return y[o]=function(){return{foo:1}},V[f](Boolean).foo!==1})}},42309:function(w,r,n){"use strict";var e=n(41746);w.exports=function(a,t){var o=[][a];return!!o&&e(function(){o.call(null,t||function(){return 1},1)})}},98405:function(w,r,n){"use strict";var e=n(97361),a=n(40076),t=n(26736),o=n(8333),f=TypeError,V="Reduce of empty array with no initial value",y=function(k){return function(v,i,c,m){var d=a(v),u=t(d),s=o(d);if(e(i),s===0&&c<2)throw new f(V);var l=k?s-1:0,p=k?-1:1;if(c<2)for(;;){if(l in u){m=u[l],l+=p;break}if(l+=p,k?l<0:s<=l)throw new f(V)}for(;k?l>=0:s>l;l+=p)l in u&&(m=i(m,u[l],l,d));return m}};w.exports={left:y(!1),right:y(!0)}},72720:function(w,r,n){"use strict";var e=n(14141),a=n(62367),t=TypeError,o=Object.getOwnPropertyDescriptor,f=e&&!function(){if(this!==void 0)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(V){return V instanceof TypeError}}();w.exports=f?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(w,r,n){"use strict";var e=n(18161);w.exports=e([].slice)},44815:function(w,r,n){"use strict";var e=n(77713),a=Math.floor,t=function o(f,V){var y=f.length;if(y<8)for(var S=1,k,v;S0;)f[v]=f[--v];v!==S++&&(f[v]=k)}else for(var i=a(y/2),c=o(e(f,0,i),V),m=o(e(f,i),V),d=c.length,u=m.length,s=0,l=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 L}(),has:function(){function L(T){return!!I(this,T)}return L}()}),t(N,C?{get:function(){function L(T){var A=I(this,T);return A&&A.value}return L}(),set:function(){function L(T,A){return B(this,T===0?0:T,A)}return L}()}:{add:function(){function L(T){return B(this,T=T===0?0:T,T)}return L}()}),i&&a(N,"size",{configurable:!0,get:function(){function L(){return b(this).size}return L}()}),h}return s}(),setStrong:function(){function s(l,p,C){var g=p+" Iterator",h=u(p),N=u(g);S(l,p,function(b,B){d(this,{type:g,target:b,state:h(b),kind:B,last:void 0})},function(){for(var b=N(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)},C?"entries":"values",!C,!0),v(p)}return s}()}},32920:function(w,r,n){"use strict";var e=n(18161),a=n(13648),t=n(29126).getWeakData,o=n(19870),f=n(39482),V=n(1022),y=n(56831),S=n(281),k=n(67480),v=n(89458),i=n(35086),c=i.set,m=i.getterFor,d=k.find,u=k.findIndex,s=e([].splice),l=0,p=function(N){return N.frozen||(N.frozen=new C)},C=function(){this.entries=[]},g=function(N,b){return d(N.entries,function(B){return B[0]===b})};C.prototype={get:function(){function h(N){var b=g(this,N);if(b)return b[1]}return h}(),has:function(){function h(N){return!!g(this,N)}return h}(),set:function(){function h(N,b){var B=g(this,N);B?B[1]=b:this.entries.push([N,b])}return h}(),delete:function(){function h(N){var b=u(this.entries,function(B){return B[0]===N});return~b&&s(this.entries,b,1),!!~b}return h}()},w.exports={getConstructor:function(){function h(N,b,B,I){var L=N(function(E,M){o(E,T),c(E,{type:b,id:l++,frozen:void 0}),V(M)||S(M,E[I],{that:E,AS_ENTRIES:B})}),T=L.prototype,A=m(b),x=function(){function E(M,j,P){var R=A(M),D=t(f(j),!0);return D===!0?p(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?p(j).delete(M):P&&v(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?p(j).has(M):P&&v(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?p(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}()}),L}return h}()}},93439:function(w,r,n){"use strict";var e=n(77549),a=n(40224),t=n(18161),o=n(95945),f=n(59173),V=n(29126),y=n(281),S=n(19870),k=n(7532),v=n(1022),i=n(56831),c=n(41746),m=n(52019),d=n(94234),u=n(2566);w.exports=function(s,l,p){var C=s.indexOf("Map")!==-1,g=s.indexOf("Weak")!==-1,h=C?"set":"add",N=a[s],b=N&&N.prototype,B=N,I={},L=function(R){var D=t(b[R]);f(b,R,R==="add"?function(){function F(W){return D(this,W===0?0:W),this}return F}():R==="delete"?function(F){return g&&!i(F)?!1:D(this,F===0?0:F)}:R==="get"?function(){function F(W){return g&&!i(W)?void 0:D(this,W===0?0:W)}return F}():R==="has"?function(){function F(W){return g&&!i(W)?!1:D(this,W===0?0:W)}return F}():function(){function F(W,U){return D(this,W===0?0:W,U),this}return F}())},T=o(s,!k(N)||!(g||b.forEach&&!c(function(){new N().entries().next()})));if(T)B=p.getConstructor(l,s,C,h),V.enable();else if(o(s,!0)){var A=new B,x=A[h](g?{}:-0,1)!==A,E=c(function(){A.has(1)}),M=m(function(P){new N(P)}),j=!g&&c(function(){for(var P=new N,R=5;R--;)P[h](R,R);return!P.has(-0)});M||(B=l(function(P,R){S(P,b);var D=u(new N,P,B);return v(R)||y(R,D[h],{that:D,AS_ENTRIES:C}),D}),B.prototype=b,b.constructor=B),(E||j)&&(L("delete"),L("has"),C&&L("get")),(j||x)&&L(h),g&&b.clear&&delete b.clear}return I[s]=B,e({global:!0,constructor:!0,forced:B!==N},I),d(B,s),g||p.setStrong(B,s,C),B}},70113:function(w,r,n){"use strict";var e=n(89458),a=n(93616),t=n(54168),o=n(56018);w.exports=function(f,V,y){for(var S=a(V),k=o.f,v=t.f,i=0;i"+v+""}},77056:function(w){"use strict";w.exports=function(r,n){return{value:r,done:n}}},16216:function(w,r,n){"use strict";var e=n(14141),a=n(56018),t=n(7539);w.exports=e?function(o,f,V){return a.f(o,f,t(1,V))}:function(o,f,V){return o[f]=V,o}},7539:function(w){"use strict";w.exports=function(r,n){return{enumerable:!(r&1),configurable:!(r&2),writable:!(r&4),value:n}}},12913:function(w,r,n){"use strict";var e=n(14141),a=n(56018),t=n(7539);w.exports=function(o,f,V){e?a.f(o,f,t(0,V)):o[f]=V}},74003:function(w,r,n){"use strict";var e=n(18161),a=n(41746),t=n(34086).start,o=RangeError,f=isFinite,V=Math.abs,y=Date.prototype,S=y.toISOString,k=e(y.getTime),v=e(y.getUTCDate),i=e(y.getUTCFullYear),c=e(y.getUTCHours),m=e(y.getUTCMilliseconds),d=e(y.getUTCMinutes),u=e(y.getUTCMonth),s=e(y.getUTCSeconds);w.exports=a(function(){return S.call(new Date(-50000000000001))!=="0385-07-25T07:06:39.999Z"})||!a(function(){S.call(new Date(NaN))})?function(){function l(){if(!f(k(this)))throw new o("Invalid time value");var p=this,C=i(p),g=m(p),h=C<0?"-":C>9999?"+":"";return h+t(V(C),h?6:4,0)+"-"+t(u(p)+1,2,0)+"-"+t(v(p),2,0)+"T"+t(c(p),2,0)+":"+t(d(p),2,0)+":"+t(s(p),2,0)+"."+t(g,3,0)+"Z"}return l}():S},95865:function(w,r,n){"use strict";var e=n(39482),a=n(14991),t=TypeError;w.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(w,r,n){"use strict";var e=n(76130),a=n(56018);w.exports=function(t,o,f){return f.get&&e(f.get,o,{getter:!0}),f.set&&e(f.set,o,{setter:!0}),a.f(t,o,f)}},59173:function(w,r,n){"use strict";var e=n(7532),a=n(56018),t=n(76130),o=n(93422);w.exports=function(f,V,y,S){S||(S={});var k=S.enumerable,v=S.name!==void 0?S.name:V;if(e(y)&&t(y,v,S),S.global)k?f[V]=y:o(V,y);else{try{S.unsafe?f[V]&&(k=!0):delete f[V]}catch(i){}k?f[V]=y:a.f(f,V,{value:y,enumerable:!1,configurable:!S.nonConfigurable,writable:!S.nonWritable})}return f}},13648:function(w,r,n){"use strict";var e=n(59173);w.exports=function(a,t,o){for(var f in t)e(a,f,t[f],o);return a}},93422:function(w,r,n){"use strict";var e=n(40224),a=Object.defineProperty;w.exports=function(t,o){try{a(e,t,{value:o,configurable:!0,writable:!0})}catch(f){e[t]=o}return o}},58937:function(w,r,n){"use strict";var e=n(62518),a=TypeError;w.exports=function(t,o){if(!delete t[o])throw new a("Cannot delete property "+e(o)+" of "+e(t))}},14141:function(w,r,n){"use strict";var e=n(41746);w.exports=!e(function(){return Object.defineProperty({},1,{get:function(){function a(){return 7}return a}()})[1]!==7})},85158:function(w,r,n){"use strict";var e=n(40224),a=n(56831),t=e.document,o=a(t)&&a(t.createElement);w.exports=function(f){return o?t.createElement(f):{}}},72434:function(w){"use strict";var r=TypeError,n=9007199254740991;w.exports=function(e){if(e>n)throw r("Maximum allowed index exceeded");return e}},49847:function(w,r,n){"use strict";var e=n(15837),a=e.match(/firefox\/(\d+)/i);w.exports=!!a&&+a[1]},27955:function(w,r,n){"use strict";var e=n(2971),a=n(95823);w.exports=!e&&!a&&typeof window=="object"&&typeof document=="object"},2178:function(w){"use strict";w.exports=typeof Bun=="function"&&Bun&&typeof Bun.version=="string"},2971:function(w){"use strict";w.exports=typeof Deno=="object"&&Deno&&typeof Deno.version=="object"},56605:function(w,r,n){"use strict";var e=n(15837);w.exports=/MSIE|Trident/.test(e)},6647:function(w,r,n){"use strict";var e=n(15837);w.exports=/ipad|iphone|ipod/i.test(e)&&typeof Pebble!="undefined"},52426:function(w,r,n){"use strict";var e=n(15837);w.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(e)},95823:function(w,r,n){"use strict";var e=n(40224),a=n(38817);w.exports=a(e.process)==="process"},25062:function(w,r,n){"use strict";var e=n(15837);w.exports=/web0s(?!.*chrome)/i.test(e)},15837:function(w){"use strict";w.exports=typeof navigator!="undefined"&&String(navigator.userAgent)||""},82709:function(w,r,n){"use strict";var e=n(40224),a=n(15837),t=e.process,o=e.Deno,f=t&&t.versions||o&&o.version,V=f&&f.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]))),w.exports=S},53125:function(w,r,n){"use strict";var e=n(15837),a=e.match(/AppleWebKit\/(\d+)\./);w.exports=!!a&&+a[1]},90298:function(w){"use strict";w.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},77549:function(w,r,n){"use strict";var e=n(40224),a=n(54168).f,t=n(16216),o=n(59173),f=n(93422),V=n(70113),y=n(95945);w.exports=function(S,k){var v=S.target,i=S.global,c=S.stat,m,d,u,s,l,p;if(i?d=e:c?d=e[v]||f(v,{}):d=e[v]&&e[v].prototype,d)for(u in k){if(l=k[u],S.dontCallGetSet?(p=a(d,u),s=p&&p.value):s=d[u],m=y(i?u:v+(c?".":"#")+u,S.forced),!m&&s!==void 0){if(typeof l==typeof s)continue;V(l,s)}(S.sham||s&&s.sham)&&t(l,"sham",!0),o(d,u,l,S)}}},41746:function(w){"use strict";w.exports=function(r){try{return!!r()}catch(n){return!0}}},85427:function(w,r,n){"use strict";n(95880);var e=n(62696),a=n(59173),t=n(72894),o=n(41746),f=n(66266),V=n(16216),y=f("species"),S=RegExp.prototype;w.exports=function(k,v,i,c){var m=f(k),d=!o(function(){var p={};return p[m]=function(){return 7},""[k](p)!==7}),u=d&&!o(function(){var p=!1,C=/a/;return k==="split"&&(C={},C.constructor={},C.constructor[y]=function(){return C},C.flags="",C[m]=/./[m]),C.exec=function(){return p=!0,null},C[m](""),!p});if(!d||!u||i){var s=/./[m],l=v(m,""[k],function(p,C,g,h,N){var b=C.exec;return b===t||b===S.exec?d&&!N?{done:!0,value:e(s,C,g,h)}:{done:!0,value:e(p,g,C,h)}:{done:!1}});a(String.prototype,k,l[0]),a(S,m,l[1])}c&&V(S[m],"sham",!0)}},68864:function(w,r,n){"use strict";var e=n(62367),a=n(8333),t=n(72434),o=n(4509),f=function V(y,S,k,v,i,c,m,d){for(var u=i,s=0,l=m?o(m,d):!1,p,C;s0&&e(p)?(C=a(p),u=V(y,S,p,C,u,c-1)-1):(t(u+1),y[u]=p),u++),s++;return u};w.exports=f},56255:function(w,r,n){"use strict";var e=n(41746);w.exports=!e(function(){return Object.isExtensible(Object.preventExtensions({}))})},70918:function(w,r,n){"use strict";var e=n(76799),a=Function.prototype,t=a.apply,o=a.call;w.exports=typeof Reflect=="object"&&Reflect.apply||(e?o.bind(t):function(){return o.apply(t,arguments)})},4509:function(w,r,n){"use strict";var e=n(85067),a=n(97361),t=n(76799),o=e(e.bind);w.exports=function(f,V){return a(f),V===void 0?f:t?o(f,V):function(){return f.apply(V,arguments)}}},76799:function(w,r,n){"use strict";var e=n(41746);w.exports=!e(function(){var a=function(){}.bind();return typeof a!="function"||a.hasOwnProperty("prototype")})},9379:function(w,r,n){"use strict";var e=n(18161),a=n(97361),t=n(56831),o=n(89458),f=n(77713),V=n(76799),y=Function,S=e([].concat),k=e([].join),v={},i=function(m,d,u){if(!o(v,d)){for(var s=[],l=0;l]*>)/g,S=/\$([$&'`]|\d{1,2})/g;w.exports=function(k,v,i,c,m,d){var u=i+k.length,s=c.length,l=S;return m!==void 0&&(m=a(m),l=y),f(d,l,function(p,C){var g;switch(o(C,0)){case"$":return"$";case"&":return k;case"`":return V(v,0,i);case"'":return V(v,u);case"<":g=m[V(C,1,-1)];break;default:var h=+C;if(h===0)return p;if(h>s){var N=t(h/10);return N===0?p:N<=s?c[N-1]===void 0?o(C,1):c[N-1]+o(C,1):p}g=c[h-1]}return g===void 0?"":g})}},40224:function(w,r,n){"use strict";var e=function(t){return t&&t.Math===Math&&t};w.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(w,r,n){"use strict";var e=n(18161),a=n(40076),t=e({}.hasOwnProperty);w.exports=Object.hasOwn||function(){function o(f,V){return t(a(f),V)}return o}()},21124:function(w){"use strict";w.exports={}},46122:function(w){"use strict";w.exports=function(r,n){try{arguments.length}catch(e){}}},54562:function(w,r,n){"use strict";var e=n(40164);w.exports=e("document","documentElement")},1606:function(w,r,n){"use strict";var e=n(14141),a=n(41746),t=n(85158);w.exports=!e&&!a(function(){return Object.defineProperty(t("div"),"a",{get:function(){function o(){return 7}return o}()}).a!==7})},62263:function(w){"use strict";var r=Array,n=Math.abs,e=Math.pow,a=Math.floor,t=Math.log,o=Math.LN2,f=function(S,k,v){var i=r(v),c=v*8-k-1,m=(1<>1,u=k===23?e(2,-24)-e(2,-77):0,s=S<0||S===0&&1/S<0?1:0,l=0,p,C,g;for(S=n(S),S!==S||S===1/0?(C=S!==S?1:0,p=m):(p=a(t(S)/o),g=e(2,-p),S*g<1&&(p--,g*=2),p+d>=1?S+=u/g:S+=u*e(2,1-d),S*g>=2&&(p++,g/=2),p+d>=m?(C=0,p=m):p+d>=1?(C=(S*g-1)*e(2,k),p+=d):(C=S*e(2,d-1)*e(2,k),p=0));k>=8;)i[l++]=C&255,C/=256,k-=8;for(p=p<0;)i[l++]=p&255,p/=256,c-=8;return i[--l]|=s*128,i},V=function(S,k){var v=S.length,i=v*8-k-1,c=(1<>1,d=i-7,u=v-1,s=S[u--],l=s&127,p;for(s>>=7;d>0;)l=l*256+S[u--],d-=8;for(p=l&(1<<-d)-1,l>>=-d,d+=k;d>0;)p=p*256+S[u--],d-=8;if(l===0)l=1-m;else{if(l===c)return p?NaN:s?-1/0:1/0;p+=e(2,k),l-=m}return(s?-1:1)*p*e(2,l-k)};w.exports={pack:f,unpack:V}},26736:function(w,r,n){"use strict";var e=n(18161),a=n(41746),t=n(38817),o=Object,f=e("".split);w.exports=a(function(){return!o("z").propertyIsEnumerable(0)})?function(V){return t(V)==="String"?f(V,""):o(V)}:o},2566:function(w,r,n){"use strict";var e=n(7532),a=n(56831),t=n(42878);w.exports=function(o,f,V){var y,S;return t&&e(y=f.constructor)&&y!==V&&a(S=y.prototype)&&S!==V.prototype&&t(o,S),o}},43589:function(w,r,n){"use strict";var e=n(18161),a=n(7532),t=n(95046),o=e(Function.toString);a(t.inspectSource)||(t.inspectSource=function(f){return o(f)}),w.exports=t.inspectSource},29126:function(w,r,n){"use strict";var e=n(77549),a=n(18161),t=n(21124),o=n(56831),f=n(89458),V=n(56018).f,y=n(34813),S=n(63797),k=n(57975),v=n(33345),i=n(56255),c=!1,m=v("meta"),d=0,u=function(N){V(N,m,{value:{objectID:"O"+d++,weakData:{}}})},s=function(N,b){if(!o(N))return typeof N=="symbol"?N:(typeof N=="string"?"S":"P")+N;if(!f(N,m)){if(!k(N))return"F";if(!b)return"E";u(N)}return N[m].objectID},l=function(N,b){if(!f(N,m)){if(!k(N))return!0;if(!b)return!1;u(N)}return N[m].weakData},p=function(N){return i&&c&&k(N)&&!f(N,m)&&u(N),N},C=function(){g.enable=function(){},c=!0;var N=y.f,b=a([].splice),B={};B[m]=1,N(B).length&&(y.f=function(I){for(var L=N(I),T=0,A=L.length;TI;I++)if(T=M(d[I]),T&&y(m,T))return T;return new c(!1)}b=S(d,B)}for(A=C?d.next:b.next;!(x=a(A,b)).done;){try{T=M(x.value)}catch(j){v(b,"throw",j)}if(typeof T=="object"&&T&&y(m,T))return T}return new c(!1)}},14868:function(w,r,n){"use strict";var e=n(62696),a=n(39482),t=n(4817);w.exports=function(o,f,V){var y,S;a(o);try{if(y=t(o,"return"),!y){if(f==="throw")throw V;return V}y=e(y,o)}catch(k){S=!0,y=k}if(f==="throw")throw V;if(S)throw y;return a(y),V}},42599:function(w,r,n){"use strict";var e=n(85106).IteratorPrototype,a=n(28969),t=n(7539),o=n(94234),f=n(90604),V=function(){return this};w.exports=function(y,S,k,v){var i=S+" Iterator";return y.prototype=a(e,{next:t(+!v,k)}),o(y,i,!1,!0),f[i]=V,y}},2449:function(w,r,n){"use strict";var e=n(77549),a=n(62696),t=n(11478),o=n(26463),f=n(7532),V=n(42599),y=n(31658),S=n(42878),k=n(94234),v=n(16216),i=n(59173),c=n(66266),m=n(90604),d=n(85106),u=o.PROPER,s=o.CONFIGURABLE,l=d.IteratorPrototype,p=d.BUGGY_SAFARI_ITERATORS,C=c("iterator"),g="keys",h="values",N="entries",b=function(){return this};w.exports=function(B,I,L,T,A,x,E){V(L,I,T);var M=function(Y){if(Y===A&&F)return F;if(!p&&Y&&Y in R)return R[Y];switch(Y){case g:return function(){function J(){return new L(this,Y)}return J}();case h:return function(){function J(){return new L(this,Y)}return J}();case N:return function(){function J(){return new L(this,Y)}return J}()}return function(){return new L(this)}},j=I+" Iterator",P=!1,R=B.prototype,D=R[C]||R["@@iterator"]||A&&R[A],F=!p&&D||M(A),W=I==="Array"&&R.entries||D,U,K,H;if(W&&(U=y(W.call(new B)),U!==Object.prototype&&U.next&&(!t&&y(U)!==l&&(S?S(U,l):f(U[C])||i(U,C,b)),k(U,j,!0,!0),t&&(m[j]=b))),u&&A===h&&D&&D.name!==h&&(!t&&s?v(R,"name",h):(P=!0,F=function(){function X(){return a(D,this)}return X}())),A)if(K={values:M(h),keys:x?F:M(g),entries:M(N)},E)for(H in K)(p||P||!(H in R))&&i(R,H,K[H]);else e({target:I,proto:!0,forced:p||P},K);return(!t||E)&&R[C]!==F&&i(R,C,F,{name:A}),m[I]=F,K}},85106:function(w,r,n){"use strict";var e=n(41746),a=n(7532),t=n(56831),o=n(28969),f=n(31658),V=n(59173),y=n(66266),S=n(11478),k=y("iterator"),v=!1,i,c,m;[].keys&&(m=[].keys(),"next"in m?(c=f(f(m)),c!==Object.prototype&&(i=c)):v=!0);var d=!t(i)||e(function(){var u={};return i[k].call(u)!==u});d?i={}:S&&(i=o(i)),a(i[k])||V(i,k,function(){return this}),w.exports={IteratorPrototype:i,BUGGY_SAFARI_ITERATORS:v}},90604:function(w){"use strict";w.exports={}},8333:function(w,r,n){"use strict";var e=n(10475);w.exports=function(a){return e(a.length)}},76130:function(w,r,n){"use strict";var e=n(18161),a=n(41746),t=n(7532),o=n(89458),f=n(14141),V=n(26463).CONFIGURABLE,y=n(43589),S=n(35086),k=S.enforce,v=S.get,i=String,c=Object.defineProperty,m=e("".slice),d=e("".replace),u=e([].join),s=f&&!a(function(){return c(function(){},"length",{value:8}).length!==8}),l=String(String).split("String"),p=w.exports=function(C,g,h){m(i(g),0,7)==="Symbol("&&(g="["+d(i(g),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),h&&h.getter&&(g="get "+g),h&&h.setter&&(g="set "+g),(!o(C,"name")||V&&C.name!==g)&&(f?c(C,"name",{value:g,configurable:!0}):C.name=g),s&&h&&o(h,"arity")&&C.length!==h.arity&&c(C,"length",{value:h.arity});try{h&&o(h,"constructor")&&h.constructor?f&&c(C,"prototype",{writable:!1}):C.prototype&&(C.prototype=void 0)}catch(b){}var N=k(C);return o(N,"source")||(N.source=u(l,typeof g=="string"?g:"")),C};Function.prototype.toString=p(function(){function C(){return t(this)&&v(this).source||y(this)}return C}(),"toString")},32813:function(w){"use strict";var r=Math.expm1,n=Math.exp;w.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(w,r,n){"use strict";var e=n(54307),a=Math.abs,t=2220446049250313e-31,o=1/t,f=function(y){return y+o-o};w.exports=function(V,y,S,k){var v=+V,i=a(v),c=e(v);if(iS||d!==d?c*(1/0):c*d}},75988:function(w,r,n){"use strict";var e=n(23207),a=11920928955078125e-23,t=34028234663852886e22,o=11754943508222875e-54;w.exports=Math.fround||function(){function f(V){return e(V,a,t,o)}return f}()},53271:function(w){"use strict";var r=Math.log,n=Math.LOG10E;w.exports=Math.log10||function(){function e(a){return r(a)*n}return e}()},69143:function(w){"use strict";var r=Math.log;w.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(w){"use strict";w.exports=Math.sign||function(){function r(n){var e=+n;return e===0||e!==e?e:e<0?-1:1}return r}()},34606:function(w){"use strict";var r=Math.ceil,n=Math.floor;w.exports=Math.trunc||function(){function e(a){var t=+a;return(t>0?n:r)(t)}return e}()},27150:function(w,r,n){"use strict";var e=n(40224),a=n(1156),t=n(4509),o=n(91314).set,f=n(23496),V=n(52426),y=n(6647),S=n(25062),k=n(95823),v=e.MutationObserver||e.WebKitMutationObserver,i=e.document,c=e.process,m=e.Promise,d=a("queueMicrotask"),u,s,l,p,C;if(!d){var g=new f,h=function(){var b,B;for(k&&(b=c.domain)&&b.exit();B=g.get();)try{B()}catch(I){throw g.head&&u(),I}b&&b.enter()};!V&&!k&&!S&&v&&i?(s=!0,l=i.createTextNode(""),new v(h).observe(l,{characterData:!0}),u=function(){l.data=s=!s}):!y&&m&&m.resolve?(p=m.resolve(void 0),p.constructor=m,C=t(p.then,p),u=function(){C(h)}):k?u=function(){c.nextTick(h)}:(o=t(o,e),u=function(){o(h)}),d=function(b){g.head||u(),g.add(b)}}w.exports=d},48532:function(w,r,n){"use strict";var e=n(97361),a=TypeError,t=function(f){var V,y;this.promise=new f(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)};w.exports.f=function(o){return new t(o)}},89140:function(w,r,n){"use strict";var e=n(80969),a=TypeError;w.exports=function(t){if(e(t))throw new a("The method doesn't accept regular expressions");return t}},69079:function(w,r,n){"use strict";var e=n(40224),a=e.isFinite;w.exports=Number.isFinite||function(){function t(o){return typeof o=="number"&&a(o)}return t}()},43283:function(w,r,n){"use strict";var e=n(40224),a=n(41746),t=n(18161),o=n(26602),f=n(35171).trim,V=n(137),y=t("".charAt),S=e.parseFloat,k=e.Symbol,v=k&&k.iterator,i=1/S(V+"-0")!==-1/0||v&&!a(function(){S(Object(v))});w.exports=i?function(){function c(m){var d=f(o(m)),u=S(d);return u===0&&y(d,0)==="-"?-0:u}return c}():S},11540:function(w,r,n){"use strict";var e=n(40224),a=n(41746),t=n(18161),o=n(26602),f=n(35171).trim,V=n(137),y=e.parseInt,S=e.Symbol,k=S&&S.iterator,v=/^[+-]?0x/i,i=t(v.exec),c=y(V+"08")!==8||y(V+"0x16")!==22||k&&!a(function(){y(Object(k))});w.exports=c?function(){function m(d,u){var s=f(o(d));return y(s,u>>>0||(i(v,s)?16:10))}return m}():y},12752:function(w,r,n){"use strict";var e=n(14141),a=n(18161),t=n(62696),o=n(41746),f=n(84913),V=n(34220),y=n(9776),S=n(40076),k=n(26736),v=Object.assign,i=Object.defineProperty,c=a([].concat);w.exports=!v||o(function(){if(e&&v({b:1},v(i({},"a",{enumerable:!0,get:function(){function l(){i(this,"b",{value:3,enumerable:!1})}return l}()}),{b:2})).b!==1)return!0;var m={},d={},u=Symbol("assign detection"),s="abcdefghijklmnopqrst";return m[u]=7,s.split("").forEach(function(l){d[l]=l}),v({},m)[u]!==7||f(v({},d)).join("")!==s})?function(){function m(d,u){for(var s=S(d),l=arguments.length,p=1,C=V.f,g=y.f;l>p;)for(var h=k(arguments[p++]),N=C?c(f(h),C(h)):f(h),b=N.length,B=0,I;b>B;)I=N[B++],(!e||t(g,h,I))&&(s[I]=h[I]);return s}return m}():v},28969:function(w,r,n){"use strict";var e=n(39482),a=n(65854),t=n(90298),o=n(21124),f=n(54562),V=n(85158),y=n(5160),S=">",k="<",v="prototype",i="script",c=y("IE_PROTO"),m=function(){},d=function(g){return k+i+S+g+k+"/"+i+S},u=function(g){g.write(d("")),g.close();var h=g.parentWindow.Object;return g=null,h},s=function(){var g=V("iframe"),h="java"+i+":",N;return g.style.display="none",f.appendChild(g),g.src=String(h),N=g.contentWindow.document,N.open(),N.write(d("document.F=Object")),N.close(),N.F},l,p=function(){try{l=new ActiveXObject("htmlfile")}catch(h){}p=typeof document!="undefined"?document.domain&&l?u(l):s():u(l);for(var g=t.length;g--;)delete p[v][t[g]];return p()};o[c]=!0,w.exports=Object.create||function(){function C(g,h){var N;return g!==null?(m[v]=e(g),N=new m,m[v]=null,N[c]=g):N=p(),h===void 0?N:a.f(N,h)}return C}()},65854:function(w,r,n){"use strict";var e=n(14141),a=n(83411),t=n(56018),o=n(39482),f=n(96812),V=n(84913);r.f=e&&!a?Object.defineProperties:function(){function y(S,k){o(S);for(var v=f(k),i=V(k),c=i.length,m=0,d;c>m;)t.f(S,d=i[m++],v[d]);return S}return y}()},56018:function(w,r,n){"use strict";var e=n(14141),a=n(1606),t=n(83411),o=n(39482),f=n(57640),V=TypeError,y=Object.defineProperty,S=Object.getOwnPropertyDescriptor,k="enumerable",v="configurable",i="writable";r.f=e?t?function(){function c(m,d,u){if(o(m),d=f(d),o(u),typeof m=="function"&&d==="prototype"&&"value"in u&&i in u&&!u[i]){var s=S(m,d);s&&s[i]&&(m[d]=u.value,u={configurable:v in u?u[v]:s[v],enumerable:k in u?u[k]:s[k],writable:!1})}return y(m,d,u)}return c}():y:function(){function c(m,d,u){if(o(m),d=f(d),o(u),a)try{return y(m,d,u)}catch(s){}if("get"in u||"set"in u)throw new V("Accessors not supported");return"value"in u&&(m[d]=u.value),m}return c}()},54168:function(w,r,n){"use strict";var e=n(14141),a=n(62696),t=n(9776),o=n(7539),f=n(96812),V=n(57640),y=n(89458),S=n(1606),k=Object.getOwnPropertyDescriptor;r.f=e?k:function(){function v(i,c){if(i=f(i),c=V(c),S)try{return k(i,c)}catch(m){}if(y(i,c))return o(!a(t.f,i,c),i[c])}return v}()},63797:function(w,r,n){"use strict";var e=n(38817),a=n(96812),t=n(34813).f,o=n(77713),f=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],V=function(S){try{return t(S)}catch(k){return o(f)}};w.exports.f=function(){function y(S){return f&&e(S)==="Window"?V(S):t(a(S))}return y}()},34813:function(w,r,n){"use strict";var e=n(62995),a=n(90298),t=a.concat("length","prototype");r.f=Object.getOwnPropertyNames||function(){function o(f){return e(f,t)}return o}()},34220:function(w,r){"use strict";r.f=Object.getOwnPropertySymbols},31658:function(w,r,n){"use strict";var e=n(89458),a=n(7532),t=n(40076),o=n(5160),f=n(58776),V=o("IE_PROTO"),y=Object,S=y.prototype;w.exports=f?y.getPrototypeOf:function(k){var v=t(k);if(e(v,V))return v[V];var i=v.constructor;return a(i)&&v instanceof i?i.prototype:v instanceof y?S:null}},57975:function(w,r,n){"use strict";var e=n(41746),a=n(56831),t=n(38817),o=n(65693),f=Object.isExtensible,V=e(function(){f(1)});w.exports=V||o?function(){function y(S){return!a(S)||o&&t(S)==="ArrayBuffer"?!1:f?f(S):!0}return y}():f},33314:function(w,r,n){"use strict";var e=n(18161);w.exports=e({}.isPrototypeOf)},62995:function(w,r,n){"use strict";var e=n(18161),a=n(89458),t=n(96812),o=n(64210).indexOf,f=n(21124),V=e([].push);w.exports=function(y,S){var k=t(y),v=0,i=[],c;for(c in k)!a(f,c)&&a(k,c)&&V(i,c);for(;S.length>v;)a(k,c=S[v++])&&(~o(i,c)||V(i,c));return i}},84913:function(w,r,n){"use strict";var e=n(62995),a=n(90298);w.exports=Object.keys||function(){function t(o){return e(o,a)}return t}()},9776:function(w,r){"use strict";var n={}.propertyIsEnumerable,e=Object.getOwnPropertyDescriptor,a=e&&!n.call({1:2},1);r.f=a?function(){function t(o){var f=e(this,o);return!!f&&f.enumerable}return t}():n},33030:function(w,r,n){"use strict";var e=n(11478),a=n(40224),t=n(41746),o=n(53125);w.exports=e||!t(function(){if(!(o&&o<535)){var f=Math.random();__defineSetter__.call(null,f,function(){}),delete a[f]}})},42878:function(w,r,n){"use strict";var e=n(9553),a=n(56831),t=n(91029),o=n(51689);w.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var f=!1,V={},y;try{y=e(Object.prototype,"__proto__","set"),y(V,[]),f=V instanceof Array}catch(S){}return function(){function S(k,v){return t(k),o(v),a(k)&&(f?y(k,v):k.__proto__=v),k}return S}()}():void 0)},97452:function(w,r,n){"use strict";var e=n(14141),a=n(41746),t=n(18161),o=n(31658),f=n(84913),V=n(96812),y=n(9776).f,S=t(y),k=t([].push),v=e&&a(function(){var c=Object.create(null);return c[2]=2,!S(c,2)}),i=function(m){return function(d){for(var u=V(d),s=f(u),l=v&&o(u)===null,p=s.length,C=0,g=[],h;p>C;)h=s[C++],(!e||(l?h in u:S(u,h)))&&k(g,m?[h,u[h]]:u[h]);return g}};w.exports={entries:i(!0),values:i(!1)}},66628:function(w,r,n){"use strict";var e=n(82161),a=n(27806);w.exports=e?{}.toString:function(){function t(){return"[object "+a(this)+"]"}return t}()},14991:function(w,r,n){"use strict";var e=n(62696),a=n(7532),t=n(56831),o=TypeError;w.exports=function(f,V){var y,S;if(V==="string"&&a(y=f.toString)&&!t(S=e(y,f))||a(y=f.valueOf)&&!t(S=e(y,f))||V!=="string"&&a(y=f.toString)&&!t(S=e(y,f)))return S;throw new o("Can't convert object to primitive value")}},93616:function(w,r,n){"use strict";var e=n(40164),a=n(18161),t=n(34813),o=n(34220),f=n(39482),V=a([].concat);w.exports=e("Reflect","ownKeys")||function(){function y(S){var k=t.f(f(S)),v=o.f;return v?V(k,v(S)):k}return y}()},5376:function(w,r,n){"use strict";var e=n(40224);w.exports=e},91114:function(w){"use strict";w.exports=function(r){try{return{error:!1,value:r()}}catch(n){return{error:!0,value:n}}}},49669:function(w,r,n){"use strict";var e=n(40224),a=n(35973),t=n(7532),o=n(95945),f=n(43589),V=n(66266),y=n(27955),S=n(2971),k=n(11478),v=n(82709),i=a&&a.prototype,c=V("species"),m=!1,d=t(e.PromiseRejectionEvent),u=o("Promise",function(){var s=f(a),l=s!==String(a);if(!l&&v===66||k&&!(i.catch&&i.finally))return!0;if(!v||v<51||!/native code/.test(s)){var p=new a(function(h){h(1)}),C=function(N){N(function(){},function(){})},g=p.constructor={};if(g[c]=C,m=p.then(function(){})instanceof C,!m)return!0}return!l&&(y||S)&&!d});w.exports={CONSTRUCTOR:u,REJECTION_EVENT:d,SUBCLASSING:m}},35973:function(w,r,n){"use strict";var e=n(40224);w.exports=e.Promise},43827:function(w,r,n){"use strict";var e=n(39482),a=n(56831),t=n(48532);w.exports=function(o,f){if(e(o),a(f)&&f.constructor===o)return f;var V=t.f(o),y=V.resolve;return y(f),V.promise}},95044:function(w,r,n){"use strict";var e=n(35973),a=n(52019),t=n(49669).CONSTRUCTOR;w.exports=t||!a(function(o){e.all(o).then(void 0,function(){})})},77495:function(w,r,n){"use strict";var e=n(56018).f;w.exports=function(a,t,o){o in a||e(a,o,{configurable:!0,get:function(){function f(){return t[o]}return f}(),set:function(){function f(V){t[o]=V}return f}()})}},23496:function(w){"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}()},w.exports=r},35553:function(w,r,n){"use strict";var e=n(62696),a=n(39482),t=n(7532),o=n(38817),f=n(72894),V=TypeError;w.exports=function(y,S){var k=y.exec;if(t(k)){var v=e(k,y,S);return v!==null&&a(v),v}if(o(y)==="RegExp")return e(f,y,S);throw new V("RegExp#exec called on incompatible receiver")}},72894:function(w,r,n){"use strict";var e=n(62696),a=n(18161),t=n(26602),o=n(65844),f=n(1064),V=n(75130),y=n(28969),S=n(35086).get,k=n(89604),v=n(5489),i=V("native-string-replace",String.prototype.replace),c=RegExp.prototype.exec,m=c,d=a("".charAt),u=a("".indexOf),s=a("".replace),l=a("".slice),p=function(){var N=/a/,b=/b*/g;return e(c,N,"a"),e(c,b,"a"),N.lastIndex!==0||b.lastIndex!==0}(),C=f.BROKEN_CARET,g=/()??/.exec("")[1]!==void 0,h=p||g||C||k||v;h&&(m=function(){function N(b){var B=this,I=S(B),L=t(b),T=I.raw,A,x,E,M,j,P,R;if(T)return T.lastIndex=B.lastIndex,A=e(m,T,L),B.lastIndex=T.lastIndex,A;var D=I.groups,F=C&&B.sticky,W=e(o,B),U=B.source,K=0,H=L;if(F&&(W=s(W,"y",""),u(W,"g")===-1&&(W+="g"),H=l(L,B.lastIndex),B.lastIndex>0&&(!B.multiline||B.multiline&&d(L,B.lastIndex-1)!=="\n")&&(U="(?: "+U+")",H=" "+H,K++),x=new RegExp("^(?:"+U+")",W)),g&&(x=new RegExp("^"+U+"$(?!\\s)",W)),p&&(E=B.lastIndex),M=e(c,F?x:B,H),F?M?(M.input=l(M.input,K),M[0]=l(M[0],K),M.index=B.lastIndex,B.lastIndex+=M[0].length):B.lastIndex=0:p&&M&&(B.lastIndex=B.global?M.index+M[0].length:E),g&&M&&M.length>1&&e(i,M[0],x,function(){for(j=1;jb)","g");return o.exec("b").groups.a!=="b"||"b".replace(o,"$c")!=="bc"})},91029:function(w,r,n){"use strict";var e=n(1022),a=TypeError;w.exports=function(t){if(e(t))throw new a("Can't call method on "+t);return t}},1156:function(w,r,n){"use strict";var e=n(40224),a=n(14141),t=Object.getOwnPropertyDescriptor;w.exports=function(o){if(!a)return e[o];var f=t(e,o);return f&&f.value}},37309:function(w){"use strict";w.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(w,r,n){"use strict";var e=n(40224),a=n(70918),t=n(7532),o=n(2178),f=n(15837),V=n(77713),y=n(22789),S=e.Function,k=/MSIE .\./.test(f)||o&&function(){var v=e.Bun.version.split(".");return v.length<3||v[0]==="0"&&(v[1]<3||v[1]==="3"&&v[2]==="0")}();w.exports=function(v,i){var c=i?2:1;return k?function(m,d){var u=y(arguments.length,1)>c,s=t(m)?m:S(m),l=u?V(arguments,c):[],p=u?function(){a(s,this,l)}:s;return i?v(p,d):v(p)}:v}},67420:function(w,r,n){"use strict";var e=n(40164),a=n(10069),t=n(66266),o=n(14141),f=t("species");w.exports=function(V){var y=e(V);o&&y&&!y[f]&&a(y,f,{configurable:!0,get:function(){function S(){return this}return S}()})}},94234:function(w,r,n){"use strict";var e=n(56018).f,a=n(89458),t=n(66266),o=t("toStringTag");w.exports=function(f,V,y){f&&!y&&(f=f.prototype),f&&!a(f,o)&&e(f,o,{configurable:!0,value:V})}},5160:function(w,r,n){"use strict";var e=n(75130),a=n(33345),t=e("keys");w.exports=function(o){return t[o]||(t[o]=a(o))}},95046:function(w,r,n){"use strict";var e=n(11478),a=n(40224),t=n(93422),o="__core-js_shared__",f=w.exports=a[o]||t(o,{});(f.versions||(f.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(w,r,n){"use strict";var e=n(95046);w.exports=function(a,t){return e[a]||(e[a]=t||{})}},78412:function(w,r,n){"use strict";var e=n(39482),a=n(76833),t=n(1022),o=n(66266),f=o("species");w.exports=function(V,y){var S=e(V).constructor,k;return S===void 0||t(k=e(S)[f])?y:a(k)}},32086:function(w,r,n){"use strict";var e=n(41746);w.exports=function(a){return e(function(){var t=""[a]('"');return t!==t.toLowerCase()||t.split('"').length>3})}},56852:function(w,r,n){"use strict";var e=n(18161),a=n(74952),t=n(26602),o=n(91029),f=e("".charAt),V=e("".charCodeAt),y=e("".slice),S=function(v){return function(i,c){var m=t(o(i)),d=a(c),u=m.length,s,l;return d<0||d>=u?v?"":void 0:(s=V(m,d),s<55296||s>56319||d+1===u||(l=V(m,d+1))<56320||l>57343?v?f(m,d):s:v?y(m,d,d+2):(s-55296<<10)+(l-56320)+65536)}};w.exports={codeAt:S(!1),charAt:S(!0)}},33038:function(w,r,n){"use strict";var e=n(15837);w.exports=/Version\/10(?:\.\d+){1,2}(?: [\w./]+)?(?: Mobile\/\w+)? Safari\//.test(e)},34086:function(w,r,n){"use strict";var e=n(18161),a=n(10475),t=n(26602),o=n(84948),f=n(91029),V=e(o),y=e("".slice),S=Math.ceil,k=function(i){return function(c,m,d){var u=t(f(c)),s=a(m),l=u.length,p=d===void 0?" ":t(d),C,g;return s<=l||p===""?u:(C=s-l,g=V(p,S(C/p.length)),g.length>C&&(g=y(g,0,C)),i?u+g:g+u)}};w.exports={start:k(!1),end:k(!0)}},84948:function(w,r,n){"use strict";var e=n(74952),a=n(26602),t=n(91029),o=RangeError;w.exports=function(){function f(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 f}()},11775:function(w,r,n){"use strict";var e=n(35171).end,a=n(93817);w.exports=a("trimEnd")?function(){function t(){return e(this)}return t}():"".trimEnd},93817:function(w,r,n){"use strict";var e=n(26463).PROPER,a=n(41746),t=n(137),o="\u200B\x85\u180E";w.exports=function(f){return a(function(){return!!t[f]()||o[f]()!==o||e&&t[f].name!==f})}},26402:function(w,r,n){"use strict";var e=n(35171).start,a=n(93817);w.exports=a("trimStart")?function(){function t(){return e(this)}return t}():"".trimStart},35171:function(w,r,n){"use strict";var e=n(18161),a=n(91029),t=n(26602),o=n(137),f=e("".replace),V=RegExp("^["+o+"]+"),y=RegExp("(^|[^"+o+"])["+o+"]+$"),S=function(v){return function(i){var c=t(a(i));return v&1&&(c=f(c,V,"")),v&2&&(c=f(c,y,"$1")),c}};w.exports={start:S(1),end:S(2),trim:S(3)}},70640:function(w,r,n){"use strict";var e=n(82709),a=n(41746),t=n(40224),o=t.String;w.exports=!!Object.getOwnPropertySymbols&&!a(function(){var f=Symbol("symbol detection");return!o(f)||!(Object(f)instanceof Symbol)||!Symbol.sham&&e&&e<41})},75429:function(w,r,n){"use strict";var e=n(62696),a=n(40164),t=n(66266),o=n(59173);w.exports=function(){var f=a("Symbol"),V=f&&f.prototype,y=V&&V.valueOf,S=t("toPrimitive");V&&!V[S]&&o(V,S,function(k){return e(y,this)},{arity:1})}},80353:function(w,r,n){"use strict";var e=n(70640);w.exports=e&&!!Symbol.for&&!!Symbol.keyFor},91314:function(w,r,n){"use strict";var e=n(40224),a=n(70918),t=n(4509),o=n(7532),f=n(89458),V=n(41746),y=n(54562),S=n(77713),k=n(85158),v=n(22789),i=n(52426),c=n(95823),m=e.setImmediate,d=e.clearImmediate,u=e.process,s=e.Dispatch,l=e.Function,p=e.MessageChannel,C=e.String,g=0,h={},N="onreadystatechange",b,B,I,L;V(function(){b=e.location});var T=function(j){if(f(h,j)){var P=h[j];delete h[j],P()}},A=function(j){return function(){T(j)}},x=function(j){T(j.data)},E=function(j){e.postMessage(C(j),b.protocol+"//"+b.host)};(!m||!d)&&(m=function(){function M(j){v(arguments.length,1);var P=o(j)?j:l(j),R=S(arguments,1);return h[++g]=function(){a(P,void 0,R)},B(g),g}return M}(),d=function(){function M(j){delete h[j]}return M}(),c?B=function(j){u.nextTick(A(j))}:s&&s.now?B=function(j){s.now(A(j))}:p&&!i?(I=new p,L=I.port2,I.port1.onmessage=x,B=t(L.postMessage,L)):e.addEventListener&&o(e.postMessage)&&!e.importScripts&&b&&b.protocol!=="file:"&&!V(E)?(B=E,e.addEventListener("message",x,!1)):N in k("script")?B=function(j){y.appendChild(k("script"))[N]=function(){y.removeChild(this),T(j)}}:B=function(j){setTimeout(A(j),0)}),w.exports={set:m,clear:d}},37497:function(w,r,n){"use strict";var e=n(18161);w.exports=e(1 .valueOf)},74067:function(w,r,n){"use strict";var e=n(74952),a=Math.max,t=Math.min;w.exports=function(o,f){var V=e(o);return V<0?a(V+f,0):t(V,f)}},757:function(w,r,n){"use strict";var e=n(4370),a=TypeError;w.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(w,r,n){"use strict";var e=n(74952),a=n(10475),t=RangeError;w.exports=function(o){if(o===void 0)return 0;var f=e(o),V=a(f);if(f!==V)throw new t("Wrong length or index");return V}},96812:function(w,r,n){"use strict";var e=n(26736),a=n(91029);w.exports=function(t){return e(a(t))}},74952:function(w,r,n){"use strict";var e=n(34606);w.exports=function(a){var t=+a;return t!==t||t===0?0:e(t)}},10475:function(w,r,n){"use strict";var e=n(74952),a=Math.min;w.exports=function(t){var o=e(t);return o>0?a(o,9007199254740991):0}},40076:function(w,r,n){"use strict";var e=n(91029),a=Object;w.exports=function(t){return a(e(t))}},65264:function(w,r,n){"use strict";var e=n(43627),a=RangeError;w.exports=function(t,o){var f=e(t);if(f%o)throw new a("Wrong offset");return f}},43627:function(w,r,n){"use strict";var e=n(74952),a=RangeError;w.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(w,r,n){"use strict";var e=n(62696),a=n(56831),t=n(74352),o=n(4817),f=n(14991),V=n(66266),y=TypeError,S=V("toPrimitive");w.exports=function(k,v){if(!a(k)||t(k))return k;var i=o(k,S),c;if(i){if(v===void 0&&(v="default"),c=e(i,k,v),!a(c)||t(c))return c;throw new y("Can't convert object to primitive value")}return v===void 0&&(v="number"),f(k,v)}},57640:function(w,r,n){"use strict";var e=n(4370),a=n(74352);w.exports=function(t){var o=e(t,"string");return a(o)?o:o+""}},82161:function(w,r,n){"use strict";var e=n(66266),a=e("toStringTag"),t={};t[a]="z",w.exports=String(t)==="[object z]"},26602:function(w,r,n){"use strict";var e=n(27806),a=String;w.exports=function(t){if(e(t)==="Symbol")throw new TypeError("Cannot convert a Symbol value to a string");return a(t)}},78828:function(w){"use strict";var r=Math.round;w.exports=function(n){var e=r(n);return e<0?0:e>255?255:e&255}},62518:function(w){"use strict";var r=String;w.exports=function(n){try{return r(n)}catch(e){return"Object"}}},12218:function(w,r,n){"use strict";var e=n(77549),a=n(40224),t=n(62696),o=n(14141),f=n(66220),V=n(72951),y=n(46185),S=n(19870),k=n(7539),v=n(16216),i=n(57696),c=n(10475),m=n(90835),d=n(65264),u=n(78828),s=n(57640),l=n(89458),p=n(27806),C=n(56831),g=n(74352),h=n(28969),N=n(33314),b=n(42878),B=n(34813).f,I=n(7996),L=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,U=E.f,K=a.RangeError,H=y.ArrayBuffer,X=H.prototype,Y=y.DataView,J=V.NATIVE_ARRAY_BUFFER_VIEWS,ie=V.TYPED_ARRAY_TAG,ce=V.TypedArray,fe=V.TypedArrayPrototype,pe=V.isTypedArray,he="BYTES_PER_ELEMENT",te="Wrong length",Q=function(ge,Be){A(ge,Be,{configurable:!0,get:function(){function ve(){return R(this)[Be]}return ve}()})},ae=function(ge){var Be;return N(X,ge)||(Be=p(ge))==="ArrayBuffer"||Be==="SharedArrayBuffer"},ee=function(ge,Be){return pe(ge)&&!g(Be)&&Be in ge&&i(+Be)&&Be>=0},oe=function(){function re(ge,Be){return Be=s(Be),ee(ge,Be)?k(2,ge[Be]):U(ge,Be)}return re}(),ue=function(){function re(ge,Be,ve){return Be=s(Be),ee(ge,Be)&&C(ve)&&l(ve,"value")&&!l(ve,"get")&&!l(ve,"set")&&!ve.configurable&&(!l(ve,"writable")||ve.writable)&&(!l(ve,"enumerable")||ve.enumerable)?(ge[Be]=ve.value,ge):W(ge,Be,ve)}return re}();o?(J||(E.f=oe,x.f=ue,Q(fe,"buffer"),Q(fe,"byteOffset"),Q(fe,"byteLength"),Q(fe,"length")),e({target:"Object",stat:!0,forced:!J},{getOwnPropertyDescriptor:oe,defineProperty:ue}),w.exports=function(re,ge,Be){var ve=re.match(/\d+/)[0]/8,Ve=re+(Be?"Clamped":"")+"Array",ke="get"+re,ye="set"+re,Ie=a[Ve],we=Ie,xe=we&&we.prototype,Oe={},We=function(me,Ne){var Ae=R(me);return Ae.view[ke](Ne*ve+Ae.byteOffset,!0)},be=function(me,Ne,Ae){var De=R(me);De.view[ye](Ne*ve+De.byteOffset,Be?u(Ae):Ae,!0)},le=function(me,Ne){W(me,Ne,{get:function(){function Ae(){return We(this,Ne)}return Ae}(),set:function(){function Ae(De){return be(this,Ne,De)}return Ae}(),enumerable:!0})};J?f&&(we=ge(function(Ce,me,Ne,Ae){return S(Ce,xe),P(function(){return C(me)?ae(me)?Ae!==void 0?new Ie(me,d(Ne,ve),Ae):Ne!==void 0?new Ie(me,d(Ne,ve)):new Ie(me):pe(me)?M(we,me):t(I,we,me):new Ie(m(me))}(),Ce,we)}),b&&b(we,ce),L(B(Ie),function(Ce){Ce in we||v(we,Ce,Ie[Ce])}),we.prototype=xe):(we=ge(function(Ce,me,Ne,Ae){S(Ce,xe);var De=0,je=0,Ue,_e,ze;if(!C(me))ze=m(me),_e=ze*ve,Ue=new H(_e);else if(ae(me)){Ue=me,je=d(Ne,ve);var Ge=me.byteLength;if(Ae===void 0){if(Ge%ve)throw new K(te);if(_e=Ge-je,_e<0)throw new K(te)}else if(_e=c(Ae)*ve,_e+je>Ge)throw new K(te);ze=_e/ve}else return pe(me)?M(we,me):t(I,we,me);for(D(Ce,{buffer:Ue,byteOffset:je,byteLength:_e,length:ze,view:new Y(Ue)});De1?arguments[1]:void 0,p=l!==void 0,C=y(u),g,h,N,b,B,I,L,T;if(C&&!S(C))for(L=V(u,C),T=L.next,u=[];!(I=a(T,L)).done;)u.push(I.value);for(p&&s>2&&(l=e(l,arguments[2])),h=f(u),N=new(v(d))(h),b=k(N),g=0;h>g;g++)B=p?l(u[g],g):u[g],N[g]=b?i(B):+B;return N}return c}()},489:function(w,r,n){"use strict";var e=n(72951),a=n(78412),t=e.aTypedArrayConstructor,o=e.getTypedArrayConstructor;w.exports=function(f){return t(a(f,o(f)))}},33345:function(w,r,n){"use strict";var e=n(18161),a=0,t=Math.random(),o=e(1 .toString);w.exports=function(f){return"Symbol("+(f===void 0?"":f)+")_"+o(++a+t,36)}},81457:function(w,r,n){"use strict";var e=n(70640);w.exports=e&&!Symbol.sham&&typeof Symbol.iterator=="symbol"},83411:function(w,r,n){"use strict";var e=n(14141),a=n(41746);w.exports=e&&a(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42})},22789:function(w){"use strict";var r=TypeError;w.exports=function(n,e){if(n=51||!a(function(){var l=[];return l[m]=!1,l.concat()[0]!==l}),u=function(p){if(!o(p))return!1;var C=p[m];return C!==void 0?!!C:t(p)},s=!d||!v("concat");e({target:"Array",proto:!0,arity:1,forced:s},{concat:function(){function l(p){var C=f(this),g=k(C,0),h=0,N,b,B,I,L;for(N=-1,B=arguments.length;N1?arguments[1]:void 0)}return f}()})},24974:function(w,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(w,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 f(V){return a(this,V,arguments.length>1?arguments[1]:void 0)}return f}()})},35173:function(w,r,n){"use strict";var e=n(77549),a=n(67480).findIndex,t=n(91138),o="findIndex",f=!0;o in[]&&Array(1)[o](function(){f=!1}),e({target:"Array",proto:!0,forced:f},{findIndex:function(){function V(y){return a(this,y,arguments.length>1?arguments[1]:void 0)}return V}()}),t(o)},5364:function(w,r,n){"use strict";var e=n(77549),a=n(67480).find,t=n(91138),o="find",f=!0;o in[]&&Array(1)[o](function(){f=!1}),e({target:"Array",proto:!0,forced:f},{find:function(){function V(y){return a(this,y,arguments.length>1?arguments[1]:void 0)}return V}()}),t(o)},88707:function(w,r,n){"use strict";var e=n(77549),a=n(68864),t=n(97361),o=n(40076),f=n(8333),V=n(32878);e({target:"Array",proto:!0},{flatMap:function(){function y(S){var k=o(this),v=f(k),i;return t(S),i=V(k,0),i.length=a(i,k,k,v,0,1,S,arguments.length>1?arguments[1]:void 0),i}return y}()})},16576:function(w,r,n){"use strict";var e=n(77549),a=n(68864),t=n(40076),o=n(8333),f=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),v=o(k),i=V(k,0);return i.length=a(i,k,k,v,0,S===void 0?1:f(S)),i}return y}()})},21508:function(w,r,n){"use strict";var e=n(77549),a=n(75420);e({target:"Array",proto:!0,forced:[].forEach!==a},{forEach:a})},86339:function(w,r,n){"use strict";var e=n(77549),a=n(80363),t=n(52019),o=!t(function(f){Array.from(f)});e({target:"Array",stat:!0,forced:o},{from:a})},81850:function(w,r,n){"use strict";var e=n(77549),a=n(64210).includes,t=n(41746),o=n(91138),f=t(function(){return!Array(1).includes()});e({target:"Array",proto:!0,forced:f},{includes:function(){function V(y){return a(this,y,arguments.length>1?arguments[1]:void 0)}return V}()}),o("includes")},98661:function(w,r,n){"use strict";var e=n(77549),a=n(85067),t=n(64210).indexOf,o=n(42309),f=a([].indexOf),V=!!f&&1/f([1],1,-0)<0,y=V||!o("indexOf");e({target:"Array",proto:!0,forced:y},{indexOf:function(){function S(k){var v=arguments.length>1?arguments[1]:void 0;return V?f(this,k,v)||0:t(this,k,v)}return S}()})},13431:function(w,r,n){"use strict";var e=n(77549),a=n(62367);e({target:"Array",stat:!0},{isArray:a})},65809:function(w,r,n){"use strict";var e=n(96812),a=n(91138),t=n(90604),o=n(35086),f=n(56018).f,V=n(2449),y=n(77056),S=n(11478),k=n(14141),v="Array Iterator",i=o.set,c=o.getterFor(v);w.exports=V(Array,"Array",function(d,u){i(this,{type:v,target:e(d),index:0,kind:u})},function(){var d=c(this),u=d.target,s=d.index++;if(!u||s>=u.length)return d.target=void 0,y(void 0,!0);switch(d.kind){case"keys":return y(s,!1);case"values":return y(u[s],!1)}return y([s,u[s]],!1)},"values");var m=t.Arguments=t.Array;if(a("keys"),a("values"),a("entries"),!S&&k&&m.name!=="values")try{f(m,"name",{value:"values"})}catch(d){}},8611:function(w,r,n){"use strict";var e=n(77549),a=n(18161),t=n(26736),o=n(96812),f=n(42309),V=a([].join),y=t!==Object,S=y||!f("join",",");e({target:"Array",proto:!0,forced:S},{join:function(){function k(v){return V(o(this),v===void 0?",":v)}return k}()})},97246:function(w,r,n){"use strict";var e=n(77549),a=n(16934);e({target:"Array",proto:!0,forced:a!==[].lastIndexOf},{lastIndexOf:a})},48741:function(w,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 f(V){return a(this,V,arguments.length>1?arguments[1]:void 0)}return f}()})},90446:function(w,r,n){"use strict";var e=n(77549),a=n(41746),t=n(60354),o=n(12913),f=Array,V=a(function(){function y(){}return!(f.of.call(y)instanceof y)});e({target:"Array",stat:!0,forced:V},{of:function(){function y(){for(var S=0,k=arguments.length,v=new(t(this)?this:f)(k);k>S;)o(v,S,arguments[S++]);return v.length=k,v}return y}()})},61902:function(w,r,n){"use strict";var e=n(77549),a=n(98405).right,t=n(42309),o=n(82709),f=n(95823),V=!f&&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(w,r,n){"use strict";var e=n(77549),a=n(98405).left,t=n(42309),o=n(82709),f=n(95823),V=!f&&o>79&&o<83,y=V||!t("reduce");e({target:"Array",proto:!0,forced:y},{reduce:function(){function S(k){var v=arguments.length;return a(this,k,v,v>1?arguments[1]:void 0)}return S}()})},96149:function(w,r,n){"use strict";var e=n(77549),a=n(18161),t=n(62367),o=a([].reverse),f=[1,2];e({target:"Array",proto:!0,forced:String(f)===String(f.reverse())},{reverse:function(){function V(){return t(this)&&(this.length=this.length),o(this)}return V}()})},66617:function(w,r,n){"use strict";var e=n(77549),a=n(62367),t=n(60354),o=n(56831),f=n(74067),V=n(8333),y=n(96812),S=n(12913),k=n(66266),v=n(55114),i=n(77713),c=v("slice"),m=k("species"),d=Array,u=Math.max;e({target:"Array",proto:!0,forced:!c},{slice:function(){function s(l,p){var C=y(this),g=V(C),h=f(l,g),N=f(p===void 0?g:p,g),b,B,I;if(a(C)&&(b=C.constructor,t(b)&&(b===d||a(b.prototype))?b=void 0:o(b)&&(b=b[m],b===null&&(b=void 0)),b===d||b===void 0))return i(C,h,N);for(B=new(b===void 0?d:b)(u(N-h,0)),I=0;h1?arguments[1]:void 0)}return f}()})},56855:function(w,r,n){"use strict";var e=n(77549),a=n(18161),t=n(97361),o=n(40076),f=n(8333),V=n(58937),y=n(26602),S=n(41746),k=n(44815),v=n(42309),i=n(49847),c=n(56605),m=n(82709),d=n(53125),u=[],s=a(u.sort),l=a(u.push),p=S(function(){u.sort(void 0)}),C=S(function(){u.sort(null)}),g=v("sort"),h=!S(function(){if(m)return m<70;if(!(i&&i>3)){if(c)return!0;if(d)return d<603;var B="",I,L,T,A;for(I=65;I<76;I++){switch(L=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++)u.push({k:L+A,v:T})}for(u.sort(function(x,E){return E.v-x.v}),A=0;Ay(T)?1:-1}};e({target:"Array",proto:!0,forced:N},{sort:function(){function B(I){I!==void 0&&t(I);var L=o(this);if(h)return I===void 0?s(L):s(L,I);var T=[],A=f(L),x,E;for(E=0;EC-b+N;I--)v(p,I-1)}else if(N>b)for(I=C-b;I>g;I--)L=I+b-1,T=I+N-1,L in p?p[T]=p[L]:v(p,T);for(I=0;I9490626562425156e-8?o(v)+V:a(v-1+f(v-1)*f(v+1))}return S}()})},86551:function(w,r,n){"use strict";var e=n(77549),a=Math.asinh,t=Math.log,o=Math.sqrt;function f(y){var S=+y;return!isFinite(S)||S===0?S:S<0?-f(-S):t(S+o(S*S+1))}var V=!(a&&1/a(0)>0);e({target:"Math",stat:!0,forced:V},{asinh:f})},10940:function(w,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 f(V){var y=+V;return y===0?y:t((1+y)/(1-y))/2}return f}()})},73763:function(w,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 f(V){var y=+V;return a(y)*o(t(y),.3333333333333333)}return f}()})},3372:function(w,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 f(V){var y=V>>>0;return y?31-a(t(y+.5)*o):32}return f}()})},51629:function(w,r,n){"use strict";var e=n(77549),a=n(32813),t=Math.cosh,o=Math.abs,f=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*f*f))*(f/2)}return y}()})},69727:function(w,r,n){"use strict";var e=n(77549),a=n(32813);e({target:"Math",stat:!0,forced:a!==Math.expm1},{expm1:a})},27482:function(w,r,n){"use strict";var e=n(77549),a=n(75988);e({target:"Math",stat:!0},{fround:a})},7108:function(w,r,n){"use strict";var e=n(77549),a=Math.hypot,t=Math.abs,o=Math.sqrt,f=!!a&&a(1/0,NaN)!==1/0;e({target:"Math",stat:!0,arity:2,forced:f},{hypot:function(){function V(y,S){for(var k=0,v=0,i=arguments.length,c=0,m,d;v0?(d=m/c,k+=d*d):k+=m;return c===1/0?1/0:c*o(k)}return V}()})},4115:function(w,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 f(V,y){var S=65535,k=+V,v=+y,i=S&k,c=S&v;return 0|i*c+((S&k>>>16)*c+i*(S&v>>>16)<<16>>>0)}return f}()})},63953:function(w,r,n){"use strict";var e=n(77549),a=n(53271);e({target:"Math",stat:!0},{log10:a})},71377:function(w,r,n){"use strict";var e=n(77549),a=n(69143);e({target:"Math",stat:!0},{log1p:a})},63956:function(w,r,n){"use strict";var e=n(77549),a=Math.log,t=Math.LN2;e({target:"Math",stat:!0},{log2:function(){function o(f){return a(f)/t}return o}()})},90037:function(w,r,n){"use strict";var e=n(77549),a=n(54307);e({target:"Math",stat:!0},{sign:a})},46818:function(w,r,n){"use strict";var e=n(77549),a=n(41746),t=n(32813),o=Math.abs,f=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 v=+k;return o(v)<1?(t(v)-t(-v))/2:(f(v-1)-f(-v-1))*(V/2)}return S}()})},26681:function(w,r,n){"use strict";var e=n(77549),a=n(32813),t=Math.exp;e({target:"Math",stat:!0},{tanh:function(){function o(f){var V=+f,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(w,r,n){"use strict";var e=n(94234);e(Math,"Math",!0)},28876:function(w,r,n){"use strict";var e=n(77549),a=n(34606);e({target:"Math",stat:!0},{trunc:a})},36385:function(w,r,n){"use strict";var e=n(77549),a=n(11478),t=n(14141),o=n(40224),f=n(5376),V=n(18161),y=n(95945),S=n(89458),k=n(2566),v=n(33314),i=n(74352),c=n(4370),m=n(41746),d=n(34813).f,u=n(54168).f,s=n(56018).f,l=n(37497),p=n(35171).trim,C="Number",g=o[C],h=f[C],N=g.prototype,b=o.TypeError,B=V("".slice),I=V("".charCodeAt),L=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,U,K,H,X,Y;if(i(R))throw new b("Cannot convert a Symbol value to a number");if(typeof R=="string"&&R.length>2){if(R=p(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,U=49;break;case 79:case 111:W=8,U=55;break;default:return+R}for(K=B(R,2),H=K.length,X=0;XU)return NaN;return parseInt(K,W)}}return+R},A=y(C,!g(" 0o1")||!g("0b1")||g("+0x1")),x=function(P){return v(N,P)&&m(function(){l(P)})},E=function(){function j(P){var R=arguments.length<1?0:g(L(P));return x(this)?k(Object(R),this,E):R}return j}();E.prototype=N,A&&!a&&(N.constructor=E),e({global:!0,constructor:!0,wrap:!0,forced:A},{Number:E});var M=function(P,R){for(var D=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;D.length>F;F++)S(R,W=D[F])&&!S(P,W)&&s(P,W,u(R,W))};a&&h&&M(f[C],h),(A||a)&&M(f[C],g)},84295:function(w,r,n){"use strict";var e=n(77549);e({target:"Number",stat:!0,nonConfigurable:!0,nonWritable:!0},{EPSILON:Math.pow(2,-52)})},59785:function(w,r,n){"use strict";var e=n(77549),a=n(69079);e({target:"Number",stat:!0},{isFinite:a})},8846:function(w,r,n){"use strict";var e=n(77549),a=n(57696);e({target:"Number",stat:!0},{isInteger:a})},50237:function(w,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(w,r,n){"use strict";var e=n(77549),a=n(57696),t=Math.abs;e({target:"Number",stat:!0},{isSafeInteger:function(){function o(f){return a(f)&&t(f)<=9007199254740991}return o}()})},68286:function(w,r,n){"use strict";var e=n(77549);e({target:"Number",stat:!0,nonConfigurable:!0,nonWritable:!0},{MAX_SAFE_INTEGER:9007199254740991})},23940:function(w,r,n){"use strict";var e=n(77549);e({target:"Number",stat:!0,nonConfigurable:!0,nonWritable:!0},{MIN_SAFE_INTEGER:-9007199254740991})},82425:function(w,r,n){"use strict";var e=n(77549),a=n(43283);e({target:"Number",stat:!0,forced:Number.parseFloat!==a},{parseFloat:a})},82118:function(w,r,n){"use strict";var e=n(77549),a=n(11540);e({target:"Number",stat:!0,forced:Number.parseInt!==a},{parseInt:a})},7419:function(w,r,n){"use strict";var e=n(77549),a=n(18161),t=n(74952),o=n(37497),f=n(84948),V=n(41746),y=RangeError,S=String,k=Math.floor,v=a(f),i=a("".slice),c=a(1 .toFixed),m=function C(g,h,N){return h===0?N:h%2===1?C(g,h-1,N*g):C(g*g,h/2,N)},d=function(g){for(var h=0,N=g;N>=4096;)h+=12,N/=4096;for(;N>=2;)h+=1,N/=2;return h},u=function(g,h,N){for(var b=-1,B=N;++b<6;)B+=h*g[b],g[b]=B%1e7,B=k(B/1e7)},s=function(g,h){for(var N=6,b=0;--N>=0;)b+=g[N],g[N]=k(b/h),b=b%h*1e7},l=function(g){for(var h=6,N="";--h>=0;)if(N!==""||h===0||g[h]!==0){var b=S(g[h]);N=N===""?b:N+v("0",7-b.length)+b}return N},p=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:p},{toFixed:function(){function C(g){var h=o(this),N=t(g),b=[0,0,0,0,0,0],B="",I="0",L,T,A,x;if(N<0||N>20)throw new y("Incorrect fraction digits");if(h!==h)return"NaN";if(h<=-1e21||h>=1e21)return S(h);if(h<0&&(B="-",h=-h),h>1e-21)if(L=d(h*m(2,69,1))-69,T=L<0?h*m(2,-L,1):h/m(2,L,1),T*=4503599627370496,L=52-L,L>0){for(u(b,0,T),A=N;A>=7;)u(b,1e7,0),A-=7;for(u(b,m(10,A,1),0),A=L-1;A>=23;)s(b,8388608),A-=23;s(b,1<0?(x=I.length,I=B+(x<=N?"0."+v("0",N-x)+I:i(I,0,x-N)+"."+i(I,x-N))):I=B+I,I}return C}()})},42409:function(w,r,n){"use strict";var e=n(77549),a=n(18161),t=n(41746),o=n(37497),f=a(1 .toPrecision),V=t(function(){return f(1,void 0)!=="1"})||!t(function(){f({})});e({target:"Number",proto:!0,forced:V},{toPrecision:function(){function y(S){return S===void 0?f(o(this)):f(o(this),S)}return y}()})},29002:function(w,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(w,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(w,r,n){"use strict";var e=n(77549),a=n(14141),t=n(33030),o=n(97361),f=n(40076),V=n(56018);a&&e({target:"Object",proto:!0,forced:t},{__defineGetter__:function(){function y(S,k){V.f(f(this),S,{get:o(k),enumerable:!0,configurable:!0})}return y}()})},5300:function(w,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(w,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(w,r,n){"use strict";var e=n(77549),a=n(14141),t=n(33030),o=n(97361),f=n(40076),V=n(56018);a&&e({target:"Object",proto:!0,forced:t},{__defineSetter__:function(){function y(S,k){V.f(f(this),S,{set:o(k),enumerable:!0,configurable:!0})}return y}()})},98551:function(w,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(w,r,n){"use strict";var e=n(77549),a=n(56255),t=n(41746),o=n(56831),f=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(f(k)):k}return S}()})},26862:function(w,r,n){"use strict";var e=n(77549),a=n(281),t=n(12913);e({target:"Object",stat:!0},{fromEntries:function(){function o(f){var V={};return a(f,function(y,S){t(V,y,S)},{AS_ENTRIES:!0}),V}return o}()})},78686:function(w,r,n){"use strict";var e=n(77549),a=n(41746),t=n(96812),o=n(54168).f,f=n(14141),V=!f||a(function(){o(1)});e({target:"Object",stat:!0,forced:V,sham:!f},{getOwnPropertyDescriptor:function(){function y(S,k){return o(t(S),k)}return y}()})},36789:function(w,r,n){"use strict";var e=n(77549),a=n(14141),t=n(93616),o=n(96812),f=n(54168),V=n(12913);e({target:"Object",stat:!0,sham:!a},{getOwnPropertyDescriptors:function(){function y(S){for(var k=o(S),v=f.f,i=t(k),c={},m=0,d,u;i.length>m;)u=v(k,d=i[m++]),u!==void 0&&V(c,d,u);return c}return y}()})},82707:function(w,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(w,r,n){"use strict";var e=n(77549),a=n(70640),t=n(41746),o=n(34220),f=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(f(S)):[]}return y}()})},69740:function(w,r,n){"use strict";var e=n(77549),a=n(41746),t=n(40076),o=n(31658),f=n(58776),V=a(function(){o(1)});e({target:"Object",stat:!0,forced:V,sham:!f},{getPrototypeOf:function(){function y(S){return o(t(S))}return y}()})},54789:function(w,r,n){"use strict";var e=n(77549),a=n(57975);e({target:"Object",stat:!0,forced:Object.isExtensible!==a},{isExtensible:a})},49626:function(w,r,n){"use strict";var e=n(77549),a=n(41746),t=n(56831),o=n(38817),f=n(65693),V=Object.isFrozen,y=f||a(function(){V(1)});e({target:"Object",stat:!0,forced:y},{isFrozen:function(){function S(k){return!t(k)||f&&o(k)==="ArrayBuffer"?!0:V?V(k):!1}return S}()})},67660:function(w,r,n){"use strict";var e=n(77549),a=n(41746),t=n(56831),o=n(38817),f=n(65693),V=Object.isSealed,y=f||a(function(){V(1)});e({target:"Object",stat:!0,forced:y},{isSealed:function(){function S(k){return!t(k)||f&&o(k)==="ArrayBuffer"?!0:V?V(k):!1}return S}()})},87847:function(w,r,n){"use strict";var e=n(77549),a=n(37309);e({target:"Object",stat:!0},{is:a})},43619:function(w,r,n){"use strict";var e=n(77549),a=n(40076),t=n(84913),o=n(41746),f=o(function(){t(1)});e({target:"Object",stat:!0,forced:f},{keys:function(){function V(y){return t(a(y))}return V}()})},42777:function(w,r,n){"use strict";var e=n(77549),a=n(14141),t=n(33030),o=n(40076),f=n(57640),V=n(31658),y=n(54168).f;a&&e({target:"Object",proto:!0,forced:t},{__lookupGetter__:function(){function S(k){var v=o(this),i=f(k),c;do if(c=y(v,i))return c.get;while(v=V(v))}return S}()})},13045:function(w,r,n){"use strict";var e=n(77549),a=n(14141),t=n(33030),o=n(40076),f=n(57640),V=n(31658),y=n(54168).f;a&&e({target:"Object",proto:!0,forced:t},{__lookupSetter__:function(){function S(k){var v=o(this),i=f(k),c;do if(c=y(v,i))return c.set;while(v=V(v))}return S}()})},38664:function(w,r,n){"use strict";var e=n(77549),a=n(56831),t=n(29126).onFreeze,o=n(56255),f=n(41746),V=Object.preventExtensions,y=f(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(w,r,n){"use strict";var e=n(77549),a=n(56831),t=n(29126).onFreeze,o=n(56255),f=n(41746),V=Object.seal,y=f(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(w,r,n){"use strict";var e=n(77549),a=n(42878);e({target:"Object",stat:!0},{setPrototypeOf:a})},35286:function(w,r,n){"use strict";var e=n(82161),a=n(59173),t=n(66628);e||a(Object.prototype,"toString",t,{unsafe:!0})},13313:function(w,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(w,r,n){"use strict";var e=n(77549),a=n(43283);e({global:!0,forced:parseFloat!==a},{parseFloat:a})},54959:function(w,r,n){"use strict";var e=n(77549),a=n(11540);e({global:!0,forced:parseInt!==a},{parseInt:a})},34344:function(w,r,n){"use strict";var e=n(77549),a=n(62696),t=n(97361),o=n(48532),f=n(91114),V=n(281),y=n(95044);e({target:"Promise",stat:!0,forced:y},{all:function(){function S(k){var v=this,i=o.f(v),c=i.resolve,m=i.reject,d=f(function(){var u=t(v.resolve),s=[],l=0,p=1;V(k,function(C){var g=l++,h=!1;p++,a(u,v,C).then(function(N){h||(h=!0,s[g]=N,--p||c(s))},m)}),--p||c(s)});return d.error&&m(d.value),i.promise}return S}()})},60:function(w,r,n){"use strict";var e=n(77549),a=n(11478),t=n(49669).CONSTRUCTOR,o=n(35973),f=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 v(i){return this.then(void 0,i)}return v}()}),!a&&V(o)){var k=f("Promise").prototype.catch;S.catch!==k&&y(S,"catch",k,{unsafe:!0})}},7803:function(w,r,n){"use strict";var e=n(77549),a=n(11478),t=n(95823),o=n(40224),f=n(62696),V=n(59173),y=n(42878),S=n(94234),k=n(67420),v=n(97361),i=n(7532),c=n(56831),m=n(19870),d=n(78412),u=n(91314).set,s=n(27150),l=n(46122),p=n(91114),C=n(23496),g=n(35086),h=n(35973),N=n(49669),b=n(48532),B="Promise",I=N.CONSTRUCTOR,L=N.REJECTION_EVENT,T=N.SUBCLASSING,A=g.getterFor(B),x=g.set,E=h&&h.prototype,M=h,j=E,P=o.TypeError,R=o.document,D=o.process,F=b.f,W=F,U=!!(R&&R.createEvent&&o.dispatchEvent),K="unhandledrejection",H="rejectionhandled",X=0,Y=1,J=2,ie=1,ce=2,fe,pe,he,te,Q=function(ye){var Ie;return c(ye)&&i(Ie=ye.then)?Ie:!1},ae=function(ye,Ie){var we=Ie.value,xe=Ie.state===Y,Oe=xe?ye.ok:ye.fail,We=ye.resolve,be=ye.reject,le=ye.domain,se,Ce,me;try{Oe?(xe||(Ie.rejection===ce&&ge(Ie),Ie.rejection=ie),Oe===!0?se=we:(le&&le.enter(),se=Oe(we),le&&(le.exit(),me=!0)),se===ye.promise?be(new P("Promise-chain cycle")):(Ce=Q(se))?f(Ce,se,We,be):We(se)):be(we)}catch(Ne){le&&!me&&le.exit(),be(Ne)}},ee=function(ye,Ie){ye.notified||(ye.notified=!0,s(function(){for(var we=ye.reactions,xe;xe=we.get();)ae(xe,ye);ye.notified=!1,Ie&&!ye.rejection&&ue(ye)}))},oe=function(ye,Ie,we){var xe,Oe;U?(xe=R.createEvent("Event"),xe.promise=Ie,xe.reason=we,xe.initEvent(ye,!1,!0),o.dispatchEvent(xe)):xe={promise:Ie,reason:we},!L&&(Oe=o["on"+ye])?Oe(xe):ye===K&&l("Unhandled promise rejection",we)},ue=function(ye){f(u,o,function(){var Ie=ye.facade,we=ye.value,xe=re(ye),Oe;if(xe&&(Oe=p(function(){t?D.emit("unhandledRejection",we,Ie):oe(K,Ie,we)}),ye.rejection=t||re(ye)?ce:ie,Oe.error))throw Oe.value})},re=function(ye){return ye.rejection!==ie&&!ye.parent},ge=function(ye){f(u,o,function(){var Ie=ye.facade;t?D.emit("rejectionHandled",Ie):oe(H,Ie,ye.value)})},Be=function(ye,Ie,we){return function(xe){ye(Ie,xe,we)}},ve=function(ye,Ie,we){ye.done||(ye.done=!0,we&&(ye=we),ye.value=Ie,ye.state=J,ee(ye,!0))},Ve=function ke(ye,Ie,we){if(!ye.done){ye.done=!0,we&&(ye=we);try{if(ye.facade===Ie)throw new P("Promise can't be resolved itself");var xe=Q(Ie);xe?s(function(){var Oe={done:!1};try{f(xe,Ie,Be(ke,Oe,ye),Be(ve,Oe,ye))}catch(We){ve(Oe,We,ye)}}):(ye.value=Ie,ye.state=Y,ee(ye,!1))}catch(Oe){ve({done:!1},Oe,ye)}}};if(I&&(M=function(){function ke(ye){m(this,j),v(ye),f(fe,this);var Ie=A(this);try{ye(Be(Ve,Ie),Be(ve,Ie))}catch(we){ve(Ie,we)}}return ke}(),j=M.prototype,fe=function(){function ke(ye){x(this,{type:B,done:!1,notified:!1,parent:!1,reactions:new C,rejection:!1,state:X,value:void 0})}return ke}(),fe.prototype=V(j,"then",function(){function ke(ye,Ie){var we=A(this),xe=F(d(this,M));return we.parent=!0,xe.ok=i(ye)?ye:!0,xe.fail=i(Ie)&&Ie,xe.domain=t?D.domain:void 0,we.state===X?we.reactions.add(xe):s(function(){ae(xe,we)}),xe.promise}return ke}()),pe=function(){var ye=new fe,Ie=A(ye);this.promise=ye,this.resolve=Be(Ve,Ie),this.reject=Be(ve,Ie)},b.f=F=function(ye){return ye===M||ye===he?new pe(ye):W(ye)},!a&&i(h)&&E!==Object.prototype)){te=E.then,T||V(E,"then",function(){function ke(ye,Ie){var we=this;return new M(function(xe,Oe){f(te,we,xe,Oe)}).then(ye,Ie)}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(w,r,n){"use strict";var e=n(77549),a=n(11478),t=n(35973),o=n(41746),f=n(40164),V=n(7532),y=n(78412),S=n(43827),k=n(59173),v=t&&t.prototype,i=!!t&&o(function(){v.finally.call({then:function(){function m(){}return m}()},function(){})});if(e({target:"Promise",proto:!0,real:!0,forced:i},{finally:function(){function m(d){var u=y(this,f("Promise")),s=V(d);return this.then(s?function(l){return S(u,d()).then(function(){return l})}:d,s?function(l){return S(u,d()).then(function(){throw l})}:d)}return m}()}),!a&&V(t)){var c=f("Promise").prototype.finally;v.finally!==c&&k(v,"finally",c,{unsafe:!0})}},78129:function(w,r,n){"use strict";n(7803),n(34344),n(60),n(61270),n(82248),n(30347)},61270:function(w,r,n){"use strict";var e=n(77549),a=n(62696),t=n(97361),o=n(48532),f=n(91114),V=n(281),y=n(95044);e({target:"Promise",stat:!0,forced:y},{race:function(){function S(k){var v=this,i=o.f(v),c=i.reject,m=f(function(){var d=t(v.resolve);V(k,function(u){a(d,v,u).then(i.resolve,c)})});return m.error&&c(m.value),i.promise}return S}()})},82248:function(w,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(f){var V=a.f(this),y=V.reject;return y(f),V.promise}return o}()})},30347:function(w,r,n){"use strict";var e=n(77549),a=n(40164),t=n(11478),o=n(35973),f=n(49669).CONSTRUCTOR,V=n(43827),y=a("Promise"),S=t&&!f;e({target:"Promise",stat:!0,forced:t||f},{resolve:function(){function k(v){return V(S&&this===y?o:this,v)}return k}()})},82427:function(w,r,n){"use strict";var e=n(77549),a=n(70918),t=n(97361),o=n(39482),f=n(41746),V=!f(function(){Reflect.apply(function(){})});e({target:"Reflect",stat:!0,forced:V},{apply:function(){function y(S,k,v){return a(t(S),k,o(v))}return y}()})},8390:function(w,r,n){"use strict";var e=n(77549),a=n(40164),t=n(70918),o=n(9379),f=n(76833),V=n(39482),y=n(56831),S=n(28969),k=n(41746),v=a("Reflect","construct"),i=Object.prototype,c=[].push,m=k(function(){function s(){}return!(v(function(){},[],s)instanceof s)}),d=!k(function(){v(function(){})}),u=m||d;e({target:"Reflect",stat:!0,forced:u,sham:u},{construct:function(){function s(l,p){f(l),V(p);var C=arguments.length<3?l:f(arguments[2]);if(d&&!m)return v(l,p,C);if(l===C){switch(p.length){case 0:return new l;case 1:return new l(p[0]);case 2:return new l(p[0],p[1]);case 3:return new l(p[0],p[1],p[2]);case 4:return new l(p[0],p[1],p[2],p[3])}var g=[null];return t(c,g,p),new(t(o,l,g))}var h=C.prototype,N=S(y(h)?h:i),b=t(l,N,p);return y(b)?b:N}return s}()})},68260:function(w,r,n){"use strict";var e=n(77549),a=n(14141),t=n(39482),o=n(57640),f=n(56018),V=n(41746),y=V(function(){Reflect.defineProperty(f.f({},1,{value:1}),1,{value:2})});e({target:"Reflect",stat:!0,forced:y,sham:!a},{defineProperty:function(){function S(k,v,i){t(k);var c=o(v);t(i);try{return f.f(k,c,i),!0}catch(m){return!1}}return S}()})},86508:function(w,r,n){"use strict";var e=n(77549),a=n(39482),t=n(54168).f;e({target:"Reflect",stat:!0},{deleteProperty:function(){function o(f,V){var y=t(a(f),V);return y&&!y.configurable?!1:delete f[V]}return o}()})},17134:function(w,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 f(V,y){return o.f(t(V),y)}return f}()})},18972:function(w,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 f(V){return t(a(V))}return f}()})},65971:function(w,r,n){"use strict";var e=n(77549),a=n(62696),t=n(56831),o=n(39482),f=n(35892),V=n(54168),y=n(31658);function S(k,v){var i=arguments.length<3?k:arguments[2],c,m;if(o(k)===i)return k[v];if(c=V.f(k,v),c)return f(c)?c.value:c.get===void 0?void 0:a(c.get,i);if(t(m=y(k)))return S(m,v,i)}e({target:"Reflect",stat:!0},{get:S})},78623:function(w,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(w,r,n){"use strict";var e=n(77549),a=n(39482),t=n(57975);e({target:"Reflect",stat:!0},{isExtensible:function(){function o(f){return a(f),t(f)}return o}()})},56380:function(w,r,n){"use strict";var e=n(77549),a=n(93616);e({target:"Reflect",stat:!0},{ownKeys:a})},72792:function(w,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 f(V){t(V);try{var y=a("Object","preventExtensions");return y&&y(V),!0}catch(S){return!1}}return f}()})},25168:function(w,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 f(V,y){a(V),t(y);try{return o(V,y),!0}catch(S){return!1}}return f}()})},60631:function(w,r,n){"use strict";var e=n(77549),a=n(62696),t=n(39482),o=n(56831),f=n(35892),V=n(41746),y=n(56018),S=n(54168),k=n(31658),v=n(7539);function i(m,d,u){var s=arguments.length<4?m:arguments[3],l=S.f(t(m),d),p,C,g;if(!l){if(o(C=k(m)))return i(C,d,u,s);l=v(0)}if(f(l)){if(l.writable===!1||!o(s))return!1;if(p=S.f(s,d)){if(p.get||p.set||p.writable===!1)return!1;p.value=u,y.f(s,d,p)}else y.f(s,d,v(0,u))}else{if(g=l.set,g===void 0)return!1;a(g,s,u)}return!0}var c=V(function(){var m=function(){},d=y.f(new m,"a",{configurable:!0});return Reflect.set(m.prototype,"a",1,d)!==!1});e({target:"Reflect",stat:!0,forced:c},{set:i})},85177:function(w,r,n){"use strict";var e=n(14141),a=n(40224),t=n(18161),o=n(95945),f=n(2566),V=n(16216),y=n(28969),S=n(34813).f,k=n(33314),v=n(80969),i=n(26602),c=n(60425),m=n(1064),d=n(77495),u=n(59173),s=n(41746),l=n(89458),p=n(35086).enforce,C=n(67420),g=n(66266),h=n(89604),N=n(5489),b=g("match"),B=a.RegExp,I=B.prototype,L=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=m.MISSED_STICKY,W=m.UNSUPPORTED_Y,U=e&&(!D||F||h||N||s(function(){return R[b]=!1,B(P)!==P||B(R)===R||String(B(P,"i"))!=="/a/i"})),K=function(ce){for(var fe=ce.length,pe=0,he="",te=!1,Q;pe<=fe;pe++){if(Q=A(ce,pe),Q==="\\"){he+=Q+A(ce,++pe);continue}!te&&Q==="."?he+="[\\s\\S]":(Q==="["?te=!0:Q==="]"&&(te=!1),he+=Q)}return he},H=function(ce){for(var fe=ce.length,pe=0,he="",te=[],Q=y(null),ae=!1,ee=!1,oe=0,ue="",re;pe<=fe;pe++){if(re=A(ce,pe),re==="\\")re+=A(ce,++pe);else if(re==="]")ae=!1;else if(!ae)switch(!0){case re==="[":ae=!0;break;case re==="(":T(j,M(ce,pe+1))&&(pe+=2,ee=!0),he+=re,oe++;continue;case(re===">"&&ee):if(ue===""||l(Q,ue))throw new L("Invalid capture group name");Q[ue]=!0,te[te.length]=[ue,oe],ee=!1,ue="";continue}ee?ue+=re:he+=re}return[he,te]};if(o("RegExp",U)){for(var X=function(){function ie(ce,fe){var pe=k(I,this),he=v(ce),te=fe===void 0,Q=[],ae=ce,ee,oe,ue,re,ge,Be;if(!pe&&he&&te&&ce.constructor===X)return ce;if((he||k(I,ce))&&(ce=ce.source,te&&(fe=c(ae))),ce=ce===void 0?"":i(ce),fe=fe===void 0?"":i(fe),ae=ce,h&&"dotAll"in P&&(oe=!!fe&&E(fe,"s")>-1,oe&&(fe=x(fe,/s/g,""))),ee=fe,F&&"sticky"in P&&(ue=!!fe&&E(fe,"y")>-1,ue&&W&&(fe=x(fe,/y/g,""))),N&&(re=H(ce),ce=re[0],Q=re[1]),ge=f(B(ce,fe),pe?this:I,X),(oe||ue||Q.length)&&(Be=p(ge),oe&&(Be.dotAll=!0,Be.raw=X(K(ce),ee)),ue&&(Be.sticky=!0),Q.length&&(Be.groups=Q)),ce!==ae)try{V(ge,"source",ae===""?"(?:)":ae)}catch(ve){}return ge}return ie}(),Y=S(B),J=0;Y.length>J;)d(X,B,Y[J++]);I.constructor=X,X.prototype=I,u(a,"RegExp",X,{constructor:!0})}C("RegExp")},95880:function(w,r,n){"use strict";var e=n(77549),a=n(72894);e({target:"RegExp",proto:!0,forced:/./.exec!==a},{exec:a})},59978:function(w,r,n){"use strict";var e=n(40224),a=n(14141),t=n(10069),o=n(65844),f=n(41746),V=e.RegExp,y=V.prototype,S=a&&f(function(){var k=!0;try{V(".","d")}catch(l){k=!1}var v={},i="",c=k?"dgimsy":"gimsy",m=function(p,C){Object.defineProperty(v,p,{get:function(){function g(){return i+=C,!0}return g}()})},d={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};k&&(d.hasIndices="d");for(var u in d)m(u,d[u]);var s=Object.getOwnPropertyDescriptor(y,"flags").get.call(v);return s!==c||i!==c});S&&t(y,"flags",{configurable:!0,get:o})},96360:function(w,r,n){"use strict";var e=n(26463).PROPER,a=n(59173),t=n(39482),o=n(26602),f=n(41746),V=n(60425),y="toString",S=RegExp.prototype,k=S[y],v=f(function(){return k.call({source:"a",flags:"b"})!=="/a/b"}),i=e&&k.name!==y;(v||i)&&a(S,y,function(){function c(){var m=t(this),d=o(m.source),u=o(V(m));return"/"+d+"/"+u}return c}(),{unsafe:!0})},47338:function(w,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(w,r,n){"use strict";n(47338)},36:function(w,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(f){return a(this,"a","name",f)}return o}()})},30519:function(w,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(w,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(w,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(w,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(w,r,n){"use strict";var e=n(77549),a=n(85067),t=n(54168).f,o=n(10475),f=n(26602),V=n(89140),y=n(91029),S=n(93321),k=n(11478),v=a("".slice),i=Math.min,c=S("endsWith"),m=!k&&!c&&!!function(){var d=t(String.prototype,"endsWith");return d&&!d.writable}();e({target:"String",proto:!0,forced:!m&&!c},{endsWith:function(){function d(u){var s=f(y(this));V(u);var l=arguments.length>1?arguments[1]:void 0,p=s.length,C=l===void 0?p:i(o(l),p),g=f(u);return v(s,C-g.length,C)===g}return d}()})},32031:function(w,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(w,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(f){return a(this,"font","color",f)}return o}()})},21953:function(w,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(f){return a(this,"font","size",f)}return o}()})},48432:function(w,r,n){"use strict";var e=n(77549),a=n(18161),t=n(74067),o=RangeError,f=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(v){for(var i=[],c=arguments.length,m=0,d;c>m;){if(d=+arguments[m++],t(d,1114111)!==d)throw new o(d+" is not a valid code point");i[m]=d<65536?f(d):f(((d-=65536)>>10)+55296,d%1024+56320)}return y(i,"")}return k}()})},54564:function(w,r,n){"use strict";var e=n(77549),a=n(18161),t=n(89140),o=n(91029),f=n(26602),V=n(93321),y=a("".indexOf);e({target:"String",proto:!0,forced:!V("includes")},{includes:function(){function S(k){return!!~y(f(o(this)),f(t(k)),arguments.length>1?arguments[1]:void 0)}return S}()})},83560:function(w,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(w,r,n){"use strict";var e=n(56852).charAt,a=n(26602),t=n(35086),o=n(2449),f=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 v=S(this),i=v.string,c=v.index,m;return c>=i.length?f(void 0,!0):(m=e(i,c),v.index+=m.length,f(m,!1))}return k}())},63465:function(w,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(f){return a(this,"a","href",f)}return o}()})},68164:function(w,r,n){"use strict";var e=n(62696),a=n(85427),t=n(39482),o=n(1022),f=n(10475),V=n(26602),y=n(91029),S=n(4817),k=n(62970),v=n(35553);a("match",function(i,c,m){return[function(){function d(u){var s=y(this),l=o(u)?void 0:S(u,i);return l?e(l,u,s):new RegExp(u)[i](V(s))}return d}(),function(d){var u=t(this),s=V(d),l=m(c,u,s);if(l.done)return l.value;if(!u.global)return v(u,s);var p=u.unicode;u.lastIndex=0;for(var C=[],g=0,h;(h=v(u,s))!==null;){var N=V(h[0]);C[g]=N,N===""&&(u.lastIndex=k(s,f(u.lastIndex),p)),g++}return g===0?null:C}]})},58880:function(w,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(f){return a(this,f,arguments.length>1?arguments[1]:void 0)}return o}()})},54465:function(w,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(f){return a(this,f,arguments.length>1?arguments[1]:void 0)}return o}()})},97327:function(w,r,n){"use strict";var e=n(77549),a=n(18161),t=n(96812),o=n(40076),f=n(26602),V=n(8333),y=a([].push),S=a([].join);e({target:"String",stat:!0},{raw:function(){function k(v){var i=t(o(v).raw),c=V(i);if(!c)return"";for(var m=arguments.length,d=[],u=0;;){if(y(d,f(i[u++])),u===c)return S(d,"");u")!=="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:d(R,p);return W?a(W,R,F,D):a(E,i(F),R,D)}return P}(),function(P,R){var D=V(this),F=i(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 U=y(R);U||(R=i(R));var K=D.global,H;K&&(H=D.unicode,D.lastIndex=0);for(var X=[],Y;Y=s(D,F),!(Y===null||(N(X,Y),!K));){var J=i(Y[0]);J===""&&(D.lastIndex=m(F,v(D.lastIndex),H))}for(var ie="",ce=0,fe=0;fe=ce&&(ie+=B(F,ce,he)+Q,ce=he+pe.length)}return ie+B(F,ce)}]},!A||!L||T)},17337:function(w,r,n){"use strict";var e=n(62696),a=n(85427),t=n(39482),o=n(1022),f=n(91029),V=n(37309),y=n(26602),S=n(4817),k=n(35553);a("search",function(v,i,c){return[function(){function m(d){var u=f(this),s=o(d)?void 0:S(d,v);return s?e(s,d,u):new RegExp(d)[v](y(u))}return m}(),function(m){var d=t(this),u=y(m),s=c(i,d,u);if(s.done)return s.value;var l=d.lastIndex;V(l,0)||(d.lastIndex=0);var p=k(d,u);return V(d.lastIndex,l)||(d.lastIndex=l),p===null?-1:p.index}]})},98998:function(w,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(w,r,n){"use strict";var e=n(62696),a=n(18161),t=n(85427),o=n(39482),f=n(1022),V=n(91029),y=n(78412),S=n(62970),k=n(10475),v=n(26602),i=n(4817),c=n(35553),m=n(1064),d=n(41746),u=m.UNSUPPORTED_Y,s=4294967295,l=Math.min,p=a([].push),C=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"}),h="abbc".split(/(b)*/)[1]==="c"||"test".split(/(?:)/,-1).length!==4||"ab".split(/(?:ab)*/).length!==2||".".split(/(.?)(.?)/).length!==4||".".split(/()()/).length>1||"".split(/.?/).length;t("split",function(N,b,B){var I="0".split(void 0,0).length?function(L,T){return L===void 0&&T===0?[]:e(b,this,L,T)}:b;return[function(){function L(T,A){var x=V(this),E=f(T)?void 0:i(T,N);return E?e(E,T,x,A):e(I,v(x),T,A)}return L}(),function(L,T){var A=o(this),x=v(L);if(!h){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":"")+(u?"g":"y"),R=new M(u?"^(?:"+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,U=[];W1?arguments[1]:void 0,s.length)),p=f(u);return v(s,l,l+p.length)===p}return d}()})},96227:function(w,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(w,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(w,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(w,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(w,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(w,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(w,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(w,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(w,r,n){"use strict";var e=n(15388);e("asyncIterator")},9056:function(w,r,n){"use strict";var e=n(77549),a=n(40224),t=n(62696),o=n(18161),f=n(11478),V=n(14141),y=n(70640),S=n(41746),k=n(89458),v=n(33314),i=n(39482),c=n(96812),m=n(57640),d=n(26602),u=n(7539),s=n(28969),l=n(84913),p=n(34813),C=n(63797),g=n(34220),h=n(54168),N=n(56018),b=n(65854),B=n(9776),I=n(59173),L=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,U=A("hidden"),K="Symbol",H="prototype",X=F.set,Y=F.getterFor(K),J=Object[H],ie=a.Symbol,ce=ie&&ie[H],fe=a.RangeError,pe=a.TypeError,he=a.QObject,te=h.f,Q=N.f,ae=C.f,ee=B.f,oe=o([].push),ue=T("symbols"),re=T("op-symbols"),ge=T("wks"),Be=!he||!he[H]||!he[H].findChild,ve=function(se,Ce,me){var Ne=te(J,Ce);Ne&&delete J[Ce],Q(se,Ce,me),Ne&&se!==J&&Q(J,Ce,Ne)},Ve=V&&S(function(){return s(Q({},"a",{get:function(){function le(){return Q(this,"a",{value:7}).a}return le}()})).a!==7})?ve:Q,ke=function(se,Ce){var me=ue[se]=s(ce);return X(me,{type:K,tag:se,description:Ce}),V||(me.description=Ce),me},ye=function(){function le(se,Ce,me){se===J&&ye(re,Ce,me),i(se);var Ne=m(Ce);return i(me),k(ue,Ne)?(me.enumerable?(k(se,U)&&se[U][Ne]&&(se[U][Ne]=!1),me=s(me,{enumerable:u(0,!1)})):(k(se,U)||Q(se,U,u(1,s(null))),se[U][Ne]=!0),Ve(se,Ne,me)):Q(se,Ne,me)}return le}(),Ie=function(){function le(se,Ce){i(se);var me=c(Ce),Ne=l(me).concat(be(me));return W(Ne,function(Ae){(!V||t(xe,me,Ae))&&ye(se,Ae,me[Ae])}),se}return le}(),we=function(){function le(se,Ce){return Ce===void 0?s(se):Ie(s(se),Ce)}return le}(),xe=function(){function le(se){var Ce=m(se),me=t(ee,this,Ce);return this===J&&k(ue,Ce)&&!k(re,Ce)?!1:me||!k(this,Ce)||!k(ue,Ce)||k(this,U)&&this[U][Ce]?me:!0}return le}(),Oe=function(){function le(se,Ce){var me=c(se),Ne=m(Ce);if(!(me===J&&k(ue,Ne)&&!k(re,Ne))){var Ae=te(me,Ne);return Ae&&k(ue,Ne)&&!(k(me,U)&&me[U][Ne])&&(Ae.enumerable=!0),Ae}}return le}(),We=function(){function le(se){var Ce=ae(c(se)),me=[];return W(Ce,function(Ne){!k(ue,Ne)&&!k(x,Ne)&&oe(me,Ne)}),me}return le}(),be=function(se){var Ce=se===J,me=ae(Ce?re:c(se)),Ne=[];return W(me,function(Ae){k(ue,Ae)&&(!Ce||k(J,Ae))&&oe(Ne,ue[Ae])}),Ne};y||(ie=function(){function le(){if(v(ce,this))throw new pe("Symbol is not a constructor");var se=!arguments.length||arguments[0]===void 0?void 0:d(arguments[0]),Ce=E(se),me=function(){function Ne(Ae){var De=this===void 0?a:this;De===J&&t(Ne,re,Ae),k(De,U)&&k(De[U],Ce)&&(De[U][Ce]=!1);var je=u(1,Ae);try{Ve(De,Ce,je)}catch(Ue){if(!(Ue instanceof fe))throw Ue;ve(De,Ce,je)}}return Ne}();return V&&Be&&Ve(J,Ce,{configurable:!0,set:me}),ke(Ce,se)}return le}(),ce=ie[H],I(ce,"toString",function(){function le(){return Y(this).tag}return le}()),I(ie,"withoutSetter",function(le){return ke(E(le),le)}),B.f=xe,N.f=ye,b.f=Ie,h.f=Oe,p.f=C.f=We,g.f=be,j.f=function(le){return ke(M(le),le)},V&&(L(ce,"description",{configurable:!0,get:function(){function le(){return Y(this).description}return le}()}),f||I(J,"propertyIsEnumerable",xe,{unsafe:!0}))),e({global:!0,constructor:!0,wrap:!0,forced:!y,sham:!y},{Symbol:ie}),W(l(ge),function(le){P(le)}),e({target:K,stat:!0,forced:!y},{useSetter:function(){function le(){Be=!0}return le}(),useSimple:function(){function le(){Be=!1}return le}()}),e({target:"Object",stat:!0,forced:!y,sham:!V},{create:we,defineProperty:ye,defineProperties:Ie,getOwnPropertyDescriptor:Oe}),e({target:"Object",stat:!0,forced:!y},{getOwnPropertyNames:We}),R(),D(ie,K),x[U]=!0},27718:function(w,r,n){"use strict";var e=n(77549),a=n(14141),t=n(40224),o=n(18161),f=n(89458),V=n(7532),y=n(33314),S=n(26602),k=n(10069),v=n(70113),i=t.Symbol,c=i&&i.prototype;if(a&&V(i)&&(!("description"in c)||i().description!==void 0)){var m={},d=function(){function h(){var N=arguments.length<1||arguments[0]===void 0?void 0:S(arguments[0]),b=y(c,this)?new i(N):N===void 0?i():i(N);return N===""&&(m[b]=!0),b}return h}();v(d,i),d.prototype=c,c.constructor=d;var u=String(i("description detection"))==="Symbol(description detection)",s=o(c.valueOf),l=o(c.toString),p=/^Symbol\((.*)\)[^)]+$/,C=o("".replace),g=o("".slice);k(c,"description",{configurable:!0,get:function(){function h(){var N=s(this);if(f(m,N))return"";var b=l(N),B=u?g(b,7,-1):C(b,p,"$1");return B===""?void 0:B}return h}()}),e({global:!0,constructor:!0,forced:!0},{Symbol:d})}},18611:function(w,r,n){"use strict";var e=n(77549),a=n(40164),t=n(89458),o=n(26602),f=n(75130),V=n(80353),y=f("string-to-symbol-registry"),S=f("symbol-to-string-registry");e({target:"Symbol",stat:!0,forced:!V},{for:function(){function k(v){var i=o(v);if(t(y,i))return y[i];var c=a("Symbol")(i);return y[i]=c,S[c]=i,c}return k}()})},86042:function(w,r,n){"use strict";var e=n(15388);e("hasInstance")},93267:function(w,r,n){"use strict";var e=n(15388);e("isConcatSpreadable")},41664:function(w,r,n){"use strict";var e=n(15388);e("iterator")},99414:function(w,r,n){"use strict";n(9056),n(18611),n(30661),n(12183),n(93146)},30661:function(w,r,n){"use strict";var e=n(77549),a=n(89458),t=n(74352),o=n(62518),f=n(75130),V=n(80353),y=f("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(w,r,n){"use strict";var e=n(15388);e("match")},44844:function(w,r,n){"use strict";var e=n(15388);e("replace")},25030:function(w,r,n){"use strict";var e=n(15388);e("search")},96454:function(w,r,n){"use strict";var e=n(15388);e("species")},77564:function(w,r,n){"use strict";var e=n(15388);e("split")},44875:function(w,r,n){"use strict";var e=n(15388),a=n(75429);e("toPrimitive"),a()},77904:function(w,r,n){"use strict";var e=n(40164),a=n(15388),t=n(94234);a("toStringTag"),t(e("Symbol"),"Symbol")},35723:function(w,r,n){"use strict";var e=n(15388);e("unscopables")},84805:function(w,r,n){"use strict";var e=n(18161),a=n(72951),t=n(42320),o=e(t),f=a.aTypedArray,V=a.exportTypedArrayMethod;V("copyWithin",function(){function y(S,k){return o(f(this),S,k,arguments.length>2?arguments[2]:void 0)}return y}())},79305:function(w,r,n){"use strict";var e=n(72951),a=n(67480).every,t=e.aTypedArray,o=e.exportTypedArrayMethod;o("every",function(){function f(V){return a(t(this),V,arguments.length>1?arguments[1]:void 0)}return f}())},71573:function(w,r,n){"use strict";var e=n(72951),a=n(59942),t=n(757),o=n(27806),f=n(62696),V=n(18161),y=n(41746),S=e.aTypedArray,k=e.exportTypedArrayMethod,v=V("".slice),i=y(function(){var c=0;return new Int8Array(2).fill({valueOf:function(){function m(){return c++}return m}()}),c!==1});k("fill",function(){function c(m){var d=arguments.length;S(this);var u=v(o(this),0,3)==="Big"?t(m):+m;return f(a,this,u,d>1?arguments[1]:void 0,d>2?arguments[2]:void 0)}return c}(),i)},47910:function(w,r,n){"use strict";var e=n(72951),a=n(67480).filter,t=n(80936),o=e.aTypedArray,f=e.exportTypedArrayMethod;f("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(w,r,n){"use strict";var e=n(72951),a=n(67480).findIndex,t=e.aTypedArray,o=e.exportTypedArrayMethod;o("findIndex",function(){function f(V){return a(t(this),V,arguments.length>1?arguments[1]:void 0)}return f}())},48447:function(w,r,n){"use strict";var e=n(72951),a=n(67480).find,t=e.aTypedArray,o=e.exportTypedArrayMethod;o("find",function(){function f(V){return a(t(this),V,arguments.length>1?arguments[1]:void 0)}return f}())},68265:function(w,r,n){"use strict";var e=n(12218);e("Float32",function(a){return function(){function t(o,f,V){return a(this,o,f,V)}return t}()})},36030:function(w,r,n){"use strict";var e=n(12218);e("Float64",function(a){return function(){function t(o,f,V){return a(this,o,f,V)}return t}()})},57371:function(w,r,n){"use strict";var e=n(72951),a=n(67480).forEach,t=e.aTypedArray,o=e.exportTypedArrayMethod;o("forEach",function(){function f(V){a(t(this),V,arguments.length>1?arguments[1]:void 0)}return f}())},68220:function(w,r,n){"use strict";var e=n(66220),a=n(72951).exportTypedArrayStaticMethod,t=n(7996);a("from",t,e)},15745:function(w,r,n){"use strict";var e=n(72951),a=n(64210).includes,t=e.aTypedArray,o=e.exportTypedArrayMethod;o("includes",function(){function f(V){return a(t(this),V,arguments.length>1?arguments[1]:void 0)}return f}())},43398:function(w,r,n){"use strict";var e=n(72951),a=n(64210).indexOf,t=e.aTypedArray,o=e.exportTypedArrayMethod;o("indexOf",function(){function f(V){return a(t(this),V,arguments.length>1?arguments[1]:void 0)}return f}())},25888:function(w,r,n){"use strict";var e=n(12218);e("Int16",function(a){return function(){function t(o,f,V){return a(this,o,f,V)}return t}()})},35718:function(w,r,n){"use strict";var e=n(12218);e("Int32",function(a){return function(){function t(o,f,V){return a(this,o,f,V)}return t}()})},32791:function(w,r,n){"use strict";var e=n(12218);e("Int8",function(a){return function(){function t(o,f,V){return a(this,o,f,V)}return t}()})},97722:function(w,r,n){"use strict";var e=n(40224),a=n(41746),t=n(18161),o=n(72951),f=n(65809),V=n(66266),y=V("iterator"),S=e.Uint8Array,k=t(f.values),v=t(f.keys),i=t(f.entries),c=o.aTypedArray,m=o.exportTypedArrayMethod,d=S&&S.prototype,u=!a(function(){d[y].call([1])}),s=!!d&&d.values&&d[y]===d.values&&d.values.name==="values",l=function(){function p(){return k(c(this))}return p}();m("entries",function(){function p(){return i(c(this))}return p}(),u),m("keys",function(){function p(){return v(c(this))}return p}(),u),m("values",l,u||!s,{name:"values"}),m(y,l,u||!s,{name:"values"})},79088:function(w,r,n){"use strict";var e=n(72951),a=n(18161),t=e.aTypedArray,o=e.exportTypedArrayMethod,f=a([].join);o("join",function(){function V(y){return f(t(this),y)}return V}())},6075:function(w,r,n){"use strict";var e=n(72951),a=n(70918),t=n(16934),o=e.aTypedArray,f=e.exportTypedArrayMethod;f("lastIndexOf",function(){function V(y){var S=arguments.length;return a(t,o(this),S>1?[y,arguments[1]]:[y])}return V}())},46896:function(w,r,n){"use strict";var e=n(72951),a=n(67480).map,t=n(489),o=e.aTypedArray,f=e.exportTypedArrayMethod;f("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(w,r,n){"use strict";var e=n(72951),a=n(66220),t=e.aTypedArrayConstructor,o=e.exportTypedArrayStaticMethod;o("of",function(){function f(){for(var V=0,y=arguments.length,S=new(t(this))(y);y>V;)S[V]=arguments[V++];return S}return f}(),a)},349:function(w,r,n){"use strict";var e=n(72951),a=n(98405).right,t=e.aTypedArray,o=e.exportTypedArrayMethod;o("reduceRight",function(){function f(V){var y=arguments.length;return a(t(this),V,y,y>1?arguments[1]:void 0)}return f}())},72606:function(w,r,n){"use strict";var e=n(72951),a=n(98405).left,t=e.aTypedArray,o=e.exportTypedArrayMethod;o("reduce",function(){function f(V){var y=arguments.length;return a(t(this),V,y,y>1?arguments[1]:void 0)}return f}())},28292:function(w,r,n){"use strict";var e=n(72951),a=e.aTypedArray,t=e.exportTypedArrayMethod,o=Math.floor;t("reverse",function(){function f(){for(var V=this,y=a(V).length,S=o(y/2),k=0,v;k1?arguments[1]:void 0,1),C=V(l);if(d)return a(i,this,C,p);var g=this.length,h=o(C),N=0;if(h+p>g)throw new S("Wrong length");for(;Nm;)u[m]=i[m++];return u}return S}(),y)},74188:function(w,r,n){"use strict";var e=n(72951),a=n(67480).some,t=e.aTypedArray,o=e.exportTypedArrayMethod;o("some",function(){function f(V){return a(t(this),V,arguments.length>1?arguments[1]:void 0)}return f}())},81976:function(w,r,n){"use strict";var e=n(40224),a=n(85067),t=n(41746),o=n(97361),f=n(44815),V=n(72951),y=n(49847),S=n(56605),k=n(82709),v=n(53125),i=V.aTypedArray,c=V.exportTypedArrayMethod,m=e.Uint16Array,d=m&&a(m.prototype.sort),u=!!d&&!(t(function(){d(new m(2),null)})&&t(function(){d(new m(2),{})})),s=!!d&&!t(function(){if(k)return k<74;if(y)return y<67;if(S)return!0;if(v)return v<602;var p=new m(516),C=Array(516),g,h;for(g=0;g<516;g++)h=g%4,p[g]=515-g,C[g]=g-2*h+3;for(d(p,function(N,b){return(N/4|0)-(b/4|0)}),g=0;g<516;g++)if(p[g]!==C[g])return!0}),l=function(C){return function(g,h){return C!==void 0?+C(g,h)||0:h!==h?-1:g!==g?1:g===0&&h===0?1/g>0&&1/h<0?1:-1:g>h}};c("sort",function(){function p(C){return C!==void 0&&o(C),s?d(this,C):f(i(this),l(C))}return p}(),!s||u)},78651:function(w,r,n){"use strict";var e=n(72951),a=n(10475),t=n(74067),o=n(489),f=e.aTypedArray,V=e.exportTypedArrayMethod;V("subarray",function(){function y(S,k){var v=f(this),i=v.length,c=t(S,i),m=o(v);return new m(v.buffer,v.byteOffset+c*v.BYTES_PER_ELEMENT,a((k===void 0?i:t(k,i))-c))}return y}())},81664:function(w,r,n){"use strict";var e=n(40224),a=n(70918),t=n(72951),o=n(41746),f=n(77713),V=e.Int8Array,y=t.aTypedArray,S=t.exportTypedArrayMethod,k=[].toLocaleString,v=!!V&&o(function(){k.call(new V(1))}),i=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,v?f(y(this)):y(this),f(arguments))}return c}(),i)},35579:function(w,r,n){"use strict";var e=n(72951).exportTypedArrayMethod,a=n(41746),t=n(40224),o=n(18161),f=t.Uint8Array,V=f&&f.prototype||{},y=[].toString,S=o([].join);a(function(){y.call({})})&&(y=function(){function v(){return S(this)}return v}());var k=V.toString!==y;e("toString",y,k)},99683:function(w,r,n){"use strict";var e=n(12218);e("Uint16",function(a){return function(){function t(o,f,V){return a(this,o,f,V)}return t}()})},80941:function(w,r,n){"use strict";var e=n(12218);e("Uint32",function(a){return function(){function t(o,f,V){return a(this,o,f,V)}return t}()})},45338:function(w,r,n){"use strict";var e=n(12218);e("Uint8",function(a){return function(){function t(o,f,V){return a(this,o,f,V)}return t}()})},40737:function(w,r,n){"use strict";var e=n(12218);e("Uint8",function(a){return function(){function t(o,f,V){return a(this,o,f,V)}return t}()},!0)},74283:function(w,r,n){"use strict";var e=n(56255),a=n(40224),t=n(18161),o=n(13648),f=n(29126),V=n(93439),y=n(32920),S=n(56831),k=n(35086).enforce,v=n(41746),i=n(90777),c=Object,m=Array.isArray,d=c.isExtensible,u=c.isFrozen,s=c.isSealed,l=c.freeze,p=c.seal,C=!a.ActiveXObject&&"ActiveXObject"in a,g,h=function(E){return function(){function M(){return E(this,arguments.length?arguments[0]:void 0)}return M}()},N=V("WeakMap",h,y),b=N.prototype,B=t(b.set),I=function(){return e&&v(function(){var E=l([]);return B(new N,E,1),!u(E)})};if(i)if(C){g=y.getConstructor(h,"WeakMap",!0),f.enable();var L=t(b.delete),T=t(b.has),A=t(b.get);o(b,{delete:function(){function x(E){if(S(E)&&!d(E)){var M=k(this);return M.frozen||(M.frozen=new g),L(this,E)||M.frozen.delete(E)}return L(this,E)}return x}(),has:function(){function x(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 x}(),get:function(){function x(E){if(S(E)&&!d(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)&&!d(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 m(E)&&(u(E)?j=l:s(E)&&(j=p)),B(this,E,M),j&&j(E),this}return x}()})},84033:function(w,r,n){"use strict";n(74283)},82389:function(w,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(w,r,n){"use strict";n(82389)},73993:function(w,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(w,r,n){"use strict";n(73993),n(72532)},57399:function(w,r,n){"use strict";var e=n(77549),a=n(40224),t=n(27150),o=n(97361),f=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(v){f(arguments.length,1),t(o(v))}return k}()})},72532:function(w,r,n){"use strict";var e=n(77549),a=n(40224),t=n(91314).set,o=n(83827),f=a.setImmediate?o(t,!1):t;e({global:!0,bind:!0,enumerable:!0,forced:a.setImmediate!==f},{setImmediate:f})},48112:function(w,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(w,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(w,r,n){"use strict";n(48112),n(82274)},50719:function(w){"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 C=[],u=function(l){return typeof l=="number"&&!Number.isFinite(l)?{__number__:String(l)}:typeof l=="undefined"?{__undefined__:!0}:l},c=function(l,s){if(typeof s=="object"){if(s===null)return s;if(C.includes(s))return"[circular ref]";C.push(s);var i=s instanceof Error||s.code&&s.message&&s.message.includes("Error");return i?{__error__:!0,string:String(s),stack:s.stack}:Array.isArray(s)?s.map(u):s}return u(s)},m=JSON.stringify(k,c);return C=null,m},f=function(k){if(0)var C,u,c},V=function(k,C){if(0)var u,c,m},y=function(){};w.exports={subscribe:t,sendMessage:f,sendLogEntry:V,setupHotReloading:y}}},bt={};function G(w){var r=bt[w];if(r!==void 0)return r.exports;var n=bt[w]={exports:{}};return $t[w](n,n.exports,G),n.exports}(function(){G.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch(w){if(typeof window=="object")return window}}()})(),function(){G.o=function(w,r){return Object.prototype.hasOwnProperty.call(w,r)}}();var In={};(function(){"use strict";G(99414),G(27718),G(46951),G(86042),G(93267),G(41664),G(48965),G(44844),G(25030),G(96454),G(77564),G(44875),G(77904),G(35723),G(65755),G(35496),G(76604),G(24974),G(6297),G(5364),G(35173),G(16576),G(88707),G(21508),G(86339),G(81850),G(98661),G(13431),G(65809),G(8611),G(97246),G(48741),G(90446),G(509),G(61902),G(96149),G(66617),G(99883),G(56855),G(67869),G(8291),G(42811),G(97824),G(70238),G(21664),G(57348),G(98878),G(4624),G(96097),G(45022),G(79155),G(53397),G(52037),G(21698),G(20509),G(9530),G(17814),G(37812),G(86551),G(10940),G(73763),G(3372),G(51629),G(69727),G(27482),G(7108),G(4115),G(63953),G(71377),G(63956),G(90037),G(46818),G(26681),G(83646),G(28876),G(36385),G(84295),G(59785),G(8846),G(50237),G(6436),G(68286),G(23940),G(82425),G(82118),G(7419),G(42409),G(29002),G(85795),G(74722),G(5300),G(85684),G(36014),G(98551),G(66288),G(26862),G(78686),G(36789),G(82707),G(69740),G(87847),G(54789),G(49626),G(67660),G(43619),G(42777),G(13045),G(38664),G(29650),G(58176),G(35286),G(13313),G(26528),G(54959),G(78129),G(54412),G(82427),G(8390),G(68260),G(86508),G(65971),G(17134),G(18972),G(78623),G(60149),G(56380),G(72792),G(60631),G(25168),G(85177),G(95880),G(59978),G(96360),G(43108),G(37801),G(3044),G(48432),G(54564),G(58179),G(68164),G(58880),G(54465),G(97327),G(19114),G(23797),G(17337),G(53713),G(84469),G(11121),G(93073),G(50800),G(36),G(30519),G(33547),G(53426),G(32031),G(13153),G(21953),G(83560),G(63465),G(98998),G(96227),G(15483),G(86829),G(68265),G(36030),G(32791),G(25888),G(35718),G(45338),G(40737),G(99683),G(80941),G(84805),G(79305),G(71573),G(47910),G(48447),G(99662),G(57371),G(68220),G(15745),G(43398),G(97722),G(79088),G(6075),G(46896),G(47145),G(72606),G(349),G(28292),G(54890),G(66368),G(74188),G(81976),G(78651),G(81664),G(35579),G(84033),G(71863),G(55457),G(57399),G(65836),G(55776),G(16666)})(),function(){"use strict";var w=G(96524);G(21965),G(28169),G(36487),G(35739),G(33631),G(74785),G(6895),G(7455),G(58823),G(49265),G(55350),G(45503),G(36557),G(70555),G(3251),G(38265);var r=G(63560),n=G(50719),e=G(39952),a=G(29320),t=G(7570),o=G(98008),f=G(92700),V;/** + */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 v=[],i=function(u){return typeof u=="number"&&!Number.isFinite(u)?{__number__:String(u)}:typeof u=="undefined"?{__undefined__:!0}:u},c=function(u,s){if(typeof s=="object"){if(s===null)return s;if(v.includes(s))return"[circular ref]";v.push(s);var l=s instanceof Error||s.code&&s.message&&s.message.includes("Error");return l?{__error__:!0,string:String(s),stack:s.stack}:Array.isArray(s)?s.map(i):s}return i(s)},m=JSON.stringify(k,c);return v=null,m},f=function(k){if(0)var v,i,c},V=function(k,v){if(0)var i,c,m},y=function(){};w.exports={subscribe:t,sendMessage:f,sendLogEntry:V,setupHotReloading:y}}},bt={};function G(w){var r=bt[w];if(r!==void 0)return r.exports;var n=bt[w]={exports:{}};return $t[w](n,n.exports,G),n.exports}(function(){G.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch(w){if(typeof window=="object")return window}}()})(),function(){G.o=function(w,r){return Object.prototype.hasOwnProperty.call(w,r)}}();var In={};(function(){"use strict";G(99414),G(27718),G(46951),G(86042),G(93267),G(41664),G(48965),G(44844),G(25030),G(96454),G(77564),G(44875),G(77904),G(35723),G(65755),G(35496),G(76604),G(24974),G(6297),G(5364),G(35173),G(16576),G(88707),G(21508),G(86339),G(81850),G(98661),G(13431),G(65809),G(8611),G(97246),G(48741),G(90446),G(509),G(61902),G(96149),G(66617),G(99883),G(56855),G(67869),G(8291),G(42811),G(97824),G(70238),G(21664),G(57348),G(98878),G(4624),G(96097),G(45022),G(79155),G(53397),G(52037),G(21698),G(20509),G(9530),G(17814),G(37812),G(86551),G(10940),G(73763),G(3372),G(51629),G(69727),G(27482),G(7108),G(4115),G(63953),G(71377),G(63956),G(90037),G(46818),G(26681),G(83646),G(28876),G(36385),G(84295),G(59785),G(8846),G(50237),G(6436),G(68286),G(23940),G(82425),G(82118),G(7419),G(42409),G(29002),G(85795),G(74722),G(5300),G(85684),G(36014),G(98551),G(66288),G(26862),G(78686),G(36789),G(82707),G(69740),G(87847),G(54789),G(49626),G(67660),G(43619),G(42777),G(13045),G(38664),G(29650),G(58176),G(35286),G(13313),G(26528),G(54959),G(78129),G(54412),G(82427),G(8390),G(68260),G(86508),G(65971),G(17134),G(18972),G(78623),G(60149),G(56380),G(72792),G(60631),G(25168),G(85177),G(95880),G(59978),G(96360),G(43108),G(37801),G(3044),G(48432),G(54564),G(58179),G(68164),G(58880),G(54465),G(97327),G(19114),G(23797),G(17337),G(53713),G(84469),G(11121),G(93073),G(50800),G(36),G(30519),G(33547),G(53426),G(32031),G(13153),G(21953),G(83560),G(63465),G(98998),G(96227),G(15483),G(86829),G(68265),G(36030),G(32791),G(25888),G(35718),G(45338),G(40737),G(99683),G(80941),G(84805),G(79305),G(71573),G(47910),G(48447),G(99662),G(57371),G(68220),G(15745),G(43398),G(97722),G(79088),G(6075),G(46896),G(47145),G(72606),G(349),G(28292),G(54890),G(66368),G(74188),G(81976),G(78651),G(81664),G(35579),G(84033),G(71863),G(55457),G(57399),G(65836),G(55776),G(16666)})(),function(){"use strict";var w=G(96524);G(21965),G(28169),G(36487),G(35739),G(33631),G(74785),G(6895),G(7455),G(58823),G(49265),G(55350),G(45503),G(36557),G(70555),G(3251),G(38265);var r=G(63560),n=G(50719),e=G(39952),a=G(29320),t=G(7570),o=G(98008),f=G(92700),V;/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */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 C=G(91807),u=C.getRoutedComponent,c=u(y);return(0,w.createComponentVNode)(2,o.StoreProvider,{store:y,children:(0,w.createComponentVNode)(2,c)})}),k=function C(){if(document.readyState==="loading"){document.addEventListener("DOMContentLoaded",C);return}(0,f.setupGlobalEvents)(),(0,e.setupHotKeys)(),(0,a.captureExternalLinks)(),y.subscribe(S),Byond.subscribe(function(u,c){return y.dispatch({type:u,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 v=G(91807),i=v.getRoutedComponent,c=i(y);return(0,w.createComponentVNode)(2,o.StoreProvider,{store:y,children:(0,w.createComponentVNode)(2,c)})}),k=function v(){if(document.readyState==="loading"){document.addEventListener("DOMContentLoaded",v);return}(0,f.setupGlobalEvents)(),(0,e.setupHotKeys)(),(0,a.captureExternalLinks)(),y.subscribe(S),Byond.subscribe(function(i,c){return y.dispatch({type:i,payload:c})})};k()}()})();})(); diff --git a/tools/maplint/lints/any_all_access_collisions.yml b/tools/maplint/lints/any_all_access_collisions.yml new file mode 100644 index 000000000000..b28c18528989 --- /dev/null +++ b/tools/maplint/lints/any_all_access_collisions.yml @@ -0,0 +1,4 @@ +help: "/any and /all access helper types cannot be combined." +/obj/effect/mapping_helpers/airlock/access/any: + banned_neighbors: + - /obj/effect/mapping_helpers/airlock/access/all