From b0a079e2461baae2ccbfdb24f482c2025abd4604 Mon Sep 17 00:00:00 2001 From: Felix <58342752+TheLordME@users.noreply.github.com> Date: Wed, 27 Apr 2022 20:39:53 +0200 Subject: [PATCH] Adds high performance gas/heat pumps (#3923) * heat pump * quck config clicks * I forgot * performance factor setting * Heat pump power rating increase * passive flow adjustment * heatpump attackby proc * zeropoint fix and UI adjustment * Gas cooler perf reduction * reduces perf to upstream values * Un perfing for both heater and cooler, back to the original values * adds the "massive" gas pump, WIP * Fixes a merge fuckup * indents and whitespace corrections * adds power supply * circuit for the massive gas pump * _vr merge clean up * comments on atmos helpers * massive gas pump and UI * UI clean up * oh and I probably should push the bundle as well.. * adds the circuit to rnd hopefully * adds massive heatpump and its circuits * adds the circuits to the map * indention fix for js * more indentions * EVEN MORE INDENTIONS * last indention? * ICONS! * Directional and different speeds for icons --- _maps/map_files/triumph/triumph-01-deck1.dmm | 4 + .../weapons/circuitboards/circuitboards_vr.dm | 21 ++ .../atmospherics/_atmospherics_helpers.dm | 3 +- .../components/binary_devices/heat_pump.dm | 49 ++-- .../binary_devices/massive_gas_pump.dm | 186 ++++++++++++++ .../binary_devices/massive_heat_pump.dm | 230 ++++++++++++++++++ .../components/binary_devices/pump.dm | 7 +- code/modules/power/powersupply.dm | 18 ++ .../research/designs/circuits/circuits.dm | 14 ++ icons/obj/machines/massive_pumps.dmi | Bin 0 -> 11755 bytes .../tgui/interfaces/MassiveGasPump.js | 95 ++++++++ .../tgui/interfaces/MassiveHeatPump.js | 106 ++++++++ tgui/public/tgui.bundle.js | 2 +- vorestation.dme | 3 + 14 files changed, 702 insertions(+), 36 deletions(-) create mode 100644 code/modules/atmospherics/components/binary_devices/massive_gas_pump.dm create mode 100644 code/modules/atmospherics/components/binary_devices/massive_heat_pump.dm create mode 100644 code/modules/power/powersupply.dm create mode 100644 icons/obj/machines/massive_pumps.dmi create mode 100644 tgui/packages/tgui/interfaces/MassiveGasPump.js create mode 100644 tgui/packages/tgui/interfaces/MassiveHeatPump.js diff --git a/_maps/map_files/triumph/triumph-01-deck1.dmm b/_maps/map_files/triumph/triumph-01-deck1.dmm index 0b36461ae3f..5c908d2a3b4 100644 --- a/_maps/map_files/triumph/triumph-01-deck1.dmm +++ b/_maps/map_files/triumph/triumph-01-deck1.dmm @@ -7799,6 +7799,8 @@ pixel_x = 3; pixel_y = -3 }, +/obj/item/circuitboard/massive_gas_pump, +/obj/item/circuitboard/massive_heat_pump, /turf/simulated/floor/plating, /area/storage/tech) "Bs" = ( @@ -13757,6 +13759,8 @@ /obj/machinery/atmospherics/pipe/simple/hidden/aux{ dir = 4 }, +/obj/item/circuitboard/massive_heat_pump, +/obj/item/circuitboard/massive_gas_pump, /turf/simulated/floor/tiled, /area/engineering/atmos/monitoring) "Vf" = ( diff --git a/code/game/objects/items/weapons/circuitboards/circuitboards_vr.dm b/code/game/objects/items/weapons/circuitboards/circuitboards_vr.dm index e2ef5d3a96e..666512cd3d8 100644 --- a/code/game/objects/items/weapons/circuitboards/circuitboards_vr.dm +++ b/code/game/objects/items/weapons/circuitboards/circuitboards_vr.dm @@ -27,6 +27,27 @@ /obj/item/stock_parts/capacitor = 1, /obj/item/stock_parts/console_screen = 1) +//Board for the High performance gas pump +/obj/item/circuitboard/massive_gas_pump + name = T_BOARD("High performance gas pump") + build_path = /obj/machinery/atmospherics/binary/massive_gas_pump + board_type = new /datum/frame/frame_types/machine + origin_tech = list(TECH_ENGINEERING = 3, TECH_POWER = 2) + req_components = list( + /obj/item/stock_parts/matter_bin = 2, + /obj/item/stock_parts/manipulator = 2, + /obj/item/stock_parts/capacitor = 1) + +/obj/item/circuitboard/massive_heat_pump + name = T_BOARD("High performance heat pump") + build_path = /obj/machinery/atmospherics/binary/massive_heat_pump + board_type = new /datum/frame/frame_types/machine + origin_tech = list(TECH_ENGINEERING = 3, TECH_POWER = 2) + req_components = list( + /obj/item/stock_parts/matter_bin = 1, + /obj/item/stock_parts/micro_laser = 2, + /obj/item/stock_parts/capacitor = 2) + // Board for the thermal regulator in airconditioner_vr.dm /obj/item/circuitboard/thermoregulator name = T_BOARD("thermal regulator") diff --git a/code/modules/atmospherics/_atmospherics_helpers.dm b/code/modules/atmospherics/_atmospherics_helpers.dm index 5ea0ad123cc..b01a070b0e7 100644 --- a/code/modules/atmospherics/_atmospherics_helpers.dm +++ b/code/modules/atmospherics/_atmospherics_helpers.dm @@ -36,7 +36,7 @@ //Calculate the amount of energy required and limit transfer_moles based on available power var/specific_power = calculate_specific_power(source, sink)/ATMOS_PUMP_EFFICIENCY //this has to be calculated before we modify any gas mixtures - if (!isnull(available_power) && specific_power > 0) + if (!isnull(available_power) && specific_power > 0)//specific_power > 0 means we need to use power to move moles, otherwise we can get away with just letting it flow passive transfer_moles = min(transfer_moles, available_power / specific_power) if (transfer_moles < MINIMUM_MOLES_TO_PUMP) //if we cant transfer enough gas just stop to avoid further processing @@ -48,6 +48,7 @@ A.last_flow_rate = (transfer_moles/source.total_moles)*source.volume //group_multiplier gets divided out here if (A.debug) + A.visible_message("[A]: power avaiable to move gases: [available_power] W") A.visible_message("[A]: source entropy: [round(source.specific_entropy(), 0.01)] J/Kmol --> sink entropy: [round(sink.specific_entropy(), 0.01)] J/Kmol") A.visible_message("[A]: specific entropy change = [round(sink.specific_entropy() - source.specific_entropy(), 0.01)] J/Kmol") A.visible_message("[A]: specific power = [round(specific_power, 0.1)] W/mol") diff --git a/code/modules/atmospherics/components/binary_devices/heat_pump.dm b/code/modules/atmospherics/components/binary_devices/heat_pump.dm index 7bab68c165f..43c814bd832 100644 --- a/code/modules/atmospherics/components/binary_devices/heat_pump.dm +++ b/code/modules/atmospherics/components/binary_devices/heat_pump.dm @@ -25,13 +25,12 @@ var/frequency = 0 var/id = null var/datum/radio_frequency/radio_connection - */ + */ var/target_temp = T20C var/lowest_temp = TCMB - ///Need to bottle it somewhere, the sun's core has 15 million kelvin - var/max_temp = 99999999 + var/max_temp = 99999999//Need to bottle it somewhere, the sun's core has 15 million kelvin - var/on = FALSE + var/on = 0 var/efficiency = 0 /obj/machinery/atmospherics/binary/heat_pump/CtrlClick(mob/user) @@ -104,15 +103,15 @@ if (!W.is_wrench()) return ..() if (!(stat & NOPOWER) && use_power) - to_chat(user, SPAN_WARNING("You cannot unwrench this [src], turn it off first.")) - return TRUE + to_chat(user, "You cannot unwrench this [src], turn it off first.") + return 1 add_fingerprint(user) playsound(src, W.usesound, 50, 1) - to_chat(user, SPAN_NOTICE("You begin to unfasten \the [src]...")) + to_chat(user, "You begin to unfasten \the [src]...") if (do_after(user, 40 * W.toolspeed)) user.visible_message( \ - SPAN_NOTICE("\The [user] unfastens \the [src]."), \ - SPAN_NOTICE("You have unfastened \the [src]."), \ + "\The [user] unfastens \the [src].", \ + "You have unfastened \the [src].", \ "You hear ratchet.") deconstruct() @@ -136,16 +135,9 @@ return //If there is no air1 or 2 the temperature is assumed 0 Kelvin which allows for - if( (air1.temperature < 1) || (air2.temperature < 1)) + if((air1.temperature < 1) || (air2.temperature < 1)) return - if((air2.temperature <= target_temp+0.1) && (air2.temperature >= target_temp-0.1)) - return //We are close enough to our target temp that its not worth the hassle - - if(check_passive_opportunity()) - handle_passive_flow() - return //No need to pump while there is passive flow occuring - //Now we are at the point where we need to actively pump efficiency = get_thermal_efficency() var/energy_transfered = 0 @@ -154,15 +146,14 @@ energy_transfered = clamp(air2.get_thermal_energy_change(target_temp),performance_factor*power_rating,-performance_factor*power_rating) var/power_draw = abs(energy_transfered/performance_factor) - //Only adds the energy actually removed from air one to air two(- infront of air1 because energy was removed) - air2.add_thermal_energy(-air1.add_thermal_energy(-energy_transfered*efficiency)) - if(power_draw >= 0) + air2.add_thermal_energy(-air1.add_thermal_energy(-energy_transfered*efficiency))//only adds the energy actually removed from air one to air two(- infront of air1 because energy was removed) + if (power_draw >= 0) last_power_draw = power_draw use_power(power_draw) if(network1) - network1.update = TRUE + network1.update = 1 if(network2) - network2.update = TRUE + network2.update = 1 /obj/machinery/atmospherics/binary/heat_pump/proc/get_thermal_efficency() if((target_temp < air2.temperature)) @@ -183,13 +174,12 @@ air2.temperature = new_temperature /obj/machinery/atmospherics/binary/heat_pump/proc/check_passive_opportunity() - //Little offsets to prevent just constant passive flow for minor temperature differences - if((target_temp < air2.temperature) && (air1.temperature < air2.temperature - 5)) - return TRUE - if((target_temp > air2.temperature) && (air1.temperature > air2.temperature + 5)) - return TRUE - return FALSE - + if((target_temp < air2.temperature) && (air1.temperature < air2.temperature - 5))//Little offsets to prevent just constant passive flow for minor temperature differences + return TRUE + if((target_temp > air2.temperature) && (air1.temperature > air2.temperature + 5)) + return TRUE + return FALSE + /obj/machinery/atmospherics/binary/heat_pump/ui_interact(mob/user, datum/tgui/ui) ui = SStgui.try_update_ui(user, src, ui) if(!ui) @@ -206,6 +196,7 @@ data["highest_temp"] = max_temp data["efficency"] = efficiency + return data /obj/machinery/atmospherics/binary/heat_pump/ui_state(mob/user) diff --git a/code/modules/atmospherics/components/binary_devices/massive_gas_pump.dm b/code/modules/atmospherics/components/binary_devices/massive_gas_pump.dm new file mode 100644 index 00000000000..b98531beb54 --- /dev/null +++ b/code/modules/atmospherics/components/binary_devices/massive_gas_pump.dm @@ -0,0 +1,186 @@ +/** + * Massive gas pumps are wired, clunky machines that can use a dynamic amount of power to + * do the job of normal gas pumps + */ +#define MAX_POWER_FOR_MASSIVE 100000000 +/obj/machinery/atmospherics/binary/massive_gas_pump + name = "High performance gas pump" + + + use_power = USE_POWER_OFF + idle_power_usage = 150 //internal circuitry, friction losses and stuff + power_rating = 0 //7500 W ~ 10 HP + var/target_pressure = ONE_ATMOSPHERE + + + var/max_pressure_setting = 15000 //kPa + + icon = 'icons/obj/machines/massive_pumps.dmi' + icon_state = "pump" + pipe_flags = PIPING_DEFAULT_LAYER_ONLY|PIPING_ONE_PER_TURF + anchored = 1 + density = 1 + circuit = /obj/item/circuitboard/massive_gas_pump + + var/power_level = MAX_POWER_FOR_MASSIVE//So we can limit the power we work with and + //dont just have a stupid pump that drains all power + + var/obj/machinery/power/powersupply/power_machine = null//for funky massive power machines + //if its not null the machine attempts to draw from the grid the power machinery is connected to + //see examples in the file "code\modules\atmospherics\components\binary_devices\massive_gas_pump.dm" + +/obj/machinery/atmospherics/binary/massive_gas_pump/Initialize(mapload) + . = ..() + power_machine = new(src) + + on_construction("#000", PIPING_LAYER_DEFAULT) + air1.volume = ATMOS_DEFAULT_VOLUME_PUMP * 50//give it a much larger volume + air2.volume = ATMOS_DEFAULT_VOLUME_PUMP * 50//default is 200 L we give it 1000 L or 1m³ + + desc = initial(desc) + " Its outlet port is to the [dir2text(dir)]." + default_apply_parts() + update_icon() + // TODO - Make these in actual icon states so its not silly like this + var/image/I = image(icon = icon, icon_state = "algae-pipe-overlay", dir = dir) + I.color = PIPE_COLOR_GREY + overlays += I + I = image(icon = icon, icon_state = "algae-pipe-overlay", dir = GLOB.reverse_dir[dir]) + I.color = PIPE_COLOR_GREY + overlays += I + +/obj/machinery/atmospherics/binary/massive_gas_pump/Destroy() + . = ..() + qdel(power_machine) + +/obj/machinery/atmospherics/binary/massive_gas_pump/process(delta_time) + if(!network1 || !network2) + build_network()//built networks if we are missing them + network1?.update = 1 + network2?.update = 1 + return + if((stat & (NOPOWER|BROKEN)) || !use_power) + return + + if(!power_machine || !power_machine.powernet) + if(!power_machine || !power_machine.connect_to_network())//returns 0 if it fails to find a + return//make sure we are connected to a powernet + + power_rating = power_machine.surplus()//update power rateing to what ever is avaiable + power_rating = clamp(power_rating, 0, power_level) + + if(power_rating <= 0) + return//no point in continuing if we dont have any power + + var/power_draw = -1 + var/pressure_delta = target_pressure - air2.return_pressure() + + if(pressure_delta > 0.01 && air1.temperature > 0) + //Figure out how much gas to transfer to meet the target pressure. + var/transfer_moles = calculate_transfer_moles(air1, air2, pressure_delta, (network2)? network2.volume : 0) + power_draw = pump_gas(src, air1, air2, transfer_moles, power_rating) + + if (power_draw >= 0) + last_power_draw = power_draw + + power_machine.draw_power(power_draw) + if(network1) + network1.update = 1 + + if(network2) + network2.update = 1 + + return 1 + +/obj/machinery/atmospherics/binary/massive_gas_pump/attackby(obj/item/W as obj, mob/user as mob) + add_fingerprint(user) + if(default_deconstruction_screwdriver(user, W)) + return + if(default_deconstruction_crowbar(user, W)) + return + if(default_part_replacement(user, W)) + return + else + to_chat(user, SPAN_NOTICE("You cannot insert this item into \the [src]!")) + return + +/obj/machinery/atmospherics/binary/massive_gas_pump/update_icon() + if(inoperable() || !anchored || !power_machine.powernet) + icon_state = "pump" + else if(use_power) + switch(last_power_draw) + if(1 to (1 MEGAWATTS)) + icon_state = "pump_1" + if((1 MEGAWATTS) to (10 MEGAWATTS)) + icon_state = "pump_2" + if((10 MEGAWATTS) to MAX_POWER_FOR_MASSIVE) + icon_state = "pump_3" + else + icon_state = "pump" + return TRUE + +/obj/machinery/atmospherics/binary/massive_gas_pump/ui_interact(mob/user, datum/tgui/ui) + if(stat & (BROKEN|NOPOWER)) + return FALSE + ui = SStgui.try_update_ui(user, src, ui) + if(!ui) + ui = new(user, src, "MassiveGasPump", name) + ui.open() + +//This is the data which will be sent to the ui +/obj/machinery/atmospherics/binary/massive_gas_pump/ui_data(mob/user) + var/list/data = list() + + data = list( + "on" = use_power, + "pressure_set" = round(target_pressure*100), + "max_pressure" = max_pressure_setting, + "power_level" = power_level, + "last_flow_rate" = round(last_flow_rate*10), + "last_power_draw" = round(last_power_draw), + "max_power_draw" = MAX_POWER_FOR_MASSIVE, + ) + + return data + +/obj/machinery/atmospherics/binary/massive_gas_pump/attack_hand(mob/user) + if(..()) + return + add_fingerprint(usr) + if(!allowed(user)) + to_chat(user, SPAN_WARNING("Access denied.")) + return + ui_interact(user) + +/obj/machinery/atmospherics/binary/massive_gas_pump/ui_act(action, params) + if(..()) + return TRUE + + switch(action) + if("power") + update_use_power(!use_power) + . = TRUE + if("set_press") + var/press = params["press"] + switch(press) + if("min") + target_pressure = 0 + if("max") + target_pressure = max_pressure_setting + if("set") + var/new_pressure = input(usr,"Enter new output pressure (0-[max_pressure_setting]kPa)","Pressure control",src.target_pressure) as num + src.target_pressure = between(0, new_pressure, max_pressure_setting) + . = TRUE + if("set_pow") + var/pow = params["pow"] + switch(pow) + if("min") + power_level = 0 + if("max") + power_level = MAX_POWER_FOR_MASSIVE + if("set") + var/new_power_level = input(usr,"Enter new power level (0-10 GW)","Power control",src.power_level) as num + src.power_level = between(0, new_power_level, MAX_POWER_FOR_MASSIVE) + . = TRUE + + update_icon() + diff --git a/code/modules/atmospherics/components/binary_devices/massive_heat_pump.dm b/code/modules/atmospherics/components/binary_devices/massive_heat_pump.dm new file mode 100644 index 00000000000..baaeaaae5af --- /dev/null +++ b/code/modules/atmospherics/components/binary_devices/massive_heat_pump.dm @@ -0,0 +1,230 @@ +/** + * Massive heat pumps are wired, clunky machines that can use a dynamic amount of power to + * do the job of normal heat pumps + */ + +#define EFFICENCY_MULT 1 +#define EFFICENCY_LIMIT_MULT 1 + + +/obj/machinery/atmospherics/binary/massive_heat_pump + name = "High performance heat pump" + use_power = USE_POWER_OFF + idle_power_usage = 150 + power_rating = MAX_POWER_FOR_MASSIVE + var/target_temp = T20C + var/min_heat_setting = TCMB + var/max_heat_setting = 99999999 + + icon = 'icons/obj/machines/massive_pumps.dmi' + icon_state = "pump" + pipe_flags = PIPING_DEFAULT_LAYER_ONLY|PIPING_ONE_PER_TURF + anchored = 1 + density = 1 + circuit = /obj/item/circuitboard/massive_heat_pump + + var/power_level = MAX_POWER_FOR_MASSIVE//So we can limit the power we work with and + //dont just have a stupid pump that drains all power + + var/obj/machinery/power/powersupply/power_machine //for funky massive power machines + //if its not null the machine attempts to draw from the grid the power machinery is connected to + //see examples in the file "code\modules\atmospherics\components\binary_devices\massive_heat_pump.dm" + var/on = 0 + var/efficiency = 0 + +/obj/machinery/atmospherics/binary/massive_heat_pump/Initialize(mapload) + . = ..() + power_machine = new(src) + + on_construction("#000", PIPING_LAYER_DEFAULT) + air1.volume = ATMOS_DEFAULT_VOLUME_PUMP * 50//give it a much larger volume + air2.volume = ATMOS_DEFAULT_VOLUME_PUMP * 50//default is 200 L we give it 1000 L or 1m³ + + desc = initial(desc) + " Its outlet port is to the [dir2text(dir)]." + default_apply_parts() + update_icon() + // TODO - Make these in actual icon states so its not silly like this + var/image/I = image(icon = icon, icon_state = "algae-pipe-overlay", dir = dir) + I.color = PIPE_COLOR_GREY + overlays += I + I = image(icon = icon, icon_state = "algae-pipe-overlay", dir = GLOB.reverse_dir[dir]) + I.color = PIPE_COLOR_GREY + overlays += I + +/obj/machinery/atmospherics/binary/massive_heat_pump/Destroy() + . = ..() + qdel(power_machine) + +/obj/machinery/atmospherics/binary/massive_heat_pump/process(delta_time) + if(!network1 || !network2) + build_network()//built networks if we are missing them + network1?.update = 1 + network2?.update = 1 + return + if((stat & (NOPOWER|BROKEN)) || !use_power) + return + + if(!power_machine || !power_machine.powernet) + if(!power_machine || !power_machine.connect_to_network())//returns 0 if it fails to find a + return//make sure we are connected to a powernet + + power_rating = power_machine.surplus()//update power rateing to what ever is avaiable + power_rating = clamp(power_rating, 0, power_level) + + if(power_rating <= 0) + return//no point in continuing if we dont have any power + + if(!air1 || !air2) + return + + //If there is no air1 or 2 the temperature is assumed 0 Kelvin which allows for + if((air1.temperature < 1) || (air2.temperature < 1)) + return + + var/power_draw = -1 + //Now we are at the point where we need to actively pump + efficiency = get_thermal_efficency() + var/energy_transfered = 0 + CACHE_VSC_PROP(atmos_vsc, /atmos/heatpump/performance_factor, performance_factor) + + energy_transfered = clamp(air2.get_thermal_energy_change(target_temp),performance_factor*power_rating,-performance_factor*power_rating) + + power_draw = abs(energy_transfered/performance_factor) + air2.add_thermal_energy(-air1.add_thermal_energy(-energy_transfered*efficiency))//only adds the energy actually removed from air one to air two(- infront of air1 because energy was removed) + + if (power_draw >= 0) + last_power_draw = power_draw + + power_machine.draw_power(power_draw) + if(network1) + network1.update = 1 + + if(network2) + network2.update = 1 + + return 1 + +/obj/machinery/atmospherics/binary/massive_heat_pump/proc/get_thermal_efficency() + if((target_temp < air2.temperature)) + return clamp((air2.temperature / air1.temperature) * EFFICENCY_MULT, 0, 1 * EFFICENCY_LIMIT_MULT) + else if((target_temp > air2.temperature)) + return clamp((air1.temperature / air2.temperature) * EFFICENCY_MULT, 0, 1 * EFFICENCY_LIMIT_MULT) + +/obj/machinery/atmospherics/binary/massive_heat_pump/proc/handle_passive_flow() + var/air_heat_capacity = air1.heat_capacity() + var/other_air_heat_capacity = air2.heat_capacity() + var/combined_heat_capacity = other_air_heat_capacity + air_heat_capacity + + if(combined_heat_capacity > 0) + var/combined_energy = air1.temperature*other_air_heat_capacity + air_heat_capacity*air2.temperature + + var/new_temperature = combined_energy/combined_heat_capacity + air1.temperature = new_temperature + air2.temperature = new_temperature + +/obj/machinery/atmospherics/binary/massive_heat_pump/proc/check_passive_opportunity() + if((target_temp < air2.temperature) && (air1.temperature < air2.temperature - 5))//Little offsets to prevent just constant passive flow for minor temperature differences + return TRUE + if((target_temp > air2.temperature) && (air1.temperature > air2.temperature + 5)) + return TRUE + return FALSE + +/obj/machinery/atmospherics/binary/massive_heat_pump/attackby(obj/item/W as obj, mob/user as mob) + add_fingerprint(user) + if(default_deconstruction_screwdriver(user, W)) + return + if(default_deconstruction_crowbar(user, W)) + return + if(default_part_replacement(user, W)) + return + else + to_chat(user, SPAN_NOTICE("You cannot insert this item into \the [src]!")) + return + +/obj/machinery/atmospherics/binary/massive_heat_pump/update_icon() + if(inoperable() || !anchored || !power_machine.powernet) + icon_state = "pump" + else if(use_power) + switch(last_power_draw) + if(1 to (1 MEGAWATTS)) + icon_state = "heat_1" + if((1 MEGAWATTS) to (10 MEGAWATTS)) + icon_state = "heat_2" + if((10 MEGAWATTS) to MAX_POWER_FOR_MASSIVE) + icon_state = "heat_3" + else + icon_state = "pump" + return TRUE + +/obj/machinery/atmospherics/binary/massive_heat_pump/ui_interact(mob/user, datum/tgui/ui) + if(stat & (BROKEN|NOPOWER)) + return FALSE + ui = SStgui.try_update_ui(user, src, ui) + if(!ui) + ui = new(user, src, "MassiveHeatPump", name) + ui.open() + +//This is the data which will be sent to the ui +/obj/machinery/atmospherics/binary/massive_heat_pump/ui_data(mob/user) + var/list/data = list() + + data = list( + "on" = use_power, + "target_temp" = target_temp, + "highest_temp" = max_heat_setting, + "lowest_temp" = min_heat_setting, + "power_level" = power_level, + "current_temp" = air2.temperature, + "sink_temp" = air1.temperature, + "last_power_draw" = round(last_power_draw), + "max_power_draw" = MAX_POWER_FOR_MASSIVE, + "efficiency" = efficiency, + ) + + return data + +/obj/machinery/atmospherics/binary/massive_heat_pump/attack_hand(mob/user) + if(..()) + return + add_fingerprint(usr) + if(!allowed(user)) + to_chat(user, SPAN_WARNING("Access denied.")) + return + ui_interact(user) + +/obj/machinery/atmospherics/binary/massive_heat_pump/ui_act(action, params) + if(..()) + return TRUE + + switch(action) + if("power") + update_use_power(!use_power) + . = TRUE + if("set_temp") + var/temp = params["temp"] + switch(temp) + if("min") + src.target_temp = min_heat_setting + if("max") + src.target_temp = max_heat_setting + if("set") + src.target_temp = input(usr,"Enter new target Temperature","Temperature controll",src.target_temp) as num + src.target_temp = between(min_heat_setting, target_temp, max_heat_setting) + . = TRUE + if("set_pow") + var/pow = params["pow"] + switch(pow) + if("min") + power_level = 0 + if("max") + power_level = MAX_POWER_FOR_MASSIVE + if("set") + var/new_power_level = input(usr,"Enter new power level (0-10 GW)","Power control",src.power_level) as num + src.power_level = between(0, new_power_level, MAX_POWER_FOR_MASSIVE) + . = TRUE + + update_icon() + + +#undef EFFICENCY_MULT +#undef EFFICENCY_LIMIT_MULT diff --git a/code/modules/atmospherics/components/binary_devices/pump.dm b/code/modules/atmospherics/components/binary_devices/pump.dm index 5b7d438c8b8..afe7869104b 100644 --- a/code/modules/atmospherics/components/binary_devices/pump.dm +++ b/code/modules/atmospherics/components/binary_devices/pump.dm @@ -70,6 +70,8 @@ Thus, the two variables affect pump operation are set in New(): . = ..() air1.volume = ATMOS_DEFAULT_VOLUME_PUMP air2.volume = ATMOS_DEFAULT_VOLUME_PUMP + if(frequency) + set_frequency(frequency) /obj/machinery/atmospherics/binary/pump/Destroy() unregister_radio(src, frequency) @@ -195,11 +197,6 @@ Thus, the two variables affect pump operation are set in New(): return data -/obj/machinery/atmospherics/binary/pump/Initialize(mapload) - . = ..() - if(frequency) - set_frequency(frequency) - /obj/machinery/atmospherics/binary/pump/receive_signal(datum/signal/signal) if(!signal.data["tag"] || (signal.data["tag"] != id) || (signal.data["sigtype"]!="command")) return FALSE diff --git a/code/modules/power/powersupply.dm b/code/modules/power/powersupply.dm new file mode 100644 index 00000000000..803ca3462ca --- /dev/null +++ b/code/modules/power/powersupply.dm @@ -0,0 +1,18 @@ +/** + * This file contains a subtype of machinery/power, that is used by other machinery as an interior object + */ +/obj/machinery/power/powersupply + name = "power supply" + desc = "An interior component of another machine meant to supply it with power." + +/obj/machinery/power/powersupply/connect_to_network() + var/turf/T = src.loc.loc//double loc, first loc is the machine we are in, second one gives us the turf of the machine we are in + if(!T || !istype(T)) + return 0 + + var/obj/structure/cable/C = T.get_cable_node() //check if we have a node cable on the machine turf, the first found is picked + if(!C || !C.powernet) + return 0 + + C.powernet.add_machine(src) + return 1 diff --git a/code/modules/research/designs/circuits/circuits.dm b/code/modules/research/designs/circuits/circuits.dm index ddf9a5e5027..1b3d3b8a963 100644 --- a/code/modules/research/designs/circuits/circuits.dm +++ b/code/modules/research/designs/circuits/circuits.dm @@ -662,3 +662,17 @@ CIRCUITS BELOW req_tech = list(TECH_DATA = 4, TECH_ENGINEERING = 3, TECH_COMBAT = 2) build_path = /obj/item/circuitboard/pointdefense_control sort_string = "OAABB" + +/datum/design/circuit/massive_gas_pump + name = "High performance gas pump" + id = "massive_gas_pump" + req_tech = list(TECH_ENGINEERING = 3) + build_path = /obj/item/circuitboard/massive_gas_pump + sort_string = "OAABC" + +/datum/design/circuit/massive_heat_pump + name = "High performance heat pump" + id = "massive_heat_pump" + req_tech = list(TECH_ENGINEERING = 4) + build_path = /obj/item/circuitboard/massive_heat_pump + sort_string = "OAABD" diff --git a/icons/obj/machines/massive_pumps.dmi b/icons/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(1U@qbpXy7$6f)Fhx*yIT zHWYbUOT21}&MoksmG|j?j)(sadc=auT%JhqOd&}VBaUK-1hRxWuokcq^5{O^B-hGA zjJJr~X(V$$0Fc$%rZOrOHy4p5$hup&J2WUX7DkG`wiGeWkSXCDD0+EvhjAB+br|Vz z^eLbLb>{^fwdZL2-K1c0{0mOi3s6B>KA>Y)K=gvmU ze<{uRlL@gDFu)H(VrAFVNPbO$V){VufqCWM+~Gf8JN$y#U5mw0?Q++l7|s(YY-|} z)al-pg+chR!;n?^9rC$Lz+G(3o=#aQeZqb~J@BMq`GT4`)pr3^7g5{WhdVmO(NMsr zPqZ7;>|y^(p)sT)-OVXbGh$Z~ZvSOLjSyKueJU7UIXH8|K8y80QQeQA_5lis@V!e? zY#5~c2M~rEqf;5S<-^73^S?S{e1pYs#{-^83P zyJfIU0ECy{r9n0GbXKI=YL>lzAv9nRKE~%H-`q6bSHn^y{d(2F|6<6us+w2vSJxD8 z&1j2^*B#V;r{YIdei4EE?3OjU%J?Q_j20;HEqBTaguVRj85DhoJ7g3sU(S~Kfk2+G z*d!?jN>NM^JN4%q3M$l4mg%~Cd)K@=_V>#&Xp+jK zH>iLjC>L~&C^sj=yd#gtfQ#PpcI^J8{6`K@JD?D-EXi^dl8#{~M#gA4t@8lnzRMKU z>+f%U2_`zCyr`a#@DBhGP<=7a#eS+2*U%0jkesjocswR=dN86&4U2N(KUV(@`vNqFSpT`_BHIy-m9PE zv|+eIRbK-GWPeZ^T67pNeIIKawskMGt8{M@W7Q|Rj@2?<*{Iq9z;*}v z4DnPm7d}VbDQ@2|0`01&p@8Dv4Z}R>Sh8JC+h~XCb|&T?)|fAMfAyrP1Yvn~Ag=G- Tt{~|3W7r-?x1EI!fz { + const { act, data } = useBackend(context); + + const { + on, + pressure_set, + last_flow_rate, + last_power_draw, + power_level, + } = data; + + return ( + + +
+ + + L/s + + + + {formatPower(last_power_draw)} + + + +
+
act("power")} /> + }> + + +
+
+
+ ); +}; diff --git a/tgui/packages/tgui/interfaces/MassiveHeatPump.js b/tgui/packages/tgui/interfaces/MassiveHeatPump.js new file mode 100644 index 00000000000..80cd713be75 --- /dev/null +++ b/tgui/packages/tgui/interfaces/MassiveHeatPump.js @@ -0,0 +1,106 @@ +import { useBackend } from "../backend"; +import { Button, LabeledList, ProgressBar, Section, NumberInput, AnimatedNumber } from "../components"; +import { formatPower, formatSiUnit } from '../format'; +import { Fragment } from 'inferno'; +import { Window } from "../layouts"; + +export const MassiveHeatPump = (props, context) => { + const { act, data } = useBackend(context); + + const { + power_level, + target_temp, + current_temp, + sink_temp, + on, + lowest_temp, + efficiency, + highest_temp, + last_power_draw, + max_power_draw, + } = data; + + return ( + + +
+ + + % + + + K + + + K + + + + {formatPower(last_power_draw)} + + + +
+
act("power")} /> + }> + + +
+
+
+ ); +}; + \ No newline at end of file diff --git a/tgui/public/tgui.bundle.js b/tgui/public/tgui.bundle.js index bd63f9be704..e1d04095ba1 100644 --- a/tgui/public/tgui.bundle.js +++ b/tgui/public/tgui.bundle.js @@ -1 +1 @@ -!function(){var e={92179:function(e,t,n){"use strict";t.__esModule=!0,t.popperGenerator=C,t.createPopper=void 0;var o=m(n(30505)),r=m(n(43545)),a=m(n(46213)),i=m(n(32440)),c=(m(n(61131)),m(n(45700))),l=m(n(68369)),d=(m(n(38574)),m(n(25435)),m(n(22709)),m(n(36284))),u=m(n(19574));t.detectOverflow=u["default"];var s=n(67458);n(56728);function m(e){return e&&e.__esModule?e:{"default":e}}var p={placement:"bottom",modifiers:[],strategy:"absolute"};function h(){for(var e=arguments.length,t=new Array(e),n=0;n=0&&(0,u.isHTMLElement)(e)?(0,c["default"])(e):e;if(!(0,u.isElement)(n))return[];return t.filter((function(e){return(0,u.isElement)(e)&&(0,p["default"])(e,n)&&"body"!==(0,h["default"])(e)}))}(e):[].concat(t),r=[].concat(o,[n]),a=r[0],l=r.reduce((function(t,n){var o=b(e,n);return t.top=(0,f.max)(o.top,t.top),t.right=(0,f.min)(o.right,t.right),t.bottom=(0,f.min)(o.bottom,t.bottom),t.left=(0,f.max)(o.left,t.left),t}),b(e,a));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l};var o=n(56728),r=N(n(78331)),a=N(n(68692)),i=N(n(46213)),c=N(n(32440)),l=N(n(58386)),d=N(n(61131)),u=n(67458),s=N(n(94294)),m=N(n(31613)),p=N(n(97607)),h=N(n(99624)),C=N(n(20935)),f=n(62836);function N(e){return e&&e.__esModule?e:{"default":e}}function b(e,t){return t===o.viewport?(0,C["default"])((0,r["default"])(e)):(0,u.isHTMLElement)(t)?function(e){var t=(0,s["default"])(e);return t.top=t.top+e.clientTop,t.left=t.left+e.clientLeft,t.bottom=t.top+e.clientHeight,t.right=t.left+e.clientWidth,t.width=e.clientWidth,t.height=e.clientHeight,t.x=t.left,t.y=t.top,t}(t):(0,C["default"])((0,a["default"])((0,l["default"])(e)))}},30505:function(e,t,n){"use strict";t.__esModule=!0,t["default"]=function(e,t,n){void 0===n&&(n=!1);var u=(0,i.isHTMLElement)(t),s=(0,i.isHTMLElement)(t)&&function(e){var t=e.getBoundingClientRect(),n=t.width/e.offsetWidth||1,o=t.height/e.offsetHeight||1;return 1!==n||1!==o}(t),m=(0,l["default"])(t),p=(0,o["default"])(e,s),h={scrollLeft:0,scrollTop:0},C={x:0,y:0};(u||!u&&!n)&&(("body"!==(0,a["default"])(t)||(0,d["default"])(m))&&(h=(0,r["default"])(t)),(0,i.isHTMLElement)(t)?((C=(0,o["default"])(t,!0)).x+=t.clientLeft,C.y+=t.clientTop):m&&(C.x=(0,c["default"])(m)));return{x:p.left+h.scrollLeft-C.x,y:p.top+h.scrollTop-C.y,width:p.width,height:p.height}};var o=u(n(94294)),r=u(n(71942)),a=u(n(99624)),i=n(67458),c=u(n(45471)),l=u(n(58386)),d=u(n(37229));function u(e){return e&&e.__esModule?e:{"default":e}}},61131:function(e,t,n){"use strict";t.__esModule=!0,t["default"]=function(e){return(0,r["default"])(e).getComputedStyle(e)};var o,r=(o=n(31677))&&o.__esModule?o:{"default":o}},58386:function(e,t,n){"use strict";t.__esModule=!0,t["default"]=function(e){return(((0,o.isElement)(e)?e.ownerDocument:e.document)||window.document).documentElement};var o=n(67458)},68692:function(e,t,n){"use strict";t.__esModule=!0,t["default"]=function(e){var t,n=(0,o["default"])(e),l=(0,i["default"])(e),d=null==(t=e.ownerDocument)?void 0:t.body,u=(0,c.max)(n.scrollWidth,n.clientWidth,d?d.scrollWidth:0,d?d.clientWidth:0),s=(0,c.max)(n.scrollHeight,n.clientHeight,d?d.scrollHeight:0,d?d.clientHeight:0),m=-l.scrollLeft+(0,a["default"])(e),p=-l.scrollTop;"rtl"===(0,r["default"])(d||n).direction&&(m+=(0,c.max)(n.clientWidth,d?d.clientWidth:0)-u);return{width:u,height:s,x:m,y:p}};var o=l(n(58386)),r=l(n(61131)),a=l(n(45471)),i=l(n(1255)),c=n(62836);function l(e){return e&&e.__esModule?e:{"default":e}}},50552:function(e,t){"use strict";t.__esModule=!0,t["default"]=function(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}},43545:function(e,t,n){"use strict";t.__esModule=!0,t["default"]=function(e){var t=(0,r["default"])(e),n=e.offsetWidth,o=e.offsetHeight;Math.abs(t.width-n)<=1&&(n=t.width);Math.abs(t.height-o)<=1&&(o=t.height);return{x:e.offsetLeft,y:e.offsetTop,width:n,height:o}};var o,r=(o=n(94294))&&o.__esModule?o:{"default":o}},99624:function(e,t){"use strict";t.__esModule=!0,t["default"]=function(e){return e?(e.nodeName||"").toLowerCase():null}},71942:function(e,t,n){"use strict";t.__esModule=!0,t["default"]=function(e){return e!==(0,r["default"])(e)&&(0,a.isHTMLElement)(e)?(0,i["default"])(e):(0,o["default"])(e)};var o=c(n(1255)),r=c(n(31677)),a=n(67458),i=c(n(50552));function c(e){return e&&e.__esModule?e:{"default":e}}},32440:function(e,t,n){"use strict";t.__esModule=!0,t["default"]=function(e){var t=(0,o["default"])(e),n=u(e);for(;n&&(0,c["default"])(n)&&"static"===(0,a["default"])(n).position;)n=u(n);if(n&&("html"===(0,r["default"])(n)||"body"===(0,r["default"])(n)&&"static"===(0,a["default"])(n).position))return t;return n||function(e){var t=-1!==navigator.userAgent.toLowerCase().indexOf("firefox");if(-1!==navigator.userAgent.indexOf("Trident")&&(0,i.isHTMLElement)(e)){if("fixed"===(0,a["default"])(e).position)return null}var n=(0,l["default"])(e);for(;(0,i.isHTMLElement)(n)&&["html","body"].indexOf((0,r["default"])(n))<0;){var o=(0,a["default"])(n);if("none"!==o.transform||"none"!==o.perspective||"paint"===o.contain||-1!==["transform","perspective"].indexOf(o.willChange)||t&&"filter"===o.willChange||t&&o.filter&&"none"!==o.filter)return n;n=n.parentNode}return null}(e)||t};var o=d(n(31677)),r=d(n(99624)),a=d(n(61131)),i=n(67458),c=d(n(79130)),l=d(n(31613));function d(e){return e&&e.__esModule?e:{"default":e}}function u(e){return(0,i.isHTMLElement)(e)&&"fixed"!==(0,a["default"])(e).position?e.offsetParent:null}},31613:function(e,t,n){"use strict";t.__esModule=!0,t["default"]=function(e){if("html"===(0,o["default"])(e))return e;return e.assignedSlot||e.parentNode||((0,a.isShadowRoot)(e)?e.host:null)||(0,r["default"])(e)};var o=i(n(99624)),r=i(n(58386)),a=n(67458);function i(e){return e&&e.__esModule?e:{"default":e}}},66055:function(e,t,n){"use strict";t.__esModule=!0,t["default"]=function l(e){if(["html","body","#document"].indexOf((0,a["default"])(e))>=0)return e.ownerDocument.body;if((0,i.isHTMLElement)(e)&&(0,r["default"])(e))return e;return l((0,o["default"])(e))};var o=c(n(31613)),r=c(n(37229)),a=c(n(99624)),i=n(67458);function c(e){return e&&e.__esModule?e:{"default":e}}},78331:function(e,t,n){"use strict";t.__esModule=!0,t["default"]=function(e){var t=(0,o["default"])(e),n=(0,r["default"])(e),i=t.visualViewport,c=n.clientWidth,l=n.clientHeight,d=0,u=0;i&&(c=i.width,l=i.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(d=i.offsetLeft,u=i.offsetTop));return{width:c,height:l,x:d+(0,a["default"])(e),y:u}};var o=i(n(31677)),r=i(n(58386)),a=i(n(45471));function i(e){return e&&e.__esModule?e:{"default":e}}},31677:function(e,t){"use strict";t.__esModule=!0,t["default"]=function(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}},1255:function(e,t,n){"use strict";t.__esModule=!0,t["default"]=function(e){var t=(0,r["default"])(e),n=t.pageXOffset,o=t.pageYOffset;return{scrollLeft:n,scrollTop:o}};var o,r=(o=n(31677))&&o.__esModule?o:{"default":o}},45471:function(e,t,n){"use strict";t.__esModule=!0,t["default"]=function(e){return(0,o["default"])((0,r["default"])(e)).left+(0,a["default"])(e).scrollLeft};var o=i(n(94294)),r=i(n(58386)),a=i(n(1255));function i(e){return e&&e.__esModule?e:{"default":e}}},67458:function(e,t,n){"use strict";t.__esModule=!0,t.isElement=function(e){var t=(0,r["default"])(e).Element;return e instanceof t||e instanceof Element},t.isHTMLElement=function(e){var t=(0,r["default"])(e).HTMLElement;return e instanceof t||e instanceof HTMLElement},t.isShadowRoot=function(e){if("undefined"==typeof ShadowRoot)return!1;var t=(0,r["default"])(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot};var o,r=(o=n(31677))&&o.__esModule?o:{"default":o}},37229:function(e,t,n){"use strict";t.__esModule=!0,t["default"]=function(e){var t=(0,r["default"])(e),n=t.overflow,o=t.overflowX,a=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+a+o)};var o,r=(o=n(61131))&&o.__esModule?o:{"default":o}},79130:function(e,t,n){"use strict";t.__esModule=!0,t["default"]=function(e){return["table","td","th"].indexOf((0,r["default"])(e))>=0};var o,r=(o=n(99624))&&o.__esModule?o:{"default":o}},46213:function(e,t,n){"use strict";t.__esModule=!0,t["default"]=function l(e,t){var n;void 0===t&&(t=[]);var c=(0,o["default"])(e),d=c===(null==(n=e.ownerDocument)?void 0:n.body),u=(0,a["default"])(c),s=d?[u].concat(u.visualViewport||[],(0,i["default"])(c)?c:[]):c,m=t.concat(s);return d?m:m.concat(l((0,r["default"])(s)))};var o=c(n(66055)),r=c(n(31613)),a=c(n(31677)),i=c(n(37229));function c(e){return e&&e.__esModule?e:{"default":e}}},56728:function(e,t){"use strict";t.__esModule=!0,t.modifierPhases=t.afterWrite=t.write=t.beforeWrite=t.afterMain=t.main=t.beforeMain=t.afterRead=t.read=t.beforeRead=t.placements=t.variationPlacements=t.reference=t.popper=t.viewport=t.clippingParents=t.end=t.start=t.basePlacements=t.auto=t.left=t.right=t.bottom=t.top=void 0;t.top="top";var n="bottom";t.bottom=n;var o="right";t.right=o;var r="left";t.left=r;var a="auto";t.auto=a;var i=["top",n,o,r];t.basePlacements=i;var c="start";t.start=c;var l="end";t.end=l;t.clippingParents="clippingParents";t.viewport="viewport";t.popper="popper";t.reference="reference";var d=i.reduce((function(e,t){return e.concat([t+"-"+c,t+"-"+l])}),[]);t.variationPlacements=d;var u=[].concat(i,[a]).reduce((function(e,t){return e.concat([t,t+"-"+c,t+"-"+l])}),[]);t.placements=u;var s="beforeRead";t.beforeRead=s;var m="read";t.read=m;var p="afterRead";t.afterRead=p;var h="beforeMain";t.beforeMain=h;var C="main";t.main=C;var f="afterMain";t.afterMain=f;var N="beforeWrite";t.beforeWrite=N;var b="write";t.write=b;var g="afterWrite";t.afterWrite=g;var V=[s,m,p,h,C,f,N,b,g];t.modifierPhases=V},34739:function(e,t,n){"use strict";t.__esModule=!0;var o={popperGenerator:!0,detectOverflow:!0,createPopperBase:!0,createPopper:!0,createPopperLite:!0};t.createPopperLite=t.createPopper=t.createPopperBase=t.detectOverflow=t.popperGenerator=void 0;var r=n(56728);Object.keys(r).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(o,e)||e in t&&t[e]===r[e]||(t[e]=r[e]))}));var a=n(18726);Object.keys(a).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(o,e)||e in t&&t[e]===a[e]||(t[e]=a[e]))}));var i=n(92179);t.popperGenerator=i.popperGenerator,t.detectOverflow=i.detectOverflow,t.createPopperBase=i.createPopper;var c=n(48069);t.createPopper=c.createPopper;var l=n(39030);t.createPopperLite=l.createPopper},34559:function(e,t,n){"use strict";t.__esModule=!0,t["default"]=void 0;var o,r=(o=n(99624))&&o.__esModule?o:{"default":o},a=n(67458);var i={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var n=t.styles[e]||{},o=t.attributes[e]||{},i=t.elements[e];(0,a.isHTMLElement)(i)&&(0,r["default"])(i)&&(Object.assign(i.style,n),Object.keys(o).forEach((function(e){var t=o[e];!1===t?i.removeAttribute(e):i.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach((function(e){var o=t.elements[e],i=t.attributes[e]||{},c=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce((function(e,t){return e[t]="",e}),{});(0,a.isHTMLElement)(o)&&(0,r["default"])(o)&&(Object.assign(o.style,c),Object.keys(i).forEach((function(e){o.removeAttribute(e)})))}))}},requires:["computeStyles"]};t["default"]=i},76340:function(e,t,n){"use strict";t.__esModule=!0,t["default"]=void 0;var o=m(n(22709)),r=m(n(43545)),a=m(n(97607)),i=m(n(32440)),c=m(n(16615)),l=m(n(52534)),d=m(n(32055)),u=m(n(76294)),s=n(56728);n(67458);function m(e){return e&&e.__esModule?e:{"default":e}}var p=function(e,t){return e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e,(0,d["default"])("number"!=typeof e?e:(0,u["default"])(e,s.basePlacements))};var h={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,a=e.name,d=e.options,u=n.elements.arrow,m=n.modifiersData.popperOffsets,h=(0,o["default"])(n.placement),C=(0,c["default"])(h),f=[s.left,s.right].indexOf(h)>=0?"height":"width";if(u&&m){var N=p(d.padding,n),b=(0,r["default"])(u),g="y"===C?s.top:s.left,V="y"===C?s.bottom:s.right,v=n.rects.reference[f]+n.rects.reference[C]-m[C]-n.rects.popper[f],k=m[C]-n.rects.reference[C],_=(0,i["default"])(u),x=_?"y"===C?_.clientHeight||0:_.clientWidth||0:0,y=v/2-k/2,B=N[g],w=x-b[f]-N[V],L=x/2-b[f]/2+y,S=(0,l["default"])(B,L,w),I=C;n.modifiersData[a]=((t={})[I]=S,t.centerOffset=S-L,t)}},effect:function(e){var t=e.state,n=e.options.element,o=void 0===n?"[data-popper-arrow]":n;null!=o&&("string"!=typeof o||(o=t.elements.popper.querySelector(o)))&&(0,a["default"])(t.elements.popper,o)&&(t.elements.arrow=o)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};t["default"]=h},11300:function(e,t,n){"use strict";t.__esModule=!0,t.mapToStyles=m,t["default"]=void 0;var o=n(56728),r=u(n(32440)),a=u(n(31677)),i=u(n(58386)),c=u(n(61131)),l=u(n(22709)),d=n(62836);function u(e){return e&&e.__esModule?e:{"default":e}}var s={top:"auto",right:"auto",bottom:"auto",left:"auto"};function m(e){var t,n=e.popper,l=e.popperRect,u=e.placement,m=e.offsets,p=e.position,h=e.gpuAcceleration,C=e.adaptive,f=e.roundOffsets,N=!0===f?function(e){var t=e.x,n=e.y,o=window.devicePixelRatio||1;return{x:(0,d.round)((0,d.round)(t*o)/o)||0,y:(0,d.round)((0,d.round)(n*o)/o)||0}}(m):"function"==typeof f?f(m):m,b=N.x,g=void 0===b?0:b,V=N.y,v=void 0===V?0:V,k=m.hasOwnProperty("x"),_=m.hasOwnProperty("y"),x=o.left,y=o.top,B=window;if(C){var w=(0,r["default"])(n),L="clientHeight",S="clientWidth";w===(0,a["default"])(n)&&(w=(0,i["default"])(n),"static"!==(0,c["default"])(w).position&&(L="scrollHeight",S="scrollWidth")),w=w,u===o.top&&(y=o.bottom,v-=w[L]-l.height,v*=h?1:-1),u===o.left&&(x=o.right,g-=w[S]-l.width,g*=h?1:-1)}var I,T=Object.assign({position:p},C&&s);return h?Object.assign({},T,((I={})[y]=_?"0":"",I[x]=k?"0":"",I.transform=(B.devicePixelRatio||1)<2?"translate("+g+"px, "+v+"px)":"translate3d("+g+"px, "+v+"px, 0)",I)):Object.assign({},T,((t={})[y]=_?v+"px":"",t[x]=k?g+"px":"",t.transform="",t))}var p={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,o=n.gpuAcceleration,r=void 0===o||o,a=n.adaptive,i=void 0===a||a,c=n.roundOffsets,d=void 0===c||c,u={placement:(0,l["default"])(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:r};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,m(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:i,roundOffsets:d})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,m(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:d})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}};t["default"]=p},27020:function(e,t,n){"use strict";t.__esModule=!0,t["default"]=void 0;var o,r=(o=n(31677))&&o.__esModule?o:{"default":o};var a={passive:!0};var i={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,o=e.options,i=o.scroll,c=void 0===i||i,l=o.resize,d=void 0===l||l,u=(0,r["default"])(t.elements.popper),s=[].concat(t.scrollParents.reference,t.scrollParents.popper);return c&&s.forEach((function(e){e.addEventListener("scroll",n.update,a)})),d&&u.addEventListener("resize",n.update,a),function(){c&&s.forEach((function(e){e.removeEventListener("scroll",n.update,a)})),d&&u.removeEventListener("resize",n.update,a)}},data:{}};t["default"]=i},45922:function(e,t,n){"use strict";t.__esModule=!0,t["default"]=void 0;var o=u(n(70045)),r=u(n(22709)),a=u(n(28916)),i=u(n(19574)),c=u(n(31565)),l=n(56728),d=u(n(45412));function u(e){return e&&e.__esModule?e:{"default":e}}var s={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,u=e.name;if(!t.modifiersData[u]._skip){for(var s=n.mainAxis,m=void 0===s||s,p=n.altAxis,h=void 0===p||p,C=n.fallbackPlacements,f=n.padding,N=n.boundary,b=n.rootBoundary,g=n.altBoundary,V=n.flipVariations,v=void 0===V||V,k=n.allowedAutoPlacements,_=t.options.placement,x=(0,r["default"])(_),y=C||(x===_||!v?[(0,o["default"])(_)]:function(e){if((0,r["default"])(e)===l.auto)return[];var t=(0,o["default"])(e);return[(0,a["default"])(e),t,(0,a["default"])(t)]}(_)),B=[_].concat(y).reduce((function(e,n){return e.concat((0,r["default"])(n)===l.auto?(0,c["default"])(t,{placement:n,boundary:N,rootBoundary:b,padding:f,flipVariations:v,allowedAutoPlacements:k}):n)}),[]),w=t.rects.reference,L=t.rects.popper,S=new Map,I=!0,T=B[0],A=0;A=0,P=M?"width":"height",R=(0,i["default"])(t,{placement:D,boundary:N,rootBoundary:b,altBoundary:g,padding:f}),O=M?F?l.right:l.left:F?l.bottom:l.top;w[P]>L[P]&&(O=(0,o["default"])(O));var j=(0,o["default"])(O),W=[];if(m&&W.push(R[E]<=0),h&&W.push(R[O]<=0,R[j]<=0),W.every((function(e){return e}))){T=D,I=!1;break}S.set(D,W)}if(I)for(var z=function(e){var t=B.find((function(t){var n=S.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return T=t,"break"},H=v?3:1;H>0;H--){if("break"===z(H))break}t.placement!==T&&(t.modifiersData[u]._skip=!0,t.placement=T,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};t["default"]=s},82860:function(e,t,n){"use strict";t.__esModule=!0,t["default"]=void 0;var o,r=n(56728),a=(o=n(19574))&&o.__esModule?o:{"default":o};function i(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function c(e){return[r.top,r.right,r.bottom,r.left].some((function(t){return e[t]>=0}))}var l={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,o=t.rects.reference,r=t.rects.popper,l=t.modifiersData.preventOverflow,d=(0,a["default"])(t,{elementContext:"reference"}),u=(0,a["default"])(t,{altBoundary:!0}),s=i(d,o),m=i(u,r,l),p=c(s),h=c(m);t.modifiersData[n]={referenceClippingOffsets:s,popperEscapeOffsets:m,isReferenceHidden:p,hasPopperEscaped:h},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":p,"data-popper-escaped":h})}};t["default"]=l},18726:function(e,t,n){"use strict";t.__esModule=!0,t.preventOverflow=t.popperOffsets=t.offset=t.hide=t.flip=t.eventListeners=t.computeStyles=t.arrow=t.applyStyles=void 0;var o=m(n(34559));t.applyStyles=o["default"];var r=m(n(76340));t.arrow=r["default"];var a=m(n(11300));t.computeStyles=a["default"];var i=m(n(27020));t.eventListeners=i["default"];var c=m(n(45922));t.flip=c["default"];var l=m(n(82860));t.hide=l["default"];var d=m(n(33310));t.offset=d["default"];var u=m(n(74371));t.popperOffsets=u["default"];var s=m(n(21532));function m(e){return e&&e.__esModule?e:{"default":e}}t.preventOverflow=s["default"]},33310:function(e,t,n){"use strict";t.__esModule=!0,t.distanceAndSkiddingToXY=i,t["default"]=void 0;var o,r=(o=n(22709))&&o.__esModule?o:{"default":o},a=n(56728);function i(e,t,n){var o=(0,r["default"])(e),i=[a.left,a.top].indexOf(o)>=0?-1:1,c="function"==typeof n?n(Object.assign({},t,{placement:e})):n,l=c[0],d=c[1];return l=l||0,d=(d||0)*i,[a.left,a.right].indexOf(o)>=0?{x:d,y:l}:{x:l,y:d}}var c={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,o=e.name,r=n.offset,c=void 0===r?[0,0]:r,l=a.placements.reduce((function(e,n){return e[n]=i(n,t.rects,c),e}),{}),d=l[t.placement],u=d.x,s=d.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=u,t.modifiersData.popperOffsets.y+=s),t.modifiersData[o]=l}};t["default"]=c},74371:function(e,t,n){"use strict";t.__esModule=!0,t["default"]=void 0;var o,r=(o=n(17175))&&o.__esModule?o:{"default":o};var a={name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=(0,r["default"])({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}};t["default"]=a},21532:function(e,t,n){"use strict";t.__esModule=!0,t["default"]=void 0;var o=n(56728),r=h(n(22709)),a=h(n(16615)),i=h(n(82898)),c=h(n(52534)),l=h(n(43545)),d=h(n(32440)),u=h(n(19574)),s=h(n(45412)),m=h(n(41801)),p=n(62836);function h(e){return e&&e.__esModule?e:{"default":e}}var C={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,h=e.name,C=n.mainAxis,f=void 0===C||C,N=n.altAxis,b=void 0!==N&&N,g=n.boundary,V=n.rootBoundary,v=n.altBoundary,k=n.padding,_=n.tether,x=void 0===_||_,y=n.tetherOffset,B=void 0===y?0:y,w=(0,u["default"])(t,{boundary:g,rootBoundary:V,padding:k,altBoundary:v}),L=(0,r["default"])(t.placement),S=(0,s["default"])(t.placement),I=!S,T=(0,a["default"])(L),A=(0,i["default"])(T),D=t.modifiersData.popperOffsets,E=t.rects.reference,F=t.rects.popper,M="function"==typeof B?B(Object.assign({},t.rects,{placement:t.placement})):B,P={x:0,y:0};if(D){if(f||b){var R="y"===T?o.top:o.left,O="y"===T?o.bottom:o.right,j="y"===T?"height":"width",W=D[T],z=D[T]+w[R],H=D[T]-w[O],U=x?-F[j]/2:0,G=S===o.start?E[j]:F[j],K=S===o.start?-F[j]:-E[j],q=t.elements.arrow,Y=x&&q?(0,l["default"])(q):{width:0,height:0},$=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:(0,m["default"])(),X=$[R],Q=$[O],Z=(0,c["default"])(0,E[j],Y[j]),J=I?E[j]/2-U-Z-X-M:G-Z-X-M,ee=I?-E[j]/2+U+Z+Q+M:K+Z+Q+M,te=t.elements.arrow&&(0,d["default"])(t.elements.arrow),ne=te?"y"===T?te.clientTop||0:te.clientLeft||0:0,oe=t.modifiersData.offset?t.modifiersData.offset[t.placement][T]:0,re=D[T]+J-oe-ne,ae=D[T]+ee-oe;if(f){var ie=(0,c["default"])(x?(0,p.min)(z,re):z,W,x?(0,p.max)(H,ae):H);D[T]=ie,P[T]=ie-W}if(b){var ce="x"===T?o.top:o.left,le="x"===T?o.bottom:o.right,de=D[A],ue=de+w[ce],se=de-w[le],me=(0,c["default"])(x?(0,p.min)(ue,re):ue,de,x?(0,p.max)(se,ae):se);D[A]=me,P[A]=me-de}}t.modifiersData[h]=P}},requiresIfExists:["offset"]};t["default"]=C},39030:function(e,t,n){"use strict";t.__esModule=!0,t.defaultModifiers=t.createPopper=void 0;var o=n(92179);t.popperGenerator=o.popperGenerator,t.detectOverflow=o.detectOverflow;var r=l(n(27020)),a=l(n(74371)),i=l(n(11300)),c=l(n(34559));function l(e){return e&&e.__esModule?e:{"default":e}}var d=[r["default"],a["default"],i["default"],c["default"]];t.defaultModifiers=d;var u=(0,o.popperGenerator)({defaultModifiers:d});t.createPopper=u},48069:function(e,t,n){"use strict";t.__esModule=!0;var o={createPopper:!0,createPopperLite:!0,defaultModifiers:!0,popperGenerator:!0,detectOverflow:!0};t.defaultModifiers=t.createPopperLite=t.createPopper=void 0;var r=n(92179);t.popperGenerator=r.popperGenerator,t.detectOverflow=r.detectOverflow;var a=f(n(27020)),i=f(n(74371)),c=f(n(11300)),l=f(n(34559)),d=f(n(33310)),u=f(n(45922)),s=f(n(21532)),m=f(n(76340)),p=f(n(82860)),h=n(39030);t.createPopperLite=h.createPopper;var C=n(18726);function f(e){return e&&e.__esModule?e:{"default":e}}Object.keys(C).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(o,e)||e in t&&t[e]===C[e]||(t[e]=C[e]))}));var N=[a["default"],i["default"],c["default"],l["default"],d["default"],u["default"],s["default"],m["default"],p["default"]];t.defaultModifiers=N;var b=(0,r.popperGenerator)({defaultModifiers:N});t.createPopperLite=t.createPopper=b},31565:function(e,t,n){"use strict";t.__esModule=!0,t["default"]=function(e,t){void 0===t&&(t={});var n=t,c=n.placement,l=n.boundary,d=n.rootBoundary,u=n.padding,s=n.flipVariations,m=n.allowedAutoPlacements,p=void 0===m?r.placements:m,h=(0,o["default"])(c),C=h?s?r.variationPlacements:r.variationPlacements.filter((function(e){return(0,o["default"])(e)===h})):r.basePlacements,f=C.filter((function(e){return p.indexOf(e)>=0}));0===f.length&&(f=C);var N=f.reduce((function(t,n){return t[n]=(0,a["default"])(e,{placement:n,boundary:l,rootBoundary:d,padding:u})[(0,i["default"])(n)],t}),{});return Object.keys(N).sort((function(e,t){return N[e]-N[t]}))};var o=c(n(45412)),r=n(56728),a=c(n(19574)),i=c(n(22709));function c(e){return e&&e.__esModule?e:{"default":e}}},17175:function(e,t,n){"use strict";t.__esModule=!0,t["default"]=function(e){var t,n=e.reference,c=e.element,l=e.placement,d=l?(0,o["default"])(l):null,u=l?(0,r["default"])(l):null,s=n.x+n.width/2-c.width/2,m=n.y+n.height/2-c.height/2;switch(d){case i.top:t={x:s,y:n.y-c.height};break;case i.bottom:t={x:s,y:n.y+n.height};break;case i.right:t={x:n.x+n.width,y:m};break;case i.left:t={x:n.x-c.width,y:m};break;default:t={x:n.x,y:n.y}}var p=d?(0,a["default"])(d):null;if(null!=p){var h="y"===p?"height":"width";switch(u){case i.start:t[p]=t[p]-(n[h]/2-c[h]/2);break;case i.end:t[p]=t[p]+(n[h]/2-c[h]/2)}}return t};var o=c(n(22709)),r=c(n(45412)),a=c(n(16615)),i=n(56728);function c(e){return e&&e.__esModule?e:{"default":e}}},68369:function(e,t){"use strict";t.__esModule=!0,t["default"]=function(e){var t;return function(){return t||(t=new Promise((function(n){Promise.resolve().then((function(){t=undefined,n(e())}))}))),t}}},19574:function(e,t,n){"use strict";t.__esModule=!0,t["default"]=function(e,t){void 0===t&&(t={});var n=t,m=n.placement,p=void 0===m?e.placement:m,h=n.boundary,C=void 0===h?l.clippingParents:h,f=n.rootBoundary,N=void 0===f?l.viewport:f,b=n.elementContext,g=void 0===b?l.popper:b,V=n.altBoundary,v=void 0!==V&&V,k=n.padding,_=void 0===k?0:k,x=(0,u["default"])("number"!=typeof _?_:(0,s["default"])(_,l.basePlacements)),y=g===l.popper?l.reference:l.popper,B=e.elements.reference,w=e.rects.popper,L=e.elements[v?y:g],S=(0,r["default"])((0,d.isElement)(L)?L:L.contextElement||(0,a["default"])(e.elements.popper),C,N),I=(0,o["default"])(B),T=(0,i["default"])({reference:I,element:w,strategy:"absolute",placement:p}),A=(0,c["default"])(Object.assign({},w,T)),D=g===l.popper?A:I,E={top:S.top-D.top+x.top,bottom:D.bottom-S.bottom+x.bottom,left:S.left-D.left+x.left,right:D.right-S.right+x.right},F=e.modifiersData.offset;if(g===l.popper&&F){var M=F[p];Object.keys(E).forEach((function(e){var t=[l.right,l.bottom].indexOf(e)>=0?1:-1,n=[l.top,l.bottom].indexOf(e)>=0?"y":"x";E[e]+=M[n]*t}))}return E};var o=m(n(94294)),r=m(n(48162)),a=m(n(58386)),i=m(n(17175)),c=m(n(20935)),l=n(56728),d=n(67458),u=m(n(32055)),s=m(n(76294));function m(e){return e&&e.__esModule?e:{"default":e}}},76294:function(e,t){"use strict";t.__esModule=!0,t["default"]=function(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}},41434:function(e,t){"use strict";t.__esModule=!0,t["default"]=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o=0?"x":"y"}},70045:function(e,t){"use strict";t.__esModule=!0,t["default"]=function(e){return e.replace(/left|right|bottom|top/g,(function(e){return n[e]}))};var n={left:"right",right:"left",bottom:"top",top:"bottom"}},28916:function(e,t){"use strict";t.__esModule=!0,t["default"]=function(e){return e.replace(/start|end/g,(function(e){return n[e]}))};var n={start:"end",end:"start"}},45412:function(e,t){"use strict";t.__esModule=!0,t["default"]=function(e){return e.split("-")[1]}},62836:function(e,t){"use strict";t.__esModule=!0,t.round=t.min=t.max=void 0;var n=Math.max;t.max=n;var o=Math.min;t.min=o;var r=Math.round;t.round=r},36284:function(e,t){"use strict";t.__esModule=!0,t["default"]=function(e){var t=e.reduce((function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e}),{});return Object.keys(t).map((function(e){return t[e]}))}},32055:function(e,t,n){"use strict";t.__esModule=!0,t["default"]=function(e){return Object.assign({},(0,r["default"])(),e)};var o,r=(o=n(41801))&&o.__esModule?o:{"default":o}},45700:function(e,t,n){"use strict";t.__esModule=!0,t["default"]=function(e){var t=function(e){var t=new Map,n=new Set,o=[];function r(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!n.has(e)){var o=t.get(e);o&&r(o)}})),o.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||r(e)})),o}(e);return o.modifierPhases.reduce((function(e,n){return e.concat(t.filter((function(e){return e.phase===n})))}),[])};var o=n(56728)},20935:function(e,t){"use strict";t.__esModule=!0,t["default"]=function(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}},25435:function(e,t){"use strict";t.__esModule=!0,t["default"]=function(e,t){var n=new Set;return e.filter((function(e){var o=t(e);if(!n.has(o))return n.add(o),!0}))}},38574:function(e,t,n){"use strict";t.__esModule=!0,t["default"]=function(e){e.forEach((function(t){Object.keys(t).forEach((function(n){switch(n){case"name":t.name;break;case"enabled":t.enabled;case"phase":r.modifierPhases.indexOf(t.phase);break;case"fn":t.fn;break;case"effect":t.effect;break;case"requires":Array.isArray(t.requires);break;case"requiresIfExists":Array.isArray(t.requiresIfExists)}t.requires&&t.requires.forEach((function(t){e.find((function(e){return e.name===t}))}))}))}))};(o=n(41434))&&o.__esModule;var o,r=n(56728)},52534:function(e,t,n){"use strict";t.__esModule=!0,t["default"]=function(e,t,n){return(0,o.max)(e,(0,o.min)(t,n))};var o=n(62836)},83923:function(e){"use strict";e.exports=function(e){if("function"!=typeof e)throw TypeError(String(e)+" is not a function");return e}},1372:function(e,t,n){"use strict";var o=n(35611);e.exports=function(e){if(!o(e)&&null!==e)throw TypeError("Can't set "+String(e)+" as a prototype");return e}},36910:function(e,t,n){"use strict";var o=n(17657),r=n(83681),a=n(74217),i=o("unscopables"),c=Array.prototype;c[i]==undefined&&a.f(c,i,{configurable:!0,value:r(null)}),e.exports=function(e){c[i][e]=!0}},69953:function(e,t,n){"use strict";var o=n(37015).charAt;e.exports=function(e,t,n){return t+(n?o(e,t).length:1)}},50997:function(e){"use strict";e.exports=function(e,t,n){if(!(e instanceof t))throw TypeError("Incorrect "+(n?n+" ":"")+"invocation");return e}},63518:function(e,t,n){"use strict";var o=n(35611);e.exports=function(e){if(!o(e))throw TypeError(String(e)+" is not an object");return e}},32977:function(e){"use strict";e.exports="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView},19216:function(e,t,n){"use strict";var o,r,a,i=n(32977),c=n(75592),l=n(84253),d=n(35611),u=n(28919),s=n(47953),m=n(52188),p=n(11807),h=n(74217).f,C=n(6863),f=n(18444),N=n(17657),b=n(41080),g=l.Int8Array,V=g&&g.prototype,v=l.Uint8ClampedArray,k=v&&v.prototype,_=g&&C(g),x=V&&C(V),y=Object.prototype,B=y.isPrototypeOf,w=N("toStringTag"),L=b("TYPED_ARRAY_TAG"),S=b("TYPED_ARRAY_CONSTRUCTOR"),I=i&&!!f&&"Opera"!==s(l.opera),T=!1,A={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},D={BigInt64Array:8,BigUint64Array:8},E=function(e){if(!d(e))return!1;var t=s(e);return"DataView"===t||u(A,t)||u(D,t)},F=function(e){if(!d(e))return!1;var t=s(e);return u(A,t)||u(D,t)};for(o in A)(a=(r=l[o])&&r.prototype)?m(a,S,r):I=!1;for(o in D)(a=(r=l[o])&&r.prototype)&&m(a,S,r);if((!I||"function"!=typeof _||_===Function.prototype)&&(_=function(){throw TypeError("Incorrect invocation")},I))for(o in A)l[o]&&f(l[o],_);if((!I||!x||x===y)&&(x=_.prototype,I))for(o in A)l[o]&&f(l[o].prototype,x);if(I&&C(k)!==x&&f(k,x),c&&!u(x,w))for(o in T=!0,h(x,w,{get:function(){return d(this)?this[L]:undefined}}),A)l[o]&&m(l[o],L,o);e.exports={NATIVE_ARRAY_BUFFER_VIEWS:I,TYPED_ARRAY_CONSTRUCTOR:S,TYPED_ARRAY_TAG:T&&L,aTypedArray:function(e){if(F(e))return e;throw TypeError("Target is not a typed array")},aTypedArrayConstructor:function(e){if(f&&!B.call(_,e))throw TypeError("Target is not a typed array constructor");return e},exportTypedArrayMethod:function(e,t,n){if(c){if(n)for(var o in A){var r=l[o];if(r&&u(r.prototype,e))try{delete r.prototype[e]}catch(a){}}x[e]&&!n||p(x,e,n?t:I&&V[e]||t)}},exportTypedArrayStaticMethod:function(e,t,n){var o,r;if(c){if(f){if(n)for(o in A)if((r=l[o])&&u(r,e))try{delete r[e]}catch(a){}if(_[e]&&!n)return;try{return p(_,e,n?t:I&&_[e]||t)}catch(a){}}for(o in A)!(r=l[o])||r[e]&&!n||p(r,e,t)}},isView:E,isTypedArray:F,TypedArray:_,TypedArrayPrototype:x}},80246:function(e,t,n){"use strict";var o=n(84253),r=n(75592),a=n(32977),i=n(52188),c=n(3993),l=n(69691),d=n(50997),u=n(3997),s=n(39570),m=n(77559),p=n(16567),h=n(6863),C=n(18444),f=n(78870).f,N=n(74217).f,b=n(22051),g=n(29108),V=n(79947),v=V.get,k=V.set,_="ArrayBuffer",x="DataView",y="Wrong index",B=o.ArrayBuffer,w=B,L=o.DataView,S=L&&L.prototype,I=Object.prototype,T=o.RangeError,A=p.pack,D=p.unpack,E=function(e){return[255&e]},F=function(e){return[255&e,e>>8&255]},M=function(e){return[255&e,e>>8&255,e>>16&255,e>>24&255]},P=function(e){return e[3]<<24|e[2]<<16|e[1]<<8|e[0]},R=function(e){return A(e,23,4)},O=function(e){return A(e,52,8)},j=function(e,t){N(e.prototype,t,{get:function(){return v(this)[t]}})},W=function(e,t,n,o){var r=m(n),a=v(e);if(r+t>a.byteLength)throw T(y);var i=v(a.buffer).bytes,c=r+a.byteOffset,l=i.slice(c,c+t);return o?l:l.reverse()},z=function(e,t,n,o,r,a){var i=m(n),c=v(e);if(i+t>c.byteLength)throw T(y);for(var l=v(c.buffer).bytes,d=i+c.byteOffset,u=o(+r),s=0;sK;)(H=G[K++])in w||i(w,H,B[H]);U.constructor=w}C&&h(S)!==I&&C(S,I);var q=new L(new w(2)),Y=S.setInt8;q.setInt8(0,2147483648),q.setInt8(1,2147483649),!q.getInt8(0)&&q.getInt8(1)||c(S,{setInt8:function(e,t){Y.call(this,e,t<<24>>24)},setUint8:function(e,t){Y.call(this,e,t<<24>>24)}},{unsafe:!0})}else w=function(e){d(this,w,_);var t=m(e);k(this,{bytes:b.call(new Array(t),0),byteLength:t}),r||(this.byteLength=t)},L=function(e,t,n){d(this,L,x),d(e,w,x);var o=v(e).byteLength,a=u(t);if(a<0||a>o)throw T("Wrong offset");if(a+(n=n===undefined?o-a:s(n))>o)throw T("Wrong length");k(this,{buffer:e,byteLength:n,byteOffset:a}),r||(this.buffer=e,this.byteLength=n,this.byteOffset=a)},r&&(j(w,"byteLength"),j(L,"buffer"),j(L,"byteLength"),j(L,"byteOffset")),c(L.prototype,{getInt8:function(e){return W(this,1,e)[0]<<24>>24},getUint8:function(e){return W(this,1,e)[0]},getInt16:function(e){var t=W(this,2,e,arguments.length>1?arguments[1]:undefined);return(t[1]<<8|t[0])<<16>>16},getUint16:function(e){var t=W(this,2,e,arguments.length>1?arguments[1]:undefined);return t[1]<<8|t[0]},getInt32:function(e){return P(W(this,4,e,arguments.length>1?arguments[1]:undefined))},getUint32:function(e){return P(W(this,4,e,arguments.length>1?arguments[1]:undefined))>>>0},getFloat32:function(e){return D(W(this,4,e,arguments.length>1?arguments[1]:undefined),23)},getFloat64:function(e){return D(W(this,8,e,arguments.length>1?arguments[1]:undefined),52)},setInt8:function(e,t){z(this,1,e,E,t)},setUint8:function(e,t){z(this,1,e,E,t)},setInt16:function(e,t){z(this,2,e,F,t,arguments.length>2?arguments[2]:undefined)},setUint16:function(e,t){z(this,2,e,F,t,arguments.length>2?arguments[2]:undefined)},setInt32:function(e,t){z(this,4,e,M,t,arguments.length>2?arguments[2]:undefined)},setUint32:function(e,t){z(this,4,e,M,t,arguments.length>2?arguments[2]:undefined)},setFloat32:function(e,t){z(this,4,e,R,t,arguments.length>2?arguments[2]:undefined)},setFloat64:function(e,t){z(this,8,e,O,t,arguments.length>2?arguments[2]:undefined)}});g(w,_),g(L,x),e.exports={ArrayBuffer:w,DataView:L}},59571:function(e,t,n){"use strict";var o=n(12104),r=n(55205),a=n(39570),i=Math.min;e.exports=[].copyWithin||function(e,t){var n=o(this),c=a(n.length),l=r(e,c),d=r(t,c),u=arguments.length>2?arguments[2]:undefined,s=i((u===undefined?c:r(u,c))-d,c-l),m=1;for(d0;)d in n?n[l]=n[d]:delete n[l],l+=m,d+=m;return n}},22051:function(e,t,n){"use strict";var o=n(12104),r=n(55205),a=n(39570);e.exports=function(e){for(var t=o(this),n=a(t.length),i=arguments.length,c=r(i>1?arguments[1]:undefined,n),l=i>2?arguments[2]:undefined,d=l===undefined?n:r(l,n);d>c;)t[c++]=e;return t}},90369:function(e,t,n){"use strict";var o=n(69033).forEach,r=n(37902)("forEach");e.exports=r?[].forEach:function(e){return o(this,e,arguments.length>1?arguments[1]:undefined)}},11955:function(e){"use strict";e.exports=function(e,t){for(var n=0,o=t.length,r=new e(o);o>n;)r[n]=t[n++];return r}},28213:function(e,t,n){"use strict";var o=n(74271),r=n(12104),a=n(32648),i=n(14195),c=n(39570),l=n(39241),d=n(3170);e.exports=function(e){var t,n,u,s,m,p,h=r(e),C="function"==typeof this?this:Array,f=arguments.length,N=f>1?arguments[1]:undefined,b=N!==undefined,g=d(h),V=0;if(b&&(N=o(N,f>2?arguments[2]:undefined,2)),g==undefined||C==Array&&i(g))for(n=new C(t=c(h.length));t>V;V++)p=b?N(h[V],V):h[V],l(n,V,p);else for(m=(s=g.call(h)).next,n=new C;!(u=m.call(s)).done;V++)p=b?a(s,N,[u.value,V],!0):u.value,l(n,V,p);return n.length=V,n}},25945:function(e,t,n){"use strict";var o=n(26553),r=n(39570),a=n(55205),i=function(e){return function(t,n,i){var c,l=o(t),d=r(l.length),u=a(i,d);if(e&&n!=n){for(;d>u;)if((c=l[u++])!=c)return!0}else for(;d>u;u++)if((e||u in l)&&l[u]===n)return e||u||0;return!e&&-1}};e.exports={includes:i(!0),indexOf:i(!1)}},69033:function(e,t,n){"use strict";var o=n(74271),r=n(50990),a=n(12104),i=n(39570),c=n(77454),l=[].push,d=function(e){var t=1==e,n=2==e,d=3==e,u=4==e,s=6==e,m=7==e,p=5==e||s;return function(h,C,f,N){for(var b,g,V=a(h),v=r(V),k=o(C,f,3),_=i(v.length),x=0,y=N||c,B=t?y(h,_):n||m?y(h,0):undefined;_>x;x++)if((p||x in v)&&(g=k(b=v[x],x,V),e))if(t)B[x]=g;else if(g)switch(e){case 3:return!0;case 5:return b;case 6:return x;case 2:l.call(B,b)}else switch(e){case 4:return!1;case 7:l.call(B,b)}return s?-1:d||u?u:B}};e.exports={forEach:d(0),map:d(1),filter:d(2),some:d(3),every:d(4),find:d(5),findIndex:d(6),filterReject:d(7)}},41183:function(e,t,n){"use strict";var o=n(26553),r=n(3997),a=n(39570),i=n(37902),c=Math.min,l=[].lastIndexOf,d=!!l&&1/[1].lastIndexOf(1,-0)<0,u=i("lastIndexOf"),s=d||!u;e.exports=s?function(e){if(d)return l.apply(this,arguments)||0;var t=o(this),n=a(t.length),i=n-1;for(arguments.length>1&&(i=c(i,r(arguments[1]))),i<0&&(i=n+i);i>=0;i--)if(i in t&&t[i]===e)return i||0;return-1}:l},93537:function(e,t,n){"use strict";var o=n(69691),r=n(17657),a=n(12338),i=r("species");e.exports=function(e){return a>=51||!o((function(){var t=[];return(t.constructor={})[i]=function(){return{foo:1}},1!==t[e](Boolean).foo}))}},37902:function(e,t,n){"use strict";var o=n(69691);e.exports=function(e,t){var n=[][e];return!!n&&o((function(){n.call(null,t||function(){throw 1},1)}))}},28249:function(e,t,n){"use strict";var o=n(83923),r=n(12104),a=n(50990),i=n(39570),c=function(e){return function(t,n,c,l){o(n);var d=r(t),u=a(d),s=i(d.length),m=e?s-1:0,p=e?-1:1;if(c<2)for(;;){if(m in u){l=u[m],m+=p;break}if(m+=p,e?m<0:s<=m)throw TypeError("Reduce of empty array with no initial value")}for(;e?m>=0:s>m;m+=p)m in u&&(l=n(l,u[m],m,d));return l}};e.exports={left:c(!1),right:c(!0)}},58737:function(e){"use strict";var t=Math.floor,n=function(e,t){for(var n,o,r=e.length,a=1;a0;)e[o]=e[--o];o!==a++&&(e[o]=n)}return e},o=function(e,t,n){for(var o=e.length,r=t.length,a=0,i=0,c=[];a1?arguments[1]:undefined,3);t=t?t.next:n.first;)for(o(t.value,t.key,this);t&&t.removed;)t=t.previous},has:function(e){return!!N(this,e)}}),a(u.prototype,n?{get:function(e){var t=N(this,e);return t&&t.value},set:function(e,t){return f(this,0===e?0:e,t)}}:{add:function(e){return f(this,e=0===e?0:e,e)}}),s&&o(u.prototype,"size",{get:function(){return p(this).size}}),u},setStrong:function(e,t,n){var o=t+" Iterator",r=C(t),a=C(o);d(e,t,(function(e,t){h(this,{type:o,target:e,state:r(e),kind:t,last:undefined})}),(function(){for(var e=a(this),t=e.kind,n=e.last;n&&n.removed;)n=n.previous;return e.target&&(e.last=n=n?n.next:e.state.first)?"keys"==t?{value:n.key,done:!1}:"values"==t?{value:n.value,done:!1}:{value:[n.key,n.value],done:!1}:(e.target=undefined,{value:undefined,done:!0})}),n?"entries":"values",!n,!0),u(t)}}},57396:function(e,t,n){"use strict";var o=n(3993),r=n(40421).getWeakData,a=n(63518),i=n(35611),c=n(50997),l=n(56342),d=n(69033),u=n(28919),s=n(79947),m=s.set,p=s.getterFor,h=d.find,C=d.findIndex,f=0,N=function(e){return e.frozen||(e.frozen=new b)},b=function(){this.entries=[]},g=function(e,t){return h(e.entries,(function(e){return e[0]===t}))};b.prototype={get:function(e){var t=g(this,e);if(t)return t[1]},has:function(e){return!!g(this,e)},set:function(e,t){var n=g(this,e);n?n[1]=t:this.entries.push([e,t])},"delete":function(e){var t=C(this.entries,(function(t){return t[0]===e}));return~t&&this.entries.splice(t,1),!!~t}},e.exports={getConstructor:function(e,t,n,d){var s=e((function(e,o){c(e,s,t),m(e,{type:t,id:f++,frozen:undefined}),o!=undefined&&l(o,e[d],{that:e,AS_ENTRIES:n})})),h=p(t),C=function(e,t,n){var o=h(e),i=r(a(t),!0);return!0===i?N(o).set(t,n):i[o.id]=n,e};return o(s.prototype,{"delete":function(e){var t=h(this);if(!i(e))return!1;var n=r(e);return!0===n?N(t)["delete"](e):n&&u(n,t.id)&&delete n[t.id]},has:function(e){var t=h(this);if(!i(e))return!1;var n=r(e);return!0===n?N(t).has(e):n&&u(n,t.id)}}),o(s.prototype,n?{get:function(e){var t=h(this);if(i(e)){var n=r(e);return!0===n?N(t).get(e):n?n[t.id]:undefined}},set:function(e,t){return C(this,e,t)}}:{add:function(e){return C(this,e,!0)}}),s}}},42006:function(e,t,n){"use strict";var o=n(56174),r=n(84253),a=n(41441),i=n(11807),c=n(40421),l=n(56342),d=n(50997),u=n(35611),s=n(69691),m=n(68762),p=n(29108),h=n(22285);e.exports=function(e,t,n){var C=-1!==e.indexOf("Map"),f=-1!==e.indexOf("Weak"),N=C?"set":"add",b=r[e],g=b&&b.prototype,V=b,v={},k=function(e){var t=g[e];i(g,e,"add"==e?function(e){return t.call(this,0===e?0:e),this}:"delete"==e?function(e){return!(f&&!u(e))&&t.call(this,0===e?0:e)}:"get"==e?function(e){return f&&!u(e)?undefined:t.call(this,0===e?0:e)}:"has"==e?function(e){return!(f&&!u(e))&&t.call(this,0===e?0:e)}:function(e,n){return t.call(this,0===e?0:e,n),this})};if(a(e,"function"!=typeof b||!(f||g.forEach&&!s((function(){(new b).entries().next()})))))V=n.getConstructor(t,e,C,N),c.enable();else if(a(e,!0)){var _=new V,x=_[N](f?{}:-0,1)!=_,y=s((function(){_.has(1)})),B=m((function(e){new b(e)})),w=!f&&s((function(){for(var e=new b,t=5;t--;)e[N](t,t);return!e.has(-0)}));B||((V=t((function(t,n){d(t,V,e);var o=h(new b,t,V);return n!=undefined&&l(n,o[N],{that:o,AS_ENTRIES:C}),o}))).prototype=g,g.constructor=V),(y||w)&&(k("delete"),k("has"),C&&k("get")),(w||x)&&k(N),f&&g.clear&&delete g.clear}return v[e]=V,o({global:!0,forced:V!=b},v),p(V,e),f||n.setStrong(V,e,C),V}},49957:function(e,t,n){"use strict";var o=n(28919),r=n(28482),a=n(22245),i=n(74217);e.exports=function(e,t){for(var n=r(t),c=i.f,l=a.f,d=0;d"+c+""}},38415:function(e,t,n){"use strict";var o=n(39881).IteratorPrototype,r=n(83681),a=n(39160),i=n(29108),c=n(82723),l=function(){return this};e.exports=function(e,t,n){var d=t+" Iterator";return e.prototype=r(o,{next:a(1,n)}),i(e,d,!1,!0),c[d]=l,e}},52188:function(e,t,n){"use strict";var o=n(75592),r=n(74217),a=n(39160);e.exports=o?function(e,t,n){return r.f(e,t,a(1,n))}:function(e,t,n){return e[t]=n,e}},39160:function(e){"use strict";e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},39241:function(e,t,n){"use strict";var o=n(14613),r=n(74217),a=n(39160);e.exports=function(e,t,n){var i=o(t);i in e?r.f(e,i,a(0,n)):e[i]=n}},79873:function(e,t,n){"use strict";var o=n(69691),r=n(47497).start,a=Math.abs,i=Date.prototype,c=i.getTime,l=i.toISOString;e.exports=o((function(){return"0385-07-25T07:06:39.999Z"!=l.call(new Date(-50000000000001))}))||!o((function(){l.call(new Date(NaN))}))?function(){if(!isFinite(c.call(this)))throw RangeError("Invalid time value");var e=this,t=e.getUTCFullYear(),n=e.getUTCMilliseconds(),o=t<0?"-":t>9999?"+":"";return o+r(a(t),o?6:4,0)+"-"+r(e.getUTCMonth()+1,2,0)+"-"+r(e.getUTCDate(),2,0)+"T"+r(e.getUTCHours(),2,0)+":"+r(e.getUTCMinutes(),2,0)+":"+r(e.getUTCSeconds(),2,0)+"."+r(n,3,0)+"Z"}:l},57763:function(e,t,n){"use strict";var o=n(63518),r=n(28734);e.exports=function(e){if(o(this),"string"===e||"default"===e)e="string";else if("number"!==e)throw TypeError("Incorrect hint");return r(this,e)}},71179:function(e,t,n){"use strict";var o=n(56174),r=n(38415),a=n(6863),i=n(18444),c=n(29108),l=n(52188),d=n(11807),u=n(17657),s=n(1986),m=n(82723),p=n(39881),h=p.IteratorPrototype,C=p.BUGGY_SAFARI_ITERATORS,f=u("iterator"),N="keys",b="values",g="entries",V=function(){return this};e.exports=function(e,t,n,u,p,v,k){r(n,t,u);var _,x,y,B=function(e){if(e===p&&T)return T;if(!C&&e in S)return S[e];switch(e){case N:case b:case g:return function(){return new n(this,e)}}return function(){return new n(this)}},w=t+" Iterator",L=!1,S=e.prototype,I=S[f]||S["@@iterator"]||p&&S[p],T=!C&&I||B(p),A="Array"==t&&S.entries||I;if(A&&(_=a(A.call(new e)),h!==Object.prototype&&_.next&&(s||a(_)===h||(i?i(_,h):"function"!=typeof _[f]&&l(_,f,V)),c(_,w,!0,!0),s&&(m[w]=V))),p==b&&I&&I.name!==b&&(L=!0,T=function(){return I.call(this)}),s&&!k||S[f]===T||l(S,f,T),m[t]=T,p)if(x={values:B(b),keys:v?T:B(N),entries:B(g)},k)for(y in x)(C||L||!(y in S))&&d(S,y,x[y]);else o({target:t,proto:!0,forced:C||L},x);return x}},55282:function(e,t,n){"use strict";var o=n(65781),r=n(28919),a=n(3444),i=n(74217).f;e.exports=function(e){var t=o.Symbol||(o.Symbol={});r(t,e)||i(t,e,{value:a.f(e)})}},75592:function(e,t,n){"use strict";var o=n(69691);e.exports=!o((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},21477:function(e,t,n){"use strict";var o=n(84253),r=n(35611),a=o.document,i=r(a)&&r(a.createElement);e.exports=function(e){return i?a.createElement(e):{}}},20967:function(e,t,n){"use strict";var o=n(72319).match(/firefox\/(\d+)/i);e.exports=!!o&&+o[1]},46392:function(e){"use strict";e.exports="object"==typeof window},85749:function(e,t,n){"use strict";var o=n(72319);e.exports=/MSIE|Trident/.test(o)},20037:function(e,t,n){"use strict";var o=n(72319),r=n(84253);e.exports=/iphone|ipod|ipad/i.test(o)&&r.Pebble!==undefined},24542:function(e,t,n){"use strict";var o=n(72319);e.exports=/(?:iphone|ipod|ipad).*applewebkit/i.test(o)},41488:function(e,t,n){"use strict";var o=n(77e3),r=n(84253);e.exports="process"==o(r.process)},47501:function(e,t,n){"use strict";var o=n(72319);e.exports=/web0s(?!.*chrome)/i.test(o)},72319:function(e,t,n){"use strict";var o=n(69808);e.exports=o("navigator","userAgent")||""},12338:function(e,t,n){"use strict";var o,r,a=n(84253),i=n(72319),c=a.process,l=a.Deno,d=c&&c.versions||l&&l.version,u=d&&d.v8;u?r=(o=u.split("."))[0]<4?1:o[0]+o[1]:i&&(!(o=i.match(/Edge\/(\d+)/))||o[1]>=74)&&(o=i.match(/Chrome\/(\d+)/))&&(r=o[1]),e.exports=r&&+r},12200:function(e,t,n){"use strict";var o=n(72319).match(/AppleWebKit\/(\d+)\./);e.exports=!!o&&+o[1]},23344:function(e){"use strict";e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},56174:function(e,t,n){"use strict";var o=n(84253),r=n(22245).f,a=n(52188),i=n(11807),c=n(30889),l=n(49957),d=n(41441);e.exports=function(e,t){var n,u,s,m,p,h=e.target,C=e.global,f=e.stat;if(n=C?o:f?o[h]||c(h,{}):(o[h]||{}).prototype)for(u in t){if(m=t[u],s=e.noTargetGet?(p=r(n,u))&&p.value:n[u],!d(C?u:h+(f?".":"#")+u,e.forced)&&s!==undefined){if(typeof m==typeof s)continue;l(m,s)}(e.sham||s&&s.sham)&&a(m,"sham",!0),i(n,u,m,e)}}},69691:function(e){"use strict";e.exports=function(e){try{return!!e()}catch(t){return!0}}},68880:function(e,t,n){"use strict";n(12654);var o=n(11807),r=n(71841),a=n(69691),i=n(17657),c=n(52188),l=i("species"),d=RegExp.prototype;e.exports=function(e,t,n,u){var s=i(e),m=!a((function(){var t={};return t[s]=function(){return 7},7!=""[e](t)})),p=m&&!a((function(){var t=!1,n=/a/;return"split"===e&&((n={}).constructor={},n.constructor[l]=function(){return n},n.flags="",n[s]=/./[s]),n.exec=function(){return t=!0,null},n[s](""),!t}));if(!m||!p||n){var h=/./[s],C=t(s,""[e],(function(e,t,n,o,a){var i=t.exec;return i===r||i===d.exec?m&&!a?{done:!0,value:h.call(t,n,o)}:{done:!0,value:e.call(n,t,o)}:{done:!1}}));o(String.prototype,e,C[0]),o(d,s,C[1])}u&&c(d[s],"sham",!0)}},904:function(e,t,n){"use strict";var o=n(89999),r=n(39570),a=n(74271);e.exports=function i(e,t,n,c,l,d,u,s){for(var m,p=l,h=0,C=!!u&&a(u,s,3);h0&&o(m))p=i(e,t,m,r(m.length),p,d-1)-1;else{if(p>=9007199254740991)throw TypeError("Exceed the acceptable array length");e[p]=m}p++}h++}return p}},7056:function(e,t,n){"use strict";var o=n(69691);e.exports=!o((function(){return Object.isExtensible(Object.preventExtensions({}))}))},74271:function(e,t,n){"use strict";var o=n(83923);e.exports=function(e,t,n){if(o(e),t===undefined)return e;switch(n){case 0:return function(){return e.call(t)};case 1:return function(n){return e.call(t,n)};case 2:return function(n,o){return e.call(t,n,o)};case 3:return function(n,o,r){return e.call(t,n,o,r)}}return function(){return e.apply(t,arguments)}}},68719:function(e,t,n){"use strict";var o=n(83923),r=n(35611),a=[].slice,i={},c=function(e,t,n){if(!(t in i)){for(var o=[],r=0;r]*>)/g,c=/\$([$&'`]|\d{1,2})/g;e.exports=function(e,t,n,l,d,u){var s=n+e.length,m=l.length,p=c;return d!==undefined&&(d=o(d),p=i),a.call(u,p,(function(o,a){var i;switch(a.charAt(0)){case"$":return"$";case"&":return e;case"`":return t.slice(0,n);case"'":return t.slice(s);case"<":i=d[a.slice(1,-1)];break;default:var c=+a;if(0===c)return o;if(c>m){var u=r(c/10);return 0===u?o:u<=m?l[u-1]===undefined?a.charAt(1):l[u-1]+a.charAt(1):o}i=l[c-1]}return i===undefined?"":i}))}},84253:function(e,t,n){"use strict";var o=function(e){return e&&e.Math==Math&&e};e.exports=o("object"==typeof globalThis&&globalThis)||o("object"==typeof window&&window)||o("object"==typeof self&&self)||o("object"==typeof n.g&&n.g)||function(){return this}()||Function("return this")()},28919:function(e,t,n){"use strict";var o=n(12104),r={}.hasOwnProperty;e.exports=Object.hasOwn||function(e,t){return r.call(o(e),t)}},90311:function(e){"use strict";e.exports={}},21419:function(e,t,n){"use strict";var o=n(84253);e.exports=function(e,t){var n=o.console;n&&n.error&&(1===arguments.length?n.error(e):n.error(e,t))}},2369:function(e,t,n){"use strict";var o=n(69808);e.exports=o("document","documentElement")},78251:function(e,t,n){"use strict";var o=n(75592),r=n(69691),a=n(21477);e.exports=!o&&!r((function(){return 7!=Object.defineProperty(a("div"),"a",{get:function(){return 7}}).a}))},16567:function(e){"use strict";var t=Math.abs,n=Math.pow,o=Math.floor,r=Math.log,a=Math.LN2;e.exports={pack:function(e,i,c){var l,d,u,s=new Array(c),m=8*c-i-1,p=(1<>1,C=23===i?n(2,-24)-n(2,-77):0,f=e<0||0===e&&1/e<0?1:0,N=0;for((e=t(e))!=e||e===Infinity?(d=e!=e?1:0,l=p):(l=o(r(e)/a),e*(u=n(2,-l))<1&&(l--,u*=2),(e+=l+h>=1?C/u:C*n(2,1-h))*u>=2&&(l++,u/=2),l+h>=p?(d=0,l=p):l+h>=1?(d=(e*u-1)*n(2,i),l+=h):(d=e*n(2,h-1)*n(2,i),l=0));i>=8;s[N++]=255&d,d/=256,i-=8);for(l=l<0;s[N++]=255&l,l/=256,m-=8);return s[--N]|=128*f,s},unpack:function(e,t){var o,r=e.length,a=8*r-t-1,i=(1<>1,l=a-7,d=r-1,u=e[d--],s=127&u;for(u>>=7;l>0;s=256*s+e[d],d--,l-=8);for(o=s&(1<<-l)-1,s>>=-l,l+=t;l>0;o=256*o+e[d],d--,l-=8);if(0===s)s=1-c;else{if(s===i)return o?NaN:u?-Infinity:Infinity;o+=n(2,t),s-=c}return(u?-1:1)*o*n(2,s-t)}}},50990:function(e,t,n){"use strict";var o=n(69691),r=n(77e3),a="".split;e.exports=o((function(){return!Object("z").propertyIsEnumerable(0)}))?function(e){return"String"==r(e)?a.call(e,""):Object(e)}:Object},22285:function(e,t,n){"use strict";var o=n(35611),r=n(18444);e.exports=function(e,t,n){var a,i;return r&&"function"==typeof(a=t.constructor)&&a!==n&&o(i=a.prototype)&&i!==n.prototype&&r(e,i),e}},89853:function(e,t,n){"use strict";var o=n(55935),r=Function.toString;"function"!=typeof o.inspectSource&&(o.inspectSource=function(e){return r.call(e)}),e.exports=o.inspectSource},40421:function(e,t,n){"use strict";var o=n(56174),r=n(90311),a=n(35611),i=n(28919),c=n(74217).f,l=n(78870),d=n(59995),u=n(41080),s=n(7056),m=!1,p=u("meta"),h=0,C=Object.isExtensible||function(){return!0},f=function(e){c(e,p,{value:{objectID:"O"+h++,weakData:{}}})},N=e.exports={enable:function(){N.enable=function(){},m=!0;var e=l.f,t=[].splice,n={};n[p]=1,e(n).length&&(l.f=function(n){for(var o=e(n),r=0,a=o.length;rm;m++)if((h=_(e[m]))&&h instanceof d)return h;return new d(!1)}u=s.call(e)}for(C=u.next;!(f=C.call(u)).done;){try{h=_(f.value)}catch(x){throw l(u),x}if("object"==typeof h&&h&&h instanceof d)return h}return new d(!1)}},61781:function(e,t,n){"use strict";var o=n(63518);e.exports=function(e){var t=e["return"];if(t!==undefined)return o(t.call(e)).value}},39881:function(e,t,n){"use strict";var o,r,a,i=n(69691),c=n(6863),l=n(52188),d=n(28919),u=n(17657),s=n(1986),m=u("iterator"),p=!1;[].keys&&("next"in(a=[].keys())?(r=c(c(a)))!==Object.prototype&&(o=r):p=!0);var h=o==undefined||i((function(){var e={};return o[m].call(e)!==e}));h&&(o={}),s&&!h||d(o,m)||l(o,m,(function(){return this})),e.exports={IteratorPrototype:o,BUGGY_SAFARI_ITERATORS:p}},82723:function(e){"use strict";e.exports={}},19997:function(e){"use strict";var t=Math.expm1,n=Math.exp;e.exports=!t||t(10)>22025.465794806718||t(10)<22025.465794806718||-2e-17!=t(-2e-17)?function(e){return 0==(e=+e)?e:e>-1e-6&&e<1e-6?e+e*e/2:n(e)-1}:t},43334:function(e,t,n){"use strict";var o=n(24305),r=Math.abs,a=Math.pow,i=a(2,-52),c=a(2,-23),l=a(2,127)*(2-c),d=a(2,-126);e.exports=Math.fround||function(e){var t,n,a=r(e),u=o(e);return al||n!=n?u*Infinity:u*n}},83659:function(e){"use strict";var t=Math.log;e.exports=Math.log1p||function(e){return(e=+e)>-1e-8&&e<1e-8?e-e*e/2:t(1+e)}},24305:function(e){"use strict";e.exports=Math.sign||function(e){return 0==(e=+e)||e!=e?e:e<0?-1:1}},80909:function(e,t,n){"use strict";var o,r,a,i,c,l,d,u,s=n(84253),m=n(22245).f,p=n(33453).set,h=n(24542),C=n(20037),f=n(47501),N=n(41488),b=s.MutationObserver||s.WebKitMutationObserver,g=s.document,V=s.process,v=s.Promise,k=m(s,"queueMicrotask"),_=k&&k.value;_||(o=function(){var e,t;for(N&&(e=V.domain)&&e.exit();r;){t=r.fn,r=r.next;try{t()}catch(n){throw r?i():a=undefined,n}}a=undefined,e&&e.enter()},h||N||f||!b||!g?!C&&v&&v.resolve?((d=v.resolve(undefined)).constructor=v,u=d.then,i=function(){u.call(d,o)}):i=N?function(){V.nextTick(o)}:function(){p.call(s,o)}:(c=!0,l=g.createTextNode(""),new b(o).observe(l,{characterData:!0}),i=function(){l.data=c=!c})),e.exports=_||function(e){var t={fn:e,next:undefined};a&&(a.next=t),r||(r=t,i()),a=t}},4302:function(e,t,n){"use strict";var o=n(84253);e.exports=o.Promise},54772:function(e,t,n){"use strict";var o=n(12338),r=n(69691);e.exports=!!Object.getOwnPropertySymbols&&!r((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&o&&o<41}))},82911:function(e,t,n){"use strict";var o=n(84253),r=n(89853),a=o.WeakMap;e.exports="function"==typeof a&&/native code/.test(r(a))},82101:function(e,t,n){"use strict";var o=n(83923),r=function(e){var t,n;this.promise=new e((function(e,o){if(t!==undefined||n!==undefined)throw TypeError("Bad Promise constructor");t=e,n=o})),this.resolve=o(t),this.reject=o(n)};e.exports.f=function(e){return new r(e)}},18774:function(e,t,n){"use strict";var o=n(86133);e.exports=function(e){if(o(e))throw TypeError("The method doesn't accept regular expressions");return e}},64630:function(e,t,n){"use strict";var o=n(84253).isFinite;e.exports=Number.isFinite||function(e){return"number"==typeof e&&o(e)}},78025:function(e,t,n){"use strict";var o=n(84253),r=n(92082),a=n(84703).trim,i=n(65181),c=o.parseFloat,l=1/c(i+"-0")!=-Infinity;e.exports=l?function(e){var t=a(r(e)),n=c(t);return 0===n&&"-"==t.charAt(0)?-0:n}:c},55092:function(e,t,n){"use strict";var o=n(84253),r=n(92082),a=n(84703).trim,i=n(65181),c=o.parseInt,l=/^[+-]?0[Xx]/,d=8!==c(i+"08")||22!==c(i+"0x16");e.exports=d?function(e,t){var n=a(r(e));return c(n,t>>>0||(l.test(n)?16:10))}:c},64905:function(e,t,n){"use strict";var o=n(75592),r=n(69691),a=n(84547),i=n(21061),c=n(77659),l=n(12104),d=n(50990),u=Object.assign,s=Object.defineProperty;e.exports=!u||r((function(){if(o&&1!==u({b:1},u(s({},"a",{enumerable:!0,get:function(){s(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach((function(e){t[e]=e})),7!=u({},e)[n]||a(u({},t)).join("")!=r}))?function(e,t){for(var n=l(e),r=arguments.length,u=1,s=i.f,m=c.f;r>u;)for(var p,h=d(arguments[u++]),C=s?a(h).concat(s(h)):a(h),f=C.length,N=0;f>N;)p=C[N++],o&&!m.call(h,p)||(n[p]=h[p]);return n}:u},83681:function(e,t,n){"use strict";var o,r=n(63518),a=n(91543),i=n(23344),c=n(90311),l=n(2369),d=n(21477),u=n(85152),s=u("IE_PROTO"),m=function(){},p=function(e){return"